[purity] Add pure frontend functions

Reviewed By: ngorogiannis

Differential Revision: D19428097

fbshipit-source-id: d91502039
master
Ezgi Çiçek 5 years ago committed by Facebook Github Bot
parent 5b86031798
commit a28ccbb180

@ -9,15 +9,19 @@ open! IStd
module BuiltinPureMethods = Caml.Set.Make (String) module BuiltinPureMethods = Caml.Set.Make (String)
let pure_builtins = let pure_builtins =
BuiltinPureMethods.of_list List.map ~f:Procname.get_method
[ "__instanceof" [ BuiltinDecl.__instanceof
; "__cast" ; BuiltinDecl.__cast
; "__get_array_length" ; BuiltinDecl.__get_array_length
; "__set_array_length" ; BuiltinDecl.__set_array_length
; "__get_type_of" ; BuiltinDecl.__get_type_of
; "__infer_assume" ; BuiltinDecl.__infer_assume
; "__infer_skip" ; BuiltinDecl.__infer_skip
; "__infer_fail" ] ; BuiltinDecl.__infer_skip_gcc_asm_stmt
; BuiltinDecl.__infer_generic_selection_expr
; BuiltinDecl.__infer_skip_function
; BuiltinDecl.__infer_fail ]
|> BuiltinPureMethods.of_list
let modifies_first = PurityDomain.impure_params (PurityDomain.ModifiedParamIndices.of_list [0]) let modifies_first = PurityDomain.impure_params (PurityDomain.ModifiedParamIndices.of_list [0])

Loading…
Cancel
Save