3
0
Fork 0
mirror of https://github.com/Z3Prover/z3 synced 2025-04-22 16:45:31 +00:00

fix crash exposed by examples/dotnet/Program.cs

Signed-off-by: Nikolaj Bjorner <nbjorner@microsoft.com>
This commit is contained in:
Nikolaj Bjorner 2018-10-20 14:32:59 -07:00
parent 3ba2aa2672
commit c802a0ac96
2 changed files with 3 additions and 2 deletions

View file

@ -312,7 +312,8 @@ void model::collect_occs(top_sort& ts, func_decl* f) {
func_interp* fi = get_func_interp(f);
if (fi) {
e = fi->get_else();
collect_occs(ts, e);
if (e != nullptr)
collect_occs(ts, e);
}
}
}