#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*/ abort();
int /*<<< orphan*/ exit(int);
int printf(char *, ...);
int main() {
  if (printf("asdf%lca\n", 't') != 7) {
    exit(4);
  }
  if (printf("%lc%lc %lc%lca%lc\n", 'h', 'e', 'l', 'l', 'o') != 8) {
    exit(5);
  }
  if (printf("%%\n") != 2) {
    exit(6);
  }
  long val;
  if (printf("asdfasdf %lnasdf\n", &val) != 14 || val != 9) {
    exit(9);
  }
  if (printf("%ln", &val) != 0 || val != 0) {
    exit(10);
  }
  if (printf("%ld\n", 12345L) != 6) {
    exit(11);
  }
  if (printf("%ld\n", -12345L) != 7) {
    exit(12);
  }
  if (printf("%ld\n", 0L) != 2) {
    exit(15);
  }
  if (printf("%ld %ld %ld %ld %ld\n", 0L, 1L, 2L, 3L, 4L) != 10) {
    exit(16);
  }
  if (printf("%li %li %li %li %li\n", 0L, 1L, 2L, -3L, 4L) != 11) {
    exit(16);
  }
  if (printf("%lld", 0LL) != (long long)1) {
    abort();
  }
  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    0xec1(%rip),%rdi
mov    $0x74,%esi
mov    $0x0,%al
call   1040 <printf@plt>
cmp    $0x7,%eax
je     115e <main+0x2e>
mov    $0x4,%edi
call   1050 <exit@plt>
lea    0xea5(%rip),%rdi
mov    $0x68,%esi
mov    $0x65,%edx
mov    $0x6c,%r8d
mov    $0x6f,%r9d
mov    %r8d,%ecx
mov    $0x0,%al
call   1040 <printf@plt>
cmp    $0x8,%eax
je     1198 <main+0x68>
mov    $0x5,%edi
call   1050 <exit@plt>
lea    0xe7e(%rip),%rdi
mov    $0x0,%al
call   1040 <printf@plt>
cmp    $0x2,%eax
je     11b9 <main+0x89>
mov    $0x6,%edi
call   1050 <exit@plt>
lea    0xe61(%rip),%rdi
lea    -0x8(%rbp),%rsi
mov    $0x0,%al
call   1040 <printf@plt>
cmp    $0xe,%eax
jne    11df <main+0xaf>
cmpq   $0x9,-0x8(%rbp)
je     11e9 <main+0xb9>
mov    $0x9,%edi
call   1050 <exit@plt>
lea    0xe43(%rip),%rdi
lea    -0x8(%rbp),%rsi
mov    $0x0,%al
call   1040 <printf@plt>
cmp    $0x0,%eax
jne    120f <main+0xdf>
cmpq   $0x0,-0x8(%rbp)
je     1219 <main+0xe9>
mov    $0xa,%edi
call   1050 <exit@plt>
lea    0xe27(%rip),%rdi
mov    $0x3039,%esi
mov    $0x0,%al
call   1040 <printf@plt>
cmp    $0x6,%eax
je     123f <main+0x10f>
mov    $0xb,%edi
call   1050 <exit@plt>
lea    0xe01(%rip),%rdi
mov    $0xffffffffffffcfc7,%rsi
mov    $0x0,%al
call   1040 <printf@plt>
cmp    $0x7,%eax
je     1267 <main+0x137>
mov    $0xc,%edi
call   1050 <exit@plt>
lea    0xdd9(%rip),%rdi
xor    %eax,%eax
mov    %eax,%esi
mov    $0x0,%al
call   1040 <printf@plt>
cmp    $0x2,%eax
je     128c <main+0x15c>
mov    $0xf,%edi
call   1050 <exit@plt>
lea    0xda4(%rip),%rdi
xor    %eax,%eax
mov    %eax,%esi
mov    $0x1,%edx
mov    $0x2,%ecx
mov    $0x3,%r8d
mov    $0x4,%r9d
mov    $0x0,%al
call   1040 <printf@plt>
cmp    $0xa,%eax
je     12c7 <main+0x197>
mov    $0x10,%edi
call   1050 <exit@plt>
lea    0xd7e(%rip),%rdi
xor    %eax,%eax
mov    %eax,%esi
mov    $0x1,%edx
mov    $0x2,%ecx
mov    $0xfffffffffffffffd,%r8
mov    $0x4,%r9d
mov    $0x0,%al
call   1040 <printf@plt>
cmp    $0xb,%eax
je     1303 <main+0x1d3>
mov    $0x10,%edi
call   1050 <exit@plt>
lea    0xd57(%rip),%rdi
xor    %eax,%eax
mov    %eax,%esi
mov    $0x0,%al
call   1040 <printf@plt>
cltq
cmp    $0x1,%rax
je     1328 <main+0x1f8>
mov    $0x0,%al
call   1030 <abort@plt>
lea    0xd37(%rip),%rdi
mov    $0x7b,%esi
mov    $0x0,%al
call   1040 <printf@plt>
cmp    $0x4,%eax
je     134e <main+0x21e>
mov    $0x11,%edi
call   1050 <exit@plt>
lea    0xd11(%rip),%rdi
xor    %esi,%esi
mov    $0x0,%al
call   1040 <printf@plt>
cmp    $0x2,%eax
je     1371 <main+0x241>
mov    $0x12,%edi
call   1050 <exit@plt>
lea    0xcee(%rip),%rdi
mov    $0xfffffffb,%esi
mov    $0x0,%al
call   1040 <printf@plt>
cmp    $0xc,%eax
je     1397 <main+0x267>
mov    $0x13,%edi
call   1050 <exit@plt>
mov    0x2c4a(%rip),%rax
mov    (%rax),%esi
lea    0xcbf(%rip),%rdi
mov    $0x0,%al
call   1040 <printf@plt>
cmp    $0xc,%eax
je     13c1 <main+0x291>
mov    $0x14,%edi
call   1050 <exit@plt>
mov    0x2c18(%rip),%rax
mov    (%rax),%esi
lea    0xc95(%rip),%rdi
mov    $0x0,%al
call   1040 <printf@plt>
cmp    $0xc,%eax
je     13eb <main+0x2bb>
mov    $0x15,%edi
call   1050 <exit@plt>
mov    0x2bee(%rip),%rax
mov    (%rax),%esi
add    $0x1,%esi
lea    0xc68(%rip),%rdi
mov    $0x0,%al
call   1040 <printf@plt>
cmp    $0xc,%eax
je     1418 <main+0x2e8>
mov    $0x16,%edi
call   1050 <exit@plt>
lea    0xc4e(%rip),%rdi
mov    $0x52eca3,%esi
mov    $0x0,%al
call   1040 <printf@plt>
cmp    $0x7,%eax
je     143e <main+0x30e>
mov    $0x17,%edi
call   1050 <exit@plt>
lea    0xc28(%rip),%rdi
xor    %esi,%esi
mov    $0x0,%al
call   1040 <printf@plt>
cmp    $0x2,%eax
je     1461 <main+0x331>
mov    $0x18,%edi
call   1050 <exit@plt>
mov    0x2b80(%rip),%rax
mov    (%rax),%esi
mov    0x2b6f(%rip),%rax
mov    (%rax),%edx
lea    0xbf0(%rip),%rdi
mov    $0x0,%al
call   1040 <printf@plt>
cmp    $0x12,%eax
je     1494 <main+0x364>
mov    $0x19,%edi
call   1050 <exit@plt>
lea    0xbd9(%rip),%rdi
mov    $0x52eca3,%esi
mov    $0x0,%al
call   1040 <printf@plt>
cmp    $0x7,%eax
je     14ba <main+0x38a>
mov    $0x17,%edi
call   1050 <exit@plt>
lea    0xbb3(%rip),%rdi
xor    %esi,%esi
mov    $0x0,%al
call   1040 <printf@plt>
cmp    $0x2,%eax
je     14dd <main+0x3ad>
mov    $0x18,%edi
call   1050 <exit@plt>
mov    0x2b04(%rip),%rax
mov    (%rax),%esi
mov    0x2af3(%rip),%rax
mov    (%rax),%edx
lea    0xb7b(%rip),%rdi
mov    $0x0,%al
call   1040 <printf@plt>
cmp    $0x12,%eax
je     1510 <main+0x3e0>
mov    $0x19,%edi
call   1050 <exit@plt>
mov    0x2ad1(%rip),%rax
mov    (%rax),%esi
mov    0x2ac0(%rip),%rax
mov    (%rax),%edx
lea    0xb4f(%rip),%rdi
xor    %ecx,%ecx
mov    $0x2b3e963,%r8d
mov    $0x0,%al
call   1040 <printf@plt>
cmp    $0x21,%eax
je     154b <main+0x41b>
mov    $0x1a,%edi
call   1050 <exit@plt>
xor    %eax,%eax
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %r14
push   %rbx
push   %rax
lea    0xec5(%rip),%rdi
mov    $0x74,%esi
xor    %eax,%eax
call   1040 <printf@plt>
cmp    $0x7,%eax
jne    1447 <main+0x317>
lea    0xeb3(%rip),%rdi
mov    $0x68,%esi
mov    $0x65,%edx
mov    $0x6c,%ecx
mov    $0x6c,%r8d
mov    $0x6f,%r9d
xor    %eax,%eax
call   1040 <printf@plt>
cmp    $0x8,%eax
jne    1451 <main+0x321>
lea    0xe94(%rip),%rdi
xor    %eax,%eax
call   1040 <printf@plt>
cmp    $0x2,%eax
jne    145b <main+0x32b>
lea    0xe81(%rip),%rdi
mov    %rsp,%rsi
xor    %eax,%eax
call   1040 <printf@plt>
cmp    $0xe,%eax
jne    1465 <main+0x335>
cmpq   $0x9,(%rsp)
jne    1465 <main+0x335>
lea    0xe6e(%rip),%rdi
mov    %rsp,%rsi
xor    %eax,%eax
call   1040 <printf@plt>
test   %eax,%eax
jne    146f <main+0x33f>
cmpq   $0x0,(%rsp)
jne    146f <main+0x33f>
lea    0xe5e(%rip),%rdi
mov    $0x3039,%esi
xor    %eax,%eax
call   1040 <printf@plt>
cmp    $0x6,%eax
jne    1479 <main+0x349>
lea    0xe42(%rip),%rdi
mov    $0xffffffffffffcfc7,%rsi
xor    %eax,%eax
call   1040 <printf@plt>
cmp    $0x7,%eax
jne    1483 <main+0x353>
lea    0xe24(%rip),%rdi
xor    %esi,%esi
xor    %eax,%eax
call   1040 <printf@plt>
cmp    $0x2,%eax
jne    148d <main+0x35d>
lea    0xdfb(%rip),%rdi
mov    $0x1,%edx
mov    $0x2,%ecx
mov    $0x3,%r8d
mov    $0x4,%r9d
xor    %esi,%esi
xor    %eax,%eax
call   1040 <printf@plt>
cmp    $0xa,%eax
jne    141f <main+0x2ef>
lea    0xde1(%rip),%rdi
mov    $0x1,%edx
mov    $0x2,%ecx
mov    $0x4,%r9d
xor    %esi,%esi
mov    $0xfffffffffffffffd,%r8
xor    %eax,%eax
call   1040 <printf@plt>
cmp    $0xb,%eax
jne    141f <main+0x2ef>
lea    0xdc6(%rip),%rdi
xor    %esi,%esi
xor    %eax,%eax
call   1040 <printf@plt>
cmp    $0x1,%eax
jne    1497 <main+0x367>
lea    0xdb2(%rip),%rdi
mov    $0x7b,%esi
xor    %eax,%eax
call   1040 <printf@plt>
cmp    $0x4,%eax
jne    149e <main+0x36e>
lea    0xd96(%rip),%rdi
xor    %esi,%esi
xor    %eax,%eax
call   1040 <printf@plt>
cmp    $0x2,%eax
jne    14a8 <main+0x378>
lea    0xd7d(%rip),%rdi
mov    $0xfffffffb,%esi
xor    %eax,%eax
call   1040 <printf@plt>
cmp    $0xc,%eax
jne    14b2 <main+0x382>
mov    0x2ce3(%rip),%r14
mov    (%r14),%esi
lea    0xd57(%rip),%rdi
xor    %eax,%eax
call   1040 <printf@plt>
cmp    $0xc,%eax
jne    14bc <main+0x38c>
mov    0x2cba(%rip),%rbx
mov    (%rbx),%esi
lea    0xd37(%rip),%rdi
xor    %eax,%eax
call   1040 <printf@plt>
cmp    $0xc,%eax
jne    14c6 <main+0x396>
mov    (%rbx),%esi
add    $0x1,%esi
lea    0xd1b(%rip),%rdi
xor    %eax,%eax
call   1040 <printf@plt>
cmp    $0xc,%eax
jne    14d0 <main+0x3a0>
lea    0xd0b(%rip),%rdi
mov    $0x52eca3,%esi
xor    %eax,%eax
call   1040 <printf@plt>
cmp    $0x7,%eax
jne    1429 <main+0x2f9>
lea    0xcef(%rip),%rdi
xor    %esi,%esi
xor    %eax,%eax
call   1040 <printf@plt>
cmp    $0x2,%eax
jne    1433 <main+0x303>
mov    (%r14),%esi
mov    (%rbx),%edx
lea    0xcce(%rip),%rdi
xor    %eax,%eax
call   1040 <printf@plt>
cmp    $0x12,%eax
jne    143d <main+0x30d>
lea    0xcc1(%rip),%rdi
mov    $0x52eca3,%esi
xor    %eax,%eax
call   1040 <printf@plt>
cmp    $0x7,%eax
jne    1429 <main+0x2f9>
lea    0xca9(%rip),%rdi
xor    %esi,%esi
xor    %eax,%eax
call   1040 <printf@plt>
cmp    $0x2,%eax
jne    1433 <main+0x303>
mov    (%r14),%esi
mov    (%rbx),%edx
lea    0xc8c(%rip),%rdi
xor    %eax,%eax
call   1040 <printf@plt>
cmp    $0x12,%eax
jne    143d <main+0x30d>
mov    (%r14),%esi
mov    (%rbx),%edx
lea    0xc7b(%rip),%rdi
xor    %ecx,%ecx
mov    $0x2b3e963,%r8d
xor    %eax,%eax
call   1040 <printf@plt>
cmp    $0x21,%eax
jne    14da <main+0x3aa>
xor    %eax,%eax
add    $0x8,%rsp
pop    %rbx
pop    %r14
ret
mov    $0x10,%edi
call   1050 <exit@plt>
mov    $0x17,%edi
call   1050 <exit@plt>
mov    $0x18,%edi
call   1050 <exit@plt>
mov    $0x19,%edi
call   1050 <exit@plt>
mov    $0x4,%edi
call   1050 <exit@plt>
mov    $0x5,%edi
call   1050 <exit@plt>
mov    $0x6,%edi
call   1050 <exit@plt>
mov    $0x9,%edi
call   1050 <exit@plt>
mov    $0xa,%edi
call   1050 <exit@plt>
mov    $0xb,%edi
call   1050 <exit@plt>
mov    $0xc,%edi
call   1050 <exit@plt>
mov    $0xf,%edi
call   1050 <exit@plt>
xor    %eax,%eax
call   1030 <abort@plt>
mov    $0x11,%edi
call   1050 <exit@plt>
mov    $0x12,%edi
call   1050 <exit@plt>
mov    $0x13,%edi
call   1050 <exit@plt>
mov    $0x14,%edi
call   1050 <exit@plt>
mov    $0x15,%edi
call   1050 <exit@plt>
mov    $0x16,%edi
call   1050 <exit@plt>
mov    $0x1a,%edi
call   1050 <exit@plt>

LLVM IR (-O0):
@.str = [10 x i8] c"asdf%lca\0A\00"
@.str.1 = [19 x i8] c"%lc%lc %lc%lca%lc\0A\00"
@.str.2 = [4 x i8] c"%%\0A\00"
@.str.3 = [18 x i8] c"asdfasdf %lnasdf\0A\00"
@.str.4 = [4 x i8] c"%ln\00"
@.str.5 = [5 x i8] c"%ld\0A\00"
@.str.6 = [21 x i8] c"%ld %ld %ld %ld %ld\0A\00"
@.str.7 = [21 x i8] c"%li %li %li %li %li\0A\00"
@.str.8 = [5 x i8] c"%lld\00"
@.str.9 = [4 x i8] c"%o\0A\00"
@INT_MAX = global i32 0
@INT_MIN = global i32 0
@.str.10 = [4 x i8] c"%X\0A\00"
@.str.11 = [7 x i8] c"%X %X\0A\00"
@.str.12 = [4 x i8] c"%x\0A\00"
@.str.13 = [7 x i8] c"%x %x\0A\00"
@.str.14 = [13 x i8] c"%u %u %u %u\0A\00"
define i32 @main() {
%1 = alloca i64
%2 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([10 x i8], [10 x i8]* @.str, i64 0, i64 0), i32 116)
%3 = icmp ne i32 %2, 7
br i1 %3, label %4, label %6
4: ; preds = %0
%5 = call i32 @exit(i32 4)
unreachable
6: ; preds = %0
%7 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([19 x i8], [19 x i8]* @.str.1, i64 0, i64 0), i32 104, i32 101, i32 108, i32 108, i32 111)
%8 = icmp ne i32 %7, 8
br i1 %8, label %9, label %11
9: ; preds = %6
%10 = call i32 @exit(i32 5)
unreachable
11: ; preds = %6
%12 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.2, i64 0, i64 0))
%13 = icmp ne i32 %12, 2
br i1 %13, label %14, label %16
14: ; preds = %11
%15 = call i32 @exit(i32 6)
unreachable
16: ; preds = %11
%17 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([18 x i8], [18 x i8]* @.str.3, i64 0, i64 0), i64* %1)
%18 = icmp ne i32 %17, 14
br i1 %18, label %22, label %19
19: ; preds = %16
%20 = load i64, i64* %1
%21 = icmp ne i64 %20, 9
br i1 %21, label %22, label %24
22: ; preds = %19, %16
%23 = call i32 @exit(i32 9)
unreachable
24: ; preds = %19
%25 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.4, i64 0, i64 0), i64* %1)
%26 = icmp ne i32 %25, 0
br i1 %26, label %30, label %27
27: ; preds = %24
%28 = load i64, i64* %1
%29 = icmp ne i64 %28, 0
br i1 %29, label %30, label %32
30: ; preds = %27, %24
%31 = call i32 @exit(i32 10)
unreachable
32: ; preds = %27
%33 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.5, i64 0, i64 0), i64 12345)
%34 = icmp ne i32 %33, 6
br i1 %34, label %35, label %37
35: ; preds = %32
%36 = call i32 @exit(i32 11)
unreachable
37: ; preds = %32
%38 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.5, i64 0, i64 0), i64 -12345)
%39 = icmp ne i32 %38, 7
br i1 %39, label %40, label %42
40: ; preds = %37
%41 = call i32 @exit(i32 12)
unreachable
42: ; preds = %37
%43 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.5, i64 0, i64 0), i64 0)
%44 = icmp ne i32 %43, 2
br i1 %44, label %45, label %47
45: ; preds = %42
%46 = call i32 @exit(i32 15)
unreachable
47: ; preds = %42
%48 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([21 x i8], [21 x i8]* @.str.6, i64 0, i64 0), i64 0, i64 1, i64 2, i64 3, i64 4)
%49 = icmp ne i32 %48, 10
br i1 %49, label %50, label %52
50: ; preds = %47
%51 = call i32 @exit(i32 16)
unreachable
52: ; preds = %47
%53 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([21 x i8], [21 x i8]* @.str.7, i64 0, i64 0), i64 0, i64 1, i64 2, i64 -3, i64 4)
%54 = icmp ne i32 %53, 11
br i1 %54, label %55, label %57
55: ; preds = %52
%56 = call i32 @exit(i32 16)
unreachable
57: ; preds = %52
%58 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.8, i64 0, i64 0), i64 0)
%59 = sext i32 %58 to i64
%60 = icmp ne i64 %59, 1
br i1 %60, label %61, label %63
61: ; preds = %57
%62 = call i32 (...) @abort()
unreachable
63: ; preds = %57
%64 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.9, i64 0, i64 0), i32 123)
%65 = icmp ne i32 %64, 4
br i1 %65, label %66, label %68
66: ; preds = %63
%67 = call i32 @exit(i32 17)
unreachable
68: ; preds = %63
%69 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.9, i64 0, i64 0), i32 0)
%70 = icmp ne i32 %69, 2
br i1 %70, label %71, label %73
71: ; preds = %68
%72 = call i32 @exit(i32 18)
unreachable
73: ; preds = %68
%74 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.9, i64 0, i64 0), i32 -5)
%75 = icmp ne i32 %74, 12
br i1 %75, label %76, label %78
76: ; preds = %73
%77 = call i32 @exit(i32 19)
unreachable
78: ; preds = %73
%79 = load i32, i32* @INT_MAX
%80 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.9, i64 0, i64 0), i32 %79)
%81 = icmp ne i32 %80, 12
br i1 %81, label %82, label %84
82: ; preds = %78
%83 = call i32 @exit(i32 20)
unreachable
84: ; preds = %78
%85 = load i32, i32* @INT_MIN
%86 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.9, i64 0, i64 0), i32 %85)
%87 = icmp ne i32 %86, 12
br i1 %87, label %88, label %90
88: ; preds = %84
%89 = call i32 @exit(i32 21)
unreachable
90: ; preds = %84
%91 = load i32, i32* @INT_MIN
%92 = add nsw i32 %91, 1
%93 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.9, i64 0, i64 0), i32 %92)
%94 = icmp ne i32 %93, 12
br i1 %94, label %95, label %97
95: ; preds = %90
%96 = call i32 @exit(i32 22)
unreachable
97: ; preds = %90
%98 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.10, i64 0, i64 0), i32 5434531)
%99 = icmp ne i32 %98, 7
br i1 %99, label %100, label %102
100: ; preds = %97
%101 = call i32 @exit(i32 23)
unreachable
102: ; preds = %97
%103 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.10, i64 0, i64 0), i32 0)
%104 = icmp ne i32 %103, 2
br i1 %104, label %105, label %107
105: ; preds = %102
%106 = call i32 @exit(i32 24)
unreachable
107: ; preds = %102
%108 = load i32, i32* @INT_MAX
%109 = load i32, i32* @INT_MIN
%110 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.11, i64 0, i64 0), i32 %108, i32 %109)
%111 = icmp ne i32 %110, 18
br i1 %111, label %112, label %114
112: ; preds = %107
%113 = call i32 @exit(i32 25)
unreachable
114: ; preds = %107
%115 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.12, i64 0, i64 0), i32 5434531)
%116 = icmp ne i32 %115, 7
br i1 %116, label %117, label %119
117: ; preds = %114
%118 = call i32 @exit(i32 23)
unreachable
119: ; preds = %114
%120 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.12, i64 0, i64 0), i32 0)
%121 = icmp ne i32 %120, 2
br i1 %121, label %122, label %124
122: ; preds = %119
%123 = call i32 @exit(i32 24)
unreachable
124: ; preds = %119
%125 = load i32, i32* @INT_MAX
%126 = load i32, i32* @INT_MIN
%127 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.13, i64 0, i64 0), i32 %125, i32 %126)
%128 = icmp ne i32 %127, 18
br i1 %128, label %129, label %131
129: ; preds = %124
%130 = call i32 @exit(i32 25)
unreachable
131: ; preds = %124
%132 = load i32, i32* @INT_MAX
%133 = load i32, i32* @INT_MIN
%134 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([13 x i8], [13 x i8]* @.str.14, i64 0, i64 0), i32 %132, i32 %133, i32 0, i32 45345123)
%135 = icmp ne i32 %134, 33
br i1 %135, label %136, label %138
136: ; preds = %131
%137 = call i32 @exit(i32 26)
unreachable
138: ; preds = %131
ret i32 0
}

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