#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 uint64_t;
typedef int uint32_t;

/* Variables and functions */
int ERANGE;
int UINT32_MAX;
int parse_uint64(char const *, int *, int /*<<< orphan*/, int, char const **);
int /*<<< orphan*/ strcmp(char const *, char *);
int parse_rate(const char *str, uint32_t *result) {
  const char *end;
  uint64_t value;
  int r = parse_uint64(str, &value, 0, UINT32_MAX * 8, &end);
  if (r)
    return r;
  if (!*end || !strcmp(end, "b") || !strcmp(end, "bps")) {
    *result = value >> 3;
    return 0;
  }
  if (!strcmp(end, "B") || !strcmp(end, "Bps")) {
    if (value > UINT32_MAX)
      return ERANGE;
    *result = value;
    return 0;
  }
  if (!strcmp(end, "k") || !strcmp(end, "kb") || !strcmp(end, "kbps")) {
    if (value > (UINT32_MAX * 8) / 1000)
      return ERANGE;
    *result = (value * 1000) >> 3;
    return 0;
  }
  if (!strcmp(end, "m") || !strcmp(end, "mb") || !strcmp(end, "mbps")) {
    if (value > (UINT32_MAX * 8) / 1000000)
      return ERANGE;
    *result = (value * 1000000) >> 3;
    return 0;
  }
  if (!strcmp(end, "g") || !strcmp(end, "gb") || !strcmp(end, "gbps")) {
    if (value > (UINT32_MAX * 8) / 1000000000)
      return ERANGE;
    *result = (value * 1000000000) >> 3;
    return 0;
  }
  if (!strcmp(end, "K") || !strcmp(end, "Kb") || !strcmp(end, "Kbps")) {
    if (value > (UINT32_MAX * 8) / 1024)
      return ERANGE;
    *result = (value * 1024) >> 3;
    return 0;
  }
  if (!strcmp(end, "M") || !strcmp(end, "Mb") || !strcmp(end, "Mbps")) {
    if (value > (UINT32_MAX * 8) / (1024 * 1024))
      return ERANGE;
    *result = (value * 1024 * 1024) >> 3;
    return 0;
  }
  if (!strcmp(end, "G") || !strcmp(end, "Gb") || !strcmp(end, "Gbps")) {
    if (value > (UINT32_MAX * 8) / (1024 * 1024 * 1024))
      return ERANGE;
    *result = (value * 1024 * 1024 * 1024) >> 3;
    return 0;
  }
  if (!strcmp(end, "kB") || !strcmp(end, "kBps")) {
    if (value > UINT32_MAX / 1000)
      return ERANGE;
    *result = value * 1000;
    return 0;
  }
  if (!strcmp(end, "mB") || !strcmp(end, "mBps")) {
    if (value > UINT32_MAX / 1000000)
      return ERANGE;
    *result = value * 1000000;
    return 0;
  }
  if (!strcmp(end, "gB") || !strcmp(end, "gBps")) {
    if (value > UINT32_MAX / 1000000000)
      return ERANGE;
    *result = value * 1000000000;
    return 0;
  }
  if (!strcmp(end, "KB") || !strcmp(end, "KBps")) {
    if (value > UINT32_MAX / 1024)
      return ERANGE;
    *result = value * 1024;
    return 0;
  }
  if (!strcmp(end, "MB") || !strcmp(end, "MBps")) {
    if (value > UINT32_MAX / (1024 * 1024))
      return ERANGE;
    *result = value * 1024 * 1024;
    return 0;
  }
  if (!strcmp(end, "GB") || !strcmp(end, "GBps")) {
    if (value > UINT32_MAX / (1024 * 1024 * 1024))
      return ERANGE;
    *result = value * 1024 * 1024 * 1024;
    return 0;
  }
  return -1;
}


