xunge/DecIR huggingface dataset:
void gtk_tree_sortable_sort_column_changed() {}


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

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

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

LLVM IR (-O2):
define void @gtk_tree_sortable_sort_column_changed() {
ret void
}
unsigned xrop3_78_1_1(unsigned char s, unsigned char t) {
  unsigned D = 0x00ff;
  unsigned S = ((unsigned)s << 8) | s;
  unsigned T = ((unsigned)t << 8) | t;
  unsigned stk1;
  unsigned stk2;
  unsigned stk3;
  stk3 = S ^ T;
  stk2 = D | stk3;
  stk1 = T ^ stk2;
  return (stk1 & (~S) & (~T)) | (D & S) | (D & T);
}


x86 assembly (clang, -O0):
<xrop3_78_1_1>:
push   %rbp
mov    %rsp,%rbp
mov    %sil,%al
mov    %dil,%cl
mov    %cl,-0x1(%rbp)
mov    %al,-0x2(%rbp)
movl   $0xff,-0x8(%rbp)
movzbl -0x1(%rbp),%eax
shl    $0x8,%eax
movzbl -0x1(%rbp),%ecx
or     %ecx,%eax
mov    %eax,-0xc(%rbp)
movzbl -0x2(%rbp),%eax
shl    $0x8,%eax
movzbl -0x2(%rbp),%ecx
or     %ecx,%eax
mov    %eax,-0x10(%rbp)
mov    -0xc(%rbp),%eax
xor    -0x10(%rbp),%eax
mov    %eax,-0x1c(%rbp)
mov    -0x8(%rbp),%eax
or     -0x1c(%rbp),%eax
mov    %eax,-0x18(%rbp)
mov    -0x10(%rbp),%eax
xor    -0x18(%rbp),%eax
mov    %eax,-0x14(%rbp)
mov    -0x14(%rbp),%eax
mov    -0xc(%rbp),%ecx
xor    $0xffffffff,%ecx
and    %ecx,%eax
mov    -0x10(%rbp),%ecx
xor    $0xffffffff,%ecx
and    %ecx,%eax
mov    -0x8(%rbp),%ecx
and    -0xc(%rbp),%ecx
or     %ecx,%eax
mov    -0x8(%rbp),%ecx
and    -0x10(%rbp),%ecx
or     %ecx,%eax
pop    %rbp
ret

x86 assembly (clang, -O2):
<xrop3_78_1_1>:
mov    %esi,%ecx
or     %edi,%esi
mov    %edi,%eax
shl    $0x8,%eax
shl    $0x8,%ecx
mov    %ecx,%edx
xor    %eax,%edx
or     $0xff,%edx
or     %esi,%eax
or     %ecx,%eax
not    %eax
and    %edx,%eax
or     %esi,%eax
ret

LLVM IR (-O0):
define i32 @xrop3_78_1_1(i8 zeroext %0, i8 zeroext %1) {
%3 = alloca i8
%4 = alloca i8
%5 = alloca i32
%6 = alloca i32
%7 = alloca i32
%8 = alloca i32
%9 = alloca i32
%10 = alloca i32
store i8 %0, i8* %3
store i8 %1, i8* %4
store i32 255, i32* %5
%11 = load i8, i8* %3
%12 = zext i8 %11 to i32
%13 = shl i32 %12, 8
%14 = load i8, i8* %3
%15 = zext i8 %14 to i32
%16 = or i32 %13, %15
store i32 %16, i32* %6
%17 = load i8, i8* %4
%18 = zext i8 %17 to i32
%19 = shl i32 %18, 8
%20 = load i8, i8* %4
%21 = zext i8 %20 to i32
%22 = or i32 %19, %21
store i32 %22, i32* %7
%23 = load i32, i32* %6
%24 = load i32, i32* %7
%25 = xor i32 %23, %24
store i32 %25, i32* %10
%26 = load i32, i32* %5
%27 = load i32, i32* %10
%28 = or i32 %26, %27
store i32 %28, i32* %9
%29 = load i32, i32* %7
%30 = load i32, i32* %9
%31 = xor i32 %29, %30
store i32 %31, i32* %8
%32 = load i32, i32* %8
%33 = load i32, i32* %6
%34 = xor i32 %33, -1
%35 = and i32 %32, %34
%36 = load i32, i32* %7
%37 = xor i32 %36, -1
%38 = and i32 %35, %37
%39 = load i32, i32* %5
%40 = load i32, i32* %6
%41 = and i32 %39, %40
%42 = or i32 %38, %41
%43 = load i32, i32* %5
%44 = load i32, i32* %7
%45 = and i32 %43, %44
%46 = or i32 %42, %45
ret i32 %46
}

LLVM IR (-O2):
define i32 @xrop3_78_1_1(i8 zeroext %0, i8 zeroext %1) {
%3 = zext i8 %0 to i32
%4 = shl nuw nsw i32 %3, 8
%5 = zext i8 %1 to i32
%6 = shl nuw nsw i32 %5, 8
%7 = xor i32 %6, %4
%8 = or i32 %7, 255
%9 = or i8 %1, %0
%10 = zext i8 %9 to i32
%11 = or i32 %4, %10
%12 = or i32 %11, %6
%13 = xor i32 %12, -1
%14 = and i32 %8, %13
%15 = or i32 %14, %10
ret i32 %15
}
void ff_hevc_put_hevc_uni_w_epel_hv12_8_sse4() {}


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

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

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

LLVM IR (-O2):
define void @ff_hevc_put_hevc_uni_w_epel_hv12_8_sse4() {
ret void
}
/* Type definitions */
typedef int /*<<< orphan*/ FILE;

/* Variables and functions */
int /*<<< orphan*/ Throw_error(char *);
int fread(char *, int, int, int /*<<< orphan*/ *);
void encoding_load_from_file(char target[256], FILE *stream) {
  if (fread(target, sizeof(char), 256, stream) != 256)
    Throw_error("Conversion table incomplete.");
}


x86 assembly (clang, -O0):
<encoding_load_from_file>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
mov    %rdi,-0x8(%rbp)
mov    %rsi,-0x10(%rbp)
mov    -0x8(%rbp),%rdi
mov    -0x10(%rbp),%rcx
mov    $0x1,%esi
mov    $0x100,%edx
call   1030 <fread@plt>
cmp    $0x100,%eax
je     115e <encoding_load_from_file+0x3e>
lea    0xea7(%rip),%rdi
call   1040 <Throw_error@plt>
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<encoding_load_from_file>:
push   %rax
mov    %rsi,%rcx
mov    $0x1,%esi
mov    $0x100,%edx
call   1030 <fread@plt>
cmp    $0x100,%eax
jne    113c <encoding_load_from_file+0x1c>
pop    %rax
ret
lea    0xebd(%rip),%rdi
pop    %rax
jmp    1040 <Throw_error@plt>

LLVM IR (-O0):
@.str = [29 x i8] c"Conversion table incomplete.\00"
define void @encoding_load_from_file(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 i32 @fread(i8* %5, i32 1, i32 256, i32* %6)
%8 = icmp ne i32 %7, 256
br i1 %8, label %9, label %11
9: ; preds = %2
%10 = call i32 @Throw_error(i8* getelementptr inbounds ([29 x i8], [29 x i8]* @.str, i64 0, i64 0))
br label %11
11: ; preds = %9, %2
ret void
}

