xunge/DecIR huggingface dataset:
/* Variables and functions */
int /*<<< orphan*/ fprintf(int /*<<< orphan*/, char *, int);
int /*<<< orphan*/ stderr;
int /*<<< orphan*/ yyCommit();
int /*<<< orphan*/ yyDone();
int yyAccept(int tp0) {
  if (tp0) {
    fprintf(stderr, "accept denied at %d\n", tp0);
    return 0;
  } else {
    yyDone();
    yyCommit();
  }
  return 1;
}


x86 assembly (clang, -O0):
<yyAccept>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
mov    %edi,-0x8(%rbp)
cmpl   $0x0,-0x8(%rbp)
je     1169 <yyAccept+0x39>
mov    0x2e94(%rip),%rax
mov    (%rax),%edi
mov    -0x8(%rbp),%edx
lea    0xea8(%rip),%rsi
call   1040 <fprintf@plt>
movl   $0x0,-0x4(%rbp)
jmp    117e <yyAccept+0x4e>
mov    $0x0,%al
call   1030 <yyDone@plt>
mov    $0x0,%al
call   1050 <yyCommit@plt>
movl   $0x1,-0x4(%rbp)
mov    -0x4(%rbp),%eax
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<yyAccept>:
push   %rax
test   %edi,%edi
je     1150 <yyAccept+0x20>
mov    %edi,%edx
mov    0x2ea2(%rip),%rax
mov    (%rax),%edi
lea    0xeb9(%rip),%rsi
call   1040 <fprintf@plt>
xor    %eax,%eax
pop    %rcx
ret
xor    %eax,%eax
call   1030 <yyDone@plt>
xor    %eax,%eax
call   1050 <yyCommit@plt>
mov    $0x1,%eax
pop    %rcx
ret

LLVM IR (-O0):
@stderr = global i32 0
@.str = [21 x i8] c"accept denied at %d\0A\00"
define i32 @yyAccept(i32 %0) {
%2 = alloca i32
%3 = alloca i32
store i32 %0, i32* %3
%4 = load i32, i32* %3
%5 = icmp ne i32 %4, 0
br i1 %5, label %6, label %10
6: ; preds = %1
%7 = load i32, i32* @stderr
%8 = load i32, i32* %3
%9 = call i32 @fprintf(i32 %7, i8* getelementptr inbounds ([21 x i8], [21 x i8]* @.str, i64 0, i64 0), i32 %8)
store i32 0, i32* %2
br label %14
10: ; preds = %1
%11 = call i32 (...) @yyDone()
%12 = call i32 (...) @yyCommit()
br label %13
13: ; preds = %10
store i32 1, i32* %2
br label %14
14: ; preds = %13, %6
%15 = load i32, i32* %2
ret i32 %15
}

LLVM IR (-O2):
@stderr = global i32 0
@.str = [21 x i8] c"accept denied at %d\0A\00"
define i32 @yyAccept(i32 %0) {
%2 = icmp eq i32 %0, 0
br i1 %2, label %6, label %3
3: ; preds = %1
%4 = load i32, i32* @stderr
%5 = tail call i32 @fprintf(i32 %4, i8* getelementptr inbounds ([21 x i8], [21 x i8]* @.str, i64 0, i64 0), i32 %0)
br label %9
6: ; preds = %1
%7 = tail call i32 (...) @yyDone()
%8 = tail call i32 (...) @yyCommit()
br label %9
9: ; preds = %6, %3
%10 = phi i32 [ 0, %3 ], [ 1, %6 ]
ret i32 %10
}
/* Variables and functions */
int is_big_endian_();
int is_big_endian__() { return is_big_endian_(); }


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

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

LLVM IR (-O0):
define i32 @is_big_endian__() {
%1 = call i32 (...) @is_big_endian_()
ret i32 %1
}

LLVM IR (-O2):
define i32 @is_big_endian__() {
%1 = tail call i32 (...) @is_big_endian_()
ret i32 %1
}
/* Variables and functions */
int /*<<< orphan*/ printf(char *);
int pa_channel_position_to_string() {
  printf("NOT IMPLEMENTED:"
         "pa_channel_position_to_string"
         "\n");
}


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

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

LLVM IR (-O2):
@str = [46 x i8] c"NOT IMPLEMENTED:pa_channel_position_to_string\00"
define i32 @pa_channel_position_to_string() {
%1 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([46 x i8], [46 x i8]* @str, i64 0, i64 0))
ret i32 undef
}
/* Variables and functions */
int /*<<< orphan*/ HandleInterrupt(int);
void INT_P5(void) { HandleInterrupt(5); }


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

x86 assembly (clang, -O2):
<INT_P5>:
mov    $0x5,%edi
jmp    1030 <HandleInterrupt@plt>

LLVM IR (-O0):
define void @INT_P5() {
%1 = call i32 @HandleInterrupt(i32 5)
ret void
}

LLVM IR (-O2):
define void @INT_P5() {
%1 = tail call i32 @HandleInterrupt(i32 5)
ret void
}
double GSL_MAX_DBL(double a, double b) { return ((a) > (b) ? (a) : (b)); }


x86 assembly (clang, -O0):
<GSL_MAX_DBL>:
push   %rbp
mov    %rsp,%rbp
movsd  %xmm0,-0x8(%rbp)
movsd  %xmm1,-0x10(%rbp)
movsd  -0x8(%rbp),%xmm0
ucomisd -0x10(%rbp),%xmm0
jbe    112d <GSL_MAX_DBL+0x2d>
movsd  -0x8(%rbp),%xmm0
movsd  %xmm0,-0x18(%rbp)
jmp    1137 <GSL_MAX_DBL+0x37>
movsd  -0x10(%rbp),%xmm0
movsd  %xmm0,-0x18(%rbp)
movsd  -0x18(%rbp),%xmm0
pop    %rbp
ret

x86 assembly (clang, -O2):
<GSL_MAX_DBL>:
maxsd  %xmm1,%xmm0
ret

LLVM IR (-O0):
define double @GSL_MAX_DBL(double %0, double %1) {
%3 = alloca double
%4 = alloca double
store double %0, double* %3
store double %1, double* %4
%5 = load double, double* %3
%6 = load double, double* %4
%7 = fcmp ogt double %5, %6
br i1 %7, label %8, label %10
8: ; preds = %2
%9 = load double, double* %3
br label %12
10: ; preds = %2
%11 = load double, double* %4
br label %12
12: ; preds = %10, %8
%13 = phi double [ %9, %8 ], [ %11, %10 ]
ret double %13
}

LLVM IR (-O2):
define double @GSL_MAX_DBL(double %0, double %1) {
%3 = fcmp ogt double %0, %1
%4 = select i1 %3, double %0, double %1
ret double %4
}
OP(fd, ea) {
  illegal_1();
  op_ea();
}


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

x86 assembly (clang, -O2):
<OP>:
push   %rax
xor    %eax,%eax
call   1030 <illegal_1@plt>
xor    %eax,%eax
pop    %rcx
jmp    1040 <op_ea@plt>

LLVM IR (-O0):
define i32 @OP(i32 %0, i32 %1) {
%3 = alloca i32
%4 = alloca i32
%5 = alloca i32
store i32 %0, i32* %4
store i32 %1, i32* %5
%6 = call i32 (...) @illegal_1()
%7 = call i32 (...) @op_ea()
%8 = load i32, i32* %3
ret i32 %8
}

LLVM IR (-O2):
define i32 @OP(i32 %0, i32 %1) {
%3 = tail call i32 (...) @illegal_1()
%4 = tail call i32 (...) @op_ea()
ret i32 undef
}
int c_entry() { return 0; }


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

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

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

LLVM IR (-O2):
define i32 @c_entry() {
ret i32 0
}
/* Variables and functions */
int /*<<< orphan*/ daxpy(int const *, double const *, double const *,
                         int const *, double *, int const *);
void c_daxpy(const int N, const double alpha, const double *X,
             const int strideX, double *Y, const int strideY) {
  daxpy(&N, &alpha, X, &strideX, Y, &strideY);
}


x86 assembly (clang, -O0):
<c_daxpy>:
push   %rbp
mov    %rsp,%rbp
sub    $0x30,%rsp
mov    %edi,-0x4(%rbp)
movsd  %xmm0,-0x10(%rbp)
mov    %rsi,-0x18(%rbp)
mov    %edx,-0x1c(%rbp)
mov    %rcx,-0x28(%rbp)
mov    %r8d,-0x2c(%rbp)
mov    -0x18(%rbp),%rdx
mov    -0x28(%rbp),%r8
lea    -0x4(%rbp),%rdi
lea    -0x10(%rbp),%rsi
lea    -0x1c(%rbp),%rcx
lea    -0x2c(%rbp),%r9
call   1030 <daxpy@plt>
add    $0x30,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<c_daxpy>:
sub    $0x18,%rsp
mov    %rcx,%r10
mov    %rsi,%rax
mov    %edi,0xc(%rsp)
movsd  %xmm0,0x10(%rsp)
mov    %edx,0x8(%rsp)
mov    %r8d,0x4(%rsp)
lea    0xc(%rsp),%rdi
lea    0x10(%rsp),%rsi
lea    0x8(%rsp),%rcx
lea    0x4(%rsp),%r9
mov    %rax,%rdx
mov    %r10,%r8
call   1030 <daxpy@plt>
add    $0x18,%rsp
ret

LLVM IR (-O0):
define void @c_daxpy(i32 %0, double %1, double* %2, i32 %3, double* %4, i32 %5) {
%7 = alloca i32
%8 = alloca double
%9 = alloca double*
%10 = alloca i32
%11 = alloca double*
%12 = alloca i32
store i32 %0, i32* %7
store double %1, double* %8
store double* %2, double** %9
store i32 %3, i32* %10
store double* %4, double** %11
store i32 %5, i32* %12
%13 = load double*, double** %9
%14 = load double*, double** %11
%15 = call i32 @daxpy(i32* %7, double* %8, double* %13, i32* %10, double* %14, i32* %12)
ret void
}

LLVM IR (-O2):
define void @c_daxpy(i32 %0, double %1, double* %2, i32 %3, double* %4, i32 %5) {
%7 = alloca i32
%8 = alloca double
%9 = alloca i32
%10 = alloca i32
store i32 %0, i32* %7
store double %1, double* %8
store i32 %3, i32* %9
store i32 %5, i32* %10
%11 = call i32 @daxpy(i32* %7, double* %8, double* %2, i32* %9, double* %4, i32* %10)
ret void
}
/* Type definitions */
typedef int /*<<< orphan*/ __u64;
typedef int /*<<< orphan*/ __le64;
typedef int /*<<< orphan*/ __le32;

/* Variables and functions */
int /*<<< orphan*/ __le64_to_cpu(int /*<<< orphan*/);
__u64 rhf_to_cpu(const __le32 *rbuf) {
  return __le64_to_cpu(*((__le64 *)rbuf));
}


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

x86 assembly (clang, -O2):
<rhf_to_cpu>:
mov    (%rdi),%edi
jmp    1030 <__le64_to_cpu@plt>

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

LLVM IR (-O2):
define i32 @rhf_to_cpu(i32* nocapture %0) {
%2 = load i32, i32* %0
%3 = tail call i32 @__le64_to_cpu(i32 %2)
ret i32 %3
}
void DoSearch(char *pName) {}


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

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

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

LLVM IR (-O2):
define void @DoSearch(i8* nocapture %0) {
ret void
}
void av_opt_set() {}


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

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

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

LLVM IR (-O2):
define void @av_opt_set() {
ret void
}
void _printIndex_txt(int i) {}


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

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

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

LLVM IR (-O2):
define void @_printIndex_txt(i32 %0) {
ret void
}
/* Type definitions */
typedef int /*<<< orphan*/ RSA;

/* Variables and functions */
int RSA_null_init(RSA *rsa) { return (1); }


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

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

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

LLVM IR (-O2):
define i32 @RSA_null_init(i32* nocapture readnone %0) {
ret i32 1
}
int test_imm_F3int16_mem(short *val) {
  return ((*val) & (-0xF3 << 0)) ? -20 : -40;
}


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

x86 assembly (clang, -O2):
<test_imm_F3int16_mem>:
movzwl (%rdi),%eax
test   $0xff0d,%eax
mov    $0xffffffd8,%ecx
mov    $0xffffffec,%eax
cmove  %ecx,%eax
ret

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

LLVM IR (-O2):
define i32 @test_imm_F3int16_mem(i16* nocapture %0) {
%2 = load i16, i16* %0
%3 = and i16 %2, -243
%4 = icmp eq i16 %3, 0
%5 = select i1 %4, i32 -40, i32 -20
ret i32 %5
}
unsigned mbs(unsigned long bytes, unsigned long useconds) {
  double mb = (double)bytes / 1048576.0;
  double sec = (double)useconds / 1000000.0;
  return (unsigned)(mb / sec + 0.5);
}


x86 assembly (clang, -O0):
<mbs>:
push   %rbp
mov    %rsp,%rbp
mov    %rdi,-0x8(%rbp)
mov    %rsi,-0x10(%rbp)
movq   -0x8(%rbp),%xmm0
movaps 0xee8(%rip),%xmm2
punpckldq %xmm2,%xmm0
movapd 0xeec(%rip),%xmm1
subpd  %xmm1,%xmm0
movaps %xmm0,%xmm3
unpckhpd %xmm0,%xmm0
addsd  %xmm3,%xmm0
movsd  0xee5(%rip),%xmm3
divsd  %xmm3,%xmm0
movsd  %xmm0,-0x18(%rbp)
movq   -0x10(%rbp),%xmm0
punpckldq %xmm2,%xmm0
subpd  %xmm1,%xmm0
movaps %xmm0,%xmm1
unpckhpd %xmm0,%xmm0
addsd  %xmm1,%xmm0
movsd  0xec4(%rip),%xmm1
divsd  %xmm1,%xmm0
movsd  %xmm0,-0x20(%rbp)
movsd  -0x18(%rbp),%xmm0
movsd  -0x20(%rbp),%xmm1
divsd  %xmm1,%xmm0
movsd  0xead(%rip),%xmm1
addsd  %xmm1,%xmm0
cvttsd2si %xmm0,%rax
pop    %rbp
ret

