xunge/DecIR huggingface dataset:
/* Variables and functions */
scalar_t__ isdigit(int);
int isxdigit(int ch) {
  if (isdigit(ch))
    return 1;
  if ((ch >= 'a') && (ch <= 'f'))
    return 1;
  return (ch >= 'A') && (ch <= 'F');
}


x86 assembly (clang, -O0):
<isxdigit>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
mov    %edi,-0x8(%rbp)
mov    -0x8(%rbp),%edi
call   1030 <isdigit@plt>
cmp    $0x0,%rax
je     1139 <isxdigit+0x29>
movl   $0x1,-0x4(%rbp)
jmp    117d <isxdigit+0x6d>
cmpl   $0x61,-0x8(%rbp)
jl     1159 <isxdigit+0x49>
cmpl   $0x66,-0x8(%rbp)
jg     1159 <isxdigit+0x49>
movl   $0x1,-0x4(%rbp)
jmp    117d <isxdigit+0x6d>
xor    %eax,%eax
cmpl   $0x41,-0x8(%rbp)
mov    %al,-0x9(%rbp)
jl     1172 <isxdigit+0x62>
cmpl   $0x46,-0x8(%rbp)
setle  %al
mov    %al,-0x9(%rbp)
mov    -0x9(%rbp),%al
and    $0x1,%al
movzbl %al,%eax
mov    %eax,-0x4(%rbp)
mov    -0x4(%rbp),%eax
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<isxdigit>:
push   %rbx
mov    %edi,%ebx
call   1030 <isdigit@plt>
test   %rax,%rax
setne  %al
and    $0xffffffdf,%ebx
add    $0xffffffbf,%ebx
cmp    $0x6,%ebx
setb   %cl
or     %al,%cl
movzbl %cl,%eax
pop    %rbx
ret

LLVM IR (-O0):
define i32 @isxdigit(i32 %0) {
%2 = alloca i32
%3 = alloca i32
store i32 %0, i32* %3
%4 = load i32, i32* %3
%5 = call i64 @isdigit(i32 %4)
%6 = icmp ne i64 %5, 0
br i1 %6, label %7, label %8
7: ; preds = %1
store i32 1, i32* %2
br label %24
8: ; preds = %1
%9 = load i32, i32* %3
%10 = icmp sge i32 %9, 97
br i1 %10, label %11, label %15
11: ; preds = %8
%12 = load i32, i32* %3
%13 = icmp sle i32 %12, 102
br i1 %13, label %14, label %15
14: ; preds = %11
store i32 1, i32* %2
br label %24
15: ; preds = %11, %8
%16 = load i32, i32* %3
%17 = icmp sge i32 %16, 65
br i1 %17, label %18, label %21
18: ; preds = %15
%19 = load i32, i32* %3
%20 = icmp sle i32 %19, 70
br label %21
21: ; preds = %18, %15
%22 = phi i1 [ false, %15 ], [ %20, %18 ]
%23 = zext i1 %22 to i32
store i32 %23, i32* %2
br label %24
24: ; preds = %21, %14, %7
%25 = load i32, i32* %2
ret i32 %25
}

LLVM IR (-O2):
define i32 @isxdigit(i32 %0) {
%2 = tail call i64 @isdigit(i32 %0)
%3 = icmp ne i64 %2, 0
%4 = and i32 %0, -33
%5 = add i32 %4, -65
%6 = icmp ult i32 %5, 6
%7 = or i1 %6, %3
%8 = zext i1 %7 to i32
ret i32 %8
}
/* Variables and functions */
float __nv_atanhf(float);
float atanhf(float __a) { return __nv_atanhf(__a); }


x86 assembly (clang, -O0):
<atanhf>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
movss  %xmm0,-0x4(%rbp)
movss  -0x4(%rbp),%xmm0
call   1030 <__nv_atanhf@plt>
add    $0x10,%rsp
pop    %rbp
ret

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

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

LLVM IR (-O2):
define float @atanhf(float %0) {
%2 = tail call float @__nv_atanhf(float %0)
ret float %2
}
/* Variables and functions */
int /*<<< orphan*/ memcpy(char *, int /*<<< orphan*/, int /*<<< orphan*/);
void memcpy13() {
  char a[4] = {0};
  memcpy(a, 0, 0);
}


x86 assembly (clang, -O0):
<memcpy13>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
lea    -0x4(%rbp),%rdi
xor    %esi,%esi
mov    $0x4,%edx
call   1030 <memset@plt>
lea    -0x4(%rbp),%rdi
xor    %edx,%edx
mov    %edx,%esi
call   1040 <memcpy@plt>
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<memcpy13>:
push   %rax
movl   $0x0,0x4(%rsp)
lea    0x4(%rsp),%rdi
xor    %esi,%esi
xor    %edx,%edx
call   1030 <memcpy@plt>
pop    %rax
ret

LLVM IR (-O0):
define void @memcpy13() {
%1 = alloca [4 x i8]
%2 = bitcast [4 x i8]* %1 to i8*
%3 = getelementptr inbounds [4 x i8], [4 x i8]* %1, i64 0, i64 0
%4 = call i32 @memcpy(i8* %3, i32 0, i32 0)
ret void
}

LLVM IR (-O2):
define void @memcpy13() {
%1 = alloca i32
%2 = bitcast i32* %1 to i8*
store i32 0, i32* %1
%3 = call i32 @memcpy(i8* %2, i32 0, i32 0)
ret void
}
/* Type definitions */
typedef int /*<<< orphan*/ ENGINE;

/* Variables and functions */
int e_rsax_finish(ENGINE *e) { return 1; }


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

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

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

LLVM IR (-O2):
define i32 @e_rsax_finish(i32* nocapture readnone %0) {
ret i32 1
}
void gtk_cell_view_new_with_text() {}


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

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

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

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

/* Variables and functions */
int /*<<< orphan*/ _mm_cmpeq_pi16(int /*<<< orphan*/, int /*<<< orphan*/);
__m64 test_mm_cmpeq_pi16(__m64 a, __m64 b) { return _mm_cmpeq_pi16(a, b); }


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

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

LLVM IR (-O0):
define i32 @test_mm_cmpeq_pi16(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 = call i32 @_mm_cmpeq_pi16(i32 %5, i32 %6)
ret i32 %7
}

LLVM IR (-O2):
define i32 @test_mm_cmpeq_pi16(i32 %0, i32 %1) {
%3 = tail call i32 @_mm_cmpeq_pi16(i32 %0, i32 %1)
ret i32 %3
}
/* Variables and functions */
int /*<<< orphan*/ evenMulti(int, int);
int main(void) {
  int a = 365;
  int b = 12258;
  int c = 996;
  int d = 7;
  int e = 23;
  int f = 4;
  evenMulti(a, d);
  evenMulti(b, e);
  evenMulti(c, f);
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x20,%rsp
movl   $0x16d,-0x4(%rbp)
movl   $0x2fe2,-0x8(%rbp)
movl   $0x3e4,-0xc(%rbp)
movl   $0x7,-0x10(%rbp)
movl   $0x17,-0x14(%rbp)
movl   $0x4,-0x18(%rbp)
mov    -0x4(%rbp),%edi
mov    -0x10(%rbp),%esi
call   1030 <evenMulti@plt>
mov    -0x8(%rbp),%edi
mov    -0x14(%rbp),%esi
call   1030 <evenMulti@plt>
mov    -0xc(%rbp),%edi
mov    -0x18(%rbp),%esi
call   1030 <evenMulti@plt>
xor    %eax,%eax
add    $0x20,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %rax
mov    $0x16d,%edi
mov    $0x7,%esi
call   1030 <evenMulti@plt>
mov    $0x2fe2,%edi
mov    $0x17,%esi
call   1030 <evenMulti@plt>
mov    $0x3e4,%edi
mov    $0x4,%esi
call   1030 <evenMulti@plt>
xor    %eax,%eax
pop    %rcx
ret

LLVM IR (-O0):
define i32 @main() {
%1 = alloca i32
%2 = alloca i32
%3 = alloca i32
%4 = alloca i32
%5 = alloca i32
%6 = alloca i32
store i32 365, i32* %1
store i32 12258, i32* %2
store i32 996, i32* %3
store i32 7, i32* %4
store i32 23, i32* %5
store i32 4, i32* %6
%7 = load i32, i32* %1
%8 = load i32, i32* %4
%9 = call i32 @evenMulti(i32 %7, i32 %8)
%10 = load i32, i32* %2
%11 = load i32, i32* %5
%12 = call i32 @evenMulti(i32 %10, i32 %11)
%13 = load i32, i32* %3
%14 = load i32, i32* %6
%15 = call i32 @evenMulti(i32 %13, i32 %14)
ret i32 0
}

LLVM IR (-O2):
define i32 @main() {
%1 = tail call i32 @evenMulti(i32 365, i32 7)
%2 = tail call i32 @evenMulti(i32 12258, i32 23)
%3 = tail call i32 @evenMulti(i32 996, i32 4)
ret i32 0
}
/* Variables and functions */
scalar_t__ hash_string(void *);
int equal_string(void *s1, void *s2) {
  return hash_string(s1) == hash_string(s2);
}


x86 assembly (clang, -O0):
<equal_string>:
push   %rbp
mov    %rsp,%rbp
sub    $0x20,%rsp
mov    %rdi,-0x8(%rbp)
mov    %rsi,-0x10(%rbp)
mov    -0x8(%rbp),%rdi
call   1030 <hash_string@plt>
mov    %rax,-0x18(%rbp)
mov    -0x10(%rbp),%rdi
call   1030 <hash_string@plt>
mov    %rax,%rcx
mov    -0x18(%rbp),%rax
cmp    %rcx,%rax
sete   %al
and    $0x1,%al
movzbl %al,%eax
add    $0x20,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<equal_string>:
push   %r14
push   %rbx
push   %rax
mov    %rsi,%r14
call   1030 <hash_string@plt>
mov    %rax,%rbx
mov    %r14,%rdi
call   1030 <hash_string@plt>
xor    %ecx,%ecx
cmp    %rax,%rbx
sete   %cl
mov    %ecx,%eax
add    $0x8,%rsp
pop    %rbx
pop    %r14
ret

LLVM IR (-O0):
define i32 @equal_string(i8* %0, i8* %1) {
%3 = alloca i8*
%4 = alloca i8*
store i8* %0, i8** %3
store i8* %1, i8** %4
%5 = load i8*, i8** %3
%6 = call i64 @hash_string(i8* %5)
%7 = load i8*, i8** %4
%8 = call i64 @hash_string(i8* %7)
%9 = icmp eq i64 %6, %8
%10 = zext i1 %9 to i32
ret i32 %10
}

LLVM IR (-O2):
define i32 @equal_string(i8* %0, i8* %1) {
%3 = tail call i64 @hash_string(i8* %0)
%4 = tail call i64 @hash_string(i8* %1)
%5 = icmp eq i64 %3, %4
%6 = zext i1 %5 to i32
ret i32 %6
}
/* Variables and functions */
int /*<<< orphan*/ GenExtendRegAIfNeeded(int);
int /*<<< orphan*/ GenPrintInstr2Operands(int, int /*<<< orphan*/, int,
                                          int /*<<< orphan*/, int,
                                          int /*<<< orphan*/);
int GenSelectByteOrWord(int, int);
void GenReadIndirect(int opSz) {
  GenPrintInstr2Operands(0x00, 0, 0x04, 0, 0x03, 0);
  GenPrintInstr2Operands(0x00, 0, GenSelectByteOrWord(0x0B, opSz), 0, 0x1A, 0);
  GenExtendRegAIfNeeded(opSz);
}


x86 assembly (clang, -O0):
<GenReadIndirect>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
mov    %edi,-0x4(%rbp)
xor    %r9d,%r9d
mov    $0x4,%edx
mov    $0x3,%r8d
mov    %r9d,%edi
mov    %r9d,%esi
mov    %r9d,%ecx
call   1040 <GenPrintInstr2Operands@plt>
mov    -0x4(%rbp),%esi
mov    $0xb,%edi
call   1030 <GenSelectByteOrWord@plt>
mov    %eax,%edx
xor    %r9d,%r9d
mov    $0x1a,%r8d
mov    %r9d,%edi
mov    %r9d,%esi
mov    %r9d,%ecx
call   1040 <GenPrintInstr2Operands@plt>
mov    -0x4(%rbp),%edi
call   1050 <GenExtendRegAIfNeeded@plt>
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<GenReadIndirect>:
push   %rbx
mov    %edi,%ebx
xor    %edi,%edi
xor    %esi,%esi
mov    $0x4,%edx
xor    %ecx,%ecx
mov    $0x3,%r8d
xor    %r9d,%r9d
call   1040 <GenPrintInstr2Operands@plt>
mov    $0xb,%edi
mov    %ebx,%esi
call   1030 <GenSelectByteOrWord@plt>
xor    %edi,%edi
xor    %esi,%esi
mov    %eax,%edx
xor    %ecx,%ecx
mov    $0x1a,%r8d
xor    %r9d,%r9d
call   1040 <GenPrintInstr2Operands@plt>
mov    %ebx,%edi
pop    %rbx
jmp    1050 <GenExtendRegAIfNeeded@plt>

LLVM IR (-O0):
define void @GenReadIndirect(i32 %0) {
%2 = alloca i32
store i32 %0, i32* %2
%3 = call i32 @GenPrintInstr2Operands(i32 0, i32 0, i32 4, i32 0, i32 3, i32 0)
%4 = load i32, i32* %2
%5 = call i32 @GenSelectByteOrWord(i32 11, i32 %4)
%6 = call i32 @GenPrintInstr2Operands(i32 0, i32 0, i32 %5, i32 0, i32 26, i32 0)
%7 = load i32, i32* %2
%8 = call i32 @GenExtendRegAIfNeeded(i32 %7)
ret void
}

LLVM IR (-O2):
define void @GenReadIndirect(i32 %0) {
%2 = tail call i32 @GenPrintInstr2Operands(i32 0, i32 0, i32 4, i32 0, i32 3, i32 0)
%3 = tail call i32 @GenSelectByteOrWord(i32 11, i32 %0)
%4 = tail call i32 @GenPrintInstr2Operands(i32 0, i32 0, i32 %3, i32 0, i32 26, i32 0)
%5 = tail call i32 @GenExtendRegAIfNeeded(i32 %0)
ret void
}
/* Variables and functions */
int /*<<< orphan*/ error(char *);
void *realloc(void *, size_t);
void *srealloc(void *p, size_t size) {
  p = realloc(p, size);
  if (p == NULL)
    error("cannot realloc()");
  return (p);
}


x86 assembly (clang, -O0):
<srealloc>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
mov    %rdi,-0x8(%rbp)
mov    %rsi,-0x10(%rbp)
mov    -0x8(%rbp),%rdi
mov    -0x10(%rbp),%rsi
call   1030 <realloc@plt>
mov    %rax,-0x8(%rbp)
cmpq   $0x0,-0x8(%rbp)
jne    1158 <srealloc+0x38>
lea    0xead(%rip),%rdi
call   1040 <error@plt>
mov    -0x8(%rbp),%rax
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<srealloc>:
push   %rbx
call   1030 <realloc@plt>
mov    %rax,%rbx
test   %rax,%rax
jne    113a <srealloc+0x1a>
lea    0xecb(%rip),%rdi
call   1040 <error@plt>
mov    %rbx,%rax
pop    %rbx
ret

LLVM IR (-O0):
@.str = [17 x i8] c"cannot realloc()\00"
define i8* @srealloc(i8* %0, i64 %1) {
%3 = alloca i8*
%4 = alloca i64
store i8* %0, i8** %3
store i64 %1, i64* %4
%5 = load i8*, i8** %3
%6 = load i64, i64* %4
%7 = call i8* @realloc(i8* %5, i64 %6)
store i8* %7, i8** %3
%8 = load i8*, i8** %3
%9 = icmp eq i8* %8, null
br i1 %9, label %10, label %12
10: ; preds = %2
%11 = call i32 @error(i8* getelementptr inbounds ([17 x i8], [17 x i8]* @.str, i64 0, i64 0))
br label %12
12: ; preds = %10, %2
%13 = load i8*, i8** %3
ret i8* %13
}

LLVM IR (-O2):
@.str = [17 x i8] c"cannot realloc()\00"
define noalias i8* @srealloc(i8* nocapture %0, i64 %1) {
%3 = tail call i8* @realloc(i8* %0, i64 %1)
%4 = icmp eq i8* %3, null
br i1 %4, label %5, label %7
5: ; preds = %2
%6 = tail call i32 @error(i8* getelementptr inbounds ([17 x i8], [17 x i8]* @.str, i64 0, i64 0))
br label %7
7: ; preds = %5, %2
ret i8* %3
}
void stm_barrier(void) { asm volatile("mfence" ::: "memory"); }


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

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

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

LLVM IR (-O2):
define void @stm_barrier() {
tail call void asm sideeffect "mfence", "~{memory},~{dirflag},~{fpsr},~{flags}"()
ret void
}
void power_info_eeprom_9003(struct edump *edump) {}


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

x86 assembly (clang, -O2):
ret

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

LLVM IR (-O2):
%struct.edump = type opaque
define void @power_info_eeprom_9003(%struct.edump* nocapture %0) {
ret void
}
void swap_u_long_4(unsigned long *tni4) {
  *tni4 = (((*tni4 >> 24) & 0xff) | ((*tni4 & 0xff) << 24) |
           ((*tni4 >> 8) & 0xff00) | ((*tni4 & 0xff00) << 8));
}


x86 assembly (clang, -O0):
<swap_u_long_4>:
push   %rbp
mov    %rsp,%rbp
mov    %rdi,-0x8(%rbp)
mov    -0x8(%rbp),%rax
mov    (%rax),%rcx
shr    $0x18,%rcx
and    $0xff,%rcx
mov    -0x8(%rbp),%rax
mov    (%rax),%rax
and    $0xff,%rax
shl    $0x18,%rax
or     %rax,%rcx
mov    -0x8(%rbp),%rax
mov    (%rax),%rax
shr    $0x8,%rax
and    $0xff00,%rax
or     %rax,%rcx
mov    -0x8(%rbp),%rax
mov    (%rax),%rax
and    $0xff00,%rax
shl    $0x8,%rax
or     %rax,%rcx
mov    -0x8(%rbp),%rax
mov    %rcx,(%rax)
pop    %rbp
ret

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

LLVM IR (-O0):
define void @swap_u_long_4(i64* %0) {
%2 = alloca i64*
store i64* %0, i64** %2
%3 = load i64*, i64** %2
%4 = load i64, i64* %3
%5 = lshr i64 %4, 24
%6 = and i64 %5, 255
%7 = load i64*, i64** %2
%8 = load i64, i64* %7
%9 = and i64 %8, 255
%10 = shl i64 %9, 24
%11 = or i64 %6, %10
%12 = load i64*, i64** %2
%13 = load i64, i64* %12
%14 = lshr i64 %13, 8
%15 = and i64 %14, 65280
%16 = or i64 %11, %15
%17 = load i64*, i64** %2
%18 = load i64, i64* %17
%19 = and i64 %18, 65280
%20 = shl i64 %19, 8
%21 = or i64 %16, %20
%22 = load i64*, i64** %2
store i64 %21, i64* %22
ret void
}

LLVM IR (-O2):
define void @swap_u_long_4(i64* nocapture %0) {
%2 = load i64, i64* %0
%3 = trunc i64 %2 to i32
%4 = tail call i32 @llvm.bswap.i32(i32 %3)
%5 = zext i32 %4 to i64
store i64 %5, i64* %0
ret void
}
/* Type definitions */
typedef int /*<<< orphan*/ uint8_t;

/* Variables and functions */
int /*<<< orphan*/ wiznetRegWriteByte(int /*<<< orphan*/, int,
                                      int /*<<< orphan*/);
void wiznetSetSocketInterrupt(uint8_t socket, uint8_t interrupt) {
  wiznetRegWriteByte(socket, (0x0000 + 0x0002), interrupt);
}


x86 assembly (clang, -O0):
<wiznetSetSocketInterrupt>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
mov    %edi,-0x4(%rbp)
mov    %esi,-0x8(%rbp)
mov    -0x4(%rbp),%edi
mov    -0x8(%rbp),%edx
mov    $0x2,%esi
call   1030 <wiznetRegWriteByte@plt>
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<wiznetSetSocketInterrupt>:
mov    %esi,%edx
mov    $0x2,%esi
jmp    1030 <wiznetRegWriteByte@plt>

LLVM IR (-O0):
define void @wiznetSetSocketInterrupt(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 = call i32 @wiznetRegWriteByte(i32 %5, i32 2, i32 %6)
ret void
}

LLVM IR (-O2):
define void @wiznetSetSocketInterrupt(i32 %0, i32 %1) {
%3 = tail call i32 @wiznetRegWriteByte(i32 %0, i32 2, i32 %1)
ret void
}
void spiInit(void) {}


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

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

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

LLVM IR (-O2):
define void @spiInit() {
ret void
}
/* Variables and functions */
double __nv_dadd_rd(double, double);
double __dadd_rd(double __a, double __b) { return __nv_dadd_rd(__a, __b); }


x86 assembly (clang, -O0):
<__dadd_rd>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
movsd  %xmm0,-0x8(%rbp)
movsd  %xmm1,-0x10(%rbp)
movsd  -0x8(%rbp),%xmm0
movsd  -0x10(%rbp),%xmm1
call   1030 <__nv_dadd_rd@plt>
add    $0x10,%rsp
pop    %rbp
ret

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

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

LLVM IR (-O2):
define double @__dadd_rd(double %0, double %1) {
%3 = tail call double @__nv_dadd_rd(double %0, double %1)
ret double %3
}
/* Type definitions */
typedef int u_int32_t;
typedef int int64_t;

/* Variables and functions */
unsigned int SARRandom(unsigned int seed_offset) {
  static u_int32_t gSeed = 1234145;
  int64_t result = gSeed * (int64_t)1103515245 + 12345;
  gSeed = (u_int32_t)result;
  return ((u_int32_t)(result >> 16));
}


x86 assembly (clang, -O0):
<SARRandom>:
push   %rbp
mov    %rsp,%rbp
mov    %edi,-0x4(%rbp)
imul   $0x41c64e6d,0x2f0f(%rip),%eax
4e c6 41
add    $0x3039,%eax
mov    %eax,-0x8(%rbp)
mov    -0x8(%rbp),%eax
mov    %eax,0x2efe(%rip)
mov    -0x8(%rbp),%eax
sar    $0x10,%eax
pop    %rbp
ret

x86 assembly (clang, -O2):
<SARRandom>:
imul   $0x41c64e6d,0x2f16(%rip),%eax
4e c6 41
add    $0x3039,%eax
mov    %eax,0x2f0b(%rip)
sar    $0x10,%eax
ret

LLVM IR (-O0):
@SARRandom.gSeed = internal global i32 1234145
define i32 @SARRandom(i32 %0) {
%2 = alloca i32
%3 = alloca i32
store i32 %0, i32* %2
%4 = load i32, i32* @SARRandom.gSeed
%5 = mul nsw i32 %4, 1103515245
%6 = add nsw i32 %5, 12345
store i32 %6, i32* %3
%7 = load i32, i32* %3
store i32 %7, i32* @SARRandom.gSeed
%8 = load i32, i32* %3
%9 = ashr i32 %8, 16
ret i32 %9
}

LLVM IR (-O2):
@SARRandom.gSeed = internal unnamed_addr global i32 1234145
define i32 @SARRandom(i32 %0) {
%2 = load i32, i32* @SARRandom.gSeed
%3 = mul nsw i32 %2, 1103515245
%4 = add nsw i32 %3, 12345
store i32 %4, i32* @SARRandom.gSeed
%5 = ashr i32 %4, 16
ret i32 %5
}
int test_imm_C1int64_highword_mem(long long *val) {
  return ((*val >> 32) & (0xC1 << 0)) ? -20 : -40;
}


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

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

LLVM IR (-O0):
define i32 @test_imm_C1int64_highword_mem(i64* %0) {
%2 = alloca i64*
store i64* %0, i64** %2
%3 = load i64*, i64** %2
%4 = load i64, i64* %3
%5 = ashr i64 %4, 32
%6 = and i64 %5, 193
%7 = icmp ne i64 %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_C1int64_highword_mem(i64* nocapture %0) {
%2 = load i64, i64* %0
%3 = and i64 %2, 828928688128
%4 = icmp eq i64 %3, 0
%5 = select i1 %4, i32 -40, i32 -20
ret i32 %5
}
void UYVYToARGBRow_AVX2() {}


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

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

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

LLVM IR (-O2):
define void @UYVYToARGBRow_AVX2() {
ret void
}
int findopt(char opt, const char *options) {
  int opti;
  opti = 0;
  while ((options[opti] != 0) && (options[opti] != opt)) {
    opti++;
  }
  return opti;
}


x86 assembly (clang, -O0):
<findopt>:
push   %rbp
mov    %rsp,%rbp
mov    %dil,%al
mov    %al,-0x1(%rbp)
mov    %rsi,-0x10(%rbp)
movl   $0x0,-0x14(%rbp)
mov    -0x10(%rbp),%rax
movslq -0x14(%rbp),%rcx
movsbl (%rax,%rcx,1),%ecx
xor    %eax,%eax
cmp    $0x0,%ecx
mov    %al,-0x15(%rbp)
je     1147 <findopt+0x47>
mov    -0x10(%rbp),%rax
movslq -0x14(%rbp),%rcx
movsbl (%rax,%rcx,1),%eax
movsbl -0x1(%rbp),%ecx
cmp    %ecx,%eax
setne  %al
mov    %al,-0x15(%rbp)
mov    -0x15(%rbp),%al
test   $0x1,%al
jne    1157 <findopt+0x57>
jmp    1165 <findopt+0x65>
mov    -0x14(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x14(%rbp)
jmp    1115 <findopt+0x15>
mov    -0x14(%rbp),%eax
pop    %rbp
ret

x86 assembly (clang, -O2):
<findopt>:
mov    $0xffffffff,%eax
cs nopw 0x0(%rax,%rax,1)
nop
movzbl (%rsi),%ecx
add    $0x1,%eax
test   %cl,%cl
je     1123 <findopt+0x23>
add    $0x1,%rsi
cmp    %dil,%cl
jne    1110 <findopt+0x10>
ret

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

LLVM IR (-O2):
define i32 @findopt(i8 signext %0, i8* nocapture %1) {
br label %3
3: ; preds = %3, %2
%4 = phi i64 [ %10, %3 ], [ 0, %2 ]
%5 = getelementptr inbounds i8, i8* %1, i64 %4
%6 = load i8, i8* %5
%7 = icmp eq i8 %6, 0
%8 = icmp eq i8 %6, %0
%9 = or i1 %7, %8
%10 = add nuw i64 %4, 1
br i1 %9, label %11, label %3
11: ; preds = %3
%12 = trunc i64 %4 to i32
ret i32 %12
}
void RTMpGetOnlineSet(void) {}


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

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

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

LLVM IR (-O2):
define void @RTMpGetOnlineSet() {
ret void
}
/* Variables and functions */
double atan(double);
double phi(double xi) { return 2 * (atan(1.0) * 4.0) * xi; }


x86 assembly (clang, -O0):
<phi>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
movsd  %xmm0,-0x8(%rbp)
movsd  0xeeb(%rip),%xmm0
call   1030 <atan@plt>
movaps %xmm0,%xmm1
movsd  0xed3(%rip),%xmm0
mulsd  %xmm0,%xmm1
movsd  0xebf(%rip),%xmm0
mulsd  %xmm1,%xmm0
mulsd  -0x8(%rbp),%xmm0
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<phi>:
push   %rax
movsd  %xmm0,(%rsp)
movsd  0xee2(%rip),%xmm0
call   1030 <atan@plt>
movsd  (%rsp),%xmm0
mulsd  0xed8(%rip),%xmm0
pop    %rax
ret

LLVM IR (-O0):
define double @phi(double %0) {
%2 = alloca double
store double %0, double* %2
%3 = call double @atan(double 1.000000e+00)
%4 = fmul double %3, 4.000000e+00
%5 = fmul double 2.000000e+00, %4
%6 = load double, double* %2
%7 = fmul double %5, %6
ret double %7
}

LLVM IR (-O2):
define double @phi(double %0) {
%2 = tail call double @atan(double 1.000000e+00)
%3 = fmul double %0, 0x401921FB54442D18
ret double %3
}
/* Variables and functions */
int /*<<< orphan*/ cat_start();
int /*<<< orphan*/ clock_get_relative();
int /*<<< orphan*/ game_scroll_handler(int /*<<< orphan*/,
                                       int /*<<< orphan*/ *);
void game_start(void) {
  game_scroll_handler(clock_get_relative(), NULL);
  cat_start();
}


x86 assembly (clang, -O0):
<game_start>:
push   %rbp
mov    %rsp,%rbp
mov    $0x0,%al
call   1030 <clock_get_relative@plt>
mov    %eax,%edi
xor    %eax,%eax
mov    %eax,%esi
call   1040 <game_scroll_handler@plt>
mov    $0x0,%al
call   1050 <cat_start@plt>
pop    %rbp
ret

x86 assembly (clang, -O2):
<game_start>:
push   %rax
xor    %eax,%eax
call   1030 <clock_get_relative@plt>
mov    %eax,%edi
xor    %esi,%esi
call   1040 <game_scroll_handler@plt>
xor    %eax,%eax
pop    %rcx
jmp    1050 <cat_start@plt>

LLVM IR (-O0):
define void @game_start() {
%1 = call i32 (...) @clock_get_relative()
%2 = call i32 @game_scroll_handler(i32 %1, i32* null)
%3 = call i32 (...) @cat_start()
ret void
}

LLVM IR (-O2):
define void @game_start() {
%1 = tail call i32 (...) @clock_get_relative()
%2 = tail call i32 @game_scroll_handler(i32 %1, i32* null)
%3 = tail call i32 (...) @cat_start()
ret void
}
/* Type definitions */
typedef int /*<<< orphan*/ time_t;
struct tm {
  int tm_sec;
  int tm_min;
  int tm_hour;
};

/* Variables and functions */
int /*<<< orphan*/ localtime_r(int /*<<< orphan*/ *, struct tm *);
int daytime(time_t *time) {
  struct tm dtm;
  localtime_r(time, &dtm);
  int retval = dtm.tm_sec + dtm.tm_min * 60 + dtm.tm_hour * 3600;
  return retval;
}


x86 assembly (clang, -O0):
<daytime>:
push   %rbp
mov    %rsp,%rbp
sub    $0x20,%rsp
mov    %rdi,-0x8(%rbp)
mov    -0x8(%rbp),%rdi
lea    -0x18(%rbp),%rsi
call   1030 <localtime_r@plt>
mov    -0x18(%rbp),%eax
imul   $0x3c,-0x14(%rbp),%ecx
add    %ecx,%eax
imul   $0xe10,-0x10(%rbp),%ecx
add    %ecx,%eax
mov    %eax,-0x1c(%rbp)
mov    -0x1c(%rbp),%eax
add    $0x20,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<daytime>:
sub    $0x18,%rsp
lea    0x8(%rsp),%rsi
call   1030 <localtime_r@plt>
imul   $0x3c,0xc(%rsp),%ecx
add    0x8(%rsp),%ecx
imul   $0xe10,0x10(%rsp),%eax
add    %ecx,%eax
add    $0x18,%rsp
ret

LLVM IR (-O0):
%struct.tm = type { i32, i32, i32 }
define i32 @daytime(i32* %0) {
%2 = alloca i32*
%3 = alloca %struct.tm
%4 = alloca i32
store i32* %0, i32** %2
%5 = load i32*, i32** %2
%6 = call i32 @localtime_r(i32* %5, %struct.tm* %3)
%7 = getelementptr inbounds %struct.tm, %struct.tm* %3, i32 0, i32 0
%8 = load i32, i32* %7
%9 = getelementptr inbounds %struct.tm, %struct.tm* %3, i32 0, i32 1
%10 = load i32, i32* %9
%11 = mul nsw i32 %10, 60
%12 = add nsw i32 %8, %11
%13 = getelementptr inbounds %struct.tm, %struct.tm* %3, i32 0, i32 2
%14 = load i32, i32* %13
%15 = mul nsw i32 %14, 3600
%16 = add nsw i32 %12, %15
store i32 %16, i32* %4
%17 = load i32, i32* %4
ret i32 %17
}

LLVM IR (-O2):
%struct.tm = type { i32, i32, i32 }
define i32 @daytime(i32* %0) {
%2 = alloca %struct.tm
%3 = bitcast %struct.tm* %2 to i8*
%4 = call i32 @localtime_r(i32* %0, %struct.tm* %2)
%5 = getelementptr inbounds %struct.tm, %struct.tm* %2, i64 0, i32 0
%6 = load i32, i32* %5
%7 = getelementptr inbounds %struct.tm, %struct.tm* %2, i64 0, i32 1
%8 = load i32, i32* %7
%9 = mul nsw i32 %8, 60
%10 = add nsw i32 %9, %6
%11 = getelementptr inbounds %struct.tm, %struct.tm* %2, i64 0, i32 2
%12 = load i32, i32* %11
%13 = mul nsw i32 %12, 3600
%14 = add nsw i32 %10, %13
ret i32 %14
}
struct l_class_OC_DummyStream *
_ZN11DummyStreamlsIPKcEERS_T_(struct l_class_OC_DummyStream *llvm_cbe_this,
                              unsigned char *llvm_cbe_arg) {
  struct l_class_OC_DummyStream *llvm_cbe_retval;
  struct l_class_OC_DummyStream *llvm_cbe_this_2e_addr;
  unsigned char *llvm_cbe_arg_2e_addr;
  struct l_class_OC_DummyStream *llvm_cbe_this1;
  struct l_class_OC_DummyStream *llvm_cbe_tmp__61;
  *(&llvm_cbe_this_2e_addr) = llvm_cbe_this;
  *(&llvm_cbe_arg_2e_addr) = llvm_cbe_arg;
  llvm_cbe_this1 = *(&llvm_cbe_this_2e_addr);
  *(&llvm_cbe_retval) = llvm_cbe_this1;
  llvm_cbe_tmp__61 = *(&llvm_cbe_retval);
  return llvm_cbe_tmp__61;
}


x86 assembly (clang, -O0):
<_ZN11DummyStreamlsIPKcEERS_T_>:
push   %rbp
mov    %rsp,%rbp
mov    %rdi,-0x8(%rbp)
mov    %rsi,-0x10(%rbp)
mov    -0x8(%rbp),%rax
mov    %rax,-0x20(%rbp)
mov    -0x10(%rbp),%rax
mov    %rax,-0x28(%rbp)
mov    -0x20(%rbp),%rax
mov    %rax,-0x30(%rbp)
mov    -0x30(%rbp),%rax
mov    %rax,-0x18(%rbp)
mov    -0x18(%rbp),%rax
mov    %rax,-0x38(%rbp)
mov    -0x38(%rbp),%rax
pop    %rbp
ret

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

LLVM IR (-O0):
%struct.l_class_OC_DummyStream = type opaque
define %struct.l_class_OC_DummyStream* @_ZN11DummyStreamlsIPKcEERS_T_(%struct.l_class_OC_DummyStream* %0, i8* %1) {
%3 = alloca %struct.l_class_OC_DummyStream*
%4 = alloca i8*
%5 = alloca %struct.l_class_OC_DummyStream*
%6 = alloca %struct.l_class_OC_DummyStream*
%7 = alloca i8*
%8 = alloca %struct.l_class_OC_DummyStream*
%9 = alloca %struct.l_class_OC_DummyStream*
store %struct.l_class_OC_DummyStream* %0, %struct.l_class_OC_DummyStream** %3
store i8* %1, i8** %4
%10 = load %struct.l_class_OC_DummyStream*, %struct.l_class_OC_DummyStream** %3
store %struct.l_class_OC_DummyStream* %10, %struct.l_class_OC_DummyStream** %6
%11 = load i8*, i8** %4
store i8* %11, i8** %7
%12 = load %struct.l_class_OC_DummyStream*, %struct.l_class_OC_DummyStream** %6
store %struct.l_class_OC_DummyStream* %12, %struct.l_class_OC_DummyStream** %8
%13 = load %struct.l_class_OC_DummyStream*, %struct.l_class_OC_DummyStream** %8
store %struct.l_class_OC_DummyStream* %13, %struct.l_class_OC_DummyStream** %5
%14 = load %struct.l_class_OC_DummyStream*, %struct.l_class_OC_DummyStream** %5
store %struct.l_class_OC_DummyStream* %14, %struct.l_class_OC_DummyStream** %9
%15 = load %struct.l_class_OC_DummyStream*, %struct.l_class_OC_DummyStream** %9
ret %struct.l_class_OC_DummyStream* %15
}

LLVM IR (-O2):
%struct.l_class_OC_DummyStream = type opaque
define %struct.l_class_OC_DummyStream* @_ZN11DummyStreamlsIPKcEERS_T_(%struct.l_class_OC_DummyStream* readnone returned %0, i8* nocapture readnone %1) {
ret %struct.l_class_OC_DummyStream* %0
}
/* Variables and functions */
int /*<<< orphan*/ record_linux_param_description(char *, char *, char *);
void module_param_desc_max_increment(void) {
  record_linux_param_description(
      "tcp_bic.c", "max_increment",
      "Limit on increment allowed during binary search");
}


x86 assembly (clang, -O0):
<module_param_desc_max_increment>:
push   %rbp
mov    %rsp,%rbp
lea    0xee5(%rip),%rdi
lea    0xee8(%rip),%rsi
lea    0xeef(%rip),%rdx
call   1030 <record_linux_param_description@plt>
pop    %rbp
ret

x86 assembly (clang, -O2):
<module_param_desc_max_increment>:
lea    0xee9(%rip),%rdi
lea    0xeec(%rip),%rsi
lea    0xef3(%rip),%rdx
jmp    1030 <record_linux_param_description@plt>

LLVM IR (-O0):
@.str = [10 x i8] c"tcp_bic.c\00"
@.str.1 = [14 x i8] c"max_increment\00"
@.str.2 = [48 x i8] c"Limit on increment allowed during binary search\00"
define void @module_param_desc_max_increment() {
%1 = call i32 @record_linux_param_description(i8* getelementptr inbounds ([10 x i8], [10 x i8]* @.str, i64 0, i64 0), i8* getelementptr inbounds ([14 x i8], [14 x i8]* @.str.1, i64 0, i64 0), i8* getelementptr inbounds ([48 x i8], [48 x i8]* @.str.2, i64 0, i64 0))
ret void
}

LLVM IR (-O2):
@.str = [10 x i8] c"tcp_bic.c\00"
@.str.1 = [14 x i8] c"max_increment\00"
@.str.2 = [48 x i8] c"Limit on increment allowed during binary search\00"
define void @module_param_desc_max_increment() {
%1 = tail call i32 @record_linux_param_description(i8* getelementptr inbounds ([10 x i8], [10 x i8]* @.str, i64 0, i64 0), i8* getelementptr inbounds ([14 x i8], [14 x i8]* @.str.1, i64 0, i64 0), i8* getelementptr inbounds ([48 x i8], [48 x i8]* @.str.2, i64 0, i64 0))
ret void
}
void process_job(struct job *job) {}


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

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

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

LLVM IR (-O2):
%struct.job = type opaque
define void @process_job(%struct.job* nocapture %0) {
ret void
}
char *nullptr_one_BAD() {
  static char *const base = (char *)0;
  static const unsigned long offset = 1;
  return base + offset;
}


x86 assembly (clang, -O0):
<nullptr_one_BAD>:
push   %rbp
mov    %rsp,%rbp
xor    %eax,%eax
add    $0x1,%rax
pop    %rbp
ret

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

LLVM IR (-O0):
@nullptr_one_BAD.base = internal constant i8* null
@nullptr_one_BAD.offset = internal constant i64 1
define i8* @nullptr_one_BAD() {
ret i8* getelementptr inbounds (i8, i8* null, i64 1)
}

LLVM IR (-O2):
define i8* @nullptr_one_BAD() {
ret i8* inttoptr (i64 1 to i8*)
}
void XrmEnumerateDatabase() {}


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

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

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

LLVM IR (-O2):
define void @XrmEnumerateDatabase() {
ret void
}
/* Type definitions */
struct timespec {
  int tv_sec;
  int /*<<< orphan*/ tv_nsec;
};

/* Variables and functions */
int /*<<< orphan*/ printf(char *, long, long, int /*<<< orphan*/);
void print_timespec(struct timespec ts) {
  long int min = ts.tv_sec / 60;
  long int sec = ts.tv_sec % 60;
  printf("%02li:%02li.%09ld", min, sec, ts.tv_nsec);
}


x86 assembly (clang, -O0):
<print_timespec>:
push   %rbp
mov    %rsp,%rbp
sub    $0x20,%rsp
mov    %rdi,-0x8(%rbp)
mov    -0x8(%rbp),%eax
mov    $0x3c,%ecx
cltd
idiv   %ecx
cltq
mov    %rax,-0x10(%rbp)
mov    -0x8(%rbp),%eax
mov    $0x3c,%ecx
cltd
idiv   %ecx
movslq %edx,%rax
mov    %rax,-0x18(%rbp)
mov    -0x10(%rbp),%rsi
mov    -0x18(%rbp),%rdx
mov    -0x4(%rbp),%ecx
lea    0xeaf(%rip),%rdi
call   1030 <printf@plt>
add    $0x20,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<print_timespec>:
movslq %edi,%rax
mov    %rdi,%rcx
shr    $0x20,%rcx
imul   $0xffffffff88888889,%rax,%rdx
shr    $0x20,%rdx
add    %eax,%edx
mov    %edx,%esi
shr    $0x1f,%esi
sar    $0x5,%edx
add    %esi,%edx
movslq %edx,%rsi
imul   $0x3c,%esi,%edx
sub    %edx,%eax
movslq %eax,%rdx
lea    0xebd(%rip),%rdi
jmp    1030 <printf@plt>

LLVM IR (-O0):
%struct.timespec = type { i32, i32 }
@.str = [18 x i8] c"%02li:%02li.%09ld\00"
define void @print_timespec(i64 %0) {
%2 = alloca %struct.timespec
%3 = alloca i64
%4 = alloca i64
%5 = bitcast %struct.timespec* %2 to i64*
store i64 %0, i64* %5
%6 = getelementptr inbounds %struct.timespec, %struct.timespec* %2, i32 0, i32 0
%7 = load i32, i32* %6
%8 = sdiv i32 %7, 60
%9 = sext i32 %8 to i64
store i64 %9, i64* %3
%10 = getelementptr inbounds %struct.timespec, %struct.timespec* %2, i32 0, i32 0
%11 = load i32, i32* %10
%12 = srem i32 %11, 60
%13 = sext i32 %12 to i64
store i64 %13, i64* %4
%14 = load i64, i64* %3
%15 = load i64, i64* %4
%16 = getelementptr inbounds %struct.timespec, %struct.timespec* %2, i32 0, i32 1
%17 = load i32, i32* %16
%18 = call i32 @printf(i8* getelementptr inbounds ([18 x i8], [18 x i8]* @.str, i64 0, i64 0), i64 %14, i64 %15, i32 %17)
ret void
}

LLVM IR (-O2):
@.str = [18 x i8] c"%02li:%02li.%09ld\00"
define void @print_timespec(i64 %0) {
%2 = trunc i64 %0 to i32
%3 = lshr i64 %0, 32
%4 = trunc i64 %3 to i32
%5 = sdiv i32 %2, 60
%6 = sext i32 %5 to i64
%7 = srem i32 %2, 60
%8 = sext i32 %7 to i64
%9 = tail call i32 @printf(i8* getelementptr inbounds ([18 x i8], [18 x i8]* @.str, i64 0, i64 0), i64 %6, i64 %8, i32 %4)
ret void
}
/* Type definitions */
typedef int /*<<< orphan*/ uint64_t;

/* Variables and functions */
__attribute__((always_)) uint64_t f() { return 0; }


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

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

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

LLVM IR (-O2):
define i32 @f() {
ret i32 0
}
/* Variables and functions */
int errno;
int /*<<< orphan*/ free(void *);
void free_data(void *data, void *ifdata) {
  int saved_errno = errno;
  if (data != NULL)
    free(data);
  if (ifdata != NULL)
    free(ifdata);
  errno = saved_errno;
}


x86 assembly (clang, -O0):
<free_data>:
push   %rbp
mov    %rsp,%rbp
sub    $0x20,%rsp
mov    %rdi,-0x8(%rbp)
mov    %rsi,-0x10(%rbp)
mov    0x2eb9(%rip),%rax
mov    (%rax),%eax
mov    %eax,-0x14(%rbp)
cmpq   $0x0,-0x8(%rbp)
je     1140 <free_data+0x30>
mov    -0x8(%rbp),%rdi
call   1030 <free@plt>
cmpq   $0x0,-0x10(%rbp)
je     1154 <free_data+0x44>
mov    -0x10(%rbp),%rdi
call   1030 <free@plt>
mov    -0x14(%rbp),%ecx
mov    0x2e82(%rip),%rax
mov    %ecx,(%rax)
add    $0x20,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<free_data>:
push   %rbp
push   %r14
push   %rbx
mov    %rsi,%rbx
mov    0x2ec2(%rip),%r14
mov    (%r14),%ebp
test   %rdi,%rdi
je     112b <free_data+0x1b>
call   1030 <free@plt>
test   %rbx,%rbx
je     1138 <free_data+0x28>
mov    %rbx,%rdi
call   1030 <free@plt>
mov    %ebp,(%r14)
pop    %rbx
pop    %r14
pop    %rbp
ret

LLVM IR (-O0):
@errno = global i32 0
define void @free_data(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 i32, i32* @errno
store i32 %6, i32* %5
%7 = load i8*, i8** %3
%8 = icmp ne i8* %7, null
br i1 %8, label %9, label %12
9: ; preds = %2
%10 = load i8*, i8** %3
%11 = call i32 @free(i8* %10)
br label %12
12: ; preds = %9, %2
%13 = load i8*, i8** %4
%14 = icmp ne i8* %13, null
br i1 %14, label %15, label %18
15: ; preds = %12
%16 = load i8*, i8** %4
%17 = call i32 @free(i8* %16)
br label %18
18: ; preds = %15, %12
%19 = load i32, i32* %5
store i32 %19, i32* @errno
ret void
}

LLVM IR (-O2):
@errno = global i32 0
define void @free_data(i8* %0, i8* %1) {
%3 = load i32, i32* @errno
%4 = icmp eq i8* %0, null
br i1 %4, label %7, label %5
5: ; preds = %2
%6 = tail call i32 @free(i8* %0)
br label %7
7: ; preds = %5, %2
%8 = icmp eq i8* %1, null
br i1 %8, label %11, label %9
9: ; preds = %7
%10 = tail call i32 @free(i8* %1)
br label %11
11: ; preds = %9, %7
store i32 %3, i32* @errno
ret void
}
/* Variables and functions */
int /*<<< orphan*/ write(int, char const *, int);
void send_ack(int fd) {
  const char ack_pkt = 6 << 5;
  write(fd, &ack_pkt, 1);
}


x86 assembly (clang, -O0):
<send_ack>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
mov    %edi,-0x4(%rbp)
movb   $0xc0,-0x5(%rbp)
mov    -0x4(%rbp),%edi
lea    -0x5(%rbp),%rsi
mov    $0x1,%edx
call   1030 <write@plt>
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<send_ack>:
push   %rax
movb   $0xc0,0x7(%rsp)
lea    0x7(%rsp),%rsi
mov    $0x1,%edx
call   1030 <write@plt>
pop    %rax
ret

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

LLVM IR (-O2):
define void @send_ack(i32 %0) {
%2 = alloca i8
store i8 -64, i8* %2
%3 = call i32 @write(i32 %0, i8* %2, i32 1)
ret void
}
/* Variables and functions */
size_t strlen(char *);
int /*<<< orphan*/ strncpy(char *, char const *, size_t);
size_t strlcpy(char *dst, const char *src, size_t size) {
  strncpy(dst, src, size);
  dst[size - 1] = '\0';
  return strlen(dst);
}


x86 assembly (clang, -O0):
<strlcpy>:
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    -0x10(%rbp),%rsi
mov    -0x18(%rbp),%rdx
call   1030 <strncpy@plt>
mov    -0x8(%rbp),%rax
mov    -0x18(%rbp),%rcx
sub    $0x1,%rcx
movb   $0x0,(%rax,%rcx,1)
mov    -0x8(%rbp),%rdi
call   1040 <strlen@plt>
add    $0x20,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<strlcpy>:
push   %r14
push   %rbx
push   %rax
mov    %rdx,%r14
mov    %rdi,%rbx
call   1030 <strncpy@plt>
movb   $0x0,-0x1(%r14,%rbx,1)
mov    %rbx,%rdi
add    $0x8,%rsp
pop    %rbx
pop    %r14
jmp    1040 <strlen@plt>

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

LLVM IR (-O2):
define i64 @strlcpy(i8* %0, i8* %1, i64 %2) {
%4 = tail call i32 @strncpy(i8* %0, i8* %1, i64 %2)
%5 = add i64 %2, -1
%6 = getelementptr inbounds i8, i8* %0, i64 %5
store i8 0, i8* %6
%7 = tail call i64 @strlen(i8* dereferenceable(1) %0)
ret i64 %7
}
/* Variables and functions */
int /*<<< orphan*/ f0();
__attribute__((noipa)) void f4(int x) {
  if (x % 16 == -13)
    f0();
}


x86 assembly (clang, -O0):
<f4>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
mov    %edi,-0x4(%rbp)
mov    -0x4(%rbp),%eax
mov    $0x10,%ecx
cltd
idiv   %ecx
cmp    $0xfffffff3,%edx
jne    1136 <f4+0x26>
mov    $0x0,%al
call   1030 <f0@plt>
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<f4>:
lea    0xf(%rdi),%eax
test   %edi,%edi
cmovns %edi,%eax
and    $0xfffffff0,%eax
sub    %eax,%edi
cmp    $0xfffffff3,%edi
jne    1129 <f4+0x19>
xor    %eax,%eax
jmp    1030 <f0@plt>
ret

LLVM IR (-O0):
define void @f4(i32 %0) {
%2 = alloca i32
store i32 %0, i32* %2
%3 = load i32, i32* %2
%4 = srem i32 %3, 16
%5 = icmp eq i32 %4, -13
br i1 %5, label %6, label %8
6: ; preds = %1
%7 = call i32 (...) @f0()
br label %8
8: ; preds = %6, %1
ret void
}

LLVM IR (-O2):
define void @f4(i32 %0) {
%2 = srem i32 %0, 16
%3 = icmp eq i32 %2, -13
br i1 %3, label %4, label %6
4: ; preds = %1
%5 = tail call i32 (...) @f0()
br label %6
6: ; preds = %4, %1
ret void
}
/* Variables and functions */
int sub(int, int);
int suc(int);
int div(int a, int b) {
  if (a < b) {
    return 0;
  } else if (a == b) {
    return 1;
  }
  return suc(div(sub(a, b), b));
}


x86 assembly (clang, -O0):
<div>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
mov    %edi,-0x8(%rbp)
mov    %esi,-0xc(%rbp)
mov    -0x8(%rbp),%eax
cmp    -0xc(%rbp),%eax
jge    1156 <div+0x26>
movl   $0x0,-0x4(%rbp)
jmp    1192 <div+0x62>
mov    -0x8(%rbp),%eax
cmp    -0xc(%rbp),%eax
jne    116e <div+0x3e>
movl   $0x1,-0x4(%rbp)
jmp    1192 <div+0x62>
jmp    1173 <div+0x43>
mov    -0x8(%rbp),%edi
mov    -0xc(%rbp),%esi
call   1050 <sub@plt>
mov    %eax,%edi
mov    -0xc(%rbp),%esi
call   1030 <div@plt>
mov    %eax,%edi
call   1040 <suc@plt>
mov    %eax,-0x4(%rbp)
mov    -0x4(%rbp),%eax
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<div>:
xor    %eax,%eax
cmp    %esi,%edi
jl     113d <div+0xd>
mov    $0x1,%eax
jne    113e <div+0xe>
ret
push   %rbx
mov    %esi,%ebx
call   1050 <sub@plt>
mov    %eax,%edi
mov    %ebx,%esi
call   1030 <div@plt>
mov    %eax,%edi
pop    %rbx
jmp    1040 <suc@plt>

LLVM IR (-O0):
define i32 @div(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* %4
%7 = load i32, i32* %5
%8 = icmp slt i32 %6, %7
br i1 %8, label %9, label %10
9: ; preds = %2
store i32 0, i32* %3
br label %23
10: ; preds = %2
%11 = load i32, i32* %4
%12 = load i32, i32* %5
%13 = icmp eq i32 %11, %12
br i1 %13, label %14, label %15
14: ; preds = %10
store i32 1, i32* %3
br label %23
15: ; preds = %10
br label %16
16: ; preds = %15
%17 = load i32, i32* %4
%18 = load i32, i32* %5
%19 = call i32 @sub(i32 %17, i32 %18)
%20 = load i32, i32* %5
%21 = call i32 @div(i32 %19, i32 %20)
%22 = call i32 @suc(i32 %21)
store i32 %22, i32* %3
br label %23
23: ; preds = %16, %14, %9
%24 = load i32, i32* %3
ret i32 %24
}

LLVM IR (-O2):
define i32 @div(i32 %0, i32 %1) {
%3 = icmp slt i32 %0, %1
br i1 %3, label %6, label %4
4: ; preds = %2
%5 = icmp eq i32 %0, %1
br i1 %5, label %6, label %8
6: ; preds = %2, %4, %8
%7 = phi i32 [ %11, %8 ], [ 0, %2 ], [ 1, %4 ]
ret i32 %7
8: ; preds = %4
%9 = tail call i32 @sub(i32 %0, i32 %1)
%10 = tail call i32 @div(i32 %9, i32 %1)
%11 = tail call i32 @suc(i32 %10)
br label %6
}
int ddebug_add_module(struct _ddebug *tab, unsigned int n,
                      const char *modname) {
  return 0;
}


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

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

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

LLVM IR (-O2):
%struct._ddebug = type opaque
define i32 @ddebug_add_module(%struct._ddebug* nocapture readnone %0, i32 %1, i8* nocapture readnone %2) {
ret i32 0
}
/* Variables and functions */
double erfc(double);
double erfc_(double *x) { return (erfc(*x)); }


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

x86 assembly (clang, -O2):
<erfc_>:
movsd  (%rdi),%xmm0
jmp    1030 <erfc@plt>

LLVM IR (-O0):
define double @erfc_(double* %0) {
%2 = alloca double*
store double* %0, double** %2
%3 = load double*, double** %2
%4 = load double, double* %3
%5 = call double @erfc(double %4)
ret double %5
}

LLVM IR (-O2):
define double @erfc_(double* nocapture %0) {
%2 = load double, double* %0
%3 = tail call double @erfc(double %2)
ret double %3
}
/* Variables and functions */
int errno;
int /*<<< orphan*/ fprintf(int /*<<< orphan*/, char *, char *);
int /*<<< orphan*/ perror(char *);
int /*<<< orphan*/ stderr;
char *strerror(int);
int errorHandling() {
  int errnum;
  errnum = errno;
  perror("\nError : ");
  fprintf(stderr, "\nError : %s\n", strerror(errnum));
  return 0;
}


x86 assembly (clang, -O0):
<errorHandling>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
mov    0x2e99(%rip),%rax
mov    (%rax),%eax
mov    %eax,-0x4(%rbp)
lea    0xeb5(%rip),%rdi
call   1040 <perror@plt>
mov    0x2e89(%rip),%rax
mov    (%rax),%eax
mov    %eax,-0x8(%rbp)
mov    -0x4(%rbp),%edi
call   1050 <strerror@plt>
mov    -0x8(%rbp),%edi
mov    %rax,%rdx
lea    0xe99(%rip),%rsi
call   1030 <fprintf@plt>
xor    %eax,%eax
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<errorHandling>:
push   %rbp
push   %rbx
push   %rax
mov    0x2e9e(%rip),%rax
mov    (%rax),%ebx
lea    0xebd(%rip),%rdi
call   1040 <perror@plt>
mov    0x2e91(%rip),%rax
mov    (%rax),%ebp
mov    %ebx,%edi
call   1050 <strerror@plt>
lea    0xeab(%rip),%rsi
mov    %ebp,%edi
mov    %rax,%rdx
call   1030 <fprintf@plt>
xor    %eax,%eax
add    $0x8,%rsp
pop    %rbx
pop    %rbp
ret

LLVM IR (-O0):
@errno = global i32 0
@.str = [10 x i8] c"\0AError : \00"
@stderr = global i32 0
@.str.1 = [13 x i8] c"\0AError : %s\0A\00"
define i32 @errorHandling() {
%1 = alloca i32
%2 = load i32, i32* @errno
store i32 %2, i32* %1
%3 = call i32 @perror(i8* getelementptr inbounds ([10 x i8], [10 x i8]* @.str, i64 0, i64 0))
%4 = load i32, i32* @stderr
%5 = load i32, i32* %1
%6 = call i8* @strerror(i32 %5)
%7 = call i32 @fprintf(i32 %4, i8* getelementptr inbounds ([13 x i8], [13 x i8]* @.str.1, i64 0, i64 0), i8* %6)
ret i32 0
}

LLVM IR (-O2):
@errno = global i32 0
@.str = [10 x i8] c"\0AError : \00"
@stderr = global i32 0
@.str.1 = [13 x i8] c"\0AError : %s\0A\00"
define i32 @errorHandling() {
%1 = load i32, i32* @errno
%2 = tail call i32 @perror(i8* getelementptr inbounds ([10 x i8], [10 x i8]* @.str, i64 0, i64 0))
%3 = load i32, i32* @stderr
%4 = tail call i8* @strerror(i32 %1)
%5 = tail call i32 @fprintf(i32 %3, i8* getelementptr inbounds ([13 x i8], [13 x i8]* @.str.1, i64 0, i64 0), i8* %4)
ret i32 0
}
int fun1186() { return 1186; }


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

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

LLVM IR (-O0):
define i32 @fun1186() {
ret i32 1186
}

LLVM IR (-O2):
define i32 @fun1186() {
ret i32 1186
}