Skip to content
Snippets Groups Projects
Commit 479c43d7 authored by Andre Maroneze's avatar Andre Maroneze
Browse files

Merge branch 'fix/scope/no-preds' into 'master'

[Scope] Do not crash when calling "Zones" on a statement with no predecessor.

Closes #766

See merge request frama-c/frama-c!2478
parents 6ece7d13 3ea7ee6f
No related branches found
No related tags found
No related merge requests found
......@@ -336,14 +336,16 @@ let pretty fmt stmt_zones =
(*~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~*)
let build_zones =
let build_zones kf stmt lval =
(* TODO: Journal.register *)
(* (Datatype.func Kernel_type.kernel_function
(Datatype.func Kernel_type.stmt
(Datatype.func Kernel_type.lval
(Datatype.couple Kernel_type.stmt_set zones_ty)))))
*)
compute
if stmt.preds = []
then Stmt.Hptset.empty, Ctx.create 0
else compute kf stmt lval
let get_zones =
(* TODO: Journal.register *)
......
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