// File: /workspace/github_c_makefile_star2_O0/olcaytaner[P]Isell/savecode.c
// Function: code_constant_instance
void code_constant_instance(FILE* testcodefile, PROGRAMMING_LANGUAGE_TYPE language, Datasetptr d, Instanceptr tmp, int index)
{
 /*!Last Changed 24.06.2006 added code_1d_array_start and code_1d_array_end*/
 /*!Last Changed 09.06.2006*/
 int i;
 char ch;
 ch = code_1d_array_start(testcodefile, language, index);
 switch (d->features[0].type){
   case REAL    :
			case REGDEF  :fprintf(testcodefile, "%.6f", tmp->values[0].floatvalue);
                 break;
   case INTEGER :fprintf(testcodefile, "%d", tmp->values[0].intvalue);
                 break;
   case CLASSDEF:fprintf(testcodefile, "%d", tmp->values[0].stringindex);
                 break;
 }   
 for (i = 1; i < d->featurecount; i++)
   switch (d->features[i].type){
     case REAL    :
					case REGDEF  :fprintf(testcodefile, "%c%.6f", ch, tmp->values[i].floatvalue);
                   break;
     case INTEGER :fprintf(testcodefile, "%c%d", ch, tmp->values[i].intvalue);
                   break;
     case CLASSDEF:fprintf(testcodefile, "%c%d", ch, tmp->values[i].stringindex);
                   break;
   }      
	code_1d_array_end(testcodefile, language, index);
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
subq $0x40, %rsp
movq %rdi, -0x8(%rbp)
movl %esi, -0xc(%rbp)
movq %rdx, -0x18(%rbp)
movq %rcx, -0x20(%rbp)
movl %r8d, -0x24(%rbp)
movq -0x8(%rbp), %rdi
movl -0xc(%rbp), %esi
movl -0x24(%rbp), %edx
callq 0xaf310
movb %al, -0x29(%rbp)
movq -0x18(%rbp), %rax
movl 0x30f08(%rax), %eax
movq %rax, -0x38(%rbp)
subq $0x4, %rax
ja 0xaf60c
movq -0x38(%rbp), %rax
leaq 0x3d000(%rip), %rcx     # 0xec5ac
movslq (%rcx,%rax,4), %rax
addq %rcx, %rax
jmpq *%rax
movq -0x8(%rbp), %rdi
movq -0x20(%rbp), %rax
movq (%rax), %rax
movsd (%rax), %xmm0
leaq 0x3d2ef(%rip), %rsi     # 0xec8ba
movb $0x1, %al
callq 0x4280
jmp 0xaf60c
movq -0x8(%rbp), %rdi
movq -0x20(%rbp), %rax
movq (%rax), %rax
movl (%rax), %edx
leaq 0x3dc7d(%rip), %rsi     # 0xed265
movb $0x0, %al
callq 0x4280
jmp 0xaf60c
movq -0x8(%rbp), %rdi
movq -0x20(%rbp), %rax
movq (%rax), %rax
movl (%rax), %edx
leaq 0x3dc60(%rip), %rsi     # 0xed265
movb $0x0, %al
callq 0x4280
movl $0x1, -0x28(%rbp)
movl -0x28(%rbp), %eax
movq -0x18(%rbp), %rcx
cmpl 0x1bc(%rcx), %eax
jge 0xaf6e0
movq -0x18(%rbp), %rax
movslq -0x28(%rbp), %rcx
imulq $0x340, %rcx, %rcx      # imm = 0x340
movl 0x30f08(%rax,%rcx), %eax
movq %rax, -0x40(%rbp)
subq $0x4, %rax
ja 0xaf6d0
movq -0x40(%rbp), %rax
leaq 0x3cf6b(%rip), %rcx     # 0xec5c0
movslq (%rcx,%rax,4), %rax
addq %rcx, %rax
jmpq *%rax
movq -0x8(%rbp), %rdi
movsbl -0x29(%rbp), %edx
movq -0x20(%rbp), %rax
movq (%rax), %rax
movslq -0x28(%rbp), %rcx
movsd (%rax,%rcx,8), %xmm0
leaq 0x3d23b(%rip), %rsi     # 0xec8b8
movb $0x1, %al
callq 0x4280
jmp 0xaf6d0
movq -0x8(%rbp), %rdi
movsbl -0x29(%rbp), %edx
movq -0x20(%rbp), %rax
movq (%rax), %rax
movslq -0x28(%rbp), %rcx
movl (%rax,%rcx,8), %ecx
leaq 0x3d21c(%rip), %rsi     # 0xec8bf
movb $0x0, %al
callq 0x4280
jmp 0xaf6d0
movq -0x8(%rbp), %rdi
movsbl -0x29(%rbp), %edx
movq -0x20(%rbp), %rax
movq (%rax), %rax
movslq -0x28(%rbp), %rcx
movl (%rax,%rcx,8), %ecx
leaq 0x3d1f6(%rip), %rsi     # 0xec8bf
movb $0x0, %al
callq 0x4280
jmp 0xaf6d2
movl -0x28(%rbp), %eax
addl $0x1, %eax
movl %eax, -0x28(%rbp)
jmp 0xaf613
movq -0x8(%rbp), %rdi
movl -0xc(%rbp), %esi
movl -0x24(%rbp), %edx
callq 0xaf410
addq $0x40, %rsp
popq %rbp
retq
nopw %cs:(%rax,%rax)