Closed maxkratz closed 1 year ago
constraint -> class::Entry { patterns.findFirst->filter(m | m.nodes().val == self)->count() == 0 }
(Taken from https://github.com/Echtzeitsysteme/gips-tests/blob/feature/snapshot-ilp-sort/gips.sort.patternreg/src/gipsl/Model.gipsl#L24-L26) throws an exception at build time:
java.lang.IllegalArgumentException: java.lang.IllegalArgumentException: Pattern already registered with interpreter: org.emoflon.ibex.patternmodel.IBeXPatternModel.impl.IBeXContextPatternImpl@7a66c35a (name: findFirst) (hasCountExpression: false) (documentation: )
See tests: https://github.com/Echtzeitsysteme/gips-tests/tree/feature/add-string-compare-tests/test.suite.gips/src/test/suite/gips/sort https://github.com/Echtzeitsysteme/gips-tests/tree/main/test.suite.gips/src/test/suite/gips/sort
(Taken from https://github.com/Echtzeitsysteme/gips-tests/blob/feature/snapshot-ilp-sort/gips.sort.patternreg/src/gipsl/Model.gipsl#L24-L26) throws an exception at build time: