// File: /workspace/github_c_makefile_star2_O3/olcaytaner[P]Isell/savecode.c
// Function: code_dimension_reduce
void code_dimension_reduce(FILE* testcodefile, PROGRAMMING_LANGUAGE_TYPE language, Datasetptr d, int newdimension)
{
 /*!Last Changed 16.06.2006*/
 char st[MAXLENGTH], st2[MAXLENGTH], st3[MAXLENGTH];
 code_array_initialize(testcodefile, language, "testdatareduced", newdimension, "0.0");
 code_for(testcodefile, language, "i", 0, d->multifeaturecount - 2, 1);   
 code_array_index_variable(st, language, "testdataconverted", "i"); 
 code_set_variable(testcodefile, language, "x_i", st);
 code_for(testcodefile, language, "j", 0, newdimension - 1, 1);
 code_array_index_variable(st2, language, "testdatareduced", "j"); 
 code_2d_array_index_variable(st, language, "eigenvectors", "i", "j");
 code_set_variable(testcodefile, language, "eigenvectors_ij", st);
 sprintf(st3, "%s + eigenvectors_ij * x_i", st2);
 code_set_variable(testcodefile, language, st2, st3);
 code_endfor(testcodefile, language, "j");
 code_endfor(testcodefile, language, "i");
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
subq $0x16e360, %rsp         # imm = 0x16E360
movl %ecx, %ebp
movq %rdx, %r15
movl %esi, %ebx
movq %rdi, %r14
leaq 0x30a64(%rip), %rdx     # 0xb092e
leaq 0x30d44(%rip), %r8      # 0xb0c15
callq 0x7ee51
movl 0x1c0(%r15), %r8d
addl $-0x2, %r8d
leaq 0x30dd1(%rip), %rdx     # 0xb0cb9
movq %r14, %rdi
movl %ebx, %esi
xorl %ecx, %ecx
movl $0x1, %r9d
callq 0x7e3dc
cmpl $0x5, %ebx
ja 0x7ff24
movl %ebx, %eax
leaq 0x53e78(%rip), %rcx     # 0xd3d80
movq (%rcx,%rax,8), %rsi
leaq 0x30971(%rip), %rdx     # 0xb0884
leaq 0x30d9f(%rip), %rcx     # 0xb0cb9
movq %rsp, %rdi
xorl %eax, %eax
callq 0x41b0
leaq 0x30c10(%rip), %rdx     # 0xb0b3b
movq %rsp, %rcx
movq %r14, %rdi
movl %ebx, %esi
callq 0x7d316
decl %ebp
leaq 0x30a73(%rip), %rdx     # 0xb09b4
movq %r14, %rdi
movl %ebx, %esi
xorl %ecx, %ecx
movl %ebp, %r8d
movl $0x1, %r9d
callq 0x7e3dc
cmpl $0x5, %ebx
ja 0x7ffcd
movl $0xb, %eax
btl %ebx, %eax
jae 0x7ff6e
leaq 0x30418(%rip), %rsi     # 0xb0384
jmp 0x7ff83
movl $0x30, %eax
btl %ebx, %eax
jae 0x80039
leaq 0x30413(%rip), %rsi     # 0xb0396
leaq 0x309a4(%rip), %rdx     # 0xb092e
leaq 0x30a23(%rip), %rcx     # 0xb09b4
leaq 0x7a120(%rsp), %rdi
xorl %eax, %eax
callq 0x41b0
movslq %ebx, %rax
leaq 0x53d46(%rip), %rcx     # 0xd3cf0
movq (%rcx,%rax,8), %rsi
leaq 0x30989(%rip), %rdx     # 0xb093e
leaq 0x30cfd(%rip), %rcx     # 0xb0cb9
leaq 0x309f1(%rip), %r8      # 0xb09b4
movq %rsp, %rdi
xorl %eax, %eax
callq 0x41b0
leaq 0x30977(%rip), %rdx     # 0xb094b
movq %rsp, %rcx
movq %r14, %rdi
movl %ebx, %esi
callq 0x7d316
leaq 0x30973(%rip), %rsi     # 0xb095b
leaq 0xf4240(%rsp), %r15
leaq 0x7a120(%rsp), %r12
movq %r15, %rdi
movq %r12, %rdx
xorl %eax, %eax
callq 0x41b0
movq %r14, %rdi
movl %ebx, %esi
movq %r12, %rdx
movq %r15, %rcx
callq 0x7d316
movq %r14, %rdi
movl %ebx, %esi
callq 0x7e686
movq %r14, %rdi
movl %ebx, %esi
callq 0x7e686
addq $0x16e360, %rsp         # imm = 0x16E360
popq %rbx
popq %r12
popq %r14
popq %r15
popq %rbp
retq
leaq 0x3034b(%rip), %rsi     # 0xb038b
leaq 0x308e7(%rip), %rdx     # 0xb092e
leaq 0x30966(%rip), %rcx     # 0xb09b4
leaq 0x7a120(%rsp), %rdi
xorl %eax, %eax
callq 0x41b0
leaq 0x30348(%rip), %rsi     # 0xb03ac
jmp 0x7ffae