xunge/DecIR huggingface dataset:
/* Variables and functions */
int /*<<< orphan*/ usleep(unsigned int);
void Sys_Sleep(int msec) {
  if (msec < 0)
    return;
  usleep((unsigned int)msec * 1000);
}


x86 assembly (clang, -O0):
<Sys_Sleep>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
mov    %edi,-0x4(%rbp)
cmpl   $0x0,-0x4(%rbp)
jge    112a <Sys_Sleep+0x1a>
jmp    1136 <Sys_Sleep+0x26>
imul   $0x3e8,-0x4(%rbp),%edi
call   1030 <usleep@plt>
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<Sys_Sleep>:
test   %edi,%edi
js     111f <Sys_Sleep+0xf>
imul   $0x3e8,%edi,%edi
jmp    1030 <usleep@plt>
ret

LLVM IR (-O0):
define void @Sys_Sleep(i32 %0) {
%2 = alloca i32
store i32 %0, i32* %2
%3 = load i32, i32* %2
%4 = icmp slt i32 %3, 0
br i1 %4, label %5, label %6
5: ; preds = %1
br label %10
6: ; preds = %1
%7 = load i32, i32* %2
%8 = mul i32 %7, 1000
%9 = call i32 @usleep(i32 %8)
br label %10
10: ; preds = %6, %5
ret void
}

LLVM IR (-O2):
define void @Sys_Sleep(i32 %0) {
%2 = icmp slt i32 %0, 0
br i1 %2, label %6, label %3
3: ; preds = %1
%4 = mul i32 %0, 1000
%5 = tail call i32 @usleep(i32 %4)
br label %6
6: ; preds = %1, %3
ret void
}
int isBlank(char ch) {
  return ch == ' ' || ch == '\n' || ch == '\r' || ch == '\t';
}


x86 assembly (clang, -O0):
<isBlank>:
push   %rbp
mov    %rsp,%rbp
mov    %dil,%al
mov    %al,-0x1(%rbp)
movsbl -0x1(%rbp),%ecx
mov    $0x1,%al
cmp    $0x20,%ecx
mov    %al,-0x2(%rbp)
je     114d <isBlank+0x4d>
movsbl -0x1(%rbp),%ecx
mov    $0x1,%al
cmp    $0xa,%ecx
mov    %al,-0x2(%rbp)
je     114d <isBlank+0x4d>
movsbl -0x1(%rbp),%ecx
mov    $0x1,%al
cmp    $0xd,%ecx
mov    %al,-0x2(%rbp)
je     114d <isBlank+0x4d>
movsbl -0x1(%rbp),%eax
cmp    $0x9,%eax
sete   %al
mov    %al,-0x2(%rbp)
mov    -0x2(%rbp),%al
and    $0x1,%al
movzbl %al,%eax
pop    %rbp
ret

x86 assembly (clang, -O2):
<isBlank>:
cmp    $0x20,%dil
ja     1120 <isBlank+0x20>
mov    $0x1,%eax
movzbl %dil,%ecx
movabs $0x100002400,%rdx
bt     %rcx,%rdx
jae    1120 <isBlank+0x20>
ret
xor    %eax,%eax
cmp    $0x9,%dil
sete   %al
ret

LLVM IR (-O0):
define i32 @isBlank(i8 signext %0) {
%2 = alloca i8
store i8 %0, i8* %2
%3 = load i8, i8* %2
%4 = sext i8 %3 to i32
%5 = icmp eq i32 %4, 32
br i1 %5, label %18, label %6
6: ; preds = %1
%7 = load i8, i8* %2
%8 = sext i8 %7 to i32
%9 = icmp eq i32 %8, 10
br i1 %9, label %18, label %10
10: ; preds = %6
%11 = load i8, i8* %2
%12 = sext i8 %11 to i32
%13 = icmp eq i32 %12, 13
br i1 %13, label %18, label %14
14: ; preds = %10
%15 = load i8, i8* %2
%16 = sext i8 %15 to i32
%17 = icmp eq i32 %16, 9
br label %18
18: ; preds = %14, %10, %6, %1
%19 = phi i1 [ true, %10 ], [ true, %6 ], [ true, %1 ], [ %17, %14 ]
%20 = zext i1 %19 to i32
ret i32 %20
}

LLVM IR (-O2):
define i32 @isBlank(i8 signext %0) {
switch i8 %0, label %2 [
i8 32, label %5
i8 13, label %5
i8 10, label %5
]
2: ; preds = %1
%3 = icmp eq i8 %0, 9
%4 = zext i1 %3 to i32
br label %5
5: ; preds = %1, %1, %1, %2
%6 = phi i32 [ 1, %1 ], [ %4, %2 ], [ 1, %1 ], [ 1, %1 ]
ret i32 %6
}
/* Variables and functions */
size_t iw_calc_bytesperrow(int num_pixels, int bits_per_pixel) {
  return (size_t)(((num_pixels * bits_per_pixel) + 7) / 8);
}


x86 assembly (clang, -O0):
<iw_calc_bytesperrow>:
push   %rbp
mov    %rsp,%rbp
mov    %edi,-0x4(%rbp)
mov    %esi,-0x8(%rbp)
mov    -0x4(%rbp),%eax
imul   -0x8(%rbp),%eax
add    $0x7,%eax
mov    $0x8,%ecx
cltd
idiv   %ecx
cltq
pop    %rbp
ret

x86 assembly (clang, -O2):
<iw_calc_bytesperrow>:
imul   %esi,%edi
lea    0x7(%rdi),%eax
add    $0xe,%edi
test   %eax,%eax
cmovns %eax,%edi
sar    $0x3,%edi
movslq %edi,%rax
ret

LLVM IR (-O0):
define i64 @iw_calc_bytesperrow(i32 %0, i32 %1) {
%3 = alloca i32
%4 = alloca i32
store i32 %0, i32* %3
store i32 %1, i32* %4
%5 = load i32, i32* %3
%6 = load i32, i32* %4
%7 = mul nsw i32 %5, %6
%8 = add nsw i32 %7, 7
%9 = sdiv i32 %8, 8
%10 = sext i32 %9 to i64
ret i64 %10
}

LLVM IR (-O2):
define i64 @iw_calc_bytesperrow(i32 %0, i32 %1) {
%3 = mul nsw i32 %1, %0
%4 = add nsw i32 %3, 7
%5 = sdiv i32 %4, 8
%6 = sext i32 %5 to i64
ret i64 %6
}
/* Variables and functions */
int __VERIFIER_nondet_int();
int main() {
  int k, i;
  k = __VERIFIER_nondet_int();
  i = __VERIFIER_nondet_int();
  if (k >= 0) {
  } else {
    i = -1;
  }
  while (i >= 0) {
    i = __VERIFIER_nondet_int();
  }
  i = 2;
  return 0;
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
movl   $0x0,-0x4(%rbp)
mov    $0x0,%al
call   1030 <__VERIFIER_nondet_int@plt>
mov    %eax,-0x8(%rbp)
mov    $0x0,%al
call   1030 <__VERIFIER_nondet_int@plt>
mov    %eax,-0xc(%rbp)
cmpl   $0x0,-0x8(%rbp)
jl     1142 <main+0x32>
jmp    1149 <main+0x39>
movl   $0xffffffff,-0xc(%rbp)
jmp    114e <main+0x3e>
cmpl   $0x0,-0xc(%rbp)
jl     1167 <main+0x57>
mov    $0x0,%al
call   1030 <__VERIFIER_nondet_int@plt>
mov    %eax,-0xc(%rbp)
jmp    114e <main+0x3e>
movl   $0x2,-0xc(%rbp)
xor    %eax,%eax
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %rbx
xor    %eax,%eax
call   1030 <__VERIFIER_nondet_int@plt>
mov    %eax,%ebx
xor    %eax,%eax
call   1030 <__VERIFIER_nondet_int@plt>
test   %ebx,%ebx
js     113f <main+0x2f>
cs nopw 0x0(%rax,%rax,1)
nop
test   %eax,%eax
js     113f <main+0x2f>
xor    %eax,%eax
call   1030 <__VERIFIER_nondet_int@plt>
test   %eax,%eax
jns    1134 <main+0x24>
xor    %eax,%eax
pop    %rbx
ret

LLVM IR (-O0):
define i32 @main() {
%1 = alloca i32
%2 = alloca i32
%3 = alloca i32
store i32 0, i32* %1
%4 = call i32 (...) @__VERIFIER_nondet_int()
store i32 %4, i32* %2
%5 = call i32 (...) @__VERIFIER_nondet_int()
store i32 %5, i32* %3
%6 = load i32, i32* %2
%7 = icmp sge i32 %6, 0
br i1 %7, label %8, label %9
8: ; preds = %0
br label %10
9: ; preds = %0
store i32 -1, i32* %3
br label %10
10: ; preds = %9, %8
br label %11
11: ; preds = %14, %10
%12 = load i32, i32* %3
%13 = icmp sge i32 %12, 0
br i1 %13, label %14, label %16
14: ; preds = %11
%15 = call i32 (...) @__VERIFIER_nondet_int()
store i32 %15, i32* %3
br label %11
16: ; preds = %11
store i32 2, i32* %3
ret i32 0
}

LLVM IR (-O2):
define i32 @main() {
%1 = tail call i32 (...) @__VERIFIER_nondet_int()
%2 = tail call i32 (...) @__VERIFIER_nondet_int()
%3 = icmp sgt i32 %1, -1
%4 = icmp sgt i32 %2, -1
%5 = select i1 %3, i1 %4, i1 false
br i1 %5, label %6, label %9
6: ; preds = %0, %6
%7 = tail call i32 (...) @__VERIFIER_nondet_int()
%8 = icmp sgt i32 %7, -1
br i1 %8, label %6, label %9
9: ; preds = %6, %0
ret i32 0
}
/* Variables and functions */
int /*<<< orphan*/ printf(char *);
void bKashf() {
  printf("This module is on development process.Please try again later.");
}


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

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

LLVM IR (-O0):
@.str = [62 x i8] c"This module is on development process.Please try again later.\00"
define void @bKashf() {
%1 = call i32 @printf(i8* getelementptr inbounds ([62 x i8], [62 x i8]* @.str, i64 0, i64 0))
ret void
}

LLVM IR (-O2):
@.str = [62 x i8] c"This module is on development process.Please try again later.\00"
define void @bKashf() {
%1 = tail call i32 @printf(i8* dereferenceable(1) getelementptr inbounds ([62 x i8], [62 x i8]* @.str, i64 0, i64 0))
ret void
}
int _testfunc_callback_with_pointer(int (*func)(int *)) {
  int table[] = {1, 2, 3, 4, 5, 6, 7, 8, 9, 10};
  return (*func)(table);
}


x86 assembly (clang, -O0):
<_testfunc_callback_with_pointer>:
push   %rbp
mov    %rsp,%rbp
sub    $0x30,%rsp
mov    %rdi,-0x8(%rbp)
lea    -0x30(%rbp),%rdi
lea    0xed9(%rip),%rsi
mov    $0x28,%edx
call   1030 <memcpy@plt>
mov    -0x8(%rbp),%rax
lea    -0x30(%rbp),%rdi
call   *%rax
add    $0x30,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<_testfunc_callback_with_pointer>:
sub    $0x28,%rsp
mov    %rdi,%rax
mov    0xf12(%rip),%rcx
mov    %rcx,0x20(%rsp)
movaps 0xef6(%rip),%xmm0
movaps %xmm0,0x10(%rsp)
movaps 0xeda(%rip),%xmm0
movaps %xmm0,(%rsp)
mov    %rsp,%rdi
call   *%rax
add    $0x28,%rsp
ret

LLVM IR (-O0):
@__const._testfunc_callback_with_pointer.table = [10 x i32] [i32 1, i32 2, i32 3, i32 4, i32 5, i32 6, i32 7, i32 8, i32 9, i32 10]
define i32 @_testfunc_callback_with_pointer(i32 (i32*)* %0) {
%2 = alloca i32 (i32*)*
%3 = alloca [10 x i32]
store i32 (i32*)* %0, i32 (i32*)** %2
%4 = bitcast [10 x i32]* %3 to i8*
%5 = load i32 (i32*)*, i32 (i32*)** %2
%6 = getelementptr inbounds [10 x i32], [10 x i32]* %3, i64 0, i64 0
%7 = call i32 %5(i32* %6)
ret i32 %7
}

LLVM IR (-O2):
@__const._testfunc_callback_with_pointer.table = [10 x i32] [i32 1, i32 2, i32 3, i32 4, i32 5, i32 6, i32 7, i32 8, i32 9, i32 10]
define i32 @_testfunc_callback_with_pointer(i32 (i32*)* nocapture %0) {
%2 = alloca [10 x i32]
%3 = bitcast [10 x i32]* %2 to i8*
%4 = getelementptr inbounds [10 x i32], [10 x i32]* %2, i64 0, i64 0
%5 = call i32 %0(i32* %4)
ret i32 %5
}
const void *avl_default_item_copy(const void *item) { return item; }


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

x86 assembly (clang, -O2):
<avl_default_item_copy>:
mov    %rdi,%rax
ret

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

LLVM IR (-O2):
define i8* @avl_default_item_copy(i8* readnone returned %0) {
ret i8* %0
}
/* Variables and functions */
int /*<<< orphan*/ sscanf(char *, char *, int *);
int db_to_index(char *s_db) {
  int db;
  sscanf(s_db, "%ddb", &db);
  return db + 10;
}


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

x86 assembly (clang, -O2):
<db_to_index>:
push   %rax
lea    0xee8(%rip),%rsi
lea    0x4(%rsp),%rdx
call   1030 <sscanf@plt>
mov    0x4(%rsp),%eax
add    $0xa,%eax
pop    %rcx
ret

LLVM IR (-O0):
@.str = [5 x i8] c"%ddb\00"
define i32 @db_to_index(i8* %0) {
%2 = alloca i8*
%3 = alloca i32
store i8* %0, i8** %2
%4 = load i8*, i8** %2
%5 = call i32 @sscanf(i8* %4, i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str, i64 0, i64 0), i32* %3)
%6 = load i32, i32* %3
%7 = add nsw i32 %6, 10
ret i32 %7
}

LLVM IR (-O2):
@.str = [5 x i8] c"%ddb\00"
define i32 @db_to_index(i8* nocapture %0) {
%2 = alloca i32
%3 = bitcast i32* %2 to i8*
%4 = call i32 @sscanf(i8* %0, i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str, i64 0, i64 0), i32* %2)
%5 = load i32, i32* %2
%6 = add nsw i32 %5, 10
ret i32 %6
}
/* Variables and functions */
float clampf(float, float, float);
float stepf(float, float);
float boxstepf(float value, float slope_start, float slope_end) {
  float diff = slope_end - slope_start;
  if (diff == 0)
    return stepf(value, slope_start);
  return clampf((value - slope_start) / diff, 0.0f, 1.0f);
}


x86 assembly (clang, -O0):
<boxstepf>:
push   %rbp
mov    %rsp,%rbp
sub    $0x20,%rsp
movss  %xmm0,-0x8(%rbp)
movss  %xmm1,-0xc(%rbp)
movss  %xmm2,-0x10(%rbp)
movss  -0x10(%rbp),%xmm0
subss  -0xc(%rbp),%xmm0
movss  %xmm0,-0x14(%rbp)
movss  -0x14(%rbp),%xmm0
xorps  %xmm1,%xmm1
ucomiss %xmm1,%xmm0
jne    1176 <boxstepf+0x56>
jp     1176 <boxstepf+0x56>
movss  -0x8(%rbp),%xmm0
movss  -0xc(%rbp),%xmm1
call   1040 <stepf@plt>
movss  %xmm0,-0x4(%rbp)
jmp    119a <boxstepf+0x7a>
movss  -0x8(%rbp),%xmm0
subss  -0xc(%rbp),%xmm0
divss  -0x14(%rbp),%xmm0
xorps  %xmm1,%xmm1
movss  0xe70(%rip),%xmm2
call   1030 <clampf@plt>
movss  %xmm0,-0x4(%rbp)
movss  -0x4(%rbp),%xmm0
add    $0x20,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<boxstepf>:
subss  %xmm1,%xmm2
xorps  %xmm3,%xmm3
ucomiss %xmm3,%xmm2
jne    1133 <boxstepf+0x13>
jp     1133 <boxstepf+0x13>
jmp    1040 <stepf@plt>
subss  %xmm1,%xmm0
divss  %xmm2,%xmm0
movss  0xebd(%rip),%xmm2
xorps  %xmm1,%xmm1
jmp    1030 <clampf@plt>

LLVM IR (-O0):
define float @boxstepf(float %0, float %1, float %2) {
%4 = alloca float
%5 = alloca float
%6 = alloca float
%7 = alloca float
%8 = alloca float
store float %0, float* %5
store float %1, float* %6
store float %2, float* %7
%9 = load float, float* %7
%10 = load float, float* %6
%11 = fsub float %9, %10
store float %11, float* %8
%12 = load float, float* %8
%13 = fcmp oeq float %12, 0.000000e+00
br i1 %13, label %14, label %18
14: ; preds = %3
%15 = load float, float* %5
%16 = load float, float* %6
%17 = call float @stepf(float %15, float %16)
store float %17, float* %4
br label %25
18: ; preds = %3
%19 = load float, float* %5
%20 = load float, float* %6
%21 = fsub float %19, %20
%22 = load float, float* %8
%23 = fdiv float %21, %22
%24 = call float @clampf(float %23, float 0.000000e+00, float 1.000000e+00)
store float %24, float* %4
br label %25
25: ; preds = %18, %14
%26 = load float, float* %4
ret float %26
}

LLVM IR (-O2):
define float @boxstepf(float %0, float %1, float %2) {
%4 = fsub float %2, %1
%5 = fcmp oeq float %4, 0.000000e+00
br i1 %5, label %6, label %8
6: ; preds = %3
%7 = tail call float @stepf(float %0, float %1)
br label %12
8: ; preds = %3
%9 = fsub float %0, %1
%10 = fdiv float %9, %4
%11 = tail call float @clampf(float %10, float 0.000000e+00, float 1.000000e+00)
br label %12
12: ; preds = %8, %6
%13 = phi float [ %7, %6 ], [ %11, %8 ]
ret float %13
}
/* Type definitions */
typedef scalar_t__ int16_t;

/* Variables and functions */
double atof(char const *);
double pow(int, int);
scalar_t__ round(double);
int str2int16(int16_t *i, const char *str, int ndec) {
  double dbl;
  if (i == NULL || str == NULL)
    return 0;
  dbl = atof(str);
  *i = (int16_t)(round(dbl * pow(10, ndec)));
  return 1;
}


x86 assembly (clang, -O0):
<str2int16>:
push   %rbp
mov    %rsp,%rbp
sub    $0x30,%rsp
mov    %rdi,-0x10(%rbp)
mov    %rsi,-0x18(%rbp)
mov    %edx,-0x1c(%rbp)
cmpq   $0x0,-0x10(%rbp)
je     1159 <str2int16+0x29>
cmpq   $0x0,-0x18(%rbp)
jne    1165 <str2int16+0x35>
movl   $0x0,-0x4(%rbp)
jmp    11ac <str2int16+0x7c>
mov    -0x18(%rbp),%rdi
call   1030 <atof@plt>
movsd  %xmm0,-0x28(%rbp)
movsd  -0x28(%rbp),%xmm0
movsd  %xmm0,-0x30(%rbp)
mov    -0x1c(%rbp),%esi
mov    $0xa,%edi
call   1040 <pow@plt>
movaps %xmm0,%xmm1
movsd  -0x30(%rbp),%xmm0
mulsd  %xmm1,%xmm0
call   1050 <round@plt>
mov    %rax,%rcx
mov    -0x10(%rbp),%rax
mov    %rcx,(%rax)
movl   $0x1,-0x4(%rbp)
mov    -0x4(%rbp),%eax
add    $0x30,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<str2int16>:
xor    %eax,%eax
test   %rdi,%rdi
je     1175 <str2int16+0x45>
test   %rsi,%rsi
je     1175 <str2int16+0x45>
push   %rbp
push   %rbx
push   %rax
mov    %edx,%ebp
mov    %rdi,%rbx
mov    %rsi,%rdi
call   1030 <atof@plt>
movsd  %xmm0,(%rsp)
mov    $0xa,%edi
mov    %ebp,%esi
call   1040 <pow@plt>
mulsd  (%rsp),%xmm0
call   1050 <round@plt>
mov    %rax,(%rbx)
mov    $0x1,%eax
add    $0x8,%rsp
pop    %rbx
pop    %rbp
ret

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

LLVM IR (-O2):
define i32 @str2int16(i64* writeonly %0, i8* %1, i32 %2) {
%4 = icmp eq i64* %0, null
%5 = icmp eq i8* %1, null
%6 = or i1 %4, %5
br i1 %6, label %12, label %7
7: ; preds = %3
%8 = tail call double @atof(i8* %1)
%9 = tail call double @pow(i32 10, i32 %2)
%10 = fmul double %8, %9
%11 = tail call i64 @round(double %10)
store i64 %11, i64* %0
br label %12
12: ; preds = %3, %7
%13 = phi i32 [ 1, %7 ], [ 0, %3 ]
ret i32 %13
}
/* Variables and functions */
int /*<<< orphan*/ PrioInmeldenID(int, int, int, int, int, int,
                                  int /*<<< orphan*/);
void PrioInmelden(int prio, int iInmelding, int iPN, int iPO, int iRT,
                  int iGBT) {
  PrioInmeldenID(prio, iInmelding, iPN, iPO, iRT, iGBT, 0);
}


x86 assembly (clang, -O0):
<PrioInmelden>:
push   %rbp
mov    %rsp,%rbp
sub    $0x20,%rsp
mov    %edi,-0x4(%rbp)
mov    %esi,-0x8(%rbp)
mov    %edx,-0xc(%rbp)
mov    %ecx,-0x10(%rbp)
mov    %r8d,-0x14(%rbp)
mov    %r9d,-0x18(%rbp)
mov    -0x4(%rbp),%edi
mov    -0x8(%rbp),%esi
mov    -0xc(%rbp),%edx
mov    -0x10(%rbp),%ecx
mov    -0x14(%rbp),%r8d
mov    -0x18(%rbp),%r9d
xor    %eax,%eax
movl   $0x0,(%rsp)
call   1030 <PrioInmeldenID@plt>
add    $0x20,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<PrioInmelden>:
push   %rax
movl   $0x0,(%rsp)
call   1030 <PrioInmeldenID@plt>
pop    %rax
ret

LLVM IR (-O0):
define void @PrioInmelden(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
store i32 %0, i32* %7
store i32 %1, i32* %8
store i32 %2, i32* %9
store i32 %3, i32* %10
store i32 %4, i32* %11
store i32 %5, i32* %12
%13 = load i32, i32* %7
%14 = load i32, i32* %8
%15 = load i32, i32* %9
%16 = load i32, i32* %10
%17 = load i32, i32* %11
%18 = load i32, i32* %12
%19 = call i32 @PrioInmeldenID(i32 %13, i32 %14, i32 %15, i32 %16, i32 %17, i32 %18, i32 0)
ret void
}

LLVM IR (-O2):
define void @PrioInmelden(i32 %0, i32 %1, i32 %2, i32 %3, i32 %4, i32 %5) {
%7 = tail call i32 @PrioInmeldenID(i32 %0, i32 %1, i32 %2, i32 %3, i32 %4, i32 %5, i32 0)
ret void
}
/* Variables and functions */
int /*<<< orphan*/ free(char *);
char *rfile_fn_dirname(char const *);
char *rfile_fn_rel2abs(char const *, char *);
char *rfile_fn_rel2abs_file(const char *rel, const char *base_file) {
  char *base, *abs;
  if (base = rfile_fn_dirname(base_file), !base)
    return NULL;
  abs = rfile_fn_rel2abs(rel, base);
  free(base);
  return abs;
}


x86 assembly (clang, -O0):
<rfile_fn_rel2abs_file>:
push   %rbp
mov    %rsp,%rbp
sub    $0x30,%rsp
mov    %rdi,-0x10(%rbp)
mov    %rsi,-0x18(%rbp)
mov    -0x18(%rbp),%rdi
call   1050 <rfile_fn_dirname@plt>
mov    %rax,-0x20(%rbp)
cmpq   $0x0,-0x20(%rbp)
setne  %al
xor    $0xff,%al
test   $0x1,%al
jne    1164 <rfile_fn_rel2abs_file+0x34>
jmp    1171 <rfile_fn_rel2abs_file+0x41>
movq   $0x0,-0x8(%rbp)
jmp    1193 <rfile_fn_rel2abs_file+0x63>
mov    -0x10(%rbp),%rdi
mov    -0x20(%rbp),%rsi
call   1040 <rfile_fn_rel2abs@plt>
mov    %rax,-0x28(%rbp)
mov    -0x20(%rbp),%rdi
call   1030 <free@plt>
mov    -0x28(%rbp),%rax
mov    %rax,-0x8(%rbp)
mov    -0x8(%rbp),%rax
add    $0x30,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<rfile_fn_rel2abs_file>:
push   %r14
push   %rbx
push   %rax
mov    %rdi,%r14
mov    %rsi,%rdi
call   1050 <rfile_fn_dirname@plt>
test   %rax,%rax
je     1162 <rfile_fn_rel2abs_file+0x32>
mov    %rax,%rbx
mov    %r14,%rdi
mov    %rax,%rsi
call   1040 <rfile_fn_rel2abs@plt>
mov    %rax,%r14
mov    %rbx,%rdi
call   1030 <free@plt>
mov    %r14,%rax
jmp    1164 <rfile_fn_rel2abs_file+0x34>
xor    %eax,%eax
add    $0x8,%rsp
pop    %rbx
pop    %r14
ret

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

LLVM IR (-O2):
define i8* @rfile_fn_rel2abs_file(i8* %0, i8* %1) {
%3 = tail call i8* @rfile_fn_dirname(i8* %1)
%4 = icmp eq i8* %3, null
br i1 %4, label %8, label %5
5: ; preds = %2
%6 = tail call i8* @rfile_fn_rel2abs(i8* %0, i8* %3)
%7 = tail call i32 @free(i8* %3)
br label %8
8: ; preds = %2, %5
%9 = phi i8* [ %6, %5 ], [ null, %2 ]
ret i8* %9
}
/* Variables and functions */
int /*<<< orphan*/ display_argv(int, char **);
int /*<<< orphan*/ sort_argv(int, char **);
int main(int argc, char *argv[]) {
  char **argv_t;
  argv_t = argv;
  sort_argv(argc, argv);
  display_argv(argc, argv);
  return (0);
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x20,%rsp
movl   $0x0,-0x4(%rbp)
mov    %edi,-0x8(%rbp)
mov    %rsi,-0x10(%rbp)
mov    -0x10(%rbp),%rax
mov    %rax,-0x18(%rbp)
mov    -0x8(%rbp),%edi
mov    -0x10(%rbp),%rsi
call   1030 <sort_argv@plt>
mov    -0x8(%rbp),%edi
mov    -0x10(%rbp),%rsi
call   1040 <display_argv@plt>
xor    %eax,%eax
add    $0x20,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %rbp
push   %rbx
push   %rax
mov    %rsi,%rbx
mov    %edi,%ebp
call   1030 <sort_argv@plt>
mov    %ebp,%edi
mov    %rbx,%rsi
call   1040 <display_argv@plt>
xor    %eax,%eax
add    $0x8,%rsp
pop    %rbx
pop    %rbp
ret

LLVM IR (-O0):
define i32 @main(i32 %0, i8** %1) {
%3 = alloca i32
%4 = alloca i32
%5 = alloca i8**
%6 = alloca i8**
store i32 0, i32* %3
store i32 %0, i32* %4
store i8** %1, i8*** %5
%7 = load i8**, i8*** %5
store i8** %7, i8*** %6
%8 = load i32, i32* %4
%9 = load i8**, i8*** %5
%10 = call i32 @sort_argv(i32 %8, i8** %9)
%11 = load i32, i32* %4
%12 = load i8**, i8*** %5
%13 = call i32 @display_argv(i32 %11, i8** %12)
ret i32 0
}

LLVM IR (-O2):
define i32 @main(i32 %0, i8** %1) {
%3 = tail call i32 @sort_argv(i32 %0, i8** %1)
%4 = tail call i32 @display_argv(i32 %0, i8** %1)
ret i32 0
}
/* Type definitions */
struct timeval {
  scalar_t__ tv_usec;
  int /*<<< orphan*/ tv_sec;
};

/* Variables and functions */
int /*<<< orphan*/ time(int /*<<< orphan*/ *);
int gettimeofday(struct timeval *tp, void *tzp) {
  tp->tv_sec = time(NULL);
  tp->tv_usec = 0;
  return 0;
}


x86 assembly (clang, -O0):
<gettimeofday>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
mov    %rdi,-0x8(%rbp)
mov    %rsi,-0x10(%rbp)
xor    %eax,%eax
mov    %eax,%edi
call   1030 <time@plt>
mov    %eax,%ecx
mov    -0x8(%rbp),%rax
mov    %ecx,0x8(%rax)
mov    -0x8(%rbp),%rax
movq   $0x0,(%rax)
xor    %eax,%eax
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<gettimeofday>:
push   %rbx
mov    %rdi,%rbx
xor    %edi,%edi
call   1030 <time@plt>
mov    %eax,0x8(%rbx)
movq   $0x0,(%rbx)
xor    %eax,%eax
pop    %rbx
ret

LLVM IR (-O0):
%struct.timeval = type { i64, i32 }
define i32 @gettimeofday(%struct.timeval* %0, i8* %1) {
%3 = alloca %struct.timeval*
%4 = alloca i8*
store %struct.timeval* %0, %struct.timeval** %3
store i8* %1, i8** %4
%5 = call i32 @time(i32* null)
%6 = load %struct.timeval*, %struct.timeval** %3
%7 = getelementptr inbounds %struct.timeval, %struct.timeval* %6, i32 0, i32 1
store i32 %5, i32* %7
%8 = load %struct.timeval*, %struct.timeval** %3
%9 = getelementptr inbounds %struct.timeval, %struct.timeval* %8, i32 0, i32 0
store i64 0, i64* %9
ret i32 0
}

LLVM IR (-O2):
%struct.timeval = type { i64, i32 }
define i32 @gettimeofday(%struct.timeval* nocapture writeonly %0, i8* nocapture readnone %1) {
%3 = tail call i32 @time(i32* null)
%4 = getelementptr inbounds %struct.timeval, %struct.timeval* %0, i64 0, i32 1
store i32 %3, i32* %4
%5 = getelementptr inbounds %struct.timeval, %struct.timeval* %0, i64 0, i32 0
store i64 0, i64* %5
ret i32 0
}
int do_116() { return 116; }


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

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

LLVM IR (-O0):
define i32 @do_116() {
ret i32 116
}

LLVM IR (-O2):
define i32 @do_116() {
ret i32 116
}
/* Variables and functions */
char *malloc(size_t);
int /*<<< orphan*/ noroom();
char *talloc(size_t n) {
  register char *p;
  p = malloc(n);
  if (p != NULL)
    return (p);
  noroom();
}


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

x86 assembly (clang, -O2):
<talloc>:
push   %rbx
call   1040 <malloc@plt>
mov    %rax,%rbx
test   %rax,%rax
jne    1135 <talloc+0x15>
xor    %eax,%eax
call   1030 <noroom@plt>
mov    %rbx,%rax
pop    %rbx
ret

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

LLVM IR (-O2):
define noalias i8* @talloc(i64 %0) {
%2 = tail call i8* @malloc(i64 %0)
%3 = icmp eq i8* %2, null
br i1 %3, label %4, label %6
4: ; preds = %1
%5 = tail call i32 (...) @noroom()
br label %6
6: ; preds = %1, %4
ret i8* %2
}
/* Variables and functions */
float powf(float const, float);
void glmPow3fs(float out[3], const float x[3], float y) {
  for (size_t i = 0; i < 3; ++i)
    out[i] = powf(x[i], y);
}


x86 assembly (clang, -O0):
<glmPow3fs>:
push   %rbp
mov    %rsp,%rbp
sub    $0x20,%rsp
mov    %rdi,-0x8(%rbp)
mov    %rsi,-0x10(%rbp)
movss  %xmm0,-0x14(%rbp)
movq   $0x0,-0x20(%rbp)
cmpq   $0x3,-0x20(%rbp)
jae    116d <glmPow3fs+0x5d>
mov    -0x10(%rbp),%rax
mov    -0x20(%rbp),%rcx
movss  (%rax,%rcx,4),%xmm0
movss  -0x14(%rbp),%xmm1
call   1030 <powf@plt>
mov    -0x8(%rbp),%rax
mov    -0x20(%rbp),%rcx
movss  %xmm0,(%rax,%rcx,4)
mov    -0x20(%rbp),%rax
add    $0x1,%rax
mov    %rax,-0x20(%rbp)
jmp    112d <glmPow3fs+0x1d>
add    $0x20,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<glmPow3fs>:
push   %r14
push   %rbx
push   %rax
movaps %xmm0,%xmm1
movss  %xmm0,0x4(%rsp)
mov    %rsi,%rbx
mov    %rdi,%r14
movss  (%rsi),%xmm0
call   1030 <powf@plt>
movss  %xmm0,(%r14)
movss  0x4(%rbx),%xmm0
movss  0x4(%rsp),%xmm1
call   1030 <powf@plt>
movss  %xmm0,0x4(%r14)
movss  0x8(%rbx),%xmm0
movss  0x4(%rsp),%xmm1
call   1030 <powf@plt>
movss  %xmm0,0x8(%r14)
add    $0x8,%rsp
pop    %rbx
pop    %r14
ret

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

LLVM IR (-O2):
define void @glmPow3fs(float* nocapture writeonly %0, float* nocapture %1, float %2) {
%4 = load float, float* %1
%5 = tail call float @powf(float %4, float %2)
store float %5, float* %0
%6 = getelementptr inbounds float, float* %1, i64 1
%7 = load float, float* %6
%8 = tail call float @powf(float %7, float %2)
%9 = getelementptr inbounds float, float* %0, i64 1
store float %8, float* %9
%10 = getelementptr inbounds float, float* %1, i64 2
%11 = load float, float* %10
%12 = tail call float @powf(float %11, float %2)
%13 = getelementptr inbounds float, float* %0, i64 2
store float %12, float* %13
ret void
}
/* Variables and functions */
int /*<<< orphan*/ clang_analyzer_eval(int);
int /*<<< orphan*/ strsep(char **, char *);
void strsep_changes_input_string() {
  char str[] = "abc";
  clang_analyzer_eval(str[1] == 'b');
  char *s = str;
  strsep(&s, "b");
  clang_analyzer_eval(str[1] == 'b');
}


x86 assembly (clang, -O0):
<strsep_changes_input_string>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
mov    0xed2(%rip),%eax
mov    %eax,-0x4(%rbp)
movsbl -0x3(%rbp),%eax
cmp    $0x62,%eax
sete   %al
and    $0x1,%al
movzbl %al,%edi
call   1040 <clang_analyzer_eval@plt>
lea    -0x4(%rbp),%rax
mov    %rax,-0x10(%rbp)
lea    -0x10(%rbp),%rdi
lea    0xeac(%rip),%rsi
call   1030 <strsep@plt>
movsbl -0x3(%rbp),%eax
cmp    $0x62,%eax
sete   %al
and    $0x1,%al
movzbl %al,%edi
call   1040 <clang_analyzer_eval@plt>
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<strsep_changes_input_string>:
sub    $0x18,%rsp
movl   $0x636261,0xc(%rsp)
mov    $0x1,%edi
call   1040 <clang_analyzer_eval@plt>
lea    0xc(%rsp),%rax
mov    %rax,0x10(%rsp)
lea    0xeb9(%rip),%rsi
lea    0x10(%rsp),%rdi
call   1030 <strsep@plt>
xor    %edi,%edi
cmpb   $0x62,0xd(%rsp)
sete   %dil
call   1040 <clang_analyzer_eval@plt>
add    $0x18,%rsp
ret

LLVM IR (-O0):
@__const.strsep_changes_input_string.str = [4 x i8] c"abc\00"
@.str = [2 x i8] c"b\00"
define void @strsep_changes_input_string() {
%1 = alloca [4 x i8]
%2 = alloca i8*
%3 = bitcast [4 x i8]* %1 to i8*
%4 = getelementptr inbounds [4 x i8], [4 x i8]* %1, i64 0, i64 1
%5 = load i8, i8* %4
%6 = sext i8 %5 to i32
%7 = icmp eq i32 %6, 98
%8 = zext i1 %7 to i32
%9 = call i32 @clang_analyzer_eval(i32 %8)
%10 = getelementptr inbounds [4 x i8], [4 x i8]* %1, i64 0, i64 0
store i8* %10, i8** %2
%11 = call i32 @strsep(i8** %2, i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str, i64 0, i64 0))
%12 = getelementptr inbounds [4 x i8], [4 x i8]* %1, i64 0, i64 1
%13 = load i8, i8* %12
%14 = sext i8 %13 to i32
%15 = icmp eq i32 %14, 98
%16 = zext i1 %15 to i32
%17 = call i32 @clang_analyzer_eval(i32 %16)
ret void
}

LLVM IR (-O2):
@.str = [2 x i8] c"b\00"
define void @strsep_changes_input_string() {
%1 = alloca i32
%2 = bitcast i32* %1 to [4 x i8]*
%3 = alloca i8*
%4 = bitcast i32* %1 to i8*
store i32 6513249, i32* %1
%5 = getelementptr inbounds [4 x i8], [4 x i8]* %2, i64 0, i64 1
%6 = tail call i32 @clang_analyzer_eval(i32 1)
%7 = bitcast i8** %3 to i8*
%8 = bitcast i8** %3 to i32**
store i32* %1, i32** %8
%9 = call i32 @strsep(i8** %3, i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str, i64 0, i64 0))
%10 = load i8, i8* %5
%11 = icmp eq i8 %10, 98
%12 = zext i1 %11 to i32
%13 = call i32 @clang_analyzer_eval(i32 %12)
ret void
}
/* Variables and functions */
int /*<<< orphan*/ printf(char *, char *, char);
int main() {
  int i = 1;
  char a = 5;
  printf(" %s = %i \n", "i", i);
  printf(" %s = %i \n", "a", a);
  return 0;
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
movl   $0x0,-0x4(%rbp)
movl   $0x1,-0x8(%rbp)
movb   $0x5,-0x9(%rbp)
mov    -0x8(%rbp),%eax
lea    0xecc(%rip),%rdi
lea    0xed0(%rip),%rsi
movsbl %al,%edx
call   1030 <printf@plt>
lea    0xeb6(%rip),%rdi
lea    0xebc(%rip),%rsi
movsbl -0x9(%rbp),%edx
call   1030 <printf@plt>
xor    %eax,%eax
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %rbx
lea    0xee8(%rip),%rbx
lea    0xeec(%rip),%rsi
mov    %rbx,%rdi
mov    $0x1,%edx
call   1030 <printf@plt>
lea    0xeda(%rip),%rsi
mov    %rbx,%rdi
mov    $0x5,%edx
call   1030 <printf@plt>
xor    %eax,%eax
pop    %rbx
ret

LLVM IR (-O0):
@.str = [11 x i8] c" %s = %i \0A\00"
@.str.1 = [2 x i8] c"i\00"
@.str.2 = [2 x i8] c"a\00"
define i32 @main() {
%1 = alloca i32
%2 = alloca i32
%3 = alloca i8
store i32 0, i32* %1
store i32 1, i32* %2
store i8 5, i8* %3
%4 = load i32, i32* %2
%5 = trunc i32 %4 to i8
%6 = call i32 @printf(i8* getelementptr inbounds ([11 x i8], [11 x i8]* @.str, i64 0, i64 0), i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.1, i64 0, i64 0), i8 signext %5)
%7 = load i8, i8* %3
%8 = call i32 @printf(i8* getelementptr inbounds ([11 x i8], [11 x i8]* @.str, i64 0, i64 0), i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.2, i64 0, i64 0), i8 signext %7)
ret i32 0
}

LLVM IR (-O2):
@.str = [11 x i8] c" %s = %i \0A\00"
@.str.1 = [2 x i8] c"i\00"
@.str.2 = [2 x i8] c"a\00"
define i32 @main() {
%1 = tail call i32 @printf(i8* getelementptr inbounds ([11 x i8], [11 x i8]* @.str, i64 0, i64 0), i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.1, i64 0, i64 0), i8 signext 1)
%2 = tail call i32 @printf(i8* getelementptr inbounds ([11 x i8], [11 x i8]* @.str, i64 0, i64 0), i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.2, i64 0, i64 0), i8 signext 5)
ret i32 0
}
void __copy_from_user_ll(void) { nsc_assert(0, __func__); }


x86 assembly (clang, -O0):
<__copy_from_user_ll>:
push   %rbp
mov    %rsp,%rbp
xor    %edi,%edi
lea    0xee3(%rip),%rsi
mov    $0x0,%al
call   1030 <nsc_assert@plt>
pop    %rbp
ret

x86 assembly (clang, -O2):
<__copy_from_user_ll>:
lea    0xee9(%rip),%rsi
xor    %edi,%edi
xor    %eax,%eax
jmp    1030 <nsc_assert@plt>

LLVM IR (-O0):
@__func__.__copy_from_user_ll = [20 x i8] c"__copy_from_user_ll\00"
define void @__copy_from_user_ll() {
%1 = call i32 (i32, i8*, ...) bitcast (i32 (...)* @nsc_assert to i32 (i32, i8*, ...)*)(i32 0, i8* getelementptr inbounds ([20 x i8], [20 x i8]* @__func__.__copy_from_user_ll, i64 0, i64 0))
ret void
}

LLVM IR (-O2):
@__func__.__copy_from_user_ll = [20 x i8] c"__copy_from_user_ll\00"
define void @__copy_from_user_ll() {
%1 = tail call i32 (i32, i8*, ...) bitcast (i32 (...)* @nsc_assert to i32 (i32, i8*, ...)*)(i32 0, i8* getelementptr inbounds ([20 x i8], [20 x i8]* @__func__.__copy_from_user_ll, i64 0, i64 0))
ret void
}
void testSymmetricIntSymOperations(int a) {
  if ((2 + a) != (a + 2))
    ((void)*(char *)0);
  if ((2 * a) != (a * 2))
    ((void)*(char *)0);
  if ((2 & a) != (a & 2))
    ((void)*(char *)0);
  if ((2 ^ a) != (a ^ 2))
    ((void)*(char *)0);
  if ((2 | a) != (a | 2))
    ((void)*(char *)0);
}


x86 assembly (clang, -O0):
<testSymmetricIntSymOperations>:
push   %rbp
mov    %rsp,%rbp
mov    %edi,-0x4(%rbp)
mov    -0x4(%rbp),%eax
add    $0x2,%eax
mov    -0x4(%rbp),%ecx
add    $0x2,%ecx
cmp    %ecx,%eax
je     111b <testSymmetricIntSymOperations+0x1b>
mov    -0x4(%rbp),%eax
shl    $0x1,%eax
mov    -0x4(%rbp),%ecx
shl    $0x1,%ecx
cmp    %ecx,%eax
je     112f <testSymmetricIntSymOperations+0x2f>
mov    -0x4(%rbp),%eax
and    $0x2,%eax
mov    -0x4(%rbp),%ecx
and    $0x2,%ecx
cmp    %ecx,%eax
je     1143 <testSymmetricIntSymOperations+0x43>
mov    -0x4(%rbp),%eax
xor    $0x2,%eax
mov    -0x4(%rbp),%ecx
xor    $0x2,%ecx
cmp    %ecx,%eax
je     1157 <testSymmetricIntSymOperations+0x57>
mov    -0x4(%rbp),%eax
or     $0x2,%eax
mov    -0x4(%rbp),%ecx
or     $0x2,%ecx
cmp    %ecx,%eax
je     116b <testSymmetricIntSymOperations+0x6b>
pop    %rbp
ret

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

