xunge/DecIR huggingface dataset:
/* Variables and functions */
int /*<<< orphan*/ fflush(int /*<<< orphan*/);
int /*<<< orphan*/ printf(char *);
int /*<<< orphan*/ stdout;
void vt100_cursor_home(void) {
  printf("\x1B[H");
  fflush(stdout);
}


x86 assembly (clang, -O0):
push   %rbp
mov    %rsp,%rbp
lea    0xed5(%rip),%rdi
call   1030 <printf@plt>
mov    0x2ea9(%rip),%rax
mov    (%rax),%edi
call   1040 <fflush@plt>
pop    %rbp
ret

x86 assembly (clang, -O2):
push   %rax
lea    0xed8(%rip),%rdi
call   1030 <printf@plt>
mov    0x2eac(%rip),%rax
mov    (%rax),%edi
pop    %rax
jmp    1040 <fflush@plt>

LLVM IR (-O0):
@.str = [4 x i8] c"\1B[H\00"
@stdout = global i32 0
define void @vt100_cursor_home() {
%1 = call i32 @printf(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str, i64 0, i64 0))
%2 = load i32, i32* @stdout
%3 = call i32 @fflush(i32 %2)
ret void
}

LLVM IR (-O2):
@.str = [4 x i8] c"\1B[H\00"
@stdout = global i32 0
define void @vt100_cursor_home() {
%1 = tail call i32 @printf(i8* dereferenceable(1) getelementptr inbounds ([4 x i8], [4 x i8]* @.str, i64 0, i64 0))
%2 = load i32, i32* @stdout
%3 = tail call i32 @fflush(i32 %2)
ret void
}
/* Variables and functions */
int /*<<< orphan*/ test_dec();
int /*<<< orphan*/ test_inc();
int /*<<< orphan*/ test_pdec();
int /*<<< orphan*/ test_pinc();
main() {
  test_pinc();
  test_pdec();
  test_inc();
  test_dec();
  return 0;
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
movl   $0x0,-0x4(%rbp)
mov    $0x0,%al
call   1040 <test_pinc@plt>
mov    $0x0,%al
call   1060 <test_pdec@plt>
mov    $0x0,%al
call   1050 <test_inc@plt>
mov    $0x0,%al
call   1030 <test_dec@plt>
xor    %eax,%eax
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %rax
xor    %eax,%eax
call   1040 <test_pinc@plt>
xor    %eax,%eax
call   1060 <test_pdec@plt>
xor    %eax,%eax
call   1050 <test_inc@plt>
xor    %eax,%eax
call   1030 <test_dec@plt>
xor    %eax,%eax
pop    %rcx
ret

LLVM IR (-O0):
define i32 @main() {
%1 = alloca i32
store i32 0, i32* %1
%2 = call i32 (...) @test_pinc()
%3 = call i32 (...) @test_pdec()
%4 = call i32 (...) @test_inc()
%5 = call i32 (...) @test_dec()
ret i32 0
}

LLVM IR (-O2):
define i32 @main() {
%1 = tail call i32 (...) @test_pinc()
%2 = tail call i32 (...) @test_pdec()
%3 = tail call i32 (...) @test_inc()
%4 = tail call i32 (...) @test_dec()
ret i32 0
}
/* Variables and functions */
unsigned long *malloc(int);
unsigned long *dup_int(unsigned long u) {
  unsigned long *up = malloc(sizeof(unsigned long));
  if (up == NULL)
    return (NULL);
  *up = u;
  return up;
}


x86 assembly (clang, -O0):
<dup_int>:
push   %rbp
mov    %rsp,%rbp
sub    $0x20,%rsp
mov    %rdi,-0x10(%rbp)
mov    $0x8,%edi
call   1030 <malloc@plt>
mov    %rax,-0x18(%rbp)
cmpq   $0x0,-0x18(%rbp)
jne    1142 <dup_int+0x32>
movq   $0x0,-0x8(%rbp)
jmp    1155 <dup_int+0x45>
mov    -0x10(%rbp),%rcx
mov    -0x18(%rbp),%rax
mov    %rcx,(%rax)
mov    -0x18(%rbp),%rax
mov    %rax,-0x8(%rbp)
mov    -0x8(%rbp),%rax
add    $0x20,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<dup_int>:
push   %rbx
mov    %rdi,%rbx
mov    $0x8,%edi
call   1030 <malloc@plt>
test   %rax,%rax
je     1126 <dup_int+0x16>
mov    %rbx,(%rax)
pop    %rbx
ret

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

LLVM IR (-O2):
define noalias i64* @dup_int(i64 %0) {
%2 = tail call i64* @malloc(i32 8)
%3 = icmp eq i64* %2, null
br i1 %3, label %5, label %4
4: ; preds = %1
store i64 %0, i64* %2
br label %5
5: ; preds = %1, %4
ret i64* %2
}
void SteamAPI_ISteamFriends_RequestFriendRichPresence(void *self) {
  xlogf("%s(self = %p)\n", __func__, self);
}


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

x86 assembly (clang, -O2):
<SteamAPI_ISteamFriends_RequestFriendRichPresence>:
mov    %rdi,%rdx
lea    0xee6(%rip),%rdi
lea    0xeee(%rip),%rsi
xor    %eax,%eax
jmp    1030 <xlogf@plt>

LLVM IR (-O0):
@.str = [15 x i8] c"%s(self = %p)\0A\00"
@__func__.SteamAPI_ISteamFriends_RequestFriendRichPresence = [49 x i8] c"SteamAPI_ISteamFriends_RequestFriendRichPresence\00"
define void @SteamAPI_ISteamFriends_RequestFriendRichPresence(i8* %0) {
%2 = alloca i8*
store i8* %0, i8** %2
%3 = load i8*, i8** %2
%4 = call i32 (i8*, i8*, i8*, ...) bitcast (i32 (...)* @xlogf to i32 (i8*, i8*, i8*, ...)*)(i8* getelementptr inbounds ([15 x i8], [15 x i8]* @.str, i64 0, i64 0), i8* getelementptr inbounds ([49 x i8], [49 x i8]* @__func__.SteamAPI_ISteamFriends_RequestFriendRichPresence, i64 0, i64 0), i8* %3)
ret void
}

LLVM IR (-O2):
@.str = [15 x i8] c"%s(self = %p)\0A\00"
@__func__.SteamAPI_ISteamFriends_RequestFriendRichPresence = [49 x i8] c"SteamAPI_ISteamFriends_RequestFriendRichPresence\00"
define void @SteamAPI_ISteamFriends_RequestFriendRichPresence(i8* %0) {
%2 = tail call i32 (i8*, i8*, i8*, ...) bitcast (i32 (...)* @xlogf to i32 (i8*, i8*, i8*, ...)*)(i8* getelementptr inbounds ([15 x i8], [15 x i8]* @.str, i64 0, i64 0), i8* getelementptr inbounds ([49 x i8], [49 x i8]* @__func__.SteamAPI_ISteamFriends_RequestFriendRichPresence, i64 0, i64 0), i8* %0)
ret void
}
/* Type definitions */
typedef int uint64_t;

/* Variables and functions */
int /*<<< orphan*/ printf(char *, int);
void bin_print(uint64_t x) {
  int i;
  for (i = 63; i >= 0; i--)
    printf("%d", (x >> i) & 1ULL);
}


x86 assembly (clang, -O0):
<bin_print>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
mov    %edi,-0x4(%rbp)
movl   $0x3f,-0x8(%rbp)
cmpl   $0x0,-0x8(%rbp)
jl     1156 <bin_print+0x46>
mov    -0x4(%rbp),%eax
mov    -0x8(%rbp),%ecx
sar    %cl,%eax
cltq
and    $0x1,%rax
mov    %eax,%esi
lea    0xebd(%rip),%rdi
call   1030 <printf@plt>
mov    -0x8(%rbp),%eax
add    $0xffffffff,%eax
mov    %eax,-0x8(%rbp)
jmp    1122 <bin_print+0x12>
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<bin_print>:
push   %rbp
push   %r14
push   %rbx
mov    %edi,%ebx
mov    $0x3f,%ebp
lea    0xede(%rip),%r14
cs nopw 0x0(%rax,%rax,1)
nopl   0x0(%rax)
mov    %ebx,%esi
mov    %ebp,%ecx
shr    %cl,%esi
and    $0x1,%esi
mov    %r14,%rdi
call   1030 <printf@plt>
add    $0xffffffff,%ebp
jb     1130 <bin_print+0x20>
pop    %rbx
pop    %r14
pop    %rbp
ret

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

LLVM IR (-O2):
@.str = [3 x i8] c"%d\00"
define void @bin_print(i32 %0) {
br label %2
2: ; preds = %1, %2
%3 = phi i32 [ 63, %1 ], [ %7, %2 ]
%4 = lshr i32 %0, %3
%5 = and i32 %4, 1
%6 = tail call i32 @printf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str, i64 0, i64 0), i32 %5)
%7 = add nsw i32 %3, -1
%8 = icmp eq i32 %3, 0
br i1 %8, label %9, label %2
9: ; preds = %2
ret void
}
/* Type definitions */
typedef unsigned long volatile uint32_t;

/* Variables and functions */
void PWMIntEnable(uint32_t ui32Base, uint32_t ui32GenFault) {
  ;

  ;
  (*((volatile unsigned long *)(ui32Base + 0x00000014))) |= ui32GenFault;
}


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

x86 assembly (clang, -O2):
<PWMIntEnable>:
mov    %rdi,-0x8(%rsp)
mov    %rsi,-0x10(%rsp)
mov    -0x10(%rsp),%rax
mov    -0x8(%rsp),%rcx
or     %rax,0x14(%rcx)
ret

LLVM IR (-O0):
define void @PWMIntEnable(i64 %0, i64 %1) {
%3 = alloca i64
%4 = alloca i64
store volatile i64 %0, i64* %3
store volatile i64 %1, i64* %4
%5 = load volatile i64, i64* %4
%6 = load volatile i64, i64* %3
%7 = add i64 %6, 20
%8 = inttoptr i64 %7 to i64*
%9 = load volatile i64, i64* %8
%10 = or i64 %9, %5
store volatile i64 %10, i64* %8
ret void
}

LLVM IR (-O2):
define void @PWMIntEnable(i64 %0, i64 %1) {
%3 = alloca i64
%4 = alloca i64
store volatile i64 %0, i64* %3
store volatile i64 %1, i64* %4
%5 = load volatile i64, i64* %4
%6 = load volatile i64, i64* %3
%7 = add i64 %6, 20
%8 = inttoptr i64 %7 to i64*
%9 = load volatile i64, i64* %8
%10 = or i64 %9, %5
store volatile i64 %10, i64* %8
ret void
}
/* Type definitions */
struct bio {
  int dummy;
};

/* Variables and functions */
int /*<<< orphan*/ bio_reset(struct bio *);
void bio_destroy(struct bio *b) { bio_reset(b); }


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

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

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

LLVM IR (-O2):
%struct.bio = type { i32 }
define void @bio_destroy(%struct.bio* %0) {
%2 = tail call i32 @bio_reset(%struct.bio* %0)
ret void
}
/* Variables and functions */
int /*<<< orphan*/ __efuse_write_byte(unsigned int, unsigned long);
int /*<<< orphan*/ efuse_init();
void efuse_write_byte(unsigned long addr, unsigned char data) {
  efuse_init();
  unsigned int int_addr = addr;
  __efuse_write_byte(int_addr, (unsigned long)data);
}


x86 assembly (clang, -O0):
<efuse_write_byte>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
mov    %sil,%al
mov    %rdi,-0x8(%rbp)
mov    %al,-0x9(%rbp)
mov    $0x0,%al
call   1030 <efuse_init@plt>
mov    -0x8(%rbp),%rax
mov    %eax,-0x10(%rbp)
mov    -0x10(%rbp),%edi
movzbl -0x9(%rbp),%eax
mov    %eax,%esi
call   1040 <__efuse_write_byte@plt>
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<efuse_write_byte>:
push   %r14
push   %rbx
push   %rax
mov    %esi,%ebx
mov    %rdi,%r14
xor    %eax,%eax
call   1030 <efuse_init@plt>
mov    %ebx,%esi
mov    %r14d,%edi
add    $0x8,%rsp
pop    %rbx
pop    %r14
jmp    1040 <__efuse_write_byte@plt>

LLVM IR (-O0):
define void @efuse_write_byte(i64 %0, i8 zeroext %1) {
%3 = alloca i64
%4 = alloca i8
%5 = alloca i32
store i64 %0, i64* %3
store i8 %1, i8* %4
%6 = call i32 (...) @efuse_init()
%7 = load i64, i64* %3
%8 = trunc i64 %7 to i32
store i32 %8, i32* %5
%9 = load i32, i32* %5
%10 = load i8, i8* %4
%11 = zext i8 %10 to i64
%12 = call i32 @__efuse_write_byte(i32 %9, i64 %11)
ret void
}

LLVM IR (-O2):
define void @efuse_write_byte(i64 %0, i8 zeroext %1) {
%3 = tail call i32 (...) @efuse_init()
%4 = trunc i64 %0 to i32
%5 = zext i8 %1 to i64
%6 = tail call i32 @__efuse_write_byte(i32 %4, i64 %5)
ret void
}
int utf8_is_bom(const char *p) {
  const unsigned char *up = (unsigned char *)p;
  if (up[0] != 0xEF)
    return 0;
  if (up[1] != 0xBB)
    return 0;
  if (up[2] != 0xBF)
    return 0;
  return 1;
}


x86 assembly (clang, -O0):
<utf8_is_bom>:
push   %rbp
mov    %rsp,%rbp
mov    %rdi,-0x10(%rbp)
mov    -0x10(%rbp),%rax
mov    %rax,-0x18(%rbp)
mov    -0x18(%rbp),%rax
movzbl (%rax),%eax
cmp    $0xef,%eax
je     112e <utf8_is_bom+0x2e>
movl   $0x0,-0x4(%rbp)
jmp    1173 <utf8_is_bom+0x73>
mov    -0x18(%rbp),%rax
movzbl 0x1(%rax),%eax
cmp    $0xbb,%eax
je     114d <utf8_is_bom+0x4d>
movl   $0x0,-0x4(%rbp)
jmp    1173 <utf8_is_bom+0x73>
mov    -0x18(%rbp),%rax
movzbl 0x2(%rax),%eax
cmp    $0xbf,%eax
je     116c <utf8_is_bom+0x6c>
movl   $0x0,-0x4(%rbp)
jmp    1173 <utf8_is_bom+0x73>
movl   $0x1,-0x4(%rbp)
mov    -0x4(%rbp),%eax
pop    %rbp
ret

x86 assembly (clang, -O2):
<utf8_is_bom>:
xor    %eax,%eax
cmpb   $0xef,(%rdi)
jne    1116 <utf8_is_bom+0x16>
cmpb   $0xbb,0x1(%rdi)
jne    1116 <utf8_is_bom+0x16>
xor    %eax,%eax
cmpb   $0xbf,0x2(%rdi)
sete   %al
ret

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

LLVM IR (-O2):
define i32 @utf8_is_bom(i8* nocapture %0) {
%2 = load i8, i8* %0
%3 = icmp eq i8 %2, -17
br i1 %3, label %4, label %13
4: ; preds = %1
%5 = getelementptr inbounds i8, i8* %0, i64 1
%6 = load i8, i8* %5
%7 = icmp eq i8 %6, -69
br i1 %7, label %8, label %13
8: ; preds = %4
%9 = getelementptr inbounds i8, i8* %0, i64 2
%10 = load i8, i8* %9
%11 = icmp eq i8 %10, -65
%12 = zext i1 %11 to i32
br label %13
13: ; preds = %8, %4, %1
%14 = phi i32 [ 0, %1 ], [ 0, %4 ], [ %12, %8 ]
ret i32 %14
}
unsigned long bwm_calc_remainder(unsigned long num, unsigned long den) {
  unsigned long long n = num;
  unsigned long long d = den;
  return (((n - (n / d) * d) * 1000) / d);
}


x86 assembly (clang, -O0):
<bwm_calc_remainder>:
push   %rbp
mov    %rsp,%rbp
mov    %rdi,-0x8(%rbp)
mov    %rsi,-0x10(%rbp)
mov    -0x8(%rbp),%rax
mov    %rax,-0x18(%rbp)
mov    -0x10(%rbp),%rax
mov    %rax,-0x20(%rbp)
mov    -0x18(%rbp),%rax
mov    %rax,-0x28(%rbp)
mov    -0x18(%rbp),%rax
xor    %ecx,%ecx
mov    %ecx,%edx
divq   -0x20(%rbp)
mov    %rax,%rcx
mov    -0x28(%rbp),%rax
imul   -0x20(%rbp),%rcx
sub    %rcx,%rax
imul   $0x3e8,%rax,%rax
xor    %ecx,%ecx
mov    %ecx,%edx
divq   -0x20(%rbp)
pop    %rbp
ret

x86 assembly (clang, -O2):
<bwm_calc_remainder>:
mov    %rdi,%rax
mov    %rdi,%rcx
or     %rsi,%rcx
shr    $0x20,%rcx
je     1116 <bwm_calc_remainder+0x16>
xor    %edx,%edx
div    %rsi
jmp    111a <bwm_calc_remainder+0x1a>
xor    %edx,%edx
div    %esi
imul   $0x3e8,%rdx,%rax
mov    %rax,%rcx
or     %rsi,%rcx
shr    $0x20,%rcx
je     1133 <bwm_calc_remainder+0x33>
xor    %edx,%edx
div    %rsi
ret
xor    %edx,%edx
div    %esi
ret

LLVM IR (-O0):
define i64 @bwm_calc_remainder(i64 %0, i64 %1) {
%3 = alloca i64
%4 = alloca i64
%5 = alloca i64
%6 = alloca i64
store i64 %0, i64* %3
store i64 %1, i64* %4
%7 = load i64, i64* %3
store i64 %7, i64* %5
%8 = load i64, i64* %4
store i64 %8, i64* %6
%9 = load i64, i64* %5
%10 = load i64, i64* %5
%11 = load i64, i64* %6
%12 = udiv i64 %10, %11
%13 = load i64, i64* %6
%14 = mul i64 %12, %13
%15 = sub i64 %9, %14
%16 = mul i64 %15, 1000
%17 = load i64, i64* %6
%18 = udiv i64 %16, %17
ret i64 %18
}

LLVM IR (-O2):
define i64 @bwm_calc_remainder(i64 %0, i64 %1) {
%3 = urem i64 %0, %1
%4 = mul i64 %3, 1000
%5 = udiv i64 %4, %1
ret i64 %5
}
/* Type definitions */
typedef int int32_t;

/* Variables and functions */
int num_of_oof_poles(double, double, double);
int oof2_state_size();
int32_t oof_state_size(double fmin, double fknee, double fsample) {
  return oof2_state_size() * num_of_oof_poles(fmin, fknee, fsample);
}


x86 assembly (clang, -O0):
<oof_state_size>:
push   %rbp
mov    %rsp,%rbp
sub    $0x20,%rsp
movsd  %xmm0,-0x8(%rbp)
movsd  %xmm1,-0x10(%rbp)
movsd  %xmm2,-0x18(%rbp)
mov    $0x0,%al
call   1040 <oof2_state_size@plt>
mov    %eax,-0x1c(%rbp)
movsd  -0x8(%rbp),%xmm0
movsd  -0x10(%rbp),%xmm1
movsd  -0x18(%rbp),%xmm2
call   1030 <num_of_oof_poles@plt>
mov    %eax,%ecx
mov    -0x1c(%rbp),%eax
imul   %ecx,%eax
add    $0x20,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<oof_state_size>:
push   %rbx
sub    $0x20,%rsp
movsd  %xmm2,0x18(%rsp)
movsd  %xmm1,0x10(%rsp)
movsd  %xmm0,0x8(%rsp)
xor    %eax,%eax
call   1040 <oof2_state_size@plt>
mov    %eax,%ebx
movsd  0x8(%rsp),%xmm0
movsd  0x10(%rsp),%xmm1
movsd  0x18(%rsp),%xmm2
call   1030 <num_of_oof_poles@plt>
imul   %ebx,%eax
add    $0x20,%rsp
pop    %rbx
ret

LLVM IR (-O0):
define i32 @oof_state_size(double %0, double %1, double %2) {
%4 = alloca double
%5 = alloca double
%6 = alloca double
store double %0, double* %4
store double %1, double* %5
store double %2, double* %6
%7 = call i32 (...) @oof2_state_size()
%8 = load double, double* %4
%9 = load double, double* %5
%10 = load double, double* %6
%11 = call i32 @num_of_oof_poles(double %8, double %9, double %10)
%12 = mul nsw i32 %7, %11
ret i32 %12
}

LLVM IR (-O2):
define i32 @oof_state_size(double %0, double %1, double %2) {
%4 = tail call i32 (...) @oof2_state_size()
%5 = tail call i32 @num_of_oof_poles(double %0, double %1, double %2)
%6 = mul nsw i32 %5, %4
ret i32 %6
}
/* Variables and functions */
int /*<<< orphan*/ free(char *);
void bsDel(char *bs) { free(bs - 4); }


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

x86 assembly (clang, -O2):
<bsDel>:
add    $0xfffffffffffffffc,%rdi
jmp    1030 <free@plt>

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

LLVM IR (-O2):
define void @bsDel(i8* nocapture %0) {
%2 = getelementptr inbounds i8, i8* %0, i64 -4
%3 = tail call i32 @free(i8* %2)
ret void
}
char to_signed_byte(unsigned char value) {
  int signed_value = value;
  if (value >> 7)
    signed_value |= -1 << 7;
  return signed_value;
}


x86 assembly (clang, -O0):
<to_signed_byte>:
push   %rbp
mov    %rsp,%rbp
mov    %dil,%al
mov    %al,-0x1(%rbp)
movzbl -0x1(%rbp),%eax
mov    %eax,-0x8(%rbp)
movzbl -0x1(%rbp),%eax
sar    $0x7,%eax
cmp    $0x0,%eax
je     112a <to_signed_byte+0x2a>
mov    -0x8(%rbp),%eax
or     $0xffffff80,%eax
mov    %eax,-0x8(%rbp)
mov    -0x8(%rbp),%eax
movsbl %al,%eax
pop    %rbp
ret

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

LLVM IR (-O0):
define signext i8 @to_signed_byte(i8 zeroext %0) {
%2 = alloca i8
%3 = alloca i32
store i8 %0, i8* %2
%4 = load i8, i8* %2
%5 = zext i8 %4 to i32
store i32 %5, i32* %3
%6 = load i8, i8* %2
%7 = zext i8 %6 to i32
%8 = ashr i32 %7, 7
%9 = icmp ne i32 %8, 0
br i1 %9, label %10, label %13
10: ; preds = %1
%11 = load i32, i32* %3
%12 = or i32 %11, -128
store i32 %12, i32* %3
br label %13
13: ; preds = %10, %1
%14 = load i32, i32* %3
%15 = trunc i32 %14 to i8
ret i8 %15
}

LLVM IR (-O2):
define signext i8 @to_signed_byte(i8 zeroext %0) {
ret i8 %0
}
/* Variables and functions */
int /*<<< orphan*/ box_unsigned_4(int /*<<< orphan*/);
int /*<<< orphan*/ dpop();
int /*<<< orphan*/ float_bits(int /*<<< orphan*/);
int /*<<< orphan*/ untag_float(int /*<<< orphan*/);
void primitive_float_bits_impl(void) {
  box_unsigned_4(float_bits(untag_float(dpop())));
}


x86 assembly (clang, -O0):
<primitive_float_bits_impl>:
push   %rbp
mov    %rsp,%rbp
mov    $0x0,%al
call   1040 <dpop@plt>
mov    %eax,%edi
call   1050 <untag_float@plt>
mov    %eax,%edi
call   1030 <float_bits@plt>
mov    %eax,%edi
call   1060 <box_unsigned_4@plt>
pop    %rbp
ret

x86 assembly (clang, -O2):
<primitive_float_bits_impl>:
push   %rax
xor    %eax,%eax
call   1040 <dpop@plt>
mov    %eax,%edi
call   1050 <untag_float@plt>
mov    %eax,%edi
call   1030 <float_bits@plt>
mov    %eax,%edi
pop    %rax
jmp    1060 <box_unsigned_4@plt>

LLVM IR (-O0):
define void @primitive_float_bits_impl() {
%1 = call i32 (...) @dpop()
%2 = call i32 @untag_float(i32 %1)
%3 = call i32 @float_bits(i32 %2)
%4 = call i32 @box_unsigned_4(i32 %3)
ret void
}

LLVM IR (-O2):
define void @primitive_float_bits_impl() {
%1 = tail call i32 (...) @dpop()
%2 = tail call i32 @untag_float(i32 %1)
%3 = tail call i32 @float_bits(i32 %2)
%4 = tail call i32 @box_unsigned_4(i32 %3)
ret void
}
void stdout_close() { return; }


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

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

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

LLVM IR (-O2):
define void @stdout_close() {
ret void
}
void g_type_class_unref_uncached() {}


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

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

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

LLVM IR (-O2):
define void @g_type_class_unref_uncached() {
ret void
}
int test_imm_43uint64_midword_reg(unsigned long long val) {
  return ((val >> 16) & (0x43 << 0)) ? -20 : -40;
}


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

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

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

LLVM IR (-O2):
define i32 @test_imm_43uint64_midword_reg(i64 %0) {
%2 = and i64 %0, 4390912
%3 = icmp eq i64 %2, 0
%4 = select i1 %3, i32 -40, i32 -20
ret i32 %4
}
/* Forward declarations */
typedef struct TYPE_2__ TYPE_1__;

