don't fail when nullifying a var not in the prop

Reviewed By: jeremydubreil

Differential Revision: D3243449

fb-gh-sync-id: c8f92d2
fbshipit-source-id: c8f92d2
master
Sam Blackshear 9 years ago committed by Facebook Github Bot 7
parent 49d32859cb
commit 442cf66fdc

@ -1220,7 +1220,11 @@ let rec sym_exec tenv current_pdesc _instr (prop_: Prop.normal Prop.t) path
| true -> sigma' in | true -> sigma' in
let eprop_res = Prop.replace_sigma sigma'' eprop in let eprop_res = Prop.replace_sigma sigma'' eprop in
ret_old_path [Prop.normalize eprop_res] ret_old_path [Prop.normalize eprop_res]
| _ -> assert false | [], _ ->
ret_old_path [prop_]
| _ ->
L.err "Pvar %a appears on the LHS of >1 heap predicate!@." (Pvar.pp pe_text) pvar;
assert false
end end
| Sil.Abstract _ -> | Sil.Abstract _ ->
let node = State.get_node () in let node = State.get_node () in

Loading…
Cancel
Save