lean2/src/library/tactic
Leonardo de Moura 83aaf64318 fix(library/tactic): memory leaks
Proof/Cex builders and tactics implemented in Lua had a "strong reference" to script_state. If they are stored in the Lua state, then we get a cyclic reference.
That is, script_state points to these objects, and they point back to script_state.

To avoid this memory leak, this commit defines a weak reference for script_state objects. The Proof/Cex builders and tactics now store a weak reference to the Lua state.

Signed-off-by: Leonardo de Moura <leonardo@microsoft.com>
2013-11-30 00:44:39 -08:00
..
assignment.h feat(library/tactic): add tactic framework APIs 2013-11-20 17:19:05 -08:00
boolean.cpp feat(kernel/builtin): add is_* functions 2013-11-29 11:35:58 -08:00
boolean.h feat(library/tactic): expose conj_tactic, imp_tactic, conj_hyp_tactic in the Lua API 2013-11-28 18:17:15 -08:00
cex_builder.cpp fix(library/tactic): memory leaks 2013-11-30 00:44:39 -08:00
cex_builder.h refactor(bindings/lua): move Lua bindings to the file associated with them 2013-11-26 19:15:56 -08:00
CMakeLists.txt refactor(bindings/lua): move Lua bindings to the file associated with them 2013-11-26 19:15:56 -08:00
goal.cpp feat(frontends/lean/parser): add basic tactic support in the frontend 2013-11-28 21:08:12 -08:00
goal.h refactor(bindings/lua): move Lua bindings to the file associated with them 2013-11-26 19:15:56 -08:00
proof_builder.cpp fix(library/tactic): memory leaks 2013-11-30 00:44:39 -08:00
proof_builder.h refactor(bindings/lua): move Lua bindings to the file associated with them 2013-11-26 19:15:56 -08:00
proof_state.cpp feat(library/tactic): polish tactic API, and add new example showing how to implement tactics using Lua 2013-11-30 00:16:39 -08:00
proof_state.h feat(frontends/lean/parser): add basic tactic support in the frontend 2013-11-28 21:08:12 -08:00
register_module.h feat(library/tactic): expose conj_tactic, imp_tactic, conj_hyp_tactic in the Lua API 2013-11-28 18:17:15 -08:00
tactic.cpp fix(library/tactic): memory leaks 2013-11-30 00:44:39 -08:00
tactic.h fix(library/tactic): compilation warning 2013-11-29 10:35:14 -08:00