Skip to content

Commit

Permalink
added error trace for parsing errors and fix cardinality consts
Browse files Browse the repository at this point in the history
  • Loading branch information
DarioRomano committed Apr 21, 2024
1 parent 5ee9762 commit b15a322
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -150,6 +150,7 @@ public static Formula parseUVLconstraintAsFormula(FormulaFactory ff, String s) {
return parser.parse(s);
} catch (ParserException e) {
System.err.println("Verifier has failed to parse the following UVL constraint:\n" + s);
e.printStackTrace();
return null;
}
}
Expand Down Expand Up @@ -214,7 +215,7 @@ private static Formula getGroupAsFormula(FormulaFactory ff, Group g) {
case GROUP_CARDINALITY:
return ff.and(ff.implication(ff.or(literals), parentLiteral),
ff.and(ff.cc(CType.GE, Integer.valueOf(g.getLowerBound()), literals),
ff.cc(CType.LE, Integer.valueOf(g.getUpperBound()))));
ff.cc(CType.LE, Integer.valueOf(g.getUpperBound()), literals)));
default:
return ff.verum();
}
Expand Down

0 comments on commit b15a322

Please sign in to comment.