xunge/DecIR huggingface dataset:
/* Variables and functions */
int /*<<< orphan*/ free(void *);
void *malloc(int);
int main() {
  void *m = malloc(2 * sizeof(void));
  free(m);
  return 0;
}


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

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

LLVM IR (-O0):
define i32 @main() {
%1 = alloca i32
%2 = alloca i8*
store i32 0, i32* %1
%3 = call i8* @malloc(i32 2)
store i8* %3, i8** %2
%4 = load i8*, i8** %2
%5 = call i32 @free(i8* %4)
ret i32 0
}

LLVM IR (-O2):
define i32 @main() {
%1 = tail call dereferenceable_or_null(2) i8* @malloc(i32 2)
%2 = tail call i32 @free(i8* %1)
ret i32 0
}
/* Variables and functions */
int /*<<< orphan*/ free(void *);
void dict_free_val(char *key, void *val, void *x) {
  extern void pdf_obj_delete(void *);
  pdf_obj_delete(val);
  if (val)
    free(val);
}


x86 assembly (clang, -O0):
<dict_free_val>:
push   %rbp
mov    %rsp,%rbp
sub    $0x20,%rsp
mov    %rdi,-0x8(%rbp)
mov    %rsi,-0x10(%rbp)
mov    %rdx,-0x18(%rbp)
mov    -0x10(%rbp),%rdi
call   1040 <pdf_obj_delete@plt>
cmpq   $0x0,-0x10(%rbp)
je     1151 <dict_free_val+0x31>
mov    -0x10(%rbp),%rdi
call   1030 <free@plt>
add    $0x20,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<dict_free_val>:
push   %rbx
mov    %rsi,%rbx
mov    %rsi,%rdi
call   1040 <pdf_obj_delete@plt>
test   %rbx,%rbx
je     113a <dict_free_val+0x1a>
mov    %rbx,%rdi
pop    %rbx
jmp    1030 <free@plt>
pop    %rbx
ret

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

LLVM IR (-O2):
define void @dict_free_val(i8* nocapture readnone %0, i8* %1, i8* nocapture readnone %2) {
tail call void @pdf_obj_delete(i8* %1)
%4 = icmp eq i8* %1, null
br i1 %4, label %7, label %5
5: ; preds = %3
%6 = tail call i32 @free(i8* %1)
br label %7
7: ; preds = %5, %3
ret void
}
IR0I1(r0, r1, x0, x1, p0, p1) short r0, r1;
short *p0, *p1;
{ (*p0) = 33; }


x86 assembly (clang, -O0):
<IR0I1>:
push   %rbp
mov    %rsp,%rbp
mov    %esi,%eax
mov    %di,%si
mov    %si,-0x6(%rbp)
mov    %ax,-0x8(%rbp)
mov    %edx,-0xc(%rbp)
mov    %ecx,-0x10(%rbp)
mov    %r8,-0x18(%rbp)
mov    %r9,-0x20(%rbp)
mov    -0x18(%rbp),%rax
movw   $0x21,(%rax)
mov    -0x4(%rbp),%eax
pop    %rbp
ret

x86 assembly (clang, -O2):
<IR0I1>:
movw   $0x21,(%r8)
ret

LLVM IR (-O0):
define i32 @IR0I1(i32 %0, i32 %1, i32 %2, i32 %3, i16* %4, i16* %5) {
%7 = alloca i32
%8 = alloca i16
%9 = alloca i16
%10 = alloca i32
%11 = alloca i32
%12 = alloca i16*
%13 = alloca i16*
%14 = trunc i32 %0 to i16
%15 = trunc i32 %1 to i16
store i16 %14, i16* %8
store i16 %15, i16* %9
store i32 %2, i32* %10
store i32 %3, i32* %11
store i16* %4, i16** %12
store i16* %5, i16** %13
%16 = load i16*, i16** %12
store i16 33, i16* %16
%17 = load i32, i32* %7
ret i32 %17
}

LLVM IR (-O2):
define i32 @IR0I1(i32 %0, i32 %1, i32 %2, i32 %3, i16* nocapture writeonly %4, i16* nocapture readnone %5) {
store i16 33, i16* %4
ret i32 undef
}
/* Variables and functions */
int /*<<< orphan*/ abort();
int /*<<< orphan*/ bar(int /*<<< orphan*/);
int /*<<< orphan*/ foo(int *);
int main() {
  int t = 0;
  bar(foo(&t));
  if (t != 1)
    abort();
  return 0;
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
movl   $0x0,-0x4(%rbp)
movl   $0x0,-0x8(%rbp)
lea    -0x8(%rbp),%rdi
call   1050 <foo@plt>
mov    %eax,%edi
call   1040 <bar@plt>
cmpl   $0x1,-0x8(%rbp)
je     1167 <main+0x37>
mov    $0x0,%al
call   1030 <abort@plt>
xor    %eax,%eax
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %rax
movl   $0x0,0x4(%rsp)
lea    0x4(%rsp),%rdi
call   1050 <foo@plt>
mov    %eax,%edi
call   1040 <bar@plt>
cmpl   $0x1,0x4(%rsp)
jne    1155 <main+0x25>
xor    %eax,%eax
pop    %rcx
ret
xor    %eax,%eax
call   1030 <abort@plt>

LLVM IR (-O0):
define i32 @main() {
%1 = alloca i32
%2 = alloca i32
store i32 0, i32* %1
store i32 0, i32* %2
%3 = call i32 @foo(i32* %2)
%4 = call i32 @bar(i32 %3)
%5 = load i32, i32* %2
%6 = icmp ne i32 %5, 1
br i1 %6, label %7, label %9
7: ; preds = %0
%8 = call i32 (...) @abort()
unreachable
9: ; preds = %0
ret i32 0
}

LLVM IR (-O2):
define i32 @main() {
%1 = alloca i32
%2 = bitcast i32* %1 to i8*
store i32 0, i32* %1
%3 = call i32 @foo(i32* %1)
%4 = call i32 @bar(i32 %3)
%5 = load i32, i32* %1
%6 = icmp eq i32 %5, 1
br i1 %6, label %9, label %7
7: ; preds = %0
%8 = call i32 (...) @abort()
unreachable
9: ; preds = %0
ret i32 0
}
void GB_AINV_f_FP64(double *z, const double *x) { (*z) = -(*x); }


x86 assembly (clang, -O0):
<GB_AINV_f_FP64>:
push   %rbp
mov    %rsp,%rbp
mov    %rdi,-0x8(%rbp)
mov    %rsi,-0x10(%rbp)
mov    -0x10(%rbp),%rax
movsd  (%rax),%xmm0
movq   %xmm0,%rax
movabs $0x8000000000000000,%rcx
xor    %rcx,%rax
movq   %rax,%xmm0
mov    -0x8(%rbp),%rax
movsd  %xmm0,(%rax)
pop    %rbp
ret

x86 assembly (clang, -O2):
<GB_AINV_f_FP64>:
movsd  (%rsi),%xmm0
xorps  0xef5(%rip),%xmm0
movlps %xmm0,(%rdi)
ret

LLVM IR (-O0):
define void @GB_AINV_f_FP64(double* %0, double* %1) {
%3 = alloca double*
%4 = alloca double*
store double* %0, double** %3
store double* %1, double** %4
%5 = load double*, double** %4
%6 = load double, double* %5
%7 = fneg double %6
%8 = load double*, double** %3
store double %7, double* %8
ret void
}

LLVM IR (-O2):
define void @GB_AINV_f_FP64(double* nocapture writeonly %0, double* nocapture %1) {
%3 = load double, double* %1
%4 = fneg double %3
store double %4, double* %0
ret void
}
/* Variables and functions */
void *allocate_something_helper1();
void *allocate_something(void) { return allocate_something_helper1(); }


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

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

LLVM IR (-O0):
define i8* @allocate_something() {
%1 = call i8* (...) @allocate_something_helper1()
ret i8* %1
}

LLVM IR (-O2):
define i8* @allocate_something() {
%1 = tail call i8* (...) @allocate_something_helper1()
ret i8* %1
}
/* Variables and functions */
int /*<<< orphan*/ isprime(unsigned int);
unsigned int ILLutil_nextprime(unsigned int x) {
  if (x < 3)
    return 3;
  x |= 1;
  while (!isprime(x))
    x += 2;
  return x;
}


x86 assembly (clang, -O0):
<ILLutil_nextprime>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
mov    %edi,-0x8(%rbp)
cmpl   $0x3,-0x8(%rbp)
jae    1131 <ILLutil_nextprime+0x21>
movl   $0x3,-0x4(%rbp)
jmp    116b <ILLutil_nextprime+0x5b>
mov    -0x8(%rbp),%eax
or     $0x1,%eax
mov    %eax,-0x8(%rbp)
mov    -0x8(%rbp),%edi
call   1030 <isprime@plt>
cmp    $0x0,%eax
setne  %al
xor    $0xff,%al
test   $0x1,%al
jne    1157 <ILLutil_nextprime+0x47>
jmp    1165 <ILLutil_nextprime+0x55>
mov    -0x8(%rbp),%eax
add    $0x2,%eax
mov    %eax,-0x8(%rbp)
jmp    113a <ILLutil_nextprime+0x2a>
mov    -0x8(%rbp),%eax
mov    %eax,-0x4(%rbp)
mov    -0x4(%rbp),%eax
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<ILLutil_nextprime>:
mov    $0x3,%eax
cmp    $0x3,%edi
jb     1134 <ILLutil_nextprime+0x24>
push   %rbx
mov    %edi,%ebx
or     $0x1,%ebx
mov    %ebx,%edi
call   1030 <isprime@plt>
add    $0x2,%ebx
test   %eax,%eax
je     1120 <ILLutil_nextprime+0x10>
add    $0xfffffffe,%ebx
mov    %ebx,%eax
pop    %rbx
ret

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

LLVM IR (-O2):
define i32 @ILLutil_nextprime(i32 %0) {
%2 = icmp ult i32 %0, 3
br i1 %2, label %10, label %3
3: ; preds = %1
%4 = or i32 %0, 1
br label %5
5: ; preds = %5, %3
%6 = phi i32 [ %4, %3 ], [ %9, %5 ]
%7 = tail call i32 @isprime(i32 %6)
%8 = icmp eq i32 %7, 0
%9 = add i32 %6, 2
br i1 %8, label %5, label %10
10: ; preds = %5, %1
%11 = phi i32 [ 3, %1 ], [ %6, %5 ]
ret i32 %11
}
/* Variables and functions */
int /*<<< orphan*/ printf(char *, char *);
void print_cool(char *who) { printf("%s is cool!\n", who); }


x86 assembly (clang, -O0):
<print_cool>:
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):
<print_cool>:
mov    %rdi,%rsi
lea    0xee6(%rip),%rdi
jmp    1030 <printf@plt>

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

LLVM IR (-O2):
@.str = [13 x i8] c"%s is cool!\0A\00"
define void @print_cool(i8* %0) {
%2 = tail call i32 @printf(i8* getelementptr inbounds ([13 x i8], [13 x i8]* @.str, i64 0, i64 0), i8* %0)
ret void
}
/* Type definitions */
struct xmalloc_stat {
  int dummy;
};

/* Variables and functions */
void *malloc(size_t);
int /*<<< orphan*/ xmalloc_stat_inc(struct xmalloc_stat *);
void *xmalloc(size_t size, struct xmalloc_stat *st) {
  void *ptr = malloc(size);
  if (ptr)
    xmalloc_stat_inc(st);
  return ptr;
}


x86 assembly (clang, -O0):
<xmalloc>:
push   %rbp
mov    %rsp,%rbp
sub    $0x20,%rsp
mov    %rdi,-0x8(%rbp)
mov    %rsi,-0x10(%rbp)
mov    -0x8(%rbp),%rdi
call   1030 <malloc@plt>
mov    %rax,-0x18(%rbp)
cmpq   $0x0,-0x18(%rbp)
je     1151 <xmalloc+0x31>
mov    -0x10(%rbp),%rdi
call   1040 <xmalloc_stat_inc@plt>
mov    -0x18(%rbp),%rax
add    $0x20,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<xmalloc>:
push   %r14
push   %rbx
push   %rax
mov    %rsi,%r14
call   1030 <malloc@plt>
mov    %rax,%rbx
test   %rax,%rax
je     113c <xmalloc+0x1c>
mov    %r14,%rdi
call   1040 <xmalloc_stat_inc@plt>
mov    %rbx,%rax
add    $0x8,%rsp
pop    %rbx
pop    %r14
ret

LLVM IR (-O0):
%struct.xmalloc_stat = type { i32 }
define i8* @xmalloc(i64 %0, %struct.xmalloc_stat* %1) {
%3 = alloca i64
%4 = alloca %struct.xmalloc_stat*
%5 = alloca i8*
store i64 %0, i64* %3
store %struct.xmalloc_stat* %1, %struct.xmalloc_stat** %4
%6 = load i64, i64* %3
%7 = call i8* @malloc(i64 %6)
store i8* %7, i8** %5
%8 = load i8*, i8** %5
%9 = icmp ne i8* %8, null
br i1 %9, label %10, label %13
10: ; preds = %2
%11 = load %struct.xmalloc_stat*, %struct.xmalloc_stat** %4
%12 = call i32 @xmalloc_stat_inc(%struct.xmalloc_stat* %11)
br label %13
13: ; preds = %10, %2
%14 = load i8*, i8** %5
ret i8* %14
}

LLVM IR (-O2):
%struct.xmalloc_stat = type { i32 }
define noalias i8* @xmalloc(i64 %0, %struct.xmalloc_stat* %1) {
%3 = tail call i8* @malloc(i64 %0)
%4 = icmp eq i8* %3, null
br i1 %4, label %7, label %5
5: ; preds = %2
%6 = tail call i32 @xmalloc_stat_inc(%struct.xmalloc_stat* %1)
br label %7
7: ; preds = %5, %2
ret i8* %3
}
void fastlogo_stop(void) {}


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

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

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

LLVM IR (-O2):
define void @fastlogo_stop() {
ret void
}
/* Variables and functions */
int /*<<< orphan*/ imprimirDivisores(int);
int /*<<< orphan*/ scanf(char *, int *);
int main(void) {
  int n;
  scanf("%d", &n);
  imprimirDivisores(n);
  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),%edi
call   1030 <imprimirDivisores@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),%edi
call   1030 <imprimirDivisores@plt>
xor    %eax,%eax
pop    %rcx
ret

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

LLVM IR (-O2):
@.str = [3 x i8] c"%d\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 = call i32 @imprimirDivisores(i32 %4)
ret i32 0
}
/* Type definitions */
typedef int /*<<< orphan*/ SSL;

/* Variables and functions */
int SSL_get_rfd(int /*<<< orphan*/ const *);
int SSL_get_fd(const SSL *s) { return (SSL_get_rfd(s)); }


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

x86 assembly (clang, -O2):
<SSL_get_fd>:
jmp    1030 <SSL_get_rfd@plt>

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

LLVM IR (-O2):
define i32 @SSL_get_fd(i32* %0) {
%2 = tail call i32 @SSL_get_rfd(i32* %0)
ret i32 %2
}
/* Type definitions */
typedef int /*<<< orphan*/ ENGINE;

/* Variables and functions */
int /*<<< orphan*/ ENGINE_add(int /*<<< orphan*/ *);
int /*<<< orphan*/ ENGINE_free(int /*<<< orphan*/ *);
int /*<<< orphan*/ ERR_clear_error();
int /*<<< orphan*/ *engine_deadcafe();
void ENGINE_load_deadcafe(void) {
  ENGINE *e = engine_deadcafe();
  if (e) {
    ENGINE_add(e);
    ENGINE_free(e);
    ERR_clear_error();
  }
}


x86 assembly (clang, -O0):
<ENGINE_load_deadcafe>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
mov    $0x0,%al
call   1050 <engine_deadcafe@plt>
mov    %rax,-0x8(%rbp)
cmpq   $0x0,-0x8(%rbp)
je     1177 <ENGINE_load_deadcafe+0x37>
mov    -0x8(%rbp),%rdi
call   1040 <ENGINE_add@plt>
mov    -0x8(%rbp),%rdi
call   1030 <ENGINE_free@plt>
mov    $0x0,%al
call   1060 <ERR_clear_error@plt>
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<ENGINE_load_deadcafe>:
push   %rbx
xor    %eax,%eax
call   1050 <engine_deadcafe@plt>
test   %rax,%rax
je     1168 <ENGINE_load_deadcafe+0x28>
mov    %rax,%rbx
mov    %rax,%rdi
call   1040 <ENGINE_add@plt>
mov    %rbx,%rdi
call   1030 <ENGINE_free@plt>
xor    %eax,%eax
pop    %rbx
jmp    1060 <ERR_clear_error@plt>
pop    %rbx
ret

LLVM IR (-O0):
define void @ENGINE_load_deadcafe() {
%1 = alloca i32*
%2 = call i32* (...) @engine_deadcafe()
store i32* %2, i32** %1
%3 = load i32*, i32** %1
%4 = icmp ne i32* %3, null
br i1 %4, label %5, label %11
5: ; preds = %0
%6 = load i32*, i32** %1
%7 = call i32 @ENGINE_add(i32* %6)
%8 = load i32*, i32** %1
%9 = call i32 @ENGINE_free(i32* %8)
%10 = call i32 (...) @ERR_clear_error()
br label %11
11: ; preds = %5, %0
ret void
}

LLVM IR (-O2):
define void @ENGINE_load_deadcafe() {
%1 = tail call i32* (...) @engine_deadcafe()
%2 = icmp eq i32* %1, null
br i1 %2, label %7, label %3
3: ; preds = %0
%4 = tail call i32 @ENGINE_add(i32* %1)
%5 = tail call i32 @ENGINE_free(i32* %1)
%6 = tail call i32 (...) @ERR_clear_error()
br label %7
7: ; preds = %3, %0
ret void
}
/* Type definitions */
typedef int uint8_t;
typedef int uint16_t;

/* Variables and functions */
void ip_set_id(uint8_t *p_ip, uint16_t id) {
  p_ip[4] = (id & 0xff00) >> 8;
  p_ip[5] = (id & 0xff);
}


x86 assembly (clang, -O0):
<ip_set_id>:
push   %rbp
mov    %rsp,%rbp
mov    %rdi,-0x8(%rbp)
mov    %esi,-0xc(%rbp)
mov    -0xc(%rbp),%ecx
and    $0xff00,%ecx
sar    $0x8,%ecx
mov    -0x8(%rbp),%rax
mov    %ecx,0x10(%rax)
mov    -0xc(%rbp),%ecx
and    $0xff,%ecx
mov    -0x8(%rbp),%rax
mov    %ecx,0x14(%rax)
pop    %rbp
ret

x86 assembly (clang, -O2):
<ip_set_id>:
mov    %esi,%eax
movzbl %ah,%ecx
mov    %ecx,0x10(%rdi)
movzbl %al,%eax
mov    %eax,0x14(%rdi)
ret

LLVM IR (-O0):
define void @ip_set_id(i32* %0, i32 %1) {
%3 = alloca i32*
%4 = alloca i32
store i32* %0, i32** %3
store i32 %1, i32* %4
%5 = load i32, i32* %4
%6 = and i32 %5, 65280
%7 = ashr i32 %6, 8
%8 = load i32*, i32** %3
%9 = getelementptr inbounds i32, i32* %8, i64 4
store i32 %7, i32* %9
%10 = load i32, i32* %4
%11 = and i32 %10, 255
%12 = load i32*, i32** %3
%13 = getelementptr inbounds i32, i32* %12, i64 5
store i32 %11, i32* %13
ret void
}

LLVM IR (-O2):
define void @ip_set_id(i32* nocapture writeonly %0, i32 %1) {
%3 = lshr i32 %1, 8
%4 = and i32 %3, 255
%5 = getelementptr inbounds i32, i32* %0, i64 4
store i32 %4, i32* %5
%6 = and i32 %1, 255
%7 = getelementptr inbounds i32, i32* %0, i64 5
store i32 %6, i32* %7
ret void
}
void xmlInitializePredefinedEntities(void) {}


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

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

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

LLVM IR (-O2):
define void @xmlInitializePredefinedEntities() {
ret void
}
/* Variables and functions */
int /*<<< orphan*/ Msp430UsartShareP__1__RawInterrupts__txDone();
void HplMsp430Usart1P__Interrupts__txDone(void) {
  Msp430UsartShareP__1__RawInterrupts__txDone();
}


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

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

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

LLVM IR (-O2):
define void @HplMsp430Usart1P__Interrupts__txDone() {
%1 = tail call i32 (...) @Msp430UsartShareP__1__RawInterrupts__txDone()
ret void
}
/* Type definitions */
typedef int uint32_t;

/* Variables and functions */
uint32_t round_up_next_highest_power2(uint32_t pos) {
  pos--;
  pos |= pos >> 1;
  pos |= pos >> 2;
  pos |= pos >> 4;
  pos |= pos >> 8;
  pos |= pos >> 16;
  pos++;
  return pos;
}


x86 assembly (clang, -O0):
<round_up_next_highest_power2>:
push   %rbp
mov    %rsp,%rbp
mov    %edi,-0x4(%rbp)
mov    -0x4(%rbp),%eax
add    $0xffffffff,%eax
mov    %eax,-0x4(%rbp)
mov    -0x4(%rbp),%eax
sar    $0x1,%eax
or     -0x4(%rbp),%eax
mov    %eax,-0x4(%rbp)
mov    -0x4(%rbp),%eax
sar    $0x2,%eax
or     -0x4(%rbp),%eax
mov    %eax,-0x4(%rbp)
mov    -0x4(%rbp),%eax
sar    $0x4,%eax
or     -0x4(%rbp),%eax
mov    %eax,-0x4(%rbp)
mov    -0x4(%rbp),%eax
sar    $0x8,%eax
or     -0x4(%rbp),%eax
mov    %eax,-0x4(%rbp)
mov    -0x4(%rbp),%eax
sar    $0x10,%eax
or     -0x4(%rbp),%eax
mov    %eax,-0x4(%rbp)
mov    -0x4(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x4(%rbp)
mov    -0x4(%rbp),%eax
pop    %rbp
ret

x86 assembly (clang, -O2):
<round_up_next_highest_power2>:
lea    -0x1(%rdi),%eax
mov    %eax,%ecx
sar    %ecx
or     %eax,%ecx
mov    %ecx,%eax
sar    $0x2,%eax
or     %ecx,%eax
mov    %eax,%ecx
sar    $0x4,%ecx
or     %eax,%ecx
mov    %ecx,%edx
sar    $0x8,%edx
or     %ecx,%edx
mov    %edx,%eax
sar    $0x10,%eax
or     %edx,%eax
add    $0x1,%eax
ret

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

LLVM IR (-O2):
define i32 @round_up_next_highest_power2(i32 %0) {
%2 = add nsw i32 %0, -1
%3 = ashr i32 %2, 1
%4 = or i32 %3, %2
%5 = ashr i32 %4, 2
%6 = or i32 %5, %4
%7 = ashr i32 %6, 4
%8 = or i32 %7, %6
%9 = ashr i32 %8, 8
%10 = or i32 %9, %8
%11 = ashr i32 %10, 16
%12 = or i32 %11, %10
%13 = add nsw i32 %12, 1
ret i32 %13
}
/* Variables and functions */
int /*<<< orphan*/ BPF_MAP_TYPE_PROG_ARRAY;
int bpf_create_map(int /*<<< orphan*/, int, int, int, int /*<<< orphan*/);
int /*<<< orphan*/ errno;
int /*<<< orphan*/ printf(char *, char *);
char *strerror(int /*<<< orphan*/);
int create_prog_array(void) {
  int map_fd;
  map_fd =
      bpf_create_map(BPF_MAP_TYPE_PROG_ARRAY, sizeof(int), sizeof(int), 4, 0);
  if (map_fd < 0)
    printf("failed to create prog_array '%s'\n", strerror(errno));
  return map_fd;
}


x86 assembly (clang, -O0):
<create_prog_array>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
mov    0x2e99(%rip),%rax
mov    (%rax),%edi
mov    $0x4,%ecx
xor    %r8d,%r8d
mov    %ecx,%esi
mov    %ecx,%edx
call   1040 <bpf_create_map@plt>
mov    %eax,-0x4(%rbp)
cmpl   $0x0,-0x4(%rbp)
jge    117c <create_prog_array+0x4c>
mov    0x2e7a(%rip),%rax
mov    (%rax),%edi
call   1050 <strerror@plt>
mov    %rax,%rsi
lea    0xe89(%rip),%rdi
call   1030 <printf@plt>
mov    -0x4(%rbp),%eax
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<create_prog_array>:
push   %rbx
mov    0x2ea0(%rip),%rax
mov    (%rax),%edi
mov    $0x4,%esi
mov    $0x4,%edx
mov    $0x4,%ecx
xor    %r8d,%r8d
call   1040 <bpf_create_map@plt>
mov    %eax,%ebx
test   %eax,%eax
jns    1174 <create_prog_array+0x44>
mov    0x2e82(%rip),%rax
mov    (%rax),%edi
call   1050 <strerror@plt>
lea    0xe94(%rip),%rdi
mov    %rax,%rsi
call   1030 <printf@plt>
mov    %ebx,%eax
pop    %rbx
ret

LLVM IR (-O0):
@BPF_MAP_TYPE_PROG_ARRAY = global i32 0
@.str = [34 x i8] c"failed to create prog_array '%s'\0A\00"
@errno = global i32 0
define i32 @create_prog_array() {
%1 = alloca i32
%2 = load i32, i32* @BPF_MAP_TYPE_PROG_ARRAY
%3 = call i32 @bpf_create_map(i32 %2, i32 4, i32 4, i32 4, i32 0)
store i32 %3, i32* %1
%4 = load i32, i32* %1
%5 = icmp slt i32 %4, 0
br i1 %5, label %6, label %10
6: ; preds = %0
%7 = load i32, i32* @errno
%8 = call i8* @strerror(i32 %7)
%9 = call i32 @printf(i8* getelementptr inbounds ([34 x i8], [34 x i8]* @.str, i64 0, i64 0), i8* %8)
br label %10
10: ; preds = %6, %0
%11 = load i32, i32* %1
ret i32 %11
}

LLVM IR (-O2):
@BPF_MAP_TYPE_PROG_ARRAY = global i32 0
@.str = [34 x i8] c"failed to create prog_array '%s'\0A\00"
@errno = global i32 0
define i32 @create_prog_array() {
%1 = load i32, i32* @BPF_MAP_TYPE_PROG_ARRAY
%2 = tail call i32 @bpf_create_map(i32 %1, i32 4, i32 4, i32 4, i32 0)
%3 = icmp slt i32 %2, 0
br i1 %3, label %4, label %8
4: ; preds = %0
%5 = load i32, i32* @errno
%6 = tail call i8* @strerror(i32 %5)
%7 = tail call i32 @printf(i8* getelementptr inbounds ([34 x i8], [34 x i8]* @.str, i64 0, i64 0), i8* %6)
br label %8
8: ; preds = %4, %0
ret i32 %2
}
/* Type definitions */
typedef int /*<<< orphan*/ uint32_t;

/* Variables and functions */
int /*<<< orphan*/ _Nios2_Set_ctlreg_config(int /*<<< orphan*/);
void _Nios2_MPU_Restore(uint32_t config) { _Nios2_Set_ctlreg_config(config); }


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

x86 assembly (clang, -O2):
<_Nios2_MPU_Restore>:
jmp    1030 <_Nios2_Set_ctlreg_config@plt>

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

LLVM IR (-O2):
define void @_Nios2_MPU_Restore(i32 %0) {
%2 = tail call i32 @_Nios2_Set_ctlreg_config(i32 %0)
ret void
}
int even_ones(unsigned x) {
  x ^= x >> 16;
  x ^= x >> 8;
  x ^= x >> 4;
  x ^= x >> 2;
  x ^= x >> 1;
  return !(x & 1);
}


x86 assembly (clang, -O0):
<even_ones>:
push   %rbp
mov    %rsp,%rbp
mov    %edi,-0x4(%rbp)
mov    -0x4(%rbp),%eax
shr    $0x10,%eax
xor    -0x4(%rbp),%eax
mov    %eax,-0x4(%rbp)
mov    -0x4(%rbp),%eax
shr    $0x8,%eax
xor    -0x4(%rbp),%eax
mov    %eax,-0x4(%rbp)
mov    -0x4(%rbp),%eax
shr    $0x4,%eax
xor    -0x4(%rbp),%eax
mov    %eax,-0x4(%rbp)
mov    -0x4(%rbp),%eax
shr    $0x2,%eax
xor    -0x4(%rbp),%eax
mov    %eax,-0x4(%rbp)
mov    -0x4(%rbp),%eax
shr    $0x1,%eax
xor    -0x4(%rbp),%eax
mov    %eax,-0x4(%rbp)
mov    -0x4(%rbp),%eax
and    $0x1,%eax
cmp    $0x0,%eax
setne  %al
xor    $0xff,%al
and    $0x1,%al
movzbl %al,%eax
pop    %rbp
ret

x86 assembly (clang, -O2):
<even_ones>:
mov    %edi,%eax
shr    $0x10,%eax
xor    %edi,%eax
mov    %eax,%ecx
shr    $0x8,%ecx
xor    %eax,%ecx
mov    %ecx,%eax
shr    $0x4,%eax
xor    %ecx,%eax
mov    %eax,%ecx
shr    $0x2,%ecx
xor    %eax,%ecx
mov    %ecx,%eax
shr    %eax
xor    %ecx,%eax
not    %eax
and    $0x1,%eax
ret

LLVM IR (-O0):
define i32 @even_ones(i32 %0) {
%2 = alloca i32
store i32 %0, i32* %2
%3 = load i32, i32* %2
%4 = lshr i32 %3, 16
%5 = load i32, i32* %2
%6 = xor i32 %5, %4
store i32 %6, i32* %2
%7 = load i32, i32* %2
%8 = lshr i32 %7, 8
%9 = load i32, i32* %2
%10 = xor i32 %9, %8
store i32 %10, i32* %2
%11 = load i32, i32* %2
%12 = lshr i32 %11, 4
%13 = load i32, i32* %2
%14 = xor i32 %13, %12
store i32 %14, i32* %2
%15 = load i32, i32* %2
%16 = lshr i32 %15, 2
%17 = load i32, i32* %2
%18 = xor i32 %17, %16
store i32 %18, i32* %2
%19 = load i32, i32* %2
%20 = lshr i32 %19, 1
%21 = load i32, i32* %2
%22 = xor i32 %21, %20
store i32 %22, i32* %2
%23 = load i32, i32* %2
%24 = and i32 %23, 1
%25 = icmp ne i32 %24, 0
%26 = xor i1 %25, true
%27 = zext i1 %26 to i32
ret i32 %27
}

LLVM IR (-O2):
define i32 @even_ones(i32 %0) {
%2 = lshr i32 %0, 16
%3 = xor i32 %2, %0
%4 = lshr i32 %3, 8
%5 = xor i32 %4, %3
%6 = lshr i32 %5, 4
%7 = xor i32 %6, %5
%8 = lshr i32 %7, 2
%9 = xor i32 %8, %7
%10 = lshr i32 %9, 1
%11 = xor i32 %10, %9
%12 = and i32 %11, 1
%13 = xor i32 %12, 1
ret i32 %13
}
/* Variables and functions */
int dup2(int, int);
int /*<<< orphan*/ unix_error(char *);
int Dup2(int fd1, int fd2) {
  int n;
  if ((n = dup2(fd1, fd2)) < 0)
    unix_error("Dup2 error");
  return n;
}


x86 assembly (clang, -O0):
<Dup2>:
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 <dup2@plt>
mov    %eax,-0xc(%rbp)
cmp    $0x0,%eax
jge    1151 <Dup2+0x31>
lea    0xeb4(%rip),%rdi
call   1040 <unix_error@plt>
mov    -0xc(%rbp),%eax
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<Dup2>:
push   %rbx
call   1030 <dup2@plt>
mov    %eax,%ebx
test   %eax,%eax
jns    1138 <Dup2+0x18>
lea    0xecd(%rip),%rdi
call   1040 <unix_error@plt>
mov    %ebx,%eax
pop    %rbx
ret

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

LLVM IR (-O2):
@.str = [11 x i8] c"Dup2 error\00"
define i32 @Dup2(i32 %0, i32 %1) {
%3 = tail call i32 @dup2(i32 %0, i32 %1)
%4 = icmp slt i32 %3, 0
br i1 %4, label %5, label %7
5: ; preds = %2
%6 = tail call i32 @unix_error(i8* getelementptr inbounds ([11 x i8], [11 x i8]* @.str, i64 0, i64 0))
br label %7
7: ; preds = %5, %2
ret i32 %3
}
float test_tanhf(float x) { return __builtin_tanhf(x); }


x86 assembly (clang, -O0):
<test_tanhf>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
movss  %xmm0,-0x4(%rbp)
movss  -0x4(%rbp),%xmm0
call   1030 <tanhf@plt>
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<test_tanhf>:
jmp    1030 <tanhf@plt>

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

LLVM IR (-O2):
define float @test_tanhf(float %0) {
%2 = tail call float @tanhf(float %0)
ret float %2
}
void pcp_print_net_eip6_stats(struct activity *a, int curr) {}


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

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

LLVM IR (-O0):
%struct.activity = type opaque
define void @pcp_print_net_eip6_stats(%struct.activity* %0, i32 %1) {
%3 = alloca %struct.activity*
%4 = alloca i32
store %struct.activity* %0, %struct.activity** %3
store i32 %1, i32* %4
ret void
}

LLVM IR (-O2):
%struct.activity = type opaque
define void @pcp_print_net_eip6_stats(%struct.activity* nocapture %0, i32 %1) {
ret void
}
char *itoa(unsigned i) {
  static char a[3 * sizeof(int)];
  char *p = a + sizeof(a) - 1;
  do {
    *--p = '0' + i % 10;
  } while ((i /= 10) > 0);
  return p;
}


x86 assembly (clang, -O0):
<itoa>:
push   %rbp
mov    %rsp,%rbp
mov    %edi,-0x4(%rbp)
lea    0x2f13(%rip),%rax
add    $0xb,%rax
mov    %rax,-0x10(%rbp)
mov    -0x4(%rbp),%eax
mov    $0xa,%ecx
xor    %edx,%edx
div    %ecx
add    $0x30,%edx
mov    %dl,%cl
mov    -0x10(%rbp),%rax
mov    %rax,%rdx
add    $0xffffffffffffffff,%rdx
mov    %rdx,-0x10(%rbp)
mov    %cl,-0x1(%rax)
mov    -0x4(%rbp),%eax
mov    $0xa,%ecx
xor    %edx,%edx
div    %ecx
mov    %eax,-0x4(%rbp)
cmp    $0x0,%eax
ja     1116 <itoa+0x16>
mov    -0x10(%rbp),%rax
pop    %rbp
ret

x86 assembly (clang, -O2):
<itoa>:
lea    0x2f25(%rip),%rax
mov    $0xcccccccd,%r8d
nopl   (%rax)
mov    %edi,%edx
imul   %r8,%rdx
shr    $0x23,%rdx
lea    (%rdx,%rdx,1),%esi
lea    (%rsi,%rsi,4),%esi
mov    %edi,%ecx
sub    %esi,%ecx
or     $0x30,%cl
mov    %cl,-0x1(%rax)
add    $0xffffffffffffffff,%rax
cmp    $0x9,%edi
mov    %edx,%edi
ja     1110 <itoa+0x10>
ret

LLVM IR (-O0):
@itoa.a = internal global [12 x i8] zeroinitializer
define i8* @itoa(i32 %0) {
%2 = alloca i32
%3 = alloca i8*
store i32 %0, i32* %2
store i8* getelementptr inbounds ([12 x i8], [12 x i8]* @itoa.a, i64 1, i64 -1), i8** %3
br label %4
4: ; preds = %11, %1
%5 = load i32, i32* %2
%6 = urem i32 %5, 10
%7 = add i32 48, %6
%8 = trunc i32 %7 to i8
%9 = load i8*, i8** %3
%10 = getelementptr inbounds i8, i8* %9, i32 -1
store i8* %10, i8** %3
store i8 %8, i8* %10
br label %11
11: ; preds = %4
%12 = load i32, i32* %2
%13 = udiv i32 %12, 10
store i32 %13, i32* %2
%14 = icmp ugt i32 %13, 0
br i1 %14, label %4, label %15
15: ; preds = %11
%16 = load i8*, i8** %3
ret i8* %16
}

LLVM IR (-O2):
@itoa.a = internal global [12 x i8] zeroinitializer
define i8* @itoa(i32 %0) {
br label %2
2: ; preds = %2, %1
%3 = phi i32 [ %0, %1 ], [ %9, %2 ]
%4 = phi i8* [ getelementptr inbounds ([12 x i8], [12 x i8]* @itoa.a, i64 0, i64 11), %1 ], [ %8, %2 ]
%5 = urem i32 %3, 10
%6 = trunc i32 %5 to i8
%7 = or i8 %6, 48
%8 = getelementptr inbounds i8, i8* %4, i64 -1
store i8 %7, i8* %8
%9 = udiv i32 %3, 10
%10 = icmp ult i32 %3, 10
br i1 %10, label %11, label %2
11: ; preds = %2
ret i8* %8
}
/* Variables and functions */
int sys_setpgid(int /*<<< orphan*/, int /*<<< orphan*/);
int sys_setpgrp() { return sys_setpgid(0, 0); }


x86 assembly (clang, -O0):
<sys_setpgrp>:
push   %rbp
mov    %rsp,%rbp
xor    %esi,%esi
mov    %esi,%edi
call   1030 <sys_setpgid@plt>
pop    %rbp
ret

x86 assembly (clang, -O2):
<sys_setpgrp>:
xor    %edi,%edi
xor    %esi,%esi
jmp    1030 <sys_setpgid@plt>

LLVM IR (-O0):
define i32 @sys_setpgrp() {
%1 = call i32 @sys_setpgid(i32 0, i32 0)
ret i32 %1
}

LLVM IR (-O2):
define i32 @sys_setpgrp() {
%1 = tail call i32 @sys_setpgid(i32 0, i32 0)
ret i32 %1
}
void av_get_pcm_codec() {}


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

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

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

LLVM IR (-O2):
define void @av_get_pcm_codec() {
ret void
}
void d2i_DIRECTORYSTRING(void) {}


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

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

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

LLVM IR (-O2):
define void @d2i_DIRECTORYSTRING() {
ret void
}
/* Variables and functions */
int mprotect(void *addr __attribute__((unused)),
             size_t len __attribute__((unused)),
             int prot __attribute__((unused))) {
  return 0;
}


x86 assembly (clang, -O0):
<mprotect>:
push   %rbp
mov    %rsp,%rbp
mov    %rdi,-0x8(%rbp)
mov    %rsi,-0x10(%rbp)
mov    %edx,-0x14(%rbp)
xor    %eax,%eax
pop    %rbp
ret

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

LLVM IR (-O0):
define i32 @mprotect(i8* %0, i64 %1, i32 %2) {
%4 = alloca i8*
%5 = alloca i64
%6 = alloca i32
store i8* %0, i8** %4
store i64 %1, i64* %5
store i32 %2, i32* %6
ret i32 0
}

LLVM IR (-O2):
define i32 @mprotect(i8* nocapture readnone %0, i64 %1, i32 %2) {
ret i32 0
}
/* Variables and functions */
int /*<<< orphan*/ kprintf(char *, int);
void isrHandle15() { kprintf("ISR %d.\n", 15); }


x86 assembly (clang, -O0):
<isrHandle15>:
push   %rbp
mov    %rsp,%rbp
lea    0xee5(%rip),%rdi
mov    $0xf,%esi
call   1030 <kprintf@plt>
pop    %rbp
ret

x86 assembly (clang, -O2):
<isrHandle15>:
lea    0xee9(%rip),%rdi
mov    $0xf,%esi
jmp    1030 <kprintf@plt>

LLVM IR (-O0):
@.str = [9 x i8] c"ISR %d.\0A\00"
define void @isrHandle15() {
%1 = call i32 @kprintf(i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str, i64 0, i64 0), i32 15)
ret void
}

