P
parag_paul
For the following c file,
#include <stdio.h>
#define U unsigned int
#define FULL_MASK 0xffffffff
int main(){
U mask = 0;
int g;
int bit = 5;
mask = (U)((5&31) ? ~(FULL_MASK << (5&31)) : FULL_MASK);
printf("%d and the value is maskt \n", mask);
g = mask;
}
I find that the in purify , the statement mask = (U)((5&31) ? ~
(FULL_MASK << (5&31)) : FULL_MASK);
basically assigns a uninitialized and unallocated value to the
variable mask.
Sorry if it is a purify specific question,. I did nto find any group
mathching that, so I believe that the next most suitable group is this
one.
Could this be a bug in purify,
#include <stdio.h>
#define U unsigned int
#define FULL_MASK 0xffffffff
int main(){
U mask = 0;
int g;
int bit = 5;
mask = (U)((5&31) ? ~(FULL_MASK << (5&31)) : FULL_MASK);
printf("%d and the value is maskt \n", mask);
g = mask;
}
I find that the in purify , the statement mask = (U)((5&31) ? ~
(FULL_MASK << (5&31)) : FULL_MASK);
basically assigns a uninitialized and unallocated value to the
variable mask.
Sorry if it is a purify specific question,. I did nto find any group
mathching that, so I believe that the next most suitable group is this
one.
Could this be a bug in purify,