123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110(**************************************************************************)(* This file is part of BINSEC. *)(* *)(* Copyright (C) 2016-2022 *)(* 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.Make(structletshortname="sse"letname="Static Symbolic Execution"end)moduleAlternativeEngine=Builder.False(structletname="alternative-engine"letdoc="Enable the experimental engine"end)moduleLegacyEngine=Builder.False(structletname="legacy-engine"letdoc="Use the legacy engine. Some features are not or hardly supported (e.g. \
core dump, custom arrays, etc.)."end)moduleMaxDepth=Builder.Integer(structletname="depth"letdefault=1000letdoc="Set exploration maximal depth"end)moduleTransientEnum=Builder.Integer(structletname="self-written-enum"letdefault=0letdoc="Set maximum number of forks for symbolic instruction opcodes"end)moduleJumpEnumDepth=Builder.Integer(structletname="jump-enum"letdefault=3letdoc="Set maximum number of jump targets to retrieve for dynamic jumps"end)moduleQMerge=Builder.Integer(structletname="qmerge"letdefault=0letdoc="Set maximum look ahead depth for quick merging"end)moduleRandomize=Builder.False(structletname="randomize"letdoc="randomize path selection"end)moduleScriptFiles=Builder.String_list(structletname="script"letdoc="set file containing initializations, directives and stubs"end)moduleTimeout=Builder.Integer_option(structletname="timeout"letdoc="Sets a timeout in second for symbolic execution"end)typesearch_heuristics=Dfs|Bfs|NursmoduleSearch_heuristics=Builder.Variant_choice_assoc(structtypet=search_heuristicsletname="heuristics"letdoc="Use the following search heuristics"letdefault=Dfsletassoc_map=[("dfs",Dfs);("bfs",Bfs);("nurs",Nurs)]end)moduleSeed=Builder.Integer_option(structletname="seed"letdoc="Give a specific seed for random number generators"end)