test(lua): add example for testing is_descendant
Signed-off-by: Leonardo de Moura <leonardo@microsoft.com>
This commit is contained in:
parent
bc1a91496a
commit
129d108d0b
1 changed files with 6 additions and 0 deletions
6
tests/lua/env4.lua
Normal file
6
tests/lua/env4.lua
Normal file
|
@ -0,0 +1,6 @@
|
|||
local env = empty_environment()
|
||||
env = add_decl(env, mk_var_decl("A", Bool))
|
||||
local c1 = type_check(env, mk_axiom("p", Const("A")))
|
||||
local c2 = type_check(env, mk_axiom("q", Const("A")))
|
||||
env = env:add(c1)
|
||||
env = env:add(c2)
|
Loading…
Reference in a new issue