xunge/DecIR huggingface dataset:
/* Variables and functions */
int /*<<< orphan*/ int_swap(int *, int *);
int int_comp(int *a, int *b) {
  int ret = 0;
  if (*a > *b) {
    ret = 1;
    int_swap(a, b);
  } else if (*a < *b) {
    ret = -1;
  }
  return ret;
}


x86 assembly (clang, -O0):
<int_comp>:
push   %rbp
mov    %rsp,%rbp
sub    $0x20,%rsp
mov    %rdi,-0x8(%rbp)
mov    %rsi,-0x10(%rbp)
movl   $0x0,-0x14(%rbp)
mov    -0x8(%rbp),%rax
mov    (%rax),%eax
mov    -0x10(%rbp),%rcx
cmp    (%rcx),%eax
jle    1152 <int_comp+0x42>
movl   $0x1,-0x14(%rbp)
mov    -0x8(%rbp),%rdi
mov    -0x10(%rbp),%rsi
call   1030 <int_swap@plt>
jmp    1170 <int_comp+0x60>
mov    -0x8(%rbp),%rax
mov    (%rax),%eax
mov    -0x10(%rbp),%rcx
cmp    (%rcx),%eax
jge    116b <int_comp+0x5b>
movl   $0xffffffff,-0x14(%rbp)
jmp    1170 <int_comp+0x60>
mov    -0x14(%rbp),%eax
add    $0x20,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<int_comp>:
push   %rax
mov    (%rsi),%eax
cmp    %eax,(%rdi)
jle    1123 <int_comp+0x13>
call   1030 <int_swap@plt>
mov    $0x1,%eax
pop    %rcx
ret
setl   %al
movzbl %al,%eax
neg    %eax
pop    %rcx
ret

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

LLVM IR (-O2):
define i32 @int_comp(i32* %0, i32* %1) {
%3 = load i32, i32* %0
%4 = load i32, i32* %1
%5 = icmp sgt i32 %3, %4
br i1 %5, label %6, label %8
6: ; preds = %2
%7 = tail call i32 @int_swap(i32* %0, i32* %1)
br label %11
8: ; preds = %2
%9 = icmp slt i32 %3, %4
%10 = sext i1 %9 to i32
br label %11
11: ; preds = %8, %6
%12 = phi i32 [ 1, %6 ], [ %10, %8 ]
ret i32 %12
}
void msa_seq_garbage_collection_multi(
    struct msa_sequences_multi_s *msa_seq_info, int nr_alphabets) {}


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

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

LLVM IR (-O0):
%struct.msa_sequences_multi_s = type opaque
define void @msa_seq_garbage_collection_multi(%struct.msa_sequences_multi_s* %0, i32 %1) {
%3 = alloca %struct.msa_sequences_multi_s*
%4 = alloca i32
store %struct.msa_sequences_multi_s* %0, %struct.msa_sequences_multi_s** %3
store i32 %1, i32* %4
ret void
}

LLVM IR (-O2):
%struct.msa_sequences_multi_s = type opaque
define void @msa_seq_garbage_collection_multi(%struct.msa_sequences_multi_s* nocapture %0, i32 %1) {
ret void
}
/* Variables and functions */
int /*<<< orphan*/ exit(int);
int /*<<< orphan*/ perror(char *);
scalar_t__ truncate(char *, int);
int main(void) {
  if (truncate("trun.txt", 10) < 0) {
    perror("truncate error");
    exit(-1);
  }
  return 0;
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
movl   $0x0,-0x4(%rbp)
lea    0xeba(%rip),%rdi
mov    $0xa,%esi
call   1030 <truncate@plt>
cmp    $0x0,%rax
jge    1170 <main+0x40>
lea    0xea8(%rip),%rdi
call   1040 <perror@plt>
mov    $0xffffffff,%edi
call   1050 <exit@plt>
xor    %eax,%eax
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %rax
lea    0xec8(%rip),%rdi
mov    $0xa,%esi
call   1030 <truncate@plt>
test   %rax,%rax
js     114b <main+0x1b>
xor    %eax,%eax
pop    %rcx
ret
lea    0xeb7(%rip),%rdi
call   1040 <perror@plt>
mov    $0xffffffff,%edi
call   1050 <exit@plt>

LLVM IR (-O0):
@.str = [9 x i8] c"trun.txt\00"
@.str.1 = [15 x i8] c"truncate error\00"
define i32 @main() {
%1 = alloca i32
store i32 0, i32* %1
%2 = call i64 @truncate(i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str, i64 0, i64 0), i32 10)
%3 = icmp slt i64 %2, 0
br i1 %3, label %4, label %7
4: ; preds = %0
%5 = call i32 @perror(i8* getelementptr inbounds ([15 x i8], [15 x i8]* @.str.1, i64 0, i64 0))
%6 = call i32 @exit(i32 -1)
unreachable
7: ; preds = %0
ret i32 0
}

LLVM IR (-O2):
@.str = [9 x i8] c"trun.txt\00"
@.str.1 = [15 x i8] c"truncate error\00"
define i32 @main() {
%1 = tail call i64 @truncate(i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str, i64 0, i64 0), i32 10)
%2 = icmp slt i64 %1, 0
br i1 %2, label %3, label %6
3: ; preds = %0
%4 = tail call i32 @perror(i8* getelementptr inbounds ([15 x i8], [15 x i8]* @.str.1, i64 0, i64 0))
%5 = tail call i32 @exit(i32 -1)
unreachable
6: ; preds = %0
ret i32 0
}
/* Variables and functions */
int /*<<< orphan*/ convert_char(unsigned short);
int /*<<< orphan*/ out_char(int /*<<< orphan*/);
void output_paragraph(unsigned short int *buffer) {
  unsigned short int *p;
  int countout = 0;
  for (p = buffer; *p; p++) {
    out_char(convert_char(*p));
    countout++;
  }
}


x86 assembly (clang, -O0):
<output_paragraph>:
push   %rbp
mov    %rsp,%rbp
sub    $0x20,%rsp
mov    %rdi,-0x8(%rbp)
movl   $0x0,-0x14(%rbp)
mov    -0x8(%rbp),%rax
mov    %rax,-0x10(%rbp)
mov    -0x10(%rbp),%rax
cmpw   $0x0,(%rax)
je     1176 <output_paragraph+0x56>
mov    -0x10(%rbp),%rax
movzwl (%rax),%edi
call   1030 <convert_char@plt>
mov    %eax,%edi
call   1040 <out_char@plt>
mov    -0x14(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x14(%rbp)
mov    -0x10(%rbp),%rax
add    $0x2,%rax
mov    %rax,-0x10(%rbp)
jmp    113b <output_paragraph+0x1b>
add    $0x20,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<output_paragraph>:
push   %rbx
movzwl (%rdi),%eax
test   %ax,%ax
je     114b <output_paragraph+0x2b>
mov    %rdi,%rbx
add    $0x2,%rbx
movzwl %ax,%edi
call   1030 <convert_char@plt>
mov    %eax,%edi
call   1040 <out_char@plt>
movzwl (%rbx),%eax
add    $0x2,%rbx
test   %ax,%ax
jne    1130 <output_paragraph+0x10>
pop    %rbx
ret

LLVM IR (-O0):
define void @output_paragraph(i16* %0) {
%2 = alloca i16*
%3 = alloca i16*
%4 = alloca i32
store i16* %0, i16** %2
store i32 0, i32* %4
%5 = load i16*, i16** %2
store i16* %5, i16** %3
br label %6
6: ; preds = %17, %1
%7 = load i16*, i16** %3
%8 = load i16, i16* %7
%9 = icmp ne i16 %8, 0
br i1 %9, label %10, label %20
10: ; preds = %6
%11 = load i16*, i16** %3
%12 = load i16, i16* %11
%13 = call i32 @convert_char(i16 zeroext %12)
%14 = call i32 @out_char(i32 %13)
%15 = load i32, i32* %4
%16 = add nsw i32 %15, 1
store i32 %16, i32* %4
br label %17
17: ; preds = %10
%18 = load i16*, i16** %3
%19 = getelementptr inbounds i16, i16* %18, i32 1
store i16* %19, i16** %3
br label %6
20: ; preds = %6
ret void
}

LLVM IR (-O2):
define void @output_paragraph(i16* nocapture %0) {
%2 = load i16, i16* %0
%3 = icmp eq i16 %2, 0
br i1 %3, label %12, label %4
4: ; preds = %1, %4
%5 = phi i16 [ %10, %4 ], [ %2, %1 ]
%6 = phi i16* [ %9, %4 ], [ %0, %1 ]
%7 = tail call i32 @convert_char(i16 zeroext %5)
%8 = tail call i32 @out_char(i32 %7)
%9 = getelementptr inbounds i16, i16* %6, i64 1
%10 = load i16, i16* %9
%11 = icmp eq i16 %10, 0
br i1 %11, label %12, label %4
12: ; preds = %4, %1
ret void
}
/* Variables and functions */
int /*<<< orphan*/ printf(char *, char *, int);
int mem_usage(char *name) {
  static int memory_init;
  int memory_current;
  static int flag = 1;
  if (flag) {
    memory_init = 0;
    flag = 0;
  }
  memory_current = 0;
  printf("Memory %s\t %d\n", name, memory_current - memory_init);
  return memory_current;
}


x86 assembly (clang, -O0):
<mem_usage>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
mov    %rdi,-0x8(%rbp)
cmpl   $0x0,0x2f05(%rip)
je     113d <mem_usage+0x2d>
movl   $0x0,0x2efd(%rip)
movl   $0x0,0x2eeb(%rip)
movl   $0x0,-0xc(%rbp)
mov    -0x8(%rbp),%rsi
mov    -0xc(%rbp),%edx
sub    0x2edf(%rip),%edx
lea    0xea8(%rip),%rdi
call   1030 <printf@plt>
mov    -0xc(%rbp),%eax
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<mem_usage>:
push   %rax
mov    %rdi,%rsi
cmpb   $0x0,0x2f11(%rip)
jne    1124 <mem_usage+0x14>
movb   $0x1,0x2f08(%rip)
lea    0xed5(%rip),%rdi
xor    %edx,%edx
call   1030 <printf@plt>
xor    %eax,%eax
pop    %rcx
ret

LLVM IR (-O0):
@mem_usage.memory_init = internal global i32 0
@mem_usage.flag = internal global i32 1
@.str = [15 x i8] c"Memory %s\09 %d\0A\00"
define i32 @mem_usage(i8* %0) {
%2 = alloca i8*
%3 = alloca i32
store i8* %0, i8** %2
%4 = load i32, i32* @mem_usage.flag
%5 = icmp ne i32 %4, 0
br i1 %5, label %6, label %7
6: ; preds = %1
store i32 0, i32* @mem_usage.memory_init
store i32 0, i32* @mem_usage.flag
br label %7
7: ; preds = %6, %1
store i32 0, i32* %3
%8 = load i8*, i8** %2
%9 = load i32, i32* %3
%10 = load i32, i32* @mem_usage.memory_init
%11 = sub nsw i32 %9, %10
%12 = call i32 @printf(i8* getelementptr inbounds ([15 x i8], [15 x i8]* @.str, i64 0, i64 0), i8* %8, i32 %11)
%13 = load i32, i32* %3
ret i32 %13
}

LLVM IR (-O2):
@mem_usage.flag = internal unnamed_addr global i1 false
@.str = [15 x i8] c"Memory %s\09 %d\0A\00"
define i32 @mem_usage(i8* %0) {
%2 = load i1, i1* @mem_usage.flag
br i1 %2, label %4, label %3
3: ; preds = %1
store i1 true, i1* @mem_usage.flag
br label %4
4: ; preds = %3, %1
%5 = tail call i32 @printf(i8* getelementptr inbounds ([15 x i8], [15 x i8]* @.str, i64 0, i64 0), i8* %0, i32 0)
ret i32 0
}
/* Variables and functions */
scalar_t__ LINES;
int /*<<< orphan*/ mvaddstr(scalar_t__, int /*<<< orphan*/, char *);
int /*<<< orphan*/ notify(char *, char *, char *);
int /*<<< orphan*/ refresh();
void err_ui(char *message) {
  notify("", "", "");
  mvaddstr(LINES - 1, 0, message);
  refresh();
  return;
}


x86 assembly (clang, -O0):
<err_ui>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
mov    %rdi,-0x8(%rbp)
lea    0xebd(%rip),%rdx
mov    %rdx,%rdi
mov    %rdx,%rsi
call   1030 <notify@plt>
mov    0x2e93(%rip),%rax
mov    (%rax),%rdi
sub    $0x1,%rdi
mov    -0x8(%rbp),%rdx
xor    %esi,%esi
call   1050 <mvaddstr@plt>
mov    $0x0,%al
call   1040 <refresh@plt>
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<err_ui>:
push   %rbx
mov    %rdi,%rbx
lea    0xec5(%rip),%rdi
mov    %rdi,%rsi
mov    %rdi,%rdx
call   1030 <notify@plt>
mov    0x2e9b(%rip),%rax
mov    (%rax),%rdi
add    $0xffffffffffffffff,%rdi
xor    %esi,%esi
mov    %rbx,%rdx
call   1050 <mvaddstr@plt>
xor    %eax,%eax
pop    %rbx
jmp    1040 <refresh@plt>

LLVM IR (-O0):
@.str = [1 x i8] zeroinitializer
@LINES = global i64 0
define void @err_ui(i8* %0) {
%2 = alloca i8*
store i8* %0, i8** %2
%3 = call i32 @notify(i8* getelementptr inbounds ([1 x i8], [1 x i8]* @.str, i64 0, i64 0), i8* getelementptr inbounds ([1 x i8], [1 x i8]* @.str, i64 0, i64 0), i8* getelementptr inbounds ([1 x i8], [1 x i8]* @.str, i64 0, i64 0))
%4 = load i64, i64* @LINES
%5 = sub nsw i64 %4, 1
%6 = load i8*, i8** %2
%7 = call i32 @mvaddstr(i64 %5, i32 0, i8* %6)
%8 = call i32 (...) @refresh()
ret void
}

LLVM IR (-O2):
@.str = [1 x i8] zeroinitializer
@LINES = global i64 0
define void @err_ui(i8* %0) {
%2 = tail call i32 @notify(i8* getelementptr inbounds ([1 x i8], [1 x i8]* @.str, i64 0, i64 0), i8* getelementptr inbounds ([1 x i8], [1 x i8]* @.str, i64 0, i64 0), i8* getelementptr inbounds ([1 x i8], [1 x i8]* @.str, i64 0, i64 0))
%3 = load i64, i64* @LINES
%4 = add nsw i64 %3, -1
%5 = tail call i32 @mvaddstr(i64 %4, i32 0, i8* %0)
%6 = tail call i32 (...) @refresh()
ret void
}
/* Variables and functions */
int /*<<< orphan*/ pB(char *, ...);
void init_stack(void) {
  pB("SInt32 stack_head:R01;");
  pB("SInt32 stack_socket:R03;");
  pB("SInt32 stack_tmp:R21;");
  pB("stack_head = %d;", ((0x400000) - 0x200000));
}


x86 assembly (clang, -O0):
<init_stack>:
push   %rbp
mov    %rsp,%rbp
lea    0xee5(%rip),%rdi
mov    $0x0,%al
call   1030 <pB@plt>
lea    0xeee(%rip),%rdi
mov    $0x0,%al
call   1030 <pB@plt>
lea    0xef9(%rip),%rdi
mov    $0x0,%al
call   1030 <pB@plt>
lea    0xf01(%rip),%rdi
mov    $0x200000,%esi
mov    $0x0,%al
call   1030 <pB@plt>
pop    %rbp
ret

x86 assembly (clang, -O2):
<init_stack>:
push   %rax
lea    0xee8(%rip),%rdi
xor    %eax,%eax
call   1030 <pB@plt>
lea    0xef1(%rip),%rdi
xor    %eax,%eax
call   1030 <pB@plt>
lea    0xefc(%rip),%rdi
xor    %eax,%eax
call   1030 <pB@plt>
lea    0xf04(%rip),%rdi
mov    $0x200000,%esi
xor    %eax,%eax
pop    %rcx
jmp    1030 <pB@plt>

LLVM IR (-O0):
@.str = [23 x i8] c"SInt32 stack_head:R01;\00"
@.str.1 = [25 x i8] c"SInt32 stack_socket:R03;\00"
@.str.2 = [22 x i8] c"SInt32 stack_tmp:R21;\00"
@.str.3 = [17 x i8] c"stack_head = %d;\00"
define void @init_stack() {
%1 = call i32 (i8*, ...) @pB(i8* getelementptr inbounds ([23 x i8], [23 x i8]* @.str, i64 0, i64 0))
%2 = call i32 (i8*, ...) @pB(i8* getelementptr inbounds ([25 x i8], [25 x i8]* @.str.1, i64 0, i64 0))
%3 = call i32 (i8*, ...) @pB(i8* getelementptr inbounds ([22 x i8], [22 x i8]* @.str.2, i64 0, i64 0))
%4 = call i32 (i8*, ...) @pB(i8* getelementptr inbounds ([17 x i8], [17 x i8]* @.str.3, i64 0, i64 0), i32 2097152)
ret void
}

LLVM IR (-O2):
@.str = [23 x i8] c"SInt32 stack_head:R01;\00"
@.str.1 = [25 x i8] c"SInt32 stack_socket:R03;\00"
@.str.2 = [22 x i8] c"SInt32 stack_tmp:R21;\00"
@.str.3 = [17 x i8] c"stack_head = %d;\00"
define void @init_stack() {
%1 = tail call i32 (i8*, ...) @pB(i8* getelementptr inbounds ([23 x i8], [23 x i8]* @.str, i64 0, i64 0))
%2 = tail call i32 (i8*, ...) @pB(i8* getelementptr inbounds ([25 x i8], [25 x i8]* @.str.1, i64 0, i64 0))
%3 = tail call i32 (i8*, ...) @pB(i8* getelementptr inbounds ([22 x i8], [22 x i8]* @.str.2, i64 0, i64 0))
%4 = tail call i32 (i8*, ...) @pB(i8* getelementptr inbounds ([17 x i8], [17 x i8]* @.str.3, i64 0, i64 0), i32 2097152)
ret void
}
/* Variables and functions */
double fabs(double);
double BsplnWght1(long i, double x) {
  x = fabs(x - (double)i);
  return ((x > 1.0) ? (0.0) : (1.0 - x));
}


x86 assembly (clang, -O0):
<BsplnWght1>:
push   %rbp
mov    %rsp,%rbp
mov    %rdi,-0x8(%rbp)
movsd  %xmm0,-0x10(%rbp)
movsd  -0x10(%rbp),%xmm0
cvtsi2sdq -0x8(%rbp),%xmm1
subsd  %xmm1,%xmm0
movaps 0xeed(%rip),%xmm1
pand   %xmm1,%xmm0
movsd  %xmm0,-0x10(%rbp)
movsd  -0x10(%rbp),%xmm0
movsd  0xec7(%rip),%xmm1
ucomisd %xmm1,%xmm0
jbe    1150 <BsplnWght1+0x50>
xorps  %xmm0,%xmm0
movsd  %xmm0,-0x18(%rbp)
jmp    1162 <BsplnWght1+0x62>
movsd  0xea8(%rip),%xmm0
subsd  -0x10(%rbp),%xmm0
movsd  %xmm0,-0x18(%rbp)
movsd  -0x18(%rbp),%xmm0
pop    %rbp
ret

x86 assembly (clang, -O2):
<BsplnWght1>:
cvtsi2sd %rdi,%xmm1
subsd  %xmm1,%xmm0
andpd  0xeef(%rip),%xmm0
movsd  0xef7(%rip),%xmm1
movapd %xmm1,%xmm2
subsd  %xmm0,%xmm2
cmpltsd %xmm0,%xmm1
andnpd %xmm2,%xmm1
movapd %xmm1,%xmm0
ret

LLVM IR (-O0):
define double @BsplnWght1(i64 %0, double %1) {
%3 = alloca i64
%4 = alloca double
store i64 %0, i64* %3
store double %1, double* %4
%5 = load double, double* %4
%6 = load i64, i64* %3
%7 = sitofp i64 %6 to double
%8 = fsub double %5, %7
%9 = call double @llvm.fabs.f64(double %8)
store double %9, double* %4
%10 = load double, double* %4
%11 = fcmp ogt double %10, 1.000000e+00
br i1 %11, label %12, label %13
12: ; preds = %2
br label %16
13: ; preds = %2
%14 = load double, double* %4
%15 = fsub double 1.000000e+00, %14
br label %16
16: ; preds = %13, %12
%17 = phi double [ 0.000000e+00, %12 ], [ %15, %13 ]
ret double %17
}

LLVM IR (-O2):
define double @BsplnWght1(i64 %0, double %1) {
%3 = sitofp i64 %0 to double
%4 = fsub double %1, %3
%5 = tail call double @llvm.fabs.f64(double %4)
%6 = fcmp ogt double %5, 1.000000e+00
%7 = fsub double 1.000000e+00, %5
%8 = select i1 %6, double 0.000000e+00, double %7
ret double %8
}
int get_days(int month) {
  switch (month) {
  case 2:
    return 28;
  case 4:
  case 6:
  case 9:
  case 11:
    return 30;
  default:
    return 31;
  }
}


x86 assembly (clang, -O0):
<get_days>:
push   %rbp
mov    %rsp,%rbp
mov    %edi,-0x8(%rbp)
mov    -0x8(%rbp),%eax
mov    %eax,-0xc(%rbp)
sub    $0x2,%eax
je     115f <get_days+0x5f>
jmp    111b <get_days+0x1b>
mov    -0xc(%rbp),%eax
sub    $0x4,%eax
je     116b <get_days+0x6b>
jmp    112c <get_days+0x2c>
mov    -0xc(%rbp),%eax
sub    $0x6,%eax
je     116b <get_days+0x6b>
jmp    113d <get_days+0x3d>
mov    -0xc(%rbp),%eax
sub    $0x9,%eax
je     116b <get_days+0x6b>
jmp    114e <get_days+0x4e>
mov    -0xc(%rbp),%eax
sub    $0xb,%eax
je     116b <get_days+0x6b>
jmp    1177 <get_days+0x77>
movl   $0x1c,-0x4(%rbp)
jmp    117e <get_days+0x7e>
movl   $0x1e,-0x4(%rbp)
jmp    117e <get_days+0x7e>
movl   $0x1f,-0x4(%rbp)
mov    -0x4(%rbp),%eax
pop    %rbp
ret

x86 assembly (clang, -O2):
<get_days>:
add    $0xfffffffe,%edi
mov    $0x1f,%eax
cmp    $0x9,%edi
ja     111a <get_days+0x1a>
movslq %edi,%rax
lea    0xee9(%rip),%rcx
mov    (%rcx,%rax,4),%eax
ret

LLVM IR (-O0):
define i32 @get_days(i32 %0) {
%2 = alloca i32
%3 = alloca i32
store i32 %0, i32* %3
%4 = load i32, i32* %3
switch i32 %4, label %7 [
i32 2, label %5
i32 4, label %6
i32 6, label %6
i32 9, label %6
i32 11, label %6
]
5: ; preds = %1
store i32 28, i32* %2
br label %8
6: ; preds = %1, %1, %1, %1
store i32 30, i32* %2
br label %8
7: ; preds = %1
store i32 31, i32* %2
br label %8
8: ; preds = %7, %6, %5
%9 = load i32, i32* %2
ret i32 %9
}

LLVM IR (-O2):
@switch.table.get_days = [10 x i32] [i32 28, i32 31, i32 30, i32 31, i32 30, i32 31, i32 31, i32 30, i32 31, i32 30]
define i32 @get_days(i32 %0) {
%2 = add i32 %0, -2
%3 = icmp ult i32 %2, 10
br i1 %3, label %4, label %8
4: ; preds = %1
%5 = sext i32 %2 to i64
%6 = getelementptr inbounds [10 x i32], [10 x i32]* @switch.table.get_days, i64 0, i64 %5
%7 = load i32, i32* %6
br label %8
8: ; preds = %1, %4
%9 = phi i32 [ %7, %4 ], [ 31, %1 ]
ret i32 %9
}
int acker(int m, int n) {
  if (m == 0)
    return n + 1;
  else if (n == 0)
    return acker(m - 1, 1);
  else
    return acker(m - 1, acker(m, n - 1));
}


x86 assembly (clang, -O0):
<acker>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
mov    %edi,-0x8(%rbp)
mov    %esi,-0xc(%rbp)
cmpl   $0x0,-0x8(%rbp)
jne    1136 <acker+0x26>
mov    -0xc(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x4(%rbp)
jmp    117c <acker+0x6c>
cmpl   $0x0,-0xc(%rbp)
jne    1158 <acker+0x48>
mov    -0x8(%rbp),%edi
sub    $0x1,%edi
mov    $0x1,%esi
call   1030 <acker@plt>
mov    %eax,-0x4(%rbp)
jmp    117c <acker+0x6c>
mov    -0x8(%rbp),%eax
sub    $0x1,%eax
mov    %eax,-0x10(%rbp)
mov    -0x8(%rbp),%edi
mov    -0xc(%rbp),%esi
sub    $0x1,%esi
call   1030 <acker@plt>
mov    -0x10(%rbp),%edi
mov    %eax,%esi
call   1030 <acker@plt>
mov    %eax,-0x4(%rbp)
mov    -0x4(%rbp),%eax
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<acker>:
push   %rbx
mov    %esi,%eax
test   %edi,%edi
je     113f <acker+0x2f>
mov    %edi,%ebx
jmp    112a <acker+0x1a>
nopl   0x0(%rax,%rax,1)
mov    $0x1,%eax
add    $0xffffffff,%ebx
je     113f <acker+0x2f>
test   %eax,%eax
je     1120 <acker+0x10>
add    $0xffffffff,%eax
mov    %ebx,%edi
mov    %eax,%esi
call   1030 <acker@plt>
add    $0xffffffff,%ebx
jne    112a <acker+0x1a>
add    $0x1,%eax
pop    %rbx
ret

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

LLVM IR (-O2):
define i32 @acker(i32 %0, i32 %1) {
%3 = icmp eq i32 %0, 0
br i1 %3, label %4, label %7
4: ; preds = %11, %2
%5 = phi i32 [ %1, %2 ], [ %12, %11 ]
%6 = add nsw i32 %5, 1
ret i32 %6
7: ; preds = %2, %11
%8 = phi i32 [ %12, %11 ], [ %1, %2 ]
%9 = phi i32 [ %13, %11 ], [ %0, %2 ]
%10 = icmp eq i32 %8, 0
br i1 %10, label %11, label %15
11: ; preds = %7, %15
%12 = phi i32 [ %17, %15 ], [ 1, %7 ]
%13 = add nsw i32 %9, -1
%14 = icmp eq i32 %13, 0
br i1 %14, label %4, label %7
15: ; preds = %7
%16 = add nsw i32 %8, -1
%17 = tail call i32 @acker(i32 %9, i32 %16)
br label %11
}
/* Variables and functions */
int /*<<< orphan*/ zipCacheReadOnlyZip(int /*<<< orphan*/ *);
void saveStateDestroy(void) { zipCacheReadOnlyZip(NULL); }


x86 assembly (clang, -O0):
<saveStateDestroy>:
push   %rbp
mov    %rsp,%rbp
xor    %eax,%eax
mov    %eax,%edi
call   1030 <zipCacheReadOnlyZip@plt>
pop    %rbp
ret

x86 assembly (clang, -O2):
<saveStateDestroy>:
xor    %edi,%edi
jmp    1030 <zipCacheReadOnlyZip@plt>

LLVM IR (-O0):
define void @saveStateDestroy() {
%1 = call i32 @zipCacheReadOnlyZip(i32* null)
ret void
}

LLVM IR (-O2):
define void @saveStateDestroy() {
%1 = tail call i32 @zipCacheReadOnlyZip(i32* null)
ret void
}
void copy2ddr(void) {
  unsigned char *dest = (unsigned char *)0x57000000;
  unsigned char *src = (unsigned char *)0;
  int i = 0;
  while (i < 8 * 1024) {
    dest[i] = src[i];
    i++;
  }
}


x86 assembly (clang, -O0):
<copy2ddr>:
push   %rbp
mov    %rsp,%rbp
mov    $0x57000000,%eax
mov    %rax,-0x8(%rbp)
movq   $0x0,-0x10(%rbp)
movl   $0x0,-0x14(%rbp)
cmpl   $0x2000,-0x14(%rbp)
jge    114d <copy2ddr+0x4d>
mov    -0x10(%rbp),%rax
movslq -0x14(%rbp),%rcx
mov    (%rax,%rcx,1),%dl
mov    -0x8(%rbp),%rax
movslq -0x14(%rbp),%rcx
mov    %dl,(%rax,%rcx,1)
mov    -0x14(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x14(%rbp)
jmp    111c <copy2ddr+0x1c>
pop    %rbp
ret

x86 assembly (clang, -O2):
LLVM IR (-O0):
define void @copy2ddr() {
%1 = alloca i8*
%2 = alloca i8*
%3 = alloca i32
store i8* inttoptr (i64 1459617792 to i8*), i8** %1
store i8* null, i8** %2
store i32 0, i32* %3
br label %4
4: ; preds = %7, %0
%5 = load i32, i32* %3
%6 = icmp slt i32 %5, 8192
br i1 %6, label %7, label %19
7: ; preds = %4
%8 = load i8*, i8** %2
%9 = load i32, i32* %3
%10 = sext i32 %9 to i64
%11 = getelementptr inbounds i8, i8* %8, i64 %10
%12 = load i8, i8* %11
%13 = load i8*, i8** %1
%14 = load i32, i32* %3
%15 = sext i32 %14 to i64
%16 = getelementptr inbounds i8, i8* %13, i64 %15
store i8 %12, i8* %16
%17 = load i32, i32* %3
%18 = add nsw i32 %17, 1
store i32 %18, i32* %3
br label %4
19: ; preds = %4
ret void
}

LLVM IR (-O2):
void TCC_CUI_VIQE_ShowGamut(int En) {}


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

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

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

LLVM IR (-O2):
define void @TCC_CUI_VIQE_ShowGamut(i32 %0) {
ret void
}
/* Variables and functions */
int rom_present(char *);
int ati28800_available() { return rom_present("bios.bin"); }


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

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

LLVM IR (-O0):
@.str = [9 x i8] c"bios.bin\00"
define i32 @ati28800_available() {
%1 = call i32 @rom_present(i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str, i64 0, i64 0))
ret i32 %1
}

LLVM IR (-O2):
@.str = [9 x i8] c"bios.bin\00"
define i32 @ati28800_available() {
%1 = tail call i32 @rom_present(i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str, i64 0, i64 0))
ret i32 %1
}
/* Type definitions */
struct timespec {
  int dummy;
};

/* Variables and functions */
int /*<<< orphan*/ SYS_futex;
int syscall(int /*<<< orphan*/, void *, int, int, struct timespec *, void *,
            int);
int sys_futex(void *addr1, int op, int val1, struct timespec *timeout,
              void *addr2, int val3) {
  return syscall(SYS_futex, addr1, op, val1, timeout, addr2, val3);
}


x86 assembly (clang, -O0):
<sys_futex>:
push   %rbp
mov    %rsp,%rbp
sub    $0x30,%rsp
mov    %rdi,-0x8(%rbp)
mov    %esi,-0xc(%rbp)
mov    %edx,-0x10(%rbp)
mov    %rcx,-0x18(%rbp)
mov    %r8,-0x20(%rbp)
mov    %r9d,-0x24(%rbp)
mov    0x2eab(%rip),%rax
mov    (%rax),%edi
mov    -0x8(%rbp),%rsi
mov    -0xc(%rbp),%edx
mov    -0x10(%rbp),%ecx
mov    -0x18(%rbp),%r8
mov    -0x20(%rbp),%r9
mov    -0x24(%rbp),%eax
mov    %eax,(%rsp)
call   1030 <syscall@plt>
add    $0x30,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<sys_futex>:
push   %rax
mov    %r8,%rax
mov    %rcx,%r8
mov    %edx,%ecx
mov    %esi,%edx
mov    %rdi,%rsi
mov    0x2ebb(%rip),%rdi
mov    (%rdi),%edi
mov    %r9d,(%rsp)
mov    %rax,%r9
call   1030 <syscall@plt>
pop    %rcx
ret

LLVM IR (-O0):
%struct.timespec = type { i32 }
@SYS_futex = global i32 0
define i32 @sys_futex(i8* %0, i32 %1, i32 %2, %struct.timespec* %3, i8* %4, i32 %5) {
%7 = alloca i8*
%8 = alloca i32
%9 = alloca i32
%10 = alloca %struct.timespec*
%11 = alloca i8*
%12 = alloca i32
store i8* %0, i8** %7
store i32 %1, i32* %8
store i32 %2, i32* %9
store %struct.timespec* %3, %struct.timespec** %10
store i8* %4, i8** %11
store i32 %5, i32* %12
%13 = load i32, i32* @SYS_futex
%14 = load i8*, i8** %7
%15 = load i32, i32* %8
%16 = load i32, i32* %9
%17 = load %struct.timespec*, %struct.timespec** %10
%18 = load i8*, i8** %11
%19 = load i32, i32* %12
%20 = call i32 @syscall(i32 %13, i8* %14, i32 %15, i32 %16, %struct.timespec* %17, i8* %18, i32 %19)
ret i32 %20
}

LLVM IR (-O2):
%struct.timespec = type { i32 }
@SYS_futex = global i32 0
define i32 @sys_futex(i8* %0, i32 %1, i32 %2, %struct.timespec* %3, i8* %4, i32 %5) {
%7 = load i32, i32* @SYS_futex
%8 = tail call i32 @syscall(i32 %7, i8* %0, i32 %1, i32 %2, %struct.timespec* %3, i8* %4, i32 %5)
ret i32 %8
}
/* Variables and functions */
int random();
int rand_number(int max) { return (random() % max); }


x86 assembly (clang, -O0):
<rand_number>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
mov    %edi,-0x4(%rbp)
mov    $0x0,%al
call   1030 <random@plt>
cltd
idivl  -0x4(%rbp)
mov    %edx,%eax
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<rand_number>:
push   %rbx
mov    %edi,%ebx
xor    %eax,%eax
call   1030 <random@plt>
cltd
idiv   %ebx
mov    %edx,%eax
pop    %rbx
ret

LLVM IR (-O0):
define i32 @rand_number(i32 %0) {
%2 = alloca i32
store i32 %0, i32* %2
%3 = call i32 (...) @random()
%4 = load i32, i32* %2
%5 = srem i32 %3, %4
ret i32 %5
}

LLVM IR (-O2):
define i32 @rand_number(i32 %0) {
%2 = tail call i32 (...) @random()
%3 = srem i32 %2, %0
ret i32 %3
}
/* Variables and functions */
int shm_unlink(char *);
int destory_shm_memory(char *shm_name) { return shm_unlink(shm_name); }


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

x86 assembly (clang, -O2):
<destory_shm_memory>:
jmp    1030 <shm_unlink@plt>

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

LLVM IR (-O2):
define i32 @destory_shm_memory(i8* %0) {
%2 = tail call i32 @shm_unlink(i8* %0)
ret i32 %2
}
/* Variables and functions */
int PMPI_Keyval_free(int *);
int MPI_Keyval_free(int *keyval) {
  ;
  return PMPI_Keyval_free(keyval);
}


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

x86 assembly (clang, -O2):
<MPI_Keyval_free>:
jmp    1030 <PMPI_Keyval_free@plt>

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

LLVM IR (-O2):
define i32 @MPI_Keyval_free(i32* %0) {
%2 = tail call i32 @PMPI_Keyval_free(i32* %0)
ret i32 %2
}
int mycompare(const void *a, const void *b) {
  int i = ((int *)a)[1];
  int j = ((int *)b)[1];
  return (i < j) ? 1 : (j < i) ? -1 : 0;
}


x86 assembly (clang, -O0):
<mycompare>:
push   %rbp
mov    %rsp,%rbp
mov    %rdi,-0x8(%rbp)
mov    %rsi,-0x10(%rbp)
mov    -0x8(%rbp),%rax
mov    0x4(%rax),%eax
mov    %eax,-0x14(%rbp)
mov    -0x10(%rbp),%rax
mov    0x4(%rax),%eax
mov    %eax,-0x18(%rbp)
mov    -0x14(%rbp),%eax
cmp    -0x18(%rbp),%eax
jge    1139 <mycompare+0x39>
mov    $0x1,%eax
mov    %eax,-0x1c(%rbp)
jmp    114e <mycompare+0x4e>
mov    -0x18(%rbp),%edx
mov    -0x14(%rbp),%esi
xor    %eax,%eax
mov    $0xffffffff,%ecx
cmp    %esi,%edx
cmovl  %ecx,%eax
mov    %eax,-0x1c(%rbp)
mov    -0x1c(%rbp),%eax
pop    %rbp
ret

x86 assembly (clang, -O2):
<mycompare>:
mov    0x4(%rdi),%eax
mov    0x4(%rsi),%ecx
xor    %edx,%edx
cmp    %eax,%ecx
setl   %dl
neg    %edx
cmp    %ecx,%eax
mov    $0x1,%eax
cmovge %edx,%eax
ret

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

LLVM IR (-O2):
define i32 @mycompare(i8* nocapture %0, i8* nocapture %1) {
%3 = getelementptr inbounds i8, i8* %0, i64 4
%4 = bitcast i8* %3 to i32*
%5 = load i32, i32* %4
%6 = getelementptr inbounds i8, i8* %1, i64 4
%7 = bitcast i8* %6 to i32*
%8 = load i32, i32* %7
%9 = icmp slt i32 %5, %8
%10 = icmp slt i32 %8, %5
%11 = sext i1 %10 to i32
%12 = select i1 %9, i32 1, i32 %11
ret i32 %12
}
/* Type definitions */
typedef int uint64_t;

/* Variables and functions */
double pow2_u64(int);
double from_msr_tu_default(uint64_t msrval) {
  return 1.0 / pow2_u64((msrval >> 16) & 0xF);
}


x86 assembly (clang, -O0):
<from_msr_tu_default>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
mov    %edi,-0x4(%rbp)
mov    -0x4(%rbp),%edi
sar    $0x10,%edi
and    $0xf,%edi
call   1030 <pow2_u64@plt>
movaps %xmm0,%xmm1
movsd  0xecc(%rip),%xmm0
divsd  %xmm1,%xmm0
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<from_msr_tu_default>:
push   %rax
shr    $0x10,%edi
and    $0xf,%edi
call   1030 <pow2_u64@plt>
movsd  0xedc(%rip),%xmm1
divsd  %xmm0,%xmm1
movapd %xmm1,%xmm0
pop    %rax
ret

LLVM IR (-O0):
define double @from_msr_tu_default(i32 %0) {
%2 = alloca i32
store i32 %0, i32* %2
%3 = load i32, i32* %2
%4 = ashr i32 %3, 16
%5 = and i32 %4, 15
%6 = call double @pow2_u64(i32 %5)
%7 = fdiv double 1.000000e+00, %6
ret double %7
}

LLVM IR (-O2):
define double @from_msr_tu_default(i32 %0) {
%2 = lshr i32 %0, 16
%3 = and i32 %2, 15
%4 = tail call double @pow2_u64(i32 %3)
%5 = fdiv double 1.000000e+00, %4
ret double %5
}
/* Variables and functions */
int /*<<< orphan*/ printf(char *, double, float, double, double);
int main() {
  double a = 34.567839023;
  float b = 12.345f;
  double c = 8923.1234857;
  double d = 3456.091;
  printf("%lf, %f, %lf, %lf\n", a, b, c, d);
  return 0;
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x30,%rsp
movl   $0x0,-0x4(%rbp)
movsd  0xee9(%rip),%xmm0
movsd  %xmm0,-0x10(%rbp)
movss  0xee4(%rip),%xmm0
movss  %xmm0,-0x14(%rbp)
movsd  0xec7(%rip),%xmm0
movsd  %xmm0,-0x20(%rbp)
movsd  0xeb2(%rip),%xmm0
movsd  %xmm0,-0x28(%rbp)
movsd  -0x10(%rbp),%xmm0
movss  -0x14(%rbp),%xmm1
movsd  -0x20(%rbp),%xmm2
movsd  -0x28(%rbp),%xmm3
lea    0xeae(%rip),%rdi
call   1030 <printf@plt>
xor    %eax,%eax
add    $0x30,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %rax
lea    0xf04(%rip),%rdi
movsd  0xee0(%rip),%xmm0
movss  0xef0(%rip),%xmm1
movsd  0xed8(%rip),%xmm2
movsd  0xed8(%rip),%xmm3
call   1030 <printf@plt>
xor    %eax,%eax
pop    %rcx
ret

LLVM IR (-O0):
@.str = [19 x i8] c"%lf, %f, %lf, %lf\0A\00"
define i32 @main() {
%1 = alloca i32
%2 = alloca double
%3 = alloca float
%4 = alloca double
%5 = alloca double
store i32 0, i32* %1
store double 0x404148AEF2F896BB, double* %2
store float 0x4028B0A3E0000000, float* %3
store double 0x40C16D8FCE612183, double* %4
store double 0x40AB002E978D4FDF, double* %5
%6 = load double, double* %2
%7 = load float, float* %3
%8 = load double, double* %4
%9 = load double, double* %5
%10 = call i32 @printf(i8* getelementptr inbounds ([19 x i8], [19 x i8]* @.str, i64 0, i64 0), double %6, float %7, double %8, double %9)
ret i32 0
}

LLVM IR (-O2):
@.str = [19 x i8] c"%lf, %f, %lf, %lf\0A\00"
define i32 @main() {
%1 = tail call i32 @printf(i8* getelementptr inbounds ([19 x i8], [19 x i8]* @.str, i64 0, i64 0), double 0x404148AEF2F896BB, float 0x4028B0A3E0000000, double 0x40C16D8FCE612183, double 0x40AB002E978D4FDF)
ret i32 0
}
/* Type definitions */
typedef int /*<<< orphan*/ fenv_t;

/* Variables and functions */
int /*<<< orphan*/ ENOSYS;
int /*<<< orphan*/ const *FE_DFL_ENV;
int /*<<< orphan*/ __set_errno(int /*<<< orphan*/);
const fenv_t *__fe_mask_env(void) {
  __set_errno(ENOSYS);
  return FE_DFL_ENV;
}


x86 assembly (clang, -O0):
<__fe_mask_env>:
push   %rbp
mov    %rsp,%rbp
mov    0x2ecd(%rip),%rax
mov    (%rax),%edi
call   1030 <__set_errno@plt>
mov    0x2eb7(%rip),%rax
mov    (%rax),%rax
pop    %rbp
ret

x86 assembly (clang, -O2):
<__fe_mask_env>:
push   %rax
mov    0x2ed0(%rip),%rax
mov    (%rax),%edi
call   1030 <__set_errno@plt>
mov    0x2eba(%rip),%rax
mov    (%rax),%rax
pop    %rcx
ret

LLVM IR (-O0):
@ENOSYS = global i32 0
@FE_DFL_ENV = global i32* null
define i32* @__fe_mask_env() {
%1 = load i32, i32* @ENOSYS
%2 = call i32 @__set_errno(i32 %1)
%3 = load i32*, i32** @FE_DFL_ENV
ret i32* %3
}

LLVM IR (-O2):
@ENOSYS = global i32 0
@FE_DFL_ENV = global i32* null
define i32* @__fe_mask_env() {
%1 = load i32, i32* @ENOSYS
%2 = tail call i32 @__set_errno(i32 %1)
%3 = load i32*, i32** @FE_DFL_ENV
ret i32* %3
}
void TIM6_IRQHandler(void) {}


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

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

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

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


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

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

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

LLVM IR (-O2):
define void @RTAvloHCPhysRemove() {
ret void
}
/* Type definitions */
typedef float GLfloat;

/* Variables and functions */
int /*<<< orphan*/ GL_AMBIENT_AND_DIFFUSE;
int /*<<< orphan*/ GL_FRONT_AND_BACK;
int /*<<< orphan*/ GL_LIGHTING;
int /*<<< orphan*/ glEnable(int /*<<< orphan*/);
int /*<<< orphan*/ glMaterialfv(int /*<<< orphan*/, int /*<<< orphan*/,
                                float const *);
int /*<<< orphan*/ glutSolidCube(double);
void DrawObject0(void) {
  static const GLfloat green[4] = {0.0F, 1.0F, 0.0F, 1.0F};
  glMaterialfv(GL_FRONT_AND_BACK, GL_AMBIENT_AND_DIFFUSE, green);
  glEnable(GL_LIGHTING);
  glutSolidCube(2.0);
}


x86 assembly (clang, -O0):
<DrawObject0>:
push   %rbp
mov    %rsp,%rbp
mov    0x2ead(%rip),%rax
mov    (%rax),%edi
mov    0x2e94(%rip),%rax
mov    (%rax),%esi
lea    0xec3(%rip),%rdx
call   1050 <glMaterialfv@plt>
mov    0x2e77(%rip),%rax
mov    (%rax),%edi
call   1030 <glEnable@plt>
movsd  0xe98(%rip),%xmm0
call   1040 <glutSolidCube@plt>
pop    %rbp
ret

x86 assembly (clang, -O2):
<DrawObject0>:
push   %rax
mov    0x2eb0(%rip),%rax
mov    (%rax),%edi
mov    0x2e97(%rip),%rax
mov    (%rax),%esi
lea    0xec6(%rip),%rdx
call   1050 <glMaterialfv@plt>
mov    0x2e7a(%rip),%rax
mov    (%rax),%edi
call   1030 <glEnable@plt>
movsd  0xe9b(%rip),%xmm0
pop    %rax
jmp    1040 <glutSolidCube@plt>

LLVM IR (-O0):
@DrawObject0.green = internal constant [4 x float] [float 0.000000e+00, float 1.000000e+00, float 0.000000e+00, float 1.000000e+00]
@GL_FRONT_AND_BACK = global i32 0
@GL_AMBIENT_AND_DIFFUSE = global i32 0
@GL_LIGHTING = global i32 0
define void @DrawObject0() {
%1 = load i32, i32* @GL_FRONT_AND_BACK
%2 = load i32, i32* @GL_AMBIENT_AND_DIFFUSE
%3 = call i32 @glMaterialfv(i32 %1, i32 %2, float* getelementptr inbounds ([4 x float], [4 x float]* @DrawObject0.green, i64 0, i64 0))
%4 = load i32, i32* @GL_LIGHTING
%5 = call i32 @glEnable(i32 %4)
%6 = call i32 @glutSolidCube(double 2.000000e+00)
ret void
}

LLVM IR (-O2):
@DrawObject0.green = internal constant [4 x float] [float 0.000000e+00, float 1.000000e+00, float 0.000000e+00, float 1.000000e+00]
@GL_FRONT_AND_BACK = global i32 0
@GL_AMBIENT_AND_DIFFUSE = global i32 0
@GL_LIGHTING = global i32 0
define void @DrawObject0() {
%1 = load i32, i32* @GL_FRONT_AND_BACK
%2 = load i32, i32* @GL_AMBIENT_AND_DIFFUSE
%3 = tail call i32 @glMaterialfv(i32 %1, i32 %2, float* getelementptr inbounds ([4 x float], [4 x float]* @DrawObject0.green, i64 0, i64 0))
%4 = load i32, i32* @GL_LIGHTING
%5 = tail call i32 @glEnable(i32 %4)
%6 = tail call i32 @glutSolidCube(double 2.000000e+00)
ret void
}
/* Variables and functions */
int /*<<< orphan*/ SIGCHLD;
int /*<<< orphan*/ SIG_IGN;
int /*<<< orphan*/ exit(int /*<<< orphan*/);
int /*<<< orphan*/ instance_destroy();
int /*<<< orphan*/ signal(int /*<<< orphan*/, int /*<<< orphan*/);
sig_exit(int sig) {
  signal(SIGCHLD, SIG_IGN);
  instance_destroy();
  exit(0);
}


x86 assembly (clang, -O0):
<sig_exit>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
mov    %edi,-0x4(%rbp)
mov    0x2ea6(%rip),%rax
mov    (%rax),%edi
mov    0x2e95(%rip),%rax
mov    (%rax),%esi
call   1030 <signal@plt>
mov    $0x0,%al
call   1040 <instance_destroy@plt>
xor    %edi,%edi
call   1050 <exit@plt>

x86 assembly (clang, -O2):
<sig_exit>:
push   %rax
mov    0x2eb0(%rip),%rax
mov    (%rax),%edi
mov    0x2e9f(%rip),%rax
mov    (%rax),%esi
call   1030 <signal@plt>
xor    %eax,%eax
call   1040 <instance_destroy@plt>
xor    %edi,%edi
call   1050 <exit@plt>

LLVM IR (-O0):
@SIGCHLD = global i32 0
@SIG_IGN = global i32 0
define i32 @sig_exit(i32 %0) {
%2 = alloca i32
store i32 %0, i32* %2
%3 = load i32, i32* @SIGCHLD
%4 = load i32, i32* @SIG_IGN
%5 = call i32 @signal(i32 %3, i32 %4)
%6 = call i32 (...) @instance_destroy()
%7 = call i32 @exit(i32 0)
unreachable
}

LLVM IR (-O2):
@SIGCHLD = global i32 0
@SIG_IGN = global i32 0
define i32 @sig_exit(i32 %0) {
%2 = load i32, i32* @SIGCHLD
%3 = load i32, i32* @SIG_IGN
%4 = tail call i32 @signal(i32 %2, i32 %3)
%5 = tail call i32 (...) @instance_destroy()
%6 = tail call i32 @exit(i32 0)
unreachable
}
/* Variables and functions */
int /*<<< orphan*/ printf(char *);
int /*<<< orphan*/ scanf(char *, int *);
int i_areas() {
  int areas = 0;
  printf("Enter the number of independent area: ");
  scanf("%d", &areas);
  return areas;
}


x86 assembly (clang, -O0):
<i_areas>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
movl   $0x0,-0x4(%rbp)
lea    0xeca(%rip),%rdi
call   1030 <printf@plt>
lea    0xee5(%rip),%rdi
lea    -0x4(%rbp),%rsi
call   1040 <scanf@plt>
mov    -0x4(%rbp),%eax
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<i_areas>:
push   %rax
movl   $0x0,0x4(%rsp)
lea    0xed0(%rip),%rdi
call   1030 <printf@plt>
lea    0xeeb(%rip),%rdi
lea    0x4(%rsp),%rsi
call   1040 <scanf@plt>
mov    0x4(%rsp),%eax
pop    %rcx
ret

LLVM IR (-O0):
@.str = [39 x i8] c"Enter the number of independent area: \00"
@.str.1 = [3 x i8] c"%d\00"
define i32 @i_areas() {
%1 = alloca i32
store i32 0, i32* %1
%2 = call i32 @printf(i8* getelementptr inbounds ([39 x i8], [39 x i8]* @.str, i64 0, i64 0))
%3 = call i32 @scanf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.1, i64 0, i64 0), i32* %1)
%4 = load i32, i32* %1
ret i32 %4
}

LLVM IR (-O2):
@.str = [39 x i8] c"Enter the number of independent area: \00"
@.str.1 = [3 x i8] c"%d\00"
define i32 @i_areas() {
%1 = alloca i32
%2 = bitcast i32* %1 to i8*
store i32 0, i32* %1
%3 = tail call i32 @printf(i8* dereferenceable(1) getelementptr inbounds ([39 x i8], [39 x i8]* @.str, i64 0, i64 0))
%4 = call i32 @scanf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.1, i64 0, i64 0), i32* %1)
%5 = load i32, i32* %1
ret i32 %5
}
void separate(int flstrng[], float *varOne, float *varTwo, float *varThree) {
  *varOne = flstrng[0];
  *varTwo = flstrng[1];
  *varThree = flstrng[2];
}


x86 assembly (clang, -O0):
<separate>:
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
cvtsi2ssl (%rax),%xmm0
mov    -0x10(%rbp),%rax
movss  %xmm0,(%rax)
mov    -0x8(%rbp),%rax
cvtsi2ssl 0x4(%rax),%xmm0
mov    -0x18(%rbp),%rax
movss  %xmm0,(%rax)
mov    -0x8(%rbp),%rax
cvtsi2ssl 0x8(%rax),%xmm0
mov    -0x20(%rbp),%rax
movss  %xmm0,(%rax)
pop    %rbp
ret

x86 assembly (clang, -O2):
<separate>:
cvtsi2ssl (%rdi),%xmm0
movss  %xmm0,(%rsi)
xorps  %xmm0,%xmm0
cvtsi2ssl 0x4(%rdi),%xmm0
movss  %xmm0,(%rdx)
xorps  %xmm0,%xmm0
cvtsi2ssl 0x8(%rdi),%xmm0
movss  %xmm0,(%rcx)
ret

LLVM IR (-O0):
define void @separate(i32* %0, float* %1, float* %2, float* %3) {
%5 = alloca i32*
%6 = alloca float*
%7 = alloca float*
%8 = alloca float*
store i32* %0, i32** %5
store float* %1, float** %6
store float* %2, float** %7
store float* %3, float** %8
%9 = load i32*, i32** %5
%10 = getelementptr inbounds i32, i32* %9, i64 0
%11 = load i32, i32* %10
%12 = sitofp i32 %11 to float
%13 = load float*, float** %6
store float %12, float* %13
%14 = load i32*, i32** %5
%15 = getelementptr inbounds i32, i32* %14, i64 1
%16 = load i32, i32* %15
%17 = sitofp i32 %16 to float
%18 = load float*, float** %7
store float %17, float* %18
%19 = load i32*, i32** %5
%20 = getelementptr inbounds i32, i32* %19, i64 2
%21 = load i32, i32* %20
%22 = sitofp i32 %21 to float
%23 = load float*, float** %8
store float %22, float* %23
ret void
}

LLVM IR (-O2):
define void @separate(i32* nocapture %0, float* nocapture writeonly %1, float* nocapture writeonly %2, float* nocapture writeonly %3) {
%5 = load i32, i32* %0
%6 = sitofp i32 %5 to float
store float %6, float* %1
%7 = getelementptr inbounds i32, i32* %0, i64 1
%8 = load i32, i32* %7
%9 = sitofp i32 %8 to float
store float %9, float* %2
%10 = getelementptr inbounds i32, i32* %0, i64 2
%11 = load i32, i32* %10
%12 = sitofp i32 %11 to float
store float %12, float* %3
ret void
}
char *strend(s)
char *s;
{ return (*s ? (s + strlen(s) - 1) : s); }


x86 assembly (clang, -O0):
<strend>:
push   %rbp
mov    %rsp,%rbp
sub    $0x20,%rsp
mov    %rdi,-0x8(%rbp)
mov    -0x8(%rbp),%rax
movsbl (%rax),%eax
cmp    $0x0,%eax
je     1154 <strend+0x44>
mov    -0x8(%rbp),%rax
mov    %rax,-0x18(%rbp)
mov    -0x8(%rbp),%rdi
call   1030 <strlen@plt>
mov    %rax,%rcx
mov    -0x18(%rbp),%rax
add    %rcx,%rax
add    $0xffffffffffffffff,%rax
mov    %rax,-0x10(%rbp)
jmp    115c <strend+0x4c>
mov    -0x8(%rbp),%rax
mov    %rax,-0x10(%rbp)
mov    -0x10(%rbp),%rax
add    $0x20,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<strend>:
push   %rbx
mov    %rdi,%rbx
cmpb   $0x0,(%rdi)
je     1128 <strend+0x18>
mov    %rbx,%rdi
call   1030 <strlen@plt>
add    %rax,%rbx
add    $0xffffffffffffffff,%rbx
mov    %rbx,%rax
pop    %rbx
ret

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

LLVM IR (-O2):
define i8* @strend(i8* %0) {
%2 = load i8, i8* %0
%3 = icmp eq i8 %2, 0
br i1 %3, label %8, label %4
4: ; preds = %1
%5 = tail call i64 @strlen(i8* %0)
%6 = getelementptr inbounds i8, i8* %0, i64 %5
%7 = getelementptr inbounds i8, i8* %6, i64 -1
br label %8
8: ; preds = %1, %4
%9 = phi i8* [ %7, %4 ], [ %0, %1 ]
ret i8* %9
}
int f7(v)
int v;
{ return 0; }


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

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

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

LLVM IR (-O2):
define i32 @f7(i32 %0) {
ret i32 0
}
void av_fifo_generic_read() {}


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

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

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

LLVM IR (-O2):
define void @av_fifo_generic_read() {
ret void
}
/* Variables and functions */
int /*<<< orphan*/ strcat(char *, char *);
int /*<<< orphan*/ strcpy(char *, char *);
int /*<<< orphan*/ strip_extension(char *);
char *new_ext(char *file, char *ext) {
  static char fname[80];
  strcpy(fname, file);
  strip_extension(fname);
  strcat(fname, ".");
  strcat(fname, ext);
  return fname;
}


x86 assembly (clang, -O0):
<new_ext>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
mov    %rdi,-0x8(%rbp)
mov    %rsi,-0x10(%rbp)
mov    -0x8(%rbp),%rsi
lea    0x2f05(%rip),%rdi
call   1030 <strcpy@plt>
lea    0x2ef9(%rip),%rdi
call   1040 <strip_extension@plt>
lea    0x2eed(%rip),%rdi
lea    0xe96(%rip),%rsi
call   1050 <strcat@plt>
mov    -0x10(%rbp),%rsi
lea    0x2ed6(%rip),%rdi
call   1050 <strcat@plt>
lea    0x2eca(%rip),%rax
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<new_ext>:
push   %r14
push   %rbx
push   %rax
mov    %rsi,%r14
mov    %rdi,%rsi
lea    0x2f0f(%rip),%rbx
mov    %rbx,%rdi
call   1030 <strcpy@plt>
mov    %rbx,%rdi
call   1040 <strip_extension@plt>
lea    0xea8(%rip),%rsi
mov    %rbx,%rdi
call   1050 <strcat@plt>
mov    %rbx,%rdi
mov    %r14,%rsi
call   1050 <strcat@plt>
mov    %rbx,%rax
add    $0x8,%rsp
pop    %rbx
pop    %r14
ret

LLVM IR (-O0):
@new_ext.fname = internal global [80 x i8] zeroinitializer
@.str = [2 x i8] c".\00"
define i8* @new_ext(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 i32 @strcpy(i8* getelementptr inbounds ([80 x i8], [80 x i8]* @new_ext.fname, i64 0, i64 0), i8* %5)
%7 = call i32 @strip_extension(i8* getelementptr inbounds ([80 x i8], [80 x i8]* @new_ext.fname, i64 0, i64 0))
%8 = call i32 @strcat(i8* getelementptr inbounds ([80 x i8], [80 x i8]* @new_ext.fname, i64 0, i64 0), i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str, i64 0, i64 0))
%9 = load i8*, i8** %4
%10 = call i32 @strcat(i8* getelementptr inbounds ([80 x i8], [80 x i8]* @new_ext.fname, i64 0, i64 0), i8* %9)
ret i8* getelementptr inbounds ([80 x i8], [80 x i8]* @new_ext.fname, i64 0, i64 0)
}

LLVM IR (-O2):
@new_ext.fname = internal global [80 x i8] zeroinitializer
@.str = [2 x i8] c".\00"
define i8* @new_ext(i8* %0, i8* %1) {
%3 = tail call i32 @strcpy(i8* getelementptr inbounds ([80 x i8], [80 x i8]* @new_ext.fname, i64 0, i64 0), i8* %0)
%4 = tail call i32 @strip_extension(i8* getelementptr inbounds ([80 x i8], [80 x i8]* @new_ext.fname, i64 0, i64 0))
%5 = tail call i32 @strcat(i8* getelementptr inbounds ([80 x i8], [80 x i8]* @new_ext.fname, i64 0, i64 0), i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str, i64 0, i64 0))
%6 = tail call i32 @strcat(i8* getelementptr inbounds ([80 x i8], [80 x i8]* @new_ext.fname, i64 0, i64 0), i8* %1)
ret i8* getelementptr inbounds ([80 x i8], [80 x i8]* @new_ext.fname, i64 0, i64 0)
}