// File: /workspace/github_c_makefile_star2_O0/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
movq %rsp, %rbp
subq $0x2625d0, %rsp         # imm = 0x2625D0
movq %rdi, -0x8(%rbp)
movl %esi, -0xc(%rbp)
movq %rdx, -0x18(%rbp)
leaq -0x1e84b0(%rbp), %rdi
movl -0xc(%rbp), %esi
leaq 0x2f623(%rip), %rdx     # 0xe309a
leaq 0x398ab(%rip), %rcx     # 0xed329
callq 0xb04c0
leaq -0x2625d0(%rbp), %rdi
movl -0xc(%rbp), %esi
leaq 0x2f610(%rip), %rdx     # 0xe30a4
leaq 0x3988e(%rip), %rcx     # 0xed329
callq 0xb04c0
movq -0x18(%rbp), %rdi
leaq -0x2c(%rbp), %rsi
callq 0x1dcd0
movq %rax, -0x20(%rbp)
movq -0x18(%rbp), %rdi
leaq -0x30(%rbp), %rsi
callq 0x1de20
movq %rax, -0x28(%rbp)
movq -0x8(%rbp), %rdi
movl -0xc(%rbp), %esi
movq -0x18(%rbp), %rax
movl 0x1bc(%rax), %r8d
leaq 0x3984e(%rip), %rdx     # 0xed329
xorl %ecx, %ecx
movl $0x1, %r9d
callq 0xb10b0
movq -0x8(%rbp), %rdi
movl -0xc(%rbp), %esi
leaq 0x39833(%rip), %rdx     # 0xed329
callq 0xb0930
cmpl $0x0, -0x30(%rbp)
jle 0xb3ba2
movq -0x8(%rbp), %rdi
movl -0xc(%rbp), %esi
movq -0x28(%rbp), %rdx
movl -0x30(%rbp), %ecx
callq 0xb06d0
leaq -0x7a150(%rbp), %rdi
movl -0xc(%rbp), %esi
leaq 0x393cb(%rip), %rdx     # 0xecef4
leaq 0x397f9(%rip), %rcx     # 0xed329
callq 0xb04c0
leaq -0xf4270(%rbp), %rdi
movl -0xc(%rbp), %esi
leaq 0x39428(%rip), %rdx     # 0xecf6e
leaq 0x397dc(%rip), %rcx     # 0xed329
callq 0xb04c0
leaq -0x16e390(%rbp), %rdi
leaq -0xf4270(%rbp), %rdx
leaq -0x1e84b0(%rbp), %rcx
leaq -0x2625d0(%rbp), %r8
leaq 0x394db(%rip), %rsi     # 0xed050
movb $0x0, %al
callq 0x4170
movq -0x8(%rbp), %rdi
movl -0xc(%rbp), %esi
leaq -0x7a150(%rbp), %rdx
leaq -0x16e390(%rbp), %rcx
callq 0xafa00
movq -0x8(%rbp), %rdi
movl -0xc(%rbp), %esi
callq 0xb08e0
cmpl $0x0, -0x2c(%rbp)
jle 0xb3be1
movq -0x8(%rbp), %rdi
movl -0xc(%rbp), %esi
movq -0x20(%rbp), %rdx
movl -0x2c(%rbp), %ecx
callq 0xb06d0
movq -0x8(%rbp), %rdi
movl -0xc(%rbp), %esi
leaq -0x7a150(%rbp), %rdx
leaq -0xf4270(%rbp), %rcx
callq 0xafa00
movq -0x8(%rbp), %rdi
movl -0xc(%rbp), %esi
callq 0xb08e0
movq -0x8(%rbp), %rdi
movl -0xc(%rbp), %esi
callq 0xb09e0
movq -0x8(%rbp), %rdi
movl -0xc(%rbp), %esi
leaq 0x3972e(%rip), %rdx     # 0xed329
callq 0xb13f0
movq -0x20(%rbp), %rdi
callq 0x52e80
movq -0x28(%rbp), %rdi
callq 0x52e80
addq $0x2625d0, %rsp         # imm = 0x2625D0
popq %rbp
retq
nopl (%rax,%rax)