// File: /workspace/github_c_makefile_star2_O2/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 0x2bf93(%rip), %rdx     # 0xa17eb
leaq 0x2b3be(%rip), %r13     # 0xa0c1d
leaq 0x7a140(%rsp), %rdi
movq %r13, %rcx
callq 0x7327f
leaq 0x20bae(%rip), %rdx     # 0x96424
leaq 0x20(%rsp), %rdi
movl %ebx, %esi
movq %r13, %rcx
callq 0x7327f
leaq 0xc(%rsp), %rsi
movq %rbp, %rdi
callq 0x13e3f
movq %rax, 0x10(%rsp)
leaq 0x1c(%rsp), %r15
movq %rbp, %rdi
movq %r15, %rsi
callq 0x13efa
movq %rax, %r12
movl 0x1bc(%rbp), %r8d
pushq $0x1
popq %r9
movq %r14, %rdi
movl %ebx, %esi
movq %r13, %rdx
xorl %ecx, %ecx
callq 0x73938
movq %r14, %rdi
movl %ebx, %esi
movq %r13, %rdx
callq 0x734bf
movl (%r15), %ecx
testl %ecx, %ecx
jle 0x7596b
movq %r14, %rdi
movl %ebx, %esi
movq %r12, %rdx
callq 0x732d6
leaq 0x2aef8(%rip), %rdx     # 0xa07e8
leaq 0x2b326(%rip), %r15     # 0xa0c1d
leaq 0x16e380(%rsp), %r13
movq %r13, %rdi
movl %ebx, %esi
movq %r15, %rcx
callq 0x7327f
leaq 0x2af4f(%rip), %rdx     # 0xa0862
leaq 0xf4260(%rsp), %rbp
movq %rbp, %rdi
movl %ebx, %esi
movq %r15, %rcx
callq 0x7327f
leaq 0x2b015(%rip), %rsi     # 0xa0944
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 0x72b25
movq %r14, %rdi
movl %ebx, %esi
callq 0x7349f
movl 0xc(%rsp), %ecx
testl %ecx, %ecx
movq 0x10(%rsp), %r15
jle 0x759a9
movq %r14, %rdi
movl %ebx, %esi
movq %r15, %rdx
callq 0x732d6
leaq 0x16e380(%rsp), %rdx
leaq 0xf4260(%rsp), %rcx
movq %r14, %rdi
movl %ebx, %esi
callq 0x72b25
movq %r14, %rdi
movl %ebx, %esi
callq 0x7349f
movq %r14, %rdi
movl %ebx, %esi
callq 0x734fe
movq %r14, %rdi
movl %ebx, %esi
callq 0x73b72
movq %r15, %rdi
callq 0x34ff7
movq %r12, %rdi
callq 0x34ff7
addq $0x2625c8, %rsp         # imm = 0x2625C8
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq