diff options
author | 2019-04-15 00:06:29 -0400 | |
---|---|---|
committer | 2020-06-07 19:36:48 -0400 | |
commit | 85e6d0b8590f5aa22cd7065cb850b0f460da25dd (patch) | |
tree | fcc945827435f113aa9099d0be63d68551f7f5a3 /Solvers/Vampire-Solver/ca.mcgill.ecse.dslreasoner.vampire.reasoner/xtend-gen/ca/mcgill/ecse/dslreasoner/vampire/reasoner/builder/Logic2VampireLanguageMapper_ContainmentMapper.java | |
parent | VAMPIRE: #39 Reorganise tests, working yakindu test, need debugging (diff) | |
download | VIATRA-Generator-85e6d0b8590f5aa22cd7065cb850b0f460da25dd.tar.gz VIATRA-Generator-85e6d0b8590f5aa22cd7065cb850b0f460da25dd.tar.zst VIATRA-Generator-85e6d0b8590f5aa22cd7065cb850b0f460da25dd.zip |
Diffstat (limited to 'Solvers/Vampire-Solver/ca.mcgill.ecse.dslreasoner.vampire.reasoner/xtend-gen/ca/mcgill/ecse/dslreasoner/vampire/reasoner/builder/Logic2VampireLanguageMapper_ContainmentMapper.java')
-rw-r--r-- | Solvers/Vampire-Solver/ca.mcgill.ecse.dslreasoner.vampire.reasoner/xtend-gen/ca/mcgill/ecse/dslreasoner/vampire/reasoner/builder/Logic2VampireLanguageMapper_ContainmentMapper.java | 15 |
1 files changed, 11 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_ContainmentMapper.java b/Solvers/Vampire-Solver/ca.mcgill.ecse.dslreasoner.vampire.reasoner/xtend-gen/ca/mcgill/ecse/dslreasoner/vampire/reasoner/builder/Logic2VampireLanguageMapper_ContainmentMapper.java index 4cdc7e6a..9deab87f 100644 --- a/Solvers/Vampire-Solver/ca.mcgill.ecse.dslreasoner.vampire.reasoner/xtend-gen/ca/mcgill/ecse/dslreasoner/vampire/reasoner/builder/Logic2VampireLanguageMapper_ContainmentMapper.java +++ b/Solvers/Vampire-Solver/ca.mcgill.ecse.dslreasoner.vampire.reasoner/xtend-gen/ca/mcgill/ecse/dslreasoner/vampire/reasoner/builder/Logic2VampireLanguageMapper_ContainmentMapper.java | |||
@@ -64,12 +64,19 @@ public class Logic2VampireLanguageMapper_ContainmentMapper { | |||
64 | Type _referred = ((ComplexTypeReference) _get).getReferred(); | 64 | Type _referred = ((ComplexTypeReference) _get).getReferred(); |
65 | Type pointingTo = ((Type) _referred); | 65 | Type pointingTo = ((Type) _referred); |
66 | containmentListCopy.remove(pointingTo); | 66 | containmentListCopy.remove(pointingTo); |
67 | EList<Type> _subtypes = pointingTo.getSubtypes(); | 67 | List<Type> allSubtypes = CollectionLiterals.<Type>newArrayList(); |
68 | for (final Type c : _subtypes) { | 68 | this.support.listSubtypes(pointingTo, allSubtypes); |
69 | for (final Type c : allSubtypes) { | ||
69 | containmentListCopy.remove(c); | 70 | containmentListCopy.remove(c); |
70 | } | 71 | } |
71 | } | 72 | } |
72 | } | 73 | } |
74 | for (final Type c : containmentListCopy) { | ||
75 | boolean _isIsAbstract = c.isIsAbstract(); | ||
76 | if (_isIsAbstract) { | ||
77 | containmentListCopy.remove(c); | ||
78 | } | ||
79 | } | ||
73 | final String topName = CollectionsUtil.<Type, VLSFunction>lookup(containmentListCopy.get(0), trace.type2Predicate).getConstant().toString(); | 80 | final String topName = CollectionsUtil.<Type, VLSFunction>lookup(containmentListCopy.get(0), trace.type2Predicate).getConstant().toString(); |
74 | final VLSFunction topTerm = this.support.duplicate(CollectionsUtil.<Type, VLSFunction>lookup(containmentListCopy.get(0), trace.type2Predicate)); | 81 | final VLSFunction topTerm = this.support.duplicate(CollectionsUtil.<Type, VLSFunction>lookup(containmentListCopy.get(0), trace.type2Predicate)); |
75 | VLSFofFormula _createVLSFofFormula = this.factory.createVLSFofFormula(); | 82 | VLSFofFormula _createVLSFofFormula = this.factory.createVLSFofFormula(); |
@@ -132,7 +139,7 @@ public class Logic2VampireLanguageMapper_ContainmentMapper { | |||
132 | final VLSFunction toFunc = CollectionsUtil.<Type, VLSFunction>lookup(toType, trace.type2Predicate); | 139 | final VLSFunction toFunc = CollectionsUtil.<Type, VLSFunction>lookup(toType, trace.type2Predicate); |
133 | this.addToMap(type2cont, toFunc, rel); | 140 | this.addToMap(type2cont, toFunc, rel); |
134 | EList<Type> _subtypes = toType.getSubtypes(); | 141 | EList<Type> _subtypes = toType.getSubtypes(); |
135 | for (final Type c : _subtypes) { | 142 | for (final Type c_1 : _subtypes) { |
136 | this.addToMap(type2cont, toFunc, rel); | 143 | this.addToMap(type2cont, toFunc, rel); |
137 | } | 144 | } |
138 | VLSFofFormula _createVLSFofFormula_1 = this.factory.createVLSFofFormula(); | 145 | VLSFofFormula _createVLSFofFormula_1 = this.factory.createVLSFofFormula(); |
@@ -184,7 +191,7 @@ public class Logic2VampireLanguageMapper_ContainmentMapper { | |||
184 | { | 191 | { |
185 | VLSFofFormula _createVLSFofFormula_1 = this.factory.createVLSFofFormula(); | 192 | VLSFofFormula _createVLSFofFormula_1 = this.factory.createVLSFofFormula(); |
186 | final Procedure1<VLSFofFormula> _function_4 = (VLSFofFormula it) -> { | 193 | final Procedure1<VLSFofFormula> _function_4 = (VLSFofFormula it) -> { |
187 | it.setName(this.support.toIDMultiple("containment", e.getKey().getConstant().toString())); | 194 | it.setName(this.support.toIDMultiple("containment_contained", e.getKey().getConstant().toString())); |
188 | it.setFofRole("axiom"); | 195 | it.setFofRole("axiom"); |
189 | VLSUniversalQuantifier _createVLSUniversalQuantifier = this.factory.createVLSUniversalQuantifier(); | 196 | VLSUniversalQuantifier _createVLSUniversalQuantifier = this.factory.createVLSUniversalQuantifier(); |
190 | final Procedure1<VLSUniversalQuantifier> _function_5 = (VLSUniversalQuantifier it_1) -> { | 197 | final Procedure1<VLSUniversalQuantifier> _function_5 = (VLSUniversalQuantifier it_1) -> { |