#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*/ abort();
int /*<<< orphan*/ exit(int /*<<< orphan*/);
int /*<<< orphan*/ print_longlong(int /*<<< orphan*/, char *);
int /*<<< orphan*/ proc1();
int /*<<< orphan*/ proc2();
int /*<<< orphan*/ proc3();
int /*<<< orphan*/ proc4();
int /*<<< orphan*/ proc5();
scalar_t__ strcmp(char *, char *);
main() {
  char buf[100];
  print_longlong(proc1(), buf);
  if (strcmp("1", buf))
    abort();
  print_longlong(proc2(), buf);
  if (strcmp("12345678", buf))
    abort();
  print_longlong(proc3(), buf);
  if (strcmp("aabbccdd12345678", buf))
    abort();
  print_longlong(proc4(), buf);
  if (strcmp("ffffffffffffffff", buf))
    abort();
  print_longlong(proc5(), buf);
  if (strcmp("aabbccdd", buf))
    abort();
  exit(0);
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x70,%rsp
movl   $0x0,-0x4(%rbp)
mov    $0x0,%al
call   1080 <proc1@plt>
mov    %eax,%edi
lea    -0x70(%rbp),%rsi
call   1070 <print_longlong@plt>
lea    -0x70(%rbp),%rsi
lea    0xe44(%rip),%rdi
call   1060 <strcmp@plt>
cmp    $0x0,%rax
je     11d2 <main+0x42>
mov    $0x0,%al
call   1030 <abort@plt>
mov    $0x0,%al
call   1040 <proc2@plt>
mov    %eax,%edi
lea    -0x70(%rbp),%rsi
call   1070 <print_longlong@plt>
lea    -0x70(%rbp),%rsi
lea    0xe1b(%rip),%rdi
call   1060 <strcmp@plt>
cmp    $0x0,%rax
je     1205 <main+0x75>
mov    $0x0,%al
call   1030 <abort@plt>
mov    $0x0,%al
call   10a0 <proc3@plt>
mov    %eax,%edi
lea    -0x70(%rbp),%rsi
call   1070 <print_longlong@plt>
lea    -0x70(%rbp),%rsi
lea    0xde0(%rip),%rdi
call   1060 <strcmp@plt>
cmp    $0x0,%rax
je     1238 <main+0xa8>
mov    $0x0,%al
call   1030 <abort@plt>
mov    $0x0,%al
call   1050 <proc4@plt>
mov    %eax,%edi
lea    -0x70(%rbp),%rsi
call   1070 <print_longlong@plt>
lea    -0x70(%rbp),%rsi
lea    0xdbe(%rip),%rdi
call   1060 <strcmp@plt>
cmp    $0x0,%rax
je     126b <main+0xdb>
mov    $0x0,%al
call   1030 <abort@plt>
mov    $0x0,%al
call   1090 <proc5@plt>
mov    %eax,%edi
lea    -0x70(%rbp),%rsi
call   1070 <print_longlong@plt>
lea    -0x70(%rbp),%rsi
lea    0xd9c(%rip),%rdi
call   1060 <strcmp@plt>
cmp    $0x0,%rax
je     129e <main+0x10e>
mov    $0x0,%al
call   1030 <abort@plt>
xor    %edi,%edi
call   10b0 <exit@plt>

x86 assembly (clang, -O2):
<main>:
push   %rbx
sub    $0x70,%rsp
xor    %eax,%eax
call   1080 <proc1@plt>
mov    %rsp,%rbx
mov    %eax,%edi
mov    %rbx,%rsi
call   1070 <print_longlong@plt>
lea    0xe50(%rip),%rdi
mov    %rbx,%rsi
call   1060 <strcmp@plt>
test   %rax,%rax
jne    1268 <main+0xd8>
xor    %eax,%eax
call   1040 <proc2@plt>
mov    %rsp,%rbx
mov    %eax,%edi
mov    %rbx,%rsi
call   1070 <print_longlong@plt>
lea    0xe2e(%rip),%rdi
mov    %rbx,%rsi
call   1060 <strcmp@plt>
test   %rax,%rax
jne    1268 <main+0xd8>
xor    %eax,%eax
call   10a0 <proc3@plt>
mov    %rsp,%rbx
mov    %eax,%edi
mov    %rbx,%rsi
call   1070 <print_longlong@plt>
lea    0xdfe(%rip),%rdi
mov    %rbx,%rsi
call   1060 <strcmp@plt>
test   %rax,%rax
jne    1268 <main+0xd8>
xor    %eax,%eax
call   1050 <proc4@plt>
mov    %rsp,%rbx
mov    %eax,%edi
mov    %rbx,%rsi
call   1070 <print_longlong@plt>
lea    0xde7(%rip),%rdi
mov    %rbx,%rsi
call   1060 <strcmp@plt>
test   %rax,%rax
jne    1268 <main+0xd8>
xor    %eax,%eax
call   1090 <proc5@plt>
mov    %rsp,%rbx
mov    %eax,%edi
mov    %rbx,%rsi
call   1070 <print_longlong@plt>
lea    0xdd0(%rip),%rdi
mov    %rbx,%rsi
call   1060 <strcmp@plt>
test   %rax,%rax
jne    1268 <main+0xd8>
xor    %edi,%edi
call   10b0 <exit@plt>
xor    %eax,%eax
call   1030 <abort@plt>

LLVM IR (-O0):
@.str = [2 x i8] c"1\00"
@.str.1 = [9 x i8] c"12345678\00"
@.str.2 = [17 x i8] c"aabbccdd12345678\00"
@.str.3 = [17 x i8] c"ffffffffffffffff\00"
@.str.4 = [9 x i8] c"aabbccdd\00"
define i32 @main() {
%1 = alloca i32
%2 = alloca [100 x i8]
store i32 0, i32* %1
%3 = call i32 (...) @proc1()
%4 = getelementptr inbounds [100 x i8], [100 x i8]* %2, i64 0, i64 0
%5 = call i32 @print_longlong(i32 %3, i8* %4)
%6 = getelementptr inbounds [100 x i8], [100 x i8]* %2, i64 0, i64 0
%7 = call i64 @strcmp(i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str, i64 0, i64 0), i8* %6)
%8 = icmp ne i64 %7, 0
br i1 %8, label %9, label %11
9: ; preds = %0
%10 = call i32 (...) @abort()
unreachable
11: ; preds = %0
%12 = call i32 (...) @proc2()
%13 = getelementptr inbounds [100 x i8], [100 x i8]* %2, i64 0, i64 0
%14 = call i32 @print_longlong(i32 %12, i8* %13)
%15 = getelementptr inbounds [100 x i8], [100 x i8]* %2, i64 0, i64 0
%16 = call i64 @strcmp(i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str.1, i64 0, i64 0), i8* %15)
%17 = icmp ne i64 %16, 0
br i1 %17, label %18, label %20
18: ; preds = %11
%19 = call i32 (...) @abort()
unreachable
20: ; preds = %11
%21 = call i32 (...) @proc3()
%22 = getelementptr inbounds [100 x i8], [100 x i8]* %2, i64 0, i64 0
%23 = call i32 @print_longlong(i32 %21, i8* %22)
%24 = getelementptr inbounds [100 x i8], [100 x i8]* %2, i64 0, i64 0
%25 = call i64 @strcmp(i8* getelementptr inbounds ([17 x i8], [17 x i8]* @.str.2, i64 0, i64 0), i8* %24)
%26 = icmp ne i64 %25, 0
br i1 %26, label %27, label %29
27: ; preds = %20
%28 = call i32 (...) @abort()
unreachable
29: ; preds = %20
%30 = call i32 (...) @proc4()
%31 = getelementptr inbounds [100 x i8], [100 x i8]* %2, i64 0, i64 0
%32 = call i32 @print_longlong(i32 %30, i8* %31)
%33 = getelementptr inbounds [100 x i8], [100 x i8]* %2, i64 0, i64 0
%34 = call i64 @strcmp(i8* getelementptr inbounds ([17 x i8], [17 x i8]* @.str.3, i64 0, i64 0), i8* %33)
%35 = icmp ne i64 %34, 0
br i1 %35, label %36, label %38
36: ; preds = %29
%37 = call i32 (...) @abort()
unreachable
38: ; preds = %29
%39 = call i32 (...) @proc5()
%40 = getelementptr inbounds [100 x i8], [100 x i8]* %2, i64 0, i64 0
%41 = call i32 @print_longlong(i32 %39, i8* %40)
%42 = getelementptr inbounds [100 x i8], [100 x i8]* %2, i64 0, i64 0
%43 = call i64 @strcmp(i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str.4, i64 0, i64 0), i8* %42)
%44 = icmp ne i64 %43, 0
br i1 %44, label %45, label %47
45: ; preds = %38
%46 = call i32 (...) @abort()
unreachable
47: ; preds = %38
%48 = call i32 @exit(i32 0)
unreachable
}

LLVM IR (-O2):
@.str = [2 x i8] c"1\00"
@.str.1 = [9 x i8] c"12345678\00"
@.str.2 = [17 x i8] c"aabbccdd12345678\00"
@.str.3 = [17 x i8] c"ffffffffffffffff\00"
@.str.4 = [9 x i8] c"aabbccdd\00"
define i32 @main() {
%1 = alloca [100 x i8]
%2 = getelementptr inbounds [100 x i8], [100 x i8]* %1, i64 0, i64 0
%3 = tail call i32 (...) @proc1()
%4 = call i32 @print_longlong(i32 %3, i8* %2)
%5 = call i64 @strcmp(i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str, i64 0, i64 0), i8* %2)
%6 = icmp eq i64 %5, 0
br i1 %6, label %9, label %7
7: ; preds = %0
%8 = call i32 (...) @abort()
unreachable
9: ; preds = %0
%10 = call i32 (...) @proc2()
%11 = call i32 @print_longlong(i32 %10, i8* %2)
%12 = call i64 @strcmp(i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str.1, i64 0, i64 0), i8* %2)
%13 = icmp eq i64 %12, 0
br i1 %13, label %16, label %14
14: ; preds = %9
%15 = call i32 (...) @abort()
unreachable
16: ; preds = %9
%17 = call i32 (...) @proc3()
%18 = call i32 @print_longlong(i32 %17, i8* %2)
%19 = call i64 @strcmp(i8* getelementptr inbounds ([17 x i8], [17 x i8]* @.str.2, i64 0, i64 0), i8* %2)
%20 = icmp eq i64 %19, 0
br i1 %20, label %23, label %21
21: ; preds = %16
%22 = call i32 (...) @abort()
unreachable
23: ; preds = %16
%24 = call i32 (...) @proc4()
%25 = call i32 @print_longlong(i32 %24, i8* %2)
%26 = call i64 @strcmp(i8* getelementptr inbounds ([17 x i8], [17 x i8]* @.str.3, i64 0, i64 0), i8* %2)
%27 = icmp eq i64 %26, 0
br i1 %27, label %30, label %28
28: ; preds = %23
%29 = call i32 (...) @abort()
unreachable
30: ; preds = %23
%31 = call i32 (...) @proc5()
%32 = call i32 @print_longlong(i32 %31, i8* %2)
%33 = call i64 @strcmp(i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str.4, i64 0, i64 0), i8* %2)
%34 = icmp eq i64 %33, 0
br i1 %34, label %37, label %35
35: ; preds = %30
%36 = call i32 (...) @abort()
unreachable
37: ; preds = %30
%38 = call i32 @exit(i32 0)
unreachable
}