Skip to content
Snippets Groups Projects
Commit e9559a91 authored by Valentin Perrelle's avatar Valentin Perrelle Committed by David Bühler
Browse files

[Dive] Fix a crash when computing dependencies in Frama_c_show_each calls

parent e04180de
No related branches found
No related tags found
No related merge requests found
......@@ -513,7 +513,11 @@ let build_node_reads context node =
and build_args_deps callstack zone stmt args callee_kf =
let callstack = Callstack.push (callee_kf,stmt) callstack in
let formals = Kernel_function.get_formals callee_kf in
List.iter2 (build_arg_dep callstack stmt zone) args formals
try
List.iter2 (build_arg_dep callstack stmt zone) args formals
(* Invalid_argument happens for Frama_C_show_each which does not have
any formal but can have any arguments. *)
with Invalid_argument _ -> ()
and build_arg_dep callstack stmt zone arg formal =
if exp_contains_read zone stmt arg then
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment