#define NULL ((void *)0)
typedef unsigned long size_t; // Customize by platform.
typedef long intptr_t;
typedef unsigned long uintptr_t;
typedef long scalar_t__; // Either arithmetic or pointer type.
/* By default, we understand bool (as a convenience). */
typedef int bool;
#define false 0
#define true 1

/* Forward declarations */

/* Type definitions */

/* Variables and functions */
unsigned char *code_table_4_9_location(unsigned char **);
int /*<<< orphan*/ int4(unsigned char *);
double scaled2flt(int, int /*<<< orphan*/);
int /*<<< orphan*/ sprintf(char *, char *, unsigned char, ...);
int /*<<< orphan*/ strlen(char *);
int f_prob(int mode, unsigned char **sec, float *data, unsigned int ndata,
           char *inv_out, void **local) {
  unsigned char *p;
  if (mode == -1) {
    return 0;
  } else if (mode >= 0) {
    p = code_table_4_9_location(sec);
    if (p == NULL)
      return 0;
    sprintf(inv_out, "probtype=%d ", *p);
    switch (*p) {
    case 0:
      sprintf(
          inv_out, "prob <%g",
          scaled2flt(((p[1] & 0x80) ? -(int)(p[1] & 127) : (int)(p[1] & 127)),
                     int4(p + 2)));
      break;
    case 1:
      sprintf(
          inv_out, "prob >%g",
          scaled2flt(((p[6] & 0x80) ? -(int)(p[6] & 127) : (int)(p[6] & 127)),
                     int4(p + 7)));
      break;
    case 2:
      if (scaled2flt(((p[1] & 0x80) ? -(int)(p[1] & 127) : (int)(p[1] & 127)),
                     int4(p + 2)) ==
          scaled2flt(((p[6] & 0x80) ? -(int)(p[6] & 127) : (int)(p[6] & 127)),
                     int4(p + 7))) {
        sprintf(
            inv_out, "prob =%g",
            scaled2flt(((p[1] & 0x80) ? -(int)(p[1] & 127) : (int)(p[1] & 127)),
                       int4(p + 2)));
        break;
      }
      sprintf(
          inv_out, "prob >=%g <%g",
          scaled2flt(((p[1] & 0x80) ? -(int)(p[1] & 127) : (int)(p[1] & 127)),
                     int4(p + 2)),
          scaled2flt(((p[6] & 0x80) ? -(int)(p[6] & 127) : (int)(p[6] & 127)),
                     int4(p + 7)));
      break;
    case 3:
      sprintf(
          inv_out, "prob >%g",
          scaled2flt(((p[1] & 0x80) ? -(int)(p[1] & 127) : (int)(p[1] & 127)),
                     int4(p + 2)));
      break;
    case 4:
      sprintf(
          inv_out, "prob <%g",
          scaled2flt(((p[6] & 0x80) ? -(int)(p[6] & 127) : (int)(p[6] & 127)),
                     int4(p + 7)));
      break;
    }
    if (mode == 99) {
      inv_out += strlen(inv_out);
      sprintf(inv_out,
              " LOWER LIMIT scale=%d, val= 0x%.2x 0x%.2x 0x%.2x 0x%.2x",
              ((p[1] & 0x80) ? -(int)(p[1] & 127) : (int)(p[1] & 127)), p[2],
              p[3], p[4], p[5]);
    }
    inv_out += strlen(inv_out);
    sprintf(inv_out, ":prob fcst %u/%u", p[-2], p[-1]);
  }
  return 0;
}


x86 assembly (clang, -O0):
<f_prob>:
push   %rbp
mov    %rsp,%rbp
sub    $0xf0,%rsp
mov    %edi,-0x8(%rbp)
mov    %rsi,-0x10(%rbp)
mov    %rdx,-0x18(%rbp)
mov    %ecx,-0x1c(%rbp)
mov    %r8,-0x28(%rbp)
mov    %r9,-0x30(%rbp)
cmpl   $0xffffffff,-0x8(%rbp)
jne    1187 <f_prob+0x37>
movl   $0x0,-0x4(%rbp)
jmp    1777 <f_prob+0x627>
cmpl   $0x0,-0x8(%rbp)
jl     176b <f_prob+0x61b>
mov    -0x10(%rbp),%rdi
call   1050 <code_table_4_9_location@plt>
mov    %rax,-0x38(%rbp)
cmpq   $0x0,-0x38(%rbp)
jne    11b5 <f_prob+0x65>
movl   $0x0,-0x4(%rbp)
jmp    1777 <f_prob+0x627>
mov    -0x28(%rbp),%rdi
mov    -0x38(%rbp),%rax
movzbl (%rax),%edx
lea    0xe4d(%rip),%rsi
xor    %eax,%eax
call   1070 <sprintf@plt>
mov    -0x38(%rbp),%rax
movzbl (%rax),%eax
mov    %rax,-0x40(%rbp)
sub    $0x4,%rax
ja     167a <f_prob+0x52a>
mov    -0x40(%rbp),%rax
lea    0xe12(%rip),%rcx
movslq (%rcx,%rax,4),%rax
add    %rcx,%rax
jmp    *%rax
mov    -0x28(%rbp),%rax
mov    %rax,-0x48(%rbp)
mov    -0x38(%rbp),%rax
movzbl 0x1(%rax),%eax
and    $0x80,%eax
cmp    $0x0,%eax
je     122c <f_prob+0xdc>
mov    -0x38(%rbp),%rax
movzbl 0x1(%rax),%ecx
and    $0x7f,%ecx
xor    %eax,%eax
sub    %ecx,%eax
mov    %eax,-0x4c(%rbp)
jmp    123a <f_prob+0xea>
mov    -0x38(%rbp),%rax
movzbl 0x1(%rax),%eax
and    $0x7f,%eax
mov    %eax,-0x4c(%rbp)
mov    -0x4c(%rbp),%eax
mov    %eax,-0x50(%rbp)
mov    -0x38(%rbp),%rdi
add    $0x2,%rdi
call   1030 <int4@plt>
mov    -0x50(%rbp),%edi
mov    %eax,%esi
call   1060 <scaled2flt@plt>
mov    -0x48(%rbp),%rdi
cvttsd2si %xmm0,%eax
lea    0xdbb(%rip),%rsi
movzbl %al,%edx
mov    $0x0,%al
call   1070 <sprintf@plt>
jmp    167a <f_prob+0x52a>
mov    -0x28(%rbp),%rax
mov    %rax,-0x58(%rbp)
mov    -0x38(%rbp),%rax
movzbl 0x6(%rax),%eax
and    $0x80,%eax
cmp    $0x0,%eax
je     12aa <f_prob+0x15a>
mov    -0x38(%rbp),%rax
movzbl 0x6(%rax),%ecx
and    $0x7f,%ecx
xor    %eax,%eax
sub    %ecx,%eax
mov    %eax,-0x5c(%rbp)
jmp    12b8 <f_prob+0x168>
mov    -0x38(%rbp),%rax
movzbl 0x6(%rax),%eax
and    $0x7f,%eax
mov    %eax,-0x5c(%rbp)
mov    -0x5c(%rbp),%eax
mov    %eax,-0x60(%rbp)
mov    -0x38(%rbp),%rdi
add    $0x7,%rdi
call   1030 <int4@plt>
mov    -0x60(%rbp),%edi
mov    %eax,%esi
call   1060 <scaled2flt@plt>
mov    -0x58(%rbp),%rdi
cvttsd2si %xmm0,%eax
lea    0xd46(%rip),%rsi
movzbl %al,%edx
mov    $0x0,%al
call   1070 <sprintf@plt>
jmp    167a <f_prob+0x52a>
mov    -0x38(%rbp),%rax
movzbl 0x1(%rax),%eax
and    $0x80,%eax
cmp    $0x0,%eax
je     1320 <f_prob+0x1d0>
mov    -0x38(%rbp),%rax
movzbl 0x1(%rax),%ecx
and    $0x7f,%ecx
xor    %eax,%eax
sub    %ecx,%eax
mov    %eax,-0x64(%rbp)
jmp    132e <f_prob+0x1de>
mov    -0x38(%rbp),%rax
movzbl 0x1(%rax),%eax
and    $0x7f,%eax
mov    %eax,-0x64(%rbp)
mov    -0x64(%rbp),%eax
mov    %eax,-0x74(%rbp)
mov    -0x38(%rbp),%rdi
add    $0x2,%rdi
call   1030 <int4@plt>
mov    -0x74(%rbp),%edi
mov    %eax,%esi
call   1060 <scaled2flt@plt>
movsd  %xmm0,-0x70(%rbp)
mov    -0x38(%rbp),%rax
movzbl 0x6(%rax),%eax
and    $0x80,%eax
cmp    $0x0,%eax
je     137d <f_prob+0x22d>
mov    -0x38(%rbp),%rax
movzbl 0x6(%rax),%ecx
and    $0x7f,%ecx
xor    %eax,%eax
sub    %ecx,%eax
mov    %eax,-0x78(%rbp)
jmp    138b <f_prob+0x23b>
mov    -0x38(%rbp),%rax
movzbl 0x6(%rax),%eax
and    $0x7f,%eax
mov    %eax,-0x78(%rbp)
mov    -0x78(%rbp),%eax
mov    %eax,-0x7c(%rbp)
mov    -0x38(%rbp),%rdi
add    $0x7,%rdi
call   1030 <int4@plt>
mov    -0x7c(%rbp),%edi
mov    %eax,%esi
call   1060 <scaled2flt@plt>
movaps %xmm0,%xmm1
movsd  -0x70(%rbp),%xmm0
ucomisd %xmm1,%xmm0
jne    1453 <f_prob+0x303>
jp     1453 <f_prob+0x303>
mov    -0x28(%rbp),%rax
mov    %rax,-0x88(%rbp)
mov    -0x38(%rbp),%rax
movzbl 0x1(%rax),%eax
and    $0x80,%eax
cmp    $0x0,%eax
je     13fb <f_prob+0x2ab>
mov    -0x38(%rbp),%rax
movzbl 0x1(%rax),%ecx
and    $0x7f,%ecx
xor    %eax,%eax
sub    %ecx,%eax
mov    %eax,-0x8c(%rbp)
jmp    140c <f_prob+0x2bc>
mov    -0x38(%rbp),%rax
movzbl 0x1(%rax),%eax
and    $0x7f,%eax
mov    %eax,-0x8c(%rbp)
mov    -0x8c(%rbp),%eax
mov    %eax,-0x90(%rbp)
mov    -0x38(%rbp),%rdi
add    $0x2,%rdi
call   1030 <int4@plt>
mov    -0x90(%rbp),%edi
mov    %eax,%esi
call   1060 <scaled2flt@plt>
mov    -0x88(%rbp),%rdi
cvttsd2si %xmm0,%eax
lea    0xbef(%rip),%rsi
movzbl %al,%edx
mov    $0x0,%al
call   1070 <sprintf@plt>
jmp    167a <f_prob+0x52a>
mov    -0x28(%rbp),%rax
mov    %rax,-0x98(%rbp)
mov    -0x38(%rbp),%rax
movzbl 0x1(%rax),%eax
and    $0x80,%eax
cmp    $0x0,%eax
je     148e <f_prob+0x33e>
mov    -0x38(%rbp),%rax
movzbl 0x1(%rax),%ecx
and    $0x7f,%ecx
xor    %eax,%eax
sub    %ecx,%eax
mov    %eax,-0x9c(%rbp)
jmp    149f <f_prob+0x34f>
mov    -0x38(%rbp),%rax
movzbl 0x1(%rax),%eax
and    $0x7f,%eax
mov    %eax,-0x9c(%rbp)
mov    -0x9c(%rbp),%eax
mov    %eax,-0xa4(%rbp)
mov    -0x38(%rbp),%rdi
add    $0x2,%rdi
call   1030 <int4@plt>
mov    -0xa4(%rbp),%edi
mov    %eax,%esi
call   1060 <scaled2flt@plt>
cvttsd2si %xmm0,%eax
mov    %al,-0x9d(%rbp)
mov    -0x38(%rbp),%rax
movzbl 0x6(%rax),%eax
and    $0x80,%eax
cmp    $0x0,%eax
je     14ff <f_prob+0x3af>
mov    -0x38(%rbp),%rax
movzbl 0x6(%rax),%ecx
and    $0x7f,%ecx
xor    %eax,%eax
sub    %ecx,%eax
mov    %eax,-0xa8(%rbp)
jmp    1510 <f_prob+0x3c0>
mov    -0x38(%rbp),%rax
movzbl 0x6(%rax),%eax
and    $0x7f,%eax
mov    %eax,-0xa8(%rbp)
mov    -0xa8(%rbp),%eax
mov    %eax,-0xac(%rbp)
mov    -0x38(%rbp),%rdi
add    $0x7,%rdi
call   1030 <int4@plt>
mov    -0xac(%rbp),%edi
mov    %eax,%esi
call   1060 <scaled2flt@plt>
mov    -0x98(%rbp),%rdi
mov    -0x9d(%rbp),%al
lea    0xaf2(%rip),%rsi
movzbl %al,%edx
mov    $0x1,%al
call   1070 <sprintf@plt>
jmp    167a <f_prob+0x52a>
mov    -0x28(%rbp),%rax
mov    %rax,-0xb8(%rbp)
mov    -0x38(%rbp),%rax
movzbl 0x1(%rax),%eax
and    $0x80,%eax
cmp    $0x0,%eax
je     1594 <f_prob+0x444>
mov    -0x38(%rbp),%rax
movzbl 0x1(%rax),%ecx
and    $0x7f,%ecx
xor    %eax,%eax
sub    %ecx,%eax
mov    %eax,-0xbc(%rbp)
jmp    15a5 <f_prob+0x455>
mov    -0x38(%rbp),%rax
movzbl 0x1(%rax),%eax
and    $0x7f,%eax
mov    %eax,-0xbc(%rbp)
mov    -0xbc(%rbp),%eax
mov    %eax,-0xc0(%rbp)
mov    -0x38(%rbp),%rdi
add    $0x2,%rdi
call   1030 <int4@plt>
mov    -0xc0(%rbp),%edi
mov    %eax,%esi
call   1060 <scaled2flt@plt>
mov    -0xb8(%rbp),%rdi
cvttsd2si %xmm0,%eax
lea    0xa4d(%rip),%rsi
movzbl %al,%edx
mov    $0x0,%al
call   1070 <sprintf@plt>
jmp    167a <f_prob+0x52a>
mov    -0x28(%rbp),%rax
mov    %rax,-0xc8(%rbp)
mov    -0x38(%rbp),%rax
movzbl 0x6(%rax),%eax
and    $0x80,%eax
cmp    $0x0,%eax
je     1627 <f_prob+0x4d7>
mov    -0x38(%rbp),%rax
movzbl 0x6(%rax),%ecx
and    $0x7f,%ecx
xor    %eax,%eax
sub    %ecx,%eax
mov    %eax,-0xcc(%rbp)
jmp    1638 <f_prob+0x4e8>
mov    -0x38(%rbp),%rax
movzbl 0x6(%rax),%eax
and    $0x7f,%eax
mov    %eax,-0xcc(%rbp)
mov    -0xcc(%rbp),%eax
mov    %eax,-0xd0(%rbp)
mov    -0x38(%rbp),%rdi
add    $0x7,%rdi
call   1030 <int4@plt>
mov    -0xd0(%rbp),%edi
mov    %eax,%esi
call   1060 <scaled2flt@plt>
mov    -0xc8(%rbp),%rdi
cvttsd2si %xmm0,%eax
lea    0x9b1(%rip),%rsi
movzbl %al,%edx
mov    $0x0,%al
call   1070 <sprintf@plt>
cmpl   $0x63,-0x8(%rbp)
jne    172e <f_prob+0x5de>
mov    -0x28(%rbp),%rdi
call   1040 <strlen@plt>
mov    %eax,%ecx
mov    -0x28(%rbp),%rax
movslq %ecx,%rcx
add    %rcx,%rax
mov    %rax,-0x28(%rbp)
mov    -0x28(%rbp),%rax
mov    %rax,-0xd8(%rbp)
mov    -0x38(%rbp),%rax
movzbl 0x1(%rax),%eax
and    $0x80,%eax
cmp    $0x0,%eax
je     16d8 <f_prob+0x588>
mov    -0x38(%rbp),%rax
movzbl 0x1(%rax),%ecx
and    $0x7f,%ecx
xor    %eax,%eax
sub    %ecx,%eax
mov    %eax,-0xdc(%rbp)
jmp    16e9 <f_prob+0x599>
mov    -0x38(%rbp),%rax
movzbl 0x1(%rax),%eax
and    $0x7f,%eax
mov    %eax,-0xdc(%rbp)
mov    -0xd8(%rbp),%rdi
mov    -0xdc(%rbp),%eax
mov    %al,%dl
mov    -0x38(%rbp),%rax
movzbl 0x2(%rax),%ecx
mov    -0x38(%rbp),%rax
movzbl 0x3(%rax),%r8d
mov    -0x38(%rbp),%rax
movzbl 0x4(%rax),%r9d
mov    -0x38(%rbp),%rax
movzbl 0x5(%rax),%eax
lea    0x929(%rip),%rsi
movzbl %dl,%edx
mov    %eax,(%rsp)
mov    $0x0,%al
call   1070 <sprintf@plt>
mov    -0x28(%rbp),%rdi
call   1040 <strlen@plt>
mov    %eax,%ecx
mov    -0x28(%rbp),%rax
movslq %ecx,%rcx
add    %rcx,%rax
mov    %rax,-0x28(%rbp)
mov    -0x28(%rbp),%rdi
mov    -0x38(%rbp),%rax
mov    -0x2(%rax),%al
mov    -0x38(%rbp),%rcx
movzbl -0x1(%rcx),%ecx
lea    0x921(%rip),%rsi
movzbl %al,%edx
mov    $0x0,%al
call   1070 <sprintf@plt>
jmp    1770 <f_prob+0x620>
movl   $0x0,-0x4(%rbp)
mov    -0x4(%rbp),%eax
add    $0xf0,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<f_prob>:
push   %rbp
push   %r15
push   %r14
push   %r13
push   %r12
push   %rbx
sub    $0x18,%rsp
test   %edi,%edi
js     1382 <f_prob+0x232>
mov    %r8,%r14
mov    %edi,%r13d
mov    %rsi,%rdi
call   1050 <code_table_4_9_location@plt>
test   %rax,%rax
je     1382 <f_prob+0x232>
mov    %rax,%rbx
movzbl (%rax),%edx
lea    0xe8a(%rip),%rsi
mov    %r14,%rdi
xor    %eax,%eax
call   1070 <sprintf@plt>
movzbl (%rbx),%eax
cmp    $0x4,%rax
ja     130d <f_prob+0x1bd>
lea    0xe58(%rip),%rcx
movslq (%rcx,%rax,4),%rax
add    %rcx,%rax
jmp    *%rax
movzbl 0x1(%rbx),%eax
mov    %eax,%ecx
and    $0x7f,%ecx
mov    %ecx,%ebp
neg    %ebp
test   $0x80,%al
cmove  %ecx,%ebp
mov    %rbx,%rdi
add    $0x2,%rdi
jmp    12e7 <f_prob+0x197>
movzbl 0x6(%rbx),%eax
mov    %eax,%ecx
and    $0x7f,%ecx
mov    %ecx,%ebp
neg    %ebp
test   $0x80,%al
cmove  %ecx,%ebp
mov    %rbx,%rdi
add    $0x7,%rdi
jmp    12b0 <f_prob+0x160>
movzbl 0x1(%rbx),%eax
mov    %eax,%ecx
and    $0x7f,%ecx
mov    %ecx,%ebp
neg    %ebp
test   $0x80,%al
cmove  %ecx,%ebp
lea    0x2(%rbx),%r12
mov    %r12,%rdi
call   1030 <int4@plt>
mov    %ebp,%edi
mov    %eax,%esi
call   1060 <scaled2flt@plt>
movsd  %xmm0,0x10(%rsp)
movzbl 0x6(%rbx),%eax
mov    %eax,%ecx
and    $0x7f,%ecx
mov    %ecx,%ebp
neg    %ebp
test   $0x80,%al
cmove  %ecx,%ebp
mov    %rbx,%r15
add    $0x7,%r15
mov    %r15,%rdi
call   1030 <int4@plt>
mov    %ebp,%edi
mov    %eax,%esi
call   1060 <scaled2flt@plt>
movsd  %xmm0,0x8(%rsp)
movzbl 0x1(%rbx),%eax
mov    %eax,%ecx
and    $0x7f,%ecx
mov    %ecx,%ebp
neg    %ebp
test   $0x80,%al
cmove  %ecx,%ebp
mov    %r12,%rdi
call   1030 <int4@plt>
mov    %ebp,%edi
mov    %eax,%esi
call   1060 <scaled2flt@plt>
movsd  0x10(%rsp),%xmm1
ucomisd 0x8(%rsp),%xmm1
cvttsd2si %xmm0,%r12d
jne    1393 <f_prob+0x243>
jp     1393 <f_prob+0x243>
movzbl %r12b,%edx
lea    0xd9e(%rip),%rsi
jmp    1303 <f_prob+0x1b3>
movzbl 0x1(%rbx),%eax
mov    %eax,%ecx
and    $0x7f,%ecx
mov    %ecx,%ebp
neg    %ebp
test   $0x80,%al
cmove  %ecx,%ebp
mov    %rbx,%rdi
add    $0x2,%rdi
call   1030 <int4@plt>
mov    %ebp,%edi
mov    %eax,%esi
call   1060 <scaled2flt@plt>
cvttsd2si %xmm0,%eax
movzbl %al,%edx
lea    0xd5e(%rip),%rsi
jmp    1303 <f_prob+0x1b3>
movzbl 0x6(%rbx),%eax
mov    %eax,%ecx
and    $0x7f,%ecx
mov    %ecx,%ebp
neg    %ebp
test   $0x80,%al
cmove  %ecx,%ebp
mov    %rbx,%rdi
add    $0x7,%rdi
call   1030 <int4@plt>
mov    %ebp,%edi
mov    %eax,%esi
call   1060 <scaled2flt@plt>
cvttsd2si %xmm0,%eax
movzbl %al,%edx
lea    0xd1e(%rip),%rsi
mov    %r14,%rdi
xor    %eax,%eax
call   1070 <sprintf@plt>
cmp    $0x63,%r13d
jne    135e <f_prob+0x20e>
mov    %r14,%rdi
call   1040 <strlen@plt>
cltq
add    %rax,%r14
mov    0x1(%rbx),%al
mov    %eax,%ecx
and    $0x7f,%cl
movzbl %cl,%edx
neg    %cl
test   %al,%al
movzbl %cl,%eax
cmovns %edx,%eax
movzbl 0x2(%rbx),%ecx
movzbl 0x3(%rbx),%r8d
movzbl 0x4(%rbx),%r9d
movzbl 0x5(%rbx),%edx
mov    %edx,(%rsp)
movzbl %al,%edx
lea    0xcf6(%rip),%rsi
mov    %r14,%rdi
xor    %eax,%eax
call   1070 <sprintf@plt>
mov    %r14,%rdi
call   1040 <strlen@plt>
movslq %eax,%rdi
add    %r14,%rdi
movzbl -0x2(%rbx),%edx
movzbl -0x1(%rbx),%ecx
lea    0xd07(%rip),%rsi
xor    %eax,%eax
call   1070 <sprintf@plt>
xor    %eax,%eax
add    $0x18,%rsp
pop    %rbx
pop    %r12
pop    %r13
pop    %r14
pop    %r15
pop    %rbp
ret
movzbl 0x6(%rbx),%eax
mov    %eax,%ecx
and    $0x7f,%ecx
mov    %ecx,%ebp
neg    %ebp
test   $0x80,%al
cmove  %ecx,%ebp
mov    %r15,%rdi
call   1030 <int4@plt>
mov    %ebp,%edi
mov    %eax,%esi
call   1060 <scaled2flt@plt>
movzbl %r12b,%edx
lea    0xc7b(%rip),%rsi
mov    %r14,%rdi
mov    $0x1,%al
call   1070 <sprintf@plt>
cmp    $0x63,%r13d
je     1313 <f_prob+0x1c3>
jmp    135e <f_prob+0x20e>

