mirror of
https://github.com/c-cube/sidekick.git
synced 2025-12-06 03:05:31 -05:00
feat: some spans in main/process
This commit is contained in:
parent
28ce38002f
commit
e0faf6ba72
2 changed files with 8 additions and 1 deletions
|
|
@ -198,7 +198,13 @@ let main_smt ~config () : _ result =
|
||||||
if !check then
|
if !check then
|
||||||
(* might have to check conflicts *)
|
(* might have to check conflicts *)
|
||||||
Solver.add_theory solver Process.Check_cc.theory;
|
Solver.add_theory solver Process.Check_cc.theory;
|
||||||
Sidekick_smtlib.parse tst !file >>= fun input ->
|
|
||||||
|
let parse_res =
|
||||||
|
let@ () = Profile.with_ "parse" ~args:[ "file", !file ] in
|
||||||
|
Sidekick_smtlib.parse tst !file
|
||||||
|
in
|
||||||
|
|
||||||
|
parse_res >>= fun input ->
|
||||||
(* process statements *)
|
(* process statements *)
|
||||||
let res =
|
let res =
|
||||||
try
|
try
|
||||||
|
|
|
||||||
|
|
@ -245,6 +245,7 @@ let known_logics =
|
||||||
let process_stmt ?gc ?restarts ?(pp_cnf = false) ?proof_file ?pp_model
|
let process_stmt ?gc ?restarts ?(pp_cnf = false) ?proof_file ?pp_model
|
||||||
?(check = false) ?time ?memory ?progress (solver : Solver.t)
|
?(check = false) ?time ?memory ?progress (solver : Solver.t)
|
||||||
(stmt : Statement.t) : unit or_error =
|
(stmt : Statement.t) : unit or_error =
|
||||||
|
let@ () = Profile.with_ "smtlib.process-stmt" in
|
||||||
Log.debugf 5 (fun k ->
|
Log.debugf 5 (fun k ->
|
||||||
k "(@[smtlib.process-statement@ %a@])" Statement.pp stmt);
|
k "(@[smtlib.process-statement@ %a@])" Statement.pp stmt);
|
||||||
let decl_sort c n : unit =
|
let decl_sort c n : unit =
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue