fix(library/compiler/vm_compiler): prevent segfault

This commit is contained in:
Gabriel Ebner 2016-11-03 18:38:07 -04:00 committed by Leonardo de Moura
parent 5075891f66
commit 41643d6400
2 changed files with 6 additions and 0 deletions

View file

@ -335,6 +335,7 @@ environment vm_compile(environment const & env, buffer<pair<name, expr>> const &
}
environment vm_compile(environment const & env, declaration const & d) {
if (!d.is_definition()) return env;
buffer<pair<name, expr>> procs;
preprocess(env, d, procs);
return vm_compile(env, procs);

View file

@ -0,0 +1,5 @@
open tactic
run_command (do
e ← to_expr `(false),
add_decl $ declaration.ax `useful_assumption [] e)