diff options
Diffstat (limited to 'Solvers/Vampire-Solver/ca.mcgill.ecse.dslreasoner.vampire.reasoner/xtend-gen/ca/mcgill/ecse/dslreasoner/vampire/reasoner/builder/Logic2VampireLanguageMapper_Support.java')
-rw-r--r-- | Solvers/Vampire-Solver/ca.mcgill.ecse.dslreasoner.vampire.reasoner/xtend-gen/ca/mcgill/ecse/dslreasoner/vampire/reasoner/builder/Logic2VampireLanguageMapper_Support.java | 27 |
1 files changed, 26 insertions, 1 deletions
diff --git a/Solvers/Vampire-Solver/ca.mcgill.ecse.dslreasoner.vampire.reasoner/xtend-gen/ca/mcgill/ecse/dslreasoner/vampire/reasoner/builder/Logic2VampireLanguageMapper_Support.java b/Solvers/Vampire-Solver/ca.mcgill.ecse.dslreasoner.vampire.reasoner/xtend-gen/ca/mcgill/ecse/dslreasoner/vampire/reasoner/builder/Logic2VampireLanguageMapper_Support.java index e2ff7a0e..119d01f1 100644 --- a/Solvers/Vampire-Solver/ca.mcgill.ecse.dslreasoner.vampire.reasoner/xtend-gen/ca/mcgill/ecse/dslreasoner/vampire/reasoner/builder/Logic2VampireLanguageMapper_Support.java +++ b/Solvers/Vampire-Solver/ca.mcgill.ecse.dslreasoner.vampire.reasoner/xtend-gen/ca/mcgill/ecse/dslreasoner/vampire/reasoner/builder/Logic2VampireLanguageMapper_Support.java | |||
@@ -104,6 +104,19 @@ public class Logic2VampireLanguageMapper_Support { | |||
104 | return ObjectExtensions.<VLSFunction>operator_doubleArrow(_createVLSFunction, _function); | 104 | return ObjectExtensions.<VLSFunction>operator_doubleArrow(_createVLSFunction, _function); |
105 | } | 105 | } |
106 | 106 | ||
107 | protected VLSFunction duplicate(final VLSFunction term, final List<VLSVariable> vars) { | ||
108 | VLSFunction _createVLSFunction = this.factory.createVLSFunction(); | ||
109 | final Procedure1<VLSFunction> _function = (VLSFunction it) -> { | ||
110 | it.setConstant(term.getConstant()); | ||
111 | for (final VLSVariable v : vars) { | ||
112 | EList<VLSTerm> _terms = it.getTerms(); | ||
113 | VLSVariable _duplicate = this.duplicate(v); | ||
114 | _terms.add(_duplicate); | ||
115 | } | ||
116 | }; | ||
117 | return ObjectExtensions.<VLSFunction>operator_doubleArrow(_createVLSFunction, _function); | ||
118 | } | ||
119 | |||
107 | protected VLSFunction duplicate(final VLSFunction term, final VLSFunctionAsTerm v) { | 120 | protected VLSFunction duplicate(final VLSFunction term, final VLSFunctionAsTerm v) { |
108 | VLSFunction _createVLSFunction = this.factory.createVLSFunction(); | 121 | VLSFunction _createVLSFunction = this.factory.createVLSFunction(); |
109 | final Procedure1<VLSFunction> _function = (VLSFunction it) -> { | 122 | final Procedure1<VLSFunction> _function = (VLSFunction it) -> { |
@@ -138,6 +151,17 @@ public class Logic2VampireLanguageMapper_Support { | |||
138 | return ObjectExtensions.<VLSFunction>operator_doubleArrow(_createVLSFunction, _function); | 151 | return ObjectExtensions.<VLSFunction>operator_doubleArrow(_createVLSFunction, _function); |
139 | } | 152 | } |
140 | 153 | ||
154 | protected VLSFunction topLevelTypeFunc(final VLSVariable v) { | ||
155 | VLSFunction _createVLSFunction = this.factory.createVLSFunction(); | ||
156 | final Procedure1<VLSFunction> _function = (VLSFunction it) -> { | ||
157 | it.setConstant("object"); | ||
158 | EList<VLSTerm> _terms = it.getTerms(); | ||
159 | VLSVariable _duplicate = this.duplicate(v); | ||
160 | _terms.add(_duplicate); | ||
161 | }; | ||
162 | return ObjectExtensions.<VLSFunction>operator_doubleArrow(_createVLSFunction, _function); | ||
163 | } | ||
164 | |||
141 | protected VLSFunction topLevelTypeFunc(final VLSFunctionAsTerm v) { | 165 | protected VLSFunction topLevelTypeFunc(final VLSFunctionAsTerm v) { |
142 | VLSFunction _createVLSFunction = this.factory.createVLSFunction(); | 166 | VLSFunction _createVLSFunction = this.factory.createVLSFunction(); |
143 | final Procedure1<VLSFunction> _function = (VLSFunction it) -> { | 167 | final Procedure1<VLSFunction> _function = (VLSFunction it) -> { |
@@ -284,7 +308,8 @@ public class Logic2VampireLanguageMapper_Support { | |||
284 | for (final Variable variable : _quantifiedVariables) { | 308 | for (final Variable variable : _quantifiedVariables) { |
285 | { | 309 | { |
286 | TypeReference _range = variable.getRange(); | 310 | TypeReference _range = variable.getRange(); |
287 | final VLSFunction eq = this.duplicate(CollectionsUtil.<Type, VLSFunction>lookup(((ComplexTypeReference) _range).getReferred(), trace.type2Predicate), CollectionsUtil.<Variable, VLSVariable>lookup(variable, variableMap)); | 311 | final VLSFunction eq = this.duplicate(CollectionsUtil.<Type, VLSFunction>lookup(((ComplexTypeReference) _range).getReferred(), trace.type2Predicate), |
312 | CollectionsUtil.<Variable, VLSVariable>lookup(variable, variableMap)); | ||
288 | typedefs.add(eq); | 313 | typedefs.add(eq); |
289 | } | 314 | } |
290 | } | 315 | } |