#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*/ exit(int);
int /*<<< orphan*/ fprintf(int /*<<< orphan*/, char *, int, int, char *);
char *get_array1(int *, int);
int /*<<< orphan*/ stderr;
void rd_int11(int int11[7 + 1][7 + 1][5][5]) {
  char *cp;
  int i, j;
  for (i = 1; i < 7 + 1; i++) {
    for (j = 1; j < 7 + 1; j++) {
      cp = get_array1(int11[i][j][0], 5 * 5);
      if (cp) {
        fprintf(stderr, "rd_int11: in field int11[%d][%d]\n\t%s\n", i, j, cp);
        exit(1);
      }
    }
  }
  return;
}


x86 assembly (clang, -O0):
<rd_int11>:
push   %rbp
mov    %rsp,%rbp
sub    $0x20,%rsp
mov    %rdi,-0x8(%rbp)
movl   $0x1,-0x14(%rbp)
cmpl   $0x8,-0x14(%rbp)
jge    11e3 <rd_int11+0xb3>
movl   $0x1,-0x18(%rbp)
cmpl   $0x8,-0x18(%rbp)
jge    11d0 <rd_int11+0xa0>
mov    -0x8(%rbp),%rdi
movslq -0x14(%rbp),%rax
imul   $0x320,%rax,%rax
add    %rax,%rdi
movslq -0x18(%rbp),%rax
imul   $0x64,%rax,%rax
add    %rax,%rdi
mov    $0x19,%esi
call   1040 <get_array1@plt>
mov    %rax,-0x10(%rbp)
cmpq   $0x0,-0x10(%rbp)
je     11bd <rd_int11+0x8d>
mov    0x2e45(%rip),%rax
mov    (%rax),%edi
mov    -0x14(%rbp),%edx
mov    -0x18(%rbp),%ecx
mov    -0x10(%rbp),%r8
lea    0xe52(%rip),%rsi
call   1030 <fprintf@plt>
mov    $0x1,%edi
call   1050 <exit@plt>
jmp    11c2 <rd_int11+0x92>
mov    -0x18(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x18(%rbp)
jmp    1154 <rd_int11+0x24>
jmp    11d5 <rd_int11+0xa5>
mov    -0x14(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x14(%rbp)
jmp    1143 <rd_int11+0x13>
add    $0x20,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<rd_int11>:
push   %rbp
push   %r15
push   %r14
push   %rbx
push   %rax
mov    %rdi,%rbp
mov    $0x1,%r14d
xor    %ebx,%ebx
mov    $0x1,%r15d
nopl   0x0(%rax,%rax,1)
lea    (%rbx,%rbp,1),%rdi
add    $0x384,%rdi
mov    $0x19,%esi
call   1040 <get_array1@plt>
test   %rax,%rax
jne    1267 <rd_int11+0x137>
lea    (%rbx,%rbp,1),%rdi
add    $0x3e8,%rdi
mov    $0x19,%esi
call   1040 <get_array1@plt>
test   %rax,%rax
jne    1239 <rd_int11+0x109>
lea    (%rbx,%rbp,1),%rdi
add    $0x44c,%rdi
mov    $0x19,%esi
call   1040 <get_array1@plt>
test   %rax,%rax
jne    1241 <rd_int11+0x111>
lea    (%rbx,%rbp,1),%rdi
add    $0x4b0,%rdi
mov    $0x19,%esi
call   1040 <get_array1@plt>
test   %rax,%rax
jne    1249 <rd_int11+0x119>
lea    (%rbx,%rbp,1),%rdi
add    $0x514,%rdi
mov    $0x19,%esi
call   1040 <get_array1@plt>
test   %rax,%rax
jne    1251 <rd_int11+0x121>
lea    (%rbx,%rbp,1),%rdi
add    $0x578,%rdi
mov    $0x19,%esi
call   1040 <get_array1@plt>
test   %rax,%rax
jne    1259 <rd_int11+0x129>
lea    (%rbx,%rbp,1),%rdi
add    $0x5dc,%rdi
mov    $0x19,%esi
call   1040 <get_array1@plt>
test   %rax,%rax
jne    1261 <rd_int11+0x131>
add    $0x1,%r15d
add    $0x320,%rbx
cmp    $0x15e0,%rbx
jne    1150 <rd_int11+0x20>
add    $0x8,%rsp
pop    %rbx
pop    %r14
pop    %r15
pop    %rbp
ret
mov    $0x2,%r14d
jmp    1267 <rd_int11+0x137>
mov    $0x3,%r14d
jmp    1267 <rd_int11+0x137>
mov    $0x4,%r14d
jmp    1267 <rd_int11+0x137>
mov    $0x5,%r14d
jmp    1267 <rd_int11+0x137>
mov    $0x6,%r14d
jmp    1267 <rd_int11+0x137>
mov    $0x7,%r14d
mov    0x2d72(%rip),%rcx
mov    (%rcx),%edi
lea    0xd89(%rip),%rsi
mov    %r15d,%edx
mov    %r14d,%ecx
mov    %rax,%r8
call   1030 <fprintf@plt>
mov    $0x1,%edi
call   1050 <exit@plt>

LLVM IR (-O0):
@stderr = global i32 0
@.str = [38 x i8] c"rd_int11: in field int11[%d][%d]\0A\09%s\0A\00"
define void @rd_int11([8 x [5 x [5 x i32]]]* %0) {
%2 = alloca [8 x [5 x [5 x i32]]]*
%3 = alloca i8*
%4 = alloca i32
%5 = alloca i32
store [8 x [5 x [5 x i32]]]* %0, [8 x [5 x [5 x i32]]]** %2
store i32 1, i32* %4
br label %6
6: ; preds = %38, %1
%7 = load i32, i32* %4
%8 = icmp slt i32 %7, 8
br i1 %8, label %9, label %41
9: ; preds = %6
store i32 1, i32* %5
br label %10
10: ; preds = %34, %9
%11 = load i32, i32* %5
%12 = icmp slt i32 %11, 8
br i1 %12, label %13, label %37
13: ; preds = %10
%14 = load [8 x [5 x [5 x i32]]]*, [8 x [5 x [5 x i32]]]** %2
%15 = load i32, i32* %4
%16 = sext i32 %15 to i64
%17 = getelementptr inbounds [8 x [5 x [5 x i32]]], [8 x [5 x [5 x i32]]]* %14, i64 %16
%18 = load i32, i32* %5
%19 = sext i32 %18 to i64
%20 = getelementptr inbounds [8 x [5 x [5 x i32]]], [8 x [5 x [5 x i32]]]* %17, i64 0, i64 %19
%21 = getelementptr inbounds [5 x [5 x i32]], [5 x [5 x i32]]* %20, i64 0, i64 0
%22 = getelementptr inbounds [5 x i32], [5 x i32]* %21, i64 0, i64 0
%23 = call i8* @get_array1(i32* %22, i32 25)
store i8* %23, i8** %3
%24 = load i8*, i8** %3
%25 = icmp ne i8* %24, null
br i1 %25, label %26, label %33
26: ; preds = %13
%27 = load i32, i32* @stderr
%28 = load i32, i32* %4
%29 = load i32, i32* %5
%30 = load i8*, i8** %3
%31 = call i32 @fprintf(i32 %27, i8* getelementptr inbounds ([38 x i8], [38 x i8]* @.str, i64 0, i64 0), i32 %28, i32 %29, i8* %30)
%32 = call i32 @exit(i32 1)
unreachable
33: ; preds = %13
br label %34
34: ; preds = %33
%35 = load i32, i32* %5
%36 = add nsw i32 %35, 1
store i32 %36, i32* %5
br label %10
37: ; preds = %10
br label %38
38: ; preds = %37
%39 = load i32, i32* %4
%40 = add nsw i32 %39, 1
store i32 %40, i32* %4
br label %6
41: ; preds = %6
ret void
}

LLVM IR (-O2):
@stderr = global i32 0
@.str = [38 x i8] c"rd_int11: in field int11[%d][%d]\0A\09%s\0A\00"
define void @rd_int11([8 x [5 x [5 x i32]]]* %0) {
br label %2
2: ; preds = %1, %38
%3 = phi i64 [ 1, %1 ], [ %39, %38 ]
%4 = getelementptr inbounds [8 x [5 x [5 x i32]]], [8 x [5 x [5 x i32]]]* %0, i64 %3, i64 1, i64 0, i64 0
%5 = tail call i8* @get_array1(i32* %4, i32 25)
%6 = icmp eq i8* %5, null
br i1 %6, label %14, label %7
7: ; preds = %34, %30, %26, %22, %18, %14, %2
%8 = phi i32 [ 1, %2 ], [ 2, %14 ], [ 3, %18 ], [ 4, %22 ], [ 5, %26 ], [ 6, %30 ], [ 7, %34 ]
%9 = phi i8* [ %5, %2 ], [ %16, %14 ], [ %20, %18 ], [ %24, %22 ], [ %28, %26 ], [ %32, %30 ], [ %36, %34 ]
%10 = trunc i64 %3 to i32
%11 = load i32, i32* @stderr
%12 = tail call i32 @fprintf(i32 %11, i8* getelementptr inbounds ([38 x i8], [38 x i8]* @.str, i64 0, i64 0), i32 %10, i32 %8, i8* %9)
%13 = tail call i32 @exit(i32 1)
unreachable
14: ; preds = %2
%15 = getelementptr inbounds [8 x [5 x [5 x i32]]], [8 x [5 x [5 x i32]]]* %0, i64 %3, i64 2, i64 0, i64 0
%16 = tail call i8* @get_array1(i32* %15, i32 25)
%17 = icmp eq i8* %16, null
br i1 %17, label %18, label %7
18: ; preds = %14
%19 = getelementptr inbounds [8 x [5 x [5 x i32]]], [8 x [5 x [5 x i32]]]* %0, i64 %3, i64 3, i64 0, i64 0
%20 = tail call i8* @get_array1(i32* %19, i32 25)
%21 = icmp eq i8* %20, null
br i1 %21, label %22, label %7
22: ; preds = %18
%23 = getelementptr inbounds [8 x [5 x [5 x i32]]], [8 x [5 x [5 x i32]]]* %0, i64 %3, i64 4, i64 0, i64 0
%24 = tail call i8* @get_array1(i32* %23, i32 25)
%25 = icmp eq i8* %24, null
br i1 %25, label %26, label %7
26: ; preds = %22
%27 = getelementptr inbounds [8 x [5 x [5 x i32]]], [8 x [5 x [5 x i32]]]* %0, i64 %3, i64 5, i64 0, i64 0
%28 = tail call i8* @get_array1(i32* %27, i32 25)
%29 = icmp eq i8* %28, null
br i1 %29, label %30, label %7
30: ; preds = %26
%31 = getelementptr inbounds [8 x [5 x [5 x i32]]], [8 x [5 x [5 x i32]]]* %0, i64 %3, i64 6, i64 0, i64 0
%32 = tail call i8* @get_array1(i32* %31, i32 25)
%33 = icmp eq i8* %32, null
br i1 %33, label %34, label %7
34: ; preds = %30
%35 = getelementptr inbounds [8 x [5 x [5 x i32]]], [8 x [5 x [5 x i32]]]* %0, i64 %3, i64 7, i64 0, i64 0
%36 = tail call i8* @get_array1(i32* %35, i32 25)
%37 = icmp eq i8* %36, null
br i1 %37, label %38, label %7
38: ; preds = %34
%39 = add nuw nsw i64 %3, 1
%40 = icmp eq i64 %39, 8
br i1 %40, label %41, label %2
41: ; preds = %38
ret void
}