#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_wedge(unsigned char *, int, int, int, int, int, int,
                              unsigned char);
void robovi(unsigned char *sl, int w, int h) {
  int i, j, l;
  unsigned char black, white;
  black = 0;
  white = 255;
  for (i = 0; i < (w * h); i++)
    sl[i] = black;
  draw_wedge(sl, w, h, w / 4, 0, 50, 1, white);
  draw_wedge(sl, w, h, 3 * w / 4, 0, 50, 1, white);
  draw_wedge(sl, w, h, w - 1, h / 4, 50, 2, white);
  draw_wedge(sl, w, h, w - 1, 3 * h / 4, 50, 2, white);
  draw_wedge(sl, w, h, w / 4, h - 1, 50, 3, white);
  draw_wedge(sl, w, h, 3 * w / 4, h - 1, 50, 3, white);
  draw_wedge(sl, w, h, 0, h / 4, 50, 4, white);
  draw_wedge(sl, w, h, 0, 3 * h / 4, 50, 4, white);
  for (i = 0; i < 50; i++) {
    l = (i % 10) * 10 + 10;
    for (j = w / 2 - 50; j < w / 2 - 50 + l; j++) {
      sl[i * w + w - j - 1] = white;
      sl[(h - i - 1) * w + j] = white;
    }
    for (j = h / 2 - 50; j < h / 2 - 50 + l; j++) {
      sl[j * w + i] = white;
      sl[(h - j - 1) * w + w - i - 1] = white;
    }
  }
}