LLVM IR (-O0):
@.str = [13 x i8] c"probtype=%d \00"
@.str.1 = [9 x i8] c"prob <%g\00"
@.str.2 = [9 x i8] c"prob >%g\00"
@.str.3 = [9 x i8] c"prob =%g\00"
@.str.4 = [14 x i8] c"prob >=%g <%g\00"
@.str.5 = [56 x i8] c" LOWER LIMIT scale=%d, val= 0x%.2x 0x%.2x 0x%.2x 0x%.2x\00"
@.str.6 = [17 x i8] c":prob fcst %u/%u\00"
define i32 @f_prob(i32 %0, i8** %1, float* %2, i32 %3, i8* %4, i8** %5) {
%7 = alloca i32
%8 = alloca i32
%9 = alloca i8**
%10 = alloca float*
%11 = alloca i32
%12 = alloca i8*
%13 = alloca i8**
%14 = alloca i8*
store i32 %0, i32* %8
store i8** %1, i8*** %9
store float* %2, float** %10
store i32 %3, i32* %11
store i8* %4, i8** %12
store i8** %5, i8*** %13
%15 = load i32, i32* %8
%16 = icmp eq i32 %15, -1
br i1 %16, label %17, label %18
17: ; preds = %6
store i32 0, i32* %7
br label %352
18: ; preds = %6
%19 = load i32, i32* %8
%20 = icmp sge i32 %19, 0
br i1 %20, label %21, label %350
21: ; preds = %18
%22 = load i8**, i8*** %9
%23 = call i8* @code_table_4_9_location(i8** %22)
store i8* %23, i8** %14
%24 = load i8*, i8** %14
%25 = icmp eq i8* %24, null
br i1 %25, label %26, label %27
26: ; preds = %21
store i32 0, i32* %7
br label %352
27: ; preds = %21
%28 = load i8*, i8** %12
%29 = load i8*, i8** %14
%30 = load i8, i8* %29
%31 = call i32 (i8*, i8*, i8, ...) @sprintf(i8* %28, i8* getelementptr inbounds ([13 x i8], [13 x i8]* @.str, i64 0, i64 0), i8 zeroext %30)
%32 = load i8*, i8** %14
%33 = load i8, i8* %32
%34 = zext i8 %33 to i32
switch i32 %34, label %286 [
i32 0, label %35
i32 1, label %64
i32 2, label %93
i32 3, label %228
i32 4, label %257
]
35: ; preds = %27
%36 = load i8*, i8** %12
%37 = load i8*, i8** %14
%38 = getelementptr inbounds i8, i8* %37, i64 1
%39 = load i8, i8* %38
%40 = zext i8 %39 to i32
%41 = and i32 %40, 128
%42 = icmp ne i32 %41, 0
br i1 %42, label %43, label %50
43: ; preds = %35
%44 = load i8*, i8** %14
%45 = getelementptr inbounds i8, i8* %44, i64 1
%46 = load i8, i8* %45
%47 = zext i8 %46 to i32
%48 = and i32 %47, 127
%49 = sub nsw i32 0, %48
br label %56
50: ; preds = %35
%51 = load i8*, i8** %14
%52 = getelementptr inbounds i8, i8* %51, i64 1
%53 = load i8, i8* %52
%54 = zext i8 %53 to i32
%55 = and i32 %54, 127
br label %56
56: ; preds = %50, %43
%57 = phi i32 [ %49, %43 ], [ %55, %50 ]
%58 = load i8*, i8** %14
%59 = getelementptr inbounds i8, i8* %58, i64 2
%60 = call i32 @int4(i8* %59)
%61 = call double @scaled2flt(i32 %57, i32 %60)
%62 = fptoui double %61 to i8
%63 = call i32 (i8*, i8*, i8, ...) @sprintf(i8* %36, i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str.1, i64 0, i64 0), i8 zeroext %62)
br label %286
64: ; preds = %27
%65 = load i8*, i8** %12
%66 = load i8*, i8** %14
%67 = getelementptr inbounds i8, i8* %66, i64 6
%68 = load i8, i8* %67
%69 = zext i8 %68 to i32
%70 = and i32 %69, 128
%71 = icmp ne i32 %70, 0
br i1 %71, label %72, label %79
72: ; preds = %64
%73 = load i8*, i8** %14
%74 = getelementptr inbounds i8, i8* %73, i64 6
%75 = load i8, i8* %74
%76 = zext i8 %75 to i32
%77 = and i32 %76, 127
%78 = sub nsw i32 0, %77
br label %85
79: ; preds = %64
%80 = load i8*, i8** %14
%81 = getelementptr inbounds i8, i8* %80, i64 6
%82 = load i8, i8* %81
%83 = zext i8 %82 to i32
%84 = and i32 %83, 127
br label %85
85: ; preds = %79, %72
%86 = phi i32 [ %78, %72 ], [ %84, %79 ]
%87 = load i8*, i8** %14
%88 = getelementptr inbounds i8, i8* %87, i64 7
%89 = call i32 @int4(i8* %88)
%90 = call double @scaled2flt(i32 %86, i32 %89)
%91 = fptoui double %90 to i8
%92 = call i32 (i8*, i8*, i8, ...) @sprintf(i8* %65, i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str.2, i64 0, i64 0), i8 zeroext %91)
br label %286
93: ; preds = %27
%94 = load i8*, i8** %14
%95 = getelementptr inbounds i8, i8* %94, i64 1
%96 = load i8, i8* %95
%97 = zext i8 %96 to i32
%98 = and i32 %97, 128
%99 = icmp ne i32 %98, 0
br i1 %99, label %100, label %107
100: ; preds = %93
%101 = load i8*, i8** %14
%102 = getelementptr inbounds i8, i8* %101, i64 1
%103 = load i8, i8* %102
%104 = zext i8 %103 to i32
%105 = and i32 %104, 127
%106 = sub nsw i32 0, %105
br label %113
107: ; preds = %93
%108 = load i8*, i8** %14
%109 = getelementptr inbounds i8, i8* %108, i64 1
%110 = load i8, i8* %109
%111 = zext i8 %110 to i32
%112 = and i32 %111, 127
br label %113
113: ; preds = %107, %100
%114 = phi i32 [ %106, %100 ], [ %112, %107 ]
%115 = load i8*, i8** %14
%116 = getelementptr inbounds i8, i8* %115, i64 2
%117 = call i32 @int4(i8* %116)
%118 = call double @scaled2flt(i32 %114, i32 %117)
%119 = load i8*, i8** %14
%120 = getelementptr inbounds i8, i8* %119, i64 6
%121 = load i8, i8* %120
%122 = zext i8 %121 to i32
%123 = and i32 %122, 128
%124 = icmp ne i32 %123, 0
br i1 %124, label %125, label %132
125: ; preds = %113
%126 = load i8*, i8** %14
%127 = getelementptr inbounds i8, i8* %126, i64 6
%128 = load i8, i8* %127
%129 = zext i8 %128 to i32
%130 = and i32 %129, 127
%131 = sub nsw i32 0, %130
br label %138
132: ; preds = %113
%133 = load i8*, i8** %14
%134 = getelementptr inbounds i8, i8* %133, i64 6
%135 = load i8, i8* %134
%136 = zext i8 %135 to i32
%137 = and i32 %136, 127
br label %138
138: ; preds = %132, %125
%139 = phi i32 [ %131, %125 ], [ %137, %132 ]
%140 = load i8*, i8** %14
%141 = getelementptr inbounds i8, i8* %140, i64 7
%142 = call i32 @int4(i8* %141)
%143 = call double @scaled2flt(i32 %139, i32 %142)
%144 = fcmp oeq double %118, %143
br i1 %144, label %145, label %174
145: ; preds = %138
%146 = load i8*, i8** %12
%147 = load i8*, i8** %14
%148 = getelementptr inbounds i8, i8* %147, i64 1
%149 = load i8, i8* %148
%150 = zext i8 %149 to i32
%151 = and i32 %150, 128
%152 = icmp ne i32 %151, 0
br i1 %152, label %153, label %160
153: ; preds = %145
%154 = load i8*, i8** %14
%155 = getelementptr inbounds i8, i8* %154, i64 1
%156 = load i8, i8* %155
%157 = zext i8 %156 to i32
%158 = and i32 %157, 127
%159 = sub nsw i32 0, %158
br label %166
160: ; preds = %145
%161 = load i8*, i8** %14
%162 = getelementptr inbounds i8, i8* %161, i64 1
%163 = load i8, i8* %162
%164 = zext i8 %163 to i32
%165 = and i32 %164, 127
br label %166
166: ; preds = %160, %153
%167 = phi i32 [ %159, %153 ], [ %165, %160 ]
%168 = load i8*, i8** %14
%169 = getelementptr inbounds i8, i8* %168, i64 2
%170 = call i32 @int4(i8* %169)
%171 = call double @scaled2flt(i32 %167, i32 %170)
%172 = fptoui double %171 to i8
%173 = call i32 (i8*, i8*, i8, ...) @sprintf(i8* %146, i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str.3, i64 0, i64 0), i8 zeroext %172)
br label %286
174: ; preds = %138
%175 = load i8*, i8** %12
%176 = load i8*, i8** %14
%177 = getelementptr inbounds i8, i8* %176, i64 1
%178 = load i8, i8* %177
%179 = zext i8 %178 to i32
%180 = and i32 %179, 128
%181 = icmp ne i32 %180, 0
br i1 %181, label %182, label %189
182: ; preds = %174
%183 = load i8*, i8** %14
%184 = getelementptr inbounds i8, i8* %183, i64 1
%185 = load i8, i8* %184
%186 = zext i8 %185 to i32
%187 = and i32 %186, 127
%188 = sub nsw i32 0, %187
br label %195
189: ; preds = %174
%190 = load i8*, i8** %14
%191 = getelementptr inbounds i8, i8* %190, i64 1
%192 = load i8, i8* %191
%193 = zext i8 %192 to i32
%194 = and i32 %193, 127
br label %195
195: ; preds = %189, %182
%196 = phi i32 [ %188, %182 ], [ %194, %189 ]
%197 = load i8*, i8** %14
%198 = getelementptr inbounds i8, i8* %197, i64 2
%199 = call i32 @int4(i8* %198)
%200 = call double @scaled2flt(i32 %196, i32 %199)
%201 = fptoui double %200 to i8
%202 = load i8*, i8** %14
%203 = getelementptr inbounds i8, i8* %202, i64 6
%204 = load i8, i8* %203
%205 = zext i8 %204 to i32
%206 = and i32 %205, 128
%207 = icmp ne i32 %206, 0
br i1 %207, label %208, label %215
208: ; preds = %195
%209 = load i8*, i8** %14
%210 = getelementptr inbounds i8, i8* %209, i64 6
%211 = load i8, i8* %210
%212 = zext i8 %211 to i32
%213 = and i32 %212, 127
%214 = sub nsw i32 0, %213
br label %221
215: ; preds = %195
%216 = load i8*, i8** %14
%217 = getelementptr inbounds i8, i8* %216, i64 6
%218 = load i8, i8* %217
%219 = zext i8 %218 to i32
%220 = and i32 %219, 127
br label %221
221: ; preds = %215, %208
%222 = phi i32 [ %214, %208 ], [ %220, %215 ]
%223 = load i8*, i8** %14
%224 = getelementptr inbounds i8, i8* %223, i64 7
%225 = call i32 @int4(i8* %224)
%226 = call double @scaled2flt(i32 %222, i32 %225)
%227 = call i32 (i8*, i8*, i8, ...) @sprintf(i8* %175, i8* getelementptr inbounds ([14 x i8], [14 x i8]* @.str.4, i64 0, i64 0), i8 zeroext %201, double %226)
br label %286
228: ; preds = %27
%229 = load i8*, i8** %12
%230 = load i8*, i8** %14
%231 = getelementptr inbounds i8, i8* %230, i64 1
%232 = load i8, i8* %231
%233 = zext i8 %232 to i32
%234 = and i32 %233, 128
%235 = icmp ne i32 %234, 0
br i1 %235, label %236, label %243
236: ; preds = %228
%237 = load i8*, i8** %14
%238 = getelementptr inbounds i8, i8* %237, i64 1
%239 = load i8, i8* %238
%240 = zext i8 %239 to i32
%241 = and i32 %240, 127
%242 = sub nsw i32 0, %241
br label %249
243: ; preds = %228
%244 = load i8*, i8** %14
%245 = getelementptr inbounds i8, i8* %244, i64 1
%246 = load i8, i8* %245
%247 = zext i8 %246 to i32
%248 = and i32 %247, 127
br label %249
249: ; preds = %243, %236
%250 = phi i32 [ %242, %236 ], [ %248, %243 ]
%251 = load i8*, i8** %14
%252 = getelementptr inbounds i8, i8* %251, i64 2
%253 = call i32 @int4(i8* %252)
%254 = call double @scaled2flt(i32 %250, i32 %253)
%255 = fptoui double %254 to i8
%256 = call i32 (i8*, i8*, i8, ...) @sprintf(i8* %229, i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str.2, i64 0, i64 0), i8 zeroext %255)
br label %286
257: ; preds = %27
%258 = load i8*, i8** %12
%259 = load i8*, i8** %14
%260 = getelementptr inbounds i8, i8* %259, i64 6
%261 = load i8, i8* %260
%262 = zext i8 %261 to i32
%263 = and i32 %262, 128
%264 = icmp ne i32 %263, 0
br i1 %264, label %265, label %272
265: ; preds = %257
%266 = load i8*, i8** %14
%267 = getelementptr inbounds i8, i8* %266, i64 6
%268 = load i8, i8* %267
%269 = zext i8 %268 to i32
%270 = and i32 %269, 127
%271 = sub nsw i32 0, %270
br label %278
272: ; preds = %257
%273 = load i8*, i8** %14
%274 = getelementptr inbounds i8, i8* %273, i64 6
%275 = load i8, i8* %274
%276 = zext i8 %275 to i32
%277 = and i32 %276, 127
br label %278
278: ; preds = %272, %265
%279 = phi i32 [ %271, %265 ], [ %277, %272 ]
%280 = load i8*, i8** %14
%281 = getelementptr inbounds i8, i8* %280, i64 7
%282 = call i32 @int4(i8* %281)
%283 = call double @scaled2flt(i32 %279, i32 %282)
%284 = fptoui double %283 to i8
%285 = call i32 (i8*, i8*, i8, ...) @sprintf(i8* %258, i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str.1, i64 0, i64 0), i8 zeroext %284)
br label %286
286: ; preds = %27, %278, %249, %221, %166, %85, %56
%287 = load i32, i32* %8
%288 = icmp eq i32 %287, 99
br i1 %288, label %289, label %335
289: ; preds = %286
%290 = load i8*, i8** %12
%291 = call i32 @strlen(i8* %290)
%292 = load i8*, i8** %12
%293 = sext i32 %291 to i64
%294 = getelementptr inbounds i8, i8* %292, i64 %293
store i8* %294, i8** %12
%295 = load i8*, i8** %12
%296 = load i8*, i8** %14
%297 = getelementptr inbounds i8, i8* %296, i64 1
%298 = load i8, i8* %297
%299 = zext i8 %298 to i32
%300 = and i32 %299, 128
%301 = icmp ne i32 %300, 0
br i1 %301, label %302, label %309
302: ; preds = %289
%303 = load i8*, i8** %14
%304 = getelementptr inbounds i8, i8* %303, i64 1
%305 = load i8, i8* %304
%306 = zext i8 %305 to i32
%307 = and i32 %306, 127
%308 = sub nsw i32 0, %307
br label %315
309: ; preds = %289
%310 = load i8*, i8** %14
%311 = getelementptr inbounds i8, i8* %310, i64 1
%312 = load i8, i8* %311
%313 = zext i8 %312 to i32
%314 = and i32 %313, 127
br label %315
315: ; preds = %309, %302
%316 = phi i32 [ %308, %302 ], [ %314, %309 ]
%317 = trunc i32 %316 to i8
%318 = load i8*, i8** %14
%319 = getelementptr inbounds i8, i8* %318, i64 2
%320 = load i8, i8* %319
%321 = zext i8 %320 to i32
%322 = load i8*, i8** %14
%323 = getelementptr inbounds i8, i8* %322, i64 3
%324 = load i8, i8* %323
%325 = zext i8 %324 to i32
%326 = load i8*, i8** %14
%327 = getelementptr inbounds i8, i8* %326, i64 4
%328 = load i8, i8* %327
%329 = zext i8 %328 to i32
%330 = load i8*, i8** %14
%331 = getelementptr inbounds i8, i8* %330, i64 5
%332 = load i8, i8* %331
%333 = zext i8 %332 to i32
%334 = call i32 (i8*, i8*, i8, ...) @sprintf(i8* %295, i8* getelementptr inbounds ([56 x i8], [56 x i8]* @.str.5, i64 0, i64 0), i8 zeroext %317, i32 %321, i32 %325, i32 %329, i32 %333)
br label %335
335: ; preds = %315, %286
%336 = load i8*, i8** %12
%337 = call i32 @strlen(i8* %336)
%338 = load i8*, i8** %12
%339 = sext i32 %337 to i64
%340 = getelementptr inbounds i8, i8* %338, i64 %339
store i8* %340, i8** %12
%341 = load i8*, i8** %12
%342 = load i8*, i8** %14
%343 = getelementptr inbounds i8, i8* %342, i64 -2
%344 = load i8, i8* %343
%345 = load i8*, i8** %14
%346 = getelementptr inbounds i8, i8* %345, i64 -1
%347 = load i8, i8* %346
%348 = zext i8 %347 to i32
%349 = call i32 (i8*, i8*, i8, ...) @sprintf(i8* %341, i8* getelementptr inbounds ([17 x i8], [17 x i8]* @.str.6, i64 0, i64 0), i8 zeroext %344, i32 %348)
br label %350
350: ; preds = %335, %18
br label %351
351: ; preds = %350
store i32 0, i32* %7
br label %352
352: ; preds = %351, %26, %17
%353 = load i32, i32* %7
ret i32 %353
}

