xunge/DecIR huggingface dataset:
/* Type definitions */
typedef scalar_t__ __v4si;
typedef scalar_t__ __m128i;

/* Variables and functions */
__m128i __attribute__((__always___, __nodebug__))
_mm_sub_epi32(__m128i a, __m128i b) {
  return (__m128i)((__v4si)a - (__v4si)b);
}


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

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

LLVM IR (-O0):
define i64 @_mm_sub_epi32(i64 %0, i64 %1) {
%3 = alloca i64
%4 = alloca i64
store i64 %0, i64* %3
store i64 %1, i64* %4
%5 = load i64, i64* %3
%6 = load i64, i64* %4
%7 = sub nsw i64 %5, %6
ret i64 %7
}

LLVM IR (-O2):
define i64 @_mm_sub_epi32(i64 %0, i64 %1) {
%3 = sub nsw i64 %0, %1
ret i64 %3
}
void wifi_close_supplicant_connection() {}


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

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

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

LLVM IR (-O2):
define void @wifi_close_supplicant_connection() {
ret void
}
/* Type definitions */
typedef int uint8_t;
typedef int const uint16_t;

/* Variables and functions */
uint16_t ethernet_get_lentype(const uint8_t *p_ethernet) {
  return (p_ethernet[12] << 8) | p_ethernet[13];
}


x86 assembly (clang, -O0):
<ethernet_get_lentype>:
push   %rbp
mov    %rsp,%rbp
mov    %rdi,-0x8(%rbp)
mov    -0x8(%rbp),%rax
mov    0x30(%rax),%eax
shl    $0x8,%eax
mov    -0x8(%rbp),%rcx
or     0x34(%rcx),%eax
pop    %rbp
ret

x86 assembly (clang, -O2):
<ethernet_get_lentype>:
mov    0x30(%rdi),%eax
shl    $0x8,%eax
or     0x34(%rdi),%eax
ret

LLVM IR (-O0):
define i32 @ethernet_get_lentype(i32* %0) {
%2 = alloca i32*
store i32* %0, i32** %2
%3 = load i32*, i32** %2
%4 = getelementptr inbounds i32, i32* %3, i64 12
%5 = load i32, i32* %4
%6 = shl i32 %5, 8
%7 = load i32*, i32** %2
%8 = getelementptr inbounds i32, i32* %7, i64 13
%9 = load i32, i32* %8
%10 = or i32 %6, %9
ret i32 %10
}

LLVM IR (-O2):
define i32 @ethernet_get_lentype(i32* nocapture %0) {
%2 = getelementptr inbounds i32, i32* %0, i64 12
%3 = load i32, i32* %2
%4 = shl i32 %3, 8
%5 = getelementptr inbounds i32, i32* %0, i64 13
%6 = load i32, i32* %5
%7 = or i32 %4, %6
ret i32 %7
}
/* Type definitions */
struct ibv_pd {
  int dummy;
};
struct ibv_ah_attr {
  int dummy;
};
struct ibv_ah {
  int dummy;
};

/* Variables and functions */
struct ibv_ah *_create_ah(struct ibv_pd *, struct ibv_ah_attr *);
int /*<<< orphan*/ dmtcp_plugin_disable_ckpt();
int /*<<< orphan*/ dmtcp_plugin_enable_ckpt();
struct ibv_ah *ibv_create_ah(struct ibv_pd *pd, struct ibv_ah_attr *attr) {
  dmtcp_plugin_disable_ckpt();
  struct ibv_ah *rslt = _create_ah(pd, attr);
  dmtcp_plugin_enable_ckpt();
  return rslt;
}


x86 assembly (clang, -O0):
<ibv_create_ah>:
push   %rbp
mov    %rsp,%rbp
sub    $0x20,%rsp
mov    %rdi,-0x8(%rbp)
mov    %rsi,-0x10(%rbp)
mov    $0x0,%al
call   1040 <dmtcp_plugin_disable_ckpt@plt>
mov    -0x8(%rbp),%rdi
mov    -0x10(%rbp),%rsi
call   1030 <_create_ah@plt>
mov    %rax,-0x18(%rbp)
mov    $0x0,%al
call   1050 <dmtcp_plugin_enable_ckpt@plt>
mov    -0x18(%rbp),%rax
add    $0x20,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<ibv_create_ah>:
push   %r14
push   %rbx
push   %rax
mov    %rsi,%r14
mov    %rdi,%rbx
xor    %eax,%eax
call   1040 <dmtcp_plugin_disable_ckpt@plt>
mov    %rbx,%rdi
mov    %r14,%rsi
call   1030 <_create_ah@plt>
mov    %rax,%rbx
xor    %eax,%eax
call   1050 <dmtcp_plugin_enable_ckpt@plt>
mov    %rbx,%rax
add    $0x8,%rsp
pop    %rbx
pop    %r14
ret

LLVM IR (-O0):
%struct.ibv_ah = type { i32 }
%struct.ibv_pd = type { i32 }
%struct.ibv_ah_attr = type { i32 }
define %struct.ibv_ah* @ibv_create_ah(%struct.ibv_pd* %0, %struct.ibv_ah_attr* %1) {
%3 = alloca %struct.ibv_pd*
%4 = alloca %struct.ibv_ah_attr*
%5 = alloca %struct.ibv_ah*
store %struct.ibv_pd* %0, %struct.ibv_pd** %3
store %struct.ibv_ah_attr* %1, %struct.ibv_ah_attr** %4
%6 = call i32 (...) @dmtcp_plugin_disable_ckpt()
%7 = load %struct.ibv_pd*, %struct.ibv_pd** %3
%8 = load %struct.ibv_ah_attr*, %struct.ibv_ah_attr** %4
%9 = call %struct.ibv_ah* @_create_ah(%struct.ibv_pd* %7, %struct.ibv_ah_attr* %8)
store %struct.ibv_ah* %9, %struct.ibv_ah** %5
%10 = call i32 (...) @dmtcp_plugin_enable_ckpt()
%11 = load %struct.ibv_ah*, %struct.ibv_ah** %5
ret %struct.ibv_ah* %11
}

LLVM IR (-O2):
%struct.ibv_ah = type { i32 }
%struct.ibv_pd = type { i32 }
%struct.ibv_ah_attr = type { i32 }
define %struct.ibv_ah* @ibv_create_ah(%struct.ibv_pd* %0, %struct.ibv_ah_attr* %1) {
%3 = tail call i32 (...) @dmtcp_plugin_disable_ckpt()
%4 = tail call %struct.ibv_ah* @_create_ah(%struct.ibv_pd* %0, %struct.ibv_ah_attr* %1)
%5 = tail call i32 (...) @dmtcp_plugin_enable_ckpt()
ret %struct.ibv_ah* %4
}
void delay() {
  int i;
  for (i = 0; i < 500000; i++)
    ;
}


x86 assembly (clang, -O0):
<delay>:
push   %rbp
mov    %rsp,%rbp
movl   $0x0,-0x4(%rbp)
cmpl   $0x7a120,-0x4(%rbp)
jge    112b <delay+0x2b>
jmp    111d <delay+0x1d>
mov    -0x4(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x4(%rbp)
jmp    110b <delay+0xb>
pop    %rbp
ret

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

LLVM IR (-O0):
define void @delay() {
%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, 500000
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 @delay() {
ret void
}
__attribute__((visibility("default"))) void callpic_pop(void) {}


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

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

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

LLVM IR (-O2):
define void @callpic_pop() {
ret void
}
/* Variables and functions */
int /*<<< orphan*/ SetOutputEx(unsigned char, int, unsigned char);
void OffEx(unsigned char Outputs, unsigned char reset) {
  SetOutputEx(Outputs, 0x40, reset);
}


x86 assembly (clang, -O0):
<OffEx>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
mov    %sil,%al
mov    %dil,%cl
mov    %cl,-0x1(%rbp)
mov    %al,-0x2(%rbp)
mov    -0x1(%rbp),%al
mov    $0x40,%esi
movzbl %al,%edi
movzbl -0x2(%rbp),%edx
call   1030 <SetOutputEx@plt>
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<OffEx>:
mov    %esi,%edx
mov    $0x40,%esi
jmp    1030 <SetOutputEx@plt>

LLVM IR (-O0):
define void @OffEx(i8 zeroext %0, i8 zeroext %1) {
%3 = alloca i8
%4 = alloca i8
store i8 %0, i8* %3
store i8 %1, i8* %4
%5 = load i8, i8* %3
%6 = load i8, i8* %4
%7 = call i32 @SetOutputEx(i8 zeroext %5, i32 64, i8 zeroext %6)
ret void
}

LLVM IR (-O2):
define void @OffEx(i8 zeroext %0, i8 zeroext %1) {
%3 = tail call i32 @SetOutputEx(i8 zeroext %0, i32 64, i8 zeroext %1)
ret void
}
/* Variables and functions */
long unset_mark(long);
long set_mark(long i) {
  i = unset_mark(i);
  i += 1;
  return i;
}


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

x86 assembly (clang, -O2):
<set_mark>:
push   %rax
call   1030 <unset_mark@plt>
add    $0x1,%rax
pop    %rcx
ret

LLVM IR (-O0):
define i64 @set_mark(i64 %0) {
%2 = alloca i64
store i64 %0, i64* %2
%3 = load i64, i64* %2
%4 = call i64 @unset_mark(i64 %3)
store i64 %4, i64* %2
%5 = load i64, i64* %2
%6 = add nsw i64 %5, 1
store i64 %6, i64* %2
%7 = load i64, i64* %2
ret i64 %7
}

LLVM IR (-O2):
define i64 @set_mark(i64 %0) {
%2 = tail call i64 @unset_mark(i64 %0)
%3 = add nsw i64 %2, 1
ret i64 %3
}
int test_imm_C1int16_mem(short *val) {
  return ((*val) & (0xC1 << 0)) ? -20 : -40;
}


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

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

LLVM IR (-O0):
define i32 @test_imm_C1int16_mem(i16* %0) {
%2 = alloca i16*
store i16* %0, i16** %2
%3 = load i16*, i16** %2
%4 = load i16, i16* %3
%5 = sext i16 %4 to i32
%6 = and i32 %5, 193
%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_C1int16_mem(i16* nocapture %0) {
%2 = load i16, i16* %0
%3 = and i16 %2, 193
%4 = icmp eq i16 %3, 0
%5 = select i1 %4, i32 -40, i32 -20
ret i32 %5
}
void receive_words_from_user_that_he_or_she_needs_to_be_interpreted() {}


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

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

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

LLVM IR (-O2):
define void @receive_words_from_user_that_he_or_she_needs_to_be_interpreted() {
ret void
}
int reads(int size, int stride, char *buf) {
  int i, s = 0;
  for (i = 0; i < size; i += stride) {
    s |= buf[i];
  }
  return s;
}


x86 assembly (clang, -O0):
<reads>:
push   %rbp
mov    %rsp,%rbp
mov    %edi,-0x4(%rbp)
mov    %esi,-0x8(%rbp)
mov    %rdx,-0x10(%rbp)
movl   $0x0,-0x18(%rbp)
movl   $0x0,-0x14(%rbp)
mov    -0x14(%rbp),%eax
cmp    -0x4(%rbp),%eax
jge    1148 <reads+0x48>
mov    -0x10(%rbp),%rax
movslq -0x14(%rbp),%rcx
movsbl (%rax,%rcx,1),%eax
or     -0x18(%rbp),%eax
mov    %eax,-0x18(%rbp)
mov    -0x8(%rbp),%eax
add    -0x14(%rbp),%eax
mov    %eax,-0x14(%rbp)
jmp    111c <reads+0x1c>
mov    -0x18(%rbp),%eax
pop    %rbp
ret

x86 assembly (clang, -O2):
<reads>:
test   %edi,%edi
jle    111f <reads+0x1f>
movslq %esi,%r8
mov    %edi,%esi
xor    %edi,%edi
xor    %eax,%eax
nopl   (%rax)
movsbl (%rdx,%rdi,1),%ecx
or     %ecx,%eax
add    %r8,%rdi
cmp    %rsi,%rdi
jl     1110 <reads+0x10>
ret
xor    %eax,%eax
ret

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

LLVM IR (-O2):
define i32 @reads(i32 %0, i32 %1, i8* nocapture %2) {
%4 = icmp sgt i32 %0, 0
br i1 %4, label %5, label %17
5: ; preds = %3
%6 = sext i32 %1 to i64
%7 = zext i32 %0 to i64
br label %8
8: ; preds = %5, %8
%9 = phi i64 [ 0, %5 ], [ %15, %8 ]
%10 = phi i32 [ 0, %5 ], [ %14, %8 ]
%11 = getelementptr inbounds i8, i8* %2, i64 %9
%12 = load i8, i8* %11
%13 = sext i8 %12 to i32
%14 = or i32 %10, %13
%15 = add i64 %9, %6
%16 = icmp slt i64 %15, %7
br i1 %16, label %8, label %17
17: ; preds = %8, %3
%18 = phi i32 [ 0, %3 ], [ %14, %8 ]
ret i32 %18
}
long double floorl(long double x) {
  int xi = (int)x;
  return x < xi ? xi - 1 : xi;
}


x86 assembly (clang, -O0):
<floorl>:
push   %rbp
mov    %rsp,%rbp
fldt   0x10(%rbp)
fstpt  -0x10(%rbp)
fldt   -0x10(%rbp)
fnstcw -0x22(%rbp)
movzwl -0x22(%rbp),%eax
or     $0xc00,%eax
mov    %ax,-0x24(%rbp)
fldcw  -0x24(%rbp)
fistpl -0x1c(%rbp)
fldcw  -0x22(%rbp)
mov    -0x1c(%rbp),%eax
mov    %eax,-0x14(%rbp)
fldt   -0x10(%rbp)
mov    -0x14(%rbp),%eax
mov    %eax,-0x18(%rbp)
fildl  -0x18(%rbp)
fucomip %st(1),%st
fstp   %st(0)
jbe    1155 <floorl+0x55>
jmp    1147 <floorl+0x47>
mov    -0x14(%rbp),%eax
sub    $0x1,%eax
mov    %eax,-0x28(%rbp)
jmp    115b <floorl+0x5b>
mov    -0x14(%rbp),%eax
mov    %eax,-0x28(%rbp)
mov    -0x28(%rbp),%eax
mov    %eax,-0x20(%rbp)
fildl  -0x20(%rbp)
pop    %rbp
ret

x86 assembly (clang, -O2):
<floorl>:
fldt   0x8(%rsp)
fnstcw -0x10(%rsp)
movzwl -0x10(%rsp),%eax
or     $0xc00,%eax
mov    %ax,-0xe(%rsp)
fldcw  -0xe(%rsp)
fistl  -0xc(%rsp)
fldcw  -0x10(%rsp)
mov    -0xc(%rsp),%eax
mov    %eax,-0x8(%rsp)
fildl  -0x8(%rsp)
xor    %ecx,%ecx
fucomip %st(1),%st
fstp   %st(0)
seta   %cl
sub    %ecx,%eax
mov    %eax,-0x4(%rsp)
fildl  -0x4(%rsp)
ret

LLVM IR (-O0):
define x86_fp80 @floorl(x86_fp80 %0) {
%2 = alloca x86_fp80
%3 = alloca i32
store x86_fp80 %0, x86_fp80* %2
%4 = load x86_fp80, x86_fp80* %2
%5 = fptosi x86_fp80 %4 to i32
store i32 %5, i32* %3
%6 = load x86_fp80, x86_fp80* %2
%7 = load i32, i32* %3
%8 = sitofp i32 %7 to x86_fp80
%9 = fcmp olt x86_fp80 %6, %8
br i1 %9, label %10, label %13
10: ; preds = %1
%11 = load i32, i32* %3
%12 = sub nsw i32 %11, 1
br label %15
13: ; preds = %1
%14 = load i32, i32* %3
br label %15
15: ; preds = %13, %10
%16 = phi i32 [ %12, %10 ], [ %14, %13 ]
%17 = sitofp i32 %16 to x86_fp80
ret x86_fp80 %17
}

LLVM IR (-O2):
define x86_fp80 @floorl(x86_fp80 %0) {
%2 = fptosi x86_fp80 %0 to i32
%3 = sitofp i32 %2 to x86_fp80
%4 = fcmp ogt x86_fp80 %3, %0
%5 = sext i1 %4 to i32
%6 = add nsw i32 %5, %2
%7 = sitofp i32 %6 to x86_fp80
ret x86_fp80 %7
}
/* Variables and functions */
int ccnl_ccnb_mkField(unsigned char *, unsigned int, int, unsigned char *, int);
int ccnl_ccnb_mkBlob(unsigned char *out, unsigned int num, unsigned int tt,
                     char *cp, int cnt) {
  (void)tt;
  return ccnl_ccnb_mkField(out, num, 5, (unsigned char *)cp, cnt);
}


x86 assembly (clang, -O0):
<ccnl_ccnb_mkBlob>:
push   %rbp
mov    %rsp,%rbp
sub    $0x20,%rsp
mov    %rdi,-0x8(%rbp)
mov    %esi,-0xc(%rbp)
mov    %edx,-0x10(%rbp)
mov    %rcx,-0x18(%rbp)
mov    %r8d,-0x1c(%rbp)
mov    -0x8(%rbp),%rdi
mov    -0xc(%rbp),%esi
mov    -0x18(%rbp),%rcx
mov    -0x1c(%rbp),%r8d
mov    $0x5,%edx
call   1030 <ccnl_ccnb_mkField@plt>
add    $0x20,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<ccnl_ccnb_mkBlob>:
mov    $0x5,%edx
jmp    1030 <ccnl_ccnb_mkField@plt>

LLVM IR (-O0):
define i32 @ccnl_ccnb_mkBlob(i8* %0, i32 %1, i32 %2, i8* %3, i32 %4) {
%6 = alloca i8*
%7 = alloca i32
%8 = alloca i32
%9 = alloca i8*
%10 = alloca i32
store i8* %0, i8** %6
store i32 %1, i32* %7
store i32 %2, i32* %8
store i8* %3, i8** %9
store i32 %4, i32* %10
%11 = load i32, i32* %8
%12 = load i8*, i8** %6
%13 = load i32, i32* %7
%14 = load i8*, i8** %9
%15 = load i32, i32* %10
%16 = call i32 @ccnl_ccnb_mkField(i8* %12, i32 %13, i32 5, i8* %14, i32 %15)
ret i32 %16
}

LLVM IR (-O2):
define i32 @ccnl_ccnb_mkBlob(i8* %0, i32 %1, i32 %2, i8* %3, i32 %4) {
%6 = tail call i32 @ccnl_ccnb_mkField(i8* %0, i32 %1, i32 5, i8* %3, i32 %4)
ret i32 %6
}
/* Type definitions */
struct PostProcessor {
  int dummy;
};

/* Variables and functions */
int /*<<< orphan*/ free(struct PostProcessor *);
void postprocessor_free(struct PostProcessor *pp) { free(pp); }


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

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

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

LLVM IR (-O2):
%struct.PostProcessor = type { i32 }
define void @postprocessor_free(%struct.PostProcessor* nocapture %0) {
%2 = tail call i32 @free(%struct.PostProcessor* %0)
ret void
}
int fibonnaci(int n, int *c) {
  *c = *c + 1;
  if (n == 0 || n == 1)
    return n;
  return fibonnaci(n - 1, c) + fibonnaci(n - 2, c);
}


x86 assembly (clang, -O0):
<fibonnaci>:
push   %rbp
mov    %rsp,%rbp
sub    $0x20,%rsp
mov    %edi,-0x8(%rbp)
mov    %rsi,-0x10(%rbp)
mov    -0x10(%rbp),%rax
mov    (%rax),%ecx
add    $0x1,%ecx
mov    -0x10(%rbp),%rax
mov    %ecx,(%rax)
cmpl   $0x0,-0x8(%rbp)
je     1142 <fibonnaci+0x32>
cmpl   $0x1,-0x8(%rbp)
jne    114d <fibonnaci+0x3d>
mov    -0x8(%rbp),%eax
mov    %eax,-0x4(%rbp)
jmp    1178 <fibonnaci+0x68>
mov    -0x8(%rbp),%edi
sub    $0x1,%edi
mov    -0x10(%rbp),%rsi
call   1030 <fibonnaci@plt>
mov    %eax,-0x14(%rbp)
mov    -0x8(%rbp),%edi
sub    $0x2,%edi
mov    -0x10(%rbp),%rsi
call   1030 <fibonnaci@plt>
mov    %eax,%ecx
mov    -0x14(%rbp),%eax
add    %ecx,%eax
mov    %eax,-0x4(%rbp)
mov    -0x4(%rbp),%eax
add    $0x20,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<fibonnaci>:
push   %rbp
push   %r14
push   %rbx
addl   $0x1,(%rsi)
mov    %edi,%ebx
xor    %ebp,%ebp
cmp    $0x2,%edi
jb     1149 <fibonnaci+0x39>
mov    %rsi,%r14
xor    %ebp,%ebp
cs nopw 0x0(%rax,%rax,1)
nop
lea    -0x1(%rbx),%edi
mov    %r14,%rsi
call   1030 <fibonnaci@plt>
add    $0xfffffffe,%ebx
add    %eax,%ebp
addl   $0x1,(%r14)
cmp    $0x1,%ebx
ja     1130 <fibonnaci+0x20>
add    %ebx,%ebp
mov    %ebp,%eax
pop    %rbx
pop    %r14
pop    %rbp
ret

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

LLVM IR (-O2):
define i32 @fibonnaci(i32 %0, i32* %1) {
%3 = load i32, i32* %1
%4 = add nsw i32 %3, 1
store i32 %4, i32* %1
%5 = icmp ult i32 %0, 2
br i1 %5, label %16, label %6
6: ; preds = %2, %6
%7 = phi i32 [ %11, %6 ], [ %0, %2 ]
%8 = phi i32 [ %12, %6 ], [ 0, %2 ]
%9 = add nsw i32 %7, -1
%10 = tail call i32 @fibonnaci(i32 %9, i32* %1)
%11 = add nsw i32 %7, -2
%12 = add nsw i32 %10, %8
%13 = load i32, i32* %1
%14 = add nsw i32 %13, 1
store i32 %14, i32* %1
%15 = icmp ult i32 %11, 2
br i1 %15, label %16, label %6
16: ; preds = %6, %2
%17 = phi i32 [ 0, %2 ], [ %12, %6 ]
%18 = phi i32 [ %0, %2 ], [ %11, %6 ]
%19 = add nsw i32 %18, %17
ret i32 %19
}
void wl_net_free(void) {}


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

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

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

LLVM IR (-O2):
define void @wl_net_free() {
ret void
}
int max(const int a, const int b) { return ((a > b) ? a : b); }


x86 assembly (clang, -O0):
<max>:
push   %rbp
mov    %rsp,%rbp
mov    %edi,-0x4(%rbp)
mov    %esi,-0x8(%rbp)
mov    -0x4(%rbp),%eax
cmp    -0x8(%rbp),%eax
jle    1121 <max+0x21>
mov    -0x4(%rbp),%eax
mov    %eax,-0xc(%rbp)
jmp    1127 <max+0x27>
mov    -0x8(%rbp),%eax
mov    %eax,-0xc(%rbp)
mov    -0xc(%rbp),%eax
pop    %rbp
ret

x86 assembly (clang, -O2):
<max>:
mov    %esi,%eax
cmp    %esi,%edi
cmovg  %edi,%eax
ret

LLVM IR (-O0):
define i32 @max(i32 %0, i32 %1) {
%3 = alloca i32
%4 = alloca i32
store i32 %0, i32* %3
store i32 %1, i32* %4
%5 = load i32, i32* %3
%6 = load i32, i32* %4
%7 = icmp sgt i32 %5, %6
br i1 %7, label %8, label %10
8: ; preds = %2
%9 = load i32, i32* %3
br label %12
10: ; preds = %2
%11 = load i32, i32* %4
br label %12
12: ; preds = %10, %8
%13 = phi i32 [ %9, %8 ], [ %11, %10 ]
ret i32 %13
}

LLVM IR (-O2):
define i32 @max(i32 %0, i32 %1) {
%3 = icmp sgt i32 %0, %1
%4 = select i1 %3, i32 %0, i32 %1
ret i32 %4
}
/* Variables and functions */
int /*<<< orphan*/ Inst_Printf(char *, char *);
int /*<<< orphan*/ Label_Printf(char *);
void Dico_Long_Start(int nb_longs) {
  Label_Printf(".data");
  Inst_Printf(".align", "3");
}


x86 assembly (clang, -O0):
<Dico_Long_Start>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
mov    %edi,-0x4(%rbp)
lea    0xece(%rip),%rdi
call   1040 <Label_Printf@plt>
lea    0xec8(%rip),%rdi
lea    0xec8(%rip),%rsi
call   1030 <Inst_Printf@plt>
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<Dico_Long_Start>:
push   %rax
lea    0xed8(%rip),%rdi
call   1040 <Label_Printf@plt>
lea    0xed2(%rip),%rdi
lea    0xed2(%rip),%rsi
pop    %rax
jmp    1030 <Inst_Printf@plt>

LLVM IR (-O0):
@.str = [6 x i8] c".data\00"
@.str.1 = [7 x i8] c".align\00"
@.str.2 = [2 x i8] c"3\00"
define void @Dico_Long_Start(i32 %0) {
%2 = alloca i32
store i32 %0, i32* %2
%3 = call i32 @Label_Printf(i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str, i64 0, i64 0))
%4 = call i32 @Inst_Printf(i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.1, i64 0, i64 0), i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.2, i64 0, i64 0))
ret void
}

LLVM IR (-O2):
@.str = [6 x i8] c".data\00"
@.str.1 = [7 x i8] c".align\00"
@.str.2 = [2 x i8] c"3\00"
define void @Dico_Long_Start(i32 %0) {
%2 = tail call i32 @Label_Printf(i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str, i64 0, i64 0))
%3 = tail call i32 @Inst_Printf(i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.1, i64 0, i64 0), i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.2, i64 0, i64 0))
ret void
}
void path_010_expected_3(int a) {
  switch (a) {
  case 0:
    break;
  case 1:
    break;
  }
}


x86 assembly (clang, -O0):
<path_010_expected_3>:
push   %rbp
mov    %rsp,%rbp
mov    %edi,-0x4(%rbp)
mov    -0x4(%rbp),%eax
mov    %eax,-0x8(%rbp)
test   %eax,%eax
je     112b <path_010_expected_3+0x2b>
jmp    111a <path_010_expected_3+0x1a>
mov    -0x8(%rbp),%eax
sub    $0x1,%eax
je     1130 <path_010_expected_3+0x30>
jmp    1135 <path_010_expected_3+0x35>
jmp    1135 <path_010_expected_3+0x35>
jmp    1135 <path_010_expected_3+0x35>
pop    %rbp
ret

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

LLVM IR (-O0):
define void @path_010_expected_3(i32 %0) {
%2 = alloca i32
store i32 %0, i32* %2
%3 = load i32, i32* %2
switch i32 %3, label %6 [
i32 0, label %4
i32 1, label %5
]
4: ; preds = %1
br label %6
5: ; preds = %1
br label %6
6: ; preds = %1, %5, %4
ret void
}

LLVM IR (-O2):
define void @path_010_expected_3(i32 %0) {
ret void
}
/* Variables and functions */
int /*<<< orphan*/ printf(char *);
void cough(void) { printf("cough\n"); }


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

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

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

LLVM IR (-O2):
@str = [6 x i8] c"cough\00"
define void @cough() {
%1 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([6 x i8], [6 x i8]* @str, i64 0, i64 0))
ret void
}
void I2CMasterIntEnable(unsigned long ulBase) {
  ;
  (*((volatile unsigned long *)(ulBase + 0x00000010))) = 1;
}


x86 assembly (clang, -O0):
<I2CMasterIntEnable>:
push   %rbp
mov    %rsp,%rbp
mov    %rdi,-0x8(%rbp)
mov    -0x8(%rbp),%rax
movq   $0x1,0x10(%rax)
pop    %rbp
ret

x86 assembly (clang, -O2):
<I2CMasterIntEnable>:
movq   $0x1,0x10(%rdi)
ret

LLVM IR (-O0):
define void @I2CMasterIntEnable(i64 %0) {
%2 = alloca i64
store i64 %0, i64* %2
%3 = load i64, i64* %2
%4 = add i64 %3, 16
%5 = inttoptr i64 %4 to i64*
store volatile i64 1, i64* %5
ret void
}

LLVM IR (-O2):
define void @I2CMasterIntEnable(i64 %0) {
%2 = add i64 %0, 16
%3 = inttoptr i64 %2 to i64*
store volatile i64 1, i64* %3
ret void
}
int LLVMFuzzerTestOneInput(const char *Data, long Size) { return 0; }


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

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

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

LLVM IR (-O2):
define i32 @LLVMFuzzerTestOneInput(i8* nocapture readnone %0, i64 %1) {
ret i32 0
}
/* Variables and functions */
int /*<<< orphan*/ printf(char *);
int pa_autospawn_lock_init() {
  printf("NOT IMPLEMENTED:"
         "pa_autospawn_lock_init"
         "\n");
}


x86 assembly (clang, -O0):
<pa_autospawn_lock_init>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
lea    0xee1(%rip),%rdi
call   1030 <printf@plt>
mov    -0x4(%rbp),%eax
add    $0x10,%rsp
pop    %rbp
ret

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

LLVM IR (-O0):
@.str = [40 x i8] c"NOT IMPLEMENTED:pa_autospawn_lock_init\0A\00"
define i32 @pa_autospawn_lock_init() {
%1 = alloca i32
%2 = call i32 @printf(i8* getelementptr inbounds ([40 x i8], [40 x i8]* @.str, i64 0, i64 0))
%3 = load i32, i32* %1
ret i32 %3
}

LLVM IR (-O2):
@str = [39 x i8] c"NOT IMPLEMENTED:pa_autospawn_lock_init\00"
define i32 @pa_autospawn_lock_init() {
%1 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([39 x i8], [39 x i8]* @str, i64 0, i64 0))
ret i32 undef
}
int myisdigit(int chr) {
  if ((chr >= '0') && (chr <= '9'))
    return (1);
  if (chr == '-')
    return (1);
  return (0);
}


x86 assembly (clang, -O0):
<myisdigit>:
push   %rbp
mov    %rsp,%rbp
mov    %edi,-0x8(%rbp)
cmpl   $0x30,-0x8(%rbp)
jl     1127 <myisdigit+0x27>
cmpl   $0x39,-0x8(%rbp)
jg     1127 <myisdigit+0x27>
movl   $0x1,-0x4(%rbp)
jmp    1144 <myisdigit+0x44>
cmpl   $0x2d,-0x8(%rbp)
jne    113d <myisdigit+0x3d>
movl   $0x1,-0x4(%rbp)
jmp    1144 <myisdigit+0x44>
movl   $0x0,-0x4(%rbp)
mov    -0x4(%rbp),%eax
pop    %rbp
ret

x86 assembly (clang, -O2):
<myisdigit>:
lea    -0x30(%rdi),%eax
cmp    $0xa,%eax
setb   %al
cmp    $0x2d,%edi
sete   %cl
or     %al,%cl
movzbl %cl,%eax
ret

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

LLVM IR (-O2):
define i32 @myisdigit(i32 %0) {
%2 = add i32 %0, -48
%3 = icmp ult i32 %2, 10
%4 = icmp eq i32 %0, 45
%5 = or i1 %4, %3
%6 = zext i1 %5 to i32
ret i32 %6
}
/* Variables and functions */
void stub1(double, char);
void testClosureDBrV(void (*closure)(double, char), double a1, char a2) {
  if (closure != NULL)
    (*closure)(a1, a2);
}


x86 assembly (clang, -O0):
<testClosureDBrV>:
push   %rbp
mov    %rsp,%rbp
sub    $0x20,%rsp
mov    %sil,%al
mov    %rdi,-0x8(%rbp)
movsd  %xmm0,-0x10(%rbp)
mov    %al,-0x11(%rbp)
cmpq   $0x0,-0x8(%rbp)
je     1131 <testClosureDBrV+0x31>
mov    -0x8(%rbp),%rax
movsd  -0x10(%rbp),%xmm0
movsbl -0x11(%rbp),%edi
call   *%rax
add    $0x20,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<testClosureDBrV>:
test   %rdi,%rdi
je     110e <testClosureDBrV+0xe>
mov    %rdi,%rax
movsbl %sil,%edi
jmp    *%rax
ret

LLVM IR (-O0):
define void @testClosureDBrV(void (double, i8)* %0, double %1, i8 signext %2) {
%4 = alloca void (double, i8)*
%5 = alloca double
%6 = alloca i8
store void (double, i8)* %0, void (double, i8)** %4
store double %1, double* %5
store i8 %2, i8* %6
%7 = load void (double, i8)*, void (double, i8)** %4
%8 = icmp ne void (double, i8)* %7, null
br i1 %8, label %9, label %13
9: ; preds = %3
%10 = load void (double, i8)*, void (double, i8)** %4
%11 = load double, double* %5
%12 = load i8, i8* %6
br label %13
13: ; preds = %9, %3
ret void
}

LLVM IR (-O2):
define void @testClosureDBrV(void (double, i8)* %0, double %1, i8 signext %2) {
%4 = icmp eq void (double, i8)* %0, null
br i1 %4, label %6, label %5
5: ; preds = %3
tail call void %0(double %1, i8 signext %2)
br label %6
6: ; preds = %5, %3
ret void
}
/* Type definitions */
typedef int /*<<< orphan*/ wchar_t;

/* Variables and functions */
int /*<<< orphan*/ wcscat(int /*<<< orphan*/ *, int /*<<< orphan*/ const *);
wchar_t *n2a_wcscat(wchar_t *dest, size_t sizeOfBuffer, const wchar_t *src) {
  wcscat(dest, src);
  return dest;
}


x86 assembly (clang, -O0):
<n2a_wcscat>:
push   %rbp
mov    %rsp,%rbp
sub    $0x20,%rsp
mov    %rdi,-0x8(%rbp)
mov    %rsi,-0x10(%rbp)
mov    %rdx,-0x18(%rbp)
mov    -0x8(%rbp),%rdi
mov    -0x18(%rbp),%rsi
call   1030 <wcscat@plt>
mov    -0x8(%rbp),%rax
add    $0x20,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<n2a_wcscat>:
push   %rbx
mov    %rdi,%rbx
mov    %rdx,%rsi
call   1030 <wcscat@plt>
mov    %rbx,%rax
pop    %rbx
ret

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

LLVM IR (-O2):
define i32* @n2a_wcscat(i32* returned %0, i64 %1, i32* %2) {
%4 = tail call i32 @wcscat(i32* %0, i32* %2)
ret i32* %0
}
/* Variables and functions */
int /*<<< orphan*/ printf(char *);
void imprimir() { printf("Ola mundo!\n"); }


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

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

LLVM IR (-O0):
@.str = [12 x i8] c"Ola mundo!\0A\00"
define void @imprimir() {
%1 = call i32 @printf(i8* getelementptr inbounds ([12 x i8], [12 x i8]* @.str, i64 0, i64 0))
ret void
}

LLVM IR (-O2):
@str = [11 x i8] c"Ola mundo!\00"
define void @imprimir() {
%1 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([11 x i8], [11 x i8]* @str, i64 0, i64 0))
ret void
}
/* Type definitions */
struct ldata_entry {
  int dummy;
};

/* Variables and functions */
int /*<<< orphan*/ free(struct ldata_entry *);
void ldata_free(struct ldata_entry *entry) { free(entry); }


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

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

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

LLVM IR (-O2):
%struct.ldata_entry = type { i32 }
define void @ldata_free(%struct.ldata_entry* nocapture %0) {
%2 = tail call i32 @free(%struct.ldata_entry* %0)
ret void
}
/* Type definitions */
typedef int /*<<< orphan*/ FILE;

/* Variables and functions */
int /*<<< orphan*/ exit(int /*<<< orphan*/);
int /*<<< orphan*/ *fopen(char *, char *);
int /*<<< orphan*/ printf(char *);
void exists(char *filename) {
  FILE *filecheck = fopen(filename, "rb");
  if (filecheck == NULL) {
    printf("the file you are trying to remove doesn't exists\n");
    exit(0);
  }
}


x86 assembly (clang, -O0):
<exists>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
mov    %rdi,-0x8(%rbp)
mov    -0x8(%rbp),%rdi
lea    0xeb9(%rip),%rsi
call   1040 <fopen@plt>
mov    %rax,-0x10(%rbp)
cmpq   $0x0,-0x10(%rbp)
jne    116e <exists+0x3e>
lea    0xea1(%rip),%rdi
call   1030 <printf@plt>
xor    %edi,%edi
call   1050 <exit@plt>
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<exists>:
push   %rax
lea    0xec8(%rip),%rsi
call   1040 <fopen@plt>
test   %rax,%rax
je     1144 <exists+0x14>
pop    %rax
ret
lea    0xeb8(%rip),%rdi
call   1030 <puts@plt>
xor    %edi,%edi
call   1050 <exit@plt>

LLVM IR (-O0):
@.str = [3 x i8] c"rb\00"
@.str.1 = [50 x i8] c"the file you are trying to remove doesn't exists\0A\00"
define void @exists(i8* %0) {
%2 = alloca i8*
%3 = alloca i32*
store i8* %0, i8** %2
%4 = load i8*, i8** %2
%5 = call i32* @fopen(i8* %4, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str, i64 0, i64 0))
store i32* %5, i32** %3
%6 = load i32*, i32** %3
%7 = icmp eq i32* %6, null
br i1 %7, label %8, label %11
8: ; preds = %1
%9 = call i32 @printf(i8* getelementptr inbounds ([50 x i8], [50 x i8]* @.str.1, i64 0, i64 0))
%10 = call i32 @exit(i32 0)
unreachable
11: ; preds = %1
ret void
}

LLVM IR (-O2):
@.str = [3 x i8] c"rb\00"
@str = [49 x i8] c"the file you are trying to remove doesn't exists\00"
define void @exists(i8* nocapture %0) {
%2 = tail call i32* @fopen(i8* %0, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str, i64 0, i64 0))
%3 = icmp eq i32* %2, null
br i1 %3, label %4, label %7
4: ; preds = %1
%5 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([49 x i8], [49 x i8]* @str, i64 0, i64 0))
%6 = tail call i32 @exit(i32 0)
unreachable
7: ; preds = %1
ret void
}
/* Variables and functions */
int /*<<< orphan*/ blinkdash();
int /*<<< orphan*/ blinkdot();
int /*<<< orphan*/ sleep(double);
int blinkR() {
  blinkdot();
  blinkdash();
  blinkdot();
  sleep(1.5);
  return 0;
}


x86 assembly (clang, -O0):
<blinkR>:
push   %rbp
mov    %rsp,%rbp
mov    $0x0,%al
call   1030 <blinkdot@plt>
mov    $0x0,%al
call   1040 <blinkdash@plt>
mov    $0x0,%al
call   1030 <blinkdot@plt>
movsd  0xeaf(%rip),%xmm0
call   1050 <sleep@plt>
xor    %eax,%eax
pop    %rbp
ret

x86 assembly (clang, -O2):
<blinkR>:
push   %rax
xor    %eax,%eax
call   1030 <blinkdot@plt>
xor    %eax,%eax
call   1040 <blinkdash@plt>
xor    %eax,%eax
call   1030 <blinkdot@plt>
movsd  0xeb2(%rip),%xmm0
call   1050 <sleep@plt>
xor    %eax,%eax
pop    %rcx
ret

LLVM IR (-O0):
define i32 @blinkR() {
%1 = call i32 (...) @blinkdot()
%2 = call i32 (...) @blinkdash()
%3 = call i32 (...) @blinkdot()
%4 = call i32 @sleep(double 1.500000e+00)
ret i32 0
}

LLVM IR (-O2):
define i32 @blinkR() {
%1 = tail call i32 (...) @blinkdot()
%2 = tail call i32 (...) @blinkdash()
%3 = tail call i32 (...) @blinkdot()
%4 = tail call i32 @sleep(double 1.500000e+00)
ret i32 0
}
/* Variables and functions */
int f64(int *);
int f65(int *p) { return f64(p); }


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

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

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

LLVM IR (-O2):
define i32 @f65(i32* %0) {
%2 = tail call i32 @f64(i32* %0)
ret i32 %2
}
int pathcon_nm7_f0(const double **arg, double **res, int *iw, double *w,
                   int mem) {
  return 0;
}


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

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

LLVM IR (-O0):
define i32 @pathcon_nm7_f0(double** %0, double** %1, i32* %2, double* %3, i32 %4) {
%6 = alloca double**
%7 = alloca double**
%8 = alloca i32*
%9 = alloca double*
%10 = alloca i32
store double** %0, double*** %6
store double** %1, double*** %7
store i32* %2, i32** %8
store double* %3, double** %9
store i32 %4, i32* %10
ret i32 0
}

LLVM IR (-O2):
define i32 @pathcon_nm7_f0(double** nocapture readnone %0, double** nocapture readnone %1, i32* nocapture readnone %2, double* nocapture readnone %3, i32 %4) {
ret i32 0
}
/* Variables and functions */
int UINT_MAX;
int /*<<< orphan*/ printf(char *, int);
int main() { printf("UINT_MAX %u", UINT_MAX); }


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
mov    0x2ecd(%rip),%rax
mov    (%rax),%esi
lea    0xedc(%rip),%rdi
call   1030 <printf@plt>
xor    %eax,%eax
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %rax
mov    0x2ed0(%rip),%rax
mov    (%rax),%esi
lea    0xedf(%rip),%rdi
call   1030 <printf@plt>
xor    %eax,%eax
pop    %rcx
ret

LLVM IR (-O0):
@.str = [12 x i8] c"UINT_MAX %u\00"
@UINT_MAX = global i32 0
define i32 @main() {
%1 = load i32, i32* @UINT_MAX
%2 = call i32 @printf(i8* getelementptr inbounds ([12 x i8], [12 x i8]* @.str, i64 0, i64 0), i32 %1)
ret i32 0
}

LLVM IR (-O2):
@.str = [12 x i8] c"UINT_MAX %u\00"
@UINT_MAX = global i32 0
define i32 @main() {
%1 = load i32, i32* @UINT_MAX
%2 = tail call i32 @printf(i8* getelementptr inbounds ([12 x i8], [12 x i8]* @.str, i64 0, i64 0), i32 %1)
ret i32 0
}
/* Variables and functions */
int /*<<< orphan*/ Usart_PutChar(int /*<<< orphan*/);
void UsartHardware_TransmitString(char *data) {
  while (*data != (0)) {
    Usart_PutChar(*data++);
  }
}


x86 assembly (clang, -O0):
<UsartHardware_TransmitString>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
mov    %rdi,-0x8(%rbp)
mov    -0x8(%rbp),%rax
movsbl (%rax),%eax
cmp    $0x0,%eax
je     1148 <UsartHardware_TransmitString+0x38>
mov    -0x8(%rbp),%rax
mov    %rax,%rcx
add    $0x1,%rcx
mov    %rcx,-0x8(%rbp)
movsbl (%rax),%edi
call   1030 <Usart_PutChar@plt>
jmp    111c <UsartHardware_TransmitString+0xc>
add    $0x10,%rsp
pop    %rbp
ret

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

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

LLVM IR (-O2):
define void @UsartHardware_TransmitString(i8* nocapture %0) {
%2 = load i8, i8* %0
%3 = icmp eq i8 %2, 0
br i1 %3, label %12, label %4
4: ; preds = %1, %4
%5 = phi i8 [ %10, %4 ], [ %2, %1 ]
%6 = phi i8* [ %8, %4 ], [ %0, %1 ]
%7 = sext i8 %5 to i32
%8 = getelementptr inbounds i8, i8* %6, i64 1
%9 = tail call i32 @Usart_PutChar(i32 %7)
%10 = load i8, i8* %8
%11 = icmp eq i8 %10, 0
br i1 %11, label %12, label %4
12: ; preds = %4, %1
ret void
}
void g_dir_rewind() {}


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

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

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

LLVM IR (-O2):
define void @g_dir_rewind() {
ret void
}
int mon_isdigit(int c) { return c >= '0' && c <= '9'; }


x86 assembly (clang, -O0):
<mon_isdigit>:
push   %rbp
mov    %rsp,%rbp
mov    %edi,-0x4(%rbp)
xor    %eax,%eax
cmpl   $0x30,-0x4(%rbp)
mov    %al,-0x5(%rbp)
jl     1120 <mon_isdigit+0x20>
cmpl   $0x39,-0x4(%rbp)
setle  %al
mov    %al,-0x5(%rbp)
mov    -0x5(%rbp),%al
and    $0x1,%al
movzbl %al,%eax
pop    %rbp
ret

x86 assembly (clang, -O2):
<mon_isdigit>:
add    $0xffffffd0,%edi
xor    %eax,%eax
cmp    $0xa,%edi
setb   %al
ret

LLVM IR (-O0):
define i32 @mon_isdigit(i32 %0) {
%2 = alloca i32
store i32 %0, i32* %2
%3 = load i32, i32* %2
%4 = icmp sge i32 %3, 48
br i1 %4, label %5, label %8
5: ; preds = %1
%6 = load i32, i32* %2
%7 = icmp sle i32 %6, 57
br label %8
8: ; preds = %5, %1
%9 = phi i1 [ false, %1 ], [ %7, %5 ]
%10 = zext i1 %9 to i32
ret i32 %10
}

LLVM IR (-O2):
define i32 @mon_isdigit(i32 %0) {
%2 = add i32 %0, -48
%3 = icmp ult i32 %2, 10
%4 = zext i1 %3 to i32
ret i32 %4
}
/* Variables and functions */
scalar_t__ strrchr(char *, char);
char *file_extension(char *filename) {
  char *dot = (char *)strrchr(filename, '.');
  if (!dot || dot == filename)
    return "";
  return dot + 1;
}


x86 assembly (clang, -O0):
<file_extension>:
push   %rbp
mov    %rsp,%rbp
sub    $0x20,%rsp
mov    %rdi,-0x10(%rbp)
mov    -0x10(%rbp),%rdi
mov    $0x2e,%esi
call   1030 <strrchr@plt>
mov    %rax,-0x18(%rbp)
cmpq   $0x0,-0x18(%rbp)
je     1147 <file_extension+0x37>
mov    -0x18(%rbp),%rax
cmp    -0x10(%rbp),%rax
jne    1157 <file_extension+0x47>
lea    0xeb2(%rip),%rax
mov    %rax,-0x8(%rbp)
jmp    1163 <file_extension+0x53>
mov    -0x18(%rbp),%rax
add    $0x1,%rax
mov    %rax,-0x8(%rbp)
mov    -0x8(%rbp),%rax
add    $0x20,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<file_extension>:
push   %rbx
mov    %rdi,%rbx
mov    $0x2e,%esi
call   1030 <strrchr@plt>
lea    0x1(%rax),%rcx
cmp    %rbx,%rax
lea    0xed4(%rip),%rdx
cmove  %rdx,%rcx
test   %rax,%rax
cmove  %rdx,%rcx
mov    %rcx,%rax
pop    %rbx
ret

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

LLVM IR (-O2):
@.str = [1 x i8] zeroinitializer
define i8* @file_extension(i8* %0) {
%2 = tail call i64 @strrchr(i8* %0, i8 signext 46)
%3 = inttoptr i64 %2 to i8*
%4 = icmp eq i64 %2, 0
%5 = icmp eq i8* %3, %0
%6 = or i1 %4, %5
%7 = getelementptr inbounds i8, i8* %3, i64 1
%8 = select i1 %6, i8* getelementptr inbounds ([1 x i8], [1 x i8]* @.str, i64 0, i64 0), i8* %7
ret i8* %8
}
unsigned long msecs_to_jiffies(const unsigned int m) {
  return m * 1000L * 1000L;
}


x86 assembly (clang, -O0):
<msecs_to_jiffies>:
push   %rbp
mov    %rsp,%rbp
mov    %edi,-0x4(%rbp)
mov    -0x4(%rbp),%eax
imul   $0x3e8,%rax,%rax
imul   $0x3e8,%rax,%rax
pop    %rbp
ret

x86 assembly (clang, -O2):
<msecs_to_jiffies>:
mov    %edi,%eax
imul   $0xf4240,%rax,%rax
ret

LLVM IR (-O0):
define i64 @msecs_to_jiffies(i32 %0) {
%2 = alloca i32
store i32 %0, i32* %2
%3 = load i32, i32* %2
%4 = zext i32 %3 to i64
%5 = mul nsw i64 %4, 1000
%6 = mul nsw i64 %5, 1000
ret i64 %6
}

LLVM IR (-O2):
define i64 @msecs_to_jiffies(i32 %0) {
%2 = zext i32 %0 to i64
%3 = mul nuw nsw i64 %2, 1000000
ret i64 %3
}
/* Type definitions */
typedef int ssize_t;

/* Variables and functions */
int /*<<< orphan*/ swab(char *, char *, int);
void overlappingWriteFunction_swab(char *src, char *dest, ssize_t n) {
  swab(dest, src, n);
  swab(src, src + 3, 4);
}


x86 assembly (clang, -O0):
<overlappingWriteFunction_swab>:
push   %rbp
mov    %rsp,%rbp
sub    $0x20,%rsp
mov    %rdi,-0x8(%rbp)
mov    %rsi,-0x10(%rbp)
mov    %edx,-0x14(%rbp)
mov    -0x10(%rbp),%rdi
mov    -0x8(%rbp),%rsi
mov    -0x14(%rbp),%edx
call   1030 <swab@plt>
mov    -0x8(%rbp),%rdi
mov    -0x8(%rbp),%rsi
add    $0x3,%rsi
mov    $0x4,%edx
call   1030 <swab@plt>
add    $0x20,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<overlappingWriteFunction_swab>:
push   %rbx
mov    %rdi,%rbx
mov    %rsi,%rdi
mov    %rbx,%rsi
call   1030 <swab@plt>
lea    0x3(%rbx),%rsi
mov    %rbx,%rdi
mov    $0x4,%edx
pop    %rbx
jmp    1030 <swab@plt>

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

LLVM IR (-O2):
define void @overlappingWriteFunction_swab(i8* %0, i8* %1, i32 %2) {
%4 = tail call i32 @swab(i8* %1, i8* %0, i32 %2)
%5 = getelementptr inbounds i8, i8* %0, i64 3
%6 = tail call i32 @swab(i8* %0, i8* %5, i32 4)
ret void
}
/* Variables and functions */
int /*<<< orphan*/ sort_r_swap(char *, char *, size_t);
void sort_r_swap_blocks(char *ptr, size_t na, size_t nb) {
  if ((na > 0) && (nb > 0)) {
    if (na > nb) {
      sort_r_swap(ptr, ptr + na, nb);
    } else {
      sort_r_swap(ptr, ptr + nb, na);
    }
  }
}


x86 assembly (clang, -O0):
<sort_r_swap_blocks>:
push   %rbp
mov    %rsp,%rbp
sub    $0x20,%rsp
mov    %rdi,-0x8(%rbp)
mov    %rsi,-0x10(%rbp)
mov    %rdx,-0x18(%rbp)
cmpq   $0x0,-0x10(%rbp)
jbe    117c <sort_r_swap_blocks+0x6c>
cmpq   $0x0,-0x18(%rbp)
jbe    117c <sort_r_swap_blocks+0x6c>
mov    -0x10(%rbp),%rax
cmp    -0x18(%rbp),%rax
jbe    1162 <sort_r_swap_blocks+0x52>
mov    -0x8(%rbp),%rdi
mov    -0x8(%rbp),%rsi
add    -0x10(%rbp),%rsi
mov    -0x18(%rbp),%rdx
call   1030 <sort_r_swap@plt>
jmp    1177 <sort_r_swap_blocks+0x67>
mov    -0x8(%rbp),%rdi
mov    -0x8(%rbp),%rsi
add    -0x18(%rbp),%rsi
mov    -0x10(%rbp),%rdx
call   1030 <sort_r_swap@plt>
jmp    117c <sort_r_swap_blocks+0x6c>
add    $0x20,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<sort_r_swap_blocks>:
test   %rsi,%rsi
je     1136 <sort_r_swap_blocks+0x26>
test   %rdx,%rdx
je     1136 <sort_r_swap_blocks+0x26>
mov    %rsi,%rax
cmp    %rdx,%rsi
mov    %rdx,%rsi
cmova  %rax,%rsi
cmova  %rdx,%rax
add    %rdi,%rsi
mov    %rax,%rdx
jmp    1030 <sort_r_swap@plt>
ret

LLVM IR (-O0):
define void @sort_r_swap_blocks(i8* %0, i64 %1, i64 %2) {
%4 = alloca i8*
%5 = alloca i64
%6 = alloca i64
store i8* %0, i8** %4
store i64 %1, i64* %5
store i64 %2, i64* %6
%7 = load i64, i64* %5
%8 = icmp ugt i64 %7, 0
br i1 %8, label %9, label %31
9: ; preds = %3
%10 = load i64, i64* %6
%11 = icmp ugt i64 %10, 0
br i1 %11, label %12, label %31
12: ; preds = %9
%13 = load i64, i64* %5
%14 = load i64, i64* %6
%15 = icmp ugt i64 %13, %14
br i1 %15, label %16, label %23
16: ; preds = %12
%17 = load i8*, i8** %4
%18 = load i8*, i8** %4
%19 = load i64, i64* %5
%20 = getelementptr inbounds i8, i8* %18, i64 %19
%21 = load i64, i64* %6
%22 = call i32 @sort_r_swap(i8* %17, i8* %20, i64 %21)
br label %30
23: ; preds = %12
%24 = load i8*, i8** %4
%25 = load i8*, i8** %4
%26 = load i64, i64* %6
%27 = getelementptr inbounds i8, i8* %25, i64 %26
%28 = load i64, i64* %5
%29 = call i32 @sort_r_swap(i8* %24, i8* %27, i64 %28)
br label %30
30: ; preds = %23, %16
br label %31
31: ; preds = %30, %9, %3
ret void
}

LLVM IR (-O2):
define void @sort_r_swap_blocks(i8* %0, i64 %1, i64 %2) {
%4 = icmp ne i64 %1, 0
%5 = icmp ne i64 %2, 0
%6 = and i1 %4, %5
br i1 %6, label %7, label %13
7: ; preds = %3
%8 = icmp ugt i64 %1, %2
%9 = select i1 %8, i64 %1, i64 %2
%10 = select i1 %8, i64 %2, i64 %1
%11 = getelementptr inbounds i8, i8* %0, i64 %9
%12 = tail call i32 @sort_r_swap(i8* %0, i8* %11, i64 %10)
br label %13
13: ; preds = %7, %3
ret void
}
__attribute__((always_)) void native_load_tr_desc(void) {
  asm volatile("ltr %w0" ::"q"((12 + 4) * 8));
}


x86 assembly (clang, -O0):
<native_load_tr_desc>:
push   %rbp
mov    %rsp,%rbp
mov    $0x80,%eax
ltr    %ax
pop    %rbp
ret

x86 assembly (clang, -O2):
<native_load_tr_desc>:
mov    $0x80,%eax
ltr    %ax
ret

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

LLVM IR (-O2):
define void @native_load_tr_desc() {
tail call void asm sideeffect "ltr ${0:w}", "q,~{dirflag},~{fpsr},~{flags}"(i32 128)
ret void
}