CBMC
rational_tools.h File Reference
#include "std_expr.h"
+ Include dependency graph for rational_tools.h:
+ This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Functions

bool to_rational (const exprt &expr, rationalt &rational_value)
 
constant_exprt from_rational (const rationalt &rational_value)
 

Function Documentation

◆ from_rational()

constant_exprt from_rational ( const rationalt rational_value)

Definition at line 81 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.