fix(LRA): invalid normalization

This commit is contained in:
Simon Cruanes 2020-11-12 18:46:43 -05:00
parent 3e703cf89e
commit 0fc5b279d1

View file

@ -218,8 +218,8 @@ module Make(A : ARG)
(* nornalize and return maximum variable *) (* nornalize and return maximum variable *)
let normalize (self:t) : t = let normalize (self:t) : t =
match self.pred with match self.pred with
| Geq -> mk_ ~tag:self.tag Lt (LE.neg self.le) | Geq -> mk_ ~tag:self.tag Leq (LE.neg self.le)
| Gt -> mk_ ~tag:self.tag Leq (LE.neg self.le) | Gt -> mk_ ~tag:self.tag Lt (LE.neg self.le)
| _ -> self | _ -> self
let find_max (self:t) : T.t option * bool = let find_max (self:t) : T.t option * bool =