lean4-htt/tests/compiler/bigctor.lean
Leonardo de Moura a498a64490 chore: disable injectivity theorems generation for big structure tests
The test was producing a stack overflow in debug mode in CI.
2021-05-15 21:30:40 -07:00

78 lines
1.3 KiB
Text

set_option genInjectivity false
structure Foo where
x1 : Nat := 0
x2 : Nat := 0
x3 : Nat := 0
x4 : Nat := 0
x5 : Nat := 0
x6 : Nat := 0
x7 : Nat := 0
x8 : Nat := 0
x9 : Nat := 0
x10 : Nat := 0
y1 : Nat := 0
y2 : Nat := 0
y3 : Nat := 0
y4 : Nat := 0
y5 : Nat := 0
y6 : Nat := 0
y7 : Nat := 0
y8 : Nat := 0
y9 : Nat := 0
y10 : Nat := 0
z1 : Nat := 0
z2 : Nat := 0
z3 : Nat := 0
z4 : Nat := 0
z5 : Nat := 0
z6 : Nat := 0
z7 : Nat := 0
z8 : Nat := 0
z9 : Nat := 0
z10 : Nat := 0
w1 : Nat := 0
w2 : Nat := 0
w3 : Nat := 0
w4 : Nat := 0
w5 : Nat := 0
w6 : Nat := 0
w7 : Nat := 0
w8 : Nat := 0
w9 : Nat := 0
w10 : Nat := 0
xx1 : Nat := 0
xx2 : Nat := 0
xx3 : Nat := 0
xx4 : Nat := 0
xx5 : Nat := 0
xx6 : Nat := 0
xx7 : Nat := 0
xx8 : Nat := 0
xx9 : Nat := 0
xx10 : Nat := 0
yy1 : Nat := 0
yy2 : Nat := 0
yy3 : Nat := 0
yy4 : Nat := 0
yy5 : Nat := 0
yy6 : Nat := 0
yy7 : Nat := 0
yy8 : Nat := 0
yy9 : Nat := 0
yy10 : Nat := 0
ww1 : Nat := 0
ww2 : Nat := 0
ww3 : Nat := 0
ww4 : Nat := 0
ww5 : Nat := 0
ww6 : Nat := 0
ww7 : Nat := 0
ww8 : Nat := 0
ww9 : Nat := 0
ww10 : Nat := 0
@[noinline] def mkFoo (x : Nat) : Foo :=
{ yy10 := x }
def main : IO Unit :=
IO.println (mkFoo 10).yy10