xunge/DecIR huggingface dataset:
unsigned int print_leaf(unsigned int leaf, unsigned int idx) {
  unsigned int eax, ebx, ecx, edx;
  asm("cpuid"
      : "=a"(eax), "=b"(ebx), "=c"(ecx), "=d"(edx)
      : "a"(leaf), "c"(idx));
  printf("   0x%08x 0x%02x: eax=0x%08x ebx=0x%08x"
         " ecx=0x%08x edx=0x%08x\n",
         leaf, idx, eax, ebx, ecx, edx);
  return eax;
}


x86 assembly (clang, -O0):
<print_leaf>:
push   %rbp
mov    %rsp,%rbp
push   %rbx
sub    $0x28,%rsp
mov    %edi,-0xc(%rbp)
mov    %esi,-0x10(%rbp)
mov    -0xc(%rbp),%eax
mov    -0x10(%rbp),%ecx
cpuid
mov    %eax,-0x14(%rbp)
mov    %ebx,-0x18(%rbp)
mov    %ecx,-0x1c(%rbp)
mov    %edx,-0x20(%rbp)
mov    -0xc(%rbp),%esi
mov    -0x10(%rbp),%edx
mov    -0x14(%rbp),%ecx
mov    -0x18(%rbp),%r8d
mov    -0x1c(%rbp),%r9d
mov    -0x20(%rbp),%eax
lea    0xeb2(%rip),%rdi
mov    %eax,(%rsp)
mov    $0x0,%al
call   1030 <printf@plt>
mov    -0x14(%rbp),%eax
add    $0x28,%rsp
pop    %rbx
pop    %rbp
ret

x86 assembly (clang, -O2):
<print_leaf>:
push   %rbp
push   %rbx
push   %rax
mov    %esi,%r8d
mov    %edi,%esi
mov    %edi,%eax
mov    %r8d,%ecx
cpuid
mov    %ecx,%r9d
mov    %eax,%ebp
mov    %edx,(%rsp)
lea    0xed2(%rip),%rdi
mov    %r8d,%edx
mov    %eax,%ecx
mov    %ebx,%r8d
xor    %eax,%eax
call   1030 <printf@plt>
mov    %ebp,%eax
add    $0x8,%rsp
pop    %rbx
pop    %rbp
ret

LLVM IR (-O0):
@.str = [63 x i8] c" 0x%08x 0x%02x: eax=0x%08x ebx=0x%08x ecx=0x%08x edx=0x%08x\0A\00"
define i32 @print_leaf(i32 %0, i32 %1) {
%3 = alloca i32
%4 = alloca i32
%5 = alloca i32
%6 = alloca i32
%7 = alloca i32
%8 = alloca i32
store i32 %0, i32* %3
store i32 %1, i32* %4
%9 = load i32, i32* %3
%10 = load i32, i32* %4
%11 = call { i32, i32, i32, i32 } asm "cpuid", "={ax},={bx},={cx},={dx},{ax},{cx},~{dirflag},~{fpsr},~{flags}"(i32 %9, i32 %10)
%12 = extractvalue { i32, i32, i32, i32 } %11, 0
%13 = extractvalue { i32, i32, i32, i32 } %11, 1
%14 = extractvalue { i32, i32, i32, i32 } %11, 2
%15 = extractvalue { i32, i32, i32, i32 } %11, 3
store i32 %12, i32* %5
store i32 %13, i32* %6
store i32 %14, i32* %7
store i32 %15, i32* %8
%16 = load i32, i32* %3
%17 = load i32, i32* %4
%18 = load i32, i32* %5
%19 = load i32, i32* %6
%20 = load i32, i32* %7
%21 = load i32, i32* %8
%22 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([63 x i8], [63 x i8]* @.str, i64 0, i64 0), i32 %16, i32 %17, i32 %18, i32 %19, i32 %20, i32 %21)
%23 = load i32, i32* %5
ret i32 %23
}

LLVM IR (-O2):
@.str = [63 x i8] c" 0x%08x 0x%02x: eax=0x%08x ebx=0x%08x ecx=0x%08x edx=0x%08x\0A\00"
define i32 @print_leaf(i32 %0, i32 %1) {
%3 = tail call { i32, i32, i32, i32 } asm "cpuid", "={ax},={bx},={cx},={dx},{ax},{cx},~{dirflag},~{fpsr},~{flags}"(i32 %0, i32 %1)
%4 = extractvalue { i32, i32, i32, i32 } %3, 0
%5 = extractvalue { i32, i32, i32, i32 } %3, 1
%6 = extractvalue { i32, i32, i32, i32 } %3, 2
%7 = extractvalue { i32, i32, i32, i32 } %3, 3
%8 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([63 x i8], [63 x i8]* @.str, i64 0, i64 0), i32 %0, i32 %1, i32 %4, i32 %5, i32 %6, i32 %7)
ret i32 %4
}
/* Variables and functions */
long shim_enosys(int /*<<< orphan*/, void *, unsigned long, int,
                 unsigned long const *, unsigned long, unsigned int);
long shim_mbind(void *addr, unsigned long len, int mode,
                const unsigned long *nodemask, unsigned long maxnode,
                unsigned flags) {
  return shim_enosys(0, addr, len, mode, nodemask, maxnode, flags);
}


x86 assembly (clang, -O0):
<shim_mbind>:
push   %rbp
mov    %rsp,%rbp
sub    $0x40,%rsp
mov    %rdi,-0x8(%rbp)
mov    %rsi,-0x10(%rbp)
mov    %edx,-0x14(%rbp)
mov    %rcx,-0x20(%rbp)
mov    %r8,-0x28(%rbp)
mov    %r9d,-0x2c(%rbp)
mov    -0x8(%rbp),%rsi
mov    -0x10(%rbp),%rdx
mov    -0x14(%rbp),%ecx
mov    -0x20(%rbp),%r8
mov    -0x28(%rbp),%r9
mov    -0x2c(%rbp),%eax
xor    %edi,%edi
mov    %eax,(%rsp)
call   1030 <shim_enosys@plt>
add    $0x40,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<shim_mbind>:
push   %rax
mov    %r8,%rax
mov    %rcx,%r8
mov    %edx,%ecx
mov    %rsi,%rdx
mov    %rdi,%rsi
mov    %r9d,(%rsp)
xor    %edi,%edi
mov    %rax,%r9
call   1030 <shim_enosys@plt>
pop    %rcx
ret

LLVM IR (-O0):
define i64 @shim_mbind(i8* %0, i64 %1, i32 %2, i64* %3, i64 %4, i32 %5) {
%7 = alloca i8*
%8 = alloca i64
%9 = alloca i32
%10 = alloca i64*
%11 = alloca i64
%12 = alloca i32
store i8* %0, i8** %7
store i64 %1, i64* %8
store i32 %2, i32* %9
store i64* %3, i64** %10
store i64 %4, i64* %11
store i32 %5, i32* %12
%13 = load i8*, i8** %7
%14 = load i64, i64* %8
%15 = load i32, i32* %9
%16 = load i64*, i64** %10
%17 = load i64, i64* %11
%18 = load i32, i32* %12
%19 = call i64 @shim_enosys(i32 0, i8* %13, i64 %14, i32 %15, i64* %16, i64 %17, i32 %18)
ret i64 %19
}

