Skip to content

Commit 79f2b31

Browse files
committed
C library: move pipe() related definitions to library
With the support of building initialisers while adding the library we can move library-only symbols to the library. This avoids polluting the initialisation function for all cases that don't actually use pipe-related library functions.
1 parent 8d70b2f commit 79f2b31

File tree

31 files changed

+163
-175
lines changed

31 files changed

+163
-175
lines changed

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ main.c
33
--variable-sensitivity --simplify out.gb
44
^EXIT=0$
55
^SIGNAL=0$
6-
^Simplified: assert: 1, assume: 0, goto: 1, assigns: 7, function calls: 0$
6+
^Simplified: assert: 1, assume: 0, goto: 1, assigns: 6, function calls: 0$
77
^Unmodified: assert: 0, assume: 0, goto: 0, assigns: 14, function calls: 2$
88
--
99
^warning: ignoring

regression/goto-analyzer/constant_propagation_01/test.desc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ main.c
33
--constants --simplify out.gb
44
^EXIT=0$
55
^SIGNAL=0$
6-
^Simplified: assert: 1, assume: 0, goto: 1, assigns: 7, function calls: 0$
6+
^Simplified: assert: 1, assume: 0, goto: 1, assigns: 6, function calls: 0$
77
^Unmodified: assert: 0, assume: 0, goto: 0, assigns: 14, function calls: 2$
88
--
99
^warning: ignoring

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ main.c
33
--variable-sensitivity --simplify out.gb
44
^EXIT=0$
55
^SIGNAL=0$
6-
^Simplified: assert: 1, assume: 0, goto: 1, assigns: 8, function calls: 0$
6+
^Simplified: assert: 1, assume: 0, goto: 1, assigns: 7, function calls: 0$
77
^Unmodified: assert: 0, assume: 0, goto: 0, assigns: 13, function calls: 2$
88
--
99
^warning: ignoring

regression/goto-analyzer/constant_propagation_02/test.desc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ main.c
33
--constants --simplify out.gb
44
^EXIT=0$
55
^SIGNAL=0$
6-
^Simplified: assert: 1, assume: 0, goto: 1, assigns: 8, function calls: 0$
6+
^Simplified: assert: 1, assume: 0, goto: 1, assigns: 7, function calls: 0$
77
^Unmodified: assert: 0, assume: 0, goto: 0, assigns: 13, function calls: 2$
88
--
99
^warning: ignoring

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ main.c
33
--variable-sensitivity --simplify out.gb
44
^EXIT=0$
55
^SIGNAL=0$
6-
^Simplified: assert: 1, assume: 0, goto: 1, assigns: 8, function calls: 0$
6+
^Simplified: assert: 1, assume: 0, goto: 1, assigns: 7, function calls: 0$
77
^Unmodified: assert: 0, assume: 0, goto: 0, assigns: 13, function calls: 2$
88
--
99
^warning: ignoring

regression/goto-analyzer/constant_propagation_03/test.desc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ main.c
33
--constants --simplify out.gb
44
^EXIT=0$
55
^SIGNAL=0$
6-
^Simplified: assert: 1, assume: 0, goto: 1, assigns: 8, function calls: 0$
6+
^Simplified: assert: 1, assume: 0, goto: 1, assigns: 7, function calls: 0$
77
^Unmodified: assert: 0, assume: 0, goto: 0, assigns: 13, function calls: 2$
88
--
99
^warning: ignoring

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ main.c
33
--variable-sensitivity --simplify out.gb
44
^EXIT=0$
55
^SIGNAL=0$
6-
^Simplified: assert: 1, assume: 0, goto: 1, assigns: 8, function calls: 0$
6+
^Simplified: assert: 1, assume: 0, goto: 1, assigns: 7, function calls: 0$
77
^Unmodified: assert: 0, assume: 0, goto: 0, assigns: 13, function calls: 2$
88
--
99
^warning: ignoring

