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
No related branches found
No related tags found
No related merge requests found
...@@ -115,13 +115,6 @@ public class ExpressionVisitor extends SimpleVisitorAdapter implements // NOPMD ...@@ -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 // we need some abilities of the linked list, using List is not an option
private boolean expressionSet = false; 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 public ExpressionVisitor(final LinkedList<String> bounds) { // NOPMD
super(); super();
this.bounds = bounds; this.bounds = bounds;
...@@ -633,8 +626,7 @@ public class ExpressionVisitor extends SimpleVisitorAdapter implements // NOPMD ...@@ -633,8 +626,7 @@ public class ExpressionVisitor extends SimpleVisitorAdapter implements // NOPMD
Expression[] expressions = expression.getChildExpressions(); Expression[] expressions = expression.getChildExpressions();
List<PExpression> childExprs = new ArrayList<PExpression>(); List<PExpression> childExprs = new ArrayList<PExpression>();
for (Expression e : expressions) { for (Expression e : expressions) {
ExpressionVisitor v = new ExpressionVisitor( ExpressionVisitor v = new ExpressionVisitor(bounds);
new LinkedList<String>());
e.accept(v); e.accept(v);
childExprs.add(v.getExpression()); childExprs.add(v.getExpression());
} }
...@@ -643,7 +635,7 @@ public class ExpressionVisitor extends SimpleVisitorAdapter implements // NOPMD ...@@ -643,7 +635,7 @@ public class ExpressionVisitor extends SimpleVisitorAdapter implements // NOPMD
Predicate[] childPredicates = expression.getChildPredicates(); Predicate[] childPredicates = expression.getChildPredicates();
List<PPredicate> childPreds = new ArrayList<PPredicate>(); List<PPredicate> childPreds = new ArrayList<PPredicate>();
for (Predicate pd : childPredicates) { for (Predicate pd : childPredicates) {
PredicateVisitor v = new PredicateVisitor(null); PredicateVisitor v = new PredicateVisitor(bounds);
pd.accept(v); pd.accept(v);
childPreds.add(v.getPredicate()); childPreds.add(v.getPredicate());
} }
......
...@@ -418,7 +418,6 @@ public class PredicateVisitor extends SimpleVisitorAdapter implements // NOPMD ...@@ -418,7 +418,6 @@ public class PredicateVisitor extends SimpleVisitorAdapter implements // NOPMD
AExtendedPredPredicate p = new AExtendedPredPredicate(); AExtendedPredPredicate p = new AExtendedPredPredicate();
IPredicateExtension extension = predicate.getExtension(); IPredicateExtension extension = predicate.getExtension();
String symbol = extension.getSyntaxSymbol(); String symbol = extension.getSyntaxSymbol();
Object origin = extension.getOrigin();
// FIXME THEORY-PLUGIN re-enable when the theory plugin was released // 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