xunge/DecIR huggingface dataset:
/* Type definitions */
struct timeval {
  int /*<<< orphan*/ tv_usec;
  int /*<<< orphan*/ tv_sec;
};
typedef int /*<<< orphan*/ FILE;

/* Variables and functions */
int /*<<< orphan*/ fprintf(int /*<<< orphan*/ *, char *, int /*<<< orphan*/,
                           int /*<<< orphan*/);
int /*<<< orphan*/ gettimeofday(struct timeval *, int /*<<< orphan*/ *);
void print_timestamp(FILE *f) {
  struct timeval tv;
  gettimeofday(&tv, NULL);
  fprintf(f, "%.10ld.%.6ld", tv.tv_sec, tv.tv_usec);
}


x86 assembly (clang, -O0):
<print_timestamp>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
mov    %rdi,-0x8(%rbp)
lea    -0x10(%rbp),%rdi
xor    %eax,%eax
mov    %eax,%esi
call   1030 <gettimeofday@plt>
mov    -0x8(%rbp),%rdi
mov    -0xc(%rbp),%edx
mov    -0x10(%rbp),%ecx
lea    0xeb6(%rip),%rsi
call   1040 <fprintf@plt>
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<print_timestamp>:
push   %rbx
sub    $0x10,%rsp
mov    %rdi,%rbx
lea    0x8(%rsp),%rdi
xor    %esi,%esi
call   1030 <gettimeofday@plt>
mov    0x8(%rsp),%ecx
mov    0xc(%rsp),%edx
lea    0xebd(%rip),%rsi
mov    %rbx,%rdi
add    $0x10,%rsp
pop    %rbx
jmp    1040 <fprintf@plt>

LLVM IR (-O0):
%struct.timeval = type { i32, i32 }
@.str = [13 x i8] c"%.10ld.%.6ld\00"
define void @print_timestamp(i32* %0) {
%2 = alloca i32*
%3 = alloca %struct.timeval
store i32* %0, i32** %2
%4 = call i32 @gettimeofday(%struct.timeval* %3, i32* null)
%5 = load i32*, i32** %2
%6 = getelementptr inbounds %struct.timeval, %struct.timeval* %3, i32 0, i32 1
%7 = load i32, i32* %6
%8 = getelementptr inbounds %struct.timeval, %struct.timeval* %3, i32 0, i32 0
%9 = load i32, i32* %8
%10 = call i32 @fprintf(i32* %5, i8* getelementptr inbounds ([13 x i8], [13 x i8]* @.str, i64 0, i64 0), i32 %7, i32 %9)
ret void
}

LLVM IR (-O2):
%struct.timeval = type { i32, i32 }
@.str = [13 x i8] c"%.10ld.%.6ld\00"
define void @print_timestamp(i32* nocapture %0) {
%2 = alloca %struct.timeval
%3 = bitcast %struct.timeval* %2 to i8*
%4 = call i32 @gettimeofday(%struct.timeval* %2, i32* null)
%5 = getelementptr inbounds %struct.timeval, %struct.timeval* %2, i64 0, i32 1
%6 = load i32, i32* %5
%7 = getelementptr inbounds %struct.timeval, %struct.timeval* %2, i64 0, i32 0
%8 = load i32, i32* %7
%9 = tail call i32 @fprintf(i32* %0, i8* getelementptr inbounds ([13 x i8], [13 x i8]* @.str, i64 0, i64 0), i32 %6, i32 %8)
ret void
}
void RTAvloGCPtrRemove(void) {}


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

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

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

LLVM IR (-O2):
define void @RTAvloGCPtrRemove() {
ret void
}
void slab_depot_destroy() {}


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

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

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

LLVM IR (-O2):
define void @slab_depot_destroy() {
ret void
}
/* Variables and functions */
void ext_status_store(const char *buffer, size_t buffer_size) {}


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

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

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

LLVM IR (-O2):
define void @ext_status_store(i8* nocapture %0, i64 %1) {
ret void
}
/* Variables and functions */
unsigned int R32(int);
unsigned int time_microsec() { return R32(((0x3F000000 + 0x3000) + 0x04)); }


x86 assembly (clang, -O0):
<time_microsec>:
push   %rbp
mov    %rsp,%rbp
mov    $0x3f003004,%edi
call   1030 <R32@plt>
pop    %rbp
ret

x86 assembly (clang, -O2):
<time_microsec>:
mov    $0x3f003004,%edi
jmp    1030 <R32@plt>

LLVM IR (-O0):
define i32 @time_microsec() {
%1 = call i32 @R32(i32 1056976900)
ret i32 %1
}

LLVM IR (-O2):
define i32 @time_microsec() {
%1 = tail call i32 @R32(i32 1056976900)
ret i32 %1
}
/* Type definitions */
typedef int /*<<< orphan*/ DIR;

/* Variables and functions */
int dll_closedir(int /*<<< orphan*/ *);
int __wrap_closedir(DIR *dirp) { return dll_closedir(dirp); }


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

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

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

LLVM IR (-O2):
define i32 @__wrap_closedir(i32* %0) {
%2 = tail call i32 @dll_closedir(i32* %0)
ret i32 %2
}
/* Variables and functions */
int /*<<< orphan*/ e_pop_pc();
void e_rts() { e_pop_pc(); }


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

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

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

LLVM IR (-O2):
define void @e_rts() {
%1 = tail call i32 (...) @e_pop_pc()
ret void
}
float xw_xcolor_to_rgb(unsigned short urgb) {
  float rgb;
  rgb = (float)urgb / (float)65535;
  if (rgb < 0.0)
    return 0.0;
  if (rgb > 1.0)
    return 1.0;
  return rgb;
}


x86 assembly (clang, -O0):
<xw_xcolor_to_rgb>:
push   %rbp
mov    %rsp,%rbp
mov    %di,%ax
mov    %ax,-0x6(%rbp)
movzwl -0x6(%rbp),%eax
cvtsi2ss %eax,%xmm0
movss  0xee5(%rip),%xmm1
divss  %xmm1,%xmm0
movss  %xmm0,-0xc(%rbp)
movss  -0xc(%rbp),%xmm0
cvtss2sd %xmm0,%xmm1
xorps  %xmm0,%xmm0
ucomisd %xmm1,%xmm0
jbe    1147 <xw_xcolor_to_rgb+0x47>
xorps  %xmm0,%xmm0
movss  %xmm0,-0x4(%rbp)
jmp    117e <xw_xcolor_to_rgb+0x7e>
movss  -0xc(%rbp),%xmm0
cvtss2sd %xmm0,%xmm0
movsd  0xeb0(%rip),%xmm1
ucomisd %xmm1,%xmm0
jbe    1174 <xw_xcolor_to_rgb+0x74>
movss  0xe9a(%rip),%xmm0
movss  %xmm0,-0x4(%rbp)
jmp    117e <xw_xcolor_to_rgb+0x7e>
movss  -0xc(%rbp),%xmm0
movss  %xmm0,-0x4(%rbp)
movss  -0x4(%rbp),%xmm0
pop    %rbp
ret

x86 assembly (clang, -O2):
<xw_xcolor_to_rgb>:
cvtsi2ss %edi,%xmm1
divss  0xef4(%rip),%xmm1
movss  0xef0(%rip),%xmm0
minss  %xmm1,%xmm0
ret

LLVM IR (-O0):
define float @xw_xcolor_to_rgb(i16 zeroext %0) {
%2 = alloca float
%3 = alloca i16
%4 = alloca float
store i16 %0, i16* %3
%5 = load i16, i16* %3
%6 = uitofp i16 %5 to float
%7 = fdiv float %6, 6.553500e+04
store float %7, float* %4
%8 = load float, float* %4
%9 = fpext float %8 to double
%10 = fcmp olt double %9, 0.000000e+00
br i1 %10, label %11, label %12
11: ; preds = %1
store float 0.000000e+00, float* %2
br label %19
12: ; preds = %1
%13 = load float, float* %4
%14 = fpext float %13 to double
%15 = fcmp ogt double %14, 1.000000e+00
br i1 %15, label %16, label %17
16: ; preds = %12
store float 1.000000e+00, float* %2
br label %19
17: ; preds = %12
%18 = load float, float* %4
store float %18, float* %2
br label %19
19: ; preds = %17, %16, %11
%20 = load float, float* %2
ret float %20
}

LLVM IR (-O2):
define float @xw_xcolor_to_rgb(i16 zeroext %0) {
%2 = uitofp i16 %0 to float
%3 = fdiv float %2, 6.553500e+04
%4 = fcmp ogt float %3, 1.000000e+00
%5 = select i1 %4, float 1.000000e+00, float %3
ret float %5
}
/* Type definitions */
struct avl_tree {
  int dummy;
};

/* Variables and functions */
int /*<<< orphan*/ assert_exit(int /*<<< orphan*/);
int /*<<< orphan*/ avl_tree_structure_legal_p(struct avl_tree *);
int /*<<< orphan*/ memory_cache_free(struct avl_tree *);
void avl_tree_node_destroy(struct avl_tree *node) {
  assert_exit(avl_tree_structure_legal_p(node));
  memory_cache_free(node);
}


x86 assembly (clang, -O0):
<avl_tree_node_destroy>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
mov    %rdi,-0x8(%rbp)
mov    -0x8(%rbp),%rdi
call   1050 <avl_tree_structure_legal_p@plt>
mov    %eax,%edi
call   1040 <assert_exit@plt>
mov    -0x8(%rbp),%rdi
call   1030 <memory_cache_free@plt>
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<avl_tree_node_destroy>:
push   %rbx
mov    %rdi,%rbx
call   1050 <avl_tree_structure_legal_p@plt>
mov    %eax,%edi
call   1040 <assert_exit@plt>
mov    %rbx,%rdi
pop    %rbx
jmp    1030 <memory_cache_free@plt>

LLVM IR (-O0):
%struct.avl_tree = type { i32 }
define void @avl_tree_node_destroy(%struct.avl_tree* %0) {
%2 = alloca %struct.avl_tree*
store %struct.avl_tree* %0, %struct.avl_tree** %2
%3 = load %struct.avl_tree*, %struct.avl_tree** %2
%4 = call i32 @avl_tree_structure_legal_p(%struct.avl_tree* %3)
%5 = call i32 @assert_exit(i32 %4)
%6 = load %struct.avl_tree*, %struct.avl_tree** %2
%7 = call i32 @memory_cache_free(%struct.avl_tree* %6)
ret void
}

LLVM IR (-O2):
%struct.avl_tree = type { i32 }
define void @avl_tree_node_destroy(%struct.avl_tree* %0) {
%2 = tail call i32 @avl_tree_structure_legal_p(%struct.avl_tree* %0)
%3 = tail call i32 @assert_exit(i32 %2)
%4 = tail call i32 @memory_cache_free(%struct.avl_tree* %0)
ret void
}
void ri_thread_shutdown() {}


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

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

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

LLVM IR (-O2):
define void @ri_thread_shutdown() {
ret void
}
/* Variables and functions */
scalar_t__ random();
int exact_minmax_sym(int x) {
  if (random()) {
    if (x > 1) {
      x = 1;
    }
    x = x + 1;
  }
  return x;
}


x86 assembly (clang, -O0):
<exact_minmax_sym>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
mov    %edi,-0x4(%rbp)
mov    $0x0,%al
call   1030 <random@plt>
cmp    $0x0,%rax
je     1146 <exact_minmax_sym+0x36>
cmpl   $0x1,-0x4(%rbp)
jle    113d <exact_minmax_sym+0x2d>
movl   $0x1,-0x4(%rbp)
mov    -0x4(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x4(%rbp)
mov    -0x4(%rbp),%eax
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<exact_minmax_sym>:
push   %rbx
mov    %edi,%ebx
xor    %eax,%eax
call   1030 <random@plt>
test   %ebx,%ebx
mov    $0x1,%ecx
cmovle %ebx,%ecx
add    $0x1,%ecx
test   %rax,%rax
cmove  %ebx,%ecx
mov    %ecx,%eax
pop    %rbx
ret

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

LLVM IR (-O2):
define i32 @exact_minmax_sym(i32 %0) {
%2 = tail call i64 (...) @random()
%3 = icmp eq i64 %2, 0
%4 = icmp slt i32 %0, 1
%5 = select i1 %4, i32 %0, i32 1
%6 = add nsw i32 %5, 1
%7 = select i1 %3, i32 %0, i32 %6
ret i32 %7
}
/* Variables and functions */
int sc_lock_generic(char const *, int /*<<< orphan*/);
int sc_lock_snap(const char *snap_name) {
  return sc_lock_generic(snap_name, 0);
}


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

x86 assembly (clang, -O2):
<sc_lock_snap>:
xor    %esi,%esi
jmp    1030 <sc_lock_generic@plt>

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

LLVM IR (-O2):
define i32 @sc_lock_snap(i8* %0) {
%2 = tail call i32 @sc_lock_generic(i8* %0, i32 0)
ret i32 %2
}
/* Variables and functions */
int /*<<< orphan*/ isspace(int);
char *strnspc(const char *str, size_t len) {
  while (len && !isspace((int)*str)) {
    str++;
    len--;
  }
  return (char *)str;
}


x86 assembly (clang, -O0):
<strnspc>:
push   %rbp
mov    %rsp,%rbp
sub    $0x20,%rsp
mov    %rdi,-0x8(%rbp)
mov    %rsi,-0x10(%rbp)
xor    %eax,%eax
cmpq   $0x0,-0x10(%rbp)
mov    %al,-0x11(%rbp)
je     1147 <strnspc+0x37>
mov    -0x8(%rbp),%rax
movsbl (%rax),%edi
call   1030 <isspace@plt>
cmp    $0x0,%eax
setne  %al
xor    $0xff,%al
mov    %al,-0x11(%rbp)
mov    -0x11(%rbp),%al
test   $0x1,%al
jne    1157 <strnspc+0x47>
jmp    1174 <strnspc+0x64>
mov    -0x8(%rbp),%rax
add    $0x1,%rax
mov    %rax,-0x8(%rbp)
mov    -0x10(%rbp),%rax
add    $0xffffffffffffffff,%rax
mov    %rax,-0x10(%rbp)
jmp    1120 <strnspc+0x10>
mov    -0x8(%rbp),%rax
add    $0x20,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<strnspc>:
push   %r15
push   %r14
push   %rbx
mov    %rdi,%rbx
test   %rsi,%rsi
je     1149 <strnspc+0x39>
mov    %rsi,%r14
lea    (%rbx,%rsi,1),%r15
cs nopw 0x0(%rax,%rax,1)
xchg   %ax,%ax
movsbl (%rbx),%edi
call   1030 <isspace@plt>
test   %eax,%eax
jne    1149 <strnspc+0x39>
add    $0x1,%rbx
add    $0xffffffffffffffff,%r14
jne    1130 <strnspc+0x20>
mov    %r15,%rbx
mov    %rbx,%rax
pop    %rbx
pop    %r14
pop    %r15
ret

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

LLVM IR (-O2):
define i8* @strnspc(i8* %0, i64 %1) {
%3 = icmp eq i64 %1, 0
br i1 %3, label %17, label %4
4: ; preds = %2
%5 = getelementptr i8, i8* %0, i64 %1
br label %6
6: ; preds = %4, %13
%7 = phi i64 [ %15, %13 ], [ %1, %4 ]
%8 = phi i8* [ %14, %13 ], [ %0, %4 ]
%9 = load i8, i8* %8
%10 = sext i8 %9 to i32
%11 = tail call i32 @isspace(i32 %10)
%12 = icmp eq i32 %11, 0
br i1 %12, label %13, label %17
13: ; preds = %6
%14 = getelementptr inbounds i8, i8* %8, i64 1
%15 = add i64 %7, -1
%16 = icmp eq i64 %15, 0
br i1 %16, label %17, label %6
17: ; preds = %6, %13, %2
%18 = phi i8* [ %0, %2 ], [ %5, %13 ], [ %8, %6 ]
ret i8* %18
}
/* Variables and functions */
size_t splitkexists_bit_LaceKVE_size();
size_t get_splitkexists_bit_LaceKVE_size(size_t x) {
  return x & splitkexists_bit_LaceKVE_size();
}


x86 assembly (clang, -O0):
<get_splitkexists_bit_LaceKVE_size>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
mov    %rdi,-0x8(%rbp)
mov    -0x8(%rbp),%rax
mov    %rax,-0x10(%rbp)
mov    $0x0,%al
call   1030 <splitkexists_bit_LaceKVE_size@plt>
mov    %rax,%rcx
mov    -0x10(%rbp),%rax
and    %rcx,%rax
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<get_splitkexists_bit_LaceKVE_size>:
push   %rbx
mov    %rdi,%rbx
xor    %eax,%eax
call   1030 <splitkexists_bit_LaceKVE_size@plt>
and    %rbx,%rax
pop    %rbx
ret

LLVM IR (-O0):
define i64 @get_splitkexists_bit_LaceKVE_size(i64 %0) {
%2 = alloca i64
store i64 %0, i64* %2
%3 = load i64, i64* %2
%4 = call i64 (...) @splitkexists_bit_LaceKVE_size()
%5 = and i64 %3, %4
ret i64 %5
}

LLVM IR (-O2):
define i64 @get_splitkexists_bit_LaceKVE_size(i64 %0) {
%2 = tail call i64 (...) @splitkexists_bit_LaceKVE_size()
%3 = and i64 %2, %0
ret i64 %3
}
/* Variables and functions */
int /*<<< orphan*/ printf(char *, int);
void puntoA_muestra(int a[], unsigned int n) {
  printf("%d", a[0]);
  if (--n > 0)
    puntoA_muestra(a + 1, n);
}


x86 assembly (clang, -O0):
<puntoA_muestra>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
mov    %rdi,-0x8(%rbp)
mov    %esi,-0xc(%rbp)
mov    -0x8(%rbp),%rax
mov    (%rax),%esi
lea    0xec4(%rip),%rdi
call   1030 <printf@plt>
mov    -0xc(%rbp),%eax
add    $0xffffffff,%eax
mov    %eax,-0xc(%rbp)
cmp    $0x0,%eax
jbe    1163 <puntoA_muestra+0x43>
mov    -0x8(%rbp),%rdi
add    $0x4,%rdi
mov    -0xc(%rbp),%esi
call   1040 <puntoA_muestra@plt>
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<puntoA_muestra>:
push   %r15
push   %r14
push   %r12
push   %rbx
push   %rax
mov    %rdi,%r15
mov    %esi,%r12d
xor    %ebx,%ebx
lea    0xed9(%rip),%r14
nopw   0x0(%rax,%rax,1)
mov    (%r15,%rbx,4),%esi
mov    %r14,%rdi
call   1030 <printf@plt>
add    $0x1,%rbx
cmp    %ebx,%r12d
jne    1130 <puntoA_muestra+0x20>
add    $0x8,%rsp
pop    %rbx
pop    %r12
pop    %r14
pop    %r15
ret

LLVM IR (-O0):
@.str = [3 x i8] c"%d\00"
define void @puntoA_muestra(i32* %0, i32 %1) {
%3 = alloca i32*
%4 = alloca i32
store i32* %0, i32** %3
store i32 %1, i32* %4
%5 = load i32*, i32** %3
%6 = getelementptr inbounds i32, i32* %5, i64 0
%7 = load i32, i32* %6
%8 = call i32 @printf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str, i64 0, i64 0), i32 %7)
%9 = load i32, i32* %4
%10 = add i32 %9, -1
store i32 %10, i32* %4
%11 = icmp ugt i32 %10, 0
br i1 %11, label %12, label %16
12: ; preds = %2
%13 = load i32*, i32** %3
%14 = getelementptr inbounds i32, i32* %13, i64 1
%15 = load i32, i32* %4
br label %16
16: ; preds = %12, %2
ret void
}

LLVM IR (-O2):
@.str = [3 x i8] c"%d\00"
define void @puntoA_muestra(i32* nocapture %0, i32 %1) {
br label %3
3: ; preds = %3, %2
%4 = phi i32* [ %0, %2 ], [ %10, %3 ]
%5 = phi i32 [ %1, %2 ], [ %8, %3 ]
%6 = load i32, i32* %4
%7 = tail call i32 @printf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str, i64 0, i64 0), i32 %6)
%8 = add i32 %5, -1
%9 = icmp eq i32 %8, 0
%10 = getelementptr inbounds i32, i32* %4, i64 1
br i1 %9, label %11, label %3
11: ; preds = %3
ret void
}
/* Variables and functions */
int /*<<< orphan*/ ORA_();
int /*<<< orphan*/ c64_memZero();
void ORA_zp(void) {
  c64_memZero();
  ORA_();
}


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

x86 assembly (clang, -O2):
<ORA_zp>:
push   %rax
xor    %eax,%eax
call   1030 <c64_memZero@plt>
xor    %eax,%eax
pop    %rcx
jmp    1040 <ORA_@plt>

LLVM IR (-O0):
define void @ORA_zp() {
%1 = call i32 (...) @c64_memZero()
%2 = call i32 (...) @ORA_()
ret void
}

LLVM IR (-O2):
define void @ORA_zp() {
%1 = tail call i32 (...) @c64_memZero()
%2 = tail call i32 (...) @ORA_()
ret void
}
double log(double d) { return 1; }


x86 assembly (clang, -O0):
<log>:
push   %rbp
mov    %rsp,%rbp
movsd  %xmm0,-0x8(%rbp)
movsd  0xeef(%rip),%xmm0
pop    %rbp
ret

x86 assembly (clang, -O2):
<log>:
movsd  0xef8(%rip),%xmm0
ret

LLVM IR (-O0):
define double @log(double %0) {
%2 = alloca double
store double %0, double* %2
ret double 1.000000e+00
}

LLVM IR (-O2):
define double @log(double %0) {
ret double 1.000000e+00
}
/* Type definitions */
typedef int /*<<< orphan*/ uint16_t;

/* Variables and functions */
int /*<<< orphan*/ inv_fifo_protocol_helper_decode_q30_quat(void const *,
                                                            int /*<<< orphan*/,
                                                            float *, float *,
                                                            float *, float *,
                                                            int /*<<< orphan*/);
void inv_fifo_protocol_helper_decode_grv_data(const void *in, uint16_t len,
                                              float *x, float *y, float *z,
                                              float *w) {
  inv_fifo_protocol_helper_decode_q30_quat(in, len, x, y, z, w, 0);
}


x86 assembly (clang, -O0):
<inv_fifo_protocol_helper_decode_grv_data>:
push   %rbp
mov    %rsp,%rbp
sub    $0x40,%rsp
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),%rdi
mov    -0xc(%rbp),%esi
mov    -0x18(%rbp),%rdx
mov    -0x20(%rbp),%rcx
mov    -0x28(%rbp),%r8
mov    -0x30(%rbp),%r9
xor    %eax,%eax
movl   $0x0,(%rsp)
call   1030 <inv_fifo_protocol_helper_decode_q30_quat@plt>
add    $0x40,%rsp
pop    %rbp
ret

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

LLVM IR (-O0):
define void @inv_fifo_protocol_helper_decode_grv_data(i8* %0, i32 %1, float* %2, float* %3, float* %4, float* %5) {
%7 = alloca i8*
%8 = alloca i32
%9 = alloca float*
%10 = alloca float*
%11 = alloca float*
%12 = alloca float*
store i8* %0, i8** %7
store i32 %1, i32* %8
store float* %2, float** %9
store float* %3, float** %10
store float* %4, float** %11
store float* %5, float** %12
%13 = load i8*, i8** %7
%14 = load i32, i32* %8
%15 = load float*, float** %9
%16 = load float*, float** %10
%17 = load float*, float** %11
%18 = load float*, float** %12
%19 = call i32 @inv_fifo_protocol_helper_decode_q30_quat(i8* %13, i32 %14, float* %15, float* %16, float* %17, float* %18, i32 0)
ret void
}

LLVM IR (-O2):
define void @inv_fifo_protocol_helper_decode_grv_data(i8* %0, i32 %1, float* %2, float* %3, float* %4, float* %5) {
%7 = tail call i32 @inv_fifo_protocol_helper_decode_q30_quat(i8* %0, i32 %1, float* %2, float* %3, float* %4, float* %5, i32 0)
ret void
}
/* Variables and functions */
int /*<<< orphan*/ exit(int);
int /*<<< orphan*/ printf(char *);
void help(void) {
  printf("jconv version Aug2000 JS (pnm-raw,pcx8,tga24)\n"
         "use: jconv [options] ?infile.pnm? ?outfile.pgm? ?ox? ?oy? ?dx? ?dy?\n"
         "options: -shrink -pbm -? -help\n"
         "example: jconv -shrink -pbm font.pbm font.pbm 0 0 0 0\n");
  exit(1);
}


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

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

LLVM IR (-O0):
@.str = [200 x i8] c"jconv version Aug2000 JS (pnm-raw,pcx8,tga24)\0Ause: jconv [options] ?infile.pnm? ?outfile.pgm? ?ox? ?oy? ?dx? ?dy?\0Aoptions: -shrink -pbm -? -help\0Aexample: jconv -shrink -pbm font.pbm font.pbm 0 0 0 0\0A\00"
define void @help() {
%1 = call i32 @printf(i8* getelementptr inbounds ([200 x i8], [200 x i8]* @.str, i64 0, i64 0))
%2 = call i32 @exit(i32 1)
unreachable
}

LLVM IR (-O2):
@str = [199 x i8] c"jconv version Aug2000 JS (pnm-raw,pcx8,tga24)\0Ause: jconv [options] ?infile.pnm? ?outfile.pgm? ?ox? ?oy? ?dx? ?dy?\0Aoptions: -shrink -pbm -? -help\0Aexample: jconv -shrink -pbm font.pbm font.pbm 0 0 0 0\00"
define void @help() {
%1 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([199 x i8], [199 x i8]* @str, i64 0, i64 0))
%2 = tail call i32 @exit(i32 1)
unreachable
}
/* Variables and functions */
int /*<<< orphan*/ Assert_real(int, char *, int, char *);
scalar_t__ isbdigit(int);
void t_isbdigit_0xef() {
  Assert_real((isbdigit(239) == 0),
              "/scratch/repos/new/home/jordi_armengol_estape/c-scraper/outputs/"
              "2022-01-22/02-19-57/repos/bitfixer/bitfixer/refs/heads/master/"
              "dg/z88dk/test/suites/ctype/test_isbdigit.c",
              1200, ("isbdigit should be 0 for 0xef"));
}


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

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

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

