#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_assume(int);
int /*<<< orphan*/ assert(int);
float slope(float x0, float h) {
  __CPROVER_assume(x0 == 13);
  __CPROVER_assume(h >= 0.000000001 && h <= 0.000001);
  float x1 = x0 + h;
  float x2 = x0 - h;
  float fx1 = x1 * x1;
  float fx2 = x2 * x2;
  float res = (fx1 - fx2) / (2.0 * h);
  assert(res <= 25);
  return res;
}


x86 assembly (clang, -O0):
<slope>:
push   %rbp
mov    %rsp,%rbp
sub    $0x20,%rsp
movss  %xmm0,-0x4(%rbp)
movss  %xmm1,-0x8(%rbp)
movss  -0x4(%rbp),%xmm0
movss  0xed9(%rip),%xmm1
ucomiss %xmm1,%xmm0
sete   %al
setnp  %cl
and    %cl,%al
and    $0x1,%al
movzbl %al,%edi
call   1030 <__CPROVER_assume@plt>
movss  -0x8(%rbp),%xmm0
cvtss2sd %xmm0,%xmm0
xor    %eax,%eax
movsd  0xe99(%rip),%xmm1
ucomisd %xmm1,%xmm0
mov    %al,-0x1d(%rbp)
jb     118f <slope+0x6f>
movss  -0x8(%rbp),%xmm0
cvtss2sd %xmm0,%xmm1
movsd  0xe83(%rip),%xmm0
ucomisd %xmm1,%xmm0
setae  %al
mov    %al,-0x1d(%rbp)
mov    -0x1d(%rbp),%al
and    $0x1,%al
movzbl %al,%edi
call   1030 <__CPROVER_assume@plt>
movss  -0x4(%rbp),%xmm0
addss  -0x8(%rbp),%xmm0
movss  %xmm0,-0xc(%rbp)
movss  -0x4(%rbp),%xmm0
subss  -0x8(%rbp),%xmm0
movss  %xmm0,-0x10(%rbp)
movss  -0xc(%rbp),%xmm0
mulss  -0xc(%rbp),%xmm0
movss  %xmm0,-0x14(%rbp)
movss  -0x10(%rbp),%xmm0
mulss  -0x10(%rbp),%xmm0
movss  %xmm0,-0x18(%rbp)
movss  -0x14(%rbp),%xmm0
subss  -0x18(%rbp),%xmm0
cvtss2sd %xmm0,%xmm0
movss  -0x8(%rbp),%xmm1
cvtss2sd %xmm1,%xmm2
movsd  0xe19(%rip),%xmm1
mulsd  %xmm2,%xmm1
divsd  %xmm1,%xmm0
cvtsd2ss %xmm0,%xmm0
movss  %xmm0,-0x1c(%rbp)
movss  0xe0c(%rip),%xmm0
ucomiss -0x1c(%rbp),%xmm0
setae  %al
and    $0x1,%al
movzbl %al,%edi
call   1040 <assert@plt>
movss  -0x1c(%rbp),%xmm0
add    $0x20,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<slope>:
sub    $0x18,%rsp
movss  %xmm1,0x8(%rsp)
movss  %xmm0,0xc(%rsp)
movss  0xec8(%rip),%xmm1
cmpeqss %xmm0,%xmm1
movd   %xmm1,%edi
and    $0x1,%edi
call   1030 <__CPROVER_assume@plt>
movss  0x8(%rsp),%xmm0
xorps  %xmm1,%xmm1
cvtss2sd %xmm0,%xmm1
movsd  %xmm1,0x10(%rsp)
ucomisd 0xea4(%rip),%xmm1
setae  %al
movsd  0xea1(%rip),%xmm0
ucomisd %xmm1,%xmm0
setae  %cl
and    %al,%cl
movzbl %cl,%edi
call   1030 <__CPROVER_assume@plt>
movss  0xc(%rsp),%xmm1
movaps %xmm1,%xmm0
movss  0x8(%rsp),%xmm2
addss  %xmm2,%xmm0
subss  %xmm2,%xmm1
mulss  %xmm0,%xmm0
mulss  %xmm1,%xmm1
subss  %xmm1,%xmm0
cvtss2sd %xmm0,%xmm0
movsd  0x10(%rsp),%xmm1
addsd  %xmm1,%xmm1
divsd  %xmm1,%xmm0
xorps  %xmm1,%xmm1
cvtsd2ss %xmm0,%xmm1
movss  %xmm1,0x8(%rsp)
movss  0xe3a(%rip),%xmm0
xor    %edi,%edi
ucomiss %xmm1,%xmm0
setae  %dil
call   1040 <assert@plt>
movss  0x8(%rsp),%xmm0
add    $0x18,%rsp
ret

LLVM IR (-O0):
define float @slope(float %0, float %1) {
%3 = alloca float
%4 = alloca float
%5 = alloca float
%6 = alloca float
%7 = alloca float
%8 = alloca float
%9 = alloca float
store float %0, float* %3
store float %1, float* %4
%10 = load float, float* %3
%11 = fcmp oeq float %10, 1.300000e+01
%12 = zext i1 %11 to i32
%13 = call i32 @__CPROVER_assume(i32 %12)
%14 = load float, float* %4
%15 = fpext float %14 to double
%16 = fcmp oge double %15, 1.000000e-09
br i1 %16, label %17, label %21
17: ; preds = %2
%18 = load float, float* %4
%19 = fpext float %18 to double
%20 = fcmp ole double %19, 0x3EB0C6F7A0B5ED8D
br label %21
21: ; preds = %17, %2
%22 = phi i1 [ false, %2 ], [ %20, %17 ]
%23 = zext i1 %22 to i32
%24 = call i32 @__CPROVER_assume(i32 %23)
%25 = load float, float* %3
%26 = load float, float* %4
%27 = fadd float %25, %26
store float %27, float* %5
%28 = load float, float* %3
%29 = load float, float* %4
%30 = fsub float %28, %29
store float %30, float* %6
%31 = load float, float* %5
%32 = load float, float* %5
%33 = fmul float %31, %32
store float %33, float* %7
%34 = load float, float* %6
%35 = load float, float* %6
%36 = fmul float %34, %35
store float %36, float* %8
%37 = load float, float* %7
%38 = load float, float* %8
%39 = fsub float %37, %38
%40 = fpext float %39 to double
%41 = load float, float* %4
%42 = fpext float %41 to double
%43 = fmul double 2.000000e+00, %42
%44 = fdiv double %40, %43
%45 = fptrunc double %44 to float
store float %45, float* %9
%46 = load float, float* %9
%47 = fcmp ole float %46, 2.500000e+01
%48 = zext i1 %47 to i32
%49 = call i32 @assert(i32 %48)
%50 = load float, float* %9
ret float %50
}

LLVM IR (-O2):
define float @slope(float %0, float %1) {
%3 = fcmp oeq float %0, 1.300000e+01
%4 = zext i1 %3 to i32
%5 = tail call i32 @__CPROVER_assume(i32 %4)
%6 = fpext float %1 to double
%7 = fcmp oge double %6, 1.000000e-09
%8 = fcmp ole double %6, 0x3EB0C6F7A0B5ED8D
%9 = and i1 %7, %8
%10 = zext i1 %9 to i32
%11 = tail call i32 @__CPROVER_assume(i32 %10)
%12 = fadd float %0, %1
%13 = fsub float %0, %1
%14 = fmul float %12, %12
%15 = fmul float %13, %13
%16 = fsub float %14, %15
%17 = fpext float %16 to double
%18 = fmul double %6, 2.000000e+00
%19 = fdiv double %17, %18
%20 = fptrunc double %19 to float
%21 = fcmp ole float %20, 2.500000e+01
%22 = zext i1 %21 to i32
%23 = tail call i32 @assert(i32 %22)
ret float %20
}