Commit 63d6f349 authored by André Pacak's avatar André Pacak

lookup bug for let bindings fixed

parent a232b62f
This source diff could not be displayed because it is too large. You can view the blob instead.
......@@ -2249,8 +2249,8 @@
<node id="7235579582580231122" at="64,49,65,49" concept="2" />
<node id="7235579582580231158" at="65,49,66,48" concept="2" />
<node id="1894367444356282870" at="66,48,67,22" concept="8" />
<node id="1894367444356282885" at="69,41,70,96" concept="7" />
<node id="1894367444356282885" at="70,96,71,47" concept="2" />
<node id="1894367444356282885" at="69,41,70,99" concept="7" />
<node id="1894367444356282885" at="70,99,71,47" concept="2" />
<node id="1894367444356282885" at="71,47,72,34" concept="2" />
<node id="1894367444356282885" at="72,34,73,22" concept="8" />
<node id="2951477311799556610" at="75,41,76,39" concept="2" />
......
......@@ -155,7 +155,7 @@
<ref role="1XX52x" to="xkot:1Da9ityUTcy" resolve="Lam" />
<node concept="3EZMnI" id="1Da9ityUVBS" role="2wV5jI">
<node concept="3F0ifn" id="1Da9ityUVC5" role="3EZMnx">
<property role="3F0ifm" value="lam" />
<property role="3F0ifm" value="lambda" />
</node>
<node concept="3F0A7n" id="2zPKfCWrZC2" role="3EZMnx">
<ref role="1NtTu8" to="tpck:h0TrG11" resolve="name" />
......
<?xml version="1.0" encoding="UTF-8"?>
<product version="3" modelHash="2sr6n86bvkedcpf2pwjxea008yp4lk3">
<product version="3" modelHash="-3otejg5vci9mwsgi3d2l7t4ue8p97md">
<files names="Add_Editor.java:Add_EditorBuilder_a.java:Anno_Editor.java:Anno_EditorBuilder_a.java:App_Editor.java:App_EditorBuilder_a.java:CaseCase_Editor.java:CaseCase_EditorBuilder_a.java:Case_Editor.java:Case_EditorBuilder_a.java:EditorAspectDescriptorImpl.java:Fun_Editor.java:Fun_EditorBuilder_a.java:GrammarActionsDescriptor.java:GrammarCellsSubstituteMenu_Add.java:GrammarCellsSubstituteMenu_Anno.java:GrammarCellsSubstituteMenu_App.java:GrammarCellsSubstituteMenu_Case.java:GrammarCellsSubstituteMenu_CaseCase.java:GrammarCellsSubstituteMenu_Fun.java:GrammarCellsSubstituteMenu_IModuleElem.java:GrammarCellsSubstituteMenu_InL.java:GrammarCellsSubstituteMenu_InR.java:GrammarCellsSubstituteMenu_Lam.java:GrammarCellsSubstituteMenu_Let.java:GrammarCellsSubstituteMenu_Module.java:GrammarCellsSubstituteMenu_ModuleElemDef.java:GrammarCellsSubstituteMenu_ModuleElemEmpty.java:GrammarCellsSubstituteMenu_ModuleImport.java:GrammarCellsSubstituteMenu_Mult.java:GrammarCellsSubstituteMenu_Nat.java:GrammarCellsSubstituteMenu_ParensTerm.java:GrammarCellsSubstituteMenu_ParensType.java:GrammarCellsSubstituteMenu_Succ.java:GrammarCellsSubstituteMenu_Sum.java:GrammarCellsSubstituteMenu_Term.java:GrammarCellsSubstituteMenu_Type.java:GrammarCellsSubstituteMenu_Var.java:GrammarCellsSubstituteMenu_Zero.java:InL_Editor.java:InL_EditorBuilder_a.java:InR_Editor.java:InR_EditorBuilder_a.java:Lam_Editor.java:Lam_EditorBuilder_a.java:Let_Editor.java:Let_EditorBuilder_a.java:ModuleElemDef_Editor.java:ModuleElemDef_EditorBuilder_a.java:ModuleElemEmpty_SubstituteMenu.java:ModuleImport_Editor.java:ModuleImport_EditorBuilder_a.java:Module_Editor.java:Module_EditorBuilder_a.java:Mult_Editor.java:Mult_EditorBuilder_a.java:Nat_Editor.java:Nat_EditorBuilder_a.java:ParensTerm_Editor.java:ParensTerm_EditorBuilder_a.java:ParensType_Editor.java:ParensType_EditorBuilder_a.java:Succ_Editor.java:Succ_EditorBuilder_a.java:Sum_Editor.java:Sum_EditorBuilder_a.java:Var_Editor.java:Var_EditorBuilder_a.java:Zero_Editor.java:Zero_EditorBuilder_a.java:template_GrammarCellsSideTransformationsMenu.java" />
</product>
<?xml version="1.0" encoding="UTF-8"?>
<product version="3" modelHash="809en2vircw1c2ckuqg3ha1ytpglnph">
<product version="3" modelHash="-8zhe524f3m3wgwzon42jotpzwu2754j">
<files names="Language.java" />
</product>
......@@ -67,7 +67,7 @@ import jetbrains.mps.openapi.editor.menus.transformation.SNodeLocation;
return editorCell;
}
private EditorCell createConstant_0() {
EditorCell_Constant editorCell = new EditorCell_Constant(getEditorContext(), myNode, "lam");
EditorCell_Constant editorCell = new EditorCell_Constant(getEditorContext(), myNode, "lambda");
editorCell.setCellId("Constant_1ldesa_a0");
editorCell.setDefaultText("");
return editorCell;
......
......@@ -2249,8 +2249,8 @@
<node id="7235579582580231122" at="64,49,65,49" concept="2" />
<node id="7235579582580231158" at="65,49,66,48" concept="2" />
<node id="1894367444356282870" at="66,48,67,22" concept="8" />
<node id="1894367444356282885" at="69,41,70,96" concept="7" />
<node id="1894367444356282885" at="70,96,71,47" concept="2" />
<node id="1894367444356282885" at="69,41,70,99" concept="7" />
<node id="1894367444356282885" at="70,99,71,47" concept="2" />
<node id="1894367444356282885" at="71,47,72,34" concept="2" />
<node id="1894367444356282885" at="72,34,73,22" concept="8" />
<node id="2951477311799556610" at="75,41,76,39" concept="2" />
......
<?xml version="1.0" encoding="UTF-8"?>
<debug-info version="2" />
<?xml version="1.0" encoding="UTF-8"?>
<debug-info version="2" />
......@@ -13,10 +13,23 @@
<concept id="5790571747095872620" name="SumTypes.structure.Module" flags="ng" index="1gj3CZ">
<child id="5790571747095872621" name="elems" index="1gj3CY" />
</concept>
<concept id="1894367444356272930" name="SumTypes.structure.Lam" flags="ng" index="1SCro5">
<child id="1894367444356272950" name="t" index="1SCroh" />
<concept id="1894367444356272954" name="SumTypes.structure.Let" flags="ng" index="1SCrot">
<child id="1894367444356272974" name="bound" index="1SCrpD" />
<child id="1894367444356272978" name="body" index="1SCrpP" />
</concept>
<concept id="1894367444356272898" name="SumTypes.structure.Add" flags="ng" index="1SCro_">
<child id="1894367444356272903" name="t1" index="1SCrow" />
<child id="1894367444356272907" name="t2" index="1SCroG" />
</concept>
<concept id="1894367444356272914" name="SumTypes.structure.Mult" flags="ng" index="1SCroP">
<child id="1894367444356272919" name="t1" index="1SCroK" />
<child id="1894367444356272923" name="t2" index="1SCroW" />
</concept>
<concept id="1894367444356272864" name="SumTypes.structure.Var" flags="ng" index="1SCrv7" />
<concept id="1894367444356272855" name="SumTypes.structure.Succ" flags="ng" index="1SCrvK">
<child id="1894367444356272860" name="t" index="1SCrvV" />
</concept>
<concept id="1894367444356272850" name="SumTypes.structure.Zero" flags="ng" index="1SCrvP" />
</language>
<language id="ceab5195-25ea-4f22-9b92-103b95ca8c0c" name="jetbrains.mps.lang.core">
<concept id="1169194658468" name="jetbrains.mps.lang.core.structure.INamedConcept" flags="ng" index="TrEIO">
......@@ -28,10 +41,21 @@
<property role="TrG5h" value="TestOkLetWithArithmetic" />
<node concept="2BHCoM" id="7Sr$8awKfLY" role="1gj3CY">
<property role="TrG5h" value="test" />
<node concept="1SCro5" id="38MBpdjBbKz" role="2BHfFu">
<node concept="1SCrot" id="6m6bBlEVf$U" role="2BHfFu">
<property role="TrG5h" value="x" />
<node concept="1SCrv7" id="1BU4o1$nk3c" role="1SCroh">
<property role="TrG5h" value="x" />
<node concept="1SCro_" id="6m6bBlIaKcV" role="1SCrpD">
<node concept="1SCrvK" id="6m6bBlIaKdr" role="1SCroG">
<node concept="1SCrvP" id="6m6bBlIaKdy" role="1SCrvV" />
</node>
<node concept="1SCrvP" id="6m6bBlEVf_9" role="1SCrow" />
</node>
<node concept="1SCroP" id="6m6bBlIaKdB" role="1SCrpP">
<node concept="1SCrvP" id="6m6bBlIaKdQ" role="1SCroK" />
<node concept="1SCrvK" id="6m6bBlIaKei" role="1SCroW">
<node concept="1SCrv7" id="6m6bBlIaKer" role="1SCrvV">
<property role="TrG5h" value="x" />
</node>
</node>
</node>
</node>
</node>
......
<?xml version="1.0" encoding="UTF-8"?>
<product version="3" modelHash="-2nlixlnaqxvyojsou73f5s1iy8c4c84">
<files names="AnalysisResultAccess.java:ConstantDefinitions.java:LType.java:QuerySpecificationHints.java:Typing_AllvarsQuerySpecification.java:Typing_Allvars_0_switchCommonQuerySpecification.java:Typing_AsLTypeQuerySpecification.java:Typing_AsLType_0_switchCommonQuerySpecification.java:Typing_AsLType_WrappedBody0QuerySpecification.java:Typing_AsLType_WrappedBody1QuerySpecification.java:Typing_AsLType_WrappedBody2QuerySpecification.java:Typing_AsLType_WrappedBody3QuerySpecification.java:Typing_AsLType_WrappedQuerySpecification.java:Typing_CheckErrorQuerySpecification.java:Typing_CheckQuerySpecification.java:Typing_Check_0_switchCommonQuerySpecification.java:Typing_InferQuerySpecification.java:Typing_Infer_0_switchCommonQuerySpecification.java:Typing_Infer_WrappedBody0QuerySpecification.java:Typing_Infer_WrappedBody1QuerySpecification.java:Typing_Infer_WrappedBody2QuerySpecification.java:Typing_Infer_WrappedBody3QuerySpecification.java:Typing_Infer_WrappedBody4QuerySpecification.java:Typing_Infer_WrappedBody5QuerySpecification.java:Typing_Infer_WrappedBody6QuerySpecification.java:Typing_Infer_WrappedBody7QuerySpecification.java:Typing_Infer_WrappedBody8QuerySpecification.java:Typing_Infer_WrappedBody9QuerySpecification.java:Typing_Infer_WrappedQuerySpecification.java:Typing_LookupFailureQuerySpecification.java:Typing_LookupFailure_0_switchCommonQuerySpecification.java:Typing_LookupQuerySpecification.java:Typing_Lookup_0_switchCommonQuerySpecification.java:Typing_Lookup_WrappedBody0QuerySpecification.java:Typing_Lookup_WrappedBody10QuerySpecification.java:Typing_Lookup_WrappedBody11QuerySpecification.java:Typing_Lookup_WrappedBody12QuerySpecification.java:Typing_Lookup_WrappedBody13QuerySpecification.java:Typing_Lookup_WrappedBody14QuerySpecification.java:Typing_Lookup_WrappedBody15QuerySpecification.java:Typing_Lookup_WrappedBody16QuerySpecification.java:Typing_Lookup_WrappedBody17QuerySpecification.java:Typing_Lookup_WrappedBody18QuerySpecification.java:Typing_Lookup_WrappedBody19QuerySpecification.java:Typing_Lookup_WrappedBody1QuerySpecification.java:Typing_Lookup_WrappedBody20QuerySpecification.java:Typing_Lookup_WrappedBody2QuerySpecification.java:Typing_Lookup_WrappedBody3QuerySpecification.java:Typing_Lookup_WrappedBody4QuerySpecification.java:Typing_Lookup_WrappedBody5QuerySpecification.java:Typing_Lookup_WrappedBody6QuerySpecification.java:Typing_Lookup_WrappedBody7QuerySpecification.java:Typing_Lookup_WrappedBody8QuerySpecification.java:Typing_Lookup_WrappedBody9QuerySpecification.java:Typing_Lookup_WrappedQuerySpecification.java:Typing_MatchFunFailureQuerySpecification.java:Typing_MatchFunFailure_0_switchCommonQuerySpecification.java:Typing_MatchSumFailureQuerySpecification.java:Typing_MatchSumFailure_0_switchCommonQuerySpecification.java:Typing_RequiredQuerySpecification.java:Typing_Required_0_switchCommonQuerySpecification.java:Typing_Required_WrappedBody0QuerySpecification.java:Typing_Required_WrappedBody10QuerySpecification.java:Typing_Required_WrappedBody11QuerySpecification.java:Typing_Required_WrappedBody12QuerySpecification.java:Typing_Required_WrappedBody1QuerySpecification.java:Typing_Required_WrappedBody2QuerySpecification.java:Typing_Required_WrappedBody3QuerySpecification.java:Typing_Required_WrappedBody4QuerySpecification.java:Typing_Required_WrappedBody5QuerySpecification.java:Typing_Required_WrappedBody6QuerySpecification.java:Typing_Required_WrappedBody7QuerySpecification.java:Typing_Required_WrappedBody8QuerySpecification.java:Typing_Required_WrappedBody9QuerySpecification.java:Typing_Required_WrappedQuerySpecification.java" />
<product version="3" modelHash="-2d2aluaolrixayojr7y7wlora496zic">
<files names="AnalysisResultAccess.java:ConstantDefinitions.java:LType.java:QuerySpecificationHints.java:Typing_AllvarsQuerySpecification.java:Typing_Allvars_0_switchCommonQuerySpecification.java:Typing_AsLTypeQuerySpecification.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_MatchSumFailureQuerySpecification.java:Typing_MatchSumFailure_0_switchCommonQuerySpecification.java:Typing_RequiredQuerySpecification.java:Typing_Required_0_switchCommonQuerySpecification.java" />
</product>
<?xml version="1.0" encoding="UTF-8"?>
<product version="3" modelHash="6dxqdgcq3bhy3qsaqsorb3xddg8w2sf" />
<?xml version="1.0" encoding="UTF-8"?>
<product version="3" modelHash="1v35ytc7lxawk26a22a73fkji8gujdf" />
<?xml version="1.0" encoding="UTF-8"?>
<product version="3" modelHash="9q9ut846g4o0a5z3jp0mw89d1gjbrm0" />
<?xml version="1.0" encoding="UTF-8"?>
<product version="3" modelHash="-923ssifgejdfeirc6ntrz5th76ljffg" />
<?xml version="1.0" encoding="UTF-8"?>
<product version="3" modelHash="-wnf1pgw2m4goptois6hvqc912p9tc0" />
<?xml version="1.0" encoding="UTF-8"?>
<product version="3" modelHash="-5kug41w2zwd9auly9sqw0nk6e6qjr1t" />
<?xml version="1.0" encoding="UTF-8"?>
<product version="3" modelHash="-c6wni7nvey7dfsaku5m003pitwl0xdi" />
<?xml version="1.0" encoding="UTF-8"?>
<product version="3" modelHash="-7r1ex5bbk2f89vep4wljhg2sts9k4z2" />
<?xml version="1.0" encoding="UTF-8"?>
<product version="3" modelHash="96wydebckx899pdjnkzod43z33admcn" />
<?xml version="1.0" encoding="UTF-8"?>
<product version="3" modelHash="6cx34ikqy9s4y0ubu7ngp9azpi06580" />
<?xml version="1.0" encoding="UTF-8"?>
<product version="3" modelHash="-7f1ljduud9em3niz18nty0oh9yv1xs" />
<?xml version="1.0" encoding="UTF-8"?>
<product version="3" modelHash="73etnx8g1k9aalup9qg8mku3tyw1g3t" />
<?xml version="1.0" encoding="UTF-8"?>
<product version="3" modelHash="38ljy552qfh2iomoj0kzvpz6k9ker5h" />
<?xml version="1.0" encoding="UTF-8"?>
<product version="3" modelHash="-3ca5o42v45399ddowwbluqnxoiou5xg" />
<?xml version="1.0" encoding="UTF-8"?>
<product version="3" modelHash="-5dm20859rehexsgjqa5gxm9rpl093hq" />
<?xml version="1.0" encoding="UTF-8"?>
<product version="3" modelHash="ej2wparby33zjzj6vgoxsct5vgaebnx" />
<?xml version="1.0" encoding="UTF-8"?>
<product version="3" modelHash="1hhaub1xvjhkc6k8agem5lgyaclzjkx" />
<?xml version="1.0" encoding="UTF-8"?>
<product version="3" modelHash="-5g1xuzz94l36jnmmqw06mfayt64w7oh" />
<?xml version="1.0" encoding="UTF-8"?>
<product version="3" modelHash="-9zlqu612nf87wikebidmo0g68tginye" />
......@@ -8,7 +8,7 @@ import org.eclipse.viatra.query.runtime.api.ViatraQueryMatcher;
import org.eclipse.viatra.query.runtime.api.IPatternMatch;
import org.inca.core.runtime.plugin.EnginePool;
import org.inca.core.runtime.plugin.AbstractScope;
import org.eclipse.viatra.query.runtime.rete.matcher.DRedReteBackendFactory;
import org.eclipse.viatra.query.runtime.rete.matcher.ScatteredTimelyReteBackendFactory;
import java.util.Set;
import org.inca.core.util.plugin.CodeGenerationHelper;
import jetbrains.mps.internal.collections.runtime.SetSequence;
......@@ -23,14 +23,14 @@ import org.inca.data.runtime.plugin.CompositeMatcher;
public class AnalysisResultAccess {
public static String expectedType(final SNode term, final SModel scope) {
final ViatraQueryMatcher<IPatternMatch> evaluator = EnginePool.getMatcher(Typing_InferQuerySpecification.instance(), AbstractScope.from(scope), true, DRedReteBackendFactory.INSTANCE);
final ViatraQueryMatcher<IPatternMatch> evaluator = EnginePool.getMatcher(Typing_InferQuerySpecification.instance(), AbstractScope.from(scope), true, ScatteredTimelyReteBackendFactory.INSTANCE);
final IPatternMatch tup = evaluator.newMatch(term, null);
final Set<LType.LTypeElement> values = CodeGenerationHelper.getAllValues(evaluator, "out_1", tup);
return typeToString(SetSequence.fromSet(values).first());
}
public static boolean isChecked(final SNode term, final SModel scope) {
final ViatraQueryMatcher<IPatternMatch> evaluator = EnginePool.getMatcher(Typing_InferQuerySpecification.instance(), AbstractScope.from(scope), true, DRedReteBackendFactory.INSTANCE);
final ViatraQueryMatcher<IPatternMatch> evaluator = EnginePool.getMatcher(Typing_InferQuerySpecification.instance(), AbstractScope.from(scope), true, ScatteredTimelyReteBackendFactory.INSTANCE);
final IPatternMatch tup = evaluator.newMatch(term, null);
final Set<LType.LTypeElement> values = CodeGenerationHelper.getAllValues(evaluator, "out_1", tup);
......
......@@ -34,31 +34,31 @@ 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(0x8d2332833fa47ceL, 0x89dfdaaa7554f251L, 0x1a4a252762eb93f1L, 0x1a4a252762eb93f6L, "t"));
this.conceptFeatures.add(MetaAdapterFactory.getContainmentLink(0x8d2332833fa47ceL, 0x89dfdaaa7554f251L, 0x1a4a252762eb93dcL, 0x1a4a252762eb93e5L, "ty2"));
this.conceptFeatures.add(MetaAdapterFactory.getContainmentLink(0x8d2332833fa47ceL, 0x89dfdaaa7554f251L, 0x1a4a252762eb93faL, 0x1a4a252762eb93ffL, "ty"));
this.conceptFeatures.add(MetaAdapterFactory.getContainmentLink(0x8d2332833fa47ceL, 0x89dfdaaa7554f251L, 0x1a4a252762eba873L, 0x1a4a252762eba8bdL, "c2"));
this.conceptFeatures.add(MetaAdapterFactory.getContainmentLink(0x8d2332833fa47ceL, 0x89dfdaaa7554f251L, 0x1a4a252762eba873L, 0x1a4a252762eba8b6L, "c1"));
this.conceptFeatures.add(MetaAdapterFactory.getContainmentLink(0x8d2332833fa47ceL, 0x89dfdaaa7554f251L, 0x1a4a252762eb92d7L, 0x1a4a252762eb92dcL, "t"));
this.conceptFeatures.add(MetaAdapterFactory.getContainmentLink(0x8d2332833fa47ceL, 0x89dfdaaa7554f251L, 0x1a4a252762eb933aL, 0x1a4a252762eb9352L, "body"));
this.conceptFeatures.add(MetaAdapterFactory.getContainmentLink(0x8d2332833fa47ceL, 0x89dfdaaa7554f251L, 0x1a4a252762eb9302L, 0x1a4a252762eb930bL, "t2"));
this.conceptFeatures.add(MetaAdapterFactory.getContainmentLink(0x8d2332833fa47ceL, 0x89dfdaaa7554f251L, 0x1a4a252762eb9390L, 0x1a4a252762eb9395L, "ty1"));
this.conceptFeatures.add(MetaAdapterFactory.getContainmentLink(0x8d2332833fa47ceL, 0x89dfdaaa7554f251L, 0x1a4a252762eba8aaL, 0x1a4a252762eba8afL, "t"));
this.conceptFeatures.add(MetaAdapterFactory.getContainmentLink(0x8d2332833fa47ceL, 0x89dfdaaa7554f251L, 0x1a4a252762eb937fL, 0x1a4a252762eb9384L, "t"));
this.conceptFeatures.add(MetaAdapterFactory.getContainmentLink(0x8d2332833fa47ceL, 0x89dfdaaa7554f251L, 0x1a4a252762eb936bL, 0x1a4a252762eb9374L, "t1"));
this.conceptFeatures.add(MetaAdapterFactory.getContainmentLink(0x8d2332833fa47ceL, 0x89dfdaaa7554f251L, 0x1a4a252762eb937fL, 0x1a4a252762eb93d5L, "ty"));
this.conceptFeatures.add(MetaAdapterFactory.getContainmentLink(0x8d2332833fa47ceL, 0x89dfdaaa7554f251L, 0x1a4a252762eb9302L, 0x1a4a252762eb9307L, "t1"));
this.conceptFeatures.add(MetaAdapterFactory.getContainmentLink(0x8d2332833fa47ceL, 0x89dfdaaa7554f251L, 0x1a4a252762eb936bL, 0x1a4a252762eb9378L, "t2"));
this.conceptFeatures.add(MetaAdapterFactory.getContainmentLink(0x8d2332833fa47ceL, 0x89dfdaaa7554f251L, 0x1a4a252762eb9390L, 0x1a4a252762eb9395L, "ty1"));
this.conceptFeatures.add(MetaAdapterFactory.getContainmentLink(0x8d2332833fa47ceL, 0x89dfdaaa7554f251L, 0x1a4a252762eb9312L, 0x1a4a252762eb9317L, "t1"));
this.conceptFeatures.add(MetaAdapterFactory.getContainmentLink(0x8d2332833fa47ceL, 0x89dfdaaa7554f251L, 0x1a4a252762eb933aL, 0x1a4a252762eb9352L, "body"));
this.conceptFeatures.add(MetaAdapterFactory.getContainmentLink(0x8d2332833fa47ceL, 0x89dfdaaa7554f251L, 0x1a4a252762eba873L, 0x1a4a252762eba878L, "matchee"));
this.conceptFeatures.add(MetaAdapterFactory.getContainmentLink(0x8d2332833fa47ceL, 0x89dfdaaa7554f251L, 0x1a4a252762eb93faL, 0x1a4a252762eb93ffL, "ty"));
this.conceptFeatures.add(MetaAdapterFactory.getReferenceLink(0xb802a05692a24fbcL, 0x902ef8e5004c331fL, 0x7980b687ac7456feL, 0x7980b687ac7456ffL, "parent"));
this.conceptFeatures.add(MetaAdapterFactory.getContainmentLink(0x8d2332833fa47ceL, 0x89dfdaaa7554f251L, 0x1a4a252762eba873L, 0x1a4a252762eba8b6L, "c1"));
this.conceptFeatures.add(MetaAdapterFactory.getContainmentLink(0x8d2332833fa47ceL, 0x89dfdaaa7554f251L, 0x1a4a252762eb937fL, 0x1a4a252762eb93d5L, "ty"));
this.conceptFeatures.add(MetaAdapterFactory.getContainmentLink(0x8d2332833fa47ceL, 0x89dfdaaa7554f251L, 0x1a4a252762eb9362L, 0x1a4a252762eb9367L, "t"));
this.conceptFeatures.add(MetaAdapterFactory.getContainmentLink(0x8d2332833fa47ceL, 0x89dfdaaa7554f251L, 0x1a4a252762eb9359L, 0x1a4a252762eb935eL, "t"));
this.conceptFeatures.add(MetaAdapterFactory.getContainmentLink(0x8d2332833fa47ceL, 0x89dfdaaa7554f251L, 0x1a4a252762eba8aaL, 0x1a4a252762eba8afL, "t"));
this.conceptFeatures.add(MetaAdapterFactory.getReferenceLink(0xb802a05692a24fbcL, 0x902ef8e5004c331fL, 0x7980b687ac7456feL, 0x7980b687ac7456ffL, "parent"));
this.conceptFeatures.add(MetaAdapterFactory.getContainmentLink(0x8d2332833fa47ceL, 0x89dfdaaa7554f251L, 0x1a4a252762eb9312L, 0x1a4a252762eb9317L, "t1"));
this.conceptFeatures.add(MetaAdapterFactory.getContainmentLink(0x8d2332833fa47ceL, 0x89dfdaaa7554f251L, 0x1a4a252762eb9322L, 0x1a4a252762eb9336L, "t"));
this.conceptFeatures.add(MetaAdapterFactory.getContainmentLink(0x8d2332833fa47ceL, 0x89dfdaaa7554f251L, 0x1a4a252762eb93dcL, 0x1a4a252762eb93e1L, "ty1"));
this.conceptFeatures.add(MetaAdapterFactory.getContainmentLink(0x8d2332833fa47ceL, 0x89dfdaaa7554f251L, 0x1a4a252762eb9390L, 0x1a4a252762eb9399L, "ty2"));
this.conceptFeatures.add(MetaAdapterFactory.getContainmentLink(0x8d2332833fa47ceL, 0x89dfdaaa7554f251L, 0x1a4a252762eb936bL, 0x1a4a252762eb9374L, "t1"));
this.conceptFeatures.add(MetaAdapterFactory.getContainmentLink(0x8d2332833fa47ceL, 0x89dfdaaa7554f251L, 0x1a4a252762eb93dcL, 0x1a4a252762eb93e5L, "ty2"));
this.conceptFeatures.add(MetaAdapterFactory.getContainmentLink(0x8d2332833fa47ceL, 0x89dfdaaa7554f251L, 0x1a4a252762eb92d7L, 0x1a4a252762eb92dcL, "t"));
this.conceptFeatures.add(MetaAdapterFactory.getContainmentLink(0x8d2332833fa47ceL, 0x89dfdaaa7554f251L, 0x1a4a252762eb9302L, 0x1a4a252762eb930bL, "t2"));
this.conceptFeatures.add(MetaAdapterFactory.getContainmentLink(0x8d2332833fa47ceL, 0x89dfdaaa7554f251L, 0x1a4a252762eb933aL, 0x1a4a252762eb934eL, "bound"));
this.conceptFeatures.add(MetaAdapterFactory.getContainmentLink(0x8d2332833fa47ceL, 0x89dfdaaa7554f251L, 0x1a4a252762eb936bL, 0x1a4a252762eb9378L, "t2"));
this.conceptFeatures.add(MetaAdapterFactory.getContainmentLink(0x8d2332833fa47ceL, 0x89dfdaaa7554f251L, 0x1a4a252762eb93f1L, 0x1a4a252762eb93f6L, "t"));
this.conceptFeatures.add(MetaAdapterFactory.getContainmentLink(0x8d2332833fa47ceL, 0x89dfdaaa7554f251L, 0x1a4a252762eb9390L, 0x1a4a252762eb9399L, "ty2"));
this.conceptFeatures.add(MetaAdapterFactory.getContainmentLink(0x8d2332833fa47ceL, 0x89dfdaaa7554f251L, 0x1a4a252762eb9322L, 0x1a4a252762eb9336L, "t"));
this.conceptFeatures.add(MetaAdapterFactory.getContainmentLink(0x8d2332833fa47ceL, 0x89dfdaaa7554f251L, 0x1a4a252762eb9312L, 0x1a4a252762eb931bL, "t2"));
this.conceptFeatures.add(MetaAdapterFactory.getContainmentLink(0x8d2332833fa47ceL, 0x89dfdaaa7554f251L, 0x1a4a252762eba873L, 0x1a4a252762eba8bdL, "c2"));
this.conceptFeatures.add(MetaAdapterFactory.getContainmentLink(0x8d2332833fa47ceL, 0x89dfdaaa7554f251L, 0x1a4a252762eb93dcL, 0x1a4a252762eb93e1L, "ty1"));
this.languages = new HashSet<SLanguage>();
this.languages.add(MetaAdapterFactory.getLanguage(0xb802a05692a24fbcL, 0x902ef8e5004c331fL, "ceab5195-25ea-4f22-9b92-103b95ca8c0c"));
......
package SumTypes_Checker.model;
/*Generated by MPS */
import org.inca.core.runtime.plugin.MPSQuerySpecification;
import org.inca.core.runtime.plugin.MPSQuerySpecificationHints;
import org.inca.core.runtime.plugin.MPSGenericPatternMatcher;
import org.eclipse.viatra.query.runtime.api.ViatraQueryEngine;
import org.eclipse.viatra.query.runtime.exception.ViatraQueryException;
import org.eclipse.viatra.query.runtime.api.scope.QueryScope;
import org.inca.core.runtime.plugin.AbstractScope;
import org.inca.core.runtime.plugin.AbstractPQuery;
import org.eclipse.viatra.query.runtime.matchers.psystem.queries.PParameter;
import org.inca.core.runtime.plugin.ConceptKey;
import jetbrains.mps.smodel.adapter.structure.MetaAdapterFactory;
import org.inca.data.runtime.plugin.LatticeInputKey;
import java.util.Set;
import org.eclipse.viatra.query.runtime.matchers.psystem.PBody;
import org.eclipse.viatra.query.runtime.matchers.psystem.queries.QueryInitializationException;
import jetbrains.mps.internal.collections.runtime.SetSequence;
import java.util.HashSet;
import org.eclipse.viatra.query.runtime.matchers.psystem.PVariable;
import java.util.List;
import org.eclipse.viatra.query.runtime.matchers.psystem.basicdeferred.ExportedParameter;
import java.util.ArrayList;
import org.eclipse.viatra.query.runtime.matchers.psystem.basicenumerables.TypeConstraint;
import org.eclipse.viatra.query.runtime.matchers.tuple.Tuples;
import org.eclipse.viatra.query.runtime.matchers.psystem.basicenumerables.PositivePatternCall;
import org.eclipse.viatra.query.runtime.matchers.psystem.basicdeferred.Equality;
import org.eclipse.viatra.query.runtime.matchers.psystem.basicdeferred.ExpressionEvaluation;
import org.eclipse.viatra.query.runtime.matchers.psystem.IExpressionEvaluator;
import java.util.Arrays;
import org.eclipse.viatra.query.runtime.matchers.psystem.IValueProvider;
@SuppressWarnings("all")
public final class Typing_AsLType_WrappedBody0QuerySpecification extends MPSQuerySpecification {
private Typing_AsLType_WrappedBody0QuerySpecification() {
super(Typing_AsLType_WrappedBody0QuerySpecification.GeneratedPQuery.INSTANCE);
}
@Override
public MPSQuerySpecificationHints getHints() {
return QuerySpecificationHints.instance();
}
@Override
protected MPSGenericPatternMatcher instantiate(ViatraQueryEngine engine) throws ViatraQueryException {
return MPSGenericPatternMatcher.on(engine, this);
}
@Override
public Class<? extends QueryScope> getPreferredScopeClass() {
return AbstractScope.class;
}
public static Typing_AsLType_WrappedBody0QuerySpecification instance() {
return Typing_AsLType_WrappedBody0QuerySpecification.LazyHolder.INSTANCE;
}
@SuppressWarnings("all")