xunge/DecIR huggingface dataset:
void EC_POINT_get_affine_coordinates_GF2m(void) {}


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

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

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

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

/* Variables and functions */
int /*<<< orphan*/ SYS_poll;
long syscall3(int /*<<< orphan*/, long, long, long);
long _poll(struct pollfd *fds, long nfds, long timeout) {
  return syscall3(SYS_poll, (long)fds, nfds, timeout);
}


x86 assembly (clang, -O0):
<_poll>:
push   %rbp
mov    %rsp,%rbp
sub    $0x20,%rsp
mov    %rdi,-0x8(%rbp)
mov    %rsi,-0x10(%rbp)
mov    %rdx,-0x18(%rbp)
mov    0x2ead(%rip),%rax
mov    (%rax),%edi
mov    -0x8(%rbp),%rsi
mov    -0x10(%rbp),%rdx
mov    -0x18(%rbp),%rcx
call   1030 <syscall3@plt>
add    $0x20,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<_poll>:
mov    %rdx,%rcx
mov    %rsi,%rdx
mov    %rdi,%rsi
mov    0x2eb8(%rip),%rax
mov    (%rax),%edi
jmp    1030 <syscall3@plt>

LLVM IR (-O0):
%struct.pollfd = type { i32 }
@SYS_poll = global i32 0
define i64 @_poll(%struct.pollfd* %0, i64 %1, i64 %2) {
%4 = alloca %struct.pollfd*
%5 = alloca i64
%6 = alloca i64
store %struct.pollfd* %0, %struct.pollfd** %4
store i64 %1, i64* %5
store i64 %2, i64* %6
%7 = load i32, i32* @SYS_poll
%8 = load %struct.pollfd*, %struct.pollfd** %4
%9 = ptrtoint %struct.pollfd* %8 to i64
%10 = load i64, i64* %5
%11 = load i64, i64* %6
%12 = call i64 @syscall3(i32 %7, i64 %9, i64 %10, i64 %11)
ret i64 %12
}

LLVM IR (-O2):
%struct.pollfd = type { i32 }
@SYS_poll = global i32 0
define i64 @_poll(%struct.pollfd* %0, i64 %1, i64 %2) {
%4 = load i32, i32* @SYS_poll
%5 = ptrtoint %struct.pollfd* %0 to i64
%6 = tail call i64 @syscall3(i32 %4, i64 %5, i64 %1, i64 %2)
ret i64 %6
}
void ramdisk_init(void) {}


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

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

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

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


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

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

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

LLVM IR (-O2):
define void @testAddressMap() {
ret void
}
/* Variables and functions */
double mag(double *);
void normalize(double v[3]) {
  double v_magnitude = mag(v);
  v[0] /= v_magnitude;
  v[1] /= v_magnitude;
  v[2] /= v_magnitude;
}


x86 assembly (clang, -O0):
<normalize>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
mov    %rdi,-0x8(%rbp)
mov    -0x8(%rbp),%rdi
call   1030 <mag@plt>
movsd  %xmm0,-0x10(%rbp)
movsd  -0x10(%rbp),%xmm1
mov    -0x8(%rbp),%rax
movsd  (%rax),%xmm0
divsd  %xmm1,%xmm0
movsd  %xmm0,(%rax)
movsd  -0x10(%rbp),%xmm1
mov    -0x8(%rbp),%rax
movsd  0x8(%rax),%xmm0
divsd  %xmm1,%xmm0
movsd  %xmm0,0x8(%rax)
movsd  -0x10(%rbp),%xmm1
mov    -0x8(%rbp),%rax
movsd  0x10(%rax),%xmm0
divsd  %xmm1,%xmm0
movsd  %xmm0,0x10(%rax)
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<normalize>:
push   %rbx
mov    %rdi,%rbx
call   1030 <mag@plt>
movupd (%rbx),%xmm1
movapd %xmm0,%xmm2
unpcklpd %xmm0,%xmm2
divpd  %xmm2,%xmm1
movupd %xmm1,(%rbx)
movsd  0x10(%rbx),%xmm1
divsd  %xmm0,%xmm1
movsd  %xmm1,0x10(%rbx)
pop    %rbx
ret

LLVM IR (-O0):
define void @normalize(double* %0) {
%2 = alloca double*
%3 = alloca double
store double* %0, double** %2
%4 = load double*, double** %2
%5 = call double @mag(double* %4)
store double %5, double* %3
%6 = load double, double* %3
%7 = load double*, double** %2
%8 = getelementptr inbounds double, double* %7, i64 0
%9 = load double, double* %8
%10 = fdiv double %9, %6
store double %10, double* %8
%11 = load double, double* %3
%12 = load double*, double** %2
%13 = getelementptr inbounds double, double* %12, i64 1
%14 = load double, double* %13
%15 = fdiv double %14, %11
store double %15, double* %13
%16 = load double, double* %3
%17 = load double*, double** %2
%18 = getelementptr inbounds double, double* %17, i64 2
%19 = load double, double* %18
%20 = fdiv double %19, %16
store double %20, double* %18
ret void
}

LLVM IR (-O2):
define void @normalize(double* %0) {
%2 = tail call double @mag(double* %0)
%3 = bitcast double* %0 to <2 x double>*
%4 = load <2 x double>, <2 x double>* %3
%5 = insertelement <2 x double> poison, double %2, i64 0
%6 = shufflevector <2 x double> %5, <2 x double> poison, <2 x i32> zeroinitializer
%7 = fdiv <2 x double> %4, %6
%8 = bitcast double* %0 to <2 x double>*
store <2 x double> %7, <2 x double>* %8
%9 = getelementptr inbounds double, double* %0, i64 2
%10 = load double, double* %9
%11 = fdiv double %10, %2
store double %11, double* %9
ret void
}
int get_number(char *str, char **end) {
  int val = 0;
  while (*str >= '0' && *str <= '9') {
    val *= 10;
    val += *str++ - '0';
  }
  *end = str;
  return val;
}


x86 assembly (clang, -O0):
<get_number>:
push   %rbp
mov    %rsp,%rbp
mov    %rdi,-0x8(%rbp)
mov    %rsi,-0x10(%rbp)
movl   $0x0,-0x14(%rbp)
mov    -0x8(%rbp),%rax
movsbl (%rax),%ecx
xor    %eax,%eax
cmp    $0x30,%ecx
mov    %al,-0x15(%rbp)
jl     1138 <get_number+0x38>
mov    -0x8(%rbp),%rax
movsbl (%rax),%eax
cmp    $0x39,%eax
setle  %al
mov    %al,-0x15(%rbp)
mov    -0x15(%rbp),%al
test   $0x1,%al
jne    1148 <get_number+0x48>
jmp    116f <get_number+0x6f>
imul   $0xa,-0x14(%rbp),%eax
mov    %eax,-0x14(%rbp)
mov    -0x8(%rbp),%rax
mov    %rax,%rcx
add    $0x1,%rcx
mov    %rcx,-0x8(%rbp)
movsbl (%rax),%eax
sub    $0x30,%eax
add    -0x14(%rbp),%eax
mov    %eax,-0x14(%rbp)
jmp    1113 <get_number+0x13>
mov    -0x8(%rbp),%rcx
mov    -0x10(%rbp),%rax
mov    %rcx,(%rax)
mov    -0x14(%rbp),%eax
pop    %rbp
ret

