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

/* Forward declarations */

/* Type definitions */

/* Variables and functions */
int /*<<< orphan*/ printf(char *, ...);
void binaryfunk2(unsigned char *bits) {
  unsigned char sign[1];
  unsigned char exponent[8];
  unsigned char mantissa[23];
  int i;
  unsigned char usefulBitsOneToOne[8];
  unsigned char usefulBitsZeroToTwo[8];
  sign[0] = bits[0] & 0x80;
  for (i = 0; i < 7; i++) {
    exponent[i] = bits[0] & (2 ^ (6 - i));
    printf("%d", (2 ^ (6 - i)));
  }
  exponent[7] = bits[1] & 0x80;
  for (i = 0; i < 7; i++) {
    mantissa[i] = bits[1] & (2 ^ (6 - i));
  }
  for (i = 7; i < 15; i++) {
    mantissa[i] = bits[2] & (2 ^ (14 - i));
  }
  for (i = 15; i < 23; i++) {
    mantissa[i] = bits[3] & (2 ^ (22 - i));
  }
  if (!(exponent[0] == 0 &&
        exponent[1] == exponent[2] == exponent[3] == exponent[4] == 1)) {
    printf("Too Large or Small");
    return;
  }
  usefulBitsZeroToTwo[0] = (exponent[7] & exponent[6] & exponent[5]);
  for (i = 22; i >= 15; i--)
    usefulBitsZeroToTwo[i - 15] = mantissa[i];
  usefulBitsOneToOne[0] = sign[0];
  for (i = 22; i >= 15; i--)
    usefulBitsOneToOne[i - 15] = mantissa[i];
  printf("signed bit: %s\n", sign);
  printf("exponent: %s\n", exponent);
  printf("mantissa: %s\n", mantissa);
  printf("Entire 32bit binary: %s%s%s\n", sign, exponent, mantissa);
  printf("Useful Bits from Zero to Two: %s\n", usefulBitsZeroToTwo);
  printf("Useful Bits from -1 to 1: %s\n", usefulBitsOneToOne);
}


x86 assembly (clang, -O0):
<binaryfunk2>:
push   %rbp
mov    %rsp,%rbp
sub    $0x50,%rsp
mov    %rdi,-0x8(%rbp)
mov    -0x8(%rbp),%rax
movzbl (%rax),%eax
and    $0x80,%eax
mov    %al,-0x9(%rbp)
movl   $0x0,-0x34(%rbp)
cmpl   $0x7,-0x34(%rbp)
jge    1181 <binaryfunk2+0x71>
mov    -0x8(%rbp),%rax
movzbl (%rax),%eax
mov    $0x6,%ecx
sub    -0x34(%rbp),%ecx
xor    $0x2,%ecx
and    %ecx,%eax
mov    %al,%cl
movslq -0x34(%rbp),%rax
mov    %cl,-0x11(%rbp,%rax,1)
mov    $0x6,%esi
sub    -0x34(%rbp),%esi
xor    $0x2,%esi
lea    0xe94(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
mov    -0x34(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x34(%rbp)
jmp    1132 <binaryfunk2+0x22>
mov    -0x8(%rbp),%rax
movzbl 0x1(%rax),%eax
and    $0x80,%eax
mov    %al,-0xa(%rbp)
movl   $0x0,-0x34(%rbp)
cmpl   $0x7,-0x34(%rbp)
jge    11cf <binaryfunk2+0xbf>
mov    -0x8(%rbp),%rax
movzbl 0x1(%rax),%eax
mov    $0x6,%ecx
sub    -0x34(%rbp),%ecx
xor    $0x2,%ecx
and    %ecx,%eax
mov    %al,%cl
movslq -0x34(%rbp),%rax
mov    %cl,-0x30(%rbp,%rax,1)
mov    -0x34(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x34(%rbp)
jmp    1198 <binaryfunk2+0x88>
movl   $0x7,-0x34(%rbp)
cmpl   $0xf,-0x34(%rbp)
jge    120d <binaryfunk2+0xfd>
mov    -0x8(%rbp),%rax
movzbl 0x2(%rax),%eax
mov    $0xe,%ecx
sub    -0x34(%rbp),%ecx
xor    $0x2,%ecx
and    %ecx,%eax
mov    %al,%cl
movslq -0x34(%rbp),%rax
mov    %cl,-0x30(%rbp,%rax,1)
mov    -0x34(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x34(%rbp)
jmp    11d6 <binaryfunk2+0xc6>
movl   $0xf,-0x34(%rbp)
cmpl   $0x17,-0x34(%rbp)
jge    124b <binaryfunk2+0x13b>
mov    -0x8(%rbp),%rax
movzbl 0x3(%rax),%eax
mov    $0x16,%ecx
sub    -0x34(%rbp),%ecx
xor    $0x2,%ecx
and    %ecx,%eax
mov    %al,%cl
movslq -0x34(%rbp),%rax
mov    %cl,-0x30(%rbp,%rax,1)
mov    -0x34(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x34(%rbp)
jmp    1214 <binaryfunk2+0x104>
movzbl -0x11(%rbp),%eax
cmp    $0x0,%eax
jne    128f <binaryfunk2+0x17f>
movzbl -0x10(%rbp),%eax
movzbl -0xf(%rbp),%ecx
cmp    %ecx,%eax
sete   %al
and    $0x1,%al
movzbl %al,%eax
movzbl -0xe(%rbp),%ecx
cmp    %ecx,%eax
sete   %al
and    $0x1,%al
movzbl %al,%eax
movzbl -0xd(%rbp),%ecx
cmp    %ecx,%eax
sete   %al
and    $0x1,%al
movzbl %al,%eax
cmp    $0x1,%eax
je     12a2 <binaryfunk2+0x192>
lea    0xd6d(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
jmp    1395 <binaryfunk2+0x285>
movzbl -0xa(%rbp),%eax
movzbl -0xb(%rbp),%ecx
and    %ecx,%eax
movzbl -0xc(%rbp),%ecx
and    %ecx,%eax
mov    %al,-0x44(%rbp)
movl   $0x16,-0x34(%rbp)
cmpl   $0xf,-0x34(%rbp)
jl     12e8 <binaryfunk2+0x1d8>
movslq -0x34(%rbp),%rax
mov    -0x30(%rbp,%rax,1),%cl
mov    -0x34(%rbp),%eax
sub    $0xf,%eax
cltq
mov    %cl,-0x44(%rbp,%rax,1)
mov    -0x34(%rbp),%eax
add    $0xffffffff,%eax
mov    %eax,-0x34(%rbp)
jmp    12bc <binaryfunk2+0x1ac>
mov    -0x9(%rbp),%al
mov    %al,-0x3c(%rbp)
movl   $0x16,-0x34(%rbp)
cmpl   $0xf,-0x34(%rbp)
jl     1321 <binaryfunk2+0x211>
movslq -0x34(%rbp),%rax
mov    -0x30(%rbp,%rax,1),%cl
mov    -0x34(%rbp),%eax
sub    $0xf,%eax
cltq
mov    %cl,-0x3c(%rbp,%rax,1)
mov    -0x34(%rbp),%eax
add    $0xffffffff,%eax
mov    %eax,-0x34(%rbp)
jmp    12f5 <binaryfunk2+0x1e5>
lea    -0x9(%rbp),%rsi
lea    0xcea(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    -0x11(%rbp),%rsi
lea    0xce8(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    -0x30(%rbp),%rsi
lea    0xce4(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    -0x9(%rbp),%rsi
lea    -0x11(%rbp),%rdx
lea    -0x30(%rbp),%rcx
lea    0xcd8(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    -0x44(%rbp),%rsi
lea    0xce3(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    -0x3c(%rbp),%rsi
lea    0xcf3(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
add    $0x50,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<binaryfunk2>:
push   %rbp
push   %r15
push   %r14
push   %rbx
sub    $0x38,%rsp
mov    %rdi,%rbx
mov    (%rdi),%al
mov    %eax,%ecx
and    $0x80,%cl
mov    %cl,0x7(%rsp)
and    $0x4,%al
mov    %al,0x8(%rsp)
lea    0xecb(%rip),%r14
mov    %r14,%rdi
mov    $0x4,%esi
xor    %eax,%eax
call   1030 <printf@plt>
mov    (%rbx),%al
and    $0x7,%al
mov    %al,0x9(%rsp)
mov    %r14,%rdi
mov    $0x7,%esi
xor    %eax,%eax
call   1030 <printf@plt>
mov    (%rbx),%bpl
and    $0x6,%bpl
mov    %bpl,0xa(%rsp)
mov    %r14,%rdi
mov    $0x6,%esi
xor    %eax,%eax
call   1030 <printf@plt>
mov    (%rbx),%r15b
mov    %r15d,%eax
and    $0x1,%al
mov    %al,0xb(%rsp)
mov    %r14,%rdi
mov    $0x1,%esi
xor    %eax,%eax
call   1030 <printf@plt>
movb   $0x0,0xc(%rsp)
mov    %r14,%rdi
xor    %esi,%esi
xor    %eax,%eax
call   1030 <printf@plt>
mov    (%rbx),%al
and    $0x3,%al
mov    %al,0xd(%rsp)
mov    %r14,%rdi
mov    $0x3,%esi
xor    %eax,%eax
call   1030 <printf@plt>
mov    (%rbx),%al
and    $0x2,%al
mov    %al,0xe(%rsp)
mov    %r14,%rdi
mov    $0x2,%esi
xor    %eax,%eax
call   1030 <printf@plt>
mov    0x1(%rbx),%al
mov    %eax,%ecx
and    $0x80,%cl
mov    %cl,0xf(%rsp)
mov    %eax,%ecx
and    $0x4,%cl
mov    %cl,0x10(%rsp)
mov    %eax,%ecx
and    $0x7,%cl
mov    %cl,0x11(%rsp)
mov    %eax,%ecx
and    $0x6,%cl
mov    %cl,0x12(%rsp)
mov    %eax,%ecx
and    $0x1,%cl
mov    %cl,0x13(%rsp)
movb   $0x0,0x14(%rsp)
mov    %eax,%ecx
and    $0x3,%cl
mov    %cl,0x15(%rsp)
and    $0x2,%al
mov    %al,0x16(%rsp)
mov    0x2(%rbx),%al
mov    %eax,%ecx
and    $0x5,%cl
mov    %cl,0x17(%rsp)
mov    %eax,%ecx
and    $0x4,%cl
mov    %cl,0x18(%rsp)
mov    %eax,%ecx
and    $0x7,%cl
mov    %cl,0x19(%rsp)
mov    %eax,%ecx
and    $0x6,%cl
mov    %cl,0x1a(%rsp)
mov    %eax,%ecx
and    $0x1,%cl
mov    %cl,0x1b(%rsp)
movb   $0x0,0x1c(%rsp)
mov    %eax,%ecx
and    $0x3,%cl
mov    %cl,0x1d(%rsp)
and    $0x2,%al
mov    %al,0x1e(%rsp)
mov    0x3(%rbx),%al
mov    %eax,%ecx
and    $0x5,%cl
mov    %cl,0x1f(%rsp)
mov    %eax,%ecx
and    $0x4,%cl
mov    %cl,0x20(%rsp)
mov    %eax,%ecx
and    $0x7,%cl
mov    %cl,0x21(%rsp)
mov    %eax,%ecx
and    $0x6,%cl
mov    %cl,0x22(%rsp)
mov    %eax,%ecx
and    $0x1,%cl
mov    %cl,0x23(%rsp)
movb   $0x0,0x24(%rsp)
mov    %eax,%ecx
and    $0x3,%cl
mov    %cl,0x25(%rsp)
and    $0x2,%al
mov    %al,0x26(%rsp)
cmpb   $0x0,0x8(%rsp)
jne    1353 <binaryfunk2+0x243>
cmp    %bpl,0x9(%rsp)
sete   %al
xor    %r15b,%al
test   $0x1,%al
je     1353 <binaryfunk2+0x243>
mov    0x1f(%rsp),%rax
mov    %rax,0x28(%rsp)
mov    %rax,0x30(%rsp)
lea    0xd46(%rip),%rdi
lea    0x7(%rsp),%r14
mov    %r14,%rsi
xor    %eax,%eax
call   1030 <printf@plt>
lea    0xd40(%rip),%rdi
lea    0x8(%rsp),%r15
mov    %r15,%rsi
xor    %eax,%eax
call   1030 <printf@plt>
lea    0xd38(%rip),%rdi
lea    0x10(%rsp),%rbx
mov    %rbx,%rsi
xor    %eax,%eax
call   1030 <printf@plt>
lea    0xd30(%rip),%rdi
mov    %r14,%rsi
mov    %r15,%rdx
mov    %rbx,%rcx
xor    %eax,%eax
call   1030 <printf@plt>
lea    0xd36(%rip),%rdi
lea    0x28(%rsp),%rsi
xor    %eax,%eax
call   1030 <printf@plt>
lea    0xd45(%rip),%rdi
lea    0x30(%rsp),%rsi
xor    %eax,%eax
call   1030 <printf@plt>
add    $0x38,%rsp
pop    %rbx
pop    %r14
pop    %r15
pop    %rbp
ret
lea    0xca9(%rip),%rdi
xor    %eax,%eax
add    $0x38,%rsp
pop    %rbx
pop    %r14
pop    %r15
pop    %rbp
jmp    1030 <printf@plt>

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

LLVM IR (-O2):
@.str = [3 x i8] c"%d\00"
@.str.1 = [19 x i8] c"Too Large or Small\00"
@.str.2 = [16 x i8] c"signed bit: %s\0A\00"
@.str.3 = [14 x i8] c"exponent: %s\0A\00"
@.str.4 = [14 x i8] c"mantissa: %s\0A\00"
@.str.5 = [29 x i8] c"Entire 32bit binary: %s%s%s\0A\00"
@.str.6 = [34 x i8] c"Useful Bits from Zero to Two: %s\0A\00"
@.str.7 = [30 x i8] c"Useful Bits from -1 to 1: %s\0A\00"
define void @binaryfunk2(i8* nocapture %0) {
%2 = alloca [1 x i8]
%3 = alloca [8 x i8]
%4 = alloca [23 x i8]
%5 = alloca i64
%6 = alloca i64
%7 = getelementptr inbounds [1 x i8], [1 x i8]* %2, i64 0, i64 0
%8 = getelementptr inbounds [8 x i8], [8 x i8]* %3, i64 0, i64 0
%9 = getelementptr inbounds [23 x i8], [23 x i8]* %4, i64 0, i64 0
%10 = bitcast i64* %5 to i8*
%11 = bitcast i64* %6 to i8*
%12 = load i8, i8* %0
%13 = and i8 %12, -128
store i8 %13, i8* %7
%14 = and i8 %12, 4
store i8 %14, i8* %8
%15 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([3 x i8], [3 x i8]* @.str, i64 0, i64 0), i32 4)
%16 = load i8, i8* %0
%17 = and i8 %16, 7
%18 = getelementptr inbounds [8 x i8], [8 x i8]* %3, i64 0, i64 1
store i8 %17, i8* %18
%19 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([3 x i8], [3 x i8]* @.str, i64 0, i64 0), i32 7)
%20 = load i8, i8* %0
%21 = and i8 %20, 6
%22 = getelementptr inbounds [8 x i8], [8 x i8]* %3, i64 0, i64 2
store i8 %21, i8* %22
%23 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([3 x i8], [3 x i8]* @.str, i64 0, i64 0), i32 6)
%24 = load i8, i8* %0
%25 = and i8 %24, 1
%26 = getelementptr inbounds [8 x i8], [8 x i8]* %3, i64 0, i64 3
store i8 %25, i8* %26
%27 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([3 x i8], [3 x i8]* @.str, i64 0, i64 0), i32 1)
%28 = getelementptr inbounds [8 x i8], [8 x i8]* %3, i64 0, i64 4
store i8 0, i8* %28
%29 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([3 x i8], [3 x i8]* @.str, i64 0, i64 0), i32 0)
%30 = load i8, i8* %0
%31 = and i8 %30, 3
%32 = getelementptr inbounds [8 x i8], [8 x i8]* %3, i64 0, i64 5
store i8 %31, i8* %32
%33 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([3 x i8], [3 x i8]* @.str, i64 0, i64 0), i32 3)
%34 = load i8, i8* %0
%35 = and i8 %34, 2
%36 = getelementptr inbounds [8 x i8], [8 x i8]* %3, i64 0, i64 6
store i8 %35, i8* %36
%37 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([3 x i8], [3 x i8]* @.str, i64 0, i64 0), i32 2)
%38 = getelementptr inbounds i8, i8* %0, i64 1
%39 = load i8, i8* %38
%40 = and i8 %39, -128
%41 = getelementptr inbounds [8 x i8], [8 x i8]* %3, i64 0, i64 7
store i8 %40, i8* %41
%42 = and i8 %39, 4
store i8 %42, i8* %9
%43 = and i8 %39, 7
%44 = getelementptr inbounds [23 x i8], [23 x i8]* %4, i64 0, i64 1
store i8 %43, i8* %44
%45 = and i8 %39, 6
%46 = getelementptr inbounds [23 x i8], [23 x i8]* %4, i64 0, i64 2
store i8 %45, i8* %46
%47 = and i8 %39, 1
%48 = getelementptr inbounds [23 x i8], [23 x i8]* %4, i64 0, i64 3
store i8 %47, i8* %48
%49 = getelementptr inbounds [23 x i8], [23 x i8]* %4, i64 0, i64 4
store i8 0, i8* %49
%50 = and i8 %39, 3
%51 = getelementptr inbounds [23 x i8], [23 x i8]* %4, i64 0, i64 5
store i8 %50, i8* %51
%52 = and i8 %39, 2
%53 = getelementptr inbounds [23 x i8], [23 x i8]* %4, i64 0, i64 6
store i8 %52, i8* %53
%54 = getelementptr inbounds i8, i8* %0, i64 2
%55 = load i8, i8* %54
%56 = and i8 %55, 5
%57 = getelementptr inbounds [23 x i8], [23 x i8]* %4, i64 0, i64 7
store i8 %56, i8* %57
%58 = and i8 %55, 4
%59 = getelementptr inbounds [23 x i8], [23 x i8]* %4, i64 0, i64 8
store i8 %58, i8* %59
%60 = and i8 %55, 7
%61 = getelementptr inbounds [23 x i8], [23 x i8]* %4, i64 0, i64 9
store i8 %60, i8* %61
%62 = and i8 %55, 6
%63 = getelementptr inbounds [23 x i8], [23 x i8]* %4, i64 0, i64 10
store i8 %62, i8* %63
%64 = and i8 %55, 1
%65 = getelementptr inbounds [23 x i8], [23 x i8]* %4, i64 0, i64 11
store i8 %64, i8* %65
%66 = getelementptr inbounds [23 x i8], [23 x i8]* %4, i64 0, i64 12
store i8 0, i8* %66
%67 = and i8 %55, 3
%68 = getelementptr inbounds [23 x i8], [23 x i8]* %4, i64 0, i64 13
store i8 %67, i8* %68
%69 = and i8 %55, 2
%70 = getelementptr inbounds [23 x i8], [23 x i8]* %4, i64 0, i64 14
store i8 %69, i8* %70
%71 = getelementptr inbounds i8, i8* %0, i64 3
%72 = load i8, i8* %71
%73 = and i8 %72, 5
%74 = getelementptr inbounds [23 x i8], [23 x i8]* %4, i64 0, i64 15
store i8 %73, i8* %74
%75 = and i8 %72, 4
%76 = getelementptr inbounds [23 x i8], [23 x i8]* %4, i64 0, i64 16
store i8 %75, i8* %76
%77 = and i8 %72, 7
%78 = getelementptr inbounds [23 x i8], [23 x i8]* %4, i64 0, i64 17
store i8 %77, i8* %78
%79 = and i8 %72, 6
%80 = getelementptr inbounds [23 x i8], [23 x i8]* %4, i64 0, i64 18
store i8 %79, i8* %80
%81 = and i8 %72, 1
%82 = getelementptr inbounds [23 x i8], [23 x i8]* %4, i64 0, i64 19
store i8 %81, i8* %82
%83 = getelementptr inbounds [23 x i8], [23 x i8]* %4, i64 0, i64 20
store i8 0, i8* %83
%84 = and i8 %72, 3
%85 = getelementptr inbounds [23 x i8], [23 x i8]* %4, i64 0, i64 21
store i8 %84, i8* %85
%86 = and i8 %72, 2
%87 = getelementptr inbounds [23 x i8], [23 x i8]* %4, i64 0, i64 22
store i8 %86, i8* %87
%88 = load i8, i8* %8
%89 = icmp eq i8 %88, 0
br i1 %89, label %90, label %96
90: ; preds = %1
%91 = load i8, i8* %18
%92 = icmp eq i8 %91, %21
%93 = and i8 %24, 1
%94 = icmp ne i8 %93, 0
%95 = xor i1 %92, %94
br i1 %95, label %98, label %96
96: ; preds = %90, %1
%97 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([19 x i8], [19 x i8]* @.str.1, i64 0, i64 0))
br label %107
98: ; preds = %90
%99 = bitcast i8* %74 to i64*
%100 = load i64, i64* %99
store i64 %100, i64* %6
store i64 %100, i64* %5
%101 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([16 x i8], [16 x i8]* @.str.2, i64 0, i64 0), i8* %7)
%102 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([14 x i8], [14 x i8]* @.str.3, i64 0, i64 0), i8* %8)
%103 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([14 x i8], [14 x i8]* @.str.4, i64 0, i64 0), i8* %9)
%104 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([29 x i8], [29 x i8]* @.str.5, i64 0, i64 0), i8* %7, i8* %8, i8* %9)
%105 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([34 x i8], [34 x i8]* @.str.6, i64 0, i64 0), i64* %6)
%106 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([30 x i8], [30 x i8]* @.str.7, i64 0, i64 0), i64* %5)
br label %107
107: ; preds = %98, %96
ret void
}