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

/* Variables and functions */
int bits(int, int, int);
float uint_as_float(int);
float itof_circuit(int32_t i) {
  uint64_t u_frc[5];
  uint64_t u_frc_tmp;
  uint32_t x_nlz;
  int tail_any, round;
  uint32_t u_frc_norm, frc_out, exp_out;
  u_frc[4] =
      bits(i, 31, 31) == 0 ? (uint64_t)(uint32_t)i : (uint64_t)(uint32_t)-i;
  x_nlz = bits(u_frc[4], 32, 17) == 0 ? 0 : 1;
  x_nlz <<= 1;
  u_frc[3] = bits(u_frc[4], 32, 17) == 0 ? u_frc[4] << 16 : u_frc[4];
  x_nlz |= bits(u_frc[3], 32, 25) == 0 ? 0 : 1;
  x_nlz <<= 1;
  u_frc[2] = bits(u_frc[3], 32, 25) == 0 ? u_frc[3] << 8 : u_frc[3];
  x_nlz |= bits(u_frc[2], 32, 29) == 0 ? 0 : 1;
  x_nlz <<= 1;
  u_frc[1] = bits(u_frc[2], 32, 29) == 0 ? u_frc[2] << 4 : u_frc[2];
  x_nlz |= bits(u_frc[1], 32, 31) == 0 ? 0 : 1;
  x_nlz <<= 1;
  u_frc[0] = bits(u_frc[1], 32, 31) == 0 ? u_frc[1] << 2 : u_frc[1];
  x_nlz |= bits(u_frc[0], 32, 32) == 0 ? 0 : 1;
  u_frc_tmp = bits(u_frc[0], 32, 32) == 0 ? u_frc[0] << 1 : u_frc[0];
  tail_any = bits(u_frc_tmp, 7, 0) == 0 ? 0 : 1;
  round = (bits(u_frc_tmp, 8, 8) & tail_any) |
          ((bits(u_frc_tmp, 9, 9) & bits(u_frc_tmp, 8, 8)));
  u_frc_norm = bits(u_frc_tmp, 32, 9) + round;
  frc_out = bits(u_frc_norm, 23, 23) == 0 ? bits(u_frc_norm, 21, 0)
                                          : bits(u_frc_norm, 22, 0);
  exp_out = bits(u_frc_tmp, 32, 31) == 0    ? 0x00
            : bits(u_frc_tmp, 32, 31) == 1  ? 0x7F
            : bits(u_frc_norm, 23, 23) == 0 ? 0x80 | bits(x_nlz + 1, 4, 0)
                                            : 0x80 | bits(x_nlz, 4, 0);
  return uint_as_float(bits(i, 31, 31) << 31 | exp_out << 23 | frc_out);
}


