#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*/ scanf(char *, int *);
void input(int maze[23][19]) {
  int i, j;
  for (i = 0; i < 23; i++) {
    for (j = 0; j < 19; j++) {
      scanf("%d", &maze[i][j]);
    }
  }
}


x86 assembly (clang, -O0):
<input>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
mov    %rdi,-0x8(%rbp)
movl   $0x0,-0xc(%rbp)
cmpl   $0x17,-0xc(%rbp)
jge    1185 <input+0x75>
movl   $0x0,-0x10(%rbp)
cmpl   $0x13,-0x10(%rbp)
jge    1172 <input+0x62>
mov    -0x8(%rbp),%rsi
movslq -0xc(%rbp),%rax
imul   $0x4c,%rax,%rax
add    %rax,%rsi
movslq -0x10(%rbp),%rax
shl    $0x2,%rax
add    %rax,%rsi
lea    0xea1(%rip),%rdi
call   1030 <scanf@plt>
mov    -0x10(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x10(%rbp)
jmp    1134 <input+0x24>
jmp    1177 <input+0x67>
mov    -0xc(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0xc(%rbp)
jmp    1123 <input+0x13>
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<input>:
push   %r15
push   %r14
push   %rbx
mov    %rdi,%r15
xor    %ebx,%ebx
lea    0xedf(%rip),%r14
cs nopw 0x0(%rax,%rax,1)
nopl   0x0(%rax,%rax,1)
lea    (%r15,%rbx,1),%rsi
mov    %r14,%rdi
call   1030 <scanf@plt>
lea    (%r15,%rbx,1),%rsi
add    $0x4,%rsi
mov    %r14,%rdi
call   1030 <scanf@plt>
lea    (%r15,%rbx,1),%rsi
add    $0x8,%rsi
mov    %r14,%rdi
call   1030 <scanf@plt>
lea    (%r15,%rbx,1),%rsi
add    $0xc,%rsi
mov    %r14,%rdi
call   1030 <scanf@plt>
lea    (%r15,%rbx,1),%rsi
add    $0x10,%rsi
mov    %r14,%rdi
call   1030 <scanf@plt>
lea    (%r15,%rbx,1),%rsi
add    $0x14,%rsi
mov    %r14,%rdi
call   1030 <scanf@plt>
lea    (%r15,%rbx,1),%rsi
add    $0x18,%rsi
mov    %r14,%rdi
call   1030 <scanf@plt>
lea    (%r15,%rbx,1),%rsi
add    $0x1c,%rsi
mov    %r14,%rdi
call   1030 <scanf@plt>
lea    (%r15,%rbx,1),%rsi
add    $0x20,%rsi
mov    %r14,%rdi
call   1030 <scanf@plt>
lea    (%r15,%rbx,1),%rsi
add    $0x24,%rsi
mov    %r14,%rdi
call   1030 <scanf@plt>
lea    (%r15,%rbx,1),%rsi
add    $0x28,%rsi
mov    %r14,%rdi
call   1030 <scanf@plt>
lea    (%r15,%rbx,1),%rsi
add    $0x2c,%rsi
mov    %r14,%rdi
call   1030 <scanf@plt>
lea    (%r15,%rbx,1),%rsi
add    $0x30,%rsi
mov    %r14,%rdi
call   1030 <scanf@plt>
lea    (%r15,%rbx,1),%rsi
add    $0x34,%rsi
mov    %r14,%rdi
call   1030 <scanf@plt>
lea    (%r15,%rbx,1),%rsi
add    $0x38,%rsi
mov    %r14,%rdi
call   1030 <scanf@plt>
lea    (%r15,%rbx,1),%rsi
add    $0x3c,%rsi
mov    %r14,%rdi
call   1030 <scanf@plt>
lea    (%r15,%rbx,1),%rsi
add    $0x40,%rsi
mov    %r14,%rdi
call   1030 <scanf@plt>
lea    (%r15,%rbx,1),%rsi
add    $0x44,%rsi
mov    %r14,%rdi
call   1030 <scanf@plt>
lea    (%r15,%rbx,1),%rsi
add    $0x48,%rsi
mov    %r14,%rdi
call   1030 <scanf@plt>
add    $0x4c,%rbx
cmp    $0x6d4,%rbx
jne    1130 <input+0x20>
pop    %rbx
pop    %r14
pop    %r15
ret

LLVM IR (-O0):
@.str = [3 x i8] c"%d\00"
define void @input([19 x i32]* %0) {
%2 = alloca [19 x i32]*
%3 = alloca i32
%4 = alloca i32
store [19 x i32]* %0, [19 x i32]** %2
store i32 0, i32* %3
br label %5
5: ; preds = %25, %1
%6 = load i32, i32* %3
%7 = icmp slt i32 %6, 23
br i1 %7, label %8, label %28
8: ; preds = %5
store i32 0, i32* %4
br label %9
9: ; preds = %21, %8
%10 = load i32, i32* %4
%11 = icmp slt i32 %10, 19
br i1 %11, label %12, label %24
12: ; preds = %9
%13 = load [19 x i32]*, [19 x i32]** %2
%14 = load i32, i32* %3
%15 = sext i32 %14 to i64
%16 = getelementptr inbounds [19 x i32], [19 x i32]* %13, i64 %15
%17 = load i32, i32* %4
%18 = sext i32 %17 to i64
%19 = getelementptr inbounds [19 x i32], [19 x i32]* %16, i64 0, i64 %18
%20 = call i32 @scanf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str, i64 0, i64 0), i32* %19)
br label %21
21: ; preds = %12
%22 = load i32, i32* %4
%23 = add nsw i32 %22, 1
store i32 %23, i32* %4
br label %9
24: ; preds = %9
br label %25
25: ; preds = %24
%26 = load i32, i32* %3
%27 = add nsw i32 %26, 1
store i32 %27, i32* %3
br label %5
28: ; preds = %5
ret void
}

LLVM IR (-O2):
@.str = [3 x i8] c"%d\00"
define void @input([19 x i32]* %0) {
br label %2
2: ; preds = %1, %2
%3 = phi i64 [ 0, %1 ], [ %42, %2 ]
%4 = getelementptr inbounds [19 x i32], [19 x i32]* %0, i64 %3, i64 0
%5 = tail call i32 @scanf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str, i64 0, i64 0), i32* %4)
%6 = getelementptr inbounds [19 x i32], [19 x i32]* %0, i64 %3, i64 1
%7 = tail call i32 @scanf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str, i64 0, i64 0), i32* %6)
%8 = getelementptr inbounds [19 x i32], [19 x i32]* %0, i64 %3, i64 2
%9 = tail call i32 @scanf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str, i64 0, i64 0), i32* %8)
%10 = getelementptr inbounds [19 x i32], [19 x i32]* %0, i64 %3, i64 3
%11 = tail call i32 @scanf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str, i64 0, i64 0), i32* %10)
%12 = getelementptr inbounds [19 x i32], [19 x i32]* %0, i64 %3, i64 4
%13 = tail call i32 @scanf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str, i64 0, i64 0), i32* %12)
%14 = getelementptr inbounds [19 x i32], [19 x i32]* %0, i64 %3, i64 5
%15 = tail call i32 @scanf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str, i64 0, i64 0), i32* %14)
%16 = getelementptr inbounds [19 x i32], [19 x i32]* %0, i64 %3, i64 6
%17 = tail call i32 @scanf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str, i64 0, i64 0), i32* %16)
%18 = getelementptr inbounds [19 x i32], [19 x i32]* %0, i64 %3, i64 7
%19 = tail call i32 @scanf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str, i64 0, i64 0), i32* %18)
%20 = getelementptr inbounds [19 x i32], [19 x i32]* %0, i64 %3, i64 8
%21 = tail call i32 @scanf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str, i64 0, i64 0), i32* %20)
%22 = getelementptr inbounds [19 x i32], [19 x i32]* %0, i64 %3, i64 9
%23 = tail call i32 @scanf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str, i64 0, i64 0), i32* %22)
%24 = getelementptr inbounds [19 x i32], [19 x i32]* %0, i64 %3, i64 10
%25 = tail call i32 @scanf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str, i64 0, i64 0), i32* %24)
%26 = getelementptr inbounds [19 x i32], [19 x i32]* %0, i64 %3, i64 11
%27 = tail call i32 @scanf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str, i64 0, i64 0), i32* %26)
%28 = getelementptr inbounds [19 x i32], [19 x i32]* %0, i64 %3, i64 12
%29 = tail call i32 @scanf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str, i64 0, i64 0), i32* %28)
%30 = getelementptr inbounds [19 x i32], [19 x i32]* %0, i64 %3, i64 13
%31 = tail call i32 @scanf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str, i64 0, i64 0), i32* %30)
%32 = getelementptr inbounds [19 x i32], [19 x i32]* %0, i64 %3, i64 14
%33 = tail call i32 @scanf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str, i64 0, i64 0), i32* %32)
%34 = getelementptr inbounds [19 x i32], [19 x i32]* %0, i64 %3, i64 15
%35 = tail call i32 @scanf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str, i64 0, i64 0), i32* %34)
%36 = getelementptr inbounds [19 x i32], [19 x i32]* %0, i64 %3, i64 16
%37 = tail call i32 @scanf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str, i64 0, i64 0), i32* %36)
%38 = getelementptr inbounds [19 x i32], [19 x i32]* %0, i64 %3, i64 17
%39 = tail call i32 @scanf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str, i64 0, i64 0), i32* %38)
%40 = getelementptr inbounds [19 x i32], [19 x i32]* %0, i64 %3, i64 18
%41 = tail call i32 @scanf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str, i64 0, i64 0), i32* %40)
%42 = add nuw nsw i64 %3, 1
%43 = icmp eq i64 %42, 23
br i1 %43, label %44, label %2
44: ; preds = %2
ret void
}