@ -1307,9 +1307,8 @@ let rec sym_exec tenv current_pdesc instr_ (prop_: Prop.normal Prop.t) path
prop path resolved_pname ret_annots loc ret_id ret_typ_opt
prop path resolved_pname ret_annots loc ret_id ret_typ_opt
n_actual_params )
n_actual_params )
| None ->
| None ->
skip_call ~ is_objc_instance_method : false
skip_call ~ reason : " function or method not found " prop path resolved_pname
~ reason : " function or method not found " prop path resolved_pname ret_annots
ret_annots loc ret_id ret_typ_opt n_actual_params
loc ret_id ret_typ_opt n_actual_params
else
else
proc_call
proc_call
( Option . value_exn resolved_summary_opt )
( Option . value_exn resolved_summary_opt )
@ -1716,6 +1715,7 @@ and sym_exec_alloc_model pname ret_typ tenv ret_id pdesc loc prop path : Builtin
and proc_call callee_summary
and proc_call callee_summary
{ Builtin . pdesc ; tenv ; prop_ = pre ; path ; ret_id ; args = actual_pars ; loc } =
{ Builtin . pdesc ; tenv ; prop_ = pre ; path ; ret_id ; args = actual_pars ; loc } =
let caller_pname = Procdesc . get_proc_name pdesc in
let caller_pname = Procdesc . get_proc_name pdesc in
let callee_attrs = Specs . get_attributes callee_summary in
let callee_pname = Specs . get_proc_name callee_summary in
let callee_pname = Specs . get_proc_name callee_summary in
check_inherently_dangerous_function caller_pname callee_pname ;
check_inherently_dangerous_function caller_pname callee_pname ;
let formal_types = List . map ~ f : snd ( Specs . get_formals callee_summary ) in
let formal_types = List . map ~ f : snd ( Specs . get_formals callee_summary ) in
@ -1753,18 +1753,14 @@ and proc_call callee_summary
to their actual type otherwise . The latter case happens
to their actual type otherwise . The latter case happens
with variable - arguments functions * )
with variable - arguments functions * )
let actual_params = comb actual_pars formal_types in
let actual_params = comb actual_pars formal_types in
(* In case we call an objc instance method we add and extra spec *)
(* In case we call an objc instance method we add an extra spec
(* were the receiver is null and the semantics of the call is nop *)
where the receiver is null and the semantics of the call is nop * )
(* let callee_attrs = Specs.get_attributes callee_summary in *)
match ( ! Language . curr_language , callee_attrs . ProcAttributes . clang_method_kind ) with
if ! Language . curr_language < > Language . Java
| Language . Clang , ProcAttributes . OBJC_INSTANCE ->
&& ProcAttributes . clang_method_kind_equal
( Specs . get_attributes callee_summary ) . ProcAttributes . clang_method_kind
ProcAttributes . OBJC_INSTANCE
then
handle_objc_instance_method_call actual_pars actual_params pre tenv ret_id pdesc callee_pname
handle_objc_instance_method_call actual_pars actual_params pre tenv ret_id pdesc callee_pname
loc path
loc path
( Tabulation . exe_function_call callee_summary )
( Tabulation . exe_function_call callee_summary )
else
| _ ->
(* non-objective-c method call. Standard tabulation *)
(* non-objective-c method call. Standard tabulation *)
Tabulation . exe_function_call callee_summary tenv ret_id pdesc callee_pname loc actual_params
Tabulation . exe_function_call callee_summary tenv ret_id pdesc callee_pname loc actual_params
pre path
pre path