// File: /workspace/github_c_makefile_star2_O3/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, %rbx
leaq 0xbc0b2(%rip), %rax     # 0xd5878
movq (%rax), %r13
testq %r13, %r13
je 0x197e7
movq 0x8(%r13), %rdi
movq %rbx, %rsi
callq 0x4260
testl %eax, %eax
je 0x19813
movq 0x1407270(%r13), %r13
jmp 0x197c9
leaq 0x3988ba(%rip), %rax    # 0x3b20a8
movq (%rax), %rdi
leaq 0x8dd61(%rip), %rsi     # 0xa7559
movq %rbx, %rdx
xorl %eax, %eax
addq $0x7a138, %rsp          # imm = 0x7A138
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
jmp 0x42e0
leaq 0x39888e(%rip), %r15    # 0x3b20a8
movq (%r15), %rcx
leaq 0x8db78(%rip), %rdi     # 0xa739c
movl $0x27, %esi
movl $0x1, %edx
callq 0x42c0
movq (%r15), %rdi
movq 0x8(%r13), %rdx
leaq 0x8db83(%rip), %rsi     # 0xa73c4
xorl %eax, %eax
callq 0x42e0
movq (%r15), %rdi
movl 0x1bc(%r13), %edx
leaq 0x8db7d(%rip), %rsi     # 0xa73d6
xorl %eax, %eax
callq 0x42e0
cmpl $0x0, 0x1bc(%r13)
jle 0x199ac
leaq 0x30f08(%r13), %rbx
leaq 0x30f28(%r13), %rbp
leaq 0x8dbda(%rip), %r14     # 0xa745d
xorl %edx, %edx
movq %rbx, (%rsp)
imulq $0x340, %rdx, %r12      # imm = 0x340
movl (%rbx,%r12), %esi
incq %rdx
cmpq $0x4, %rsi
ja 0x19981
addq %rbx, %r12
leaq 0x8ccc1(%rip), %rcx     # 0xa656c
movslq (%rcx,%rsi,4), %rax
addq %rcx, %rax
jmpq *%rax
movq (%r15), %rdi
movl 0x8(%r12), %ecx
movl 0x10(%r12), %r8d
leaq 0x8db20(%rip), %rsi     # 0xa73e8
movq %rdx, %r12
xorl %eax, %eax
callq 0x42e0
jmp 0x19992
movq (%r15), %rdi
leaq 0x8db88(%rip), %rsi     # 0xa7469
jmp 0x19914
movq (%r15), %rdi
movsd 0x8(%r12), %xmm0
movsd 0x10(%r12), %xmm1
leaq 0x8db1e(%rip), %rsi     # 0xa7419
movq %rdx, %r12
movb $0x2, %al
callq 0x42e0
jmp 0x19992
movq (%r15), %rdi
leaq 0x8db7a(%rip), %rsi     # 0xa748e
movq %rdx, %r12
xorl %eax, %eax
callq 0x42e0
jmp 0x19992
movq (%r15), %rdi
leaq 0x8db1d(%rip), %rsi     # 0xa7447
movq %rdx, 0x8(%rsp)
xorl %eax, %eax
callq 0x42e0
cmpl $0x0, 0x18(%r12)
movq %r15, %rbx
jle 0x19966
xorl %r15d, %r15d
movq (%rbx), %rdi
movq (%rbp,%r15,8), %rcx
incq %r15
movq %r14, %rsi
movl %r15d, %edx
xorl %eax, %eax
callq 0x42e0
movslq 0x18(%r12), %rax
cmpq %rax, %r15
jl 0x19944
movq (%rbx), %rsi
movl $0xa, %edi
callq 0x4150
movq %rbx, %r15
movq (%rsp), %rbx
movq 0x8(%rsp), %r12
jmp 0x19992
leaq 0x8c9e6(%rip), %rdi     # 0xa636e
xorl %eax, %eax
movq %rdx, %r12
callq 0x4030
movslq 0x1bc(%r13), %rax
addq $0x340, %rbp            # imm = 0x340
cmpq %rax, %r12
movq %r12, %rdx
jl 0x19889
movq (%r15), %rdi
movl 0x10(%r13), %edx
leaq 0x8daf4(%rip), %rsi     # 0xa74ae
xorl %eax, %eax
callq 0x42e0
cmpl $0x0, 0x10(%r13)
jle 0x199f3
leaq 0x8daf1(%rip), %rbx     # 0xa74c0
xorl %r14d, %r14d
movq (%r15), %rdi
movq 0x18(%r13,%r14,8), %rcx
incq %r14
movq %rbx, %rsi
movl %r14d, %edx
xorl %eax, %eax
callq 0x42e0
movslq 0x10(%r13), %rax
cmpq %rax, %r14
jl 0x199d2
movl 0x140713c(%r13), %edi
movl $0x3, %esi
xorl %edx, %edx
movl $0x2, %ecx
movl $0x3, %r8d
xorl %eax, %eax
callq 0x3aa8c
leaq 0x1b0(%r13), %r14
leaq 0x1407110(%r13), %rcx
xorl %edx, %edx
testl %eax, %eax
setne %dl
movq (%r15), %rdi
leaq 0x8dac4(%rip), %rax     # 0xa74f6
leaq 0x8da99(%rip), %rsi     # 0xa74d2
cmoveq %rax, %rsi
leaq 0x8dac4(%rip), %rax     # 0xa7508
leaq 0x8da99(%rip), %rbx     # 0xa74e4
cmoveq %rax, %rbx
cmoveq %rcx, %r14
shll $0x4, %edx
movq 0x1407108(%r13,%rdx), %rdx
xorl %eax, %eax
callq 0x42e0
movq (%r15), %rdi
movq (%r14), %rdx
movq %rbx, %rsi
xorl %eax, %eax
callq 0x42e0
movq (%r15), %rdi
movl 0x1407120(%r13), %edx
leaq 0x8da94(%rip), %rsi     # 0xa751a
xorl %eax, %eax
callq 0x42e0
cmpl $0x0, 0x10(%r13)
jle 0x19ac2
leaq 0x8da91(%rip), %rbx     # 0xa752c
xorl %r14d, %r14d
movq (%r15), %rdi
movl 0x1407140(%r13,%r14,4), %ecx
incq %r14
movq %rbx, %rsi
movl %r14d, %edx
xorl %eax, %eax
callq 0x42e0
movslq 0x10(%r13), %rax
cmpq %rax, %r14
jl 0x19a9e
movq (%r15), %rdi
movl 0x1407128(%r13), %edx
leaq 0x8da6e(%rip), %rsi     # 0xa7541
xorl %eax, %eax
callq 0x42e0
leaq 0x8da70(%rip), %rsi     # 0xa7551
leaq 0x8f6b3(%rip), %rdx     # 0xa919b
leaq 0x10(%rsp), %rbx
movq %rbx, %rdi
callq 0x3a535
movq (%r15), %rdi
movsd 0x1407130(%r13), %xmm0
movq %rbx, %rsi
movb $0x1, %al
callq 0x42e0
addq $0x7a138, %rsp          # imm = 0x7A138
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq