CBMC
All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Modules Pages
floatbv_expr.cpp
Go to the documentation of this file.
1/*******************************************************************\
2
3Module: API to expression classes for floating-point arithmetic
4
5Author: Daniel Kroening, kroening@kroening.com
6
7\*******************************************************************/
8
9#include "floatbv_expr.h"
10
11#include "arith_tools.h"
12#include "bitvector_types.h"
13
15{
16 // The 32 bits are an arbitrary choice;
17 // e.g., float_utilst consumes other widths as well.
18 // The type is signed to match the signature of fesetround.
19 return ::from_integer(rm, signedbv_typet(32));
20}
Pre-defined bitvector types.
ait supplies three of the four components needed: an abstract interpreter (in this case handling func...
Definition ai.h:562
A constant literal expression.
Definition std_expr.h:3117
Fixed-width bit-vector with two's complement interpretation.
constant_exprt floatbv_rounding_mode(unsigned rm)
returns the a rounding mode expression for a given IEEE rounding mode, encoded using the recommendati...
API to expression classes for floating-point arithmetic.