// File: /workspace/github_c_makefile_star2_O3/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 0x2f24b
leaq 0x30f28(%r15), %r13
xorl %r14d, %r14d
movl -0x20(%r13), %esi
cmpq $0x3, %rsi
ja 0x2f20d
leaq 0x7990e(%rip), %rcx     # 0xa8a88
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 0x2f1f7
movq %rbx, %rdi
leaq 0x7746a(%rip), %rsi     # 0xa660b
movl %r12d, %ecx
xorl %eax, %eax
callq 0x42e0
jmp 0x2f231
movq 0x8(%rsp), %rax
movq (%rax), %rax
movslq (%rax,%r14,8), %rax
cmpq $-0x1, %rax
je 0x2f1f7
movq (%r13,%rax,8), %rdx
movq %rbx, %rdi
leaq 0x7743f(%rip), %rsi     # 0xa6610
movl %r12d, %ecx
xorl %eax, %eax
callq 0x42e0
jmp 0x2f231
movq 0x8(%rsp), %rax
movq (%rax), %rax
movsd (%rax,%r14,8), %xmm0
ucomisd 0x76afd(%rip), %xmm0    # 0xa5cf0
jne 0x2f21d
jp 0x2f21d
movq %rbx, %rdi
leaq 0x798d0(%rip), %rsi     # 0xa8ad1
movl %r12d, %edx
xorl %eax, %eax
callq 0x42e0
jmp 0x2f231
leaq 0x7715a(%rip), %rdi     # 0xa636e
xorl %eax, %eax
callq 0x4030
jmp 0x2f231
movq %rbx, %rdi
leaq 0x798ae(%rip), %rsi     # 0xa8ad5
movl %r12d, %edx
movb $0x1, %al
callq 0x42e0
incq %r14
movslq 0x1bc(%r15), %rax
addq $0x340, %r13            # imm = 0x340
cmpq %rax, %r14
jl 0x2f165
testl %ebp, %ebp
jle 0x2f27b
leaq 0x7987f(%rip), %r13     # 0xa8ad5
xorpd %xmm0, %xmm0
movsd 0x762be(%rip), %xmm1    # 0xa5520
callq 0x8f4b0
movq %rbx, %rdi
movq %r13, %rsi
movl %r12d, %edx
movb $0x1, %al
callq 0x42e0
decl %ebp
jne 0x2f256
cmpl $0x0, 0x10(%r15)
je 0x2f2b5
movslq 0x1407128(%r15), %rax
addq $0x30f08, %r15          # imm = 0x30F08
leaq 0xa65d9(%rip), %rcx     # 0xd5870
movq (%rcx), %rcx
movslq 0x1407128(%rcx), %rcx
cmpq $-0x1, %rcx
je 0x2f2fd
movq 0x8(%rsp), %rdx
movq (%rdx), %rdx
movslq (%rdx,%rcx,8), %rcx
jmp 0x2f304
cmpl $-0x1, 0x1407128(%r15)
je 0x2f31b
leaq 0x10(%rsp), %r15
movq %r15, %rdi
xorl %esi, %esi
xorl %edx, %edx
callq 0x3a535
movq 0x8(%rsp), %rax
movq (%rax), %rax
leaq 0xa6591(%rip), %rcx     # 0xd5870
movq (%rcx), %rcx
movslq 0x1407128(%rcx), %rcx
movsd (%rax,%rcx,8), %xmm0
movq %rbx, %rdi
movq %r15, %rsi
movb $0x1, %al
callq 0x42e0
jmp 0x2f31b
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