2014-01-05 20:05:08 +00:00
|
|
|
variables x1 x2 x3 : Bool
|
|
|
|
definition F : Bool := x1 /\ (x2 \/ x3)
|
2013-11-14 00:30:59 +00:00
|
|
|
|
2014-01-05 18:32:47 +00:00
|
|
|
(*
|
2013-11-14 00:30:59 +00:00
|
|
|
local env = get_environment()
|
|
|
|
local F = env:find_object("F"):get_value()
|
|
|
|
print(F)
|
|
|
|
|
|
|
|
function expr_size(e)
|
|
|
|
local r = 0
|
|
|
|
e:for_each(function(e, offset) r = r + 1 end)
|
|
|
|
return r
|
|
|
|
end
|
|
|
|
|
|
|
|
print(expr_size(F))
|
|
|
|
|
2014-01-05 18:32:47 +00:00
|
|
|
*)
|