xunge/DecIR huggingface dataset:
int main() {
  int a = 1;
  int b = 2;
  {
    int temp = a;
    a = b;
    b = temp;
  };
  {
    a = a + b;
    b = a - b;
    a = a - b;
  };
  {
    a = a ^ b;
    b = a ^ b;
    a = a ^ b;
  };
  return 0;
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
movl   $0x0,-0x4(%rbp)
movl   $0x1,-0x8(%rbp)
movl   $0x2,-0xc(%rbp)
mov    -0x8(%rbp),%eax
mov    %eax,-0x10(%rbp)
mov    -0xc(%rbp),%eax
mov    %eax,-0x8(%rbp)
mov    -0x10(%rbp),%eax
mov    %eax,-0xc(%rbp)
mov    -0x8(%rbp),%eax
add    -0xc(%rbp),%eax
mov    %eax,-0x8(%rbp)
mov    -0x8(%rbp),%eax
sub    -0xc(%rbp),%eax
mov    %eax,-0xc(%rbp)
mov    -0x8(%rbp),%eax
sub    -0xc(%rbp),%eax
mov    %eax,-0x8(%rbp)
mov    -0x8(%rbp),%eax
xor    -0xc(%rbp),%eax
mov    %eax,-0x8(%rbp)
mov    -0x8(%rbp),%eax
xor    -0xc(%rbp),%eax
mov    %eax,-0xc(%rbp)
mov    -0x8(%rbp),%eax
xor    -0xc(%rbp),%eax
mov    %eax,-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
%3 = alloca i32
%4 = alloca i32
store i32 0, i32* %1
store i32 1, i32* %2
store i32 2, i32* %3
%5 = load i32, i32* %2
store i32 %5, i32* %4
%6 = load i32, i32* %3
store i32 %6, i32* %2
%7 = load i32, i32* %4
store i32 %7, i32* %3
%8 = load i32, i32* %2
%9 = load i32, i32* %3
%10 = add nsw i32 %8, %9
store i32 %10, i32* %2
%11 = load i32, i32* %2
%12 = load i32, i32* %3
%13 = sub nsw i32 %11, %12
store i32 %13, i32* %3
%14 = load i32, i32* %2
%15 = load i32, i32* %3
%16 = sub nsw i32 %14, %15
store i32 %16, i32* %2
%17 = load i32, i32* %2
%18 = load i32, i32* %3
%19 = xor i32 %17, %18
store i32 %19, i32* %2
%20 = load i32, i32* %2
%21 = load i32, i32* %3
%22 = xor i32 %20, %21
store i32 %22, i32* %3
%23 = load i32, i32* %2
%24 = load i32, i32* %3
%25 = xor i32 %23, %24
store i32 %25, i32* %2
ret i32 0
}

LLVM IR (-O2):
define i32 @main() {
ret i32 0
}
/* Variables and functions */
int /*<<< orphan*/ U_WMRNOTIMPLEMENTED_swap(char *, int);
void U_WMR73_swap(char *record, int torev) {
  U_WMRNOTIMPLEMENTED_swap(record, torev);
}


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

x86 assembly (clang, -O2):
<U_WMR73_swap>:
jmp    1030 <U_WMRNOTIMPLEMENTED_swap@plt>

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

LLVM IR (-O2):
define void @U_WMR73_swap(i8* %0, i32 %1) {
%3 = tail call i32 @U_WMRNOTIMPLEMENTED_swap(i8* %0, i32 %1)
ret void
}
/* Variables and functions */
int /*<<< orphan*/ byte_reverse_short(short *);
void sbrev_(short int *inum) { byte_reverse_short(inum); }


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

x86 assembly (clang, -O2):
<sbrev_>:
jmp    1030 <byte_reverse_short@plt>

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

LLVM IR (-O2):
define void @sbrev_(i16* %0) {
%2 = tail call i32 @byte_reverse_short(i16* %0)
ret void
}
/* Variables and functions */
void glmCopy3f(float vDest[3], const float vSource[3]) {
  for (size_t i = 0; i < 3; ++i)
    vDest[i] = vSource[i];
}


x86 assembly (clang, -O0):
<glmCopy3f>:
push   %rbp
mov    %rsp,%rbp
mov    %rdi,-0x8(%rbp)
mov    %rsi,-0x10(%rbp)
movq   $0x0,-0x18(%rbp)
cmpq   $0x3,-0x18(%rbp)
jae    114a <glmCopy3f+0x4a>
mov    -0x10(%rbp),%rax
mov    -0x18(%rbp),%rcx
movss  (%rax,%rcx,4),%xmm0
mov    -0x8(%rbp),%rax
mov    -0x18(%rbp),%rcx
movss  %xmm0,(%rax,%rcx,4)
mov    -0x18(%rbp),%rax
add    $0x1,%rax
mov    %rax,-0x18(%rbp)
jmp    1114 <glmCopy3f+0x14>
pop    %rbp
ret

x86 assembly (clang, -O2):
<glmCopy3f>:
movss  (%rsi),%xmm0
movss  %xmm0,(%rdi)
movss  0x4(%rsi),%xmm0
movss  %xmm0,0x4(%rdi)
movss  0x8(%rsi),%xmm0
movss  %xmm0,0x8(%rdi)
ret

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

LLVM IR (-O2):
define void @glmCopy3f(float* nocapture writeonly %0, float* nocapture %1) {
%3 = load float, float* %1
store float %3, float* %0
%4 = getelementptr inbounds float, float* %1, i64 1
%5 = load float, float* %4
%6 = getelementptr inbounds float, float* %0, i64 1
store float %5, float* %6
%7 = getelementptr inbounds float, float* %1, i64 2
%8 = load float, float* %7
%9 = getelementptr inbounds float, float* %0, i64 2
store float %8, float* %9
ret void
}
/* Type definitions */
typedef int /*<<< orphan*/ FILE;

/* Variables and functions */
int /*<<< orphan*/ BUFSIZ;
int /*<<< orphan*/ _IOFBF;
int /*<<< orphan*/ _IONBF;
int /*<<< orphan*/ setvbuf(int /*<<< orphan*/ *, char *, int /*<<< orphan*/,
                           int /*<<< orphan*/);
void setbuf(FILE *stream, char *buffer) {
  setvbuf(stream, buffer, buffer ? _IOFBF : _IONBF, buffer ? BUFSIZ : 0);
}


x86 assembly (clang, -O0):
<setbuf>:
push   %rbp
mov    %rsp,%rbp
sub    $0x30,%rsp
mov    %rdi,-0x8(%rbp)
mov    %rsi,-0x10(%rbp)
mov    -0x8(%rbp),%rax
mov    %rax,-0x20(%rbp)
mov    -0x10(%rbp),%rax
mov    %rax,-0x18(%rbp)
cmpq   $0x0,-0x10(%rbp)
je     114c <setbuf+0x3c>
mov    0x2e8e(%rip),%rax
mov    (%rax),%eax
mov    %eax,-0x24(%rbp)
jmp    1158 <setbuf+0x48>
mov    0x2e95(%rip),%rax
mov    (%rax),%eax
mov    %eax,-0x24(%rbp)
mov    -0x24(%rbp),%eax
mov    %eax,-0x28(%rbp)
cmpq   $0x0,-0x10(%rbp)
je     117a <setbuf+0x6a>
mov    0x2e68(%rip),%rax
mov    (%rax),%eax
mov    %eax,-0x2c(%rbp)
jmp    1184 <setbuf+0x74>
xor    %eax,%eax
mov    %eax,-0x2c(%rbp)
jmp    1184 <setbuf+0x74>
mov    -0x28(%rbp),%edx
mov    -0x18(%rbp),%rsi
mov    -0x20(%rbp),%rdi
mov    -0x2c(%rbp),%ecx
call   1030 <setvbuf@plt>
add    $0x30,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<setbuf>:
xor    %ecx,%ecx
test   %rsi,%rsi
mov    0x2eb4(%rip),%rax
cmove  0x2ec4(%rip),%rax
mov    (%rax),%edx
mov    0x2eab(%rip),%rax
cmovne (%rax),%ecx
jmp    1030 <setvbuf@plt>

LLVM IR (-O0):
@_IOFBF = global i32 0
@_IONBF = global i32 0
@BUFSIZ = global i32 0
define void @setbuf(i32* %0, i8* %1) {
%3 = alloca i32*
%4 = alloca i8*
store i32* %0, i32** %3
store i8* %1, i8** %4
%5 = load i32*, i32** %3
%6 = load i8*, i8** %4
%7 = load i8*, i8** %4
%8 = icmp ne i8* %7, null
br i1 %8, label %9, label %11
9: ; preds = %2
%10 = load i32, i32* @_IOFBF
br label %13
11: ; preds = %2
%12 = load i32, i32* @_IONBF
br label %13
13: ; preds = %11, %9
%14 = phi i32 [ %10, %9 ], [ %12, %11 ]
%15 = load i8*, i8** %4
%16 = icmp ne i8* %15, null
br i1 %16, label %17, label %19
17: ; preds = %13
%18 = load i32, i32* @BUFSIZ
br label %20
19: ; preds = %13
br label %20
20: ; preds = %19, %17
%21 = phi i32 [ %18, %17 ], [ 0, %19 ]
%22 = call i32 @setvbuf(i32* %5, i8* %6, i32 %14, i32 %21)
ret void
}

LLVM IR (-O2):
@_IOFBF = global i32 0
@_IONBF = global i32 0
@BUFSIZ = global i32 0
define void @setbuf(i32* nocapture %0, i8* %1) {
%3 = icmp eq i8* %1, null
%4 = load i32, i32* @_IOFBF
%5 = load i32, i32* @_IONBF
%6 = select i1 %3, i32 %5, i32 %4
%7 = load i32, i32* @BUFSIZ
%8 = select i1 %3, i32 0, i32 %7
%9 = tail call i32 @setvbuf(i32* %0, i8* %1, i32 %6, i32 %8)
ret void
}
/* Variables and functions */
int /*<<< orphan*/ as_bomb(char *);
void mm_repo() { as_bomb("mm_repo: Memory statistics are turned off!"); }


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

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

LLVM IR (-O0):
@.str = [43 x i8] c"mm_repo: Memory statistics are turned off!\00"
define void @mm_repo() {
%1 = call i32 @as_bomb(i8* getelementptr inbounds ([43 x i8], [43 x i8]* @.str, i64 0, i64 0))
ret void
}

LLVM IR (-O2):
@.str = [43 x i8] c"mm_repo: Memory statistics are turned off!\00"
define void @mm_repo() {
%1 = tail call i32 @as_bomb(i8* getelementptr inbounds ([43 x i8], [43 x i8]* @.str, i64 0, i64 0))
ret void
}
/* Type definitions */
struct stat {
  int st_size;
};

/* Variables and functions */
int /*<<< orphan*/ stat(char const *, struct stat *);
int get_file_size(const char *filename) {
  struct stat st;
  stat(filename, &st);
  return st.st_size;
}


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

x86 assembly (clang, -O2):
<get_file_size>:
push   %rax
mov    %rsp,%rsi
call   1030 <stat@plt>
mov    (%rsp),%eax
pop    %rcx
ret

LLVM IR (-O0):
%struct.stat = type { i32 }
define i32 @get_file_size(i8* %0) {
%2 = alloca i8*
%3 = alloca %struct.stat
store i8* %0, i8** %2
%4 = load i8*, i8** %2
%5 = call i32 @stat(i8* %4, %struct.stat* %3)
%6 = getelementptr inbounds %struct.stat, %struct.stat* %3, i32 0, i32 0
%7 = load i32, i32* %6
ret i32 %7
}

LLVM IR (-O2):
%struct.stat = type { i32 }
define i32 @get_file_size(i8* nocapture %0) {
%2 = alloca %struct.stat
%3 = bitcast %struct.stat* %2 to i8*
%4 = call i32 @stat(i8* %0, %struct.stat* %2)
%5 = getelementptr inbounds %struct.stat, %struct.stat* %2, i64 0, i32 0
%6 = load i32, i32* %5
ret i32 %6
}
/* Variables and functions */
unsigned int SysPerfTimerConfig(int /*<<< orphan*/);
unsigned int PerfTimerStop(void) { return (SysPerfTimerConfig(0)); }


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

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

LLVM IR (-O0):
define i32 @PerfTimerStop() {
%1 = call i32 @SysPerfTimerConfig(i32 0)
ret i32 %1
}

LLVM IR (-O2):
define i32 @PerfTimerStop() {
%1 = tail call i32 @SysPerfTimerConfig(i32 0)
ret i32 %1
}
/* Type definitions */
typedef int /*<<< orphan*/ uint16_t;

/* Variables and functions */
int /*<<< orphan*/ read_word_data(int, int);
uint16_t io_get_bus_direction() { return read_word_data(0x20, 0x00); }


x86 assembly (clang, -O0):
<io_get_bus_direction>:
push   %rbp
mov    %rsp,%rbp
mov    $0x20,%edi
xor    %esi,%esi
call   1030 <read_word_data@plt>
pop    %rbp
ret

x86 assembly (clang, -O2):
<io_get_bus_direction>:
mov    $0x20,%edi
xor    %esi,%esi
jmp    1030 <read_word_data@plt>

LLVM IR (-O0):
define i32 @io_get_bus_direction() {
%1 = call i32 @read_word_data(i32 32, i32 0)
ret i32 %1
}

LLVM IR (-O2):
define i32 @io_get_bus_direction() {
%1 = tail call i32 @read_word_data(i32 32, i32 0)
ret i32 %1
}
double calculate_threshold(int branch_genome_size, int window_size) {
  return 1 - (0.05 / ((branch_genome_size * 1.0) / ((window_size * 1.0) / 10)));
}


x86 assembly (clang, -O0):
<calculate_threshold>:
push   %rbp
mov    %rsp,%rbp
mov    %edi,-0x4(%rbp)
mov    %esi,-0x8(%rbp)
cvtsi2sdl -0x4(%rbp),%xmm0
movsd  0xee9(%rip),%xmm1
mulsd  %xmm1,%xmm0
cvtsi2sdl -0x8(%rbp),%xmm1
movsd  0xed8(%rip),%xmm2
mulsd  %xmm2,%xmm1
movsd  0xedc(%rip),%xmm2
divsd  %xmm2,%xmm1
divsd  %xmm1,%xmm0
movsd  0xec4(%rip),%xmm1
divsd  %xmm0,%xmm1
movsd  0xeb0(%rip),%xmm0
subsd  %xmm1,%xmm0
pop    %rbp
ret

x86 assembly (clang, -O2):
<calculate_threshold>:
cvtsi2sd %edi,%xmm1
cvtsi2sd %esi,%xmm0
divsd  0xef0(%rip),%xmm0
divsd  %xmm0,%xmm1
movsd  0xeec(%rip),%xmm0
divsd  %xmm1,%xmm0
addsd  0xee8(%rip),%xmm0
ret

LLVM IR (-O0):
define double @calculate_threshold(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 = sitofp i32 %5 to double
%7 = fmul double %6, 1.000000e+00
%8 = load i32, i32* %4
%9 = sitofp i32 %8 to double
%10 = fmul double %9, 1.000000e+00
%11 = fdiv double %10, 1.000000e+01
%12 = fdiv double %7, %11
%13 = fdiv double 5.000000e-02, %12
%14 = fsub double 1.000000e+00, %13
ret double %14
}

LLVM IR (-O2):
define double @calculate_threshold(i32 %0, i32 %1) {
%3 = sitofp i32 %0 to double
%4 = sitofp i32 %1 to double
%5 = fdiv double %4, 1.000000e+01
%6 = fdiv double %3, %5
%7 = fdiv double 5.000000e-02, %6
%8 = fsub double 1.000000e+00, %7
ret double %8
}
/* Type definitions */
typedef scalar_t__ time_t;
struct timeval {
  scalar_t__ tv_usec;
  scalar_t__ tv_sec;
};

/* Variables and functions */
int /*<<< orphan*/ gettimeofday(struct timeval *, int /*<<< orphan*/ *);
double getTimeDiff(time_t tottime) {
  struct timeval timeofday;
  gettimeofday(&timeofday, NULL);
  return (double)tottime - (double)timeofday.tv_sec +
         (double)timeofday.tv_usec * 1e-6;
}


x86 assembly (clang, -O0):
<getTimeDiff>:
push   %rbp
mov    %rsp,%rbp
sub    $0x20,%rsp
mov    %rdi,-0x8(%rbp)
lea    -0x18(%rbp),%rdi
xor    %eax,%eax
mov    %eax,%esi
call   1030 <gettimeofday@plt>
cvtsi2sdq -0x8(%rbp),%xmm1
cvtsi2sdq -0x10(%rbp),%xmm0
subsd  %xmm0,%xmm1
cvtsi2sdq -0x18(%rbp),%xmm0
movsd  0xeb9(%rip),%xmm2
mulsd  %xmm2,%xmm0
addsd  %xmm1,%xmm0
add    $0x20,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<getTimeDiff>:
push   %rbx
sub    $0x10,%rsp
mov    %rdi,%rbx
mov    %rsp,%rdi
xor    %esi,%esi
call   1030 <gettimeofday@plt>
cvtsi2sd %rbx,%xmm1
cvtsi2sdq 0x8(%rsp),%xmm2
cvtsi2sdq (%rsp),%xmm0
subsd  %xmm2,%xmm1
mulsd  0xec0(%rip),%xmm0
addsd  %xmm1,%xmm0
add    $0x10,%rsp
pop    %rbx
ret

LLVM IR (-O0):
%struct.timeval = type { i64, i64 }
define double @getTimeDiff(i64 %0) {
%2 = alloca i64
%3 = alloca %struct.timeval
store i64 %0, i64* %2
%4 = call i32 @gettimeofday(%struct.timeval* %3, i32* null)
%5 = load i64, i64* %2
%6 = sitofp i64 %5 to double
%7 = getelementptr inbounds %struct.timeval, %struct.timeval* %3, i32 0, i32 1
%8 = load i64, i64* %7
%9 = sitofp i64 %8 to double
%10 = fsub double %6, %9
%11 = getelementptr inbounds %struct.timeval, %struct.timeval* %3, i32 0, i32 0
%12 = load i64, i64* %11
%13 = sitofp i64 %12 to double
%14 = call double @llvm.fmuladd.f64(double %13, double 0x3EB0C6F7A0B5ED8D, double %10)
ret double %14
}

LLVM IR (-O2):
%struct.timeval = type { i64, i64 }
define double @getTimeDiff(i64 %0) {
%2 = alloca %struct.timeval
%3 = bitcast %struct.timeval* %2 to i8*
%4 = call i32 @gettimeofday(%struct.timeval* %2, i32* null)
%5 = sitofp i64 %0 to double
%6 = getelementptr inbounds %struct.timeval, %struct.timeval* %2, i64 0, i32 1
%7 = load i64, i64* %6
%8 = sitofp i64 %7 to double
%9 = fsub double %5, %8
%10 = getelementptr inbounds %struct.timeval, %struct.timeval* %2, i64 0, i32 0
%11 = load i64, i64* %10
%12 = sitofp i64 %11 to double
%13 = tail call double @llvm.fmuladd.f64(double %12, double 0x3EB0C6F7A0B5ED8D, double %9)
ret double %13
}
/* Type definitions */
struct msghdr {
  int dummy;
};
typedef scalar_t__ ssize_t;

/* Variables and functions */
int errno;
scalar_t__ sendmsg(int, struct msghdr const *, int);
ssize_t __sulong_posix_sendmsg(int socket, const struct msghdr *message,
                               int flags) {
  {
    int native_errno = errno;
    ssize_t result = sendmsg(socket, message, flags);
    if (result == (ssize_t)-1) {
      result = (ssize_t)(long)-errno;
    }
    errno = native_errno;
    return result;
  };
}


x86 assembly (clang, -O0):
<__sulong_posix_sendmsg>:
push   %rbp
mov    %rsp,%rbp
sub    $0x20,%rsp
mov    %edi,-0x4(%rbp)
mov    %rsi,-0x10(%rbp)
mov    %edx,-0x14(%rbp)
mov    0x2eb7(%rip),%rax
mov    (%rax),%eax
mov    %eax,-0x18(%rbp)
mov    -0x4(%rbp),%edi
mov    -0x10(%rbp),%rsi
mov    -0x14(%rbp),%edx
call   1030 <sendmsg@plt>
mov    %rax,-0x20(%rbp)
cmpq   $0xffffffffffffffff,-0x20(%rbp)
jne    115d <__sulong_posix_sendmsg+0x4d>
xor    %eax,%eax
mov    0x2e8b(%rip),%rcx
sub    (%rcx),%eax
cltq
mov    %rax,-0x20(%rbp)
mov    -0x18(%rbp),%ecx
mov    0x2e79(%rip),%rax
mov    %ecx,(%rax)
mov    -0x20(%rbp),%rax
add    $0x20,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<__sulong_posix_sendmsg>:
push   %rbp
push   %rbx
push   %rax
mov    0x2ec6(%rip),%rbx
mov    (%rbx),%ebp
call   1030 <sendmsg@plt>
movslq (%rbx),%rcx
neg    %rcx
cmp    $0xffffffffffffffff,%rax
cmove  %rcx,%rax
mov    %ebp,(%rbx)
add    $0x8,%rsp
pop    %rbx
pop    %rbp
ret

LLVM IR (-O0):
%struct.msghdr = type { i32 }
@errno = global i32 0
define i64 @__sulong_posix_sendmsg(i32 %0, %struct.msghdr* %1, i32 %2) {
%4 = alloca i32
%5 = alloca %struct.msghdr*
%6 = alloca i32
%7 = alloca i32
%8 = alloca i64
store i32 %0, i32* %4
store %struct.msghdr* %1, %struct.msghdr** %5
store i32 %2, i32* %6
%9 = load i32, i32* @errno
store i32 %9, i32* %7
%10 = load i32, i32* %4
%11 = load %struct.msghdr*, %struct.msghdr** %5
%12 = load i32, i32* %6
%13 = call i64 @sendmsg(i32 %10, %struct.msghdr* %11, i32 %12)
store i64 %13, i64* %8
%14 = load i64, i64* %8
%15 = icmp eq i64 %14, -1
br i1 %15, label %16, label %20
16: ; preds = %3
%17 = load i32, i32* @errno
%18 = sub nsw i32 0, %17
%19 = sext i32 %18 to i64
store i64 %19, i64* %8
br label %20
20: ; preds = %16, %3
%21 = load i32, i32* %7
store i32 %21, i32* @errno
%22 = load i64, i64* %8
ret i64 %22
}

LLVM IR (-O2):
%struct.msghdr = type { i32 }
@errno = global i32 0
define i64 @__sulong_posix_sendmsg(i32 %0, %struct.msghdr* %1, i32 %2) {
%4 = load i32, i32* @errno
%5 = tail call i64 @sendmsg(i32 %0, %struct.msghdr* %1, i32 %2)
%6 = icmp eq i64 %5, -1
%7 = load i32, i32* @errno
%8 = sub nsw i32 0, %7
%9 = sext i32 %8 to i64
%10 = select i1 %6, i64 %9, i64 %5
store i32 %4, i32* @errno
ret i64 %10
}
/* Variables and functions */
int /*<<< orphan*/ printf(char *, char const *, int, char const *);
void printe(const char *msg, const char *func, int line) {
  printf("<%s:%d>\t%s\n", func, line, msg);
}


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

x86 assembly (clang, -O2):
<printe>:
mov    %rdi,%rcx
lea    0xee6(%rip),%rdi
jmp    1030 <printf@plt>

LLVM IR (-O0):
@.str = [12 x i8] c"<%s:%d>\09%s\0A\00"
define void @printe(i8* %0, i8* %1, i32 %2) {
%4 = alloca i8*
%5 = alloca i8*
%6 = alloca i32
store i8* %0, i8** %4
store i8* %1, i8** %5
store i32 %2, i32* %6
%7 = load i8*, i8** %5
%8 = load i32, i32* %6
%9 = load i8*, i8** %4
%10 = call i32 @printf(i8* getelementptr inbounds ([12 x i8], [12 x i8]* @.str, i64 0, i64 0), i8* %7, i32 %8, i8* %9)
ret void
}

LLVM IR (-O2):
@.str = [12 x i8] c"<%s:%d>\09%s\0A\00"
define void @printe(i8* %0, i8* %1, i32 %2) {
%4 = tail call i32 @printf(i8* getelementptr inbounds ([12 x i8], [12 x i8]* @.str, i64 0, i64 0), i8* %1, i32 %2, i8* %0)
ret void
}
/* Variables and functions */
int /*<<< orphan*/ RomCopy();
int /*<<< orphan*/ reset();
int /*<<< orphan*/ tube_log_performance_counters();
int /*<<< orphan*/ tube_reset_performance_counters();
int /*<<< orphan*/ tube_wait_for_rst_release();
void copro_80186_reset() {
  tube_log_performance_counters();
  RomCopy();
  reset();
  tube_wait_for_rst_release();
  tube_reset_performance_counters();
}


x86 assembly (clang, -O0):
<copro_80186_reset>:
push   %rbp
mov    %rsp,%rbp
mov    $0x0,%al
call   1030 <tube_log_performance_counters@plt>
mov    $0x0,%al
call   1040 <RomCopy@plt>
mov    $0x0,%al
call   1060 <reset@plt>
mov    $0x0,%al
call   1070 <tube_wait_for_rst_release@plt>
mov    $0x0,%al
call   1050 <tube_reset_performance_counters@plt>
pop    %rbp
ret

x86 assembly (clang, -O2):
<copro_80186_reset>:
push   %rax
xor    %eax,%eax
call   1030 <tube_log_performance_counters@plt>
xor    %eax,%eax
call   1040 <RomCopy@plt>
xor    %eax,%eax
call   1060 <reset@plt>
xor    %eax,%eax
call   1070 <tube_wait_for_rst_release@plt>
xor    %eax,%eax
pop    %rcx
jmp    1050 <tube_reset_performance_counters@plt>

LLVM IR (-O0):
define void @copro_80186_reset() {
%1 = call i32 (...) @tube_log_performance_counters()
%2 = call i32 (...) @RomCopy()
%3 = call i32 (...) @reset()
%4 = call i32 (...) @tube_wait_for_rst_release()
%5 = call i32 (...) @tube_reset_performance_counters()
ret void
}

LLVM IR (-O2):
define void @copro_80186_reset() {
%1 = tail call i32 (...) @tube_log_performance_counters()
%2 = tail call i32 (...) @RomCopy()
%3 = tail call i32 (...) @reset()
%4 = tail call i32 (...) @tube_wait_for_rst_release()
%5 = tail call i32 (...) @tube_reset_performance_counters()
ret void
}
/* Variables and functions */
int /*<<< orphan*/ dset_(int *, double *, double *, int *);
void wcc_dset_(int *N, char *ALPHA, char *X, int *INCX) {
  dset_(N, (double *)ALPHA, (double *)X, INCX);
}


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

x86 assembly (clang, -O2):
<wcc_dset_>:
jmp    1030 <dset_@plt>

LLVM IR (-O0):
define void @wcc_dset_(i32* %0, i8* %1, i8* %2, i32* %3) {
%5 = alloca i32*
%6 = alloca i8*
%7 = alloca i8*
%8 = alloca i32*
store i32* %0, i32** %5
store i8* %1, i8** %6
store i8* %2, i8** %7
store i32* %3, i32** %8
%9 = load i32*, i32** %5
%10 = load i8*, i8** %6
%11 = bitcast i8* %10 to double*
%12 = load i8*, i8** %7
%13 = bitcast i8* %12 to double*
%14 = load i32*, i32** %8
%15 = call i32 @dset_(i32* %9, double* %11, double* %13, i32* %14)
ret void
}

LLVM IR (-O2):
define void @wcc_dset_(i32* %0, i8* %1, i8* %2, i32* %3) {
%5 = bitcast i8* %1 to double*
%6 = bitcast i8* %2 to double*
%7 = tail call i32 @dset_(i32* %0, double* %5, double* %6, i32* %3)
ret void
}
void dummy_clipping(int clip) { clip = clip; }


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

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

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

LLVM IR (-O2):
define void @dummy_clipping(i32 %0) {
ret void
}
/* Variables and functions */
int /*<<< orphan*/ printf(char *, char *);
void pasc_query(char *name) { printf("ok %s\n", name); }


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

x86 assembly (clang, -O2):
<pasc_query>:
mov    %rdi,%rsi
lea    0xee6(%rip),%rdi
jmp    1030 <printf@plt>

LLVM IR (-O0):
@.str = [7 x i8] c"ok %s\0A\00"
define void @pasc_query(i8* %0) {
%2 = alloca i8*
store i8* %0, i8** %2
%3 = load i8*, i8** %2
%4 = call i32 @printf(i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str, i64 0, i64 0), i8* %3)
ret void
}

LLVM IR (-O2):
@.str = [7 x i8] c"ok %s\0A\00"
define void @pasc_query(i8* %0) {
%2 = tail call i32 @printf(i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str, i64 0, i64 0), i8* %0)
ret void
}
unsigned supereagle_generic_input_fmts() { return (1 << 0) | (1 << 1); }


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

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

LLVM IR (-O0):
define i32 @supereagle_generic_input_fmts() {
ret i32 3
}

LLVM IR (-O2):
define i32 @supereagle_generic_input_fmts() {
ret i32 3
}
void unw_step() {}


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

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

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

LLVM IR (-O2):
define void @unw_step() {
ret void
}
void start_timer(int itime) {}


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

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

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

LLVM IR (-O2):
define void @start_timer(i32 %0) {
ret void
}
float VecDotProd3fv(const float a[3], const float b[3]) {
  return (a[0] * b[0] + a[1] * b[1] + a[2] * b[2]);
}


x86 assembly (clang, -O0):
<VecDotProd3fv>:
push   %rbp
mov    %rsp,%rbp
mov    %rdi,-0x8(%rbp)
mov    %rsi,-0x10(%rbp)
mov    -0x8(%rbp),%rax
movss  (%rax),%xmm1
mov    -0x10(%rbp),%rax
movss  (%rax),%xmm2
mov    -0x8(%rbp),%rax
movss  0x4(%rax),%xmm0
mov    -0x10(%rbp),%rax
mulss  0x4(%rax),%xmm0
mulss  %xmm2,%xmm1
addss  %xmm0,%xmm1
mov    -0x8(%rbp),%rax
movss  0x8(%rax),%xmm0
mov    -0x10(%rbp),%rax
movss  0x8(%rax),%xmm2
mulss  %xmm2,%xmm0
addss  %xmm1,%xmm0
pop    %rbp
ret

x86 assembly (clang, -O2):
<VecDotProd3fv>:
movss  0x4(%rdi),%xmm0
mulss  0x4(%rsi),%xmm0
movss  (%rdi),%xmm1
mulss  (%rsi),%xmm1
addss  %xmm0,%xmm1
movss  0x8(%rdi),%xmm0
mulss  0x8(%rsi),%xmm0
addss  %xmm1,%xmm0
ret

LLVM IR (-O0):
define float @VecDotProd3fv(float* %0, float* %1) {
%3 = alloca float*
%4 = alloca float*
store float* %0, float** %3
store float* %1, float** %4
%5 = load float*, float** %3
%6 = getelementptr inbounds float, float* %5, i64 0
%7 = load float, float* %6
%8 = load float*, float** %4
%9 = getelementptr inbounds float, float* %8, i64 0
%10 = load float, float* %9
%11 = load float*, float** %3
%12 = getelementptr inbounds float, float* %11, i64 1
%13 = load float, float* %12
%14 = load float*, float** %4
%15 = getelementptr inbounds float, float* %14, i64 1
%16 = load float, float* %15
%17 = fmul float %13, %16
%18 = call float @llvm.fmuladd.f32(float %7, float %10, float %17)
%19 = load float*, float** %3
%20 = getelementptr inbounds float, float* %19, i64 2
%21 = load float, float* %20
%22 = load float*, float** %4
%23 = getelementptr inbounds float, float* %22, i64 2
%24 = load float, float* %23
%25 = call float @llvm.fmuladd.f32(float %21, float %24, float %18)
ret float %25
}

LLVM IR (-O2):
define float @VecDotProd3fv(float* nocapture %0, float* nocapture %1) {
%3 = load float, float* %0
%4 = load float, float* %1
%5 = getelementptr inbounds float, float* %0, i64 1
%6 = load float, float* %5
%7 = getelementptr inbounds float, float* %1, i64 1
%8 = load float, float* %7
%9 = fmul float %6, %8
%10 = tail call float @llvm.fmuladd.f32(float %3, float %4, float %9)
%11 = getelementptr inbounds float, float* %0, i64 2
%12 = load float, float* %11
%13 = getelementptr inbounds float, float* %1, i64 2
%14 = load float, float* %13
%15 = tail call float @llvm.fmuladd.f32(float %12, float %14, float %10)
ret float %15
}
int compute_total_credits(int class1_credits, int class2_credits,
                          int class3_credits) {
  int total_credits = 0;
  total_credits = class1_credits + class2_credits + class3_credits;
  return total_credits;
}


x86 assembly (clang, -O0):
<compute_total_credits>:
push   %rbp
mov    %rsp,%rbp
mov    %edi,-0x4(%rbp)
mov    %esi,-0x8(%rbp)
mov    %edx,-0xc(%rbp)
movl   $0x0,-0x10(%rbp)
mov    -0x4(%rbp),%eax
add    -0x8(%rbp),%eax
add    -0xc(%rbp),%eax
mov    %eax,-0x10(%rbp)
mov    -0x10(%rbp),%eax
pop    %rbp
ret

x86 assembly (clang, -O2):
<compute_total_credits>:
lea    (%rdi,%rsi,1),%eax
add    %edx,%eax
ret

LLVM IR (-O0):
define i32 @compute_total_credits(i32 %0, i32 %1, i32 %2) {
%4 = alloca i32
%5 = alloca i32
%6 = alloca i32
%7 = alloca i32
store i32 %0, i32* %4
store i32 %1, i32* %5
store i32 %2, i32* %6
store i32 0, i32* %7
%8 = load i32, i32* %4
%9 = load i32, i32* %5
%10 = add nsw i32 %8, %9
%11 = load i32, i32* %6
%12 = add nsw i32 %10, %11
store i32 %12, i32* %7
%13 = load i32, i32* %7
ret i32 %13
}

LLVM IR (-O2):
define i32 @compute_total_credits(i32 %0, i32 %1, i32 %2) {
%4 = add nsw i32 %1, %0
%5 = add nsw i32 %4, %2
ret i32 %5
}
/* Variables and functions */
int uriUriStringToFilenameA(char const *, char *, int);
int uriUriStringToUnixFilenameA(const char *uriString, char *filename) {
  return uriUriStringToFilenameA(uriString, filename, 1);
}


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

x86 assembly (clang, -O2):
<uriUriStringToUnixFilenameA>:
mov    $0x1,%edx
jmp    1030 <uriUriStringToFilenameA@plt>

LLVM IR (-O0):
define i32 @uriUriStringToUnixFilenameA(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 = load i8*, i8** %4
%7 = call i32 @uriUriStringToFilenameA(i8* %5, i8* %6, i32 1)
ret i32 %7
}

LLVM IR (-O2):
define i32 @uriUriStringToUnixFilenameA(i8* %0, i8* %1) {
%3 = tail call i32 @uriUriStringToFilenameA(i8* %0, i8* %1, i32 1)
ret i32 %3
}
/* Type definitions */
struct packed_buffer {
  int dummy;
};
typedef int /*<<< orphan*/ int32_t;

/* Variables and functions */
int /*<<< orphan*/ packed_buffer_extract_u32(struct packed_buffer *);
double s32tod(int /*<<< orphan*/, int /*<<< orphan*/);
double packed_buffer_extract_ds32(struct packed_buffer *pb, int32_t scale) {
  return s32tod(packed_buffer_extract_u32(pb), scale);
}


x86 assembly (clang, -O0):
<packed_buffer_extract_ds32>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
mov    %rdi,-0x8(%rbp)
mov    %esi,-0xc(%rbp)
mov    -0x8(%rbp),%rdi
call   1030 <packed_buffer_extract_u32@plt>
mov    %eax,%edi
mov    -0xc(%rbp),%esi
call   1040 <s32tod@plt>
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<packed_buffer_extract_ds32>:
push   %rbx
mov    %esi,%ebx
call   1030 <packed_buffer_extract_u32@plt>
mov    %eax,%edi
mov    %ebx,%esi
pop    %rbx
jmp    1040 <s32tod@plt>

LLVM IR (-O0):
%struct.packed_buffer = type { i32 }
define double @packed_buffer_extract_ds32(%struct.packed_buffer* %0, i32 %1) {
%3 = alloca %struct.packed_buffer*
%4 = alloca i32
store %struct.packed_buffer* %0, %struct.packed_buffer** %3
store i32 %1, i32* %4
%5 = load %struct.packed_buffer*, %struct.packed_buffer** %3
%6 = call i32 @packed_buffer_extract_u32(%struct.packed_buffer* %5)
%7 = load i32, i32* %4
%8 = call double @s32tod(i32 %6, i32 %7)
ret double %8
}

LLVM IR (-O2):
%struct.packed_buffer = type { i32 }
define double @packed_buffer_extract_ds32(%struct.packed_buffer* %0, i32 %1) {
%3 = tail call i32 @packed_buffer_extract_u32(%struct.packed_buffer* %0)
%4 = tail call double @s32tod(i32 %3, i32 %1)
ret double %4
}
/* Variables and functions */
int /*<<< orphan*/ bputc(int);
int /*<<< orphan*/ swbytealign();
void WriteSoi() {
  static char RoutineName[] = "WriteSoi";
  swbytealign();
  bputc(0xff);
  bputc(0xd8);
}


x86 assembly (clang, -O0):
<WriteSoi>:
push   %rbp
mov    %rsp,%rbp
mov    $0x0,%al
call   1040 <swbytealign@plt>
mov    $0xff,%edi
call   1030 <bputc@plt>
mov    $0xd8,%edi
call   1030 <bputc@plt>
pop    %rbp
ret

x86 assembly (clang, -O2):
<WriteSoi>:
push   %rax
xor    %eax,%eax
call   1040 <swbytealign@plt>
mov    $0xff,%edi
call   1030 <bputc@plt>
mov    $0xd8,%edi
pop    %rax
jmp    1030 <bputc@plt>

LLVM IR (-O0):
@WriteSoi.RoutineName = internal global [9 x i8] c"WriteSoi\00"
define void @WriteSoi() {
%1 = call i32 (...) @swbytealign()
%2 = call i32 @bputc(i32 255)
%3 = call i32 @bputc(i32 216)
ret void
}

LLVM IR (-O2):
define void @WriteSoi() {
%1 = tail call i32 (...) @swbytealign()
%2 = tail call i32 @bputc(i32 255)
%3 = tail call i32 @bputc(i32 216)
ret void
}
/* Variables and functions */
int /*<<< orphan*/ Assert_real(int, char *, int, char *);
scalar_t__ isxdigit(int);
void t_isxdigit_0x2e() {
  Assert_real((isxdigit(46) == 0),
              "/scratch/repos/new/home/jordi_armengol_estape/c-scraper/outputs/"
              "2022-01-22/02-19-57/repos/bitfixer/bitfixer/refs/heads/master/"
              "dg/z88dk/test/suites/ctype/test_isxdigit.c",
              235, ("isxdigit should be 0 for ."));
}


x86 assembly (clang, -O0):
<t_isxdigit_0x2e>:
push   %rbp
mov    %rsp,%rbp
mov    $0x2e,%edi
call   1030 <isxdigit@plt>
cmp    $0x0,%rax
sete   %al
and    $0x1,%al
movzbl %al,%edi
lea    0xebf(%rip),%rsi
mov    $0xeb,%edx
lea    0xf5c(%rip),%rcx
call   1040 <Assert_real@plt>
pop    %rbp
ret

x86 assembly (clang, -O2):
<t_isxdigit_0x2e>:
push   %rax
mov    $0x2e,%edi
call   1030 <isxdigit@plt>
xor    %edi,%edi
test   %rax,%rax
sete   %dil
lea    0xec5(%rip),%rsi
lea    0xf67(%rip),%rcx
mov    $0xeb,%edx
pop    %rax
jmp    1040 <Assert_real@plt>

LLVM IR (-O0):
@.str = [169 x i8] c"/scratch/repos/new/home/jordi_armengol_estape/c-scraper/outputs/2022-01-22/02-19-57/repos/bitfixer/bitfixer/refs/heads/master/dg/z88dk/test/suites/ctype/test_isxdigit.c\00"
@.str.1 = [27 x i8] c"isxdigit should be 0 for .\00"
define void @t_isxdigit_0x2e() {
%1 = call i64 @isxdigit(i32 46)
%2 = icmp eq i64 %1, 0
%3 = zext i1 %2 to i32
%4 = call i32 @Assert_real(i32 %3, i8* getelementptr inbounds ([169 x i8], [169 x i8]* @.str, i64 0, i64 0), i32 235, i8* getelementptr inbounds ([27 x i8], [27 x i8]* @.str.1, i64 0, i64 0))
ret void
}

LLVM IR (-O2):
@.str = [169 x i8] c"/scratch/repos/new/home/jordi_armengol_estape/c-scraper/outputs/2022-01-22/02-19-57/repos/bitfixer/bitfixer/refs/heads/master/dg/z88dk/test/suites/ctype/test_isxdigit.c\00"
@.str.1 = [27 x i8] c"isxdigit should be 0 for .\00"
define void @t_isxdigit_0x2e() {
%1 = tail call i64 @isxdigit(i32 46)
%2 = icmp eq i64 %1, 0
%3 = zext i1 %2 to i32
%4 = tail call i32 @Assert_real(i32 %3, i8* getelementptr inbounds ([169 x i8], [169 x i8]* @.str, i64 0, i64 0), i32 235, i8* getelementptr inbounds ([27 x i8], [27 x i8]* @.str.1, i64 0, i64 0))
ret void
}
/* Type definitions */
struct fp_context {
  int dummy;
};

/* Variables and functions */
int /*<<< orphan*/ fflush(int /*<<< orphan*/);
int /*<<< orphan*/ printf(char *, ...);
int /*<<< orphan*/ stdout;
void report(struct fp_context *c, size_t n, void *r) {
  if (n == 1) {
    printf(".");
    fflush(stdout);
  } else {
    printf("[%d]", n);
    fflush(stdout);
  }
}


x86 assembly (clang, -O0):
<report>:
push   %rbp
mov    %rsp,%rbp
sub    $0x20,%rsp
mov    %rdi,-0x8(%rbp)
mov    %rsi,-0x10(%rbp)
mov    %rdx,-0x18(%rbp)
cmpq   $0x1,-0x10(%rbp)
jne    1160 <report+0x40>
lea    0xeba(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
mov    0x2e8c(%rip),%rax
mov    (%rax),%edi
call   1040 <fflush@plt>
jmp    1180 <report+0x60>
mov    -0x10(%rbp),%rsi
lea    0xe97(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
mov    0x2e67(%rip),%rax
mov    (%rax),%edi
call   1040 <fflush@plt>
add    $0x20,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<report>:
push   %rax
cmp    $0x1,%rsi
jne    1143 <report+0x13>
mov    $0x2e,%edi
call   1030 <putchar@plt>
jmp    1151 <report+0x21>
lea    0xeb6(%rip),%rdi
xor    %eax,%eax
call   1040 <printf@plt>
mov    0x2e88(%rip),%rax
mov    (%rax),%edi
pop    %rax
jmp    1050 <fflush@plt>

LLVM IR (-O0):
%struct.fp_context = type { i32 }
@.str = [2 x i8] c".\00"
@stdout = global i32 0
@.str.1 = [5 x i8] c"[%d]\00"
define void @report(%struct.fp_context* %0, i64 %1, i8* %2) {
%4 = alloca %struct.fp_context*
%5 = alloca i64
%6 = alloca i8*
store %struct.fp_context* %0, %struct.fp_context** %4
store i64 %1, i64* %5
store i8* %2, i8** %6
%7 = load i64, i64* %5
%8 = icmp eq i64 %7, 1
br i1 %8, label %9, label %13
9: ; preds = %3
%10 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str, i64 0, i64 0))
%11 = load i32, i32* @stdout
%12 = call i32 @fflush(i32 %11)
br label %18
13: ; preds = %3
%14 = load i64, i64* %5
%15 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.1, i64 0, i64 0), i64 %14)
%16 = load i32, i32* @stdout
%17 = call i32 @fflush(i32 %16)
br label %18
18: ; preds = %13, %9
ret void
}

LLVM IR (-O2):
%struct.fp_context = type { i32 }
@stdout = global i32 0
@.str.1 = [5 x i8] c"[%d]\00"
define void @report(%struct.fp_context* nocapture readnone %0, i64 %1, i8* nocapture readnone %2) {
%4 = icmp eq i64 %1, 1
br i1 %4, label %5, label %7
5: ; preds = %3
%6 = tail call i32 @putchar(i32 46)
br label %9
7: ; preds = %3
%8 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([5 x i8], [5 x i8]* @.str.1, i64 0, i64 0), i64 %1)
br label %9
9: ; preds = %7, %5
%10 = load i32, i32* @stdout
%11 = tail call i32 @fflush(i32 %10)
ret void
}
/* Variables and functions */
scalar_t__ increase_insults();
int /*<<< orphan*/ say_comment_5();
int haggle_insults(void) {
  if (increase_insults())
    return (1);
  say_comment_5();
  return (0);
}


x86 assembly (clang, -O0):
<haggle_insults>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
mov    $0x0,%al
call   1030 <increase_insults@plt>
cmp    $0x0,%rax
je     1145 <haggle_insults+0x25>
movl   $0x1,-0x4(%rbp)
jmp    1153 <haggle_insults+0x33>
mov    $0x0,%al
call   1040 <say_comment_5@plt>
movl   $0x0,-0x4(%rbp)
mov    -0x4(%rbp),%eax
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<haggle_insults>:
push   %rax
xor    %eax,%eax
call   1030 <increase_insults@plt>
mov    %rax,%rcx
mov    $0x1,%eax
test   %rcx,%rcx
je     1137 <haggle_insults+0x17>
pop    %rcx
ret
xor    %eax,%eax
call   1040 <say_comment_5@plt>
xor    %eax,%eax
pop    %rcx
ret

LLVM IR (-O0):
define i32 @haggle_insults() {
%1 = alloca i32
%2 = call i64 (...) @increase_insults()
%3 = icmp ne i64 %2, 0
br i1 %3, label %4, label %5
4: ; preds = %0
store i32 1, i32* %1
br label %7
5: ; preds = %0
%6 = call i32 (...) @say_comment_5()
store i32 0, i32* %1
br label %7
7: ; preds = %5, %4
%8 = load i32, i32* %1
ret i32 %8
}

LLVM IR (-O2):
define i32 @haggle_insults() {
%1 = tail call i64 (...) @increase_insults()
%2 = icmp eq i64 %1, 0
br i1 %2, label %3, label %5
3: ; preds = %0
%4 = tail call i32 (...) @say_comment_5()
br label %5
5: ; preds = %0, %3
%6 = phi i32 [ 0, %3 ], [ 1, %0 ]
ret i32 %6
}
double varfcorr(int udre) {
  const double var[14] = {0.052,  0.0924,  0.1444,   0.283,   0.4678,
                          0.8315, 1.2992,  1.8709,   2.5465,  3.326,
                          5.1968, 20.7870, 230.9661, 2078.695};
  return 0 < udre && udre <= 14 ? var[udre - 1] : 0.0;
}


x86 assembly (clang, -O0):
<varfcorr>:
push   %rbp
mov    %rsp,%rbp
sub    $0x90,%rsp
mov    %edi,-0x4(%rbp)
lea    -0x80(%rbp),%rdi
lea    0xed7(%rip),%rsi
mov    $0x70,%edx
call   1030 <memcpy@plt>
xor    %eax,%eax
cmp    -0x4(%rbp),%eax
jge    1163 <varfcorr+0x53>
cmpl   $0xe,-0x4(%rbp)
jg     1163 <varfcorr+0x53>
mov    -0x4(%rbp),%eax
sub    $0x1,%eax
cltq
movsd  -0x80(%rbp,%rax,8),%xmm0
movsd  %xmm0,-0x88(%rbp)
ff
jmp    1173 <varfcorr+0x63>
xorps  %xmm0,%xmm0
movsd  %xmm0,-0x88(%rbp)
ff
jmp    1173 <varfcorr+0x63>
movsd  -0x88(%rbp),%xmm0
ff
add    $0x90,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<varfcorr>:
add    $0xffffffff,%edi
xorps  %xmm0,%xmm0
cmp    $0xd,%edi
ja     1119 <varfcorr+0x19>
mov    %edi,%eax
lea    0xeec(%rip),%rcx
movsd  (%rcx,%rax,8),%xmm0
ret

LLVM IR (-O0):
@__const.varfcorr.var = [14 x double] [double 5.200000e-02, double 0x3FB7A786C226809D, double 1.444000e-01, double 2.830000e-01, double 4.678000e-01, double 8.315000e-01, double 1.299200e+00, double 1.870900e+00, double 2.546500e+00, double 3.326000e+00, double 5.196800e+00, double 2.078700e+01, double 0x406CDEEA4A8C154D, double 0x40A03D63D70A3D71]
define double @varfcorr(i32 %0) {
%2 = alloca i32
%3 = alloca [14 x double]
store i32 %0, i32* %2
%4 = bitcast [14 x double]* %3 to i8*
%5 = load i32, i32* %2
%6 = icmp slt i32 0, %5
br i1 %6, label %7, label %16
7: ; preds = %1
%8 = load i32, i32* %2
%9 = icmp sle i32 %8, 14
br i1 %9, label %10, label %16
10: ; preds = %7
%11 = load i32, i32* %2
%12 = sub nsw i32 %11, 1
%13 = sext i32 %12 to i64
%14 = getelementptr inbounds [14 x double], [14 x double]* %3, i64 0, i64 %13
%15 = load double, double* %14
br label %17
16: ; preds = %7, %1
br label %17
17: ; preds = %16, %10
%18 = phi double [ %15, %10 ], [ 0.000000e+00, %16 ]
ret double %18
}

LLVM IR (-O2):
@__const.varfcorr.var = [14 x double] [double 5.200000e-02, double 0x3FB7A786C226809D, double 1.444000e-01, double 2.830000e-01, double 4.678000e-01, double 8.315000e-01, double 1.299200e+00, double 1.870900e+00, double 2.546500e+00, double 3.326000e+00, double 5.196800e+00, double 2.078700e+01, double 0x406CDEEA4A8C154D, double 0x40A03D63D70A3D71]
define double @varfcorr(i32 %0) {
%2 = add i32 %0, -1
%3 = icmp ult i32 %2, 14
br i1 %3, label %4, label %8
4: ; preds = %1
%5 = zext i32 %2 to i64
%6 = getelementptr inbounds [14 x double], [14 x double]* @__const.varfcorr.var, i64 0, i64 %5
%7 = load double, double* %6
br label %8
8: ; preds = %1, %4
%9 = phi double [ %7, %4 ], [ 0.000000e+00, %1 ]
ret double %9
}
/* Variables and functions */
int make_new_seed();
int make_new_seed_mpi(void) { return make_new_seed(); }


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

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

LLVM IR (-O0):
define i32 @make_new_seed_mpi() {
%1 = call i32 (...) @make_new_seed()
ret i32 %1
}

LLVM IR (-O2):
define i32 @make_new_seed_mpi() {
%1 = tail call i32 (...) @make_new_seed()
ret i32 %1
}
/* Variables and functions */
int /*<<< orphan*/ EX_OSERR;
int /*<<< orphan*/ pfpanic(char *, unsigned short, unsigned short, char const *,
                           char const *, int, int, int /*<<< orphan*/);
void __pfpanic_mutex_lock(unsigned short _syslog, unsigned short _verbose,
                          const char *_function_name, const char *_file_name,
                          int _line_number, int _errno) {
  pfpanic("Unable to lock mutex", _syslog, _verbose, _function_name, _file_name,
          _line_number, _errno, EX_OSERR);
}


x86 assembly (clang, -O0):
<__pfpanic_mutex_lock>:
push   %rbp
mov    %rsp,%rbp
sub    $0x30,%rsp
mov    %si,%ax
mov    %di,%si
mov    %si,-0x2(%rbp)
mov    %ax,-0x4(%rbp)
mov    %rdx,-0x10(%rbp)
mov    %rcx,-0x18(%rbp)
mov    %r8d,-0x1c(%rbp)
mov    %r9d,-0x20(%rbp)
mov    -0x2(%rbp),%si
mov    -0x4(%rbp),%dx
mov    -0x10(%rbp),%rcx
mov    -0x18(%rbp),%r8
mov    -0x1c(%rbp),%r9d
mov    -0x20(%rbp),%r10d
mov    0x2e8b(%rip),%rax
mov    (%rax),%eax
lea    0xea2(%rip),%rdi
movzwl %si,%esi
movzwl %dx,%edx
mov    %r10d,(%rsp)
mov    %eax,0x8(%rsp)
call   1030 <pfpanic@plt>
add    $0x30,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<__pfpanic_mutex_lock>:
push   %rax
mov    %r9d,%r10d
mov    %r8d,%r9d
mov    %rcx,%r8
mov    %rdx,%rcx
mov    %esi,%edx
mov    %edi,%esi
mov    0x2eb8(%rip),%rdi
mov    (%rdi),%eax
lea    0xecf(%rip),%rdi
push   %rax
push   %r10
call   1030 <pfpanic@plt>
add    $0x10,%rsp
pop    %rax
ret

LLVM IR (-O0):
@.str = [21 x i8] c"Unable to lock mutex\00"
@EX_OSERR = global i32 0
define void @__pfpanic_mutex_lock(i16 zeroext %0, i16 zeroext %1, i8* %2, i8* %3, i32 %4, i32 %5) {
%7 = alloca i16
%8 = alloca i16
%9 = alloca i8*
%10 = alloca i8*
%11 = alloca i32
%12 = alloca i32
store i16 %0, i16* %7
store i16 %1, i16* %8
store i8* %2, i8** %9
store i8* %3, i8** %10
store i32 %4, i32* %11
store i32 %5, i32* %12
%13 = load i16, i16* %7
%14 = load i16, i16* %8
%15 = load i8*, i8** %9
%16 = load i8*, i8** %10
%17 = load i32, i32* %11
%18 = load i32, i32* %12
%19 = load i32, i32* @EX_OSERR
%20 = call i32 @pfpanic(i8* getelementptr inbounds ([21 x i8], [21 x i8]* @.str, i64 0, i64 0), i16 zeroext %13, i16 zeroext %14, i8* %15, i8* %16, i32 %17, i32 %18, i32 %19)
ret void
}

LLVM IR (-O2):
@.str = [21 x i8] c"Unable to lock mutex\00"
@EX_OSERR = global i32 0
define void @__pfpanic_mutex_lock(i16 zeroext %0, i16 zeroext %1, i8* %2, i8* %3, i32 %4, i32 %5) {
%7 = load i32, i32* @EX_OSERR
%8 = tail call i32 @pfpanic(i8* getelementptr inbounds ([21 x i8], [21 x i8]* @.str, i64 0, i64 0), i16 zeroext %0, i16 zeroext %1, i8* %2, i8* %3, i32 %4, i32 %5, i32 %7)
ret void
}
void dirty_writeback_centisecs_handler(void) { nsc_assert(0, __func__); }


x86 assembly (clang, -O0):
<dirty_writeback_centisecs_handler>:
push   %rbp
mov    %rsp,%rbp
xor    %edi,%edi
lea    0xee3(%rip),%rsi
mov    $0x0,%al
call   1030 <nsc_assert@plt>
pop    %rbp
ret

x86 assembly (clang, -O2):
<dirty_writeback_centisecs_handler>:
lea    0xee9(%rip),%rsi
xor    %edi,%edi
xor    %eax,%eax
jmp    1030 <nsc_assert@plt>

LLVM IR (-O0):
@__func__.dirty_writeback_centisecs_handler = [34 x i8] c"dirty_writeback_centisecs_handler\00"
define void @dirty_writeback_centisecs_handler() {
%1 = call i32 (i32, i8*, ...) bitcast (i32 (...)* @nsc_assert to i32 (i32, i8*, ...)*)(i32 0, i8* getelementptr inbounds ([34 x i8], [34 x i8]* @__func__.dirty_writeback_centisecs_handler, i64 0, i64 0))
ret void
}

LLVM IR (-O2):
@__func__.dirty_writeback_centisecs_handler = [34 x i8] c"dirty_writeback_centisecs_handler\00"
define void @dirty_writeback_centisecs_handler() {
%1 = tail call i32 (i32, i8*, ...) bitcast (i32 (...)* @nsc_assert to i32 (i32, i8*, ...)*)(i32 0, i8* getelementptr inbounds ([34 x i8], [34 x i8]* @__func__.dirty_writeback_centisecs_handler, i64 0, i64 0))
ret void
}
/* Variables and functions */
int /*<<< orphan*/ do_abort(int);
void __attribute__((noreturn)) test_abort(int code) { do_abort(code); }


x86 assembly (clang, -O0):
<test_abort>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
mov    %edi,-0x4(%rbp)
mov    -0x4(%rbp),%edi
call   1030 <do_abort@plt>

x86 assembly (clang, -O2):
<test_abort>:
push   %rax
call   1030 <do_abort@plt>

LLVM IR (-O0):
define void @test_abort(i32 %0) {
%2 = alloca i32
store i32 %0, i32* %2
%3 = load i32, i32* %2
%4 = call i32 @do_abort(i32 %3)
unreachable
}

LLVM IR (-O2):
define void @test_abort(i32 %0) {
%2 = tail call i32 @do_abort(i32 %0)
unreachable
}
/* Variables and functions */
char *strings_trim_imp(char *, int);
char *strings_trim_front(char *string) { return strings_trim_imp(string, 1); }


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

x86 assembly (clang, -O2):
<strings_trim_front>:
mov    $0x1,%esi
jmp    1030 <strings_trim_imp@plt>

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

LLVM IR (-O2):
define i8* @strings_trim_front(i8* %0) {
%2 = tail call i8* @strings_trim_imp(i8* %0, i32 1)
ret i8* %2
}