#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*/ test(char *, char *);
void TEST_basic_types(void) {
  test("", "main(){-1;}");
  test("Hello, world!", "main(){printf(\"Hello, world!\");}");
  test("Hello, world!", "main(){printf(\"Hello, %s\", \"world!\");}");
  test("3", "main(){int i=3; printf(\"%d\", i);}");
  test("6", "main(){int i=3; int j=0; j=i+3; printf(\"%d\", j);}");
  test("50", "main(){int i=atoi(\"50\"); int j = i; printf(\"%d\", j);}");
  test("15", "main(){int i=3; int j=i+5+7; printf(\"%d\", j);}");
  test("-5", "main(){int i=3; int j=5-i-7; printf(\"%d\", j);}");
  test("0", "main(){int i=3; int j=5-i-7; printf(\"%d\", j+5);}");
  test("0", "main(){int i=3; int j=5-i-7; printf(\"%d\", j+5);}");
  test("3.5", "main(){printf(\"%.1f\", 3.0 + 0.5);}");
  test("2.5", "main(){printf(\"%.1f\", 3.0 - 0.5);}");
  test("9.9", "main(){printf(\"%.1f\", 1.1 * 9.0);}");
  test("3.0", "main(){printf(\"%.1f\", 9.9 / 3.3);}");
}


x86 assembly (clang, -O0):
<TEST_basic_types>:
push   %rbp
mov    %rsp,%rbp
lea    0xefe(%rip),%rdi
lea    0xede(%rip),%rsi
call   1030 <test@plt>
lea    0xede(%rip),%rdi
lea    0xee5(%rip),%rsi
call   1030 <test@plt>
lea    0xecb(%rip),%rdi
lea    0xef3(%rip),%rsi
call   1030 <test@plt>
lea    0xf0e(%rip),%rdi
lea    0xf09(%rip),%rsi
call   1030 <test@plt>
lea    0xf1f(%rip),%rdi
lea    0xf1a(%rip),%rsi
call   1030 <test@plt>
lea    0xf40(%rip),%rdi
lea    0xf3c(%rip),%rsi
call   1030 <test@plt>
lea    0xf66(%rip),%rdi
lea    0xf62(%rip),%rsi
call   1030 <test@plt>
lea    0xf85(%rip),%rdi
lea    0xf81(%rip),%rsi
call   1030 <test@plt>
lea    0x104c(%rip),%rdi
lea    0xf9d(%rip),%rsi
call   1030 <test@plt>
lea    0x1039(%rip),%rdi
lea    0xf8a(%rip),%rsi
call   1030 <test@plt>
lea    0xfaf(%rip),%rdi
lea    0xfac(%rip),%rsi
call   1030 <test@plt>
lea    0xfc3(%rip),%rdi
lea    0xfc0(%rip),%rsi
call   1030 <test@plt>
lea    0xfd7(%rip),%rdi
lea    0xfd4(%rip),%rsi
call   1030 <test@plt>
lea    0xfeb(%rip),%rdi
lea    0xfe8(%rip),%rsi
call   1030 <test@plt>
pop    %rbp
ret

x86 assembly (clang, -O2):
<TEST_basic_types>:
push   %r14
push   %rbx
push   %rax
lea    0xefe(%rip),%rdi
lea    0xede(%rip),%rsi
call   1030 <test@plt>
lea    0xede(%rip),%rbx
lea    0xee5(%rip),%rsi
mov    %rbx,%rdi
call   1030 <test@plt>
lea    0xef7(%rip),%rsi
mov    %rbx,%rdi
call   1030 <test@plt>
lea    0xf0f(%rip),%rdi
lea    0xf0a(%rip),%rsi
call   1030 <test@plt>
lea    0xf20(%rip),%rdi
lea    0xf1b(%rip),%rsi
call   1030 <test@plt>
lea    0xf41(%rip),%rdi
lea    0xf3d(%rip),%rsi
call   1030 <test@plt>
lea    0xf67(%rip),%rdi
lea    0xf63(%rip),%rsi
call   1030 <test@plt>
lea    0xf86(%rip),%rdi
lea    0xf82(%rip),%rsi
call   1030 <test@plt>
lea    0x104d(%rip),%rbx
lea    0xf9e(%rip),%r14
mov    %rbx,%rdi
mov    %r14,%rsi
call   1030 <test@plt>
mov    %rbx,%rdi
mov    %r14,%rsi
call   1030 <test@plt>
lea    0xfb2(%rip),%rdi
lea    0xfaf(%rip),%rsi
call   1030 <test@plt>
lea    0xfc6(%rip),%rdi
lea    0xfc3(%rip),%rsi
call   1030 <test@plt>
lea    0xfda(%rip),%rdi
lea    0xfd7(%rip),%rsi
call   1030 <test@plt>
lea    0xfee(%rip),%rdi
lea    0xfeb(%rip),%rsi
add    $0x8,%rsp
pop    %rbx
pop    %r14
jmp    1030 <test@plt>

