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.
38 lines
954 B
38 lines
954 B
(*
|
|
* Copyright (c) 2016-present, Facebook, Inc.
|
|
*
|
|
* This source code is licensed under the MIT license found in the
|
|
* LICENSE file in the root directory of this source tree.
|
|
*)
|
|
|
|
open! IStd
|
|
|
|
(** Module for builtin functions with their symbolic execution handler *)
|
|
|
|
type args =
|
|
{ pdesc: Procdesc.t
|
|
; instr: Sil.instr
|
|
; tenv: Tenv.t
|
|
; prop_: Prop.normal Prop.t
|
|
; path: Paths.Path.t
|
|
; ret_id_typ: Ident.t * Typ.t
|
|
; args: (Exp.t * Typ.t) list
|
|
; proc_name: Typ.Procname.t
|
|
; loc: Location.t
|
|
; exe_env: Exe_env.t }
|
|
|
|
type ret_typ = (Prop.normal Prop.t * Paths.Path.t) list
|
|
|
|
type t = args -> ret_typ
|
|
|
|
type registered
|
|
|
|
val register : Typ.Procname.t -> t -> registered
|
|
(** Register a builtin [Typ.Procname.t] and symbolic execution handler *)
|
|
|
|
val get : Typ.Procname.t -> t option
|
|
(** Get the symbolic execution handler associated to the builtin function name *)
|
|
|
|
val print_and_exit : unit -> 'a
|
|
(** Print the builtin functions and exit *)
|