xunge/DecIR huggingface dataset:
int strxfrm(char *strDest, const char *strSource, int count) { return 0; }


x86 assembly (clang, -O0):
<strxfrm>:
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):
<strxfrm>:
xor    %eax,%eax
ret

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

LLVM IR (-O2):
define i32 @strxfrm(i8* nocapture readnone %0, i8* nocapture readnone %1, i32 %2) {
ret i32 0
}
/* Variables and functions */
int /*<<< orphan*/ printf(char *, char *);
void osinit(char *banner) { printf("%s\n", banner); }


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

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

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

/* Variables and functions */
int /*<<< orphan*/ __rb_check_delete_node_case_2(struct AMCDict *,
                                                 struct AMCDictNode *);
scalar_t__ _rb_node_is_root(struct AMCDictNode *);
void __rb_check_delete_node_case_1(struct AMCDict *dict,
                                   struct AMCDictNode *node) {
  if (_rb_node_is_root(node)) {
    ;
    return;
  } else {
    __rb_check_delete_node_case_2(dict, node);
  }
}


x86 assembly (clang, -O0):
<__rb_check_delete_node_case_1>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
mov    %rdi,-0x8(%rbp)
mov    %rsi,-0x10(%rbp)
mov    -0x10(%rbp),%rdi
call   1030 <_rb_node_is_root@plt>
cmp    $0x0,%rax
je     1148 <__rb_check_delete_node_case_1+0x28>
jmp    1155 <__rb_check_delete_node_case_1+0x35>
mov    -0x8(%rbp),%rdi
mov    -0x10(%rbp),%rsi
call   1040 <__rb_check_delete_node_case_2@plt>
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<__rb_check_delete_node_case_1>:
push   %r14
push   %rbx
push   %rax
mov    %rsi,%rbx
mov    %rdi,%r14
mov    %rsi,%rdi
call   1030 <_rb_node_is_root@plt>
test   %rax,%rax
je     113f <__rb_check_delete_node_case_1+0x1f>
add    $0x8,%rsp
pop    %rbx
pop    %r14
ret
mov    %r14,%rdi
mov    %rbx,%rsi
add    $0x8,%rsp
pop    %rbx
pop    %r14
jmp    1040 <__rb_check_delete_node_case_2@plt>

LLVM IR (-O0):
%struct.AMCDict = type { i32 }
%struct.AMCDictNode = type { i32 }
define void @__rb_check_delete_node_case_1(%struct.AMCDict* %0, %struct.AMCDictNode* %1) {
%3 = alloca %struct.AMCDict*
%4 = alloca %struct.AMCDictNode*
store %struct.AMCDict* %0, %struct.AMCDict** %3
store %struct.AMCDictNode* %1, %struct.AMCDictNode** %4
%5 = load %struct.AMCDictNode*, %struct.AMCDictNode** %4
%6 = call i64 @_rb_node_is_root(%struct.AMCDictNode* %5)
%7 = icmp ne i64 %6, 0
br i1 %7, label %8, label %9
8: ; preds = %2
br label %13
9: ; preds = %2
%10 = load %struct.AMCDict*, %struct.AMCDict** %3
%11 = load %struct.AMCDictNode*, %struct.AMCDictNode** %4
%12 = call i32 @__rb_check_delete_node_case_2(%struct.AMCDict* %10, %struct.AMCDictNode* %11)
br label %13
13: ; preds = %8, %9
ret void
}

LLVM IR (-O2):
%struct.AMCDict = type { i32 }
%struct.AMCDictNode = type { i32 }
define void @__rb_check_delete_node_case_1(%struct.AMCDict* %0, %struct.AMCDictNode* %1) {
%3 = tail call i64 @_rb_node_is_root(%struct.AMCDictNode* %1)
%4 = icmp eq i64 %3, 0
br i1 %4, label %5, label %7
5: ; preds = %2
%6 = tail call i32 @__rb_check_delete_node_case_2(%struct.AMCDict* %0, %struct.AMCDictNode* %1)
br label %7
7: ; preds = %2, %5
ret void
}
/* Variables and functions */
int /*<<< orphan*/ printf(char *, char *, int);
int /*<<< orphan*/ sscanf(char *, char *, char *, int *);
int main() {
  char sentence[] = "Rudolph is another 12 years old";
  char str[20];
  int i;
  sscanf(sentence, "%s %*s %*s %d", str, &i);
  printf("%s -> %d\n", str, i);
  return 0;
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x60,%rsp
movl   $0x0,-0x4(%rbp)
mov    0xeca(%rip),%rax
mov    %rax,-0x30(%rbp)
mov    0xec7(%rip),%rax
mov    %rax,-0x28(%rbp)
mov    0xec4(%rip),%rax
mov    %rax,-0x20(%rbp)
mov    0xec1(%rip),%rax
mov    %rax,-0x18(%rbp)
lea    -0x30(%rbp),%rdi
lea    -0x50(%rbp),%rdx
lea    0xeb6(%rip),%rsi
lea    -0x54(%rbp),%rcx
call   1040 <sscanf@plt>
lea    -0x50(%rbp),%rsi
mov    -0x54(%rbp),%edx
lea    0xead(%rip),%rdi
call   1030 <printf@plt>
xor    %eax,%eax
add    $0x60,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %rbx
sub    $0x50,%rsp
movaps 0xee4(%rip),%xmm0
movaps %xmm0,0x20(%rsp)
movaps 0xec8(%rip),%xmm0
movaps %xmm0,0x10(%rsp)
lea    0xedc(%rip),%rsi
lea    0x10(%rsp),%rdi
lea    0x30(%rsp),%rbx
lea    0xc(%rsp),%rcx
mov    %rbx,%rdx
call   1040 <sscanf@plt>
mov    0xc(%rsp),%edx
lea    0xec8(%rip),%rdi
mov    %rbx,%rsi
call   1030 <printf@plt>
xor    %eax,%eax
add    $0x50,%rsp
pop    %rbx
ret

LLVM IR (-O0):
@__const.main.sentence = [32 x i8] c"Rudolph is another 12 years old\00"
@.str = [14 x i8] c"%s %*s %*s %d\00"
@.str.1 = [10 x i8] c"%s -> %d\0A\00"
define i32 @main() {
%1 = alloca i32
%2 = alloca [32 x i8]
%3 = alloca [20 x i8]
%4 = alloca i32
store i32 0, i32* %1
%5 = bitcast [32 x i8]* %2 to i8*
%6 = getelementptr inbounds [32 x i8], [32 x i8]* %2, i64 0, i64 0
%7 = getelementptr inbounds [20 x i8], [20 x i8]* %3, i64 0, i64 0
%8 = call i32 @sscanf(i8* %6, i8* getelementptr inbounds ([14 x i8], [14 x i8]* @.str, i64 0, i64 0), i8* %7, i32* %4)
%9 = getelementptr inbounds [20 x i8], [20 x i8]* %3, i64 0, i64 0
%10 = load i32, i32* %4
%11 = call i32 @printf(i8* getelementptr inbounds ([10 x i8], [10 x i8]* @.str.1, i64 0, i64 0), i8* %9, i32 %10)
ret i32 0
}

LLVM IR (-O2):
@__const.main.sentence = [32 x i8] c"Rudolph is another 12 years old\00"
@.str = [14 x i8] c"%s %*s %*s %d\00"
@.str.1 = [10 x i8] c"%s -> %d\0A\00"
define i32 @main() {
%1 = alloca [32 x i8]
%2 = alloca [20 x i8]
%3 = alloca i32
%4 = getelementptr inbounds [32 x i8], [32 x i8]* %1, i64 0, i64 0
%5 = getelementptr inbounds [20 x i8], [20 x i8]* %2, i64 0, i64 0
%6 = bitcast i32* %3 to i8*
%7 = call i32 @sscanf(i8* %4, i8* getelementptr inbounds ([14 x i8], [14 x i8]* @.str, i64 0, i64 0), i8* %5, i32* %3)
%8 = load i32, i32* %3
%9 = call i32 @printf(i8* getelementptr inbounds ([10 x i8], [10 x i8]* @.str.1, i64 0, i64 0), i8* %5, i32 %8)
ret i32 0
}
/* Variables and functions */
int /*<<< orphan*/ mock_push(int /*<<< orphan*/);
int /*<<< orphan*/ pack_glXVendorPrivate(int /*<<< orphan*/ *);
void glXVendorPrivate() {
  { mock_push(pack_glXVendorPrivate(NULL)); };
}


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

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

LLVM IR (-O0):
define void @glXVendorPrivate() {
%1 = call i32 @pack_glXVendorPrivate(i32* null)
%2 = call i32 @mock_push(i32 %1)
ret void
}

LLVM IR (-O2):
define void @glXVendorPrivate() {
%1 = tail call i32 @pack_glXVendorPrivate(i32* null)
%2 = tail call i32 @mock_push(i32 %1)
ret void
}
/* Variables and functions */
int iqfrmq_(double *);
int iqfrmq(double q) { return iqfrmq_(&q) - 1; }


x86 assembly (clang, -O0):
<iqfrmq>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
movsd  %xmm0,-0x8(%rbp)
lea    -0x8(%rbp),%rdi
call   1030 <iqfrmq_@plt>
sub    $0x1,%eax
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<iqfrmq>:
push   %rax
movsd  %xmm0,(%rsp)
mov    %rsp,%rdi
call   1030 <iqfrmq_@plt>
add    $0xffffffff,%eax
pop    %rcx
ret

LLVM IR (-O0):
define i32 @iqfrmq(double %0) {
%2 = alloca double
store double %0, double* %2
%3 = call i32 @iqfrmq_(double* %2)
%4 = sub nsw i32 %3, 1
ret i32 %4
}

LLVM IR (-O2):
define i32 @iqfrmq(double %0) {
%2 = alloca double
store double %0, double* %2
%3 = call i32 @iqfrmq_(double* %2)
%4 = add nsw i32 %3, -1
ret i32 %4
}
/* Variables and functions */
int /*<<< orphan*/ printf(char *);
void showWarn(int id) {
  switch (id) {
  case 0: {
    printf("\nstack is empty!\n");
    break;
  }
  }
}


x86 assembly (clang, -O0):
<showWarn>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
mov    %edi,-0x4(%rbp)
mov    -0x4(%rbp),%eax
test   %eax,%eax
jne    1137 <showWarn+0x27>
jmp    112b <showWarn+0x1b>
lea    0xece(%rip),%rdi
call   1030 <printf@plt>
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<showWarn>:
test   %edi,%edi
je     1115 <showWarn+0x5>
ret
lea    0xee4(%rip),%rdi
jmp    1030 <puts@plt>

LLVM IR (-O0):
@.str = [18 x i8] c"\0Astack is empty!\0A\00"
define void @showWarn(i32 %0) {
%2 = alloca i32
store i32 %0, i32* %2
%3 = load i32, i32* %2
switch i32 %3, label %6 [
i32 0, label %4
]
4: ; preds = %1
%5 = call i32 @printf(i8* getelementptr inbounds ([18 x i8], [18 x i8]* @.str, i64 0, i64 0))
br label %6
6: ; preds = %1, %4
ret void
}

LLVM IR (-O2):
@str = [17 x i8] c"\0Astack is empty!\00"
define void @showWarn(i32 %0) {
%2 = icmp eq i32 %0, 0
br i1 %2, label %3, label %5
3: ; preds = %1
%4 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([17 x i8], [17 x i8]* @str, i64 0, i64 0))
br label %5
5: ; preds = %1, %3
ret void
}
void neural_layer_dropout_update(const struct Layer *l) { (void)l; }


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

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

LLVM IR (-O0):
%struct.Layer = type opaque
define void @neural_layer_dropout_update(%struct.Layer* %0) {
%2 = alloca %struct.Layer*
store %struct.Layer* %0, %struct.Layer** %2
%3 = load %struct.Layer*, %struct.Layer** %2
ret void
}

LLVM IR (-O2):
%struct.Layer = type opaque
define void @neural_layer_dropout_update(%struct.Layer* nocapture %0) {
ret void
}
/* Variables and functions */
char *strchr(char *, char);
char *__mp_basename(char *s) {
  char *t;
  while ((t = strchr(s, '/')) != NULL)
    s = t + 1;
  return s;
}


x86 assembly (clang, -O0):
<__mp_basename>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
mov    %rdi,-0x8(%rbp)
mov    -0x8(%rbp),%rdi
mov    $0x2f,%esi
call   1030 <strchr@plt>
mov    %rax,-0x10(%rbp)
cmp    $0x0,%rax
je     1149 <__mp_basename+0x39>
mov    -0x10(%rbp),%rax
add    $0x1,%rax
mov    %rax,-0x8(%rbp)
jmp    111c <__mp_basename+0xc>
mov    -0x8(%rbp),%rax
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<__mp_basename>:
push   %rbx
cs nopw 0x0(%rax,%rax,1)
nopl   0x0(%rax,%rax,1)
mov    %rdi,%rbx
mov    $0x2f,%esi
call   1030 <strchr@plt>
lea    0x1(%rax),%rdi
test   %rax,%rax
jne    1120 <__mp_basename+0x10>
mov    %rbx,%rax
pop    %rbx
ret

LLVM IR (-O0):
define i8* @__mp_basename(i8* %0) {
%2 = alloca i8*
%3 = alloca i8*
store i8* %0, i8** %2
br label %4
4: ; preds = %8, %1
%5 = load i8*, i8** %2
%6 = call i8* @strchr(i8* %5, i8 signext 47)
store i8* %6, i8** %3
%7 = icmp ne i8* %6, null
br i1 %7, label %8, label %11
8: ; preds = %4
%9 = load i8*, i8** %3
%10 = getelementptr inbounds i8, i8* %9, i64 1
store i8* %10, i8** %2
br label %4
11: ; preds = %4
%12 = load i8*, i8** %2
ret i8* %12
}

LLVM IR (-O2):
define i8* @__mp_basename(i8* %0) {
br label %2
2: ; preds = %2, %1
%3 = phi i8* [ %0, %1 ], [ %6, %2 ]
%4 = tail call i8* @strchr(i8* dereferenceable(1) %3, i8 signext 47)
%5 = icmp eq i8* %4, null
%6 = getelementptr inbounds i8, i8* %4, i64 1
br i1 %5, label %7, label %2
7: ; preds = %2
ret i8* %3
}
void spi_deselect(void) {}


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

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

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

LLVM IR (-O2):
define void @spi_deselect() {
ret void
}
int cairo_code_draw_casbg_get_width() { return 460; }


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

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

LLVM IR (-O0):
define i32 @cairo_code_draw_casbg_get_width() {
ret i32 460
}

LLVM IR (-O2):
define i32 @cairo_code_draw_casbg_get_width() {
ret i32 460
}
void foo(int *a) { *a = 1; }


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

x86 assembly (clang, -O2):
<foo>:
movl   $0x1,(%rdi)
ret

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

LLVM IR (-O2):
define void @foo(i32* nocapture writeonly %0) {
store i32 1, i32* %0
ret void
}
int test_imm_FCint64_lowword_reg(long long val) {
  return ((val) & (0xFC << 0)) ? -20 : -40;
}


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

x86 assembly (clang, -O2):
<test_imm_FCint64_lowword_reg>:
test   $0xfc,%dil
mov    $0xffffffd8,%ecx
mov    $0xffffffec,%eax
cmove  %ecx,%eax
ret

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

LLVM IR (-O2):
define i32 @test_imm_FCint64_lowword_reg(i64 %0) {
%2 = and i64 %0, 252
%3 = icmp eq i64 %2, 0
%4 = select i1 %3, i32 -40, i32 -20
ret i32 %4
}
/* Type definitions */
struct timespec {
  double tv_sec;
  int tv_nsec;
};

/* Variables and functions */
double ts_to_double(struct timespec time) {
  return time.tv_sec + time.tv_nsec / 1e9;
}


x86 assembly (clang, -O0):
<ts_to_double>:
push   %rbp
mov    %rsp,%rbp
movsd  %xmm0,-0x10(%rbp)
mov    %edi,-0x8(%rbp)
movsd  -0x10(%rbp),%xmm0
cvtsi2sdl -0x8(%rbp),%xmm1
movsd  0xee2(%rip),%xmm2
divsd  %xmm2,%xmm1
addsd  %xmm1,%xmm0
pop    %rbp
ret

x86 assembly (clang, -O2):
<ts_to_double>:
cvtsi2sd %edi,%xmm1
divsd  0xef4(%rip),%xmm1
addsd  %xmm1,%xmm0
ret

LLVM IR (-O0):
%struct.timespec = type { double, i32 }
define double @ts_to_double(double %0, i32 %1) {
%3 = alloca %struct.timespec
%4 = bitcast %struct.timespec* %3 to { double, i32 }*
%5 = getelementptr inbounds { double, i32 }, { double, i32 }* %4, i32 0, i32 0
store double %0, double* %5
%6 = getelementptr inbounds { double, i32 }, { double, i32 }* %4, i32 0, i32 1
store i32 %1, i32* %6
%7 = getelementptr inbounds %struct.timespec, %struct.timespec* %3, i32 0, i32 0
%8 = load double, double* %7
%9 = getelementptr inbounds %struct.timespec, %struct.timespec* %3, i32 0, i32 1
%10 = load i32, i32* %9
%11 = sitofp i32 %10 to double
%12 = fdiv double %11, 1.000000e+09
%13 = fadd double %8, %12
ret double %13
}

LLVM IR (-O2):
define double @ts_to_double(double %0, i32 %1) {
%3 = sitofp i32 %1 to double
%4 = fdiv double %3, 1.000000e+09
%5 = fadd double %4, %0
ret double %5
}
signed short signedshort_ignoring_signedlongint(signed short x,
                                                signed long int y) {
  return x;
}


x86 assembly (clang, -O0):
<signedshort_ignoring_signedlongint>:
push   %rbp
mov    %rsp,%rbp
mov    %di,%ax
mov    %ax,-0x2(%rbp)
mov    %rsi,-0x10(%rbp)
movswl -0x2(%rbp),%eax
pop    %rbp
ret

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

LLVM IR (-O0):
define signext i16 @signedshort_ignoring_signedlongint(i16 signext %0, i64 %1) {
%3 = alloca i16
%4 = alloca i64
store i16 %0, i16* %3
store i64 %1, i64* %4
%5 = load i16, i16* %3
ret i16 %5
}

LLVM IR (-O2):
define signext i16 @signedshort_ignoring_signedlongint(i16 returned signext %0, i64 %1) {
ret i16 %0
}
/* Variables and functions */
int /*<<< orphan*/ exit(int);
int /*<<< orphan*/ fprintf(int /*<<< orphan*/, char *, char *);
int /*<<< orphan*/ stderr;
void upchuck(char *s, char *t) {
  fprintf(stderr, "%s: \"%s\"\n", s);
  exit(3);
}


x86 assembly (clang, -O0):
<upchuck>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
mov    %rdi,-0x8(%rbp)
mov    %rsi,-0x10(%rbp)
mov    0x2ea9(%rip),%rax
mov    (%rax),%edi
mov    -0x8(%rbp),%rdx
lea    0xebc(%rip),%rsi
call   1030 <fprintf@plt>
mov    $0x3,%edi
call   1040 <exit@plt>

x86 assembly (clang, -O2):
<upchuck>:
push   %rax
mov    %rdi,%rdx
mov    0x2eb5(%rip),%rax
mov    (%rax),%edi
lea    0xecc(%rip),%rsi
call   1030 <fprintf@plt>
mov    $0x3,%edi
call   1040 <exit@plt>

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

LLVM IR (-O2):
@stderr = global i32 0
@.str = [10 x i8] c"%s: \22%s\22\0A\00"
define void @upchuck(i8* %0, i8* nocapture readnone %1) {
%3 = load i32, i32* @stderr
%4 = tail call i32 @fprintf(i32 %3, i8* getelementptr inbounds ([10 x i8], [10 x i8]* @.str, i64 0, i64 0), i8* %0)
%5 = tail call i32 @exit(i32 3)
unreachable
}
/* Variables and functions */
int /*<<< orphan*/ free(void *);
void aes_ctx_free(void *ctx) { free(ctx); }


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

x86 assembly (clang, -O2):
<aes_ctx_free>:
jmp    1030 <free@plt>

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

LLVM IR (-O2):
define void @aes_ctx_free(i8* nocapture %0) {
%2 = tail call i32 @free(i8* %0)
ret void
}
void bjk_sync_handler() {}


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

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

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

LLVM IR (-O2):
define void @bjk_sync_handler() {
ret void
}
adr0adrx1(r0, r1, x0, x1, p0, p1) int r0, r1;
int *p0, *p1;
{
  if ((*((int *)10000000)) <= (((int *)11111111)[x1]))
    return 1;
  else
    return 0;
}


x86 assembly (clang, -O0):
<adr0adrx1>:
push   %rbp
mov    %rsp,%rbp
mov    %edi,-0x8(%rbp)
mov    %esi,-0xc(%rbp)
mov    %edx,-0x10(%rbp)
mov    %ecx,-0x14(%rbp)
mov    %r8,-0x20(%rbp)
mov    %r9,-0x28(%rbp)
mov    $0x989680,%eax
mov    (%rax),%eax
movslq -0x14(%rbp),%rdx
mov    $0xa98ac7,%ecx
cmp    (%rcx,%rdx,4),%eax
jg     113d <adr0adrx1+0x3d>
movl   $0x1,-0x4(%rbp)
jmp    1144 <adr0adrx1+0x44>
movl   $0x0,-0x4(%rbp)
mov    -0x4(%rbp),%eax
pop    %rbp
ret

x86 assembly (clang, -O2):
<adr0adrx1>:
mov    0x989680,%edx
movslq %ecx,%rcx
xor    %eax,%eax
cmp    0xa98ac7(,%rcx,4),%edx
setle  %al
ret

LLVM IR (-O0):
define i32 @adr0adrx1(i32 %0, i32 %1, i32 %2, i32 %3, i32* %4, i32* %5) {
%7 = alloca i32
%8 = alloca i32
%9 = alloca i32
%10 = alloca i32
%11 = alloca i32
%12 = alloca i32*
%13 = alloca i32*
store i32 %0, i32* %8
store i32 %1, i32* %9
store i32 %2, i32* %10
store i32 %3, i32* %11
store i32* %4, i32** %12
store i32* %5, i32** %13
%14 = load i32, i32* inttoptr (i64 10000000 to i32*)
%15 = load i32, i32* %11
%16 = sext i32 %15 to i64
%17 = getelementptr inbounds i32, i32* inttoptr (i64 11111111 to i32*), i64 %16
%18 = load i32, i32* %17
%19 = icmp sle i32 %14, %18
br i1 %19, label %20, label %21
20: ; preds = %6
store i32 1, i32* %7
br label %22
21: ; preds = %6
store i32 0, i32* %7
br label %22
22: ; preds = %21, %20
%23 = load i32, i32* %7
ret i32 %23
}

LLVM IR (-O2):
define i32 @adr0adrx1(i32 %0, i32 %1, i32 %2, i32 %3, i32* nocapture readnone %4, i32* nocapture readnone %5) {
%7 = load i32, i32* inttoptr (i64 10000000 to i32*)
%8 = sext i32 %3 to i64
%9 = getelementptr inbounds i32, i32* inttoptr (i64 11111111 to i32*), i64 %8
%10 = load i32, i32* %9
%11 = icmp sle i32 %7, %10
%12 = zext i1 %11 to i32
ret i32 %12
}
/* Variables and functions */
int /*<<< orphan*/ SYS_delete_module;
int syscall(int /*<<< orphan*/, char const *, int);
int __delete_module(const char *name, int flags) {
  return syscall(SYS_delete_module, name, flags);
}


x86 assembly (clang, -O0):
<__delete_module>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
mov    %rdi,-0x8(%rbp)
mov    %esi,-0xc(%rbp)
mov    0x2ec2(%rip),%rax
mov    (%rax),%edi
mov    -0x8(%rbp),%rsi
mov    -0xc(%rbp),%edx
call   1030 <syscall@plt>
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<__delete_module>:
mov    %esi,%edx
mov    %rdi,%rsi
mov    0x2ecc(%rip),%rax
mov    (%rax),%edi
jmp    1030 <syscall@plt>

LLVM IR (-O0):
@SYS_delete_module = global i32 0
define i32 @__delete_module(i8* %0, i32 %1) {
%3 = alloca i8*
%4 = alloca i32
store i8* %0, i8** %3
store i32 %1, i32* %4
%5 = load i32, i32* @SYS_delete_module
%6 = load i8*, i8** %3
%7 = load i32, i32* %4
%8 = call i32 @syscall(i32 %5, i8* %6, i32 %7)
ret i32 %8
}

LLVM IR (-O2):
@SYS_delete_module = global i32 0
define i32 @__delete_module(i8* %0, i32 %1) {
%3 = load i32, i32* @SYS_delete_module
%4 = tail call i32 @syscall(i32 %3, i8* %0, i32 %1)
ret i32 %4
}
/* Variables and functions */
char complement(char);
int get_binding_score(char *sequence, int i, int j) {
  if (sequence[i] == complement(sequence[j])) {
    return 1;
  }
  return 0;
}


x86 assembly (clang, -O0):
<get_binding_score>:
push   %rbp
mov    %rsp,%rbp
sub    $0x20,%rsp
mov    %rdi,-0x10(%rbp)
mov    %esi,-0x14(%rbp)
mov    %edx,-0x18(%rbp)
mov    -0x10(%rbp),%rax
movslq -0x14(%rbp),%rcx
movsbl (%rax,%rcx,1),%eax
mov    %eax,-0x1c(%rbp)
mov    -0x10(%rbp),%rax
movslq -0x18(%rbp),%rcx
movsbl (%rax,%rcx,1),%edi
call   1030 <complement@plt>
mov    %al,%cl
mov    -0x1c(%rbp),%eax
movsbl %cl,%ecx
cmp    %ecx,%eax
jne    115e <get_binding_score+0x4e>
movl   $0x1,-0x4(%rbp)
jmp    1165 <get_binding_score+0x55>
movl   $0x0,-0x4(%rbp)
mov    -0x4(%rbp),%eax
add    $0x20,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<get_binding_score>:
push   %rbx
movslq %esi,%rax
mov    (%rdi,%rax,1),%bl
movslq %edx,%rax
movsbl (%rdi,%rax,1),%edi
call   1030 <complement@plt>
xor    %ecx,%ecx
cmp    %al,%bl
sete   %cl
mov    %ecx,%eax
pop    %rbx
ret

LLVM IR (-O0):
define i32 @get_binding_score(i8* %0, i32 %1, i32 %2) {
%4 = alloca i32
%5 = alloca i8*
%6 = alloca i32
%7 = alloca i32
store i8* %0, i8** %5
store i32 %1, i32* %6
store i32 %2, i32* %7
%8 = load i8*, i8** %5
%9 = load i32, i32* %6
%10 = sext i32 %9 to i64
%11 = getelementptr inbounds i8, i8* %8, i64 %10
%12 = load i8, i8* %11
%13 = sext i8 %12 to i32
%14 = load i8*, i8** %5
%15 = load i32, i32* %7
%16 = sext i32 %15 to i64
%17 = getelementptr inbounds i8, i8* %14, i64 %16
%18 = load i8, i8* %17
%19 = call signext i8 @complement(i8 signext %18)
%20 = sext i8 %19 to i32
%21 = icmp eq i32 %13, %20
br i1 %21, label %22, label %23
22: ; preds = %3
store i32 1, i32* %4
br label %24
23: ; preds = %3
store i32 0, i32* %4
br label %24
24: ; preds = %23, %22
%25 = load i32, i32* %4
ret i32 %25
}

LLVM IR (-O2):
define i32 @get_binding_score(i8* nocapture %0, i32 %1, i32 %2) {
%4 = sext i32 %1 to i64
%5 = getelementptr inbounds i8, i8* %0, i64 %4
%6 = load i8, i8* %5
%7 = sext i32 %2 to i64
%8 = getelementptr inbounds i8, i8* %0, i64 %7
%9 = load i8, i8* %8
%10 = tail call signext i8 @complement(i8 signext %9)
%11 = icmp eq i8 %6, %10
%12 = zext i1 %11 to i32
ret i32 %12
}
/* Variables and functions */
int /*<<< orphan*/ free(char *);
void pe_as_lit_kw_map_wr_delete_strings(char *s) { free(s); }


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

x86 assembly (clang, -O2):
<pe_as_lit_kw_map_wr_delete_strings>:
jmp    1030 <free@plt>

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

LLVM IR (-O2):
define void @pe_as_lit_kw_map_wr_delete_strings(i8* nocapture %0) {
%2 = tail call i32 @free(i8* %0)
ret void
}
float log10f(float x) { return 0.0; }


x86 assembly (clang, -O0):
<log10f>:
push   %rbp
mov    %rsp,%rbp
movss  %xmm0,-0x4(%rbp)
xorps  %xmm0,%xmm0
pop    %rbp
ret

x86 assembly (clang, -O2):
<log10f>:
xorps  %xmm0,%xmm0
ret

LLVM IR (-O0):
define float @log10f(float %0) {
%2 = alloca float
store float %0, float* %2
ret float 0.000000e+00
}

LLVM IR (-O2):
define float @log10f(float %0) {
ret float 0.000000e+00
}
/* Variables and functions */
int /*<<< orphan*/ Assert_real(int, char *, int, char *);
scalar_t__ isxdigit(int);
void t_isxdigit_0xb1() {
  Assert_real((isxdigit(177) == 0),
              "/scratch/repos/new/home/jordi_armengol_estape/c-scraper/outputs/"
              "2022-01-22/02-19-57/repos/bitfixer/bitfixer/refs/heads/master/"
              "dg/z88dk/test/suites/ctype/test_isxdigit.c",
              890, ("isxdigit should be 0 for 0xb1"));
}


x86 assembly (clang, -O0):
<t_isxdigit_0xb1>:
push   %rbp
mov    %rsp,%rbp
mov    $0xb1,%edi
call   1030 <isxdigit@plt>
cmp    $0x0,%rax
sete   %al
and    $0x1,%al
movzbl %al,%edi
lea    0xebf(%rip),%rsi
mov    $0x37a,%edx
lea    0xf5c(%rip),%rcx
call   1040 <Assert_real@plt>
pop    %rbp
ret

x86 assembly (clang, -O2):
<t_isxdigit_0xb1>:
push   %rax
mov    $0xb1,%edi
call   1030 <isxdigit@plt>
xor    %edi,%edi
test   %rax,%rax
sete   %dil
lea    0xec5(%rip),%rsi
lea    0xf67(%rip),%rcx
mov    $0x37a,%edx
pop    %rax
jmp    1040 <Assert_real@plt>

LLVM IR (-O0):
@.str = [169 x i8] c"/scratch/repos/new/home/jordi_armengol_estape/c-scraper/outputs/2022-01-22/02-19-57/repos/bitfixer/bitfixer/refs/heads/master/dg/z88dk/test/suites/ctype/test_isxdigit.c\00"
@.str.1 = [30 x i8] c"isxdigit should be 0 for 0xb1\00"
define void @t_isxdigit_0xb1() {
%1 = call i64 @isxdigit(i32 177)
%2 = icmp eq i64 %1, 0
%3 = zext i1 %2 to i32
%4 = call i32 @Assert_real(i32 %3, i8* getelementptr inbounds ([169 x i8], [169 x i8]* @.str, i64 0, i64 0), i32 890, i8* getelementptr inbounds ([30 x i8], [30 x i8]* @.str.1, i64 0, i64 0))
ret void
}

LLVM IR (-O2):
@.str = [169 x i8] c"/scratch/repos/new/home/jordi_armengol_estape/c-scraper/outputs/2022-01-22/02-19-57/repos/bitfixer/bitfixer/refs/heads/master/dg/z88dk/test/suites/ctype/test_isxdigit.c\00"
@.str.1 = [30 x i8] c"isxdigit should be 0 for 0xb1\00"
define void @t_isxdigit_0xb1() {
%1 = tail call i64 @isxdigit(i32 177)
%2 = icmp eq i64 %1, 0
%3 = zext i1 %2 to i32
%4 = tail call i32 @Assert_real(i32 %3, i8* getelementptr inbounds ([169 x i8], [169 x i8]* @.str, i64 0, i64 0), i32 890, i8* getelementptr inbounds ([30 x i8], [30 x i8]* @.str.1, i64 0, i64 0))
ret void
}
/* Variables and functions */
int /*<<< orphan*/ malloc(int);
int main(void) {
  int i;
  for (i = 0; i < 200; i++) {
    malloc(400 * i);
  }
  return 0;
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
movl   $0x0,-0x4(%rbp)
movl   $0x0,-0x8(%rbp)
cmpl   $0xc8,-0x8(%rbp)
jge    114d <main+0x3d>
imul   $0x190,-0x8(%rbp),%edi
call   1030 <malloc@plt>
mov    -0x8(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x8(%rbp)
jmp    1126 <main+0x16>
xor    %eax,%eax
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %rbx
xor    %ebx,%ebx
cs nopw 0x0(%rax,%rax,1)
nopl   (%rax)
mov    %ebx,%edi
call   1030 <malloc@plt>
add    $0x190,%ebx
cmp    $0x13880,%ebx
jne    1120 <main+0x10>
xor    %eax,%eax
pop    %rbx
ret

LLVM IR (-O0):
define i32 @main() {
%1 = alloca i32
%2 = alloca i32
store i32 0, i32* %1
store i32 0, i32* %2
br label %3
3: ; preds = %10, %0
%4 = load i32, i32* %2
%5 = icmp slt i32 %4, 200
br i1 %5, label %6, label %13
6: ; preds = %3
%7 = load i32, i32* %2
%8 = mul nsw i32 400, %7
%9 = call i32 @malloc(i32 %8)
br label %10
10: ; preds = %6
%11 = load i32, i32* %2
%12 = add nsw i32 %11, 1
store i32 %12, i32* %2
br label %3
13: ; preds = %3
ret i32 0
}

LLVM IR (-O2):
define i32 @main() {
br label %1
1: ; preds = %0, %1
%2 = phi i32 [ 0, %0 ], [ %5, %1 ]
%3 = mul nuw nsw i32 %2, 400
%4 = tail call i32 @malloc(i32 %3)
%5 = add nuw nsw i32 %2, 1
%6 = icmp eq i32 %5, 200
br i1 %6, label %7, label %1
7: ; preds = %1
ret i32 0
}
/* Variables and functions */
int EXIT_SUCCESS;
int /*<<< orphan*/ barrier();
int main(void) {
  barrier();
  return EXIT_SUCCESS;
}


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

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

LLVM IR (-O0):
@EXIT_SUCCESS = global i32 0
define i32 @main() {
%1 = alloca i32
store i32 0, i32* %1
%2 = call i32 (...) @barrier()
%3 = load i32, i32* @EXIT_SUCCESS
ret i32 %3
}

LLVM IR (-O2):
@EXIT_SUCCESS = global i32 0
define i32 @main() {
%1 = tail call i32 (...) @barrier()
%2 = load i32, i32* @EXIT_SUCCESS
ret i32 %2
}
void ff_hevc_put_hevc_qpel_v12_8_sse4() {}


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

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

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

LLVM IR (-O2):
define void @ff_hevc_put_hevc_qpel_v12_8_sse4() {
ret void
}
/* Variables and functions */
int /*<<< orphan*/ TEST_should_push_and_pop_three_integers_to_integer_stack();
int /*<<< orphan*/
TEST_should_resize_integer_stack_on_push_to_full_integer_stack();
int main() {
  TEST_should_resize_integer_stack_on_push_to_full_integer_stack();
  TEST_should_push_and_pop_three_integers_to_integer_stack();
  return 0;
}


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

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

LLVM IR (-O0):
define i32 @main() {
%1 = alloca i32
store i32 0, i32* %1
%2 = call i32 (...) @TEST_should_resize_integer_stack_on_push_to_full_integer_stack()
%3 = call i32 (...) @TEST_should_push_and_pop_three_integers_to_integer_stack()
ret i32 0
}

LLVM IR (-O2):
define i32 @main() {
%1 = tail call i32 (...) @TEST_should_resize_integer_stack_on_push_to_full_integer_stack()
%2 = tail call i32 (...) @TEST_should_push_and_pop_three_integers_to_integer_stack()
ret i32 0
}
/* Variables and functions */
int /*<<< orphan*/ exit(int);
int /*<<< orphan*/ printf(char *, char const *, char const *, int);
void _assert(const char *msg, const char *file, int line) {
  printf("%s : %s %d", msg, file, line);
  exit(1);
}


x86 assembly (clang, -O0):
<_assert>:
push   %rbp
mov    %rsp,%rbp
sub    $0x20,%rsp
mov    %rdi,-0x8(%rbp)
mov    %rsi,-0x10(%rbp)
mov    %edx,-0x14(%rbp)
mov    -0x8(%rbp),%rsi
mov    -0x10(%rbp),%rdx
mov    -0x14(%rbp),%ecx
lea    0xebb(%rip),%rdi
call   1030 <printf@plt>
mov    $0x1,%edi
call   1040 <exit@plt>

x86 assembly (clang, -O2):
<_assert>:
push   %rax
mov    %edx,%ecx
mov    %rsi,%rdx
mov    %rdi,%rsi
lea    0xed0(%rip),%rdi
call   1030 <printf@plt>
mov    $0x1,%edi
call   1040 <exit@plt>

LLVM IR (-O0):
@.str = [11 x i8] c"%s : %s %d\00"
define void @_assert(i8* %0, i8* %1, i32 %2) {
%4 = alloca i8*
%5 = alloca i8*
%6 = alloca i32
store i8* %0, i8** %4
store i8* %1, i8** %5
store i32 %2, i32* %6
%7 = load i8*, i8** %4
%8 = load i8*, i8** %5
%9 = load i32, i32* %6
%10 = call i32 @printf(i8* getelementptr inbounds ([11 x i8], [11 x i8]* @.str, i64 0, i64 0), i8* %7, i8* %8, i32 %9)
%11 = call i32 @exit(i32 1)
unreachable
}

LLVM IR (-O2):
@.str = [11 x i8] c"%s : %s %d\00"
define void @_assert(i8* %0, i8* %1, i32 %2) {
%4 = tail call i32 @printf(i8* getelementptr inbounds ([11 x i8], [11 x i8]* @.str, i64 0, i64 0), i8* %0, i8* %1, i32 %2)
%5 = tail call i32 @exit(i32 1)
unreachable
}
/* Variables and functions */
int /*<<< orphan*/ ENOSYS;
int /*<<< orphan*/ errno;
int shutdown(int sockfd, int how) {
  errno = ENOSYS;
  return -1;
}


x86 assembly (clang, -O0):
<shutdown>:
push   %rbp
mov    %rsp,%rbp
mov    %edi,-0x4(%rbp)
mov    %esi,-0x8(%rbp)
mov    0x2ed7(%rip),%rax
mov    (%rax),%ecx
mov    0x2ebe(%rip),%rax
mov    %ecx,(%rax)
mov    $0xffffffff,%eax
pop    %rbp
ret

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

LLVM IR (-O0):
@ENOSYS = global i32 0
@errno = global i32 0
define i32 @shutdown(i32 %0, i32 %1) {
%3 = alloca i32
%4 = alloca i32
store i32 %0, i32* %3
store i32 %1, i32* %4
%5 = load i32, i32* @ENOSYS
store i32 %5, i32* @errno
ret i32 -1
}

LLVM IR (-O2):
@ENOSYS = global i32 0
@errno = global i32 0
define i32 @shutdown(i32 %0, i32 %1) {
%3 = load i32, i32* @ENOSYS
store i32 %3, i32* @errno
ret i32 -1
}
/* Variables and functions */
int /*<<< orphan*/ exit(int);
void MJC_die() { exit(-1); }


x86 assembly (clang, -O0):
<MJC_die>:
push   %rbp
mov    %rsp,%rbp
mov    $0xffffffff,%edi
call   1030 <exit@plt>

x86 assembly (clang, -O2):
<MJC_die>:
push   %rax
mov    $0xffffffff,%edi
call   1030 <exit@plt>

LLVM IR (-O0):
define void @MJC_die() {
%1 = call i32 @exit(i32 -1)
unreachable
}

LLVM IR (-O2):
define void @MJC_die() {
%1 = tail call i32 @exit(i32 -1)
unreachable
}
/* Variables and functions */
int /*<<< orphan*/ sendByte(int);
void sendAck() {
  return;
  sendByte(0x00);
}


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

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

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

LLVM IR (-O2):
define void @sendAck() {
ret void
}
/* Variables and functions */
int /*<<< orphan*/ _Factor();
int /*<<< orphan*/ _Legal_lookahead(int, int, int /*<<< orphan*/);
int /*<<< orphan*/ advance();
scalar_t__ match(int);
void _Term(void) {
  if (!_Legal_lookahead(6, 4, 0))
    return;
  _Factor();
  while (match(3)) {
    advance();
    _Factor();
  }
}


x86 assembly (clang, -O0):
<_Term>:
push   %rbp
mov    %rsp,%rbp
mov    $0x6,%edi
mov    $0x4,%esi
xor    %edx,%edx
call   1050 <_Legal_lookahead@plt>
cmp    $0x0,%eax
jne    1163 <_Term+0x23>
jmp    1191 <_Term+0x51>
mov    $0x0,%al
call   1060 <_Factor@plt>
mov    $0x3,%edi
call   1040 <match@plt>
cmp    $0x0,%rax
je     1191 <_Term+0x51>
mov    $0x0,%al
call   1030 <advance@plt>
mov    $0x0,%al
call   1060 <_Factor@plt>
jmp    116a <_Term+0x2a>
pop    %rbp
ret

x86 assembly (clang, -O2):
<_Term>:
push   %rax
mov    $0x6,%edi
mov    $0x4,%esi
xor    %edx,%edx
call   1050 <_Legal_lookahead@plt>
test   %eax,%eax
je     117f <_Term+0x3f>
cs nopw 0x0(%rax,%rax,1)
xor    %eax,%eax
call   1060 <_Factor@plt>
mov    $0x3,%edi
call   1040 <match@plt>
test   %rax,%rax
je     117f <_Term+0x3f>
xor    %eax,%eax
call   1030 <advance@plt>
jmp    1160 <_Term+0x20>
pop    %rax
ret

LLVM IR (-O0):
define void @_Term() {
%1 = call i32 @_Legal_lookahead(i32 6, i32 4, i32 0)
%2 = icmp ne i32 %1, 0
br i1 %2, label %4, label %3
3: ; preds = %0
br label %12
4: ; preds = %0
%5 = call i32 (...) @_Factor()
br label %6
6: ; preds = %9, %4
%7 = call i64 @match(i32 3)
%8 = icmp ne i64 %7, 0
br i1 %8, label %9, label %12
9: ; preds = %6
%10 = call i32 (...) @advance()
%11 = call i32 (...) @_Factor()
br label %6
12: ; preds = %3, %6
ret void
}

LLVM IR (-O2):
define void @_Term() {
%1 = tail call i32 @_Legal_lookahead(i32 6, i32 4, i32 0)
%2 = icmp eq i32 %1, 0
br i1 %2, label %12, label %3
3: ; preds = %0
%4 = tail call i32 (...) @_Factor()
%5 = tail call i64 @match(i32 3)
%6 = icmp eq i64 %5, 0
br i1 %6, label %12, label %7
7: ; preds = %3, %7
%8 = tail call i32 (...) @advance()
%9 = tail call i32 (...) @_Factor()
%10 = tail call i64 @match(i32 3)
%11 = icmp eq i64 %10, 0
br i1 %11, label %12, label %7
12: ; preds = %7, %3, %0
ret void
}
/* Variables and functions */
int /*<<< orphan*/ exit(int);
int /*<<< orphan*/ printf(char *);
void bail(void) {
  printf("error while reading tags file: inappropriate format\n");
  exit(1);
}


x86 assembly (clang, -O0):
<bail>:
push   %rbp
mov    %rsp,%rbp
lea    0xed5(%rip),%rdi
call   1030 <printf@plt>
mov    $0x1,%edi
call   1040 <exit@plt>

x86 assembly (clang, -O2):
<bail>:
push   %rax
lea    0xed8(%rip),%rdi
call   1030 <puts@plt>
mov    $0x1,%edi
call   1040 <exit@plt>

LLVM IR (-O0):
@.str = [53 x i8] c"error while reading tags file: inappropriate format\0A\00"
define void @bail() {
%1 = call i32 @printf(i8* getelementptr inbounds ([53 x i8], [53 x i8]* @.str, i64 0, i64 0))
%2 = call i32 @exit(i32 1)
unreachable
}

LLVM IR (-O2):
@str = [52 x i8] c"error while reading tags file: inappropriate format\00"
define void @bail() {
%1 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([52 x i8], [52 x i8]* @str, i64 0, i64 0))
%2 = tail call i32 @exit(i32 1)
unreachable
}
/* Type definitions */
typedef int /*<<< orphan*/ pthread_t;
typedef int /*<<< orphan*/ pthread_attr_t;

/* Variables and functions */
int errno;
int pthread_create(int /*<<< orphan*/ *, int /*<<< orphan*/ const *,
                   void *(*)(void *), void *);
int xpthread_create(pthread_t *thread, const pthread_attr_t *attr,
                    void *(*start_routine)(void *), void *arg) {
  errno = pthread_create(thread, attr, start_routine, arg);
  if (errno) {
    ;
  }
  return errno;
}


x86 assembly (clang, -O0):
<xpthread_create>:
push   %rbp
mov    %rsp,%rbp
sub    $0x20,%rsp
mov    %rdi,-0x8(%rbp)
mov    %rsi,-0x10(%rbp)
mov    %rdx,-0x18(%rbp)
mov    %rcx,-0x20(%rbp)
mov    -0x8(%rbp),%rdi
mov    -0x10(%rbp),%rsi
mov    -0x18(%rbp),%rdx
mov    -0x20(%rbp),%rcx
call   1030 <pthread_create@plt>
mov    %eax,%ecx
mov    0x2e9a(%rip),%rax
mov    %ecx,(%rax)
mov    0x2e91(%rip),%rax
cmpl   $0x0,(%rax)
je     115d <xpthread_create+0x4d>
jmp    115d <xpthread_create+0x4d>
mov    0x2e7c(%rip),%rax
mov    (%rax),%eax
add    $0x20,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<xpthread_create>:
push   %rax
call   1030 <pthread_create@plt>
mov    0x2ec3(%rip),%rcx
mov    %eax,(%rcx)
pop    %rcx
ret

LLVM IR (-O0):
@errno = global i32 0
define i32 @xpthread_create(i32* %0, i32* %1, i8* (i8*)* %2, i8* %3) {
%5 = alloca i32*
%6 = alloca i32*
%7 = alloca i8* (i8*)*
%8 = alloca i8*
store i32* %0, i32** %5
store i32* %1, i32** %6
store i8* (i8*)* %2, i8* (i8*)** %7
store i8* %3, i8** %8
%9 = load i32*, i32** %5
%10 = load i32*, i32** %6
%11 = load i8* (i8*)*, i8* (i8*)** %7
%12 = load i8*, i8** %8
%13 = call i32 @pthread_create(i32* %9, i32* %10, i8* (i8*)* %11, i8* %12)
store i32 %13, i32* @errno
%14 = load i32, i32* @errno
%15 = icmp ne i32 %14, 0
br i1 %15, label %16, label %17
16: ; preds = %4
br label %17
17: ; preds = %16, %4
%18 = load i32, i32* @errno
ret i32 %18
}

LLVM IR (-O2):
@errno = global i32 0
define i32 @xpthread_create(i32* %0, i32* %1, i8* (i8*)* %2, i8* %3) {
%5 = tail call i32 @pthread_create(i32* %0, i32* %1, i8* (i8*)* %2, i8* %3)
store i32 %5, i32* @errno
ret i32 %5
}
int foo_uniform(int *b, int c) { return *b + c; }


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

x86 assembly (clang, -O2):
<foo_uniform>:
mov    %esi,%eax
add    (%rdi),%eax
ret

LLVM IR (-O0):
define i32 @foo_uniform(i32* %0, i32 %1) {
%3 = alloca i32*
%4 = alloca i32
store i32* %0, i32** %3
store i32 %1, i32* %4
%5 = load i32*, i32** %3
%6 = load i32, i32* %5
%7 = load i32, i32* %4
%8 = add nsw i32 %6, %7
ret i32 %8
}

LLVM IR (-O2):
define i32 @foo_uniform(i32* nocapture %0, i32 %1) {
%3 = load i32, i32* %0
%4 = add nsw i32 %3, %1
ret i32 %4
}
/* Type definitions */
struct anic {
  int dummy;
};

/* Variables and functions */
int /*<<< orphan*/ free(struct anic *);
void free_anic(struct anic *a) { free(a); }


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

x86 assembly (clang, -O2):
<free_anic>:
jmp    1030 <free@plt>

LLVM IR (-O0):
%struct.anic = type { i32 }
define void @free_anic(%struct.anic* %0) {
%2 = alloca %struct.anic*
store %struct.anic* %0, %struct.anic** %2
%3 = load %struct.anic*, %struct.anic** %2
%4 = call i32 @free(%struct.anic* %3)
ret void
}

LLVM IR (-O2):
%struct.anic = type { i32 }
define void @free_anic(%struct.anic* nocapture %0) {
%2 = tail call i32 @free(%struct.anic* %0)
ret void
}
/* Variables and functions */
int /*<<< orphan*/ handle_36(int /*<<< orphan*/);
int gen_36(void) {
  handle_36(0);
  return 0;
}


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

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

LLVM IR (-O0):
define i32 @gen_36() {
%1 = call i32 @handle_36(i32 0)
ret i32 0
}

LLVM IR (-O2):
define i32 @gen_36() {
%1 = tail call i32 @handle_36(i32 0)
ret i32 0
}
/* Type definitions */
struct svc_req {
  int dummy;
};

/* Variables and functions */
int *abrir_1_svc(char *, struct svc_req *);
int *_abrir_1(char **argp, struct svc_req *rqstp) {
  return (abrir_1_svc(*argp, rqstp));
}


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

x86 assembly (clang, -O2):
<_abrir_1>:
mov    (%rdi),%rdi
jmp    1030 <abrir_1_svc@plt>

LLVM IR (-O0):
%struct.svc_req = type { i32 }
define i32* @_abrir_1(i8** %0, %struct.svc_req* %1) {
%3 = alloca i8**
%4 = alloca %struct.svc_req*
store i8** %0, i8*** %3
store %struct.svc_req* %1, %struct.svc_req** %4
%5 = load i8**, i8*** %3
%6 = load i8*, i8** %5
%7 = load %struct.svc_req*, %struct.svc_req** %4
%8 = call i32* @abrir_1_svc(i8* %6, %struct.svc_req* %7)
ret i32* %8
}

LLVM IR (-O2):
%struct.svc_req = type { i32 }
define i32* @_abrir_1(i8** nocapture %0, %struct.svc_req* %1) {
%3 = load i8*, i8** %0
%4 = tail call i32* @abrir_1_svc(i8* %3, %struct.svc_req* %1)
ret i32* %4
}
double Mod360Degree(double degrees) {
  double dbValue = degrees;
  while (dbValue < 0.0)
    dbValue += 360.0;
  while (dbValue > 360.0)
    dbValue -= 360.0;
  return dbValue;
}


x86 assembly (clang, -O0):
<Mod360Degree>:
push   %rbp
mov    %rsp,%rbp
movsd  %xmm0,-0x8(%rbp)
movsd  -0x8(%rbp),%xmm0
movsd  %xmm0,-0x10(%rbp)
xorps  %xmm0,%xmm0
ucomisd -0x10(%rbp),%xmm0
jbe    1138 <Mod360Degree+0x38>
movsd  0xed7(%rip),%xmm0
addsd  -0x10(%rbp),%xmm0
movsd  %xmm0,-0x10(%rbp)
jmp    1113 <Mod360Degree+0x13>
jmp    113d <Mod360Degree+0x3d>
movsd  -0x10(%rbp),%xmm0
movsd  0xeb6(%rip),%xmm1
ucomisd %xmm1,%xmm0
jbe    116f <Mod360Degree+0x6f>
movsd  -0x10(%rbp),%xmm0
movsd  0xe9f(%rip),%xmm1
subsd  %xmm1,%xmm0
movsd  %xmm0,-0x10(%rbp)
jmp    113d <Mod360Degree+0x3d>
movsd  -0x10(%rbp),%xmm0
pop    %rbp
ret

x86 assembly (clang, -O2):
<Mod360Degree>:
xorpd  %xmm1,%xmm1
ucomisd %xmm0,%xmm1
jbe    112a <Mod360Degree+0x2a>
movsd  0xeee(%rip),%xmm2
cs nopw 0x0(%rax,%rax,1)
nopl   0x0(%rax)
addsd  %xmm2,%xmm0
ucomisd %xmm0,%xmm1
ja     1120 <Mod360Degree+0x20>
ucomisd 0xece(%rip),%xmm0
jbe    115a <Mod360Degree+0x5a>
movsd  0xecc(%rip),%xmm1
movsd  0xebc(%rip),%xmm2
cs nopw 0x0(%rax,%rax,1)
xchg   %ax,%ax
addsd  %xmm1,%xmm0
ucomisd %xmm2,%xmm0
ja     1150 <Mod360Degree+0x50>
ret

LLVM IR (-O0):
define double @Mod360Degree(double %0) {
%2 = alloca double
%3 = alloca double
store double %0, double* %2
%4 = load double, double* %2
store double %4, double* %3
br label %5
5: ; preds = %8, %1
%6 = load double, double* %3
%7 = fcmp olt double %6, 0.000000e+00
br i1 %7, label %8, label %11
8: ; preds = %5
%9 = load double, double* %3
%10 = fadd double %9, 3.600000e+02
store double %10, double* %3
br label %5
11: ; preds = %5
br label %12
12: ; preds = %15, %11
%13 = load double, double* %3
%14 = fcmp ogt double %13, 3.600000e+02
br i1 %14, label %15, label %18
15: ; preds = %12
%16 = load double, double* %3
%17 = fsub double %16, 3.600000e+02
store double %17, double* %3
br label %12
18: ; preds = %12
%19 = load double, double* %3
ret double %19
}

LLVM IR (-O2):
define double @Mod360Degree(double %0) {
%2 = fcmp olt double %0, 0.000000e+00
br i1 %2, label %6, label %3
3: ; preds = %6, %1
%4 = phi double [ %0, %1 ], [ %8, %6 ]
%5 = fcmp ogt double %4, 3.600000e+02
br i1 %5, label %10, label %14
6: ; preds = %1, %6
%7 = phi double [ %8, %6 ], [ %0, %1 ]
%8 = fadd double %7, 3.600000e+02
%9 = fcmp olt double %8, 0.000000e+00
br i1 %9, label %6, label %3
10: ; preds = %3, %10
%11 = phi double [ %12, %10 ], [ %4, %3 ]
%12 = fadd double %11, -3.600000e+02
%13 = fcmp ogt double %12, 3.600000e+02
br i1 %13, label %10, label %14
14: ; preds = %10, %3
%15 = phi double [ %4, %3 ], [ %12, %10 ]
ret double %15
}
/* Variables and functions */
scalar_t__ __VERIFIER_nondet_int();
int *alloca(int);
int main() {
  int *x = alloca(sizeof(int));
  while (*x <= 1000) {
    if (__VERIFIER_nondet_int()) {
      *x = -2 * (*x) + 2;
    } else {
      *x = -3 * (*x) - 2;
    }
  }
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
movl   $0x0,-0x4(%rbp)
mov    $0x4,%edi
call   1030 <alloca@plt>
mov    %rax,-0x10(%rbp)
mov    -0x10(%rbp),%rax
cmpl   $0x3e8,(%rax)
jg     118e <main+0x6e>
mov    $0x0,%al
call   1040 <__VERIFIER_nondet_int@plt>
cmp    $0x0,%rax
je     1176 <main+0x56>
mov    -0x10(%rbp),%rax
imul   $0xfffffffe,(%rax),%ecx
add    $0x2,%ecx
mov    -0x10(%rbp),%rax
mov    %ecx,(%rax)
jmp    1189 <main+0x69>
mov    -0x10(%rbp),%rax
imul   $0xfffffffd,(%rax),%ecx
sub    $0x2,%ecx
mov    -0x10(%rbp),%rax
mov    %ecx,(%rax)
jmp    113d <main+0x1d>
mov    -0x4(%rbp),%eax
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %rbx
mov    $0x4,%edi
call   1030 <alloca@plt>
cmpl   $0x3e8,(%rax)
jg     116d <main+0x4d>
mov    %rax,%rbx
cs nopw 0x0(%rax,%rax,1)
xor    %eax,%eax
call   1040 <__VERIFIER_nondet_int@plt>
xor    %ecx,%ecx
xor    %edx,%edx
test   %rax,%rax
setne  %cl
sete   %dl
mov    $0xfffffffe,%eax
sub    %edx,%eax
imul   (%rbx),%eax
lea    (%rax,%rcx,4),%eax
add    $0xfffffffe,%eax
mov    %eax,(%rbx)
cmp    $0x3e9,%eax
jl     1140 <main+0x20>
xor    %eax,%eax
pop    %rbx
ret

LLVM IR (-O0):
define i32 @main() {
%1 = alloca i32
%2 = alloca i32*
store i32 0, i32* %1
%3 = call i32* @alloca(i32 4)
store i32* %3, i32** %2
br label %4
4: ; preds = %23, %0
%5 = load i32*, i32** %2
%6 = load i32, i32* %5
%7 = icmp sle i32 %6, 1000
br i1 %7, label %8, label %24
8: ; preds = %4
%9 = call i64 (...) @__VERIFIER_nondet_int()
%10 = icmp ne i64 %9, 0
br i1 %10, label %11, label %17
11: ; preds = %8
%12 = load i32*, i32** %2
%13 = load i32, i32* %12
%14 = mul nsw i32 -2, %13
%15 = add nsw i32 %14, 2
%16 = load i32*, i32** %2
store i32 %15, i32* %16
br label %23
17: ; preds = %8
%18 = load i32*, i32** %2
%19 = load i32, i32* %18
%20 = mul nsw i32 -3, %19
%21 = sub nsw i32 %20, 2
%22 = load i32*, i32** %2
store i32 %21, i32* %22
br label %23
23: ; preds = %17, %11
br label %4
24: ; preds = %4
%25 = load i32, i32* %1
ret i32 %25
}

LLVM IR (-O2):
define i32 @main() {
%1 = tail call i32* @alloca(i32 4)
%2 = load i32, i32* %1
%3 = icmp slt i32 %2, 1001
br i1 %3, label %4, label %13
4: ; preds = %0, %4
%5 = tail call i64 (...) @__VERIFIER_nondet_int()
%6 = icmp eq i64 %5, 0
%7 = load i32, i32* %1
%8 = select i1 %6, i32 -3, i32 -2
%9 = select i1 %6, i32 -2, i32 2
%10 = mul nsw i32 %7, %8
%11 = add nsw i32 %10, %9
store i32 %11, i32* %1
%12 = icmp slt i32 %11, 1001
br i1 %12, label %4, label %13
13: ; preds = %4, %0
ret i32 0
}