File tree Expand file tree Collapse file tree 12 files changed +35
-24
lines changed
goto-cc-cbmc-shared-options Expand file tree Collapse file tree 12 files changed +35
-24
lines changed Original file line number Diff line number Diff line change @@ -58,6 +58,10 @@ add_subdirectory(goto-cc-file-local)
58
58
add_subdirectory (goto-cc-regression-gh-issue-5380 )
59
59
add_subdirectory (linking-goto-binaries )
60
60
add_subdirectory (symtab2gb )
61
+ add_subdirectory (solver-hardness )
62
+ if (NOT WIN32 )
63
+ add_subdirectory (goto-ld )
64
+ endif ()
61
65
add_subdirectory (validate-trace-xml-schema )
62
66
add_subdirectory (cbmc-primitives )
63
67
add_subdirectory (goto-interpreter )
@@ -67,8 +71,3 @@ if(WITH_MEMORY_ANALYZER)
67
71
add_subdirectory (snapshot-harness )
68
72
add_subdirectory (memory-analyzer )
69
73
endif ()
70
-
71
- add_subdirectory (solver-hardness )
72
- if (NOT WIN32 )
73
- add_subdirectory (goto-ld )
74
- endif ()
Original file line number Diff line number Diff line change @@ -19,14 +19,16 @@ DIRS = cbmc \
19
19
test-script \
20
20
goto-analyzer-taint \
21
21
goto-gcc \
22
- goto-harness \
23
22
goto-cl \
24
23
goto-cc-cbmc \
24
+ goto-cc-cbmc-shared-options \
25
25
cbmc-cpp \
26
26
goto-cc-goto-analyzer \
27
27
statement-list \
28
28
systemc \
29
29
contracts \
30
+ goto-harness \
31
+ goto-harness-multi-file-project \
30
32
goto-cc-file-local \
31
33
goto-cc-regression-gh-issue-5380 \
32
34
linking-goto-binaries \
@@ -36,6 +38,7 @@ DIRS = cbmc \
36
38
validate-trace-xml-schema \
37
39
cbmc-primitives \
38
40
goto-interpreter \
41
+ cbmc-sequentialization \
39
42
# Empty last line
40
43
41
44
ifeq ($(OS ) ,Windows_NT)
Original file line number Diff line number Diff line change @@ -29,7 +29,7 @@ case $a in
29
29
esac
30
30
done
31
31
32
- $goto_cc $cfile -o $ofile
33
- $goto_instrument --inline --remove-pointers $ofile $instrfile
32
+ $goto_cc $cfile -o $ofile || exit 1
33
+ $goto_instrument --inline --remove-pointers $ofile $instrfile || exit 1
34
34
timeout 5 $goto_instrument --accelerate $instrfile $accfile
35
35
timeout 5 $cbmc --unwind 5 --z3 $cbmcargs $accfile
Original file line number Diff line number Diff line change @@ -4,19 +4,13 @@ include ../../src/config.inc
4
4
include ../../src/common
5
5
6
6
ifeq ($(BUILD_ENV_ ) ,MSVC)
7
- GCC_ONLY = -X gcc-only
7
+ POSIX_ONLY = -X requires_posix_only_headers
8
8
else
9
- GCC_ONLY =
9
+ POSIX_ONLY =
10
10
endif
11
11
12
12
test :
13
- @../test.pl -e -p -c " ../../../src/cbmc/cbmc --validate-goto-model --validate-ssa-equation" -X smt-backend $(GCC_ONLY )
14
-
15
- test-cprover-smt2 :
16
- @../test.pl -e -p -c " ../../../src/cbmc/cbmc --cprover-smt2" -X broken-smt-backend $(GCC_ONLY )
17
-
18
- test-paths-lifo :
19
- @../test.pl -e -p -c " ../../../src/cbmc/cbmc --paths lifo" -X thorough-paths -X smt-backend -X paths-lifo-expected-failure $(GCC_ONLY )
13
+ @../test.pl -e -p -c " ../../../src/cbmc/cbmc --validate-goto-model --validate-ssa-equation" $(POSIX_ONLY )
20
14
21
15
tests.log : ../test.pl test
22
16
Original file line number Diff line number Diff line change @@ -6,16 +6,18 @@ include ../../src/common
6
6
ifeq ($(BUILD_ENV_ ) ,MSVC)
7
7
exe=../../../src/goto-cc/goto-cl
8
8
is_windows=true
9
+ exclude_broken_windows_tests=-X winbug
9
10
else
10
11
exe=../../../src/goto-cc/goto-cc
11
12
is_windows=false
13
+ exclude_broken_windows_tests=
12
14
endif
13
15
14
16
test :
15
- @../test.pl -e -p -c ' ../chain.sh $(exe) ../../../src/cbmc/cbmc $(is_windows)'
17
+ @../test.pl -e -p -c ' ../chain.sh $(exe) ../../../src/cbmc/cbmc $(is_windows)' $( exclude_broken_windows_tests )
16
18
17
19
tests.log :
18
- @../test.pl -e -p -c ' ../chain.sh $(exe) ../../../src/cbmc/cbmc $(is_windows)'
20
+ @../test.pl -e -p -c ' ../chain.sh $(exe) ../../../src/cbmc/cbmc $(is_windows)' $( exclude_broken_windows_tests )
19
21
20
22
show :
21
23
@for dir in * ; do \
Original file line number Diff line number Diff line change 1
1
#! /usr/bin/env bash
2
2
3
+ set -e
4
+
3
5
goto_cc=$1
4
6
cbmc=$2
5
7
is_windows=$3
Original file line number Diff line number Diff line change 1
1
#! /usr/bin/env bash
2
2
3
+ set -e
4
+
3
5
goto_cc=$1
4
6
cbmc=$2
5
7
is_windows=$3
Original file line number Diff line number Diff line change 1
1
#! /usr/bin/env bash
2
2
3
+ set -e
4
+
3
5
goto_cc=$1
4
6
goto_analyzer=$2
5
7
is_windows=$3
Original file line number Diff line number Diff line change 1
1
#! /usr/bin/env bash
2
2
3
+ set -e
4
+
3
5
goto_cc=$1
4
6
cbmc=$2
5
7
is_windows=$3
Original file line number Diff line number Diff line change 1
1
#! /bin/bash
2
2
3
+ set -e
4
+
3
5
GC=$1
4
6
GI=$2
5
7
is_windows=$3
@@ -9,7 +11,7 @@ name=${name%.c}
9
11
10
12
args=${*: 4: $# -4}
11
13
12
- rm " ${name} .gb"
14
+ rm -f " ${name} .gb"
13
15
if [[ " ${is_windows} " == " true" ]]; then
14
16
" $GC " " ${name} .c" --function fun
15
17
mv " ${name} .exe" " ${name} .gb"
Original file line number Diff line number Diff line change 1
1
#! /bin/bash
2
2
3
+ set -e
4
+
3
5
src=../../../src
4
6
goto_cc=$src /goto-cc/goto-cc
5
7
goto_instrument=$src /goto-instrument/goto-instrument
16
18
$goto_cc -o $name .o $name .c
17
19
18
20
$goto_instrument --k-induction $k --base-case $name .o $name .base.o
19
- $cbmc $name .base.o
20
- if [ $? == 0 ] ; then echo " ## Base case passes" ; else echo " ## Base case fails" ; fi
21
+ if $cbmc $name .base.o ; then echo " ## Base case passes" ; else echo " ## Base case fails" ; fi
21
22
22
23
$goto_instrument --k-induction $k --step-case $name .o $name .step.o
23
- $cbmc $name .step.o
24
- if [ $? == 0 ] ; then echo " ## Step case passes" ; else echo " ## Step case fails" ; fi
24
+ if $cbmc $name .step.o ; then echo " ## Step case passes" ; else echo " ## Step case fails" ; fi
Original file line number Diff line number Diff line change 1
1
#! /bin/bash
2
+
3
+ set -e
4
+
2
5
symtab2gb_exe=$1
3
6
cbmc_exe=$2
4
7
You can’t perform that action at this time.
0 commit comments