int is_address(id)
double id;
{
  int ret = 0;
  if (id > 0) {
    double tmp;
    tmp = ajust_double(id - (int)id);
    if (tmp == 0.0073 || tmp == 0.0094 || tmp == 0.0115 || tmp == 0.0074 ||
        tmp == 0.0095 || tmp == 0.0116)
      ret = 1;
  }
  return ret;
}


x86 assembly (clang, -O0):
<is_address>:
push   %rbp
mov    %rsp,%rbp
sub    $0x20,%rsp
movsd  %xmm0,-0x8(%rbp)
movl   $0x0,-0xc(%rbp)
movsd  -0x8(%rbp),%xmm0
xorps  %xmm1,%xmm1
ucomisd %xmm1,%xmm0
jbe    122b <is_address+0x11b>
movsd  -0x8(%rbp),%xmm0
cvttsd2si -0x8(%rbp),%eax
cvtsi2sd %eax,%xmm1
subsd  %xmm1,%xmm0
mov    $0x1,%al
call   1030 <ajust_double@plt>
cvtsi2sd %eax,%xmm0
movsd  %xmm0,-0x18(%rbp)
movsd  -0x18(%rbp),%xmm0
movsd  0xe9b(%rip),%xmm1
ucomisd %xmm1,%xmm0
jne    117a <is_address+0x6a>
jp     117a <is_address+0x6a>
jmp    121f <is_address+0x10f>
movsd  -0x18(%rbp),%xmm0
movsd  0xe81(%rip),%xmm1
ucomisd %xmm1,%xmm0
jne    119c <is_address+0x8c>
jp     119c <is_address+0x8c>
jmp    121f <is_address+0x10f>
movsd  -0x18(%rbp),%xmm0
movsd  0xe67(%rip),%xmm1
ucomisd %xmm1,%xmm0
jne    11be <is_address+0xae>
jp     11be <is_address+0xae>
jmp    121f <is_address+0x10f>
movsd  -0x18(%rbp),%xmm0
movsd  0xe4d(%rip),%xmm1
ucomisd %xmm1,%xmm0
jne    11e0 <is_address+0xd0>
jp     11e0 <is_address+0xd0>
jmp    121f <is_address+0x10f>
movsd  -0x18(%rbp),%xmm0
movsd  0xe33(%rip),%xmm1
ucomisd %xmm1,%xmm0
jne    1202 <is_address+0xf2>
jp     1202 <is_address+0xf2>
jmp    121f <is_address+0x10f>
movsd  -0x18(%rbp),%xmm0
movsd  0xe19(%rip),%xmm1
ucomisd %xmm1,%xmm0
jne    1226 <is_address+0x116>
jp     1226 <is_address+0x116>
movl   $0x1,-0xc(%rbp)
jmp    122b <is_address+0x11b>
mov    -0xc(%rbp),%eax
add    $0x20,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<is_address>:
xorpd  %xmm1,%xmm1
ucomisd %xmm1,%xmm0
jbe    1132 <is_address+0x22>
push   %rax
cvttpd2dq %xmm0,%xmm1
cvtdq2pd %xmm1,%xmm1
subsd  %xmm1,%xmm0
mov    $0x1,%al
call   1030 <ajust_double@plt>
add    $0x8,%rsp
xor    %eax,%eax
ret

LLVM IR (-O0):
define i32 @is_address(double %0) {
%2 = alloca double
%3 = alloca i32
%4 = alloca double
store double %0, double* %2
store i32 0, i32* %3
%5 = load double, double* %2
%6 = fcmp ogt double %5, 0.000000e+00
br i1 %6, label %7, label %34
7: ; preds = %1
%8 = load double, double* %2
%9 = load double, double* %2
%10 = fptosi double %9 to i32
%11 = sitofp i32 %10 to double
%12 = fsub double %8, %11
%13 = call i32 (double, ...) bitcast (i32 (...)* @ajust_double to i32 (double, ...)*)(double %12)
%14 = sitofp i32 %13 to double
store double %14, double* %4
%15 = load double, double* %4
%16 = fcmp oeq double %15, 7.300000e-03
br i1 %16, label %32, label %17
17: ; preds = %7
%18 = load double, double* %4
%19 = fcmp oeq double %18, 9.400000e-03
br i1 %19, label %32, label %20
20: ; preds = %17
%21 = load double, double* %4
%22 = fcmp oeq double %21, 1.150000e-02
br i1 %22, label %32, label %23
23: ; preds = %20
%24 = load double, double* %4
%25 = fcmp oeq double %24, 7.400000e-03
br i1 %25, label %32, label %26
26: ; preds = %23
%27 = load double, double* %4
%28 = fcmp oeq double %27, 0x3F8374BC6A7EF9DB
br i1 %28, label %32, label %29
29: ; preds = %26
%30 = load double, double* %4
%31 = fcmp oeq double %30, 1.160000e-02
br i1 %31, label %32, label %33
32: ; preds = %29, %26, %23, %20, %17, %7
store i32 1, i32* %3
br label %33
33: ; preds = %32, %29
br label %34
34: ; preds = %33, %1
%35 = load i32, i32* %3
ret i32 %35
}

LLVM IR (-O2):
define i32 @is_address(double %0) {
%2 = fcmp ogt double %0, 0.000000e+00
br i1 %2, label %3, label %8
3: ; preds = %1
%4 = fptosi double %0 to i32
%5 = sitofp i32 %4 to double
%6 = fsub double %0, %5
%7 = tail call i32 (double, ...) bitcast (i32 (...)* @ajust_double to i32 (double, ...)*)(double %6)
br label %8
8: ; preds = %3, %1
ret i32 0
}