xunge/DecIR huggingface dataset:
/* Variables and functions */
int /*<<< orphan*/ printf(char *, float, float, float, float);
main() {
  float a = 1, b = 5, c = 2, result;
  result = (b * b - 4 * a * c) / (2 * a);
  printf("a = %g\tb = %g\tc = %g\nResultado = %g\n", a, b, c, result);
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
movss  0xeec(%rip),%xmm0
movss  %xmm0,-0x4(%rbp)
movss  0xedb(%rip),%xmm0
movss  %xmm0,-0x8(%rbp)
movss  0xec6(%rip),%xmm0
movss  %xmm0,-0xc(%rbp)
movss  -0x8(%rbp),%xmm0
movss  -0x8(%rbp),%xmm2
movss  0xeb3(%rip),%xmm1
mulss  -0x4(%rbp),%xmm1
mulss  -0xc(%rbp),%xmm1
movd   %xmm1,%eax
xor    $0x80000000,%eax
movd   %eax,%xmm1
mulss  %xmm2,%xmm0
addss  %xmm1,%xmm0
movss  0xe88(%rip),%xmm1
mulss  -0x4(%rbp),%xmm1
divss  %xmm1,%xmm0
movss  %xmm0,-0x10(%rbp)
movss  -0x4(%rbp),%xmm0
movss  -0x8(%rbp),%xmm1
movss  -0xc(%rbp),%xmm2
movss  -0x10(%rbp),%xmm3
lea    0xe6f(%rip),%rdi
call   1030 <printf@plt>
xor    %eax,%eax
add    $0x10,%rsp
pop    %rbp
ret

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

LLVM IR (-O0):
@.str = [37 x i8] c"a = %g\09b = %g\09c = %g\0AResultado = %g\0A\00"
define i32 @main() {
%1 = alloca float
%2 = alloca float
%3 = alloca float
%4 = alloca float
store float 1.000000e+00, float* %1
store float 5.000000e+00, float* %2
store float 2.000000e+00, float* %3
%5 = load float, float* %2
%6 = load float, float* %2
%7 = load float, float* %1
%8 = fmul float 4.000000e+00, %7
%9 = load float, float* %3
%10 = fmul float %8, %9
%11 = fneg float %10
%12 = call float @llvm.fmuladd.f32(float %5, float %6, float %11)
%13 = load float, float* %1
%14 = fmul float 2.000000e+00, %13
%15 = fdiv float %12, %14
store float %15, float* %4
%16 = load float, float* %1
%17 = load float, float* %2
%18 = load float, float* %3
%19 = load float, float* %4
%20 = call i32 @printf(i8* getelementptr inbounds ([37 x i8], [37 x i8]* @.str, i64 0, i64 0), float %16, float %17, float %18, float %19)
ret i32 0
}

LLVM IR (-O2):
@.str = [37 x i8] c"a = %g\09b = %g\09c = %g\0AResultado = %g\0A\00"
define i32 @main() {
%1 = tail call i32 @printf(i8* getelementptr inbounds ([37 x i8], [37 x i8]* @.str, i64 0, i64 0), float 1.000000e+00, float 5.000000e+00, float 2.000000e+00, float 8.500000e+00)
ret i32 0
}
unsigned short intel_cpu_stepping() {
  unsigned long eax, unused;
  unsigned short stepping;
  __asm__("cpuid"
          : "=a"(eax), "=b"(unused), "=c"(unused), "=d"(unused)
          : "a"(1));
  ;
  stepping = eax & 0xf;
  return stepping;
}


x86 assembly (clang, -O0):
<intel_cpu_stepping>:
push   %rbp
mov    %rsp,%rbp
push   %rbx
mov    $0x1,%eax
cpuid
mov    %rax,-0x10(%rbp)
mov    %rbx,-0x18(%rbp)
mov    %rcx,-0x18(%rbp)
mov    %rdx,-0x18(%rbp)
mov    -0x10(%rbp),%rax
and    $0xf,%rax
mov    %ax,-0x1a(%rbp)
movzwl -0x1a(%rbp),%eax
pop    %rbx
pop    %rbp
ret

x86 assembly (clang, -O2):
<intel_cpu_stepping>:
push   %rbx
mov    $0x1,%eax
cpuid
and    $0xf,%eax
pop    %rbx
ret

LLVM IR (-O0):
define zeroext i16 @intel_cpu_stepping() {
%1 = alloca i64
%2 = alloca i64
%3 = alloca i16
%4 = call { i64, i64, i64, i64 } asm "cpuid", "={ax},={bx},={cx},={dx},{ax},~{dirflag},~{fpsr},~{flags}"(i32 1)
%5 = extractvalue { i64, i64, i64, i64 } %4, 0
%6 = extractvalue { i64, i64, i64, i64 } %4, 1
%7 = extractvalue { i64, i64, i64, i64 } %4, 2
%8 = extractvalue { i64, i64, i64, i64 } %4, 3
store i64 %5, i64* %1
store i64 %6, i64* %2
store i64 %7, i64* %2
store i64 %8, i64* %2
%9 = load i64, i64* %1
%10 = and i64 %9, 15
%11 = trunc i64 %10 to i16
store i16 %11, i16* %3
%12 = load i16, i16* %3
ret i16 %12
}

LLVM IR (-O2):
define zeroext i16 @intel_cpu_stepping() {
%1 = tail call { i64, i64, i64, i64 } asm "cpuid", "={ax},={bx},={cx},={dx},{ax},~{dirflag},~{fpsr},~{flags}"(i32 1)
%2 = extractvalue { i64, i64, i64, i64 } %1, 0
%3 = trunc i64 %2 to i16
%4 = and i16 %3, 15
ret i16 %4
}
/* Type definitions */
typedef int /*<<< orphan*/ uint64_t;

/* Variables and functions */
int /*<<< orphan*/ lowest_bit(int /*<<< orphan*/);
int count_bits(uint64_t bits) {
  int sum = 0;
  while (bits != 0) {
    uint64_t bit = lowest_bit(bits);
    sum++;
    bits ^= bit;
  }
  return sum;
}


x86 assembly (clang, -O0):
<count_bits>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
mov    %edi,-0x4(%rbp)
movl   $0x0,-0x8(%rbp)
cmpl   $0x0,-0x4(%rbp)
je     114e <count_bits+0x3e>
mov    -0x4(%rbp),%edi
call   1030 <lowest_bit@plt>
mov    %eax,-0xc(%rbp)
mov    -0x8(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x8(%rbp)
mov    -0xc(%rbp),%eax
xor    -0x4(%rbp),%eax
mov    %eax,-0x4(%rbp)
jmp    1122 <count_bits+0x12>
mov    -0x8(%rbp),%eax
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<count_bits>:
push   %rbp
push   %rbx
push   %rax
test   %edi,%edi
je     1130 <count_bits+0x20>
mov    %edi,%ebp
xor    %ebx,%ebx
nopl   0x0(%rax,%rax,1)
mov    %ebp,%edi
call   1030 <lowest_bit@plt>
add    $0x1,%ebx
xor    %eax,%ebp
jne    1120 <count_bits+0x10>
jmp    1132 <count_bits+0x22>
xor    %ebx,%ebx
mov    %ebx,%eax
add    $0x8,%rsp
pop    %rbx
pop    %rbp
ret

LLVM IR (-O0):
define i32 @count_bits(i32 %0) {
%2 = alloca i32
%3 = alloca i32
%4 = alloca i32
store i32 %0, i32* %2
store i32 0, i32* %3
br label %5
5: ; preds = %8, %1
%6 = load i32, i32* %2
%7 = icmp ne i32 %6, 0
br i1 %7, label %8, label %16
8: ; preds = %5
%9 = load i32, i32* %2
%10 = call i32 @lowest_bit(i32 %9)
store i32 %10, i32* %4
%11 = load i32, i32* %3
%12 = add nsw i32 %11, 1
store i32 %12, i32* %3
%13 = load i32, i32* %4
%14 = load i32, i32* %2
%15 = xor i32 %14, %13
store i32 %15, i32* %2
br label %5
16: ; preds = %5
%17 = load i32, i32* %3
ret i32 %17
}

LLVM IR (-O2):
define i32 @count_bits(i32 %0) {
%2 = icmp eq i32 %0, 0
br i1 %2, label %10, label %3
3: ; preds = %1, %3
%4 = phi i32 [ %8, %3 ], [ %0, %1 ]
%5 = phi i32 [ %7, %3 ], [ 0, %1 ]
%6 = tail call i32 @lowest_bit(i32 %4)
%7 = add nuw nsw i32 %5, 1
%8 = xor i32 %6, %4
%9 = icmp eq i32 %8, 0
br i1 %9, label %10, label %3
10: ; preds = %3, %1
%11 = phi i32 [ 0, %1 ], [ %7, %3 ]
ret i32 %11
}
/* Variables and functions */
int /*<<< orphan*/ cmos_layout_get_fn();
void get_cmos_layout(void) { cmos_layout_get_fn(); }


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

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

LLVM IR (-O0):
define void @get_cmos_layout() {
%1 = call i32 (...) @cmos_layout_get_fn()
ret void
}

LLVM IR (-O2):
define void @get_cmos_layout() {
%1 = tail call i32 (...) @cmos_layout_get_fn()
ret void
}
/* Type definitions */
typedef int /*<<< orphan*/ WINDOW;

/* Variables and functions */
int wclrtoeol(WINDOW *w) { return 0; }


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

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

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

LLVM IR (-O2):
define i32 @wclrtoeol(i32* nocapture readnone %0) {
ret i32 0
}
/* Variables and functions */
float get_debian_version();
int /*<<< orphan*/ sprintf(char *, char *, char *);
void get_debian_standard(char *standard) {
  float debian_version = get_debian_version();
  if ((int)debian_version == 6) {
    sprintf(standard, "%s", "3.9.2");
  }
  sprintf(standard, "%s", "3.9.4");
}


x86 assembly (clang, -O0):
<get_debian_standard>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
mov    %rdi,-0x8(%rbp)
mov    $0x0,%al
call   1030 <get_debian_version@plt>
movss  %xmm0,-0xc(%rbp)
cvttss2si -0xc(%rbp),%eax
cmp    $0x6,%eax
jne    115d <get_debian_standard+0x3d>
mov    -0x8(%rbp),%rdi
lea    0xeaf(%rip),%rsi
lea    0xeab(%rip),%rdx
call   1040 <sprintf@plt>
mov    -0x8(%rbp),%rdi
lea    0xe98(%rip),%rsi
lea    0xe9a(%rip),%rdx
call   1040 <sprintf@plt>
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<get_debian_standard>:
push   %rbx
mov    %rdi,%rbx
xor    %eax,%eax
call   1030 <get_debian_version@plt>
cvttss2si %xmm0,%eax
cmp    $0x6,%eax
jne    1130 <get_debian_standard+0x20>
movw   $0x32,0x4(%rbx)
movl   $0x2e392e33,(%rbx)
movw   $0x34,0x4(%rbx)
movl   $0x2e392e33,(%rbx)
pop    %rbx
ret

LLVM IR (-O0):
@.str = [3 x i8] c"%s\00"
@.str.1 = [6 x i8] c"3.9.2\00"
@.str.2 = [6 x i8] c"3.9.4\00"
define void @get_debian_standard(i8* %0) {
%2 = alloca i8*
%3 = alloca float
store i8* %0, i8** %2
%4 = call float (...) @get_debian_version()
store float %4, float* %3
%5 = load float, float* %3
%6 = fptosi float %5 to i32
%7 = icmp eq i32 %6, 6
br i1 %7, label %8, label %11
8: ; preds = %1
%9 = load i8*, i8** %2
%10 = call i32 @sprintf(i8* %9, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str, i64 0, i64 0), i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.1, i64 0, i64 0))
br label %11
11: ; preds = %8, %1
%12 = load i8*, i8** %2
%13 = call i32 @sprintf(i8* %12, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str, i64 0, i64 0), i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.2, i64 0, i64 0))
ret void
}

LLVM IR (-O2):
@.str.1 = [6 x i8] c"3.9.2\00"
@.str.2 = [6 x i8] c"3.9.4\00"
define void @get_debian_standard(i8* nocapture writeonly %0) {
%2 = tail call float (...) @get_debian_version()
%3 = fptosi float %2 to i32
%4 = icmp eq i32 %3, 6
br i1 %4, label %5, label %6
5: ; preds = %1
tail call void @llvm.memcpy.p0i8.p0i8.i64(i8* align 1 dereferenceable(6) %0, i8* align 1 dereferenceable(6) getelementptr inbounds ([6 x i8], [6 x i8]* @.str.1, i64 0, i64 0), i64 6, i1 false)
br label %6
6: ; preds = %5, %1
tail call void @llvm.memcpy.p0i8.p0i8.i64(i8* align 1 dereferenceable(6) %0, i8* align 1 dereferenceable(6) getelementptr inbounds ([6 x i8], [6 x i8]* @.str.2, i64 0, i64 0), i64 6, i1 false)
ret void
}
void gtk_label_get_ellipsize() {}


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

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

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

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


x86 assembly (clang, -O0):
<U_WMRE9_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_WMRE9_swap>:
jmp    1030 <U_WMRNOTIMPLEMENTED_swap@plt>

LLVM IR (-O0):
define void @U_WMRE9_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_WMRE9_swap(i8* %0, i32 %1) {
%3 = tail call i32 @U_WMRNOTIMPLEMENTED_swap(i8* %0, i32 %1)
ret void
}
double logphi2(double p) { return p * (1 - p); }


x86 assembly (clang, -O0):
<logphi2>:
push   %rbp
mov    %rsp,%rbp
movsd  %xmm0,-0x8(%rbp)
movsd  -0x8(%rbp),%xmm0
movsd  0xeea(%rip),%xmm1
subsd  -0x8(%rbp),%xmm1
mulsd  %xmm1,%xmm0
pop    %rbp
ret

x86 assembly (clang, -O2):
<logphi2>:
movsd  0xef8(%rip),%xmm1
subsd  %xmm0,%xmm1
mulsd  %xmm1,%xmm0
ret

LLVM IR (-O0):
define double @logphi2(double %0) {
%2 = alloca double
store double %0, double* %2
%3 = load double, double* %2
%4 = load double, double* %2
%5 = fsub double 1.000000e+00, %4
%6 = fmul double %3, %5
ret double %6
}

LLVM IR (-O2):
define double @logphi2(double %0) {
%2 = fsub double 1.000000e+00, %0
%3 = fmul double %2, %0
ret double %3
}
/* Variables and functions */
int /*<<< orphan*/ printf(char *);
void f() { printf("called f\n"); }


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

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

LLVM IR (-O0):
@.str = [10 x i8] c"called f\0A\00"
define void @f() {
%1 = call i32 @printf(i8* getelementptr inbounds ([10 x i8], [10 x i8]* @.str, i64 0, i64 0))
ret void
}

LLVM IR (-O2):
@str = [9 x i8] c"called f\00"
define void @f() {
%1 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([9 x i8], [9 x i8]* @str, i64 0, i64 0))
ret void
}
/* Variables and functions */
int /*<<< orphan*/ Assert_real(int, char *, int, char *);
scalar_t__ isspace(int);
void t_isspace_0xf8() {
  Assert_real((isspace(248) == 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_isspace.c",
              1245, ("isspace should be 0 for 0xf8"));
}


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

x86 assembly (clang, -O2):
<t_isspace_0xf8>:
push   %rax
mov    $0xf8,%edi
call   1030 <isspace@plt>
xor    %edi,%edi
test   %rax,%rax
sete   %dil
lea    0xec5(%rip),%rsi
lea    0xf66(%rip),%rcx
mov    $0x4dd,%edx
pop    %rax
jmp    1040 <Assert_real@plt>

LLVM IR (-O0):
@.str = [168 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_isspace.c\00"
@.str.1 = [29 x i8] c"isspace should be 0 for 0xf8\00"
define void @t_isspace_0xf8() {
%1 = call i64 @isspace(i32 248)
%2 = icmp eq i64 %1, 0
%3 = zext i1 %2 to i32
%4 = call i32 @Assert_real(i32 %3, i8* getelementptr inbounds ([168 x i8], [168 x i8]* @.str, i64 0, i64 0), i32 1245, i8* getelementptr inbounds ([29 x i8], [29 x i8]* @.str.1, i64 0, i64 0))
ret void
}

LLVM IR (-O2):
@.str = [168 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_isspace.c\00"
@.str.1 = [29 x i8] c"isspace should be 0 for 0xf8\00"
define void @t_isspace_0xf8() {
%1 = tail call i64 @isspace(i32 248)
%2 = icmp eq i64 %1, 0
%3 = zext i1 %2 to i32
%4 = tail call i32 @Assert_real(i32 %3, i8* getelementptr inbounds ([168 x i8], [168 x i8]* @.str, i64 0, i64 0), i32 1245, i8* getelementptr inbounds ([29 x i8], [29 x i8]* @.str.1, i64 0, i64 0))
ret void
}
/* Variables and functions */
int Bits_memcmp(const void *loc1, const void *loc2, size_t length) {
  int memcmp(const void *loc1, const void *loc2, size_t length);
  return memcmp(loc1, loc2, length);
}


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

x86 assembly (clang, -O2):
<Bits_memcmp>:
jmp    1030 <memcmp@plt>

LLVM IR (-O0):
define i32 @Bits_memcmp(i8* %0, i8* %1, i64 %2) {
%4 = alloca i8*
%5 = alloca i8*
%6 = alloca i64
store i8* %0, i8** %4
store i8* %1, i8** %5
store i64 %2, i64* %6
%7 = load i8*, i8** %4
%8 = load i8*, i8** %5
%9 = load i64, i64* %6
%10 = call i32 @memcmp(i8* %7, i8* %8, i64 %9)
ret i32 %10
}

LLVM IR (-O2):
define i32 @Bits_memcmp(i8* nocapture %0, i8* nocapture %1, i64 %2) {
%4 = tail call i32 @memcmp(i8* %0, i8* %1, i64 %2)
ret i32 %4
}
int test_stat(path, statb) const char *path;
struct stat *statb;
{
  return stat(path, statb);
}


x86 assembly (clang, -O0):
<test_stat>:
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    $0x0,%al
call   1030 <stat@plt>
add    $0x10,%rsp
pop    %rbp
ret

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

LLVM IR (-O0):
%struct.stat = type opaque
define i32 @test_stat(i8* %0, %struct.stat* %1) {
%3 = alloca i8*
%4 = alloca %struct.stat*
store i8* %0, i8** %3
store %struct.stat* %1, %struct.stat** %4
%5 = load i8*, i8** %3
%6 = load %struct.stat*, %struct.stat** %4
%7 = call i32 (i8*, %struct.stat*, ...) bitcast (i32 (...)* @stat to i32 (i8*, %struct.stat*, ...)*)(i8* %5, %struct.stat* %6)
ret i32 %7
}

LLVM IR (-O2):
%struct.stat = type opaque
define i32 @test_stat(i8* %0, %struct.stat* %1) {
%3 = tail call i32 (i8*, %struct.stat*, ...) bitcast (i32 (...)* @stat to i32 (i8*, %struct.stat*, ...)*)(i8* %0, %struct.stat* %1)
ret i32 %3
}
/* Variables and functions */
int /*<<< orphan*/ c_hecmw2fstr_connect_conv(int, int *, int *, int *);
void HECMW2FSTR_CONNECT_CONV__(int *n_elem, int elem_type[],
                               int elem_node_index[], int elem_node_item[]) {
  c_hecmw2fstr_connect_conv(*n_elem, elem_type, elem_node_index,
                            elem_node_item);
}


x86 assembly (clang, -O0):
<HECMW2FSTR_CONNECT_CONV__>:
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),%rax
mov    (%rax),%edi
mov    -0x10(%rbp),%rsi
mov    -0x18(%rbp),%rdx
mov    -0x20(%rbp),%rcx
call   1030 <c_hecmw2fstr_connect_conv@plt>
add    $0x20,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<HECMW2FSTR_CONNECT_CONV__>:
mov    (%rdi),%edi
jmp    1030 <c_hecmw2fstr_connect_conv@plt>

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

LLVM IR (-O2):
define void @HECMW2FSTR_CONNECT_CONV__(i32* nocapture %0, i32* %1, i32* %2, i32* %3) {
%5 = load i32, i32* %0
%6 = tail call i32 @c_hecmw2fstr_connect_conv(i32 %5, i32* %1, i32* %2, i32* %3)
ret void
}
void startupwnd_open(void) {}


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

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

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

LLVM IR (-O2):
define void @startupwnd_open() {
ret void
}
/* Variables and functions */
int /*<<< orphan*/ printf(char *, int);
void kotlinclib_print_int(int message) { printf("%d", message); }


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

x86 assembly (clang, -O2):
<kotlinclib_print_int>:
mov    %edi,%esi
lea    0xee7(%rip),%rdi
jmp    1030 <printf@plt>

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

LLVM IR (-O2):
@.str = [3 x i8] c"%d\00"
define void @kotlinclib_print_int(i32 %0) {
%2 = tail call i32 @printf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str, i64 0, i64 0), i32 %0)
ret void
}
/* Variables and functions */
int /*<<< orphan*/ emit(char *);
void generate_function_preamble(void) {
  emit("\t# **** FUNCTION PREAMBLE ****\n");
  emit("\tpushq %rbp          #set up stack frame\n");
  emit("\tmovq %rsp, %rbp     #set up stack frame\n");
}


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

