Skip to content

Commit

Permalink
use smtml check_set function
Browse files Browse the repository at this point in the history
  • Loading branch information
zapashcanon committed Feb 10, 2025
1 parent 121a97a commit 842ddf1
Showing 1 changed file with 2 additions and 6 deletions.
8 changes: 2 additions & 6 deletions src/symbolic/solver.ml
Original file line number Diff line number Diff line change
Expand Up @@ -16,15 +16,11 @@ let fresh solver () =

let check (S (solver_module, s)) pc =
let module Solver = (val solver_module) in
(* TODO: maybe we should change the API of smtml so that Solver.check expects a set instead of a list ? (to avoid duplicates) *)
let pc = Smtml.Expr.Set.to_list pc in
Solver.check s pc
Solver.check_set s pc

let model (S (solver_module, s)) ~symbols ~pc =
let module Solver = (val solver_module) in
(* TODO: maybe we should change the API of smtml so that Solver.check expects a set instead of a list ? (to avoid duplicates) *)
let pc = Smtml.Expr.Set.to_list pc in
match Solver.check s pc with
match Solver.check_set s pc with
| `Sat -> begin
match Solver.model ?symbols s with
| None -> assert false
Expand Down

0 comments on commit 842ddf1

Please sign in to comment.