-
Notifications
You must be signed in to change notification settings - Fork 27
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'master' into rc/v1.7.0
- Loading branch information
Showing
7 changed files
with
65 additions
and
2 deletions.
There are no files selected for viewing
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
typedef unsigned char byte; | ||
typedef unsigned int i32; | ||
typedef unsigned long long i64; | ||
typedef unsigned int bigInt; | ||
|
||
bigInt bigIntNew(long long value); | ||
void bigIntFinishUnsigned(bigInt reference); | ||
|
||
void init() | ||
{ | ||
} | ||
|
||
i64 doStackoverflow(i64 a) | ||
{ | ||
if (a % 2 == 0) | ||
{ | ||
return 42; | ||
} | ||
|
||
i64 x = doStackoverflow(a * 8 + 1); | ||
i64 y = doStackoverflow(a * 2 + 1); | ||
return x + y + a; | ||
} | ||
|
||
void badRecursive() | ||
{ | ||
i64 result = doStackoverflow(1); | ||
bigInt resultBig = bigIntNew(result); | ||
bigIntFinishUnsigned(resultBig); | ||
} |
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
init | ||
badRecursive |
Binary file not shown.
This file contains 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
Binary file not shown.
This file contains 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
Binary file not shown.