xunge/DecIR huggingface dataset:
void mfsplay_tree_free(void *p) {
  extern void __real_free(void *p);
  __real_free(p);
}


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

x86 assembly (clang, -O2):
<mfsplay_tree_free>:
jmp    1030 <__real_free@plt>

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

LLVM IR (-O2):
define void @mfsplay_tree_free(i8* %0) {
tail call void @__real_free(i8* %0)
ret void
}
/* Variables and functions */
int _ada_use_c2phc4c(int, int *, int *, double *, int /*<<< orphan*/);
int copy_standard_Laurent_target_system_to_container(void) {
  int *a, *b, fail;
  double *c;
  fail = _ada_use_c2phc4c(786, a, b, c, 0);
  return fail;
}


x86 assembly (clang, -O0):
<copy_standard_Laurent_target_system_to_container>:
push   %rbp
mov    %rsp,%rbp
sub    $0x20,%rsp
mov    -0x8(%rbp),%rsi
mov    -0x10(%rbp),%rdx
mov    -0x20(%rbp),%rcx
mov    $0x312,%edi
xor    %r8d,%r8d
call   1030 <_ada_use_c2phc4c@plt>
mov    %eax,-0x14(%rbp)
mov    -0x14(%rbp),%eax
add    $0x20,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<copy_standard_Laurent_target_system_to_container>:
mov    $0x312,%edi
xor    %r8d,%r8d
jmp    1030 <_ada_use_c2phc4c@plt>

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

LLVM IR (-O2):
define i32 @copy_standard_Laurent_target_system_to_container() {
%1 = tail call i32 @_ada_use_c2phc4c(i32 786, i32* undef, i32* undef, double* undef, i32 0)
ret i32 %1
}
void l(int x) {}


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

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

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

LLVM IR (-O2):
define void @l(i32 %0) {
ret void
}
/* Variables and functions */
int /*<<< orphan*/ block();
int /*<<< orphan*/ epilog();
int /*<<< orphan*/ matchString(char *);
int /*<<< orphan*/ prolog();
void doMain() {
  matchString("BEGIN");
  prolog();
  block();
  matchString("END");
  epilog();
}


x86 assembly (clang, -O0):
<doMain>:
push   %rbp
mov    %rsp,%rbp
lea    0xeb5(%rip),%rdi
call   1060 <matchString@plt>
mov    $0x0,%al
call   1030 <prolog@plt>
mov    $0x0,%al
call   1040 <block@plt>
lea    0xea1(%rip),%rdi
call   1060 <matchString@plt>
mov    $0x0,%al
call   1050 <epilog@plt>
pop    %rbp
ret

x86 assembly (clang, -O2):
<doMain>:
push   %rax
lea    0xeb8(%rip),%rdi
call   1060 <matchString@plt>
xor    %eax,%eax
call   1030 <prolog@plt>
xor    %eax,%eax
call   1040 <block@plt>
lea    0xea4(%rip),%rdi
call   1060 <matchString@plt>
xor    %eax,%eax
pop    %rcx
jmp    1050 <epilog@plt>

LLVM IR (-O0):
@.str = [6 x i8] c"BEGIN\00"
@.str.1 = [4 x i8] c"END\00"
define void @doMain() {
%1 = call i32 @matchString(i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str, i64 0, i64 0))
%2 = call i32 (...) @prolog()
%3 = call i32 (...) @block()
%4 = call i32 @matchString(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.1, i64 0, i64 0))
%5 = call i32 (...) @epilog()
ret void
}

LLVM IR (-O2):
@.str = [6 x i8] c"BEGIN\00"
@.str.1 = [4 x i8] c"END\00"
define void @doMain() {
%1 = tail call i32 @matchString(i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str, i64 0, i64 0))
%2 = tail call i32 (...) @prolog()
%3 = tail call i32 (...) @block()
%4 = tail call i32 @matchString(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.1, i64 0, i64 0))
%5 = tail call i32 (...) @epilog()
ret void
}
reg0indreg1(r0, r1, x0, x1, p0, p1) double r0, r1;
double *p0, *p1;
{
  if (r0 <= (*p1))
    return 1;
  else
    return 0;
}


x86 assembly (clang, -O0):
<reg0indreg1>:
push   %rbp
mov    %rsp,%rbp
movsd  %xmm0,-0x10(%rbp)
movsd  %xmm1,-0x18(%rbp)
mov    %edi,-0x1c(%rbp)
mov    %esi,-0x20(%rbp)
mov    %rdx,-0x28(%rbp)
mov    %rcx,-0x30(%rbp)
movsd  -0x10(%rbp),%xmm1
mov    -0x30(%rbp),%rax
movsd  (%rax),%xmm0
ucomisd %xmm1,%xmm0
jb     113f <reg0indreg1+0x3f>
movl   $0x1,-0x4(%rbp)
jmp    1146 <reg0indreg1+0x46>
movl   $0x0,-0x4(%rbp)
mov    -0x4(%rbp),%eax
pop    %rbp
ret

x86 assembly (clang, -O2):
<reg0indreg1>:
movsd  (%rcx),%xmm1
xor    %eax,%eax
ucomisd %xmm0,%xmm1
setae  %al
ret

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

LLVM IR (-O2):
define i32 @reg0indreg1(double %0, double %1, i32 %2, i32 %3, double* nocapture readnone %4, double* nocapture %5) {
%7 = load double, double* %5
%8 = fcmp oge double %7, %0
%9 = zext i1 %8 to i32
ret i32 %9
}
void blankREPORTstart(void *info, int clusterid) { return; }


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

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

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

LLVM IR (-O2):
define void @blankREPORTstart(i8* nocapture %0, i32 %1) {
ret void
}
/* Type definitions */
typedef int /*<<< orphan*/ int16_t;

/* Variables and functions */
int /*<<< orphan*/ SetLeftRight(int /*<<< orphan*/, char *, int);
void QMSetRight(int16_t fno, char *index_name) {
  SetLeftRight(fno, index_name, 43);
}


x86 assembly (clang, -O0):
<QMSetRight>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
mov    %edi,-0x4(%rbp)
mov    %rsi,-0x10(%rbp)
mov    -0x4(%rbp),%edi
mov    -0x10(%rbp),%rsi
mov    $0x2b,%edx
call   1030 <SetLeftRight@plt>
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<QMSetRight>:
mov    $0x2b,%edx
jmp    1030 <SetLeftRight@plt>

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

LLVM IR (-O2):
define void @QMSetRight(i32 %0, i8* %1) {
%3 = tail call i32 @SetLeftRight(i32 %0, i8* %1, i32 43)
ret void
}
/* Variables and functions */
void dopr_outch(char *buffer, size_t *curlen, size_t maxlen, char c) {
  if (*curlen < maxlen) {
    buffer[(*curlen)] = c;
  }
  (*curlen)++;
}


x86 assembly (clang, -O0):
<dopr_outch>:
push   %rbp
mov    %rsp,%rbp
mov    %cl,%al
mov    %rdi,-0x8(%rbp)
mov    %rsi,-0x10(%rbp)
mov    %rdx,-0x18(%rbp)
mov    %al,-0x19(%rbp)
mov    -0x10(%rbp),%rax
mov    (%rax),%rax
cmp    -0x18(%rbp),%rax
jae    1137 <dopr_outch+0x37>
mov    -0x19(%rbp),%dl
mov    -0x8(%rbp),%rax
mov    -0x10(%rbp),%rcx
mov    (%rcx),%rcx
mov    %dl,(%rax,%rcx,1)
mov    -0x10(%rbp),%rax
mov    (%rax),%rcx
add    $0x1,%rcx
mov    %rcx,(%rax)
pop    %rbp
ret

x86 assembly (clang, -O2):
<dopr_outch>:
mov    (%rsi),%rax
cmp    %rdx,%rax
jae    110e <dopr_outch+0xe>
mov    %cl,(%rdi,%rax,1)
mov    (%rsi),%rax
add    $0x1,%rax
mov    %rax,(%rsi)
ret

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

LLVM IR (-O2):
define void @dopr_outch(i8* nocapture writeonly %0, i64* nocapture %1, i64 %2, i8 signext %3) {
%5 = load i64, i64* %1
%6 = icmp ult i64 %5, %2
br i1 %6, label %7, label %10
7: ; preds = %4
%8 = getelementptr inbounds i8, i8* %0, i64 %5
store i8 %3, i8* %8
%9 = load i64, i64* %1
br label %10
10: ; preds = %7, %4
%11 = phi i64 [ %9, %7 ], [ %5, %4 ]
%12 = add i64 %11, 1
store i64 %12, i64* %1
ret void
}
OP(fd, d6) {
  illegal_1();
  op_d6();
}


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_d6@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_d6@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_d6()
%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_d6()
ret i32 undef
}
/* Variables and functions */
int /*<<< orphan*/ free(float *);
void free_float_image(float **image, int yres) {
  int j;
  for (j = 0; j < yres; j++)
    free((float *)image[j]);
  free((float *)image);
}


x86 assembly (clang, -O0):
<free_float_image>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
mov    %rdi,-0x8(%rbp)
mov    %esi,-0xc(%rbp)
movl   $0x0,-0x10(%rbp)
mov    -0x10(%rbp),%eax
cmp    -0xc(%rbp),%eax
jge    1151 <free_float_image+0x41>
mov    -0x8(%rbp),%rax
movslq -0x10(%rbp),%rcx
mov    (%rax,%rcx,8),%rdi
call   1030 <free@plt>
mov    -0x10(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x10(%rbp)
jmp    1126 <free_float_image+0x16>
mov    -0x8(%rbp),%rdi
call   1030 <free@plt>
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<free_float_image>:
push   %r15
push   %r14
push   %rbx
mov    %rdi,%r14
test   %esi,%esi
jle    1142 <free_float_image+0x32>
mov    %esi,%r15d
xor    %ebx,%ebx
cs nopw 0x0(%rax,%rax,1)
nopl   0x0(%rax,%rax,1)
mov    (%r14,%rbx,8),%rdi
call   1030 <free@plt>
add    $0x1,%rbx
cmp    %rbx,%r15
jne    1130 <free_float_image+0x20>
mov    %r14,%rdi
pop    %rbx
pop    %r14
pop    %r15
jmp    1030 <free@plt>

LLVM IR (-O0):
define void @free_float_image(float** %0, i32 %1) {
%3 = alloca float**
%4 = alloca i32
%5 = alloca i32
store float** %0, float*** %3
store i32 %1, i32* %4
store i32 0, i32* %5
br label %6
6: ; preds = %17, %2
%7 = load i32, i32* %5
%8 = load i32, i32* %4
%9 = icmp slt i32 %7, %8
br i1 %9, label %10, label %20
10: ; preds = %6
%11 = load float**, float*** %3
%12 = load i32, i32* %5
%13 = sext i32 %12 to i64
%14 = getelementptr inbounds float*, float** %11, i64 %13
%15 = load float*, float** %14
%16 = call i32 @free(float* %15)
br label %17
17: ; preds = %10
%18 = load i32, i32* %5
%19 = add nsw i32 %18, 1
store i32 %19, i32* %5
br label %6
20: ; preds = %6
%21 = load float**, float*** %3
%22 = bitcast float** %21 to float*
%23 = call i32 @free(float* %22)
ret void
}

LLVM IR (-O2):
define void @free_float_image(float** nocapture %0, i32 %1) {
%3 = icmp sgt i32 %1, 0
br i1 %3, label %4, label %13
4: ; preds = %2
%5 = zext i32 %1 to i64
br label %6
6: ; preds = %4, %6
%7 = phi i64 [ 0, %4 ], [ %11, %6 ]
%8 = getelementptr inbounds float*, float** %0, i64 %7
%9 = load float*, float** %8
%10 = tail call i32 @free(float* %9)
%11 = add nuw nsw i64 %7, 1
%12 = icmp eq i64 %11, %5
br i1 %12, label %13, label %6
13: ; preds = %6, %2
%14 = bitcast float** %0 to float*
%15 = tail call i32 @free(float* %14)
ret void
}
int makeIntoCents(float dollars) { return dollars * 100; }


x86 assembly (clang, -O0):
<makeIntoCents>:
push   %rbp
mov    %rsp,%rbp
movss  %xmm0,-0x4(%rbp)
movss  0xeef(%rip),%xmm0
mulss  -0x4(%rbp),%xmm0
cvttss2si %xmm0,%eax
pop    %rbp
ret

x86 assembly (clang, -O2):
<makeIntoCents>:
mulss  0xef8(%rip),%xmm0
cvttss2si %xmm0,%eax
ret

LLVM IR (-O0):
define i32 @makeIntoCents(float %0) {
%2 = alloca float
store float %0, float* %2
%3 = load float, float* %2
%4 = fmul float %3, 1.000000e+02
%5 = fptosi float %4 to i32
ret i32 %5
}

LLVM IR (-O2):
define i32 @makeIntoCents(float %0) {
%2 = fmul float %0, 1.000000e+02
%3 = fptosi float %2 to i32
ret i32 %3
}
void CL_Disconnect(const char *message) {}


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

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

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

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


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

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

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

LLVM IR (-O2):
define void @d2i_PKEY_USAGE_PERIOD() {
ret void
}
/* Variables and functions */
int /*<<< orphan*/ decode(char const *, char *);
int /*<<< orphan*/ printf(char *, char *);
void call_decode(const char *encoded) {
  char t[256];
  if (!decode(encoded, t)) {
    printf("%s\n", t);
  }
}


x86 assembly (clang, -O0):
<call_decode>:
push   %rbp
mov    %rsp,%rbp
sub    $0x110,%rsp
mov    %rdi,-0x8(%rbp)
mov    -0x8(%rbp),%rdi
lea    -0x110(%rbp),%rsi
call   1040 <decode@plt>
cmp    $0x0,%eax
jne    115b <call_decode+0x3b>
lea    -0x110(%rbp),%rsi
lea    0xeaa(%rip),%rdi
call   1030 <printf@plt>
add    $0x110,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<call_decode>:
sub    $0x108,%rsp
mov    %rsp,%rsi
call   1040 <decode@plt>
test   %eax,%eax
je     113b <call_decode+0x1b>
add    $0x108,%rsp
ret
lea    0xebe(%rip),%rdi
mov    %rsp,%rsi
call   1030 <printf@plt>
add    $0x108,%rsp
ret

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

LLVM IR (-O2):
@.str = [4 x i8] c"%s\0A\00"
define void @call_decode(i8* %0) {
%2 = alloca [256 x i8]
%3 = getelementptr inbounds [256 x i8], [256 x i8]* %2, i64 0, i64 0
%4 = call i32 @decode(i8* %0, i8* %3)
%5 = icmp eq i32 %4, 0
br i1 %5, label %6, label %8
6: ; preds = %1
%7 = call i32 @printf(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str, i64 0, i64 0), i8* %3)
br label %8
8: ; preds = %6, %1
ret void
}
/* Variables and functions */
int /*<<< orphan*/ exit(int);
int /*<<< orphan*/ fprintf(int /*<<< orphan*/, char *);
int /*<<< orphan*/ stderr;
void fail_blocksize() {
  fprintf(stderr,
          "Broken data or wrong key! Block size doesn't make sense.\n\n");
  exit(3);
}


x86 assembly (clang, -O0):
<fail_blocksize>:
push   %rbp
mov    %rsp,%rbp
mov    0x2eb5(%rip),%rax
mov    (%rax),%edi
lea    0xecc(%rip),%rsi
call   1030 <fprintf@plt>
mov    $0x3,%edi
call   1040 <exit@plt>

x86 assembly (clang, -O2):
<fail_blocksize>:
push   %rax
mov    0x2eb8(%rip),%rax
mov    (%rax),%edi
lea    0xecf(%rip),%rsi
call   1030 <fprintf@plt>
mov    $0x3,%edi
call   1040 <exit@plt>

LLVM IR (-O0):
@stderr = global i32 0
@.str = [59 x i8] c"Broken data or wrong key! Block size doesn't make sense.\0A\0A\00"
define void @fail_blocksize() {
%1 = load i32, i32* @stderr
%2 = call i32 @fprintf(i32 %1, i8* getelementptr inbounds ([59 x i8], [59 x i8]* @.str, i64 0, i64 0))
%3 = call i32 @exit(i32 3)
unreachable
}

LLVM IR (-O2):
@stderr = global i32 0
@.str = [59 x i8] c"Broken data or wrong key! Block size doesn't make sense.\0A\0A\00"
define void @fail_blocksize() {
%1 = load i32, i32* @stderr
%2 = tail call i32 @fprintf(i32 %1, i8* getelementptr inbounds ([59 x i8], [59 x i8]* @.str, i64 0, i64 0))
%3 = tail call i32 @exit(i32 3)
unreachable
}
/* Variables and functions */
unsigned int htonl(unsigned int);
unsigned int inet_ip(unsigned char a, unsigned char b, unsigned char c,
                     unsigned char d) {
  unsigned int m = 0;
  m |= ((unsigned int)a) << 24;
  m |= ((unsigned int)b) << 16;
  m |= ((unsigned int)c) << 8;
  m |= ((unsigned int)d);
  return htonl(m);
}


x86 assembly (clang, -O0):
<inet_ip>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
mov    %cl,%al
mov    %dl,%cl
mov    %sil,%dl
mov    %dil,%sil
mov    %sil,-0x1(%rbp)
mov    %dl,-0x2(%rbp)
mov    %cl,-0x3(%rbp)
mov    %al,-0x4(%rbp)
movl   $0x0,-0x8(%rbp)
movzbl -0x1(%rbp),%eax
shl    $0x18,%eax
or     -0x8(%rbp),%eax
mov    %eax,-0x8(%rbp)
movzbl -0x2(%rbp),%eax
shl    $0x10,%eax
or     -0x8(%rbp),%eax
mov    %eax,-0x8(%rbp)
movzbl -0x3(%rbp),%eax
shl    $0x8,%eax
or     -0x8(%rbp),%eax
mov    %eax,-0x8(%rbp)
movzbl -0x4(%rbp),%eax
or     -0x8(%rbp),%eax
mov    %eax,-0x8(%rbp)
mov    -0x8(%rbp),%edi
call   1030 <htonl@plt>
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<inet_ip>:
shl    $0x18,%edi
shl    $0x10,%esi
or     %esi,%edi
shl    $0x8,%edx
or     %edx,%edi
or     %ecx,%edi
jmp    1030 <htonl@plt>

LLVM IR (-O0):
define i32 @inet_ip(i8 zeroext %0, i8 zeroext %1, i8 zeroext %2, i8 zeroext %3) {
%5 = alloca i8
%6 = alloca i8
%7 = alloca i8
%8 = alloca i8
%9 = alloca i32
store i8 %0, i8* %5
store i8 %1, i8* %6
store i8 %2, i8* %7
store i8 %3, i8* %8
store i32 0, i32* %9
%10 = load i8, i8* %5
%11 = zext i8 %10 to i32
%12 = shl i32 %11, 24
%13 = load i32, i32* %9
%14 = or i32 %13, %12
store i32 %14, i32* %9
%15 = load i8, i8* %6
%16 = zext i8 %15 to i32
%17 = shl i32 %16, 16
%18 = load i32, i32* %9
%19 = or i32 %18, %17
store i32 %19, i32* %9
%20 = load i8, i8* %7
%21 = zext i8 %20 to i32
%22 = shl i32 %21, 8
%23 = load i32, i32* %9
%24 = or i32 %23, %22
store i32 %24, i32* %9
%25 = load i8, i8* %8
%26 = zext i8 %25 to i32
%27 = load i32, i32* %9
%28 = or i32 %27, %26
store i32 %28, i32* %9
%29 = load i32, i32* %9
%30 = call i32 @htonl(i32 %29)
ret i32 %30
}

LLVM IR (-O2):
define i32 @inet_ip(i8 zeroext %0, i8 zeroext %1, i8 zeroext %2, i8 zeroext %3) {
%5 = zext i8 %0 to i32
%6 = shl nuw i32 %5, 24
%7 = zext i8 %1 to i32
%8 = shl nuw nsw i32 %7, 16
%9 = or i32 %8, %6
%10 = zext i8 %2 to i32
%11 = shl nuw nsw i32 %10, 8
%12 = or i32 %9, %11
%13 = zext i8 %3 to i32
%14 = or i32 %12, %13
%15 = tail call i32 @htonl(i32 %14)
ret i32 %15
}
extern void TBUF_RECORD_EVENT(unsigned _id, unsigned _p0) {
  unsigned addr;
  asm volatile("movl	%%fs:0, %%esi	        \n"
               "addl	$32, %%esi		\n"
               "movl   %%esi, %%edi            \n"
               "andl   $0x1fffff, %%esi	\n"
               "movl	%%esi, %%fs:0     	\n"
               "rdtsc				\n"
               "movl 	%%eax, %%fs:0(%%edi)    \n"
               : "=D"(addr)
               :
               : "eax", "ecx", "edx", "esi");
  ;
  asm volatile("movl   %0, %%fs:("
               "0"
               "*4+12)(%%edi)\n"
               :
               : "r"(_id & 0x7FFFFFFF), "D"(addr));
  ;
  asm volatile("movl   %0, %%fs:("
               "1"
               "*4+12)(%%edi)\n"
               :
               : "r"(_p0), "D"(addr));
  ;
}


x86 assembly (clang, -O0):
<TBUF_RECORD_EVENT>:
push   %rbp
mov    %rsp,%rbp
mov    %edi,-0x4(%rbp)
mov    %esi,-0x8(%rbp)
mov    %fs:0x0,%esi
add    $0x20,%esi
mov    %esi,%edi
and    $0x1fffff,%esi
mov    %esi,%fs:0x0
rdtsc
mov    %eax,%fs:(%edi)
mov    %edi,-0xc(%rbp)
mov    -0x4(%rbp),%eax
and    $0x7fffffff,%eax
mov    -0xc(%rbp),%edi
mov    %eax,%fs:0xc(%edi)
mov    -0x8(%rbp),%eax
mov    -0xc(%rbp),%edi
mov    %eax,%fs:0x10(%edi)
pop    %rbp
ret

x86 assembly (clang, -O2):
<TBUF_RECORD_EVENT>:
mov    %esi,%r8d
mov    %edi,%r9d
mov    %fs:0x0,%esi
add    $0x20,%esi
mov    %esi,%edi
and    $0x1fffff,%esi
mov    %esi,%fs:0x0
rdtsc
mov    %eax,%fs:(%edi)
and    $0x7fffffff,%r9d
mov    %r9d,%fs:0xc(%edi)
mov    %r8d,%fs:0x10(%edi)
ret

LLVM IR (-O0):
define void @TBUF_RECORD_EVENT(i32 %0, i32 %1) {
%3 = alloca i32
%4 = alloca i32
%5 = alloca i32
store i32 %0, i32* %3
store i32 %1, i32* %4
%6 = call i32 asm sideeffect "movl\09%fs:0, %esi\09 \0Aaddl\09$$32, %esi\09\09\0Amovl %esi, %edi \0Aandl $$0x1fffff, %esi\09\0Amovl\09%esi, %fs:0 \09\0Ardtsc\09\09\09\09\0Amovl \09%eax, %fs:0(%edi) \0A", "={di},~{eax},~{ecx},~{edx},~{esi},~{dirflag},~{fpsr},~{flags}"()
store i32 %6, i32* %5
%7 = load i32, i32* %3
%8 = and i32 %7, 2147483647
%9 = load i32, i32* %5
%10 = load i32, i32* %4
%11 = load i32, i32* %5
ret void
}

LLVM IR (-O2):
define void @TBUF_RECORD_EVENT(i32 %0, i32 %1) {
%3 = tail call i32 asm sideeffect "movl\09%fs:0, %esi\09 \0Aaddl\09$$32, %esi\09\09\0Amovl %esi, %edi \0Aandl $$0x1fffff, %esi\09\0Amovl\09%esi, %fs:0 \09\0Ardtsc\09\09\09\09\0Amovl \09%eax, %fs:0(%edi) \0A", "={di},~{eax},~{ecx},~{edx},~{esi},~{dirflag},~{fpsr},~{flags}"()
%4 = and i32 %0, 2147483647
tail call void asm sideeffect "movl $0, %fs:(0*4+12)(%edi)\0A", "r,{di},~{dirflag},~{fpsr},~{flags}"(i32 %4, i32 %3)
tail call void asm sideeffect "movl $0, %fs:(1*4+12)(%edi)\0A", "r,{di},~{dirflag},~{fpsr},~{flags}"(i32 %1, i32 %3)
ret void
}
void rop3_27_1_0(unsigned char *D, unsigned char S, unsigned char T) {
  unsigned char stk1;
  unsigned char stk2;
  unsigned char stk3;
  stk3 = T ^ S;
  stk2 = *D & stk3;
  stk1 = S ^ stk2;
  stk1 = ~stk1;
  *D = (stk1 & (~S)) | (*D & S);
}


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

x86 assembly (clang, -O2):
<rop3_27_1_0>:
xor    %esi,%edx
mov    (%rdi),%al
and    %al,%dl
or     %sil,%dl
not    %dl
and    %sil,%al
or     %dl,%al
mov    %al,(%rdi)
ret

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

LLVM IR (-O2):
define void @rop3_27_1_0(i8* nocapture %0, i8 zeroext %1, i8 zeroext %2) {
%4 = xor i8 %2, %1
%5 = load i8, i8* %0
%6 = and i8 %5, %4
%7 = or i8 %6, %1
%8 = xor i8 %7, -1
%9 = and i8 %5, %1
%10 = or i8 %9, %8
store i8 %10, i8* %0
ret void
}
/* Type definitions */
typedef int /*<<< orphan*/ XWindowChanges;

/* Variables and functions */
int /*<<< orphan*/ abort();
scalar_t__ malloc(int);
void *alloc_XWindowChanges(void) {
  XWindowChanges *_p = (XWindowChanges *)malloc(sizeof(XWindowChanges));
  if (_p == NULL)
    abort();
  return (void *)_p;
}


x86 assembly (clang, -O0):
<alloc_XWindowChanges>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
mov    $0x4,%edi
call   1040 <malloc@plt>
mov    %rax,-0x8(%rbp)
cmpq   $0x0,-0x8(%rbp)
jne    1148 <alloc_XWindowChanges+0x28>
mov    $0x0,%al
call   1030 <abort@plt>
mov    -0x8(%rbp),%rax
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<alloc_XWindowChanges>:
push   %rax
mov    $0x4,%edi
call   1040 <malloc@plt>
test   %rax,%rax
je     1132 <alloc_XWindowChanges+0x12>
pop    %rcx
ret
xor    %eax,%eax
call   1030 <abort@plt>

LLVM IR (-O0):
define i8* @alloc_XWindowChanges() {
%1 = alloca i32*
%2 = call i64 @malloc(i32 4)
%3 = inttoptr i64 %2 to i32*
store i32* %3, i32** %1
%4 = load i32*, i32** %1
%5 = icmp eq i32* %4, null
br i1 %5, label %6, label %8
6: ; preds = %0
%7 = call i32 (...) @abort()
unreachable
8: ; preds = %0
%9 = load i32*, i32** %1
%10 = bitcast i32* %9 to i8*
ret i8* %10
}

LLVM IR (-O2):
define i8* @alloc_XWindowChanges() {
%1 = tail call i64 @malloc(i32 4)
%2 = icmp eq i64 %1, 0
br i1 %2, label %3, label %5
3: ; preds = %0
%4 = tail call i32 (...) @abort()
unreachable
5: ; preds = %0
%6 = inttoptr i64 %1 to i8*
ret i8* %6
}
/* Variables and functions */
int *mk_dangle();
int main(void) {
  int y;
  int *x = mk_dangle();
  y = x[5];
  y = x[-1];
  return 0;
}


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

x86 assembly (clang, -O2):
<main>:
push   %rax
xor    %eax,%eax
call   1030 <mk_dangle@plt>
xor    %eax,%eax
pop    %rcx
ret

LLVM IR (-O0):
define i32 @main() {
%1 = alloca i32
%2 = alloca i32
%3 = alloca i32*
store i32 0, i32* %1
%4 = call i32* (...) @mk_dangle()
store i32* %4, i32** %3
%5 = load i32*, i32** %3
%6 = getelementptr inbounds i32, i32* %5, i64 5
%7 = load i32, i32* %6
store i32 %7, i32* %2
%8 = load i32*, i32** %3
%9 = getelementptr inbounds i32, i32* %8, i64 -1
%10 = load i32, i32* %9
store i32 %10, i32* %2
ret i32 0
}

LLVM IR (-O2):
define i32 @main() {
%1 = tail call i32* (...) @mk_dangle()
ret i32 0
}
/* Variables and functions */
int wycc_type_flags(int);
int wycc_type_is_union(int id) {
  int flgs = wycc_type_flags(id);
  if (flgs & 8) {
    return 1;
  };
  return 0;
}


x86 assembly (clang, -O0):
<wycc_type_is_union>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
mov    %edi,-0x8(%rbp)
mov    -0x8(%rbp),%edi
call   1030 <wycc_type_flags@plt>
mov    %eax,-0xc(%rbp)
mov    -0xc(%rbp),%eax
and    $0x8,%eax
cmp    $0x0,%eax
je     1141 <wycc_type_is_union+0x31>
movl   $0x1,-0x4(%rbp)
jmp    1148 <wycc_type_is_union+0x38>
movl   $0x0,-0x4(%rbp)
mov    -0x4(%rbp),%eax
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<wycc_type_is_union>:
push   %rax
call   1030 <wycc_type_flags@plt>
shr    $0x3,%eax
and    $0x1,%eax
pop    %rcx
ret

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

LLVM IR (-O2):
define i32 @wycc_type_is_union(i32 %0) {
%2 = tail call i32 @wycc_type_flags(i32 %0)
%3 = lshr i32 %2, 3
%4 = and i32 %3, 1
ret i32 %4
}
/* Variables and functions */
int /*<<< orphan*/ printf(char *, ...);
int main(void) {
  int a = 1, b = 1;
  int a_post, pre_b;
  a_post = a++;
  pre_b = ++b;
  printf("a a_post b pre_b \n");
  printf("%1d %6d %1d %5d", a, a_post, b, pre_b);
  return 0;
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x20,%rsp
movl   $0x0,-0x4(%rbp)
movl   $0x1,-0x8(%rbp)
movl   $0x1,-0xc(%rbp)
mov    -0x8(%rbp),%eax
mov    %eax,%ecx
add    $0x1,%ecx
mov    %ecx,-0x8(%rbp)
mov    %eax,-0x10(%rbp)
mov    -0xc(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0xc(%rbp)
mov    %eax,-0x14(%rbp)
lea    0xeb2(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
mov    -0x8(%rbp),%esi
mov    -0x10(%rbp),%edx
mov    -0xc(%rbp),%ecx
mov    -0x14(%rbp),%r8d
lea    0xeaa(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
xor    %eax,%eax
add    $0x20,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %rax
lea    0xee8(%rip),%rdi
call   1030 <puts@plt>
lea    0xecc(%rip),%rdi
mov    $0x2,%esi
mov    $0x1,%edx
mov    $0x2,%ecx
mov    $0x2,%r8d
xor    %eax,%eax
call   1040 <printf@plt>
xor    %eax,%eax
pop    %rcx
ret

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

LLVM IR (-O2):
@.str.1 = [16 x i8] c"%1d %6d %1d %5d\00"
@str = [18 x i8] c"a a_post b pre_b \00"
define i32 @main() {
%1 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([18 x i8], [18 x i8]* @str, i64 0, i64 0))
%2 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([16 x i8], [16 x i8]* @.str.1, i64 0, i64 0), i32 2, i32 1, i32 2, i32 2)
ret i32 0
}
/* Type definitions */
struct bufsize {
  int dummy;
};
struct buffers {
  int dummy;
};

/* Variables and functions */
int /*<<< orphan*/ codec_bench_dec(struct buffers *, struct bufsize const *,
                                   char *);
int /*<<< orphan*/ codec_bench_enc(struct buffers *, struct bufsize const *,
                                   char *);
void codec_bench(struct buffers *b, const struct bufsize *bs) {
  codec_bench_enc(b, bs, "plain");
  codec_bench_dec(b, bs, "plain");
}


x86 assembly (clang, -O0):
<codec_bench>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
mov    %rdi,-0x8(%rbp)
mov    %rsi,-0x10(%rbp)
mov    -0x8(%rbp),%rdi
mov    -0x10(%rbp),%rsi
lea    0xec1(%rip),%rdx
call   1030 <codec_bench_enc@plt>
mov    -0x8(%rbp),%rdi
mov    -0x10(%rbp),%rsi
lea    0xead(%rip),%rdx
call   1040 <codec_bench_dec@plt>
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<codec_bench>:
push   %r15
push   %r14
push   %rbx
mov    %rsi,%r14
mov    %rdi,%rbx
lea    0xece(%rip),%r15
mov    %r15,%rdx
call   1030 <codec_bench_enc@plt>
mov    %rbx,%rdi
mov    %r14,%rsi
mov    %r15,%rdx
pop    %rbx
pop    %r14
pop    %r15
jmp    1040 <codec_bench_dec@plt>

LLVM IR (-O0):
%struct.buffers = type { i32 }
%struct.bufsize = type { i32 }
@.str = [6 x i8] c"plain\00"
define void @codec_bench(%struct.buffers* %0, %struct.bufsize* %1) {
%3 = alloca %struct.buffers*
%4 = alloca %struct.bufsize*
store %struct.buffers* %0, %struct.buffers** %3
store %struct.bufsize* %1, %struct.bufsize** %4
%5 = load %struct.buffers*, %struct.buffers** %3
%6 = load %struct.bufsize*, %struct.bufsize** %4
%7 = call i32 @codec_bench_enc(%struct.buffers* %5, %struct.bufsize* %6, i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str, i64 0, i64 0))
%8 = load %struct.buffers*, %struct.buffers** %3
%9 = load %struct.bufsize*, %struct.bufsize** %4
%10 = call i32 @codec_bench_dec(%struct.buffers* %8, %struct.bufsize* %9, i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str, i64 0, i64 0))
ret void
}

LLVM IR (-O2):
%struct.buffers = type { i32 }
%struct.bufsize = type { i32 }
@.str = [6 x i8] c"plain\00"
define void @codec_bench(%struct.buffers* %0, %struct.bufsize* %1) {
%3 = tail call i32 @codec_bench_enc(%struct.buffers* %0, %struct.bufsize* %1, i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str, i64 0, i64 0))
%4 = tail call i32 @codec_bench_dec(%struct.buffers* %0, %struct.bufsize* %1, i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str, i64 0, i64 0))
ret void
}
void ff_hevc_put_hevc_bi_pel_pixels12_10_sse4() {}


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

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

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

LLVM IR (-O2):
define void @ff_hevc_put_hevc_bi_pel_pixels12_10_sse4() {
ret void
}
/* Variables and functions */
size_t c_slist_max_size(void) { return (-1); }


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

x86 assembly (clang, -O2):
<c_slist_max_size>:
mov    $0xffffffffffffffff,%rax
ret

LLVM IR (-O0):
define i64 @c_slist_max_size() {
ret i64 -1
}

LLVM IR (-O2):
define i64 @c_slist_max_size() {
ret i64 -1
}
void ScaleRowDown38_2_Box_C() {}


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

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

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

LLVM IR (-O2):
define void @ScaleRowDown38_2_Box_C() {
ret void
}
/* Type definitions */
typedef int uint32_t;
typedef scalar_t__ uint16_t;

/* Variables and functions */
void EMACVLANRxConfigSet(uint32_t ui32Base, uint16_t ui16Tag,
                         uint32_t ui32Config) {
  ;
  (*((volatile uint32_t *)(ui32Base + 0x0000001C))) =
      ui32Config | (((uint32_t)ui16Tag) << 0);
}


x86 assembly (clang, -O0):
<EMACVLANRxConfigSet>:
push   %rbp
mov    %rsp,%rbp
mov    %edi,-0x4(%rbp)
mov    %rsi,-0x10(%rbp)
mov    %edx,-0x14(%rbp)
mov    -0x14(%rbp),%ecx
mov    -0x10(%rbp),%rax
shl    $0x0,%eax
or     %eax,%ecx
mov    -0x4(%rbp),%eax
add    $0x1c,%eax
cltq
mov    %ecx,(%rax)
pop    %rbp
ret

x86 assembly (clang, -O2):
<EMACVLANRxConfigSet>:
or     %edx,%esi
movslq %edi,%rax
mov    %esi,0x1c(%rax)
ret

LLVM IR (-O0):
define void @EMACVLANRxConfigSet(i32 %0, i64 %1, i32 %2) {
%4 = alloca i32
%5 = alloca i64
%6 = alloca i32
store i32 %0, i32* %4
store i64 %1, i64* %5
store i32 %2, i32* %6
%7 = load i32, i32* %6
%8 = load i64, i64* %5
%9 = trunc i64 %8 to i32
%10 = shl i32 %9, 0
%11 = or i32 %7, %10
%12 = load i32, i32* %4
%13 = add nsw i32 %12, 28
%14 = sext i32 %13 to i64
%15 = inttoptr i64 %14 to i32*
store volatile i32 %11, i32* %15
ret void
}

LLVM IR (-O2):
define void @EMACVLANRxConfigSet(i32 %0, i64 %1, i32 %2) {
%4 = trunc i64 %1 to i32
%5 = or i32 %4, %2
%6 = add nsw i32 %0, 28
%7 = sext i32 %6 to i64
%8 = inttoptr i64 %7 to i32*
store volatile i32 %5, i32* %8
ret void
}
/* Type definitions */
typedef int /*<<< orphan*/ ip;

/* Variables and functions */
int INET6_ADDRSTRLEN;
int anetFormatAddr(char *, size_t, char *, int);
int /*<<< orphan*/ anetPeerToString(int, char *, int, int *);
int anetFormatPeer(int fd, char *buf, size_t buf_len) {
  char ip[INET6_ADDRSTRLEN];
  int port;
  anetPeerToString(fd, ip, sizeof(ip), &port);
  return anetFormatAddr(buf, buf_len, ip, port);
}


x86 assembly (clang, -O0):
<anetFormatPeer>:
push   %rbp
mov    %rsp,%rbp
sub    $0x40,%rsp
mov    %edi,-0x4(%rbp)
mov    %rsi,-0x10(%rbp)
mov    %rdx,-0x18(%rbp)
mov    0x2eae(%rip),%rax
mov    (%rax),%eax
mov    %rsp,%rcx
mov    %rcx,-0x20(%rbp)
mov    %rax,%rcx
add    $0xf,%rcx
and    $0xfffffffffffffff0,%rcx
mov    %rsp,%rsi
sub    %rcx,%rsi
mov    %rsi,-0x38(%rbp)
mov    %rsi,%rsp
mov    %rax,-0x28(%rbp)
mov    -0x4(%rbp),%edi
mov    %eax,%edx
lea    -0x2c(%rbp),%rcx
call   1030 <anetPeerToString@plt>
mov    -0x38(%rbp),%rdx
mov    -0x10(%rbp),%rdi
mov    -0x18(%rbp),%rsi
mov    -0x2c(%rbp),%ecx
call   1040 <anetFormatAddr@plt>
mov    -0x20(%rbp),%rcx
mov    %rcx,%rsp
mov    %rbp,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<anetFormatPeer>:
push   %rbp
mov    %rsp,%rbp
push   %r15
push   %r14
push   %rbx
push   %rax
mov    %rdx,%r14
mov    %rsi,%r15
mov    0x2eb1(%rip),%rax
mov    (%rax),%edx
mov    %rsp,%rbx
mov    %rdx,%rax
add    $0xf,%rax
and    $0xfffffffffffffff0,%rax
sub    %rax,%rbx
mov    %rbx,%rsp
lea    -0x1c(%rbp),%rcx
mov    %rbx,%rsi
call   1030 <anetPeerToString@plt>
mov    -0x1c(%rbp),%ecx
mov    %r15,%rdi
mov    %r14,%rsi
mov    %rbx,%rdx
call   1040 <anetFormatAddr@plt>
lea    -0x18(%rbp),%rsp
pop    %rbx
pop    %r14
pop    %r15
pop    %rbp
ret

LLVM IR (-O0):
@INET6_ADDRSTRLEN = global i32 0
define i32 @anetFormatPeer(i32 %0, i8* %1, i64 %2) {
%4 = alloca i32
%5 = alloca i8*
%6 = alloca i64
%7 = alloca i8*
%8 = alloca i64
%9 = alloca i32
store i32 %0, i32* %4
store i8* %1, i8** %5
store i64 %2, i64* %6
%10 = load i32, i32* @INET6_ADDRSTRLEN
%11 = zext i32 %10 to i64
%12 = call i8* @llvm.stacksave()
store i8* %12, i8** %7
%13 = alloca i8, i64 %11
store i64 %11, i64* %8
%14 = load i32, i32* %4
%15 = trunc i64 %11 to i32
%16 = call i32 @anetPeerToString(i32 %14, i8* %13, i32 %15, i32* %9)
%17 = load i8*, i8** %5
%18 = load i64, i64* %6
%19 = load i32, i32* %9
%20 = call i32 @anetFormatAddr(i8* %17, i64 %18, i8* %13, i32 %19)
%21 = load i8*, i8** %7
ret i32 %20
}

LLVM IR (-O2):
@INET6_ADDRSTRLEN = global i32 0
define i32 @anetFormatPeer(i32 %0, i8* %1, i64 %2) {
%4 = alloca i32
%5 = load i32, i32* @INET6_ADDRSTRLEN
%6 = zext i32 %5 to i64
%7 = alloca i8, i64 %6
%8 = bitcast i32* %4 to i8*
%9 = call i32 @anetPeerToString(i32 %0, i8* %7, i32 %5, i32* %4)
%10 = load i32, i32* %4
%11 = call i32 @anetFormatAddr(i8* %1, i64 %2, i8* %7, i32 %10)
ret i32 %11
}
int pcg_init() {}


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

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

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

LLVM IR (-O2):
define i32 @pcg_init() {
ret i32 undef
}
unsigned int rightrot(unsigned int x, int n) {
  unsigned int t1, t2;
  int bits;
  bits = sizeof(int) * 8;
  n %= bits;
  t1 = x << n;
  t2 = x >> (bits - n);
  x = t1 | t2;
  return x;
}


x86 assembly (clang, -O0):
<rightrot>:
push   %rbp
mov    %rsp,%rbp
mov    %edi,-0x4(%rbp)
mov    %esi,-0x8(%rbp)
movl   $0x20,-0x14(%rbp)
mov    -0x14(%rbp),%ecx
mov    -0x8(%rbp),%eax
cltd
idiv   %ecx
mov    %edx,-0x8(%rbp)
mov    -0x4(%rbp),%eax
mov    -0x8(%rbp),%ecx
shl    %cl,%eax
mov    %eax,-0xc(%rbp)
mov    -0x4(%rbp),%eax
mov    -0x14(%rbp),%ecx
sub    -0x8(%rbp),%ecx
shr    %cl,%eax
mov    %eax,-0x10(%rbp)
mov    -0xc(%rbp),%eax
or     -0x10(%rbp),%eax
mov    %eax,-0x4(%rbp)
mov    -0x4(%rbp),%eax
pop    %rbp
ret

x86 assembly (clang, -O2):
<rightrot>:
mov    %esi,%ecx
mov    %edi,%eax
rol    %cl,%eax
ret

LLVM IR (-O0):
define i32 @rightrot(i32 %0, i32 %1) {
%3 = alloca i32
%4 = alloca i32
%5 = alloca i32
%6 = alloca i32
%7 = alloca i32
store i32 %0, i32* %3
store i32 %1, i32* %4
store i32 32, i32* %7
%8 = load i32, i32* %7
%9 = load i32, i32* %4
%10 = srem i32 %9, %8
store i32 %10, i32* %4
%11 = load i32, i32* %3
%12 = load i32, i32* %4
%13 = shl i32 %11, %12
store i32 %13, i32* %5
%14 = load i32, i32* %3
%15 = load i32, i32* %7
%16 = load i32, i32* %4
%17 = sub nsw i32 %15, %16
%18 = lshr i32 %14, %17
store i32 %18, i32* %6
%19 = load i32, i32* %5
%20 = load i32, i32* %6
%21 = or i32 %19, %20
store i32 %21, i32* %3
%22 = load i32, i32* %3
ret i32 %22
}

LLVM IR (-O2):
define i32 @rightrot(i32 %0, i32 %1) {
%3 = srem i32 %1, 32
%4 = shl i32 %0, %3
%5 = sub nsw i32 32, %3
%6 = lshr i32 %0, %5
%7 = or i32 %6, %4
ret i32 %7
}
/* Variables and functions */
int /*<<< orphan*/ exit(int /*<<< orphan*/);
int /*<<< orphan*/ printf(char *, char *);
void print_usage(char *name) {
  printf("Usage: %s -t <nr of threads>\n", name);
  exit(0);
}


x86 assembly (clang, -O0):
<print_usage>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
mov    %rdi,-0x8(%rbp)
mov    -0x8(%rbp),%rsi
lea    0xec9(%rip),%rdi
call   1030 <printf@plt>
xor    %edi,%edi
call   1040 <exit@plt>

x86 assembly (clang, -O2):
<print_usage>:
push   %rax
mov    %rdi,%rsi
lea    0xed5(%rip),%rdi
call   1030 <printf@plt>
xor    %edi,%edi
call   1040 <exit@plt>

LLVM IR (-O0):
@.str = [30 x i8] c"Usage: %s -t <nr of threads>\0A\00"
define void @print_usage(i8* %0) {
%2 = alloca i8*
store i8* %0, i8** %2
%3 = load i8*, i8** %2
%4 = call i32 @printf(i8* getelementptr inbounds ([30 x i8], [30 x i8]* @.str, i64 0, i64 0), i8* %3)
%5 = call i32 @exit(i32 0)
unreachable
}

LLVM IR (-O2):
@.str = [30 x i8] c"Usage: %s -t <nr of threads>\0A\00"
define void @print_usage(i8* %0) {
%2 = tail call i32 @printf(i8* getelementptr inbounds ([30 x i8], [30 x i8]* @.str, i64 0, i64 0), i8* %0)
%3 = tail call i32 @exit(i32 0)
unreachable
}
/* Type definitions */
typedef int /*<<< orphan*/ uint16_t;

/* Variables and functions */
int /*<<< orphan*/ htons(int /*<<< orphan*/);
void SETLEN(char *buffer, uint16_t len) {
  uint16_t *len_ptr = (uint16_t *)(buffer + 3);
  *len_ptr = htons(len);
}


x86 assembly (clang, -O0):
<SETLEN>:
push   %rbp
mov    %rsp,%rbp
sub    $0x20,%rsp
mov    %rdi,-0x8(%rbp)
mov    %esi,-0xc(%rbp)
mov    -0x8(%rbp),%rax
add    $0x3,%rax
mov    %rax,-0x18(%rbp)
mov    -0xc(%rbp),%edi
call   1030 <htons@plt>
mov    %eax,%ecx
mov    -0x18(%rbp),%rax
mov    %ecx,(%rax)
add    $0x20,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<SETLEN>:
push   %rbx
mov    %rdi,%rbx
mov    %esi,%edi
call   1030 <htons@plt>
mov    %eax,0x3(%rbx)
pop    %rbx
ret

LLVM IR (-O0):
define void @SETLEN(i8* %0, i32 %1) {
%3 = alloca i8*
%4 = alloca i32
%5 = alloca i32*
store i8* %0, i8** %3
store i32 %1, i32* %4
%6 = load i8*, i8** %3
%7 = getelementptr inbounds i8, i8* %6, i64 3
%8 = bitcast i8* %7 to i32*
store i32* %8, i32** %5
%9 = load i32, i32* %4
%10 = call i32 @htons(i32 %9)
%11 = load i32*, i32** %5
store i32 %10, i32* %11
ret void
}

LLVM IR (-O2):
define void @SETLEN(i8* nocapture writeonly %0, i32 %1) {
%3 = getelementptr inbounds i8, i8* %0, i64 3
%4 = bitcast i8* %3 to i32*
%5 = tail call i32 @htons(i32 %1)
store i32 %5, i32* %4
ret void
}
/* Variables and functions */
char *stralloc(int /*<<< orphan*/);
int /*<<< orphan*/ strcpy(char *, char *);
int /*<<< orphan*/ strlen(char *);
char *strsave(char *str) {
  char *sptr;
  sptr = stralloc(strlen(str));
  strcpy(sptr, str);
  return (sptr);
}


x86 assembly (clang, -O0):
<strsave>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
mov    %rdi,-0x8(%rbp)
mov    -0x8(%rbp),%rdi
call   1050 <strlen@plt>
mov    %eax,%edi
call   1040 <stralloc@plt>
mov    %rax,-0x10(%rbp)
mov    -0x10(%rbp),%rdi
mov    -0x8(%rbp),%rsi
call   1030 <strcpy@plt>
mov    -0x10(%rbp),%rax
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<strsave>:
push   %r14
push   %rbx
push   %rax
mov    %rdi,%r14
call   1050 <strlen@plt>
mov    %eax,%edi
call   1040 <stralloc@plt>
mov    %rax,%rbx
mov    %rax,%rdi
mov    %r14,%rsi
call   1030 <strcpy@plt>
mov    %rbx,%rax
add    $0x8,%rsp
pop    %rbx
pop    %r14
ret

LLVM IR (-O0):
define i8* @strsave(i8* %0) {
%2 = alloca i8*
%3 = alloca i8*
store i8* %0, i8** %2
%4 = load i8*, i8** %2
%5 = call i32 @strlen(i8* %4)
%6 = call i8* @stralloc(i32 %5)
store i8* %6, i8** %3
%7 = load i8*, i8** %3
%8 = load i8*, i8** %2
%9 = call i32 @strcpy(i8* %7, i8* %8)
%10 = load i8*, i8** %3
ret i8* %10
}

LLVM IR (-O2):
define i8* @strsave(i8* %0) {
%2 = tail call i32 @strlen(i8* %0)
%3 = tail call i8* @stralloc(i32 %2)
%4 = tail call i32 @strcpy(i8* %3, i8* %0)
ret i8* %3
}
void mc_refresh(void) {}


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

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

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

LLVM IR (-O2):
define void @mc_refresh() {
ret void
}
int fun181() { return 181; }


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

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

LLVM IR (-O0):
define i32 @fun181() {
ret i32 181
}

LLVM IR (-O2):
define i32 @fun181() {
ret i32 181
}
/* Variables and functions */
int /*<<< orphan*/ test_parser_sourcefile(char *, char *);
int /*<<< orphan*/ test_parser_verify_parse(int /*<<< orphan*/, char *, char *,
                                            char *, int /*<<< orphan*/);
void test_golang_block_comment() {
  test_parser_verify_parse(test_parser_sourcefile("go", "/*c*/"), "go", "",
                           "/*c*/", 0);
}


x86 assembly (clang, -O0):
<test_golang_block_comment>:
push   %rbp
mov    %rsp,%rbp
lea    0xed5(%rip),%rdi
lea    0xed1(%rip),%rsi
call   1030 <test_parser_sourcefile@plt>
mov    %eax,%edi
lea    0xec0(%rip),%rsi
lea    0xec1(%rip),%rdx
lea    0xeb5(%rip),%rcx
xor    %r8d,%r8d
call   1040 <test_parser_verify_parse@plt>
pop    %rbp
ret

x86 assembly (clang, -O2):
<test_golang_block_comment>:
push   %r14
push   %rbx
push   %rax
lea    0xed5(%rip),%rbx
lea    0xed1(%rip),%r14
mov    %rbx,%rdi
mov    %r14,%rsi
call   1030 <test_parser_sourcefile@plt>
lea    0xec4(%rip),%rdx
mov    %eax,%edi
mov    %rbx,%rsi
mov    %r14,%rcx
xor    %r8d,%r8d
add    $0x8,%rsp
pop    %rbx
pop    %r14
jmp    1040 <test_parser_verify_parse@plt>

LLVM IR (-O0):
@.str = [3 x i8] c"go\00"
@.str.1 = [6 x i8] c"/*c*/\00"
@.str.2 = [1 x i8] zeroinitializer
define void @test_golang_block_comment() {
%1 = call i32 @test_parser_sourcefile(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str, i64 0, i64 0), i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.1, i64 0, i64 0))
%2 = call i32 @test_parser_verify_parse(i32 %1, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str, i64 0, i64 0), i8* getelementptr inbounds ([1 x i8], [1 x i8]* @.str.2, i64 0, i64 0), i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.1, i64 0, i64 0), i32 0)
ret void
}

LLVM IR (-O2):
@.str = [3 x i8] c"go\00"
@.str.1 = [6 x i8] c"/*c*/\00"
@.str.2 = [1 x i8] zeroinitializer
define void @test_golang_block_comment() {
%1 = tail call i32 @test_parser_sourcefile(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str, i64 0, i64 0), i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.1, i64 0, i64 0))
%2 = tail call i32 @test_parser_verify_parse(i32 %1, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str, i64 0, i64 0), i8* getelementptr inbounds ([1 x i8], [1 x i8]* @.str.2, i64 0, i64 0), i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.1, i64 0, i64 0), i32 0)
ret void
}
int gl_fx_dummy_function_dd(void) { return 0; }


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

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

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

LLVM IR (-O2):
define i32 @gl_fx_dummy_function_dd() {
ret i32 0
}