// File: /workspace/github_c_makefile_star2_O1/olcaytaner[P]Isell/instance.c
// Function: print_instance_with_extra_features
void print_instance_with_extra_features(FILE* outfile, char s, Datasetptr d, Instanceptr currentinstance, int extra_features)
{
	int i, sindex;
	char pst[READLINELENGTH];
 for (i = 0; i < d->featurecount; i++)
   switch (d->features[i].type)
    {
     case  INTEGER:if (currentinstance->values[i].intvalue == ISELL)
                     fprintf(outfile,"?%c", s);
                   else
                     fprintf(outfile,"%d%c", currentinstance->values[i].intvalue, s);
                   break;
     case     REAL:if (currentinstance->values[i].floatvalue == ISELL)
                     fprintf(outfile,"?%c", s);
                   else
                     fprintf(outfile, "%5.6f%c", currentinstance->values[i].floatvalue, s);
                   break;
     case   STRING:sindex = currentinstance->values[i].stringindex;
                   if (sindex == -1)
                     fprintf(outfile, "?%c", s);
                   else
                     fprintf(outfile, "%s%c", d->features[i].strings[sindex], s);
                   break;
     case CLASSDEF:break;
     default      :printf(m1238, d->features[i].type);
                   break;
    }
 for (i = 0; i < extra_features; i++)
   fprintf(outfile, "%5.6f%c", produce_normal_value(0, 1), s);
 if (d->classno != 0)
   fprintf(outfile,"%s", d->features[d->classdefno].strings[give_classno(currentinstance)]);
 else
   if (d->classdefno != -1)
    {
     set_precision(pst, NULL, NULL);
     fprintf(outfile, pst, give_regressionvalue(currentinstance));                  
    }
 fprintf(outfile,"\n");
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x7a138, %rsp          # imm = 0x7A138
movl %r8d, %ebp
movq %rcx, 0x8(%rsp)
movq %rdx, %r15
movq %rdi, %rbx
cmpl $0x0, 0x1bc(%rdx)
movsbl %sil, %r12d
jle 0x2e9db
leaq 0x30f28(%r15), %r13
xorl %r14d, %r14d
movl -0x20(%r13), %esi
cmpq $0x3, %rsi
ja 0x2e99d
leaq 0x77106(%rip), %rcx     # 0xa5a10
movslq (%rcx,%rsi,4), %rax
addq %rcx, %rax
jmpq *%rax
movq 0x8(%rsp), %rax
movq (%rax), %rax
movl (%rax,%r14,8), %edx
cmpl $0x75bcd15, %edx        # imm = 0x75BCD15
je 0x2e987
movq %rbx, %rdi
leaq 0x74c96(%rip), %rsi     # 0xa35c7
movl %r12d, %ecx
xorl %eax, %eax
callq 0x42e0
jmp 0x2e9c1
movq 0x8(%rsp), %rax
movq (%rax), %rax
movslq (%rax,%r14,8), %rax
cmpq $-0x1, %rax
je 0x2e987
movq (%r13,%rax,8), %rdx
movq %rbx, %rdi
leaq 0x74c6b(%rip), %rsi     # 0xa35cc
movl %r12d, %ecx
xorl %eax, %eax
callq 0x42e0
jmp 0x2e9c1
movq 0x8(%rsp), %rax
movq (%rax), %rax
movsd (%rax,%r14,8), %xmm0
ucomisd 0x7436d(%rip), %xmm0    # 0xa2cf0
jne 0x2e9ad
jp 0x2e9ad
movq %rbx, %rdi
leaq 0x770c8(%rip), %rsi     # 0xa5a59
movl %r12d, %edx
xorl %eax, %eax
callq 0x42e0
jmp 0x2e9c1
leaq 0x749ca(%rip), %rdi     # 0xa336e
xorl %eax, %eax
callq 0x4030
jmp 0x2e9c1
movq %rbx, %rdi
leaq 0x770a6(%rip), %rsi     # 0xa5a5d
movl %r12d, %edx
movb $0x1, %al
callq 0x42e0
incq %r14
movslq 0x1bc(%r15), %rax
addq $0x340, %r13            # imm = 0x340
cmpq %rax, %r14
jl 0x2e8f5
testl %ebp, %ebp
jle 0x2ea0b
leaq 0x77077(%rip), %r13     # 0xa5a5d
xorpd %xmm0, %xmm0
movsd 0x73b2e(%rip), %xmm1    # 0xa2520
callq 0x8cd13
movq %rbx, %rdi
movq %r13, %rsi
movl %r12d, %edx
movb $0x1, %al
callq 0x42e0
decl %ebp
jne 0x2e9e6
cmpl $0x0, 0x10(%r15)
je 0x2ea45
movslq 0x1407128(%r15), %rax
addq $0x30f08, %r15          # imm = 0x30F08
leaq 0xa3e49(%rip), %rcx     # 0xd2870
movq (%rcx), %rcx
movslq 0x1407128(%rcx), %rcx
cmpq $-0x1, %rcx
je 0x2ea8d
movq 0x8(%rsp), %rdx
movq (%rdx), %rdx
movslq (%rdx,%rcx,8), %rcx
jmp 0x2ea94
cmpl $-0x1, 0x1407128(%r15)
je 0x2eaab
leaq 0x10(%rsp), %r15
movq %r15, %rdi
xorl %esi, %esi
xorl %edx, %edx
callq 0x39529
movq 0x8(%rsp), %rax
movq (%rax), %rax
leaq 0xa3e01(%rip), %rcx     # 0xd2870
movq (%rcx), %rcx
movslq 0x1407128(%rcx), %rcx
movsd (%rax,%rcx,8), %xmm0
movq %rbx, %rdi
movq %r15, %rsi
movb $0x1, %al
callq 0x42e0
jmp 0x2eaab
movq $-0x1, %rcx
imulq $0x340, %rax, %rax      # imm = 0x340
addq %rax, %r15
movq 0x20(%r15,%rcx,8), %rdi
movq %rbx, %rsi
callq 0x41f0
movl $0xa, %edi
movq %rbx, %rsi
callq 0x4150
addq $0x7a138, %rsp          # imm = 0x7A138
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq