diff options
author | 2019-05-09 09:28:40 -0400 | |
---|---|---|
committer | 2019-05-09 09:28:40 -0400 | |
commit | 94a7e721fba3c3bf6bcda75cde474e21c5afdf39 (patch) | |
tree | b8d1789201dbc58dabec53e45a971e588183ce47 /Solvers/VIATRA-Solver | |
parent | Interval comparison (diff) | |
download | VIATRA-Generator-94a7e721fba3c3bf6bcda75cde474e21c5afdf39.tar.gz VIATRA-Generator-94a7e721fba3c3bf6bcda75cde474e21c5afdf39.tar.zst VIATRA-Generator-94a7e721fba3c3bf6bcda75cde474e21c5afdf39.zip |
Fix interval join
Diffstat (limited to 'Solvers/VIATRA-Solver')
-rw-r--r-- | Solvers/VIATRA-Solver/hu.bme.mit.inf.dslreasoner.viatrasolver.logic2viatra/src/hu/bme/mit/inf/dslreasoner/viatrasolver/logic2viatra/interval/Interval.xtend | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Solvers/VIATRA-Solver/hu.bme.mit.inf.dslreasoner.viatrasolver.logic2viatra/src/hu/bme/mit/inf/dslreasoner/viatrasolver/logic2viatra/interval/Interval.xtend b/Solvers/VIATRA-Solver/hu.bme.mit.inf.dslreasoner.viatrasolver.logic2viatra/src/hu/bme/mit/inf/dslreasoner/viatrasolver/logic2viatra/interval/Interval.xtend index 93749767..6ea96866 100644 --- a/Solvers/VIATRA-Solver/hu.bme.mit.inf.dslreasoner.viatrasolver.logic2viatra/src/hu/bme/mit/inf/dslreasoner/viatrasolver/logic2viatra/interval/Interval.xtend +++ b/Solvers/VIATRA-Solver/hu.bme.mit.inf.dslreasoner.viatrasolver.logic2viatra/src/hu/bme/mit/inf/dslreasoner/viatrasolver/logic2viatra/interval/Interval.xtend | |||
@@ -190,7 +190,7 @@ abstract class Interval { | |||
190 | override join(Interval other) { | 190 | override join(Interval other) { |
191 | switch (other) { | 191 | switch (other) { |
192 | case EMPTY: this | 192 | case EMPTY: this |
193 | NonEmpty: new NonEmpty(lower.tryMin(other.lower), upper.tryMin(other.upper)) | 193 | NonEmpty: new NonEmpty(lower.tryMin(other.lower), upper.tryMax(other.upper)) |
194 | default: throw new IllegalArgumentException("") | 194 | default: throw new IllegalArgumentException("") |
195 | } | 195 | } |
196 | } | 196 | } |