#define NULL ((void *)0)
typedef unsigned long size_t; // Customize by platform.
typedef long intptr_t;
typedef unsigned long uintptr_t;
typedef long scalar_t__; // Either arithmetic or pointer type.
/* By default, we understand bool (as a convenience). */
typedef int bool;
#define false 0
#define true 1

/* Forward declarations */

/* Type definitions */
struct TmpArray {
  void **VoidArray;
  int **IntArray;
  long **LngArray;
  float **FltArray;
  double **DblArray;
  char **ChrArray;
};

/* Variables and functions */
int sscanf(int /*<<< orphan*/, char *, ...);
void *xmalloc(unsigned int);
int GAGetMultiParmeters(void *Parameters[], int *ParamCount, char *CtrlStrCopy,
                        char **argv_end, char ***argv) {
  int i = 0, ScanRes, NumOfPrm = 0;
  void **Pmain, **Ptemp;
  union TmpArray {
    void *VoidArray[100];
    int *IntArray[100];
    long *LngArray[100];
    float *FltArray[100];
    double *DblArray[100];
    char *ChrArray[100];
  } TmpArray;
  do {
    switch (CtrlStrCopy[2]) {
    case 'd':
      TmpArray.IntArray[NumOfPrm] = xmalloc(sizeof(int));
      ScanRes =
          sscanf(*((*argv)++), "%d", (int *)TmpArray.IntArray[NumOfPrm++]);
      break;
    case 'u':
      TmpArray.IntArray[NumOfPrm] = xmalloc(sizeof(int));
      ScanRes = sscanf(*((*argv)++), "%u",
                       (unsigned int *)TmpArray.IntArray[NumOfPrm++]);
      break;
    case 'o':
      TmpArray.IntArray[NumOfPrm] = xmalloc(sizeof(int));
      ScanRes = sscanf(*((*argv)++), "%o",
                       (unsigned int *)TmpArray.IntArray[NumOfPrm++]);
      break;
    case 'x':
      TmpArray.IntArray[NumOfPrm] = xmalloc(sizeof(int));
      ScanRes = sscanf(*((*argv)++), "%x",
                       (unsigned int *)TmpArray.IntArray[NumOfPrm++]);
      break;
    case 'D':
      TmpArray.LngArray[NumOfPrm] = xmalloc(sizeof(long));
      ScanRes =
          sscanf(*((*argv)++), "%ld", (long *)TmpArray.IntArray[NumOfPrm++]);
      break;
    case 'U':
      TmpArray.LngArray[NumOfPrm] = xmalloc(sizeof(long));
      ScanRes = sscanf(*((*argv)++), "%lu",
                       (unsigned long *)TmpArray.IntArray[NumOfPrm++]);
      break;
    case 'O':
      TmpArray.LngArray[NumOfPrm] = xmalloc(sizeof(long));
      ScanRes = sscanf(*((*argv)++), "%lo",
                       (unsigned long *)TmpArray.IntArray[NumOfPrm++]);
      break;
    case 'X':
      TmpArray.LngArray[NumOfPrm] = xmalloc(sizeof(long));
      ScanRes = sscanf(*((*argv)++), "%lx",
                       (unsigned long *)TmpArray.IntArray[NumOfPrm++]);
      break;
    case 'f':
      TmpArray.FltArray[NumOfPrm] = xmalloc(sizeof(float));
      ScanRes =
          sscanf(*((*argv)++), "%f", (float *)TmpArray.LngArray[NumOfPrm++]);
      break;
    case 'F':
      TmpArray.DblArray[NumOfPrm] = xmalloc(sizeof(double));
      ScanRes =
          sscanf(*((*argv)++), "%lf", (double *)TmpArray.LngArray[NumOfPrm++]);
      break;
    case 's':
      while ((*argv < argv_end) && ((**argv)[0] != '-')) {
        TmpArray.ChrArray[NumOfPrm++] = *((*argv)++);
      }
      ScanRes = 0;
      NumOfPrm++;
      (*argv)++;
      break;
    default:
      ScanRes = 0;
    }
  } while (ScanRes == 1);
  (*argv)--;
  NumOfPrm--;
  Ptemp = Pmain = xmalloc((unsigned)(NumOfPrm + 1) * sizeof(void *));
  for (i = 0; i < NumOfPrm; i++)
    *Ptemp++ = TmpArray.VoidArray[i];
  *Ptemp = NULL;
  *(int *)Parameters[(*ParamCount)++] = NumOfPrm;
  *(void ***)Parameters[(*ParamCount)++] = Pmain;
  return NumOfPrm;
}


x86 assembly (clang, -O0):
<GAGetMultiParmeters>:
push   %rbp
mov    %rsp,%rbp
sub    $0x380,%rsp
mov    %rdi,-0x8(%rbp)
mov    %rsi,-0x10(%rbp)
mov    %rdx,-0x18(%rbp)
mov    %rcx,-0x20(%rbp)
mov    %r8,-0x28(%rbp)
movl   $0x0,-0x2c(%rbp)
movl   $0x0,-0x34(%rbp)
mov    -0x18(%rbp),%rax
movsbl 0x2(%rax),%eax
add    $0xffffffbc,%eax
mov    %eax,%ecx
mov    %rcx,-0x370(%rbp)
sub    $0x34,%eax
ja     15a0 <GAGetMultiParmeters+0x480>
mov    -0x370(%rbp),%rax
lea    0xe88(%rip),%rcx
movslq (%rcx,%rax,4),%rax
add    %rcx,%rax
jmp    *%rax
mov    $0x4,%edi
call   1030 <xmalloc@plt>
mov    %rax,%rcx
movslq -0x34(%rbp),%rax
mov    %rcx,-0x368(%rbp,%rax,8)
ff
mov    -0x28(%rbp),%rcx
mov    (%rcx),%rax
mov    %rax,%rdx
add    $0x8,%rdx
mov    %rdx,(%rcx)
mov    (%rax),%rax
mov    %eax,%edi
mov    -0x34(%rbp),%eax
mov    %eax,%ecx
add    $0x1,%ecx
mov    %ecx,-0x34(%rbp)
cltq
mov    -0x368(%rbp,%rax,8),%rdx
ff
lea    0xf08(%rip),%rsi
mov    $0x0,%al
call   1040 <sscanf@plt>
mov    %eax,-0x30(%rbp)
jmp    15a7 <GAGetMultiParmeters+0x487>
mov    $0x4,%edi
call   1030 <xmalloc@plt>
mov    %rax,%rcx
movslq -0x34(%rbp),%rax
mov    %rcx,-0x368(%rbp,%rax,8)
ff
mov    -0x28(%rbp),%rcx
mov    (%rcx),%rax
mov    %rax,%rdx
add    $0x8,%rdx
mov    %rdx,(%rcx)
mov    (%rax),%rax
mov    %eax,%edi
mov    -0x34(%rbp),%eax
mov    %eax,%ecx
add    $0x1,%ecx
mov    %ecx,-0x34(%rbp)
cltq
mov    -0x368(%rbp,%rax,8),%rdx
ff
lea    0xeb1(%rip),%rsi
mov    $0x0,%al
call   1040 <sscanf@plt>
mov    %eax,-0x30(%rbp)
jmp    15a7 <GAGetMultiParmeters+0x487>
mov    $0x4,%edi
call   1030 <xmalloc@plt>
mov    %rax,%rcx
movslq -0x34(%rbp),%rax
mov    %rcx,-0x368(%rbp,%rax,8)
ff
mov    -0x28(%rbp),%rcx
mov    (%rcx),%rax
mov    %rax,%rdx
add    $0x8,%rdx
mov    %rdx,(%rcx)
mov    (%rax),%rax
mov    %eax,%edi
mov    -0x34(%rbp),%eax
mov    %eax,%ecx
add    $0x1,%ecx
mov    %ecx,-0x34(%rbp)
cltq
mov    -0x368(%rbp,%rax,8),%rdx
ff
lea    0xe5a(%rip),%rsi
mov    $0x0,%al
call   1040 <sscanf@plt>
mov    %eax,-0x30(%rbp)
jmp    15a7 <GAGetMultiParmeters+0x487>
mov    $0x4,%edi
call   1030 <xmalloc@plt>
mov    %rax,%rcx
movslq -0x34(%rbp),%rax
mov    %rcx,-0x368(%rbp,%rax,8)
ff
mov    -0x28(%rbp),%rcx
mov    (%rcx),%rax
mov    %rax,%rdx
add    $0x8,%rdx
mov    %rdx,(%rcx)
mov    (%rax),%rax
mov    %eax,%edi
mov    -0x34(%rbp),%eax
mov    %eax,%ecx
add    $0x1,%ecx
mov    %ecx,-0x34(%rbp)
cltq
mov    -0x368(%rbp,%rax,8),%rdx
ff
lea    0xe03(%rip),%rsi
mov    $0x0,%al
call   1040 <sscanf@plt>
mov    %eax,-0x30(%rbp)
jmp    15a7 <GAGetMultiParmeters+0x487>
mov    $0x8,%edi
call   1030 <xmalloc@plt>
mov    %rax,%rcx
movslq -0x34(%rbp),%rax
mov    %rcx,-0x368(%rbp,%rax,8)
ff
mov    -0x28(%rbp),%rcx
mov    (%rcx),%rax
mov    %rax,%rdx
add    $0x8,%rdx
mov    %rdx,(%rcx)
mov    (%rax),%rax
mov    %eax,%edi
mov    -0x34(%rbp),%eax
mov    %eax,%ecx
add    $0x1,%ecx
mov    %ecx,-0x34(%rbp)
cltq
mov    -0x368(%rbp,%rax,8),%rdx
ff
lea    0xdac(%rip),%rsi
mov    $0x0,%al
call   1040 <sscanf@plt>
mov    %eax,-0x30(%rbp)
jmp    15a7 <GAGetMultiParmeters+0x487>
mov    $0x8,%edi
call   1030 <xmalloc@plt>
mov    %rax,%rcx
movslq -0x34(%rbp),%rax
mov    %rcx,-0x368(%rbp,%rax,8)
ff
mov    -0x28(%rbp),%rcx
mov    (%rcx),%rax
mov    %rax,%rdx
add    $0x8,%rdx
mov    %rdx,(%rcx)
mov    (%rax),%rax
mov    %eax,%edi
mov    -0x34(%rbp),%eax
mov    %eax,%ecx
add    $0x1,%ecx
mov    %ecx,-0x34(%rbp)
cltq
mov    -0x368(%rbp,%rax,8),%rdx
ff
lea    0xd56(%rip),%rsi
mov    $0x0,%al
call   1040 <sscanf@plt>
mov    %eax,-0x30(%rbp)
jmp    15a7 <GAGetMultiParmeters+0x487>
mov    $0x8,%edi
call   1030 <xmalloc@plt>
mov    %rax,%rcx
movslq -0x34(%rbp),%rax
mov    %rcx,-0x368(%rbp,%rax,8)
ff
mov    -0x28(%rbp),%rcx
mov    (%rcx),%rax
mov    %rax,%rdx
add    $0x8,%rdx
mov    %rdx,(%rcx)
mov    (%rax),%rax
mov    %eax,%edi
mov    -0x34(%rbp),%eax
mov    %eax,%ecx
add    $0x1,%ecx
mov    %ecx,-0x34(%rbp)
cltq
mov    -0x368(%rbp,%rax,8),%rdx
ff
lea    0xd00(%rip),%rsi
mov    $0x0,%al
call   1040 <sscanf@plt>
mov    %eax,-0x30(%rbp)
jmp    15a7 <GAGetMultiParmeters+0x487>
mov    $0x8,%edi
call   1030 <xmalloc@plt>
mov    %rax,%rcx
movslq -0x34(%rbp),%rax
mov    %rcx,-0x368(%rbp,%rax,8)
ff
mov    -0x28(%rbp),%rcx
mov    (%rcx),%rax
mov    %rax,%rdx
add    $0x8,%rdx
mov    %rdx,(%rcx)
mov    (%rax),%rax
mov    %eax,%edi
mov    -0x34(%rbp),%eax
mov    %eax,%ecx
add    $0x1,%ecx
mov    %ecx,-0x34(%rbp)
cltq
mov    -0x368(%rbp,%rax,8),%rdx
ff
lea    0xcaa(%rip),%rsi
mov    $0x0,%al
call   1040 <sscanf@plt>
mov    %eax,-0x30(%rbp)
jmp    15a7 <GAGetMultiParmeters+0x487>
mov    $0x4,%edi
call   1030 <xmalloc@plt>
mov    %rax,%rcx
movslq -0x34(%rbp),%rax
mov    %rcx,-0x368(%rbp,%rax,8)
ff
mov    -0x28(%rbp),%rcx
mov    (%rcx),%rax
mov    %rax,%rdx
add    $0x8,%rdx
mov    %rdx,(%rcx)
mov    (%rax),%rax
mov    %eax,%edi
mov    -0x34(%rbp),%eax
mov    %eax,%ecx
add    $0x1,%ecx
mov    %ecx,-0x34(%rbp)
cltq
mov    -0x368(%rbp,%rax,8),%rdx
ff
lea    0xc54(%rip),%rsi
mov    $0x0,%al
call   1040 <sscanf@plt>
mov    %eax,-0x30(%rbp)
jmp    15a7 <GAGetMultiParmeters+0x487>
mov    $0x8,%edi
call   1030 <xmalloc@plt>
mov    %rax,%rcx
movslq -0x34(%rbp),%rax
mov    %rcx,-0x368(%rbp,%rax,8)
ff
mov    -0x28(%rbp),%rcx
mov    (%rcx),%rax
mov    %rax,%rdx
add    $0x8,%rdx
mov    %rdx,(%rcx)
mov    (%rax),%rax
mov    %eax,%edi
mov    -0x34(%rbp),%eax
mov    %eax,%ecx
add    $0x1,%ecx
mov    %ecx,-0x34(%rbp)
cltq
mov    -0x368(%rbp,%rax,8),%rdx
ff
lea    0xbfd(%rip),%rsi
mov    $0x0,%al
call   1040 <sscanf@plt>
mov    %eax,-0x30(%rbp)
jmp    15a7 <GAGetMultiParmeters+0x487>
jmp    150a <GAGetMultiParmeters+0x3ea>
mov    -0x28(%rbp),%rax
mov    (%rax),%rcx
xor    %eax,%eax
cmp    -0x20(%rbp),%rcx
mov    %al,-0x371(%rbp)
jae    153c <GAGetMultiParmeters+0x41c>
mov    -0x28(%rbp),%rax
mov    (%rax),%rax
mov    (%rax),%rax
movsbl (%rax),%eax
cmp    $0x2d,%eax
setne  %al
mov    %al,-0x371(%rbp)
mov    -0x371(%rbp),%al
test   $0x1,%al
jne    154f <GAGetMultiParmeters+0x42f>
jmp    157d <GAGetMultiParmeters+0x45d>
mov    -0x28(%rbp),%rcx
mov    (%rcx),%rax
mov    %rax,%rdx
add    $0x8,%rdx
mov    %rdx,(%rcx)
mov    (%rax),%rcx
mov    -0x34(%rbp),%eax
mov    %eax,%edx
add    $0x1,%edx
mov    %edx,-0x34(%rbp)
cltq
mov    %rcx,-0x368(%rbp,%rax,8)
ff
jmp    150a <GAGetMultiParmeters+0x3ea>
movl   $0x0,-0x30(%rbp)
mov    -0x34(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x34(%rbp)
mov    -0x28(%rbp),%rax
mov    (%rax),%rcx
add    $0x8,%rcx
mov    %rcx,(%rax)
jmp    15a7 <GAGetMultiParmeters+0x487>
movl   $0x0,-0x30(%rbp)
jmp    15ac <GAGetMultiParmeters+0x48c>
cmpl   $0x1,-0x30(%rbp)
je     114d <GAGetMultiParmeters+0x2d>
mov    -0x28(%rbp),%rax
mov    (%rax),%rcx
add    $0xfffffffffffffff8,%rcx
mov    %rcx,(%rax)
mov    -0x34(%rbp),%eax
add    $0xffffffff,%eax
mov    %eax,-0x34(%rbp)
mov    -0x34(%rbp),%eax
add    $0x1,%eax
mov    %eax,%eax
shl    $0x3,%rax
mov    %eax,%edi
call   1030 <xmalloc@plt>
mov    %rax,-0x40(%rbp)
mov    %rax,-0x48(%rbp)
movl   $0x0,-0x2c(%rbp)
mov    -0x2c(%rbp),%eax
cmp    -0x34(%rbp),%eax
jge    1627 <GAGetMultiParmeters+0x507>
movslq -0x2c(%rbp),%rax
mov    -0x368(%rbp,%rax,8),%rcx
ff
mov    -0x48(%rbp),%rax
mov    %rax,%rdx
add    $0x8,%rdx
mov    %rdx,-0x48(%rbp)
mov    %rcx,(%rax)
mov    -0x2c(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x2c(%rbp)
jmp    15ef <GAGetMultiParmeters+0x4cf>
mov    -0x48(%rbp),%rax
movq   $0x0,(%rax)
mov    -0x34(%rbp),%ecx
mov    -0x8(%rbp),%rax
mov    -0x10(%rbp),%rsi
mov    (%rsi),%edx
mov    %edx,%edi
add    $0x1,%edi
mov    %edi,(%rsi)
movslq %edx,%rdx
mov    (%rax,%rdx,8),%rax
mov    %ecx,(%rax)
mov    -0x40(%rbp),%rcx
mov    -0x8(%rbp),%rax
mov    -0x10(%rbp),%rsi
mov    (%rsi),%edx
mov    %edx,%edi
add    $0x1,%edi
mov    %edi,(%rsi)
movslq %edx,%rdx
mov    (%rax,%rdx,8),%rax
mov    %rcx,(%rax)
mov    -0x34(%rbp),%eax
add    $0x380,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<GAGetMultiParmeters>:
push   %rbp
push   %r15
push   %r14
push   %r13
push   %r12
push   %rbx
sub    $0x328,%rsp
mov    %r8,%rbx
mov    %rcx,(%rsp)
mov    %rdx,%r13
mov    %rsi,%r15
mov    %rdi,%r14
lea    0xea8(%rip),%rbp
xor    %r12d,%r12d
jmp    1197 <GAGetMultiParmeters+0x67>
mov    $0x4,%edi
call   1030 <xmalloc@plt>
mov    %rax,0x8(%rsp,%r12,8)
mov    (%rbx),%rcx
lea    0x8(%rcx),%rdx
mov    %rdx,(%rbx)
mov    (%rcx),%edi
lea    0xf55(%rip),%rsi
nop
mov    %rax,%rdx
xor    %eax,%eax
call   1050 <sscanf@plt>
add    $0x1,%r12
cmp    $0x1,%eax
jne    130b <GAGetMultiParmeters+0x1db>
movsbl 0x2(%r13),%eax
add    $0xffffffbc,%eax
cmp    $0x34,%eax
ja     130b <GAGetMultiParmeters+0x1db>
movslq 0x0(%rbp,%rax,4),%rax
add    %rbp,%rax
jmp    *%rax
mov    $0x8,%edi
call   1030 <xmalloc@plt>
mov    %rax,0x8(%rsp,%r12,8)
mov    (%rbx),%rcx
lea    0x8(%rcx),%rdx
mov    %rdx,(%rbx)
mov    (%rcx),%edi
lea    0xf0c(%rip),%rsi
jmp    1180 <GAGetMultiParmeters+0x50>
mov    $0x8,%edi
call   1030 <xmalloc@plt>
mov    %rax,0x8(%rsp,%r12,8)
mov    (%rbx),%rcx
lea    0x8(%rcx),%rdx
mov    %rdx,(%rbx)
mov    (%rcx),%edi
lea    0xefb(%rip),%rsi
jmp    1180 <GAGetMultiParmeters+0x50>
mov    $0x8,%edi
call   1030 <xmalloc@plt>
mov    %rax,0x8(%rsp,%r12,8)
mov    (%rbx),%rcx
lea    0x8(%rcx),%rdx
mov    %rdx,(%rbx)
mov    (%rcx),%edi
lea    0xecc(%rip),%rsi
jmp    1180 <GAGetMultiParmeters+0x50>
mov    $0x8,%edi
call   1030 <xmalloc@plt>
mov    %rax,0x8(%rsp,%r12,8)
mov    (%rbx),%rcx
lea    0x8(%rcx),%rdx
mov    %rdx,(%rbx)
mov    (%rcx),%edi
lea    0xea1(%rip),%rsi
jmp    1180 <GAGetMultiParmeters+0x50>
mov    $0x8,%edi
call   1030 <xmalloc@plt>
mov    %rax,0x8(%rsp,%r12,8)
mov    (%rbx),%rcx
lea    0x8(%rcx),%rdx
mov    %rdx,(%rbx)
mov    (%rcx),%edi
lea    0xe82(%rip),%rsi
jmp    1180 <GAGetMultiParmeters+0x50>
mov    $0x4,%edi
call   1030 <xmalloc@plt>
mov    %rax,0x8(%rsp,%r12,8)
mov    (%rbx),%rcx
lea    0x8(%rcx),%rdx
mov    %rdx,(%rbx)
mov    (%rcx),%edi
lea    0xe5f(%rip),%rsi
jmp    1180 <GAGetMultiParmeters+0x50>
mov    $0x4,%edi
call   1030 <xmalloc@plt>
mov    %rax,0x8(%rsp,%r12,8)
mov    (%rbx),%rcx
lea    0x8(%rcx),%rdx
mov    %rdx,(%rbx)
mov    (%rcx),%edi
lea    0xe22(%rip),%rsi
jmp    1180 <GAGetMultiParmeters+0x50>
mov    $0x4,%edi
call   1030 <xmalloc@plt>
mov    %rax,0x8(%rsp,%r12,8)
mov    (%rbx),%rcx
lea    0x8(%rcx),%rdx
mov    %rdx,(%rbx)
mov    (%rcx),%edi
lea    0xdf8(%rip),%rsi
jmp    1180 <GAGetMultiParmeters+0x50>
mov    $0x4,%edi
call   1030 <xmalloc@plt>
mov    %rax,0x8(%rsp,%r12,8)
mov    (%rbx),%rcx
lea    0x8(%rcx),%rdx
mov    %rdx,(%rbx)
mov    (%rcx),%edi
lea    0xdd7(%rip),%rsi
jmp    1180 <GAGetMultiParmeters+0x50>
mov    (%rbx),%rax
add    $0xfffffffffffffff8,%rax
mov    %rax,(%rbx)
lea    -0x1(%r12),%ebx
lea    0x0(,%r12,8),%edi
call   1030 <xmalloc@plt>
mov    %rax,%rbp
cmp    $0x2,%r12d
jl     1352 <GAGetMultiParmeters+0x222>
mov    %ebx,%edx
shl    $0x3,%rdx
lea    0x8(%rsp),%rsi
mov    %rbp,%rdi
call   1040 <memcpy@plt>
add    $0xfffffffe,%r12d
lea    0x8(,%r12,8),%rax
add    %rbp,%rax
movq   $0x0,(%rax)
movslq (%r15),%rax
lea    0x1(%rax),%ecx
mov    %ecx,(%r15)
mov    (%r14,%rax,8),%rax
mov    %ebx,(%rax)
movslq (%r15),%rax
lea    0x1(%rax),%ecx
mov    %ecx,(%r15)
mov    (%r14,%rax,8),%rax
mov    %rbp,(%rax)
mov    %ebx,%eax
add    $0x328,%rsp
pop    %rbx
pop    %r12
pop    %r13
pop    %r14
pop    %r15
pop    %rbp
ret
mov    (%rbx),%rcx
mov    (%rsp),%rdx
cmp    %rdx,%rcx
jae    13c5 <GAGetMultiParmeters+0x295>
mov    %r12d,%r12d
nopl   0x0(%rax,%rax,1)
mov    (%rcx),%rax
cmpb   $0x2d,(%rax)
je     13c5 <GAGetMultiParmeters+0x295>
lea    0x8(%rcx),%rax
mov    %rax,(%rbx)
mov    (%rcx),%rcx
mov    %rcx,0x8(%rsp,%r12,8)
add    $0x1,%r12
mov    %rax,%rcx
cmp    %rdx,%rax
jb     13a0 <GAGetMultiParmeters+0x270>
jmp    13c8 <GAGetMultiParmeters+0x298>
mov    %rcx,%rax
add    $0x1,%r12d
add    $0x8,%rax
jmp    130e <GAGetMultiParmeters+0x1de>

LLVM IR (-O0):
%union.TmpArray = type { [100 x i8*] }
@.str = [3 x i8] c"%d\00"
@.str.1 = [3 x i8] c"%u\00"
@.str.2 = [3 x i8] c"%o\00"
@.str.3 = [3 x i8] c"%x\00"
@.str.4 = [4 x i8] c"%ld\00"
@.str.5 = [4 x i8] c"%lu\00"
@.str.6 = [4 x i8] c"%lo\00"
@.str.7 = [4 x i8] c"%lx\00"
@.str.8 = [3 x i8] c"%f\00"
@.str.9 = [4 x i8] c"%lf\00"
define i32 @GAGetMultiParmeters(i8** %0, i32* %1, i8* %2, i8** %3, i8*** %4) {
%6 = alloca i8**
%7 = alloca i32*
%8 = alloca i8*
%9 = alloca i8**
%10 = alloca i8***
%11 = alloca i32
%12 = alloca i32
%13 = alloca i32
%14 = alloca i8**
%15 = alloca i8**
%16 = alloca %union.TmpArray
store i8** %0, i8*** %6
store i32* %1, i32** %7
store i8* %2, i8** %8
store i8** %3, i8*** %9
store i8*** %4, i8**** %10
store i32 0, i32* %11
store i32 0, i32* %13
br label %17
17: ; preds = %252, %5
%18 = load i8*, i8** %8
%19 = getelementptr inbounds i8, i8* %18, i64 2
%20 = load i8, i8* %19
%21 = sext i8 %20 to i32
switch i32 %21, label %250 [
i32 100, label %22
i32 117, label %41
i32 111, label %60
i32 120, label %79
i32 68, label %98
i32 85, label %118
i32 79, label %138
i32 88, label %158
i32 102, label %178
i32 70, label %198
i32 115, label %218
]
22: ; preds = %17
%23 = call i8* @xmalloc(i32 4)
%24 = bitcast i8* %23 to i32*
%25 = bitcast %union.TmpArray* %16 to [100 x i32*]*
%26 = load i32, i32* %13
%27 = sext i32 %26 to i64
%28 = getelementptr inbounds [100 x i32*], [100 x i32*]* %25, i64 0, i64 %27
store i32* %24, i32** %28
%29 = load i8***, i8**** %10
%30 = load i8**, i8*** %29
%31 = getelementptr inbounds i8*, i8** %30, i32 1
store i8** %31, i8*** %29
%32 = load i8*, i8** %30
%33 = ptrtoint i8* %32 to i32
%34 = bitcast %union.TmpArray* %16 to [100 x i32*]*
%35 = load i32, i32* %13
%36 = add nsw i32 %35, 1
store i32 %36, i32* %13
%37 = sext i32 %35 to i64
%38 = getelementptr inbounds [100 x i32*], [100 x i32*]* %34, i64 0, i64 %37
%39 = load i32*, i32** %38
%40 = call i32 (i32, i8*, ...) @sscanf(i32 %33, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str, i64 0, i64 0), i32* %39)
store i32 %40, i32* %12
br label %251
41: ; preds = %17
%42 = call i8* @xmalloc(i32 4)
%43 = bitcast i8* %42 to i32*
%44 = bitcast %union.TmpArray* %16 to [100 x i32*]*
%45 = load i32, i32* %13
%46 = sext i32 %45 to i64
%47 = getelementptr inbounds [100 x i32*], [100 x i32*]* %44, i64 0, i64 %46
store i32* %43, i32** %47
%48 = load i8***, i8**** %10
%49 = load i8**, i8*** %48
%50 = getelementptr inbounds i8*, i8** %49, i32 1
store i8** %50, i8*** %48
%51 = load i8*, i8** %49
%52 = ptrtoint i8* %51 to i32
%53 = bitcast %union.TmpArray* %16 to [100 x i32*]*
%54 = load i32, i32* %13
%55 = add nsw i32 %54, 1
store i32 %55, i32* %13
%56 = sext i32 %54 to i64
%57 = getelementptr inbounds [100 x i32*], [100 x i32*]* %53, i64 0, i64 %56
%58 = load i32*, i32** %57
%59 = call i32 (i32, i8*, ...) @sscanf(i32 %52, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.1, i64 0, i64 0), i32* %58)
store i32 %59, i32* %12
br label %251
60: ; preds = %17
%61 = call i8* @xmalloc(i32 4)
%62 = bitcast i8* %61 to i32*
%63 = bitcast %union.TmpArray* %16 to [100 x i32*]*
%64 = load i32, i32* %13
%65 = sext i32 %64 to i64
%66 = getelementptr inbounds [100 x i32*], [100 x i32*]* %63, i64 0, i64 %65
store i32* %62, i32** %66
%67 = load i8***, i8**** %10
%68 = load i8**, i8*** %67
%69 = getelementptr inbounds i8*, i8** %68, i32 1
store i8** %69, i8*** %67
%70 = load i8*, i8** %68
%71 = ptrtoint i8* %70 to i32
%72 = bitcast %union.TmpArray* %16 to [100 x i32*]*
%73 = load i32, i32* %13
%74 = add nsw i32 %73, 1
store i32 %74, i32* %13
%75 = sext i32 %73 to i64
%76 = getelementptr inbounds [100 x i32*], [100 x i32*]* %72, i64 0, i64 %75
%77 = load i32*, i32** %76
%78 = call i32 (i32, i8*, ...) @sscanf(i32 %71, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.2, i64 0, i64 0), i32* %77)
store i32 %78, i32* %12
br label %251
79: ; preds = %17
%80 = call i8* @xmalloc(i32 4)
%81 = bitcast i8* %80 to i32*
%82 = bitcast %union.TmpArray* %16 to [100 x i32*]*
%83 = load i32, i32* %13
%84 = sext i32 %83 to i64
%85 = getelementptr inbounds [100 x i32*], [100 x i32*]* %82, i64 0, i64 %84
store i32* %81, i32** %85
%86 = load i8***, i8**** %10
%87 = load i8**, i8*** %86
%88 = getelementptr inbounds i8*, i8** %87, i32 1
store i8** %88, i8*** %86
%89 = load i8*, i8** %87
%90 = ptrtoint i8* %89 to i32
%91 = bitcast %union.TmpArray* %16 to [100 x i32*]*
%92 = load i32, i32* %13
%93 = add nsw i32 %92, 1
store i32 %93, i32* %13
%94 = sext i32 %92 to i64
%95 = getelementptr inbounds [100 x i32*], [100 x i32*]* %91, i64 0, i64 %94
%96 = load i32*, i32** %95
%97 = call i32 (i32, i8*, ...) @sscanf(i32 %90, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.3, i64 0, i64 0), i32* %96)
store i32 %97, i32* %12
br label %251
98: ; preds = %17
%99 = call i8* @xmalloc(i32 8)
%100 = bitcast i8* %99 to i64*
%101 = bitcast %union.TmpArray* %16 to [100 x i64*]*
%102 = load i32, i32* %13
%103 = sext i32 %102 to i64
%104 = getelementptr inbounds [100 x i64*], [100 x i64*]* %101, i64 0, i64 %103
store i64* %100, i64** %104
%105 = load i8***, i8**** %10
%106 = load i8**, i8*** %105
%107 = getelementptr inbounds i8*, i8** %106, i32 1
store i8** %107, i8*** %105
%108 = load i8*, i8** %106
%109 = ptrtoint i8* %108 to i32
%110 = bitcast %union.TmpArray* %16 to [100 x i32*]*
%111 = load i32, i32* %13
%112 = add nsw i32 %111, 1
store i32 %112, i32* %13
%113 = sext i32 %111 to i64
%114 = getelementptr inbounds [100 x i32*], [100 x i32*]* %110, i64 0, i64 %113
%115 = load i32*, i32** %114
%116 = bitcast i32* %115 to i64*
%117 = call i32 (i32, i8*, ...) @sscanf(i32 %109, i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.4, i64 0, i64 0), i64* %116)
store i32 %117, i32* %12
br label %251
118: ; preds = %17
%119 = call i8* @xmalloc(i32 8)
%120 = bitcast i8* %119 to i64*
%121 = bitcast %union.TmpArray* %16 to [100 x i64*]*
%122 = load i32, i32* %13
%123 = sext i32 %122 to i64
%124 = getelementptr inbounds [100 x i64*], [100 x i64*]* %121, i64 0, i64 %123
store i64* %120, i64** %124
%125 = load i8***, i8**** %10
%126 = load i8**, i8*** %125
%127 = getelementptr inbounds i8*, i8** %126, i32 1
store i8** %127, i8*** %125
%128 = load i8*, i8** %126
%129 = ptrtoint i8* %128 to i32
%130 = bitcast %union.TmpArray* %16 to [100 x i32*]*
%131 = load i32, i32* %13
%132 = add nsw i32 %131, 1
store i32 %132, i32* %13
%133 = sext i32 %131 to i64
%134 = getelementptr inbounds [100 x i32*], [100 x i32*]* %130, i64 0, i64 %133
%135 = load i32*, i32** %134
%136 = bitcast i32* %135 to i64*
%137 = call i32 (i32, i8*, ...) @sscanf(i32 %129, i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.5, i64 0, i64 0), i64* %136)
store i32 %137, i32* %12
br label %251
138: ; preds = %17
%139 = call i8* @xmalloc(i32 8)
%140 = bitcast i8* %139 to i64*
%141 = bitcast %union.TmpArray* %16 to [100 x i64*]*
%142 = load i32, i32* %13
%143 = sext i32 %142 to i64
%144 = getelementptr inbounds [100 x i64*], [100 x i64*]* %141, i64 0, i64 %143
store i64* %140, i64** %144
%145 = load i8***, i8**** %10
%146 = load i8**, i8*** %145
%147 = getelementptr inbounds i8*, i8** %146, i32 1
store i8** %147, i8*** %145
%148 = load i8*, i8** %146
%149 = ptrtoint i8* %148 to i32
%150 = bitcast %union.TmpArray* %16 to [100 x i32*]*
%151 = load i32, i32* %13
%152 = add nsw i32 %151, 1
store i32 %152, i32* %13
%153 = sext i32 %151 to i64
%154 = getelementptr inbounds [100 x i32*], [100 x i32*]* %150, i64 0, i64 %153
%155 = load i32*, i32** %154
%156 = bitcast i32* %155 to i64*
%157 = call i32 (i32, i8*, ...) @sscanf(i32 %149, i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.6, i64 0, i64 0), i64* %156)
store i32 %157, i32* %12
br label %251
158: ; preds = %17
%159 = call i8* @xmalloc(i32 8)
%160 = bitcast i8* %159 to i64*
%161 = bitcast %union.TmpArray* %16 to [100 x i64*]*
%162 = load i32, i32* %13
%163 = sext i32 %162 to i64
%164 = getelementptr inbounds [100 x i64*], [100 x i64*]* %161, i64 0, i64 %163
store i64* %160, i64** %164
%165 = load i8***, i8**** %10
%166 = load i8**, i8*** %165
%167 = getelementptr inbounds i8*, i8** %166, i32 1
store i8** %167, i8*** %165
%168 = load i8*, i8** %166
%169 = ptrtoint i8* %168 to i32
%170 = bitcast %union.TmpArray* %16 to [100 x i32*]*
%171 = load i32, i32* %13
%172 = add nsw i32 %171, 1
store i32 %172, i32* %13
%173 = sext i32 %171 to i64
%174 = getelementptr inbounds [100 x i32*], [100 x i32*]* %170, i64 0, i64 %173
%175 = load i32*, i32** %174
%176 = bitcast i32* %175 to i64*
%177 = call i32 (i32, i8*, ...) @sscanf(i32 %169, i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.7, i64 0, i64 0), i64* %176)
store i32 %177, i32* %12
br label %251
178: ; preds = %17
%179 = call i8* @xmalloc(i32 4)
%180 = bitcast i8* %179 to float*
%181 = bitcast %union.TmpArray* %16 to [100 x float*]*
%182 = load i32, i32* %13
%183 = sext i32 %182 to i64
%184 = getelementptr inbounds [100 x float*], [100 x float*]* %181, i64 0, i64 %183
store float* %180, float** %184
%185 = load i8***, i8**** %10
%186 = load i8**, i8*** %185
%187 = getelementptr inbounds i8*, i8** %186, i32 1
store i8** %187, i8*** %185
%188 = load i8*, i8** %186
%189 = ptrtoint i8* %188 to i32
%190 = bitcast %union.TmpArray* %16 to [100 x i64*]*
%191 = load i32, i32* %13
%192 = add nsw i32 %191, 1
store i32 %192, i32* %13
%193 = sext i32 %191 to i64
%194 = getelementptr inbounds [100 x i64*], [100 x i64*]* %190, i64 0, i64 %193
%195 = load i64*, i64** %194
%196 = bitcast i64* %195 to float*
%197 = call i32 (i32, i8*, ...) @sscanf(i32 %189, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.8, i64 0, i64 0), float* %196)
store i32 %197, i32* %12
br label %251
198: ; preds = %17
%199 = call i8* @xmalloc(i32 8)
%200 = bitcast i8* %199 to double*
%201 = bitcast %union.TmpArray* %16 to [100 x double*]*
%202 = load i32, i32* %13
%203 = sext i32 %202 to i64
%204 = getelementptr inbounds [100 x double*], [100 x double*]* %201, i64 0, i64 %203
store double* %200, double** %204
%205 = load i8***, i8**** %10
%206 = load i8**, i8*** %205
%207 = getelementptr inbounds i8*, i8** %206, i32 1
store i8** %207, i8*** %205
%208 = load i8*, i8** %206
%209 = ptrtoint i8* %208 to i32
%210 = bitcast %union.TmpArray* %16 to [100 x i64*]*
%211 = load i32, i32* %13
%212 = add nsw i32 %211, 1
store i32 %212, i32* %13
%213 = sext i32 %211 to i64
%214 = getelementptr inbounds [100 x i64*], [100 x i64*]* %210, i64 0, i64 %213
%215 = load i64*, i64** %214
%216 = bitcast i64* %215 to double*
%217 = call i32 (i32, i8*, ...) @sscanf(i32 %209, i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.9, i64 0, i64 0), double* %216)
store i32 %217, i32* %12
br label %251
218: ; preds = %17
br label %219
219: ; preds = %234, %218
%220 = load i8***, i8**** %10
%221 = load i8**, i8*** %220
%222 = load i8**, i8*** %9
%223 = icmp ult i8** %221, %222
br i1 %223, label %224, label %232
224: ; preds = %219
%225 = load i8***, i8**** %10
%226 = load i8**, i8*** %225
%227 = load i8*, i8** %226
%228 = getelementptr inbounds i8, i8* %227, i64 0
%229 = load i8, i8* %228
%230 = sext i8 %229 to i32
%231 = icmp ne i32 %230, 45
br label %232
232: ; preds = %224, %219
%233 = phi i1 [ false, %219 ], [ %231, %224 ]
br i1 %233, label %234, label %244
234: ; preds = %232
%235 = load i8***, i8**** %10
%236 = load i8**, i8*** %235
%237 = getelementptr inbounds i8*, i8** %236, i32 1
store i8** %237, i8*** %235
%238 = load i8*, i8** %236
%239 = bitcast %union.TmpArray* %16 to [100 x i8*]*
%240 = load i32, i32* %13
%241 = add nsw i32 %240, 1
store i32 %241, i32* %13
%242 = sext i32 %240 to i64
%243 = getelementptr inbounds [100 x i8*], [100 x i8*]* %239, i64 0, i64 %242
store i8* %238, i8** %243
br label %219
244: ; preds = %232
store i32 0, i32* %12
%245 = load i32, i32* %13
%246 = add nsw i32 %245, 1
store i32 %246, i32* %13
%247 = load i8***, i8**** %10
%248 = load i8**, i8*** %247
%249 = getelementptr inbounds i8*, i8** %248, i32 1
store i8** %249, i8*** %247
br label %251
250: ; preds = %17
store i32 0, i32* %12
br label %251
251: ; preds = %250, %244, %198, %178, %158, %138, %118, %98, %79, %60, %41, %22
br label %252
252: ; preds = %251
%253 = load i32, i32* %12
%254 = icmp eq i32 %253, 1
br i1 %254, label %17, label %255
255: ; preds = %252
%256 = load i8***, i8**** %10
%257 = load i8**, i8*** %256
%258 = getelementptr inbounds i8*, i8** %257, i32 -1
store i8** %258, i8*** %256
%259 = load i32, i32* %13
%260 = add nsw i32 %259, -1
store i32 %260, i32* %13
%261 = load i32, i32* %13
%262 = add nsw i32 %261, 1
%263 = zext i32 %262 to i64
%264 = mul i64 %263, 8
%265 = trunc i64 %264 to i32
%266 = call i8* @xmalloc(i32 %265)
%267 = bitcast i8* %266 to i8**
store i8** %267, i8*** %14
store i8** %267, i8*** %15
store i32 0, i32* %11
br label %268
268: ; preds = %280, %255
%269 = load i32, i32* %11
%270 = load i32, i32* %13
%271 = icmp slt i32 %269, %270
br i1 %271, label %272, label %283
272: ; preds = %268
%273 = bitcast %union.TmpArray* %16 to [100 x i8*]*
%274 = load i32, i32* %11
%275 = sext i32 %274 to i64
%276 = getelementptr inbounds [100 x i8*], [100 x i8*]* %273, i64 0, i64 %275
%277 = load i8*, i8** %276
%278 = load i8**, i8*** %15
%279 = getelementptr inbounds i8*, i8** %278, i32 1
store i8** %279, i8*** %15
store i8* %277, i8** %278
br label %280
280: ; preds = %272
%281 = load i32, i32* %11
%282 = add nsw i32 %281, 1
store i32 %282, i32* %11
br label %268
283: ; preds = %268
%284 = load i8**, i8*** %15
store i8* null, i8** %284
%285 = load i32, i32* %13
%286 = load i8**, i8*** %6
%287 = load i32*, i32** %7
%288 = load i32, i32* %287
%289 = add nsw i32 %288, 1
store i32 %289, i32* %287
%290 = sext i32 %288 to i64
%291 = getelementptr inbounds i8*, i8** %286, i64 %290
%292 = load i8*, i8** %291
%293 = bitcast i8* %292 to i32*
store i32 %285, i32* %293
%294 = load i8**, i8*** %14
%295 = load i8**, i8*** %6
%296 = load i32*, i32** %7
%297 = load i32, i32* %296
%298 = add nsw i32 %297, 1
store i32 %298, i32* %296
%299 = sext i32 %297 to i64
%300 = getelementptr inbounds i8*, i8** %295, i64 %299
%301 = load i8*, i8** %300
%302 = bitcast i8* %301 to i8***
store i8** %294, i8*** %302
%303 = load i32, i32* %13
ret i32 %303
}

