xunge/DecIR huggingface dataset:
void stone_gradient(double *pars, double *r, double *grad) {
  double dphi_dr, rr;
  grad[0] = dphi_dr * r[0] / rr;
  grad[1] = dphi_dr * r[1] / rr;
  grad[2] = dphi_dr * r[2] / rr;
}


x86 assembly (clang, -O0):
<stone_gradient>:
push   %rbp
mov    %rsp,%rbp
mov    %rdi,-0x8(%rbp)
mov    %rsi,-0x10(%rbp)
mov    %rdx,-0x18(%rbp)
movsd  -0x20(%rbp),%xmm0
mov    -0x10(%rbp),%rax
mulsd  (%rax),%xmm0
divsd  -0x28(%rbp),%xmm0
mov    -0x18(%rbp),%rax
movsd  %xmm0,(%rax)
movsd  -0x20(%rbp),%xmm0
mov    -0x10(%rbp),%rax
mulsd  0x8(%rax),%xmm0
divsd  -0x28(%rbp),%xmm0
mov    -0x18(%rbp),%rax
movsd  %xmm0,0x8(%rax)
movsd  -0x20(%rbp),%xmm0
mov    -0x10(%rbp),%rax
mulsd  0x10(%rax),%xmm0
divsd  -0x28(%rbp),%xmm0
mov    -0x18(%rbp),%rax
movsd  %xmm0,0x10(%rax)
pop    %rbp
ret

x86 assembly (clang, -O2):
<stone_gradient>:
movaps 0xef9(%rip),%xmm0
movups %xmm0,(%rdx)
movabs $0x7ff8000000000000,%rax
mov    %rax,0x10(%rdx)
ret

LLVM IR (-O0):
define void @stone_gradient(double* %0, double* %1, double* %2) {
%4 = alloca double*
%5 = alloca double*
%6 = alloca double*
%7 = alloca double
%8 = alloca double
store double* %0, double** %4
store double* %1, double** %5
store double* %2, double** %6
%9 = load double, double* %7
%10 = load double*, double** %5
%11 = getelementptr inbounds double, double* %10, i64 0
%12 = load double, double* %11
%13 = fmul double %9, %12
%14 = load double, double* %8
%15 = fdiv double %13, %14
%16 = load double*, double** %6
%17 = getelementptr inbounds double, double* %16, i64 0
store double %15, double* %17
%18 = load double, double* %7
%19 = load double*, double** %5
%20 = getelementptr inbounds double, double* %19, i64 1
%21 = load double, double* %20
%22 = fmul double %18, %21
%23 = load double, double* %8
%24 = fdiv double %22, %23
%25 = load double*, double** %6
%26 = getelementptr inbounds double, double* %25, i64 1
store double %24, double* %26
%27 = load double, double* %7
%28 = load double*, double** %5
%29 = getelementptr inbounds double, double* %28, i64 2
%30 = load double, double* %29
%31 = fmul double %27, %30
%32 = load double, double* %8
%33 = fdiv double %31, %32
%34 = load double*, double** %6
%35 = getelementptr inbounds double, double* %34, i64 2
store double %33, double* %35
ret void
}

LLVM IR (-O2):
define void @stone_gradient(double* nocapture readnone %0, double* nocapture readnone %1, double* nocapture writeonly %2) {
%4 = bitcast double* %2 to <2 x double>*
store <2 x double> <double 0x7FF8000000000000, double 0x7FF8000000000000>, <2 x double>* %4
%5 = getelementptr inbounds double, double* %2, i64 2
store double 0x7FF8000000000000, double* %5
ret void
}
void error(void) {
ERROR:
  goto ERROR;
}


x86 assembly (clang, -O0):
<error>:
push   %rbp
mov    %rsp,%rbp
jmp    1109 <error+0x9>
jmp    1109 <error+0x9>

x86 assembly (clang, -O2):
<error>:
jmp    1100 <error>

LLVM IR (-O0):
define void @error() {
br label %1
1: ; preds = %1, %0
br label %1
}

LLVM IR (-O2):
define void @error() {
br label %1
1: ; preds = %1, %0
br label %1
}
/* Variables and functions */
scalar_t__ dcac_add_ops(int, int, char const *, int);
int dcac_add_any_attr(const char *attr, int flags) {
  return (int)dcac_add_ops(2, -1, attr, flags);
}


x86 assembly (clang, -O0):
<dcac_add_any_attr>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
mov    %rdi,-0x8(%rbp)
mov    %esi,-0xc(%rbp)
mov    -0x8(%rbp),%rdx
mov    -0xc(%rbp),%ecx
mov    $0x2,%edi
mov    $0xffffffff,%esi
call   1030 <dcac_add_ops@plt>
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<dcac_add_any_attr>:
mov    %esi,%ecx
mov    %rdi,%rdx
mov    $0x2,%edi
mov    $0xffffffff,%esi
jmp    1030 <dcac_add_ops@plt>

LLVM IR (-O0):
define i32 @dcac_add_any_attr(i8* %0, i32 %1) {
%3 = alloca i8*
%4 = alloca i32
store i8* %0, i8** %3
store i32 %1, i32* %4
%5 = load i8*, i8** %3
%6 = load i32, i32* %4
%7 = call i64 @dcac_add_ops(i32 2, i32 -1, i8* %5, i32 %6)
%8 = trunc i64 %7 to i32
ret i32 %8
}

LLVM IR (-O2):
define i32 @dcac_add_any_attr(i8* %0, i32 %1) {
%3 = tail call i64 @dcac_add_ops(i32 2, i32 -1, i8* %0, i32 %1)
%4 = trunc i64 %3 to i32
ret i32 %4
}
double forward_euler(double delta, double aposb, double ppos, double anegf,
                     double pneg, double anowf, double anowb, double pnow) {
  double pnew;
  pnew = pnow + (aposb * ppos + anegf * pneg - (anowf + anowb) * pnow) * delta;
  return pnew;
}


x86 assembly (clang, -O0):
<forward_euler>:
push   %rbp
mov    %rsp,%rbp
movsd  %xmm0,-0x8(%rbp)
movsd  %xmm1,-0x10(%rbp)
movsd  %xmm2,-0x18(%rbp)
movsd  %xmm3,-0x20(%rbp)
movsd  %xmm4,-0x28(%rbp)
movsd  %xmm5,-0x30(%rbp)
movsd  %xmm6,-0x38(%rbp)
movsd  %xmm7,-0x40(%rbp)
movsd  -0x40(%rbp),%xmm1
movsd  -0x10(%rbp),%xmm2
movsd  -0x18(%rbp),%xmm3
movsd  -0x20(%rbp),%xmm0
mulsd  -0x28(%rbp),%xmm0
mulsd  %xmm3,%xmm2
addsd  %xmm0,%xmm2
movsd  -0x30(%rbp),%xmm0
addsd  -0x38(%rbp),%xmm0
movsd  -0x40(%rbp),%xmm3
movq   %xmm0,%rax
movabs $0x8000000000000000,%rcx
xor    %rcx,%rax
movq   %rax,%xmm0
mulsd  %xmm3,%xmm0
addsd  %xmm2,%xmm0
movsd  -0x8(%rbp),%xmm2
mulsd  %xmm2,%xmm0
addsd  %xmm1,%xmm0
movsd  %xmm0,-0x48(%rbp)
movsd  -0x48(%rbp),%xmm0
pop    %rbp
ret

