xunge/DecIR huggingface dataset:
void fdmi_dtype_op_MIN_float(void *a, void *b) {
  (*(float *)a = (((*(float *)a) < (*(float *)b)) ? *(float *)a : *(float *)b));
}


x86 assembly (clang, -O0):
<fdmi_dtype_op_MIN_float>:
push   %rbp
mov    %rsp,%rbp
mov    %rdi,-0x8(%rbp)
mov    %rsi,-0x10(%rbp)
mov    -0x8(%rbp),%rax
movss  (%rax),%xmm1
mov    -0x10(%rbp),%rax
movss  (%rax),%xmm0
ucomiss %xmm1,%xmm0
jbe    1137 <fdmi_dtype_op_MIN_float+0x37>
mov    -0x8(%rbp),%rax
movss  (%rax),%xmm0
movss  %xmm0,-0x14(%rbp)
jmp    1144 <fdmi_dtype_op_MIN_float+0x44>
mov    -0x10(%rbp),%rax
movss  (%rax),%xmm0
movss  %xmm0,-0x14(%rbp)
movss  -0x14(%rbp),%xmm0
mov    -0x8(%rbp),%rax
movss  %xmm0,(%rax)
pop    %rbp
ret

x86 assembly (clang, -O2):
<fdmi_dtype_op_MIN_float>:
movss  (%rdi),%xmm0
minss  (%rsi),%xmm0
movss  %xmm0,(%rdi)
ret

LLVM IR (-O0):
define void @fdmi_dtype_op_MIN_float(i8* %0, i8* %1) {
%3 = alloca i8*
%4 = alloca i8*
store i8* %0, i8** %3
store i8* %1, i8** %4
%5 = load i8*, i8** %3
%6 = bitcast i8* %5 to float*
%7 = load float, float* %6
%8 = load i8*, i8** %4
%9 = bitcast i8* %8 to float*
%10 = load float, float* %9
%11 = fcmp olt float %7, %10
br i1 %11, label %12, label %16
12: ; preds = %2
%13 = load i8*, i8** %3
%14 = bitcast i8* %13 to float*
%15 = load float, float* %14
br label %20
16: ; preds = %2
%17 = load i8*, i8** %4
%18 = bitcast i8* %17 to float*
%19 = load float, float* %18
br label %20
20: ; preds = %16, %12
%21 = phi float [ %15, %12 ], [ %19, %16 ]
%22 = load i8*, i8** %3
%23 = bitcast i8* %22 to float*
store float %21, float* %23
ret void
}

LLVM IR (-O2):
define void @fdmi_dtype_op_MIN_float(i8* nocapture %0, i8* nocapture %1) {
%3 = bitcast i8* %0 to float*
%4 = load float, float* %3
%5 = bitcast i8* %1 to float*
%6 = load float, float* %5
%7 = fcmp olt float %4, %6
%8 = select i1 %7, float %4, float %6
store float %8, float* %3
ret void
}
/* Type definitions */
struct blob_attr {
  int dummy;
};

/* Variables and functions */
int blob_id(struct blob_attr const *);
int blobmsg_type(const struct blob_attr *attr) { return blob_id(attr); }


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

x86 assembly (clang, -O2):
<blobmsg_type>:
jmp    1030 <blob_id@plt>

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

LLVM IR (-O2):
%struct.blob_attr = type { i32 }
define i32 @blobmsg_type(%struct.blob_attr* %0) {
%2 = tail call i32 @blob_id(%struct.blob_attr* %0)
ret i32 %2
}
int top() { return 0; }


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

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

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

LLVM IR (-O2):
define i32 @top() {
ret i32 0
}
/* Variables and functions */
int avail_handler_client(void *context, void *buf, size_t size) { return 0; }


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

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

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

LLVM IR (-O2):
define i32 @avail_handler_client(i8* nocapture readnone %0, i8* nocapture readnone %1, i64 %2) {
ret i32 0
}
/* Variables and functions */
int exist_in_vector(long unsigned *vector, int limit, int num) {
  int i;
  for (i = 0; i < limit; i++)
    if (vector[i] == num)
      return true;
  return false;
}


x86 assembly (clang, -O0):
<exist_in_vector>:
push   %rbp
mov    %rsp,%rbp
mov    %rdi,-0x10(%rbp)
mov    %esi,-0x14(%rbp)
mov    %edx,-0x18(%rbp)
movl   $0x0,-0x1c(%rbp)
mov    -0x1c(%rbp),%eax
cmp    -0x14(%rbp),%eax
jge    1159 <exist_in_vector+0x59>
mov    -0x10(%rbp),%rax
movslq -0x1c(%rbp),%rcx
mov    (%rax,%rcx,8),%rax
movslq -0x18(%rbp),%rcx
cmp    %rcx,%rax
jne    1146 <exist_in_vector+0x46>
movl   $0x1,-0x4(%rbp)
jmp    1160 <exist_in_vector+0x60>
jmp    114b <exist_in_vector+0x4b>
mov    -0x1c(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x1c(%rbp)
jmp    1115 <exist_in_vector+0x15>
movl   $0x0,-0x4(%rbp)
mov    -0x4(%rbp),%eax
pop    %rbp
ret

x86 assembly (clang, -O2):
<exist_in_vector>:
test   %esi,%esi
jle    111f <exist_in_vector+0x1f>
movslq %edx,%rax
mov    %esi,%ecx
xor    %edx,%edx
nopl   0x0(%rax,%rax,1)
cmp    %rax,(%rdi,%rdx,8)
je     1122 <exist_in_vector+0x22>
add    $0x1,%rdx
cmp    %rdx,%rcx
jne    1110 <exist_in_vector+0x10>
xor    %eax,%eax
ret
mov    $0x1,%eax
ret

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

LLVM IR (-O2):
define i32 @exist_in_vector(i64* nocapture %0, i32 %1, i32 %2) {
%4 = icmp sgt i32 %1, 0
br i1 %4, label %5, label %16
5: ; preds = %3
%6 = sext i32 %2 to i64
%7 = zext i32 %1 to i64
br label %10
8: ; preds = %10
%9 = icmp eq i64 %15, %7
br i1 %9, label %16, label %10
10: ; preds = %5, %8
%11 = phi i64 [ 0, %5 ], [ %15, %8 ]
%12 = getelementptr inbounds i64, i64* %0, i64 %11
%13 = load i64, i64* %12
%14 = icmp eq i64 %13, %6
%15 = add nuw nsw i64 %11, 1
br i1 %14, label %16, label %8
16: ; preds = %10, %8, %3
%17 = phi i32 [ 0, %3 ], [ 0, %8 ], [ 1, %10 ]
ret i32 %17
}
char *libFreeWRL_get_version() { return "libfreeWRL version 1.22.12"; }


x86 assembly (clang, -O0):
<libFreeWRL_get_version>:
push   %rbp
mov    %rsp,%rbp
lea    0xef5(%rip),%rax
pop    %rbp
ret

x86 assembly (clang, -O2):
<libFreeWRL_get_version>:
lea    0xef9(%rip),%rax
ret

LLVM IR (-O0):
@.str = [27 x i8] c"libfreeWRL version 1.22.12\00"
define i8* @libFreeWRL_get_version() {
ret i8* getelementptr inbounds ([27 x i8], [27 x i8]* @.str, i64 0, i64 0)
}

LLVM IR (-O2):
@.str = [27 x i8] c"libfreeWRL version 1.22.12\00"
define i8* @libFreeWRL_get_version() {
ret i8* getelementptr inbounds ([27 x i8], [27 x i8]* @.str, i64 0, i64 0)
}
void bt_cleanup(struct si_sm_data *bt) {}


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

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

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

LLVM IR (-O2):
%struct.si_sm_data = type opaque
define void @bt_cleanup(%struct.si_sm_data* nocapture %0) {
ret void
}
/* Variables and functions */
scalar_t__ cos(double);
float cosx_orig(float indegree) {
  float inrad = indegree * 3.14 / 180;
  return (float)cos((double)inrad);
}


x86 assembly (clang, -O0):
<cosx_orig>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
movss  %xmm0,-0x4(%rbp)
movss  -0x4(%rbp),%xmm0
cvtss2sd %xmm0,%xmm0
movsd  0xeda(%rip),%xmm1
mulsd  %xmm1,%xmm0
movsd  0xec6(%rip),%xmm1
divsd  %xmm1,%xmm0
cvtsd2ss %xmm0,%xmm0
movss  %xmm0,-0x8(%rbp)
movss  -0x8(%rbp),%xmm0
cvtss2sd %xmm0,%xmm0
call   1030 <cos@plt>
cvtsi2ss %rax,%xmm0
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<cosx_orig>:
push   %rax
cvtss2sd %xmm0,%xmm0
mulsd  0xee3(%rip),%xmm0
divsd  0xee3(%rip),%xmm0
cvtsd2ss %xmm0,%xmm0
cvtss2sd %xmm0,%xmm0
call   1030 <cos@plt>
xorps  %xmm0,%xmm0
cvtsi2ss %rax,%xmm0
pop    %rax
ret

LLVM IR (-O0):
define float @cosx_orig(float %0) {
%2 = alloca float
%3 = alloca float
store float %0, float* %2
%4 = load float, float* %2
%5 = fpext float %4 to double
%6 = fmul double %5, 3.140000e+00
%7 = fdiv double %6, 1.800000e+02
%8 = fptrunc double %7 to float
store float %8, float* %3
%9 = load float, float* %3
%10 = fpext float %9 to double
%11 = call i64 @cos(double %10)
%12 = sitofp i64 %11 to float
ret float %12
}

LLVM IR (-O2):
define float @cosx_orig(float %0) {
%2 = fpext float %0 to double
%3 = fmul double %2, 3.140000e+00
%4 = fdiv double %3, 1.800000e+02
%5 = fptrunc double %4 to float
%6 = fpext float %5 to double
%7 = tail call i64 @cos(double %6)
%8 = sitofp i64 %7 to float
ret float %8
}
void up_remove_monitor(const char *name) {}


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

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

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

LLVM IR (-O2):
define void @up_remove_monitor(i8* nocapture %0) {
ret void
}
/* Variables and functions */
int /*<<< orphan*/ clear_io_bit(int, int /*<<< orphan*/);
void TOSH_CLR_UART_RXD0_PIN() { clear_io_bit(0x70, 0); }


x86 assembly (clang, -O0):
<TOSH_CLR_UART_RXD0_PIN>:
push   %rbp
mov    %rsp,%rbp
mov    $0x70,%edi
xor    %esi,%esi
call   1030 <clear_io_bit@plt>
pop    %rbp
ret

x86 assembly (clang, -O2):
<TOSH_CLR_UART_RXD0_PIN>:
mov    $0x70,%edi
xor    %esi,%esi
jmp    1030 <clear_io_bit@plt>

LLVM IR (-O0):
define void @TOSH_CLR_UART_RXD0_PIN() {
%1 = call i32 @clear_io_bit(i32 112, i32 0)
ret void
}

LLVM IR (-O2):
define void @TOSH_CLR_UART_RXD0_PIN() {
%1 = tail call i32 @clear_io_bit(i32 112, i32 0)
ret void
}
/* Variables and functions */
int recursivePrime(int, int);
bool isPrime(int n) { return recursivePrime(n, n - 1); }


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

x86 assembly (clang, -O2):
<isPrime>:
lea    -0x1(%rdi),%esi
jmp    1030 <recursivePrime@plt>

LLVM IR (-O0):
define i32 @isPrime(i32 %0) {
%2 = alloca i32
store i32 %0, i32* %2
%3 = load i32, i32* %2
%4 = load i32, i32* %2
%5 = sub nsw i32 %4, 1
%6 = call i32 @recursivePrime(i32 %3, i32 %5)
ret i32 %6
}

LLVM IR (-O2):
define i32 @isPrime(i32 %0) {
%2 = add nsw i32 %0, -1
%3 = tail call i32 @recursivePrime(i32 %0, i32 %2)
ret i32 %3
}
/* Variables and functions */
int rand();
int gera_aleatorio(int minimo, int maximo) {
  int gerado;
  gerado = minimo + (rand() % (maximo - minimo + 1));
  return gerado;
}


x86 assembly (clang, -O0):
<gera_aleatorio>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
mov    %edi,-0x4(%rbp)
mov    %esi,-0x8(%rbp)
mov    -0x4(%rbp),%eax
mov    %eax,-0x10(%rbp)
mov    $0x0,%al
call   1030 <rand@plt>
mov    -0x8(%rbp),%ecx
sub    -0x4(%rbp),%ecx
add    $0x1,%ecx
cltd
idiv   %ecx
mov    -0x10(%rbp),%eax
add    %edx,%eax
mov    %eax,-0xc(%rbp)
mov    -0xc(%rbp),%eax
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<gera_aleatorio>:
push   %rbp
push   %rbx
push   %rax
mov    %esi,%ebx
mov    %edi,%ebp
xor    %eax,%eax
call   1030 <rand@plt>
sub    %ebp,%ebx
add    $0x1,%ebx
cltd
idiv   %ebx
add    %edx,%ebp
mov    %ebp,%eax
add    $0x8,%rsp
pop    %rbx
pop    %rbp
ret

LLVM IR (-O0):
define i32 @gera_aleatorio(i32 %0, i32 %1) {
%3 = alloca i32
%4 = alloca i32
%5 = alloca i32
store i32 %0, i32* %3
store i32 %1, i32* %4
%6 = load i32, i32* %3
%7 = call i32 (...) @rand()
%8 = load i32, i32* %4
%9 = load i32, i32* %3
%10 = sub nsw i32 %8, %9
%11 = add nsw i32 %10, 1
%12 = srem i32 %7, %11
%13 = add nsw i32 %6, %12
store i32 %13, i32* %5
%14 = load i32, i32* %5
ret i32 %14
}

LLVM IR (-O2):
define i32 @gera_aleatorio(i32 %0, i32 %1) {
%3 = tail call i32 (...) @rand()
%4 = sub i32 1, %0
%5 = add i32 %4, %1
%6 = srem i32 %3, %5
%7 = add nsw i32 %6, %0
ret i32 %7
}
/* Variables and functions */
int /*<<< orphan*/ free(void *);
void zg_free(void *ptr) { free(ptr); }


x86 assembly (clang, -O0):
<zg_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):
<zg_free>:
jmp    1030 <free@plt>

LLVM IR (-O0):
define void @zg_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 @zg_free(i8* nocapture %0) {
%2 = tail call i32 @free(i8* %0)
ret void
}
/* Variables and functions */
int /*<<< orphan*/ Sort(unsigned char **, int /*<<< orphan*/, int);
void QuickSort(unsigned char *a[], int n) {
  if (n > 1)
    Sort(a, 0, n - 1);
}


x86 assembly (clang, -O0):
<QuickSort>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
mov    %rdi,-0x8(%rbp)
mov    %esi,-0xc(%rbp)
cmpl   $0x1,-0xc(%rbp)
jle    113a <QuickSort+0x2a>
mov    -0x8(%rbp),%rdi
mov    -0xc(%rbp),%edx
sub    $0x1,%edx
xor    %esi,%esi
call   1030 <Sort@plt>
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<QuickSort>:
cmp    $0x2,%esi
jl     1121 <QuickSort+0x11>
mov    %esi,%edx
add    $0xffffffff,%edx
xor    %esi,%esi
jmp    1030 <Sort@plt>
ret

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

LLVM IR (-O2):
define void @QuickSort(i8** %0, i32 %1) {
%3 = icmp sgt i32 %1, 1
br i1 %3, label %4, label %7
4: ; preds = %2
%5 = add nsw i32 %1, -1
%6 = tail call i32 @Sort(i8** %0, i32 0, i32 %5)
br label %7
7: ; preds = %4, %2
ret void
}
/* Variables and functions */
float expf(float);
float expm1f(float x) { return expf(x) - 1; }


x86 assembly (clang, -O0):
<expm1f>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
movss  %xmm0,-0x4(%rbp)
movss  -0x4(%rbp),%xmm0
call   1030 <expf@plt>
movss  0xed1(%rip),%xmm1
subss  %xmm1,%xmm0
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<expm1f>:
push   %rax
call   1030 <expf@plt>
addss  0xee2(%rip),%xmm0
pop    %rax
ret

LLVM IR (-O0):
define float @expm1f(float %0) {
%2 = alloca float
store float %0, float* %2
%3 = load float, float* %2
%4 = call float @expf(float %3)
%5 = fsub float %4, 1.000000e+00
ret float %5
}

LLVM IR (-O2):
define float @expm1f(float %0) {
%2 = tail call float @expf(float %0)
%3 = fadd float %2, -1.000000e+00
ret float %3
}
/* Type definitions */
typedef int /*<<< orphan*/ FILE;

/* Variables and functions */
int fputs(char const *, int /*<<< orphan*/ *);
int c_fputs(const char *s, void *stream) { return fputs(s, (FILE *)stream); }


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

x86 assembly (clang, -O2):
<c_fputs>:
jmp    1030 <fputs@plt>

LLVM IR (-O0):
define i32 @c_fputs(i8* %0, i8* %1) {
%3 = alloca i8*
%4 = alloca i8*
store i8* %0, i8** %3
store i8* %1, i8** %4
%5 = load i8*, i8** %3
%6 = load i8*, i8** %4
%7 = bitcast i8* %6 to i32*
%8 = call i32 @fputs(i8* %5, i32* %7)
ret i32 %8
}

LLVM IR (-O2):
define i32 @c_fputs(i8* nocapture %0, i8* nocapture %1) {
%3 = bitcast i8* %1 to i32*
%4 = tail call i32 @fputs(i8* %0, i32* %3)
ret i32 %4
}
/* Variables and functions */
int pow(int, int);
double exponentialEaseOutd(double p) {
  return (p == 1.0) ? p : 1 - pow(2, -10 * p);
}


x86 assembly (clang, -O0):
<exponentialEaseOutd>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
movsd  %xmm0,-0x8(%rbp)
movsd  -0x8(%rbp),%xmm0
movsd  0xed6(%rip),%xmm1
ucomisd %xmm1,%xmm0
jne    1149 <exponentialEaseOutd+0x39>
jp     1149 <exponentialEaseOutd+0x39>
movsd  -0x8(%rbp),%xmm0
movsd  %xmm0,-0x10(%rbp)
jmp    1176 <exponentialEaseOutd+0x66>
movsd  0xeb7(%rip),%xmm0
mulsd  -0x8(%rbp),%xmm0
cvttsd2si %xmm0,%esi
mov    $0x2,%edi
call   1030 <pow@plt>
mov    %eax,%ecx
mov    $0x1,%eax
sub    %ecx,%eax
cvtsi2sd %eax,%xmm0
movsd  %xmm0,-0x10(%rbp)
movsd  -0x10(%rbp),%xmm0
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<exponentialEaseOutd>:
push   %rax
movsd  0xee7(%rip),%xmm1
ucomisd %xmm1,%xmm0
jne    1121 <exponentialEaseOutd+0x11>
jnp    1145 <exponentialEaseOutd+0x35>
mulsd  0xedf(%rip),%xmm0
cvttsd2si %xmm0,%esi
mov    $0x2,%edi
call   1030 <pow@plt>
mov    $0x1,%ecx
sub    %eax,%ecx
xorps  %xmm1,%xmm1
cvtsi2sd %ecx,%xmm1
movapd %xmm1,%xmm0
pop    %rax
ret

LLVM IR (-O0):
define double @exponentialEaseOutd(double %0) {
%2 = alloca double
store double %0, double* %2
%3 = load double, double* %2
%4 = fcmp oeq double %3, 1.000000e+00
br i1 %4, label %5, label %7
5: ; preds = %1
%6 = load double, double* %2
br label %14
7: ; preds = %1
%8 = load double, double* %2
%9 = fmul double -1.000000e+01, %8
%10 = fptosi double %9 to i32
%11 = call i32 @pow(i32 2, i32 %10)
%12 = sub nsw i32 1, %11
%13 = sitofp i32 %12 to double
br label %14
14: ; preds = %7, %5
%15 = phi double [ %6, %5 ], [ %13, %7 ]
ret double %15
}

LLVM IR (-O2):
define double @exponentialEaseOutd(double %0) {
%2 = fcmp oeq double %0, 1.000000e+00
br i1 %2, label %9, label %3
3: ; preds = %1
%4 = fmul double %0, -1.000000e+01
%5 = fptosi double %4 to i32
%6 = tail call i32 @pow(i32 2, i32 %5)
%7 = sub nsw i32 1, %6
%8 = sitofp i32 %7 to double
br label %9
9: ; preds = %1, %3
%10 = phi double [ %8, %3 ], [ 1.000000e+00, %1 ]
ret double %10
}
int __ltllong(long long a, long long b) { return a < b; }


x86 assembly (clang, -O0):
<__ltllong>:
push   %rbp
mov    %rsp,%rbp
mov    %rdi,-0x8(%rbp)
mov    %rsi,-0x10(%rbp)
mov    -0x8(%rbp),%rax
cmp    -0x10(%rbp),%rax
setl   %al
and    $0x1,%al
movzbl %al,%eax
pop    %rbp
ret

x86 assembly (clang, -O2):
<__ltllong>:
xor    %eax,%eax
cmp    %rsi,%rdi
setl   %al
ret

LLVM IR (-O0):
define i32 @__ltllong(i64 %0, i64 %1) {
%3 = alloca i64
%4 = alloca i64
store i64 %0, i64* %3
store i64 %1, i64* %4
%5 = load i64, i64* %3
%6 = load i64, i64* %4
%7 = icmp slt i64 %5, %6
%8 = zext i1 %7 to i32
ret i32 %8
}

LLVM IR (-O2):
define i32 @__ltllong(i64 %0, i64 %1) {
%3 = icmp slt i64 %0, %1
%4 = zext i1 %3 to i32
ret i32 %4
}
/* Variables and functions */
void *__coverity_alloc__(unsigned long);
int /*<<< orphan*/ __coverity_negative_sink__(unsigned long);
void *_xmalloc(unsigned long size, unsigned long align) {
  int has_memory;
  __coverity_negative_sink__(size);
  __coverity_negative_sink__(align);
  if (has_memory)
    return __coverity_alloc__(size);
  else
    return (void *)0;
}


