X-Git-Url: https://gerrit.simantics.org/r/gitweb?p=simantics%2Fplatform.git;a=blobdiff_plain;f=bundles%2Forg.simantics.scl.compiler%2Fsrc%2Forg%2Fsimantics%2Fscl%2Fcompiler%2Felaboration%2Fexpressions%2FECHRRuleset.java;h=54a3e6bba3a57a35eb73f46a885d429b295c6725;hp=da37a4a58f228b5cd8c15af94c2fa80b709eb2bb;hb=e12e3ad357853a07b24923b341c4732962a94623;hpb=21eae91e860f9f3cdb9cd0ee6fded24cdb8ca2f5 diff --git a/bundles/org.simantics.scl.compiler/src/org/simantics/scl/compiler/elaboration/expressions/ECHRRuleset.java b/bundles/org.simantics.scl.compiler/src/org/simantics/scl/compiler/elaboration/expressions/ECHRRuleset.java index da37a4a58..54a3e6bba 100644 --- a/bundles/org.simantics.scl.compiler/src/org/simantics/scl/compiler/elaboration/expressions/ECHRRuleset.java +++ b/bundles/org.simantics.scl.compiler/src/org/simantics/scl/compiler/elaboration/expressions/ECHRRuleset.java @@ -45,7 +45,7 @@ public class ECHRRuleset extends Expression { context.pushCHRConstraintFrame(); ruleset.resolve(context); in = in.resolve(context); - context.popCHRConstraintFrame(ruleset.constraints); + context.popCHRConstraintFrame(ruleset); context.popFrame(); context.currentRuleset = null; @@ -82,8 +82,7 @@ public class ECHRRuleset extends Expression { @Override public Expression simplify(SimplificationContext context) { - ruleset.simplify(context); - ruleset.compile(context); + ruleset.simplifyAndCompileIfNeeded(context); in = in.simplify(context); return this; }