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


x86 assembly (clang, -O0):
<rd_mismatch>:
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    11b6 <rd_mismatch+0x86>
mov    -0x8(%rbp),%rdi
movslq -0x1c(%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     11a3 <rd_mismatch+0x73>
mov    0x2e5c(%rip),%rax
mov    (%rax),%edi
mov    -0x1c(%rbp),%edx
mov    -0x18(%rbp),%rcx
lea    0xe6c(%rip),%rsi
call   1030 <fprintf@plt>
mov    $0x1,%edi
call   1050 <exit@plt>
jmp    11a8 <rd_mismatch+0x78>
mov    -0x1c(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x1c(%rbp)
jmp    1147 <rd_mismatch+0x17>
add    $0x20,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<rd_mismatch>:
push   %r14
push   %rbx
push   %rax
mov    %rsi,%r14
mov    %rdi,%rbx
add    $0x64,%rdi
mov    $0x19,%esi
mov    %r14,%rdx
call   1040 <get_array1@plt>
test   %rax,%rax
jne    11f9 <rd_mismatch+0xc9>
lea    0xc8(%rbx),%rdi
mov    $0x19,%esi
mov    %r14,%rdx
call   1040 <get_array1@plt>
test   %rax,%rax
jne    1200 <rd_mismatch+0xd0>
lea    0x12c(%rbx),%rdi
mov    $0x19,%esi
mov    %r14,%rdx
call   1040 <get_array1@plt>
test   %rax,%rax
jne    1207 <rd_mismatch+0xd7>
lea    0x190(%rbx),%rdi
mov    $0x19,%esi
mov    %r14,%rdx
call   1040 <get_array1@plt>
test   %rax,%rax
jne    120e <rd_mismatch+0xde>
lea    0x1f4(%rbx),%rdi
mov    $0x19,%esi
mov    %r14,%rdx
call   1040 <get_array1@plt>
test   %rax,%rax
jne    1215 <rd_mismatch+0xe5>
lea    0x258(%rbx),%rdi
mov    $0x19,%esi
mov    %r14,%rdx
call   1040 <get_array1@plt>
test   %rax,%rax
jne    121c <rd_mismatch+0xec>
add    $0x2bc,%rbx
mov    %rbx,%rdi
mov    $0x19,%esi
mov    %r14,%rdx
call   1040 <get_array1@plt>
test   %rax,%rax
jne    1223 <rd_mismatch+0xf3>
add    $0x8,%rsp
pop    %rbx
pop    %r14
ret
mov    $0x1,%edx
jmp    1228 <rd_mismatch+0xf8>
mov    $0x2,%edx
jmp    1228 <rd_mismatch+0xf8>
mov    $0x3,%edx
jmp    1228 <rd_mismatch+0xf8>
mov    $0x4,%edx
jmp    1228 <rd_mismatch+0xf8>
mov    $0x5,%edx
jmp    1228 <rd_mismatch+0xf8>
mov    $0x6,%edx
jmp    1228 <rd_mismatch+0xf8>
mov    $0x7,%edx
mov    0x2db1(%rip),%rcx
mov    (%rcx),%edi
lea    0xdc8(%rip),%rsi
mov    %rax,%rcx
call   1030 <fprintf@plt>
mov    $0x1,%edi
call   1050 <exit@plt>

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

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