Skip to content

Commit 8595ecf

Browse files
esteffinEnrico Steffinlongo
authored and
Enrico Steffinlongo
committed
Fixed goto-instrument regressions
1 parent 20e3767 commit 8595ecf

File tree

31 files changed

+31
-31
lines changed

31 files changed

+31
-31
lines changed

regression/goto-instrument/add-library1/test.desc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
CORE
22
main.c
3-
--add-library --generate-function-body-options assert-false --generate-function-body '([^_]*)'
3+
--add-library --generate-function-body-options assert-false --generate-function-body '([^_]*)' _ --no-standard-checks
44
^EXIT=0$
55
^SIGNAL=0$
66
VERIFICATION SUCCESSFUL

regression/goto-instrument/harness1/test.desc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
CORE
22
main.c
3-
--model-argc-argv 3 --dump-c --harness
3+
--model-argc-argv 3 --dump-c --harness _ --no-standard-checks
44
^EXIT=0$
55
^SIGNAL=0$
66
Adding up to 3 command line arguments

regression/goto-instrument/insert-final-assert-false1/test.desc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
CORE
22
main.c
3-
--insert-final-assert-false main
3+
--insert-final-assert-false main _ --no-standard-checks
44
^EXIT=0$
55
^SIGNAL=0$
66
insert-final-assert-false \(should fail\) : SUCCESS

regression/goto-instrument/labels1/test.desc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
CORE
22
main.c
3-
3+
--malloc-may-fail _ --no-standard-checks
44
Labels: label_zero$
55
Labels: label_one$
66
Labels: label_two$

regression/goto-instrument/lexical-loops1/test.desc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
CORE
22
test.c
3-
--show-lexical-loops
3+
--show-lexical-loops _ --no-standard-checks
44
2 is head of \{ 2, 3, 4, 5 \(backedge\) \}
55
^EXIT=0$
66
^SIGNAL=0$

regression/goto-instrument/lexical-loops5/test.desc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
CORE
22
test.c
3-
--show-lexical-loops
3+
--show-lexical-loops _ --no-standard-checks
44
2 is head of \{ 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12 \(backedge\) \}
55
5 is head of \{ 5, 6, 7, 8 \(backedge\) \}
66
^EXIT=0$

regression/goto-instrument/region-analysis-1/test.desc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
CORE
22
test.c
3-
--show-sese-regions
3+
--show-sese-regions _ --no-standard-checks
44
^Region starting at \(1, [0-9]+\) IF .*2.* THEN GOTO 1 ends at \(5, [0-9]+\) 2: SKIP$
55
^Region starting at \(0, [0-9]+\) IF .*5.* THEN GOTO 3 ends at \(8, [0-9]+\) 4: SKIP$
66
^Function contains 2 single-entry, single-exit regions:$

regression/goto-instrument/region-analysis-2/test.desc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
CORE
22
test.c
3-
--show-sese-regions
3+
--show-sese-regions _ --no-standard-checks
44
^Function contains 2 single-entry, single-exit regions:$
55
^Region starting at \(4, [0-9]+\) IF .*2.* THEN GOTO 1 ends at \(8, [0-9]+\) 2: SKIP$
66
^Region starting at \(0, [0-9]+\) IF .*7.* THEN GOTO 3 ends at \(11, [0-9]+\) 4: SKIP$

regression/goto-instrument/region-analysis-3/test.desc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
CORE
22
test.c
3-
--show-sese-regions
3+
--show-sese-regions _ --no-standard-checks
44
^Function contains 2 single-entry, single-exit regions:$
55
^Region starting at \(1, [0-9]+\) IF .*2.* THEN GOTO 1 ends at \(5, [0-9]+\) 2: SKIP$
66
^Region starting at \(0, [0-9]+\) IF .*5.* THEN GOTO 3 ends at \(12, [0-9]+\) 5: END_FUNCTION$

regression/goto-instrument/region-analysis-9/test.desc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
CORE
22
test.c
3-
--show-sese-regions
3+
--show-sese-regions _ --no-standard-checks
44
^Function contains 2 single-entry, single-exit regions:$
55
^Region starting at \(2, [0-9]+\) .*::x := 0 ends at \(21, [0-9]+\) 6: ASSIGN main::argc := main::argc \+ 1$
66
^Region starting at \(0, [0-9]+\) IF .*5.* THEN GOTO 7 ends at \(24, [0-9]+\) 8: SKIP$

regression/goto-instrument/restrict-function-pointer-by-name-global/test.desc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
CORE
22
test.c
3-
--restrict-function-pointer-by-name fp/f,g
3+
--restrict-function-pointer-by-name fp/f,g _ --no-standard-checks
44
\[main\.pointer_dereference\.1\] line \d+ dereferenced function pointer must be one of \[(f, g)|(g, f)\]: SUCCESS
55
\[main.assertion.1\] line \d+ assertion: FAILURE
66
\[main.assertion.2\] line \d+ assertion: FAILURE

regression/goto-instrument/restrict-function-pointer-by-name-local/test.desc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
CORE
22
test.c
3-
--restrict-function-pointer-by-name main::1::fp/f
3+
--restrict-function-pointer-by-name main::1::fp/f _ --no-standard-checks
44
\[main\.pointer_dereference\.1\] line \d+ dereferenced function pointer must be f: SUCCESS
55
\[main\.assertion\.1\] line \d+ assertion fp\(\) == 1: SUCCESS
66
f\(\)

regression/goto-instrument/restrict-function-pointer-by-name-parameter/test.desc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
CORE
22
test.c
3-
--restrict-function-pointer-by-name use_fp::fp/f
3+
--restrict-function-pointer-by-name use_fp::fp/f _ --no-standard-checks
44
\[use_fp\.pointer_dereference\.1\] line \d+ dereferenced function pointer must be f: SUCCESS
55
\[use_fp\.assertion\.1\] line \d+ assertion fp\(\) == 1: SUCCESS
66
f\(\)

regression/goto-instrument/restrict-function-pointer-goto-target/test.desc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
CORE
22
test.c
3-
--restrict-function-pointer main.function_pointer_call.1/f
3+
--restrict-function-pointer main.function_pointer_call.1/f _ --no-standard-checks
44
^EXIT=0$
55
^SIGNAL=0$
66
\[main.pointer_dereference.1\] line \d+ dereferenced function pointer must be f: SUCCESS

regression/goto-instrument/restrict-function-pointer-to-complex-expression/test.desc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
CORE
22
test.c
3-
--restrict-function-pointer 'use_fg.function_pointer_call.1/f,g'
3+
--restrict-function-pointer 'use_fg.function_pointer_call.1/f,g' _ --no-standard-checks
44
\[use_fg.assertion.1\] line \d+ assertion \(choice \? fptr : gptr\)\(10\) == 10 \+ choice: SUCCESS
55
\[use_fg.pointer_dereference.1\] line \d+ dereferenced function pointer must be one of \[(f|g), (f|g)\]: SUCCESS
66
^EXIT=0$

regression/goto-instrument/restrict-function-pointer-to-multiple-functions-incorrectly/test.desc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
CORE
22
test.c
3-
--restrict-function-pointer use_f.function_pointer_call.1/f,g
3+
--restrict-function-pointer use_f.function_pointer_call.1/f,g _ --no-standard-checks
44
\[use_f\.pointer_dereference\.1\] line \d+ dereferenced function pointer must be one of \[(f|g), (f|g)\]: FAILURE
55
^EXIT=10$
66
^SIGNAL=0$

regression/goto-instrument/restrict-function-pointer-to-multiple-functions-via-file-and-command-line-options/test.desc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
CORE
22
test.c
3-
--function-pointer-restrictions-file restrictions.json --restrict-function-pointer use_f.function_pointer_call.1/g --restrict-function-pointer-by-name use_f::fptr/h
3+
--function-pointer-restrictions-file restrictions.json --restrict-function-pointer use_f.function_pointer_call.1/g --restrict-function-pointer-by-name use_f::fptr/h _ --no-standard-checks
44
\[use_f\.pointer_dereference\.1\] line \d+ dereferenced function pointer must be one of \[(f|g|h), (f|g|h), (f|g|h)\]: FAILURE
55
^EXIT=10$
66
^SIGNAL=0$

regression/goto-instrument/restrict-function-pointer-to-multiple-functions-via-file/test.desc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
CORE
22
test.c
3-
--function-pointer-restrictions-file restrictions.json
3+
--function-pointer-restrictions-file restrictions.json _ --no-standard-checks
44
\[use_f\.pointer_dereference\.1\] line \d+ dereferenced function pointer must be one of \[(f|g), (f|g)\]: FAILURE
55
^EXIT=10$
66
^SIGNAL=0$

regression/goto-instrument/restrict-function-pointer-to-multiple-functions-via-multiple-files/test.desc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
CORE
22
test.c
3-
--function-pointer-restrictions-file restrictions_1.json --function-pointer-restrictions-file restrictions_2.json
3+
--function-pointer-restrictions-file restrictions_1.json --function-pointer-restrictions-file restrictions_2.json _ --no-standard-checks
44
\[use_f\.pointer_dereference\.1\] line \d+ dereferenced function pointer must be one of \[(f|g), (f|g)\]: FAILURE
55
^EXIT=10$
66
^SIGNAL=0$

regression/goto-instrument/restrict-function-pointer-to-single-function-incorrectly/test.desc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
CORE
22
test.c
3-
--restrict-function-pointer use_f.function_pointer_call.1/f
3+
--restrict-function-pointer use_f.function_pointer_call.1/f _ --no-standard-checks
44
\[use_f\.pointer_dereference\.1\] line \d+ dereferenced function pointer must be f: FAILURE
55
^EXIT=10$
66
^SIGNAL=0$

regression/goto-instrument/slice01/test.desc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
CORE
22
main.c
3-
--unwind 2 --full-slice --add-library
3+
--no-malloc-may-fail --unwind 2 --full-slice --add-library _ --no-standard-checks
44
^EXIT=0$
55
^SIGNAL=0$
66
^VERIFICATION SUCCESSFUL$
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
CORE
22
main.c
3-
--full-slice --add-library
3+
--full-slice --add-library _ --no-standard-checks
44
^EXIT=0$
55
^SIGNAL=0$
66
^VERIFICATION SUCCESSFUL$

regression/goto-instrument/slice19/test.desc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
CORE
22
main.c
3-
--full-slice
3+
--full-slice _ --no-standard-checks
44
^EXIT=0$
55
^SIGNAL=0$
66
^VERIFICATION SUCCESSFUL$
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
CORE
22
main.c
3-
--full-slice --add-library
3+
--no-malloc-may-fail --full-slice --add-library _ --no-standard-checks
44
^EXIT=0$
55
^SIGNAL=0$
66
^VERIFICATION SUCCESSFUL$
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
CORE
22
main.c
3-
--full-slice --add-library
3+
--no-malloc-may-fail --full-slice --add-library _ --no-standard-checks
44
^EXIT=0$
55
^SIGNAL=0$
66
^VERIFICATION SUCCESSFUL$

regression/goto-instrument/slice_general007/test.desc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
KNOWNBUG
22
main.c
3-
--full-slice --add-library
3+
--full-slice --add-library --no-malloc-may-fail _ --no-standard-checks
44
^EXIT=10$
55
^SIGNAL=0$
66
^VERIFICATION FAILED$

regression/goto-instrument/typedef4/test.desc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
CORE
22
main.c
3-
--dump-c
3+
--dump-c _ --no-standard-checks
44
^EXIT=0$
55
^SIGNAL=0$
66
--

regression/goto-instrument/unwind-assert2/partial.desc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
CORE
22
main.c
3-
--unwind 9 --unwinding-assertions --partial-loops
3+
--unwind 9 --unwinding-assertions --partial-loops _ --no-standard-checks
44
^\[main.assertion.1\] line 6 fails when fully unwinding the loop: FAILURE$
55
^\*\* 2 of 2 failed
66
^EXIT=10$

regression/goto-instrument/unwind-assert2/test.desc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
CORE
22
main.c
3-
--unwind 9 --unwinding-assertions
3+
--unwind 9 --unwinding-assertions _ --no-standard-checks
44
^\[main.assertion.1\] line 6 fails when fully unwinding the loop: SUCCESS$
55
^\*\* 1 of 2 failed
66
^EXIT=10$

regression/goto-instrument/value-set-fi-fp-removal4/test.desc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
CORE
22
test.c
3-
--value-set-fi-fp-removal
3+
--value-set-fi-fp-removal _ --no-standard-checks
44
^EXIT=10$
55
^SIGNAL=0$
66
^file test.c line 20 function main: replacing function pointer by 2 possible targets$

regression/goto-instrument/value-set-fi-fp-removal5/test.desc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
CORE
22
test.c
3-
--value-set-fi-fp-removal
3+
--value-set-fi-fp-removal _ --no-standard-checks
44
^EXIT=10$
55
^SIGNAL=0$
66
^file test.c line 19 function main: replacing function pointer by 0 possible targets$

0 commit comments

Comments
 (0)