#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 */
double f(double, double);
double freal(double);
int /*<<< orphan*/ free(double *);
scalar_t__ malloc(int);
int /*<<< orphan*/ printf(char *, ...);
int main() {
  double a = 0;
  double b = 1;
  double h1 = 0.1;
  double h2 = 0.01;
  double h3 = 0.001;
  double *X;
  double *Y;
  double *sol;
  double j;
  int i;
  int n;
  n = (b - a) / h1 + 1;
  X = (double *)malloc((n + 1) * sizeof(double));
  Y = (double *)malloc((n + 1) * sizeof(double));
  X[0] = a;
  Y[0] = 4;
  printf("%lf %lf\n", X[0], Y[0]);
  for (i = 1; i < n + 1; i++) {
    X[i] = X[i - 1] + h1;
    Y[i] = Y[i - 1] + f(X[i - 1], Y[i - 1]) * h1;
    printf("%lf %lf\n", X[i], Y[i]);
  }
  printf("\n\n");
  free(X);
  free(Y);
  n = (b - a) / h2 + 1;
  X = (double *)malloc((n + 1) * sizeof(double));
  Y = (double *)malloc((n + 1) * sizeof(double));
  X[0] = a;
  Y[0] = 4;
  printf("%lf %lf\n", X[0], Y[0]);
  for (i = 1; i < n + 1; i++) {
    X[i] = X[i - 1] + h2;
    Y[i] = Y[i - 1] + f(X[i - 1], Y[i - 1]) * h2;
    printf("%lf %lf\n", X[i], Y[i]);
  }
  printf("\n\n");
  free(X);
  free(Y);
  n = (b - a) / 0.01 + 1;
  sol = (double *)malloc((n + 1) * sizeof(double));
  X = (double *)malloc((n + 1) * sizeof(double));
  for (i = a; i < n + 1; i++) {
    X[i] = a + i * 0.01;
    printf("%lf %lf\n", X[i], freal(X[i]));
  }
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x70,%rsp
movl   $0x0,-0x4(%rbp)
xorps  %xmm0,%xmm0
movsd  %xmm0,-0x10(%rbp)
movsd  0xe99(%rip),%xmm0
movsd  %xmm0,-0x18(%rbp)
movsd  0xea4(%rip),%xmm0
movsd  %xmm0,-0x20(%rbp)
movsd  0xe8f(%rip),%xmm0
movsd  %xmm0,-0x28(%rbp)
movsd  0xe7a(%rip),%xmm0
movsd  %xmm0,-0x30(%rbp)
movsd  -0x18(%rbp),%xmm0
subsd  -0x10(%rbp),%xmm0
divsd  -0x20(%rbp),%xmm0
movsd  0xe56(%rip),%xmm1
addsd  %xmm1,%xmm0
cvttsd2si %xmm0,%eax
mov    %eax,-0x58(%rbp)
mov    -0x58(%rbp),%eax
add    $0x1,%eax
cltq
shl    $0x3,%rax
mov    %eax,%edi
call   1070 <malloc@plt>
mov    %rax,-0x38(%rbp)
mov    -0x58(%rbp),%eax
add    $0x1,%eax
cltq
shl    $0x3,%rax
mov    %eax,%edi
call   1070 <malloc@plt>
mov    %rax,-0x40(%rbp)
movsd  -0x10(%rbp),%xmm0
mov    -0x38(%rbp),%rax
movsd  %xmm0,(%rax)
mov    -0x40(%rbp),%rax
movsd  0xdfc(%rip),%xmm0
movsd  %xmm0,(%rax)
mov    -0x38(%rbp),%rax
movsd  (%rax),%xmm0
mov    -0x40(%rbp),%rax
movsd  (%rax),%xmm1
lea    0xe09(%rip),%rdi
mov    $0x2,%al
call   1060 <printf@plt>
movl   $0x1,-0x54(%rbp)
mov    -0x54(%rbp),%eax
mov    -0x58(%rbp),%ecx
add    $0x1,%ecx
cmp    %ecx,%eax
jge    12f7 <main+0x1a7>
mov    -0x38(%rbp),%rax
mov    -0x54(%rbp),%ecx
sub    $0x1,%ecx
movslq %ecx,%rcx
movsd  (%rax,%rcx,8),%xmm0
addsd  -0x20(%rbp),%xmm0
mov    -0x38(%rbp),%rax
movslq -0x54(%rbp),%rcx
movsd  %xmm0,(%rax,%rcx,8)
mov    -0x40(%rbp),%rax
mov    -0x54(%rbp),%ecx
sub    $0x1,%ecx
movslq %ecx,%rcx
movsd  (%rax,%rcx,8),%xmm0
movsd  %xmm0,-0x60(%rbp)
mov    -0x38(%rbp),%rax
mov    -0x54(%rbp),%ecx
sub    $0x1,%ecx
movslq %ecx,%rcx
movsd  (%rax,%rcx,8),%xmm0
mov    -0x40(%rbp),%rax
mov    -0x54(%rbp),%ecx
sub    $0x1,%ecx
movslq %ecx,%rcx
movsd  (%rax,%rcx,8),%xmm1
call   1050 <f@plt>
movsd  -0x60(%rbp),%xmm1
movsd  -0x20(%rbp),%xmm2
mulsd  %xmm2,%xmm0
addsd  %xmm1,%xmm0
mov    -0x40(%rbp),%rax
movslq -0x54(%rbp),%rcx
movsd  %xmm0,(%rax,%rcx,8)
mov    -0x38(%rbp),%rax
movslq -0x54(%rbp),%rcx
movsd  (%rax,%rcx,8),%xmm0
mov    -0x40(%rbp),%rax
movslq -0x54(%rbp),%rcx
movsd  (%rax,%rcx,8),%xmm1
lea    0xd46(%rip),%rdi
mov    $0x2,%al
call   1060 <printf@plt>
mov    -0x54(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x54(%rbp)
jmp    122d <main+0xdd>
lea    0xd33(%rip),%rdi
mov    $0x0,%al
call   1060 <printf@plt>
mov    -0x38(%rbp),%rdi
call   1030 <free@plt>
mov    -0x40(%rbp),%rdi
call   1030 <free@plt>
movsd  -0x18(%rbp),%xmm0
subsd  -0x10(%rbp),%xmm0
divsd  -0x28(%rbp),%xmm0
movsd  0xcda(%rip),%xmm1
addsd  %xmm1,%xmm0
cvttsd2si %xmm0,%eax
mov    %eax,-0x58(%rbp)
mov    -0x58(%rbp),%eax
add    $0x1,%eax
cltq
shl    $0x3,%rax
mov    %eax,%edi
call   1070 <malloc@plt>
mov    %rax,-0x38(%rbp)
mov    -0x58(%rbp),%eax
add    $0x1,%eax
cltq
shl    $0x3,%rax
mov    %eax,%edi
call   1070 <malloc@plt>
mov    %rax,-0x40(%rbp)
movsd  -0x10(%rbp),%xmm0
mov    -0x38(%rbp),%rax
movsd  %xmm0,(%rax)
mov    -0x40(%rbp),%rax
movsd  0xc80(%rip),%xmm0
movsd  %xmm0,(%rax)
mov    -0x38(%rbp),%rax
movsd  (%rax),%xmm0
mov    -0x40(%rbp),%rax
movsd  (%rax),%xmm1
lea    0xc8d(%rip),%rdi
mov    $0x2,%al
call   1060 <printf@plt>
movl   $0x1,-0x54(%rbp)
mov    -0x54(%rbp),%eax
mov    -0x58(%rbp),%ecx
add    $0x1,%ecx
cmp    %ecx,%eax
jge    1473 <main+0x323>
mov    -0x38(%rbp),%rax
mov    -0x54(%rbp),%ecx
sub    $0x1,%ecx
movslq %ecx,%rcx
movsd  (%rax,%rcx,8),%xmm0
addsd  -0x28(%rbp),%xmm0
mov    -0x38(%rbp),%rax
movslq -0x54(%rbp),%rcx
movsd  %xmm0,(%rax,%rcx,8)
mov    -0x40(%rbp),%rax
mov    -0x54(%rbp),%ecx
sub    $0x1,%ecx
movslq %ecx,%rcx
movsd  (%rax,%rcx,8),%xmm0
movsd  %xmm0,-0x68(%rbp)
mov    -0x38(%rbp),%rax
mov    -0x54(%rbp),%ecx
sub    $0x1,%ecx
movslq %ecx,%rcx
movsd  (%rax,%rcx,8),%xmm0
mov    -0x40(%rbp),%rax
mov    -0x54(%rbp),%ecx
sub    $0x1,%ecx
movslq %ecx,%rcx
movsd  (%rax,%rcx,8),%xmm1
call   1050 <f@plt>
movsd  -0x68(%rbp),%xmm1
movsd  -0x28(%rbp),%xmm2
mulsd  %xmm2,%xmm0
addsd  %xmm1,%xmm0
mov    -0x40(%rbp),%rax
movslq -0x54(%rbp),%rcx
movsd  %xmm0,(%rax,%rcx,8)
mov    -0x38(%rbp),%rax
movslq -0x54(%rbp),%rcx
movsd  (%rax,%rcx,8),%xmm0
mov    -0x40(%rbp),%rax
movslq -0x54(%rbp),%rcx
movsd  (%rax,%rcx,8),%xmm1
lea    0xbca(%rip),%rdi
mov    $0x2,%al
call   1060 <printf@plt>
mov    -0x54(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x54(%rbp)
jmp    13a9 <main+0x259>
lea    0xbb7(%rip),%rdi
mov    $0x0,%al
call   1060 <printf@plt>
mov    -0x38(%rbp),%rdi
call   1030 <free@plt>
mov    -0x40(%rbp),%rdi
call   1030 <free@plt>
movsd  -0x18(%rbp),%xmm0
subsd  -0x10(%rbp),%xmm0
movsd  0xb73(%rip),%xmm1
divsd  %xmm1,%xmm0
movsd  0xb57(%rip),%xmm1
addsd  %xmm1,%xmm0
cvttsd2si %xmm0,%eax
mov    %eax,-0x58(%rbp)
mov    -0x58(%rbp),%eax
add    $0x1,%eax
cltq
shl    $0x3,%rax
mov    %eax,%edi
call   1070 <malloc@plt>
mov    %rax,-0x48(%rbp)
mov    -0x58(%rbp),%eax
add    $0x1,%eax
cltq
shl    $0x3,%rax
mov    %eax,%edi
call   1070 <malloc@plt>
mov    %rax,-0x38(%rbp)
cvttsd2si -0x10(%rbp),%eax
mov    %eax,-0x54(%rbp)
mov    -0x54(%rbp),%eax
mov    -0x58(%rbp),%ecx
add    $0x1,%ecx
cmp    %ecx,%eax
jge    1572 <main+0x422>
movsd  -0x10(%rbp),%xmm1
cvtsi2sdl -0x54(%rbp),%xmm0
movsd  0xb03(%rip),%xmm2
mulsd  %xmm2,%xmm0
addsd  %xmm1,%xmm0
mov    -0x38(%rbp),%rax
movslq -0x54(%rbp),%rcx
movsd  %xmm0,(%rax,%rcx,8)
mov    -0x38(%rbp),%rax
movslq -0x54(%rbp),%rcx
movsd  (%rax,%rcx,8),%xmm0
movsd  %xmm0,-0x70(%rbp)
mov    -0x38(%rbp),%rax
movslq -0x54(%rbp),%rcx
movsd  (%rax,%rcx,8),%xmm0
call   1040 <freal@plt>
movaps %xmm0,%xmm1
movsd  -0x70(%rbp),%xmm0
lea    0xacb(%rip),%rdi
mov    $0x2,%al
call   1060 <printf@plt>
mov    -0x54(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x54(%rbp)
jmp    14f2 <main+0x3a2>
mov    -0x4(%rbp),%eax
add    $0x70,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %r15
push   %r14
push   %r13
push   %r12
push   %rbx
sub    $0x10,%rsp
mov    $0x60,%edi
call   1080 <malloc@plt>
mov    %rax,%r13
mov    $0x60,%edi
call   1080 <malloc@plt>
mov    %rax,%r14
movq   $0x0,0x0(%r13)
movabs $0x4010000000000000,%r12
mov    %r12,(%rax)
movsd  0x0(%r13),%xmm0
lea    0xe77(%rip),%r15
movsd  0xe4f(%rip),%xmm1
mov    %r15,%rdi
mov    $0x2,%al
call   1070 <printf@plt>
mov    $0x1,%ebx
movsd  -0x8(%r13,%rbx,8),%xmm0
movapd %xmm0,%xmm1
movsd  0xe35(%rip),%xmm2
addsd  %xmm2,%xmm1
movsd  %xmm1,0x0(%r13,%rbx,8)
movsd  -0x8(%r14,%rbx,8),%xmm1
movsd  %xmm1,0x8(%rsp)
call   1060 <f@plt>
mulsd  0xe10(%rip),%xmm0
movsd  0x8(%rsp),%xmm1
addsd  %xmm0,%xmm1
movsd  %xmm1,(%r14,%rbx,8)
movsd  0x0(%r13,%rbx,8),%xmm0
mov    %r15,%rdi
mov    $0x2,%al
call   1070 <printf@plt>
add    $0x1,%rbx
cmp    $0xc,%rbx
jne    11c0 <main+0x60>
lea    0xdfd(%rip),%rdi
call   1050 <puts@plt>
mov    %r13,%rdi
call   1030 <free@plt>
mov    %r14,%rdi
call   1030 <free@plt>
mov    $0x330,%edi
call   1080 <malloc@plt>
mov    %rax,%r13
mov    $0x330,%edi
call   1080 <malloc@plt>
mov    %rax,%r14
movq   $0x0,0x0(%r13)
mov    %r12,(%rax)
movsd  0x0(%r13),%xmm0
lea    0xdaf(%rip),%r15
movsd  0xd87(%rip),%xmm1
mov    %r15,%rdi
mov    $0x2,%al
call   1070 <printf@plt>
mov    $0x1,%ebx
nopl   0x0(%rax,%rax,1)
movsd  -0x8(%r13,%rbx,8),%xmm0
movapd %xmm0,%xmm1
movsd  0xd6d(%rip),%xmm2
addsd  %xmm2,%xmm1
movsd  %xmm1,0x0(%r13,%rbx,8)
movsd  -0x8(%r14,%rbx,8),%xmm1
movsd  %xmm1,0x8(%rsp)
call   1060 <f@plt>
mulsd  0xd48(%rip),%xmm0
movsd  0x8(%rsp),%xmm1
addsd  %xmm0,%xmm1
movsd  %xmm1,(%r14,%rbx,8)
movsd  0x0(%r13,%rbx,8),%xmm0
mov    %r15,%rdi
mov    $0x2,%al
call   1070 <printf@plt>
add    $0x1,%rbx
cmp    $0x66,%rbx
jne    1290 <main+0x130>
lea    0xd2d(%rip),%rdi
call   1050 <puts@plt>
mov    %r13,%rdi
call   1030 <free@plt>
mov    %r14,%rdi
call   1030 <free@plt>
mov    $0x330,%edi
call   1080 <malloc@plt>
mov    $0x330,%edi
call   1080 <malloc@plt>
mov    %rax,%r15
xor    %ebx,%ebx
lea    0xcf1(%rip),%r14
nop
xorps  %xmm0,%xmm0
cvtsi2sd %ebx,%xmm0
mulsd  0xcd1(%rip),%xmm0
addsd  0xcd1(%rip),%xmm0
movsd  %xmm0,0x8(%rsp)
movsd  %xmm0,(%r15,%rbx,8)
call   1040 <freal@plt>
movapd %xmm0,%xmm1
mov    %r14,%rdi
movsd  0x8(%rsp),%xmm0
mov    $0x2,%al
call   1070 <printf@plt>
add    $0x1,%rbx
cmp    $0x66,%rbx
jne    1330 <main+0x1d0>
xor    %eax,%eax
add    $0x10,%rsp
pop    %rbx
pop    %r12
pop    %r13
pop    %r14
pop    %r15
ret

LLVM IR (-O0):
@.str = [9 x i8] c"%lf %lf\0A\00"
@.str.1 = [3 x i8] c"\0A\0A\00"
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 i32
%12 = alloca i32
store i32 0, i32* %1
store double 0.000000e+00, double* %2
store double 1.000000e+00, double* %3
store double 1.000000e-01, double* %4
store double 1.000000e-02, double* %5
store double 1.000000e-03, double* %6
%13 = load double, double* %3
%14 = load double, double* %2
%15 = fsub double %13, %14
%16 = load double, double* %4
%17 = fdiv double %15, %16
%18 = fadd double %17, 1.000000e+00
%19 = fptosi double %18 to i32
store i32 %19, i32* %12
%20 = load i32, i32* %12
%21 = add nsw i32 %20, 1
%22 = sext i32 %21 to i64
%23 = mul i64 %22, 8
%24 = trunc i64 %23 to i32
%25 = call i64 @malloc(i32 %24)
%26 = inttoptr i64 %25 to double*
store double* %26, double** %7
%27 = load i32, i32* %12
%28 = add nsw i32 %27, 1
%29 = sext i32 %28 to i64
%30 = mul i64 %29, 8
%31 = trunc i64 %30 to i32
%32 = call i64 @malloc(i32 %31)
%33 = inttoptr i64 %32 to double*
store double* %33, double** %8
%34 = load double, double* %2
%35 = load double*, double** %7
%36 = getelementptr inbounds double, double* %35, i64 0
store double %34, double* %36
%37 = load double*, double** %8
%38 = getelementptr inbounds double, double* %37, i64 0
store double 4.000000e+00, double* %38
%39 = load double*, double** %7
%40 = getelementptr inbounds double, double* %39, i64 0
%41 = load double, double* %40
%42 = load double*, double** %8
%43 = getelementptr inbounds double, double* %42, i64 0
%44 = load double, double* %43
%45 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str, i64 0, i64 0), double %41, double %44)
store i32 1, i32* %11
br label %46
46: ; preds = %100, %0
%47 = load i32, i32* %11
%48 = load i32, i32* %12
%49 = add nsw i32 %48, 1
%50 = icmp slt i32 %47, %49
br i1 %50, label %51, label %103
51: ; preds = %46
%52 = load double*, double** %7
%53 = load i32, i32* %11
%54 = sub nsw i32 %53, 1
%55 = sext i32 %54 to i64
%56 = getelementptr inbounds double, double* %52, i64 %55
%57 = load double, double* %56
%58 = load double, double* %4
%59 = fadd double %57, %58
%60 = load double*, double** %7
%61 = load i32, i32* %11
%62 = sext i32 %61 to i64
%63 = getelementptr inbounds double, double* %60, i64 %62
store double %59, double* %63
%64 = load double*, double** %8
%65 = load i32, i32* %11
%66 = sub nsw i32 %65, 1
%67 = sext i32 %66 to i64
%68 = getelementptr inbounds double, double* %64, i64 %67
%69 = load double, double* %68
%70 = load double*, double** %7
%71 = load i32, i32* %11
%72 = sub nsw i32 %71, 1
%73 = sext i32 %72 to i64
%74 = getelementptr inbounds double, double* %70, i64 %73
%75 = load double, double* %74
%76 = load double*, double** %8
%77 = load i32, i32* %11
%78 = sub nsw i32 %77, 1
%79 = sext i32 %78 to i64
%80 = getelementptr inbounds double, double* %76, i64 %79
%81 = load double, double* %80
%82 = call double @f(double %75, double %81)
%83 = load double, double* %4
%84 = call double @llvm.fmuladd.f64(double %82, double %83, double %69)
%85 = load double*, double** %8
%86 = load i32, i32* %11
%87 = sext i32 %86 to i64
%88 = getelementptr inbounds double, double* %85, i64 %87
store double %84, double* %88
%89 = load double*, double** %7
%90 = load i32, i32* %11
%91 = sext i32 %90 to i64
%92 = getelementptr inbounds double, double* %89, i64 %91
%93 = load double, double* %92
%94 = load double*, double** %8
%95 = load i32, i32* %11
%96 = sext i32 %95 to i64
%97 = getelementptr inbounds double, double* %94, i64 %96
%98 = load double, double* %97
%99 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str, i64 0, i64 0), double %93, double %98)
br label %100
100: ; preds = %51
%101 = load i32, i32* %11
%102 = add nsw i32 %101, 1
store i32 %102, i32* %11
br label %46
103: ; preds = %46
%104 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.1, i64 0, i64 0))
%105 = load double*, double** %7
%106 = call i32 @free(double* %105)
%107 = load double*, double** %8
%108 = call i32 @free(double* %107)
%109 = load double, double* %3
%110 = load double, double* %2
%111 = fsub double %109, %110
%112 = load double, double* %5
%113 = fdiv double %111, %112
%114 = fadd double %113, 1.000000e+00
%115 = fptosi double %114 to i32
store i32 %115, i32* %12
%116 = load i32, i32* %12
%117 = add nsw i32 %116, 1
%118 = sext i32 %117 to i64
%119 = mul i64 %118, 8
%120 = trunc i64 %119 to i32
%121 = call i64 @malloc(i32 %120)
%122 = inttoptr i64 %121 to double*
store double* %122, double** %7
%123 = load i32, i32* %12
%124 = add nsw i32 %123, 1
%125 = sext i32 %124 to i64
%126 = mul i64 %125, 8
%127 = trunc i64 %126 to i32
%128 = call i64 @malloc(i32 %127)
%129 = inttoptr i64 %128 to double*
store double* %129, double** %8
%130 = load double, double* %2
%131 = load double*, double** %7
%132 = getelementptr inbounds double, double* %131, i64 0
store double %130, double* %132
%133 = load double*, double** %8
%134 = getelementptr inbounds double, double* %133, i64 0
store double 4.000000e+00, double* %134
%135 = load double*, double** %7
%136 = getelementptr inbounds double, double* %135, i64 0
%137 = load double, double* %136
%138 = load double*, double** %8
%139 = getelementptr inbounds double, double* %138, i64 0
%140 = load double, double* %139
%141 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str, i64 0, i64 0), double %137, double %140)
store i32 1, i32* %11
br label %142
142: ; preds = %196, %103
%143 = load i32, i32* %11
%144 = load i32, i32* %12
%145 = add nsw i32 %144, 1
%146 = icmp slt i32 %143, %145
br i1 %146, label %147, label %199
147: ; preds = %142
%148 = load double*, double** %7
%149 = load i32, i32* %11
%150 = sub nsw i32 %149, 1
%151 = sext i32 %150 to i64
%152 = getelementptr inbounds double, double* %148, i64 %151
%153 = load double, double* %152
%154 = load double, double* %5
%155 = fadd double %153, %154
%156 = load double*, double** %7
%157 = load i32, i32* %11
%158 = sext i32 %157 to i64
%159 = getelementptr inbounds double, double* %156, i64 %158
store double %155, double* %159
%160 = load double*, double** %8
%161 = load i32, i32* %11
%162 = sub nsw i32 %161, 1
%163 = sext i32 %162 to i64
%164 = getelementptr inbounds double, double* %160, i64 %163
%165 = load double, double* %164
%166 = load double*, double** %7
%167 = load i32, i32* %11
%168 = sub nsw i32 %167, 1
%169 = sext i32 %168 to i64
%170 = getelementptr inbounds double, double* %166, i64 %169
%171 = load double, double* %170
%172 = load double*, double** %8
%173 = load i32, i32* %11
%174 = sub nsw i32 %173, 1
%175 = sext i32 %174 to i64
%176 = getelementptr inbounds double, double* %172, i64 %175
%177 = load double, double* %176
%178 = call double @f(double %171, double %177)
%179 = load double, double* %5
%180 = call double @llvm.fmuladd.f64(double %178, double %179, double %165)
%181 = load double*, double** %8
%182 = load i32, i32* %11
%183 = sext i32 %182 to i64
%184 = getelementptr inbounds double, double* %181, i64 %183
store double %180, double* %184
%185 = load double*, double** %7
%186 = load i32, i32* %11
%187 = sext i32 %186 to i64
%188 = getelementptr inbounds double, double* %185, i64 %187
%189 = load double, double* %188
%190 = load double*, double** %8
%191 = load i32, i32* %11
%192 = sext i32 %191 to i64
%193 = getelementptr inbounds double, double* %190, i64 %192
%194 = load double, double* %193
%195 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str, i64 0, i64 0), double %189, double %194)
br label %196
196: ; preds = %147
%197 = load i32, i32* %11
%198 = add nsw i32 %197, 1
store i32 %198, i32* %11
br label %142
199: ; preds = %142
%200 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.1, i64 0, i64 0))
%201 = load double*, double** %7
%202 = call i32 @free(double* %201)
%203 = load double*, double** %8
%204 = call i32 @free(double* %203)
%205 = load double, double* %3
%206 = load double, double* %2
%207 = fsub double %205, %206
%208 = fdiv double %207, 1.000000e-02
%209 = fadd double %208, 1.000000e+00
%210 = fptosi double %209 to i32
store i32 %210, i32* %12
%211 = load i32, i32* %12
%212 = add nsw i32 %211, 1
%213 = sext i32 %212 to i64
%214 = mul i64 %213, 8
%215 = trunc i64 %214 to i32
%216 = call i64 @malloc(i32 %215)
%217 = inttoptr i64 %216 to double*
store double* %217, double** %9
%218 = load i32, i32* %12
%219 = add nsw i32 %218, 1
%220 = sext i32 %219 to i64
%221 = mul i64 %220, 8
%222 = trunc i64 %221 to i32
%223 = call i64 @malloc(i32 %222)
%224 = inttoptr i64 %223 to double*
store double* %224, double** %7
%225 = load double, double* %2
%226 = fptosi double %225 to i32
store i32 %226, i32* %11
br label %227
227: ; preds = %253, %199
%228 = load i32, i32* %11
%229 = load i32, i32* %12
%230 = add nsw i32 %229, 1
%231 = icmp slt i32 %228, %230
br i1 %231, label %232, label %256
232: ; preds = %227
%233 = load double, double* %2
%234 = load i32, i32* %11
%235 = sitofp i32 %234 to double
%236 = call double @llvm.fmuladd.f64(double %235, double 1.000000e-02, double %233)
%237 = load double*, double** %7
%238 = load i32, i32* %11
%239 = sext i32 %238 to i64
%240 = getelementptr inbounds double, double* %237, i64 %239
store double %236, double* %240
%241 = load double*, double** %7
%242 = load i32, i32* %11
%243 = sext i32 %242 to i64
%244 = getelementptr inbounds double, double* %241, i64 %243
%245 = load double, double* %244
%246 = load double*, double** %7
%247 = load i32, i32* %11
%248 = sext i32 %247 to i64
%249 = getelementptr inbounds double, double* %246, i64 %248
%250 = load double, double* %249
%251 = call double @freal(double %250)
%252 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str, i64 0, i64 0), double %245, double %251)
br label %253
253: ; preds = %232
%254 = load i32, i32* %11
%255 = add nsw i32 %254, 1
store i32 %255, i32* %11
br label %227
256: ; preds = %227
%257 = load i32, i32* %1
ret i32 %257
}

LLVM IR (-O2):
@.str = [9 x i8] c"%lf %lf\0A\00"
@str.2 = [2 x i8] c"\0A\00"
define i32 @main() {
%1 = tail call i64 @malloc(i32 96)
%2 = inttoptr i64 %1 to double*
%3 = tail call i64 @malloc(i32 96)
%4 = inttoptr i64 %3 to double*
store double 0.000000e+00, double* %2
store double 4.000000e+00, double* %4
%5 = load double, double* %2
%6 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([9 x i8], [9 x i8]* @.str, i64 0, i64 0), double %5, double 4.000000e+00)
br label %7
7: ; preds = %0, %7
%8 = phi i64 [ 1, %0 ], [ %21, %7 ]
%9 = add nsw i64 %8, -1
%10 = getelementptr inbounds double, double* %2, i64 %9
%11 = load double, double* %10
%12 = fadd double %11, 1.000000e-01
%13 = getelementptr inbounds double, double* %2, i64 %8
store double %12, double* %13
%14 = getelementptr inbounds double, double* %4, i64 %9
%15 = load double, double* %14
%16 = tail call double @f(double %11, double %15)
%17 = tail call double @llvm.fmuladd.f64(double %16, double 1.000000e-01, double %15)
%18 = getelementptr inbounds double, double* %4, i64 %8
store double %17, double* %18
%19 = load double, double* %13
%20 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([9 x i8], [9 x i8]* @.str, i64 0, i64 0), double %19, double %17)
%21 = add nuw nsw i64 %8, 1
%22 = icmp eq i64 %21, 12
br i1 %22, label %23, label %7
23: ; preds = %7
%24 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([2 x i8], [2 x i8]* @str.2, i64 0, i64 0))
%25 = tail call i32 @free(double* %2)
%26 = tail call i32 @free(double* %4)
%27 = tail call i64 @malloc(i32 816)
%28 = inttoptr i64 %27 to double*
%29 = tail call i64 @malloc(i32 816)
%30 = inttoptr i64 %29 to double*
store double 0.000000e+00, double* %28
store double 4.000000e+00, double* %30
%31 = load double, double* %28
%32 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([9 x i8], [9 x i8]* @.str, i64 0, i64 0), double %31, double 4.000000e+00)
br label %33
33: ; preds = %23, %33
%34 = phi i64 [ 1, %23 ], [ %47, %33 ]
%35 = add nsw i64 %34, -1
%36 = getelementptr inbounds double, double* %28, i64 %35
%37 = load double, double* %36
%38 = fadd double %37, 1.000000e-02
%39 = getelementptr inbounds double, double* %28, i64 %34
store double %38, double* %39
%40 = getelementptr inbounds double, double* %30, i64 %35
%41 = load double, double* %40
%42 = tail call double @f(double %37, double %41)
%43 = tail call double @llvm.fmuladd.f64(double %42, double 1.000000e-02, double %41)
%44 = getelementptr inbounds double, double* %30, i64 %34
store double %43, double* %44
%45 = load double, double* %39
%46 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([9 x i8], [9 x i8]* @.str, i64 0, i64 0), double %45, double %43)
%47 = add nuw nsw i64 %34, 1
%48 = icmp eq i64 %47, 102
br i1 %48, label %49, label %33
49: ; preds = %33
%50 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([2 x i8], [2 x i8]* @str.2, i64 0, i64 0))
%51 = tail call i32 @free(double* %28)
%52 = tail call i32 @free(double* %30)
%53 = tail call i64 @malloc(i32 816)
%54 = tail call i64 @malloc(i32 816)
%55 = inttoptr i64 %54 to double*
br label %56
56: ; preds = %49, %56
%57 = phi i64 [ 0, %49 ], [ %64, %56 ]
%58 = trunc i64 %57 to i32
%59 = sitofp i32 %58 to double
%60 = tail call double @llvm.fmuladd.f64(double %59, double 1.000000e-02, double 0.000000e+00)
%61 = getelementptr inbounds double, double* %55, i64 %57
store double %60, double* %61
%62 = tail call double @freal(double %60)
%63 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([9 x i8], [9 x i8]* @.str, i64 0, i64 0), double %60, double %62)
%64 = add nuw nsw i64 %57, 1
%65 = icmp eq i64 %64, 102
br i1 %65, label %66, label %56
66: ; preds = %56
ret i32 0
}