3
0
Fork 0
mirror of https://github.com/Z3Prover/z3 synced 2025-05-06 15:25:46 +00:00

deal with unit test failure cases, fixes #132 #133

Signed-off-by: Nikolaj Bjorner <nbjorner@microsoft.com>
This commit is contained in:
Nikolaj Bjorner 2015-06-17 17:30:10 -07:00
parent 6a50f10b8b
commit 18374aa12a
4 changed files with 8 additions and 6 deletions

View file

@ -62,8 +62,9 @@ void dl_context_saturate_file(params_ref & params, const char * f) {
ctx.updt_params(params);
datalog::parser * parser = datalog::parser::create(ctx, m);
if (!parser->parse_file(f)) {
if (!parser || !parser->parse_file(f)) {
warning_msg("ERROR: failed to parse file");
dealloc(parser);
return;
}
dealloc(parser);