#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 *, ...);
int /*<<< orphan*/ putchar(char);
void print_status(int clvl, int it, int k, int j, int kmax, int blksize,
                  int actblksize, double *s, double *resnrm, int *actcorrits) {
  const int max_vals = 5;
  int i, idummy;
  if (clvl >= 1) {
    if (blksize == 1) {
      if (it == 0) {
        printf("  IT   K   J       RES CGIT RITZVALS(1:5)\n");
        idummy = 27 + (13 > max_vals * 10 ? 13 : max_vals * 10);
        for (i = 0; i < idummy; i++)
          putchar('-');
        printf("\n");
      }
      printf("%4d %3d %3d %9.2e %4d", it + 1, k, j, resnrm[0], actcorrits[0]);
      for (i = 0; i < (j < max_vals ? j : max_vals); i++)
        printf(" %9.2e", s[i]);
      printf("\n");
    } else {
      if (it == 0) {
        printf("  IT   K   J RITZVALS ");
        for (i = 1; i < actblksize; i++)
          printf("          ");
        printf("   RES      ");
        for (i = 1; i < actblksize; i++)
          printf("          ");
        printf("   CGIT\n");
        idummy = 12 + 4 + blksize * (10 + 10 + 5);
        for (i = 0; i < idummy; i++)
          putchar('-');
        printf("\n");
      }
      printf("%4d %3d %3d", it + 1, k, j);
      for (i = 0; i < blksize; i++)
        if (i < actblksize)
          printf(" %9.2e", s[i]);
        else
          printf("          ");
      printf("  ");
      for (i = 0; i < blksize; i++)
        if (i < actblksize)
          printf(" %9.2e", resnrm[i]);
        else
          printf("          ");
      printf("  ");
      for (i = 0; i < blksize; i++)
        if (i < actblksize)
          printf(" %4d", actcorrits[i]);
        else
          printf("     ");
      printf("\n");
    }
  }
}


x86 assembly (clang, -O0):
<print_status>:
push   %rbp
mov    %rsp,%rbp
sub    $0x30,%rsp
mov    0x28(%rbp),%rax
mov    0x20(%rbp),%rax
mov    0x18(%rbp),%rax
mov    0x10(%rbp),%eax
mov    %edi,-0x4(%rbp)
mov    %esi,-0x8(%rbp)
mov    %edx,-0xc(%rbp)
mov    %ecx,-0x10(%rbp)
mov    %r8d,-0x14(%rbp)
mov    %r9d,-0x18(%rbp)
movl   $0x5,-0x1c(%rbp)
cmpl   $0x1,-0x4(%rbp)
jl     149c <print_status+0x37c>
cmpl   $0x1,-0x18(%rbp)
jne    1260 <print_status+0x140>
cmpl   $0x0,-0x8(%rbp)
jne    11be <print_status+0x9e>
lea    0xe89(%rip),%rdi
mov    $0x0,%al
call   1040 <printf@plt>
movl   $0x4d,-0x24(%rbp)
movl   $0x0,-0x20(%rbp)
mov    -0x20(%rbp),%eax
cmp    -0x24(%rbp),%eax
jge    11b0 <print_status+0x90>
mov    $0x2d,%edi
call   1030 <putchar@plt>
mov    -0x20(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x20(%rbp)
jmp    118c <print_status+0x6c>
lea    0xe72(%rip),%rdi
mov    $0x0,%al
call   1040 <printf@plt>
mov    -0x8(%rbp),%esi
add    $0x1,%esi
mov    -0xc(%rbp),%edx
mov    -0x10(%rbp),%ecx
mov    0x20(%rbp),%rax
movsd  (%rax),%xmm0
mov    0x28(%rbp),%rax
mov    (%rax),%r8d
lea    0xe4b(%rip),%rdi
mov    $0x1,%al
call   1040 <printf@plt>
movl   $0x0,-0x20(%rbp)
mov    -0x20(%rbp),%eax
mov    %eax,-0x28(%rbp)
cmpl   $0x5,-0x10(%rbp)
jge    1209 <print_status+0xe9>
mov    -0x10(%rbp),%eax
mov    %eax,-0x2c(%rbp)
jmp    1216 <print_status+0xf6>
mov    $0x5,%eax
mov    %eax,-0x2c(%rbp)
jmp    1216 <print_status+0xf6>
mov    -0x28(%rbp),%eax
mov    -0x2c(%rbp),%ecx
cmp    %ecx,%eax
jge    124d <print_status+0x12d>
mov    0x18(%rbp),%rax
movslq -0x20(%rbp),%rcx
movsd  (%rax,%rcx,8),%xmm0
lea    0xe09(%rip),%rdi
mov    $0x1,%al
call   1040 <printf@plt>
mov    -0x20(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x20(%rbp)
jmp    11ee <print_status+0xce>
lea    0xdd5(%rip),%rdi
mov    $0x0,%al
call   1040 <printf@plt>
jmp    1497 <print_status+0x377>
cmpl   $0x0,-0x8(%rbp)
jne    1335 <print_status+0x215>
lea    0xdd7(%rip),%rdi
mov    $0x0,%al
call   1040 <printf@plt>
movl   $0x1,-0x20(%rbp)
mov    -0x20(%rbp),%eax
cmp    0x10(%rbp),%eax
jge    12a7 <print_status+0x187>
lea    0xdcd(%rip),%rdi
mov    $0x0,%al
call   1040 <printf@plt>
mov    -0x20(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x20(%rbp)
jmp    127f <print_status+0x15f>
lea    0xdbc(%rip),%rdi
mov    $0x0,%al
call   1040 <printf@plt>
movl   $0x1,-0x20(%rbp)
mov    -0x20(%rbp),%eax
cmp    0x10(%rbp),%eax
jge    12e4 <print_status+0x1c4>
lea    0xd90(%rip),%rdi
mov    $0x0,%al
call   1040 <printf@plt>
mov    -0x20(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x20(%rbp)
jmp    12bc <print_status+0x19c>
lea    0xd8c(%rip),%rdi
mov    $0x0,%al
call   1040 <printf@plt>
imul   $0x19,-0x18(%rbp),%eax
add    $0x10,%eax
mov    %eax,-0x24(%rbp)
movl   $0x0,-0x20(%rbp)
mov    -0x20(%rbp),%eax
cmp    -0x24(%rbp),%eax
jge    1327 <print_status+0x207>
mov    $0x2d,%edi
call   1030 <putchar@plt>
mov    -0x20(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x20(%rbp)
jmp    1303 <print_status+0x1e3>
lea    0xcfb(%rip),%rdi
mov    $0x0,%al
call   1040 <printf@plt>
mov    -0x8(%rbp),%esi
add    $0x1,%esi
mov    -0xc(%rbp),%edx
mov    -0x10(%rbp),%ecx
lea    0xd38(%rip),%rdi
mov    $0x0,%al
call   1040 <printf@plt>
movl   $0x0,-0x20(%rbp)
mov    -0x20(%rbp),%eax
cmp    -0x18(%rbp),%eax
jge    13af <print_status+0x28f>
mov    -0x20(%rbp),%eax
cmp    0x10(%rbp),%eax
jge    138e <print_status+0x26e>
mov    0x18(%rbp),%rax
movslq -0x20(%rbp),%rcx
movsd  (%rax,%rcx,8),%xmm0
lea    0xcbf(%rip),%rdi
mov    $0x1,%al
call   1040 <printf@plt>
jmp    139c <print_status+0x27c>
lea    0xcca(%rip),%rdi
mov    $0x0,%al
call   1040 <printf@plt>
jmp    13a1 <print_status+0x281>
mov    -0x20(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x20(%rbp)
jmp    1356 <print_status+0x236>
lea    0xcb1(%rip),%rdi
mov    $0x0,%al
call   1040 <printf@plt>
movl   $0x0,-0x20(%rbp)
mov    -0x20(%rbp),%eax
cmp    -0x18(%rbp),%eax
jge    141d <print_status+0x2fd>
mov    -0x20(%rbp),%eax
cmp    0x10(%rbp),%eax
jge    13fc <print_status+0x2dc>
mov    0x20(%rbp),%rax
movslq -0x20(%rbp),%rcx
movsd  (%rax,%rcx,8),%xmm0
lea    0xc51(%rip),%rdi
mov    $0x1,%al
call   1040 <printf@plt>
jmp    140a <print_status+0x2ea>
lea    0xc5c(%rip),%rdi
mov    $0x0,%al
call   1040 <printf@plt>
jmp    140f <print_status+0x2ef>
mov    -0x20(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x20(%rbp)
jmp    13c4 <print_status+0x2a4>
lea    0xc43(%rip),%rdi
mov    $0x0,%al
call   1040 <printf@plt>
movl   $0x0,-0x20(%rbp)
mov    -0x20(%rbp),%eax
cmp    -0x18(%rbp),%eax
jge    1489 <print_status+0x369>
mov    -0x20(%rbp),%eax
cmp    0x10(%rbp),%eax
jge    1468 <print_status+0x348>
mov    0x28(%rbp),%rax
movslq -0x20(%rbp),%rcx
mov    (%rax,%rcx,4),%esi
lea    0xbe0(%rip),%rdi
mov    $0x0,%al
call   1040 <printf@plt>
jmp    1476 <print_status+0x356>
lea    0xbf5(%rip),%rdi
mov    $0x0,%al
call   1040 <printf@plt>
jmp    147b <print_status+0x35b>
mov    -0x20(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x20(%rbp)
jmp    1432 <print_status+0x312>
lea    0xb99(%rip),%rdi
mov    $0x0,%al
call   1040 <printf@plt>
jmp    149c <print_status+0x37c>
add    $0x30,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<print_status>:
test   %edi,%edi
jle    122e <print_status+0xfe>
push   %rbp
push   %r15
push   %r14
push   %r13
push   %r12
push   %rbx
sub    $0x28,%rsp
mov    %r9d,%r12d
mov    %ecx,%r13d
mov    %edx,%ebx
mov    %esi,%r14d
mov    0x78(%rsp),%rax
mov    %rax,0x18(%rsp)
mov    0x70(%rsp),%rax
mov    %rax,0x20(%rsp)
mov    0x68(%rsp),%r15
cmp    $0x1,%r9d
jne    122f <print_status+0xff>
test   %r14d,%r14d
mov    0x18(%rsp),%rbp
jne    11bc <print_status+0x8c>
mov    %ebx,%r12d
lea    0xed8(%rip),%rdi
call   1040 <puts@plt>
mov    $0x4d,%ebx
cs nopw 0x0(%rax,%rax,1)
nopl   0x0(%rax)
mov    $0x2d,%edi
call   1030 <putchar@plt>
add    $0xffffffff,%ebx
jne    11a0 <print_status+0x70>
mov    $0xa,%edi
call   1030 <putchar@plt>
mov    %r12d,%ebx
add    $0x1,%r14d
mov    0x20(%rsp),%rax
movsd  (%rax),%xmm0
mov    0x0(%rbp),%r8d
lea    0xe2c(%rip),%rdi
mov    %r14d,%esi
mov    %ebx,%edx
mov    %r13d,%ecx
mov    $0x1,%al
call   1050 <printf@plt>
test   %r13d,%r13d
jle    1433 <print_status+0x303>
cmp    $0x5,%r13d
mov    $0x5,%ebp
cmovb  %r13d,%ebp
xor    %ebx,%ebx
lea    0xe14(%rip),%r14
cs nopw 0x0(%rax,%rax,1)
nopl   0x0(%rax)
movsd  (%r15,%rbx,8),%xmm0
mov    %r14,%rdi
mov    $0x1,%al
call   1050 <printf@plt>
add    $0x1,%rbx
cmp    %rbx,%rbp
jne    1210 <print_status+0xe0>
jmp    1433 <print_status+0x303>
ret
mov    0x60(%rsp),%ebp
test   %r14d,%r14d
jne    1312 <print_status+0x1e2>
lea    0xdda(%rip),%rdi
xor    %eax,%eax
call   1050 <printf@plt>
cmp    $0x2,%ebp
mov    %ebx,0xc(%rsp)
mov    %rbp,0x10(%rsp)
jl     12b1 <print_status+0x181>
add    $0xffffffff,%ebp
lea    0xdd2(%rip),%rbx
cs nopw 0x0(%rax,%rax,1)
nopl   0x0(%rax)
mov    %rbx,%rdi
xor    %eax,%eax
call   1050 <printf@plt>
add    $0xffffffff,%ebp
jne    1270 <print_status+0x140>
lea    0xdb9(%rip),%rdi
xor    %eax,%eax
call   1050 <printf@plt>
mov    0x10(%rsp),%rax
lea    -0x1(%rax),%ebp
lea    0xd98(%rip),%rbx
nopl   0x0(%rax)
mov    %rbx,%rdi
xor    %eax,%eax
call   1050 <printf@plt>
add    $0xffffffff,%ebp
jne    12a0 <print_status+0x170>
jmp    12bf <print_status+0x18f>
lea    0xd87(%rip),%rdi
xor    %eax,%eax
call   1050 <printf@plt>
lea    0xd92(%rip),%rdi
call   1040 <puts@plt>
lea    (%r12,%r12,4),%eax
lea    (%rax,%rax,4),%eax
cmp    $0xfffffff1,%eax
jl     12ff <print_status+0x1cf>
add    $0xf,%eax
xor    %ebx,%ebx
test   %eax,%eax
cmovg  %eax,%ebx
add    $0x1,%ebx
cs nopw 0x0(%rax,%rax,1)
xchg   %ax,%ax
mov    $0x2d,%edi
call   1030 <putchar@plt>
add    $0xffffffff,%ebx
jne    12f0 <print_status+0x1c0>
mov    $0xa,%edi
call   1030 <putchar@plt>
mov    0xc(%rsp),%ebx
mov    0x10(%rsp),%rbp
add    $0x1,%r14d
lea    0xd2f(%rip),%rdi
mov    %r14d,%esi
mov    %ebx,%edx
mov    %r13d,%ecx
xor    %eax,%eax
call   1050 <printf@plt>
test   %r12d,%r12d
jle    1418 <print_status+0x2e8>
movslq %ebp,%r13
mov    %r12d,%ebx
lea    0xcd4(%rip),%r12
lea    0xceb(%rip),%rbp
xor    %r14d,%r14d
jmp    1363 <print_status+0x233>
xchg   %ax,%ax
mov    %rbp,%rdi
xor    %eax,%eax
call   1050 <printf@plt>
add    $0x1,%r14
cmp    %r14,%rbx
je     137a <print_status+0x24a>
cmp    %r13,%r14
jge    1350 <print_status+0x220>
movsd  (%r15,%r14,8),%xmm0
mov    %r12,%rdi
mov    $0x1,%al
call   1050 <printf@plt>
jmp    135a <print_status+0x22a>
lea    0xcbb(%rip),%rdi
xor    %eax,%eax
call   1050 <printf@plt>
lea    0xc87(%rip),%r15
lea    0xc9e(%rip),%r14
xor    %ebp,%ebp
mov    0x18(%rsp),%r12
jmp    13b3 <print_status+0x283>
nop
mov    %r14,%rdi
xor    %eax,%eax
call   1050 <printf@plt>
add    $0x1,%rbp
cmp    %rbp,%rbx
je     13ce <print_status+0x29e>
cmp    %r13,%rbp
jge    13a0 <print_status+0x270>
mov    0x20(%rsp),%rax
movsd  (%rax,%rbp,8),%xmm0
mov    %r15,%rdi
mov    $0x1,%al
call   1050 <printf@plt>
jmp    13aa <print_status+0x27a>
lea    0xc67(%rip),%rdi
xor    %eax,%eax
call   1050 <printf@plt>
lea    0xc2e(%rip),%r14
lea    0xc4f(%rip),%r15
xor    %ebp,%ebp
jmp    1403 <print_status+0x2d3>
xchg   %ax,%ax
mov    %r15,%rdi
xor    %eax,%eax
call   1050 <printf@plt>
add    $0x1,%rbp
cmp    %rbp,%rbx
je     1433 <print_status+0x303>
cmp    %r13,%rbp
jge    13f0 <print_status+0x2c0>
mov    (%r12,%rbp,4),%esi
mov    %r14,%rdi
xor    %eax,%eax
call   1050 <printf@plt>
jmp    13fa <print_status+0x2ca>
lea    0xc1d(%rip),%rbx
mov    %rbx,%rdi
xor    %eax,%eax
call   1050 <printf@plt>
mov    %rbx,%rdi
xor    %eax,%eax
call   1050 <printf@plt>
mov    $0xa,%edi
add    $0x28,%rsp
pop    %rbx
pop    %r12
pop    %r13
pop    %r14
pop    %r15
pop    %rbp
jmp    1030 <putchar@plt>

LLVM IR (-O0):
@.str = [43 x i8] c" IT K J RES CGIT RITZVALS(1:5)\0A\00"
@.str.1 = [2 x i8] c"\0A\00"
@.str.2 = [22 x i8] c"%4d %3d %3d %9.2e %4d\00"
@.str.3 = [7 x i8] c" %9.2e\00"
@.str.4 = [23 x i8] c" IT K J RITZVALS \00"
@.str.5 = [11 x i8] c" \00"
@.str.6 = [13 x i8] c" RES \00"
@.str.7 = [9 x i8] c" CGIT\0A\00"
@.str.8 = [12 x i8] c"%4d %3d %3d\00"
@.str.9 = [3 x i8] c" \00"
@.str.10 = [5 x i8] c" %4d\00"
@.str.11 = [6 x i8] c" \00"
define void @print_status(i32 %0, i32 %1, i32 %2, i32 %3, i32 %4, i32 %5, i32 %6, double* %7, double* %8, i32* %9) {
%11 = alloca i32
%12 = alloca i32
%13 = alloca i32
%14 = alloca i32
%15 = alloca i32
%16 = alloca i32
%17 = alloca i32
%18 = alloca double*
%19 = alloca double*
%20 = alloca i32*
%21 = alloca i32
%22 = alloca i32
%23 = alloca i32
store i32 %0, i32* %11
store i32 %1, i32* %12
store i32 %2, i32* %13
store i32 %3, i32* %14
store i32 %4, i32* %15
store i32 %5, i32* %16
store i32 %6, i32* %17
store double* %7, double** %18
store double* %8, double** %19
store i32* %9, i32** %20
store i32 5, i32* %21
%24 = load i32, i32* %11
%25 = icmp sge i32 %24, 1
br i1 %25, label %26, label %196
26: ; preds = %10
%27 = load i32, i32* %16
%28 = icmp eq i32 %27, 1
br i1 %28, label %29, label %79
29: ; preds = %26
%30 = load i32, i32* %12
%31 = icmp eq i32 %30, 0
br i1 %31, label %32, label %45
32: ; preds = %29
%33 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([43 x i8], [43 x i8]* @.str, i64 0, i64 0))
store i32 77, i32* %23
store i32 0, i32* %22
br label %34
34: ; preds = %40, %32
%35 = load i32, i32* %22
%36 = load i32, i32* %23
%37 = icmp slt i32 %35, %36
br i1 %37, label %38, label %43
38: ; preds = %34
%39 = call i32 @putchar(i8 signext 45)
br label %40
40: ; preds = %38
%41 = load i32, i32* %22
%42 = add nsw i32 %41, 1
store i32 %42, i32* %22
br label %34
43: ; preds = %34
%44 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.1, i64 0, i64 0))
br label %45
45: ; preds = %43, %29
%46 = load i32, i32* %12
%47 = add nsw i32 %46, 1
%48 = load i32, i32* %13
%49 = load i32, i32* %14
%50 = load double*, double** %19
%51 = getelementptr inbounds double, double* %50, i64 0
%52 = load double, double* %51
%53 = load i32*, i32** %20
%54 = getelementptr inbounds i32, i32* %53, i64 0
%55 = load i32, i32* %54
%56 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([22 x i8], [22 x i8]* @.str.2, i64 0, i64 0), i32 %47, i32 %48, i32 %49, double %52, i32 %55)
store i32 0, i32* %22
br label %57
57: ; preds = %74, %45
%58 = load i32, i32* %22
%59 = load i32, i32* %14
%60 = icmp slt i32 %59, 5
br i1 %60, label %61, label %63
61: ; preds = %57
%62 = load i32, i32* %14
br label %64
63: ; preds = %57
br label %64
64: ; preds = %63, %61
%65 = phi i32 [ %62, %61 ], [ 5, %63 ]
%66 = icmp slt i32 %58, %65
br i1 %66, label %67, label %77
67: ; preds = %64
%68 = load double*, double** %18
%69 = load i32, i32* %22
%70 = sext i32 %69 to i64
%71 = getelementptr inbounds double, double* %68, i64 %70
%72 = load double, double* %71
%73 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.3, i64 0, i64 0), double %72)
br label %74
74: ; preds = %67
%75 = load i32, i32* %22
%76 = add nsw i32 %75, 1
store i32 %76, i32* %22
br label %57
77: ; preds = %64
%78 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.1, i64 0, i64 0))
br label %195
79: ; preds = %26
%80 = load i32, i32* %12
%81 = icmp eq i32 %80, 0
br i1 %81, label %82, label %120
82: ; preds = %79
%83 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([23 x i8], [23 x i8]* @.str.4, i64 0, i64 0))
store i32 1, i32* %22
br label %84
84: ; preds = %90, %82
%85 = load i32, i32* %22
%86 = load i32, i32* %17
%87 = icmp slt i32 %85, %86
br i1 %87, label %88, label %93
88: ; preds = %84
%89 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([11 x i8], [11 x i8]* @.str.5, i64 0, i64 0))
br label %90
90: ; preds = %88
%91 = load i32, i32* %22
%92 = add nsw i32 %91, 1
store i32 %92, i32* %22
br label %84
93: ; preds = %84
%94 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([13 x i8], [13 x i8]* @.str.6, i64 0, i64 0))
store i32 1, i32* %22
br label %95
95: ; preds = %101, %93
%96 = load i32, i32* %22
%97 = load i32, i32* %17
%98 = icmp slt i32 %96, %97
br i1 %98, label %99, label %104
99: ; preds = %95
%100 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([11 x i8], [11 x i8]* @.str.5, i64 0, i64 0))
br label %101
101: ; preds = %99
%102 = load i32, i32* %22
%103 = add nsw i32 %102, 1
store i32 %103, i32* %22
br label %95
104: ; preds = %95
%105 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str.7, i64 0, i64 0))
%106 = load i32, i32* %16
%107 = mul nsw i32 %106, 25
%108 = add nsw i32 16, %107
store i32 %108, i32* %23
store i32 0, i32* %22
br label %109
109: ; preds = %115, %104
%110 = load i32, i32* %22
%111 = load i32, i32* %23
%112 = icmp slt i32 %110, %111
br i1 %112, label %113, label %118
113: ; preds = %109
%114 = call i32 @putchar(i8 signext 45)
br label %115
115: ; preds = %113
%116 = load i32, i32* %22
%117 = add nsw i32 %116, 1
store i32 %117, i32* %22
br label %109
118: ; preds = %109
%119 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.1, i64 0, i64 0))
br label %120
120: ; preds = %118, %79
%121 = load i32, i32* %12
%122 = add nsw i32 %121, 1
%123 = load i32, i32* %13
%124 = load i32, i32* %14
%125 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([12 x i8], [12 x i8]* @.str.8, i64 0, i64 0), i32 %122, i32 %123, i32 %124)
store i32 0, i32* %22
br label %126
126: ; preds = %144, %120
%127 = load i32, i32* %22
%128 = load i32, i32* %16
%129 = icmp slt i32 %127, %128
br i1 %129, label %130, label %147
130: ; preds = %126
%131 = load i32, i32* %22
%132 = load i32, i32* %17
%133 = icmp slt i32 %131, %132
br i1 %133, label %134, label %141
134: ; preds = %130
%135 = load double*, double** %18
%136 = load i32, i32* %22
%137 = sext i32 %136 to i64
%138 = getelementptr inbounds double, double* %135, i64 %137
%139 = load double, double* %138
%140 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.3, i64 0, i64 0), double %139)
br label %143
141: ; preds = %130
%142 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([11 x i8], [11 x i8]* @.str.5, i64 0, i64 0))
br label %143
143: ; preds = %141, %134
br label %144
144: ; preds = %143
%145 = load i32, i32* %22
%146 = add nsw i32 %145, 1
store i32 %146, i32* %22
br label %126
147: ; preds = %126
%148 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.9, i64 0, i64 0))
store i32 0, i32* %22
br label %149
149: ; preds = %167, %147
%150 = load i32, i32* %22
%151 = load i32, i32* %16
%152 = icmp slt i32 %150, %151
br i1 %152, label %153, label %170
153: ; preds = %149
%154 = load i32, i32* %22
%155 = load i32, i32* %17
%156 = icmp slt i32 %154, %155
br i1 %156, label %157, label %164
157: ; preds = %153
%158 = load double*, double** %19
%159 = load i32, i32* %22
%160 = sext i32 %159 to i64
%161 = getelementptr inbounds double, double* %158, i64 %160
%162 = load double, double* %161
%163 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.3, i64 0, i64 0), double %162)
br label %166
164: ; preds = %153
%165 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([11 x i8], [11 x i8]* @.str.5, i64 0, i64 0))
br label %166
166: ; preds = %164, %157
br label %167
167: ; preds = %166
%168 = load i32, i32* %22
%169 = add nsw i32 %168, 1
store i32 %169, i32* %22
br label %149
170: ; preds = %149
%171 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.9, i64 0, i64 0))
store i32 0, i32* %22
br label %172
172: ; preds = %190, %170
%173 = load i32, i32* %22
%174 = load i32, i32* %16
%175 = icmp slt i32 %173, %174
br i1 %175, label %176, label %193
176: ; preds = %172
%177 = load i32, i32* %22
%178 = load i32, i32* %17
%179 = icmp slt i32 %177, %178
br i1 %179, label %180, label %187
180: ; preds = %176
%181 = load i32*, i32** %20
%182 = load i32, i32* %22
%183 = sext i32 %182 to i64
%184 = getelementptr inbounds i32, i32* %181, i64 %183
%185 = load i32, i32* %184
%186 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.10, i64 0, i64 0), i32 %185)
br label %189
187: ; preds = %176
%188 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.11, i64 0, i64 0))
br label %189
189: ; preds = %187, %180
br label %190
190: ; preds = %189
%191 = load i32, i32* %22
%192 = add nsw i32 %191, 1
store i32 %192, i32* %22
br label %172
193: ; preds = %172
%194 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.1, i64 0, i64 0))
br label %195
195: ; preds = %193, %77
br label %196
196: ; preds = %195, %10
ret void
}

LLVM IR (-O2):
@.str.2 = [22 x i8] c"%4d %3d %3d %9.2e %4d\00"
@.str.3 = [7 x i8] c" %9.2e\00"
@.str.4 = [23 x i8] c" IT K J RITZVALS \00"
@.str.5 = [11 x i8] c" \00"
@.str.6 = [13 x i8] c" RES \00"
@.str.8 = [12 x i8] c"%4d %3d %3d\00"
@.str.9 = [3 x i8] c" \00"
@.str.10 = [5 x i8] c" %4d\00"
@.str.11 = [6 x i8] c" \00"
@str = [8 x i8] c" CGIT\00"
@str.12 = [42 x i8] c" IT K J RES CGIT RITZVALS(1:5)\00"
define void @print_status(i32 %0, i32 %1, i32 %2, i32 %3, i32 %4, i32 %5, i32 %6, double* nocapture %7, double* nocapture %8, i32* nocapture %9) {
%11 = icmp sgt i32 %0, 0
br i1 %11, label %12, label %126
12: ; preds = %10
%13 = icmp eq i32 %5, 1
%14 = icmp eq i32 %1, 0
br i1 %13, label %15, label %42
15: ; preds = %12
br i1 %14, label %16, label %25
16: ; preds = %15
%17 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([42 x i8], [42 x i8]* @str.12, i64 0, i64 0))
br label %18
18: ; preds = %16, %18
%19 = phi i32 [ 0, %16 ], [ %21, %18 ]
%20 = tail call i32 @putchar(i8 signext 45)
%21 = add nuw nsw i32 %19, 1
%22 = icmp eq i32 %21, 77
br i1 %22, label %23, label %18
23: ; preds = %18
%24 = tail call i32 bitcast (i32 (i8)* @putchar to i32 (i32)*)(i32 10)
br label %25
25: ; preds = %23, %15
%26 = add nsw i32 %1, 1
%27 = load double, double* %8
%28 = load i32, i32* %9
%29 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([22 x i8], [22 x i8]* @.str.2, i64 0, i64 0), i32 %26, i32 %2, i32 %3, double %27, i32 %28)
%30 = icmp sgt i32 %3, 0
br i1 %30, label %31, label %124
31: ; preds = %25
%32 = icmp ult i32 %3, 5
%33 = select i1 %32, i32 %3, i32 5
%34 = zext i32 %33 to i64
br label %35
35: ; preds = %31, %35
%36 = phi i64 [ 0, %31 ], [ %40, %35 ]
%37 = getelementptr inbounds double, double* %7, i64 %36
%38 = load double, double* %37
%39 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([7 x i8], [7 x i8]* @.str.3, i64 0, i64 0), double %38)
%40 = add nuw nsw i64 %36, 1
%41 = icmp eq i64 %40, %34
br i1 %41, label %124, label %35
42: ; preds = %12
br i1 %14, label %43, label %74
43: ; preds = %42
%44 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([23 x i8], [23 x i8]* @.str.4, i64 0, i64 0))
%45 = icmp sgt i32 %6, 1
br i1 %45, label %48, label %46
46: ; preds = %43
%47 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([13 x i8], [13 x i8]* @.str.6, i64 0, i64 0))
br label %60
48: ; preds = %43, %48
%49 = phi i32 [ %51, %48 ], [ 1, %43 ]
%50 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([11 x i8], [11 x i8]* @.str.5, i64 0, i64 0))
%51 = add nuw nsw i32 %49, 1
%52 = icmp eq i32 %51, %6
br i1 %52, label %53, label %48
53: ; preds = %48
%54 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([13 x i8], [13 x i8]* @.str.6, i64 0, i64 0))
br label %55
55: ; preds = %53, %55
%56 = phi i32 [ %58, %55 ], [ 1, %53 ]
%57 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([11 x i8], [11 x i8]* @.str.5, i64 0, i64 0))
%58 = add nuw nsw i32 %56, 1
%59 = icmp eq i32 %58, %6
br i1 %59, label %60, label %55
60: ; preds = %55, %46
%61 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([8 x i8], [8 x i8]* @str, i64 0, i64 0))
%62 = mul i32 %5, 25
%63 = icmp sgt i32 %62, -16
br i1 %63, label %64, label %72
64: ; preds = %60
%65 = add i32 %62, 15
%66 = tail call i32 @llvm.smax.i32(i32 %65, i32 0)
br label %67
67: ; preds = %64, %67
%68 = phi i32 [ %70, %67 ], [ 0, %64 ]
%69 = tail call i32 @putchar(i8 signext 45)
%70 = add nuw i32 %68, 1
%71 = icmp eq i32 %68, %66
br i1 %71, label %72, label %67
72: ; preds = %67, %60
%73 = tail call i32 bitcast (i32 (i8)* @putchar to i32 (i32)*)(i32 10)
br label %74
74: ; preds = %72, %42
%75 = add nsw i32 %1, 1
%76 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([12 x i8], [12 x i8]* @.str.8, i64 0, i64 0), i32 %75, i32 %2, i32 %3)
%77 = icmp sgt i32 %5, 0
br i1 %77, label %78, label %107
78: ; preds = %74
%79 = sext i32 %6 to i64
%80 = zext i32 %5 to i64
br label %81
81: ; preds = %78, %90
%82 = phi i64 [ 0, %78 ], [ %91, %90 ]
%83 = icmp slt i64 %82, %79
br i1 %83, label %84, label %88
84: ; preds = %81
%85 = getelementptr inbounds double, double* %7, i64 %82
%86 = load double, double* %85
%87 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([7 x i8], [7 x i8]* @.str.3, i64 0, i64 0), double %86)
br label %90
88: ; preds = %81
%89 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([11 x i8], [11 x i8]* @.str.5, i64 0, i64 0))
br label %90
90: ; preds = %84, %88
%91 = add nuw nsw i64 %82, 1
%92 = icmp eq i64 %91, %80
br i1 %92, label %93, label %81
93: ; preds = %90
%94 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([3 x i8], [3 x i8]* @.str.9, i64 0, i64 0))
br label %95
95: ; preds = %93, %104
%96 = phi i64 [ 0, %93 ], [ %105, %104 ]
%97 = icmp slt i64 %96, %79
br i1 %97, label %98, label %102
98: ; preds = %95
%99 = getelementptr inbounds double, double* %8, i64 %96
%100 = load double, double* %99
%101 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([7 x i8], [7 x i8]* @.str.3, i64 0, i64 0), double %100)
br label %104
102: ; preds = %95
%103 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([11 x i8], [11 x i8]* @.str.5, i64 0, i64 0))
br label %104
104: ; preds = %98, %102
%105 = add nuw nsw i64 %96, 1
%106 = icmp eq i64 %105, %80
br i1 %106, label %110, label %95
107: ; preds = %74
%108 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([3 x i8], [3 x i8]* @.str.9, i64 0, i64 0))
%109 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([3 x i8], [3 x i8]* @.str.9, i64 0, i64 0))
br label %124
110: ; preds = %104
%111 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([3 x i8], [3 x i8]* @.str.9, i64 0, i64 0))
br label %112
112: ; preds = %110, %121
%113 = phi i64 [ 0, %110 ], [ %122, %121 ]
%114 = icmp slt i64 %113, %79
br i1 %114, label %115, label %119
115: ; preds = %112
%116 = getelementptr inbounds i32, i32* %9, i64 %113
%117 = load i32, i32* %116
%118 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([5 x i8], [5 x i8]* @.str.10, i64 0, i64 0), i32 %117)
br label %121
119: ; preds = %112
%120 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([6 x i8], [6 x i8]* @.str.11, i64 0, i64 0))
br label %121
121: ; preds = %115, %119
%122 = add nuw nsw i64 %113, 1
%123 = icmp eq i64 %122, %80
br i1 %123, label %124, label %112
124: ; preds = %121, %35, %107, %25
%125 = tail call i32 bitcast (i32 (i8)* @putchar to i32 (i32)*)(i32 10)
br label %126
126: ; preds = %124, %10
ret void
}