#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 uint32_t;

/* Variables and functions */
int /*<<< orphan*/ drawLine(int, int, int, int);
void drawBoard() {
  uint32_t x0 = 112;
  uint32_t y0 = 34;
  uint32_t x1 = 910;
  uint32_t y1 = 34;
  while (y0 <= 730) {
    drawLine(x0, y0, x1, y1);
    y0 += 116;
    y1 += 116;
  }
  x0 = 112;
  x1 = 112;
  y0 = 34;
  y1 = 730;
  while (x0 <= 910) {
    drawLine(x0, y0, x1, y1);
    x0 += 133;
    x1 += 133;
  }
}


x86 assembly (clang, -O0):
<drawBoard>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
movl   $0x70,-0x4(%rbp)
movl   $0x22,-0x8(%rbp)
movl   $0x38e,-0xc(%rbp)
movl   $0x22,-0x10(%rbp)
cmpl   $0x2da,-0x8(%rbp)
jg     1169 <drawBoard+0x59>
mov    -0x4(%rbp),%edi
mov    -0x8(%rbp),%esi
mov    -0xc(%rbp),%edx
mov    -0x10(%rbp),%ecx
call   1030 <drawLine@plt>
mov    -0x8(%rbp),%eax
add    $0x74,%eax
mov    %eax,-0x8(%rbp)
mov    -0x10(%rbp),%eax
add    $0x74,%eax
mov    %eax,-0x10(%rbp)
jmp    1134 <drawBoard+0x24>
movl   $0x70,-0x4(%rbp)
movl   $0x70,-0xc(%rbp)
movl   $0x22,-0x8(%rbp)
movl   $0x2da,-0x10(%rbp)
cmpl   $0x38e,-0x4(%rbp)
jg     11be <drawBoard+0xae>
mov    -0x4(%rbp),%edi
mov    -0x8(%rbp),%esi
mov    -0xc(%rbp),%edx
mov    -0x10(%rbp),%ecx
call   1030 <drawLine@plt>
mov    -0x4(%rbp),%eax
add    $0x85,%eax
mov    %eax,-0x4(%rbp)
mov    -0xc(%rbp),%eax
add    $0x85,%eax
mov    %eax,-0xc(%rbp)
jmp    1185 <drawBoard+0x75>
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<drawBoard>:
push   %rax
mov    $0x70,%edi
mov    $0x22,%esi
mov    $0x38e,%edx
mov    $0x22,%ecx
call   1030 <drawLine@plt>
mov    $0x70,%edi
mov    $0x96,%esi
mov    $0x38e,%edx
mov    $0x96,%ecx
call   1030 <drawLine@plt>
mov    $0x70,%edi
mov    $0x10a,%esi
mov    $0x38e,%edx
mov    $0x10a,%ecx
call   1030 <drawLine@plt>
mov    $0x70,%edi
mov    $0x17e,%esi
mov    $0x38e,%edx
mov    $0x17e,%ecx
call   1030 <drawLine@plt>
mov    $0x70,%edi
mov    $0x1f2,%esi
mov    $0x38e,%edx
mov    $0x1f2,%ecx
call   1030 <drawLine@plt>
mov    $0x70,%edi
mov    $0x266,%esi
mov    $0x38e,%edx
mov    $0x266,%ecx
call   1030 <drawLine@plt>
mov    $0x70,%edi
mov    $0x2da,%esi
mov    $0x38e,%edx
mov    $0x2da,%ecx
call   1030 <drawLine@plt>
mov    $0x70,%edi
mov    $0x22,%esi
mov    $0x70,%edx
mov    $0x2da,%ecx
call   1030 <drawLine@plt>
mov    $0xf5,%edi
mov    $0x22,%esi
mov    $0xf5,%edx
mov    $0x2da,%ecx
call   1030 <drawLine@plt>
mov    $0x17a,%edi
mov    $0x22,%esi
mov    $0x17a,%edx
mov    $0x2da,%ecx
call   1030 <drawLine@plt>
mov    $0x1ff,%edi
mov    $0x22,%esi
mov    $0x1ff,%edx
mov    $0x2da,%ecx
call   1030 <drawLine@plt>
mov    $0x284,%edi
mov    $0x22,%esi
mov    $0x284,%edx
mov    $0x2da,%ecx
call   1030 <drawLine@plt>
mov    $0x309,%edi
mov    $0x22,%esi
mov    $0x309,%edx
mov    $0x2da,%ecx
call   1030 <drawLine@plt>
mov    $0x38e,%edi
mov    $0x22,%esi
mov    $0x38e,%edx
mov    $0x2da,%ecx
pop    %rax
jmp    1030 <drawLine@plt>