LLVM IR (-O2):
define i64 @shim_mbind(i8* %0, i64 %1, i32 %2, i64* %3, i64 %4, i32 %5) {
%7 = tail call i64 @shim_enosys(i32 0, i8* %0, i64 %1, i32 %2, i64* %3, i64 %4, i32 %5)
ret i64 %7
}
int main(void) {
  for (int counter = 0; counter < 5; counter++) {
    for (int a = 0; a < 5; a++) {
      int b;
      for (b = 0; b < 5; b++) {
      }
    }
  }
  return (0);
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
movl   $0x0,-0x4(%rbp)
movl   $0x0,-0x8(%rbp)
cmpl   $0x5,-0x8(%rbp)
jge    1177 <main+0x77>
movl   $0x0,-0xc(%rbp)
cmpl   $0x5,-0xc(%rbp)
jge    1164 <main+0x64>
movl   $0x0,-0x10(%rbp)
cmpl   $0x5,-0x10(%rbp)
jge    1151 <main+0x51>
jmp    1143 <main+0x43>
mov    -0x10(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x10(%rbp)
jmp    1134 <main+0x34>
jmp    1156 <main+0x56>
mov    -0xc(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0xc(%rbp)
jmp    1123 <main+0x23>
jmp    1169 <main+0x69>
mov    -0x8(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x8(%rbp)
jmp    1112 <main+0x12>
xor    %eax,%eax
pop    %rbp
ret

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

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

LLVM IR (-O2):
define i32 @main() {
ret i32 0
}
/* Variables and functions */
int /*<<< orphan*/ pm_error(char *);
void pm_system(void stdinFeeder(int, void *), void *const feederParm,
               void stdoutAccepter(int, void *), void *const accepterParm,
               const char *const shellCommand) {
  pm_error("This program wants to run another program using pm_system() in "
           "the libnetpbm library, but libnetpbm was built without "
           "the pm_system() facility -- probably because this system "
           "doesn't have the process management facilities pm_system() "
           "requires.");
}


x86 assembly (clang, -O0):
<pm_system>:
push   %rbp
mov    %rsp,%rbp
sub    $0x30,%rsp
mov    %rdi,-0x8(%rbp)
mov    %rsi,-0x10(%rbp)
mov    %rdx,-0x18(%rbp)
mov    %rcx,-0x20(%rbp)
mov    %r8,-0x28(%rbp)
lea    0xecd(%rip),%rdi
call   1030 <pm_error@plt>
add    $0x30,%rsp
pop    %rbp
ret

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

LLVM IR (-O0):
@.str = [244 x i8] c"This program wants to run another program using pm_system() in the libnetpbm library, but libnetpbm was built without the pm_system() facility -- probably because this system doesn't have the process management facilities pm_system() requires.\00"
define void @pm_system(void (i32, i8*)* %0, i8* %1, void (i32, i8*)* %2, i8* %3, i8* %4) {
%6 = alloca void (i32, i8*)*
%7 = alloca i8*
%8 = alloca void (i32, i8*)*
%9 = alloca i8*
%10 = alloca i8*
store void (i32, i8*)* %0, void (i32, i8*)** %6
store i8* %1, i8** %7
store void (i32, i8*)* %2, void (i32, i8*)** %8
store i8* %3, i8** %9
store i8* %4, i8** %10
%11 = call i32 @pm_error(i8* getelementptr inbounds ([244 x i8], [244 x i8]* @.str, i64 0, i64 0))
ret void
}

LLVM IR (-O2):
@.str = [244 x i8] c"This program wants to run another program using pm_system() in the libnetpbm library, but libnetpbm was built without the pm_system() facility -- probably because this system doesn't have the process management facilities pm_system() requires.\00"
define void @pm_system(void (i32, i8*)* nocapture readnone %0, i8* nocapture readnone %1, void (i32, i8*)* nocapture readnone %2, i8* nocapture readnone %3, i8* nocapture readnone %4) {
%6 = tail call i32 @pm_error(i8* getelementptr inbounds ([244 x i8], [244 x i8]* @.str, i64 0, i64 0))
ret void
}
void ccc(int arg) {}


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

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

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

LLVM IR (-O2):
define void @ccc(i32 %0) {
ret void
}
void rop3_220_1_1(unsigned char *D, unsigned char S, unsigned char T) {
  unsigned char stk1;
  unsigned char stk2;
  unsigned char stk3;
  stk3 = ~*D;
  stk2 = T & stk3;
  stk1 = S | stk2;
  *D = (stk1 & (~S) & (~T)) | (*D & S) | (*D & T);
}


x86 assembly (clang, -O0):
<rop3_220_1_1>:
push   %rbp
mov    %rsp,%rbp
mov    %dl,%al
mov    %sil,%cl
mov    %rdi,-0x8(%rbp)
mov    %cl,-0x9(%rbp)
mov    %al,-0xa(%rbp)
mov    -0x8(%rbp),%rax
movzbl (%rax),%eax
xor    $0xffffffff,%eax
mov    %al,-0xd(%rbp)
movzbl -0xa(%rbp),%eax
movzbl -0xd(%rbp),%ecx
and    %ecx,%eax
mov    %al,-0xc(%rbp)
movzbl -0x9(%rbp),%eax
movzbl -0xc(%rbp),%ecx
or     %ecx,%eax
mov    %al,-0xb(%rbp)
movzbl -0xb(%rbp),%eax
movzbl -0x9(%rbp),%ecx
xor    $0xffffffff,%ecx
and    %ecx,%eax
movzbl -0xa(%rbp),%ecx
xor    $0xffffffff,%ecx
and    %ecx,%eax
mov    -0x8(%rbp),%rcx
movzbl (%rcx),%ecx
movzbl -0x9(%rbp),%edx
and    %edx,%ecx
or     %ecx,%eax
mov    -0x8(%rbp),%rcx
movzbl (%rcx),%ecx
movzbl -0xa(%rbp),%edx
and    %edx,%ecx
or     %ecx,%eax
mov    %al,%cl
mov    -0x8(%rbp),%rax
mov    %cl,(%rax)
pop    %rbp
ret

x86 assembly (clang, -O2):
<rop3_220_1_1>:
or     %edx,%esi
and    %sil,(%rdi)
ret

LLVM IR (-O0):
define void @rop3_220_1_1(i8* %0, i8 zeroext %1, i8 zeroext %2) {
%4 = alloca i8*
%5 = alloca i8
%6 = alloca i8
%7 = alloca i8
%8 = alloca i8
%9 = alloca i8
store i8* %0, i8** %4
store i8 %1, i8* %5
store i8 %2, i8* %6
%10 = load i8*, i8** %4
%11 = load i8, i8* %10
%12 = zext i8 %11 to i32
%13 = xor i32 %12, -1
%14 = trunc i32 %13 to i8
store i8 %14, i8* %9
%15 = load i8, i8* %6
%16 = zext i8 %15 to i32
%17 = load i8, i8* %9
%18 = zext i8 %17 to i32
%19 = and i32 %16, %18
%20 = trunc i32 %19 to i8
store i8 %20, i8* %8
%21 = load i8, i8* %5
%22 = zext i8 %21 to i32
%23 = load i8, i8* %8
%24 = zext i8 %23 to i32
%25 = or i32 %22, %24
%26 = trunc i32 %25 to i8
store i8 %26, i8* %7
%27 = load i8, i8* %7
%28 = zext i8 %27 to i32
%29 = load i8, i8* %5
%30 = zext i8 %29 to i32
%31 = xor i32 %30, -1
%32 = and i32 %28, %31
%33 = load i8, i8* %6
%34 = zext i8 %33 to i32
%35 = xor i32 %34, -1
%36 = and i32 %32, %35
%37 = load i8*, i8** %4
%38 = load i8, i8* %37
%39 = zext i8 %38 to i32
%40 = load i8, i8* %5
%41 = zext i8 %40 to i32
%42 = and i32 %39, %41
%43 = or i32 %36, %42
%44 = load i8*, i8** %4
%45 = load i8, i8* %44
%46 = zext i8 %45 to i32
%47 = load i8, i8* %6
%48 = zext i8 %47 to i32
%49 = and i32 %46, %48
%50 = or i32 %43, %49
%51 = trunc i32 %50 to i8
%52 = load i8*, i8** %4
store i8 %51, i8* %52
ret void
}

LLVM IR (-O2):
define void @rop3_220_1_1(i8* nocapture %0, i8 zeroext %1, i8 zeroext %2) {
%4 = load i8, i8* %0
%5 = or i8 %2, %1
%6 = and i8 %4, %5
store i8 %6, i8* %0
ret void
}
/* Type definitions */
struct feature_pair {
  int dummy;
};
struct CovariateAnalysis {
  int dummy;
};
typedef int /*<<< orphan*/ FILE;

/* Variables and functions */
void _emitJSONUniFeatureClassL(const struct feature_pair *pair,
                               const struct CovariateAnalysis *covan,
                               FILE *fp) {}


x86 assembly (clang, -O0):
<_emitJSONUniFeatureClassL>:
push   %rbp
mov    %rsp,%rbp
mov    %rdi,-0x8(%rbp)
mov    %rsi,-0x10(%rbp)
mov    %rdx,-0x18(%rbp)
pop    %rbp
ret

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

LLVM IR (-O0):
%struct.feature_pair = type { i32 }
%struct.CovariateAnalysis = type { i32 }
define void @_emitJSONUniFeatureClassL(%struct.feature_pair* %0, %struct.CovariateAnalysis* %1, i32* %2) {
%4 = alloca %struct.feature_pair*
%5 = alloca %struct.CovariateAnalysis*
%6 = alloca i32*
store %struct.feature_pair* %0, %struct.feature_pair** %4
store %struct.CovariateAnalysis* %1, %struct.CovariateAnalysis** %5
store i32* %2, i32** %6
ret void
}

LLVM IR (-O2):
%struct.feature_pair = type { i32 }
%struct.CovariateAnalysis = type { i32 }
define void @_emitJSONUniFeatureClassL(%struct.feature_pair* nocapture %0, %struct.CovariateAnalysis* nocapture %1, i32* nocapture %2) {
ret void
}
int get_code(int a, int b, int c) { return a * 4 + b * 2 + c; }


x86 assembly (clang, -O0):
<get_code>:
push   %rbp
mov    %rsp,%rbp
mov    %edi,-0x4(%rbp)
mov    %esi,-0x8(%rbp)
mov    %edx,-0xc(%rbp)
mov    -0x4(%rbp),%eax
shl    $0x2,%eax
mov    -0x8(%rbp),%ecx
shl    $0x1,%ecx
add    %ecx,%eax
add    -0xc(%rbp),%eax
pop    %rbp
ret

x86 assembly (clang, -O2):
<get_code>:
shl    $0x2,%edi
lea    (%rdi,%rsi,2),%eax
add    %edx,%eax
ret

LLVM IR (-O0):
define i32 @get_code(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 = mul nsw i32 %7, 4
%9 = load i32, i32* %5
%10 = mul nsw i32 %9, 2
%11 = add nsw i32 %8, %10
%12 = load i32, i32* %6
%13 = add nsw i32 %11, %12
ret i32 %13
}

LLVM IR (-O2):
define i32 @get_code(i32 %0, i32 %1, i32 %2) {
%4 = shl nsw i32 %0, 2
%5 = shl nsw i32 %1, 1
%6 = add nsw i32 %5, %4
%7 = add nsw i32 %6, %2
ret i32 %7
}
/* Type definitions */
typedef int uint32_t;

/* Variables and functions */
void set_bit24(uint32_t *bitarray, uint32_t index) {
  bitarray[index >> 5] |= 0x80000000 >> (index & 0x0000001f);
}


x86 assembly (clang, -O0):
<set_bit24>:
push   %rbp
mov    %rsp,%rbp
mov    %rdi,-0x8(%rbp)
mov    %esi,-0xc(%rbp)
mov    -0xc(%rbp),%ecx
and    $0x1f,%ecx
mov    $0x80000000,%edx
shr    %cl,%edx
mov    -0x8(%rbp),%rax
mov    -0xc(%rbp),%ecx
sar    $0x5,%ecx
movslq %ecx,%rcx
or     (%rax,%rcx,4),%edx
mov    %edx,(%rax,%rcx,4)
pop    %rbp
ret

x86 assembly (clang, -O2):
<set_bit24>:
mov    %esi,%ecx
mov    $0x80000000,%eax
shr    %cl,%eax
sar    $0x5,%ecx
movslq %ecx,%rcx
or     %eax,(%rdi,%rcx,4)
ret

LLVM IR (-O0):
define void @set_bit24(i32* %0, i32 %1) {
%3 = alloca i32*
%4 = alloca i32
store i32* %0, i32** %3
store i32 %1, i32* %4
%5 = load i32, i32* %4
%6 = and i32 %5, 31
%7 = lshr i32 -2147483648, %6
%8 = load i32*, i32** %3
%9 = load i32, i32* %4
%10 = ashr i32 %9, 5
%11 = sext i32 %10 to i64
%12 = getelementptr inbounds i32, i32* %8, i64 %11
%13 = load i32, i32* %12
%14 = or i32 %13, %7
store i32 %14, i32* %12
ret void
}

LLVM IR (-O2):
define void @set_bit24(i32* nocapture %0, i32 %1) {
%3 = and i32 %1, 31
%4 = lshr i32 -2147483648, %3
%5 = ashr i32 %1, 5
%6 = sext i32 %5 to i64
%7 = getelementptr inbounds i32, i32* %0, i64 %6
%8 = load i32, i32* %7
%9 = or i32 %8, %4
store i32 %9, i32* %7
ret void
}
float HMM_Clamp(float Min, float Value, float Max) {
  float Result = Value;
  if (Result < Min) {
    Result = Min;
  } else if (Result > Max) {
    Result = Max;
  }
  return (Result);
}


x86 assembly (clang, -O0):
<HMM_Clamp>:
push   %rbp
mov    %rsp,%rbp
movss  %xmm0,-0x4(%rbp)
movss  %xmm1,-0x8(%rbp)
movss  %xmm2,-0xc(%rbp)
movss  -0x8(%rbp),%xmm0
movss  %xmm0,-0x10(%rbp)
movss  -0x10(%rbp),%xmm1
movss  -0x4(%rbp),%xmm0
ucomiss %xmm1,%xmm0
jbe    113f <HMM_Clamp+0x3f>
movss  -0x4(%rbp),%xmm0
movss  %xmm0,-0x10(%rbp)
jmp    115d <HMM_Clamp+0x5d>
movss  -0x10(%rbp),%xmm0
ucomiss -0xc(%rbp),%xmm0
jbe    1158 <HMM_Clamp+0x58>
movss  -0xc(%rbp),%xmm0
movss  %xmm0,-0x10(%rbp)
jmp    115d <HMM_Clamp+0x5d>
movss  -0x10(%rbp),%xmm0
pop    %rbp
ret

x86 assembly (clang, -O2):
<HMM_Clamp>:
ucomiss %xmm1,%xmm0
ja     1110 <HMM_Clamp+0x10>
ucomiss %xmm2,%xmm1
movaps %xmm1,%xmm0
jbe    1110 <HMM_Clamp+0x10>
movaps %xmm2,%xmm0
ret

LLVM IR (-O0):
define float @HMM_Clamp(float %0, float %1, float %2) {
%4 = alloca float
%5 = alloca float
%6 = alloca float
%7 = alloca float
store float %0, float* %4
store float %1, float* %5
store float %2, float* %6
%8 = load float, float* %5
store float %8, float* %7
%9 = load float, float* %7
%10 = load float, float* %4
%11 = fcmp olt float %9, %10
br i1 %11, label %12, label %14
12: ; preds = %3
%13 = load float, float* %4
store float %13, float* %7
br label %21
14: ; preds = %3
%15 = load float, float* %7
%16 = load float, float* %6
%17 = fcmp ogt float %15, %16
br i1 %17, label %18, label %20
18: ; preds = %14
%19 = load float, float* %6
store float %19, float* %7
br label %20
20: ; preds = %18, %14
br label %21
21: ; preds = %20, %12
%22 = load float, float* %7
ret float %22
}

LLVM IR (-O2):
define float @HMM_Clamp(float %0, float %1, float %2) {
%4 = fcmp olt float %1, %0
br i1 %4, label %8, label %5
5: ; preds = %3
%6 = fcmp ogt float %1, %2
br i1 %6, label %7, label %8
7: ; preds = %5
br label %8
8: ; preds = %3, %5, %7
%9 = phi float [ %2, %7 ], [ %1, %5 ], [ %0, %3 ]
ret float %9
}
void XSyncValueHigh32() {}


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

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

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

LLVM IR (-O2):
define void @XSyncValueHigh32() {
ret void
}
long long GetN() { return 1000000000LL; }


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

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

LLVM IR (-O0):
define i64 @GetN() {
ret i64 1000000000
}

LLVM IR (-O2):
define i64 @GetN() {
ret i64 1000000000
}
/* Variables and functions */
scalar_t__ lua_check_number(int, char *);
int /*<<< orphan*/ lua_pushnumber(int);
void math_mod(void) {
  int d1 = (int)lua_check_number(1, "mod");
  int d2 = (int)lua_check_number(2, "mod");
  lua_pushnumber(d1 % d2);
}


x86 assembly (clang, -O0):
<math_mod>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
mov    $0x1,%edi
lea    0xecc(%rip),%rsi
call   1030 <lua_check_number@plt>
mov    %eax,-0x4(%rbp)
mov    $0x2,%edi
lea    0xeb8(%rip),%rsi
call   1030 <lua_check_number@plt>
mov    %eax,-0x8(%rbp)
mov    -0x4(%rbp),%eax
cltd
idivl  -0x8(%rbp)
mov    %edx,%edi
call   1040 <lua_pushnumber@plt>
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<math_mod>:
push   %r14
push   %rbx
push   %rax
lea    0xed5(%rip),%r14
mov    $0x1,%edi
mov    %r14,%rsi
call   1030 <lua_check_number@plt>
mov    %rax,%rbx
mov    $0x2,%edi
mov    %r14,%rsi
call   1030 <lua_check_number@plt>
mov    %rax,%rcx
mov    %ebx,%eax
cltd
idiv   %ecx
mov    %edx,%edi
add    $0x8,%rsp
pop    %rbx
pop    %r14
jmp    1040 <lua_pushnumber@plt>

LLVM IR (-O0):
@.str = [4 x i8] c"mod\00"
define void @math_mod() {
%1 = alloca i32
%2 = alloca i32
%3 = call i64 @lua_check_number(i32 1, i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str, i64 0, i64 0))
%4 = trunc i64 %3 to i32
store i32 %4, i32* %1
%5 = call i64 @lua_check_number(i32 2, i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str, i64 0, i64 0))
%6 = trunc i64 %5 to i32
store i32 %6, i32* %2
%7 = load i32, i32* %1
%8 = load i32, i32* %2
%9 = srem i32 %7, %8
%10 = call i32 @lua_pushnumber(i32 %9)
ret void
}

LLVM IR (-O2):
@.str = [4 x i8] c"mod\00"
define void @math_mod() {
%1 = tail call i64 @lua_check_number(i32 1, i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str, i64 0, i64 0))
%2 = trunc i64 %1 to i32
%3 = tail call i64 @lua_check_number(i32 2, i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str, i64 0, i64 0))
%4 = trunc i64 %3 to i32
%5 = srem i32 %2, %4
%6 = tail call i32 @lua_pushnumber(i32 %5)
ret void
}
char *XFetchBytes() {}


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

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

