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
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
(* SPDX-License-Identifier: AGPL-3.0-or-later *)
(* Copyright © 2021-2024 OCamlPro *)
(* Written by the Owi programmers *)

module type M = sig
  type collection

  val init : unit -> collection

  val clone : collection -> collection
end

module type S = sig
  type t

  module Memory : M

  val init : unit -> t

  val create :
       int
    -> Smtml.Symbol.t list
    -> Symbolic_value.vbool list
    -> Memory.collection
    -> Symbolic_table.collection
    -> Symbolic_global.collection
    -> int32 list
    -> t

  val pc : t -> Symbolic_value.vbool list

  val memories : t -> Memory.collection

  val tables : t -> Symbolic_table.collection

  val globals : t -> Symbolic_global.collection

  val breadcrumbs : t -> int32 list

  val symbols_set : t -> Smtml.Symbol.t list

  val symbols : t -> int

  val clone : t -> t

  val add_pc : t -> Symbolic_value.vbool -> t

  val add_breadcrumb : t -> int32 -> t

  val add_symbol : t -> Smtml.Symbol.t -> t

  val incr_symbols : t -> t
end

module type Intf = sig
  module type M = M

  module type S = S

  module Make (Symbolic_memory : M) :
    S with type Memory.collection = Symbolic_memory.collection
end