x86 assembly (clang, -O2):
<get_number>:
mov    (%rdi),%cl
lea    -0x30(%rcx),%edx
xor    %eax,%eax
cmp    $0x9,%dl
ja     112c <get_number+0x2c>
xor    %eax,%eax
xchg   %ax,%ax
movzbl %cl,%ecx
lea    (%rax,%rax,4),%eax
lea    (%rcx,%rax,2),%eax
add    $0xffffffd0,%eax
movzbl 0x1(%rdi),%ecx
add    $0x1,%rdi
lea    -0x30(%rcx),%edx
cmp    $0xa,%dl
jb     1110 <get_number+0x10>
mov    %rdi,(%rsi)
ret

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

LLVM IR (-O2):
define i32 @get_number(i8* %0, i8** nocapture writeonly %1) {
%3 = load i8, i8* %0
%4 = add i8 %3, -48
%5 = icmp ult i8 %4, 10
br i1 %5, label %6, label %18
6: ; preds = %2, %6
%7 = phi i8 [ %15, %6 ], [ %3, %2 ]
%8 = phi i32 [ %14, %6 ], [ 0, %2 ]
%9 = phi i8* [ %12, %6 ], [ %0, %2 ]
%10 = zext i8 %7 to i32
%11 = mul nsw i32 %8, 10
%12 = getelementptr inbounds i8, i8* %9, i64 1
%13 = add i32 %11, -48
%14 = add i32 %13, %10
%15 = load i8, i8* %12
%16 = add i8 %15, -48
%17 = icmp ult i8 %16, 10
br i1 %17, label %6, label %18
18: ; preds = %6, %2
%19 = phi i8* [ %0, %2 ], [ %12, %6 ]
%20 = phi i32 [ 0, %2 ], [ %14, %6 ]
store i8* %19, i8** %1
ret i32 %20
}
void DPMSSet(int level) {}


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

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

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

LLVM IR (-O2):
define void @DPMSSet(i32 %0) {
ret void
}
__IsNan(double d) {
  float f = d;
  if ((*((long *)&f) & 0x7f800000) == 0x7f800000 &&
      (*((long *)&f) & 0x007fffff) != 0)
    return 1;
  return 0;
}


x86 assembly (clang, -O0):
<__IsNan>:
push   %rbp
mov    %rsp,%rbp
movsd  %xmm0,-0x10(%rbp)
movsd  -0x10(%rbp),%xmm0
cvtsd2ss %xmm0,%xmm0
movss  %xmm0,-0x14(%rbp)
mov    -0x14(%rbp),%rax
and    $0x7f800000,%rax
cmp    $0x7f800000,%rax
jne    114d <__IsNan+0x4d>
mov    -0x14(%rbp),%rax
and    $0x7fffff,%rax
cmp    $0x0,%rax
je     114d <__IsNan+0x4d>
movl   $0x1,-0x4(%rbp)
jmp    1154 <__IsNan+0x54>
movl   $0x0,-0x4(%rbp)
mov    -0x4(%rbp),%eax
pop    %rbp
ret

x86 assembly (clang, -O2):
<__IsNan>:
cvtsd2ss %xmm0,%xmm0
movss  %xmm0,-0x8(%rsp)
mov    -0x8(%rsp),%rax
mov    %eax,%ecx
not    %ecx
test   $0x7f800000,%ecx
sete   %cl
test   $0x7fffff,%eax
setne  %al
and    %cl,%al
movzbl %al,%eax
ret

LLVM IR (-O0):
define i32 @__IsNan(double %0) {
%2 = alloca i32
%3 = alloca double
%4 = alloca float
store double %0, double* %3
%5 = load double, double* %3
%6 = fptrunc double %5 to float
store float %6, float* %4
%7 = bitcast float* %4 to i64*
%8 = load i64, i64* %7
%9 = and i64 %8, 2139095040
%10 = icmp eq i64 %9, 2139095040
br i1 %10, label %11, label %17
11: ; preds = %1
%12 = bitcast float* %4 to i64*
%13 = load i64, i64* %12
%14 = and i64 %13, 8388607
%15 = icmp ne i64 %14, 0
br i1 %15, label %16, label %17
16: ; preds = %11
store i32 1, i32* %2
br label %18
17: ; preds = %11, %1
store i32 0, i32* %2
br label %18
18: ; preds = %17, %16
%19 = load i32, i32* %2
ret i32 %19
}

LLVM IR (-O2):
define i32 @__IsNan(double %0) {
%2 = alloca float
%3 = bitcast float* %2 to i8*
%4 = fptrunc double %0 to float
store float %4, float* %2
%5 = bitcast float* %2 to i64*
%6 = load i64, i64* %5
%7 = and i64 %6, 2139095040
%8 = icmp eq i64 %7, 2139095040
%9 = and i64 %6, 8388607
%10 = icmp ne i64 %9, 0
%11 = and i1 %8, %10
%12 = zext i1 %11 to i32
ret i32 %12
}
void RTZipBlockDecompress(void) {}


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

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

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

LLVM IR (-O2):
define void @RTZipBlockDecompress() {
ret void
}
/* Variables and functions */
char cCharConst();
char cString();
int /*<<< orphan*/ errc(char *, char);
char cquotes(char q) {
  if (q == '\'')
    return cCharConst();
  if (q == '\"')
    return cString();
  else
    errc("not a quotes start", q);
  return q;
}


x86 assembly (clang, -O0):
<cquotes>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
mov    %dil,%al
mov    %al,-0x2(%rbp)
movsbl -0x2(%rbp),%eax
cmp    $0x27,%eax
jne    115a <cquotes+0x2a>
mov    $0x0,%al
call   1040 <cCharConst@plt>
mov    %al,-0x1(%rbp)
jmp    118c <cquotes+0x5c>
movsbl -0x2(%rbp),%eax
cmp    $0x22,%eax
jne    1176 <cquotes+0x46>
mov    $0x0,%al
call   1050 <cString@plt>
mov    %al,-0x1(%rbp)
jmp    118c <cquotes+0x5c>
lea    0xe83(%rip),%rdi
movsbl -0x2(%rbp),%esi
call   1030 <errc@plt>
mov    -0x2(%rbp),%al
mov    %al,-0x1(%rbp)
movsbl -0x1(%rbp),%eax
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<cquotes>:
push   %rbx
mov    %edi,%ebx
cmp    $0x22,%bl
je     1145 <cquotes+0x15>
cmp    $0x27,%bl
jne    114d <cquotes+0x1d>
xor    %eax,%eax
pop    %rbx
jmp    1040 <cCharConst@plt>
xor    %eax,%eax
pop    %rbx
jmp    1050 <cString@plt>
movsbl %bl,%esi
lea    0xea9(%rip),%rdi
call   1030 <errc@plt>
mov    %ebx,%eax
pop    %rbx
ret

LLVM IR (-O0):
@.str = [19 x i8] c"not a quotes start\00"
define signext i8 @cquotes(i8 signext %0) {
%2 = alloca i8
%3 = alloca i8
store i8 %0, i8* %3
%4 = load i8, i8* %3
%5 = sext i8 %4 to i32
%6 = icmp eq i32 %5, 39
br i1 %6, label %7, label %9
7: ; preds = %1
%8 = call signext i8 (...) @cCharConst()
store i8 %8, i8* %2
br label %20
9: ; preds = %1
%10 = load i8, i8* %3
%11 = sext i8 %10 to i32
%12 = icmp eq i32 %11, 34
br i1 %12, label %13, label %15
13: ; preds = %9
%14 = call signext i8 (...) @cString()
store i8 %14, i8* %2
br label %20
15: ; preds = %9
%16 = load i8, i8* %3
%17 = call i32 @errc(i8* getelementptr inbounds ([19 x i8], [19 x i8]* @.str, i64 0, i64 0), i8 signext %16)
br label %18
18: ; preds = %15
%19 = load i8, i8* %3
store i8 %19, i8* %2
br label %20
20: ; preds = %18, %13, %7
%21 = load i8, i8* %2
ret i8 %21
}

LLVM IR (-O2):
@.str = [19 x i8] c"not a quotes start\00"
define signext i8 @cquotes(i8 signext %0) {
switch i8 %0, label %6 [
i8 39, label %2
i8 34, label %4
]
2: ; preds = %1
%3 = tail call signext i8 (...) @cCharConst()
br label %8
4: ; preds = %1
%5 = tail call signext i8 (...) @cString()
br label %8
6: ; preds = %1
%7 = tail call i32 @errc(i8* getelementptr inbounds ([19 x i8], [19 x i8]* @.str, i64 0, i64 0), i8 signext %0)
br label %8
8: ; preds = %6, %4, %2
%9 = phi i8 [ %3, %2 ], [ %5, %4 ], [ %0, %6 ]
ret i8 %9
}
/* Variables and functions */
bool is_op(char op) {
  switch (op) {
  case '_':
  case '=':
  case '@':
  case '!':
  case '&':
  case '|':
  case '^':
  case '<':
  case '>':
  case '~':
  case '+':
  case '-':
  case '*':
  case '/':
  case '%':
  case '#':
    return true;
  default:
    return false;
  }
}


x86 assembly (clang, -O0):
<is_op>:
push   %rbp
mov    %rsp,%rbp
mov    %dil,%al
mov    %al,-0x5(%rbp)
movsbl -0x5(%rbp),%eax
add    $0xffffffdf,%eax
mov    %eax,%ecx
mov    %rcx,-0x10(%rbp)
sub    $0x5d,%eax
ja     1140 <is_op+0x40>
mov    -0x10(%rbp),%rax
lea    0xed5(%rip),%rcx
movslq (%rcx,%rax,4),%rax
add    %rcx,%rax
jmp    *%rax
movl   $0x1,-0x4(%rbp)
jmp    1147 <is_op+0x47>
movl   $0x0,-0x4(%rbp)
mov    -0x4(%rbp),%eax
pop    %rbp
ret

x86 assembly (clang, -O2):
<is_op>:
add    $0xffffffdf,%edi
cmp    $0x5d,%edi
ja     111e <is_op+0x1e>
mov    $0x1,%eax
lea    0xeec(%rip),%rcx
movslq (%rcx,%rdi,4),%rdx
add    %rcx,%rdx
jmp    *%rdx
ret
xor    %eax,%eax
ret

LLVM IR (-O0):
define i32 @is_op(i8 signext %0) {
%2 = alloca i32
%3 = alloca i8
store i8 %0, i8* %3
%4 = load i8, i8* %3
%5 = sext i8 %4 to i32
switch i32 %5, label %7 [
i32 95, label %6
i32 61, label %6
i32 64, label %6
i32 33, label %6
i32 38, label %6
i32 124, label %6
i32 94, label %6
i32 60, label %6
i32 62, label %6
i32 126, label %6
i32 43, label %6
i32 45, label %6
i32 42, label %6
i32 47, label %6
i32 37, label %6
i32 35, label %6
]
6: ; preds = %1, %1, %1, %1, %1, %1, %1, %1, %1, %1, %1, %1, %1, %1, %1, %1
store i32 1, i32* %2
br label %8
7: ; preds = %1
store i32 0, i32* %2
br label %8
8: ; preds = %7, %6
%9 = load i32, i32* %2
ret i32 %9
}

LLVM IR (-O2):
define i32 @is_op(i8 signext %0) {
%2 = sext i8 %0 to i32
switch i32 %2, label %3 [
i32 95, label %4
i32 61, label %4
i32 64, label %4
i32 33, label %4
i32 38, label %4
i32 124, label %4
i32 94, label %4
i32 60, label %4
i32 62, label %4
i32 126, label %4
i32 43, label %4
i32 45, label %4
i32 42, label %4
i32 47, label %4
i32 37, label %4
i32 35, label %4
]
3: ; preds = %1
br label %4
4: ; preds = %1, %1, %1, %1, %1, %1, %1, %1, %1, %1, %1, %1, %1, %1, %1, %1, %3
%5 = phi i32 [ 0, %3 ], [ 1, %1 ], [ 1, %1 ], [ 1, %1 ], [ 1, %1 ], [ 1, %1 ], [ 1, %1 ], [ 1, %1 ], [ 1, %1 ], [ 1, %1 ], [ 1, %1 ], [ 1, %1 ], [ 1, %1 ], [ 1, %1 ], [ 1, %1 ], [ 1, %1 ], [ 1, %1 ]
ret i32 %5
}
int test_imm_DCint16_reg(short val) {
  return ((val) & (-0xDC << 0)) ? -20 : -40;
}


x86 assembly (clang, -O0):
<test_imm_DCint16_reg>:
push   %rbp
mov    %rsp,%rbp
mov    %di,%ax
mov    %ax,-0x2(%rbp)
movswl -0x2(%rbp),%edx
and    $0xffffff24,%edx
mov    $0xffffffd8,%eax
mov    $0xffffffec,%ecx
cmp    $0x0,%edx
cmovne %ecx,%eax
pop    %rbp
ret

x86 assembly (clang, -O2):
<test_imm_DCint16_reg>:
test   $0xff24,%edi
mov    $0xffffffd8,%ecx
mov    $0xffffffec,%eax
cmove  %ecx,%eax
ret

LLVM IR (-O0):
define i32 @test_imm_DCint16_reg(i16 signext %0) {
%2 = alloca i16
store i16 %0, i16* %2
%3 = load i16, i16* %2
%4 = sext i16 %3 to i32
%5 = and i32 %4, -220
%6 = icmp ne i32 %5, 0
%7 = zext i1 %6 to i64
%8 = select i1 %6, i32 -20, i32 -40
ret i32 %8
}

LLVM IR (-O2):
define i32 @test_imm_DCint16_reg(i16 signext %0) {
%2 = and i16 %0, -220
%3 = icmp eq i16 %2, 0
%4 = select i1 %3, i32 -40, i32 -20
ret i32 %4
}
/* Type definitions */
typedef int /*<<< orphan*/ DH;
typedef int /*<<< orphan*/ BN_MONT_CTX;
typedef int /*<<< orphan*/ BN_CTX;
typedef int /*<<< orphan*/ BIGNUM;

/* Variables and functions */
int BN_mod_exp_mont_ct(int /*<<< orphan*/ *, int /*<<< orphan*/ const *,
                       int /*<<< orphan*/ const *, int /*<<< orphan*/ const *,
                       int /*<<< orphan*/ *, int /*<<< orphan*/ *);
int dh_bn_mod_exp(const DH *dh, BIGNUM *r, const BIGNUM *a, const BIGNUM *p,
                  const BIGNUM *m, BN_CTX *ctx, BN_MONT_CTX *m_ctx) {
  return BN_mod_exp_mont_ct(r, a, p, m, ctx, m_ctx);
}


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

