int orb_zone(orb_radius, stell_luminosity_ratio)
double orb_radius, stell_luminosity_ratio;
{
  if (orb_radius < (4.0 * sqrt(stell_luminosity_ratio)))
    return (1);
  else {
    if ((orb_radius >= (4.0 * sqrt(stell_luminosity_ratio))) &&
        (orb_radius < (15.0 * sqrt(stell_luminosity_ratio))))
      return (2);
    else
      return (3);
  }
}


x86 assembly (clang, -O0):
<orb_zone>:
push   %rbp
mov    %rsp,%rbp
sub    $0x30,%rsp
movsd  %xmm0,-0x10(%rbp)
movsd  %xmm1,-0x18(%rbp)
movsd  -0x10(%rbp),%xmm0
movsd  %xmm0,-0x20(%rbp)
movsd  -0x18(%rbp),%xmm0
call   1030 <sqrt@plt>
movsd  -0x20(%rbp),%xmm1
movaps %xmm0,%xmm2
movsd  0xeba(%rip),%xmm0
mulsd  %xmm2,%xmm0
ucomisd %xmm1,%xmm0
jbe    1160 <orb_zone+0x50>
movl   $0x1,-0x4(%rbp)
jmp    11d7 <orb_zone+0xc7>
movsd  -0x10(%rbp),%xmm0
movsd  %xmm0,-0x28(%rbp)
movsd  -0x18(%rbp),%xmm0
call   1030 <sqrt@plt>
movaps %xmm0,%xmm2
movsd  -0x28(%rbp),%xmm0
movsd  0xe7c(%rip),%xmm1
mulsd  %xmm2,%xmm1
ucomisd %xmm1,%xmm0
jb     11d0 <orb_zone+0xc0>
movsd  -0x10(%rbp),%xmm0
movsd  %xmm0,-0x30(%rbp)
movsd  -0x18(%rbp),%xmm0
call   1030 <sqrt@plt>
movsd  -0x30(%rbp),%xmm1
movaps %xmm0,%xmm2
movsd  0xe52(%rip),%xmm0
mulsd  %xmm2,%xmm0
ucomisd %xmm1,%xmm0
jbe    11d0 <orb_zone+0xc0>
movl   $0x2,-0x4(%rbp)
jmp    11d7 <orb_zone+0xc7>
movl   $0x3,-0x4(%rbp)
mov    -0x4(%rbp),%eax
add    $0x30,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<orb_zone>:
sub    $0x18,%rsp
movapd %xmm0,%xmm2
xorpd  %xmm0,%xmm0
ucomisd %xmm0,%xmm1
jb     112b <orb_zone+0x1b>
xorps  %xmm0,%xmm0
sqrtsd %xmm1,%xmm0
jmp    114c <orb_zone+0x3c>
movapd %xmm1,%xmm0
movsd  %xmm2,0x8(%rsp)
movsd  %xmm1,0x10(%rsp)
call   1030 <sqrt@plt>
movsd  0x10(%rsp),%xmm1
movsd  0x8(%rsp),%xmm2
mulsd  0xeac(%rip),%xmm0
mov    $0x1,%eax
ucomisd %xmm2,%xmm0
ja     11e5 <orb_zone+0xd5>
xorpd  %xmm0,%xmm0
ucomisd %xmm0,%xmm1
jb     1176 <orb_zone+0x66>
xorps  %xmm0,%xmm0
sqrtsd %xmm1,%xmm0
jmp    1197 <orb_zone+0x87>
movapd %xmm1,%xmm0
movsd  %xmm2,0x8(%rsp)
movsd  %xmm1,0x10(%rsp)
call   1030 <sqrt@plt>
movsd  0x10(%rsp),%xmm1
movsd  0x8(%rsp),%xmm2
mulsd  0xe61(%rip),%xmm0
ucomisd %xmm0,%xmm2
jb     11e0 <orb_zone+0xd0>
xorpd  %xmm0,%xmm0
ucomisd %xmm0,%xmm1
jb     11b8 <orb_zone+0xa8>
xorps  %xmm0,%xmm0
sqrtsd %xmm1,%xmm0
jmp    11cd <orb_zone+0xbd>
movapd %xmm1,%xmm0
movsd  %xmm2,0x8(%rsp)
call   1030 <sqrt@plt>
movsd  0x8(%rsp),%xmm2
mulsd  0xe33(%rip),%xmm0
mov    $0x2,%eax
ucomisd %xmm2,%xmm0
ja     11e5 <orb_zone+0xd5>
mov    $0x3,%eax
add    $0x18,%rsp
ret

LLVM IR (-O0):
define i32 @orb_zone(double %0, double %1) {
%3 = alloca i32
%4 = alloca double
%5 = alloca double
store double %0, double* %4
store double %1, double* %5
%6 = load double, double* %4
%7 = load double, double* %5
%8 = call double @sqrt(double %7)
%9 = fmul double 4.000000e+00, %8
%10 = fcmp olt double %6, %9
br i1 %10, label %11, label %12
11: ; preds = %2
store i32 1, i32* %3
br label %26
12: ; preds = %2
%13 = load double, double* %4
%14 = load double, double* %5
%15 = call double @sqrt(double %14)
%16 = fmul double 4.000000e+00, %15
%17 = fcmp oge double %13, %16
br i1 %17, label %18, label %25
18: ; preds = %12
%19 = load double, double* %4
%20 = load double, double* %5
%21 = call double @sqrt(double %20)
%22 = fmul double 1.500000e+01, %21
%23 = fcmp olt double %19, %22
br i1 %23, label %24, label %25
24: ; preds = %18
store i32 2, i32* %3
br label %26
25: ; preds = %18, %12
store i32 3, i32* %3
br label %26
26: ; preds = %25, %24, %11
%27 = load i32, i32* %3
ret i32 %27
}

LLVM IR (-O2):
define i32 @orb_zone(double %0, double %1) {
%3 = tail call double @sqrt(double %1)
%4 = fmul double %3, 4.000000e+00
%5 = fcmp ogt double %4, %0
br i1 %5, label %15, label %6
6: ; preds = %2
%7 = tail call double @sqrt(double %1)
%8 = fmul double %7, 4.000000e+00
%9 = fcmp ugt double %8, %0
br i1 %9, label %14, label %10
10: ; preds = %6
%11 = tail call double @sqrt(double %1)
%12 = fmul double %11, 1.500000e+01
%13 = fcmp ogt double %12, %0
br i1 %13, label %15, label %14
14: ; preds = %10, %6
br label %15
15: ; preds = %10, %2, %14
%16 = phi i32 [ 3, %14 ], [ 1, %2 ], [ 2, %10 ]
ret i32 %16
}