LLVM IR (-O2):
@.str = [9 x i8] c"ISR %d.\0A\00"
define void @isrHandle15() {
%1 = tail call i32 @kprintf(i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str, i64 0, i64 0), i32 15)
ret void
}
/* Variables and functions */
int /*<<< orphan*/ printf(char *, char *);
void print(char *str) { printf("hello %s\n", str); }


x86 assembly (clang, -O0):
<print>:
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):
<print>:
mov    %rdi,%rsi
lea    0xee6(%rip),%rdi
jmp    1030 <printf@plt>

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

LLVM IR (-O2):
@.str = [10 x i8] c"hello %s\0A\00"
define void @print(i8* %0) {
%2 = tail call i32 @printf(i8* getelementptr inbounds ([10 x i8], [10 x i8]* @.str, i64 0, i64 0), i8* %0)
ret void
}
int load_average_get_cpus() { return 1; }


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

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

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

LLVM IR (-O2):
define i32 @load_average_get_cpus() {
ret i32 1
}
/* Variables and functions */
double EvalAngCor_alpha1_3minus_2plus_15097_L1(double);
double funcAngCor_alpha1_3minus_2plus_15097_L1(double *x, double *par) {
  double result;
  result = par[0] * EvalAngCor_alpha1_3minus_2plus_15097_L1(x[0]);
  return result;
}