LLVM IR (-O0):
define void @drawBoard() {
%1 = alloca i32
%2 = alloca i32
%3 = alloca i32
%4 = alloca i32
store i32 112, i32* %1
store i32 34, i32* %2
store i32 910, i32* %3
store i32 34, i32* %4
br label %5
5: ; preds = %8, %0
%6 = load i32, i32* %2
%7 = icmp sle i32 %6, 730
br i1 %7, label %8, label %18
8: ; preds = %5
%9 = load i32, i32* %1
%10 = load i32, i32* %2
%11 = load i32, i32* %3
%12 = load i32, i32* %4
%13 = call i32 @drawLine(i32 %9, i32 %10, i32 %11, i32 %12)
%14 = load i32, i32* %2
%15 = add nsw i32 %14, 116
store i32 %15, i32* %2
%16 = load i32, i32* %4
%17 = add nsw i32 %16, 116
store i32 %17, i32* %4
br label %5
18: ; preds = %5
store i32 112, i32* %1
store i32 112, i32* %3
store i32 34, i32* %2
store i32 730, i32* %4
br label %19
19: ; preds = %22, %18
%20 = load i32, i32* %1
%21 = icmp sle i32 %20, 910
br i1 %21, label %22, label %32
22: ; preds = %19
%23 = load i32, i32* %1
%24 = load i32, i32* %2
%25 = load i32, i32* %3
%26 = load i32, i32* %4
%27 = call i32 @drawLine(i32 %23, i32 %24, i32 %25, i32 %26)
%28 = load i32, i32* %1
%29 = add nsw i32 %28, 133
store i32 %29, i32* %1
%30 = load i32, i32* %3
%31 = add nsw i32 %30, 133
store i32 %31, i32* %3
br label %19
32: ; preds = %19
ret void
}

LLVM IR (-O2):
define void @drawBoard() {
%1 = tail call i32 @drawLine(i32 112, i32 34, i32 910, i32 34)
%2 = tail call i32 @drawLine(i32 112, i32 150, i32 910, i32 150)
%3 = tail call i32 @drawLine(i32 112, i32 266, i32 910, i32 266)
%4 = tail call i32 @drawLine(i32 112, i32 382, i32 910, i32 382)
%5 = tail call i32 @drawLine(i32 112, i32 498, i32 910, i32 498)
%6 = tail call i32 @drawLine(i32 112, i32 614, i32 910, i32 614)
%7 = tail call i32 @drawLine(i32 112, i32 730, i32 910, i32 730)
%8 = tail call i32 @drawLine(i32 112, i32 34, i32 112, i32 730)
%9 = tail call i32 @drawLine(i32 245, i32 34, i32 245, i32 730)
%10 = tail call i32 @drawLine(i32 378, i32 34, i32 378, i32 730)
%11 = tail call i32 @drawLine(i32 511, i32 34, i32 511, i32 730)
%12 = tail call i32 @drawLine(i32 644, i32 34, i32 644, i32 730)
%13 = tail call i32 @drawLine(i32 777, i32 34, i32 777, i32 730)
%14 = tail call i32 @drawLine(i32 910, i32 34, i32 910, i32 730)
ret void
}