Simplest: catch inconsistent subroutine in of_prog
This commit is contained in:
parent
b4043249f9
commit
7ffc33d7a8
1 changed files with 7 additions and 1 deletions
|
@ -407,7 +407,13 @@ let of_prog prog : cfa_changes =
|
|||
(try
|
||||
let res = cleanup_fde @@ process_sub sub in
|
||||
StrMap.add (BStd.Sub.name sub) res accu
|
||||
with InvalidSub -> accu)
|
||||
with
|
||||
| InvalidSub -> accu
|
||||
| Inconsistent tid ->
|
||||
Format.eprintf "Inconsistent TId %a in subroutine %s, skipping.@."
|
||||
BStd.Tid.pp tid (BStd.Sub.name sub);
|
||||
accu
|
||||
)
|
||||
in
|
||||
let subroutines = BStd.Term.enum BStd.sub_t prog in
|
||||
BStd.Seq.fold subroutines
|
||||
|
|
Loading…
Reference in a new issue