Skip to content

Commit

Permalink
chore(eq): Update usage of equality theory for splitted version.
Browse files Browse the repository at this point in the history
  • Loading branch information
arbimo committed Mar 5, 2024
1 parent c2aaf73 commit fe2f4c6
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions solver/src/solver/solver_impl.rs
Original file line number Diff line number Diff line change
Expand Up @@ -169,7 +169,7 @@ impl<Lbl: Label> Solver<Lbl> {
ReifExpr::EqVal(a, b) => {
let (lb, ub) = self.model.state.bounds(*a);
let lit = if (lb..=ub).contains(b) {
self.reasoners.eq.add_edge(*a, *b, &mut self.model)
self.reasoners.eq.add_val_edge(*a, *b, &mut self.model)
} else {
Lit::FALSE
};
Expand All @@ -180,7 +180,7 @@ impl<Lbl: Label> Solver<Lbl> {
Ok(())
}
ReifExpr::NeqVal(a, b) => {
let lit = !self.reasoners.eq.add_edge(*a, *b, &mut self.model);
let lit = !self.reasoners.eq.add_val_edge(*a, *b, &mut self.model);
if lit != value {
self.add_clause([!value, lit], scope)?; // value => lit
self.add_clause([!lit, value], scope)?; // lit => value
Expand Down

0 comments on commit fe2f4c6

Please sign in to comment.