Commit bd0db9af authored by André Pacak's avatar André Pacak

changed back to previous lattice order, still works

parent fffa4ce8
trace.info text merge=mps
generated text merge=mps
dependencies text merge=mps
*.mpl text merge=mps
*.msd text merge=mps
*.devkit text merge=mps
*.mpr text merge=mps
*.mpsr text merge=mps
*.model text merge=mps
*.mps text merge=mps
This diff is collapsed.
......@@ -873,6 +873,82 @@
<classNode dependClassName="org.inca.core.runtime.plugin.MPSQuerySpecificationHints" />
<classNode extendsClassName="org.inca.core.runtime.plugin.MPSQuerySpecification" />
</dependency>
<dependency className="RecordTypes_Checker.model.Typing_RecordSameLengthFailureQuerySpecification">
<classNode dependClassName="RecordTypes_Checker.model.QuerySpecificationHints" />
<classNode dependClassName="RecordTypes_Checker.model.Typing_RecordSameLengthFailure_0_switchCommonQuerySpecification" />
<classNode dependClassName="java.lang.Class" />
<classNode dependClassName="java.lang.Exception" />
<classNode dependClassName="java.lang.Integer" />
<classNode dependClassName="java.lang.Iterable" />
<classNode dependClassName="java.lang.Object" />
<classNode dependClassName="java.lang.Override" />
<classNode dependClassName="java.lang.String" />
<classNode dependClassName="java.lang.SuppressWarnings" />
<classNode dependClassName="java.util.ArrayList" />
<classNode dependClassName="java.util.Arrays" />
<classNode dependClassName="java.util.HashSet" />
<classNode dependClassName="java.util.List" />
<classNode dependClassName="java.util.Set" />
<classNode dependClassName="jetbrains.mps.internal.collections.runtime.SetSequence" />
<classNode dependClassName="jetbrains.mps.smodel.adapter.structure.MetaAdapterFactory" />
<classNode dependClassName="org.eclipse.viatra.query.runtime.api.ViatraQueryEngine" />
<classNode dependClassName="org.eclipse.viatra.query.runtime.api.scope.QueryScope" />
<classNode dependClassName="org.eclipse.viatra.query.runtime.exception.ViatraQueryException" />
<classNode dependClassName="org.eclipse.viatra.query.runtime.matchers.context.common.JavaTransitiveInstancesKey" />
<classNode dependClassName="org.eclipse.viatra.query.runtime.matchers.psystem.IExpressionEvaluator" />
<classNode dependClassName="org.eclipse.viatra.query.runtime.matchers.psystem.IValueProvider" />
<classNode dependClassName="org.eclipse.viatra.query.runtime.matchers.psystem.PBody" />
<classNode dependClassName="org.eclipse.viatra.query.runtime.matchers.psystem.PVariable" />
<classNode dependClassName="org.eclipse.viatra.query.runtime.matchers.psystem.basicdeferred.Equality" />
<classNode dependClassName="org.eclipse.viatra.query.runtime.matchers.psystem.basicdeferred.ExportedParameter" />
<classNode dependClassName="org.eclipse.viatra.query.runtime.matchers.psystem.basicdeferred.ExpressionEvaluation" />
<classNode dependClassName="org.eclipse.viatra.query.runtime.matchers.psystem.basicenumerables.PositivePatternCall" />
<classNode dependClassName="org.eclipse.viatra.query.runtime.matchers.psystem.basicenumerables.TypeConstraint" />
<classNode dependClassName="org.eclipse.viatra.query.runtime.matchers.psystem.queries.PParameter" />
<classNode dependClassName="org.eclipse.viatra.query.runtime.matchers.psystem.queries.QueryInitializationException" />
<classNode dependClassName="org.eclipse.viatra.query.runtime.matchers.tuple.Tuples" />
<classNode dependClassName="org.inca.core.runtime.plugin.AbstractPQuery" />
<classNode dependClassName="org.inca.core.runtime.plugin.AbstractScope" />
<classNode dependClassName="org.inca.core.runtime.plugin.ConceptKey" />
<classNode dependClassName="org.inca.core.runtime.plugin.MPSGenericPatternMatcher" />
<classNode dependClassName="org.inca.core.runtime.plugin.MPSQuerySpecificationHints" />
<classNode extendsClassName="org.inca.core.runtime.plugin.MPSQuerySpecification" />
</dependency>
<dependency className="RecordTypes_Checker.model.Typing_RecordSameLengthFailure_0_switchCommonQuerySpecification">
<classNode dependClassName="RecordTypes_Checker.model.LType" />
<classNode dependClassName="RecordTypes_Checker.model.QuerySpecificationHints" />
<classNode dependClassName="RecordTypes_Checker.model.Typing_RequiredQuerySpecification" />
<classNode dependClassName="java.lang.Class" />
<classNode dependClassName="java.lang.Override" />
<classNode dependClassName="java.lang.String" />
<classNode dependClassName="java.lang.SuppressWarnings" />
<classNode dependClassName="java.util.ArrayList" />
<classNode dependClassName="java.util.Arrays" />
<classNode dependClassName="java.util.HashSet" />
<classNode dependClassName="java.util.List" />
<classNode dependClassName="java.util.Set" />
<classNode dependClassName="jetbrains.mps.internal.collections.runtime.SetSequence" />
<classNode dependClassName="jetbrains.mps.smodel.adapter.structure.MetaAdapterFactory" />
<classNode dependClassName="org.eclipse.viatra.query.runtime.api.ViatraQueryEngine" />
<classNode dependClassName="org.eclipse.viatra.query.runtime.api.scope.QueryScope" />
<classNode dependClassName="org.eclipse.viatra.query.runtime.exception.ViatraQueryException" />
<classNode dependClassName="org.eclipse.viatra.query.runtime.matchers.psystem.PBody" />
<classNode dependClassName="org.eclipse.viatra.query.runtime.matchers.psystem.PVariable" />
<classNode dependClassName="org.eclipse.viatra.query.runtime.matchers.psystem.basicdeferred.Equality" />
<classNode dependClassName="org.eclipse.viatra.query.runtime.matchers.psystem.basicdeferred.ExportedParameter" />
<classNode dependClassName="org.eclipse.viatra.query.runtime.matchers.psystem.basicenumerables.PositivePatternCall" />
<classNode dependClassName="org.eclipse.viatra.query.runtime.matchers.psystem.basicenumerables.TypeConstraint" />
<classNode dependClassName="org.eclipse.viatra.query.runtime.matchers.psystem.queries.PParameter" />
<classNode dependClassName="org.eclipse.viatra.query.runtime.matchers.psystem.queries.QueryInitializationException" />
<classNode dependClassName="org.eclipse.viatra.query.runtime.matchers.tuple.Tuples" />
<classNode dependClassName="org.inca.core.runtime.plugin.AbstractPQuery" />
<classNode dependClassName="org.inca.core.runtime.plugin.AbstractScope" />
<classNode dependClassName="org.inca.core.runtime.plugin.ConceptKey" />
<classNode dependClassName="org.inca.core.runtime.plugin.MPSGenericPatternMatcher" />
<classNode dependClassName="org.inca.core.runtime.plugin.MPSQuerySpecificationHints" />
<classNode dependClassName="org.inca.data.runtime.plugin.LatticeInputKey" />
<classNode extendsClassName="org.inca.core.runtime.plugin.MPSQuerySpecification" />
</dependency>
<dependency className="RecordTypes_Checker.model.Typing_RequiredQuerySpecification">
<classNode dependClassName="RecordTypes_Checker.model.LType" />
<classNode dependClassName="RecordTypes_Checker.model.QuerySpecificationHints" />
......
<?xml version="1.0" encoding="UTF-8"?>
<product version="3" modelHash="-6xiqm3brhiiyw11q2rnom4t5fb1kwpa">
<files names="AnalysisResultAccess.java:ConstantDefinitions.java:LType.java:LTypeRecord.java:QuerySpecificationHints.java:Typing_AllvarsQuerySpecification.java:Typing_Allvars_0_switchCommonQuerySpecification.java:Typing_AsLTypeQuerySpecification.java:Typing_AsLTypeRecordQuerySpecification.java:Typing_AsLTypeRecord_0_switchCommonQuerySpecification.java:Typing_AsLTypeRecord_WrappedQuerySpecification.java:Typing_AsLType_0_switchCommonQuerySpecification.java:Typing_CheckErrorQuerySpecification.java:Typing_CheckQuerySpecification.java:Typing_Check_0_switchCommonQuerySpecification.java:Typing_InferQuerySpecification.java:Typing_Infer_0_switchCommonQuerySpecification.java:Typing_Infer_WrappedQuerySpecification.java:Typing_LookupFailureQuerySpecification.java:Typing_LookupFailure_0_switchCommonQuerySpecification.java:Typing_LookupQuerySpecification.java:Typing_Lookup_0_switchCommonQuerySpecification.java:Typing_MatchFunFailureQuerySpecification.java:Typing_MatchFunFailure_0_switchCommonQuerySpecification.java:Typing_MatchRecordFailureQuerySpecification.java:Typing_MatchRecordFailure_0_switchCommonQuerySpecification.java:Typing_RequiredQuerySpecification.java:Typing_Required_0_switchCommonQuerySpecification.java" />
<product version="3" modelHash="-7y1d0oo9x9aaa5olbwqqjva1bksxjb2">
<files names="AnalysisResultAccess.java:ConstantDefinitions.java:LType.java:LTypeRecord.java:QuerySpecificationHints.java:Typing_AllvarsQuerySpecification.java:Typing_Allvars_0_switchCommonQuerySpecification.java:Typing_AsLTypeQuerySpecification.java:Typing_AsLTypeRecordQuerySpecification.java:Typing_AsLTypeRecord_0_switchCommonQuerySpecification.java:Typing_AsLTypeRecord_WrappedQuerySpecification.java:Typing_AsLType_0_switchCommonQuerySpecification.java:Typing_CheckErrorQuerySpecification.java:Typing_CheckQuerySpecification.java:Typing_Check_0_switchCommonQuerySpecification.java:Typing_InferQuerySpecification.java:Typing_Infer_0_switchCommonQuerySpecification.java:Typing_Infer_WrappedQuerySpecification.java:Typing_LookupFailureQuerySpecification.java:Typing_LookupFailure_0_switchCommonQuerySpecification.java:Typing_LookupQuerySpecification.java:Typing_Lookup_0_switchCommonQuerySpecification.java:Typing_MatchFunFailureQuerySpecification.java:Typing_MatchFunFailure_0_switchCommonQuerySpecification.java:Typing_MatchRecordFailureQuerySpecification.java:Typing_MatchRecordFailure_0_switchCommonQuerySpecification.java:Typing_RecordSameLengthFailureQuerySpecification.java:Typing_RecordSameLengthFailure_0_switchCommonQuerySpecification.java:Typing_RequiredQuerySpecification.java:Typing_Required_0_switchCommonQuerySpecification.java" />
</product>
......@@ -465,7 +465,7 @@ public class LType implements ILatticeOperationProvider<LType.LTypeElement>, IPo
} else if ((case_6_g0a6 = new SequenceMatcher(matcher_a6a0g, matcher_b6a0g).match(values_a0g)) != null) {
LTypeRecord.LTypeRecordElement rty_a1g0a6 = (LTypeRecord.LTypeRecordElement) case_6_g0a6.get("rty");
LTypeRecord.LTypeRecordElement lty_a0g0a6 = (LTypeRecord.LTypeRecordElement) case_6_g0a6.get("lty");
return LType.Record.create(LTypeRecord.instance().glb(lty_a0g0a6, rty_a1g0a6));
return LType.Record.create(LTypeRecord.instance().lub(lty_a0g0a6, rty_a1g0a6));
} else {
throw new PatternMatcherException(values_a0g);
}
......@@ -504,7 +504,7 @@ public class LType implements ILatticeOperationProvider<LType.LTypeElement>, IPo
} else if ((case_6_g0a8 = new SequenceMatcher(matcher_a6a0i, matcher_b6a0i).match(values_a0i)) != null) {
LTypeRecord.LTypeRecordElement rty_a1g0a8 = (LTypeRecord.LTypeRecordElement) case_6_g0a8.get("rty");
LTypeRecord.LTypeRecordElement lty_a0g0a8 = (LTypeRecord.LTypeRecordElement) case_6_g0a8.get("lty");
return LType.Record.create(LTypeRecord.instance().lub(lty_a0g0a8, rty_a1g0a8));
return LType.Record.create(LTypeRecord.instance().glb(lty_a0g0a8, rty_a1g0a8));
} else if ((case_7_h0a8 = new SequenceMatcher(WildCardMatcher.INSTANCE, WildCardMatcher.INSTANCE).match(values_a0i)) != null) {
return LType.Bot.create();
} else {
......@@ -639,6 +639,21 @@ public class LType implements ILatticeOperationProvider<LType.LTypeElement>, IPo
}
}
public final IMultisetAggregationOperator<?, ?, ?> aggregator_lub = new AbstractTreeBasedLatticeAggregationOperator<LType.LTypeElement>(new AugmentedNodeFactory<LType.LTypeElement>(new _FunctionTypes._return_P2_E0<LType.LTypeElement, LType.LTypeElement, LType.LTypeElement>() {
public LType.LTypeElement invoke(final LType.LTypeElement left, final LType.LTypeElement right) {
return lub(left, right);
}
})) {
@Override
public String getName() {
return "aggregator_lub";
}
@Override
public String getShortDescription() {
return "aggregator_lub";
}
};
public final IMultisetAggregationOperator<?, ?, ?> aggregator_glb = new AbstractTreeBasedLatticeAggregationOperator<LType.LTypeElement>(new AugmentedNodeFactory<LType.LTypeElement>(new _FunctionTypes._return_P2_E0<LType.LTypeElement, LType.LTypeElement, LType.LTypeElement>() {
public LType.LTypeElement invoke(final LType.LTypeElement left, final LType.LTypeElement right) {
return glb(left, right);
......
......@@ -34,28 +34,28 @@ public final class QuerySpecificationHints extends MPSQuerySpecificationHints {
this.conceptFeatures = new HashSet<SConceptFeature>();
this.conceptFeatures.add(MetaAdapterFactory.getProperty(0xceab519525ea4f22L, 0x9b92103b95ca8c0cL, 0x110396eaaa4L, 0x110396ec041L, "name"));
this.conceptFeatures.add(MetaAdapterFactory.getContainmentLink(0x6b642eaa1043424aL, 0x9e0949eb41607114L, 0x1a4a252762eb933aL, 0x1a4a252762eb9352L, "body"));
this.conceptFeatures.add(MetaAdapterFactory.getContainmentLink(0x6b642eaa1043424aL, 0x9e0949eb41607114L, 0x1a4a252762eb9322L, 0x1a4a252762eb9336L, "t"));
this.conceptFeatures.add(MetaAdapterFactory.getContainmentLink(0x6b642eaa1043424aL, 0x9e0949eb41607114L, 0x1fd8e2cf9df802c6L, 0x1fd8e2cf9df802cbL, "elems"));
this.conceptFeatures.add(MetaAdapterFactory.getContainmentLink(0x6b642eaa1043424aL, 0x9e0949eb41607114L, 0x1a4a252762eb9312L, 0x1a4a252762eb931bL, "t2"));
this.conceptFeatures.add(MetaAdapterFactory.getContainmentLink(0x6b642eaa1043424aL, 0x9e0949eb41607114L, 0x9229981a3b8f61cL, 0x9229981a3b8f621L, "t"));
this.conceptFeatures.add(MetaAdapterFactory.getReferenceLink(0xb802a05692a24fbcL, 0x902ef8e5004c331fL, 0x7980b687ac7456feL, 0x7980b687ac7456ffL, "parent"));
this.conceptFeatures.add(MetaAdapterFactory.getContainmentLink(0x6b642eaa1043424aL, 0x9e0949eb41607114L, 0x1a4a252762eb936bL, 0x1a4a252762eb9378L, "t2"));
this.conceptFeatures.add(MetaAdapterFactory.getContainmentLink(0x6b642eaa1043424aL, 0x9e0949eb41607114L, 0x1fd8e2cf9df802cfL, 0x1fd8e2cf9df802d4L, "ty"));
this.conceptFeatures.add(MetaAdapterFactory.getContainmentLink(0x6b642eaa1043424aL, 0x9e0949eb41607114L, 0x1a4a252762eb9390L, 0x1a4a252762eb9399L, "ty2"));
this.conceptFeatures.add(MetaAdapterFactory.getContainmentLink(0x6b642eaa1043424aL, 0x9e0949eb41607114L, 0x1a4a252762eb9302L, 0x1a4a252762eb9307L, "t1"));
this.conceptFeatures.add(MetaAdapterFactory.getContainmentLink(0x6b642eaa1043424aL, 0x9e0949eb41607114L, 0x1a4a252762eb9302L, 0x1a4a252762eb930bL, "t2"));
this.conceptFeatures.add(MetaAdapterFactory.getContainmentLink(0x6b642eaa1043424aL, 0x9e0949eb41607114L, 0x1a4a252762eb9390L, 0x1a4a252762eb9395L, "ty1"));
this.conceptFeatures.add(MetaAdapterFactory.getContainmentLink(0x6b642eaa1043424aL, 0x9e0949eb41607114L, 0x1a4a252762eb933aL, 0x1a4a252762eb9352L, "body"));
this.conceptFeatures.add(MetaAdapterFactory.getContainmentLink(0x6b642eaa1043424aL, 0x9e0949eb41607114L, 0x1a4a252762eb93faL, 0x1a4a252762eb93ffL, "ty"));
this.conceptFeatures.add(MetaAdapterFactory.getContainmentLink(0x6b642eaa1043424aL, 0x9e0949eb41607114L, 0x1a4a252762eb937fL, 0x1a4a252762eb9384L, "t"));
this.conceptFeatures.add(MetaAdapterFactory.getContainmentLink(0x6b642eaa1043424aL, 0x9e0949eb41607114L, 0x9229981a3b8f573L, 0x9229981a3b8f58bL, "entries"));
this.conceptFeatures.add(MetaAdapterFactory.getContainmentLink(0x6b642eaa1043424aL, 0x9e0949eb41607114L, 0x1a4a252762eb936bL, 0x1a4a252762eb9374L, "t1"));
this.conceptFeatures.add(MetaAdapterFactory.getReferenceLink(0xb802a05692a24fbcL, 0x902ef8e5004c331fL, 0x7980b687ac7456feL, 0x7980b687ac7456ffL, "parent"));
this.conceptFeatures.add(MetaAdapterFactory.getContainmentLink(0x6b642eaa1043424aL, 0x9e0949eb41607114L, 0x1a4a252762eb92d7L, 0x1a4a252762eb92dcL, "t"));
this.conceptFeatures.add(MetaAdapterFactory.getContainmentLink(0x6b642eaa1043424aL, 0x9e0949eb41607114L, 0x1a4a252762eb937fL, 0x1a4a252762eb93d5L, "ty"));
this.conceptFeatures.add(MetaAdapterFactory.getContainmentLink(0x6b642eaa1043424aL, 0x9e0949eb41607114L, 0x2c4ed3ae43d50d92L, 0x2c4ed3ae43d50da6L, "t"));
this.conceptFeatures.add(MetaAdapterFactory.getContainmentLink(0x6b642eaa1043424aL, 0x9e0949eb41607114L, 0x1a4a252762eb9312L, 0x1a4a252762eb9317L, "t1"));
this.conceptFeatures.add(MetaAdapterFactory.getContainmentLink(0x6b642eaa1043424aL, 0x9e0949eb41607114L, 0x1a4a252762eb93f1L, 0x1a4a252762eb93f6L, "t"));
this.conceptFeatures.add(MetaAdapterFactory.getContainmentLink(0x6b642eaa1043424aL, 0x9e0949eb41607114L, 0x1a4a252762eb933aL, 0x1a4a252762eb934eL, "bound"));
this.conceptFeatures.add(MetaAdapterFactory.getContainmentLink(0x6b642eaa1043424aL, 0x9e0949eb41607114L, 0x1a4a252762eb92d7L, 0x1a4a252762eb92dcL, "t"));
this.conceptFeatures.add(MetaAdapterFactory.getContainmentLink(0x6b642eaa1043424aL, 0x9e0949eb41607114L, 0x1a4a252762eb9302L, 0x1a4a252762eb9307L, "t1"));
this.conceptFeatures.add(MetaAdapterFactory.getContainmentLink(0x6b642eaa1043424aL, 0x9e0949eb41607114L, 0x1a4a252762eb936bL, 0x1a4a252762eb9374L, "t1"));
this.conceptFeatures.add(MetaAdapterFactory.getContainmentLink(0x6b642eaa1043424aL, 0x9e0949eb41607114L, 0x9229981a3b8f573L, 0x9229981a3b8f58bL, "entries"));
this.conceptFeatures.add(MetaAdapterFactory.getContainmentLink(0x6b642eaa1043424aL, 0x9e0949eb41607114L, 0x1a4a252762eb9390L, 0x1a4a252762eb9399L, "ty2"));
this.conceptFeatures.add(MetaAdapterFactory.getContainmentLink(0x6b642eaa1043424aL, 0x9e0949eb41607114L, 0x1fd8e2cf9df802c6L, 0x1fd8e2cf9df802cbL, "elems"));
this.conceptFeatures.add(MetaAdapterFactory.getContainmentLink(0x6b642eaa1043424aL, 0x9e0949eb41607114L, 0x1fd8e2cf9df802cfL, 0x1fd8e2cf9df802d4L, "ty"));
this.conceptFeatures.add(MetaAdapterFactory.getContainmentLink(0x6b642eaa1043424aL, 0x9e0949eb41607114L, 0x1a4a252762eb9322L, 0x1a4a252762eb9336L, "t"));
this.conceptFeatures.add(MetaAdapterFactory.getContainmentLink(0x6b642eaa1043424aL, 0x9e0949eb41607114L, 0x1a4a252762eb9390L, 0x1a4a252762eb9395L, "ty1"));
this.conceptFeatures.add(MetaAdapterFactory.getContainmentLink(0x6b642eaa1043424aL, 0x9e0949eb41607114L, 0x2c4ed3ae43d50d92L, 0x2c4ed3ae43d50da6L, "t"));
this.conceptFeatures.add(MetaAdapterFactory.getContainmentLink(0x6b642eaa1043424aL, 0x9e0949eb41607114L, 0x9229981a3b8f61cL, 0x9229981a3b8f621L, "t"));
this.conceptFeatures.add(MetaAdapterFactory.getContainmentLink(0x6b642eaa1043424aL, 0x9e0949eb41607114L, 0x1a4a252762eb9312L, 0x1a4a252762eb931bL, "t2"));
this.conceptFeatures.add(MetaAdapterFactory.getContainmentLink(0x6b642eaa1043424aL, 0x9e0949eb41607114L, 0x1a4a252762eb93f1L, 0x1a4a252762eb93f6L, "t"));
this.languages = new HashSet<SLanguage>();
this.languages.add(MetaAdapterFactory.getLanguage(0xb802a05692a24fbcL, 0x902ef8e5004c331fL, "ceab5195-25ea-4f22-9b92-103b95ca8c0c"));
......
......@@ -89,14 +89,14 @@ public final class Typing_AsLTypeRecordQuerySpecification extends MPSQuerySpecif
exportedParameters.add(new ExportedParameter(body, var_out_1, p_out_1));
body.setSymbolicParameters(exportedParameters);
PVariable var__3431993442800452207 = body.newVirtualVariable();
PVariable var__3431993442800452199 = body.getOrCreateVariableByName("3431993442800452199");
PVariable var__3431993442800452202 = body.getOrCreateVariableByName("3431993442800452202");
PVariable var__7969736069302798609 = body.newVirtualVariable();
PVariable var__7969736069302798604 = body.getOrCreateVariableByName("7969736069302798604");
PVariable var__7969736069302798601 = body.getOrCreateVariableByName("7969736069302798601");
new TypeConstraint(body, Tuples.flatTupleOf(var_type), new ConceptKey(MetaAdapterFactory.getConcept(0x6b642eaa1043424aL, 0x9e0949eb41607114L, 0x1fd8e2cf9df802c6L, "RecordTypes.structure.RecordType")));
new PositivePatternCall(body, Tuples.flatTupleOf(var_type, var__3431993442800452199), Typing_AsLTypeRecord_WrappedQuerySpecification.instance().getInternalQueryRepresentation());
new AggregatorConstraint(new BoundAggregator(LTypeRecord.instance().aggregator_glb, LTypeRecord.LTypeRecordElement.class, LTypeRecord.LTypeRecordElement.class), body, Tuples.flatTupleOf(var_type, var__3431993442800452202), Typing_AsLTypeRecord_WrappedQuerySpecification.instance().getInternalQueryRepresentation(), var__3431993442800452207, 1);
new Equality(body, var_out_1, var__3431993442800452207);
new PositivePatternCall(body, Tuples.flatTupleOf(var_type, var__7969736069302798601), Typing_AsLTypeRecord_WrappedQuerySpecification.instance().getInternalQueryRepresentation());
new AggregatorConstraint(new BoundAggregator(LTypeRecord.instance().aggregator_lub, LTypeRecord.LTypeRecordElement.class, LTypeRecord.LTypeRecordElement.class), body, Tuples.flatTupleOf(var_type, var__7969736069302798604), Typing_AsLTypeRecord_WrappedQuerySpecification.instance().getInternalQueryRepresentation(), var__7969736069302798609, 1);
new Equality(body, var_out_1, var__7969736069302798609);
SetSequence.fromSet(bodies).addElement(body);
}
......
......@@ -92,30 +92,30 @@ public final class Typing_AsLTypeRecord_WrappedQuerySpecification extends MPSQue
exportedParameters.add(new ExportedParameter(body, var_out_1, p_out_1));
body.setSymbolicParameters(exportedParameters);
PVariable var__tmp_250 = body.getOrCreateVariableByName("tmp_250");
PVariable var__tmp_249 = body.getOrCreateVariableByName("tmp_249");
PVariable var__ty = body.getOrCreateVariableByName("ty");
PVariable var__3431993442800474254 = body.newVirtualVariable();
PVariable var__tmp_245 = body.getOrCreateVariableByName("tmp_245");
PVariable var__7969736069302824830 = body.newVirtualVariable();
PVariable var__tmp_246 = body.getOrCreateVariableByName("tmp_246");
PVariable var__tmp_247 = body.getOrCreateVariableByName("tmp_247");
PVariable var__tmp_248 = body.getOrCreateVariableByName("tmp_248");
PVariable var__elem = body.getOrCreateVariableByName("elem");
PVariable var__tmp_242 = body.getOrCreateVariableByName("tmp_242");
PVariable var__l = body.getOrCreateVariableByName("l");
PVariable var__tmp_243 = body.getOrCreateVariableByName("tmp_243");
PVariable var__tmp_244 = body.getOrCreateVariableByName("tmp_244");
new TypeConstraint(body, Tuples.flatTupleOf(var_type), new ConceptKey(MetaAdapterFactory.getConcept(0x6b642eaa1043424aL, 0x9e0949eb41607114L, 0x1fd8e2cf9df802c6L, "RecordTypes.structure.RecordType")));
new PositivePatternCall(body, Tuples.flatTupleOf(), Typing_AsLTypeRecord_0_switchCommonQuerySpecification.instance().getInternalQueryRepresentation());
new TypeConstraint(body, Tuples.staticArityFlatTupleOf(var_type, var__tmp_242), new ConceptFeatureKey(MetaAdapterFactory.getContainmentLink(0x6b642eaa1043424aL, 0x9e0949eb41607114L, 0x1fd8e2cf9df802c6L, 0x1fd8e2cf9df802cbL, "elems")));
new Equality(body, var__elem, var__tmp_242);
new TypeConstraint(body, Tuples.staticArityFlatTupleOf(var__elem, var__tmp_243), new ConceptFeatureKey(MetaAdapterFactory.getProperty(0xceab519525ea4f22L, 0x9b92103b95ca8c0cL, 0x110396eaaa4L, 0x110396ec041L, "name")));
new Equality(body, var__l, var__tmp_243);
new TypeConstraint(body, Tuples.staticArityFlatTupleOf(var__elem, var__tmp_244), new ConceptFeatureKey(MetaAdapterFactory.getContainmentLink(0x6b642eaa1043424aL, 0x9e0949eb41607114L, 0x1fd8e2cf9df802cfL, 0x1fd8e2cf9df802d4L, "ty")));
new PositivePatternCall(body, Tuples.flatTupleOf(var__tmp_244, var__tmp_245), Typing_AsLTypeQuerySpecification.instance().getInternalQueryRepresentation());
new Equality(body, var__ty, var__tmp_245);
new TypeConstraint(body, Tuples.staticArityFlatTupleOf(var_type, var__tmp_246), new ConceptFeatureKey(MetaAdapterFactory.getContainmentLink(0x6b642eaa1043424aL, 0x9e0949eb41607114L, 0x1fd8e2cf9df802c6L, 0x1fd8e2cf9df802cbL, "elems")));
new Equality(body, var__elem, var__tmp_246);
new TypeConstraint(body, Tuples.staticArityFlatTupleOf(var__elem, var__tmp_247), new ConceptFeatureKey(MetaAdapterFactory.getProperty(0xceab519525ea4f22L, 0x9b92103b95ca8c0cL, 0x110396eaaa4L, 0x110396ec041L, "name")));
new Equality(body, var__l, var__tmp_247);
new TypeConstraint(body, Tuples.staticArityFlatTupleOf(var__elem, var__tmp_248), new ConceptFeatureKey(MetaAdapterFactory.getContainmentLink(0x6b642eaa1043424aL, 0x9e0949eb41607114L, 0x1fd8e2cf9df802cfL, 0x1fd8e2cf9df802d4L, "ty")));
new PositivePatternCall(body, Tuples.flatTupleOf(var__tmp_248, var__tmp_249), Typing_AsLTypeQuerySpecification.instance().getInternalQueryRepresentation());
new Equality(body, var__ty, var__tmp_249);
new ExpressionEvaluation(body, new IExpressionEvaluator() {
@Override
public String getShortDescription() {
return "3431993442800474254";
return "7969736069302824830";
}
@Override
......@@ -128,9 +128,9 @@ public final class Typing_AsLTypeRecord_WrappedQuerySpecification extends MPSQue
return LTypeRecord.instance().singleton((CodeGenerationHelper.demandWrapString(valueProvider.getValue("l"))), ((LType.LTypeElement) valueProvider.getValue("ty")));
}
}, var__3431993442800474254, false);
new Equality(body, var__tmp_246, var__3431993442800474254);
new Equality(body, var__tmp_246, var_out_1);
}, var__7969736069302824830, false);
new Equality(body, var__tmp_250, var__7969736069302824830);
new Equality(body, var__tmp_250, var_out_1);
SetSequence.fromSet(bodies).addElement(body);
}
......@@ -144,8 +144,8 @@ public final class Typing_AsLTypeRecord_WrappedQuerySpecification extends MPSQue
exportedParameters.add(new ExportedParameter(body, var_out_1, p_out_1));
body.setSymbolicParameters(exportedParameters);
PVariable var__3431993442800474272 = body.newVirtualVariable();
PVariable var__tmp_247 = body.getOrCreateVariableByName("tmp_247");
PVariable var__tmp_251 = body.getOrCreateVariableByName("tmp_251");
PVariable var__7969736069302824848 = body.newVirtualVariable();
new TypeConstraint(body, Tuples.flatTupleOf(var_type), new ConceptKey(MetaAdapterFactory.getConcept(0x6b642eaa1043424aL, 0x9e0949eb41607114L, 0x1fd8e2cf9df802c6L, "RecordTypes.structure.RecordType")));
new PositivePatternCall(body, Tuples.flatTupleOf(), Typing_AsLTypeRecord_0_switchCommonQuerySpecification.instance().getInternalQueryRepresentation());
......@@ -153,7 +153,7 @@ public final class Typing_AsLTypeRecord_WrappedQuerySpecification extends MPSQue
@Override
public String getShortDescription() {
return "3431993442800474272";
return "7969736069302824848";
}
@Override
......@@ -166,9 +166,9 @@ public final class Typing_AsLTypeRecord_WrappedQuerySpecification extends MPSQue
return LTypeRecord.instance().empty();
}
}, var__3431993442800474272, false);
new Equality(body, var__tmp_247, var__3431993442800474272);
new Equality(body, var__tmp_247, var_out_1);
}, var__7969736069302824848, false);
new Equality(body, var__tmp_251, var__7969736069302824848);
new Equality(body, var__tmp_251, var_out_1);
SetSequence.fromSet(bodies).addElement(body);
}
......
......@@ -94,23 +94,23 @@ public final class Typing_CheckErrorQuerySpecification extends MPSQuerySpecifica
exportedParameters.add(new ExportedParameter(body, var_out_2, p_out_2));
body.setSymbolicParameters(exportedParameters);
PVariable var__tmp_31 = body.getOrCreateVariableByName("tmp_31");
PVariable var__tmp_30 = body.getOrCreateVariableByName("tmp_30");
PVariable var__term = body.getOrCreateVariableByName("term");
PVariable var__3431993442800432538 = body.newConstantVariable(Integer.parseInt("0"));
PVariable var__tmp_28 = body.getOrCreateVariableByName("tmp_28");
PVariable var__tmp_27 = body.getOrCreateVariableByName("tmp_27");
PVariable var__3431993442800471479 = body.newVirtualVariable();
PVariable var__tmp_26 = body.getOrCreateVariableByName("tmp_26");
PVariable var__tmp_32 = body.getOrCreateVariableByName("tmp_32");
PVariable var__7969736069302822055 = body.newVirtualVariable();
PVariable var__7969736069302778871 = body.newConstantVariable(Integer.parseInt("0"));
new TypeConstraint(body, Tuples.flatTupleOf(var_out_1), new ConceptKey(MetaAdapterFactory.getConcept(0xceab519525ea4f22L, 0x9b92103b95ca8c0cL, 0x10802efe25aL, "jetbrains.mps.lang.core.structure.BaseConcept")));
new TypeConstraint(body, Tuples.flatTupleOf(var__term), new ConceptKey(MetaAdapterFactory.getInterfaceConcept(0x6b642eaa1043424aL, 0x9e0949eb41607114L, 0x1a4a252762eb92d1L, "RecordTypes.structure.Term")));
new PositivePatternCall(body, Tuples.flatTupleOf(var__term, var__tmp_26), Typing_RequiredQuerySpecification.instance().getInternalQueryRepresentation());
new PositivePatternCall(body, Tuples.flatTupleOf(var__term, var__tmp_30), Typing_RequiredQuerySpecification.instance().getInternalQueryRepresentation());
new NegativePatternCall(body, Tuples.flatTupleOf(var__term), Typing_CheckQuerySpecification.instance().getInternalQueryRepresentation());
new Equality(body, var__tmp_27, var__3431993442800432538);
new Equality(body, var__tmp_31, var__7969736069302778871);
new ExpressionEvaluation(body, new IExpressionEvaluator() {
@Override
public String getShortDescription() {
return "3431993442800471479";
return "7969736069302822055";
}
@Override
......@@ -123,11 +123,11 @@ public final class Typing_CheckErrorQuerySpecification extends MPSQuerySpecifica
return String.format("\"check failed\"");
}
}, var__3431993442800471479, false);
new Equality(body, var__tmp_28, var__3431993442800471479);
new Equality(body, var__tmp_27, var_out_0);
}, var__7969736069302822055, false);
new Equality(body, var__tmp_32, var__7969736069302822055);
new Equality(body, var__tmp_31, var_out_0);
new Equality(body, var__term, var_out_1);
new Equality(body, var__tmp_28, var_out_2);
new Equality(body, var__tmp_32, var_out_2);
SetSequence.fromSet(bodies).addElement(body);
}
......
......@@ -89,14 +89,14 @@ public final class Typing_InferQuerySpecification extends MPSQuerySpecification
exportedParameters.add(new ExportedParameter(body, var_out_1, p_out_1));
body.setSymbolicParameters(exportedParameters);
PVariable var__3431993442800452149 = body.newVirtualVariable();
PVariable var__3431993442800452144 = body.getOrCreateVariableByName("3431993442800452144");
PVariable var__3431993442800452141 = body.getOrCreateVariableByName("3431993442800452141");
PVariable var__7969736069302798543 = body.getOrCreateVariableByName("7969736069302798543");
PVariable var__7969736069302798551 = body.newVirtualVariable();
PVariable var__7969736069302798546 = body.getOrCreateVariableByName("7969736069302798546");
new TypeConstraint(body, Tuples.flatTupleOf(var_term), new ConceptKey(MetaAdapterFactory.getInterfaceConcept(0x6b642eaa1043424aL, 0x9e0949eb41607114L, 0x1a4a252762eb92d1L, "RecordTypes.structure.Term")));
new PositivePatternCall(body, Tuples.flatTupleOf(var_term, var__3431993442800452141), Typing_Infer_WrappedQuerySpecification.instance().getInternalQueryRepresentation());
new AggregatorConstraint(new BoundAggregator(LType.instance().aggregator_glb, LType.LTypeElement.class, LType.LTypeElement.class), body, Tuples.flatTupleOf(var_term, var__3431993442800452144), Typing_Infer_WrappedQuerySpecification.instance().getInternalQueryRepresentation(), var__3431993442800452149, 1);
new Equality(body, var_out_1, var__3431993442800452149);
new PositivePatternCall(body, Tuples.flatTupleOf(var_term, var__7969736069302798543), Typing_Infer_WrappedQuerySpecification.instance().getInternalQueryRepresentation());
new AggregatorConstraint(new BoundAggregator(LType.instance().aggregator_glb, LType.LTypeElement.class, LType.LTypeElement.class), body, Tuples.flatTupleOf(var_term, var__7969736069302798546), Typing_Infer_WrappedQuerySpecification.instance().getInternalQueryRepresentation(), var__7969736069302798551, 1);
new Equality(body, var_out_1, var__7969736069302798551);
SetSequence.fromSet(bodies).addElement(body);
}
......
......@@ -94,27 +94,27 @@ public final class Typing_LookupFailureQuerySpecification extends MPSQuerySpecif
exportedParameters.add(new ExportedParameter(body, var_out_2, p_out_2));
body.setSymbolicParameters(exportedParameters);
PVariable var__3431993442800471452 = body.newVirtualVariable();
PVariable var__3431993442800447860 = body.newConstantVariable(Integer.parseInt("0"));
PVariable var__7969736069302794262 = body.newConstantVariable(Integer.parseInt("0"));
PVariable var__7969736069302822028 = body.newVirtualVariable();
PVariable var__match_a0a0a0g = body.getOrCreateVariableByName("match_a0a0a0g");
PVariable var__term = body.getOrCreateVariableByName("term");
PVariable var__v = body.getOrCreateVariableByName("v");
PVariable var__match_a0a0a0e = body.getOrCreateVariableByName("match_a0a0a0e");
PVariable var__tmp_24 = body.getOrCreateVariableByName("tmp_24");
PVariable var__tmp_23 = body.getOrCreateVariableByName("tmp_23");
PVariable var__tmp_25 = body.getOrCreateVariableByName("tmp_25");
PVariable var__tmp_28 = body.getOrCreateVariableByName("tmp_28");
PVariable var__tmp_27 = body.getOrCreateVariableByName("tmp_27");
PVariable var__tmp_29 = body.getOrCreateVariableByName("tmp_29");
new TypeConstraint(body, Tuples.flatTupleOf(var_out_1), new ConceptKey(MetaAdapterFactory.getConcept(0xceab519525ea4f22L, 0x9b92103b95ca8c0cL, 0x10802efe25aL, "jetbrains.mps.lang.core.structure.BaseConcept")));
new PositivePatternCall(body, Tuples.flatTupleOf(var__term), Typing_LookupFailure_0_switchCommonQuerySpecification.instance().getInternalQueryRepresentation());
new Equality(body, var__match_a0a0a0e, var__term);
new TypeConstraint(body, Tuples.flatTupleOf(var__match_a0a0a0e), new ConceptKey(MetaAdapterFactory.getConcept(0x6b642eaa1043424aL, 0x9e0949eb41607114L, 0x1a4a252762eb92e0L, "RecordTypes.structure.Var")));
new Equality(body, var__v, var__match_a0a0a0e);
new NegativePatternCall(body, Tuples.flatTupleOf(var__term, var__v, var__tmp_23), Typing_LookupQuerySpecification.instance().getInternalQueryRepresentation());
new Equality(body, var__tmp_24, var__3431993442800447860);
new Equality(body, var__match_a0a0a0g, var__term);
new TypeConstraint(body, Tuples.flatTupleOf(var__match_a0a0a0g), new ConceptKey(MetaAdapterFactory.getConcept(0x6b642eaa1043424aL, 0x9e0949eb41607114L, 0x1a4a252762eb92e0L, "RecordTypes.structure.Var")));
new Equality(body, var__v, var__match_a0a0a0g);
new NegativePatternCall(body, Tuples.flatTupleOf(var__term, var__v, var__tmp_27), Typing_LookupQuerySpecification.instance().getInternalQueryRepresentation());
new Equality(body, var__tmp_28, var__7969736069302794262);
new ExpressionEvaluation(body, new IExpressionEvaluator() {
@Override
public String getShortDescription() {
return "3431993442800471452";
return "7969736069302822028";
}
@Override
......@@ -127,11 +127,11 @@ public final class Typing_LookupFailureQuerySpecification extends MPSQuerySpecif
return String.format("variable not bound");
}
}, var__3431993442800471452, false);
new Equality(body, var__tmp_25, var__3431993442800471452);
new Equality(body, var__tmp_24, var_out_0);
}, var__7969736069302822028, false);
new Equality(body, var__tmp_29, var__7969736069302822028);
new Equality(body, var__tmp_28, var_out_0);
new Equality(body, var__v, var_out_1);
new Equality(body, var__tmp_25, var_out_2);
new Equality(body, var__tmp_29, var_out_2);
SetSequence.fromSet(bodies).addElement(body);
}
......
......@@ -86,12 +86,12 @@ public final class Typing_Lookup_0_switchCommonQuerySpecification extends MPSQue
exportedParameters.add(new ExportedParameter(body, var_v, p_v));
body.setSymbolicParameters(exportedParameters);
PVariable var__tmp_101 = body.getOrCreateVariableByName("tmp_101");
PVariable var__tmp_105 = body.getOrCreateVariableByName("tmp_105");
new TypeConstraint(body, Tuples.flatTupleOf(var_term), new ConceptKey(MetaAdapterFactory.getInterfaceConcept(0x6b642eaa1043424aL, 0x9e0949eb41607114L, 0x1a4a252762eb92d1L, "RecordTypes.structure.Term")));
new TypeConstraint(body, Tuples.flatTupleOf(var_v), new ConceptKey(MetaAdapterFactory.getConcept(0x6b642eaa1043424aL, 0x9e0949eb41607114L, 0x1a4a252762eb92e0L, "RecordTypes.structure.Var")));
new PositivePatternCall(body, Tuples.flatTupleOf(var_term, var__tmp_101), Typing_AllvarsQuerySpecification.instance().getInternalQueryRepresentation());
new Equality(body, var__tmp_101, var_v);
new PositivePatternCall(body, Tuples.flatTupleOf(var_term, var__tmp_105), Typing_AllvarsQuerySpecification.instance().getInternalQueryRepresentation());
new Equality(body, var__tmp_105, var_v);
SetSequence.fromSet(bodies).addElement(body);
}
......
......@@ -94,18 +94,18 @@ public final class Typing_MatchFunFailureQuerySpecification extends MPSQuerySpec
exportedParameters.add(new ExportedParameter(body, var_out_2, p_out_2));
body.setSymbolicParameters(exportedParameters);
PVariable var__7969736069302794120 = body.newConstantVariable(false);
PVariable var__tmp_1 = body.getOrCreateVariableByName("tmp_1");
PVariable var__tmp_2 = body.getOrCreateVariableByName("tmp_2");
PVariable var__3431993442800471264 = body.newVirtualVariable();
PVariable var__ty = body.getOrCreateVariableByName("ty");
PVariable var__tmp_3 = body.getOrCreateVariableByName("tmp_3");
PVariable var__7969736069302821808 = body.newVirtualVariable();
PVariable var__tmp_4 = body.getOrCreateVariableByName("tmp_4");
PVariable var__3431993442800447718 = body.newConstantVariable(false);
PVariable var__tmp_5 = body.getOrCreateVariableByName("tmp_5");
PVariable var__tmp_6 = body.getOrCreateVariableByName("tmp_6");
PVariable var__3431993442800447726 = body.newConstantVariable(Integer.parseInt("0"));
PVariable var__3431993442800471280 = body.newVirtualVariable();
PVariable var__7969736069302794128 = body.newConstantVariable(Integer.parseInt("0"));
PVariable var__app = body.getOrCreateVariableByName("app");
PVariable var__7969736069302821824 = body.newVirtualVariable();
new TypeConstraint(body, Tuples.flatTupleOf(var_out_1), new ConceptKey(MetaAdapterFactory.getConcept(0xceab519525ea4f22L, 0x9b92103b95ca8c0cL, 0x10802efe25aL, "jetbrains.mps.lang.core.structure.BaseConcept")));
new PositivePatternCall(body, Tuples.flatTupleOf(), Typing_MatchFunFailure_0_switchCommonQuerySpecification.instance().getInternalQueryRepresentation());
......@@ -117,7 +117,7 @@ public final class Typing_MatchFunFailureQuerySpecification extends MPSQuerySpec
@Override
public String getShortDescription() {
return "3431993442800471264";
return "7969736069302821808";
}
@Override
......@@ -130,16 +130,16 @@ public final class Typing_MatchFunFailureQuerySpecification extends MPSQuerySpec
return LType.instance().isFun(((LType.LTypeElement) valueProvider.getValue("ty")));
}
}, var__3431993442800471264, false);
new Equality(body, var__tmp_3, var__3431993442800471264);
new Equality(body, var__tmp_4, var__3431993442800447718);
}, var__7969736069302821808, false);
new Equality(body, var__tmp_3, var__7969736069302821808);
new Equality(body, var__tmp_4, var__7969736069302794120);
new Equality(body, var__tmp_3, var__tmp_4);
new Equality(body, var__tmp_5, var__3431993442800447726);
new Equality(body, var__tmp_5, var__7969736069302794128);
new ExpressionEvaluation(body, new IExpressionEvaluator() {
@Override
public String getShortDescription() {
return "3431993442800471280";
return "7969736069302821824";
}
@Override
......@@ -152,8 +152,8 @@ public final class Typing_MatchFunFailureQuerySpecification extends MPSQuerySpec
return String.format("not a function");
}
}, var__3431993442800471280, false);
new Equality(body, var__tmp_6, var__3431993442800471280);
}, var__7969736069302821824, false);
new Equality(body, var__tmp_6, var__7969736069302821824);
new Equality(body, var__tmp_5, var_out_0);
new Equality(body, var__app, var_out_1);
new Equality(body, var__tmp_6, var_out_2);
......@@ -172,17 +172,17 @@ public final class Typing_MatchFunFailureQuerySpecification extends MPSQuerySpec
exportedParameters.add(new ExportedParameter(body, var_out_2, p_out_2));
body.setSymbolicParameters(exportedParameters);
PVariable var__3431993442800447751 = body.newConstantVariable(false);
PVariable var__7969736069302794153 = body.newConstantVariable(false);
PVariable var__7969736069302821853 = body.newVirtualVariable();
PVariable var__tmp_11 = body.getOrCreateVariableByName("tmp_11");
PVariable var__tmp_10 = body.getOrCreateVariableByName("tmp_10");
PVariable var__ty = body.getOrCreateVariableByName("ty");
PVariable var__lam = body.getOrCreateVariableByName("lam");
PVariable var__3431993442800471309 = body.newVirtualVariable();
PVariable var__7969736069302794161 = body.newConstantVariable(Integer.parseInt("0"));
PVariable var__tmp_7 = body.getOrCreateVariableByName("tmp_7");
PVariable var__3431993442800447759 = body.newConstantVariable(Integer.parseInt("0"));
PVariable var__tmp_8 = body.getOrCreateVariableByName("tmp_8");
PVariable var__7969736069302821869 = body.newVirtualVariable();
PVariable var__tmp_9 = body.getOrCreateVariableByName("tmp_9");
PVariable var__3431993442800471325 = body.newVirtualVariable();
new TypeConstraint(body, Tuples.flatTupleOf(var_out_1), new ConceptKey(MetaAdapterFactory.getConcept(0xceab519525ea4f22L, 0x9b92103b95ca8c0cL, 0x10802efe25aL, "jetbrains.mps.lang.core.structure.BaseConcept")));
new PositivePatternCall(body, Tuples.flatTupleOf(), Typing_MatchFunFailure_0_switchCommonQuerySpecification.instance().getInternalQueryRepresentation());
......@@ -193,7 +193,7 @@ public final class Typing_MatchFunFailureQuerySpecification extends MPSQuerySpec