LLVM IR (-O0):
define i8* @XFetchBytes() {
%1 = alloca i8*
%2 = load i8*, i8** %1
ret i8* %2
}

LLVM IR (-O2):
define noalias i8* @XFetchBytes() {
ret i8* undef
}
/* Variables and functions */
int /*<<< orphan*/ getchar();
int /*<<< orphan*/ printf(char *, int);
int main() {
  int i, j, sum = 0;
  for (i = 1; i <= 10; i++)
    for (j = 1; j <= 10; j++)
      if (i != j)
        sum++;
  printf("%d", sum);
  getchar();
  return 0;
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
movl   $0x0,-0x4(%rbp)
movl   $0x0,-0x10(%rbp)
movl   $0x1,-0x8(%rbp)
cmpl   $0xa,-0x8(%rbp)
jg     1193 <main+0x73>
movl   $0x1,-0xc(%rbp)
cmpl   $0xa,-0xc(%rbp)
jg     1180 <main+0x60>
mov    -0x8(%rbp),%eax
cmp    -0xc(%rbp),%eax
je     116d <main+0x4d>
mov    -0x10(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x10(%rbp)
jmp    1172 <main+0x52>
mov    -0xc(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0xc(%rbp)
jmp    114e <main+0x2e>
jmp    1185 <main+0x65>
mov    -0x8(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x8(%rbp)
jmp    113d <main+0x1d>
mov    -0x10(%rbp),%esi
lea    0xe63(%rip),%rdi
call   1030 <printf@plt>
mov    $0x0,%al
call   1040 <getchar@plt>
xor    %eax,%eax
add    $0x10,%rsp
pop    %rbp
ret

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

LLVM IR (-O0):
@.str = [3 x i8] c"%d\00"
define i32 @main() {
%1 = alloca i32
%2 = alloca i32
%3 = alloca i32
%4 = alloca i32
store i32 0, i32* %1
store i32 0, i32* %4
store i32 1, i32* %2
br label %5
5: ; preds = %24, %0
%6 = load i32, i32* %2
%7 = icmp sle i32 %6, 10
br i1 %7, label %8, label %27
8: ; preds = %5
store i32 1, i32* %3
br label %9
9: ; preds = %20, %8
%10 = load i32, i32* %3
%11 = icmp sle i32 %10, 10
br i1 %11, label %12, label %23
12: ; preds = %9
%13 = load i32, i32* %2
%14 = load i32, i32* %3
%15 = icmp ne i32 %13, %14
br i1 %15, label %16, label %19
16: ; preds = %12
%17 = load i32, i32* %4
%18 = add nsw i32 %17, 1
store i32 %18, i32* %4
br label %19
19: ; preds = %16, %12
br label %20
20: ; preds = %19
%21 = load i32, i32* %3
%22 = add nsw i32 %21, 1
store i32 %22, i32* %3
br label %9
23: ; preds = %9
br label %24
24: ; preds = %23
%25 = load i32, i32* %2
%26 = add nsw i32 %25, 1
store i32 %26, i32* %2
br label %5
27: ; preds = %5
%28 = load i32, i32* %4
%29 = call i32 @printf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str, i64 0, i64 0), i32 %28)
%30 = call i32 (...) @getchar()
ret i32 0
}

LLVM IR (-O2):
@.str = [3 x i8] c"%d\00"
define i32 @main() {
%1 = tail call i32 @printf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str, i64 0, i64 0), i32 90)
%2 = tail call i32 (...) @getchar()
ret i32 0
}
/* Variables and functions */
int /*<<< orphan*/ strcmp(char *, char *);
int is_valid_separator(char *separator) {
  if (!strcmp(separator, "_") || !strcmp(separator, "-"))
    return 1;
  else
    return 0;
}


