Skip to content

Commit

Permalink
Accept llvm files as input (#500)
Browse files Browse the repository at this point in the history
Signed-off-by: Hernan Ponce de Leon <[email protected]>
  • Loading branch information
hernanponcedeleon authored Aug 18, 2023
1 parent 027b402 commit 859a3f9
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -44,13 +44,14 @@ private boolean needsClang(File f) {
}

private boolean needsSmack(File f) {
return needsClang(f);
return needsClang(f) || f.getPath().endsWith(".ll");
}

public Program parse(String raw, String path, String format, String cflags) throws Exception {
switch (format) {
case "c":
case "i":
case "ll":
File parsedFile = path.isEmpty() ?
// This is for the case where the user fully typed the program instead of loading it
File.createTempFile("dat3m", ".c") :
Expand Down

0 comments on commit 859a3f9

Please sign in to comment.