// File: /workspace/github_c_makefile_star2_O2/olcaytaner[P]Isell/savecode.c
// Function: code_add_variable
void code_add_variable(FILE* testcodefile, PROGRAMMING_LANGUAGE_TYPE language, int vartype, int count, ...)
{
 /*!Last Changed 05.06.2006*/
 int i;
 char* line;
 va_list ap;
 if (in_list(language, 1, MATLAB_LANGUAGE))
   return;
 switch (language)
  {
   case C_LANGUAGE      :
   case CPP_LANGUAGE    :
   case JAVA_LANGUAGE   :switch (vartype)
                          {
                           case INTEGER_VARIABLE:fprintf(testcodefile, "int");
                                                 break;
                           case REAL_VARIABLE   :fprintf(testcodefile, "double");
                                                 break;
                          }
                         break;
   case FORTRAN_LANGUAGE:switch (vartype)
                          {
                           case INTEGER_VARIABLE:fprintf(testcodefile, "integer");
                                                 break;
                           case REAL_VARIABLE   :fprintf(testcodefile, "real");
                                                 break;
                          }
                         break;
   default              :break;
  }
 va_start(ap, count);
 for (i = 0; i < count; i++)
  { 
   line = va_arg(ap, char *);
   if (i != 0)
     fprintf(testcodefile, ",");
   fprintf(testcodefile, " %s", line);
  }
 switch (language)
  {
   case C_LANGUAGE      :
   case CPP_LANGUAGE    :
   case JAVA_LANGUAGE   :
   case FORTRAN_LANGUAGE:fprintf(testcodefile, ";\n");
                         break;
   case PASCAL_LANGUAGE :switch (vartype)
                          {
                           case INTEGER_VARIABLE:fprintf(testcodefile, ": integer;\n");
                                                 break;
                           case REAL_VARIABLE   :fprintf(testcodefile, ": real;\n");
                                                 break;
                          }
                         break;
   default              :break;
  }
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0xe8, %rsp
movl %ecx, %r15d
movl %edx, %ebp
movl %esi, %r14d
movq %rdi, %rbx
movq %r8, 0x50(%rsp)
movq %r9, 0x58(%rsp)
testb %al, %al
je 0x72e45
movaps %xmm0, 0x60(%rsp)
movaps %xmm1, 0x70(%rsp)
movaps %xmm2, 0x80(%rsp)
movaps %xmm3, 0x90(%rsp)
movaps %xmm4, 0xa0(%rsp)
movaps %xmm5, 0xb0(%rsp)
movaps %xmm6, 0xc0(%rsp)
movaps %xmm7, 0xd0(%rsp)
pushq $0x1
popq %rsi
pushq $0x4
popq %rdx
movl %r14d, %edi
xorl %eax, %eax
callq 0x35812
testl %eax, %eax
jne 0x72f7d
cmpl $0x2, %r14d
jb 0x72e6f
cmpl $0x5, %r14d
je 0x72e8e
cmpl $0x3, %r14d
jne 0x72eb7
cmpl $0x1, %ebp
je 0x72e83
testl %ebp, %ebp
jne 0x72eb7
leaq 0x26cff(%rip), %rdi     # 0x99b7e
pushq $0x3
jmp 0x72eab
leaq 0x236a1(%rip), %rdi     # 0x9652b
pushq $0x6
jmp 0x72eab
cmpl $0x1, %ebp
je 0x72ea2
testl %ebp, %ebp
jne 0x72eb7
leaq 0x2d388(%rip), %rdi     # 0xa0226
pushq $0x7
jmp 0x72eab
leaq 0x2d385(%rip), %rdi     # 0xa022e
pushq $0x4
popq %rsi
pushq $0x1
popq %rdx
movq %rbx, %rcx
callq 0x42c0
movl %r14d, 0x8(%rsp)
movl %ebp, 0xc(%rsp)
leaq 0x30(%rsp), %rax
movq %rax, 0x20(%rsp)
leaq 0x120(%rsp), %rax
movq %rax, 0x18(%rsp)
movabsq $0x3000000020, %rax     # imm = 0x3000000020
xorl %ecx, %ecx
testl %r15d, %r15d
cmovlel %ecx, %r15d
movq %rax, 0x10(%rsp)
leaq 0x24fd9(%rip), %r12     # 0x97ecf
pushq $0x2c
popq %r13
xorl %r14d, %r14d
cmpl %r14d, %r15d
je 0x72f53
movl 0x10(%rsp), %ecx
cmpq $0x28, %rcx
ja 0x72f1d
movq %rcx, %rax
addq 0x20(%rsp), %rax
addl $0x8, %ecx
movl %ecx, 0x10(%rsp)
jmp 0x72f2b
movq 0x18(%rsp), %rax
leaq 0x8(%rax), %rcx
movq %rcx, 0x18(%rsp)
movq (%rax), %rbp
testl %r14d, %r14d
je 0x72f3e
movl %r13d, %edi
movq %rbx, %rsi
callq 0x4150
movq %rbx, %rdi
movq %r12, %rsi
movq %rbp, %rdx
xorl %eax, %eax
callq 0x42e0
incl %r14d
jmp 0x72efd
movl 0x8(%rsp), %edx
cmpl $0x5, %edx
movl 0xc(%rsp), %ecx
ja 0x72f7d
pushq $0x2b
popq %rax
btl %edx, %eax
jae 0x72f8f
leaq 0x268e8(%rip), %rdi     # 0x99857
pushq $0x2
popq %rsi
pushq $0x1
popq %rdx
movq %rbx, %rcx
callq 0x42c0
addq $0xe8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
cmpl $0x2, %edx
jne 0x72f7d
cmpl $0x1, %ecx
je 0x72fa8
testl %ecx, %ecx
jne 0x72f7d
leaq 0x2d2ab(%rip), %rdi     # 0xa024f
pushq $0xb
jmp 0x72f71
leaq 0x2d2ac(%rip), %rdi     # 0xa025b
pushq $0x8
jmp 0x72f71