x86 assembly (clang, -O0):
<_xmalloc>:
push   %rbp
mov    %rsp,%rbp
sub    $0x20,%rsp
mov    %rdi,-0x10(%rbp)
mov    %rsi,-0x18(%rbp)
mov    -0x10(%rbp),%rdi
call   1040 <__coverity_negative_sink__@plt>
mov    -0x18(%rbp),%rdi
call   1040 <__coverity_negative_sink__@plt>
cmpl   $0x0,-0x1c(%rbp)
je     115e <_xmalloc+0x3e>
mov    -0x10(%rbp),%rdi
call   1030 <__coverity_alloc__@plt>
mov    %rax,-0x8(%rbp)
jmp    1166 <_xmalloc+0x46>
movq   $0x0,-0x8(%rbp)
mov    -0x8(%rbp),%rax
add    $0x20,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<_xmalloc>:
push   %rbx
mov    %rsi,%rbx
call   1030 <__coverity_negative_sink__@plt>
mov    %rbx,%rdi
call   1030 <__coverity_negative_sink__@plt>
xor    %eax,%eax
pop    %rbx
ret

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

LLVM IR (-O2):
define noalias i8* @_xmalloc(i64 %0, i64 %1) {
%3 = tail call i32 @__coverity_negative_sink__(i64 %0)
%4 = tail call i32 @__coverity_negative_sink__(i64 %1)
ret i8* null
}
adr0imm1(r0, r1, x0, x1, p0, p1) int r0, r1;
int *p0, *p1;
{
  if ((*((int *)10000000)) <= 33)
    return 1;
  else
    return 0;
}


x86 assembly (clang, -O0):
<adr0imm1>:
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
cmpl   $0x21,(%rax)
jg     1132 <adr0imm1+0x32>
movl   $0x1,-0x4(%rbp)
jmp    1139 <adr0imm1+0x39>
movl   $0x0,-0x4(%rbp)
mov    -0x4(%rbp),%eax
pop    %rbp
ret

x86 assembly (clang, -O2):
<adr0imm1>:
xor    %eax,%eax
cmpl   $0x22,0x989680
22
setl   %al
ret

LLVM IR (-O0):
define i32 @adr0imm1(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 = icmp sle i32 %14, 33
br i1 %15, label %16, label %17
16: ; preds = %6
store i32 1, i32* %7
br label %18
17: ; preds = %6
store i32 0, i32* %7
br label %18
18: ; preds = %17, %16
%19 = load i32, i32* %7
ret i32 %19
}

LLVM IR (-O2):
define i32 @adr0imm1(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 = icmp slt i32 %7, 34
%9 = zext i1 %8 to i32
ret i32 %9
}
/* Type definitions */
typedef int /*<<< orphan*/ __m64;

/* Variables and functions */
int /*<<< orphan*/ _mm_sub_pi16(int /*<<< orphan*/, int /*<<< orphan*/);
__m64 __attribute__((no, unused)) test(__m64 s1, __m64 s2) {
  return _mm_sub_pi16(s1, s2);
}


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

x86 assembly (clang, -O2):
<test>:
jmp    1030 <_mm_sub_pi16@plt>

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

LLVM IR (-O2):
define i32 @test(i32 %0, i32 %1) {
%3 = tail call i32 @_mm_sub_pi16(i32 %0, i32 %1)
ret i32 %3
}
/* Variables and functions */
scalar_t__ malloc(int);
int *dup_int(int i) {
  int *iptr = NULL;
  iptr = (int *)malloc(sizeof(int));
  *iptr = i;
  return (iptr);
}


x86 assembly (clang, -O0):
<dup_int>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
mov    %edi,-0x4(%rbp)
movq   $0x0,-0x10(%rbp)
mov    $0x4,%edi
call   1030 <malloc@plt>
mov    %rax,-0x10(%rbp)
mov    -0x4(%rbp),%ecx
mov    -0x10(%rbp),%rax
mov    %ecx,(%rax)
mov    -0x10(%rbp),%rax
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<dup_int>:
push   %rbx
mov    %edi,%ebx
mov    $0x4,%edi
call   1030 <malloc@plt>
mov    %ebx,(%rax)
pop    %rbx
ret

LLVM IR (-O0):
define i32* @dup_int(i32 %0) {
%2 = alloca i32
%3 = alloca i32*
store i32 %0, i32* %2
store i32* null, i32** %3
%4 = call i64 @malloc(i32 4)
%5 = inttoptr i64 %4 to i32*
store i32* %5, i32** %3
%6 = load i32, i32* %2
%7 = load i32*, i32** %3
store i32 %6, i32* %7
%8 = load i32*, i32** %3
ret i32* %8
}

LLVM IR (-O2):
define i32* @dup_int(i32 %0) {
%2 = tail call i64 @malloc(i32 4)
%3 = inttoptr i64 %2 to i32*
store i32 %0, i32* %3
ret i32* %3
}
int test_imm_EDint16_reg(short val) {
  return ((val) & (-0xED << 0)) ? -20 : -40;
}


x86 assembly (clang, -O0):
<test_imm_EDint16_reg>:
push   %rbp
mov    %rsp,%rbp
mov    %di,%ax
mov    %ax,-0x2(%rbp)
movswl -0x2(%rbp),%edx
and    $0xffffff13,%edx
mov    $0xffffffd8,%eax
mov    $0xffffffec,%ecx
cmp    $0x0,%edx
cmovne %ecx,%eax
pop    %rbp
ret

x86 assembly (clang, -O2):
<test_imm_EDint16_reg>:
test   $0xff13,%edi
mov    $0xffffffd8,%ecx
mov    $0xffffffec,%eax
cmove  %ecx,%eax
ret

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

LLVM IR (-O2):
define i32 @test_imm_EDint16_reg(i16 signext %0) {
%2 = and i16 %0, -237
%3 = icmp eq i16 %2, 0
%4 = select i1 %3, i32 -40, i32 -20
ret i32 %4
}
/* Variables and functions */
long double __infer_nondet_long_double();
long double modfl(long double value, long double *iptr) {
  *iptr = __infer_nondet_long_double();
  return __infer_nondet_long_double();
}


x86 assembly (clang, -O0):
<modfl>:
push   %rbp
mov    %rsp,%rbp
sub    $0x20,%rsp
fldt   0x10(%rbp)
fstpt  -0x10(%rbp)
mov    %rdi,-0x18(%rbp)
xor    %eax,%eax
mov    %al,-0x19(%rbp)
call   1030 <__infer_nondet_long_double@plt>
mov    -0x19(%rbp),%al
mov    -0x18(%rbp),%rcx
fstpt  (%rcx)
call   1030 <__infer_nondet_long_double@plt>
fld    %st(0)
fstp   %st(0)
add    $0x20,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<modfl>:
push   %rbx
mov    %rdi,%rbx
xor    %eax,%eax
call   1030 <__infer_nondet_long_double@plt>
fstpt  (%rbx)
xor    %eax,%eax
pop    %rbx
jmp    1030 <__infer_nondet_long_double@plt>

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

LLVM IR (-O2):
define x86_fp80 @modfl(x86_fp80 %0, x86_fp80* nocapture writeonly %1) {
%3 = tail call x86_fp80 (...) @__infer_nondet_long_double()
store x86_fp80 %3, x86_fp80* %1
%4 = tail call x86_fp80 (...) @__infer_nondet_long_double()
ret x86_fp80 %4
}
/* Variables and functions */
int /*<<< orphan*/ dumphex32(char *, char *, int);
void dumpreg() {
  dumphex32("nand0 reg", (char *)0xf1c03000, 60);
  dumphex32("gpio reg", (char *)0xf1c20848, 50);
  dumphex32("dma reg", (char *)0xf1c02300, 50);
  dumphex32("clk reg", (char *)0xf1c00080, 10);
}


x86 assembly (clang, -O0):
<dumpreg>:
push   %rbp
mov    %rsp,%rbp
lea    0xee5(%rip),%rdi
mov    $0xf1c03000,%esi
mov    $0x3c,%edx
call   1030 <dumphex32@plt>
lea    0xed9(%rip),%rdi
mov    $0xf1c20848,%esi
mov    $0x32,%edx
call   1030 <dumphex32@plt>
lea    0xecc(%rip),%rdi
mov    $0xf1c02300,%esi
mov    $0x32,%edx
call   1030 <dumphex32@plt>
lea    0xebe(%rip),%rdi
mov    $0xf1c00080,%esi
mov    $0xa,%edx
call   1030 <dumphex32@plt>
pop    %rbp
ret

x86 assembly (clang, -O2):
<dumpreg>:
push   %rbx
mov    $0xf1c00080,%ebx
lea    0x2f80(%rbx),%rsi
lea    0xedc(%rip),%rdi
mov    $0x3c,%edx
call   1030 <dumphex32@plt>
lea    0x207c8(%rbx),%rsi
lea    0xece(%rip),%rdi
mov    $0x32,%edx
call   1030 <dumphex32@plt>
lea    0x2280(%rbx),%rsi
lea    0xebf(%rip),%rdi
mov    $0x32,%edx
call   1030 <dumphex32@plt>
lea    0xeb6(%rip),%rdi
mov    $0xf1c00080,%esi
mov    $0xa,%edx
pop    %rbx
jmp    1030 <dumphex32@plt>

LLVM IR (-O0):
@.str = [10 x i8] c"nand0 reg\00"
@.str.1 = [9 x i8] c"gpio reg\00"
@.str.2 = [8 x i8] c"dma reg\00"
@.str.3 = [8 x i8] c"clk reg\00"
define void @dumpreg() {
%1 = call i32 @dumphex32(i8* getelementptr inbounds ([10 x i8], [10 x i8]* @.str, i64 0, i64 0), i8* inttoptr (i64 4055904256 to i8*), i32 60)
%2 = call i32 @dumphex32(i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str.1, i64 0, i64 0), i8* inttoptr (i64 4056025160 to i8*), i32 50)
%3 = call i32 @dumphex32(i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str.2, i64 0, i64 0), i8* inttoptr (i64 4055900928 to i8*), i32 50)
%4 = call i32 @dumphex32(i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str.3, i64 0, i64 0), i8* inttoptr (i64 4055892096 to i8*), i32 10)
ret void
}

LLVM IR (-O2):
@.str = [10 x i8] c"nand0 reg\00"
@.str.1 = [9 x i8] c"gpio reg\00"
@.str.2 = [8 x i8] c"dma reg\00"
@.str.3 = [8 x i8] c"clk reg\00"
define void @dumpreg() {
%1 = tail call i32 @dumphex32(i8* getelementptr inbounds ([10 x i8], [10 x i8]* @.str, i64 0, i64 0), i8* inttoptr (i64 4055904256 to i8*), i32 60)
%2 = tail call i32 @dumphex32(i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str.1, i64 0, i64 0), i8* inttoptr (i64 4056025160 to i8*), i32 50)
%3 = tail call i32 @dumphex32(i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str.2, i64 0, i64 0), i8* inttoptr (i64 4055900928 to i8*), i32 50)
%4 = tail call i32 @dumphex32(i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str.3, i64 0, i64 0), i8* inttoptr (i64 4055892096 to i8*), i32 10)
ret void
}
int test_sort_data_loc(int data[]) {
  int i = 0, result = 0;
  while (i < 10) {
    if (data[i] != i)
      result++;
    i++;
  }
  return result;
}


x86 assembly (clang, -O0):
<test_sort_data_loc>:
push   %rbp
mov    %rsp,%rbp
mov    %rdi,-0x8(%rbp)
movl   $0x0,-0xc(%rbp)
movl   $0x0,-0x10(%rbp)
cmpl   $0xa,-0xc(%rbp)
jge    114b <test_sort_data_loc+0x4b>
mov    -0x8(%rbp),%rax
movslq -0xc(%rbp),%rcx
mov    (%rax,%rcx,4),%eax
cmp    -0xc(%rbp),%eax
je     113d <test_sort_data_loc+0x3d>
mov    -0x10(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x10(%rbp)
mov    -0xc(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0xc(%rbp)
jmp    1116 <test_sort_data_loc+0x16>
mov    -0x10(%rbp),%eax
pop    %rbp
ret

x86 assembly (clang, -O2):
<test_sort_data_loc>:
movdqu (%rdi),%xmm0
movdqu 0x10(%rdi),%xmm1
xor    %esi,%esi
cmpl   $0x8,0x20(%rdi)
setne  %sil
xor    %edx,%edx
cmpl   $0x9,0x24(%rdi)
setne  %dl
pcmpeqd 0xedc(%rip),%xmm1
pcmpeqd %xmm2,%xmm2
pxor   %xmm2,%xmm1
pcmpeqd 0xedc(%rip),%xmm0
pxor   %xmm2,%xmm0
packssdw %xmm1,%xmm0
packsswb %xmm0,%xmm0
pmovmskb %xmm0,%eax
mov    %eax,%ecx
shr    %cl
and    $0x55,%cl
sub    %cl,%al
mov    %eax,%ecx
and    $0x33,%cl
shr    $0x2,%al
and    $0x33,%al
add    %cl,%al
mov    %eax,%ecx
shr    $0x4,%cl
add    %al,%cl
and    $0xf,%cl
movzbl %cl,%eax
add    %esi,%eax
add    %edx,%eax
ret

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

LLVM IR (-O2):
define i32 @test_sort_data_loc(i32* nocapture %0) {
%2 = bitcast i32* %0 to <8 x i32>*
%3 = load <8 x i32>, <8 x i32>* %2
%4 = icmp ne <8 x i32> %3, <i32 0, i32 1, i32 2, i32 3, i32 4, i32 5, i32 6, i32 7>
%5 = getelementptr inbounds i32, i32* %0, i64 8
%6 = load i32, i32* %5
%7 = icmp ne i32 %6, 8
%8 = zext i1 %7 to i32
%9 = getelementptr inbounds i32, i32* %0, i64 9
%10 = load i32, i32* %9
%11 = icmp ne i32 %10, 9
%12 = zext i1 %11 to i32
%13 = bitcast <8 x i1> %4 to i8
%14 = call i8 @llvm.ctpop.i8(i8 %13)
%15 = zext i8 %14 to i32
%16 = add nuw nsw i32 %15, %8
%17 = add nuw nsw i32 %16, %12
ret i32 %17
}
/* Variables and functions */
int /*<<< orphan*/ fftss_init_threads();
void FFTSS_INIT_THREADS_(void) { fftss_init_threads(); }


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

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

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

LLVM IR (-O2):
define void @FFTSS_INIT_THREADS_() {
%1 = tail call i32 (...) @fftss_init_threads()
ret void
}
short complementBit_fun_short(short x, unsigned i) { return x ^ 1 << i; }


x86 assembly (clang, -O0):
<complementBit_fun_short>:
push   %rbp
mov    %rsp,%rbp
mov    %di,%ax
mov    %ax,-0x2(%rbp)
mov    %esi,-0x8(%rbp)
movswl -0x2(%rbp),%eax
mov    -0x8(%rbp),%ecx
mov    $0x1,%edx
shl    %cl,%edx
mov    %edx,%ecx
xor    %ecx,%eax
cwtl
pop    %rbp
ret

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

LLVM IR (-O0):
define signext i16 @complementBit_fun_short(i16 signext %0, i32 %1) {
%3 = alloca i16
%4 = alloca i32
store i16 %0, i16* %3
store i32 %1, i32* %4
%5 = load i16, i16* %3
%6 = sext i16 %5 to i32
%7 = load i32, i32* %4
%8 = shl i32 1, %7
%9 = xor i32 %6, %8
%10 = trunc i32 %9 to i16
ret i16 %10
}

LLVM IR (-O2):
define signext i16 @complementBit_fun_short(i16 signext %0, i32 %1) {
%3 = shl nuw i32 1, %1
%4 = trunc i32 %3 to i16
%5 = xor i16 %4, %0
ret i16 %5
}
void gdk_window_edge_get_type() {}


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

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

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

LLVM IR (-O2):
define void @gdk_window_edge_get_type() {
ret void
}
/* Type definitions */
struct eba_s {
  int dummy;
};

/* Variables and functions */
unsigned char eba_get(struct eba_s *, unsigned long);
int /*<<< orphan*/ eba_set(struct eba_s *, unsigned long, unsigned char);
void eba_swap(struct eba_s *eba, unsigned long index1, unsigned long index2) {
  unsigned char tmp;
  tmp = eba_get(eba, index1);
  eba_set(eba, index1, eba_get(eba, index2));
  eba_set(eba, index2, tmp);
}


x86 assembly (clang, -O0):
<eba_swap>:
push   %rbp
mov    %rsp,%rbp
sub    $0x30,%rsp
mov    %rdi,-0x8(%rbp)
mov    %rsi,-0x10(%rbp)
mov    %rdx,-0x18(%rbp)
mov    -0x8(%rbp),%rdi
mov    -0x10(%rbp),%rsi
call   1040 <eba_get@plt>
mov    %al,-0x19(%rbp)
mov    -0x8(%rbp),%rax
mov    %rax,-0x30(%rbp)
mov    -0x10(%rbp),%rax
mov    %rax,-0x28(%rbp)
mov    -0x8(%rbp),%rdi
mov    -0x18(%rbp),%rsi
call   1040 <eba_get@plt>
mov    -0x30(%rbp),%rdi
mov    -0x28(%rbp),%rsi
movzbl %al,%edx
call   1030 <eba_set@plt>
mov    -0x8(%rbp),%rdi
mov    -0x18(%rbp),%rsi
movzbl -0x19(%rbp),%edx
call   1030 <eba_set@plt>
add    $0x30,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<eba_swap>:
push   %rbp
push   %r15
push   %r14
push   %rbx
push   %rax
mov    %rdx,%r14
mov    %rsi,%r15
mov    %rdi,%rbx
call   1040 <eba_get@plt>
mov    %eax,%ebp
mov    %rbx,%rdi
mov    %r14,%rsi
call   1040 <eba_get@plt>
movzbl %al,%edx
mov    %rbx,%rdi
mov    %r15,%rsi
call   1030 <eba_set@plt>
movzbl %bpl,%edx
mov    %rbx,%rdi
mov    %r14,%rsi
add    $0x8,%rsp
pop    %rbx
pop    %r14
pop    %r15
pop    %rbp
jmp    1030 <eba_set@plt>

LLVM IR (-O0):
%struct.eba_s = type { i32 }
define void @eba_swap(%struct.eba_s* %0, i64 %1, i64 %2) {
%4 = alloca %struct.eba_s*
%5 = alloca i64
%6 = alloca i64
%7 = alloca i8
store %struct.eba_s* %0, %struct.eba_s** %4
store i64 %1, i64* %5
store i64 %2, i64* %6
%8 = load %struct.eba_s*, %struct.eba_s** %4
%9 = load i64, i64* %5
%10 = call zeroext i8 @eba_get(%struct.eba_s* %8, i64 %9)
store i8 %10, i8* %7
%11 = load %struct.eba_s*, %struct.eba_s** %4
%12 = load i64, i64* %5
%13 = load %struct.eba_s*, %struct.eba_s** %4
%14 = load i64, i64* %6
%15 = call zeroext i8 @eba_get(%struct.eba_s* %13, i64 %14)
%16 = call i32 @eba_set(%struct.eba_s* %11, i64 %12, i8 zeroext %15)
%17 = load %struct.eba_s*, %struct.eba_s** %4
%18 = load i64, i64* %6
%19 = load i8, i8* %7
%20 = call i32 @eba_set(%struct.eba_s* %17, i64 %18, i8 zeroext %19)
ret void
}

LLVM IR (-O2):
%struct.eba_s = type { i32 }
define void @eba_swap(%struct.eba_s* %0, i64 %1, i64 %2) {
%4 = tail call zeroext i8 @eba_get(%struct.eba_s* %0, i64 %1)
%5 = tail call zeroext i8 @eba_get(%struct.eba_s* %0, i64 %2)
%6 = tail call i32 @eba_set(%struct.eba_s* %0, i64 %1, i8 zeroext %5)
%7 = tail call i32 @eba_set(%struct.eba_s* %0, i64 %2, i8 zeroext %4)
ret void
}
/* Variables and functions */
int /*<<< orphan*/ strcpy(char *, char *);
char *strrchr(char *, char);
void linux_find_ext(char *filename, char *ext) {
  char *ext_p = strrchr(filename, '.');
  if (ext_p == NULL) {
    strcpy(ext, "");
  } else {
    strcpy(ext, ext_p + 1);
  }
}


x86 assembly (clang, -O0):
<linux_find_ext>:
push   %rbp
mov    %rsp,%rbp
sub    $0x20,%rsp
mov    %rdi,-0x8(%rbp)
mov    %rsi,-0x10(%rbp)
mov    -0x8(%rbp),%rdi
mov    $0x2e,%esi
call   1040 <strrchr@plt>
mov    %rax,-0x18(%rbp)
cmpq   $0x0,-0x18(%rbp)
jne    1162 <linux_find_ext+0x42>
mov    -0x10(%rbp),%rdi
lea    0xea8(%rip),%rsi
call   1030 <strcpy@plt>
jmp    1173 <linux_find_ext+0x53>
mov    -0x10(%rbp),%rdi
mov    -0x18(%rbp),%rsi
add    $0x1,%rsi
call   1030 <strcpy@plt>
add    $0x20,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<linux_find_ext>:
push   %rbx
mov    %rsi,%rbx
mov    $0x2e,%esi
call   1040 <strrchr@plt>
test   %rax,%rax
je     1143 <linux_find_ext+0x23>
add    $0x1,%rax
mov    %rbx,%rdi
mov    %rax,%rsi
pop    %rbx
jmp    1030 <strcpy@plt>
lea    0xeb6(%rip),%rsi
mov    %rbx,%rdi
pop    %rbx
jmp    1030 <strcpy@plt>

LLVM IR (-O0):
@.str = [1 x i8] zeroinitializer
define void @linux_find_ext(i8* %0, i8* %1) {
%3 = alloca i8*
%4 = alloca i8*
%5 = alloca i8*
store i8* %0, i8** %3
store i8* %1, i8** %4
%6 = load i8*, i8** %3
%7 = call i8* @strrchr(i8* %6, i8 signext 46)
store i8* %7, i8** %5
%8 = load i8*, i8** %5
%9 = icmp eq i8* %8, null
br i1 %9, label %10, label %13
10: ; preds = %2
%11 = load i8*, i8** %4
%12 = call i32 @strcpy(i8* %11, i8* getelementptr inbounds ([1 x i8], [1 x i8]* @.str, i64 0, i64 0))
br label %18
13: ; preds = %2
%14 = load i8*, i8** %4
%15 = load i8*, i8** %5
%16 = getelementptr inbounds i8, i8* %15, i64 1
%17 = call i32 @strcpy(i8* %14, i8* %16)
br label %18
18: ; preds = %13, %10
ret void
}

LLVM IR (-O2):
@.str = [1 x i8] zeroinitializer
define void @linux_find_ext(i8* %0, i8* %1) {
%3 = tail call i8* @strrchr(i8* dereferenceable(1) %0, i8 signext 46)
%4 = icmp eq i8* %3, null
br i1 %4, label %5, label %7
5: ; preds = %2
%6 = tail call i32 @strcpy(i8* %1, i8* getelementptr inbounds ([1 x i8], [1 x i8]* @.str, i64 0, i64 0))
br label %10
7: ; preds = %2
%8 = getelementptr inbounds i8, i8* %3, i64 1
%9 = tail call i32 @strcpy(i8* %1, i8* %8)
br label %10
10: ; preds = %7, %5
ret void
}
/* Type definitions */
typedef int /*<<< orphan*/ time_t;
struct tm {
  int dummy;
};

/* Variables and functions */
struct tm *localtime(int /*<<< orphan*/ *);
int /*<<< orphan*/ strftime(char *, int, char *, struct tm *);
int /*<<< orphan*/ time(int /*<<< orphan*/ *);
void get_date_str(char *date_str) {
  time_t t = time(NULL);
  struct tm *timeinfo;
  timeinfo = localtime(&t);
  strftime(date_str, 15, "%F", timeinfo);
}


x86 assembly (clang, -O0):
<get_date_str>:
push   %rbp
mov    %rsp,%rbp
sub    $0x20,%rsp
mov    %rdi,-0x8(%rbp)
xor    %eax,%eax
mov    %eax,%edi
call   1040 <time@plt>
mov    %eax,-0xc(%rbp)
lea    -0xc(%rbp),%rdi
call   1030 <localtime@plt>
mov    %rax,-0x18(%rbp)
mov    -0x8(%rbp),%rdi
mov    -0x18(%rbp),%rcx
mov    $0xf,%esi
lea    0xe97(%rip),%rdx
call   1050 <strftime@plt>
add    $0x20,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<get_date_str>:
push   %rbx
sub    $0x10,%rsp
mov    %rdi,%rbx
xor    %edi,%edi
call   1040 <time@plt>
mov    %eax,0xc(%rsp)
lea    0xc(%rsp),%rdi
call   1030 <localtime@plt>
lea    0xeac(%rip),%rdx
mov    %rbx,%rdi
mov    $0xf,%esi
mov    %rax,%rcx
call   1050 <strftime@plt>
add    $0x10,%rsp
pop    %rbx
ret

LLVM IR (-O0):
%struct.tm = type { i32 }
@.str = [3 x i8] c"%F\00"
define void @get_date_str(i8* %0) {
%2 = alloca i8*
%3 = alloca i32
%4 = alloca %struct.tm*
store i8* %0, i8** %2
%5 = call i32 @time(i32* null)
store i32 %5, i32* %3
%6 = call %struct.tm* @localtime(i32* %3)
store %struct.tm* %6, %struct.tm** %4
%7 = load i8*, i8** %2
%8 = load %struct.tm*, %struct.tm** %4
%9 = call i32 @strftime(i8* %7, i32 15, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str, i64 0, i64 0), %struct.tm* %8)
ret void
}

LLVM IR (-O2):
%struct.tm = type { i32 }
@.str = [3 x i8] c"%F\00"
define void @get_date_str(i8* %0) {
%2 = alloca i32
%3 = bitcast i32* %2 to i8*
%4 = tail call i32 @time(i32* null)
store i32 %4, i32* %2
%5 = call %struct.tm* @localtime(i32* %2)
%6 = call i32 @strftime(i8* %0, i32 15, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str, i64 0, i64 0), %struct.tm* %5)
ret void
}
int is_ip_addr_(const char *addr) {
  int ret = 1;
  char c = '\0';
  const char *p = addr;
  while ('\0' != (c = (*p++))) {
    if ('.' != c && (!('0' <= c && c <= '9'))) {
      ret = 0;
      break;
    }
  }
  return ret;
}


x86 assembly (clang, -O0):
<is_ip_addr_>:
push   %rbp
mov    %rsp,%rbp
mov    %rdi,-0x8(%rbp)
movl   $0x1,-0xc(%rbp)
movb   $0x0,-0xd(%rbp)
mov    -0x8(%rbp),%rax
mov    %rax,-0x18(%rbp)
mov    -0x18(%rbp),%rax
mov    %rax,%rcx
add    $0x1,%rcx
mov    %rcx,-0x18(%rbp)
mov    (%rax),%al
mov    %al,-0xd(%rbp)
movsbl %al,%ecx
xor    %eax,%eax
cmp    %ecx,%eax
je     117c <is_ip_addr_+0x7c>
movsbl -0xd(%rbp),%ecx
mov    $0x2e,%eax
cmp    %ecx,%eax
je     1177 <is_ip_addr_+0x77>
movsbl -0xd(%rbp),%ecx
mov    $0x30,%eax
cmp    %ecx,%eax
jg     116b <is_ip_addr_+0x6b>
movsbl -0xd(%rbp),%eax
cmp    $0x39,%eax
jle    1177 <is_ip_addr_+0x77>
movl   $0x0,-0xc(%rbp)
jmp    117c <is_ip_addr_+0x7c>
jmp    111b <is_ip_addr_+0x1b>
mov    -0xc(%rbp),%eax
pop    %rbp
ret

x86 assembly (clang, -O2):
<is_ip_addr_>:
movzbl (%rdi),%eax
add    $0x1,%rdi
cmp    $0x2e,%al
je     1100 <is_ip_addr_>
test   %al,%al
je     1118 <is_ip_addr_+0x18>
add    $0xd0,%al
cmp    $0xa,%al
jb     1100 <is_ip_addr_>
xor    %eax,%eax
ret
mov    $0x1,%eax
ret

LLVM IR (-O0):
define i32 @is_ip_addr_(i8* %0) {
%2 = alloca i8*
%3 = alloca i32
%4 = alloca i8
%5 = alloca i8*
store i8* %0, i8** %2
store i32 1, i32* %3
store i8 0, i8* %4
%6 = load i8*, i8** %2
store i8* %6, i8** %5
br label %7
7: ; preds = %26, %1
%8 = load i8*, i8** %5
%9 = getelementptr inbounds i8, i8* %8, i32 1
store i8* %9, i8** %5
%10 = load i8, i8* %8
store i8 %10, i8* %4
%11 = sext i8 %10 to i32
%12 = icmp ne i32 0, %11
br i1 %12, label %13, label %27
13: ; preds = %7
%14 = load i8, i8* %4
%15 = sext i8 %14 to i32
%16 = icmp ne i32 46, %15
br i1 %16, label %17, label %26
17: ; preds = %13
%18 = load i8, i8* %4
%19 = sext i8 %18 to i32
%20 = icmp sle i32 48, %19
br i1 %20, label %21, label %25
21: ; preds = %17
%22 = load i8, i8* %4
%23 = sext i8 %22 to i32
%24 = icmp sle i32 %23, 57
br i1 %24, label %26, label %25
25: ; preds = %21, %17
store i32 0, i32* %3
br label %27
26: ; preds = %21, %13
br label %7
27: ; preds = %25, %7
%28 = load i32, i32* %3
ret i32 %28
}

