Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
Zwinkau
libfirm
Commits
c5a1cfe5
Commit
c5a1cfe5
authored
May 04, 2011
by
Christoph Mallon
Browse files
Assert monotonicity in set_bitinfo().
parent
d5358b95
Changes
1
Hide whitespace changes
Inline
Side-by-side
ir/opt/fp-vrp.c
View file @
c5a1cfe5
...
...
@@ -25,6 +25,7 @@
*/
#include
"config.h"
#include
<assert.h>
#include
<stdbool.h>
#include
"adt/pdeq.h"
...
...
@@ -151,6 +152,10 @@ static int set_bitinfo(ir_node* const irn, ir_tarval* const z, ir_tarval* const
set_irn_link
(
irn
,
b
);
}
else
if
(
z
==
b
->
z
&&
o
==
b
->
o
)
{
return
0
;
}
else
{
/* Assert monotonicity. */
assert
(
tarval_is_null
(
tarval_andnot
(
b
->
z
,
z
)));
assert
(
tarval_is_null
(
tarval_andnot
(
o
,
b
->
o
)));
}
b
->
z
=
z
;
b
->
o
=
o
;
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment