#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*/ fprintf(int /*<<< orphan*/, char *);
int /*<<< orphan*/ printf(char *, ...);
int /*<<< orphan*/ scanf(char *, int *);
int /*<<< orphan*/ stderr;
int main() {
  int i, j, rows, columns, matrix[25][25], scaler;
  printf("Matrix - Scaler Multiplication \n");
  printf("Maximum Permissible Rows/Columns = 24 \n");
  printf("\n");
  printf("Rows = ");
  scanf("%d", &rows);
  printf("Columns = ");
  scanf("%d", &columns);
  if ((rows > 24) || (columns > 24)) {
    fprintf(stderr, "Rows/Columns > 24 \nAborting! \n");
    return -1;
  }
  printf("\n");
  printf("Input the Matrix: \n");
  for (i = 0; i < rows; i++) {
    for (j = 0; j < columns; j++) {
      scanf("%d", &matrix[i][j]);
    }
  }
  printf("\n\nMatrix: \n");
  for (i = 0; i < rows; i++) {
    for (j = 0; j < columns; j++) {
      printf("%d	", matrix[i][j]);
    }
    printf("\n");
  }
  printf("\n");
  printf("Scaler λ = ");
  scanf("%d", &scaler);
  printf("\nScaler Multiplication: \n");
  for (i = 0; i < rows; i++) {
    for (j = 0; j < columns; j++) {
      matrix[i][j] *= scaler;
      printf("%d	", matrix[i][j]);
    }
    printf("\n");
  }
  printf("\n");
  return 0;
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x9f0,%rsp
movl   $0x0,-0x4(%rbp)
lea    0xeb7(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0xeca(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0xf17(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0xed6(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0xed0(%rip),%rdi
lea    -0x10(%rbp),%rsi
call   1050 <scanf@plt>
lea    0xec3(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0xeb2(%rip),%rdi
lea    -0x14(%rbp),%rsi
call   1050 <scanf@plt>
cmpl   $0x18,-0x10(%rbp)
jg     11bc <main+0x8c>
cmpl   $0x18,-0x14(%rbp)
jle    11dd <main+0xad>
mov    0x2e1d(%rip),%rax
mov    (%rax),%edi
lea    0xe93(%rip),%rsi
call   1040 <fprintf@plt>
movl   $0xffffffff,-0x4(%rbp)
jmp    13da <main+0x2aa>
lea    0xe98(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0xe8c(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
movl   $0x0,-0x8(%rbp)
mov    -0x8(%rbp),%eax
cmp    -0x10(%rbp),%eax
jge    1269 <main+0x139>
movl   $0x0,-0xc(%rbp)
mov    -0xc(%rbp),%eax
cmp    -0x14(%rbp),%eax
jge    1256 <main+0x126>
movslq -0x8(%rbp),%rax
lea    -0x9e0(%rbp),%rsi
imul   $0x64,%rax,%rax
add    %rax,%rsi
movslq -0xc(%rbp),%rax
shl    $0x2,%rax
add    %rax,%rsi
lea    0xe0e(%rip),%rdi
call   1050 <scanf@plt>
mov    -0xc(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0xc(%rbp)
jmp    1213 <main+0xe3>
jmp    125b <main+0x12b>
mov    -0x8(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x8(%rbp)
jmp    1200 <main+0xd0>
lea    0xe22(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
movl   $0x0,-0x8(%rbp)
mov    -0x8(%rbp),%eax
cmp    -0x10(%rbp),%eax
jge    12ee <main+0x1be>
movl   $0x0,-0xc(%rbp)
mov    -0xc(%rbp),%eax
cmp    -0x14(%rbp),%eax
jge    12d2 <main+0x1a2>
movslq -0x8(%rbp),%rcx
lea    -0x9e0(%rbp),%rax
imul   $0x64,%rcx,%rcx
add    %rcx,%rax
movslq -0xc(%rbp),%rcx
mov    (%rax,%rcx,4),%esi
lea    0xde1(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
mov    -0xc(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0xc(%rbp)
jmp    1291 <main+0x161>
lea    0xda3(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
mov    -0x8(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x8(%rbp)
jmp    127e <main+0x14e>
lea    0xd87(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0xd9f(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0xd40(%rip),%rdi
lea    -0x9e4(%rbp),%rsi
call   1050 <scanf@plt>
lea    0xd8b(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
movl   $0x0,-0x8(%rbp)
mov    -0x8(%rbp),%eax
cmp    -0x10(%rbp),%eax
jge    13c5 <main+0x295>
movl   $0x0,-0xc(%rbp)
mov    -0xc(%rbp),%eax
cmp    -0x14(%rbp),%eax
jge    13a9 <main+0x279>
mov    -0x9e4(%rbp),%edx
movslq -0x8(%rbp),%rcx
lea    -0x9e0(%rbp),%rax
imul   $0x64,%rcx,%rcx
add    %rcx,%rax
movslq -0xc(%rbp),%rcx
imul   (%rax,%rcx,4),%edx
mov    %edx,(%rax,%rcx,4)
movslq -0x8(%rbp),%rcx
lea    -0x9e0(%rbp),%rax
imul   $0x64,%rcx,%rcx
add    %rcx,%rax
movslq -0xc(%rbp),%rcx
mov    (%rax,%rcx,4),%esi
lea    0xd0a(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
mov    -0xc(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0xc(%rbp)
jmp    1345 <main+0x215>
lea    0xccc(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
mov    -0x8(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x8(%rbp)
jmp    1332 <main+0x202>
lea    0xcb0(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
movl   $0x0,-0x4(%rbp)
mov    -0x4(%rbp),%eax
add    $0x9f0,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %rbp
push   %r15
push   %r14
push   %r12
push   %rbx
sub    $0x9e0,%rsp
lea    0xee0(%rip),%rdi
call   1040 <puts@plt>
lea    0xef4(%rip),%rdi
call   1040 <puts@plt>
mov    $0xa,%edi
call   1030 <putchar@plt>
lea    0xe78(%rip),%rdi
xor    %eax,%eax
call   1050 <printf@plt>
lea    0xe72(%rip),%rbx
lea    0x8(%rsp),%rsi
mov    %rbx,%rdi
call   1070 <scanf@plt>
lea    0xe61(%rip),%rdi
xor    %eax,%eax
call   1050 <printf@plt>
lea    0x4(%rsp),%rsi
mov    %rbx,%rdi
call   1070 <scanf@plt>
cmpl   $0x18,0x8(%rsp)
jg     1243 <main+0xf3>
cmpl   $0x19,0x4(%rsp)
jge    1243 <main+0xf3>
mov    $0xa,%edi
call   1030 <putchar@plt>
lea    0xeb0(%rip),%rdi
call   1040 <puts@plt>
mov    0x8(%rsp),%ecx
test   %ecx,%ecx
jle    1263 <main+0x113>
lea    0x10(%rsp),%r14
mov    0x4(%rsp),%eax
xor    %r15d,%r15d
lea    0xe0b(%rip),%r12
jmp    1210 <main+0xc0>
nop
add    $0x1,%r15
movslq %ecx,%rdx
add    $0x64,%r14
cmp    %rdx,%r15
jge    1263 <main+0x113>
test   %eax,%eax
jle    1200 <main+0xb0>
mov    %r14,%rbp
xor    %ebx,%ebx
nopl   0x0(%rax)
mov    %r12,%rdi
mov    %rbp,%rsi
call   1070 <scanf@plt>
add    $0x1,%rbx
movslq 0x4(%rsp),%rax
add    $0x4,%rbp
cmp    %rax,%rbx
jl     1220 <main+0xd0>
mov    0x8(%rsp),%ecx
jmp    1200 <main+0xb0>
mov    0x2d96(%rip),%rax
mov    (%rax),%edi
lea    0xdc3(%rip),%rsi
call   1060 <fprintf@plt>
mov    $0xffffffff,%r14d
jmp    1391 <main+0x241>
lea    0xe36(%rip),%rdi
call   1040 <puts@plt>
cmpl   $0x0,0x8(%rsp)
jle    12de <main+0x18e>
lea    0x10(%rsp),%rbp
lea    0xdb3(%rip),%r15
xor    %r14d,%r14d
jmp    12ac <main+0x15c>
nopw   0x0(%rax,%rax,1)
mov    $0xa,%edi
call   1030 <putchar@plt>
add    $0x1,%r14
movslq 0x8(%rsp),%rax
add    $0x64,%rbp
cmp    %rax,%r14
jge    12de <main+0x18e>
cmpl   $0x0,0x4(%rsp)
jle    1290 <main+0x140>
xor    %ebx,%ebx
cs nopw 0x0(%rax,%rax,1)
nop
mov    0x0(%rbp,%rbx,4),%esi
mov    %r15,%rdi
xor    %eax,%eax
call   1050 <printf@plt>
add    $0x1,%rbx
movslq 0x4(%rsp),%rax
cmp    %rax,%rbx
jl     12c0 <main+0x170>
jmp    1290 <main+0x140>
mov    $0xa,%edi
call   1030 <putchar@plt>
lea    0xd4a(%rip),%rdi
xor    %r14d,%r14d
xor    %eax,%eax
call   1050 <printf@plt>
lea    0xd08(%rip),%rdi
lea    0xc(%rsp),%rsi
call   1070 <scanf@plt>
lea    0xd9a(%rip),%rdi
call   1040 <puts@plt>
cmpl   $0x0,0x8(%rsp)
jle    1387 <main+0x237>
lea    0x10(%rsp),%rbp
lea    0xd0c(%rip),%r12
xor    %r15d,%r15d
jmp    134c <main+0x1fc>
xchg   %ax,%ax
mov    $0xa,%edi
call   1030 <putchar@plt>
add    $0x1,%r15
movslq 0x8(%rsp),%rax
add    $0x64,%rbp
cmp    %rax,%r15
jge    1387 <main+0x237>
cmpl   $0x0,0x4(%rsp)
jle    1330 <main+0x1e0>
xor    %ebx,%ebx
cs nopw 0x0(%rax,%rax,1)
nop
mov    0x0(%rbp,%rbx,4),%esi
imul   0xc(%rsp),%esi
mov    %esi,0x0(%rbp,%rbx,4)
mov    %r12,%rdi
xor    %eax,%eax
call   1050 <printf@plt>
add    $0x1,%rbx
movslq 0x4(%rsp),%rax
cmp    %rax,%rbx
jl     1360 <main+0x210>
jmp    1330 <main+0x1e0>
mov    $0xa,%edi
call   1030 <putchar@plt>
mov    %r14d,%eax
add    $0x9e0,%rsp
pop    %rbx
pop    %r12
pop    %r14
pop    %r15
pop    %rbp
ret

LLVM IR (-O0):
@.str = [33 x i8] c"Matrix - Scaler Multiplication \0A\00"
@.str.1 = [40 x i8] c"Maximum Permissible Rows/Columns = 24 \0A\00"
@.str.2 = [2 x i8] c"\0A\00"
@.str.3 = [8 x i8] c"Rows = \00"
@.str.4 = [3 x i8] c"%d\00"
@.str.5 = [11 x i8] c"Columns = \00"
@stderr = global i32 0
@.str.6 = [31 x i8] c"Rows/Columns > 24 \0AAborting! \0A\00"
@.str.7 = [20 x i8] c"Input the Matrix: \0A\00"
@.str.8 = [12 x i8] c"\0A\0AMatrix: \0A\00"
@.str.9 = [4 x i8] c"%d\09\00"
@.str.10 = [13 x i8] c"Scaler \CE\BB = \00"
@.str.11 = [26 x i8] c"\0AScaler Multiplication: \0A\00"
define i32 @main() {
%1 = alloca i32
%2 = alloca i32
%3 = alloca i32
%4 = alloca i32
%5 = alloca i32
%6 = alloca [25 x [25 x i32]]
%7 = alloca i32
store i32 0, i32* %1
%8 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([33 x i8], [33 x i8]* @.str, i64 0, i64 0))
%9 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([40 x i8], [40 x i8]* @.str.1, i64 0, i64 0))
%10 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.2, i64 0, i64 0))
%11 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str.3, i64 0, i64 0))
%12 = call i32 @scanf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.4, i64 0, i64 0), i32* %4)
%13 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([11 x i8], [11 x i8]* @.str.5, i64 0, i64 0))
%14 = call i32 @scanf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.4, i64 0, i64 0), i32* %5)
%15 = load i32, i32* %4
%16 = icmp sgt i32 %15, 24
br i1 %16, label %20, label %17
17: ; preds = %0
%18 = load i32, i32* %5
%19 = icmp sgt i32 %18, 24
br i1 %19, label %20, label %23
20: ; preds = %17, %0
%21 = load i32, i32* @stderr
%22 = call i32 @fprintf(i32 %21, i8* getelementptr inbounds ([31 x i8], [31 x i8]* @.str.6, i64 0, i64 0))
store i32 -1, i32* %1
br label %120
23: ; preds = %17
%24 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.2, i64 0, i64 0))
%25 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([20 x i8], [20 x i8]* @.str.7, i64 0, i64 0))
store i32 0, i32* %2
br label %26
26: ; preds = %47, %23
%27 = load i32, i32* %2
%28 = load i32, i32* %4
%29 = icmp slt i32 %27, %28
br i1 %29, label %30, label %50
30: ; preds = %26
store i32 0, i32* %3
br label %31
31: ; preds = %43, %30
%32 = load i32, i32* %3
%33 = load i32, i32* %5
%34 = icmp slt i32 %32, %33
br i1 %34, label %35, label %46
35: ; preds = %31
%36 = load i32, i32* %2
%37 = sext i32 %36 to i64
%38 = getelementptr inbounds [25 x [25 x i32]], [25 x [25 x i32]]* %6, i64 0, i64 %37
%39 = load i32, i32* %3
%40 = sext i32 %39 to i64
%41 = getelementptr inbounds [25 x i32], [25 x i32]* %38, i64 0, i64 %40
%42 = call i32 @scanf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.4, i64 0, i64 0), i32* %41)
br label %43
43: ; preds = %35
%44 = load i32, i32* %3
%45 = add nsw i32 %44, 1
store i32 %45, i32* %3
br label %31
46: ; preds = %31
br label %47
47: ; preds = %46
%48 = load i32, i32* %2
%49 = add nsw i32 %48, 1
store i32 %49, i32* %2
br label %26
50: ; preds = %26
%51 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([12 x i8], [12 x i8]* @.str.8, i64 0, i64 0))
store i32 0, i32* %2
br label %52
52: ; preds = %75, %50
%53 = load i32, i32* %2
%54 = load i32, i32* %4
%55 = icmp slt i32 %53, %54
br i1 %55, label %56, label %78
56: ; preds = %52
store i32 0, i32* %3
br label %57
57: ; preds = %70, %56
%58 = load i32, i32* %3
%59 = load i32, i32* %5
%60 = icmp slt i32 %58, %59
br i1 %60, label %61, label %73
61: ; preds = %57
%62 = load i32, i32* %2
%63 = sext i32 %62 to i64
%64 = getelementptr inbounds [25 x [25 x i32]], [25 x [25 x i32]]* %6, i64 0, i64 %63
%65 = load i32, i32* %3
%66 = sext i32 %65 to i64
%67 = getelementptr inbounds [25 x i32], [25 x i32]* %64, i64 0, i64 %66
%68 = load i32, i32* %67
%69 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.9, i64 0, i64 0), i32 %68)
br label %70
70: ; preds = %61
%71 = load i32, i32* %3
%72 = add nsw i32 %71, 1
store i32 %72, i32* %3
br label %57
73: ; preds = %57
%74 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.2, i64 0, i64 0))
br label %75
75: ; preds = %73
%76 = load i32, i32* %2
%77 = add nsw i32 %76, 1
store i32 %77, i32* %2
br label %52
78: ; preds = %52
%79 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.2, i64 0, i64 0))
%80 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([13 x i8], [13 x i8]* @.str.10, i64 0, i64 0))
%81 = call i32 @scanf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.4, i64 0, i64 0), i32* %7)
%82 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([26 x i8], [26 x i8]* @.str.11, i64 0, i64 0))
store i32 0, i32* %2
br label %83
83: ; preds = %115, %78
%84 = load i32, i32* %2
%85 = load i32, i32* %4
%86 = icmp slt i32 %84, %85
br i1 %86, label %87, label %118
87: ; preds = %83
store i32 0, i32* %3
br label %88
88: ; preds = %110, %87
%89 = load i32, i32* %3
%90 = load i32, i32* %5
%91 = icmp slt i32 %89, %90
br i1 %91, label %92, label %113
92: ; preds = %88
%93 = load i32, i32* %7
%94 = load i32, i32* %2
%95 = sext i32 %94 to i64
%96 = getelementptr inbounds [25 x [25 x i32]], [25 x [25 x i32]]* %6, i64 0, i64 %95
%97 = load i32, i32* %3
%98 = sext i32 %97 to i64
%99 = getelementptr inbounds [25 x i32], [25 x i32]* %96, i64 0, i64 %98
%100 = load i32, i32* %99
%101 = mul nsw i32 %100, %93
store i32 %101, i32* %99
%102 = load i32, i32* %2
%103 = sext i32 %102 to i64
%104 = getelementptr inbounds [25 x [25 x i32]], [25 x [25 x i32]]* %6, i64 0, i64 %103
%105 = load i32, i32* %3
%106 = sext i32 %105 to i64
%107 = getelementptr inbounds [25 x i32], [25 x i32]* %104, i64 0, i64 %106
%108 = load i32, i32* %107
%109 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.9, i64 0, i64 0), i32 %108)
br label %110
110: ; preds = %92
%111 = load i32, i32* %3
%112 = add nsw i32 %111, 1
store i32 %112, i32* %3
br label %88
113: ; preds = %88
%114 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.2, i64 0, i64 0))
br label %115
115: ; preds = %113
%116 = load i32, i32* %2
%117 = add nsw i32 %116, 1
store i32 %117, i32* %2
br label %83
118: ; preds = %83
%119 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.2, i64 0, i64 0))
store i32 0, i32* %1
br label %120
120: ; preds = %118, %20
%121 = load i32, i32* %1
ret i32 %121
}

LLVM IR (-O2):
@.str.3 = [8 x i8] c"Rows = \00"
@.str.4 = [3 x i8] c"%d\00"
@.str.5 = [11 x i8] c"Columns = \00"
@stderr = global i32 0
@.str.6 = [31 x i8] c"Rows/Columns > 24 \0AAborting! \0A\00"
@.str.9 = [4 x i8] c"%d\09\00"
@.str.10 = [13 x i8] c"Scaler \CE\BB = \00"
@str = [32 x i8] c"Matrix - Scaler Multiplication \00"
@str.12 = [39 x i8] c"Maximum Permissible Rows/Columns = 24 \00"
@str.13 = [19 x i8] c"Input the Matrix: \00"
@str.14 = [11 x i8] c"\0A\0AMatrix: \00"
@str.15 = [25 x i8] c"\0AScaler Multiplication: \00"
define i32 @main() {
%1 = alloca i32
%2 = alloca i32
%3 = alloca [25 x [25 x i32]]
%4 = alloca i32
%5 = bitcast i32* %1 to i8*
%6 = bitcast i32* %2 to i8*
%7 = bitcast [25 x [25 x i32]]* %3 to i8*
%8 = bitcast i32* %4 to i8*
%9 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([32 x i8], [32 x i8]* @str, i64 0, i64 0))
%10 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([39 x i8], [39 x i8]* @str.12, i64 0, i64 0))
%11 = tail call i32 @putchar(i32 10)
%12 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([8 x i8], [8 x i8]* @.str.3, i64 0, i64 0))
%13 = call i32 @scanf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.4, i64 0, i64 0), i32* %1)
%14 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([11 x i8], [11 x i8]* @.str.5, i64 0, i64 0))
%15 = call i32 @scanf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.4, i64 0, i64 0), i32* %2)
%16 = load i32, i32* %1
%17 = icmp sgt i32 %16, 24
%18 = load i32, i32* %2
%19 = icmp sgt i32 %18, 24
%20 = select i1 %17, i1 true, i1 %19
br i1 %20, label %21, label %24
21: ; preds = %0
%22 = load i32, i32* @stderr
%23 = call i32 @fprintf(i32 %22, i8* getelementptr inbounds ([31 x i8], [31 x i8]* @.str.6, i64 0, i64 0))
br label %105
24: ; preds = %0
%25 = call i32 @putchar(i32 10)
%26 = call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([19 x i8], [19 x i8]* @str.13, i64 0, i64 0))
%27 = load i32, i32* %1
%28 = icmp sgt i32 %27, 0
br i1 %28, label %29, label %52
29: ; preds = %24
%30 = load i32, i32* %2
br label %31
31: ; preds = %29, %46
%32 = phi i32 [ %27, %29 ], [ %47, %46 ]
%33 = phi i32 [ %30, %29 ], [ %48, %46 ]
%34 = phi i64 [ 0, %29 ], [ %49, %46 ]
%35 = icmp sgt i32 %33, 0
br i1 %35, label %36, label %46
36: ; preds = %31, %36
%37 = phi i64 [ %40, %36 ], [ 0, %31 ]
%38 = getelementptr inbounds [25 x [25 x i32]], [25 x [25 x i32]]* %3, i64 0, i64 %34, i64 %37
%39 = call i32 @scanf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.4, i64 0, i64 0), i32* %38)
%40 = add nuw nsw i64 %37, 1
%41 = load i32, i32* %2
%42 = sext i32 %41 to i64
%43 = icmp slt i64 %40, %42
br i1 %43, label %36, label %44
44: ; preds = %36
%45 = load i32, i32* %1
br label %46
46: ; preds = %44, %31
%47 = phi i32 [ %45, %44 ], [ %32, %31 ]
%48 = phi i32 [ %41, %44 ], [ %33, %31 ]
%49 = add nuw nsw i64 %34, 1
%50 = sext i32 %47 to i64
%51 = icmp slt i64 %49, %50
br i1 %51, label %31, label %52
52: ; preds = %46, %24
%53 = call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([11 x i8], [11 x i8]* @str.14, i64 0, i64 0))
%54 = load i32, i32* %1
%55 = icmp sgt i32 %54, 0
br i1 %55, label %56, label %75
56: ; preds = %52, %69
%57 = phi i64 [ %71, %69 ], [ 0, %52 ]
%58 = load i32, i32* %2
%59 = icmp sgt i32 %58, 0
br i1 %59, label %60, label %69
60: ; preds = %56, %60
%61 = phi i64 [ %65, %60 ], [ 0, %56 ]
%62 = getelementptr inbounds [25 x [25 x i32]], [25 x [25 x i32]]* %3, i64 0, i64 %57, i64 %61
%63 = load i32, i32* %62
%64 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([4 x i8], [4 x i8]* @.str.9, i64 0, i64 0), i32 %63)
%65 = add nuw nsw i64 %61, 1
%66 = load i32, i32* %2
%67 = sext i32 %66 to i64
%68 = icmp slt i64 %65, %67
br i1 %68, label %60, label %69
69: ; preds = %60, %56
%70 = call i32 @putchar(i32 10)
%71 = add nuw nsw i64 %57, 1
%72 = load i32, i32* %1
%73 = sext i32 %72 to i64
%74 = icmp slt i64 %71, %73
br i1 %74, label %56, label %75
75: ; preds = %69, %52
%76 = call i32 @putchar(i32 10)
%77 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([13 x i8], [13 x i8]* @.str.10, i64 0, i64 0))
%78 = call i32 @scanf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.4, i64 0, i64 0), i32* %4)
%79 = call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([25 x i8], [25 x i8]* @str.15, i64 0, i64 0))
%80 = load i32, i32* %1
%81 = icmp sgt i32 %80, 0
br i1 %81, label %82, label %103
82: ; preds = %75, %97
%83 = phi i64 [ %99, %97 ], [ 0, %75 ]
%84 = load i32, i32* %2
%85 = icmp sgt i32 %84, 0
br i1 %85, label %86, label %97
86: ; preds = %82, %86
%87 = phi i64 [ %93, %86 ], [ 0, %82 ]
%88 = load i32, i32* %4
%89 = getelementptr inbounds [25 x [25 x i32]], [25 x [25 x i32]]* %3, i64 0, i64 %83, i64 %87
%90 = load i32, i32* %89
%91 = mul nsw i32 %90, %88
store i32 %91, i32* %89
%92 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([4 x i8], [4 x i8]* @.str.9, i64 0, i64 0), i32 %91)
%93 = add nuw nsw i64 %87, 1
%94 = load i32, i32* %2
%95 = sext i32 %94 to i64
%96 = icmp slt i64 %93, %95
br i1 %96, label %86, label %97
97: ; preds = %86, %82
%98 = call i32 @putchar(i32 10)
%99 = add nuw nsw i64 %83, 1
%100 = load i32, i32* %1
%101 = sext i32 %100 to i64
%102 = icmp slt i64 %99, %101
br i1 %102, label %82, label %103
103: ; preds = %97, %75
%104 = call i32 @putchar(i32 10)
br label %105
105: ; preds = %103, %21
%106 = phi i32 [ -1, %21 ], [ 0, %103 ]
ret i32 %106
}