#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 */
scalar_t__ get_dot(char const *, int const, int const, int, int const);
int clr_row(const char *Dots, const int Hgt, const int Wid, const int y) {
  int x;
  for (x = y & 1; x < Wid; x += 2) {
    if (get_dot(Dots, Hgt, Wid, x, y)) {
      return 0;
    }
  }
  return 1;
}


x86 assembly (clang, -O0):
<clr_row>:
push   %rbp
mov    %rsp,%rbp
sub    $0x20,%rsp
mov    %rdi,-0x10(%rbp)
mov    %esi,-0x14(%rbp)
mov    %edx,-0x18(%rbp)
mov    %ecx,-0x1c(%rbp)
mov    -0x1c(%rbp),%eax
and    $0x1,%eax
mov    %eax,-0x20(%rbp)
mov    -0x20(%rbp),%eax
cmp    -0x18(%rbp),%eax
jge    1179 <clr_row+0x69>
mov    -0x10(%rbp),%rdi
mov    -0x14(%rbp),%esi
mov    -0x18(%rbp),%edx
mov    -0x20(%rbp),%ecx
mov    -0x1c(%rbp),%r8d
call   1030 <get_dot@plt>
cmp    $0x0,%rax
je     1166 <clr_row+0x56>
movl   $0x0,-0x4(%rbp)
jmp    1180 <clr_row+0x70>
jmp    116b <clr_row+0x5b>
mov    -0x20(%rbp),%eax
add    $0x2,%eax
mov    %eax,-0x20(%rbp)
jmp    112e <clr_row+0x1e>
movl   $0x1,-0x4(%rbp)
mov    -0x4(%rbp),%eax
add    $0x20,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<clr_row>:
push   %rbp
push   %r15
push   %r14
push   %r13
push   %r12
push   %rbx
push   %rax
mov    %ecx,%ebp
and    $0x1,%ebp
mov    $0x1,%r14d
cmp    %edx,%ebp
jge    1163 <clr_row+0x53>
mov    %ecx,%r13d
mov    %edx,%ebx
mov    %esi,%r15d
mov    %rdi,%r12
cs nopw 0x0(%rax,%rax,1)
nop
mov    %r12,%rdi
mov    %r15d,%esi
mov    %ebx,%edx
mov    %ebp,%ecx
mov    %r13d,%r8d
call   1030 <get_dot@plt>
test   %rax,%rax
jne    1160 <clr_row+0x50>
add    $0x2,%ebp
cmp    %ebx,%ebp
jl     1140 <clr_row+0x30>
jmp    1163 <clr_row+0x53>
xor    %r14d,%r14d
mov    %r14d,%eax
add    $0x8,%rsp
pop    %rbx
pop    %r12
pop    %r13
pop    %r14
pop    %r15
pop    %rbp
ret

LLVM IR (-O0):
define i32 @clr_row(i8* %0, i32 %1, i32 %2, i32 %3) {
%5 = alloca i32
%6 = alloca i8*
%7 = alloca i32
%8 = alloca i32
%9 = alloca i32
%10 = alloca i32
store i8* %0, i8** %6
store i32 %1, i32* %7
store i32 %2, i32* %8
store i32 %3, i32* %9
%11 = load i32, i32* %9
%12 = and i32 %11, 1
store i32 %12, i32* %10
br label %13
13: ; preds = %27, %4
%14 = load i32, i32* %10
%15 = load i32, i32* %8
%16 = icmp slt i32 %14, %15
br i1 %16, label %17, label %30
17: ; preds = %13
%18 = load i8*, i8** %6
%19 = load i32, i32* %7
%20 = load i32, i32* %8
%21 = load i32, i32* %10
%22 = load i32, i32* %9
%23 = call i64 @get_dot(i8* %18, i32 %19, i32 %20, i32 %21, i32 %22)
%24 = icmp ne i64 %23, 0
br i1 %24, label %25, label %26
25: ; preds = %17
store i32 0, i32* %5
br label %31
26: ; preds = %17
br label %27
27: ; preds = %26
%28 = load i32, i32* %10
%29 = add nsw i32 %28, 2
store i32 %29, i32* %10
br label %13
30: ; preds = %13
store i32 1, i32* %5
br label %31
31: ; preds = %30, %25
%32 = load i32, i32* %5
ret i32 %32
}

LLVM IR (-O2):
define i32 @clr_row(i8* %0, i32 %1, i32 %2, i32 %3) {
%5 = and i32 %3, 1
%6 = icmp slt i32 %5, %2
br i1 %6, label %9, label %14
7: ; preds = %9
%8 = icmp slt i32 %13, %2
br i1 %8, label %9, label %14
9: ; preds = %4, %7
%10 = phi i32 [ %13, %7 ], [ %5, %4 ]
%11 = tail call i64 @get_dot(i8* %0, i32 %1, i32 %2, i32 %10, i32 %3)
%12 = icmp eq i64 %11, 0
%13 = add nuw nsw i32 %10, 2
br i1 %12, label %7, label %14
14: ; preds = %9, %7, %4
%15 = phi i32 [ 1, %4 ], [ 1, %7 ], [ 0, %9 ]
ret i32 %15
}