Skip to content

Commit 8e8eb20

Browse files
committed
Test showing loop terminates using constants, intervals, or value-sets
1 parent 5f790ab commit 8e8eb20

File tree

4 files changed

+31
-0
lines changed

4 files changed

+31
-0
lines changed
Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
int main()
2+
{
3+
int p = 1;
4+
5+
for(int i = 0; i != 5; ++i)
6+
p += p;
7+
}
Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
CORE
2+
main.c
3+
--variable-sensitivity --vsd-values constants --show
4+
^EXIT=0$
5+
^SIGNAL=0$
6+
^main::1::1::i .* TOP @ \[3, 6\]
7+
^main::1::p .* TOP @ \[1, 5\]
8+
--
Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
CORE
2+
main.c
3+
--variable-sensitivity --vsd-values intervals --show
4+
^EXIT=0$
5+
^SIGNAL=0$
6+
^main::1::1::i .* \[0, 5\] @ \[3, 6\]
7+
^main::1::p .* \[1, 20\] @ \[1, 5\]
8+
--
Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
CORE
2+
main.c
3+
--variable-sensitivity --vsd-values set-of-constants --show
4+
^EXIT=0$
5+
^SIGNAL=0$
6+
^main::1::1::i .* value-set-begin: 0, 1, 2, 3, 4, 5 :value-set-end @ \[3, 6\]
7+
^main::1::p .* @ \[1, 5\]
8+
--

0 commit comments

Comments
 (0)