#define NULL ((void *)0)
typedef unsigned long size_t; // Customize by platform.
typedef long intptr_t;
typedef unsigned long uintptr_t;
typedef long scalar_t__; // Either arithmetic or pointer type.
/* By default, we understand bool (as a convenience). */
typedef int bool;
#define false 0
#define true 1

/* Forward declarations */

/* Type definitions */

/* Variables and functions */
int /*<<< orphan*/ printf(char *, ...);
int /*<<< orphan*/ scanf(char *, int *, ...);
int main(int argc, const char *const argv[]) {
  int row_count, column_count;
  printf("Введите значения N, M: ");
  scanf("%d%d", &row_count, &column_count);
  if (5 < row_count || row_count < 1) {
    printf("Значение N должно быть от 1 до 5 включительно.\n");
    return 1;
  }
  if (5 < column_count || column_count < 1) {
    printf("Значение M должно быть от 1 до 5 включительно.\n");
    return 1;
  }
  int matrix[5][5];
  for (int row = 0; row < row_count; ++row) {
    printf("Введите %d-ую строку матрицы (%d значений): ", row + 1,
           column_count);
    for (int column = 0; column < column_count; ++column) {
      scanf("%d", &matrix[row][column]);
    }
  }
  int result[5];
  int positive_count = 0;
  for (int row = 0; row < row_count; ++row) {
    int row_sum = 0;
    for (int column = 0; column < column_count; ++column) {
      row_sum += matrix[row][column];
    }
    if (row_sum > 0)
      ++positive_count;
    result[row] = row_sum;
  }
  printf("\nСумма строк:\n");
  for (int row = 0; row < row_count; ++row) {
    printf("%d", result[row]);
    if (row != row_count - 1)
      printf(", ");
  }
  printf("\nЧисло строк, с положительной суммой: %d", positive_count);
  return 0;
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0xc0,%rsp
movl   $0x0,-0x4(%rbp)
mov    %edi,-0x8(%rbp)
mov    %rsi,-0x10(%rbp)
lea    0xec0(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0xed9(%rip),%rdi
lea    -0x14(%rbp),%rsi
lea    -0x18(%rbp),%rdx
mov    $0x0,%al
call   1040 <scanf@plt>
mov    $0x5,%eax
cmp    -0x14(%rbp),%eax
jl     1175 <main+0x55>
cmpl   $0x1,-0x14(%rbp)
jge    118f <main+0x6f>
lea    0xeb0(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
movl   $0x1,-0x4(%rbp)
jmp    13c7 <main+0x2a7>
mov    $0x5,%eax
cmp    -0x18(%rbp),%eax
jl     11a7 <main+0x87>
cmpl   $0x1,-0x18(%rbp)
jge    11c1 <main+0xa1>
lea    0xed0(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
movl   $0x1,-0x4(%rbp)
jmp    13c7 <main+0x2a7>
movl   $0x0,-0x84(%rbp)
mov    -0x84(%rbp),%eax
cmp    -0x14(%rbp),%eax
jge    1268 <main+0x148>
mov    -0x84(%rbp),%esi
add    $0x1,%esi
mov    -0x18(%rbp),%edx
lea    0xee3(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
movl   $0x0,-0x88(%rbp)
mov    -0x88(%rbp),%eax
cmp    -0x18(%rbp),%eax
jge    124f <main+0x12f>
movslq -0x84(%rbp),%rax
lea    -0x80(%rbp),%rsi
imul   $0x14,%rax,%rax
add    %rax,%rsi
movslq -0x88(%rbp),%rax
shl    $0x2,%rax
add    %rax,%rsi
lea    0xf47(%rip),%rdi
mov    $0x0,%al
call   1040 <scanf@plt>
mov    -0x88(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x88(%rbp)
jmp    11fe <main+0xde>
jmp    1254 <main+0x134>
mov    -0x84(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x84(%rbp)
jmp    11cb <main+0xab>
movl   $0x0,-0xa4(%rbp)
movl   $0x0,-0xa8(%rbp)
mov    -0xa8(%rbp),%eax
cmp    -0x14(%rbp),%eax
jge    132e <main+0x20e>
movl   $0x0,-0xac(%rbp)
movl   $0x0,-0xb0(%rbp)
mov    -0xb0(%rbp),%eax
cmp    -0x18(%rbp),%eax
jge    12ea <main+0x1ca>
movslq -0xa8(%rbp),%rcx
lea    -0x80(%rbp),%rax
imul   $0x14,%rcx,%rcx
add    %rcx,%rax
movslq -0xb0(%rbp),%rcx
mov    (%rax,%rcx,4),%eax
add    -0xac(%rbp),%eax
mov    %eax,-0xac(%rbp)
mov    -0xb0(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0xb0(%rbp)
jmp    129f <main+0x17f>
cmpl   $0x0,-0xac(%rbp)
jle    1306 <main+0x1e6>
mov    -0xa4(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0xa4(%rbp)
mov    -0xac(%rbp),%ecx
movslq -0xa8(%rbp),%rax
mov    %ecx,-0xa0(%rbp,%rax,4)
mov    -0xa8(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0xa8(%rbp)
jmp    127c <main+0x15c>
lea    0xde6(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
movl   $0x0,-0xb4(%rbp)
mov    -0xb4(%rbp),%eax
cmp    -0x14(%rbp),%eax
jge    13ac <main+0x28c>
movslq -0xb4(%rbp),%rax
mov    -0xa0(%rbp,%rax,4),%esi
lea    0xe11(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
mov    -0xb4(%rbp),%eax
mov    -0x14(%rbp),%ecx
sub    $0x1,%ecx
cmp    %ecx,%eax
je     1393 <main+0x273>
lea    0xda8(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
jmp    1398 <main+0x278>
mov    -0xb4(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0xb4(%rbp)
jmp    1346 <main+0x226>
mov    -0xa4(%rbp),%esi
lea    0xd7e(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
movl   $0x0,-0x4(%rbp)
mov    -0x4(%rbp),%eax
add    $0xc0,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %rbp
push   %r15
push   %r14
push   %r13
push   %r12
push   %rbx
sub    $0x98,%rsp
lea    0xeb8(%rip),%rdi
xor    %eax,%eax
call   1040 <printf@plt>
lea    0xed1(%rip),%rdi
lea    0x8(%rsp),%rsi
lea    0xc(%rsp),%rdx
xor    %eax,%eax
call   1050 <scanf@plt>
mov    0x8(%rsp),%eax
add    $0xfffffffa,%eax
cmp    $0xfffffffa,%eax
ja     117c <main+0x4c>
lea    0xfb0(%rip),%rdi
jmp    118f <main+0x5f>
mov    0xc(%rsp),%edx
lea    -0x6(%rdx),%eax
cmp    $0xfffffffa,%eax
ja     119e <main+0x6e>
lea    0xf4a(%rip),%rdi
call   1030 <puts@plt>
mov    $0x1,%ebp
jmp    1408 <main+0x2d8>
lea    0x30(%rsp),%r13
lea    0xe82(%rip),%r14
lea    0xf0d(%rip),%r12
xor    %r15d,%r15d
jmp    11ce <main+0x9e>
cs nopw 0x0(%rax,%rax,1)
movslq 0x8(%rsp),%rax
add    $0x14,%r13
cmp    %rax,%r15
jge    1211 <main+0xe1>
add    $0x1,%r15
mov    %r14,%rdi
mov    %r15d,%esi
xor    %eax,%eax
call   1040 <printf@plt>
mov    0xc(%rsp),%edx
test   %edx,%edx
jle    11c0 <main+0x90>
mov    %r13,%rbx
xor    %ebp,%ebp
nopl   0x0(%rax)
mov    %r12,%rdi
mov    %rbx,%rsi
xor    %eax,%eax
call   1050 <scanf@plt>
add    $0x1,%rbp
movslq 0xc(%rsp),%rdx
add    $0x4,%rbx
cmp    %rdx,%rbp
jl     11f0 <main+0xc0>
jmp    11c0 <main+0x90>
mov    %eax,%r14d
test   %r14d,%r14d
jle    1391 <main+0x261>
mov    %edx,%ecx
mov    %ecx,%r11d
and    $0xfffffff8,%r11d
lea    -0x8(%r11),%r8
mov    %r8,%r9
shr    $0x3,%r9
add    $0x1,%r9
mov    %r9d,%r10d
and    $0x3,%r10d
and    $0xfffffffffffffffc,%r9
lea    0xa0(%rsp),%rbp
mov    %r10,%r15
shl    $0x5,%r15
xor    %esi,%esi
lea    0x30(%rsp),%rax
xor    %r12d,%r12d
jmp    1283 <main+0x153>
nopl   0x0(%rax,%rax,1)
xor    %ebx,%ebx
test   %edi,%edi
setg   %bl
add    %ebx,%r12d
mov    %edi,0x10(%rsp,%rsi,4)
add    $0x1,%rsi
add    $0x14,%rbp
add    $0x14,%rax
cmp    %r14,%rsi
je     1394 <main+0x264>
mov    $0x0,%edi
test   %edx,%edx
jle    1260 <main+0x130>
cmp    $0x8,%edx
jae    12a0 <main+0x170>
xor    %ebx,%ebx
xor    %edi,%edi
jmp    1380 <main+0x250>
nopw   0x0(%rax,%rax,1)
pxor   %xmm0,%xmm0
cmp    $0x18,%r8
jae    12b2 <main+0x182>
xor    %ebx,%ebx
pxor   %xmm1,%xmm1
jmp    131a <main+0x1ea>
mov    %r9,%rdi
xor    %ebx,%ebx
pxor   %xmm1,%xmm1
nopl   0x0(%rax,%rax,1)
movdqu -0x70(%rbp,%rbx,4),%xmm2
paddd  %xmm0,%xmm2
movdqu -0x60(%rbp,%rbx,4),%xmm0
paddd  %xmm1,%xmm0
movdqu -0x50(%rbp,%rbx,4),%xmm1
movdqu -0x40(%rbp,%rbx,4),%xmm3
movdqu -0x30(%rbp,%rbx,4),%xmm4
paddd  %xmm1,%xmm4
paddd  %xmm2,%xmm4
movdqu -0x20(%rbp,%rbx,4),%xmm2
paddd  %xmm3,%xmm2
paddd  %xmm0,%xmm2
movdqu -0x10(%rbp,%rbx,4),%xmm0
paddd  %xmm4,%xmm0
movdqu 0x0(%rbp,%rbx,4),%xmm1
paddd  %xmm2,%xmm1
add    $0x20,%rbx
add    $0xfffffffffffffffc,%rdi
jne    12c0 <main+0x190>
test   %r10,%r10
je     134c <main+0x21c>
lea    (%rax,%rbx,4),%rdi
xor    %ebx,%ebx
cs nopw 0x0(%rax,%rax,1)
nop
movdqu (%rdi,%rbx,1),%xmm2
paddd  %xmm2,%xmm0
movdqu 0x10(%rdi,%rbx,1),%xmm2
paddd  %xmm2,%xmm1
add    $0x20,%rbx
cmp    %rbx,%r15
jne    1330 <main+0x200>
paddd  %xmm1,%xmm0
pshufd $0xee,%xmm0,%xmm1
paddd  %xmm0,%xmm1
pshufd $0x55,%xmm1,%xmm0
paddd  %xmm1,%xmm0
movd   %xmm0,%edi
mov    %r11,%rbx
cmp    %rcx,%r11
je     1260 <main+0x130>
cs nopw 0x0(%rax,%rax,1)
nopl   0x0(%rax)
add    (%rax,%rbx,4),%edi
add    $0x1,%rbx
cmp    %rbx,%rcx
jne    1380 <main+0x250>
jmp    1260 <main+0x130>
xor    %r12d,%r12d
lea    0xd26(%rip),%rdi
call   1030 <puts@plt>
cmpl   $0x0,0x8(%rsp)
jle    13f5 <main+0x2c5>
lea    0xd10(%rip),%r14
lea    0xcc2(%rip),%r15
xor    %ebx,%ebx
jmp    13cb <main+0x29b>
nopl   0x0(%rax)
add    $0x1,%rbx
cltq
cmp    %rax,%rbx
jge    13f5 <main+0x2c5>
mov    0x10(%rsp,%rbx,4),%esi
mov    %r14,%rdi
xor    %eax,%eax
call   1040 <printf@plt>
mov    0x8(%rsp),%eax
lea    -0x1(%rax),%ecx
cmp    %rcx,%rbx
je     13c0 <main+0x290>
mov    %r15,%rdi
xor    %eax,%eax
call   1040 <printf@plt>
mov    0x8(%rsp),%eax
jmp    13c0 <main+0x290>
lea    0xc7e(%rip),%rdi
xor    %ebp,%ebp
mov    %r12d,%esi
xor    %eax,%eax
call   1040 <printf@plt>
mov    %ebp,%eax
add    $0x98,%rsp
pop    %rbx
pop    %r12
pop    %r13
pop    %r14
pop    %r15
pop    %rbp
ret

LLVM IR (-O0):
@.str = [39 x i8] c"\D0\92\D0\B2\D0\B5\D0\B4\D0\B8\D1\82\D0\B5 \D0\B7\D0\BD\D0\B0\D1\87\D0\B5\D0\BD\D0\B8\D1\8F N, M: \00"
@.str.1 = [5 x i8] c"%d%d\00"
@.str.2 = [82 x i8] c"\D0\97\D0\BD\D0\B0\D1\87\D0\B5\D0\BD\D0\B8\D0\B5 N \D0\B4\D0\BE\D0\BB\D0\B6\D0\BD\D0\BE \D0\B1\D1\8B\D1\82\D1\8C \D0\BE\D1\82 1 \D0\B4\D0\BE 5 \D0\B2\D0\BA\D0\BB\D1\8E\D1\87\D0\B8\D1\82\D0\B5\D0\BB\D1\8C\D0\BD\D0\BE.\0A\00"
@.str.3 = [82 x i8] c"\D0\97\D0\BD\D0\B0\D1\87\D0\B5\D0\BD\D0\B8\D0\B5 M \D0\B4\D0\BE\D0\BB\D0\B6\D0\BD\D0\BE \D0\B1\D1\8B\D1\82\D1\8C \D0\BE\D1\82 1 \D0\B4\D0\BE 5 \D0\B2\D0\BA\D0\BB\D1\8E\D1\87\D0\B8\D1\82\D0\B5\D0\BB\D1\8C\D0\BD\D0\BE.\0A\00"
@.str.4 = [75 x i8] c"\D0\92\D0\B2\D0\B5\D0\B4\D0\B8\D1\82\D0\B5 %d-\D1\83\D1\8E \D1\81\D1\82\D1\80\D0\BE\D0\BA\D1\83 \D0\BC\D0\B0\D1\82\D1\80\D0\B8\D1\86\D1\8B (%d \D0\B7\D0\BD\D0\B0\D1\87\D0\B5\D0\BD\D0\B8\D0\B9): \00"
@.str.5 = [3 x i8] c"%d\00"
@.str.6 = [25 x i8] c"\0A\D0\A1\D1\83\D0\BC\D0\BC\D0\B0 \D1\81\D1\82\D1\80\D0\BE\D0\BA:\0A\00"
@.str.7 = [3 x i8] c", \00"
@.str.8 = [71 x i8] c"\0A\D0\A7\D0\B8\D1\81\D0\BB\D0\BE \D1\81\D1\82\D1\80\D0\BE\D0\BA, \D1\81 \D0\BF\D0\BE\D0\BB\D0\BE\D0\B6\D0\B8\D1\82\D0\B5\D0\BB\D1\8C\D0\BD\D0\BE\D0\B9 \D1\81\D1\83\D0\BC\D0\BC\D0\BE\D0\B9: %d\00"
define i32 @main(i32 %0, i8** %1) {
%3 = alloca i32
%4 = alloca i32
%5 = alloca i8**
%6 = alloca i32
%7 = alloca i32
%8 = alloca [5 x [5 x i32]]
%9 = alloca i32
%10 = alloca i32
%11 = alloca [5 x i32]
%12 = alloca i32
%13 = alloca i32
%14 = alloca i32
%15 = alloca i32
%16 = alloca i32
store i32 0, i32* %3
store i32 %0, i32* %4
store i8** %1, i8*** %5
%17 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([39 x i8], [39 x i8]* @.str, i64 0, i64 0))
%18 = call i32 (i8*, i32*, ...) @scanf(i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.1, i64 0, i64 0), i32* %6, i32* %7)
%19 = load i32, i32* %6
%20 = icmp slt i32 5, %19
br i1 %20, label %24, label %21
21: ; preds = %2
%22 = load i32, i32* %6
%23 = icmp slt i32 %22, 1
br i1 %23, label %24, label %26
24: ; preds = %21, %2
%25 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([82 x i8], [82 x i8]* @.str.2, i64 0, i64 0))
store i32 1, i32* %3
br label %125
26: ; preds = %21
%27 = load i32, i32* %7
%28 = icmp slt i32 5, %27
br i1 %28, label %32, label %29
29: ; preds = %26
%30 = load i32, i32* %7
%31 = icmp slt i32 %30, 1
br i1 %31, label %32, label %34
32: ; preds = %29, %26
%33 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([82 x i8], [82 x i8]* @.str.3, i64 0, i64 0))
store i32 1, i32* %3
br label %125
34: ; preds = %29
store i32 0, i32* %9
br label %35
35: ; preds = %60, %34
%36 = load i32, i32* %9
%37 = load i32, i32* %6
%38 = icmp slt i32 %36, %37
br i1 %38, label %39, label %63
39: ; preds = %35
%40 = load i32, i32* %9
%41 = add nsw i32 %40, 1
%42 = load i32, i32* %7
%43 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([75 x i8], [75 x i8]* @.str.4, i64 0, i64 0), i32 %41, i32 %42)
store i32 0, i32* %10
br label %44
44: ; preds = %56, %39
%45 = load i32, i32* %10
%46 = load i32, i32* %7
%47 = icmp slt i32 %45, %46
br i1 %47, label %48, label %59
48: ; preds = %44
%49 = load i32, i32* %9
%50 = sext i32 %49 to i64
%51 = getelementptr inbounds [5 x [5 x i32]], [5 x [5 x i32]]* %8, i64 0, i64 %50
%52 = load i32, i32* %10
%53 = sext i32 %52 to i64
%54 = getelementptr inbounds [5 x i32], [5 x i32]* %51, i64 0, i64 %53
%55 = call i32 (i8*, i32*, ...) @scanf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.5, i64 0, i64 0), i32* %54)
br label %56
56: ; preds = %48
%57 = load i32, i32* %10
%58 = add nsw i32 %57, 1
store i32 %58, i32* %10
br label %44
59: ; preds = %44
br label %60
60: ; preds = %59
%61 = load i32, i32* %9
%62 = add nsw i32 %61, 1
store i32 %62, i32* %9
br label %35
63: ; preds = %35
store i32 0, i32* %12
store i32 0, i32* %13
br label %64
64: ; preds = %97, %63
%65 = load i32, i32* %13
%66 = load i32, i32* %6
%67 = icmp slt i32 %65, %66
br i1 %67, label %68, label %100
68: ; preds = %64
store i32 0, i32* %14
store i32 0, i32* %15
br label %69
69: ; preds = %83, %68
%70 = load i32, i32* %15
%71 = load i32, i32* %7
%72 = icmp slt i32 %70, %71
br i1 %72, label %73, label %86
73: ; preds = %69
%74 = load i32, i32* %13
%75 = sext i32 %74 to i64
%76 = getelementptr inbounds [5 x [5 x i32]], [5 x [5 x i32]]* %8, i64 0, i64 %75
%77 = load i32, i32* %15
%78 = sext i32 %77 to i64
%79 = getelementptr inbounds [5 x i32], [5 x i32]* %76, i64 0, i64 %78
%80 = load i32, i32* %79
%81 = load i32, i32* %14
%82 = add nsw i32 %81, %80
store i32 %82, i32* %14
br label %83
83: ; preds = %73
%84 = load i32, i32* %15
%85 = add nsw i32 %84, 1
store i32 %85, i32* %15
br label %69
86: ; preds = %69
%87 = load i32, i32* %14
%88 = icmp sgt i32 %87, 0
br i1 %88, label %89, label %92
89: ; preds = %86
%90 = load i32, i32* %12
%91 = add nsw i32 %90, 1
store i32 %91, i32* %12
br label %92
92: ; preds = %89, %86
%93 = load i32, i32* %14
%94 = load i32, i32* %13
%95 = sext i32 %94 to i64
%96 = getelementptr inbounds [5 x i32], [5 x i32]* %11, i64 0, i64 %95
store i32 %93, i32* %96
br label %97
97: ; preds = %92
%98 = load i32, i32* %13
%99 = add nsw i32 %98, 1
store i32 %99, i32* %13
br label %64
100: ; preds = %64
%101 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([25 x i8], [25 x i8]* @.str.6, i64 0, i64 0))
store i32 0, i32* %16
br label %102
102: ; preds = %119, %100
%103 = load i32, i32* %16
%104 = load i32, i32* %6
%105 = icmp slt i32 %103, %104
br i1 %105, label %106, label %122
106: ; preds = %102
%107 = load i32, i32* %16
%108 = sext i32 %107 to i64
%109 = getelementptr inbounds [5 x i32], [5 x i32]* %11, i64 0, i64 %108
%110 = load i32, i32* %109
%111 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.5, i64 0, i64 0), i32 %110)
%112 = load i32, i32* %16
%113 = load i32, i32* %6
%114 = sub nsw i32 %113, 1
%115 = icmp ne i32 %112, %114
br i1 %115, label %116, label %118
116: ; preds = %106
%117 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.7, i64 0, i64 0))
br label %118
118: ; preds = %116, %106
br label %119
119: ; preds = %118
%120 = load i32, i32* %16
%121 = add nsw i32 %120, 1
store i32 %121, i32* %16
br label %102
122: ; preds = %102
%123 = load i32, i32* %12
%124 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([71 x i8], [71 x i8]* @.str.8, i64 0, i64 0), i32 %123)
store i32 0, i32* %3
br label %125
125: ; preds = %122, %32, %24
%126 = load i32, i32* %3
ret i32 %126
}

LLVM IR (-O2):
@.str = [39 x i8] c"\D0\92\D0\B2\D0\B5\D0\B4\D0\B8\D1\82\D0\B5 \D0\B7\D0\BD\D0\B0\D1\87\D0\B5\D0\BD\D0\B8\D1\8F N, M: \00"
@.str.1 = [5 x i8] c"%d%d\00"
@.str.4 = [75 x i8] c"\D0\92\D0\B2\D0\B5\D0\B4\D0\B8\D1\82\D0\B5 %d-\D1\83\D1\8E \D1\81\D1\82\D1\80\D0\BE\D0\BA\D1\83 \D0\BC\D0\B0\D1\82\D1\80\D0\B8\D1\86\D1\8B (%d \D0\B7\D0\BD\D0\B0\D1\87\D0\B5\D0\BD\D0\B8\D0\B9): \00"
@.str.5 = [3 x i8] c"%d\00"
@.str.7 = [3 x i8] c", \00"
@.str.8 = [71 x i8] c"\0A\D0\A7\D0\B8\D1\81\D0\BB\D0\BE \D1\81\D1\82\D1\80\D0\BE\D0\BA, \D1\81 \D0\BF\D0\BE\D0\BB\D0\BE\D0\B6\D0\B8\D1\82\D0\B5\D0\BB\D1\8C\D0\BD\D0\BE\D0\B9 \D1\81\D1\83\D0\BC\D0\BC\D0\BE\D0\B9: %d\00"
@str = [24 x i8] c"\0A\D0\A1\D1\83\D0\BC\D0\BC\D0\B0 \D1\81\D1\82\D1\80\D0\BE\D0\BA:\00"
@str.9 = [81 x i8] c"\D0\97\D0\BD\D0\B0\D1\87\D0\B5\D0\BD\D0\B8\D0\B5 M \D0\B4\D0\BE\D0\BB\D0\B6\D0\BD\D0\BE \D0\B1\D1\8B\D1\82\D1\8C \D0\BE\D1\82 1 \D0\B4\D0\BE 5 \D0\B2\D0\BA\D0\BB\D1\8E\D1\87\D0\B8\D1\82\D0\B5\D0\BB\D1\8C\D0\BD\D0\BE.\00"
@str.10 = [81 x i8] c"\D0\97\D0\BD\D0\B0\D1\87\D0\B5\D0\BD\D0\B8\D0\B5 N \D0\B4\D0\BE\D0\BB\D0\B6\D0\BD\D0\BE \D0\B1\D1\8B\D1\82\D1\8C \D0\BE\D1\82 1 \D0\B4\D0\BE 5 \D0\B2\D0\BA\D0\BB\D1\8E\D1\87\D0\B8\D1\82\D0\B5\D0\BB\D1\8C\D0\BD\D0\BE.\00"
define i32 @main(i32 %0, i8** nocapture readnone %1) {
%3 = alloca i32
%4 = alloca i32
%5 = alloca [5 x [5 x i32]]
%6 = alloca [5 x i32]
%7 = bitcast i32* %3 to i8*
%8 = bitcast i32* %4 to i8*
%9 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([39 x i8], [39 x i8]* @.str, i64 0, i64 0))
%10 = call i32 (i8*, i32*, ...) @scanf(i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.1, i64 0, i64 0), i32* %3, i32* %4)
%11 = load i32, i32* %3
%12 = add i32 %11, -6
%13 = icmp ult i32 %12, -5
br i1 %13, label %14, label %16
14: ; preds = %2
%15 = call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([81 x i8], [81 x i8]* @str.10, i64 0, i64 0))
br label %181
16: ; preds = %2
%17 = load i32, i32* %4
%18 = add i32 %17, -6
%19 = icmp ult i32 %18, -5
br i1 %19, label %20, label %22
20: ; preds = %16
%21 = call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([81 x i8], [81 x i8]* @str.9, i64 0, i64 0))
br label %181
22: ; preds = %16
%23 = bitcast [5 x [5 x i32]]* %5 to i8*
br label %47
24: ; preds = %55, %47
%25 = phi i32 [ %53, %47 ], [ %60, %55 ]
%26 = load i32, i32* %3
%27 = sext i32 %26 to i64
%28 = icmp slt i64 %50, %27
br i1 %28, label %47, label %29
29: ; preds = %24
%30 = bitcast [5 x i32]* %6 to i8*
%31 = icmp sgt i32 %26, 0
br i1 %31, label %32, label %141
32: ; preds = %29
%33 = icmp sgt i32 %25, 0
%34 = zext i32 %26 to i64
%35 = zext i32 %25 to i64
%36 = and i64 %35, 4294967288
%37 = add nsw i64 %36, -8
%38 = lshr exact i64 %37, 3
%39 = add nuw nsw i64 %38, 1
%40 = icmp ult i32 %25, 8
%41 = and i64 %35, 4294967288
%42 = and i64 %39, 3
%43 = icmp ult i64 %37, 24
%44 = and i64 %39, 4611686018427387900
%45 = icmp eq i64 %42, 0
%46 = icmp eq i64 %41, %35
br label %63
47: ; preds = %22, %24
%48 = phi i32 [ %17, %22 ], [ %25, %24 ]
%49 = phi i64 [ 0, %22 ], [ %50, %24 ]
%50 = add nuw nsw i64 %49, 1
%51 = trunc i64 %50 to i32
%52 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([75 x i8], [75 x i8]* @.str.4, i64 0, i64 0), i32 %51, i32 %48)
%53 = load i32, i32* %4
%54 = icmp sgt i32 %53, 0
br i1 %54, label %55, label %24
55: ; preds = %47, %55
%56 = phi i64 [ %59, %55 ], [ 0, %47 ]
%57 = getelementptr inbounds [5 x [5 x i32]], [5 x [5 x i32]]* %5, i64 0, i64 %49, i64 %56
%58 = call i32 (i8*, i32*, ...) @scanf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.5, i64 0, i64 0), i32* %57)
%59 = add nuw nsw i64 %56, 1
%60 = load i32, i32* %4
%61 = sext i32 %60 to i64
%62 = icmp slt i64 %59, %61
br i1 %62, label %55, label %24
63: ; preds = %32, %146
%64 = phi i64 [ 0, %32 ], [ %152, %146 ]
%65 = phi i32 [ 0, %32 ], [ %150, %146 ]
br i1 %33, label %66, label %146
66: ; preds = %63
br i1 %40, label %138, label %67
67: ; preds = %66
br i1 %43, label %111, label %68
68: ; preds = %67, %68
%69 = phi i64 [ %108, %68 ], [ 0, %67 ]
%70 = phi <4 x i32> [ %106, %68 ], [ zeroinitializer, %67 ]
%71 = phi <4 x i32> [ %107, %68 ], [ zeroinitializer, %67 ]
%72 = phi i64 [ %109, %68 ], [ 0, %67 ]
%73 = getelementptr inbounds [5 x [5 x i32]], [5 x [5 x i32]]* %5, i64 0, i64 %64, i64 %69
%74 = bitcast i32* %73 to <4 x i32>*
%75 = load <4 x i32>, <4 x i32>* %74
%76 = getelementptr inbounds i32, i32* %73, i64 4
%77 = bitcast i32* %76 to <4 x i32>*
%78 = load <4 x i32>, <4 x i32>* %77
%79 = add <4 x i32> %75, %70
%80 = add <4 x i32> %78, %71
%81 = or i64 %69, 8
%82 = getelementptr inbounds [5 x [5 x i32]], [5 x [5 x i32]]* %5, i64 0, i64 %64, i64 %81
%83 = bitcast i32* %82 to <4 x i32>*
%84 = load <4 x i32>, <4 x i32>* %83
%85 = getelementptr inbounds i32, i32* %82, i64 4
%86 = bitcast i32* %85 to <4 x i32>*
%87 = load <4 x i32>, <4 x i32>* %86
%88 = add <4 x i32> %84, %79
%89 = add <4 x i32> %87, %80
%90 = or i64 %69, 16
%91 = getelementptr inbounds [5 x [5 x i32]], [5 x [5 x i32]]* %5, i64 0, i64 %64, i64 %90
%92 = bitcast i32* %91 to <4 x i32>*
%93 = load <4 x i32>, <4 x i32>* %92
%94 = getelementptr inbounds i32, i32* %91, i64 4
%95 = bitcast i32* %94 to <4 x i32>*
%96 = load <4 x i32>, <4 x i32>* %95
%97 = add <4 x i32> %93, %88
%98 = add <4 x i32> %96, %89
%99 = or i64 %69, 24
%100 = getelementptr inbounds [5 x [5 x i32]], [5 x [5 x i32]]* %5, i64 0, i64 %64, i64 %99
%101 = bitcast i32* %100 to <4 x i32>*
%102 = load <4 x i32>, <4 x i32>* %101
%103 = getelementptr inbounds i32, i32* %100, i64 4
%104 = bitcast i32* %103 to <4 x i32>*
%105 = load <4 x i32>, <4 x i32>* %104
%106 = add <4 x i32> %102, %97
%107 = add <4 x i32> %105, %98
%108 = add nuw i64 %69, 32
%109 = add i64 %72, 4
%110 = icmp eq i64 %109, %44
br i1 %110, label %111, label %68
111: ; preds = %68, %67
%112 = phi <4 x i32> [ undef, %67 ], [ %106, %68 ]
%113 = phi <4 x i32> [ undef, %67 ], [ %107, %68 ]
%114 = phi i64 [ 0, %67 ], [ %108, %68 ]
%115 = phi <4 x i32> [ zeroinitializer, %67 ], [ %106, %68 ]
%116 = phi <4 x i32> [ zeroinitializer, %67 ], [ %107, %68 ]
br i1 %45, label %133, label %117
117: ; preds = %111, %117
%118 = phi i64 [ %130, %117 ], [ %114, %111 ]
%119 = phi <4 x i32> [ %128, %117 ], [ %115, %111 ]
%120 = phi <4 x i32> [ %129, %117 ], [ %116, %111 ]
%121 = phi i64 [ %131, %117 ], [ 0, %111 ]
%122 = getelementptr inbounds [5 x [5 x i32]], [5 x [5 x i32]]* %5, i64 0, i64 %64, i64 %118
%123 = bitcast i32* %122 to <4 x i32>*
%124 = load <4 x i32>, <4 x i32>* %123
%125 = getelementptr inbounds i32, i32* %122, i64 4
%126 = bitcast i32* %125 to <4 x i32>*
%127 = load <4 x i32>, <4 x i32>* %126
%128 = add <4 x i32> %124, %119
%129 = add <4 x i32> %127, %120
%130 = add nuw i64 %118, 8
%131 = add i64 %121, 1
%132 = icmp eq i64 %131, %42
br i1 %132, label %133, label %117
133: ; preds = %117, %111
%134 = phi <4 x i32> [ %112, %111 ], [ %128, %117 ]
%135 = phi <4 x i32> [ %113, %111 ], [ %129, %117 ]
%136 = add <4 x i32> %135, %134
%137 = call i32 @llvm.vector.reduce.add.v4i32(<4 x i32> %136)
br i1 %46, label %146, label %138
138: ; preds = %66, %133
%139 = phi i64 [ 0, %66 ], [ %41, %133 ]
%140 = phi i32 [ 0, %66 ], [ %137, %133 ]
br label %154
141: ; preds = %146, %29
%142 = phi i32 [ 0, %29 ], [ %150, %146 ]
%143 = call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([24 x i8], [24 x i8]* @str, i64 0, i64 0))
%144 = load i32, i32* %3
%145 = icmp sgt i32 %144, 0
br i1 %145, label %164, label %162
146: ; preds = %154, %133, %63
%147 = phi i32 [ 0, %63 ], [ %137, %133 ], [ %159, %154 ]
%148 = icmp sgt i32 %147, 0
%149 = zext i1 %148 to i32
%150 = add nuw nsw i32 %65, %149
%151 = getelementptr inbounds [5 x i32], [5 x i32]* %6, i64 0, i64 %64
store i32 %147, i32* %151
%152 = add nuw nsw i64 %64, 1
%153 = icmp eq i64 %152, %34
br i1 %153, label %141, label %63
154: ; preds = %138, %154
%155 = phi i64 [ %160, %154 ], [ %139, %138 ]
%156 = phi i32 [ %159, %154 ], [ %140, %138 ]
%157 = getelementptr inbounds [5 x [5 x i32]], [5 x [5 x i32]]* %5, i64 0, i64 %64, i64 %155
%158 = load i32, i32* %157
%159 = add nsw i32 %158, %156
%160 = add nuw nsw i64 %155, 1
%161 = icmp eq i64 %160, %35
br i1 %161, label %146, label %154
162: ; preds = %176, %141
%163 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([71 x i8], [71 x i8]* @.str.8, i64 0, i64 0), i32 %142)
br label %181
164: ; preds = %141, %176
%165 = phi i64 [ %178, %176 ], [ 0, %141 ]
%166 = getelementptr inbounds [5 x i32], [5 x i32]* %6, i64 0, i64 %165
%167 = load i32, i32* %166
%168 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([3 x i8], [3 x i8]* @.str.5, i64 0, i64 0), i32 %167)
%169 = load i32, i32* %3
%170 = add nsw i32 %169, -1
%171 = zext i32 %170 to i64
%172 = icmp eq i64 %165, %171
br i1 %172, label %176, label %173
173: ; preds = %164
%174 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([3 x i8], [3 x i8]* @.str.7, i64 0, i64 0))
%175 = load i32, i32* %3
br label %176
176: ; preds = %164, %173
%177 = phi i32 [ %169, %164 ], [ %175, %173 ]
%178 = add nuw nsw i64 %165, 1
%179 = sext i32 %177 to i64
%180 = icmp slt i64 %178, %179
br i1 %180, label %164, label %162
181: ; preds = %162, %20, %14
%182 = phi i32 [ 1, %14 ], [ 1, %20 ], [ 0, %162 ]
ret i32 %182
}