/* Type definitions */
struct TYPE_2__ {
  scalar_t__ all_chars_exist;
};
typedef TYPE_1__ XFontStruct;

/* Variables and functions */
int get_XFontStruct_all_chars_exist(void *_p) {
  return (int)((XFontStruct *)_p)->all_chars_exist;
}


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

x86 assembly (clang, -O2):
<get_XFontStruct_all_chars_exist>:
mov    (%rdi),%eax
ret

LLVM IR (-O0):
%struct.TYPE_2__ = type { i64 }
define i32 @get_XFontStruct_all_chars_exist(i8* %0) {
%2 = alloca i8*
store i8* %0, i8** %2
%3 = load i8*, i8** %2
%4 = bitcast i8* %3 to %struct.TYPE_2__*
%5 = getelementptr inbounds %struct.TYPE_2__, %struct.TYPE_2__* %4, i32 0, i32 0
%6 = load i64, i64* %5
%7 = trunc i64 %6 to i32
ret i32 %7
}

LLVM IR (-O2):
define i32 @get_XFontStruct_all_chars_exist(i8* nocapture %0) {
%2 = bitcast i8* %0 to i64*
%3 = load i64, i64* %2
%4 = trunc i64 %3 to i32
ret i32 %4
}
/* Type definitions */
struct memorycontainer {
  int dummy;
};

/* Variables and functions */
struct memorycontainer *createExpression(int, struct memorycontainer *,
                                         struct memorycontainer *);
struct memorycontainer *
createSubExpression(struct memorycontainer *expression1,
                    struct memorycontainer *expression2) {
  return createExpression(0x000C, expression1, expression2);
}


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

x86 assembly (clang, -O2):
<createSubExpression>:
mov    %rsi,%rdx
mov    %rdi,%rsi
mov    $0xc,%edi
jmp    1030 <createExpression@plt>

LLVM IR (-O0):
%struct.memorycontainer = type { i32 }
define %struct.memorycontainer* @createSubExpression(%struct.memorycontainer* %0, %struct.memorycontainer* %1) {
%3 = alloca %struct.memorycontainer*
%4 = alloca %struct.memorycontainer*
store %struct.memorycontainer* %0, %struct.memorycontainer** %3
store %struct.memorycontainer* %1, %struct.memorycontainer** %4
%5 = load %struct.memorycontainer*, %struct.memorycontainer** %3
%6 = load %struct.memorycontainer*, %struct.memorycontainer** %4
%7 = call %struct.memorycontainer* @createExpression(i32 12, %struct.memorycontainer* %5, %struct.memorycontainer* %6)
ret %struct.memorycontainer* %7
}

LLVM IR (-O2):
%struct.memorycontainer = type { i32 }
define %struct.memorycontainer* @createSubExpression(%struct.memorycontainer* %0, %struct.memorycontainer* %1) {
%3 = tail call %struct.memorycontainer* @createExpression(i32 12, %struct.memorycontainer* %0, %struct.memorycontainer* %1)
ret %struct.memorycontainer* %3
}
/* Variables and functions */
long double fmin(long double, long double);
long double fminl(long double a1, long double a2) { return fmin(a1, a2); }


x86 assembly (clang, -O0):
<fminl>:
push   %rbp
mov    %rsp,%rbp
sub    $0x40,%rsp
fldt   0x20(%rbp)
fldt   0x10(%rbp)
fstpt  -0x10(%rbp)
fstpt  -0x20(%rbp)
fldt   -0x10(%rbp)
fldt   -0x20(%rbp)
mov    %rsp,%rax
fstpt  0x10(%rax)
fstpt  (%rax)
call   1030 <fmin@plt>
fld    %st(0)
fstp   %st(0)
add    $0x40,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<fminl>:
sub    $0x28,%rsp
fldt   0x30(%rsp)
fldt   0x40(%rsp)
fstpt  0x10(%rsp)
fstpt  (%rsp)
call   1030 <fminl@plt>
add    $0x28,%rsp
ret

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

LLVM IR (-O2):
define x86_fp80 @fminl(x86_fp80 %0, x86_fp80 %1) {
%3 = tail call nsz x86_fp80 @llvm.minnum.f80(x86_fp80 %0, x86_fp80 %1)
ret x86_fp80 %3
}
/* Type definitions */
struct tagStorm {
  int dummy;
};

/* Variables and functions */
int /*<<< orphan*/ tagStormWriteAsFlatTabOrCsv(struct tagStorm *, char *,
                                               char *, int, int, int, char *,
                                               int, int /*<<< orphan*/);
void tagStormWriteAsFlatTab(struct tagStorm *tagStorm, char *fileName,
                            char *idTag, int withParent, int maxDepth,
                            int leavesOnly, char *nullVal, int sharpLabel) {
  tagStormWriteAsFlatTabOrCsv(tagStorm, fileName, idTag, withParent, maxDepth,
                              leavesOnly, nullVal, sharpLabel, 0);
}


x86 assembly (clang, -O0):
<tagStormWriteAsFlatTab>:
push   %rbp
mov    %rsp,%rbp
sub    $0x40,%rsp
mov    0x18(%rbp),%eax
mov    0x10(%rbp),%rax
mov    %rdi,-0x8(%rbp)
mov    %rsi,-0x10(%rbp)
mov    %rdx,-0x18(%rbp)
mov    %ecx,-0x1c(%rbp)
mov    %r8d,-0x20(%rbp)
mov    %r9d,-0x24(%rbp)
mov    -0x8(%rbp),%rdi
mov    -0x10(%rbp),%rsi
mov    -0x18(%rbp),%rdx
mov    -0x1c(%rbp),%ecx
mov    -0x20(%rbp),%r8d
mov    -0x24(%rbp),%r9d
mov    0x10(%rbp),%r10
mov    0x18(%rbp),%eax
xor    %r11d,%r11d
mov    %r10,(%rsp)
mov    %eax,0x8(%rsp)
movl   $0x0,0x10(%rsp)
call   1030 <tagStormWriteAsFlatTabOrCsv@plt>
add    $0x40,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<tagStormWriteAsFlatTab>:
push   %rax
mov    0x18(%rsp),%eax
sub    $0x8,%rsp
push   $0x0
push   %rax
push   0x28(%rsp)
call   1030 <tagStormWriteAsFlatTabOrCsv@plt>
add    $0x20,%rsp
pop    %rax
ret

LLVM IR (-O0):
%struct.tagStorm = type { i32 }
define void @tagStormWriteAsFlatTab(%struct.tagStorm* %0, i8* %1, i8* %2, i32 %3, i32 %4, i32 %5, i8* %6, i32 %7) {
%9 = alloca %struct.tagStorm*
%10 = alloca i8*
%11 = alloca i8*
%12 = alloca i32
%13 = alloca i32
%14 = alloca i32
%15 = alloca i8*
%16 = alloca i32
store %struct.tagStorm* %0, %struct.tagStorm** %9
store i8* %1, i8** %10
store i8* %2, i8** %11
store i32 %3, i32* %12
store i32 %4, i32* %13
store i32 %5, i32* %14
store i8* %6, i8** %15
store i32 %7, i32* %16
%17 = load %struct.tagStorm*, %struct.tagStorm** %9
%18 = load i8*, i8** %10
%19 = load i8*, i8** %11
%20 = load i32, i32* %12
%21 = load i32, i32* %13
%22 = load i32, i32* %14
%23 = load i8*, i8** %15
%24 = load i32, i32* %16
%25 = call i32 @tagStormWriteAsFlatTabOrCsv(%struct.tagStorm* %17, i8* %18, i8* %19, i32 %20, i32 %21, i32 %22, i8* %23, i32 %24, i32 0)
ret void
}

LLVM IR (-O2):
%struct.tagStorm = type { i32 }
define void @tagStormWriteAsFlatTab(%struct.tagStorm* %0, i8* %1, i8* %2, i32 %3, i32 %4, i32 %5, i8* %6, i32 %7) {
%9 = tail call i32 @tagStormWriteAsFlatTabOrCsv(%struct.tagStorm* %0, i8* %1, i8* %2, i32 %3, i32 %4, i32 %5, i8* %6, i32 %7, i32 0)
ret void
}
/* Type definitions */
typedef int /*<<< orphan*/ uint8_t;
typedef int /*<<< orphan*/ uint16_t;

/* Variables and functions */
int /*<<< orphan*/ write_be16(int /*<<< orphan*/ *, int /*<<< orphan*/);
void write_at_be16(void *dest, uint16_t val, size_t offset) {
  uint8_t *d = dest;
  d += offset;
  write_be16(d, val);
}


x86 assembly (clang, -O0):
<write_at_be16>:
push   %rbp
mov    %rsp,%rbp
sub    $0x20,%rsp
mov    %rdi,-0x8(%rbp)
mov    %esi,-0xc(%rbp)
mov    %rdx,-0x18(%rbp)
mov    -0x8(%rbp),%rax
mov    %rax,-0x20(%rbp)
mov    -0x18(%rbp),%rax
shl    $0x2,%rax
add    -0x20(%rbp),%rax
mov    %rax,-0x20(%rbp)
mov    -0x20(%rbp),%rdi
mov    -0xc(%rbp),%esi
call   1030 <write_be16@plt>
add    $0x20,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<write_at_be16>:
lea    (%rdi,%rdx,4),%rdi
jmp    1030 <write_be16@plt>

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

LLVM IR (-O2):
define void @write_at_be16(i8* %0, i32 %1, i64 %2) {
%4 = bitcast i8* %0 to i32*
%5 = getelementptr inbounds i32, i32* %4, i64 %2
%6 = tail call i32 @write_be16(i32* %5, i32 %1)
ret void
}
void GB_MINV_f_FP64(double *z, const double *x) { (*z) = 1 / ((*x)); }


x86 assembly (clang, -O0):
<GB_MINV_f_FP64>:
push   %rbp
mov    %rsp,%rbp
mov    %rdi,-0x8(%rbp)
mov    %rsi,-0x10(%rbp)
mov    -0x10(%rbp),%rax
movsd  0xee8(%rip),%xmm0
divsd  (%rax),%xmm0
mov    -0x8(%rbp),%rax
movsd  %xmm0,(%rax)
pop    %rbp
ret

x86 assembly (clang, -O2):
<GB_MINV_f_FP64>:
movsd  0xef8(%rip),%xmm0
divsd  (%rsi),%xmm0
movsd  %xmm0,(%rdi)
ret

LLVM IR (-O0):
define void @GB_MINV_f_FP64(double* %0, double* %1) {
%3 = alloca double*
%4 = alloca double*
store double* %0, double** %3
store double* %1, double** %4
%5 = load double*, double** %4
%6 = load double, double* %5
%7 = fdiv double 1.000000e+00, %6
%8 = load double*, double** %3
store double %7, double* %8
ret void
}

LLVM IR (-O2):
define void @GB_MINV_f_FP64(double* nocapture writeonly %0, double* nocapture %1) {
%3 = load double, double* %1
%4 = fdiv double 1.000000e+00, %3
store double %4, double* %0
ret void
}
void ff_hevc_put_hevc_bi_epel_hv64_8_sse4() {}


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

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

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

LLVM IR (-O2):
define void @ff_hevc_put_hevc_bi_epel_hv64_8_sse4() {
ret void
}
/* Variables and functions */
int /*<<< orphan*/ printf(char *, ...);
int /*<<< orphan*/ scanf(char *, int *);
int /*<<< orphan*/ twofib();
int main(int argc, char *argv[], char *envp[]) {
  int local0;
  int local1;
  printf("Enter number: ");
  scanf("%d", &local0);
  twofib();
  printf("Fibonacci of %d is %d\n", local0, local1);
  return 0;
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x20,%rsp
movl   $0x0,-0x4(%rbp)
mov    %edi,-0x8(%rbp)
mov    %rsi,-0x10(%rbp)
mov    %rdx,-0x18(%rbp)
lea    0xeaf(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0xeb0(%rip),%rdi
lea    -0x1c(%rbp),%rsi
call   1050 <scanf@plt>
mov    $0x0,%al
call   1040 <twofib@plt>
mov    -0x1c(%rbp),%esi
mov    -0x20(%rbp),%edx
lea    0xe96(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
xor    %eax,%eax
add    $0x20,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %rax
lea    0xec8(%rip),%rdi
xor    %eax,%eax
call   1030 <printf@plt>
lea    0xec9(%rip),%rdi
lea    0x4(%rsp),%rsi
call   1050 <scanf@plt>
xor    %eax,%eax
call   1040 <twofib@plt>
mov    0x4(%rsp),%esi
lea    0xeb0(%rip),%rdi
xor    %eax,%eax
call   1030 <printf@plt>
xor    %eax,%eax
pop    %rcx
ret

LLVM IR (-O0):
@.str = [15 x i8] c"Enter number: \00"
@.str.1 = [3 x i8] c"%d\00"
@.str.2 = [23 x i8] c"Fibonacci of %d is %d\0A\00"
define i32 @main(i32 %0, i8** %1, i8** %2) {
%4 = alloca i32
%5 = alloca i32
%6 = alloca i8**
%7 = alloca i8**
%8 = alloca i32
%9 = alloca i32
store i32 0, i32* %4
store i32 %0, i32* %5
store i8** %1, i8*** %6
store i8** %2, i8*** %7
%10 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([15 x i8], [15 x i8]* @.str, i64 0, i64 0))
%11 = call i32 @scanf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.1, i64 0, i64 0), i32* %8)
%12 = call i32 (...) @twofib()
%13 = load i32, i32* %8
%14 = load i32, i32* %9
%15 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([23 x i8], [23 x i8]* @.str.2, i64 0, i64 0), i32 %13, i32 %14)
ret i32 0
}

