Skip to content

Commit 401144f

Browse files
committed
lowered verbosity
1 parent 2c25e7b commit 401144f

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

smt/fr.lip6.move.gal.gal2smt/src/fr/lip6/move/gal/structural/smt/PredecessorConstraintRefiner.java

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,7 @@
2020

2121
public class PredecessorConstraintRefiner implements IRefiner {
2222

23+
private static boolean firstError = true;
2324
private Set<String> doneProblems = new HashSet<>();
2425
private Map<String, IExpr> definitions = new HashMap<>();
2526
private Map<String, VarSet> support = new HashMap<>();
@@ -178,7 +179,10 @@ public static IExpr computePredExpr(Expression ap, IntMatrixCol sumMatrix, List<
178179
cumulativeWeight += SMTUtils.computeWeight(apFalseBeforeT);
179180
// Check if cumulative weight exceeds threshold
180181
if (cumulativeWeight > MAX_TOTAL_WEIGHT) {
181-
System.err.println("Excessive predecessor constraint size, skipping predecessor.");
182+
if (firstError) {
183+
firstError = false;
184+
System.err.println("Excessive predecessor constraint size, skipping predecessor.");
185+
}
182186
return null; // Bail out completely
183187
}
184188

0 commit comments

Comments
 (0)