File tree 2 files changed +309
-479
lines changed
2 files changed +309
-479
lines changed Original file line number Diff line number Diff line change 1
1
/* ******************************************************************\
2
2
3
- Module:
3
+ Module: Pre-defined types
4
4
5
5
Author: Daniel Kroening, [email protected]
6
+ Maria Svorenova, [email protected]
6
7
7
8
\*******************************************************************/
8
9
10
+ // / \file
11
+ // / Pre-defined types
12
+
9
13
#include " std_types.h"
10
14
11
15
#include " string2int.h"
@@ -26,6 +30,7 @@ std::size_t floatbv_typet::get_f() const
26
30
return unsafe_string2unsigned (id2string (f));
27
31
}
28
32
33
+ // / Return the sequence number of the component with given name.
29
34
std::size_t struct_union_typet::component_number (
30
35
const irep_idt &component_name) const
31
36
{
@@ -48,6 +53,7 @@ std::size_t struct_union_typet::component_number(
48
53
return 0 ;
49
54
}
50
55
56
+ // / Get the component with given name.
51
57
const struct_union_typet::componentt &struct_union_typet::get_component (
52
58
const irep_idt &component_name) const
53
59
{
@@ -73,6 +79,7 @@ typet struct_union_typet::component_type(
73
79
return c.type ();
74
80
}
75
81
82
+ // / Returns true if the object is a prefix of \param other.
76
83
bool struct_typet::is_prefix_of (const struct_typet &other) const
77
84
{
78
85
const componentst &ot_components=other.components ();
You can’t perform that action at this time.
0 commit comments