#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*/ printf(char *, ...);
int main(void) {
  printf("String 1"
         "String 2\n");
  printf("sizeof(float) = %zu %zu\n", sizeof(float), sizeof(1.2f));
  printf("sizeof(double) = %zu %zu\n", sizeof(double), sizeof(1.2));
  printf("sizeof(long double) = %zu %zu\n", sizeof(long double), sizeof(1.2L));
  printf("sizeof(int) = %zu %zu\n", sizeof(int), sizeof(1));
  printf("sizeof(unsigned int) = %zu %zu\n", sizeof(unsigned int), sizeof(1U));
  printf("sizeof(long) = %zu %zu\n", sizeof(long), sizeof(1L));
  printf("sizeof(unsigned long) = %zu %zu\n", sizeof(unsigned long),
         sizeof(1UL));
  char string[] = "hello\x21";
  printf("%s\n", string);
  int decimal = 10;
  int octal = 012;
  int hexadecimal = 0x0a;
  int binary = 0b1010;
  printf("%d %d %d %d\n", decimal, octal, hexadecimal, binary);
  return 0;
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x20,%rsp
movl   $0x0,-0x4(%rbp)
lea    0xeda(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0xede(%rip),%rdi
mov    $0x4,%edx
mov    %rdx,%rsi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0xee1(%rip),%rdi
mov    $0x8,%edx
mov    %rdx,%rsi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0xee5(%rip),%rdi
mov    $0x10,%edx
mov    %rdx,%rsi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0xeee(%rip),%rdi
mov    $0x4,%edx
mov    %rdx,%rsi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0xeef(%rip),%rdi
mov    $0x4,%edx
mov    %rdx,%rsi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0xef9(%rip),%rdi
mov    $0x8,%edx
mov    %rdx,%rsi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0xefb(%rip),%rdi
mov    $0x8,%edx
mov    %rdx,%rsi
mov    $0x0,%al
call   1030 <printf@plt>
mov    0xf07(%rip),%eax
mov    %eax,-0xb(%rbp)
mov    0xf01(%rip),%ax
mov    %ax,-0x7(%rbp)
mov    0xef9(%rip),%al
mov    %al,-0x5(%rbp)
lea    -0xb(%rbp),%rsi
lea    0xeec(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
movl   $0xa,-0x10(%rbp)
movl   $0xa,-0x14(%rbp)
movl   $0xa,-0x18(%rbp)
movl   $0xa,-0x1c(%rbp)
mov    -0x10(%rbp),%esi
mov    -0x14(%rbp),%edx
mov    -0x18(%rbp),%ecx
mov    -0x1c(%rbp),%r8d
lea    0xeb9(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
xor    %eax,%eax
add    $0x20,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %rax
lea    0xfae(%rip),%rdi
call   1030 <puts@plt>
lea    0xecc(%rip),%rdi
mov    $0x4,%esi
mov    $0x4,%edx
xor    %eax,%eax
call   1040 <printf@plt>
lea    0xecd(%rip),%rdi
mov    $0x8,%esi
mov    $0x8,%edx
xor    %eax,%eax
call   1040 <printf@plt>
lea    0xecf(%rip),%rdi
mov    $0x10,%esi
mov    $0x10,%edx
xor    %eax,%eax
call   1040 <printf@plt>
lea    0xed6(%rip),%rdi
mov    $0x4,%esi
mov    $0x4,%edx
xor    %eax,%eax
call   1040 <printf@plt>
lea    0xed5(%rip),%rdi
mov    $0x4,%esi
mov    $0x4,%edx
xor    %eax,%eax
call   1040 <printf@plt>
lea    0xedd(%rip),%rdi
mov    $0x8,%esi
mov    $0x8,%edx
xor    %eax,%eax
call   1040 <printf@plt>
lea    0xedd(%rip),%rdi
mov    $0x8,%esi
mov    $0x8,%edx
xor    %eax,%eax
call   1040 <printf@plt>
movl   $0x216f6c,0x3(%rsp)
movl   $0x6c6c6568,(%rsp)
mov    %rsp,%rdi
call   1030 <puts@plt>
lea    0xed6(%rip),%rdi
mov    $0xa,%esi
mov    $0xa,%edx
mov    $0xa,%ecx
mov    $0xa,%r8d
xor    %eax,%eax
call   1040 <printf@plt>
xor    %eax,%eax
pop    %rcx
ret

LLVM IR (-O0):
@.str = [18 x i8] c"String 1String 2\0A\00"
@.str.1 = [25 x i8] c"sizeof(float) = %zu %zu\0A\00"
@.str.2 = [26 x i8] c"sizeof(double) = %zu %zu\0A\00"
@.str.3 = [31 x i8] c"sizeof(long double) = %zu %zu\0A\00"
@.str.4 = [23 x i8] c"sizeof(int) = %zu %zu\0A\00"
@.str.5 = [32 x i8] c"sizeof(unsigned int) = %zu %zu\0A\00"
@.str.6 = [24 x i8] c"sizeof(long) = %zu %zu\0A\00"
@.str.7 = [33 x i8] c"sizeof(unsigned long) = %zu %zu\0A\00"
@__const.main.string = [7 x i8] c"hello!\00"
@.str.8 = [4 x i8] c"%s\0A\00"
@.str.9 = [13 x i8] c"%d %d %d %d\0A\00"
define i32 @main() {
%1 = alloca i32
%2 = alloca [7 x i8]
%3 = alloca i32
%4 = alloca i32
%5 = alloca i32
%6 = alloca i32
store i32 0, i32* %1
%7 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([18 x i8], [18 x i8]* @.str, i64 0, i64 0))
%8 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([25 x i8], [25 x i8]* @.str.1, i64 0, i64 0), i64 4, i64 4)
%9 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([26 x i8], [26 x i8]* @.str.2, i64 0, i64 0), i64 8, i64 8)
%10 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([31 x i8], [31 x i8]* @.str.3, i64 0, i64 0), i64 16, i64 16)
%11 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([23 x i8], [23 x i8]* @.str.4, i64 0, i64 0), i64 4, i64 4)
%12 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([32 x i8], [32 x i8]* @.str.5, i64 0, i64 0), i64 4, i64 4)
%13 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([24 x i8], [24 x i8]* @.str.6, i64 0, i64 0), i64 8, i64 8)
%14 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([33 x i8], [33 x i8]* @.str.7, i64 0, i64 0), i64 8, i64 8)
%15 = bitcast [7 x i8]* %2 to i8*
%16 = getelementptr inbounds [7 x i8], [7 x i8]* %2, i64 0, i64 0
%17 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.8, i64 0, i64 0), i8* %16)
store i32 10, i32* %3
store i32 10, i32* %4
store i32 10, i32* %5
store i32 10, i32* %6
%18 = load i32, i32* %3
%19 = load i32, i32* %4
%20 = load i32, i32* %5
%21 = load i32, i32* %6
%22 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([13 x i8], [13 x i8]* @.str.9, i64 0, i64 0), i32 %18, i32 %19, i32 %20, i32 %21)
ret i32 0
}