LLVM IR (-O2):
@.str = [15 x i8] c"Enter number: \00"
@.str.1 = [3 x i8] c"%d\00"
@.str.2 = [23 x i8] c"Fibonacci of %d is %d\0A\00"
define i32 @main(i32 %0, i8** nocapture readnone %1, i8** nocapture readnone %2) {
%4 = alloca i32
%5 = bitcast i32* %4 to i8*
%6 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([15 x i8], [15 x i8]* @.str, i64 0, i64 0))
%7 = call i32 @scanf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.1, i64 0, i64 0), i32* %4)
%8 = call i32 (...) @twofib()
%9 = load i32, i32* %4
%10 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([23 x i8], [23 x i8]* @.str.2, i64 0, i64 0), i32 %9, i32 undef)
ret i32 0
}
/* Variables and functions */
int /*<<< orphan*/ helper_double_21_recursive(double *, int);
void helper_double_21(double *buf) { helper_double_21_recursive(buf, 21); }


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

x86 assembly (clang, -O2):
<helper_double_21>:
mov    $0x15,%esi
jmp    1030 <helper_double_21_recursive@plt>

LLVM IR (-O0):
define void @helper_double_21(double* %0) {
%2 = alloca double*
store double* %0, double** %2
%3 = load double*, double** %2
%4 = call i32 @helper_double_21_recursive(double* %3, i32 21)
ret void
}

LLVM IR (-O2):
define void @helper_double_21(double* %0) {
%2 = tail call i32 @helper_double_21_recursive(double* %0, i32 21)
ret void
}
/* Variables and functions */
int /*<<< orphan*/ printf(char *, int, int);
void whosTurn(int players, int curPlayer, int turn) {
  printf("It is player %d's turn number %d.\n", curPlayer, turn);
  return;
}


x86 assembly (clang, -O0):
<whosTurn>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
mov    %edi,-0x4(%rbp)
mov    %esi,-0x8(%rbp)
mov    %edx,-0xc(%rbp)
mov    -0x8(%rbp),%esi
mov    -0xc(%rbp),%edx
lea    0xed2(%rip),%rdi
call   1030 <printf@plt>
add    $0x10,%rsp
pop    %rbp
ret

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

LLVM IR (-O0):
@.str = [35 x i8] c"It is player %d's turn number %d.\0A\00"
define void @whosTurn(i32 %0, i32 %1, i32 %2) {
%4 = alloca i32
%5 = alloca i32
%6 = alloca i32
store i32 %0, i32* %4
store i32 %1, i32* %5
store i32 %2, i32* %6
%7 = load i32, i32* %5
%8 = load i32, i32* %6
%9 = call i32 @printf(i8* getelementptr inbounds ([35 x i8], [35 x i8]* @.str, i64 0, i64 0), i32 %7, i32 %8)
ret void
}

LLVM IR (-O2):
@.str = [35 x i8] c"It is player %d's turn number %d.\0A\00"
define void @whosTurn(i32 %0, i32 %1, i32 %2) {
%4 = tail call i32 @printf(i8* getelementptr inbounds ([35 x i8], [35 x i8]* @.str, i64 0, i64 0), i32 %1, i32 %2)
ret void
}
/* Variables and functions */
int /*<<< orphan*/ sprintf(char *, char *, int);
void data_to_string(void *data, char *str) {
  int d = (int)data;
  sprintf(str, "int:%d", d);
}


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

x86 assembly (clang, -O2):
<data_to_string>:
mov    %rsi,%rax
mov    %rdi,%rdx
lea    0xee3(%rip),%rsi
mov    %rax,%rdi
jmp    1030 <sprintf@plt>

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

LLVM IR (-O2):
@.str = [7 x i8] c"int:%d\00"
define void @data_to_string(i8* %0, i8* nocapture writeonly %1) {
%3 = ptrtoint i8* %0 to i64
%4 = trunc i64 %3 to i32
%5 = tail call i32 @sprintf(i8* dereferenceable(1) %1, i8* dereferenceable(1) getelementptr inbounds ([7 x i8], [7 x i8]* @.str, i64 0, i64 0), i32 %4)
ret void
}
int cust_hash(unsigned char *d_buf, unsigned int d_len, unsigned char *h_buf,
              unsigned int h_len) {
  if (h_len == (20)) {
  } else if (h_len == (32)) {
  }
  return -1;
}


x86 assembly (clang, -O0):
<cust_hash>:
push   %rbp
mov    %rsp,%rbp
mov    %rdi,-0x8(%rbp)
mov    %esi,-0xc(%rbp)
mov    %rdx,-0x18(%rbp)
mov    %ecx,-0x1c(%rbp)
cmpl   $0x14,-0x1c(%rbp)
jne    1121 <cust_hash+0x21>
jmp    1135 <cust_hash+0x35>
cmpl   $0x20,-0x1c(%rbp)
jne    1130 <cust_hash+0x30>
jmp    1130 <cust_hash+0x30>
jmp    1135 <cust_hash+0x35>
mov    $0xffffffff,%eax
pop    %rbp
ret

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

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

LLVM IR (-O2):
define i32 @cust_hash(i8* nocapture readnone %0, i32 %1, i8* nocapture readnone %2, i32 %3) {
ret i32 -1
}
/* Variables and functions */
void strcat(char *s, char *t) {
  while ('\0' != *s) {
    ++s;
  }
  while ('\0' != (*s = *t)) {
    ++s;
    ++t;
  }
}