x86 assembly (clang, -O0):
<is_valid_separator>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
mov    %rdi,-0x10(%rbp)
mov    -0x10(%rbp),%rdi
lea    0xed9(%rip),%rsi
call   1030 <strcmp@plt>
cmp    $0x0,%eax
je     114e <is_valid_separator+0x3e>
mov    -0x10(%rbp),%rdi
lea    0xec2(%rip),%rsi
call   1030 <strcmp@plt>
cmp    $0x0,%eax
jne    115a <is_valid_separator+0x4a>
movl   $0x1,-0x4(%rbp)
jmp    1161 <is_valid_separator+0x51>
movl   $0x0,-0x4(%rbp)
mov    -0x4(%rbp),%eax
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<is_valid_separator>:
push   %rbx
mov    %rdi,%rbx
lea    0xee5(%rip),%rsi
call   1030 <strcmp@plt>
test   %eax,%eax
je     113e <is_valid_separator+0x2e>
lea    0xed7(%rip),%rsi
mov    %rbx,%rdi
call   1030 <strcmp@plt>
mov    %eax,%ecx
xor    %eax,%eax
test   %ecx,%ecx
sete   %al
pop    %rbx
ret
mov    $0x1,%eax
pop    %rbx
ret

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

LLVM IR (-O2):
@.str = [2 x i8] c"_\00"
@.str.1 = [2 x i8] c"-\00"
define i32 @is_valid_separator(i8* nocapture %0) {
%2 = tail call i32 @strcmp(i8* dereferenceable(1) %0, i8* dereferenceable(2) getelementptr inbounds ([2 x i8], [2 x i8]* @.str, i64 0, i64 0))
%3 = icmp eq i32 %2, 0
br i1 %3, label %8, label %4
4: ; preds = %1
%5 = tail call i32 @strcmp(i8* dereferenceable(1) %0, i8* dereferenceable(2) getelementptr inbounds ([2 x i8], [2 x i8]* @.str.1, i64 0, i64 0))
%6 = icmp eq i32 %5, 0
%7 = zext i1 %6 to i32
br label %8
8: ; preds = %4, %1
%9 = phi i32 [ 1, %1 ], [ %7, %4 ]
ret i32 %9
}
/* Variables and functions */
int random();
float rf() { return ((random() % 1024) / 512.0f) - 1.0f; }


x86 assembly (clang, -O0):
<rf>:
push   %rbp
mov    %rsp,%rbp
mov    $0x0,%al
call   1030 <random@plt>
mov    $0x400,%ecx
cltd
idiv   %ecx
cvtsi2ss %edx,%xmm0
movss  0xed5(%rip),%xmm1
divss  %xmm1,%xmm0
movss  0xec5(%rip),%xmm1
subss  %xmm1,%xmm0
pop    %rbp
ret

x86 assembly (clang, -O2):
<rf>:
push   %rax
xor    %eax,%eax
call   1030 <random@plt>
lea    0x3ff(%rax),%ecx
test   %eax,%eax
cmovns %eax,%ecx
and    $0xfffffc00,%ecx
sub    %ecx,%eax
cvtsi2ss %eax,%xmm0
mulss  0xec9(%rip),%xmm0
addss  0xec5(%rip),%xmm0
pop    %rax
ret

LLVM IR (-O0):
define float @rf() {
%1 = call i32 (...) @random()
%2 = srem i32 %1, 1024
%3 = sitofp i32 %2 to float
%4 = fdiv float %3, 5.120000e+02
%5 = fsub float %4, 1.000000e+00
ret float %5
}

LLVM IR (-O2):
define float @rf() {
%1 = tail call i32 (...) @random()
%2 = srem i32 %1, 1024
%3 = sitofp i32 %2 to float
%4 = fmul float %3, 0x3F60000000000000
%5 = fadd float %4, -1.000000e+00
ret float %5
}
/* Variables and functions */
double sqdist(double *, double *);
int close_pole(double *v, double *p, double lfs_lb) {
  return (sqdist(v, p) < lfs_lb * lfs_lb);
}


x86 assembly (clang, -O0):
<close_pole>:
push   %rbp
mov    %rsp,%rbp
sub    $0x20,%rsp
mov    %rdi,-0x8(%rbp)
mov    %rsi,-0x10(%rbp)
movsd  %xmm0,-0x18(%rbp)
mov    -0x8(%rbp),%rdi
mov    -0x10(%rbp),%rsi
call   1030 <sqdist@plt>
movaps %xmm0,%xmm1
movsd  -0x18(%rbp),%xmm0
mulsd  -0x18(%rbp),%xmm0
ucomisd %xmm1,%xmm0
seta   %al
and    $0x1,%al
movzbl %al,%eax
add    $0x20,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<close_pole>:
push   %rax
movsd  %xmm0,(%rsp)
call   1030 <sqdist@plt>
movsd  (%rsp),%xmm1
mulsd  %xmm1,%xmm1
xor    %eax,%eax
ucomisd %xmm0,%xmm1
seta   %al
pop    %rcx
ret

LLVM IR (-O0):
define i32 @close_pole(double* %0, double* %1, double %2) {
%4 = alloca double*
%5 = alloca double*
%6 = alloca double
store double* %0, double** %4
store double* %1, double** %5
store double %2, double* %6
%7 = load double*, double** %4
%8 = load double*, double** %5
%9 = call double @sqdist(double* %7, double* %8)
%10 = load double, double* %6
%11 = load double, double* %6
%12 = fmul double %10, %11
%13 = fcmp olt double %9, %12
%14 = zext i1 %13 to i32
ret i32 %14
}

LLVM IR (-O2):
define i32 @close_pole(double* %0, double* %1, double %2) {
%4 = tail call double @sqdist(double* %0, double* %1)
%5 = fmul double %2, %2
%6 = fcmp olt double %4, %5
%7 = zext i1 %6 to i32
ret i32 %7
}
/* Variables and functions */
int /*<<< orphan*/ printf(char *);
void parent(void) { printf("parent\n"); }


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

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

LLVM IR (-O0):
@.str = [8 x i8] c"parent\0A\00"
define void @parent() {
%1 = call i32 @printf(i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str, i64 0, i64 0))
ret void
}

LLVM IR (-O2):
@str = [7 x i8] c"parent\00"
define void @parent() {
%1 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([7 x i8], [7 x i8]* @str, i64 0, i64 0))
ret void
}
/* Type definitions */
typedef int /*<<< orphan*/ FILE;

/* Variables and functions */
int getc(int /*<<< orphan*/ *);
scalar_t__ isdigit(int /*<<< orphan*/);
int /*<<< orphan*/ peek(int /*<<< orphan*/ *);
int read_int(FILE *in, int start) {
  while (isdigit(peek(in)))
    start = start * 10 + (getc(in) - '0');
  return start;
}


x86 assembly (clang, -O0):
<read_int>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
mov    %rdi,-0x8(%rbp)
mov    %esi,-0xc(%rbp)
mov    -0x8(%rbp),%rdi
call   1030 <peek@plt>
mov    %eax,%edi
call   1040 <isdigit@plt>
cmp    $0x0,%rax
je     117b <read_int+0x4b>
imul   $0xa,-0xc(%rbp),%eax
mov    %eax,-0x10(%rbp)
mov    -0x8(%rbp),%rdi
call   1050 <getc@plt>
mov    %eax,%ecx
mov    -0x10(%rbp),%eax
sub    $0x30,%ecx
add    %ecx,%eax
mov    %eax,-0xc(%rbp)
jmp    113f <read_int+0xf>
mov    -0xc(%rbp),%eax
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<read_int>:
push   %r14
push   %rbx
push   %rax
mov    %esi,%ebx
mov    %rdi,%r14
nopl   0x0(%rax)
call   1030 <peek@plt>
mov    %eax,%edi
call   1040 <isdigit@plt>
test   %rax,%rax
je     1167 <read_int+0x37>
lea    (%rbx,%rbx,4),%ebx
mov    %r14,%rdi
call   1050 <getc@plt>
lea    (%rax,%rbx,2),%ebx
add    $0xffffffd0,%ebx
mov    %r14,%rdi
jmp    1140 <read_int+0x10>
mov    %ebx,%eax
add    $0x8,%rsp
pop    %rbx
pop    %r14
ret

