#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*/ dfs(int *, int *, int);
int dfsConnect(int fatV[]) {
  int Mark[((35 + 2) * (35 + 2))];
  int j;
  for (j = 0; j < ((35 + 2) * (35 + 2)); j++)
    Mark[j] = 0;
  for (j = (35 + 3); j < 35 + (35 + 3); j++)
    if ((1 == fatV[j]) && (!Mark[j]))
      dfs(Mark, fatV, j);
  for (j = (35 + 1) * (35 + 1); j < (35 + 1) * (35 + 1) + 35; j++)
    if (Mark[j])
      return 1;
  return 0;
}


x86 assembly (clang, -O0):
<dfsConnect>:
push   %rbp
mov    %rsp,%rbp
sub    $0x1590,%rsp
mov    %rdi,-0x10(%rbp)
movl   $0x0,-0x1584(%rbp)
cmpl   $0x559,-0x1584(%rbp)
jge    115f <dfsConnect+0x4f>
movslq -0x1584(%rbp),%rax
movl   $0x0,-0x1580(%rbp,%rax,4)
mov    -0x1584(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x1584(%rbp)
jmp    1129 <dfsConnect+0x19>
movl   $0x26,-0x1584(%rbp)
cmpl   $0x49,-0x1584(%rbp)
jge    11d3 <dfsConnect+0xc3>
mov    -0x10(%rbp),%rcx
movslq -0x1584(%rbp),%rdx
mov    $0x1,%eax
cmp    (%rcx,%rdx,4),%eax
jne    11ba <dfsConnect+0xaa>
movslq -0x1584(%rbp),%rax
cmpl   $0x0,-0x1580(%rbp,%rax,4)
jne    11ba <dfsConnect+0xaa>
lea    -0x1580(%rbp),%rdi
mov    -0x10(%rbp),%rsi
mov    -0x1584(%rbp),%edx
call   1030 <dfs@plt>
jmp    11bf <dfsConnect+0xaf>
mov    -0x1584(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x1584(%rbp)
jmp    1169 <dfsConnect+0x59>
movl   $0x510,-0x1584(%rbp)
cmpl   $0x533,-0x1584(%rbp)
jge    1227 <dfsConnect+0x117>
movslq -0x1584(%rbp),%rax
cmpl   $0x0,-0x1580(%rbp,%rax,4)
je     120e <dfsConnect+0xfe>
movl   $0x1,-0x4(%rbp)
jmp    122e <dfsConnect+0x11e>
jmp    1213 <dfsConnect+0x103>
mov    -0x1584(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x1584(%rbp)
jmp    11dd <dfsConnect+0xcd>
movl   $0x0,-0x4(%rbp)
mov    -0x4(%rbp),%eax
add    $0x1590,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<dfsConnect>:
push   %r15
push   %r14
push   %rbx
sub    $0x1570,%rsp
mov    %rdi,%r15
mov    %rsp,%r14
mov    $0x1564,%edx
mov    %r14,%rdi
xor    %esi,%esi
call   1030 <memset@plt>
mov    $0x26,%ebx
jmp    115a <dfsConnect+0x3a>
nopl   0x0(%rax,%rax,1)
add    $0x1,%rbx
cmp    $0x49,%rbx
je     1176 <dfsConnect+0x56>
cmpl   $0x1,(%r15,%rbx,4)
jne    1150 <dfsConnect+0x30>
cmpl   $0x0,(%rsp,%rbx,4)
jne    1150 <dfsConnect+0x30>
mov    %r14,%rdi
mov    %r15,%rsi
mov    %ebx,%edx
call   1040 <dfs@plt>
jmp    1150 <dfsConnect+0x30>
pxor   %xmm0,%xmm0
movdqa 0x1470(%rsp),%xmm2
pcmpeqd %xmm0,%xmm2
pcmpeqd %xmm1,%xmm1
pxor   %xmm1,%xmm2
movdqa 0x1460(%rsp),%xmm3
pcmpeqd %xmm0,%xmm3
pxor   %xmm1,%xmm3
packssdw %xmm2,%xmm3
movdqa 0x1450(%rsp),%xmm2
pcmpeqd %xmm0,%xmm2
pxor   %xmm1,%xmm2
movdqa 0x1440(%rsp),%xmm4
pcmpeqd %xmm0,%xmm4
pxor   %xmm1,%xmm4
packssdw %xmm2,%xmm4
packsswb %xmm3,%xmm4
pmovmskb %xmm4,%eax
movdqa 0x14b0(%rsp),%xmm2
pcmpeqd %xmm0,%xmm2
pxor   %xmm1,%xmm2
movdqa 0x14a0(%rsp),%xmm3
pcmpeqd %xmm0,%xmm3
pxor   %xmm1,%xmm3
packssdw %xmm2,%xmm3
movdqa 0x1490(%rsp),%xmm2
pcmpeqd %xmm0,%xmm2
pxor   %xmm1,%xmm2
pcmpeqd 0x1480(%rsp),%xmm0
pxor   %xmm1,%xmm0
packssdw %xmm2,%xmm0
packsswb %xmm3,%xmm0
pmovmskb %xmm0,%ecx
shl    $0x10,%ecx
or     %eax,%ecx
or     0x14c0(%rsp),%ecx
or     0x14c4(%rsp),%ecx
xor    %eax,%eax
or     0x14c8(%rsp),%ecx
setne  %al
add    $0x1570,%rsp
pop    %rbx
pop    %r14
pop    %r15
ret

LLVM IR (-O0):
define i32 @dfsConnect(i32* %0) {
%2 = alloca i32
%3 = alloca i32*
%4 = alloca [1369 x i32]
%5 = alloca i32
store i32* %0, i32** %3
store i32 0, i32* %5
br label %6
6: ; preds = %13, %1
%7 = load i32, i32* %5
%8 = icmp slt i32 %7, 1369
br i1 %8, label %9, label %16
9: ; preds = %6
%10 = load i32, i32* %5
%11 = sext i32 %10 to i64
%12 = getelementptr inbounds [1369 x i32], [1369 x i32]* %4, i64 0, i64 %11
store i32 0, i32* %12
br label %13
13: ; preds = %9
%14 = load i32, i32* %5
%15 = add nsw i32 %14, 1
store i32 %15, i32* %5
br label %6
16: ; preds = %6
store i32 38, i32* %5
br label %17
17: ; preds = %39, %16
%18 = load i32, i32* %5
%19 = icmp slt i32 %18, 73
br i1 %19, label %20, label %42
20: ; preds = %17
%21 = load i32*, i32** %3
%22 = load i32, i32* %5
%23 = sext i32 %22 to i64
%24 = getelementptr inbounds i32, i32* %21, i64 %23
%25 = load i32, i32* %24
%26 = icmp eq i32 1, %25
br i1 %26, label %27, label %38
27: ; preds = %20
%28 = load i32, i32* %5
%29 = sext i32 %28 to i64
%30 = getelementptr inbounds [1369 x i32], [1369 x i32]* %4, i64 0, i64 %29
%31 = load i32, i32* %30
%32 = icmp ne i32 %31, 0
br i1 %32, label %38, label %33
33: ; preds = %27
%34 = getelementptr inbounds [1369 x i32], [1369 x i32]* %4, i64 0, i64 0
%35 = load i32*, i32** %3
%36 = load i32, i32* %5
%37 = call i32 @dfs(i32* %34, i32* %35, i32 %36)
br label %38
38: ; preds = %33, %27, %20
br label %39
39: ; preds = %38
%40 = load i32, i32* %5
%41 = add nsw i32 %40, 1
store i32 %41, i32* %5
br label %17
42: ; preds = %17
store i32 1296, i32* %5
br label %43
43: ; preds = %54, %42
%44 = load i32, i32* %5
%45 = icmp slt i32 %44, 1331
br i1 %45, label %46, label %57
46: ; preds = %43
%47 = load i32, i32* %5
%48 = sext i32 %47 to i64
%49 = getelementptr inbounds [1369 x i32], [1369 x i32]* %4, i64 0, i64 %48
%50 = load i32, i32* %49
%51 = icmp ne i32 %50, 0
br i1 %51, label %52, label %53
52: ; preds = %46
store i32 1, i32* %2
br label %58
53: ; preds = %46
br label %54
54: ; preds = %53
%55 = load i32, i32* %5
%56 = add nsw i32 %55, 1
store i32 %56, i32* %5
br label %43
57: ; preds = %43
store i32 0, i32* %2
br label %58
58: ; preds = %57, %52
%59 = load i32, i32* %2
ret i32 %59
}

LLVM IR (-O2):
define i32 @dfsConnect(i32* %0) {
%2 = alloca [1369 x i32]
%3 = bitcast [1369 x i32]* %2 to i8*
%4 = getelementptr inbounds [1369 x i32], [1369 x i32]* %2, i64 0, i64 0
br label %5
5: ; preds = %1, %17
%6 = phi i64 [ 38, %1 ], [ %18, %17 ]
%7 = getelementptr inbounds i32, i32* %0, i64 %6
%8 = load i32, i32* %7
%9 = icmp eq i32 %8, 1
br i1 %9, label %10, label %17
10: ; preds = %5
%11 = getelementptr inbounds [1369 x i32], [1369 x i32]* %2, i64 0, i64 %6
%12 = load i32, i32* %11
%13 = icmp eq i32 %12, 0
br i1 %13, label %14, label %17
14: ; preds = %10
%15 = trunc i64 %6 to i32
%16 = call i32 @dfs(i32* %4, i32* %0, i32 %15)
br label %17
17: ; preds = %5, %10, %14
%18 = add nuw nsw i64 %6, 1
%19 = icmp eq i64 %18, 73
br i1 %19, label %20, label %5
20: ; preds = %17
%21 = getelementptr inbounds [1369 x i32], [1369 x i32]* %2, i64 0, i64 1296
%22 = bitcast i32* %21 to <32 x i32>*
%23 = load <32 x i32>, <32 x i32>* %22
%24 = freeze <32 x i32> %23
%25 = icmp ne <32 x i32> %24, zeroinitializer
%26 = bitcast <32 x i1> %25 to i32
%27 = icmp ne i32 %26, 0
%28 = getelementptr inbounds [1369 x i32], [1369 x i32]* %2, i64 0, i64 1328
%29 = load i32, i32* %28
%30 = icmp ne i32 %29, 0
%31 = select i1 %27, i1 true, i1 %30
%32 = getelementptr inbounds [1369 x i32], [1369 x i32]* %2, i64 0, i64 1329
%33 = load i32, i32* %32
%34 = icmp ne i32 %33, 0
%35 = select i1 %31, i1 true, i1 %34
%36 = getelementptr inbounds [1369 x i32], [1369 x i32]* %2, i64 0, i64 1330
%37 = load i32, i32* %36
%38 = icmp ne i32 %37, 0
%39 = select i1 %35, i1 true, i1 %38
%40 = zext i1 %39 to i32
ret i32 %40
}