LLVM IR (-O2):
define i32 @is_ip_addr_(i8* nocapture %0) {
br label %2
2: ; preds = %6, %1
%3 = phi i8* [ %0, %1 ], [ %4, %6 ]
%4 = getelementptr inbounds i8, i8* %3, i64 1
%5 = load i8, i8* %3
switch i8 %5, label %7 [
i8 0, label %10
i8 46, label %6
]
6: ; preds = %2, %7
br label %2
7: ; preds = %2
%8 = add i8 %5, -48
%9 = icmp ult i8 %8, 10
br i1 %9, label %6, label %10
10: ; preds = %7, %2
%11 = phi i32 [ 1, %2 ], [ 0, %7 ]
ret i32 %11
}
/* Type definitions */
typedef int /*<<< orphan*/ jmp_buf;

/* Variables and functions */
int /*<<< orphan*/ longjmp(int /*<<< orphan*/, int);
void fun(jmp_buf jb) {
  register int r1 = 1, r2 = 2, r3 = 3, r4 = 4, r5 = 5, r6 = 6, r7 = 7, r8 = 8;
  longjmp(jb, 1);
}


x86 assembly (clang, -O0):
<fun>:
push   %rbp
mov    %rsp,%rbp
sub    $0x30,%rsp
mov    %edi,-0x4(%rbp)
movl   $0x1,-0x8(%rbp)
movl   $0x2,-0xc(%rbp)
movl   $0x3,-0x10(%rbp)
movl   $0x4,-0x14(%rbp)
movl   $0x5,-0x18(%rbp)
movl   $0x6,-0x1c(%rbp)
movl   $0x7,-0x20(%rbp)
movl   $0x8,-0x24(%rbp)
mov    -0x4(%rbp),%edi
mov    $0x1,%esi
call   1030 <longjmp@plt>

x86 assembly (clang, -O2):
<fun>:
push   %rax
mov    $0x1,%esi
call   1030 <longjmp@plt>

LLVM IR (-O0):
define void @fun(i32 %0) {
%2 = alloca i32
%3 = alloca i32
%4 = alloca i32
%5 = alloca i32
%6 = alloca i32
%7 = alloca i32
%8 = alloca i32
%9 = alloca i32
%10 = alloca i32
store i32 %0, i32* %2
store i32 1, i32* %3
store i32 2, i32* %4
store i32 3, i32* %5
store i32 4, i32* %6
store i32 5, i32* %7
store i32 6, i32* %8
store i32 7, i32* %9
store i32 8, i32* %10
%11 = load i32, i32* %2
%12 = call i32 @longjmp(i32 %11, i32 1)
unreachable
}

LLVM IR (-O2):
define void @fun(i32 %0) {
%2 = tail call i32 @longjmp(i32 %0, i32 1)
unreachable
}
/* Type definitions */
typedef scalar_t__ clock_t;

/* Variables and functions */
int /*<<< orphan*/ abort();
scalar_t__ clock();
int /*<<< orphan*/ puts(char *);
void check_clock_support(void) {
  if (clock() == (clock_t)-1) {
    puts("ERROR clock() is unavailable on your platform.");
    abort();
  }
}


x86 assembly (clang, -O0):
<check_clock_support>:
push   %rbp
mov    %rsp,%rbp
mov    $0x0,%al
call   1050 <clock@plt>
cmp    $0xffffffffffffffff,%rax
jne    1158 <check_clock_support+0x28>
lea    0xeb4(%rip),%rdi
call   1040 <puts@plt>
mov    $0x0,%al
call   1030 <abort@plt>
pop    %rbp
ret

x86 assembly (clang, -O2):
<check_clock_support>:
push   %rax
xor    %eax,%eax
call   1050 <clock@plt>
cmp    $0xffffffffffffffff,%rax
je     1140 <check_clock_support+0x10>
pop    %rax
ret
lea    0xeb9(%rip),%rdi
call   1040 <puts@plt>
xor    %eax,%eax
call   1030 <abort@plt>

LLVM IR (-O0):
@.str = [47 x i8] c"ERROR clock() is unavailable on your platform.\00"
define void @check_clock_support() {
%1 = call i64 (...) @clock()
%2 = icmp eq i64 %1, -1
br i1 %2, label %3, label %6
3: ; preds = %0
%4 = call i32 @puts(i8* getelementptr inbounds ([47 x i8], [47 x i8]* @.str, i64 0, i64 0))
%5 = call i32 (...) @abort()
unreachable
6: ; preds = %0
ret void
}

LLVM IR (-O2):
@.str = [47 x i8] c"ERROR clock() is unavailable on your platform.\00"
define void @check_clock_support() {
%1 = tail call i64 (...) @clock()
%2 = icmp eq i64 %1, -1
br i1 %2, label %3, label %6
3: ; preds = %0
%4 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([47 x i8], [47 x i8]* @.str, i64 0, i64 0))
%5 = tail call i32 (...) @abort()
unreachable
6: ; preds = %0
ret void
}
/* Type definitions */
typedef int /*<<< orphan*/ mpfr_t;
typedef int mpfr_rnd_t;

/* Variables and functions */
int /*<<< orphan*/ mpfr_jn(int /*<<< orphan*/, long, int /*<<< orphan*/, int);
void mpfrbesseljn(mpfr_t r2, int *iexp, mpfr_t r1, mpfr_rnd_t *irnd) {
  long int n1;
  int n2;
  n1 = *iexp;
  n2 = *irnd;
  mpfr_jn(r2, n1, r1, n2);
}


x86 assembly (clang, -O0):
<mpfrbesseljn>:
push   %rbp
mov    %rsp,%rbp
sub    $0x30,%rsp
mov    %edi,-0x4(%rbp)
mov    %rsi,-0x10(%rbp)
mov    %edx,-0x14(%rbp)
mov    %rcx,-0x20(%rbp)
mov    -0x10(%rbp),%rax
movslq (%rax),%rax
mov    %rax,-0x28(%rbp)
mov    -0x20(%rbp),%rax
mov    (%rax),%eax
mov    %eax,-0x2c(%rbp)
mov    -0x4(%rbp),%edi
mov    -0x28(%rbp),%rsi
mov    -0x14(%rbp),%edx
mov    -0x2c(%rbp),%ecx
call   1030 <mpfr_jn@plt>
add    $0x30,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<mpfrbesseljn>:
movslq (%rsi),%rsi
mov    (%rcx),%ecx
jmp    1030 <mpfr_jn@plt>

LLVM IR (-O0):
define void @mpfrbesseljn(i32 %0, i32* %1, i32 %2, i32* %3) {
%5 = alloca i32
%6 = alloca i32*
%7 = alloca i32
%8 = alloca i32*
%9 = alloca i64
%10 = alloca i32
store i32 %0, i32* %5
store i32* %1, i32** %6
store i32 %2, i32* %7
store i32* %3, i32** %8
%11 = load i32*, i32** %6
%12 = load i32, i32* %11
%13 = sext i32 %12 to i64
store i64 %13, i64* %9
%14 = load i32*, i32** %8
%15 = load i32, i32* %14
store i32 %15, i32* %10
%16 = load i32, i32* %5
%17 = load i64, i64* %9
%18 = load i32, i32* %7
%19 = load i32, i32* %10
%20 = call i32 @mpfr_jn(i32 %16, i64 %17, i32 %18, i32 %19)
ret void
}

LLVM IR (-O2):
define void @mpfrbesseljn(i32 %0, i32* nocapture %1, i32 %2, i32* nocapture %3) {
%5 = load i32, i32* %1
%6 = sext i32 %5 to i64
%7 = load i32, i32* %3
%8 = tail call i32 @mpfr_jn(i32 %0, i64 %6, i32 %2, i32 %7)
ret void
}