x86 assembly (clang, -O2):
<forward_euler>:
mulsd  %xmm4,%xmm3
mulsd  %xmm2,%xmm1
addsd  %xmm3,%xmm1
addsd  %xmm6,%xmm5
mulsd  %xmm7,%xmm5
subsd  %xmm5,%xmm1
mulsd  %xmm1,%xmm0
addsd  %xmm7,%xmm0
ret

LLVM IR (-O0):
define double @forward_euler(double %0, double %1, double %2, double %3, double %4, double %5, double %6, double %7) {
%9 = alloca double
%10 = alloca double
%11 = alloca double
%12 = alloca double
%13 = alloca double
%14 = alloca double
%15 = alloca double
%16 = alloca double
%17 = alloca double
store double %0, double* %9
store double %1, double* %10
store double %2, double* %11
store double %3, double* %12
store double %4, double* %13
store double %5, double* %14
store double %6, double* %15
store double %7, double* %16
%18 = load double, double* %16
%19 = load double, double* %10
%20 = load double, double* %11
%21 = load double, double* %12
%22 = load double, double* %13
%23 = fmul double %21, %22
%24 = call double @llvm.fmuladd.f64(double %19, double %20, double %23)
%25 = load double, double* %14
%26 = load double, double* %15
%27 = fadd double %25, %26
%28 = load double, double* %16
%29 = fneg double %27
%30 = call double @llvm.fmuladd.f64(double %29, double %28, double %24)
%31 = load double, double* %9
%32 = call double @llvm.fmuladd.f64(double %30, double %31, double %18)
store double %32, double* %17
%33 = load double, double* %17
ret double %33
}

LLVM IR (-O2):
define double @forward_euler(double %0, double %1, double %2, double %3, double %4, double %5, double %6, double %7) {
%9 = fmul double %3, %4
%10 = tail call double @llvm.fmuladd.f64(double %1, double %2, double %9)
%11 = fadd double %5, %6
%12 = fneg double %11
%13 = tail call double @llvm.fmuladd.f64(double %12, double %7, double %10)
%14 = tail call double @llvm.fmuladd.f64(double %13, double %0, double %7)
ret double %14
}
/* Type definitions */
typedef int uint8_t;

/* Variables and functions */
scalar_t__ ERR;
scalar_t__ cbreak();
scalar_t__ nocbreak();
uint8_t ccbi_cbreak(int on) {
  return ((on ? nocbreak() : cbreak()) == ERR ? 0 : 1);
}


x86 assembly (clang, -O0):
<ccbi_cbreak>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
mov    %edi,-0x4(%rbp)
cmpl   $0x0,-0x4(%rbp)
je     1145 <ccbi_cbreak+0x25>
mov    $0x0,%al
call   1040 <nocbreak@plt>
mov    %rax,-0x10(%rbp)
jmp    1150 <ccbi_cbreak+0x30>
mov    $0x0,%al
call   1030 <cbreak@plt>
mov    %rax,-0x10(%rbp)
mov    -0x10(%rbp),%rdx
mov    0x2e8d(%rip),%rax
mov    (%rax),%rsi
mov    $0x1,%eax
xor    %ecx,%ecx
cmp    %rsi,%rdx
cmove  %ecx,%eax
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<ccbi_cbreak>:
push   %rax
xor    %eax,%eax
test   %edi,%edi
je     112e <ccbi_cbreak+0xe>
call   1040 <nocbreak@plt>
jmp    1133 <ccbi_cbreak+0x13>
call   1030 <cbreak@plt>
mov    0x2eae(%rip),%rdx
xor    %ecx,%ecx
cmp    (%rdx),%rax
setne  %cl
mov    %ecx,%eax
pop    %rcx
ret

LLVM IR (-O0):
@ERR = global i64 0
define i32 @ccbi_cbreak(i32 %0) {
%2 = alloca i32
store i32 %0, i32* %2
%3 = load i32, i32* %2
%4 = icmp ne i32 %3, 0
br i1 %4, label %5, label %7
5: ; preds = %1
%6 = call i64 (...) @nocbreak()
br label %9
7: ; preds = %1
%8 = call i64 (...) @cbreak()
br label %9
9: ; preds = %7, %5
%10 = phi i64 [ %6, %5 ], [ %8, %7 ]
%11 = load i64, i64* @ERR
%12 = icmp eq i64 %10, %11
%13 = zext i1 %12 to i64
%14 = select i1 %12, i32 0, i32 1
ret i32 %14
}

LLVM IR (-O2):
@ERR = global i64 0
define i32 @ccbi_cbreak(i32 %0) {
%2 = icmp eq i32 %0, 0
br i1 %2, label %5, label %3
3: ; preds = %1
%4 = tail call i64 (...) @nocbreak()
br label %7
5: ; preds = %1
%6 = tail call i64 (...) @cbreak()
br label %7
7: ; preds = %5, %3
%8 = phi i64 [ %4, %3 ], [ %6, %5 ]
%9 = load i64, i64* @ERR
%10 = icmp ne i64 %8, %9
%11 = zext i1 %10 to i32
ret i32 %11
}
void free_weights(int **array, int size) {
  int i;
  for (i = 0; i < size; i++) {
    free(array[i]);
  }
  free(array);
}


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

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

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

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


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

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

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

LLVM IR (-O2):
define void @gtk_widget_hide() {
ret void
}
void updateCursorStyle0(int cstyle) {}


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

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

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

LLVM IR (-O2):
define void @updateCursorStyle0(i32 %0) {
ret void
}
void inc_dl_migration(struct sched_dl_entity *dl_se, struct dl_rq *dl_rq) {}


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

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

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

LLVM IR (-O2):
%struct.sched_dl_entity = type opaque
%struct.dl_rq = type opaque
define void @inc_dl_migration(%struct.sched_dl_entity* nocapture %0, %struct.dl_rq* nocapture %1) {
ret void
}
/* Variables and functions */
int strlen(char *);
scalar_t__ tolower(char);
void str2lower(char *s) {
  int i;
  for (i = strlen(s); i--;)
    s[i] = (char)tolower(s[i]);
}


x86 assembly (clang, -O0):
<str2lower>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
mov    %rdi,-0x8(%rbp)
mov    -0x8(%rbp),%rdi
call   1030 <strlen@plt>
mov    %eax,-0xc(%rbp)
mov    -0xc(%rbp),%eax
mov    %eax,%ecx
add    $0xffffffff,%ecx
mov    %ecx,-0xc(%rbp)
cmp    $0x0,%eax
je     116f <str2lower+0x4f>
mov    -0x8(%rbp),%rax
movslq -0xc(%rbp),%rcx
movsbl (%rax,%rcx,1),%edi
call   1040 <tolower@plt>
mov    %al,%dl
mov    -0x8(%rbp),%rax
movslq -0xc(%rbp),%rcx
mov    %dl,(%rax,%rcx,1)
jmp    1138 <str2lower+0x18>
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<str2lower>:
push   %r15
push   %r14
push   %rbx
mov    %rdi,%r14
call   1030 <strlen@plt>
test   %eax,%eax
je     1167 <str2lower+0x47>
mov    %eax,%r15d
cltq
add    %rax,%r14
add    $0xffffffffffffffff,%r14
neg    %r15d
xor    %ebx,%ebx
cs nopw 0x0(%rax,%rax,1)
nopl   0x0(%rax)
movsbl (%r14,%rbx,1),%edi
call   1040 <tolower@plt>
mov    %al,(%r14,%rbx,1)
add    $0xffffffffffffffff,%rbx
cmp    %ebx,%r15d
jne    1150 <str2lower+0x30>
pop    %rbx
pop    %r14
pop    %r15
ret

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

LLVM IR (-O2):
define void @str2lower(i8* %0) {
%2 = tail call i32 @strlen(i8* %0)
%3 = icmp eq i32 %2, 0
br i1 %3, label %15, label %4
4: ; preds = %1
%5 = sext i32 %2 to i64
br label %6
6: ; preds = %4, %6
%7 = phi i64 [ %5, %4 ], [ %8, %6 ]
%8 = add nsw i64 %7, -1
%9 = getelementptr inbounds i8, i8* %0, i64 %8
%10 = load i8, i8* %9
%11 = tail call i64 @tolower(i8 signext %10)
%12 = trunc i64 %11 to i8
store i8 %12, i8* %9
%13 = trunc i64 %8 to i32
%14 = icmp eq i32 %13, 0
br i1 %14, label %15, label %6
15: ; preds = %6, %1
ret void
}
/* Type definitions */
typedef int /*<<< orphan*/ uint64_t;

/* Variables and functions */
int /*<<< orphan*/ swapHalfWord(int /*<<< orphan*/);
int /*<<< orphan*/ xorWord(int /*<<< orphan*/, int /*<<< orphan*/);
void processingRound(uint64_t *wordA, uint64_t *wordB) {
  uint64_t word64;
  word64 = swapHalfWord(*wordB);
  *wordB = *wordA;
  *wordA = xorWord(*wordA, word64);
}


x86 assembly (clang, -O0):
<processingRound>:
push   %rbp
mov    %rsp,%rbp
sub    $0x20,%rsp
mov    %rdi,-0x8(%rbp)
mov    %rsi,-0x10(%rbp)
mov    -0x10(%rbp),%rax
mov    (%rax),%edi
call   1030 <swapHalfWord@plt>
mov    %eax,-0x14(%rbp)
mov    -0x8(%rbp),%rax
mov    (%rax),%ecx
mov    -0x10(%rbp),%rax
mov    %ecx,(%rax)
mov    -0x8(%rbp),%rax
mov    (%rax),%edi
mov    -0x14(%rbp),%esi
call   1040 <xorWord@plt>
mov    %eax,%ecx
mov    -0x8(%rbp),%rax
mov    %ecx,(%rax)
add    $0x20,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<processingRound>:
push   %r14
push   %rbx
push   %rax
mov    %rsi,%r14
mov    %rdi,%rbx
mov    (%rsi),%edi
call   1030 <swapHalfWord@plt>
mov    (%rbx),%ecx
mov    %ecx,(%r14)
mov    (%rbx),%edi
mov    %eax,%esi
call   1040 <xorWord@plt>
mov    %eax,(%rbx)
add    $0x8,%rsp
pop    %rbx
pop    %r14
ret

LLVM IR (-O0):
define void @processingRound(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** %4
%7 = load i32, i32* %6
%8 = call i32 @swapHalfWord(i32 %7)
store i32 %8, i32* %5
%9 = load i32*, i32** %3
%10 = load i32, i32* %9
%11 = load i32*, i32** %4
store i32 %10, i32* %11
%12 = load i32*, i32** %3
%13 = load i32, i32* %12
%14 = load i32, i32* %5
%15 = call i32 @xorWord(i32 %13, i32 %14)
%16 = load i32*, i32** %3
store i32 %15, i32* %16
ret void
}

LLVM IR (-O2):
define void @processingRound(i32* nocapture %0, i32* nocapture %1) {
%3 = load i32, i32* %1
%4 = tail call i32 @swapHalfWord(i32 %3)
%5 = load i32, i32* %0
store i32 %5, i32* %1
%6 = load i32, i32* %0
%7 = tail call i32 @xorWord(i32 %6, i32 %4)
store i32 %7, i32* %0
ret void
}
int ft_isalnum(int c) {
  if ((c >= 97 && c <= 122) || (c >= 65 && c <= 90) || (c >= 48 && c <= 57))
    return (1);
  else
    return (0);
}


x86 assembly (clang, -O0):
<ft_isalnum>:
push   %rbp
mov    %rsp,%rbp
mov    %edi,-0x8(%rbp)
cmpl   $0x61,-0x8(%rbp)
jl     111b <ft_isalnum+0x1b>
cmpl   $0x7a,-0x8(%rbp)
jle    1143 <ft_isalnum+0x43>
cmpl   $0x41,-0x8(%rbp)
jl     112f <ft_isalnum+0x2f>
cmpl   $0x5a,-0x8(%rbp)
jle    1143 <ft_isalnum+0x43>
cmpl   $0x30,-0x8(%rbp)
jl     114f <ft_isalnum+0x4f>
cmpl   $0x39,-0x8(%rbp)
jg     114f <ft_isalnum+0x4f>
movl   $0x1,-0x4(%rbp)
jmp    1156 <ft_isalnum+0x56>
movl   $0x0,-0x4(%rbp)
mov    -0x4(%rbp),%eax
pop    %rbp
ret

x86 assembly (clang, -O2):
<ft_isalnum>:
mov    %edi,%eax
and    $0xffffffdf,%eax
add    $0xffffffbf,%eax
cmp    $0x1a,%eax
setb   %al
add    $0xffffffd0,%edi
cmp    $0xa,%edi
setb   %cl
or     %al,%cl
movzbl %cl,%eax
ret