LLVM IR (-O0):
define i32 @read_int(i32* %0, i32 %1) {
%3 = alloca i32*
%4 = alloca i32
store i32* %0, i32** %3
store i32 %1, i32* %4
br label %5
5: ; preds = %10, %2
%6 = load i32*, i32** %3
%7 = call i32 @peek(i32* %6)
%8 = call i64 @isdigit(i32 %7)
%9 = icmp ne i64 %8, 0
br i1 %9, label %10, label %17
10: ; preds = %5
%11 = load i32, i32* %4
%12 = mul nsw i32 %11, 10
%13 = load i32*, i32** %3
%14 = call i32 @getc(i32* %13)
%15 = sub nsw i32 %14, 48
%16 = add nsw i32 %12, %15
store i32 %16, i32* %4
br label %5
17: ; preds = %5
%18 = load i32, i32* %4
ret i32 %18
}

LLVM IR (-O2):
define i32 @read_int(i32* %0, i32 %1) {
%3 = tail call i32 @peek(i32* %0)
%4 = tail call i64 @isdigit(i32 %3)
%5 = icmp eq i64 %4, 0
br i1 %5, label %15, label %6
6: ; preds = %2, %6
%7 = phi i32 [ %11, %6 ], [ %1, %2 ]
%8 = mul nsw i32 %7, 10
%9 = tail call i32 @getc(i32* %0)
%10 = add i32 %8, -48
%11 = add i32 %10, %9
%12 = tail call i32 @peek(i32* %0)
%13 = tail call i64 @isdigit(i32 %12)
%14 = icmp eq i64 %13, 0
br i1 %14, label %15, label %6
15: ; preds = %6, %2
%16 = phi i32 [ %1, %2 ], [ %11, %6 ]
ret i32 %16
}
/* Variables and functions */
double RAND_MAX;
int rand();
double GenRandomPercentage() {
  int num = rand();
  double realNum = (double)num / RAND_MAX;
  return realNum;
}


x86 assembly (clang, -O0):
<GenRandomPercentage>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
mov    $0x0,%al
call   1030 <rand@plt>
mov    %eax,-0x4(%rbp)
cvtsi2sdl -0x4(%rbp),%xmm0
mov    0x2eba(%rip),%rax
divsd  (%rax),%xmm0
movsd  %xmm0,-0x10(%rbp)
movsd  -0x10(%rbp),%xmm0
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<GenRandomPercentage>:
push   %rax
xor    %eax,%eax
call   1030 <rand@plt>
cvtsi2sd %eax,%xmm0
mov    0x2ec5(%rip),%rax
divsd  (%rax),%xmm0
pop    %rax
ret

LLVM IR (-O0):
@RAND_MAX = global double 0.000000e+00
define double @GenRandomPercentage() {
%1 = alloca i32
%2 = alloca double
%3 = call i32 (...) @rand()
store i32 %3, i32* %1
%4 = load i32, i32* %1
%5 = sitofp i32 %4 to double
%6 = load double, double* @RAND_MAX
%7 = fdiv double %5, %6
store double %7, double* %2
%8 = load double, double* %2
ret double %8
}

LLVM IR (-O2):
@RAND_MAX = global double 0.000000e+00
define double @GenRandomPercentage() {
%1 = tail call i32 (...) @rand()
%2 = sitofp i32 %1 to double
%3 = load double, double* @RAND_MAX
%4 = fdiv double %2, %3
ret double %4
}
/* Variables and functions */
int /*<<< orphan*/ TIM_tick();
void UserBackgroundProcessingCalloutf(void) { TIM_tick(); }


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

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

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

