Skip to content

Commit

Permalink
Paper references
Browse files Browse the repository at this point in the history
  • Loading branch information
bclement-ocp committed Mar 20, 2024
1 parent 2d6848d commit a596fc5
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 2 deletions.
9 changes: 8 additions & 1 deletion src/lib/reasoners/bitlist.ml
Original file line number Diff line number Diff line change
Expand Up @@ -153,7 +153,14 @@ let logxor b1 b2 =
}

(* The logic for the [increase_lower_bound] function below is described in
section 4.1 of https://cea.hal.science/cea-01795779/document *)
section 4.1 of
Sharpening Constraint Programming approaches for Bit-Vector Theory.
Zakaria Chihani, Bruno Marre, François Bobot, Sébastien Bardin.
CPAIOR 2017. International Conference on AI and OR Techniques in
Constraint Programming for Combinatorial Optimization Problems, Jun
2017, Padova, Italy.
https://cea.hal.science/cea-01795779/document *)

(* [left_cl_can_set highest_cleared cleared_can_set] returns the
least-significant bit that is:
Expand Down
9 changes: 8 additions & 1 deletion src/lib/reasoners/bitv_rel.ml
Original file line number Diff line number Diff line change
Expand Up @@ -681,6 +681,12 @@ let rec shared_msb sz inf sup =
(* If m and M are the minimal and maximal values of an union of intervals, the
longest sequence of most significant bits shared between m and M can be fixed
in the bit-vector domain; see "Is to BVs" in section 4.1 of
Sharpening Constraint Programming approaches for Bit-Vector Theory.
Zakaria Chihani, Bruno Marre, François Bobot, Sébastien Bardin.
CPAIOR 2017. International Conference on AI and OR Techniques in
Constraint Programming for Combinatorial Optimization Problems, Jun
2017, Padova, Italy.
https://cea.hal.science/cea-01795779/document *)
let constrain_bitlist_from_interval bv int =
let open Domains.Ephemeral in
Expand Down Expand Up @@ -733,7 +739,8 @@ let interval ~ex lb ub =
(is_large lineq) (is_large uineq)
ex ex Tint

(* Algorithm 1 from https://cea.hal.science/cea-01795779/document *)
(* Algorithm 1 from "Sharpening Constraint Programming approaches for
Bit-Vector Theory". *)
let constrain_interval_from_bitlist int bv =
let open Interval_domains.Ephemeral in
let ex = Bitlist.explanation bv in
Expand Down

0 comments on commit a596fc5

Please sign in to comment.