feat: some spans in main/process

This commit is contained in:
Simon Cruanes 2022-08-20 00:21:45 -04:00
parent 28ce38002f
commit e0faf6ba72
No known key found for this signature in database
GPG key ID: EBFFF6F283F3A2B4
2 changed files with 8 additions and 1 deletions

View file

@ -198,7 +198,13 @@ let main_smt ~config () : _ result =
if !check then
(* might have to check conflicts *)
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 *)
let res =
try

View file

@ -245,6 +245,7 @@ let known_logics =
let process_stmt ?gc ?restarts ?(pp_cnf = false) ?proof_file ?pp_model
?(check = false) ?time ?memory ?progress (solver : Solver.t)
(stmt : Statement.t) : unit or_error =
let@ () = Profile.with_ "smtlib.process-stmt" in
Log.debugf 5 (fun k ->
k "(@[smtlib.process-statement@ %a@])" Statement.pp stmt);
let decl_sort c n : unit =