You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
49 lines
1.3 KiB
49 lines
1.3 KiB
(*
|
|
* Copyright (c) 2009-2013, Monoidics ltd.
|
|
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
*
|
|
* This source code is licensed under the MIT license found in the
|
|
* LICENSE file in the root directory of this source tree.
|
|
*)
|
|
|
|
open! IStd
|
|
|
|
(** State of symbolic execution *)
|
|
|
|
type t
|
|
|
|
val get_instr : unit -> Sil.instr option
|
|
(** Get last instruction seen in symbolic execution *)
|
|
|
|
val get_loc_exn : unit -> Location.t
|
|
(** Get last location seen in symbolic execution *)
|
|
|
|
val get_loc : unit -> Location.t option
|
|
(** Get last location seen in symbolic execution *)
|
|
|
|
val get_node_exn : unit -> Procdesc.Node.t
|
|
(** Get last node seen in symbolic execution *)
|
|
|
|
val get_node : unit -> Procdesc.Node.t option
|
|
(** Get last node seen in symbolic execution *)
|
|
|
|
val get_session : unit -> int
|
|
(** Get last session seen in symbolic execution *)
|
|
|
|
val set_instr : Sil.instr -> unit
|
|
(** Set last instruction seen in symbolic execution *)
|
|
|
|
val set_node : Procdesc.Node.t -> unit
|
|
(** Set last node seen in symbolic execution *)
|
|
|
|
val set_session : int -> unit
|
|
(** Set last session seen in symbolic execution *)
|
|
|
|
(** {2 State management} *)
|
|
|
|
val restore : t -> unit
|
|
(** Restore the old state. *)
|
|
|
|
val save : unit -> t
|
|
(** Return the old state, and revert the current state to the initial one. *)
|