xunge/DecIR huggingface dataset:
/* Variables and functions */
int /*<<< orphan*/ F_raw(int *, int *, int);
void F2(int *a, int *b) { F_raw(a, b, 2); }


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

x86 assembly (clang, -O2):
<F2>:
mov    $0x2,%edx
jmp    1030 <F_raw@plt>

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

LLVM IR (-O2):
define void @F2(i32* %0, i32* %1) {
%3 = tail call i32 @F_raw(i32* %0, i32* %1, i32 2)
ret void
}
/* Variables and functions */
int /*<<< orphan*/ TELOPT_BINARY;
int /*<<< orphan*/ send_do(int /*<<< orphan*/, int);
int /*<<< orphan*/ send_will(int /*<<< orphan*/, int);
void tel_enter_binary(int rw) {
  if (rw & 1)
    send_do(TELOPT_BINARY, 1);
  if (rw & 2)
    send_will(TELOPT_BINARY, 1);
}


x86 assembly (clang, -O0):
<tel_enter_binary>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
mov    %edi,-0x4(%rbp)
mov    -0x4(%rbp),%eax
and    $0x1,%eax
cmp    $0x0,%eax
je     114d <tel_enter_binary+0x2d>
mov    0x2ea7(%rip),%rax
mov    (%rax),%edi
mov    $0x1,%esi
call   1040 <send_do@plt>
mov    -0x4(%rbp),%eax
and    $0x2,%eax
cmp    $0x0,%eax
je     116f <tel_enter_binary+0x4f>
mov    0x2e85(%rip),%rax
mov    (%rax),%edi
mov    $0x1,%esi
call   1030 <send_will@plt>
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<tel_enter_binary>:
push   %rbx
mov    %edi,%ebx
test   $0x1,%bl
je     113b <tel_enter_binary+0x1b>
mov    0x2eb9(%rip),%rax
mov    (%rax),%edi
mov    $0x1,%esi
call   1040 <send_do@plt>
test   $0x2,%bl
jne    1142 <tel_enter_binary+0x22>
pop    %rbx
ret
mov    0x2e9f(%rip),%rax
mov    (%rax),%edi
mov    $0x1,%esi
pop    %rbx
jmp    1030 <send_will@plt>

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

LLVM IR (-O2):
@TELOPT_BINARY = global i32 0
define void @tel_enter_binary(i32 %0) {
%2 = and i32 %0, 1
%3 = icmp eq i32 %2, 0
br i1 %3, label %7, label %4
4: ; preds = %1
%5 = load i32, i32* @TELOPT_BINARY
%6 = tail call i32 @send_do(i32 %5, i32 1)
br label %7
7: ; preds = %4, %1
%8 = and i32 %0, 2
%9 = icmp eq i32 %8, 0
br i1 %9, label %13, label %10
10: ; preds = %7
%11 = load i32, i32* @TELOPT_BINARY
%12 = tail call i32 @send_will(i32 %11, i32 1)
br label %13
13: ; preds = %10, %7
ret void
}
/* Variables and functions */
int _ada_use_c2phc(int, int *, int *, double *);
int autotune_continuation_parameters(int difficulty_level,
                                     int digits_of_precision) {
  int fail;
  double *c;
  fail = _ada_use_c2phc(193, &difficulty_level, &digits_of_precision, c);
  return fail;
}


x86 assembly (clang, -O0):
<autotune_continuation_parameters>:
push   %rbp
mov    %rsp,%rbp
sub    $0x20,%rsp
mov    %edi,-0x4(%rbp)
mov    %esi,-0x8(%rbp)
mov    -0x18(%rbp),%rcx
mov    $0xc1,%edi
lea    -0x4(%rbp),%rsi
lea    -0x8(%rbp),%rdx
call   1030 <_ada_use_c2phc@plt>
mov    %eax,-0xc(%rbp)
mov    -0xc(%rbp),%eax
add    $0x20,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<autotune_continuation_parameters>:
push   %rax
mov    %edi,0x4(%rsp)
mov    %esi,(%rsp)
lea    0x4(%rsp),%rsi
mov    %rsp,%rdx
mov    $0xc1,%edi
call   1030 <_ada_use_c2phc@plt>
pop    %rcx
ret

LLVM IR (-O0):
define i32 @autotune_continuation_parameters(i32 %0, i32 %1) {
%3 = alloca i32
%4 = alloca i32
%5 = alloca i32
%6 = alloca double*
store i32 %0, i32* %3
store i32 %1, i32* %4
%7 = load double*, double** %6
%8 = call i32 @_ada_use_c2phc(i32 193, i32* %3, i32* %4, double* %7)
store i32 %8, i32* %5
%9 = load i32, i32* %5
ret i32 %9
}

LLVM IR (-O2):
define i32 @autotune_continuation_parameters(i32 %0, i32 %1) {
%3 = alloca i32
%4 = alloca i32
store i32 %0, i32* %3
store i32 %1, i32* %4
%5 = call i32 @_ada_use_c2phc(i32 193, i32* %3, i32* %4, double* undef)
ret i32 %5
}
/* Variables and functions */
int /*<<< orphan*/ srand(int);
scalar_t__ time(int /*<<< orphan*/ *);
void randomize(void) { srand((int)time(NULL)); }


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

x86 assembly (clang, -O2):
<randomize>:
push   %rax
xor    %edi,%edi
call   1040 <time@plt>
mov    %eax,%edi
pop    %rax
jmp    1030 <srand@plt>

LLVM IR (-O0):
define void @randomize() {
%1 = call i64 @time(i32* null)
%2 = trunc i64 %1 to i32
%3 = call i32 @srand(i32 %2)
ret void
}

LLVM IR (-O2):
define void @randomize() {
%1 = tail call i64 @time(i32* null)
%2 = trunc i64 %1 to i32
%3 = tail call i32 @srand(i32 %2)
ret void
}
int ocl_hw_atomic16_id(int index) {}


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

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

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

LLVM IR (-O2):
define i32 @ocl_hw_atomic16_id(i32 %0) {
ret i32 undef
}
/* Variables and functions */
scalar_t__ dcac_acl_ops(int, int, int, char *, int /*<<< orphan*/ *);
int dcac_set_def_mdacl(char *plain_acl) {
  return (int)dcac_acl_ops(23, -1, -1, plain_acl, NULL);
}


x86 assembly (clang, -O0):
<dcac_set_def_mdacl>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
mov    %rdi,-0x8(%rbp)
mov    -0x8(%rbp),%rcx
mov    $0x17,%edi
mov    $0xffffffff,%edx
xor    %eax,%eax
mov    %eax,%r8d
mov    %edx,%esi
call   1030 <dcac_acl_ops@plt>
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<dcac_set_def_mdacl>:
mov    %rdi,%rcx
mov    $0x17,%edi
mov    $0xffffffff,%esi
mov    $0xffffffff,%edx
xor    %r8d,%r8d
jmp    1030 <dcac_acl_ops@plt>

LLVM IR (-O0):
define i32 @dcac_set_def_mdacl(i8* %0) {
%2 = alloca i8*
store i8* %0, i8** %2
%3 = load i8*, i8** %2
%4 = call i64 @dcac_acl_ops(i32 23, i32 -1, i32 -1, i8* %3, i32* null)
%5 = trunc i64 %4 to i32
ret i32 %5
}

LLVM IR (-O2):
define i32 @dcac_set_def_mdacl(i8* %0) {
%2 = tail call i64 @dcac_acl_ops(i32 23, i32 -1, i32 -1, i8* %0, i32* null)
%3 = trunc i64 %2 to i32
ret i32 %3
}
/* Type definitions */
struct inode {
  int dummy;
};
struct file {
  int dummy;
};

/* Variables and functions */
int /*<<< orphan*/ DRM_DEBUG(char *);
int drm_noop(struct inode *inode, struct file *filp, unsigned int cmd,
             unsigned long arg) {
  DRM_DEBUG("\n");
  return 0;
}


x86 assembly (clang, -O0):
<drm_noop>:
push   %rbp
mov    %rsp,%rbp
sub    $0x20,%rsp
mov    %rdi,-0x8(%rbp)
mov    %rsi,-0x10(%rbp)
mov    %edx,-0x14(%rbp)
mov    %rcx,-0x20(%rbp)
lea    0xed2(%rip),%rdi
call   1030 <DRM_DEBUG@plt>
xor    %eax,%eax
add    $0x20,%rsp
pop    %rbp
ret

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

LLVM IR (-O0):
%struct.inode = type { i32 }
%struct.file = type { i32 }
@.str = [2 x i8] c"\0A\00"
define i32 @drm_noop(%struct.inode* %0, %struct.file* %1, i32 %2, i64 %3) {
%5 = alloca %struct.inode*
%6 = alloca %struct.file*
%7 = alloca i32
%8 = alloca i64
store %struct.inode* %0, %struct.inode** %5
store %struct.file* %1, %struct.file** %6
store i32 %2, i32* %7
store i64 %3, i64* %8
%9 = call i32 @DRM_DEBUG(i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str, i64 0, i64 0))
ret i32 0
}

LLVM IR (-O2):
%struct.inode = type { i32 }
%struct.file = type { i32 }
@.str = [2 x i8] c"\0A\00"
define i32 @drm_noop(%struct.inode* nocapture readnone %0, %struct.file* nocapture readnone %1, i32 %2, i64 %3) {
%5 = tail call i32 @DRM_DEBUG(i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str, i64 0, i64 0))
ret i32 0
}
void pthread_mutexattr_getpshared() {}


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

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

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

LLVM IR (-O2):
define void @pthread_mutexattr_getpshared() {
ret void
}
/* Variables and functions */
int /*<<< orphan*/ printf(char *);
int /*<<< orphan*/ test_create();
int /*<<< orphan*/ test_create_node();
int /*<<< orphan*/ test_peek();
int /*<<< orphan*/ test_pop();
int /*<<< orphan*/ test_push();
int main(void) {
  test_create_node();
  test_create();
  test_pop();
  test_push();
  test_peek();
  printf("All tests passed\n");
  return 0;
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
movl   $0x0,-0x4(%rbp)
mov    $0x0,%al
call   1050 <test_create_node@plt>
mov    $0x0,%al
call   1080 <test_create@plt>
mov    $0x0,%al
call   1040 <test_pop@plt>
mov    $0x0,%al
call   1070 <test_push@plt>
mov    $0x0,%al
call   1060 <test_peek@plt>
lea    0xe67(%rip),%rdi
call   1030 <printf@plt>
xor    %eax,%eax
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %rax
xor    %eax,%eax
call   1050 <test_create_node@plt>
xor    %eax,%eax
call   1080 <test_create@plt>
xor    %eax,%eax
call   1040 <test_pop@plt>
xor    %eax,%eax
call   1070 <test_push@plt>
xor    %eax,%eax
call   1060 <test_peek@plt>
lea    0xe75(%rip),%rdi
call   1030 <puts@plt>
xor    %eax,%eax
pop    %rcx
ret

LLVM IR (-O0):
@.str = [18 x i8] c"All tests passed\0A\00"
define i32 @main() {
%1 = alloca i32
store i32 0, i32* %1
%2 = call i32 (...) @test_create_node()
%3 = call i32 (...) @test_create()
%4 = call i32 (...) @test_pop()
%5 = call i32 (...) @test_push()
%6 = call i32 (...) @test_peek()
%7 = call i32 @printf(i8* getelementptr inbounds ([18 x i8], [18 x i8]* @.str, i64 0, i64 0))
ret i32 0
}

LLVM IR (-O2):
@str = [17 x i8] c"All tests passed\00"
define i32 @main() {
%1 = tail call i32 (...) @test_create_node()
%2 = tail call i32 (...) @test_create()
%3 = tail call i32 (...) @test_pop()
%4 = tail call i32 (...) @test_push()
%5 = tail call i32 (...) @test_peek()
%6 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([17 x i8], [17 x i8]* @str, i64 0, i64 0))
ret i32 0
}
/* Variables and functions */
unsigned int digit_value(char);
unsigned _hex_char_value(char c) {
  unsigned x = digit_value(c);
  if (x > 9) {
    const unsigned d = 'A' - '0';
    x -= d;
    x &= ~32u;
    x += 10;
  }
  return x;
}


x86 assembly (clang, -O0):
<_hex_char_value>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
mov    %dil,%al
mov    %al,-0x1(%rbp)
movsbl -0x1(%rbp),%edi
call   1030 <digit_value@plt>
mov    %eax,-0x8(%rbp)
cmpl   $0x9,-0x8(%rbp)
jbe    1156 <_hex_char_value+0x46>
movl   $0x11,-0xc(%rbp)
mov    -0x8(%rbp),%eax
sub    $0x11,%eax
mov    %eax,-0x8(%rbp)
mov    -0x8(%rbp),%eax
and    $0xffffffdf,%eax
mov    %eax,-0x8(%rbp)
mov    -0x8(%rbp),%eax
add    $0xa,%eax
mov    %eax,-0x8(%rbp)
mov    -0x8(%rbp),%eax
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<_hex_char_value>:
push   %rax
call   1030 <digit_value@plt>
lea    -0x11(%rax),%ecx
and    $0xffffffdf,%ecx
add    $0xa,%ecx
cmp    $0xa,%eax
cmovae %ecx,%eax
pop    %rcx
ret

LLVM IR (-O0):
define i32 @_hex_char_value(i8 signext %0) {
%2 = alloca i8
%3 = alloca i32
%4 = alloca i32
store i8 %0, i8* %2
%5 = load i8, i8* %2
%6 = call i32 @digit_value(i8 signext %5)
store i32 %6, i32* %3
%7 = load i32, i32* %3
%8 = icmp ugt i32 %7, 9
br i1 %8, label %9, label %16
9: ; preds = %1
store i32 17, i32* %4
%10 = load i32, i32* %3
%11 = sub i32 %10, 17
store i32 %11, i32* %3
%12 = load i32, i32* %3
%13 = and i32 %12, -33
store i32 %13, i32* %3
%14 = load i32, i32* %3
%15 = add i32 %14, 10
store i32 %15, i32* %3
br label %16
16: ; preds = %9, %1
%17 = load i32, i32* %3
ret i32 %17
}

LLVM IR (-O2):
define i32 @_hex_char_value(i8 signext %0) {
%2 = tail call i32 @digit_value(i8 signext %0)
%3 = icmp ugt i32 %2, 9
%4 = add i32 %2, -17
%5 = and i32 %4, -33
%6 = add nuw nsw i32 %5, 10
%7 = select i1 %3, i32 %6, i32 %2
ret i32 %7
}
void disable_interrupt_key(void) {}


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

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

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

LLVM IR (-O2):
define void @disable_interrupt_key() {
ret void
}
/* Type definitions */
typedef int /*<<< orphan*/ off_t;

/* Variables and functions */
int /*<<< orphan*/ ENOTSUP;
int /*<<< orphan*/ errno;
int tail_mmap(const char *file, int src, int dst, size_t lines,
              size_t segment_size, off_t fsize) {
  errno = ENOTSUP;
  return 1;
}


x86 assembly (clang, -O0):
<tail_mmap>:
push   %rbp
mov    %rsp,%rbp
mov    %rdi,-0x8(%rbp)
mov    %esi,-0xc(%rbp)
mov    %edx,-0x10(%rbp)
mov    %rcx,-0x18(%rbp)
mov    %r8,-0x20(%rbp)
mov    %r9d,-0x24(%rbp)
mov    0x2ec7(%rip),%rax
mov    (%rax),%ecx
mov    0x2eae(%rip),%rax
mov    %ecx,(%rax)
mov    $0x1,%eax
pop    %rbp
ret

x86 assembly (clang, -O2):
<tail_mmap>:
mov    0x2ee1(%rip),%rax
mov    (%rax),%eax
mov    0x2ec8(%rip),%rcx
mov    %eax,(%rcx)
mov    $0x1,%eax
ret

LLVM IR (-O0):
@ENOTSUP = global i32 0
@errno = global i32 0
define i32 @tail_mmap(i8* %0, i32 %1, i32 %2, i64 %3, i64 %4, i32 %5) {
%7 = alloca i8*
%8 = alloca i32
%9 = alloca i32
%10 = alloca i64
%11 = alloca i64
%12 = alloca i32
store i8* %0, i8** %7
store i32 %1, i32* %8
store i32 %2, i32* %9
store i64 %3, i64* %10
store i64 %4, i64* %11
store i32 %5, i32* %12
%13 = load i32, i32* @ENOTSUP
store i32 %13, i32* @errno
ret i32 1
}

LLVM IR (-O2):
@ENOTSUP = global i32 0
@errno = global i32 0
define i32 @tail_mmap(i8* nocapture readnone %0, i32 %1, i32 %2, i64 %3, i64 %4, i32 %5) {
%7 = load i32, i32* @ENOTSUP
store i32 %7, i32* @errno
ret i32 1
}
void Interp10(unsigned char *pc, int c1, int c2, int c3) {
  *((int *)pc) = ((((c1 & 0x00FF00) * 14 + (c2 & 0x00FF00) + (c3 & 0x00FF00)) &
                   0x000FF000) +
                  (((c1 & 0xFF00FF) * 14 + (c2 & 0xFF00FF) + (c3 & 0xFF00FF)) &
                   0x0FF00FF0)) >>
                 4;
}


x86 assembly (clang, -O0):
<Interp10>:
push   %rbp
mov    %rsp,%rbp
mov    %rdi,-0x8(%rbp)
mov    %esi,-0xc(%rbp)
mov    %edx,-0x10(%rbp)
mov    %ecx,-0x14(%rbp)
mov    -0xc(%rbp),%eax
and    $0xff00,%eax
imul   $0xe,%eax,%ecx
mov    -0x10(%rbp),%eax
and    $0xff00,%eax
add    %eax,%ecx
mov    -0x14(%rbp),%eax
and    $0xff00,%eax
add    %eax,%ecx
and    $0xff000,%ecx
mov    -0xc(%rbp),%eax
and    $0xff00ff,%eax
imul   $0xe,%eax,%eax
mov    -0x10(%rbp),%edx
and    $0xff00ff,%edx
add    %edx,%eax
mov    -0x14(%rbp),%edx
and    $0xff00ff,%edx
add    %edx,%eax
and    $0xff00ff0,%eax
add    %eax,%ecx
sar    $0x4,%ecx
mov    -0x8(%rbp),%rax
mov    %ecx,(%rax)
pop    %rbp
ret

x86 assembly (clang, -O2):
<Interp10>:
mov    %esi,%r8d
and    $0xff00,%r8d
mov    %r8d,%eax
shl    $0x4,%eax
sub    %r8d,%eax
sub    %r8d,%eax
mov    %edx,%r8d
and    $0xff00,%r8d
add    %eax,%r8d
mov    %ecx,%r9d
and    $0xff00,%r9d
add    %r8d,%r9d
and    $0xff000,%r9d
and    $0xff00ff,%esi
mov    %esi,%eax
shl    $0x4,%eax
sub    %esi,%eax
sub    %esi,%eax
and    $0xff00ff,%edx
add    %eax,%edx
and    $0xff00ff,%ecx
add    %edx,%ecx
and    $0xff00ff0,%ecx
or     %r9d,%ecx
shr    $0x4,%ecx
mov    %ecx,(%rdi)
ret

LLVM IR (-O0):
define void @Interp10(i8* %0, i32 %1, i32 %2, i32 %3) {
%5 = alloca i8*
%6 = alloca i32
%7 = alloca i32
%8 = alloca i32
store i8* %0, i8** %5
store i32 %1, i32* %6
store i32 %2, i32* %7
store i32 %3, i32* %8
%9 = load i32, i32* %6
%10 = and i32 %9, 65280
%11 = mul nsw i32 %10, 14
%12 = load i32, i32* %7
%13 = and i32 %12, 65280
%14 = add nsw i32 %11, %13
%15 = load i32, i32* %8
%16 = and i32 %15, 65280
%17 = add nsw i32 %14, %16
%18 = and i32 %17, 1044480
%19 = load i32, i32* %6
%20 = and i32 %19, 16711935
%21 = mul nsw i32 %20, 14
%22 = load i32, i32* %7
%23 = and i32 %22, 16711935
%24 = add nsw i32 %21, %23
%25 = load i32, i32* %8
%26 = and i32 %25, 16711935
%27 = add nsw i32 %24, %26
%28 = and i32 %27, 267390960
%29 = add nsw i32 %18, %28
%30 = ashr i32 %29, 4
%31 = load i8*, i8** %5
%32 = bitcast i8* %31 to i32*
store i32 %30, i32* %32
ret void
}

LLVM IR (-O2):
define void @Interp10(i8* nocapture writeonly %0, i32 %1, i32 %2, i32 %3) {
%5 = and i32 %1, 65280
%6 = mul nuw nsw i32 %5, 14
%7 = and i32 %2, 65280
%8 = add nuw nsw i32 %6, %7
%9 = and i32 %3, 65280
%10 = add nuw nsw i32 %8, %9
%11 = and i32 %10, 1044480
%12 = and i32 %1, 16711935
%13 = mul nuw nsw i32 %12, 14
%14 = and i32 %2, 16711935
%15 = add nuw nsw i32 %13, %14
%16 = and i32 %3, 16711935
%17 = add nuw nsw i32 %15, %16
%18 = and i32 %17, 267390960
%19 = or i32 %11, %18
%20 = lshr exact i32 %19, 4
%21 = bitcast i8* %0 to i32*
store i32 %20, i32* %21
ret void
}
void _Unwind_VRS_Pop() {}


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

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

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

LLVM IR (-O2):
define void @_Unwind_VRS_Pop() {
ret void
}
/* Variables and functions */
int /*<<< orphan*/ playsound(int, int, int /*<<< orphan*/, int /*<<< orphan*/,
                             int /*<<< orphan*/);
void damage(void) { playsound(6, 32050, 0, 0, 0); }


x86 assembly (clang, -O0):
<damage>:
push   %rbp
mov    %rsp,%rbp
mov    $0x6,%edi
mov    $0x7d32,%esi
xor    %r8d,%r8d
mov    %r8d,%edx
mov    %r8d,%ecx
call   1030 <playsound@plt>
pop    %rbp
ret

x86 assembly (clang, -O2):
<damage>:
mov    $0x6,%edi
mov    $0x7d32,%esi
xor    %edx,%edx
xor    %ecx,%ecx
xor    %r8d,%r8d
jmp    1030 <playsound@plt>

LLVM IR (-O0):
define void @damage() {
%1 = call i32 @playsound(i32 6, i32 32050, i32 0, i32 0, i32 0)
ret void
}

LLVM IR (-O2):
define void @damage() {
%1 = tail call i32 @playsound(i32 6, i32 32050, i32 0, i32 0, i32 0)
ret void
}
/* Variables and functions */
float fast_logisticf(float);
float fast_tanhf(float x) {
  const float y = fast_logisticf(x + x);
  return y + y - 1.0;
}


x86 assembly (clang, -O0):
<fast_tanhf>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
movss  %xmm0,-0x4(%rbp)
movss  -0x4(%rbp),%xmm0
addss  -0x4(%rbp),%xmm0
call   1030 <fast_logisticf@plt>
movss  %xmm0,-0x8(%rbp)
movss  -0x8(%rbp),%xmm0
addss  -0x8(%rbp),%xmm0
cvtss2sd %xmm0,%xmm0
movsd  0xeb9(%rip),%xmm1
subsd  %xmm1,%xmm0
cvtsd2ss %xmm0,%xmm0
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<fast_tanhf>:
push   %rax
addss  %xmm0,%xmm0
call   1030 <fast_logisticf@plt>
addss  %xmm0,%xmm0
addss  0xeda(%rip),%xmm0
pop    %rax
ret

LLVM IR (-O0):
define float @fast_tanhf(float %0) {
%2 = alloca float
%3 = alloca float
store float %0, float* %2
%4 = load float, float* %2
%5 = load float, float* %2
%6 = fadd float %4, %5
%7 = call float @fast_logisticf(float %6)
store float %7, float* %3
%8 = load float, float* %3
%9 = load float, float* %3
%10 = fadd float %8, %9
%11 = fpext float %10 to double
%12 = fsub double %11, 1.000000e+00
%13 = fptrunc double %12 to float
ret float %13
}

LLVM IR (-O2):
define float @fast_tanhf(float %0) {
%2 = fadd float %0, %0
%3 = tail call float @fast_logisticf(float %2)
%4 = fadd float %3, %3
%5 = fadd float %4, -1.000000e+00
ret float %5
}
double dt_air_desert(double h_desert, double roh_air_desert,
                     double rah_desert) {
  double result;
  result = (h_desert * rah_desert) / (roh_air_desert * 1004);
  return result;
}


x86 assembly (clang, -O0):
<dt_air_desert>:
push   %rbp
mov    %rsp,%rbp
movsd  %xmm0,-0x8(%rbp)
movsd  %xmm1,-0x10(%rbp)
movsd  %xmm2,-0x18(%rbp)
movsd  -0x8(%rbp),%xmm0
mulsd  -0x18(%rbp),%xmm0
movsd  0xedb(%rip),%xmm1
mulsd  -0x10(%rbp),%xmm1
divsd  %xmm1,%xmm0
movsd  %xmm0,-0x20(%rbp)
movsd  -0x20(%rbp),%xmm0
pop    %rbp
ret

x86 assembly (clang, -O2):
<dt_air_desert>:
mulsd  %xmm2,%xmm0
mulsd  0xef4(%rip),%xmm1
divsd  %xmm1,%xmm0
ret

LLVM IR (-O0):
define double @dt_air_desert(double %0, double %1, double %2) {
%4 = alloca double
%5 = alloca double
%6 = alloca double
%7 = alloca double
store double %0, double* %4
store double %1, double* %5
store double %2, double* %6
%8 = load double, double* %4
%9 = load double, double* %6
%10 = fmul double %8, %9
%11 = load double, double* %5
%12 = fmul double %11, 1.004000e+03
%13 = fdiv double %10, %12
store double %13, double* %7
%14 = load double, double* %7
ret double %14
}

LLVM IR (-O2):
define double @dt_air_desert(double %0, double %1, double %2) {
%4 = fmul double %0, %2
%5 = fmul double %1, 1.004000e+03
%6 = fdiv double %4, %5
ret double %6
}
/* Variables and functions */
int assert(int);
int main() {
  assert(1 ? 2 : 3 ? 4 : 5 ? 6 : 7) == 7;
  return 0;
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
movl   $0x0,-0x4(%rbp)
mov    $0x2,%edi
call   1030 <assert@plt>
xor    %eax,%eax
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %rax
mov    $0x2,%edi
call   1030 <assert@plt>
xor    %eax,%eax
pop    %rcx
ret

LLVM IR (-O0):
define i32 @main() {
%1 = alloca i32
store i32 0, i32* %1
%2 = call i32 @assert(i32 2)
%3 = icmp eq i32 %2, 7
%4 = zext i1 %3 to i32
ret i32 0
}

LLVM IR (-O2):
define i32 @main() {
%1 = tail call i32 @assert(i32 2)
ret i32 0
}
/* Variables and functions */
unsigned int adc_read(unsigned int);
void adc_acc(unsigned int *ana_res, unsigned int ch_n) {
  unsigned int i;
  for (i = 0; i < 128; i++) {
    ana_res[i] = adc_read(ch_n);
  }
}


x86 assembly (clang, -O0):
<adc_acc>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
mov    %rdi,-0x8(%rbp)
mov    %esi,-0xc(%rbp)
movl   $0x0,-0x10(%rbp)
cmpl   $0x80,-0x10(%rbp)
jae    1155 <adc_acc+0x45>
mov    -0xc(%rbp),%edi
call   1030 <adc_read@plt>
mov    %eax,%edx
mov    -0x8(%rbp),%rax
mov    -0x10(%rbp),%ecx
mov    %edx,(%rax,%rcx,4)
mov    -0x10(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x10(%rbp)
jmp    1126 <adc_acc+0x16>
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<adc_acc>:
push   %rbp
push   %r14
push   %rbx
mov    %esi,%r14d
mov    %rdi,%rbx
xor    %ebp,%ebp
nopl   0x0(%rax)
mov    %r14d,%edi
call   1030 <adc_read@plt>
mov    %eax,(%rbx,%rbp,4)
add    $0x1,%rbp
cmp    $0x80,%rbp
jne    1120 <adc_acc+0x10>
pop    %rbx
pop    %r14
pop    %rbp
ret

LLVM IR (-O0):
define void @adc_acc(i32* %0, i32 %1) {
%3 = alloca i32*
%4 = alloca i32
%5 = alloca i32
store i32* %0, i32** %3
store i32 %1, i32* %4
store i32 0, i32* %5
br label %6
6: ; preds = %16, %2
%7 = load i32, i32* %5
%8 = icmp ult i32 %7, 128
br i1 %8, label %9, label %19
9: ; preds = %6
%10 = load i32, i32* %4
%11 = call i32 @adc_read(i32 %10)
%12 = load i32*, i32** %3
%13 = load i32, i32* %5
%14 = zext i32 %13 to i64
%15 = getelementptr inbounds i32, i32* %12, i64 %14
store i32 %11, i32* %15
br label %16
16: ; preds = %9
%17 = load i32, i32* %5
%18 = add i32 %17, 1
store i32 %18, i32* %5
br label %6
19: ; preds = %6
ret void
}

LLVM IR (-O2):
define void @adc_acc(i32* nocapture writeonly %0, i32 %1) {
br label %3
3: ; preds = %2, %3
%4 = phi i64 [ 0, %2 ], [ %7, %3 ]
%5 = tail call i32 @adc_read(i32 %1)
%6 = getelementptr inbounds i32, i32* %0, i64 %4
store i32 %5, i32* %6
%7 = add nuw nsw i64 %4, 1
%8 = icmp eq i64 %7, 128
br i1 %8, label %9, label %3
9: ; preds = %3
ret void
}
/* Variables and functions */
int f167(int *);
int f168(int *p) { return f167(p); }


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

x86 assembly (clang, -O2):
<f168>:
jmp    1030 <f167@plt>

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

LLVM IR (-O2):
define i32 @f168(i32* %0) {
%2 = tail call i32 @f167(i32* %0)
ret i32 %2
}
void set_led_4(int mode) {
  if (mode == 0) {
    (*(volatile unsigned int *)(0x7F008824)) &= ~8;
  } else {
    (*(volatile unsigned int *)(0x7F008824)) |= 8;
  }
  return;
}


x86 assembly (clang, -O0):
<set_led_4>:
push   %rbp
mov    %rsp,%rbp
mov    %edi,-0x4(%rbp)
cmpl   $0x0,-0x4(%rbp)
jne    1127 <set_led_4+0x27>
mov    $0x7f008824,%eax
mov    (%rax),%ecx
and    $0xfffffff7,%ecx
mov    $0x7f008824,%eax
mov    %ecx,(%rax)
jmp    1138 <set_led_4+0x38>
mov    $0x7f008824,%eax
mov    (%rax),%ecx
or     $0x8,%ecx
mov    $0x7f008824,%eax
mov    %ecx,(%rax)
pop    %rbp
ret

x86 assembly (clang, -O2):
<set_led_4>:
xor    %eax,%eax
test   %edi,%edi
setne  %al
mov    0x7f008824,%ecx
and    $0xfffffff7,%ecx
lea    (%rcx,%rax,8),%eax
mov    %eax,0x7f008824
ret

LLVM IR (-O0):
define void @set_led_4(i32 %0) {
%2 = alloca i32
store i32 %0, i32* %2
%3 = load i32, i32* %2
%4 = icmp eq i32 %3, 0
br i1 %4, label %5, label %8
5: ; preds = %1
%6 = load volatile i32, i32* inttoptr (i64 2130741284 to i32*)
%7 = and i32 %6, -9
store volatile i32 %7, i32* inttoptr (i64 2130741284 to i32*)
br label %11
8: ; preds = %1
%9 = load volatile i32, i32* inttoptr (i64 2130741284 to i32*)
%10 = or i32 %9, 8
store volatile i32 %10, i32* inttoptr (i64 2130741284 to i32*)
br label %11
11: ; preds = %8, %5
ret void
}

LLVM IR (-O2):
define void @set_led_4(i32 %0) {
%2 = icmp eq i32 %0, 0
%3 = load volatile i32, i32* inttoptr (i64 2130741284 to i32*)
%4 = and i32 %3, -9
%5 = select i1 %2, i32 0, i32 8
%6 = or i32 %4, %5
store volatile i32 %6, i32* inttoptr (i64 2130741284 to i32*)
ret void
}
/* Variables and functions */
int log(int /*<<< orphan*/);
int /*<<< orphan*/ rand_double();
double rand_double_exponential(double lambda) {
  return (-1. / lambda) * log(rand_double());
}


x86 assembly (clang, -O0):
<rand_double_exponential>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
movsd  %xmm0,-0x8(%rbp)
movsd  0xecb(%rip),%xmm0
divsd  -0x8(%rbp),%xmm0
movsd  %xmm0,-0x10(%rbp)
mov    $0x0,%al
call   1030 <rand_double@plt>
mov    %eax,%edi
call   1040 <log@plt>
movsd  -0x10(%rbp),%xmm0
cvtsi2sd %eax,%xmm1
mulsd  %xmm1,%xmm0
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<rand_double_exponential>:
push   %rax
movsd  0xed7(%rip),%xmm1
divsd  %xmm0,%xmm1
movsd  %xmm1,(%rsp)
xor    %eax,%eax
call   1030 <rand_double@plt>
mov    %eax,%edi
call   1040 <log@plt>
xorps  %xmm0,%xmm0
cvtsi2sd %eax,%xmm0
mulsd  (%rsp),%xmm0
pop    %rax
ret

LLVM IR (-O0):
define double @rand_double_exponential(double %0) {
%2 = alloca double
store double %0, double* %2
%3 = load double, double* %2
%4 = fdiv double -1.000000e+00, %3
%5 = call i32 (...) @rand_double()
%6 = call i32 @log(i32 %5)
%7 = sitofp i32 %6 to double
%8 = fmul double %4, %7
ret double %8
}

LLVM IR (-O2):
define double @rand_double_exponential(double %0) {
%2 = fdiv double -1.000000e+00, %0
%3 = tail call i32 (...) @rand_double()
%4 = tail call i32 @log(i32 %3)
%5 = sitofp i32 %4 to double
%6 = fmul double %2, %5
ret double %6
}
/* Type definitions */
typedef int clock_t;

/* Variables and functions */
int clock();
int test(void) {
  clock_t clock_ticks;
  clock_ticks = clock();
  return (clock_ticks != -1);
}


x86 assembly (clang, -O0):
<test>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
mov    $0x0,%al
call   1030 <clock@plt>
mov    %eax,-0x4(%rbp)
cmpl   $0xffffffff,-0x4(%rbp)
setne  %al
and    $0x1,%al
movzbl %al,%eax
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<test>:
push   %rax
xor    %eax,%eax
call   1030 <clock@plt>
xor    %ecx,%ecx
cmp    $0xffffffff,%eax
setne  %cl
mov    %ecx,%eax
pop    %rcx
ret

LLVM IR (-O0):
define i32 @test() {
%1 = alloca i32
%2 = call i32 (...) @clock()
store i32 %2, i32* %1
%3 = load i32, i32* %1
%4 = icmp ne i32 %3, -1
%5 = zext i1 %4 to i32
ret i32 %5
}

LLVM IR (-O2):
define i32 @test() {
%1 = tail call i32 (...) @clock()
%2 = icmp ne i32 %1, -1
%3 = zext i1 %2 to i32
ret i32 %3
}
/* Variables and functions */
int /*<<< orphan*/ printf(char *);
int pa_state_path() {
  printf("NOT IMPLEMENTED:"
         "pa_state_path"
         "\n");
}


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

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

LLVM IR (-O2):
@str = [30 x i8] c"NOT IMPLEMENTED:pa_state_path\00"
define i32 @pa_state_path() {
%1 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([30 x i8], [30 x i8]* @str, i64 0, i64 0))
ret i32 undef
}
int do_464() { return 464; }


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

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

LLVM IR (-O0):
define i32 @do_464() {
ret i32 464
}

LLVM IR (-O2):
define i32 @do_464() {
ret i32 464
}
/* Variables and functions */
int /*<<< orphan*/ ENOSYS;
int /*<<< orphan*/ __set_errno(int /*<<< orphan*/);
int raise(int sig) {
  __set_errno(ENOSYS);
  return -1;
}


x86 assembly (clang, -O0):
<raise>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
mov    %edi,-0x4(%rbp)
mov    0x2ec6(%rip),%rax
mov    (%rax),%edi
call   1030 <__set_errno@plt>
mov    $0xffffffff,%eax
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<raise>:
push   %rax
mov    0x2ed0(%rip),%rax
mov    (%rax),%edi
call   1030 <__set_errno@plt>
mov    $0xffffffff,%eax
pop    %rcx
ret

LLVM IR (-O0):
@ENOSYS = global i32 0
define i32 @raise(i32 %0) {
%2 = alloca i32
store i32 %0, i32* %2
%3 = load i32, i32* @ENOSYS
%4 = call i32 @__set_errno(i32 %3)
ret i32 -1
}

LLVM IR (-O2):
@ENOSYS = global i32 0
define i32 @raise(i32 %0) {
%2 = load i32, i32* @ENOSYS
%3 = tail call i32 @__set_errno(i32 %2)
ret i32 -1
}
void cmovf(a, b) register short *a, *b;
{
  int i;
  i = 8;
  do
    *b++ = *a++;
  while (--i);
}


x86 assembly (clang, -O0):
<cmovf>:
push   %rbp
mov    %rsp,%rbp
mov    %rdi,-0x8(%rbp)
mov    %rsi,-0x10(%rbp)
movl   $0x8,-0x14(%rbp)
mov    -0x8(%rbp),%rax
mov    %rax,%rcx
add    $0x2,%rcx
mov    %rcx,-0x8(%rbp)
mov    (%rax),%cx
mov    -0x10(%rbp),%rax
mov    %rax,%rdx
add    $0x2,%rdx
mov    %rdx,-0x10(%rbp)
mov    %cx,(%rax)
mov    -0x14(%rbp),%eax
add    $0xffffffff,%eax
mov    %eax,-0x14(%rbp)
cmp    $0x0,%eax
jne    1113 <cmovf+0x13>
pop    %rbp
ret

x86 assembly (clang, -O2):
<cmovf>:
movzwl (%rdi),%eax
mov    %ax,(%rsi)
movzwl 0x2(%rdi),%eax
mov    %ax,0x2(%rsi)
movzwl 0x4(%rdi),%eax
mov    %ax,0x4(%rsi)
movzwl 0x6(%rdi),%eax
mov    %ax,0x6(%rsi)
movzwl 0x8(%rdi),%eax
mov    %ax,0x8(%rsi)
movzwl 0xa(%rdi),%eax
mov    %ax,0xa(%rsi)
movzwl 0xc(%rdi),%eax
mov    %ax,0xc(%rsi)
movzwl 0xe(%rdi),%eax
mov    %ax,0xe(%rsi)
ret

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

LLVM IR (-O2):
define void @cmovf(i16* nocapture %0, i16* nocapture writeonly %1) {
%3 = getelementptr inbounds i16, i16* %0, i64 1
%4 = load i16, i16* %0
%5 = getelementptr inbounds i16, i16* %1, i64 1
store i16 %4, i16* %1
%6 = getelementptr inbounds i16, i16* %0, i64 2
%7 = load i16, i16* %3
%8 = getelementptr inbounds i16, i16* %1, i64 2
store i16 %7, i16* %5
%9 = getelementptr inbounds i16, i16* %0, i64 3
%10 = load i16, i16* %6
%11 = getelementptr inbounds i16, i16* %1, i64 3
store i16 %10, i16* %8
%12 = getelementptr inbounds i16, i16* %0, i64 4
%13 = load i16, i16* %9
%14 = getelementptr inbounds i16, i16* %1, i64 4
store i16 %13, i16* %11
%15 = getelementptr inbounds i16, i16* %0, i64 5
%16 = load i16, i16* %12
%17 = getelementptr inbounds i16, i16* %1, i64 5
store i16 %16, i16* %14
%18 = getelementptr inbounds i16, i16* %0, i64 6
%19 = load i16, i16* %15
%20 = getelementptr inbounds i16, i16* %1, i64 6
store i16 %19, i16* %17
%21 = getelementptr inbounds i16, i16* %0, i64 7
%22 = load i16, i16* %18
%23 = getelementptr inbounds i16, i16* %1, i64 7
store i16 %22, i16* %20
%24 = load i16, i16* %21
store i16 %24, i16* %23
ret void
}
int increment(int orinNub) { return orinNub + 1; }


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

x86 assembly (clang, -O2):
<increment>:
lea    0x1(%rdi),%eax
ret

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

LLVM IR (-O2):
define i32 @increment(i32 %0) {
%2 = add nsw i32 %0, 1
ret i32 %2
}
long _association() {
  long EV_a;
  EV_a = 10;
  EV_a = (EV_a * 2);
  EV_a = (EV_a / 2);
  EV_a = (3 * EV_a);
  EV_a = (EV_a / 3);
  EV_a = (EV_a * 4);
  EV_a = (EV_a / 4);
  EV_a = (EV_a + 4);
  EV_a = (EV_a - 4);
  EV_a = (EV_a * 50);
  EV_a = (EV_a / 50);
  return EV_a;
}


x86 assembly (clang, -O0):
<_association>:
push   %rbp
mov    %rsp,%rbp
movq   $0xa,-0x8(%rbp)
mov    -0x8(%rbp),%rax
shl    $0x1,%rax
mov    %rax,-0x8(%rbp)
mov    -0x8(%rbp),%rax
mov    $0x2,%ecx
cqto
idiv   %rcx
mov    %rax,-0x8(%rbp)
imul   $0x3,-0x8(%rbp),%rax
mov    %rax,-0x8(%rbp)
mov    -0x8(%rbp),%rax
mov    $0x3,%ecx
cqto
idiv   %rcx
mov    %rax,-0x8(%rbp)
mov    -0x8(%rbp),%rax
shl    $0x2,%rax
mov    %rax,-0x8(%rbp)
mov    -0x8(%rbp),%rax
mov    $0x4,%ecx
cqto
idiv   %rcx
mov    %rax,-0x8(%rbp)
mov    -0x8(%rbp),%rax
add    $0x4,%rax
mov    %rax,-0x8(%rbp)
mov    -0x8(%rbp),%rax
sub    $0x4,%rax
mov    %rax,-0x8(%rbp)
imul   $0x32,-0x8(%rbp),%rax
mov    %rax,-0x8(%rbp)
mov    -0x8(%rbp),%rax
mov    $0x32,%ecx
cqto
idiv   %rcx
mov    %rax,-0x8(%rbp)
mov    -0x8(%rbp),%rax
pop    %rbp
ret

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

LLVM IR (-O0):
define i64 @_association() {
%1 = alloca i64
store i64 10, i64* %1
%2 = load i64, i64* %1
%3 = mul nsw i64 %2, 2
store i64 %3, i64* %1
%4 = load i64, i64* %1
%5 = sdiv i64 %4, 2
store i64 %5, i64* %1
%6 = load i64, i64* %1
%7 = mul nsw i64 3, %6
store i64 %7, i64* %1
%8 = load i64, i64* %1
%9 = sdiv i64 %8, 3
store i64 %9, i64* %1
%10 = load i64, i64* %1
%11 = mul nsw i64 %10, 4
store i64 %11, i64* %1
%12 = load i64, i64* %1
%13 = sdiv i64 %12, 4
store i64 %13, i64* %1
%14 = load i64, i64* %1
%15 = add nsw i64 %14, 4
store i64 %15, i64* %1
%16 = load i64, i64* %1
%17 = sub nsw i64 %16, 4
store i64 %17, i64* %1
%18 = load i64, i64* %1
%19 = mul nsw i64 %18, 50
store i64 %19, i64* %1
%20 = load i64, i64* %1
%21 = sdiv i64 %20, 50
store i64 %21, i64* %1
%22 = load i64, i64* %1
ret i64 %22
}

LLVM IR (-O2):
define i64 @_association() {
ret i64 10
}
/* Variables and functions */
int /*<<< orphan*/ japi_translate(int, int, int);
void j_translate(int arg0, int arg1, int arg2) {
  japi_translate(arg0, arg1, arg2);
}


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

x86 assembly (clang, -O2):
<j_translate>:
jmp    1030 <japi_translate@plt>

LLVM IR (-O0):
define void @j_translate(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 @japi_translate(i32 %7, i32 %8, i32 %9)
ret void
}

LLVM IR (-O2):
define void @j_translate(i32 %0, i32 %1, i32 %2) {
%4 = tail call i32 @japi_translate(i32 %0, i32 %1, i32 %2)
ret void
}
int test_imm_F6int64_lowword_mem(long long *val) {
  return ((*val) & (0xF6 << 0)) ? -20 : -40;
}


x86 assembly (clang, -O0):
<test_imm_F6int64_lowword_mem>:
push   %rbp
mov    %rsp,%rbp
mov    %rdi,-0x8(%rbp)
mov    -0x8(%rbp),%rax
mov    (%rax),%rdx
and    $0xf6,%rdx
mov    $0xffffffd8,%eax
mov    $0xffffffec,%ecx
cmp    $0x0,%rdx
cmovne %ecx,%eax
pop    %rbp
ret

x86 assembly (clang, -O2):
<test_imm_F6int64_lowword_mem>:
testb  $0xf6,(%rdi)
mov    $0xffffffd8,%ecx
mov    $0xffffffec,%eax
cmove  %ecx,%eax
ret

LLVM IR (-O0):
define i32 @test_imm_F6int64_lowword_mem(i64* %0) {
%2 = alloca i64*
store i64* %0, i64** %2
%3 = load i64*, i64** %2
%4 = load i64, i64* %3
%5 = and i64 %4, 246
%6 = icmp ne i64 %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_F6int64_lowword_mem(i64* nocapture %0) {
%2 = load i64, i64* %0
%3 = and i64 %2, 246
%4 = icmp eq i64 %3, 0
%5 = select i1 %4, i32 -40, i32 -20
ret i32 %5
}
/* Variables and functions */
int memcmp(void const *, void const *, size_t const);
int buf_cmp(const void *b1, const void *b2, const size_t size) {
  return memcmp(b1, b2, size);
}


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

x86 assembly (clang, -O2):
<buf_cmp>:
jmp    1030 <memcmp@plt>

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

LLVM IR (-O2):
define i32 @buf_cmp(i8* nocapture %0, i8* nocapture %1, i64 %2) {
%4 = tail call i32 @memcmp(i8* %0, i8* %1, i64 %2)
ret i32 %4
}
/* Variables and functions */
void *_memory_allocate(size_t);
int /*<<< orphan*/ memset(void *, int /*<<< orphan*/, size_t);
void *rpcalloc(size_t num, size_t size) {
  size_t total;
  total = num * size;
  void *block = _memory_allocate(total);
  memset(block, 0, total);
  return block;
}


x86 assembly (clang, -O0):
<rpcalloc>:
push   %rbp
mov    %rsp,%rbp
sub    $0x20,%rsp
mov    %rdi,-0x8(%rbp)
mov    %rsi,-0x10(%rbp)
mov    -0x8(%rbp),%rax
imul   -0x10(%rbp),%rax
mov    %rax,-0x18(%rbp)
mov    -0x18(%rbp),%rdi
call   1040 <_memory_allocate@plt>
mov    %rax,-0x20(%rbp)
mov    -0x20(%rbp),%rdi
mov    -0x18(%rbp),%rdx
xor    %esi,%esi
call   1030 <memset@plt>
mov    -0x20(%rbp),%rax
add    $0x20,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<rpcalloc>:
push   %r14
push   %rbx
push   %rax
mov    %rdi,%rbx
imul   %rsi,%rbx
mov    %rbx,%rdi
call   1040 <_memory_allocate@plt>
mov    %rax,%r14
mov    %rax,%rdi
xor    %esi,%esi
mov    %rbx,%rdx
call   1030 <memset@plt>
mov    %r14,%rax
add    $0x8,%rsp
pop    %rbx
pop    %r14
ret

LLVM IR (-O0):
define i8* @rpcalloc(i64 %0, i64 %1) {
%3 = alloca i64
%4 = alloca i64
%5 = alloca i64
%6 = alloca i8*
store i64 %0, i64* %3
store i64 %1, i64* %4
%7 = load i64, i64* %3
%8 = load i64, i64* %4
%9 = mul i64 %7, %8
store i64 %9, i64* %5
%10 = load i64, i64* %5
%11 = call i8* @_memory_allocate(i64 %10)
store i8* %11, i8** %6
%12 = load i8*, i8** %6
%13 = load i64, i64* %5
%14 = call i32 @memset(i8* %12, i32 0, i64 %13)
%15 = load i8*, i8** %6
ret i8* %15
}

LLVM IR (-O2):
define i8* @rpcalloc(i64 %0, i64 %1) {
%3 = mul i64 %1, %0
%4 = tail call i8* @_memory_allocate(i64 %3)
%5 = tail call i32 @memset(i8* %4, i32 0, i64 %3)
ret i8* %4
}
/* Variables and functions */
int /*<<< orphan*/ exp(double);
double pow(int /*<<< orphan*/, int);
double sigma2var(double sigma) { return pow(exp(sigma), 2) + 0.001; }


x86 assembly (clang, -O0):
<sigma2var>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
movsd  %xmm0,-0x8(%rbp)
movsd  -0x8(%rbp),%xmm0
call   1030 <exp@plt>
mov    %eax,%edi
mov    $0x2,%esi
call   1040 <pow@plt>
movsd  0xeb5(%rip),%xmm1
addsd  %xmm1,%xmm0
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<sigma2var>:
push   %rax
call   1030 <exp@plt>
mov    %eax,%edi
mov    $0x2,%esi
call   1040 <pow@plt>
addsd  0xec6(%rip),%xmm0
pop    %rax
ret

LLVM IR (-O0):
define double @sigma2var(double %0) {
%2 = alloca double
store double %0, double* %2
%3 = load double, double* %2
%4 = call i32 @exp(double %3)
%5 = call double @pow(i32 %4, i32 2)
%6 = fadd double %5, 1.000000e-03
ret double %6
}

LLVM IR (-O2):
define double @sigma2var(double %0) {
%2 = tail call i32 @exp(double %0)
%3 = tail call double @pow(i32 %2, i32 2)
%4 = fadd double %3, 1.000000e-03
ret double %4
}
/* Variables and functions */
int /*<<< orphan*/ dxl_write_byte(unsigned char, int, unsigned char);
void setBaudRate(unsigned char id, unsigned char rate) {
  dxl_write_byte(id, (4), rate);
}


x86 assembly (clang, -O0):
<setBaudRate>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
mov    %sil,%al
mov    %dil,%cl
mov    %cl,-0x1(%rbp)
mov    %al,-0x2(%rbp)
mov    -0x1(%rbp),%al
mov    $0x4,%esi
movzbl %al,%edi
movzbl -0x2(%rbp),%edx
call   1030 <dxl_write_byte@plt>
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<setBaudRate>:
mov    %esi,%edx
mov    $0x4,%esi
jmp    1030 <dxl_write_byte@plt>

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

LLVM IR (-O2):
define void @setBaudRate(i8 zeroext %0, i8 zeroext %1) {
%3 = tail call i32 @dxl_write_byte(i8 zeroext %0, i32 4, i8 zeroext %1)
ret void
}
/* Type definitions */
typedef int /*<<< orphan*/ int64_t;

/* Variables and functions */
float sqrtf(int /*<<< orphan*/);
int /*<<< orphan*/ stdlib_strided_snanvariancepn(int /*<<< orphan*/ const,
                                                 float const, float const *,
                                                 int /*<<< orphan*/ const);
float stdlib_strided_snanstdevpn(const int64_t N, const float correction,
                                 const float *X, const int64_t stride) {
  return sqrtf(stdlib_strided_snanvariancepn(N, correction, X, stride));
}


x86 assembly (clang, -O0):
<stdlib_strided_snanstdevpn>:
push   %rbp
mov    %rsp,%rbp
sub    $0x20,%rsp
mov    %edi,-0x4(%rbp)
movss  %xmm0,-0x8(%rbp)
mov    %rsi,-0x10(%rbp)
mov    %edx,-0x14(%rbp)
mov    -0x4(%rbp),%edi
movss  -0x8(%rbp),%xmm0
mov    -0x10(%rbp),%rsi
mov    -0x14(%rbp),%edx
call   1030 <stdlib_strided_snanvariancepn@plt>
mov    %eax,%edi
call   1040 <sqrtf@plt>
add    $0x20,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<stdlib_strided_snanstdevpn>:
push   %rax
call   1030 <stdlib_strided_snanvariancepn@plt>
mov    %eax,%edi
pop    %rax
jmp    1040 <sqrtf@plt>

LLVM IR (-O0):
define float @stdlib_strided_snanstdevpn(i32 %0, float %1, float* %2, i32 %3) {
%5 = alloca i32
%6 = alloca float
%7 = alloca float*
%8 = alloca i32
store i32 %0, i32* %5
store float %1, float* %6
store float* %2, float** %7
store i32 %3, i32* %8
%9 = load i32, i32* %5
%10 = load float, float* %6
%11 = load float*, float** %7
%12 = load i32, i32* %8
%13 = call i32 @stdlib_strided_snanvariancepn(i32 %9, float %10, float* %11, i32 %12)
%14 = call float @sqrtf(i32 %13)
ret float %14
}

LLVM IR (-O2):
define float @stdlib_strided_snanstdevpn(i32 %0, float %1, float* %2, i32 %3) {
%5 = tail call i32 @stdlib_strided_snanvariancepn(i32 %0, float %1, float* %2, i32 %3)
%6 = tail call float @sqrtf(i32 %5)
ret float %6
}
/* Variables and functions */
int /*<<< orphan*/ F_H(int **);
void test_h() {
  int *X;
  F_H(&X);
  *X = 1;
}


x86 assembly (clang, -O0):
<test_h>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
lea    -0x8(%rbp),%rdi
call   1030 <F_H@plt>
mov    -0x8(%rbp),%rax
movl   $0x1,(%rax)
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<test_h>:
push   %rax
mov    %rsp,%rdi
call   1030 <F_H@plt>
mov    (%rsp),%rax
movl   $0x1,(%rax)
pop    %rax
ret

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

LLVM IR (-O2):
define void @test_h() {
%1 = alloca i32*
%2 = bitcast i32** %1 to i8*
%3 = call i32 @F_H(i32** %1)
%4 = load i32*, i32** %1
store i32 1, i32* %4
ret void
}
/* Variables and functions */
int /*<<< orphan*/ die(char *);
void *malloc(unsigned long);
int /*<<< orphan*/ memset(void *, int, unsigned long);
void *domalloc(unsigned long size, int elm) {
  void *ptr = malloc(size);
  if (!ptr) {
    die("malloc");
  }
  if (elm >= 0) {
    memset(ptr, elm, size);
  }
  return ptr;
}


x86 assembly (clang, -O0):
<domalloc>:
push   %rbp
mov    %rsp,%rbp
sub    $0x20,%rsp
mov    %rdi,-0x8(%rbp)
mov    %esi,-0xc(%rbp)
mov    -0x8(%rbp),%rdi
call   1040 <malloc@plt>
mov    %rax,-0x18(%rbp)
cmpq   $0x0,-0x18(%rbp)
jne    1163 <domalloc+0x33>
lea    0xea2(%rip),%rdi
call   1050 <die@plt>
cmpl   $0x0,-0xc(%rbp)
jl     117d <domalloc+0x4d>
mov    -0x18(%rbp),%rdi
mov    -0xc(%rbp),%esi
mov    -0x8(%rbp),%rdx
call   1030 <memset@plt>
mov    -0x18(%rbp),%rax
add    $0x20,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<domalloc>:
push   %rbp
push   %r14
push   %rbx
mov    %esi,%ebp
mov    %rdi,%r14
call   1040 <malloc@plt>
mov    %rax,%rbx
test   %rax,%rax
je     115f <domalloc+0x2f>
test   %ebp,%ebp
js     1157 <domalloc+0x27>
mov    %rbx,%rdi
mov    %ebp,%esi
mov    %r14,%rdx
call   1030 <memset@plt>
mov    %rbx,%rax
pop    %rbx
pop    %r14
pop    %rbp
ret
lea    0xe9a(%rip),%rdi
call   1050 <die@plt>
test   %ebp,%ebp
jns    114a <domalloc+0x1a>
jmp    1157 <domalloc+0x27>

LLVM IR (-O0):
@.str = [7 x i8] c"malloc\00"
define i8* @domalloc(i64 %0, i32 %1) {
%3 = alloca i64
%4 = alloca i32
%5 = alloca i8*
store i64 %0, i64* %3
store i32 %1, i32* %4
%6 = load i64, i64* %3
%7 = call i8* @malloc(i64 %6)
store i8* %7, i8** %5
%8 = load i8*, i8** %5
%9 = icmp ne i8* %8, null
br i1 %9, label %12, label %10
10: ; preds = %2
%11 = call i32 @die(i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str, i64 0, i64 0))
br label %12
12: ; preds = %10, %2
%13 = load i32, i32* %4
%14 = icmp sge i32 %13, 0
br i1 %14, label %15, label %20
15: ; preds = %12
%16 = load i8*, i8** %5
%17 = load i32, i32* %4
%18 = load i64, i64* %3
%19 = call i32 @memset(i8* %16, i32 %17, i64 %18)
br label %20
20: ; preds = %15, %12
%21 = load i8*, i8** %5
ret i8* %21
}

LLVM IR (-O2):
@.str = [7 x i8] c"malloc\00"
define i8* @domalloc(i64 %0, i32 %1) {
%3 = tail call i8* @malloc(i64 %0)
%4 = icmp eq i8* %3, null
br i1 %4, label %5, label %7
5: ; preds = %2
%6 = tail call i32 @die(i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str, i64 0, i64 0))
br label %7
7: ; preds = %5, %2
%8 = icmp sgt i32 %1, -1
br i1 %8, label %9, label %11
9: ; preds = %7
%10 = tail call i32 @memset(i8* %3, i32 %1, i64 %0)
br label %11
11: ; preds = %9, %7
ret i8* %3
}