#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 INT_MAX;
int INT_MIN;
int /*<<< orphan*/ exit(int);
int printf(char *, ...);
int main() {
  if (printf("asdf") != 4) {
    exit(1);
  }
  if (printf("\n") != 1) {
    exit(2);
  }
  if (printf("") != 0) {
    exit(3);
  }
  if (printf("asdf%ca\n", 't') != 7) {
    exit(4);
  }
  if (printf("%c%c %c%ca%c\n", 'h', 'e', 'l', 'l', 'o') != 8) {
    exit(5);
  }
  if (printf("%%\n") != 2) {
    exit(6);
  }
  if (printf("%%%%%c%%\n", 'h') != 5) {
    exit(7);
  }
  if (printf("%s %s\n", "hello", "world") != 12) {
    exit(8);
  }
  int val;
  if (printf("asdfasdf %nasdf\n", &val) != 14 || val != 9) {
    exit(9);
  }
  if (printf("%n", &val) != 0 || val != 0) {
    exit(10);
  }
  if (printf("%d\n", 12345) != 6) {
    exit(11);
  }
  if (printf("%d\n", -12345) != 7) {
    exit(12);
  }
  if (printf("%d\n", INT_MIN) != 12) {
    exit(13);
  }
  if (printf("%d\n", INT_MIN + 1) != 12) {
    exit(14);
  }
  if (printf("%d\n", 0) != 2) {
    exit(15);
  }
  if (printf("%d %d %d %d %d\n", 0, 1, 2, 3, 4) != 10) {
    exit(16);
  }
  if (printf("%i %i %i %i %i\n", 0, 1, 2, -3, 4) != 11) {
    exit(16);
  }
  if (printf("%o\n", 123) != 4) {
    exit(17);
  }
  if (printf("%o\n", 0) != 2) {
    exit(18);
  }
  if (printf("%o\n", -5) != 12) {
    exit(19);
  }
  if (printf("%o\n", INT_MAX) != 12) {
    exit(20);
  }
  if (printf("%o\n", INT_MIN) != 12) {
    exit(21);
  }
  if (printf("%o\n", INT_MIN + 1) != 12) {
    exit(22);
  }
  if (printf("%X\n", 5434531) != 7) {
    exit(23);
  }
  if (printf("%X\n", 0) != 2) {
    exit(24);
  }
  if (printf("%X %X\n", INT_MAX, INT_MIN) != 18) {
    exit(25);
  }
  if (printf("%x\n", 5434531) != 7) {
    exit(23);
  }
  if (printf("%x\n", 0) != 2) {
    exit(24);
  }
  if (printf("%x %x\n", INT_MAX, INT_MIN) != 18) {
    exit(25);
  }
  if (printf("%u %u %u %u\n", INT_MAX, INT_MIN, 0, 45345123) != 33) {
    exit(26);
  }
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
lea    0xed1(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
cmp    $0x4,%eax
je     1149 <main+0x29>
mov    $0x1,%edi
call   1040 <exit@plt>
lea    0xed4(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
cmp    $0x1,%eax
je     116a <main+0x4a>
mov    $0x2,%edi
call   1040 <exit@plt>
lea    0xeb4(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
cmp    $0x0,%eax
je     118b <main+0x6b>
mov    $0x3,%edi
call   1040 <exit@plt>
lea    0xe73(%rip),%rdi
mov    $0x74,%esi
mov    $0x0,%al
call   1030 <printf@plt>
cmp    $0x7,%eax
je     11b1 <main+0x91>
mov    $0x4,%edi
call   1040 <exit@plt>
lea    0xe56(%rip),%rdi
mov    $0x68,%esi
mov    $0x65,%edx
mov    $0x6c,%r8d
mov    $0x6f,%r9d
mov    %r8d,%ecx
mov    $0x0,%al
call   1030 <printf@plt>
cmp    $0x8,%eax
je     11eb <main+0xcb>
mov    $0x5,%edi
call   1040 <exit@plt>
lea    0xe30(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
cmp    $0x2,%eax
je     120c <main+0xec>
mov    $0x6,%edi
call   1040 <exit@plt>
lea    0xe09(%rip),%rdi
mov    $0x68,%esi
mov    $0x0,%al
call   1030 <printf@plt>
cmp    $0x5,%eax
je     1232 <main+0x112>
mov    $0x7,%edi
call   1040 <exit@plt>
lea    0xded(%rip),%rdi
lea    0xded(%rip),%rsi
lea    0xdec(%rip),%rdx
mov    $0x0,%al
call   1030 <printf@plt>
cmp    $0xc,%eax
je     1261 <main+0x141>
mov    $0x8,%edi
call   1040 <exit@plt>
lea    0xdd1(%rip),%rdi
lea    -0x4(%rbp),%rsi
mov    $0x0,%al
call   1030 <printf@plt>
cmp    $0xe,%eax
jne    1286 <main+0x166>
cmpl   $0x9,-0x4(%rbp)
je     1290 <main+0x170>
mov    $0x9,%edi
call   1040 <exit@plt>
lea    0xdb3(%rip),%rdi
lea    -0x4(%rbp),%rsi
mov    $0x0,%al
call   1030 <printf@plt>
cmp    $0x0,%eax
jne    12b5 <main+0x195>
cmpl   $0x0,-0x4(%rbp)
je     12bf <main+0x19f>
mov    $0xa,%edi
call   1040 <exit@plt>
lea    0xd93(%rip),%rdi
mov    $0x3039,%esi
mov    $0x0,%al
call   1030 <printf@plt>
cmp    $0x6,%eax
je     12e5 <main+0x1c5>
mov    $0xb,%edi
call   1040 <exit@plt>
lea    0xd6d(%rip),%rdi
mov    $0xffffcfc7,%esi
mov    $0x0,%al
call   1030 <printf@plt>
cmp    $0x7,%eax
je     130b <main+0x1eb>
mov    $0xc,%edi
call   1040 <exit@plt>
mov    0x2cce(%rip),%rax
mov    (%rax),%esi
lea    0xd3e(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
cmp    $0xc,%eax
je     1335 <main+0x215>
mov    $0xd,%edi
call   1040 <exit@plt>
mov    0x2ca4(%rip),%rax
mov    (%rax),%esi
add    $0x1,%esi
lea    0xd11(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
cmp    $0xc,%eax
je     1362 <main+0x242>
mov    $0xe,%edi
call   1040 <exit@plt>
lea    0xcf0(%rip),%rdi
xor    %esi,%esi
mov    $0x0,%al
call   1030 <printf@plt>
cmp    $0x2,%eax
je     1385 <main+0x265>
mov    $0xf,%edi
call   1040 <exit@plt>
lea    0xcc1(%rip),%rdi
xor    %esi,%esi
mov    $0x1,%edx
mov    $0x2,%ecx
mov    $0x3,%r8d
mov    $0x4,%r9d
mov    $0x0,%al
call   1030 <printf@plt>
cmp    $0xa,%eax
je     13be <main+0x29e>
mov    $0x10,%edi
call   1040 <exit@plt>
lea    0xc98(%rip),%rdi
xor    %esi,%esi
mov    $0x1,%edx
mov    $0x2,%ecx
mov    $0xfffffffd,%r8d
mov    $0x4,%r9d
mov    $0x0,%al
call   1030 <printf@plt>
cmp    $0xb,%eax
je     13f7 <main+0x2d7>
mov    $0x10,%edi
call   1040 <exit@plt>
lea    0xc6f(%rip),%rdi
mov    $0x7b,%esi
mov    $0x0,%al
call   1030 <printf@plt>
cmp    $0x4,%eax
je     141d <main+0x2fd>
mov    $0x11,%edi
call   1040 <exit@plt>
lea    0xc49(%rip),%rdi
xor    %esi,%esi
mov    $0x0,%al
call   1030 <printf@plt>
cmp    $0x2,%eax
je     1440 <main+0x320>
mov    $0x12,%edi
call   1040 <exit@plt>
lea    0xc26(%rip),%rdi
mov    $0xfffffffb,%esi
mov    $0x0,%al
call   1030 <printf@plt>
cmp    $0xc,%eax
je     1466 <main+0x346>
mov    $0x13,%edi
call   1040 <exit@plt>
mov    0x2b7b(%rip),%rax
mov    (%rax),%esi
lea    0xbf7(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
cmp    $0xc,%eax
je     1490 <main+0x370>
mov    $0x14,%edi
call   1040 <exit@plt>
mov    0x2b49(%rip),%rax
mov    (%rax),%esi
lea    0xbcd(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
cmp    $0xc,%eax
je     14ba <main+0x39a>
mov    $0x15,%edi
call   1040 <exit@plt>
mov    0x2b1f(%rip),%rax
mov    (%rax),%esi
add    $0x1,%esi
lea    0xba0(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
cmp    $0xc,%eax
je     14e7 <main+0x3c7>
mov    $0x16,%edi
call   1040 <exit@plt>
lea    0xb86(%rip),%rdi
mov    $0x52eca3,%esi
mov    $0x0,%al
call   1030 <printf@plt>
cmp    $0x7,%eax
je     150d <main+0x3ed>
mov    $0x17,%edi
call   1040 <exit@plt>
lea    0xb60(%rip),%rdi
xor    %esi,%esi
mov    $0x0,%al
call   1030 <printf@plt>
cmp    $0x2,%eax
je     1530 <main+0x410>
mov    $0x18,%edi
call   1040 <exit@plt>
mov    0x2ab1(%rip),%rax
mov    (%rax),%esi
mov    0x2aa0(%rip),%rax
mov    (%rax),%edx
lea    0xb28(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
cmp    $0x12,%eax
je     1563 <main+0x443>
mov    $0x19,%edi
call   1040 <exit@plt>
lea    0xb11(%rip),%rdi
mov    $0x52eca3,%esi
mov    $0x0,%al
call   1030 <printf@plt>
cmp    $0x7,%eax
je     1589 <main+0x469>
mov    $0x17,%edi
call   1040 <exit@plt>
lea    0xaeb(%rip),%rdi
xor    %esi,%esi
mov    $0x0,%al
call   1030 <printf@plt>
cmp    $0x2,%eax
je     15ac <main+0x48c>
mov    $0x18,%edi
call   1040 <exit@plt>
mov    0x2a35(%rip),%rax
mov    (%rax),%esi
mov    0x2a24(%rip),%rax
mov    (%rax),%edx
lea    0xab3(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
cmp    $0x12,%eax
je     15df <main+0x4bf>
mov    $0x19,%edi
call   1040 <exit@plt>
mov    0x2a02(%rip),%rax
mov    (%rax),%esi
mov    0x29f1(%rip),%rax
mov    (%rax),%edx
lea    0xa87(%rip),%rdi
xor    %ecx,%ecx
mov    $0x2b3e963,%r8d
mov    $0x0,%al
call   1030 <printf@plt>
cmp    $0x21,%eax
je     161a <main+0x4fa>
mov    $0x1a,%edi
call   1040 <exit@plt>
xor    %eax,%eax
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %r14
push   %rbx
push   %rax
lea    0xed5(%rip),%rdi
xor    %eax,%eax
call   1030 <printf@plt>
cmp    $0x4,%eax
jne    14bd <main+0x39d>
lea    0xee2(%rip),%rdi
xor    %eax,%eax
call   1030 <printf@plt>
cmp    $0x1,%eax
jne    14c7 <main+0x3a7>
lea    0xeac(%rip),%rdi
mov    $0x74,%esi
xor    %eax,%eax
call   1030 <printf@plt>
cmp    $0x7,%eax
jne    14d1 <main+0x3b1>
lea    0xe99(%rip),%rdi
mov    $0x68,%esi
mov    $0x65,%edx
mov    $0x6c,%ecx
mov    $0x6c,%r8d
mov    $0x6f,%r9d
xor    %eax,%eax
call   1030 <printf@plt>
cmp    $0x8,%eax
jne    14db <main+0x3bb>
lea    0xe7b(%rip),%rdi
xor    %eax,%eax
call   1030 <printf@plt>
cmp    $0x2,%eax
jne    14e5 <main+0x3c5>
lea    0xe5e(%rip),%rdi
mov    $0x68,%esi
xor    %eax,%eax
call   1030 <printf@plt>
cmp    $0x5,%eax
jne    14ef <main+0x3cf>
lea    0xe4c(%rip),%rdi
lea    0xe4c(%rip),%rsi
lea    0xe4b(%rip),%rdx
xor    %eax,%eax
call   1030 <printf@plt>
cmp    $0xc,%eax
jne    14f9 <main+0x3d9>
lea    0xe3a(%rip),%rdi
lea    0x4(%rsp),%rsi
xor    %eax,%eax
call   1030 <printf@plt>
cmp    $0xe,%eax
jne    1503 <main+0x3e3>
cmpl   $0x9,0x4(%rsp)
jne    1503 <main+0x3e3>
lea    0xe24(%rip),%rdi
lea    0x4(%rsp),%rsi
xor    %eax,%eax
call   1030 <printf@plt>
or     0x4(%rsp),%eax
jne    150d <main+0x3ed>
lea    0xe16(%rip),%rdi
mov    $0x3039,%esi
xor    %eax,%eax
call   1030 <printf@plt>
cmp    $0x6,%eax
jne    1517 <main+0x3f7>
lea    0xdfa(%rip),%rdi
mov    $0xffffcfc7,%esi
xor    %eax,%eax
call   1030 <printf@plt>
cmp    $0x7,%eax
jne    1521 <main+0x401>
mov    0x2d65(%rip),%r14
mov    (%r14),%esi
lea    0xdd4(%rip),%rdi
xor    %eax,%eax
call   1030 <printf@plt>
cmp    $0xc,%eax
jne    152b <main+0x40b>
mov    (%r14),%esi
add    $0x1,%esi
lea    0xdb7(%rip),%rdi
xor    %eax,%eax
call   1030 <printf@plt>
cmp    $0xc,%eax
jne    1535 <main+0x415>
lea    0xda0(%rip),%rdi
xor    %esi,%esi
xor    %eax,%eax
call   1030 <printf@plt>
cmp    $0x2,%eax
jne    153f <main+0x41f>
lea    0xd7b(%rip),%rdi
xor    %esi,%esi
mov    $0x1,%edx
mov    $0x2,%ecx
mov    $0x3,%r8d
mov    $0x4,%r9d
xor    %eax,%eax
call   1030 <printf@plt>
cmp    $0xa,%eax
jne    1495 <main+0x375>
lea    0xd5c(%rip),%rdi
xor    %esi,%esi
mov    $0x1,%edx
mov    $0x2,%ecx
mov    $0xfffffffd,%r8d
mov    $0x4,%r9d
xor    %eax,%eax
call   1030 <printf@plt>
cmp    $0xb,%eax
jne    1495 <main+0x375>
lea    0xd3d(%rip),%rdi
mov    $0x7b,%esi
xor    %eax,%eax
call   1030 <printf@plt>
cmp    $0x4,%eax
jne    1549 <main+0x429>
lea    0xd21(%rip),%rdi
xor    %esi,%esi
xor    %eax,%eax
call   1030 <printf@plt>
cmp    $0x2,%eax
jne    1553 <main+0x433>
lea    0xd08(%rip),%rdi
mov    $0xfffffffb,%esi
xor    %eax,%eax
call   1030 <printf@plt>
cmp    $0xc,%eax
jne    155d <main+0x43d>
mov    0x2c67(%rip),%rbx
mov    (%rbx),%esi
lea    0xce3(%rip),%rdi
xor    %eax,%eax
call   1030 <printf@plt>
cmp    $0xc,%eax
jne    1567 <main+0x447>
mov    (%r14),%esi
lea    0xcc9(%rip),%rdi
xor    %eax,%eax
call   1030 <printf@plt>
cmp    $0xc,%eax
jne    1571 <main+0x451>
mov    (%r14),%esi
add    $0x1,%esi
lea    0xcac(%rip),%rdi
xor    %eax,%eax
call   1030 <printf@plt>
cmp    $0xc,%eax
jne    157b <main+0x45b>
lea    0xc9c(%rip),%rdi
mov    $0x52eca3,%esi
xor    %eax,%eax
call   1030 <printf@plt>
cmp    $0x7,%eax
jne    149f <main+0x37f>
lea    0xc80(%rip),%rdi
xor    %esi,%esi
xor    %eax,%eax
call   1030 <printf@plt>
cmp    $0x2,%eax
jne    14a9 <main+0x389>
mov    (%rbx),%esi
mov    (%r14),%edx
lea    0xc5f(%rip),%rdi
xor    %eax,%eax
call   1030 <printf@plt>
cmp    $0x12,%eax
jne    14b3 <main+0x393>
lea    0xc52(%rip),%rdi
mov    $0x52eca3,%esi
xor    %eax,%eax
call   1030 <printf@plt>
cmp    $0x7,%eax
jne    149f <main+0x37f>
lea    0xc3a(%rip),%rdi
xor    %esi,%esi
xor    %eax,%eax
call   1030 <printf@plt>
cmp    $0x2,%eax
jne    14a9 <main+0x389>
mov    (%rbx),%esi
mov    (%r14),%edx
lea    0xc1d(%rip),%rdi
xor    %eax,%eax
call   1030 <printf@plt>
cmp    $0x12,%eax
jne    14b3 <main+0x393>
mov    (%rbx),%esi
mov    (%r14),%edx
lea    0xc0c(%rip),%rdi
xor    %ecx,%ecx
mov    $0x2b3e963,%r8d
xor    %eax,%eax
call   1030 <printf@plt>
cmp    $0x21,%eax
jne    1585 <main+0x465>
xor    %eax,%eax
add    $0x8,%rsp
pop    %rbx
pop    %r14
ret
mov    $0x10,%edi
call   1040 <exit@plt>
mov    $0x17,%edi
call   1040 <exit@plt>
mov    $0x18,%edi
call   1040 <exit@plt>
mov    $0x19,%edi
call   1040 <exit@plt>
mov    $0x1,%edi
call   1040 <exit@plt>
mov    $0x2,%edi
call   1040 <exit@plt>
mov    $0x4,%edi
call   1040 <exit@plt>
mov    $0x5,%edi
call   1040 <exit@plt>
mov    $0x6,%edi
call   1040 <exit@plt>
mov    $0x7,%edi
call   1040 <exit@plt>
mov    $0x8,%edi
call   1040 <exit@plt>
mov    $0x9,%edi
call   1040 <exit@plt>
mov    $0xa,%edi
call   1040 <exit@plt>
mov    $0xb,%edi
call   1040 <exit@plt>
mov    $0xc,%edi
call   1040 <exit@plt>
mov    $0xd,%edi
call   1040 <exit@plt>
mov    $0xe,%edi
call   1040 <exit@plt>
mov    $0xf,%edi
call   1040 <exit@plt>
mov    $0x11,%edi
call   1040 <exit@plt>
mov    $0x12,%edi
call   1040 <exit@plt>
mov    $0x13,%edi
call   1040 <exit@plt>
mov    $0x14,%edi
call   1040 <exit@plt>
mov    $0x15,%edi
call   1040 <exit@plt>
mov    $0x16,%edi
call   1040 <exit@plt>
mov    $0x1a,%edi
call   1040 <exit@plt>

LLVM IR (-O0):
@.str = [5 x i8] c"asdf\00"
@.str.1 = [2 x i8] c"\0A\00"
@.str.2 = [1 x i8] zeroinitializer
@.str.3 = [9 x i8] c"asdf%ca\0A\00"
@.str.4 = [14 x i8] c"%c%c %c%ca%c\0A\00"
@.str.5 = [4 x i8] c"%%\0A\00"
@.str.6 = [10 x i8] c"%%%%%c%%\0A\00"
@.str.7 = [7 x i8] c"%s %s\0A\00"
@.str.8 = [6 x i8] c"hello\00"
@.str.9 = [6 x i8] c"world\00"
@.str.10 = [17 x i8] c"asdfasdf %nasdf\0A\00"
@.str.11 = [3 x i8] c"%n\00"
@.str.12 = [4 x i8] c"%d\0A\00"
@INT_MIN = global i32 0
@.str.13 = [16 x i8] c"%d %d %d %d %d\0A\00"
@.str.14 = [16 x i8] c"%i %i %i %i %i\0A\00"
@.str.15 = [4 x i8] c"%o\0A\00"
@INT_MAX = global i32 0
@.str.16 = [4 x i8] c"%X\0A\00"
@.str.17 = [7 x i8] c"%X %X\0A\00"
@.str.18 = [4 x i8] c"%x\0A\00"
@.str.19 = [7 x i8] c"%x %x\0A\00"
@.str.20 = [13 x i8] c"%u %u %u %u\0A\00"
define i32 @main() {
%1 = alloca i32
%2 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str, i64 0, i64 0))
%3 = icmp ne i32 %2, 4
br i1 %3, label %4, label %6
4: ; preds = %0
%5 = call i32 @exit(i32 1)
unreachable
6: ; preds = %0
%7 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.1, i64 0, i64 0))
%8 = icmp ne i32 %7, 1
br i1 %8, label %9, label %11
9: ; preds = %6
%10 = call i32 @exit(i32 2)
unreachable
11: ; preds = %6
%12 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([1 x i8], [1 x i8]* @.str.2, i64 0, i64 0))
%13 = icmp ne i32 %12, 0
br i1 %13, label %14, label %16
14: ; preds = %11
%15 = call i32 @exit(i32 3)
unreachable
16: ; preds = %11
%17 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str.3, i64 0, i64 0), i32 116)
%18 = icmp ne i32 %17, 7
br i1 %18, label %19, label %21
19: ; preds = %16
%20 = call i32 @exit(i32 4)
unreachable
21: ; preds = %16
%22 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([14 x i8], [14 x i8]* @.str.4, i64 0, i64 0), i32 104, i32 101, i32 108, i32 108, i32 111)
%23 = icmp ne i32 %22, 8
br i1 %23, label %24, label %26
24: ; preds = %21
%25 = call i32 @exit(i32 5)
unreachable
26: ; preds = %21
%27 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.5, i64 0, i64 0))
%28 = icmp ne i32 %27, 2
br i1 %28, label %29, label %31
29: ; preds = %26
%30 = call i32 @exit(i32 6)
unreachable
31: ; preds = %26
%32 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([10 x i8], [10 x i8]* @.str.6, i64 0, i64 0), i32 104)
%33 = icmp ne i32 %32, 5
br i1 %33, label %34, label %36
34: ; preds = %31
%35 = call i32 @exit(i32 7)
unreachable
36: ; preds = %31
%37 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.7, i64 0, i64 0), i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.8, i64 0, i64 0), i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.9, i64 0, i64 0))
%38 = icmp ne i32 %37, 12
br i1 %38, label %39, label %41
39: ; preds = %36
%40 = call i32 @exit(i32 8)
unreachable
41: ; preds = %36
%42 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([17 x i8], [17 x i8]* @.str.10, i64 0, i64 0), i32* %1)
%43 = icmp ne i32 %42, 14
br i1 %43, label %47, label %44
44: ; preds = %41
%45 = load i32, i32* %1
%46 = icmp ne i32 %45, 9
br i1 %46, label %47, label %49
47: ; preds = %44, %41
%48 = call i32 @exit(i32 9)
unreachable
49: ; preds = %44
%50 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.11, i64 0, i64 0), i32* %1)
%51 = icmp ne i32 %50, 0
br i1 %51, label %55, label %52
52: ; preds = %49
%53 = load i32, i32* %1
%54 = icmp ne i32 %53, 0
br i1 %54, label %55, label %57
55: ; preds = %52, %49
%56 = call i32 @exit(i32 10)
unreachable
57: ; preds = %52
%58 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.12, i64 0, i64 0), i32 12345)
%59 = icmp ne i32 %58, 6
br i1 %59, label %60, label %62
60: ; preds = %57
%61 = call i32 @exit(i32 11)
unreachable
62: ; preds = %57
%63 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.12, i64 0, i64 0), i32 -12345)
%64 = icmp ne i32 %63, 7
br i1 %64, label %65, label %67
65: ; preds = %62
%66 = call i32 @exit(i32 12)
unreachable
67: ; preds = %62
%68 = load i32, i32* @INT_MIN
%69 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.12, i64 0, i64 0), i32 %68)
%70 = icmp ne i32 %69, 12
br i1 %70, label %71, label %73
71: ; preds = %67
%72 = call i32 @exit(i32 13)
unreachable
73: ; preds = %67
%74 = load i32, i32* @INT_MIN
%75 = add nsw i32 %74, 1
%76 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.12, i64 0, i64 0), i32 %75)
%77 = icmp ne i32 %76, 12
br i1 %77, label %78, label %80
78: ; preds = %73
%79 = call i32 @exit(i32 14)
unreachable
80: ; preds = %73
%81 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.12, i64 0, i64 0), i32 0)
%82 = icmp ne i32 %81, 2
br i1 %82, label %83, label %85
83: ; preds = %80
%84 = call i32 @exit(i32 15)
unreachable
85: ; preds = %80
%86 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([16 x i8], [16 x i8]* @.str.13, i64 0, i64 0), i32 0, i32 1, i32 2, i32 3, i32 4)
%87 = icmp ne i32 %86, 10
br i1 %87, label %88, label %90
88: ; preds = %85
%89 = call i32 @exit(i32 16)
unreachable
90: ; preds = %85
%91 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([16 x i8], [16 x i8]* @.str.14, i64 0, i64 0), i32 0, i32 1, i32 2, i32 -3, i32 4)
%92 = icmp ne i32 %91, 11
br i1 %92, label %93, label %95
93: ; preds = %90
%94 = call i32 @exit(i32 16)
unreachable
95: ; preds = %90
%96 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.15, i64 0, i64 0), i32 123)
%97 = icmp ne i32 %96, 4
br i1 %97, label %98, label %100
98: ; preds = %95
%99 = call i32 @exit(i32 17)
unreachable
100: ; preds = %95
%101 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.15, i64 0, i64 0), i32 0)
%102 = icmp ne i32 %101, 2
br i1 %102, label %103, label %105
103: ; preds = %100
%104 = call i32 @exit(i32 18)
unreachable
105: ; preds = %100
%106 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.15, i64 0, i64 0), i32 -5)
%107 = icmp ne i32 %106, 12
br i1 %107, label %108, label %110
108: ; preds = %105
%109 = call i32 @exit(i32 19)
unreachable
110: ; preds = %105
%111 = load i32, i32* @INT_MAX
%112 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.15, i64 0, i64 0), i32 %111)
%113 = icmp ne i32 %112, 12
br i1 %113, label %114, label %116
114: ; preds = %110
%115 = call i32 @exit(i32 20)
unreachable
116: ; preds = %110
%117 = load i32, i32* @INT_MIN
%118 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.15, i64 0, i64 0), i32 %117)
%119 = icmp ne i32 %118, 12
br i1 %119, label %120, label %122
120: ; preds = %116
%121 = call i32 @exit(i32 21)
unreachable
122: ; preds = %116
%123 = load i32, i32* @INT_MIN
%124 = add nsw i32 %123, 1
%125 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.15, i64 0, i64 0), i32 %124)
%126 = icmp ne i32 %125, 12
br i1 %126, label %127, label %129
127: ; preds = %122
%128 = call i32 @exit(i32 22)
unreachable
129: ; preds = %122
%130 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.16, i64 0, i64 0), i32 5434531)
%131 = icmp ne i32 %130, 7
br i1 %131, label %132, label %134
132: ; preds = %129
%133 = call i32 @exit(i32 23)
unreachable
134: ; preds = %129
%135 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.16, i64 0, i64 0), i32 0)
%136 = icmp ne i32 %135, 2
br i1 %136, label %137, label %139
137: ; preds = %134
%138 = call i32 @exit(i32 24)
unreachable
139: ; preds = %134
%140 = load i32, i32* @INT_MAX
%141 = load i32, i32* @INT_MIN
%142 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.17, i64 0, i64 0), i32 %140, i32 %141)
%143 = icmp ne i32 %142, 18
br i1 %143, label %144, label %146
144: ; preds = %139
%145 = call i32 @exit(i32 25)
unreachable
146: ; preds = %139
%147 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.18, i64 0, i64 0), i32 5434531)
%148 = icmp ne i32 %147, 7
br i1 %148, label %149, label %151
149: ; preds = %146
%150 = call i32 @exit(i32 23)
unreachable
151: ; preds = %146
%152 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.18, i64 0, i64 0), i32 0)
%153 = icmp ne i32 %152, 2
br i1 %153, label %154, label %156
154: ; preds = %151
%155 = call i32 @exit(i32 24)
unreachable
156: ; preds = %151
%157 = load i32, i32* @INT_MAX
%158 = load i32, i32* @INT_MIN
%159 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.19, i64 0, i64 0), i32 %157, i32 %158)
%160 = icmp ne i32 %159, 18
br i1 %160, label %161, label %163
161: ; preds = %156
%162 = call i32 @exit(i32 25)
unreachable
163: ; preds = %156
%164 = load i32, i32* @INT_MAX
%165 = load i32, i32* @INT_MIN
%166 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([13 x i8], [13 x i8]* @.str.20, i64 0, i64 0), i32 %164, i32 %165, i32 0, i32 45345123)
%167 = icmp ne i32 %166, 33
br i1 %167, label %168, label %170
168: ; preds = %163
%169 = call i32 @exit(i32 26)
unreachable
170: ; preds = %163
ret i32 0
}