LLVM IR (-O2):
@.str = [169 x i8] c"/scratch/repos/new/home/jordi_armengol_estape/c-scraper/outputs/2022-01-22/02-19-57/repos/bitfixer/bitfixer/refs/heads/master/dg/z88dk/test/suites/ctype/test_isbdigit.c\00"
@.str.1 = [30 x i8] c"isbdigit should be 0 for 0xef\00"
define void @t_isbdigit_0xef() {
%1 = tail call i64 @isbdigit(i32 239)
%2 = icmp eq i64 %1, 0
%3 = zext i1 %2 to i32
%4 = tail call i32 @Assert_real(i32 %3, i8* getelementptr inbounds ([169 x i8], [169 x i8]* @.str, i64 0, i64 0), i32 1200, i8* getelementptr inbounds ([30 x i8], [30 x i8]* @.str.1, i64 0, i64 0))
ret void
}
void test_invalid_clause() {
  int i;
#pragma omp parallel
#pragma omp parallel for simd foo bar
  for (i = 0; i < 16; ++i)
    ;
}


x86 assembly (clang, -O0):
<test_invalid_clause>:
push   %rbp
mov    %rsp,%rbp
movl   $0x0,-0x4(%rbp)
cmpl   $0x10,-0x4(%rbp)
jge    1128 <test_invalid_clause+0x28>
jmp    111a <test_invalid_clause+0x1a>
mov    -0x4(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x4(%rbp)
jmp    110b <test_invalid_clause+0xb>
pop    %rbp
ret

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

LLVM IR (-O0):
define void @test_invalid_clause() {
%1 = alloca i32
store i32 0, i32* %1
br label %2
2: ; preds = %6, %0
%3 = load i32, i32* %1
%4 = icmp slt i32 %3, 16
br i1 %4, label %5, label %9
5: ; preds = %2
br label %6
6: ; preds = %5
%7 = load i32, i32* %1
%8 = add nsw i32 %7, 1
store i32 %8, i32* %1
br label %2
9: ; preds = %2
ret void
}

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

/* Variables and functions */
struct fsm *fsm_kleene_closure(struct fsm *, int);
struct fsm *fsm_kleene_plus(struct fsm *net) {
  return (fsm_kleene_closure(net, 1));
}


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

x86 assembly (clang, -O2):
<fsm_kleene_plus>:
mov    $0x1,%esi
jmp    1030 <fsm_kleene_closure@plt>

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

LLVM IR (-O2):
%struct.fsm = type { i32 }
define %struct.fsm* @fsm_kleene_plus(%struct.fsm* %0) {
%2 = tail call %struct.fsm* @fsm_kleene_closure(%struct.fsm* %0, i32 1)
ret %struct.fsm* %2
}
void ds_log_shutdown(void) {}


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

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

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

LLVM IR (-O2):
define void @ds_log_shutdown() {
ret void
}
void PKCS7_ENC_CONTENT_new(void) {}


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

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

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

LLVM IR (-O2):
define void @PKCS7_ENC_CONTENT_new() {
ret void
}
/* Variables and functions */
int /*<<< orphan*/ exit(int);
int /*<<< orphan*/ fprintf(int /*<<< orphan*/, char *, char *);
int /*<<< orphan*/ stderr;
void giveup(char *msg) {
  fprintf(stderr, "httpGate: %s\n", msg);
  exit(2);
}


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

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

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

LLVM IR (-O2):
@stderr = global i32 0
@.str = [14 x i8] c"httpGate: %s\0A\00"
define void @giveup(i8* %0) {
%2 = load i32, i32* @stderr
%3 = tail call i32 @fprintf(i32 %2, i8* getelementptr inbounds ([14 x i8], [14 x i8]* @.str, i64 0, i64 0), i8* %0)
%4 = tail call i32 @exit(i32 2)
unreachable
}
unsigned long pad_size(unsigned long x, unsigned long nearest) {
  unsigned long rem = x % nearest;
  return x + (rem ? (nearest - rem) : 0);
}


x86 assembly (clang, -O0):
<pad_size>:
push   %rbp
mov    %rsp,%rbp
mov    %rdi,-0x8(%rbp)
mov    %rsi,-0x10(%rbp)
mov    -0x8(%rbp),%rax
xor    %ecx,%ecx
mov    %ecx,%edx
divq   -0x10(%rbp)
mov    %rdx,-0x18(%rbp)
mov    -0x8(%rbp),%rax
mov    %rax,-0x20(%rbp)
cmpq   $0x0,-0x18(%rbp)
je     1140 <pad_size+0x40>
mov    -0x10(%rbp),%rax
sub    -0x18(%rbp),%rax
mov    %rax,-0x28(%rbp)
jmp    114b <pad_size+0x4b>
xor    %eax,%eax
mov    %rax,-0x28(%rbp)
jmp    114b <pad_size+0x4b>
mov    -0x20(%rbp),%rax
mov    -0x28(%rbp),%rcx
add    %rcx,%rax
pop    %rbp
ret

x86 assembly (clang, -O2):
<pad_size>:
mov    %rdi,%rax
or     %rsi,%rax
shr    $0x20,%rax
je     1116 <pad_size+0x16>
mov    %rdi,%rax
xor    %edx,%edx
div    %rsi
jmp    111c <pad_size+0x1c>
mov    %edi,%eax
xor    %edx,%edx
div    %esi
sub    %rdx,%rsi
test   %rdx,%rdx
cmove  %rdx,%rsi
add    %rdi,%rsi
mov    %rsi,%rax
ret

LLVM IR (-O0):
define i64 @pad_size(i64 %0, i64 %1) {
%3 = alloca i64
%4 = alloca i64
%5 = alloca i64
store i64 %0, i64* %3
store i64 %1, i64* %4
%6 = load i64, i64* %3
%7 = load i64, i64* %4
%8 = urem i64 %6, %7
store i64 %8, i64* %5
%9 = load i64, i64* %3
%10 = load i64, i64* %5
%11 = icmp ne i64 %10, 0
br i1 %11, label %12, label %16
12: ; preds = %2
%13 = load i64, i64* %4
%14 = load i64, i64* %5
%15 = sub i64 %13, %14
br label %17
16: ; preds = %2
br label %17
17: ; preds = %16, %12
%18 = phi i64 [ %15, %12 ], [ 0, %16 ]
%19 = add i64 %9, %18
ret i64 %19
}

LLVM IR (-O2):
define i64 @pad_size(i64 %0, i64 %1) {
%3 = urem i64 %0, %1
%4 = icmp eq i64 %3, 0
%5 = sub i64 %1, %3
%6 = select i1 %4, i64 0, i64 %5
%7 = add i64 %6, %0
ret i64 %7
}
void PrepareSetup(void) {}


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

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

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

LLVM IR (-O2):
define void @PrepareSetup() {
ret void
}
int foo(int a, int b) {
  int x, y;
  char z;
  x = y = z + x - y * z;
  x = y = z + x;
  z = x / z;
}


x86 assembly (clang, -O0):
<foo>:
push   %rbp
mov    %rsp,%rbp
mov    %edi,-0x8(%rbp)
mov    %esi,-0xc(%rbp)
movsbl -0x15(%rbp),%eax
add    -0x10(%rbp),%eax
mov    -0x14(%rbp),%ecx
movsbl -0x15(%rbp),%edx
imul   %edx,%ecx
sub    %ecx,%eax
mov    %eax,-0x14(%rbp)
mov    %eax,-0x10(%rbp)
movsbl -0x15(%rbp),%eax
add    -0x10(%rbp),%eax
mov    %eax,-0x14(%rbp)
mov    %eax,-0x10(%rbp)
mov    -0x10(%rbp),%eax
movsbl -0x15(%rbp),%ecx
cltd
idiv   %ecx
mov    %al,-0x15(%rbp)
mov    -0x4(%rbp),%eax
pop    %rbp
ret

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

LLVM IR (-O0):
define i32 @foo(i32 %0, i32 %1) {
%3 = alloca i32
%4 = alloca i32
%5 = alloca i32
%6 = alloca i32
%7 = alloca i32
%8 = alloca i8
store i32 %0, i32* %4
store i32 %1, i32* %5
%9 = load i8, i8* %8
%10 = sext i8 %9 to i32
%11 = load i32, i32* %6
%12 = add nsw i32 %10, %11
%13 = load i32, i32* %7
%14 = load i8, i8* %8
%15 = sext i8 %14 to i32
%16 = mul nsw i32 %13, %15
%17 = sub nsw i32 %12, %16
store i32 %17, i32* %7
store i32 %17, i32* %6
%18 = load i8, i8* %8
%19 = sext i8 %18 to i32
%20 = load i32, i32* %6
%21 = add nsw i32 %19, %20
store i32 %21, i32* %7
store i32 %21, i32* %6
%22 = load i32, i32* %6
%23 = load i8, i8* %8
%24 = sext i8 %23 to i32
%25 = sdiv i32 %22, %24
%26 = trunc i32 %25 to i8
store i8 %26, i8* %8
%27 = load i32, i32* %3
ret i32 %27
}

LLVM IR (-O2):
define i32 @foo(i32 %0, i32 %1) {
ret i32 undef
}
/* Variables and functions */
int /*<<< orphan*/ printf(char *, unsigned long long);
void writeDigit(unsigned long long i) { printf("%llu", i); }


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

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

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

LLVM IR (-O2):
@.str = [5 x i8] c"%llu\00"
define void @writeDigit(i64 %0) {
%2 = tail call i32 @printf(i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str, i64 0, i64 0), i64 %0)
ret void
}
int file_count_sortfn(const void *e1_in, const void *e2_in) {
  long long t1, t2;
  t1 = *((long long *)e1_in);
  t2 = *((long long *)e2_in);
  if (t1 < t2) {
    return (-1);
  } else if (t1 > t2) {
    return (1);
  } else {
    return (0);
  }
}


x86 assembly (clang, -O0):
<file_count_sortfn>:
push   %rbp
mov    %rsp,%rbp
mov    %rdi,-0x10(%rbp)
mov    %rsi,-0x18(%rbp)
mov    -0x10(%rbp),%rax
mov    (%rax),%rax
mov    %rax,-0x20(%rbp)
mov    -0x18(%rbp),%rax
mov    (%rax),%rax
mov    %rax,-0x28(%rbp)
mov    -0x20(%rbp),%rax
cmp    -0x28(%rbp),%rax
jge    113c <file_count_sortfn+0x3c>
movl   $0xffffffff,-0x4(%rbp)
jmp    115d <file_count_sortfn+0x5d>
mov    -0x20(%rbp),%rax
cmp    -0x28(%rbp),%rax
jle    1156 <file_count_sortfn+0x56>
movl   $0x1,-0x4(%rbp)
jmp    115d <file_count_sortfn+0x5d>
movl   $0x0,-0x4(%rbp)
mov    -0x4(%rbp),%eax
pop    %rbp
ret

x86 assembly (clang, -O2):
<file_count_sortfn>:
mov    (%rdi),%rax
xor    %ecx,%ecx
cmp    (%rsi),%rax
setg   %cl
mov    $0xffffffff,%eax
cmovge %ecx,%eax
ret

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

LLVM IR (-O2):
define i32 @file_count_sortfn(i8* nocapture %0, i8* nocapture %1) {
%3 = bitcast i8* %0 to i64*
%4 = load i64, i64* %3
%5 = bitcast i8* %1 to i64*
%6 = load i64, i64* %5
%7 = icmp slt i64 %4, %6
%8 = icmp sgt i64 %4, %6
%9 = zext i1 %8 to i32
%10 = select i1 %7, i32 -1, i32 %9
ret i32 %10
}
void INT_Excep_RSPI2_SPRI2(void) {}


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

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

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

LLVM IR (-O2):
define void @INT_Excep_RSPI2_SPRI2() {
ret void
}
/* Variables and functions */
int /*<<< orphan*/ DirectIndexedXE0(int);
int /*<<< orphan*/ LSR8(int /*<<< orphan*/);
void Op56E0M1(void) { LSR8(DirectIndexedXE0(3)); }


x86 assembly (clang, -O0):
<Op56E0M1>:
push   %rbp
mov    %rsp,%rbp
mov    $0x3,%edi
call   1030 <DirectIndexedXE0@plt>
mov    %eax,%edi
call   1040 <LSR8@plt>
pop    %rbp
ret

x86 assembly (clang, -O2):
<Op56E0M1>:
push   %rax
mov    $0x3,%edi
call   1030 <DirectIndexedXE0@plt>
mov    %eax,%edi
pop    %rax
jmp    1040 <LSR8@plt>

LLVM IR (-O0):
define void @Op56E0M1() {
%1 = call i32 @DirectIndexedXE0(i32 3)
%2 = call i32 @LSR8(i32 %1)
ret void
}

LLVM IR (-O2):
define void @Op56E0M1() {
%1 = tail call i32 @DirectIndexedXE0(i32 3)
%2 = tail call i32 @LSR8(i32 %1)
ret void
}
void TidyColib() {}


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

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

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

LLVM IR (-O2):
define void @TidyColib() {
ret void
}
void XSecurityRevokeAuthorization() {}


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

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

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

