#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 scalar_t__ e;

/* Variables and functions */
int /*<<< orphan*/ Platform_Halt(int);
double Reals_TenL(int e) {
  double _o_result;
  double r, power;
  r = (double)1;
  power = (double)10;
  for (;;) {
    if (((e)&1)) {
      r = r * power;
    }
    e = ((long long)(e) >> (1));
    if (e <= 0) {
      _o_result = r;
      return _o_result;
    }
    power = power * power;
  }
__retchk:
  Platform_Halt(-3);
  return 0;
  ;
}


x86 assembly (clang, -O0):
<Reals_TenL>:
push   %rbp
mov    %rsp,%rbp
mov    %edi,-0xc(%rbp)
movsd  0xef9(%rip),%xmm0
movsd  %xmm0,-0x20(%rbp)
movsd  0xee4(%rip),%xmm0
movsd  %xmm0,-0x28(%rbp)
mov    -0xc(%rbp),%eax
and    $0x1,%eax
cmp    $0x0,%eax
je     113f <Reals_TenL+0x3f>
movsd  -0x20(%rbp),%xmm0
mulsd  -0x28(%rbp),%xmm0
movsd  %xmm0,-0x20(%rbp)
movslq -0xc(%rbp),%rax
sar    $0x1,%rax
mov    %eax,-0xc(%rbp)
cmpl   $0x0,-0xc(%rbp)
jg     116d <Reals_TenL+0x6d>
movsd  -0x20(%rbp),%xmm0
movsd  %xmm0,-0x18(%rbp)
movsd  -0x18(%rbp),%xmm0
movsd  %xmm0,-0x8(%rbp)
jmp    1181 <Reals_TenL+0x81>
movsd  -0x28(%rbp),%xmm0
mulsd  -0x28(%rbp),%xmm0
movsd  %xmm0,-0x28(%rbp)
jmp    1121 <Reals_TenL+0x21>
movsd  -0x8(%rbp),%xmm0
pop    %rbp
ret

x86 assembly (clang, -O2):
<Reals_TenL>:
xor    %eax,%eax
test   $0x1,%dil
sete   %al
lea    0xef0(%rip),%rcx
movsd  (%rcx,%rax,8),%xmm0
cmp    $0x2,%edi
jge    111b <Reals_TenL+0x1b>
ret
movsd  0xeed(%rip),%xmm1
movsd  0xeed(%rip),%xmm2
jmp    113f <Reals_TenL+0x3f>
nopl   (%rax)
mulsd  %xmm3,%xmm0
mov    %edi,%eax
shr    %eax
cmp    $0x4,%edi
mov    %eax,%edi
jb     111a <Reals_TenL+0x1a>
mulsd  %xmm1,%xmm1
movapd %xmm2,%xmm3
test   $0x2,%dil
je     1130 <Reals_TenL+0x30>
movapd %xmm1,%xmm3
jmp    1130 <Reals_TenL+0x30>

LLVM IR (-O0):
define double @Reals_TenL(i32 %0) {
%2 = alloca double
%3 = alloca i32
%4 = alloca double
%5 = alloca double
%6 = alloca double
store i32 %0, i32* %3
store double 1.000000e+00, double* %5
store double 1.000000e+01, double* %6
br label %7
7: ; preds = %25, %1
%8 = load i32, i32* %3
%9 = and i32 %8, 1
%10 = icmp ne i32 %9, 0
br i1 %10, label %11, label %15
11: ; preds = %7
%12 = load double, double* %5
%13 = load double, double* %6
%14 = fmul double %12, %13
store double %14, double* %5
br label %15
15: ; preds = %11, %7
%16 = load i32, i32* %3
%17 = sext i32 %16 to i64
%18 = ashr i64 %17, 1
%19 = trunc i64 %18 to i32
store i32 %19, i32* %3
%20 = load i32, i32* %3
%21 = icmp sle i32 %20, 0
br i1 %21, label %22, label %25
22: ; preds = %15
%23 = load double, double* %5
store double %23, double* %4
%24 = load double, double* %4
store double %24, double* %2
br label %31
25: ; preds = %15
%26 = load double, double* %6
%27 = load double, double* %6
%28 = fmul double %26, %27
store double %28, double* %6
br label %7
29: ; No predecessors!
%30 = call i32 @Platform_Halt(i32 -3)
store double 0.000000e+00, double* %2
br label %31
31: ; preds = %29, %22
%32 = load double, double* %2
ret double %32
}

LLVM IR (-O2):
define double @Reals_TenL(i32 %0) {
%2 = and i32 %0, 1
%3 = icmp eq i32 %2, 0
%4 = select i1 %3, double 1.000000e+00, double 1.000000e+01
%5 = icmp slt i32 %0, 2
br i1 %5, label %6, label %8
6: ; preds = %8, %1
%7 = phi double [ %4, %1 ], [ %17, %8 ]
ret double %7
8: ; preds = %1, %8
%9 = phi double [ %17, %8 ], [ %4, %1 ]
%10 = phi i32 [ %12, %8 ], [ %0, %1 ]
%11 = phi double [ %13, %8 ], [ 1.000000e+01, %1 ]
%12 = lshr i32 %10, 1
%13 = fmul double %11, %11
%14 = and i32 %10, 2
%15 = icmp eq i32 %14, 0
%16 = select i1 %15, double 1.000000e+00, double %13
%17 = fmul double %9, %16
%18 = icmp ult i32 %10, 4
br i1 %18, label %6, label %8
}