LLVM IR (-O2):
@.str = [29 x i8] c"Conversion table incomplete.\00"
define void @encoding_load_from_file(i8* nocapture %0, i32* nocapture %1) {
%3 = tail call i32 @fread(i8* %0, i32 1, i32 256, i32* %1)
%4 = icmp eq i32 %3, 256
br i1 %4, label %7, label %5
5: ; preds = %2
%6 = tail call i32 @Throw_error(i8* getelementptr inbounds ([29 x i8], [29 x i8]* @.str, i64 0, i64 0))
br label %7
7: ; preds = %5, %2
ret void
}
/* Variables and functions */
int /*<<< orphan*/ m68ki_push_32(unsigned int);
scalar_t__ m68ki_read_imm_16();
void m68k_op_pea_32_aw(void) {
  unsigned int ea = (signed short)(m68ki_read_imm_16());
  m68ki_push_32(ea);
}


x86 assembly (clang, -O0):
<m68k_op_pea_32_aw>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
mov    $0x0,%al
call   1030 <m68ki_read_imm_16@plt>
cwtl
mov    %eax,-0x4(%rbp)
mov    -0x4(%rbp),%edi
call   1040 <m68ki_push_32@plt>
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<m68k_op_pea_32_aw>:
push   %rax
xor    %eax,%eax
call   1030 <m68ki_read_imm_16@plt>
movswl %ax,%edi
pop    %rax
jmp    1040 <m68ki_push_32@plt>

LLVM IR (-O0):
define void @m68k_op_pea_32_aw() {
%1 = alloca i32
%2 = call i64 (...) @m68ki_read_imm_16()
%3 = trunc i64 %2 to i16
%4 = sext i16 %3 to i32
store i32 %4, i32* %1
%5 = load i32, i32* %1
%6 = call i32 @m68ki_push_32(i32 %5)
ret void
}

LLVM IR (-O2):
define void @m68k_op_pea_32_aw() {
%1 = tail call i64 (...) @m68ki_read_imm_16()
%2 = trunc i64 %1 to i32
%3 = shl i32 %2, 16
%4 = ashr exact i32 %3, 16
%5 = tail call i32 @m68ki_push_32(i32 %4)
ret void
}
void initLED(void) {
  (*(volatile unsigned long *)(0x7F008820)) =
      ((*(volatile unsigned long *)(0x7F008820)) & 0xFFFF0000) | 0x00001111;
  (*(volatile unsigned long *)(0x7F008828)) &= 0xFFFFFF00;
  (*(volatile unsigned long *)(0x7F008824)) |= 0x0000000F;
  return;
}


x86 assembly (clang, -O0):
<initLED>:
push   %rbp
mov    %rsp,%rbp
mov    $0x7f008820,%eax
mov    (%rax),%rcx
movabs $0xffff0000,%rax
and    %rax,%rcx
or     $0x1111,%rcx
mov    $0x7f008820,%eax
mov    %rcx,(%rax)
mov    $0x7f008828,%eax
mov    (%rax),%rcx
movabs $0xffffff00,%rax
and    %rax,%rcx
mov    $0x7f008828,%eax
mov    %rcx,(%rax)
mov    $0x7f008824,%eax
mov    (%rax),%rcx
or     $0xf,%rcx
mov    $0x7f008824,%eax
mov    %rcx,(%rax)
pop    %rbp
ret

x86 assembly (clang, -O2):
<initLED>:
mov    0x7f008820,%rax
7f
and    $0xffff0000,%eax
or     $0x1111,%rax
mov    %rax,0x7f008820
7f
mov    $0xffffff00,%eax
and    %rax,0x7f008828
7f
orq    $0xf,0x7f008824
7f 0f
ret

LLVM IR (-O0):
define void @initLED() {
%1 = load volatile i64, i64* inttoptr (i64 2130741280 to i64*)
%2 = and i64 %1, 4294901760
%3 = or i64 %2, 4369
store volatile i64 %3, i64* inttoptr (i64 2130741280 to i64*)
%4 = load volatile i64, i64* inttoptr (i64 2130741288 to i64*)
%5 = and i64 %4, 4294967040
store volatile i64 %5, i64* inttoptr (i64 2130741288 to i64*)
%6 = load volatile i64, i64* inttoptr (i64 2130741284 to i64*)
%7 = or i64 %6, 15
store volatile i64 %7, i64* inttoptr (i64 2130741284 to i64*)
ret void
}

LLVM IR (-O2):
define void @initLED() {
%1 = load volatile i64, i64* inttoptr (i64 2130741280 to i64*)
%2 = and i64 %1, 4294901760
%3 = or i64 %2, 4369
store volatile i64 %3, i64* inttoptr (i64 2130741280 to i64*)
%4 = load volatile i64, i64* inttoptr (i64 2130741288 to i64*)
%5 = and i64 %4, 4294967040
store volatile i64 %5, i64* inttoptr (i64 2130741288 to i64*)
%6 = load volatile i64, i64* inttoptr (i64 2130741284 to i64*)
%7 = or i64 %6, 15
store volatile i64 %7, i64* inttoptr (i64 2130741284 to i64*)
ret void
}
void init_field(double *p) { *p = 42; }


x86 assembly (clang, -O0):
<init_field>:
push   %rbp
mov    %rsp,%rbp
mov    %rdi,-0x8(%rbp)
mov    -0x8(%rbp),%rax
movsd  0xeec(%rip),%xmm0
movsd  %xmm0,(%rax)
pop    %rbp
ret

x86 assembly (clang, -O2):
<init_field>:
movabs $0x4045000000000000,%rax
mov    %rax,(%rdi)
ret

LLVM IR (-O0):
define void @init_field(double* %0) {
%2 = alloca double*
store double* %0, double** %2
%3 = load double*, double** %2
store double 4.200000e+01, double* %3
ret void
}

LLVM IR (-O2):
define void @init_field(double* nocapture writeonly %0) {
store double 4.200000e+01, double* %0
ret void
}
long int ti_build() { return 1537377628; }


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

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

LLVM IR (-O0):
define i64 @ti_build() {
ret i64 1537377628
}

LLVM IR (-O2):
define i64 @ti_build() {
ret i64 1537377628
}
double _orbita_models_homogeneous_sphere_Mt(const void *par) {
  double a = ((double *)par)[1], rho_0 = ((double *)par)[0];
  return (4. / 3.) * (3.14159265358979323846264338327950288419716939937510) *
         rho_0 * ((a) * (a) * (a));
}


x86 assembly (clang, -O0):
<_orbita_models_homogeneous_sphere_Mt>:
push   %rbp
mov    %rsp,%rbp
mov    %rdi,-0x8(%rbp)
mov    -0x8(%rbp),%rax
movsd  0x8(%rax),%xmm0
movsd  %xmm0,-0x10(%rbp)
mov    -0x8(%rbp),%rax
movsd  (%rax),%xmm0
movsd  %xmm0,-0x18(%rbp)
movsd  0xed5(%rip),%xmm0
mulsd  -0x18(%rbp),%xmm0
movsd  -0x10(%rbp),%xmm1
mulsd  -0x10(%rbp),%xmm1
mulsd  -0x10(%rbp),%xmm1
mulsd  %xmm1,%xmm0
pop    %rbp
ret

x86 assembly (clang, -O2):
<_orbita_models_homogeneous_sphere_Mt>:
movsd  (%rdi),%xmm1
mulsd  0xef4(%rip),%xmm1
movsd  0x8(%rdi),%xmm2
movapd %xmm2,%xmm0
mulsd  %xmm2,%xmm0
mulsd  %xmm2,%xmm0
mulsd  %xmm1,%xmm0
ret

