#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 */
typedef int /*<<< orphan*/ FILE;

/* Variables and functions */
int /*<<< orphan*/ FormFullA(int, int *, float **, int **, int **);
int /*<<< orphan*/ ReadVector(int /*<<< orphan*/ *, int, int *, int, int);
int /*<<< orphan*/ fclose(int /*<<< orphan*/ *);
int /*<<< orphan*/ fgets(char *, int, int /*<<< orphan*/ *);
int /*<<< orphan*/ fputs(char *, int /*<<< orphan*/);
int /*<<< orphan*/ fscanf(int /*<<< orphan*/ *, char *, char *);
int /*<<< orphan*/ printf(char *);
int /*<<< orphan*/ sDumpLine(int /*<<< orphan*/ *);
int /*<<< orphan*/ sParseFloatFormat(char *, int *, int *);
int /*<<< orphan*/ sParseIntFormat(char *, int *, int *);
int /*<<< orphan*/ sReadValues(int /*<<< orphan*/ *, int, float *, int, int);
int /*<<< orphan*/ sallocateA(int, int, float **, int **, int **);
int /*<<< orphan*/ sscanf(char *, char *, int *);
int /*<<< orphan*/ *stdin;
int /*<<< orphan*/ stdout;
void sreadrb(int *nrow, int *ncol, int *nonz, float **nzval, int **rowind,
             int **colptr) {
  register int i, numer_lines = 0;
  int tmp, colnum, colsize, rownum, rowsize, valnum, valsize;
  char buf[100], type[4];
  int sym;
  FILE *fp;
  fp = stdin;
  fgets(buf, 100, fp);
  fputs(buf, stdout);
  for (i = 0; i < 4; i++) {
    fscanf(fp, "%14c", buf);
    buf[14] = 0;
    sscanf(buf, "%d", &tmp);
    if (i == 3)
      numer_lines = tmp;
  }
  sDumpLine(fp);
  fscanf(fp, "%3c", type);
  fscanf(fp, "%11c", buf);
  type[3] = 0;
  fscanf(fp, "%14c", buf);
  sscanf(buf, "%d", nrow);
  fscanf(fp, "%14c", buf);
  sscanf(buf, "%d", ncol);
  fscanf(fp, "%14c", buf);
  sscanf(buf, "%d", nonz);
  fscanf(fp, "%14c", buf);
  sscanf(buf, "%d", &tmp);
  if (tmp != 0)
    printf("This is not an assembled matrix!\n");
  if (*nrow != *ncol)
    printf("Matrix is not square.\n");
  sDumpLine(fp);
  sallocateA(*ncol, *nonz, nzval, rowind, colptr);
  fscanf(fp, "%16c", buf);
  sParseIntFormat(buf, &colnum, &colsize);
  fscanf(fp, "%16c", buf);
  sParseIntFormat(buf, &rownum, &rowsize);
  fscanf(fp, "%20c", buf);
  sParseFloatFormat(buf, &valnum, &valsize);
  sDumpLine(fp);
  ReadVector(fp, *ncol + 1, *colptr, colnum, colsize);
  ReadVector(fp, *nonz, *rowind, rownum, rowsize);
  if (numer_lines) {
    sReadValues(fp, *nonz, *nzval, valnum, valsize);
  }
  sym = (type[1] == 'S' || type[1] == 's');
  if (sym) {
    FormFullA(*ncol, nonz, nzval, rowind, colptr);
  }
  fclose(fp);
}


x86 assembly (clang, -O0):
<sreadrb>:
push   %rbp
mov    %rsp,%rbp
sub    $0xe0,%rsp
mov    %rdi,-0x8(%rbp)
mov    %rsi,-0x10(%rbp)
mov    %rdx,-0x18(%rbp)
mov    %rcx,-0x20(%rbp)
mov    %r8,-0x28(%rbp)
mov    %r9,-0x30(%rbp)
movl   $0x0,-0x38(%rbp)
mov    0x2de7(%rip),%rax
mov    (%rax),%rax
mov    %rax,-0xd0(%rbp)
lea    -0xc0(%rbp),%rdi
mov    -0xd0(%rbp),%rdx
mov    $0x64,%esi
call   10b0 <fgets@plt>
lea    -0xc0(%rbp),%rdi
mov    0x2da7(%rip),%rax
mov    (%rax),%esi
call   1090 <fputs@plt>
movl   $0x0,-0x34(%rbp)
cmpl   $0x4,-0x34(%rbp)
jge    12a4 <sreadrb+0xd4>
mov    -0xd0(%rbp),%rdi
lea    -0xc0(%rbp),%rdx
lea    0xda2(%rip),%rsi
call   10a0 <fscanf@plt>
movb   $0x0,-0xb2(%rbp)
lea    -0xc0(%rbp),%rdi
lea    0xd8d(%rip),%rsi
lea    -0x3c(%rbp),%rdx
call   10d0 <sscanf@plt>
cmpl   $0x3,-0x34(%rbp)
jne    1291 <sreadrb+0xc1>
mov    -0x3c(%rbp),%eax
mov    %eax,-0x38(%rbp)
jmp    1296 <sreadrb+0xc6>
mov    -0x34(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x34(%rbp)
jmp    123f <sreadrb+0x6f>
mov    -0xd0(%rbp),%rdi
call   10e0 <sDumpLine@plt>
mov    -0xd0(%rbp),%rdi
lea    -0xc4(%rbp),%rdx
lea    0xd43(%rip),%rsi
call   10a0 <fscanf@plt>
mov    -0xd0(%rbp),%rdi
lea    -0xc0(%rbp),%rdx
lea    0xd2d(%rip),%rsi
call   10a0 <fscanf@plt>
movb   $0x0,-0xc1(%rbp)
mov    -0xd0(%rbp),%rdi
lea    -0xc0(%rbp),%rdx
lea    0xd00(%rip),%rsi
call   10a0 <fscanf@plt>
lea    -0xc0(%rbp),%rdi
mov    -0x8(%rbp),%rdx
lea    0xcee(%rip),%rsi
call   10d0 <sscanf@plt>
mov    -0xd0(%rbp),%rdi
lea    -0xc0(%rbp),%rdx
lea    0xccf(%rip),%rsi
call   10a0 <fscanf@plt>
lea    -0xc0(%rbp),%rdi
mov    -0x10(%rbp),%rdx
lea    0xcbd(%rip),%rsi
call   10d0 <sscanf@plt>
mov    -0xd0(%rbp),%rdi
lea    -0xc0(%rbp),%rdx
lea    0xc9e(%rip),%rsi
call   10a0 <fscanf@plt>
lea    -0xc0(%rbp),%rdi
mov    -0x18(%rbp),%rdx
lea    0xc8c(%rip),%rsi
call   10d0 <sscanf@plt>
mov    -0xd0(%rbp),%rdi
lea    -0xc0(%rbp),%rdx
lea    0xc6d(%rip),%rsi
call   10a0 <fscanf@plt>
lea    -0xc0(%rbp),%rdi
lea    0xc5f(%rip),%rsi
lea    -0x3c(%rbp),%rdx
call   10d0 <sscanf@plt>
cmpl   $0x0,-0x3c(%rbp)
je     13c5 <sreadrb+0x1f5>
lea    0xc51(%rip),%rdi
call   1060 <printf@plt>
mov    -0x8(%rbp),%rax
mov    (%rax),%eax
mov    -0x10(%rbp),%rcx
cmp    (%rcx),%eax
je     13e3 <sreadrb+0x213>
lea    0xc55(%rip),%rdi
call   1060 <printf@plt>
mov    -0xd0(%rbp),%rdi
call   10e0 <sDumpLine@plt>
mov    -0x10(%rbp),%rax
mov    (%rax),%edi
mov    -0x18(%rbp),%rax
mov    (%rax),%esi
mov    -0x20(%rbp),%rdx
mov    -0x28(%rbp),%rcx
mov    -0x30(%rbp),%r8
call   1030 <sallocateA@plt>
mov    -0xd0(%rbp),%rdi
lea    -0xc0(%rbp),%rdx
lea    0xc29(%rip),%rsi
call   10a0 <fscanf@plt>
lea    -0xc0(%rbp),%rdi
lea    -0x40(%rbp),%rsi
lea    -0x44(%rbp),%rdx
call   1080 <sParseIntFormat@plt>
mov    -0xd0(%rbp),%rdi
lea    -0xc0(%rbp),%rdx
lea    0xbfb(%rip),%rsi
call   10a0 <fscanf@plt>
lea    -0xc0(%rbp),%rdi
lea    -0x48(%rbp),%rsi
lea    -0x4c(%rbp),%rdx
call   1080 <sParseIntFormat@plt>
mov    -0xd0(%rbp),%rdi
lea    -0xc0(%rbp),%rdx
lea    0xbd2(%rip),%rsi
call   10a0 <fscanf@plt>
lea    -0xc0(%rbp),%rdi
lea    -0x50(%rbp),%rsi
lea    -0x54(%rbp),%rdx
call   1070 <sParseFloatFormat@plt>
mov    -0xd0(%rbp),%rdi
call   10e0 <sDumpLine@plt>
mov    -0xd0(%rbp),%rdi
mov    -0x10(%rbp),%rax
mov    (%rax),%esi
add    $0x1,%esi
mov    -0x30(%rbp),%rax
mov    (%rax),%rdx
mov    -0x40(%rbp),%ecx
mov    -0x44(%rbp),%r8d
call   10c0 <ReadVector@plt>
mov    -0xd0(%rbp),%rdi
mov    -0x18(%rbp),%rax
mov    (%rax),%esi
mov    -0x28(%rbp),%rax
mov    (%rax),%rdx
mov    -0x48(%rbp),%ecx
mov    -0x4c(%rbp),%r8d
call   10c0 <ReadVector@plt>
cmpl   $0x0,-0x38(%rbp)
je     150f <sreadrb+0x33f>
mov    -0xd0(%rbp),%rdi
mov    -0x18(%rbp),%rax
mov    (%rax),%esi
mov    -0x20(%rbp),%rax
mov    (%rax),%rdx
mov    -0x50(%rbp),%ecx
mov    -0x54(%rbp),%r8d
call   10f0 <sReadValues@plt>
movsbl -0xc3(%rbp),%ecx
mov    $0x1,%al
cmp    $0x53,%ecx
mov    %al,-0xd1(%rbp)
je     153a <sreadrb+0x36a>
movsbl -0xc3(%rbp),%eax
cmp    $0x73,%eax
sete   %al
mov    %al,-0xd1(%rbp)
mov    -0xd1(%rbp),%al
and    $0x1,%al
movzbl %al,%eax
mov    %eax,-0xc8(%rbp)
cmpl   $0x0,-0xc8(%rbp)
je     1573 <sreadrb+0x3a3>
mov    -0x10(%rbp),%rax
mov    (%rax),%edi
mov    -0x18(%rbp),%rsi
mov    -0x20(%rbp),%rdx
mov    -0x28(%rbp),%rcx
mov    -0x30(%rbp),%r8
call   1050 <FormFullA@plt>
mov    -0xd0(%rbp),%rdi
call   1040 <fclose@plt>
add    $0xe0,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<sreadrb>:
push   %rbp
push   %r15
push   %r14
push   %r13
push   %r12
push   %rbx
sub    $0xb8,%rsp
mov    %r9,0x48(%rsp)
mov    %r8,0x40(%rsp)
mov    %rcx,0x38(%rsp)
mov    %rdx,0x30(%rsp)
mov    %rsi,0x8(%rsp)
mov    %rdi,%r12
mov    0x2de4(%rip),%rax
mov    (%rax),%rbx
lea    0x50(%rsp),%r14
mov    %r14,%rdi
mov    $0x64,%esi
mov    %rbx,%rdx
call   10b0 <fgets@plt>
mov    0x2db5(%rip),%rax
mov    (%rax),%esi
mov    %r14,%rdi
call   1090 <fputs@plt>
lea    0xdcc(%rip),%r15
mov    %rbx,%rdi
mov    %r15,%rsi
mov    %r14,%rdx
call   10a0 <fscanf@plt>
movb   $0x0,0x5e(%rsp)
lea    0xdb7(%rip),%r13
lea    0x4(%rsp),%rbp
mov    %r14,%rdi
mov    %r13,%rsi
mov    %rbp,%rdx
call   10d0 <sscanf@plt>
mov    %rbx,%rdi
mov    %r15,%rsi
mov    %r14,%rdx
call   10a0 <fscanf@plt>
movb   $0x0,0x5e(%rsp)
mov    %r14,%rdi
mov    %r13,%rsi
mov    %rbp,%rdx
call   10d0 <sscanf@plt>
mov    %rbx,%rdi
mov    %r15,%rsi
mov    %r14,%rdx
call   10a0 <fscanf@plt>
movb   $0x0,0x5e(%rsp)
mov    %r14,%rdi
mov    %r13,%rsi
mov    %rbp,%rdx
call   10d0 <sscanf@plt>
mov    %rbx,%rdi
mov    %r15,%rsi
mov    %r14,%rdx
call   10a0 <fscanf@plt>
movb   $0x0,0x5e(%rsp)
mov    %r14,%rdi
mov    %r13,%rsi
mov    %rbp,%rdx
call   10d0 <sscanf@plt>
mov    0x4(%rsp),%eax
mov    %eax,0x14(%rsp)
mov    %rbx,%rdi
call   10e0 <sDumpLine@plt>
lea    0xd2d(%rip),%rsi
lea    0x10(%rsp),%rdx
mov    %rbx,%rdi
call   10a0 <fscanf@plt>
lea    0xd1d(%rip),%rsi
mov    %rbx,%rdi
mov    %r14,%rdx
call   10a0 <fscanf@plt>
movb   $0x0,0x13(%rsp)
mov    %rbx,%rdi
mov    %r15,%rsi
mov    %r14,%rdx
call   10a0 <fscanf@plt>
mov    %r14,%rdi
mov    %r13,%rsi
mov    %r12,%rdx
call   10d0 <sscanf@plt>
mov    %rbx,%rdi
mov    %r15,%rsi
mov    %r14,%rdx
call   10a0 <fscanf@plt>
mov    %r14,%rdi
mov    %r13,%rsi
mov    0x8(%rsp),%rdx
call   10d0 <sscanf@plt>
mov    %rbx,%rdi
mov    %r15,%rsi
mov    %r14,%rdx
call   10a0 <fscanf@plt>
mov    %r14,%rdi
mov    %r13,%rsi
mov    0x30(%rsp),%rdx
mov    %rdx,%rbp
call   10d0 <sscanf@plt>
mov    %rbx,%rdi
mov    %r15,%rsi
mov    %r14,%rdx
call   10a0 <fscanf@plt>
mov    %r14,%rdi
mov    %r13,%rsi
lea    0x4(%rsp),%rdx
call   10d0 <sscanf@plt>
cmpl   $0x0,0x4(%rsp)
je     138b <sreadrb+0x1bb>
lea    0xcab(%rip),%rdi
call   1040 <puts@plt>
mov    (%r12),%eax
mov    0x8(%rsp),%rcx
cmp    (%rcx),%eax
je     13a4 <sreadrb+0x1d4>
lea    0xc7c(%rip),%rdi
call   1040 <puts@plt>
mov    %rbx,%rdi
call   10e0 <sDumpLine@plt>
mov    0x8(%rsp),%rax
mov    (%rax),%edi
mov    %rbp,%r13
mov    0x0(%rbp),%esi
mov    0x38(%rsp),%r12
mov    %r12,%rdx
mov    0x40(%rsp),%r15
mov    %r15,%rcx
mov    0x48(%rsp),%r14
mov    %r14,%r8
call   1030 <sallocateA@plt>
lea    0xc34(%rip),%rsi
lea    0x50(%rsp),%rbp
mov    %rbx,%rdi
mov    %rbp,%rdx
call   10a0 <fscanf@plt>
lea    0x2c(%rsp),%rsi
lea    0x28(%rsp),%rdx
mov    %rbp,%rdi
call   1080 <sParseIntFormat@plt>
mov    %rbx,%rdi
lea    0xc08(%rip),%rsi
mov    %rbp,%rdx
call   10a0 <fscanf@plt>
lea    0x24(%rsp),%rsi
lea    0x20(%rsp),%rdx
mov    %rbp,%rdi
call   1080 <sParseIntFormat@plt>
lea    0xbec(%rip),%rsi
mov    %rbx,%rdi
mov    %rbp,%rdx
call   10a0 <fscanf@plt>
lea    0x1c(%rsp),%rsi
lea    0x18(%rsp),%rdx
mov    %rbp,%rdi
call   1070 <sParseFloatFormat@plt>
mov    %rbx,%rdi
call   10e0 <sDumpLine@plt>
mov    0x8(%rsp),%rax
mov    (%rax),%esi
add    $0x1,%esi
mov    (%r14),%rdx
mov    0x2c(%rsp),%ecx
mov    0x28(%rsp),%r8d
mov    %rbx,%rdi
call   10c0 <ReadVector@plt>
mov    0x0(%r13),%esi
mov    (%r15),%rdx
mov    0x24(%rsp),%ecx
mov    0x20(%rsp),%r8d
mov    %rbx,%rdi
call   10c0 <ReadVector@plt>
cmpl   $0x0,0x14(%rsp)
je     14a5 <sreadrb+0x2d5>
mov    0x0(%r13),%esi
mov    (%r12),%rdx
mov    0x1c(%rsp),%ecx
mov    0x18(%rsp),%r8d
mov    %rbx,%rdi
call   10f0 <sReadValues@plt>
mov    0x11(%rsp),%al
and    $0xdf,%al
cmp    $0x53,%al
jne    14c7 <sreadrb+0x2f7>
mov    0x8(%rsp),%rax
mov    (%rax),%edi
mov    %r13,%rsi
mov    %r12,%rdx
mov    %r15,%rcx
mov    %r14,%r8
call   1060 <FormFullA@plt>
mov    %rbx,%rdi
call   1050 <fclose@plt>
add    $0xb8,%rsp
pop    %rbx
pop    %r12
pop    %r13
pop    %r14
pop    %r15
pop    %rbp
ret

LLVM IR (-O0):
@stdin = global i32* null
@stdout = global i32 0
@.str = [5 x i8] c"%14c\00"
@.str.1 = [3 x i8] c"%d\00"
@.str.2 = [4 x i8] c"%3c\00"
@.str.3 = [5 x i8] c"%11c\00"
@.str.4 = [34 x i8] c"This is not an assembled matrix!\0A\00"
@.str.5 = [23 x i8] c"Matrix is not square.\0A\00"
@.str.6 = [5 x i8] c"%16c\00"
@.str.7 = [5 x i8] c"%20c\00"
define void @sreadrb(i32* %0, i32* %1, i32* %2, float** %3, i32** %4, i32** %5) {
%7 = alloca i32*
%8 = alloca i32*
%9 = alloca i32*
%10 = alloca float**
%11 = alloca i32**
%12 = alloca i32**
%13 = alloca i32
%14 = alloca i32
%15 = alloca i32
%16 = alloca i32
%17 = alloca i32
%18 = alloca i32
%19 = alloca i32
%20 = alloca i32
%21 = alloca i32
%22 = alloca [100 x i8]
%23 = alloca [4 x i8]
%24 = alloca i32
%25 = alloca i32*
store i32* %0, i32** %7
store i32* %1, i32** %8
store i32* %2, i32** %9
store float** %3, float*** %10
store i32** %4, i32*** %11
store i32** %5, i32*** %12
store i32 0, i32* %14
%26 = load i32*, i32** @stdin
store i32* %26, i32** %25
%27 = getelementptr inbounds [100 x i8], [100 x i8]* %22, i64 0, i64 0
%28 = load i32*, i32** %25
%29 = call i32 @fgets(i8* %27, i32 100, i32* %28)
%30 = getelementptr inbounds [100 x i8], [100 x i8]* %22, i64 0, i64 0
%31 = load i32, i32* @stdout
%32 = call i32 @fputs(i8* %30, i32 %31)
store i32 0, i32* %13
br label %33
33: ; preds = %48, %6
%34 = load i32, i32* %13
%35 = icmp slt i32 %34, 4
br i1 %35, label %36, label %51
36: ; preds = %33
%37 = load i32*, i32** %25
%38 = getelementptr inbounds [100 x i8], [100 x i8]* %22, i64 0, i64 0
%39 = call i32 @fscanf(i32* %37, i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str, i64 0, i64 0), i8* %38)
%40 = getelementptr inbounds [100 x i8], [100 x i8]* %22, i64 0, i64 14
store i8 0, i8* %40
%41 = getelementptr inbounds [100 x i8], [100 x i8]* %22, i64 0, i64 0
%42 = call i32 @sscanf(i8* %41, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.1, i64 0, i64 0), i32* %15)
%43 = load i32, i32* %13
%44 = icmp eq i32 %43, 3
br i1 %44, label %45, label %47
45: ; preds = %36
%46 = load i32, i32* %15
store i32 %46, i32* %14
br label %47
47: ; preds = %45, %36
br label %48
48: ; preds = %47
%49 = load i32, i32* %13
%50 = add nsw i32 %49, 1
store i32 %50, i32* %13
br label %33
51: ; preds = %33
%52 = load i32*, i32** %25
%53 = call i32 @sDumpLine(i32* %52)
%54 = load i32*, i32** %25
%55 = getelementptr inbounds [4 x i8], [4 x i8]* %23, i64 0, i64 0
%56 = call i32 @fscanf(i32* %54, i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.2, i64 0, i64 0), i8* %55)
%57 = load i32*, i32** %25
%58 = getelementptr inbounds [100 x i8], [100 x i8]* %22, i64 0, i64 0
%59 = call i32 @fscanf(i32* %57, i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.3, i64 0, i64 0), i8* %58)
%60 = getelementptr inbounds [4 x i8], [4 x i8]* %23, i64 0, i64 3
store i8 0, i8* %60
%61 = load i32*, i32** %25
%62 = getelementptr inbounds [100 x i8], [100 x i8]* %22, i64 0, i64 0
%63 = call i32 @fscanf(i32* %61, i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str, i64 0, i64 0), i8* %62)
%64 = getelementptr inbounds [100 x i8], [100 x i8]* %22, i64 0, i64 0
%65 = load i32*, i32** %7
%66 = call i32 @sscanf(i8* %64, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.1, i64 0, i64 0), i32* %65)
%67 = load i32*, i32** %25
%68 = getelementptr inbounds [100 x i8], [100 x i8]* %22, i64 0, i64 0
%69 = call i32 @fscanf(i32* %67, i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str, i64 0, i64 0), i8* %68)
%70 = getelementptr inbounds [100 x i8], [100 x i8]* %22, i64 0, i64 0
%71 = load i32*, i32** %8
%72 = call i32 @sscanf(i8* %70, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.1, i64 0, i64 0), i32* %71)
%73 = load i32*, i32** %25
%74 = getelementptr inbounds [100 x i8], [100 x i8]* %22, i64 0, i64 0
%75 = call i32 @fscanf(i32* %73, i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str, i64 0, i64 0), i8* %74)
%76 = getelementptr inbounds [100 x i8], [100 x i8]* %22, i64 0, i64 0
%77 = load i32*, i32** %9
%78 = call i32 @sscanf(i8* %76, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.1, i64 0, i64 0), i32* %77)
%79 = load i32*, i32** %25
%80 = getelementptr inbounds [100 x i8], [100 x i8]* %22, i64 0, i64 0
%81 = call i32 @fscanf(i32* %79, i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str, i64 0, i64 0), i8* %80)
%82 = getelementptr inbounds [100 x i8], [100 x i8]* %22, i64 0, i64 0
%83 = call i32 @sscanf(i8* %82, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.1, i64 0, i64 0), i32* %15)
%84 = load i32, i32* %15
%85 = icmp ne i32 %84, 0
br i1 %85, label %86, label %88
86: ; preds = %51
%87 = call i32 @printf(i8* getelementptr inbounds ([34 x i8], [34 x i8]* @.str.4, i64 0, i64 0))
br label %88
88: ; preds = %86, %51
%89 = load i32*, i32** %7
%90 = load i32, i32* %89
%91 = load i32*, i32** %8
%92 = load i32, i32* %91
%93 = icmp ne i32 %90, %92
br i1 %93, label %94, label %96
94: ; preds = %88
%95 = call i32 @printf(i8* getelementptr inbounds ([23 x i8], [23 x i8]* @.str.5, i64 0, i64 0))
br label %96
96: ; preds = %94, %88
%97 = load i32*, i32** %25
%98 = call i32 @sDumpLine(i32* %97)
%99 = load i32*, i32** %8
%100 = load i32, i32* %99
%101 = load i32*, i32** %9
%102 = load i32, i32* %101
%103 = load float**, float*** %10
%104 = load i32**, i32*** %11
%105 = load i32**, i32*** %12
%106 = call i32 @sallocateA(i32 %100, i32 %102, float** %103, i32** %104, i32** %105)
%107 = load i32*, i32** %25
%108 = getelementptr inbounds [100 x i8], [100 x i8]* %22, i64 0, i64 0
%109 = call i32 @fscanf(i32* %107, i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.6, i64 0, i64 0), i8* %108)
%110 = getelementptr inbounds [100 x i8], [100 x i8]* %22, i64 0, i64 0
%111 = call i32 @sParseIntFormat(i8* %110, i32* %16, i32* %17)
%112 = load i32*, i32** %25
%113 = getelementptr inbounds [100 x i8], [100 x i8]* %22, i64 0, i64 0
%114 = call i32 @fscanf(i32* %112, i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.6, i64 0, i64 0), i8* %113)
%115 = getelementptr inbounds [100 x i8], [100 x i8]* %22, i64 0, i64 0
%116 = call i32 @sParseIntFormat(i8* %115, i32* %18, i32* %19)
%117 = load i32*, i32** %25
%118 = getelementptr inbounds [100 x i8], [100 x i8]* %22, i64 0, i64 0
%119 = call i32 @fscanf(i32* %117, i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.7, i64 0, i64 0), i8* %118)
%120 = getelementptr inbounds [100 x i8], [100 x i8]* %22, i64 0, i64 0
%121 = call i32 @sParseFloatFormat(i8* %120, i32* %20, i32* %21)
%122 = load i32*, i32** %25
%123 = call i32 @sDumpLine(i32* %122)
%124 = load i32*, i32** %25
%125 = load i32*, i32** %8
%126 = load i32, i32* %125
%127 = add nsw i32 %126, 1
%128 = load i32**, i32*** %12
%129 = load i32*, i32** %128
%130 = load i32, i32* %16
%131 = load i32, i32* %17
%132 = call i32 @ReadVector(i32* %124, i32 %127, i32* %129, i32 %130, i32 %131)
%133 = load i32*, i32** %25
%134 = load i32*, i32** %9
%135 = load i32, i32* %134
%136 = load i32**, i32*** %11
%137 = load i32*, i32** %136
%138 = load i32, i32* %18
%139 = load i32, i32* %19
%140 = call i32 @ReadVector(i32* %133, i32 %135, i32* %137, i32 %138, i32 %139)
%141 = load i32, i32* %14
%142 = icmp ne i32 %141, 0
br i1 %142, label %143, label %152
143: ; preds = %96
%144 = load i32*, i32** %25
%145 = load i32*, i32** %9
%146 = load i32, i32* %145
%147 = load float**, float*** %10
%148 = load float*, float** %147
%149 = load i32, i32* %20
%150 = load i32, i32* %21
%151 = call i32 @sReadValues(i32* %144, i32 %146, float* %148, i32 %149, i32 %150)
br label %152
152: ; preds = %143, %96
%153 = getelementptr inbounds [4 x i8], [4 x i8]* %23, i64 0, i64 1
%154 = load i8, i8* %153
%155 = sext i8 %154 to i32
%156 = icmp eq i32 %155, 83
br i1 %156, label %162, label %157
157: ; preds = %152
%158 = getelementptr inbounds [4 x i8], [4 x i8]* %23, i64 0, i64 1
%159 = load i8, i8* %158
%160 = sext i8 %159 to i32
%161 = icmp eq i32 %160, 115
br label %162
162: ; preds = %157, %152
%163 = phi i1 [ true, %152 ], [ %161, %157 ]
%164 = zext i1 %163 to i32
store i32 %164, i32* %24
%165 = load i32, i32* %24
%166 = icmp ne i32 %165, 0
br i1 %166, label %167, label %175
167: ; preds = %162
%168 = load i32*, i32** %8
%169 = load i32, i32* %168
%170 = load i32*, i32** %9
%171 = load float**, float*** %10
%172 = load i32**, i32*** %11
%173 = load i32**, i32*** %12
%174 = call i32 @FormFullA(i32 %169, i32* %170, float** %171, i32** %172, i32** %173)
br label %175
175: ; preds = %167, %162
%176 = load i32*, i32** %25
%177 = call i32 @fclose(i32* %176)
ret void
}

LLVM IR (-O2):
@stdin = global i32* null
@stdout = global i32 0
@.str = [5 x i8] c"%14c\00"
@.str.1 = [3 x i8] c"%d\00"
@.str.2 = [4 x i8] c"%3c\00"
@.str.3 = [5 x i8] c"%11c\00"
@.str.6 = [5 x i8] c"%16c\00"
@.str.7 = [5 x i8] c"%20c\00"
@str = [22 x i8] c"Matrix is not square.\00"
@str.8 = [33 x i8] c"This is not an assembled matrix!\00"
define void @sreadrb(i32* %0, i32* %1, i32* %2, float** %3, i32** %4, i32** %5) {
%7 = alloca i32
%8 = alloca i32
%9 = alloca i32
%10 = alloca i32
%11 = alloca i32
%12 = alloca i32
%13 = alloca i32
%14 = alloca [100 x i8]
%15 = alloca [4 x i8]
%16 = bitcast i32* %7 to i8*
%17 = bitcast i32* %8 to i8*
%18 = bitcast i32* %9 to i8*
%19 = bitcast i32* %10 to i8*
%20 = bitcast i32* %11 to i8*
%21 = bitcast i32* %12 to i8*
%22 = bitcast i32* %13 to i8*
%23 = getelementptr inbounds [100 x i8], [100 x i8]* %14, i64 0, i64 0
%24 = getelementptr inbounds [4 x i8], [4 x i8]* %15, i64 0, i64 0
%25 = load i32*, i32** @stdin
%26 = call i32 @fgets(i8* %23, i32 100, i32* %25)
%27 = load i32, i32* @stdout
%28 = call i32 @fputs(i8* %23, i32 %27)
%29 = getelementptr inbounds [100 x i8], [100 x i8]* %14, i64 0, i64 14
%30 = call i32 @fscanf(i32* %25, i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str, i64 0, i64 0), i8* %23)
store i8 0, i8* %29
%31 = call i32 @sscanf(i8* %23, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.1, i64 0, i64 0), i32* %7)
%32 = call i32 @fscanf(i32* %25, i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str, i64 0, i64 0), i8* %23)
store i8 0, i8* %29
%33 = call i32 @sscanf(i8* %23, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.1, i64 0, i64 0), i32* %7)
%34 = call i32 @fscanf(i32* %25, i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str, i64 0, i64 0), i8* %23)
store i8 0, i8* %29
%35 = call i32 @sscanf(i8* %23, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.1, i64 0, i64 0), i32* %7)
%36 = call i32 @fscanf(i32* %25, i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str, i64 0, i64 0), i8* %23)
store i8 0, i8* %29
%37 = call i32 @sscanf(i8* %23, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.1, i64 0, i64 0), i32* %7)
%38 = load i32, i32* %7
%39 = call i32 @sDumpLine(i32* %25)
%40 = call i32 @fscanf(i32* %25, i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.2, i64 0, i64 0), i8* %24)
%41 = call i32 @fscanf(i32* %25, i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.3, i64 0, i64 0), i8* %23)
%42 = getelementptr inbounds [4 x i8], [4 x i8]* %15, i64 0, i64 3
store i8 0, i8* %42
%43 = call i32 @fscanf(i32* %25, i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str, i64 0, i64 0), i8* %23)
%44 = call i32 @sscanf(i8* %23, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.1, i64 0, i64 0), i32* %0)
%45 = call i32 @fscanf(i32* %25, i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str, i64 0, i64 0), i8* %23)
%46 = call i32 @sscanf(i8* %23, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.1, i64 0, i64 0), i32* %1)
%47 = call i32 @fscanf(i32* %25, i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str, i64 0, i64 0), i8* %23)
%48 = call i32 @sscanf(i8* %23, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.1, i64 0, i64 0), i32* %2)
%49 = call i32 @fscanf(i32* %25, i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str, i64 0, i64 0), i8* %23)
%50 = call i32 @sscanf(i8* %23, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.1, i64 0, i64 0), i32* %7)
%51 = load i32, i32* %7
%52 = icmp eq i32 %51, 0
br i1 %52, label %55, label %53
53: ; preds = %6
%54 = call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([33 x i8], [33 x i8]* @str.8, i64 0, i64 0))
br label %55
55: ; preds = %53, %6
%56 = load i32, i32* %0
%57 = load i32, i32* %1
%58 = icmp eq i32 %56, %57
br i1 %58, label %61, label %59
59: ; preds = %55
%60 = call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([22 x i8], [22 x i8]* @str, i64 0, i64 0))
br label %61
61: ; preds = %59, %55
%62 = call i32 @sDumpLine(i32* %25)
%63 = load i32, i32* %1
%64 = load i32, i32* %2
%65 = call i32 @sallocateA(i32 %63, i32 %64, float** %3, i32** %4, i32** %5)
%66 = call i32 @fscanf(i32* %25, i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.6, i64 0, i64 0), i8* %23)
%67 = call i32 @sParseIntFormat(i8* %23, i32* %8, i32* %9)
%68 = call i32 @fscanf(i32* %25, i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.6, i64 0, i64 0), i8* %23)
%69 = call i32 @sParseIntFormat(i8* %23, i32* %10, i32* %11)
%70 = call i32 @fscanf(i32* %25, i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.7, i64 0, i64 0), i8* %23)
%71 = call i32 @sParseFloatFormat(i8* %23, i32* %12, i32* %13)
%72 = call i32 @sDumpLine(i32* %25)
%73 = load i32, i32* %1
%74 = add nsw i32 %73, 1
%75 = load i32*, i32** %5
%76 = load i32, i32* %8
%77 = load i32, i32* %9
%78 = call i32 @ReadVector(i32* %25, i32 %74, i32* %75, i32 %76, i32 %77)
%79 = load i32, i32* %2
%80 = load i32*, i32** %4
%81 = load i32, i32* %10
%82 = load i32, i32* %11
%83 = call i32 @ReadVector(i32* %25, i32 %79, i32* %80, i32 %81, i32 %82)
%84 = icmp eq i32 %38, 0
br i1 %84, label %91, label %85
85: ; preds = %61
%86 = load i32, i32* %2
%87 = load float*, float** %3
%88 = load i32, i32* %12
%89 = load i32, i32* %13
%90 = call i32 @sReadValues(i32* %25, i32 %86, float* %87, i32 %88, i32 %89)
br label %91
91: ; preds = %85, %61
%92 = getelementptr inbounds [4 x i8], [4 x i8]* %15, i64 0, i64 1
%93 = load i8, i8* %92
%94 = and i8 %93, -33
%95 = icmp eq i8 %94, 83
br i1 %95, label %96, label %99
96: ; preds = %91
%97 = load i32, i32* %1
%98 = call i32 @FormFullA(i32 %97, i32* %2, float** %3, i32** %4, i32** %5)
br label %99
99: ; preds = %96, %91
%100 = call i32 @fclose(i32* %25)
ret void
}