I am trying to check the add value in " temp = (volatile unsigned short*) add " through the temp variable in the following example:
main() {
unsigned short add = 0x01;
unsigned short val = 0x00;
unsigned short *temp;
temp = (volatile unsigned short*) add;
*temp = val;
//@ assert &temp == (unsigned short) 0x01;
}
But I got this error at line "//@ assert &temp == (unsigned short) 0x01;"
[kernel] user error: incompatible types unsigned short and unsigned short **
[kernel] user error: stopping on file "test_func_call.c" that has errors. Add '-kernel-msg-key pp'for preprocessing command.
I know it may be all about C, but I use Frama-C's tag as well. Hope that I can receive the answer on checking the add value by Frama-C.