LLVM IR (-O0):
@.str = [1 x i8] zeroinitializer
@.str.1 = [12 x i8] c"main(){-1;}\00"
@.str.2 = [14 x i8] c"Hello, world!\00"
@.str.3 = [33 x i8] c"main(){printf(\22Hello, world!\22);}\00"
@.str.4 = [39 x i8] c"main(){printf(\22Hello, %s\22, \22world!\22);}\00"
@.str.5 = [2 x i8] c"3\00"
@.str.6 = [34 x i8] c"main(){int i=3; printf(\22%d\22, i);}\00"
@.str.7 = [2 x i8] c"6\00"
@.str.8 = [50 x i8] c"main(){int i=3; int j=0; j=i+3; printf(\22%d\22, j);}\00"
@.str.9 = [3 x i8] c"50\00"
@.str.10 = [54 x i8] c"main(){int i=atoi(\2250\22); int j = i; printf(\22%d\22, j);}\00"
@.str.11 = [3 x i8] c"15\00"
@.str.12 = [47 x i8] c"main(){int i=3; int j=i+5+7; printf(\22%d\22, j);}\00"
@.str.13 = [3 x i8] c"-5\00"
@.str.14 = [47 x i8] c"main(){int i=3; int j=5-i-7; printf(\22%d\22, j);}\00"
@.str.15 = [2 x i8] c"0\00"
@.str.16 = [49 x i8] c"main(){int i=3; int j=5-i-7; printf(\22%d\22, j+5);}\00"
@.str.17 = [4 x i8] c"3.5\00"
@.str.18 = [35 x i8] c"main(){printf(\22%.1f\22, 3.0 + 0.5);}\00"
@.str.19 = [4 x i8] c"2.5\00"
@.str.20 = [35 x i8] c"main(){printf(\22%.1f\22, 3.0 - 0.5);}\00"
@.str.21 = [4 x i8] c"9.9\00"
@.str.22 = [35 x i8] c"main(){printf(\22%.1f\22, 1.1 * 9.0);}\00"
@.str.23 = [4 x i8] c"3.0\00"
@.str.24 = [35 x i8] c"main(){printf(\22%.1f\22, 9.9 / 3.3);}\00"
define void @TEST_basic_types() {
%1 = call i32 @test(i8* getelementptr inbounds ([1 x i8], [1 x i8]* @.str, i64 0, i64 0), i8* getelementptr inbounds ([12 x i8], [12 x i8]* @.str.1, i64 0, i64 0))
%2 = call i32 @test(i8* getelementptr inbounds ([14 x i8], [14 x i8]* @.str.2, i64 0, i64 0), i8* getelementptr inbounds ([33 x i8], [33 x i8]* @.str.3, i64 0, i64 0))
%3 = call i32 @test(i8* getelementptr inbounds ([14 x i8], [14 x i8]* @.str.2, i64 0, i64 0), i8* getelementptr inbounds ([39 x i8], [39 x i8]* @.str.4, i64 0, i64 0))
%4 = call i32 @test(i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.5, i64 0, i64 0), i8* getelementptr inbounds ([34 x i8], [34 x i8]* @.str.6, i64 0, i64 0))
%5 = call i32 @test(i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.7, i64 0, i64 0), i8* getelementptr inbounds ([50 x i8], [50 x i8]* @.str.8, i64 0, i64 0))
%6 = call i32 @test(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.9, i64 0, i64 0), i8* getelementptr inbounds ([54 x i8], [54 x i8]* @.str.10, i64 0, i64 0))
%7 = call i32 @test(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.11, i64 0, i64 0), i8* getelementptr inbounds ([47 x i8], [47 x i8]* @.str.12, i64 0, i64 0))
%8 = call i32 @test(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.13, i64 0, i64 0), i8* getelementptr inbounds ([47 x i8], [47 x i8]* @.str.14, i64 0, i64 0))
%9 = call i32 @test(i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.15, i64 0, i64 0), i8* getelementptr inbounds ([49 x i8], [49 x i8]* @.str.16, i64 0, i64 0))
%10 = call i32 @test(i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.15, i64 0, i64 0), i8* getelementptr inbounds ([49 x i8], [49 x i8]* @.str.16, i64 0, i64 0))
%11 = call i32 @test(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.17, i64 0, i64 0), i8* getelementptr inbounds ([35 x i8], [35 x i8]* @.str.18, i64 0, i64 0))
%12 = call i32 @test(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.19, i64 0, i64 0), i8* getelementptr inbounds ([35 x i8], [35 x i8]* @.str.20, i64 0, i64 0))
%13 = call i32 @test(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.21, i64 0, i64 0), i8* getelementptr inbounds ([35 x i8], [35 x i8]* @.str.22, i64 0, i64 0))
%14 = call i32 @test(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.23, i64 0, i64 0), i8* getelementptr inbounds ([35 x i8], [35 x i8]* @.str.24, i64 0, i64 0))
ret void
}

