#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 */
typedef int /*<<< orphan*/ lf4;
typedef int /*<<< orphan*/ lf3;
typedef int /*<<< orphan*/ lf2;
typedef int /*<<< orphan*/ lf1;

/* Variables and functions */
int /*<<< orphan*/ dispF(float *, int, int, int, int, int, float, char *,
                         double);
int /*<<< orphan*/ draw_rectangle(float *, int, int, int, int, int, int,
                                  double);
int /*<<< orphan*/ draw_sweep_1(float *, int, int, int, int, int, int, float,
                                float, float, int /*<<< orphan*/, int);
int /*<<< orphan*/ draw_sweep_2(float *, int, int, int, int, int, int, float,
                                float, float, int /*<<< orphan*/, int);
void sweep_v(float *sl, int w, int h, int a, float amp, int lps, float ar,
             float sf, float ef) {
  float xl, nf;
  float lf1[] = {0.05, 0.1, 0.2, 0.3, 0.4, 0.5, 0.6, 0.7};
  float lf2[] = {0.05, 0.07, 0.1, 0.15, 0.3, 0.7};
  float lf3[] = {100.0, 200.0, 300.0, 400.0, 500.0, 600.0, 700.0, 800.0, 900.0};
  float lf4[] = {10.0, 25.0, 50.0, 100.0, 200.0, 400.0, 800.0};
  int i, x, y;
  for (x = 0; x < w * h; x++)
    sl[x] = 0.0;
  if ((w == 0) || (h == 0))
    return;
  if (ef == 0.0)
    ef = 1.0E-12;
  if (sf == 0.0)
    sf = 1.0E-12;
  if (ef == sf)
    ef = ef + 1E-12;
  if (a == 0)
    draw_sweep_1(sl, w, h, w / 8, h / 16, 6 * w / 8, 14 * h / 16, sf, ef, amp,
                 0, lps);
  else
    draw_sweep_2(sl, w, h, w / 8, h / 16, 6 * w / 8, 14 * h / 16, sf, ef, amp,
                 0, lps);
  if (lps == 0) {
    for (i = 0; i < sizeof(lf1) / sizeof(float); i++) {
      xl = (lf1[i] - sf) / (ef - sf);
      if ((xl >= 0.0) && (xl <= 1.0)) {
        x = w / 8 - 60;
        y = h / 16 + xl * (14 * h / 16);
        draw_rectangle(sl, w, h, w / 8 - 15, y, 10, 3, 0.9);
        dispF(sl, w, h, x, y + 6, 6, lf1[i], "%5.2f", 0.9);
      }
    }
    for (i = 0; i < sizeof(lf3) / sizeof(float); i++) {
      nf = lf3[i] / (float)h;
      if (a == 0)
        nf = nf * ar;
      xl = (nf - sf) / (ef - sf);
      if ((xl >= 0.0) && (xl <= 1.0)) {
        x = 7 * w / 8 + 10;
        y = h / 16 + xl * (14 * h / 16);
        draw_rectangle(sl, w, h, 7 * w / 8 + 5, y, 10, 3, 0.9);
        dispF(sl, w, h, x, y + 6, 6, lf3[i], "%4.0f", 0.9);
      }
    }
  } else {
    for (i = 0; i < sizeof(lf2) / sizeof(float); i++) {
      xl = (1.0 / lf2[i] - 1.0 / sf) / (1.0 / ef - 1.0 / sf);
      if ((xl >= 0.0) && (xl <= 1.0)) {
        x = w / 8 - 60;
        y = h / 16 + xl * (14 * h / 16);
        draw_rectangle(sl, w, h, w / 8 - 15, y, 10, 3, 0.9);
        dispF(sl, w, h, x, y + 6, 6, lf2[i], "%5.2f", 0.9);
      }
    }
    for (i = 0; i < sizeof(lf4) / sizeof(float); i++) {
      nf = lf4[i] / (float)h;
      if (a == 0)
        nf = nf * ar;
      xl = (1.0 / nf - 1.0 / sf) / (1.0 / ef - 1.0 / sf);
      if ((xl >= 0.0) && (xl <= 1.0)) {
        x = 7 * w / 8 + 10;
        y = h / 16 + xl * (14 * h / 16);
        draw_rectangle(sl, w, h, 7 * w / 8 + 5, y, 10, 3, 0.9);
        dispF(sl, w, h, x, y + 6, 6, lf4[i], "%4.0f", 0.9);
      }
    }
  }
}


x86 assembly (clang, -O0):
<sweep_v>:
push   %rbp
mov    %rsp,%rbp
sub    $0x100,%rsp
mov    %rdi,-0x8(%rbp)
mov    %esi,-0xc(%rbp)
mov    %edx,-0x10(%rbp)
mov    %ecx,-0x14(%rbp)
movss  %xmm0,-0x18(%rbp)
mov    %r8d,-0x1c(%rbp)
movss  %xmm1,-0x20(%rbp)
movss  %xmm2,-0x24(%rbp)
movss  %xmm3,-0x28(%rbp)
mov    0xe99(%rip),%rax
mov    %rax,-0x50(%rbp)
mov    0xe96(%rip),%rax
mov    %rax,-0x48(%rbp)
mov    0xe93(%rip),%rax
mov    %rax,-0x40(%rbp)
mov    0xe90(%rip),%rax
mov    %rax,-0x38(%rbp)
mov    0xe8d(%rip),%rax
mov    %rax,-0x70(%rbp)
mov    0xe8a(%rip),%rax
mov    %rax,-0x68(%rbp)
mov    0xe87(%rip),%rax
mov    %rax,-0x60(%rbp)
lea    -0xa0(%rbp),%rdi
lea    0xe85(%rip),%rsi
mov    $0x24,%edx
call   1060 <memcpy@plt>
mov    0xea4(%rip),%rax
mov    %rax,-0xc0(%rbp)
mov    0xe9e(%rip),%rax
mov    %rax,-0xb8(%rbp)
mov    0xe98(%rip),%rax
mov    %rax,-0xb0(%rbp)
mov    0xe93(%rip),%eax
mov    %eax,-0xa8(%rbp)
movl   $0x0,-0xc8(%rbp)
mov    -0xc8(%rbp),%eax
mov    -0xc(%rbp),%ecx
imul   -0x10(%rbp),%ecx
cmp    %ecx,%eax
jge    1261 <sweep_v+0x111>
mov    -0x8(%rbp),%rax
movslq -0xc8(%rbp),%rcx
xorps  %xmm0,%xmm0
movss  %xmm0,(%rax,%rcx,4)
mov    -0xc8(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0xc8(%rbp)
jmp    1225 <sweep_v+0xd5>
cmpl   $0x0,-0xc(%rbp)
je     1275 <sweep_v+0x125>
cmpl   $0x0,-0x10(%rbp)
jne    127a <sweep_v+0x12a>
jmp    1aa4 <sweep_v+0x954>
movss  -0x28(%rbp),%xmm0
cvtss2sd %xmm0,%xmm0
xorps  %xmm1,%xmm1
ucomisd %xmm1,%xmm0
jne    12a3 <sweep_v+0x153>
jp     12a3 <sweep_v+0x153>
movss  0xd62(%rip),%xmm0
movss  %xmm0,-0x28(%rbp)
movss  -0x24(%rbp),%xmm0
cvtss2sd %xmm0,%xmm0
xorps  %xmm1,%xmm1
ucomisd %xmm1,%xmm0
jne    12cc <sweep_v+0x17c>
jp     12cc <sweep_v+0x17c>
movss  0xd39(%rip),%xmm0
movss  %xmm0,-0x24(%rbp)
movss  -0x28(%rbp),%xmm0
ucomiss -0x24(%rbp),%xmm0
jne    12ff <sweep_v+0x1af>
jp     12ff <sweep_v+0x1af>
movss  -0x28(%rbp),%xmm0
cvtss2sd %xmm0,%xmm0
movsd  0xd16(%rip),%xmm1
addsd  %xmm1,%xmm0
cvtsd2ss %xmm0,%xmm0
movss  %xmm0,-0x28(%rbp)
cmpl   $0x0,-0x14(%rbp)
jne    138d <sweep_v+0x23d>
mov    -0x8(%rbp),%rdi
mov    -0xc(%rbp),%esi
mov    -0x10(%rbp),%eax
mov    %eax,-0xd0(%rbp)
mov    -0xc(%rbp),%eax
mov    $0x8,%ecx
cltd
idiv   %ecx
mov    %eax,%ecx
mov    -0x10(%rbp),%eax
mov    $0x10,%r8d
cltd
idiv   %r8d
mov    %eax,%r8d
imul   $0x6,-0xc(%rbp),%eax
mov    $0x8,%r9d
cltd
idiv   %r9d
mov    %eax,%r9d
imul   $0xe,-0x10(%rbp),%eax
mov    $0x10,%r10d
cltd
idiv   %r10d
mov    -0xd0(%rbp),%edx
mov    %eax,%r10d
movss  -0x24(%rbp),%xmm0
movss  -0x28(%rbp),%xmm1
movss  -0x18(%rbp),%xmm2
mov    -0x1c(%rbp),%eax
xor    %r11d,%r11d
mov    %r10d,(%rsp)
movl   $0x0,0x8(%rsp)
mov    %eax,0x10(%rsp)
call   1050 <draw_sweep_1@plt>
jmp    140c <sweep_v+0x2bc>
mov    -0x8(%rbp),%rdi
mov    -0xc(%rbp),%esi
mov    -0x10(%rbp),%eax
mov    %eax,-0xd4(%rbp)
mov    -0xc(%rbp),%eax
mov    $0x8,%ecx
cltd
idiv   %ecx
mov    %eax,%ecx
mov    -0x10(%rbp),%eax
mov    $0x10,%r8d
cltd
idiv   %r8d
mov    %eax,%r8d
imul   $0x6,-0xc(%rbp),%eax
mov    $0x8,%r9d
cltd
idiv   %r9d
mov    %eax,%r9d
imul   $0xe,-0x10(%rbp),%eax
mov    $0x10,%r10d
cltd
idiv   %r10d
mov    -0xd4(%rbp),%edx
mov    %eax,%r10d
movss  -0x24(%rbp),%xmm0
movss  -0x28(%rbp),%xmm1
movss  -0x18(%rbp),%xmm2
mov    -0x1c(%rbp),%eax
xor    %r11d,%r11d
mov    %r10d,(%rsp)
movl   $0x0,0x8(%rsp)
mov    %eax,0x10(%rsp)
call   1070 <draw_sweep_2@plt>
cmpl   $0x0,-0x1c(%rbp)
jne    1711 <sweep_v+0x5c1>
movl   $0x0,-0xc4(%rbp)
movslq -0xc4(%rbp),%rax
cmp    $0x8,%rax
jae    1577 <sweep_v+0x427>
movslq -0xc4(%rbp),%rax
movss  -0x50(%rbp,%rax,4),%xmm0
subss  -0x24(%rbp),%xmm0
movss  -0x28(%rbp),%xmm1
subss  -0x24(%rbp),%xmm1
divss  %xmm1,%xmm0
movss  %xmm0,-0x2c(%rbp)
movss  -0x2c(%rbp),%xmm0
cvtss2sd %xmm0,%xmm0
xorps  %xmm1,%xmm1
ucomisd %xmm1,%xmm0
jb     155e <sweep_v+0x40e>
movss  -0x2c(%rbp),%xmm0
cvtss2sd %xmm0,%xmm1
movsd  0xb93(%rip),%xmm0
ucomisd %xmm1,%xmm0
jb     155e <sweep_v+0x40e>
mov    -0xc(%rbp),%eax
mov    $0x8,%ecx
cltd
idiv   %ecx
sub    $0x3c,%eax
mov    %eax,-0xc8(%rbp)
mov    -0x10(%rbp),%eax
mov    $0x10,%ecx
cltd
idiv   %ecx
cvtsi2ss %eax,%xmm1
movss  -0x2c(%rbp),%xmm0
imul   $0xe,-0x10(%rbp),%eax
mov    $0x10,%ecx
cltd
idiv   %ecx
cvtsi2ss %eax,%xmm2
mulss  %xmm2,%xmm0
addss  %xmm1,%xmm0
cvttss2si %xmm0,%eax
mov    %eax,-0xcc(%rbp)
mov    -0x8(%rbp),%rdi
mov    -0xc(%rbp),%esi
mov    -0x10(%rbp),%eax
mov    %eax,-0xd8(%rbp)
mov    -0xc(%rbp),%eax
mov    $0x8,%ecx
cltd
idiv   %ecx
mov    -0xd8(%rbp),%edx
mov    %eax,%ecx
sub    $0xf,%ecx
mov    -0xcc(%rbp),%r8d
mov    $0xa,%r9d
movsd  0xb0c(%rip),%xmm0
movl   $0x3,(%rsp)
call   1030 <draw_rectangle@plt>
mov    -0x8(%rbp),%rdi
mov    -0xc(%rbp),%esi
mov    -0x10(%rbp),%edx
mov    -0xc8(%rbp),%ecx
mov    -0xcc(%rbp),%r8d
add    $0x6,%r8d
movslq -0xc4(%rbp),%rax
movss  -0x50(%rbp,%rax,4),%xmm0
mov    $0x6,%r9d
lea    0xb5f(%rip),%rax
movsd  0xac3(%rip),%xmm1
mov    %rax,(%rsp)
call   1040 <dispF@plt>
jmp    1563 <sweep_v+0x413>
mov    -0xc4(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0xc4(%rbp)
jmp    1420 <sweep_v+0x2d0>
movl   $0x0,-0xc4(%rbp)
movslq -0xc4(%rbp),%rax
cmp    $0x9,%rax
jae    170c <sweep_v+0x5bc>
movslq -0xc4(%rbp),%rax
movss  -0xa0(%rbp,%rax,4),%xmm0
ff ff
cvtsi2ssl -0x10(%rbp),%xmm1
divss  %xmm1,%xmm0
movss  %xmm0,-0x30(%rbp)
cmpl   $0x0,-0x14(%rbp)
jne    15c9 <sweep_v+0x479>
movss  -0x30(%rbp),%xmm0
mulss  -0x20(%rbp),%xmm0
movss  %xmm0,-0x30(%rbp)
movss  -0x30(%rbp),%xmm0
subss  -0x24(%rbp),%xmm0
movss  -0x28(%rbp),%xmm1
subss  -0x24(%rbp),%xmm1
divss  %xmm1,%xmm0
movss  %xmm0,-0x2c(%rbp)
movss  -0x2c(%rbp),%xmm0
cvtss2sd %xmm0,%xmm0
xorps  %xmm1,%xmm1
ucomisd %xmm1,%xmm0
jb     16f3 <sweep_v+0x5a3>
movss  -0x2c(%rbp),%xmm0
cvtss2sd %xmm0,%xmm1
movsd  0xa03(%rip),%xmm0
ucomisd %xmm1,%xmm0
jb     16f3 <sweep_v+0x5a3>
imul   $0x7,-0xc(%rbp),%eax
mov    $0x8,%ecx
cltd
idiv   %ecx
add    $0xa,%eax
mov    %eax,-0xc8(%rbp)
mov    -0x10(%rbp),%eax
mov    $0x10,%ecx
cltd
idiv   %ecx
cvtsi2ss %eax,%xmm1
movss  -0x2c(%rbp),%xmm0
imul   $0xe,-0x10(%rbp),%eax
mov    $0x10,%ecx
cltd
idiv   %ecx
cvtsi2ss %eax,%xmm2
mulss  %xmm2,%xmm0
addss  %xmm1,%xmm0
cvttss2si %xmm0,%eax
mov    %eax,-0xcc(%rbp)
mov    -0x8(%rbp),%rdi
mov    -0xc(%rbp),%esi
mov    -0x10(%rbp),%eax
mov    %eax,-0xdc(%rbp)
imul   $0x7,-0xc(%rbp),%eax
mov    $0x8,%ecx
cltd
idiv   %ecx
mov    -0xdc(%rbp),%edx
mov    %eax,%ecx
add    $0x5,%ecx
mov    -0xcc(%rbp),%r8d
mov    $0xa,%r9d
movsd  0x97a(%rip),%xmm0
movl   $0x3,(%rsp)
call   1030 <draw_rectangle@plt>
mov    -0x8(%rbp),%rdi
mov    -0xc(%rbp),%esi
mov    -0x10(%rbp),%edx
mov    -0xc8(%rbp),%ecx
mov    -0xcc(%rbp),%r8d
add    $0x6,%r8d
movslq -0xc4(%rbp),%rax
movss  -0xa0(%rbp,%rax,4),%xmm0
ff ff
mov    $0x6,%r9d
lea    0x9d0(%rip),%rax
movsd  0x92e(%rip),%xmm1
mov    %rax,(%rsp)
call   1040 <dispF@plt>
jmp    16f8 <sweep_v+0x5a8>
mov    -0xc4(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0xc4(%rbp)
jmp    1581 <sweep_v+0x431>
jmp    1aa4 <sweep_v+0x954>
movl   $0x0,-0xc4(%rbp)
movslq -0xc4(%rbp),%rax
cmp    $0x6,%rax
jae    18be <sweep_v+0x76e>
movslq -0xc4(%rbp),%rax
movss  -0x70(%rbp,%rax,4),%xmm0
cvtss2sd %xmm0,%xmm1
movsd  0x8cb(%rip),%xmm0
divsd  %xmm1,%xmm0
movss  -0x24(%rbp),%xmm1
cvtss2sd %xmm1,%xmm2
movsd  0x8b6(%rip),%xmm1
divsd  %xmm2,%xmm1
subsd  %xmm1,%xmm0
movss  -0x28(%rbp),%xmm1
cvtss2sd %xmm1,%xmm2
movsd  0x89d(%rip),%xmm1
divsd  %xmm2,%xmm1
movss  -0x24(%rbp),%xmm2
cvtss2sd %xmm2,%xmm3
movsd  0x888(%rip),%xmm2
divsd  %xmm3,%xmm2
subsd  %xmm2,%xmm1
divsd  %xmm1,%xmm0
cvtsd2ss %xmm0,%xmm0
movss  %xmm0,-0x2c(%rbp)
movss  -0x2c(%rbp),%xmm0
cvtss2sd %xmm0,%xmm0
xorps  %xmm1,%xmm1
ucomisd %xmm1,%xmm0
jb     18a5 <sweep_v+0x755>
movss  -0x2c(%rbp),%xmm0
cvtss2sd %xmm0,%xmm1
movsd  0x84c(%rip),%xmm0
ucomisd %xmm1,%xmm0
jb     18a5 <sweep_v+0x755>
mov    -0xc(%rbp),%eax
mov    $0x8,%ecx
cltd
idiv   %ecx
sub    $0x3c,%eax
mov    %eax,-0xc8(%rbp)
mov    -0x10(%rbp),%eax
mov    $0x10,%ecx
cltd
idiv   %ecx
cvtsi2ss %eax,%xmm1
movss  -0x2c(%rbp),%xmm0
imul   $0xe,-0x10(%rbp),%eax
mov    $0x10,%ecx
cltd
idiv   %ecx
cvtsi2ss %eax,%xmm2
mulss  %xmm2,%xmm0
addss  %xmm1,%xmm0
cvttss2si %xmm0,%eax
mov    %eax,-0xcc(%rbp)
mov    -0x8(%rbp),%rdi
mov    -0xc(%rbp),%esi
mov    -0x10(%rbp),%eax
mov    %eax,-0xe0(%rbp)
mov    -0xc(%rbp),%eax
mov    $0x8,%ecx
cltd
idiv   %ecx
mov    -0xe0(%rbp),%edx
mov    %eax,%ecx
sub    $0xf,%ecx
mov    -0xcc(%rbp),%r8d
mov    $0xa,%r9d
movsd  0x7c5(%rip),%xmm0
movl   $0x3,(%rsp)
call   1030 <draw_rectangle@plt>
mov    -0x8(%rbp),%rdi
mov    -0xc(%rbp),%esi
mov    -0x10(%rbp),%edx
mov    -0xc8(%rbp),%ecx
mov    -0xcc(%rbp),%r8d
add    $0x6,%r8d
movslq -0xc4(%rbp),%rax
movss  -0x70(%rbp,%rax,4),%xmm0
mov    $0x6,%r9d
lea    0x818(%rip),%rax
movsd  0x77c(%rip),%xmm1
mov    %rax,(%rsp)
call   1040 <dispF@plt>
jmp    18aa <sweep_v+0x75a>
mov    -0xc4(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0xc4(%rbp)
jmp    171b <sweep_v+0x5cb>
movl   $0x0,-0xc4(%rbp)
movslq -0xc4(%rbp),%rax
cmp    $0x7,%rax
jae    1a9f <sweep_v+0x94f>
movslq -0xc4(%rbp),%rax
movss  -0xc0(%rbp,%rax,4),%xmm0
ff ff
cvtsi2ssl -0x10(%rbp),%xmm1
divss  %xmm1,%xmm0
movss  %xmm0,-0x30(%rbp)
cmpl   $0x0,-0x14(%rbp)
jne    1910 <sweep_v+0x7c0>
movss  -0x30(%rbp),%xmm0
mulss  -0x20(%rbp),%xmm0
movss  %xmm0,-0x30(%rbp)
movss  -0x30(%rbp),%xmm0
cvtss2sd %xmm0,%xmm1
movsd  0x6ef(%rip),%xmm0
divsd  %xmm1,%xmm0
movss  -0x24(%rbp),%xmm1
cvtss2sd %xmm1,%xmm2
movsd  0x6da(%rip),%xmm1
divsd  %xmm2,%xmm1
subsd  %xmm1,%xmm0
movss  -0x28(%rbp),%xmm1
cvtss2sd %xmm1,%xmm2
movsd  0x6c1(%rip),%xmm1
divsd  %xmm2,%xmm1
movss  -0x24(%rbp),%xmm2
cvtss2sd %xmm2,%xmm3
movsd  0x6ac(%rip),%xmm2
divsd  %xmm3,%xmm2
subsd  %xmm2,%xmm1
divsd  %xmm1,%xmm0
cvtsd2ss %xmm0,%xmm0
movss  %xmm0,-0x2c(%rbp)
movss  -0x2c(%rbp),%xmm0
cvtss2sd %xmm0,%xmm0
xorps  %xmm1,%xmm1
ucomisd %xmm1,%xmm0
jb     1a86 <sweep_v+0x936>
movss  -0x2c(%rbp),%xmm0
cvtss2sd %xmm0,%xmm1
movsd  0x670(%rip),%xmm0
ucomisd %xmm1,%xmm0
jb     1a86 <sweep_v+0x936>
imul   $0x7,-0xc(%rbp),%eax
mov    $0x8,%ecx
cltd
idiv   %ecx
add    $0xa,%eax
mov    %eax,-0xc8(%rbp)
mov    -0x10(%rbp),%eax
mov    $0x10,%ecx
cltd
idiv   %ecx
cvtsi2ss %eax,%xmm1
movss  -0x2c(%rbp),%xmm0
imul   $0xe,-0x10(%rbp),%eax
mov    $0x10,%ecx
cltd
idiv   %ecx
cvtsi2ss %eax,%xmm2
mulss  %xmm2,%xmm0
addss  %xmm1,%xmm0
cvttss2si %xmm0,%eax
mov    %eax,-0xcc(%rbp)
mov    -0x8(%rbp),%rdi
mov    -0xc(%rbp),%esi
mov    -0x10(%rbp),%eax
mov    %eax,-0xe4(%rbp)
imul   $0x7,-0xc(%rbp),%eax
mov    $0x8,%ecx
cltd
idiv   %ecx
mov    -0xe4(%rbp),%edx
mov    %eax,%ecx
add    $0x5,%ecx
mov    -0xcc(%rbp),%r8d
mov    $0xa,%r9d
movsd  0x5e7(%rip),%xmm0
movl   $0x3,(%rsp)
call   1030 <draw_rectangle@plt>
mov    -0x8(%rbp),%rdi
mov    -0xc(%rbp),%esi
mov    -0x10(%rbp),%edx
mov    -0xc8(%rbp),%ecx
mov    -0xcc(%rbp),%r8d
add    $0x6,%r8d
movslq -0xc4(%rbp),%rax
movss  -0xc0(%rbp,%rax,4),%xmm0
ff ff
mov    $0x6,%r9d
lea    0x63d(%rip),%rax
movsd  0x59b(%rip),%xmm1
mov    %rax,(%rsp)
call   1040 <dispF@plt>
jmp    1a8b <sweep_v+0x93b>
mov    -0xc4(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0xc4(%rbp)
jmp    18c8 <sweep_v+0x778>
jmp    1aa4 <sweep_v+0x954>
add    $0x100,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<sweep_v>:
push   %rbp
push   %r15
push   %r14
push   %r13
push   %r12
push   %rbx
sub    $0x78,%rsp
movss  %xmm1,0x34(%rsp)
mov    %r8d,%ebx
movaps %xmm0,%xmm5
mov    %ecx,%r12d
mov    %edx,%r13d
mov    %esi,%r14d
mov    %rdi,%r15
mov    %edx,%eax
imul   %esi,%eax
test   %eax,%eax
jle    11af <sweep_v+0x5f>
mov    %eax,%edx
shl    $0x2,%rdx
mov    %r15,%rdi
xor    %esi,%esi
movss  %xmm5,0x50(%rsp)
movaps %xmm2,0x60(%rsp)
movaps %xmm3,0x40(%rsp)
call   1060 <memset@plt>
movaps 0x40(%rsp),%xmm3
movaps 0x60(%rsp),%xmm2
movss  0x50(%rsp),%xmm5
test   %r14d,%r14d
je     17eb <sweep_v+0x69b>
test   %r13d,%r13d
je     17eb <sweep_v+0x69b>
mov    %ebx,%esi
xorps  %xmm0,%xmm0
movaps %xmm3,%xmm6
cmpeqss %xmm0,%xmm6
movss  0xe2a(%rip),%xmm1
movaps %xmm6,%xmm4
andps  %xmm1,%xmm4
andnps %xmm3,%xmm6
orps   %xmm4,%xmm6
cmpeqss %xmm2,%xmm0
andps  %xmm0,%xmm1
andnps %xmm2,%xmm0
orps   %xmm1,%xmm0
xorps  %xmm1,%xmm1
cvtss2sd %xmm6,%xmm1
addsd  0xe09(%rip),%xmm1
xorps  %xmm4,%xmm4
cvtsd2ss %xmm1,%xmm4
movaps %xmm0,%xmm1
cmpeqss %xmm6,%xmm1
movaps %xmm1,%xmm2
andnps %xmm6,%xmm2
andps  %xmm4,%xmm1
orps   %xmm2,%xmm1
lea    0x7(%r14),%eax
test   %r14d,%r14d
mov    %r14d,%ecx
mov    %rax,0x28(%rsp)
cmovs  %eax,%ecx
sar    $0x3,%ecx
lea    0xf(%r13),%edi
test   %r13d,%r13d
mov    %r13d,%r8d
cmovs  %edi,%r8d
sar    $0x4,%r8d
lea    (%r14,%r14,1),%eax
lea    (%rax,%rax,2),%edx
lea    (%rax,%rax,2),%r9d
add    $0x7,%r9d
test   %edx,%edx
cmovns %edx,%r9d
sar    $0x3,%r9d
mov    %r13d,%ebx
shl    $0x4,%ebx
sub    %r13d,%ebx
sub    %r13d,%ebx
lea    0xf(%rbx),%ebp
test   %ebx,%ebx
mov    %ebx,%eax
cmovs  %ebp,%eax
sar    $0x4,%eax
test   %r12d,%r12d
movaps %xmm0,0x60(%rsp)
mov    %r12d,0x38(%rsp)
movaps %xmm1,0x50(%rsp)
mov    %edi,0x40(%rsp)
mov    %esi,%r12d
je     12b0 <sweep_v+0x160>
mov    %esi,0x10(%rsp)
mov    %eax,(%rsp)
movl   $0x0,0x8(%rsp)
mov    %r15,%rdi
mov    %r14d,%esi
mov    %r13d,%edx
movaps %xmm5,%xmm2
call   1070 <draw_sweep_2@plt>
jmp    12d0 <sweep_v+0x180>
mov    %esi,0x10(%rsp)
mov    %eax,(%rsp)
movl   $0x0,0x8(%rsp)
mov    %r15,%rdi
mov    %r14d,%esi
mov    %r13d,%edx
movaps %xmm5,%xmm2
call   1050 <draw_sweep_1@plt>
mov    0x40(%rsp),%ecx
test   %r12d,%r12d
je     1588 <sweep_v+0x438>
movaps 0x60(%rsp),%xmm0
cvtss2sd %xmm0,%xmm0
movsd  0xd22(%rip),%xmm2
movapd %xmm2,%xmm3
divsd  %xmm0,%xmm3
movaps 0x50(%rsp),%xmm0
cvtss2sd %xmm0,%xmm0
movapd %xmm2,%xmm4
divsd  %xmm0,%xmm4
test   %r14d,%r14d
mov    0x28(%rsp),%rax
cmovns %r14d,%eax
sar    $0x3,%eax
test   %r13d,%r13d
cmovns %r13d,%ecx
sar    $0x4,%ecx
xorps  %xmm0,%xmm0
cvtsi2ss %ecx,%xmm0
movss  %xmm0,0x40(%rsp)
subsd  %xmm3,%xmm4
test   %ebx,%ebx
cmovns %ebx,%ebp
sar    $0x4,%ebp
xorps  %xmm0,%xmm0
cvtsi2ss %ebp,%xmm0
movss  %xmm0,0x24(%rsp)
lea    -0x3c(%rax),%ecx
mov    %ecx,0x1c(%rsp)
add    $0xfffffff1,%eax
mov    %rax,0x28(%rsp)
xor    %r12d,%r12d
lea    0xce1(%rip),%rbx
xorps  %xmm5,%xmm5
movsd  %xmm3,0x50(%rsp)
movsd  %xmm4,0x60(%rsp)
jmp    137e <sweep_v+0x22e>
add    $0x4,%r12
cmp    $0x18,%r12
je     1448 <sweep_v+0x2f8>
movss  (%r12,%rbx,1),%xmm6
xorps  %xmm0,%xmm0
cvtss2sd %xmm6,%xmm0
movapd %xmm2,%xmm1
divsd  %xmm0,%xmm1
subsd  %xmm3,%xmm1
divsd  %xmm4,%xmm1
xorps  %xmm0,%xmm0
cvtsd2ss %xmm1,%xmm0
ucomiss %xmm5,%xmm0
jb     1370 <sweep_v+0x220>
movss  0xc55(%rip),%xmm1
ucomiss %xmm0,%xmm1
jb     1370 <sweep_v+0x220>
mulss  0x24(%rsp),%xmm0
addss  0x40(%rsp),%xmm0
cvttss2si %xmm0,%ebp
movl   $0x3,(%rsp)
mov    %r15,%rdi
mov    %r14d,%esi
mov    %r13d,%edx
mov    0x28(%rsp),%rcx
mov    %ebp,%r8d
mov    $0xa,%r9d
movsd  0xc2e(%rip),%xmm0
movss  %xmm6,0x20(%rsp)
call   1030 <draw_rectangle@plt>
add    $0x6,%ebp
lea    0xcad(%rip),%rax
mov    %rax,(%rsp)
mov    %r15,%rdi
mov    %r14d,%esi
mov    %r13d,%edx
mov    0x1c(%rsp),%ecx
mov    %ebp,%r8d
mov    $0x6,%r9d
movss  0x20(%rsp),%xmm0
movsd  0xbf1(%rip),%xmm1
call   1040 <dispF@plt>
xorps  %xmm5,%xmm5
movsd  0x60(%rsp),%xmm4
movsd  0x50(%rsp),%xmm3
movsd  0xbcd(%rip),%xmm2
jmp    1370 <sweep_v+0x220>
cmpl   $0x0,0x38(%rsp)
je     145d <sweep_v+0x30d>
movss  0xbad(%rip),%xmm0
movss  %xmm0,0x34(%rsp)
xorps  %xmm5,%xmm5
cvtsi2ss %r13d,%xmm5
lea    0x0(,%r14,8),%eax
sub    %r14d,%eax
lea    0x7(%rax),%ecx
test   %eax,%eax
cmovns %eax,%ecx
sar    $0x3,%ecx
lea    0xa(%rcx),%eax
mov    %eax,0x1c(%rsp)
add    $0x5,%ecx
mov    %rcx,0x38(%rsp)
xor    %r12d,%r12d
lea    0xbfc(%rip),%rbx
xorps  %xmm6,%xmm6
movss  %xmm5,0x28(%rsp)
jmp    14ae <sweep_v+0x35e>
nop
add    $0x4,%r12
cmp    $0x1c,%r12
je     17eb <sweep_v+0x69b>
movss  (%r12,%rbx,1),%xmm7
movaps %xmm7,%xmm0
divss  %xmm5,%xmm0
mulss  0x34(%rsp),%xmm0
cvtss2sd %xmm0,%xmm0
movapd %xmm2,%xmm1
divsd  %xmm0,%xmm1
subsd  %xmm3,%xmm1
divsd  %xmm4,%xmm1
xorps  %xmm0,%xmm0
cvtsd2ss %xmm1,%xmm0
ucomiss %xmm6,%xmm0
jb     14a0 <sweep_v+0x350>
movss  0xb1b(%rip),%xmm1
ucomiss %xmm0,%xmm1
jb     14a0 <sweep_v+0x350>
mulss  0x24(%rsp),%xmm0
addss  0x40(%rsp),%xmm0
cvttss2si %xmm0,%ebp
movl   $0x3,(%rsp)
mov    %r15,%rdi
mov    %r14d,%esi
mov    %r13d,%edx
mov    0x38(%rsp),%rcx
mov    %ebp,%r8d
mov    $0xa,%r9d
movsd  0xaf4(%rip),%xmm0
movss  %xmm7,0x20(%rsp)
call   1030 <draw_rectangle@plt>
add    $0x6,%ebp
lea    0xb79(%rip),%rax
mov    %rax,(%rsp)
mov    %r15,%rdi
mov    %r14d,%esi
mov    %r13d,%edx
mov    0x1c(%rsp),%ecx
mov    %ebp,%r8d
mov    $0x6,%r9d
movss  0x20(%rsp),%xmm0
movsd  0xab7(%rip),%xmm1
call   1040 <dispF@plt>
xorps  %xmm6,%xmm6
movss  0x28(%rsp),%xmm5
movsd  0x60(%rsp),%xmm4
movsd  0x50(%rsp),%xmm3
movsd  0xa8d(%rip),%xmm2
jmp    14a0 <sweep_v+0x350>
test   %r14d,%r14d
mov    0x28(%rsp),%rdx
cmovns %r14d,%edx
sar    $0x3,%edx
test   %r13d,%r13d
cmovns %r13d,%ecx
sar    $0x4,%ecx
xorps  %xmm0,%xmm0
cvtsi2ss %ecx,%xmm0
movss  %xmm0,0x40(%rsp)
movaps 0x60(%rsp),%xmm1
movaps 0x50(%rsp),%xmm2
subss  %xmm1,%xmm2
test   %ebx,%ebx
cmovns %ebx,%ebp
sar    $0x4,%ebp
xorps  %xmm0,%xmm0
cvtsi2ss %ebp,%xmm0
movss  %xmm0,0x24(%rsp)
lea    -0x3c(%rdx),%eax
mov    %eax,0x1c(%rsp)
add    $0xfffffff1,%edx
mov    %rdx,0x28(%rsp)
xor    %ebx,%ebx
lea    0xa37(%rip),%r12
xorps  %xmm4,%xmm4
movaps %xmm2,0x50(%rsp)
jmp    160e <sweep_v+0x4be>
cs nopw 0x0(%rax,%rax,1)
nopl   (%rax)
add    $0x4,%rbx
cmp    $0x20,%rbx
je     16bb <sweep_v+0x56b>
movss  (%rbx,%r12,1),%xmm5
movaps %xmm5,%xmm0
subss  %xmm1,%xmm0
divss  %xmm2,%xmm0
ucomiss %xmm4,%xmm0
jb     1600 <sweep_v+0x4b0>
movss  0x9d8(%rip),%xmm3
ucomiss %xmm0,%xmm3
jb     1600 <sweep_v+0x4b0>
mulss  0x24(%rsp),%xmm0
addss  0x40(%rsp),%xmm0
cvttss2si %xmm0,%ebp
movl   $0x3,(%rsp)
mov    %r15,%rdi
mov    %r14d,%esi
mov    %r13d,%edx
mov    0x28(%rsp),%rcx
mov    %ebp,%r8d
mov    $0xa,%r9d
movsd  0x9b1(%rip),%xmm0
movss  %xmm5,0x20(%rsp)
call   1030 <draw_rectangle@plt>
add    $0x6,%ebp
lea    0xa30(%rip),%rax
mov    %rax,(%rsp)
mov    %r15,%rdi
mov    %r14d,%esi
mov    %r13d,%edx
mov    0x1c(%rsp),%ecx
mov    %ebp,%r8d
mov    $0x6,%r9d
movss  0x20(%rsp),%xmm0
movsd  0x974(%rip),%xmm1
call   1040 <dispF@plt>
xorps  %xmm4,%xmm4
movaps 0x50(%rsp),%xmm2
movaps 0x60(%rsp),%xmm1
jmp    1600 <sweep_v+0x4b0>
cmpl   $0x0,0x38(%rsp)
je     16d0 <sweep_v+0x580>
movss  0x93a(%rip),%xmm0
movss  %xmm0,0x34(%rsp)
xorps  %xmm4,%xmm4
cvtsi2ss %r13d,%xmm4
lea    0x0(,%r14,8),%eax
sub    %r14d,%eax
lea    0x7(%rax),%ecx
test   %eax,%eax
cmovns %eax,%ecx
sar    $0x3,%ecx
lea    0xa(%rcx),%eax
mov    %eax,0x1c(%rsp)
add    $0x5,%ecx
mov    %rcx,0x38(%rsp)
xor    %r12d,%r12d
lea    0x959(%rip),%rbx
xorps  %xmm5,%xmm5
movss  %xmm4,0x28(%rsp)
jmp    172e <sweep_v+0x5de>
cs nopw 0x0(%rax,%rax,1)
nopl   0x0(%rax)
add    $0x4,%r12
cmp    $0x24,%r12
je     17eb <sweep_v+0x69b>
movss  (%r12,%rbx,1),%xmm6
movaps %xmm6,%xmm0
divss  %xmm4,%xmm0
mulss  0x34(%rsp),%xmm0
subss  %xmm1,%xmm0
divss  %xmm2,%xmm0
ucomiss %xmm5,%xmm0
jb     1720 <sweep_v+0x5d0>
movss  0x8ae(%rip),%xmm3
ucomiss %xmm0,%xmm3
jb     1720 <sweep_v+0x5d0>
mulss  0x24(%rsp),%xmm0
addss  0x40(%rsp),%xmm0
cvttss2si %xmm0,%ebp
movl   $0x3,(%rsp)
mov    %r15,%rdi
mov    %r14d,%esi
mov    %r13d,%edx
mov    0x38(%rsp),%rcx
mov    %ebp,%r8d
mov    $0xa,%r9d
movsd  0x887(%rip),%xmm0
movss  %xmm6,0x20(%rsp)
call   1030 <draw_rectangle@plt>
add    $0x6,%ebp
lea    0x90c(%rip),%rax
mov    %rax,(%rsp)
mov    %r15,%rdi
mov    %r14d,%esi
mov    %r13d,%edx
mov    0x1c(%rsp),%ecx
mov    %ebp,%r8d
mov    $0x6,%r9d
movss  0x20(%rsp),%xmm0
movsd  0x84a(%rip),%xmm1
call   1040 <dispF@plt>
xorps  %xmm5,%xmm5
movss  0x28(%rsp),%xmm4
movaps 0x50(%rsp),%xmm2
movaps 0x60(%rsp),%xmm1
jmp    1720 <sweep_v+0x5d0>
add    $0x78,%rsp
pop    %rbx
pop    %r12
pop    %r13
pop    %r14
pop    %r15
pop    %rbp
ret

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

LLVM IR (-O2):
@__const.sweep_v.lf1 = [8 x float] [float 0x3FA99999A0000000, float 0x3FB99999A0000000, float 0x3FC99999A0000000, float 0x3FD3333340000000, float 0x3FD99999A0000000, float 5.000000e-01, float 0x3FE3333340000000, float 0x3FE6666660000000]
@__const.sweep_v.lf2 = [6 x float] [float 0x3FA99999A0000000, float 0x3FB1EB8520000000, float 0x3FB99999A0000000, float 0x3FC3333340000000, float 0x3FD3333340000000, float 0x3FE6666660000000]
@__const.sweep_v.lf3 = [9 x float] [float 1.000000e+02, float 2.000000e+02, float 3.000000e+02, float 4.000000e+02, float 5.000000e+02, float 6.000000e+02, float 7.000000e+02, float 8.000000e+02, float 9.000000e+02]
@__const.sweep_v.lf4 = [7 x float] [float 1.000000e+01, float 2.500000e+01, float 5.000000e+01, float 1.000000e+02, float 2.000000e+02, float 4.000000e+02, float 8.000000e+02]
@.str = [6 x i8] c"%5.2f\00"
@.str.1 = [6 x i8] c"%4.0f\00"
define void @sweep_v(float* %0, i32 %1, i32 %2, i32 %3, float %4, i32 %5, float %6, float %7, float %8) {
%10 = mul i32 %2, %1
%11 = icmp sgt i32 %10, 0
br i1 %11, label %12, label %16
12: ; preds = %9
%13 = bitcast float* %0 to i8*
%14 = zext i32 %10 to i64
%15 = shl nuw nsw i64 %14, 2
br label %16
16: ; preds = %12, %9
%17 = icmp eq i32 %1, 0
%18 = icmp eq i32 %2, 0
%19 = or i1 %17, %18
br i1 %19, label %163, label %20
20: ; preds = %16
%21 = fcmp oeq float %8, 0.000000e+00
%22 = select i1 %21, float 0x3D71979980000000, float %8
%23 = fcmp oeq float %7, 0.000000e+00
%24 = select i1 %23, float 0x3D71979980000000, float %7
%25 = fcmp oeq float %22, %24
%26 = fpext float %22 to double
%27 = fadd double %26, 0x3D719799812DEA11
%28 = fptrunc double %27 to float
%29 = select i1 %25, float %28, float %22
%30 = icmp eq i32 %3, 0
%31 = sdiv i32 %1, 8
%32 = sdiv i32 %2, 16
%33 = mul nsw i32 %1, 6
%34 = sdiv i32 %33, 8
%35 = mul nsw i32 %2, 14
%36 = sdiv i32 %35, 16
br i1 %30, label %37, label %39
37: ; preds = %20
%38 = tail call i32 @draw_sweep_1(float* %0, i32 %1, i32 %2, i32 %31, i32 %32, i32 %34, i32 %36, float %24, float %29, float %4, i32 0, i32 %5)
br label %41
39: ; preds = %20
%40 = tail call i32 @draw_sweep_2(float* %0, i32 %1, i32 %2, i32 %31, i32 %32, i32 %34, i32 %36, float %24, float %29, float %4, i32 0, i32 %5)
br label %41
41: ; preds = %39, %37
%42 = icmp eq i32 %5, 0
br i1 %42, label %57, label %43
43: ; preds = %41
%44 = fpext float %24 to double
%45 = fdiv double 1.000000e+00, %44
%46 = fpext float %29 to double
%47 = fdiv double 1.000000e+00, %46
%48 = fsub double %47, %45
%49 = sdiv i32 %1, 8
%50 = add nsw i32 %49, -60
%51 = sdiv i32 %2, 16
%52 = sitofp i32 %51 to float
%53 = mul nsw i32 %2, 14
%54 = sdiv i32 %53, 16
%55 = sitofp i32 %54 to float
%56 = add nsw i32 %49, -15
br label %119
57: ; preds = %41
%58 = fsub float %29, %24
%59 = sdiv i32 %1, 8
%60 = add nsw i32 %59, -60
%61 = sdiv i32 %2, 16
%62 = sitofp i32 %61 to float
%63 = mul nsw i32 %2, 14
%64 = sdiv i32 %63, 16
%65 = sitofp i32 %64 to float
%66 = add nsw i32 %59, -15
br label %74
67: ; preds = %89
%68 = sitofp i32 %2 to float
%69 = select i1 %30, float %6, float 1.000000e+00
%70 = mul nsw i32 %1, 7
%71 = sdiv i32 %70, 8
%72 = add nsw i32 %71, 10
%73 = add nsw i32 %71, 5
br label %92
74: ; preds = %57, %89
%75 = phi i64 [ 0, %57 ], [ %90, %89 ]
%76 = getelementptr inbounds [8 x float], [8 x float]* @__const.sweep_v.lf1, i64 0, i64 %75
%77 = load float, float* %76
%78 = fsub float %77, %24
%79 = fdiv float %78, %58
%80 = fcmp ult float %79, 0.000000e+00
%81 = fcmp ugt float %79, 1.000000e+00
%82 = or i1 %80, %81
br i1 %82, label %89, label %83
83: ; preds = %74
%84 = tail call float @llvm.fmuladd.f32(float %79, float %65, float %62)
%85 = fptosi float %84 to i32
%86 = tail call i32 @draw_rectangle(float* %0, i32 %1, i32 %2, i32 %66, i32 %85, i32 10, i32 3, double 9.000000e-01)
%87 = add nsw i32 %85, 6
%88 = tail call i32 @dispF(float* %0, i32 %1, i32 %2, i32 %60, i32 %87, i32 6, float %77, i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str, i64 0, i64 0), double 9.000000e-01)
br label %89
89: ; preds = %74, %83
%90 = add nuw nsw i64 %75, 1
%91 = icmp eq i64 %90, 8
br i1 %91, label %67, label %74
92: ; preds = %67, %109
%93 = phi i64 [ 0, %67 ], [ %110, %109 ]
%94 = getelementptr inbounds [9 x float], [9 x float]* @__const.sweep_v.lf3, i64 0, i64 %93
%95 = load float, float* %94
%96 = fdiv float %95, %68
%97 = fmul float %69, %96
%98 = fsub float %97, %24
%99 = fdiv float %98, %58
%100 = fcmp ult float %99, 0.000000e+00
%101 = fcmp ugt float %99, 1.000000e+00
%102 = or i1 %100, %101
br i1 %102, label %109, label %103
103: ; preds = %92
%104 = tail call float @llvm.fmuladd.f32(float %99, float %65, float %62)
%105 = fptosi float %104 to i32
%106 = tail call i32 @draw_rectangle(float* %0, i32 %1, i32 %2, i32 %73, i32 %105, i32 10, i32 3, double 9.000000e-01)
%107 = add nsw i32 %105, 6
%108 = tail call i32 @dispF(float* %0, i32 %1, i32 %2, i32 %72, i32 %107, i32 6, float %95, i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.1, i64 0, i64 0), double 9.000000e-01)
br label %109
109: ; preds = %92, %103
%110 = add nuw nsw i64 %93, 1
%111 = icmp eq i64 %110, 9
br i1 %111, label %163, label %92
112: ; preds = %137
%113 = sitofp i32 %2 to float
%114 = select i1 %30, float %6, float 1.000000e+00
%115 = mul nsw i32 %1, 7
%116 = sdiv i32 %115, 8
%117 = add nsw i32 %116, 10
%118 = add nsw i32 %116, 5
br label %140
119: ; preds = %43, %137
%120 = phi i64 [ 0, %43 ], [ %138, %137 ]
%121 = getelementptr inbounds [6 x float], [6 x float]* @__const.sweep_v.lf2, i64 0, i64 %120
%122 = load float, float* %121
%123 = fpext float %122 to double
%124 = fdiv double 1.000000e+00, %123
%125 = fsub double %124, %45
%126 = fdiv double %125, %48
%127 = fptrunc double %126 to float
%128 = fcmp ult float %127, 0.000000e+00
%129 = fcmp ugt float %127, 1.000000e+00
%130 = or i1 %128, %129
br i1 %130, label %137, label %131
131: ; preds = %119
%132 = tail call float @llvm.fmuladd.f32(float %127, float %55, float %52)
%133 = fptosi float %132 to i32
%134 = tail call i32 @draw_rectangle(float* %0, i32 %1, i32 %2, i32 %56, i32 %133, i32 10, i32 3, double 9.000000e-01)
%135 = add nsw i32 %133, 6
%136 = tail call i32 @dispF(float* %0, i32 %1, i32 %2, i32 %50, i32 %135, i32 6, float %122, i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str, i64 0, i64 0), double 9.000000e-01)
br label %137
137: ; preds = %119, %131
%138 = add nuw nsw i64 %120, 1
%139 = icmp eq i64 %138, 6
br i1 %139, label %112, label %119
140: ; preds = %112, %160
%141 = phi i64 [ 0, %112 ], [ %161, %160 ]
%142 = getelementptr inbounds [7 x float], [7 x float]* @__const.sweep_v.lf4, i64 0, i64 %141
%143 = load float, float* %142
%144 = fdiv float %143, %113
%145 = fmul float %114, %144
%146 = fpext float %145 to double
%147 = fdiv double 1.000000e+00, %146
%148 = fsub double %147, %45
%149 = fdiv double %148, %48
%150 = fptrunc double %149 to float
%151 = fcmp ult float %150, 0.000000e+00
%152 = fcmp ugt float %150, 1.000000e+00
%153 = or i1 %151, %152
br i1 %153, label %160, label %154
154: ; preds = %140
%155 = tail call float @llvm.fmuladd.f32(float %150, float %55, float %52)
%156 = fptosi float %155 to i32
%157 = tail call i32 @draw_rectangle(float* %0, i32 %1, i32 %2, i32 %118, i32 %156, i32 10, i32 3, double 9.000000e-01)
%158 = add nsw i32 %156, 6
%159 = tail call i32 @dispF(float* %0, i32 %1, i32 %2, i32 %117, i32 %158, i32 6, float %143, i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.1, i64 0, i64 0), double 9.000000e-01)
br label %160
160: ; preds = %140, %154
%161 = add nuw nsw i64 %141, 1
%162 = icmp eq i64 %161, 7
br i1 %162, label %163, label %140
163: ; preds = %160, %109, %16
ret void
}