xunge/DecIR huggingface dataset:
int ulaw2linear(int u_val) {
  int t;
  u_val = ~u_val;
  t = ((u_val & (0xf)) << 3) + (0x84);
  t <<= (u_val & (0x70)) >> (4);
  return ((u_val & (0x80)) ? ((0x84) - t) : (t - (0x84)));
}


x86 assembly (clang, -O0):
<ulaw2linear>:
push   %rbp
mov    %rsp,%rbp
mov    %edi,-0x4(%rbp)
mov    -0x4(%rbp),%eax
xor    $0xffffffff,%eax
mov    %eax,-0x4(%rbp)
mov    -0x4(%rbp),%eax
and    $0xf,%eax
shl    $0x3,%eax
add    $0x84,%eax
mov    %eax,-0x8(%rbp)
mov    -0x4(%rbp),%ecx
and    $0x70,%ecx
sar    $0x4,%ecx
mov    -0x8(%rbp),%eax
shl    %cl,%eax
mov    %eax,-0x8(%rbp)
mov    -0x4(%rbp),%eax
and    $0x80,%eax
cmp    $0x0,%eax
je     1153 <ulaw2linear+0x53>
mov    $0x84,%eax
sub    -0x8(%rbp),%eax
mov    %eax,-0xc(%rbp)
jmp    115e <ulaw2linear+0x5e>
mov    -0x8(%rbp),%eax
sub    $0x84,%eax
mov    %eax,-0xc(%rbp)
mov    -0xc(%rbp),%eax
pop    %rbp
ret

x86 assembly (clang, -O2):
<ulaw2linear>:
not    %edi
lea    0x0(,%rdi,8),%eax
or     $0x84,%eax
movzbl %al,%eax
mov    %edi,%ecx
shr    $0x4,%cl
and    $0x7,%cl
shl    %cl,%eax
mov    $0x84,%ecx
sub    %eax,%ecx
add    $0xffffff7c,%eax
test   $0x80,%dil
cmovne %ecx,%eax
ret

LLVM IR (-O0):
define i32 @ulaw2linear(i32 %0) {
%2 = alloca i32
%3 = alloca i32
store i32 %0, i32* %2
%4 = load i32, i32* %2
%5 = xor i32 %4, -1
store i32 %5, i32* %2
%6 = load i32, i32* %2
%7 = and i32 %6, 15
%8 = shl i32 %7, 3
%9 = add nsw i32 %8, 132
store i32 %9, i32* %3
%10 = load i32, i32* %2
%11 = and i32 %10, 112
%12 = ashr i32 %11, 4
%13 = load i32, i32* %3
%14 = shl i32 %13, %12
store i32 %14, i32* %3
%15 = load i32, i32* %2
%16 = and i32 %15, 128
%17 = icmp ne i32 %16, 0
br i1 %17, label %18, label %21
18: ; preds = %1
%19 = load i32, i32* %3
%20 = sub nsw i32 132, %19
br label %24
21: ; preds = %1
%22 = load i32, i32* %3
%23 = sub nsw i32 %22, 132
br label %24
24: ; preds = %21, %18
%25 = phi i32 [ %20, %18 ], [ %23, %21 ]
ret i32 %25
}

LLVM IR (-O2):
define i32 @ulaw2linear(i32 %0) {
%2 = xor i32 %0, -1
%3 = shl i32 %2, 3
%4 = and i32 %3, 120
%5 = or i32 %4, 132
%6 = lshr i32 %2, 4
%7 = and i32 %6, 7
%8 = shl i32 %5, %7
%9 = and i32 %2, 128
%10 = icmp eq i32 %9, 0
%11 = sub nsw i32 132, %8
%12 = add nsw i32 %8, -132
%13 = select i1 %10, i32 %12, i32 %11
ret i32 %13
}
/* Type definitions */
typedef int /*<<< orphan*/ uint64_t;

/* Variables and functions */
scalar_t__ eb128_compose_264(int /*<<< orphan*/ const,
                             int /*<<< orphan*/ const);
bool eb128_greater_264(const uint64_t alo, const uint64_t ahi,
                       const uint64_t blo, const uint64_t bhi) {
  return eb128_compose_264(alo, ahi) > eb128_compose_264(blo, bhi);
}


x86 assembly (clang, -O0):
<eb128_greater_264>:
push   %rbp
mov    %rsp,%rbp
sub    $0x20,%rsp
mov    %edi,-0x4(%rbp)
mov    %esi,-0x8(%rbp)
mov    %edx,-0xc(%rbp)
mov    %ecx,-0x10(%rbp)
mov    -0x4(%rbp),%edi
mov    -0x8(%rbp),%esi
call   1030 <eb128_compose_264@plt>
mov    %rax,-0x18(%rbp)
mov    -0xc(%rbp),%edi
mov    -0x10(%rbp),%esi
call   1030 <eb128_compose_264@plt>
mov    %rax,%rcx
mov    -0x18(%rbp),%rax
cmp    %rcx,%rax
setg   %al
and    $0x1,%al
movzbl %al,%eax
add    $0x20,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<eb128_greater_264>:
push   %rbp
push   %r14
push   %rbx
mov    %ecx,%r14d
mov    %edx,%ebp
call   1030 <eb128_compose_264@plt>
mov    %rax,%rbx
mov    %ebp,%edi
mov    %r14d,%esi
call   1030 <eb128_compose_264@plt>
xor    %ecx,%ecx
cmp    %rax,%rbx
setg   %cl
mov    %ecx,%eax
pop    %rbx
pop    %r14
pop    %rbp
ret

LLVM IR (-O0):
define i32 @eb128_greater_264(i32 %0, i32 %1, i32 %2, i32 %3) {
%5 = alloca i32
%6 = alloca i32
%7 = alloca i32
%8 = alloca i32
store i32 %0, i32* %5
store i32 %1, i32* %6
store i32 %2, i32* %7
store i32 %3, i32* %8
%9 = load i32, i32* %5
%10 = load i32, i32* %6
%11 = call i64 @eb128_compose_264(i32 %9, i32 %10)
%12 = load i32, i32* %7
%13 = load i32, i32* %8
%14 = call i64 @eb128_compose_264(i32 %12, i32 %13)
%15 = icmp sgt i64 %11, %14
%16 = zext i1 %15 to i32
ret i32 %16
}

LLVM IR (-O2):
define i32 @eb128_greater_264(i32 %0, i32 %1, i32 %2, i32 %3) {
%5 = tail call i64 @eb128_compose_264(i32 %0, i32 %1)
%6 = tail call i64 @eb128_compose_264(i32 %2, i32 %3)
%7 = icmp sgt i64 %5, %6
%8 = zext i1 %7 to i32
ret i32 %8
}
int check(int PM, int PN, int QM, int QN) { return (PM * QN == PN * QM); }


x86 assembly (clang, -O0):
<check>:
push   %rbp
mov    %rsp,%rbp
mov    %edi,-0x4(%rbp)
mov    %esi,-0x8(%rbp)
mov    %edx,-0xc(%rbp)
mov    %ecx,-0x10(%rbp)
mov    -0x4(%rbp),%eax
imul   -0x10(%rbp),%eax
mov    -0x8(%rbp),%ecx
imul   -0xc(%rbp),%ecx
cmp    %ecx,%eax
sete   %al
and    $0x1,%al
movzbl %al,%eax
pop    %rbp
ret

x86 assembly (clang, -O2):
<check>:
imul   %ecx,%edi
imul   %edx,%esi
xor    %eax,%eax
cmp    %esi,%edi
sete   %al
ret

LLVM IR (-O0):
define i32 @check(i32 %0, i32 %1, i32 %2, i32 %3) {
%5 = alloca i32
%6 = alloca i32
%7 = alloca i32
%8 = alloca i32
store i32 %0, i32* %5
store i32 %1, i32* %6
store i32 %2, i32* %7
store i32 %3, i32* %8
%9 = load i32, i32* %5
%10 = load i32, i32* %8
%11 = mul nsw i32 %9, %10
%12 = load i32, i32* %6
%13 = load i32, i32* %7
%14 = mul nsw i32 %12, %13
%15 = icmp eq i32 %11, %14
%16 = zext i1 %15 to i32
ret i32 %16
}

LLVM IR (-O2):
define i32 @check(i32 %0, i32 %1, i32 %2, i32 %3) {
%5 = mul nsw i32 %3, %0
%6 = mul nsw i32 %2, %1
%7 = icmp eq i32 %5, %6
%8 = zext i1 %7 to i32
ret i32 %8
}
/* Variables and functions */
scalar_t__ isConsonant(char const *);
int hasVowel(const char *z) {
  while (isConsonant(z)) {
    z++;
  }
  return *z != 0;
}


x86 assembly (clang, -O0):
<hasVowel>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
mov    %rdi,-0x8(%rbp)
mov    -0x8(%rbp),%rdi
call   1030 <isConsonant@plt>
cmp    $0x0,%rax
je     1140 <hasVowel+0x30>
mov    -0x8(%rbp),%rax
add    $0x1,%rax
mov    %rax,-0x8(%rbp)
jmp    111c <hasVowel+0xc>
mov    -0x8(%rbp),%rax
movsbl (%rax),%eax
cmp    $0x0,%eax
setne  %al
and    $0x1,%al
movzbl %al,%eax
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<hasVowel>:
push   %rbx
mov    %rdi,%rbx
cs nopw 0x0(%rax,%rax,1)
xchg   %ax,%ax
mov    %rbx,%rdi
call   1030 <isConsonant@plt>
add    $0x1,%rbx
test   %rax,%rax
jne    1120 <hasVowel+0x10>
xor    %eax,%eax
cmpb   $0x0,-0x1(%rbx)
setne  %al
pop    %rbx
ret

LLVM IR (-O0):
define i32 @hasVowel(i8* %0) {
%2 = alloca i8*
store i8* %0, i8** %2
br label %3
3: ; preds = %7, %1
%4 = load i8*, i8** %2
%5 = call i64 @isConsonant(i8* %4)
%6 = icmp ne i64 %5, 0
br i1 %6, label %7, label %10
7: ; preds = %3
%8 = load i8*, i8** %2
%9 = getelementptr inbounds i8, i8* %8, i32 1
store i8* %9, i8** %2
br label %3
10: ; preds = %3
%11 = load i8*, i8** %2
%12 = load i8, i8* %11
%13 = sext i8 %12 to i32
%14 = icmp ne i32 %13, 0
%15 = zext i1 %14 to i32
ret i32 %15
}

LLVM IR (-O2):
define i32 @hasVowel(i8* %0) {
br label %2
2: ; preds = %2, %1
%3 = phi i8* [ %0, %1 ], [ %6, %2 ]
%4 = tail call i64 @isConsonant(i8* %3)
%5 = icmp eq i64 %4, 0
%6 = getelementptr inbounds i8, i8* %3, i64 1
br i1 %5, label %7, label %2
7: ; preds = %2
%8 = load i8, i8* %3
%9 = icmp ne i8 %8, 0
%10 = zext i1 %9 to i32
ret i32 %10
}
void path_008_expected_8(int a, int b, int c) {
  if (a) {
  }
  if (b) {
  }
  if (c) {
    return;
  }
}


x86 assembly (clang, -O0):
push   %rbp
mov    %rsp,%rbp
mov    %edi,-0x4(%rbp)
mov    %esi,-0x8(%rbp)
mov    %edx,-0xc(%rbp)
cmpl   $0x0,-0x4(%rbp)
je     111c <path_008_expected_8+0x1c>
jmp    111c <path_008_expected_8+0x1c>
cmpl   $0x0,-0x8(%rbp)
je     112b <path_008_expected_8+0x2b>
jmp    112b <path_008_expected_8+0x2b>
cmpl   $0x0,-0xc(%rbp)
je     113a <path_008_expected_8+0x3a>
jmp    113a <path_008_expected_8+0x3a>
pop    %rbp
ret

x86 assembly (clang, -O2):
ret

LLVM IR (-O0):
define void @path_008_expected_8(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 = load i32, i32* %4
%8 = icmp ne i32 %7, 0
br i1 %8, label %9, label %10
9: ; preds = %3
br label %10
10: ; preds = %9, %3
%11 = load i32, i32* %5
%12 = icmp ne i32 %11, 0
br i1 %12, label %13, label %14
13: ; preds = %10
br label %14
14: ; preds = %13, %10
%15 = load i32, i32* %6
%16 = icmp ne i32 %15, 0
br i1 %16, label %17, label %18
17: ; preds = %14
br label %18
18: ; preds = %17, %14
ret void
}

LLVM IR (-O2):
define void @path_008_expected_8(i32 %0, i32 %1, i32 %2) {
ret void
}
/* Variables and functions */
unsigned long long __normal___umoddi3(unsigned long long, unsigned long long);
unsigned long long __attribute__((no_instrument_function))
__wrap___umoddi3(unsigned long long a, unsigned long long b) {
  return __normal___umoddi3(a, b);
}


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

x86 assembly (clang, -O2):
<__wrap___umoddi3>:
jmp    1030 <__normal___umoddi3@plt>

LLVM IR (-O0):
define i64 @__wrap___umoddi3(i64 %0, i64 %1) {
%3 = alloca i64
%4 = alloca i64
store i64 %0, i64* %3
store i64 %1, i64* %4
%5 = load i64, i64* %3
%6 = load i64, i64* %4
%7 = call i64 @__normal___umoddi3(i64 %5, i64 %6)
ret i64 %7
}

LLVM IR (-O2):
define i64 @__wrap___umoddi3(i64 %0, i64 %1) {
%3 = tail call i64 @__normal___umoddi3(i64 %0, i64 %1)
ret i64 %3
}
unsigned int pop4(unsigned int x) {
  unsigned int n;
  n = x;
  while (x) {
    x >>= 1;
    n -= x;
  }
  return n;
}


x86 assembly (clang, -O0):
<pop4>:
push   %rbp
mov    %rsp,%rbp
mov    %edi,-0x4(%rbp)
mov    -0x4(%rbp),%eax
mov    %eax,-0x8(%rbp)
cmpl   $0x0,-0x4(%rbp)
je     1130 <pop4+0x30>
mov    -0x4(%rbp),%eax
shr    $0x1,%eax
mov    %eax,-0x4(%rbp)
mov    -0x4(%rbp),%ecx
mov    -0x8(%rbp),%eax
sub    %ecx,%eax
mov    %eax,-0x8(%rbp)
jmp    110d <pop4+0xd>
mov    -0x8(%rbp),%eax
pop    %rbp
ret

x86 assembly (clang, -O2):
<pop4>:
test   %edi,%edi
je     111c <pop4+0x1c>
mov    %edi,%eax
mov    %edi,%edx
mov    %eax,%ecx
nopw   0x0(%rax,%rax,1)
shr    %ecx
sub    %ecx,%eax
cmp    $0x1,%edx
mov    %ecx,%edx
ja     1110 <pop4+0x10>
ret
xor    %eax,%eax
ret

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

LLVM IR (-O2):
define i32 @pop4(i32 %0) {
%2 = icmp eq i32 %0, 0
br i1 %2, label %9, label %3
3: ; preds = %1, %3
%4 = phi i32 [ %7, %3 ], [ %0, %1 ]
%5 = phi i32 [ %6, %3 ], [ %0, %1 ]
%6 = lshr i32 %5, 1
%7 = sub i32 %4, %6
%8 = icmp ult i32 %5, 2
br i1 %8, label %9, label %3
9: ; preds = %3, %1
%10 = phi i32 [ 0, %1 ], [ %7, %3 ]
ret i32 %10
}
int is_all_same(char string[], int n) {
  char first = string[0];
  for (int i = 1; i < n; i++) {
    if (first != string[i]) {
      return 0;
    }
  }
  return 1;
}


x86 assembly (clang, -O0):
<is_all_same>:
push   %rbp
mov    %rsp,%rbp
mov    %rdi,-0x10(%rbp)
mov    %esi,-0x14(%rbp)
mov    -0x10(%rbp),%rax
mov    (%rax),%al
mov    %al,-0x15(%rbp)
movl   $0x1,-0x1c(%rbp)
mov    -0x1c(%rbp),%eax
cmp    -0x14(%rbp),%eax
jge    115e <is_all_same+0x5e>
movsbl -0x15(%rbp),%eax
mov    -0x10(%rbp),%rcx
movslq -0x1c(%rbp),%rdx
movsbl (%rcx,%rdx,1),%ecx
cmp    %ecx,%eax
je     114b <is_all_same+0x4b>
movl   $0x0,-0x4(%rbp)
jmp    1165 <is_all_same+0x65>
jmp    1150 <is_all_same+0x50>
mov    -0x1c(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x1c(%rbp)
jmp    111b <is_all_same+0x1b>
movl   $0x1,-0x4(%rbp)
mov    -0x4(%rbp),%eax
pop    %rbp
ret

x86 assembly (clang, -O2):
<is_all_same>:
mov    $0x1,%eax
cmp    $0x2,%esi
jl     1139 <is_all_same+0x39>
mov    (%rdi),%cl
xor    %eax,%eax
cmp    0x1(%rdi),%cl
jne    1139 <is_all_same+0x39>
mov    %esi,%edx
mov    $0x2,%eax
nopw   0x0(%rax,%rax,1)
mov    %rax,%rsi
cmp    %rax,%rdx
je     1131 <is_all_same+0x31>
lea    0x1(%rsi),%rax
cmp    (%rdi,%rsi,1),%cl
je     1120 <is_all_same+0x20>
xor    %eax,%eax
cmp    %rdx,%rsi
setae  %al
ret

LLVM IR (-O0):
define i32 @is_all_same(i8* %0, i32 %1) {
%3 = alloca i32
%4 = alloca i8*
%5 = alloca i32
%6 = alloca i8
%7 = alloca i32
store i8* %0, i8** %4
store i32 %1, i32* %5
%8 = load i8*, i8** %4
%9 = getelementptr inbounds i8, i8* %8, i64 0
%10 = load i8, i8* %9
store i8 %10, i8* %6
store i32 1, i32* %7
br label %11
11: ; preds = %27, %2
%12 = load i32, i32* %7
%13 = load i32, i32* %5
%14 = icmp slt i32 %12, %13
br i1 %14, label %15, label %30
15: ; preds = %11
%16 = load i8, i8* %6
%17 = sext i8 %16 to i32
%18 = load i8*, i8** %4
%19 = load i32, i32* %7
%20 = sext i32 %19 to i64
%21 = getelementptr inbounds i8, i8* %18, i64 %20
%22 = load i8, i8* %21
%23 = sext i8 %22 to i32
%24 = icmp ne i32 %17, %23
br i1 %24, label %25, label %26
25: ; preds = %15
store i32 0, i32* %3
br label %31
26: ; preds = %15
br label %27
27: ; preds = %26
%28 = load i32, i32* %7
%29 = add nsw i32 %28, 1
store i32 %29, i32* %7
br label %11
30: ; preds = %11
store i32 1, i32* %3
br label %31
31: ; preds = %30, %25
%32 = load i32, i32* %3
ret i32 %32
}

LLVM IR (-O2):
define i32 @is_all_same(i8* nocapture %0, i32 %1) {
%3 = load i8, i8* %0
%4 = icmp sgt i32 %1, 1
br i1 %4, label %5, label %22
5: ; preds = %2
%6 = zext i32 %1 to i64
%7 = zext i32 %1 to i64
%8 = getelementptr inbounds i8, i8* %0, i64 1
%9 = load i8, i8* %8
%10 = icmp eq i8 %3, %9
br i1 %10, label %11, label %22
11: ; preds = %5, %14
%12 = phi i64 [ %18, %14 ], [ 2, %5 ]
%13 = icmp eq i64 %12, %7
br i1 %13, label %19, label %14
14: ; preds = %11
%15 = getelementptr inbounds i8, i8* %0, i64 %12
%16 = load i8, i8* %15
%17 = icmp eq i8 %3, %16
%18 = add nuw nsw i64 %12, 1
br i1 %17, label %11, label %19
19: ; preds = %11, %14
%20 = icmp uge i64 %12, %6
%21 = zext i1 %20 to i32
br label %22
22: ; preds = %19, %5, %2
%23 = phi i32 [ 1, %2 ], [ 0, %5 ], [ %21, %19 ]
ret i32 %23
}
void lgdt(const void *gdtr) { __asm("lgdt (%0)" ::"r"(gdtr) : "memory"); }


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

x86 assembly (clang, -O2):
<lgdt>:
lgdt   (%rdi)
ret

LLVM IR (-O0):
define void @lgdt(i8* %0) {
%2 = alloca i8*
store i8* %0, i8** %2
%3 = load i8*, i8** %2
ret void
}

LLVM IR (-O2):
define void @lgdt(i8* %0) {
tail call void asm sideeffect "lgdt ($0)", "r,~{memory},~{dirflag},~{fpsr},~{flags}"(i8* %0)
ret void
}
/* Variables and functions */
int /*<<< orphan*/ free(void *);
void safefree(void **pp) {
  if (pp) {
    free(*pp);
    *pp = NULL;
  }
}


x86 assembly (clang, -O0):
<safefree>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
mov    %rdi,-0x8(%rbp)
cmpq   $0x0,-0x8(%rbp)
je     113e <safefree+0x2e>
mov    -0x8(%rbp),%rax
mov    (%rax),%rdi
call   1030 <free@plt>
mov    -0x8(%rbp),%rax
movq   $0x0,(%rax)
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<safefree>:
test   %rdi,%rdi
je     1129 <safefree+0x19>
push   %rbx
mov    %rdi,%rbx
mov    (%rdi),%rdi
call   1030 <free@plt>
movq   $0x0,(%rbx)
pop    %rbx
ret

LLVM IR (-O0):
define void @safefree(i8** %0) {
%2 = alloca i8**
store i8** %0, i8*** %2
%3 = load i8**, i8*** %2
%4 = icmp ne i8** %3, null
br i1 %4, label %5, label %10
5: ; preds = %1
%6 = load i8**, i8*** %2
%7 = load i8*, i8** %6
%8 = call i32 @free(i8* %7)
%9 = load i8**, i8*** %2
store i8* null, i8** %9
br label %10
10: ; preds = %5, %1
ret void
}

LLVM IR (-O2):
define void @safefree(i8** %0) {
%2 = icmp eq i8** %0, null
br i1 %2, label %6, label %3
3: ; preds = %1
%4 = load i8*, i8** %0
%5 = tail call i32 @free(i8* %4)
store i8* null, i8** %0
br label %6
6: ; preds = %3, %1
ret void
}
/* Variables and functions */
double fabs(double);
double square(int x1, int x2, int x3, int y1, int y2, int y3) {
  return fabs(0.5 * ((y3 - y1) * (x2 - x1) - (y2 - y1) * (x3 - x1)));
}


x86 assembly (clang, -O0):
<square>:
push   %rbp
mov    %rsp,%rbp
mov    %edi,-0x4(%rbp)
mov    %esi,-0x8(%rbp)
mov    %edx,-0xc(%rbp)
mov    %ecx,-0x10(%rbp)
mov    %r8d,-0x14(%rbp)
mov    %r9d,-0x18(%rbp)
mov    -0x18(%rbp),%eax
sub    -0x10(%rbp),%eax
mov    -0x8(%rbp),%ecx
sub    -0x4(%rbp),%ecx
imul   %ecx,%eax
mov    -0x14(%rbp),%ecx
sub    -0x10(%rbp),%ecx
mov    -0xc(%rbp),%edx
sub    -0x4(%rbp),%edx
imul   %edx,%ecx
sub    %ecx,%eax
cvtsi2sd %eax,%xmm1
movsd  0xecc(%rip),%xmm0
mulsd  %xmm1,%xmm0
movaps 0xeb1(%rip),%xmm1
pand   %xmm1,%xmm0
pop    %rbp
ret

x86 assembly (clang, -O2):
<square>:
sub    %ecx,%r9d
sub    %edi,%esi
imul   %r9d,%esi
sub    %ecx,%r8d
sub    %edx,%edi
imul   %r8d,%edi
add    %esi,%edi
cvtsi2sd %edi,%xmm0
mulsd  0xee0(%rip),%xmm0
andpd  0xee8(%rip),%xmm0
ret

LLVM IR (-O0):
define double @square(i32 %0, i32 %1, i32 %2, i32 %3, i32 %4, i32 %5) {
%7 = alloca i32
%8 = alloca i32
%9 = alloca i32
%10 = alloca i32
%11 = alloca i32
%12 = alloca i32
store i32 %0, i32* %7
store i32 %1, i32* %8
store i32 %2, i32* %9
store i32 %3, i32* %10
store i32 %4, i32* %11
store i32 %5, i32* %12
%13 = load i32, i32* %12
%14 = load i32, i32* %10
%15 = sub nsw i32 %13, %14
%16 = load i32, i32* %8
%17 = load i32, i32* %7
%18 = sub nsw i32 %16, %17
%19 = mul nsw i32 %15, %18
%20 = load i32, i32* %11
%21 = load i32, i32* %10
%22 = sub nsw i32 %20, %21
%23 = load i32, i32* %9
%24 = load i32, i32* %7
%25 = sub nsw i32 %23, %24
%26 = mul nsw i32 %22, %25
%27 = sub nsw i32 %19, %26
%28 = sitofp i32 %27 to double
%29 = fmul double 5.000000e-01, %28
%30 = call double @llvm.fabs.f64(double %29)
ret double %30
}

LLVM IR (-O2):
define double @square(i32 %0, i32 %1, i32 %2, i32 %3, i32 %4, i32 %5) {
%7 = sub nsw i32 %5, %3
%8 = sub nsw i32 %1, %0
%9 = mul nsw i32 %7, %8
%10 = sub nsw i32 %4, %3
%11 = sub i32 %0, %2
%12 = mul i32 %10, %11
%13 = add i32 %9, %12
%14 = sitofp i32 %13 to double
%15 = fmul double %14, 5.000000e-01
%16 = tail call double @llvm.fabs.f64(double %15)
ret double %16
}
/* Variables and functions */
scalar_t__ determineOutcome(int, int, int /*<<< orphan*/, int /*<<< orphan*/);
int /*<<< orphan*/ printf(char *);
void main() {
  if (determineOutcome(99, 123, 0, 0)) {
    printf("Win");
  } else {
    printf("Loose");
  }
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
mov    $0x63,%edi
mov    $0x7b,%esi
xor    %ecx,%ecx
mov    %ecx,%edx
call   1040 <determineOutcome@plt>
cmp    $0x0,%rax
je     1152 <main+0x32>
lea    0xeb8(%rip),%rdi
call   1030 <printf@plt>
jmp    115e <main+0x3e>
lea    0xeab(%rip),%rdi
call   1030 <printf@plt>
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %rax
mov    $0x63,%edi
mov    $0x7b,%esi
xor    %edx,%edx
xor    %ecx,%ecx
call   1040 <determineOutcome@plt>
test   %rax,%rax
lea    0xec6(%rip),%rax
lea    0xebb(%rip),%rdi
cmove  %rax,%rdi
pop    %rax
jmp    1030 <printf@plt>

LLVM IR (-O0):
@.str = [4 x i8] c"Win\00"
@.str.1 = [6 x i8] c"Loose\00"
define void @main() {
%1 = call i64 @determineOutcome(i32 99, i32 123, i32 0, i32 0)
%2 = icmp ne i64 %1, 0
br i1 %2, label %3, label %5
3: ; preds = %0
%4 = call i32 @printf(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str, i64 0, i64 0))
br label %7
5: ; preds = %0
%6 = call i32 @printf(i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.1, i64 0, i64 0))
br label %7
7: ; preds = %5, %3
ret void
}

LLVM IR (-O2):
@.str = [4 x i8] c"Win\00"
@.str.1 = [6 x i8] c"Loose\00"
define void @main() {
%1 = tail call i64 @determineOutcome(i32 99, i32 123, i32 0, i32 0)
%2 = icmp eq i64 %1, 0
%3 = select i1 %2, i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.1, i64 0, i64 0), i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str, i64 0, i64 0)
%4 = tail call i32 @printf(i8* dereferenceable(1) %3)
ret void
}
void Comp_1_RestoreConfig(void) {}


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

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

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

LLVM IR (-O2):
define void @Comp_1_RestoreConfig() {
ret void
}
void __attribute__((unused)) dlock_dump() {}


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

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

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

LLVM IR (-O2):
define void @dlock_dump() {
ret void
}
void on_errs() {
  extern int ncopts;
  ncopts |= 1;
  ncopts |= 2;
}


x86 assembly (clang, -O0):
<on_errs>:
push   %rbp
mov    %rsp,%rbp
mov    0x2ed5(%rip),%rax
mov    (%rax),%ecx
or     $0x1,%ecx
mov    0x2ec9(%rip),%rax
mov    %ecx,(%rax)
mov    0x2ec0(%rip),%rax
mov    (%rax),%ecx
or     $0x2,%ecx
mov    0x2eb4(%rip),%rax
mov    %ecx,(%rax)
pop    %rbp
ret

x86 assembly (clang, -O2):
<on_errs>:
mov    0x2ed9(%rip),%rax
orb    $0x3,(%rax)
ret

LLVM IR (-O0):
@ncopts = external global i32
define void @on_errs() {
%1 = load i32, i32* @ncopts
%2 = or i32 %1, 1
store i32 %2, i32* @ncopts
%3 = load i32, i32* @ncopts
%4 = or i32 %3, 2
store i32 %4, i32* @ncopts
ret void
}

LLVM IR (-O2):
@ncopts = external global i32
define void @on_errs() {
%1 = load i32, i32* @ncopts
%2 = or i32 %1, 3
store i32 %2, i32* @ncopts
ret void
}
/* Variables and functions */
int /*<<< orphan*/ Say(char *, int);
int /*<<< orphan*/ move_stop(int, int, int, int);
void touch(void) {
  Say("I'd best not venture so far from town.  Too dangerous!", 1);
  move_stop(1, 2, 200, 1);
}


x86 assembly (clang, -O0):
<touch>:
push   %rbp
mov    %rsp,%rbp
lea    0xed5(%rip),%rdi
mov    $0x1,%esi
call   1030 <Say@plt>
mov    $0x1,%ecx
mov    $0x2,%esi
mov    $0xc8,%edx
mov    %ecx,%edi
call   1040 <move_stop@plt>
pop    %rbp
ret

x86 assembly (clang, -O2):
<touch>:
push   %rax
lea    0xed8(%rip),%rdi
mov    $0x1,%esi
call   1030 <Say@plt>
mov    $0x1,%edi
mov    $0x2,%esi
mov    $0xc8,%edx
mov    $0x1,%ecx
pop    %rax
jmp    1040 <move_stop@plt>

LLVM IR (-O0):
@.str = [55 x i8] c"I'd best not venture so far from town. Too dangerous!\00"
define void @touch() {
%1 = call i32 @Say(i8* getelementptr inbounds ([55 x i8], [55 x i8]* @.str, i64 0, i64 0), i32 1)
%2 = call i32 @move_stop(i32 1, i32 2, i32 200, i32 1)
ret void
}

LLVM IR (-O2):
@.str = [55 x i8] c"I'd best not venture so far from town. Too dangerous!\00"
define void @touch() {
%1 = tail call i32 @Say(i8* getelementptr inbounds ([55 x i8], [55 x i8]* @.str, i64 0, i64 0), i32 1)
%2 = tail call i32 @move_stop(i32 1, i32 2, i32 200, i32 1)
ret void
}
void do_swapint(int *tmpa, int *tmpb) {
  int swapint = 0;
  swapint = *tmpa;
  *tmpa = *tmpb;
  *tmpb = swapint;
}


x86 assembly (clang, -O0):
<do_swapint>:
push   %rbp
mov    %rsp,%rbp
mov    %rdi,-0x8(%rbp)
mov    %rsi,-0x10(%rbp)
movl   $0x0,-0x14(%rbp)
mov    -0x8(%rbp),%rax
mov    (%rax),%eax
mov    %eax,-0x14(%rbp)
mov    -0x10(%rbp),%rax
mov    (%rax),%ecx
mov    -0x8(%rbp),%rax
mov    %ecx,(%rax)
mov    -0x14(%rbp),%ecx
mov    -0x10(%rbp),%rax
mov    %ecx,(%rax)
pop    %rbp
ret

x86 assembly (clang, -O2):
<do_swapint>:
mov    (%rdi),%eax
mov    (%rsi),%ecx
mov    %ecx,(%rdi)
mov    %eax,(%rsi)
ret

LLVM IR (-O0):
define void @do_swapint(i32* %0, i32* %1) {
%3 = alloca i32*
%4 = alloca i32*
%5 = alloca i32
store i32* %0, i32** %3
store i32* %1, i32** %4
store i32 0, i32* %5
%6 = load i32*, i32** %3
%7 = load i32, i32* %6
store i32 %7, i32* %5
%8 = load i32*, i32** %4
%9 = load i32, i32* %8
%10 = load i32*, i32** %3
store i32 %9, i32* %10
%11 = load i32, i32* %5
%12 = load i32*, i32** %4
store i32 %11, i32* %12
ret void
}

LLVM IR (-O2):
define void @do_swapint(i32* nocapture %0, i32* nocapture %1) {
%3 = load i32, i32* %0
%4 = load i32, i32* %1
store i32 %4, i32* %0
store i32 %3, i32* %1
ret void
}
int or (int a, int b) { return (a | b) != 0; }


x86 assembly (clang, -O0):
<or>:
push   %rbp
mov    %rsp,%rbp
mov    %edi,-0x4(%rbp)
mov    %esi,-0x8(%rbp)
mov    -0x4(%rbp),%eax
or     -0x8(%rbp),%eax
cmp    $0x0,%eax
setne  %al
and    $0x1,%al
movzbl %al,%eax
pop    %rbp
ret

x86 assembly (clang, -O2):
<or>:
xor    %eax,%eax
or     %esi,%edi
setne  %al
ret

LLVM IR (-O0):
define i32 @or(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 = or i32 %5, %6
%8 = icmp ne i32 %7, 0
%9 = zext i1 %8 to i32
ret i32 %9
}

LLVM IR (-O2):
define i32 @or(i32 %0, i32 %1) {
%3 = or i32 %1, %0
%4 = icmp ne i32 %3, 0
%5 = zext i1 %4 to i32
ret i32 %5
}
I0A1(r0, r1, x0, x1, p0, p1) short r0, r1;
short *p0, *p1;
{
  if (22 <= (*((short *)11111111)))
    return 1;
  else
    return 0;
}


x86 assembly (clang, -O0):
<I0A1>:
push   %rbp
mov    %rsp,%rbp
mov    %esi,%eax
mov    %di,%si
mov    %si,-0x6(%rbp)
mov    %ax,-0x8(%rbp)
mov    %edx,-0xc(%rbp)
mov    %ecx,-0x10(%rbp)
mov    %r8,-0x18(%rbp)
mov    %r9,-0x20(%rbp)
mov    $0xa98ac7,%eax
movswl (%rax),%ecx
mov    $0x16,%eax
cmp    %ecx,%eax
jg     1140 <I0A1+0x40>
movl   $0x1,-0x4(%rbp)
jmp    1147 <I0A1+0x47>
movl   $0x0,-0x4(%rbp)
mov    -0x4(%rbp),%eax
pop    %rbp
ret

x86 assembly (clang, -O2):
<I0A1>:
xor    %eax,%eax
cmpw   $0x16,0xa98ac7
setge  %al
ret

LLVM IR (-O0):
define i32 @I0A1(i32 %0, i32 %1, i32 %2, i32 %3, i16* %4, i16* %5) {
%7 = alloca i32
%8 = alloca i16
%9 = alloca i16
%10 = alloca i32
%11 = alloca i32
%12 = alloca i16*
%13 = alloca i16*
%14 = trunc i32 %0 to i16
%15 = trunc i32 %1 to i16
store i16 %14, i16* %8
store i16 %15, i16* %9
store i32 %2, i32* %10
store i32 %3, i32* %11
store i16* %4, i16** %12
store i16* %5, i16** %13
%16 = load i16, i16* inttoptr (i64 11111111 to i16*)
%17 = sext i16 %16 to i32
%18 = icmp sle i32 22, %17
br i1 %18, label %19, label %20
19: ; preds = %6
store i32 1, i32* %7
br label %21
20: ; preds = %6
store i32 0, i32* %7
br label %21
21: ; preds = %20, %19
%22 = load i32, i32* %7
ret i32 %22
}

LLVM IR (-O2):
define i32 @I0A1(i32 %0, i32 %1, i32 %2, i32 %3, i16* nocapture readnone %4, i16* nocapture readnone %5) {
%7 = load i16, i16* inttoptr (i64 11111111 to i16*)
%8 = icmp sgt i16 %7, 21
%9 = zext i1 %8 to i32
ret i32 %9
}
/* Variables and functions */
int /*<<< orphan*/ itoa(int, char *, int);
int /*<<< orphan*/ puts(char *);
void printi(int i) {
  char temp[10];
  itoa(i, temp, 10);
  puts(temp);
}


x86 assembly (clang, -O0):
<printi>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
mov    %edi,-0x4(%rbp)
mov    -0x4(%rbp),%edi
lea    -0xe(%rbp),%rsi
mov    $0xa,%edx
call   1040 <itoa@plt>
lea    -0xe(%rbp),%rdi
call   1030 <puts@plt>
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<printi>:
push   %rbx
sub    $0x10,%rsp
lea    0x6(%rsp),%rbx
mov    %rbx,%rsi
mov    $0xa,%edx
call   1040 <itoa@plt>
mov    %rbx,%rdi
call   1030 <puts@plt>
add    $0x10,%rsp
pop    %rbx
ret

LLVM IR (-O0):
define void @printi(i32 %0) {
%2 = alloca i32
%3 = alloca [10 x i8]
store i32 %0, i32* %2
%4 = load i32, i32* %2
%5 = getelementptr inbounds [10 x i8], [10 x i8]* %3, i64 0, i64 0
%6 = call i32 @itoa(i32 %4, i8* %5, i32 10)
%7 = getelementptr inbounds [10 x i8], [10 x i8]* %3, i64 0, i64 0
%8 = call i32 @puts(i8* %7)
ret void
}

LLVM IR (-O2):
define void @printi(i32 %0) {
%2 = alloca [10 x i8]
%3 = getelementptr inbounds [10 x i8], [10 x i8]* %2, i64 0, i64 0
%4 = call i32 @itoa(i32 %0, i8* %3, i32 10)
%5 = call i32 @puts(i8* %3)
ret void
}
int max_i(int x, int y) { return x > y ? x : y; }


x86 assembly (clang, -O0):
<max_i>:
push   %rbp
mov    %rsp,%rbp
mov    %edi,-0x4(%rbp)
mov    %esi,-0x8(%rbp)
mov    -0x4(%rbp),%eax
cmp    -0x8(%rbp),%eax
jle    1121 <max_i+0x21>
mov    -0x4(%rbp),%eax
mov    %eax,-0xc(%rbp)
jmp    1127 <max_i+0x27>
mov    -0x8(%rbp),%eax
mov    %eax,-0xc(%rbp)
mov    -0xc(%rbp),%eax
pop    %rbp
ret

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

LLVM IR (-O0):
define i32 @max_i(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 = icmp sgt i32 %5, %6
br i1 %7, label %8, label %10
8: ; preds = %2
%9 = load i32, i32* %3
br label %12
10: ; preds = %2
%11 = load i32, i32* %4
br label %12
12: ; preds = %10, %8
%13 = phi i32 [ %9, %8 ], [ %11, %10 ]
ret i32 %13
}

LLVM IR (-O2):
define i32 @max_i(i32 %0, i32 %1) {
%3 = icmp sgt i32 %0, %1
%4 = select i1 %3, i32 %0, i32 %1
ret i32 %4
}
/* Variables and functions */
int /*<<< orphan*/ vmi_cpuid(unsigned int, unsigned int *, unsigned int *,
                             unsigned int *, unsigned int *);
unsigned int cpuid_ecx(unsigned int op) {
  unsigned int eax, ebx, ecx, edx;
  vmi_cpuid(op, &eax, &ebx, &ecx, &edx);
  return ecx;
}


x86 assembly (clang, -O0):
<cpuid_ecx>:
push   %rbp
mov    %rsp,%rbp
sub    $0x20,%rsp
mov    %edi,-0x4(%rbp)
mov    -0x4(%rbp),%edi
lea    -0x8(%rbp),%rsi
lea    -0xc(%rbp),%rdx
lea    -0x10(%rbp),%rcx
lea    -0x14(%rbp),%r8
call   1030 <vmi_cpuid@plt>
mov    -0x10(%rbp),%eax
add    $0x20,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<cpuid_ecx>:
sub    $0x18,%rsp
lea    0x14(%rsp),%rsi
lea    0x10(%rsp),%rdx
lea    0x8(%rsp),%rcx
lea    0xc(%rsp),%r8
call   1030 <vmi_cpuid@plt>
mov    0x8(%rsp),%eax
add    $0x18,%rsp
ret

LLVM IR (-O0):
define i32 @cpuid_ecx(i32 %0) {
%2 = alloca i32
%3 = alloca i32
%4 = alloca i32
%5 = alloca i32
%6 = alloca i32
store i32 %0, i32* %2
%7 = load i32, i32* %2
%8 = call i32 @vmi_cpuid(i32 %7, i32* %3, i32* %4, i32* %5, i32* %6)
%9 = load i32, i32* %5
ret i32 %9
}

LLVM IR (-O2):
define i32 @cpuid_ecx(i32 %0) {
%2 = alloca i32
%3 = alloca i32
%4 = alloca i32
%5 = alloca i32
%6 = bitcast i32* %2 to i8*
%7 = bitcast i32* %3 to i8*
%8 = bitcast i32* %4 to i8*
%9 = bitcast i32* %5 to i8*
%10 = call i32 @vmi_cpuid(i32 %0, i32* %2, i32* %3, i32* %4, i32* %5)
%11 = load i32, i32* %4
ret i32 %11
}
/* Variables and functions */
int /*<<< orphan*/ ft_strlen(char const *);
int /*<<< orphan*/ write(int, char const *, int /*<<< orphan*/);
void ft_putstr(char const *s) {
  if (!s)
    ft_putstr("(Null)");
  else
    write(1, s, ft_strlen(s));
}


x86 assembly (clang, -O0):
<ft_putstr>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
mov    %rdi,-0x8(%rbp)
cmpq   $0x0,-0x8(%rbp)
jne    1158 <ft_putstr+0x28>
lea    0xeb2(%rip),%rdi
call   1050 <ft_putstr@plt>
jmp    1179 <ft_putstr+0x49>
mov    -0x8(%rbp),%rax
mov    %rax,-0x10(%rbp)
mov    -0x8(%rbp),%rdi
call   1040 <ft_strlen@plt>
mov    -0x10(%rbp),%rsi
mov    %eax,%edx
mov    $0x1,%edi
call   1030 <write@plt>
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<ft_putstr>:
push   %rbx
test   %rdi,%rdi
lea    0xed5(%rip),%rbx
cmovne %rdi,%rbx
mov    %rbx,%rdi
call   1040 <ft_strlen@plt>
mov    $0x1,%edi
mov    %rbx,%rsi
mov    %eax,%edx
pop    %rbx
jmp    1030 <write@plt>

LLVM IR (-O0):
@.str = [7 x i8] c"(Null)\00"
define void @ft_putstr(i8* %0) {
%2 = alloca i8*
store i8* %0, i8** %2
%3 = load i8*, i8** %2
%4 = icmp ne i8* %3, null
br i1 %4, label %6, label %5
5: ; preds = %1
br label %11
6: ; preds = %1
%7 = load i8*, i8** %2
%8 = load i8*, i8** %2
%9 = call i32 @ft_strlen(i8* %8)
%10 = call i32 @write(i32 1, i8* %7, i32 %9)
br label %11
11: ; preds = %6, %5
ret void
}

LLVM IR (-O2):
@.str = [7 x i8] c"(Null)\00"
define void @ft_putstr(i8* %0) {
%2 = icmp eq i8* %0, null
%3 = select i1 %2, i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str, i64 0, i64 0), i8* %0
%4 = tail call i32 @ft_strlen(i8* %3)
%5 = tail call i32 @write(i32 1, i8* %3, i32 %4)
ret void
}
/* Variables and functions */
int /*<<< orphan*/ seq_engine_get_current_scene();
int song_get_mute(int /*<<< orphan*/, int);
int seq_ctrl_get_mute_select(int track) {
  return song_get_mute(seq_engine_get_current_scene(), track);
}


x86 assembly (clang, -O0):
<seq_ctrl_get_mute_select>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
mov    %edi,-0x4(%rbp)
mov    $0x0,%al
call   1030 <seq_engine_get_current_scene@plt>
mov    %eax,%edi
mov    -0x4(%rbp),%esi
call   1040 <song_get_mute@plt>
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<seq_ctrl_get_mute_select>:
push   %rbx
mov    %edi,%ebx
xor    %eax,%eax
call   1030 <seq_engine_get_current_scene@plt>
mov    %eax,%edi
mov    %ebx,%esi
pop    %rbx
jmp    1040 <song_get_mute@plt>

LLVM IR (-O0):
define i32 @seq_ctrl_get_mute_select(i32 %0) {
%2 = alloca i32
store i32 %0, i32* %2
%3 = call i32 (...) @seq_engine_get_current_scene()
%4 = load i32, i32* %2
%5 = call i32 @song_get_mute(i32 %3, i32 %4)
ret i32 %5
}

LLVM IR (-O2):
define i32 @seq_ctrl_get_mute_select(i32 %0) {
%2 = tail call i32 (...) @seq_engine_get_current_scene()
%3 = tail call i32 @song_get_mute(i32 %2, i32 %0)
ret i32 %3
}
/* Variables and functions */
int /*<<< orphan*/ closePwm();
void closePwmIfOpened() { closePwm(); }


x86 assembly (clang, -O0):
<closePwmIfOpened>:
push   %rbp
mov    %rsp,%rbp
mov    $0x0,%al
call   1030 <closePwm@plt>
pop    %rbp
ret

x86 assembly (clang, -O2):
<closePwmIfOpened>:
xor    %eax,%eax
jmp    1030 <closePwm@plt>

LLVM IR (-O0):
define void @closePwmIfOpened() {
%1 = call i32 (...) @closePwm()
ret void
}

LLVM IR (-O2):
define void @closePwmIfOpened() {
%1 = tail call i32 (...) @closePwm()
ret void
}
/* Variables and functions */
int /*<<< orphan*/ mz_ext_free(void *);
void def_free_func(void *opaque, void *address) {
  (void)opaque, (void)address;
  mz_ext_free(address);
}


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

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

LLVM IR (-O0):
define void @def_free_func(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 = load i8*, i8** %4
%8 = call i32 @mz_ext_free(i8* %7)
ret void
}

LLVM IR (-O2):
define void @def_free_func(i8* nocapture readnone %0, i8* %1) {
%3 = tail call i32 @mz_ext_free(i8* %1)
ret void
}
void RTDbgModImageSize(void) {}


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

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

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

LLVM IR (-O2):
define void @RTDbgModImageSize() {
ret void
}
/* Type definitions */
struct Cyc_List_List {
  int dummy;
};

/* Variables and functions */
struct Cyc_List_List *Cyc_Toseqc_toseqc(struct Cyc_List_List *);
struct Cyc_List_List *Cyc_do_toseqc(int ignore, struct Cyc_List_List *tds) {
  struct Cyc_List_List *_T0;
  _T0 = Cyc_Toseqc_toseqc(tds);
  return _T0;
}


x86 assembly (clang, -O0):
<Cyc_do_toseqc>:
push   %rbp
mov    %rsp,%rbp
sub    $0x20,%rsp
mov    %edi,-0x4(%rbp)
mov    %rsi,-0x10(%rbp)
mov    -0x10(%rbp),%rdi
call   1030 <Cyc_Toseqc_toseqc@plt>
mov    %rax,-0x18(%rbp)
mov    -0x18(%rbp),%rax
add    $0x20,%rsp
pop    %rbp
ret

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

LLVM IR (-O0):
%struct.Cyc_List_List = type { i32 }
define %struct.Cyc_List_List* @Cyc_do_toseqc(i32 %0, %struct.Cyc_List_List* %1) {
%3 = alloca i32
%4 = alloca %struct.Cyc_List_List*
%5 = alloca %struct.Cyc_List_List*
store i32 %0, i32* %3
store %struct.Cyc_List_List* %1, %struct.Cyc_List_List** %4
%6 = load %struct.Cyc_List_List*, %struct.Cyc_List_List** %4
%7 = call %struct.Cyc_List_List* @Cyc_Toseqc_toseqc(%struct.Cyc_List_List* %6)
store %struct.Cyc_List_List* %7, %struct.Cyc_List_List** %5
%8 = load %struct.Cyc_List_List*, %struct.Cyc_List_List** %5
ret %struct.Cyc_List_List* %8
}

LLVM IR (-O2):
%struct.Cyc_List_List = type { i32 }
define %struct.Cyc_List_List* @Cyc_do_toseqc(i32 %0, %struct.Cyc_List_List* %1) {
%3 = tail call %struct.Cyc_List_List* @Cyc_Toseqc_toseqc(%struct.Cyc_List_List* %1)
ret %struct.Cyc_List_List* %3
}
/* Type definitions */
struct node {
  int dummy;
};

/* Variables and functions */
int /*<<< orphan*/ __VERIFIER_plot(int /*<<< orphan*/ *, struct node **,
                                   struct node **);
int /*<<< orphan*/ create_shape(struct node **, struct node **);
int main() {
  struct node *x;
  struct node *y;
  create_shape(&x, &y);
  __VERIFIER_plot(NULL, &x, &y);
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
lea    -0x8(%rbp),%rdi
lea    -0x10(%rbp),%rsi
call   1040 <create_shape@plt>
xor    %eax,%eax
mov    %eax,%edi
lea    -0x8(%rbp),%rsi
lea    -0x10(%rbp),%rdx
call   1030 <__VERIFIER_plot@plt>
xor    %eax,%eax
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %r14
push   %rbx
sub    $0x18,%rsp
lea    0x10(%rsp),%rbx
lea    0x8(%rsp),%r14
mov    %rbx,%rdi
mov    %r14,%rsi
call   1040 <create_shape@plt>
xor    %edi,%edi
mov    %rbx,%rsi
mov    %r14,%rdx
call   1030 <__VERIFIER_plot@plt>
xor    %eax,%eax
add    $0x18,%rsp
pop    %rbx
pop    %r14
ret

LLVM IR (-O0):
%struct.node = type { i32 }
define i32 @main() {
%1 = alloca %struct.node*
%2 = alloca %struct.node*
%3 = call i32 @create_shape(%struct.node** %1, %struct.node** %2)
%4 = call i32 @__VERIFIER_plot(i32* null, %struct.node** %1, %struct.node** %2)
ret i32 0
}

LLVM IR (-O2):
%struct.node = type { i32 }
define i32 @main() {
%1 = alloca %struct.node*
%2 = alloca %struct.node*
%3 = bitcast %struct.node** %1 to i8*
%4 = bitcast %struct.node** %2 to i8*
%5 = call i32 @create_shape(%struct.node** %1, %struct.node** %2)
%6 = call i32 @__VERIFIER_plot(i32* null, %struct.node** %1, %struct.node** %2)
ret i32 0
}
/* Variables and functions */
int /*<<< orphan*/ S_IRWXU;
int /*<<< orphan*/ mkdir(char *, int /*<<< orphan*/);
char *output_directory() {
  char *directory = "./BogoSortResults";
  mkdir(directory, S_IRWXU);
  return directory;
}


x86 assembly (clang, -O0):
<output_directory>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
lea    0xee1(%rip),%rax
mov    %rax,-0x8(%rbp)
mov    -0x8(%rbp),%rdi
mov    0x2eba(%rip),%rax
mov    (%rax),%esi
call   1030 <mkdir@plt>
mov    -0x8(%rbp),%rax
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<output_directory>:
push   %rbx
mov    0x2ed0(%rip),%rax
mov    (%rax),%esi
lea    0xedf(%rip),%rbx
mov    %rbx,%rdi
call   1030 <mkdir@plt>
mov    %rbx,%rax
pop    %rbx
ret

LLVM IR (-O0):
@.str = [18 x i8] c"./BogoSortResults\00"
@S_IRWXU = global i32 0
define i8* @output_directory() {
%1 = alloca i8*
store i8* getelementptr inbounds ([18 x i8], [18 x i8]* @.str, i64 0, i64 0), i8** %1
%2 = load i8*, i8** %1
%3 = load i32, i32* @S_IRWXU
%4 = call i32 @mkdir(i8* %2, i32 %3)
%5 = load i8*, i8** %1
ret i8* %5
}

LLVM IR (-O2):
@.str = [18 x i8] c"./BogoSortResults\00"
@S_IRWXU = global i32 0
define i8* @output_directory() {
%1 = load i32, i32* @S_IRWXU
%2 = tail call i32 @mkdir(i8* getelementptr inbounds ([18 x i8], [18 x i8]* @.str, i64 0, i64 0), i32 %1)
ret i8* getelementptr inbounds ([18 x i8], [18 x i8]* @.str, i64 0, i64 0)
}
void foo501() {}


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

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

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

LLVM IR (-O2):
define void @foo501() {
ret void
}
int fun401() { return 401; }


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

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

LLVM IR (-O0):
define i32 @fun401() {
ret i32 401
}

LLVM IR (-O2):
define i32 @fun401() {
ret i32 401
}
int config_WITH_LB(void) { return 0; }


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

x86 assembly (clang, -O2):
<config_WITH_LB>:
xor    %eax,%eax
ret

LLVM IR (-O0):
define i32 @config_WITH_LB() {
ret i32 0
}

LLVM IR (-O2):
define i32 @config_WITH_LB() {
ret i32 0
}
/* Variables and functions */
int closeFile(int);
char *getStatusText(int const);
int /*<<< orphan*/ printf(char *, int, char *);
int closeFile_log(int oftIndex) {
  const int status = closeFile(oftIndex);
  printf("CLOSE FILE %d: %s\n", oftIndex, getStatusText(status));
  return status;
}


x86 assembly (clang, -O0):
<closeFile_log>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
mov    %edi,-0x4(%rbp)
mov    -0x4(%rbp),%edi
call   1040 <closeFile@plt>
mov    %eax,-0x8(%rbp)
mov    -0x4(%rbp),%eax
mov    %eax,-0xc(%rbp)
mov    -0x8(%rbp),%edi
call   1050 <getStatusText@plt>
mov    -0xc(%rbp),%esi
mov    %rax,%rdx
lea    0xe9f(%rip),%rdi
call   1030 <printf@plt>
mov    -0x8(%rbp),%eax
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<closeFile_log>:
push   %rbp
push   %rbx
push   %rax
mov    %edi,%ebx
call   1040 <closeFile@plt>
mov    %eax,%ebp
mov    %eax,%edi
call   1050 <getStatusText@plt>
lea    0xeb6(%rip),%rdi
mov    %ebx,%esi
mov    %rax,%rdx
call   1030 <printf@plt>
mov    %ebp,%eax
add    $0x8,%rsp
pop    %rbx
pop    %rbp
ret

LLVM IR (-O0):
@.str = [19 x i8] c"CLOSE FILE %d: %s\0A\00"
define i32 @closeFile_log(i32 %0) {
%2 = alloca i32
%3 = alloca i32
store i32 %0, i32* %2
%4 = load i32, i32* %2
%5 = call i32 @closeFile(i32 %4)
store i32 %5, i32* %3
%6 = load i32, i32* %2
%7 = load i32, i32* %3
%8 = call i8* @getStatusText(i32 %7)
%9 = call i32 @printf(i8* getelementptr inbounds ([19 x i8], [19 x i8]* @.str, i64 0, i64 0), i32 %6, i8* %8)
%10 = load i32, i32* %3
ret i32 %10
}

LLVM IR (-O2):
@.str = [19 x i8] c"CLOSE FILE %d: %s\0A\00"
define i32 @closeFile_log(i32 %0) {
%2 = tail call i32 @closeFile(i32 %0)
%3 = tail call i8* @getStatusText(i32 %2)
%4 = tail call i32 @printf(i8* getelementptr inbounds ([19 x i8], [19 x i8]* @.str, i64 0, i64 0), i32 %0, i8* %3)
ret i32 %2
}
/* Variables and functions */
int /*<<< orphan*/ printf(char *, unsigned long long);
int main() {
  int nresp = 0x4000000000000000;
  unsigned long long allocated = nresp * sizeof(char *);
  printf("%llu\n", allocated);
  return 0;
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
movl   $0x0,-0x4(%rbp)
movl   $0x0,-0x8(%rbp)
movslq -0x8(%rbp),%rax
shl    $0x3,%rax
mov    %rax,-0x10(%rbp)
mov    -0x10(%rbp),%rsi
lea    0xec3(%rip),%rdi
call   1030 <printf@plt>
xor    %eax,%eax
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %rax
lea    0xee8(%rip),%rdi
xor    %esi,%esi
call   1030 <printf@plt>
xor    %eax,%eax
pop    %rcx
ret

LLVM IR (-O0):
@.str = [6 x i8] c"%llu\0A\00"
define i32 @main() {
%1 = alloca i32
%2 = alloca i32
%3 = alloca i64
store i32 0, i32* %1
store i32 0, i32* %2
%4 = load i32, i32* %2
%5 = sext i32 %4 to i64
%6 = mul i64 %5, 8
store i64 %6, i64* %3
%7 = load i64, i64* %3
%8 = call i32 @printf(i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str, i64 0, i64 0), i64 %7)
ret i32 0
}

LLVM IR (-O2):
@.str = [6 x i8] c"%llu\0A\00"
define i32 @main() {
%1 = tail call i32 @printf(i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str, i64 0, i64 0), i64 0)
ret i32 0
}
char const *get_progname(void) {
  extern char progname[];
  return progname;
}


