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.
29 lines
943 B
29 lines
943 B
8 years ago
|
(*
|
||
|
* Copyright (c) 2016 - present Facebook, Inc.
|
||
|
* All rights reserved.
|
||
|
*
|
||
|
* This source code is licensed under the BSD style license found in the
|
||
|
* LICENSE file in the root directory of this source tree. An additional grant
|
||
|
* of patent rights can be found in the PATENTS file in the same directory.
|
||
|
*)
|
||
|
|
||
8 years ago
|
type 'a parameter =
|
||
|
{ sink : 'a;
|
||
|
(** sink type of the parameter *)
|
||
|
index : int;
|
||
|
(** index of the parameter *)
|
||
|
report_reachable : bool;
|
||
|
(** if true, report if *any* value heap-reachable from the sink parameter is a source.
|
||
|
if false, report only if the value passed to the sink is itself a source *)
|
||
|
}
|
||
|
|
||
|
let make_sink_param sink index ~report_reachable =
|
||
|
{ sink; index; report_reachable; }
|
||
|
|
||
8 years ago
|
module type S = sig
|
||
|
include TraceElem.S
|
||
|
|
||
8 years ago
|
(** return the parameter index and sink kind for the given call site with the given actuals *)
|
||
|
val get : CallSite.t -> (Exp.t * Typ.t) list -> t parameter list
|
||
8 years ago
|
end
|