Skip to content

Commit

Permalink
Call witness builder only for LLVM code (#593)
Browse files Browse the repository at this point in the history
Signed-off-by: Hernan Ponce de Leon <[email protected]>
Co-authored-by: Hernan Ponce de Leon <[email protected]>
  • Loading branch information
hernanponcedeleon and hernan-poncedeleon authored Dec 20, 2023
1 parent c977cbc commit ad48350
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion dartagnan/src/main/java/com/dat3m/dartagnan/Dartagnan.java
Original file line number Diff line number Diff line change
Expand Up @@ -218,7 +218,7 @@ public static void main(String[] args) throws Exception {
private static void generateWitnessIfAble(VerificationTask task, ProverEnvironment prover, ModelChecker modelChecker, String summary) {
// ------------------ Generate Witness, if possible ------------------
final EnumSet<Property> properties = task.getProperty();
if (modelChecker.hasModel() && properties.contains(PROGRAM_SPEC)) {
if (task.getProgram().getFormat().equals(SourceLanguage.LLVM) && modelChecker.hasModel() && properties.contains(PROGRAM_SPEC)) {
try {
WitnessBuilder w = WitnessBuilder.of(modelChecker.getEncodingContext(), prover, modelChecker.getResult(), summary);
if (w.canBeBuilt()) {
Expand Down

0 comments on commit ad48350

Please sign in to comment.