Skip to content

Commit 268f886

Browse files
authored
Merge pull request #5793 from jezhiggins/vsd-value-set-implementation
Vsd value set implementation
2 parents 1cc3af6 + f363e38 commit 268f886

File tree

68 files changed

+1030
-407
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

68 files changed

+1030
-407
lines changed
Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
#include <stdbool.h>
2+
3+
extern int x;
4+
5+
int main(void)
6+
{
7+
bool b1;
8+
bool b2;
9+
10+
b1 = true;
11+
b2 = !b1;
12+
13+
bool b3 = x ? true : false;
14+
int i = b1 ? 10 : 20;
15+
int j = b2 ? 10 : 20;
16+
int k = b3 ? 10 : 20;
17+
18+
return 0;
19+
}
Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
CORE
2+
main.c
3+
--variable-sensitivity --vsd-values constants --show
4+
^EXIT=0$
5+
^SIGNAL=0$
6+
main::1::b1 \(\) -> TRUE @ \[2\]
7+
main::1::b2 \(\) -> FALSE @ \[3\]
8+
main::1::b3 \(\) -> TOP @ \[5\]
9+
main::1::i \(\) -> 10 @ \[7\]
10+
main::1::j \(\) -> 20 @ \[9\]
11+
main::1::k \(\) -> TOP @ \[11\]
12+
--
Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
CORE
2+
main.c
3+
--variable-sensitivity --vsd-values intervals --show
4+
^EXIT=0$
5+
^SIGNAL=0$
6+
main::1::b1 \(\) -> \[1, 1\] @ \[2\]
7+
main::1::b2 \(\) -> \[0, 0\] @ \[3\]
8+
main::1::b3 \(\) -> \[0, 1\] @ \[5\]
9+
main::1::i \(\) -> \[A, A\] @ \[7\]
10+
main::1::j \(\) -> \[14, 14\] @ \[9\]
11+
main::1::k \(\) -> \[A, 14\] @ \[11\]
12+
--
Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
CORE
2+
main.c
3+
--variable-sensitivity --vsd-values set-of-constants --show
4+
^EXIT=0$
5+
^SIGNAL=0$
6+
main::1::b1 \(\) -> value-set-begin: TRUE :value-set-end
7+
main::1::b2 \(\) -> value-set-begin: FALSE :value-set-end
8+
main::1::b3 \(\) -> value-set-begin: TRUE, FALSE :value-set-end
9+
main::1::i \(\) -> value-set-begin: 10 :value-set-end
10+
main::1::j \(\) -> value-set-begin: 20 :value-set-end
11+
main::1::k \(\) -> value-set-begin: 10, 20 :value-set-end
12+
--
Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
int main(int argc, char argv[])
2+
{
3+
int p = 1;
4+
5+
int q = p + 2;
6+
}
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::p .* value-set-begin: 1 :value-set-end
7+
main::1::q .* value-set-begin: 3 :value-set-end
8+
--
Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
int main(int argc, char argv[])
2+
{
3+
int p = 2;
4+
int q = 3;
5+
6+
int t = p + q;
7+
}
Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
CORE
2+
main.c
3+
--variable-sensitivity --vsd-values set-of-constants --show
4+
^EXIT=0$
5+
^SIGNAL=0$
6+
main::1::p .* value-set-begin: 2 :value-set-end
7+
main::1::q .* value-set-begin: 3 :value-set-end
8+
main::1::t .* value-set-begin: 5 :value-set-end
9+
--
Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
int unknown();
2+
3+
int main(int argc, char argv[])
4+
{
5+
int p = 2;
6+
7+
if(unknown())
8+
p += 2;
9+
else
10+
p += 3;
11+
}
Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
CORE
2+
main.c
3+
--variable-sensitivity --vsd-values set-of-constants --show
4+
^EXIT=0$
5+
^SIGNAL=0$
6+
main::1::p .* value-set-begin: 4, 5 :value-set-end
7+
--

0 commit comments

Comments
 (0)