12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758(**************************************************************************)(* This file is part of BINSEC. *)(* *)(* Copyright (C) 2016-2023 *)(* 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). *)(* *)(**************************************************************************)openOptionsopenTypesletget_worklist()=matchSearch_heuristics.get()with|Dfs->(moduleHeuristic.Dfs:WORKLIST)|Bfs->(moduleHeuristic.Bfs:WORKLIST)|Nurs->letseed=matchSeed.get_opt()with|Somes->s|None->letv=Utils.random_max_int()inLogger.info"Random search seed is %d"v;Seed.setv;vinRandom.initseed;(moduleHeuristic.Nurs:WORKLIST)letget_state()=ifAlternativeEngine.get()thenLogger.warning"'-sse-alternative-engine' is now the default behavior. Use \
'-sse-legacy-engine' to restore the previous one.";ifLegacyEngine.get()then(moduleSse_symbolic.State((valSmt_solver.get_solver())):STATE_FACTORY)else(moduleSenv.State(Domains.Interval)((valSenv.get_solver_factory())):STATE_FACTORY)letrun()=ifis_enabled()&&Kernel_options.ExecFile.is_set()thenletmoduleR=Exec.Run((valget_state()))((valget_worklist()))()inR.unitlet_=Cli.Boot.enlist~name:"SSE"~f:run