CBMC
rational_tools.cpp File Reference

Rational Numbers. More...

#include "rational_tools.h"
#include "mathematical_types.h"
#include "rational.h"
+ Include dependency graph for rational_tools.cpp:

Go to the source code of this file.

Functions

static mp_integer power10 (size_t i)
 
bool to_rational (const exprt &expr, rationalt &rational_value)
 
constant_exprt from_rational (const rationalt &a)
 

Detailed Description

Rational Numbers.

Definition in file rational_tools.cpp.

Function Documentation

◆ from_rational()

constant_exprt from_rational ( const rationalt a)

Definition at line 81 of file rational_tools.cpp.

◆ power10()

static mp_integer power10 ( size_t  i)
static

Definition at line 17 of file rational_tools.cpp.

◆ to_rational()

bool to_rational ( const exprt expr,
rationalt rational_value 
)

Definition at line 27 of file rational_tools.cpp.