#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 */
double CDec(int *, int /*<<< orphan*/, int);
int /*<<< orphan*/ CFloatBin(int *, float);
int /*<<< orphan*/ CIntBin(int *, int);
int /*<<< orphan*/ adder(int *, int *, int *, int);
int /*<<< orphan*/ dispArray(int *, int);
int /*<<< orphan*/ initArray(int *, int);
int /*<<< orphan*/ pow(int, int);
int /*<<< orphan*/ printf(char *, ...);
int /*<<< orphan*/ revBin(int *, int);
int main() {
  int target;
  int targetBin[8];
  target = 49;
  initArray(targetBin, 8);
  CIntBin(&targetBin[8 - 1], target);
  printf("1.)  49 is ");
  dispArray(targetBin, 8);
  int addBin[8];
  int c;
  target = -69;
  c = 0;
  initArray(targetBin, 8);
  initArray(addBin, 8);
  CIntBin(&targetBin[8 - 1], (-1) * target);
  CIntBin(&addBin[8 - 1], 1);
  revBin(targetBin, 8);
  adder(&targetBin[8 - 1], &addBin[8 - 1], &c, 8);
  printf("2.) -69 is ");
  dispArray(targetBin, 8);
  float targetFlort;
  targetFlort = 0.8125;
  initArray(targetBin, 8);
  CFloatBin(targetBin, targetFlort);
  printf("3.) 0.8125   is 0.");
  dispArray(targetBin, 8);
  int tmpBin[] = {1, 0, 1, 1, 0, 0, 1};
  int intPartDegit;
  int allDegit;
  intPartDegit = 3;
  allDegit = 7;
  printf("4.) 101.1001 is %f\n",
         CDec(tmpBin, pow(2, intPartDegit - 1), allDegit));
  int signedBin[] = {1, 1, 0, 1, 0, 0, 1};
  printf("5.) signed   1101001 is ");
  if (tmpBin[0] == 0) {
    allDegit = 7;
    printf("%f\n", CDec(signedBin, pow(2, allDegit - 1), allDegit));
  } else {
    allDegit = 7;
    c = 0;
    initArray(addBin, allDegit);
    revBin(signedBin, allDegit);
    CIntBin(&addBin[allDegit - 1], 1);
    adder(&signedBin[allDegit - 1], &addBin[allDegit - 1], &c, allDegit);
    printf("%.0f\n", -1 * CDec(signedBin, pow(2, allDegit - 1), allDegit));
  }
  int unsignedBin[] = {1, 1, 0, 1, 0, 0, 1};
  allDegit = 7;
  printf("6.) unsigned 1101001 is %.0f\n",
         CDec(unsignedBin, pow(2, allDegit - 1), allDegit));
  return 0;
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0xf0,%rsp
movl   $0x0,-0x4(%rbp)
movl   $0x31,-0x8(%rbp)
lea    -0x30(%rbp),%rdi
mov    $0x8,%esi
call   1060 <initArray@plt>
lea    -0x30(%rbp),%rdi
add    $0x1c,%rdi
mov    -0x8(%rbp),%esi
call   10b0 <CIntBin@plt>
lea    0xe42(%rip),%rdi
mov    $0x0,%al
call   1050 <printf@plt>
lea    -0x30(%rbp),%rdi
mov    $0x8,%esi
call   1030 <dispArray@plt>
movl   $0xffffffbb,-0x8(%rbp)
movl   $0x0,-0x54(%rbp)
lea    -0x30(%rbp),%rdi
mov    $0x8,%esi
call   1060 <initArray@plt>
lea    -0x50(%rbp),%rdi
mov    $0x8,%esi
call   1060 <initArray@plt>
lea    -0x30(%rbp),%rdi
add    $0x1c,%rdi
imul   $0xffffffff,-0x8(%rbp),%esi
call   10b0 <CIntBin@plt>
lea    -0x50(%rbp),%rdi
add    $0x1c,%rdi
mov    $0x1,%esi
call   10b0 <CIntBin@plt>
lea    -0x30(%rbp),%rdi
mov    $0x8,%esi
call   1080 <revBin@plt>
lea    -0x30(%rbp),%rdi
add    $0x1c,%rdi
lea    -0x50(%rbp),%rsi
add    $0x1c,%rsi
lea    -0x54(%rbp),%rdx
mov    $0x8,%ecx
call   1070 <adder@plt>
lea    0xdb6(%rip),%rdi
mov    $0x0,%al
call   1050 <printf@plt>
lea    -0x30(%rbp),%rdi
mov    $0x8,%esi
call   1030 <dispArray@plt>
movss  0xd7d(%rip),%xmm0
movss  %xmm0,-0x58(%rbp)
lea    -0x30(%rbp),%rdi
mov    $0x8,%esi
call   1060 <initArray@plt>
lea    -0x30(%rbp),%rdi
movss  -0x58(%rbp),%xmm0
call   1040 <CFloatBin@plt>
lea    0xd7d(%rip),%rdi
mov    $0x0,%al
call   1050 <printf@plt>
lea    -0x30(%rbp),%rdi
mov    $0x8,%esi
call   1030 <dispArray@plt>
mov    0xdc9(%rip),%rax
mov    %rax,-0x80(%rbp)
mov    0xdc6(%rip),%rax
mov    %rax,-0x78(%rbp)
mov    0xdc3(%rip),%rax
mov    %rax,-0x70(%rbp)
mov    0xdc1(%rip),%eax
mov    %eax,-0x68(%rbp)
movl   $0x3,-0x84(%rbp)
movl   $0x7,-0x88(%rbp)
lea    -0x80(%rbp),%rax
mov    %rax,-0xd8(%rbp)
mov    -0x84(%rbp),%esi
sub    $0x1,%esi
mov    $0x2,%edi
call   10a0 <pow@plt>
mov    -0xd8(%rbp),%rdi
mov    %eax,%esi
mov    -0x88(%rbp),%edx
call   1090 <CDec@plt>
lea    0xd04(%rip),%rdi
mov    $0x1,%al
call   1050 <printf@plt>
mov    0xd6b(%rip),%rax
mov    %rax,-0xb0(%rbp)
mov    0xd65(%rip),%rax
mov    %rax,-0xa8(%rbp)
mov    0xd5f(%rip),%rax
mov    %rax,-0xa0(%rbp)
mov    0xd5a(%rip),%eax
mov    %eax,-0x98(%rbp)
lea    0xcd4(%rip),%rdi
mov    $0x0,%al
call   1050 <printf@plt>
cmpl   $0x0,-0x80(%rbp)
jne    13de <main+0x24e>
movl   $0x7,-0x88(%rbp)
lea    -0xb0(%rbp),%rax
mov    %rax,-0xe0(%rbp)
mov    -0x88(%rbp),%esi
sub    $0x1,%esi
mov    $0x2,%edi
call   10a0 <pow@plt>
mov    -0xe0(%rbp),%rdi
mov    %eax,%esi
mov    -0x88(%rbp),%edx
call   1090 <CDec@plt>
lea    0xc79(%rip),%rdi
mov    $0x1,%al
call   1050 <printf@plt>
jmp    14c0 <main+0x330>
movl   $0x7,-0x88(%rbp)
movl   $0x0,-0x54(%rbp)
lea    -0x50(%rbp),%rdi
mov    -0x88(%rbp),%esi
call   1060 <initArray@plt>
lea    -0xb0(%rbp),%rdi
mov    -0x88(%rbp),%esi
call   1080 <revBin@plt>
mov    -0x88(%rbp),%eax
sub    $0x1,%eax
cltq
lea    -0x50(%rbp),%rdi
shl    $0x2,%rax
add    %rax,%rdi
mov    $0x1,%esi
call   10b0 <CIntBin@plt>
mov    -0x88(%rbp),%eax
sub    $0x1,%eax
cltq
lea    -0xb0(%rbp),%rdi
shl    $0x2,%rax
add    %rax,%rdi
mov    -0x88(%rbp),%eax
sub    $0x1,%eax
cltq
lea    -0x50(%rbp),%rsi
shl    $0x2,%rax
add    %rax,%rsi
mov    -0x88(%rbp),%ecx
lea    -0x54(%rbp),%rdx
call   1070 <adder@plt>
lea    -0xb0(%rbp),%rax
mov    %rax,-0xe8(%rbp)
mov    -0x88(%rbp),%esi
sub    $0x1,%esi
mov    $0x2,%edi
call   10a0 <pow@plt>
mov    -0xe8(%rbp),%rdi
mov    %eax,%esi
mov    -0x88(%rbp),%edx
call   1090 <CDec@plt>
movaps %xmm0,%xmm1
movsd  0xb5a(%rip),%xmm0
mulsd  %xmm1,%xmm0
lea    0xbc7(%rip),%rdi
mov    $0x1,%al
call   1050 <printf@plt>
mov    0xc09(%rip),%rax
mov    %rax,-0xd0(%rbp)
mov    0xc03(%rip),%rax
mov    %rax,-0xc8(%rbp)
mov    0xbfd(%rip),%rax
mov    %rax,-0xc0(%rbp)
mov    0xbf8(%rip),%eax
mov    %eax,-0xb8(%rbp)
movl   $0x7,-0x88(%rbp)
lea    -0xd0(%rbp),%rax
mov    %rax,-0xf0(%rbp)
mov    -0x88(%rbp),%esi
sub    $0x1,%esi
mov    $0x2,%edi
call   10a0 <pow@plt>
mov    -0xf0(%rbp),%rdi
mov    %eax,%esi
mov    -0x88(%rbp),%edx
call   1090 <CDec@plt>
lea    0xb2c(%rip),%rdi
mov    $0x1,%al
call   1050 <printf@plt>
xor    %eax,%eax
add    $0xf0,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %r15
push   %r14
push   %rbx
sub    $0xb0,%rsp
lea    0x90(%rsp),%rbx
mov    %rbx,%rdi
mov    $0x8,%esi
call   1060 <initArray@plt>
lea    0xac(%rsp),%r14
mov    %r14,%rdi
mov    $0x31,%esi
call   10b0 <CIntBin@plt>
lea    0xe53(%rip),%rdi
xor    %eax,%eax
call   1050 <printf@plt>
mov    %rbx,%rdi
mov    $0x8,%esi
call   1030 <dispArray@plt>
movl   $0x0,0xc(%rsp)
mov    %rbx,%rdi
mov    $0x8,%esi
call   1060 <initArray@plt>
lea    0x50(%rsp),%rdi
mov    $0x8,%esi
call   1060 <initArray@plt>
mov    %r14,%rdi
mov    $0x45,%esi
call   10b0 <CIntBin@plt>
lea    0x6c(%rsp),%r15
mov    %r15,%rdi
mov    $0x1,%esi
call   10b0 <CIntBin@plt>
mov    %rbx,%rdi
mov    $0x8,%esi
call   1080 <revBin@plt>
lea    0xc(%rsp),%rdx
mov    %r14,%rdi
mov    %r15,%rsi
mov    $0x8,%ecx
call   1070 <adder@plt>
lea    0xddf(%rip),%rdi
xor    %eax,%eax
call   1050 <printf@plt>
mov    %rbx,%rdi
mov    $0x8,%esi
call   1030 <dispArray@plt>
mov    %rbx,%rdi
mov    $0x8,%esi
call   1060 <initArray@plt>
movss  0xd8a(%rip),%xmm0
mov    %rbx,%rdi
call   1040 <CFloatBin@plt>
lea    0xdb3(%rip),%rdi
xor    %eax,%eax
call   1050 <printf@plt>
mov    %rbx,%rdi
mov    $0x8,%esi
call   1030 <dispArray@plt>
movups 0xe0c(%rip),%xmm0
movups %xmm0,0x3c(%rsp)
movaps 0xdf4(%rip),%xmm0
movaps %xmm0,0x30(%rsp)
mov    $0x2,%edi
mov    $0x2,%esi
call   10a0 <pow@plt>
lea    0x30(%rsp),%rdi
mov    %eax,%esi
mov    $0x7,%edx
call   1090 <CDec@plt>
lea    0xd73(%rip),%rdi
mov    $0x1,%al
call   1050 <printf@plt>
movups 0xde6(%rip),%xmm0
movups %xmm0,0x1c(%rsp)
movaps 0xdce(%rip),%xmm0
movaps %xmm0,0x10(%rsp)
lea    0xd61(%rip),%rdi
xor    %eax,%eax
call   1050 <printf@plt>
cmpl   $0x0,0x30(%rsp)
je     1390 <main+0x200>
movl   $0x0,0xc(%rsp)
lea    0x50(%rsp),%rdi
mov    $0x7,%esi
call   1060 <initArray@plt>
lea    0x10(%rsp),%r14
mov    %r14,%rdi
mov    $0x7,%esi
call   1080 <revBin@plt>
lea    0x68(%rsp),%rbx
mov    %rbx,%rdi
mov    $0x1,%esi
call   10b0 <CIntBin@plt>
lea    0x28(%rsp),%rdi
lea    0xc(%rsp),%rdx
mov    %rbx,%rsi
mov    $0x7,%ecx
call   1070 <adder@plt>
mov    $0x2,%edi
mov    $0x6,%esi
call   10a0 <pow@plt>
mov    %r14,%rdi
mov    %eax,%esi
mov    $0x7,%edx
call   1090 <CDec@plt>
xorps  0xc89(%rip),%xmm0
lea    0xd02(%rip),%rdi
jmp    13b7 <main+0x227>
mov    $0x2,%edi
mov    $0x6,%esi
call   10a0 <pow@plt>
lea    0x10(%rsp),%rdi
mov    %eax,%esi
mov    $0x7,%edx
call   1090 <CDec@plt>
lea    0xca4(%rip),%rdi
mov    $0x1,%al
call   1050 <printf@plt>
movups 0xd07(%rip),%xmm0
movups %xmm0,0x7c(%rsp)
movaps 0xcef(%rip),%xmm0
movaps %xmm0,0x70(%rsp)
mov    $0x2,%edi
mov    $0x6,%esi
call   10a0 <pow@plt>
lea    0x70(%rsp),%rdi
mov    %eax,%esi
mov    $0x7,%edx
call   1090 <CDec@plt>
lea    0xc7b(%rip),%rdi
mov    $0x1,%al
call   1050 <printf@plt>
xor    %eax,%eax
add    $0xb0,%rsp
pop    %rbx
pop    %r14
pop    %r15
ret

LLVM IR (-O0):
@.str = [12 x i8] c"1.) 49 is \00"
@.str.1 = [12 x i8] c"2.) -69 is \00"
@.str.2 = [19 x i8] c"3.) 0.8125 is 0.\00"
@__const.main.tmpBin = [7 x i32] [i32 1, i32 0, i32 1, i32 1, i32 0, i32 0, i32 1]
@.str.3 = [20 x i8] c"4.) 101.1001 is %f\0A\00"
@__const.main.signedBin = [7 x i32] [i32 1, i32 1, i32 0, i32 1, i32 0, i32 0, i32 1]
@.str.4 = [25 x i8] c"5.) signed 1101001 is \00"
@.str.5 = [4 x i8] c"%f\0A\00"
@.str.6 = [6 x i8] c"%.0f\0A\00"
@__const.main.unsignedBin = [7 x i32] [i32 1, i32 1, i32 0, i32 1, i32 0, i32 0, i32 1]
@.str.7 = [30 x i8] c"6.) unsigned 1101001 is %.0f\0A\00"
define i32 @main() {
%1 = alloca i32
%2 = alloca i32
%3 = alloca [8 x i32]
%4 = alloca [8 x i32]
%5 = alloca i32
%6 = alloca float
%7 = alloca [7 x i32]
%8 = alloca i32
%9 = alloca i32
%10 = alloca [7 x i32]
%11 = alloca [7 x i32]
store i32 0, i32* %1
store i32 49, i32* %2
%12 = getelementptr inbounds [8 x i32], [8 x i32]* %3, i64 0, i64 0
%13 = call i32 @initArray(i32* %12, i32 8)
%14 = getelementptr inbounds [8 x i32], [8 x i32]* %3, i64 0, i64 7
%15 = load i32, i32* %2
%16 = call i32 @CIntBin(i32* %14, i32 %15)
%17 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([12 x i8], [12 x i8]* @.str, i64 0, i64 0))
%18 = getelementptr inbounds [8 x i32], [8 x i32]* %3, i64 0, i64 0
%19 = call i32 @dispArray(i32* %18, i32 8)
store i32 -69, i32* %2
store i32 0, i32* %5
%20 = getelementptr inbounds [8 x i32], [8 x i32]* %3, i64 0, i64 0
%21 = call i32 @initArray(i32* %20, i32 8)
%22 = getelementptr inbounds [8 x i32], [8 x i32]* %4, i64 0, i64 0
%23 = call i32 @initArray(i32* %22, i32 8)
%24 = getelementptr inbounds [8 x i32], [8 x i32]* %3, i64 0, i64 7
%25 = load i32, i32* %2
%26 = mul nsw i32 -1, %25
%27 = call i32 @CIntBin(i32* %24, i32 %26)
%28 = getelementptr inbounds [8 x i32], [8 x i32]* %4, i64 0, i64 7
%29 = call i32 @CIntBin(i32* %28, i32 1)
%30 = getelementptr inbounds [8 x i32], [8 x i32]* %3, i64 0, i64 0
%31 = call i32 @revBin(i32* %30, i32 8)
%32 = getelementptr inbounds [8 x i32], [8 x i32]* %3, i64 0, i64 7
%33 = getelementptr inbounds [8 x i32], [8 x i32]* %4, i64 0, i64 7
%34 = call i32 @adder(i32* %32, i32* %33, i32* %5, i32 8)
%35 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([12 x i8], [12 x i8]* @.str.1, i64 0, i64 0))
%36 = getelementptr inbounds [8 x i32], [8 x i32]* %3, i64 0, i64 0
%37 = call i32 @dispArray(i32* %36, i32 8)
store float 8.125000e-01, float* %6
%38 = getelementptr inbounds [8 x i32], [8 x i32]* %3, i64 0, i64 0
%39 = call i32 @initArray(i32* %38, i32 8)
%40 = getelementptr inbounds [8 x i32], [8 x i32]* %3, i64 0, i64 0
%41 = load float, float* %6
%42 = call i32 @CFloatBin(i32* %40, float %41)
%43 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([19 x i8], [19 x i8]* @.str.2, i64 0, i64 0))
%44 = getelementptr inbounds [8 x i32], [8 x i32]* %3, i64 0, i64 0
%45 = call i32 @dispArray(i32* %44, i32 8)
%46 = bitcast [7 x i32]* %7 to i8*
store i32 3, i32* %8
store i32 7, i32* %9
%47 = getelementptr inbounds [7 x i32], [7 x i32]* %7, i64 0, i64 0
%48 = load i32, i32* %8
%49 = sub nsw i32 %48, 1
%50 = call i32 @pow(i32 2, i32 %49)
%51 = load i32, i32* %9
%52 = call double @CDec(i32* %47, i32 %50, i32 %51)
%53 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([20 x i8], [20 x i8]* @.str.3, i64 0, i64 0), double %52)
%54 = bitcast [7 x i32]* %10 to i8*
%55 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([25 x i8], [25 x i8]* @.str.4, i64 0, i64 0))
%56 = getelementptr inbounds [7 x i32], [7 x i32]* %7, i64 0, i64 0
%57 = load i32, i32* %56
%58 = icmp eq i32 %57, 0
br i1 %58, label %59, label %67
59: ; preds = %0
store i32 7, i32* %9
%60 = getelementptr inbounds [7 x i32], [7 x i32]* %10, i64 0, i64 0
%61 = load i32, i32* %9
%62 = sub nsw i32 %61, 1
%63 = call i32 @pow(i32 2, i32 %62)
%64 = load i32, i32* %9
%65 = call double @CDec(i32* %60, i32 %63, i32 %64)
%66 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.5, i64 0, i64 0), double %65)
br label %97
67: ; preds = %0
store i32 7, i32* %9
store i32 0, i32* %5
%68 = getelementptr inbounds [8 x i32], [8 x i32]* %4, i64 0, i64 0
%69 = load i32, i32* %9
%70 = call i32 @initArray(i32* %68, i32 %69)
%71 = getelementptr inbounds [7 x i32], [7 x i32]* %10, i64 0, i64 0
%72 = load i32, i32* %9
%73 = call i32 @revBin(i32* %71, i32 %72)
%74 = load i32, i32* %9
%75 = sub nsw i32 %74, 1
%76 = sext i32 %75 to i64
%77 = getelementptr inbounds [8 x i32], [8 x i32]* %4, i64 0, i64 %76
%78 = call i32 @CIntBin(i32* %77, i32 1)
%79 = load i32, i32* %9
%80 = sub nsw i32 %79, 1
%81 = sext i32 %80 to i64
%82 = getelementptr inbounds [7 x i32], [7 x i32]* %10, i64 0, i64 %81
%83 = load i32, i32* %9
%84 = sub nsw i32 %83, 1
%85 = sext i32 %84 to i64
%86 = getelementptr inbounds [8 x i32], [8 x i32]* %4, i64 0, i64 %85
%87 = load i32, i32* %9
%88 = call i32 @adder(i32* %82, i32* %86, i32* %5, i32 %87)
%89 = getelementptr inbounds [7 x i32], [7 x i32]* %10, i64 0, i64 0
%90 = load i32, i32* %9
%91 = sub nsw i32 %90, 1
%92 = call i32 @pow(i32 2, i32 %91)
%93 = load i32, i32* %9
%94 = call double @CDec(i32* %89, i32 %92, i32 %93)
%95 = fmul double -1.000000e+00, %94
%96 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.6, i64 0, i64 0), double %95)
br label %97
97: ; preds = %67, %59
%98 = bitcast [7 x i32]* %11 to i8*
store i32 7, i32* %9
%99 = getelementptr inbounds [7 x i32], [7 x i32]* %11, i64 0, i64 0
%100 = load i32, i32* %9
%101 = sub nsw i32 %100, 1
%102 = call i32 @pow(i32 2, i32 %101)
%103 = load i32, i32* %9
%104 = call double @CDec(i32* %99, i32 %102, i32 %103)
%105 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([30 x i8], [30 x i8]* @.str.7, i64 0, i64 0), double %104)
ret i32 0
}

LLVM IR (-O2):
@.str = [12 x i8] c"1.) 49 is \00"
@.str.1 = [12 x i8] c"2.) -69 is \00"
@.str.2 = [19 x i8] c"3.) 0.8125 is 0.\00"
@__const.main.tmpBin = [7 x i32] [i32 1, i32 0, i32 1, i32 1, i32 0, i32 0, i32 1]
@.str.3 = [20 x i8] c"4.) 101.1001 is %f\0A\00"
@.str.4 = [25 x i8] c"5.) signed 1101001 is \00"
@.str.5 = [4 x i8] c"%f\0A\00"
@.str.6 = [6 x i8] c"%.0f\0A\00"
@__const.main.unsignedBin = [7 x i32] [i32 1, i32 1, i32 0, i32 1, i32 0, i32 0, i32 1]
@.str.7 = [30 x i8] c"6.) unsigned 1101001 is %.0f\0A\00"
define i32 @main() {
%1 = alloca [8 x i32]
%2 = alloca [8 x i32]
%3 = alloca i32
%4 = alloca [7 x i32]
%5 = alloca [7 x i32]
%6 = alloca [7 x i32]
%7 = bitcast [8 x i32]* %1 to i8*
%8 = getelementptr inbounds [8 x i32], [8 x i32]* %1, i64 0, i64 0
%9 = call i32 @initArray(i32* %8, i32 8)
%10 = getelementptr inbounds [8 x i32], [8 x i32]* %1, i64 0, i64 7
%11 = call i32 @CIntBin(i32* %10, i32 49)
%12 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([12 x i8], [12 x i8]* @.str, i64 0, i64 0))
%13 = call i32 @dispArray(i32* %8, i32 8)
%14 = bitcast [8 x i32]* %2 to i8*
%15 = bitcast i32* %3 to i8*
store i32 0, i32* %3
%16 = call i32 @initArray(i32* %8, i32 8)
%17 = getelementptr inbounds [8 x i32], [8 x i32]* %2, i64 0, i64 0
%18 = call i32 @initArray(i32* %17, i32 8)
%19 = call i32 @CIntBin(i32* %10, i32 69)
%20 = getelementptr inbounds [8 x i32], [8 x i32]* %2, i64 0, i64 7
%21 = call i32 @CIntBin(i32* %20, i32 1)
%22 = call i32 @revBin(i32* %8, i32 8)
%23 = call i32 @adder(i32* %10, i32* %20, i32* %3, i32 8)
%24 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([12 x i8], [12 x i8]* @.str.1, i64 0, i64 0))
%25 = call i32 @dispArray(i32* %8, i32 8)
%26 = call i32 @initArray(i32* %8, i32 8)
%27 = call i32 @CFloatBin(i32* %8, float 8.125000e-01)
%28 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([19 x i8], [19 x i8]* @.str.2, i64 0, i64 0))
%29 = call i32 @dispArray(i32* %8, i32 8)
%30 = bitcast [7 x i32]* %4 to i8*
%31 = getelementptr inbounds [7 x i32], [7 x i32]* %4, i64 0, i64 0
%32 = call i32 @pow(i32 2, i32 2)
%33 = call double @CDec(i32* %31, i32 %32, i32 7)
%34 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([20 x i8], [20 x i8]* @.str.3, i64 0, i64 0), double %33)
%35 = bitcast [7 x i32]* %5 to i8*
%36 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([25 x i8], [25 x i8]* @.str.4, i64 0, i64 0))
%37 = load i32, i32* %31
%38 = icmp eq i32 %37, 0
br i1 %38, label %39, label %44
39: ; preds = %0
%40 = getelementptr inbounds [7 x i32], [7 x i32]* %5, i64 0, i64 0
%41 = call i32 @pow(i32 2, i32 6)
%42 = call double @CDec(i32* %40, i32 %41, i32 7)
%43 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([4 x i8], [4 x i8]* @.str.5, i64 0, i64 0), double %42)
br label %56
44: ; preds = %0
store i32 0, i32* %3
%45 = call i32 @initArray(i32* %17, i32 7)
%46 = getelementptr inbounds [7 x i32], [7 x i32]* %5, i64 0, i64 0
%47 = call i32 @revBin(i32* %46, i32 7)
%48 = getelementptr inbounds [8 x i32], [8 x i32]* %2, i64 0, i64 6
%49 = call i32 @CIntBin(i32* %48, i32 1)
%50 = getelementptr inbounds [7 x i32], [7 x i32]* %5, i64 0, i64 6
%51 = call i32 @adder(i32* %50, i32* %48, i32* %3, i32 7)
%52 = call i32 @pow(i32 2, i32 6)
%53 = call double @CDec(i32* %46, i32 %52, i32 7)
%54 = fneg double %53
%55 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([6 x i8], [6 x i8]* @.str.6, i64 0, i64 0), double %54)
br label %56
56: ; preds = %44, %39
%57 = bitcast [7 x i32]* %6 to i8*
%58 = getelementptr inbounds [7 x i32], [7 x i32]* %6, i64 0, i64 0
%59 = call i32 @pow(i32 2, i32 6)
%60 = call double @CDec(i32* %58, i32 %59, i32 7)
%61 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([30 x i8], [30 x i8]* @.str.7, i64 0, i64 0), double %60)
ret i32 0
}