#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 SIM_power_draincap(double, int, int);
double SIM_power_gatecap(double, int);
double SIM_array_comp_base_cap(void) {
  return (SIM_power_draincap((20.0 * 0.0875), 0, 1) +
          SIM_power_draincap((80.0 * 0.0875), 1, 1) +
          SIM_power_gatecap((20.0 * 0.0875), 1) +
          SIM_power_gatecap((80.0 * 0.0875), 1) +
          SIM_power_draincap((10.0 * 0.0875), 0, 1) +
          SIM_power_draincap((6.0 * 0.0875), 1, 1) +
          SIM_power_gatecap((10.0 * 0.0875), 1) +
          SIM_power_gatecap((6.0 * 0.0875), 1) +
          SIM_power_draincap((20.0 * 0.0875), 0, 1) +
          SIM_power_draincap((12.0 * 0.0875), 1, 1) +
          SIM_power_gatecap((20.0 * 0.0875), 1) +
          SIM_power_gatecap((12.0 * 0.0875), 1) +
          SIM_power_draincap((40.0 * 0.0875), 0, 1) +
          SIM_power_draincap((24.0 * 0.0875), 1, 1) +
          SIM_power_gatecap((40.0 * 0.0875), 1) +
          SIM_power_gatecap((24.0 * 0.0875), 1));
}


