#define NULL ((void *)0)
typedef unsigned long size_t; // Customize by platform.
typedef long intptr_t;
typedef unsigned long uintptr_t;
typedef long scalar_t__; // Either arithmetic or pointer type.
/* By default, we understand bool (as a convenience). */
typedef int bool;
#define false 0
#define true 1

/* Forward declarations */

/* Type definitions */

/* Variables and functions */
int /*<<< orphan*/ dotest(int, char *);
int main() {
  dotest(5, "{{3, 1}}");
  dotest(9001, "{{4501, 2250}}");
  dotest(9005, "{{4503, 2251}{903, 449}}");
  dotest(9008, "{{1128, 562}}");
  dotest(900005, "{{450003, 225001}{90003, 44999}}");
  dotest(90000001, "{{45000001, 22500000}{6428575, 3214284}"
                   "{3461545, 1730766}{494551, 247230}}");
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
mov    $0x5,%edi
lea    0xee0(%rip),%rsi
call   1030 <dotest@plt>
mov    $0x2329,%edi
lea    0xed8(%rip),%rsi
call   1030 <dotest@plt>
mov    $0x232d,%edi
lea    0xed6(%rip),%rsi
call   1030 <dotest@plt>
mov    $0x2330,%edi
lea    0xede(%rip),%rsi
call   1030 <dotest@plt>
mov    $0xdbba5,%edi
lea    0xedb(%rip),%rsi
call   1030 <dotest@plt>
mov    $0x55d4a81,%edi
lea    0xeeb(%rip),%rsi
call   1030 <dotest@plt>
xor    %eax,%eax
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %rax
lea    0xee8(%rip),%rsi
mov    $0x5,%edi
call   1030 <dotest@plt>
lea    0xee0(%rip),%rsi
mov    $0x2329,%edi
call   1030 <dotest@plt>
lea    0xede(%rip),%rsi
mov    $0x232d,%edi
call   1030 <dotest@plt>
lea    0xee6(%rip),%rsi
mov    $0x2330,%edi
call   1030 <dotest@plt>
lea    0xee3(%rip),%rsi
mov    $0xdbba5,%edi
call   1030 <dotest@plt>
lea    0xef3(%rip),%rsi
mov    $0x55d4a81,%edi
call   1030 <dotest@plt>
xor    %eax,%eax
pop    %rcx
ret

LLVM IR (-O0):
@.str = [9 x i8] c"{{3, 1}}\00"
@.str.1 = [15 x i8] c"{{4501, 2250}}\00"
@.str.2 = [25 x i8] c"{{4503, 2251}{903, 449}}\00"
@.str.3 = [14 x i8] c"{{1128, 562}}\00"
@.str.4 = [33 x i8] c"{{450003, 225001}{90003, 44999}}\00"
@.str.5 = [75 x i8] c"{{45000001, 22500000}{6428575, 3214284}{3461545, 1730766}{494551, 247230}}\00"
define i32 @main() {
%1 = call i32 @dotest(i32 5, i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str, i64 0, i64 0))
%2 = call i32 @dotest(i32 9001, i8* getelementptr inbounds ([15 x i8], [15 x i8]* @.str.1, i64 0, i64 0))
%3 = call i32 @dotest(i32 9005, i8* getelementptr inbounds ([25 x i8], [25 x i8]* @.str.2, i64 0, i64 0))
%4 = call i32 @dotest(i32 9008, i8* getelementptr inbounds ([14 x i8], [14 x i8]* @.str.3, i64 0, i64 0))
%5 = call i32 @dotest(i32 900005, i8* getelementptr inbounds ([33 x i8], [33 x i8]* @.str.4, i64 0, i64 0))
%6 = call i32 @dotest(i32 90000001, i8* getelementptr inbounds ([75 x i8], [75 x i8]* @.str.5, i64 0, i64 0))
ret i32 0
}

LLVM IR (-O2):
@.str = [9 x i8] c"{{3, 1}}\00"
@.str.1 = [15 x i8] c"{{4501, 2250}}\00"
@.str.2 = [25 x i8] c"{{4503, 2251}{903, 449}}\00"
@.str.3 = [14 x i8] c"{{1128, 562}}\00"
@.str.4 = [33 x i8] c"{{450003, 225001}{90003, 44999}}\00"
@.str.5 = [75 x i8] c"{{45000001, 22500000}{6428575, 3214284}{3461545, 1730766}{494551, 247230}}\00"
define i32 @main() {
%1 = tail call i32 @dotest(i32 5, i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str, i64 0, i64 0))
%2 = tail call i32 @dotest(i32 9001, i8* getelementptr inbounds ([15 x i8], [15 x i8]* @.str.1, i64 0, i64 0))
%3 = tail call i32 @dotest(i32 9005, i8* getelementptr inbounds ([25 x i8], [25 x i8]* @.str.2, i64 0, i64 0))
%4 = tail call i32 @dotest(i32 9008, i8* getelementptr inbounds ([14 x i8], [14 x i8]* @.str.3, i64 0, i64 0))
%5 = tail call i32 @dotest(i32 900005, i8* getelementptr inbounds ([33 x i8], [33 x i8]* @.str.4, i64 0, i64 0))
%6 = tail call i32 @dotest(i32 90000001, i8* getelementptr inbounds ([75 x i8], [75 x i8]* @.str.5, i64 0, i64 0))
ret i32 0
}