#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 /*<<< orphan*/ getch();
int /*<<< orphan*/ rndsplanalysis(double *, int, double, double, int, int,
                                  double *, int *, int *);
main() {
  int g[10], q[10], n, m, l;
  double dt[3], x0, h;
  double x[50] = {
      201.123, 195.673, 195.757, 196.051, 196.092, 197.392, 202.004, 198.189,
      193.850, 198.944, 199.237, 199.698, 199.572, 199.614, 199.824, 200.746,
      200.830, 200.914, 200.956, 200.998, 200.160, 200.243, 200.285, 200.453,
      200.704, 202.004, 202.088, 202.172, 202.172, 202.197, 202.884, 202.507,
      202.591, 202.716, 202.633, 202.051, 203.052, 203.094, 203.094, 203.177,
      204.267, 204.352, 204.352, 204.729, 205.106, 205.148, 205.357, 205.400,
      205.483, 206.070,
  };
  x0 = 195.0;
  n = 50;
  h = 1.0;
  m = 8;
  l = 1;
  rndsplanalysis(x, n, x0, h, m, l, dt, g, q);
  getch();
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x240,%rsp
lea    -0x230(%rbp),%rdi
lea    0xec7(%rip),%rsi
mov    $0x190,%edx
call   1030 <memcpy@plt>
movsd  0xead(%rip),%xmm0
movsd  %xmm0,-0x98(%rbp)
ff
movl   $0x32,-0x64(%rbp)
movsd  0xe8e(%rip),%xmm0
movsd  %xmm0,-0xa0(%rbp)
ff
movl   $0x8,-0x68(%rbp)
movl   $0x1,-0x6c(%rbp)
lea    -0x230(%rbp),%rdi
mov    -0x64(%rbp),%esi
movsd  -0x98(%rbp),%xmm0
ff
movsd  -0xa0(%rbp),%xmm1
ff
mov    -0x68(%rbp),%edx
mov    -0x6c(%rbp),%ecx
lea    -0x90(%rbp),%r8
lea    -0x30(%rbp),%r9
lea    -0x60(%rbp),%rax
mov    %rax,(%rsp)
call   1050 <rndsplanalysis@plt>
mov    $0x0,%al
call   1040 <getch@plt>
xor    %eax,%eax
add    $0x240,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %rbx
sub    $0x220,%rsp
lea    0xed1(%rip),%rsi
lea    0x90(%rsp),%rbx
mov    $0x190,%edx
mov    %rbx,%rdi
call   1030 <memcpy@plt>
lea    0x30(%rsp),%rax
mov    %rax,(%rsp)
movsd  0xe9b(%rip),%xmm0
movsd  0xe9b(%rip),%xmm1
lea    0x10(%rsp),%r8
lea    0x60(%rsp),%r9
mov    %rbx,%rdi
mov    $0x32,%esi
mov    $0x8,%edx
mov    $0x1,%ecx
call   1050 <rndsplanalysis@plt>
xor    %eax,%eax
call   1040 <getch@plt>
xor    %eax,%eax
add    $0x220,%rsp
pop    %rbx
ret

LLVM IR (-O0):
@__const.main.x = [50 x double] [double 2.011230e+02, double 1.956730e+02, double 1.957570e+02, double 1.960510e+02, double 1.960920e+02, double 1.973920e+02, double 2.020040e+02, double 1.981890e+02, double 1.938500e+02, double 1.989440e+02, double 1.992370e+02, double 1.996980e+02, double 1.995720e+02, double 1.996140e+02, double 1.998240e+02, double 2.007460e+02, double 2.008300e+02, double 2.009140e+02, double 2.009560e+02, double 2.009980e+02, double 2.001600e+02, double 2.002430e+02, double 2.002850e+02, double 2.004530e+02, double 2.007040e+02, double 2.020040e+02, double 2.020880e+02, double 2.021720e+02, double 2.021720e+02, double 2.021970e+02, double 2.028840e+02, double 2.025070e+02, double 2.025910e+02, double 2.027160e+02, double 2.026330e+02, double 2.020510e+02, double 2.030520e+02, double 2.030940e+02, double 2.030940e+02, double 2.031770e+02, double 2.042670e+02, double 2.043520e+02, double 2.043520e+02, double 2.047290e+02, double 2.051060e+02, double 2.051480e+02, double 2.053570e+02, double 2.054000e+02, double 2.054830e+02, double 2.060700e+02]
define i32 @main() {
%1 = alloca [10 x i32]
%2 = alloca [10 x i32]
%3 = alloca i32
%4 = alloca i32
%5 = alloca i32
%6 = alloca [3 x double]
%7 = alloca double
%8 = alloca double
%9 = alloca [50 x double]
%10 = bitcast [50 x double]* %9 to i8*
store double 1.950000e+02, double* %7
store i32 50, i32* %3
store double 1.000000e+00, double* %8
store i32 8, i32* %4
store i32 1, i32* %5
%11 = getelementptr inbounds [50 x double], [50 x double]* %9, i64 0, i64 0
%12 = load i32, i32* %3
%13 = load double, double* %7
%14 = load double, double* %8
%15 = load i32, i32* %4
%16 = load i32, i32* %5
%17 = getelementptr inbounds [3 x double], [3 x double]* %6, i64 0, i64 0
%18 = getelementptr inbounds [10 x i32], [10 x i32]* %1, i64 0, i64 0
%19 = getelementptr inbounds [10 x i32], [10 x i32]* %2, i64 0, i64 0
%20 = call i32 @rndsplanalysis(double* %11, i32 %12, double %13, double %14, i32 %15, i32 %16, double* %17, i32* %18, i32* %19)
%21 = call i32 (...) @getch()
ret i32 0
}

LLVM IR (-O2):
@__const.main.x = [50 x double] [double 2.011230e+02, double 1.956730e+02, double 1.957570e+02, double 1.960510e+02, double 1.960920e+02, double 1.973920e+02, double 2.020040e+02, double 1.981890e+02, double 1.938500e+02, double 1.989440e+02, double 1.992370e+02, double 1.996980e+02, double 1.995720e+02, double 1.996140e+02, double 1.998240e+02, double 2.007460e+02, double 2.008300e+02, double 2.009140e+02, double 2.009560e+02, double 2.009980e+02, double 2.001600e+02, double 2.002430e+02, double 2.002850e+02, double 2.004530e+02, double 2.007040e+02, double 2.020040e+02, double 2.020880e+02, double 2.021720e+02, double 2.021720e+02, double 2.021970e+02, double 2.028840e+02, double 2.025070e+02, double 2.025910e+02, double 2.027160e+02, double 2.026330e+02, double 2.020510e+02, double 2.030520e+02, double 2.030940e+02, double 2.030940e+02, double 2.031770e+02, double 2.042670e+02, double 2.043520e+02, double 2.043520e+02, double 2.047290e+02, double 2.051060e+02, double 2.051480e+02, double 2.053570e+02, double 2.054000e+02, double 2.054830e+02, double 2.060700e+02]
define i32 @main() {
%1 = alloca [10 x i32]
%2 = alloca [10 x i32]
%3 = alloca [3 x double]
%4 = alloca [50 x double]
%5 = bitcast [10 x i32]* %1 to i8*
%6 = bitcast [10 x i32]* %2 to i8*
%7 = bitcast [3 x double]* %3 to i8*
%8 = bitcast [50 x double]* %4 to i8*
%9 = getelementptr inbounds [50 x double], [50 x double]* %4, i64 0, i64 0
%10 = getelementptr inbounds [3 x double], [3 x double]* %3, i64 0, i64 0
%11 = getelementptr inbounds [10 x i32], [10 x i32]* %1, i64 0, i64 0
%12 = getelementptr inbounds [10 x i32], [10 x i32]* %2, i64 0, i64 0
%13 = call i32 @rndsplanalysis(double* %9, i32 50, double 1.950000e+02, double 1.000000e+00, i32 8, i32 1, double* %10, i32* %11, i32* %12)
%14 = call i32 (...) @getch()
ret i32 0
}