x86 assembly (clang, -O0):
<funcAngCor_alpha1_3minus_2plus_15097_L1>:
push   %rbp
mov    %rsp,%rbp
sub    $0x20,%rsp
mov    %rdi,-0x8(%rbp)
mov    %rsi,-0x10(%rbp)
mov    -0x10(%rbp),%rax
movsd  (%rax),%xmm0
movsd  %xmm0,-0x20(%rbp)
mov    -0x8(%rbp),%rax
movsd  (%rax),%xmm0
call   1030 <EvalAngCor_alpha1_3minus_2plus_15097_L1@plt>
movaps %xmm0,%xmm1
movsd  -0x20(%rbp),%xmm0
mulsd  %xmm1,%xmm0
movsd  %xmm0,-0x18(%rbp)
movsd  -0x18(%rbp),%xmm0
add    $0x20,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<funcAngCor_alpha1_3minus_2plus_15097_L1>:
push   %rax
movsd  (%rsi),%xmm0
movsd  %xmm0,(%rsp)
movsd  (%rdi),%xmm0
call   1030 <EvalAngCor_alpha1_3minus_2plus_15097_L1@plt>
mulsd  (%rsp),%xmm0
pop    %rax
ret

LLVM IR (-O0):
define double @funcAngCor_alpha1_3minus_2plus_15097_L1(double* %0, double* %1) {
%3 = alloca double*
%4 = alloca double*
%5 = alloca double
store double* %0, double** %3
store double* %1, double** %4
%6 = load double*, double** %4
%7 = getelementptr inbounds double, double* %6, i64 0
%8 = load double, double* %7
%9 = load double*, double** %3
%10 = getelementptr inbounds double, double* %9, i64 0
%11 = load double, double* %10
%12 = call double @EvalAngCor_alpha1_3minus_2plus_15097_L1(double %11)
%13 = fmul double %8, %12
store double %13, double* %5
%14 = load double, double* %5
ret double %14
}

LLVM IR (-O2):
define double @funcAngCor_alpha1_3minus_2plus_15097_L1(double* nocapture %0, double* nocapture %1) {
%3 = load double, double* %1
%4 = load double, double* %0
%5 = tail call double @EvalAngCor_alpha1_3minus_2plus_15097_L1(double %4)
%6 = fmul double %3, %5
ret double %6
}
struct rpn_plugin_info *rpn_plugin_info(
    struct rpn_plugin_info *(*info_link)(char *, char *, char *, double)) {
  return info_link(
      "Extended Mean Support", "Ian Duncan",
      "Provides support for harmonic, geometric, and quadratic means.", 1.0);
}


x86 assembly (clang, -O0):
<rpn_plugin_info>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
mov    %rdi,-0x8(%rbp)
lea    0xef5(%rip),%rdi
lea    0xf04(%rip),%rsi
lea    0xf08(%rip),%rdx
movsd  0xed7(%rip),%xmm0
call   *-0x8(%rbp)
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<rpn_plugin_info>:
mov    %rdi,%rax
lea    0xefe(%rip),%rdi
lea    0xf0d(%rip),%rsi
lea    0xf11(%rip),%rdx
movsd  0xee0(%rip),%xmm0
jmp    *%rax

LLVM IR (-O0):
%struct.rpn_plugin_info = type opaque
@.str = [22 x i8] c"Extended Mean Support\00"
@.str.1 = [11 x i8] c"Ian Duncan\00"
@.str.2 = [63 x i8] c"Provides support for harmonic, geometric, and quadratic means.\00"
define %struct.rpn_plugin_info* @rpn_plugin_info(%struct.rpn_plugin_info* (i8*, i8*, i8*, double)* %0) {
%2 = alloca %struct.rpn_plugin_info* (i8*, i8*, i8*, double)*
store %struct.rpn_plugin_info* (i8*, i8*, i8*, double)* %0, %struct.rpn_plugin_info* (i8*, i8*, i8*, double)** %2
%3 = load %struct.rpn_plugin_info* (i8*, i8*, i8*, double)*, %struct.rpn_plugin_info* (i8*, i8*, i8*, double)** %2
%4 = call %struct.rpn_plugin_info* %3(i8* getelementptr inbounds ([22 x i8], [22 x i8]* @.str, i64 0, i64 0), i8* getelementptr inbounds ([11 x i8], [11 x i8]* @.str.1, i64 0, i64 0), i8* getelementptr inbounds ([63 x i8], [63 x i8]* @.str.2, i64 0, i64 0), double 1.000000e+00)
ret %struct.rpn_plugin_info* %4
}

LLVM IR (-O2):
%struct.rpn_plugin_info = type opaque
@.str = [22 x i8] c"Extended Mean Support\00"
@.str.1 = [11 x i8] c"Ian Duncan\00"
@.str.2 = [63 x i8] c"Provides support for harmonic, geometric, and quadratic means.\00"
define %struct.rpn_plugin_info* @rpn_plugin_info(%struct.rpn_plugin_info* (i8*, i8*, i8*, double)* nocapture %0) {
%2 = tail call %struct.rpn_plugin_info* %0(i8* getelementptr inbounds ([22 x i8], [22 x i8]* @.str, i64 0, i64 0), i8* getelementptr inbounds ([11 x i8], [11 x i8]* @.str.1, i64 0, i64 0), i8* getelementptr inbounds ([63 x i8], [63 x i8]* @.str.2, i64 0, i64 0), double 1.000000e+00)
ret %struct.rpn_plugin_info* %2
}
/* Type definitions */
struct Context {
  int dummy;
};

/* Variables and functions */
long pop_to_long();
int /*<<< orphan*/ push_from_long(long);
void builtin_add(struct Context *ctx, unsigned int stack_track) {
  long result;
  for (result = 0; stack_track; stack_track--)
    result += pop_to_long();
  push_from_long(result);
}


x86 assembly (clang, -O0):
<builtin_add>:
push   %rbp
mov    %rsp,%rbp
sub    $0x20,%rsp
mov    %rdi,-0x8(%rbp)
mov    %esi,-0xc(%rbp)
movq   $0x0,-0x18(%rbp)
cmpl   $0x0,-0xc(%rbp)
je     115e <builtin_add+0x3e>
mov    $0x0,%al
call   1030 <pop_to_long@plt>
add    -0x18(%rbp),%rax
mov    %rax,-0x18(%rbp)
mov    -0xc(%rbp),%eax
add    $0xffffffff,%eax
mov    %eax,-0xc(%rbp)
jmp    1137 <builtin_add+0x17>
mov    -0x18(%rbp),%rdi
call   1040 <push_from_long@plt>
add    $0x20,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<builtin_add>:
push   %r14
push   %rbx
push   %rax
test   %esi,%esi
je     1141 <builtin_add+0x21>
mov    %esi,%ebx
xor    %r14d,%r14d
nopl   (%rax)
xor    %eax,%eax
call   1030 <pop_to_long@plt>
add    %rax,%r14
add    $0xffffffff,%ebx
jne    1130 <builtin_add+0x10>
jmp    1144 <builtin_add+0x24>
xor    %r14d,%r14d
mov    %r14,%rdi
add    $0x8,%rsp
pop    %rbx
pop    %r14
jmp    1040 <push_from_long@plt>

LLVM IR (-O0):
%struct.Context = type { i32 }
define void @builtin_add(%struct.Context* %0, i32 %1) {
%3 = alloca %struct.Context*
%4 = alloca i32
%5 = alloca i64
store %struct.Context* %0, %struct.Context** %3
store i32 %1, i32* %4
store i64 0, i64* %5
br label %6
6: ; preds = %13, %2
%7 = load i32, i32* %4
%8 = icmp ne i32 %7, 0
br i1 %8, label %9, label %16
9: ; preds = %6
%10 = call i64 (...) @pop_to_long()
%11 = load i64, i64* %5
%12 = add nsw i64 %11, %10
store i64 %12, i64* %5
br label %13
13: ; preds = %9
%14 = load i32, i32* %4
%15 = add i32 %14, -1
store i32 %15, i32* %4
br label %6
16: ; preds = %6
%17 = load i64, i64* %5
%18 = call i32 @push_from_long(i64 %17)
ret void
}

LLVM IR (-O2):
%struct.Context = type { i32 }
define void @builtin_add(%struct.Context* nocapture readnone %0, i32 %1) {
%3 = icmp eq i32 %1, 0
br i1 %3, label %11, label %4
4: ; preds = %2, %4
%5 = phi i64 [ %8, %4 ], [ 0, %2 ]
%6 = phi i32 [ %9, %4 ], [ %1, %2 ]
%7 = tail call i64 (...) @pop_to_long()
%8 = add nsw i64 %7, %5
%9 = add i32 %6, -1
%10 = icmp eq i32 %9, 0
br i1 %10, label %11, label %4
11: ; preds = %4, %2
%12 = phi i64 [ 0, %2 ], [ %8, %4 ]
%13 = tail call i32 @push_from_long(i64 %12)
ret void
}
int fa(void *fp __attribute__((unused)), char *s __attribute__((unused)),
       int n __attribute__((unused))) {}


