#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 atoi(char *);
int /*<<< orphan*/ exit(int);
int /*<<< orphan*/ fclose(int /*<<< orphan*/ *);
int /*<<< orphan*/ *fgets(char *, int, int /*<<< orphan*/);
int /*<<< orphan*/ *fopen(char *, char *);
int /*<<< orphan*/ fprintf(int /*<<< orphan*/, char *, char *, ...);
void *malloc(int);
int /*<<< orphan*/ printf(char *, ...);
scalar_t__ readpoints(int /*<<< orphan*/ *, double **, double **, int, int);
int sscanf(char *, char *, double *, double *);
int /*<<< orphan*/ stderr;
int /*<<< orphan*/ stdin;
main(int argc, char *argv[]) {
  int i;
  int xsize, ysize;
  int ix, iy;
  double xin, yin;
  double xout, yout;
  double dx, dy;
  double **gridx, **gridy;
  char line[1000];
  FILE *infp;
  if (argc < 4) {
    fprintf(stderr, "Usage: %s xsize ysize gridfile\n", argv[0]);
    exit(1);
  }
  xsize = atoi(argv[1]);
  if (xsize < 1) {
    fprintf(stderr, "%s: xsize botched\n", argv[0]);
    exit(2);
  }
  ysize = atoi(argv[2]);
  if (ysize < 1) {
    fprintf(stderr, "%s: ysize botched\n", argv[0]);
    exit(3);
  }
  infp = fopen(argv[3], "r");
  if (infp == NULL) {
    fprintf(stderr, "%s: unable to open file `%s'\n", argv[0], argv[3]);
    exit(4);
  }
  gridx = malloc((xsize + 1) * sizeof(double *));
  for (i = 0; i <= xsize; i++)
    gridx[i] = malloc((ysize + 1) * sizeof(double));
  gridy = malloc((xsize + 1) * sizeof(double *));
  for (i = 0; i <= xsize; i++)
    gridy[i] = malloc((ysize + 1) * sizeof(double));
  if (readpoints(infp, gridx, gridy, xsize, ysize) != 0) {
    fprintf(stderr, "%s: input file `%s' ended early\n", argv[0], argv[3]);
    exit(5);
  }
  fclose(infp);
  while (fgets(line, 1000, stdin) != NULL) {
    if (sscanf(line, "%lf %lf", &xin, &yin) != 2) {
      printf("%s", line);
      continue;
    }
    if ((xin < 0.0) || (xin >= xsize) || (yin < 0.0) || (yin >= ysize)) {
      printf("%g %g\n", xin, yin);
    } else {
      ix = xin;
      dx = xin - ix;
      iy = yin;
      dy = yin - iy;
      xout = (1 - dx) * (1 - dy) * gridx[ix][iy] +
             dx * (1 - dy) * gridx[ix + 1][iy] +
             (1 - dx) * dy * gridx[ix][iy + 1] +
             dx * dy * gridx[ix + 1][iy + 1];
      yout = (1 - dx) * (1 - dy) * gridy[ix][iy] +
             dx * (1 - dy) * gridy[ix + 1][iy] +
             (1 - dx) * dy * gridy[ix][iy + 1] +
             dx * dy * gridy[ix + 1][iy + 1];
      printf("%g %g\n", xout, yout);
    }
  }
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x460,%rsp
movl   $0x0,-0x4(%rbp)
mov    %edi,-0x8(%rbp)
mov    %rsi,-0x10(%rbp)
cmpl   $0x4,-0x8(%rbp)
jge    11eb <main+0x4b>
mov    0x2e0e(%rip),%rax
mov    (%rax),%edi
mov    -0x10(%rbp),%rax
mov    (%rax),%rdx
lea    0xe2e(%rip),%rsi
mov    $0x0,%al
call   1060 <fprintf@plt>
mov    $0x1,%edi
call   10c0 <exit@plt>
mov    -0x10(%rbp),%rax
mov    0x8(%rax),%rdi
call   10b0 <atoi@plt>
mov    %eax,-0x18(%rbp)
cmpl   $0x1,-0x18(%rbp)
jge    122d <main+0x8d>
mov    0x2dcc(%rip),%rax
mov    (%rax),%edi
mov    -0x10(%rbp),%rax
mov    (%rax),%rdx
lea    0xe0c(%rip),%rsi
mov    $0x0,%al
call   1060 <fprintf@plt>
mov    $0x2,%edi
call   10c0 <exit@plt>
mov    -0x10(%rbp),%rax
mov    0x10(%rax),%rdi
call   10b0 <atoi@plt>
mov    %eax,-0x1c(%rbp)
cmpl   $0x1,-0x1c(%rbp)
jge    126f <main+0xcf>
mov    0x2d8a(%rip),%rax
mov    (%rax),%edi
mov    -0x10(%rbp),%rax
mov    (%rax),%rdx
lea    0xddd(%rip),%rsi
mov    $0x0,%al
call   1060 <fprintf@plt>
mov    $0x3,%edi
call   10c0 <exit@plt>
mov    -0x10(%rbp),%rax
mov    0x18(%rax),%rdi
lea    0xdd0(%rip),%rsi
call   1090 <fopen@plt>
mov    %rax,-0x458(%rbp)
cmpq   $0x0,-0x458(%rbp)
jne    12c8 <main+0x128>
mov    0x2d39(%rip),%rax
mov    (%rax),%edi
mov    -0x10(%rbp),%rax
mov    (%rax),%rdx
mov    -0x10(%rbp),%rax
mov    0x18(%rax),%rcx
lea    0xd99(%rip),%rsi
mov    $0x0,%al
call   1060 <fprintf@plt>
mov    $0x4,%edi
call   10c0 <exit@plt>
mov    -0x18(%rbp),%eax
add    $0x1,%eax
cltq
shl    $0x3,%rax
mov    %eax,%edi
call   1070 <malloc@plt>
mov    %rax,-0x60(%rbp)
movl   $0x0,-0x14(%rbp)
mov    -0x14(%rbp),%eax
cmp    -0x18(%rbp),%eax
jg     1322 <main+0x182>
mov    -0x1c(%rbp),%eax
add    $0x1,%eax
cltq
shl    $0x3,%rax
mov    %eax,%edi
call   1070 <malloc@plt>
mov    %rax,%rdx
mov    -0x60(%rbp),%rax
movslq -0x14(%rbp),%rcx
mov    %rdx,(%rax,%rcx,8)
mov    -0x14(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x14(%rbp)
jmp    12e6 <main+0x146>
mov    -0x18(%rbp),%eax
add    $0x1,%eax
cltq
shl    $0x3,%rax
mov    %eax,%edi
call   1070 <malloc@plt>
mov    %rax,-0x68(%rbp)
movl   $0x0,-0x14(%rbp)
mov    -0x14(%rbp),%eax
cmp    -0x18(%rbp),%eax
jg     137c <main+0x1dc>
mov    -0x1c(%rbp),%eax
add    $0x1,%eax
cltq
shl    $0x3,%rax
mov    %eax,%edi
call   1070 <malloc@plt>
mov    %rax,%rdx
mov    -0x68(%rbp),%rax
movslq -0x14(%rbp),%rcx
mov    %rdx,(%rax,%rcx,8)
mov    -0x14(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x14(%rbp)
jmp    1340 <main+0x1a0>
mov    -0x458(%rbp),%rdi
mov    -0x60(%rbp),%rsi
mov    -0x68(%rbp),%rdx
mov    -0x18(%rbp),%ecx
mov    -0x1c(%rbp),%r8d
call   10a0 <readpoints@plt>
cmp    $0x0,%rax
je     13d1 <main+0x231>
mov    0x2c30(%rip),%rax
mov    (%rax),%edi
mov    -0x10(%rbp),%rax
mov    (%rax),%rdx
mov    -0x10(%rbp),%rax
mov    0x18(%rax),%rcx
lea    0xcae(%rip),%rsi
mov    $0x0,%al
call   1060 <fprintf@plt>
mov    $0x5,%edi
call   10c0 <exit@plt>
mov    -0x458(%rbp),%rdi
call   1030 <fclose@plt>
lea    -0x450(%rbp),%rdi
mov    0x2bfd(%rip),%rax
mov    (%rax),%edx
mov    $0x3e8,%esi
call   1050 <fgets@plt>
cmp    $0x0,%rax
je     169d <main+0x4fd>
lea    -0x450(%rbp),%rdi
lea    0xc80(%rip),%rsi
lea    -0x30(%rbp),%rdx
lea    -0x38(%rbp),%rcx
call   1080 <sscanf@plt>
cmp    $0x2,%eax
je     143f <main+0x29f>
lea    -0x450(%rbp),%rsi
lea    0xc64(%rip),%rdi
mov    $0x0,%al
call   1040 <printf@plt>
jmp    13dd <main+0x23d>
xorps  %xmm0,%xmm0
ucomisd -0x30(%rbp),%xmm0
ja     1483 <main+0x2e3>
movsd  -0x30(%rbp),%xmm0
cvtsi2sdl -0x18(%rbp),%xmm1
ucomisd %xmm1,%xmm0
jae    1483 <main+0x2e3>
xorps  %xmm0,%xmm0
ucomisd -0x38(%rbp),%xmm0
ja     1483 <main+0x2e3>
movsd  -0x38(%rbp),%xmm0
cvtsi2sdl -0x1c(%rbp),%xmm1
ucomisd %xmm1,%xmm0
jb     14a0 <main+0x300>
movsd  -0x30(%rbp),%xmm0
movsd  -0x38(%rbp),%xmm1
lea    0xc06(%rip),%rdi
mov    $0x2,%al
call   1040 <printf@plt>
jmp    1698 <main+0x4f8>
cvttsd2si -0x30(%rbp),%eax
mov    %eax,-0x20(%rbp)
movsd  -0x30(%rbp),%xmm0
cvtsi2sdl -0x20(%rbp),%xmm1
subsd  %xmm1,%xmm0
movsd  %xmm0,-0x50(%rbp)
cvttsd2si -0x38(%rbp),%eax
mov    %eax,-0x24(%rbp)
movsd  -0x38(%rbp),%xmm0
cvtsi2sdl -0x24(%rbp),%xmm1
subsd  %xmm1,%xmm0
movsd  %xmm0,-0x58(%rbp)
movsd  0xb22(%rip),%xmm0
subsd  -0x50(%rbp),%xmm0
movsd  0xb15(%rip),%xmm1
subsd  -0x58(%rbp),%xmm1
mulsd  %xmm1,%xmm0
mov    -0x60(%rbp),%rax
movslq -0x20(%rbp),%rcx
mov    (%rax,%rcx,8),%rax
movslq -0x24(%rbp),%rcx
movsd  (%rax,%rcx,8),%xmm2
movsd  -0x50(%rbp),%xmm1
movsd  0xaea(%rip),%xmm3
subsd  -0x58(%rbp),%xmm3
mulsd  %xmm3,%xmm1
mov    -0x60(%rbp),%rax
mov    -0x20(%rbp),%ecx
add    $0x1,%ecx
movslq %ecx,%rcx
mov    (%rax,%rcx,8),%rax
movslq -0x24(%rbp),%rcx
mulsd  (%rax,%rcx,8),%xmm1
mulsd  %xmm2,%xmm0
addsd  %xmm1,%xmm0
movsd  0xab7(%rip),%xmm1
subsd  -0x50(%rbp),%xmm1
mulsd  -0x58(%rbp),%xmm1
mov    -0x60(%rbp),%rax
movslq -0x20(%rbp),%rcx
mov    (%rax,%rcx,8),%rax
mov    -0x24(%rbp),%ecx
add    $0x1,%ecx
movslq %ecx,%rcx
movsd  (%rax,%rcx,8),%xmm2
mulsd  %xmm2,%xmm1
addsd  %xmm0,%xmm1
movsd  -0x50(%rbp),%xmm0
mulsd  -0x58(%rbp),%xmm0
mov    -0x60(%rbp),%rax
mov    -0x20(%rbp),%ecx
add    $0x1,%ecx
movslq %ecx,%rcx
mov    (%rax,%rcx,8),%rax
mov    -0x24(%rbp),%ecx
add    $0x1,%ecx
movslq %ecx,%rcx
movsd  (%rax,%rcx,8),%xmm2
mulsd  %xmm2,%xmm0
addsd  %xmm1,%xmm0
movsd  %xmm0,-0x40(%rbp)
movsd  0xa4d(%rip),%xmm0
subsd  -0x50(%rbp),%xmm0
movsd  0xa40(%rip),%xmm1
subsd  -0x58(%rbp),%xmm1
mulsd  %xmm1,%xmm0
mov    -0x68(%rbp),%rax
movslq -0x20(%rbp),%rcx
mov    (%rax,%rcx,8),%rax
movslq -0x24(%rbp),%rcx
movsd  (%rax,%rcx,8),%xmm2
movsd  -0x50(%rbp),%xmm1
movsd  0xa15(%rip),%xmm3
subsd  -0x58(%rbp),%xmm3
mulsd  %xmm3,%xmm1
mov    -0x68(%rbp),%rax
mov    -0x20(%rbp),%ecx
add    $0x1,%ecx
movslq %ecx,%rcx
mov    (%rax,%rcx,8),%rax
movslq -0x24(%rbp),%rcx
mulsd  (%rax,%rcx,8),%xmm1
mulsd  %xmm2,%xmm0
addsd  %xmm1,%xmm0
movsd  0x9e2(%rip),%xmm1
subsd  -0x50(%rbp),%xmm1
mulsd  -0x58(%rbp),%xmm1
mov    -0x68(%rbp),%rax
movslq -0x20(%rbp),%rcx
mov    (%rax,%rcx,8),%rax
mov    -0x24(%rbp),%ecx
add    $0x1,%ecx
movslq %ecx,%rcx
movsd  (%rax,%rcx,8),%xmm2
mulsd  %xmm2,%xmm1
addsd  %xmm0,%xmm1
movsd  -0x50(%rbp),%xmm0
mulsd  -0x58(%rbp),%xmm0
mov    -0x68(%rbp),%rax
mov    -0x20(%rbp),%ecx
add    $0x1,%ecx
movslq %ecx,%rcx
mov    (%rax,%rcx,8),%rax
mov    -0x24(%rbp),%ecx
add    $0x1,%ecx
movslq %ecx,%rcx
movsd  (%rax,%rcx,8),%xmm2
mulsd  %xmm2,%xmm0
addsd  %xmm1,%xmm0
movsd  %xmm0,-0x48(%rbp)
movsd  -0x40(%rbp),%xmm0
movsd  -0x48(%rbp),%xmm1
lea    0xa09(%rip),%rdi
mov    $0x2,%al
call   1040 <printf@plt>
jmp    13dd <main+0x23d>
mov    -0x4(%rbp),%eax
add    $0x460,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %rbp
push   %r15
push   %r14
push   %r13
push   %r12
push   %rbx
sub    $0x418,%rsp
mov    %rsi,%rbx
cmp    $0x3,%edi
jle    147b <main+0x2db>
mov    0x8(%rbx),%rdi
call   10b0 <atoi@plt>
test   %eax,%eax
jle    149f <main+0x2ff>
mov    %eax,%ebp
mov    0x10(%rbx),%rdi
call   10b0 <atoi@plt>
test   %eax,%eax
jle    14c3 <main+0x323>
mov    %eax,%r13d
mov    %rbx,0x18(%rsp)
mov    0x18(%rbx),%rdi
lea    0xe6a(%rip),%rsi
call   1090 <fopen@plt>
mov    %rax,0x10(%rsp)
test   %rax,%rax
je     14e7 <main+0x347>
lea    0x8(,%rbp,8),%ebx
mov    %ebx,%edi
call   1070 <malloc@plt>
mov    %rax,%r14
lea    0x8(,%r13,8),%r15d
mov    %rbp,0x8(%rsp)
lea    0x1(%rbp),%r12d
xor    %ebp,%ebp
nopl   0x0(%rax,%rax,1)
mov    %r15d,%edi
call   1070 <malloc@plt>
mov    %rax,(%r14,%rbp,8)
add    $0x1,%rbp
cmp    %rbp,%r12
jne    1230 <main+0x90>
mov    %ebx,%edi
call   1070 <malloc@plt>
mov    %rax,%r15
lea    0x8(,%r13,8),%ebp
xor    %ebx,%ebx
nopl   0x0(%rax)
mov    %ebp,%edi
call   1070 <malloc@plt>
mov    %rax,(%r15,%rbx,8)
add    $0x1,%rbx
cmp    %rbx,%r12
jne    1260 <main+0xc0>
mov    0x10(%rsp),%rbp
mov    %rbp,%rdi
mov    %r14,%rsi
mov    %r15,%rdx
mov    0x8(%rsp),%rbx
mov    %ebx,%ecx
mov    %r13d,%r8d
call   10a0 <readpoints@plt>
test   %rax,%rax
jne    1514 <main+0x374>
mov    %rbp,%rdi
call   1030 <fclose@plt>
mov    0x2d3f(%rip),%rax
mov    (%rax),%edx
lea    0x30(%rsp),%rdi
mov    $0x3e8,%esi
call   1050 <fgets@plt>
test   %rax,%rax
je     1467 <main+0x2c7>
cvtsi2sd %ebx,%xmm0
movsd  %xmm0,0x10(%rsp)
xorps  %xmm0,%xmm0
cvtsi2sd %r13d,%xmm0
movsd  %xmm0,0x8(%rsp)
lea    0xdbd(%rip),%rbx
lea    0x30(%rsp),%r12
lea    0x28(%rsp),%r13
lea    0x20(%rsp),%rbp
jmp    1330 <main+0x190>
cs nopw 0x0(%rax,%rax,1)
nopl   (%rax)
lea    0xda0(%rip),%rdi
mov    %r12,%rsi
xor    %eax,%eax
call   1040 <printf@plt>
mov    0x2cd0(%rip),%rax
mov    (%rax),%edx
mov    %r12,%rdi
mov    $0x3e8,%esi
call   1050 <fgets@plt>
test   %rax,%rax
je     1467 <main+0x2c7>
mov    %r12,%rdi
mov    %rbx,%rsi
mov    %r13,%rdx
mov    %rbp,%rcx
call   1080 <sscanf@plt>
cmp    $0x2,%eax
jne    1300 <main+0x160>
movsd  0x28(%rsp),%xmm0
xorpd  %xmm1,%xmm1
ucomisd %xmm0,%xmm1
jbe    1370 <main+0x1d0>
movsd  0x20(%rsp),%xmm1
jmp    1454 <main+0x2b4>
cs nopw 0x0(%rax,%rax,1)
nopl   0x0(%rax,%rax,1)
ucomisd 0x10(%rsp),%xmm0
movsd  0x20(%rsp),%xmm1
jae    1454 <main+0x2b4>
xorpd  %xmm2,%xmm2
ucomisd %xmm1,%xmm2
ja     1454 <main+0x2b4>
ucomisd 0x8(%rsp),%xmm1
jae    1454 <main+0x2b4>
unpcklpd %xmm1,%xmm0
cvttpd2dq %xmm0,%xmm1
cvtdq2pd %xmm1,%xmm2
subpd  %xmm2,%xmm0
movapd 0xc4c(%rip),%xmm2
subpd  %xmm0,%xmm2
movapd %xmm2,%xmm4
unpckhpd %xmm2,%xmm4
movapd %xmm2,%xmm3
mulsd  %xmm4,%xmm3
movd   %xmm1,%eax
movslq %eax,%rcx
pshufd $0x55,%xmm1,%xmm1
movd   %xmm1,%eax
cltq
mulsd  %xmm0,%xmm4
mov    (%r14,%rcx,8),%rdx
mov    0x8(%r14,%rcx,8),%rsi
movsd  (%rsi,%rax,8),%xmm1
mulsd  %xmm4,%xmm1
movsd  (%rdx,%rax,8),%xmm5
mulsd  %xmm3,%xmm5
addsd  %xmm1,%xmm5
movapd %xmm0,%xmm1
unpckhpd %xmm0,%xmm1
mulsd  %xmm1,%xmm2
movsd  0x8(%rdx,%rax,8),%xmm6
mulsd  %xmm2,%xmm6
addsd  %xmm5,%xmm6
mulsd  %xmm0,%xmm1
movsd  0x8(%rsi,%rax,8),%xmm0
mulsd  %xmm1,%xmm0
mov    (%r15,%rcx,8),%rdx
mov    0x8(%r15,%rcx,8),%rcx
mulsd  (%rcx,%rax,8),%xmm4
mulsd  (%rdx,%rax,8),%xmm3
addsd  %xmm6,%xmm0
addsd  %xmm4,%xmm3
mulsd  0x8(%rdx,%rax,8),%xmm2
addsd  %xmm3,%xmm2
mulsd  0x8(%rcx,%rax,8),%xmm1
addsd  %xmm2,%xmm1
lea    0xc4f(%rip),%rdi
mov    $0x2,%al
call   1040 <printf@plt>
jmp    1311 <main+0x171>
xor    %eax,%eax
add    $0x418,%rsp
pop    %rbx
pop    %r12
pop    %r13
pop    %r14
pop    %r15
pop    %rbp
ret
mov    0x2b56(%rip),%rax
mov    (%rax),%edi
mov    (%rbx),%rdx
lea    0xb8a(%rip),%rsi
xor    %eax,%eax
call   1060 <fprintf@plt>
mov    $0x1,%edi
call   10c0 <exit@plt>
mov    0x2b32(%rip),%rax
mov    (%rax),%edi
mov    (%rbx),%rdx
lea    0xb86(%rip),%rsi
xor    %eax,%eax
call   1060 <fprintf@plt>
mov    $0x2,%edi
call   10c0 <exit@plt>
mov    0x2b0e(%rip),%rax
mov    (%rax),%edi
mov    (%rbx),%rdx
lea    0xb75(%rip),%rsi
xor    %eax,%eax
call   1060 <fprintf@plt>
mov    $0x3,%edi
call   10c0 <exit@plt>
mov    0x2aea(%rip),%rax
mov    (%rax),%edi
mov    0x18(%rsp),%rax
mov    (%rax),%rdx
mov    0x18(%rax),%rcx
lea    0xb5d(%rip),%rsi
xor    %eax,%eax
call   1060 <fprintf@plt>
mov    $0x4,%edi
call   10c0 <exit@plt>
mov    0x2abd(%rip),%rax
mov    (%rax),%edi
mov    0x18(%rsp),%rax
mov    (%rax),%rdx
mov    0x18(%rax),%rcx
lea    0xb4e(%rip),%rsi
xor    %eax,%eax
call   1060 <fprintf@plt>
mov    $0x5,%edi
call   10c0 <exit@plt>

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

LLVM IR (-O2):
@stderr = global i32 0
@.str = [32 x i8] c"Usage: %s xsize ysize gridfile\0A\00"
@.str.1 = [19 x i8] c"%s: xsize botched\0A\00"
@.str.2 = [19 x i8] c"%s: ysize botched\0A\00"
@.str.3 = [2 x i8] c"r\00"
@.str.4 = [30 x i8] c"%s: unable to open file `%s'\0A\00"
@.str.5 = [33 x i8] c"%s: input file `%s' ended early\0A\00"
@stdin = global i32 0
@.str.6 = [8 x i8] c"%lf %lf\00"
@.str.7 = [3 x i8] c"%s\00"
@.str.8 = [7 x i8] c"%g %g\0A\00"
define i32 @main(i32 %0, i8** nocapture %1) {
%3 = alloca double
%4 = alloca double
%5 = alloca [1000 x i8]
%6 = bitcast double* %3 to i8*
%7 = bitcast double* %4 to i8*
%8 = getelementptr inbounds [1000 x i8], [1000 x i8]* %5, i64 0, i64 0
%9 = icmp slt i32 %0, 4
br i1 %9, label %10, label %15
10: ; preds = %2
%11 = load i32, i32* @stderr
%12 = load i8*, i8** %1
%13 = tail call i32 (i32, i8*, i8*, ...) @fprintf(i32 %11, i8* getelementptr inbounds ([32 x i8], [32 x i8]* @.str, i64 0, i64 0), i8* %12)
%14 = tail call i32 @exit(i32 1)
unreachable
15: ; preds = %2
%16 = getelementptr inbounds i8*, i8** %1, i64 1
%17 = load i8*, i8** %16
%18 = tail call i32 @atoi(i8* %17)
%19 = icmp slt i32 %18, 1
br i1 %19, label %20, label %25
20: ; preds = %15
%21 = load i32, i32* @stderr
%22 = load i8*, i8** %1
%23 = tail call i32 (i32, i8*, i8*, ...) @fprintf(i32 %21, i8* getelementptr inbounds ([19 x i8], [19 x i8]* @.str.1, i64 0, i64 0), i8* %22)
%24 = tail call i32 @exit(i32 2)
unreachable
25: ; preds = %15
%26 = getelementptr inbounds i8*, i8** %1, i64 2
%27 = load i8*, i8** %26
%28 = tail call i32 @atoi(i8* %27)
%29 = icmp slt i32 %28, 1
br i1 %29, label %30, label %35
30: ; preds = %25
%31 = load i32, i32* @stderr
%32 = load i8*, i8** %1
%33 = tail call i32 (i32, i8*, i8*, ...) @fprintf(i32 %31, i8* getelementptr inbounds ([19 x i8], [19 x i8]* @.str.2, i64 0, i64 0), i8* %32)
%34 = tail call i32 @exit(i32 3)
unreachable
35: ; preds = %25
%36 = getelementptr inbounds i8*, i8** %1, i64 3
%37 = load i8*, i8** %36
%38 = tail call i32* @fopen(i8* %37, i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.3, i64 0, i64 0))
%39 = icmp eq i32* %38, null
br i1 %39, label %40, label %46
40: ; preds = %35
%41 = load i32, i32* @stderr
%42 = load i8*, i8** %1
%43 = load i8*, i8** %36
%44 = tail call i32 (i32, i8*, i8*, ...) @fprintf(i32 %41, i8* getelementptr inbounds ([30 x i8], [30 x i8]* @.str.4, i64 0, i64 0), i8* %42, i8* %43)
%45 = tail call i32 @exit(i32 4)
unreachable
46: ; preds = %35
%47 = shl i32 %18, 3
%48 = add i32 %47, 8
%49 = tail call i8* @malloc(i32 %48)
%50 = bitcast i8* %49 to double**
%51 = shl i32 %28, 3
%52 = add i32 %51, 8
%53 = add nuw i32 %18, 1
%54 = zext i32 %53 to i64
br label %55
55: ; preds = %46, %55
%56 = phi i64 [ 0, %46 ], [ %60, %55 ]
%57 = tail call i8* @malloc(i32 %52)
%58 = getelementptr inbounds double*, double** %50, i64 %56
%59 = bitcast double** %58 to i8**
store i8* %57, i8** %59
%60 = add nuw nsw i64 %56, 1
%61 = icmp eq i64 %60, %54
br i1 %61, label %62, label %55
62: ; preds = %55
%63 = tail call i8* @malloc(i32 %48)
%64 = bitcast i8* %63 to double**
%65 = shl i32 %28, 3
%66 = add i32 %65, 8
%67 = add i32 %18, 1
%68 = zext i32 %67 to i64
br label %69
69: ; preds = %62, %69
%70 = phi i64 [ 0, %62 ], [ %74, %69 ]
%71 = tail call i8* @malloc(i32 %66)
%72 = getelementptr inbounds double*, double** %64, i64 %70
%73 = bitcast double** %72 to i8**
store i8* %71, i8** %73
%74 = add nuw nsw i64 %70, 1
%75 = icmp eq i64 %74, %68
br i1 %75, label %76, label %69
76: ; preds = %69
%77 = tail call i64 @readpoints(i32* %38, double** %50, double** %64, i32 %18, i32 %28)
%78 = icmp eq i64 %77, 0
br i1 %78, label %85, label %79
79: ; preds = %76
%80 = load i32, i32* @stderr
%81 = load i8*, i8** %1
%82 = load i8*, i8** %36
%83 = tail call i32 (i32, i8*, i8*, ...) @fprintf(i32 %80, i8* getelementptr inbounds ([33 x i8], [33 x i8]* @.str.5, i64 0, i64 0), i8* %81, i8* %82)
%84 = tail call i32 @exit(i32 5)
unreachable
85: ; preds = %76
%86 = tail call i32 @fclose(i32* %38)
%87 = load i32, i32* @stdin
%88 = call i32* @fgets(i8* %8, i32 1000, i32 %87)
%89 = icmp eq i32* %88, null
br i1 %89, label %173, label %90
90: ; preds = %85
%91 = sitofp i32 %18 to double
%92 = sitofp i32 %28 to double
br label %93
93: ; preds = %90, %98
%94 = call i32 @sscanf(i8* %8, i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str.6, i64 0, i64 0), double* %3, double* %4)
%95 = icmp eq i32 %94, 2
br i1 %95, label %102, label %96
96: ; preds = %93
%97 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([3 x i8], [3 x i8]* @.str.7, i64 0, i64 0), i8* %8)
br label %98
98: ; preds = %114, %117, %96
%99 = load i32, i32* @stdin
%100 = call i32* @fgets(i8* %8, i32 1000, i32 %99)
%101 = icmp eq i32* %100, null
br i1 %101, label %173, label %93
102: ; preds = %93
%103 = load double, double* %3
%104 = fcmp olt double %103, 0.000000e+00
br i1 %104, label %105, label %107
105: ; preds = %102
%106 = load double, double* %4
br label %114
107: ; preds = %102
%108 = fcmp ult double %103, %91
%109 = load double, double* %4
%110 = fcmp uge double %109, 0.000000e+00
%111 = select i1 %108, i1 %110, i1 false
%112 = fcmp ult double %109, %92
%113 = select i1 %111, i1 %112, i1 false
br i1 %113, label %117, label %114
114: ; preds = %105, %107
%115 = phi double [ %106, %105 ], [ %109, %107 ]
%116 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([7 x i8], [7 x i8]* @.str.8, i64 0, i64 0), double %103, double %115)
br label %98
117: ; preds = %107
%118 = insertelement <2 x double> poison, double %103, i64 0
%119 = insertelement <2 x double> %118, double %109, i64 1
%120 = fptosi <2 x double> %119 to <2 x i32>
%121 = sitofp <2 x i32> %120 to <2 x double>
%122 = fsub <2 x double> %119, %121
%123 = fsub <2 x double> <double 1.000000e+00, double 1.000000e+00>, %122
%124 = extractelement <2 x double> %123, i64 0
%125 = extractelement <2 x double> %123, i64 1
%126 = fmul double %124, %125
%127 = extractelement <2 x i32> %120, i64 0
%128 = sext i32 %127 to i64
%129 = getelementptr inbounds double*, double** %50, i64 %128
%130 = load double*, double** %129
%131 = extractelement <2 x i32> %120, i64 1
%132 = sext i32 %131 to i64
%133 = getelementptr inbounds double, double* %130, i64 %132
%134 = load double, double* %133
%135 = extractelement <2 x double> %122, i64 0
%136 = fmul double %135, %125
%137 = add nsw i32 %127, 1
%138 = sext i32 %137 to i64
%139 = getelementptr inbounds double*, double** %50, i64 %138
%140 = load double*, double** %139
%141 = getelementptr inbounds double, double* %140, i64 %132
%142 = load double, double* %141
%143 = fmul double %136, %142
%144 = call double @llvm.fmuladd.f64(double %126, double %134, double %143)
%145 = extractelement <2 x double> %122, i64 1
%146 = fmul double %124, %145
%147 = add nsw i32 %131, 1
%148 = sext i32 %147 to i64
%149 = getelementptr inbounds double, double* %130, i64 %148
%150 = load double, double* %149
%151 = call double @llvm.fmuladd.f64(double %146, double %150, double %144)
%152 = fmul double %135, %145
%153 = getelementptr inbounds double, double* %140, i64 %148
%154 = load double, double* %153
%155 = call double @llvm.fmuladd.f64(double %152, double %154, double %151)
%156 = getelementptr inbounds double*, double** %64, i64 %128
%157 = load double*, double** %156
%158 = getelementptr inbounds double, double* %157, i64 %132
%159 = load double, double* %158
%160 = getelementptr inbounds double*, double** %64, i64 %138
%161 = load double*, double** %160
%162 = getelementptr inbounds double, double* %161, i64 %132
%163 = load double, double* %162
%164 = fmul double %136, %163
%165 = call double @llvm.fmuladd.f64(double %126, double %159, double %164)
%166 = getelementptr inbounds double, double* %157, i64 %148
%167 = load double, double* %166
%168 = call double @llvm.fmuladd.f64(double %146, double %167, double %165)
%169 = getelementptr inbounds double, double* %161, i64 %148
%170 = load double, double* %169
%171 = call double @llvm.fmuladd.f64(double %152, double %170, double %168)
%172 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([7 x i8], [7 x i8]* @.str.8, i64 0, i64 0), double %155, double %171)
br label %98
173: ; preds = %98, %85
ret i32 0
}