#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 */
scalar_t__ EOF;
int /*<<< orphan*/ *fopen(char *, char *);
scalar_t__ fscanf(int /*<<< orphan*/ *, char *, int *, int *, int *, int *,
                  int *, int *, int *, int *);
int /*<<< orphan*/ printf(char *, char *);
int /*<<< orphan*/ puts(char *);
scalar_t__ within(int *, int, int, int);
int main(int argc, char *argv[]) {
  FILE *fp;
  int a[8];
  if (argc != 2) {
    printf("Usage: %s [FILE]\n", argv[0]);
    return 1;
  }
  fp = fopen(*++argv, "r");
  while (fscanf(fp, "%d,%d,%d,%d,%d,%d,%d,%d\n", &a[0], &a[1], &a[2], &a[3],
                &a[4], &a[5], &a[6], &a[7]) != EOF) {
    if (within(a, 0, 4, 5) || within(a, 0, 6, 7) || within(a, 0, 4, 7) ||
        within(a, 0, 6, 5) || within(a, 4, 0, 1) || within(a, 4, 2, 3) ||
        within(a, 4, 0, 3) || within(a, 4, 2, 1))
      puts("True");
    else
      puts("False");
  }
  return 0;
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
push   %rbx
sub    $0x58,%rsp
movl   $0x0,-0xc(%rbp)
mov    %edi,-0x10(%rbp)
mov    %rsi,-0x18(%rbp)
cmpl   $0x2,-0x10(%rbp)
je     1190 <main+0x40>
mov    -0x18(%rbp),%rax
mov    (%rax),%rsi
lea    0xe81(%rip),%rdi
call   1040 <printf@plt>
movl   $0x1,-0xc(%rbp)
jmp    1349 <main+0x1f9>
mov    -0x18(%rbp),%rax
mov    %rax,%rcx
add    $0x8,%rcx
mov    %rcx,-0x18(%rbp)
mov    0x8(%rax),%rdi
lea    0xe68(%rip),%rsi
call   1070 <fopen@plt>
mov    %rax,-0x20(%rbp)
mov    -0x20(%rbp),%rdi
lea    -0x40(%rbp),%rdx
lea    -0x40(%rbp),%rcx
add    $0x4,%rcx
lea    -0x40(%rbp),%r8
add    $0x8,%r8
lea    -0x40(%rbp),%r9
add    $0xc,%r9
lea    -0x40(%rbp),%rbx
add    $0x10,%rbx
lea    -0x40(%rbp),%r11
add    $0x14,%r11
lea    -0x40(%rbp),%r10
add    $0x18,%r10
lea    -0x40(%rbp),%rax
add    $0x1c,%rax
lea    0xe1a(%rip),%rsi
mov    %rbx,(%rsp)
mov    %r11,0x8(%rsp)
mov    %r10,0x10(%rsp)
mov    %rax,0x18(%rsp)
call   1060 <fscanf@plt>
mov    0x2dcf(%rip),%rcx
cmp    (%rcx),%rax
je     1342 <main+0x1f2>
lea    -0x40(%rbp),%rdi
xor    %esi,%esi
mov    $0x4,%edx
mov    $0x5,%ecx
call   1050 <within@plt>
cmp    $0x0,%rax
jne    1320 <main+0x1d0>
lea    -0x40(%rbp),%rdi
xor    %esi,%esi
mov    $0x6,%edx
mov    $0x7,%ecx
call   1050 <within@plt>
cmp    $0x0,%rax
jne    1320 <main+0x1d0>
lea    -0x40(%rbp),%rdi
xor    %esi,%esi
mov    $0x4,%edx
mov    $0x7,%ecx
call   1050 <within@plt>
cmp    $0x0,%rax
jne    1320 <main+0x1d0>
lea    -0x40(%rbp),%rdi
xor    %esi,%esi
mov    $0x6,%edx
mov    $0x5,%ecx
call   1050 <within@plt>
cmp    $0x0,%rax
jne    1320 <main+0x1d0>
lea    -0x40(%rbp),%rdi
mov    $0x4,%esi
xor    %edx,%edx
mov    $0x1,%ecx
call   1050 <within@plt>
cmp    $0x0,%rax
jne    1320 <main+0x1d0>
lea    -0x40(%rbp),%rdi
mov    $0x4,%esi
mov    $0x2,%edx
mov    $0x3,%ecx
call   1050 <within@plt>
cmp    $0x0,%rax
jne    1320 <main+0x1d0>
lea    -0x40(%rbp),%rdi
mov    $0x4,%esi
xor    %edx,%edx
mov    $0x3,%ecx
call   1050 <within@plt>
cmp    $0x0,%rax
jne    1320 <main+0x1d0>
lea    -0x40(%rbp),%rdi
mov    $0x4,%esi
mov    $0x2,%edx
mov    $0x1,%ecx
call   1050 <within@plt>
cmp    $0x0,%rax
je     1331 <main+0x1e1>
lea    0xd06(%rip),%rdi
call   1030 <puts@plt>
jmp    133d <main+0x1ed>
lea    0xcfa(%rip),%rdi
call   1030 <puts@plt>
jmp    11b3 <main+0x63>
movl   $0x0,-0xc(%rbp)
mov    -0xc(%rbp),%eax
add    $0x58,%rsp
pop    %rbx
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %rbp
push   %r15
push   %r14
push   %r13
push   %r12
push   %rbx
sub    $0x28,%rsp
cmp    $0x2,%edi
jne    133e <main+0x1ee>
mov    0x8(%rsi),%rdi
lea    0xea0(%rip),%rsi
call   1070 <fopen@plt>
mov    %rax,%r13
lea    0x4(%rsp),%rcx
lea    0x8(%rsp),%r8
lea    0xc(%rsp),%r9
lea    0x10(%rsp),%r10
lea    0x14(%rsp),%rbp
lea    0x18(%rsp),%rbx
lea    0x1c(%rsp),%rax
lea    0xe70(%rip),%rsi
mov    %rsp,%rdx
mov    %r13,%rdi
push   %rax
push   %rbx
push   %rbp
mov    %r10,%r14
push   %r10
call   1060 <fscanf@plt>
add    $0x20,%rsp
mov    %rax,%rcx
mov    0x2e23(%rip),%r12
xor    %eax,%eax
cmp    (%r12),%rcx
je     1356 <main+0x206>
mov    %rsp,%rbx
lea    0xe52(%rip),%r15
lea    0xe32(%rip),%rbp
jmp    1234 <main+0xe4>
cs nopw 0x0(%rax,%rax,1)
xchg   %ax,%ax
call   1030 <puts@plt>
mov    %r13,%rdi
mov    %rbp,%rsi
mov    %rbx,%rdx
lea    0x4(%rsp),%rcx
lea    0x8(%rsp),%r8
lea    0xc(%rsp),%r9
lea    0x1c(%rsp),%rax
push   %rax
lea    0x20(%rsp),%rax
push   %rax
lea    0x24(%rsp),%rax
push   %rax
push   %r14
call   1060 <fscanf@plt>
add    $0x20,%rsp
cmp    (%r12),%rax
je     1354 <main+0x204>
mov    %rbx,%rdi
xor    %esi,%esi
mov    $0x4,%edx
mov    $0x5,%ecx
call   1050 <within@plt>
mov    %r15,%rdi
test   %rax,%rax
jne    11f0 <main+0xa0>
mov    %rbx,%rdi
xor    %esi,%esi
mov    $0x6,%edx
mov    $0x7,%ecx
call   1050 <within@plt>
mov    %r15,%rdi
test   %rax,%rax
jne    11f0 <main+0xa0>
mov    %rbx,%rdi
xor    %esi,%esi
mov    $0x4,%edx
mov    $0x7,%ecx
call   1050 <within@plt>
mov    %r15,%rdi
test   %rax,%rax
jne    11f0 <main+0xa0>
mov    %rbx,%rdi
xor    %esi,%esi
mov    $0x6,%edx
mov    $0x5,%ecx
call   1050 <within@plt>
mov    %r15,%rdi
test   %rax,%rax
jne    11f0 <main+0xa0>
mov    %rbx,%rdi
mov    $0x4,%esi
xor    %edx,%edx
mov    $0x1,%ecx
call   1050 <within@plt>
mov    %r15,%rdi
test   %rax,%rax
jne    11f0 <main+0xa0>
mov    %rbx,%rdi
mov    $0x4,%esi
mov    $0x2,%edx
mov    $0x3,%ecx
call   1050 <within@plt>
mov    %r15,%rdi
test   %rax,%rax
jne    11f0 <main+0xa0>
mov    %rbx,%rdi
mov    $0x4,%esi
xor    %edx,%edx
mov    $0x3,%ecx
call   1050 <within@plt>
mov    %r15,%rdi
test   %rax,%rax
jne    11f0 <main+0xa0>
mov    %rbx,%rdi
mov    $0x4,%esi
mov    $0x2,%edx
mov    $0x1,%ecx
call   1050 <within@plt>
lea    0xd05(%rip),%rdi
test   %rax,%rax
je     11f0 <main+0xa0>
mov    %r15,%rdi
jmp    11f0 <main+0xa0>
mov    (%rsi),%rsi
lea    0xcb8(%rip),%rdi
call   1040 <printf@plt>
mov    $0x1,%eax
jmp    1356 <main+0x206>
xor    %eax,%eax
add    $0x28,%rsp
pop    %rbx
pop    %r12
pop    %r13
pop    %r14
pop    %r15
pop    %rbp
ret

LLVM IR (-O0):
@.str = [18 x i8] c"Usage: %s [FILE]\0A\00"
@.str.1 = [2 x i8] c"r\00"
@.str.2 = [25 x i8] c"%d,%d,%d,%d,%d,%d,%d,%d\0A\00"
@EOF = global i64 0
@.str.3 = [5 x i8] c"True\00"
@.str.4 = [6 x i8] c"False\00"
define i32 @main(i32 %0, i8** %1) {
%3 = alloca i32
%4 = alloca i32
%5 = alloca i8**
%6 = alloca i32*
%7 = alloca [8 x i32]
store i32 0, i32* %3
store i32 %0, i32* %4
store i8** %1, i8*** %5
%8 = load i32, i32* %4
%9 = icmp ne i32 %8, 2
br i1 %9, label %10, label %15
10: ; preds = %2
%11 = load i8**, i8*** %5
%12 = getelementptr inbounds i8*, i8** %11, i64 0
%13 = load i8*, i8** %12
%14 = call i32 @printf(i8* getelementptr inbounds ([18 x i8], [18 x i8]* @.str, i64 0, i64 0), i8* %13)
store i32 1, i32* %3
br label %71
15: ; preds = %2
%16 = load i8**, i8*** %5
%17 = getelementptr inbounds i8*, i8** %16, i32 1
store i8** %17, i8*** %5
%18 = load i8*, i8** %17
%19 = call i32* @fopen(i8* %18, i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.1, i64 0, i64 0))
store i32* %19, i32** %6
br label %20
20: ; preds = %69, %15
%21 = load i32*, i32** %6
%22 = getelementptr inbounds [8 x i32], [8 x i32]* %7, i64 0, i64 0
%23 = getelementptr inbounds [8 x i32], [8 x i32]* %7, i64 0, i64 1
%24 = getelementptr inbounds [8 x i32], [8 x i32]* %7, i64 0, i64 2
%25 = getelementptr inbounds [8 x i32], [8 x i32]* %7, i64 0, i64 3
%26 = getelementptr inbounds [8 x i32], [8 x i32]* %7, i64 0, i64 4
%27 = getelementptr inbounds [8 x i32], [8 x i32]* %7, i64 0, i64 5
%28 = getelementptr inbounds [8 x i32], [8 x i32]* %7, i64 0, i64 6
%29 = getelementptr inbounds [8 x i32], [8 x i32]* %7, i64 0, i64 7
%30 = call i64 @fscanf(i32* %21, i8* getelementptr inbounds ([25 x i8], [25 x i8]* @.str.2, i64 0, i64 0), i32* %22, i32* %23, i32* %24, i32* %25, i32* %26, i32* %27, i32* %28, i32* %29)
%31 = load i64, i64* @EOF
%32 = icmp ne i64 %30, %31
br i1 %32, label %33, label %70
33: ; preds = %20
%34 = getelementptr inbounds [8 x i32], [8 x i32]* %7, i64 0, i64 0
%35 = call i64 @within(i32* %34, i32 0, i32 4, i32 5)
%36 = icmp ne i64 %35, 0
br i1 %36, label %65, label %37
37: ; preds = %33
%38 = getelementptr inbounds [8 x i32], [8 x i32]* %7, i64 0, i64 0
%39 = call i64 @within(i32* %38, i32 0, i32 6, i32 7)
%40 = icmp ne i64 %39, 0
br i1 %40, label %65, label %41
41: ; preds = %37
%42 = getelementptr inbounds [8 x i32], [8 x i32]* %7, i64 0, i64 0
%43 = call i64 @within(i32* %42, i32 0, i32 4, i32 7)
%44 = icmp ne i64 %43, 0
br i1 %44, label %65, label %45
45: ; preds = %41
%46 = getelementptr inbounds [8 x i32], [8 x i32]* %7, i64 0, i64 0
%47 = call i64 @within(i32* %46, i32 0, i32 6, i32 5)
%48 = icmp ne i64 %47, 0
br i1 %48, label %65, label %49
49: ; preds = %45
%50 = getelementptr inbounds [8 x i32], [8 x i32]* %7, i64 0, i64 0
%51 = call i64 @within(i32* %50, i32 4, i32 0, i32 1)
%52 = icmp ne i64 %51, 0
br i1 %52, label %65, label %53
53: ; preds = %49
%54 = getelementptr inbounds [8 x i32], [8 x i32]* %7, i64 0, i64 0
%55 = call i64 @within(i32* %54, i32 4, i32 2, i32 3)
%56 = icmp ne i64 %55, 0
br i1 %56, label %65, label %57
57: ; preds = %53
%58 = getelementptr inbounds [8 x i32], [8 x i32]* %7, i64 0, i64 0
%59 = call i64 @within(i32* %58, i32 4, i32 0, i32 3)
%60 = icmp ne i64 %59, 0
br i1 %60, label %65, label %61
61: ; preds = %57
%62 = getelementptr inbounds [8 x i32], [8 x i32]* %7, i64 0, i64 0
%63 = call i64 @within(i32* %62, i32 4, i32 2, i32 1)
%64 = icmp ne i64 %63, 0
br i1 %64, label %65, label %67
65: ; preds = %61, %57, %53, %49, %45, %41, %37, %33
%66 = call i32 @puts(i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.3, i64 0, i64 0))
br label %69
67: ; preds = %61
%68 = call i32 @puts(i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.4, i64 0, i64 0))
br label %69
69: ; preds = %67, %65
br label %20
70: ; preds = %20
store i32 0, i32* %3
br label %71
71: ; preds = %70, %10
%72 = load i32, i32* %3
ret i32 %72
}

LLVM IR (-O2):
@.str = [18 x i8] c"Usage: %s [FILE]\0A\00"
@.str.1 = [2 x i8] c"r\00"
@.str.2 = [25 x i8] c"%d,%d,%d,%d,%d,%d,%d,%d\0A\00"
@EOF = global i64 0
@.str.3 = [5 x i8] c"True\00"
@.str.4 = [6 x i8] c"False\00"
define i32 @main(i32 %0, i8** nocapture %1) {
%3 = alloca [8 x i32]
%4 = bitcast [8 x i32]* %3 to i8*
%5 = icmp eq i32 %0, 2
br i1 %5, label %9, label %6
6: ; preds = %2
%7 = load i8*, i8** %1
%8 = tail call i32 @printf(i8* getelementptr inbounds ([18 x i8], [18 x i8]* @.str, i64 0, i64 0), i8* %7)
br label %55
9: ; preds = %2
%10 = getelementptr inbounds i8*, i8** %1, i64 1
%11 = load i8*, i8** %10
%12 = tail call i32* @fopen(i8* %11, i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.1, i64 0, i64 0))
%13 = getelementptr inbounds [8 x i32], [8 x i32]* %3, i64 0, i64 0
%14 = getelementptr inbounds [8 x i32], [8 x i32]* %3, i64 0, i64 1
%15 = getelementptr inbounds [8 x i32], [8 x i32]* %3, i64 0, i64 2
%16 = getelementptr inbounds [8 x i32], [8 x i32]* %3, i64 0, i64 3
%17 = getelementptr inbounds [8 x i32], [8 x i32]* %3, i64 0, i64 4
%18 = getelementptr inbounds [8 x i32], [8 x i32]* %3, i64 0, i64 5
%19 = getelementptr inbounds [8 x i32], [8 x i32]* %3, i64 0, i64 6
%20 = getelementptr inbounds [8 x i32], [8 x i32]* %3, i64 0, i64 7
%21 = call i64 @fscanf(i32* %12, i8* getelementptr inbounds ([25 x i8], [25 x i8]* @.str.2, i64 0, i64 0), i32* %13, i32* %14, i32* %15, i32* %16, i32* %17, i32* %18, i32* %19, i32* %20)
%22 = load i64, i64* @EOF
%23 = icmp eq i64 %21, %22
br i1 %23, label %55, label %24
24: ; preds = %9, %49
%25 = call i64 @within(i32* %13, i32 0, i32 4, i32 5)
%26 = icmp eq i64 %25, 0
br i1 %26, label %27, label %49
27: ; preds = %24
%28 = call i64 @within(i32* %13, i32 0, i32 6, i32 7)
%29 = icmp eq i64 %28, 0
br i1 %29, label %30, label %49
30: ; preds = %27
%31 = call i64 @within(i32* %13, i32 0, i32 4, i32 7)
%32 = icmp eq i64 %31, 0
br i1 %32, label %33, label %49
33: ; preds = %30
%34 = call i64 @within(i32* %13, i32 0, i32 6, i32 5)
%35 = icmp eq i64 %34, 0
br i1 %35, label %36, label %49
36: ; preds = %33
%37 = call i64 @within(i32* %13, i32 4, i32 0, i32 1)
%38 = icmp eq i64 %37, 0
br i1 %38, label %39, label %49
39: ; preds = %36
%40 = call i64 @within(i32* %13, i32 4, i32 2, i32 3)
%41 = icmp eq i64 %40, 0
br i1 %41, label %42, label %49
42: ; preds = %39
%43 = call i64 @within(i32* %13, i32 4, i32 0, i32 3)
%44 = icmp eq i64 %43, 0
br i1 %44, label %45, label %49
45: ; preds = %42
%46 = call i64 @within(i32* %13, i32 4, i32 2, i32 1)
%47 = icmp eq i64 %46, 0
%48 = select i1 %47, i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.4, i64 0, i64 0), i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.3, i64 0, i64 0)
br label %49
49: ; preds = %45, %24, %27, %30, %33, %36, %39, %42
%50 = phi i8* [ getelementptr inbounds ([5 x i8], [5 x i8]* @.str.3, i64 0, i64 0), %42 ], [ getelementptr inbounds ([5 x i8], [5 x i8]* @.str.3, i64 0, i64 0), %39 ], [ getelementptr inbounds ([5 x i8], [5 x i8]* @.str.3, i64 0, i64 0), %36 ], [ getelementptr inbounds ([5 x i8], [5 x i8]* @.str.3, i64 0, i64 0), %33 ], [ getelementptr inbounds ([5 x i8], [5 x i8]* @.str.3, i64 0, i64 0), %30 ], [ getelementptr inbounds ([5 x i8], [5 x i8]* @.str.3, i64 0, i64 0), %27 ], [ getelementptr inbounds ([5 x i8], [5 x i8]* @.str.3, i64 0, i64 0), %24 ], [ %48, %45 ]
%51 = call i32 @puts(i8* dereferenceable(1) %50)
%52 = call i64 @fscanf(i32* %12, i8* getelementptr inbounds ([25 x i8], [25 x i8]* @.str.2, i64 0, i64 0), i32* %13, i32* %14, i32* %15, i32* %16, i32* %17, i32* %18, i32* %19, i32* %20)
%53 = load i64, i64* @EOF
%54 = icmp eq i64 %52, %53
br i1 %54, label %55, label %24
55: ; preds = %49, %9, %6
%56 = phi i32 [ 1, %6 ], [ 0, %9 ], [ 0, %49 ]
ret i32 %56
}