LLVM IR (-O0):
define void @testSymmetricIntSymOperations(i32 %0) {
%2 = alloca i32
store i32 %0, i32* %2
%3 = load i32, i32* %2
%4 = add nsw i32 2, %3
%5 = load i32, i32* %2
%6 = add nsw i32 %5, 2
%7 = icmp ne i32 %4, %6
br i1 %7, label %8, label %10
8: ; preds = %1
%9 = load i8, i8* null
br label %10
10: ; preds = %8, %1
%11 = load i32, i32* %2
%12 = mul nsw i32 2, %11
%13 = load i32, i32* %2
%14 = mul nsw i32 %13, 2
%15 = icmp ne i32 %12, %14
br i1 %15, label %16, label %18
16: ; preds = %10
%17 = load i8, i8* null
br label %18
18: ; preds = %16, %10
%19 = load i32, i32* %2
%20 = and i32 2, %19
%21 = load i32, i32* %2
%22 = and i32 %21, 2
%23 = icmp ne i32 %20, %22
br i1 %23, label %24, label %26
24: ; preds = %18
%25 = load i8, i8* null
br label %26
26: ; preds = %24, %18
%27 = load i32, i32* %2
%28 = xor i32 2, %27
%29 = load i32, i32* %2
%30 = xor i32 %29, 2
%31 = icmp ne i32 %28, %30
br i1 %31, label %32, label %34
32: ; preds = %26
%33 = load i8, i8* null
br label %34
34: ; preds = %32, %26
%35 = load i32, i32* %2
%36 = or i32 2, %35
%37 = load i32, i32* %2
%38 = or i32 %37, 2
%39 = icmp ne i32 %36, %38
br i1 %39, label %40, label %42
40: ; preds = %34
%41 = load i8, i8* null
br label %42
42: ; preds = %40, %34
ret void
}

LLVM IR (-O2):
define void @testSymmetricIntSymOperations(i32 %0) {
ret void
}
/* Variables and functions */
int /*<<< orphan*/ YM2151WriteReg(int /*<<< orphan*/, unsigned int,
                                  unsigned char const);
void BurnYM2151WriteRegister(const unsigned char nValue) {
  extern unsigned int nBurnCurrentYM2151Register;
  extern unsigned char BurnYM2151Registers[0x0100];
  BurnYM2151Registers[nBurnCurrentYM2151Register] = nValue;
  YM2151WriteReg(0, nBurnCurrentYM2151Register, nValue);
}


x86 assembly (clang, -O0):
<BurnYM2151WriteRegister>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
mov    %dil,%al
mov    %al,-0x1(%rbp)
mov    -0x1(%rbp),%dl
mov    0x2eb8(%rip),%rax
mov    (%rax),%eax
mov    %eax,%ecx
mov    0x2ea5(%rip),%rax
mov    %dl,(%rax,%rcx,1)
mov    0x2ea3(%rip),%rax
mov    (%rax),%esi
xor    %edi,%edi
movzbl -0x1(%rbp),%edx
call   1030 <YM2151WriteReg@plt>
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<BurnYM2151WriteRegister>:
mov    %edi,%edx
mov    0x2ec7(%rip),%rax
mov    (%rax),%esi
mov    0x2eb6(%rip),%rax
mov    %dl,(%rax,%rsi,1)
xor    %edi,%edi
jmp    1030 <YM2151WriteReg@plt>

LLVM IR (-O0):
@BurnYM2151Registers = external global [256 x i8]
@nBurnCurrentYM2151Register = external global i32
define void @BurnYM2151WriteRegister(i8 zeroext %0) {
%2 = alloca i8
store i8 %0, i8* %2
%3 = load i8, i8* %2
%4 = load i32, i32* @nBurnCurrentYM2151Register
%5 = zext i32 %4 to i64
%6 = getelementptr inbounds [256 x i8], [256 x i8]* @BurnYM2151Registers, i64 0, i64 %5
store i8 %3, i8* %6
%7 = load i32, i32* @nBurnCurrentYM2151Register
%8 = load i8, i8* %2
%9 = call i32 @YM2151WriteReg(i32 0, i32 %7, i8 zeroext %8)
ret void
}

LLVM IR (-O2):
@BurnYM2151Registers = external global [256 x i8]
@nBurnCurrentYM2151Register = external global i32
define void @BurnYM2151WriteRegister(i8 zeroext %0) {
%2 = load i32, i32* @nBurnCurrentYM2151Register
%3 = zext i32 %2 to i64
%4 = getelementptr inbounds [256 x i8], [256 x i8]* @BurnYM2151Registers, i64 0, i64 %3
store i8 %0, i8* %4
%5 = tail call i32 @YM2151WriteReg(i32 0, i32 %2, i8 zeroext %0)
ret void
}
/* Type definitions */
struct battle_char {
  int dummy;
};

/* Variables and functions */
int /*<<< orphan*/ add_status(struct battle_char *, int);
scalar_t__ get_random(int /*<<< orphan*/, int);
scalar_t__ mod6(struct battle_char *, struct battle_char *, int);
void slow2(struct battle_char *origin, struct battle_char *target) {
  if (get_random(0, 100) < mod6(origin, target, 240)) {
    add_status(target, 6);
  }
}


x86 assembly (clang, -O0):
<slow2>:
push   %rbp
mov    %rsp,%rbp
sub    $0x20,%rsp
mov    %rdi,-0x8(%rbp)
mov    %rsi,-0x10(%rbp)
xor    %edi,%edi
mov    $0x64,%esi
call   1030 <get_random@plt>
mov    %rax,-0x18(%rbp)
mov    -0x8(%rbp),%rdi
mov    -0x10(%rbp),%rsi
mov    $0xf0,%edx
call   1040 <mod6@plt>
mov    %rax,%rcx
mov    -0x18(%rbp),%rax
cmp    %rcx,%rax
jge    1180 <slow2+0x50>
mov    -0x10(%rbp),%rdi
mov    $0x6,%esi
call   1050 <add_status@plt>
add    $0x20,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<slow2>:
push   %r15
push   %r14
push   %rbx
mov    %rsi,%r14
mov    %rdi,%r15
xor    %edi,%edi
mov    $0x64,%esi
call   1030 <get_random@plt>
mov    %rax,%rbx
mov    %r15,%rdi
mov    %r14,%rsi
mov    $0xf0,%edx
call   1040 <mod6@plt>
cmp    %rax,%rbx
jge    1171 <slow2+0x41>
mov    %r14,%rdi
mov    $0x6,%esi
pop    %rbx
pop    %r14
pop    %r15
jmp    1050 <add_status@plt>
pop    %rbx
pop    %r14
pop    %r15
ret

LLVM IR (-O0):
%struct.battle_char = type { i32 }
define void @slow2(%struct.battle_char* %0, %struct.battle_char* %1) {
%3 = alloca %struct.battle_char*
%4 = alloca %struct.battle_char*
store %struct.battle_char* %0, %struct.battle_char** %3
store %struct.battle_char* %1, %struct.battle_char** %4
%5 = call i64 @get_random(i32 0, i32 100)
%6 = load %struct.battle_char*, %struct.battle_char** %3
%7 = load %struct.battle_char*, %struct.battle_char** %4
%8 = call i64 @mod6(%struct.battle_char* %6, %struct.battle_char* %7, i32 240)
%9 = icmp slt i64 %5, %8
br i1 %9, label %10, label %13
10: ; preds = %2
%11 = load %struct.battle_char*, %struct.battle_char** %4
%12 = call i32 @add_status(%struct.battle_char* %11, i32 6)
br label %13
13: ; preds = %10, %2
ret void
}

LLVM IR (-O2):
%struct.battle_char = type { i32 }
define void @slow2(%struct.battle_char* %0, %struct.battle_char* %1) {
%3 = tail call i64 @get_random(i32 0, i32 100)
%4 = tail call i64 @mod6(%struct.battle_char* %0, %struct.battle_char* %1, i32 240)
%5 = icmp slt i64 %3, %4
br i1 %5, label %6, label %8
6: ; preds = %2
%7 = tail call i32 @add_status(%struct.battle_char* %1, i32 6)
br label %8
8: ; preds = %6, %2
ret void
}
/* Variables and functions */
int /*<<< orphan*/ free(char *);
char *ft_itoa(int);
int /*<<< orphan*/ ft_putstr(char *);
void ft_putnbr(int n) {
  char *nbr;
  nbr = ft_itoa(n);
  ft_putstr(nbr);
  free(nbr);
}


x86 assembly (clang, -O0):
<ft_putnbr>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
mov    %edi,-0x4(%rbp)
mov    -0x4(%rbp),%edi
call   1040 <ft_itoa@plt>
mov    %rax,-0x10(%rbp)
mov    -0x10(%rbp),%rdi
call   1050 <ft_putstr@plt>
mov    -0x10(%rbp),%rdi
call   1030 <free@plt>
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<ft_putnbr>:
push   %rbx
call   1040 <ft_itoa@plt>
mov    %rax,%rbx
mov    %rax,%rdi
call   1050 <ft_putstr@plt>
mov    %rbx,%rdi
pop    %rbx
jmp    1030 <free@plt>

LLVM IR (-O0):
define void @ft_putnbr(i32 %0) {
%2 = alloca i32
%3 = alloca i8*
store i32 %0, i32* %2
%4 = load i32, i32* %2
%5 = call i8* @ft_itoa(i32 %4)
store i8* %5, i8** %3
%6 = load i8*, i8** %3
%7 = call i32 @ft_putstr(i8* %6)
%8 = load i8*, i8** %3
%9 = call i32 @free(i8* %8)
ret void
}

LLVM IR (-O2):
define void @ft_putnbr(i32 %0) {
%2 = tail call i8* @ft_itoa(i32 %0)
%3 = tail call i32 @ft_putstr(i8* %2)
%4 = tail call i32 @free(i8* %2)
ret void
}
/* Variables and functions */
int /*<<< orphan*/ init(char *);
int ok();
int /*<<< orphan*/ test();
int main() {
  init("type casting");
  test();
  return ok();
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
movl   $0x0,-0x4(%rbp)
lea    0xeba(%rip),%rdi
call   1040 <init@plt>
mov    $0x0,%al
call   1050 <test@plt>
mov    $0x0,%al
call   1030 <ok@plt>
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %rax
lea    0xec8(%rip),%rdi
call   1040 <init@plt>
xor    %eax,%eax
call   1050 <test@plt>
xor    %eax,%eax
pop    %rcx
jmp    1030 <ok@plt>

LLVM IR (-O0):
@.str = [13 x i8] c"type casting\00"
define i32 @main() {
%1 = alloca i32
store i32 0, i32* %1
%2 = call i32 @init(i8* getelementptr inbounds ([13 x i8], [13 x i8]* @.str, i64 0, i64 0))
%3 = call i32 (...) @test()
%4 = call i32 (...) @ok()
ret i32 %4
}

LLVM IR (-O2):
@.str = [13 x i8] c"type casting\00"
define i32 @main() {
%1 = tail call i32 @init(i8* getelementptr inbounds ([13 x i8], [13 x i8]* @.str, i64 0, i64 0))
%2 = tail call i32 (...) @test()
%3 = tail call i32 (...) @ok()
ret i32 %3
}
void func10(i, j) {}


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

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

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

LLVM IR (-O2):
define void @func10(i32 %0, i32 %1) {
ret void
}
void BN_BLINDING_invert(void) {}


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

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

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

LLVM IR (-O2):
define void @BN_BLINDING_invert() {
ret void
}
int fun1387() { return 1387; }


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

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

LLVM IR (-O0):
define i32 @fun1387() {
ret i32 1387
}

LLVM IR (-O2):
define i32 @fun1387() {
ret i32 1387
}
/* Type definitions */
struct timeval {
  int tv_usec;
  int /*<<< orphan*/ tv_sec;
};
struct timespec {
  int tv_nsec;
  int /*<<< orphan*/ tv_sec;
};

/* Variables and functions */
int /*<<< orphan*/ gettimeofday(struct timeval *, int /*<<< orphan*/ *);
void timespec_now(struct timespec *ts) {
  struct timeval tv;
  gettimeofday(&tv, NULL);
  ts->tv_sec = tv.tv_sec;
  ts->tv_nsec = tv.tv_usec * 1000;
}


x86 assembly (clang, -O0):
<timespec_now>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
mov    %rdi,-0x8(%rbp)
lea    -0x10(%rbp),%rdi
xor    %eax,%eax
mov    %eax,%esi
call   1030 <gettimeofday@plt>
mov    -0xc(%rbp),%ecx
mov    -0x8(%rbp),%rax
mov    %ecx,0x4(%rax)
imul   $0x3e8,-0x10(%rbp),%ecx
mov    -0x8(%rbp),%rax
mov    %ecx,(%rax)
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<timespec_now>:
push   %rbx
sub    $0x10,%rsp
mov    %rdi,%rbx
lea    0x8(%rsp),%rdi
xor    %esi,%esi
call   1030 <gettimeofday@plt>
mov    0xc(%rsp),%eax
mov    %eax,0x4(%rbx)
imul   $0x3e8,0x8(%rsp),%eax
mov    %eax,(%rbx)
add    $0x10,%rsp
pop    %rbx
ret

LLVM IR (-O0):
%struct.timespec = type { i32, i32 }
%struct.timeval = type { i32, i32 }
define void @timespec_now(%struct.timespec* %0) {
%2 = alloca %struct.timespec*
%3 = alloca %struct.timeval
store %struct.timespec* %0, %struct.timespec** %2
%4 = call i32 @gettimeofday(%struct.timeval* %3, i32* null)
%5 = getelementptr inbounds %struct.timeval, %struct.timeval* %3, i32 0, i32 1
%6 = load i32, i32* %5
%7 = load %struct.timespec*, %struct.timespec** %2
%8 = getelementptr inbounds %struct.timespec, %struct.timespec* %7, i32 0, i32 1
store i32 %6, i32* %8
%9 = getelementptr inbounds %struct.timeval, %struct.timeval* %3, i32 0, i32 0
%10 = load i32, i32* %9
%11 = mul nsw i32 %10, 1000
%12 = load %struct.timespec*, %struct.timespec** %2
%13 = getelementptr inbounds %struct.timespec, %struct.timespec* %12, i32 0, i32 0
store i32 %11, i32* %13
ret void
}

LLVM IR (-O2):
%struct.timespec = type { i32, i32 }
%struct.timeval = type { i32, i32 }
define void @timespec_now(%struct.timespec* nocapture writeonly %0) {
%2 = alloca %struct.timeval
%3 = bitcast %struct.timeval* %2 to i8*
%4 = call i32 @gettimeofday(%struct.timeval* %2, i32* null)
%5 = getelementptr inbounds %struct.timeval, %struct.timeval* %2, i64 0, i32 1
%6 = load i32, i32* %5
%7 = getelementptr inbounds %struct.timespec, %struct.timespec* %0, i64 0, i32 1
store i32 %6, i32* %7
%8 = getelementptr inbounds %struct.timeval, %struct.timeval* %2, i64 0, i32 0
%9 = load i32, i32* %8
%10 = mul nsw i32 %9, 1000
%11 = getelementptr inbounds %struct.timespec, %struct.timespec* %0, i64 0, i32 0
store i32 %10, i32* %11
ret void
}