x86 assembly (clang, -O0):
<itof_circuit>:
push   %rbp
mov    %rsp,%rbp
sub    $0x70,%rsp
mov    %edi,-0x4(%rbp)
mov    -0x4(%rbp),%edi
mov    $0x1f,%edx
mov    %edx,%esi
call   1040 <bits@plt>
cmp    $0x0,%eax
jne    114e <itof_circuit+0x2e>
mov    -0x4(%rbp),%eax
mov    %eax,-0x40(%rbp)
jmp    1156 <itof_circuit+0x36>
xor    %eax,%eax
sub    -0x4(%rbp),%eax
mov    %eax,-0x40(%rbp)
mov    -0x40(%rbp),%eax
mov    %eax,-0x10(%rbp)
mov    -0x10(%rbp),%edi
mov    $0x20,%esi
mov    $0x11,%edx
call   1040 <bits@plt>
mov    %eax,%edx
mov    $0x1,%eax
xor    %ecx,%ecx
cmp    $0x0,%edx
cmove  %ecx,%eax
mov    %eax,-0x28(%rbp)
mov    -0x28(%rbp),%eax
shl    $0x1,%eax
mov    %eax,-0x28(%rbp)
mov    -0x10(%rbp),%edi
mov    $0x20,%esi
mov    $0x11,%edx
call   1040 <bits@plt>
cmp    $0x0,%eax
jne    11b2 <itof_circuit+0x92>
mov    -0x10(%rbp),%eax
shl    $0x10,%eax
mov    %eax,-0x44(%rbp)
jmp    11b8 <itof_circuit+0x98>
mov    -0x10(%rbp),%eax
mov    %eax,-0x44(%rbp)
mov    -0x44(%rbp),%eax
mov    %eax,-0x14(%rbp)
mov    -0x14(%rbp),%edi
mov    $0x20,%esi
mov    $0x19,%edx
call   1040 <bits@plt>
mov    %eax,%edx
mov    $0x1,%eax
xor    %ecx,%ecx
cmp    $0x0,%edx
cmove  %ecx,%eax
or     -0x28(%rbp),%eax
mov    %eax,-0x28(%rbp)
mov    -0x28(%rbp),%eax
shl    $0x1,%eax
mov    %eax,-0x28(%rbp)
mov    -0x14(%rbp),%edi
mov    $0x20,%esi
mov    $0x19,%edx
call   1040 <bits@plt>
cmp    $0x0,%eax
jne    1217 <itof_circuit+0xf7>
mov    -0x14(%rbp),%eax
shl    $0x8,%eax
mov    %eax,-0x48(%rbp)
jmp    121d <itof_circuit+0xfd>
mov    -0x14(%rbp),%eax
mov    %eax,-0x48(%rbp)
mov    -0x48(%rbp),%eax
mov    %eax,-0x18(%rbp)
mov    -0x18(%rbp),%edi
mov    $0x20,%esi
mov    $0x1d,%edx
call   1040 <bits@plt>
mov    %eax,%edx
mov    $0x1,%eax
xor    %ecx,%ecx
cmp    $0x0,%edx
cmove  %ecx,%eax
or     -0x28(%rbp),%eax
mov    %eax,-0x28(%rbp)
mov    -0x28(%rbp),%eax
shl    $0x1,%eax
mov    %eax,-0x28(%rbp)
mov    -0x18(%rbp),%edi
mov    $0x20,%esi
mov    $0x1d,%edx
call   1040 <bits@plt>
cmp    $0x0,%eax
jne    127c <itof_circuit+0x15c>
mov    -0x18(%rbp),%eax
shl    $0x4,%eax
mov    %eax,-0x4c(%rbp)
jmp    1282 <itof_circuit+0x162>
mov    -0x18(%rbp),%eax
mov    %eax,-0x4c(%rbp)
mov    -0x4c(%rbp),%eax
mov    %eax,-0x1c(%rbp)
mov    -0x1c(%rbp),%edi
mov    $0x20,%esi
mov    $0x1f,%edx
call   1040 <bits@plt>
mov    %eax,%edx
mov    $0x1,%eax
xor    %ecx,%ecx
cmp    $0x0,%edx
cmove  %ecx,%eax
or     -0x28(%rbp),%eax
mov    %eax,-0x28(%rbp)
mov    -0x28(%rbp),%eax
shl    $0x1,%eax
mov    %eax,-0x28(%rbp)
mov    -0x1c(%rbp),%edi
mov    $0x20,%esi
mov    $0x1f,%edx
call   1040 <bits@plt>
cmp    $0x0,%eax
jne    12e1 <itof_circuit+0x1c1>
mov    -0x1c(%rbp),%eax
shl    $0x2,%eax
mov    %eax,-0x50(%rbp)
jmp    12e7 <itof_circuit+0x1c7>
mov    -0x1c(%rbp),%eax
mov    %eax,-0x50(%rbp)
mov    -0x50(%rbp),%eax
mov    %eax,-0x20(%rbp)
mov    -0x20(%rbp),%edi
mov    $0x20,%edx
mov    %edx,%esi
call   1040 <bits@plt>
mov    %eax,%edx
mov    $0x1,%eax
xor    %ecx,%ecx
cmp    $0x0,%edx
cmove  %ecx,%eax
or     -0x28(%rbp),%eax
mov    %eax,-0x28(%rbp)
mov    -0x20(%rbp),%edi
mov    $0x20,%edx
mov    %edx,%esi
call   1040 <bits@plt>
cmp    $0x0,%eax
jne    1337 <itof_circuit+0x217>
mov    -0x20(%rbp),%eax
shl    $0x1,%eax
mov    %eax,-0x54(%rbp)
jmp    133d <itof_circuit+0x21d>
mov    -0x20(%rbp),%eax
mov    %eax,-0x54(%rbp)
mov    -0x54(%rbp),%eax
mov    %eax,-0x24(%rbp)
mov    -0x24(%rbp),%edi
mov    $0x7,%esi
xor    %edx,%edx
call   1040 <bits@plt>
mov    %eax,%edx
mov    $0x1,%eax
xor    %ecx,%ecx
cmp    $0x0,%edx
cmove  %ecx,%eax
mov    %eax,-0x2c(%rbp)
mov    -0x24(%rbp),%edi
mov    $0x8,%edx
mov    %edx,%esi
call   1040 <bits@plt>
and    -0x2c(%rbp),%eax
mov    %eax,-0x58(%rbp)
mov    -0x24(%rbp),%edi
mov    $0x9,%edx
mov    %edx,%esi
call   1040 <bits@plt>
mov    %eax,-0x5c(%rbp)
mov    -0x24(%rbp),%edi
mov    $0x8,%edx
mov    %edx,%esi
call   1040 <bits@plt>
mov    -0x5c(%rbp),%ecx
mov    %eax,%edx
mov    -0x58(%rbp),%eax
and    %edx,%ecx
or     %ecx,%eax
mov    %eax,-0x30(%rbp)
mov    -0x24(%rbp),%edi
mov    $0x20,%esi
mov    $0x9,%edx
call   1040 <bits@plt>
add    -0x30(%rbp),%eax
mov    %eax,-0x34(%rbp)
mov    -0x34(%rbp),%edi
mov    $0x17,%edx
mov    %edx,%esi
call   1040 <bits@plt>
cmp    $0x0,%eax
jne    13f0 <itof_circuit+0x2d0>
mov    -0x34(%rbp),%edi
mov    $0x15,%esi
xor    %edx,%edx
call   1040 <bits@plt>
mov    %eax,-0x60(%rbp)
jmp    1402 <itof_circuit+0x2e2>
mov    -0x34(%rbp),%edi
mov    $0x16,%esi
xor    %edx,%edx
call   1040 <bits@plt>
mov    %eax,-0x60(%rbp)
mov    -0x60(%rbp),%eax
mov    %eax,-0x38(%rbp)
mov    -0x24(%rbp),%edi
mov    $0x20,%esi
mov    $0x1f,%edx
call   1040 <bits@plt>
cmp    $0x0,%eax
jne    142d <itof_circuit+0x30d>
xor    %eax,%eax
mov    %eax,-0x64(%rbp)
jmp    14af <itof_circuit+0x38f>
mov    -0x24(%rbp),%edi
mov    $0x20,%esi
mov    $0x1f,%edx
call   1040 <bits@plt>
cmp    $0x1,%eax
jne    1455 <itof_circuit+0x335>
mov    $0x7f,%eax
mov    %eax,-0x68(%rbp)
jmp    14a9 <itof_circuit+0x389>
mov    -0x34(%rbp),%edi
mov    $0x17,%edx
mov    %edx,%esi
call   1040 <bits@plt>
cmp    $0x0,%eax
jne    148c <itof_circuit+0x36c>
mov    -0x28(%rbp),%edi
add    $0x1,%edi
mov    $0x4,%esi
xor    %edx,%edx
call   1040 <bits@plt>
or     $0x80,%eax
mov    %eax,-0x6c(%rbp)
jmp    14a3 <itof_circuit+0x383>
mov    -0x28(%rbp),%edi
mov    $0x4,%esi
xor    %edx,%edx
call   1040 <bits@plt>
or     $0x80,%eax
mov    %eax,-0x6c(%rbp)
mov    -0x6c(%rbp),%eax
mov    %eax,-0x68(%rbp)
mov    -0x68(%rbp),%eax
mov    %eax,-0x64(%rbp)
mov    -0x64(%rbp),%eax
mov    %eax,-0x3c(%rbp)
mov    -0x4(%rbp),%edi
mov    $0x1f,%edx
mov    %edx,%esi
call   1040 <bits@plt>
mov    %eax,%edi
shl    $0x1f,%edi
mov    -0x3c(%rbp),%eax
shl    $0x17,%eax
or     %eax,%edi
or     -0x38(%rbp),%edi
call   1030 <uint_as_float@plt>
add    $0x70,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<itof_circuit>:
push   %rbp
push   %r15
push   %r14
push   %r13
push   %r12
push   %rbx
sub    $0x18,%rsp
mov    %edi,%ebp
mov    $0x1f,%esi
mov    $0x1f,%edx
call   1040 <bits@plt>
mov    %ebp,%ebx
neg    %ebx
test   %eax,%eax
mov    %ebp,0x14(%rsp)
cmove  %ebp,%ebx
mov    %ebx,%edi
mov    $0x20,%esi
mov    $0x11,%edx
call   1040 <bits@plt>
test   %eax,%eax
setne  0x13(%rsp)
mov    %ebx,%edi
mov    $0x20,%esi
mov    $0x11,%edx
call   1040 <bits@plt>
mov    %ebx,%ebp
shl    $0x10,%ebp
test   %eax,%eax
cmovne %ebx,%ebp
mov    %ebp,%edi
mov    $0x20,%esi
mov    $0x19,%edx
call   1040 <bits@plt>
test   %eax,%eax
setne  0x12(%rsp)
mov    %ebp,%edi
mov    $0x20,%esi
mov    $0x19,%edx
call   1040 <bits@plt>
mov    %ebp,%ebx
shl    $0x8,%ebx
test   %eax,%eax
cmovne %ebp,%ebx
mov    %ebx,%edi
mov    $0x20,%esi
mov    $0x1d,%edx
call   1040 <bits@plt>
test   %eax,%eax
setne  0x11(%rsp)
mov    %ebx,%edi
mov    $0x20,%esi
mov    $0x1d,%edx
call   1040 <bits@plt>
mov    %ebx,%ebp
shl    $0x4,%ebp
test   %eax,%eax
cmovne %ebx,%ebp
mov    %ebp,%edi
mov    $0x20,%esi
mov    $0x1f,%edx
call   1040 <bits@plt>
test   %eax,%eax
setne  0x10(%rsp)
mov    %ebp,%edi
mov    $0x20,%esi
mov    $0x1f,%edx
call   1040 <bits@plt>
lea    0x0(,%rbp,4),%ebx
test   %eax,%eax
cmovne %ebp,%ebx
mov    %ebx,%edi
mov    $0x20,%esi
mov    $0x20,%edx
call   1040 <bits@plt>
test   %eax,%eax
setne  0xf(%rsp)
mov    %ebx,%edi
mov    $0x20,%esi
mov    $0x20,%edx
call   1040 <bits@plt>
test   %eax,%eax
sete   %cl
shl    %cl,%ebx
xor    %r13d,%r13d
mov    %ebx,%edi
mov    $0x7,%esi
xor    %edx,%edx
call   1040 <bits@plt>
xor    %ebp,%ebp
test   %eax,%eax
setne  %bpl
mov    %ebx,%edi
mov    $0x8,%esi
mov    $0x8,%edx
call   1040 <bits@plt>
mov    %eax,%r12d
and    %ebp,%r12d
mov    %ebx,%edi
mov    $0x9,%esi
mov    $0x9,%edx
call   1040 <bits@plt>
mov    %eax,%r15d
mov    %ebx,%edi
mov    $0x8,%esi
mov    $0x8,%edx
call   1040 <bits@plt>
mov    %eax,%r14d
and    %r15d,%r14d
or     %r12d,%r14d
mov    %ebx,%edi
mov    $0x20,%esi
mov    $0x9,%edx
call   1040 <bits@plt>
mov    %eax,%r12d
add    %r14d,%r12d
mov    %r12d,%edi
mov    $0x17,%esi
mov    $0x17,%edx
call   1040 <bits@plt>
cmp    $0x1,%eax
mov    $0x16,%esi
sbb    $0x0,%esi
mov    %r12d,%edi
xor    %edx,%edx
call   1040 <bits@plt>
mov    %eax,%r15d
mov    %ebx,%edi
mov    $0x20,%esi
mov    $0x1f,%edx
call   1040 <bits@plt>
test   %eax,%eax
je     1387 <itof_circuit+0x267>
mov    %ebx,%edi
mov    $0x20,%esi
mov    $0x1f,%edx
call   1040 <bits@plt>
mov    $0x3f800000,%r13d
cmp    $0x1,%eax
je     1387 <itof_circuit+0x267>
xor    %edx,%edx
mov    0x12(%rsp),%al
mov    %al,%dl
xor    %eax,%eax
mov    0x13(%rsp),%cl
mov    %cl,%al
lea    (%rdx,%rax,2),%eax
xor    %ecx,%ecx
mov    0x11(%rsp),%dl
mov    %dl,%cl
add    %ecx,%ecx
lea    (%rcx,%rax,4),%eax
xor    %ecx,%ecx
mov    0x10(%rsp),%dl
mov    %dl,%cl
or     %eax,%ecx
xor    %eax,%eax
mov    0xf(%rsp),%dl
mov    %dl,%al
lea    (%rax,%rcx,2),%ebx
mov    %r12d,%edi
mov    $0x17,%esi
mov    $0x17,%edx
call   1040 <bits@plt>
cmp    $0x1,%eax
adc    $0x0,%ebx
mov    %ebx,%edi
mov    $0x4,%esi
xor    %edx,%edx
call   1040 <bits@plt>
mov    %eax,%r13d
shl    $0x17,%r13d
or     $0x40000000,%r13d
mov    0x14(%rsp),%edi
mov    $0x1f,%esi
mov    $0x1f,%edx
call   1040 <bits@plt>
shl    $0x1f,%eax
or     %r15d,%r13d
or     %eax,%r13d
mov    %r13d,%edi
add    $0x18,%rsp
pop    %rbx
pop    %r12
pop    %r13
pop    %r14
pop    %r15
pop    %rbp
jmp    1030 <uint_as_float@plt>

