[quandary] ok to have no post if start node has no succs

Reviewed By: sblackshear

Differential Revision: D3991275

fbshipit-source-id: 5f8c4be
master
Josh Berdine 8 years ago committed by Facebook Github Bot
parent d8336ea906
commit 314506ec1a

@ -441,7 +441,9 @@ module Make (TraceDomain : QuandarySummary.Trace) = struct
let summary = make_summary formals access_tree in
Summary.write_summary (Cfg.Procdesc.get_proc_name pdesc) summary;
| None ->
failwith "Couldn't compute post" in
if Cfg.Node.get_succs (Cfg.Procdesc.get_start_node pdesc) = []
then ()
else failwith "Couldn't compute post" in
let callbacks =
{
Ondemand.analyze_ondemand;

Loading…
Cancel
Save