#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 print_report(char *method, int stats[20]) {
  int i1, i2, i3;
  if (!stats) {
    printf("%s: No statistics available.\n", method);
    return;
  }
  i1 = stats[4];
  i2 = stats[5];
  i3 = stats[6];
  if (stats[3] >= 0) {
    printf("%s: OK.  ", method);
  } else {
    printf("%s: ERROR.  ", method);
  }
  switch (stats[3]) {
  case (1):
    printf("Matrix has unsorted or duplicate row indices.\n");
    printf("%s: number of duplicate or out-of-order row indices: %d\n", method,
           i3);
    printf("%s: last seen duplicate or out-of-order row index:   %d\n", method,
           (i2));
    printf("%s: last seen in column:                             %d", method,
           (i1));
  case (0):
    printf("\n");
    printf("%s: number of dense or empty rows ignored:           %d\n", method,
           stats[0]);
    printf("%s: number of dense or empty columns ignored:        %d\n", method,
           stats[1]);
    printf("%s: number of garbage collections performed:         %d\n", method,
           stats[2]);
    break;
  case (-1):
    printf("Array A (row indices of matrix) not present.\n");
    break;
  case (-2):
    printf("Array p (column pointers for matrix) not present.\n");
    break;
  case (-3):
    printf("Invalid number of rows (%d).\n", i1);
    break;
  case (-4):
    printf("Invalid number of columns (%d).\n", i1);
    break;
  case (-5):
    printf("Invalid number of nonzero entries (%d).\n", i1);
    break;
  case (-6):
    printf("Invalid column pointer, p [0] = %d, must be zero.\n", i1);
    break;
  case (-7):
    printf("Array A too small.\n");
    printf("        Need Alen >= %d, but given only Alen = %d.\n", i1, i2);
    break;
  case (-8):
    printf("Column %d has a negative number of nonzero entries (%d).\n", (i1),
           i2);
    break;
  case (-9):
    printf("Row index (row %d) out of bounds (%d to %d) in column %d.\n", (i2),
           (0), (i3 - 1), (i1));
    break;
  case (-10):
    printf("Out of memory.\n");
    break;
  case (-999):
    printf("Internal error! Please contact authors (davis@cise.ufl.edu).\n");
    break;
  }
}


x86 assembly (clang, -O0):
<print_report>:
push   %rbp
mov    %rsp,%rbp
sub    $0x20,%rsp
mov    %rdi,-0x8(%rbp)
mov    %rsi,-0x10(%rbp)
cmpq   $0x0,-0x10(%rbp)
jne    1142 <print_report+0x32>
mov    -0x8(%rbp),%rsi
lea    0xeca(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
jmp    1427 <print_report+0x317>
mov    -0x10(%rbp),%rax
mov    0x10(%rax),%eax
mov    %eax,-0x14(%rbp)
mov    -0x10(%rbp),%rax
mov    0x14(%rax),%eax
mov    %eax,-0x18(%rbp)
mov    -0x10(%rbp),%rax
mov    0x18(%rax),%eax
mov    %eax,-0x1c(%rbp)
mov    -0x10(%rbp),%rax
cmpl   $0x0,0xc(%rax)
jl     1185 <print_report+0x75>
mov    -0x8(%rbp),%rsi
lea    0xea5(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
jmp    1197 <print_report+0x87>
mov    -0x8(%rbp),%rsi
lea    0xe98(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
mov    -0x10(%rbp),%rax
mov    0xc(%rax),%eax
mov    %eax,-0x20(%rbp)
sub    $0xfffffc19,%eax
je     1419 <print_report+0x309>
jmp    11b1 <print_report+0xa1>
mov    -0x20(%rbp),%eax
sub    $0xfffffff6,%eax
je     1406 <print_report+0x2f6>
jmp    11c2 <print_report+0xb2>
mov    -0x20(%rbp),%eax
sub    $0xfffffff7,%eax
je     13e4 <print_report+0x2d4>
jmp    11d3 <print_report+0xc3>
mov    -0x20(%rbp),%eax
sub    $0xfffffff8,%eax
je     13cb <print_report+0x2bb>
jmp    11e4 <print_report+0xd4>
mov    -0x20(%rbp),%eax
sub    $0xfffffff9,%eax
je     13a4 <print_report+0x294>
jmp    11f5 <print_report+0xe5>
mov    -0x20(%rbp),%eax
sub    $0xfffffffa,%eax
je     138e <print_report+0x27e>
jmp    1206 <print_report+0xf6>
mov    -0x20(%rbp),%eax
sub    $0xfffffffb,%eax
je     1378 <print_report+0x268>
jmp    1217 <print_report+0x107>
mov    -0x20(%rbp),%eax
sub    $0xfffffffc,%eax
je     1362 <print_report+0x252>
jmp    1228 <print_report+0x118>
mov    -0x20(%rbp),%eax
sub    $0xfffffffd,%eax
je     134c <print_report+0x23c>
jmp    1239 <print_report+0x129>
mov    -0x20(%rbp),%eax
sub    $0xfffffffe,%eax
je     1339 <print_report+0x229>
jmp    124a <print_report+0x13a>
mov    -0x20(%rbp),%eax
sub    $0xffffffff,%eax
je     1326 <print_report+0x216>
jmp    125b <print_report+0x14b>
mov    -0x20(%rbp),%eax
test   %eax,%eax
je     12c9 <print_report+0x1b9>
jmp    126b <print_report+0x15b>
mov    -0x20(%rbp),%eax
sub    $0x1,%eax
jne    1427 <print_report+0x317>
jmp    127c <print_report+0x16c>
lea    0xdb2(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
mov    -0x8(%rbp),%rsi
mov    -0x1c(%rbp),%edx
lea    0xdcc(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
mov    -0x8(%rbp),%rsi
mov    -0x18(%rbp),%edx
lea    0xdf0(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
mov    -0x8(%rbp),%rsi
mov    -0x14(%rbp),%edx
lea    0xe14(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0xfb0(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
mov    -0x8(%rbp),%rsi
mov    -0x10(%rbp),%rax
mov    (%rax),%edx
lea    0xe26(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
mov    -0x8(%rbp),%rsi
mov    -0x10(%rbp),%rax
mov    0x4(%rax),%edx
lea    0xe46(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
mov    -0x8(%rbp),%rsi
mov    -0x10(%rbp),%rax
mov    0x8(%rax),%edx
lea    0xe66(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
jmp    1427 <print_report+0x317>
lea    0xe8c(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
jmp    1427 <print_report+0x317>
lea    0xea7(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
jmp    1427 <print_report+0x317>
mov    -0x14(%rbp),%esi
lea    0xec4(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
jmp    1427 <print_report+0x317>
mov    -0x14(%rbp),%esi
lea    0xecc(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
jmp    1427 <print_report+0x317>
mov    -0x14(%rbp),%esi
lea    0xed7(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
jmp    1427 <print_report+0x317>
mov    -0x14(%rbp),%esi
lea    0xeea(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
jmp    1427 <print_report+0x317>
lea    0xf0a(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
mov    -0x14(%rbp),%esi
mov    -0x18(%rbp),%edx
lea    0xf0a(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
jmp    1427 <print_report+0x317>
mov    -0x14(%rbp),%esi
mov    -0x18(%rbp),%edx
lea    0xf25(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
jmp    1427 <print_report+0x317>
mov    -0x18(%rbp),%esi
mov    -0x1c(%rbp),%ecx
sub    $0x1,%ecx
mov    -0x14(%rbp),%r8d
lea    0xf3f(%rip),%rdi
xor    %edx,%edx
mov    $0x0,%al
call   1030 <printf@plt>
jmp    1427 <print_report+0x317>
lea    0xf65(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
jmp    1427 <print_report+0x317>
lea    0xf62(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
add    $0x20,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<print_report>:
push   %rbp
push   %r15
push   %r14
push   %r12
push   %rbx
mov    %rdi,%rbx
test   %rsi,%rsi
je     1196 <print_report+0x66>
mov    %rsi,%rbp
mov    0x10(%rsi),%r14d
mov    0x14(%rsi),%r15d
mov    0x18(%rsi),%r12d
cmpl   $0x0,0xc(%rsi)
lea    0xef4(%rip),%rax
lea    0xef7(%rip),%rdi
cmovns %rax,%rdi
mov    %rbx,%rsi
xor    %eax,%eax
call   1050 <printf@plt>
mov    0xc(%rbp),%ecx
lea    0xa(%rcx),%eax
cmp    $0xb,%eax
ja     11af <print_report+0x7f>
lea    0xe7f(%rip),%rcx
movslq (%rcx,%rax,4),%rax
add    %rcx,%rax
jmp    *%rax
lea    0x11aa(%rip),%rdi
jmp    1303 <print_report+0x1d3>
lea    0xe93(%rip),%rdi
mov    %rbx,%rsi
xor    %eax,%eax
pop    %rbx
pop    %r12
pop    %r14
pop    %r15
pop    %rbp
jmp    1050 <printf@plt>
cmp    $0xfffffc19,%ecx
jne    12f3 <print_report+0x1c3>
lea    0x113c(%rip),%rdi
jmp    1303 <print_report+0x1d3>
add    $0xffffffff,%r12d
lea    0x10f1(%rip),%rdi
mov    %r15d,%esi
xor    %edx,%edx
mov    %r12d,%ecx
mov    %r14d,%r8d
xor    %eax,%eax
pop    %rbx
pop    %r12
pop    %r14
pop    %r15
pop    %rbp
jmp    1050 <printf@plt>
lea    0x1096(%rip),%rdi
jmp    1208 <print_report+0xd8>
lea    0x114e(%rip),%rdi
call   1040 <puts@plt>
lea    0x104d(%rip),%rdi
mov    %r14d,%esi
mov    %r15d,%edx
xor    %eax,%eax
pop    %rbx
pop    %r12
pop    %r14
pop    %r15
pop    %rbp
jmp    1050 <printf@plt>
lea    0xffe(%rip),%rdi
jmp    123f <print_report+0x10f>
lea    0xfcc(%rip),%rdi
jmp    123f <print_report+0x10f>
lea    0xfa2(%rip),%rdi
jmp    123f <print_report+0x10f>
lea    0xf7b(%rip),%rdi
mov    %r14d,%esi
xor    %eax,%eax
pop    %rbx
pop    %r12
pop    %r14
pop    %r15
pop    %rbp
jmp    1050 <printf@plt>
lea    0x1137(%rip),%rdi
jmp    1303 <print_report+0x1d3>
lea    0x1158(%rip),%rdi
call   1040 <puts@plt>
lea    0xdf5(%rip),%rdi
mov    %rbx,%rsi
mov    %r12d,%edx
xor    %eax,%eax
call   1050 <printf@plt>
lea    0xe1a(%rip),%rdi
mov    %rbx,%rsi
mov    %r15d,%edx
xor    %eax,%eax
call   1050 <printf@plt>
lea    0xe3f(%rip),%rdi
mov    %rbx,%rsi
mov    %r14d,%edx
xor    %eax,%eax
call   1050 <printf@plt>
mov    $0xa,%edi
call   1030 <putchar@plt>
mov    0x0(%rbp),%edx
lea    0xe56(%rip),%rdi
mov    %rbx,%rsi
xor    %eax,%eax
call   1050 <printf@plt>
mov    0x4(%rbp),%edx
lea    0xe7b(%rip),%rdi
mov    %rbx,%rsi
xor    %eax,%eax
call   1050 <printf@plt>
mov    0x8(%rbp),%edx
lea    0xea0(%rip),%rdi
mov    %rbx,%rsi
xor    %eax,%eax
pop    %rbx
pop    %r12
pop    %r14
pop    %r15
pop    %rbp
jmp    1050 <printf@plt>
pop    %rbx
pop    %r12
pop    %r14
pop    %r15
pop    %rbp
ret
lea    0x105a(%rip),%rdi
pop    %rbx
pop    %r12
pop    %r14
pop    %r15
pop    %rbp
jmp    1040 <puts@plt>

LLVM IR (-O0):
@.str = [30 x i8] c"%s: No statistics available.\0A\00"
@.str.1 = [10 x i8] c"%s: OK. \00"
@.str.2 = [13 x i8] c"%s: ERROR. \00"
@.str.3 = [47 x i8] c"Matrix has unsorted or duplicate row indices.\0A\00"
@.str.4 = [57 x i8] c"%s: number of duplicate or out-of-order row indices: %d\0A\00"
@.str.5 = [57 x i8] c"%s: last seen duplicate or out-of-order row index: %d\0A\00"
@.str.6 = [56 x i8] c"%s: last seen in column: %d\00"
@.str.7 = [2 x i8] c"\0A\00"
@.str.8 = [57 x i8] c"%s: number of dense or empty rows ignored: %d\0A\00"
@.str.9 = [57 x i8] c"%s: number of dense or empty columns ignored: %d\0A\00"
@.str.10 = [57 x i8] c"%s: number of garbage collections performed: %d\0A\00"
@.str.11 = [46 x i8] c"Array A (row indices of matrix) not present.\0A\00"
@.str.12 = [51 x i8] c"Array p (column pointers for matrix) not present.\0A\00"
@.str.13 = [30 x i8] c"Invalid number of rows (%d).\0A\00"
@.str.14 = [33 x i8] c"Invalid number of columns (%d).\0A\00"
@.str.15 = [41 x i8] c"Invalid number of nonzero entries (%d).\0A\00"
@.str.16 = [51 x i8] c"Invalid column pointer, p [0] = %d, must be zero.\0A\00"
@.str.17 = [20 x i8] c"Array A too small.\0A\00"
@.str.18 = [52 x i8] c" Need Alen >= %d, but given only Alen = %d.\0A\00"
@.str.19 = [58 x i8] c"Column %d has a negative number of nonzero entries (%d).\0A\00"
@.str.20 = [59 x i8] c"Row index (row %d) out of bounds (%d to %d) in column %d.\0A\00"
@.str.21 = [16 x i8] c"Out of memory.\0A\00"
@.str.22 = [62 x i8] c"Internal error! Please contact authors (davis@cise.ufl.edu).\0A\00"
define void @print_report(i8* %0, i32* %1) {
%3 = alloca i8*
%4 = alloca i32*
%5 = alloca i32
%6 = alloca i32
%7 = alloca i32
store i8* %0, i8** %3
store i32* %1, i32** %4
%8 = load i32*, i32** %4
%9 = icmp ne i32* %8, null
br i1 %9, label %13, label %10
10: ; preds = %2
%11 = load i8*, i8** %3
%12 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([30 x i8], [30 x i8]* @.str, i64 0, i64 0), i8* %11)
br label %100
13: ; preds = %2
%14 = load i32*, i32** %4
%15 = getelementptr inbounds i32, i32* %14, i64 4
%16 = load i32, i32* %15
store i32 %16, i32* %5
%17 = load i32*, i32** %4
%18 = getelementptr inbounds i32, i32* %17, i64 5
%19 = load i32, i32* %18
store i32 %19, i32* %6
%20 = load i32*, i32** %4
%21 = getelementptr inbounds i32, i32* %20, i64 6
%22 = load i32, i32* %21
store i32 %22, i32* %7
%23 = load i32*, i32** %4
%24 = getelementptr inbounds i32, i32* %23, i64 3
%25 = load i32, i32* %24
%26 = icmp sge i32 %25, 0
br i1 %26, label %27, label %30
27: ; preds = %13
%28 = load i8*, i8** %3
%29 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([10 x i8], [10 x i8]* @.str.1, i64 0, i64 0), i8* %28)
br label %33
30: ; preds = %13
%31 = load i8*, i8** %3
%32 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([13 x i8], [13 x i8]* @.str.2, i64 0, i64 0), i8* %31)
br label %33
33: ; preds = %30, %27
%34 = load i32*, i32** %4
%35 = getelementptr inbounds i32, i32* %34, i64 3
%36 = load i32, i32* %35
switch i32 %36, label %100 [
i32 1, label %37
i32 0, label %48
i32 -1, label %65
i32 -2, label %67
i32 -3, label %69
i32 -4, label %72
i32 -5, label %75
i32 -6, label %78
i32 -7, label %81
i32 -8, label %86
i32 -9, label %90
i32 -10, label %96
i32 -999, label %98
]
37: ; preds = %33
%38 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([47 x i8], [47 x i8]* @.str.3, i64 0, i64 0))
%39 = load i8*, i8** %3
%40 = load i32, i32* %7
%41 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([57 x i8], [57 x i8]* @.str.4, i64 0, i64 0), i8* %39, i32 %40)
%42 = load i8*, i8** %3
%43 = load i32, i32* %6
%44 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([57 x i8], [57 x i8]* @.str.5, i64 0, i64 0), i8* %42, i32 %43)
%45 = load i8*, i8** %3
%46 = load i32, i32* %5
%47 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([56 x i8], [56 x i8]* @.str.6, i64 0, i64 0), i8* %45, i32 %46)
br label %48
48: ; preds = %33, %37
%49 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.7, i64 0, i64 0))
%50 = load i8*, i8** %3
%51 = load i32*, i32** %4
%52 = getelementptr inbounds i32, i32* %51, i64 0
%53 = load i32, i32* %52
%54 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([57 x i8], [57 x i8]* @.str.8, i64 0, i64 0), i8* %50, i32 %53)
%55 = load i8*, i8** %3
%56 = load i32*, i32** %4
%57 = getelementptr inbounds i32, i32* %56, i64 1
%58 = load i32, i32* %57
%59 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([57 x i8], [57 x i8]* @.str.9, i64 0, i64 0), i8* %55, i32 %58)
%60 = load i8*, i8** %3
%61 = load i32*, i32** %4
%62 = getelementptr inbounds i32, i32* %61, i64 2
%63 = load i32, i32* %62
%64 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([57 x i8], [57 x i8]* @.str.10, i64 0, i64 0), i8* %60, i32 %63)
br label %100
65: ; preds = %33
%66 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([46 x i8], [46 x i8]* @.str.11, i64 0, i64 0))
br label %100
67: ; preds = %33
%68 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([51 x i8], [51 x i8]* @.str.12, i64 0, i64 0))
br label %100
69: ; preds = %33
%70 = load i32, i32* %5
%71 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([30 x i8], [30 x i8]* @.str.13, i64 0, i64 0), i32 %70)
br label %100
72: ; preds = %33
%73 = load i32, i32* %5
%74 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([33 x i8], [33 x i8]* @.str.14, i64 0, i64 0), i32 %73)
br label %100
75: ; preds = %33
%76 = load i32, i32* %5
%77 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([41 x i8], [41 x i8]* @.str.15, i64 0, i64 0), i32 %76)
br label %100
78: ; preds = %33
%79 = load i32, i32* %5
%80 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([51 x i8], [51 x i8]* @.str.16, i64 0, i64 0), i32 %79)
br label %100
81: ; preds = %33
%82 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([20 x i8], [20 x i8]* @.str.17, i64 0, i64 0))
%83 = load i32, i32* %5
%84 = load i32, i32* %6
%85 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([52 x i8], [52 x i8]* @.str.18, i64 0, i64 0), i32 %83, i32 %84)
br label %100
86: ; preds = %33
%87 = load i32, i32* %5
%88 = load i32, i32* %6
%89 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([58 x i8], [58 x i8]* @.str.19, i64 0, i64 0), i32 %87, i32 %88)
br label %100
90: ; preds = %33
%91 = load i32, i32* %6
%92 = load i32, i32* %7
%93 = sub nsw i32 %92, 1
%94 = load i32, i32* %5
%95 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([59 x i8], [59 x i8]* @.str.20, i64 0, i64 0), i32 %91, i32 0, i32 %93, i32 %94)
br label %100
96: ; preds = %33
%97 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([16 x i8], [16 x i8]* @.str.21, i64 0, i64 0))
br label %100
98: ; preds = %33
%99 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([62 x i8], [62 x i8]* @.str.22, i64 0, i64 0))
br label %100
100: ; preds = %10, %33, %98, %96, %90, %86, %81, %78, %75, %72, %69, %67, %65, %48
ret void
}

LLVM IR (-O2):
@.str = [30 x i8] c"%s: No statistics available.\0A\00"
@.str.1 = [10 x i8] c"%s: OK. \00"
@.str.2 = [13 x i8] c"%s: ERROR. \00"
@.str.4 = [57 x i8] c"%s: number of duplicate or out-of-order row indices: %d\0A\00"
@.str.5 = [57 x i8] c"%s: last seen duplicate or out-of-order row index: %d\0A\00"
@.str.6 = [56 x i8] c"%s: last seen in column: %d\00"
@.str.8 = [57 x i8] c"%s: number of dense or empty rows ignored: %d\0A\00"
@.str.9 = [57 x i8] c"%s: number of dense or empty columns ignored: %d\0A\00"
@.str.10 = [57 x i8] c"%s: number of garbage collections performed: %d\0A\00"
@.str.13 = [30 x i8] c"Invalid number of rows (%d).\0A\00"
@.str.14 = [33 x i8] c"Invalid number of columns (%d).\0A\00"
@.str.15 = [41 x i8] c"Invalid number of nonzero entries (%d).\0A\00"
@.str.16 = [51 x i8] c"Invalid column pointer, p [0] = %d, must be zero.\0A\00"
@.str.18 = [52 x i8] c" Need Alen >= %d, but given only Alen = %d.\0A\00"
@.str.19 = [58 x i8] c"Column %d has a negative number of nonzero entries (%d).\0A\00"
@.str.20 = [59 x i8] c"Row index (row %d) out of bounds (%d to %d) in column %d.\0A\00"
@str = [61 x i8] c"Internal error! Please contact authors (davis@cise.ufl.edu).\00"
@str.23 = [15 x i8] c"Out of memory.\00"
@str.24 = [19 x i8] c"Array A too small.\00"
@str.25 = [50 x i8] c"Array p (column pointers for matrix) not present.\00"
@str.26 = [45 x i8] c"Array A (row indices of matrix) not present.\00"
@str.27 = [46 x i8] c"Matrix has unsorted or duplicate row indices.\00"
define void @print_report(i8* %0, i32* %1) {
%3 = icmp eq i32* %1, null
br i1 %3, label %4, label %6
4: ; preds = %2
%5 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([30 x i8], [30 x i8]* @.str, i64 0, i64 0), i8* %0)
br label %58
6: ; preds = %2
%7 = getelementptr inbounds i32, i32* %1, i64 4
%8 = load i32, i32* %7
%9 = getelementptr inbounds i32, i32* %1, i64 5
%10 = load i32, i32* %9
%11 = getelementptr inbounds i32, i32* %1, i64 6
%12 = load i32, i32* %11
%13 = getelementptr inbounds i32, i32* %1, i64 3
%14 = load i32, i32* %13
%15 = icmp sgt i32 %14, -1
%16 = select i1 %15, i8* getelementptr inbounds ([10 x i8], [10 x i8]* @.str.1, i64 0, i64 0), i8* getelementptr inbounds ([13 x i8], [13 x i8]* @.str.2, i64 0, i64 0)
%17 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) %16, i8* %0)
%18 = load i32, i32* %13
switch i32 %18, label %58 [
i32 1, label %19
i32 0, label %24
i32 -1, label %34
i32 -2, label %36
i32 -3, label %38
i32 -4, label %40
i32 -5, label %42
i32 -6, label %44
i32 -7, label %46
i32 -8, label %49
i32 -9, label %51
i32 -10, label %54
i32 -999, label %56
]
19: ; preds = %6
%20 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([46 x i8], [46 x i8]* @str.27, i64 0, i64 0))
%21 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([57 x i8], [57 x i8]* @.str.4, i64 0, i64 0), i8* %0, i32 %12)
%22 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([57 x i8], [57 x i8]* @.str.5, i64 0, i64 0), i8* %0, i32 %10)
%23 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([56 x i8], [56 x i8]* @.str.6, i64 0, i64 0), i8* %0, i32 %8)
br label %24
24: ; preds = %6, %19
%25 = tail call i32 @putchar(i32 10)
%26 = load i32, i32* %1
%27 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([57 x i8], [57 x i8]* @.str.8, i64 0, i64 0), i8* %0, i32 %26)
%28 = getelementptr inbounds i32, i32* %1, i64 1
%29 = load i32, i32* %28
%30 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([57 x i8], [57 x i8]* @.str.9, i64 0, i64 0), i8* %0, i32 %29)
%31 = getelementptr inbounds i32, i32* %1, i64 2
%32 = load i32, i32* %31
%33 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([57 x i8], [57 x i8]* @.str.10, i64 0, i64 0), i8* %0, i32 %32)
br label %58
34: ; preds = %6
%35 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([45 x i8], [45 x i8]* @str.26, i64 0, i64 0))
br label %58
36: ; preds = %6
%37 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([50 x i8], [50 x i8]* @str.25, i64 0, i64 0))
br label %58
38: ; preds = %6
%39 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([30 x i8], [30 x i8]* @.str.13, i64 0, i64 0), i32 %8)
br label %58
40: ; preds = %6
%41 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([33 x i8], [33 x i8]* @.str.14, i64 0, i64 0), i32 %8)
br label %58
42: ; preds = %6
%43 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([41 x i8], [41 x i8]* @.str.15, i64 0, i64 0), i32 %8)
br label %58
44: ; preds = %6
%45 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([51 x i8], [51 x i8]* @.str.16, i64 0, i64 0), i32 %8)
br label %58
46: ; preds = %6
%47 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([19 x i8], [19 x i8]* @str.24, i64 0, i64 0))
%48 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([52 x i8], [52 x i8]* @.str.18, i64 0, i64 0), i32 %8, i32 %10)
br label %58
49: ; preds = %6
%50 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([58 x i8], [58 x i8]* @.str.19, i64 0, i64 0), i32 %8, i32 %10)
br label %58
51: ; preds = %6
%52 = add nsw i32 %12, -1
%53 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([59 x i8], [59 x i8]* @.str.20, i64 0, i64 0), i32 %10, i32 0, i32 %52, i32 %8)
br label %58
54: ; preds = %6
%55 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([15 x i8], [15 x i8]* @str.23, i64 0, i64 0))
br label %58
56: ; preds = %6
%57 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([61 x i8], [61 x i8]* @str, i64 0, i64 0))
br label %58
58: ; preds = %24, %34, %36, %38, %40, %42, %44, %46, %49, %51, %54, %56, %6, %4
ret void
}