|
cprover
|
Base Type Computation. More...
This graph shows which files directly or indirectly include this file:Go to the source code of this file.
Functions | |
| bool | base_type_eq (const typet &type1, const typet &type2, const namespacet &ns) |
| Check types for equality across all levels of hierarchy. More... | |
| bool | base_type_eq (const exprt &expr1, const exprt &expr2, const namespacet &ns) |
| Check expressions for equality across all levels of hierarchy. More... | |
Base Type Computation.
Definition in file base_type.h.
| bool base_type_eq | ( | const typet & | type1, |
| const typet & | type2, | ||
| const namespacet & | ns | ||
| ) |
Check types for equality across all levels of hierarchy.
For equality in the top level of the hierarchy only use type_eq. Example:
symbol_typet("a") and ns.lookup("a").type will compare equal,struct_typet {symbol_typet("a")} and struct_typet {ns.lookup("a") .type} will also compare equal. | type1 | The first type to compare. |
| type2 | The second type to compare. |
| ns | The namespace, needed for resolution of symbols. |
Definition at line 332 of file base_type.cpp.
| bool base_type_eq | ( | const exprt & | expr1, |
| const exprt & | expr2, | ||
| const namespacet & | ns | ||
| ) |
Check expressions for equality across all levels of hierarchy.
| expr1 | The first expression to compare. |
| expr2 | The second expression to compare. |
| ns | The namespace, needed for resolution of symbols. |
Definition at line 345 of file base_type.cpp.