LLVM IR (-O0):
define float @itof_circuit(i32 %0) {
%2 = alloca i32
%3 = alloca [5 x i32]
%4 = alloca i32
%5 = alloca i32
%6 = alloca i32
%7 = alloca i32
%8 = alloca i32
%9 = alloca i32
%10 = alloca i32
store i32 %0, i32* %2
%11 = load i32, i32* %2
%12 = call i32 @bits(i32 %11, i32 31, i32 31)
%13 = icmp eq i32 %12, 0
br i1 %13, label %14, label %16
14: ; preds = %1
%15 = load i32, i32* %2
br label %19
16: ; preds = %1
%17 = load i32, i32* %2
%18 = sub nsw i32 0, %17
br label %19
19: ; preds = %16, %14
%20 = phi i32 [ %15, %14 ], [ %18, %16 ]
%21 = getelementptr inbounds [5 x i32], [5 x i32]* %3, i64 0, i64 4
store i32 %20, i32* %21
%22 = getelementptr inbounds [5 x i32], [5 x i32]* %3, i64 0, i64 4
%23 = load i32, i32* %22
%24 = call i32 @bits(i32 %23, i32 32, i32 17)
%25 = icmp eq i32 %24, 0
%26 = zext i1 %25 to i64
%27 = select i1 %25, i32 0, i32 1
store i32 %27, i32* %5
%28 = load i32, i32* %5
%29 = shl i32 %28, 1
store i32 %29, i32* %5
%30 = getelementptr inbounds [5 x i32], [5 x i32]* %3, i64 0, i64 4
%31 = load i32, i32* %30
%32 = call i32 @bits(i32 %31, i32 32, i32 17)
%33 = icmp eq i32 %32, 0
br i1 %33, label %34, label %38
34: ; preds = %19
%35 = getelementptr inbounds [5 x i32], [5 x i32]* %3, i64 0, i64 4
%36 = load i32, i32* %35
%37 = shl i32 %36, 16
br label %41
38: ; preds = %19
%39 = getelementptr inbounds [5 x i32], [5 x i32]* %3, i64 0, i64 4
%40 = load i32, i32* %39
br label %41
41: ; preds = %38, %34
%42 = phi i32 [ %37, %34 ], [ %40, %38 ]
%43 = getelementptr inbounds [5 x i32], [5 x i32]* %3, i64 0, i64 3
store i32 %42, i32* %43
%44 = getelementptr inbounds [5 x i32], [5 x i32]* %3, i64 0, i64 3
%45 = load i32, i32* %44
%46 = call i32 @bits(i32 %45, i32 32, i32 25)
%47 = icmp eq i32 %46, 0
%48 = zext i1 %47 to i64
%49 = select i1 %47, i32 0, i32 1
%50 = load i32, i32* %5
%51 = or i32 %50, %49
store i32 %51, i32* %5
%52 = load i32, i32* %5
%53 = shl i32 %52, 1
store i32 %53, i32* %5
%54 = getelementptr inbounds [5 x i32], [5 x i32]* %3, i64 0, i64 3
%55 = load i32, i32* %54
%56 = call i32 @bits(i32 %55, i32 32, i32 25)
%57 = icmp eq i32 %56, 0
br i1 %57, label %58, label %62
58: ; preds = %41
%59 = getelementptr inbounds [5 x i32], [5 x i32]* %3, i64 0, i64 3
%60 = load i32, i32* %59
%61 = shl i32 %60, 8
br label %65
62: ; preds = %41
%63 = getelementptr inbounds [5 x i32], [5 x i32]* %3, i64 0, i64 3
%64 = load i32, i32* %63
br label %65
65: ; preds = %62, %58
%66 = phi i32 [ %61, %58 ], [ %64, %62 ]
%67 = getelementptr inbounds [5 x i32], [5 x i32]* %3, i64 0, i64 2
store i32 %66, i32* %67
%68 = getelementptr inbounds [5 x i32], [5 x i32]* %3, i64 0, i64 2
%69 = load i32, i32* %68
%70 = call i32 @bits(i32 %69, i32 32, i32 29)
%71 = icmp eq i32 %70, 0
%72 = zext i1 %71 to i64
%73 = select i1 %71, i32 0, i32 1
%74 = load i32, i32* %5
%75 = or i32 %74, %73
store i32 %75, i32* %5
%76 = load i32, i32* %5
%77 = shl i32 %76, 1
store i32 %77, i32* %5
%78 = getelementptr inbounds [5 x i32], [5 x i32]* %3, i64 0, i64 2
%79 = load i32, i32* %78
%80 = call i32 @bits(i32 %79, i32 32, i32 29)
%81 = icmp eq i32 %80, 0
br i1 %81, label %82, label %86
82: ; preds = %65
%83 = getelementptr inbounds [5 x i32], [5 x i32]* %3, i64 0, i64 2
%84 = load i32, i32* %83
%85 = shl i32 %84, 4
br label %89
86: ; preds = %65
%87 = getelementptr inbounds [5 x i32], [5 x i32]* %3, i64 0, i64 2
%88 = load i32, i32* %87
br label %89
89: ; preds = %86, %82
%90 = phi i32 [ %85, %82 ], [ %88, %86 ]
%91 = getelementptr inbounds [5 x i32], [5 x i32]* %3, i64 0, i64 1
store i32 %90, i32* %91
%92 = getelementptr inbounds [5 x i32], [5 x i32]* %3, i64 0, i64 1
%93 = load i32, i32* %92
%94 = call i32 @bits(i32 %93, i32 32, i32 31)
%95 = icmp eq i32 %94, 0
%96 = zext i1 %95 to i64
%97 = select i1 %95, i32 0, i32 1
%98 = load i32, i32* %5
%99 = or i32 %98, %97
store i32 %99, i32* %5
%100 = load i32, i32* %5
%101 = shl i32 %100, 1
store i32 %101, i32* %5
%102 = getelementptr inbounds [5 x i32], [5 x i32]* %3, i64 0, i64 1
%103 = load i32, i32* %102
%104 = call i32 @bits(i32 %103, i32 32, i32 31)
%105 = icmp eq i32 %104, 0
br i1 %105, label %106, label %110
106: ; preds = %89
%107 = getelementptr inbounds [5 x i32], [5 x i32]* %3, i64 0, i64 1
%108 = load i32, i32* %107
%109 = shl i32 %108, 2
br label %113
110: ; preds = %89
%111 = getelementptr inbounds [5 x i32], [5 x i32]* %3, i64 0, i64 1
%112 = load i32, i32* %111
br label %113
113: ; preds = %110, %106
%114 = phi i32 [ %109, %106 ], [ %112, %110 ]
%115 = getelementptr inbounds [5 x i32], [5 x i32]* %3, i64 0, i64 0
store i32 %114, i32* %115
%116 = getelementptr inbounds [5 x i32], [5 x i32]* %3, i64 0, i64 0
%117 = load i32, i32* %116
%118 = call i32 @bits(i32 %117, i32 32, i32 32)
%119 = icmp eq i32 %118, 0
%120 = zext i1 %119 to i64
%121 = select i1 %119, i32 0, i32 1
%122 = load i32, i32* %5
%123 = or i32 %122, %121
store i32 %123, i32* %5
%124 = getelementptr inbounds [5 x i32], [5 x i32]* %3, i64 0, i64 0
%125 = load i32, i32* %124
%126 = call i32 @bits(i32 %125, i32 32, i32 32)
%127 = icmp eq i32 %126, 0
br i1 %127, label %128, label %132
128: ; preds = %113
%129 = getelementptr inbounds [5 x i32], [5 x i32]* %3, i64 0, i64 0
%130 = load i32, i32* %129
%131 = shl i32 %130, 1
br label %135
132: ; preds = %113
%133 = getelementptr inbounds [5 x i32], [5 x i32]* %3, i64 0, i64 0
%134 = load i32, i32* %133
br label %135
135: ; preds = %132, %128
%136 = phi i32 [ %131, %128 ], [ %134, %132 ]
store i32 %136, i32* %4
%137 = load i32, i32* %4
%138 = call i32 @bits(i32 %137, i32 7, i32 0)
%139 = icmp eq i32 %138, 0
%140 = zext i1 %139 to i64
%141 = select i1 %139, i32 0, i32 1
store i32 %141, i32* %6
%142 = load i32, i32* %4
%143 = call i32 @bits(i32 %142, i32 8, i32 8)
%144 = load i32, i32* %6
%145 = and i32 %143, %144
%146 = load i32, i32* %4
%147 = call i32 @bits(i32 %146, i32 9, i32 9)
%148 = load i32, i32* %4
%149 = call i32 @bits(i32 %148, i32 8, i32 8)
%150 = and i32 %147, %149
%151 = or i32 %145, %150
store i32 %151, i32* %7
%152 = load i32, i32* %4
%153 = call i32 @bits(i32 %152, i32 32, i32 9)
%154 = load i32, i32* %7
%155 = add nsw i32 %153, %154
store i32 %155, i32* %8
%156 = load i32, i32* %8
%157 = call i32 @bits(i32 %156, i32 23, i32 23)
%158 = icmp eq i32 %157, 0
br i1 %158, label %159, label %162
159: ; preds = %135
%160 = load i32, i32* %8
%161 = call i32 @bits(i32 %160, i32 21, i32 0)
br label %165
162: ; preds = %135
%163 = load i32, i32* %8
%164 = call i32 @bits(i32 %163, i32 22, i32 0)
br label %165
165: ; preds = %162, %159
%166 = phi i32 [ %161, %159 ], [ %164, %162 ]
store i32 %166, i32* %9
%167 = load i32, i32* %4
%168 = call i32 @bits(i32 %167, i32 32, i32 31)
%169 = icmp eq i32 %168, 0
br i1 %169, label %170, label %171
170: ; preds = %165
br label %193
171: ; preds = %165
%172 = load i32, i32* %4
%173 = call i32 @bits(i32 %172, i32 32, i32 31)
%174 = icmp eq i32 %173, 1
br i1 %174, label %175, label %176
175: ; preds = %171
br label %191
176: ; preds = %171
%177 = load i32, i32* %8
%178 = call i32 @bits(i32 %177, i32 23, i32 23)
%179 = icmp eq i32 %178, 0
br i1 %179, label %180, label %185
180: ; preds = %176
%181 = load i32, i32* %5
%182 = add nsw i32 %181, 1
%183 = call i32 @bits(i32 %182, i32 4, i32 0)
%184 = or i32 128, %183
br label %189
185: ; preds = %176
%186 = load i32, i32* %5
%187 = call i32 @bits(i32 %186, i32 4, i32 0)
%188 = or i32 128, %187
br label %189
189: ; preds = %185, %180
%190 = phi i32 [ %184, %180 ], [ %188, %185 ]
br label %191
191: ; preds = %189, %175
%192 = phi i32 [ 127, %175 ], [ %190, %189 ]
br label %193
193: ; preds = %191, %170
%194 = phi i32 [ 0, %170 ], [ %192, %191 ]
store i32 %194, i32* %10
%195 = load i32, i32* %2
%196 = call i32 @bits(i32 %195, i32 31, i32 31)
%197 = shl i32 %196, 31
%198 = load i32, i32* %10
%199 = shl i32 %198, 23
%200 = or i32 %197, %199
%201 = load i32, i32* %9
%202 = or i32 %200, %201
%203 = call float @uint_as_float(i32 %202)
ret float %203
}

