// File: /workspace/github_c_makefile_star2_O2/olcaytaner[P]Isell/dataset.c
// Function: display_dataset_properties
void display_dataset_properties(char *dataset_name)
{
 /*!Last Changed 06.01.2007*/
 /*!Last Changed 28.12.2005 added database properties*/
 /*!Last Changed 10.03.2004 Extended to regression*/
 int i,j;
 char pst[READLINELENGTH];
 Datasetptr dataset;
 dataset = search_dataset(Datasets, dataset_name);
 if (dataset)
  {
   fprintf(output,"----------DATASET PROPERTIES----------\n");
   fprintf(output,"NAME        : %s\n",dataset->name);
   fprintf(output,"FEATURES    : %d\n",dataset->featurecount);
   for (i=0;i<dataset->featurecount;i++)
     switch (dataset->features[i].type){
       case INTEGER :fprintf(output,"FEATURE #%d : INTEGER, MINVALUE:%d, MAXVALUE:%d\n",i+1,dataset->features[i].min.intvalue,dataset->features[i].max.intvalue);
                     break;
       case REAL    :fprintf(output,"FEATURE #%d : REAL, MINVALUE:%f, MAXVALUE:%f\n",i+1,dataset->features[i].min.floatvalue,dataset->features[i].max.floatvalue);
                     break;
       case STRING  :fprintf(output,"FEATURE #%d : STRING,",i+1);
                     for (j=0;j<dataset->features[i].valuecount;j++)
                       fprintf(output,"VALUE%d:%s ",j+1,dataset->features[i].strings[j]);
                     fprintf(output,"\n");
                     break;
       case REGDEF  :fprintf(output,"FEATURE #%d : REGRESSION DEFINITION\n",i+1);
                     break;
       case CLASSDEF:fprintf(output,"FEATURE #%d : CLASS DEFINITION\n",i+1);
                     break;
       default      :printf(m1238, dataset->features[i].type);
                     break;
     }
   fprintf(output, "CLASS NUMBER: %d\n", dataset->classno);
   for (i = 0; i < dataset->classno; i++)
     fprintf(output,"CLASS #%d   : %s\n",i + 1, dataset->classes[i]);
   if (in_list(dataset->storetype, 3, STORE_TEXT, STORE_SEQUENTIAL, STORE_KERNEL))
    {
     fprintf(output,"DIRECTORY   : %s\n", dataset->directory);
     fprintf(output,"FILE        : %s\n", dataset->file);
    }
   else
    {
     fprintf(output,"DSN         : %s\n", dataset->dsnname);
     fprintf(output,"TABLE NAME  : %s\n", dataset->tablename);
    }
   fprintf(output,"DATA COUNT  : %d\n", dataset->datacount);
   for (i = 0;i < dataset->classno; i++)
     fprintf(output,"CLASS #%d COUNT: %d\n", i + 1, dataset->classcounts[i]);
   fprintf(output, "CLASSDEFNO: %d\n", dataset->classdefno);
   set_precision(pst, "SIGMA :", "\n");
   fprintf(output, pst, dataset->sigma);
  }
 else
   fprintf(output,"Dataset %s in not in the definition file\n",dataset_name);
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x7a138, %rsp          # imm = 0x7A138
movq %rdi, %r14
leaq 0xb5d0a(%rip), %rax     # 0xcd878
movq (%rax), %rdi
movq %r14, %rsi
callq 0x13da6
leaq 0x392528(%rip), %r15    # 0x3aa0a8
movq (%r15), %rcx
testq %rax, %rax
je 0x17e68
movq %rax, %r12
leaq 0x7f7a6(%rip), %rdi     # 0x9733c
pushq $0x27
popq %rsi
pushq $0x1
popq %rdx
callq 0x42c0
movq (%r15), %rdi
movq 0x8(%r12), %rdx
leaq 0x7f7b4(%rip), %rsi     # 0x97364
xorl %eax, %eax
callq 0x42e0
movq %r15, %rbx
movq (%r15), %rdi
movl 0x1bc(%r12), %edx
leaq 0x7f7aa(%rip), %rsi     # 0x97376
xorl %eax, %eax
callq 0x42e0
leaq 0x30f08(%r12), %r14
leaq 0x30f28(%r12), %r15
leaq 0x7f813(%rip), %r13     # 0x973fd
xorl %ebp, %ebp
movq %r12, 0x8(%rsp)
movq %r14, (%rsp)
movslq 0x1bc(%r12), %rax
cmpq %rax, %rbp
jge 0x17d00
imulq $0x340, %rbp, %r12      # imm = 0x340
movl (%r14,%r12), %esi
incq %rbp
cmpq $0x4, %rsi
ja 0x17ce1
addq %r14, %r12
leaq 0x7e8c4(%rip), %rcx     # 0x964ec
movslq (%rcx,%rsi,4), %rax
addq %rcx, %rax
jmpq *%rax
movq (%rbx), %rdi
movl 0x8(%r12), %ecx
movl 0x10(%r12), %r8d
leaq 0x7f743(%rip), %rsi     # 0x97388
movl %ebp, %edx
xorl %eax, %eax
callq 0x42e0
jmp 0x17cef
movq (%rbx), %rdi
leaq 0x7f7ac(%rip), %rsi     # 0x97409
jmp 0x17c8c
movq (%rbx), %rdi
movsd 0x8(%r12), %xmm0
movsd 0x10(%r12), %xmm1
leaq 0x7f742(%rip), %rsi     # 0x973b9
movl %ebp, %edx
movb $0x2, %al
callq 0x42e0
jmp 0x17cef
movq (%rbx), %rdi
leaq 0x7f7a2(%rip), %rsi     # 0x9742e
movl %ebp, %edx
xorl %eax, %eax
callq 0x42e0
jmp 0x17cef
movq (%rbx), %rdi
leaq 0x7f746(%rip), %rsi     # 0x973e7
movl %ebp, %edx
xorl %eax, %eax
callq 0x42e0
xorl %r14d, %r14d
movslq 0x18(%r12), %rax
movq (%rbx), %rsi
cmpq %rax, %r14
jge 0x17cd3
movq (%r15,%r14,8), %rcx
incq %r14
movq %rsi, %rdi
movq %r13, %rsi
movl %r14d, %edx
xorl %eax, %eax
callq 0x42e0
jmp 0x17cad
pushq $0xa
popq %rdi
callq 0x4150
movq (%rsp), %r14
jmp 0x17cef
leaq 0x7e686(%rip), %rdi     # 0x9636e
xorl %eax, %eax
callq 0x4030
addq $0x340, %r15            # imm = 0x340
movq 0x8(%rsp), %r12
jmp 0x17bf5
movq (%rbx), %rdi
movl 0x10(%r12), %edx
leaq 0x7f73f(%rip), %rsi     # 0x9744e
xorl %eax, %eax
callq 0x42e0
leaq 0x7f743(%rip), %r14     # 0x97460
xorl %r15d, %r15d
movslq 0x10(%r12), %rax
cmpq %rax, %r15
jge 0x17d44
movq (%rbx), %rdi
movq 0x18(%r12,%r15,8), %rcx
incq %r15
movq %r14, %rsi
movl %r15d, %edx
xorl %eax, %eax
callq 0x42e0
jmp 0x17d20
movl 0x140713c(%r12), %edi
pushq $0x2
popq %rcx
pushq $0x3
popq %rsi
xorl %edx, %edx
movl %esi, %r8d
xorl %eax, %eax
callq 0x35812
leaq 0x1b0(%r12), %rcx
movq %r12, %r15
addq $0x1407110, %r15        # imm = 0x1407110
xorl %edx, %edx
testl %eax, %eax
setne %dl
movq (%rbx), %rdi
leaq 0x7f715(%rip), %rax     # 0x97496
leaq 0x7f6ea(%rip), %rsi     # 0x97472
cmoveq %rax, %rsi
leaq 0x7f715(%rip), %rax     # 0x974a8
leaq 0x7f6ea(%rip), %r14     # 0x97484
cmoveq %rax, %r14
cmovneq %rcx, %r15
shll $0x4, %edx
movq 0x1407108(%r12,%rdx), %rdx
xorl %eax, %eax
callq 0x42e0
movq (%rbx), %rdi
movq (%r15), %rdx
movq %r14, %rsi
xorl %eax, %eax
callq 0x42e0
movq (%rbx), %rdi
movl 0x1407120(%r12), %edx
leaq 0x7f6e4(%rip), %rsi     # 0x974ba
xorl %eax, %eax
callq 0x42e0
leaq 0x7f6e8(%rip), %r14     # 0x974cc
xorl %r15d, %r15d
movslq 0x10(%r12), %rax
movq (%rbx), %rdi
cmpq %rax, %r15
jge 0x17e0e
movl 0x1407140(%r12,%r15,4), %ecx
incq %r15
movq %r14, %rsi
movl %r15d, %edx
xorl %eax, %eax
callq 0x42e0
jmp 0x17de7
movl 0x1407128(%r12), %edx
leaq 0x7f6c4(%rip), %rsi     # 0x974e1
xorl %eax, %eax
callq 0x42e0
leaq 0x7f6c6(%rip), %rsi     # 0x974f1
leaq 0x812d9(%rip), %rdx     # 0x9910b
leaq 0x10(%rsp), %r14
movq %r14, %rdi
callq 0x35305
movq (%rbx), %rdi
movsd 0x1407130(%r12), %xmm0
movq %r14, %rsi
movb $0x1, %al
callq 0x42e0
addq $0x7a138, %rsp          # imm = 0x7A138
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
leaq 0x7f68a(%rip), %rsi     # 0x974f9
movq %rcx, %rdi
movq %r14, %rdx
xorl %eax, %eax
addq $0x7a138, %rsp          # imm = 0x7A138
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
jmp 0x42e0