#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*/ _hmt_count_cover(char *, int);
float HMM_Power(float Base, int Exponent) {
  { _hmt_count_cover("HMM_Power", 538); };
  float Result = 1.0f;
  float Mul = Exponent < 0 ? 1.f / Base : Base;
  int X = Exponent < 0 ? -Exponent : Exponent;
  while (X) {
    if (X & 1) {
      { _hmt_count_cover("HMM_Power", 547); };
      Result *= Mul;
    }
    Mul *= Mul;
    X >>= 1;
  }
  return (Result);
}


x86 assembly (clang, -O0):
<HMM_Power>:
push   %rbp
mov    %rsp,%rbp
sub    $0x20,%rsp
movss  %xmm0,-0x4(%rbp)
mov    %edi,-0x8(%rbp)
lea    0xedd(%rip),%rdi
mov    $0x21a,%esi
call   1030 <_hmt_count_cover@plt>
movss  0xec7(%rip),%xmm0
movss  %xmm0,-0xc(%rbp)
cmpl   $0x0,-0x8(%rbp)
jge    115f <HMM_Power+0x4f>
movss  0xeb0(%rip),%xmm0
divss  -0x4(%rbp),%xmm0
movss  %xmm0,-0x18(%rbp)
jmp    1169 <HMM_Power+0x59>
movss  -0x4(%rbp),%xmm0
movss  %xmm0,-0x18(%rbp)
movss  -0x18(%rbp),%xmm0
movss  %xmm0,-0x10(%rbp)
cmpl   $0x0,-0x8(%rbp)
jge    118a <HMM_Power+0x7a>
xor    %eax,%eax
sub    -0x8(%rbp),%eax
mov    %eax,-0x1c(%rbp)
jmp    1190 <HMM_Power+0x80>
mov    -0x8(%rbp),%eax
mov    %eax,-0x1c(%rbp)
mov    -0x1c(%rbp),%eax
mov    %eax,-0x14(%rbp)
cmpl   $0x0,-0x14(%rbp)
je     11ec <HMM_Power+0xdc>
mov    -0x14(%rbp),%eax
and    $0x1,%eax
cmp    $0x0,%eax
je     11cf <HMM_Power+0xbf>
lea    0xe4e(%rip),%rdi
mov    $0x223,%esi
call   1030 <_hmt_count_cover@plt>
movss  -0x10(%rbp),%xmm0
mulss  -0xc(%rbp),%xmm0
movss  %xmm0,-0xc(%rbp)
movss  -0x10(%rbp),%xmm0
mulss  -0x10(%rbp),%xmm0
movss  %xmm0,-0x10(%rbp)
mov    -0x14(%rbp),%eax
sar    $0x1,%eax
mov    %eax,-0x14(%rbp)
jmp    1196 <HMM_Power+0x86>
movss  -0xc(%rbp),%xmm0
add    $0x20,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<HMM_Power>:
push   %rbp
push   %rbx
push   %rax
mov    %edi,%ebx
movss  %xmm0,(%rsp)
lea    0xee3(%rip),%rdi
mov    $0x21a,%esi
call   1030 <_hmt_count_cover@plt>
mov    %ebx,%ebp
neg    %ebp
cmovs  %ebx,%ebp
test   %ebp,%ebp
je     1141 <HMM_Power+0x31>
test   %ebx,%ebx
js     1150 <HMM_Power+0x40>
movss  (%rsp),%xmm1
jmp    1160 <HMM_Power+0x50>
movss  0xeb7(%rip),%xmm0
add    $0x8,%rsp
pop    %rbx
pop    %rbp
ret
movss  0xea8(%rip),%xmm0
divss  (%rsp),%xmm0
movaps %xmm0,%xmm1
movss  0xe98(%rip),%xmm0
lea    0xe95(%rip),%rbx
jmp    118f <HMM_Power+0x7f>
cs nopw 0x0(%rax,%rax,1)
nopl   0x0(%rax,%rax,1)
mulss  %xmm1,%xmm1
mov    %ebp,%eax
shr    %eax
cmp    $0x1,%ebp
mov    %eax,%ebp
jbe    1149 <HMM_Power+0x39>
test   $0x1,%bpl
je     1180 <HMM_Power+0x70>
mov    %rbx,%rdi
mov    $0x223,%esi
movss  %xmm1,(%rsp)
movss  %xmm0,0x4(%rsp)
call   1030 <_hmt_count_cover@plt>
movss  0x4(%rsp),%xmm0
movss  (%rsp),%xmm1
mulss  %xmm1,%xmm0
jmp    1180 <HMM_Power+0x70>

LLVM IR (-O0):
@.str = [10 x i8] c"HMM_Power\00"
define float @HMM_Power(float %0, i32 %1) {
%3 = alloca float
%4 = alloca i32
%5 = alloca float
%6 = alloca float
%7 = alloca i32
store float %0, float* %3
store i32 %1, i32* %4
%8 = call i32 @_hmt_count_cover(i8* getelementptr inbounds ([10 x i8], [10 x i8]* @.str, i64 0, i64 0), i32 538)
store float 1.000000e+00, float* %5
%9 = load i32, i32* %4
%10 = icmp slt i32 %9, 0
br i1 %10, label %11, label %14
11: ; preds = %2
%12 = load float, float* %3
%13 = fdiv float 1.000000e+00, %12
br label %16
14: ; preds = %2
%15 = load float, float* %3
br label %16
16: ; preds = %14, %11
%17 = phi float [ %13, %11 ], [ %15, %14 ]
store float %17, float* %6
%18 = load i32, i32* %4
%19 = icmp slt i32 %18, 0
br i1 %19, label %20, label %23
20: ; preds = %16
%21 = load i32, i32* %4
%22 = sub nsw i32 0, %21
br label %25
23: ; preds = %16
%24 = load i32, i32* %4
br label %25
25: ; preds = %23, %20
%26 = phi i32 [ %22, %20 ], [ %24, %23 ]
store i32 %26, i32* %7
br label %27
27: ; preds = %39, %25
%28 = load i32, i32* %7
%29 = icmp ne i32 %28, 0
br i1 %29, label %30, label %45
30: ; preds = %27
%31 = load i32, i32* %7
%32 = and i32 %31, 1
%33 = icmp ne i32 %32, 0
br i1 %33, label %34, label %39
34: ; preds = %30
%35 = call i32 @_hmt_count_cover(i8* getelementptr inbounds ([10 x i8], [10 x i8]* @.str, i64 0, i64 0), i32 547)
%36 = load float, float* %6
%37 = load float, float* %5
%38 = fmul float %37, %36
store float %38, float* %5
br label %39
39: ; preds = %34, %30
%40 = load float, float* %6
%41 = load float, float* %6
%42 = fmul float %41, %40
store float %42, float* %6
%43 = load i32, i32* %7
%44 = ashr i32 %43, 1
store i32 %44, i32* %7
br label %27
45: ; preds = %27
%46 = load float, float* %5
ret float %46
}

LLVM IR (-O2):
@.str = [10 x i8] c"HMM_Power\00"
define float @HMM_Power(float %0, i32 %1) {
%3 = tail call i32 @_hmt_count_cover(i8* getelementptr inbounds ([10 x i8], [10 x i8]* @.str, i64 0, i64 0), i32 538)
%4 = icmp slt i32 %1, 0
%5 = sub nsw i32 0, %1
%6 = select i1 %4, i32 %5, i32 %1
%7 = icmp eq i32 %6, 0
br i1 %7, label %25, label %8
8: ; preds = %2
%9 = fdiv float 1.000000e+00, %0
%10 = select i1 %4, float %9, float %0
br label %11
11: ; preds = %8, %20
%12 = phi i32 [ %23, %20 ], [ %6, %8 ]
%13 = phi float [ %22, %20 ], [ %10, %8 ]
%14 = phi float [ %21, %20 ], [ 1.000000e+00, %8 ]
%15 = and i32 %12, 1
%16 = icmp eq i32 %15, 0
br i1 %16, label %20, label %17
17: ; preds = %11
%18 = tail call i32 @_hmt_count_cover(i8* getelementptr inbounds ([10 x i8], [10 x i8]* @.str, i64 0, i64 0), i32 547)
%19 = fmul float %14, %13
br label %20
20: ; preds = %17, %11
%21 = phi float [ %19, %17 ], [ %14, %11 ]
%22 = fmul float %13, %13
%23 = lshr i32 %12, 1
%24 = icmp ult i32 %12, 2
br i1 %24, label %25, label %11
25: ; preds = %20, %2
%26 = phi float [ 1.000000e+00, %2 ], [ %21, %20 ]
ret float %26
}