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


x86 assembly (clang, -O0):
<rd_dangle>:
push   %rbp
mov    %rsp,%rbp
sub    $0x20,%rsp
mov    %rdi,-0x8(%rbp)
mov    %rsi,-0x10(%rbp)
movl   $0x0,-0x14(%rbp)
cmpl   $0x8,-0x14(%rbp)
jge    11b3 <rd_dangle+0x83>
mov    -0x8(%rbp),%rdi
movslq -0x14(%rbp),%rax
imul   $0x14,%rax,%rax
add    %rax,%rdi
mov    -0x10(%rbp),%rdx
mov    $0x5,%esi
call   1040 <get_array1@plt>
mov    %rax,-0x20(%rbp)
cmpq   $0x0,-0x20(%rbp)
je     11a0 <rd_dangle+0x70>
mov    0x2e5c(%rip),%rax
mov    (%rax),%edi
mov    -0x20(%rbp),%rdx
lea    0xe6f(%rip),%rsi
call   1030 <fprintf@plt>
mov    $0x1,%edi
call   1050 <exit@plt>
jmp    11a5 <rd_dangle+0x75>
mov    -0x14(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x14(%rbp)
jmp    1147 <rd_dangle+0x17>
add    $0x20,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<rd_dangle>:
push   %r14
push   %rbx
push   %rax
mov    %rsi,%r14
mov    %rdi,%rbx
mov    $0x5,%esi
mov    %r14,%rdx
call   1040 <get_array1@plt>
test   %rax,%rax
jne    11fc <rd_dangle+0xcc>
lea    0x14(%rbx),%rdi
mov    $0x5,%esi
mov    %r14,%rdx
call   1040 <get_array1@plt>
test   %rax,%rax
jne    11fc <rd_dangle+0xcc>
lea    0x28(%rbx),%rdi
mov    $0x5,%esi
mov    %r14,%rdx
call   1040 <get_array1@plt>
test   %rax,%rax
jne    11fc <rd_dangle+0xcc>
lea    0x3c(%rbx),%rdi
mov    $0x5,%esi
mov    %r14,%rdx
call   1040 <get_array1@plt>
test   %rax,%rax
jne    11fc <rd_dangle+0xcc>
lea    0x50(%rbx),%rdi
mov    $0x5,%esi
mov    %r14,%rdx
call   1040 <get_array1@plt>
test   %rax,%rax
jne    11fc <rd_dangle+0xcc>
lea    0x64(%rbx),%rdi
mov    $0x5,%esi
mov    %r14,%rdx
call   1040 <get_array1@plt>
test   %rax,%rax
jne    11fc <rd_dangle+0xcc>
lea    0x78(%rbx),%rdi
mov    $0x5,%esi
mov    %r14,%rdx
call   1040 <get_array1@plt>
test   %rax,%rax
jne    11fc <rd_dangle+0xcc>
add    $0x8c,%rbx
mov    %rbx,%rdi
mov    $0x5,%esi
mov    %r14,%rdx
call   1040 <get_array1@plt>
test   %rax,%rax
jne    11fc <rd_dangle+0xcc>
add    $0x8,%rsp
pop    %rbx
pop    %r14
ret
mov    0x2ddd(%rip),%rcx
mov    (%rcx),%edi
lea    0xdf4(%rip),%rsi
mov    %rax,%rdx
call   1030 <fprintf@plt>
mov    $0x1,%edi
call   1050 <exit@plt>

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

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