#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*/ memset(char *, char, int);
int /*<<< orphan*/ printf(char *, char *);
void drawField(char *playground, int posx, int posy) {
  int i, k, p;
  char field[154];
  memset(field, ' ', 153);
  field[153] = 0;
  for (i = 1; i <= 9; i++) {
    field[(i * 17) - 1] = '\n';
  }
  k = 17 * 2;
  for (i = 0; i < 7; i++) {
    for (p = 0; p < 16; p++) {
      if ((p + 1) % 4 == 0 && i % 2 == 0)
        field[k + i * 17 + p] = '+';
      if ((p + 1) > 4 && (p + 1) % 4 != 0 && i % 2 == 0)
        field[k + i * 17 + p] = '-';
      if (i == 1 && (p + 1) % 4 == 0)
        field[k + i * 17 + p] = '|';
      if (i == 3 && (p + 1) % 4 == 0)
        field[k + i * 17 + p] = '|';
      if (i == 5 && (p + 1) % 4 == 0)
        field[k + i * 17 + p] = '|';
    }
  }
  field[1 + 4 * posx] = '|';
  field[17 + 1 + 4 * posx] = 'V';
  field[(1 + 2 * posy) * 17] = '-';
  field[(1 + 2 * posy) * 17 + 1] = '-';
  field[(1 + 2 * posy) * 17 + 2] = '>';
  for (i = 3; i < 9; i += 2) {
    for (p = 0; p < 16; p++) {
      if (p == 5)
        field[i * 17 + p] = playground[(((i - 1) / 2) - 1) * 3 + 0];
      if (p == 9)
        field[i * 17 + p] = playground[(((i - 1) / 2) - 1) * 3 + 1];
      if (p == 13)
        field[i * 17 + p] = playground[(((i - 1) / 2) - 1) * 3 + 2];
    }
  }
  field[153] = '\0';
  printf("%s\n", field);
}


x86 assembly (clang, -O0):
<drawField>:
push   %rbp
mov    %rsp,%rbp
sub    $0xe0,%rsp
mov    %rdi,-0x8(%rbp)
mov    %esi,-0xc(%rbp)
mov    %edx,-0x10(%rbp)
lea    -0xc0(%rbp),%rdi
mov    $0x20,%esi
mov    $0x99,%edx
call   1040 <memset@plt>
movb   $0x0,-0x27(%rbp)
movl   $0x1,-0x14(%rbp)
cmpl   $0x9,-0x14(%rbp)
jg     117f <drawField+0x5f>
imul   $0x11,-0x14(%rbp),%eax
sub    $0x1,%eax
cltq
movb   $0xa,-0xc0(%rbp,%rax,1)
0a
mov    -0x14(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x14(%rbp)
jmp    1156 <drawField+0x36>
movl   $0x22,-0x18(%rbp)
movl   $0x0,-0x14(%rbp)
cmpl   $0x7,-0x14(%rbp)
jge    1304 <drawField+0x1e4>
movl   $0x0,-0x1c(%rbp)
cmpl   $0x10,-0x1c(%rbp)
jge    12f1 <drawField+0x1d1>
mov    -0x1c(%rbp),%eax
add    $0x1,%eax
mov    $0x4,%ecx
cltd
idiv   %ecx
cmp    $0x0,%edx
jne    11e9 <drawField+0xc9>
mov    -0x14(%rbp),%eax
mov    $0x2,%ecx
cltd
idiv   %ecx
cmp    $0x0,%edx
jne    11e9 <drawField+0xc9>
mov    -0x18(%rbp),%eax
imul   $0x11,-0x14(%rbp),%ecx
add    %ecx,%eax
add    -0x1c(%rbp),%eax
cltq
movb   $0x2b,-0xc0(%rbp,%rax,1)
2b
mov    -0x1c(%rbp),%eax
add    $0x1,%eax
cmp    $0x4,%eax
jle    1239 <drawField+0x119>
mov    -0x1c(%rbp),%eax
add    $0x1,%eax
mov    $0x4,%ecx
cltd
idiv   %ecx
cmp    $0x0,%edx
je     1239 <drawField+0x119>
mov    -0x14(%rbp),%eax
mov    $0x2,%ecx
cltd
idiv   %ecx
cmp    $0x0,%edx
jne    1239 <drawField+0x119>
mov    -0x18(%rbp),%eax
imul   $0x11,-0x14(%rbp),%ecx
add    %ecx,%eax
add    -0x1c(%rbp),%eax
cltq
movb   $0x2d,-0xc0(%rbp,%rax,1)
2d
cmpl   $0x1,-0x14(%rbp)
jne    1270 <drawField+0x150>
mov    -0x1c(%rbp),%eax
add    $0x1,%eax
mov    $0x4,%ecx
cltd
idiv   %ecx
cmp    $0x0,%edx
jne    1270 <drawField+0x150>
mov    -0x18(%rbp),%eax
imul   $0x11,-0x14(%rbp),%ecx
add    %ecx,%eax
add    -0x1c(%rbp),%eax
cltq
movb   $0x7c,-0xc0(%rbp,%rax,1)
7c
cmpl   $0x3,-0x14(%rbp)
jne    12a7 <drawField+0x187>
mov    -0x1c(%rbp),%eax
add    $0x1,%eax
mov    $0x4,%ecx
cltd
idiv   %ecx
cmp    $0x0,%edx
jne    12a7 <drawField+0x187>
mov    -0x18(%rbp),%eax
imul   $0x11,-0x14(%rbp),%ecx
add    %ecx,%eax
add    -0x1c(%rbp),%eax
cltq
movb   $0x7c,-0xc0(%rbp,%rax,1)
7c
cmpl   $0x5,-0x14(%rbp)
jne    12de <drawField+0x1be>
mov    -0x1c(%rbp),%eax
add    $0x1,%eax
mov    $0x4,%ecx
cltd
idiv   %ecx
cmp    $0x0,%edx
jne    12de <drawField+0x1be>
mov    -0x18(%rbp),%eax
imul   $0x11,-0x14(%rbp),%ecx
add    %ecx,%eax
add    -0x1c(%rbp),%eax
cltq
movb   $0x7c,-0xc0(%rbp,%rax,1)
7c
jmp    12e3 <drawField+0x1c3>
mov    -0x1c(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x1c(%rbp)
jmp    119e <drawField+0x7e>
jmp    12f6 <drawField+0x1d6>
mov    -0x14(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x14(%rbp)
jmp    118d <drawField+0x6d>
mov    -0xc(%rbp),%eax
shl    $0x2,%eax
add    $0x1,%eax
cltq
movb   $0x7c,-0xc0(%rbp,%rax,1)
7c
mov    -0xc(%rbp),%eax
shl    $0x2,%eax
add    $0x12,%eax
cltq
movb   $0x56,-0xc0(%rbp,%rax,1)
56
mov    -0x10(%rbp),%eax
shl    $0x1,%eax
add    $0x1,%eax
imul   $0x11,%eax,%eax
cltq
movb   $0x2d,-0xc0(%rbp,%rax,1)
2d
mov    -0x10(%rbp),%eax
shl    $0x1,%eax
add    $0x1,%eax
imul   $0x11,%eax,%eax
add    $0x1,%eax
cltq
movb   $0x2d,-0xc0(%rbp,%rax,1)
2d
mov    -0x10(%rbp),%eax
shl    $0x1,%eax
add    $0x1,%eax
imul   $0x11,%eax,%eax
add    $0x2,%eax
cltq
movb   $0x3e,-0xc0(%rbp,%rax,1)
3e
movl   $0x3,-0x14(%rbp)
cmpl   $0x9,-0x14(%rbp)
jge    149b <drawField+0x37b>
movl   $0x0,-0x1c(%rbp)
cmpl   $0x10,-0x1c(%rbp)
jge    1488 <drawField+0x368>
cmpl   $0x5,-0x1c(%rbp)
jne    13df <drawField+0x2bf>
mov    -0x8(%rbp),%rax
mov    %rax,-0xc8(%rbp)
mov    -0x14(%rbp),%eax
sub    $0x1,%eax
mov    $0x2,%ecx
cltd
idiv   %ecx
mov    %eax,%ecx
mov    -0xc8(%rbp),%rax
sub    $0x1,%ecx
imul   $0x3,%ecx,%ecx
add    $0x0,%ecx
movslq %ecx,%rcx
mov    (%rax,%rcx,1),%cl
imul   $0x11,-0x14(%rbp),%eax
add    -0x1c(%rbp),%eax
cltq
mov    %cl,-0xc0(%rbp,%rax,1)
cmpl   $0x9,-0x1c(%rbp)
jne    142a <drawField+0x30a>
mov    -0x8(%rbp),%rax
mov    %rax,-0xd0(%rbp)
mov    -0x14(%rbp),%eax
sub    $0x1,%eax
mov    $0x2,%ecx
cltd
idiv   %ecx
mov    %eax,%ecx
mov    -0xd0(%rbp),%rax
sub    $0x1,%ecx
imul   $0x3,%ecx,%ecx
add    $0x1,%ecx
movslq %ecx,%rcx
mov    (%rax,%rcx,1),%cl
imul   $0x11,-0x14(%rbp),%eax
add    -0x1c(%rbp),%eax
cltq
mov    %cl,-0xc0(%rbp,%rax,1)
cmpl   $0xd,-0x1c(%rbp)
jne    1475 <drawField+0x355>
mov    -0x8(%rbp),%rax
mov    %rax,-0xd8(%rbp)
mov    -0x14(%rbp),%eax
sub    $0x1,%eax
mov    $0x2,%ecx
cltd
idiv   %ecx
mov    %eax,%ecx
mov    -0xd8(%rbp),%rax
sub    $0x1,%ecx
imul   $0x3,%ecx,%ecx
add    $0x2,%ecx
movslq %ecx,%rcx
mov    (%rax,%rcx,1),%cl
imul   $0x11,-0x14(%rbp),%eax
add    -0x1c(%rbp),%eax
cltq
mov    %cl,-0xc0(%rbp,%rax,1)
jmp    147a <drawField+0x35a>
mov    -0x1c(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x1c(%rbp)
jmp    138a <drawField+0x26a>
jmp    148d <drawField+0x36d>
mov    -0x14(%rbp),%eax
add    $0x2,%eax
mov    %eax,-0x14(%rbp)
jmp    1379 <drawField+0x259>
movb   $0x0,-0x27(%rbp)
lea    -0xc0(%rbp),%rsi
lea    0xb53(%rip),%rdi
call   1030 <printf@plt>
add    $0xe0,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<drawField>:
push   %rbp
push   %r15
push   %r14
push   %r12
push   %rbx
sub    $0xa0,%rsp
mov    %edx,%r14d
mov    %esi,%r15d
mov    %rdi,%r12
mov    %rsp,%rdi
mov    $0x20,%esi
mov    $0x99,%edx
call   1040 <memset@plt>
movb   $0xa,0x10(%rsp)
movb   $0xa,0x21(%rsp)
movb   $0xa,0x32(%rsp)
movb   $0xa,0x43(%rsp)
movb   $0xa,0x54(%rsp)
movb   $0xa,0x65(%rsp)
movb   $0xa,0x76(%rsp)
movb   $0xa,0x87(%rsp)
0a
movw   $0xa,0x98(%rsp)
lea    0x22(%rsp),%r8
xor    %ecx,%ecx
jmp    11a2 <drawField+0x82>
nopl   0x0(%rax,%rax,1)
add    $0x1,%rcx
add    $0x11,%r8
cmp    $0x7,%rcx
je     1228 <drawField+0x108>
xor    %edx,%edx
jmp    11b9 <drawField+0x99>
cs nopw 0x0(%rax,%rax,1)
mov    %rbp,%rdx
cmp    $0x10,%rbp
je     1190 <drawField+0x70>
mov    %ecx,%edi
and    $0x1,%edi
lea    0x1(%rdx),%rbp
mov    %ebp,%esi
and    $0x3,%esi
or     %rdi,%rsi
jne    11d1 <drawField+0xb1>
movb   $0x2b,(%r8,%rdx,1)
cmp    $0x4,%rdx
jb     11f0 <drawField+0xd0>
mov    %ebp,%esi
and    $0x3,%esi
test   %rsi,%rsi
je     11f0 <drawField+0xd0>
mov    %ecx,%esi
and    $0x1,%esi
test   %rsi,%rsi
jne    11f0 <drawField+0xd0>
movb   $0x2d,(%r8,%rdx,1)
test   $0x3,%bpl
setne  %bl
cmp    $0x1,%rcx
jne    1206 <drawField+0xe6>
test   %bl,%bl
jne    1206 <drawField+0xe6>
movb   $0x7c,0x33(%rsp,%rdx,1)
cmp    $0x3,%rcx
setne  %al
or     %bl,%al
jne    1216 <drawField+0xf6>
movb   $0x7c,0x55(%rsp,%rdx,1)
cmp    $0x5,%rcx
setne  %al
or     %bl,%al
jne    11b0 <drawField+0x90>
movb   $0x7c,0x77(%rsp,%rdx,1)
jmp    11b0 <drawField+0x90>
movslq %r15d,%rax
lea    0x0(,%rax,4),%rcx
movslq %ecx,%rcx
movb   $0x7c,0x1(%rsp,%rcx,1)
movb   $0x56,0x12(%rsp,%rax,4)
lea    (%r14,%r14,1),%eax
add    $0x1,%eax
cltq
mov    %rax,%rcx
shl    $0x4,%rcx
add    %rax,%rcx
movb   $0x2d,(%rsp,%rcx,1)
movw   $0x3e2d,0x1(%rsp,%rcx,1)
xor    %eax,%eax
jmp    1282 <drawField+0x162>
cs nopw 0x0(%rax,%rax,1)
nopl   0x0(%rax)
movzbl 0x1(%r12),%ecx
mov    %cl,0x3c(%rsp)
add    $0x2,%eax
cmp    $0x10,%eax
je     12ab <drawField+0x18b>
cmp    $0x4,%eax
je     12a0 <drawField+0x180>
cmp    $0x8,%eax
je     1270 <drawField+0x150>
cmp    $0xc,%eax
jne    127a <drawField+0x15a>
movzbl 0x2(%r12),%ecx
mov    %cl,0x40(%rsp)
jmp    127a <drawField+0x15a>
nopl   (%rax)
movzbl (%r12),%ecx
mov    %cl,0x38(%rsp)
jmp    127a <drawField+0x15a>
mov    0x3(%r12),%al
mov    %al,0x5a(%rsp)
mov    0x4(%r12),%al
mov    %al,0x5e(%rsp)
mov    0x5(%r12),%al
mov    %al,0x62(%rsp)
xor    %eax,%eax
jmp    12e5 <drawField+0x1c5>
nopw   0x0(%rax,%rax,1)
movzbl 0x7(%r12),%ecx
mov    %cl,0x80(%rsp)
add    $0x2,%eax
cmp    $0x10,%eax
je     131c <drawField+0x1fc>
cmp    $0x4,%eax
je     1310 <drawField+0x1f0>
cmp    $0x8,%eax
je     12d0 <drawField+0x1b0>
cmp    $0xc,%eax
jne    12dd <drawField+0x1bd>
movzbl 0x8(%r12),%ecx
mov    %cl,0x84(%rsp)
jmp    12dd <drawField+0x1bd>
cs nopw 0x0(%rax,%rax,1)
nopl   (%rax)
movzbl 0x6(%r12),%ecx
mov    %cl,0x7c(%rsp)
jmp    12dd <drawField+0x1bd>
movb   $0x0,0x99(%rsp)
lea    0xcd5(%rip),%rdi
mov    %rsp,%rsi
call   1030 <printf@plt>
add    $0xa0,%rsp
pop    %rbx
pop    %r12
pop    %r14
pop    %r15
pop    %rbp
ret

LLVM IR (-O0):
@.str = [4 x i8] c"%s\0A\00"
define void @drawField(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 [154 x i8]
store i8* %0, i8** %4
store i32 %1, i32* %5
store i32 %2, i32* %6
%11 = getelementptr inbounds [154 x i8], [154 x i8]* %10, i64 0, i64 0
%12 = call i32 @memset(i8* %11, i8 signext 32, i32 153)
%13 = getelementptr inbounds [154 x i8], [154 x i8]* %10, i64 0, i64 153
store i8 0, i8* %13
store i32 1, i32* %7
br label %14
14: ; preds = %23, %3
%15 = load i32, i32* %7
%16 = icmp sle i32 %15, 9
br i1 %16, label %17, label %26
17: ; preds = %14
%18 = load i32, i32* %7
%19 = mul nsw i32 %18, 17
%20 = sub nsw i32 %19, 1
%21 = sext i32 %20 to i64
%22 = getelementptr inbounds [154 x i8], [154 x i8]* %10, i64 0, i64 %21
store i8 10, i8* %22
br label %23
23: ; preds = %17
%24 = load i32, i32* %7
%25 = add nsw i32 %24, 1
store i32 %25, i32* %7
br label %14
26: ; preds = %14
store i32 34, i32* %8
store i32 0, i32* %7
br label %27
27: ; preds = %130, %26
%28 = load i32, i32* %7
%29 = icmp slt i32 %28, 7
br i1 %29, label %30, label %133
30: ; preds = %27
store i32 0, i32* %9
br label %31
31: ; preds = %126, %30
%32 = load i32, i32* %9
%33 = icmp slt i32 %32, 16
br i1 %33, label %34, label %129
34: ; preds = %31
%35 = load i32, i32* %9
%36 = add nsw i32 %35, 1
%37 = srem i32 %36, 4
%38 = icmp eq i32 %37, 0
br i1 %38, label %39, label %52
39: ; preds = %34
%40 = load i32, i32* %7
%41 = srem i32 %40, 2
%42 = icmp eq i32 %41, 0
br i1 %42, label %43, label %52
43: ; preds = %39
%44 = load i32, i32* %8
%45 = load i32, i32* %7
%46 = mul nsw i32 %45, 17
%47 = add nsw i32 %44, %46
%48 = load i32, i32* %9
%49 = add nsw i32 %47, %48
%50 = sext i32 %49 to i64
%51 = getelementptr inbounds [154 x i8], [154 x i8]* %10, i64 0, i64 %50
store i8 43, i8* %51
br label %52
52: ; preds = %43, %39, %34
%53 = load i32, i32* %9
%54 = add nsw i32 %53, 1
%55 = icmp sgt i32 %54, 4
br i1 %55, label %56, label %74
56: ; preds = %52
%57 = load i32, i32* %9
%58 = add nsw i32 %57, 1
%59 = srem i32 %58, 4
%60 = icmp ne i32 %59, 0
br i1 %60, label %61, label %74
61: ; preds = %56
%62 = load i32, i32* %7
%63 = srem i32 %62, 2
%64 = icmp eq i32 %63, 0
br i1 %64, label %65, label %74
65: ; preds = %61
%66 = load i32, i32* %8
%67 = load i32, i32* %7
%68 = mul nsw i32 %67, 17
%69 = add nsw i32 %66, %68
%70 = load i32, i32* %9
%71 = add nsw i32 %69, %70
%72 = sext i32 %71 to i64
%73 = getelementptr inbounds [154 x i8], [154 x i8]* %10, i64 0, i64 %72
store i8 45, i8* %73
br label %74
74: ; preds = %65, %61, %56, %52
%75 = load i32, i32* %7
%76 = icmp eq i32 %75, 1
br i1 %76, label %77, label %91
77: ; preds = %74
%78 = load i32, i32* %9
%79 = add nsw i32 %78, 1
%80 = srem i32 %79, 4
%81 = icmp eq i32 %80, 0
br i1 %81, label %82, label %91
82: ; preds = %77
%83 = load i32, i32* %8
%84 = load i32, i32* %7
%85 = mul nsw i32 %84, 17
%86 = add nsw i32 %83, %85
%87 = load i32, i32* %9
%88 = add nsw i32 %86, %87
%89 = sext i32 %88 to i64
%90 = getelementptr inbounds [154 x i8], [154 x i8]* %10, i64 0, i64 %89
store i8 124, i8* %90
br label %91
91: ; preds = %82, %77, %74
%92 = load i32, i32* %7
%93 = icmp eq i32 %92, 3
br i1 %93, label %94, label %108
94: ; preds = %91
%95 = load i32, i32* %9
%96 = add nsw i32 %95, 1
%97 = srem i32 %96, 4
%98 = icmp eq i32 %97, 0
br i1 %98, label %99, label %108
99: ; preds = %94
%100 = load i32, i32* %8
%101 = load i32, i32* %7
%102 = mul nsw i32 %101, 17
%103 = add nsw i32 %100, %102
%104 = load i32, i32* %9
%105 = add nsw i32 %103, %104
%106 = sext i32 %105 to i64
%107 = getelementptr inbounds [154 x i8], [154 x i8]* %10, i64 0, i64 %106
store i8 124, i8* %107
br label %108
108: ; preds = %99, %94, %91
%109 = load i32, i32* %7
%110 = icmp eq i32 %109, 5
br i1 %110, label %111, label %125
111: ; preds = %108
%112 = load i32, i32* %9
%113 = add nsw i32 %112, 1
%114 = srem i32 %113, 4
%115 = icmp eq i32 %114, 0
br i1 %115, label %116, label %125
116: ; preds = %111
%117 = load i32, i32* %8
%118 = load i32, i32* %7
%119 = mul nsw i32 %118, 17
%120 = add nsw i32 %117, %119
%121 = load i32, i32* %9
%122 = add nsw i32 %120, %121
%123 = sext i32 %122 to i64
%124 = getelementptr inbounds [154 x i8], [154 x i8]* %10, i64 0, i64 %123
store i8 124, i8* %124
br label %125
125: ; preds = %116, %111, %108
br label %126
126: ; preds = %125
%127 = load i32, i32* %9
%128 = add nsw i32 %127, 1
store i32 %128, i32* %9
br label %31
129: ; preds = %31
br label %130
130: ; preds = %129
%131 = load i32, i32* %7
%132 = add nsw i32 %131, 1
store i32 %132, i32* %7
br label %27
133: ; preds = %27
%134 = load i32, i32* %5
%135 = mul nsw i32 4, %134
%136 = add nsw i32 1, %135
%137 = sext i32 %136 to i64
%138 = getelementptr inbounds [154 x i8], [154 x i8]* %10, i64 0, i64 %137
store i8 124, i8* %138
%139 = load i32, i32* %5
%140 = mul nsw i32 4, %139
%141 = add nsw i32 18, %140
%142 = sext i32 %141 to i64
%143 = getelementptr inbounds [154 x i8], [154 x i8]* %10, i64 0, i64 %142
store i8 86, i8* %143
%144 = load i32, i32* %6
%145 = mul nsw i32 2, %144
%146 = add nsw i32 1, %145
%147 = mul nsw i32 %146, 17
%148 = sext i32 %147 to i64
%149 = getelementptr inbounds [154 x i8], [154 x i8]* %10, i64 0, i64 %148
store i8 45, i8* %149
%150 = load i32, i32* %6
%151 = mul nsw i32 2, %150
%152 = add nsw i32 1, %151
%153 = mul nsw i32 %152, 17
%154 = add nsw i32 %153, 1
%155 = sext i32 %154 to i64
%156 = getelementptr inbounds [154 x i8], [154 x i8]* %10, i64 0, i64 %155
store i8 45, i8* %156
%157 = load i32, i32* %6
%158 = mul nsw i32 2, %157
%159 = add nsw i32 1, %158
%160 = mul nsw i32 %159, 17
%161 = add nsw i32 %160, 2
%162 = sext i32 %161 to i64
%163 = getelementptr inbounds [154 x i8], [154 x i8]* %10, i64 0, i64 %162
store i8 62, i8* %163
store i32 3, i32* %7
br label %164
164: ; preds = %236, %133
%165 = load i32, i32* %7
%166 = icmp slt i32 %165, 9
br i1 %166, label %167, label %239
167: ; preds = %164
store i32 0, i32* %9
br label %168
168: ; preds = %232, %167
%169 = load i32, i32* %9
%170 = icmp slt i32 %169, 16
br i1 %170, label %171, label %235
171: ; preds = %168
%172 = load i32, i32* %9
%173 = icmp eq i32 %172, 5
br i1 %173, label %174, label %191
174: ; preds = %171
%175 = load i8*, i8** %4
%176 = load i32, i32* %7
%177 = sub nsw i32 %176, 1
%178 = sdiv i32 %177, 2
%179 = sub nsw i32 %178, 1
%180 = mul nsw i32 %179, 3
%181 = add nsw i32 %180, 0
%182 = sext i32 %181 to i64
%183 = getelementptr inbounds i8, i8* %175, i64 %182
%184 = load i8, i8* %183
%185 = load i32, i32* %7
%186 = mul nsw i32 %185, 17
%187 = load i32, i32* %9
%188 = add nsw i32 %186, %187
%189 = sext i32 %188 to i64
%190 = getelementptr inbounds [154 x i8], [154 x i8]* %10, i64 0, i64 %189
store i8 %184, i8* %190
br label %191
191: ; preds = %174, %171
%192 = load i32, i32* %9
%193 = icmp eq i32 %192, 9
br i1 %193, label %194, label %211
194: ; preds = %191
%195 = load i8*, i8** %4
%196 = load i32, i32* %7
%197 = sub nsw i32 %196, 1
%198 = sdiv i32 %197, 2
%199 = sub nsw i32 %198, 1
%200 = mul nsw i32 %199, 3
%201 = add nsw i32 %200, 1
%202 = sext i32 %201 to i64
%203 = getelementptr inbounds i8, i8* %195, i64 %202
%204 = load i8, i8* %203
%205 = load i32, i32* %7
%206 = mul nsw i32 %205, 17
%207 = load i32, i32* %9
%208 = add nsw i32 %206, %207
%209 = sext i32 %208 to i64
%210 = getelementptr inbounds [154 x i8], [154 x i8]* %10, i64 0, i64 %209
store i8 %204, i8* %210
br label %211
211: ; preds = %194, %191
%212 = load i32, i32* %9
%213 = icmp eq i32 %212, 13
br i1 %213, label %214, label %231
214: ; preds = %211
%215 = load i8*, i8** %4
%216 = load i32, i32* %7
%217 = sub nsw i32 %216, 1
%218 = sdiv i32 %217, 2
%219 = sub nsw i32 %218, 1
%220 = mul nsw i32 %219, 3
%221 = add nsw i32 %220, 2
%222 = sext i32 %221 to i64
%223 = getelementptr inbounds i8, i8* %215, i64 %222
%224 = load i8, i8* %223
%225 = load i32, i32* %7
%226 = mul nsw i32 %225, 17
%227 = load i32, i32* %9
%228 = add nsw i32 %226, %227
%229 = sext i32 %228 to i64
%230 = getelementptr inbounds [154 x i8], [154 x i8]* %10, i64 0, i64 %229
store i8 %224, i8* %230
br label %231
231: ; preds = %214, %211
br label %232
232: ; preds = %231
%233 = load i32, i32* %9
%234 = add nsw i32 %233, 1
store i32 %234, i32* %9
br label %168
235: ; preds = %168
br label %236
236: ; preds = %235
%237 = load i32, i32* %7
%238 = add nsw i32 %237, 2
store i32 %238, i32* %7
br label %164
239: ; preds = %164
%240 = getelementptr inbounds [154 x i8], [154 x i8]* %10, i64 0, i64 153
store i8 0, i8* %240
%241 = getelementptr inbounds [154 x i8], [154 x i8]* %10, i64 0, i64 0
%242 = call i32 @printf(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str, i64 0, i64 0), i8* %241)
ret void
}

LLVM IR (-O2):
@.str = [4 x i8] c"%s\0A\00"
define void @drawField(i8* nocapture %0, i32 %1, i32 %2) {
%4 = alloca [154 x i8]
%5 = getelementptr inbounds [154 x i8], [154 x i8]* %4, i64 0, i64 0
%6 = call i32 @memset(i8* %5, i8 signext 32, i32 153)
%7 = getelementptr inbounds [154 x i8], [154 x i8]* %4, i64 0, i64 153
store i8 0, i8* %7
%8 = getelementptr inbounds [154 x i8], [154 x i8]* %4, i64 0, i64 16
store i8 10, i8* %8
%9 = getelementptr inbounds [154 x i8], [154 x i8]* %4, i64 0, i64 33
store i8 10, i8* %9
%10 = getelementptr inbounds [154 x i8], [154 x i8]* %4, i64 0, i64 50
store i8 10, i8* %10
%11 = getelementptr inbounds [154 x i8], [154 x i8]* %4, i64 0, i64 67
store i8 10, i8* %11
%12 = getelementptr inbounds [154 x i8], [154 x i8]* %4, i64 0, i64 84
store i8 10, i8* %12
%13 = getelementptr inbounds [154 x i8], [154 x i8]* %4, i64 0, i64 101
store i8 10, i8* %13
%14 = getelementptr inbounds [154 x i8], [154 x i8]* %4, i64 0, i64 118
store i8 10, i8* %14
%15 = getelementptr inbounds [154 x i8], [154 x i8]* %4, i64 0, i64 135
store i8 10, i8* %15
%16 = getelementptr inbounds [154 x i8], [154 x i8]* %4, i64 0, i64 152
store i8 10, i8* %16
br label %17
17: ; preds = %3, %62
%18 = phi i64 [ 0, %3 ], [ %63, %62 ]
%19 = and i64 %18, 1
%20 = icmp eq i64 %19, 0
%21 = icmp ne i64 %18, 1
%22 = icmp ne i64 %18, 3
%23 = icmp ne i64 %18, 5
%24 = mul nuw nsw i64 %18, 17
br label %25
25: ; preds = %17, %60
%26 = phi i64 [ 0, %17 ], [ %27, %60 ]
%27 = add nuw nsw i64 %26, 1
%28 = and i64 %27, 3
%29 = icmp eq i64 %28, 0
%30 = select i1 %29, i1 %20, i1 false
br i1 %30, label %31, label %35
31: ; preds = %25
%32 = add nuw nsw i64 %26, 34
%33 = add nuw nsw i64 %32, %24
%34 = getelementptr inbounds [154 x i8], [154 x i8]* %4, i64 0, i64 %33
store i8 43, i8* %34
br label %35
35: ; preds = %31, %25
%36 = icmp ult i64 %26, 4
%37 = select i1 %36, i1 true, i1 %29
%38 = xor i1 %37, true
%39 = select i1 %38, i1 %20, i1 false
br i1 %39, label %40, label %44
40: ; preds = %35
%41 = add nuw nsw i64 %26, 34
%42 = add nuw nsw i64 %41, %24
%43 = getelementptr inbounds [154 x i8], [154 x i8]* %4, i64 0, i64 %42
store i8 45, i8* %43
br label %44
44: ; preds = %40, %35
%45 = xor i1 %29, true
%46 = select i1 %21, i1 true, i1 %45
br i1 %46, label %50, label %47
47: ; preds = %44
%48 = add nuw nsw i64 %26, 51
%49 = getelementptr inbounds [154 x i8], [154 x i8]* %4, i64 0, i64 %48
store i8 124, i8* %49
br label %50
50: ; preds = %44, %47
%51 = select i1 %22, i1 true, i1 %45
br i1 %51, label %55, label %52
52: ; preds = %50
%53 = add nuw nsw i64 %26, 85
%54 = getelementptr inbounds [154 x i8], [154 x i8]* %4, i64 0, i64 %53
store i8 124, i8* %54
br label %55
55: ; preds = %50, %52
%56 = select i1 %23, i1 true, i1 %45
br i1 %56, label %60, label %57
57: ; preds = %55
%58 = add nuw nsw i64 %26, 119
%59 = getelementptr inbounds [154 x i8], [154 x i8]* %4, i64 0, i64 %58
store i8 124, i8* %59
br label %60
60: ; preds = %55, %57
%61 = icmp eq i64 %27, 16
br i1 %61, label %62, label %25
62: ; preds = %60
%63 = add nuw nsw i64 %18, 1
%64 = icmp eq i64 %63, 7
br i1 %64, label %65, label %17
65: ; preds = %62
%66 = shl nsw i32 %1, 2
%67 = or i32 %66, 1
%68 = sext i32 %67 to i64
%69 = getelementptr inbounds [154 x i8], [154 x i8]* %4, i64 0, i64 %68
store i8 124, i8* %69
%70 = add nsw i32 %66, 18
%71 = sext i32 %70 to i64
%72 = getelementptr inbounds [154 x i8], [154 x i8]* %4, i64 0, i64 %71
store i8 86, i8* %72
%73 = shl nsw i32 %2, 1
%74 = or i32 %73, 1
%75 = mul nsw i32 %74, 17
%76 = sext i32 %75 to i64
%77 = getelementptr inbounds [154 x i8], [154 x i8]* %4, i64 0, i64 %76
store i8 45, i8* %77
%78 = add nsw i32 %75, 1
%79 = sext i32 %78 to i64
%80 = getelementptr inbounds [154 x i8], [154 x i8]* %4, i64 0, i64 %79
store i8 45, i8* %80
%81 = add nsw i32 %75, 2
%82 = sext i32 %81 to i64
%83 = getelementptr inbounds [154 x i8], [154 x i8]* %4, i64 0, i64 %82
store i8 62, i8* %83
%84 = getelementptr inbounds i8, i8* %0, i64 2
%85 = getelementptr inbounds [154 x i8], [154 x i8]* %4, i64 0, i64 64
%86 = getelementptr inbounds i8, i8* %0, i64 1
%87 = getelementptr inbounds [154 x i8], [154 x i8]* %4, i64 0, i64 60
%88 = getelementptr inbounds [154 x i8], [154 x i8]* %4, i64 0, i64 56
br label %89
89: ; preds = %97, %65
%90 = phi i32 [ 0, %65 ], [ %98, %97 ]
switch i32 %90, label %97 [
i32 4, label %95
i32 8, label %93
i32 12, label %91
]
91: ; preds = %89
%92 = load i8, i8* %84
store i8 %92, i8* %85
br label %97
93: ; preds = %89
%94 = load i8, i8* %86
store i8 %94, i8* %87
br label %97
95: ; preds = %89
%96 = load i8, i8* %0
store i8 %96, i8* %88
br label %97
97: ; preds = %95, %93, %91, %89
%98 = add nuw nsw i32 %90, 2
%99 = icmp eq i32 %98, 16
br i1 %99, label %100, label %89
100: ; preds = %97
%101 = getelementptr inbounds i8, i8* %0, i64 5
%102 = getelementptr inbounds [154 x i8], [154 x i8]* %4, i64 0, i64 98
%103 = getelementptr inbounds i8, i8* %0, i64 4
%104 = getelementptr inbounds [154 x i8], [154 x i8]* %4, i64 0, i64 94
%105 = getelementptr inbounds i8, i8* %0, i64 3
%106 = getelementptr inbounds [154 x i8], [154 x i8]* %4, i64 0, i64 90
%107 = load i8, i8* %105
store i8 %107, i8* %106
%108 = load i8, i8* %103
store i8 %108, i8* %104
%109 = load i8, i8* %101
store i8 %109, i8* %102
%110 = getelementptr inbounds i8, i8* %0, i64 8
%111 = getelementptr inbounds [154 x i8], [154 x i8]* %4, i64 0, i64 132
%112 = getelementptr inbounds i8, i8* %0, i64 7
%113 = getelementptr inbounds [154 x i8], [154 x i8]* %4, i64 0, i64 128
%114 = getelementptr inbounds i8, i8* %0, i64 6
%115 = getelementptr inbounds [154 x i8], [154 x i8]* %4, i64 0, i64 124
br label %116
116: ; preds = %124, %100
%117 = phi i32 [ 0, %100 ], [ %125, %124 ]
switch i32 %117, label %124 [
i32 4, label %122
i32 8, label %120
i32 12, label %118
]
118: ; preds = %116
%119 = load i8, i8* %110
store i8 %119, i8* %111
br label %124
120: ; preds = %116
%121 = load i8, i8* %112
store i8 %121, i8* %113
br label %124
122: ; preds = %116
%123 = load i8, i8* %114
store i8 %123, i8* %115
br label %124
124: ; preds = %122, %120, %118, %116
%125 = add nuw nsw i32 %117, 2
%126 = icmp eq i32 %125, 16
br i1 %126, label %127, label %116
127: ; preds = %124
store i8 0, i8* %7
%128 = call i32 @printf(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str, i64 0, i64 0), i8* %5)
ret void
}