LLVM IR (-O2):
define void @UserBackgroundProcessingCalloutf() {
%1 = tail call i32 (...) @TIM_tick()
ret void
}
/* Variables and functions */
int /*<<< orphan*/ printf(char *);
int main(int argc, char *argv[]) {
  ((void)argc);
  ((void)argv);
  printf("POLARSSL_ENTROPY_C and/or "
         "POLARSSL_SSL_TLS_C and/or POLARSSL_SSL_SRV_C and/or "
         "POLARSSL_NET_C and/or POLARSSL_CTR_DRBG_C not defined.\n");
  return (0);
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
movl   $0x0,-0x4(%rbp)
mov    %edi,-0x8(%rbp)
mov    %rsi,-0x10(%rbp)
lea    0xed3(%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
call   1030 <puts@plt>
xor    %eax,%eax
pop    %rcx
ret

LLVM IR (-O0):
@.str = [134 x i8] c"POLARSSL_ENTROPY_C and/or POLARSSL_SSL_TLS_C and/or POLARSSL_SSL_SRV_C and/or POLARSSL_NET_C and/or POLARSSL_CTR_DRBG_C not defined.\0A\00"
define i32 @main(i32 %0, i8** %1) {
%3 = alloca i32
%4 = alloca i32
%5 = alloca i8**
store i32 0, i32* %3
store i32 %0, i32* %4
store i8** %1, i8*** %5
%6 = load i32, i32* %4
%7 = load i8**, i8*** %5
%8 = call i32 @printf(i8* getelementptr inbounds ([134 x i8], [134 x i8]* @.str, i64 0, i64 0))
ret i32 0
}

LLVM IR (-O2):
@str = [133 x i8] c"POLARSSL_ENTROPY_C and/or POLARSSL_SSL_TLS_C and/or POLARSSL_SSL_SRV_C and/or POLARSSL_NET_C and/or POLARSSL_CTR_DRBG_C not defined.\00"
define i32 @main(i32 %0, i8** nocapture readnone %1) {
%3 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([133 x i8], [133 x i8]* @str, i64 0, i64 0))
ret i32 0
}
int rotate(int d, int j) {
  unsigned int rotation_table[8][4] = {
      {46, 36, 19, 37}, {33, 27, 14, 42}, {17, 49, 36, 39}, {44, 9, 54, 56},
      {39, 30, 34, 24}, {13, 50, 10, 17}, {25, 29, 39, 43}, {8, 35, 56, 22}};
  return rotation_table[d][j];
}


x86 assembly (clang, -O0):
<rotate>:
push   %rbp
mov    %rsp,%rbp
sub    $0x90,%rsp
mov    %edi,-0x4(%rbp)
mov    %esi,-0x8(%rbp)
lea    -0x90(%rbp),%rdi
lea    0xed1(%rip),%rsi
mov    $0x80,%edx
call   1030 <memcpy@plt>
movslq -0x4(%rbp),%rcx
lea    -0x90(%rbp),%rax
shl    $0x4,%rcx
add    %rcx,%rax
movslq -0x8(%rbp),%rcx
mov    (%rax,%rcx,4),%eax
add    $0x90,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<rotate>:
movslq %edi,%rax
movslq %esi,%rcx
shl    $0x4,%rax
lea    0xeef(%rip),%rdx
add    %rax,%rdx
mov    (%rdx,%rcx,4),%eax
ret

LLVM IR (-O0):
@__const.rotate.rotation_table = [8 x [4 x i32]] [[4 x i32] [i32 46, i32 36, i32 19, i32 37], [4 x i32] [i32 33, i32 27, i32 14, i32 42], [4 x i32] [i32 17, i32 49, i32 36, i32 39], [4 x i32] [i32 44, i32 9, i32 54, i32 56], [4 x i32] [i32 39, i32 30, i32 34, i32 24], [4 x i32] [i32 13, i32 50, i32 10, i32 17], [4 x i32] [i32 25, i32 29, i32 39, i32 43], [4 x i32] [i32 8, i32 35, i32 56, i32 22]]
define i32 @rotate(i32 %0, i32 %1) {
%3 = alloca i32
%4 = alloca i32
%5 = alloca [8 x [4 x i32]]
store i32 %0, i32* %3
store i32 %1, i32* %4
%6 = bitcast [8 x [4 x i32]]* %5 to i8*
%7 = load i32, i32* %3
%8 = sext i32 %7 to i64
%9 = getelementptr inbounds [8 x [4 x i32]], [8 x [4 x i32]]* %5, i64 0, i64 %8
%10 = load i32, i32* %4
%11 = sext i32 %10 to i64
%12 = getelementptr inbounds [4 x i32], [4 x i32]* %9, i64 0, i64 %11
%13 = load i32, i32* %12
ret i32 %13
}

LLVM IR (-O2):
@__const.rotate.rotation_table = [8 x [4 x i32]] [[4 x i32] [i32 46, i32 36, i32 19, i32 37], [4 x i32] [i32 33, i32 27, i32 14, i32 42], [4 x i32] [i32 17, i32 49, i32 36, i32 39], [4 x i32] [i32 44, i32 9, i32 54, i32 56], [4 x i32] [i32 39, i32 30, i32 34, i32 24], [4 x i32] [i32 13, i32 50, i32 10, i32 17], [4 x i32] [i32 25, i32 29, i32 39, i32 43], [4 x i32] [i32 8, i32 35, i32 56, i32 22]]
define i32 @rotate(i32 %0, i32 %1) {
%3 = sext i32 %0 to i64
%4 = sext i32 %1 to i64
%5 = getelementptr inbounds [8 x [4 x i32]], [8 x [4 x i32]]* @__const.rotate.rotation_table, i64 0, i64 %3, i64 %4
%6 = load i32, i32* %5
ret i32 %6
}
int type_exists(char type) { return type >= 0x00 && type <= 0x02; }


x86 assembly (clang, -O0):
<type_exists>:
push   %rbp
mov    %rsp,%rbp
mov    %dil,%al
mov    %al,-0x1(%rbp)
movsbl -0x1(%rbp),%ecx
xor    %eax,%eax
cmp    $0x0,%ecx
mov    %al,-0x2(%rbp)
jl     1129 <type_exists+0x29>
movsbl -0x1(%rbp),%eax
cmp    $0x2,%eax
setle  %al
mov    %al,-0x2(%rbp)
mov    -0x2(%rbp),%al
and    $0x1,%al
movzbl %al,%eax
pop    %rbp
ret

x86 assembly (clang, -O2):
<type_exists>:
xor    %eax,%eax
cmp    $0x3,%dil
setb   %al
ret

LLVM IR (-O0):
define i32 @type_exists(i8 signext %0) {
%2 = alloca i8
store i8 %0, i8* %2
%3 = load i8, i8* %2
%4 = sext i8 %3 to i32
%5 = icmp sge i32 %4, 0
br i1 %5, label %6, label %10
6: ; preds = %1
%7 = load i8, i8* %2
%8 = sext i8 %7 to i32
%9 = icmp sle i32 %8, 2
br label %10
10: ; preds = %6, %1
%11 = phi i1 [ false, %1 ], [ %9, %6 ]
%12 = zext i1 %11 to i32
ret i32 %12
}

LLVM IR (-O2):
define i32 @type_exists(i8 signext %0) {
%2 = icmp ult i8 %0, 3
%3 = zext i1 %2 to i32
ret i32 %3
}
void d2i_ASN1_OBJECT(void) {}


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

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

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

LLVM IR (-O2):
define void @d2i_ASN1_OBJECT() {
ret void
}
/* Variables and functions */
int /*<<< orphan*/ printf(char *);
int pa_log_level() {
  printf("NOT IMPLEMENTED:"
         "pa_log_level"
         "\n");
}


x86 assembly (clang, -O0):
<pa_log_level>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
lea    0xee1(%rip),%rdi
call   1030 <printf@plt>
mov    -0x4(%rbp),%eax
add    $0x10,%rsp
pop    %rbp
ret

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

LLVM IR (-O0):
@.str = [30 x i8] c"NOT IMPLEMENTED:pa_log_level\0A\00"
define i32 @pa_log_level() {
%1 = alloca i32
%2 = call i32 @printf(i8* getelementptr inbounds ([30 x i8], [30 x i8]* @.str, i64 0, i64 0))
%3 = load i32, i32* %1
ret i32 %3
}

LLVM IR (-O2):
@str = [29 x i8] c"NOT IMPLEMENTED:pa_log_level\00"
define i32 @pa_log_level() {
%1 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([29 x i8], [29 x i8]* @str, i64 0, i64 0))
ret i32 undef
}
/* Variables and functions */
int major_scale(int, int);
int minor_scale(int num, int mod) { return major_scale(num - 2, mod) + 3; }


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

x86 assembly (clang, -O2):
<minor_scale>:
push   %rax
add    $0xfffffffe,%edi
call   1030 <major_scale@plt>
add    $0x3,%eax
pop    %rcx
ret

LLVM IR (-O0):
define i32 @minor_scale(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 = sub nsw i32 %5, 2
%7 = load i32, i32* %4
%8 = call i32 @major_scale(i32 %6, i32 %7)
%9 = add nsw i32 %8, 3
ret i32 %9
}

LLVM IR (-O2):
define i32 @minor_scale(i32 %0, i32 %1) {
%3 = add nsw i32 %0, -2
%4 = tail call i32 @major_scale(i32 %3, i32 %1)
%5 = add nsw i32 %4, 3
ret i32 %5
}
/* Variables and functions */
unsigned long GeoIP_addr_to_num(char const *);
int GeoIP_is_private_ipnum_v4(unsigned long);
int GeoIP_is_private_v4(const char *addr) {
  unsigned long ipnum = GeoIP_addr_to_num(addr);
  return GeoIP_is_private_ipnum_v4(ipnum);
}


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

x86 assembly (clang, -O2):
<GeoIP_is_private_v4>:
push   %rax
call   1040 <GeoIP_addr_to_num@plt>
mov    %rax,%rdi
pop    %rax
jmp    1030 <GeoIP_is_private_ipnum_v4@plt>

LLVM IR (-O0):
define i32 @GeoIP_is_private_v4(i8* %0) {
%2 = alloca i8*
%3 = alloca i64
store i8* %0, i8** %2
%4 = load i8*, i8** %2
%5 = call i64 @GeoIP_addr_to_num(i8* %4)
store i64 %5, i64* %3
%6 = load i64, i64* %3
%7 = call i32 @GeoIP_is_private_ipnum_v4(i64 %6)
ret i32 %7
}

LLVM IR (-O2):
define i32 @GeoIP_is_private_v4(i8* %0) {
%2 = tail call i64 @GeoIP_addr_to_num(i8* %0)
%3 = tail call i32 @GeoIP_is_private_ipnum_v4(i64 %2)
ret i32 %3
}
const char *raptorial_def_lists_dir(void) { return "/var/lib/apt/lists"; }


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

x86 assembly (clang, -O2):
<raptorial_def_lists_dir>:
lea    0xef9(%rip),%rax
ret

LLVM IR (-O0):
@.str = [19 x i8] c"/var/lib/apt/lists\00"
define i8* @raptorial_def_lists_dir() {
ret i8* getelementptr inbounds ([19 x i8], [19 x i8]* @.str, i64 0, i64 0)
}

LLVM IR (-O2):
@.str = [19 x i8] c"/var/lib/apt/lists\00"
define i8* @raptorial_def_lists_dir() {
ret i8* getelementptr inbounds ([19 x i8], [19 x i8]* @.str, i64 0, i64 0)
}
/* Variables and functions */
int mpi_get_total_blocks(int);
int get_n_blockTasks(int r, int n_blocks) {
  int remainTasks = mpi_get_total_blocks(n_blocks) % n_blocks;
  int nTasks = mpi_get_total_blocks(n_blocks) / n_blocks;
  if (r < remainTasks)
    nTasks += 1;
  return nTasks;
}