x86 assembly (clang, -O0):
<fa>:
push   %rbp
mov    %rsp,%rbp
mov    %rdi,-0x10(%rbp)
mov    %rsi,-0x18(%rbp)
mov    %edx,-0x1c(%rbp)
mov    -0x4(%rbp),%eax
pop    %rbp
ret

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

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

LLVM IR (-O2):
define i32 @fa(i8* nocapture readnone %0, i8* nocapture readnone %1, i32 %2) {
ret i32 undef
}
/* Variables and functions */
int /*<<< orphan*/ printf(char *, char);
int main() {
  char ch = 'S';
  char ch2 = 'O';
  char ch3 = 'S';
  printf("Отг: %c\n ", ch);
  printf("Отг: %c\n ", ch2);
  printf("Отг: %c\n", ch3);
  return 0;
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
movl   $0x0,-0x4(%rbp)
movb   $0x53,-0x5(%rbp)
movb   $0x4f,-0x6(%rbp)
movb   $0x53,-0x7(%rbp)
lea    0xece(%rip),%rdi
movsbl -0x5(%rbp),%esi
call   1030 <printf@plt>
lea    0xebe(%rip),%rdi
movsbl -0x6(%rbp),%esi
call   1030 <printf@plt>
lea    0xebb(%rip),%rdi
movsbl -0x7(%rbp),%esi
call   1030 <printf@plt>
xor    %eax,%eax
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %rbx
lea    0xee8(%rip),%rbx
mov    %rbx,%rdi
mov    $0x53,%esi
call   1030 <printf@plt>
mov    %rbx,%rdi
mov    $0x4f,%esi
call   1030 <printf@plt>
lea    0xed4(%rip),%rdi
mov    $0x53,%esi
call   1030 <printf@plt>
xor    %eax,%eax
pop    %rbx
ret

LLVM IR (-O0):
@.str = [13 x i8] c"\D0\9E\D1\82\D0\B3: %c\0A \00"
@.str.1 = [12 x i8] c"\D0\9E\D1\82\D0\B3: %c\0A\00"
define i32 @main() {
%1 = alloca i32
%2 = alloca i8
%3 = alloca i8
%4 = alloca i8
store i32 0, i32* %1
store i8 83, i8* %2
store i8 79, i8* %3
store i8 83, i8* %4
%5 = load i8, i8* %2
%6 = call i32 @printf(i8* getelementptr inbounds ([13 x i8], [13 x i8]* @.str, i64 0, i64 0), i8 signext %5)
%7 = load i8, i8* %3
%8 = call i32 @printf(i8* getelementptr inbounds ([13 x i8], [13 x i8]* @.str, i64 0, i64 0), i8 signext %7)
%9 = load i8, i8* %4
%10 = call i32 @printf(i8* getelementptr inbounds ([12 x i8], [12 x i8]* @.str.1, i64 0, i64 0), i8 signext %9)
ret i32 0
}

LLVM IR (-O2):
@.str = [13 x i8] c"\D0\9E\D1\82\D0\B3: %c\0A \00"
@.str.1 = [12 x i8] c"\D0\9E\D1\82\D0\B3: %c\0A\00"
define i32 @main() {
%1 = tail call i32 @printf(i8* getelementptr inbounds ([13 x i8], [13 x i8]* @.str, i64 0, i64 0), i8 signext 83)
%2 = tail call i32 @printf(i8* getelementptr inbounds ([13 x i8], [13 x i8]* @.str, i64 0, i64 0), i8 signext 79)
%3 = tail call i32 @printf(i8* getelementptr inbounds ([12 x i8], [12 x i8]* @.str.1, i64 0, i64 0), i8 signext 83)
ret i32 0
}
/* Type definitions */
typedef int /*<<< orphan*/ asn1_ps_func;
typedef int /*<<< orphan*/ BIO;

/* Variables and functions */
int /*<<< orphan*/ BIO_C_GET_SUFFIX;
int asn1_bio_get_ex(int /*<<< orphan*/ *, int /*<<< orphan*/,
                    int /*<<< orphan*/ **, int /*<<< orphan*/ **);
int BIO_asn1_get_suffix(BIO *b, asn1_ps_func **psuffix,
                        asn1_ps_func **psuffix_free) {
  return asn1_bio_get_ex(b, BIO_C_GET_SUFFIX, psuffix, psuffix_free);
}


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

x86 assembly (clang, -O2):
<BIO_asn1_get_suffix>:
mov    %rdx,%rcx
mov    %rsi,%rdx
mov    0x2ec3(%rip),%rax
mov    (%rax),%esi
jmp    1030 <asn1_bio_get_ex@plt>

LLVM IR (-O0):
@BIO_C_GET_SUFFIX = global i32 0
define i32 @BIO_asn1_get_suffix(i32* %0, i32** %1, i32** %2) {
%4 = alloca i32*
%5 = alloca i32**
%6 = alloca i32**
store i32* %0, i32** %4
store i32** %1, i32*** %5
store i32** %2, i32*** %6
%7 = load i32*, i32** %4
%8 = load i32, i32* @BIO_C_GET_SUFFIX
%9 = load i32**, i32*** %5
%10 = load i32**, i32*** %6
%11 = call i32 @asn1_bio_get_ex(i32* %7, i32 %8, i32** %9, i32** %10)
ret i32 %11
}

LLVM IR (-O2):
@BIO_C_GET_SUFFIX = global i32 0
define i32 @BIO_asn1_get_suffix(i32* %0, i32** %1, i32** %2) {
%4 = load i32, i32* @BIO_C_GET_SUFFIX
%5 = tail call i32 @asn1_bio_get_ex(i32* %0, i32 %4, i32** %1, i32** %2)
ret i32 %5
}
/* Type definitions */
typedef scalar_t__ uint32_t;

/* Variables and functions */
scalar_t__ __stdfix_sat_uhr(scalar_t__);
uint32_t __stdfix_ssub_uhr(uint32_t x, uint32_t y) {
  return (__stdfix_sat_uhr((uint32_t)x - (uint32_t)y));
}


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

x86 assembly (clang, -O2):
<__stdfix_ssub_uhr>:
sub    %rsi,%rdi
jmp    1030 <__stdfix_sat_uhr@plt>

LLVM IR (-O0):
define i64 @__stdfix_ssub_uhr(i64 %0, i64 %1) {
%3 = alloca i64
%4 = alloca i64
store i64 %0, i64* %3
store i64 %1, i64* %4
%5 = load i64, i64* %3
%6 = load i64, i64* %4
%7 = sub nsw i64 %5, %6
%8 = call i64 @__stdfix_sat_uhr(i64 %7)
ret i64 %8
}

LLVM IR (-O2):
define i64 @__stdfix_ssub_uhr(i64 %0, i64 %1) {
%3 = sub nsw i64 %0, %1
%4 = tail call i64 @__stdfix_sat_uhr(i64 %3)
ret i64 %4
}