Skip to content

Commit

Permalink
More refactoring and Todos
Browse files Browse the repository at this point in the history
  • Loading branch information
SofianeBraneci committed Mar 4, 2021
1 parent 461bc8f commit 39ad766
Showing 1 changed file with 6 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,9 @@ public GlobalPropertySolver(String solverPath) {
}

// oneSafe

// TODO: javadoc

void buildOneSafeProperty() {

for (int pid = 0; pid < spn.getPlaceCount(); pid++) {
Expand All @@ -38,8 +41,8 @@ void buildOneSafeProperty() {

void buildStableMarkingProperty() {
for (int pid = 0; pid < spn.getPlaceCount(); pid++) {
Expression stable = Expression.op(Op.EQ, Expression.var(0), Expression.constant(spn.getMarks().get(0)));
Expression ef = Expression.op(Op.EF, stable, null);
Expression stable = Expression.op(Op.EQ, Expression.var(pid), Expression.constant(spn.getMarks().get(pid)));
Expression ef = Expression.op(Op.AG, stable, null);
Property stableMarkingProperty = new Property(ef, PropertyType.INVARIANT, "place_" + pid);
spn.getProperties().add(stableMarkingProperty);
}
Expand Down Expand Up @@ -121,7 +124,7 @@ public boolean solveProperty(String examination, MccTranslator reader) {
e.printStackTrace();
}
}

// TODO: change this
// boolean isOneSafe = true;
for (Entry<String, Boolean> e : doneProps.entrySet()) {
if (!e.getValue()) {
Expand Down

0 comments on commit 39ad766

Please sign in to comment.