#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 */
char EOF;
int EXIT_SUCCESS;
int /*<<< orphan*/ fprintf(int /*<<< orphan*/, char *, int, ...);
char getchar();
int /*<<< orphan*/ printf(char *, ...);
int /*<<< orphan*/ putchar(char);
int scanf(char *, int *);
int /*<<< orphan*/ stderr;
int /*<<< orphan*/ stdin;
int /*<<< orphan*/ ungetc(char, int /*<<< orphan*/);
int main(void) {
  int matrix[5][5] = {0};
  char c = '\0';
  int j = 0;
  int sum = 0;
  for (int i = 0; i < 5; ++i) {
    printf("Please enter row %d: ", i + 1);
    j = 0;
    while (j < 5) {
      if (scanf(" %d", &matrix[i][j]) != 1) {
        fprintf(stderr, "Input invalid. Please enter the row %d again.\n",
                i + 1);
        while ((c = getchar()) != '\n' && c != EOF)
          continue;
        j = 0;
        continue;
      }
      ++j;
      c = getchar();
      if (c == '\n') {
        break;
      } else {
        if (j == 5) {
          fprintf(stderr,
                  "More than %d numbers in a row. Please make sure your row "
                  "has only %d numbers and enter the row %d again.\n",
                  5, 5, i + 1);
          while ((c = getchar()) != '\n' && c != EOF)
            continue;
          j = 0;
          continue;
        }
        ungetc(c, stdin);
      }
    }
  }
  for (int i = 0; i < 5; ++i) {
    for (int j = 0; j < 5; ++j) {
      printf("%d ", matrix[i][j]);
    }
    putchar('\n');
  }
  printf("Row totals: ");
  for (int i = 0; i < 5; ++i) {
    sum = 0;
    for (int j = 0; j < 5; ++j) {
      sum += matrix[i][j];
    }
    printf("%d ", sum);
  }
  putchar('\n');
  printf("Column total: ");
  for (int i = 0; i < 5; ++i) {
    sum = 0;
    for (int j = 0; j < 5; ++j) {
      sum += matrix[j][i];
    }
    printf("%d ", sum);
  }
  putchar('\n');
  getchar();
  return EXIT_SUCCESS;
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0xa0,%rsp
movl   $0x0,-0x4(%rbp)
lea    -0x70(%rbp),%rdi
xor    %esi,%esi
mov    $0x64,%edx
call   1050 <memset@plt>
movb   $0x0,-0x71(%rbp)
movl   $0x0,-0x78(%rbp)
movl   $0x0,-0x7c(%rbp)
movl   $0x0,-0x80(%rbp)
cmpl   $0x5,-0x80(%rbp)
jge    135d <main+0x1ed>
mov    -0x80(%rbp),%esi
add    $0x1,%esi
lea    0xe3e(%rip),%rdi
mov    $0x0,%al
call   1040 <printf@plt>
movl   $0x0,-0x78(%rbp)
cmpl   $0x5,-0x78(%rbp)
jge    134a <main+0x1da>
movslq -0x80(%rbp),%rax
lea    -0x70(%rbp),%rsi
imul   $0x14,%rax,%rax
add    %rax,%rsi
movslq -0x78(%rbp),%rax
shl    $0x2,%rax
add    %rax,%rsi
lea    0xe1b(%rip),%rdi
call   1090 <scanf@plt>
cmp    $0x1,%eax
je     1281 <main+0x111>
mov    0x2dc0(%rip),%rax
mov    (%rax),%edi
mov    -0x80(%rbp),%edx
add    $0x1,%edx
lea    0xdfb(%rip),%rsi
mov    $0x0,%al
call   1070 <fprintf@plt>
mov    $0x0,%al
call   1060 <getchar@plt>
mov    %al,-0x71(%rbp)
movsbl %al,%ecx
xor    %eax,%eax
cmp    $0xa,%ecx
mov    %al,-0x99(%rbp)
je     125d <main+0xed>
movsbl -0x71(%rbp),%eax
mov    0x2d91(%rip),%rcx
movsbl (%rcx),%ecx
cmp    %ecx,%eax
setne  %al
mov    %al,-0x99(%rbp)
mov    -0x99(%rbp),%al
test   $0x1,%al
jne    1270 <main+0x100>
jmp    1275 <main+0x105>
jmp    1226 <main+0xb6>
movl   $0x0,-0x78(%rbp)
jmp    11d0 <main+0x60>
mov    -0x78(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x78(%rbp)
mov    $0x0,%al
call   1060 <getchar@plt>
mov    %al,-0x71(%rbp)
movsbl -0x71(%rbp),%eax
cmp    $0xa,%eax
jne    12a6 <main+0x136>
jmp    134a <main+0x1da>
cmpl   $0x5,-0x78(%rbp)
jne    1331 <main+0x1c1>
mov    0x2d19(%rip),%rax
mov    (%rax),%edi
mov    -0x80(%rbp),%r8d
add    $0x1,%r8d
lea    0xd81(%rip),%rsi
mov    $0x5,%ecx
mov    %ecx,%edx
mov    $0x0,%al
call   1070 <fprintf@plt>
mov    $0x0,%al
call   1060 <getchar@plt>
mov    %al,-0x71(%rbp)
movsbl %al,%ecx
xor    %eax,%eax
cmp    $0xa,%ecx
mov    %al,-0x9a(%rbp)
je     130d <main+0x19d>
movsbl -0x71(%rbp),%eax
mov    0x2ce1(%rip),%rcx
movsbl (%rcx),%ecx
cmp    %ecx,%eax
setne  %al
mov    %al,-0x9a(%rbp)
mov    -0x9a(%rbp),%al
test   $0x1,%al
jne    1320 <main+0x1b0>
jmp    1325 <main+0x1b5>
jmp    12d6 <main+0x166>
movl   $0x0,-0x78(%rbp)
jmp    11d0 <main+0x60>
mov    -0x71(%rbp),%al
mov    0x2cad(%rip),%rcx
mov    (%rcx),%esi
movsbl %al,%edi
call   1080 <ungetc@plt>
jmp    11d0 <main+0x60>
jmp    134f <main+0x1df>
mov    -0x80(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x80(%rbp)
jmp    11ab <main+0x3b>
movl   $0x0,-0x84(%rbp)
cmpl   $0x5,-0x84(%rbp)
jge    13e7 <main+0x277>
movl   $0x0,-0x88(%rbp)
cmpl   $0x5,-0x88(%rbp)
jge    13c9 <main+0x259>
movslq -0x84(%rbp),%rcx
lea    -0x70(%rbp),%rax
imul   $0x14,%rcx,%rcx
add    %rcx,%rax
movslq -0x88(%rbp),%rcx
mov    (%rax,%rcx,4),%esi
lea    0xd05(%rip),%rdi
mov    $0x0,%al
call   1040 <printf@plt>
mov    -0x88(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x88(%rbp)
jmp    137e <main+0x20e>
mov    $0xa,%edi
call   1030 <putchar@plt>
mov    -0x84(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x84(%rbp)
jmp    1367 <main+0x1f7>
lea    0xcc9(%rip),%rdi
mov    $0x0,%al
call   1040 <printf@plt>
movl   $0x0,-0x8c(%rbp)
cmpl   $0x5,-0x8c(%rbp)
jge    1485 <main+0x315>
movl   $0x0,-0x7c(%rbp)
movl   $0x0,-0x90(%rbp)
cmpl   $0x5,-0x90(%rbp)
jge    1460 <main+0x2f0>
movslq -0x8c(%rbp),%rcx
lea    -0x70(%rbp),%rax
imul   $0x14,%rcx,%rcx
add    %rcx,%rax
movslq -0x90(%rbp),%rcx
mov    (%rax,%rcx,4),%eax
add    -0x7c(%rbp),%eax
mov    %eax,-0x7c(%rbp)
mov    -0x90(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x90(%rbp)
jmp    141d <main+0x2ad>
mov    -0x7c(%rbp),%esi
lea    0xc49(%rip),%rdi
mov    $0x0,%al
call   1040 <printf@plt>
mov    -0x8c(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x8c(%rbp)
jmp    13ff <main+0x28f>
mov    $0xa,%edi
call   1030 <putchar@plt>
lea    0xc2e(%rip),%rdi
mov    $0x0,%al
call   1040 <printf@plt>
movl   $0x0,-0x94(%rbp)
cmpl   $0x5,-0x94(%rbp)
jge    152d <main+0x3bd>
movl   $0x0,-0x7c(%rbp)
movl   $0x0,-0x98(%rbp)
cmpl   $0x5,-0x98(%rbp)
jge    1508 <main+0x398>
movslq -0x98(%rbp),%rcx
lea    -0x70(%rbp),%rax
imul   $0x14,%rcx,%rcx
add    %rcx,%rax
movslq -0x94(%rbp),%rcx
mov    (%rax,%rcx,4),%eax
add    -0x7c(%rbp),%eax
mov    %eax,-0x7c(%rbp)
mov    -0x98(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x98(%rbp)
jmp    14c5 <main+0x355>
mov    -0x7c(%rbp),%esi
lea    0xba1(%rip),%rdi
mov    $0x0,%al
call   1040 <printf@plt>
mov    -0x94(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x94(%rbp)
jmp    14a7 <main+0x337>
mov    $0xa,%edi
call   1030 <putchar@plt>
mov    $0x0,%al
call   1060 <getchar@plt>
mov    0x2a83(%rip),%rax
mov    (%rax),%eax
add    $0xa0,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %rbp
push   %r15
push   %r14
push   %r13
push   %r12
push   %rbx
sub    $0x68,%rsp
xorps  %xmm0,%xmm0
movaps %xmm0,0x50(%rsp)
movaps %xmm0,0x40(%rsp)
movaps %xmm0,0x30(%rsp)
movaps %xmm0,0x20(%rsp)
movaps %xmm0,0x10(%rsp)
movaps %xmm0,(%rsp)
movl   $0x0,0x60(%rsp)
lea    0xe79(%rip),%r13
mov    0x2e2c(%rip),%rbp
mov    0x2e35(%rip),%r14
xor    %r15d,%r15d
jmp    11ba <main+0x5a>
cmp    $0x5,%r15
je     129f <main+0x13f>
mov    %r15,%rbx
add    $0x1,%r15
lea    0xe38(%rip),%rdi
mov    %r15d,%esi
xor    %eax,%eax
call   1040 <printf@plt>
xor    %r12d,%r12d
jmp    11f1 <main+0x91>
nopw   0x0(%rax,%rax,1)
mov    0x2e01(%rip),%rcx
mov    (%rcx),%esi
movsbl %al,%edi
call   1070 <ungetc@plt>
movslq %r12d,%rax
lea    (%rbx,%rbx,4),%rcx
lea    (%rsp,%rcx,4),%rcx
lea    (%rcx,%rax,4),%rsi
mov    %r13,%rdi
call   1080 <scanf@plt>
cmp    $0x1,%eax
jne    1260 <main+0x100>
xor    %eax,%eax
call   1050 <getchar@plt>
cmp    $0xa,%al
je     11b0 <main+0x50>
add    $0x1,%r12d
cmp    $0x5,%r12d
jne    11e0 <main+0x80>
mov    0x0(%rbp),%edi
lea    0xe1d(%rip),%rsi
mov    $0x5,%edx
mov    $0x5,%ecx
mov    %r15d,%r8d
xor    %eax,%eax
call   1060 <fprintf@plt>
xor    %r12d,%r12d
xor    %eax,%eax
call   1050 <getchar@plt>
movzbl (%r14),%ecx
cmp    $0xa,%al
je     11f1 <main+0x91>
cmp    %cl,%al
jne    1240 <main+0xe0>
jmp    11f1 <main+0x91>
nopl   0x0(%rax,%rax,1)
mov    0x0(%rbp),%edi
lea    0xdb0(%rip),%rsi
mov    %r15d,%edx
xor    %eax,%eax
call   1060 <fprintf@plt>
cs nopw 0x0(%rax,%rax,1)
xchg   %ax,%ax
xor    %r12d,%r12d
xor    %eax,%eax
call   1050 <getchar@plt>
movzbl (%r14),%ecx
cmp    $0xa,%al
je     11f1 <main+0x91>
cmp    %cl,%al
jne    1280 <main+0x120>
jmp    11f1 <main+0x91>
mov    (%rsp),%esi
lea    0xe0a(%rip),%rbx
mov    %rbx,%rdi
xor    %eax,%eax
call   1040 <printf@plt>
mov    0x4(%rsp),%esi
mov    %rbx,%rdi
xor    %eax,%eax
call   1040 <printf@plt>
mov    0x8(%rsp),%esi
mov    %rbx,%rdi
xor    %eax,%eax
call   1040 <printf@plt>
mov    0xc(%rsp),%esi
mov    %rbx,%rdi
xor    %eax,%eax
call   1040 <printf@plt>
mov    0x10(%rsp),%esi
mov    %rbx,%rdi
xor    %eax,%eax
call   1040 <printf@plt>
mov    $0xa,%edi
call   1030 <putchar@plt>
mov    0x14(%rsp),%esi
mov    %rbx,%rdi
xor    %eax,%eax
call   1040 <printf@plt>
mov    0x18(%rsp),%esi
mov    %rbx,%rdi
xor    %eax,%eax
call   1040 <printf@plt>
mov    0x1c(%rsp),%esi
mov    %rbx,%rdi
xor    %eax,%eax
call   1040 <printf@plt>
mov    0x20(%rsp),%esi
mov    %rbx,%rdi
xor    %eax,%eax
call   1040 <printf@plt>
mov    0x24(%rsp),%esi
mov    %rbx,%rdi
xor    %eax,%eax
call   1040 <printf@plt>
mov    $0xa,%edi
call   1030 <putchar@plt>
mov    0x28(%rsp),%esi
mov    %rbx,%rdi
xor    %eax,%eax
call   1040 <printf@plt>
mov    0x2c(%rsp),%esi
mov    %rbx,%rdi
xor    %eax,%eax
call   1040 <printf@plt>
mov    0x30(%rsp),%esi
mov    %rbx,%rdi
xor    %eax,%eax
call   1040 <printf@plt>
mov    0x34(%rsp),%esi
mov    %rbx,%rdi
xor    %eax,%eax
call   1040 <printf@plt>
mov    0x38(%rsp),%esi
mov    %rbx,%rdi
xor    %eax,%eax
call   1040 <printf@plt>
mov    $0xa,%edi
call   1030 <putchar@plt>
mov    0x3c(%rsp),%esi
mov    %rbx,%rdi
xor    %eax,%eax
call   1040 <printf@plt>
mov    0x40(%rsp),%esi
mov    %rbx,%rdi
xor    %eax,%eax
call   1040 <printf@plt>
mov    0x44(%rsp),%esi
mov    %rbx,%rdi
xor    %eax,%eax
call   1040 <printf@plt>
mov    0x48(%rsp),%esi
mov    %rbx,%rdi
xor    %eax,%eax
call   1040 <printf@plt>
mov    0x4c(%rsp),%esi
mov    %rbx,%rdi
xor    %eax,%eax
call   1040 <printf@plt>
mov    $0xa,%edi
call   1030 <putchar@plt>
mov    0x50(%rsp),%esi
mov    %rbx,%rdi
xor    %eax,%eax
call   1040 <printf@plt>
mov    0x54(%rsp),%esi
mov    %rbx,%rdi
xor    %eax,%eax
call   1040 <printf@plt>
mov    0x58(%rsp),%esi
mov    %rbx,%rdi
xor    %eax,%eax
call   1040 <printf@plt>
mov    0x5c(%rsp),%esi
mov    %rbx,%rdi
xor    %eax,%eax
call   1040 <printf@plt>
mov    0x60(%rsp),%esi
mov    %rbx,%rdi
xor    %eax,%eax
call   1040 <printf@plt>
mov    $0xa,%edi
call   1030 <putchar@plt>
lea    0xc7b(%rip),%rdi
xor    %eax,%eax
call   1040 <printf@plt>
movdqu 0x4(%rsp),%xmm0
pshufd $0xee,%xmm0,%xmm1
paddd  %xmm0,%xmm1
pshufd $0x55,%xmm1,%xmm0
paddd  %xmm1,%xmm0
movd   %xmm0,%esi
add    (%rsp),%esi
mov    %rbx,%rdi
xor    %eax,%eax
call   1040 <printf@plt>
movdqu 0x18(%rsp),%xmm0
pshufd $0xee,%xmm0,%xmm1
paddd  %xmm0,%xmm1
pshufd $0x55,%xmm1,%xmm0
paddd  %xmm1,%xmm0
movd   %xmm0,%esi
add    0x14(%rsp),%esi
mov    %rbx,%rdi
xor    %eax,%eax
call   1040 <printf@plt>
movdqu 0x2c(%rsp),%xmm0
pshufd $0xee,%xmm0,%xmm1
paddd  %xmm0,%xmm1
pshufd $0x55,%xmm1,%xmm0
paddd  %xmm1,%xmm0
movd   %xmm0,%esi
add    0x28(%rsp),%esi
mov    %rbx,%rdi
xor    %eax,%eax
call   1040 <printf@plt>
movdqa 0x40(%rsp),%xmm0
pshufd $0xee,%xmm0,%xmm1
paddd  %xmm0,%xmm1
pshufd $0x55,%xmm1,%xmm0
paddd  %xmm1,%xmm0
movd   %xmm0,%esi
add    0x3c(%rsp),%esi
mov    %rbx,%rdi
xor    %eax,%eax
call   1040 <printf@plt>
movdqu 0x54(%rsp),%xmm0
pshufd $0xee,%xmm0,%xmm1
paddd  %xmm0,%xmm1
pshufd $0x55,%xmm1,%xmm0
paddd  %xmm1,%xmm0
movd   %xmm0,%esi
add    0x50(%rsp),%esi
mov    %rbx,%rdi
xor    %eax,%eax
call   1040 <printf@plt>
mov    $0xa,%edi
call   1030 <putchar@plt>
lea    0xb9f(%rip),%rdi
xor    %eax,%eax
call   1040 <printf@plt>
mov    0x14(%rsp),%esi
add    (%rsp),%esi
add    0x28(%rsp),%esi
add    0x3c(%rsp),%esi
add    0x50(%rsp),%esi
mov    %rbx,%rdi
xor    %eax,%eax
call   1040 <printf@plt>
mov    0x18(%rsp),%esi
add    0x4(%rsp),%esi
add    0x2c(%rsp),%esi
add    0x40(%rsp),%esi
add    0x54(%rsp),%esi
mov    %rbx,%rdi
xor    %eax,%eax
call   1040 <printf@plt>
mov    0x1c(%rsp),%esi
add    0x8(%rsp),%esi
add    0x30(%rsp),%esi
add    0x44(%rsp),%esi
add    0x58(%rsp),%esi
mov    %rbx,%rdi
xor    %eax,%eax
call   1040 <printf@plt>
mov    0x20(%rsp),%esi
add    0xc(%rsp),%esi
add    0x34(%rsp),%esi
add    0x48(%rsp),%esi
add    0x5c(%rsp),%esi
mov    %rbx,%rdi
xor    %eax,%eax
call   1040 <printf@plt>
mov    0x24(%rsp),%esi
add    0x10(%rsp),%esi
add    0x38(%rsp),%esi
add    0x4c(%rsp),%esi
add    0x60(%rsp),%esi
mov    %rbx,%rdi
xor    %eax,%eax
call   1040 <printf@plt>
mov    $0xa,%edi
call   1030 <putchar@plt>
xor    %eax,%eax
call   1050 <getchar@plt>
mov    0x29ef(%rip),%rax
mov    (%rax),%eax
add    $0x68,%rsp
pop    %rbx
pop    %r12
pop    %r13
pop    %r14
pop    %r15
pop    %rbp
ret

LLVM IR (-O0):
@.str = [22 x i8] c"Please enter row %d: \00"
@.str.1 = [4 x i8] c" %d\00"
@stderr = global i32 0
@.str.2 = [47 x i8] c"Input invalid. Please enter the row %d again.\0A\00"
@EOF = global i8 0
@.str.3 = [106 x i8] c"More than %d numbers in a row. Please make sure your row has only %d numbers and enter the row %d again.\0A\00"
@stdin = global i32 0
@.str.4 = [4 x i8] c"%d \00"
@.str.5 = [13 x i8] c"Row totals: \00"
@.str.6 = [15 x i8] c"Column total: \00"
@EXIT_SUCCESS = global i32 0
define i32 @main() {
%1 = alloca i32
%2 = alloca [5 x [5 x i32]]
%3 = alloca i8
%4 = alloca i32
%5 = alloca i32
%6 = alloca i32
%7 = alloca i32
%8 = alloca i32
%9 = alloca i32
%10 = alloca i32
%11 = alloca i32
%12 = alloca i32
store i32 0, i32* %1
%13 = bitcast [5 x [5 x i32]]* %2 to i8*
store i8 0, i8* %3
store i32 0, i32* %4
store i32 0, i32* %5
store i32 0, i32* %6
br label %14
14: ; preds = %88, %0
%15 = load i32, i32* %6
%16 = icmp slt i32 %15, 5
br i1 %16, label %17, label %91
17: ; preds = %14
%18 = load i32, i32* %6
%19 = add nsw i32 %18, 1
%20 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([22 x i8], [22 x i8]* @.str, i64 0, i64 0), i32 %19)
store i32 0, i32* %4
br label %21
21: ; preds = %86, %81, %51, %17
%22 = load i32, i32* %4
%23 = icmp slt i32 %22, 5
br i1 %23, label %24, label %87
24: ; preds = %21
%25 = load i32, i32* %6
%26 = sext i32 %25 to i64
%27 = getelementptr inbounds [5 x [5 x i32]], [5 x [5 x i32]]* %2, i64 0, i64 %26
%28 = load i32, i32* %4
%29 = sext i32 %28 to i64
%30 = getelementptr inbounds [5 x i32], [5 x i32]* %27, i64 0, i64 %29
%31 = call i32 @scanf(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.1, i64 0, i64 0), i32* %30)
%32 = icmp ne i32 %31, 1
br i1 %32, label %33, label %52
33: ; preds = %24
%34 = load i32, i32* @stderr
%35 = load i32, i32* %6
%36 = add nsw i32 %35, 1
%37 = call i32 (i32, i8*, i32, ...) @fprintf(i32 %34, i8* getelementptr inbounds ([47 x i8], [47 x i8]* @.str.2, i64 0, i64 0), i32 %36)
br label %38
38: ; preds = %50, %33
%39 = call signext i8 (...) @getchar()
store i8 %39, i8* %3
%40 = sext i8 %39 to i32
%41 = icmp ne i32 %40, 10
br i1 %41, label %42, label %48
42: ; preds = %38
%43 = load i8, i8* %3
%44 = sext i8 %43 to i32
%45 = load i8, i8* @EOF
%46 = sext i8 %45 to i32
%47 = icmp ne i32 %44, %46
br label %48
48: ; preds = %42, %38
%49 = phi i1 [ false, %38 ], [ %47, %42 ]
br i1 %49, label %50, label %51
50: ; preds = %48
br label %38
51: ; preds = %48
store i32 0, i32* %4
br label %21
52: ; preds = %24
%53 = load i32, i32* %4
%54 = add nsw i32 %53, 1
store i32 %54, i32* %4
%55 = call signext i8 (...) @getchar()
store i8 %55, i8* %3
%56 = load i8, i8* %3
%57 = sext i8 %56 to i32
%58 = icmp eq i32 %57, 10
br i1 %58, label %59, label %60
59: ; preds = %52
br label %87
60: ; preds = %52
%61 = load i32, i32* %4
%62 = icmp eq i32 %61, 5
br i1 %62, label %63, label %82
63: ; preds = %60
%64 = load i32, i32* @stderr
%65 = load i32, i32* %6
%66 = add nsw i32 %65, 1
%67 = call i32 (i32, i8*, i32, ...) @fprintf(i32 %64, i8* getelementptr inbounds ([106 x i8], [106 x i8]* @.str.3, i64 0, i64 0), i32 5, i32 5, i32 %66)
br label %68
68: ; preds = %80, %63
%69 = call signext i8 (...) @getchar()
store i8 %69, i8* %3
%70 = sext i8 %69 to i32
%71 = icmp ne i32 %70, 10
br i1 %71, label %72, label %78
72: ; preds = %68
%73 = load i8, i8* %3
%74 = sext i8 %73 to i32
%75 = load i8, i8* @EOF
%76 = sext i8 %75 to i32
%77 = icmp ne i32 %74, %76
br label %78
78: ; preds = %72, %68
%79 = phi i1 [ false, %68 ], [ %77, %72 ]
br i1 %79, label %80, label %81
80: ; preds = %78
br label %68
81: ; preds = %78
store i32 0, i32* %4
br label %21
82: ; preds = %60
%83 = load i8, i8* %3
%84 = load i32, i32* @stdin
%85 = call i32 @ungetc(i8 signext %83, i32 %84)
br label %86
86: ; preds = %82
br label %21
87: ; preds = %59, %21
br label %88
88: ; preds = %87
%89 = load i32, i32* %6
%90 = add nsw i32 %89, 1
store i32 %90, i32* %6
br label %14
91: ; preds = %14
store i32 0, i32* %7
br label %92
92: ; preds = %113, %91
%93 = load i32, i32* %7
%94 = icmp slt i32 %93, 5
br i1 %94, label %95, label %116
95: ; preds = %92
store i32 0, i32* %8
br label %96
96: ; preds = %108, %95
%97 = load i32, i32* %8
%98 = icmp slt i32 %97, 5
br i1 %98, label %99, label %111
99: ; preds = %96
%100 = load i32, i32* %7
%101 = sext i32 %100 to i64
%102 = getelementptr inbounds [5 x [5 x i32]], [5 x [5 x i32]]* %2, i64 0, i64 %101
%103 = load i32, i32* %8
%104 = sext i32 %103 to i64
%105 = getelementptr inbounds [5 x i32], [5 x i32]* %102, i64 0, i64 %104
%106 = load i32, i32* %105
%107 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.4, i64 0, i64 0), i32 %106)
br label %108
108: ; preds = %99
%109 = load i32, i32* %8
%110 = add nsw i32 %109, 1
store i32 %110, i32* %8
br label %96
111: ; preds = %96
%112 = call i32 @putchar(i8 signext 10)
br label %113
113: ; preds = %111
%114 = load i32, i32* %7
%115 = add nsw i32 %114, 1
store i32 %115, i32* %7
br label %92
116: ; preds = %92
%117 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([13 x i8], [13 x i8]* @.str.5, i64 0, i64 0))
store i32 0, i32* %9
br label %118
118: ; preds = %141, %116
%119 = load i32, i32* %9
%120 = icmp slt i32 %119, 5
br i1 %120, label %121, label %144
121: ; preds = %118
store i32 0, i32* %5
store i32 0, i32* %10
br label %122
122: ; preds = %135, %121
%123 = load i32, i32* %10
%124 = icmp slt i32 %123, 5
br i1 %124, label %125, label %138
125: ; preds = %122
%126 = load i32, i32* %9
%127 = sext i32 %126 to i64
%128 = getelementptr inbounds [5 x [5 x i32]], [5 x [5 x i32]]* %2, i64 0, i64 %127
%129 = load i32, i32* %10
%130 = sext i32 %129 to i64
%131 = getelementptr inbounds [5 x i32], [5 x i32]* %128, i64 0, i64 %130
%132 = load i32, i32* %131
%133 = load i32, i32* %5
%134 = add nsw i32 %133, %132
store i32 %134, i32* %5
br label %135
135: ; preds = %125
%136 = load i32, i32* %10
%137 = add nsw i32 %136, 1
store i32 %137, i32* %10
br label %122
138: ; preds = %122
%139 = load i32, i32* %5
%140 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.4, i64 0, i64 0), i32 %139)
br label %141
141: ; preds = %138
%142 = load i32, i32* %9
%143 = add nsw i32 %142, 1
store i32 %143, i32* %9
br label %118
144: ; preds = %118
%145 = call i32 @putchar(i8 signext 10)
%146 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([15 x i8], [15 x i8]* @.str.6, i64 0, i64 0))
store i32 0, i32* %11
br label %147
147: ; preds = %170, %144
%148 = load i32, i32* %11
%149 = icmp slt i32 %148, 5
br i1 %149, label %150, label %173
150: ; preds = %147
store i32 0, i32* %5
store i32 0, i32* %12
br label %151
151: ; preds = %164, %150
%152 = load i32, i32* %12
%153 = icmp slt i32 %152, 5
br i1 %153, label %154, label %167
154: ; preds = %151
%155 = load i32, i32* %12
%156 = sext i32 %155 to i64
%157 = getelementptr inbounds [5 x [5 x i32]], [5 x [5 x i32]]* %2, i64 0, i64 %156
%158 = load i32, i32* %11
%159 = sext i32 %158 to i64
%160 = getelementptr inbounds [5 x i32], [5 x i32]* %157, i64 0, i64 %159
%161 = load i32, i32* %160
%162 = load i32, i32* %5
%163 = add nsw i32 %162, %161
store i32 %163, i32* %5
br label %164
164: ; preds = %154
%165 = load i32, i32* %12
%166 = add nsw i32 %165, 1
store i32 %166, i32* %12
br label %151
167: ; preds = %151
%168 = load i32, i32* %5
%169 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.4, i64 0, i64 0), i32 %168)
br label %170
170: ; preds = %167
%171 = load i32, i32* %11
%172 = add nsw i32 %171, 1
store i32 %172, i32* %11
br label %147
173: ; preds = %147
%174 = call i32 @putchar(i8 signext 10)
%175 = call signext i8 (...) @getchar()
%176 = load i32, i32* @EXIT_SUCCESS
ret i32 %176
}

LLVM IR (-O2):
@.str = [22 x i8] c"Please enter row %d: \00"
@.str.1 = [4 x i8] c" %d\00"
@stderr = global i32 0
@.str.2 = [47 x i8] c"Input invalid. Please enter the row %d again.\0A\00"
@EOF = global i8 0
@.str.3 = [106 x i8] c"More than %d numbers in a row. Please make sure your row has only %d numbers and enter the row %d again.\0A\00"
@stdin = global i32 0
@.str.4 = [4 x i8] c"%d \00"
@.str.5 = [13 x i8] c"Row totals: \00"
@.str.6 = [15 x i8] c"Column total: \00"
@EXIT_SUCCESS = global i32 0
define i32 @main() {
%1 = alloca [5 x [5 x i32]]
%2 = bitcast [5 x [5 x i32]]* %1 to i8*
br label %172
3: ; preds = %192
%4 = icmp eq i64 %174, 5
br i1 %4, label %5, label %172
5: ; preds = %3
%6 = getelementptr inbounds [5 x [5 x i32]], [5 x [5 x i32]]* %1, i64 0, i64 0, i64 0
%7 = load i32, i32* %6
%8 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([4 x i8], [4 x i8]* @.str.4, i64 0, i64 0), i32 %7)
%9 = getelementptr inbounds [5 x [5 x i32]], [5 x [5 x i32]]* %1, i64 0, i64 0, i64 1
%10 = load i32, i32* %9
%11 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([4 x i8], [4 x i8]* @.str.4, i64 0, i64 0), i32 %10)
%12 = getelementptr inbounds [5 x [5 x i32]], [5 x [5 x i32]]* %1, i64 0, i64 0, i64 2
%13 = load i32, i32* %12
%14 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([4 x i8], [4 x i8]* @.str.4, i64 0, i64 0), i32 %13)
%15 = getelementptr inbounds [5 x [5 x i32]], [5 x [5 x i32]]* %1, i64 0, i64 0, i64 3
%16 = load i32, i32* %15
%17 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([4 x i8], [4 x i8]* @.str.4, i64 0, i64 0), i32 %16)
%18 = getelementptr inbounds [5 x [5 x i32]], [5 x [5 x i32]]* %1, i64 0, i64 0, i64 4
%19 = load i32, i32* %18
%20 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([4 x i8], [4 x i8]* @.str.4, i64 0, i64 0), i32 %19)
%21 = call i32 @putchar(i8 signext 10)
%22 = getelementptr inbounds [5 x [5 x i32]], [5 x [5 x i32]]* %1, i64 0, i64 1, i64 0
%23 = load i32, i32* %22
%24 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([4 x i8], [4 x i8]* @.str.4, i64 0, i64 0), i32 %23)
%25 = getelementptr inbounds [5 x [5 x i32]], [5 x [5 x i32]]* %1, i64 0, i64 1, i64 1
%26 = load i32, i32* %25
%27 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([4 x i8], [4 x i8]* @.str.4, i64 0, i64 0), i32 %26)
%28 = getelementptr inbounds [5 x [5 x i32]], [5 x [5 x i32]]* %1, i64 0, i64 1, i64 2
%29 = load i32, i32* %28
%30 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([4 x i8], [4 x i8]* @.str.4, i64 0, i64 0), i32 %29)
%31 = getelementptr inbounds [5 x [5 x i32]], [5 x [5 x i32]]* %1, i64 0, i64 1, i64 3
%32 = load i32, i32* %31
%33 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([4 x i8], [4 x i8]* @.str.4, i64 0, i64 0), i32 %32)
%34 = getelementptr inbounds [5 x [5 x i32]], [5 x [5 x i32]]* %1, i64 0, i64 1, i64 4
%35 = load i32, i32* %34
%36 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([4 x i8], [4 x i8]* @.str.4, i64 0, i64 0), i32 %35)
%37 = call i32 @putchar(i8 signext 10)
%38 = getelementptr inbounds [5 x [5 x i32]], [5 x [5 x i32]]* %1, i64 0, i64 2, i64 0
%39 = load i32, i32* %38
%40 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([4 x i8], [4 x i8]* @.str.4, i64 0, i64 0), i32 %39)
%41 = getelementptr inbounds [5 x [5 x i32]], [5 x [5 x i32]]* %1, i64 0, i64 2, i64 1
%42 = load i32, i32* %41
%43 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([4 x i8], [4 x i8]* @.str.4, i64 0, i64 0), i32 %42)
%44 = getelementptr inbounds [5 x [5 x i32]], [5 x [5 x i32]]* %1, i64 0, i64 2, i64 2
%45 = load i32, i32* %44
%46 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([4 x i8], [4 x i8]* @.str.4, i64 0, i64 0), i32 %45)
%47 = getelementptr inbounds [5 x [5 x i32]], [5 x [5 x i32]]* %1, i64 0, i64 2, i64 3
%48 = load i32, i32* %47
%49 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([4 x i8], [4 x i8]* @.str.4, i64 0, i64 0), i32 %48)
%50 = getelementptr inbounds [5 x [5 x i32]], [5 x [5 x i32]]* %1, i64 0, i64 2, i64 4
%51 = load i32, i32* %50
%52 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([4 x i8], [4 x i8]* @.str.4, i64 0, i64 0), i32 %51)
%53 = call i32 @putchar(i8 signext 10)
%54 = getelementptr inbounds [5 x [5 x i32]], [5 x [5 x i32]]* %1, i64 0, i64 3, i64 0
%55 = load i32, i32* %54
%56 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([4 x i8], [4 x i8]* @.str.4, i64 0, i64 0), i32 %55)
%57 = getelementptr inbounds [5 x [5 x i32]], [5 x [5 x i32]]* %1, i64 0, i64 3, i64 1
%58 = load i32, i32* %57
%59 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([4 x i8], [4 x i8]* @.str.4, i64 0, i64 0), i32 %58)
%60 = getelementptr inbounds [5 x [5 x i32]], [5 x [5 x i32]]* %1, i64 0, i64 3, i64 2
%61 = load i32, i32* %60
%62 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([4 x i8], [4 x i8]* @.str.4, i64 0, i64 0), i32 %61)
%63 = getelementptr inbounds [5 x [5 x i32]], [5 x [5 x i32]]* %1, i64 0, i64 3, i64 3
%64 = load i32, i32* %63
%65 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([4 x i8], [4 x i8]* @.str.4, i64 0, i64 0), i32 %64)
%66 = getelementptr inbounds [5 x [5 x i32]], [5 x [5 x i32]]* %1, i64 0, i64 3, i64 4
%67 = load i32, i32* %66
%68 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([4 x i8], [4 x i8]* @.str.4, i64 0, i64 0), i32 %67)
%69 = call i32 @putchar(i8 signext 10)
%70 = getelementptr inbounds [5 x [5 x i32]], [5 x [5 x i32]]* %1, i64 0, i64 4, i64 0
%71 = load i32, i32* %70
%72 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([4 x i8], [4 x i8]* @.str.4, i64 0, i64 0), i32 %71)
%73 = getelementptr inbounds [5 x [5 x i32]], [5 x [5 x i32]]* %1, i64 0, i64 4, i64 1
%74 = load i32, i32* %73
%75 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([4 x i8], [4 x i8]* @.str.4, i64 0, i64 0), i32 %74)
%76 = getelementptr inbounds [5 x [5 x i32]], [5 x [5 x i32]]* %1, i64 0, i64 4, i64 2
%77 = load i32, i32* %76
%78 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([4 x i8], [4 x i8]* @.str.4, i64 0, i64 0), i32 %77)
%79 = getelementptr inbounds [5 x [5 x i32]], [5 x [5 x i32]]* %1, i64 0, i64 4, i64 3
%80 = load i32, i32* %79
%81 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([4 x i8], [4 x i8]* @.str.4, i64 0, i64 0), i32 %80)
%82 = getelementptr inbounds [5 x [5 x i32]], [5 x [5 x i32]]* %1, i64 0, i64 4, i64 4
%83 = load i32, i32* %82
%84 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([4 x i8], [4 x i8]* @.str.4, i64 0, i64 0), i32 %83)
%85 = call i32 @putchar(i8 signext 10)
%86 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([13 x i8], [13 x i8]* @.str.5, i64 0, i64 0))
%87 = load i32, i32* %6
%88 = bitcast i32* %9 to <4 x i32>*
%89 = load <4 x i32>, <4 x i32>* %88
%90 = call i32 @llvm.vector.reduce.add.v4i32(<4 x i32> %89)
%91 = add nsw i32 %90, %87
%92 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([4 x i8], [4 x i8]* @.str.4, i64 0, i64 0), i32 %91)
%93 = load i32, i32* %22
%94 = bitcast i32* %25 to <4 x i32>*
%95 = load <4 x i32>, <4 x i32>* %94
%96 = call i32 @llvm.vector.reduce.add.v4i32(<4 x i32> %95)
%97 = add nsw i32 %96, %93
%98 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([4 x i8], [4 x i8]* @.str.4, i64 0, i64 0), i32 %97)
%99 = load i32, i32* %38
%100 = bitcast i32* %41 to <4 x i32>*
%101 = load <4 x i32>, <4 x i32>* %100
%102 = call i32 @llvm.vector.reduce.add.v4i32(<4 x i32> %101)
%103 = add nsw i32 %102, %99
%104 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([4 x i8], [4 x i8]* @.str.4, i64 0, i64 0), i32 %103)
%105 = load i32, i32* %54
%106 = bitcast i32* %57 to <4 x i32>*
%107 = load <4 x i32>, <4 x i32>* %106
%108 = call i32 @llvm.vector.reduce.add.v4i32(<4 x i32> %107)
%109 = add nsw i32 %108, %105
%110 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([4 x i8], [4 x i8]* @.str.4, i64 0, i64 0), i32 %109)
%111 = load i32, i32* %70
%112 = bitcast i32* %73 to <4 x i32>*
%113 = load <4 x i32>, <4 x i32>* %112
%114 = call i32 @llvm.vector.reduce.add.v4i32(<4 x i32> %113)
%115 = add nsw i32 %114, %111
%116 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([4 x i8], [4 x i8]* @.str.4, i64 0, i64 0), i32 %115)
%117 = call i32 @putchar(i8 signext 10)
%118 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([15 x i8], [15 x i8]* @.str.6, i64 0, i64 0))
%119 = load i32, i32* %6
%120 = load i32, i32* %22
%121 = add nsw i32 %120, %119
%122 = load i32, i32* %38
%123 = add nsw i32 %122, %121
%124 = load i32, i32* %54
%125 = add nsw i32 %124, %123
%126 = load i32, i32* %70
%127 = add nsw i32 %126, %125
%128 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([4 x i8], [4 x i8]* @.str.4, i64 0, i64 0), i32 %127)
%129 = load i32, i32* %9
%130 = load i32, i32* %25
%131 = add nsw i32 %130, %129
%132 = load i32, i32* %41
%133 = add nsw i32 %132, %131
%134 = load i32, i32* %57
%135 = add nsw i32 %134, %133
%136 = load i32, i32* %73
%137 = add nsw i32 %136, %135
%138 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([4 x i8], [4 x i8]* @.str.4, i64 0, i64 0), i32 %137)
%139 = load i32, i32* %12
%140 = load i32, i32* %28
%141 = add nsw i32 %140, %139
%142 = load i32, i32* %44
%143 = add nsw i32 %142, %141
%144 = load i32, i32* %60
%145 = add nsw i32 %144, %143
%146 = load i32, i32* %76
%147 = add nsw i32 %146, %145
%148 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([4 x i8], [4 x i8]* @.str.4, i64 0, i64 0), i32 %147)
%149 = load i32, i32* %15
%150 = load i32, i32* %31
%151 = add nsw i32 %150, %149
%152 = load i32, i32* %47
%153 = add nsw i32 %152, %151
%154 = load i32, i32* %63
%155 = add nsw i32 %154, %153
%156 = load i32, i32* %79
%157 = add nsw i32 %156, %155
%158 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([4 x i8], [4 x i8]* @.str.4, i64 0, i64 0), i32 %157)
%159 = load i32, i32* %18
%160 = load i32, i32* %34
%161 = add nsw i32 %160, %159
%162 = load i32, i32* %50
%163 = add nsw i32 %162, %161
%164 = load i32, i32* %66
%165 = add nsw i32 %164, %163
%166 = load i32, i32* %82
%167 = add nsw i32 %166, %165
%168 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([4 x i8], [4 x i8]* @.str.4, i64 0, i64 0), i32 %167)
%169 = call i32 @putchar(i8 signext 10)
%170 = call signext i8 (...) @getchar()
%171 = load i32, i32* @EXIT_SUCCESS
ret i32 %171
172: ; preds = %0, %3
%173 = phi i64 [ 0, %0 ], [ %174, %3 ]
%174 = add nuw nsw i64 %173, 1
%175 = trunc i64 %174 to i32
%176 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([22 x i8], [22 x i8]* @.str, i64 0, i64 0), i32 %175)
br label %177
177: ; preds = %210, %172
%178 = phi i32 [ 0, %172 ], [ %211, %210 ]
%179 = sext i32 %178 to i64
%180 = getelementptr inbounds [5 x [5 x i32]], [5 x [5 x i32]]* %1, i64 0, i64 %173, i64 %179
%181 = call i32 @scanf(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.1, i64 0, i64 0), i32* %180)
%182 = icmp eq i32 %181, 1
br i1 %182, label %192, label %183
183: ; preds = %177
%184 = load i32, i32* @stderr
%185 = call i32 (i32, i8*, i32, ...) @fprintf(i32 %184, i8* getelementptr inbounds ([47 x i8], [47 x i8]* @.str.2, i64 0, i64 0), i32 %175)
br label %186
186: ; preds = %186, %183
%187 = call signext i8 (...) @getchar()
%188 = icmp ne i8 %187, 10
%189 = load i8, i8* @EOF
%190 = icmp ne i8 %187, %189
%191 = select i1 %188, i1 %190, i1 false
br i1 %191, label %186, label %210
192: ; preds = %177
%193 = add nsw i32 %178, 1
%194 = call signext i8 (...) @getchar()
%195 = icmp eq i8 %194, 10
br i1 %195, label %3, label %196
196: ; preds = %192
%197 = icmp eq i32 %193, 5
br i1 %197, label %198, label %207
198: ; preds = %196
%199 = load i32, i32* @stderr
%200 = call i32 (i32, i8*, i32, ...) @fprintf(i32 %199, i8* getelementptr inbounds ([106 x i8], [106 x i8]* @.str.3, i64 0, i64 0), i32 5, i32 5, i32 %175)
br label %201
201: ; preds = %201, %198
%202 = call signext i8 (...) @getchar()
%203 = icmp ne i8 %202, 10
%204 = load i8, i8* @EOF
%205 = icmp ne i8 %202, %204
%206 = select i1 %203, i1 %205, i1 false
br i1 %206, label %201, label %210
207: ; preds = %196
%208 = load i32, i32* @stdin
%209 = call i32 @ungetc(i8 signext %194, i32 %208)
br label %210
210: ; preds = %186, %201, %207
%211 = phi i32 [ %193, %207 ], [ 0, %201 ], [ 0, %186 ]
br label %177
}