Skip to content

Commit 87770c2

Browse files
Daniel Kroeningchrisr-diffblue
authored andcommitted
remove usage of Java bytecode frontend
1 parent d12f030 commit 87770c2

21 files changed

+37
-112
lines changed

CMakeLists.txt

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -63,21 +63,16 @@ set_target_properties(
6363
goto-instrument-lib
6464
goto-programs
6565
goto-symex
66-
java_bytecode
67-
jbmc
68-
jbmc-lib
6966
jsil
7067
json
7168
langapi
7269
linking
7370
miniBDD
74-
miniz
7571
mmcc
7672
pointer-analysis
7773
solvers
7874
test-bigint
7975
testing-utils
80-
java-testing-utils
8176
unit
8277
util
8378
xml

regression/CMakeLists.txt

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -24,21 +24,15 @@ endmacro(add_test_pl_tests)
2424
# running tests in parallel, it is important that these directories are
2525
# listed with decreasing runtimes (i.e. longest running at the top)
2626
add_subdirectory(cbmc)
27-
add_subdirectory(cbmc-java)
2827
add_subdirectory(goto-analyzer)
2928
add_subdirectory(ansi-c)
30-
add_subdirectory(jbmc-strings)
3129
add_subdirectory(goto-instrument)
3230
add_subdirectory(cpp)
33-
add_subdirectory(strings-smoke-tests)
3431
add_subdirectory(cbmc-cover)
3532
add_subdirectory(goto-instrument-typedef)
3633
add_subdirectory(strings)
3734
add_subdirectory(invariants)
38-
add_subdirectory(goto-diff-java)
3935
add_subdirectory(test-script)
40-
add_subdirectory(goto-analyzer-taint)
41-
add_subdirectory(cbmc-java-inheritance)
4236
if(NOT WIN32)
4337
add_subdirectory(goto-gcc)
4438
endif()

regression/Makefile

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -2,22 +2,16 @@
22
# running tests in parallel, it is important that these directories are
33
# listed with decreasing runtimes (i.e. longest running at the top)
44
DIRS = cbmc \
5-
cbmc-java \
65
goto-analyzer \
76
ansi-c \
8-
jbmc-strings \
97
goto-instrument \
108
cpp \
11-
strings-smoke-tests \
129
cbmc-cover \
1310
goto-instrument-typedef \
1411
smt2_solver \
1512
strings \
1613
invariants \
17-
goto-diff-java \
1814
test-script \
19-
goto-analyzer-taint \
20-
cbmc-java-inheritance \
2115
goto-gcc \
2216
goto-cc-cbmc \
2317
cbmc-cpp \

src/CMakeLists.txt

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -96,12 +96,9 @@ add_subdirectory(pointer-analysis)
9696
add_subdirectory(solvers)
9797
add_subdirectory(util)
9898
add_subdirectory(xmllang)
99-
add_subdirectory(java_bytecode)
100-
add_subdirectory(miniz)
10199
add_subdirectory(clobber)
102100

103101
add_subdirectory(cbmc)
104-
add_subdirectory(jbmc)
105102
add_subdirectory(goto-cc)
106103
add_subdirectory(goto-instrument)
107104
add_subdirectory(goto-analyzer)

src/Makefile

Lines changed: 5 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
1-
DIRS = ansi-c big-int cbmc jbmc cpp goto-cc goto-instrument goto-programs \
1+
DIRS = ansi-c big-int cbmc cpp goto-cc goto-instrument goto-programs \
22
goto-symex langapi pointer-analysis solvers util linking xmllang \
3-
assembler analyses java_bytecode \
3+
assembler analyses \
44
json goto-analyzer jsil goto-diff clobber \
5-
memory-models miniz
5+
memory-models
66

7-
all: cbmc.dir jbmc.dir goto-cc.dir goto-instrument.dir \
7+
all: cbmc.dir goto-cc.dir goto-instrument.dir \
88
goto-analyzer.dir goto-diff.dir
99

1010
###############################################################################
@@ -19,10 +19,8 @@ $(patsubst %, %.dir, $(filter-out big-int util, $(DIRS))): util.dir
1919

2020
cpp.dir: ansi-c.dir linking.dir
2121

22-
java_bytecode.dir: miniz.dir
23-
2422
languages: util.dir langapi.dir \
25-
cpp.dir ansi-c.dir xmllang.dir assembler.dir java_bytecode.dir \
23+
cpp.dir ansi-c.dir xmllang.dir assembler.dir \
2624
jsil.dir
2725

2826
solvers.dir: util.dir langapi.dir
@@ -35,8 +33,6 @@ cbmc.dir: languages solvers.dir goto-symex.dir analyses.dir \
3533
pointer-analysis.dir goto-programs.dir linking.dir \
3634
goto-instrument.dir
3735

38-
jbmc.dir: java_bytecode.dir cbmc.dir
39-
4036
goto-analyzer.dir: languages analyses.dir goto-programs.dir linking.dir \
4137
json.dir goto-instrument.dir
4238

@@ -88,14 +84,6 @@ glucose-download:
8884
@(cd ../glucose-syrup; patch -p1 < ../scripts/glucose-syrup-patch)
8985
@rm glucose-syrup.tgz
9086

91-
cprover-jar-build:
92-
@echo "Building org.cprover.jar"
93-
@(cd java_bytecode/library/; \
94-
mkdir -p target; \
95-
javac -d target/ `find src/ -name "*.java"`; \
96-
cd target; jar cf org.cprover.jar `find . -name "*.class"`; \
97-
mv org.cprover.jar ../../../)
98-
9987
ipasir-download:
10088
# get the 2016 version of the ipasir package, which contains a few solvers
10189
@echo "Download ipasir 2016 package"

src/clobber/Makefile

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,8 +17,7 @@ OBJ += ../ansi-c/ansi-c$(LIBEXT) \
1717
../goto-symex/rewrite_union$(OBJEXT) \
1818
../pointer-analysis/dereference$(OBJEXT) \
1919
../goto-instrument/dump_c$(OBJEXT) \
20-
../goto-instrument/goto_program2code$(OBJEXT) \
21-
../miniz/miniz$(OBJEXT)
20+
../goto-instrument/goto_program2code$(OBJEXT)
2221

2322
INCLUDES= -I ..
2423

src/goto-analyzer/CMakeLists.txt

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,6 @@ target_link_libraries(goto-analyzer-lib
2121
util
2222
)
2323

24-
add_if_library(goto-analyzer-lib java_bytecode)
2524
add_if_library(goto-analyzer-lib jsil)
2625

2726
# Executable

src/goto-analyzer/Makefile

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,6 @@ SRC = goto_analyzer_main.cpp \
1010

1111
OBJ += ../ansi-c/ansi-c$(LIBEXT) \
1212
../cpp/cpp$(LIBEXT) \
13-
../java_bytecode/java_bytecode$(LIBEXT) \
1413
../linking/linking$(LIBEXT) \
1514
../big-int/big-int$(LIBEXT) \
1615
../goto-programs/goto-programs$(LIBEXT) \

src/goto-analyzer/goto_analyzer_parse_options.cpp

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,6 @@ Author: Daniel Kroening, kroening@kroening.com
1818

1919
#include <ansi-c/ansi_c_language.h>
2020
#include <cpp/cpp_language.h>
21-
#include <java_bytecode/java_bytecode_language.h>
2221
#include <jsil/jsil_language.h>
2322

2423
#include <goto-programs/initialize_goto_model.h>
@@ -43,9 +42,6 @@ Author: Daniel Kroening, kroening@kroening.com
4342
#include <analyses/dependence_graph.h>
4443
#include <analyses/interval_domain.h>
4544

46-
#include <java_bytecode/remove_exceptions.h>
47-
#include <java_bytecode/remove_instanceof.h>
48-
4945
#include <langapi/mode.h>
5046
#include <langapi/language.h>
5147

@@ -76,7 +72,6 @@ void goto_analyzer_parse_optionst::register_languages()
7672
{
7773
register_language(new_ansi_c_language);
7874
register_language(new_cpp_language);
79-
register_language(new_java_bytecode_language);
8075
register_language(new_jsil_language);
8176
}
8277

@@ -751,11 +746,6 @@ bool goto_analyzer_parse_optionst::process_goto_program(
751746
get_message_handler(), goto_model, cmdline.isset("pointer-check"));
752747
// Java virtual functions -> explicit dispatch tables:
753748
remove_virtual_functions(goto_model);
754-
// remove Java throw and catch
755-
// This introduces instanceof, so order is important:
756-
remove_exceptions(goto_model);
757-
// remove rtti
758-
remove_instanceof(goto_model);
759749

760750
// do partial inlining
761751
status() << "Partial Inlining" << eom;

src/goto-cc/CMakeLists.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@ target_link_libraries(goto-cc-lib
1717
xml
1818
assembler
1919
langapi
20+
json
2021
)
2122

2223
add_if_library(goto-cc-lib jsil)

0 commit comments

Comments
 (0)