Skip to content

Commit

Permalink
new experimental support for "--studySMT"
Browse files Browse the repository at this point in the history
  • Loading branch information
yanntm committed Jun 5, 2024
1 parent 894a42f commit e79f809
Showing 1 changed file with 18 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -48,9 +48,11 @@
import fr.lip6.move.gal.application.runner.smt.SMTRunner;
import fr.lip6.move.gal.application.runner.spot.SpotLTLRunner;
import fr.lip6.move.gal.application.runner.spot.SpotRunner;
import fr.lip6.move.gal.application.solver.ExclusiveImplicantsComputer;
import fr.lip6.move.gal.application.solver.GALSolver;
import fr.lip6.move.gal.application.solver.ReachabilitySolver;
import fr.lip6.move.gal.application.solver.UpperBoundsSolver;
import fr.lip6.move.gal.application.solver.ExclusiveImplicantsComputer.Constraint;
import fr.lip6.move.gal.application.solver.global.DeadlockSolver;
import fr.lip6.move.gal.application.solver.global.GlobalPropertySolver;
import fr.lip6.move.gal.application.solver.logic.AtomicReducerSR;
Expand Down Expand Up @@ -88,6 +90,7 @@
import fr.lip6.move.gal.structural.smt.DeadlockTester;
import fr.lip6.move.gal.util.IntMatrixCol;
import fr.lip6.move.serialization.SerializationUtil;
import smtanalysis.SMTAnalyzer;

/**
* This class controls all aspects of the application's execution
Expand Down Expand Up @@ -150,7 +153,8 @@ public class Application implements IApplication, Ender {
private static final String PSEMIFLOW="--Psemiflows";
private static final String TFLOW="--Tflows";
private static final String TSEMIFLOW="--Tsemiflows";

private static final String STUDYSMT="--studySMT";

private List<IRunner> runners = new ArrayList<>();

private static Logger logger = Logger.getLogger("fr.lip6.move.gal");
Expand Down Expand Up @@ -239,6 +243,7 @@ public Object startNoEx(IApplicationContext context) throws Exception {
boolean genDeadTransitions = false;
boolean genDeadPlaces = false;

boolean studySMT = false;
boolean noSLCLtest = false;

boolean analyzeSensitivity = false;
Expand Down Expand Up @@ -318,6 +323,8 @@ public Object startNoEx(IApplicationContext context) throws Exception {
} else if (SKELETON.equals(args[i])) {
unfold = true;
skeleton = true;
} else if (STUDYSMT.equals(args[i])) {
studySMT = true;
} else if (NOSIMPLIFICATION.equals(args[i])) {
nosimplifications = true;
} else if (APPLYSR.equals(args[i])) {
Expand Down Expand Up @@ -398,11 +405,21 @@ public Object startNoEx(IApplicationContext context) throws Exception {
return null;
}

if (studySMT) {
SMTAnalyzer analyzer = new SMTAnalyzer();
analyzer.analyze(reader, pwd);
return IApplication.EXIT_OK;
}

if (analyzeSensitivity) {
SpotRunner spot = new SpotRunner(10);
LTLLengthSensitivityAnalyzer.doSensitivityAnalysis(reader,spot,pwd,examination,"");
return IApplication.EXIT_OK;
}

// for (Constraint c : ExclusiveImplicantsComputer.studyImplicants(reader)) {
// System.out.println(c.printConstraint(reader.getSPN()));
// }

if (invariants) {
reader.createSPN(false,false);
Expand Down

0 comments on commit e79f809

Please sign in to comment.