#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 */
typedef int /*<<< orphan*/ FILE;

/* Variables and functions */
int /*<<< orphan*/ exit(int);
int /*<<< orphan*/ fprintf(int /*<<< orphan*/, char *, int, int, char *);
char *get_array1(int *, int, int /*<<< orphan*/ *);
int /*<<< orphan*/ stderr;
void rd_int11(int int11[7 + 1][7 + 1][5][5], FILE *fp) {
  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, fp);
      if (cp) {
        fprintf(stderr,
                "convert_epars: 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)
mov    %rsi,-0x10(%rbp)
movl   $0x1,-0x1c(%rbp)
cmpl   $0x8,-0x1c(%rbp)
jge    11eb <rd_int11+0xbb>
movl   $0x1,-0x20(%rbp)
cmpl   $0x8,-0x20(%rbp)
jge    11d8 <rd_int11+0xa8>
mov    -0x8(%rbp),%rdi
movslq -0x1c(%rbp),%rax
imul   $0x320,%rax,%rax
add    %rax,%rdi
movslq -0x20(%rbp),%rax
imul   $0x64,%rax,%rax
add    %rax,%rdi
mov    -0x10(%rbp),%rdx
mov    $0x19,%esi
call   1040 <get_array1@plt>
mov    %rax,-0x18(%rbp)
cmpq   $0x0,-0x18(%rbp)
je     11c5 <rd_int11+0x95>
mov    0x2e3d(%rip),%rax
mov    (%rax),%edi
mov    -0x1c(%rbp),%edx
mov    -0x20(%rbp),%ecx
mov    -0x18(%rbp),%r8
lea    0xe4a(%rip),%rsi
call   1030 <fprintf@plt>
mov    $0x1,%edi
call   1050 <exit@plt>
jmp    11ca <rd_int11+0x9a>
mov    -0x20(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x20(%rbp)
jmp    1158 <rd_int11+0x28>
jmp    11dd <rd_int11+0xad>
mov    -0x1c(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x1c(%rbp)
jmp    1147 <rd_int11+0x17>
add    $0x20,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<rd_int11>:
push   %rbp
push   %r15
push   %r14
push   %r12
push   %rbx
mov    %rsi,%r12
mov    %rdi,%rbx
mov    $0x1,%r14d
xor    %ebp,%ebp
mov    $0x1,%r15d
nopl   0x0(%rax)
lea    (%rbx,%rbp,1),%rdi
add    $0x384,%rdi
mov    $0x19,%esi
mov    %r12,%rdx
call   1040 <get_array1@plt>
test   %rax,%rax
jne    127a <rd_int11+0x14a>
lea    (%rbx,%rbp,1),%rdi
add    $0x3e8,%rdi
mov    $0x19,%esi
mov    %r12,%rdx
call   1040 <get_array1@plt>
test   %rax,%rax
jne    124c <rd_int11+0x11c>
lea    (%rbx,%rbp,1),%rdi
add    $0x44c,%rdi
mov    $0x19,%esi
mov    %r12,%rdx
call   1040 <get_array1@plt>
test   %rax,%rax
jne    1254 <rd_int11+0x124>
lea    (%rbx,%rbp,1),%rdi
add    $0x4b0,%rdi
mov    $0x19,%esi
mov    %r12,%rdx
call   1040 <get_array1@plt>
test   %rax,%rax
jne    125c <rd_int11+0x12c>
lea    (%rbx,%rbp,1),%rdi
add    $0x514,%rdi
mov    $0x19,%esi
mov    %r12,%rdx
call   1040 <get_array1@plt>
test   %rax,%rax
jne    1264 <rd_int11+0x134>
lea    (%rbx,%rbp,1),%rdi
add    $0x578,%rdi
mov    $0x19,%esi
mov    %r12,%rdx
call   1040 <get_array1@plt>
test   %rax,%rax
jne    126c <rd_int11+0x13c>
lea    (%rbx,%rbp,1),%rdi
add    $0x5dc,%rdi
mov    $0x19,%esi
mov    %r12,%rdx
call   1040 <get_array1@plt>
test   %rax,%rax
jne    1274 <rd_int11+0x144>
add    $0x1,%r15d
add    $0x320,%rbp
cmp    $0x15e0,%rbp
jne    1150 <rd_int11+0x20>
pop    %rbx
pop    %r12
pop    %r14
pop    %r15
pop    %rbp
ret
mov    $0x2,%r14d
jmp    127a <rd_int11+0x14a>
mov    $0x3,%r14d
jmp    127a <rd_int11+0x14a>
mov    $0x4,%r14d
jmp    127a <rd_int11+0x14a>
mov    $0x5,%r14d
jmp    127a <rd_int11+0x14a>
mov    $0x6,%r14d
jmp    127a <rd_int11+0x14a>
mov    $0x7,%r14d
mov    0x2d5f(%rip),%rcx
mov    (%rcx),%edi
lea    0xd76(%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 = [53 x i8] c"convert_epars: rd_int11: in field int11[%d][%d]\0A\09%s\0A\00"
define void @rd_int11([8 x [5 x [5 x i32]]]* %0, i32* %1) {
%3 = alloca [8 x [5 x [5 x i32]]]*
%4 = alloca i32*
%5 = alloca i8*
%6 = alloca i32
%7 = alloca i32
store [8 x [5 x [5 x i32]]]* %0, [8 x [5 x [5 x i32]]]** %3
store i32* %1, i32** %4
store i32 1, i32* %6
br label %8
8: ; preds = %41, %2
%9 = load i32, i32* %6
%10 = icmp slt i32 %9, 8
br i1 %10, label %11, label %44
11: ; preds = %8
store i32 1, i32* %7
br label %12
12: ; preds = %37, %11
%13 = load i32, i32* %7
%14 = icmp slt i32 %13, 8
br i1 %14, label %15, label %40
15: ; preds = %12
%16 = load [8 x [5 x [5 x i32]]]*, [8 x [5 x [5 x i32]]]** %3
%17 = load i32, i32* %6
%18 = sext i32 %17 to i64
%19 = getelementptr inbounds [8 x [5 x [5 x i32]]], [8 x [5 x [5 x i32]]]* %16, i64 %18
%20 = load i32, i32* %7
%21 = sext i32 %20 to i64
%22 = getelementptr inbounds [8 x [5 x [5 x i32]]], [8 x [5 x [5 x i32]]]* %19, i64 0, i64 %21
%23 = getelementptr inbounds [5 x [5 x i32]], [5 x [5 x i32]]* %22, i64 0, i64 0
%24 = getelementptr inbounds [5 x i32], [5 x i32]* %23, i64 0, i64 0
%25 = load i32*, i32** %4
%26 = call i8* @get_array1(i32* %24, i32 25, i32* %25)
store i8* %26, i8** %5
%27 = load i8*, i8** %5
%28 = icmp ne i8* %27, null
br i1 %28, label %29, label %36
29: ; preds = %15
%30 = load i32, i32* @stderr
%31 = load i32, i32* %6
%32 = load i32, i32* %7
%33 = load i8*, i8** %5
%34 = call i32 @fprintf(i32 %30, i8* getelementptr inbounds ([53 x i8], [53 x i8]* @.str, i64 0, i64 0), i32 %31, i32 %32, i8* %33)
%35 = call i32 @exit(i32 1)
unreachable
36: ; preds = %15
br label %37
37: ; preds = %36
%38 = load i32, i32* %7
%39 = add nsw i32 %38, 1
store i32 %39, i32* %7
br label %12
40: ; preds = %12
br label %41
41: ; preds = %40
%42 = load i32, i32* %6
%43 = add nsw i32 %42, 1
store i32 %43, i32* %6
br label %8
44: ; preds = %8
ret void
}

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