x86 assembly (clang, -O0):
<parse_rate>:
push   %rbp
mov    %rsp,%rbp
sub    $0x60,%rsp
mov    %rdi,-0x10(%rbp)
mov    %rsi,-0x18(%rbp)
mov    -0x10(%rbp),%rdi
mov    0x2ebd(%rip),%rax
mov    (%rax),%ecx
shl    $0x3,%ecx
lea    -0x24(%rbp),%rsi
xor    %edx,%edx
lea    -0x20(%rbp),%r8
call   1040 <parse_uint64@plt>
mov    %eax,-0x28(%rbp)
cmpl   $0x0,-0x28(%rbp)
je     1167 <parse_rate+0x47>
mov    -0x28(%rbp),%eax
mov    %eax,-0x4(%rbp)
jmp    18f5 <parse_rate+0x7d5>
mov    -0x20(%rbp),%rax
cmpb   $0x0,(%rax)
je     11a6 <parse_rate+0x86>
mov    -0x20(%rbp),%rdi
lea    0xeb6(%rip),%rsi
call   1030 <strcmp@plt>
cmp    $0x0,%eax
je     11a6 <parse_rate+0x86>
mov    -0x20(%rbp),%rdi
lea    0xea0(%rip),%rsi
call   1030 <strcmp@plt>
cmp    $0x0,%eax
jne    11be <parse_rate+0x9e>
mov    -0x24(%rbp),%ecx
sar    $0x3,%ecx
mov    -0x18(%rbp),%rax
mov    %ecx,(%rax)
movl   $0x0,-0x4(%rbp)
jmp    18f5 <parse_rate+0x7d5>
mov    -0x20(%rbp),%rdi
lea    0xe9c(%rip),%rsi
call   1030 <strcmp@plt>
cmp    $0x0,%eax
je     11f0 <parse_rate+0xd0>
mov    -0x20(%rbp),%rdi
lea    0xe86(%rip),%rsi
call   1030 <strcmp@plt>
cmp    $0x0,%eax
jne    1228 <parse_rate+0x108>
mov    -0x24(%rbp),%eax
mov    0x2dfe(%rip),%rcx
cmp    (%rcx),%eax
jle    1213 <parse_rate+0xf3>
mov    0x2dd7(%rip),%rax
mov    (%rax),%eax
mov    %eax,-0x4(%rbp)
jmp    18f5 <parse_rate+0x7d5>
mov    -0x24(%rbp),%ecx
mov    -0x18(%rbp),%rax
mov    %ecx,(%rax)
movl   $0x0,-0x4(%rbp)
jmp    18f5 <parse_rate+0x7d5>
mov    -0x20(%rbp),%rdi
lea    0xdcd(%rip),%rsi
call   1030 <strcmp@plt>
cmp    $0x0,%eax
je     1273 <parse_rate+0x153>
mov    -0x20(%rbp),%rdi
lea    0xdb6(%rip),%rsi
call   1030 <strcmp@plt>
cmp    $0x0,%eax
je     1273 <parse_rate+0x153>
mov    -0x20(%rbp),%rdi
lea    0xda0(%rip),%rsi
call   1030 <strcmp@plt>
cmp    $0x0,%eax
jne    12c7 <parse_rate+0x1a7>
mov    -0x24(%rbp),%eax
mov    %eax,-0x2c(%rbp)
mov    0x2d78(%rip),%rax
mov    (%rax),%eax
shl    $0x3,%eax
mov    $0x3e8,%ecx
cltd
idiv   %ecx
mov    %eax,%ecx
mov    -0x2c(%rbp),%eax
cmp    %ecx,%eax
jle    12ab <parse_rate+0x18b>
mov    0x2d3f(%rip),%rax
mov    (%rax),%eax
mov    %eax,-0x4(%rbp)
jmp    18f5 <parse_rate+0x7d5>
imul   $0x3e8,-0x24(%rbp),%ecx
sar    $0x3,%ecx
mov    -0x18(%rbp),%rax
mov    %ecx,(%rax)
movl   $0x0,-0x4(%rbp)
jmp    18f5 <parse_rate+0x7d5>
mov    -0x20(%rbp),%rdi
lea    0xd38(%rip),%rsi
call   1030 <strcmp@plt>
cmp    $0x0,%eax
je     1312 <parse_rate+0x1f2>
mov    -0x20(%rbp),%rdi
lea    0xd21(%rip),%rsi
call   1030 <strcmp@plt>
cmp    $0x0,%eax
je     1312 <parse_rate+0x1f2>
mov    -0x20(%rbp),%rdi
lea    0xd0b(%rip),%rsi
call   1030 <strcmp@plt>
cmp    $0x0,%eax
jne    1366 <parse_rate+0x246>
mov    -0x24(%rbp),%eax
mov    %eax,-0x30(%rbp)
mov    0x2cd9(%rip),%rax
mov    (%rax),%eax
shl    $0x3,%eax
mov    $0xf4240,%ecx
cltd
idiv   %ecx
mov    %eax,%ecx
mov    -0x30(%rbp),%eax
cmp    %ecx,%eax
jle    134a <parse_rate+0x22a>
mov    0x2ca0(%rip),%rax
mov    (%rax),%eax
mov    %eax,-0x4(%rbp)
jmp    18f5 <parse_rate+0x7d5>
imul   $0xf4240,-0x24(%rbp),%ecx
sar    $0x3,%ecx
mov    -0x18(%rbp),%rax
mov    %ecx,(%rax)
movl   $0x0,-0x4(%rbp)
jmp    18f5 <parse_rate+0x7d5>
mov    -0x20(%rbp),%rdi
lea    0xca3(%rip),%rsi
call   1030 <strcmp@plt>
cmp    $0x0,%eax
je     13b1 <parse_rate+0x291>
mov    -0x20(%rbp),%rdi
lea    0xc8c(%rip),%rsi
call   1030 <strcmp@plt>
cmp    $0x0,%eax
je     13b1 <parse_rate+0x291>
mov    -0x20(%rbp),%rdi
lea    0xc76(%rip),%rsi
call   1030 <strcmp@plt>
cmp    $0x0,%eax
jne    1405 <parse_rate+0x2e5>
mov    -0x24(%rbp),%eax
mov    %eax,-0x34(%rbp)
mov    0x2c3a(%rip),%rax
mov    (%rax),%eax
shl    $0x3,%eax
mov    $0x3b9aca00,%ecx
cltd
idiv   %ecx
mov    %eax,%ecx
mov    -0x34(%rbp),%eax
cmp    %ecx,%eax
jle    13e9 <parse_rate+0x2c9>
mov    0x2c01(%rip),%rax
mov    (%rax),%eax
mov    %eax,-0x4(%rbp)
jmp    18f5 <parse_rate+0x7d5>
imul   $0x3b9aca00,-0x24(%rbp),%ecx
sar    $0x3,%ecx
mov    -0x18(%rbp),%rax
mov    %ecx,(%rax)
movl   $0x0,-0x4(%rbp)
jmp    18f5 <parse_rate+0x7d5>
mov    -0x20(%rbp),%rdi
lea    0xc0e(%rip),%rsi
call   1030 <strcmp@plt>
cmp    $0x0,%eax
je     1450 <parse_rate+0x330>
mov    -0x20(%rbp),%rdi
lea    0xbf7(%rip),%rsi
call   1030 <strcmp@plt>
cmp    $0x0,%eax
je     1450 <parse_rate+0x330>
mov    -0x20(%rbp),%rdi
lea    0xbe1(%rip),%rsi
call   1030 <strcmp@plt>
cmp    $0x0,%eax
jne    14a3 <parse_rate+0x383>
mov    -0x24(%rbp),%eax
mov    %eax,-0x38(%rbp)
mov    0x2b9b(%rip),%rax
mov    (%rax),%eax
shl    $0x3,%eax
mov    $0x400,%ecx
cltd
idiv   %ecx
mov    %eax,%ecx
mov    -0x38(%rbp),%eax
cmp    %ecx,%eax
jle    1488 <parse_rate+0x368>
mov    0x2b62(%rip),%rax
mov    (%rax),%eax
mov    %eax,-0x4(%rbp)
jmp    18f5 <parse_rate+0x7d5>
mov    -0x24(%rbp),%ecx
shl    $0xa,%ecx
sar    $0x3,%ecx
mov    -0x18(%rbp),%rax
mov    %ecx,(%rax)
movl   $0x0,-0x4(%rbp)
jmp    18f5 <parse_rate+0x7d5>
mov    -0x20(%rbp),%rdi
lea    0xb7a(%rip),%rsi
call   1030 <strcmp@plt>
cmp    $0x0,%eax
je     14ee <parse_rate+0x3ce>
mov    -0x20(%rbp),%rdi
lea    0xb63(%rip),%rsi
call   1030 <strcmp@plt>
cmp    $0x0,%eax
je     14ee <parse_rate+0x3ce>
mov    -0x20(%rbp),%rdi
lea    0xb4d(%rip),%rsi
call   1030 <strcmp@plt>
cmp    $0x0,%eax
jne    1544 <parse_rate+0x424>
mov    -0x24(%rbp),%eax
mov    %eax,-0x3c(%rbp)
mov    0x2afd(%rip),%rax
mov    (%rax),%eax
shl    $0x3,%eax
mov    $0x100000,%ecx
cltd
idiv   %ecx
mov    %eax,%ecx
mov    -0x3c(%rbp),%eax
cmp    %ecx,%eax
jle    1526 <parse_rate+0x406>
mov    0x2ac4(%rip),%rax
mov    (%rax),%eax
mov    %eax,-0x4(%rbp)
jmp    18f5 <parse_rate+0x7d5>
mov    -0x24(%rbp),%ecx
shl    $0xa,%ecx
shl    $0xa,%ecx
sar    $0x3,%ecx
mov    -0x18(%rbp),%rax
mov    %ecx,(%rax)
movl   $0x0,-0x4(%rbp)
jmp    18f5 <parse_rate+0x7d5>
mov    -0x20(%rbp),%rdi
lea    0xae3(%rip),%rsi
call   1030 <strcmp@plt>
cmp    $0x0,%eax
je     158f <parse_rate+0x46f>
mov    -0x20(%rbp),%rdi
lea    0xacc(%rip),%rsi
call   1030 <strcmp@plt>
cmp    $0x0,%eax
je     158f <parse_rate+0x46f>
mov    -0x20(%rbp),%rdi
lea    0xab6(%rip),%rsi
call   1030 <strcmp@plt>
cmp    $0x0,%eax
jne    15e8 <parse_rate+0x4c8>
mov    -0x24(%rbp),%eax
mov    %eax,-0x40(%rbp)
mov    0x2a5c(%rip),%rax
mov    (%rax),%eax
shl    $0x3,%eax
mov    $0x40000000,%ecx
cltd
idiv   %ecx
mov    %eax,%ecx
mov    -0x40(%rbp),%eax
cmp    %ecx,%eax
jle    15c7 <parse_rate+0x4a7>
mov    0x2a23(%rip),%rax
mov    (%rax),%eax
mov    %eax,-0x4(%rbp)
jmp    18f5 <parse_rate+0x7d5>
mov    -0x24(%rbp),%ecx
shl    $0xa,%ecx
shl    $0xa,%ecx
shl    $0xa,%ecx
sar    $0x3,%ecx
mov    -0x18(%rbp),%rax
mov    %ecx,(%rax)
movl   $0x0,-0x4(%rbp)
jmp    18f5 <parse_rate+0x7d5>
mov    -0x20(%rbp),%rdi
lea    0xa49(%rip),%rsi
call   1030 <strcmp@plt>
cmp    $0x0,%eax
je     161a <parse_rate+0x4fa>
mov    -0x20(%rbp),%rdi
lea    0xa33(%rip),%rsi
call   1030 <strcmp@plt>
cmp    $0x0,%eax
jne    1668 <parse_rate+0x548>
mov    -0x24(%rbp),%eax
mov    %eax,-0x44(%rbp)
mov    0x29d1(%rip),%rax
mov    (%rax),%eax
mov    $0x3e8,%ecx
cltd
idiv   %ecx
mov    %eax,%ecx
mov    -0x44(%rbp),%eax
cmp    %ecx,%eax
jle    164f <parse_rate+0x52f>
mov    0x299b(%rip),%rax
mov    (%rax),%eax
mov    %eax,-0x4(%rbp)
jmp    18f5 <parse_rate+0x7d5>
imul   $0x3e8,-0x24(%rbp),%ecx
mov    -0x18(%rbp),%rax
mov    %ecx,(%rax)
movl   $0x0,-0x4(%rbp)
jmp    18f5 <parse_rate+0x7d5>
mov    -0x20(%rbp),%rdi
lea    0x9d1(%rip),%rsi
call   1030 <strcmp@plt>
cmp    $0x0,%eax
je     169a <parse_rate+0x57a>
mov    -0x20(%rbp),%rdi
lea    0x9bb(%rip),%rsi
call   1030 <strcmp@plt>
cmp    $0x0,%eax
jne    16e8 <parse_rate+0x5c8>
mov    -0x24(%rbp),%eax
mov    %eax,-0x48(%rbp)
mov    0x2951(%rip),%rax
mov    (%rax),%eax
mov    $0xf4240,%ecx
cltd
idiv   %ecx
mov    %eax,%ecx
mov    -0x48(%rbp),%eax
cmp    %ecx,%eax
jle    16cf <parse_rate+0x5af>
mov    0x291b(%rip),%rax
mov    (%rax),%eax
mov    %eax,-0x4(%rbp)
jmp    18f5 <parse_rate+0x7d5>
imul   $0xf4240,-0x24(%rbp),%ecx
mov    -0x18(%rbp),%rax
mov    %ecx,(%rax)
movl   $0x0,-0x4(%rbp)
jmp    18f5 <parse_rate+0x7d5>
mov    -0x20(%rbp),%rdi
lea    0x959(%rip),%rsi
call   1030 <strcmp@plt>
cmp    $0x0,%eax
je     171a <parse_rate+0x5fa>
mov    -0x20(%rbp),%rdi
lea    0x943(%rip),%rsi
call   1030 <strcmp@plt>
cmp    $0x0,%eax
jne    1768 <parse_rate+0x648>
mov    -0x24(%rbp),%eax
mov    %eax,-0x4c(%rbp)
mov    0x28d1(%rip),%rax
mov    (%rax),%eax
mov    $0x3b9aca00,%ecx
cltd
idiv   %ecx
mov    %eax,%ecx
mov    -0x4c(%rbp),%eax
cmp    %ecx,%eax
jle    174f <parse_rate+0x62f>
mov    0x289b(%rip),%rax
mov    (%rax),%eax
mov    %eax,-0x4(%rbp)
jmp    18f5 <parse_rate+0x7d5>
imul   $0x3b9aca00,-0x24(%rbp),%ecx
mov    -0x18(%rbp),%rax
mov    %ecx,(%rax)
movl   $0x0,-0x4(%rbp)
jmp    18f5 <parse_rate+0x7d5>
mov    -0x20(%rbp),%rdi
lea    0x8e1(%rip),%rsi
call   1030 <strcmp@plt>
cmp    $0x0,%eax
je     179a <parse_rate+0x67a>
mov    -0x20(%rbp),%rdi
lea    0x8cb(%rip),%rsi
call   1030 <strcmp@plt>
cmp    $0x0,%eax
jne    17e7 <parse_rate+0x6c7>
mov    -0x24(%rbp),%eax
mov    %eax,-0x50(%rbp)
mov    0x2851(%rip),%rax
mov    (%rax),%eax
mov    $0x400,%ecx
cltd
idiv   %ecx
mov    %eax,%ecx
mov    -0x50(%rbp),%eax
cmp    %ecx,%eax
jle    17cf <parse_rate+0x6af>
mov    0x281b(%rip),%rax
mov    (%rax),%eax
mov    %eax,-0x4(%rbp)
jmp    18f5 <parse_rate+0x7d5>
mov    -0x24(%rbp),%ecx
shl    $0xa,%ecx
mov    -0x18(%rbp),%rax
mov    %ecx,(%rax)
movl   $0x0,-0x4(%rbp)
jmp    18f5 <parse_rate+0x7d5>
mov    -0x20(%rbp),%rdi
lea    0x86a(%rip),%rsi
call   1030 <strcmp@plt>
cmp    $0x0,%eax
je     1819 <parse_rate+0x6f9>
mov    -0x20(%rbp),%rdi
lea    0x854(%rip),%rsi
call   1030 <strcmp@plt>
cmp    $0x0,%eax
jne    1869 <parse_rate+0x749>
mov    -0x24(%rbp),%eax
mov    %eax,-0x54(%rbp)
mov    0x27d2(%rip),%rax
mov    (%rax),%eax
mov    $0x100000,%ecx
cltd
idiv   %ecx
mov    %eax,%ecx
mov    -0x54(%rbp),%eax
cmp    %ecx,%eax
jle    184e <parse_rate+0x72e>
mov    0x279c(%rip),%rax
mov    (%rax),%eax
mov    %eax,-0x4(%rbp)
jmp    18f5 <parse_rate+0x7d5>
mov    -0x24(%rbp),%ecx
shl    $0xa,%ecx
shl    $0xa,%ecx
mov    -0x18(%rbp),%rax
mov    %ecx,(%rax)
movl   $0x0,-0x4(%rbp)
jmp    18f5 <parse_rate+0x7d5>
mov    -0x20(%rbp),%rdi
lea    0x7f0(%rip),%rsi
call   1030 <strcmp@plt>
cmp    $0x0,%eax
je     189b <parse_rate+0x77b>
mov    -0x20(%rbp),%rdi
lea    0x7da(%rip),%rsi
call   1030 <strcmp@plt>
cmp    $0x0,%eax
jne    18ee <parse_rate+0x7ce>
mov    -0x24(%rbp),%eax
mov    %eax,-0x58(%rbp)
mov    0x2750(%rip),%rax
mov    (%rax),%eax
mov    $0x40000000,%ecx
cltd
idiv   %ecx
mov    %eax,%ecx
mov    -0x58(%rbp),%eax
cmp    %ecx,%eax
jle    18d0 <parse_rate+0x7b0>
mov    0x271a(%rip),%rax
mov    (%rax),%eax
mov    %eax,-0x4(%rbp)
jmp    18f5 <parse_rate+0x7d5>
mov    -0x24(%rbp),%ecx
shl    $0xa,%ecx
shl    $0xa,%ecx
shl    $0xa,%ecx
mov    -0x18(%rbp),%rax
mov    %ecx,(%rax)
movl   $0x0,-0x4(%rbp)
jmp    18f5 <parse_rate+0x7d5>
movl   $0xffffffff,-0x4(%rbp)
mov    -0x4(%rbp),%eax
add    $0x60,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<parse_rate>:
push   %r15
push   %r14
push   %rbx
sub    $0x10,%rsp
mov    %rsi,%r14
mov    0x2ec5(%rip),%r15
mov    (%r15),%ecx
shl    $0x3,%ecx
lea    0x4(%rsp),%rsi
lea    0x8(%rsp),%r8
xor    %edx,%edx
call   1040 <parse_uint64@plt>
test   %eax,%eax
jne    1497 <parse_rate+0x377>
mov    0x8(%rsp),%rbx
cmpb   $0x0,(%rbx)
je     148b <parse_rate+0x36b>
lea    0xece(%rip),%rsi
mov    %rbx,%rdi
call   1030 <strcmp@plt>
test   %eax,%eax
je     148b <parse_rate+0x36b>
lea    0xeba(%rip),%rsi
mov    %rbx,%rdi
call   1030 <strcmp@plt>
test   %eax,%eax
je     148b <parse_rate+0x36b>
lea    0xed0(%rip),%rsi
mov    %rbx,%rdi
call   1030 <strcmp@plt>
test   %eax,%eax
je     14a1 <parse_rate+0x381>
lea    0xebc(%rip),%rsi
mov    %rbx,%rdi
call   1030 <strcmp@plt>
test   %eax,%eax
je     14a1 <parse_rate+0x381>
lea    0xe3d(%rip),%rsi
mov    %rbx,%rdi
call   1030 <strcmp@plt>
test   %eax,%eax
je     14ac <parse_rate+0x38c>
lea    0xe28(%rip),%rsi
mov    %rbx,%rdi
call   1030 <strcmp@plt>
test   %eax,%eax
je     14ac <parse_rate+0x38c>
lea    0xe14(%rip),%rsi
mov    %rbx,%rdi
call   1030 <strcmp@plt>
test   %eax,%eax
je     14ac <parse_rate+0x38c>
lea    0xe02(%rip),%rsi
mov    %rbx,%rdi
call   1030 <strcmp@plt>
test   %eax,%eax
je     14de <parse_rate+0x3be>
lea    0xded(%rip),%rsi
mov    %rbx,%rdi
call   1030 <strcmp@plt>
test   %eax,%eax
je     14de <parse_rate+0x3be>
lea    0xdd9(%rip),%rsi
mov    %rbx,%rdi
call   1030 <strcmp@plt>
test   %eax,%eax
je     14de <parse_rate+0x3be>
lea    0xdc7(%rip),%rsi
mov    %rbx,%rdi
call   1030 <strcmp@plt>
test   %eax,%eax
je     1505 <parse_rate+0x3e5>
lea    0xdb2(%rip),%rsi
mov    %rbx,%rdi
call   1030 <strcmp@plt>
test   %eax,%eax
je     1505 <parse_rate+0x3e5>
lea    0xd9e(%rip),%rsi
mov    %rbx,%rdi
call   1030 <strcmp@plt>
test   %eax,%eax
je     1505 <parse_rate+0x3e5>
lea    0xd8c(%rip),%rsi
mov    %rbx,%rdi
call   1030 <strcmp@plt>
test   %eax,%eax
je     152f <parse_rate+0x40f>
lea    0xd77(%rip),%rsi
mov    %rbx,%rdi
call   1030 <strcmp@plt>
test   %eax,%eax
je     152f <parse_rate+0x40f>
lea    0xd63(%rip),%rsi
mov    %rbx,%rdi
call   1030 <strcmp@plt>
test   %eax,%eax
je     152f <parse_rate+0x40f>
lea    0xd51(%rip),%rsi
mov    %rbx,%rdi
call   1030 <strcmp@plt>
test   %eax,%eax
je     154d <parse_rate+0x42d>
lea    0xd3c(%rip),%rsi
mov    %rbx,%rdi
call   1030 <strcmp@plt>
test   %eax,%eax
je     154d <parse_rate+0x42d>
lea    0xd28(%rip),%rsi
mov    %rbx,%rdi
call   1030 <strcmp@plt>
test   %eax,%eax
je     154d <parse_rate+0x42d>
lea    0xd16(%rip),%rsi
mov    %rbx,%rdi
call   1030 <strcmp@plt>
test   %eax,%eax
je     1572 <parse_rate+0x452>
lea    0xd01(%rip),%rsi
mov    %rbx,%rdi
call   1030 <strcmp@plt>
test   %eax,%eax
je     1572 <parse_rate+0x452>
lea    0xced(%rip),%rsi
mov    %rbx,%rdi
call   1030 <strcmp@plt>
test   %eax,%eax
je     1572 <parse_rate+0x452>
lea    0xcdb(%rip),%rsi
mov    %rbx,%rdi
call   1030 <strcmp@plt>
test   %eax,%eax
je     1597 <parse_rate+0x477>
lea    0xcc7(%rip),%rsi
mov    %rbx,%rdi
call   1030 <strcmp@plt>
test   %eax,%eax
je     1597 <parse_rate+0x477>
lea    0xcb5(%rip),%rsi
mov    %rbx,%rdi
call   1030 <strcmp@plt>
test   %eax,%eax
je     15c5 <parse_rate+0x4a5>
lea    0xca1(%rip),%rsi
mov    %rbx,%rdi
call   1030 <strcmp@plt>
test   %eax,%eax
je     15c5 <parse_rate+0x4a5>
lea    0xc8f(%rip),%rsi
mov    %rbx,%rdi
call   1030 <strcmp@plt>
test   %eax,%eax
je     15f3 <parse_rate+0x4d3>
lea    0xc7b(%rip),%rsi
mov    %rbx,%rdi
call   1030 <strcmp@plt>
test   %eax,%eax
je     15f3 <parse_rate+0x4d3>
lea    0xc69(%rip),%rsi
mov    %rbx,%rdi
call   1030 <strcmp@plt>
test   %eax,%eax
je     1621 <parse_rate+0x501>
lea    0xc55(%rip),%rsi
mov    %rbx,%rdi
call   1030 <strcmp@plt>
test   %eax,%eax
je     1621 <parse_rate+0x501>
lea    0xc43(%rip),%rsi
mov    %rbx,%rdi
call   1030 <strcmp@plt>
test   %eax,%eax
je     1646 <parse_rate+0x526>
lea    0xc2f(%rip),%rsi
mov    %rbx,%rdi
call   1030 <strcmp@plt>
test   %eax,%eax
je     1646 <parse_rate+0x526>
lea    0xc1d(%rip),%rsi
mov    %rbx,%rdi
call   1030 <strcmp@plt>
test   %eax,%eax
je     146d <parse_rate+0x34d>
lea    0xc0d(%rip),%rsi
mov    %rbx,%rdi
call   1030 <strcmp@plt>
mov    %eax,%ecx
mov    $0xffffffff,%eax
test   %ecx,%ecx
jne    1497 <parse_rate+0x377>
mov    0x4(%rsp),%eax
mov    (%r15),%ecx
lea    0x3fffffff(%rcx),%edx
test   %ecx,%ecx
cmovns %ecx,%edx
sar    $0x1e,%edx
cmp    %edx,%eax
jg     14cb <parse_rate+0x3ab>
shl    $0x1e,%eax
jmp    1492 <parse_rate+0x372>
mov    0x4(%rsp),%eax
sar    $0x3,%eax
mov    %eax,(%r14)
xor    %eax,%eax
add    $0x10,%rsp
pop    %rbx
pop    %r14
pop    %r15
ret
mov    0x4(%rsp),%eax
cmp    (%r15),%eax
jle    1492 <parse_rate+0x372>
jmp    14cb <parse_rate+0x3ab>
mov    0x4(%rsp),%eax
movslq (%r15),%rcx
imul   $0x10624dd3,%rcx,%rcx
mov    %rcx,%rdx
shr    $0x3f,%rdx
sar    $0x23,%rcx
add    %edx,%ecx
cmp    %ecx,%eax
jle    14d6 <parse_rate+0x3b6>
mov    0x2b0e(%rip),%rax
mov    (%rax),%eax
jmp    1497 <parse_rate+0x377>
imul   $0x3e8,%eax,%eax
jmp    148f <parse_rate+0x36f>
mov    0x4(%rsp),%eax
movslq (%r15),%rcx
imul   $0x431bde83,%rcx,%rcx
mov    %rcx,%rdx
shr    $0x3f,%rdx
sar    $0x2f,%rcx
add    %edx,%ecx
cmp    %ecx,%eax
jg     14cb <parse_rate+0x3ab>
imul   $0xf4240,%eax,%eax
jmp    148f <parse_rate+0x36f>
mov    0x4(%rsp),%eax
movslq (%r15),%rcx
imul   $0x44b82fa1,%rcx,%rcx
mov    %rcx,%rdx
shr    $0x3f,%rdx
sar    $0x39,%rcx
add    %edx,%ecx
cmp    %ecx,%eax
jg     14cb <parse_rate+0x3ab>
imul   $0x3b9aca00,%eax,%eax
jmp    148f <parse_rate+0x36f>
mov    0x4(%rsp),%eax
mov    (%r15),%ecx
lea    0x7f(%rcx),%edx
test   %ecx,%ecx
cmovns %ecx,%edx
sar    $0x7,%edx
cmp    %edx,%eax
jg     14cb <parse_rate+0x3ab>
shl    $0x7,%eax
jmp    1492 <parse_rate+0x372>
mov    0x4(%rsp),%eax
mov    (%r15),%ecx
lea    0x1ffff(%rcx),%edx
test   %ecx,%ecx
cmovns %ecx,%edx
sar    $0x11,%edx
cmp    %edx,%eax
jg     14cb <parse_rate+0x3ab>
shl    $0x11,%eax
jmp    1492 <parse_rate+0x372>
mov    0x4(%rsp),%eax
mov    (%r15),%ecx
lea    0x7ffffff(%rcx),%edx
test   %ecx,%ecx
cmovns %ecx,%edx
sar    $0x1b,%edx
cmp    %edx,%eax
jg     14cb <parse_rate+0x3ab>
shl    $0x1b,%eax
jmp    1492 <parse_rate+0x372>
mov    0x4(%rsp),%eax
movslq (%r15),%rcx
imul   $0x10624dd3,%rcx,%rcx
mov    %rcx,%rdx
shr    $0x3f,%rdx
sar    $0x26,%rcx
add    %edx,%ecx
cmp    %ecx,%eax
jg     14cb <parse_rate+0x3ab>
imul   $0x3e8,%eax,%eax
jmp    1492 <parse_rate+0x372>
mov    0x4(%rsp),%eax
movslq (%r15),%rcx
imul   $0x431bde83,%rcx,%rcx
mov    %rcx,%rdx
shr    $0x3f,%rdx
sar    $0x32,%rcx
add    %edx,%ecx
cmp    %ecx,%eax
jg     14cb <parse_rate+0x3ab>
imul   $0xf4240,%eax,%eax
jmp    1492 <parse_rate+0x372>
mov    0x4(%rsp),%eax
movslq (%r15),%rcx
imul   $0x44b82fa1,%rcx,%rcx
mov    %rcx,%rdx
shr    $0x3f,%rdx
sar    $0x3c,%rcx
add    %edx,%ecx
cmp    %ecx,%eax
jg     14cb <parse_rate+0x3ab>
imul   $0x3b9aca00,%eax,%eax
jmp    1492 <parse_rate+0x372>
mov    0x4(%rsp),%eax
mov    (%r15),%ecx
lea    0x3ff(%rcx),%edx
test   %ecx,%ecx
cmovns %ecx,%edx
sar    $0xa,%edx
cmp    %edx,%eax
jg     14cb <parse_rate+0x3ab>
shl    $0xa,%eax
jmp    1492 <parse_rate+0x372>
mov    0x4(%rsp),%eax
mov    (%r15),%ecx
lea    0xfffff(%rcx),%edx
test   %ecx,%ecx
cmovns %ecx,%edx
sar    $0x14,%edx
cmp    %edx,%eax
jg     14cb <parse_rate+0x3ab>
shl    $0x14,%eax
jmp    1492 <parse_rate+0x372>

LLVM IR (-O0):
@UINT32_MAX = global i32 0
@.str = [2 x i8] c"b\00"
@.str.1 = [4 x i8] c"bps\00"
@.str.2 = [2 x i8] c"B\00"
@.str.3 = [4 x i8] c"Bps\00"
@ERANGE = global i32 0
@.str.4 = [2 x i8] c"k\00"
@.str.5 = [3 x i8] c"kb\00"
@.str.6 = [5 x i8] c"kbps\00"
@.str.7 = [2 x i8] c"m\00"
@.str.8 = [3 x i8] c"mb\00"
@.str.9 = [5 x i8] c"mbps\00"
@.str.10 = [2 x i8] c"g\00"
@.str.11 = [3 x i8] c"gb\00"
@.str.12 = [5 x i8] c"gbps\00"
@.str.13 = [2 x i8] c"K\00"
@.str.14 = [3 x i8] c"Kb\00"
@.str.15 = [5 x i8] c"Kbps\00"
@.str.16 = [2 x i8] c"M\00"
@.str.17 = [3 x i8] c"Mb\00"
@.str.18 = [5 x i8] c"Mbps\00"
@.str.19 = [2 x i8] c"G\00"
@.str.20 = [3 x i8] c"Gb\00"
@.str.21 = [5 x i8] c"Gbps\00"
@.str.22 = [3 x i8] c"kB\00"
@.str.23 = [5 x i8] c"kBps\00"
@.str.24 = [3 x i8] c"mB\00"
@.str.25 = [5 x i8] c"mBps\00"
@.str.26 = [3 x i8] c"gB\00"
@.str.27 = [5 x i8] c"gBps\00"
@.str.28 = [3 x i8] c"KB\00"
@.str.29 = [5 x i8] c"KBps\00"
@.str.30 = [3 x i8] c"MB\00"
@.str.31 = [5 x i8] c"MBps\00"
@.str.32 = [3 x i8] c"GB\00"
@.str.33 = [5 x i8] c"GBps\00"
define i32 @parse_rate(i8* %0, i32* %1) {
%3 = alloca i32
%4 = alloca i8*
%5 = alloca i32*
%6 = alloca i8*
%7 = alloca i32
%8 = alloca i32
store i8* %0, i8** %4
store i32* %1, i32** %5
%9 = load i8*, i8** %4
%10 = load i32, i32* @UINT32_MAX
%11 = mul nsw i32 %10, 8
%12 = call i32 @parse_uint64(i8* %9, i32* %7, i32 0, i32 %11, i8** %6)
store i32 %12, i32* %8
%13 = load i32, i32* %8
%14 = icmp ne i32 %13, 0
br i1 %14, label %15, label %17
15: ; preds = %2
%16 = load i32, i32* %8
store i32 %16, i32* %3
br label %321
17: ; preds = %2
%18 = load i8*, i8** %6
%19 = load i8, i8* %18
%20 = icmp ne i8 %19, 0
br i1 %20, label %21, label %29
21: ; preds = %17
%22 = load i8*, i8** %6
%23 = call i32 @strcmp(i8* %22, i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str, i64 0, i64 0))
%24 = icmp ne i32 %23, 0
br i1 %24, label %25, label %29
25: ; preds = %21
%26 = load i8*, i8** %6
%27 = call i32 @strcmp(i8* %26, i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.1, i64 0, i64 0))
%28 = icmp ne i32 %27, 0
br i1 %28, label %33, label %29
29: ; preds = %25, %21, %17
%30 = load i32, i32* %7
%31 = ashr i32 %30, 3
%32 = load i32*, i32** %5
store i32 %31, i32* %32
store i32 0, i32* %3
br label %321
33: ; preds = %25
%34 = load i8*, i8** %6
%35 = call i32 @strcmp(i8* %34, i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.2, i64 0, i64 0))
%36 = icmp ne i32 %35, 0
br i1 %36, label %37, label %41
37: ; preds = %33
%38 = load i8*, i8** %6
%39 = call i32 @strcmp(i8* %38, i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.3, i64 0, i64 0))
%40 = icmp ne i32 %39, 0
br i1 %40, label %50, label %41
41: ; preds = %37, %33
%42 = load i32, i32* %7
%43 = load i32, i32* @UINT32_MAX
%44 = icmp sgt i32 %42, %43
br i1 %44, label %45, label %47
45: ; preds = %41
%46 = load i32, i32* @ERANGE
store i32 %46, i32* %3
br label %321
47: ; preds = %41
%48 = load i32, i32* %7
%49 = load i32*, i32** %5
store i32 %48, i32* %49
store i32 0, i32* %3
br label %321
50: ; preds = %37
%51 = load i8*, i8** %6
%52 = call i32 @strcmp(i8* %51, i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.4, i64 0, i64 0))
%53 = icmp ne i32 %52, 0
br i1 %53, label %54, label %62
54: ; preds = %50
%55 = load i8*, i8** %6
%56 = call i32 @strcmp(i8* %55, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.5, i64 0, i64 0))
%57 = icmp ne i32 %56, 0
br i1 %57, label %58, label %62
58: ; preds = %54
%59 = load i8*, i8** %6
%60 = call i32 @strcmp(i8* %59, i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.6, i64 0, i64 0))
%61 = icmp ne i32 %60, 0
br i1 %61, label %75, label %62
62: ; preds = %58, %54, %50
%63 = load i32, i32* %7
%64 = load i32, i32* @UINT32_MAX
%65 = mul nsw i32 %64, 8
%66 = sdiv i32 %65, 1000
%67 = icmp sgt i32 %63, %66
br i1 %67, label %68, label %70
68: ; preds = %62
%69 = load i32, i32* @ERANGE
store i32 %69, i32* %3
br label %321
70: ; preds = %62
%71 = load i32, i32* %7
%72 = mul nsw i32 %71, 1000
%73 = ashr i32 %72, 3
%74 = load i32*, i32** %5
store i32 %73, i32* %74
store i32 0, i32* %3
br label %321
75: ; preds = %58
%76 = load i8*, i8** %6
%77 = call i32 @strcmp(i8* %76, i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.7, i64 0, i64 0))
%78 = icmp ne i32 %77, 0
br i1 %78, label %79, label %87
79: ; preds = %75
%80 = load i8*, i8** %6
%81 = call i32 @strcmp(i8* %80, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.8, i64 0, i64 0))
%82 = icmp ne i32 %81, 0
br i1 %82, label %83, label %87
83: ; preds = %79
%84 = load i8*, i8** %6
%85 = call i32 @strcmp(i8* %84, i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.9, i64 0, i64 0))
%86 = icmp ne i32 %85, 0
br i1 %86, label %100, label %87
87: ; preds = %83, %79, %75
%88 = load i32, i32* %7
%89 = load i32, i32* @UINT32_MAX
%90 = mul nsw i32 %89, 8
%91 = sdiv i32 %90, 1000000
%92 = icmp sgt i32 %88, %91
br i1 %92, label %93, label %95
93: ; preds = %87
%94 = load i32, i32* @ERANGE
store i32 %94, i32* %3
br label %321
95: ; preds = %87
%96 = load i32, i32* %7
%97 = mul nsw i32 %96, 1000000
%98 = ashr i32 %97, 3
%99 = load i32*, i32** %5
store i32 %98, i32* %99
store i32 0, i32* %3
br label %321
100: ; preds = %83
%101 = load i8*, i8** %6
%102 = call i32 @strcmp(i8* %101, i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.10, i64 0, i64 0))
%103 = icmp ne i32 %102, 0
br i1 %103, label %104, label %112
104: ; preds = %100
%105 = load i8*, i8** %6
%106 = call i32 @strcmp(i8* %105, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.11, i64 0, i64 0))
%107 = icmp ne i32 %106, 0
br i1 %107, label %108, label %112
108: ; preds = %104
%109 = load i8*, i8** %6
%110 = call i32 @strcmp(i8* %109, i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.12, i64 0, i64 0))
%111 = icmp ne i32 %110, 0
br i1 %111, label %125, label %112
112: ; preds = %108, %104, %100
%113 = load i32, i32* %7
%114 = load i32, i32* @UINT32_MAX
%115 = mul nsw i32 %114, 8
%116 = sdiv i32 %115, 1000000000
%117 = icmp sgt i32 %113, %116
br i1 %117, label %118, label %120
118: ; preds = %112
%119 = load i32, i32* @ERANGE
store i32 %119, i32* %3
br label %321
120: ; preds = %112
%121 = load i32, i32* %7
%122 = mul nsw i32 %121, 1000000000
%123 = ashr i32 %122, 3
%124 = load i32*, i32** %5
store i32 %123, i32* %124
store i32 0, i32* %3
br label %321
125: ; preds = %108
%126 = load i8*, i8** %6
%127 = call i32 @strcmp(i8* %126, i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.13, i64 0, i64 0))
%128 = icmp ne i32 %127, 0
br i1 %128, label %129, label %137
129: ; preds = %125
%130 = load i8*, i8** %6
%131 = call i32 @strcmp(i8* %130, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.14, i64 0, i64 0))
%132 = icmp ne i32 %131, 0
br i1 %132, label %133, label %137
133: ; preds = %129
%134 = load i8*, i8** %6
%135 = call i32 @strcmp(i8* %134, i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.15, i64 0, i64 0))
%136 = icmp ne i32 %135, 0
br i1 %136, label %150, label %137
137: ; preds = %133, %129, %125
%138 = load i32, i32* %7
%139 = load i32, i32* @UINT32_MAX
%140 = mul nsw i32 %139, 8
%141 = sdiv i32 %140, 1024
%142 = icmp sgt i32 %138, %141
br i1 %142, label %143, label %145
143: ; preds = %137
%144 = load i32, i32* @ERANGE
store i32 %144, i32* %3
br label %321
145: ; preds = %137
%146 = load i32, i32* %7
%147 = mul nsw i32 %146, 1024
%148 = ashr i32 %147, 3
%149 = load i32*, i32** %5
store i32 %148, i32* %149
store i32 0, i32* %3
br label %321
150: ; preds = %133
%151 = load i8*, i8** %6
%152 = call i32 @strcmp(i8* %151, i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.16, i64 0, i64 0))
%153 = icmp ne i32 %152, 0
br i1 %153, label %154, label %162
154: ; preds = %150
%155 = load i8*, i8** %6
%156 = call i32 @strcmp(i8* %155, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.17, i64 0, i64 0))
%157 = icmp ne i32 %156, 0
br i1 %157, label %158, label %162
158: ; preds = %154
%159 = load i8*, i8** %6
%160 = call i32 @strcmp(i8* %159, i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.18, i64 0, i64 0))
%161 = icmp ne i32 %160, 0
br i1 %161, label %176, label %162
162: ; preds = %158, %154, %150
%163 = load i32, i32* %7
%164 = load i32, i32* @UINT32_MAX
%165 = mul nsw i32 %164, 8
%166 = sdiv i32 %165, 1048576
%167 = icmp sgt i32 %163, %166
br i1 %167, label %168, label %170
168: ; preds = %162
%169 = load i32, i32* @ERANGE
store i32 %169, i32* %3
br label %321
170: ; preds = %162
%171 = load i32, i32* %7
%172 = mul nsw i32 %171, 1024
%173 = mul nsw i32 %172, 1024
%174 = ashr i32 %173, 3
%175 = load i32*, i32** %5
store i32 %174, i32* %175
store i32 0, i32* %3
br label %321
176: ; preds = %158
%177 = load i8*, i8** %6
%178 = call i32 @strcmp(i8* %177, i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.19, i64 0, i64 0))
%179 = icmp ne i32 %178, 0
br i1 %179, label %180, label %188
180: ; preds = %176
%181 = load i8*, i8** %6
%182 = call i32 @strcmp(i8* %181, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.20, i64 0, i64 0))
%183 = icmp ne i32 %182, 0
br i1 %183, label %184, label %188
184: ; preds = %180
%185 = load i8*, i8** %6
%186 = call i32 @strcmp(i8* %185, i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.21, i64 0, i64 0))
%187 = icmp ne i32 %186, 0
br i1 %187, label %203, label %188
188: ; preds = %184, %180, %176
%189 = load i32, i32* %7
%190 = load i32, i32* @UINT32_MAX
%191 = mul nsw i32 %190, 8
%192 = sdiv i32 %191, 1073741824
%193 = icmp sgt i32 %189, %192
br i1 %193, label %194, label %196
194: ; preds = %188
%195 = load i32, i32* @ERANGE
store i32 %195, i32* %3
br label %321
196: ; preds = %188
%197 = load i32, i32* %7
%198 = mul nsw i32 %197, 1024
%199 = mul nsw i32 %198, 1024
%200 = mul nsw i32 %199, 1024
%201 = ashr i32 %200, 3
%202 = load i32*, i32** %5
store i32 %201, i32* %202
store i32 0, i32* %3
br label %321
203: ; preds = %184
%204 = load i8*, i8** %6
%205 = call i32 @strcmp(i8* %204, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.22, i64 0, i64 0))
%206 = icmp ne i32 %205, 0
br i1 %206, label %207, label %211
207: ; preds = %203
%208 = load i8*, i8** %6
%209 = call i32 @strcmp(i8* %208, i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.23, i64 0, i64 0))
%210 = icmp ne i32 %209, 0
br i1 %210, label %222, label %211
211: ; preds = %207, %203
%212 = load i32, i32* %7
%213 = load i32, i32* @UINT32_MAX
%214 = sdiv i32 %213, 1000
%215 = icmp sgt i32 %212, %214
br i1 %215, label %216, label %218
216: ; preds = %211
%217 = load i32, i32* @ERANGE
store i32 %217, i32* %3
br label %321
218: ; preds = %211
%219 = load i32, i32* %7
%220 = mul nsw i32 %219, 1000
%221 = load i32*, i32** %5
store i32 %220, i32* %221
store i32 0, i32* %3
br label %321
222: ; preds = %207
%223 = load i8*, i8** %6
%224 = call i32 @strcmp(i8* %223, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.24, i64 0, i64 0))
%225 = icmp ne i32 %224, 0
br i1 %225, label %226, label %230
226: ; preds = %222
%227 = load i8*, i8** %6
%228 = call i32 @strcmp(i8* %227, i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.25, i64 0, i64 0))
%229 = icmp ne i32 %228, 0
br i1 %229, label %241, label %230
230: ; preds = %226, %222
%231 = load i32, i32* %7
%232 = load i32, i32* @UINT32_MAX
%233 = sdiv i32 %232, 1000000
%234 = icmp sgt i32 %231, %233
br i1 %234, label %235, label %237
235: ; preds = %230
%236 = load i32, i32* @ERANGE
store i32 %236, i32* %3
br label %321
237: ; preds = %230
%238 = load i32, i32* %7
%239 = mul nsw i32 %238, 1000000
%240 = load i32*, i32** %5
store i32 %239, i32* %240
store i32 0, i32* %3
br label %321
241: ; preds = %226
%242 = load i8*, i8** %6
%243 = call i32 @strcmp(i8* %242, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.26, i64 0, i64 0))
%244 = icmp ne i32 %243, 0
br i1 %244, label %245, label %249
245: ; preds = %241
%246 = load i8*, i8** %6
%247 = call i32 @strcmp(i8* %246, i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.27, i64 0, i64 0))
%248 = icmp ne i32 %247, 0
br i1 %248, label %260, label %249
249: ; preds = %245, %241
%250 = load i32, i32* %7
%251 = load i32, i32* @UINT32_MAX
%252 = sdiv i32 %251, 1000000000
%253 = icmp sgt i32 %250, %252
br i1 %253, label %254, label %256
254: ; preds = %249
%255 = load i32, i32* @ERANGE
store i32 %255, i32* %3
br label %321
256: ; preds = %249
%257 = load i32, i32* %7
%258 = mul nsw i32 %257, 1000000000
%259 = load i32*, i32** %5
store i32 %258, i32* %259
store i32 0, i32* %3
br label %321
260: ; preds = %245
%261 = load i8*, i8** %6
%262 = call i32 @strcmp(i8* %261, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.28, i64 0, i64 0))
%263 = icmp ne i32 %262, 0
br i1 %263, label %264, label %268
264: ; preds = %260
%265 = load i8*, i8** %6
%266 = call i32 @strcmp(i8* %265, i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.29, i64 0, i64 0))
%267 = icmp ne i32 %266, 0
br i1 %267, label %279, label %268
268: ; preds = %264, %260
%269 = load i32, i32* %7
%270 = load i32, i32* @UINT32_MAX
%271 = sdiv i32 %270, 1024
%272 = icmp sgt i32 %269, %271
br i1 %272, label %273, label %275
273: ; preds = %268
%274 = load i32, i32* @ERANGE
store i32 %274, i32* %3
br label %321
275: ; preds = %268
%276 = load i32, i32* %7
%277 = mul nsw i32 %276, 1024
%278 = load i32*, i32** %5
store i32 %277, i32* %278
store i32 0, i32* %3
br label %321
279: ; preds = %264
%280 = load i8*, i8** %6
%281 = call i32 @strcmp(i8* %280, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.30, i64 0, i64 0))
%282 = icmp ne i32 %281, 0
br i1 %282, label %283, label %287
283: ; preds = %279
%284 = load i8*, i8** %6
%285 = call i32 @strcmp(i8* %284, i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.31, i64 0, i64 0))
%286 = icmp ne i32 %285, 0
br i1 %286, label %299, label %287
287: ; preds = %283, %279
%288 = load i32, i32* %7
%289 = load i32, i32* @UINT32_MAX
%290 = sdiv i32 %289, 1048576
%291 = icmp sgt i32 %288, %290
br i1 %291, label %292, label %294
292: ; preds = %287
%293 = load i32, i32* @ERANGE
store i32 %293, i32* %3
br label %321
294: ; preds = %287
%295 = load i32, i32* %7
%296 = mul nsw i32 %295, 1024
%297 = mul nsw i32 %296, 1024
%298 = load i32*, i32** %5
store i32 %297, i32* %298
store i32 0, i32* %3
br label %321
299: ; preds = %283
%300 = load i8*, i8** %6
%301 = call i32 @strcmp(i8* %300, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.32, i64 0, i64 0))
%302 = icmp ne i32 %301, 0
br i1 %302, label %303, label %307
303: ; preds = %299
%304 = load i8*, i8** %6
%305 = call i32 @strcmp(i8* %304, i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.33, i64 0, i64 0))
%306 = icmp ne i32 %305, 0
br i1 %306, label %320, label %307
307: ; preds = %303, %299
%308 = load i32, i32* %7
%309 = load i32, i32* @UINT32_MAX
%310 = sdiv i32 %309, 1073741824
%311 = icmp sgt i32 %308, %310
br i1 %311, label %312, label %314
312: ; preds = %307
%313 = load i32, i32* @ERANGE
store i32 %313, i32* %3
br label %321
314: ; preds = %307
%315 = load i32, i32* %7
%316 = mul nsw i32 %315, 1024
%317 = mul nsw i32 %316, 1024
%318 = mul nsw i32 %317, 1024
%319 = load i32*, i32** %5
store i32 %318, i32* %319
store i32 0, i32* %3
br label %321
320: ; preds = %303
store i32 -1, i32* %3
br label %321
321: ; preds = %320, %314, %312, %294, %292, %275, %273, %256, %254, %237, %235, %218, %216, %196, %194, %170, %168, %145, %143, %120, %118, %95, %93, %70, %68, %47, %45, %29, %15
%322 = load i32, i32* %3
ret i32 %322
}

LLVM IR (-O2):
@UINT32_MAX = global i32 0
@.str = [2 x i8] c"b\00"
@.str.1 = [4 x i8] c"bps\00"
@.str.2 = [2 x i8] c"B\00"
@.str.3 = [4 x i8] c"Bps\00"
@ERANGE = global i32 0
@.str.4 = [2 x i8] c"k\00"
@.str.5 = [3 x i8] c"kb\00"
@.str.6 = [5 x i8] c"kbps\00"
@.str.7 = [2 x i8] c"m\00"
@.str.8 = [3 x i8] c"mb\00"
@.str.9 = [5 x i8] c"mbps\00"
@.str.10 = [2 x i8] c"g\00"
@.str.11 = [3 x i8] c"gb\00"
@.str.12 = [5 x i8] c"gbps\00"
@.str.13 = [2 x i8] c"K\00"
@.str.14 = [3 x i8] c"Kb\00"
@.str.15 = [5 x i8] c"Kbps\00"
@.str.16 = [2 x i8] c"M\00"
@.str.17 = [3 x i8] c"Mb\00"
@.str.18 = [5 x i8] c"Mbps\00"
@.str.19 = [2 x i8] c"G\00"
@.str.20 = [3 x i8] c"Gb\00"
@.str.21 = [5 x i8] c"Gbps\00"
@.str.22 = [3 x i8] c"kB\00"
@.str.23 = [5 x i8] c"kBps\00"
@.str.24 = [3 x i8] c"mB\00"
@.str.25 = [5 x i8] c"mBps\00"
@.str.26 = [3 x i8] c"gB\00"
@.str.27 = [5 x i8] c"gBps\00"
@.str.28 = [3 x i8] c"KB\00"
@.str.29 = [5 x i8] c"KBps\00"
@.str.30 = [3 x i8] c"MB\00"
@.str.31 = [5 x i8] c"MBps\00"
@.str.32 = [3 x i8] c"GB\00"
@.str.33 = [5 x i8] c"GBps\00"
define i32 @parse_rate(i8* %0, i32* nocapture writeonly %1) {
%3 = alloca i8*
%4 = alloca i32
%5 = bitcast i8** %3 to i8*
%6 = bitcast i32* %4 to i8*
%7 = load i32, i32* @UINT32_MAX
%8 = shl nsw i32 %7, 3
%9 = call i32 @parse_uint64(i8* %0, i32* %4, i32 0, i32 %8, i8** %3)
%10 = icmp eq i32 %9, 0
br i1 %10, label %11, label %238
11: ; preds = %2
%12 = load i8*, i8** %3
%13 = load i8, i8* %12
%14 = icmp eq i8 %13, 0
br i1 %14, label %21, label %15
15: ; preds = %11
%16 = call i32 @strcmp(i8* dereferenceable(1) %12, i8* dereferenceable(2) getelementptr inbounds ([2 x i8], [2 x i8]* @.str, i64 0, i64 0))
%17 = icmp eq i32 %16, 0
br i1 %17, label %21, label %18
18: ; preds = %15
%19 = call i32 @strcmp(i8* dereferenceable(1) %12, i8* dereferenceable(4) getelementptr inbounds ([4 x i8], [4 x i8]* @.str.1, i64 0, i64 0))
%20 = icmp eq i32 %19, 0
br i1 %20, label %21, label %24
21: ; preds = %18, %15, %11
%22 = load i32, i32* %4
%23 = ashr i32 %22, 3
store i32 %23, i32* %1
br label %238
24: ; preds = %18
%25 = call i32 @strcmp(i8* dereferenceable(1) %12, i8* dereferenceable(2) getelementptr inbounds ([2 x i8], [2 x i8]* @.str.2, i64 0, i64 0))
%26 = icmp eq i32 %25, 0
br i1 %26, label %30, label %27
27: ; preds = %24
%28 = call i32 @strcmp(i8* dereferenceable(1) %12, i8* dereferenceable(4) getelementptr inbounds ([4 x i8], [4 x i8]* @.str.3, i64 0, i64 0))
%29 = icmp eq i32 %28, 0
br i1 %29, label %30, label %37
30: ; preds = %27, %24
%31 = load i32, i32* %4
%32 = load i32, i32* @UINT32_MAX
%33 = icmp sgt i32 %31, %32
br i1 %33, label %34, label %36
34: ; preds = %30
%35 = load i32, i32* @ERANGE
br label %238
36: ; preds = %30
store i32 %31, i32* %1
br label %238
37: ; preds = %27
%38 = call i32 @strcmp(i8* dereferenceable(1) %12, i8* dereferenceable(2) getelementptr inbounds ([2 x i8], [2 x i8]* @.str.4, i64 0, i64 0))
%39 = icmp eq i32 %38, 0
br i1 %39, label %46, label %40
40: ; preds = %37
%41 = call i32 @strcmp(i8* dereferenceable(1) %12, i8* dereferenceable(3) getelementptr inbounds ([3 x i8], [3 x i8]* @.str.5, i64 0, i64 0))
%42 = icmp eq i32 %41, 0
br i1 %42, label %46, label %43
43: ; preds = %40
%44 = call i32 @strcmp(i8* dereferenceable(1) %12, i8* dereferenceable(5) getelementptr inbounds ([5 x i8], [5 x i8]* @.str.6, i64 0, i64 0))
%45 = icmp eq i32 %44, 0
br i1 %45, label %46, label %56
46: ; preds = %43, %40, %37
%47 = load i32, i32* %4
%48 = load i32, i32* @UINT32_MAX
%49 = sdiv i32 %48, 125
%50 = icmp sgt i32 %47, %49
br i1 %50, label %51, label %53
51: ; preds = %46
%52 = load i32, i32* @ERANGE
br label %238
53: ; preds = %46
%54 = mul nsw i32 %47, 1000
%55 = ashr exact i32 %54, 3
store i32 %55, i32* %1
br label %238
56: ; preds = %43
%57 = call i32 @strcmp(i8* dereferenceable(1) %12, i8* dereferenceable(2) getelementptr inbounds ([2 x i8], [2 x i8]* @.str.7, i64 0, i64 0))
%58 = icmp eq i32 %57, 0
br i1 %58, label %65, label %59
59: ; preds = %56
%60 = call i32 @strcmp(i8* dereferenceable(1) %12, i8* dereferenceable(3) getelementptr inbounds ([3 x i8], [3 x i8]* @.str.8, i64 0, i64 0))
%61 = icmp eq i32 %60, 0
br i1 %61, label %65, label %62
62: ; preds = %59
%63 = call i32 @strcmp(i8* dereferenceable(1) %12, i8* dereferenceable(5) getelementptr inbounds ([5 x i8], [5 x i8]* @.str.9, i64 0, i64 0))
%64 = icmp eq i32 %63, 0
br i1 %64, label %65, label %75
65: ; preds = %62, %59, %56
%66 = load i32, i32* %4
%67 = load i32, i32* @UINT32_MAX
%68 = sdiv i32 %67, 125000
%69 = icmp sgt i32 %66, %68
br i1 %69, label %70, label %72
70: ; preds = %65
%71 = load i32, i32* @ERANGE
br label %238
72: ; preds = %65
%73 = mul nsw i32 %66, 1000000
%74 = ashr exact i32 %73, 3
store i32 %74, i32* %1
br label %238
75: ; preds = %62
%76 = call i32 @strcmp(i8* dereferenceable(1) %12, i8* dereferenceable(2) getelementptr inbounds ([2 x i8], [2 x i8]* @.str.10, i64 0, i64 0))
%77 = icmp eq i32 %76, 0
br i1 %77, label %84, label %78
78: ; preds = %75
%79 = call i32 @strcmp(i8* dereferenceable(1) %12, i8* dereferenceable(3) getelementptr inbounds ([3 x i8], [3 x i8]* @.str.11, i64 0, i64 0))
%80 = icmp eq i32 %79, 0
br i1 %80, label %84, label %81
81: ; preds = %78
%82 = call i32 @strcmp(i8* dereferenceable(1) %12, i8* dereferenceable(5) getelementptr inbounds ([5 x i8], [5 x i8]* @.str.12, i64 0, i64 0))
%83 = icmp eq i32 %82, 0
br i1 %83, label %84, label %94
84: ; preds = %81, %78, %75
%85 = load i32, i32* %4
%86 = load i32, i32* @UINT32_MAX
%87 = sdiv i32 %86, 125000000
%88 = icmp sgt i32 %85, %87
br i1 %88, label %89, label %91
89: ; preds = %84
%90 = load i32, i32* @ERANGE
br label %238
91: ; preds = %84
%92 = mul nsw i32 %85, 1000000000
%93 = ashr exact i32 %92, 3
store i32 %93, i32* %1
br label %238
94: ; preds = %81
%95 = call i32 @strcmp(i8* dereferenceable(1) %12, i8* dereferenceable(2) getelementptr inbounds ([2 x i8], [2 x i8]* @.str.13, i64 0, i64 0))
%96 = icmp eq i32 %95, 0
br i1 %96, label %103, label %97
97: ; preds = %94
%98 = call i32 @strcmp(i8* dereferenceable(1) %12, i8* dereferenceable(3) getelementptr inbounds ([3 x i8], [3 x i8]* @.str.14, i64 0, i64 0))
%99 = icmp eq i32 %98, 0
br i1 %99, label %103, label %100
100: ; preds = %97
%101 = call i32 @strcmp(i8* dereferenceable(1) %12, i8* dereferenceable(5) getelementptr inbounds ([5 x i8], [5 x i8]* @.str.15, i64 0, i64 0))
%102 = icmp eq i32 %101, 0
br i1 %102, label %103, label %112
103: ; preds = %100, %97, %94
%104 = load i32, i32* %4
%105 = load i32, i32* @UINT32_MAX
%106 = sdiv i32 %105, 128
%107 = icmp sgt i32 %104, %106
br i1 %107, label %108, label %110
108: ; preds = %103
%109 = load i32, i32* @ERANGE
br label %238
110: ; preds = %103
%111 = shl nsw i32 %104, 7
store i32 %111, i32* %1
br label %238
112: ; preds = %100
%113 = call i32 @strcmp(i8* dereferenceable(1) %12, i8* dereferenceable(2) getelementptr inbounds ([2 x i8], [2 x i8]* @.str.16, i64 0, i64 0))
%114 = icmp eq i32 %113, 0
br i1 %114, label %121, label %115
115: ; preds = %112
%116 = call i32 @strcmp(i8* dereferenceable(1) %12, i8* dereferenceable(3) getelementptr inbounds ([3 x i8], [3 x i8]* @.str.17, i64 0, i64 0))
%117 = icmp eq i32 %116, 0
br i1 %117, label %121, label %118
118: ; preds = %115
%119 = call i32 @strcmp(i8* dereferenceable(1) %12, i8* dereferenceable(5) getelementptr inbounds ([5 x i8], [5 x i8]* @.str.18, i64 0, i64 0))
%120 = icmp eq i32 %119, 0
br i1 %120, label %121, label %130
121: ; preds = %118, %115, %112
%122 = load i32, i32* %4
%123 = load i32, i32* @UINT32_MAX
%124 = sdiv i32 %123, 131072
%125 = icmp sgt i32 %122, %124
br i1 %125, label %126, label %128
126: ; preds = %121
%127 = load i32, i32* @ERANGE
br label %238
128: ; preds = %121
%129 = shl nsw i32 %122, 17
store i32 %129, i32* %1
br label %238
130: ; preds = %118
%131 = call i32 @strcmp(i8* dereferenceable(1) %12, i8* dereferenceable(2) getelementptr inbounds ([2 x i8], [2 x i8]* @.str.19, i64 0, i64 0))
%132 = icmp eq i32 %131, 0
br i1 %132, label %139, label %133
133: ; preds = %130
%134 = call i32 @strcmp(i8* dereferenceable(1) %12, i8* dereferenceable(3) getelementptr inbounds ([3 x i8], [3 x i8]* @.str.20, i64 0, i64 0))
%135 = icmp eq i32 %134, 0
br i1 %135, label %139, label %136
136: ; preds = %133
%137 = call i32 @strcmp(i8* dereferenceable(1) %12, i8* dereferenceable(5) getelementptr inbounds ([5 x i8], [5 x i8]* @.str.21, i64 0, i64 0))
%138 = icmp eq i32 %137, 0
br i1 %138, label %139, label %148
139: ; preds = %136, %133, %130
%140 = load i32, i32* %4
%141 = load i32, i32* @UINT32_MAX
%142 = sdiv i32 %141, 134217728
%143 = icmp sgt i32 %140, %142
br i1 %143, label %144, label %146
144: ; preds = %139
%145 = load i32, i32* @ERANGE
br label %238
146: ; preds = %139
%147 = shl nsw i32 %140, 27
store i32 %147, i32* %1
br label %238
148: ; preds = %136
%149 = call i32 @strcmp(i8* dereferenceable(1) %12, i8* dereferenceable(3) getelementptr inbounds ([3 x i8], [3 x i8]* @.str.22, i64 0, i64 0))
%150 = icmp eq i32 %149, 0
br i1 %150, label %154, label %151
151: ; preds = %148
%152 = call i32 @strcmp(i8* dereferenceable(1) %12, i8* dereferenceable(5) getelementptr inbounds ([5 x i8], [5 x i8]* @.str.23, i64 0, i64 0))
%153 = icmp eq i32 %152, 0
br i1 %153, label %154, label %163
154: ; preds = %151, %148
%155 = load i32, i32* %4
%156 = load i32, i32* @UINT32_MAX
%157 = sdiv i32 %156, 1000
%158 = icmp sgt i32 %155, %157
br i1 %158, label %159, label %161
159: ; preds = %154
%160 = load i32, i32* @ERANGE
br label %238
161: ; preds = %154
%162 = mul nsw i32 %155, 1000
store i32 %162, i32* %1
br label %238
163: ; preds = %151
%164 = call i32 @strcmp(i8* dereferenceable(1) %12, i8* dereferenceable(3) getelementptr inbounds ([3 x i8], [3 x i8]* @.str.24, i64 0, i64 0))
%165 = icmp eq i32 %164, 0
br i1 %165, label %169, label %166
166: ; preds = %163
%167 = call i32 @strcmp(i8* dereferenceable(1) %12, i8* dereferenceable(5) getelementptr inbounds ([5 x i8], [5 x i8]* @.str.25, i64 0, i64 0))
%168 = icmp eq i32 %167, 0
br i1 %168, label %169, label %178
169: ; preds = %166, %163
%170 = load i32, i32* %4
%171 = load i32, i32* @UINT32_MAX
%172 = sdiv i32 %171, 1000000
%173 = icmp sgt i32 %170, %172
br i1 %173, label %174, label %176
174: ; preds = %169
%175 = load i32, i32* @ERANGE
br label %238
176: ; preds = %169
%177 = mul nsw i32 %170, 1000000
store i32 %177, i32* %1
br label %238
178: ; preds = %166
%179 = call i32 @strcmp(i8* dereferenceable(1) %12, i8* dereferenceable(3) getelementptr inbounds ([3 x i8], [3 x i8]* @.str.26, i64 0, i64 0))
%180 = icmp eq i32 %179, 0
br i1 %180, label %184, label %181
181: ; preds = %178
%182 = call i32 @strcmp(i8* dereferenceable(1) %12, i8* dereferenceable(5) getelementptr inbounds ([5 x i8], [5 x i8]* @.str.27, i64 0, i64 0))
%183 = icmp eq i32 %182, 0
br i1 %183, label %184, label %193
184: ; preds = %181, %178
%185 = load i32, i32* %4
%186 = load i32, i32* @UINT32_MAX
%187 = sdiv i32 %186, 1000000000
%188 = icmp sgt i32 %185, %187
br i1 %188, label %189, label %191
189: ; preds = %184
%190 = load i32, i32* @ERANGE
br label %238
191: ; preds = %184
%192 = mul nsw i32 %185, 1000000000
store i32 %192, i32* %1
br label %238
193: ; preds = %181
%194 = call i32 @strcmp(i8* dereferenceable(1) %12, i8* dereferenceable(3) getelementptr inbounds ([3 x i8], [3 x i8]* @.str.28, i64 0, i64 0))
%195 = icmp eq i32 %194, 0
br i1 %195, label %199, label %196
196: ; preds = %193
%197 = call i32 @strcmp(i8* dereferenceable(1) %12, i8* dereferenceable(5) getelementptr inbounds ([5 x i8], [5 x i8]* @.str.29, i64 0, i64 0))
%198 = icmp eq i32 %197, 0
br i1 %198, label %199, label %208
199: ; preds = %196, %193
%200 = load i32, i32* %4
%201 = load i32, i32* @UINT32_MAX
%202 = sdiv i32 %201, 1024
%203 = icmp sgt i32 %200, %202
br i1 %203, label %204, label %206
204: ; preds = %199
%205 = load i32, i32* @ERANGE
br label %238
206: ; preds = %199
%207 = shl nsw i32 %200, 10
store i32 %207, i32* %1
br label %238
208: ; preds = %196
%209 = call i32 @strcmp(i8* dereferenceable(1) %12, i8* dereferenceable(3) getelementptr inbounds ([3 x i8], [3 x i8]* @.str.30, i64 0, i64 0))
%210 = icmp eq i32 %209, 0
br i1 %210, label %214, label %211
211: ; preds = %208
%212 = call i32 @strcmp(i8* dereferenceable(1) %12, i8* dereferenceable(5) getelementptr inbounds ([5 x i8], [5 x i8]* @.str.31, i64 0, i64 0))
%213 = icmp eq i32 %212, 0
br i1 %213, label %214, label %223
214: ; preds = %211, %208
%215 = load i32, i32* %4
%216 = load i32, i32* @UINT32_MAX
%217 = sdiv i32 %216, 1048576
%218 = icmp sgt i32 %215, %217
br i1 %218, label %219, label %221
219: ; preds = %214
%220 = load i32, i32* @ERANGE
br label %238
221: ; preds = %214
%222 = shl nsw i32 %215, 20
store i32 %222, i32* %1
br label %238
223: ; preds = %211
%224 = call i32 @strcmp(i8* dereferenceable(1) %12, i8* dereferenceable(3) getelementptr inbounds ([3 x i8], [3 x i8]* @.str.32, i64 0, i64 0))
%225 = icmp eq i32 %224, 0
br i1 %225, label %229, label %226
226: ; preds = %223
%227 = call i32 @strcmp(i8* dereferenceable(1) %12, i8* dereferenceable(5) getelementptr inbounds ([5 x i8], [5 x i8]* @.str.33, i64 0, i64 0))
%228 = icmp eq i32 %227, 0
br i1 %228, label %229, label %238
229: ; preds = %226, %223
%230 = load i32, i32* %4
%231 = load i32, i32* @UINT32_MAX
%232 = sdiv i32 %231, 1073741824
%233 = icmp sgt i32 %230, %232
br i1 %233, label %234, label %236
234: ; preds = %229
%235 = load i32, i32* @ERANGE
br label %238
236: ; preds = %229
%237 = shl nsw i32 %230, 30
store i32 %237, i32* %1
br label %238
238: ; preds = %226, %2, %236, %234, %221, %219, %206, %204, %191, %189, %176, %174, %161, %159, %146, %144, %128, %126, %110, %108, %91, %89, %72, %70, %53, %51, %36, %34, %21
%239 = phi i32 [ %235, %234 ], [ 0, %236 ], [ %220, %219 ], [ 0, %221 ], [ %205, %204 ], [ 0, %206 ], [ %190, %189 ], [ 0, %191 ], [ %175, %174 ], [ 0, %176 ], [ %160, %159 ], [ 0, %161 ], [ %145, %144 ], [ 0, %146 ], [ %127, %126 ], [ 0, %128 ], [ %109, %108 ], [ 0, %110 ], [ %90, %89 ], [ 0, %91 ], [ %71, %70 ], [ 0, %72 ], [ %52, %51 ], [ 0, %53 ], [ %35, %34 ], [ 0, %36 ], [ 0, %21 ], [ %9, %2 ], [ -1, %226 ]
ret i32 %239
}