LLVM IR (-O0):
define i32 @ft_isalnum(i32 %0) {
%2 = alloca i32
%3 = alloca i32
store i32 %0, i32* %3
%4 = load i32, i32* %3
%5 = icmp sge i32 %4, 97
br i1 %5, label %6, label %9
6: ; preds = %1
%7 = load i32, i32* %3
%8 = icmp sle i32 %7, 122
br i1 %8, label %21, label %9
9: ; preds = %6, %1
%10 = load i32, i32* %3
%11 = icmp sge i32 %10, 65
br i1 %11, label %12, label %15
12: ; preds = %9
%13 = load i32, i32* %3
%14 = icmp sle i32 %13, 90
br i1 %14, label %21, label %15
15: ; preds = %12, %9
%16 = load i32, i32* %3
%17 = icmp sge i32 %16, 48
br i1 %17, label %18, label %22
18: ; preds = %15
%19 = load i32, i32* %3
%20 = icmp sle i32 %19, 57
br i1 %20, label %21, label %22
21: ; preds = %18, %12, %6
store i32 1, i32* %2
br label %23
22: ; preds = %18, %15
store i32 0, i32* %2
br label %23
23: ; preds = %22, %21
%24 = load i32, i32* %2
ret i32 %24
}

LLVM IR (-O2):
define i32 @ft_isalnum(i32 %0) {
%2 = and i32 %0, -33
%3 = add i32 %2, -65
%4 = icmp ult i32 %3, 26
%5 = add i32 %0, -48
%6 = icmp ult i32 %5, 10
%7 = or i1 %6, %4
%8 = zext i1 %7 to i32
ret i32 %8
}
/* Variables and functions */
long rand();
double geom_rand_unifd() {
  double result;
  long a, b;
  a = rand();
  b = rand();
  result = (double)(a - 1073741824) * 8388608.0 + (double)(b >> 8);
  return result;
}


x86 assembly (clang, -O0):
<geom_rand_unifd>:
push   %rbp
mov    %rsp,%rbp
sub    $0x20,%rsp
mov    $0x0,%al
call   1030 <rand@plt>
mov    %rax,-0x10(%rbp)
mov    $0x0,%al
call   1030 <rand@plt>
mov    %rax,-0x18(%rbp)
mov    -0x10(%rbp),%rax
sub    $0x40000000,%rax
cvtsi2sd %rax,%xmm0
mov    -0x18(%rbp),%rax
sar    $0x8,%rax
cvtsi2sd %rax,%xmm1
movsd  0xeae(%rip),%xmm2
mulsd  %xmm2,%xmm0
addsd  %xmm1,%xmm0
movsd  %xmm0,-0x8(%rbp)
movsd  -0x8(%rbp),%xmm0
add    $0x20,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<geom_rand_unifd>:
push   %rbx
xor    %eax,%eax
call   1030 <rand@plt>
mov    %rax,%rbx
xor    %eax,%eax
call   1030 <rand@plt>
add    $0xffffffffc0000000,%rbx
cvtsi2sd %rbx,%xmm0
sar    $0x8,%rax
cvtsi2sd %rax,%xmm1
mulsd  0xec1(%rip),%xmm0
addsd  %xmm1,%xmm0
pop    %rbx
ret

LLVM IR (-O0):
define double @geom_rand_unifd() {
%1 = alloca double
%2 = alloca i64
%3 = alloca i64
%4 = call i64 (...) @rand()
store i64 %4, i64* %2
%5 = call i64 (...) @rand()
store i64 %5, i64* %3
%6 = load i64, i64* %2
%7 = sub nsw i64 %6, 1073741824
%8 = sitofp i64 %7 to double
%9 = load i64, i64* %3
%10 = ashr i64 %9, 8
%11 = sitofp i64 %10 to double
%12 = call double @llvm.fmuladd.f64(double %8, double 0x4160000000000000, double %11)
store double %12, double* %1
%13 = load double, double* %1
ret double %13
}

LLVM IR (-O2):
define double @geom_rand_unifd() {
%1 = tail call i64 (...) @rand()
%2 = tail call i64 (...) @rand()
%3 = add nsw i64 %1, -1073741824
%4 = sitofp i64 %3 to double
%5 = ashr i64 %2, 8
%6 = sitofp i64 %5 to double
%7 = tail call double @llvm.fmuladd.f64(double %4, double 0x4160000000000000, double %6)
ret double %7
}
/* Variables and functions */
int /*<<< orphan*/ exit(int);
int /*<<< orphan*/ fflush(int /*<<< orphan*/);
int /*<<< orphan*/ printf(char *);
void *realloc(void *, size_t);
void *krealloc(void *p, size_t len, int flags) {
  void *ret;
  if ((ret = realloc(p, len)) == NULL) {
    printf("kcalloc failing!\n");
    fflush(0);
    exit(-1);
  }
  return ret;
}


x86 assembly (clang, -O0):
<krealloc>:
push   %rbp
mov    %rsp,%rbp
sub    $0x20,%rsp
mov    %rdi,-0x8(%rbp)
mov    %rsi,-0x10(%rbp)
mov    %edx,-0x14(%rbp)
mov    -0x8(%rbp),%rdi
mov    -0x10(%rbp),%rsi
call   1050 <realloc@plt>
mov    %rax,-0x20(%rbp)
cmp    $0x0,%rax
jne    118b <krealloc+0x4b>
lea    0xe8b(%rip),%rdi
call   1030 <printf@plt>
xor    %edi,%edi
call   1040 <fflush@plt>
mov    $0xffffffff,%edi
call   1060 <exit@plt>
mov    -0x20(%rbp),%rax
add    $0x20,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<krealloc>:
push   %rax
call   1050 <realloc@plt>
test   %rax,%rax
je     114d <krealloc+0xd>
pop    %rcx
ret
lea    0xeac(%rip),%rdi
call   1030 <puts@plt>
xor    %edi,%edi
call   1040 <fflush@plt>
mov    $0xffffffff,%edi
call   1060 <exit@plt>

LLVM IR (-O0):
@.str = [18 x i8] c"kcalloc failing!\0A\00"
define i8* @krealloc(i8* %0, i64 %1, i32 %2) {
%4 = alloca i8*
%5 = alloca i64
%6 = alloca i32
%7 = alloca i8*
store i8* %0, i8** %4
store i64 %1, i64* %5
store i32 %2, i32* %6
%8 = load i8*, i8** %4
%9 = load i64, i64* %5
%10 = call i8* @realloc(i8* %8, i64 %9)
store i8* %10, i8** %7
%11 = icmp eq i8* %10, null
br i1 %11, label %12, label %16
12: ; preds = %3
%13 = call i32 @printf(i8* getelementptr inbounds ([18 x i8], [18 x i8]* @.str, i64 0, i64 0))
%14 = call i32 @fflush(i32 0)
%15 = call i32 @exit(i32 -1)
unreachable
16: ; preds = %3
%17 = load i8*, i8** %7
ret i8* %17
}

LLVM IR (-O2):
@str = [17 x i8] c"kcalloc failing!\00"
define noalias i8* @krealloc(i8* nocapture %0, i64 %1, i32 %2) {
%4 = tail call i8* @realloc(i8* %0, i64 %1)
%5 = icmp eq i8* %4, null
br i1 %5, label %6, label %10
6: ; preds = %3
%7 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([17 x i8], [17 x i8]* @str, i64 0, i64 0))
%8 = tail call i32 @fflush(i32 0)
%9 = tail call i32 @exit(i32 -1)
unreachable
10: ; preds = %3
ret i8* %4
}
/* Type definitions */
struct identityinfo_body {
  int dummy;
};

/* Variables and functions */
int /*<<< orphan*/ free(struct identityinfo_body *);
void free_identityinfo(struct identityinfo_body *ii_b) { free((ii_b)); }


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

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

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

LLVM IR (-O2):
%struct.identityinfo_body = type { i32 }
define void @free_identityinfo(%struct.identityinfo_body* nocapture %0) {
%2 = tail call i32 @free(%struct.identityinfo_body* %0)
ret void
}
/* Variables and functions */
scalar_t__ sfd_isalpha(char const);
scalar_t__ sfd_isdigit(char const);
int sfd_isalnum(const char c) { return (sfd_isalpha(c) || sfd_isdigit(c)); }


x86 assembly (clang, -O0):
<sfd_isalnum>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
mov    %dil,%al
mov    %al,-0x1(%rbp)
movsbl -0x1(%rbp),%edi
call   1030 <sfd_isalpha@plt>
mov    %rax,%rcx
mov    $0x1,%al
cmp    $0x0,%rcx
mov    %al,-0x2(%rbp)
jne    115c <sfd_isalnum+0x3c>
movsbl -0x1(%rbp),%edi
call   1040 <sfd_isdigit@plt>
cmp    $0x0,%rax
setne  %al
mov    %al,-0x2(%rbp)
mov    -0x2(%rbp),%al
and    $0x1,%al
movzbl %al,%eax
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<sfd_isalnum>:
push   %rbx
mov    %edi,%ebx
call   1030 <sfd_isalpha@plt>
mov    %rax,%rcx
mov    $0x1,%eax
test   %rcx,%rcx
je     1137 <sfd_isalnum+0x17>
pop    %rbx
ret
movsbl %bl,%edi
call   1040 <sfd_isdigit@plt>
mov    %rax,%rcx
xor    %eax,%eax
test   %rcx,%rcx
setne  %al
pop    %rbx
ret

LLVM IR (-O0):
define i32 @sfd_isalnum(i8 signext %0) {
%2 = alloca i8
store i8 %0, i8* %2
%3 = load i8, i8* %2
%4 = call i64 @sfd_isalpha(i8 signext %3)
%5 = icmp ne i64 %4, 0
br i1 %5, label %10, label %6
6: ; preds = %1
%7 = load i8, i8* %2
%8 = call i64 @sfd_isdigit(i8 signext %7)
%9 = icmp ne i64 %8, 0
br label %10
10: ; preds = %6, %1
%11 = phi i1 [ true, %1 ], [ %9, %6 ]
%12 = zext i1 %11 to i32
ret i32 %12
}

LLVM IR (-O2):
define i32 @sfd_isalnum(i8 signext %0) {
%2 = tail call i64 @sfd_isalpha(i8 signext %0)
%3 = icmp eq i64 %2, 0
br i1 %3, label %4, label %8
4: ; preds = %1
%5 = tail call i64 @sfd_isdigit(i8 signext %0)
%6 = icmp ne i64 %5, 0
%7 = zext i1 %6 to i32
br label %8
8: ; preds = %4, %1
%9 = phi i32 [ 1, %1 ], [ %7, %4 ]
ret i32 %9
}
void vl_unlock_state() {}


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

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

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

LLVM IR (-O2):
define void @vl_unlock_state() {
ret void
}
void serializer_write_bool(char *dest, int *pointer, int bool_value) {
  dest[(*pointer)] = (bool_value ? 1 : 0);
  (*pointer)++;
}


x86 assembly (clang, -O0):
<serializer_write_bool>:
push   %rbp
mov    %rsp,%rbp
mov    %rdi,-0x8(%rbp)
mov    %rsi,-0x10(%rbp)
mov    %edx,-0x14(%rbp)
mov    -0x14(%rbp),%edx
xor    %eax,%eax
mov    $0x1,%ecx
cmp    $0x0,%edx
cmovne %ecx,%eax
mov    %al,%dl
mov    -0x8(%rbp),%rax
mov    -0x10(%rbp),%rcx
movslq (%rcx),%rcx
mov    %dl,(%rax,%rcx,1)
mov    -0x10(%rbp),%rax
mov    (%rax),%ecx
add    $0x1,%ecx
mov    %ecx,(%rax)
pop    %rbp
ret

x86 assembly (clang, -O2):
<serializer_write_bool>:
test   %edx,%edx
movslq (%rsi),%rax
setne  (%rdi,%rax,1)
addl   $0x1,(%rsi)
ret

LLVM IR (-O0):
define void @serializer_write_bool(i8* %0, i32* %1, i32 %2) {
%4 = alloca i8*
%5 = alloca i32*
%6 = alloca i32
store i8* %0, i8** %4
store i32* %1, i32** %5
store i32 %2, i32* %6
%7 = load i32, i32* %6
%8 = icmp ne i32 %7, 0
%9 = zext i1 %8 to i64
%10 = select i1 %8, i32 1, i32 0
%11 = trunc i32 %10 to i8
%12 = load i8*, i8** %4
%13 = load i32*, i32** %5
%14 = load i32, i32* %13
%15 = sext i32 %14 to i64
%16 = getelementptr inbounds i8, i8* %12, i64 %15
store i8 %11, i8* %16
%17 = load i32*, i32** %5
%18 = load i32, i32* %17
%19 = add nsw i32 %18, 1
store i32 %19, i32* %17
ret void
}

LLVM IR (-O2):
define void @serializer_write_bool(i8* nocapture writeonly %0, i32* nocapture %1, i32 %2) {
%4 = icmp ne i32 %2, 0
%5 = zext i1 %4 to i8
%6 = load i32, i32* %1
%7 = sext i32 %6 to i64
%8 = getelementptr inbounds i8, i8* %0, i64 %7
store i8 %5, i8* %8
%9 = load i32, i32* %1
%10 = add nsw i32 %9, 1
store i32 %10, i32* %1
ret void
}
/* Variables and functions */
int /*<<< orphan*/ close(int);
void closepipe(int *pv) {
  close(pv[0]);
  close(pv[1]);
}


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

x86 assembly (clang, -O2):
<closepipe>:
push   %rbx
mov    %rdi,%rbx
mov    (%rdi),%edi
call   1030 <close@plt>
mov    0x4(%rbx),%edi
pop    %rbx
jmp    1030 <close@plt>

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

LLVM IR (-O2):
define void @closepipe(i32* nocapture %0) {
%2 = load i32, i32* %0
%3 = tail call i32 @close(i32 %2)
%4 = getelementptr inbounds i32, i32* %0, i64 1
%5 = load i32, i32* %4
%6 = tail call i32 @close(i32 %5)
ret void
}
/* Variables and functions */
int /*<<< orphan*/ gen_call(char *);
int /*<<< orphan*/ gen_pop();
void gen_usigned_greater_than(void) {
  gen_pop();
  gen_call("_ugt");
}


x86 assembly (clang, -O0):
<gen_usigned_greater_than>:
push   %rbp
mov    %rsp,%rbp
mov    $0x0,%al
call   1030 <gen_pop@plt>
lea    0xece(%rip),%rdi
call   1040 <gen_call@plt>
pop    %rbp
ret

x86 assembly (clang, -O2):
<gen_usigned_greater_than>:
push   %rax
xor    %eax,%eax
call   1030 <gen_pop@plt>
lea    0xed1(%rip),%rdi
pop    %rax
jmp    1040 <gen_call@plt>

LLVM IR (-O0):
@.str = [5 x i8] c"_ugt\00"
define void @gen_usigned_greater_than() {
%1 = call i32 (...) @gen_pop()
%2 = call i32 @gen_call(i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str, i64 0, i64 0))
ret void
}

LLVM IR (-O2):
@.str = [5 x i8] c"_ugt\00"
define void @gen_usigned_greater_than() {
%1 = tail call i32 (...) @gen_pop()
%2 = tail call i32 @gen_call(i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str, i64 0, i64 0))
ret void
}
/* Variables and functions */
int /*<<< orphan*/ free(char *);
void t7(char **x) { free(*x); }


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

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

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

LLVM IR (-O2):
define void @t7(i8** nocapture %0) {
%2 = load i8*, i8** %0
%3 = tail call i32 @free(i8* %2)
ret void
}
int test_imm_37int64_lowword_mem(long long *val) {
  return ((*val) & (0x37 << 0)) ? -20 : -40;
}


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

x86 assembly (clang, -O2):
<test_imm_37int64_lowword_mem>:
testb  $0x37,(%rdi)
mov    $0xffffffd8,%ecx
mov    $0xffffffec,%eax
cmove  %ecx,%eax
ret

LLVM IR (-O0):
define i32 @test_imm_37int64_lowword_mem(i64* %0) {
%2 = alloca i64*
store i64* %0, i64** %2
%3 = load i64*, i64** %2
%4 = load i64, i64* %3
%5 = and i64 %4, 55
%6 = icmp ne i64 %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_37int64_lowword_mem(i64* nocapture %0) {
%2 = load i64, i64* %0
%3 = and i64 %2, 55
%4 = icmp eq i64 %3, 0
%5 = select i1 %4, i32 -40, i32 -20
ret i32 %5
}
int _init_stdio() { return 0; }


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

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

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

LLVM IR (-O2):
define i32 @_init_stdio() {
ret i32 0
}
/* Variables and functions */
int gethostname(char *, int);
int /*<<< orphan*/ perror(char *);
int /*<<< orphan*/ printf(char *, char *);
int main() {
  char a[1000];
  int e = gethostname(a, 900);
  printf("%s\n", a);
  perror("erroooooooooooooo");
  return 0;
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x400,%rsp
movl   $0x0,-0x4(%rbp)
lea    -0x3f0(%rbp),%rdi
mov    $0x384,%esi
call   1050 <gethostname@plt>
mov    %eax,-0x3f4(%rbp)
lea    -0x3f0(%rbp),%rsi
lea    0xe99(%rip),%rdi
call   1030 <printf@plt>
lea    0xe91(%rip),%rdi
call   1040 <perror@plt>
xor    %eax,%eax
add    $0x400,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %rbx
sub    $0x3f0,%rsp
mov    %rsp,%rbx
mov    %rbx,%rdi
mov    $0x384,%esi
call   1050 <gethostname@plt>
lea    0xeb1(%rip),%rdi
mov    %rbx,%rsi
call   1030 <printf@plt>
lea    0xea6(%rip),%rdi
call   1040 <perror@plt>
xor    %eax,%eax
add    $0x3f0,%rsp
pop    %rbx
ret

LLVM IR (-O0):
@.str = [4 x i8] c"%s\0A\00"
@.str.1 = [18 x i8] c"erroooooooooooooo\00"
define i32 @main() {
%1 = alloca i32
%2 = alloca [1000 x i8]
%3 = alloca i32
store i32 0, i32* %1
%4 = getelementptr inbounds [1000 x i8], [1000 x i8]* %2, i64 0, i64 0
%5 = call i32 @gethostname(i8* %4, i32 900)
store i32 %5, i32* %3
%6 = getelementptr inbounds [1000 x i8], [1000 x i8]* %2, i64 0, i64 0
%7 = call i32 @printf(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str, i64 0, i64 0), i8* %6)
%8 = call i32 @perror(i8* getelementptr inbounds ([18 x i8], [18 x i8]* @.str.1, i64 0, i64 0))
ret i32 0
}

LLVM IR (-O2):
@.str = [4 x i8] c"%s\0A\00"
@.str.1 = [18 x i8] c"erroooooooooooooo\00"
define i32 @main() {
%1 = alloca [1000 x i8]
%2 = getelementptr inbounds [1000 x i8], [1000 x i8]* %1, i64 0, i64 0
%3 = call i32 @gethostname(i8* %2, i32 900)
%4 = call i32 @printf(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str, i64 0, i64 0), i8* %2)
%5 = call i32 @perror(i8* getelementptr inbounds ([18 x i8], [18 x i8]* @.str.1, i64 0, i64 0))
ret i32 0
}
char *hash_plugin_detailed(void) {
  return ("a51 - A5/1 (GSM encryption) plugin\n"
          "------------------------\n"
          "Use this module to crack GSM Kc keys\n"
          "Input should be in form: \'frame_number:keystream\'\n"
          "Known software that uses this password hashing method:\n"
          "Most of the world :)\n"
          "\nAuthor: Milen Rangelov <gat3way@gat3way.eu>\n");
}


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

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