LLVM IR (-O2):
@.str.1 = [25 x i8] c"sizeof(float) = %zu %zu\0A\00"
@.str.2 = [26 x i8] c"sizeof(double) = %zu %zu\0A\00"
@.str.3 = [31 x i8] c"sizeof(long double) = %zu %zu\0A\00"
@.str.4 = [23 x i8] c"sizeof(int) = %zu %zu\0A\00"
@.str.5 = [32 x i8] c"sizeof(unsigned int) = %zu %zu\0A\00"
@.str.6 = [24 x i8] c"sizeof(long) = %zu %zu\0A\00"
@.str.7 = [33 x i8] c"sizeof(unsigned long) = %zu %zu\0A\00"
@__const.main.string = [7 x i8] c"hello!\00"
@.str.9 = [13 x i8] c"%d %d %d %d\0A\00"
@str = [17 x i8] c"String 1String 2\00"
define i32 @main() {
%1 = alloca [7 x i8]
%2 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([17 x i8], [17 x i8]* @str, i64 0, i64 0))
%3 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([25 x i8], [25 x i8]* @.str.1, i64 0, i64 0), i64 4, i64 4)
%4 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([26 x i8], [26 x i8]* @.str.2, i64 0, i64 0), i64 8, i64 8)
%5 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([31 x i8], [31 x i8]* @.str.3, i64 0, i64 0), i64 16, i64 16)
%6 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([23 x i8], [23 x i8]* @.str.4, i64 0, i64 0), i64 4, i64 4)
%7 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([32 x i8], [32 x i8]* @.str.5, i64 0, i64 0), i64 4, i64 4)
%8 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([24 x i8], [24 x i8]* @.str.6, i64 0, i64 0), i64 8, i64 8)
%9 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([33 x i8], [33 x i8]* @.str.7, i64 0, i64 0), i64 8, i64 8)
%10 = getelementptr inbounds [7 x i8], [7 x i8]* %1, i64 0, i64 0
%11 = call i32 @puts(i8* %10)
%12 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([13 x i8], [13 x i8]* @.str.9, i64 0, i64 0), i32 10, i32 10, i32 10, i32 10)
ret i32 0
}