Skip to content

Commit

Permalink
Replacing vrai/faux by english equivalents
Browse files Browse the repository at this point in the history
  • Loading branch information
Stevendeo committed Mar 29, 2021
1 parent 7c6c742 commit 2393693
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 10 deletions.
8 changes: 4 additions & 4 deletions src/lib/frontend/simple_reasoner_expr.ml
Original file line number Diff line number Diff line change
Expand Up @@ -79,8 +79,8 @@ module type Dom = sig
val top : state
val bottom : state

val vrai : v
val faux : v
val _true : v
val _false : v
val unknown : v

(** (Partial) Compare function *)
Expand Down Expand Up @@ -155,8 +155,8 @@ module SimpleReasoner

let identity v exp = {exp; diff = false; v = D.eval_expr exp v}

let simp_true = {exp = E.vrai; diff = true; v = D.vrai}
let simp_false = {exp = E.faux; diff = true; v = D.faux}
let simp_true = {exp = E.vrai; diff = true; v = D._true}
let simp_false = {exp = E.faux; diff = true; v = D._false}

let is_true e = E.equal e.exp E.vrai
let is_false e = E.equal e.exp E.faux
Expand Down
4 changes: 2 additions & 2 deletions src/lib/frontend/simple_reasoner_expr.mli
Original file line number Diff line number Diff line change
Expand Up @@ -38,8 +38,8 @@ module type Dom = sig
val top : state
val bottom : state

val vrai : v
val faux : v
val _true : v
val _false : v
val unknown : v

(** (Partial) Compare function *)
Expand Down
8 changes: 4 additions & 4 deletions src/lib/reasoners/simplifiers.ml
Original file line number Diff line number Diff line change
Expand Up @@ -44,8 +44,8 @@ module DummySimp =
let add_constraint _ _ _ _ = SRE.NewConstraint ()
let pp fmt _ = Format.fprintf fmt "()"
let unknown = ()
let faux = ()
let vrai = ()
let _false = ()
let _true = ()
let pp_v fmt _ = Format.fprintf fmt "()"
let eval_expr _ _ = ()
let v_join _ _ = ()
Expand Down Expand Up @@ -83,8 +83,8 @@ module IntervalsDomain :
let top = Top
let bottom = Bottom

let faux = Value (Intervals.point Q.zero Ty.Tbool Explanation.empty)
let vrai = Value (Intervals.point Q.one Ty.Tbool Explanation.empty)
let _false = Value (Intervals.point Q.zero Ty.Tbool Explanation.empty)
let _true = Value (Intervals.point Q.one Ty.Tbool Explanation.empty)
let unknown = Top

let pp_v = pp_abs_val Intervals.print
Expand Down

0 comments on commit 2393693

Please sign in to comment.