LLVM IR (-O2):
define float @itof_circuit(i32 %0) {
%2 = tail call i32 @bits(i32 %0, i32 31, i32 31)
%3 = icmp eq i32 %2, 0
%4 = sub nsw i32 0, %0
%5 = select i1 %3, i32 %0, i32 %4
%6 = tail call i32 @bits(i32 %5, i32 32, i32 17)
%7 = icmp eq i32 %6, 0
%8 = select i1 %7, i32 0, i32 2
%9 = tail call i32 @bits(i32 %5, i32 32, i32 17)
%10 = icmp eq i32 %9, 0
%11 = shl i32 %5, 16
%12 = select i1 %10, i32 %11, i32 %5
%13 = tail call i32 @bits(i32 %12, i32 32, i32 25)
%14 = icmp ne i32 %13, 0
%15 = zext i1 %14 to i32
%16 = or i32 %8, %15
%17 = tail call i32 @bits(i32 %12, i32 32, i32 25)
%18 = icmp eq i32 %17, 0
%19 = shl i32 %12, 8
%20 = select i1 %18, i32 %19, i32 %12
%21 = tail call i32 @bits(i32 %20, i32 32, i32 29)
%22 = icmp eq i32 %21, 0
%23 = shl nuw nsw i32 %16, 2
%24 = select i1 %22, i32 0, i32 2
%25 = or i32 %23, %24
%26 = tail call i32 @bits(i32 %20, i32 32, i32 29)
%27 = icmp eq i32 %26, 0
%28 = shl i32 %20, 4
%29 = select i1 %27, i32 %28, i32 %20
%30 = tail call i32 @bits(i32 %29, i32 32, i32 31)
%31 = icmp ne i32 %30, 0
%32 = zext i1 %31 to i32
%33 = or i32 %25, %32
%34 = shl nuw nsw i32 %33, 1
%35 = tail call i32 @bits(i32 %29, i32 32, i32 31)
%36 = icmp eq i32 %35, 0
%37 = shl i32 %29, 2
%38 = select i1 %36, i32 %37, i32 %29
%39 = tail call i32 @bits(i32 %38, i32 32, i32 32)
%40 = icmp ne i32 %39, 0
%41 = zext i1 %40 to i32
%42 = or i32 %34, %41
%43 = tail call i32 @bits(i32 %38, i32 32, i32 32)
%44 = icmp eq i32 %43, 0
%45 = zext i1 %44 to i32
%46 = shl i32 %38, %45
%47 = tail call i32 @bits(i32 %46, i32 7, i32 0)
%48 = icmp ne i32 %47, 0
%49 = zext i1 %48 to i32
%50 = tail call i32 @bits(i32 %46, i32 8, i32 8)
%51 = and i32 %50, %49
%52 = tail call i32 @bits(i32 %46, i32 9, i32 9)
%53 = tail call i32 @bits(i32 %46, i32 8, i32 8)
%54 = and i32 %53, %52
%55 = or i32 %54, %51
%56 = tail call i32 @bits(i32 %46, i32 32, i32 9)
%57 = add nsw i32 %55, %56
%58 = tail call i32 @bits(i32 %57, i32 23, i32 23)
%59 = icmp eq i32 %58, 0
%60 = select i1 %59, i32 21, i32 22
%61 = tail call i32 @bits(i32 %57, i32 %60, i32 0)
%62 = tail call i32 @bits(i32 %46, i32 32, i32 31)
%63 = icmp eq i32 %62, 0
br i1 %63, label %75, label %64
64: ; preds = %1
%65 = tail call i32 @bits(i32 %46, i32 32, i32 31)
%66 = icmp eq i32 %65, 1
br i1 %66, label %75, label %67
67: ; preds = %64
%68 = tail call i32 @bits(i32 %57, i32 23, i32 23)
%69 = icmp eq i32 %68, 0
%70 = zext i1 %69 to i32
%71 = add nsw i32 %42, %70
%72 = tail call i32 @bits(i32 %71, i32 4, i32 0)
%73 = shl i32 %72, 23
%74 = or i32 %73, 1073741824
br label %75
75: ; preds = %67, %64, %1
%76 = phi i32 [ 0, %1 ], [ 1065353216, %64 ], [ %74, %67 ]
%77 = tail call i32 @bits(i32 %0, i32 31, i32 31)
%78 = shl i32 %77, 31
%79 = or i32 %76, %61
%80 = or i32 %79, %78
%81 = tail call float @uint_as_float(i32 %80)
ret float %81
}