#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 */
typedef int /*<<< orphan*/ FILE;

/* Variables and functions */
int /*<<< orphan*/ cntab1(int **, int, int, float *, float *, float *, float *,
                          float *);
int /*<<< orphan*/ fclose(int /*<<< orphan*/ *);
int /*<<< orphan*/ fgets(char *, int, int /*<<< orphan*/ *);
int /*<<< orphan*/ *fopen(char *, char *);
int /*<<< orphan*/ free_imatrix(int **, int, int, int, int);
int /*<<< orphan*/ fscanf(int /*<<< orphan*/ *, char *, ...);
int **imatrix(int, int, int, int);
int /*<<< orphan*/ nrerror(char *);
int /*<<< orphan*/ printf(char *, ...);
int main(void) {
  int i, j, **nmbr;
  float ccc, chisq, cramrv, df, prob;
  char dummy[80], fate[9 + 1][16], mon[12 + 1][6], txt[16];
  FILE *fp;
  nmbr = imatrix(1, 9, 1, 12);
  if ((fp = fopen("table1.dat", "r")) == NULL)
    nrerror("Data file table1.dat not found\n");
  fgets(dummy, 80, fp);
  fgets(dummy, 80, fp);
  fscanf(fp, "%16c", txt);
  txt[15] = '\0';
  for (i = 1; i <= 12; i++)
    fscanf(fp, " %s", mon[i]);
  fgets(dummy, 80, fp);
  fgets(dummy, 80, fp);
  for (i = 1; i <= 9; i++) {
    fscanf(fp, "%16[^0123456789]", fate[i]);
    fate[i][15] = '\0';
    for (j = 1; j <= 12; j++)
      fscanf(fp, "%d ", &nmbr[i][j]);
  }
  fclose(fp);
  printf("\n%s", txt);
  for (i = 1; i <= 12; i++)
    printf("%5s", mon[i]);
  printf("\n\n");
  for (i = 1; i <= 9; i++) {
    printf("%s", fate[i]);
    for (j = 1; j <= 12; j++)
      printf("%5d", nmbr[i][j]);
    printf("\n");
  }
  cntab1(nmbr, 9, 12, &chisq, &df, &prob, &cramrv, &ccc);
  printf("\n%15s chi-squared       %20.2f\n", " ", chisq);
  printf("%15s degrees of freedom%20.2f\n", " ", df);
  printf("%15s probability       %20.4f\n", " ", prob);
  printf("%15s cramer-v          %20.4f\n", " ", cramrv);
  printf("%15s contingency coeff.%20.4f\n", " ", ccc);
  free_imatrix(nmbr, 1, 9, 1, 12);
  return 0;
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x1a0,%rsp
movl   $0x0,-0x4(%rbp)
mov    $0x1,%edx
mov    $0x9,%esi
mov    $0xc,%ecx
mov    %edx,%edi
call   1030 <imatrix@plt>
mov    %rax,-0x18(%rbp)
lea    0xe3d(%rip),%rdi
lea    0xe41(%rip),%rsi
call   10a0 <fopen@plt>
mov    %rax,-0x188(%rbp)
cmp    $0x0,%rax
jne    11ec <main+0x5c>
lea    0xe26(%rip),%rdi
call   1040 <nrerror@plt>
lea    -0x80(%rbp),%rdi
mov    -0x188(%rbp),%rdx
mov    $0x50,%esi
call   1080 <fgets@plt>
lea    -0x80(%rbp),%rdi
mov    -0x188(%rbp),%rdx
mov    $0x50,%esi
call   1080 <fgets@plt>
mov    -0x188(%rbp),%rdi
lea    -0x180(%rbp),%rdx
lea    0xe02(%rip),%rsi
mov    $0x0,%al
call   1070 <fscanf@plt>
movb   $0x0,-0x171(%rbp)
movl   $0x1,-0x8(%rbp)
cmpl   $0xc,-0x8(%rbp)
jg     127f <main+0xef>
mov    -0x188(%rbp),%rdi
movslq -0x8(%rbp),%rax
lea    -0x170(%rbp),%rdx
imul   $0x6,%rax,%rax
add    %rax,%rdx
lea    0xdc8(%rip),%rsi
mov    $0x0,%al
call   1070 <fscanf@plt>
mov    -0x8(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x8(%rbp)
jmp    1240 <main+0xb0>
lea    -0x80(%rbp),%rdi
mov    -0x188(%rbp),%rdx
mov    $0x50,%esi
call   1080 <fgets@plt>
lea    -0x80(%rbp),%rdi
mov    -0x188(%rbp),%rdx
mov    $0x50,%esi
call   1080 <fgets@plt>
movl   $0x1,-0x8(%rbp)
cmpl   $0x9,-0x8(%rbp)
jg     1355 <main+0x1c5>
mov    -0x188(%rbp),%rdi
movslq -0x8(%rbp),%rax
lea    -0x120(%rbp),%rdx
shl    $0x4,%rax
add    %rax,%rdx
lea    0xd5c(%rip),%rsi
mov    $0x0,%al
call   1070 <fscanf@plt>
movslq -0x8(%rbp),%rcx
lea    -0x120(%rbp),%rax
shl    $0x4,%rcx
add    %rcx,%rax
movb   $0x0,0xf(%rax)
movl   $0x1,-0xc(%rbp)
cmpl   $0xc,-0xc(%rbp)
jg     1342 <main+0x1b2>
mov    -0x188(%rbp),%rdi
mov    -0x18(%rbp),%rax
movslq -0x8(%rbp),%rcx
mov    (%rax,%rcx,8),%rdx
movslq -0xc(%rbp),%rax
shl    $0x2,%rax
add    %rax,%rdx
lea    0xd1a(%rip),%rsi
mov    $0x0,%al
call   1070 <fscanf@plt>
mov    -0xc(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0xc(%rbp)
jmp    12fe <main+0x16e>
jmp    1347 <main+0x1b7>
mov    -0x8(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x8(%rbp)
jmp    12b0 <main+0x120>
mov    -0x188(%rbp),%rdi
call   1050 <fclose@plt>
lea    -0x180(%rbp),%rsi
lea    0xcdc(%rip),%rdi
mov    $0x0,%al
call   1060 <printf@plt>
movl   $0x1,-0x8(%rbp)
cmpl   $0xc,-0x8(%rbp)
jg     13b5 <main+0x225>
movslq -0x8(%rbp),%rax
lea    -0x170(%rbp),%rsi
imul   $0x6,%rax,%rax
add    %rax,%rsi
lea    0xcaf(%rip),%rdi
mov    $0x0,%al
call   1060 <printf@plt>
mov    -0x8(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x8(%rbp)
jmp    137d <main+0x1ed>
lea    0xc97(%rip),%rdi
mov    $0x0,%al
call   1060 <printf@plt>
movl   $0x1,-0x8(%rbp)
cmpl   $0x9,-0x8(%rbp)
jg     1450 <main+0x2c0>
movslq -0x8(%rbp),%rax
lea    -0x120(%rbp),%rsi
shl    $0x4,%rax
add    %rax,%rsi
lea    0xc5f(%rip),%rdi
mov    $0x0,%al
call   1060 <printf@plt>
movl   $0x1,-0xc(%rbp)
cmpl   $0xc,-0xc(%rbp)
jg     1434 <main+0x2a4>
mov    -0x18(%rbp),%rax
movslq -0x8(%rbp),%rcx
mov    (%rax,%rcx,8),%rax
movslq -0xc(%rbp),%rcx
mov    (%rax,%rcx,4),%esi
lea    0xc37(%rip),%rdi
mov    $0x0,%al
call   1060 <printf@plt>
mov    -0xc(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0xc(%rbp)
jmp    13fb <main+0x26b>
lea    0xc19(%rip),%rdi
mov    $0x0,%al
call   1060 <printf@plt>
mov    -0x8(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x8(%rbp)
jmp    13ca <main+0x23a>
mov    -0x18(%rbp),%rdi
mov    $0x9,%esi
mov    $0xc,%edx
lea    -0x20(%rbp),%rcx
lea    -0x28(%rbp),%r8
lea    -0x2c(%rbp),%r9
lea    -0x24(%rbp),%r10
lea    -0x1c(%rbp),%rax
mov    %r10,(%rsp)
mov    %rax,0x8(%rsp)
call   10b0 <cntab1@plt>
movss  -0x20(%rbp),%xmm0
cvtss2sd %xmm0,%xmm0
lea    0xbca(%rip),%rdi
lea    0xbb2(%rip),%rsi
mov    $0x1,%al
call   1060 <printf@plt>
movss  -0x28(%rbp),%xmm0
cvtss2sd %xmm0,%xmm0
lea    0xbcc(%rip),%rdi
lea    0xb94(%rip),%rsi
mov    $0x1,%al
call   1060 <printf@plt>
movss  -0x2c(%rbp),%xmm0
cvtss2sd %xmm0,%xmm0
lea    0xbcd(%rip),%rdi
lea    0xb76(%rip),%rsi
mov    $0x1,%al
call   1060 <printf@plt>
movss  -0x24(%rbp),%xmm0
cvtss2sd %xmm0,%xmm0
lea    0xbce(%rip),%rdi
lea    0xb58(%rip),%rsi
mov    $0x1,%al
call   1060 <printf@plt>
movss  -0x1c(%rbp),%xmm0
cvtss2sd %xmm0,%xmm0
lea    0xbcf(%rip),%rdi
lea    0xb3a(%rip),%rsi
mov    $0x1,%al
call   1060 <printf@plt>
mov    -0x18(%rbp),%rdi
mov    $0x1,%ecx
mov    $0x9,%edx
mov    $0xc,%r8d
mov    %ecx,%esi
call   1090 <free_imatrix@plt>
xor    %eax,%eax
add    $0x1a0,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %rbp
push   %r15
push   %r14
push   %r13
push   %r12
push   %rbx
sub    $0x178,%rsp
mov    $0x1,%edi
mov    $0x9,%esi
mov    $0x1,%edx
mov    $0xc,%ecx
call   1040 <imatrix@plt>
mov    %rax,%r14
lea    0xe1c(%rip),%rdi
lea    0xe20(%rip),%rsi
call   10c0 <fopen@plt>
mov    %rax,%rbx
test   %rax,%rax
jne    1204 <main+0x54>
lea    0xe0e(%rip),%rdi
call   1060 <nrerror@plt>
lea    0x120(%rsp),%r15
mov    %r15,%rdi
mov    $0x50,%esi
mov    %rbx,%rdx
call   10a0 <fgets@plt>
mov    %r15,%rdi
mov    $0x50,%esi
mov    %rbx,%rdx
call   10a0 <fgets@plt>
lea    0xdfa(%rip),%rsi
lea    0x70(%rsp),%rdx
mov    %rbx,%rdi
xor    %eax,%eax
call   1090 <fscanf@plt>
movb   $0x0,0x7f(%rsp)
lea    0x26(%rsp),%rdx
lea    0xddf(%rip),%rbp
mov    %rbx,%rdi
mov    %rbp,%rsi
xor    %eax,%eax
call   1090 <fscanf@plt>
lea    0x2c(%rsp),%rdx
mov    %rbx,%rdi
mov    %rbp,%rsi
xor    %eax,%eax
call   1090 <fscanf@plt>
lea    0x32(%rsp),%rdx
mov    %rbx,%rdi
mov    %rbp,%rsi
xor    %eax,%eax
call   1090 <fscanf@plt>
lea    0x38(%rsp),%rdx
mov    %rbx,%rdi
mov    %rbp,%rsi
xor    %eax,%eax
call   1090 <fscanf@plt>
lea    0x3e(%rsp),%rdx
mov    %rbx,%rdi
mov    %rbp,%rsi
xor    %eax,%eax
call   1090 <fscanf@plt>
lea    0x44(%rsp),%rdx
mov    %rbx,%rdi
mov    %rbp,%rsi
xor    %eax,%eax
call   1090 <fscanf@plt>
lea    0x4a(%rsp),%rdx
mov    %rbx,%rdi
mov    %rbp,%rsi
xor    %eax,%eax
call   1090 <fscanf@plt>
lea    0x50(%rsp),%rdx
mov    %rbx,%rdi
mov    %rbp,%rsi
xor    %eax,%eax
call   1090 <fscanf@plt>
lea    0x56(%rsp),%rdx
mov    %rbx,%rdi
mov    %rbp,%rsi
xor    %eax,%eax
call   1090 <fscanf@plt>
lea    0x5c(%rsp),%rdx
mov    %rbx,%rdi
mov    %rbp,%rsi
xor    %eax,%eax
call   1090 <fscanf@plt>
lea    0x62(%rsp),%rdx
mov    %rbx,%rdi
mov    %rbp,%rsi
xor    %eax,%eax
call   1090 <fscanf@plt>
lea    0x68(%rsp),%rdx
mov    %rbx,%rdi
mov    %rbp,%rsi
xor    %eax,%eax
call   1090 <fscanf@plt>
mov    %r15,%rdi
mov    $0x50,%esi
mov    %rbx,%rdx
call   10a0 <fgets@plt>
mov    %r15,%rdi
mov    $0x50,%esi
mov    %rbx,%rdx
call   10a0 <fgets@plt>
lea    0x90(%rsp),%r15
mov    $0x1,%ebp
lea    0xcdc(%rip),%r12
lea    0xce6(%rip),%r13
cs nopw 0x0(%rax,%rax,1)
nopl   0x0(%rax,%rax,1)
mov    %rbx,%rdi
mov    %r12,%rsi
mov    %r15,%rdx
xor    %eax,%eax
call   1090 <fscanf@plt>
movb   $0x0,0xf(%r15)
mov    (%r14,%rbp,8),%rdx
add    $0x4,%rdx
mov    %rbx,%rdi
mov    %r13,%rsi
xor    %eax,%eax
call   1090 <fscanf@plt>
mov    (%r14,%rbp,8),%rdx
add    $0x8,%rdx
mov    %rbx,%rdi
mov    %r13,%rsi
xor    %eax,%eax
call   1090 <fscanf@plt>
mov    (%r14,%rbp,8),%rdx
add    $0xc,%rdx
mov    %rbx,%rdi
mov    %r13,%rsi
xor    %eax,%eax
call   1090 <fscanf@plt>
mov    (%r14,%rbp,8),%rdx
add    $0x10,%rdx
mov    %rbx,%rdi
mov    %r13,%rsi
xor    %eax,%eax
call   1090 <fscanf@plt>
mov    (%r14,%rbp,8),%rdx
add    $0x14,%rdx
mov    %rbx,%rdi
mov    %r13,%rsi
xor    %eax,%eax
call   1090 <fscanf@plt>
mov    (%r14,%rbp,8),%rdx
add    $0x18,%rdx
mov    %rbx,%rdi
mov    %r13,%rsi
xor    %eax,%eax
call   1090 <fscanf@plt>
mov    (%r14,%rbp,8),%rdx
add    $0x1c,%rdx
mov    %rbx,%rdi
mov    %r13,%rsi
xor    %eax,%eax
call   1090 <fscanf@plt>
mov    (%r14,%rbp,8),%rdx
add    $0x20,%rdx
mov    %rbx,%rdi
mov    %r13,%rsi
xor    %eax,%eax
call   1090 <fscanf@plt>
mov    (%r14,%rbp,8),%rdx
add    $0x24,%rdx
mov    %rbx,%rdi
mov    %r13,%rsi
xor    %eax,%eax
call   1090 <fscanf@plt>
mov    (%r14,%rbp,8),%rdx
add    $0x28,%rdx
mov    %rbx,%rdi
mov    %r13,%rsi
xor    %eax,%eax
call   1090 <fscanf@plt>
mov    (%r14,%rbp,8),%rdx
add    $0x2c,%rdx
mov    %rbx,%rdi
mov    %r13,%rsi
xor    %eax,%eax
call   1090 <fscanf@plt>
mov    (%r14,%rbp,8),%rdx
add    $0x30,%rdx
mov    %rbx,%rdi
mov    %r13,%rsi
xor    %eax,%eax
call   1090 <fscanf@plt>
add    $0x1,%rbp
add    $0x10,%r15
cmp    $0xa,%rbp
jne    1370 <main+0x1c0>
mov    %rbx,%rdi
call   1070 <fclose@plt>
lea    0xba9(%rip),%rdi
lea    0x70(%rsp),%rsi
xor    %eax,%eax
call   1080 <printf@plt>
lea    0xb9a(%rip),%rbx
mov    %rbx,%rdi
lea    0x26(%rsp),%rsi
xor    %eax,%eax
call   1080 <printf@plt>
mov    %rbx,%rdi
lea    0x2c(%rsp),%rsi
xor    %eax,%eax
call   1080 <printf@plt>
mov    %rbx,%rdi
lea    0x32(%rsp),%rsi
xor    %eax,%eax
call   1080 <printf@plt>
mov    %rbx,%rdi
lea    0x38(%rsp),%rsi
xor    %eax,%eax
call   1080 <printf@plt>
mov    %rbx,%rdi
lea    0x3e(%rsp),%rsi
xor    %eax,%eax
call   1080 <printf@plt>
mov    %rbx,%rdi
lea    0x44(%rsp),%rsi
xor    %eax,%eax
call   1080 <printf@plt>
mov    %rbx,%rdi
lea    0x4a(%rsp),%rsi
xor    %eax,%eax
call   1080 <printf@plt>
mov    %rbx,%rdi
lea    0x50(%rsp),%rsi
xor    %eax,%eax
call   1080 <printf@plt>
mov    %rbx,%rdi
lea    0x56(%rsp),%rsi
xor    %eax,%eax
call   1080 <printf@plt>
mov    %rbx,%rdi
lea    0x5c(%rsp),%rsi
xor    %eax,%eax
call   1080 <printf@plt>
mov    %rbx,%rdi
lea    0x62(%rsp),%rsi
xor    %eax,%eax
call   1080 <printf@plt>
mov    %rbx,%rdi
lea    0x68(%rsp),%rsi
xor    %eax,%eax
call   1080 <printf@plt>
lea    0xabb(%rip),%rdi
call   1050 <puts@plt>
lea    0x90(%rsp),%rbx
mov    $0x1,%ebp
lea    0xac3(%rip),%r15
lea    0xac3(%rip),%r12
mov    %r15,%rdi
mov    %rbx,%rsi
xor    %eax,%eax
call   1080 <printf@plt>
mov    (%r14,%rbp,8),%rax
mov    0x4(%rax),%esi
mov    %r12,%rdi
xor    %eax,%eax
call   1080 <printf@plt>
mov    (%r14,%rbp,8),%rax
mov    0x8(%rax),%esi
mov    %r12,%rdi
xor    %eax,%eax
call   1080 <printf@plt>
mov    (%r14,%rbp,8),%rax
mov    0xc(%rax),%esi
mov    %r12,%rdi
xor    %eax,%eax
call   1080 <printf@plt>
mov    (%r14,%rbp,8),%rax
mov    0x10(%rax),%esi
mov    %r12,%rdi
xor    %eax,%eax
call   1080 <printf@plt>
mov    (%r14,%rbp,8),%rax
mov    0x14(%rax),%esi
mov    %r12,%rdi
xor    %eax,%eax
call   1080 <printf@plt>
mov    (%r14,%rbp,8),%rax
mov    0x18(%rax),%esi
mov    %r12,%rdi
xor    %eax,%eax
call   1080 <printf@plt>
mov    (%r14,%rbp,8),%rax
mov    0x1c(%rax),%esi
mov    %r12,%rdi
xor    %eax,%eax
call   1080 <printf@plt>
mov    (%r14,%rbp,8),%rax
mov    0x20(%rax),%esi
mov    %r12,%rdi
xor    %eax,%eax
call   1080 <printf@plt>
mov    (%r14,%rbp,8),%rax
mov    0x24(%rax),%esi
mov    %r12,%rdi
xor    %eax,%eax
call   1080 <printf@plt>
mov    (%r14,%rbp,8),%rax
mov    0x28(%rax),%esi
mov    %r12,%rdi
xor    %eax,%eax
call   1080 <printf@plt>
mov    (%r14,%rbp,8),%rax
mov    0x2c(%rax),%esi
mov    %r12,%rdi
xor    %eax,%eax
call   1080 <printf@plt>
mov    (%r14,%rbp,8),%rax
mov    0x30(%rax),%esi
mov    %r12,%rdi
xor    %eax,%eax
call   1080 <printf@plt>
mov    $0xa,%edi
call   1030 <putchar@plt>
add    $0x1,%rbp
add    $0x10,%rbx
cmp    $0xa,%rbp
jne    1590 <main+0x3e0>
lea    0x1c(%rsp),%rax
lea    0x14(%rsp),%rbp
lea    0x18(%rsp),%rcx
lea    0x10(%rsp),%r8
lea    0xc(%rsp),%r9
mov    %r14,%rdi
mov    $0x9,%esi
mov    $0xc,%edx
push   %rax
push   %rbp
call   10d0 <cntab1@plt>
add    $0x10,%rsp
movss  0x18(%rsp),%xmm0
cvtss2sd %xmm0,%xmm0
lea    0x990(%rip),%rdi
lea    0x97b(%rip),%rbx
mov    %rbx,%rsi
mov    $0x1,%al
call   1080 <printf@plt>
movss  0x10(%rsp),%xmm0
cvtss2sd %xmm0,%xmm0
lea    0x98e(%rip),%rdi
mov    %rbx,%rsi
mov    $0x1,%al
call   1080 <printf@plt>
movss  0xc(%rsp),%xmm0
cvtss2sd %xmm0,%xmm0
lea    0x992(%rip),%rdi
mov    %rbx,%rsi
mov    $0x1,%al
call   1080 <printf@plt>
movss  0x14(%rsp),%xmm0
cvtss2sd %xmm0,%xmm0
lea    0x996(%rip),%rdi
mov    %rbx,%rsi
mov    $0x1,%al
call   1080 <printf@plt>
movss  0x1c(%rsp),%xmm0
cvtss2sd %xmm0,%xmm0
lea    0x99a(%rip),%rdi
mov    %rbx,%rsi
mov    $0x1,%al
call   1080 <printf@plt>
mov    %r14,%rdi
mov    $0x1,%esi
mov    $0x9,%edx
mov    $0x1,%ecx
mov    $0xc,%r8d
call   10b0 <free_imatrix@plt>
xor    %eax,%eax
add    $0x178,%rsp
pop    %rbx
pop    %r12
pop    %r13
pop    %r14
pop    %r15
pop    %rbp
ret

LLVM IR (-O0):
@.str = [11 x i8] c"table1.dat\00"
@.str.1 = [2 x i8] c"r\00"
@.str.2 = [32 x i8] c"Data file table1.dat not found\0A\00"
@.str.3 = [5 x i8] c"%16c\00"
@.str.4 = [4 x i8] c" %s\00"
@.str.5 = [17 x i8] c"%16[^0123456789]\00"
@.str.6 = [4 x i8] c"%d \00"
@.str.7 = [4 x i8] c"\0A%s\00"
@.str.8 = [4 x i8] c"%5s\00"
@.str.9 = [3 x i8] c"\0A\0A\00"
@.str.10 = [3 x i8] c"%s\00"
@.str.11 = [4 x i8] c"%5d\00"
@.str.12 = [2 x i8] c"\0A\00"
@.str.13 = [32 x i8] c"\0A%15s chi-squared %20.2f\0A\00"
@.str.14 = [2 x i8] c" \00"
@.str.15 = [31 x i8] c"%15s degrees of freedom%20.2f\0A\00"
@.str.16 = [31 x i8] c"%15s probability %20.4f\0A\00"
@.str.17 = [31 x i8] c"%15s cramer-v %20.4f\0A\00"
@.str.18 = [31 x i8] c"%15s contingency coeff.%20.4f\0A\00"
define i32 @main() {
%1 = alloca i32
%2 = alloca i32
%3 = alloca i32
%4 = alloca i32**
%5 = alloca float
%6 = alloca float
%7 = alloca float
%8 = alloca float
%9 = alloca float
%10 = alloca [80 x i8]
%11 = alloca [10 x [16 x i8]]
%12 = alloca [13 x [6 x i8]]
%13 = alloca [16 x i8]
%14 = alloca i32*
store i32 0, i32* %1
%15 = call i32** @imatrix(i32 1, i32 9, i32 1, i32 12)
store i32** %15, i32*** %4
%16 = call i32* @fopen(i8* getelementptr inbounds ([11 x i8], [11 x i8]* @.str, i64 0, i64 0), i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.1, i64 0, i64 0))
store i32* %16, i32** %14
%17 = icmp eq i32* %16, null
br i1 %17, label %18, label %20
18: ; preds = %0
%19 = call i32 @nrerror(i8* getelementptr inbounds ([32 x i8], [32 x i8]* @.str.2, i64 0, i64 0))
br label %20
20: ; preds = %18, %0
%21 = getelementptr inbounds [80 x i8], [80 x i8]* %10, i64 0, i64 0
%22 = load i32*, i32** %14
%23 = call i32 @fgets(i8* %21, i32 80, i32* %22)
%24 = getelementptr inbounds [80 x i8], [80 x i8]* %10, i64 0, i64 0
%25 = load i32*, i32** %14
%26 = call i32 @fgets(i8* %24, i32 80, i32* %25)
%27 = load i32*, i32** %14
%28 = getelementptr inbounds [16 x i8], [16 x i8]* %13, i64 0, i64 0
%29 = call i32 (i32*, i8*, ...) @fscanf(i32* %27, i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.3, i64 0, i64 0), i8* %28)
%30 = getelementptr inbounds [16 x i8], [16 x i8]* %13, i64 0, i64 15
store i8 0, i8* %30
store i32 1, i32* %2
br label %31
31: ; preds = %41, %20
%32 = load i32, i32* %2
%33 = icmp sle i32 %32, 12
br i1 %33, label %34, label %44
34: ; preds = %31
%35 = load i32*, i32** %14
%36 = load i32, i32* %2
%37 = sext i32 %36 to i64
%38 = getelementptr inbounds [13 x [6 x i8]], [13 x [6 x i8]]* %12, i64 0, i64 %37
%39 = getelementptr inbounds [6 x i8], [6 x i8]* %38, i64 0, i64 0
%40 = call i32 (i32*, i8*, ...) @fscanf(i32* %35, i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.4, i64 0, i64 0), i8* %39)
br label %41
41: ; preds = %34
%42 = load i32, i32* %2
%43 = add nsw i32 %42, 1
store i32 %43, i32* %2
br label %31
44: ; preds = %31
%45 = getelementptr inbounds [80 x i8], [80 x i8]* %10, i64 0, i64 0
%46 = load i32*, i32** %14
%47 = call i32 @fgets(i8* %45, i32 80, i32* %46)
%48 = getelementptr inbounds [80 x i8], [80 x i8]* %10, i64 0, i64 0
%49 = load i32*, i32** %14
%50 = call i32 @fgets(i8* %48, i32 80, i32* %49)
store i32 1, i32* %2
br label %51
51: ; preds = %83, %44
%52 = load i32, i32* %2
%53 = icmp sle i32 %52, 9
br i1 %53, label %54, label %86
54: ; preds = %51
%55 = load i32*, i32** %14
%56 = load i32, i32* %2
%57 = sext i32 %56 to i64
%58 = getelementptr inbounds [10 x [16 x i8]], [10 x [16 x i8]]* %11, i64 0, i64 %57
%59 = getelementptr inbounds [16 x i8], [16 x i8]* %58, i64 0, i64 0
%60 = call i32 (i32*, i8*, ...) @fscanf(i32* %55, i8* getelementptr inbounds ([17 x i8], [17 x i8]* @.str.5, i64 0, i64 0), i8* %59)
%61 = load i32, i32* %2
%62 = sext i32 %61 to i64
%63 = getelementptr inbounds [10 x [16 x i8]], [10 x [16 x i8]]* %11, i64 0, i64 %62
%64 = getelementptr inbounds [16 x i8], [16 x i8]* %63, i64 0, i64 15
store i8 0, i8* %64
store i32 1, i32* %3
br label %65
65: ; preds = %79, %54
%66 = load i32, i32* %3
%67 = icmp sle i32 %66, 12
br i1 %67, label %68, label %82
68: ; preds = %65
%69 = load i32*, i32** %14
%70 = load i32**, i32*** %4
%71 = load i32, i32* %2
%72 = sext i32 %71 to i64
%73 = getelementptr inbounds i32*, i32** %70, i64 %72
%74 = load i32*, i32** %73
%75 = load i32, i32* %3
%76 = sext i32 %75 to i64
%77 = getelementptr inbounds i32, i32* %74, i64 %76
%78 = call i32 (i32*, i8*, ...) @fscanf(i32* %69, i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.6, i64 0, i64 0), i32* %77)
br label %79
79: ; preds = %68
%80 = load i32, i32* %3
%81 = add nsw i32 %80, 1
store i32 %81, i32* %3
br label %65
82: ; preds = %65
br label %83
83: ; preds = %82
%84 = load i32, i32* %2
%85 = add nsw i32 %84, 1
store i32 %85, i32* %2
br label %51
86: ; preds = %51
%87 = load i32*, i32** %14
%88 = call i32 @fclose(i32* %87)
%89 = getelementptr inbounds [16 x i8], [16 x i8]* %13, i64 0, i64 0
%90 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.7, i64 0, i64 0), i8* %89)
store i32 1, i32* %2
br label %91
91: ; preds = %100, %86
%92 = load i32, i32* %2
%93 = icmp sle i32 %92, 12
br i1 %93, label %94, label %103
94: ; preds = %91
%95 = load i32, i32* %2
%96 = sext i32 %95 to i64
%97 = getelementptr inbounds [13 x [6 x i8]], [13 x [6 x i8]]* %12, i64 0, i64 %96
%98 = getelementptr inbounds [6 x i8], [6 x i8]* %97, i64 0, i64 0
%99 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.8, i64 0, i64 0), i8* %98)
br label %100
100: ; preds = %94
%101 = load i32, i32* %2
%102 = add nsw i32 %101, 1
store i32 %102, i32* %2
br label %91
103: ; preds = %91
%104 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.9, i64 0, i64 0))
store i32 1, i32* %2
br label %105
105: ; preds = %133, %103
%106 = load i32, i32* %2
%107 = icmp sle i32 %106, 9
br i1 %107, label %108, label %136
108: ; preds = %105
%109 = load i32, i32* %2
%110 = sext i32 %109 to i64
%111 = getelementptr inbounds [10 x [16 x i8]], [10 x [16 x i8]]* %11, i64 0, i64 %110
%112 = getelementptr inbounds [16 x i8], [16 x i8]* %111, i64 0, i64 0
%113 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.10, i64 0, i64 0), i8* %112)
store i32 1, i32* %3
br label %114
114: ; preds = %128, %108
%115 = load i32, i32* %3
%116 = icmp sle i32 %115, 12
br i1 %116, label %117, label %131
117: ; preds = %114
%118 = load i32**, i32*** %4
%119 = load i32, i32* %2
%120 = sext i32 %119 to i64
%121 = getelementptr inbounds i32*, i32** %118, i64 %120
%122 = load i32*, i32** %121
%123 = load i32, i32* %3
%124 = sext i32 %123 to i64
%125 = getelementptr inbounds i32, i32* %122, i64 %124
%126 = load i32, i32* %125
%127 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.11, i64 0, i64 0), i32 %126)
br label %128
128: ; preds = %117
%129 = load i32, i32* %3
%130 = add nsw i32 %129, 1
store i32 %130, i32* %3
br label %114
131: ; preds = %114
%132 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.12, i64 0, i64 0))
br label %133
133: ; preds = %131
%134 = load i32, i32* %2
%135 = add nsw i32 %134, 1
store i32 %135, i32* %2
br label %105
136: ; preds = %105
%137 = load i32**, i32*** %4
%138 = call i32 @cntab1(i32** %137, i32 9, i32 12, float* %6, float* %8, float* %9, float* %7, float* %5)
%139 = load float, float* %6
%140 = fpext float %139 to double
%141 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([32 x i8], [32 x i8]* @.str.13, i64 0, i64 0), i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.14, i64 0, i64 0), double %140)
%142 = load float, float* %8
%143 = fpext float %142 to double
%144 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([31 x i8], [31 x i8]* @.str.15, i64 0, i64 0), i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.14, i64 0, i64 0), double %143)
%145 = load float, float* %9
%146 = fpext float %145 to double
%147 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([31 x i8], [31 x i8]* @.str.16, i64 0, i64 0), i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.14, i64 0, i64 0), double %146)
%148 = load float, float* %7
%149 = fpext float %148 to double
%150 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([31 x i8], [31 x i8]* @.str.17, i64 0, i64 0), i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.14, i64 0, i64 0), double %149)
%151 = load float, float* %5
%152 = fpext float %151 to double
%153 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([31 x i8], [31 x i8]* @.str.18, i64 0, i64 0), i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.14, i64 0, i64 0), double %152)
%154 = load i32**, i32*** %4
%155 = call i32 @free_imatrix(i32** %154, i32 1, i32 9, i32 1, i32 12)
ret i32 0
}

