Skip to content

Commit ced2d39

Browse files
authored
Merge pull request #5825 from jezhiggins/vsd-value-set-of-pointers
Vsd value set of pointers
2 parents e317683 + df41607 commit ced2d39

37 files changed

+724
-342
lines changed
Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
#include <assert.h>
2+
3+
int main()
4+
{
5+
int unknown;
6+
int a = 10;
7+
8+
int *p = &a;
9+
10+
if(unknown)
11+
a = 15;
12+
13+
int q = *p;
14+
15+
assert(q == a);
16+
}
Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
CORE
2+
main.c
3+
--verify --variable-sensitivity --vsd-values intervals --vsd-pointers constants
4+
^\[main.assertion.1\] line 15 assertion q == a: SUCCESS
5+
^EXIT=0$
6+
^SIGNAL=0$
7+
--
Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
CORE
2+
main.c
3+
--verify --variable-sensitivity --vsd-values intervals --vsd-pointers top-bottom
4+
^\[main.assertion.1\] line 15 assertion q == a: UNKNOWN
5+
^EXIT=0$
6+
^SIGNAL=0$
7+
--
Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
CORE
2+
main.c
3+
--verify --variable-sensitivity --vsd-values intervals --vsd-pointers value-set
4+
^\[main.assertion.1\] line 15 assertion q == a: SUCCESS
5+
^EXIT=0$
6+
^SIGNAL=0$
7+
--
Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
#include <assert.h>
2+
3+
int main()
4+
{
5+
int a = 10;
6+
int *p = &a;
7+
8+
int q = *p;
9+
10+
assert(q == a);
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+
--verify --variable-sensitivity --vsd-pointers constants
4+
^\[main.assertion.1\] line 10 assertion q == a: SUCCESS
5+
^EXIT=0$
6+
^SIGNAL=0$
7+
--
Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
CORE
2+
main.c
3+
--verify --variable-sensitivity --vsd-pointers top-bottom
4+
^\[main.assertion.1\] line 10 assertion q == a: UNKNOWN
5+
^EXIT=0$
6+
^SIGNAL=0$
7+
--
Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
CORE
2+
main.c
3+
--verify --variable-sensitivity --vsd-pointers value-set
4+
^\[main.assertion.1\] line 10 assertion q == a: SUCCESS
5+
^EXIT=0$
6+
^SIGNAL=0$
7+
--
Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
#include <assert.h>
2+
3+
int main()
4+
{
5+
int unknown;
6+
int a = 10;
7+
int b = 10;
8+
int *p = &a;
9+
10+
if(unknown)
11+
{
12+
b = 15;
13+
*p = 15;
14+
}
15+
16+
assert(*p == b);
17+
}
Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
CORE
2+
main.c
3+
--verify --variable-sensitivity --vsd-values intervals --vsd-pointers constants
4+
^\[main.assertion.1\] line 16 assertion \*p == b: SUCCESS
5+
^EXIT=0$
6+
^SIGNAL=0$
7+
--

0 commit comments

Comments
 (0)