LLVM IR (-O0):
define double @_orbita_models_homogeneous_sphere_Mt(i8* %0) {
%2 = alloca i8*
%3 = alloca double
%4 = alloca double
store i8* %0, i8** %2
%5 = load i8*, i8** %2
%6 = bitcast i8* %5 to double*
%7 = getelementptr inbounds double, double* %6, i64 1
%8 = load double, double* %7
store double %8, double* %3
%9 = load i8*, i8** %2
%10 = bitcast i8* %9 to double*
%11 = getelementptr inbounds double, double* %10, i64 0
%12 = load double, double* %11
store double %12, double* %4
%13 = load double, double* %4
%14 = fmul double 0x4010C152382D7365, %13
%15 = load double, double* %3
%16 = load double, double* %3
%17 = fmul double %15, %16
%18 = load double, double* %3
%19 = fmul double %17, %18
%20 = fmul double %14, %19
ret double %20
}

LLVM IR (-O2):
define double @_orbita_models_homogeneous_sphere_Mt(i8* nocapture %0) {
%2 = bitcast i8* %0 to double*
%3 = getelementptr inbounds i8, i8* %0, i64 8
%4 = bitcast i8* %3 to double*
%5 = load double, double* %4
%6 = load double, double* %2
%7 = fmul double %6, 0x4010C152382D7365
%8 = fmul double %5, %5
%9 = fmul double %5, %8
%10 = fmul double %7, %9
ret double %10
}
/* Variables and functions */
scalar_t__ random();
void *rand_value_vp(void) { return (void *)random(); }


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

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

LLVM IR (-O0):
define i8* @rand_value_vp() {
%1 = call i64 (...) @random()
%2 = inttoptr i64 %1 to i8*
ret i8* %2
}

LLVM IR (-O2):
define i8* @rand_value_vp() {
%1 = tail call i64 (...) @random()
%2 = inttoptr i64 %1 to i8*
ret i8* %2
}
/* Type definitions */
typedef int /*<<< orphan*/ XTextProperty;

/* Variables and functions */
int /*<<< orphan*/ abort();
scalar_t__ malloc(int);
void *alloc_XTextProperty(void) {
  XTextProperty *_p = (XTextProperty *)malloc(sizeof(XTextProperty));
  if (_p == NULL)
    abort();
  return (void *)_p;
}


x86 assembly (clang, -O0):
<alloc_XTextProperty>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
mov    $0x4,%edi
call   1040 <malloc@plt>
mov    %rax,-0x8(%rbp)
cmpq   $0x0,-0x8(%rbp)
jne    1148 <alloc_XTextProperty+0x28>
mov    $0x0,%al
call   1030 <abort@plt>
mov    -0x8(%rbp),%rax
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<alloc_XTextProperty>:
push   %rax
mov    $0x4,%edi
call   1040 <malloc@plt>
test   %rax,%rax
je     1132 <alloc_XTextProperty+0x12>
pop    %rcx
ret
xor    %eax,%eax
call   1030 <abort@plt>

LLVM IR (-O0):
define i8* @alloc_XTextProperty() {
%1 = alloca i32*
%2 = call i64 @malloc(i32 4)
%3 = inttoptr i64 %2 to i32*
store i32* %3, i32** %1
%4 = load i32*, i32** %1
%5 = icmp eq i32* %4, null
br i1 %5, label %6, label %8
6: ; preds = %0
%7 = call i32 (...) @abort()
unreachable
8: ; preds = %0
%9 = load i32*, i32** %1
%10 = bitcast i32* %9 to i8*
ret i8* %10
}

LLVM IR (-O2):
define i8* @alloc_XTextProperty() {
%1 = tail call i64 @malloc(i32 4)
%2 = icmp eq i64 %1, 0
br i1 %2, label %3, label %5
3: ; preds = %0
%4 = tail call i32 (...) @abort()
unreachable
5: ; preds = %0
%6 = inttoptr i64 %1 to i8*
ret i8* %6
}
__attribute__((no, noclone)) int f7(void *a, int b, long long c, long long d,
                                    long long e, double *f, int *g) {
  asm volatile("" : : "r"(a), "r"(b), "r"(c), "r"(d) : "memory");
  asm volatile("" : : "r"(e), "r"(f), "r"(g) : "memory");
  return 0;
}


x86 assembly (clang, -O0):
<f7>:
push   %rbp
mov    %rsp,%rbp
mov    0x10(%rbp),%rax
mov    %rdi,-0x8(%rbp)
mov    %esi,-0xc(%rbp)
mov    %rdx,-0x18(%rbp)
mov    %rcx,-0x20(%rbp)
mov    %r8,-0x28(%rbp)
mov    %r9,-0x30(%rbp)
mov    -0x8(%rbp),%rax
mov    -0xc(%rbp),%ecx
mov    -0x18(%rbp),%rdx
mov    -0x20(%rbp),%rsi
mov    -0x28(%rbp),%rax
mov    -0x30(%rbp),%rcx
mov    0x10(%rbp),%rdx
xor    %eax,%eax
pop    %rbp
ret

x86 assembly (clang, -O2):
<f7>:
mov    0x8(%rsp),%rax
xor    %eax,%eax
ret

LLVM IR (-O0):
define i32 @f7(i8* %0, i32 %1, i64 %2, i64 %3, i64 %4, double* %5, i32* %6) {
%8 = alloca i8*
%9 = alloca i32
%10 = alloca i64
%11 = alloca i64
%12 = alloca i64
%13 = alloca double*
%14 = alloca i32*
store i8* %0, i8** %8
store i32 %1, i32* %9
store i64 %2, i64* %10
store i64 %3, i64* %11
store i64 %4, i64* %12
store double* %5, double** %13
store i32* %6, i32** %14
%15 = load i8*, i8** %8
%16 = load i32, i32* %9
%17 = load i64, i64* %10
%18 = load i64, i64* %11
%19 = load i64, i64* %12
%20 = load double*, double** %13
%21 = load i32*, i32** %14
ret i32 0
}

LLVM IR (-O2):
define i32 @f7(i8* %0, i32 %1, i64 %2, i64 %3, i64 %4, double* %5, i32* %6) {
tail call void asm sideeffect "", "r,r,r,r,~{memory},~{dirflag},~{fpsr},~{flags}"(i8* %0, i32 %1, i64 %2, i64 %3)
tail call void asm sideeffect "", "r,r,r,~{memory},~{dirflag},~{fpsr},~{flags}"(i64 %4, double* %5, i32* %6)
ret i32 0
}
/* Variables and functions */
int /*<<< orphan*/ fprintf(int /*<<< orphan*/, char *, int, char const *,
                           char const *, int);
int /*<<< orphan*/ stderr;
int PrintFrame(int frame, const char *func, const char *file, int line) {
  fprintf(stderr, "Stack frame %d in %s() at %s:%d\n", frame, func, file, line);
  return 0;
}


x86 assembly (clang, -O0):
<PrintFrame>:
push   %rbp
mov    %rsp,%rbp
sub    $0x20,%rsp
mov    %edi,-0x4(%rbp)
mov    %rsi,-0x10(%rbp)
mov    %rdx,-0x18(%rbp)
mov    %ecx,-0x1c(%rbp)
mov    0x2eb3(%rip),%rax
mov    (%rax),%edi
mov    -0x4(%rbp),%edx
mov    -0x10(%rbp),%rcx
mov    -0x18(%rbp),%r8
mov    -0x1c(%rbp),%r9d
lea    0xebb(%rip),%rsi
call   1030 <fprintf@plt>
xor    %eax,%eax
add    $0x20,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<PrintFrame>:
push   %rax
mov    %ecx,%r9d
mov    %rdx,%r8
mov    %rsi,%rcx
mov    %edi,%edx
mov    0x2ebd(%rip),%rax
mov    (%rax),%edi
lea    0xed4(%rip),%rsi
call   1030 <fprintf@plt>
xor    %eax,%eax
pop    %rcx
ret

LLVM IR (-O0):
@stderr = global i32 0
@.str = [33 x i8] c"Stack frame %d in %s() at %s:%d\0A\00"
define i32 @PrintFrame(i32 %0, i8* %1, i8* %2, i32 %3) {
%5 = alloca i32
%6 = alloca i8*
%7 = alloca i8*
%8 = alloca i32
store i32 %0, i32* %5
store i8* %1, i8** %6
store i8* %2, i8** %7
store i32 %3, i32* %8
%9 = load i32, i32* @stderr
%10 = load i32, i32* %5
%11 = load i8*, i8** %6
%12 = load i8*, i8** %7
%13 = load i32, i32* %8
%14 = call i32 @fprintf(i32 %9, i8* getelementptr inbounds ([33 x i8], [33 x i8]* @.str, i64 0, i64 0), i32 %10, i8* %11, i8* %12, i32 %13)
ret i32 0
}

LLVM IR (-O2):
@stderr = global i32 0
@.str = [33 x i8] c"Stack frame %d in %s() at %s:%d\0A\00"
define i32 @PrintFrame(i32 %0, i8* %1, i8* %2, i32 %3) {
%5 = load i32, i32* @stderr
%6 = tail call i32 @fprintf(i32 %5, i8* getelementptr inbounds ([33 x i8], [33 x i8]* @.str, i64 0, i64 0), i32 %0, i8* %1, i8* %2, i32 %3)
ret i32 0
}
void ble_rsp_system_whitelist_clear(const void *nul) {}


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

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

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

LLVM IR (-O2):
define void @ble_rsp_system_whitelist_clear(i8* nocapture %0) {
ret void
}
/* Variables and functions */
int /*<<< orphan*/ printf(char *, char *);
void PrintHello() {
  printf("%s\n", "Hello World!");
  return;
}


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

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

LLVM IR (-O0):
@.str = [4 x i8] c"%s\0A\00"
@.str.1 = [13 x i8] c"Hello World!\00"
define void @PrintHello() {
%1 = call i32 @printf(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str, i64 0, i64 0), i8* getelementptr inbounds ([13 x i8], [13 x i8]* @.str.1, i64 0, i64 0))
ret void
}

LLVM IR (-O2):
@.str = [4 x i8] c"%s\0A\00"
@.str.1 = [13 x i8] c"Hello World!\00"
define void @PrintHello() {
%1 = tail call i32 @printf(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str, i64 0, i64 0), i8* getelementptr inbounds ([13 x i8], [13 x i8]* @.str.1, i64 0, i64 0))
ret void
}
unsigned int _check_times(unsigned x, unsigned y) {
  unsigned long long whole_ans =
      ((unsigned long long)x) * ((unsigned long long)y);
  unsigned word_ans = (unsigned)whole_ans;
  if (word_ans < whole_ans || word_ans > (1 << 28))
    (_throw_badalloc_fn(
        "/scratch/repos/new/home/jordi_armengol_estape/c-scraper/outputs/"
        "2022-01-22/02-19-57/repos/FauxFaux/cyclone/refs/heads/master/bin/"
        "genfiles/remove_aggregates.c",
        284));
  return word_ans;
}


x86 assembly (clang, -O0):
<_check_times>:
push   %rbp
mov    %rsp,%rbp
sub    $0x20,%rsp
mov    %edi,-0x4(%rbp)
mov    %esi,-0x8(%rbp)
mov    -0x4(%rbp),%eax
mov    -0x8(%rbp),%ecx
imul   %rcx,%rax
mov    %rax,-0x10(%rbp)
mov    -0x10(%rbp),%rax
mov    %eax,-0x14(%rbp)
mov    -0x14(%rbp),%eax
cmp    -0x10(%rbp),%rax
jb     114d <_check_times+0x3d>
cmpl   $0x10000000,-0x14(%rbp)
jbe    1160 <_check_times+0x50>
lea    0xeac(%rip),%rdi
mov    $0x11c,%esi
mov    $0x0,%al
call   1030 <_throw_badalloc_fn@plt>
mov    -0x14(%rbp),%eax
add    $0x20,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<_check_times>:
push   %rbx
mov    %edi,%eax
mul    %esi
mov    %eax,%ebx
jo     1121 <_check_times+0x11>
cmp    $0x10000001,%ebx
jb     1134 <_check_times+0x24>
lea    0xed8(%rip),%rdi
mov    $0x11c,%esi
xor    %eax,%eax
call   1030 <_throw_badalloc_fn@plt>
mov    %ebx,%eax
pop    %rbx
ret

LLVM IR (-O0):
@.str = [158 x i8] c"/scratch/repos/new/home/jordi_armengol_estape/c-scraper/outputs/2022-01-22/02-19-57/repos/FauxFaux/cyclone/refs/heads/master/bin/genfiles/remove_aggregates.c\00"
define i32 @_check_times(i32 %0, i32 %1) {
%3 = alloca i32
%4 = alloca i32
%5 = alloca i64
%6 = alloca i32
store i32 %0, i32* %3
store i32 %1, i32* %4
%7 = load i32, i32* %3
%8 = zext i32 %7 to i64
%9 = load i32, i32* %4
%10 = zext i32 %9 to i64
%11 = mul i64 %8, %10
store i64 %11, i64* %5
%12 = load i64, i64* %5
%13 = trunc i64 %12 to i32
store i32 %13, i32* %6
%14 = load i32, i32* %6
%15 = zext i32 %14 to i64
%16 = load i64, i64* %5
%17 = icmp ult i64 %15, %16
br i1 %17, label %21, label %18
18: ; preds = %2
%19 = load i32, i32* %6
%20 = icmp ugt i32 %19, 268435456
br i1 %20, label %21, label %23
21: ; preds = %18, %2
%22 = call i32 (i8*, i32, ...) bitcast (i32 (...)* @_throw_badalloc_fn to i32 (i8*, i32, ...)*)(i8* getelementptr inbounds ([158 x i8], [158 x i8]* @.str, i64 0, i64 0), i32 284)
br label %23
23: ; preds = %21, %18
%24 = load i32, i32* %6
ret i32 %24
}

LLVM IR (-O2):
@.str = [158 x i8] c"/scratch/repos/new/home/jordi_armengol_estape/c-scraper/outputs/2022-01-22/02-19-57/repos/FauxFaux/cyclone/refs/heads/master/bin/genfiles/remove_aggregates.c\00"
define i32 @_check_times(i32 %0, i32 %1) {
%3 = tail call { i32, i1 } @llvm.umul.with.overflow.i32(i32 %0, i32 %1)
%4 = extractvalue { i32, i1 } %3, 0
%5 = extractvalue { i32, i1 } %3, 1
%6 = icmp ugt i32 %4, 268435456
%7 = or i1 %5, %6
br i1 %7, label %8, label %10
8: ; preds = %2
%9 = tail call i32 (i8*, i32, ...) bitcast (i32 (...)* @_throw_badalloc_fn to i32 (i8*, i32, ...)*)(i8* getelementptr inbounds ([158 x i8], [158 x i8]* @.str, i64 0, i64 0), i32 284)
br label %10
10: ; preds = %2, %8
ret i32 %4
}
x() {}


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

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

LLVM IR (-O0):
define i32 @x() {
%1 = alloca i32
%2 = load i32, i32* %1
ret i32 %2
}

LLVM IR (-O2):
define i32 @x() {
ret i32 undef
}
void DH_set_default_method(void) {}


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

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

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

LLVM IR (-O2):
define void @DH_set_default_method() {
ret void
}
void ft_swap_str(char **s1, char **s2) {
  char *c;
  c = *s1;
  *s1 = *s2;
  *s2 = c;
}


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

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

LLVM IR (-O0):
define void @ft_swap_str(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 = load i8*, i8** %6
store i8* %7, i8** %5
%8 = load i8**, i8*** %4
%9 = load i8*, i8** %8
%10 = load i8**, i8*** %3
store i8* %9, i8** %10
%11 = load i8*, i8** %5
%12 = load i8**, i8*** %4
store i8* %11, i8** %12
ret void
}

LLVM IR (-O2):
define void @ft_swap_str(i8** nocapture %0, i8** nocapture %1) {
%3 = load i8*, i8** %0
%4 = load i8*, i8** %1
store i8* %4, i8** %0
store i8* %3, i8** %1
ret void
}
/* Variables and functions */
scalar_t__ calloc(unsigned int, int);
char *epr_create_string(unsigned int length) {
  return (char *)calloc(length + 1, sizeof(char));
}


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

x86 assembly (clang, -O2):
<epr_create_string>:
add    $0x1,%edi
mov    $0x1,%esi
jmp    1030 <calloc@plt>

LLVM IR (-O0):
define i8* @epr_create_string(i32 %0) {
%2 = alloca i32
store i32 %0, i32* %2
%3 = load i32, i32* %2
%4 = add i32 %3, 1
%5 = call i64 @calloc(i32 %4, i32 1)
%6 = inttoptr i64 %5 to i8*
ret i8* %6
}

LLVM IR (-O2):
define i8* @epr_create_string(i32 %0) {
%2 = add i32 %0, 1
%3 = tail call i64 @calloc(i32 %2, i32 1)
%4 = inttoptr i64 %3 to i8*
ret i8* %4
}
int __attribute__((no, used, noclone)) bar(int i) {
  int *j = &i;
  int **k = &j;
  int ***l = &k;
  i++;
  return i;
}


x86 assembly (clang, -O0):
<bar>:
push   %rbp
mov    %rsp,%rbp
mov    %edi,-0x4(%rbp)
lea    -0x4(%rbp),%rax
mov    %rax,-0x10(%rbp)
lea    -0x10(%rbp),%rax
mov    %rax,-0x18(%rbp)
lea    -0x18(%rbp),%rax
mov    %rax,-0x20(%rbp)
mov    -0x4(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x4(%rbp)
mov    -0x4(%rbp),%eax
pop    %rbp
ret

x86 assembly (clang, -O2):
<bar>:
lea    0x1(%rdi),%eax
ret

LLVM IR (-O0):
@llvm.compiler.used = appending global [1 x i8*] [i8* bitcast (i32 (i32)* @bar to i8*)], section "llvm.metadata"
define i32 @bar(i32 %0) {
%2 = alloca i32
%3 = alloca i32*
%4 = alloca i32**
%5 = alloca i32***
store i32 %0, i32* %2
store i32* %2, i32** %3
store i32** %3, i32*** %4
store i32*** %4, i32**** %5
%6 = load i32, i32* %2
%7 = add nsw i32 %6, 1
store i32 %7, i32* %2
%8 = load i32, i32* %2
ret i32 %8
}

LLVM IR (-O2):
@llvm.compiler.used = appending global [1 x i8*] [i8* bitcast (i32 (i32)* @bar to i8*)], section "llvm.metadata"
define i32 @bar(i32 %0) {
%2 = add nsw i32 %0, 1
ret i32 %2
}
/* Variables and functions */
int /*<<< orphan*/ freeTouch(long double **);
int /*<<< orphan*/ freeTouch2(long double ***);
void ffree_2D(long double **x, int N) {
  int i;
  for (i = 0; i < N; i++) {
    freeTouch((x + i));
  }
  freeTouch2(&x);
  return;
}


x86 assembly (clang, -O0):
<ffree_2D>:
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    1164 <ffree_2D+0x44>
mov    -0x8(%rbp),%rdi
movslq -0x10(%rbp),%rax
shl    $0x3,%rax
add    %rax,%rdi
call   1040 <freeTouch@plt>
mov    -0x10(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x10(%rbp)
jmp    1136 <ffree_2D+0x16>
lea    -0x8(%rbp),%rdi
call   1030 <freeTouch2@plt>
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<ffree_2D>:
push   %r14
push   %rbx
push   %rax
mov    %rdi,(%rsp)
test   %esi,%esi
jle    1152 <ffree_2D+0x32>
mov    %rdi,%rbx
mov    %esi,%r14d
cs nopw 0x0(%rax,%rax,1)
nopl   0x0(%rax)
mov    %rbx,%rdi
call   1040 <freeTouch@plt>
add    $0x8,%rbx
add    $0xffffffffffffffff,%r14
jne    1140 <ffree_2D+0x20>
mov    %rsp,%rdi
call   1030 <freeTouch2@plt>
add    $0x8,%rsp
pop    %rbx
pop    %r14
ret

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

LLVM IR (-O2):
define void @ffree_2D(x86_fp80** %0, i32 %1) {
%3 = alloca x86_fp80**
store x86_fp80** %0, x86_fp80*** %3
%4 = icmp sgt i32 %1, 0
br i1 %4, label %5, label %13
5: ; preds = %2
%6 = zext i32 %1 to i64
br label %7
7: ; preds = %5, %7
%8 = phi i64 [ 0, %5 ], [ %11, %7 ]
%9 = getelementptr inbounds x86_fp80*, x86_fp80** %0, i64 %8
%10 = tail call i32 @freeTouch(x86_fp80** %9)
%11 = add nuw nsw i64 %8, 1
%12 = icmp eq i64 %11, %6
br i1 %12, label %13, label %7
13: ; preds = %7, %2
%14 = call i32 @freeTouch2(x86_fp80*** %3)
ret void
}
void ajMemCheck(int istat) {
  (void)istat;
  return;
}


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

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

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

LLVM IR (-O2):
define void @ajMemCheck(i32 %0) {
ret void
}
/* Variables and functions */
int /*<<< orphan*/ write_block_offset(int, void const *, int,
                                      int /*<<< orphan*/);
void write_block(int block, const void *data, int size) {
  write_block_offset(block, data, size, 0);
}


x86 assembly (clang, -O0):
<write_block>:
push   %rbp
mov    %rsp,%rbp
sub    $0x20,%rsp
mov    %edi,-0x4(%rbp)
mov    %rsi,-0x10(%rbp)
mov    %edx,-0x14(%rbp)
mov    -0x4(%rbp),%edi
mov    -0x10(%rbp),%rsi
mov    -0x14(%rbp),%edx
xor    %ecx,%ecx
call   1030 <write_block_offset@plt>
add    $0x20,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<write_block>:
xor    %ecx,%ecx
jmp    1030 <write_block_offset@plt>

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

LLVM IR (-O2):
define void @write_block(i32 %0, i8* %1, i32 %2) {
%4 = tail call i32 @write_block_offset(i32 %0, i8* %1, i32 %2, i32 0)
ret void
}
/* Variables and functions */
int /*<<< orphan*/ GETVAL;
int /*<<< orphan*/ perror(char *);
int semctl(int, int, int /*<<< orphan*/, int /*<<< orphan*/);
int getStatusValue(int semid, int pit) {
  int status = -1;
  if ((status = semctl(semid, 2 * pit, GETVAL, 0)) == -1)
    perror("Semctl(GETVAL) : ");
  return status;
}


x86 assembly (clang, -O0):
<getStatusValue>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
mov    %edi,-0x4(%rbp)
mov    %esi,-0x8(%rbp)
movl   $0xffffffff,-0xc(%rbp)
mov    -0x4(%rbp),%edi
mov    -0x8(%rbp),%esi
shl    $0x1,%esi
mov    0x2e9b(%rip),%rax
mov    (%rax),%edx
xor    %ecx,%ecx
call   1040 <semctl@plt>
mov    %eax,-0xc(%rbp)
cmp    $0xffffffff,%eax
jne    1166 <getStatusValue+0x46>
lea    0xe9f(%rip),%rdi
call   1030 <perror@plt>
mov    -0xc(%rbp),%eax
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<getStatusValue>:
push   %rbx
add    %esi,%esi
mov    0x2eb6(%rip),%rax
mov    (%rax),%edx
xor    %ecx,%ecx
call   1040 <semctl@plt>
mov    %eax,%ebx
cmp    $0xffffffff,%eax
je     113e <getStatusValue+0x1e>
mov    %ebx,%eax
pop    %rbx
ret
lea    0xebb(%rip),%rdi
call   1030 <perror@plt>
jmp    113a <getStatusValue+0x1a>

LLVM IR (-O0):
@GETVAL = global i32 0
@.str = [18 x i8] c"Semctl(GETVAL) : \00"
define i32 @getStatusValue(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 -1, i32* %5
%6 = load i32, i32* %3
%7 = load i32, i32* %4
%8 = mul nsw i32 2, %7
%9 = load i32, i32* @GETVAL
%10 = call i32 @semctl(i32 %6, i32 %8, i32 %9, i32 0)
store i32 %10, i32* %5
%11 = icmp eq i32 %10, -1
br i1 %11, label %12, label %14
12: ; preds = %2
%13 = call i32 @perror(i8* getelementptr inbounds ([18 x i8], [18 x i8]* @.str, i64 0, i64 0))
br label %14
14: ; preds = %12, %2
%15 = load i32, i32* %5
ret i32 %15
}

LLVM IR (-O2):
@GETVAL = global i32 0
@.str = [18 x i8] c"Semctl(GETVAL) : \00"
define i32 @getStatusValue(i32 %0, i32 %1) {
%3 = shl nsw i32 %1, 1
%4 = load i32, i32* @GETVAL
%5 = tail call i32 @semctl(i32 %0, i32 %3, i32 %4, i32 0)
%6 = icmp eq i32 %5, -1
br i1 %6, label %7, label %9
7: ; preds = %2
%8 = tail call i32 @perror(i8* getelementptr inbounds ([18 x i8], [18 x i8]* @.str, i64 0, i64 0))
br label %9
9: ; preds = %7, %2
ret i32 %5
}
int biosig_lib_version(void) { return ((1 * 10000 + 8 * 100 + 0)); }


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

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

LLVM IR (-O0):
define i32 @biosig_lib_version() {
ret i32 10800
}

LLVM IR (-O2):
define i32 @biosig_lib_version() {
ret i32 10800
}
struct Er_Ret *Er_unwind(const char *file, int line, struct Er_Ret *ret) {
  return ret;
}


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

x86 assembly (clang, -O2):
<Er_unwind>:
mov    %rdx,%rax
ret

LLVM IR (-O0):
%struct.Er_Ret = type opaque
define %struct.Er_Ret* @Er_unwind(i8* %0, i32 %1, %struct.Er_Ret* %2) {
%4 = alloca i8*
%5 = alloca i32
%6 = alloca %struct.Er_Ret*
store i8* %0, i8** %4
store i32 %1, i32* %5
store %struct.Er_Ret* %2, %struct.Er_Ret** %6
%7 = load %struct.Er_Ret*, %struct.Er_Ret** %6
ret %struct.Er_Ret* %7
}

LLVM IR (-O2):
%struct.Er_Ret = type opaque
define %struct.Er_Ret* @Er_unwind(i8* nocapture readnone %0, i32 %1, %struct.Er_Ret* readnone returned %2) {
ret %struct.Er_Ret* %2
}
int do_771() { return 771; }


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

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

LLVM IR (-O0):
define i32 @do_771() {
ret i32 771
}

LLVM IR (-O2):
define i32 @do_771() {
ret i32 771
}
int test_imm_89int8_mem(signed char *val) {
  return ((*val) & (-0x89 << 0)) ? -20 : -40;
}


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

x86 assembly (clang, -O2):
<test_imm_89int8_mem>:
movsbl (%rdi),%eax
test   $0xffffff77,%eax
mov    $0xffffffd8,%ecx
mov    $0xffffffec,%eax
cmove  %ecx,%eax
ret

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

LLVM IR (-O2):
define i32 @test_imm_89int8_mem(i8* nocapture %0) {
%2 = load i8, i8* %0
%3 = sext i8 %2 to i32
%4 = and i32 %3, -137
%5 = icmp eq i32 %4, 0
%6 = select i1 %5, i32 -40, i32 -20
ret i32 %6
}
int ft_isalnum(int c) {
  return (('a' <= c && c <= 'z') || ('A' <= c && c <= 'Z') ||
          ('0' <= c && c <= '9'));
}


x86 assembly (clang, -O0):
<ft_isalnum>:
push   %rbp
mov    %rsp,%rbp
mov    %edi,-0x4(%rbp)
mov    $0x61,%eax
cmp    -0x4(%rbp),%eax
jg     1124 <ft_isalnum+0x24>
mov    $0x1,%al
cmpl   $0x7a,-0x4(%rbp)
mov    %al,-0x5(%rbp)
jle    1164 <ft_isalnum+0x64>
mov    $0x41,%eax
cmp    -0x4(%rbp),%eax
jg     1141 <ft_isalnum+0x41>
mov    $0x1,%al
cmpl   $0x5a,-0x4(%rbp)
mov    %al,-0x5(%rbp)
jle    1164 <ft_isalnum+0x64>
xor    %eax,%eax
mov    $0x30,%ecx
cmp    -0x4(%rbp),%ecx
mov    %al,-0x6(%rbp)
jg     115e <ft_isalnum+0x5e>
cmpl   $0x39,-0x4(%rbp)
setle  %al
mov    %al,-0x6(%rbp)
mov    -0x6(%rbp),%al
mov    %al,-0x5(%rbp)
mov    -0x5(%rbp),%al
and    $0x1,%al
movzbl %al,%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
store i32 %0, i32* %2
%3 = load i32, i32* %2
%4 = icmp sle i32 97, %3
br i1 %4, label %5, label %8
5: ; preds = %1
%6 = load i32, i32* %2
%7 = icmp sle i32 %6, 122
br i1 %7, label %22, label %8
8: ; preds = %5, %1
%9 = load i32, i32* %2
%10 = icmp sle i32 65, %9
br i1 %10, label %11, label %14
11: ; preds = %8
%12 = load i32, i32* %2
%13 = icmp sle i32 %12, 90
br i1 %13, label %22, label %14
14: ; preds = %11, %8
%15 = load i32, i32* %2
%16 = icmp sle i32 48, %15
br i1 %16, label %17, label %20
17: ; preds = %14
%18 = load i32, i32* %2
%19 = icmp sle i32 %18, 57
br label %20
20: ; preds = %17, %14
%21 = phi i1 [ false, %14 ], [ %19, %17 ]
br label %22
22: ; preds = %20, %11, %5
%23 = phi i1 [ true, %11 ], [ true, %5 ], [ %21, %20 ]
%24 = zext i1 %23 to i32
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 */
int /*<<< orphan*/ printf(char *, char *);
char *strerror(int);
int main(int argc, char *argv[]) {
  printf("%s\n", strerror(3));
  return 0;
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
movl   $0x0,-0x4(%rbp)
mov    %edi,-0x8(%rbp)
mov    %rsi,-0x10(%rbp)
mov    $0x3,%edi
call   1040 <strerror@plt>
mov    %rax,%rsi
lea    0xeb6(%rip),%rdi
call   1030 <printf@plt>
xor    %eax,%eax
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %rax
mov    $0x3,%edi
call   1040 <strerror@plt>
lea    0xece(%rip),%rdi
mov    %rax,%rsi
call   1030 <printf@plt>
xor    %eax,%eax
pop    %rcx
ret

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

LLVM IR (-O2):
@.str = [4 x i8] c"%s\0A\00"
define i32 @main(i32 %0, i8** nocapture readnone %1) {
%3 = tail call i8* @strerror(i32 3)
%4 = tail call i32 @printf(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str, i64 0, i64 0), i8* %3)
ret i32 0
}
/* Variables and functions */
int /*<<< orphan*/ EXIT_FAILURE;
int /*<<< orphan*/ errno;
int /*<<< orphan*/ error(int /*<<< orphan*/, int /*<<< orphan*/, char *,
                         void *const, size_t const);
int munmap(void *const, size_t const);
void p_memory_unmap(void *const ptr, const size_t size) {
  if (munmap(ptr, size) == -1) {
    error(EXIT_FAILURE, errno, "munmap(ptr=%p, size=%zu)", ptr, size);
  }
}


x86 assembly (clang, -O0):
<p_memory_unmap>:
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 <munmap@plt>
cmp    $0xffffffff,%eax
jne    116c <p_memory_unmap+0x4c>
mov    0x2e8b(%rip),%rax
mov    (%rax),%edi
mov    0x2e8a(%rip),%rax
mov    (%rax),%esi
mov    -0x8(%rbp),%rcx
mov    -0x10(%rbp),%r8
lea    0xe99(%rip),%rdx
call   1040 <error@plt>
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<p_memory_unmap>:
push   %r14
push   %rbx
push   %rax
mov    %rsi,%r14
mov    %rdi,%rbx
call   1030 <munmap@plt>
cmp    $0xffffffff,%eax
je     113c <p_memory_unmap+0x1c>
add    $0x8,%rsp
pop    %rbx
pop    %r14
ret
mov    0x2e95(%rip),%rax
mov    (%rax),%edi
mov    0x2e94(%rip),%rax
mov    (%rax),%esi
lea    0xeab(%rip),%rdx
mov    %rbx,%rcx
mov    %r14,%r8
add    $0x8,%rsp
pop    %rbx
pop    %r14
jmp    1040 <error@plt>

LLVM IR (-O0):
@EXIT_FAILURE = global i32 0
@errno = global i32 0
@.str = [25 x i8] c"munmap(ptr=%p, size=%zu)\00"
define void @p_memory_unmap(i8* %0, i64 %1) {
%3 = alloca i8*
%4 = alloca i64
store i8* %0, i8** %3
store i64 %1, i64* %4
%5 = load i8*, i8** %3
%6 = load i64, i64* %4
%7 = call i32 @munmap(i8* %5, i64 %6)
%8 = icmp eq i32 %7, -1
br i1 %8, label %9, label %15
9: ; preds = %2
%10 = load i32, i32* @EXIT_FAILURE
%11 = load i32, i32* @errno
%12 = load i8*, i8** %3
%13 = load i64, i64* %4
%14 = call i32 @error(i32 %10, i32 %11, i8* getelementptr inbounds ([25 x i8], [25 x i8]* @.str, i64 0, i64 0), i8* %12, i64 %13)
br label %15
15: ; preds = %9, %2
ret void
}

LLVM IR (-O2):
@EXIT_FAILURE = global i32 0
@errno = global i32 0
@.str = [25 x i8] c"munmap(ptr=%p, size=%zu)\00"
define void @p_memory_unmap(i8* %0, i64 %1) {
%3 = tail call i32 @munmap(i8* %0, i64 %1)
%4 = icmp eq i32 %3, -1
br i1 %4, label %5, label %9
5: ; preds = %2
%6 = load i32, i32* @EXIT_FAILURE
%7 = load i32, i32* @errno
%8 = tail call i32 @error(i32 %6, i32 %7, i8* getelementptr inbounds ([25 x i8], [25 x i8]* @.str, i64 0, i64 0), i8* %0, i64 %1)
br label %9
9: ; preds = %5, %2
ret void
}
/* Type definitions */
struct timespec {
  int dummy;
};

/* Variables and functions */
int /*<<< orphan*/ __NR_futex;
int syscall(int /*<<< orphan*/, int *, int, int, struct timespec const *, int *,
            int);
int futex(int *uaddr, int op, int val, const struct timespec *timeout,
          int *uaddr2, int val3) {
  return syscall(__NR_futex, uaddr, op, val, timeout, uaddr2, val3);
}


x86 assembly (clang, -O0):
<futex>:
push   %rbp
mov    %rsp,%rbp
sub    $0x30,%rsp
mov    %rdi,-0x8(%rbp)
mov    %esi,-0xc(%rbp)
mov    %edx,-0x10(%rbp)
mov    %rcx,-0x18(%rbp)
mov    %r8,-0x20(%rbp)
mov    %r9d,-0x24(%rbp)
mov    0x2eb3(%rip),%rax
mov    (%rax),%edi
mov    -0x8(%rbp),%rsi
mov    -0xc(%rbp),%edx
mov    -0x10(%rbp),%ecx
mov    -0x18(%rbp),%r8
mov    -0x20(%rbp),%r9
mov    -0x24(%rbp),%eax
mov    %eax,(%rsp)
call   1030 <syscall@plt>
add    $0x30,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<futex>:
push   %rax
mov    %r8,%rax
mov    %rcx,%r8
mov    %edx,%ecx
mov    %esi,%edx
mov    %rdi,%rsi
mov    0x2ec3(%rip),%rdi
mov    (%rdi),%edi
mov    %r9d,(%rsp)
mov    %rax,%r9
call   1030 <syscall@plt>
pop    %rcx
ret

LLVM IR (-O0):
%struct.timespec = type { i32 }
@__NR_futex = global i32 0
define i32 @futex(i32* %0, i32 %1, i32 %2, %struct.timespec* %3, i32* %4, i32 %5) {
%7 = alloca i32*
%8 = alloca i32
%9 = alloca i32
%10 = alloca %struct.timespec*
%11 = alloca i32*
%12 = alloca i32
store i32* %0, i32** %7
store i32 %1, i32* %8
store i32 %2, i32* %9
store %struct.timespec* %3, %struct.timespec** %10
store i32* %4, i32** %11
store i32 %5, i32* %12
%13 = load i32, i32* @__NR_futex
%14 = load i32*, i32** %7
%15 = load i32, i32* %8
%16 = load i32, i32* %9
%17 = load %struct.timespec*, %struct.timespec** %10
%18 = load i32*, i32** %11
%19 = load i32, i32* %12
%20 = call i32 @syscall(i32 %13, i32* %14, i32 %15, i32 %16, %struct.timespec* %17, i32* %18, i32 %19)
ret i32 %20
}

LLVM IR (-O2):
%struct.timespec = type { i32 }
@__NR_futex = global i32 0
define i32 @futex(i32* %0, i32 %1, i32 %2, %struct.timespec* %3, i32* %4, i32 %5) {
%7 = load i32, i32* @__NR_futex
%8 = tail call i32 @syscall(i32 %7, i32* %0, i32 %1, i32 %2, %struct.timespec* %3, i32* %4, i32 %5)
ret i32 %8
}
/* Variables and functions */
char *strcpy(char *, char *);
int strlen(char *);
char *try_malloc(int);
char *str_clone_more(char *src, int more) {
  char *new = try_malloc(sizeof(char) * (strlen(src) + 1 + more));
  return strcpy(new, src);
}


x86 assembly (clang, -O0):
<str_clone_more>:
push   %rbp
mov    %rsp,%rbp
sub    $0x20,%rsp
mov    %rdi,-0x8(%rbp)
mov    %esi,-0xc(%rbp)
mov    -0x8(%rbp),%rdi
call   1050 <strlen@plt>
add    $0x1,%eax
add    -0xc(%rbp),%eax
cltq
shl    $0x0,%rax
mov    %eax,%edi
call   1040 <try_malloc@plt>
mov    %rax,-0x18(%rbp)
mov    -0x18(%rbp),%rdi
mov    -0x8(%rbp),%rsi
call   1030 <strcpy@plt>
add    $0x20,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<str_clone_more>:
push   %r14
push   %rbx
push   %rax
mov    %esi,%r14d
mov    %rdi,%rbx
call   1050 <strlen@plt>
lea    (%r14,%rax,1),%edi
add    $0x1,%edi
call   1040 <try_malloc@plt>
mov    %rax,%rdi
mov    %rbx,%rsi
add    $0x8,%rsp
pop    %rbx
pop    %r14
jmp    1030 <strcpy@plt>

LLVM IR (-O0):
define i8* @str_clone_more(i8* %0, i32 %1) {
%3 = alloca i8*
%4 = alloca i32
%5 = alloca i8*
store i8* %0, i8** %3
store i32 %1, i32* %4
%6 = load i8*, i8** %3
%7 = call i32 @strlen(i8* %6)
%8 = add nsw i32 %7, 1
%9 = load i32, i32* %4
%10 = add nsw i32 %8, %9
%11 = sext i32 %10 to i64
%12 = mul i64 1, %11
%13 = trunc i64 %12 to i32
%14 = call i8* @try_malloc(i32 %13)
store i8* %14, i8** %5
%15 = load i8*, i8** %5
%16 = load i8*, i8** %3
%17 = call i8* @strcpy(i8* %15, i8* %16)
ret i8* %17
}

LLVM IR (-O2):
define i8* @str_clone_more(i8* %0, i32 %1) {
%3 = tail call i32 @strlen(i8* %0)
%4 = add i32 %1, 1
%5 = add i32 %4, %3
%6 = tail call i8* @try_malloc(i32 %5)
%7 = tail call i8* @strcpy(i8* dereferenceable(1) %6, i8* dereferenceable(1) %0)
ret i8* %6
}
/* Variables and functions */
int strlen(char *);
int chomp(char *string) {
  string[strlen(string) - 1] = '\0';
  return 0;
}


x86 assembly (clang, -O0):
<chomp>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
mov    %rdi,-0x8(%rbp)
mov    -0x8(%rbp),%rax
mov    %rax,-0x10(%rbp)
mov    -0x8(%rbp),%rdi
call   1030 <strlen@plt>
mov    %eax,%ecx
mov    -0x10(%rbp),%rax
sub    $0x1,%ecx
movslq %ecx,%rcx
movb   $0x0,(%rax,%rcx,1)
xor    %eax,%eax
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<chomp>:
push   %rbx
mov    %rdi,%rbx
call   1030 <strlen@plt>
cltq
movb   $0x0,-0x1(%rax,%rbx,1)
xor    %eax,%eax
pop    %rbx
ret

LLVM IR (-O0):
define i32 @chomp(i8* %0) {
%2 = alloca i8*
store i8* %0, i8** %2
%3 = load i8*, i8** %2
%4 = load i8*, i8** %2
%5 = call i32 @strlen(i8* %4)
%6 = sub nsw i32 %5, 1
%7 = sext i32 %6 to i64
%8 = getelementptr inbounds i8, i8* %3, i64 %7
store i8 0, i8* %8
ret i32 0
}

LLVM IR (-O2):
define i32 @chomp(i8* %0) {
%2 = tail call i32 @strlen(i8* %0)
%3 = add nsw i32 %2, -1
%4 = sext i32 %3 to i64
%5 = getelementptr inbounds i8, i8* %0, i64 %4
store i8 0, i8* %5
ret i32 0
}
/* Variables and functions */
int /*<<< orphan*/ feclearexcept(int);
int /*<<< orphan*/ feraiseexcept(int);
void set_fpu_except_flags(int set, int clear) {
  int exc_set = 0, exc_clr = 0;
  feclearexcept(exc_clr);
  feraiseexcept(exc_set);
}


x86 assembly (clang, -O0):
<set_fpu_except_flags>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
mov    %edi,-0x4(%rbp)
mov    %esi,-0x8(%rbp)
movl   $0x0,-0xc(%rbp)
movl   $0x0,-0x10(%rbp)
mov    -0x10(%rbp),%edi
call   1040 <feclearexcept@plt>
mov    -0xc(%rbp),%edi
call   1030 <feraiseexcept@plt>
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<set_fpu_except_flags>:
push   %rax
xor    %edi,%edi
call   1040 <feclearexcept@plt>
xor    %edi,%edi
pop    %rax
jmp    1030 <feraiseexcept@plt>

LLVM IR (-O0):
define void @set_fpu_except_flags(i32 %0, i32 %1) {
%3 = alloca i32
%4 = alloca i32
%5 = alloca i32
%6 = alloca i32
store i32 %0, i32* %3
store i32 %1, i32* %4
store i32 0, i32* %5
store i32 0, i32* %6
%7 = load i32, i32* %6
%8 = call i32 @feclearexcept(i32 %7)
%9 = load i32, i32* %5
%10 = call i32 @feraiseexcept(i32 %9)
ret void
}

LLVM IR (-O2):
define void @set_fpu_except_flags(i32 %0, i32 %1) {
%3 = tail call i32 @feclearexcept(i32 0)
%4 = tail call i32 @feraiseexcept(i32 0)
ret void
}
/* Variables and functions */
int /*<<< orphan*/ Message(char *, int);
void Message1(char *s) { Message(s, -1); }


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

x86 assembly (clang, -O2):
<Message1>:
mov    $0xffffffff,%esi
jmp    1030 <Message@plt>

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

LLVM IR (-O2):
define void @Message1(i8* %0) {
%2 = tail call i32 @Message(i8* %0, i32 -1)
ret void
}