#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*/ *fopen(char *, char *);
int /*<<< orphan*/ fscanf(int /*<<< orphan*/ *, char *, int *, ...);
int /*<<< orphan*/ printf(char *);
int main() {
  FILE *in;
  int cases, i, x1, y1, x2, y2;
  in = fopen("good.in", "r");
  fscanf(in, "%d", &cases);
  for (i = 0; i < cases; i++) {
    fscanf(in, "%d %d %d %d", &x1, &y1, &x2, &y2);
    if ((x1 == x2) || (y1 == y2))
      printf("It's all good\n");
    else
      printf("We need to fix this\n");
  }
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x30,%rsp
movl   $0x0,-0x4(%rbp)
lea    0xeba(%rip),%rdi
lea    0xebb(%rip),%rsi
call   1050 <fopen@plt>
mov    %rax,-0x10(%rbp)
mov    -0x10(%rbp),%rdi
lea    0xeb2(%rip),%rsi
lea    -0x14(%rbp),%rdx
mov    $0x0,%al
call   1040 <fscanf@plt>
movl   $0x0,-0x18(%rbp)
mov    -0x18(%rbp),%eax
cmp    -0x14(%rbp),%eax
jge    11e9 <main+0xb9>
mov    -0x10(%rbp),%rdi
lea    0xe80(%rip),%rsi
lea    -0x1c(%rbp),%rdx
lea    -0x20(%rbp),%rcx
lea    -0x24(%rbp),%r8
lea    -0x28(%rbp),%r9
mov    $0x0,%al
call   1040 <fscanf@plt>
mov    -0x1c(%rbp),%eax
cmp    -0x24(%rbp),%eax
je     11b9 <main+0x89>
mov    -0x20(%rbp),%eax
cmp    -0x28(%rbp),%eax
jne    11ca <main+0x9a>
lea    0xe56(%rip),%rdi
call   1030 <printf@plt>
jmp    11d6 <main+0xa6>
lea    0xe54(%rip),%rdi
call   1030 <printf@plt>
jmp    11db <main+0xab>
mov    -0x18(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x18(%rbp)
jmp    1173 <main+0x43>
mov    -0x4(%rbp),%eax
add    $0x30,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %rbp
push   %r15
push   %r14
push   %r13
push   %r12
push   %rbx
sub    $0x18,%rsp
lea    0xebb(%rip),%rdi
lea    0xebc(%rip),%rsi
call   1050 <fopen@plt>
mov    %rax,%rbx
lea    0xeb8(%rip),%rsi
lea    0x4(%rsp),%rdx
mov    %rax,%rdi
xor    %eax,%eax
call   1040 <fscanf@plt>
cmpl   $0x0,0x4(%rsp)
jle    11e1 <main+0xb1>
lea    0x10(%rsp),%r12
lea    0xc(%rsp),%r13
lea    0x8(%rsp),%rbp
lea    0xea3(%rip),%r14
xor    %r15d,%r15d
jmp    11ac <main+0x7c>
nopl   0x0(%rax)
mov    0x14(%rsp),%eax
cmp    0xc(%rsp),%eax
cmove  %r14,%rdi
call   1030 <puts@plt>
add    $0x1,%r15d
cmp    0x4(%rsp),%r15d
jge    11e1 <main+0xb1>
mov    %rbx,%rdi
lea    0xe54(%rip),%rsi
lea    0x14(%rsp),%rdx
mov    %r12,%rcx
mov    %r13,%r8
mov    %rbp,%r9
xor    %eax,%eax
call   1040 <fscanf@plt>
mov    0x10(%rsp),%eax
mov    %r14,%rdi
cmp    0x8(%rsp),%eax
je     1190 <main+0x60>
lea    0xe37(%rip),%rdi
jmp    1190 <main+0x60>
xor    %eax,%eax
add    $0x18,%rsp
pop    %rbx
pop    %r12
pop    %r13
pop    %r14
pop    %r15
pop    %rbp
ret

LLVM IR (-O0):
@.str = [8 x i8] c"good.in\00"
@.str.1 = [2 x i8] c"r\00"
@.str.2 = [3 x i8] c"%d\00"
@.str.3 = [12 x i8] c"%d %d %d %d\00"
@.str.4 = [15 x i8] c"It's all good\0A\00"
@.str.5 = [21 x i8] c"We need to fix this\0A\00"
define i32 @main() {
%1 = alloca i32
%2 = alloca i32*
%3 = alloca i32
%4 = alloca i32
%5 = alloca i32
%6 = alloca i32
%7 = alloca i32
%8 = alloca i32
store i32 0, i32* %1
%9 = call i32* @fopen(i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str, i64 0, i64 0), i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.1, i64 0, i64 0))
store i32* %9, i32** %2
%10 = load i32*, i32** %2
%11 = call i32 (i32*, i8*, i32*, ...) @fscanf(i32* %10, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.2, i64 0, i64 0), i32* %3)
store i32 0, i32* %4
br label %12
12: ; preds = %31, %0
%13 = load i32, i32* %4
%14 = load i32, i32* %3
%15 = icmp slt i32 %13, %14
br i1 %15, label %16, label %34
16: ; preds = %12
%17 = load i32*, i32** %2
%18 = call i32 (i32*, i8*, i32*, ...) @fscanf(i32* %17, i8* getelementptr inbounds ([12 x i8], [12 x i8]* @.str.3, i64 0, i64 0), i32* %5, i32* %6, i32* %7, i32* %8)
%19 = load i32, i32* %5
%20 = load i32, i32* %7
%21 = icmp eq i32 %19, %20
br i1 %21, label %26, label %22
22: ; preds = %16
%23 = load i32, i32* %6
%24 = load i32, i32* %8
%25 = icmp eq i32 %23, %24
br i1 %25, label %26, label %28
26: ; preds = %22, %16
%27 = call i32 @printf(i8* getelementptr inbounds ([15 x i8], [15 x i8]* @.str.4, i64 0, i64 0))
br label %30
28: ; preds = %22
%29 = call i32 @printf(i8* getelementptr inbounds ([21 x i8], [21 x i8]* @.str.5, i64 0, i64 0))
br label %30
30: ; preds = %28, %26
br label %31
31: ; preds = %30
%32 = load i32, i32* %4
%33 = add nsw i32 %32, 1
store i32 %33, i32* %4
br label %12
34: ; preds = %12
%35 = load i32, i32* %1
ret i32 %35
}

LLVM IR (-O2):
@.str = [8 x i8] c"good.in\00"
@.str.1 = [2 x i8] c"r\00"
@.str.2 = [3 x i8] c"%d\00"
@.str.3 = [12 x i8] c"%d %d %d %d\00"
@str = [20 x i8] c"We need to fix this\00"
@str.6 = [14 x i8] c"It's all good\00"
define i32 @main() {
%1 = alloca i32
%2 = alloca i32
%3 = alloca i32
%4 = alloca i32
%5 = alloca i32
%6 = bitcast i32* %1 to i8*
%7 = bitcast i32* %2 to i8*
%8 = bitcast i32* %3 to i8*
%9 = bitcast i32* %4 to i8*
%10 = bitcast i32* %5 to i8*
%11 = tail call i32* @fopen(i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str, i64 0, i64 0), i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.1, i64 0, i64 0))
%12 = call i32 (i32*, i8*, i32*, ...) @fscanf(i32* %11, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.2, i64 0, i64 0), i32* %1)
%13 = load i32, i32* %1
%14 = icmp sgt i32 %13, 0
br i1 %14, label %15, label %30
15: ; preds = %0, %15
%16 = phi i32 [ %27, %15 ], [ 0, %0 ]
%17 = call i32 (i32*, i8*, i32*, ...) @fscanf(i32* %11, i8* getelementptr inbounds ([12 x i8], [12 x i8]* @.str.3, i64 0, i64 0), i32* %2, i32* %3, i32* %4, i32* %5)
%18 = load i32, i32* %2
%19 = load i32, i32* %4
%20 = icmp eq i32 %18, %19
%21 = load i32, i32* %3
%22 = load i32, i32* %5
%23 = icmp eq i32 %21, %22
%24 = select i1 %20, i1 true, i1 %23
%25 = select i1 %24, i8* getelementptr inbounds ([14 x i8], [14 x i8]* @str.6, i64 0, i64 0), i8* getelementptr inbounds ([20 x i8], [20 x i8]* @str, i64 0, i64 0)
%26 = call i32 @puts(i8* dereferenceable(1) %25)
%27 = add nuw nsw i32 %16, 1
%28 = load i32, i32* %1
%29 = icmp slt i32 %27, %28
br i1 %29, label %15, label %30
30: ; preds = %15, %0
ret i32 0
}