xunge/DecIR huggingface dataset:
int charclass(char input) {
  if (input == 0)
    return 5;
  else
    switch (input) {
    case '\'':
      return 0;
    case '"':
      return 1;
    case '\\':
      return 2;
    case ' ':
      return 3;
    case '\t':
      return 3;
    default:
      return 4;
    }
}


x86 assembly (clang, -O0):
<charclass>:
push   %rbp
mov    %rsp,%rbp
mov    %dil,%al
mov    %al,-0x5(%rbp)
movsbl -0x5(%rbp),%eax
cmp    $0x0,%eax
jne    1123 <charclass+0x23>
movl   $0x5,-0x4(%rbp)
jmp    11bf <charclass+0xbf>
movsbl -0x5(%rbp),%eax
mov    %eax,-0xc(%rbp)
sub    $0x9,%eax
je     11ac <charclass+0xac>
jmp    1138 <charclass+0x38>
mov    -0xc(%rbp),%eax
sub    $0x20,%eax
je     11a0 <charclass+0xa0>
jmp    1149 <charclass+0x49>
mov    -0xc(%rbp),%eax
sub    $0x22,%eax
je     1188 <charclass+0x88>
jmp    115a <charclass+0x5a>
mov    -0xc(%rbp),%eax
sub    $0x27,%eax
je     117c <charclass+0x7c>
jmp    116b <charclass+0x6b>
mov    -0xc(%rbp),%eax
sub    $0x5c,%eax
je     1194 <charclass+0x94>
jmp    11b8 <charclass+0xb8>
movl   $0x0,-0x4(%rbp)
jmp    11bf <charclass+0xbf>
movl   $0x1,-0x4(%rbp)
jmp    11bf <charclass+0xbf>
movl   $0x2,-0x4(%rbp)
jmp    11bf <charclass+0xbf>
movl   $0x3,-0x4(%rbp)
jmp    11bf <charclass+0xbf>
movl   $0x3,-0x4(%rbp)
jmp    11bf <charclass+0xbf>
movl   $0x4,-0x4(%rbp)
mov    -0x4(%rbp),%eax
pop    %rbp
ret

x86 assembly (clang, -O2):
<charclass>:
test   %dil,%dil
je     1129 <charclass+0x29>
movsbl %dil,%eax
lea    -0x9(%rax),%ecx
cmp    $0x1e,%ecx
ja     112f <charclass+0x2f>
xor    %eax,%eax
lea    0xee6(%rip),%rdx
movslq (%rdx,%rcx,4),%rcx
add    %rdx,%rcx
jmp    *%rcx
mov    $0x3,%eax
ret
mov    $0x5,%eax
ret
cmp    $0x5c,%eax
jne    113a <charclass+0x3a>
mov    $0x2,%eax
ret
mov    $0x4,%eax
ret
mov    $0x1,%eax
ret

LLVM IR (-O0):
define i32 @charclass(i8 signext %0) {
%2 = alloca i32
%3 = alloca i8
store i8 %0, i8* %3
%4 = load i8, i8* %3
%5 = sext i8 %4 to i32
%6 = icmp eq i32 %5, 0
br i1 %6, label %7, label %8
7: ; preds = %1
store i32 5, i32* %2
br label %17
8: ; preds = %1
%9 = load i8, i8* %3
%10 = sext i8 %9 to i32
switch i32 %10, label %16 [
i32 39, label %11
i32 34, label %12
i32 92, label %13
i32 32, label %14
i32 9, label %15
]
11: ; preds = %8
store i32 0, i32* %2
br label %17
12: ; preds = %8
store i32 1, i32* %2
br label %17
13: ; preds = %8
store i32 2, i32* %2
br label %17
14: ; preds = %8
store i32 3, i32* %2
br label %17
15: ; preds = %8
store i32 3, i32* %2
br label %17
16: ; preds = %8
store i32 4, i32* %2
br label %17
17: ; preds = %16, %15, %14, %13, %12, %11, %7
%18 = load i32, i32* %2
ret i32 %18
}

LLVM IR (-O2):
define i32 @charclass(i8 signext %0) {
%2 = icmp eq i8 %0, 0
br i1 %2, label %10, label %3
3: ; preds = %1
%4 = sext i8 %0 to i32
switch i32 %4, label %9 [
i32 39, label %10
i32 34, label %5
i32 92, label %6
i32 32, label %7
i32 9, label %8
]
5: ; preds = %3
br label %10
6: ; preds = %3
br label %10
7: ; preds = %3
br label %10
8: ; preds = %3
br label %10
9: ; preds = %3
br label %10
10: ; preds = %3, %1, %9, %8, %7, %6, %5
%11 = phi i32 [ 4, %9 ], [ 3, %8 ], [ 3, %7 ], [ 2, %6 ], [ 1, %5 ], [ 5, %1 ], [ 0, %3 ]
ret i32 %11
}
int testbit(const void *key, int bit) {
  return (1 << (7 - (bit & 7))) & ((const char *)key)[bit >> 3];
}


x86 assembly (clang, -O0):
<testbit>:
push   %rbp
mov    %rsp,%rbp
mov    %rdi,-0x8(%rbp)
mov    %esi,-0xc(%rbp)
mov    -0xc(%rbp),%eax
and    $0x7,%eax
mov    $0x7,%ecx
sub    %eax,%ecx
mov    $0x1,%eax
shl    %cl,%eax
mov    -0x8(%rbp),%rcx
mov    -0xc(%rbp),%edx
sar    $0x3,%edx
movslq %edx,%rdx
movsbl (%rcx,%rdx,1),%ecx
and    %ecx,%eax
pop    %rbp
ret

x86 assembly (clang, -O2):
<testbit>:
mov    %esi,%ecx
not    %cl
and    $0x7,%cl
mov    $0x1,%edx
shl    %cl,%edx
sar    $0x3,%esi
movslq %esi,%rax
movzbl (%rdi,%rax,1),%eax
and    %edx,%eax
ret

LLVM IR (-O0):
define i32 @testbit(i8* %0, i32 %1) {
%3 = alloca i8*
%4 = alloca i32
store i8* %0, i8** %3
store i32 %1, i32* %4
%5 = load i32, i32* %4
%6 = and i32 %5, 7
%7 = sub nsw i32 7, %6
%8 = shl i32 1, %7
%9 = load i8*, i8** %3
%10 = load i32, i32* %4
%11 = ashr i32 %10, 3
%12 = sext i32 %11 to i64
%13 = getelementptr inbounds i8, i8* %9, i64 %12
%14 = load i8, i8* %13
%15 = sext i8 %14 to i32
%16 = and i32 %8, %15
ret i32 %16
}

LLVM IR (-O2):
define i32 @testbit(i8* nocapture %0, i32 %1) {
%3 = and i32 %1, 7
%4 = xor i32 %3, 7
%5 = shl nuw i32 1, %4
%6 = ashr i32 %1, 3
%7 = sext i32 %6 to i64
%8 = getelementptr inbounds i8, i8* %0, i64 %7
%9 = load i8, i8* %8
%10 = zext i8 %9 to i32
%11 = and i32 %5, %10
ret i32 %11
}
/* Variables and functions */
int /*<<< orphan*/ NEG();
int /*<<< orphan*/ T_WAIT_UNTIL(int);
void op_ED_0x64(void) {
  NEG();
  T_WAIT_UNTIL(4);
  return;
}


x86 assembly (clang, -O0):
<op_ED_0x64>:
push   %rbp
mov    %rsp,%rbp
mov    $0x0,%al
call   1040 <NEG@plt>
mov    $0x4,%edi
call   1030 <T_WAIT_UNTIL@plt>
pop    %rbp
ret

x86 assembly (clang, -O2):
<op_ED_0x64>:
push   %rax
xor    %eax,%eax
call   1040 <NEG@plt>
mov    $0x4,%edi
pop    %rax
jmp    1030 <T_WAIT_UNTIL@plt>

LLVM IR (-O0):
define void @op_ED_0x64() {
%1 = call i32 (...) @NEG()
%2 = call i32 @T_WAIT_UNTIL(i32 4)
ret void
}

LLVM IR (-O2):
define void @op_ED_0x64() {
%1 = tail call i32 (...) @NEG()
%2 = tail call i32 @T_WAIT_UNTIL(i32 4)
ret void
}
/* Variables and functions */
int get_num();
int /*<<< orphan*/ print_bad();
int /*<<< orphan*/ print_good();
int main() {
  int num;
  while (1) {
    num = get_num();
    if (num == 1337 || num == 7331 ||
        ((num * 3 + 3321) * 2 + 7331) / 3 == 7333) {
      print_good();
    } else {
      print_bad();
    }
  }
  return 0;
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
movl   $0x0,-0x4(%rbp)
mov    $0x0,%al
call   1030 <get_num@plt>
mov    %eax,-0x8(%rbp)
cmpl   $0x539,-0x8(%rbp)
je     1187 <main+0x57>
cmpl   $0x1ca3,-0x8(%rbp)
je     1187 <main+0x57>
imul   $0x3,-0x8(%rbp),%eax
add    $0xcf9,%eax
shl    $0x1,%eax
add    $0x1ca3,%eax
mov    $0x3,%ecx
cltd
idiv   %ecx
cmp    $0x1ca5,%eax
jne    1193 <main+0x63>
mov    $0x0,%al
call   1040 <print_good@plt>
jmp    119a <main+0x6a>
mov    $0x0,%al
call   1050 <print_bad@plt>
jmp    113f <main+0xf>

x86 assembly (clang, -O2):
<main>:
push   %rax
jmp    1147 <main+0x17>
cs nopw 0x0(%rax,%rax,1)
nopl   (%rax)
xor    %eax,%eax
call   1040 <print_good@plt>
xor    %eax,%eax
call   1030 <get_num@plt>
cmp    $0x539,%eax
je     1140 <main+0x10>
cmp    $0x1ca3,%eax
je     1140 <main+0x10>
lea    (%rax,%rax,2),%eax
add    %eax,%eax
add    $0xffffe0a6,%eax
cmp    $0x2,%eax
jbe    1140 <main+0x10>
xor    %eax,%eax
call   1050 <print_bad@plt>
jmp    1147 <main+0x17>

LLVM IR (-O0):
define i32 @main() {
%1 = alloca i32
%2 = alloca i32
store i32 0, i32* %1
br label %3
3: ; preds = %0, %22
%4 = call i32 (...) @get_num()
store i32 %4, i32* %2
%5 = load i32, i32* %2
%6 = icmp eq i32 %5, 1337
br i1 %6, label %18, label %7
7: ; preds = %3
%8 = load i32, i32* %2
%9 = icmp eq i32 %8, 7331
br i1 %9, label %18, label %10
10: ; preds = %7
%11 = load i32, i32* %2
%12 = mul nsw i32 %11, 3
%13 = add nsw i32 %12, 3321
%14 = mul nsw i32 %13, 2
%15 = add nsw i32 %14, 7331
%16 = sdiv i32 %15, 3
%17 = icmp eq i32 %16, 7333
br i1 %17, label %18, label %20
18: ; preds = %10, %7, %3
%19 = call i32 (...) @print_good()
br label %22
20: ; preds = %10
%21 = call i32 (...) @print_bad()
br label %22
22: ; preds = %20, %18
br label %3
}

LLVM IR (-O2):
define i32 @main() {
br label %1
1: ; preds = %11, %0
%2 = tail call i32 (...) @get_num()
switch i32 %2, label %3 [
i32 7331, label %7
i32 1337, label %7
]
3: ; preds = %1
%4 = mul i32 %2, 6
%5 = add i32 %4, -8026
%6 = icmp ult i32 %5, 3
br i1 %6, label %7, label %9
7: ; preds = %1, %1, %3
%8 = tail call i32 (...) @print_good()
br label %11
9: ; preds = %3
%10 = tail call i32 (...) @print_bad()
br label %11
11: ; preds = %9, %7
br label %1
}
/* Variables and functions */
int fac(int);
int sum_function(int acc, int x) {
  int f = fac(x);
  return acc + f;
}


x86 assembly (clang, -O0):
<sum_function>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
mov    %edi,-0x4(%rbp)
mov    %esi,-0x8(%rbp)
mov    -0x8(%rbp),%edi
call   1030 <fac@plt>
mov    %eax,-0xc(%rbp)
mov    -0x4(%rbp),%eax
add    -0xc(%rbp),%eax
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<sum_function>:
push   %rbx
mov    %edi,%ebx
mov    %esi,%edi
call   1030 <fac@plt>
add    %ebx,%eax
pop    %rbx
ret

LLVM IR (-O0):
define i32 @sum_function(i32 %0, i32 %1) {
%3 = alloca i32
%4 = alloca i32
%5 = alloca i32
store i32 %0, i32* %3
store i32 %1, i32* %4
%6 = load i32, i32* %4
%7 = call i32 @fac(i32 %6)
store i32 %7, i32* %5
%8 = load i32, i32* %3
%9 = load i32, i32* %5
%10 = add nsw i32 %8, %9
ret i32 %10
}

LLVM IR (-O2):
define i32 @sum_function(i32 %0, i32 %1) {
%3 = tail call i32 @fac(i32 %1)
%4 = add nsw i32 %3, %0
ret i32 %4
}
/* Type definitions */
typedef int uint8_t;

/* Variables and functions */
uint8_t bcd2int(uint8_t value) { return (value & 0x0f) + 10 * (value >> 4); }


x86 assembly (clang, -O0):
<bcd2int>:
push   %rbp
mov    %rsp,%rbp
mov    %edi,-0x4(%rbp)
mov    -0x4(%rbp),%eax
and    $0xf,%eax
mov    -0x4(%rbp),%ecx
sar    $0x4,%ecx
imul   $0xa,%ecx,%ecx
add    %ecx,%eax
pop    %rbp
ret

x86 assembly (clang, -O2):
<bcd2int>:
mov    %edi,%eax
and    $0xf,%eax
sar    $0x4,%edi
lea    (%rdi,%rdi,4),%ecx
lea    (%rax,%rcx,2),%eax
ret

LLVM IR (-O0):
define i32 @bcd2int(i32 %0) {
%2 = alloca i32
store i32 %0, i32* %2
%3 = load i32, i32* %2
%4 = and i32 %3, 15
%5 = load i32, i32* %2
%6 = ashr i32 %5, 4
%7 = mul nsw i32 10, %6
%8 = add nsw i32 %4, %7
ret i32 %8
}

LLVM IR (-O2):
define i32 @bcd2int(i32 %0) {
%2 = and i32 %0, 15
%3 = ashr i32 %0, 4
%4 = mul nsw i32 %3, 10
%5 = add nsw i32 %4, %2
ret i32 %5
}
long extract_bba(unsigned long insn, int dialect __attribute__((unused)),
                 int *invalid) {
  if (((insn >> 16) & 0x1f) != ((insn >> 11) & 0x1f))
    *invalid = 1;
  return 0;
}


x86 assembly (clang, -O0):
<extract_bba>:
push   %rbp
mov    %rsp,%rbp
mov    %rdi,-0x8(%rbp)
mov    %esi,-0xc(%rbp)
mov    %rdx,-0x18(%rbp)
mov    -0x8(%rbp),%rax
shr    $0x10,%rax
and    $0x1f,%rax
mov    -0x8(%rbp),%rcx
shr    $0xb,%rcx
and    $0x1f,%rcx
cmp    %rcx,%rax
je     113a <extract_bba+0x3a>
mov    -0x18(%rbp),%rax
movl   $0x1,(%rax)
xor    %eax,%eax
pop    %rbp
ret

x86 assembly (clang, -O2):
<extract_bba>:
mov    %edi,%eax
shr    $0xb,%eax
shr    $0x10,%edi
xor    %eax,%edi
test   $0x1f,%dil
je     1116 <extract_bba+0x16>
movl   $0x1,(%rdx)
xor    %eax,%eax
ret

LLVM IR (-O0):
define i64 @extract_bba(i64 %0, i32 %1, i32* %2) {
%4 = alloca i64
%5 = alloca i32
%6 = alloca i32*
store i64 %0, i64* %4
store i32 %1, i32* %5
store i32* %2, i32** %6
%7 = load i64, i64* %4
%8 = lshr i64 %7, 16
%9 = and i64 %8, 31
%10 = load i64, i64* %4
%11 = lshr i64 %10, 11
%12 = and i64 %11, 31
%13 = icmp ne i64 %9, %12
br i1 %13, label %14, label %16
14: ; preds = %3
%15 = load i32*, i32** %6
store i32 1, i32* %15
br label %16
16: ; preds = %14, %3
ret i64 0
}

LLVM IR (-O2):
define i64 @extract_bba(i64 %0, i32 %1, i32* nocapture writeonly %2) {
%4 = lshr i64 %0, 16
%5 = lshr i64 %0, 11
%6 = xor i64 %4, %5
%7 = and i64 %6, 31
%8 = icmp eq i64 %7, 0
br i1 %8, label %10, label %9
9: ; preds = %3
store i32 1, i32* %2
br label %10
10: ; preds = %9, %3
ret i64 0
}
int MOU_Poll(void) { return 1; }


x86 assembly (clang, -O0):
<MOU_Poll>:
push   %rbp
mov    %rsp,%rbp
mov    $0x1,%eax
pop    %rbp
ret

x86 assembly (clang, -O2):
<MOU_Poll>:
mov    $0x1,%eax
ret

LLVM IR (-O0):
define i32 @MOU_Poll() {
ret i32 1
}

LLVM IR (-O2):
define i32 @MOU_Poll() {
ret i32 1
}
/* Variables and functions */
int /*<<< orphan*/ printf(char *, ...);
int /*<<< orphan*/ scanf(char *, float *);
int main() {
  float cm;
  printf("Centrímetro: ");
  scanf("%f", &cm);
  printf("Polegada: %.2f", cm / 2.54);
  return 0;
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
movl   $0x0,-0x4(%rbp)
lea    0xed2(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0xed3(%rip),%rdi
lea    -0x8(%rbp),%rsi
call   1040 <scanf@plt>
movss  -0x8(%rbp),%xmm0
cvtss2sd %xmm0,%xmm0
movsd  0xea2(%rip),%xmm1
divsd  %xmm1,%xmm0
lea    0xeb1(%rip),%rdi
mov    $0x1,%al
call   1030 <printf@plt>
xor    %eax,%eax
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %rax
lea    0xee0(%rip),%rdi
xor    %eax,%eax
call   1030 <printf@plt>
lea    0xee1(%rip),%rdi
lea    0x4(%rsp),%rsi
call   1040 <scanf@plt>
movss  0x4(%rsp),%xmm0
cvtss2sd %xmm0,%xmm0
divsd  0xeae(%rip),%xmm0
lea    0xec1(%rip),%rdi
mov    $0x1,%al
call   1030 <printf@plt>
xor    %eax,%eax
pop    %rcx
ret

LLVM IR (-O0):
@.str = [15 x i8] c"Centr\C3\ADmetro: \00"
@.str.1 = [3 x i8] c"%f\00"
@.str.2 = [15 x i8] c"Polegada: %.2f\00"
define i32 @main() {
%1 = alloca i32
%2 = alloca float
store i32 0, i32* %1
%3 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([15 x i8], [15 x i8]* @.str, i64 0, i64 0))
%4 = call i32 @scanf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.1, i64 0, i64 0), float* %2)
%5 = load float, float* %2
%6 = fpext float %5 to double
%7 = fdiv double %6, 2.540000e+00
%8 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([15 x i8], [15 x i8]* @.str.2, i64 0, i64 0), double %7)
ret i32 0
}

LLVM IR (-O2):
@.str = [15 x i8] c"Centr\C3\ADmetro: \00"
@.str.1 = [3 x i8] c"%f\00"
@.str.2 = [15 x i8] c"Polegada: %.2f\00"
define i32 @main() {
%1 = alloca float
%2 = bitcast float* %1 to i8*
%3 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([15 x i8], [15 x i8]* @.str, i64 0, i64 0))
%4 = call i32 @scanf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.1, i64 0, i64 0), float* %1)
%5 = load float, float* %1
%6 = fpext float %5 to double
%7 = fdiv double %6, 2.540000e+00
%8 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([15 x i8], [15 x i8]* @.str.2, i64 0, i64 0), double %7)
ret i32 0
}
/* Variables and functions */
int /*<<< orphan*/ exit(int);
int /*<<< orphan*/ fprintf(int /*<<< orphan*/, char *);
int /*<<< orphan*/ stderr;
void usage() {
  (void)fprintf(stderr, "usage: pig\n");
  exit(1);
}


x86 assembly (clang, -O0):
<usage>:
push   %rbp
mov    %rsp,%rbp
mov    0x2eb5(%rip),%rax
mov    (%rax),%edi
lea    0xecc(%rip),%rsi
call   1030 <fprintf@plt>
mov    $0x1,%edi
call   1040 <exit@plt>

x86 assembly (clang, -O2):
<usage>:
push   %rax
mov    0x2eb8(%rip),%rax
mov    (%rax),%edi
lea    0xecf(%rip),%rsi
call   1030 <fprintf@plt>
mov    $0x1,%edi
call   1040 <exit@plt>

LLVM IR (-O0):
@stderr = global i32 0
@.str = [12 x i8] c"usage: pig\0A\00"
define void @usage() {
%1 = load i32, i32* @stderr
%2 = call i32 @fprintf(i32 %1, i8* getelementptr inbounds ([12 x i8], [12 x i8]* @.str, i64 0, i64 0))
%3 = call i32 @exit(i32 1)
unreachable
}

LLVM IR (-O2):
@stderr = global i32 0
@.str = [12 x i8] c"usage: pig\0A\00"
define void @usage() {
%1 = load i32, i32* @stderr
%2 = tail call i32 @fprintf(i32 %1, i8* getelementptr inbounds ([12 x i8], [12 x i8]* @.str, i64 0, i64 0))
%3 = tail call i32 @exit(i32 1)
unreachable
}
void rl_fini_alloc(void) {}


x86 assembly (clang, -O0):
<rl_fini_alloc>:
push   %rbp
mov    %rsp,%rbp
pop    %rbp
ret

x86 assembly (clang, -O2):
<rl_fini_alloc>:
ret

LLVM IR (-O0):
define void @rl_fini_alloc() {
ret void
}

LLVM IR (-O2):
define void @rl_fini_alloc() {
ret void
}
/* Variables and functions */
int /*<<< orphan*/ _SCOTCHintRandSeed(int);
void SCOTCH_randomSeed(int seedval) { _SCOTCHintRandSeed(seedval); }


x86 assembly (clang, -O0):
<SCOTCH_randomSeed>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
mov    %edi,-0x4(%rbp)
mov    -0x4(%rbp),%edi
call   1030 <_SCOTCHintRandSeed@plt>
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<SCOTCH_randomSeed>:
jmp    1030 <_SCOTCHintRandSeed@plt>

LLVM IR (-O0):
define void @SCOTCH_randomSeed(i32 %0) {
%2 = alloca i32
store i32 %0, i32* %2
%3 = load i32, i32* %2
%4 = call i32 @_SCOTCHintRandSeed(i32 %3)
ret void
}

LLVM IR (-O2):
define void @SCOTCH_randomSeed(i32 %0) {
%2 = tail call i32 @_SCOTCHintRandSeed(i32 %0)
ret void
}
/* Type definitions */
typedef int /*<<< orphan*/ mpz_t;
typedef int /*<<< orphan*/ int64_t;

/* Variables and functions */
int /*<<< orphan*/ mpz_clear(int /*<<< orphan*/);
int /*<<< orphan*/ mpz_init(int /*<<< orphan*/);
int /*<<< orphan*/ mpz_set_int64(int /*<<< orphan*/, int /*<<< orphan*/);
int /*<<< orphan*/ mpz_sub(int /*<<< orphan*/, int /*<<< orphan*/,
                           int /*<<< orphan*/);
void mpz_sub_int64(mpz_t z, int64_t x) {
  mpz_t aux;
  mpz_init(aux);
  mpz_set_int64(aux, x);
  mpz_sub(z, z, aux);
  mpz_clear(aux);
}


x86 assembly (clang, -O0):
<mpz_sub_int64>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
mov    %edi,-0x4(%rbp)
mov    %esi,-0x8(%rbp)
mov    -0xc(%rbp),%edi
call   1050 <mpz_init@plt>
mov    -0xc(%rbp),%edi
mov    -0x8(%rbp),%esi
call   1030 <mpz_set_int64@plt>
mov    -0x4(%rbp),%edi
mov    -0x4(%rbp),%esi
mov    -0xc(%rbp),%edx
call   1040 <mpz_sub@plt>
mov    -0xc(%rbp),%edi
call   1060 <mpz_clear@plt>
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<mpz_sub_int64>:
push   %rbp
push   %rbx
push   %rax
mov    %esi,%ebx
mov    %edi,%ebp
call   1050 <mpz_init@plt>
mov    %ebx,%esi
call   1030 <mpz_set_int64@plt>
mov    %ebp,%edi
mov    %ebp,%esi
call   1040 <mpz_sub@plt>
add    $0x8,%rsp
pop    %rbx
pop    %rbp
jmp    1060 <mpz_clear@plt>

LLVM IR (-O0):
define void @mpz_sub_int64(i32 %0, i32 %1) {
%3 = alloca i32
%4 = alloca i32
%5 = alloca i32
store i32 %0, i32* %3
store i32 %1, i32* %4
%6 = load i32, i32* %5
%7 = call i32 @mpz_init(i32 %6)
%8 = load i32, i32* %5
%9 = load i32, i32* %4
%10 = call i32 @mpz_set_int64(i32 %8, i32 %9)
%11 = load i32, i32* %3
%12 = load i32, i32* %3
%13 = load i32, i32* %5
%14 = call i32 @mpz_sub(i32 %11, i32 %12, i32 %13)
%15 = load i32, i32* %5
%16 = call i32 @mpz_clear(i32 %15)
ret void
}

LLVM IR (-O2):
define void @mpz_sub_int64(i32 %0, i32 %1) {
%3 = tail call i32 @mpz_init(i32 undef)
%4 = tail call i32 @mpz_set_int64(i32 undef, i32 %1)
%5 = tail call i32 @mpz_sub(i32 %0, i32 %0, i32 undef)
%6 = tail call i32 @mpz_clear(i32 undef)
ret void
}
/* Variables and functions */
int /*<<< orphan*/ isspace(char);
char *Cmd_SkipChars(char *ptr) {
  while (*ptr && !isspace(*ptr))
    ++ptr;
  return ptr;
}


x86 assembly (clang, -O0):
<Cmd_SkipChars>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
mov    %rdi,-0x8(%rbp)
mov    -0x8(%rbp),%rax
movsbl (%rax),%ecx
xor    %eax,%eax
cmp    $0x0,%ecx
mov    %al,-0x9(%rbp)
je     1148 <Cmd_SkipChars+0x38>
mov    -0x8(%rbp),%rax
movsbl (%rax),%edi
call   1030 <isspace@plt>
cmp    $0x0,%eax
setne  %al
xor    $0xff,%al
mov    %al,-0x9(%rbp)
mov    -0x9(%rbp),%al
test   $0x1,%al
jne    1158 <Cmd_SkipChars+0x48>
jmp    1169 <Cmd_SkipChars+0x59>
mov    -0x8(%rbp),%rax
add    $0x1,%rax
mov    %rax,-0x8(%rbp)
jmp    111c <Cmd_SkipChars+0xc>
mov    -0x8(%rbp),%rax
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<Cmd_SkipChars>:
push   %rbx
mov    %rdi,%rbx
mov    (%rdi),%al
test   %al,%al
je     1138 <Cmd_SkipChars+0x28>
nopw   0x0(%rax,%rax,1)
movsbl %al,%edi
call   1030 <isspace@plt>
test   %eax,%eax
jne    1138 <Cmd_SkipChars+0x28>
movzbl 0x1(%rbx),%eax
add    $0x1,%rbx
test   %al,%al
jne    1120 <Cmd_SkipChars+0x10>
mov    %rbx,%rax
pop    %rbx
ret

LLVM IR (-O0):
define i8* @Cmd_SkipChars(i8* %0) {
%2 = alloca i8*
store i8* %0, i8** %2
br label %3
3: ; preds = %16, %1
%4 = load i8*, i8** %2
%5 = load i8, i8* %4
%6 = sext i8 %5 to i32
%7 = icmp ne i32 %6, 0
br i1 %7, label %8, label %14
8: ; preds = %3
%9 = load i8*, i8** %2
%10 = load i8, i8* %9
%11 = call i32 @isspace(i8 signext %10)
%12 = icmp ne i32 %11, 0
%13 = xor i1 %12, true
br label %14
14: ; preds = %8, %3
%15 = phi i1 [ false, %3 ], [ %13, %8 ]
br i1 %15, label %16, label %19
16: ; preds = %14
%17 = load i8*, i8** %2
%18 = getelementptr inbounds i8, i8* %17, i32 1
store i8* %18, i8** %2
br label %3
19: ; preds = %14
%20 = load i8*, i8** %2
ret i8* %20
}

LLVM IR (-O2):
define i8* @Cmd_SkipChars(i8* %0) {
%2 = load i8, i8* %0
%3 = icmp eq i8 %2, 0
br i1 %3, label %13, label %4
4: ; preds = %1, %9
%5 = phi i8 [ %11, %9 ], [ %2, %1 ]
%6 = phi i8* [ %10, %9 ], [ %0, %1 ]
%7 = tail call i32 @isspace(i8 signext %5)
%8 = icmp eq i32 %7, 0
br i1 %8, label %9, label %13
9: ; preds = %4
%10 = getelementptr inbounds i8, i8* %6, i64 1
%11 = load i8, i8* %10
%12 = icmp eq i8 %11, 0
br i1 %12, label %13, label %4
13: ; preds = %4, %9, %1
%14 = phi i8* [ %0, %1 ], [ %10, %9 ], [ %6, %4 ]
ret i8* %14
}
/* Variables and functions */
int lexer();
int /*<<< orphan*/ printf(char *, int);
int main(int argc, char **argv) {
  int val;
  while (val = lexer())
    printf("value is %d.\n", val);
  return 0;
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x20,%rsp
movl   $0x0,-0x4(%rbp)
mov    %edi,-0x8(%rbp)
mov    %rsi,-0x10(%rbp)
mov    $0x0,%al
call   1040 <lexer@plt>
mov    %eax,-0x14(%rbp)
cmp    $0x0,%eax
je     115d <main+0x3d>
mov    -0x14(%rbp),%esi
lea    0xead(%rip),%rdi
call   1030 <printf@plt>
jmp    1136 <main+0x16>
xor    %eax,%eax
add    $0x20,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %rbx
xor    %eax,%eax
call   1040 <lexer@plt>
test   %eax,%eax
je     1155 <main+0x35>
lea    0xecd(%rip),%rbx
cs nopw 0x0(%rax,%rax,1)
nopl   (%rax)
mov    %rbx,%rdi
mov    %eax,%esi
call   1030 <printf@plt>
xor    %eax,%eax
call   1040 <lexer@plt>
test   %eax,%eax
jne    1140 <main+0x20>
xor    %eax,%eax
pop    %rbx
ret

LLVM IR (-O0):
@.str = [14 x i8] c"value is %d.\0A\00"
define i32 @main(i32 %0, i8** %1) {
%3 = alloca i32
%4 = alloca i32
%5 = alloca i8**
%6 = alloca i32
store i32 0, i32* %3
store i32 %0, i32* %4
store i8** %1, i8*** %5
br label %7
7: ; preds = %10, %2
%8 = call i32 (...) @lexer()
store i32 %8, i32* %6
%9 = icmp ne i32 %8, 0
br i1 %9, label %10, label %13
10: ; preds = %7
%11 = load i32, i32* %6
%12 = call i32 @printf(i8* getelementptr inbounds ([14 x i8], [14 x i8]* @.str, i64 0, i64 0), i32 %11)
br label %7
13: ; preds = %7
ret i32 0
}

LLVM IR (-O2):
@.str = [14 x i8] c"value is %d.\0A\00"
define i32 @main(i32 %0, i8** nocapture readnone %1) {
%3 = tail call i32 (...) @lexer()
%4 = icmp eq i32 %3, 0
br i1 %4, label %10, label %5
5: ; preds = %2, %5
%6 = phi i32 [ %8, %5 ], [ %3, %2 ]
%7 = tail call i32 @printf(i8* getelementptr inbounds ([14 x i8], [14 x i8]* @.str, i64 0, i64 0), i32 %6)
%8 = tail call i32 (...) @lexer()
%9 = icmp eq i32 %8, 0
br i1 %9, label %10, label %5
10: ; preds = %5, %2
ret i32 0
}
void ptrace_sandbox_permit_write(struct pt_sandbox *p_sandbox) {
  (void)p_sandbox;
}


x86 assembly (clang, -O0):
<ptrace_sandbox_permit_write>:
push   %rbp
mov    %rsp,%rbp
mov    %rdi,-0x8(%rbp)
pop    %rbp
ret

x86 assembly (clang, -O2):
<ptrace_sandbox_permit_write>:
ret

LLVM IR (-O0):
%struct.pt_sandbox = type opaque
define void @ptrace_sandbox_permit_write(%struct.pt_sandbox* %0) {
%2 = alloca %struct.pt_sandbox*
store %struct.pt_sandbox* %0, %struct.pt_sandbox** %2
%3 = load %struct.pt_sandbox*, %struct.pt_sandbox** %2
ret void
}

LLVM IR (-O2):
%struct.pt_sandbox = type opaque
define void @ptrace_sandbox_permit_write(%struct.pt_sandbox* nocapture %0) {
ret void
}
int Random(int *m_z, int *m_w) {
  *m_z = 36969 * (*m_z & 65535) + (*m_z >> 16);
  *m_w = 18000 * (*m_w & 65535) + (*m_w >> 16);
  return ((*m_z << 16) + *m_w);
}


x86 assembly (clang, -O0):
<Random>:
push   %rbp
mov    %rsp,%rbp
mov    %rdi,-0x8(%rbp)
mov    %rsi,-0x10(%rbp)
mov    -0x8(%rbp),%rax
mov    (%rax),%eax
and    $0xffff,%eax
imul   $0x9069,%eax,%ecx
mov    -0x8(%rbp),%rax
mov    (%rax),%eax
sar    $0x10,%eax
add    %eax,%ecx
mov    -0x8(%rbp),%rax
mov    %ecx,(%rax)
mov    -0x10(%rbp),%rax
mov    (%rax),%eax
and    $0xffff,%eax
imul   $0x4650,%eax,%ecx
mov    -0x10(%rbp),%rax
mov    (%rax),%eax
sar    $0x10,%eax
add    %eax,%ecx
mov    -0x10(%rbp),%rax
mov    %ecx,(%rax)
mov    -0x8(%rbp),%rax
mov    (%rax),%eax
shl    $0x10,%eax
mov    -0x10(%rbp),%rcx
add    (%rcx),%eax
pop    %rbp
ret

x86 assembly (clang, -O2):
<Random>:
mov    (%rdi),%eax
movzwl %ax,%ecx
imul   $0x9069,%ecx,%ecx
sar    $0x10,%eax
add    %ecx,%eax
mov    %eax,(%rdi)
mov    (%rsi),%ecx
movzwl %cx,%eax
imul   $0x4650,%eax,%eax
sar    $0x10,%ecx
add    %eax,%ecx
mov    %ecx,(%rsi)
mov    (%rdi),%eax
shl    $0x10,%eax
add    %ecx,%eax
ret

LLVM IR (-O0):
define i32 @Random(i32* %0, i32* %1) {
%3 = alloca i32*
%4 = alloca i32*
store i32* %0, i32** %3
store i32* %1, i32** %4
%5 = load i32*, i32** %3
%6 = load i32, i32* %5
%7 = and i32 %6, 65535
%8 = mul nsw i32 36969, %7
%9 = load i32*, i32** %3
%10 = load i32, i32* %9
%11 = ashr i32 %10, 16
%12 = add nsw i32 %8, %11
%13 = load i32*, i32** %3
store i32 %12, i32* %13
%14 = load i32*, i32** %4
%15 = load i32, i32* %14
%16 = and i32 %15, 65535
%17 = mul nsw i32 18000, %16
%18 = load i32*, i32** %4
%19 = load i32, i32* %18
%20 = ashr i32 %19, 16
%21 = add nsw i32 %17, %20
%22 = load i32*, i32** %4
store i32 %21, i32* %22
%23 = load i32*, i32** %3
%24 = load i32, i32* %23
%25 = shl i32 %24, 16
%26 = load i32*, i32** %4
%27 = load i32, i32* %26
%28 = add nsw i32 %25, %27
ret i32 %28
}

LLVM IR (-O2):
define i32 @Random(i32* nocapture %0, i32* nocapture %1) {
%3 = load i32, i32* %0
%4 = and i32 %3, 65535
%5 = mul nuw nsw i32 %4, 36969
%6 = ashr i32 %3, 16
%7 = add nsw i32 %5, %6
store i32 %7, i32* %0
%8 = load i32, i32* %1
%9 = and i32 %8, 65535
%10 = mul nuw nsw i32 %9, 18000
%11 = ashr i32 %8, 16
%12 = add nsw i32 %10, %11
store i32 %12, i32* %1
%13 = load i32, i32* %0
%14 = shl i32 %13, 16
%15 = add nsw i32 %14, %12
ret i32 %15
}
/* Type definitions */
struct stat {
  int st_mtime;
};

/* Variables and functions */
int /*<<< orphan*/ stat(char const *, struct stat *);
int getModifiedUnixtime(const char *path) {
  struct stat attr;
  stat(path, &attr);
  return attr.st_mtime;
}


x86 assembly (clang, -O0):
<getModifiedUnixtime>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
mov    %rdi,-0x8(%rbp)
mov    -0x8(%rbp),%rdi
lea    -0x10(%rbp),%rsi
call   1030 <stat@plt>
mov    -0x10(%rbp),%eax
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<getModifiedUnixtime>:
push   %rax
mov    %rsp,%rsi
call   1030 <stat@plt>
mov    (%rsp),%eax
pop    %rcx
ret

LLVM IR (-O0):
%struct.stat = type { i32 }
define i32 @getModifiedUnixtime(i8* %0) {
%2 = alloca i8*
%3 = alloca %struct.stat
store i8* %0, i8** %2
%4 = load i8*, i8** %2
%5 = call i32 @stat(i8* %4, %struct.stat* %3)
%6 = getelementptr inbounds %struct.stat, %struct.stat* %3, i32 0, i32 0
%7 = load i32, i32* %6
ret i32 %7
}

LLVM IR (-O2):
%struct.stat = type { i32 }
define i32 @getModifiedUnixtime(i8* nocapture %0) {
%2 = alloca %struct.stat
%3 = bitcast %struct.stat* %2 to i8*
%4 = call i32 @stat(i8* %0, %struct.stat* %2)
%5 = getelementptr inbounds %struct.stat, %struct.stat* %2, i64 0, i32 0
%6 = load i32, i32* %5
ret i32 %6
}
/* Variables and functions */
int /*<<< orphan*/ assert(int /*<<< orphan*/);
void *malloc(size_t);
void *my_malloc(size_t size) {
  void *ptr = malloc(size);
  assert(ptr != NULL);
  return (ptr);
}


x86 assembly (clang, -O0):
<my_malloc>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
mov    %rdi,-0x8(%rbp)
mov    -0x8(%rbp),%rdi
call   1040 <malloc@plt>
mov    %rax,-0x10(%rbp)
cmpq   $0x0,-0x10(%rbp)
setne  %al
and    $0x1,%al
movzbl %al,%edi
call   1030 <assert@plt>
mov    -0x10(%rbp),%rax
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<my_malloc>:
push   %rbx
call   1040 <malloc@plt>
mov    %rax,%rbx
xor    %edi,%edi
test   %rax,%rax
setne  %dil
call   1030 <assert@plt>
mov    %rbx,%rax
pop    %rbx
ret

LLVM IR (-O0):
define i8* @my_malloc(i64 %0) {
%2 = alloca i64
%3 = alloca i8*
store i64 %0, i64* %2
%4 = load i64, i64* %2
%5 = call i8* @malloc(i64 %4)
store i8* %5, i8** %3
%6 = load i8*, i8** %3
%7 = icmp ne i8* %6, null
%8 = zext i1 %7 to i32
%9 = call i32 @assert(i32 %8)
%10 = load i8*, i8** %3
ret i8* %10
}

LLVM IR (-O2):
define noalias i8* @my_malloc(i64 %0) {
%2 = tail call i8* @malloc(i64 %0)
%3 = icmp ne i8* %2, null
%4 = zext i1 %3 to i32
%5 = tail call i32 @assert(i32 %4)
ret i8* %2
}
void arm_init() {}


x86 assembly (clang, -O0):
<arm_init>:
push   %rbp
mov    %rsp,%rbp
pop    %rbp
ret

x86 assembly (clang, -O2):
<arm_init>:
ret

LLVM IR (-O0):
define void @arm_init() {
ret void
}

LLVM IR (-O2):
define void @arm_init() {
ret void
}
/* Variables and functions */
int /*<<< orphan*/ handle_39(int /*<<< orphan*/);
int gen_39() {
  handle_39(0);
  return 0;
}


x86 assembly (clang, -O0):
<gen_39>:
push   %rbp
mov    %rsp,%rbp
xor    %edi,%edi
call   1030 <handle_39@plt>
xor    %eax,%eax
pop    %rbp
ret

x86 assembly (clang, -O2):
<gen_39>:
push   %rax
xor    %edi,%edi
call   1030 <handle_39@plt>
xor    %eax,%eax
pop    %rcx
ret

LLVM IR (-O0):
define i32 @gen_39() {
%1 = call i32 @handle_39(i32 0)
ret i32 0
}

LLVM IR (-O2):
define i32 @gen_39() {
%1 = tail call i32 @handle_39(i32 0)
ret i32 0
}
int right(int i) { return (i + 1) % 5; }


x86 assembly (clang, -O0):
<right>:
push   %rbp
mov    %rsp,%rbp
mov    %edi,-0x4(%rbp)
mov    -0x4(%rbp),%eax
add    $0x1,%eax
mov    $0x5,%ecx
cltd
idiv   %ecx
mov    %edx,%eax
pop    %rbp
ret

x86 assembly (clang, -O2):
<right>:
add    $0x1,%edi
movslq %edi,%rax
imul   $0x66666667,%rax,%rcx
mov    %rcx,%rdx
shr    $0x3f,%rdx
sar    $0x21,%rcx
add    %edx,%ecx
lea    (%rcx,%rcx,4),%ecx
sub    %ecx,%eax
ret

LLVM IR (-O0):
define i32 @right(i32 %0) {
%2 = alloca i32
store i32 %0, i32* %2
%3 = load i32, i32* %2
%4 = add nsw i32 %3, 1
%5 = srem i32 %4, 5
ret i32 %5
}

LLVM IR (-O2):
define i32 @right(i32 %0) {
%2 = add nsw i32 %0, 1
%3 = srem i32 %2, 5
ret i32 %3
}
void foo058(int p) {}


x86 assembly (clang, -O0):
<foo058>:
push   %rbp
mov    %rsp,%rbp
mov    %edi,-0x4(%rbp)
pop    %rbp
ret

x86 assembly (clang, -O2):
<foo058>:
ret

LLVM IR (-O0):
define void @foo058(i32 %0) {
%2 = alloca i32
store i32 %0, i32* %2
ret void
}

LLVM IR (-O2):
define void @foo058(i32 %0) {
ret void
}
/* Variables and functions */
int /*<<< orphan*/ exit(int);
int /*<<< orphan*/ printf(char *);
int usage(void) {
  printf("usage: rechunk [-f framerate] [-w width] [-h height] [-c fourcc] "
         "<input frames> <output movie>\n");
  printf("	Concatenate input frames into a Quicktime movie.\n");
  exit(1);
  return 0;
}


x86 assembly (clang, -O0):
<usage>:
push   %rbp
mov    %rsp,%rbp
lea    0xed5(%rip),%rdi
call   1030 <printf@plt>
lea    0xf29(%rip),%rdi
call   1030 <printf@plt>
mov    $0x1,%edi
call   1040 <exit@plt>

x86 assembly (clang, -O2):
<usage>:
push   %rax
lea    0xed8(%rip),%rdi
call   1030 <puts@plt>
lea    0xf2b(%rip),%rdi
call   1030 <puts@plt>
mov    $0x1,%edi
call   1040 <exit@plt>

LLVM IR (-O0):
@.str = [96 x i8] c"usage: rechunk [-f framerate] [-w width] [-h height] [-c fourcc] <input frames> <output movie>\0A\00"
@.str.1 = [51 x i8] c"\09Concatenate input frames into a Quicktime movie.\0A\00"
define i32 @usage() {
%1 = call i32 @printf(i8* getelementptr inbounds ([96 x i8], [96 x i8]* @.str, i64 0, i64 0))
%2 = call i32 @printf(i8* getelementptr inbounds ([51 x i8], [51 x i8]* @.str.1, i64 0, i64 0))
%3 = call i32 @exit(i32 1)
unreachable
}

LLVM IR (-O2):
@str = [95 x i8] c"usage: rechunk [-f framerate] [-w width] [-h height] [-c fourcc] <input frames> <output movie>\00"
@str.2 = [50 x i8] c"\09Concatenate input frames into a Quicktime movie.\00"
define i32 @usage() {
%1 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([95 x i8], [95 x i8]* @str, i64 0, i64 0))
%2 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([50 x i8], [50 x i8]* @str.2, i64 0, i64 0))
%3 = tail call i32 @exit(i32 1)
unreachable
}
/* Variables and functions */
int /*<<< orphan*/ make_filename(long, char *, char *);
long umfpack_dl_load_numeric(void **, char *);
void umf4lnum(void **Numeric, long *filenum, long *status) {
  char filename[200];
  make_filename(*filenum, "n", filename);
  *status = umfpack_dl_load_numeric(Numeric, filename);
}


x86 assembly (clang, -O0):
<umf4lnum>:
push   %rbp
mov    %rsp,%rbp
sub    $0xe0,%rsp
mov    %rdi,-0x8(%rbp)
mov    %rsi,-0x10(%rbp)
mov    %rdx,-0x18(%rbp)
mov    -0x10(%rbp),%rax
mov    (%rax),%rdi
lea    -0xe0(%rbp),%rdx
lea    0xeb4(%rip),%rsi
call   1040 <make_filename@plt>
mov    -0x8(%rbp),%rdi
lea    -0xe0(%rbp),%rsi
call   1030 <umfpack_dl_load_numeric@plt>
mov    %rax,%rcx
mov    -0x18(%rbp),%rax
mov    %rcx,(%rax)
add    $0xe0,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<umf4lnum>:
push   %r15
push   %r14
push   %rbx
sub    $0xd0,%rsp
mov    %rdx,%r14
mov    %rdi,%rbx
mov    (%rsi),%rdi
lea    0xec4(%rip),%rsi
mov    %rsp,%r15
mov    %r15,%rdx
call   1040 <make_filename@plt>
mov    %rbx,%rdi
mov    %r15,%rsi
call   1030 <umfpack_dl_load_numeric@plt>
mov    %rax,(%r14)
add    $0xd0,%rsp
pop    %rbx
pop    %r14
pop    %r15
ret

LLVM IR (-O0):
@.str = [2 x i8] c"n\00"
define void @umf4lnum(i8** %0, i64* %1, i64* %2) {
%4 = alloca i8**
%5 = alloca i64*
%6 = alloca i64*
%7 = alloca [200 x i8]
store i8** %0, i8*** %4
store i64* %1, i64** %5
store i64* %2, i64** %6
%8 = load i64*, i64** %5
%9 = load i64, i64* %8
%10 = getelementptr inbounds [200 x i8], [200 x i8]* %7, i64 0, i64 0
%11 = call i32 @make_filename(i64 %9, i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str, i64 0, i64 0), i8* %10)
%12 = load i8**, i8*** %4
%13 = getelementptr inbounds [200 x i8], [200 x i8]* %7, i64 0, i64 0
%14 = call i64 @umfpack_dl_load_numeric(i8** %12, i8* %13)
%15 = load i64*, i64** %6
store i64 %14, i64* %15
ret void
}

LLVM IR (-O2):
@.str = [2 x i8] c"n\00"
define void @umf4lnum(i8** %0, i64* nocapture %1, i64* nocapture writeonly %2) {
%4 = alloca [200 x i8]
%5 = getelementptr inbounds [200 x i8], [200 x i8]* %4, i64 0, i64 0
%6 = load i64, i64* %1
%7 = call i32 @make_filename(i64 %6, i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str, i64 0, i64 0), i8* %5)
%8 = call i64 @umfpack_dl_load_numeric(i8** %0, i8* %5)
store i64 %8, i64* %2
ret void
}
/* Variables and functions */
int /*<<< orphan*/ printf(char *);
extern void shmem_int_wait_until(int *ivar, int cmp, int cmp_value) {
  printf("\nOpenSHMEM Analyzer\n");
}


x86 assembly (clang, -O0):
<shmem_int_wait_until>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
mov    %rdi,-0x8(%rbp)
mov    %esi,-0xc(%rbp)
mov    %edx,-0x10(%rbp)
lea    0xed7(%rip),%rdi
call   1030 <printf@plt>
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<shmem_int_wait_until>:
lea    0xee9(%rip),%rdi
jmp    1030 <puts@plt>

LLVM IR (-O0):
@.str = [21 x i8] c"\0AOpenSHMEM Analyzer\0A\00"
define void @shmem_int_wait_until(i32* %0, i32 %1, i32 %2) {
%4 = alloca i32*
%5 = alloca i32
%6 = alloca i32
store i32* %0, i32** %4
store i32 %1, i32* %5
store i32 %2, i32* %6
%7 = call i32 @printf(i8* getelementptr inbounds ([21 x i8], [21 x i8]* @.str, i64 0, i64 0))
ret void
}

LLVM IR (-O2):
@str = [20 x i8] c"\0AOpenSHMEM Analyzer\00"
define void @shmem_int_wait_until(i32* nocapture readnone %0, i32 %1, i32 %2) {
%4 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([20 x i8], [20 x i8]* @str, i64 0, i64 0))
ret void
}
/* Variables and functions */
int getchar();
int /*<<< orphan*/ putchar(int);
void echo_quote(int c) {
  int d;
  putchar(c);
  while ((d = getchar()) != c) {
    putchar(d);
    if (d = '\\')
      putchar(getchar());
  }
  putchar(d);
}


x86 assembly (clang, -O0):
<echo_quote>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
mov    %edi,-0x4(%rbp)
mov    -0x4(%rbp),%edi
call   1030 <putchar@plt>
mov    $0x0,%al
call   1040 <getchar@plt>
mov    %eax,-0x8(%rbp)
cmp    -0x4(%rbp),%eax
je     1177 <echo_quote+0x57>
mov    -0x8(%rbp),%edi
call   1030 <putchar@plt>
movl   $0x5c,-0x8(%rbp)
mov    $0x1,%al
test   $0x1,%al
jne    1164 <echo_quote+0x44>
jmp    1172 <echo_quote+0x52>
mov    $0x0,%al
call   1040 <getchar@plt>
mov    %eax,%edi
call   1030 <putchar@plt>
jmp    1133 <echo_quote+0x13>
mov    -0x8(%rbp),%edi
call   1030 <putchar@plt>
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<echo_quote>:
push   %rbx
mov    %edi,%ebx
cs nopw 0x0(%rax,%rax,1)
nopl   (%rax)
call   1030 <putchar@plt>
xor    %eax,%eax
call   1040 <getchar@plt>
cmp    %ebx,%eax
je     1152 <echo_quote+0x32>
mov    %eax,%edi
call   1030 <putchar@plt>
xor    %eax,%eax
call   1040 <getchar@plt>
mov    %eax,%edi
jmp    1130 <echo_quote+0x10>
mov    %ebx,%edi
pop    %rbx
jmp    1030 <putchar@plt>

LLVM IR (-O0):
define void @echo_quote(i32 %0) {
%2 = alloca i32
%3 = alloca i32
store i32 %0, i32* %2
%4 = load i32, i32* %2
%5 = call i32 @putchar(i32 %4)
br label %6
6: ; preds = %16, %1
%7 = call i32 (...) @getchar()
store i32 %7, i32* %3
%8 = load i32, i32* %2
%9 = icmp ne i32 %7, %8
br i1 %9, label %10, label %17
10: ; preds = %6
%11 = load i32, i32* %3
%12 = call i32 @putchar(i32 %11)
store i32 92, i32* %3
br i1 true, label %13, label %16
13: ; preds = %10
%14 = call i32 (...) @getchar()
%15 = call i32 @putchar(i32 %14)
br label %16
16: ; preds = %13, %10
br label %6
17: ; preds = %6
%18 = load i32, i32* %3
%19 = call i32 @putchar(i32 %18)
ret void
}

LLVM IR (-O2):
define void @echo_quote(i32 %0) {
%2 = tail call i32 @putchar(i32 %0)
%3 = tail call i32 (...) @getchar()
%4 = icmp eq i32 %3, %0
br i1 %4, label %12, label %5
5: ; preds = %1, %5
%6 = phi i32 [ %10, %5 ], [ %3, %1 ]
%7 = tail call i32 @putchar(i32 %6)
%8 = tail call i32 (...) @getchar()
%9 = tail call i32 @putchar(i32 %8)
%10 = tail call i32 (...) @getchar()
%11 = icmp eq i32 %10, %0
br i1 %11, label %12, label %5
12: ; preds = %5, %1
%13 = tail call i32 @putchar(i32 %0)
ret void
}
int fInline(int a, int b) { return a + b; }


x86 assembly (clang, -O0):
<fInline>:
push   %rbp
mov    %rsp,%rbp
mov    %edi,-0x4(%rbp)
mov    %esi,-0x8(%rbp)
mov    -0x4(%rbp),%eax
add    -0x8(%rbp),%eax
pop    %rbp
ret

x86 assembly (clang, -O2):
<fInline>:
lea    (%rdi,%rsi,1),%eax
ret

LLVM IR (-O0):
define i32 @fInline(i32 %0, i32 %1) {
%3 = alloca i32
%4 = alloca i32
store i32 %0, i32* %3
store i32 %1, i32* %4
%5 = load i32, i32* %3
%6 = load i32, i32* %4
%7 = add nsw i32 %5, %6
ret i32 %7
}

LLVM IR (-O2):
define i32 @fInline(i32 %0, i32 %1) {
%3 = add nsw i32 %1, %0
ret i32 %3
}
/* Variables and functions */
int /*<<< orphan*/ exit(int);
int /*<<< orphan*/ fprintf(int /*<<< orphan*/, char *, char *);
int /*<<< orphan*/ stderr;
void usage(void) {
  extern char *__progname;
  fprintf(stderr, "usage: %s [-v] [-f file]\n", __progname);
  exit(1);
}


x86 assembly (clang, -O0):
<usage>:
push   %rbp
mov    %rsp,%rbp
mov    0x2eb5(%rip),%rax
mov    (%rax),%edi
mov    0x2e9c(%rip),%rax
mov    (%rax),%rdx
lea    0xec2(%rip),%rsi
call   1030 <fprintf@plt>
mov    $0x1,%edi
call   1040 <exit@plt>

x86 assembly (clang, -O2):
<usage>:
push   %rax
mov    0x2eb8(%rip),%rax
mov    (%rax),%edi
mov    0x2e9f(%rip),%rax
mov    (%rax),%rdx
lea    0xec5(%rip),%rsi
call   1030 <fprintf@plt>
mov    $0x1,%edi
call   1040 <exit@plt>

LLVM IR (-O0):
@stderr = global i32 0
@.str = [26 x i8] c"usage: %s [-v] [-f file]\0A\00"
@__progname = external global i8*
define void @usage() {
%1 = load i32, i32* @stderr
%2 = load i8*, i8** @__progname
%3 = call i32 @fprintf(i32 %1, i8* getelementptr inbounds ([26 x i8], [26 x i8]* @.str, i64 0, i64 0), i8* %2)
%4 = call i32 @exit(i32 1)
unreachable
}

LLVM IR (-O2):
@stderr = global i32 0
@.str = [26 x i8] c"usage: %s [-v] [-f file]\0A\00"
@__progname = external global i8*
define void @usage() {
%1 = load i32, i32* @stderr
%2 = load i8*, i8** @__progname
%3 = tail call i32 @fprintf(i32 %1, i8* getelementptr inbounds ([26 x i8], [26 x i8]* @.str, i64 0, i64 0), i8* %2)
%4 = tail call i32 @exit(i32 1)
unreachable
}
/* Variables and functions */
unsigned long read_cr0();
int /*<<< orphan*/ write_cr0(unsigned long);
__attribute__((always_)) void enable_cache(void) {
  unsigned long cr0;
  cr0 = read_cr0();
  cr0 &= 0x9fffffff;
  write_cr0(cr0);
}


x86 assembly (clang, -O0):
<enable_cache>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
mov    $0x0,%al
call   1040 <read_cr0@plt>
mov    %rax,-0x8(%rbp)
movabs $0x9fffffff,%rax
and    -0x8(%rbp),%rax
mov    %rax,-0x8(%rbp)
mov    -0x8(%rbp),%rdi
call   1030 <write_cr0@plt>
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<enable_cache>:
push   %rax
xor    %eax,%eax
call   1040 <read_cr0@plt>
and    $0x9fffffff,%eax
mov    %rax,%rdi
pop    %rax
jmp    1030 <write_cr0@plt>

LLVM IR (-O0):
define void @enable_cache() {
%1 = alloca i64
%2 = call i64 (...) @read_cr0()
store i64 %2, i64* %1
%3 = load i64, i64* %1
%4 = and i64 %3, 2684354559
store i64 %4, i64* %1
%5 = load i64, i64* %1
%6 = call i32 @write_cr0(i64 %5)
ret void
}

LLVM IR (-O2):
define void @enable_cache() {
%1 = tail call i64 (...) @read_cr0()
%2 = and i64 %1, 2684354559
%3 = tail call i32 @write_cr0(i64 %2)
ret void
}
int big5_trail_p(int c) {
  return c >= 0x40 && c <= 0x7e || c >= 0xa1 && c <= 0xfe;
}


x86 assembly (clang, -O0):
<big5_trail_p>:
push   %rbp
mov    %rsp,%rbp
mov    %edi,-0x4(%rbp)
cmpl   $0x40,-0x4(%rbp)
jl     1120 <big5_trail_p+0x20>
mov    $0x1,%al
cmpl   $0x7e,-0x4(%rbp)
mov    %al,-0x5(%rbp)
jle    1145 <big5_trail_p+0x45>
xor    %eax,%eax
cmpl   $0xa1,-0x4(%rbp)
mov    %al,-0x6(%rbp)
jl     113f <big5_trail_p+0x3f>
cmpl   $0xfe,-0x4(%rbp)
setle  %al
mov    %al,-0x6(%rbp)
mov    -0x6(%rbp),%al
mov    %al,-0x5(%rbp)
mov    -0x5(%rbp),%al
and    $0x1,%al
movzbl %al,%eax
pop    %rbp
ret

x86 assembly (clang, -O2):
<big5_trail_p>:
lea    -0x40(%rdi),%eax
cmp    $0x3f,%eax
setb   %al
add    $0xffffff5f,%edi
cmp    $0x5e,%edi
setb   %cl
or     %al,%cl
movzbl %cl,%eax
ret

LLVM IR (-O0):
define i32 @big5_trail_p(i32 %0) {
%2 = alloca i32
store i32 %0, i32* %2
%3 = load i32, i32* %2
%4 = icmp sge i32 %3, 64
br i1 %4, label %5, label %8
5: ; preds = %1
%6 = load i32, i32* %2
%7 = icmp sle i32 %6, 126
br i1 %7, label %16, label %8
8: ; preds = %5, %1
%9 = load i32, i32* %2
%10 = icmp sge i32 %9, 161
br i1 %10, label %11, label %14
11: ; preds = %8
%12 = load i32, i32* %2
%13 = icmp sle i32 %12, 254
br label %14
14: ; preds = %11, %8
%15 = phi i1 [ false, %8 ], [ %13, %11 ]
br label %16
16: ; preds = %14, %5
%17 = phi i1 [ true, %5 ], [ %15, %14 ]
%18 = zext i1 %17 to i32
ret i32 %18
}

LLVM IR (-O2):
define i32 @big5_trail_p(i32 %0) {
%2 = add i32 %0, -64
%3 = icmp ult i32 %2, 63
%4 = add i32 %0, -161
%5 = icmp ult i32 %4, 94
%6 = or i1 %3, %5
%7 = zext i1 %6 to i32
ret i32 %7
}
/* Type definitions */
struct timespec {
  scalar_t__ tv_nsec;
  scalar_t__ tv_sec;
};

/* Variables and functions */
void timespecInitialize(struct timespec *time) {
  time->tv_sec = 0;
  time->tv_nsec = 0;
}


x86 assembly (clang, -O0):
<timespecInitialize>:
push   %rbp
mov    %rsp,%rbp
mov    %rdi,-0x8(%rbp)
mov    -0x8(%rbp),%rax
movq   $0x0,0x8(%rax)
mov    -0x8(%rbp),%rax
movq   $0x0,(%rax)
pop    %rbp
ret

x86 assembly (clang, -O2):
<timespecInitialize>:
xorps  %xmm0,%xmm0
movups %xmm0,(%rdi)
ret

LLVM IR (-O0):
%struct.timespec = type { i64, i64 }
define void @timespecInitialize(%struct.timespec* %0) {
%2 = alloca %struct.timespec*
store %struct.timespec* %0, %struct.timespec** %2
%3 = load %struct.timespec*, %struct.timespec** %2
%4 = getelementptr inbounds %struct.timespec, %struct.timespec* %3, i32 0, i32 1
store i64 0, i64* %4
%5 = load %struct.timespec*, %struct.timespec** %2
%6 = getelementptr inbounds %struct.timespec, %struct.timespec* %5, i32 0, i32 0
store i64 0, i64* %6
ret void
}

LLVM IR (-O2):
%struct.timespec = type { i64, i64 }
define void @timespecInitialize(%struct.timespec* nocapture writeonly %0) {
%2 = bitcast %struct.timespec* %0 to i8*
ret void
}
int f(int a, int b) {
  int c = a >= b ? a : b;
  int d = c >= a ? c : a;
  return d;
}


x86 assembly (clang, -O0):
<f>:
push   %rbp
mov    %rsp,%rbp
mov    %edi,-0x4(%rbp)
mov    %esi,-0x8(%rbp)
mov    -0x4(%rbp),%eax
cmp    -0x8(%rbp),%eax
jl     1121 <f+0x21>
mov    -0x4(%rbp),%eax
mov    %eax,-0x14(%rbp)
jmp    1127 <f+0x27>
mov    -0x8(%rbp),%eax
mov    %eax,-0x14(%rbp)
mov    -0x14(%rbp),%eax
mov    %eax,-0xc(%rbp)
mov    -0xc(%rbp),%eax
cmp    -0x4(%rbp),%eax
jl     1144 <f+0x44>
mov    -0xc(%rbp),%eax
mov    %eax,-0x18(%rbp)
jmp    114a <f+0x4a>
mov    -0x4(%rbp),%eax
mov    %eax,-0x18(%rbp)
mov    -0x18(%rbp),%eax
mov    %eax,-0x10(%rbp)
mov    -0x10(%rbp),%eax
pop    %rbp
ret

x86 assembly (clang, -O2):
<f>:
mov    %edi,%eax
cmp    %esi,%edi
cmovl  %esi,%eax
ret

LLVM IR (-O0):
define i32 @f(i32 %0, i32 %1) {
%3 = alloca i32
%4 = alloca i32
%5 = alloca i32
%6 = alloca i32
store i32 %0, i32* %3
store i32 %1, i32* %4
%7 = load i32, i32* %3
%8 = load i32, i32* %4
%9 = icmp sge i32 %7, %8
br i1 %9, label %10, label %12
10: ; preds = %2
%11 = load i32, i32* %3
br label %14
12: ; preds = %2
%13 = load i32, i32* %4
br label %14
14: ; preds = %12, %10
%15 = phi i32 [ %11, %10 ], [ %13, %12 ]
store i32 %15, i32* %5
%16 = load i32, i32* %5
%17 = load i32, i32* %3
%18 = icmp sge i32 %16, %17
br i1 %18, label %19, label %21
19: ; preds = %14
%20 = load i32, i32* %5
br label %23
21: ; preds = %14
%22 = load i32, i32* %3
br label %23
23: ; preds = %21, %19
%24 = phi i32 [ %20, %19 ], [ %22, %21 ]
store i32 %24, i32* %6
%25 = load i32, i32* %6
ret i32 %25
}

LLVM IR (-O2):
define i32 @f(i32 %0, i32 %1) {
%3 = icmp slt i32 %0, %1
%4 = select i1 %3, i32 %1, i32 %0
ret i32 %4
}
void ASN1_ENUMERATED_set(void) {}


x86 assembly (clang, -O0):
<ASN1_ENUMERATED_set>:
push   %rbp
mov    %rsp,%rbp
pop    %rbp
ret

x86 assembly (clang, -O2):
<ASN1_ENUMERATED_set>:
ret

LLVM IR (-O0):
define void @ASN1_ENUMERATED_set() {
ret void
}

LLVM IR (-O2):
define void @ASN1_ENUMERATED_set() {
ret void
}
/* Variables and functions */
int /*<<< orphan*/ free(void *);
void callbackValDestructor(void *privdata, void *val) {
  ((void)privdata);
  free(val);
}


x86 assembly (clang, -O0):
<callbackValDestructor>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
mov    %rdi,-0x8(%rbp)
mov    %rsi,-0x10(%rbp)
mov    -0x10(%rbp),%rdi
call   1030 <free@plt>
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<callbackValDestructor>:
mov    %rsi,%rdi
jmp    1030 <free@plt>

LLVM IR (-O0):
define void @callbackValDestructor(i8* %0, i8* %1) {
%3 = alloca i8*
%4 = alloca i8*
store i8* %0, i8** %3
store i8* %1, i8** %4
%5 = load i8*, i8** %3
%6 = load i8*, i8** %4
%7 = call i32 @free(i8* %6)
ret void
}

LLVM IR (-O2):
define void @callbackValDestructor(i8* nocapture readnone %0, i8* nocapture %1) {
%3 = tail call i32 @free(i8* %1)
ret void
}
/* Variables and functions */
int /*<<< orphan*/ printf(char *);
void print_help(void) {
  printf("usage: [OPTION]... [FILE]...\n"
         " -v, --verbose\tverbose mode\n"
         " -p, --pack\tpack FILE1 and save as FILE2\n"
         " -u, --unpack\tunpack FILE1 and save as FILE2\n"
         " -c, --check\tcheck text file FILE\n"
         " -h, --help\tprint this help\n");
}


x86 assembly (clang, -O0):
<print_help>:
push   %rbp
mov    %rsp,%rbp
lea    0xee5(%rip),%rdi
call   1030 <printf@plt>
pop    %rbp
ret

x86 assembly (clang, -O2):
<print_help>:
lea    0xee9(%rip),%rdi
jmp    1030 <puts@plt>

LLVM IR (-O0):
@.str = [206 x i8] c"usage: [OPTION]... [FILE]...\0A -v, --verbose\09verbose mode\0A -p, --pack\09pack FILE1 and save as FILE2\0A -u, --unpack\09unpack FILE1 and save as FILE2\0A -c, --check\09check text file FILE\0A -h, --help\09print this help\0A\00"
define void @print_help() {
%1 = call i32 @printf(i8* getelementptr inbounds ([206 x i8], [206 x i8]* @.str, i64 0, i64 0))
ret void
}

LLVM IR (-O2):
@str = [205 x i8] c"usage: [OPTION]... [FILE]...\0A -v, --verbose\09verbose mode\0A -p, --pack\09pack FILE1 and save as FILE2\0A -u, --unpack\09unpack FILE1 and save as FILE2\0A -c, --check\09check text file FILE\0A -h, --help\09print this help\00"
define void @print_help() {
%1 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([205 x i8], [205 x i8]* @str, i64 0, i64 0))
ret void
}
void RTDbgModLineByOrdinal(void) {}


x86 assembly (clang, -O0):
<RTDbgModLineByOrdinal>:
push   %rbp
mov    %rsp,%rbp
pop    %rbp
ret

x86 assembly (clang, -O2):
<RTDbgModLineByOrdinal>:
ret

LLVM IR (-O0):
define void @RTDbgModLineByOrdinal() {
ret void
}

LLVM IR (-O2):
define void @RTDbgModLineByOrdinal() {
ret void
}