x86 assembly (clang, -O0):
<get_n_blockTasks>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
mov    %edi,-0x4(%rbp)
mov    %esi,-0x8(%rbp)
mov    -0x8(%rbp),%edi
call   1030 <mpi_get_total_blocks@plt>
cltd
idivl  -0x8(%rbp)
mov    %edx,-0xc(%rbp)
mov    -0x8(%rbp),%edi
call   1030 <mpi_get_total_blocks@plt>
cltd
idivl  -0x8(%rbp)
mov    %eax,-0x10(%rbp)
mov    -0x4(%rbp),%eax
cmp    -0xc(%rbp),%eax
jge    1151 <get_n_blockTasks+0x41>
mov    -0x10(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x10(%rbp)
mov    -0x10(%rbp),%eax
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<get_n_blockTasks>:
push   %rbp
push   %r14
push   %rbx
mov    %esi,%ebx
mov    %edi,%r14d
mov    %esi,%edi
call   1030 <mpi_get_total_blocks@plt>
cltd
idiv   %ebx
mov    %edx,%ebp
mov    %ebx,%edi
call   1030 <mpi_get_total_blocks@plt>
cltd
idiv   %ebx
xor    %ecx,%ecx
cmp    %r14d,%ebp
setg   %cl
add    %ecx,%eax
pop    %rbx
pop    %r14
pop    %rbp
ret

LLVM IR (-O0):
define i32 @get_n_blockTasks(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* %4
%8 = call i32 @mpi_get_total_blocks(i32 %7)
%9 = load i32, i32* %4
%10 = srem i32 %8, %9
store i32 %10, i32* %5
%11 = load i32, i32* %4
%12 = call i32 @mpi_get_total_blocks(i32 %11)
%13 = load i32, i32* %4
%14 = sdiv i32 %12, %13
store i32 %14, i32* %6
%15 = load i32, i32* %3
%16 = load i32, i32* %5
%17 = icmp slt i32 %15, %16
br i1 %17, label %18, label %21
18: ; preds = %2
%19 = load i32, i32* %6
%20 = add nsw i32 %19, 1
store i32 %20, i32* %6
br label %21
21: ; preds = %18, %2
%22 = load i32, i32* %6
ret i32 %22
}

LLVM IR (-O2):
define i32 @get_n_blockTasks(i32 %0, i32 %1) {
%3 = tail call i32 @mpi_get_total_blocks(i32 %1)
%4 = srem i32 %3, %1
%5 = tail call i32 @mpi_get_total_blocks(i32 %1)
%6 = sdiv i32 %5, %1
%7 = icmp sgt i32 %4, %0
%8 = zext i1 %7 to i32
%9 = add nsw i32 %6, %8
ret i32 %9
}
unsigned int hwrm_total_timeout(unsigned int n) {
  return n <= 5 ? n * 3 : 5 * 3 + (n - 5) * 25;
}


x86 assembly (clang, -O0):
<hwrm_total_timeout>:
push   %rbp
mov    %rsp,%rbp
mov    %edi,-0x4(%rbp)
cmpl   $0x5,-0x4(%rbp)
ja     111d <hwrm_total_timeout+0x1d>
imul   $0x3,-0x4(%rbp),%eax
mov    %eax,-0x8(%rbp)
jmp    112c <hwrm_total_timeout+0x2c>
mov    -0x4(%rbp),%eax
sub    $0x5,%eax
imul   $0x19,%eax,%eax
add    $0xf,%eax
mov    %eax,-0x8(%rbp)
mov    -0x8(%rbp),%eax
pop    %rbp
ret

x86 assembly (clang, -O2):
<hwrm_total_timeout>:
cmp    $0x6,%edi
lea    (%rdi,%rdi,2),%ecx
lea    (%rdi,%rdi,4),%eax
lea    -0x6e(%rax,%rax,4),%eax
cmovb  %ecx,%eax
ret

LLVM IR (-O0):
define i32 @hwrm_total_timeout(i32 %0) {
%2 = alloca i32
store i32 %0, i32* %2
%3 = load i32, i32* %2
%4 = icmp ule i32 %3, 5
br i1 %4, label %5, label %8
5: ; preds = %1
%6 = load i32, i32* %2
%7 = mul i32 %6, 3
br label %13
8: ; preds = %1
%9 = load i32, i32* %2
%10 = sub i32 %9, 5
%11 = mul i32 %10, 25
%12 = add i32 15, %11
br label %13
13: ; preds = %8, %5
%14 = phi i32 [ %7, %5 ], [ %12, %8 ]
ret i32 %14
}

LLVM IR (-O2):
define i32 @hwrm_total_timeout(i32 %0) {
%2 = icmp ult i32 %0, 6
%3 = mul i32 %0, 3
%4 = mul i32 %0, 25
%5 = add i32 %4, -110
%6 = select i1 %2, i32 %3, i32 %5
ret i32 %6
}
void Print_Default_Array(struct DefaultBallot *Ballots[55]) {}


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

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

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

LLVM IR (-O2):
%struct.DefaultBallot = type opaque
define void @Print_Default_Array(%struct.DefaultBallot** nocapture %0) {
ret void
}
/* Type definitions */
typedef int /*<<< orphan*/ time_t;
struct tm {
  int dummy;
};

/* Variables and functions */
struct tm *localtime(int /*<<< orphan*/ *);
int /*<<< orphan*/ strftime(char *, int, char *, struct tm *);
int /*<<< orphan*/ time(int /*<<< orphan*/ *);
void time_now(char *time_str) {
  time_t t = time(NULL);
  struct tm *timeinfo;
  timeinfo = localtime(&t);
  strftime(time_str, 15, "%T", timeinfo);
}


x86 assembly (clang, -O0):
<time_now>:
push   %rbp
mov    %rsp,%rbp
sub    $0x20,%rsp
mov    %rdi,-0x8(%rbp)
xor    %eax,%eax
mov    %eax,%edi
call   1040 <time@plt>
mov    %eax,-0xc(%rbp)
lea    -0xc(%rbp),%rdi
call   1030 <localtime@plt>
mov    %rax,-0x18(%rbp)
mov    -0x8(%rbp),%rdi
mov    -0x18(%rbp),%rcx
mov    $0xf,%esi
lea    0xe97(%rip),%rdx
call   1050 <strftime@plt>
add    $0x20,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<time_now>:
push   %rbx
sub    $0x10,%rsp
mov    %rdi,%rbx
xor    %edi,%edi
call   1040 <time@plt>
mov    %eax,0xc(%rsp)
lea    0xc(%rsp),%rdi
call   1030 <localtime@plt>
lea    0xeac(%rip),%rdx
mov    %rbx,%rdi
mov    $0xf,%esi
mov    %rax,%rcx
call   1050 <strftime@plt>
add    $0x10,%rsp
pop    %rbx
ret

LLVM IR (-O0):
%struct.tm = type { i32 }
@.str = [3 x i8] c"%T\00"
define void @time_now(i8* %0) {
%2 = alloca i8*
%3 = alloca i32
%4 = alloca %struct.tm*
store i8* %0, i8** %2
%5 = call i32 @time(i32* null)
store i32 %5, i32* %3
%6 = call %struct.tm* @localtime(i32* %3)
store %struct.tm* %6, %struct.tm** %4
%7 = load i8*, i8** %2
%8 = load %struct.tm*, %struct.tm** %4
%9 = call i32 @strftime(i8* %7, i32 15, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str, i64 0, i64 0), %struct.tm* %8)
ret void
}

LLVM IR (-O2):
%struct.tm = type { i32 }
@.str = [3 x i8] c"%T\00"
define void @time_now(i8* %0) {
%2 = alloca i32
%3 = bitcast i32* %2 to i8*
%4 = tail call i32 @time(i32* null)
store i32 %4, i32* %2
%5 = call %struct.tm* @localtime(i32* %2)
%6 = call i32 @strftime(i8* %0, i32 15, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str, i64 0, i64 0), %struct.tm* %5)
ret void
}