LLVM IR (-O2):
define void @XSecurityRevokeAuthorization() {
ret void
}
/* Variables and functions */
int sprintf(char *, char *, int);
char *print_hex(int i, char *output) {
  int len;
  len = sprintf(output, "0x%X", i);
  return output + len;
}


x86 assembly (clang, -O0):
<print_hex>:
push   %rbp
mov    %rsp,%rbp
sub    $0x20,%rsp
mov    %edi,-0x4(%rbp)
mov    %rsi,-0x10(%rbp)
mov    -0x10(%rbp),%rdi
mov    -0x4(%rbp),%edx
lea    0xed3(%rip),%rsi
call   1030 <sprintf@plt>
mov    %eax,-0x14(%rbp)
mov    -0x10(%rbp),%rax
movslq -0x14(%rbp),%rcx
add    %rcx,%rax
add    $0x20,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<print_hex>:
push   %rbx
mov    %rsi,%rbx
mov    %edi,%edx
lea    0xee3(%rip),%rsi
mov    %rbx,%rdi
call   1030 <sprintf@plt>
cltq
add    %rbx,%rax
pop    %rbx
ret

LLVM IR (-O0):
@.str = [5 x i8] c"0x%X\00"
define i8* @print_hex(i32 %0, i8* %1) {
%3 = alloca i32
%4 = alloca i8*
%5 = alloca i32
store i32 %0, i32* %3
store i8* %1, i8** %4
%6 = load i8*, i8** %4
%7 = load i32, i32* %3
%8 = call i32 @sprintf(i8* %6, i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str, i64 0, i64 0), i32 %7)
store i32 %8, i32* %5
%9 = load i8*, i8** %4
%10 = load i32, i32* %5
%11 = sext i32 %10 to i64
%12 = getelementptr inbounds i8, i8* %9, i64 %11
ret i8* %12
}

LLVM IR (-O2):
@.str = [5 x i8] c"0x%X\00"
define i8* @print_hex(i32 %0, i8* writeonly %1) {
%3 = tail call i32 @sprintf(i8* dereferenceable(1) %1, i8* dereferenceable(1) getelementptr inbounds ([5 x i8], [5 x i8]* @.str, i64 0, i64 0), i32 %0)
%4 = sext i32 %3 to i64
%5 = getelementptr inbounds i8, i8* %1, i64 %4
ret i8* %5
}
void bad(int a, int b) {}


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

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

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

LLVM IR (-O2):
define void @bad(i32 %0, i32 %1) {
ret void
}
/* Variables and functions */
int /*<<< orphan*/ printf(char *, char *, char *, char *);
int error(char *value) {
  printf("Error, argumentos no validos.Uso:\n\t%s head -N\n\t%s tail -N\n\t%s "
         "longlines -N\nN debe ser el numero de lineas que desea\n",
         value, value, value);
  return 1;
}


x86 assembly (clang, -O0):
<error>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
mov    %rdi,-0x8(%rbp)
mov    -0x8(%rbp),%rsi
mov    -0x8(%rbp),%rdx
mov    -0x8(%rbp),%rcx
lea    0xed1(%rip),%rdi
call   1030 <printf@plt>
mov    $0x1,%eax
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<error>:
push   %rax
mov    %rdi,%rcx
lea    0xee5(%rip),%rdi
mov    %rcx,%rsi
mov    %rcx,%rdx
call   1030 <printf@plt>
mov    $0x1,%eax
pop    %rcx
ret

LLVM IR (-O0):
@.str = [117 x i8] c"Error, argumentos no validos.Uso:\0A\09%s head -N\0A\09%s tail -N\0A\09%s longlines -N\0AN debe ser el numero de lineas que desea\0A\00"
define i32 @error(i8* %0) {
%2 = alloca i8*
store i8* %0, i8** %2
%3 = load i8*, i8** %2
%4 = load i8*, i8** %2
%5 = load i8*, i8** %2
%6 = call i32 @printf(i8* getelementptr inbounds ([117 x i8], [117 x i8]* @.str, i64 0, i64 0), i8* %3, i8* %4, i8* %5)
ret i32 1
}

LLVM IR (-O2):
@.str = [117 x i8] c"Error, argumentos no validos.Uso:\0A\09%s head -N\0A\09%s tail -N\0A\09%s longlines -N\0AN debe ser el numero de lineas que desea\0A\00"
define i32 @error(i8* %0) {
%2 = tail call i32 @printf(i8* getelementptr inbounds ([117 x i8], [117 x i8]* @.str, i64 0, i64 0), i8* %0, i8* %0, i8* %0)
ret i32 1
}
/* Type definitions */
typedef int /*<<< orphan*/ jmp_buf;

