I found a program that seems to exceed the expected runtime given its cost.
The program is constructed as follows:
f(0) := iden
f(n + 1) := comp (take f(n)) (drop f(n))
Importantly, the type signature of f(n) differs depending on how it is used. Sharing happens after the program is constructed.
Let's build a C test vector that measures the runtime. The Elements test suite is inaccurate because it runs the same program multiple times.
I found a program that seems to exceed the expected runtime given its cost.
The program is constructed as follows:
Importantly, the type signature of
f(n)differs depending on how it is used. Sharing happens after the program is constructed.Let's build a C test vector that measures the runtime. The Elements test suite is inaccurate because it runs the same program multiple times.