This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
contract PerformanceTester { | |
function ackermann(uint m, uint n) returns (uint) { | |
if (m == 0) | |
return n + 1; | |
if (n == 0) | |
return ackermann(m - 1, 1); | |
return ackermann(m - 1, ackermann(m, n - 1)); | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
define i32 @main() { | |
%buf = alloca i8, i32 24, align 16 | |
%r = call i32 @llvm.eh.sjlj.setjmp(i8* %buf) | |
;%r = add i32 0, 1 | |
%normal = icmp eq i32 %r, 0 | |
br i1 %normal, label %Normal, label %Jump | |
Normal: |
NewerOlder