x86 assembly (clang, -O2):
<dh_bn_mod_exp>:
mov    %r9,%rax
mov    %rsi,%rdi
mov    0x8(%rsp),%r9
mov    %rdx,%rsi
mov    %rcx,%rdx
mov    %r8,%rcx
mov    %rax,%r8
jmp    1030 <BN_mod_exp_mont_ct@plt>

LLVM IR (-O0):
define i32 @dh_bn_mod_exp(i32* %0, i32* %1, i32* %2, i32* %3, i32* %4, i32* %5, i32* %6) {
%8 = alloca i32*
%9 = alloca i32*
%10 = alloca i32*
%11 = alloca i32*
%12 = alloca i32*
%13 = alloca i32*
%14 = alloca i32*
store i32* %0, i32** %8
store i32* %1, i32** %9
store i32* %2, i32** %10
store i32* %3, i32** %11
store i32* %4, i32** %12
store i32* %5, i32** %13
store i32* %6, i32** %14
%15 = load i32*, i32** %9
%16 = load i32*, i32** %10
%17 = load i32*, i32** %11
%18 = load i32*, i32** %12
%19 = load i32*, i32** %13
%20 = load i32*, i32** %14
%21 = call i32 @BN_mod_exp_mont_ct(i32* %15, i32* %16, i32* %17, i32* %18, i32* %19, i32* %20)
ret i32 %21
}