LLVM IR (-O2):
%union.TmpArray = type { [100 x i8*] }
@.str = [3 x i8] c"%d\00"
@.str.1 = [3 x i8] c"%u\00"
@.str.2 = [3 x i8] c"%o\00"
@.str.3 = [3 x i8] c"%x\00"
@.str.4 = [4 x i8] c"%ld\00"
@.str.5 = [4 x i8] c"%lu\00"
@.str.6 = [4 x i8] c"%lo\00"
@.str.7 = [4 x i8] c"%lx\00"
@.str.8 = [3 x i8] c"%f\00"
@.str.9 = [4 x i8] c"%lf\00"
define i32 @GAGetMultiParmeters(i8** nocapture %0, i32* nocapture %1, i8* nocapture %2, i8** readnone %3, i8*** %4) {
%6 = alloca %union.TmpArray
%7 = bitcast %union.TmpArray* %6 to i8*
%8 = getelementptr inbounds i8, i8* %2, i64 2
%9 = bitcast %union.TmpArray* %6 to [100 x double*]*
%10 = bitcast %union.TmpArray* %6 to [100 x i64*]*
%11 = bitcast %union.TmpArray* %6 to [100 x float*]*
%12 = bitcast %union.TmpArray* %6 to [100 x i32*]*
br label %13
13: ; preds = %140, %5
%14 = phi i64 [ %142, %140 ], [ 0, %5 ]
%15 = load i8, i8* %8
%16 = sext i8 %15 to i32
switch i32 %16, label %144 [
i32 100, label %22
i32 117, label %32
i32 111, label %42
i32 120, label %52
i32 68, label %62
i32 85, label %72
i32 79, label %82
i32 88, label %92
i32 102, label %102
i32 70, label %112
i32 115, label %17
]
17: ; preds = %13
%18 = load i8**, i8*** %4
%19 = icmp ult i8** %18, %3
br i1 %19, label %20, label %134
20: ; preds = %17
%21 = and i64 %14, 4294967295
br label %122
22: ; preds = %13
%23 = tail call i8* @xmalloc(i32 4)
%24 = getelementptr inbounds [100 x i32*], [100 x i32*]* %12, i64 0, i64 %14
%25 = bitcast i32** %24 to i8**
store i8* %23, i8** %25
%26 = load i8**, i8*** %4
%27 = getelementptr inbounds i8*, i8** %26, i64 1
store i8** %27, i8*** %4
%28 = load i8*, i8** %26
%29 = ptrtoint i8* %28 to i64
%30 = trunc i64 %29 to i32
%31 = tail call i32 (i32, i8*, ...) @sscanf(i32 %30, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str, i64 0, i64 0), i8* %23)
br label %140
32: ; preds = %13
%33 = tail call i8* @xmalloc(i32 4)
%34 = getelementptr inbounds [100 x i32*], [100 x i32*]* %12, i64 0, i64 %14
%35 = bitcast i32** %34 to i8**
store i8* %33, i8** %35
%36 = load i8**, i8*** %4
%37 = getelementptr inbounds i8*, i8** %36, i64 1
store i8** %37, i8*** %4
%38 = load i8*, i8** %36
%39 = ptrtoint i8* %38 to i64
%40 = trunc i64 %39 to i32
%41 = tail call i32 (i32, i8*, ...) @sscanf(i32 %40, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.1, i64 0, i64 0), i8* %33)
br label %140
42: ; preds = %13
%43 = tail call i8* @xmalloc(i32 4)
%44 = getelementptr inbounds [100 x i32*], [100 x i32*]* %12, i64 0, i64 %14
%45 = bitcast i32** %44 to i8**
store i8* %43, i8** %45
%46 = load i8**, i8*** %4
%47 = getelementptr inbounds i8*, i8** %46, i64 1
store i8** %47, i8*** %4
%48 = load i8*, i8** %46
%49 = ptrtoint i8* %48 to i64
%50 = trunc i64 %49 to i32
%51 = tail call i32 (i32, i8*, ...) @sscanf(i32 %50, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.2, i64 0, i64 0), i8* %43)
br label %140
52: ; preds = %13
%53 = tail call i8* @xmalloc(i32 4)
%54 = getelementptr inbounds [100 x i32*], [100 x i32*]* %12, i64 0, i64 %14
%55 = bitcast i32** %54 to i8**
store i8* %53, i8** %55
%56 = load i8**, i8*** %4
%57 = getelementptr inbounds i8*, i8** %56, i64 1
store i8** %57, i8*** %4
%58 = load i8*, i8** %56
%59 = ptrtoint i8* %58 to i64
%60 = trunc i64 %59 to i32
%61 = tail call i32 (i32, i8*, ...) @sscanf(i32 %60, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.3, i64 0, i64 0), i8* %53)
br label %140
62: ; preds = %13
%63 = tail call i8* @xmalloc(i32 8)
%64 = getelementptr inbounds [100 x i64*], [100 x i64*]* %10, i64 0, i64 %14
%65 = bitcast i64** %64 to i8**
store i8* %63, i8** %65
%66 = load i8**, i8*** %4
%67 = getelementptr inbounds i8*, i8** %66, i64 1
store i8** %67, i8*** %4
%68 = load i8*, i8** %66
%69 = ptrtoint i8* %68 to i64
%70 = trunc i64 %69 to i32
%71 = tail call i32 (i32, i8*, ...) @sscanf(i32 %70, i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.4, i64 0, i64 0), i8* %63)
br label %140
72: ; preds = %13
%73 = tail call i8* @xmalloc(i32 8)
%74 = getelementptr inbounds [100 x i64*], [100 x i64*]* %10, i64 0, i64 %14
%75 = bitcast i64** %74 to i8**
store i8* %73, i8** %75
%76 = load i8**, i8*** %4
%77 = getelementptr inbounds i8*, i8** %76, i64 1
store i8** %77, i8*** %4
%78 = load i8*, i8** %76
%79 = ptrtoint i8* %78 to i64
%80 = trunc i64 %79 to i32
%81 = tail call i32 (i32, i8*, ...) @sscanf(i32 %80, i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.5, i64 0, i64 0), i8* %73)
br label %140
82: ; preds = %13
%83 = tail call i8* @xmalloc(i32 8)
%84 = getelementptr inbounds [100 x i64*], [100 x i64*]* %10, i64 0, i64 %14
%85 = bitcast i64** %84 to i8**
store i8* %83, i8** %85
%86 = load i8**, i8*** %4
%87 = getelementptr inbounds i8*, i8** %86, i64 1
store i8** %87, i8*** %4
%88 = load i8*, i8** %86
%89 = ptrtoint i8* %88 to i64
%90 = trunc i64 %89 to i32
%91 = tail call i32 (i32, i8*, ...) @sscanf(i32 %90, i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.6, i64 0, i64 0), i8* %83)
br label %140
92: ; preds = %13
%93 = tail call i8* @xmalloc(i32 8)
%94 = getelementptr inbounds [100 x i64*], [100 x i64*]* %10, i64 0, i64 %14
%95 = bitcast i64** %94 to i8**
store i8* %93, i8** %95
%96 = load i8**, i8*** %4
%97 = getelementptr inbounds i8*, i8** %96, i64 1
store i8** %97, i8*** %4
%98 = load i8*, i8** %96
%99 = ptrtoint i8* %98 to i64
%100 = trunc i64 %99 to i32
%101 = tail call i32 (i32, i8*, ...) @sscanf(i32 %100, i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.7, i64 0, i64 0), i8* %93)
br label %140
102: ; preds = %13
%103 = tail call i8* @xmalloc(i32 4)
%104 = getelementptr inbounds [100 x float*], [100 x float*]* %11, i64 0, i64 %14
%105 = bitcast float** %104 to i8**
store i8* %103, i8** %105
%106 = load i8**, i8*** %4
%107 = getelementptr inbounds i8*, i8** %106, i64 1
store i8** %107, i8*** %4
%108 = load i8*, i8** %106
%109 = ptrtoint i8* %108 to i64
%110 = trunc i64 %109 to i32
%111 = tail call i32 (i32, i8*, ...) @sscanf(i32 %110, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.8, i64 0, i64 0), i8* %103)
br label %140
112: ; preds = %13
%113 = tail call i8* @xmalloc(i32 8)
%114 = getelementptr inbounds [100 x double*], [100 x double*]* %9, i64 0, i64 %14
%115 = bitcast double** %114 to i8**
store i8* %113, i8** %115
%116 = load i8**, i8*** %4
%117 = getelementptr inbounds i8*, i8** %116, i64 1
store i8** %117, i8*** %4
%118 = load i8*, i8** %116
%119 = ptrtoint i8* %118 to i64
%120 = trunc i64 %119 to i32
%121 = tail call i32 (i32, i8*, ...) @sscanf(i32 %120, i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.9, i64 0, i64 0), i8* %113)
br label %140
122: ; preds = %20, %128
%123 = phi i64 [ %21, %20 ], [ %131, %128 ]
%124 = phi i8** [ %18, %20 ], [ %129, %128 ]
%125 = load i8*, i8** %124
%126 = load i8, i8* %125
%127 = icmp eq i8 %126, 45
br i1 %127, label %134, label %128
128: ; preds = %122
%129 = getelementptr inbounds i8*, i8** %124, i64 1
store i8** %129, i8*** %4
%130 = load i8*, i8** %124
%131 = add nuw i64 %123, 1
%132 = getelementptr inbounds %union.TmpArray, %union.TmpArray* %6, i64 0, i32 0, i64 %123
store i8* %130, i8** %132
%133 = icmp ult i8** %129, %3
br i1 %133, label %122, label %134
134: ; preds = %122, %128, %17
%135 = phi i64 [ %14, %17 ], [ %131, %128 ], [ %123, %122 ]
%136 = phi i8** [ %18, %17 ], [ %129, %128 ], [ %124, %122 ]
%137 = trunc i64 %135 to i32
%138 = add nuw nsw i32 %137, 1
%139 = getelementptr inbounds i8*, i8** %136, i64 1
br label %148
140: ; preds = %22, %32, %42, %52, %62, %72, %82, %92, %102, %112
%141 = phi i32 [ %121, %112 ], [ %111, %102 ], [ %101, %92 ], [ %91, %82 ], [ %81, %72 ], [ %71, %62 ], [ %61, %52 ], [ %51, %42 ], [ %41, %32 ], [ %31, %22 ]
%142 = add nuw i64 %14, 1
%143 = icmp eq i32 %141, 1
br i1 %143, label %13, label %144
144: ; preds = %13, %140
%145 = phi i64 [ %142, %140 ], [ %14, %13 ]
%146 = trunc i64 %145 to i32
%147 = load i8**, i8*** %4
br label %148
148: ; preds = %144, %134
%149 = phi i8** [ %139, %134 ], [ %147, %144 ]
%150 = phi i32 [ %138, %134 ], [ %146, %144 ]
%151 = getelementptr inbounds i8*, i8** %149, i64 -1
store i8** %151, i8*** %4
%152 = add i32 %150, -1
%153 = shl i32 %150, 3
%154 = tail call i8* @xmalloc(i32 %153)
%155 = icmp sgt i32 %150, 1
br i1 %155, label %156, label %164
156: ; preds = %148
%157 = zext i32 %152 to i64
%158 = shl nuw nsw i64 %157, 3
%159 = add nsw i32 %150, -2
%160 = zext i32 %159 to i64
%161 = shl nuw nsw i64 %160, 3
%162 = add nuw nsw i64 %161, 8
%163 = getelementptr i8, i8* %154, i64 %162
br label %164
164: ; preds = %156, %148
%165 = phi i8* [ %154, %148 ], [ %163, %156 ]
%166 = bitcast i8* %165 to i8**
store i8* null, i8** %166
%167 = load i32, i32* %1
%168 = add nsw i32 %167, 1
store i32 %168, i32* %1
%169 = sext i32 %167 to i64
%170 = getelementptr inbounds i8*, i8** %0, i64 %169
%171 = bitcast i8** %170 to i32**
%172 = load i32*, i32** %171
store i32 %152, i32* %172
%173 = load i32, i32* %1
%174 = add nsw i32 %173, 1
store i32 %174, i32* %1
%175 = sext i32 %173 to i64
%176 = getelementptr inbounds i8*, i8** %0, i64 %175
%177 = bitcast i8** %176 to i8***
%178 = load i8**, i8*** %177
store i8* %154, i8** %178
ret i32 %152
}