diff options
Diffstat (limited to 'Solvers/Vampire-Solver/ca.mcgill.ecse.dslreasoner.vampire.reasoner/xtend-gen/ca/mcgill/ecse/dslreasoner/vampire/reasoner/builder/Logic2VampireLanguageMapper_TypeMapper.java')
-rw-r--r-- | Solvers/Vampire-Solver/ca.mcgill.ecse.dslreasoner.vampire.reasoner/xtend-gen/ca/mcgill/ecse/dslreasoner/vampire/reasoner/builder/Logic2VampireLanguageMapper_TypeMapper.java | 36 |
1 files changed, 32 insertions, 4 deletions
diff --git a/Solvers/Vampire-Solver/ca.mcgill.ecse.dslreasoner.vampire.reasoner/xtend-gen/ca/mcgill/ecse/dslreasoner/vampire/reasoner/builder/Logic2VampireLanguageMapper_TypeMapper.java b/Solvers/Vampire-Solver/ca.mcgill.ecse.dslreasoner.vampire.reasoner/xtend-gen/ca/mcgill/ecse/dslreasoner/vampire/reasoner/builder/Logic2VampireLanguageMapper_TypeMapper.java index d3dddcfc..f776371b 100644 --- a/Solvers/Vampire-Solver/ca.mcgill.ecse.dslreasoner.vampire.reasoner/xtend-gen/ca/mcgill/ecse/dslreasoner/vampire/reasoner/builder/Logic2VampireLanguageMapper_TypeMapper.java +++ b/Solvers/Vampire-Solver/ca.mcgill.ecse.dslreasoner.vampire.reasoner/xtend-gen/ca/mcgill/ecse/dslreasoner/vampire/reasoner/builder/Logic2VampireLanguageMapper_TypeMapper.java | |||
@@ -3,10 +3,12 @@ package ca.mcgill.ecse.dslreasoner.vampire.reasoner.builder; | |||
3 | import ca.mcgill.ecse.dslreasoner.vampire.reasoner.builder.Logic2VampireLanguageMapper; | 3 | import ca.mcgill.ecse.dslreasoner.vampire.reasoner.builder.Logic2VampireLanguageMapper; |
4 | import ca.mcgill.ecse.dslreasoner.vampire.reasoner.builder.Logic2VampireLanguageMapperTrace; | 4 | import ca.mcgill.ecse.dslreasoner.vampire.reasoner.builder.Logic2VampireLanguageMapperTrace; |
5 | import ca.mcgill.ecse.dslreasoner.vampire.reasoner.builder.Logic2VampireLanguageMapper_Support; | 5 | import ca.mcgill.ecse.dslreasoner.vampire.reasoner.builder.Logic2VampireLanguageMapper_Support; |
6 | import ca.mcgill.ecse.dslreasoner.vampireLanguage.VLSConstant; | ||
6 | import ca.mcgill.ecse.dslreasoner.vampireLanguage.VLSDoubleQuote; | 7 | import ca.mcgill.ecse.dslreasoner.vampireLanguage.VLSDoubleQuote; |
7 | import ca.mcgill.ecse.dslreasoner.vampireLanguage.VLSEquivalent; | 8 | import ca.mcgill.ecse.dslreasoner.vampireLanguage.VLSEquivalent; |
8 | import ca.mcgill.ecse.dslreasoner.vampireLanguage.VLSFofFormula; | 9 | import ca.mcgill.ecse.dslreasoner.vampireLanguage.VLSFofFormula; |
9 | import ca.mcgill.ecse.dslreasoner.vampireLanguage.VLSFunction; | 10 | import ca.mcgill.ecse.dslreasoner.vampireLanguage.VLSFunction; |
11 | import ca.mcgill.ecse.dslreasoner.vampireLanguage.VLSFunctionAsTerm; | ||
10 | import ca.mcgill.ecse.dslreasoner.vampireLanguage.VLSTerm; | 12 | import ca.mcgill.ecse.dslreasoner.vampireLanguage.VLSTerm; |
11 | import ca.mcgill.ecse.dslreasoner.vampireLanguage.VLSUnaryNegation; | 13 | import ca.mcgill.ecse.dslreasoner.vampireLanguage.VLSUnaryNegation; |
12 | import ca.mcgill.ecse.dslreasoner.vampireLanguage.VLSUniversalQuantifier; | 14 | import ca.mcgill.ecse.dslreasoner.vampireLanguage.VLSUniversalQuantifier; |
@@ -16,6 +18,7 @@ import com.google.common.base.Objects; | |||
16 | import com.google.common.collect.Iterables; | 18 | import com.google.common.collect.Iterables; |
17 | import hu.bme.mit.inf.dslreasoner.logic.model.logiclanguage.DefinedElement; | 19 | import hu.bme.mit.inf.dslreasoner.logic.model.logiclanguage.DefinedElement; |
18 | import hu.bme.mit.inf.dslreasoner.logic.model.logiclanguage.Type; | 20 | import hu.bme.mit.inf.dslreasoner.logic.model.logiclanguage.Type; |
21 | import hu.bme.mit.inf.dslreasoner.logic.model.logiclanguage.TypeDeclaration; | ||
19 | import hu.bme.mit.inf.dslreasoner.logic.model.logiclanguage.TypeDefinition; | 22 | import hu.bme.mit.inf.dslreasoner.logic.model.logiclanguage.TypeDefinition; |
20 | import hu.bme.mit.inf.dslreasoner.logic.model.logicproblem.LogicproblemPackage; | 23 | import hu.bme.mit.inf.dslreasoner.logic.model.logicproblem.LogicproblemPackage; |
21 | import hu.bme.mit.inf.dslreasoner.util.CollectionsUtil; | 24 | import hu.bme.mit.inf.dslreasoner.util.CollectionsUtil; |
@@ -24,6 +27,7 @@ import java.util.Collection; | |||
24 | import java.util.List; | 27 | import java.util.List; |
25 | import org.eclipse.emf.common.util.EList; | 28 | import org.eclipse.emf.common.util.EList; |
26 | import org.eclipse.xtext.xbase.lib.CollectionLiterals; | 29 | import org.eclipse.xtext.xbase.lib.CollectionLiterals; |
30 | import org.eclipse.xtext.xbase.lib.Conversions; | ||
27 | import org.eclipse.xtext.xbase.lib.Extension; | 31 | import org.eclipse.xtext.xbase.lib.Extension; |
28 | import org.eclipse.xtext.xbase.lib.Functions.Function1; | 32 | import org.eclipse.xtext.xbase.lib.Functions.Function1; |
29 | import org.eclipse.xtext.xbase.lib.IterableExtensions; | 33 | import org.eclipse.xtext.xbase.lib.IterableExtensions; |
@@ -107,14 +111,38 @@ public class Logic2VampireLanguageMapper_TypeMapper { | |||
107 | final VLSFofFormula res = ObjectExtensions.<VLSFofFormula>operator_doubleArrow(_createVLSFofFormula, _function_1); | 111 | final VLSFofFormula res = ObjectExtensions.<VLSFofFormula>operator_doubleArrow(_createVLSFofFormula, _function_1); |
108 | EList<VLSFofFormula> _formulas = trace.specification.getFormulas(); | 112 | EList<VLSFofFormula> _formulas = trace.specification.getFormulas(); |
109 | _formulas.add(res); | 113 | _formulas.add(res); |
114 | final List<VLSFunction> enumScopeElems = CollectionLiterals.<VLSFunction>newArrayList(); | ||
115 | for (int i = 0; (i < ((Object[])Conversions.unwrapArray(type_1.getElements(), Object.class)).length); i++) { | ||
116 | { | ||
117 | final int num = (i + 1); | ||
118 | VLSFunctionAsTerm _createVLSFunctionAsTerm = this.factory.createVLSFunctionAsTerm(); | ||
119 | final Procedure1<VLSFunctionAsTerm> _function_2 = (VLSFunctionAsTerm it) -> { | ||
120 | it.setFunctor(("eo" + Integer.valueOf(num))); | ||
121 | }; | ||
122 | final VLSFunctionAsTerm cstTerm = ObjectExtensions.<VLSFunctionAsTerm>operator_doubleArrow(_createVLSFunctionAsTerm, _function_2); | ||
123 | final VLSConstant cst = this.support.toConstant(cstTerm); | ||
124 | trace.uniqueInstances.add(cst); | ||
125 | final VLSFunction fct = this.support.duplicate(CollectionsUtil.<DefinedElement, VLSFunction>lookup(type_1.getElements().get(i), trace.element2Predicate), cstTerm); | ||
126 | enumScopeElems.add(fct); | ||
127 | } | ||
128 | } | ||
129 | VLSFofFormula _createVLSFofFormula_1 = this.factory.createVLSFofFormula(); | ||
130 | final Procedure1<VLSFofFormula> _function_2 = (VLSFofFormula it) -> { | ||
131 | it.setName(this.support.toIDMultiple("enumScope", type_1.getName().split(" ")[0])); | ||
132 | it.setFofRole("axiom"); | ||
133 | it.setFofFormula(this.support.unfoldAnd(enumScopeElems)); | ||
134 | }; | ||
135 | final VLSFofFormula enumScope = ObjectExtensions.<VLSFofFormula>operator_doubleArrow(_createVLSFofFormula_1, _function_2); | ||
136 | EList<VLSFofFormula> _formulas_1 = trace.specification.getFormulas(); | ||
137 | _formulas_1.add(enumScope); | ||
110 | } | 138 | } |
111 | } | 139 | } |
112 | final Function1<Type, Boolean> _function_1 = (Type it) -> { | 140 | final Function1<Type, Boolean> _function_1 = (Type it) -> { |
113 | boolean _isIsAbstract = it.isIsAbstract(); | 141 | boolean _isIsAbstract = it.isIsAbstract(); |
114 | return Boolean.valueOf((!_isIsAbstract)); | 142 | return Boolean.valueOf((!_isIsAbstract)); |
115 | }; | 143 | }; |
116 | Iterable<Type> _filter_1 = IterableExtensions.<Type>filter(types, _function_1); | 144 | Iterable<TypeDeclaration> _filter_1 = Iterables.<TypeDeclaration>filter(IterableExtensions.<Type>filter(types, _function_1), TypeDeclaration.class); |
117 | for (final Type t1 : _filter_1) { | 145 | for (final TypeDeclaration t1 : _filter_1) { |
118 | { | 146 | { |
119 | for (final Type t2 : types) { | 147 | for (final Type t2 : types) { |
120 | if ((Objects.equal(t1, t2) || this.support.dfsSupertypeCheck(t1, t2))) { | 148 | if ((Objects.equal(t1, t2) || this.support.dfsSupertypeCheck(t1, t2))) { |
@@ -147,8 +175,8 @@ public class Logic2VampireLanguageMapper_TypeMapper { | |||
147 | final Procedure1<VLSEquivalent> _function_4 = (VLSEquivalent it_2) -> { | 175 | final Procedure1<VLSEquivalent> _function_4 = (VLSEquivalent it_2) -> { |
148 | it_2.setLeft(this.support.topLevelTypeFunc()); | 176 | it_2.setLeft(this.support.topLevelTypeFunc()); |
149 | Collection<VLSTerm> _values = trace.type2And.values(); | 177 | Collection<VLSTerm> _values = trace.type2And.values(); |
150 | ArrayList<VLSTerm> _arrayList = new ArrayList<VLSTerm>(_values); | 178 | final ArrayList<VLSTerm> reversedList = new ArrayList<VLSTerm>(_values); |
151 | it_2.setRight(this.support.unfoldOr(_arrayList)); | 179 | it_2.setRight(this.support.unfoldOr(reversedList)); |
152 | }; | 180 | }; |
153 | VLSEquivalent _doubleArrow = ObjectExtensions.<VLSEquivalent>operator_doubleArrow(_createVLSEquivalent, _function_4); | 181 | VLSEquivalent _doubleArrow = ObjectExtensions.<VLSEquivalent>operator_doubleArrow(_createVLSEquivalent, _function_4); |
154 | it_1.setOperand(_doubleArrow); | 182 | it_1.setOperand(_doubleArrow); |