p4spectec.backend_sim
Backend_sim.State
builtin
dangling
dynamic
dynamic_al
dynamic_pl
dynamic_runner
dynamic_sl
error_runtime
inst
instr
interp_al
interp_common
interp_pl
interp_sl
p4
p4spectec.backend_boot
p4spectec.backend_splice
p4spectec.backend_testgen_neg
p4spectec.cache
p4spectec.coverage
p4spectec.domain
p4spectec.frontend
p4spectec.interface
p4spectec.interp
p4spectec.lang
p4spectec.pass
p4spectec.runner
p4spectec.runtime
p4spectec.stf
p4spectec.util
prose
sim
spectec
static
testgen_neg
type
value
module Value = Runtime.Value
module IO = Runtime.Sim.Io
type s = Value.t * Value.t * IO.tx list
type 'a state = s -> 'a option * s
val get : s state
val put : s -> unit state
val modify : (s -> s) -> unit state
val return : 'a -> 'a state
val bind : 'a state -> ('a -> 'b state) -> s -> 'b option * s
val (>>) : 'a state -> 'b state -> s -> 'b option * s
val (let*) : 'a state -> ('a -> 'b state) -> s -> 'b option * s
val map : 'a state -> ('a -> 'b) -> s -> 'b option * s
val (let+) : 'a state -> ('a -> 'b) -> s -> 'b option * s
val sequence : 'a state list -> 'a list state
val on_result : 'a state -> some:('a -> 'b state) -> none:(unit -> 'b state) -> 'b state
val apply : (Value.t -> Value.t -> Value.t * Value.t * 'a) -> 'a state
val guard : bool -> unit state
val empty : 'a state
val run : 'a state -> s -> 'a option * s