#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*/ dispF(float *, int, int, int, int, int, float, char *, int);
int /*<<< orphan*/ draw_rectangle(float *, int, int, int, int, int, int, float);
double logf(double);
void gamatest(float *sl, int w, int h) {
  int i, s, x, y;
  float g;
  for (i = 0; i < w * h; i++)
    sl[i] = 0.5;
  for (i = 0; i < 30; i++) {
    s = 66 + 5 * i;
    g = 1.0 / (logf((float)s / 255.0) / logf(0.5));
    x = w / 4 + 3 * w / 16 * (i / 10);
    y = (i % 10 + 1) * h / 12;
    draw_rectangle(sl, w, h, x, y, w / 8, h / 13, (float)s / 255.0);
    s = (s < 140) ? 240 : 20;
    dispF(sl, w, h, x + w / 16 - 18, y + h / 24 + 4, 6, g, "%4.2f", s / 255.0);
  }
  for (i = h / 16; i < 15 * h / 16; i++) {
    g = (i % 2 == 0) ? 1.0 : 0.0;
    draw_rectangle(sl, w, h, 3 * w / 16, i, w / 16, 1, g);
    draw_rectangle(sl, w, h, 6 * w / 16, i, w / 16, 1, g);
    draw_rectangle(sl, w, h, 9 * w / 16, i, w / 16, 1, g);
    draw_rectangle(sl, w, h, 12 * w / 16, i, w / 16, 1, g);
  }
  draw_rectangle(sl, w, h, w / 16, h / 12, w / 16, 10 * h / 12, 0.0);
  draw_rectangle(sl, w, h, 14 * w / 16, h / 12, w / 16, 10 * h / 12, 1.0);
  for (i = 1; i < 11; i++) {
    g = (float)i * 0.01;
    draw_rectangle(sl, w, h, w / 16 + w / 48, i * h / 12 + h / 36, w / 48,
                   h / 36, g);
    g = (float)(100 - i) * 0.01;
    draw_rectangle(sl, w, h, 14 * w / 16 + w / 48, i * h / 12 + h / 36, w / 48,
                   h / 36, g);
  }
}


x86 assembly (clang, -O0):
<gamatest>:
push   %rbp
mov    %rsp,%rbp
sub    $0x80,%rsp
mov    %rdi,-0x8(%rbp)
mov    %esi,-0xc(%rbp)
mov    %edx,-0x10(%rbp)
movl   $0x0,-0x14(%rbp)
mov    -0x14(%rbp),%eax
mov    -0xc(%rbp),%ecx
imul   -0x10(%rbp),%ecx
cmp    %ecx,%eax
jge    1181 <gamatest+0x51>
mov    -0x8(%rbp),%rax
movslq -0x14(%rbp),%rcx
movss  0xe96(%rip),%xmm0
movss  %xmm0,(%rax,%rcx,4)
mov    -0x14(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x14(%rbp)
jmp    114c <gamatest+0x1c>
movl   $0x0,-0x14(%rbp)
cmpl   $0x1e,-0x14(%rbp)
jge    1326 <gamatest+0x1f6>
imul   $0x5,-0x14(%rbp),%eax
add    $0x42,%eax
mov    %eax,-0x18(%rbp)
cvtsi2ssl -0x18(%rbp),%xmm0
cvtss2sd %xmm0,%xmm0
movsd  0xe6b(%rip),%xmm1
divsd  %xmm1,%xmm0
call   1040 <logf@plt>
movsd  %xmm0,-0x38(%rbp)
movsd  0xe5d(%rip),%xmm0
call   1040 <logf@plt>
movsd  -0x38(%rbp),%xmm1
divsd  %xmm0,%xmm1
movsd  0xe37(%rip),%xmm0
divsd  %xmm1,%xmm0
cvtsd2ss %xmm0,%xmm0
movss  %xmm0,-0x24(%rbp)
mov    -0xc(%rbp),%eax
mov    $0x4,%ecx
cltd
idiv   %ecx
mov    %eax,-0x30(%rbp)
imul   $0x3,-0xc(%rbp),%eax
mov    $0x10,%ecx
cltd
idiv   %ecx
mov    %eax,%ecx
mov    -0x14(%rbp),%eax
mov    $0xa,%esi
cltd
idiv   %esi
mov    %eax,%edx
mov    -0x30(%rbp),%eax
imul   %edx,%ecx
add    %ecx,%eax
mov    %eax,-0x1c(%rbp)
mov    -0x14(%rbp),%eax
mov    $0xa,%ecx
cltd
idiv   %ecx
mov    %edx,%eax
add    $0x1,%eax
imul   -0x10(%rbp),%eax
mov    $0xc,%ecx
cltd
idiv   %ecx
mov    %eax,-0x20(%rbp)
mov    -0x8(%rbp),%rdi
mov    -0xc(%rbp),%esi
mov    -0x10(%rbp),%eax
mov    %eax,-0x2c(%rbp)
mov    -0x1c(%rbp),%ecx
mov    -0x20(%rbp),%r8d
mov    -0xc(%rbp),%eax
mov    $0x8,%r9d
cltd
idiv   %r9d
mov    %eax,%r9d
mov    -0x10(%rbp),%eax
mov    $0xd,%r10d
cltd
idiv   %r10d
mov    -0x2c(%rbp),%edx
cvtsi2ssl -0x18(%rbp),%xmm0
cvtss2sd %xmm0,%xmm0
movsd  0xd9a(%rip),%xmm1
divsd  %xmm1,%xmm0
cvtsd2ss %xmm0,%xmm0
mov    %eax,(%rsp)
call   1030 <draw_rectangle@plt>
mov    -0x18(%rbp),%edx
mov    $0x14,%eax
mov    $0xf0,%ecx
cmp    $0x8c,%edx
cmovl  %ecx,%eax
mov    %eax,-0x18(%rbp)
mov    -0x8(%rbp),%rdi
mov    -0xc(%rbp),%esi
mov    -0x10(%rbp),%eax
mov    %eax,-0x28(%rbp)
mov    -0x1c(%rbp),%ecx
mov    -0xc(%rbp),%eax
mov    $0x10,%r8d
cltd
idiv   %r8d
add    %eax,%ecx
sub    $0x12,%ecx
mov    -0x20(%rbp),%r8d
mov    -0x10(%rbp),%eax
mov    $0x18,%r9d
cltd
idiv   %r9d
mov    -0x28(%rbp),%edx
add    %eax,%r8d
add    $0x4,%r8d
movss  -0x24(%rbp),%xmm0
cvtsi2sdl -0x18(%rbp),%xmm1
movsd  0xd22(%rip),%xmm2
divsd  %xmm2,%xmm1
cvttsd2si %xmm1,%eax
mov    $0x6,%r9d
lea    0xd1d(%rip),%r10
mov    %r10,(%rsp)
mov    %eax,0x8(%rsp)
call   1050 <dispF@plt>
mov    -0x14(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x14(%rbp)
jmp    1188 <gamatest+0x58>
mov    -0x10(%rbp),%eax
mov    $0x10,%ecx
cltd
idiv   %ecx
mov    %eax,-0x14(%rbp)
mov    -0x14(%rbp),%eax
mov    %eax,-0x3c(%rbp)
imul   $0xf,-0x10(%rbp),%eax
mov    $0x10,%ecx
cltd
idiv   %ecx
mov    %eax,%ecx
mov    -0x3c(%rbp),%eax
cmp    %ecx,%eax
jge    14ae <gamatest+0x37e>
mov    -0x14(%rbp),%eax
mov    $0x2,%ecx
cltd
idiv   %ecx
movsd  0xcaa(%rip),%xmm0
xorps  %xmm1,%xmm1
movsd  %xmm1,-0x50(%rbp)
cmp    $0x0,%edx
movsd  %xmm0,-0x48(%rbp)
je     1386 <gamatest+0x256>
movsd  -0x50(%rbp),%xmm0
movsd  %xmm0,-0x48(%rbp)
movsd  -0x48(%rbp),%xmm0
cvtsd2ss %xmm0,%xmm0
movss  %xmm0,-0x24(%rbp)
mov    -0x8(%rbp),%rdi
mov    -0xc(%rbp),%esi
mov    -0x10(%rbp),%eax
mov    %eax,-0x60(%rbp)
imul   $0x3,-0xc(%rbp),%eax
mov    $0x10,%ecx
cltd
idiv   %ecx
mov    %eax,%ecx
mov    -0x14(%rbp),%r8d
mov    -0xc(%rbp),%eax
mov    $0x10,%r9d
cltd
idiv   %r9d
mov    -0x60(%rbp),%edx
mov    %eax,%r9d
movss  -0x24(%rbp),%xmm0
movl   $0x1,(%rsp)
call   1030 <draw_rectangle@plt>
mov    -0x8(%rbp),%rdi
mov    -0xc(%rbp),%esi
mov    -0x10(%rbp),%eax
mov    %eax,-0x5c(%rbp)
imul   $0x6,-0xc(%rbp),%eax
mov    $0x10,%ecx
cltd
idiv   %ecx
mov    %eax,%ecx
mov    -0x14(%rbp),%r8d
mov    -0xc(%rbp),%eax
mov    $0x10,%r9d
cltd
idiv   %r9d
mov    -0x5c(%rbp),%edx
mov    %eax,%r9d
movss  -0x24(%rbp),%xmm0
movl   $0x1,(%rsp)
call   1030 <draw_rectangle@plt>
mov    -0x8(%rbp),%rdi
mov    -0xc(%rbp),%esi
mov    -0x10(%rbp),%eax
mov    %eax,-0x58(%rbp)
imul   $0x9,-0xc(%rbp),%eax
mov    $0x10,%ecx
cltd
idiv   %ecx
mov    %eax,%ecx
mov    -0x14(%rbp),%r8d
mov    -0xc(%rbp),%eax
mov    $0x10,%r9d
cltd
idiv   %r9d
mov    -0x58(%rbp),%edx
mov    %eax,%r9d
movss  -0x24(%rbp),%xmm0
movl   $0x1,(%rsp)
call   1030 <draw_rectangle@plt>
mov    -0x8(%rbp),%rdi
mov    -0xc(%rbp),%esi
mov    -0x10(%rbp),%eax
mov    %eax,-0x54(%rbp)
imul   $0xc,-0xc(%rbp),%eax
mov    $0x10,%ecx
cltd
idiv   %ecx
mov    %eax,%ecx
mov    -0x14(%rbp),%r8d
mov    -0xc(%rbp),%eax
mov    $0x10,%r9d
cltd
idiv   %r9d
mov    -0x54(%rbp),%edx
mov    %eax,%r9d
movss  -0x24(%rbp),%xmm0
movl   $0x1,(%rsp)
call   1030 <draw_rectangle@plt>
mov    -0x14(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x14(%rbp)
jmp    1334 <gamatest+0x204>
mov    -0x8(%rbp),%rdi
mov    -0xc(%rbp),%esi
mov    -0x10(%rbp),%eax
mov    %eax,-0x68(%rbp)
mov    -0xc(%rbp),%eax
mov    $0x10,%ecx
cltd
idiv   %ecx
mov    %eax,%ecx
mov    -0x10(%rbp),%eax
mov    $0xc,%r8d
cltd
idiv   %r8d
mov    %eax,%r8d
mov    -0xc(%rbp),%eax
mov    $0x10,%r9d
cltd
idiv   %r9d
mov    %eax,%r9d
imul   $0xa,-0x10(%rbp),%eax
mov    $0xc,%r10d
cltd
idiv   %r10d
mov    -0x68(%rbp),%edx
xorps  %xmm0,%xmm0
mov    %eax,(%rsp)
call   1030 <draw_rectangle@plt>
mov    -0x8(%rbp),%rdi
mov    -0xc(%rbp),%esi
mov    -0x10(%rbp),%eax
mov    %eax,-0x64(%rbp)
imul   $0xe,-0xc(%rbp),%eax
mov    $0x10,%ecx
cltd
idiv   %ecx
mov    %eax,%ecx
mov    -0x10(%rbp),%eax
mov    $0xc,%r8d
cltd
idiv   %r8d
mov    %eax,%r8d
mov    -0xc(%rbp),%eax
mov    $0x10,%r9d
cltd
idiv   %r9d
mov    %eax,%r9d
imul   $0xa,-0x10(%rbp),%eax
mov    $0xc,%r10d
cltd
idiv   %r10d
mov    -0x64(%rbp),%edx
movss  0xaa8(%rip),%xmm0
mov    %eax,(%rsp)
call   1030 <draw_rectangle@plt>
movl   $0x1,-0x14(%rbp)
cmpl   $0xb,-0x14(%rbp)
jge    16b7 <gamatest+0x587>
cvtsi2ssl -0x14(%rbp),%xmm0
cvtss2sd %xmm0,%xmm0
movsd  0xa86(%rip),%xmm1
mulsd  %xmm1,%xmm0
cvtsd2ss %xmm0,%xmm0
movss  %xmm0,-0x24(%rbp)
mov    -0x8(%rbp),%rdi
mov    -0xc(%rbp),%esi
mov    -0x10(%rbp),%eax
mov    %eax,-0x70(%rbp)
mov    -0xc(%rbp),%eax
mov    $0x10,%ecx
cltd
idiv   %ecx
mov    %eax,%ecx
mov    -0xc(%rbp),%eax
mov    $0x30,%r8d
cltd
idiv   %r8d
add    %eax,%ecx
mov    -0x14(%rbp),%eax
imul   -0x10(%rbp),%eax
mov    $0xc,%r8d
cltd
idiv   %r8d
mov    %eax,%r8d
mov    -0x10(%rbp),%eax
mov    $0x24,%r9d
cltd
idiv   %r9d
add    %eax,%r8d
mov    -0xc(%rbp),%eax
mov    $0x30,%r9d
cltd
idiv   %r9d
mov    %eax,%r9d
mov    -0x10(%rbp),%eax
mov    $0x24,%r10d
cltd
idiv   %r10d
mov    -0x70(%rbp),%edx
movss  -0x24(%rbp),%xmm0
mov    %eax,(%rsp)
call   1030 <draw_rectangle@plt>
mov    $0x64,%eax
sub    -0x14(%rbp),%eax
cvtsi2ss %eax,%xmm0
cvtss2sd %xmm0,%xmm0
movsd  0x9e7(%rip),%xmm1
mulsd  %xmm1,%xmm0
cvtsd2ss %xmm0,%xmm0
movss  %xmm0,-0x24(%rbp)
mov    -0x8(%rbp),%rdi
mov    -0xc(%rbp),%esi
mov    -0x10(%rbp),%eax
mov    %eax,-0x6c(%rbp)
imul   $0xe,-0xc(%rbp),%eax
mov    $0x10,%ecx
cltd
idiv   %ecx
mov    %eax,%ecx
mov    -0xc(%rbp),%eax
mov    $0x30,%r8d
cltd
idiv   %r8d
add    %eax,%ecx
mov    -0x14(%rbp),%eax
imul   -0x10(%rbp),%eax
mov    $0xc,%r8d
cltd
idiv   %r8d
mov    %eax,%r8d
mov    -0x10(%rbp),%eax
mov    $0x24,%r9d
cltd
idiv   %r9d
add    %eax,%r8d
mov    -0xc(%rbp),%eax
mov    $0x30,%r9d
cltd
idiv   %r9d
mov    %eax,%r9d
mov    -0x10(%rbp),%eax
mov    $0x24,%r10d
cltd
idiv   %r10d
mov    -0x6c(%rbp),%edx
movss  -0x24(%rbp),%xmm0
mov    %eax,(%rsp)
call   1030 <draw_rectangle@plt>
mov    -0x14(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x14(%rbp)
jmp    1567 <gamatest+0x437>
add    $0x80,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<gamatest>:
push   %rbp
push   %r15
push   %r14
push   %r13
push   %r12
push   %rbx
sub    $0x88,%rsp
mov    %edx,%ebx
mov    %edx,%ecx
imul   %esi,%ecx
test   %ecx,%ecx
jle    1260 <gamatest+0x130>
mov    %ecx,%eax
cmp    $0x8,%ecx
jae    115e <gamatest+0x2e>
xor    %ecx,%ecx
jmp    1250 <gamatest+0x120>
mov    %eax,%ecx
and    $0xfffffff8,%ecx
lea    -0x8(%rcx),%r8
mov    %r8,%rdx
shr    $0x3,%rdx
add    $0x1,%rdx
mov    %edx,%r9d
and    $0x7,%r9d
cmp    $0x38,%r8
jae    1186 <gamatest+0x56>
xor    %ebp,%ebp
jmp    1211 <gamatest+0xe1>
and    $0xfffffffffffffff8,%rdx
xor    %ebp,%ebp
movaps 0xe6d(%rip),%xmm0
cs nopw 0x0(%rax,%rax,1)
nopl   (%rax)
movups %xmm0,(%rdi,%rbp,4)
movups %xmm0,0x10(%rdi,%rbp,4)
movups %xmm0,0x20(%rdi,%rbp,4)
movups %xmm0,0x30(%rdi,%rbp,4)
movups %xmm0,0x40(%rdi,%rbp,4)
movups %xmm0,0x50(%rdi,%rbp,4)
movups %xmm0,0x60(%rdi,%rbp,4)
movups %xmm0,0x70(%rdi,%rbp,4)
movups %xmm0,0x80(%rdi,%rbp,4)
movups %xmm0,0x90(%rdi,%rbp,4)
movups %xmm0,0xa0(%rdi,%rbp,4)
movups %xmm0,0xb0(%rdi,%rbp,4)
movups %xmm0,0xc0(%rdi,%rbp,4)
movups %xmm0,0xd0(%rdi,%rbp,4)
movups %xmm0,0xe0(%rdi,%rbp,4)
movups %xmm0,0xf0(%rdi,%rbp,4)
add    $0x40,%rbp
add    $0xfffffffffffffff8,%rdx
jne    11a0 <gamatest+0x70>
test   %r9,%r9
je     1242 <gamatest+0x112>
lea    (%rdi,%rbp,4),%rdx
add    $0x10,%rdx
shl    $0x5,%r9
xor    %ebp,%ebp
movaps 0xdd5(%rip),%xmm0
nopl   0x0(%rax,%rax,1)
movups %xmm0,-0x10(%rdx,%rbp,1)
movups %xmm0,(%rdx,%rbp,1)
add    $0x20,%rbp
cmp    %rbp,%r9
jne    1230 <gamatest+0x100>
cmp    %rax,%rcx
je     1260 <gamatest+0x130>
nopw   0x0(%rax,%rax,1)
movl   $0x3f000000,(%rdi,%rcx,4)
add    $0x1,%rcx
cmp    %rcx,%rax
jne    1250 <gamatest+0x120>
lea    0xf(%rsi),%ecx
test   %esi,%esi
cmovns %esi,%ecx
lea    0x7(%rsi),%edx
test   %esi,%esi
cmovns %esi,%edx
lea    0x3(%rsi),%eax
test   %esi,%esi
cmovns %esi,%eax
sar    $0x2,%eax
mov    %eax,0x60(%rsp)
lea    (%rsi,%rsi,2),%eax
lea    (%rsi,%rsi,2),%ebp
add    $0xf,%ebp
test   %eax,%eax
cmovns %eax,%ebp
sar    $0x4,%ebp
mov    %ebp,0x34(%rsp)
sar    $0x3,%edx
mov    %edx,0x64(%rsp)
movslq %ebx,%rdx
imul   $0x4ec4ec4f,%rdx,%rax
mov    %rax,%rbp
sar    $0x22,%rbp
shr    $0x3f,%rax
add    %ebp,%eax
mov    %rax,0x80(%rsp)
sar    $0x4,%ecx
mov    %rcx,0x38(%rsp)
lea    -0x12(%rcx),%eax
mov    %eax,0x5c(%rsp)
mov    %rdx,0x78(%rsp)
imul   $0x2aaaaaab,%rdx,%rcx
mov    %rcx,%rax
sar    $0x22,%rax
mov    %rcx,0x70(%rsp)
shr    $0x3f,%rcx
mov    %rcx,0x68(%rsp)
add    %ecx,%eax
add    $0x4,%eax
mov    %eax,0x58(%rsp)
mov    %rdi,0x40(%rsp)
mov    $0x42,%r12d
mov    $0x1,%cl
mov    %rsi,0x28(%rsp)
xor    %r15d,%r15d
mov    0x40(%rsp),%r14
nopl   (%rax)
mov    %cl,0x18(%rsp)
movzbl %r15b,%r15d
imul   $0xcd,%r15d,%ebp
shr    $0xb,%ebp
lea    0x0(%rbp,%rbp,1),%eax
lea    (%rax,%rax,4),%eax
mov    %rbx,%r13
mov    %ecx,%ebx
xorps  %xmm0,%xmm0
cvtsi2ss %r12d,%xmm0
sub    %al,%bl
lea    -0x42(%r12),%eax
mov    %eax,0x20(%rsp)
cvtss2sd %xmm0,%xmm1
movsd  0xcc3(%rip),%xmm0
divsd  %xmm0,%xmm1
movsd  %xmm1,0x50(%rsp)
movapd %xmm1,%xmm0
call   1040 <logf@plt>
divsd  0xcb0(%rip),%xmm0
movsd  0xcb0(%rip),%xmm1
divsd  %xmm0,%xmm1
xorps  %xmm0,%xmm0
cvtsd2ss %xmm1,%xmm0
movss  %xmm0,0x14(%rsp)
imul   0x34(%rsp),%ebp
add    0x60(%rsp),%ebp
movzbl %bl,%eax
mov    %r13,%rbx
imul   %ebx,%eax
cltq
imul   $0x2aaaaaab,%rax,%r13
mov    %r13,%rax
shr    $0x3f,%rax
sar    $0x21,%r13
add    %eax,%r13d
movsd  0x50(%rsp),%xmm0
cvtsd2ss %xmm0,%xmm0
mov    0x80(%rsp),%rax
mov    %eax,(%rsp)
mov    %r14,%rdi
mov    0x28(%rsp),%rsi
mov    %ebx,%edx
mov    %ebp,%ecx
mov    %r13d,%r8d
mov    0x64(%rsp),%r9d
call   1030 <draw_rectangle@plt>
cmpl   $0x4a,0x20(%rsp)
mov    $0x14,%eax
mov    $0xf0,%ecx
cmovb  %ecx,%eax
add    0x5c(%rsp),%ebp
xorps  %xmm0,%xmm0
cvtsi2sd %eax,%xmm0
add    0x58(%rsp),%r13d
divsd  0xc0e(%rip),%xmm0
cvttsd2si %xmm0,%eax
mov    %eax,0x8(%rsp)
lea    0xc23(%rip),%rax
mov    %rax,(%rsp)
mov    %r14,%rdi
mov    0x28(%rsp),%rsi
mov    %ebx,%edx
mov    %ebp,%ecx
mov    %r13d,%r8d
mov    $0x6,%r9d
movss  0x14(%rsp),%xmm0
call   1050 <dispF@plt>
movzbl 0x18(%rsp),%ecx
add    $0x5,%r12d
add    $0x1,%cl
add    $0x1,%r15b
cmp    $0xd8,%r12d
jne    1310 <gamatest+0x1e0>
lea    0xf(%rbx),%ebp
test   %ebx,%ebx
cmovns %ebx,%ebp
sar    $0x4,%ebp
lea    (%rbx,%rbx,4),%eax
lea    (%rax,%rax,2),%ecx
lea    (%rax,%rax,2),%eax
add    $0xf,%eax
test   %ecx,%ecx
cmovns %ecx,%eax
sar    $0x4,%eax
mov    %eax,0x14(%rsp)
cmp    %eax,%ebp
mov    0x28(%rsp),%r15
mov    0x40(%rsp),%r12
jge    1592 <gamatest+0x462>
lea    (%r15,%r15,1),%eax
lea    (%rax,%rax,2),%ecx
lea    (%rax,%rax,2),%eax
add    $0xf,%eax
test   %ecx,%ecx
cmovns %ecx,%eax
sar    $0x4,%eax
mov    %eax,0x20(%rsp)
lea    (%r15,%r15,8),%eax
lea    (%r15,%r15,8),%ecx
add    $0xf,%ecx
test   %eax,%eax
cmovns %eax,%ecx
sar    $0x4,%ecx
mov    %ecx,0x50(%rsp)
lea    0x0(,%r15,4),%eax
lea    (%rax,%rax,2),%ecx
lea    (%rax,%rax,2),%r13d
add    $0xf,%r13d
test   %ecx,%ecx
cmovns %ecx,%r13d
sar    $0x4,%r13d
mov    0x38(%rsp),%r14
jmp    1574 <gamatest+0x444>
xchg   %ax,%ax
movl   $0x1,(%rsp)
mov    %r12,%rdi
mov    %r15d,%esi
mov    %ebx,%edx
mov    %ebp,%r8d
mov    %r14d,%r9d
movss  %xmm0,0x18(%rsp)
call   1030 <draw_rectangle@plt>
movl   $0x1,(%rsp)
mov    %r12,%rdi
mov    %r15d,%esi
mov    %ebx,%edx
mov    0x20(%rsp),%ecx
mov    %ebp,%r8d
mov    %r14d,%r9d
movss  0x18(%rsp),%xmm0
call   1030 <draw_rectangle@plt>
movl   $0x1,(%rsp)
mov    %r12,%rdi
mov    %r15d,%esi
mov    %ebx,%edx
mov    0x50(%rsp),%ecx
mov    %ebp,%r8d
mov    %r14d,%r9d
movss  0x18(%rsp),%xmm0
call   1030 <draw_rectangle@plt>
movl   $0x1,(%rsp)
mov    %r12,%rdi
mov    %r15d,%esi
mov    %ebx,%edx
mov    %r13d,%ecx
mov    %ebp,%r8d
mov    %r14d,%r9d
movss  0x18(%rsp),%xmm0
call   1030 <draw_rectangle@plt>
add    $0x1,%ebp
cmp    %ebp,0x14(%rsp)
je     1592 <gamatest+0x462>
movss  0xab4(%rip),%xmm0
test   $0x1,%bpl
mov    0x34(%rsp),%ecx
je     14e0 <gamatest+0x3b0>
xorps  %xmm0,%xmm0
jmp    14e0 <gamatest+0x3b0>
mov    0x70(%rsp),%r14
sar    $0x21,%r14
add    0x68(%rsp),%r14d
lea    (%rbx,%rbx,1),%eax
lea    (%rax,%rax,4),%eax
cltq
mov    %rbx,%rdx
mov    %rbx,0x48(%rsp)
imul   $0x2aaaaaab,%rax,%rbx
mov    %rbx,%rax
shr    $0x3f,%rax
sar    $0x21,%rbx
add    %eax,%ebx
mov    %ebx,(%rsp)
xorps  %xmm0,%xmm0
mov    %r12,%rdi
mov    %r15d,%esi
mov    0x38(%rsp),%rbp
mov    %ebp,%ecx
mov    %r14d,%r8d
mov    %ebp,%r9d
call   1030 <draw_rectangle@plt>
mov    %r15d,%eax
shl    $0x4,%eax
sub    %r15d,%eax
sub    %r15d,%eax
lea    0xf(%rax),%r13d
test   %eax,%eax
cmovns %eax,%r13d
sar    $0x4,%r13d
mov    %ebx,(%rsp)
movss  0xa29(%rip),%xmm0
mov    %r12,%rdi
mov    %r15d,%esi
mov    0x48(%rsp),%rdx
mov    %r13d,%ecx
mov    %r14d,%r8d
mov    %ebp,%r9d
call   1030 <draw_rectangle@plt>
mov    %rbp,%rdx
movslq %r15d,%rax
imul   $0x2aaaaaab,%rax,%rcx
mov    %rcx,%rax
shr    $0x3f,%rax
sar    $0x23,%rcx
add    %eax,%ecx
add    %ecx,%edx
imul   $0x38e38e39,0x78(%rsp),%rsi
e3 38
mov    %rsi,%rax
shr    $0x3f,%rax
sar    $0x23,%rsi
add    %eax,%esi
mov    %rsi,0x20(%rsp)
mov    %rcx,0x18(%rsp)
add    %ecx,%r13d
mov    %r13d,0x14(%rsp)
mov    $0x1,%ebp
mov    $0x63,%ebx
mov    0x48(%rsp),%r13
mov    %rdx,0x38(%rsp)
mov    0x20(%rsp),%r14
mov    0x48(%rsp),%r15
cs nopw 0x0(%rax,%rax,1)
nopl   0x0(%rax)
xorps  %xmm0,%xmm0
cvtsi2ss %ebp,%xmm0
cvtss2sd %xmm0,%xmm0
movsd  0x985(%rip),%xmm1
mulsd  %xmm1,%xmm0
cvtsd2ss %xmm0,%xmm0
movslq %r13d,%r13
imul   $0x2aaaaaab,%r13,%r12
mov    %r12,%rax
shr    $0x3f,%rax
sar    $0x21,%r12
add    %eax,%r12d
add    %r14d,%r12d
mov    %r14d,(%rsp)
mov    0x40(%rsp),%rdi
mov    0x28(%rsp),%rsi
mov    %r15d,%edx
mov    0x38(%rsp),%rcx
mov    %r12d,%r8d
mov    0x18(%rsp),%r9
call   1030 <draw_rectangle@plt>
xorps  %xmm0,%xmm0
cvtsi2ss %ebx,%xmm0
cvtss2sd %xmm0,%xmm0
mulsd  0x92c(%rip),%xmm0
cvtsd2ss %xmm0,%xmm0
mov    %r14d,(%rsp)
mov    0x40(%rsp),%rdi
mov    0x28(%rsp),%rsi
mov    %r15d,%edx
mov    0x14(%rsp),%ecx
mov    %r12d,%r8d
mov    0x18(%rsp),%r9
call   1030 <draw_rectangle@plt>
add    $0x1,%ebp
add    $0xffffffff,%ebx
add    %r15d,%r13d
cmp    $0x59,%ebx
jne    1690 <gamatest+0x560>
add    $0x88,%rsp
pop    %rbx
pop    %r12
pop    %r13
pop    %r14
pop    %r15
pop    %rbp
ret

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

LLVM IR (-O2):
@.str = [6 x i8] c"%4.2f\00"
define void @gamatest(float* %0, i32 %1, i32 %2) {
%4 = mul i32 %2, %1
%5 = icmp sgt i32 %4, 0
br i1 %5, label %6, label %80
6: ; preds = %3
%7 = zext i32 %4 to i64
%8 = icmp ult i32 %4, 8
br i1 %8, label %78, label %9
9: ; preds = %6
%10 = and i64 %7, 4294967288
%11 = add nsw i64 %10, -8
%12 = lshr exact i64 %11, 3
%13 = add nuw nsw i64 %12, 1
%14 = and i64 %13, 7
%15 = icmp ult i64 %11, 56
br i1 %15, label %63, label %16
16: ; preds = %9
%17 = and i64 %13, 4611686018427387896
br label %18
18: ; preds = %18, %16
%19 = phi i64 [ 0, %16 ], [ %60, %18 ]
%20 = phi i64 [ 0, %16 ], [ %61, %18 ]
%21 = getelementptr inbounds float, float* %0, i64 %19
%22 = bitcast float* %21 to <4 x float>*
store <4 x float> <float 5.000000e-01, float 5.000000e-01, float 5.000000e-01, float 5.000000e-01>, <4 x float>* %22
%23 = getelementptr inbounds float, float* %21, i64 4
%24 = bitcast float* %23 to <4 x float>*
store <4 x float> <float 5.000000e-01, float 5.000000e-01, float 5.000000e-01, float 5.000000e-01>, <4 x float>* %24
%25 = or i64 %19, 8
%26 = getelementptr inbounds float, float* %0, i64 %25
%27 = bitcast float* %26 to <4 x float>*
store <4 x float> <float 5.000000e-01, float 5.000000e-01, float 5.000000e-01, float 5.000000e-01>, <4 x float>* %27
%28 = getelementptr inbounds float, float* %26, i64 4
%29 = bitcast float* %28 to <4 x float>*
store <4 x float> <float 5.000000e-01, float 5.000000e-01, float 5.000000e-01, float 5.000000e-01>, <4 x float>* %29
%30 = or i64 %19, 16
%31 = getelementptr inbounds float, float* %0, i64 %30
%32 = bitcast float* %31 to <4 x float>*
store <4 x float> <float 5.000000e-01, float 5.000000e-01, float 5.000000e-01, float 5.000000e-01>, <4 x float>* %32
%33 = getelementptr inbounds float, float* %31, i64 4
%34 = bitcast float* %33 to <4 x float>*
store <4 x float> <float 5.000000e-01, float 5.000000e-01, float 5.000000e-01, float 5.000000e-01>, <4 x float>* %34
%35 = or i64 %19, 24
%36 = getelementptr inbounds float, float* %0, i64 %35
%37 = bitcast float* %36 to <4 x float>*
store <4 x float> <float 5.000000e-01, float 5.000000e-01, float 5.000000e-01, float 5.000000e-01>, <4 x float>* %37
%38 = getelementptr inbounds float, float* %36, i64 4
%39 = bitcast float* %38 to <4 x float>*
store <4 x float> <float 5.000000e-01, float 5.000000e-01, float 5.000000e-01, float 5.000000e-01>, <4 x float>* %39
%40 = or i64 %19, 32
%41 = getelementptr inbounds float, float* %0, i64 %40
%42 = bitcast float* %41 to <4 x float>*
store <4 x float> <float 5.000000e-01, float 5.000000e-01, float 5.000000e-01, float 5.000000e-01>, <4 x float>* %42
%43 = getelementptr inbounds float, float* %41, i64 4
%44 = bitcast float* %43 to <4 x float>*
store <4 x float> <float 5.000000e-01, float 5.000000e-01, float 5.000000e-01, float 5.000000e-01>, <4 x float>* %44
%45 = or i64 %19, 40
%46 = getelementptr inbounds float, float* %0, i64 %45
%47 = bitcast float* %46 to <4 x float>*
store <4 x float> <float 5.000000e-01, float 5.000000e-01, float 5.000000e-01, float 5.000000e-01>, <4 x float>* %47
%48 = getelementptr inbounds float, float* %46, i64 4
%49 = bitcast float* %48 to <4 x float>*
store <4 x float> <float 5.000000e-01, float 5.000000e-01, float 5.000000e-01, float 5.000000e-01>, <4 x float>* %49
%50 = or i64 %19, 48
%51 = getelementptr inbounds float, float* %0, i64 %50
%52 = bitcast float* %51 to <4 x float>*
store <4 x float> <float 5.000000e-01, float 5.000000e-01, float 5.000000e-01, float 5.000000e-01>, <4 x float>* %52
%53 = getelementptr inbounds float, float* %51, i64 4
%54 = bitcast float* %53 to <4 x float>*
store <4 x float> <float 5.000000e-01, float 5.000000e-01, float 5.000000e-01, float 5.000000e-01>, <4 x float>* %54
%55 = or i64 %19, 56
%56 = getelementptr inbounds float, float* %0, i64 %55
%57 = bitcast float* %56 to <4 x float>*
store <4 x float> <float 5.000000e-01, float 5.000000e-01, float 5.000000e-01, float 5.000000e-01>, <4 x float>* %57
%58 = getelementptr inbounds float, float* %56, i64 4
%59 = bitcast float* %58 to <4 x float>*
store <4 x float> <float 5.000000e-01, float 5.000000e-01, float 5.000000e-01, float 5.000000e-01>, <4 x float>* %59
%60 = add nuw i64 %19, 64
%61 = add nuw i64 %20, 8
%62 = icmp eq i64 %61, %17
br i1 %62, label %63, label %18
63: ; preds = %18, %9
%64 = phi i64 [ 0, %9 ], [ %60, %18 ]
%65 = icmp eq i64 %14, 0
br i1 %65, label %76, label %66
66: ; preds = %63, %66
%67 = phi i64 [ %73, %66 ], [ %64, %63 ]
%68 = phi i64 [ %74, %66 ], [ 0, %63 ]
%69 = getelementptr inbounds float, float* %0, i64 %67
%70 = bitcast float* %69 to <4 x float>*
store <4 x float> <float 5.000000e-01, float 5.000000e-01, float 5.000000e-01, float 5.000000e-01>, <4 x float>* %70
%71 = getelementptr inbounds float, float* %69, i64 4
%72 = bitcast float* %71 to <4 x float>*
store <4 x float> <float 5.000000e-01, float 5.000000e-01, float 5.000000e-01, float 5.000000e-01>, <4 x float>* %72
%73 = add nuw i64 %67, 8
%74 = add i64 %68, 1
%75 = icmp eq i64 %74, %14
br i1 %75, label %76, label %66
76: ; preds = %66, %63
%77 = icmp eq i64 %10, %7
br i1 %77, label %80, label %78
78: ; preds = %6, %76
%79 = phi i64 [ 0, %6 ], [ %10, %76 ]
br label %90
80: ; preds = %90, %76, %3
%81 = sdiv i32 %1, 4
%82 = mul nsw i32 %1, 3
%83 = sdiv i32 %82, 16
%84 = sdiv i32 %1, 8
%85 = sdiv i32 %2, 13
%86 = sdiv i32 %1, 16
%87 = add nsw i32 %86, -18
%88 = sdiv i32 %2, 24
%89 = add nsw i32 %88, 4
br label %95
90: ; preds = %78, %90
%91 = phi i64 [ %93, %90 ], [ %79, %78 ]
%92 = getelementptr inbounds float, float* %0, i64 %91
store float 5.000000e-01, float* %92
%93 = add nuw nsw i64 %91, 1
%94 = icmp eq i64 %93, %7
br i1 %94, label %80, label %90
95: ; preds = %80, %95
%96 = phi i32 [ 0, %80 ], [ %126, %95 ]
%97 = mul nuw nsw i32 %96, 5
%98 = add nuw nsw i32 %97, 66
%99 = sitofp i32 %98 to float
%100 = fpext float %99 to double
%101 = fdiv double %100, 2.550000e+02
%102 = tail call double @logf(double %101)
%103 = fdiv double %102, 0xBFE62E42FEFA39EF
%104 = fdiv double 1.000000e+00, %103
%105 = fptrunc double %104 to float
%106 = trunc i32 %96 to i8
%107 = udiv i8 %106, 10
%108 = zext i8 %107 to i32
%109 = mul nsw i32 %83, %108
%110 = add nsw i32 %109, %81
%111 = urem i8 %106, 10
%112 = add nuw nsw i8 %111, 1
%113 = zext i8 %112 to i32
%114 = mul nsw i32 %113, %2
%115 = sdiv i32 %114, 12
%116 = fptrunc double %101 to float
%117 = tail call i32 @draw_rectangle(float* %0, i32 %1, i32 %2, i32 %110, i32 %115, i32 %84, i32 %85, float %116)
%118 = icmp ult i32 %97, 74
%119 = select i1 %118, i32 240, i32 20
%120 = add i32 %87, %110
%121 = add nsw i32 %89, %115
%122 = sitofp i32 %119 to double
%123 = fdiv double %122, 2.550000e+02
%124 = fptosi double %123 to i32
%125 = tail call i32 @dispF(float* %0, i32 %1, i32 %2, i32 %120, i32 %121, i32 6, float %105, i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str, i64 0, i64 0), i32 %124)
%126 = add nuw nsw i32 %96, 1
%127 = icmp eq i32 %126, 30
br i1 %127, label %128, label %95
128: ; preds = %95
%129 = sdiv i32 %2, 16
%130 = mul nsw i32 %2, 15
%131 = sdiv i32 %130, 16
%132 = icmp slt i32 %129, %131
br i1 %132, label %133, label %151
133: ; preds = %128
%134 = mul nsw i32 %1, 6
%135 = sdiv i32 %134, 16
%136 = mul nsw i32 %1, 9
%137 = sdiv i32 %136, 16
%138 = mul nsw i32 %1, 12
%139 = sdiv i32 %138, 16
br label %140
140: ; preds = %133, %140
%141 = phi i32 [ %129, %133 ], [ %149, %140 ]
%142 = and i32 %141, 1
%143 = icmp eq i32 %142, 0
%144 = select i1 %143, float 1.000000e+00, float 0.000000e+00
%145 = tail call i32 @draw_rectangle(float* %0, i32 %1, i32 %2, i32 %83, i32 %141, i32 %86, i32 1, float %144)
%146 = tail call i32 @draw_rectangle(float* %0, i32 %1, i32 %2, i32 %135, i32 %141, i32 %86, i32 1, float %144)
%147 = tail call i32 @draw_rectangle(float* %0, i32 %1, i32 %2, i32 %137, i32 %141, i32 %86, i32 1, float %144)
%148 = tail call i32 @draw_rectangle(float* %0, i32 %1, i32 %2, i32 %139, i32 %141, i32 %86, i32 1, float %144)
%149 = add nsw i32 %141, 1
%150 = icmp eq i32 %149, %131
br i1 %150, label %151, label %140
151: ; preds = %140, %128
%152 = sdiv i32 %2, 12
%153 = mul nsw i32 %2, 10
%154 = sdiv i32 %153, 12
%155 = tail call i32 @draw_rectangle(float* %0, i32 %1, i32 %2, i32 %86, i32 %152, i32 %86, i32 %154, float 0.000000e+00)
%156 = mul nsw i32 %1, 14
%157 = sdiv i32 %156, 16
%158 = tail call i32 @draw_rectangle(float* %0, i32 %1, i32 %2, i32 %157, i32 %152, i32 %86, i32 %154, float 1.000000e+00)
%159 = sdiv i32 %1, 48
%160 = add nsw i32 %86, %159
%161 = sdiv i32 %2, 36
%162 = add nsw i32 %157, %159
br label %163
163: ; preds = %151, %163
%164 = phi i32 [ 1, %151 ], [ %179, %163 ]
%165 = sitofp i32 %164 to float
%166 = fpext float %165 to double
%167 = fmul double %166, 1.000000e-02
%168 = fptrunc double %167 to float
%169 = mul nsw i32 %164, %2
%170 = sdiv i32 %169, 12
%171 = add nsw i32 %170, %161
%172 = tail call i32 @draw_rectangle(float* %0, i32 %1, i32 %2, i32 %160, i32 %171, i32 %159, i32 %161, float %168)
%173 = sub nuw nsw i32 100, %164
%174 = sitofp i32 %173 to float
%175 = fpext float %174 to double
%176 = fmul double %175, 1.000000e-02
%177 = fptrunc double %176 to float
%178 = tail call i32 @draw_rectangle(float* %0, i32 %1, i32 %2, i32 %162, i32 %171, i32 %159, i32 %161, float %177)
%179 = add nuw nsw i32 %164, 1
%180 = icmp eq i32 %179, 11
br i1 %180, label %181, label %163
181: ; preds = %163
ret void
}