x86 assembly (clang, -O0):
<robovi>:
push   %rbp
mov    %rsp,%rbp
sub    $0x60,%rsp
mov    %rdi,-0x8(%rbp)
mov    %esi,-0xc(%rbp)
mov    %edx,-0x10(%rbp)
movb   $0x0,-0x1d(%rbp)
movb   $0xff,-0x1e(%rbp)
movl   $0x0,-0x14(%rbp)
mov    -0x14(%rbp),%eax
mov    -0xc(%rbp),%ecx
imul   -0x10(%rbp),%ecx
cmp    %ecx,%eax
jge    115f <robovi+0x4f>
mov    -0x1d(%rbp),%dl
mov    -0x8(%rbp),%rax
movslq -0x14(%rbp),%rcx
mov    %dl,(%rax,%rcx,1)
mov    -0x14(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x14(%rbp)
jmp    1131 <robovi+0x21>
mov    -0x8(%rbp),%rdi
mov    -0xc(%rbp),%esi
mov    -0x10(%rbp),%eax
mov    %eax,-0x40(%rbp)
mov    -0xc(%rbp),%eax
mov    $0x4,%ecx
cltd
idiv   %ecx
mov    -0x40(%rbp),%edx
mov    %eax,%ecx
xor    %r8d,%r8d
mov    $0x32,%r9d
movl   $0x1,(%rsp)
movzbl -0x1e(%rbp),%eax
mov    %eax,0x8(%rsp)
call   1030 <draw_wedge@plt>
mov    -0x8(%rbp),%rdi
mov    -0xc(%rbp),%esi
mov    -0x10(%rbp),%eax
mov    %eax,-0x3c(%rbp)
imul   $0x3,-0xc(%rbp),%eax
mov    $0x4,%ecx
cltd
idiv   %ecx
mov    -0x3c(%rbp),%edx
mov    %eax,%ecx
xor    %r8d,%r8d
mov    $0x32,%r9d
movl   $0x1,(%rsp)
movzbl -0x1e(%rbp),%eax
mov    %eax,0x8(%rsp)
call   1030 <draw_wedge@plt>
mov    -0x8(%rbp),%rdi
mov    -0xc(%rbp),%esi
mov    -0x10(%rbp),%eax
mov    %eax,-0x38(%rbp)
mov    -0xc(%rbp),%ecx
sub    $0x1,%ecx
mov    -0x10(%rbp),%eax
mov    $0x4,%r8d
cltd
idiv   %r8d
mov    -0x38(%rbp),%edx
mov    %eax,%r8d
mov    $0x32,%r9d
movl   $0x2,(%rsp)
movzbl -0x1e(%rbp),%eax
mov    %eax,0x8(%rsp)
call   1030 <draw_wedge@plt>
mov    -0x8(%rbp),%rdi
mov    -0xc(%rbp),%esi
mov    -0x10(%rbp),%eax
mov    %eax,-0x34(%rbp)
mov    -0xc(%rbp),%ecx
sub    $0x1,%ecx
imul   $0x3,-0x10(%rbp),%eax
mov    $0x4,%r8d
cltd
idiv   %r8d
mov    -0x34(%rbp),%edx
mov    %eax,%r8d
mov    $0x32,%r9d
movl   $0x2,(%rsp)
movzbl -0x1e(%rbp),%eax
mov    %eax,0x8(%rsp)
call   1030 <draw_wedge@plt>
mov    -0x8(%rbp),%rdi
mov    -0xc(%rbp),%esi
mov    -0x10(%rbp),%eax
mov    %eax,-0x30(%rbp)
mov    -0xc(%rbp),%eax
mov    $0x4,%ecx
cltd
idiv   %ecx
mov    -0x30(%rbp),%edx
mov    %eax,%ecx
mov    -0x10(%rbp),%r8d
sub    $0x1,%r8d
mov    $0x32,%r9d
movl   $0x3,(%rsp)
movzbl -0x1e(%rbp),%eax
mov    %eax,0x8(%rsp)
call   1030 <draw_wedge@plt>
mov    -0x8(%rbp),%rdi
mov    -0xc(%rbp),%esi
mov    -0x10(%rbp),%eax
mov    %eax,-0x2c(%rbp)
imul   $0x3,-0xc(%rbp),%eax
mov    $0x4,%ecx
cltd
idiv   %ecx
mov    -0x2c(%rbp),%edx
mov    %eax,%ecx
mov    -0x10(%rbp),%r8d
sub    $0x1,%r8d
mov    $0x32,%r9d
movl   $0x3,(%rsp)
movzbl -0x1e(%rbp),%eax
mov    %eax,0x8(%rsp)
call   1030 <draw_wedge@plt>
mov    -0x8(%rbp),%rdi
mov    -0xc(%rbp),%esi
mov    -0x10(%rbp),%eax
mov    %eax,-0x28(%rbp)
mov    -0x10(%rbp),%eax
mov    $0x4,%ecx
cltd
idiv   %ecx
mov    -0x28(%rbp),%edx
mov    %eax,%r8d
xor    %ecx,%ecx
mov    $0x32,%r9d
movl   $0x4,(%rsp)
movzbl -0x1e(%rbp),%eax
mov    %eax,0x8(%rsp)
call   1030 <draw_wedge@plt>
mov    -0x8(%rbp),%rdi
mov    -0xc(%rbp),%esi
mov    -0x10(%rbp),%eax
mov    %eax,-0x24(%rbp)
imul   $0x3,-0x10(%rbp),%eax
mov    $0x4,%ecx
cltd
idiv   %ecx
mov    -0x24(%rbp),%edx
mov    %eax,%r8d
xor    %ecx,%ecx
mov    $0x32,%r9d
movl   $0x4,(%rsp)
movzbl -0x1e(%rbp),%eax
mov    %eax,0x8(%rsp)
call   1030 <draw_wedge@plt>
movl   $0x0,-0x14(%rbp)
cmpl   $0x32,-0x14(%rbp)
jge    147b <robovi+0x36b>
mov    -0x14(%rbp),%eax
mov    $0xa,%ecx
cltd
idiv   %ecx
imul   $0xa,%edx,%eax
add    $0xa,%eax
mov    %eax,-0x1c(%rbp)
mov    -0xc(%rbp),%eax
mov    $0x2,%ecx
cltd
idiv   %ecx
sub    $0x32,%eax
mov    %eax,-0x18(%rbp)
mov    -0x18(%rbp),%eax
mov    %eax,-0x44(%rbp)
mov    -0xc(%rbp),%eax
mov    $0x2,%ecx
cltd
idiv   %ecx
mov    %eax,%ecx
mov    -0x44(%rbp),%eax
sub    $0x32,%ecx
add    -0x1c(%rbp),%ecx
cmp    %ecx,%eax
jge    13eb <robovi+0x2db>
mov    -0x1e(%rbp),%dl
mov    -0x8(%rbp),%rax
mov    -0x14(%rbp),%ecx
imul   -0xc(%rbp),%ecx
add    -0xc(%rbp),%ecx
sub    -0x18(%rbp),%ecx
sub    $0x1,%ecx
movslq %ecx,%rcx
mov    %dl,(%rax,%rcx,1)
mov    -0x1e(%rbp),%dl
mov    -0x8(%rbp),%rax
mov    -0x10(%rbp),%ecx
sub    -0x14(%rbp),%ecx
sub    $0x1,%ecx
imul   -0xc(%rbp),%ecx
add    -0x18(%rbp),%ecx
movslq %ecx,%rcx
mov    %dl,(%rax,%rcx,1)
mov    -0x18(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x18(%rbp)
jmp    137f <robovi+0x26f>
mov    -0x10(%rbp),%eax
mov    $0x2,%ecx
cltd
idiv   %ecx
sub    $0x32,%eax
mov    %eax,-0x18(%rbp)
mov    -0x18(%rbp),%eax
mov    %eax,-0x48(%rbp)
mov    -0x10(%rbp),%eax
mov    $0x2,%ecx
cltd
idiv   %ecx
mov    %eax,%ecx
mov    -0x48(%rbp),%eax
sub    $0x32,%ecx
add    -0x1c(%rbp),%ecx
cmp    %ecx,%eax
jge    1468 <robovi+0x358>
mov    -0x1e(%rbp),%dl
mov    -0x8(%rbp),%rax
mov    -0x18(%rbp),%ecx
imul   -0xc(%rbp),%ecx
add    -0x14(%rbp),%ecx
movslq %ecx,%rcx
mov    %dl,(%rax,%rcx,1)
mov    -0x1e(%rbp),%dl
mov    -0x8(%rbp),%rax
mov    -0x10(%rbp),%ecx
sub    -0x18(%rbp),%ecx
sub    $0x1,%ecx
imul   -0xc(%rbp),%ecx
add    -0xc(%rbp),%ecx
sub    -0x14(%rbp),%ecx
sub    $0x1,%ecx
movslq %ecx,%rcx
mov    %dl,(%rax,%rcx,1)
mov    -0x18(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x18(%rbp)
jmp    13fc <robovi+0x2ec>
jmp    146d <robovi+0x35d>
mov    -0x14(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x14(%rbp)
jmp    1350 <robovi+0x240>
add    $0x60,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<robovi>:
push   %rbp
push   %r15
push   %r14
push   %r13
push   %r12
push   %rbx
sub    $0x18,%rsp
mov    %edx,%r15d
mov    %esi,%r14d
mov    %rdi,%rbx
mov    %edx,%eax
imul   %esi,%eax
test   %eax,%eax
jle    114c <robovi+0x2c>
mov    %eax,%edx
mov    %rbx,%rdi
xor    %esi,%esi
call   1040 <memset@plt>
lea    0x3(%r14),%ecx
test   %r14d,%r14d
cmovns %r14d,%ecx
sar    $0x2,%ecx
mov    %ecx,0x10(%rsp)
xor    %r12d,%r12d
mov    %rbx,%rdi
mov    %r14d,%esi
mov    %r15d,%edx
xor    %r8d,%r8d
mov    $0x32,%r9d
push   $0xff
push   $0x1
call   1030 <draw_wedge@plt>
add    $0x10,%rsp
lea    (%r14,%r14,2),%eax
lea    (%r14,%r14,2),%ecx
add    $0x3,%ecx
test   %eax,%eax
cmovns %eax,%ecx
sar    $0x2,%ecx
mov    %ecx,0x4(%rsp)
mov    %rbx,%rdi
mov    %r14d,%esi
mov    %r15d,%edx
xor    %r8d,%r8d
mov    $0x32,%r9d
push   $0xff
push   $0x1
call   1030 <draw_wedge@plt>
add    $0x10,%rsp
lea    -0x1(%r14),%r13d
lea    0x3(%r15),%r8d
test   %r15d,%r15d
cmovns %r15d,%r8d
sar    $0x2,%r8d
mov    %r8d,0x8(%rsp)
mov    %rbx,%rdi
mov    %r14d,%esi
mov    %r15d,%edx
mov    %r13d,%ecx
mov    $0x32,%r9d
push   $0xff
push   $0x2
call   1030 <draw_wedge@plt>
add    $0x10,%rsp
lea    (%r15,%r15,2),%eax
lea    (%r15,%r15,2),%ebp
add    $0x3,%ebp
test   %eax,%eax
cmovns %eax,%ebp
sar    $0x2,%ebp
mov    %rbx,%rdi
mov    %r14d,%esi
mov    %r15d,%edx
mov    %r13d,%ecx
mov    %ebp,%r8d
mov    $0x32,%r9d
push   $0xff
push   $0x2
call   1030 <draw_wedge@plt>
add    $0x10,%rsp
lea    -0x1(%r15),%r13d
mov    %rbx,%rdi
mov    %r14d,%esi
mov    %r15d,%edx
mov    0x10(%rsp),%ecx
mov    %r13d,%r8d
mov    $0x32,%r9d
push   $0xff
push   $0x3
call   1030 <draw_wedge@plt>
add    $0x10,%rsp
mov    %rbx,%rdi
mov    %r14d,%esi
mov    %r15d,%edx
mov    0x4(%rsp),%ecx
mov    %r13d,%r8d
mov    $0x32,%r9d
push   $0xff
push   $0x3
call   1030 <draw_wedge@plt>
add    $0x10,%rsp
mov    %rbx,%rdi
mov    %r14d,%esi
mov    %r15d,%edx
xor    %ecx,%ecx
mov    0x8(%rsp),%r8d
mov    $0x32,%r9d
push   $0xff
push   $0x4
call   1030 <draw_wedge@plt>
add    $0x10,%rsp
mov    %rbx,%rdi
mov    %r14d,%esi
mov    %r15d,%edx
xor    %ecx,%ecx
mov    %ebp,%r8d
mov    $0x32,%r9d
push   $0xff
push   $0x4
call   1030 <draw_wedge@plt>
add    $0x10,%rsp
mov    %r14d,%eax
shr    $0x1f,%eax
add    %r14d,%eax
sar    %eax
lea    -0x32(%rax),%edx
mov    %r15d,%ecx
shr    $0x1f,%ecx
add    %r15d,%ecx
sar    %ecx
lea    -0x32(%rcx),%esi
mov    %rdx,0x10(%rsp)
movslq %edx,%rdx
mov    %rdx,0x8(%rsp)
mov    %esi,0x4(%rsp)
movslq %esi,%r10
movslq %r14d,%rdi
imul   %r14d,%r13d
mov    %edi,%r9d
sub    %eax,%r9d
add    $0x31,%r9d
mov    %r10,%r8
imul   %rdi,%r8
add    %rbx,%r8
sub    %ecx,%r15d
add    $0x32,%r15d
imul   %r14d,%r15d
add    $0xffffffff,%r15d
cs nopw 0x0(%rax,%rax,1)
nopl   0x0(%rax)
movslq %r13d,%rcx
add    %rbx,%rcx
movzbl %r12b,%eax
imul   $0xcd,%eax,%eax
shr    $0xa,%eax
and    $0xfffffffe,%eax
lea    (%rax,%rax,4),%eax
mov    %r12d,%edx
sub    %al,%dl
movzbl %dl,%eax
add    %eax,%eax
lea    (%rax,%rax,4),%eax
add    $0xa,%al
movzbl %al,%edx
mov    0x10(%rsp),%rax
add    %edx,%eax
movslq %eax,%rsi
mov    %r9d,%eax
mov    0x8(%rsp),%rbp
nopl   (%rax)
cltq
movb   $0xff,(%rbx,%rax,1)
movb   $0xff,(%rcx,%rbp,1)
add    $0x1,%rbp
add    $0xffffffff,%eax
cmp    %rsi,%rbp
jl     1370 <robovi+0x250>
add    0x4(%rsp),%edx
movslq %edx,%rcx
mov    %r15d,%edx
mov    %r8,%rsi
mov    %r10,%r11
cs nopw 0x0(%rax,%rax,1)
movb   $0xff,(%rsi)
movslq %edx,%rdx
movb   $0xff,(%rbx,%rdx,1)
add    $0x1,%r11
add    %rdi,%rsi
sub    %edi,%edx
cmp    %rcx,%r11
jl     13a0 <robovi+0x280>
add    $0x1,%r12
sub    %r14d,%r13d
add    %r14d,%r9d
add    $0x1,%r8
add    $0xffffffff,%r15d
cmp    $0x32,%r12
jne    1330 <robovi+0x210>
add    $0x18,%rsp
pop    %rbx
pop    %r12
pop    %r13
pop    %r14
pop    %r15
pop    %rbp
ret

LLVM IR (-O0):
define void @robovi(i8* %0, i32 %1, i32 %2) {
%4 = alloca i8*
%5 = alloca i32
%6 = alloca i32
%7 = alloca i32
%8 = alloca i32
%9 = alloca i32
%10 = alloca i8
%11 = alloca i8
store i8* %0, i8** %4
store i32 %1, i32* %5
store i32 %2, i32* %6
store i8 0, i8* %10
store i8 -1, i8* %11
store i32 0, i32* %7
br label %12
12: ; preds = %24, %3
%13 = load i32, i32* %7
%14 = load i32, i32* %5
%15 = load i32, i32* %6
%16 = mul nsw i32 %14, %15
%17 = icmp slt i32 %13, %16
br i1 %17, label %18, label %27
18: ; preds = %12
%19 = load i8, i8* %10
%20 = load i8*, i8** %4
%21 = load i32, i32* %7
%22 = sext i32 %21 to i64
%23 = getelementptr inbounds i8, i8* %20, i64 %22
store i8 %19, i8* %23
br label %24
24: ; preds = %18
%25 = load i32, i32* %7
%26 = add nsw i32 %25, 1
store i32 %26, i32* %7
br label %12
27: ; preds = %12
%28 = load i8*, i8** %4
%29 = load i32, i32* %5
%30 = load i32, i32* %6
%31 = load i32, i32* %5
%32 = sdiv i32 %31, 4
%33 = load i8, i8* %11
%34 = call i32 @draw_wedge(i8* %28, i32 %29, i32 %30, i32 %32, i32 0, i32 50, i32 1, i8 zeroext %33)
%35 = load i8*, i8** %4
%36 = load i32, i32* %5
%37 = load i32, i32* %6
%38 = load i32, i32* %5
%39 = mul nsw i32 3, %38
%40 = sdiv i32 %39, 4
%41 = load i8, i8* %11
%42 = call i32 @draw_wedge(i8* %35, i32 %36, i32 %37, i32 %40, i32 0, i32 50, i32 1, i8 zeroext %41)
%43 = load i8*, i8** %4
%44 = load i32, i32* %5
%45 = load i32, i32* %6
%46 = load i32, i32* %5
%47 = sub nsw i32 %46, 1
%48 = load i32, i32* %6
%49 = sdiv i32 %48, 4
%50 = load i8, i8* %11
%51 = call i32 @draw_wedge(i8* %43, i32 %44, i32 %45, i32 %47, i32 %49, i32 50, i32 2, i8 zeroext %50)
%52 = load i8*, i8** %4
%53 = load i32, i32* %5
%54 = load i32, i32* %6
%55 = load i32, i32* %5
%56 = sub nsw i32 %55, 1
%57 = load i32, i32* %6
%58 = mul nsw i32 3, %57
%59 = sdiv i32 %58, 4
%60 = load i8, i8* %11
%61 = call i32 @draw_wedge(i8* %52, i32 %53, i32 %54, i32 %56, i32 %59, i32 50, i32 2, i8 zeroext %60)
%62 = load i8*, i8** %4
%63 = load i32, i32* %5
%64 = load i32, i32* %6
%65 = load i32, i32* %5
%66 = sdiv i32 %65, 4
%67 = load i32, i32* %6
%68 = sub nsw i32 %67, 1
%69 = load i8, i8* %11
%70 = call i32 @draw_wedge(i8* %62, i32 %63, i32 %64, i32 %66, i32 %68, i32 50, i32 3, i8 zeroext %69)
%71 = load i8*, i8** %4
%72 = load i32, i32* %5
%73 = load i32, i32* %6
%74 = load i32, i32* %5
%75 = mul nsw i32 3, %74
%76 = sdiv i32 %75, 4
%77 = load i32, i32* %6
%78 = sub nsw i32 %77, 1
%79 = load i8, i8* %11
%80 = call i32 @draw_wedge(i8* %71, i32 %72, i32 %73, i32 %76, i32 %78, i32 50, i32 3, i8 zeroext %79)
%81 = load i8*, i8** %4
%82 = load i32, i32* %5
%83 = load i32, i32* %6
%84 = load i32, i32* %6
%85 = sdiv i32 %84, 4
%86 = load i8, i8* %11
%87 = call i32 @draw_wedge(i8* %81, i32 %82, i32 %83, i32 0, i32 %85, i32 50, i32 4, i8 zeroext %86)
%88 = load i8*, i8** %4
%89 = load i32, i32* %5
%90 = load i32, i32* %6
%91 = load i32, i32* %6
%92 = mul nsw i32 3, %91
%93 = sdiv i32 %92, 4
%94 = load i8, i8* %11
%95 = call i32 @draw_wedge(i8* %88, i32 %89, i32 %90, i32 0, i32 %93, i32 50, i32 4, i8 zeroext %94)
store i32 0, i32* %7
br label %96
96: ; preds = %184, %27
%97 = load i32, i32* %7
%98 = icmp slt i32 %97, 50
br i1 %98, label %99, label %187
99: ; preds = %96
%100 = load i32, i32* %7
%101 = srem i32 %100, 10
%102 = mul nsw i32 %101, 10
%103 = add nsw i32 %102, 10
store i32 %103, i32* %9
%104 = load i32, i32* %5
%105 = sdiv i32 %104, 2
%106 = sub nsw i32 %105, 50
store i32 %106, i32* %8
br label %107
107: ; preds = %140, %99
%108 = load i32, i32* %8
%109 = load i32, i32* %5
%110 = sdiv i32 %109, 2
%111 = sub nsw i32 %110, 50
%112 = load i32, i32* %9
%113 = add nsw i32 %111, %112
%114 = icmp slt i32 %108, %113
br i1 %114, label %115, label %143
115: ; preds = %107
%116 = load i8, i8* %11
%117 = load i8*, i8** %4
%118 = load i32, i32* %7
%119 = load i32, i32* %5
%120 = mul nsw i32 %118, %119
%121 = load i32, i32* %5
%122 = add nsw i32 %120, %121
%123 = load i32, i32* %8
%124 = sub nsw i32 %122, %123
%125 = sub nsw i32 %124, 1
%126 = sext i32 %125 to i64
%127 = getelementptr inbounds i8, i8* %117, i64 %126
store i8 %116, i8* %127
%128 = load i8, i8* %11
%129 = load i8*, i8** %4
%130 = load i32, i32* %6
%131 = load i32, i32* %7
%132 = sub nsw i32 %130, %131
%133 = sub nsw i32 %132, 1
%134 = load i32, i32* %5
%135 = mul nsw i32 %133, %134
%136 = load i32, i32* %8
%137 = add nsw i32 %135, %136
%138 = sext i32 %137 to i64
%139 = getelementptr inbounds i8, i8* %129, i64 %138
store i8 %128, i8* %139
br label %140
140: ; preds = %115
%141 = load i32, i32* %8
%142 = add nsw i32 %141, 1
store i32 %142, i32* %8
br label %107
143: ; preds = %107
%144 = load i32, i32* %6
%145 = sdiv i32 %144, 2
%146 = sub nsw i32 %145, 50
store i32 %146, i32* %8
br label %147
147: ; preds = %180, %143
%148 = load i32, i32* %8
%149 = load i32, i32* %6
%150 = sdiv i32 %149, 2
%151 = sub nsw i32 %150, 50
%152 = load i32, i32* %9
%153 = add nsw i32 %151, %152
%154 = icmp slt i32 %148, %153
br i1 %154, label %155, label %183
155: ; preds = %147
%156 = load i8, i8* %11
%157 = load i8*, i8** %4
%158 = load i32, i32* %8
%159 = load i32, i32* %5
%160 = mul nsw i32 %158, %159
%161 = load i32, i32* %7
%162 = add nsw i32 %160, %161
%163 = sext i32 %162 to i64
%164 = getelementptr inbounds i8, i8* %157, i64 %163
store i8 %156, i8* %164
%165 = load i8, i8* %11
%166 = load i8*, i8** %4
%167 = load i32, i32* %6
%168 = load i32, i32* %8
%169 = sub nsw i32 %167, %168
%170 = sub nsw i32 %169, 1
%171 = load i32, i32* %5
%172 = mul nsw i32 %170, %171
%173 = load i32, i32* %5
%174 = add nsw i32 %172, %173
%175 = load i32, i32* %7
%176 = sub nsw i32 %174, %175
%177 = sub nsw i32 %176, 1
%178 = sext i32 %177 to i64
%179 = getelementptr inbounds i8, i8* %166, i64 %178
store i8 %165, i8* %179
br label %180
180: ; preds = %155
%181 = load i32, i32* %8
%182 = add nsw i32 %181, 1
store i32 %182, i32* %8
br label %147
183: ; preds = %147
br label %184
184: ; preds = %183
%185 = load i32, i32* %7
%186 = add nsw i32 %185, 1
store i32 %186, i32* %7
br label %96
187: ; preds = %96
ret void
}

LLVM IR (-O2):
define void @robovi(i8* %0, i32 %1, i32 %2) {
%4 = mul i32 %2, %1
%5 = icmp sgt i32 %4, 0
br i1 %5, label %6, label %8
6: ; preds = %3
%7 = zext i32 %4 to i64
br label %8
8: ; preds = %6, %3
%9 = sdiv i32 %1, 4
%10 = tail call i32 @draw_wedge(i8* %0, i32 %1, i32 %2, i32 %9, i32 0, i32 50, i32 1, i8 zeroext -1)
%11 = mul nsw i32 %1, 3
%12 = sdiv i32 %11, 4
%13 = tail call i32 @draw_wedge(i8* %0, i32 %1, i32 %2, i32 %12, i32 0, i32 50, i32 1, i8 zeroext -1)
%14 = add nsw i32 %1, -1
%15 = sdiv i32 %2, 4
%16 = tail call i32 @draw_wedge(i8* %0, i32 %1, i32 %2, i32 %14, i32 %15, i32 50, i32 2, i8 zeroext -1)
%17 = mul nsw i32 %2, 3
%18 = sdiv i32 %17, 4
%19 = tail call i32 @draw_wedge(i8* %0, i32 %1, i32 %2, i32 %14, i32 %18, i32 50, i32 2, i8 zeroext -1)
%20 = add nsw i32 %2, -1
%21 = tail call i32 @draw_wedge(i8* %0, i32 %1, i32 %2, i32 %9, i32 %20, i32 50, i32 3, i8 zeroext -1)
%22 = tail call i32 @draw_wedge(i8* %0, i32 %1, i32 %2, i32 %12, i32 %20, i32 50, i32 3, i8 zeroext -1)
%23 = tail call i32 @draw_wedge(i8* %0, i32 %1, i32 %2, i32 0, i32 %15, i32 50, i32 4, i8 zeroext -1)
%24 = tail call i32 @draw_wedge(i8* %0, i32 %1, i32 %2, i32 0, i32 %18, i32 50, i32 4, i8 zeroext -1)
%25 = sdiv i32 %1, 2
%26 = add nsw i32 %25, -50
%27 = sdiv i32 %2, 2
%28 = add nsw i32 %27, -50
%29 = add nsw i32 %25, -50
%30 = sext i32 %29 to i64
%31 = add nsw i32 %27, -50
%32 = sext i32 %31 to i64
%33 = sext i32 %1 to i64
br label %34
34: ; preds = %8, %80
%35 = phi i64 [ 0, %8 ], [ %81, %80 ]
%36 = trunc i64 %35 to i8
%37 = urem i8 %36, 10
%38 = mul nuw nsw i8 %37, 10
%39 = add nuw i8 %38, 10
%40 = zext i8 %39 to i32
%41 = add nsw i32 %26, %40
%42 = trunc i64 %35 to i32
%43 = xor i32 %42, -1
%44 = add i32 %43, %2
%45 = mul nsw i32 %44, %1
%46 = sext i32 %45 to i64
%47 = sext i32 %41 to i64
%48 = trunc i64 %35 to i32
%49 = mul i32 %48, %1
%50 = add i32 %49, %1
br label %51
51: ; preds = %34, %51
%52 = phi i64 [ %30, %34 ], [ %60, %51 ]
%53 = trunc i64 %52 to i32
%54 = xor i32 %53, -1
%55 = add i32 %50, %54
%56 = sext i32 %55 to i64
%57 = getelementptr inbounds i8, i8* %0, i64 %56
store i8 -1, i8* %57
%58 = add nsw i64 %52, %46
%59 = getelementptr inbounds i8, i8* %0, i64 %58
store i8 -1, i8* %59
%60 = add nsw i64 %52, 1
%61 = icmp slt i64 %60, %47
br i1 %61, label %51, label %62
62: ; preds = %51
%63 = add nsw i32 %28, %40
%64 = add i32 %43, %1
%65 = sext i32 %63 to i64
br label %66
66: ; preds = %62, %66
%67 = phi i64 [ %32, %62 ], [ %78, %66 ]
%68 = mul nsw i64 %67, %33
%69 = add nsw i64 %68, %35
%70 = getelementptr inbounds i8, i8* %0, i64 %69
store i8 -1, i8* %70
%71 = trunc i64 %67 to i32
%72 = xor i32 %71, -1
%73 = add i32 %72, %2
%74 = mul nsw i32 %73, %1
%75 = add i32 %64, %74
%76 = sext i32 %75 to i64
%77 = getelementptr inbounds i8, i8* %0, i64 %76
store i8 -1, i8* %77
%78 = add nsw i64 %67, 1
%79 = icmp slt i64 %78, %65
br i1 %79, label %66, label %80
80: ; preds = %66
%81 = add nuw nsw i64 %35, 1
%82 = icmp eq i64 %81, 50
br i1 %82, label %83, label %34
83: ; preds = %80
ret void
}