LLVM IR (-O2):
@.str = [13 x i8] c"probtype=%d \00"
@.str.1 = [9 x i8] c"prob <%g\00"
@.str.2 = [9 x i8] c"prob >%g\00"
@.str.3 = [9 x i8] c"prob =%g\00"
@.str.4 = [14 x i8] c"prob >=%g <%g\00"
@.str.5 = [56 x i8] c" LOWER LIMIT scale=%d, val= 0x%.2x 0x%.2x 0x%.2x 0x%.2x\00"
@.str.6 = [17 x i8] c":prob fcst %u/%u\00"
define i32 @f_prob(i32 %0, i8** %1, float* nocapture readnone %2, i32 %3, i8* %4, i8** nocapture readnone %5) {
%7 = icmp sgt i32 %0, -1
br i1 %7, label %8, label %154
8: ; preds = %6
%9 = tail call i8* @code_table_4_9_location(i8** %1)
%10 = icmp eq i8* %9, null
br i1 %10, label %154, label %11
11: ; preds = %8
%12 = load i8, i8* %9
%13 = tail call i32 (i8*, i8*, i8, ...) @sprintf(i8* dereferenceable(1) %4, i8* dereferenceable(1) getelementptr inbounds ([13 x i8], [13 x i8]* @.str, i64 0, i64 0), i8 zeroext %12)
%14 = load i8, i8* %9
switch i8 %14, label %118 [
i8 0, label %15
i8 1, label %29
i8 2, label %43
i8 3, label %90
i8 4, label %104
]
15: ; preds = %11
%16 = getelementptr inbounds i8, i8* %9, i64 1
%17 = load i8, i8* %16
%18 = zext i8 %17 to i32
%19 = and i32 %18, 128
%20 = icmp eq i32 %19, 0
%21 = and i32 %18, 127
%22 = sub nsw i32 0, %21
%23 = select i1 %20, i32 %21, i32 %22
%24 = getelementptr inbounds i8, i8* %9, i64 2
%25 = tail call i32 @int4(i8* %24)
%26 = tail call double @scaled2flt(i32 %23, i32 %25)
%27 = fptoui double %26 to i8
%28 = tail call i32 (i8*, i8*, i8, ...) @sprintf(i8* dereferenceable(1) %4, i8* dereferenceable(1) getelementptr inbounds ([9 x i8], [9 x i8]* @.str.1, i64 0, i64 0), i8 zeroext %27)
br label %118
29: ; preds = %11
%30 = getelementptr inbounds i8, i8* %9, i64 6
%31 = load i8, i8* %30
%32 = zext i8 %31 to i32
%33 = and i32 %32, 128
%34 = icmp eq i32 %33, 0
%35 = and i32 %32, 127
%36 = sub nsw i32 0, %35
%37 = select i1 %34, i32 %35, i32 %36
%38 = getelementptr inbounds i8, i8* %9, i64 7
%39 = tail call i32 @int4(i8* %38)
%40 = tail call double @scaled2flt(i32 %37, i32 %39)
%41 = fptoui double %40 to i8
%42 = tail call i32 (i8*, i8*, i8, ...) @sprintf(i8* dereferenceable(1) %4, i8* dereferenceable(1) getelementptr inbounds ([9 x i8], [9 x i8]* @.str.2, i64 0, i64 0), i8 zeroext %41)
br label %118
43: ; preds = %11
%44 = getelementptr inbounds i8, i8* %9, i64 1
%45 = load i8, i8* %44
%46 = zext i8 %45 to i32
%47 = and i32 %46, 128
%48 = icmp eq i32 %47, 0
%49 = and i32 %46, 127
%50 = sub nsw i32 0, %49
%51 = select i1 %48, i32 %49, i32 %50
%52 = getelementptr inbounds i8, i8* %9, i64 2
%53 = tail call i32 @int4(i8* %52)
%54 = tail call double @scaled2flt(i32 %51, i32 %53)
%55 = getelementptr inbounds i8, i8* %9, i64 6
%56 = load i8, i8* %55
%57 = zext i8 %56 to i32
%58 = and i32 %57, 128
%59 = icmp eq i32 %58, 0
%60 = and i32 %57, 127
%61 = sub nsw i32 0, %60
%62 = select i1 %59, i32 %60, i32 %61
%63 = getelementptr inbounds i8, i8* %9, i64 7
%64 = tail call i32 @int4(i8* %63)
%65 = tail call double @scaled2flt(i32 %62, i32 %64)
%66 = fcmp oeq double %54, %65
%67 = load i8, i8* %44
%68 = zext i8 %67 to i32
%69 = and i32 %68, 128
%70 = icmp eq i32 %69, 0
%71 = and i32 %68, 127
%72 = sub nsw i32 0, %71
%73 = select i1 %70, i32 %71, i32 %72
%74 = tail call i32 @int4(i8* %52)
%75 = tail call double @scaled2flt(i32 %73, i32 %74)
%76 = fptoui double %75 to i8
br i1 %66, label %77, label %79
77: ; preds = %43
%78 = tail call i32 (i8*, i8*, i8, ...) @sprintf(i8* dereferenceable(1) %4, i8* dereferenceable(1) getelementptr inbounds ([9 x i8], [9 x i8]* @.str.3, i64 0, i64 0), i8 zeroext %76)
br label %118
79: ; preds = %43
%80 = load i8, i8* %55
%81 = zext i8 %80 to i32
%82 = and i32 %81, 128
%83 = icmp eq i32 %82, 0
%84 = and i32 %81, 127
%85 = sub nsw i32 0, %84
%86 = select i1 %83, i32 %84, i32 %85
%87 = tail call i32 @int4(i8* %63)
%88 = tail call double @scaled2flt(i32 %86, i32 %87)
%89 = tail call i32 (i8*, i8*, i8, ...) @sprintf(i8* dereferenceable(1) %4, i8* dereferenceable(1) getelementptr inbounds ([14 x i8], [14 x i8]* @.str.4, i64 0, i64 0), i8 zeroext %76, double %88)
br label %118
90: ; preds = %11
%91 = getelementptr inbounds i8, i8* %9, i64 1
%92 = load i8, i8* %91
%93 = zext i8 %92 to i32
%94 = and i32 %93, 128
%95 = icmp eq i32 %94, 0
%96 = and i32 %93, 127
%97 = sub nsw i32 0, %96
%98 = select i1 %95, i32 %96, i32 %97
%99 = getelementptr inbounds i8, i8* %9, i64 2
%100 = tail call i32 @int4(i8* %99)
%101 = tail call double @scaled2flt(i32 %98, i32 %100)
%102 = fptoui double %101 to i8
%103 = tail call i32 (i8*, i8*, i8, ...) @sprintf(i8* dereferenceable(1) %4, i8* dereferenceable(1) getelementptr inbounds ([9 x i8], [9 x i8]* @.str.2, i64 0, i64 0), i8 zeroext %102)
br label %118
104: ; preds = %11
%105 = getelementptr inbounds i8, i8* %9, i64 6
%106 = load i8, i8* %105
%107 = zext i8 %106 to i32
%108 = and i32 %107, 128
%109 = icmp eq i32 %108, 0
%110 = and i32 %107, 127
%111 = sub nsw i32 0, %110
%112 = select i1 %109, i32 %110, i32 %111
%113 = getelementptr inbounds i8, i8* %9, i64 7
%114 = tail call i32 @int4(i8* %113)
%115 = tail call double @scaled2flt(i32 %112, i32 %114)
%116 = fptoui double %115 to i8
%117 = tail call i32 (i8*, i8*, i8, ...) @sprintf(i8* dereferenceable(1) %4, i8* dereferenceable(1) getelementptr inbounds ([9 x i8], [9 x i8]* @.str.1, i64 0, i64 0), i8 zeroext %116)
br label %118
118: ; preds = %11, %104, %90, %79, %77, %29, %15
%119 = icmp eq i32 %0, 99
br i1 %119, label %120, label %143
120: ; preds = %118
%121 = tail call i32 @strlen(i8* %4)
%122 = sext i32 %121 to i64
%123 = getelementptr inbounds i8, i8* %4, i64 %122
%124 = getelementptr inbounds i8, i8* %9, i64 1
%125 = load i8, i8* %124
%126 = icmp sgt i8 %125, -1
%127 = and i8 %125, 127
%128 = sub nsw i8 0, %127
%129 = select i1 %126, i8 %127, i8 %128
%130 = getelementptr inbounds i8, i8* %9, i64 2
%131 = load i8, i8* %130
%132 = zext i8 %131 to i32
%133 = getelementptr inbounds i8, i8* %9, i64 3
%134 = load i8, i8* %133
%135 = zext i8 %134 to i32
%136 = getelementptr inbounds i8, i8* %9, i64 4
%137 = load i8, i8* %136
%138 = zext i8 %137 to i32
%139 = getelementptr inbounds i8, i8* %9, i64 5
%140 = load i8, i8* %139
%141 = zext i8 %140 to i32
%142 = tail call i32 (i8*, i8*, i8, ...) @sprintf(i8* dereferenceable(1) %123, i8* dereferenceable(1) getelementptr inbounds ([56 x i8], [56 x i8]* @.str.5, i64 0, i64 0), i8 zeroext %129, i32 %132, i32 %135, i32 %138, i32 %141)
br label %143
143: ; preds = %120, %118
%144 = phi i8* [ %123, %120 ], [ %4, %118 ]
%145 = tail call i32 @strlen(i8* %144)
%146 = sext i32 %145 to i64
%147 = getelementptr inbounds i8, i8* %144, i64 %146
%148 = getelementptr inbounds i8, i8* %9, i64 -2
%149 = load i8, i8* %148
%150 = getelementptr inbounds i8, i8* %9, i64 -1
%151 = load i8, i8* %150
%152 = zext i8 %151 to i32
%153 = tail call i32 (i8*, i8*, i8, ...) @sprintf(i8* dereferenceable(1) %147, i8* dereferenceable(1) getelementptr inbounds ([17 x i8], [17 x i8]* @.str.6, i64 0, i64 0), i8 zeroext %149, i32 %152)
br label %154
154: ; preds = %143, %8, %6
ret i32 0
}