#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 /*<<< orphan*/ puts(char *);
int main(int argc, char *argv[]) {
  puts("Hello world!");
  puts("Hello            World!");
  printf("%d\n", 12);
  printf("%d, %d: %d\n", 42, 24, 12);
  printf("%c", 'a');
  printf("%c", '\\');
  printf("%c\n", '\'');
  printf("%c", 'a');
  printf("%c", '\t');
  printf("%c", 'b');
  printf("%c", '\n');
  puts("Helllo\tWorld!\"Bonjour\n\\");
  printf("%c%c%c%c\n", 'a', 'c', '\b', 'b');
  printf("ac\bb\n");
  printf("%d\n", -42);
  printf("%f\n", -3.141592);
  printf("%d\n", - -42);
  printf("%d\n", - - -42);
  return 0;
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
movl   $0x0,-0x4(%rbp)
mov    %edi,-0x8(%rbp)
mov    %rsi,-0x10(%rbp)
lea    0xecb(%rip),%rdi
call   1030 <puts@plt>
lea    0xecc(%rip),%rdi
call   1030 <puts@plt>
lea    0xee0(%rip),%rdi
mov    $0xc,%esi
mov    $0x0,%al
call   1040 <printf@plt>
lea    0xec5(%rip),%rdi
mov    $0x2a,%esi
mov    $0x18,%edx
mov    $0xc,%ecx
mov    $0x0,%al
call   1040 <printf@plt>
lea    0xeb4(%rip),%rdi
mov    $0x61,%esi
mov    $0x0,%al
call   1040 <printf@plt>
lea    0xea1(%rip),%rdi
mov    $0x5c,%esi
mov    $0x0,%al
call   1040 <printf@plt>
lea    0xeaf(%rip),%rdi
mov    $0x27,%esi
mov    $0x0,%al
call   1040 <printf@plt>
lea    0xe7b(%rip),%rdi
mov    $0x61,%esi
mov    $0x0,%al
call   1040 <printf@plt>
lea    0xe68(%rip),%rdi
mov    $0x9,%esi
mov    $0x0,%al
call   1040 <printf@plt>
lea    0xe55(%rip),%rdi
mov    $0x62,%esi
mov    $0x0,%al
call   1040 <printf@plt>
lea    0xe42(%rip),%rdi
mov    $0xa,%esi
mov    $0x0,%al
call   1040 <printf@plt>
lea    0xe32(%rip),%rdi
call   1030 <puts@plt>
lea    0xe3e(%rip),%rdi
mov    $0x61,%esi
mov    $0x63,%edx
mov    $0x8,%ecx
mov    $0x62,%r8d
mov    $0x0,%al
call   1040 <printf@plt>
lea    0xe25(%rip),%rdi
mov    $0x0,%al
call   1040 <printf@plt>
lea    0xdee(%rip),%rdi
mov    $0xffffffd6,%esi
mov    $0x0,%al
call   1040 <printf@plt>
lea    0xe0a(%rip),%rdi
movsd  0xd9e(%rip),%xmm0
mov    $0x1,%al
call   1040 <printf@plt>
lea    0xdc5(%rip),%rdi
mov    $0x2a,%esi
mov    $0x0,%al
call   1040 <printf@plt>
lea    0xdb2(%rip),%rdi
mov    $0xffffffd6,%esi
mov    $0x0,%al
call   1040 <printf@plt>
xor    %eax,%eax
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %rbx
lea    0xed0(%rip),%rdi
call   1040 <puts@plt>
lea    0xed1(%rip),%rdi
call   1040 <puts@plt>
lea    0xee5(%rip),%rbx
mov    %rbx,%rdi
mov    $0xc,%esi
xor    %eax,%eax
call   1050 <printf@plt>
lea    0xec7(%rip),%rdi
mov    $0x2a,%esi
mov    $0x18,%edx
mov    $0xc,%ecx
xor    %eax,%eax
call   1050 <printf@plt>
mov    $0x61,%edi
call   1030 <putchar@plt>
mov    $0x5c,%edi
call   1030 <putchar@plt>
lea    0xec0(%rip),%rdi
mov    $0x27,%esi
xor    %eax,%eax
call   1050 <printf@plt>
mov    $0x61,%edi
call   1030 <putchar@plt>
mov    $0x9,%edi
call   1030 <putchar@plt>
mov    $0x62,%edi
call   1030 <putchar@plt>
mov    $0xa,%edi
call   1030 <putchar@plt>
lea    0xe67(%rip),%rdi
call   1040 <puts@plt>
lea    0xe73(%rip),%rdi
mov    $0x61,%esi
mov    $0x63,%edx
mov    $0x8,%ecx
mov    $0x62,%r8d
xor    %eax,%eax
call   1050 <printf@plt>
lea    0xe5e(%rip),%rdi
call   1040 <puts@plt>
mov    %rbx,%rdi
mov    $0xffffffd6,%esi
xor    %eax,%eax
call   1050 <printf@plt>
lea    0xe3f(%rip),%rdi
movsd  0xddc(%rip),%xmm0
mov    $0x1,%al
call   1050 <printf@plt>
mov    %rbx,%rdi
mov    $0x2a,%esi
xor    %eax,%eax
call   1050 <printf@plt>
mov    %rbx,%rdi
mov    $0xffffffd6,%esi
xor    %eax,%eax
call   1050 <printf@plt>
xor    %eax,%eax
pop    %rbx
ret

LLVM IR (-O0):
@.str = [13 x i8] c"Hello world!\00"
@.str.1 = [24 x i8] c"Hello World!\00"
@.str.2 = [4 x i8] c"%d\0A\00"
@.str.3 = [12 x i8] c"%d, %d: %d\0A\00"
@.str.4 = [3 x i8] c"%c\00"
@.str.5 = [4 x i8] c"%c\0A\00"
@.str.6 = [24 x i8] c"Helllo\09World!\22Bonjour\0A\\\00"
@.str.7 = [10 x i8] c"%c%c%c%c\0A\00"
@.str.8 = [6 x i8] c"ac\08b\0A\00"
@.str.9 = [4 x i8] c"%f\0A\00"
define i32 @main(i32 %0, i8** %1) {
%3 = alloca i32
%4 = alloca i32
%5 = alloca i8**
store i32 0, i32* %3
store i32 %0, i32* %4
store i8** %1, i8*** %5
%6 = call i32 @puts(i8* getelementptr inbounds ([13 x i8], [13 x i8]* @.str, i64 0, i64 0))
%7 = call i32 @puts(i8* getelementptr inbounds ([24 x i8], [24 x i8]* @.str.1, i64 0, i64 0))
%8 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.2, i64 0, i64 0), i32 12)
%9 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([12 x i8], [12 x i8]* @.str.3, i64 0, i64 0), i32 42, i32 24, i32 12)
%10 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.4, i64 0, i64 0), i32 97)
%11 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.4, i64 0, i64 0), i32 92)
%12 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.5, i64 0, i64 0), i32 39)
%13 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.4, i64 0, i64 0), i32 97)
%14 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.4, i64 0, i64 0), i32 9)
%15 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.4, i64 0, i64 0), i32 98)
%16 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.4, i64 0, i64 0), i32 10)
%17 = call i32 @puts(i8* getelementptr inbounds ([24 x i8], [24 x i8]* @.str.6, i64 0, i64 0))
%18 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([10 x i8], [10 x i8]* @.str.7, i64 0, i64 0), i32 97, i32 99, i32 8, i32 98)
%19 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.8, i64 0, i64 0))
%20 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.2, i64 0, i64 0), i32 -42)
%21 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.9, i64 0, i64 0), double 0xC00921FAFC8B007A)
%22 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.2, i64 0, i64 0), i32 42)
%23 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.2, i64 0, i64 0), i32 -42)
ret i32 0
}

LLVM IR (-O2):
@.str = [13 x i8] c"Hello world!\00"
@.str.1 = [24 x i8] c"Hello World!\00"
@.str.2 = [4 x i8] c"%d\0A\00"
@.str.3 = [12 x i8] c"%d, %d: %d\0A\00"
@.str.5 = [4 x i8] c"%c\0A\00"
@.str.6 = [24 x i8] c"Helllo\09World!\22Bonjour\0A\\\00"
@.str.7 = [10 x i8] c"%c%c%c%c\0A\00"
@.str.9 = [4 x i8] c"%f\0A\00"
@str = [5 x i8] c"ac\08b\00"
define i32 @main(i32 %0, i8** nocapture readnone %1) {
%3 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([13 x i8], [13 x i8]* @.str, i64 0, i64 0))
%4 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([24 x i8], [24 x i8]* @.str.1, i64 0, i64 0))
%5 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([4 x i8], [4 x i8]* @.str.2, i64 0, i64 0), i32 12)
%6 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([12 x i8], [12 x i8]* @.str.3, i64 0, i64 0), i32 42, i32 24, i32 12)
%7 = tail call i32 @putchar(i32 97)
%8 = tail call i32 @putchar(i32 92)
%9 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([4 x i8], [4 x i8]* @.str.5, i64 0, i64 0), i32 39)
%10 = tail call i32 @putchar(i32 97)
%11 = tail call i32 @putchar(i32 9)
%12 = tail call i32 @putchar(i32 98)
%13 = tail call i32 @putchar(i32 10)
%14 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([24 x i8], [24 x i8]* @.str.6, i64 0, i64 0))
%15 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([10 x i8], [10 x i8]* @.str.7, i64 0, i64 0), i32 97, i32 99, i32 8, i32 98)
%16 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([5 x i8], [5 x i8]* @str, i64 0, i64 0))
%17 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([4 x i8], [4 x i8]* @.str.2, i64 0, i64 0), i32 -42)
%18 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([4 x i8], [4 x i8]* @.str.9, i64 0, i64 0), double 0xC00921FAFC8B007A)
%19 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([4 x i8], [4 x i8]* @.str.2, i64 0, i64 0), i32 42)
%20 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([4 x i8], [4 x i8]* @.str.2, i64 0, i64 0), i32 -42)
ret i32 0
}