x86 assembly (clang, -O2):
<generate_function_preamble>:
push   %rax
lea    0xee8(%rip),%rdi
call   1030 <emit@plt>
lea    0xefc(%rip),%rdi
call   1030 <emit@plt>
lea    0xf1a(%rip),%rdi
pop    %rax
jmp    1030 <emit@plt>

LLVM IR (-O0):
@.str = [32 x i8] c"\09# **** FUNCTION PREAMBLE ****\0A\00"
@.str.1 = [42 x i8] c"\09pushq %rbp #set up stack frame\0A\00"
@.str.2 = [42 x i8] c"\09movq %rsp, %rbp #set up stack frame\0A\00"
define void @generate_function_preamble() {
%1 = call i32 @emit(i8* getelementptr inbounds ([32 x i8], [32 x i8]* @.str, i64 0, i64 0))
%2 = call i32 @emit(i8* getelementptr inbounds ([42 x i8], [42 x i8]* @.str.1, i64 0, i64 0))
%3 = call i32 @emit(i8* getelementptr inbounds ([42 x i8], [42 x i8]* @.str.2, i64 0, i64 0))
ret void
}

LLVM IR (-O2):
@.str = [32 x i8] c"\09# **** FUNCTION PREAMBLE ****\0A\00"
@.str.1 = [42 x i8] c"\09pushq %rbp #set up stack frame\0A\00"
@.str.2 = [42 x i8] c"\09movq %rsp, %rbp #set up stack frame\0A\00"
define void @generate_function_preamble() {
%1 = tail call i32 @emit(i8* getelementptr inbounds ([32 x i8], [32 x i8]* @.str, i64 0, i64 0))
%2 = tail call i32 @emit(i8* getelementptr inbounds ([42 x i8], [42 x i8]* @.str.1, i64 0, i64 0))
%3 = tail call i32 @emit(i8* getelementptr inbounds ([42 x i8], [42 x i8]* @.str.2, i64 0, i64 0))
ret void
}
/* Variables and functions */
int nextarg(char *, char *, int, int);
mltreply(char *prompt, char *buf, int nbuf, int eolchar) {
  return (nextarg(prompt, buf, nbuf, eolchar));
}


x86 assembly (clang, -O0):
<mltreply>:
push   %rbp
mov    %rsp,%rbp
sub    $0x20,%rsp
mov    %rdi,-0x8(%rbp)
mov    %rsi,-0x10(%rbp)
mov    %edx,-0x14(%rbp)
mov    %ecx,-0x18(%rbp)
mov    -0x8(%rbp),%rdi
mov    -0x10(%rbp),%rsi
mov    -0x14(%rbp),%edx
mov    -0x18(%rbp),%ecx
call   1030 <nextarg@plt>
add    $0x20,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<mltreply>:
jmp    1030 <nextarg@plt>

LLVM IR (-O0):
define i32 @mltreply(i8* %0, i8* %1, i32 %2, i32 %3) {
%5 = alloca i8*
%6 = alloca i8*
%7 = alloca i32
%8 = alloca i32
store i8* %0, i8** %5
store i8* %1, i8** %6
store i32 %2, i32* %7
store i32 %3, i32* %8
%9 = load i8*, i8** %5
%10 = load i8*, i8** %6
%11 = load i32, i32* %7
%12 = load i32, i32* %8
%13 = call i32 @nextarg(i8* %9, i8* %10, i32 %11, i32 %12)
ret i32 %13
}

LLVM IR (-O2):
define i32 @mltreply(i8* %0, i8* %1, i32 %2, i32 %3) {
%5 = tail call i32 @nextarg(i8* %0, i8* %1, i32 %2, i32 %3)
ret i32 %5
}
int test_imm_19uint64_highword_mem(unsigned long long *val) {
  return ((*val >> 32) & (0x19 << 0)) ? -20 : -40;
}


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

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

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

LLVM IR (-O2):
define i32 @test_imm_19uint64_highword_mem(i64* nocapture %0) {
%2 = load i64, i64* %0
%3 = and i64 %2, 107374182400
%4 = icmp eq i64 %3, 0
%5 = select i1 %4, i32 -40, i32 -20
ret i32 %5
}
/* Type definitions */
struct sqlConnection {
  int dummy;
};

/* Variables and functions */
char *indirectString(struct sqlConnection *, int, char *, char *);
char *bioImageBodyPart(struct sqlConnection *conn, int id) {
  return indirectString(conn, id, "bodyPart", "name");
}


x86 assembly (clang, -O0):
<bioImageBodyPart>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
mov    %rdi,-0x8(%rbp)
mov    %esi,-0xc(%rbp)
mov    -0x8(%rbp),%rdi
mov    -0xc(%rbp),%esi
lea    0xed3(%rip),%rdx
lea    0xed5(%rip),%rcx
call   1030 <indirectString@plt>
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<bioImageBodyPart>:
lea    0xee9(%rip),%rdx
lea    0xeeb(%rip),%rcx
jmp    1030 <indirectString@plt>

LLVM IR (-O0):
%struct.sqlConnection = type { i32 }
@.str = [9 x i8] c"bodyPart\00"
@.str.1 = [5 x i8] c"name\00"
define i8* @bioImageBodyPart(%struct.sqlConnection* %0, i32 %1) {
%3 = alloca %struct.sqlConnection*
%4 = alloca i32
store %struct.sqlConnection* %0, %struct.sqlConnection** %3
store i32 %1, i32* %4
%5 = load %struct.sqlConnection*, %struct.sqlConnection** %3
%6 = load i32, i32* %4
%7 = call i8* @indirectString(%struct.sqlConnection* %5, i32 %6, i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str, i64 0, i64 0), i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.1, i64 0, i64 0))
ret i8* %7
}

LLVM IR (-O2):
%struct.sqlConnection = type { i32 }
@.str = [9 x i8] c"bodyPart\00"
@.str.1 = [5 x i8] c"name\00"
define i8* @bioImageBodyPart(%struct.sqlConnection* %0, i32 %1) {
%3 = tail call i8* @indirectString(%struct.sqlConnection* %0, i32 %1, i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str, i64 0, i64 0), i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.1, i64 0, i64 0))
ret i8* %3
}
/* Variables and functions */
float atanf(float);
float HMM_ATanF(float Radians) {
  float Result = atanf(Radians);
  return (Result);
}


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

x86 assembly (clang, -O2):
<HMM_ATanF>:
jmp    1030 <atanf@plt>

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

LLVM IR (-O2):
define float @HMM_ATanF(float %0) {
%2 = tail call float @atanf(float %0)
ret float %2
}
/* Variables and functions */
double O2y_z(double, double, double, double);
double O2z_y(double sign, double xi, double et, double qq) {
  return O2y_z(sign, xi, et, qq);
}


x86 assembly (clang, -O0):
<O2z_y>:
push   %rbp
mov    %rsp,%rbp
sub    $0x20,%rsp
movsd  %xmm0,-0x8(%rbp)
movsd  %xmm1,-0x10(%rbp)
movsd  %xmm2,-0x18(%rbp)
movsd  %xmm3,-0x20(%rbp)
movsd  -0x8(%rbp),%xmm0
movsd  -0x10(%rbp),%xmm1
movsd  -0x18(%rbp),%xmm2
movsd  -0x20(%rbp),%xmm3
call   1030 <O2y_z@plt>
add    $0x20,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<O2z_y>:
jmp    1030 <O2y_z@plt>

LLVM IR (-O0):
define double @O2z_y(double %0, double %1, double %2, double %3) {
%5 = alloca double
%6 = alloca double
%7 = alloca double
%8 = alloca double
store double %0, double* %5
store double %1, double* %6
store double %2, double* %7
store double %3, double* %8
%9 = load double, double* %5
%10 = load double, double* %6
%11 = load double, double* %7
%12 = load double, double* %8
%13 = call double @O2y_z(double %9, double %10, double %11, double %12)
ret double %13
}

LLVM IR (-O2):
define double @O2z_y(double %0, double %1, double %2, double %3) {
%5 = tail call double @O2y_z(double %0, double %1, double %2, double %3)
ret double %5
}
/* Variables and functions */
int /*<<< orphan*/ uart_putc(void *, int /*<<< orphan*/);
void uart_puts(void *uart_base, const char *string) {
  while (*string != 0) {
    uart_putc(uart_base, *string++);
  }
}


x86 assembly (clang, -O0):
<uart_puts>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
mov    %rdi,-0x8(%rbp)
mov    %rsi,-0x10(%rbp)
mov    -0x10(%rbp),%rax
movsbl (%rax),%eax
cmp    $0x0,%eax
je     1150 <uart_puts+0x40>
mov    -0x8(%rbp),%rdi
mov    -0x10(%rbp),%rax
mov    %rax,%rcx
add    $0x1,%rcx
mov    %rcx,-0x10(%rbp)
movsbl (%rax),%esi
call   1030 <uart_putc@plt>
jmp    1120 <uart_puts+0x10>
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<uart_puts>:
push   %r14
push   %rbx
push   %rax
mov    (%rsi),%al
test   %al,%al
je     1146 <uart_puts+0x36>
mov    %rsi,%rbx
mov    %rdi,%r14
add    $0x1,%rbx
cs nopw 0x0(%rax,%rax,1)
xchg   %ax,%ax
movsbl %al,%esi
mov    %r14,%rdi
call   1030 <uart_putc@plt>
movzbl (%rbx),%eax
add    $0x1,%rbx
test   %al,%al
jne    1130 <uart_puts+0x20>
add    $0x8,%rsp
pop    %rbx
pop    %r14
ret

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

LLVM IR (-O2):
define void @uart_puts(i8* %0, i8* nocapture %1) {
%3 = load i8, i8* %1
%4 = icmp eq i8 %3, 0
br i1 %4, label %13, label %5
5: ; preds = %2, %5
%6 = phi i8 [ %11, %5 ], [ %3, %2 ]
%7 = phi i8* [ %9, %5 ], [ %1, %2 ]
%8 = sext i8 %6 to i32
%9 = getelementptr inbounds i8, i8* %7, i64 1
%10 = tail call i32 @uart_putc(i8* %0, i32 %8)
%11 = load i8, i8* %9
%12 = icmp eq i8 %11, 0
br i1 %12, label %13, label %5
13: ; preds = %5, %2
ret void
}
/* Variables and functions */
int /*<<< orphan*/ printf(char *);
void print_close_line_box(int no_spaces) {
  register int i;
  for (i = 0; i < no_spaces; i++) {
    printf(" ");
  }
  printf("|\n");
}


x86 assembly (clang, -O0):
<print_close_line_box>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
mov    %edi,-0x4(%rbp)
movl   $0x0,-0x8(%rbp)
mov    -0x8(%rbp),%eax
cmp    -0x4(%rbp),%eax
jge    1148 <print_close_line_box+0x38>
lea    0xecb(%rip),%rdi
call   1030 <printf@plt>
mov    -0x8(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x8(%rbp)
jmp    1122 <print_close_line_box+0x12>
lea    0xeb3(%rip),%rdi
call   1030 <printf@plt>
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<print_close_line_box>:
push   %rbx
test   %edi,%edi
jle    113f <print_close_line_box+0x1f>
mov    %edi,%ebx
nopw   0x0(%rax,%rax,1)
mov    $0x20,%edi
call   1030 <putchar@plt>
add    $0xffffffff,%ebx
jne    1130 <print_close_line_box+0x10>
lea    0xeba(%rip),%rdi
pop    %rbx
jmp    1040 <puts@plt>

LLVM IR (-O0):
@.str = [2 x i8] c" \00"
@.str.1 = [3 x i8] c"|\0A\00"
define void @print_close_line_box(i32 %0) {
%2 = alloca i32
%3 = alloca i32
store i32 %0, i32* %2
store i32 0, i32* %3
br label %4
4: ; preds = %10, %1
%5 = load i32, i32* %3
%6 = load i32, i32* %2
%7 = icmp slt i32 %5, %6
br i1 %7, label %8, label %13
8: ; preds = %4
%9 = call i32 @printf(i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str, i64 0, i64 0))
br label %10
10: ; preds = %8
%11 = load i32, i32* %3
%12 = add nsw i32 %11, 1
store i32 %12, i32* %3
br label %4
13: ; preds = %4
%14 = call i32 @printf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.1, i64 0, i64 0))
ret void
}

LLVM IR (-O2):
@str = [2 x i8] c"|\00"
define void @print_close_line_box(i32 %0) {
%2 = icmp sgt i32 %0, 0
br i1 %2, label %3, label %8
3: ; preds = %1, %3
%4 = phi i32 [ %6, %3 ], [ 0, %1 ]
%5 = tail call i32 @putchar(i32 32)
%6 = add nuw nsw i32 %4, 1
%7 = icmp eq i32 %6, %0
br i1 %7, label %8, label %3
8: ; preds = %3, %1
%9 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([2 x i8], [2 x i8]* @str, i64 0, i64 0))
ret void
}
/* Type definitions */
typedef int /*<<< orphan*/ mpz_t;

/* Variables and functions */
int /*<<< orphan*/ mpz_init(int /*<<< orphan*/);
int /*<<< orphan*/ set_random_book(int /*<<< orphan*/);
void init_set_random_book(mpz_t book) {
  mpz_init(book);
  set_random_book(book);
}


x86 assembly (clang, -O0):
<init_set_random_book>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
mov    %edi,-0x4(%rbp)
mov    -0x4(%rbp),%edi
call   1030 <mpz_init@plt>
mov    -0x4(%rbp),%edi
call   1040 <set_random_book@plt>
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<init_set_random_book>:
push   %rbx
mov    %edi,%ebx
call   1030 <mpz_init@plt>
mov    %ebx,%edi
pop    %rbx
jmp    1040 <set_random_book@plt>

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

LLVM IR (-O2):
define void @init_set_random_book(i32 %0) {
%2 = tail call i32 @mpz_init(i32 %0)
%3 = tail call i32 @set_random_book(i32 %0)
ret void
}
/* Variables and functions */
int /*<<< orphan*/ fprintf(int /*<<< orphan*/, char *);
int /*<<< orphan*/ stderr;
int back_pack(__attribute__((__unused__)) int argc,
              __attribute__((__unused__)) char **argv) {
  fprintf(stderr, "[BACK] "
                  "error"
                  ": "
                  "subcommand 'pack' not yet implemented"
                  "\n");
  return -1;
}


x86 assembly (clang, -O0):
<back_pack>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
mov    %edi,-0x4(%rbp)
mov    %rsi,-0x10(%rbp)
mov    0x2eba(%rip),%rax
mov    (%rax),%edi
lea    0xed1(%rip),%rsi
call   1030 <fprintf@plt>
mov    $0xffffffff,%eax
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<back_pack>:
push   %rax
mov    0x2ec8(%rip),%rax
mov    (%rax),%edi
lea    0xedf(%rip),%rsi
call   1030 <fprintf@plt>
mov    $0xffffffff,%eax
pop    %rcx
ret

LLVM IR (-O0):
@stderr = global i32 0
@.str = [53 x i8] c"[BACK] error: subcommand 'pack' not yet implemented\0A\00"
define i32 @back_pack(i32 %0, i8** %1) {
%3 = alloca i32
%4 = alloca i8**
store i32 %0, i32* %3
store i8** %1, i8*** %4
%5 = load i32, i32* @stderr
%6 = call i32 @fprintf(i32 %5, i8* getelementptr inbounds ([53 x i8], [53 x i8]* @.str, i64 0, i64 0))
ret i32 -1
}

LLVM IR (-O2):
@stderr = global i32 0
@.str = [53 x i8] c"[BACK] error: subcommand 'pack' not yet implemented\0A\00"
define i32 @back_pack(i32 %0, i8** nocapture readnone %1) {
%3 = load i32, i32* @stderr
%4 = tail call i32 @fprintf(i32 %3, i8* getelementptr inbounds ([53 x i8], [53 x i8]* @.str, i64 0, i64 0))
ret i32 -1
}
void ff_hevc_put_hevc_pel_pixels16_10_avx2() {}


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

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

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

LLVM IR (-O2):
define void @ff_hevc_put_hevc_pel_pixels16_10_avx2() {
ret void
}
void *__attribute__((always_)) asm_atomic_xchg_voidp(void **a, void *b) {
  __asm__("lock xchg %0, %1;" : "+m"(*a), "+r"(b));
  return b;
}


x86 assembly (clang, -O0):
<asm_atomic_xchg_voidp>:
push   %rbp
mov    %rsp,%rbp
mov    %rdi,-0x8(%rbp)
mov    %rsi,-0x10(%rbp)
mov    -0x8(%rbp),%rcx
mov    -0x10(%rbp),%rax
lock xchg %rax,(%rcx)
mov    %rax,-0x10(%rbp)
mov    -0x10(%rbp),%rax
pop    %rbp
ret

x86 assembly (clang, -O2):
<asm_atomic_xchg_voidp>:
mov    %rsi,%rax
lock xchg %rax,(%rdi)
ret

LLVM IR (-O0):
define i8* @asm_atomic_xchg_voidp(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 i8* asm "lock xchg $0, $1;", "=*m,=r,*m,1,~{dirflag},~{fpsr},~{flags}"(i8** elementtype(i8*) %5, i8** elementtype(i8*) %5, i8* %6)
store i8* %7, i8** %4
%8 = load i8*, i8** %4
ret i8* %8
}

LLVM IR (-O2):
define i8* @asm_atomic_xchg_voidp(i8** %0, i8* %1) {
%3 = tail call i8* asm "lock xchg $0, $1;", "=*m,=r,*m,1,~{dirflag},~{fpsr},~{flags}"(i8** elementtype(i8*) %0, i8** elementtype(i8*) %0, i8* %1)
ret i8* %3
}
int of_seek(int handle, long long pos) {
  struct {
    const char *name;
    int num_args;
    int num_returns;
    int handle;
    long long pos;
    int status;
  } args;
  args.name = "seek";
  args.num_args = 3;
  args.num_returns = 1;
  args.handle = handle;
  args.pos = pos;
  of(&args);
  return args.status;
}


x86 assembly (clang, -O0):
<of_seek>:
push   %rbp
mov    %rsp,%rbp
sub    $0x40,%rsp
mov    %edi,-0x4(%rbp)
mov    %rsi,-0x10(%rbp)
lea    0xeda(%rip),%rax
mov    %rax,-0x38(%rbp)
movl   $0x3,-0x30(%rbp)
movl   $0x1,-0x2c(%rbp)
mov    -0x4(%rbp),%eax
mov    %eax,-0x28(%rbp)
mov    -0x10(%rbp),%rax
mov    %rax,-0x20(%rbp)
lea    -0x38(%rbp),%rdi
mov    $0x0,%al
call   1030 <of@plt>
mov    -0x18(%rbp),%eax
add    $0x40,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<of_seek>:
sub    $0x28,%rsp
lea    0xee5(%rip),%rax
mov    %rax,(%rsp)
movabs $0x100000003,%rax
mov    %rax,0x8(%rsp)
mov    %edi,0x10(%rsp)
mov    %rsi,0x18(%rsp)
mov    %rsp,%rdi
xor    %eax,%eax
call   1030 <of@plt>
mov    0x20(%rsp),%eax
add    $0x28,%rsp
ret

LLVM IR (-O0):
%struct.anon = type { i8*, i32, i32, i32, i64, i32 }
@.str = [5 x i8] c"seek\00"
define i32 @of_seek(i32 %0, i64 %1) {
%3 = alloca i32
%4 = alloca i64
%5 = alloca %struct.anon
store i32 %0, i32* %3
store i64 %1, i64* %4
%6 = getelementptr inbounds %struct.anon, %struct.anon* %5, i32 0, i32 0
store i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str, i64 0, i64 0), i8** %6
%7 = getelementptr inbounds %struct.anon, %struct.anon* %5, i32 0, i32 1
store i32 3, i32* %7
%8 = getelementptr inbounds %struct.anon, %struct.anon* %5, i32 0, i32 2
store i32 1, i32* %8
%9 = load i32, i32* %3
%10 = getelementptr inbounds %struct.anon, %struct.anon* %5, i32 0, i32 3
store i32 %9, i32* %10
%11 = load i64, i64* %4
%12 = getelementptr inbounds %struct.anon, %struct.anon* %5, i32 0, i32 4
store i64 %11, i64* %12
%13 = call i32 (%struct.anon*, ...) bitcast (i32 (...)* @of to i32 (%struct.anon*, ...)*)(%struct.anon* %5)
%14 = getelementptr inbounds %struct.anon, %struct.anon* %5, i32 0, i32 5
%15 = load i32, i32* %14
ret i32 %15
}

LLVM IR (-O2):
%struct.anon = type { i8*, i32, i32, i32, i64, i32 }
@.str = [5 x i8] c"seek\00"
define i32 @of_seek(i32 %0, i64 %1) {
%3 = alloca %struct.anon
%4 = bitcast %struct.anon* %3 to i8*
%5 = getelementptr inbounds %struct.anon, %struct.anon* %3, i64 0, i32 0
store i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str, i64 0, i64 0), i8** %5
%6 = getelementptr inbounds %struct.anon, %struct.anon* %3, i64 0, i32 1
store i32 3, i32* %6
%7 = getelementptr inbounds %struct.anon, %struct.anon* %3, i64 0, i32 2
store i32 1, i32* %7
%8 = getelementptr inbounds %struct.anon, %struct.anon* %3, i64 0, i32 3
store i32 %0, i32* %8
%9 = getelementptr inbounds %struct.anon, %struct.anon* %3, i64 0, i32 4
store i64 %1, i64* %9
%10 = call i32 (%struct.anon*, ...) bitcast (i32 (...)* @of to i32 (%struct.anon*, ...)*)(%struct.anon* %3)
%11 = getelementptr inbounds %struct.anon, %struct.anon* %3, i64 0, i32 5
%12 = load i32, i32* %11
ret i32 %12
}
unsigned int mlx5_fpga_ipsec_counters_count(struct mlx5_core_dev *mdev) {
  return 0;
}


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

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

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

LLVM IR (-O2):
%struct.mlx5_core_dev = type opaque
define i32 @mlx5_fpga_ipsec_counters_count(%struct.mlx5_core_dev* nocapture readnone %0) {
ret i32 0
}
/* Variables and functions */
int /*<<< orphan*/ pcoutput(int /*<<< orphan*/);
pcleader() {
  register int i;
  i = 100;
  do
    pcoutput(0);
  while (--i);
}


x86 assembly (clang, -O0):
<pcleader>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
movl   $0x64,-0x8(%rbp)
xor    %edi,%edi
call   1030 <pcoutput@plt>
mov    -0x8(%rbp),%eax
add    $0xffffffff,%eax
mov    %eax,-0x8(%rbp)
cmp    $0x0,%eax
jne    111f <pcleader+0xf>
mov    -0x4(%rbp),%eax
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<pcleader>:
push   %rbx
mov    $0xffffff9c,%ebx
cs nopw 0x0(%rax,%rax,1)
xor    %edi,%edi
call   1030 <pcoutput@plt>
inc    %ebx
jne    1120 <pcleader+0x10>
pop    %rbx
ret

LLVM IR (-O0):
define i32 @pcleader() {
%1 = alloca i32
%2 = alloca i32
store i32 100, i32* %2
br label %3
3: ; preds = %5, %0
%4 = call i32 @pcoutput(i32 0)
br label %5
5: ; preds = %3
%6 = load i32, i32* %2
%7 = add nsw i32 %6, -1
store i32 %7, i32* %2
%8 = icmp ne i32 %7, 0
br i1 %8, label %3, label %9
9: ; preds = %5
%10 = load i32, i32* %1
ret i32 %10
}

LLVM IR (-O2):
define i32 @pcleader() {
br label %1
1: ; preds = %1, %0
%2 = phi i32 [ 100, %0 ], [ %4, %1 ]
%3 = tail call i32 @pcoutput(i32 0)
%4 = add nsw i32 %2, -1
%5 = icmp eq i32 %4, 0
br i1 %5, label %6, label %1
6: ; preds = %1
ret i32 undef
}
char toUpperCase(char ch) { return ch - 'a' + 'A'; }


x86 assembly (clang, -O0):
<toUpperCase>:
push   %rbp
mov    %rsp,%rbp
mov    %dil,%al
mov    %al,-0x1(%rbp)
movsbl -0x1(%rbp),%eax
sub    $0x61,%eax
add    $0x41,%eax
movsbl %al,%eax
pop    %rbp
ret

x86 assembly (clang, -O2):
<toUpperCase>:
lea    -0x20(%rdi),%eax
ret

LLVM IR (-O0):
define signext i8 @toUpperCase(i8 signext %0) {
%2 = alloca i8
store i8 %0, i8* %2
%3 = load i8, i8* %2
%4 = sext i8 %3 to i32
%5 = sub nsw i32 %4, 97
%6 = add nsw i32 %5, 65
%7 = trunc i32 %6 to i8
ret i8 %7
}

LLVM IR (-O2):
define signext i8 @toUpperCase(i8 signext %0) {
%2 = add i8 %0, -32
ret i8 %2
}
void GPMCSyncWrapBurstConfig(unsigned int baseAddr, unsigned int csNum,
                             unsigned int flag) {
  (*((volatile unsigned int *)(baseAddr + (0x60 + (csNum * (0x30)))))) &=
      ~(0x80000000u);
  (*((volatile unsigned int *)(baseAddr + (0x60 + (csNum * (0x30)))))) |=
      ((flag << (0x0000001Fu)) & (0x80000000u));
}


x86 assembly (clang, -O0):
<GPMCSyncWrapBurstConfig>:
push   %rbp
mov    %rsp,%rbp
mov    %edi,-0x4(%rbp)
mov    %esi,-0x8(%rbp)
mov    %edx,-0xc(%rbp)
mov    -0x4(%rbp),%eax
imul   $0x30,-0x8(%rbp),%ecx
add    $0x60,%ecx
add    %ecx,%eax
mov    %eax,%eax
mov    (%rax),%ecx
and    $0x7fffffff,%ecx
mov    %ecx,(%rax)
mov    -0xc(%rbp),%edx
shl    $0x1f,%edx
and    $0x80000000,%edx
mov    -0x4(%rbp),%eax
imul   $0x30,-0x8(%rbp),%ecx
add    $0x60,%ecx
add    %ecx,%eax
mov    %eax,%eax
mov    (%rax),%ecx
or     %edx,%ecx
mov    %ecx,(%rax)
pop    %rbp
ret

x86 assembly (clang, -O2):
<GPMCSyncWrapBurstConfig>:
lea    (%rsi,%rsi,2),%eax
shl    $0x4,%eax
add    %edi,%eax
add    $0x60,%eax
andl   $0x7fffffff,(%rax)
shl    $0x1f,%edx
or     %edx,(%rax)
ret

LLVM IR (-O0):
define void @GPMCSyncWrapBurstConfig(i32 %0, i32 %1, i32 %2) {
%4 = alloca i32
%5 = alloca i32
%6 = alloca i32
store i32 %0, i32* %4
store i32 %1, i32* %5
store i32 %2, i32* %6
%7 = load i32, i32* %4
%8 = load i32, i32* %5
%9 = mul i32 %8, 48
%10 = add i32 96, %9
%11 = add i32 %7, %10
%12 = zext i32 %11 to i64
%13 = inttoptr i64 %12 to i32*
%14 = load volatile i32, i32* %13
%15 = and i32 %14, 2147483647
store volatile i32 %15, i32* %13
%16 = load i32, i32* %6
%17 = shl i32 %16, 31
%18 = and i32 %17, -2147483648
%19 = load i32, i32* %4
%20 = load i32, i32* %5
%21 = mul i32 %20, 48
%22 = add i32 96, %21
%23 = add i32 %19, %22
%24 = zext i32 %23 to i64
%25 = inttoptr i64 %24 to i32*
%26 = load volatile i32, i32* %25
%27 = or i32 %26, %18
store volatile i32 %27, i32* %25
ret void
}

LLVM IR (-O2):
define void @GPMCSyncWrapBurstConfig(i32 %0, i32 %1, i32 %2) {
%4 = mul i32 %1, 48
%5 = add i32 %0, 96
%6 = add i32 %5, %4
%7 = zext i32 %6 to i64
%8 = inttoptr i64 %7 to i32*
%9 = load volatile i32, i32* %8
%10 = and i32 %9, 2147483647
store volatile i32 %10, i32* %8
%11 = shl i32 %2, 31
%12 = load volatile i32, i32* %8
%13 = or i32 %12, %11
store volatile i32 %13, i32* %8
ret void
}
/* Variables and functions */
int /*<<< orphan*/ exibe(int *);
void main() {
  int vetor[20];
  for (int i = 0; i < 20; i++) {
    vetor[i] = i * 2;
  }
  exibe(vetor);
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x60,%rsp
movl   $0x0,-0x54(%rbp)
cmpl   $0x14,-0x54(%rbp)
jge    1145 <main+0x35>
mov    -0x54(%rbp),%ecx
shl    $0x1,%ecx
movslq -0x54(%rbp),%rax
mov    %ecx,-0x50(%rbp,%rax,4)
mov    -0x54(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x54(%rbp)
jmp    111f <main+0xf>
lea    -0x50(%rbp),%rdi
call   1030 <exibe@plt>
add    $0x60,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
sub    $0x58,%rsp
movaps 0xee5(%rip),%xmm0
movaps %xmm0,(%rsp)
movaps 0xeea(%rip),%xmm0
movaps %xmm0,0x10(%rsp)
movaps 0xeee(%rip),%xmm0
movaps %xmm0,0x20(%rsp)
movaps 0xef2(%rip),%xmm0
movaps %xmm0,0x30(%rsp)
movaps 0xef6(%rip),%xmm0
movaps %xmm0,0x40(%rsp)
mov    %rsp,%rdi
call   1030 <exibe@plt>
add    $0x58,%rsp
ret

LLVM IR (-O0):
define void @main() {
%1 = alloca [20 x i32]
%2 = alloca i32
store i32 0, i32* %2
br label %3
3: ; preds = %12, %0
%4 = load i32, i32* %2
%5 = icmp slt i32 %4, 20
br i1 %5, label %6, label %15
6: ; preds = %3
%7 = load i32, i32* %2
%8 = mul nsw i32 %7, 2
%9 = load i32, i32* %2
%10 = sext i32 %9 to i64
%11 = getelementptr inbounds [20 x i32], [20 x i32]* %1, i64 0, i64 %10
store i32 %8, i32* %11
br label %12
12: ; preds = %6
%13 = load i32, i32* %2
%14 = add nsw i32 %13, 1
store i32 %14, i32* %2
br label %3
15: ; preds = %3
%16 = getelementptr inbounds [20 x i32], [20 x i32]* %1, i64 0, i64 0
%17 = call i32 @exibe(i32* %16)
ret void
}

LLVM IR (-O2):
define void @main() {
%1 = alloca [20 x i32]
%2 = bitcast [20 x i32]* %1 to i8*
%3 = getelementptr inbounds [20 x i32], [20 x i32]* %1, i64 0, i64 0
%4 = bitcast [20 x i32]* %1 to <4 x i32>*
store <4 x i32> <i32 0, i32 2, i32 4, i32 6>, <4 x i32>* %4
%5 = getelementptr inbounds [20 x i32], [20 x i32]* %1, i64 0, i64 4
%6 = bitcast i32* %5 to <4 x i32>*
store <4 x i32> <i32 8, i32 10, i32 12, i32 14>, <4 x i32>* %6
%7 = getelementptr inbounds [20 x i32], [20 x i32]* %1, i64 0, i64 8
%8 = bitcast i32* %7 to <4 x i32>*
store <4 x i32> <i32 16, i32 18, i32 20, i32 22>, <4 x i32>* %8
%9 = getelementptr inbounds [20 x i32], [20 x i32]* %1, i64 0, i64 12
%10 = bitcast i32* %9 to <4 x i32>*
store <4 x i32> <i32 24, i32 26, i32 28, i32 30>, <4 x i32>* %10
%11 = getelementptr inbounds [20 x i32], [20 x i32]* %1, i64 0, i64 16
%12 = bitcast i32* %11 to <4 x i32>*
store <4 x i32> <i32 32, i32 34, i32 36, i32 38>, <4 x i32>* %12
%13 = call i32 @exibe(i32* %3)
ret void
}
/* Type definitions */
struct pollfd {
  int dummy;
};
typedef int /*<<< orphan*/ nfds_t;

/* Variables and functions */
int /*<<< orphan*/ assert(int);
int poll(struct pollfd pfd[], nfds_t nfds, int timeout) {
  assert(!"NYI");
  return -1;
}


x86 assembly (clang, -O0):
<poll>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
mov    %rdi,-0x8(%rbp)
mov    %esi,-0xc(%rbp)
mov    %edx,-0x10(%rbp)
xor    %edi,%edi
call   1030 <assert@plt>
mov    $0xffffffff,%eax
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<poll>:
push   %rax
xor    %edi,%edi
call   1030 <assert@plt>
mov    $0xffffffff,%eax
pop    %rcx
ret

LLVM IR (-O0):
%struct.pollfd = type { i32 }
@.str = [4 x i8] c"NYI\00"
define i32 @poll(%struct.pollfd* %0, i32 %1, i32 %2) {
%4 = alloca %struct.pollfd*
%5 = alloca i32
%6 = alloca i32
store %struct.pollfd* %0, %struct.pollfd** %4
store i32 %1, i32* %5
store i32 %2, i32* %6
%7 = call i32 @assert(i32 0)
ret i32 -1
}

LLVM IR (-O2):
%struct.pollfd = type { i32 }
define i32 @poll(%struct.pollfd* nocapture readnone %0, i32 %1, i32 %2) {
%4 = tail call i32 @assert(i32 0)
ret i32 -1
}
/* Variables and functions */
int /*<<< orphan*/ assert(int);
void max_test(void) { assert(((1) > (2) ? (1) : (2)) == 2); }


x86 assembly (clang, -O0):
<max_test>:
push   %rbp
mov    %rsp,%rbp
mov    $0x1,%edi
call   1030 <assert@plt>
pop    %rbp
ret

x86 assembly (clang, -O2):
<max_test>:
mov    $0x1,%edi
jmp    1030 <assert@plt>

LLVM IR (-O0):
define void @max_test() {
%1 = call i32 @assert(i32 1)
ret void
}

LLVM IR (-O2):
define void @max_test() {
%1 = tail call i32 @assert(i32 1)
ret void
}