// File: /workspace/github_c_makefile_star2_O3/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, %r13
movl %esi, %ebx
movq %rdi, %r14
movslq %esi, %r12
cmpl $0x5, %esi
ja 0x80b58
movl $0xb, %eax
btl %ebx, %eax
jae 0x80afb
leaq 0x2f88b(%rip), %rsi     # 0xb0384
jmp 0x80b10
movl $0x30, %eax
btl %ebx, %eax
jae 0x80d27
leaq 0x2f886(%rip), %rsi     # 0xb0396
leaq 0x30d74(%rip), %rdx     # 0xb188b
leaq 0x3019b(%rip), %rcx     # 0xb0cb9
leaq 0x7a140(%rsp), %rdi
xorl %eax, %eax
callq 0x41b0
leaq 0x5324c(%rip), %rax     # 0xd3d80
movq (%rax,%r12,8), %r15
leaq 0x258e5(%rip), %rdx     # 0xa6424
leaq 0x30173(%rip), %rcx     # 0xb0cb9
leaq 0x16e380(%rsp), %rdi
movq %r15, %rsi
xorl %eax, %eax
callq 0x41b0
leaq 0xc(%rsp), %rsi
movq %r13, %rdi
callq 0x15064
movq %rax, 0x10(%rsp)
leaq 0x1c(%rsp), %rbp
movq %r13, %rdi
movq %rbp, %rsi
callq 0x15156
movq %rax, %r15
movl 0x1bc(%r13), %r8d
leaq 0x3012e(%rip), %r13     # 0xb0cb9
movq %r14, %rdi
movl %ebx, %esi
movq %r13, %rdx
xorl %ecx, %ecx
movl $0x1, %r9d
callq 0x7e3dc
movq %r14, %rdi
movl %ebx, %esi
movq %r13, %rdx
callq 0x7de42
movl (%rbp), %ecx
testl %ecx, %ecx
jle 0x80c9d
movq %r14, %rdi
movl %ebx, %esi
movq %r15, %rdx
callq 0x7dbeb
cmpl $0x5, %ebx
ja 0x80c37
movl $0xb, %eax
btl %ebx, %eax
jae 0x80bdd
leaq 0x2f7a9(%rip), %rsi     # 0xb0384
jmp 0x80bf2
movl $0x30, %eax
btl %ebx, %eax
jae 0x80d53
leaq 0x2f7a4(%rip), %rsi     # 0xb0396
leaq 0x2fc8b(%rip), %rdx     # 0xb0884
leaq 0x300b9(%rip), %rcx     # 0xb0cb9
leaq 0x20(%rsp), %rdi
xorl %eax, %eax
callq 0x41b0
leaq 0x5316d(%rip), %rax     # 0xd3d80
movq (%rax,%r12,8), %r13
leaq 0x2fce0(%rip), %rdx     # 0xb08fe
leaq 0x30094(%rip), %rcx     # 0xb0cb9
leaq 0xf4260(%rsp), %rdi
movq %r13, %rsi
xorl %eax, %eax
callq 0x41b0
leaq 0x2fda2(%rip), %rsi     # 0xb09e0
leaq 0x1e84a0(%rsp), %r13
leaq 0xf4260(%rsp), %rdx
leaq 0x7a140(%rsp), %rcx
leaq 0x16e380(%rsp), %r8
movq %r13, %rdi
xorl %eax, %eax
callq 0x41b0
leaq 0x20(%rsp), %rdx
movq %r14, %rdi
movl %ebx, %esi
movq %r13, %rcx
callq 0x7d316
cmpl $0x3, %ebx
ja 0x80c9d
cmpl $0x2, %ebx
je 0x80c9d
leaq 0x2f7ae(%rip), %rdi     # 0xb0439
movl $0x7, %esi
movl $0x1, %edx
movq %r14, %rcx
callq 0x42c0
movl 0xc(%rsp), %ecx
testl %ecx, %ecx
movq 0x10(%rsp), %r12
jle 0x80cf1
movq %r14, %rdi
movl %ebx, %esi
movq %r12, %rdx
callq 0x7dbeb
leaq 0x20(%rsp), %rdx
leaq 0xf4260(%rsp), %rcx
movq %r14, %rdi
movl %ebx, %esi
callq 0x7d316
cmpl $0x3, %ebx
ja 0x80cf1
cmpl $0x2, %ebx
je 0x80cf1
leaq 0x2f75a(%rip), %rdi     # 0xb0439
movl $0x7, %esi
movl $0x1, %edx
movq %r14, %rcx
callq 0x42c0
movq %r14, %rdi
movl %ebx, %esi
callq 0x7deaa
movq %r14, %rdi
movl %ebx, %esi
callq 0x7e686
movq %r12, %rdi
callq 0x3a180
movq %r15, %rdi
callq 0x3a180
addq $0x2625c8, %rsp         # imm = 0x2625C8
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
leaq 0x2f65d(%rip), %r15     # 0xb038b
leaq 0x30b56(%rip), %rdx     # 0xb188b
leaq 0x2ff7d(%rip), %rcx     # 0xb0cb9
leaq 0x7a140(%rsp), %rdi
movq %r15, %rsi
xorl %eax, %eax
callq 0x41b0
jmp 0x80b38
leaq 0x2f631(%rip), %r13     # 0xb038b
leaq 0x2fb23(%rip), %rdx     # 0xb0884
leaq 0x2ff51(%rip), %rcx     # 0xb0cb9
leaq 0x20(%rsp), %rdi
movq %r13, %rsi
xorl %eax, %eax
callq 0x41b0
jmp 0x80c17