lifebeyondfife / Decider

An Open Source .Net Constraint Programming Solver
MIT License
150 stars 21 forks source link

bugfix:Check bounds in AND operator propagator. #22

Closed lifebeyondfife closed 5 years ago

lifebeyondfife commented 5 years ago

Bugfix to the AND (&) operator. If a boolean variable's domain should be updated to [0, 0] and it already was that value, the code would still mark the domain as being changed (propagated). This would start an infinite loop. Checking to see if the bounds were already satisfied before propagating has fixed this error.