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_FilteredTypes.java')
-rw-r--r-- | Solvers/Vampire-Solver/ca.mcgill.ecse.dslreasoner.vampire.reasoner/xtend-gen/ca/mcgill/ecse/dslreasoner/vampire/reasoner/builder/Logic2VampireLanguageMapper_TypeMapper_FilteredTypes.java | 46 |
1 files changed, 17 insertions, 29 deletions
diff --git a/Solvers/Vampire-Solver/ca.mcgill.ecse.dslreasoner.vampire.reasoner/xtend-gen/ca/mcgill/ecse/dslreasoner/vampire/reasoner/builder/Logic2VampireLanguageMapper_TypeMapper_FilteredTypes.java b/Solvers/Vampire-Solver/ca.mcgill.ecse.dslreasoner.vampire.reasoner/xtend-gen/ca/mcgill/ecse/dslreasoner/vampire/reasoner/builder/Logic2VampireLanguageMapper_TypeMapper_FilteredTypes.java index 71e98871..1e845d94 100644 --- a/Solvers/Vampire-Solver/ca.mcgill.ecse.dslreasoner.vampire.reasoner/xtend-gen/ca/mcgill/ecse/dslreasoner/vampire/reasoner/builder/Logic2VampireLanguageMapper_TypeMapper_FilteredTypes.java +++ b/Solvers/Vampire-Solver/ca.mcgill.ecse.dslreasoner.vampire.reasoner/xtend-gen/ca/mcgill/ecse/dslreasoner/vampire/reasoner/builder/Logic2VampireLanguageMapper_TypeMapper_FilteredTypes.java | |||
@@ -115,47 +115,39 @@ public class Logic2VampireLanguageMapper_TypeMapper_FilteredTypes implements Log | |||
115 | return Boolean.valueOf((!_isIsAbstract)); | 115 | return Boolean.valueOf((!_isIsAbstract)); |
116 | }; | 116 | }; |
117 | Iterable<Type> _filter_1 = IterableExtensions.<Type>filter(types, _function_1); | 117 | Iterable<Type> _filter_1 = IterableExtensions.<Type>filter(types, _function_1); |
118 | for (final Type type_2 : _filter_1) { | 118 | for (final Type t1 : _filter_1) { |
119 | { | 119 | { |
120 | for (final Type type2 : types) { | 120 | for (final Type t2 : types) { |
121 | if ((Objects.equal(type_2, type2) || this.dfsSupertypeCheck(type_2, type2))) { | 121 | if ((Objects.equal(t1, t2) || this.dfsSupertypeCheck(t1, t2))) { |
122 | VLSFunction _createVLSFunction = this.factory.createVLSFunction(); | 122 | VLSFunction _createVLSFunction = this.factory.createVLSFunction(); |
123 | final Procedure1<VLSFunction> _function_2 = (VLSFunction it) -> { | 123 | final Procedure1<VLSFunction> _function_2 = (VLSFunction it) -> { |
124 | it.setConstant(CollectionsUtil.<Type, VLSFunction>lookup(type2, typeTrace.type2Predicate).getConstant()); | 124 | it.setConstant(CollectionsUtil.<Type, VLSFunction>lookup(t2, typeTrace.type2Predicate).getConstant()); |
125 | EList<VLSTerm> _terms = it.getTerms(); | 125 | EList<VLSTerm> _terms = it.getTerms(); |
126 | VLSVariable _createVLSVariable_1 = this.factory.createVLSVariable(); | 126 | VLSVariable _duplicate = this.support.duplicate(variable); |
127 | final Procedure1<VLSVariable> _function_3 = (VLSVariable it_1) -> { | 127 | _terms.add(_duplicate); |
128 | it_1.setName("A"); | ||
129 | }; | ||
130 | VLSVariable _doubleArrow = ObjectExtensions.<VLSVariable>operator_doubleArrow(_createVLSVariable_1, _function_3); | ||
131 | _terms.add(_doubleArrow); | ||
132 | }; | 128 | }; |
133 | VLSFunction _doubleArrow = ObjectExtensions.<VLSFunction>operator_doubleArrow(_createVLSFunction, _function_2); | 129 | VLSFunction _doubleArrow = ObjectExtensions.<VLSFunction>operator_doubleArrow(_createVLSFunction, _function_2); |
134 | typeTrace.type2PossibleNot.put(type2, _doubleArrow); | 130 | typeTrace.type2PossibleNot.put(t2, _doubleArrow); |
135 | } else { | 131 | } else { |
136 | VLSUnaryNegation _createVLSUnaryNegation = this.factory.createVLSUnaryNegation(); | 132 | VLSUnaryNegation _createVLSUnaryNegation = this.factory.createVLSUnaryNegation(); |
137 | final Procedure1<VLSUnaryNegation> _function_3 = (VLSUnaryNegation it) -> { | 133 | final Procedure1<VLSUnaryNegation> _function_3 = (VLSUnaryNegation it) -> { |
138 | VLSFunction _createVLSFunction_1 = this.factory.createVLSFunction(); | 134 | VLSFunction _createVLSFunction_1 = this.factory.createVLSFunction(); |
139 | final Procedure1<VLSFunction> _function_4 = (VLSFunction it_1) -> { | 135 | final Procedure1<VLSFunction> _function_4 = (VLSFunction it_1) -> { |
140 | it_1.setConstant(CollectionsUtil.<Type, VLSFunction>lookup(type2, typeTrace.type2Predicate).getConstant()); | 136 | it_1.setConstant(CollectionsUtil.<Type, VLSFunction>lookup(t2, typeTrace.type2Predicate).getConstant()); |
141 | EList<VLSTerm> _terms = it_1.getTerms(); | 137 | EList<VLSTerm> _terms = it_1.getTerms(); |
142 | VLSVariable _createVLSVariable_1 = this.factory.createVLSVariable(); | 138 | VLSVariable _duplicate = this.support.duplicate(variable); |
143 | final Procedure1<VLSVariable> _function_5 = (VLSVariable it_2) -> { | 139 | _terms.add(_duplicate); |
144 | it_2.setName("A"); | ||
145 | }; | ||
146 | VLSVariable _doubleArrow_1 = ObjectExtensions.<VLSVariable>operator_doubleArrow(_createVLSVariable_1, _function_5); | ||
147 | _terms.add(_doubleArrow_1); | ||
148 | }; | 140 | }; |
149 | VLSFunction _doubleArrow_1 = ObjectExtensions.<VLSFunction>operator_doubleArrow(_createVLSFunction_1, _function_4); | 141 | VLSFunction _doubleArrow_1 = ObjectExtensions.<VLSFunction>operator_doubleArrow(_createVLSFunction_1, _function_4); |
150 | it.setOperand(_doubleArrow_1); | 142 | it.setOperand(_doubleArrow_1); |
151 | }; | 143 | }; |
152 | VLSUnaryNegation _doubleArrow_1 = ObjectExtensions.<VLSUnaryNegation>operator_doubleArrow(_createVLSUnaryNegation, _function_3); | 144 | VLSUnaryNegation _doubleArrow_1 = ObjectExtensions.<VLSUnaryNegation>operator_doubleArrow(_createVLSUnaryNegation, _function_3); |
153 | typeTrace.type2PossibleNot.put(type2, _doubleArrow_1); | 145 | typeTrace.type2PossibleNot.put(t2, _doubleArrow_1); |
154 | } | 146 | } |
155 | } | 147 | } |
156 | Collection<VLSTerm> _values = typeTrace.type2PossibleNot.values(); | 148 | Collection<VLSTerm> _values = typeTrace.type2PossibleNot.values(); |
157 | ArrayList<VLSTerm> _arrayList = new ArrayList<VLSTerm>(_values); | 149 | ArrayList<VLSTerm> _arrayList = new ArrayList<VLSTerm>(_values); |
158 | typeTrace.type2And.put(type_2, this.support.unfoldAnd(_arrayList)); | 150 | typeTrace.type2And.put(t1, this.support.unfoldAnd(_arrayList)); |
159 | typeTrace.type2PossibleNot.clear(); | 151 | typeTrace.type2PossibleNot.clear(); |
160 | } | 152 | } |
161 | } | 153 | } |
@@ -166,21 +158,17 @@ public class Logic2VampireLanguageMapper_TypeMapper_FilteredTypes implements Log | |||
166 | VLSUniversalQuantifier _createVLSUniversalQuantifier = this.factory.createVLSUniversalQuantifier(); | 158 | VLSUniversalQuantifier _createVLSUniversalQuantifier = this.factory.createVLSUniversalQuantifier(); |
167 | final Procedure1<VLSUniversalQuantifier> _function_3 = (VLSUniversalQuantifier it_1) -> { | 159 | final Procedure1<VLSUniversalQuantifier> _function_3 = (VLSUniversalQuantifier it_1) -> { |
168 | EList<VLSVariable> _variables = it_1.getVariables(); | 160 | EList<VLSVariable> _variables = it_1.getVariables(); |
169 | VLSVariable _createVLSVariable_1 = this.factory.createVLSVariable(); | 161 | VLSVariable _duplicate = this.support.duplicate(variable); |
170 | final Procedure1<VLSVariable> _function_4 = (VLSVariable it_2) -> { | 162 | _variables.add(_duplicate); |
171 | it_2.setName("A"); | ||
172 | }; | ||
173 | VLSVariable _doubleArrow = ObjectExtensions.<VLSVariable>operator_doubleArrow(_createVLSVariable_1, _function_4); | ||
174 | _variables.add(_doubleArrow); | ||
175 | VLSEquivalent _createVLSEquivalent = this.factory.createVLSEquivalent(); | 163 | VLSEquivalent _createVLSEquivalent = this.factory.createVLSEquivalent(); |
176 | final Procedure1<VLSEquivalent> _function_5 = (VLSEquivalent it_2) -> { | 164 | final Procedure1<VLSEquivalent> _function_4 = (VLSEquivalent it_2) -> { |
177 | it_2.setLeft(this.support.topLevelTypeFunc()); | 165 | it_2.setLeft(this.support.topLevelTypeFunc()); |
178 | Collection<VLSTerm> _values = typeTrace.type2And.values(); | 166 | Collection<VLSTerm> _values = typeTrace.type2And.values(); |
179 | ArrayList<VLSTerm> _arrayList = new ArrayList<VLSTerm>(_values); | 167 | ArrayList<VLSTerm> _arrayList = new ArrayList<VLSTerm>(_values); |
180 | it_2.setRight(this.support.unfoldOr(_arrayList)); | 168 | it_2.setRight(this.support.unfoldOr(_arrayList)); |
181 | }; | 169 | }; |
182 | VLSEquivalent _doubleArrow_1 = ObjectExtensions.<VLSEquivalent>operator_doubleArrow(_createVLSEquivalent, _function_5); | 170 | VLSEquivalent _doubleArrow = ObjectExtensions.<VLSEquivalent>operator_doubleArrow(_createVLSEquivalent, _function_4); |
183 | it_1.setOperand(_doubleArrow_1); | 171 | it_1.setOperand(_doubleArrow); |
184 | }; | 172 | }; |
185 | VLSUniversalQuantifier _doubleArrow = ObjectExtensions.<VLSUniversalQuantifier>operator_doubleArrow(_createVLSUniversalQuantifier, _function_3); | 173 | VLSUniversalQuantifier _doubleArrow = ObjectExtensions.<VLSUniversalQuantifier>operator_doubleArrow(_createVLSUniversalQuantifier, _function_3); |
186 | it.setFofFormula(_doubleArrow); | 174 | it.setFofFormula(_doubleArrow); |