#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, char *);
char *get_array1(int *, int);
int /*<<< orphan*/ stderr;
void rd_mismatch(int mismatch[7 + 1][5][5]) {
  char *cp;
  int i;
  for (i = 1; i < 7 + 1; i++) {
    cp = get_array1(mismatch[i][0], 5 * 5);
    if (cp) {
      fprintf(stderr, "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)
movl   $0x1,-0x14(%rbp)
cmpl   $0x8,-0x14(%rbp)
jge    11ae <rd_mismatch+0x7e>
mov    -0x8(%rbp),%rdi
movslq -0x14(%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     119b <rd_mismatch+0x6b>
mov    0x2e64(%rip),%rax
mov    (%rax),%edi
mov    -0x14(%rbp),%edx
mov    -0x10(%rbp),%rcx
lea    0xe74(%rip),%rsi
call   1030 <fprintf@plt>
mov    $0x1,%edi
call   1050 <exit@plt>
jmp    11a0 <rd_mismatch+0x70>
mov    -0x14(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x14(%rbp)
jmp    1143 <rd_mismatch+0x13>
add    $0x20,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<rd_mismatch>:
push   %rbx
mov    %rdi,%rbx
add    $0x64,%rdi
mov    $0x19,%esi
call   1040 <get_array1@plt>
test   %rax,%rax
jne    11d4 <rd_mismatch+0xa4>
lea    0xc8(%rbx),%rdi
mov    $0x19,%esi
call   1040 <get_array1@plt>
test   %rax,%rax
jne    11db <rd_mismatch+0xab>
lea    0x12c(%rbx),%rdi
mov    $0x19,%esi
call   1040 <get_array1@plt>
test   %rax,%rax
jne    11e2 <rd_mismatch+0xb2>
lea    0x190(%rbx),%rdi
mov    $0x19,%esi
call   1040 <get_array1@plt>
test   %rax,%rax
jne    11e9 <rd_mismatch+0xb9>
lea    0x1f4(%rbx),%rdi
mov    $0x19,%esi
call   1040 <get_array1@plt>
test   %rax,%rax
jne    11f0 <rd_mismatch+0xc0>
lea    0x258(%rbx),%rdi
mov    $0x19,%esi
call   1040 <get_array1@plt>
test   %rax,%rax
jne    11f7 <rd_mismatch+0xc7>
add    $0x2bc,%rbx
mov    %rbx,%rdi
mov    $0x19,%esi
call   1040 <get_array1@plt>
test   %rax,%rax
jne    11fe <rd_mismatch+0xce>
pop    %rbx
ret
mov    $0x1,%edx
jmp    1203 <rd_mismatch+0xd3>
mov    $0x2,%edx
jmp    1203 <rd_mismatch+0xd3>
mov    $0x3,%edx
jmp    1203 <rd_mismatch+0xd3>
mov    $0x4,%edx
jmp    1203 <rd_mismatch+0xd3>
mov    $0x5,%edx
jmp    1203 <rd_mismatch+0xd3>
mov    $0x6,%edx
jmp    1203 <rd_mismatch+0xd3>
mov    $0x7,%edx
mov    0x2dd6(%rip),%rcx
mov    (%rcx),%edi
lea    0xded(%rip),%rsi
mov    %rax,%rcx
call   1030 <fprintf@plt>
mov    $0x1,%edi
call   1050 <exit@plt>

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

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