LLVM IR (-O2):
@.str = [1 x i8] zeroinitializer
@.str.1 = [12 x i8] c"main(){-1;}\00"
@.str.2 = [14 x i8] c"Hello, world!\00"
@.str.3 = [33 x i8] c"main(){printf(\22Hello, world!\22);}\00"
@.str.4 = [39 x i8] c"main(){printf(\22Hello, %s\22, \22world!\22);}\00"
@.str.5 = [2 x i8] c"3\00"
@.str.6 = [34 x i8] c"main(){int i=3; printf(\22%d\22, i);}\00"
@.str.7 = [2 x i8] c"6\00"
@.str.8 = [50 x i8] c"main(){int i=3; int j=0; j=i+3; printf(\22%d\22, j);}\00"
@.str.9 = [3 x i8] c"50\00"
@.str.10 = [54 x i8] c"main(){int i=atoi(\2250\22); int j = i; printf(\22%d\22, j);}\00"
@.str.11 = [3 x i8] c"15\00"
@.str.12 = [47 x i8] c"main(){int i=3; int j=i+5+7; printf(\22%d\22, j);}\00"
@.str.13 = [3 x i8] c"-5\00"
@.str.14 = [47 x i8] c"main(){int i=3; int j=5-i-7; printf(\22%d\22, j);}\00"
@.str.15 = [2 x i8] c"0\00"
@.str.16 = [49 x i8] c"main(){int i=3; int j=5-i-7; printf(\22%d\22, j+5);}\00"
@.str.17 = [4 x i8] c"3.5\00"
@.str.18 = [35 x i8] c"main(){printf(\22%.1f\22, 3.0 + 0.5);}\00"
@.str.19 = [4 x i8] c"2.5\00"
@.str.20 = [35 x i8] c"main(){printf(\22%.1f\22, 3.0 - 0.5);}\00"
@.str.21 = [4 x i8] c"9.9\00"
@.str.22 = [35 x i8] c"main(){printf(\22%.1f\22, 1.1 * 9.0);}\00"
@.str.23 = [4 x i8] c"3.0\00"
@.str.24 = [35 x i8] c"main(){printf(\22%.1f\22, 9.9 / 3.3);}\00"
define void @TEST_basic_types() {
%1 = tail call i32 @test(i8* getelementptr inbounds ([1 x i8], [1 x i8]* @.str, i64 0, i64 0), i8* getelementptr inbounds ([12 x i8], [12 x i8]* @.str.1, i64 0, i64 0))
%2 = tail call i32 @test(i8* getelementptr inbounds ([14 x i8], [14 x i8]* @.str.2, i64 0, i64 0), i8* getelementptr inbounds ([33 x i8], [33 x i8]* @.str.3, i64 0, i64 0))
%3 = tail call i32 @test(i8* getelementptr inbounds ([14 x i8], [14 x i8]* @.str.2, i64 0, i64 0), i8* getelementptr inbounds ([39 x i8], [39 x i8]* @.str.4, i64 0, i64 0))
%4 = tail call i32 @test(i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.5, i64 0, i64 0), i8* getelementptr inbounds ([34 x i8], [34 x i8]* @.str.6, i64 0, i64 0))
%5 = tail call i32 @test(i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.7, i64 0, i64 0), i8* getelementptr inbounds ([50 x i8], [50 x i8]* @.str.8, i64 0, i64 0))
%6 = tail call i32 @test(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.9, i64 0, i64 0), i8* getelementptr inbounds ([54 x i8], [54 x i8]* @.str.10, i64 0, i64 0))
%7 = tail call i32 @test(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.11, i64 0, i64 0), i8* getelementptr inbounds ([47 x i8], [47 x i8]* @.str.12, i64 0, i64 0))
%8 = tail call i32 @test(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.13, i64 0, i64 0), i8* getelementptr inbounds ([47 x i8], [47 x i8]* @.str.14, i64 0, i64 0))
%9 = tail call i32 @test(i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.15, i64 0, i64 0), i8* getelementptr inbounds ([49 x i8], [49 x i8]* @.str.16, i64 0, i64 0))
%10 = tail call i32 @test(i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.15, i64 0, i64 0), i8* getelementptr inbounds ([49 x i8], [49 x i8]* @.str.16, i64 0, i64 0))
%11 = tail call i32 @test(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.17, i64 0, i64 0), i8* getelementptr inbounds ([35 x i8], [35 x i8]* @.str.18, i64 0, i64 0))
%12 = tail call i32 @test(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.19, i64 0, i64 0), i8* getelementptr inbounds ([35 x i8], [35 x i8]* @.str.20, i64 0, i64 0))
%13 = tail call i32 @test(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.21, i64 0, i64 0), i8* getelementptr inbounds ([35 x i8], [35 x i8]* @.str.22, i64 0, i64 0))
%14 = tail call i32 @test(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.23, i64 0, i64 0), i8* getelementptr inbounds ([35 x i8], [35 x i8]* @.str.24, i64 0, i64 0))
ret void
}