#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 */
scalar_t__ malloc(int);
int main() {
  double *xmin, *xmax, *ymin, *ymax;
  double *xnp, *ynp, *wind, *sind, *vind;
  double *vy, *vx;
  int xnpt, ynpt, indw, inds, indv;
  void finput(double xmin, double xmax, double ymin, double ymax, double vx,
              double vy, int xn, int Yn, int ITs, int ITv, int ITw);
  if ((xmin = (double *)malloc(3 * sizeof(double))) == NULL)
    return (0);
  if ((xmax = (double *)malloc(3 * sizeof(double))) == NULL)
    return (0);
  if ((ymin = (double *)malloc(3 * sizeof(double))) == NULL)
    return (0);
  if ((ymax = (double *)malloc(3 * sizeof(double))) == NULL)
    return (0);
  if ((vx = (double *)malloc(3 * sizeof(double))) == NULL)
    return (0);
  if ((vy = (double *)malloc(3 * sizeof(double))) == NULL)
    return (0);
  *xmin = 0;
  *xmax = 1.1;
  *ymin = -0.5;
  *ymax = 1.5;
  *vx = 0;
  *vy = 0.6;
  xnpt = 1600;
  ynpt = xnpt;
  inds = 1;
  indv = 0;
  indw = 1;
  finput(*xmin, *xmax, *ymin, *ymax, *vx, *vy, xnpt, ynpt, inds, indv, indw);
  return (0);
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x80,%rsp
movl   $0x0,-0x4(%rbp)
mov    $0x18,%edi
call   1040 <malloc@plt>
mov    %rax,-0x10(%rbp)
cmp    $0x0,%rax
jne    1156 <main+0x36>
movl   $0x0,-0x4(%rbp)
jmp    12ce <main+0x1ae>
mov    $0x18,%edi
call   1040 <malloc@plt>
mov    %rax,-0x18(%rbp)
cmp    $0x0,%rax
jne    117a <main+0x5a>
movl   $0x0,-0x4(%rbp)
jmp    12ce <main+0x1ae>
mov    $0x18,%edi
call   1040 <malloc@plt>
mov    %rax,-0x20(%rbp)
cmp    $0x0,%rax
jne    119e <main+0x7e>
movl   $0x0,-0x4(%rbp)
jmp    12ce <main+0x1ae>
mov    $0x18,%edi
call   1040 <malloc@plt>
mov    %rax,-0x28(%rbp)
cmp    $0x0,%rax
jne    11c2 <main+0xa2>
movl   $0x0,-0x4(%rbp)
jmp    12ce <main+0x1ae>
mov    $0x18,%edi
call   1040 <malloc@plt>
mov    %rax,-0x60(%rbp)
cmp    $0x0,%rax
jne    11e6 <main+0xc6>
movl   $0x0,-0x4(%rbp)
jmp    12ce <main+0x1ae>
mov    $0x18,%edi
call   1040 <malloc@plt>
mov    %rax,-0x58(%rbp)
cmp    $0x0,%rax
jne    120a <main+0xea>
movl   $0x0,-0x4(%rbp)
jmp    12ce <main+0x1ae>
mov    -0x10(%rbp),%rax
xorps  %xmm0,%xmm0
movsd  %xmm0,(%rax)
mov    -0x18(%rbp),%rax
movsd  0xdf7(%rip),%xmm0
movsd  %xmm0,(%rax)
mov    -0x20(%rbp),%rax
movsd  0xddf(%rip),%xmm0
movsd  %xmm0,(%rax)
mov    -0x28(%rbp),%rax
movsd  0xdc7(%rip),%xmm0
movsd  %xmm0,(%rax)
mov    -0x60(%rbp),%rax
xorps  %xmm0,%xmm0
movsd  %xmm0,(%rax)
mov    -0x58(%rbp),%rax
movsd  0xda4(%rip),%xmm0
movsd  %xmm0,(%rax)
movl   $0x640,-0x64(%rbp)
mov    -0x64(%rbp),%eax
mov    %eax,-0x68(%rbp)
movl   $0x1,-0x70(%rbp)
movl   $0x0,-0x74(%rbp)
movl   $0x1,-0x6c(%rbp)
mov    -0x10(%rbp),%rax
movsd  (%rax),%xmm0
mov    -0x18(%rbp),%rax
movsd  (%rax),%xmm1
mov    -0x20(%rbp),%rax
movsd  (%rax),%xmm2
mov    -0x28(%rbp),%rax
movsd  (%rax),%xmm3
mov    -0x60(%rbp),%rax
movsd  (%rax),%xmm4
mov    -0x58(%rbp),%rax
movsd  (%rax),%xmm5
mov    -0x64(%rbp),%edi
mov    -0x68(%rbp),%esi
mov    -0x70(%rbp),%edx
mov    -0x74(%rbp),%ecx
mov    -0x6c(%rbp),%r8d
call   1030 <finput@plt>
movl   $0x0,-0x4(%rbp)
mov    -0x4(%rbp),%eax
add    $0x80,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %r15
push   %r14
push   %r13
push   %r12
push   %rbx
mov    $0x18,%edi
call   1040 <malloc@plt>
test   %rax,%rax
je     122c <main+0x10c>
mov    %rax,%rbx
mov    $0x18,%edi
call   1040 <malloc@plt>
test   %rax,%rax
je     122c <main+0x10c>
mov    %rax,%r14
mov    $0x18,%edi
call   1040 <malloc@plt>
test   %rax,%rax
je     122c <main+0x10c>
mov    %rax,%r15
mov    $0x18,%edi
call   1040 <malloc@plt>
test   %rax,%rax
je     122c <main+0x10c>
mov    %rax,%r12
mov    $0x18,%edi
call   1040 <malloc@plt>
test   %rax,%rax
je     122c <main+0x10c>
mov    %rax,%r13
mov    $0x18,%edi
call   1040 <malloc@plt>
test   %rax,%rax
je     122c <main+0x10c>
movq   $0x0,(%rbx)
movabs $0x3ff199999999999a,%rcx
99 f1 3f
mov    %rcx,(%r14)
movabs $0xbfe0000000000000,%rcx
mov    %rcx,(%r15)
movabs $0x3ff8000000000000,%rcx
mov    %rcx,(%r12)
movq   $0x0,0x0(%r13)
movabs $0x3fe3333333333333,%rcx
33 e3 3f
mov    %rcx,(%rax)
movsd  (%rbx),%xmm0
movsd  (%r14),%xmm1
movsd  (%r15),%xmm2
movsd  (%r12),%xmm3
movsd  0x0(%r13),%xmm4
movsd  0xdf0(%rip),%xmm5
mov    $0x640,%edi
mov    $0x640,%esi
mov    $0x1,%edx
xor    %ecx,%ecx
mov    $0x1,%r8d
call   1030 <finput@plt>
xor    %eax,%eax
pop    %rbx
pop    %r12
pop    %r13
pop    %r14
pop    %r15
ret

LLVM IR (-O0):
define i32 @main() {
%1 = alloca i32
%2 = alloca double*
%3 = alloca double*
%4 = alloca double*
%5 = alloca double*
%6 = alloca double*
%7 = alloca double*
%8 = alloca double*
%9 = alloca double*
%10 = alloca double*
%11 = alloca double*
%12 = alloca double*
%13 = alloca i32
%14 = alloca i32
%15 = alloca i32
%16 = alloca i32
%17 = alloca i32
store i32 0, i32* %1
%18 = call i64 @malloc(i32 24)
%19 = inttoptr i64 %18 to double*
store double* %19, double** %2
%20 = icmp eq double* %19, null
br i1 %20, label %21, label %22
21: ; preds = %0
store i32 0, i32* %1
br label %72
22: ; preds = %0
%23 = call i64 @malloc(i32 24)
%24 = inttoptr i64 %23 to double*
store double* %24, double** %3
%25 = icmp eq double* %24, null
br i1 %25, label %26, label %27
26: ; preds = %22
store i32 0, i32* %1
br label %72
27: ; preds = %22
%28 = call i64 @malloc(i32 24)
%29 = inttoptr i64 %28 to double*
store double* %29, double** %4
%30 = icmp eq double* %29, null
br i1 %30, label %31, label %32
31: ; preds = %27
store i32 0, i32* %1
br label %72
32: ; preds = %27
%33 = call i64 @malloc(i32 24)
%34 = inttoptr i64 %33 to double*
store double* %34, double** %5
%35 = icmp eq double* %34, null
br i1 %35, label %36, label %37
36: ; preds = %32
store i32 0, i32* %1
br label %72
37: ; preds = %32
%38 = call i64 @malloc(i32 24)
%39 = inttoptr i64 %38 to double*
store double* %39, double** %12
%40 = icmp eq double* %39, null
br i1 %40, label %41, label %42
41: ; preds = %37
store i32 0, i32* %1
br label %72
42: ; preds = %37
%43 = call i64 @malloc(i32 24)
%44 = inttoptr i64 %43 to double*
store double* %44, double** %11
%45 = icmp eq double* %44, null
br i1 %45, label %46, label %47
46: ; preds = %42
store i32 0, i32* %1
br label %72
47: ; preds = %42
%48 = load double*, double** %2
store double 0.000000e+00, double* %48
%49 = load double*, double** %3
store double 1.100000e+00, double* %49
%50 = load double*, double** %4
store double -5.000000e-01, double* %50
%51 = load double*, double** %5
store double 1.500000e+00, double* %51
%52 = load double*, double** %12
store double 0.000000e+00, double* %52
%53 = load double*, double** %11
store double 6.000000e-01, double* %53
store i32 1600, i32* %13
%54 = load i32, i32* %13
store i32 %54, i32* %14
store i32 1, i32* %16
store i32 0, i32* %17
store i32 1, i32* %15
%55 = load double*, double** %2
%56 = load double, double* %55
%57 = load double*, double** %3
%58 = load double, double* %57
%59 = load double*, double** %4
%60 = load double, double* %59
%61 = load double*, double** %5
%62 = load double, double* %61
%63 = load double*, double** %12
%64 = load double, double* %63
%65 = load double*, double** %11
%66 = load double, double* %65
%67 = load i32, i32* %13
%68 = load i32, i32* %14
%69 = load i32, i32* %16
%70 = load i32, i32* %17
%71 = load i32, i32* %15
store i32 0, i32* %1
br label %72
72: ; preds = %47, %46, %41, %36, %31, %26, %21
%73 = load i32, i32* %1
ret i32 %73
}

LLVM IR (-O2):
define i32 @main() {
%1 = tail call i64 @malloc(i32 24)
%2 = inttoptr i64 %1 to double*
%3 = icmp eq i64 %1, 0
br i1 %3, label %30, label %4
4: ; preds = %0
%5 = tail call i64 @malloc(i32 24)
%6 = inttoptr i64 %5 to double*
%7 = icmp eq i64 %5, 0
br i1 %7, label %30, label %8
8: ; preds = %4
%9 = tail call i64 @malloc(i32 24)
%10 = inttoptr i64 %9 to double*
%11 = icmp eq i64 %9, 0
br i1 %11, label %30, label %12
12: ; preds = %8
%13 = tail call i64 @malloc(i32 24)
%14 = inttoptr i64 %13 to double*
%15 = icmp eq i64 %13, 0
br i1 %15, label %30, label %16
16: ; preds = %12
%17 = tail call i64 @malloc(i32 24)
%18 = inttoptr i64 %17 to double*
%19 = icmp eq i64 %17, 0
br i1 %19, label %30, label %20
20: ; preds = %16
%21 = tail call i64 @malloc(i32 24)
%22 = icmp eq i64 %21, 0
br i1 %22, label %30, label %23
23: ; preds = %20
%24 = inttoptr i64 %21 to double*
store double 0.000000e+00, double* %2
store double 1.100000e+00, double* %6
store double -5.000000e-01, double* %10
store double 1.500000e+00, double* %14
store double 0.000000e+00, double* %18
store double 6.000000e-01, double* %24
%25 = load double, double* %2
%26 = load double, double* %6
%27 = load double, double* %10
%28 = load double, double* %14
%29 = load double, double* %18
tail call void @finput(double %25, double %26, double %27, double %28, double %29, double 6.000000e-01, i32 1600, i32 1600, i32 1, i32 0, i32 1)
br label %30
30: ; preds = %20, %16, %12, %8, %4, %0, %23
ret i32 0
}