package goblint
Build not yet checked sectionYPositions = computeSectionYPositions($el), 10)"
x-init="setTimeout(() => sectionYPositions = computeSectionYPositions($el), 10)"
>
Static analysis framework for C
Install
dune-project
Dependency
Authors
Maintainers
Sources
goblint-2.9.0.tbz
sha256=882f25e68cc14d42879ab4775fb2cf99aaac7e3cc70d58fa632b7edef304a731
sha512=dc90f0a685709688bbc13c80d0e2b01bf87cf2bbdc7f0c22632227ae32bee9377f3f1cb50f00cf564d6f1313c27fba5d811c53bb17a24972ab5aa570bf62278b
doc/src/goblint.solver/selector.ml.html
Source file selector.ml
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47(** Solver, which delegates at runtime to the configured solver. *) open Batteries open Goblint_constraint.ConstrSys open Goblint_constraint.SolverTypes open GobConfig (* Registered solvers. *) let solvers = ref [] (** Register your solvers here!!! *) let add_solver (x : string * (module DemandEqIncrSolver)) = solvers := x::!solvers (** Dynamically choose the solver. *) let choose_solver solver = try List.assoc solver !solvers with Not_found -> raise @@ ConfigError ("Solver '"^solver^"' not found. Abort!") (** The solver that actually uses the implementation based of [GobConfig.get_string "solver"]. *) module Make = functor (Arg: IncrSolverArg) -> functor (S:DemandEqConstrSys) -> functor (VH:Hashtbl.S with type key = S.v) -> struct type marshal = Obj.t (* cannot use Sol.marshal because cannot unpack first-class module in applicative functor *) let copy_marshal (marshal: marshal) = let module Sol = (val choose_solver (get_string "solver") : DemandEqIncrSolver) in let module F = Sol (Arg) (S) (VH) in Obj.repr (F.copy_marshal (Obj.obj marshal)) let relift_marshal (marshal: marshal) = let module Sol = (val choose_solver (get_string "solver") : DemandEqIncrSolver) in let module F = Sol (Arg) (S) (VH) in Obj.repr (F.relift_marshal (Obj.obj marshal)) let solve xs vs (old_data: marshal option) = let module Sol = (val choose_solver (get_string "solver") : DemandEqIncrSolver) in let module F = Sol (Arg) (S) (VH) in let (vh, marshal) = F.solve xs vs (Option.map Obj.obj old_data) in (vh, Obj.repr marshal) end let _ = let module T1 : DemandEqIncrSolver = Make in ()
sectionYPositions = computeSectionYPositions($el), 10)"
x-init="setTimeout(() => sectionYPositions = computeSectionYPositions($el), 10)"
>