#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 */
struct stLine {
  int dummy;
};

/* Variables and functions */
scalar_t__ colorAtBit(struct stLine *, int);
int isLineEquals(struct stLine *thisLine, struct stLine *thatLine) {
  int i;
  for (i = 0; i < (8); i++)
    if (colorAtBit(thisLine, i) != colorAtBit(thatLine, i))
      return 0;
  return 1;
}


x86 assembly (clang, -O0):
<isLineEquals>:
push   %rbp
mov    %rsp,%rbp
sub    $0x30,%rsp
mov    %rdi,-0x10(%rbp)
mov    %rsi,-0x18(%rbp)
movl   $0x0,-0x1c(%rbp)
cmpl   $0x8,-0x1c(%rbp)
jge    117c <isLineEquals+0x6c>
mov    -0x10(%rbp),%rdi
mov    -0x1c(%rbp),%esi
call   1030 <colorAtBit@plt>
mov    %rax,-0x28(%rbp)
mov    -0x18(%rbp),%rdi
mov    -0x1c(%rbp),%esi
call   1030 <colorAtBit@plt>
mov    %rax,%rcx
mov    -0x28(%rbp),%rax
cmp    %rcx,%rax
je     1169 <isLineEquals+0x59>
movl   $0x0,-0x4(%rbp)
jmp    1183 <isLineEquals+0x73>
jmp    116e <isLineEquals+0x5e>
mov    -0x1c(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x1c(%rbp)
jmp    1127 <isLineEquals+0x17>
movl   $0x1,-0x4(%rbp)
mov    -0x4(%rbp),%eax
add    $0x30,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<isLineEquals>:
push   %rbp
push   %r15
push   %r14
push   %rbx
push   %rax
mov    %rsi,%r15
mov    %rdi,%rbp
xor    %r14d,%r14d
xor    %esi,%esi
call   1030 <colorAtBit@plt>
mov    %rax,%rbx
mov    %r15,%rdi
xor    %esi,%esi
call   1030 <colorAtBit@plt>
cmp    %rax,%rbx
jne    123c <isLineEquals+0x12c>
mov    %rbp,%rdi
mov    $0x1,%esi
call   1030 <colorAtBit@plt>
mov    %rax,%rbx
mov    %r15,%rdi
mov    $0x1,%esi
call   1030 <colorAtBit@plt>
cmp    %rax,%rbx
jne    123c <isLineEquals+0x12c>
mov    %rbp,%rdi
mov    $0x2,%esi
call   1030 <colorAtBit@plt>
mov    %rax,%rbx
mov    %r15,%rdi
mov    $0x2,%esi
call   1030 <colorAtBit@plt>
cmp    %rax,%rbx
jne    123c <isLineEquals+0x12c>
mov    %rbp,%rdi
mov    $0x3,%esi
call   1030 <colorAtBit@plt>
mov    %rax,%rbx
mov    %r15,%rdi
mov    $0x3,%esi
call   1030 <colorAtBit@plt>
cmp    %rax,%rbx
jne    123c <isLineEquals+0x12c>
mov    %rbp,%rdi
mov    $0x4,%esi
call   1030 <colorAtBit@plt>
mov    %rax,%rbx
mov    %r15,%rdi
mov    $0x4,%esi
call   1030 <colorAtBit@plt>
cmp    %rax,%rbx
jne    123c <isLineEquals+0x12c>
mov    %rbp,%rdi
mov    $0x5,%esi
call   1030 <colorAtBit@plt>
mov    %rax,%rbx
mov    %r15,%rdi
mov    $0x5,%esi
call   1030 <colorAtBit@plt>
cmp    %rax,%rbx
jne    123c <isLineEquals+0x12c>
mov    %rbp,%rdi
mov    $0x6,%esi
call   1030 <colorAtBit@plt>
mov    %rax,%rbx
mov    %r15,%rdi
mov    $0x6,%esi
call   1030 <colorAtBit@plt>
cmp    %rax,%rbx
jne    123c <isLineEquals+0x12c>
mov    %rbp,%rdi
mov    $0x7,%esi
call   1030 <colorAtBit@plt>
mov    %rax,%rbx
mov    %r15,%rdi
mov    $0x7,%esi
call   1030 <colorAtBit@plt>
xor    %r14d,%r14d
cmp    %rax,%rbx
sete   %r14b
mov    %r14d,%eax
add    $0x8,%rsp
pop    %rbx
pop    %r14
pop    %r15
pop    %rbp
ret

LLVM IR (-O0):
%struct.stLine = type { i32 }
define i32 @isLineEquals(%struct.stLine* %0, %struct.stLine* %1) {
%3 = alloca i32
%4 = alloca %struct.stLine*
%5 = alloca %struct.stLine*
%6 = alloca i32
store %struct.stLine* %0, %struct.stLine** %4
store %struct.stLine* %1, %struct.stLine** %5
store i32 0, i32* %6
br label %7
7: ; preds = %20, %2
%8 = load i32, i32* %6
%9 = icmp slt i32 %8, 8
br i1 %9, label %10, label %23
10: ; preds = %7
%11 = load %struct.stLine*, %struct.stLine** %4
%12 = load i32, i32* %6
%13 = call i64 @colorAtBit(%struct.stLine* %11, i32 %12)
%14 = load %struct.stLine*, %struct.stLine** %5
%15 = load i32, i32* %6
%16 = call i64 @colorAtBit(%struct.stLine* %14, i32 %15)
%17 = icmp ne i64 %13, %16
br i1 %17, label %18, label %19
18: ; preds = %10
store i32 0, i32* %3
br label %24
19: ; preds = %10
br label %20
20: ; preds = %19
%21 = load i32, i32* %6
%22 = add nsw i32 %21, 1
store i32 %22, i32* %6
br label %7
23: ; preds = %7
store i32 1, i32* %3
br label %24
24: ; preds = %23, %18
%25 = load i32, i32* %3
ret i32 %25
}

LLVM IR (-O2):
%struct.stLine = type { i32 }
define i32 @isLineEquals(%struct.stLine* %0, %struct.stLine* %1) {
%3 = tail call i64 @colorAtBit(%struct.stLine* %0, i32 0)
%4 = tail call i64 @colorAtBit(%struct.stLine* %1, i32 0)
%5 = icmp eq i64 %3, %4
br i1 %5, label %6, label %35
6: ; preds = %2
%7 = tail call i64 @colorAtBit(%struct.stLine* %0, i32 1)
%8 = tail call i64 @colorAtBit(%struct.stLine* %1, i32 1)
%9 = icmp eq i64 %7, %8
br i1 %9, label %10, label %35
10: ; preds = %6
%11 = tail call i64 @colorAtBit(%struct.stLine* %0, i32 2)
%12 = tail call i64 @colorAtBit(%struct.stLine* %1, i32 2)
%13 = icmp eq i64 %11, %12
br i1 %13, label %14, label %35
14: ; preds = %10
%15 = tail call i64 @colorAtBit(%struct.stLine* %0, i32 3)
%16 = tail call i64 @colorAtBit(%struct.stLine* %1, i32 3)
%17 = icmp eq i64 %15, %16
br i1 %17, label %18, label %35
18: ; preds = %14
%19 = tail call i64 @colorAtBit(%struct.stLine* %0, i32 4)
%20 = tail call i64 @colorAtBit(%struct.stLine* %1, i32 4)
%21 = icmp eq i64 %19, %20
br i1 %21, label %22, label %35
22: ; preds = %18
%23 = tail call i64 @colorAtBit(%struct.stLine* %0, i32 5)
%24 = tail call i64 @colorAtBit(%struct.stLine* %1, i32 5)
%25 = icmp eq i64 %23, %24
br i1 %25, label %26, label %35
26: ; preds = %22
%27 = tail call i64 @colorAtBit(%struct.stLine* %0, i32 6)
%28 = tail call i64 @colorAtBit(%struct.stLine* %1, i32 6)
%29 = icmp eq i64 %27, %28
br i1 %29, label %30, label %35
30: ; preds = %26
%31 = tail call i64 @colorAtBit(%struct.stLine* %0, i32 7)
%32 = tail call i64 @colorAtBit(%struct.stLine* %1, i32 7)
%33 = icmp eq i64 %31, %32
%34 = zext i1 %33 to i32
br label %35
35: ; preds = %30, %26, %22, %18, %14, %10, %6, %2
%36 = phi i32 [ 0, %2 ], [ 0, %6 ], [ 0, %10 ], [ 0, %14 ], [ 0, %18 ], [ 0, %22 ], [ 0, %26 ], [ %34, %30 ]
ret i32 %36
}