xunge/DecIR huggingface dataset:
/* Variables and functions */
int JKISS();
double F_JKISS(void) {
  double d;
  unsigned int a, b;
  a = JKISS() >> 6;
  b = JKISS() >> 5;
  d = (a * 134217728.0 + b) / 9007199254740992.0;
  return d;
}


x86 assembly (clang, -O0):
<F_JKISS>:
push   %rbp
mov    %rsp,%rbp
sub    $0x20,%rsp
xor    %eax,%eax
mov    %al,-0x11(%rbp)
call   1030 <JKISS@plt>
mov    %eax,%ecx
mov    -0x11(%rbp),%al
sar    $0x6,%ecx
mov    %ecx,-0xc(%rbp)
call   1030 <JKISS@plt>
sar    $0x5,%eax
mov    %eax,-0x10(%rbp)
mov    -0xc(%rbp),%eax
cvtsi2sd %rax,%xmm0
mov    -0x10(%rbp),%eax
cvtsi2sd %rax,%xmm1
movsd  0xeb8(%rip),%xmm2
mulsd  %xmm2,%xmm0
addsd  %xmm1,%xmm0
movsd  0xea0(%rip),%xmm1
divsd  %xmm1,%xmm0
movsd  %xmm0,-0x8(%rbp)
movsd  -0x8(%rbp),%xmm0
add    $0x20,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<F_JKISS>:
push   %rbx
xor    %eax,%eax
call   1030 <JKISS@plt>
mov    %eax,%ebx
sar    $0x6,%ebx
xor    %eax,%eax
call   1030 <JKISS@plt>
sar    $0x5,%eax
cvtsi2sd %rbx,%xmm0
cvtsi2sd %rax,%xmm1
mulsd  0xec7(%rip),%xmm0
addsd  %xmm1,%xmm0
mulsd  0xec3(%rip),%xmm0
pop    %rbx
ret

LLVM IR (-O0):
define double @F_JKISS() {
%1 = alloca double
%2 = alloca i32
%3 = alloca i32
%4 = call i32 (...) @JKISS()
%5 = ashr i32 %4, 6
store i32 %5, i32* %2
%6 = call i32 (...) @JKISS()
%7 = ashr i32 %6, 5
store i32 %7, i32* %3
%8 = load i32, i32* %2
%9 = uitofp i32 %8 to double
%10 = load i32, i32* %3
%11 = uitofp i32 %10 to double
%12 = call double @llvm.fmuladd.f64(double %9, double 0x41A0000000000000, double %11)
%13 = fdiv double %12, 0x4340000000000000
store double %13, double* %1
%14 = load double, double* %1
ret double %14
}

LLVM IR (-O2):
define double @F_JKISS() {
%1 = tail call i32 (...) @JKISS()
%2 = ashr i32 %1, 6
%3 = tail call i32 (...) @JKISS()
%4 = ashr i32 %3, 5
%5 = uitofp i32 %2 to double
%6 = uitofp i32 %4 to double
%7 = tail call double @llvm.fmuladd.f64(double %5, double 0x41A0000000000000, double %6)
%8 = fmul double %7, 0x3CA0000000000000
ret double %8
}
/* Variables and functions */
int /*<<< orphan*/ printf(char *);
int main() {
  int a, b, c;
  a = 5;
  b = 6;
  c = 7;
  printf("ab c\tde\rf\n");
  printf("hijk\tL\bM\n");
  return 0;
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
movl   $0x0,-0x4(%rbp)
movl   $0x5,-0x8(%rbp)
movl   $0x6,-0xc(%rbp)
movl   $0x7,-0x10(%rbp)
lea    0xec5(%rip),%rdi
call   1030 <printf@plt>
lea    0xec4(%rip),%rdi
call   1030 <printf@plt>
xor    %eax,%eax
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %rax
lea    0xee8(%rip),%rdi
call   1030 <puts@plt>
lea    0xee6(%rip),%rdi
call   1030 <puts@plt>
xor    %eax,%eax
pop    %rcx
ret

LLVM IR (-O0):
@.str = [11 x i8] c"ab c\09de\0Df\0A\00"
@.str.1 = [10 x i8] c"hijk\09L\08M\0A\00"
define i32 @main() {
%1 = alloca i32
%2 = alloca i32
%3 = alloca i32
%4 = alloca i32
store i32 0, i32* %1
store i32 5, i32* %2
store i32 6, i32* %3
store i32 7, i32* %4
%5 = call i32 @printf(i8* getelementptr inbounds ([11 x i8], [11 x i8]* @.str, i64 0, i64 0))
%6 = call i32 @printf(i8* getelementptr inbounds ([10 x i8], [10 x i8]* @.str.1, i64 0, i64 0))
ret i32 0
}

LLVM IR (-O2):
@str = [10 x i8] c"ab c\09de\0Df\00"
@str.2 = [9 x i8] c"hijk\09L\08M\00"
define i32 @main() {
%1 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([10 x i8], [10 x i8]* @str, i64 0, i64 0))
%2 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([9 x i8], [9 x i8]* @str.2, i64 0, i64 0))
ret i32 0
}
/* Variables and functions */
int /*<<< orphan*/ fprintf(int /*<<< orphan*/, char *, char *, char *);
int /*<<< orphan*/ stderr;
void version(void) { fprintf(stderr, "%s-%s\n", "lide", "0.0.1"); }


x86 assembly (clang, -O0):
<version>:
push   %rbp
mov    %rsp,%rbp
mov    0x2ec5(%rip),%rax
mov    (%rax),%edi
lea    0xedc(%rip),%rsi
lea    0xedc(%rip),%rdx
lea    0xeda(%rip),%rcx
call   1030 <fprintf@plt>
pop    %rbp
ret

x86 assembly (clang, -O2):
<version>:
mov    0x2ec9(%rip),%rax
mov    (%rax),%edi
lea    0xee0(%rip),%rsi
lea    0xee0(%rip),%rdx
lea    0xede(%rip),%rcx
jmp    1030 <fprintf@plt>

LLVM IR (-O0):
@stderr = global i32 0
@.str = [7 x i8] c"%s-%s\0A\00"
@.str.1 = [5 x i8] c"lide\00"
@.str.2 = [6 x i8] c"0.0.1\00"
define void @version() {
%1 = load i32, i32* @stderr
%2 = call i32 @fprintf(i32 %1, i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str, i64 0, i64 0), i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.1, i64 0, i64 0), i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.2, i64 0, i64 0))
ret void
}

LLVM IR (-O2):
@stderr = global i32 0
@.str = [7 x i8] c"%s-%s\0A\00"
@.str.1 = [5 x i8] c"lide\00"
@.str.2 = [6 x i8] c"0.0.1\00"
define void @version() {
%1 = load i32, i32* @stderr
%2 = tail call i32 @fprintf(i32 %1, i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str, i64 0, i64 0), i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.1, i64 0, i64 0), i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.2, i64 0, i64 0))
ret void
}
/* Variables and functions */
int /*<<< orphan*/ vecNd_mult_vecNd(double *, double const *, double const *,
                                    int);
void vec3d_mult_vec3d(double m[9], const double A[3], const double B[3]) {
  vecNd_mult_vecNd(m, A, B, 3);
}


x86 assembly (clang, -O0):
<vec3d_mult_vec3d>:
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
mov    $0x3,%ecx
call   1030 <vecNd_mult_vecNd@plt>
add    $0x20,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<vec3d_mult_vec3d>:
mov    $0x3,%ecx
jmp    1030 <vecNd_mult_vecNd@plt>

LLVM IR (-O0):
define void @vec3d_mult_vec3d(double* %0, double* %1, double* %2) {
%4 = alloca double*
%5 = alloca double*
%6 = alloca double*
store double* %0, double** %4
store double* %1, double** %5
store double* %2, double** %6
%7 = load double*, double** %4
%8 = load double*, double** %5
%9 = load double*, double** %6
%10 = call i32 @vecNd_mult_vecNd(double* %7, double* %8, double* %9, i32 3)
ret void
}

LLVM IR (-O2):
define void @vec3d_mult_vec3d(double* %0, double* %1, double* %2) {
%4 = tail call i32 @vecNd_mult_vecNd(double* %0, double* %1, double* %2, i32 3)
ret void
}
/* Variables and functions */
int /*<<< orphan*/ mkdtemp(char *);
int main(int argc, char **argv) {
  char buf[16];
  if (argc < 0) {
    mkdtemp(buf);
  }
  return 0;
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x20,%rsp
movl   $0x0,-0x4(%rbp)
mov    %edi,-0x8(%rbp)
mov    %rsi,-0x10(%rbp)
cmpl   $0x0,-0x8(%rbp)
jge    1139 <main+0x29>
lea    -0x20(%rbp),%rdi
call   1030 <mkdtemp@plt>
xor    %eax,%eax
add    $0x20,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
test   %edi,%edi
js     1117 <main+0x7>
xor    %eax,%eax
ret
sub    $0x18,%rsp
mov    %rsp,%rdi
call   1030 <mkdtemp@plt>
add    $0x18,%rsp
xor    %eax,%eax
ret

LLVM IR (-O0):
define i32 @main(i32 %0, i8** %1) {
%3 = alloca i32
%4 = alloca i32
%5 = alloca i8**
%6 = alloca [16 x i8]
store i32 0, i32* %3
store i32 %0, i32* %4
store i8** %1, i8*** %5
%7 = load i32, i32* %4
%8 = icmp slt i32 %7, 0
br i1 %8, label %9, label %12
9: ; preds = %2
%10 = getelementptr inbounds [16 x i8], [16 x i8]* %6, i64 0, i64 0
%11 = call i32 @mkdtemp(i8* %10)
br label %12
12: ; preds = %9, %2
ret i32 0
}

LLVM IR (-O2):
define i32 @main(i32 %0, i8** nocapture readnone %1) {
%3 = alloca [16 x i8]
%4 = getelementptr inbounds [16 x i8], [16 x i8]* %3, i64 0, i64 0
%5 = icmp slt i32 %0, 0
br i1 %5, label %6, label %8
6: ; preds = %2
%7 = call i32 @mkdtemp(i8* %4)
br label %8
8: ; preds = %6, %2
ret i32 0
}
/* Variables and functions */
int /*<<< orphan*/ free(char *);
int /*<<< orphan*/ parse_json(int /*<<< orphan*/, char **, char **);
int /*<<< orphan*/ read_native_message();
scalar_t__ strtoumax(char *, int /*<<< orphan*/ *, int);
unsigned int get_skip_solution_count() {
  char *key;
  char *val;
  parse_json(read_native_message(), &key, &val);
  unsigned int skip_solution_count;
  skip_solution_count = (unsigned int)strtoumax(val, NULL, 10);
  free(key);
  free(val);
  return skip_solution_count;
}


x86 assembly (clang, -O0):
<get_skip_solution_count>:
push   %rbp
mov    %rsp,%rbp
sub    $0x20,%rsp
mov    $0x0,%al
call   1040 <read_native_message@plt>
mov    %eax,%edi
lea    -0x8(%rbp),%rsi
lea    -0x10(%rbp),%rdx
call   1060 <parse_json@plt>
mov    -0x10(%rbp),%rdi
xor    %eax,%eax
mov    %eax,%esi
mov    $0xa,%edx
call   1050 <strtoumax@plt>
mov    %eax,-0x14(%rbp)
mov    -0x8(%rbp),%rdi
call   1030 <free@plt>
mov    -0x10(%rbp),%rdi
call   1030 <free@plt>
mov    -0x14(%rbp),%eax
add    $0x20,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<get_skip_solution_count>:
push   %rbx
sub    $0x10,%rsp
xor    %eax,%eax
call   1040 <read_native_message@plt>
lea    0x8(%rsp),%rsi
mov    %rsp,%rdx
mov    %eax,%edi
call   1060 <parse_json@plt>
mov    (%rsp),%rdi
xor    %esi,%esi
mov    $0xa,%edx
call   1050 <strtoumax@plt>
mov    %rax,%rbx
mov    0x8(%rsp),%rdi
call   1030 <free@plt>
mov    (%rsp),%rdi
call   1030 <free@plt>
mov    %ebx,%eax
add    $0x10,%rsp
pop    %rbx
ret

LLVM IR (-O0):
define i32 @get_skip_solution_count() {
%1 = alloca i8*
%2 = alloca i8*
%3 = alloca i32
%4 = call i32 (...) @read_native_message()
%5 = call i32 @parse_json(i32 %4, i8** %1, i8** %2)
%6 = load i8*, i8** %2
%7 = call i64 @strtoumax(i8* %6, i32* null, i32 10)
%8 = trunc i64 %7 to i32
store i32 %8, i32* %3
%9 = load i8*, i8** %1
%10 = call i32 @free(i8* %9)
%11 = load i8*, i8** %2
%12 = call i32 @free(i8* %11)
%13 = load i32, i32* %3
ret i32 %13
}

LLVM IR (-O2):
define i32 @get_skip_solution_count() {
%1 = alloca i8*
%2 = alloca i8*
%3 = bitcast i8** %1 to i8*
%4 = bitcast i8** %2 to i8*
%5 = tail call i32 (...) @read_native_message()
%6 = call i32 @parse_json(i32 %5, i8** %1, i8** %2)
%7 = load i8*, i8** %2
%8 = call i64 @strtoumax(i8* %7, i32* null, i32 10)
%9 = trunc i64 %8 to i32
%10 = load i8*, i8** %1
%11 = call i32 @free(i8* %10)
%12 = load i8*, i8** %2
%13 = call i32 @free(i8* %12)
ret i32 %9
}
/* Variables and functions */
int /*<<< orphan*/ printf(char *, int, short, int);
int fun_stub_base_10_stub(int a, short b, int c) {
  printf("fun_stub_base_10_stub:a = %d, b = %d, c = %d\n", a, b, c);
  return a + b + c;
}


x86 assembly (clang, -O0):
<fun_stub_base_10_stub>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
mov    %si,%ax
mov    %edi,-0x4(%rbp)
mov    %ax,-0x6(%rbp)
mov    %edx,-0xc(%rbp)
mov    -0x4(%rbp),%esi
mov    -0x6(%rbp),%ax
mov    -0xc(%rbp),%ecx
lea    0xeca(%rip),%rdi
movswl %ax,%edx
call   1030 <printf@plt>
mov    -0x4(%rbp),%eax
movswl -0x6(%rbp),%ecx
add    %ecx,%eax
add    -0xc(%rbp),%eax
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<fun_stub_base_10_stub>:
push   %rbp
push   %r14
push   %rbx
mov    %edx,%r14d
mov    %esi,%ebp
mov    %edi,%ebx
lea    0xede(%rip),%rdi
mov    %ebx,%esi
mov    %ebp,%edx
mov    %r14d,%ecx
call   1030 <printf@plt>
add    %ebx,%ebp
add    %r14d,%ebp
mov    %ebp,%eax
pop    %rbx
pop    %r14
pop    %rbp
ret

LLVM IR (-O0):
@.str = [46 x i8] c"fun_stub_base_10_stub:a = %d, b = %d, c = %d\0A\00"
define i32 @fun_stub_base_10_stub(i32 %0, i16 signext %1, i32 %2) {
%4 = alloca i32
%5 = alloca i16
%6 = alloca i32
store i32 %0, i32* %4
store i16 %1, i16* %5
store i32 %2, i32* %6
%7 = load i32, i32* %4
%8 = load i16, i16* %5
%9 = load i32, i32* %6
%10 = call i32 @printf(i8* getelementptr inbounds ([46 x i8], [46 x i8]* @.str, i64 0, i64 0), i32 %7, i16 signext %8, i32 %9)
%11 = load i32, i32* %4
%12 = load i16, i16* %5
%13 = sext i16 %12 to i32
%14 = add nsw i32 %11, %13
%15 = load i32, i32* %6
%16 = add nsw i32 %14, %15
ret i32 %16
}

LLVM IR (-O2):
@.str = [46 x i8] c"fun_stub_base_10_stub:a = %d, b = %d, c = %d\0A\00"
define i32 @fun_stub_base_10_stub(i32 %0, i16 signext %1, i32 %2) {
%4 = tail call i32 @printf(i8* getelementptr inbounds ([46 x i8], [46 x i8]* @.str, i64 0, i64 0), i32 %0, i16 signext %1, i32 %2)
%5 = sext i16 %1 to i32
%6 = add nsw i32 %5, %0
%7 = add nsw i32 %6, %2
ret i32 %7
}
/* Variables and functions */
int getuid();
int g_getuid(void) { return getuid(); }


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

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

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

LLVM IR (-O2):
define i32 @g_getuid() {
%1 = tail call i32 (...) @getuid()
ret i32 %1
}
int tls13_server_certificate_verify_recv(struct tls13_ctx *ctx) { return 1; }


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

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

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

LLVM IR (-O2):
%struct.tls13_ctx = type opaque
define i32 @tls13_server_certificate_verify_recv(%struct.tls13_ctx* nocapture readnone %0) {
ret i32 1
}
signed short int
signedshortint_ignoring_unsignedlonglongint(signed short int x,
                                            unsigned long long int y) {
  return x;
}


x86 assembly (clang, -O0):
<signedshortint_ignoring_unsignedlonglongint>:
push   %rbp
mov    %rsp,%rbp
mov    %di,%ax
mov    %ax,-0x2(%rbp)
mov    %rsi,-0x10(%rbp)
movswl -0x2(%rbp),%eax
pop    %rbp
ret

x86 assembly (clang, -O2):
<signedshortint_ignoring_unsignedlonglongint>:
mov    %edi,%eax
ret

LLVM IR (-O0):
define signext i16 @signedshortint_ignoring_unsignedlonglongint(i16 signext %0, i64 %1) {
%3 = alloca i16
%4 = alloca i64
store i16 %0, i16* %3
store i64 %1, i64* %4
%5 = load i16, i16* %3
ret i16 %5
}

LLVM IR (-O2):
define signext i16 @signedshortint_ignoring_unsignedlonglongint(i16 returned signext %0, i64 %1) {
ret i16 %0
}
/* Variables and functions */
int /*<<< orphan*/ Comprimir(char *);
int /*<<< orphan*/ Huffman();
int /*<<< orphan*/ LerArquivo(char *);
int /*<<< orphan*/ exit(int);
int /*<<< orphan*/ printf(char *);
int main(int argc, char *argv[]) {
  if (argc < 2) {
    printf("Falta arquivo txt\n");
    exit(1);
  }
  LerArquivo(argv[1]);
  Huffman();
  Comprimir(argv[1]);
  return 0;
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
movl   $0x0,-0x4(%rbp)
mov    %edi,-0x8(%rbp)
mov    %rsi,-0x10(%rbp)
cmpl   $0x2,-0x8(%rbp)
jge    1186 <main+0x36>
lea    0xe89(%rip),%rdi
call   1030 <printf@plt>
mov    $0x1,%edi
call   1060 <exit@plt>
mov    -0x10(%rbp),%rax
mov    0x8(%rax),%rdi
call   1040 <LerArquivo@plt>
mov    $0x0,%al
call   1070 <Huffman@plt>
mov    -0x10(%rbp),%rax
mov    0x8(%rax),%rdi
call   1050 <Comprimir@plt>
xor    %eax,%eax
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %rbx
cmp    $0x1,%edi
jle    1176 <main+0x26>
mov    %rsi,%rbx
mov    0x8(%rsi),%rdi
call   1040 <LerArquivo@plt>
xor    %eax,%eax
call   1070 <Huffman@plt>
mov    0x8(%rbx),%rdi
call   1050 <Comprimir@plt>
xor    %eax,%eax
pop    %rbx
ret
lea    0xe83(%rip),%rdi
call   1030 <puts@plt>
mov    $0x1,%edi
call   1060 <exit@plt>

LLVM IR (-O0):
@.str = [19 x i8] c"Falta arquivo txt\0A\00"
define i32 @main(i32 %0, i8** %1) {
%3 = alloca i32
%4 = alloca i32
%5 = alloca i8**
store i32 0, i32* %3
store i32 %0, i32* %4
store i8** %1, i8*** %5
%6 = load i32, i32* %4
%7 = icmp slt i32 %6, 2
br i1 %7, label %8, label %11
8: ; preds = %2
%9 = call i32 @printf(i8* getelementptr inbounds ([19 x i8], [19 x i8]* @.str, i64 0, i64 0))
%10 = call i32 @exit(i32 1)
unreachable
11: ; preds = %2
%12 = load i8**, i8*** %5
%13 = getelementptr inbounds i8*, i8** %12, i64 1
%14 = load i8*, i8** %13
%15 = call i32 @LerArquivo(i8* %14)
%16 = call i32 (...) @Huffman()
%17 = load i8**, i8*** %5
%18 = getelementptr inbounds i8*, i8** %17, i64 1
%19 = load i8*, i8** %18
%20 = call i32 @Comprimir(i8* %19)
ret i32 0
}

LLVM IR (-O2):
@str = [18 x i8] c"Falta arquivo txt\00"
define i32 @main(i32 %0, i8** nocapture %1) {
%3 = icmp slt i32 %0, 2
br i1 %3, label %4, label %7
4: ; preds = %2
%5 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([18 x i8], [18 x i8]* @str, i64 0, i64 0))
%6 = tail call i32 @exit(i32 1)
unreachable
7: ; preds = %2
%8 = getelementptr inbounds i8*, i8** %1, i64 1
%9 = load i8*, i8** %8
%10 = tail call i32 @LerArquivo(i8* %9)
%11 = tail call i32 (...) @Huffman()
%12 = load i8*, i8** %8
%13 = tail call i32 @Comprimir(i8* %12)
ret i32 0
}
int hl_mark_size(int data_size) {
  int ptr_count = (data_size + 8 - 1) / 8;
  return ((ptr_count + 31) >> 5) * sizeof(int);
}


x86 assembly (clang, -O0):
<hl_mark_size>:
push   %rbp
mov    %rsp,%rbp
mov    %edi,-0x4(%rbp)
mov    -0x4(%rbp),%eax
add    $0x8,%eax
sub    $0x1,%eax
mov    $0x8,%ecx
cltd
idiv   %ecx
mov    %eax,-0x8(%rbp)
mov    -0x8(%rbp),%eax
add    $0x1f,%eax
sar    $0x5,%eax
cltq
shl    $0x2,%rax
pop    %rbp
ret

x86 assembly (clang, -O2):
<hl_mark_size>:
lea    0x7(%rdi),%ecx
lea    0xe(%rdi),%eax
test   %ecx,%ecx
cmovns %ecx,%eax
sar    $0x3,%eax
add    $0x1f,%eax
sar    $0x3,%eax
and    $0xfffffffc,%eax
ret

LLVM IR (-O0):
define i32 @hl_mark_size(i32 %0) {
%2 = alloca i32
%3 = alloca i32
store i32 %0, i32* %2
%4 = load i32, i32* %2
%5 = add nsw i32 %4, 8
%6 = sub nsw i32 %5, 1
%7 = sdiv i32 %6, 8
store i32 %7, i32* %3
%8 = load i32, i32* %3
%9 = add nsw i32 %8, 31
%10 = ashr i32 %9, 5
%11 = sext i32 %10 to i64
%12 = mul i64 %11, 4
%13 = trunc i64 %12 to i32
ret i32 %13
}

LLVM IR (-O2):
define i32 @hl_mark_size(i32 %0) {
%2 = add nsw i32 %0, 7
%3 = sdiv i32 %2, 8
%4 = add nsw i32 %3, 31
%5 = ashr i32 %4, 3
%6 = and i32 %5, -4
ret i32 %6
}
/* Type definitions */
struct Graph {
  int dummy;
};

/* Variables and functions */
int /*<<< orphan*/ free(struct Graph *);
void release_Graph(struct Graph *p_Graph) { free(p_Graph); }


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

x86 assembly (clang, -O2):
<release_Graph>:
jmp    1030 <free@plt>

LLVM IR (-O0):
%struct.Graph = type { i32 }
define void @release_Graph(%struct.Graph* %0) {
%2 = alloca %struct.Graph*
store %struct.Graph* %0, %struct.Graph** %2
%3 = load %struct.Graph*, %struct.Graph** %2
%4 = call i32 @free(%struct.Graph* %3)
ret void
}

LLVM IR (-O2):
%struct.Graph = type { i32 }
define void @release_Graph(%struct.Graph* nocapture %0) {
%2 = tail call i32 @free(%struct.Graph* %0)
ret void
}
void gtk_spin_button_spin() {}


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

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

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

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


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

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

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

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

/* Variables and functions */
uint16_t cblByteOrderSwap16LittleToHost(uint16_t swap) { return swap; }


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

x86 assembly (clang, -O2):
<cblByteOrderSwap16LittleToHost>:
mov    %edi,%eax
ret

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

LLVM IR (-O2):
define i32 @cblByteOrderSwap16LittleToHost(i32 returned %0) {
ret i32 %0
}
void _dist_code(void) {}


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

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

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

LLVM IR (-O2):
define void @_dist_code() {
ret void
}
int Cyc_PrattProver_is_var_term(void *t) {
  void *_T0;
  int *_T1;
  int _T2;
  _T0 = t;
  _T1 = (int *)_T0;
  _T2 = *_T1;
  if (_T2 != 2)
    goto _TL1E9;
  return 1;
_TL1E9:
  return 0;
  ;
}


x86 assembly (clang, -O0):
<Cyc_PrattProver_is_var_term>:
push   %rbp
mov    %rsp,%rbp
mov    %rdi,-0x10(%rbp)
mov    -0x10(%rbp),%rax
mov    %rax,-0x18(%rbp)
mov    -0x18(%rbp),%rax
mov    %rax,-0x20(%rbp)
mov    -0x20(%rbp),%rax
mov    (%rax),%eax
mov    %eax,-0x24(%rbp)
cmpl   $0x2,-0x24(%rbp)
je     1130 <Cyc_PrattProver_is_var_term+0x30>
jmp    113c <Cyc_PrattProver_is_var_term+0x3c>
movl   $0x1,-0x4(%rbp)
jmp    1143 <Cyc_PrattProver_is_var_term+0x43>
movl   $0x0,-0x4(%rbp)
mov    -0x4(%rbp),%eax
pop    %rbp
ret

x86 assembly (clang, -O2):
<Cyc_PrattProver_is_var_term>:
xor    %eax,%eax
cmpl   $0x2,(%rdi)
sete   %al
ret

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

LLVM IR (-O2):
define i32 @Cyc_PrattProver_is_var_term(i8* nocapture %0) {
%2 = bitcast i8* %0 to i32*
%3 = load i32, i32* %2
%4 = icmp eq i32 %3, 2
%5 = zext i1 %4 to i32
ret i32 %5
}
/* Variables and functions */
int /*<<< orphan*/ errno;
int /*<<< orphan*/ slog(int, char *, char *, int /*<<< orphan*/);
int /*<<< orphan*/ strerror(int /*<<< orphan*/);
void sperror(char *message) { slog(1, "%s: %s\n", message, strerror(errno)); }


x86 assembly (clang, -O0):
<sperror>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
mov    %rdi,-0x8(%rbp)
mov    -0x8(%rbp),%rax
mov    %rax,-0x10(%rbp)
mov    0x2ea5(%rip),%rax
mov    (%rax),%edi
call   1040 <strerror@plt>
mov    -0x10(%rbp),%rdx
mov    %eax,%ecx
mov    $0x1,%edi
lea    0xeac(%rip),%rsi
call   1030 <slog@plt>
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<sperror>:
push   %rbx
mov    %rdi,%rbx
mov    0x2eb5(%rip),%rax
mov    (%rax),%edi
call   1040 <strerror@plt>
lea    0xec7(%rip),%rsi
mov    $0x1,%edi
mov    %rbx,%rdx
mov    %eax,%ecx
pop    %rbx
jmp    1030 <slog@plt>

LLVM IR (-O0):
@.str = [8 x i8] c"%s: %s\0A\00"
@errno = global i32 0
define void @sperror(i8* %0) {
%2 = alloca i8*
store i8* %0, i8** %2
%3 = load i8*, i8** %2
%4 = load i32, i32* @errno
%5 = call i32 @strerror(i32 %4)
%6 = call i32 @slog(i32 1, i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str, i64 0, i64 0), i8* %3, i32 %5)
ret void
}

LLVM IR (-O2):
@.str = [8 x i8] c"%s: %s\0A\00"
@errno = global i32 0
define void @sperror(i8* %0) {
%2 = load i32, i32* @errno
%3 = tail call i32 @strerror(i32 %2)
%4 = tail call i32 @slog(i32 1, i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str, i64 0, i64 0), i8* %0, i32 %3)
ret void
}
int tosMemory_IntToInt32(int value) { return value; }


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

x86 assembly (clang, -O2):
<tosMemory_IntToInt32>:
mov    %edi,%eax
ret

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

LLVM IR (-O2):
define i32 @tosMemory_IntToInt32(i32 returned %0) {
ret i32 %0
}
void swap(int *a, int *b) {
  int tmp;
  if (*a > *b) {
    tmp = *a;
    *a = *b;
    *b = tmp;
  }
}


x86 assembly (clang, -O0):
<swap>:
push   %rbp
mov    %rsp,%rbp
mov    %rdi,-0x8(%rbp)
mov    %rsi,-0x10(%rbp)
mov    -0x8(%rbp),%rax
mov    (%rax),%eax
mov    -0x10(%rbp),%rcx
cmp    (%rcx),%eax
jle    113c <swap+0x3c>
mov    -0x8(%rbp),%rax
mov    (%rax),%eax
mov    %eax,-0x14(%rbp)
mov    -0x10(%rbp),%rax
mov    (%rax),%ecx
mov    -0x8(%rbp),%rax
mov    %ecx,(%rax)
mov    -0x14(%rbp),%ecx
mov    -0x10(%rbp),%rax
mov    %ecx,(%rax)
pop    %rbp
ret

x86 assembly (clang, -O2):
<swap>:
mov    (%rdi),%eax
mov    (%rsi),%ecx
cmp    %ecx,%eax
jle    110c <swap+0xc>
mov    %ecx,(%rdi)
mov    %eax,(%rsi)
ret

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

LLVM IR (-O2):
define void @swap(i32* nocapture %0, i32* nocapture %1) {
%3 = load i32, i32* %0
%4 = load i32, i32* %1
%5 = icmp sgt i32 %3, %4
br i1 %5, label %6, label %7
6: ; preds = %2
store i32 %4, i32* %0
store i32 %3, i32* %1
br label %7
7: ; preds = %6, %2
ret void
}
int fun205() { return 205; }


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

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

LLVM IR (-O0):
define i32 @fun205() {
ret i32 205
}

LLVM IR (-O2):
define i32 @fun205() {
ret i32 205
}
XSetNormalHints() {}


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

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

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

LLVM IR (-O2):
define i32 @XSetNormalHints() {
ret i32 undef
}
/* Variables and functions */
int /*<<< orphan*/ t100add();
int /*<<< orphan*/ t101add();
int /*<<< orphan*/ t102sub();
int /*<<< orphan*/ t103sub();
int /*<<< orphan*/ t104mul();
int /*<<< orphan*/ t105mul();
int /*<<< orphan*/ t106mul();
int /*<<< orphan*/ t107add();
int /*<<< orphan*/ t108add();
int /*<<< orphan*/ t109add();
int /*<<< orphan*/ t110sub();
int main() {
  t100add();
  t101add();
  t102sub();
  t103sub();
  t104mul();
  t105mul();
  t106mul();
  t107add();
  t108add();
  t109add();
  t110sub();
  return 0;
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
movl   $0x0,-0x4(%rbp)
mov    $0x0,%al
call   1040 <t100add@plt>
mov    $0x0,%al
call   1090 <t101add@plt>
mov    $0x0,%al
call   10b0 <t102sub@plt>
mov    $0x0,%al
call   1030 <t103sub@plt>
mov    $0x0,%al
call   10c0 <t104mul@plt>
mov    $0x0,%al
call   1070 <t105mul@plt>
mov    $0x0,%al
call   1050 <t106mul@plt>
mov    $0x0,%al
call   10a0 <t107add@plt>
mov    $0x0,%al
call   10d0 <t108add@plt>
mov    $0x0,%al
call   1080 <t109add@plt>
mov    $0x0,%al
call   1060 <t110sub@plt>
xor    %eax,%eax
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %rax
xor    %eax,%eax
call   1040 <t100add@plt>
xor    %eax,%eax
call   1090 <t101add@plt>
xor    %eax,%eax
call   10b0 <t102sub@plt>
xor    %eax,%eax
call   1030 <t103sub@plt>
xor    %eax,%eax
call   10c0 <t104mul@plt>
xor    %eax,%eax
call   1070 <t105mul@plt>
xor    %eax,%eax
call   1050 <t106mul@plt>
xor    %eax,%eax
call   10a0 <t107add@plt>
xor    %eax,%eax
call   10d0 <t108add@plt>
xor    %eax,%eax
call   1080 <t109add@plt>
xor    %eax,%eax
call   1060 <t110sub@plt>
xor    %eax,%eax
pop    %rcx
ret

LLVM IR (-O0):
define i32 @main() {
%1 = alloca i32
store i32 0, i32* %1
%2 = call i32 (...) @t100add()
%3 = call i32 (...) @t101add()
%4 = call i32 (...) @t102sub()
%5 = call i32 (...) @t103sub()
%6 = call i32 (...) @t104mul()
%7 = call i32 (...) @t105mul()
%8 = call i32 (...) @t106mul()
%9 = call i32 (...) @t107add()
%10 = call i32 (...) @t108add()
%11 = call i32 (...) @t109add()
%12 = call i32 (...) @t110sub()
ret i32 0
}

LLVM IR (-O2):
define i32 @main() {
%1 = tail call i32 (...) @t100add()
%2 = tail call i32 (...) @t101add()
%3 = tail call i32 (...) @t102sub()
%4 = tail call i32 (...) @t103sub()
%5 = tail call i32 (...) @t104mul()
%6 = tail call i32 (...) @t105mul()
%7 = tail call i32 (...) @t106mul()
%8 = tail call i32 (...) @t107add()
%9 = tail call i32 (...) @t108add()
%10 = tail call i32 (...) @t109add()
%11 = tail call i32 (...) @t110sub()
ret i32 0
}
/* Variables and functions */
int /*<<< orphan*/ default_parser(int, char *);
int /*<<< orphan*/ printf(char *, ...);
void test_fail(char *text) {
  printf("    ");
  default_parser(1, "Fail");
  printf(": [ %s ]\n", text);
}


x86 assembly (clang, -O0):
<test_fail>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
mov    %rdi,-0x8(%rbp)
lea    0xecd(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
mov    $0x1,%edi
lea    0xebf(%rip),%rsi
call   1040 <default_parser@plt>
mov    -0x8(%rbp),%rsi
lea    0xeb4(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<test_fail>:
push   %rbx
mov    %rdi,%rbx
lea    0xed5(%rip),%rdi
xor    %eax,%eax
call   1030 <printf@plt>
lea    0xecc(%rip),%rsi
mov    $0x1,%edi
call   1040 <default_parser@plt>
lea    0xec0(%rip),%rdi
mov    %rbx,%rsi
xor    %eax,%eax
pop    %rbx
jmp    1030 <printf@plt>

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

LLVM IR (-O2):
@.str = [5 x i8] c" \00"
@.str.1 = [5 x i8] c"Fail\00"
@.str.2 = [10 x i8] c": [ %s ]\0A\00"
define void @test_fail(i8* %0) {
%2 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([5 x i8], [5 x i8]* @.str, i64 0, i64 0))
%3 = tail call i32 @default_parser(i32 1, i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.1, i64 0, i64 0))
%4 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([10 x i8], [10 x i8]* @.str.2, i64 0, i64 0), i8* %0)
ret void
}
void GB_FIRST_f_FP32(float *z, const float *x, const float *y) { (*z) = (*x); }


x86 assembly (clang, -O0):
<GB_FIRST_f_FP32>:
push   %rbp
mov    %rsp,%rbp
mov    %rdi,-0x8(%rbp)
mov    %rsi,-0x10(%rbp)
mov    %rdx,-0x18(%rbp)
mov    -0x10(%rbp),%rax
movss  (%rax),%xmm0
mov    -0x8(%rbp),%rax
movss  %xmm0,(%rax)
pop    %rbp
ret

x86 assembly (clang, -O2):
<GB_FIRST_f_FP32>:
movss  (%rsi),%xmm0
movss  %xmm0,(%rdi)
ret

LLVM IR (-O0):
define void @GB_FIRST_f_FP32(float* %0, float* %1, float* %2) {
%4 = alloca float*
%5 = alloca float*
%6 = alloca float*
store float* %0, float** %4
store float* %1, float** %5
store float* %2, float** %6
%7 = load float*, float** %5
%8 = load float, float* %7
%9 = load float*, float** %4
store float %8, float* %9
ret void
}

LLVM IR (-O2):
define void @GB_FIRST_f_FP32(float* nocapture writeonly %0, float* nocapture %1, float* nocapture readnone %2) {
%4 = load float, float* %1
store float %4, float* %0
ret void
}
/* Variables and functions */
int /*<<< orphan*/ printf(char *);
int mydiv(void) {
  printf("\nCalling mydiv function");
  return -1;
}


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

x86 assembly (clang, -O2):
<mydiv>:
push   %rax
lea    0xee8(%rip),%rdi
call   1030 <printf@plt>
mov    $0xffffffff,%eax
pop    %rcx
ret

LLVM IR (-O0):
@.str = [24 x i8] c"\0ACalling mydiv function\00"
define i32 @mydiv() {
%1 = call i32 @printf(i8* getelementptr inbounds ([24 x i8], [24 x i8]* @.str, i64 0, i64 0))
ret i32 -1
}

LLVM IR (-O2):
@.str = [24 x i8] c"\0ACalling mydiv function\00"
define i32 @mydiv() {
%1 = tail call i32 @printf(i8* dereferenceable(1) getelementptr inbounds ([24 x i8], [24 x i8]* @.str, i64 0, i64 0))
ret i32 -1
}
/* Type definitions */
typedef int /*<<< orphan*/ time_t;
struct tm {
  int dummy;
};

/* Variables and functions */
struct tm *localtime_r(int /*<<< orphan*/ const *, struct tm *);
struct tm *gmtime_r(const time_t *timep, struct tm *result) {
  return localtime_r(timep, result);
}


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

x86 assembly (clang, -O2):
<gmtime_r>:
jmp    1030 <localtime_r@plt>

LLVM IR (-O0):
%struct.tm = type { i32 }
define %struct.tm* @gmtime_r(i32* %0, %struct.tm* %1) {
%3 = alloca i32*
%4 = alloca %struct.tm*
store i32* %0, i32** %3
store %struct.tm* %1, %struct.tm** %4
%5 = load i32*, i32** %3
%6 = load %struct.tm*, %struct.tm** %4
%7 = call %struct.tm* @localtime_r(i32* %5, %struct.tm* %6)
ret %struct.tm* %7
}

LLVM IR (-O2):
%struct.tm = type { i32 }
define %struct.tm* @gmtime_r(i32* %0, %struct.tm* %1) {
%3 = tail call %struct.tm* @localtime_r(i32* %0, %struct.tm* %1)
ret %struct.tm* %3
}
/* Variables and functions */
int /*<<< orphan*/ printf(char *);
void inter() { printf("test"); }


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

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

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

LLVM IR (-O2):
@.str = [5 x i8] c"test\00"
define void @inter() {
%1 = tail call i32 @printf(i8* dereferenceable(1) getelementptr inbounds ([5 x i8], [5 x i8]* @.str, i64 0, i64 0))
ret void
}
/* Variables and functions */
int /*<<< orphan*/ cdflib_cumgam(double *, double *, double *, double *);
void cdflib_cumchi(const double *x, const double *df, double *cum,
                   double *ccum) {
  double a;
  double xx;
  a = *df * 0.5;
  xx = *x * 0.5;
  cdflib_cumgam(&xx, &a, cum, ccum);
  return;
}


x86 assembly (clang, -O0):
<cdflib_cumchi>:
push   %rbp
mov    %rsp,%rbp
sub    $0x30,%rsp
mov    %rdi,-0x8(%rbp)
mov    %rsi,-0x10(%rbp)
mov    %rdx,-0x18(%rbp)
mov    %rcx,-0x20(%rbp)
mov    -0x10(%rbp),%rax
movsd  0xecc(%rip),%xmm0
mulsd  (%rax),%xmm0
movsd  %xmm0,-0x28(%rbp)
mov    -0x8(%rbp),%rax
movsd  0xeb7(%rip),%xmm0
mulsd  (%rax),%xmm0
movsd  %xmm0,-0x30(%rbp)
mov    -0x18(%rbp),%rdx
mov    -0x20(%rbp),%rcx
lea    -0x30(%rbp),%rdi
lea    -0x28(%rbp),%rsi
call   1030 <cdflib_cumgam@plt>
add    $0x30,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<cdflib_cumchi>:
sub    $0x18,%rsp
movsd  0xee4(%rip),%xmm0
movsd  (%rsi),%xmm1
mulsd  %xmm0,%xmm1
movsd  %xmm1,0x10(%rsp)
mulsd  (%rdi),%xmm0
movsd  %xmm0,0x8(%rsp)
lea    0x8(%rsp),%rdi
lea    0x10(%rsp),%rsi
call   1030 <cdflib_cumgam@plt>
add    $0x18,%rsp
ret

LLVM IR (-O0):
define void @cdflib_cumchi(double* %0, double* %1, double* %2, double* %3) {
%5 = alloca double*
%6 = alloca double*
%7 = alloca double*
%8 = alloca double*
%9 = alloca double
%10 = alloca double
store double* %0, double** %5
store double* %1, double** %6
store double* %2, double** %7
store double* %3, double** %8
%11 = load double*, double** %6
%12 = load double, double* %11
%13 = fmul double %12, 5.000000e-01
store double %13, double* %9
%14 = load double*, double** %5
%15 = load double, double* %14
%16 = fmul double %15, 5.000000e-01
store double %16, double* %10
%17 = load double*, double** %7
%18 = load double*, double** %8
%19 = call i32 @cdflib_cumgam(double* %10, double* %9, double* %17, double* %18)
ret void
}

LLVM IR (-O2):
define void @cdflib_cumchi(double* nocapture %0, double* nocapture %1, double* %2, double* %3) {
%5 = alloca double
%6 = alloca double
%7 = bitcast double* %5 to i8*
%8 = bitcast double* %6 to i8*
%9 = load double, double* %1
%10 = fmul double %9, 5.000000e-01
store double %10, double* %5
%11 = load double, double* %0
%12 = fmul double %11, 5.000000e-01
store double %12, double* %6
%13 = call i32 @cdflib_cumgam(double* %6, double* %5, double* %2, double* %3)
ret void
}
/* Variables and functions */
long _load_32(int);
unsigned char _gpio_in(unsigned char gpio_number) {
  long int value;
  if (gpio_number >= 32) {
    gpio_number -= 32;
    value = _load_32(0x3F200000 | 0x38);
  } else {
    value = _load_32(0x3F200000 | 0x34);
  }
  if (value & 1 << gpio_number) {
    return ((unsigned char)1);
  } else {
    return ((unsigned char)0);
  }
}


x86 assembly (clang, -O0):
<_gpio_in>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
mov    %dil,%al
mov    %al,-0x2(%rbp)
movzbl -0x2(%rbp),%eax
cmp    $0x20,%eax
jl     1148 <_gpio_in+0x38>
movzbl -0x2(%rbp),%eax
sub    $0x20,%eax
mov    %al,-0x2(%rbp)
mov    $0x3f200038,%edi
call   1030 <_load_32@plt>
mov    %rax,-0x10(%rbp)
jmp    1156 <_gpio_in+0x46>
mov    $0x3f200034,%edi
call   1030 <_load_32@plt>
mov    %rax,-0x10(%rbp)
mov    -0x10(%rbp),%rax
movzbl -0x2(%rbp),%ecx
mov    $0x1,%edx
shl    %cl,%edx
mov    %edx,%ecx
movslq %ecx,%rcx
and    %rcx,%rax
cmp    $0x0,%rax
je     1180 <_gpio_in+0x70>
movb   $0x1,-0x1(%rbp)
jmp    1184 <_gpio_in+0x74>
movb   $0x0,-0x1(%rbp)
movzbl -0x1(%rbp),%eax
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<_gpio_in>:
push   %rbx
lea    -0x20(%rdi),%ecx
xor    %eax,%eax
cmp    $0x20,%dil
setae  %al
lea    0x3f200034(,%rax,4),%eax
movzbl %cl,%ebx
cmovb  %edi,%ebx
mov    %eax,%edi
call   1030 <_load_32@plt>
mov    $0x1,%edx
mov    %ebx,%ecx
shl    %cl,%edx
movslq %edx,%rcx
test   %rcx,%rax
setne  %al
pop    %rbx
ret

LLVM IR (-O0):
define zeroext i8 @_gpio_in(i8 zeroext %0) {
%2 = alloca i8
%3 = alloca i8
%4 = alloca i64
store i8 %0, i8* %3
%5 = load i8, i8* %3
%6 = zext i8 %5 to i32
%7 = icmp sge i32 %6, 32
br i1 %7, label %8, label %14
8: ; preds = %1
%9 = load i8, i8* %3
%10 = zext i8 %9 to i32
%11 = sub nsw i32 %10, 32
%12 = trunc i32 %11 to i8
store i8 %12, i8* %3
%13 = call i64 @_load_32(i32 1059061816)
store i64 %13, i64* %4
br label %16
14: ; preds = %1
%15 = call i64 @_load_32(i32 1059061812)
store i64 %15, i64* %4
br label %16
16: ; preds = %14, %8
%17 = load i64, i64* %4
%18 = load i8, i8* %3
%19 = zext i8 %18 to i32
%20 = shl i32 1, %19
%21 = sext i32 %20 to i64
%22 = and i64 %17, %21
%23 = icmp ne i64 %22, 0
br i1 %23, label %24, label %25
24: ; preds = %16
store i8 1, i8* %2
br label %26
25: ; preds = %16
store i8 0, i8* %2
br label %26
26: ; preds = %25, %24
%27 = load i8, i8* %2
ret i8 %27
}

LLVM IR (-O2):
define zeroext i8 @_gpio_in(i8 zeroext %0) {
%2 = icmp ugt i8 %0, 31
%3 = add i8 %0, -32
%4 = select i1 %2, i32 1059061816, i32 1059061812
%5 = select i1 %2, i8 %3, i8 %0
%6 = tail call i64 @_load_32(i32 %4)
%7 = zext i8 %5 to i32
%8 = shl nuw i32 1, %7
%9 = sext i32 %8 to i64
%10 = and i64 %6, %9
%11 = icmp ne i64 %10, 0
%12 = zext i1 %11 to i8
ret i8 %12
}
/* Variables and functions */
int /*<<< orphan*/ yyunput(int /*<<< orphan*/, int /*<<< orphan*/);
void cfg_dummy_function(void) { yyunput(0, 0); }


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

x86 assembly (clang, -O2):
<cfg_dummy_function>:
xor    %edi,%edi
xor    %esi,%esi
jmp    1030 <yyunput@plt>

LLVM IR (-O0):
define void @cfg_dummy_function() {
%1 = call i32 @yyunput(i32 0, i32 0)
ret void
}

LLVM IR (-O2):
define void @cfg_dummy_function() {
%1 = tail call i32 @yyunput(i32 0, i32 0)
ret void
}
void f3(short *p) { *p = 42; }


x86 assembly (clang, -O0):
<f3>:
push   %rbp
mov    %rsp,%rbp
mov    %rdi,-0x8(%rbp)
mov    -0x8(%rbp),%rax
movw   $0x2a,(%rax)
pop    %rbp
ret

x86 assembly (clang, -O2):
<f3>:
movw   $0x2a,(%rdi)
ret

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

LLVM IR (-O2):
define void @f3(i16* nocapture writeonly %0) {
store i16 42, i16* %0
ret void
}
/* Variables and functions */
int /*<<< orphan*/ invert_matrix(double **, double **);
void gcon_func(double gcov[][(4)], double gcon[][(4)]) {
  invert_matrix(gcov, gcon);
}


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

x86 assembly (clang, -O2):
<gcon_func>:
jmp    1030 <invert_matrix@plt>

LLVM IR (-O0):
define void @gcon_func([4 x double]* %0, [4 x double]* %1) {
%3 = alloca [4 x double]*
%4 = alloca [4 x double]*
store [4 x double]* %0, [4 x double]** %3
store [4 x double]* %1, [4 x double]** %4
%5 = load [4 x double]*, [4 x double]** %3
%6 = bitcast [4 x double]* %5 to double**
%7 = load [4 x double]*, [4 x double]** %4
%8 = bitcast [4 x double]* %7 to double**
%9 = call i32 @invert_matrix(double** %6, double** %8)
ret void
}

LLVM IR (-O2):
define void @gcon_func([4 x double]* %0, [4 x double]* %1) {
%3 = bitcast [4 x double]* %0 to double**
%4 = bitcast [4 x double]* %1 to double**
%5 = tail call i32 @invert_matrix(double** %3, double** %4)
ret void
}
/* Variables and functions */
int /*<<< orphan*/ createFiles();
int main() {
  createFiles();
  return 0;
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
movl   $0x0,-0x4(%rbp)
mov    $0x0,%al
call   1030 <createFiles@plt>
xor    %eax,%eax
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %rax
xor    %eax,%eax
call   1030 <createFiles@plt>
xor    %eax,%eax
pop    %rcx
ret

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

LLVM IR (-O2):
define i32 @main() {
%1 = tail call i32 (...) @createFiles()
ret i32 0
}
double inverse_normalize_data(double *range, double n, double min, double max) {
  return (((n - range[0]) / (range[1] - range[0])) * (max - min)) + min;
}


x86 assembly (clang, -O0):
<inverse_normalize_data>:
push   %rbp
mov    %rsp,%rbp
mov    %rdi,-0x8(%rbp)
movsd  %xmm0,-0x10(%rbp)
movsd  %xmm1,-0x18(%rbp)
movsd  %xmm2,-0x20(%rbp)
movsd  -0x10(%rbp),%xmm0
mov    -0x8(%rbp),%rax
subsd  (%rax),%xmm0
mov    -0x8(%rbp),%rax
movsd  0x8(%rax),%xmm1
mov    -0x8(%rbp),%rax
subsd  (%rax),%xmm1
divsd  %xmm1,%xmm0
movsd  -0x20(%rbp),%xmm2
subsd  -0x18(%rbp),%xmm2
movsd  -0x18(%rbp),%xmm1
mulsd  %xmm2,%xmm0
addsd  %xmm1,%xmm0
pop    %rbp
ret

x86 assembly (clang, -O2):
<inverse_normalize_data>:
movsd  (%rdi),%xmm3
movsd  0x8(%rdi),%xmm4
subsd  %xmm3,%xmm0
subsd  %xmm3,%xmm4
divsd  %xmm4,%xmm0
subsd  %xmm1,%xmm2
mulsd  %xmm2,%xmm0
addsd  %xmm1,%xmm0
ret

LLVM IR (-O0):
define double @inverse_normalize_data(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* %6
%10 = load double*, double** %5
%11 = getelementptr inbounds double, double* %10, i64 0
%12 = load double, double* %11
%13 = fsub double %9, %12
%14 = load double*, double** %5
%15 = getelementptr inbounds double, double* %14, i64 1
%16 = load double, double* %15
%17 = load double*, double** %5
%18 = getelementptr inbounds double, double* %17, i64 0
%19 = load double, double* %18
%20 = fsub double %16, %19
%21 = fdiv double %13, %20
%22 = load double, double* %8
%23 = load double, double* %7
%24 = fsub double %22, %23
%25 = load double, double* %7
%26 = call double @llvm.fmuladd.f64(double %21, double %24, double %25)
ret double %26
}

LLVM IR (-O2):
define double @inverse_normalize_data(double* nocapture %0, double %1, double %2, double %3) {
%5 = load double, double* %0
%6 = fsub double %1, %5
%7 = getelementptr inbounds double, double* %0, i64 1
%8 = load double, double* %7
%9 = fsub double %8, %5
%10 = fdiv double %6, %9
%11 = fsub double %3, %2
%12 = tail call double @llvm.fmuladd.f64(double %10, double %11, double %2)
ret double %12
}
double double_square(double val) { return val * val; }


x86 assembly (clang, -O0):
<double_square>:
push   %rbp
mov    %rsp,%rbp
movsd  %xmm0,-0x8(%rbp)
movsd  -0x8(%rbp),%xmm0
mulsd  -0x8(%rbp),%xmm0
pop    %rbp
ret

x86 assembly (clang, -O2):
<double_square>:
mulsd  %xmm0,%xmm0
ret

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

LLVM IR (-O2):
define double @double_square(double %0) {
%2 = fmul double %0, %0
ret double %2
}
int count_digits(unsigned long i) {
  int digits;
  for (digits = 0; i; digits++)
    i /= 10;
  return digits;
}


x86 assembly (clang, -O0):
<count_digits>:
push   %rbp
mov    %rsp,%rbp
mov    %rdi,-0x8(%rbp)
movl   $0x0,-0xc(%rbp)
cmpq   $0x0,-0x8(%rbp)
je     113a <count_digits+0x3a>
mov    -0x8(%rbp),%rax
mov    $0xa,%ecx
xor    %edx,%edx
div    %rcx
mov    %rax,-0x8(%rbp)
mov    -0xc(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0xc(%rbp)
jmp    110f <count_digits+0xf>
mov    -0xc(%rbp),%eax
pop    %rbp
ret

x86 assembly (clang, -O2):
<count_digits>:
xor    %ecx,%ecx
test   %rdi,%rdi
je     1136 <count_digits+0x36>
movabs $0xcccccccccccccccd,%rsi
cc cc cc
cs nopw 0x0(%rax,%rax,1)
nopl   0x0(%rax,%rax,1)
mov    %rdi,%rax
mul    %rsi
shr    $0x3,%rdx
add    $0x1,%ecx
cmp    $0x9,%rdi
mov    %rdx,%rdi
ja     1120 <count_digits+0x20>
mov    %ecx,%eax
ret

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

LLVM IR (-O2):
define i32 @count_digits(i64 %0) {
%2 = icmp eq i64 %0, 0
br i1 %2, label %9, label %3
3: ; preds = %1, %3
%4 = phi i32 [ %7, %3 ], [ 0, %1 ]
%5 = phi i64 [ %6, %3 ], [ %0, %1 ]
%6 = udiv i64 %5, 10
%7 = add nuw nsw i32 %4, 1
%8 = icmp ult i64 %5, 10
br i1 %8, label %9, label %3
9: ; preds = %3, %1
%10 = phi i32 [ 0, %1 ], [ %7, %3 ]
ret i32 %10
}
double min(x, y)
double x, y;
{ return (((x < y) ? x : y)); }


x86 assembly (clang, -O0):
<min>:
push   %rbp
mov    %rsp,%rbp
movsd  %xmm0,-0x8(%rbp)
movsd  %xmm1,-0x10(%rbp)
movsd  -0x8(%rbp),%xmm1
movsd  -0x10(%rbp),%xmm0
ucomisd %xmm1,%xmm0
jbe    1131 <min+0x31>
movsd  -0x8(%rbp),%xmm0
movsd  %xmm0,-0x18(%rbp)
jmp    113b <min+0x3b>
movsd  -0x10(%rbp),%xmm0
movsd  %xmm0,-0x18(%rbp)
movsd  -0x18(%rbp),%xmm0
pop    %rbp
ret

x86 assembly (clang, -O2):
<min>:
minsd  %xmm1,%xmm0
ret

LLVM IR (-O0):
define double @min(double %0, double %1) {
%3 = alloca double
%4 = alloca double
store double %0, double* %3
store double %1, double* %4
%5 = load double, double* %3
%6 = load double, double* %4
%7 = fcmp olt double %5, %6
br i1 %7, label %8, label %10
8: ; preds = %2
%9 = load double, double* %3
br label %12
10: ; preds = %2
%11 = load double, double* %4
br label %12
12: ; preds = %10, %8
%13 = phi double [ %9, %8 ], [ %11, %10 ]
ret double %13
}

LLVM IR (-O2):
define double @min(double %0, double %1) {
%3 = fcmp olt double %0, %1
%4 = select i1 %3, double %0, double %1
ret double %4
}
/* Type definitions */
typedef int /*<<< orphan*/ uint8_t;

/* Variables and functions */
void voice_chat_play_opus_packet(uint8_t *opus_buffer, int buflen) {}


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

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

LLVM IR (-O0):
define void @voice_chat_play_opus_packet(i32* %0, i32 %1) {
%3 = alloca i32*
%4 = alloca i32
store i32* %0, i32** %3
store i32 %1, i32* %4
ret void
}

LLVM IR (-O2):
define void @voice_chat_play_opus_packet(i32* nocapture %0, i32 %1) {
ret void
}