#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, size_t const);
int draw_square(const size_t buf_size_x, const size_t buf_size_y,
                char buf[buf_size_y][buf_size_x], const size_t top_x,
                const size_t top_y, const size_t width_x) {
  const size_t width_y = width_x / 2.25;
  size_t x, y;
  if (width_x > buf_size_x || width_y > buf_size_y)
    return -1;
  for (y = 0; y < width_y; y++)
    memset(&buf[y][0], ' ', width_x);
  for (x = 0; x < width_x; x++) {
    buf[0][x] = '-';
    buf[width_y - 1][x] = '-';
  }
  for (y = 1; y < width_y; y++) {
    buf[y][0] = '|';
    buf[y][width_x - 1] = '|';
  }
  buf[0][0] = '/';
  buf[0][width_x - 1] = '\\';
  buf[width_y - 1][0] = '\\';
  buf[width_y - 1][width_x - 1] = '/';
  return 0;
}


x86 assembly (clang, -O0):
<draw_square>:
push   %rbp
mov    %rsp,%rbp
sub    $0x60,%rsp
mov    %rdi,-0x10(%rbp)
mov    %rsi,-0x18(%rbp)
mov    %rdx,-0x20(%rbp)
mov    %rcx,-0x28(%rbp)
mov    %r8,-0x30(%rbp)
mov    %r9,-0x38(%rbp)
mov    -0x10(%rbp),%rax
mov    %rax,-0x58(%rbp)
movaps 0xec1(%rip),%xmm1
movq   -0x38(%rbp),%xmm0
punpckldq %xmm1,%xmm0
movapd 0xec0(%rip),%xmm1
subpd  %xmm1,%xmm0
movaps %xmm0,%xmm1
unpckhpd %xmm0,%xmm0
addsd  %xmm1,%xmm0
movsd  0xeb9(%rip),%xmm1
divsd  %xmm1,%xmm0
movaps %xmm0,%xmm1
cvttsd2si %xmm1,%rax
mov    %rax,%rdx
sar    $0x3f,%rdx
movsd  0xea6(%rip),%xmm1
subsd  %xmm1,%xmm0
cvttsd2si %xmm0,%rcx
and    %rdx,%rcx
or     %rcx,%rax
mov    %rax,-0x40(%rbp)
mov    -0x38(%rbp),%rax
cmp    -0x10(%rbp),%rax
ja     11b1 <draw_square+0xa1>
mov    -0x40(%rbp),%rax
cmp    -0x18(%rbp),%rax
jbe    11bd <draw_square+0xad>
movl   $0xffffffff,-0x4(%rbp)
jmp    130f <draw_square+0x1ff>
movq   $0x0,-0x50(%rbp)
mov    -0x50(%rbp),%rax
cmp    -0x40(%rbp),%rax
jae    1202 <draw_square+0xf2>
mov    -0x58(%rbp),%rax
mov    -0x20(%rbp),%rdi
imul   -0x50(%rbp),%rax
add    %rax,%rdi
mov    -0x38(%rbp),%rdx
mov    $0x20,%esi
call   1030 <memset@plt>
mov    -0x50(%rbp),%rax
add    $0x1,%rax
mov    %rax,-0x50(%rbp)
jmp    11c5 <draw_square+0xb5>
movq   $0x0,-0x48(%rbp)
mov    -0x48(%rbp),%rax
cmp    -0x38(%rbp),%rax
jae    125b <draw_square+0x14b>
mov    -0x58(%rbp),%rdx
mov    -0x20(%rbp),%rax
imul   $0x0,%rdx,%rcx
add    %rcx,%rax
mov    -0x48(%rbp),%rcx
movb   $0x2d,(%rax,%rcx,1)
mov    -0x20(%rbp),%rax
mov    -0x40(%rbp),%rcx
sub    $0x1,%rcx
imul   %rdx,%rcx
add    %rcx,%rax
mov    -0x48(%rbp),%rcx
movb   $0x2d,(%rax,%rcx,1)
mov    -0x48(%rbp),%rax
add    $0x1,%rax
mov    %rax,-0x48(%rbp)
jmp    120a <draw_square+0xfa>
movq   $0x1,-0x50(%rbp)
mov    -0x50(%rbp),%rax
cmp    -0x40(%rbp),%rax
jae    12ae <draw_square+0x19e>
mov    -0x58(%rbp),%rcx
mov    -0x20(%rbp),%rax
mov    %rcx,%rdx
imul   -0x50(%rbp),%rdx
movb   $0x7c,(%rax,%rdx,1)
mov    -0x20(%rbp),%rax
imul   -0x50(%rbp),%rcx
add    %rcx,%rax
mov    -0x38(%rbp),%rcx
sub    $0x1,%rcx
movb   $0x7c,(%rax,%rcx,1)
mov    -0x50(%rbp),%rax
add    $0x1,%rax
mov    %rax,-0x50(%rbp)
jmp    1263 <draw_square+0x153>
mov    -0x58(%rbp),%rdx
mov    -0x20(%rbp),%rax
imul   $0x0,%rdx,%rcx
movb   $0x2f,(%rax,%rcx,1)
mov    -0x20(%rbp),%rax
imul   $0x0,%rdx,%rcx
add    %rcx,%rax
mov    -0x38(%rbp),%rcx
sub    $0x1,%rcx
movb   $0x5c,(%rax,%rcx,1)
mov    -0x20(%rbp),%rax
mov    -0x40(%rbp),%rcx
sub    $0x1,%rcx
imul   %rdx,%rcx
movb   $0x5c,(%rax,%rcx,1)
mov    -0x20(%rbp),%rax
mov    -0x40(%rbp),%rcx
sub    $0x1,%rcx
imul   %rdx,%rcx
add    %rcx,%rax
mov    -0x38(%rbp),%rcx
sub    $0x1,%rcx
movb   $0x2f,(%rax,%rcx,1)
movl   $0x0,-0x4(%rbp)
mov    -0x4(%rbp),%eax
add    $0x60,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<draw_square>:
push   %rbp
push   %r15
push   %r14
push   %r13
push   %r12
push   %rbx
push   %rax
mov    $0xffffffff,%eax
cmp    %rdi,%r9
ja     1637 <draw_square+0x527>
mov    %r9,%r12
mov    %rdx,%r14
movq   %r9,%xmm0
punpckldq 0xec4(%rip),%xmm0
subpd  0xecc(%rip),%xmm0
movapd %xmm0,%xmm1
unpckhpd %xmm0,%xmm1
addsd  %xmm0,%xmm1
divsd  0xee8(%rip),%xmm1
cvttsd2si %xmm1,%rcx
mov    %rcx,%rdx
subsd  0xee0(%rip),%xmm1
cvttsd2si %xmm1,%r13
sar    $0x3f,%rdx
and    %rdx,%r13
or     %rcx,%r13
cmp    %rsi,%r13
ja     1637 <draw_square+0x527>
mov    %rdi,%r15
test   %r13,%r13
je     11a9 <draw_square+0x99>
mov    %r14,%rbx
mov    %r13,%rbp
xchg   %ax,%ax
mov    %rbx,%rdi
mov    $0x20,%esi
mov    %r12,%rdx
call   1030 <memset@plt>
add    %r15,%rbx
add    $0xffffffffffffffff,%rbp
jne    1190 <draw_square+0x80>
test   %r12,%r12
je     1263 <draw_square+0x153>
lea    -0x1(%r13),%r9
imul   %r15,%r9
lea    (%r14,%r9,1),%rdx
cmp    $0x8,%r12
jb     11e1 <draw_square+0xd1>
lea    (%r9,%r12,1),%rax
add    %r14,%rax
cmp    %r14,%rax
jbe    12bd <draw_square+0x1ad>
lea    (%r14,%r12,1),%rax
cmp    %rax,%rdx
jae    12bd <draw_square+0x1ad>
xor    %ecx,%ecx
mov    %rcx,%rax
not    %rax
add    %r12,%rax
mov    %r12,%rsi
and    $0x3,%rsi
je     1213 <draw_square+0x103>
cs nopw 0x0(%rax,%rax,1)
nop
movb   $0x2d,(%r14,%rcx,1)
movb   $0x2d,(%rdx,%rcx,1)
add    $0x1,%rcx
add    $0xffffffffffffffff,%rsi
jne    1200 <draw_square+0xf0>
cmp    $0x3,%rax
jb     1263 <draw_square+0x153>
lea    (%r9,%r14,1),%rax
add    $0x3,%rax
cs nopw 0x0(%rax,%rax,1)
nopl   0x0(%rax,%rax,1)
movb   $0x2d,(%r14,%rcx,1)
movb   $0x2d,-0x3(%rax,%rcx,1)
movb   $0x2d,0x1(%r14,%rcx,1)
movb   $0x2d,-0x2(%rax,%rcx,1)
movb   $0x2d,0x2(%r14,%rcx,1)
movb   $0x2d,-0x1(%rax,%rcx,1)
movb   $0x2d,0x3(%r14,%rcx,1)
movb   $0x2d,(%rax,%rcx,1)
add    $0x4,%rcx
cmp    %rcx,%r12
jne    1230 <draw_square+0x120>
cmp    $0x2,%r13
jb     1614 <draw_square+0x504>
lea    -0x1(%r13),%r9
mov    $0x1,%r8d
cmp    $0x8,%r9
jb     1552 <draw_square+0x442>
cmp    $0x1,%r15
jne    1552 <draw_square+0x442>
lea    0x1(%r14),%rax
lea    (%r12,%r13,1),%rcx
add    %r14,%rcx
add    $0xffffffffffffffff,%rcx
cmp    %rcx,%rax
jae    12b0 <draw_square+0x1a0>
lea    (%r14,%r13,1),%rax
lea    (%r14,%r12,1),%rcx
cmp    %rax,%rcx
jb     1552 <draw_square+0x442>
cmp    $0x20,%r9
jae    12f8 <draw_square+0x1e8>
xor    %edx,%edx
jmp    1504 <draw_square+0x3f4>
cmp    $0x20,%r12
jae    12ca <draw_square+0x1ba>
xor    %ecx,%ecx
jmp    1482 <draw_square+0x372>
mov    %r12,%rcx
and    $0xffffffffffffffe0,%rcx
lea    -0x20(%rcx),%rax
mov    %rax,%rdi
shr    $0x5,%rdi
add    $0x1,%rdi
mov    %edi,%r8d
and    $0x3,%r8d
cmp    $0x60,%rax
jae    13a3 <draw_square+0x293>
xor    %ebx,%ebx
jmp    1428 <draw_square+0x318>
mov    %r9,%rdx
and    $0xffffffffffffffe0,%rdx
lea    -0x20(%rdx),%rax
mov    %rax,%r8
shr    $0x5,%r8
add    $0x1,%r8
test   %rax,%rax
je     14bf <draw_square+0x3af>
movabs $0xffffffffffffffc,%rdi
ff ff 0f
or     $0x2,%rdi
and    %r8,%rdi
mov    %r15,%rax
shl    $0x5,%rax
add    %r15,%rax
lea    (%r14,%rax,1),%rbx
add    $0x10,%rbx
mov    %r15,%rax
shl    $0x6,%rax
lea    (%r15,%r14,1),%rcx
add    $0x10,%rcx
mov    $0x1,%esi
movapd 0xcda(%rip),%xmm0
cs nopw 0x0(%rax,%rax,1)
movupd %xmm0,-0x10(%rcx)
movupd %xmm0,(%rcx)
movupd %xmm0,-0x11(%rcx,%r12,1)
movupd %xmm0,-0x1(%rcx,%r12,1)
movupd %xmm0,-0x10(%rbx)
movupd %xmm0,(%rbx)
movupd %xmm0,-0x11(%rbx,%r12,1)
movupd %xmm0,-0x1(%rbx,%r12,1)
add    %rax,%rbx
add    $0x40,%rsi
add    %rax,%rcx
add    $0xfffffffffffffffe,%rdi
jne    1360 <draw_square+0x250>
jmp    14c4 <draw_square+0x3b4>
and    $0xfffffffffffffffc,%rdi
lea    0x70(%r14),%rsi
lea    (%r14,%r9,1),%rax
add    $0x70,%rax
xor    %ebx,%ebx
movapd 0xc63(%rip),%xmm0
nopl   (%rax)
movupd %xmm0,-0x70(%rsi,%rbx,1)
movupd %xmm0,-0x60(%rsi,%rbx,1)
movupd %xmm0,-0x70(%rax,%rbx,1)
movupd %xmm0,-0x60(%rax,%rbx,1)
movupd %xmm0,-0x50(%rsi,%rbx,1)
movupd %xmm0,-0x40(%rsi,%rbx,1)
movupd %xmm0,-0x50(%rax,%rbx,1)
movupd %xmm0,-0x40(%rax,%rbx,1)
movupd %xmm0,-0x30(%rsi,%rbx,1)
movupd %xmm0,-0x20(%rsi,%rbx,1)
movupd %xmm0,-0x30(%rax,%rbx,1)
movupd %xmm0,-0x20(%rax,%rbx,1)
movupd %xmm0,-0x10(%rsi,%rbx,1)
movupd %xmm0,(%rsi,%rbx,1)
movupd %xmm0,-0x10(%rax,%rbx,1)
movupd %xmm0,(%rax,%rbx,1)
sub    $0xffffffffffffff80,%rbx
add    $0xfffffffffffffffc,%rdi
jne    13c0 <draw_square+0x2b0>
test   %r8,%r8
je     146f <draw_square+0x35f>
lea    (%rbx,%r9,1),%rax
add    %r14,%rax
add    $0x10,%rax
lea    (%rbx,%r14,1),%rsi
add    $0x10,%rsi
shl    $0x5,%r8
xor    %edi,%edi
movapd 0xbd2(%rip),%xmm0
xchg   %ax,%ax
movupd %xmm0,-0x10(%rsi,%rdi,1)
movupd %xmm0,(%rsi,%rdi,1)
movupd %xmm0,-0x10(%rax,%rdi,1)
movupd %xmm0,(%rax,%rdi,1)
add    $0x20,%rdi
cmp    %rdi,%r8
jne    1450 <draw_square+0x340>
cmp    %r12,%rcx
je     1263 <draw_square+0x153>
test   $0x18,%r12b
je     11e3 <draw_square+0xd3>
mov    %rcx,%rax
mov    %r12,%rcx
and    $0xfffffffffffffff8,%rcx
lea    (%r14,%rax,1),%rsi
sub    %rcx,%rax
movabs $0x2d2d2d2d2d2d2d2d,%rdi
2d 2d 2d
nopl   (%rax)
mov    %rdi,(%rsi)
mov    %rdi,(%rsi,%r9,1)
add    $0x8,%rsi
add    $0x8,%rax
jne    14a0 <draw_square+0x390>
cmp    %r12,%rcx
je     1263 <draw_square+0x153>
jmp    11e3 <draw_square+0xd3>
mov    $0x1,%esi
test   $0x1,%r8b
je     14f5 <draw_square+0x3e5>
imul   %r15,%rsi
lea    (%r14,%rsi,1),%rax
movapd 0xb56(%rip),%xmm0
movupd %xmm0,(%r14,%rsi,1)
movupd %xmm0,0x10(%r14,%rsi,1)
movupd %xmm0,-0x1(%r12,%rax,1)
movupd %xmm0,0xf(%r12,%rax,1)
cmp    %rdx,%r9
je     1614 <draw_square+0x504>
test   $0x18,%r9b
je     154b <draw_square+0x43b>
mov    %r9,%rax
and    $0xfffffffffffffff8,%rax
lea    0x1(%rax),%r8
lea    0x1(%rdx),%rcx
imul   %r15,%rcx
add    %r14,%rcx
lea    0x0(,%r15,8),%rsi
sub    %rax,%rdx
movabs $0x7c7c7c7c7c7c7c7c,%rdi
7c 7c 7c
nop
mov    %rdi,(%rcx)
mov    %rdi,-0x1(%rcx,%r12,1)
add    %rsi,%rcx
add    $0x8,%rdx
jne    1530 <draw_square+0x420>
cmp    %rax,%r9
jne    1552 <draw_square+0x442>
jmp    1614 <draw_square+0x504>
or     $0x1,%rdx
mov    %rdx,%r8
mov    %r13d,%edx
sub    %r8d,%edx
mov    %r8,%rcx
not    %rcx
add    %r13,%rcx
and    $0x3,%rdx
je     1598 <draw_square+0x488>
mov    %r8,%rax
imul   %r15,%rax
add    %r14,%rax
neg    %rdx
xor    %esi,%esi
cs nopw 0x0(%rax,%rax,1)
movb   $0x7c,(%rax)
movb   $0x7c,-0x1(%rax,%r12,1)
add    $0xffffffffffffffff,%rsi
add    %r15,%rax
cmp    %rsi,%rdx
jne    1580 <draw_square+0x470>
sub    %rsi,%r8
cmp    $0x3,%rcx
jb     1614 <draw_square+0x504>
mov    %r13,%rcx
sub    %r8,%rcx
lea    0x3(%r8),%r11
imul   %r15,%r11
lea    (%r12,%r11,1),%r9
lea    0x0(,%r15,4),%r10
lea    0x2(%r8),%rbx
imul   %r15,%rbx
lea    (%r12,%rbx,1),%rax
lea    0x1(%r8),%rsi
imul   %r15,%rsi
lea    (%r12,%rsi,1),%rdi
imul   %r15,%r8
lea    (%r12,%r8,1),%rdx
mov    %r14,%rbp
nopl   0x0(%rax,%rax,1)
movb   $0x7c,0x0(%rbp,%r8,1)
movb   $0x7c,-0x1(%rbp,%rdx,1)
movb   $0x7c,0x0(%rbp,%rsi,1)
movb   $0x7c,-0x1(%rbp,%rdi,1)
movb   $0x7c,0x0(%rbp,%rbx,1)
movb   $0x7c,-0x1(%rbp,%rax,1)
movb   $0x7c,0x0(%rbp,%r11,1)
movb   $0x7c,-0x1(%rbp,%r9,1)
add    %r10,%rbp
add    $0xfffffffffffffffc,%rcx
jne    15e0 <draw_square+0x4d0>
movb   $0x2f,(%r14)
movb   $0x5c,-0x1(%r14,%r12,1)
add    $0xffffffffffffffff,%r13
imul   %r15,%r13
lea    (%r14,%r13,1),%rax
movb   $0x5c,(%r14,%r13,1)
movb   $0x2f,-0x1(%r12,%rax,1)
xor    %eax,%eax
add    $0x8,%rsp
pop    %rbx
pop    %r12
pop    %r13
pop    %r14
pop    %r15
pop    %rbp
ret

LLVM IR (-O0):
define i32 @draw_square(i64 %0, i64 %1, i8* %2, i64 %3, i64 %4, i64 %5) {
%7 = alloca i32
%8 = alloca i64
%9 = alloca i64
%10 = alloca i8*
%11 = alloca i64
%12 = alloca i64
%13 = alloca i64
%14 = alloca i64
%15 = alloca i64
%16 = alloca i64
store i64 %0, i64* %8
store i64 %1, i64* %9
store i8* %2, i8** %10
store i64 %3, i64* %11
store i64 %4, i64* %12
store i64 %5, i64* %13
%17 = load i64, i64* %9
%18 = load i64, i64* %8
%19 = load i64, i64* %13
%20 = uitofp i64 %19 to double
%21 = fdiv double %20, 2.250000e+00
%22 = fptoui double %21 to i64
store i64 %22, i64* %14
%23 = load i64, i64* %13
%24 = load i64, i64* %8
%25 = icmp ugt i64 %23, %24
br i1 %25, label %30, label %26
26: ; preds = %6
%27 = load i64, i64* %14
%28 = load i64, i64* %9
%29 = icmp ugt i64 %27, %28
br i1 %29, label %30, label %31
30: ; preds = %26, %6
store i32 -1, i32* %7
br label %114
31: ; preds = %26
store i64 0, i64* %16
br label %32
32: ; preds = %44, %31
%33 = load i64, i64* %16
%34 = load i64, i64* %14
%35 = icmp ult i64 %33, %34
br i1 %35, label %36, label %47
36: ; preds = %32
%37 = load i8*, i8** %10
%38 = load i64, i64* %16
%39 = mul nsw i64 %38, %18
%40 = getelementptr inbounds i8, i8* %37, i64 %39
%41 = getelementptr inbounds i8, i8* %40, i64 0
%42 = load i64, i64* %13
%43 = call i32 @memset(i8* %41, i8 signext 32, i64 %42)
br label %44
44: ; preds = %36
%45 = load i64, i64* %16
%46 = add i64 %45, 1
store i64 %46, i64* %16
br label %32
47: ; preds = %32
store i64 0, i64* %15
br label %48
48: ; preds = %65, %47
%49 = load i64, i64* %15
%50 = load i64, i64* %13
%51 = icmp ult i64 %49, %50
br i1 %51, label %52, label %68
52: ; preds = %48
%53 = load i8*, i8** %10
%54 = mul nsw i64 0, %18
%55 = getelementptr inbounds i8, i8* %53, i64 %54
%56 = load i64, i64* %15
%57 = getelementptr inbounds i8, i8* %55, i64 %56
store i8 45, i8* %57
%58 = load i8*, i8** %10
%59 = load i64, i64* %14
%60 = sub i64 %59, 1
%61 = mul nsw i64 %60, %18
%62 = getelementptr inbounds i8, i8* %58, i64 %61
%63 = load i64, i64* %15
%64 = getelementptr inbounds i8, i8* %62, i64 %63
store i8 45, i8* %64
br label %65
65: ; preds = %52
%66 = load i64, i64* %15
%67 = add i64 %66, 1
store i64 %67, i64* %15
br label %48
68: ; preds = %48
store i64 1, i64* %16
br label %69
69: ; preds = %86, %68
%70 = load i64, i64* %16
%71 = load i64, i64* %14
%72 = icmp ult i64 %70, %71
br i1 %72, label %73, label %89
73: ; preds = %69
%74 = load i8*, i8** %10
%75 = load i64, i64* %16
%76 = mul nsw i64 %75, %18
%77 = getelementptr inbounds i8, i8* %74, i64 %76
%78 = getelementptr inbounds i8, i8* %77, i64 0
store i8 124, i8* %78
%79 = load i8*, i8** %10
%80 = load i64, i64* %16
%81 = mul nsw i64 %80, %18
%82 = getelementptr inbounds i8, i8* %79, i64 %81
%83 = load i64, i64* %13
%84 = sub i64 %83, 1
%85 = getelementptr inbounds i8, i8* %82, i64 %84
store i8 124, i8* %85
br label %86
86: ; preds = %73
%87 = load i64, i64* %16
%88 = add i64 %87, 1
store i64 %88, i64* %16
br label %69
89: ; preds = %69
%90 = load i8*, i8** %10
%91 = mul nsw i64 0, %18
%92 = getelementptr inbounds i8, i8* %90, i64 %91
%93 = getelementptr inbounds i8, i8* %92, i64 0
store i8 47, i8* %93
%94 = load i8*, i8** %10
%95 = mul nsw i64 0, %18
%96 = getelementptr inbounds i8, i8* %94, i64 %95
%97 = load i64, i64* %13
%98 = sub i64 %97, 1
%99 = getelementptr inbounds i8, i8* %96, i64 %98
store i8 92, i8* %99
%100 = load i8*, i8** %10
%101 = load i64, i64* %14
%102 = sub i64 %101, 1
%103 = mul nsw i64 %102, %18
%104 = getelementptr inbounds i8, i8* %100, i64 %103
%105 = getelementptr inbounds i8, i8* %104, i64 0
store i8 92, i8* %105
%106 = load i8*, i8** %10
%107 = load i64, i64* %14
%108 = sub i64 %107, 1
%109 = mul nsw i64 %108, %18
%110 = getelementptr inbounds i8, i8* %106, i64 %109
%111 = load i64, i64* %13
%112 = sub i64 %111, 1
%113 = getelementptr inbounds i8, i8* %110, i64 %112
store i8 47, i8* %113
store i32 0, i32* %7
br label %114
114: ; preds = %89, %30
%115 = load i32, i32* %7
ret i32 %115
}

LLVM IR (-O2):
define i32 @draw_square(i64 %0, i64 %1, i8* %2, i64 %3, i64 %4, i64 %5) {
%7 = uitofp i64 %5 to double
%8 = fdiv double %7, 2.250000e+00
%9 = fptoui double %8 to i64
%10 = icmp ugt i64 %5, %0
%11 = icmp ugt i64 %9, %1
%12 = select i1 %10, i1 true, i1 %11
br i1 %12, label %292, label %13
13: ; preds = %6
%14 = icmp eq i64 %9, 0
br i1 %14, label %15, label %133
15: ; preds = %133, %13
%16 = icmp eq i64 %5, 0
br i1 %16, label %140, label %17
17: ; preds = %15
%18 = add i64 %9, -1
%19 = mul nsw i64 %18, %0
%20 = getelementptr inbounds i8, i8* %2, i64 %19
%21 = icmp ult i64 %5, 8
br i1 %21, label %116, label %22
22: ; preds = %17
%23 = getelementptr i8, i8* %2, i64 %5
%24 = add i64 %19, %5
%25 = getelementptr i8, i8* %2, i64 %24
%26 = icmp ugt i8* %25, %2
%27 = icmp ult i8* %20, %23
%28 = and i1 %26, %27
br i1 %28, label %116, label %29
29: ; preds = %22
%30 = icmp ult i64 %5, 32
br i1 %30, label %103, label %31
31: ; preds = %29
%32 = and i64 %5, -32
%33 = add i64 %32, -32
%34 = lshr exact i64 %33, 5
%35 = add nuw nsw i64 %34, 1
%36 = and i64 %35, 3
%37 = icmp ult i64 %33, 96
br i1 %37, label %81, label %38
38: ; preds = %31
%39 = and i64 %35, 1152921504606846972
br label %40
40: ; preds = %40, %38
%41 = phi i64 [ 0, %38 ], [ %78, %40 ]
%42 = phi i64 [ 0, %38 ], [ %79, %40 ]
%43 = getelementptr inbounds i8, i8* %2, i64 %41
%44 = bitcast i8* %43 to <16 x i8>*
store <16 x i8> <i8 45, i8 45, i8 45, i8 45, i8 45, i8 45, i8 45, i8 45, i8 45, i8 45, i8 45, i8 45, i8 45, i8 45, i8 45, i8 45>, <16 x i8>* %44
%45 = getelementptr inbounds i8, i8* %43, i64 16
%46 = bitcast i8* %45 to <16 x i8>*
store <16 x i8> <i8 45, i8 45, i8 45, i8 45, i8 45, i8 45, i8 45, i8 45, i8 45, i8 45, i8 45, i8 45, i8 45, i8 45, i8 45, i8 45>, <16 x i8>* %46
%47 = getelementptr inbounds i8, i8* %20, i64 %41
%48 = bitcast i8* %47 to <16 x i8>*
store <16 x i8> <i8 45, i8 45, i8 45, i8 45, i8 45, i8 45, i8 45, i8 45, i8 45, i8 45, i8 45, i8 45, i8 45, i8 45, i8 45, i8 45>, <16 x i8>* %48
%49 = getelementptr inbounds i8, i8* %47, i64 16
%50 = bitcast i8* %49 to <16 x i8>*
store <16 x i8> <i8 45, i8 45, i8 45, i8 45, i8 45, i8 45, i8 45, i8 45, i8 45, i8 45, i8 45, i8 45, i8 45, i8 45, i8 45, i8 45>, <16 x i8>* %50
%51 = or i64 %41, 32
%52 = getelementptr inbounds i8, i8* %2, i64 %51
%53 = bitcast i8* %52 to <16 x i8>*
store <16 x i8> <i8 45, i8 45, i8 45, i8 45, i8 45, i8 45, i8 45, i8 45, i8 45, i8 45, i8 45, i8 45, i8 45, i8 45, i8 45, i8 45>, <16 x i8>* %53
%54 = getelementptr inbounds i8, i8* %52, i64 16
%55 = bitcast i8* %54 to <16 x i8>*
store <16 x i8> <i8 45, i8 45, i8 45, i8 45, i8 45, i8 45, i8 45, i8 45, i8 45, i8 45, i8 45, i8 45, i8 45, i8 45, i8 45, i8 45>, <16 x i8>* %55
%56 = getelementptr inbounds i8, i8* %20, i64 %51
%57 = bitcast i8* %56 to <16 x i8>*
store <16 x i8> <i8 45, i8 45, i8 45, i8 45, i8 45, i8 45, i8 45, i8 45, i8 45, i8 45, i8 45, i8 45, i8 45, i8 45, i8 45, i8 45>, <16 x i8>* %57
%58 = getelementptr inbounds i8, i8* %56, i64 16
%59 = bitcast i8* %58 to <16 x i8>*
store <16 x i8> <i8 45, i8 45, i8 45, i8 45, i8 45, i8 45, i8 45, i8 45, i8 45, i8 45, i8 45, i8 45, i8 45, i8 45, i8 45, i8 45>, <16 x i8>* %59
%60 = or i64 %41, 64
%61 = getelementptr inbounds i8, i8* %2, i64 %60
%62 = bitcast i8* %61 to <16 x i8>*
store <16 x i8> <i8 45, i8 45, i8 45, i8 45, i8 45, i8 45, i8 45, i8 45, i8 45, i8 45, i8 45, i8 45, i8 45, i8 45, i8 45, i8 45>, <16 x i8>* %62
%63 = getelementptr inbounds i8, i8* %61, i64 16
%64 = bitcast i8* %63 to <16 x i8>*
store <16 x i8> <i8 45, i8 45, i8 45, i8 45, i8 45, i8 45, i8 45, i8 45, i8 45, i8 45, i8 45, i8 45, i8 45, i8 45, i8 45, i8 45>, <16 x i8>* %64
%65 = getelementptr inbounds i8, i8* %20, i64 %60
%66 = bitcast i8* %65 to <16 x i8>*
store <16 x i8> <i8 45, i8 45, i8 45, i8 45, i8 45, i8 45, i8 45, i8 45, i8 45, i8 45, i8 45, i8 45, i8 45, i8 45, i8 45, i8 45>, <16 x i8>* %66
%67 = getelementptr inbounds i8, i8* %65, i64 16
%68 = bitcast i8* %67 to <16 x i8>*
store <16 x i8> <i8 45, i8 45, i8 45, i8 45, i8 45, i8 45, i8 45, i8 45, i8 45, i8 45, i8 45, i8 45, i8 45, i8 45, i8 45, i8 45>, <16 x i8>* %68
%69 = or i64 %41, 96
%70 = getelementptr inbounds i8, i8* %2, i64 %69
%71 = bitcast i8* %70 to <16 x i8>*
store <16 x i8> <i8 45, i8 45, i8 45, i8 45, i8 45, i8 45, i8 45, i8 45, i8 45, i8 45, i8 45, i8 45, i8 45, i8 45, i8 45, i8 45>, <16 x i8>* %71
%72 = getelementptr inbounds i8, i8* %70, i64 16
%73 = bitcast i8* %72 to <16 x i8>*
store <16 x i8> <i8 45, i8 45, i8 45, i8 45, i8 45, i8 45, i8 45, i8 45, i8 45, i8 45, i8 45, i8 45, i8 45, i8 45, i8 45, i8 45>, <16 x i8>* %73
%74 = getelementptr inbounds i8, i8* %20, i64 %69
%75 = bitcast i8* %74 to <16 x i8>*
store <16 x i8> <i8 45, i8 45, i8 45, i8 45, i8 45, i8 45, i8 45, i8 45, i8 45, i8 45, i8 45, i8 45, i8 45, i8 45, i8 45, i8 45>, <16 x i8>* %75
%76 = getelementptr inbounds i8, i8* %74, i64 16
%77 = bitcast i8* %76 to <16 x i8>*
store <16 x i8> <i8 45, i8 45, i8 45, i8 45, i8 45, i8 45, i8 45, i8 45, i8 45, i8 45, i8 45, i8 45, i8 45, i8 45, i8 45, i8 45>, <16 x i8>* %77
%78 = add nuw i64 %41, 128
%79 = add i64 %42, 4
%80 = icmp eq i64 %79, %39
br i1 %80, label %81, label %40
81: ; preds = %40, %31
%82 = phi i64 [ 0, %31 ], [ %78, %40 ]
%83 = icmp eq i64 %36, 0
br i1 %83, label %98, label %84
84: ; preds = %81, %84
%85 = phi i64 [ %95, %84 ], [ %82, %81 ]
%86 = phi i64 [ %96, %84 ], [ 0, %81 ]
%87 = getelementptr inbounds i8, i8* %2, i64 %85
%88 = bitcast i8* %87 to <16 x i8>*
store <16 x i8> <i8 45, i8 45, i8 45, i8 45, i8 45, i8 45, i8 45, i8 45, i8 45, i8 45, i8 45, i8 45, i8 45, i8 45, i8 45, i8 45>, <16 x i8>* %88
%89 = getelementptr inbounds i8, i8* %87, i64 16
%90 = bitcast i8* %89 to <16 x i8>*
store <16 x i8> <i8 45, i8 45, i8 45, i8 45, i8 45, i8 45, i8 45, i8 45, i8 45, i8 45, i8 45, i8 45, i8 45, i8 45, i8 45, i8 45>, <16 x i8>* %90
%91 = getelementptr inbounds i8, i8* %20, i64 %85
%92 = bitcast i8* %91 to <16 x i8>*
store <16 x i8> <i8 45, i8 45, i8 45, i8 45, i8 45, i8 45, i8 45, i8 45, i8 45, i8 45, i8 45, i8 45, i8 45, i8 45, i8 45, i8 45>, <16 x i8>* %92
%93 = getelementptr inbounds i8, i8* %91, i64 16
%94 = bitcast i8* %93 to <16 x i8>*
store <16 x i8> <i8 45, i8 45, i8 45, i8 45, i8 45, i8 45, i8 45, i8 45, i8 45, i8 45, i8 45, i8 45, i8 45, i8 45, i8 45, i8 45>, <16 x i8>* %94
%95 = add nuw i64 %85, 32
%96 = add i64 %86, 1
%97 = icmp eq i64 %96, %36
br i1 %97, label %98, label %84
98: ; preds = %84, %81
%99 = icmp eq i64 %32, %5
br i1 %99, label %140, label %100
100: ; preds = %98
%101 = and i64 %5, 24
%102 = icmp eq i64 %101, 0
br i1 %102, label %116, label %103
103: ; preds = %29, %100
%104 = phi i64 [ %32, %100 ], [ 0, %29 ]
%105 = and i64 %5, -8
br label %106
106: ; preds = %106, %103
%107 = phi i64 [ %104, %103 ], [ %112, %106 ]
%108 = getelementptr inbounds i8, i8* %2, i64 %107
%109 = bitcast i8* %108 to <8 x i8>*
store <8 x i8> <i8 45, i8 45, i8 45, i8 45, i8 45, i8 45, i8 45, i8 45>, <8 x i8>* %109
%110 = getelementptr inbounds i8, i8* %20, i64 %107
%111 = bitcast i8* %110 to <8 x i8>*
store <8 x i8> <i8 45, i8 45, i8 45, i8 45, i8 45, i8 45, i8 45, i8 45>, <8 x i8>* %111
%112 = add nuw i64 %107, 8
%113 = icmp eq i64 %112, %105
br i1 %113, label %114, label %106
114: ; preds = %106
%115 = icmp eq i64 %105, %5
br i1 %115, label %140, label %116
116: ; preds = %22, %17, %100, %114
%117 = phi i64 [ 0, %17 ], [ 0, %22 ], [ %32, %100 ], [ %105, %114 ]
%118 = xor i64 %117, -1
%119 = add i64 %118, %5
%120 = and i64 %5, 3
%121 = icmp eq i64 %120, 0
br i1 %121, label %130, label %122
122: ; preds = %116, %122
%123 = phi i64 [ %127, %122 ], [ %117, %116 ]
%124 = phi i64 [ %128, %122 ], [ 0, %116 ]
%125 = getelementptr inbounds i8, i8* %2, i64 %123
store i8 45, i8* %125
%126 = getelementptr inbounds i8, i8* %20, i64 %123
store i8 45, i8* %126
%127 = add nuw i64 %123, 1
%128 = add i64 %124, 1
%129 = icmp eq i64 %128, %120
br i1 %129, label %130, label %122
130: ; preds = %122, %116
%131 = phi i64 [ %117, %116 ], [ %127, %122 ]
%132 = icmp ult i64 %119, 3
br i1 %132, label %140, label %252
133: ; preds = %13, %133
%134 = phi i64 [ %138, %133 ], [ 0, %13 ]
%135 = mul nsw i64 %134, %0
%136 = getelementptr inbounds i8, i8* %2, i64 %135
%137 = tail call i32 @memset(i8* %136, i8 signext 32, i64 %5)
%138 = add nuw i64 %134, 1
%139 = icmp eq i64 %138, %9
br i1 %139, label %15, label %133
140: ; preds = %130, %252, %98, %114, %15
%141 = icmp ugt i64 %9, 1
%142 = add i64 %5, -1
br i1 %141, label %143, label %286
143: ; preds = %140
%144 = add i64 %9, -1
%145 = icmp ugt i64 %144, 7
%146 = icmp eq i64 %0, 1
%147 = and i1 %145, %146
br i1 %147, label %148, label %233
148: ; preds = %143
%149 = getelementptr i8, i8* %2, i64 1
%150 = getelementptr i8, i8* %2, i64 %9
%151 = getelementptr i8, i8* %2, i64 %5
%152 = add i64 %9, %5
%153 = add i64 %152, -1
%154 = getelementptr i8, i8* %2, i64 %153
%155 = icmp ult i8* %149, %154
%156 = icmp ult i8* %151, %150
%157 = and i1 %155, %156
br i1 %157, label %233, label %158
158: ; preds = %148
%159 = icmp ult i64 %144, 32
br i1 %159, label %216, label %160
160: ; preds = %158
%161 = and i64 %144, -32
%162 = add i64 %161, -32
%163 = lshr exact i64 %162, 5
%164 = add nuw nsw i64 %163, 1
%165 = and i64 %164, 1
%166 = icmp eq i64 %162, 0
br i1 %166, label %197, label %167
167: ; preds = %160
%168 = and i64 %164, 1152921504606846974
br label %169
169: ; preds = %169, %167
%170 = phi i64 [ 0, %167 ], [ %192, %169 ]
%171 = phi i64 [ 0, %167 ], [ %193, %169 ]
%172 = or i64 %170, 1
%173 = mul nsw i64 %172, %0
%174 = getelementptr inbounds i8, i8* %2, i64 %173
%175 = bitcast i8* %174 to <16 x i8>*
store <16 x i8> <i8 124, i8 124, i8 124, i8 124, i8 124, i8 124, i8 124, i8 124, i8 124, i8 124, i8 124, i8 124, i8 124, i8 124, i8 124, i8 124>, <16 x i8>* %175
%176 = getelementptr inbounds i8, i8* %174, i64 16
%177 = bitcast i8* %176 to <16 x i8>*
store <16 x i8> <i8 124, i8 124, i8 124, i8 124, i8 124, i8 124, i8 124, i8 124, i8 124, i8 124, i8 124, i8 124, i8 124, i8 124, i8 124, i8 124>, <16 x i8>* %177
%178 = getelementptr inbounds i8, i8* %174, i64 %142
%179 = bitcast i8* %178 to <16 x i8>*
store <16 x i8> <i8 124, i8 124, i8 124, i8 124, i8 124, i8 124, i8 124, i8 124, i8 124, i8 124, i8 124, i8 124, i8 124, i8 124, i8 124, i8 124>, <16 x i8>* %179
%180 = getelementptr inbounds i8, i8* %178, i64 16
%181 = bitcast i8* %180 to <16 x i8>*
store <16 x i8> <i8 124, i8 124, i8 124, i8 124, i8 124, i8 124, i8 124, i8 124, i8 124, i8 124, i8 124, i8 124, i8 124, i8 124, i8 124, i8 124>, <16 x i8>* %181
%182 = or i64 %170, 33
%183 = mul nsw i64 %182, %0
%184 = getelementptr inbounds i8, i8* %2, i64 %183
%185 = bitcast i8* %184 to <16 x i8>*
store <16 x i8> <i8 124, i8 124, i8 124, i8 124, i8 124, i8 124, i8 124, i8 124, i8 124, i8 124, i8 124, i8 124, i8 124, i8 124, i8 124, i8 124>, <16 x i8>* %185
%186 = getelementptr inbounds i8, i8* %184, i64 16
%187 = bitcast i8* %186 to <16 x i8>*
store <16 x i8> <i8 124, i8 124, i8 124, i8 124, i8 124, i8 124, i8 124, i8 124, i8 124, i8 124, i8 124, i8 124, i8 124, i8 124, i8 124, i8 124>, <16 x i8>* %187
%188 = getelementptr inbounds i8, i8* %184, i64 %142
%189 = bitcast i8* %188 to <16 x i8>*
store <16 x i8> <i8 124, i8 124, i8 124, i8 124, i8 124, i8 124, i8 124, i8 124, i8 124, i8 124, i8 124, i8 124, i8 124, i8 124, i8 124, i8 124>, <16 x i8>* %189
%190 = getelementptr inbounds i8, i8* %188, i64 16
%191 = bitcast i8* %190 to <16 x i8>*
store <16 x i8> <i8 124, i8 124, i8 124, i8 124, i8 124, i8 124, i8 124, i8 124, i8 124, i8 124, i8 124, i8 124, i8 124, i8 124, i8 124, i8 124>, <16 x i8>* %191
%192 = add nuw i64 %170, 64
%193 = add i64 %171, 2
%194 = icmp eq i64 %193, %168
br i1 %194, label %195, label %169
195: ; preds = %169
%196 = or i64 %192, 1
br label %197
197: ; preds = %195, %160
%198 = phi i64 [ 1, %160 ], [ %196, %195 ]
%199 = icmp eq i64 %165, 0
br i1 %199, label %210, label %200
200: ; preds = %197
%201 = mul nsw i64 %198, %0
%202 = getelementptr inbounds i8, i8* %2, i64 %201
%203 = bitcast i8* %202 to <16 x i8>*
store <16 x i8> <i8 124, i8 124, i8 124, i8 124, i8 124, i8 124, i8 124, i8 124, i8 124, i8 124, i8 124, i8 124, i8 124, i8 124, i8 124, i8 124>, <16 x i8>* %203
%204 = getelementptr inbounds i8, i8* %202, i64 16
%205 = bitcast i8* %204 to <16 x i8>*
store <16 x i8> <i8 124, i8 124, i8 124, i8 124, i8 124, i8 124, i8 124, i8 124, i8 124, i8 124, i8 124, i8 124, i8 124, i8 124, i8 124, i8 124>, <16 x i8>* %205
%206 = getelementptr inbounds i8, i8* %202, i64 %142
%207 = bitcast i8* %206 to <16 x i8>*
store <16 x i8> <i8 124, i8 124, i8 124, i8 124, i8 124, i8 124, i8 124, i8 124, i8 124, i8 124, i8 124, i8 124, i8 124, i8 124, i8 124, i8 124>, <16 x i8>* %207
%208 = getelementptr inbounds i8, i8* %206, i64 16
%209 = bitcast i8* %208 to <16 x i8>*
store <16 x i8> <i8 124, i8 124, i8 124, i8 124, i8 124, i8 124, i8 124, i8 124, i8 124, i8 124, i8 124, i8 124, i8 124, i8 124, i8 124, i8 124>, <16 x i8>* %209
br label %210
210: ; preds = %197, %200
%211 = icmp eq i64 %144, %161
br i1 %211, label %286, label %212
212: ; preds = %210
%213 = or i64 %161, 1
%214 = and i64 %144, 24
%215 = icmp eq i64 %214, 0
br i1 %215, label %233, label %216
216: ; preds = %158, %212
%217 = phi i64 [ %161, %212 ], [ 0, %158 ]
%218 = add i64 %9, -1
%219 = and i64 %218, -8
%220 = or i64 %219, 1
br label %221
221: ; preds = %221, %216
%222 = phi i64 [ %217, %216 ], [ %229, %221 ]
%223 = or i64 %222, 1
%224 = mul nsw i64 %223, %0
%225 = getelementptr inbounds i8, i8* %2, i64 %224
%226 = bitcast i8* %225 to <8 x i8>*
store <8 x i8> <i8 124, i8 124, i8 124, i8 124, i8 124, i8 124, i8 124, i8 124>, <8 x i8>* %226
%227 = getelementptr inbounds i8, i8* %225, i64 %142
%228 = bitcast i8* %227 to <8 x i8>*
store <8 x i8> <i8 124, i8 124, i8 124, i8 124, i8 124, i8 124, i8 124, i8 124>, <8 x i8>* %228
%229 = add nuw i64 %222, 8
%230 = icmp eq i64 %229, %219
br i1 %230, label %231, label %221
231: ; preds = %221
%232 = icmp eq i64 %218, %219
br i1 %232, label %286, label %233
233: ; preds = %148, %143, %212, %231
%234 = phi i64 [ 1, %143 ], [ 1, %148 ], [ %213, %212 ], [ %220, %231 ]
%235 = sub i64 %9, %234
%236 = xor i64 %234, -1
%237 = add i64 %236, %9
%238 = and i64 %235, 3
%239 = icmp eq i64 %238, 0
br i1 %239, label %249, label %240
240: ; preds = %233, %240
%241 = phi i64 [ %246, %240 ], [ %234, %233 ]
%242 = phi i64 [ %247, %240 ], [ 0, %233 ]
%243 = mul nsw i64 %241, %0
%244 = getelementptr inbounds i8, i8* %2, i64 %243
store i8 124, i8* %244
%245 = getelementptr inbounds i8, i8* %244, i64 %142
store i8 124, i8* %245
%246 = add nuw i64 %241, 1
%247 = add i64 %242, 1
%248 = icmp eq i64 %247, %238
br i1 %248, label %249, label %240
249: ; preds = %240, %233
%250 = phi i64 [ %234, %233 ], [ %246, %240 ]
%251 = icmp ult i64 %237, 3
br i1 %251, label %286, label %267
252: ; preds = %130, %252
%253 = phi i64 [ %265, %252 ], [ %131, %130 ]
%254 = getelementptr inbounds i8, i8* %2, i64 %253
store i8 45, i8* %254
%255 = getelementptr inbounds i8, i8* %20, i64 %253
store i8 45, i8* %255
%256 = add nuw i64 %253, 1
%257 = getelementptr inbounds i8, i8* %2, i64 %256
store i8 45, i8* %257
%258 = getelementptr inbounds i8, i8* %20, i64 %256
store i8 45, i8* %258
%259 = add nuw i64 %253, 2
%260 = getelementptr inbounds i8, i8* %2, i64 %259
store i8 45, i8* %260
%261 = getelementptr inbounds i8, i8* %20, i64 %259
store i8 45, i8* %261
%262 = add nuw i64 %253, 3
%263 = getelementptr inbounds i8, i8* %2, i64 %262
store i8 45, i8* %263
%264 = getelementptr inbounds i8, i8* %20, i64 %262
store i8 45, i8* %264
%265 = add nuw i64 %253, 4
%266 = icmp eq i64 %265, %5
br i1 %266, label %140, label %252
267: ; preds = %249, %267
%268 = phi i64 [ %284, %267 ], [ %250, %249 ]
%269 = mul nsw i64 %268, %0
%270 = getelementptr inbounds i8, i8* %2, i64 %269
store i8 124, i8* %270
%271 = getelementptr inbounds i8, i8* %270, i64 %142
store i8 124, i8* %271
%272 = add nuw i64 %268, 1
%273 = mul nsw i64 %272, %0
%274 = getelementptr inbounds i8, i8* %2, i64 %273
store i8 124, i8* %274
%275 = getelementptr inbounds i8, i8* %274, i64 %142
store i8 124, i8* %275
%276 = add nuw i64 %268, 2
%277 = mul nsw i64 %276, %0
%278 = getelementptr inbounds i8, i8* %2, i64 %277
store i8 124, i8* %278
%279 = getelementptr inbounds i8, i8* %278, i64 %142
store i8 124, i8* %279
%280 = add nuw i64 %268, 3
%281 = mul nsw i64 %280, %0
%282 = getelementptr inbounds i8, i8* %2, i64 %281
store i8 124, i8* %282
%283 = getelementptr inbounds i8, i8* %282, i64 %142
store i8 124, i8* %283
%284 = add nuw i64 %268, 4
%285 = icmp eq i64 %284, %9
br i1 %285, label %286, label %267
286: ; preds = %249, %267, %210, %231, %140
store i8 47, i8* %2
%287 = getelementptr inbounds i8, i8* %2, i64 %142
store i8 92, i8* %287
%288 = add i64 %9, -1
%289 = mul nsw i64 %288, %0
%290 = getelementptr inbounds i8, i8* %2, i64 %289
store i8 92, i8* %290
%291 = getelementptr inbounds i8, i8* %290, i64 %142
store i8 47, i8* %291
br label %292
292: ; preds = %6, %286
%293 = phi i32 [ 0, %286 ], [ -1, %6 ]
ret i32 %293
}