diff options
author | ArenBabikian <aren.babikian@mail.mcgill.ca> | 2019-03-06 02:59:19 -0500 |
---|---|---|
committer | ArenBabikian <aren.babikian@mail.mcgill.ca> | 2020-06-07 19:22:42 -0400 |
commit | 54431d1418fd4133a49605b804c10dd523c4c30d (patch) | |
tree | 57447af926e347e0ea31953c73f23d33297734d5 /Solvers/Vampire-Solver/ca.mcgill.ecse.dslreasoner.vampire.reasoner/xtend-gen/ca/mcgill/ecse/dslreasoner/vampire/reasoner/builder/Logic2VampireLanguageMapper_RelationMapper.java | |
parent | Partially improve coding style (leaving for soccer) (diff) | |
download | VIATRA-Generator-54431d1418fd4133a49605b804c10dd523c4c30d.tar.gz VIATRA-Generator-54431d1418fd4133a49605b804c10dd523c4c30d.tar.zst VIATRA-Generator-54431d1418fd4133a49605b804c10dd523c4c30d.zip |
Continue improving code style (need sleep)
Diffstat (limited to 'Solvers/Vampire-Solver/ca.mcgill.ecse.dslreasoner.vampire.reasoner/xtend-gen/ca/mcgill/ecse/dslreasoner/vampire/reasoner/builder/Logic2VampireLanguageMapper_RelationMapper.java')
-rw-r--r-- | Solvers/Vampire-Solver/ca.mcgill.ecse.dslreasoner.vampire.reasoner/xtend-gen/ca/mcgill/ecse/dslreasoner/vampire/reasoner/builder/Logic2VampireLanguageMapper_RelationMapper.java | 36 |
1 files changed, 16 insertions, 20 deletions
diff --git a/Solvers/Vampire-Solver/ca.mcgill.ecse.dslreasoner.vampire.reasoner/xtend-gen/ca/mcgill/ecse/dslreasoner/vampire/reasoner/builder/Logic2VampireLanguageMapper_RelationMapper.java b/Solvers/Vampire-Solver/ca.mcgill.ecse.dslreasoner.vampire.reasoner/xtend-gen/ca/mcgill/ecse/dslreasoner/vampire/reasoner/builder/Logic2VampireLanguageMapper_RelationMapper.java index 4f5c6acc..d5745333 100644 --- a/Solvers/Vampire-Solver/ca.mcgill.ecse.dslreasoner.vampire.reasoner/xtend-gen/ca/mcgill/ecse/dslreasoner/vampire/reasoner/builder/Logic2VampireLanguageMapper_RelationMapper.java +++ b/Solvers/Vampire-Solver/ca.mcgill.ecse.dslreasoner.vampire.reasoner/xtend-gen/ca/mcgill/ecse/dslreasoner/vampire/reasoner/builder/Logic2VampireLanguageMapper_RelationMapper.java | |||
@@ -48,7 +48,6 @@ public class Logic2VampireLanguageMapper_RelationMapper { | |||
48 | public void _transformRelation(final RelationDeclaration r, final Logic2VampireLanguageMapperTrace trace) { | 48 | public void _transformRelation(final RelationDeclaration r, final Logic2VampireLanguageMapperTrace trace) { |
49 | final List<VLSVariable> relVar2VLS = new ArrayList<VLSVariable>(); | 49 | final List<VLSVariable> relVar2VLS = new ArrayList<VLSVariable>(); |
50 | final List<VLSFunction> relVar2TypeDecComply = new ArrayList<VLSFunction>(); | 50 | final List<VLSFunction> relVar2TypeDecComply = new ArrayList<VLSFunction>(); |
51 | final ArrayList<VLSTerm> typedefs = new ArrayList<VLSTerm>(); | ||
52 | int _length = ((Object[])Conversions.unwrapArray(r.getParameters(), Object.class)).length; | 51 | int _length = ((Object[])Conversions.unwrapArray(r.getParameters(), Object.class)).length; |
53 | ExclusiveRange _doubleDotLessThan = new ExclusiveRange(0, _length, true); | 52 | ExclusiveRange _doubleDotLessThan = new ExclusiveRange(0, _length, true); |
54 | for (final Integer i : _doubleDotLessThan) { | 53 | for (final Integer i : _doubleDotLessThan) { |
@@ -68,8 +67,7 @@ public class Logic2VampireLanguageMapper_RelationMapper { | |||
68 | VLSFofFormula _createVLSFofFormula = this.factory.createVLSFofFormula(); | 67 | VLSFofFormula _createVLSFofFormula = this.factory.createVLSFofFormula(); |
69 | final Procedure1<VLSFofFormula> _function = (VLSFofFormula it) -> { | 68 | final Procedure1<VLSFofFormula> _function = (VLSFofFormula it) -> { |
70 | final String[] nameArray = r.getName().split(" "); | 69 | final String[] nameArray = r.getName().split(" "); |
71 | it.setName(this.support.toIDMultiple("compliance", nameArray[0], | 70 | it.setName(this.support.toIDMultiple("compliance", nameArray[0], nameArray[2])); |
72 | nameArray[2])); | ||
73 | it.setFofRole("axiom"); | 71 | it.setFofRole("axiom"); |
74 | VLSUniversalQuantifier _createVLSUniversalQuantifier = this.factory.createVLSUniversalQuantifier(); | 72 | VLSUniversalQuantifier _createVLSUniversalQuantifier = this.factory.createVLSUniversalQuantifier(); |
75 | final Procedure1<VLSUniversalQuantifier> _function_1 = (VLSUniversalQuantifier it_1) -> { | 73 | final Procedure1<VLSUniversalQuantifier> _function_1 = (VLSUniversalQuantifier it_1) -> { |
@@ -82,23 +80,16 @@ public class Logic2VampireLanguageMapper_RelationMapper { | |||
82 | final Procedure1<VLSImplies> _function_2 = (VLSImplies it_2) -> { | 80 | final Procedure1<VLSImplies> _function_2 = (VLSImplies it_2) -> { |
83 | VLSFunction _createVLSFunction = this.factory.createVLSFunction(); | 81 | VLSFunction _createVLSFunction = this.factory.createVLSFunction(); |
84 | final Procedure1<VLSFunction> _function_3 = (VLSFunction it_3) -> { | 82 | final Procedure1<VLSFunction> _function_3 = (VLSFunction it_3) -> { |
85 | it_3.setConstant(this.support.toIDMultiple("rel", r.getName())); | 83 | it_3.setConstant(this.support.toIDMultiple("r", nameArray[0], nameArray[2])); |
86 | int _length_1 = ((Object[])Conversions.unwrapArray(r.getParameters(), Object.class)).length; | 84 | for (final VLSVariable v_1 : relVar2VLS) { |
87 | ExclusiveRange _doubleDotLessThan_1 = new ExclusiveRange(0, _length_1, true); | 85 | EList<VLSTerm> _terms = it_3.getTerms(); |
88 | for (final Integer i_1 : _doubleDotLessThan_1) { | 86 | VLSVariable _duplicate_1 = this.support.duplicate(v_1); |
89 | { | 87 | _terms.add(_duplicate_1); |
90 | VLSVariable _createVLSVariable = this.factory.createVLSVariable(); | ||
91 | final Procedure1<VLSVariable> _function_4 = (VLSVariable it_4) -> { | ||
92 | it_4.setName(relVar2VLS.get((i_1).intValue()).getName()); | ||
93 | }; | ||
94 | final VLSVariable v_1 = ObjectExtensions.<VLSVariable>operator_doubleArrow(_createVLSVariable, _function_4); | ||
95 | EList<VLSTerm> _terms = it_3.getTerms(); | ||
96 | _terms.add(v_1); | ||
97 | } | ||
98 | } | 88 | } |
99 | }; | 89 | }; |
100 | VLSFunction _doubleArrow = ObjectExtensions.<VLSFunction>operator_doubleArrow(_createVLSFunction, _function_3); | 90 | final VLSFunction rel = ObjectExtensions.<VLSFunction>operator_doubleArrow(_createVLSFunction, _function_3); |
101 | it_2.setLeft(_doubleArrow); | 91 | trace.rel2Predicate.put(r, rel); |
92 | it_2.setLeft(this.support.duplicate(rel)); | ||
102 | it_2.setRight(this.support.unfoldAnd(relVar2TypeDecComply)); | 93 | it_2.setRight(this.support.unfoldAnd(relVar2TypeDecComply)); |
103 | }; | 94 | }; |
104 | VLSImplies _doubleArrow = ObjectExtensions.<VLSImplies>operator_doubleArrow(_createVLSImplies, _function_2); | 95 | VLSImplies _doubleArrow = ObjectExtensions.<VLSImplies>operator_doubleArrow(_createVLSImplies, _function_2); |
@@ -139,9 +130,9 @@ public class Logic2VampireLanguageMapper_RelationMapper { | |||
139 | relationVar2TypeDecRes.put(variable, this.support.duplicate(varTypeComply)); | 130 | relationVar2TypeDecRes.put(variable, this.support.duplicate(varTypeComply)); |
140 | } | 131 | } |
141 | } | 132 | } |
133 | final String[] nameArray = reldef.getName().split(" "); | ||
142 | VLSFofFormula _createVLSFofFormula = this.factory.createVLSFofFormula(); | 134 | VLSFofFormula _createVLSFofFormula = this.factory.createVLSFofFormula(); |
143 | final Procedure1<VLSFofFormula> _function = (VLSFofFormula it) -> { | 135 | final Procedure1<VLSFofFormula> _function = (VLSFofFormula it) -> { |
144 | final String[] nameArray = reldef.getName().split(" "); | ||
145 | int _length = nameArray.length; | 136 | int _length = nameArray.length; |
146 | int _minus = (_length - 2); | 137 | int _minus = (_length - 2); |
147 | int _length_1 = nameArray.length; | 138 | int _length_1 = nameArray.length; |
@@ -190,7 +181,12 @@ public class Logic2VampireLanguageMapper_RelationMapper { | |||
190 | final VLSFofFormula comply = ObjectExtensions.<VLSFofFormula>operator_doubleArrow(_createVLSFofFormula, _function); | 181 | final VLSFofFormula comply = ObjectExtensions.<VLSFofFormula>operator_doubleArrow(_createVLSFofFormula, _function); |
191 | VLSFofFormula _createVLSFofFormula_1 = this.factory.createVLSFofFormula(); | 182 | VLSFofFormula _createVLSFofFormula_1 = this.factory.createVLSFofFormula(); |
192 | final Procedure1<VLSFofFormula> _function_1 = (VLSFofFormula it) -> { | 183 | final Procedure1<VLSFofFormula> _function_1 = (VLSFofFormula it) -> { |
193 | it.setName(this.support.toIDMultiple("relation", reldef.getName())); | 184 | int _length = nameArray.length; |
185 | int _minus = (_length - 2); | ||
186 | int _length_1 = nameArray.length; | ||
187 | int _minus_1 = (_length_1 - 1); | ||
188 | it.setName(this.support.toIDMultiple("relation", nameArray[_minus], | ||
189 | nameArray[_minus_1])); | ||
194 | it.setFofRole("axiom"); | 190 | it.setFofRole("axiom"); |
195 | VLSUniversalQuantifier _createVLSUniversalQuantifier = this.factory.createVLSUniversalQuantifier(); | 191 | VLSUniversalQuantifier _createVLSUniversalQuantifier = this.factory.createVLSUniversalQuantifier(); |
196 | final Procedure1<VLSUniversalQuantifier> _function_2 = (VLSUniversalQuantifier it_1) -> { | 192 | final Procedure1<VLSUniversalQuantifier> _function_2 = (VLSUniversalQuantifier it_1) -> { |