Skip to content

Commit 45860b6

Browse files
authored
Merge pull request #7912 from tautschnig/cleanup/test-platform-indep
Make constant_propagation_08 test platform agnostic
2 parents e02fd74 + 7b3e39e commit 45860b6

File tree

2 files changed

+11
-4
lines changed

2 files changed

+11
-4
lines changed

regression/goto-analyzer/constant_propagation_08/main.c

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,10 +5,17 @@ int main()
55
int i;
66
i = 0;
77

8+
#ifndef _WIN64
89
if (i==0)
9-
a[0]=1;
10+
a[0l] = 1;
1011
else
11-
a[1]=2;
12+
a[1l] = 2;
13+
#else
14+
if(i == 0)
15+
a[0ll] = 1;
16+
else
17+
a[1ll] = 2;
18+
#endif
1219

1320
__CPROVER_assert(a[0] == 1 || a[1] == 2, "a[0]==1 || a[1]==2");
1421

regression/goto-analyzer/constant_propagation_08/test-vsd.desc

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ main.c
33
--variable-sensitivity --vsd-arrays every-element --simplify out.gb
44
^EXIT=0$
55
^SIGNAL=0$
6-
^Simplified: assert: 1, assume: 0, goto: 1, assigns: [12], function calls: 0$
7-
^Unmodified: assert: 0, assume: 0, goto: 2, assigns: [89], function calls: 2$
6+
^Simplified: assert: 1, assume: 0, goto: 1, assigns: 1, function calls: 0$
7+
^Unmodified: assert: 0, assume: 0, goto: 2, assigns: 9, function calls: 2$
88
--
99
^warning: ignoring

0 commit comments

Comments
 (0)