CBMC
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:
((signed?!is_unsigned:(is_unsigned || is_hex_or_oct_or_bin)) && \
(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.
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.