123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475(**************************************************************************)(* 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_native(* bitwuzla native ocaml binding *)|Bitwuzla_smtlib(* bitwuzla external process *)|Boolector_smtlib(* boolector external process *)|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_native);("bitwuzla:smtlib",Bitwuzla_smtlib);("boolector",Boolector_smtlib);("boolector:smtlib",Boolector_smtlib);("z3",Z3_smtlib);("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)