Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
F
frama-c
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Releases
Container Registry
Model registry
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
pub
frama-c
Commits
600734f6
Commit
600734f6
authored
8 years ago
by
Kostyantyn Vorobyov
Browse files
Options
Downloads
Patches
Plain Diff
[RTL] Stylistic changes
parent
c17830a6
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
src/plugins/e-acsl/share/e-acsl/bittree_model/e_acsl_bittree_mmodel.c
+7
-7
7 additions, 7 deletions
...e-acsl/share/e-acsl/bittree_model/e_acsl_bittree_mmodel.c
with
7 additions
and
7 deletions
src/plugins/e-acsl/share/e-acsl/bittree_model/e_acsl_bittree_mmodel.c
+
7
−
7
View file @
600734f6
...
@@ -257,20 +257,20 @@ static void* store_block(void* ptr, size_t size) {
...
@@ -257,20 +257,20 @@ static void* store_block(void* ptr, size_t size) {
vabort
(
"Attempt to record NULL block"
);
vabort
(
"Attempt to record NULL block"
);
else
{
else
{
char
*
check
=
(
char
*
)
ptr
;
char
*
check
=
(
char
*
)
ptr
;
bt_block
*
block_che
ck
=
bt_find
(
ptr
);
bt_block
*
exitsing_blo
ck
=
bt_find
(
ptr
);
if
(
block_che
ck
)
{
if
(
exitsing_blo
ck
)
{
vabort
(
"
\n
Recording %a [%lu] at %s:%d failed."
vabort
(
"
\n
Recording %a [%lu] at %s:%d failed."
" Overlapping block %a [%lu] found at %s:%d
\n
"
,
" Overlapping block %a [%lu] found at %s:%d
\n
"
,
ptr
,
size
,
cloc
.
file
,
cloc
.
line
,
base_addr
(
check
),
ptr
,
size
,
cloc
.
file
,
cloc
.
line
,
base_addr
(
check
),
block_length
(
check
),
block_check
->
file
,
block_che
ck
->
line
);
block_length
(
check
),
exitsing_block
->
file
,
exitsing_blo
ck
->
line
);
}
}
check
+=
size
-
1
;
check
+=
size
-
1
;
block_che
ck
=
bt_find
(
check
);
exitsing_blo
ck
=
bt_find
(
check
);
if
(
block_che
ck
)
{
if
(
exitsing_blo
ck
)
{
vabort
(
"
\n
Recording %a [%lu] at %d failed."
vabort
(
"
\n
Recording %a [%lu] at %d failed."
" Overlapping block %a [%lu] found at %s:%d
\n
"
,
" Overlapping block %a [%lu] found at %s:%d
\n
"
,
ptr
,
size
,
cloc
.
file
,
cloc
.
line
,
base_addr
(
check
),
ptr
,
size
,
cloc
.
file
,
cloc
.
line
,
base_addr
(
check
),
block_length
(
check
),
block_check
->
file
,
block_che
ck
->
line
);
block_length
(
check
),
exitsing_block
->
file
,
exitsing_blo
ck
->
line
);
}
}
}
}
#endif
#endif
...
@@ -524,7 +524,7 @@ void delete_block_debug(char *file, int line, void* ptr) {
...
@@ -524,7 +524,7 @@ void delete_block_debug(char *file, int line, void* ptr) {
update_cloc
(
file
,
line
);
update_cloc
(
file
,
line
);
bt_block
*
tmp
=
bt_lookup
(
ptr
);
bt_block
*
tmp
=
bt_lookup
(
ptr
);
if
(
!
tmp
)
{
if
(
!
tmp
)
{
vabort
(
"Block with base address %a not found in
allocation
at %s:%d"
,
vabort
(
"Block with base address %a not found in
the memory model
at %s:%d"
,
ptr
,
file
,
line
);
ptr
,
file
,
line
);
}
}
delete_block
(
ptr
);
delete_block
(
ptr
);
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment