#define NULL ((void *)0)
typedef unsigned long size_t; // Customize by platform.
typedef long intptr_t;
typedef unsigned long uintptr_t;
typedef long scalar_t__; // Either arithmetic or pointer type.
/* By default, we understand bool (as a convenience). */
typedef int bool;
#define false 0
#define true 1

/* Forward declarations */

/* Type definitions */

/* Variables and functions */
int /*<<< orphan*/ printf(char *, ...);
void eigg_print_hashed_record(char *name, char *seq, char *qual,
                              unsigned long kmer_len, long num_for_kmers,
                              long num_rev_kmers, double *hashed_for_kmers,
                              double *hashed_rev_kmers) {
  int i = 0;
  printf("@%s\n", name);
  printf("%s\n+\n%s\n", seq, qual);
  printf("k, bins: [%lu", kmer_len);
  for (i = 0; i < num_for_kmers; ++i) {
    printf(",%.0f", hashed_for_kmers[i]);
  }
  for (i = 0; i < num_rev_kmers; ++i) {
    printf(",%.0f", hashed_rev_kmers[i]);
  }
  printf("]\n");
}


x86 assembly (clang, -O0):
<eigg_print_hashed_record>:
push   %rbp
mov    %rsp,%rbp
sub    $0x40,%rsp
mov    0x18(%rbp),%rax
mov    0x10(%rbp),%rax
mov    %rdi,-0x8(%rbp)
mov    %rsi,-0x10(%rbp)
mov    %rdx,-0x18(%rbp)
mov    %rcx,-0x20(%rbp)
mov    %r8,-0x28(%rbp)
mov    %r9,-0x30(%rbp)
movl   $0x0,-0x34(%rbp)
mov    -0x8(%rbp),%rsi
lea    0xeb6(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
mov    -0x10(%rbp),%rsi
mov    -0x18(%rbp),%rdx
lea    0xea5(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
mov    -0x20(%rbp),%rsi
lea    0xe9c(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
movl   $0x0,-0x34(%rbp)
movslq -0x34(%rbp),%rax
cmp    -0x28(%rbp),%rax
jge    11b7 <eigg_print_hashed_record+0xa7>
mov    0x10(%rbp),%rax
movslq -0x34(%rbp),%rcx
movsd  (%rax,%rcx,8),%xmm0
lea    0xe7a(%rip),%rdi
mov    $0x1,%al
call   1030 <printf@plt>
mov    -0x34(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x34(%rbp)
jmp    1180 <eigg_print_hashed_record+0x70>
movl   $0x0,-0x34(%rbp)
movslq -0x34(%rbp),%rax
cmp    -0x30(%rbp),%rax
jge    11f5 <eigg_print_hashed_record+0xe5>
mov    0x18(%rbp),%rax
movslq -0x34(%rbp),%rcx
movsd  (%rax,%rcx,8),%xmm0
lea    0xe3c(%rip),%rdi
mov    $0x1,%al
call   1030 <printf@plt>
mov    -0x34(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x34(%rbp)
jmp    11be <eigg_print_hashed_record+0xae>
lea    0xe26(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
add    $0x40,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<eigg_print_hashed_record>:
push   %rbp
push   %r15
push   %r14
push   %r13
push   %r12
push   %rbx
push   %rax
mov    %r9,%r14
mov    %r8,%rbx
mov    %rcx,(%rsp)
mov    %rdx,%r15
mov    %rsi,%rbp
mov    %rdi,%rsi
mov    0x48(%rsp),%r13
mov    0x40(%rsp),%r12
lea    0xeb1(%rip),%rdi
xor    %eax,%eax
call   1040 <printf@plt>
lea    0xea8(%rip),%rdi
mov    %rbp,%rsi
mov    %r15,%rdx
xor    %eax,%eax
call   1040 <printf@plt>
lea    0xe9d(%rip),%rdi
mov    (%rsp),%rsi
xor    %eax,%eax
call   1040 <printf@plt>
test   %rbx,%rbx
jle    11a9 <eigg_print_hashed_record+0x89>
xor    %ebp,%ebp
lea    0xe92(%rip),%r15
nopw   0x0(%rax,%rax,1)
movsd  (%r12,%rbp,8),%xmm0
mov    %r15,%rdi
mov    $0x1,%al
call   1040 <printf@plt>
add    $0x1,%rbp
cmp    %rbp,%rbx
jne    1190 <eigg_print_hashed_record+0x70>
test   %r14,%r14
jle    11da <eigg_print_hashed_record+0xba>
xor    %ebp,%ebp
lea    0xe65(%rip),%rbx
nopw   0x0(%rax,%rax,1)
movsd  0x0(%r13,%rbp,8),%xmm0
mov    %rbx,%rdi
mov    $0x1,%al
call   1040 <printf@plt>
add    $0x1,%rbp
cmp    %rbp,%r14
jne    11c0 <eigg_print_hashed_record+0xa0>
lea    0xe41(%rip),%rdi
add    $0x8,%rsp
pop    %rbx
pop    %r12
pop    %r13
pop    %r14
pop    %r15
pop    %rbp
jmp    1030 <puts@plt>

LLVM IR (-O0):
@.str = [5 x i8] c"@%s\0A\00"
@.str.1 = [9 x i8] c"%s\0A+\0A%s\0A\00"
@.str.2 = [14 x i8] c"k, bins: [%lu\00"
@.str.3 = [6 x i8] c",%.0f\00"
@.str.4 = [3 x i8] c"]\0A\00"
define void @eigg_print_hashed_record(i8* %0, i8* %1, i8* %2, i64 %3, i64 %4, i64 %5, double* %6, double* %7) {
%9 = alloca i8*
%10 = alloca i8*
%11 = alloca i8*
%12 = alloca i64
%13 = alloca i64
%14 = alloca i64
%15 = alloca double*
%16 = alloca double*
%17 = alloca i32
store i8* %0, i8** %9
store i8* %1, i8** %10
store i8* %2, i8** %11
store i64 %3, i64* %12
store i64 %4, i64* %13
store i64 %5, i64* %14
store double* %6, double** %15
store double* %7, double** %16
store i32 0, i32* %17
%18 = load i8*, i8** %9
%19 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str, i64 0, i64 0), i8* %18)
%20 = load i8*, i8** %10
%21 = load i8*, i8** %11
%22 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str.1, i64 0, i64 0), i8* %20, i8* %21)
%23 = load i64, i64* %12
%24 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([14 x i8], [14 x i8]* @.str.2, i64 0, i64 0), i64 %23)
store i32 0, i32* %17
br label %25
25: ; preds = %37, %8
%26 = load i32, i32* %17
%27 = sext i32 %26 to i64
%28 = load i64, i64* %13
%29 = icmp slt i64 %27, %28
br i1 %29, label %30, label %40
30: ; preds = %25
%31 = load double*, double** %15
%32 = load i32, i32* %17
%33 = sext i32 %32 to i64
%34 = getelementptr inbounds double, double* %31, i64 %33
%35 = load double, double* %34
%36 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.3, i64 0, i64 0), double %35)
br label %37
37: ; preds = %30
%38 = load i32, i32* %17
%39 = add nsw i32 %38, 1
store i32 %39, i32* %17
br label %25
40: ; preds = %25
store i32 0, i32* %17
br label %41
41: ; preds = %53, %40
%42 = load i32, i32* %17
%43 = sext i32 %42 to i64
%44 = load i64, i64* %14
%45 = icmp slt i64 %43, %44
br i1 %45, label %46, label %56
46: ; preds = %41
%47 = load double*, double** %16
%48 = load i32, i32* %17
%49 = sext i32 %48 to i64
%50 = getelementptr inbounds double, double* %47, i64 %49
%51 = load double, double* %50
%52 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.3, i64 0, i64 0), double %51)
br label %53
53: ; preds = %46
%54 = load i32, i32* %17
%55 = add nsw i32 %54, 1
store i32 %55, i32* %17
br label %41
56: ; preds = %41
%57 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.4, i64 0, i64 0))
ret void
}

LLVM IR (-O2):
@.str = [5 x i8] c"@%s\0A\00"
@.str.1 = [9 x i8] c"%s\0A+\0A%s\0A\00"
@.str.2 = [14 x i8] c"k, bins: [%lu\00"
@.str.3 = [6 x i8] c",%.0f\00"
@str = [2 x i8] c"]\00"
define void @eigg_print_hashed_record(i8* %0, i8* %1, i8* %2, i64 %3, i64 %4, i64 %5, double* nocapture %6, double* nocapture %7) {
%9 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([5 x i8], [5 x i8]* @.str, i64 0, i64 0), i8* %0)
%10 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([9 x i8], [9 x i8]* @.str.1, i64 0, i64 0), i8* %1, i8* %2)
%11 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([14 x i8], [14 x i8]* @.str.2, i64 0, i64 0), i64 %3)
%12 = icmp sgt i64 %4, 0
br i1 %12, label %15, label %13
13: ; preds = %15, %8
%14 = icmp sgt i64 %5, 0
br i1 %14, label %22, label %29
15: ; preds = %8, %15
%16 = phi i64 [ %20, %15 ], [ 0, %8 ]
%17 = getelementptr inbounds double, double* %6, i64 %16
%18 = load double, double* %17
%19 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([6 x i8], [6 x i8]* @.str.3, i64 0, i64 0), double %18)
%20 = add nuw nsw i64 %16, 1
%21 = icmp eq i64 %20, %4
br i1 %21, label %13, label %15
22: ; preds = %13, %22
%23 = phi i64 [ %27, %22 ], [ 0, %13 ]
%24 = getelementptr inbounds double, double* %7, i64 %23
%25 = load double, double* %24
%26 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([6 x i8], [6 x i8]* @.str.3, i64 0, i64 0), double %25)
%27 = add nuw nsw i64 %23, 1
%28 = icmp eq i64 %27, %5
br i1 %28, label %29, label %22
29: ; preds = %22, %13
%30 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([2 x i8], [2 x i8]* @str, i64 0, i64 0))
ret void
}