... | ... | @@ -200,3 +200,32 @@ int main() { |
|
|
|
|
|
[![](https://gitlab.science.ru.nl/mklinik/eca-symbolic-execution/raw/master/code/website/loop-alternating-main-no-merge.svg)](https://gitlab.science.ru.nl/mklinik/eca-symbolic-execution/blob/master/code/website/loop-alternating-main-no-merge-highres.svg)
|
|
|
[![](https://gitlab.science.ru.nl/mklinik/eca-symbolic-execution/raw/master/code/website/loop-alternating-main.svg)](https://gitlab.science.ru.nl/mklinik/eca-symbolic-execution/blob/master/code/website/loop-alternating-main-highres.svg)
|
|
|
|
|
|
|
|
|
## A nested pair of loops
|
|
|
|
|
|
```c
|
|
|
int main()
|
|
|
{
|
|
|
x = TERM.readInt();
|
|
|
while( 0 <= x && x <= 1 )
|
|
|
{
|
|
|
y = TERM.readInt();
|
|
|
while( 0 <= y && y <= 1 )
|
|
|
{
|
|
|
LED1.switchOn();
|
|
|
LED1.switchOff();
|
|
|
y = y + 1;
|
|
|
}
|
|
|
|
|
|
LED2.switchOn();
|
|
|
LED2.switchOff();
|
|
|
x = x + 1;
|
|
|
}
|
|
|
|
|
|
return 0;
|
|
|
}
|
|
|
```
|
|
|
|
|
|
[![](https://gitlab.science.ru.nl/mklinik/eca-symbolic-execution/raw/master/code/website/nested-lops-main-no-merge.svg)](https://gitlab.science.ru.nl/mklinik/eca-symbolic-execution/blob/master/code/website/nested-lops-main-no-merge-highres.svg)
|
|
|
[![](https://gitlab.science.ru.nl/mklinik/eca-symbolic-execution/raw/master/code/website/nested-lops-main.svg)](https://gitlab.science.ru.nl/mklinik/eca-symbolic-execution/blob/master/code/website/nested-lops-main-highres.svg) |