LLVM IR (-O2):
@.str = [11 x i8] c"table1.dat\00"
@.str.1 = [2 x i8] c"r\00"
@.str.2 = [32 x i8] c"Data file table1.dat not found\0A\00"
@.str.3 = [5 x i8] c"%16c\00"
@.str.4 = [4 x i8] c" %s\00"
@.str.5 = [17 x i8] c"%16[^0123456789]\00"
@.str.6 = [4 x i8] c"%d \00"
@.str.7 = [4 x i8] c"\0A%s\00"
@.str.8 = [4 x i8] c"%5s\00"
@.str.10 = [3 x i8] c"%s\00"
@.str.11 = [4 x i8] c"%5d\00"
@.str.13 = [32 x i8] c"\0A%15s chi-squared %20.2f\0A\00"
@.str.14 = [2 x i8] c" \00"
@.str.15 = [31 x i8] c"%15s degrees of freedom%20.2f\0A\00"
@.str.16 = [31 x i8] c"%15s probability %20.4f\0A\00"
@.str.17 = [31 x i8] c"%15s cramer-v %20.4f\0A\00"
@.str.18 = [31 x i8] c"%15s contingency coeff.%20.4f\0A\00"
@str = [2 x i8] c"\0A\00"
define i32 @main() {
%1 = alloca float
%2 = alloca float
%3 = alloca float
%4 = alloca float
%5 = alloca float
%6 = alloca [80 x i8]
%7 = alloca [10 x [16 x i8]]
%8 = alloca [13 x [6 x i8]]
%9 = alloca [16 x i8]
%10 = bitcast float* %1 to i8*
%11 = bitcast float* %2 to i8*
%12 = bitcast float* %3 to i8*
%13 = bitcast float* %4 to i8*
%14 = bitcast float* %5 to i8*
%15 = getelementptr inbounds [80 x i8], [80 x i8]* %6, i64 0, i64 0
%16 = getelementptr inbounds [10 x [16 x i8]], [10 x [16 x i8]]* %7, i64 0, i64 0, i64 0
%17 = getelementptr inbounds [13 x [6 x i8]], [13 x [6 x i8]]* %8, i64 0, i64 0, i64 0
%18 = getelementptr inbounds [16 x i8], [16 x i8]* %9, i64 0, i64 0
%19 = tail call i32** @imatrix(i32 1, i32 9, i32 1, i32 12)
%20 = tail call i32* @fopen(i8* getelementptr inbounds ([11 x i8], [11 x i8]* @.str, i64 0, i64 0), i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.1, i64 0, i64 0))
%21 = icmp eq i32* %20, null
br i1 %21, label %22, label %24
22: ; preds = %0
%23 = tail call i32 @nrerror(i8* getelementptr inbounds ([32 x i8], [32 x i8]* @.str.2, i64 0, i64 0))
br label %24
24: ; preds = %22, %0
%25 = call i32 @fgets(i8* %15, i32 80, i32* %20)
%26 = call i32 @fgets(i8* %15, i32 80, i32* %20)
%27 = call i32 (i32*, i8*, ...) @fscanf(i32* %20, i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.3, i64 0, i64 0), i8* %18)
%28 = getelementptr inbounds [16 x i8], [16 x i8]* %9, i64 0, i64 15
store i8 0, i8* %28
%29 = getelementptr inbounds [13 x [6 x i8]], [13 x [6 x i8]]* %8, i64 0, i64 1, i64 0
%30 = call i32 (i32*, i8*, ...) @fscanf(i32* %20, i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.4, i64 0, i64 0), i8* %29)
%31 = getelementptr inbounds [13 x [6 x i8]], [13 x [6 x i8]]* %8, i64 0, i64 2, i64 0
%32 = call i32 (i32*, i8*, ...) @fscanf(i32* %20, i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.4, i64 0, i64 0), i8* %31)
%33 = getelementptr inbounds [13 x [6 x i8]], [13 x [6 x i8]]* %8, i64 0, i64 3, i64 0
%34 = call i32 (i32*, i8*, ...) @fscanf(i32* %20, i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.4, i64 0, i64 0), i8* %33)
%35 = getelementptr inbounds [13 x [6 x i8]], [13 x [6 x i8]]* %8, i64 0, i64 4, i64 0
%36 = call i32 (i32*, i8*, ...) @fscanf(i32* %20, i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.4, i64 0, i64 0), i8* %35)
%37 = getelementptr inbounds [13 x [6 x i8]], [13 x [6 x i8]]* %8, i64 0, i64 5, i64 0
%38 = call i32 (i32*, i8*, ...) @fscanf(i32* %20, i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.4, i64 0, i64 0), i8* %37)
%39 = getelementptr inbounds [13 x [6 x i8]], [13 x [6 x i8]]* %8, i64 0, i64 6, i64 0
%40 = call i32 (i32*, i8*, ...) @fscanf(i32* %20, i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.4, i64 0, i64 0), i8* %39)
%41 = getelementptr inbounds [13 x [6 x i8]], [13 x [6 x i8]]* %8, i64 0, i64 7, i64 0
%42 = call i32 (i32*, i8*, ...) @fscanf(i32* %20, i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.4, i64 0, i64 0), i8* %41)
%43 = getelementptr inbounds [13 x [6 x i8]], [13 x [6 x i8]]* %8, i64 0, i64 8, i64 0
%44 = call i32 (i32*, i8*, ...) @fscanf(i32* %20, i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.4, i64 0, i64 0), i8* %43)
%45 = getelementptr inbounds [13 x [6 x i8]], [13 x [6 x i8]]* %8, i64 0, i64 9, i64 0
%46 = call i32 (i32*, i8*, ...) @fscanf(i32* %20, i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.4, i64 0, i64 0), i8* %45)
%47 = getelementptr inbounds [13 x [6 x i8]], [13 x [6 x i8]]* %8, i64 0, i64 10, i64 0
%48 = call i32 (i32*, i8*, ...) @fscanf(i32* %20, i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.4, i64 0, i64 0), i8* %47)
%49 = getelementptr inbounds [13 x [6 x i8]], [13 x [6 x i8]]* %8, i64 0, i64 11, i64 0
%50 = call i32 (i32*, i8*, ...) @fscanf(i32* %20, i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.4, i64 0, i64 0), i8* %49)
%51 = getelementptr inbounds [13 x [6 x i8]], [13 x [6 x i8]]* %8, i64 0, i64 12, i64 0
%52 = call i32 (i32*, i8*, ...) @fscanf(i32* %20, i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.4, i64 0, i64 0), i8* %51)
%53 = call i32 @fgets(i8* %15, i32 80, i32* %20)
%54 = call i32 @fgets(i8* %15, i32 80, i32* %20)
br label %55
55: ; preds = %24, %55
%56 = phi i64 [ 1, %24 ], [ %97, %55 ]
%57 = getelementptr inbounds [10 x [16 x i8]], [10 x [16 x i8]]* %7, i64 0, i64 %56, i64 0
%58 = call i32 (i32*, i8*, ...) @fscanf(i32* %20, i8* getelementptr inbounds ([17 x i8], [17 x i8]* @.str.5, i64 0, i64 0), i8* %57)
%59 = getelementptr inbounds [10 x [16 x i8]], [10 x [16 x i8]]* %7, i64 0, i64 %56, i64 15
store i8 0, i8* %59
%60 = getelementptr inbounds i32*, i32** %19, i64 %56
%61 = load i32*, i32** %60
%62 = getelementptr inbounds i32, i32* %61, i64 1
%63 = call i32 (i32*, i8*, ...) @fscanf(i32* %20, i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.6, i64 0, i64 0), i32* %62)
%64 = load i32*, i32** %60
%65 = getelementptr inbounds i32, i32* %64, i64 2
%66 = call i32 (i32*, i8*, ...) @fscanf(i32* %20, i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.6, i64 0, i64 0), i32* %65)
%67 = load i32*, i32** %60
%68 = getelementptr inbounds i32, i32* %67, i64 3
%69 = call i32 (i32*, i8*, ...) @fscanf(i32* %20, i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.6, i64 0, i64 0), i32* %68)
%70 = load i32*, i32** %60
%71 = getelementptr inbounds i32, i32* %70, i64 4
%72 = call i32 (i32*, i8*, ...) @fscanf(i32* %20, i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.6, i64 0, i64 0), i32* %71)
%73 = load i32*, i32** %60
%74 = getelementptr inbounds i32, i32* %73, i64 5
%75 = call i32 (i32*, i8*, ...) @fscanf(i32* %20, i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.6, i64 0, i64 0), i32* %74)
%76 = load i32*, i32** %60
%77 = getelementptr inbounds i32, i32* %76, i64 6
%78 = call i32 (i32*, i8*, ...) @fscanf(i32* %20, i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.6, i64 0, i64 0), i32* %77)
%79 = load i32*, i32** %60
%80 = getelementptr inbounds i32, i32* %79, i64 7
%81 = call i32 (i32*, i8*, ...) @fscanf(i32* %20, i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.6, i64 0, i64 0), i32* %80)
%82 = load i32*, i32** %60
%83 = getelementptr inbounds i32, i32* %82, i64 8
%84 = call i32 (i32*, i8*, ...) @fscanf(i32* %20, i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.6, i64 0, i64 0), i32* %83)
%85 = load i32*, i32** %60
%86 = getelementptr inbounds i32, i32* %85, i64 9
%87 = call i32 (i32*, i8*, ...) @fscanf(i32* %20, i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.6, i64 0, i64 0), i32* %86)
%88 = load i32*, i32** %60
%89 = getelementptr inbounds i32, i32* %88, i64 10
%90 = call i32 (i32*, i8*, ...) @fscanf(i32* %20, i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.6, i64 0, i64 0), i32* %89)
%91 = load i32*, i32** %60
%92 = getelementptr inbounds i32, i32* %91, i64 11
%93 = call i32 (i32*, i8*, ...) @fscanf(i32* %20, i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.6, i64 0, i64 0), i32* %92)
%94 = load i32*, i32** %60
%95 = getelementptr inbounds i32, i32* %94, i64 12
%96 = call i32 (i32*, i8*, ...) @fscanf(i32* %20, i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.6, i64 0, i64 0), i32* %95)
%97 = add nuw nsw i64 %56, 1
%98 = icmp eq i64 %97, 10
br i1 %98, label %99, label %55
99: ; preds = %55
%100 = call i32 @fclose(i32* %20)
%101 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([4 x i8], [4 x i8]* @.str.7, i64 0, i64 0), i8* %18)
%102 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([4 x i8], [4 x i8]* @.str.8, i64 0, i64 0), i8* %29)
%103 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([4 x i8], [4 x i8]* @.str.8, i64 0, i64 0), i8* %31)
%104 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([4 x i8], [4 x i8]* @.str.8, i64 0, i64 0), i8* %33)
%105 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([4 x i8], [4 x i8]* @.str.8, i64 0, i64 0), i8* %35)
%106 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([4 x i8], [4 x i8]* @.str.8, i64 0, i64 0), i8* %37)
%107 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([4 x i8], [4 x i8]* @.str.8, i64 0, i64 0), i8* %39)
%108 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([4 x i8], [4 x i8]* @.str.8, i64 0, i64 0), i8* %41)
%109 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([4 x i8], [4 x i8]* @.str.8, i64 0, i64 0), i8* %43)
%110 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([4 x i8], [4 x i8]* @.str.8, i64 0, i64 0), i8* %45)
%111 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([4 x i8], [4 x i8]* @.str.8, i64 0, i64 0), i8* %47)
%112 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([4 x i8], [4 x i8]* @.str.8, i64 0, i64 0), i8* %49)
%113 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([4 x i8], [4 x i8]* @.str.8, i64 0, i64 0), i8* %51)
%114 = call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([2 x i8], [2 x i8]* @str, i64 0, i64 0))
br label %115
115: ; preds = %99, %115
%116 = phi i64 [ 1, %99 ], [ %169, %115 ]
%117 = getelementptr inbounds [10 x [16 x i8]], [10 x [16 x i8]]* %7, i64 0, i64 %116, i64 0
%118 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([3 x i8], [3 x i8]* @.str.10, i64 0, i64 0), i8* %117)
%119 = getelementptr inbounds i32*, i32** %19, i64 %116
%120 = load i32*, i32** %119
%121 = getelementptr inbounds i32, i32* %120, i64 1
%122 = load i32, i32* %121
%123 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([4 x i8], [4 x i8]* @.str.11, i64 0, i64 0), i32 %122)
%124 = load i32*, i32** %119
%125 = getelementptr inbounds i32, i32* %124, i64 2
%126 = load i32, i32* %125
%127 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([4 x i8], [4 x i8]* @.str.11, i64 0, i64 0), i32 %126)
%128 = load i32*, i32** %119
%129 = getelementptr inbounds i32, i32* %128, i64 3
%130 = load i32, i32* %129
%131 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([4 x i8], [4 x i8]* @.str.11, i64 0, i64 0), i32 %130)
%132 = load i32*, i32** %119
%133 = getelementptr inbounds i32, i32* %132, i64 4
%134 = load i32, i32* %133
%135 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([4 x i8], [4 x i8]* @.str.11, i64 0, i64 0), i32 %134)
%136 = load i32*, i32** %119
%137 = getelementptr inbounds i32, i32* %136, i64 5
%138 = load i32, i32* %137
%139 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([4 x i8], [4 x i8]* @.str.11, i64 0, i64 0), i32 %138)
%140 = load i32*, i32** %119
%141 = getelementptr inbounds i32, i32* %140, i64 6
%142 = load i32, i32* %141
%143 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([4 x i8], [4 x i8]* @.str.11, i64 0, i64 0), i32 %142)
%144 = load i32*, i32** %119
%145 = getelementptr inbounds i32, i32* %144, i64 7
%146 = load i32, i32* %145
%147 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([4 x i8], [4 x i8]* @.str.11, i64 0, i64 0), i32 %146)
%148 = load i32*, i32** %119
%149 = getelementptr inbounds i32, i32* %148, i64 8
%150 = load i32, i32* %149
%151 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([4 x i8], [4 x i8]* @.str.11, i64 0, i64 0), i32 %150)
%152 = load i32*, i32** %119
%153 = getelementptr inbounds i32, i32* %152, i64 9
%154 = load i32, i32* %153
%155 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([4 x i8], [4 x i8]* @.str.11, i64 0, i64 0), i32 %154)
%156 = load i32*, i32** %119
%157 = getelementptr inbounds i32, i32* %156, i64 10
%158 = load i32, i32* %157
%159 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([4 x i8], [4 x i8]* @.str.11, i64 0, i64 0), i32 %158)
%160 = load i32*, i32** %119
%161 = getelementptr inbounds i32, i32* %160, i64 11
%162 = load i32, i32* %161
%163 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([4 x i8], [4 x i8]* @.str.11, i64 0, i64 0), i32 %162)
%164 = load i32*, i32** %119
%165 = getelementptr inbounds i32, i32* %164, i64 12
%166 = load i32, i32* %165
%167 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([4 x i8], [4 x i8]* @.str.11, i64 0, i64 0), i32 %166)
%168 = call i32 @putchar(i32 10)
%169 = add nuw nsw i64 %116, 1
%170 = icmp eq i64 %169, 10
br i1 %170, label %171, label %115
171: ; preds = %115
%172 = call i32 @cntab1(i32** %19, i32 9, i32 12, float* %2, float* %4, float* %5, float* %3, float* %1)
%173 = load float, float* %2
%174 = fpext float %173 to double
%175 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([32 x i8], [32 x i8]* @.str.13, i64 0, i64 0), i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.14, i64 0, i64 0), double %174)
%176 = load float, float* %4
%177 = fpext float %176 to double
%178 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([31 x i8], [31 x i8]* @.str.15, i64 0, i64 0), i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.14, i64 0, i64 0), double %177)
%179 = load float, float* %5
%180 = fpext float %179 to double
%181 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([31 x i8], [31 x i8]* @.str.16, i64 0, i64 0), i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.14, i64 0, i64 0), double %180)
%182 = load float, float* %3
%183 = fpext float %182 to double
%184 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([31 x i8], [31 x i8]* @.str.17, i64 0, i64 0), i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.14, i64 0, i64 0), double %183)
%185 = load float, float* %1
%186 = fpext float %185 to double
%187 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([31 x i8], [31 x i8]* @.str.18, i64 0, i64 0), i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.14, i64 0, i64 0), double %186)
%188 = call i32 @free_imatrix(i32** %19, i32 1, i32 9, i32 1, i32 12)
ret i32 0
}