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
a8e252ca
Commit
a8e252ca
authored
9 years ago
by
Kostyantyn Vorobyov
Browse files
Options
Downloads
Patches
Plain Diff
[Bittree RTL] Indentation issues
parent
fd4ff9dd
No related branches found
Branches containing commit
No related tags found
Tags containing commit
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.h
+12
-12
12 additions, 12 deletions
...lugins/e-acsl/share/e-acsl/bittree_model/e_acsl_bittree.h
with
12 additions
and
12 deletions
src/plugins/e-acsl/share/e-acsl/bittree_model/e_acsl_bittree.h
+
12
−
12
View file @
a8e252ca
...
...
@@ -292,12 +292,11 @@ static void add_element (struct _block * ptr) {
father
->
father
=
NULL
;
father
->
mask
=
mask
(
brother
->
addr
&
brother
->
mask
,
ptr
->
ptr
);
__root
=
father
;
}
else
{
}
else
{
if
(
brother
->
father
->
left
==
brother
)
brother
->
father
->
left
=
father
;
brother
->
father
->
left
=
father
;
else
brother
->
father
->
right
=
father
;
brother
->
father
->
right
=
father
;
father
->
father
=
brother
->
father
;
/* necessary ? -- begin */
...
...
@@ -309,10 +308,10 @@ static void add_element (struct _block * ptr) {
brother
->
father
=
father
;
if
(
!
brother
->
is_leaf
)
brother
->
mask
=
mask
(
brother
->
left
->
addr
&
brother
->
left
->
mask
,
brother
->
right
->
addr
&
brother
->
right
->
mask
);
brother
->
right
->
addr
&
brother
->
right
->
mask
);
assert
((
father
->
left
==
brother
&&
father
->
right
==
new_leaf
)
||
(
father
->
left
==
new_leaf
&&
father
->
right
==
brother
));
||
(
father
->
left
==
new_leaf
&&
father
->
right
==
brother
));
}
}
...
...
@@ -362,12 +361,13 @@ static struct _block * get_cont (void * ptr) {
/* tmp cannot contain ptr because its begin addr is higher */
if
(
tmp
->
addr
>
(
size_t
)
ptr
)
return
NULL
;
/* tmp->addr <= ptr, tmp may contain ptr
ptr is contained if tmp is large enough (begin addr + size) */
ptr is contained if tmp is large enough (begin addr + size) */
else
if
((
size_t
)
ptr
<
tmp
->
leaf
->
size
+
tmp
->
addr
||
(
tmp
->
leaf
->
size
==
0
&&
(
size_t
)
ptr
==
tmp
->
leaf
->
ptr
))
return
tmp
->
leaf
;
return
tmp
->
leaf
;
/* tmp->addr <= ptr, but tmp->addr is not large enough */
else
return
NULL
;
else
return
NULL
;
}
assert
(
tmp
->
left
!=
NULL
&&
tmp
->
right
!=
NULL
);
...
...
@@ -383,10 +383,10 @@ static struct _block * get_cont (void * ptr) {
tmp
=
tmp
->
left
;
else
{
if
(
other_choice
==
NULL
)
return
NULL
;
return
NULL
;
else
{
tmp
=
other_choice
;
other_choice
=
NULL
;
tmp
=
other_choice
;
other_choice
=
NULL
;
}
}
}
...
...
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