easier list of known logic

This commit is contained in:
Simon Cruanes 2022-01-31 15:28:02 -05:00
parent 3c41ab2484
commit cb369ec68d
No known key found for this signature in database
GPG key ID: EBFFF6F283F3A2B4

View file

@ -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);