x86 assembly (clang, -O0):
<SIM_array_comp_base_cap>:
push   %rbp
mov    %rsp,%rbp
sub    $0x80,%rsp
movsd  0xee5(%rip),%xmm0
xor    %edi,%edi
mov    $0x1,%esi
call   1030 <SIM_power_draincap@plt>
movsd  %xmm0,-0x78(%rbp)
movsd  0xee4(%rip),%xmm0
mov    $0x1,%esi
mov    %esi,%edi
call   1030 <SIM_power_draincap@plt>
movaps %xmm0,%xmm1
movsd  -0x78(%rbp),%xmm0
addsd  %xmm1,%xmm0
movsd  %xmm0,-0x70(%rbp)
movsd  0xea7(%rip),%xmm0
mov    $0x1,%edi
call   1040 <SIM_power_gatecap@plt>
movaps %xmm0,%xmm1
movsd  -0x70(%rbp),%xmm0
addsd  %xmm1,%xmm0
movsd  %xmm0,-0x68(%rbp)
movsd  0xe9c(%rip),%xmm0
mov    $0x1,%edi
call   1040 <SIM_power_gatecap@plt>
movaps %xmm0,%xmm1
movsd  -0x68(%rbp),%xmm0
addsd  %xmm1,%xmm0
movsd  %xmm0,-0x60(%rbp)
movsd  0xe71(%rip),%xmm0
xor    %edi,%edi
mov    $0x1,%esi
call   1030 <SIM_power_draincap@plt>
movaps %xmm0,%xmm1
movsd  -0x60(%rbp),%xmm0
addsd  %xmm1,%xmm0
movsd  %xmm0,-0x58(%rbp)
movsd  0xe44(%rip),%xmm0
mov    $0x1,%esi
mov    %esi,%edi
call   1030 <SIM_power_draincap@plt>
movaps %xmm0,%xmm1
movsd  -0x58(%rbp),%xmm0
addsd  %xmm1,%xmm0
movsd  %xmm0,-0x50(%rbp)
movsd  0xe27(%rip),%xmm0
mov    $0x1,%edi
call   1040 <SIM_power_gatecap@plt>
movaps %xmm0,%xmm1
movsd  -0x50(%rbp),%xmm0
addsd  %xmm1,%xmm0
movsd  %xmm0,-0x48(%rbp)
movsd  0xdfc(%rip),%xmm0
mov    $0x1,%edi
call   1040 <SIM_power_gatecap@plt>
movaps %xmm0,%xmm1
movsd  -0x48(%rbp),%xmm0
addsd  %xmm1,%xmm0
movsd  %xmm0,-0x40(%rbp)
movsd  0xdd1(%rip),%xmm0
xor    %edi,%edi
mov    $0x1,%esi
call   1030 <SIM_power_draincap@plt>
movaps %xmm0,%xmm1
movsd  -0x40(%rbp),%xmm0
addsd  %xmm1,%xmm0
movsd  %xmm0,-0x38(%rbp)
movsd  0xda4(%rip),%xmm0
mov    $0x1,%esi
mov    %esi,%edi
call   1030 <SIM_power_draincap@plt>
movaps %xmm0,%xmm1
movsd  -0x38(%rbp),%xmm0
addsd  %xmm1,%xmm0
movsd  %xmm0,-0x30(%rbp)
movsd  0xd87(%rip),%xmm0
mov    $0x1,%edi
call   1040 <SIM_power_gatecap@plt>
movaps %xmm0,%xmm1
movsd  -0x30(%rbp),%xmm0
addsd  %xmm1,%xmm0
movsd  %xmm0,-0x28(%rbp)
movsd  0xd5c(%rip),%xmm0
mov    $0x1,%edi
call   1040 <SIM_power_gatecap@plt>
movaps %xmm0,%xmm1
movsd  -0x28(%rbp),%xmm0
addsd  %xmm1,%xmm0
movsd  %xmm0,-0x20(%rbp)
movsd  0xd31(%rip),%xmm0
xor    %edi,%edi
mov    $0x1,%esi
call   1030 <SIM_power_draincap@plt>
movaps %xmm0,%xmm1
movsd  -0x20(%rbp),%xmm0
addsd  %xmm1,%xmm0
movsd  %xmm0,-0x18(%rbp)
movsd  0xd04(%rip),%xmm0
mov    $0x1,%esi
mov    %esi,%edi
call   1030 <SIM_power_draincap@plt>
movaps %xmm0,%xmm1
movsd  -0x18(%rbp),%xmm0
addsd  %xmm1,%xmm0
movsd  %xmm0,-0x10(%rbp)
movsd  0xce7(%rip),%xmm0
mov    $0x1,%edi
call   1040 <SIM_power_gatecap@plt>
movaps %xmm0,%xmm1
movsd  -0x10(%rbp),%xmm0
addsd  %xmm1,%xmm0
movsd  %xmm0,-0x8(%rbp)
movsd  0xcbc(%rip),%xmm0
mov    $0x1,%edi
call   1040 <SIM_power_gatecap@plt>
movaps %xmm0,%xmm1
movsd  -0x8(%rbp),%xmm0
addsd  %xmm1,%xmm0
add    $0x80,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<SIM_array_comp_base_cap>:
push   %rax
movsd  0xed7(%rip),%xmm0
xor    %edi,%edi
mov    $0x1,%esi
call   1030 <SIM_power_draincap@plt>
movsd  %xmm0,(%rsp)
movsd  0xec6(%rip),%xmm0
mov    $0x1,%edi
mov    $0x1,%esi
call   1030 <SIM_power_draincap@plt>
addsd  (%rsp),%xmm0
movsd  %xmm0,(%rsp)
movsd  0xe9d(%rip),%xmm0
mov    $0x1,%edi
call   1040 <SIM_power_gatecap@plt>
addsd  (%rsp),%xmm0
movsd  %xmm0,(%rsp)
movsd  0xe89(%rip),%xmm0
mov    $0x1,%edi
call   1040 <SIM_power_gatecap@plt>
addsd  (%rsp),%xmm0
movsd  %xmm0,(%rsp)
movsd  0xe75(%rip),%xmm0
xor    %edi,%edi
mov    $0x1,%esi
call   1030 <SIM_power_draincap@plt>
addsd  (%rsp),%xmm0
movsd  %xmm0,(%rsp)
movsd  0xe5f(%rip),%xmm0
mov    $0x1,%edi
mov    $0x1,%esi
call   1030 <SIM_power_draincap@plt>
addsd  (%rsp),%xmm0
movsd  %xmm0,(%rsp)
movsd  0xe36(%rip),%xmm0
mov    $0x1,%edi
call   1040 <SIM_power_gatecap@plt>
addsd  (%rsp),%xmm0
movsd  %xmm0,(%rsp)
movsd  0xe22(%rip),%xmm0
mov    $0x1,%edi
call   1040 <SIM_power_gatecap@plt>
addsd  (%rsp),%xmm0
movsd  %xmm0,(%rsp)
movsd  0xdee(%rip),%xmm0
xor    %edi,%edi
mov    $0x1,%esi
call   1030 <SIM_power_draincap@plt>
addsd  (%rsp),%xmm0
movsd  %xmm0,(%rsp)
movsd  0xdf0(%rip),%xmm0
mov    $0x1,%edi
mov    $0x1,%esi
call   1030 <SIM_power_draincap@plt>
addsd  (%rsp),%xmm0
movsd  %xmm0,(%rsp)
movsd  0xdaf(%rip),%xmm0
mov    $0x1,%edi
call   1040 <SIM_power_gatecap@plt>
addsd  (%rsp),%xmm0
movsd  %xmm0,(%rsp)
movsd  0xdb3(%rip),%xmm0
mov    $0x1,%edi
call   1040 <SIM_power_gatecap@plt>
addsd  (%rsp),%xmm0
movsd  %xmm0,(%rsp)
movsd  0xd9f(%rip),%xmm0
xor    %edi,%edi
mov    $0x1,%esi
call   1030 <SIM_power_draincap@plt>
addsd  (%rsp),%xmm0
movsd  %xmm0,(%rsp)
movsd  0xd89(%rip),%xmm0
mov    $0x1,%edi
mov    $0x1,%esi
call   1030 <SIM_power_draincap@plt>
addsd  (%rsp),%xmm0
movsd  %xmm0,(%rsp)
movsd  0xd60(%rip),%xmm0
mov    $0x1,%edi
call   1040 <SIM_power_gatecap@plt>
addsd  (%rsp),%xmm0
movsd  %xmm0,(%rsp)
movsd  0xd4c(%rip),%xmm0
mov    $0x1,%edi
call   1040 <SIM_power_gatecap@plt>
addsd  (%rsp),%xmm0
pop    %rax
ret

