xunge/DecIR huggingface dataset:
void reset_cumulative(unsigned long long int *total,
                      unsigned long long int *min, unsigned long long int *max,
                      unsigned long long int *variance) {
  *total = 0;
  *min = ~0;
  *max = 0;
  *variance = 0;
}


x86 assembly (clang, -O0):
<reset_cumulative>:
push   %rbp
mov    %rsp,%rbp
mov    %rdi,-0x8(%rbp)
mov    %rsi,-0x10(%rbp)
mov    %rdx,-0x18(%rbp)
mov    %rcx,-0x20(%rbp)
mov    -0x8(%rbp),%rax
movq   $0x0,(%rax)
mov    -0x10(%rbp),%rax
movq   $0xffffffffffffffff,(%rax)
mov    -0x18(%rbp),%rax
movq   $0x0,(%rax)
mov    -0x20(%rbp),%rax
movq   $0x0,(%rax)
pop    %rbp
ret

x86 assembly (clang, -O2):
<reset_cumulative>:
movq   $0x0,(%rdi)
movq   $0xffffffffffffffff,(%rsi)
movq   $0x0,(%rdx)
movq   $0x0,(%rcx)
ret

LLVM IR (-O0):
define void @reset_cumulative(i64* %0, i64* %1, i64* %2, i64* %3) {
%5 = alloca i64*
%6 = alloca i64*
%7 = alloca i64*
%8 = alloca i64*
store i64* %0, i64** %5
store i64* %1, i64** %6
store i64* %2, i64** %7
store i64* %3, i64** %8
%9 = load i64*, i64** %5
store i64 0, i64* %9
%10 = load i64*, i64** %6
store i64 -1, i64* %10
%11 = load i64*, i64** %7
store i64 0, i64* %11
%12 = load i64*, i64** %8
store i64 0, i64* %12
ret void
}

LLVM IR (-O2):
define void @reset_cumulative(i64* nocapture writeonly %0, i64* nocapture writeonly %1, i64* nocapture writeonly %2, i64* nocapture writeonly %3) {
store i64 0, i64* %0
store i64 -1, i64* %1
store i64 0, i64* %2
store i64 0, i64* %3
ret void
}
void angine_do_update() {}


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

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

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

LLVM IR (-O2):
define void @angine_do_update() {
ret void
}
/* Variables and functions */
int /*<<< orphan*/ nrf_read(int, unsigned char *, int);
unsigned char __attribute__((unused)) nrf_fifo_status(void) {
  unsigned char ret;
  nrf_read(0x00 | 0x17, &ret, 1);
  return ret;
}


x86 assembly (clang, -O0):
<nrf_fifo_status>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
mov    $0x17,%edi
lea    -0x1(%rbp),%rsi
mov    $0x1,%edx
call   1030 <nrf_read@plt>
movzbl -0x1(%rbp),%eax
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<nrf_fifo_status>:
push   %rax
lea    0x7(%rsp),%rsi
mov    $0x17,%edi
mov    $0x1,%edx
call   1030 <nrf_read@plt>
mov    0x7(%rsp),%al
pop    %rcx
ret

LLVM IR (-O0):
define zeroext i8 @nrf_fifo_status() {
%1 = alloca i8
%2 = call i32 @nrf_read(i32 23, i8* %1, i32 1)
%3 = load i8, i8* %1
ret i8 %3
}

LLVM IR (-O2):
define zeroext i8 @nrf_fifo_status() {
%1 = alloca i8
%2 = call i32 @nrf_read(i32 23, i8* %1, i32 1)
%3 = load i8, i8* %1
ret i8 %3
}
void arts_esd_audio_flush() { return; }


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

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

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

LLVM IR (-O2):
define void @arts_esd_audio_flush() {
ret void
}
/* Variables and functions */
int /*<<< orphan*/ memset(int *, int /*<<< orphan*/, int);
void clr9(int *x) { memset(x, 0, 9); }


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

x86 assembly (clang, -O2):
<clr9>:
xor    %esi,%esi
mov    $0x9,%edx
jmp    1030 <memset@plt>

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

LLVM IR (-O2):
define void @clr9(i32* %0) {
%2 = tail call i32 @memset(i32* %0, i32 0, i32 9)
ret void
}
/* Type definitions */
typedef int /*<<< orphan*/ FILE;

/* Variables and functions */
int /*<<< orphan*/ fprintf(int /*<<< orphan*/ *, char *, unsigned char);
void print_hex(unsigned char *str, int len, FILE *out) {
  int i;
  for (i = 0; i < len; ++i)
    fprintf(out, "%02x", str[i]);
}


x86 assembly (clang, -O0):
<print_hex>:
push   %rbp
mov    %rsp,%rbp
sub    $0x20,%rsp
mov    %rdi,-0x8(%rbp)
mov    %esi,-0xc(%rbp)
mov    %rdx,-0x18(%rbp)
movl   $0x0,-0x1c(%rbp)
mov    -0x1c(%rbp),%eax
cmp    -0xc(%rbp),%eax
jge    1160 <print_hex+0x50>
mov    -0x18(%rbp),%rdi
mov    -0x8(%rbp),%rax
movslq -0x1c(%rbp),%rcx
lea    0xeb7(%rip),%rsi
movzbl (%rax,%rcx,1),%edx
call   1030 <fprintf@plt>
mov    -0x1c(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x1c(%rbp)
jmp    112a <print_hex+0x1a>
add    $0x20,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<print_hex>:
push   %r15
push   %r14
push   %r13
push   %r12
push   %rbx
test   %esi,%esi
jle    1149 <print_hex+0x39>
mov    %rdx,%r14
mov    %rdi,%r12
mov    %esi,%r13d
xor    %ebx,%ebx
lea    0xed1(%rip),%r15
nop
movzbl (%r12,%rbx,1),%edx
mov    %r14,%rdi
mov    %r15,%rsi
call   1030 <fprintf@plt>
add    $0x1,%rbx
cmp    %rbx,%r13
jne    1130 <print_hex+0x20>
pop    %rbx
pop    %r12
pop    %r13
pop    %r14
pop    %r15
ret

LLVM IR (-O0):
@.str = [5 x i8] c"%02x\00"
define void @print_hex(i8* %0, i32 %1, i32* %2) {
%4 = alloca i8*
%5 = alloca i32
%6 = alloca i32*
%7 = alloca i32
store i8* %0, i8** %4
store i32 %1, i32* %5
store i32* %2, i32** %6
store i32 0, i32* %7
br label %8
8: ; preds = %20, %3
%9 = load i32, i32* %7
%10 = load i32, i32* %5
%11 = icmp slt i32 %9, %10
br i1 %11, label %12, label %23
12: ; preds = %8
%13 = load i32*, i32** %6
%14 = load i8*, i8** %4
%15 = load i32, i32* %7
%16 = sext i32 %15 to i64
%17 = getelementptr inbounds i8, i8* %14, i64 %16
%18 = load i8, i8* %17
%19 = call i32 @fprintf(i32* %13, i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str, i64 0, i64 0), i8 zeroext %18)
br label %20
20: ; preds = %12
%21 = load i32, i32* %7
%22 = add nsw i32 %21, 1
store i32 %22, i32* %7
br label %8
23: ; preds = %8
ret void
}

LLVM IR (-O2):
@.str = [5 x i8] c"%02x\00"
define void @print_hex(i8* nocapture %0, i32 %1, i32* nocapture %2) {
%4 = icmp sgt i32 %1, 0
br i1 %4, label %5, label %14
5: ; preds = %3
%6 = zext i32 %1 to i64
br label %7
7: ; preds = %5, %7
%8 = phi i64 [ 0, %5 ], [ %12, %7 ]
%9 = getelementptr inbounds i8, i8* %0, i64 %8
%10 = load i8, i8* %9
%11 = tail call i32 @fprintf(i32* %2, i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str, i64 0, i64 0), i8 zeroext %10)
%12 = add nuw nsw i64 %8, 1
%13 = icmp eq i64 %12, %6
br i1 %13, label %14, label %7
14: ; preds = %7, %3
ret void
}
void MD5_memset(char *output, int value, unsigned int len) {
  unsigned int i;
  for (i = 0; i < len; i++)
    output[i] = (char)value;
}


x86 assembly (clang, -O0):
<MD5_memset>:
push   %rbp
mov    %rsp,%rbp
mov    %rdi,-0x8(%rbp)
mov    %esi,-0xc(%rbp)
mov    %edx,-0x10(%rbp)
movl   $0x0,-0x14(%rbp)
mov    -0x14(%rbp),%eax
cmp    -0x10(%rbp),%eax
jae    113e <MD5_memset+0x3e>
mov    -0xc(%rbp),%eax
mov    %al,%dl
mov    -0x8(%rbp),%rax
mov    -0x14(%rbp),%ecx
mov    %dl,(%rax,%rcx,1)
mov    -0x14(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x14(%rbp)
jmp    1115 <MD5_memset+0x15>
pop    %rbp
ret

x86 assembly (clang, -O2):
<MD5_memset>:
test   %edx,%edx
je     1120 <MD5_memset+0x10>
push   %rax
mov    %edx,%edx
call   1030 <memset@plt>
add    $0x8,%rsp
ret

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

LLVM IR (-O2):
define void @MD5_memset(i8* nocapture writeonly %0, i32 %1, i32 %2) {
%4 = icmp eq i32 %2, 0
br i1 %4, label %8, label %5
5: ; preds = %3
%6 = trunc i32 %1 to i8
%7 = zext i32 %2 to i64
br label %8
8: ; preds = %5, %3
ret void
}
/* Type definitions */
typedef int /*<<< orphan*/ value;

/* Variables and functions */
int /*<<< orphan*/ memcpy(char *, float *, int);
int /*<<< orphan*/ push_bytearray(char *, int);
void push_real(float value) {
  char object[sizeof(float)];
  memcpy(object, &value, sizeof(value));
  push_bytearray(object, sizeof(float));
}


x86 assembly (clang, -O0):
<push_real>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
movss  %xmm0,-0x4(%rbp)
lea    -0x8(%rbp),%rdi
lea    -0x4(%rbp),%rsi
mov    $0x4,%edx
call   1040 <memcpy@plt>
lea    -0x8(%rbp),%rdi
mov    $0x4,%esi
call   1030 <push_bytearray@plt>
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<push_real>:
push   %rbx
sub    $0x10,%rsp
movss  %xmm0,0x8(%rsp)
lea    0xc(%rsp),%rbx
lea    0x8(%rsp),%rsi
mov    %rbx,%rdi
mov    $0x4,%edx
call   1040 <memcpy@plt>
mov    %rbx,%rdi
mov    $0x4,%esi
call   1030 <push_bytearray@plt>
add    $0x10,%rsp
pop    %rbx
ret

LLVM IR (-O0):
define void @push_real(float %0) {
%2 = alloca float
%3 = alloca [4 x i8]
store float %0, float* %2
%4 = getelementptr inbounds [4 x i8], [4 x i8]* %3, i64 0, i64 0
%5 = call i32 @memcpy(i8* %4, float* %2, i32 4)
%6 = getelementptr inbounds [4 x i8], [4 x i8]* %3, i64 0, i64 0
%7 = call i32 @push_bytearray(i8* %6, i32 4)
ret void
}

LLVM IR (-O2):
define void @push_real(float %0) {
%2 = alloca float
%3 = alloca [4 x i8]
store float %0, float* %2
%4 = getelementptr inbounds [4 x i8], [4 x i8]* %3, i64 0, i64 0
%5 = call i32 @memcpy(i8* %4, float* %2, i32 4)
%6 = call i32 @push_bytearray(i8* %4, i32 4)
ret void
}
int main() {
  int a;
  int b = 5.0;
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
movl   $0x5,-0x8(%rbp)
xor    %eax,%eax
pop    %rbp
ret

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

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

LLVM IR (-O2):
define i32 @main() {
ret i32 0
}
void timer_handler(void) { return; }


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

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

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

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

/* Variables and functions */
int /*<<< orphan*/ ASN1_item_free(int /*<<< orphan*/ *, int /*<<< orphan*/ *);
int /*<<< orphan*/ PBEPARAM_it;
void PBEPARAM_free(PBEPARAM *a) {
  ASN1_item_free((ASN1_VALUE *)a, &PBEPARAM_it);
}


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

x86 assembly (clang, -O2):
<PBEPARAM_free>:
mov    0x2ed1(%rip),%rsi
jmp    1030 <ASN1_item_free@plt>

LLVM IR (-O0):
@PBEPARAM_it = global i32 0
define void @PBEPARAM_free(i32* %0) {
%2 = alloca i32*
store i32* %0, i32** %2
%3 = load i32*, i32** %2
%4 = call i32 @ASN1_item_free(i32* %3, i32* @PBEPARAM_it)
ret void
}

LLVM IR (-O2):
@PBEPARAM_it = global i32 0
define void @PBEPARAM_free(i32* %0) {
%2 = tail call i32 @ASN1_item_free(i32* %0, i32* @PBEPARAM_it)
ret void
}
int gadget_is_dualspeed(struct usb_gadget *g) { return 0; }


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

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

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

LLVM IR (-O2):
%struct.usb_gadget = type opaque
define i32 @gadget_is_dualspeed(%struct.usb_gadget* nocapture readnone %0) {
ret i32 0
}
void ff_hevc_put_hevc_uni_qpel_hv4_8_sse4() {}


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

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

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

LLVM IR (-O2):
define void @ff_hevc_put_hevc_uni_qpel_hv4_8_sse4() {
ret void
}
void foo6e() {}


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

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

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

LLVM IR (-O2):
define void @foo6e() {
ret void
}
char *hmac1base64(bitstr, bitcnt, key, keylen)
unsigned char *bitstr;
unsigned long bitcnt;
unsigned char *key;
unsigned int keylen;
{ return ((char *)hmaccomp(1, 3, bitstr, bitcnt, key, keylen)); }


x86 assembly (clang, -O0):
<hmac1base64>:
push   %rbp
mov    %rsp,%rbp
sub    $0x20,%rsp
mov    %rdi,-0x8(%rbp)
mov    %rsi,-0x10(%rbp)
mov    %rdx,-0x18(%rbp)
mov    %ecx,-0x1c(%rbp)
mov    -0x8(%rbp),%rdx
mov    -0x10(%rbp),%rcx
mov    -0x18(%rbp),%r8
mov    -0x1c(%rbp),%r9d
mov    $0x1,%edi
mov    $0x3,%esi
mov    $0x0,%al
call   1030 <hmaccomp@plt>
cltq
add    $0x20,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<hmac1base64>:
push   %rax
mov    %ecx,%r9d
mov    %rdx,%r8
mov    %rsi,%rcx
mov    %rdi,%rdx
mov    $0x1,%edi
mov    $0x3,%esi
xor    %eax,%eax
call   1030 <hmaccomp@plt>
cltq
pop    %rcx
ret

LLVM IR (-O0):
define i8* @hmac1base64(i8* %0, i64 %1, i8* %2, i32 %3) {
%5 = alloca i8*
%6 = alloca i64
%7 = alloca i8*
%8 = alloca i32
store i8* %0, i8** %5
store i64 %1, i64* %6
store i8* %2, i8** %7
store i32 %3, i32* %8
%9 = load i8*, i8** %5
%10 = load i64, i64* %6
%11 = load i8*, i8** %7
%12 = load i32, i32* %8
%13 = call i32 (i32, i32, i8*, i64, i8*, i32, ...) bitcast (i32 (...)* @hmaccomp to i32 (i32, i32, i8*, i64, i8*, i32, ...)*)(i32 1, i32 3, i8* %9, i64 %10, i8* %11, i32 %12)
%14 = sext i32 %13 to i64
%15 = inttoptr i64 %14 to i8*
ret i8* %15
}

LLVM IR (-O2):
define i8* @hmac1base64(i8* %0, i64 %1, i8* %2, i32 %3) {
%5 = tail call i32 (i32, i32, i8*, i64, i8*, i32, ...) bitcast (i32 (...)* @hmaccomp to i32 (i32, i32, i8*, i64, i8*, i32, ...)*)(i32 1, i32 3, i8* %0, i64 %1, i8* %2, i32 %3)
%6 = sext i32 %5 to i64
%7 = inttoptr i64 %6 to i8*
ret i8* %7
}
/* Variables and functions */
int /*<<< orphan*/ LCD_command_1D(int, short);
void LCD_data_write(short data) { LCD_command_1D(0xC4, data); }


x86 assembly (clang, -O0):
<LCD_data_write>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
mov    %di,%ax
mov    %ax,-0x2(%rbp)
mov    $0xc4,%edi
movswl -0x2(%rbp),%esi
call   1030 <LCD_command_1D@plt>
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<LCD_data_write>:
mov    %edi,%esi
mov    $0xc4,%edi
jmp    1030 <LCD_command_1D@plt>

LLVM IR (-O0):
define void @LCD_data_write(i16 signext %0) {
%2 = alloca i16
store i16 %0, i16* %2
%3 = load i16, i16* %2
%4 = call i32 @LCD_command_1D(i32 196, i16 signext %3)
ret void
}

LLVM IR (-O2):
define void @LCD_data_write(i16 signext %0) {
%2 = tail call i32 @LCD_command_1D(i32 196, i16 signext %0)
ret void
}
int *hop(int *elem) {
  elem = elem + *elem;
  return elem;
}


x86 assembly (clang, -O0):
<hop>:
push   %rbp
mov    %rsp,%rbp
mov    %rdi,-0x8(%rbp)
mov    -0x8(%rbp),%rax
mov    -0x8(%rbp),%rcx
movslq (%rcx),%rcx
shl    $0x2,%rcx
add    %rcx,%rax
mov    %rax,-0x8(%rbp)
mov    -0x8(%rbp),%rax
pop    %rbp
ret

x86 assembly (clang, -O2):
<hop>:
movslq (%rdi),%rax
lea    (%rdi,%rax,4),%rax
ret

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

LLVM IR (-O2):
define i32* @hop(i32* %0) {
%2 = load i32, i32* %0
%3 = sext i32 %2 to i64
%4 = getelementptr inbounds i32, i32* %0, i64 %3
ret i32* %4
}
/* Type definitions */
typedef int /*<<< orphan*/ __m128;

/* Variables and functions */
int /*<<< orphan*/ _mm_load1_ps(void *);
__m128 test_load1_ps(void *y) { return _mm_load1_ps(y); }


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

x86 assembly (clang, -O2):
<test_load1_ps>:
jmp    1030 <_mm_load1_ps@plt>

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

LLVM IR (-O2):
define i32 @test_load1_ps(i8* %0) {
%2 = tail call i32 @_mm_load1_ps(i8* %0)
ret i32 %2
}
void f124(void) {
  ({
    ({ 0; });
    ({ 0; });
    0;
  });
  ({
    ({
      goto a;
      0;
    });
    ({ 0; });
    0;
  });
a:
  0;
}


x86 assembly (clang, -O0):
<f124>:
push   %rbp
mov    %rsp,%rbp
movl   $0x0,-0x4(%rbp)
movl   $0x0,-0x8(%rbp)
movl   $0x0,-0xc(%rbp)
pop    %rbp
ret

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

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

LLVM IR (-O2):
define void @f124() {
ret void
}
char int_to_leds_m$input$output_complete(char arg_0x82b5070) {
  char result;
  result = counter$output$output_complete(arg_0x82b5070);
  return result;
}


x86 assembly (clang, -O0):
<int_to_leds_m$input$output_complete>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
mov    %dil,%al
mov    %al,-0x1(%rbp)
movsbl -0x1(%rbp),%edi
mov    $0x0,%al
call   1030 <counter$output$output_complete@plt>
mov    %al,-0x2(%rbp)
movsbl -0x2(%rbp),%eax
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<int_to_leds_m$input$output_complete>:
push   %rax
xor    %eax,%eax
call   1030 <counter$output$output_complete@plt>
pop    %rcx
ret

LLVM IR (-O0):
define signext i8 @"int_to_leds_m$input$output_complete"(i8 signext %0) {
%2 = alloca i8
%3 = alloca i8
store i8 %0, i8* %2
%4 = load i8, i8* %2
%5 = sext i8 %4 to i32
%6 = call i32 (i32, ...) bitcast (i32 (...)* @"counter$output$output_complete" to i32 (i32, ...)*)(i32 %5)
%7 = trunc i32 %6 to i8
store i8 %7, i8* %3
%8 = load i8, i8* %3
ret i8 %8
}

LLVM IR (-O2):
define signext i8 @"int_to_leds_m$input$output_complete"(i8 signext %0) {
%2 = sext i8 %0 to i32
%3 = tail call i32 (i32, ...) bitcast (i32 (...)* @"counter$output$output_complete" to i32 (i32, ...)*)(i32 %2)
%4 = trunc i32 %3 to i8
ret i8 %4
}
void __stack_chk_fail() {
  for (;;) {
  }
}


x86 assembly (clang, -O0):
<__stack_chk_fail>:
push   %rbp
mov    %rsp,%rbp
jmp    1109 <__stack_chk_fail+0x9>
jmp    1109 <__stack_chk_fail+0x9>

x86 assembly (clang, -O2):
<__stack_chk_fail>:
jmp    1100 <__stack_chk_fail>

LLVM IR (-O0):
define void @__stack_chk_fail() {
br label %1
1: ; preds = %1, %0
br label %1
}

LLVM IR (-O2):
define void @__stack_chk_fail() {
br label %1
1: ; preds = %1, %0
br label %1
}
/* Variables and functions */
int /*<<< orphan*/ isPrime(unsigned long long);
int /*<<< orphan*/ printf(char *, int const, unsigned long long);
int main() {
  const int kTarget = 10001;
  int cnt = 0;
  unsigned long long prime = 2;
  for (prime = 0; cnt < kTarget;) {
    if (!isPrime(++prime))
      continue;
    cnt++;
  }
  printf("%dst prime is %lld\n", kTarget, prime);
  return 0;
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x20,%rsp
movl   $0x0,-0x4(%rbp)
movl   $0x2711,-0x8(%rbp)
movl   $0x0,-0xc(%rbp)
movq   $0x2,-0x18(%rbp)
movq   $0x0,-0x18(%rbp)
cmpl   $0x2711,-0xc(%rbp)
jge    1187 <main+0x67>
mov    -0x18(%rbp),%rdi
add    $0x1,%rdi
mov    %rdi,-0x18(%rbp)
call   1040 <isPrime@plt>
cmp    $0x0,%eax
jne    1179 <main+0x59>
jmp    114d <main+0x2d>
mov    -0xc(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0xc(%rbp)
jmp    114d <main+0x2d>
mov    -0x18(%rbp),%rdx
lea    0xe6e(%rip),%rdi
mov    $0x2711,%esi
call   1030 <printf@plt>
xor    %eax,%eax
add    $0x20,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %rbp
push   %rbx
push   %rax
xor    %ebx,%ebx
xor    %ebp,%ebp
nopw   0x0(%rax,%rax,1)
add    $0x1,%rbx
mov    %rbx,%rdi
call   1040 <isPrime@plt>
cmp    $0x1,%eax
sbb    $0xffffffff,%ebp
cmp    $0x2711,%ebp
jb     1130 <main+0x10>
lea    0xeaf(%rip),%rdi
mov    $0x2711,%esi
mov    %rbx,%rdx
call   1030 <printf@plt>
xor    %eax,%eax
add    $0x8,%rsp
pop    %rbx
pop    %rbp
ret

LLVM IR (-O0):
@.str = [20 x i8] c"%dst prime is %lld\0A\00"
define i32 @main() {
%1 = alloca i32
%2 = alloca i32
%3 = alloca i32
%4 = alloca i64
store i32 0, i32* %1
store i32 10001, i32* %2
store i32 0, i32* %3
store i64 2, i64* %4
store i64 0, i64* %4
br label %5
5: ; preds = %14, %13, %0
%6 = load i32, i32* %3
%7 = icmp slt i32 %6, 10001
br i1 %7, label %8, label %17
8: ; preds = %5
%9 = load i64, i64* %4
%10 = add i64 %9, 1
store i64 %10, i64* %4
%11 = call i32 @isPrime(i64 %10)
%12 = icmp ne i32 %11, 0
br i1 %12, label %14, label %13
13: ; preds = %8
br label %5
14: ; preds = %8
%15 = load i32, i32* %3
%16 = add nsw i32 %15, 1
store i32 %16, i32* %3
br label %5
17: ; preds = %5
%18 = load i64, i64* %4
%19 = call i32 @printf(i8* getelementptr inbounds ([20 x i8], [20 x i8]* @.str, i64 0, i64 0), i32 10001, i64 %18)
ret i32 0
}

LLVM IR (-O2):
@.str = [20 x i8] c"%dst prime is %lld\0A\00"
define i32 @main() {
br label %1
1: ; preds = %0, %1
%2 = phi i64 [ 0, %0 ], [ %4, %1 ]
%3 = phi i32 [ 0, %0 ], [ %8, %1 ]
%4 = add i64 %2, 1
%5 = tail call i32 @isPrime(i64 %4)
%6 = icmp ne i32 %5, 0
%7 = zext i1 %6 to i32
%8 = add nuw nsw i32 %3, %7
%9 = icmp ult i32 %8, 10001
br i1 %9, label %1, label %10
10: ; preds = %1
%11 = tail call i32 @printf(i8* getelementptr inbounds ([20 x i8], [20 x i8]* @.str, i64 0, i64 0), i32 10001, i64 %4)
ret i32 0
}
/* Variables and functions */
int /*<<< orphan*/ glutBitmapTimesRoman10;
unsigned glob_glutBitmapTimesRoman10(void) {
  return (unsigned)&glutBitmapTimesRoman10;
}


x86 assembly (clang, -O0):
<glob_glutBitmapTimesRoman10>:
push   %rbp
mov    %rsp,%rbp
mov    0x2edd(%rip),%rax
pop    %rbp
ret

x86 assembly (clang, -O2):
<glob_glutBitmapTimesRoman10>:
mov    0x2ee2(%rip),%eax
ret

LLVM IR (-O0):
@glutBitmapTimesRoman10 = global i32 0
define i32 @glob_glutBitmapTimesRoman10() {
ret i32 ptrtoint (i32* @glutBitmapTimesRoman10 to i32)
}

LLVM IR (-O2):
@glutBitmapTimesRoman10 = global i32 0
define i32 @glob_glutBitmapTimesRoman10() {
ret i32 ptrtoint (i32* @glutBitmapTimesRoman10 to i32)
}
void eMMC_CheckRB() {
  while (1) {
    *((volatile unsigned int *)((0xB000D000 + 0x820))) =
        (*((volatile unsigned int *)((0xB000D000 + 0x820)))) | (0x1ul << (6));
    while ((*((volatile unsigned int *)((0xB000D000 + 0x820)))) &
           (0x1ul << (6)))
      ;
    if ((*((volatile unsigned int *)((0xB000D000 + 0x82C)))) & (0x1ul << (7)))
      break;
  }
}


x86 assembly (clang, -O0):
<eMMC_CheckRB>:
push   %rbp
mov    %rsp,%rbp
jmp    1109 <eMMC_CheckRB+0x9>
mov    $0xb000d820,%eax
mov    (%rax),%eax
mov    %eax,%eax
or     $0x40,%rax
mov    %eax,%ecx
mov    $0xb000d820,%eax
mov    %ecx,(%rax)
mov    $0xb000d820,%eax
mov    (%rax),%eax
mov    %eax,%eax
and    $0x40,%rax
cmp    $0x0,%rax
je     113b <eMMC_CheckRB+0x3b>
jmp    111f <eMMC_CheckRB+0x1f>
mov    $0xb000d82c,%eax
mov    (%rax),%eax
mov    %eax,%eax
and    $0x80,%rax
cmp    $0x0,%rax
je     1159 <eMMC_CheckRB+0x59>
jmp    115e <eMMC_CheckRB+0x5e>
jmp    1109 <eMMC_CheckRB+0x9>
pop    %rbp
ret

x86 assembly (clang, -O2):
<eMMC_CheckRB>:
mov    $0xb000d820,%eax
cs nopw 0x0(%rax,%rax,1)
nop
orl    $0x40,(%rax)
cs nopw 0x0(%rax,%rax,1)
nopl   (%rax)
testl  $0x40,(%rax)
jne    1120 <eMMC_CheckRB+0x20>
testl  $0x80,0xc(%rax)
je     1110 <eMMC_CheckRB+0x10>
ret

LLVM IR (-O0):
define void @eMMC_CheckRB() {
br label %1
1: ; preds = %0, %18
%2 = load volatile i32, i32* inttoptr (i64 2952845344 to i32*)
%3 = zext i32 %2 to i64
%4 = or i64 %3, 64
%5 = trunc i64 %4 to i32
store volatile i32 %5, i32* inttoptr (i64 2952845344 to i32*)
br label %6
6: ; preds = %11, %1
%7 = load volatile i32, i32* inttoptr (i64 2952845344 to i32*)
%8 = zext i32 %7 to i64
%9 = and i64 %8, 64
%10 = icmp ne i64 %9, 0
br i1 %10, label %11, label %12
11: ; preds = %6
br label %6
12: ; preds = %6
%13 = load volatile i32, i32* inttoptr (i64 2952845356 to i32*)
%14 = zext i32 %13 to i64
%15 = and i64 %14, 128
%16 = icmp ne i64 %15, 0
br i1 %16, label %17, label %18
17: ; preds = %12
br label %19
18: ; preds = %12
br label %1
19: ; preds = %17
ret void
}

LLVM IR (-O2):
define void @eMMC_CheckRB() {
br label %1
1: ; preds = %8, %0
%2 = load volatile i32, i32* inttoptr (i64 2952845344 to i32*)
%3 = or i32 %2, 64
store volatile i32 %3, i32* inttoptr (i64 2952845344 to i32*)
br label %4
4: ; preds = %4, %1
%5 = load volatile i32, i32* inttoptr (i64 2952845344 to i32*)
%6 = and i32 %5, 64
%7 = icmp eq i32 %6, 0
br i1 %7, label %8, label %4
8: ; preds = %4
%9 = load volatile i32, i32* inttoptr (i64 2952845356 to i32*)
%10 = and i32 %9, 128
%11 = icmp eq i32 %10, 0
br i1 %11, label %1, label %12
12: ; preds = %8
ret void
}
signed int gethostname(char *__buf, unsigned long int __buflen) {
  signed int return_value___gethostname_chk$1;
  signed int return_value___gethostname_chk_warn$2;
  signed int return_value___gethostname_alias$3;
  return_value___gethostname_alias$3 = __gethostname_alias(__buf, __buflen);
  return return_value___gethostname_alias$3;
}


x86 assembly (clang, -O0):
<gethostname>:
push   %rbp
mov    %rsp,%rbp
sub    $0x20,%rsp
mov    %rdi,-0x8(%rbp)
mov    %rsi,-0x10(%rbp)
mov    -0x8(%rbp),%rdi
mov    -0x10(%rbp),%rsi
mov    $0x0,%al
call   1030 <__gethostname_alias@plt>
mov    %eax,-0x1c(%rbp)
mov    -0x1c(%rbp),%eax
add    $0x20,%rsp
pop    %rbp
ret

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

LLVM IR (-O0):
define i32 @gethostname(i8* %0, i64 %1) {
%3 = alloca i8*
%4 = alloca i64
%5 = alloca i32
%6 = alloca i32
%7 = alloca i32
store i8* %0, i8** %3
store i64 %1, i64* %4
%8 = load i8*, i8** %3
%9 = load i64, i64* %4
%10 = call i32 (i8*, i64, ...) bitcast (i32 (...)* @__gethostname_alias to i32 (i8*, i64, ...)*)(i8* %8, i64 %9)
store i32 %10, i32* %7
%11 = load i32, i32* %7
ret i32 %11
}

LLVM IR (-O2):
define i32 @gethostname(i8* %0, i64 %1) {
%3 = tail call i32 (i8*, i64, ...) bitcast (i32 (...)* @__gethostname_alias to i32 (i8*, i64, ...)*)(i8* %0, i64 %1)
ret i32 %3
}
/* Variables and functions */
scalar_t__ getpid();
int getPid() { return ((int)getpid()); }


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

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

LLVM IR (-O0):
define i32 @getPid() {
%1 = call i64 (...) @getpid()
%2 = trunc i64 %1 to i32
ret i32 %2
}

LLVM IR (-O2):
define i32 @getPid() {
%1 = tail call i64 (...) @getpid()
%2 = trunc i64 %1 to i32
ret i32 %2
}
/* Variables and functions */
int /*<<< orphan*/ exit(int);
int /*<<< orphan*/ printf(char *);
void argc_length(int argc, int expect) {
  if (argc < expect) {
    printf("\x1B[34m"
           "::> "
           "\033[0m"
           "None argumnets passed.\n");
    printf("\x1B[34m"
           "::> "
           "\033[0m"
           "Please pass more arguments.\n");
    exit(-1);
  }
}


x86 assembly (clang, -O0):
<argc_length>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
mov    %edi,-0x4(%rbp)
mov    %esi,-0x8(%rbp)
mov    -0x4(%rbp),%eax
cmp    -0x8(%rbp),%eax
jge    115c <argc_length+0x3c>
lea    0xebf(%rip),%rdi
call   1030 <printf@plt>
lea    0xed8(%rip),%rdi
call   1030 <printf@plt>
mov    $0xffffffff,%edi
call   1040 <exit@plt>
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<argc_length>:
cmp    %esi,%edi
jl     1125 <argc_length+0x5>
ret
push   %rax
lea    0xed3(%rip),%rdi
call   1030 <puts@plt>
lea    0xeeb(%rip),%rdi
call   1030 <puts@plt>
mov    $0xffffffff,%edi
call   1040 <exit@plt>

LLVM IR (-O0):
@.str = [37 x i8] c"\1B[34m::> \1B[0mNone argumnets passed.\0A\00"
@.str.1 = [42 x i8] c"\1B[34m::> \1B[0mPlease pass more arguments.\0A\00"
define void @argc_length(i32 %0, i32 %1) {
%3 = alloca i32
%4 = alloca i32
store i32 %0, i32* %3
store i32 %1, i32* %4
%5 = load i32, i32* %3
%6 = load i32, i32* %4
%7 = icmp slt i32 %5, %6
br i1 %7, label %8, label %12
8: ; preds = %2
%9 = call i32 @printf(i8* getelementptr inbounds ([37 x i8], [37 x i8]* @.str, i64 0, i64 0))
%10 = call i32 @printf(i8* getelementptr inbounds ([42 x i8], [42 x i8]* @.str.1, i64 0, i64 0))
%11 = call i32 @exit(i32 -1)
unreachable
12: ; preds = %2
ret void
}

LLVM IR (-O2):
@str = [36 x i8] c"\1B[34m::> \1B[0mNone argumnets passed.\00"
@str.2 = [41 x i8] c"\1B[34m::> \1B[0mPlease pass more arguments.\00"
define void @argc_length(i32 %0, i32 %1) {
%3 = icmp slt i32 %0, %1
br i1 %3, label %4, label %8
4: ; preds = %2
%5 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([36 x i8], [36 x i8]* @str, i64 0, i64 0))
%6 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([41 x i8], [41 x i8]* @str.2, i64 0, i64 0))
%7 = tail call i32 @exit(i32 -1)
unreachable
8: ; preds = %2
ret void
}
int d_bun_rm1(double a1, double *a2) {
  return (__builtin_isunordered(a1, *a2));
}


x86 assembly (clang, -O0):
<d_bun_rm1>:
push   %rbp
mov    %rsp,%rbp
movsd  %xmm0,-0x8(%rbp)
mov    %rdi,-0x10(%rbp)
movsd  -0x8(%rbp),%xmm0
mov    -0x10(%rbp),%rax
ucomisd (%rax),%xmm0
setp   %al
and    $0x1,%al
movzbl %al,%eax
pop    %rbp
ret

x86 assembly (clang, -O2):
<d_bun_rm1>:
xor    %eax,%eax
ucomisd (%rdi),%xmm0
setp   %al
ret

LLVM IR (-O0):
define i32 @d_bun_rm1(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 = load double, double* %6
%8 = fcmp uno double %5, %7
%9 = zext i1 %8 to i32
ret i32 %9
}

LLVM IR (-O2):
define i32 @d_bun_rm1(double %0, double* nocapture %1) {
%3 = load double, double* %1
%4 = fcmp uno double %3, %0
%5 = zext i1 %4 to i32
ret i32 %5
}
int foo7(double b, double c) { return b == c; }


x86 assembly (clang, -O0):
<foo7>:
push   %rbp
mov    %rsp,%rbp
movsd  %xmm0,-0x8(%rbp)
movsd  %xmm1,-0x10(%rbp)
movsd  -0x8(%rbp),%xmm0
ucomisd -0x10(%rbp),%xmm0
sete   %al
setnp  %cl
and    %cl,%al
and    $0x1,%al
movzbl %al,%eax
pop    %rbp
ret

x86 assembly (clang, -O2):
<foo7>:
cmpeqsd %xmm1,%xmm0
movq   %xmm0,%rax
and    $0x1,%eax
ret

LLVM IR (-O0):
define i32 @foo7(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 = fcmp oeq double %5, %6
%8 = zext i1 %7 to i32
ret i32 %8
}

LLVM IR (-O2):
define i32 @foo7(double %0, double %1) {
%3 = fcmp oeq double %0, %1
%4 = zext i1 %3 to i32
ret i32 %4
}
/* Variables and functions */
int /*<<< orphan*/ EXIT_FAILURE;
scalar_t__ EXIT_SUCCESS;
int /*<<< orphan*/ exit(int /*<<< orphan*/);
int /*<<< orphan*/ init_gpio(int);
int /*<<< orphan*/ init_pwm(int);
scalar_t__ open_mem();
int /*<<< orphan*/ set_realtime();
void init_rpi2() {
  set_realtime();
  if (open_mem() != EXIT_SUCCESS) {
    exit(EXIT_FAILURE);
  }
  init_gpio(0x3F000000);
  init_pwm(0x3F000000);
}


x86 assembly (clang, -O0):
<init_rpi2>:
push   %rbp
mov    %rsp,%rbp
mov    $0x0,%al
call   1030 <set_realtime@plt>
mov    $0x0,%al
call   1040 <open_mem@plt>
mov    0x2e6f(%rip),%rcx
cmp    (%rcx),%rax
je     1180 <init_rpi2+0x30>
mov    0x2e67(%rip),%rax
mov    (%rax),%edi
call   1070 <exit@plt>
mov    $0x3f000000,%edi
call   1060 <init_gpio@plt>
mov    $0x3f000000,%edi
call   1050 <init_pwm@plt>
pop    %rbp
ret

x86 assembly (clang, -O2):
<init_rpi2>:
push   %rax
xor    %eax,%eax
call   1030 <set_realtime@plt>
xor    %eax,%eax
call   1040 <open_mem@plt>
mov    0x2e72(%rip),%rcx
cmp    (%rcx),%rax
jne    1180 <init_rpi2+0x30>
mov    $0x3f000000,%edi
call   1060 <init_gpio@plt>
mov    $0x3f000000,%edi
pop    %rax
jmp    1050 <init_pwm@plt>
mov    0x2e59(%rip),%rax
mov    (%rax),%edi
call   1070 <exit@plt>

LLVM IR (-O0):
@EXIT_SUCCESS = global i64 0
@EXIT_FAILURE = global i32 0
define void @init_rpi2() {
%1 = call i32 (...) @set_realtime()
%2 = call i64 (...) @open_mem()
%3 = load i64, i64* @EXIT_SUCCESS
%4 = icmp ne i64 %2, %3
br i1 %4, label %5, label %8
5: ; preds = %0
%6 = load i32, i32* @EXIT_FAILURE
%7 = call i32 @exit(i32 %6)
unreachable
8: ; preds = %0
%9 = call i32 @init_gpio(i32 1056964608)
%10 = call i32 @init_pwm(i32 1056964608)
ret void
}

LLVM IR (-O2):
@EXIT_SUCCESS = global i64 0
@EXIT_FAILURE = global i32 0
define void @init_rpi2() {
%1 = tail call i32 (...) @set_realtime()
%2 = tail call i64 (...) @open_mem()
%3 = load i64, i64* @EXIT_SUCCESS
%4 = icmp eq i64 %2, %3
br i1 %4, label %8, label %5
5: ; preds = %0
%6 = load i32, i32* @EXIT_FAILURE
%7 = tail call i32 @exit(i32 %6)
unreachable
8: ; preds = %0
%9 = tail call i32 @init_gpio(i32 1056964608)
%10 = tail call i32 @init_pwm(i32 1056964608)
ret void
}
/* Variables and functions */
int compare_areas(void const *, void const *);
int compare_areas_desc(const void *a, const void *b) {
  return compare_areas(b, a);
}


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

x86 assembly (clang, -O2):
<compare_areas_desc>:
mov    %rdi,%rax
mov    %rsi,%rdi
mov    %rax,%rsi
jmp    1030 <compare_areas@plt>

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

LLVM IR (-O2):
define i32 @compare_areas_desc(i8* %0, i8* %1) {
%3 = tail call i32 @compare_areas(i8* %1, i8* %0)
ret i32 %3
}
int isnewline(int c) {
  if (c == '\n' || c == '\r')
    return 1;
  return 0;
}


x86 assembly (clang, -O0):
<isnewline>:
push   %rbp
mov    %rsp,%rbp
mov    %edi,-0x8(%rbp)
cmpl   $0xa,-0x8(%rbp)
je     111b <isnewline+0x1b>
cmpl   $0xd,-0x8(%rbp)
jne    1127 <isnewline+0x27>
movl   $0x1,-0x4(%rbp)
jmp    112e <isnewline+0x2e>
movl   $0x0,-0x4(%rbp)
mov    -0x4(%rbp),%eax
pop    %rbp
ret

x86 assembly (clang, -O2):
<isnewline>:
cmp    $0xd,%edi
sete   %al
cmp    $0xa,%edi
sete   %cl
or     %al,%cl
movzbl %cl,%eax
ret

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

LLVM IR (-O2):
define i32 @isnewline(i32 %0) {
%2 = icmp eq i32 %0, 13
%3 = icmp eq i32 %0, 10
%4 = or i1 %2, %3
%5 = zext i1 %4 to i32
ret i32 %5
}
void mm_put_huge_zero_page(struct mm_struct *mm) { return; }


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

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

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

LLVM IR (-O2):
%struct.mm_struct = type opaque
define void @mm_put_huge_zero_page(%struct.mm_struct* nocapture %0) {
ret void
}
/* Variables and functions */
int /*<<< orphan*/ cBreak();
int /*<<< orphan*/ dot();
void sI() {
  dot();
  dot();
  cBreak();
}


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

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

LLVM IR (-O0):
define void @sI() {
%1 = call i32 (...) @dot()
%2 = call i32 (...) @dot()
%3 = call i32 (...) @cBreak()
ret void
}

LLVM IR (-O2):
define void @sI() {
%1 = tail call i32 (...) @dot()
%2 = tail call i32 (...) @dot()
%3 = tail call i32 (...) @cBreak()
ret void
}
void *sdataend(void *shm) { return shm + (8 * 1024 * 1024); }


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

x86 assembly (clang, -O2):
<sdataend>:
lea    0x800000(%rdi),%rax
ret

LLVM IR (-O0):
define i8* @sdataend(i8* %0) {
%2 = alloca i8*
store i8* %0, i8** %2
%3 = load i8*, i8** %2
%4 = getelementptr i8, i8* %3, i64 8388608
ret i8* %4
}

LLVM IR (-O2):
define i8* @sdataend(i8* readnone %0) {
%2 = getelementptr i8, i8* %0, i64 8388608
ret i8* %2
}
/* Type definitions */
typedef int /*<<< orphan*/ pthread_t;
typedef int /*<<< orphan*/ cpu_set_t;

/* Variables and functions */
int /*<<< orphan*/ CPU_SET(int, int /*<<< orphan*/ *);
int /*<<< orphan*/ CPU_ZERO(int /*<<< orphan*/ *);
int /*<<< orphan*/ pthread_self();
scalar_t__ pthread_setaffinity_np(int /*<<< orphan*/, int,
                                  int /*<<< orphan*/ *);
int setaffinity(int core_id) {
  cpu_set_t cpuset;
  pthread_t me = pthread_self();
  CPU_ZERO(&cpuset);
  CPU_SET(core_id, &cpuset);
  if (pthread_setaffinity_np(me, sizeof(cpu_set_t), &cpuset))
    return -1;
  return 0;
}


x86 assembly (clang, -O0):
<setaffinity>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
mov    %edi,-0x8(%rbp)
mov    $0x0,%al
call   1050 <pthread_self@plt>
mov    %eax,-0x10(%rbp)
lea    -0xc(%rbp),%rdi
call   1040 <CPU_ZERO@plt>
mov    -0x8(%rbp),%edi
lea    -0xc(%rbp),%rsi
call   1060 <CPU_SET@plt>
mov    -0x10(%rbp),%edi
mov    $0x4,%esi
lea    -0xc(%rbp),%rdx
call   1030 <pthread_setaffinity_np@plt>
cmp    $0x0,%rax
je     1191 <setaffinity+0x51>
movl   $0xffffffff,-0x4(%rbp)
jmp    1198 <setaffinity+0x58>
movl   $0x0,-0x4(%rbp)
mov    -0x4(%rbp),%eax
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<setaffinity>:
push   %rbp
push   %r14
push   %rbx
sub    $0x10,%rsp
mov    %edi,%r14d
xor    %eax,%eax
call   1050 <pthread_self@plt>
mov    %eax,%ebp
lea    0xc(%rsp),%rbx
mov    %rbx,%rdi
call   1040 <CPU_ZERO@plt>
mov    %r14d,%edi
mov    %rbx,%rsi
call   1060 <CPU_SET@plt>
mov    %ebp,%edi
mov    $0x4,%esi
mov    %rbx,%rdx
call   1030 <pthread_setaffinity_np@plt>
neg    %rax
sbb    %eax,%eax
add    $0x10,%rsp
pop    %rbx
pop    %r14
pop    %rbp
ret

LLVM IR (-O0):
define i32 @setaffinity(i32 %0) {
%2 = alloca i32
%3 = alloca i32
%4 = alloca i32
%5 = alloca i32
store i32 %0, i32* %3
%6 = call i32 (...) @pthread_self()
store i32 %6, i32* %5
%7 = call i32 @CPU_ZERO(i32* %4)
%8 = load i32, i32* %3
%9 = call i32 @CPU_SET(i32 %8, i32* %4)
%10 = load i32, i32* %5
%11 = call i64 @pthread_setaffinity_np(i32 %10, i32 4, i32* %4)
%12 = icmp ne i64 %11, 0
br i1 %12, label %13, label %14
13: ; preds = %1
store i32 -1, i32* %2
br label %15
14: ; preds = %1
store i32 0, i32* %2
br label %15
15: ; preds = %14, %13
%16 = load i32, i32* %2
ret i32 %16
}

LLVM IR (-O2):
define i32 @setaffinity(i32 %0) {
%2 = alloca i32
%3 = bitcast i32* %2 to i8*
%4 = tail call i32 (...) @pthread_self()
%5 = call i32 @CPU_ZERO(i32* %2)
%6 = call i32 @CPU_SET(i32 %0, i32* %2)
%7 = call i64 @pthread_setaffinity_np(i32 %4, i32 4, i32* %2)
%8 = icmp ne i64 %7, 0
%9 = sext i1 %8 to i32
ret i32 %9
}
void INI_Int_TYPE() { ; }


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

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

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

LLVM IR (-O2):
define void @INI_Int_TYPE() {
ret void
}
/* Variables and functions */
long double atanhl(long double);
long double sinhl(long double);
long double __attribute__((no)) sinatanl_(long double x) {
  long double atg = atanhl(x);
  return sinhl(atg) + atg;
}


x86 assembly (clang, -O0):
<sinatanl_>:
push   %rbp
mov    %rsp,%rbp
sub    $0x30,%rsp
fldt   0x10(%rbp)
fstpt  -0x10(%rbp)
fldt   -0x10(%rbp)
mov    %rsp,%rax
fstpt  (%rax)
call   1040 <atanhl@plt>
fstpt  -0x20(%rbp)
fldt   -0x20(%rbp)
mov    %rsp,%rax
fstpt  (%rax)
call   1030 <sinhl@plt>
fldt   -0x20(%rbp)
faddp  %st,%st(1)
add    $0x30,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<sinatanl_>:
sub    $0x28,%rsp
fldt   0x30(%rsp)
fstpt  (%rsp)
call   1040 <atanhl@plt>
fld    %st(0)
fstpt  0x1c(%rsp)
fstpt  (%rsp)
call   1030 <sinhl@plt>
fldt   0x1c(%rsp)
faddp  %st,%st(1)
add    $0x28,%rsp
ret

LLVM IR (-O0):
define x86_fp80 @sinatanl_(x86_fp80 %0) {
%2 = alloca x86_fp80
%3 = alloca x86_fp80
store x86_fp80 %0, x86_fp80* %2
%4 = load x86_fp80, x86_fp80* %2
%5 = call x86_fp80 @atanhl(x86_fp80 %4)
store x86_fp80 %5, x86_fp80* %3
%6 = load x86_fp80, x86_fp80* %3
%7 = call x86_fp80 @sinhl(x86_fp80 %6)
%8 = load x86_fp80, x86_fp80* %3
%9 = fadd x86_fp80 %7, %8
ret x86_fp80 %9
}

LLVM IR (-O2):
define x86_fp80 @sinatanl_(x86_fp80 %0) {
%2 = tail call x86_fp80 @atanhl(x86_fp80 %0)
%3 = tail call x86_fp80 @sinhl(x86_fp80 %2)
%4 = fadd x86_fp80 %2, %3
ret x86_fp80 %4
}
/* Variables and functions */
int /*<<< orphan*/ ol(char *);
zand() { ol("andl %edx, %eax"); }


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

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

LLVM IR (-O0):
@.str = [16 x i8] c"andl %edx, %eax\00"
define i32 @zand() {
%1 = alloca i32
%2 = call i32 @ol(i8* getelementptr inbounds ([16 x i8], [16 x i8]* @.str, i64 0, i64 0))
%3 = load i32, i32* %1
ret i32 %3
}

LLVM IR (-O2):
@.str = [16 x i8] c"andl %edx, %eax\00"
define i32 @zand() {
%1 = tail call i32 @ol(i8* getelementptr inbounds ([16 x i8], [16 x i8]* @.str, i64 0, i64 0))
ret i32 undef
}
__attribute__((always_)) void cli(void) {
  __asm__ __volatile__("cli" : : : "memory");
}


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

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

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

LLVM IR (-O2):
define void @cli() {
tail call void asm sideeffect "cli", "~{memory},~{dirflag},~{fpsr},~{flags}"()
ret void
}
/* Variables and functions */
size_t strlen(const char *str) {
  const char *s = str;
  while (*str++)
    ;
  return (size_t)(s - 1 - str);
}


x86 assembly (clang, -O0):
<strlen>:
push   %rbp
mov    %rsp,%rbp
mov    %rdi,-0x8(%rbp)
mov    -0x8(%rbp),%rax
mov    %rax,-0x10(%rbp)
mov    -0x8(%rbp),%rax
mov    %rax,%rcx
add    $0x1,%rcx
mov    %rcx,-0x8(%rbp)
cmpb   $0x0,(%rax)
je     112d <strlen+0x2d>
jmp    1110 <strlen+0x10>
mov    -0x10(%rbp),%rax
add    $0xffffffffffffffff,%rax
mov    -0x8(%rbp),%rcx
sub    %rcx,%rax
pop    %rbp
ret

x86 assembly (clang, -O2):
<strlen>:
mov    $0x1,%eax
cs nopw 0x0(%rax,%rax,1)
nop
cmpb   $0x0,-0x1(%rdi,%rax,1)
lea    0x1(%rax),%rax
jne    1110 <strlen+0x10>
neg    %rax
ret

LLVM IR (-O0):
define i64 @strlen(i8* %0) {
%2 = alloca i8*
%3 = alloca i8*
store i8* %0, i8** %2
%4 = load i8*, i8** %2
store i8* %4, i8** %3
br label %5
5: ; preds = %10, %1
%6 = load i8*, i8** %2
%7 = getelementptr inbounds i8, i8* %6, i32 1
store i8* %7, i8** %2
%8 = load i8, i8* %6
%9 = icmp ne i8 %8, 0
br i1 %9, label %10, label %11
10: ; preds = %5
br label %5
11: ; preds = %5
%12 = load i8*, i8** %3
%13 = getelementptr inbounds i8, i8* %12, i64 -1
%14 = load i8*, i8** %2
%15 = ptrtoint i8* %13 to i64
%16 = ptrtoint i8* %14 to i64
%17 = sub i64 %15, %16
ret i64 %17
}

LLVM IR (-O2):
define i64 @strlen(i8* %0) {
br label %2
2: ; preds = %2, %1
%3 = phi i8* [ %0, %1 ], [ %4, %2 ]
%4 = getelementptr inbounds i8, i8* %3, i64 1
%5 = load i8, i8* %3
%6 = icmp eq i8 %5, 0
br i1 %6, label %7, label %2
7: ; preds = %2
%8 = getelementptr inbounds i8, i8* %0, i64 -1
%9 = ptrtoint i8* %8 to i64
%10 = ptrtoint i8* %4 to i64
%11 = sub i64 %9, %10
ret i64 %11
}
/* Variables and functions */
double fabs(double);
double pow(double, double);
double Raise(double b, double e) {
  if (b > 0)
    return pow(b, e);
  else
    return -pow(fabs(b), e);
}


x86 assembly (clang, -O0):
<Raise>:
push   %rbp
mov    %rsp,%rbp
sub    $0x20,%rsp
movsd  %xmm0,-0x10(%rbp)
movsd  %xmm1,-0x18(%rbp)
movsd  -0x10(%rbp),%xmm0
xorps  %xmm1,%xmm1
ucomisd %xmm1,%xmm0
jbe    114d <Raise+0x3d>
movsd  -0x10(%rbp),%xmm0
movsd  -0x18(%rbp),%xmm1
call   1030 <pow@plt>
movsd  %xmm0,-0x8(%rbp)
jmp    1183 <Raise+0x73>
movsd  -0x10(%rbp),%xmm0
movaps 0xea7(%rip),%xmm1
pand   %xmm1,%xmm0
movsd  -0x18(%rbp),%xmm1
call   1030 <pow@plt>
movq   %xmm0,%rax
movabs $0x8000000000000000,%rcx
xor    %rcx,%rax
movq   %rax,%xmm0
movsd  %xmm0,-0x8(%rbp)
movsd  -0x8(%rbp),%xmm0
add    $0x20,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<Raise>:
xorpd  %xmm2,%xmm2
ucomisd %xmm2,%xmm0
jbe    111f <Raise+0xf>
jmp    1030 <pow@plt>
push   %rax
andpd  0xed8(%rip),%xmm0
call   1030 <pow@plt>
xorpd  0xedb(%rip),%xmm0
pop    %rax
ret

LLVM IR (-O0):
define double @Raise(double %0, double %1) {
%3 = alloca double
%4 = alloca double
%5 = alloca double
store double %0, double* %4
store double %1, double* %5
%6 = load double, double* %4
%7 = fcmp ogt double %6, 0.000000e+00
br i1 %7, label %8, label %12
8: ; preds = %2
%9 = load double, double* %4
%10 = load double, double* %5
%11 = call double @pow(double %9, double %10)
store double %11, double* %3
br label %18
12: ; preds = %2
%13 = load double, double* %4
%14 = call double @llvm.fabs.f64(double %13)
%15 = load double, double* %5
%16 = call double @pow(double %14, double %15)
%17 = fneg double %16
store double %17, double* %3
br label %18
18: ; preds = %12, %8
%19 = load double, double* %3
ret double %19
}

LLVM IR (-O2):
define double @Raise(double %0, double %1) {
%3 = fcmp ogt double %0, 0.000000e+00
br i1 %3, label %4, label %6
4: ; preds = %2
%5 = tail call double @pow(double %0, double %1)
br label %10
6: ; preds = %2
%7 = tail call double @llvm.fabs.f64(double %0)
%8 = tail call double @pow(double %7, double %1)
%9 = fneg double %8
br label %10
10: ; preds = %6, %4
%11 = phi double [ %5, %4 ], [ %9, %6 ]
ret double %11
}
/* Variables and functions */
int /*<<< orphan*/ InitReceivedFO(long);
int /*<<< orphan*/ InitRemainingFO(long);
void PreProcessFO(long MyNum) {
  InitRemainingFO(MyNum);
  InitReceivedFO(MyNum);
}


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

x86 assembly (clang, -O2):
<PreProcessFO>:
push   %rbx
mov    %rdi,%rbx
call   1030 <InitRemainingFO@plt>
mov    %rbx,%rdi
pop    %rbx
jmp    1040 <InitReceivedFO@plt>

LLVM IR (-O0):
define void @PreProcessFO(i64 %0) {
%2 = alloca i64
store i64 %0, i64* %2
%3 = load i64, i64* %2
%4 = call i32 @InitRemainingFO(i64 %3)
%5 = load i64, i64* %2
%6 = call i32 @InitReceivedFO(i64 %5)
ret void
}

LLVM IR (-O2):
define void @PreProcessFO(i64 %0) {
%2 = tail call i32 @InitRemainingFO(i64 %0)
%3 = tail call i32 @InitReceivedFO(i64 %0)
ret void
}
void dummy_enc_png(void) {}


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

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

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

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