File tree Expand file tree Collapse file tree 12 files changed +693
-49
lines changed
show_foreign_symbol_table Expand file tree Collapse file tree 12 files changed +693
-49
lines changed Original file line number Diff line number Diff line change @@ -67,6 +67,7 @@ add_subdirectory(goto-cc-file-local)
67
67
add_subdirectory (goto-cc-regression-gh-issue-5380)
68
68
add_subdirectory (linking-goto-binaries)
69
69
add_subdirectory (symtab2gb)
70
+ add_subdirectory (symtab2gb-cbmc)
70
71
add_subdirectory (solver-hardness)
71
72
if (NOT WIN32 )
72
73
add_subdirectory (goto-ld)
Original file line number Diff line number Diff line change @@ -42,6 +42,7 @@ DIRS = cbmc \
42
42
goto-cc-regression-gh-issue-5380 \
43
43
linking-goto-binaries \
44
44
symtab2gb \
45
+ symtab2gb-cbmc \
45
46
solver-hardness \
46
47
goto-ld \
47
48
validate-trace-xml-schema \
Original file line number Diff line number Diff line change
1
+ add_test_pl_tests(
2
+ "${CMAKE_CURRENT_SOURCE_DIR} /chain.sh $<TARGET_FILE:symtab2gb> $<TARGET_FILE:cbmc>"
3
+ )
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
+ test :
7
+ @../test.pl -e -p -c ' ../chain.sh $(exe) ../../../src/symtab2gb/symtab2gb ../../../src/cbmc/cbmc'
8
+
9
+ tests.log :
10
+ @../test.pl -e -p -c ' ../chain.sh $(exe) ../../../src/symtab2gb/symtab2gb ../../../src/cbmc/cbmc'
11
+
12
+ clean :
13
+ @for dir in * ; do \
14
+ $(RM ) tests.log; \
15
+ if [ -d " $$ dir" ]; then \
16
+ cd " $$ dir" ; \
17
+ $(RM ) * .out * .gb; \
18
+ cd ..; \
19
+ fi \
20
+ done
Original file line number Diff line number Diff line change
1
+ #! /bin/bash
2
+
3
+ set -e
4
+
5
+ symtab2gb_exe=$1
6
+ cbmc_exe=$2
7
+ source=" ${@: -1} "
8
+ goto_binary=" $source .gb"
9
+ cbmc_desc_arguments=" ${@: 3: $# -3} "
10
+
11
+ $symtab2gb_exe " $source " --out " $goto_binary "
12
+ $cbmc_exe $cbmc_desc_arguments " $goto_binary "
Original file line number Diff line number Diff line change
1
+ This directory contains tests based on converting json symtab files to goto
2
+ binaries using the symtab2gb binary and then passing the generated goto binary
3
+ to cbmc. Additional arguments specified in the ` .desc ` file will be passed to
4
+ the cbmc binary.
Original file line number Diff line number Diff line change
1
+ CORE
2
+ rust.json
3
+ --json-ui --show-symbol-table
4
+ "symbolTable":
5
+ "mode": "rust",
6
+ ^EXIT=0$
7
+ ^SIGNAL=0$
8
+ --
9
+ symbol \w+ has unknown mode
10
+ --
11
+ Test that --show-symbol-table with --json-ui correctly shows the source language
12
+ mode of a symbol, even if that language mode is unsupported.
Original file line number Diff line number Diff line change
1
+ CORE
2
+ rust.json
3
+ --show-symbol-table
4
+ Symbols:
5
+ Mode\.+: rust
6
+ ^EXIT=0$
7
+ ^SIGNAL=0$
8
+ --
9
+ symbol \w+ has unknown mode
10
+ --
11
+ Test that --show-symbol-table correctly shows the source language mode of a
12
+ symbol, even if that language mode is unsupported.
You can’t perform that action at this time.
0 commit comments