CBMC
All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Modules Pages
convert_integer_literal.cpp File Reference

C++ Language Conversion. More...

#include "convert_integer_literal.h"
#include <cctype>
#include <util/arith_tools.h>
#include <util/config.h>
#include <util/std_expr.h>
#include <util/string2int.h>
+ Include dependency graph for convert_integer_literal.cpp:

Go to the source code of this file.

Macros

#define FITS(width, signed)
 

Functions

exprt convert_integer_literal (const std::string &src)
 

Detailed Description

C++ Language Conversion.

Definition in file convert_integer_literal.cpp.

Macro Definition Documentation

◆ FITS

#define FITS (   width,
  signed 
)
Value:
(power(2, signed?width-1:width)>value_abs))
mp_integer power(const mp_integer &base, const mp_integer &exponent)
A multi-precision implementation of the power operator.
ait supplies three of the four components needed: an abstract interpreter (in this case handling func...
Definition ai.h:562
bool is_unsigned(const typet &t)
Convenience function – is the type unsigned?
Definition util.cpp:52

Function Documentation

◆ convert_integer_literal()

exprt convert_integer_literal ( const std::string &  src)

Definition at line 21 of file convert_integer_literal.cpp.