#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 */
int /*<<< orphan*/ draw_rectangle(unsigned char *, int, int, int, int, int, int,
                                  unsigned char);
void rulers(unsigned char *sl, int w, int h, unsigned char *a) {
  int i;
  unsigned char black, white, tr;
  black = 0;
  white = 255;
  tr = 200;
  for (i = 0; i < (w * h); i++)
    sl[i] = black;
  for (i = 0; i < (w * h); i++)
    a[i] = 0;
  for (i = w / 2; i < w; i = i + 2) {
    draw_rectangle(sl, w, h, i, h / 2, 1, 1, white);
    draw_rectangle(sl, w, h, w - i, h / 2 - 1, 1, 1, white);
    draw_rectangle(a, w, h, i, h / 2, 1, 1, tr);
    draw_rectangle(a, w, h, w - i, h / 2 - 1, 1, 1, tr);
  }
  for (i = w / 2 + 10; i < w; i = i + 10) {
    draw_rectangle(sl, w, h, i, h / 2, 1, 3, white);
    draw_rectangle(sl, w, h, w - i, h / 2 - 3, 1, 3, white);
    draw_rectangle(a, w, h, i, h / 2, 1, 3, tr);
    draw_rectangle(a, w, h, w - i, h / 2 - 3, 1, 3, tr);
  }
  for (i = w / 2 + 50; i < w; i = i + 50) {
    draw_rectangle(sl, w, h, i, h / 2, 1, 5, white);
    draw_rectangle(sl, w, h, w - i, h / 2 - 5, 1, 5, white);
    draw_rectangle(a, w, h, i, h / 2, 1, 5, tr);
    draw_rectangle(a, w, h, w - i, h / 2 - 5, 1, 5, tr);
  }
  for (i = w / 2 + 100; i < w; i = i + 100) {
    draw_rectangle(sl, w, h, i, h / 2, 1, 10, white);
    draw_rectangle(sl, w, h, w - i, h / 2 - 10, 1, 10, white);
    draw_rectangle(a, w, h, i, h / 2, 1, 10, tr);
    draw_rectangle(a, w, h, w - i, h / 2 - 10, 1, 10, tr);
  }
  for (i = h / 2; i < h; i = i + 2) {
    draw_rectangle(sl, w, h, w / 2 - 1, i, 1, 1, white);
    draw_rectangle(sl, w, h, w / 2, h - i, 1, 1, white);
    draw_rectangle(a, w, h, w / 2 - 1, i, 1, 1, tr);
    draw_rectangle(a, w, h, w / 2, h - i, 1, 1, tr);
  }
  for (i = h / 2 + 10; i < h; i = i + 10) {
    draw_rectangle(sl, w, h, w / 2 - 3, i, 3, 1, white);
    draw_rectangle(sl, w, h, w / 2, h - i, 3, 1, white);
    draw_rectangle(a, w, h, w / 2 - 3, i, 3, 1, tr);
    draw_rectangle(a, w, h, w / 2, h - i, 3, 1, tr);
  }
  for (i = h / 2 + 50; i < h; i = i + 50) {
    draw_rectangle(sl, w, h, w / 2 - 5, i, 5, 1, white);
    draw_rectangle(sl, w, h, w / 2, h - i, 5, 1, white);
    draw_rectangle(a, w, h, w / 2 - 5, i, 5, 1, tr);
    draw_rectangle(a, w, h, w / 2, h - i, 5, 1, tr);
  }
  for (i = h / 2 + 100; i < h; i = i + 100) {
    draw_rectangle(sl, w, h, w / 2 - 10, i, 10, 1, white);
    draw_rectangle(sl, w, h, w / 2, h - i, 10, 1, white);
    draw_rectangle(a, w, h, w / 2 - 10, i, 10, 1, tr);
    draw_rectangle(a, w, h, w / 2, h - i, 10, 1, tr);
  }
}


x86 assembly (clang, -O0):
<rulers>:
push   %rbp
mov    %rsp,%rbp
sub    $0xb0,%rsp
mov    %rdi,-0x8(%rbp)
mov    %esi,-0xc(%rbp)
mov    %edx,-0x10(%rbp)
mov    %rcx,-0x18(%rbp)
movb   $0x0,-0x1d(%rbp)
movb   $0xff,-0x1e(%rbp)
movb   $0xc8,-0x1f(%rbp)
movl   $0x0,-0x1c(%rbp)
mov    -0x1c(%rbp),%eax
mov    -0xc(%rbp),%ecx
imul   -0x10(%rbp),%ecx
cmp    %ecx,%eax
jge    116a <rulers+0x5a>
mov    -0x1d(%rbp),%dl
mov    -0x8(%rbp),%rax
movslq -0x1c(%rbp),%rcx
mov    %dl,(%rax,%rcx,1)
mov    -0x1c(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x1c(%rbp)
jmp    113c <rulers+0x2c>
movl   $0x0,-0x1c(%rbp)
mov    -0x1c(%rbp),%eax
mov    -0xc(%rbp),%ecx
imul   -0x10(%rbp),%ecx
cmp    %ecx,%eax
jge    119d <rulers+0x8d>
mov    -0x18(%rbp),%rax
movslq -0x1c(%rbp),%rcx
movb   $0x0,(%rax,%rcx,1)
mov    -0x1c(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x1c(%rbp)
jmp    1171 <rulers+0x61>
mov    -0xc(%rbp),%eax
mov    $0x2,%ecx
cltd
idiv   %ecx
mov    %eax,-0x1c(%rbp)
mov    -0x1c(%rbp),%eax
cmp    -0xc(%rbp),%eax
jge    12c7 <rulers+0x1b7>
mov    -0x8(%rbp),%rdi
mov    -0xc(%rbp),%esi
mov    -0x10(%rbp),%eax
mov    %eax,-0x30(%rbp)
mov    -0x1c(%rbp),%ecx
mov    -0x10(%rbp),%eax
mov    $0x2,%r8d
cltd
idiv   %r8d
mov    -0x30(%rbp),%edx
mov    %eax,%r8d
mov    $0x1,%r9d
movl   $0x1,(%rsp)
movzbl -0x1e(%rbp),%eax
mov    %eax,0x8(%rsp)
call   1030 <draw_rectangle@plt>
mov    -0x8(%rbp),%rdi
mov    -0xc(%rbp),%esi
mov    -0x10(%rbp),%eax
mov    %eax,-0x2c(%rbp)
mov    -0xc(%rbp),%ecx
sub    -0x1c(%rbp),%ecx
mov    -0x10(%rbp),%eax
mov    $0x2,%r8d
cltd
idiv   %r8d
mov    -0x2c(%rbp),%edx
mov    %eax,%r8d
sub    $0x1,%r8d
mov    $0x1,%r9d
movl   $0x1,(%rsp)
movzbl -0x1e(%rbp),%eax
mov    %eax,0x8(%rsp)
call   1030 <draw_rectangle@plt>
mov    -0x18(%rbp),%rdi
mov    -0xc(%rbp),%esi
mov    -0x10(%rbp),%eax
mov    %eax,-0x28(%rbp)
mov    -0x1c(%rbp),%ecx
mov    -0x10(%rbp),%eax
mov    $0x2,%r8d
cltd
idiv   %r8d
mov    -0x28(%rbp),%edx
mov    %eax,%r8d
mov    $0x1,%r9d
movl   $0x1,(%rsp)
movzbl -0x1f(%rbp),%eax
mov    %eax,0x8(%rsp)
call   1030 <draw_rectangle@plt>
mov    -0x18(%rbp),%rdi
mov    -0xc(%rbp),%esi
mov    -0x10(%rbp),%eax
mov    %eax,-0x24(%rbp)
mov    -0xc(%rbp),%ecx
sub    -0x1c(%rbp),%ecx
mov    -0x10(%rbp),%eax
mov    $0x2,%r8d
cltd
idiv   %r8d
mov    -0x24(%rbp),%edx
mov    %eax,%r8d
sub    $0x1,%r8d
mov    $0x1,%r9d
movl   $0x1,(%rsp)
movzbl -0x1f(%rbp),%eax
mov    %eax,0x8(%rsp)
call   1030 <draw_rectangle@plt>
mov    -0x1c(%rbp),%eax
add    $0x2,%eax
mov    %eax,-0x1c(%rbp)
jmp    11ab <rulers+0x9b>
mov    -0xc(%rbp),%eax
mov    $0x2,%ecx
cltd
idiv   %ecx
add    $0xa,%eax
mov    %eax,-0x1c(%rbp)
mov    -0x1c(%rbp),%eax
cmp    -0xc(%rbp),%eax
jge    13f4 <rulers+0x2e4>
mov    -0x8(%rbp),%rdi
mov    -0xc(%rbp),%esi
mov    -0x10(%rbp),%eax
mov    %eax,-0x40(%rbp)
mov    -0x1c(%rbp),%ecx
mov    -0x10(%rbp),%eax
mov    $0x2,%r8d
cltd
idiv   %r8d
mov    -0x40(%rbp),%edx
mov    %eax,%r8d
mov    $0x1,%r9d
movl   $0x3,(%rsp)
movzbl -0x1e(%rbp),%eax
mov    %eax,0x8(%rsp)
call   1030 <draw_rectangle@plt>
mov    -0x8(%rbp),%rdi
mov    -0xc(%rbp),%esi
mov    -0x10(%rbp),%eax
mov    %eax,-0x3c(%rbp)
mov    -0xc(%rbp),%ecx
sub    -0x1c(%rbp),%ecx
mov    -0x10(%rbp),%eax
mov    $0x2,%r8d
cltd
idiv   %r8d
mov    -0x3c(%rbp),%edx
mov    %eax,%r8d
sub    $0x3,%r8d
mov    $0x1,%r9d
movl   $0x3,(%rsp)
movzbl -0x1e(%rbp),%eax
mov    %eax,0x8(%rsp)
call   1030 <draw_rectangle@plt>
mov    -0x18(%rbp),%rdi
mov    -0xc(%rbp),%esi
mov    -0x10(%rbp),%eax
mov    %eax,-0x38(%rbp)
mov    -0x1c(%rbp),%ecx
mov    -0x10(%rbp),%eax
mov    $0x2,%r8d
cltd
idiv   %r8d
mov    -0x38(%rbp),%edx
mov    %eax,%r8d
mov    $0x1,%r9d
movl   $0x3,(%rsp)
movzbl -0x1f(%rbp),%eax
mov    %eax,0x8(%rsp)
call   1030 <draw_rectangle@plt>
mov    -0x18(%rbp),%rdi
mov    -0xc(%rbp),%esi
mov    -0x10(%rbp),%eax
mov    %eax,-0x34(%rbp)
mov    -0xc(%rbp),%ecx
sub    -0x1c(%rbp),%ecx
mov    -0x10(%rbp),%eax
mov    $0x2,%r8d
cltd
idiv   %r8d
mov    -0x34(%rbp),%edx
mov    %eax,%r8d
sub    $0x3,%r8d
mov    $0x1,%r9d
movl   $0x3,(%rsp)
movzbl -0x1f(%rbp),%eax
mov    %eax,0x8(%rsp)
call   1030 <draw_rectangle@plt>
mov    -0x1c(%rbp),%eax
add    $0xa,%eax
mov    %eax,-0x1c(%rbp)
jmp    12d8 <rulers+0x1c8>
mov    -0xc(%rbp),%eax
mov    $0x2,%ecx
cltd
idiv   %ecx
add    $0x32,%eax
mov    %eax,-0x1c(%rbp)
mov    -0x1c(%rbp),%eax
cmp    -0xc(%rbp),%eax
jge    1521 <rulers+0x411>
mov    -0x8(%rbp),%rdi
mov    -0xc(%rbp),%esi
mov    -0x10(%rbp),%eax
mov    %eax,-0x50(%rbp)
mov    -0x1c(%rbp),%ecx
mov    -0x10(%rbp),%eax
mov    $0x2,%r8d
cltd
idiv   %r8d
mov    -0x50(%rbp),%edx
mov    %eax,%r8d
mov    $0x1,%r9d
movl   $0x5,(%rsp)
movzbl -0x1e(%rbp),%eax
mov    %eax,0x8(%rsp)
call   1030 <draw_rectangle@plt>
mov    -0x8(%rbp),%rdi
mov    -0xc(%rbp),%esi
mov    -0x10(%rbp),%eax
mov    %eax,-0x4c(%rbp)
mov    -0xc(%rbp),%ecx
sub    -0x1c(%rbp),%ecx
mov    -0x10(%rbp),%eax
mov    $0x2,%r8d
cltd
idiv   %r8d
mov    -0x4c(%rbp),%edx
mov    %eax,%r8d
sub    $0x5,%r8d
mov    $0x1,%r9d
movl   $0x5,(%rsp)
movzbl -0x1e(%rbp),%eax
mov    %eax,0x8(%rsp)
call   1030 <draw_rectangle@plt>
mov    -0x18(%rbp),%rdi
mov    -0xc(%rbp),%esi
mov    -0x10(%rbp),%eax
mov    %eax,-0x48(%rbp)
mov    -0x1c(%rbp),%ecx
mov    -0x10(%rbp),%eax
mov    $0x2,%r8d
cltd
idiv   %r8d
mov    -0x48(%rbp),%edx
mov    %eax,%r8d
mov    $0x1,%r9d
movl   $0x5,(%rsp)
movzbl -0x1f(%rbp),%eax
mov    %eax,0x8(%rsp)
call   1030 <draw_rectangle@plt>
mov    -0x18(%rbp),%rdi
mov    -0xc(%rbp),%esi
mov    -0x10(%rbp),%eax
mov    %eax,-0x44(%rbp)
mov    -0xc(%rbp),%ecx
sub    -0x1c(%rbp),%ecx
mov    -0x10(%rbp),%eax
mov    $0x2,%r8d
cltd
idiv   %r8d
mov    -0x44(%rbp),%edx
mov    %eax,%r8d
sub    $0x5,%r8d
mov    $0x1,%r9d
movl   $0x5,(%rsp)
movzbl -0x1f(%rbp),%eax
mov    %eax,0x8(%rsp)
call   1030 <draw_rectangle@plt>
mov    -0x1c(%rbp),%eax
add    $0x32,%eax
mov    %eax,-0x1c(%rbp)
jmp    1405 <rulers+0x2f5>
mov    -0xc(%rbp),%eax
mov    $0x2,%ecx
cltd
idiv   %ecx
add    $0x64,%eax
mov    %eax,-0x1c(%rbp)
mov    -0x1c(%rbp),%eax
cmp    -0xc(%rbp),%eax
jge    164e <rulers+0x53e>
mov    -0x8(%rbp),%rdi
mov    -0xc(%rbp),%esi
mov    -0x10(%rbp),%eax
mov    %eax,-0x60(%rbp)
mov    -0x1c(%rbp),%ecx
mov    -0x10(%rbp),%eax
mov    $0x2,%r8d
cltd
idiv   %r8d
mov    -0x60(%rbp),%edx
mov    %eax,%r8d
mov    $0x1,%r9d
movl   $0xa,(%rsp)
movzbl -0x1e(%rbp),%eax
mov    %eax,0x8(%rsp)
call   1030 <draw_rectangle@plt>
mov    -0x8(%rbp),%rdi
mov    -0xc(%rbp),%esi
mov    -0x10(%rbp),%eax
mov    %eax,-0x5c(%rbp)
mov    -0xc(%rbp),%ecx
sub    -0x1c(%rbp),%ecx
mov    -0x10(%rbp),%eax
mov    $0x2,%r8d
cltd
idiv   %r8d
mov    -0x5c(%rbp),%edx
mov    %eax,%r8d
sub    $0xa,%r8d
mov    $0x1,%r9d
movl   $0xa,(%rsp)
movzbl -0x1e(%rbp),%eax
mov    %eax,0x8(%rsp)
call   1030 <draw_rectangle@plt>
mov    -0x18(%rbp),%rdi
mov    -0xc(%rbp),%esi
mov    -0x10(%rbp),%eax
mov    %eax,-0x58(%rbp)
mov    -0x1c(%rbp),%ecx
mov    -0x10(%rbp),%eax
mov    $0x2,%r8d
cltd
idiv   %r8d
mov    -0x58(%rbp),%edx
mov    %eax,%r8d
mov    $0x1,%r9d
movl   $0xa,(%rsp)
movzbl -0x1f(%rbp),%eax
mov    %eax,0x8(%rsp)
call   1030 <draw_rectangle@plt>
mov    -0x18(%rbp),%rdi
mov    -0xc(%rbp),%esi
mov    -0x10(%rbp),%eax
mov    %eax,-0x54(%rbp)
mov    -0xc(%rbp),%ecx
sub    -0x1c(%rbp),%ecx
mov    -0x10(%rbp),%eax
mov    $0x2,%r8d
cltd
idiv   %r8d
mov    -0x54(%rbp),%edx
mov    %eax,%r8d
sub    $0xa,%r8d
mov    $0x1,%r9d
movl   $0xa,(%rsp)
movzbl -0x1f(%rbp),%eax
mov    %eax,0x8(%rsp)
call   1030 <draw_rectangle@plt>
mov    -0x1c(%rbp),%eax
add    $0x64,%eax
mov    %eax,-0x1c(%rbp)
jmp    1532 <rulers+0x422>
mov    -0x10(%rbp),%eax
mov    $0x2,%ecx
cltd
idiv   %ecx
mov    %eax,-0x1c(%rbp)
mov    -0x1c(%rbp),%eax
cmp    -0x10(%rbp),%eax
jge    1770 <rulers+0x660>
mov    -0x8(%rbp),%rdi
mov    -0xc(%rbp),%esi
mov    -0x10(%rbp),%eax
mov    %eax,-0x70(%rbp)
mov    -0xc(%rbp),%eax
mov    $0x2,%ecx
cltd
idiv   %ecx
mov    -0x70(%rbp),%edx
mov    %eax,%ecx
sub    $0x1,%ecx
mov    -0x1c(%rbp),%r8d
mov    $0x1,%r9d
movl   $0x1,(%rsp)
movzbl -0x1e(%rbp),%eax
mov    %eax,0x8(%rsp)
call   1030 <draw_rectangle@plt>
mov    -0x8(%rbp),%rdi
mov    -0xc(%rbp),%esi
mov    -0x10(%rbp),%eax
mov    %eax,-0x6c(%rbp)
mov    -0xc(%rbp),%eax
mov    $0x2,%ecx
cltd
idiv   %ecx
mov    -0x6c(%rbp),%edx
mov    %eax,%ecx
mov    -0x10(%rbp),%r8d
sub    -0x1c(%rbp),%r8d
mov    $0x1,%r9d
movl   $0x1,(%rsp)
movzbl -0x1e(%rbp),%eax
mov    %eax,0x8(%rsp)
call   1030 <draw_rectangle@plt>
mov    -0x18(%rbp),%rdi
mov    -0xc(%rbp),%esi
mov    -0x10(%rbp),%eax
mov    %eax,-0x68(%rbp)
mov    -0xc(%rbp),%eax
mov    $0x2,%ecx
cltd
idiv   %ecx
mov    -0x68(%rbp),%edx
mov    %eax,%ecx
sub    $0x1,%ecx
mov    -0x1c(%rbp),%r8d
mov    $0x1,%r9d
movl   $0x1,(%rsp)
movzbl -0x1f(%rbp),%eax
mov    %eax,0x8(%rsp)
call   1030 <draw_rectangle@plt>
mov    -0x18(%rbp),%rdi
mov    -0xc(%rbp),%esi
mov    -0x10(%rbp),%eax
mov    %eax,-0x64(%rbp)
mov    -0xc(%rbp),%eax
mov    $0x2,%ecx
cltd
idiv   %ecx
mov    -0x64(%rbp),%edx
mov    %eax,%ecx
mov    -0x10(%rbp),%r8d
sub    -0x1c(%rbp),%r8d
mov    $0x1,%r9d
movl   $0x1,(%rsp)
movzbl -0x1f(%rbp),%eax
mov    %eax,0x8(%rsp)
call   1030 <draw_rectangle@plt>
mov    -0x1c(%rbp),%eax
add    $0x2,%eax
mov    %eax,-0x1c(%rbp)
jmp    165c <rulers+0x54c>
mov    -0x10(%rbp),%eax
mov    $0x2,%ecx
cltd
idiv   %ecx
add    $0xa,%eax
mov    %eax,-0x1c(%rbp)
mov    -0x1c(%rbp),%eax
cmp    -0x10(%rbp),%eax
jge    1895 <rulers+0x785>
mov    -0x8(%rbp),%rdi
mov    -0xc(%rbp),%esi
mov    -0x10(%rbp),%eax
mov    %eax,-0x80(%rbp)
mov    -0xc(%rbp),%eax
mov    $0x2,%ecx
cltd
idiv   %ecx
mov    -0x80(%rbp),%edx
mov    %eax,%ecx
sub    $0x3,%ecx
mov    -0x1c(%rbp),%r8d
mov    $0x3,%r9d
movl   $0x1,(%rsp)
movzbl -0x1e(%rbp),%eax
mov    %eax,0x8(%rsp)
call   1030 <draw_rectangle@plt>
mov    -0x8(%rbp),%rdi
mov    -0xc(%rbp),%esi
mov    -0x10(%rbp),%eax
mov    %eax,-0x7c(%rbp)
mov    -0xc(%rbp),%eax
mov    $0x2,%ecx
cltd
idiv   %ecx
mov    -0x7c(%rbp),%edx
mov    %eax,%ecx
mov    -0x10(%rbp),%r8d
sub    -0x1c(%rbp),%r8d
mov    $0x3,%r9d
movl   $0x1,(%rsp)
movzbl -0x1e(%rbp),%eax
mov    %eax,0x8(%rsp)
call   1030 <draw_rectangle@plt>
mov    -0x18(%rbp),%rdi
mov    -0xc(%rbp),%esi
mov    -0x10(%rbp),%eax
mov    %eax,-0x78(%rbp)
mov    -0xc(%rbp),%eax
mov    $0x2,%ecx
cltd
idiv   %ecx
mov    -0x78(%rbp),%edx
mov    %eax,%ecx
sub    $0x3,%ecx
mov    -0x1c(%rbp),%r8d
mov    $0x3,%r9d
movl   $0x1,(%rsp)
movzbl -0x1f(%rbp),%eax
mov    %eax,0x8(%rsp)
call   1030 <draw_rectangle@plt>
mov    -0x18(%rbp),%rdi
mov    -0xc(%rbp),%esi
mov    -0x10(%rbp),%eax
mov    %eax,-0x74(%rbp)
mov    -0xc(%rbp),%eax
mov    $0x2,%ecx
cltd
idiv   %ecx
mov    -0x74(%rbp),%edx
mov    %eax,%ecx
mov    -0x10(%rbp),%r8d
sub    -0x1c(%rbp),%r8d
mov    $0x3,%r9d
movl   $0x1,(%rsp)
movzbl -0x1f(%rbp),%eax
mov    %eax,0x8(%rsp)
call   1030 <draw_rectangle@plt>
mov    -0x1c(%rbp),%eax
add    $0xa,%eax
mov    %eax,-0x1c(%rbp)
jmp    1781 <rulers+0x671>
mov    -0x10(%rbp),%eax
mov    $0x2,%ecx
cltd
idiv   %ecx
add    $0x32,%eax
mov    %eax,-0x1c(%rbp)
mov    -0x1c(%rbp),%eax
cmp    -0x10(%rbp),%eax
jge    19d2 <rulers+0x8c2>
mov    -0x8(%rbp),%rdi
mov    -0xc(%rbp),%esi
mov    -0x10(%rbp),%eax
mov    %eax,-0x90(%rbp)
mov    -0xc(%rbp),%eax
mov    $0x2,%ecx
cltd
idiv   %ecx
mov    -0x90(%rbp),%edx
mov    %eax,%ecx
sub    $0x5,%ecx
mov    -0x1c(%rbp),%r8d
mov    $0x5,%r9d
movl   $0x1,(%rsp)
movzbl -0x1e(%rbp),%eax
mov    %eax,0x8(%rsp)
call   1030 <draw_rectangle@plt>
mov    -0x8(%rbp),%rdi
mov    -0xc(%rbp),%esi
mov    -0x10(%rbp),%eax
mov    %eax,-0x8c(%rbp)
mov    -0xc(%rbp),%eax
mov    $0x2,%ecx
cltd
idiv   %ecx
mov    -0x8c(%rbp),%edx
mov    %eax,%ecx
mov    -0x10(%rbp),%r8d
sub    -0x1c(%rbp),%r8d
mov    $0x5,%r9d
movl   $0x1,(%rsp)
movzbl -0x1e(%rbp),%eax
mov    %eax,0x8(%rsp)
call   1030 <draw_rectangle@plt>
mov    -0x18(%rbp),%rdi
mov    -0xc(%rbp),%esi
mov    -0x10(%rbp),%eax
mov    %eax,-0x88(%rbp)
mov    -0xc(%rbp),%eax
mov    $0x2,%ecx
cltd
idiv   %ecx
mov    -0x88(%rbp),%edx
mov    %eax,%ecx
sub    $0x5,%ecx
mov    -0x1c(%rbp),%r8d
mov    $0x5,%r9d
movl   $0x1,(%rsp)
movzbl -0x1f(%rbp),%eax
mov    %eax,0x8(%rsp)
call   1030 <draw_rectangle@plt>
mov    -0x18(%rbp),%rdi
mov    -0xc(%rbp),%esi
mov    -0x10(%rbp),%eax
mov    %eax,-0x84(%rbp)
mov    -0xc(%rbp),%eax
mov    $0x2,%ecx
cltd
idiv   %ecx
mov    -0x84(%rbp),%edx
mov    %eax,%ecx
mov    -0x10(%rbp),%r8d
sub    -0x1c(%rbp),%r8d
mov    $0x5,%r9d
movl   $0x1,(%rsp)
movzbl -0x1f(%rbp),%eax
mov    %eax,0x8(%rsp)
call   1030 <draw_rectangle@plt>
mov    -0x1c(%rbp),%eax
add    $0x32,%eax
mov    %eax,-0x1c(%rbp)
jmp    18a6 <rulers+0x796>
mov    -0x10(%rbp),%eax
mov    $0x2,%ecx
cltd
idiv   %ecx
add    $0x64,%eax
mov    %eax,-0x1c(%rbp)
mov    -0x1c(%rbp),%eax
cmp    -0x10(%rbp),%eax
jge    1b0f <rulers+0x9ff>
mov    -0x8(%rbp),%rdi
mov    -0xc(%rbp),%esi
mov    -0x10(%rbp),%eax
mov    %eax,-0xa0(%rbp)
mov    -0xc(%rbp),%eax
mov    $0x2,%ecx
cltd
idiv   %ecx
mov    -0xa0(%rbp),%edx
mov    %eax,%ecx
sub    $0xa,%ecx
mov    -0x1c(%rbp),%r8d
mov    $0xa,%r9d
movl   $0x1,(%rsp)
movzbl -0x1e(%rbp),%eax
mov    %eax,0x8(%rsp)
call   1030 <draw_rectangle@plt>
mov    -0x8(%rbp),%rdi
mov    -0xc(%rbp),%esi
mov    -0x10(%rbp),%eax
mov    %eax,-0x9c(%rbp)
mov    -0xc(%rbp),%eax
mov    $0x2,%ecx
cltd
idiv   %ecx
mov    -0x9c(%rbp),%edx
mov    %eax,%ecx
mov    -0x10(%rbp),%r8d
sub    -0x1c(%rbp),%r8d
mov    $0xa,%r9d
movl   $0x1,(%rsp)
movzbl -0x1e(%rbp),%eax
mov    %eax,0x8(%rsp)
call   1030 <draw_rectangle@plt>
mov    -0x18(%rbp),%rdi
mov    -0xc(%rbp),%esi
mov    -0x10(%rbp),%eax
mov    %eax,-0x98(%rbp)
mov    -0xc(%rbp),%eax
mov    $0x2,%ecx
cltd
idiv   %ecx
mov    -0x98(%rbp),%edx
mov    %eax,%ecx
sub    $0xa,%ecx
mov    -0x1c(%rbp),%r8d
mov    $0xa,%r9d
movl   $0x1,(%rsp)
movzbl -0x1f(%rbp),%eax
mov    %eax,0x8(%rsp)
call   1030 <draw_rectangle@plt>
mov    -0x18(%rbp),%rdi
mov    -0xc(%rbp),%esi
mov    -0x10(%rbp),%eax
mov    %eax,-0x94(%rbp)
mov    -0xc(%rbp),%eax
mov    $0x2,%ecx
cltd
idiv   %ecx
mov    -0x94(%rbp),%edx
mov    %eax,%ecx
mov    -0x10(%rbp),%r8d
sub    -0x1c(%rbp),%r8d
mov    $0xa,%r9d
movl   $0x1,(%rsp)
movzbl -0x1f(%rbp),%eax
mov    %eax,0x8(%rsp)
call   1030 <draw_rectangle@plt>
mov    -0x1c(%rbp),%eax
add    $0x64,%eax
mov    %eax,-0x1c(%rbp)
jmp    19e3 <rulers+0x8d3>
add    $0xb0,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<rulers>:
push   %rbp
push   %r15
push   %r14
push   %r13
push   %r12
push   %rbx
sub    $0x38,%rsp
mov    %rcx,%r12
mov    %rdi,%rbp
mov    %edx,0x10(%rsp)
mov    %edx,%eax
mov    %esi,0x14(%rsp)
imul   %esi,%eax
test   %eax,%eax
jle    1161 <rulers+0x41>
mov    %eax,%ebx
mov    %rbp,%rdi
xor    %esi,%esi
mov    %rbx,%rdx
call   1040 <memset@plt>
mov    %r12,%rdi
xor    %esi,%esi
mov    %rbx,%rdx
call   1040 <memset@plt>
mov    0x14(%rsp),%ecx
mov    %ecx,%eax
shr    $0x1f,%eax
add    %ecx,%eax
sar    %eax
mov    %rax,0x18(%rsp)
cmp    %ecx,%eax
mov    %r12,0x30(%rsp)
mov    %rbp,0x28(%rsp)
jge    126d <rulers+0x14d>
mov    %rbp,%r12
mov    0x10(%rsp),%ecx
mov    %ecx,%eax
shr    $0x1f,%eax
add    %ecx,%eax
sar    %eax
mov    %rax,0x20(%rsp)
add    $0xffffffff,%eax
mov    %eax,0xc(%rsp)
mov    0x14(%rsp),%ebp
mov    0x18(%rsp),%rax
sub    %eax,%ebp
mov    %eax,%ebx
mov    0x14(%rsp),%r14d
mov    0x10(%rsp),%r15d
mov    0x20(%rsp),%r13
nopl   (%rax)
mov    %r12,%rdi
mov    %r14d,%esi
mov    %r15d,%edx
mov    %ebx,%ecx
mov    %r13d,%r8d
mov    $0x1,%r9d
push   $0xff
push   $0x1
call   1030 <draw_rectangle@plt>
add    $0x10,%rsp
mov    %r12,%rdi
mov    %r14d,%esi
mov    %r15d,%edx
mov    %ebp,%ecx
mov    0xc(%rsp),%r8d
mov    $0x1,%r9d
push   $0xff
push   $0x1
call   1030 <draw_rectangle@plt>
add    $0x10,%rsp
mov    0x30(%rsp),%r12
mov    %r12,%rdi
mov    %r14d,%esi
mov    %r15d,%edx
mov    %ebx,%ecx
mov    %r13d,%r8d
mov    $0x1,%r9d
push   $0xc8
push   $0x1
call   1030 <draw_rectangle@plt>
add    $0x10,%rsp
mov    %r12,%rdi
mov    0x28(%rsp),%r12
mov    %r14d,%esi
mov    %r15d,%edx
mov    %ebp,%ecx
mov    0xc(%rsp),%r8d
mov    $0x1,%r9d
push   $0xc8
push   $0x1
call   1030 <draw_rectangle@plt>
add    $0x10,%rsp
add    $0x2,%ebx
add    $0xfffffffe,%ebp
cmp    %r14d,%ebx
jl     11c0 <rulers+0xa0>
mov    0x18(%rsp),%rax
lea    0xa(%rax),%ebx
cmp    0x14(%rsp),%ebx
jge    1366 <rulers+0x246>
mov    0x10(%rsp),%ecx
mov    %ecx,%eax
shr    $0x1f,%eax
add    %ecx,%eax
sar    %eax
mov    %rax,0x20(%rsp)
add    $0xfffffffd,%eax
mov    %eax,0xc(%rsp)
mov    0x14(%rsp),%r13d
sub    0x18(%rsp),%r13d
add    $0xfffffff6,%r13d
mov    0x14(%rsp),%r15d
mov    0x10(%rsp),%ebp
mov    0x20(%rsp),%r12
mov    0x30(%rsp),%r14
nopl   0x0(%rax)
mov    0x28(%rsp),%rdi
mov    %r15d,%esi
mov    %ebp,%edx
mov    %ebx,%ecx
mov    %r12d,%r8d
mov    $0x1,%r9d
push   $0xff
push   $0x3
call   1030 <draw_rectangle@plt>
add    $0x10,%rsp
mov    0x28(%rsp),%rdi
mov    %r15d,%esi
mov    %ebp,%edx
mov    %r13d,%ecx
mov    0xc(%rsp),%r8d
mov    $0x1,%r9d
push   $0xff
push   $0x3
call   1030 <draw_rectangle@plt>
add    $0x10,%rsp
mov    %r14,%rdi
mov    %r15d,%esi
mov    %ebp,%edx
mov    %ebx,%ecx
mov    %r12d,%r8d
mov    $0x1,%r9d
push   $0xc8
push   $0x3
call   1030 <draw_rectangle@plt>
add    $0x10,%rsp
mov    %r14,%rdi
mov    %r15d,%esi
mov    %ebp,%edx
mov    %r13d,%ecx
mov    0xc(%rsp),%r8d
mov    $0x1,%r9d
push   $0xc8
push   $0x3
call   1030 <draw_rectangle@plt>
add    $0x10,%rsp
add    $0xa,%ebx
add    $0xfffffff6,%r13d
cmp    %r15d,%ebx
jl     12c0 <rulers+0x1a0>
mov    0x18(%rsp),%rax
lea    0x32(%rax),%ebx
cmp    0x14(%rsp),%ebx
jge    1460 <rulers+0x340>
mov    0x10(%rsp),%ecx
mov    %ecx,%eax
shr    $0x1f,%eax
add    %ecx,%eax
sar    %eax
mov    %rax,0x20(%rsp)
add    $0xfffffffb,%eax
mov    %eax,0xc(%rsp)
mov    0x14(%rsp),%r12d
sub    0x18(%rsp),%r12d
add    $0xffffffce,%r12d
mov    0x14(%rsp),%r15d
mov    0x10(%rsp),%r14d
mov    0x20(%rsp),%r13
xchg   %ax,%ax
mov    0x28(%rsp),%rbp
mov    %rbp,%rdi
mov    %r15d,%esi
mov    %r14d,%edx
mov    %ebx,%ecx
mov    %r13d,%r8d
mov    $0x1,%r9d
push   $0xff
push   $0x5
call   1030 <draw_rectangle@plt>
add    $0x10,%rsp
mov    %rbp,%rdi
mov    %r15d,%esi
mov    %r14d,%edx
mov    %r12d,%ecx
mov    0xc(%rsp),%r8d
mov    $0x1,%r9d
push   $0xff
push   $0x5
call   1030 <draw_rectangle@plt>
add    $0x10,%rsp
mov    0x30(%rsp),%rbp
mov    %rbp,%rdi
mov    %r15d,%esi
mov    %r14d,%edx
mov    %ebx,%ecx
mov    %r13d,%r8d
mov    $0x1,%r9d
push   $0xc8
push   $0x5
call   1030 <draw_rectangle@plt>
add    $0x10,%rsp
mov    %rbp,%rdi
mov    %r15d,%esi
mov    %r14d,%edx
mov    %r12d,%ecx
mov    0xc(%rsp),%r8d
mov    $0x1,%r9d
push   $0xc8
push   $0x5
call   1030 <draw_rectangle@plt>
add    $0x10,%rsp
add    $0x32,%ebx
add    $0xffffffce,%r12d
cmp    %r15d,%ebx
jl     13b0 <rulers+0x290>
mov    0x18(%rsp),%rax
lea    0x64(%rax),%ebx
mov    0x10(%rsp),%ecx
mov    %ecx,%eax
shr    $0x1f,%eax
add    %ecx,%eax
sar    %eax
mov    %rax,0x20(%rsp)
cmp    0x14(%rsp),%ebx
mov    0x30(%rsp),%r13
jge    155d <rulers+0x43d>
mov    0x20(%rsp),%rax
add    $0xfffffff6,%eax
mov    %eax,0xc(%rsp)
mov    0x14(%rsp),%ebp
sub    0x18(%rsp),%ebp
add    $0xffffff9c,%ebp
mov    0x14(%rsp),%r14d
mov    0x10(%rsp),%r15d
mov    0x20(%rsp),%r12
nop
mov    0x28(%rsp),%r13
mov    %r13,%rdi
mov    %r14d,%esi
mov    %r15d,%edx
mov    %ebx,%ecx
mov    %r12d,%r8d
mov    $0x1,%r9d
push   $0xff
push   $0xa
call   1030 <draw_rectangle@plt>
add    $0x10,%rsp
mov    %r13,%rdi
mov    0x30(%rsp),%r13
mov    %r14d,%esi
mov    %r15d,%edx
mov    %ebp,%ecx
mov    0xc(%rsp),%r8d
mov    $0x1,%r9d
push   $0xff
push   $0xa
call   1030 <draw_rectangle@plt>
add    $0x10,%rsp
mov    %r13,%rdi
mov    %r14d,%esi
mov    %r15d,%edx
mov    %ebx,%ecx
mov    %r12d,%r8d
mov    $0x1,%r9d
push   $0xc8
push   $0xa
call   1030 <draw_rectangle@plt>
add    $0x10,%rsp
mov    %r13,%rdi
mov    %r14d,%esi
mov    %r15d,%edx
mov    %ebp,%ecx
mov    0xc(%rsp),%r8d
mov    $0x1,%r9d
push   $0xc8
push   $0xa
call   1030 <draw_rectangle@plt>
add    $0x10,%rsp
add    $0x64,%ebx
add    $0xffffff9c,%ebp
cmp    %r14d,%ebx
jl     14b0 <rulers+0x390>
mov    0x10(%rsp),%eax
cmp    %eax,0x20(%rsp)
jge    1645 <rulers+0x525>
mov    0x18(%rsp),%rax
add    $0xffffffff,%eax
mov    %eax,0xc(%rsp)
mov    0x10(%rsp),%ebp
mov    0x20(%rsp),%rax
sub    %eax,%ebp
mov    %eax,%ebx
mov    0x14(%rsp),%r15d
mov    0x10(%rsp),%r14d
xchg   %ax,%ax
mov    %r13,%r12
mov    0x28(%rsp),%r13
mov    %r13,%rdi
mov    %r15d,%esi
mov    %r14d,%edx
mov    0xc(%rsp),%ecx
mov    %ebx,%r8d
mov    $0x1,%r9d
push   $0xff
push   $0x1
call   1030 <draw_rectangle@plt>
add    $0x10,%rsp
mov    %r13,%rdi
mov    %r12,%r13
mov    0x18(%rsp),%r12
mov    %r15d,%esi
mov    %r14d,%edx
mov    %r12d,%ecx
mov    %ebp,%r8d
mov    $0x1,%r9d
push   $0xff
push   $0x1
call   1030 <draw_rectangle@plt>
add    $0x10,%rsp
mov    %r13,%rdi
mov    %r15d,%esi
mov    %r14d,%edx
mov    0xc(%rsp),%ecx
mov    %ebx,%r8d
mov    $0x1,%r9d
push   $0xc8
push   $0x1
call   1030 <draw_rectangle@plt>
add    $0x10,%rsp
mov    %r13,%rdi
mov    %r15d,%esi
mov    %r14d,%edx
mov    %r12d,%ecx
mov    %ebp,%r8d
mov    $0x1,%r9d
push   $0xc8
push   $0x1
call   1030 <draw_rectangle@plt>
add    $0x10,%rsp
add    $0x2,%ebx
add    $0xfffffffe,%ebp
cmp    %r14d,%ebx
jl     1590 <rulers+0x470>
mov    0x20(%rsp),%rax
lea    0xa(%rax),%ebx
cmp    0x10(%rsp),%ebx
jge    1731 <rulers+0x611>
mov    0x18(%rsp),%rax
add    $0xfffffffd,%eax
mov    %eax,0xc(%rsp)
mov    0x10(%rsp),%ebp
sub    0x20(%rsp),%ebp
add    $0xfffffff6,%ebp
mov    0x14(%rsp),%r15d
mov    0x10(%rsp),%r14d
mov    0xc(%rsp),%r12d
nopl   (%rax)
mov    0x28(%rsp),%r13
mov    %r13,%rdi
mov    %r15d,%esi
mov    %r14d,%edx
mov    %r12d,%ecx
mov    %ebx,%r8d
mov    $0x3,%r9d
push   $0xff
push   $0x1
call   1030 <draw_rectangle@plt>
add    $0x10,%rsp
mov    %r13,%rdi
mov    %r15d,%esi
mov    %r14d,%edx
mov    0x18(%rsp),%rcx
mov    %ebp,%r8d
mov    $0x3,%r9d
push   $0xff
push   $0x1
call   1030 <draw_rectangle@plt>
add    $0x10,%rsp
mov    0x30(%rsp),%r13
mov    %r13,%rdi
mov    %r15d,%esi
mov    %r14d,%edx
mov    %r12d,%ecx
mov    %ebx,%r8d
mov    $0x3,%r9d
push   $0xc8
push   $0x1
call   1030 <draw_rectangle@plt>
add    $0x10,%rsp
mov    %r13,%rdi
mov    %r15d,%esi
mov    %r14d,%edx
mov    0x18(%rsp),%rcx
mov    %ebp,%r8d
mov    $0x3,%r9d
push   $0xc8
push   $0x1
call   1030 <draw_rectangle@plt>
add    $0x10,%rsp
add    $0xa,%ebx
add    $0xfffffff6,%ebp
cmp    %r14d,%ebx
jl     1680 <rulers+0x560>
mov    0x20(%rsp),%rax
lea    0x32(%rax),%ebx
cmp    0x10(%rsp),%ebx
jge    181f <rulers+0x6ff>
mov    0x18(%rsp),%rax
add    $0xfffffffb,%eax
mov    %eax,0xc(%rsp)
mov    0x10(%rsp),%ebp
sub    0x20(%rsp),%ebp
add    $0xffffffce,%ebp
mov    0x14(%rsp),%r15d
mov    0x10(%rsp),%r14d
mov    0x18(%rsp),%r12
nopl   0x0(%rax)
mov    0x28(%rsp),%r13
mov    %r13,%rdi
mov    %r15d,%esi
mov    %r14d,%edx
mov    0xc(%rsp),%ecx
mov    %ebx,%r8d
mov    $0x5,%r9d
push   $0xff
push   $0x1
call   1030 <draw_rectangle@plt>
add    $0x10,%rsp
mov    %r13,%rdi
mov    %r15d,%esi
mov    %r14d,%edx
mov    %r12d,%ecx
mov    %ebp,%r8d
mov    $0x5,%r9d
push   $0xff
push   $0x1
call   1030 <draw_rectangle@plt>
add    $0x10,%rsp
mov    0x30(%rsp),%r13
mov    %r13,%rdi
mov    %r15d,%esi
mov    %r14d,%edx
mov    0xc(%rsp),%ecx
mov    %ebx,%r8d
mov    $0x5,%r9d
push   $0xc8
push   $0x1
call   1030 <draw_rectangle@plt>
add    $0x10,%rsp
mov    %r13,%rdi
mov    %r15d,%esi
mov    %r14d,%edx
mov    %r12d,%ecx
mov    %ebp,%r8d
mov    $0x5,%r9d
push   $0xc8
push   $0x1
call   1030 <draw_rectangle@plt>
add    $0x10,%rsp
add    $0x32,%ebx
add    $0xffffffce,%ebp
cmp    %r14d,%ebx
jl     1770 <rulers+0x650>
mov    0x20(%rsp),%rax
lea    0x64(%rax),%ebx
cmp    0x10(%rsp),%ebx
jge    190f <rulers+0x7ef>
mov    0x18(%rsp),%rcx
add    $0xfffffff6,%ecx
mov    %ecx,0xc(%rsp)
mov    0x10(%rsp),%ebp
sub    %eax,%ebp
add    $0xffffff9c,%ebp
mov    0x14(%rsp),%r15d
mov    0x10(%rsp),%r14d
mov    0x18(%rsp),%r12
cs nopw 0x0(%rax,%rax,1)
nop
mov    0x28(%rsp),%r13
mov    %r13,%rdi
mov    %r15d,%esi
mov    %r14d,%edx
mov    0xc(%rsp),%ecx
mov    %ebx,%r8d
mov    $0xa,%r9d
push   $0xff
push   $0x1
call   1030 <draw_rectangle@plt>
add    $0x10,%rsp
mov    %r13,%rdi
mov    %r15d,%esi
mov    %r14d,%edx
mov    %r12d,%ecx
mov    %ebp,%r8d
mov    $0xa,%r9d
push   $0xff
push   $0x1
call   1030 <draw_rectangle@plt>
add    $0x10,%rsp
mov    0x30(%rsp),%r13
mov    %r13,%rdi
mov    %r15d,%esi
mov    %r14d,%edx
mov    0xc(%rsp),%ecx
mov    %ebx,%r8d
mov    $0xa,%r9d
push   $0xc8
push   $0x1
call   1030 <draw_rectangle@plt>
add    $0x10,%rsp
mov    %r13,%rdi
mov    %r15d,%esi
mov    %r14d,%edx
mov    %r12d,%ecx
mov    %ebp,%r8d
mov    $0xa,%r9d
push   $0xc8
push   $0x1
call   1030 <draw_rectangle@plt>
add    $0x10,%rsp
add    $0x64,%ebx
add    $0xffffff9c,%ebp
cmp    %r14d,%ebx
jl     1860 <rulers+0x740>
add    $0x38,%rsp
pop    %rbx
pop    %r12
pop    %r13
pop    %r14
pop    %r15
pop    %rbp
ret

LLVM IR (-O0):
define void @rulers(i8* %0, i32 %1, i32 %2, i8* %3) {
%5 = alloca i8*
%6 = alloca i32
%7 = alloca i32
%8 = alloca i8*
%9 = alloca i32
%10 = alloca i8
%11 = alloca i8
%12 = alloca i8
store i8* %0, i8** %5
store i32 %1, i32* %6
store i32 %2, i32* %7
store i8* %3, i8** %8
store i8 0, i8* %10
store i8 -1, i8* %11
store i8 -56, i8* %12
store i32 0, i32* %9
br label %13
13: ; preds = %25, %4
%14 = load i32, i32* %9
%15 = load i32, i32* %6
%16 = load i32, i32* %7
%17 = mul nsw i32 %15, %16
%18 = icmp slt i32 %14, %17
br i1 %18, label %19, label %28
19: ; preds = %13
%20 = load i8, i8* %10
%21 = load i8*, i8** %5
%22 = load i32, i32* %9
%23 = sext i32 %22 to i64
%24 = getelementptr inbounds i8, i8* %21, i64 %23
store i8 %20, i8* %24
br label %25
25: ; preds = %19
%26 = load i32, i32* %9
%27 = add nsw i32 %26, 1
store i32 %27, i32* %9
br label %13
28: ; preds = %13
store i32 0, i32* %9
br label %29
29: ; preds = %40, %28
%30 = load i32, i32* %9
%31 = load i32, i32* %6
%32 = load i32, i32* %7
%33 = mul nsw i32 %31, %32
%34 = icmp slt i32 %30, %33
br i1 %34, label %35, label %43
35: ; preds = %29
%36 = load i8*, i8** %8
%37 = load i32, i32* %9
%38 = sext i32 %37 to i64
%39 = getelementptr inbounds i8, i8* %36, i64 %38
store i8 0, i8* %39
br label %40
40: ; preds = %35
%41 = load i32, i32* %9
%42 = add nsw i32 %41, 1
store i32 %42, i32* %9
br label %29
43: ; preds = %29
%44 = load i32, i32* %6
%45 = sdiv i32 %44, 2
store i32 %45, i32* %9
br label %46
46: ; preds = %89, %43
%47 = load i32, i32* %9
%48 = load i32, i32* %6
%49 = icmp slt i32 %47, %48
br i1 %49, label %50, label %92
50: ; preds = %46
%51 = load i8*, i8** %5
%52 = load i32, i32* %6
%53 = load i32, i32* %7
%54 = load i32, i32* %9
%55 = load i32, i32* %7
%56 = sdiv i32 %55, 2
%57 = load i8, i8* %11
%58 = call i32 @draw_rectangle(i8* %51, i32 %52, i32 %53, i32 %54, i32 %56, i32 1, i32 1, i8 zeroext %57)
%59 = load i8*, i8** %5
%60 = load i32, i32* %6
%61 = load i32, i32* %7
%62 = load i32, i32* %6
%63 = load i32, i32* %9
%64 = sub nsw i32 %62, %63
%65 = load i32, i32* %7
%66 = sdiv i32 %65, 2
%67 = sub nsw i32 %66, 1
%68 = load i8, i8* %11
%69 = call i32 @draw_rectangle(i8* %59, i32 %60, i32 %61, i32 %64, i32 %67, i32 1, i32 1, i8 zeroext %68)
%70 = load i8*, i8** %8
%71 = load i32, i32* %6
%72 = load i32, i32* %7
%73 = load i32, i32* %9
%74 = load i32, i32* %7
%75 = sdiv i32 %74, 2
%76 = load i8, i8* %12
%77 = call i32 @draw_rectangle(i8* %70, i32 %71, i32 %72, i32 %73, i32 %75, i32 1, i32 1, i8 zeroext %76)
%78 = load i8*, i8** %8
%79 = load i32, i32* %6
%80 = load i32, i32* %7
%81 = load i32, i32* %6
%82 = load i32, i32* %9
%83 = sub nsw i32 %81, %82
%84 = load i32, i32* %7
%85 = sdiv i32 %84, 2
%86 = sub nsw i32 %85, 1
%87 = load i8, i8* %12
%88 = call i32 @draw_rectangle(i8* %78, i32 %79, i32 %80, i32 %83, i32 %86, i32 1, i32 1, i8 zeroext %87)
br label %89
89: ; preds = %50
%90 = load i32, i32* %9
%91 = add nsw i32 %90, 2
store i32 %91, i32* %9
br label %46
92: ; preds = %46
%93 = load i32, i32* %6
%94 = sdiv i32 %93, 2
%95 = add nsw i32 %94, 10
store i32 %95, i32* %9
br label %96
96: ; preds = %139, %92
%97 = load i32, i32* %9
%98 = load i32, i32* %6
%99 = icmp slt i32 %97, %98
br i1 %99, label %100, label %142
100: ; preds = %96
%101 = load i8*, i8** %5
%102 = load i32, i32* %6
%103 = load i32, i32* %7
%104 = load i32, i32* %9
%105 = load i32, i32* %7
%106 = sdiv i32 %105, 2
%107 = load i8, i8* %11
%108 = call i32 @draw_rectangle(i8* %101, i32 %102, i32 %103, i32 %104, i32 %106, i32 1, i32 3, i8 zeroext %107)
%109 = load i8*, i8** %5
%110 = load i32, i32* %6
%111 = load i32, i32* %7
%112 = load i32, i32* %6
%113 = load i32, i32* %9
%114 = sub nsw i32 %112, %113
%115 = load i32, i32* %7
%116 = sdiv i32 %115, 2
%117 = sub nsw i32 %116, 3
%118 = load i8, i8* %11
%119 = call i32 @draw_rectangle(i8* %109, i32 %110, i32 %111, i32 %114, i32 %117, i32 1, i32 3, i8 zeroext %118)
%120 = load i8*, i8** %8
%121 = load i32, i32* %6
%122 = load i32, i32* %7
%123 = load i32, i32* %9
%124 = load i32, i32* %7
%125 = sdiv i32 %124, 2
%126 = load i8, i8* %12
%127 = call i32 @draw_rectangle(i8* %120, i32 %121, i32 %122, i32 %123, i32 %125, i32 1, i32 3, i8 zeroext %126)
%128 = load i8*, i8** %8
%129 = load i32, i32* %6
%130 = load i32, i32* %7
%131 = load i32, i32* %6
%132 = load i32, i32* %9
%133 = sub nsw i32 %131, %132
%134 = load i32, i32* %7
%135 = sdiv i32 %134, 2
%136 = sub nsw i32 %135, 3
%137 = load i8, i8* %12
%138 = call i32 @draw_rectangle(i8* %128, i32 %129, i32 %130, i32 %133, i32 %136, i32 1, i32 3, i8 zeroext %137)
br label %139
139: ; preds = %100
%140 = load i32, i32* %9
%141 = add nsw i32 %140, 10
store i32 %141, i32* %9
br label %96
142: ; preds = %96
%143 = load i32, i32* %6
%144 = sdiv i32 %143, 2
%145 = add nsw i32 %144, 50
store i32 %145, i32* %9
br label %146
146: ; preds = %189, %142
%147 = load i32, i32* %9
%148 = load i32, i32* %6
%149 = icmp slt i32 %147, %148
br i1 %149, label %150, label %192
150: ; preds = %146
%151 = load i8*, i8** %5
%152 = load i32, i32* %6
%153 = load i32, i32* %7
%154 = load i32, i32* %9
%155 = load i32, i32* %7
%156 = sdiv i32 %155, 2
%157 = load i8, i8* %11
%158 = call i32 @draw_rectangle(i8* %151, i32 %152, i32 %153, i32 %154, i32 %156, i32 1, i32 5, i8 zeroext %157)
%159 = load i8*, i8** %5
%160 = load i32, i32* %6
%161 = load i32, i32* %7
%162 = load i32, i32* %6
%163 = load i32, i32* %9
%164 = sub nsw i32 %162, %163
%165 = load i32, i32* %7
%166 = sdiv i32 %165, 2
%167 = sub nsw i32 %166, 5
%168 = load i8, i8* %11
%169 = call i32 @draw_rectangle(i8* %159, i32 %160, i32 %161, i32 %164, i32 %167, i32 1, i32 5, i8 zeroext %168)
%170 = load i8*, i8** %8
%171 = load i32, i32* %6
%172 = load i32, i32* %7
%173 = load i32, i32* %9
%174 = load i32, i32* %7
%175 = sdiv i32 %174, 2
%176 = load i8, i8* %12
%177 = call i32 @draw_rectangle(i8* %170, i32 %171, i32 %172, i32 %173, i32 %175, i32 1, i32 5, i8 zeroext %176)
%178 = load i8*, i8** %8
%179 = load i32, i32* %6
%180 = load i32, i32* %7
%181 = load i32, i32* %6
%182 = load i32, i32* %9
%183 = sub nsw i32 %181, %182
%184 = load i32, i32* %7
%185 = sdiv i32 %184, 2
%186 = sub nsw i32 %185, 5
%187 = load i8, i8* %12
%188 = call i32 @draw_rectangle(i8* %178, i32 %179, i32 %180, i32 %183, i32 %186, i32 1, i32 5, i8 zeroext %187)
br label %189
189: ; preds = %150
%190 = load i32, i32* %9
%191 = add nsw i32 %190, 50
store i32 %191, i32* %9
br label %146
192: ; preds = %146
%193 = load i32, i32* %6
%194 = sdiv i32 %193, 2
%195 = add nsw i32 %194, 100
store i32 %195, i32* %9
br label %196
196: ; preds = %239, %192
%197 = load i32, i32* %9
%198 = load i32, i32* %6
%199 = icmp slt i32 %197, %198
br i1 %199, label %200, label %242
200: ; preds = %196
%201 = load i8*, i8** %5
%202 = load i32, i32* %6
%203 = load i32, i32* %7
%204 = load i32, i32* %9
%205 = load i32, i32* %7
%206 = sdiv i32 %205, 2
%207 = load i8, i8* %11
%208 = call i32 @draw_rectangle(i8* %201, i32 %202, i32 %203, i32 %204, i32 %206, i32 1, i32 10, i8 zeroext %207)
%209 = load i8*, i8** %5
%210 = load i32, i32* %6
%211 = load i32, i32* %7
%212 = load i32, i32* %6
%213 = load i32, i32* %9
%214 = sub nsw i32 %212, %213
%215 = load i32, i32* %7
%216 = sdiv i32 %215, 2
%217 = sub nsw i32 %216, 10
%218 = load i8, i8* %11
%219 = call i32 @draw_rectangle(i8* %209, i32 %210, i32 %211, i32 %214, i32 %217, i32 1, i32 10, i8 zeroext %218)
%220 = load i8*, i8** %8
%221 = load i32, i32* %6
%222 = load i32, i32* %7
%223 = load i32, i32* %9
%224 = load i32, i32* %7
%225 = sdiv i32 %224, 2
%226 = load i8, i8* %12
%227 = call i32 @draw_rectangle(i8* %220, i32 %221, i32 %222, i32 %223, i32 %225, i32 1, i32 10, i8 zeroext %226)
%228 = load i8*, i8** %8
%229 = load i32, i32* %6
%230 = load i32, i32* %7
%231 = load i32, i32* %6
%232 = load i32, i32* %9
%233 = sub nsw i32 %231, %232
%234 = load i32, i32* %7
%235 = sdiv i32 %234, 2
%236 = sub nsw i32 %235, 10
%237 = load i8, i8* %12
%238 = call i32 @draw_rectangle(i8* %228, i32 %229, i32 %230, i32 %233, i32 %236, i32 1, i32 10, i8 zeroext %237)
br label %239
239: ; preds = %200
%240 = load i32, i32* %9
%241 = add nsw i32 %240, 100
store i32 %241, i32* %9
br label %196
242: ; preds = %196
%243 = load i32, i32* %7
%244 = sdiv i32 %243, 2
store i32 %244, i32* %9
br label %245
245: ; preds = %288, %242
%246 = load i32, i32* %9
%247 = load i32, i32* %7
%248 = icmp slt i32 %246, %247
br i1 %248, label %249, label %291
249: ; preds = %245
%250 = load i8*, i8** %5
%251 = load i32, i32* %6
%252 = load i32, i32* %7
%253 = load i32, i32* %6
%254 = sdiv i32 %253, 2
%255 = sub nsw i32 %254, 1
%256 = load i32, i32* %9
%257 = load i8, i8* %11
%258 = call i32 @draw_rectangle(i8* %250, i32 %251, i32 %252, i32 %255, i32 %256, i32 1, i32 1, i8 zeroext %257)
%259 = load i8*, i8** %5
%260 = load i32, i32* %6
%261 = load i32, i32* %7
%262 = load i32, i32* %6
%263 = sdiv i32 %262, 2
%264 = load i32, i32* %7
%265 = load i32, i32* %9
%266 = sub nsw i32 %264, %265
%267 = load i8, i8* %11
%268 = call i32 @draw_rectangle(i8* %259, i32 %260, i32 %261, i32 %263, i32 %266, i32 1, i32 1, i8 zeroext %267)
%269 = load i8*, i8** %8
%270 = load i32, i32* %6
%271 = load i32, i32* %7
%272 = load i32, i32* %6
%273 = sdiv i32 %272, 2
%274 = sub nsw i32 %273, 1
%275 = load i32, i32* %9
%276 = load i8, i8* %12
%277 = call i32 @draw_rectangle(i8* %269, i32 %270, i32 %271, i32 %274, i32 %275, i32 1, i32 1, i8 zeroext %276)
%278 = load i8*, i8** %8
%279 = load i32, i32* %6
%280 = load i32, i32* %7
%281 = load i32, i32* %6
%282 = sdiv i32 %281, 2
%283 = load i32, i32* %7
%284 = load i32, i32* %9
%285 = sub nsw i32 %283, %284
%286 = load i8, i8* %12
%287 = call i32 @draw_rectangle(i8* %278, i32 %279, i32 %280, i32 %282, i32 %285, i32 1, i32 1, i8 zeroext %286)
br label %288
288: ; preds = %249
%289 = load i32, i32* %9
%290 = add nsw i32 %289, 2
store i32 %290, i32* %9
br label %245
291: ; preds = %245
%292 = load i32, i32* %7
%293 = sdiv i32 %292, 2
%294 = add nsw i32 %293, 10
store i32 %294, i32* %9
br label %295
295: ; preds = %338, %291
%296 = load i32, i32* %9
%297 = load i32, i32* %7
%298 = icmp slt i32 %296, %297
br i1 %298, label %299, label %341
299: ; preds = %295
%300 = load i8*, i8** %5
%301 = load i32, i32* %6
%302 = load i32, i32* %7
%303 = load i32, i32* %6
%304 = sdiv i32 %303, 2
%305 = sub nsw i32 %304, 3
%306 = load i32, i32* %9
%307 = load i8, i8* %11
%308 = call i32 @draw_rectangle(i8* %300, i32 %301, i32 %302, i32 %305, i32 %306, i32 3, i32 1, i8 zeroext %307)
%309 = load i8*, i8** %5
%310 = load i32, i32* %6
%311 = load i32, i32* %7
%312 = load i32, i32* %6
%313 = sdiv i32 %312, 2
%314 = load i32, i32* %7
%315 = load i32, i32* %9
%316 = sub nsw i32 %314, %315
%317 = load i8, i8* %11
%318 = call i32 @draw_rectangle(i8* %309, i32 %310, i32 %311, i32 %313, i32 %316, i32 3, i32 1, i8 zeroext %317)
%319 = load i8*, i8** %8
%320 = load i32, i32* %6
%321 = load i32, i32* %7
%322 = load i32, i32* %6
%323 = sdiv i32 %322, 2
%324 = sub nsw i32 %323, 3
%325 = load i32, i32* %9
%326 = load i8, i8* %12
%327 = call i32 @draw_rectangle(i8* %319, i32 %320, i32 %321, i32 %324, i32 %325, i32 3, i32 1, i8 zeroext %326)
%328 = load i8*, i8** %8
%329 = load i32, i32* %6
%330 = load i32, i32* %7
%331 = load i32, i32* %6
%332 = sdiv i32 %331, 2
%333 = load i32, i32* %7
%334 = load i32, i32* %9
%335 = sub nsw i32 %333, %334
%336 = load i8, i8* %12
%337 = call i32 @draw_rectangle(i8* %328, i32 %329, i32 %330, i32 %332, i32 %335, i32 3, i32 1, i8 zeroext %336)
br label %338
338: ; preds = %299
%339 = load i32, i32* %9
%340 = add nsw i32 %339, 10
store i32 %340, i32* %9
br label %295
341: ; preds = %295
%342 = load i32, i32* %7
%343 = sdiv i32 %342, 2
%344 = add nsw i32 %343, 50
store i32 %344, i32* %9
br label %345
345: ; preds = %388, %341
%346 = load i32, i32* %9
%347 = load i32, i32* %7
%348 = icmp slt i32 %346, %347
br i1 %348, label %349, label %391
349: ; preds = %345
%350 = load i8*, i8** %5
%351 = load i32, i32* %6
%352 = load i32, i32* %7
%353 = load i32, i32* %6
%354 = sdiv i32 %353, 2
%355 = sub nsw i32 %354, 5
%356 = load i32, i32* %9
%357 = load i8, i8* %11
%358 = call i32 @draw_rectangle(i8* %350, i32 %351, i32 %352, i32 %355, i32 %356, i32 5, i32 1, i8 zeroext %357)
%359 = load i8*, i8** %5
%360 = load i32, i32* %6
%361 = load i32, i32* %7
%362 = load i32, i32* %6
%363 = sdiv i32 %362, 2
%364 = load i32, i32* %7
%365 = load i32, i32* %9
%366 = sub nsw i32 %364, %365
%367 = load i8, i8* %11
%368 = call i32 @draw_rectangle(i8* %359, i32 %360, i32 %361, i32 %363, i32 %366, i32 5, i32 1, i8 zeroext %367)
%369 = load i8*, i8** %8
%370 = load i32, i32* %6
%371 = load i32, i32* %7
%372 = load i32, i32* %6
%373 = sdiv i32 %372, 2
%374 = sub nsw i32 %373, 5
%375 = load i32, i32* %9
%376 = load i8, i8* %12
%377 = call i32 @draw_rectangle(i8* %369, i32 %370, i32 %371, i32 %374, i32 %375, i32 5, i32 1, i8 zeroext %376)
%378 = load i8*, i8** %8
%379 = load i32, i32* %6
%380 = load i32, i32* %7
%381 = load i32, i32* %6
%382 = sdiv i32 %381, 2
%383 = load i32, i32* %7
%384 = load i32, i32* %9
%385 = sub nsw i32 %383, %384
%386 = load i8, i8* %12
%387 = call i32 @draw_rectangle(i8* %378, i32 %379, i32 %380, i32 %382, i32 %385, i32 5, i32 1, i8 zeroext %386)
br label %388
388: ; preds = %349
%389 = load i32, i32* %9
%390 = add nsw i32 %389, 50
store i32 %390, i32* %9
br label %345
391: ; preds = %345
%392 = load i32, i32* %7
%393 = sdiv i32 %392, 2
%394 = add nsw i32 %393, 100
store i32 %394, i32* %9
br label %395
395: ; preds = %438, %391
%396 = load i32, i32* %9
%397 = load i32, i32* %7
%398 = icmp slt i32 %396, %397
br i1 %398, label %399, label %441
399: ; preds = %395
%400 = load i8*, i8** %5
%401 = load i32, i32* %6
%402 = load i32, i32* %7
%403 = load i32, i32* %6
%404 = sdiv i32 %403, 2
%405 = sub nsw i32 %404, 10
%406 = load i32, i32* %9
%407 = load i8, i8* %11
%408 = call i32 @draw_rectangle(i8* %400, i32 %401, i32 %402, i32 %405, i32 %406, i32 10, i32 1, i8 zeroext %407)
%409 = load i8*, i8** %5
%410 = load i32, i32* %6
%411 = load i32, i32* %7
%412 = load i32, i32* %6
%413 = sdiv i32 %412, 2
%414 = load i32, i32* %7
%415 = load i32, i32* %9
%416 = sub nsw i32 %414, %415
%417 = load i8, i8* %11
%418 = call i32 @draw_rectangle(i8* %409, i32 %410, i32 %411, i32 %413, i32 %416, i32 10, i32 1, i8 zeroext %417)
%419 = load i8*, i8** %8
%420 = load i32, i32* %6
%421 = load i32, i32* %7
%422 = load i32, i32* %6
%423 = sdiv i32 %422, 2
%424 = sub nsw i32 %423, 10
%425 = load i32, i32* %9
%426 = load i8, i8* %12
%427 = call i32 @draw_rectangle(i8* %419, i32 %420, i32 %421, i32 %424, i32 %425, i32 10, i32 1, i8 zeroext %426)
%428 = load i8*, i8** %8
%429 = load i32, i32* %6
%430 = load i32, i32* %7
%431 = load i32, i32* %6
%432 = sdiv i32 %431, 2
%433 = load i32, i32* %7
%434 = load i32, i32* %9
%435 = sub nsw i32 %433, %434
%436 = load i8, i8* %12
%437 = call i32 @draw_rectangle(i8* %428, i32 %429, i32 %430, i32 %432, i32 %435, i32 10, i32 1, i8 zeroext %436)
br label %438
438: ; preds = %399
%439 = load i32, i32* %9
%440 = add nsw i32 %439, 100
store i32 %440, i32* %9
br label %395
441: ; preds = %395
ret void
}

LLVM IR (-O2):
define void @rulers(i8* %0, i32 %1, i32 %2, i8* %3) {
%5 = mul i32 %2, %1
%6 = icmp sgt i32 %5, 0
br i1 %6, label %7, label %10
7: ; preds = %4
%8 = zext i32 %5 to i64
%9 = zext i32 %5 to i64
br label %10
10: ; preds = %4, %7
%11 = sdiv i32 %1, 2
%12 = icmp slt i32 %11, %1
br i1 %12, label %13, label %16
13: ; preds = %10
%14 = sdiv i32 %2, 2
%15 = add nsw i32 %14, -1
br label %22
16: ; preds = %22, %10
%17 = add nsw i32 %11, 10
%18 = icmp slt i32 %17, %1
br i1 %18, label %19, label %31
19: ; preds = %16
%20 = sdiv i32 %2, 2
%21 = add nsw i32 %20, -3
br label %37
22: ; preds = %13, %22
%23 = phi i32 [ %11, %13 ], [ %29, %22 ]
%24 = tail call i32 @draw_rectangle(i8* %0, i32 %1, i32 %2, i32 %23, i32 %14, i32 1, i32 1, i8 zeroext -1)
%25 = sub nsw i32 %1, %23
%26 = tail call i32 @draw_rectangle(i8* %0, i32 %1, i32 %2, i32 %25, i32 %15, i32 1, i32 1, i8 zeroext -1)
%27 = tail call i32 @draw_rectangle(i8* %3, i32 %1, i32 %2, i32 %23, i32 %14, i32 1, i32 1, i8 zeroext -56)
%28 = tail call i32 @draw_rectangle(i8* %3, i32 %1, i32 %2, i32 %25, i32 %15, i32 1, i32 1, i8 zeroext -56)
%29 = add nsw i32 %23, 2
%30 = icmp slt i32 %29, %1
br i1 %30, label %22, label %16
31: ; preds = %37, %16
%32 = add nsw i32 %11, 50
%33 = icmp slt i32 %32, %1
br i1 %33, label %34, label %46
34: ; preds = %31
%35 = sdiv i32 %2, 2
%36 = add nsw i32 %35, -5
br label %52
37: ; preds = %19, %37
%38 = phi i32 [ %17, %19 ], [ %44, %37 ]
%39 = tail call i32 @draw_rectangle(i8* %0, i32 %1, i32 %2, i32 %38, i32 %20, i32 1, i32 3, i8 zeroext -1)
%40 = sub nsw i32 %1, %38
%41 = tail call i32 @draw_rectangle(i8* %0, i32 %1, i32 %2, i32 %40, i32 %21, i32 1, i32 3, i8 zeroext -1)
%42 = tail call i32 @draw_rectangle(i8* %3, i32 %1, i32 %2, i32 %38, i32 %20, i32 1, i32 3, i8 zeroext -56)
%43 = tail call i32 @draw_rectangle(i8* %3, i32 %1, i32 %2, i32 %40, i32 %21, i32 1, i32 3, i8 zeroext -56)
%44 = add nsw i32 %38, 10
%45 = icmp slt i32 %44, %1
br i1 %45, label %37, label %31
46: ; preds = %52, %31
%47 = add nsw i32 %11, 100
%48 = icmp slt i32 %47, %1
%49 = sdiv i32 %2, 2
br i1 %48, label %50, label %70
50: ; preds = %46
%51 = add nsw i32 %49, -10
br label %61
52: ; preds = %34, %52
%53 = phi i32 [ %32, %34 ], [ %59, %52 ]
%54 = tail call i32 @draw_rectangle(i8* %0, i32 %1, i32 %2, i32 %53, i32 %35, i32 1, i32 5, i8 zeroext -1)
%55 = sub nsw i32 %1, %53
%56 = tail call i32 @draw_rectangle(i8* %0, i32 %1, i32 %2, i32 %55, i32 %36, i32 1, i32 5, i8 zeroext -1)
%57 = tail call i32 @draw_rectangle(i8* %3, i32 %1, i32 %2, i32 %53, i32 %35, i32 1, i32 5, i8 zeroext -56)
%58 = tail call i32 @draw_rectangle(i8* %3, i32 %1, i32 %2, i32 %55, i32 %36, i32 1, i32 5, i8 zeroext -56)
%59 = add nsw i32 %53, 50
%60 = icmp slt i32 %59, %1
br i1 %60, label %52, label %46
61: ; preds = %50, %61
%62 = phi i32 [ %47, %50 ], [ %68, %61 ]
%63 = tail call i32 @draw_rectangle(i8* %0, i32 %1, i32 %2, i32 %62, i32 %49, i32 1, i32 10, i8 zeroext -1)
%64 = sub nsw i32 %1, %62
%65 = tail call i32 @draw_rectangle(i8* %0, i32 %1, i32 %2, i32 %64, i32 %51, i32 1, i32 10, i8 zeroext -1)
%66 = tail call i32 @draw_rectangle(i8* %3, i32 %1, i32 %2, i32 %62, i32 %49, i32 1, i32 10, i8 zeroext -56)
%67 = tail call i32 @draw_rectangle(i8* %3, i32 %1, i32 %2, i32 %64, i32 %51, i32 1, i32 10, i8 zeroext -56)
%68 = add nsw i32 %62, 100
%69 = icmp slt i32 %68, %1
br i1 %69, label %61, label %70
70: ; preds = %61, %46
%71 = icmp slt i32 %49, %2
br i1 %71, label %72, label %74
72: ; preds = %70
%73 = add nsw i32 %11, -1
br label %79
74: ; preds = %79, %70
%75 = add nsw i32 %49, 10
%76 = icmp slt i32 %75, %2
br i1 %76, label %77, label %88
77: ; preds = %74
%78 = add nsw i32 %11, -3
br label %93
79: ; preds = %72, %79
%80 = phi i32 [ %49, %72 ], [ %86, %79 ]
%81 = tail call i32 @draw_rectangle(i8* %0, i32 %1, i32 %2, i32 %73, i32 %80, i32 1, i32 1, i8 zeroext -1)
%82 = sub nsw i32 %2, %80
%83 = tail call i32 @draw_rectangle(i8* %0, i32 %1, i32 %2, i32 %11, i32 %82, i32 1, i32 1, i8 zeroext -1)
%84 = tail call i32 @draw_rectangle(i8* %3, i32 %1, i32 %2, i32 %73, i32 %80, i32 1, i32 1, i8 zeroext -56)
%85 = tail call i32 @draw_rectangle(i8* %3, i32 %1, i32 %2, i32 %11, i32 %82, i32 1, i32 1, i8 zeroext -56)
%86 = add nsw i32 %80, 2
%87 = icmp slt i32 %86, %2
br i1 %87, label %79, label %74
88: ; preds = %93, %74
%89 = add nsw i32 %49, 50
%90 = icmp slt i32 %89, %2
br i1 %90, label %91, label %102
91: ; preds = %88
%92 = add nsw i32 %11, -5
br label %107
93: ; preds = %77, %93
%94 = phi i32 [ %75, %77 ], [ %100, %93 ]
%95 = tail call i32 @draw_rectangle(i8* %0, i32 %1, i32 %2, i32 %78, i32 %94, i32 3, i32 1, i8 zeroext -1)
%96 = sub nsw i32 %2, %94
%97 = tail call i32 @draw_rectangle(i8* %0, i32 %1, i32 %2, i32 %11, i32 %96, i32 3, i32 1, i8 zeroext -1)
%98 = tail call i32 @draw_rectangle(i8* %3, i32 %1, i32 %2, i32 %78, i32 %94, i32 3, i32 1, i8 zeroext -56)
%99 = tail call i32 @draw_rectangle(i8* %3, i32 %1, i32 %2, i32 %11, i32 %96, i32 3, i32 1, i8 zeroext -56)
%100 = add nsw i32 %94, 10
%101 = icmp slt i32 %100, %2
br i1 %101, label %93, label %88
102: ; preds = %107, %88
%103 = add nsw i32 %49, 100
%104 = icmp slt i32 %103, %2
br i1 %104, label %105, label %125
105: ; preds = %102
%106 = add nsw i32 %11, -10
br label %116
107: ; preds = %91, %107
%108 = phi i32 [ %89, %91 ], [ %114, %107 ]
%109 = tail call i32 @draw_rectangle(i8* %0, i32 %1, i32 %2, i32 %92, i32 %108, i32 5, i32 1, i8 zeroext -1)
%110 = sub nsw i32 %2, %108
%111 = tail call i32 @draw_rectangle(i8* %0, i32 %1, i32 %2, i32 %11, i32 %110, i32 5, i32 1, i8 zeroext -1)
%112 = tail call i32 @draw_rectangle(i8* %3, i32 %1, i32 %2, i32 %92, i32 %108, i32 5, i32 1, i8 zeroext -56)
%113 = tail call i32 @draw_rectangle(i8* %3, i32 %1, i32 %2, i32 %11, i32 %110, i32 5, i32 1, i8 zeroext -56)
%114 = add nsw i32 %108, 50
%115 = icmp slt i32 %114, %2
br i1 %115, label %107, label %102
116: ; preds = %105, %116
%117 = phi i32 [ %103, %105 ], [ %123, %116 ]
%118 = tail call i32 @draw_rectangle(i8* %0, i32 %1, i32 %2, i32 %106, i32 %117, i32 10, i32 1, i8 zeroext -1)
%119 = sub nsw i32 %2, %117
%120 = tail call i32 @draw_rectangle(i8* %0, i32 %1, i32 %2, i32 %11, i32 %119, i32 10, i32 1, i8 zeroext -1)
%121 = tail call i32 @draw_rectangle(i8* %3, i32 %1, i32 %2, i32 %106, i32 %117, i32 10, i32 1, i8 zeroext -56)
%122 = tail call i32 @draw_rectangle(i8* %3, i32 %1, i32 %2, i32 %11, i32 %119, i32 10, i32 1, i8 zeroext -56)
%123 = add nsw i32 %117, 100
%124 = icmp slt i32 %123, %2
br i1 %124, label %116, label %125
125: ; preds = %116, %102
ret void
}