Skip to content

Commit 2936db0

Browse files
committed
---
yaml --- r: 83310 b: refs/heads/variant-submodule c: 9a26a63 h: refs/heads/develop
1 parent c764708 commit 2936db0

File tree

14 files changed

+2455
-1
lines changed

14 files changed

+2455
-1
lines changed

[refs]

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -131,7 +131,7 @@ refs/heads/unwind-counters4: 57aedaa3fe3995b30ba69c96c9f04df79f8e8ff8
131131
refs/heads/value-set-make-member: 0f8404cb460f55d43bc253e12f1bde7fd7ed4d37
132132
refs/heads/value-set-member-fix: 2c87bd4c0d9e1954e2de6af0118fa1ef296ae548
133133
"refs/heads/value_set_fi_hacks": 3d243543adb4ff450596e7994e2fa1d590ec1e1b
134-
refs/heads/variant-submodule: c750f5e9eec033096f42e04518a9f6591a9cc105
134+
refs/heads/variant-submodule: 9a26a63c03d4adcd7dff59e8435f116b10285fa4
135135
refs/heads/windows-console-streambuf: b984ac7bd772da956bb5656f0072d85b3fdbbf34
136136
refs/tags/cbmc-5.10: 097cf712f57d59cff9c53a9fb7b9b81be1245f93
137137
refs/tags/cbmc-5.11: 90d0de91b0918c9e5d5ed250cae62241ae38392a

branches/variant-submodule/regression/CMakeLists.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,7 @@ add_subdirectory(cbmc-incr-smt2)
3636
add_subdirectory(cbmc-incr)
3737
add_subdirectory(cbmc-with-incr)
3838
add_subdirectory(array-refinement-with-incr)
39+
add_subdirectory(goto-instrument-json)
3940
add_subdirectory(goto-instrument-wmm-core)
4041
add_subdirectory(goto-instrument-typedef)
4142
add_subdirectory(smt2_solver)

branches/variant-submodule/regression/Makefile

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@ DIRS = cbmc \
1414
cbmc-incr \
1515
cbmc-with-incr \
1616
array-refinement-with-incr \
17+
goto-instrument-json \
1718
goto-instrument-wmm-core \
1819
goto-instrument-typedef \
1920
smt2_solver \
Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
add_test_pl_tests(
2+
"${CMAKE_CURRENT_SOURCE_DIR}/chain.sh $<TARGET_FILE:symtab2gb> $<TARGET_FILE:goto-instrument>"
3+
)
Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
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/goto-instrument/goto-instrument'
8+
9+
tests.log:
10+
@../test.pl -e -p -c '../chain.sh $(exe) ../../../src/symtab2gb/symtab2gb ../../../src/goto-instrument/goto-instrument'
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
Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
#!/bin/bash
2+
3+
set -e
4+
5+
symtab2gb_exe=$1
6+
goto_instrument_exe=$2
7+
8+
name=${*:$#}
9+
10+
args=${*:3:$#-3}
11+
12+
$symtab2gb_exe "${name}"
13+
$goto_instrument_exe "${args}" a.out
Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
CORE
2+
test-signed.json
3+
--dump-c
4+
^EXIT=0$
5+
^SIGNAL=0$
6+
signed char rol8=\(unsigned char\)'8' << 3 % 8 \| \(unsigned char\)'8' >> 8 - 3 % 8;
7+
--
8+
irep
9+
--
10+
This tests that the rol goto operation is converted into suitable bit
11+
twiddling operations in C representation. This is also checks that
12+
signed rotations cast to unsigned to perform the shifts to avoid
13+
sign bit problems. Also the negative check for "irep" checks that no
14+
irep is failing conversion.

0 commit comments

Comments
 (0)