x86 assembly (clang, -O0):
<strcat>:
push   %rbp
mov    %rsp,%rbp
mov    %rdi,-0x8(%rbp)
mov    %rsi,-0x10(%rbp)
mov    -0x8(%rbp),%rax
movsbl (%rax),%ecx
xor    %eax,%eax
cmp    %ecx,%eax
je     112e <strcat+0x2e>
mov    -0x8(%rbp),%rax
add    $0x1,%rax
mov    %rax,-0x8(%rbp)
jmp    110c <strcat+0xc>
jmp    1133 <strcat+0x33>
mov    -0x10(%rbp),%rax
mov    (%rax),%al
mov    -0x8(%rbp),%rcx
mov    %al,(%rcx)
movsbl %al,%ecx
xor    %eax,%eax
cmp    %ecx,%eax
je     1169 <strcat+0x69>
mov    -0x8(%rbp),%rax
add    $0x1,%rax
mov    %rax,-0x8(%rbp)
mov    -0x10(%rbp),%rax
add    $0x1,%rax
mov    %rax,-0x10(%rbp)
jmp    1133 <strcat+0x33>
pop    %rbp
ret

x86 assembly (clang, -O2):
<strcat>:
cmpb   $0x0,(%rdi)
lea    0x1(%rdi),%rdi
jne    1100 <strcat>
mov    (%rsi),%al
mov    %al,-0x1(%rdi)
test   %al,%al
je     1130 <strcat+0x30>
xor    %eax,%eax
cs nopw 0x0(%rax,%rax,1)
xchg   %ax,%ax
movzbl 0x1(%rsi,%rax,1),%ecx
mov    %cl,(%rdi,%rax,1)
add    $0x1,%rax
test   %cl,%cl
jne    1120 <strcat+0x20>
ret

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

LLVM IR (-O2):
define void @strcat(i8* nocapture %0, i8* nocapture %1) {
br label %3
3: ; preds = %3, %2
%4 = phi i8* [ %0, %2 ], [ %7, %3 ]
%5 = load i8, i8* %4
%6 = icmp eq i8 %5, 0
%7 = getelementptr inbounds i8, i8* %4, i64 1
br i1 %6, label %8, label %3
8: ; preds = %3
%9 = load i8, i8* %1
store i8 %9, i8* %4
%10 = icmp eq i8 %9, 0
br i1 %10, label %18, label %11
11: ; preds = %8, %11
%12 = phi i8* [ %15, %11 ], [ %1, %8 ]
%13 = phi i8* [ %14, %11 ], [ %4, %8 ]
%14 = getelementptr inbounds i8, i8* %13, i64 1
%15 = getelementptr inbounds i8, i8* %12, i64 1
%16 = load i8, i8* %15
store i8 %16, i8* %14
%17 = icmp eq i8 %16, 0
br i1 %17, label %18, label %11
18: ; preds = %11, %8
ret void
}
/* Type definitions */
typedef int /*<<< orphan*/ off_t;

/* Variables and functions */
int /*<<< orphan*/ printf(char *, int);
int main(int argc, char **argv) {
  printf("%ld\n", sizeof(off_t));
  return 0;
}


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

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

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

LLVM IR (-O2):
@.str = [5 x i8] c"%ld\0A\00"
define i32 @main(i32 %0, i8** nocapture readnone %1) {
%3 = tail call i32 @printf(i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str, i64 0, i64 0), i32 4)
ret i32 0
}
/* Variables and functions */
int /*<<< orphan*/ printf(char *, char *, char *, char *);
void show_version_info(void) {
  printf("%s %s\n"
         "%s\n"
         "License GPLv3+: GNU GPL version 3 or later "
         "<http://gnu.org/licenses/gpl.html>\n"
         "This is free software: you are free to change and redistribute it.\n"
         "There is NO WARRANTY, to the extent permitted by law.\n",
         "hdtime", "0.1", "Copyright (C) 2012 Israel G. Lugo");
}


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

x86 assembly (clang, -O2):
<show_version_info>:
lea    0xee9(%rip),%rdi
lea    0xfb3(%rip),%rsi
lea    0xfb3(%rip),%rdx
lea    0xfb0(%rip),%rcx
jmp    1030 <printf@plt>

LLVM IR (-O0):
@.str = [209 x i8] c"%s %s\0A%s\0ALicense GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>\0AThis is free software: you are free to change and redistribute it.\0AThere is NO WARRANTY, to the extent permitted by law.\0A\00"
@.str.1 = [7 x i8] c"hdtime\00"
@.str.2 = [4 x i8] c"0.1\00"
@.str.3 = [34 x i8] c"Copyright (C) 2012 Israel G. Lugo\00"
define void @show_version_info() {
%1 = call i32 @printf(i8* getelementptr inbounds ([209 x i8], [209 x i8]* @.str, i64 0, i64 0), i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.1, i64 0, i64 0), i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.2, i64 0, i64 0), i8* getelementptr inbounds ([34 x i8], [34 x i8]* @.str.3, i64 0, i64 0))
ret void
}

LLVM IR (-O2):
@.str = [209 x i8] c"%s %s\0A%s\0ALicense GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>\0AThis is free software: you are free to change and redistribute it.\0AThere is NO WARRANTY, to the extent permitted by law.\0A\00"
@.str.1 = [7 x i8] c"hdtime\00"
@.str.2 = [4 x i8] c"0.1\00"
@.str.3 = [34 x i8] c"Copyright (C) 2012 Israel G. Lugo\00"
define void @show_version_info() {
%1 = tail call i32 @printf(i8* getelementptr inbounds ([209 x i8], [209 x i8]* @.str, i64 0, i64 0), i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.1, i64 0, i64 0), i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.2, i64 0, i64 0), i8* getelementptr inbounds ([34 x i8], [34 x i8]* @.str.3, i64 0, i64 0))
ret void
}
void _gfortran_caf_finalize(void) {}


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

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

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

LLVM IR (-O2):
define void @_gfortran_caf_finalize() {
ret void
}
/* Variables and functions */
int /*<<< orphan*/ printf(char *);
int main(void) {
  printf("MBEDTLS_BASE64_C and/or MBEDTLS_FS_IO not defined.\n");
  return (0);
}


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

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

LLVM IR (-O0):
@.str = [52 x i8] c"MBEDTLS_BASE64_C and/or MBEDTLS_FS_IO not defined.\0A\00"
define i32 @main() {
%1 = alloca i32
store i32 0, i32* %1
%2 = call i32 @printf(i8* getelementptr inbounds ([52 x i8], [52 x i8]* @.str, i64 0, i64 0))
ret i32 0
}

LLVM IR (-O2):
@str = [51 x i8] c"MBEDTLS_BASE64_C and/or MBEDTLS_FS_IO not defined.\00"
define i32 @main() {
%1 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([51 x i8], [51 x i8]* @str, i64 0, i64 0))
ret i32 0
}