// File: /workspace/github_c_makefile_star2_O2/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 $0x7a148, %rsp          # imm = 0x7A148
movl %r8d, 0x14(%rsp)
movq %rcx, 0x8(%rsp)
movq %rdx, %r15
movl %esi, %ebp
movq %rdi, %rbx
leaq 0x30f08(%rdx), %rax
movq %rax, 0x18(%rsp)
leaq 0x30f28(%rdx), %r13
leaq 0x6d758(%rip), %r12     # 0x98a08
xorl %r14d, %r14d
movslq 0x1bc(%r15), %rax
cmpq %rax, %r14
jge 0x2b390
movl -0x20(%r13), %esi
cmpq $0x3, %rsi
ja 0x2b35e
movslq (%r12,%rsi,4), %rax
addq %r12, %rax
jmpq *%rax
movq 0x8(%rsp), %rax
movq (%rax), %rax
movl (%rax,%r14,8), %edx
cmpl $0x75bcd15, %edx        # imm = 0x75BCD15
je 0x2b349
movq %rbx, %rdi
leaq 0x6b2b3(%rip), %rsi     # 0x965ab
movl %ebp, %ecx
xorl %eax, %eax
callq 0x42e0
jmp 0x2b381
movq 0x8(%rsp), %rax
movq (%rax), %rax
movslq (%rax,%r14,8), %rax
cmpq $-0x1, %rax
je 0x2b349
movq (%r13,%rax,8), %rdx
movq %rbx, %rdi
leaq 0x6b28c(%rip), %rsi     # 0x965b0
movl %ebp, %ecx
xorl %eax, %eax
callq 0x42e0
jmp 0x2b381
movq 0x8(%rsp), %rax
movq (%rax), %rax
movsd (%rax,%r14,8), %xmm0
ucomisd 0x6a9b3(%rip), %xmm0    # 0x95cf8
jne 0x2b36e
jp 0x2b36e
movq %rbx, %rdi
leaq 0x6d6fe(%rip), %rsi     # 0x98a51
movl %ebp, %edx
xorl %eax, %eax
callq 0x42e0
jmp 0x2b381
leaq 0x6b009(%rip), %rdi     # 0x9636e
xorl %eax, %eax
callq 0x4030
jmp 0x2b381
movq %rbx, %rdi
leaq 0x6d6dd(%rip), %rsi     # 0x98a55
movl %ebp, %edx
movb $0x1, %al
callq 0x42e0
incq %r14
addq $0x340, %r13            # imm = 0x340
jmp 0x2b2b3
xorl %r14d, %r14d
movl 0x14(%rsp), %eax
testl %eax, %eax
cmovgl %eax, %r14d
leaq 0x6d6b1(%rip), %r12     # 0x98a55
subl $0x1, %r14d
jb 0x2b3cc
xorpd %xmm0, %xmm0
movsd 0x6a16a(%rip), %xmm1    # 0x95520
callq 0x81937
movq %rbx, %rdi
movq %r12, %rsi
movl %ebp, %edx
movb $0x1, %al
callq 0x42e0
jmp 0x2b3a4
cmpl $0x0, 0x10(%r15)
movslq 0x1407128(%r15), %rax
je 0x2b3ff
leaq 0xa248f(%rip), %rcx     # 0xcd870
movq (%rcx), %rcx
movslq 0x1407128(%rcx), %rcx
cmpq $-0x1, %rcx
je 0x2b442
movq 0x8(%rsp), %rdx
movq (%rdx), %rdx
movslq (%rdx,%rcx,8), %rcx
jmp 0x2b445
cmpl $-0x1, %eax
je 0x2b461
leaq 0x20(%rsp), %r15
movq %r15, %rdi
xorl %esi, %esi
xorl %edx, %edx
callq 0x35305
movq 0x8(%rsp), %rax
movq (%rax), %rax
leaq 0xa244c(%rip), %rcx     # 0xcd870
movq (%rcx), %rcx
movslq 0x1407128(%rcx), %rcx
movsd (%rax,%rcx,8), %xmm0
movq %rbx, %rdi
movq %r15, %rsi
movb $0x1, %al
callq 0x42e0
jmp 0x2b461
pushq $-0x1
popq %rcx
imulq $0x340, %rax, %rax      # imm = 0x340
movq 0x18(%rsp), %rdx
addq %rax, %rdx
movq 0x20(%rdx,%rcx,8), %rdi
movq %rbx, %rsi
callq 0x41f0
pushq $0xa
popq %rdi
movq %rbx, %rsi
callq 0x4150
addq $0x7a148, %rsp          # imm = 0x7A148
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq