Skip to content

Commit

Permalink
Pass the C file to the svcomp runner rather than the optimized llvm (#…
Browse files Browse the repository at this point in the history
…739)

Signed-off-by: Hernan Ponce de Leon <[email protected]>
  • Loading branch information
hernanponcedeleon authored Sep 19, 2024
1 parent e04d77d commit 690a283
Showing 1 changed file with 1 addition and 6 deletions.
7 changes: 1 addition & 6 deletions svcomp/src/main/java/com/dat3m/svcomp/SVCOMPRunner.java
Original file line number Diff line number Diff line change
Expand Up @@ -117,18 +117,13 @@ public static void main(String[] args) throws Exception {
File file;
String output = "UNKNOWN";
while(output.equals("UNKNOWN")) {
file = compileWithClang(fileProgram, "");
file = applyLlvmPasses(file);

String llvmName = System.getenv().get("DAT3M_HOME") + "/output/" + Files.getNameWithoutExtension(programPath) + "-opt.ll";

ArrayList<String> cmd = new ArrayList<>();
cmd.add("java");
cmd.add("-Dlog4j.configurationFile=" + System.getenv().get("DAT3M_HOME") + "/dartagnan/src/main/resources/log4j2.xml");
cmd.add("-DLOGNAME=" + Files.getNameWithoutExtension(programPath));
cmd.addAll(Arrays.asList("-jar", System.getenv().get("DAT3M_HOME") + "/dartagnan/target/dartagnan.jar"));
cmd.add(fileModel.toString());
cmd.add(llvmName);
cmd.add(programPath);
cmd.add(String.format("--%s=%s", PROPERTY, r.property.asStringOption()));
cmd.add(String.format("--%s=%s", BOUND, bound));
cmd.add(String.format("--%s=%s", WITNESS, GRAPHML.asStringOption()));
Expand Down

0 comments on commit 690a283

Please sign in to comment.