#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*/ printf(char *, ...);
void visualise(double *arr, double min, double max, int clear) {
  int i, j;
  unsigned int count;
  double r1 = ((max - min) * 0.1429) + min;
  double r2 = ((max - min) * 0.28571) + min;
  double r3 = ((max - min) * 0.42857) + min;
  double r4 = ((max - min) * 0.57128) + min;
  double r5 = ((max - min) * 0.71429) + min;
  double r6 = ((max - min) * 0.85714) + min;
  char field[(51 * (9 * 101 + 1)) + 1];
  if (clear != 0)
    printf("\033[2J");
  printf("\033[1m");
  count = 0;
  for (j = 51 - 1; j >= 0; j--) {
    for (i = 0; i < 101; i++) {
      field[count] = '\033';
      field[count + 1] = '[';
      field[count + 2] = '3';
      if (arr[101 * j + i] < r1)
        field[count + 3] = '4';
      else if (arr[101 * j + i] < r2 && arr[101 * j + i] >= r1)
        field[count + 3] = '6';
      else if (arr[101 * j + i] < r3 && arr[101 * j + i] >= r2)
        field[count + 3] = '2';
      else if (arr[101 * j + i] < r4 && arr[101 * j + i] >= r3)
        field[count + 3] = '7';
      else if (arr[101 * j + i] < r5 && arr[101 * j + i] >= r4)
        field[count + 3] = '3';
      else if (arr[101 * j + i] < r6 && arr[101 * j + i] >= r5)
        field[count + 3] = '1';
      else
        field[count + 3] = '5';
      field[count + 4] = ';';
      field[count + 5] = '1';
      field[count + 6] = 'm';
      field[count + 7] = '#';
      field[count + 8] = '#';
      count += 9;
    }
    field[count] = '\n';
    count += 1;
  }
  field[count] = '\0';
  printf("%s", field);
  printf("\033[0m");
}


x86 assembly (clang, -O0):
<visualise>:
push   %rbp
mov    %rsp,%rbp
sub    $0xb5b0,%rsp
mov    %rdi,-0x8(%rbp)
movsd  %xmm0,-0x10(%rbp)
movsd  %xmm1,-0x18(%rbp)
mov    %esi,-0x1c(%rbp)
movsd  -0x18(%rbp),%xmm0
subsd  -0x10(%rbp),%xmm0
movsd  -0x10(%rbp),%xmm1
movsd  0xee5(%rip),%xmm2
mulsd  %xmm2,%xmm0
addsd  %xmm1,%xmm0
movsd  %xmm0,-0x30(%rbp)
movsd  -0x18(%rbp),%xmm0
subsd  -0x10(%rbp),%xmm0
movsd  -0x10(%rbp),%xmm1
movsd  0xeb9(%rip),%xmm2
mulsd  %xmm2,%xmm0
addsd  %xmm1,%xmm0
movsd  %xmm0,-0x38(%rbp)
movsd  -0x18(%rbp),%xmm0
subsd  -0x10(%rbp),%xmm0
movsd  -0x10(%rbp),%xmm1
movsd  0xe8d(%rip),%xmm2
mulsd  %xmm2,%xmm0
addsd  %xmm1,%xmm0
movsd  %xmm0,-0x40(%rbp)
movsd  -0x18(%rbp),%xmm0
subsd  -0x10(%rbp),%xmm0
movsd  -0x10(%rbp),%xmm1
movsd  0xe61(%rip),%xmm2
mulsd  %xmm2,%xmm0
addsd  %xmm1,%xmm0
movsd  %xmm0,-0x48(%rbp)
movsd  -0x18(%rbp),%xmm0
subsd  -0x10(%rbp),%xmm0
movsd  -0x10(%rbp),%xmm1
movsd  0xe35(%rip),%xmm2
mulsd  %xmm2,%xmm0
addsd  %xmm1,%xmm0
movsd  %xmm0,-0x50(%rbp)
movsd  -0x18(%rbp),%xmm0
subsd  -0x10(%rbp),%xmm0
movsd  -0x10(%rbp),%xmm1
movsd  0xe09(%rip),%xmm2
mulsd  %xmm2,%xmm0
addsd  %xmm1,%xmm0
movsd  %xmm0,-0x58(%rbp)
cmpl   $0x0,-0x1c(%rbp)
je     121c <visualise+0x10c>
lea    0xe1b(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0xe12(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
movl   $0x0,-0x28(%rbp)
movl   $0x32,-0x24(%rbp)
cmpl   $0x0,-0x24(%rbp)
jl     1510 <visualise+0x400>
movl   $0x0,-0x20(%rbp)
cmpl   $0x65,-0x20(%rbp)
jge    14ee <visualise+0x3de>
mov    -0x28(%rbp),%eax
movb   $0x1b,-0xb5b0(%rbp,%rax,1)
1b
mov    -0x28(%rbp),%eax
add    $0x1,%eax
mov    %eax,%eax
movb   $0x5b,-0xb5b0(%rbp,%rax,1)
5b
mov    -0x28(%rbp),%eax
add    $0x2,%eax
mov    %eax,%eax
movb   $0x33,-0xb5b0(%rbp,%rax,1)
33
mov    -0x8(%rbp),%rax
imul   $0x65,-0x24(%rbp),%ecx
add    -0x20(%rbp),%ecx
movslq %ecx,%rcx
movsd  (%rax,%rcx,8),%xmm1
movsd  -0x30(%rbp),%xmm0
ucomisd %xmm1,%xmm0
jbe    12b5 <visualise+0x1a5>
mov    -0x28(%rbp),%eax
add    $0x3,%eax
mov    %eax,%eax
movb   $0x34,-0xb5b0(%rbp,%rax,1)
34
jmp    1487 <visualise+0x377>
mov    -0x8(%rbp),%rax
imul   $0x65,-0x24(%rbp),%ecx
add    -0x20(%rbp),%ecx
movslq %ecx,%rcx
movsd  (%rax,%rcx,8),%xmm1
movsd  -0x38(%rbp),%xmm0
ucomisd %xmm1,%xmm0
jbe    130a <visualise+0x1fa>
mov    -0x8(%rbp),%rax
imul   $0x65,-0x24(%rbp),%ecx
add    -0x20(%rbp),%ecx
movslq %ecx,%rcx
movsd  (%rax,%rcx,8),%xmm0
ucomisd -0x30(%rbp),%xmm0
jb     130a <visualise+0x1fa>
mov    -0x28(%rbp),%eax
add    $0x3,%eax
mov    %eax,%eax
movb   $0x36,-0xb5b0(%rbp,%rax,1)
36
jmp    1482 <visualise+0x372>
mov    -0x8(%rbp),%rax
imul   $0x65,-0x24(%rbp),%ecx
add    -0x20(%rbp),%ecx
movslq %ecx,%rcx
movsd  (%rax,%rcx,8),%xmm1
movsd  -0x40(%rbp),%xmm0
ucomisd %xmm1,%xmm0
jbe    135f <visualise+0x24f>
mov    -0x8(%rbp),%rax
imul   $0x65,-0x24(%rbp),%ecx
add    -0x20(%rbp),%ecx
movslq %ecx,%rcx
movsd  (%rax,%rcx,8),%xmm0
ucomisd -0x38(%rbp),%xmm0
jb     135f <visualise+0x24f>
mov    -0x28(%rbp),%eax
add    $0x3,%eax
mov    %eax,%eax
movb   $0x32,-0xb5b0(%rbp,%rax,1)
32
jmp    147d <visualise+0x36d>
mov    -0x8(%rbp),%rax
imul   $0x65,-0x24(%rbp),%ecx
add    -0x20(%rbp),%ecx
movslq %ecx,%rcx
movsd  (%rax,%rcx,8),%xmm1
movsd  -0x48(%rbp),%xmm0
ucomisd %xmm1,%xmm0
jbe    13b4 <visualise+0x2a4>
mov    -0x8(%rbp),%rax
imul   $0x65,-0x24(%rbp),%ecx
add    -0x20(%rbp),%ecx
movslq %ecx,%rcx
movsd  (%rax,%rcx,8),%xmm0
ucomisd -0x40(%rbp),%xmm0
jb     13b4 <visualise+0x2a4>
mov    -0x28(%rbp),%eax
add    $0x3,%eax
mov    %eax,%eax
movb   $0x37,-0xb5b0(%rbp,%rax,1)
37
jmp    1478 <visualise+0x368>
mov    -0x8(%rbp),%rax
imul   $0x65,-0x24(%rbp),%ecx
add    -0x20(%rbp),%ecx
movslq %ecx,%rcx
movsd  (%rax,%rcx,8),%xmm1
movsd  -0x50(%rbp),%xmm0
ucomisd %xmm1,%xmm0
jbe    1409 <visualise+0x2f9>
mov    -0x8(%rbp),%rax
imul   $0x65,-0x24(%rbp),%ecx
add    -0x20(%rbp),%ecx
movslq %ecx,%rcx
movsd  (%rax,%rcx,8),%xmm0
ucomisd -0x48(%rbp),%xmm0
jb     1409 <visualise+0x2f9>
mov    -0x28(%rbp),%eax
add    $0x3,%eax
mov    %eax,%eax
movb   $0x33,-0xb5b0(%rbp,%rax,1)
33
jmp    1473 <visualise+0x363>
mov    -0x8(%rbp),%rax
imul   $0x65,-0x24(%rbp),%ecx
add    -0x20(%rbp),%ecx
movslq %ecx,%rcx
movsd  (%rax,%rcx,8),%xmm1
movsd  -0x58(%rbp),%xmm0
ucomisd %xmm1,%xmm0
jbe    145e <visualise+0x34e>
mov    -0x8(%rbp),%rax
imul   $0x65,-0x24(%rbp),%ecx
add    -0x20(%rbp),%ecx
movslq %ecx,%rcx
movsd  (%rax,%rcx,8),%xmm0
ucomisd -0x50(%rbp),%xmm0
jb     145e <visualise+0x34e>
mov    -0x28(%rbp),%eax
add    $0x3,%eax
mov    %eax,%eax
movb   $0x31,-0xb5b0(%rbp,%rax,1)
31
jmp    146e <visualise+0x35e>
mov    -0x28(%rbp),%eax
add    $0x3,%eax
mov    %eax,%eax
movb   $0x35,-0xb5b0(%rbp,%rax,1)
35
jmp    1473 <visualise+0x363>
jmp    1478 <visualise+0x368>
jmp    147d <visualise+0x36d>
jmp    1482 <visualise+0x372>
jmp    1487 <visualise+0x377>
mov    -0x28(%rbp),%eax
add    $0x4,%eax
mov    %eax,%eax
movb   $0x3b,-0xb5b0(%rbp,%rax,1)
3b
mov    -0x28(%rbp),%eax
add    $0x5,%eax
mov    %eax,%eax
movb   $0x31,-0xb5b0(%rbp,%rax,1)
31
mov    -0x28(%rbp),%eax
add    $0x6,%eax
mov    %eax,%eax
movb   $0x6d,-0xb5b0(%rbp,%rax,1)
6d
mov    -0x28(%rbp),%eax
add    $0x7,%eax
mov    %eax,%eax
movb   $0x23,-0xb5b0(%rbp,%rax,1)
23
mov    -0x28(%rbp),%eax
add    $0x8,%eax
mov    %eax,%eax
movb   $0x23,-0xb5b0(%rbp,%rax,1)
23
mov    -0x28(%rbp),%eax
add    $0x9,%eax
mov    %eax,-0x28(%rbp)
mov    -0x20(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x20(%rbp)
jmp    1249 <visualise+0x139>
mov    -0x28(%rbp),%eax
movb   $0xa,-0xb5b0(%rbp,%rax,1)
0a
mov    -0x28(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x28(%rbp)
mov    -0x24(%rbp),%eax
add    $0xffffffff,%eax
mov    %eax,-0x24(%rbp)
jmp    1238 <visualise+0x128>
mov    -0x28(%rbp),%eax
movb   $0x0,-0xb5b0(%rbp,%rax,1)
lea    -0xb5b0(%rbp),%rsi
lea    0xb11(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0xb06(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
add    $0xb5b0,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<visualise>:
push   %rbp
push   %rbx
sub    $0xb598,%rsp
mov    %rdi,%rbx
subsd  %xmm0,%xmm1
movsd  0xed8(%rip),%xmm6
mulsd  %xmm1,%xmm6
movsd  0xed4(%rip),%xmm2
mulsd  %xmm1,%xmm2
movsd  0xed0(%rip),%xmm3
mulsd  %xmm1,%xmm3
movsd  0xecc(%rip),%xmm4
mulsd  %xmm1,%xmm4
movsd  0xec8(%rip),%xmm5
mulsd  %xmm1,%xmm5
mulsd  0xec4(%rip),%xmm1
test   %esi,%esi
je     11ca <visualise+0xba>
lea    0xec1(%rip),%rdi
xor    %eax,%eax
movsd  %xmm1,0x30(%rsp)
movsd  %xmm6,0x28(%rsp)
movsd  %xmm2,0x20(%rsp)
movsd  %xmm3,0x18(%rsp)
movsd  %xmm4,0x10(%rsp)
movsd  %xmm5,0x8(%rsp)
movsd  %xmm0,0x38(%rsp)
call   1030 <printf@plt>
movsd  0x38(%rsp),%xmm0
movsd  0x8(%rsp),%xmm5
movsd  0x10(%rsp),%xmm4
movsd  0x18(%rsp),%xmm3
movsd  0x20(%rsp),%xmm2
movsd  0x28(%rsp),%xmm6
movsd  0x30(%rsp),%xmm1
addsd  %xmm0,%xmm6
movsd  %xmm6,0x28(%rsp)
addsd  %xmm0,%xmm2
movsd  %xmm2,0x20(%rsp)
addsd  %xmm0,%xmm3
movsd  %xmm3,0x18(%rsp)
addsd  %xmm0,%xmm4
movsd  %xmm4,0x10(%rsp)
addsd  %xmm0,%xmm5
movsd  %xmm5,0x8(%rsp)
addsd  %xmm0,%xmm1
movsd  %xmm1,0x30(%rsp)
lea    0xe28(%rip),%rdi
xor    %ebp,%ebp
xor    %eax,%eax
call   1030 <printf@plt>
movsd  0x8(%rsp),%xmm6
movsd  0x10(%rsp),%xmm5
movsd  0x18(%rsp),%xmm4
movsd  0x20(%rsp),%xmm3
movsd  0x28(%rsp),%xmm2
movsd  0x30(%rsp),%xmm1
add    $0x9dd0,%rbx
mov    $0x32,%eax
jmp    1278 <visualise+0x168>
nopl   0x0(%rax,%rax,1)
lea    (%rcx,%rdx,1),%esi
add    $0x38d,%esi
movb   $0xa,0x40(%rsp,%rsi,1)
lea    (%rcx,%rdx,1),%ebp
add    $0x38e,%ebp
add    $0xfffffffffffffcd8,%rbx
sub    $0x1,%rax
jb     13d4 <visualise+0x2c4>
mov    %ebp,%ecx
mov    $0xfffffffffffffc73,%rdx
mov    %rbx,%rsi
jmp    12ec <visualise+0x1dc>
cs nopw 0x0(%rax,%rax,1)
lea    (%rcx,%rdx,1),%edi
add    $0x390,%edi
movb   $0x34,0x40(%rsp,%rdi,1)
lea    (%rcx,%rdx,1),%edi
add    $0x391,%edi
movb   $0x3b,0x40(%rsp,%rdi,1)
lea    0x392(%rcx,%rdx,1),%edi
movb   $0x31,0x40(%rsp,%rdi,1)
lea    0x393(%rcx,%rdx,1),%edi
movb   $0x6d,0x40(%rsp,%rdi,1)
lea    0x394(%rcx,%rdx,1),%edi
movb   $0x23,0x40(%rsp,%rdi,1)
lea    (%rcx,%rdx,1),%edi
add    $0x395,%edi
movb   $0x23,0x40(%rsp,%rdi,1)
add    $0x8,%rsi
add    $0x9,%rdx
je     1250 <visualise+0x140>
lea    (%rcx,%rdx,1),%edi
add    $0x38d,%edi
movb   $0x1b,0x40(%rsp,%rdi,1)
lea    0x38e(%rcx,%rdx,1),%edi
movb   $0x5b,0x40(%rsp,%rdi,1)
lea    (%rcx,%rdx,1),%edi
add    $0x38f,%edi
movb   $0x33,0x40(%rsp,%rdi,1)
movsd  (%rsi),%xmm0
ucomisd %xmm0,%xmm2
ja     1290 <visualise+0x180>
ucomisd %xmm0,%xmm3
jbe    1350 <visualise+0x240>
ucomisd %xmm2,%xmm0
jb     1350 <visualise+0x240>
lea    (%rcx,%rdx,1),%edi
add    $0x390,%edi
movb   $0x36,0x40(%rsp,%rdi,1)
jmp    129e <visualise+0x18e>
cs nopw 0x0(%rax,%rax,1)
nopl   0x0(%rax,%rax,1)
ucomisd %xmm0,%xmm4
jbe    136f <visualise+0x25f>
ucomisd %xmm3,%xmm0
jb     136f <visualise+0x25f>
lea    (%rcx,%rdx,1),%edi
add    $0x390,%edi
movb   $0x32,0x40(%rsp,%rdi,1)
jmp    129e <visualise+0x18e>
ucomisd %xmm0,%xmm5
jbe    138e <visualise+0x27e>
ucomisd %xmm4,%xmm0
jb     138e <visualise+0x27e>
lea    (%rcx,%rdx,1),%edi
add    $0x390,%edi
movb   $0x37,0x40(%rsp,%rdi,1)
jmp    129e <visualise+0x18e>
ucomisd %xmm0,%xmm6
jbe    13ad <visualise+0x29d>
ucomisd %xmm5,%xmm0
jb     13ad <visualise+0x29d>
lea    (%rcx,%rdx,1),%edi
add    $0x390,%edi
movb   $0x33,0x40(%rsp,%rdi,1)
jmp    129e <visualise+0x18e>
ucomisd %xmm0,%xmm1
lea    0x390(%rcx,%rdx,1),%edi
jbe    13ca <visualise+0x2ba>
ucomisd %xmm6,%xmm0
jb     13ca <visualise+0x2ba>
movb   $0x31,0x40(%rsp,%rdi,1)
jmp    129e <visualise+0x18e>
movb   $0x35,0x40(%rsp,%rdi,1)
jmp    129e <visualise+0x18e>
lea    (%rcx,%rdx,1),%eax
add    $0x38e,%eax
movb   $0x0,0x40(%rsp,%rax,1)
lea    0xc52(%rip),%rdi
lea    0x40(%rsp),%rsi
xor    %eax,%eax
call   1030 <printf@plt>
lea    0xc42(%rip),%rdi
xor    %eax,%eax
call   1030 <printf@plt>
add    $0xb598,%rsp
pop    %rbx
pop    %rbp
ret

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

LLVM IR (-O2):
@.str = [5 x i8] c"\1B[2J\00"
@.str.1 = [5 x i8] c"\1B[1m\00"
@.str.2 = [3 x i8] c"%s\00"
@.str.3 = [5 x i8] c"\1B[0m\00"
define void @visualise(double* nocapture %0, double %1, double %2, i32 %3) {
%5 = alloca [46411 x i8]
%6 = fsub double %2, %1
%7 = tail call double @llvm.fmuladd.f64(double %6, double 1.429000e-01, double %1)
%8 = tail call double @llvm.fmuladd.f64(double %6, double 2.857100e-01, double %1)
%9 = tail call double @llvm.fmuladd.f64(double %6, double 4.285700e-01, double %1)
%10 = tail call double @llvm.fmuladd.f64(double %6, double 5.712800e-01, double %1)
%11 = tail call double @llvm.fmuladd.f64(double %6, double 7.142900e-01, double %1)
%12 = tail call double @llvm.fmuladd.f64(double %6, double 8.571400e-01, double %1)
%13 = getelementptr inbounds [46411 x i8], [46411 x i8]* %5, i64 0, i64 0
%14 = icmp eq i32 %3, 0
br i1 %14, label %17, label %15
15: ; preds = %4
%16 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([5 x i8], [5 x i8]* @.str, i64 0, i64 0))
br label %17
17: ; preds = %15, %4
%18 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([5 x i8], [5 x i8]* @.str.1, i64 0, i64 0))
br label %19
19: ; preds = %17, %102
%20 = phi i64 [ 50, %17 ], [ %106, %102 ]
%21 = phi i32 [ 0, %17 ], [ %105, %102 ]
%22 = mul nuw nsw i64 %20, 101
br label %23
23: ; preds = %19, %83
%24 = phi i64 [ 0, %19 ], [ %100, %83 ]
%25 = phi i32 [ %21, %19 ], [ %99, %83 ]
%26 = zext i32 %25 to i64
%27 = getelementptr inbounds [46411 x i8], [46411 x i8]* %5, i64 0, i64 %26
store i8 27, i8* %27
%28 = add i32 %25, 1
%29 = zext i32 %28 to i64
%30 = getelementptr inbounds [46411 x i8], [46411 x i8]* %5, i64 0, i64 %29
store i8 91, i8* %30
%31 = add i32 %25, 2
%32 = zext i32 %31 to i64
%33 = getelementptr inbounds [46411 x i8], [46411 x i8]* %5, i64 0, i64 %32
store i8 51, i8* %33
%34 = add nuw nsw i64 %24, %22
%35 = getelementptr inbounds double, double* %0, i64 %34
%36 = load double, double* %35
%37 = fcmp olt double %36, %7
br i1 %37, label %38, label %42
38: ; preds = %23
%39 = add i32 %25, 3
%40 = zext i32 %39 to i64
%41 = getelementptr inbounds [46411 x i8], [46411 x i8]* %5, i64 0, i64 %40
store i8 52, i8* %41
br label %83
42: ; preds = %23
%43 = fcmp uge double %36, %8
%44 = fcmp ult double %36, %7
%45 = select i1 %43, i1 true, i1 %44
br i1 %45, label %50, label %46
46: ; preds = %42
%47 = add i32 %25, 3
%48 = zext i32 %47 to i64
%49 = getelementptr inbounds [46411 x i8], [46411 x i8]* %5, i64 0, i64 %48
store i8 54, i8* %49
br label %83
50: ; preds = %42
%51 = fcmp uge double %36, %9
%52 = fcmp ult double %36, %8
%53 = select i1 %51, i1 true, i1 %52
br i1 %53, label %58, label %54
54: ; preds = %50
%55 = add i32 %25, 3
%56 = zext i32 %55 to i64
%57 = getelementptr inbounds [46411 x i8], [46411 x i8]* %5, i64 0, i64 %56
store i8 50, i8* %57
br label %83
58: ; preds = %50
%59 = fcmp uge double %36, %10
%60 = fcmp ult double %36, %9
%61 = select i1 %59, i1 true, i1 %60
br i1 %61, label %66, label %62
62: ; preds = %58
%63 = add i32 %25, 3
%64 = zext i32 %63 to i64
%65 = getelementptr inbounds [46411 x i8], [46411 x i8]* %5, i64 0, i64 %64
store i8 55, i8* %65
br label %83
66: ; preds = %58
%67 = fcmp uge double %36, %11
%68 = fcmp ult double %36, %10
%69 = select i1 %67, i1 true, i1 %68
br i1 %69, label %74, label %70
70: ; preds = %66
%71 = add i32 %25, 3
%72 = zext i32 %71 to i64
%73 = getelementptr inbounds [46411 x i8], [46411 x i8]* %5, i64 0, i64 %72
store i8 51, i8* %73
br label %83
74: ; preds = %66
%75 = fcmp uge double %36, %12
%76 = fcmp ult double %36, %11
%77 = select i1 %75, i1 true, i1 %76
%78 = add i32 %25, 3
%79 = zext i32 %78 to i64
%80 = getelementptr inbounds [46411 x i8], [46411 x i8]* %5, i64 0, i64 %79
br i1 %77, label %82, label %81
81: ; preds = %74
store i8 49, i8* %80
br label %83
82: ; preds = %74
store i8 53, i8* %80
br label %83
83: ; preds = %46, %62, %81, %82, %70, %54, %38
%84 = add i32 %25, 4
%85 = zext i32 %84 to i64
%86 = getelementptr inbounds [46411 x i8], [46411 x i8]* %5, i64 0, i64 %85
store i8 59, i8* %86
%87 = add i32 %25, 5
%88 = zext i32 %87 to i64
%89 = getelementptr inbounds [46411 x i8], [46411 x i8]* %5, i64 0, i64 %88
store i8 49, i8* %89
%90 = add i32 %25, 6
%91 = zext i32 %90 to i64
%92 = getelementptr inbounds [46411 x i8], [46411 x i8]* %5, i64 0, i64 %91
store i8 109, i8* %92
%93 = add i32 %25, 7
%94 = zext i32 %93 to i64
%95 = getelementptr inbounds [46411 x i8], [46411 x i8]* %5, i64 0, i64 %94
store i8 35, i8* %95
%96 = add i32 %25, 8
%97 = zext i32 %96 to i64
%98 = getelementptr inbounds [46411 x i8], [46411 x i8]* %5, i64 0, i64 %97
store i8 35, i8* %98
%99 = add i32 %25, 9
%100 = add nuw nsw i64 %24, 1
%101 = icmp eq i64 %100, 101
br i1 %101, label %102, label %23
102: ; preds = %83
%103 = zext i32 %99 to i64
%104 = getelementptr inbounds [46411 x i8], [46411 x i8]* %5, i64 0, i64 %103
store i8 10, i8* %104
%105 = add i32 %25, 10
%106 = add nsw i64 %20, -1
%107 = icmp eq i64 %20, 0
br i1 %107, label %108, label %19
108: ; preds = %102
%109 = zext i32 %105 to i64
%110 = getelementptr inbounds [46411 x i8], [46411 x i8]* %5, i64 0, i64 %109
store i8 0, i8* %110
%111 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([3 x i8], [3 x i8]* @.str.2, i64 0, i64 0), i8* %13)
%112 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([5 x i8], [5 x i8]* @.str.3, i64 0, i64 0))
ret void
}