LLVM IR (-O0):
@.str = [269 x i8] c"a51 - A5/1 (GSM encryption) plugin\0A------------------------\0AUse this module to crack GSM Kc keys\0AInput should be in form: 'frame_number:keystream'\0AKnown software that uses this password hashing method:\0AMost of the world :)\0A\0AAuthor: Milen Rangelov <gat3way@gat3way.eu>\0A\00"
define i8* @hash_plugin_detailed() {
ret i8* getelementptr inbounds ([269 x i8], [269 x i8]* @.str, i64 0, i64 0)
}

LLVM IR (-O2):
@.str = [269 x i8] c"a51 - A5/1 (GSM encryption) plugin\0A------------------------\0AUse this module to crack GSM Kc keys\0AInput should be in form: 'frame_number:keystream'\0AKnown software that uses this password hashing method:\0AMost of the world :)\0A\0AAuthor: Milen Rangelov <gat3way@gat3way.eu>\0A\00"
define i8* @hash_plugin_detailed() {
ret i8* getelementptr inbounds ([269 x i8], [269 x i8]* @.str, i64 0, i64 0)
}
extern __attribute__((always_, gnu_, artificial, nothrow, leaf)) char *
strcpy(char *__restrict dest, const char *__restrict src) {
  return __builtin___strcpy_chk(dest, src, __builtin_object_size(dest, 2 > 1));
}


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

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

LLVM IR (-O0):
define i8* @strcpy(i8* noalias %0, i8* noalias %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 = load i8*, i8** %3
%8 = call i64 @llvm.objectsize.i64.p0i8(i8* %7, i1 false, i1 true, i1 false)
%9 = call i8* @__strcpy_chk(i8* %5, i8* %6, i64 %8)
ret i8* %9
}

LLVM IR (-O2):
define i8* @strcpy(i8* noalias returned writeonly %0, i8* noalias nocapture %1) {
%3 = tail call i8* @strcpy(i8* dereferenceable(1) %0, i8* dereferenceable(1) %1)
ret i8* %0
}
/* Variables and functions */
int /*<<< orphan*/ printf(char *, long double const);
int main(int argc, char *argv[]) {
  long double const zero = 0.0L;
  printf("%Lf\n", zero);
  long double const positive = 3.14159265358979323846264338328L;
  printf("%Lf\n", positive);
  long double const negative = -3.14159265358979323846264338328L;
  printf("%Lf\n", negative);
  return 0;
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x60,%rsp
movl   $0x0,-0x4(%rbp)
mov    %edi,-0x8(%rbp)
mov    %rsi,-0x10(%rbp)
fldz
fld    %st(0)
fstpt  -0x20(%rbp)
mov    %rsp,%rax
fstpt  (%rax)
lea    0xee7(%rip),%rdi
mov    %rdi,-0x48(%rbp)
call   1030 <printf@plt>
mov    -0x48(%rbp),%rdi
fldt   0xec4(%rip)
fld    %st(0)
fstpt  -0x30(%rbp)
mov    %rsp,%rax
fstpt  (%rax)
call   1030 <printf@plt>
fldt   0xe9f(%rip)
fstpt  -0x40(%rbp)
mov    %rsp,%rax
fldt   0xe93(%rip)
fstpt  (%rax)
lea    0xeaa(%rip),%rdi
call   1030 <printf@plt>
xor    %eax,%eax
add    $0x60,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %rbx
sub    $0x10,%rsp
fldz
fstpt  (%rsp)
lea    0xeff(%rip),%rbx
mov    %rbx,%rdi
call   1030 <printf@plt>
fldt   0xed1(%rip)
fstpt  (%rsp)
mov    %rbx,%rdi
call   1030 <printf@plt>
fldt   0xed0(%rip)
fstpt  (%rsp)
mov    %rbx,%rdi
call   1030 <printf@plt>
xor    %eax,%eax
add    $0x10,%rsp
pop    %rbx
ret

LLVM IR (-O0):
@.str = [5 x i8] c"%Lf\0A\00"
define i32 @main(i32 %0, i8** %1) {
%3 = alloca i32
%4 = alloca i32
%5 = alloca i8**
%6 = alloca x86_fp80
%7 = alloca x86_fp80
%8 = alloca x86_fp80
store i32 0, i32* %3
store i32 %0, i32* %4
store i8** %1, i8*** %5
store x86_fp80 0xK00000000000000000000, x86_fp80* %6
%9 = call i32 @printf(i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str, i64 0, i64 0), x86_fp80 0xK00000000000000000000)
store x86_fp80 0xK4000C90FDAA22168C235, x86_fp80* %7
%10 = call i32 @printf(i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str, i64 0, i64 0), x86_fp80 0xK4000C90FDAA22168C235)
store x86_fp80 0xKC000C90FDAA22168C235, x86_fp80* %8
%11 = call i32 @printf(i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str, i64 0, i64 0), x86_fp80 0xKC000C90FDAA22168C235)
ret i32 0
}

LLVM IR (-O2):
@.str = [5 x i8] c"%Lf\0A\00"
define i32 @main(i32 %0, i8** nocapture readnone %1) {
%3 = tail call i32 @printf(i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str, i64 0, i64 0), x86_fp80 0xK00000000000000000000)
%4 = tail call i32 @printf(i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str, i64 0, i64 0), x86_fp80 0xK4000C90FDAA22168C235)
%5 = tail call i32 @printf(i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str, i64 0, i64 0), x86_fp80 0xKC000C90FDAA22168C235)
ret i32 0
}
strupr(p) char *p;
{
  while (*p != '\0') {
    *p = toupper(*p);
    p++;
  }
}


x86 assembly (clang, -O0):
<strupr>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
mov    %rdi,-0x10(%rbp)
mov    -0x10(%rbp),%rax
movsbl (%rax),%eax
cmp    $0x0,%eax
je     1151 <strupr+0x41>
mov    -0x10(%rbp),%rax
movsbl (%rax),%edi
call   1030 <toupper@plt>
mov    %al,%cl
mov    -0x10(%rbp),%rax
mov    %cl,(%rax)
mov    -0x10(%rbp),%rax
add    $0x1,%rax
mov    %rax,-0x10(%rbp)
jmp    111c <strupr+0xc>
mov    -0x4(%rbp),%eax
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<strupr>:
push   %rbx
mov    (%rdi),%al
test   %al,%al
je     1136 <strupr+0x26>
mov    %rdi,%rbx
add    $0x1,%rbx
xchg   %ax,%ax
movsbl %al,%edi
call   1030 <toupper@plt>
mov    %al,-0x1(%rbx)
movzbl (%rbx),%eax
add    $0x1,%rbx
test   %al,%al
jne    1120 <strupr+0x10>
pop    %rbx
ret

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

LLVM IR (-O2):
define i32 @strupr(i8* nocapture %0) {
%2 = load i8, i8* %0
%3 = icmp eq i8 %2, 0
br i1 %3, label %13, label %4
4: ; preds = %1, %4
%5 = phi i8 [ %11, %4 ], [ %2, %1 ]
%6 = phi i8* [ %10, %4 ], [ %0, %1 ]
%7 = sext i8 %5 to i32
%8 = tail call i32 @toupper(i32 %7)
%9 = trunc i32 %8 to i8
store i8 %9, i8* %6
%10 = getelementptr inbounds i8, i8* %6, i64 1
%11 = load i8, i8* %10
%12 = icmp eq i8 %11, 0
br i1 %12, label %13, label %4
13: ; preds = %4, %1
ret i32 undef
}
/* Type definitions */
typedef scalar_t__ const uint32_t;

/* Variables and functions */
const uint32_t *find_uint32_t(const uint32_t *it, const uint32_t *end,
                              uint32_t val) {
  while (it != end) {
    if (*it == val)
      return it;
    ++it;
  }
  return 0;
}


x86 assembly (clang, -O0):
<find_uint32_t>:
push   %rbp
mov    %rsp,%rbp
mov    %rdi,-0x10(%rbp)
mov    %rsi,-0x18(%rbp)
mov    %rdx,-0x20(%rbp)
mov    -0x10(%rbp),%rax
cmp    -0x18(%rbp),%rax
je     114d <find_uint32_t+0x4d>
mov    -0x10(%rbp),%rax
mov    (%rax),%rax
cmp    -0x20(%rbp),%rax
jne    113c <find_uint32_t+0x3c>
mov    -0x10(%rbp),%rax
mov    %rax,-0x8(%rbp)
jmp    1155 <find_uint32_t+0x55>
mov    -0x10(%rbp),%rax
add    $0x8,%rax
mov    %rax,-0x10(%rbp)
jmp    1110 <find_uint32_t+0x10>
movq   $0x0,-0x8(%rbp)
mov    -0x8(%rbp),%rax
pop    %rbp
ret

x86 assembly (clang, -O2):
<find_uint32_t>:
cmp    %rsi,%rdi
je     111e <find_uint32_t+0x1e>
mov    %rdi,%rax
nopl   0x0(%rax,%rax,1)
cmp    %rdx,(%rax)
je     1120 <find_uint32_t+0x20>
add    $0x8,%rax
cmp    %rsi,%rax
jne    1110 <find_uint32_t+0x10>
xor    %eax,%eax
ret

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

LLVM IR (-O2):
define i64* @find_uint32_t(i64* %0, i64* readnone %1, i64 %2) {
%4 = icmp eq i64* %0, %1
br i1 %4, label %12, label %5
5: ; preds = %3, %9
%6 = phi i64* [ %10, %9 ], [ %0, %3 ]
%7 = load i64, i64* %6
%8 = icmp eq i64 %7, %2
br i1 %8, label %12, label %9
9: ; preds = %5
%10 = getelementptr inbounds i64, i64* %6, i64 1
%11 = icmp eq i64* %10, %1
br i1 %11, label %12, label %5
12: ; preds = %5, %9, %3
%13 = phi i64* [ null, %3 ], [ null, %9 ], [ %6, %5 ]
ret i64* %13
}
void runnable_destroy(void *_this) { ((void)(_this)); }


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

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

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

LLVM IR (-O2):
define void @runnable_destroy(i8* nocapture %0) {
ret void
}
/* Variables and functions */
int /*<<< orphan*/ api_end();
int /*<<< orphan*/ api_putchar(char);
void HariMain(void) {
  api_putchar('H');
  api_putchar('e');
  api_putchar('l');
  api_putchar('l');
  api_putchar('o');
  api_end();
}


x86 assembly (clang, -O0):
<HariMain>:
push   %rbp
mov    %rsp,%rbp
mov    $0x48,%edi
call   1040 <api_putchar@plt>
mov    $0x65,%edi
call   1040 <api_putchar@plt>
mov    $0x6c,%edi
call   1040 <api_putchar@plt>
mov    $0x6c,%edi
call   1040 <api_putchar@plt>
mov    $0x6f,%edi
call   1040 <api_putchar@plt>
mov    $0x0,%al
call   1030 <api_end@plt>
pop    %rbp
ret

x86 assembly (clang, -O2):
<HariMain>:
push   %rax
mov    $0x48,%edi
call   1040 <api_putchar@plt>
mov    $0x65,%edi
call   1040 <api_putchar@plt>
mov    $0x6c,%edi
call   1040 <api_putchar@plt>
mov    $0x6c,%edi
call   1040 <api_putchar@plt>
mov    $0x6f,%edi
call   1040 <api_putchar@plt>
xor    %eax,%eax
pop    %rcx
jmp    1030 <api_end@plt>

LLVM IR (-O0):
define void @HariMain() {
%1 = call i32 @api_putchar(i8 signext 72)
%2 = call i32 @api_putchar(i8 signext 101)
%3 = call i32 @api_putchar(i8 signext 108)
%4 = call i32 @api_putchar(i8 signext 108)
%5 = call i32 @api_putchar(i8 signext 111)
%6 = call i32 (...) @api_end()
ret void
}

LLVM IR (-O2):
define void @HariMain() {
%1 = tail call i32 @api_putchar(i8 signext 72)
%2 = tail call i32 @api_putchar(i8 signext 101)
%3 = tail call i32 @api_putchar(i8 signext 108)
%4 = tail call i32 @api_putchar(i8 signext 108)
%5 = tail call i32 @api_putchar(i8 signext 111)
%6 = tail call i32 (...) @api_end()
ret void
}
/* Variables and functions */
int isPalindrome(char *);
int /*<<< orphan*/ printf(char *, int);
int /*<<< orphan*/ scanf(char *, char *);
int main() {
  char str[1000];
  scanf("%s", str);
  printf("%d", isPalindrome(str));
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x3f0,%rsp
lea    -0x3f0(%rbp),%rsi
lea    0xeb7(%rip),%rdi
call   1050 <scanf@plt>
lea    -0x3f0(%rbp),%rdi
call   1040 <isPalindrome@plt>
mov    %eax,%esi
lea    0xea0(%rip),%rdi
call   1030 <printf@plt>
xor    %eax,%eax
add    $0x3f0,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %rbx
sub    $0x3f0,%rsp
lea    0xec1(%rip),%rdi
mov    %rsp,%rbx
mov    %rbx,%rsi
call   1050 <scanf@plt>
mov    %rbx,%rdi
call   1040 <isPalindrome@plt>
lea    0xeaa(%rip),%rdi
mov    %eax,%esi
call   1030 <printf@plt>
xor    %eax,%eax
add    $0x3f0,%rsp
pop    %rbx
ret

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

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