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
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
[kernel] Parsing tests/basic/new_all_kind.cpp (external front-end)
Now output intermediate result
[kernel] Warning: Assuming declared function malloc can't throw any exception
[kernel] Warning: Assuming declared function malloc can't throw any exception
[kernel] Warning: Assuming declared function malloc can't throw any exception
[kernel] Warning: Assuming declared function malloc can't throw any exception
[kernel] Warning: Assuming declared function malloc can't throw any exception
/* 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 A;
struct A {
int x ;
};
void *malloc(unsigned int size);
struct _frama_c_rtti_name_info_node _frama_c_rtti_name_info;
/*@ requires \valid_read(this); */
void A::Ctor(struct A const *this)
{
this->x = 42;
return;
}
/*@ requires \valid_read(this); */
void A::Ctor(struct A const *this, int x_)
{
this->x = x_;
return;
}
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};
int main(void)
{
int __retres;
struct A *tmp;
struct A *t1;
struct A *__fc_tmp_2;
struct A *t2;
struct A *__fc_tmp_3;
struct A *t3;
struct A *__fc_tmp_4;
struct A *tmp_0;
{
struct A *__fc_tmp_0;
__fc_tmp_0 = (struct A *)malloc(sizeof(struct A) * (unsigned int)26);
{
unsigned long long __fc_tmp_1 = 0ULL;
while (__fc_tmp_1 < (unsigned long long)26) {
A::Ctor((struct A const *)(__fc_tmp_0 + __fc_tmp_1));
__fc_tmp_1 ++;
}
}
tmp = __fc_tmp_0;
}
struct A *t = tmp;
__fc_tmp_2 = (struct A *)malloc(sizeof(struct A));
A::Ctor((struct A const *)__fc_tmp_2);
t1 = __fc_tmp_2;
__fc_tmp_3 = (struct A *)malloc(sizeof(struct A));
A::Ctor((struct A const *)__fc_tmp_3);
t2 = __fc_tmp_3;
__fc_tmp_4 = (struct A *)malloc(sizeof(struct A));
A::Ctor((struct A const *)__fc_tmp_4,5);
t3 = __fc_tmp_4;
{
struct A *__fc_tmp_5;
__fc_tmp_5 = (struct A *)malloc(sizeof(struct A) * (unsigned int)5);
{
unsigned long long __fc_tmp_6 = 0ULL;
while (__fc_tmp_6 < (unsigned long long)5) {
A::Ctor((struct A const *)(__fc_tmp_5 + __fc_tmp_6));
__fc_tmp_6 ++;
}
}
tmp_0 = __fc_tmp_5;
}
struct A *t4 = tmp_0;
__retres = 0;
return __retres;
}