Skip to content

Commit 8123fc9

Browse files
committed
Updates requested in the PR.
1 parent 9716701 commit 8123fc9

File tree

12 files changed

+20
-35
lines changed

12 files changed

+20
-35
lines changed

.travis.yml

-1
Original file line numberDiff line numberDiff line change
@@ -162,7 +162,6 @@ jobs:
162162
- RUN_CBMC_TESTS="false"
163163
- RUN_SECURITY_TESTS="true"
164164
- CCACHE_CPP2=yes
165-
- EXTRA_CXXFLAGS="-DDEBUG"
166165

167166

168167
allow_failures:

CMakeLists.txt

+1-1
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ set(CMAKE_CXX_STANDARD_REQUIRED true)
4343

4444
set(CMAKE_EXPORT_COMPILE_COMMANDS true)
4545

46-
set(enable_security_tests off CACHE BOOL "Whether tests of the security analyser should be enabled.")
46+
set(enable_security_tests on CACHE BOOL "Whether tests of the security analyser should be enabled.")
4747
set(enable_cbmc_tests off CACHE BOOL "Whether CBMC tests should be enabled (the default is to enable just test-gen tests)")
4848

4949
################################################################################

security-analyser-driver.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
1-
# TODO: this script should only forwad its input to the driver script.
1+
# TODO: this script should only forwrad its input to the driver script.
22
# Implement it! Until then, this script is bypassed by the evaluator.

src/CMakeLists.txt

+2-1
Original file line numberDiff line numberDiff line change
@@ -8,10 +8,11 @@ macro(generic_includes name)
88
${SECURITY_ANALYSER_SOURCE_DIR}
99
${CMAKE_CURRENT_BINARY_DIR}
1010
${CMAKE_CURRENT_SOURCE_DIR}
11+
${CBMC_SOURCE_DIR}
12+
${boost_include_include_dir}
1113
)
1214
endmacro(generic_includes)
1315

14-
add_definitions(-DUSE_BOOST)
1516

1617
add_subdirectory(driver)
1718
add_subdirectory(pointer-analysis)

src/driver/CMakeLists.txt

+1-6
Original file line numberDiff line numberDiff line change
@@ -21,12 +21,7 @@ endif()
2121

2222
target_compile_definitions(security-analyzer
2323
PRIVATE "-DSECURITY_ANALYSER_VERSION=\"${git_repo_version}\""
24-
)
25-
26-
target_include_directories(security-analyzer
27-
PRIVATE
28-
${CBMC_SOURCE_DIR}
29-
"${boost_include_include_dir}"
24+
USE_BOOST=1
3025
)
3126

3227
generic_includes(security-analyzer)

src/pointer-analysis/CMakeLists.txt

+2-4
Original file line numberDiff line numberDiff line change
@@ -5,10 +5,8 @@ add_library(sec_pointer_analysis
55
${headers}
66
)
77

8-
target_include_directories(sec_pointer_analysis
9-
PRIVATE
10-
${CBMC_SOURCE_DIR}
11-
"${boost_include_include_dir}"
8+
target_compile_definitions(sec_pointer_analysis
9+
PRIVATE USE_BOOST=1
1210
)
1311

1412
generic_includes(sec_pointer_analysis)

src/summaries/CMakeLists.txt

+2-4
Original file line numberDiff line numberDiff line change
@@ -5,10 +5,8 @@ add_library(sec_summaries
55
${headers}
66
)
77

8-
target_include_directories(sec_summaries
9-
PRIVATE
10-
${CBMC_SOURCE_DIR}
11-
"${boost_include_include_dir}"
8+
target_compile_definitions(sec_summaries
9+
PRIVATE USE_BOOST=1
1210
)
1311

1412
generic_includes(sec_summaries)

src/taint-analysis/CMakeLists.txt

+2-4
Original file line numberDiff line numberDiff line change
@@ -5,10 +5,8 @@ add_library(sec_taint_analysis
55
${headers}
66
)
77

8-
target_include_directories(sec_taint_analysis
9-
PRIVATE
10-
${CBMC_SOURCE_DIR}
11-
"${boost_include_include_dir}"
8+
target_compile_definitions(sec_taint_analysis
9+
PRIVATE USE_BOOST=1
1210
)
1311

1412
generic_includes(sec_taint_analysis)

src/taint-slicer/CMakeLists.txt

+2-4
Original file line numberDiff line numberDiff line change
@@ -5,10 +5,8 @@ add_library(sec_taint_slicer
55
${headers}
66
)
77

8-
target_include_directories(sec_taint_slicer
9-
PRIVATE
10-
${CBMC_SOURCE_DIR}
11-
"${boost_include_include_dir}"
8+
target_compile_definitions(sec_taint_slicer
9+
PRIVATE USE_BOOST=1
1210
)
1311

1412
generic_includes(sec_taint_slicer)

src/util/CMakeLists.txt

+2-4
Original file line numberDiff line numberDiff line change
@@ -5,10 +5,8 @@ add_library(sec_util
55
${headers}
66
)
77

8-
target_include_directories(sec_util
9-
PRIVATE
10-
${CBMC_SOURCE_DIR}
11-
"${boost_include_include_dir}"
8+
target_compile_definitions(sec_util
9+
PRIVATE USE_BOOST=1
1210
)
1311

1412
generic_includes(sec_util)

unit/range_union/CMakeLists.txt

+2-2
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,8 @@ file(GLOB_RECURSE headers "*.h")
33
add_executable(test-union
44
${sources}
55
${headers}
6-
../test.cpp
7-
../indentation.cpp
6+
../test.cpp
7+
../indentation.cpp
88
)
99

1010
target_include_directories(test-union

unit/serialization/CMakeLists.txt

+3-3
Original file line numberDiff line numberDiff line change
@@ -3,9 +3,9 @@ file(GLOB_RECURSE headers "*.h")
33
add_executable(test-serializer
44
${sources}
55
${headers}
6-
../test.cpp
7-
../indentation.cpp
8-
taint-config.json
6+
../test.cpp
7+
../indentation.cpp
8+
taint-config.json
99
)
1010

1111
target_include_directories(test-serializer

0 commit comments

Comments
 (0)