x86 assembly (clang, -O2):
<mbs>:
movq   %rdi,%xmm0
movdqa 0xef3(%rip),%xmm1
punpckldq %xmm1,%xmm0
movapd 0xef7(%rip),%xmm2
subpd  %xmm2,%xmm0
movapd %xmm0,%xmm3
unpckhpd %xmm0,%xmm3
addsd  %xmm0,%xmm3
mulsd  0xeef(%rip),%xmm3
movq   %rsi,%xmm0
punpckldq %xmm1,%xmm0
subpd  %xmm2,%xmm0
movapd %xmm0,%xmm1
unpckhpd %xmm0,%xmm1
addsd  %xmm0,%xmm1
divsd  0xed6(%rip),%xmm1
divsd  %xmm1,%xmm3
addsd  0xed2(%rip),%xmm3
cvttsd2si %xmm3,%rax
ret

LLVM IR (-O0):
define i32 @mbs(i64 %0, i64 %1) {
%3 = alloca i64
%4 = alloca i64
%5 = alloca double
%6 = alloca double
store i64 %0, i64* %3
store i64 %1, i64* %4
%7 = load i64, i64* %3
%8 = uitofp i64 %7 to double
%9 = fdiv double %8, 0x4130000000000000
store double %9, double* %5
%10 = load i64, i64* %4
%11 = uitofp i64 %10 to double
%12 = fdiv double %11, 1.000000e+06
store double %12, double* %6
%13 = load double, double* %5
%14 = load double, double* %6
%15 = fdiv double %13, %14
%16 = fadd double %15, 5.000000e-01
%17 = fptoui double %16 to i32
ret i32 %17
}

LLVM IR (-O2):
define i32 @mbs(i64 %0, i64 %1) {
%3 = uitofp i64 %0 to double
%4 = fmul double %3, 0x3EB0000000000000
%5 = uitofp i64 %1 to double
%6 = fdiv double %5, 1.000000e+06
%7 = fdiv double %4, %6
%8 = fadd double %7, 5.000000e-01
%9 = fptoui double %8 to i32
ret i32 %9
}
void SoundFeedStreamData(unsigned char *pSound, long lBytes) {}


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

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

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

LLVM IR (-O2):
define void @SoundFeedStreamData(i8* nocapture %0, i64 %1) {
ret void
}
/* Variables and functions */
float sinf(float);
float sincf(float x) {
  if (x == 0)
    return 0;
  return sinf(x) / x;
}


x86 assembly (clang, -O0):
<sincf>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
movss  %xmm0,-0x8(%rbp)
movss  -0x8(%rbp),%xmm0
xorps  %xmm1,%xmm1
ucomiss %xmm1,%xmm0
jne    1141 <sincf+0x31>
jp     1141 <sincf+0x31>
xorps  %xmm0,%xmm0
movss  %xmm0,-0x4(%rbp)
jmp    1155 <sincf+0x45>
movss  -0x8(%rbp),%xmm0
call   1030 <sinf@plt>
divss  -0x8(%rbp),%xmm0
movss  %xmm0,-0x4(%rbp)
movss  -0x4(%rbp),%xmm0
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<sincf>:
movaps %xmm0,%xmm1
xorps  %xmm0,%xmm0
ucomiss %xmm0,%xmm1
jne    111e <sincf+0xe>
jp     111e <sincf+0xe>
ret
push   %rax
movaps %xmm1,%xmm0
movss  %xmm1,0x4(%rsp)
call   1030 <sinf@plt>
divss  0x4(%rsp),%xmm0
add    $0x8,%rsp
ret

LLVM IR (-O0):
define float @sincf(float %0) {
%2 = alloca float
%3 = alloca float
store float %0, float* %3
%4 = load float, float* %3
%5 = fcmp oeq float %4, 0.000000e+00
br i1 %5, label %6, label %7
6: ; preds = %1
store float 0.000000e+00, float* %2
br label %12
7: ; preds = %1
%8 = load float, float* %3
%9 = call float @sinf(float %8)
%10 = load float, float* %3
%11 = fdiv float %9, %10
store float %11, float* %2
br label %12
12: ; preds = %7, %6
%13 = load float, float* %2
ret float %13
}

LLVM IR (-O2):
define float @sincf(float %0) {
%2 = fcmp oeq float %0, 0.000000e+00
br i1 %2, label %6, label %3
3: ; preds = %1
%4 = tail call float @sinf(float %0)
%5 = fdiv float %4, %0
br label %6
6: ; preds = %1, %3
%7 = phi float [ %5, %3 ], [ 0.000000e+00, %1 ]
ret float %7
}
void SPICRCDisble(unsigned long ulBase) {

  ;
  (*((volatile unsigned long *)(ulBase + 0x00000000))) &= ~0x00002000;
}


x86 assembly (clang, -O0):
<SPICRCDisble>:
push   %rbp
mov    %rsp,%rbp
mov    %rdi,-0x8(%rbp)
mov    -0x8(%rbp),%rax
mov    (%rax),%rcx
and    $0xffffffffffffdfff,%rcx
mov    %rcx,(%rax)
pop    %rbp
ret

x86 assembly (clang, -O2):
<SPICRCDisble>:
andq   $0xffffffffffffdfff,(%rdi)
ret

LLVM IR (-O0):
define void @SPICRCDisble(i64 %0) {
%2 = alloca i64
store i64 %0, i64* %2
%3 = load i64, i64* %2
%4 = add i64 %3, 0
%5 = inttoptr i64 %4 to i64*
%6 = load volatile i64, i64* %5
%7 = and i64 %6, -8193
store volatile i64 %7, i64* %5
ret void
}

LLVM IR (-O2):
define void @SPICRCDisble(i64 %0) {
%2 = inttoptr i64 %0 to i64*
%3 = load volatile i64, i64* %2
%4 = and i64 %3, -8193
store volatile i64 %4, i64* %2
ret void
}
unsigned xrop3_214_0_0(unsigned char s, unsigned char t) {
  unsigned D = 0x00ff;
  unsigned S = ((unsigned)s << 8) | s;
  unsigned T = ((unsigned)t << 8) | t;
  unsigned stk1;
  unsigned stk2;
  unsigned stk3;
  unsigned stk4;
  stk4 = T & S;
  stk3 = D | stk4;
  stk2 = S ^ stk3;
  stk1 = T ^ stk2;
  return stk1;
}


x86 assembly (clang, -O0):
<xrop3_214_0_0>:
push   %rbp
mov    %rsp,%rbp
mov    %sil,%al
mov    %dil,%cl
mov    %cl,-0x1(%rbp)
mov    %al,-0x2(%rbp)
movl   $0xff,-0x8(%rbp)
movzbl -0x1(%rbp),%eax
shl    $0x8,%eax
movzbl -0x1(%rbp),%ecx
or     %ecx,%eax
mov    %eax,-0xc(%rbp)
movzbl -0x2(%rbp),%eax
shl    $0x8,%eax
movzbl -0x2(%rbp),%ecx
or     %ecx,%eax
mov    %eax,-0x10(%rbp)
mov    -0x10(%rbp),%eax
and    -0xc(%rbp),%eax
mov    %eax,-0x20(%rbp)
mov    -0x8(%rbp),%eax
or     -0x20(%rbp),%eax
mov    %eax,-0x1c(%rbp)
mov    -0xc(%rbp),%eax
xor    -0x1c(%rbp),%eax
mov    %eax,-0x18(%rbp)
mov    -0x10(%rbp),%eax
xor    -0x18(%rbp),%eax
mov    %eax,-0x14(%rbp)
mov    -0x14(%rbp),%eax
pop    %rbp
ret

x86 assembly (clang, -O2):
<xrop3_214_0_0>:
mov    %edi,%ecx
shl    $0x8,%ecx
lea    (%rdi,%rcx,1),%edx
mov    %esi,%eax
shl    $0x8,%eax
add    %eax,%esi
xor    %edx,%esi
and    %ecx,%eax
or     $0xff,%eax
xor    %esi,%eax
ret

LLVM IR (-O0):
define i32 @xrop3_214_0_0(i8 zeroext %0, i8 zeroext %1) {
%3 = alloca i8
%4 = alloca i8
%5 = alloca i32
%6 = alloca i32
%7 = alloca i32
%8 = alloca i32
%9 = alloca i32
%10 = alloca i32
%11 = alloca i32
store i8 %0, i8* %3
store i8 %1, i8* %4
store i32 255, i32* %5
%12 = load i8, i8* %3
%13 = zext i8 %12 to i32
%14 = shl i32 %13, 8
%15 = load i8, i8* %3
%16 = zext i8 %15 to i32
%17 = or i32 %14, %16
store i32 %17, i32* %6
%18 = load i8, i8* %4
%19 = zext i8 %18 to i32
%20 = shl i32 %19, 8
%21 = load i8, i8* %4
%22 = zext i8 %21 to i32
%23 = or i32 %20, %22
store i32 %23, i32* %7
%24 = load i32, i32* %7
%25 = load i32, i32* %6
%26 = and i32 %24, %25
store i32 %26, i32* %11
%27 = load i32, i32* %5
%28 = load i32, i32* %11
%29 = or i32 %27, %28
store i32 %29, i32* %10
%30 = load i32, i32* %6
%31 = load i32, i32* %10
%32 = xor i32 %30, %31
store i32 %32, i32* %9
%33 = load i32, i32* %7
%34 = load i32, i32* %9
%35 = xor i32 %33, %34
store i32 %35, i32* %8
%36 = load i32, i32* %8
ret i32 %36
}

LLVM IR (-O2):
define i32 @xrop3_214_0_0(i8 zeroext %0, i8 zeroext %1) {
%3 = zext i8 %0 to i32
%4 = shl nuw nsw i32 %3, 8
%5 = or i32 %4, %3
%6 = zext i8 %1 to i32
%7 = shl nuw nsw i32 %6, 8
%8 = or i32 %7, %6
%9 = and i32 %7, %4
%10 = or i32 %9, 255
%11 = xor i32 %8, %5
%12 = xor i32 %11, %10
ret i32 %12
}
/* Type definitions */
typedef int /*<<< orphan*/ uint8_t;
typedef int uint32_t;

/* Variables and functions */
void store_byte(uint8_t *loc, uint32_t index, uint8_t byte) {
  *(loc + index) = byte;
}


x86 assembly (clang, -O0):
<store_byte>:
push   %rbp
mov    %rsp,%rbp
mov    %rdi,-0x8(%rbp)
mov    %esi,-0xc(%rbp)
mov    %edx,-0x10(%rbp)
mov    -0x10(%rbp),%edx
mov    -0x8(%rbp),%rax
movslq -0xc(%rbp),%rcx
mov    %edx,(%rax,%rcx,4)
pop    %rbp
ret

x86 assembly (clang, -O2):
<store_byte>:
movslq %esi,%rax
mov    %edx,(%rdi,%rax,4)
ret

LLVM IR (-O0):
define void @store_byte(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* %6
%8 = load i32*, i32** %4
%9 = load i32, i32* %5
%10 = sext i32 %9 to i64
%11 = getelementptr inbounds i32, i32* %8, i64 %10
store i32 %7, i32* %11
ret void
}

LLVM IR (-O2):
define void @store_byte(i32* nocapture writeonly %0, i32 %1, i32 %2) {
%4 = sext i32 %1 to i64
%5 = getelementptr inbounds i32, i32* %0, i64 %4
store i32 %2, i32* %5
ret void
}
/* Variables and functions */
int /*<<< orphan*/ printf(char *, char *);
void end(char *element) { printf("</%s>\n", element); }


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

x86 assembly (clang, -O2):
<end>:
mov    %rdi,%rsi
lea    0xee6(%rip),%rdi
jmp    1030 <printf@plt>

LLVM IR (-O0):
@.str = [7 x i8] c"</%s>\0A\00"
define void @end(i8* %0) {
%2 = alloca i8*
store i8* %0, i8** %2
%3 = load i8*, i8** %2
%4 = call i32 @printf(i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str, i64 0, i64 0), i8* %3)
ret void
}

LLVM IR (-O2):
@.str = [7 x i8] c"</%s>\0A\00"
define void @end(i8* %0) {
%2 = tail call i32 @printf(i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str, i64 0, i64 0), i8* %0)
ret void
}
void pathconN_nm7_incref(void) {}


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

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

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

LLVM IR (-O2):
define void @pathconN_nm7_incref() {
ret void
}
int run() { return -1; }


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

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

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

LLVM IR (-O2):
define i32 @run() {
ret i32 -1
}
/* Variables and functions */
double sqrt(double);
double calc_deviation(double avg, double sum_sq, int n) {
  return sqrt((sum_sq / n) - (avg * avg));
}


x86 assembly (clang, -O0):
<calc_deviation>:
push   %rbp
mov    %rsp,%rbp
sub    $0x20,%rsp
movsd  %xmm0,-0x8(%rbp)
movsd  %xmm1,-0x10(%rbp)
mov    %edi,-0x14(%rbp)
movsd  -0x10(%rbp),%xmm1
cvtsi2sdl -0x14(%rbp),%xmm0
divsd  %xmm0,%xmm1
movsd  -0x8(%rbp),%xmm0
movsd  -0x8(%rbp),%xmm2
movq   %xmm0,%rax
movabs $0x8000000000000000,%rcx
xor    %rcx,%rax
movq   %rax,%xmm0
mulsd  %xmm2,%xmm0
addsd  %xmm1,%xmm0
call   1030 <sqrt@plt>
add    $0x20,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<calc_deviation>:
cvtsi2sd %edi,%xmm2
divsd  %xmm2,%xmm1
mulsd  %xmm0,%xmm0
subsd  %xmm0,%xmm1
xorpd  %xmm0,%xmm0
ucomisd %xmm0,%xmm1
jb     1132 <calc_deviation+0x22>
xorps  %xmm0,%xmm0
sqrtsd %xmm1,%xmm0
ret
movapd %xmm1,%xmm0
jmp    1030 <sqrt@plt>

LLVM IR (-O0):
define double @calc_deviation(double %0, double %1, i32 %2) {
%4 = alloca double
%5 = alloca double
%6 = alloca i32
store double %0, double* %4
store double %1, double* %5
store i32 %2, i32* %6
%7 = load double, double* %5
%8 = load i32, i32* %6
%9 = sitofp i32 %8 to double
%10 = fdiv double %7, %9
%11 = load double, double* %4
%12 = load double, double* %4
%13 = fneg double %11
%14 = call double @llvm.fmuladd.f64(double %13, double %12, double %10)
%15 = call double @sqrt(double %14)
ret double %15
}

LLVM IR (-O2):
define double @calc_deviation(double %0, double %1, i32 %2) {
%4 = sitofp i32 %2 to double
%5 = fdiv double %1, %4
%6 = fneg double %0
%7 = tail call double @llvm.fmuladd.f64(double %6, double %0, double %5)
%8 = tail call double @sqrt(double %7)
ret double %8
}
/* Variables and functions */
long double __qatan2(long double, long double);
long double __q_atn2(long double *y, long double *x) {
  return (__qatan2(*y, *x));
}


x86 assembly (clang, -O0):
<__q_atn2>:
push   %rbp
mov    %rsp,%rbp
sub    $0x30,%rsp
mov    %rdi,-0x8(%rbp)
mov    %rsi,-0x10(%rbp)
mov    -0x8(%rbp),%rax
fldt   (%rax)
mov    -0x10(%rbp),%rax
fldt   (%rax)
mov    %rsp,%rax
fstpt  0x10(%rax)
fstpt  (%rax)
call   1030 <__qatan2@plt>
fld    %st(0)
fstp   %st(0)
add    $0x30,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<__q_atn2>:
sub    $0x28,%rsp
fldt   (%rdi)
fldt   (%rsi)
fstpt  0x10(%rsp)
fstpt  (%rsp)
call   1030 <__qatan2@plt>
add    $0x28,%rsp
ret

LLVM IR (-O0):
define x86_fp80 @__q_atn2(x86_fp80* %0, x86_fp80* %1) {
%3 = alloca x86_fp80*
%4 = alloca x86_fp80*
store x86_fp80* %0, x86_fp80** %3
store x86_fp80* %1, x86_fp80** %4
%5 = load x86_fp80*, x86_fp80** %3
%6 = load x86_fp80, x86_fp80* %5
%7 = load x86_fp80*, x86_fp80** %4
%8 = load x86_fp80, x86_fp80* %7
%9 = call x86_fp80 @__qatan2(x86_fp80 %6, x86_fp80 %8)
ret x86_fp80 %9
}

LLVM IR (-O2):
define x86_fp80 @__q_atn2(x86_fp80* nocapture %0, x86_fp80* nocapture %1) {
%3 = load x86_fp80, x86_fp80* %0
%4 = load x86_fp80, x86_fp80* %1
%5 = tail call x86_fp80 @__qatan2(x86_fp80 %3, x86_fp80 %4)
ret x86_fp80 %5
}
/* Variables and functions */
int /*<<< orphan*/ bj__get_dealer_card(int);
void bj__get_dealer_hand() {
  bj__get_dealer_card(1);
  bj__get_dealer_card(2);
}


x86 assembly (clang, -O0):
<bj__get_dealer_hand>:
push   %rbp
mov    %rsp,%rbp
mov    $0x1,%edi
call   1030 <bj__get_dealer_card@plt>
mov    $0x2,%edi
call   1030 <bj__get_dealer_card@plt>
pop    %rbp
ret

x86 assembly (clang, -O2):
<bj__get_dealer_hand>:
push   %rax
mov    $0x1,%edi
call   1030 <bj__get_dealer_card@plt>
mov    $0x2,%edi
pop    %rax
jmp    1030 <bj__get_dealer_card@plt>

LLVM IR (-O0):
define void @bj__get_dealer_hand() {
%1 = call i32 @bj__get_dealer_card(i32 1)
%2 = call i32 @bj__get_dealer_card(i32 2)
ret void
}

LLVM IR (-O2):
define void @bj__get_dealer_hand() {
%1 = tail call i32 @bj__get_dealer_card(i32 1)
%2 = tail call i32 @bj__get_dealer_card(i32 2)
ret void
}
/* Variables and functions */
int /*<<< orphan*/ *strstr(char *, char *);
int check_shell(char path[100]) {
  if (strstr(path, ".sh") != NULL)
    return 1;
  else
    return 0;
}


x86 assembly (clang, -O0):
<check_shell>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
mov    %rdi,-0x10(%rbp)
mov    -0x10(%rbp),%rdi
lea    0xed9(%rip),%rsi
call   1030 <strstr@plt>
cmp    $0x0,%rax
je     1142 <check_shell+0x32>
movl   $0x1,-0x4(%rbp)
jmp    1149 <check_shell+0x39>
movl   $0x0,-0x4(%rbp)
mov    -0x4(%rbp),%eax
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<check_shell>:
push   %rax
lea    0xee8(%rip),%rsi
call   1030 <strstr@plt>
xor    %ecx,%ecx
test   %rax,%rax
setne  %cl
mov    %ecx,%eax
pop    %rcx
ret

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

LLVM IR (-O2):
@.str = [4 x i8] c".sh\00"
define i32 @check_shell(i8* %0) {
%2 = tail call i32* @strstr(i8* dereferenceable(1) %0, i8* dereferenceable(1) getelementptr inbounds ([4 x i8], [4 x i8]* @.str, i64 0, i64 0))
%3 = icmp ne i32* %2, null
%4 = zext i1 %3 to i32
ret i32 %4
}
/* Variables and functions */
double const dnorm(int /*<<< orphan*/, double const, double const);
int /*<<< orphan*/ log(double const);
double dlnorm(const double x, const double logmu, const double logsigma) {
  return dnorm(log(x), logmu, logsigma) / x;
}


x86 assembly (clang, -O0):
<dlnorm>:
push   %rbp
mov    %rsp,%rbp
sub    $0x20,%rsp
movsd  %xmm0,-0x8(%rbp)
movsd  %xmm1,-0x10(%rbp)
movsd  %xmm2,-0x18(%rbp)
movsd  -0x8(%rbp),%xmm0
call   1040 <log@plt>
mov    %eax,%edi
movsd  -0x10(%rbp),%xmm0
movsd  -0x18(%rbp),%xmm1
call   1030 <dnorm@plt>
divsd  -0x8(%rbp),%xmm0
add    $0x20,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<dlnorm>:
sub    $0x18,%rsp
movsd  %xmm2,0x8(%rsp)
movsd  %xmm1,(%rsp)
movsd  %xmm0,0x10(%rsp)
call   1040 <log@plt>
mov    %eax,%edi
movsd  (%rsp),%xmm0
movsd  0x8(%rsp),%xmm1
call   1030 <dnorm@plt>
divsd  0x10(%rsp),%xmm0
add    $0x18,%rsp
ret

LLVM IR (-O0):
define double @dlnorm(double %0, double %1, double %2) {
%4 = alloca double
%5 = alloca double
%6 = alloca double
store double %0, double* %4
store double %1, double* %5
store double %2, double* %6
%7 = load double, double* %4
%8 = call i32 @log(double %7)
%9 = load double, double* %5
%10 = load double, double* %6
%11 = call double @dnorm(i32 %8, double %9, double %10)
%12 = load double, double* %4
%13 = fdiv double %11, %12
ret double %13
}

LLVM IR (-O2):
define double @dlnorm(double %0, double %1, double %2) {
%4 = tail call i32 @log(double %0)
%5 = tail call double @dnorm(i32 %4, double %1, double %2)
%6 = fdiv double %5, %0
ret double %6
}
void hash_no_destroy_key(void *string) { ((string) = (string)); }


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

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

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

LLVM IR (-O2):
define void @hash_no_destroy_key(i8* nocapture %0) {
ret void
}
/* Variables and functions */
scalar_t__ READ();
int /*<<< orphan*/ e(int);
int /*<<< orphan*/ exit(int);
void test_zdeath_child() {
  if (READ() != 0)
    e(100);
  exit(42);
}


x86 assembly (clang, -O0):
<test_zdeath_child>:
push   %rbp
mov    %rsp,%rbp
mov    $0x0,%al
call   1030 <READ@plt>
cmp    $0x0,%rax
je     114f <test_zdeath_child+0x1f>
mov    $0x64,%edi
call   1040 <e@plt>
mov    $0x2a,%edi
call   1050 <exit@plt>

x86 assembly (clang, -O2):
<test_zdeath_child>:
push   %rax
xor    %eax,%eax
call   1030 <READ@plt>
test   %rax,%rax
je     1147 <test_zdeath_child+0x17>
mov    $0x64,%edi
call   1040 <e@plt>
mov    $0x2a,%edi
call   1050 <exit@plt>

LLVM IR (-O0):
define void @test_zdeath_child() {
%1 = call i64 (...) @READ()
%2 = icmp ne i64 %1, 0
br i1 %2, label %3, label %5
3: ; preds = %0
%4 = call i32 @e(i32 100)
br label %5
5: ; preds = %3, %0
%6 = call i32 @exit(i32 42)
unreachable
}

LLVM IR (-O2):
define void @test_zdeath_child() {
%1 = tail call i64 (...) @READ()
%2 = icmp eq i64 %1, 0
br i1 %2, label %5, label %3
3: ; preds = %0
%4 = tail call i32 @e(i32 100)
br label %5
5: ; preds = %3, %0
%6 = tail call i32 @exit(i32 42)
unreachable
}
/* Variables and functions */
scalar_t__ erf(double);
long double erfl(long double x) { return (long double)erf((double)x); }


x86 assembly (clang, -O0):
<erfl>:
push   %rbp
mov    %rsp,%rbp
sub    $0x20,%rsp
fldt   0x10(%rbp)
fstpt  -0x10(%rbp)
fldt   -0x10(%rbp)
fstpl  -0x20(%rbp)
movsd  -0x20(%rbp),%xmm0
call   1030 <erf@plt>
mov    %rax,-0x18(%rbp)
fildll -0x18(%rbp)
add    $0x20,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<erfl>:
sub    $0x18,%rsp
fldt   0x20(%rsp)
fstpl  0x8(%rsp)
movsd  0x8(%rsp),%xmm0
call   1030 <erf@plt>
mov    %rax,0x10(%rsp)
fildll 0x10(%rsp)
add    $0x18,%rsp
ret

LLVM IR (-O0):
define x86_fp80 @erfl(x86_fp80 %0) {
%2 = alloca x86_fp80
store x86_fp80 %0, x86_fp80* %2
%3 = load x86_fp80, x86_fp80* %2
%4 = fptrunc x86_fp80 %3 to double
%5 = call i64 @erf(double %4)
%6 = sitofp i64 %5 to x86_fp80
ret x86_fp80 %6
}

LLVM IR (-O2):
define x86_fp80 @erfl(x86_fp80 %0) {
%2 = fptrunc x86_fp80 %0 to double
%3 = tail call i64 @erf(double %2)
%4 = sitofp i64 %3 to x86_fp80
ret x86_fp80 %4
}
/* Variables and functions */
void *malloc(unsigned short);
void *calloc(unsigned short num, unsigned short size) {
  return malloc(num * size);
}


x86 assembly (clang, -O0):
<calloc>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
mov    %si,%ax
mov    %di,%cx
mov    %cx,-0x2(%rbp)
mov    %ax,-0x4(%rbp)
movzwl -0x2(%rbp),%eax
movzwl -0x4(%rbp),%ecx
imul   %ecx,%eax
movzwl %ax,%edi
call   1030 <malloc@plt>
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<calloc>:
imul   %esi,%edi
movzwl %di,%edi
jmp    1030 <malloc@plt>

LLVM IR (-O0):
define i8* @calloc(i16 zeroext %0, i16 zeroext %1) {
%3 = alloca i16
%4 = alloca i16
store i16 %0, i16* %3
store i16 %1, i16* %4
%5 = load i16, i16* %3
%6 = zext i16 %5 to i32
%7 = load i16, i16* %4
%8 = zext i16 %7 to i32
%9 = mul nsw i32 %6, %8
%10 = trunc i32 %9 to i16
%11 = call i8* @malloc(i16 zeroext %10)
ret i8* %11
}

LLVM IR (-O2):
define noalias i8* @calloc(i16 zeroext %0, i16 zeroext %1) {
%3 = mul i16 %1, %0
%4 = tail call i8* @malloc(i16 zeroext %3)
ret i8* %4
}
/* Variables and functions */
int /*<<< orphan*/ printf(char *);
int pa_proplist_unset() {
  printf("NOT IMPLEMENTED:"
         "pa_proplist_unset"
         "\n");
}


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

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

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

/* Variables and functions */
void chip_gpio_set_value(uint8_t which, uint8_t value) {}


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

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

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

LLVM IR (-O2):
define void @chip_gpio_set_value(i32 %0, i32 %1) {
ret void
}
/* Variables and functions */
int /*<<< orphan*/ gds_swap2bytes(unsigned char *);
int /*<<< orphan*/ write(int, short *, int);
void gds_write_text(int fd) {
  static short int count, token;
  count = 4;
  gds_swap2bytes((unsigned char *)&count);
  write(fd, &count, 2);
  token = 0x0C00;
  gds_swap2bytes((unsigned char *)&token);
  write(fd, &token, 2);
}


x86 assembly (clang, -O0):
<gds_write_text>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
mov    %edi,-0x4(%rbp)
movw   $0x4,0x2efe(%rip)
lea    0x2ef7(%rip),%rdi
call   1040 <gds_swap2bytes@plt>
mov    -0x4(%rbp),%edi
lea    0x2ee8(%rip),%rsi
mov    $0x2,%edx
call   1030 <write@plt>
movw   $0xc00,0x2ed7(%rip)
lea    0x2ed0(%rip),%rdi
call   1040 <gds_swap2bytes@plt>
mov    -0x4(%rbp),%edi
lea    0x2ec1(%rip),%rsi
mov    $0x2,%edx
call   1030 <write@plt>
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<gds_write_text>:
push   %r14
push   %rbx
push   %rax
mov    %edi,%ebx
movw   $0x4,0x2f03(%rip)
lea    0x2efc(%rip),%r14
mov    %r14,%rdi
call   1040 <gds_swap2bytes@plt>
mov    %ebx,%edi
mov    %r14,%rsi
mov    $0x2,%edx
call   1030 <write@plt>
movw   $0xc00,0x2ede(%rip)
lea    0x2ed7(%rip),%r14
mov    %r14,%rdi
call   1040 <gds_swap2bytes@plt>
mov    %ebx,%edi
mov    %r14,%rsi
mov    $0x2,%edx
add    $0x8,%rsp
pop    %rbx
pop    %r14
jmp    1030 <write@plt>

LLVM IR (-O0):
@gds_write_text.count = internal global i16 0
@gds_write_text.token = internal global i16 0
define void @gds_write_text(i32 %0) {
%2 = alloca i32
store i32 %0, i32* %2
store i16 4, i16* @gds_write_text.count
%3 = call i32 @gds_swap2bytes(i8* bitcast (i16* @gds_write_text.count to i8*))
%4 = load i32, i32* %2
%5 = call i32 @write(i32 %4, i16* @gds_write_text.count, i32 2)
store i16 3072, i16* @gds_write_text.token
%6 = call i32 @gds_swap2bytes(i8* bitcast (i16* @gds_write_text.token to i8*))
%7 = load i32, i32* %2
%8 = call i32 @write(i32 %7, i16* @gds_write_text.token, i32 2)
ret void
}

LLVM IR (-O2):
@gds_write_text.count = internal global i16 0
@gds_write_text.token = internal global i16 0
define void @gds_write_text(i32 %0) {
store i16 4, i16* @gds_write_text.count
%2 = tail call i32 @gds_swap2bytes(i8* bitcast (i16* @gds_write_text.count to i8*))
%3 = tail call i32 @write(i32 %0, i16* @gds_write_text.count, i32 2)
store i16 3072, i16* @gds_write_text.token
%4 = tail call i32 @gds_swap2bytes(i8* bitcast (i16* @gds_write_text.token to i8*))
%5 = tail call i32 @write(i32 %0, i16* @gds_write_text.token, i32 2)
ret void
}
unsigned xrop3_136_0_1(unsigned char s, unsigned char t) {
  unsigned D = 0x00ff;
  unsigned S = ((unsigned)s << 8) | s;
  unsigned T = ((unsigned)t << 8) | t;
  unsigned stk1;
  stk1 = D & S;
  return (stk1 & S) | (stk1 & (~T)) | (T & (~S) & D);
}


x86 assembly (clang, -O0):
<xrop3_136_0_1>:
push   %rbp
mov    %rsp,%rbp
mov    %sil,%al
mov    %dil,%cl
mov    %cl,-0x1(%rbp)
mov    %al,-0x2(%rbp)
movl   $0xff,-0x8(%rbp)
movzbl -0x1(%rbp),%eax
shl    $0x8,%eax
movzbl -0x1(%rbp),%ecx
or     %ecx,%eax
mov    %eax,-0xc(%rbp)
movzbl -0x2(%rbp),%eax
shl    $0x8,%eax
movzbl -0x2(%rbp),%ecx
or     %ecx,%eax
mov    %eax,-0x10(%rbp)
mov    -0x8(%rbp),%eax
and    -0xc(%rbp),%eax
mov    %eax,-0x14(%rbp)
mov    -0x14(%rbp),%eax
and    -0xc(%rbp),%eax
mov    -0x14(%rbp),%ecx
mov    -0x10(%rbp),%edx
xor    $0xffffffff,%edx
and    %edx,%ecx
or     %ecx,%eax
mov    -0x10(%rbp),%ecx
mov    -0xc(%rbp),%edx
xor    $0xffffffff,%edx
and    %edx,%ecx
and    -0x8(%rbp),%ecx
or     %ecx,%eax
pop    %rbp
ret

x86 assembly (clang, -O2):
<xrop3_136_0_1>:
mov    %edi,%eax
shl    $0x8,%eax
or     %edi,%eax
not    %eax
and    %esi,%eax
or     %edi,%eax
ret

LLVM IR (-O0):
define i32 @xrop3_136_0_1(i8 zeroext %0, i8 zeroext %1) {
%3 = alloca i8
%4 = alloca i8
%5 = alloca i32
%6 = alloca i32
%7 = alloca i32
%8 = alloca i32
store i8 %0, i8* %3
store i8 %1, i8* %4
store i32 255, i32* %5
%9 = load i8, i8* %3
%10 = zext i8 %9 to i32
%11 = shl i32 %10, 8
%12 = load i8, i8* %3
%13 = zext i8 %12 to i32
%14 = or i32 %11, %13
store i32 %14, i32* %6
%15 = load i8, i8* %4
%16 = zext i8 %15 to i32
%17 = shl i32 %16, 8
%18 = load i8, i8* %4
%19 = zext i8 %18 to i32
%20 = or i32 %17, %19
store i32 %20, i32* %7
%21 = load i32, i32* %5
%22 = load i32, i32* %6
%23 = and i32 %21, %22
store i32 %23, i32* %8
%24 = load i32, i32* %8
%25 = load i32, i32* %6
%26 = and i32 %24, %25
%27 = load i32, i32* %8
%28 = load i32, i32* %7
%29 = xor i32 %28, -1
%30 = and i32 %27, %29
%31 = or i32 %26, %30
%32 = load i32, i32* %7
%33 = load i32, i32* %6
%34 = xor i32 %33, -1
%35 = and i32 %32, %34
%36 = load i32, i32* %5
%37 = and i32 %35, %36
%38 = or i32 %31, %37
ret i32 %38
}

LLVM IR (-O2):
define i32 @xrop3_136_0_1(i8 zeroext %0, i8 zeroext %1) {
%3 = zext i8 %0 to i32
%4 = mul nuw nsw i32 %3, 257
%5 = zext i8 %1 to i32
%6 = xor i32 %4, -1
%7 = and i32 %6, %5
%8 = or i32 %7, %3
ret i32 %8
}
/* Variables and functions */
int /*<<< orphan*/ printf(char *, int, int);
int /*<<< orphan*/ scanf(char *, int *);
int main() {
  int n, s, c;
  scanf("%d", &n);
  s = n * n;
  c = s * n;
  printf("%d \n%d\n", s, c);
  return 0;
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
movl   $0x0,-0x4(%rbp)
lea    0xeca(%rip),%rdi
lea    -0x8(%rbp),%rsi
call   1040 <scanf@plt>
mov    -0x8(%rbp),%eax
imul   -0x8(%rbp),%eax
mov    %eax,-0xc(%rbp)
mov    -0xc(%rbp),%eax
imul   -0x8(%rbp),%eax
mov    %eax,-0x10(%rbp)
mov    -0xc(%rbp),%esi
mov    -0x10(%rbp),%edx
lea    0xea3(%rip),%rdi
call   1030 <printf@plt>
xor    %eax,%eax
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %rax
lea    0xed8(%rip),%rdi
lea    0x4(%rsp),%rsi
call   1040 <scanf@plt>
mov    0x4(%rsp),%edx
mov    %edx,%esi
imul   %edx,%esi
imul   %esi,%edx
lea    0xebe(%rip),%rdi
call   1030 <printf@plt>
xor    %eax,%eax
pop    %rcx
ret

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

LLVM IR (-O2):
@.str = [3 x i8] c"%d\00"
@.str.1 = [8 x i8] c"%d \0A%d\0A\00"
define i32 @main() {
%1 = alloca i32
%2 = bitcast i32* %1 to i8*
%3 = call i32 @scanf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str, i64 0, i64 0), i32* %1)
%4 = load i32, i32* %1
%5 = mul nsw i32 %4, %4
%6 = mul nsw i32 %5, %4
%7 = call i32 @printf(i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str.1, i64 0, i64 0), i32 %5, i32 %6)
ret i32 0
}
int xmlUCSIsGurmukhi(int code) {
  return (((code >= 0x0A00) && (code <= 0x0A7F)));
}


x86 assembly (clang, -O0):
<xmlUCSIsGurmukhi>:
push   %rbp
mov    %rsp,%rbp
mov    %edi,-0x4(%rbp)
xor    %eax,%eax
cmpl   $0xa00,-0x4(%rbp)
mov    %al,-0x5(%rbp)
jl     1126 <xmlUCSIsGurmukhi+0x26>
cmpl   $0xa7f,-0x4(%rbp)
setle  %al
mov    %al,-0x5(%rbp)
mov    -0x5(%rbp),%al
and    $0x1,%al
movzbl %al,%eax
pop    %rbp
ret

x86 assembly (clang, -O2):
<xmlUCSIsGurmukhi>:
and    $0xffffff80,%edi
xor    %eax,%eax
cmp    $0xa00,%edi
sete   %al
ret

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

LLVM IR (-O2):
define i32 @xmlUCSIsGurmukhi(i32 %0) {
%2 = and i32 %0, -128
%3 = icmp eq i32 %2, 2560
%4 = zext i1 %3 to i32
ret i32 %4
}
int dns_v_api(void) { return 0x20160608; }


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

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

LLVM IR (-O0):
define i32 @dns_v_api() {
ret i32 538314248
}

LLVM IR (-O2):
define i32 @dns_v_api() {
ret i32 538314248
}
/* Variables and functions */
int /*<<< orphan*/ print(char *);
void __attribute__((constructor)) my_init(void) {
  print("appdll initialized\n");
}


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

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

LLVM IR (-O0):
@.str = [20 x i8] c"appdll initialized\0A\00"
@llvm.global_ctors = appending global [1 x { i32, void ()*, i8* }] [{ i32, void ()*, i8* } { i32 65535, void ()* @my_init, i8* null }]
define void @my_init() {
%1 = call i32 @print(i8* getelementptr inbounds ([20 x i8], [20 x i8]* @.str, i64 0, i64 0))
ret void
}

LLVM IR (-O2):
@.str = [20 x i8] c"appdll initialized\0A\00"
@llvm.global_ctors = appending global [1 x { i32, void ()*, i8* }] [{ i32, void ()*, i8* } { i32 65535, void ()* @my_init, i8* null }]
define void @my_init() {
%1 = tail call i32 @print(i8* getelementptr inbounds ([20 x i8], [20 x i8]* @.str, i64 0, i64 0))
ret void
}
/* Type definitions */
typedef int /*<<< orphan*/ __m64;

/* Variables and functions */
int /*<<< orphan*/ _mm_adds_pi16(int /*<<< orphan*/, int /*<<< orphan*/);
__m64 test_mm_adds_pi16(__m64 a, __m64 b) { return _mm_adds_pi16(a, b); }


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

x86 assembly (clang, -O2):
<test_mm_adds_pi16>:
jmp    1030 <_mm_adds_pi16@plt>

LLVM IR (-O0):
define i32 @test_mm_adds_pi16(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 @_mm_adds_pi16(i32 %5, i32 %6)
ret i32 %7
}

LLVM IR (-O2):
define i32 @test_mm_adds_pi16(i32 %0, i32 %1) {
%3 = tail call i32 @_mm_adds_pi16(i32 %0, i32 %1)
ret i32 %3
}
/* Variables and functions */
int /*<<< orphan*/ printf(char *);
void mensagemB() { printf("Eu sou B!\n"); }


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

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

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

LLVM IR (-O2):
@str = [10 x i8] c"Eu sou B!\00"
define void @mensagemB() {
%1 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([10 x i8], [10 x i8]* @str, i64 0, i64 0))
ret void
}
/* Variables and functions */
int LZ4_compressHC2(char const *, char *, int, int /*<<< orphan*/);
int LZ4_compressHC(const char *source, char *dest, int inputSize) {
  return LZ4_compressHC2(source, dest, inputSize, 0);
}


x86 assembly (clang, -O0):
<LZ4_compressHC>:
push   %rbp
mov    %rsp,%rbp
sub    $0x20,%rsp
mov    %rdi,-0x8(%rbp)
mov    %rsi,-0x10(%rbp)
mov    %edx,-0x14(%rbp)
mov    -0x8(%rbp),%rdi
mov    -0x10(%rbp),%rsi
mov    -0x14(%rbp),%edx
xor    %ecx,%ecx
call   1030 <LZ4_compressHC2@plt>
add    $0x20,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<LZ4_compressHC>:
xor    %ecx,%ecx
jmp    1030 <LZ4_compressHC2@plt>

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

LLVM IR (-O2):
define i32 @LZ4_compressHC(i8* %0, i8* %1, i32 %2) {
%4 = tail call i32 @LZ4_compressHC2(i8* %0, i8* %1, i32 %2, i32 0)
ret i32 %4
}