#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 */

/* Variables and functions */
int EXIT_SUCCESS;
int /*<<< orphan*/ cnfImprt(char *, int, char *);
int /*<<< orphan*/ cnfInitRTL(int /*<<< orphan*/, int /*<<< orphan*/ *);
int /*<<< orphan*/ cnfLock();
int /*<<< orphan*/ cnfUnlock();
int /*<<< orphan*/ printf(char *, ...);
int /*<<< orphan*/ tb_(char *, int *, char *);
int /*<<< orphan*/ tc1_(char *, int const);
int /*<<< orphan*/ tc2_(char *, int *, int const);
int /*<<< orphan*/ td_(double *, int *, double *);
int /*<<< orphan*/ ti_(int *, int *, int *);
int /*<<< orphan*/ tl_(int *, int *, int *);
int /*<<< orphan*/ tr_(float *, int *, float *);
int /*<<< orphan*/ tub_(unsigned char *, int *, unsigned char *);
int /*<<< orphan*/ tuw_(unsigned short *, int *, unsigned short *);
int /*<<< orphan*/ tw_(short *, int *, short *);
int main() {
  int j;
  int ni;
  int i;
  int ia[10];
  int nr;
  float r;
  float ra[10];
  int nd;
  double d;
  double da[10];
  int nl;
  int l;
  int la[9];
  int nb;
  signed char b;
  signed char ba[11];
  int nw;
  short int w;
  short int wa[20];
  int nub;
  unsigned char ub;
  unsigned char uba[12];
  int nuw;
  unsigned short int uw;
  unsigned short int uwa[21];
  char c1f[80];
  const int c1f_length = 80;
  char caf[5][80];
  const int caf_length = 80;
  int nc;
  char c;
  char c1c[81];
  ni = 10;
  nr = 10;
  nd = 10;
  nl = 9;
  nb = 11;
  nw = 20;
  nub = 12;
  nuw = 21;
  printf("--> This is a test of C calling FORTRAN\n");
  cnfInitRTL(0, NULL);
  for (j = 0; j < ni; j++)
    ia[j] = j + 1;
  cnfLock();
  ti_((int *)ia, &ni, &i);
  cnfUnlock();
  printf("The sum of the first %d integers is %d\n", ni, i);
  for (j = 0; j < nr; j++)
    ra[j] = j + 1;
  cnfLock();
  tr_((float *)ra, &nr, &r);
  cnfUnlock();
  printf("The mean of the first %d integers is %f\n", nr, r);
  for (j = 0; j < nd; j++)
    da[j] = j + 1;
  cnfLock();
  td_((double *)da, &nd, &d);
  cnfUnlock();
  printf("The sum of squares of the first %d integers is %lf\n", nd, d);
  for (j = 0; j < nl; j++)
    la[j] = (j + 1) % 2;
  cnfLock();
  tl_((int *)la, &nl, &l);
  cnfUnlock();
  if (l)
    c = 'T';
  else
    c = 'F';
  printf("The statement 'The number of odd values in the first %d integers is "
         "5' is %c\n",
         nl, c);
  for (j = 0; j < nb; j++)
    ba[j] = j + 1;
  cnfLock();
  tb_((signed char *)ba, &nb, &b);
  cnfUnlock();
  printf("The sum of the first %d integers is %d\n", nb, b);
  for (j = 0; j < nw; j++)
    wa[j] = j + 1;
  cnfLock();
  tw_((short int *)wa, &nw, &w);
  cnfUnlock();
  printf("The sum of the first %d integers is %d\n", nw, w);
  for (j = 0; j < nub; j++)
    uba[j] = j + 1;
  cnfLock();
  tub_((unsigned char *)uba, &nub, &ub);
  cnfUnlock();
  printf("The sum of the first %d integers is %d\n", nub, ub);
  for (j = 0; j < nuw; j++)
    uwa[j] = j + 1;
  cnfLock();
  tuw_((unsigned short int *)uwa, &nuw, &uw);
  cnfUnlock();
  printf("The sum of the first %d integers is %d\n", nuw, uw);
  cnfLock();
  tc1_(c1f, c1f_length);
  cnfUnlock();
  cnfImprt(c1f, sizeof c1f, c1c);
  printf("The character variable has been set to: %s\n", c1c);
  nc = 5;
  cnfLock();
  tc2_((char *)caf, &nc, caf_length);
  cnfUnlock();
  for (j = 0; j < 5; j++) {
    cnfImprt(caf[j], (sizeof caf) / 5, c1c);
    printf("The %dth element of the character array is: %s\n", j, c1c);
  }
  return EXIT_SUCCESS;
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x3e0,%rsp
movl   $0x0,-0x4(%rbp)
movl   $0x50,-0x1e4(%rbp)
movl   $0x50,-0x384(%rbp)
movl   $0xa,-0xc(%rbp)
movl   $0xa,-0x44(%rbp)
movl   $0xa,-0x74(%rbp)
movl   $0x9,-0xd4(%rbp)
movl   $0xb,-0x104(%rbp)
movl   $0x14,-0x114(%rbp)
movl   $0xc,-0x144(%rbp)
movl   $0x15,-0x158(%rbp)
lea    0xd9c(%rip),%rdi
mov    $0x0,%al
call   1080 <printf@plt>
xor    %edi,%edi
xor    %eax,%eax
mov    %eax,%esi
call   1110 <cnfInitRTL@plt>
movl   $0x0,-0x8(%rbp)
mov    -0x8(%rbp),%eax
cmp    -0xc(%rbp),%eax
jge    12a5 <main+0xb5>
mov    -0x8(%rbp),%ecx
add    $0x1,%ecx
movslq -0x8(%rbp),%rax
mov    %ecx,-0x40(%rbp,%rax,4)
mov    -0x8(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x8(%rbp)
jmp    127d <main+0x8d>
mov    $0x0,%al
call   1060 <cnfLock@plt>
lea    -0x40(%rbp),%rdi
lea    -0xc(%rbp),%rsi
lea    -0x10(%rbp),%rdx
call   1070 <ti_@plt>
mov    $0x0,%al
call   10b0 <cnfUnlock@plt>
mov    -0xc(%rbp),%esi
mov    -0x10(%rbp),%edx
lea    0xd58(%rip),%rdi
mov    $0x0,%al
call   1080 <printf@plt>
movl   $0x0,-0x8(%rbp)
mov    -0x8(%rbp),%eax
cmp    -0x44(%rbp),%eax
jge    130d <main+0x11d>
mov    -0x8(%rbp),%eax
add    $0x1,%eax
cvtsi2ss %eax,%xmm0
movslq -0x8(%rbp),%rax
movss  %xmm0,-0x70(%rbp,%rax,4)
mov    -0x8(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x8(%rbp)
jmp    12df <main+0xef>
mov    $0x0,%al
call   1060 <cnfLock@plt>
lea    -0x70(%rbp),%rdi
lea    -0x44(%rbp),%rsi
lea    -0x48(%rbp),%rdx
call   10f0 <tr_@plt>
mov    $0x0,%al
call   10b0 <cnfUnlock@plt>
mov    -0x44(%rbp),%esi
movss  -0x48(%rbp),%xmm0
cvtss2sd %xmm0,%xmm0
lea    0xd12(%rip),%rdi
mov    $0x1,%al
call   1080 <printf@plt>
movl   $0x0,-0x8(%rbp)
mov    -0x8(%rbp),%eax
cmp    -0x74(%rbp),%eax
jge    137e <main+0x18e>
mov    -0x8(%rbp),%eax
add    $0x1,%eax
cvtsi2sd %eax,%xmm0
movslq -0x8(%rbp),%rax
movsd  %xmm0,-0xd0(%rbp,%rax,8)
ff ff
mov    -0x8(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x8(%rbp)
jmp    134d <main+0x15d>
mov    $0x0,%al
call   1060 <cnfLock@plt>
lea    -0xd0(%rbp),%rdi
lea    -0x74(%rbp),%rsi
lea    -0x80(%rbp),%rdx
call   1040 <td_@plt>
mov    $0x0,%al
call   10b0 <cnfUnlock@plt>
mov    -0x74(%rbp),%esi
movsd  -0x80(%rbp),%xmm0
lea    0xccb(%rip),%rdi
mov    $0x1,%al
call   1080 <printf@plt>
movl   $0x0,-0x8(%rbp)
mov    -0x8(%rbp),%eax
cmp    -0xd4(%rbp),%eax
jge    13f3 <main+0x203>
mov    -0x8(%rbp),%eax
add    $0x1,%eax
mov    $0x2,%ecx
cltd
idiv   %ecx
movslq -0x8(%rbp),%rax
mov    %edx,-0x100(%rbp,%rax,4)
mov    -0x8(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x8(%rbp)
jmp    13bd <main+0x1cd>
mov    $0x0,%al
call   1060 <cnfLock@plt>
lea    -0x100(%rbp),%rdi
lea    -0xd4(%rbp),%rsi
lea    -0xd8(%rbp),%rdx
call   1030 <tl_@plt>
mov    $0x0,%al
call   10b0 <cnfUnlock@plt>
cmpl   $0x0,-0xd8(%rbp)
je     1434 <main+0x244>
movb   $0x54,-0x389(%rbp)
jmp    143b <main+0x24b>
movb   $0x46,-0x389(%rbp)
mov    -0xd4(%rbp),%esi
movsbl -0x389(%rbp),%edx
lea    0xc5f(%rip),%rdi
mov    $0x0,%al
call   1080 <printf@plt>
movl   $0x0,-0x8(%rbp)
mov    -0x8(%rbp),%eax
cmp    -0x104(%rbp),%eax
jge    148d <main+0x29d>
mov    -0x8(%rbp),%eax
add    $0x1,%eax
mov    %al,%cl
movslq -0x8(%rbp),%rax
mov    %cl,-0x110(%rbp,%rax,1)
mov    -0x8(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x8(%rbp)
jmp    145d <main+0x26d>
mov    $0x0,%al
call   1060 <cnfLock@plt>
lea    -0x110(%rbp),%rdi
lea    -0x104(%rbp),%rsi
lea    -0x105(%rbp),%rdx
call   10d0 <tb_@plt>
mov    $0x0,%al
call   10b0 <cnfUnlock@plt>
mov    -0x104(%rbp),%esi
movsbl -0x105(%rbp),%edx
lea    0xb60(%rip),%rdi
mov    $0x0,%al
call   1080 <printf@plt>
movl   $0x0,-0x8(%rbp)
mov    -0x8(%rbp),%eax
cmp    -0x114(%rbp),%eax
jge    1509 <main+0x319>
mov    -0x8(%rbp),%eax
add    $0x1,%eax
mov    %ax,%cx
movslq -0x8(%rbp),%rax
mov    %cx,-0x140(%rbp,%rax,2)
ff
mov    -0x8(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x8(%rbp)
jmp    14d7 <main+0x2e7>
mov    $0x0,%al
call   1060 <cnfLock@plt>
lea    -0x140(%rbp),%rdi
lea    -0x114(%rbp),%rsi
lea    -0x116(%rbp),%rdx
call   1100 <tw_@plt>
mov    $0x0,%al
call   10b0 <cnfUnlock@plt>
mov    -0x114(%rbp),%esi
movswl -0x116(%rbp),%edx
lea    0xae4(%rip),%rdi
mov    $0x0,%al
call   1080 <printf@plt>
movl   $0x0,-0x8(%rbp)
mov    -0x8(%rbp),%eax
cmp    -0x144(%rbp),%eax
jge    1583 <main+0x393>
mov    -0x8(%rbp),%eax
add    $0x1,%eax
mov    %al,%cl
movslq -0x8(%rbp),%rax
mov    %cl,-0x151(%rbp,%rax,1)
mov    -0x8(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x8(%rbp)
jmp    1553 <main+0x363>
mov    $0x0,%al
call   1060 <cnfLock@plt>
lea    -0x151(%rbp),%rdi
lea    -0x144(%rbp),%rsi
lea    -0x145(%rbp),%rdx
call   10a0 <tub_@plt>
mov    $0x0,%al
call   10b0 <cnfUnlock@plt>
mov    -0x144(%rbp),%esi
movzbl -0x145(%rbp),%edx
lea    0xa6a(%rip),%rdi
mov    $0x0,%al
call   1080 <printf@plt>
movl   $0x0,-0x8(%rbp)
mov    -0x8(%rbp),%eax
cmp    -0x158(%rbp),%eax
jge    15ff <main+0x40f>
mov    -0x8(%rbp),%eax
add    $0x1,%eax
mov    %ax,%cx
movslq -0x8(%rbp),%rax
mov    %cx,-0x190(%rbp,%rax,2)
ff
mov    -0x8(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x8(%rbp)
jmp    15cd <main+0x3dd>
mov    $0x0,%al
call   1060 <cnfLock@plt>
lea    -0x190(%rbp),%rdi
lea    -0x158(%rbp),%rsi
lea    -0x15a(%rbp),%rdx
call   1090 <tuw_@plt>
mov    $0x0,%al
call   10b0 <cnfUnlock@plt>
mov    -0x158(%rbp),%esi
movzwl -0x15a(%rbp),%edx
lea    0x9ee(%rip),%rdi
mov    $0x0,%al
call   1080 <printf@plt>
mov    $0x0,%al
call   1060 <cnfLock@plt>
lea    -0x1e0(%rbp),%rdi
mov    $0x50,%esi
call   1050 <tc1_@plt>
mov    $0x0,%al
call   10b0 <cnfUnlock@plt>
lea    -0x1e0(%rbp),%rdi
lea    -0x3e0(%rbp),%rdx
mov    $0x50,%esi
call   10e0 <cnfImprt@plt>
lea    -0x3e0(%rbp),%rsi
lea    0xa75(%rip),%rdi
mov    $0x0,%al
call   1080 <printf@plt>
movl   $0x5,-0x388(%rbp)
mov    $0x0,%al
call   1060 <cnfLock@plt>
lea    -0x380(%rbp),%rdi
lea    -0x388(%rbp),%rsi
mov    $0x50,%edx
call   10c0 <tc2_@plt>
mov    $0x0,%al
call   10b0 <cnfUnlock@plt>
movl   $0x0,-0x8(%rbp)
cmpl   $0x5,-0x8(%rbp)
jge    1718 <main+0x528>
movslq -0x8(%rbp),%rax
lea    -0x380(%rbp),%rdi
imul   $0x50,%rax,%rax
add    %rax,%rdi
lea    -0x3e0(%rbp),%rdx
mov    $0x50,%esi
call   10e0 <cnfImprt@plt>
mov    -0x8(%rbp),%esi
lea    -0x3e0(%rbp),%rdx
lea    0xa25(%rip),%rdi
mov    $0x0,%al
call   1080 <printf@plt>
mov    -0x8(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x8(%rbp)
jmp    16c5 <main+0x4d5>
mov    0x28c1(%rip),%rax
mov    (%rax),%eax
add    $0x3e0,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %r15
push   %r14
push   %rbx
sub    $0x3e0,%rsp
movl   $0xa,0x28(%rsp)
movl   $0xa,0x24(%rsp)
movl   $0xa,0x20(%rsp)
movl   $0x9,0x1c(%rsp)
movl   $0xb,0x18(%rsp)
movl   $0x14,0x14(%rsp)
movl   $0xc,0x10(%rsp)
movl   $0x15,0xc(%rsp)
lea    0xf9c(%rip),%rdi
call   1040 <puts@plt>
xor    %edi,%edi
xor    %esi,%esi
call   1120 <cnfInitRTL@plt>
movaps 0xd98(%rip),%xmm0
movaps %xmm0,0x120(%rsp)
movaps 0xd99(%rip),%xmm0
movaps %xmm0,0x130(%rsp)
movabs $0xa00000009,%rax
mov    %rax,0x140(%rsp)
xor    %eax,%eax
call   1070 <cnfLock@plt>
lea    0x120(%rsp),%rdi
lea    0x28(%rsp),%rsi
lea    0x38(%rsp),%rdx
call   1080 <ti_@plt>
xor    %eax,%eax
call   10c0 <cnfUnlock@plt>
mov    0x28(%rsp),%esi
mov    0x38(%rsp),%edx
lea    0xdfb(%rip),%r14
mov    %r14,%rdi
xor    %eax,%eax
call   1090 <printf@plt>
movaps 0xd4a(%rip),%xmm0
movaps %xmm0,0xf0(%rsp)
movaps 0xd4b(%rip),%xmm0
movaps %xmm0,0x100(%rsp)
movabs $0x4120000041100000,%rax
mov    %rax,0x110(%rsp)
xor    %eax,%eax
call   1070 <cnfLock@plt>
lea    0xf0(%rsp),%rdi
lea    0x24(%rsp),%rsi
lea    0x34(%rsp),%rdx
call   1100 <tr_@plt>
xor    %eax,%eax
call   10c0 <cnfUnlock@plt>
mov    0x24(%rsp),%esi
movss  0x34(%rsp),%xmm0
cvtss2sd %xmm0,%xmm0
lea    0xdaf(%rip),%rdi
mov    $0x1,%al
call   1090 <printf@plt>
movaps 0xcf9(%rip),%xmm0
movaps %xmm0,0x150(%rsp)
movaps 0xcfa(%rip),%xmm0
movaps %xmm0,0x160(%rsp)
movaps 0xcfb(%rip),%xmm0
movaps %xmm0,0x170(%rsp)
movaps 0xcfc(%rip),%xmm0
movaps %xmm0,0x180(%rsp)
movaps 0xcfd(%rip),%xmm0
movaps %xmm0,0x190(%rsp)
xor    %eax,%eax
call   1070 <cnfLock@plt>
lea    0x150(%rsp),%rdi
lea    0x20(%rsp),%rsi
lea    0x48(%rsp),%rdx
call   1050 <td_@plt>
xor    %eax,%eax
call   10c0 <cnfUnlock@plt>
mov    0x20(%rsp),%esi
movsd  0x48(%rsp),%xmm0
lea    0xd50(%rip),%rdi
mov    $0x1,%al
call   1090 <printf@plt>
movaps 0xcc1(%rip),%xmm0
movaps %xmm0,0x90(%rsp)
movaps %xmm0,0xa0(%rsp)
movl   $0x1,0xb0(%rsp)
xor    %eax,%eax
call   1070 <cnfLock@plt>
lea    0x90(%rsp),%rdi
lea    0x1c(%rsp),%rsi
lea    0x30(%rsp),%rdx
call   1030 <tl_@plt>
xor    %eax,%eax
call   10c0 <cnfUnlock@plt>
cmpl   $0x0,0x30(%rsp)
mov    $0x46,%eax
mov    $0x54,%edx
cmove  %eax,%edx
mov    0x1c(%rsp),%esi
lea    0xd19(%rip),%rdi
xor    %eax,%eax
call   1090 <printf@plt>
movabs $0x807060504030201,%r15
06 07 08
mov    %r15,0x3d(%rsp)
movw   $0xa09,0x45(%rsp)
movb   $0xb,0x47(%rsp)
xor    %eax,%eax
call   1070 <cnfLock@plt>
lea    0x3d(%rsp),%rdi
lea    0x18(%rsp),%rsi
lea    0x7(%rsp),%rdx
call   10e0 <tb_@plt>
xor    %eax,%eax
call   10c0 <cnfUnlock@plt>
mov    0x18(%rsp),%esi
movsbl 0x7(%rsp),%edx
mov    %r14,%rdi
xor    %eax,%eax
call   1090 <printf@plt>
movaps 0xc16(%rip),%xmm0
movaps %xmm0,0xc0(%rsp)
movaps 0xc17(%rip),%xmm0
movaps %xmm0,0xd0(%rsp)
movabs $0x14001300120011,%rbx
mov    %rbx,0xe0(%rsp)
xor    %eax,%eax
call   1070 <cnfLock@plt>
lea    0xc0(%rsp),%rdi
lea    0x14(%rsp),%rsi
lea    0xa(%rsp),%rdx
call   1110 <tw_@plt>
xor    %eax,%eax
call   10c0 <cnfUnlock@plt>
mov    0x14(%rsp),%esi
movswl 0xa(%rsp),%edx
mov    %r14,%rdi
xor    %eax,%eax
call   1090 <printf@plt>
mov    %r15,0x54(%rsp)
movl   $0xc0b0a09,0x5c(%rsp)
0c
xor    %eax,%eax
call   1070 <cnfLock@plt>
lea    0x54(%rsp),%rdi
lea    0x10(%rsp),%rsi
lea    0x6(%rsp),%rdx
call   10b0 <tub_@plt>
xor    %eax,%eax
call   10c0 <cnfUnlock@plt>
mov    0x10(%rsp),%esi
movzbl 0x6(%rsp),%edx
mov    %r14,%rdi
xor    %eax,%eax
call   1090 <printf@plt>
movaps 0xb6c(%rip),%xmm0
movaps %xmm0,0x60(%rsp)
movaps 0xb70(%rip),%xmm0
movaps %xmm0,0x70(%rsp)
mov    %rbx,0x80(%rsp)
movw   $0x15,0x88(%rsp)
xor    %eax,%eax
call   1070 <cnfLock@plt>
lea    0x60(%rsp),%rdi
lea    0xc(%rsp),%rsi
lea    0x8(%rsp),%rdx
call   10a0 <tuw_@plt>
xor    %eax,%eax
call   10c0 <cnfUnlock@plt>
mov    0xc(%rsp),%esi
movzwl 0x8(%rsp),%edx
mov    %r14,%rdi
xor    %eax,%eax
call   1090 <printf@plt>
xor    %eax,%eax
call   1070 <cnfLock@plt>
lea    0x330(%rsp),%r14
mov    %r14,%rdi
mov    $0x50,%esi
call   1060 <tc1_@plt>
xor    %eax,%eax
call   10c0 <cnfUnlock@plt>
lea    0x380(%rsp),%rbx
mov    %r14,%rdi
mov    $0x50,%esi
mov    %rbx,%rdx
call   10f0 <cnfImprt@plt>
lea    0xbc5(%rip),%rdi
mov    %rbx,%rsi
xor    %eax,%eax
call   1090 <printf@plt>
movl   $0x5,0x2c(%rsp)
xor    %eax,%eax
call   1070 <cnfLock@plt>
lea    0x1a0(%rsp),%r14
lea    0x2c(%rsp),%rsi
mov    %r14,%rdi
mov    $0x50,%edx
call   10d0 <tc2_@plt>
xor    %eax,%eax
call   10c0 <cnfUnlock@plt>
mov    %r14,%rdi
mov    $0x50,%esi
mov    %rbx,%rdx
call   10f0 <cnfImprt@plt>
lea    0xba0(%rip),%r14
mov    %r14,%rdi
xor    %esi,%esi
mov    %rbx,%rdx
xor    %eax,%eax
call   1090 <printf@plt>
lea    0x1f0(%rsp),%rdi
mov    $0x50,%esi
mov    %rbx,%rdx
call   10f0 <cnfImprt@plt>
mov    %r14,%rdi
mov    $0x1,%esi
mov    %rbx,%rdx
xor    %eax,%eax
call   1090 <printf@plt>
lea    0x240(%rsp),%rdi
mov    $0x50,%esi
mov    %rbx,%rdx
call   10f0 <cnfImprt@plt>
mov    %r14,%rdi
mov    $0x2,%esi
mov    %rbx,%rdx
xor    %eax,%eax
call   1090 <printf@plt>
lea    0x290(%rsp),%rdi
mov    $0x50,%esi
mov    %rbx,%rdx
call   10f0 <cnfImprt@plt>
mov    %r14,%rdi
mov    $0x3,%esi
mov    %rbx,%rdx
xor    %eax,%eax
call   1090 <printf@plt>
lea    0x2e0(%rsp),%rdi
mov    $0x50,%esi
mov    %rbx,%rdx
call   10f0 <cnfImprt@plt>
mov    %r14,%rdi
mov    $0x4,%esi
mov    %rbx,%rdx
xor    %eax,%eax
call   1090 <printf@plt>
mov    0x290f(%rip),%rax
mov    (%rax),%eax
add    $0x3e0,%rsp
pop    %rbx
pop    %r14
pop    %r15
ret

LLVM IR (-O0):
@.str = [41 x i8] c"--> This is a test of C calling FORTRAN\0A\00"
@.str.1 = [40 x i8] c"The sum of the first %d integers is %d\0A\00"
@.str.2 = [41 x i8] c"The mean of the first %d integers is %f\0A\00"
@.str.3 = [52 x i8] c"The sum of squares of the first %d integers is %lf\0A\00"
@.str.4 = [78 x i8] c"The statement 'The number of odd values in the first %d integers is 5' is %c\0A\00"
@.str.5 = [44 x i8] c"The character variable has been set to: %s\0A\00"
@.str.6 = [48 x i8] c"The %dth element of the character array is: %s\0A\00"
@EXIT_SUCCESS = global i32 0
define i32 @main() {
%1 = alloca i32
%2 = alloca i32
%3 = alloca i32
%4 = alloca i32
%5 = alloca [10 x i32]
%6 = alloca i32
%7 = alloca float
%8 = alloca [10 x float]
%9 = alloca i32
%10 = alloca double
%11 = alloca [10 x double]
%12 = alloca i32
%13 = alloca i32
%14 = alloca [9 x i32]
%15 = alloca i32
%16 = alloca i8
%17 = alloca [11 x i8]
%18 = alloca i32
%19 = alloca i16
%20 = alloca [20 x i16]
%21 = alloca i32
%22 = alloca i8
%23 = alloca [12 x i8]
%24 = alloca i32
%25 = alloca i16
%26 = alloca [21 x i16]
%27 = alloca [80 x i8]
%28 = alloca i32
%29 = alloca [5 x [80 x i8]]
%30 = alloca i32
%31 = alloca i32
%32 = alloca i8
%33 = alloca [81 x i8]
store i32 0, i32* %1
store i32 80, i32* %28
store i32 80, i32* %30
store i32 10, i32* %3
store i32 10, i32* %6
store i32 10, i32* %9
store i32 9, i32* %12
store i32 11, i32* %15
store i32 20, i32* %18
store i32 12, i32* %21
store i32 21, i32* %24
%34 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([41 x i8], [41 x i8]* @.str, i64 0, i64 0))
%35 = call i32 @cnfInitRTL(i32 0, i32* null)
store i32 0, i32* %2
br label %36
36: ; preds = %46, %0
%37 = load i32, i32* %2
%38 = load i32, i32* %3
%39 = icmp slt i32 %37, %38
br i1 %39, label %40, label %49
40: ; preds = %36
%41 = load i32, i32* %2
%42 = add nsw i32 %41, 1
%43 = load i32, i32* %2
%44 = sext i32 %43 to i64
%45 = getelementptr inbounds [10 x i32], [10 x i32]* %5, i64 0, i64 %44
store i32 %42, i32* %45
br label %46
46: ; preds = %40
%47 = load i32, i32* %2
%48 = add nsw i32 %47, 1
store i32 %48, i32* %2
br label %36
49: ; preds = %36
%50 = call i32 (...) @cnfLock()
%51 = getelementptr inbounds [10 x i32], [10 x i32]* %5, i64 0, i64 0
%52 = call i32 @ti_(i32* %51, i32* %3, i32* %4)
%53 = call i32 (...) @cnfUnlock()
%54 = load i32, i32* %3
%55 = load i32, i32* %4
%56 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([40 x i8], [40 x i8]* @.str.1, i64 0, i64 0), i32 %54, i32 %55)
store i32 0, i32* %2
br label %57
57: ; preds = %68, %49
%58 = load i32, i32* %2
%59 = load i32, i32* %6
%60 = icmp slt i32 %58, %59
br i1 %60, label %61, label %71
61: ; preds = %57
%62 = load i32, i32* %2
%63 = add nsw i32 %62, 1
%64 = sitofp i32 %63 to float
%65 = load i32, i32* %2
%66 = sext i32 %65 to i64
%67 = getelementptr inbounds [10 x float], [10 x float]* %8, i64 0, i64 %66
store float %64, float* %67
br label %68
68: ; preds = %61
%69 = load i32, i32* %2
%70 = add nsw i32 %69, 1
store i32 %70, i32* %2
br label %57
71: ; preds = %57
%72 = call i32 (...) @cnfLock()
%73 = getelementptr inbounds [10 x float], [10 x float]* %8, i64 0, i64 0
%74 = call i32 @tr_(float* %73, i32* %6, float* %7)
%75 = call i32 (...) @cnfUnlock()
%76 = load i32, i32* %6
%77 = load float, float* %7
%78 = fpext float %77 to double
%79 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([41 x i8], [41 x i8]* @.str.2, i64 0, i64 0), i32 %76, double %78)
store i32 0, i32* %2
br label %80
80: ; preds = %91, %71
%81 = load i32, i32* %2
%82 = load i32, i32* %9
%83 = icmp slt i32 %81, %82
br i1 %83, label %84, label %94
84: ; preds = %80
%85 = load i32, i32* %2
%86 = add nsw i32 %85, 1
%87 = sitofp i32 %86 to double
%88 = load i32, i32* %2
%89 = sext i32 %88 to i64
%90 = getelementptr inbounds [10 x double], [10 x double]* %11, i64 0, i64 %89
store double %87, double* %90
br label %91
91: ; preds = %84
%92 = load i32, i32* %2
%93 = add nsw i32 %92, 1
store i32 %93, i32* %2
br label %80
94: ; preds = %80
%95 = call i32 (...) @cnfLock()
%96 = getelementptr inbounds [10 x double], [10 x double]* %11, i64 0, i64 0
%97 = call i32 @td_(double* %96, i32* %9, double* %10)
%98 = call i32 (...) @cnfUnlock()
%99 = load i32, i32* %9
%100 = load double, double* %10
%101 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([52 x i8], [52 x i8]* @.str.3, i64 0, i64 0), i32 %99, double %100)
store i32 0, i32* %2
br label %102
102: ; preds = %113, %94
%103 = load i32, i32* %2
%104 = load i32, i32* %12
%105 = icmp slt i32 %103, %104
br i1 %105, label %106, label %116
106: ; preds = %102
%107 = load i32, i32* %2
%108 = add nsw i32 %107, 1
%109 = srem i32 %108, 2
%110 = load i32, i32* %2
%111 = sext i32 %110 to i64
%112 = getelementptr inbounds [9 x i32], [9 x i32]* %14, i64 0, i64 %111
store i32 %109, i32* %112
br label %113
113: ; preds = %106
%114 = load i32, i32* %2
%115 = add nsw i32 %114, 1
store i32 %115, i32* %2
br label %102
116: ; preds = %102
%117 = call i32 (...) @cnfLock()
%118 = getelementptr inbounds [9 x i32], [9 x i32]* %14, i64 0, i64 0
%119 = call i32 @tl_(i32* %118, i32* %12, i32* %13)
%120 = call i32 (...) @cnfUnlock()
%121 = load i32, i32* %13
%122 = icmp ne i32 %121, 0
br i1 %122, label %123, label %124
123: ; preds = %116
store i8 84, i8* %32
br label %125
124: ; preds = %116
store i8 70, i8* %32
br label %125
125: ; preds = %124, %123
%126 = load i32, i32* %12
%127 = load i8, i8* %32
%128 = sext i8 %127 to i32
%129 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([78 x i8], [78 x i8]* @.str.4, i64 0, i64 0), i32 %126, i32 %128)
store i32 0, i32* %2
br label %130
130: ; preds = %141, %125
%131 = load i32, i32* %2
%132 = load i32, i32* %15
%133 = icmp slt i32 %131, %132
br i1 %133, label %134, label %144
134: ; preds = %130
%135 = load i32, i32* %2
%136 = add nsw i32 %135, 1
%137 = trunc i32 %136 to i8
%138 = load i32, i32* %2
%139 = sext i32 %138 to i64
%140 = getelementptr inbounds [11 x i8], [11 x i8]* %17, i64 0, i64 %139
store i8 %137, i8* %140
br label %141
141: ; preds = %134
%142 = load i32, i32* %2
%143 = add nsw i32 %142, 1
store i32 %143, i32* %2
br label %130
144: ; preds = %130
%145 = call i32 (...) @cnfLock()
%146 = getelementptr inbounds [11 x i8], [11 x i8]* %17, i64 0, i64 0
%147 = call i32 @tb_(i8* %146, i32* %15, i8* %16)
%148 = call i32 (...) @cnfUnlock()
%149 = load i32, i32* %15
%150 = load i8, i8* %16
%151 = sext i8 %150 to i32
%152 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([40 x i8], [40 x i8]* @.str.1, i64 0, i64 0), i32 %149, i32 %151)
store i32 0, i32* %2
br label %153
153: ; preds = %164, %144
%154 = load i32, i32* %2
%155 = load i32, i32* %18
%156 = icmp slt i32 %154, %155
br i1 %156, label %157, label %167
157: ; preds = %153
%158 = load i32, i32* %2
%159 = add nsw i32 %158, 1
%160 = trunc i32 %159 to i16
%161 = load i32, i32* %2
%162 = sext i32 %161 to i64
%163 = getelementptr inbounds [20 x i16], [20 x i16]* %20, i64 0, i64 %162
store i16 %160, i16* %163
br label %164
164: ; preds = %157
%165 = load i32, i32* %2
%166 = add nsw i32 %165, 1
store i32 %166, i32* %2
br label %153
167: ; preds = %153
%168 = call i32 (...) @cnfLock()
%169 = getelementptr inbounds [20 x i16], [20 x i16]* %20, i64 0, i64 0
%170 = call i32 @tw_(i16* %169, i32* %18, i16* %19)
%171 = call i32 (...) @cnfUnlock()
%172 = load i32, i32* %18
%173 = load i16, i16* %19
%174 = sext i16 %173 to i32
%175 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([40 x i8], [40 x i8]* @.str.1, i64 0, i64 0), i32 %172, i32 %174)
store i32 0, i32* %2
br label %176
176: ; preds = %187, %167
%177 = load i32, i32* %2
%178 = load i32, i32* %21
%179 = icmp slt i32 %177, %178
br i1 %179, label %180, label %190
180: ; preds = %176
%181 = load i32, i32* %2
%182 = add nsw i32 %181, 1
%183 = trunc i32 %182 to i8
%184 = load i32, i32* %2
%185 = sext i32 %184 to i64
%186 = getelementptr inbounds [12 x i8], [12 x i8]* %23, i64 0, i64 %185
store i8 %183, i8* %186
br label %187
187: ; preds = %180
%188 = load i32, i32* %2
%189 = add nsw i32 %188, 1
store i32 %189, i32* %2
br label %176
190: ; preds = %176
%191 = call i32 (...) @cnfLock()
%192 = getelementptr inbounds [12 x i8], [12 x i8]* %23, i64 0, i64 0
%193 = call i32 @tub_(i8* %192, i32* %21, i8* %22)
%194 = call i32 (...) @cnfUnlock()
%195 = load i32, i32* %21
%196 = load i8, i8* %22
%197 = zext i8 %196 to i32
%198 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([40 x i8], [40 x i8]* @.str.1, i64 0, i64 0), i32 %195, i32 %197)
store i32 0, i32* %2
br label %199
199: ; preds = %210, %190
%200 = load i32, i32* %2
%201 = load i32, i32* %24
%202 = icmp slt i32 %200, %201
br i1 %202, label %203, label %213
203: ; preds = %199
%204 = load i32, i32* %2
%205 = add nsw i32 %204, 1
%206 = trunc i32 %205 to i16
%207 = load i32, i32* %2
%208 = sext i32 %207 to i64
%209 = getelementptr inbounds [21 x i16], [21 x i16]* %26, i64 0, i64 %208
store i16 %206, i16* %209
br label %210
210: ; preds = %203
%211 = load i32, i32* %2
%212 = add nsw i32 %211, 1
store i32 %212, i32* %2
br label %199
213: ; preds = %199
%214 = call i32 (...) @cnfLock()
%215 = getelementptr inbounds [21 x i16], [21 x i16]* %26, i64 0, i64 0
%216 = call i32 @tuw_(i16* %215, i32* %24, i16* %25)
%217 = call i32 (...) @cnfUnlock()
%218 = load i32, i32* %24
%219 = load i16, i16* %25
%220 = zext i16 %219 to i32
%221 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([40 x i8], [40 x i8]* @.str.1, i64 0, i64 0), i32 %218, i32 %220)
%222 = call i32 (...) @cnfLock()
%223 = getelementptr inbounds [80 x i8], [80 x i8]* %27, i64 0, i64 0
%224 = call i32 @tc1_(i8* %223, i32 80)
%225 = call i32 (...) @cnfUnlock()
%226 = getelementptr inbounds [80 x i8], [80 x i8]* %27, i64 0, i64 0
%227 = getelementptr inbounds [81 x i8], [81 x i8]* %33, i64 0, i64 0
%228 = call i32 @cnfImprt(i8* %226, i32 80, i8* %227)
%229 = getelementptr inbounds [81 x i8], [81 x i8]* %33, i64 0, i64 0
%230 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([44 x i8], [44 x i8]* @.str.5, i64 0, i64 0), i8* %229)
store i32 5, i32* %31
%231 = call i32 (...) @cnfLock()
%232 = getelementptr inbounds [5 x [80 x i8]], [5 x [80 x i8]]* %29, i64 0, i64 0
%233 = bitcast [80 x i8]* %232 to i8*
%234 = call i32 @tc2_(i8* %233, i32* %31, i32 80)
%235 = call i32 (...) @cnfUnlock()
store i32 0, i32* %2
br label %236
236: ; preds = %249, %213
%237 = load i32, i32* %2
%238 = icmp slt i32 %237, 5
br i1 %238, label %239, label %252
239: ; preds = %236
%240 = load i32, i32* %2
%241 = sext i32 %240 to i64
%242 = getelementptr inbounds [5 x [80 x i8]], [5 x [80 x i8]]* %29, i64 0, i64 %241
%243 = getelementptr inbounds [80 x i8], [80 x i8]* %242, i64 0, i64 0
%244 = getelementptr inbounds [81 x i8], [81 x i8]* %33, i64 0, i64 0
%245 = call i32 @cnfImprt(i8* %243, i32 80, i8* %244)
%246 = load i32, i32* %2
%247 = getelementptr inbounds [81 x i8], [81 x i8]* %33, i64 0, i64 0
%248 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([48 x i8], [48 x i8]* @.str.6, i64 0, i64 0), i32 %246, i8* %247)
br label %249
249: ; preds = %239
%250 = load i32, i32* %2
%251 = add nsw i32 %250, 1
store i32 %251, i32* %2
br label %236
252: ; preds = %236
%253 = load i32, i32* @EXIT_SUCCESS
ret i32 %253
}

LLVM IR (-O2):
@.str.1 = [40 x i8] c"The sum of the first %d integers is %d\0A\00"
@.str.2 = [41 x i8] c"The mean of the first %d integers is %f\0A\00"
@.str.3 = [52 x i8] c"The sum of squares of the first %d integers is %lf\0A\00"
@.str.4 = [78 x i8] c"The statement 'The number of odd values in the first %d integers is 5' is %c\0A\00"
@.str.5 = [44 x i8] c"The character variable has been set to: %s\0A\00"
@.str.6 = [48 x i8] c"The %dth element of the character array is: %s\0A\00"
@EXIT_SUCCESS = global i32 0
@str = [40 x i8] c"--> This is a test of C calling FORTRAN\00"
define i32 @main() {
%1 = alloca i32
%2 = alloca i32
%3 = alloca [10 x i32]
%4 = alloca i32
%5 = alloca float
%6 = alloca [10 x float]
%7 = alloca i32
%8 = alloca double
%9 = alloca [10 x double]
%10 = alloca i32
%11 = alloca i32
%12 = alloca [9 x i32]
%13 = alloca i32
%14 = alloca i8
%15 = alloca [11 x i8]
%16 = alloca i32
%17 = alloca i16
%18 = alloca [20 x i16]
%19 = alloca i32
%20 = alloca i8
%21 = alloca [12 x i8]
%22 = alloca i32
%23 = alloca i16
%24 = alloca [21 x i16]
%25 = alloca [80 x i8]
%26 = alloca [5 x [80 x i8]]
%27 = alloca i32
%28 = alloca [81 x i8]
%29 = bitcast i32* %1 to i8*
%30 = bitcast i32* %2 to i8*
%31 = bitcast [10 x i32]* %3 to i8*
%32 = bitcast i32* %4 to i8*
%33 = bitcast float* %5 to i8*
%34 = bitcast [10 x float]* %6 to i8*
%35 = bitcast i32* %7 to i8*
%36 = bitcast double* %8 to i8*
%37 = bitcast [10 x double]* %9 to i8*
%38 = bitcast i32* %10 to i8*
%39 = bitcast i32* %11 to i8*
%40 = bitcast [9 x i32]* %12 to i8*
%41 = bitcast i32* %13 to i8*
%42 = getelementptr inbounds [11 x i8], [11 x i8]* %15, i64 0, i64 0
%43 = bitcast i32* %16 to i8*
%44 = bitcast i16* %17 to i8*
%45 = bitcast [20 x i16]* %18 to i8*
%46 = bitcast i32* %19 to i8*
%47 = getelementptr inbounds [12 x i8], [12 x i8]* %21, i64 0, i64 0
%48 = bitcast i32* %22 to i8*
%49 = bitcast i16* %23 to i8*
%50 = bitcast [21 x i16]* %24 to i8*
%51 = getelementptr inbounds [80 x i8], [80 x i8]* %25, i64 0, i64 0
%52 = getelementptr inbounds [5 x [80 x i8]], [5 x [80 x i8]]* %26, i64 0, i64 0, i64 0
%53 = bitcast i32* %27 to i8*
%54 = getelementptr inbounds [81 x i8], [81 x i8]* %28, i64 0, i64 0
store i32 10, i32* %1
store i32 10, i32* %4
store i32 10, i32* %7
store i32 9, i32* %10
store i32 11, i32* %13
store i32 20, i32* %16
store i32 12, i32* %19
store i32 21, i32* %22
%55 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([40 x i8], [40 x i8]* @str, i64 0, i64 0))
%56 = tail call i32 @cnfInitRTL(i32 0, i32* null)
%57 = getelementptr inbounds [10 x i32], [10 x i32]* %3, i64 0, i64 0
store i32 1, i32* %57
%58 = getelementptr inbounds [10 x i32], [10 x i32]* %3, i64 0, i64 1
store i32 2, i32* %58
%59 = getelementptr inbounds [10 x i32], [10 x i32]* %3, i64 0, i64 2
store i32 3, i32* %59
%60 = getelementptr inbounds [10 x i32], [10 x i32]* %3, i64 0, i64 3
store i32 4, i32* %60
%61 = getelementptr inbounds [10 x i32], [10 x i32]* %3, i64 0, i64 4
store i32 5, i32* %61
%62 = getelementptr inbounds [10 x i32], [10 x i32]* %3, i64 0, i64 5
store i32 6, i32* %62
%63 = getelementptr inbounds [10 x i32], [10 x i32]* %3, i64 0, i64 6
store i32 7, i32* %63
%64 = getelementptr inbounds [10 x i32], [10 x i32]* %3, i64 0, i64 7
store i32 8, i32* %64
%65 = getelementptr inbounds [10 x i32], [10 x i32]* %3, i64 0, i64 8
store i32 9, i32* %65
%66 = getelementptr inbounds [10 x i32], [10 x i32]* %3, i64 0, i64 9
store i32 10, i32* %66
%67 = tail call i32 (...) @cnfLock()
%68 = getelementptr inbounds [10 x i32], [10 x i32]* %3, i64 0, i64 0
%69 = call i32 @ti_(i32* %68, i32* %1, i32* %2)
%70 = call i32 (...) @cnfUnlock()
%71 = load i32, i32* %1
%72 = load i32, i32* %2
%73 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([40 x i8], [40 x i8]* @.str.1, i64 0, i64 0), i32 %71, i32 %72)
%74 = getelementptr inbounds [10 x float], [10 x float]* %6, i64 0, i64 0
store float 1.000000e+00, float* %74
%75 = getelementptr inbounds [10 x float], [10 x float]* %6, i64 0, i64 1
store float 2.000000e+00, float* %75
%76 = getelementptr inbounds [10 x float], [10 x float]* %6, i64 0, i64 2
store float 3.000000e+00, float* %76
%77 = getelementptr inbounds [10 x float], [10 x float]* %6, i64 0, i64 3
store float 4.000000e+00, float* %77
%78 = getelementptr inbounds [10 x float], [10 x float]* %6, i64 0, i64 4
store float 5.000000e+00, float* %78
%79 = getelementptr inbounds [10 x float], [10 x float]* %6, i64 0, i64 5
store float 6.000000e+00, float* %79
%80 = getelementptr inbounds [10 x float], [10 x float]* %6, i64 0, i64 6
store float 7.000000e+00, float* %80
%81 = getelementptr inbounds [10 x float], [10 x float]* %6, i64 0, i64 7
store float 8.000000e+00, float* %81
%82 = getelementptr inbounds [10 x float], [10 x float]* %6, i64 0, i64 8
store float 9.000000e+00, float* %82
%83 = getelementptr inbounds [10 x float], [10 x float]* %6, i64 0, i64 9
store float 1.000000e+01, float* %83
%84 = call i32 (...) @cnfLock()
%85 = getelementptr inbounds [10 x float], [10 x float]* %6, i64 0, i64 0
%86 = call i32 @tr_(float* %85, i32* %4, float* %5)
%87 = call i32 (...) @cnfUnlock()
%88 = load i32, i32* %4
%89 = load float, float* %5
%90 = fpext float %89 to double
%91 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([41 x i8], [41 x i8]* @.str.2, i64 0, i64 0), i32 %88, double %90)
%92 = bitcast [10 x double]* %9 to <2 x double>*
store <2 x double> <double 1.000000e+00, double 2.000000e+00>, <2 x double>* %92
%93 = getelementptr inbounds [10 x double], [10 x double]* %9, i64 0, i64 2
%94 = bitcast double* %93 to <2 x double>*
store <2 x double> <double 3.000000e+00, double 4.000000e+00>, <2 x double>* %94
%95 = getelementptr inbounds [10 x double], [10 x double]* %9, i64 0, i64 4
%96 = bitcast double* %95 to <2 x double>*
store <2 x double> <double 5.000000e+00, double 6.000000e+00>, <2 x double>* %96
%97 = getelementptr inbounds [10 x double], [10 x double]* %9, i64 0, i64 6
%98 = bitcast double* %97 to <2 x double>*
store <2 x double> <double 7.000000e+00, double 8.000000e+00>, <2 x double>* %98
%99 = getelementptr inbounds [10 x double], [10 x double]* %9, i64 0, i64 8
%100 = bitcast double* %99 to <2 x double>*
store <2 x double> <double 9.000000e+00, double 1.000000e+01>, <2 x double>* %100
%101 = call i32 (...) @cnfLock()
%102 = getelementptr inbounds [10 x double], [10 x double]* %9, i64 0, i64 0
%103 = call i32 @td_(double* %102, i32* %7, double* %8)
%104 = call i32 (...) @cnfUnlock()
%105 = load i32, i32* %7
%106 = load double, double* %8
%107 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([52 x i8], [52 x i8]* @.str.3, i64 0, i64 0), i32 %105, double %106)
%108 = getelementptr inbounds [9 x i32], [9 x i32]* %12, i64 0, i64 0
store i32 1, i32* %108
%109 = getelementptr inbounds [9 x i32], [9 x i32]* %12, i64 0, i64 1
store i32 0, i32* %109
%110 = getelementptr inbounds [9 x i32], [9 x i32]* %12, i64 0, i64 2
store i32 1, i32* %110
%111 = getelementptr inbounds [9 x i32], [9 x i32]* %12, i64 0, i64 3
store i32 0, i32* %111
%112 = getelementptr inbounds [9 x i32], [9 x i32]* %12, i64 0, i64 4
store i32 1, i32* %112
%113 = getelementptr inbounds [9 x i32], [9 x i32]* %12, i64 0, i64 5
store i32 0, i32* %113
%114 = getelementptr inbounds [9 x i32], [9 x i32]* %12, i64 0, i64 6
store i32 1, i32* %114
%115 = getelementptr inbounds [9 x i32], [9 x i32]* %12, i64 0, i64 7
store i32 0, i32* %115
%116 = getelementptr inbounds [9 x i32], [9 x i32]* %12, i64 0, i64 8
store i32 1, i32* %116
%117 = call i32 (...) @cnfLock()
%118 = getelementptr inbounds [9 x i32], [9 x i32]* %12, i64 0, i64 0
%119 = call i32 @tl_(i32* %118, i32* %10, i32* %11)
%120 = call i32 (...) @cnfUnlock()
%121 = load i32, i32* %11
%122 = icmp eq i32 %121, 0
%123 = select i1 %122, i32 70, i32 84
%124 = load i32, i32* %10
%125 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([78 x i8], [78 x i8]* @.str.4, i64 0, i64 0), i32 %124, i32 %123)
%126 = getelementptr inbounds [11 x i8], [11 x i8]* %15, i64 0, i64 0
store i8 1, i8* %126
%127 = getelementptr inbounds [11 x i8], [11 x i8]* %15, i64 0, i64 1
store i8 2, i8* %127
%128 = getelementptr inbounds [11 x i8], [11 x i8]* %15, i64 0, i64 2
store i8 3, i8* %128
%129 = getelementptr inbounds [11 x i8], [11 x i8]* %15, i64 0, i64 3
store i8 4, i8* %129
%130 = getelementptr inbounds [11 x i8], [11 x i8]* %15, i64 0, i64 4
store i8 5, i8* %130
%131 = getelementptr inbounds [11 x i8], [11 x i8]* %15, i64 0, i64 5
store i8 6, i8* %131
%132 = getelementptr inbounds [11 x i8], [11 x i8]* %15, i64 0, i64 6
store i8 7, i8* %132
%133 = getelementptr inbounds [11 x i8], [11 x i8]* %15, i64 0, i64 7
store i8 8, i8* %133
%134 = getelementptr inbounds [11 x i8], [11 x i8]* %15, i64 0, i64 8
store i8 9, i8* %134
%135 = getelementptr inbounds [11 x i8], [11 x i8]* %15, i64 0, i64 9
store i8 10, i8* %135
%136 = getelementptr inbounds [11 x i8], [11 x i8]* %15, i64 0, i64 10
store i8 11, i8* %136
%137 = call i32 (...) @cnfLock()
%138 = call i32 @tb_(i8* %42, i32* %13, i8* %14)
%139 = call i32 (...) @cnfUnlock()
%140 = load i32, i32* %13
%141 = load i8, i8* %14
%142 = sext i8 %141 to i32
%143 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([40 x i8], [40 x i8]* @.str.1, i64 0, i64 0), i32 %140, i32 %142)
%144 = bitcast [20 x i16]* %18 to <8 x i16>*
store <8 x i16> <i16 1, i16 2, i16 3, i16 4, i16 5, i16 6, i16 7, i16 8>, <8 x i16>* %144
%145 = getelementptr inbounds [20 x i16], [20 x i16]* %18, i64 0, i64 8
%146 = bitcast i16* %145 to <8 x i16>*
store <8 x i16> <i16 9, i16 10, i16 11, i16 12, i16 13, i16 14, i16 15, i16 16>, <8 x i16>* %146
%147 = getelementptr inbounds [20 x i16], [20 x i16]* %18, i64 0, i64 16
store i16 17, i16* %147
%148 = getelementptr inbounds [20 x i16], [20 x i16]* %18, i64 0, i64 17
store i16 18, i16* %148
%149 = getelementptr inbounds [20 x i16], [20 x i16]* %18, i64 0, i64 18
store i16 19, i16* %149
%150 = getelementptr inbounds [20 x i16], [20 x i16]* %18, i64 0, i64 19
store i16 20, i16* %150
%151 = call i32 (...) @cnfLock()
%152 = getelementptr inbounds [20 x i16], [20 x i16]* %18, i64 0, i64 0
%153 = call i32 @tw_(i16* %152, i32* %16, i16* %17)
%154 = call i32 (...) @cnfUnlock()
%155 = load i32, i32* %16
%156 = load i16, i16* %17
%157 = sext i16 %156 to i32
%158 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([40 x i8], [40 x i8]* @.str.1, i64 0, i64 0), i32 %155, i32 %157)
%159 = getelementptr inbounds [12 x i8], [12 x i8]* %21, i64 0, i64 0
store i8 1, i8* %159
%160 = getelementptr inbounds [12 x i8], [12 x i8]* %21, i64 0, i64 1
store i8 2, i8* %160
%161 = getelementptr inbounds [12 x i8], [12 x i8]* %21, i64 0, i64 2
store i8 3, i8* %161
%162 = getelementptr inbounds [12 x i8], [12 x i8]* %21, i64 0, i64 3
store i8 4, i8* %162
%163 = getelementptr inbounds [12 x i8], [12 x i8]* %21, i64 0, i64 4
store i8 5, i8* %163
%164 = getelementptr inbounds [12 x i8], [12 x i8]* %21, i64 0, i64 5
store i8 6, i8* %164
%165 = getelementptr inbounds [12 x i8], [12 x i8]* %21, i64 0, i64 6
store i8 7, i8* %165
%166 = getelementptr inbounds [12 x i8], [12 x i8]* %21, i64 0, i64 7
store i8 8, i8* %166
%167 = getelementptr inbounds [12 x i8], [12 x i8]* %21, i64 0, i64 8
store i8 9, i8* %167
%168 = getelementptr inbounds [12 x i8], [12 x i8]* %21, i64 0, i64 9
store i8 10, i8* %168
%169 = getelementptr inbounds [12 x i8], [12 x i8]* %21, i64 0, i64 10
store i8 11, i8* %169
%170 = getelementptr inbounds [12 x i8], [12 x i8]* %21, i64 0, i64 11
store i8 12, i8* %170
%171 = call i32 (...) @cnfLock()
%172 = call i32 @tub_(i8* %47, i32* %19, i8* %20)
%173 = call i32 (...) @cnfUnlock()
%174 = load i32, i32* %19
%175 = load i8, i8* %20
%176 = zext i8 %175 to i32
%177 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([40 x i8], [40 x i8]* @.str.1, i64 0, i64 0), i32 %174, i32 %176)
%178 = bitcast [21 x i16]* %24 to <8 x i16>*
store <8 x i16> <i16 1, i16 2, i16 3, i16 4, i16 5, i16 6, i16 7, i16 8>, <8 x i16>* %178
%179 = getelementptr inbounds [21 x i16], [21 x i16]* %24, i64 0, i64 8
%180 = bitcast i16* %179 to <8 x i16>*
store <8 x i16> <i16 9, i16 10, i16 11, i16 12, i16 13, i16 14, i16 15, i16 16>, <8 x i16>* %180
%181 = getelementptr inbounds [21 x i16], [21 x i16]* %24, i64 0, i64 16
store i16 17, i16* %181
%182 = getelementptr inbounds [21 x i16], [21 x i16]* %24, i64 0, i64 17
store i16 18, i16* %182
%183 = getelementptr inbounds [21 x i16], [21 x i16]* %24, i64 0, i64 18
store i16 19, i16* %183
%184 = getelementptr inbounds [21 x i16], [21 x i16]* %24, i64 0, i64 19
store i16 20, i16* %184
%185 = getelementptr inbounds [21 x i16], [21 x i16]* %24, i64 0, i64 20
store i16 21, i16* %185
%186 = call i32 (...) @cnfLock()
%187 = getelementptr inbounds [21 x i16], [21 x i16]* %24, i64 0, i64 0
%188 = call i32 @tuw_(i16* %187, i32* %22, i16* %23)
%189 = call i32 (...) @cnfUnlock()
%190 = load i32, i32* %22
%191 = load i16, i16* %23
%192 = zext i16 %191 to i32
%193 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([40 x i8], [40 x i8]* @.str.1, i64 0, i64 0), i32 %190, i32 %192)
%194 = call i32 (...) @cnfLock()
%195 = call i32 @tc1_(i8* %51, i32 80)
%196 = call i32 (...) @cnfUnlock()
%197 = call i32 @cnfImprt(i8* %51, i32 80, i8* %54)
%198 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([44 x i8], [44 x i8]* @.str.5, i64 0, i64 0), i8* %54)
store i32 5, i32* %27
%199 = call i32 (...) @cnfLock()
%200 = call i32 @tc2_(i8* %52, i32* %27, i32 80)
%201 = call i32 (...) @cnfUnlock()
%202 = call i32 @cnfImprt(i8* %52, i32 80, i8* %54)
%203 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([48 x i8], [48 x i8]* @.str.6, i64 0, i64 0), i32 0, i8* %54)
%204 = getelementptr inbounds [5 x [80 x i8]], [5 x [80 x i8]]* %26, i64 0, i64 1, i64 0
%205 = call i32 @cnfImprt(i8* %204, i32 80, i8* %54)
%206 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([48 x i8], [48 x i8]* @.str.6, i64 0, i64 0), i32 1, i8* %54)
%207 = getelementptr inbounds [5 x [80 x i8]], [5 x [80 x i8]]* %26, i64 0, i64 2, i64 0
%208 = call i32 @cnfImprt(i8* %207, i32 80, i8* %54)
%209 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([48 x i8], [48 x i8]* @.str.6, i64 0, i64 0), i32 2, i8* %54)
%210 = getelementptr inbounds [5 x [80 x i8]], [5 x [80 x i8]]* %26, i64 0, i64 3, i64 0
%211 = call i32 @cnfImprt(i8* %210, i32 80, i8* %54)
%212 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([48 x i8], [48 x i8]* @.str.6, i64 0, i64 0), i32 3, i8* %54)
%213 = getelementptr inbounds [5 x [80 x i8]], [5 x [80 x i8]]* %26, i64 0, i64 4, i64 0
%214 = call i32 @cnfImprt(i8* %213, i32 80, i8* %54)
%215 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([48 x i8], [48 x i8]* @.str.6, i64 0, i64 0), i32 4, i8* %54)
%216 = load i32, i32* @EXIT_SUCCESS
ret i32 %216
}