regression/goto-analyzer/constant_propagation_04/test.desc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ main.c
33
--constants --simplify out.gb
44
^EXIT=0$
55
^SIGNAL=0$
6-
^Simplified: assert: 1, assume: 0, goto: 1, assigns: 8, function calls: 0$
6+
^Simplified: assert: 1, assume: 0, goto: 1, assigns: 7, function calls: 0$
77
^Unmodified: assert: 0, assume: 0, goto: 0, assigns: 13, function calls: 2$
88
--
99
^warning: ignoring

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ main.c
33
--variable-sensitivity --simplify out.gb
44
^EXIT=0$
55
^SIGNAL=0$
6-
^Simplified: assert: 1, assume: 0, goto: 3, assigns: 9, function calls: 0$
6+
^Simplified: assert: 1, assume: 0, goto: 3, assigns: 8, function calls: 0$
77
^Unmodified: assert: 0, assume: 0, goto: 1, assigns: 15, function calls: 2$
88
--
99
^warning: ignoring

regression/goto-analyzer/constant_propagation_07/test.desc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ main.c
33
--constants --simplify out.gb
44
^EXIT=0$
55
^SIGNAL=0$
6-
^Simplified: assert: 1, assume: 0, goto: 3, assigns: 9, function calls: 0$
6+
^Simplified: assert: 1, assume: 0, goto: 3, assigns: 8, function calls: 0$
77
^Unmodified: assert: 0, assume: 0, goto: 1, assigns: 15, function calls: 2$
88
--
99
^warning: ignoring

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

Lines changed: 1 addition & 1 deletion
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: 2, assigns: 8, function calls: 0$
6+
^Simplified: assert: 1, assume: 0, goto: 2, assigns: 7, function calls: 0$
77
^Unmodified: assert: 0, assume: 0, goto: 3, assigns: 14, function calls: 2$
88
--
99
^warning: ignoring

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

Lines changed: 1 addition & 1 deletion
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: 8, function calls: 0$
6+
^Simplified: assert: 1, assume: 0, goto: 1, assigns: 7, function calls: 0$
77
^Unmodified: assert: 0, assume: 0, goto: 1, assigns: 11, function calls: 2$
88
--
99
^warning: ignoring

regression/goto-analyzer/constant_propagation_11/test.desc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ main.c
33
--constants --simplify out.gb
44
^EXIT=0$
55
^SIGNAL=0$
6-
^Simplified: assert: 1, assume: 0, goto: 1, assigns: 8, function calls: 0$
6+
^Simplified: assert: 1, assume: 0, goto: 1, assigns: 7, function calls: 0$
77
^Unmodified: assert: 0, assume: 0, goto: 1, assigns: 11, function calls: 2$
88
--
99
^warning: ignoring

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ main.c
33
--variable-sensitivity --simplify out.gb
44
^EXIT=0$
55
^SIGNAL=0$
6-
^Simplified: assert: 1, assume: 0, goto: 1, assigns: 7, function calls: 0$
6+
^Simplified: assert: 1, assume: 0, goto: 1, assigns: 6, function calls: 0$
77
^Unmodified: assert: 0, assume: 0, goto: 1, assigns: 12, function calls: 2$
88
--
99
^warning: ignoring

regression/goto-analyzer/constant_propagation_12/test.desc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ main.c
33
--constants --simplify out.gb
44
^EXIT=0$
55
^SIGNAL=0$
6-
^Simplified: assert: 1, assume: 0, goto: 1, assigns: 7, function calls: 0$
6+
^Simplified: assert: 1, assume: 0, goto: 1, assigns: 6, function calls: 0$
77
^Unmodified: assert: 0, assume: 0, goto: 1, assigns: 12, function calls: 2$
88
--
99
^warning: ignoring

regression/goto-analyzer/liveness-function-call/test-liveness-show.desc

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,8 @@ main.c
33
--variable-sensitivity --vsd-liveness --show
44
^EXIT=0$
55
^SIGNAL=0$
6-
globalX .* 0 @ \[25\]
6+
globalX .* 0 @ \[24\]
77
globalX .* 1 @ \[0\]
88
globalX .* 2 @ \[3\]
9-
globalX .* TOP @ \[28\]
9+
globalX .* TOP @ \[27\]
1010
--

regression/goto-analyzer/liveness-function-call/test-liveness-three-way-show.desc

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,8 @@ main.c
33
--variable-sensitivity --vsd-liveness --three-way-merge --show
44
^EXIT=0$
55
^SIGNAL=0$
6-
globalX .* 0 @ \[25\]
6+
globalX .* 0 @ \[24\]
77
globalX .* 1 @ \[0\]
88
globalX .* 2 @ \[3\]
9-
globalX .* TOP @ \[28\]
9+
globalX .* TOP @ \[27\]
1010
--

regression/goto-analyzer/liveness-function-call/test-write-location-show.desc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ main.c
33
--variable-sensitivity --show
44
^EXIT=0$
55
^SIGNAL=0$
6-
globalX .* 0 @ \[25\]
6+
globalX .* 0 @ \[24\]
77
globalX .* 1 @ \[0\]
88
globalX .* TOP @ \[0, 3\]
99
--

regression/goto-analyzer/liveness-function-call/test-write-location-three-way-show.desc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ main.c
33
--variable-sensitivity --three-way-merge --show
44
^EXIT=0$
55
^SIGNAL=0$
6-
globalX .* 0 @ \[25\]
6+
globalX .* 0 @ \[24\]
77
globalX .* 1 @ \[0\]
88
globalX .* 2 @ \[3\]
99
--

regression/goto-analyzer/sensitivity-last-written-locations-arrays/test.desc

Lines changed: 22 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -12,26 +12,25 @@ __CPROVER_malloc_is_new_array \(\) -> FALSE @ \[7\]
1212
__CPROVER_memory_leak \(\) -> TOP @ \[9\]
1313
__CPROVER_new_object \(\) -> TOP @ \[10\]
1414
__CPROVER_next_thread_key \(\) -> 0ul @ \[12\]
15-
__CPROVER_pipe_count \(\) -> 0u @ \[13\]
16-
__CPROVER_rounding_mode \(\) -> 0 @ \[14\]
17-
__CPROVER_thread_id \(\) -> 0ul @ \[15\]
18-
__CPROVER_threads_exited \(\) -> TOP @ \[18\]
19-
do_arrays::1::bool_ \(\) -> TOP @ \[20\]
20-
do_arrays::1::bool_1 \(\) -> TOP @ \[21\]
21-
do_arrays::1::bool_2 \(\) -> TOP @ \[22\]
22-
do_arrays::1::x \(\) -> \{\[0\] = 10 @ \[24\]\n\} @ \[24\]
23-
do_arrays::1::x \(\) -> \{\[0\] = 10 @ \[24\]\n\[1\] = 20 @ \[25\]\n\} @ \[25\]
24-
do_arrays::1::x \(\) -> \{\[0\] = 30 @ \[26\]\n\[1\] = 20 @ \[25\]\n\} @ \[26\]
25-
do_arrays::1::x \(\) -> \{\[0\] = 30 @ \[26\]\n\[1\] = 40 @ \[27\]\n\} @ \[27\]
26-
do_arrays::1::x \(\) -> \{\[0\] = 30 @ \[26\]\n\[1\] = 30 @ \[28\]\n\} @ \[28\]
27-
do_arrays::1::x \(\) -> \{\[0\] = 30 @ \[29\]\n\[1\] = 30 @ \[28\]\n\} @ \[29\]
28-
do_arrays::1::x \(\) -> \{\[0\] = 5 @ \[30\]\n\[1\] = 30 @ \[28\]\n\} @ \[30\]
29-
do_arrays::1::x \(\) -> \{\[0\] = 15 @ \[31\]\n\[1\] = 30 @ \[28\]\n\} @ \[31\]
30-
do_arrays::1::x \(\) -> \{\[0\] = 15 @ \[31\]\n\[1\] = 10 @ \[32\]\n\} @ \[32\]
31-
do_arrays::1::x \(\) -> \{\[0\] = 20 @ \[34\]\n\[1\] = 10 @ \[32\]\n\} @ \[34\]
32-
do_arrays::1::x \(\) -> \{\[0\] = 20 @ \[34\, 36\]\n\[1\] = 10 @ \[32\]\n\} @ \[34\, 36\]
33-
do_arrays::1::x \(\) -> \{\[0\] = 0 @ \[38]\n\[1\] = 10 @ \[32\]\n\} @ \[38\]
34-
do_arrays::1::x \(\) -> \{\[0\] = 3 @ \[40]\n\[1\] = 10 @ \[32\]\n\} @ \[40\]
35-
do_arrays::1::x \(\) -> \{\[0\] = TOP @ \[40\, 42]\n\[1\] = 10 @ \[32\]\n\} @ \[40\, 42\]
36-
do_arrays::1::x \(\) -> \{\[0\] = TOP @ \[40\, 42\, 45]\n\[1\] = 10 @ \[47\]\n\} @ \[47\]
37-
do_arrays::1::x \(\) -> \{\[0\] = 20 @ \[48]\n\[1\] = 10 @ \[47\]\n\} @ \[48\]
15+
__CPROVER_rounding_mode \(\) -> 0 @ \[13\]
16+
__CPROVER_thread_id \(\) -> 0ul @ \[14\]
17+
__CPROVER_threads_exited \(\) -> TOP @ \[17\]
18+
do_arrays::1::bool_ \(\) -> TOP @ \[19\]
19+
do_arrays::1::bool_1 \(\) -> TOP @ \[20\]
20+
do_arrays::1::bool_2 \(\) -> TOP @ \[21\]
21+
do_arrays::1::x \(\) -> \{\[0\] = 10 @ \[23\]\n\} @ \[23\]
22+
do_arrays::1::x \(\) -> \{\[0\] = 10 @ \[23\]\n\[1\] = 20 @ \[24\]\n\} @ \[24\]
23+
do_arrays::1::x \(\) -> \{\[0\] = 30 @ \[25\]\n\[1\] = 20 @ \[24\]\n\} @ \[25\]
24+
do_arrays::1::x \(\) -> \{\[0\] = 30 @ \[25\]\n\[1\] = 40 @ \[26\]\n\} @ \[26\]
25+
do_arrays::1::x \(\) -> \{\[0\] = 30 @ \[25\]\n\[1\] = 30 @ \[27\]\n\} @ \[27\]
26+
do_arrays::1::x \(\) -> \{\[0\] = 30 @ \[28\]\n\[1\] = 30 @ \[27\]\n\} @ \[28\]
27+
do_arrays::1::x \(\) -> \{\[0\] = 5 @ \[29\]\n\[1\] = 30 @ \[27\]\n\} @ \[29\]
28+
do_arrays::1::x \(\) -> \{\[0\] = 15 @ \[30\]\n\[1\] = 30 @ \[27\]\n\} @ \[30\]
29+
do_arrays::1::x \(\) -> \{\[0\] = 15 @ \[30\]\n\[1\] = 10 @ \[31\]\n\} @ \[31\]
30+
do_arrays::1::x \(\) -> \{\[0\] = 20 @ \[33\]\n\[1\] = 10 @ \[31\]\n\} @ \[33\]
31+
do_arrays::1::x \(\) -> \{\[0\] = 20 @ \[33\, 35\]\n\[1\] = 10 @ \[31\]\n\} @ \[33\, 35\]
32+
do_arrays::1::x \(\) -> \{\[0\] = 0 @ \[37]\n\[1\] = 10 @ \[31\]\n\} @ \[37\]
33+
do_arrays::1::x \(\) -> \{\[0\] = 3 @ \[39]\n\[1\] = 10 @ \[31\]\n\} @ \[39\]
34+
do_arrays::1::x \(\) -> \{\[0\] = TOP @ \[39\, 41]\n\[1\] = 10 @ \[31\]\n\} @ \[39\, 41\]
35+
do_arrays::1::x \(\) -> \{\[0\] = TOP @ \[39\, 41\, 44]\n\[1\] = 10 @ \[46\]\n\} @ \[46\]
36+
do_arrays::1::x \(\) -> \{\[0\] = 20 @ \[47]\n\[1\] = 10 @ \[46\]\n\} @ \[47\]

regression/goto-analyzer/sensitivity-last-written-locations-pointers/test.desc

Lines changed: 21 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -12,25 +12,24 @@ __CPROVER_malloc_is_new_array \(\) -> FALSE @ \[7\]
1212
__CPROVER_memory_leak \(\) -> TOP @ \[9\]
1313
__CPROVER_new_object \(\) -> TOP @ \[10\]
1414
__CPROVER_next_thread_key \(\) -> 0ul @ \[12\]
15-
__CPROVER_pipe_count \(\) -> 0u @ \[13\]
16-
__CPROVER_rounding_mode \(\) -> 0 @ \[14\]
17-
__CPROVER_thread_id \(\) -> 0ul @ \[15\]
18-
__CPROVER_threads_exited \(\) -> TOP @ \[18\]
19-
do_pointers::1::bool_ \(\) -> TOP @ \[20\]
20-
do_pointers::1::bool_1 \(\) -> TOP @ \[21\]
21-
do_pointers::1::bool_2 \(\) -> TOP @ \[22\]
22-
do_pointers::1::x \(\) -> TOP @ \[23\]
23-
do_pointers::1::x \(\) -> 10 @ \[24\]
24-
do_pointers::1::x_p \(\) -> TOP @ \[25\]
25-
do_pointers::1::y \(\) -> TOP @ \[26\]
26-
do_pointers::1::y \(\) -> 20 @ \[27\]
27-
do_pointers::1::y_p \(\) -> TOP @ \[28\]
28-
do_pointers::1::x_p \(\) -> ptr ->\(do_pointers::1::x\) @ \[29\]
29-
do_pointers::1::x \(\) -> 30 @ \[30\]
30-
do_pointers::1::x \(\) -> 40 @ \[31\]
31-
do_pointers::1::x \(\) -> TOP @ \[32\]
32-
do_pointers::1::x \(\) -> 50 @ \[33\]
33-
do_pointers::1::y_p \(\) -> ptr ->\(do_pointers::1::x\) @ \[34\]
34-
do_pointers::1::x \(\) -> 60 @ \[35\]
35-
do_pointers::1::j \(\) -> TOP @ \[36\]
36-
do_pointers::1::j \(\) -> 60 @ \[37\]
15+
__CPROVER_rounding_mode \(\) -> 0 @ \[13\]
16+
__CPROVER_thread_id \(\) -> 0ul @ \[14\]
17+
__CPROVER_threads_exited \(\) -> TOP @ \[17\]
18+
do_pointers::1::bool_ \(\) -> TOP @ \[19\]
19+
do_pointers::1::bool_1 \(\) -> TOP @ \[20\]
20+
do_pointers::1::bool_2 \(\) -> TOP @ \[21\]
21+
do_pointers::1::x \(\) -> TOP @ \[22\]
22+
do_pointers::1::x \(\) -> 10 @ \[23\]
23+
do_pointers::1::x_p \(\) -> TOP @ \[24\]
24+
do_pointers::1::y \(\) -> TOP @ \[25\]
25+
do_pointers::1::y \(\) -> 20 @ \[26\]
26+
do_pointers::1::y_p \(\) -> TOP @ \[27\]
27+
do_pointers::1::x_p \(\) -> ptr ->\(do_pointers::1::x\) @ \[28\]
28+
do_pointers::1::x \(\) -> 30 @ \[29\]
29+
do_pointers::1::x \(\) -> 40 @ \[30\]
30+
do_pointers::1::x \(\) -> TOP @ \[31\]
31+
do_pointers::1::x \(\) -> 50 @ \[32\]
32+
do_pointers::1::y_p \(\) -> ptr ->\(do_pointers::1::x\) @ \[33\]
33+
do_pointers::1::x \(\) -> 60 @ \[34\]
34+
do_pointers::1::j \(\) -> TOP @ \[35\]
35+
do_pointers::1::j \(\) -> 60 @ \[36\]

regression/goto-analyzer/sensitivity-last-written-locations-structs/test.desc

Lines changed: 26 additions & 27 deletions
Original file line numberDiff line numberDiff line change
@@ -12,31 +12,30 @@ __CPROVER_malloc_is_new_array \(\) -> FALSE @ \[7\]
1212
__CPROVER_memory_leak \(\) -> TOP @ \[9\]
1313
__CPROVER_new_object \(\) -> TOP @ \[10\]
1414
__CPROVER_next_thread_key \(\) -> 0ul @ \[12\]
15-
__CPROVER_pipe_count \(\) -> 0u @ \[13\]
16-
__CPROVER_rounding_mode \(\) -> 0 @ \[14\]
17-
__CPROVER_thread_id \(\) -> 0ul @ \[15\]
18-
__CPROVER_threads_exited \(\) -> TOP @ \[18\]
19-
do_structs::1::bool_ \(\) -> TOP @ \[20\]
20-
do_structs::1::bool_1 \(\) -> TOP @ \[21\]
21-
do_structs::1::bool_2 \(\) -> TOP @ \[22\]
22-
do_structs::1::st \(\) -> \{\} @ \[23\]
23-
do_structs::1::st \(\) -> \{.x=10 @ \[24\]\} @ \[24\]
24-
do_structs::1::st \(\) -> \{.x=10 @ \[24\]\, .y=20 @ \[25\]\} @ \[25\]
25-
do_structs::1::st \(\) -> \{.x=30 @ \[26\]\, .y=20 @ \[25\]\} @ \[26\]
26-
do_structs::1::st \(\) -> \{.x=30 @ \[26\]\, .y=40 @ \[27\]\} @ \[27\]
27-
do_structs::1::st \(\) -> \{.x=30 @ \[26\]\, .y=30 @ \[28\]\} @ \[28\]
28-
do_structs::1::st \(\) -> \{.x=30 @ \[29\]\, .y=30 @ \[28\]\} @ \[29\]
29-
do_structs::1::st \(\) -> \{.x=5 @ \[30\]\, .y=30 @ \[28\]\} @ \[30\]
30-
do_structs::1::st \(\) -> \{.x=15 @ \[31\]\, .y=30 @ \[28\]\} @ \[31\]
31-
do_structs::1::st \(\) -> \{.x=15 @ \[31\]\, .y=10 @ \[32\]\} @ \[32\]
32-
do_structs::1::st \(\) -> \{.x=20 @ \[34\]\, .y=10 @ \[32\]\} @ \[34\]
33-
do_structs::1::st \(\) -> \{.x=20 @ \[34\, 36\]\, .y=10 @ \[32\]\} @ \[34\, 36\]
34-
do_structs::1::st \(\) -> \{.x=0 @ \[38\]\, .y=10 @ \[32\]\} @ \[38\]
35-
do_structs::1::st \(\) -> \{.x=3 @ \[40\]\, .y=10 @ \[32\]\} @ \[40\]
36-
do_structs::1::st \(\) -> \{.x=TOP @ \[40\, 42\]\, .y=10 @ \[32\]\} @ \[40\, 42\]
37-
do_structs::1::st \(\) -> \{.x=TOP @ \[40\, 42\, 45\]\, .y=10 @ \[32\]\} @ \[40\, 42\, 45\]
38-
do_structs::1::st \(\) -> \{.x=TOP @ \[40\, 42\, 45\]\, .y=10 @ \[47\]\} @ \[47\]
39-
do_structs::1::st \(\) -> \{.x=20 @ \[48\]\, .y=10 @ \[47\]\} @ \[48\]
40-
do_structs::1::new_age \(\) -> \{\} @ \[49\]
41-
do_structs::1::new_age \(\) -> \{.x=20 @ \[50\]\, .y=10 @ \[50\]\} @ \[50\]
15+
__CPROVER_rounding_mode \(\) -> 0 @ \[13\]
16+
__CPROVER_thread_id \(\) -> 0ul @ \[14\]
17+
__CPROVER_threads_exited \(\) -> TOP @ \[17\]
18+
do_structs::1::bool_ \(\) -> TOP @ \[19\]
19+
do_structs::1::bool_1 \(\) -> TOP @ \[20\]
20+
do_structs::1::bool_2 \(\) -> TOP @ \[21\]
21+
do_structs::1::st \(\) -> \{\} @ \[22\]
22+
do_structs::1::st \(\) -> \{.x=10 @ \[23\]\} @ \[23\]
23+
do_structs::1::st \(\) -> \{.x=10 @ \[23\]\, .y=20 @ \[24\]\} @ \[24\]
24+
do_structs::1::st \(\) -> \{.x=30 @ \[25\]\, .y=20 @ \[24\]\} @ \[25\]
25+
do_structs::1::st \(\) -> \{.x=30 @ \[25\]\, .y=40 @ \[26\]\} @ \[26\]
26+
do_structs::1::st \(\) -> \{.x=30 @ \[25\]\, .y=30 @ \[27\]\} @ \[27\]
27+
do_structs::1::st \(\) -> \{.x=30 @ \[28\]\, .y=30 @ \[27\]\} @ \[28\]
28+
do_structs::1::st \(\) -> \{.x=5 @ \[29\]\, .y=30 @ \[27\]\} @ \[29\]
29+
do_structs::1::st \(\) -> \{.x=15 @ \[30\]\, .y=30 @ \[27\]\} @ \[30\]
30+
do_structs::1::st \(\) -> \{.x=15 @ \[30\]\, .y=10 @ \[31\]\} @ \[31\]
31+
do_structs::1::st \(\) -> \{.x=20 @ \[33\]\, .y=10 @ \[31\]\} @ \[33\]
32+
do_structs::1::st \(\) -> \{.x=20 @ \[33\, 35\]\, .y=10 @ \[31\]\} @ \[33\, 35\]
33+
do_structs::1::st \(\) -> \{.x=0 @ \[37\]\, .y=10 @ \[31\]\} @ \[37\]
34+
do_structs::1::st \(\) -> \{.x=3 @ \[39\]\, .y=10 @ \[31\]\} @ \[39\]
35+
do_structs::1::st \(\) -> \{.x=TOP @ \[39\, 41\]\, .y=10 @ \[31\]\} @ \[39\, 41\]
36+
do_structs::1::st \(\) -> \{.x=TOP @ \[39\, 41\, 44\]\, .y=10 @ \[31\]\} @ \[39\, 41\, 44\]
37+
do_structs::1::st \(\) -> \{.x=TOP @ \[39\, 41\, 44\]\, .y=10 @ \[46\]\} @ \[46\]
38+
do_structs::1::st \(\) -> \{.x=20 @ \[47\]\, .y=10 @ \[46\]\} @ \[47\]
39+
do_structs::1::new_age \(\) -> \{\} @ \[48\]
40+
do_structs::1::new_age \(\) -> \{.x=20 @ \[49\]\, .y=10 @ \[49\]\} @ \[49\]
4241
--

regression/goto-analyzer/sensitivity-last-written-locations-variables/test.desc

Lines changed: 30 additions & 31 deletions
Original file line numberDiff line numberDiff line change
@@ -11,35 +11,34 @@ __CPROVER_malloc_is_new_array \(\) -> FALSE @ \[7\]
1111
__CPROVER_memory_leak \(\) -> TOP @ \[9\]
1212
__CPROVER_new_object \(\) -> TOP @ \[10\]
1313
__CPROVER_next_thread_key \(\) -> 0ul @ \[12\]
14-
__CPROVER_pipe_count \(\) -> 0u @ \[13\]
15-
__CPROVER_rounding_mode \(\) -> 0 @ \[14\]
16-
__CPROVER_thread_id \(\) -> 0ul @ \[15\]
17-
__CPROVER_threads_exited \(\) -> TOP @ \[18\]
18-
global_x \(\) -> 0 @ \[19\]
19-
do_variables::1::bool_ \(\) -> TOP @ \[21\]
20-
do_variables::1::bool_1 \(\) -> TOP @ \[22\]
21-
do_variables::1::bool_2 \(\) -> TOP @ \[23\]
22-
global_x \(\) -> 5 @ \[24\]
23-
do_variables::1::x \(\) -> TOP @ \[25\]
24-
do_variables::1::x \(\) -> 10 @ \[26\]
25-
do_variables::1::y \(\) -> TOP @ \[27\]
26-
do_variables::1::y \(\) -> 20 @ \[28\]
27-
do_variables::1::x \(\) -> 30 @ \[29\]
28-
do_variables::1::y \(\) -> 40 @ \[30\]
29-
do_variables::1::y \(\) -> 30 @ \[31\]
30-
do_variables::1::x \(\) -> 30 @ \[32\]
31-
do_variables::1::x \(\) -> 5 @ \[33\]
32-
do_variables::1::x \(\) -> 15 @ \[34\]
33-
do_variables::1::y \(\) -> 10 @ \[35\]
34-
do_variables::1::x \(\) -> 20 @ \[37\]
35-
do_variables::1::x \(\) -> 20 @ \[37\, 39\]
36-
do_variables::1::x \(\) -> 50 @ \[41\]
37-
do_variables::1::x \(\) -> 20 @ \[43\]
38-
do_variables::1::x \(\) -> TOP @ \[43\, 45\]
39-
do_variables::1::x \(\) -> 0 @ \[47\]
40-
do_variables::1::x \(\) -> 3 @ \[49\]
41-
do_variables::1::x \(\) -> TOP @ \[49\, 51\]
42-
do_variables::1::x \(\) -> TOP @ \[49\, 51\, 54\]
43-
do_variables::1::y \(\) -> 10 @ \[56\]
44-
do_variables::1::x \(\) -> 20 @ \[57\]
14+
__CPROVER_rounding_mode \(\) -> 0 @ \[13\]
15+
__CPROVER_thread_id \(\) -> 0ul @ \[14\]
16+
__CPROVER_threads_exited \(\) -> TOP @ \[17\]
17+
global_x \(\) -> 0 @ \[18\]
18+
do_variables::1::bool_ \(\) -> TOP @ \[20\]
19+
do_variables::1::bool_1 \(\) -> TOP @ \[21\]
20+
do_variables::1::bool_2 \(\) -> TOP @ \[22\]
21+
global_x \(\) -> 5 @ \[23\]
22+
do_variables::1::x \(\) -> TOP @ \[24\]
23+
do_variables::1::x \(\) -> 10 @ \[25\]
24+
do_variables::1::y \(\) -> TOP @ \[26\]
25+
do_variables::1::y \(\) -> 20 @ \[27\]
26+
do_variables::1::x \(\) -> 30 @ \[28\]
27+
do_variables::1::y \(\) -> 40 @ \[29\]
28+
do_variables::1::y \(\) -> 30 @ \[30\]
29+
do_variables::1::x \(\) -> 30 @ \[31\]
30+
do_variables::1::x \(\) -> 5 @ \[32\]
31+
do_variables::1::x \(\) -> 15 @ \[33\]
32+
do_variables::1::y \(\) -> 10 @ \[34\]
33+
do_variables::1::x \(\) -> 20 @ \[36\]
34+
do_variables::1::x \(\) -> 20 @ \[36\, 38\]
35+
do_variables::1::x \(\) -> 50 @ \[40\]
36+
do_variables::1::x \(\) -> 20 @ \[42\]
37+
do_variables::1::x \(\) -> TOP @ \[42\, 44\]
38+
do_variables::1::x \(\) -> 0 @ \[46\]
39+
do_variables::1::x \(\) -> 3 @ \[48\]
40+
do_variables::1::x \(\) -> TOP @ \[48\, 50\]
41+
do_variables::1::x \(\) -> TOP @ \[48\, 50\, 53\]
42+
do_variables::1::y \(\) -> 10 @ \[55\]
43+
do_variables::1::x \(\) -> 20 @ \[56\]
4544
--

0 commit comments

Comments
 (0)