LLVM IR (-O2):
@.str = [5 x i8] c"asdf\00"
@.str.1 = [2 x i8] c"\0A\00"
@.str.3 = [9 x i8] c"asdf%ca\0A\00"
@.str.4 = [14 x i8] c"%c%c %c%ca%c\0A\00"
@.str.5 = [4 x i8] c"%%\0A\00"
@.str.6 = [10 x i8] c"%%%%%c%%\0A\00"
@.str.7 = [7 x i8] c"%s %s\0A\00"
@.str.8 = [6 x i8] c"hello\00"
@.str.9 = [6 x i8] c"world\00"
@.str.10 = [17 x i8] c"asdfasdf %nasdf\0A\00"
@.str.11 = [3 x i8] c"%n\00"
@.str.12 = [4 x i8] c"%d\0A\00"
@INT_MIN = global i32 0
@.str.13 = [16 x i8] c"%d %d %d %d %d\0A\00"
@.str.14 = [16 x i8] c"%i %i %i %i %i\0A\00"
@.str.15 = [4 x i8] c"%o\0A\00"
@INT_MAX = global i32 0
@.str.16 = [4 x i8] c"%X\0A\00"
@.str.17 = [7 x i8] c"%X %X\0A\00"
@.str.18 = [4 x i8] c"%x\0A\00"
@.str.19 = [7 x i8] c"%x %x\0A\00"
@.str.20 = [13 x i8] c"%u %u %u %u\0A\00"
define i32 @main() {
%1 = alloca i32
%2 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([5 x i8], [5 x i8]* @.str, i64 0, i64 0))
%3 = icmp eq i32 %2, 4
br i1 %3, label %6, label %4
4: ; preds = %0
%5 = tail call i32 @exit(i32 1)
unreachable
6: ; preds = %0
%7 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([2 x i8], [2 x i8]* @.str.1, i64 0, i64 0))
%8 = icmp eq i32 %7, 1
br i1 %8, label %11, label %9
9: ; preds = %6
%10 = tail call i32 @exit(i32 2)
unreachable
11: ; preds = %6
%12 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([9 x i8], [9 x i8]* @.str.3, i64 0, i64 0), i32 116)
%13 = icmp eq i32 %12, 7
br i1 %13, label %16, label %14
14: ; preds = %11
%15 = tail call i32 @exit(i32 4)
unreachable
16: ; preds = %11
%17 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([14 x i8], [14 x i8]* @.str.4, i64 0, i64 0), i32 104, i32 101, i32 108, i32 108, i32 111)
%18 = icmp eq i32 %17, 8
br i1 %18, label %21, label %19
19: ; preds = %16
%20 = tail call i32 @exit(i32 5)
unreachable
21: ; preds = %16
%22 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([4 x i8], [4 x i8]* @.str.5, i64 0, i64 0))
%23 = icmp eq i32 %22, 2
br i1 %23, label %26, label %24
24: ; preds = %21
%25 = tail call i32 @exit(i32 6)
unreachable
26: ; preds = %21
%27 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([10 x i8], [10 x i8]* @.str.6, i64 0, i64 0), i32 104)
%28 = icmp eq i32 %27, 5
br i1 %28, label %31, label %29
29: ; preds = %26
%30 = tail call i32 @exit(i32 7)
unreachable
31: ; preds = %26
%32 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([7 x i8], [7 x i8]* @.str.7, i64 0, i64 0), i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.8, i64 0, i64 0), i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.9, i64 0, i64 0))
%33 = icmp eq i32 %32, 12
br i1 %33, label %36, label %34
34: ; preds = %31
%35 = tail call i32 @exit(i32 8)
unreachable
36: ; preds = %31
%37 = bitcast i32* %1 to i8*
%38 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([17 x i8], [17 x i8]* @.str.10, i64 0, i64 0), i32* %1)
%39 = icmp ne i32 %38, 14
%40 = load i32, i32* %1
%41 = icmp ne i32 %40, 9
%42 = select i1 %39, i1 true, i1 %41
br i1 %42, label %43, label %45
43: ; preds = %36
%44 = call i32 @exit(i32 9)
unreachable
45: ; preds = %36
%46 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([3 x i8], [3 x i8]* @.str.11, i64 0, i64 0), i32* %1)
%47 = icmp ne i32 %46, 0
%48 = load i32, i32* %1
%49 = icmp ne i32 %48, 0
%50 = select i1 %47, i1 true, i1 %49
br i1 %50, label %51, label %53
51: ; preds = %45
%52 = call i32 @exit(i32 10)
unreachable
53: ; preds = %45
%54 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([4 x i8], [4 x i8]* @.str.12, i64 0, i64 0), i32 12345)
%55 = icmp eq i32 %54, 6
br i1 %55, label %58, label %56
56: ; preds = %53
%57 = call i32 @exit(i32 11)
unreachable
58: ; preds = %53
%59 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([4 x i8], [4 x i8]* @.str.12, i64 0, i64 0), i32 -12345)
%60 = icmp eq i32 %59, 7
br i1 %60, label %63, label %61
61: ; preds = %58
%62 = call i32 @exit(i32 12)
unreachable
63: ; preds = %58
%64 = load i32, i32* @INT_MIN
%65 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([4 x i8], [4 x i8]* @.str.12, i64 0, i64 0), i32 %64)
%66 = icmp eq i32 %65, 12
br i1 %66, label %69, label %67
67: ; preds = %63
%68 = call i32 @exit(i32 13)
unreachable
69: ; preds = %63
%70 = load i32, i32* @INT_MIN
%71 = add nsw i32 %70, 1
%72 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([4 x i8], [4 x i8]* @.str.12, i64 0, i64 0), i32 %71)
%73 = icmp eq i32 %72, 12
br i1 %73, label %76, label %74
74: ; preds = %69
%75 = call i32 @exit(i32 14)
unreachable
76: ; preds = %69
%77 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([4 x i8], [4 x i8]* @.str.12, i64 0, i64 0), i32 0)
%78 = icmp eq i32 %77, 2
br i1 %78, label %81, label %79
79: ; preds = %76
%80 = call i32 @exit(i32 15)
unreachable
81: ; preds = %76
%82 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([16 x i8], [16 x i8]* @.str.13, i64 0, i64 0), i32 0, i32 1, i32 2, i32 3, i32 4)
%83 = icmp eq i32 %82, 10
br i1 %83, label %86, label %84
84: ; preds = %81
%85 = call i32 @exit(i32 16)
unreachable
86: ; preds = %81
%87 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([16 x i8], [16 x i8]* @.str.14, i64 0, i64 0), i32 0, i32 1, i32 2, i32 -3, i32 4)
%88 = icmp eq i32 %87, 11
br i1 %88, label %91, label %89
89: ; preds = %86
%90 = call i32 @exit(i32 16)
unreachable
91: ; preds = %86
%92 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([4 x i8], [4 x i8]* @.str.15, i64 0, i64 0), i32 123)
%93 = icmp eq i32 %92, 4
br i1 %93, label %96, label %94
94: ; preds = %91
%95 = call i32 @exit(i32 17)
unreachable
96: ; preds = %91
%97 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([4 x i8], [4 x i8]* @.str.15, i64 0, i64 0), i32 0)
%98 = icmp eq i32 %97, 2
br i1 %98, label %101, label %99
99: ; preds = %96
%100 = call i32 @exit(i32 18)
unreachable
101: ; preds = %96
%102 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([4 x i8], [4 x i8]* @.str.15, i64 0, i64 0), i32 -5)
%103 = icmp eq i32 %102, 12
br i1 %103, label %106, label %104
104: ; preds = %101
%105 = call i32 @exit(i32 19)
unreachable
106: ; preds = %101
%107 = load i32, i32* @INT_MAX
%108 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([4 x i8], [4 x i8]* @.str.15, i64 0, i64 0), i32 %107)
%109 = icmp eq i32 %108, 12
br i1 %109, label %112, label %110
110: ; preds = %106
%111 = call i32 @exit(i32 20)
unreachable
112: ; preds = %106
%113 = load i32, i32* @INT_MIN
%114 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([4 x i8], [4 x i8]* @.str.15, i64 0, i64 0), i32 %113)
%115 = icmp eq i32 %114, 12
br i1 %115, label %118, label %116
116: ; preds = %112
%117 = call i32 @exit(i32 21)
unreachable
118: ; preds = %112
%119 = load i32, i32* @INT_MIN
%120 = add nsw i32 %119, 1
%121 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([4 x i8], [4 x i8]* @.str.15, i64 0, i64 0), i32 %120)
%122 = icmp eq i32 %121, 12
br i1 %122, label %125, label %123
123: ; preds = %118
%124 = call i32 @exit(i32 22)
unreachable
125: ; preds = %118
%126 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([4 x i8], [4 x i8]* @.str.16, i64 0, i64 0), i32 5434531)
%127 = icmp eq i32 %126, 7
br i1 %127, label %130, label %128
128: ; preds = %125
%129 = call i32 @exit(i32 23)
unreachable
130: ; preds = %125
%131 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([4 x i8], [4 x i8]* @.str.16, i64 0, i64 0), i32 0)
%132 = icmp eq i32 %131, 2
br i1 %132, label %135, label %133
133: ; preds = %130
%134 = call i32 @exit(i32 24)
unreachable
135: ; preds = %130
%136 = load i32, i32* @INT_MAX
%137 = load i32, i32* @INT_MIN
%138 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([7 x i8], [7 x i8]* @.str.17, i64 0, i64 0), i32 %136, i32 %137)
%139 = icmp eq i32 %138, 18
br i1 %139, label %142, label %140
140: ; preds = %135
%141 = call i32 @exit(i32 25)
unreachable
142: ; preds = %135
%143 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([4 x i8], [4 x i8]* @.str.18, i64 0, i64 0), i32 5434531)
%144 = icmp eq i32 %143, 7
br i1 %144, label %147, label %145
145: ; preds = %142
%146 = call i32 @exit(i32 23)
unreachable
147: ; preds = %142
%148 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([4 x i8], [4 x i8]* @.str.18, i64 0, i64 0), i32 0)
%149 = icmp eq i32 %148, 2
br i1 %149, label %152, label %150
150: ; preds = %147
%151 = call i32 @exit(i32 24)
unreachable
152: ; preds = %147
%153 = load i32, i32* @INT_MAX
%154 = load i32, i32* @INT_MIN
%155 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([7 x i8], [7 x i8]* @.str.19, i64 0, i64 0), i32 %153, i32 %154)
%156 = icmp eq i32 %155, 18
br i1 %156, label %159, label %157
157: ; preds = %152
%158 = call i32 @exit(i32 25)
unreachable
159: ; preds = %152
%160 = load i32, i32* @INT_MAX
%161 = load i32, i32* @INT_MIN
%162 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([13 x i8], [13 x i8]* @.str.20, i64 0, i64 0), i32 %160, i32 %161, i32 0, i32 45345123)
%163 = icmp eq i32 %162, 33
br i1 %163, label %166, label %164
164: ; preds = %159
%165 = call i32 @exit(i32 26)
unreachable
166: ; preds = %159
ret i32 0
}