mirror of
https://github.com/c-cube/sidekick.git
synced 2025-12-06 11:15:43 -05:00
easier list of known logic
This commit is contained in:
parent
3c41ab2484
commit
cb369ec68d
1 changed files with 14 additions and 4 deletions
|
|
@ -210,6 +210,16 @@ let solve
|
||||||
Format.printf "Unknown (:reason %a)" Solver.Unknown.pp reas
|
Format.printf "Unknown (:reason %a)" Solver.Unknown.pp reas
|
||||||
end
|
end
|
||||||
|
|
||||||
|
let known_logics = [
|
||||||
|
"QF_UF";
|
||||||
|
"QF_LRA";
|
||||||
|
"QF_UFLRA";
|
||||||
|
"QF_DT";
|
||||||
|
"QF_UFDT";
|
||||||
|
"QF_LIA";
|
||||||
|
"QF_UFLIA";
|
||||||
|
]
|
||||||
|
|
||||||
(* process a single statement *)
|
(* process a single statement *)
|
||||||
let process_stmt
|
let process_stmt
|
||||||
?gc ?restarts ?(pp_cnf=false)
|
?gc ?restarts ?(pp_cnf=false)
|
||||||
|
|
@ -231,10 +241,10 @@ let process_stmt
|
||||||
in
|
in
|
||||||
|
|
||||||
begin match stmt with
|
begin match stmt with
|
||||||
| Statement.Stmt_set_logic ("QF_UF"|"QF_LRA"|"QF_UFLRA"|"QF_DT"|"QF_UFDT") ->
|
| Statement.Stmt_set_logic logic ->
|
||||||
E.return ()
|
if not @@ List.mem logic known_logics then (
|
||||||
| Statement.Stmt_set_logic s ->
|
Log.debugf 0 (fun k->k "warning: unknown logic `%s`" logic);
|
||||||
Log.debugf 0 (fun k->k "warning: unknown logic `%s`" s);
|
);
|
||||||
E.return ()
|
E.return ()
|
||||||
| Statement.Stmt_set_option l ->
|
| Statement.Stmt_set_option l ->
|
||||||
Log.debugf 0 (fun k->k "warning: unknown option `%a`" (Util.pp_list Fmt.string) l);
|
Log.debugf 0 (fun k->k "warning: unknown option `%a`" (Util.pp_list Fmt.string) l);
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue