File tree Expand file tree Collapse file tree 8 files changed +72
-1
lines changed
regression/memory-analyzer Expand file tree Collapse file tree 8 files changed +72
-1
lines changed Original file line number Diff line number Diff line change
1
+ default : clean tests.log
2
+
3
+ clean :
4
+ find -name ' *.exe' -execdir $(RM ) ' {}' \;
5
+ find -name ' *.out' -execdir $(RM ) ' {}' \;
6
+ $(RM ) tests.log
7
+
8
+ test :
9
+ -@ln -s goto-cc ../../src/goto-cc/goto-gcc
10
+ @../test.pl -p -c ../compile_example.sh
11
+
12
+ tests.log : ../test.pl
13
+ -@ln -s goto-cc ../../src/goto-cc/goto-gcc
14
+ @../test.pl -p -c ../compile_example.sh
15
+
16
+ show :
17
+ @for dir in * ; do \
18
+ if [ -d " $$ dir" ]; then \
19
+ vim -o " $$ dir/*.c" " $$ dir/*.out" ; \
20
+ fi ; \
21
+ done ;
Original file line number Diff line number Diff line change @@ -91,6 +91,7 @@ add_subdirectory(jsil)
91
91
add_subdirectory (json )
92
92
add_subdirectory (langapi )
93
93
add_subdirectory (linking )
94
+ add_subdirectory (memory-analyzer )
94
95
add_subdirectory (memory-models )
95
96
add_subdirectory (pointer-analysis )
96
97
add_subdirectory (solvers )
Original file line number Diff line number Diff line change @@ -15,6 +15,7 @@ DIRS = analyses \
15
15
json \
16
16
langapi \
17
17
linking \
18
+ memory-analyzer \
18
19
memory-models \
19
20
pointer-analysis \
20
21
solvers \
@@ -27,6 +28,7 @@ all: cbmc.dir \
27
28
goto-cc.dir \
28
29
goto-diff.dir \
29
30
goto-instrument.dir \
31
+ memory-analyzer.dir \
30
32
# Empty last line
31
33
32
34
# ##############################################################################
@@ -64,6 +66,8 @@ goto-diff.dir: languages goto-programs.dir pointer-analysis.dir \
64
66
65
67
goto-cc.dir : languages pointer-analysis.dir goto-programs.dir linking.dir
66
68
69
+ memory-analyzer.dir : util.dir goto-programs.dir
70
+
67
71
# building for a particular directory
68
72
69
73
$(patsubst % , % .dir, $(DIRS ) ) :
Original file line number Diff line number Diff line change
1
+ SRC = analyze_symbol.cpp\
2
+ gdb_api.cpp \
3
+ memory_analyzer_main.cpp \
4
+ memory_analyzer_parse_options.cpp
5
+ # Empty last line
6
+
7
+ INCLUDES = -I ..
8
+
9
+ LIBS = \
10
+ ../ansi-c/ansi-c.a \
11
+ ../goto-programs/goto-programs.a \
12
+ ../linking/linking.a \
13
+ ../util/util.a \
14
+ ../big-int/big-int.a \
15
+ ../langapi/langapi.a
16
+
17
+
18
+
19
+ CLEANFILES = memory-analyzer$(EXEEXT )
20
+
21
+ include ../config.inc
22
+ include ../common
23
+
24
+ all : memory-analyzer$(EXEEXT )
25
+
26
+
27
+
28
+ # ##############################################################################
29
+
30
+ memory-analyzer$(EXEEXT ) : $(OBJ )
31
+ $(LINKBIN )
32
+
33
+
34
+ .PHONY : memory-analyser-mac-signed
35
+
36
+ memory-analyser-mac-signed : memory-analyzer$(EXEEXT )
37
+ codesign -v -s $(OSX_IDENTITY ) memory-analyzer$(EXEEXT )
Original file line number Diff line number Diff line change
1
+ ansi-c
2
+ goto-programs
3
+ util
Original file line number Diff line number Diff line change @@ -17,6 +17,7 @@ SRC += unit_tests.cpp \
17
17
analyses/does_remove_const/is_type_at_least_as_const_as.cpp \
18
18
goto-programs/goto_trace_output.cpp \
19
19
path_strategies.cpp \
20
+ memory-analyzer/gdb_api.cpp \
20
21
solvers/floatbv/float_utils.cpp \
21
22
solvers/refinement/array_pool/array_pool.cpp \
22
23
solvers/refinement/string_constraint_generator_valueof/calculate_max_string_length.cpp \
@@ -97,7 +98,8 @@ TESTS = unit_tests$(EXEEXT) \
97
98
miniBDD$(EXEEXT ) \
98
99
# Empty last line
99
100
100
- CLEANFILES = $(TESTS )
101
+ CLEANFILES = $(TESTS ) \
102
+ # Empty last line
101
103
102
104
all : cprover.dir testing-utils.dir
103
105
$(MAKE ) $(MAKEARGS ) $(TESTS )
Original file line number Diff line number Diff line change
1
+ memory-analyzer
2
+ testing-utils
Original file line number Diff line number Diff line change @@ -5,6 +5,7 @@ goto-programs
5
5
goto-symex
6
6
json
7
7
langapi # should go away
8
+ memory-analyzer
8
9
solvers/flattening
9
10
solvers/floatbv
10
11
solvers/miniBDD
You can’t perform that action at this time.
0 commit comments