2014-01-05 12:05:08 -08:00
|
|
|
import Int.
|
|
|
|
variable x : Int
|
2013-11-10 10:12:43 -08:00
|
|
|
|
2014-01-05 10:32:47 -08:00
|
|
|
(*
|
2013-11-13 13:58:51 -08:00
|
|
|
local N = 100
|
|
|
|
local env = get_environment()
|
2013-11-10 10:12:43 -08:00
|
|
|
-- Create N variables with the same type of x
|
2013-12-22 11:51:38 -08:00
|
|
|
typeofx = env:type_check(Const("x"))
|
2013-11-10 10:12:43 -08:00
|
|
|
for i = 1, N do
|
2013-11-13 13:58:51 -08:00
|
|
|
env:add_var("y_" .. i, typeofx)
|
2013-11-10 10:12:43 -08:00
|
|
|
end
|
2014-01-05 10:32:47 -08:00
|
|
|
*)
|
2013-11-10 10:12:43 -08:00
|
|
|
|
2014-01-05 12:05:08 -08:00
|
|
|
print environment 101
|
|
|
|
check x + y_1 + y_2
|