LLVM IR (-O2):
define i32 @dh_bn_mod_exp(i32* nocapture readnone %0, i32* %1, i32* %2, i32* %3, i32* %4, i32* %5, i32* %6) {
%8 = tail call i32 @BN_mod_exp_mont_ct(i32* %1, i32* %2, i32* %3, i32* %4, i32* %5, i32* %6)
ret i32 %8
}
/* Variables and functions */
int /*<<< orphan*/ printf(char *, ...);
int main() {
  int i;
  for (i = 1; i <= 50; i++) {
    if (i % 3 != 0) {
      printf("%d,", i);
    }
  }
  printf("\n");
  return 0;
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
movl   $0x0,-0x4(%rbp)
movl   $0x1,-0x8(%rbp)
cmpl   $0x32,-0x8(%rbp)
jg     1168 <main+0x58>
mov    -0x8(%rbp),%eax
mov    $0x3,%ecx
cltd
idiv   %ecx
cmp    $0x0,%edx
je     1155 <main+0x45>
mov    -0x8(%rbp),%esi
lea    0xeb2(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
jmp    115a <main+0x4a>
mov    -0x8(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x8(%rbp)
jmp    1126 <main+0x16>
lea    0xe95(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
xor    %eax,%eax
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %r14
push   %rbx
push   %rax
mov    $0x1,%ebx
lea    0xed0(%rip),%r14
jmp    1148 <main+0x28>
cs nopw 0x0(%rax,%rax,1)
nopl   0x0(%rax)
add    $0x1,%ebx
cmp    $0x33,%ebx
je     116b <main+0x4b>
movzbl %bl,%eax
imul   $0xab,%eax,%ecx
shr    $0x9,%ecx
lea    (%rcx,%rcx,2),%ecx
neg    %ecx
add    %cl,%al
je     1140 <main+0x20>
mov    %r14,%rdi
mov    %ebx,%esi
xor    %eax,%eax
call   1040 <printf@plt>
jmp    1140 <main+0x20>
mov    $0xa,%edi
call   1030 <putchar@plt>
xor    %eax,%eax
add    $0x8,%rsp
pop    %rbx
pop    %r14
ret

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

LLVM IR (-O2):
@.str = [4 x i8] c"%d,\00"
define i32 @main() {
br label %1
1: ; preds = %0, %8
%2 = phi i32 [ 1, %0 ], [ %9, %8 ]
%3 = trunc i32 %2 to i8
%4 = urem i8 %3, 3
%5 = icmp eq i8 %4, 0
br i1 %5, label %8, label %6
6: ; preds = %1
%7 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([4 x i8], [4 x i8]* @.str, i64 0, i64 0), i32 %2)
br label %8
8: ; preds = %1, %6
%9 = add nuw nsw i32 %2, 1
%10 = icmp eq i32 %9, 51
br i1 %10, label %11, label %1
11: ; preds = %8
%12 = tail call i32 @putchar(i32 10)
ret i32 0
}
void sys_get_midi_apis(char *buf) {}


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

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

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

LLVM IR (-O2):
define void @sys_get_midi_apis(i8* nocapture %0) {
ret void
}
extern char *binary_sym(void) { return "+"; }


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

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

LLVM IR (-O0):
@.str = [2 x i8] c"+\00"
define i8* @binary_sym() {
ret i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str, i64 0, i64 0)
}

LLVM IR (-O2):
@.str = [2 x i8] c"+\00"
define i8* @binary_sym() {
ret i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str, i64 0, i64 0)
}
int dummy03(int i) { return i; }


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

x86 assembly (clang, -O2):
<dummy03>:
mov    %edi,%eax
ret

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

LLVM IR (-O2):
define i32 @dummy03(i32 returned %0) {
ret i32 %0
}
/* Type definitions */
typedef int uint32_t;
typedef int uint16_t;

/* Variables and functions */
uint32_t bitCount_fun_uint16_t(uint16_t x) {
  uint32_t r = x & 1;
  while (x >>= 1)
    r += x & 1;
  return r;
}


x86 assembly (clang, -O0):
<bitCount_fun_uint16_t>:
push   %rbp
mov    %rsp,%rbp
mov    %edi,-0x4(%rbp)
mov    -0x4(%rbp),%eax
and    $0x1,%eax
mov    %eax,-0x8(%rbp)
mov    -0x4(%rbp),%eax
sar    $0x1,%eax
mov    %eax,-0x4(%rbp)
cmp    $0x0,%eax
je     1133 <bitCount_fun_uint16_t+0x33>
mov    -0x4(%rbp),%eax
and    $0x1,%eax
add    -0x8(%rbp),%eax
mov    %eax,-0x8(%rbp)
jmp    1110 <bitCount_fun_uint16_t+0x10>
mov    -0x8(%rbp),%eax
pop    %rbp
ret

x86 assembly (clang, -O2):
<bitCount_fun_uint16_t>:
mov    %edi,%eax
and    $0x1,%eax
cmp    $0x2,%edi
jb     1120 <bitCount_fun_uint16_t+0x20>
mov    %edi,%ecx
nopl   0x0(%rax)
sar    %ecx
mov    %ecx,%edx
and    $0x1,%edx
add    %edx,%eax
cmp    $0x3,%edi
mov    %ecx,%edi
ja     1110 <bitCount_fun_uint16_t+0x10>
ret

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

LLVM IR (-O2):
define i32 @bitCount_fun_uint16_t(i32 %0) {
%2 = and i32 %0, 1
%3 = icmp ult i32 %0, 2
br i1 %3, label %11, label %4
4: ; preds = %1, %4
%5 = phi i32 [ %7, %4 ], [ %0, %1 ]
%6 = phi i32 [ %9, %4 ], [ %2, %1 ]
%7 = ashr i32 %5, 1
%8 = and i32 %7, 1
%9 = add nuw nsw i32 %8, %6
%10 = icmp ult i32 %5, 4
br i1 %10, label %11, label %4
11: ; preds = %4, %1
%12 = phi i32 [ %2, %1 ], [ %9, %4 ]
ret i32 %12
}
int HelpItem67(void) { return 0; }


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

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

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

LLVM IR (-O2):
define i32 @HelpItem67() {
ret i32 0
}
void __DELETE_java_lang_reflect_Field(void *me, void *client_data) {}


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

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

LLVM IR (-O0):
define void @__DELETE_java_lang_reflect_Field(i8* %0, i8* %1) {
%3 = alloca i8*
%4 = alloca i8*
store i8* %0, i8** %3
store i8* %1, i8** %4
ret void
}

LLVM IR (-O2):
define void @__DELETE_java_lang_reflect_Field(i8* nocapture %0, i8* nocapture %1) {
ret void
}
/* Variables and functions */
int get_int();
int /*<<< orphan*/ printf(char *, int);
int main() {
  int return_val = get_int();
  printf("Got integer value: %d\n", return_val);
  return return_val;
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
movl   $0x0,-0x4(%rbp)
mov    $0x0,%al
call   1040 <get_int@plt>
mov    %eax,-0x8(%rbp)
mov    -0x8(%rbp),%esi
lea    0xebd(%rip),%rdi
call   1030 <printf@plt>
mov    -0x8(%rbp),%eax
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %rbx
xor    %eax,%eax
call   1040 <get_int@plt>
mov    %eax,%ebx
lea    0xecf(%rip),%rdi
mov    %eax,%esi
call   1030 <printf@plt>
mov    %ebx,%eax
pop    %rbx
ret

LLVM IR (-O0):
@.str = [23 x i8] c"Got integer value: %d\0A\00"
define i32 @main() {
%1 = alloca i32
%2 = alloca i32
store i32 0, i32* %1
%3 = call i32 (...) @get_int()
store i32 %3, i32* %2
%4 = load i32, i32* %2
%5 = call i32 @printf(i8* getelementptr inbounds ([23 x i8], [23 x i8]* @.str, i64 0, i64 0), i32 %4)
%6 = load i32, i32* %2
ret i32 %6
}

LLVM IR (-O2):
@.str = [23 x i8] c"Got integer value: %d\0A\00"
define i32 @main() {
%1 = tail call i32 (...) @get_int()
%2 = tail call i32 @printf(i8* getelementptr inbounds ([23 x i8], [23 x i8]* @.str, i64 0, i64 0), i32 %1)
ret i32 %1
}
/* Variables and functions */
int /*<<< orphan*/ GPIODirModeSet(unsigned long, unsigned char, int);
int /*<<< orphan*/ GPIOPadConfigSet(unsigned long, unsigned char, int, int);
void GPIOPinTypeI2S(unsigned long ulPort, unsigned char ucPins) {
  ;
  GPIODirModeSet(ulPort, ucPins, 0x00000002);
  GPIOPadConfigSet(ulPort, ucPins, 0x00000001, 0x00000008);
}


x86 assembly (clang, -O0):
<GPIOPinTypeI2S>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
mov    %sil,%al
mov    %rdi,-0x8(%rbp)
mov    %al,-0x9(%rbp)
mov    -0x8(%rbp),%rdi
mov    $0x2,%edx
movzbl -0x9(%rbp),%esi
call   1040 <GPIODirModeSet@plt>
mov    -0x8(%rbp),%rdi
mov    $0x1,%edx
mov    $0x8,%ecx
movzbl -0x9(%rbp),%esi
call   1030 <GPIOPadConfigSet@plt>
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<GPIOPinTypeI2S>:
push   %rbp
push   %rbx
push   %rax
mov    %esi,%ebp
mov    %rdi,%rbx
mov    $0x2,%edx
call   1040 <GPIODirModeSet@plt>
mov    %rbx,%rdi
mov    %ebp,%esi
mov    $0x1,%edx
mov    $0x8,%ecx
add    $0x8,%rsp
pop    %rbx
pop    %rbp
jmp    1030 <GPIOPadConfigSet@plt>

LLVM IR (-O0):
define void @GPIOPinTypeI2S(i64 %0, i8 zeroext %1) {
%3 = alloca i64
%4 = alloca i8
store i64 %0, i64* %3
store i8 %1, i8* %4
%5 = load i64, i64* %3
%6 = load i8, i8* %4
%7 = call i32 @GPIODirModeSet(i64 %5, i8 zeroext %6, i32 2)
%8 = load i64, i64* %3
%9 = load i8, i8* %4
%10 = call i32 @GPIOPadConfigSet(i64 %8, i8 zeroext %9, i32 1, i32 8)
ret void
}

LLVM IR (-O2):
define void @GPIOPinTypeI2S(i64 %0, i8 zeroext %1) {
%3 = tail call i32 @GPIODirModeSet(i64 %0, i8 zeroext %1, i32 2)
%4 = tail call i32 @GPIOPadConfigSet(i64 %0, i8 zeroext %1, i32 1, i32 8)
ret void
}
/* Variables and functions */
int /*<<< orphan*/ printf(char *);
int pa_memimport_get() {
  printf("NOT IMPLEMENTED:"
         "pa_memimport_get"
         "\n");
}


x86 assembly (clang, -O0):
<pa_memimport_get>:
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_memimport_get>:
lea    0xee9(%rip),%rdi
jmp    1030 <puts@plt>

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

LLVM IR (-O2):
@str = [33 x i8] c"NOT IMPLEMENTED:pa_memimport_get\00"
define i32 @pa_memimport_get() {
%1 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([33 x i8], [33 x i8]* @str, i64 0, i64 0))
ret i32 undef
}
void McASPTxFmtMaskSet(unsigned int baseAddr, unsigned int mask) {
  (*((volatile unsigned int *)(baseAddr + (0xA4)))) = mask;
}


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

x86 assembly (clang, -O2):
<McASPTxFmtMaskSet>:
add    $0xa4,%edi
mov    %esi,(%rdi)
ret

LLVM IR (-O0):
define void @McASPTxFmtMaskSet(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 = load i32, i32* %3
%7 = add i32 %6, 164
%8 = zext i32 %7 to i64
%9 = inttoptr i64 %8 to i32*
store volatile i32 %5, i32* %9
ret void
}

LLVM IR (-O2):
define void @McASPTxFmtMaskSet(i32 %0, i32 %1) {
%3 = add i32 %0, 164
%4 = zext i32 %3 to i64
%5 = inttoptr i64 %4 to i32*
store volatile i32 %1, i32* %5
ret void
}
/* Type definitions */
struct xdg_surface {
  int dummy;
};
struct wl_proxy {
  int dummy;
};

/* Variables and functions */
int /*<<< orphan*/ wl_proxy_marshal(struct wl_proxy *, int);
void xdg_surface_set_maximized(struct xdg_surface *xdg_surface) {
  wl_proxy_marshal((struct wl_proxy *)xdg_surface, 10);
}


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

x86 assembly (clang, -O2):
<xdg_surface_set_maximized>:
mov    $0xa,%esi
jmp    1030 <wl_proxy_marshal@plt>

LLVM IR (-O0):
%struct.xdg_surface = type { i32 }
%struct.wl_proxy = type { i32 }
define void @xdg_surface_set_maximized(%struct.xdg_surface* %0) {
%2 = alloca %struct.xdg_surface*
store %struct.xdg_surface* %0, %struct.xdg_surface** %2
%3 = load %struct.xdg_surface*, %struct.xdg_surface** %2
%4 = bitcast %struct.xdg_surface* %3 to %struct.wl_proxy*
%5 = call i32 @wl_proxy_marshal(%struct.wl_proxy* %4, i32 10)
ret void
}

LLVM IR (-O2):
%struct.xdg_surface = type { i32 }
%struct.wl_proxy = type { i32 }
define void @xdg_surface_set_maximized(%struct.xdg_surface* %0) {
%2 = bitcast %struct.xdg_surface* %0 to %struct.wl_proxy*
%3 = tail call i32 @wl_proxy_marshal(%struct.wl_proxy* %2, i32 10)
ret void
}
double MakeTime(double hour, double min, double sec, double ms) {
  return ((hour * 60.0 + min) * 60.0 + sec) * 1000.0 + ms;
}


x86 assembly (clang, -O0):
<MakeTime>:
push   %rbp
mov    %rsp,%rbp
movsd  %xmm0,-0x8(%rbp)
movsd  %xmm1,-0x10(%rbp)
movsd  %xmm2,-0x18(%rbp)
movsd  %xmm3,-0x20(%rbp)
movsd  -0x8(%rbp),%xmm0
movsd  -0x10(%rbp),%xmm1
movsd  0xede(%rip),%xmm2
mulsd  %xmm2,%xmm0
addsd  %xmm1,%xmm0
movsd  -0x18(%rbp),%xmm1
movsd  0xec9(%rip),%xmm2
mulsd  %xmm2,%xmm0
addsd  %xmm1,%xmm0
movsd  -0x20(%rbp),%xmm1
movsd  0xeac(%rip),%xmm2
mulsd  %xmm2,%xmm0
addsd  %xmm1,%xmm0
pop    %rbp
ret

x86 assembly (clang, -O2):
<MakeTime>:
movsd  0xef8(%rip),%xmm4
mulsd  %xmm4,%xmm0
addsd  %xmm1,%xmm0
mulsd  %xmm4,%xmm0
addsd  %xmm2,%xmm0
mulsd  0xee8(%rip),%xmm0
addsd  %xmm3,%xmm0
ret

LLVM IR (-O0):
define double @MakeTime(double %0, double %1, double %2, double %3) {
%5 = alloca double
%6 = alloca double
%7 = alloca double
%8 = alloca double
store double %0, double* %5
store double %1, double* %6
store double %2, double* %7
store double %3, double* %8
%9 = load double, double* %5
%10 = load double, double* %6
%11 = call double @llvm.fmuladd.f64(double %9, double 6.000000e+01, double %10)
%12 = load double, double* %7
%13 = call double @llvm.fmuladd.f64(double %11, double 6.000000e+01, double %12)
%14 = load double, double* %8
%15 = call double @llvm.fmuladd.f64(double %13, double 1.000000e+03, double %14)
ret double %15
}

LLVM IR (-O2):
define double @MakeTime(double %0, double %1, double %2, double %3) {
%5 = tail call double @llvm.fmuladd.f64(double %0, double 6.000000e+01, double %1)
%6 = tail call double @llvm.fmuladd.f64(double %5, double 6.000000e+01, double %2)
%7 = tail call double @llvm.fmuladd.f64(double %6, double 1.000000e+03, double %3)
ret double %7
}
/* Variables and functions */
scalar_t__ TXT_DecodeUTF8(char const **);
char *TXT_UTF8_SkipChars(const char *s, unsigned int n) {
  unsigned int i;
  const char *p;
  p = s;
  for (i = 0; i < n; ++i) {
    if (TXT_DecodeUTF8(&p) == 0) {
      break;
    }
  }
  return (char *)p;
}


x86 assembly (clang, -O0):
<TXT_UTF8_SkipChars>:
push   %rbp
mov    %rsp,%rbp
sub    $0x20,%rsp
mov    %rdi,-0x8(%rbp)
mov    %esi,-0xc(%rbp)
mov    -0x8(%rbp),%rax
mov    %rax,-0x18(%rbp)
movl   $0x0,-0x10(%rbp)
mov    -0x10(%rbp),%eax
cmp    -0xc(%rbp),%eax
jae    1165 <TXT_UTF8_SkipChars+0x55>
lea    -0x18(%rbp),%rdi
call   1030 <TXT_DecodeUTF8@plt>
cmp    $0x0,%rax
jne    1152 <TXT_UTF8_SkipChars+0x42>
jmp    1165 <TXT_UTF8_SkipChars+0x55>
jmp    1157 <TXT_UTF8_SkipChars+0x47>
mov    -0x10(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x10(%rbp)
jmp    112e <TXT_UTF8_SkipChars+0x1e>
mov    -0x18(%rbp),%rax
add    $0x20,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<TXT_UTF8_SkipChars>:
push   %rbp
push   %r14
push   %rbx
sub    $0x10,%rsp
mov    %rdi,%rax
mov    %rdi,0x8(%rsp)
test   %esi,%esi
je     114b <TXT_UTF8_SkipChars+0x3b>
mov    %esi,%ebp
mov    $0x1,%ebx
lea    0x8(%rsp),%r14
mov    %r14,%rdi
call   1030 <TXT_DecodeUTF8@plt>
test   %rax,%rax
je     1146 <TXT_UTF8_SkipChars+0x36>
lea    0x1(%rbx),%eax
cmp    %ebp,%ebx
mov    %eax,%ebx
jb     1130 <TXT_UTF8_SkipChars+0x20>
mov    0x8(%rsp),%rax
add    $0x10,%rsp
pop    %rbx
pop    %r14
pop    %rbp
ret

LLVM IR (-O0):
define i8* @TXT_UTF8_SkipChars(i8* %0, i32 %1) {
%3 = alloca i8*
%4 = alloca i32
%5 = alloca i32
%6 = alloca i8*
store i8* %0, i8** %3
store i32 %1, i32* %4
%7 = load i8*, i8** %3
store i8* %7, i8** %6
store i32 0, i32* %5
br label %8
8: ; preds = %17, %2
%9 = load i32, i32* %5
%10 = load i32, i32* %4
%11 = icmp ult i32 %9, %10
br i1 %11, label %12, label %20
12: ; preds = %8
%13 = call i64 @TXT_DecodeUTF8(i8** %6)
%14 = icmp eq i64 %13, 0
br i1 %14, label %15, label %16
15: ; preds = %12
br label %20
16: ; preds = %12
br label %17
17: ; preds = %16
%18 = load i32, i32* %5
%19 = add i32 %18, 1
store i32 %19, i32* %5
br label %8
20: ; preds = %15, %8
%21 = load i8*, i8** %6
ret i8* %21
}

LLVM IR (-O2):
define i8* @TXT_UTF8_SkipChars(i8* %0, i32 %1) {
%3 = alloca i8*
%4 = bitcast i8** %3 to i8*
store i8* %0, i8** %3
%5 = icmp eq i32 %1, 0
br i1 %5, label %15, label %6
6: ; preds = %2, %6
%7 = phi i32 [ %10, %6 ], [ 0, %2 ]
%8 = call i64 @TXT_DecodeUTF8(i8** %3)
%9 = icmp ne i64 %8, 0
%10 = add nuw i32 %7, 1
%11 = icmp ult i32 %10, %1
%12 = select i1 %9, i1 %11, i1 false
br i1 %12, label %6, label %13
13: ; preds = %6
%14 = load i8*, i8** %3
br label %15
15: ; preds = %13, %2
%16 = phi i8* [ %14, %13 ], [ %0, %2 ]
ret i8* %16
}
/* Variables and functions */
int /*<<< orphan*/ i8086_interrupt(int);
void i8086_int3() { i8086_interrupt(3); }


x86 assembly (clang, -O0):
<i8086_int3>:
push   %rbp
mov    %rsp,%rbp
mov    $0x3,%edi
call   1030 <i8086_interrupt@plt>
pop    %rbp
ret

x86 assembly (clang, -O2):
<i8086_int3>:
mov    $0x3,%edi
jmp    1030 <i8086_interrupt@plt>

LLVM IR (-O0):
define void @i8086_int3() {
%1 = call i32 @i8086_interrupt(i32 3)
ret void
}

LLVM IR (-O2):
define void @i8086_int3() {
%1 = tail call i32 @i8086_interrupt(i32 3)
ret void
}
/* Variables and functions */
int /*<<< orphan*/ write_stdout(char);
void write_stdout_nl() { write_stdout('\n'); }


x86 assembly (clang, -O0):
<write_stdout_nl>:
push   %rbp
mov    %rsp,%rbp
mov    $0xa,%edi
call   1030 <write_stdout@plt>
pop    %rbp
ret

x86 assembly (clang, -O2):
<write_stdout_nl>:
mov    $0xa,%edi
jmp    1030 <write_stdout@plt>

LLVM IR (-O0):
define void @write_stdout_nl() {
%1 = call i32 @write_stdout(i8 signext 10)
ret void
}

LLVM IR (-O2):
define void @write_stdout_nl() {
%1 = tail call i32 @write_stdout(i8 signext 10)
ret void
}
void ScaleRowDown4Box_SSSE3() {}


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

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

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

LLVM IR (-O2):
define void @ScaleRowDown4Box_SSSE3() {
ret void
}
/* Variables and functions */
int /*<<< orphan*/ fprintf(int /*<<< orphan*/, char *, char const *,
                           char const *);
int /*<<< orphan*/ stderr;
int /*<<< orphan*/ suggest(char const *);
void unexpected(const char *prog, const char *arg) {
  fprintf(stderr, "%s: unexpected option \"%s\"\n", prog, arg);
  suggest(prog);
}


x86 assembly (clang, -O0):
<unexpected>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
mov    %rdi,-0x8(%rbp)
mov    %rsi,-0x10(%rbp)
mov    0x2ea9(%rip),%rax
mov    (%rax),%edi
mov    -0x8(%rbp),%rdx
mov    -0x10(%rbp),%rcx
lea    0xeb8(%rip),%rsi
call   1030 <fprintf@plt>
mov    -0x8(%rbp),%rdi
call   1040 <suggest@plt>
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<unexpected>:
push   %rbx
mov    %rsi,%rcx
mov    %rdi,%rbx
mov    0x2eb2(%rip),%rax
mov    (%rax),%edi
lea    0xec9(%rip),%rsi
mov    %rbx,%rdx
call   1030 <fprintf@plt>
mov    %rbx,%rdi
pop    %rbx
jmp    1040 <suggest@plt>

LLVM IR (-O0):
@stderr = global i32 0
@.str = [28 x i8] c"%s: unexpected option \22%s\22\0A\00"
define void @unexpected(i8* %0, i8* %1) {
%3 = alloca i8*
%4 = alloca i8*
store i8* %0, i8** %3
store i8* %1, i8** %4
%5 = load i32, i32* @stderr
%6 = load i8*, i8** %3
%7 = load i8*, i8** %4
%8 = call i32 @fprintf(i32 %5, i8* getelementptr inbounds ([28 x i8], [28 x i8]* @.str, i64 0, i64 0), i8* %6, i8* %7)
%9 = load i8*, i8** %3
%10 = call i32 @suggest(i8* %9)
ret void
}

LLVM IR (-O2):
@stderr = global i32 0
@.str = [28 x i8] c"%s: unexpected option \22%s\22\0A\00"
define void @unexpected(i8* %0, i8* %1) {
%3 = load i32, i32* @stderr
%4 = tail call i32 @fprintf(i32 %3, i8* getelementptr inbounds ([28 x i8], [28 x i8]* @.str, i64 0, i64 0), i8* %0, i8* %1)
%5 = tail call i32 @suggest(i8* %0)
ret void
}
int unset_kth_bit_from_right(int n, int k) { return n & ~(1 << k); }


x86 assembly (clang, -O0):
<unset_kth_bit_from_right>:
push   %rbp
mov    %rsp,%rbp
mov    %edi,-0x4(%rbp)
mov    %esi,-0x8(%rbp)
mov    -0x4(%rbp),%eax
mov    -0x8(%rbp),%ecx
mov    $0x1,%edx
shl    %cl,%edx
mov    %edx,%ecx
xor    $0xffffffff,%ecx
and    %ecx,%eax
pop    %rbp
ret

x86 assembly (clang, -O2):
<unset_kth_bit_from_right>:
mov    %edi,%eax
btr    %esi,%eax
ret

LLVM IR (-O0):
define i32 @unset_kth_bit_from_right(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 = shl i32 1, %6
%8 = xor i32 %7, -1
%9 = and i32 %5, %8
ret i32 %9
}

LLVM IR (-O2):
define i32 @unset_kth_bit_from_right(i32 %0, i32 %1) {
%3 = shl nuw i32 1, %1
%4 = xor i32 %3, -1
%5 = and i32 %4, %0
ret i32 %5
}
/* Variables and functions */
int /*<<< orphan*/ printf(char *, int, int, int);
void mstatus2(int state, int x, int y) {
  printf("state: %d, x=%d, y=%d\n", state, x, y);
}


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

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

LLVM IR (-O0):
@.str = [23 x i8] c"state: %d, x=%d, y=%d\0A\00"
define void @mstatus2(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 = load i32, i32* %5
%9 = load i32, i32* %6
%10 = call i32 @printf(i8* getelementptr inbounds ([23 x i8], [23 x i8]* @.str, i64 0, i64 0), i32 %7, i32 %8, i32 %9)
ret void
}

LLVM IR (-O2):
@.str = [23 x i8] c"state: %d, x=%d, y=%d\0A\00"
define void @mstatus2(i32 %0, i32 %1, i32 %2) {
%4 = tail call i32 @printf(i8* getelementptr inbounds ([23 x i8], [23 x i8]* @.str, i64 0, i64 0), i32 %0, i32 %1, i32 %2)
ret void
}
/* Variables and functions */
int number_bits(int);
int calculate_saving_modifier(int bonus) {
  int mod;
  mod = number_bits(2) - 2 + bonus;
  if (mod == 0)
    mod = -1;
  return mod;
}


x86 assembly (clang, -O0):
<calculate_saving_modifier>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
mov    %edi,-0x4(%rbp)
mov    $0x2,%edi
call   1030 <number_bits@plt>
sub    $0x2,%eax
add    -0x4(%rbp),%eax
mov    %eax,-0x8(%rbp)
cmpl   $0x0,-0x8(%rbp)
jne    113f <calculate_saving_modifier+0x2f>
movl   $0xffffffff,-0x8(%rbp)
mov    -0x8(%rbp),%eax
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<calculate_saving_modifier>:
push   %rbx
mov    %edi,%ebx
mov    $0x2,%edi
call   1030 <number_bits@plt>
lea    (%rbx,%rax,1),%ecx
add    $0xfffffffe,%ecx
cmp    $0x1,%ecx
sbb    %eax,%eax
or     %ecx,%eax
pop    %rbx
ret

LLVM IR (-O0):
define i32 @calculate_saving_modifier(i32 %0) {
%2 = alloca i32
%3 = alloca i32
store i32 %0, i32* %2
%4 = call i32 @number_bits(i32 2)
%5 = sub nsw i32 %4, 2
%6 = load i32, i32* %2
%7 = add nsw i32 %5, %6
store i32 %7, i32* %3
%8 = load i32, i32* %3
%9 = icmp eq i32 %8, 0
br i1 %9, label %10, label %11
10: ; preds = %1
store i32 -1, i32* %3
br label %11
11: ; preds = %10, %1
%12 = load i32, i32* %3
ret i32 %12
}

LLVM IR (-O2):
define i32 @calculate_saving_modifier(i32 %0) {
%2 = tail call i32 @number_bits(i32 2)
%3 = add i32 %0, -2
%4 = add i32 %3, %2
%5 = icmp eq i32 %4, 0
%6 = select i1 %5, i32 -1, i32 %4
ret i32 %6
}
char *foo() {
  static char bar[] = "foobar";
  return bar;
}


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

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

LLVM IR (-O0):
@foo.bar = internal global [7 x i8] c"foobar\00"
define i8* @foo() {
ret i8* getelementptr inbounds ([7 x i8], [7 x i8]* @foo.bar, i64 0, i64 0)
}

LLVM IR (-O2):
@foo.bar = internal global [7 x i8] c"foobar\00"
define i8* @foo() {
ret i8* getelementptr inbounds ([7 x i8], [7 x i8]* @foo.bar, i64 0, i64 0)
}
double Tween_BackOutEasing(double k) {
  double s = 1.70158;
  --k;
  return k * k * ((s + 1) * k + s) + 1;
}


x86 assembly (clang, -O0):
<Tween_BackOutEasing>:
push   %rbp
mov    %rsp,%rbp
movsd  %xmm0,-0x8(%rbp)
movsd  0xeff(%rip),%xmm0
movsd  %xmm0,-0x10(%rbp)
movsd  0xeea(%rip),%xmm0
addsd  -0x8(%rbp),%xmm0
movsd  %xmm0,-0x8(%rbp)
movsd  -0x8(%rbp),%xmm0
mulsd  -0x8(%rbp),%xmm0
movsd  0xec6(%rip),%xmm1
addsd  -0x10(%rbp),%xmm1
movsd  -0x8(%rbp),%xmm3
movsd  -0x10(%rbp),%xmm2
mulsd  %xmm3,%xmm1
addsd  %xmm2,%xmm1
mulsd  %xmm1,%xmm0
movsd  0xea3(%rip),%xmm1
addsd  %xmm1,%xmm0
pop    %rbp
ret

x86 assembly (clang, -O2):
<Tween_BackOutEasing>:
addsd  0xef8(%rip),%xmm0
movapd %xmm0,%xmm1
mulsd  0xef4(%rip),%xmm0
addsd  0xef4(%rip),%xmm0
mulsd  %xmm1,%xmm1
mulsd  %xmm1,%xmm0
addsd  0xeec(%rip),%xmm0
ret

LLVM IR (-O0):
define double @Tween_BackOutEasing(double %0) {
%2 = alloca double
%3 = alloca double
store double %0, double* %2
store double 1.701580e+00, double* %3
%4 = load double, double* %2
%5 = fadd double %4, -1.000000e+00
store double %5, double* %2
%6 = load double, double* %2
%7 = load double, double* %2
%8 = fmul double %6, %7
%9 = load double, double* %3
%10 = fadd double %9, 1.000000e+00
%11 = load double, double* %2
%12 = load double, double* %3
%13 = call double @llvm.fmuladd.f64(double %10, double %11, double %12)
%14 = call double @llvm.fmuladd.f64(double %8, double %13, double 1.000000e+00)
ret double %14
}

LLVM IR (-O2):
define double @Tween_BackOutEasing(double %0) {
%2 = fadd double %0, -1.000000e+00
%3 = fmul double %2, %2
%4 = tail call double @llvm.fmuladd.f64(double %2, double 2.701580e+00, double 1.701580e+00)
%5 = tail call double @llvm.fmuladd.f64(double %3, double %4, double 1.000000e+00)
ret double %5
}
void dmumps_gpu_return() {}


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

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

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

LLVM IR (-O2):
define void @dmumps_gpu_return() {
ret void
}
void ll_unloadlib(void *lib) { (void)(lib); }


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

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

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

LLVM IR (-O2):
define void @ll_unloadlib(i8* nocapture %0) {
ret void
}
/* Variables and functions */
int db_warehouse_destroy();
int sequential_destroy() {
  int ret;
  ret = db_warehouse_destroy();
  return ret;
}


x86 assembly (clang, -O0):
<sequential_destroy>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
mov    $0x0,%al
call   1030 <db_warehouse_destroy@plt>
mov    %eax,-0x4(%rbp)
mov    -0x4(%rbp),%eax
add    $0x10,%rsp
pop    %rbp
ret

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

LLVM IR (-O0):
define i32 @sequential_destroy() {
%1 = alloca i32
%2 = call i32 (...) @db_warehouse_destroy()
store i32 %2, i32* %1
%3 = load i32, i32* %1
ret i32 %3
}

LLVM IR (-O2):
define i32 @sequential_destroy() {
%1 = tail call i32 (...) @db_warehouse_destroy()
ret i32 %1
}
/* Variables and functions */
int /*<<< orphan*/ printf(char *, unsigned char);
void enable_irq_sff() {
  unsigned char r_val;
  r_val = *((unsigned char *)(0xfffc0000 + 0x0000)) | 0x1E;
  *((unsigned char *)(0xfffc0000 + 0x0000)) = r_val;
  printf("control_register 0x%X \n\n",
         *((unsigned char *)(0xfffc0000 + 0x0000)));
}


x86 assembly (clang, -O0):
<enable_irq_sff>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
mov    $0xfffc0000,%eax
movzbl (%rax),%eax
or     $0x1e,%eax
mov    %al,-0x1(%rbp)
mov    -0x1(%rbp),%cl
mov    $0xfffc0000,%eax
mov    %cl,(%rax)
lea    0xec9(%rip),%rdi
mov    $0xfffc0000,%eax
movzbl (%rax),%esi
call   1030 <printf@plt>
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<enable_irq_sff>:
mov    $0xfffc0000,%eax
movzbl (%rax),%esi
or     $0x1e,%esi
mov    %sil,(%rax)
lea    0xedb(%rip),%rdi
jmp    1030 <printf@plt>

LLVM IR (-O0):
@.str = [25 x i8] c"control_register 0x%X \0A\0A\00"
define void @enable_irq_sff() {
%1 = alloca i8
%2 = load i8, i8* inttoptr (i64 4294705152 to i8*)
%3 = zext i8 %2 to i32
%4 = or i32 %3, 30
%5 = trunc i32 %4 to i8
store i8 %5, i8* %1
%6 = load i8, i8* %1
store i8 %6, i8* inttoptr (i64 4294705152 to i8*)
%7 = load i8, i8* inttoptr (i64 4294705152 to i8*)
%8 = call i32 @printf(i8* getelementptr inbounds ([25 x i8], [25 x i8]* @.str, i64 0, i64 0), i8 zeroext %7)
ret void
}

LLVM IR (-O2):
@.str = [25 x i8] c"control_register 0x%X \0A\0A\00"
define void @enable_irq_sff() {
%1 = load i8, i8* inttoptr (i64 4294705152 to i8*)
%2 = or i8 %1, 30
store i8 %2, i8* inttoptr (i64 4294705152 to i8*)
%3 = tail call i32 @printf(i8* getelementptr inbounds ([25 x i8], [25 x i8]* @.str, i64 0, i64 0), i8 zeroext %2)
ret void
}