/* Variables and functions */
int /*<<< orphan*/ fun(int /*<<< orphan*/);
int /*<<< orphan*/ printf(char *, int);
scalar_t__ setjmp(int /*<<< orphan*/);
main() {
  register int a;
  jmp_buf jb;
  a = 88;
  if (setjmp(jb)) {
    printf("main: 2 - a = %d\n", a);
    return 0;
  }
  printf("main: 1 - a = %d\n", a);
  fun(jb);
  return 0;
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
movl   $0x0,-0x4(%rbp)
movl   $0x58,-0x8(%rbp)
mov    -0xc(%rbp),%edi
call   1050 <setjmp@plt>
cmp    $0x0,%rax
je     1173 <main+0x43>
mov    -0x8(%rbp),%esi
lea    0xe9e(%rip),%rdi
call   1040 <printf@plt>
movl   $0x0,-0x4(%rbp)
jmp    1191 <main+0x61>
mov    -0x8(%rbp),%esi
lea    0xe95(%rip),%rdi
call   1040 <printf@plt>
mov    -0xc(%rbp),%edi
call   1030 <fun@plt>
movl   $0x0,-0x4(%rbp)
mov    -0x4(%rbp),%eax
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %rax
call   1050 <setjmp@plt>
test   %rax,%rax
je     114e <main+0x1e>
lea    0xebe(%rip),%rdi
mov    $0x58,%esi
call   1040 <printf@plt>
jmp    1164 <main+0x34>
lea    0xebd(%rip),%rdi
mov    $0x58,%esi
call   1040 <printf@plt>
call   1030 <fun@plt>
xor    %eax,%eax
pop    %rcx
ret

LLVM IR (-O0):
@.str = [18 x i8] c"main: 2 - a = %d\0A\00"
@.str.1 = [18 x i8] c"main: 1 - a = %d\0A\00"
define i32 @main() {
%1 = alloca i32
%2 = alloca i32
%3 = alloca i32
store i32 0, i32* %1
store i32 88, i32* %2
%4 = load i32, i32* %3
%5 = call i64 @setjmp(i32 %4)
%6 = icmp ne i64 %5, 0
br i1 %6, label %7, label %10
7: ; preds = %0
%8 = load i32, i32* %2
%9 = call i32 @printf(i8* getelementptr inbounds ([18 x i8], [18 x i8]* @.str, i64 0, i64 0), i32 %8)
store i32 0, i32* %1
br label %15
10: ; preds = %0
%11 = load i32, i32* %2
%12 = call i32 @printf(i8* getelementptr inbounds ([18 x i8], [18 x i8]* @.str.1, i64 0, i64 0), i32 %11)
%13 = load i32, i32* %3
%14 = call i32 @fun(i32 %13)
store i32 0, i32* %1
br label %15
15: ; preds = %10, %7
%16 = load i32, i32* %1
ret i32 %16
}

LLVM IR (-O2):
@.str = [18 x i8] c"main: 2 - a = %d\0A\00"
@.str.1 = [18 x i8] c"main: 1 - a = %d\0A\00"
define i32 @main() {
%1 = tail call i64 @setjmp(i32 undef)
%2 = icmp eq i64 %1, 0
br i1 %2, label %5, label %3
3: ; preds = %0
%4 = tail call i32 @printf(i8* getelementptr inbounds ([18 x i8], [18 x i8]* @.str, i64 0, i64 0), i32 88)
br label %8
5: ; preds = %0
%6 = tail call i32 @printf(i8* getelementptr inbounds ([18 x i8], [18 x i8]* @.str.1, i64 0, i64 0), i32 88)
%7 = tail call i32 @fun(i32 undef)
br label %8
8: ; preds = %5, %3
ret i32 0
}
int test_imm_B5int32_mem(int *val) {
  return ((*val) & (0xB5 << 0)) ? -20 : -40;
}


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

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

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

LLVM IR (-O2):
define i32 @test_imm_B5int32_mem(i32* nocapture %0) {
%2 = load i32, i32* %0
%3 = and i32 %2, 181
%4 = icmp eq i32 %3, 0
%5 = select i1 %4, i32 -40, i32 -20
ret i32 %5
}
/* Variables and functions */
int asnReadEnum(long *, int);
int asnReadLength(long *);
int asnReadEnumL(long *value) {
  long length;
  if (asnReadLength(&length) == -1)
    return -1;
  return asnReadEnum(value, (int)length);
}


x86 assembly (clang, -O0):
<asnReadEnumL>:
push   %rbp
mov    %rsp,%rbp
sub    $0x20,%rsp
mov    %rdi,-0x10(%rbp)
lea    -0x18(%rbp),%rdi
call   1030 <asnReadLength@plt>
cmp    $0xffffffff,%eax
jne    114a <asnReadEnumL+0x2a>
movl   $0xffffffff,-0x4(%rbp)
jmp    115c <asnReadEnumL+0x3c>
mov    -0x10(%rbp),%rdi
mov    -0x18(%rbp),%rax
mov    %eax,%esi
call   1040 <asnReadEnum@plt>
mov    %eax,-0x4(%rbp)
mov    -0x4(%rbp),%eax
add    $0x20,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<asnReadEnumL>:
push   %rbx
sub    $0x10,%rsp
mov    %rdi,%rbx
lea    0x8(%rsp),%rdi
call   1030 <asnReadLength@plt>
cmp    $0xffffffff,%eax
je     1145 <asnReadEnumL+0x25>
mov    0x8(%rsp),%esi
mov    %rbx,%rdi
call   1040 <asnReadEnum@plt>
jmp    114a <asnReadEnumL+0x2a>
mov    $0xffffffff,%eax
add    $0x10,%rsp
pop    %rbx
ret

LLVM IR (-O0):
define i32 @asnReadEnumL(i64* %0) {
%2 = alloca i32
%3 = alloca i64*
%4 = alloca i64
store i64* %0, i64** %3
%5 = call i32 @asnReadLength(i64* %4)
%6 = icmp eq i32 %5, -1
br i1 %6, label %7, label %8
7: ; preds = %1
store i32 -1, i32* %2
br label %13
8: ; preds = %1
%9 = load i64*, i64** %3
%10 = load i64, i64* %4
%11 = trunc i64 %10 to i32
%12 = call i32 @asnReadEnum(i64* %9, i32 %11)
store i32 %12, i32* %2
br label %13
13: ; preds = %8, %7
%14 = load i32, i32* %2
ret i32 %14
}

LLVM IR (-O2):
define i32 @asnReadEnumL(i64* %0) {
%2 = alloca i64
%3 = bitcast i64* %2 to i8*
%4 = call i32 @asnReadLength(i64* %2)
%5 = icmp eq i32 %4, -1
br i1 %5, label %10, label %6
6: ; preds = %1
%7 = load i64, i64* %2
%8 = trunc i64 %7 to i32
%9 = call i32 @asnReadEnum(i64* %0, i32 %8)
br label %10
10: ; preds = %1, %6
%11 = phi i32 [ %9, %6 ], [ -1, %1 ]
ret i32 %11
}
/* Type definitions */
typedef int /*<<< orphan*/ uint64_t;

/* Variables and functions */
int /*<<< orphan*/ internal_fiat_p434_to_montgomery(uintptr_t, uintptr_t);
void fiat_p434_to_montgomery(uint64_t out1[7], const uint64_t arg1[7]) {
  internal_fiat_p434_to_montgomery((uintptr_t)out1, (uintptr_t)arg1);
}


x86 assembly (clang, -O0):
<fiat_p434_to_montgomery>:
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 <internal_fiat_p434_to_montgomery@plt>
add    $0x10,%rsp
pop    %rbp
ret

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

LLVM IR (-O0):
define void @fiat_p434_to_montgomery(i32* %0, i32* %1) {
%3 = alloca i32*
%4 = alloca i32*
store i32* %0, i32** %3
store i32* %1, i32** %4
%5 = load i32*, i32** %3
%6 = ptrtoint i32* %5 to i64
%7 = load i32*, i32** %4
%8 = ptrtoint i32* %7 to i64
%9 = call i32 @internal_fiat_p434_to_montgomery(i64 %6, i64 %8)
ret void
}

LLVM IR (-O2):
define void @fiat_p434_to_montgomery(i32* %0, i32* %1) {
%3 = ptrtoint i32* %0 to i64
%4 = ptrtoint i32* %1 to i64
%5 = tail call i32 @internal_fiat_p434_to_montgomery(i64 %3, i64 %4)
ret void
}
void sock_release_memcg(struct sock *sk) {}


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

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

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

LLVM IR (-O2):
%struct.sock = type opaque
define void @sock_release_memcg(%struct.sock* nocapture %0) {
ret void
}