Newer
Older
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
[kernel] Parsing tests/basic/anonymous_struct.cpp (external front-end)
Now output intermediate result
/* Generated by Frama-C */
struct _frama_c_vmt_content {
void (*method_ptr)() ;
int shift_this ;
};
struct _frama_c_rtti_name_info_node;
struct _frama_c_vmt {
struct _frama_c_vmt_content *table ;
int table_size ;
struct _frama_c_rtti_name_info_node *rtti_info ;
};
struct _frama_c_rtti_name_info_content {
struct _frama_c_rtti_name_info_node *value ;
int shift_object ;
int shift_vmt ;
};
struct _frama_c_rtti_name_info_node {
char const *name ;
struct _frama_c_rtti_name_info_content *base_classes ;
int number_of_base_classes ;
struct _frama_c_vmt *pvmt ;
};
struct anonymous_class_1;
struct A;
struct anonymous_class_1 {
int n ;
};
struct A {
struct anonymous_class_1 anonymous_2 ;
};
struct _frama_c_rtti_name_info_node _frama_c_rtti_name_info;
void A::Ctor(struct A const *this);
struct _frama_c_rtti_name_info_node _frama_c_rtti_name_info =
{.name = "A",
.base_classes = (struct _frama_c_rtti_name_info_content *)0,
.number_of_base_classes = 0,
.pvmt = (struct _frama_c_vmt *)0};
/*@ requires \valid_read(this); */
void A::Ctor(struct A const *this)
{
this->anonymous_2.n = 5;
return;
}