// File: ashlall[P]StreamStats/ChiSquareExperiments/VaryMemoryOneSample.cpp
// Function: name_file(char*, char**, int)
void name_file(char *str, char *argv[], int extra)
{
  time_t now = time(0);
  struct tm tstruct;
  char buf[80];
  tstruct = *localtime(&now);
  strftime(buf, sizeof(buf), "%m-%d-%Y.%X", &tstruct);

  strcpy(str, "VaryM1_");
  strcat(str, argv[1]);
  strcat(str, "-");
  strcat(str, argv[2]);
  strcat(str, "_");
  strcat(str, argv[3]);
  strcat(str, "X_");
  strcat(str, argv[4]);
  strcat(str, "-");
  strcat(str, argv[5]);
  strcat(str, "-");
  strcat(str, argv[6]);
  strcat(str, "_");
  strcat(str, argv[8]);
  strcat(str, "_");
  strcat(str, argv[9]);
  strcat(str, "_");
  if (atoi(argv[7]))
    strcat(str, "all_");
  else
    strcat(str, "GK_");
  strcat(str, buf);
  if (extra == 0)
    strcat(str, "_log.dat");
  else if (extra == 1)
    strcat(str, "_table.dat");
  else if (extra == 2)
    strcat(str, "_extra.dat");
  else if (extra == 3)
    strcat(str, "_pvalues.dat");
  else if (extra == 4)
    strcat(str, "_actual-values.dat");
  else 
	strcat(str, "_times.dat");
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
subq $0xb0, %rsp
movq %rdi, -0x8(%rbp)
movq %rsi, -0x10(%rbp)
movl %edx, -0x14(%rbp)
xorl %eax, %eax
movl %eax, %edi
callq 0x2180
movq %rax, -0x20(%rbp)
leaq -0x20(%rbp), %rdi
callq 0x2110
movq %rax, %rsi
leaq -0x58(%rbp), %rdi
movl $0x38, %edx
callq 0x2160
leaq -0xb0(%rbp), %rdi
movl $0x50, %esi
leaq 0x9f1e(%rip), %rdx      # 0x1243e
leaq -0x58(%rbp), %rcx
callq 0x2150
movq -0x8(%rbp), %rdi
leaq 0x9f16(%rip), %rsi      # 0x1244a
callq 0x2190
movq -0x8(%rbp), %rdi
movq -0x10(%rbp), %rax
movq 0x8(%rax), %rsi
callq 0x2330
movq -0x8(%rbp), %rdi
leaq 0x9efd(%rip), %rsi      # 0x12452
callq 0x2330
movq -0x8(%rbp), %rdi
movq -0x10(%rbp), %rax
movq 0x10(%rax), %rsi
callq 0x2330
movq -0x8(%rbp), %rdi
leaq 0x9eda(%rip), %rsi      # 0x12450
callq 0x2330
movq -0x8(%rbp), %rdi
movq -0x10(%rbp), %rax
movq 0x18(%rax), %rsi
callq 0x2330
movq -0x8(%rbp), %rdi
leaq 0x9ebd(%rip), %rsi      # 0x12454
callq 0x2330
movq -0x8(%rbp), %rdi
movq -0x10(%rbp), %rax
movq 0x20(%rax), %rsi
callq 0x2330
movq -0x8(%rbp), %rdi
leaq 0x9e9a(%rip), %rsi      # 0x12452
callq 0x2330
movq -0x8(%rbp), %rdi
movq -0x10(%rbp), %rax
movq 0x28(%rax), %rsi
callq 0x2330
movq -0x8(%rbp), %rdi
leaq 0x9e79(%rip), %rsi      # 0x12452
callq 0x2330
movq -0x8(%rbp), %rdi
movq -0x10(%rbp), %rax
movq 0x30(%rax), %rsi
callq 0x2330
movq -0x8(%rbp), %rdi
leaq 0x9e56(%rip), %rsi      # 0x12450
callq 0x2330
movq -0x8(%rbp), %rdi
movq -0x10(%rbp), %rax
movq 0x40(%rax), %rsi
callq 0x2330
movq -0x8(%rbp), %rdi
leaq 0x9e35(%rip), %rsi      # 0x12450
callq 0x2330
movq -0x8(%rbp), %rdi
movq -0x10(%rbp), %rax
movq 0x48(%rax), %rsi
callq 0x2330
movq -0x8(%rbp), %rdi
leaq 0x9e14(%rip), %rsi      # 0x12450
callq 0x2330
movq -0x10(%rbp), %rax
movq 0x38(%rax), %rdi
callq 0x2280
cmpl $0x0, %eax
je 0x8665
movq -0x8(%rbp), %rdi
leaq 0x9df9(%rip), %rsi      # 0x12457
callq 0x2330
jmp 0x8675
movq -0x8(%rbp), %rdi
leaq 0x9dec(%rip), %rsi      # 0x1245c
callq 0x2330
movq -0x8(%rbp), %rdi
leaq -0xb0(%rbp), %rsi
callq 0x2330
cmpl $0x0, -0x14(%rbp)
jne 0x869d
movq -0x8(%rbp), %rdi
leaq 0x9dca(%rip), %rsi      # 0x12460
callq 0x2330
jmp 0x8715
cmpl $0x1, -0x14(%rbp)
jne 0x86b5
movq -0x8(%rbp), %rdi
leaq 0x9dbb(%rip), %rsi      # 0x12469
callq 0x2330
jmp 0x8713
cmpl $0x2, -0x14(%rbp)
jne 0x86cd
movq -0x8(%rbp), %rdi
leaq 0x9dae(%rip), %rsi      # 0x12474
callq 0x2330
jmp 0x8711
cmpl $0x3, -0x14(%rbp)
jne 0x86e5
movq -0x8(%rbp), %rdi
leaq 0x9da1(%rip), %rsi      # 0x1247f
callq 0x2330
jmp 0x870f
cmpl $0x4, -0x14(%rbp)
jne 0x86fd
movq -0x8(%rbp), %rdi
leaq 0x9d96(%rip), %rsi      # 0x1248c
callq 0x2330
jmp 0x870d
movq -0x8(%rbp), %rdi
leaq 0x9d97(%rip), %rsi      # 0x1249f
callq 0x2330
jmp 0x870f
jmp 0x8711
jmp 0x8713
jmp 0x8715
addq $0xb0, %rsp
popq %rbp
retq
nop