// File: /workspace/github_c_makefile_star2_O1/olcaytaner[P]Isell/savecode.c
// Function: code_normalize
void code_normalize(FILE* testcodefile, PROGRAMMING_LANGUAGE_TYPE language, Datasetptr d)
{
 /*!Last Changed 26.06.2006*/
 int *symbolic, *numeric, scount, ncount;
 char st[MAXLENGTH], st2[MAXLENGTH], st3[MAXLENGTH], st4[MAXLENGTH], st5[MAXLENGTH];
 code_array_index_variable(st4, language, "mean", "i");  
 code_array_index_variable(st5, language, "variance", "i");  
 symbolic = symbolic_features(d, &scount);
 numeric = numeric_features(d, &ncount);
 code_for(testcodefile, language, "i", 0, d->featurecount, 1);   
 code_switch(testcodefile, language, "i");
	if (ncount > 0)
	 {
  	code_case(testcodefile, language, numeric, ncount);
   code_array_index_variable(st, language, "testdataconverted", "i");  
   code_array_index_variable(st2, language, "testdata", "i");  
  	sprintf(st3, "(%s - %s) / sqrt(%s)", st2, st4, st5);
   code_set_variable(testcodefile, language, st, st3);
  	code_endcase(testcodefile, language);
	 }
	if (scount > 0)
	 {
  	code_case(testcodefile, language, symbolic, scount);
   code_set_variable(testcodefile, language, st, st2);
	  code_endcase(testcodefile, language);
	 }
	code_endswitch(testcodefile, language);
 code_endfor(testcodefile, language, "i");
	safe_free(symbolic);
	safe_free(numeric);
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x2625c8, %rsp         # imm = 0x2625C8
movq %rdx, %rbp
movl %esi, %ebx
movq %rdi, %r14
leaq 0x2fb96(%rip), %rdx     # 0xae7fb
leaq 0x2efb5(%rip), %r13     # 0xadc21
leaq 0x7a140(%rsp), %rdi
movq %r13, %rcx
callq 0x7c24c
leaq 0x247a1(%rip), %rdx     # 0xa3424
leaq 0x20(%rsp), %rdi
movl %ebx, %esi
movq %r13, %rcx
callq 0x7c24c
leaq 0xc(%rsp), %rsi
movq %rbp, %rdi
callq 0x14fc3
movq %rax, %r12
leaq 0x1c(%rsp), %r15
movq %rbp, %rdi
movq %r15, %rsi
callq 0x150b9
movq %rax, 0x10(%rsp)
movl 0x1bc(%rbp), %r8d
movq %r14, %rdi
movl %ebx, %esi
movq %r13, %rdx
xorl %ecx, %ecx
movl $0x1, %r9d
callq 0x7ca9f
movq %r14, %rdi
movl %ebx, %esi
movq %r13, %rdx
callq 0x7c4fd
movl (%r15), %ecx
testl %ecx, %ecx
jle 0x7ed95
movq %r14, %rdi
movl %ebx, %esi
movq 0x10(%rsp), %rdx
callq 0x7c2a3
leaq 0x2eaeb(%rip), %rdx     # 0xad7ec
leaq 0x2ef19(%rip), %r15     # 0xadc21
leaq 0x16e380(%rsp), %r13
movq %r13, %rdi
movl %ebx, %esi
movq %r15, %rcx
callq 0x7c24c
leaq 0x2eb42(%rip), %rdx     # 0xad866
leaq 0xf4260(%rsp), %rbp
movq %rbp, %rdi
movl %ebx, %esi
movq %r15, %rcx
callq 0x7c24c
leaq 0x2ec08(%rip), %rsi     # 0xad948
leaq 0x1e84a0(%rsp), %r15
leaq 0x7a140(%rsp), %rcx
leaq 0x20(%rsp), %r8
movq %r15, %rdi
movq %rbp, %rdx
xorl %eax, %eax
callq 0x41b0
movq %r14, %rdi
movl %ebx, %esi
movq %r13, %rdx
movq %r15, %rcx
callq 0x7ba46
cmpl $0x3, %ebx
ja 0x7ed95
cmpl $0x2, %ebx
je 0x7ed95
leaq 0x2e61e(%rip), %rdi     # 0xad3a1
movl $0x7, %esi
movl $0x1, %edx
movq %r14, %rcx
callq 0x42c0
movl 0xc(%rsp), %ecx
testl %ecx, %ecx
jle 0x7ede7
movq %r14, %rdi
movl %ebx, %esi
movq %r12, %rdx
callq 0x7c2a3
leaq 0x16e380(%rsp), %rdx
leaq 0xf4260(%rsp), %rcx
movq %r14, %rdi
movl %ebx, %esi
callq 0x7ba46
cmpl $0x3, %ebx
ja 0x7ede7
cmpl $0x2, %ebx
je 0x7ede7
leaq 0x2e5cc(%rip), %rdi     # 0xad3a1
movl $0x7, %esi
movl $0x1, %edx
movq %r14, %rcx
callq 0x42c0
movq %r14, %rdi
movl %ebx, %esi
callq 0x7c565
movq %r14, %rdi
movl %ebx, %esi
callq 0x7cd49
movq %r12, %rdi
callq 0x39194
movq 0x10(%rsp), %rdi
callq 0x39194
addq $0x2625c8, %rsp         # imm = 0x2625C8
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq