#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 */
typedef int /*<<< orphan*/ FILE;

/* Variables and functions */
int /*<<< orphan*/ fflush(int /*<<< orphan*/ *);
int /*<<< orphan*/ fprintf(int /*<<< orphan*/ *, char *, ...);
void print_gff_line(FILE *gff_file_pointer, int start_coordinate,
                    int end_coordinate, int number_of_snps,
                    char *current_node_id, char *parent_node_id,
                    char *taxon_names, double neg_log_likelihood) {
  fprintf(gff_file_pointer, "SEQUENCE\tGUBBINS\tCDS\t");
  fprintf(gff_file_pointer, "%d\t", start_coordinate);
  fprintf(gff_file_pointer, "%d\t", end_coordinate);
  fprintf(gff_file_pointer, "0.000\t.\t0\t");
  fprintf(gff_file_pointer, "node=\"%s->%s\";", parent_node_id,
          current_node_id);
  fprintf(gff_file_pointer, "neg_log_likelihood=\"%f\";", neg_log_likelihood);
  fprintf(gff_file_pointer, "taxa=\"%s\";", taxon_names);
  fprintf(gff_file_pointer, "snp_count=\"%d\";", number_of_snps);
  fprintf(gff_file_pointer, "\n");
  fflush(gff_file_pointer);
}


x86 assembly (clang, -O0):
<print_gff_line>:
push   %rbp
mov    %rsp,%rbp
sub    $0x30,%rsp
mov    0x10(%rbp),%rax
mov    %rdi,-0x8(%rbp)
mov    %esi,-0xc(%rbp)
mov    %edx,-0x10(%rbp)
mov    %ecx,-0x14(%rbp)
mov    %r8,-0x20(%rbp)
mov    %r9,-0x28(%rbp)
movsd  %xmm0,-0x30(%rbp)
mov    -0x8(%rbp),%rdi
lea    0xeaf(%rip),%rsi
mov    $0x0,%al
call   1030 <fprintf@plt>
mov    -0x8(%rbp),%rdi
mov    -0xc(%rbp),%edx
lea    0xeb0(%rip),%rsi
mov    $0x0,%al
call   1030 <fprintf@plt>
mov    -0x8(%rbp),%rdi
mov    -0x10(%rbp),%edx
lea    0xe9b(%rip),%rsi
mov    $0x0,%al
call   1030 <fprintf@plt>
mov    -0x8(%rbp),%rdi
lea    0xe8d(%rip),%rsi
mov    $0x0,%al
call   1030 <fprintf@plt>
mov    -0x8(%rbp),%rdi
mov    -0x28(%rbp),%rdx
mov    -0x20(%rbp),%rcx
lea    0xe7e(%rip),%rsi
mov    $0x0,%al
call   1030 <fprintf@plt>
mov    -0x8(%rbp),%rdi
movsd  -0x30(%rbp),%xmm0
lea    0xe76(%rip),%rsi
mov    $0x1,%al
call   1030 <fprintf@plt>
mov    -0x8(%rbp),%rdi
mov    0x10(%rbp),%rdx
lea    0xe79(%rip),%rsi
mov    $0x0,%al
call   1030 <fprintf@plt>
mov    -0x8(%rbp),%rdi
mov    -0x14(%rbp),%edx
lea    0xe6f(%rip),%rsi
mov    $0x0,%al
call   1030 <fprintf@plt>
mov    -0x8(%rbp),%rdi
lea    0xe6d(%rip),%rsi
mov    $0x0,%al
call   1030 <fprintf@plt>
mov    -0x8(%rbp),%rdi
call   1040 <fflush@plt>
add    $0x30,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<print_gff_line>:
push   %rbp
push   %r15
push   %r14
push   %r13
push   %r12
push   %rbx
sub    $0x18,%rsp
movsd  %xmm0,0x8(%rsp)
mov    %r9,%r12
mov    %r8,%r13
mov    %ecx,0x4(%rsp)
mov    %edx,%ebp
mov    %esi,%r14d
mov    %rdi,%rbx
mov    0x50(%rsp),%rax
mov    %rax,0x10(%rsp)
lea    0xe89(%rip),%rdi
mov    $0x15,%esi
mov    $0x1,%edx
mov    %rbx,%rcx
call   1060 <fwrite@plt>
lea    0xe86(%rip),%r15
mov    %rbx,%rdi
mov    %r15,%rsi
mov    %r14d,%edx
xor    %eax,%eax
call   1040 <fprintf@plt>
mov    %rbx,%rdi
mov    %r15,%rsi
mov    %ebp,%edx
xor    %eax,%eax
call   1040 <fprintf@plt>
lea    0xe64(%rip),%rdi
mov    $0xa,%esi
mov    $0x1,%edx
mov    %rbx,%rcx
call   1060 <fwrite@plt>
lea    0xe56(%rip),%rsi
mov    %rbx,%rdi
mov    %r12,%rdx
mov    %r13,%rcx
xor    %eax,%eax
call   1040 <fprintf@plt>
lea    0xe4e(%rip),%rsi
mov    %rbx,%rdi
movsd  0x8(%rsp),%xmm0
mov    $0x1,%al
call   1040 <fprintf@plt>
lea    0xe50(%rip),%rsi
mov    %rbx,%rdi
mov    0x10(%rsp),%rdx
xor    %eax,%eax
call   1040 <fprintf@plt>
lea    0xe45(%rip),%rsi
mov    %rbx,%rdi
mov    0x4(%rsp),%edx
xor    %eax,%eax
call   1040 <fprintf@plt>
mov    $0xa,%edi
mov    %rbx,%rsi
call   1030 <fputc@plt>
mov    %rbx,%rdi
add    $0x18,%rsp
pop    %rbx
pop    %r12
pop    %r13
pop    %r14
pop    %r15
pop    %rbp
jmp    1050 <fflush@plt>

LLVM IR (-O0):
@.str = [22 x i8] c"SEQUENCE\09GUBBINS\09CDS\09\00"
@.str.1 = [4 x i8] c"%d\09\00"
@.str.2 = [11 x i8] c"0.000\09.\090\09\00"
@.str.3 = [15 x i8] c"node=\22%s->%s\22;\00"
@.str.4 = [25 x i8] c"neg_log_likelihood=\22%f\22;\00"
@.str.5 = [11 x i8] c"taxa=\22%s\22;\00"
@.str.6 = [16 x i8] c"snp_count=\22%d\22;\00"
@.str.7 = [2 x i8] c"\0A\00"
define void @print_gff_line(i32* %0, i32 %1, i32 %2, i32 %3, i8* %4, i8* %5, i8* %6, double %7) {
%9 = alloca i32*
%10 = alloca i32
%11 = alloca i32
%12 = alloca i32
%13 = alloca i8*
%14 = alloca i8*
%15 = alloca i8*
%16 = alloca double
store i32* %0, i32** %9
store i32 %1, i32* %10
store i32 %2, i32* %11
store i32 %3, i32* %12
store i8* %4, i8** %13
store i8* %5, i8** %14
store i8* %6, i8** %15
store double %7, double* %16
%17 = load i32*, i32** %9
%18 = call i32 (i32*, i8*, ...) @fprintf(i32* %17, i8* getelementptr inbounds ([22 x i8], [22 x i8]* @.str, i64 0, i64 0))
%19 = load i32*, i32** %9
%20 = load i32, i32* %10
%21 = call i32 (i32*, i8*, ...) @fprintf(i32* %19, i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.1, i64 0, i64 0), i32 %20)
%22 = load i32*, i32** %9
%23 = load i32, i32* %11
%24 = call i32 (i32*, i8*, ...) @fprintf(i32* %22, i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.1, i64 0, i64 0), i32 %23)
%25 = load i32*, i32** %9
%26 = call i32 (i32*, i8*, ...) @fprintf(i32* %25, i8* getelementptr inbounds ([11 x i8], [11 x i8]* @.str.2, i64 0, i64 0))
%27 = load i32*, i32** %9
%28 = load i8*, i8** %14
%29 = load i8*, i8** %13
%30 = call i32 (i32*, i8*, ...) @fprintf(i32* %27, i8* getelementptr inbounds ([15 x i8], [15 x i8]* @.str.3, i64 0, i64 0), i8* %28, i8* %29)
%31 = load i32*, i32** %9
%32 = load double, double* %16
%33 = call i32 (i32*, i8*, ...) @fprintf(i32* %31, i8* getelementptr inbounds ([25 x i8], [25 x i8]* @.str.4, i64 0, i64 0), double %32)
%34 = load i32*, i32** %9
%35 = load i8*, i8** %15
%36 = call i32 (i32*, i8*, ...) @fprintf(i32* %34, i8* getelementptr inbounds ([11 x i8], [11 x i8]* @.str.5, i64 0, i64 0), i8* %35)
%37 = load i32*, i32** %9
%38 = load i32, i32* %12
%39 = call i32 (i32*, i8*, ...) @fprintf(i32* %37, i8* getelementptr inbounds ([16 x i8], [16 x i8]* @.str.6, i64 0, i64 0), i32 %38)
%40 = load i32*, i32** %9
%41 = call i32 (i32*, i8*, ...) @fprintf(i32* %40, i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.7, i64 0, i64 0))
%42 = load i32*, i32** %9
%43 = call i32 @fflush(i32* %42)
ret void
}