LLVM IR (-O0):
define double @SIM_array_comp_base_cap() {
%1 = call double @SIM_power_draincap(double 1.750000e+00, i32 0, i32 1)
%2 = call double @SIM_power_draincap(double 7.000000e+00, i32 1, i32 1)
%3 = fadd double %1, %2
%4 = call double @SIM_power_gatecap(double 1.750000e+00, i32 1)
%5 = fadd double %3, %4
%6 = call double @SIM_power_gatecap(double 7.000000e+00, i32 1)
%7 = fadd double %5, %6
%8 = call double @SIM_power_draincap(double 8.750000e-01, i32 0, i32 1)
%9 = fadd double %7, %8
%10 = call double @SIM_power_draincap(double 0x3FE0CCCCCCCCCCCC, i32 1, i32 1)
%11 = fadd double %9, %10
%12 = call double @SIM_power_gatecap(double 8.750000e-01, i32 1)
%13 = fadd double %11, %12
%14 = call double @SIM_power_gatecap(double 0x3FE0CCCCCCCCCCCC, i32 1)
%15 = fadd double %13, %14
%16 = call double @SIM_power_draincap(double 1.750000e+00, i32 0, i32 1)
%17 = fadd double %15, %16
%18 = call double @SIM_power_draincap(double 0x3FF0CCCCCCCCCCCC, i32 1, i32 1)
%19 = fadd double %17, %18
%20 = call double @SIM_power_gatecap(double 1.750000e+00, i32 1)
%21 = fadd double %19, %20
%22 = call double @SIM_power_gatecap(double 0x3FF0CCCCCCCCCCCC, i32 1)
%23 = fadd double %21, %22
%24 = call double @SIM_power_draincap(double 3.500000e+00, i32 0, i32 1)
%25 = fadd double %23, %24
%26 = call double @SIM_power_draincap(double 0x4000CCCCCCCCCCCC, i32 1, i32 1)
%27 = fadd double %25, %26
%28 = call double @SIM_power_gatecap(double 3.500000e+00, i32 1)
%29 = fadd double %27, %28
%30 = call double @SIM_power_gatecap(double 0x4000CCCCCCCCCCCC, i32 1)
%31 = fadd double %29, %30
ret double %31
}

LLVM IR (-O2):
define double @SIM_array_comp_base_cap() {
%1 = tail call double @SIM_power_draincap(double 1.750000e+00, i32 0, i32 1)
%2 = tail call double @SIM_power_draincap(double 7.000000e+00, i32 1, i32 1)
%3 = fadd double %1, %2
%4 = tail call double @SIM_power_gatecap(double 1.750000e+00, i32 1)
%5 = fadd double %3, %4
%6 = tail call double @SIM_power_gatecap(double 7.000000e+00, i32 1)
%7 = fadd double %5, %6
%8 = tail call double @SIM_power_draincap(double 8.750000e-01, i32 0, i32 1)
%9 = fadd double %7, %8
%10 = tail call double @SIM_power_draincap(double 0x3FE0CCCCCCCCCCCC, i32 1, i32 1)
%11 = fadd double %9, %10
%12 = tail call double @SIM_power_gatecap(double 8.750000e-01, i32 1)
%13 = fadd double %11, %12
%14 = tail call double @SIM_power_gatecap(double 0x3FE0CCCCCCCCCCCC, i32 1)
%15 = fadd double %13, %14
%16 = tail call double @SIM_power_draincap(double 1.750000e+00, i32 0, i32 1)
%17 = fadd double %15, %16
%18 = tail call double @SIM_power_draincap(double 0x3FF0CCCCCCCCCCCC, i32 1, i32 1)
%19 = fadd double %17, %18
%20 = tail call double @SIM_power_gatecap(double 1.750000e+00, i32 1)
%21 = fadd double %19, %20
%22 = tail call double @SIM_power_gatecap(double 0x3FF0CCCCCCCCCCCC, i32 1)
%23 = fadd double %21, %22
%24 = tail call double @SIM_power_draincap(double 3.500000e+00, i32 0, i32 1)
%25 = fadd double %23, %24
%26 = tail call double @SIM_power_draincap(double 0x4000CCCCCCCCCCCC, i32 1, i32 1)
%27 = fadd double %25, %26
%28 = tail call double @SIM_power_gatecap(double 3.500000e+00, i32 1)
%29 = fadd double %27, %28
%30 = tail call double @SIM_power_gatecap(double 0x4000CCCCCCCCCCCC, i32 1)
%31 = fadd double %29, %30
ret double %31
}