1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980(**************************************************************************)(* This file is part of BINSEC. *)(* *)(* Copyright (C) 2016-2024 *)(* CEA (Commissariat à l'énergie atomique et aux énergies *)(* alternatives) *)(* *)(* you can redistribute it and/or modify it under the terms of the GNU *)(* Lesser General Public License as published by the Free Software *)(* Foundation, version 2.1. *)(* *)(* It is distributed in the hope that it will be useful, *)(* but WITHOUT ANY WARRANTY; without even the implied warranty of *)(* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the *)(* GNU Lesser General Public License for more details. *)(* *)(* See the GNU Lesser General Public License version 2.1 *)(* for more details (enclosed in the file licenses/LGPLv2.1). *)(* *)(**************************************************************************)includeCli.Options(structletshortname="smt"letname="Static Symbolic Execution"end)typesolver=|Auto(* try to use the best SMT solver available; in order *)|Bitwuzla_builtin(* bitwuzla native ocaml binding (cxx) *)|Bitwuzla_legacy(* bitwuzla native ocaml binding (c) *)|Bitwuzla_smtlib(* bitwuzla external process *)|Boolector_smtlib(* boolector external process *)|Z3_builtin(* z3 native ocaml binding *)|Z3_smtlib(* z3 external process *)|CVC4_smtlib(* cvc4 external process *)|Yices_smtlib(* yices external process *)moduleSMTSolver=Builder.Variant_choice_assoc(structtypet=solverletassoc_map=[("auto",Auto);("bitwuzla",Bitwuzla_smtlib);("bitwuzla:native",Bitwuzla_legacy);("bitwuzla:legacy",Bitwuzla_legacy);("bitwuzla:builtin",Bitwuzla_builtin);("bitwuzla:smtlib",Bitwuzla_smtlib);("boolector",Boolector_smtlib);("boolector:smtlib",Boolector_smtlib);("z3",Z3_smtlib);("z3:builtin",Z3_builtin);("z3:smtlib",Z3_smtlib);("cvc4",CVC4_smtlib);("cvc4:smtlib",CVC4_smtlib);("yices",Yices_smtlib);("yices:smtlib",Yices_smtlib);]letdefault=Autoletname="solver"letdoc="Manually set the SMT solver to use."end)moduleKeepGoing=Builder.False(structletname="keep-going"letdoc="Ignore errors returned by the SMT solver. Default is to abort."end)moduleSMT_dir=Builder.String_option(structletname="dir"letdoc="set directory to cache smt scripts"end)moduleSMT_log_directory=Builder.String(structletname="dump-dir"letdoc="Set directory where unsolved SMT scripts are dumped"letdefault="binsec_smtdump"end)