LLVM IR (-O2):
@.str = [22 x i8] c"SEQUENCE\09GUBBINS\09CDS\09\00"
@.str.1 = [4 x i8] c"%d\09\00"
@.str.2 = [11 x i8] c"0.000\09.\090\09\00"
@.str.3 = [15 x i8] c"node=\22%s->%s\22;\00"
@.str.4 = [25 x i8] c"neg_log_likelihood=\22%f\22;\00"
@.str.5 = [11 x i8] c"taxa=\22%s\22;\00"
@.str.6 = [16 x i8] c"snp_count=\22%d\22;\00"
define void @print_gff_line(i32* nocapture %0, i32 %1, i32 %2, i32 %3, i8* %4, i8* %5, i8* %6, double %7) {
%9 = tail call i64 @fwrite(i8* getelementptr inbounds ([22 x i8], [22 x i8]* @.str, i64 0, i64 0), i64 21, i64 1, i32* %0)
%10 = tail call i32 (i32*, i8*, ...) @fprintf(i32* %0, i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.1, i64 0, i64 0), i32 %1)
%11 = tail call i32 (i32*, i8*, ...) @fprintf(i32* %0, i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.1, i64 0, i64 0), i32 %2)
%12 = tail call i64 @fwrite(i8* getelementptr inbounds ([11 x i8], [11 x i8]* @.str.2, i64 0, i64 0), i64 10, i64 1, i32* %0)
%13 = tail call i32 (i32*, i8*, ...) @fprintf(i32* %0, i8* getelementptr inbounds ([15 x i8], [15 x i8]* @.str.3, i64 0, i64 0), i8* %5, i8* %4)
%14 = tail call i32 (i32*, i8*, ...) @fprintf(i32* %0, i8* getelementptr inbounds ([25 x i8], [25 x i8]* @.str.4, i64 0, i64 0), double %7)
%15 = tail call i32 (i32*, i8*, ...) @fprintf(i32* %0, i8* getelementptr inbounds ([11 x i8], [11 x i8]* @.str.5, i64 0, i64 0), i8* %6)
%16 = tail call i32 (i32*, i8*, ...) @fprintf(i32* %0, i8* getelementptr inbounds ([16 x i8], [16 x i8]* @.str.6, i64 0, i64 0), i32 %3)
%17 = tail call i32 @fputc(i32 10, i32* %0)
%18 = tail call i32 @fflush(i32* %0)
ret void
}