CBMC
|
Loop Acceleration. More...
#include "util.h"
#include <iostream>
#include <algorithm>
#include <util/c_types.h>
#include <util/std_types.h>
Go to the source code of this file.
Functions | |
signedbv_typet | signed_poly_type () |
unsignedbv_typet | unsigned_poly_type () |
bool | is_bitvector (const typet &t) |
Convenience function – is the type a bitvector of some kind? More... | |
bool | is_signed (const typet &t) |
Convenience function – is the type signed? More... | |
bool | is_unsigned (const typet &t) |
Convenience function – is the type unsigned? More... | |
typet | join_types (const typet &t1, const typet &t2) |
Return the smallest type that both t1 and t2 can be cast to without losing information. More... | |
Loop Acceleration.
Definition in file util.cpp.
bool is_bitvector | ( | const typet & | t | ) |
bool is_signed | ( | const typet & | t | ) |
bool is_unsigned | ( | const typet & | t | ) |
Return the smallest type that both t1 and t2 can be cast to without losing information.
e.g.
join_types(unsignedbv_typet(32), unsignedbv_typet(16))=unsignedbv_typet(32) join_types(signedbv_typet(16), unsignedbv_typet(16))=signedbv_typet(17) join_types(signedbv_typet(32), signedbv_typet(32))=signedbv_typet(32)
signedbv_typet signed_poly_type | ( | ) |
unsignedbv_typet unsigned_poly_type | ( | ) |