Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore(sat): rename function to match its intent #11493

Merged
merged 1 commit into from
Feb 22, 2025
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions src/sat/sat.ml
Original file line number Diff line number Diff line change
Expand Up @@ -545,7 +545,7 @@ module Make (User : USER) = struct
(* Returns the new clause if one was added, [AddedFact true] if none was added
because this clause is trivially True, or [AddedFact false] if the clause
caused a conflict. *)
let internal_at_most_one problem lits ~learnt ~reason =
let internal_at_least_one problem lits ~learnt ~reason =
match lits with
| [] -> assert false
| [ lit ] ->
Expand Down Expand Up @@ -613,7 +613,7 @@ module Make (User : USER) = struct
problem.toplevel_conflict <- true (* Everything in the list was False *)
| Some unique ->
if
internal_at_most_one problem unique ~learnt:false ~reason:(External reason)
internal_at_least_one problem unique ~learnt:false ~reason:(External reason)
= AddedFact false
then problem.toplevel_conflict <- true)
;;
Expand Down Expand Up @@ -894,7 +894,7 @@ module Make (User : USER) = struct
(* We have learnt that something in [learnt] must be True or we get a conflict. *)
cancel_until problem backtrack_level;
match
internal_at_most_one
internal_at_least_one
problem
learnt
~learnt:true
Expand Down
Loading