x86 assembly (clang, -O0):
<get_progname>:
push   %rbp
mov    %rsp,%rbp
mov    0x2ed5(%rip),%rax
pop    %rbp
ret

x86 assembly (clang, -O2):
<get_progname>:
mov    0x2ed9(%rip),%rax
ret

LLVM IR (-O0):
@progname = external global [0 x i8]
define i8* @get_progname() {
ret i8* getelementptr inbounds ([0 x i8], [0 x i8]* @progname, i64 0, i64 0)
}

LLVM IR (-O2):
@progname = external global [0 x i8]
define i8* @get_progname() {
ret i8* getelementptr inbounds ([0 x i8], [0 x i8]* @progname, i64 0, i64 0)
}
/* Variables and functions */
void *malloc(size_t);
void *LPA_allocMem(size_t numBytes) { return malloc(numBytes); }


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

x86 assembly (clang, -O2):
<LPA_allocMem>:
jmp    1030 <malloc@plt>

LLVM IR (-O0):
define i8* @LPA_allocMem(i64 %0) {
%2 = alloca i64
store i64 %0, i64* %2
%3 = load i64, i64* %2
%4 = call i8* @malloc(i64 %3)
ret i8* %4
}

LLVM IR (-O2):
define noalias i8* @LPA_allocMem(i64 %0) {
%2 = tail call i8* @malloc(i64 %0)
ret i8* %2
}
/* Variables and functions */
int /*<<< orphan*/ printf(char *, int, int);
void pinMode(int pin, int mode) {
  printf("pinMode: pin=%d, mode=%d\n", pin, mode);
}


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

x86 assembly (clang, -O2):
<pinMode>:
mov    %esi,%edx
mov    %edi,%esi
lea    0xee5(%rip),%rdi
jmp    1030 <printf@plt>

LLVM IR (-O0):
@.str = [26 x i8] c"pinMode: pin=%d, mode=%d\0A\00"
define void @pinMode(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 = call i32 @printf(i8* getelementptr inbounds ([26 x i8], [26 x i8]* @.str, i64 0, i64 0), i32 %5, i32 %6)
ret void
}

LLVM IR (-O2):
@.str = [26 x i8] c"pinMode: pin=%d, mode=%d\0A\00"
define void @pinMode(i32 %0, i32 %1) {
%3 = tail call i32 @printf(i8* getelementptr inbounds ([26 x i8], [26 x i8]* @.str, i64 0, i64 0), i32 %0, i32 %1)
ret void
}
int isoperator(int c) {
  return (c == '-' || c == '*' || c == '/' || c == '+' || c == '#' ||
          c == '(' || c == ')')
             ? 1
             : 0;
}


x86 assembly (clang, -O0):
<isoperator>:
push   %rbp
mov    %rsp,%rbp
mov    %edi,-0x4(%rbp)
mov    $0x1,%al
cmpl   $0x2d,-0x4(%rbp)
mov    %al,-0x5(%rbp)
je     116b <isoperator+0x6b>
mov    $0x1,%al
cmpl   $0x2a,-0x4(%rbp)
mov    %al,-0x5(%rbp)
je     116b <isoperator+0x6b>
mov    $0x1,%al
cmpl   $0x2f,-0x4(%rbp)
mov    %al,-0x5(%rbp)
je     116b <isoperator+0x6b>
mov    $0x1,%al
cmpl   $0x2b,-0x4(%rbp)
mov    %al,-0x5(%rbp)
je     116b <isoperator+0x6b>
mov    $0x1,%al
cmpl   $0x23,-0x4(%rbp)
mov    %al,-0x5(%rbp)
je     116b <isoperator+0x6b>
mov    $0x1,%al
cmpl   $0x28,-0x4(%rbp)
mov    %al,-0x5(%rbp)
je     116b <isoperator+0x6b>
cmpl   $0x29,-0x4(%rbp)
sete   %al
mov    %al,-0x5(%rbp)
mov    -0x5(%rbp),%dl
xor    %eax,%eax
mov    $0x1,%ecx
test   $0x1,%dl
cmovne %ecx,%eax
pop    %rbp
ret

x86 assembly (clang, -O2):
<isoperator>:
lea    -0x23(%rdi),%ecx
cmp    $0xd,%ecx
jae    1117 <isoperator+0x17>
mov    $0x1,%eax
mov    $0x15a1,%edx
bt     %ecx,%edx
jb     111f <isoperator+0x1f>
xor    %eax,%eax
cmp    $0x29,%edi
sete   %al
ret

LLVM IR (-O0):
define i32 @isoperator(i32 %0) {
%2 = alloca i32
store i32 %0, i32* %2
%3 = load i32, i32* %2
%4 = icmp eq i32 %3, 45
br i1 %4, label %23, label %5
5: ; preds = %1
%6 = load i32, i32* %2
%7 = icmp eq i32 %6, 42
br i1 %7, label %23, label %8
8: ; preds = %5
%9 = load i32, i32* %2
%10 = icmp eq i32 %9, 47
br i1 %10, label %23, label %11
11: ; preds = %8
%12 = load i32, i32* %2
%13 = icmp eq i32 %12, 43
br i1 %13, label %23, label %14
14: ; preds = %11
%15 = load i32, i32* %2
%16 = icmp eq i32 %15, 35
br i1 %16, label %23, label %17
17: ; preds = %14
%18 = load i32, i32* %2
%19 = icmp eq i32 %18, 40
br i1 %19, label %23, label %20
20: ; preds = %17
%21 = load i32, i32* %2
%22 = icmp eq i32 %21, 41
br label %23
23: ; preds = %20, %17, %14, %11, %8, %5, %1
%24 = phi i1 [ true, %17 ], [ true, %14 ], [ true, %11 ], [ true, %8 ], [ true, %5 ], [ true, %1 ], [ %22, %20 ]
%25 = zext i1 %24 to i64
%26 = select i1 %24, i32 1, i32 0
ret i32 %26
}

LLVM IR (-O2):
define i32 @isoperator(i32 %0) {
%2 = add i32 %0, -35
%3 = icmp ult i32 %2, 13
br i1 %3, label %7, label %4
4: ; preds = %7, %1
%5 = icmp eq i32 %0, 41
%6 = zext i1 %5 to i32
br label %12
7: ; preds = %1
%8 = trunc i32 %2 to i16
%9 = lshr i16 5537, %8
%10 = and i16 %9, 1
%11 = icmp eq i16 %10, 0
br i1 %11, label %4, label %12
12: ; preds = %7, %4
%13 = phi i32 [ %6, %4 ], [ 1, %7 ]
ret i32 %13
}