Skip to content

Commit

Permalink
Use bounded domain when possible
Browse files Browse the repository at this point in the history
  • Loading branch information
mondokm committed Feb 20, 2024
1 parent f9ae8d8 commit f141ec4
Showing 1 changed file with 5 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -76,10 +76,12 @@ public SafetyResult<MddWitness, MddCex> check(Void input) {

final Set<VarDecl<?>> vars = ExprUtils.getVars(List.of(initRel, transRel.toExpr(), safetyProperty));
for(var v : vars){
stateOrder.createOnTop(MddVariableDescriptor.create(v.getConstDecl(initIndexing.get(v)), 0));
final var domainSize = v.getType() instanceof BoolType ? 2 : 0;

transOrder.createOnTop(MddVariableDescriptor.create(v.getConstDecl(transRel.nextIndexing().get(v)), 0));
transOrder.createOnTop(MddVariableDescriptor.create(v.getConstDecl(0), 0));
stateOrder.createOnTop(MddVariableDescriptor.create(v.getConstDecl(initIndexing.get(v)), domainSize));

transOrder.createOnTop(MddVariableDescriptor.create(v.getConstDecl(transRel.nextIndexing().get(v)), domainSize));
transOrder.createOnTop(MddVariableDescriptor.create(v.getConstDecl(0), domainSize));
}

final var stateSig = stateOrder.getDefaultSetSignature();
Expand Down

0 comments on commit f141ec4

Please sign in to comment.