#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*/ __CPROVER_assert(int, char *);
int /*<<< orphan*/ __CPROVER_assume(int);
double sineorder3(double x) {
  __CPROVER_assume(-2.0 < x && x < 2.0);
  double res =
      ((0.954929658551372 * x) - (0.12900613773279798 * ((x * x) * x)));
  __CPROVER_assert(-1.0 < res && res < 1.0, "postcondition");
}


x86 assembly (clang, -O0):
<sineorder3>:
push   %rbp
mov    %rsp,%rbp
sub    $0x20,%rsp
movsd  %xmm0,-0x10(%rbp)
movsd  -0x10(%rbp),%xmm0
xor    %eax,%eax
movsd  0xec4(%rip),%xmm1
ucomisd %xmm1,%xmm0
mov    %al,-0x19(%rbp)
jbe    115c <sineorder3+0x3c>
movsd  0xeb7(%rip),%xmm0
ucomisd -0x10(%rbp),%xmm0
seta   %al
mov    %al,-0x19(%rbp)
mov    -0x19(%rbp),%al
and    $0x1,%al
movzbl %al,%edi
call   1030 <__CPROVER_assume@plt>
movsd  -0x10(%rbp),%xmm0
movsd  -0x10(%rbp),%xmm2
mulsd  -0x10(%rbp),%xmm2
mulsd  -0x10(%rbp),%xmm2
movsd  0xe9b(%rip),%xmm1
mulsd  %xmm2,%xmm1
movq   %xmm1,%rax
movabs $0x8000000000000000,%rcx
xor    %rcx,%rax
movq   %rax,%xmm1
movsd  0xe70(%rip),%xmm2
mulsd  %xmm2,%xmm0
addsd  %xmm1,%xmm0
movsd  %xmm0,-0x18(%rbp)
movsd  -0x18(%rbp),%xmm0
xor    %eax,%eax
movsd  0xe4c(%rip),%xmm1
ucomisd %xmm1,%xmm0
mov    %al,-0x1a(%rbp)
jbe    11e4 <sineorder3+0xc4>
movsd  0xe4f(%rip),%xmm0
ucomisd -0x18(%rbp),%xmm0
seta   %al
mov    %al,-0x1a(%rbp)
mov    -0x1a(%rbp),%al
and    $0x1,%al
movzbl %al,%edi
lea    0xe3d(%rip),%rsi
call   1040 <__CPROVER_assert@plt>
movsd  -0x8(%rbp),%xmm0
add    $0x20,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<sineorder3>:
push   %rax
movsd  %xmm0,(%rsp)
ucomisd 0xed2(%rip),%xmm0
seta   %al
movsd  0xecf(%rip),%xmm1
ucomisd %xmm0,%xmm1
seta   %cl
and    %al,%cl
movzbl %cl,%edi
call   1030 <__CPROVER_assume@plt>
movsd  (%rsp),%xmm1
movapd %xmm1,%xmm0
mulsd  %xmm1,%xmm0
mulsd  %xmm1,%xmm0
mulsd  0xead(%rip),%xmm0
mulsd  0xead(%rip),%xmm1
addsd  %xmm0,%xmm1
ucomisd 0xea9(%rip),%xmm1
seta   %al
movsd  0xea6(%rip),%xmm0
ucomisd %xmm1,%xmm0
seta   %cl
and    %al,%cl
movzbl %cl,%edi
lea    0xe9b(%rip),%rsi
pop    %rax
jmp    1040 <__CPROVER_assert@plt>

LLVM IR (-O0):
@.str = [14 x i8] c"postcondition\00"
define double @sineorder3(double %0) {
%2 = alloca double
%3 = alloca double
%4 = alloca double
store double %0, double* %3
%5 = load double, double* %3
%6 = fcmp olt double -2.000000e+00, %5
br i1 %6, label %7, label %10
7: ; preds = %1
%8 = load double, double* %3
%9 = fcmp olt double %8, 2.000000e+00
br label %10
10: ; preds = %7, %1
%11 = phi i1 [ false, %1 ], [ %9, %7 ]
%12 = zext i1 %11 to i32
%13 = call i32 @__CPROVER_assume(i32 %12)
%14 = load double, double* %3
%15 = load double, double* %3
%16 = load double, double* %3
%17 = fmul double %15, %16
%18 = load double, double* %3
%19 = fmul double %17, %18
%20 = fmul double 0x3FC08345EB45D77F, %19
%21 = fneg double %20
%22 = call double @llvm.fmuladd.f64(double 0x3FEE8EC8A4AEACC4, double %14, double %21)
store double %22, double* %4
%23 = load double, double* %4
%24 = fcmp olt double -1.000000e+00, %23
br i1 %24, label %25, label %28
25: ; preds = %10
%26 = load double, double* %4
%27 = fcmp olt double %26, 1.000000e+00
br label %28
28: ; preds = %25, %10
%29 = phi i1 [ false, %10 ], [ %27, %25 ]
%30 = zext i1 %29 to i32
%31 = call i32 @__CPROVER_assert(i32 %30, i8* getelementptr inbounds ([14 x i8], [14 x i8]* @.str, i64 0, i64 0))
%32 = load double, double* %2
ret double %32
}

LLVM IR (-O2):
@.str = [14 x i8] c"postcondition\00"
define double @sineorder3(double %0) {
%2 = fcmp ogt double %0, -2.000000e+00
%3 = fcmp olt double %0, 2.000000e+00
%4 = and i1 %2, %3
%5 = zext i1 %4 to i32
%6 = tail call i32 @__CPROVER_assume(i32 %5)
%7 = fmul double %0, %0
%8 = fmul double %7, %0
%9 = fmul double %8, 0xBFC08345EB45D77F
%10 = tail call double @llvm.fmuladd.f64(double %0, double 0x3FEE8EC8A4AEACC4, double %9)
%11 = fcmp ogt double %10, -1.000000e+00
%12 = fcmp olt double %10, 1.000000e+00
%13 = and i1 %11, %12
%14 = zext i1 %13 to i32
%15 = tail call i32 @__CPROVER_assert(i32 %14, i8* getelementptr inbounds ([14 x i8], [14 x i8]* @.str, i64 0, i64 0))
ret double undef
}