Skip to content
Snippets Groups Projects
Commit 891f45b3 authored by Daniel Plagge's avatar Daniel Plagge
Browse files

bugfix: passing bound variables was not always guaranteed

parent b09d6a94
Branches
Tags
No related merge requests found
......@@ -115,13 +115,6 @@ public class ExpressionVisitor extends SimpleVisitorAdapter implements // NOPMD
// we need some abilities of the linked list, using List is not an option
private boolean expressionSet = false;
@SuppressWarnings("unused")
private ExpressionVisitor() { // we want to prevent clients from calling
// the default constructor
super();
throw new AssertionError("Do not call this constructor");
}
public ExpressionVisitor(final LinkedList<String> bounds) { // NOPMD
super();
this.bounds = bounds;
......@@ -633,8 +626,7 @@ public class ExpressionVisitor extends SimpleVisitorAdapter implements // NOPMD
Expression[] expressions = expression.getChildExpressions();
List<PExpression> childExprs = new ArrayList<PExpression>();
for (Expression e : expressions) {
ExpressionVisitor v = new ExpressionVisitor(
new LinkedList<String>());
ExpressionVisitor v = new ExpressionVisitor(bounds);
e.accept(v);
childExprs.add(v.getExpression());
}
......@@ -643,7 +635,7 @@ public class ExpressionVisitor extends SimpleVisitorAdapter implements // NOPMD
Predicate[] childPredicates = expression.getChildPredicates();
List<PPredicate> childPreds = new ArrayList<PPredicate>();
for (Predicate pd : childPredicates) {
PredicateVisitor v = new PredicateVisitor(null);
PredicateVisitor v = new PredicateVisitor(bounds);
pd.accept(v);
childPreds.add(v.getPredicate());
}
......
......@@ -418,7 +418,6 @@ public class PredicateVisitor extends SimpleVisitorAdapter implements // NOPMD
AExtendedPredPredicate p = new AExtendedPredPredicate();
IPredicateExtension extension = predicate.getExtension();
String symbol = extension.getSyntaxSymbol();
Object origin = extension.getOrigin();
// FIXME THEORY-PLUGIN re-enable when the theory plugin was released
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment