File tree Expand file tree Collapse file tree 7 files changed +53
-0
lines changed
static-symbol-referencing Expand file tree Collapse file tree 7 files changed +53
-0
lines changed Original file line number Diff line number Diff line change @@ -53,6 +53,7 @@ add_subdirectory(statement-list)
53
53
add_subdirectory (systemc )
54
54
add_subdirectory (contracts )
55
55
add_subdirectory (goto-harness )
56
+ add_subdirectory (goto-harness-gb-input )
56
57
add_subdirectory (goto-harness-multi-file-project )
57
58
add_subdirectory (goto-cc-file-local )
58
59
add_subdirectory (goto-cc-regression-gh-issue-5380 )
Original file line number Diff line number Diff line change @@ -20,6 +20,7 @@ DIRS = cbmc \
20
20
goto-analyzer-taint \
21
21
goto-gcc \
22
22
goto-harness \
23
+ goto-harness-gb-input \
23
24
goto-cl \
24
25
goto-cc-cbmc \
25
26
cbmc-cpp \
Original file line number Diff line number Diff line change
1
+ add_test_pl_tests (
2
+ "../chain.sh \
3
+ $<TARGET_FILE:goto-harness> \
4
+ $<TARGET_FILE:cbmc>" )
Original file line number Diff line number Diff line change
1
+ default : tests.log
2
+
3
+ include ../../src/config.inc
4
+ include ../../src/common
5
+
6
+ GOTO_HARNESS_EXE =../../../src/goto-harness/goto-harness
7
+ CBMC_EXE =../../../src/cbmc/cbmc
8
+
9
+ test :
10
+ @../test.pl -e -p -c " ../chain.sh $( GOTO_HARNESS_EXE) $( CBMC_EXE) "
11
+
12
+ tests.log : ../test.pl
13
+ @../test.pl -e -p -c " ../chain.sh $( GOTO_HARNESS_EXE) $( CBMC_EXE) "
14
+
15
+ clean :
16
+ find -name ' *.out' -execdir $(RM ) ' {}' \;
17
+ find -name ' *.gb' -execdir $(RM ) {} \;
18
+ $(RM ) tests.log
Original file line number Diff line number Diff line change
1
+ #! /bin/bash
2
+
3
+ set -e
4
+
5
+ goto_harness=$1
6
+ cbmc=$2
7
+
8
+ input_goto_binary=${*: $# }
9
+ args=${*: 3: $# -3}
10
+ harness_c_file=" generated-harness-file.c"
11
+ entry_point=' generated_harness_test_function'
12
+
13
+ if [ -e " $harness_c_file " ]; then
14
+ rm -rf " $harness_c_file "
15
+ fi
16
+
17
+ $goto_harness " $input_goto_binary " " $harness_c_file " ${args}
18
+ $cbmc " $harness_c_file "
Original file line number Diff line number Diff line change
1
+ CORE
2
+ aws_byte_buf_append_harness.goto
3
+ --harness-type call-function --harness-function-name generated_harness_test_function --function aws_byte_buf_append
4
+ ^EXIT=6$
5
+ ^SIGNAL=0$
6
+ --
7
+ ^CONVERSION ERROR$
8
+ --
9
+ For this particular error, we care mostly that goto-harness
10
+ doesn't reference static symbols in other files, which would
11
+ cause analysis through CBMC to fail with a conversion error
You can’t perform that action at this time.
0 commit comments