You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
extern void __VERIFIER_error(void);
int main(){
int arr[256];
if(((arr)[((unsigned int) 149)]) == ((unsigned char) 249)){
__VERIFIER_error();
}
return 0;
}
using default configuration. However symbiotic it did not find manage to find the error. Is there a flag that allows for arrays to be initialised implicitly, or do I have to run something like
for(int i = 0; i < ARRAY_SIZE; i++){
array[i] = __VERIFIER_nondet_int();
}
and explicitly initialize arrays to random values?
What command did you use to run Symbiotic? If you used the --sv-comp flag, then the automatic initialization of uninitialized memory was turned off (https://github.com/staticafi/symbiotic/blob/main/lib/symbioticpy/symbiotic/options.py#L122). The relevant command-line option is --explicit-symbolic, but it turns off this feature. I do not think there is currently a way to use --sv-comp and turn off --explicit-symbolic. To get the desired behavior, you must modify the line I referenced above. If you didn't use --sv-comp, then it is probably a bug.
I ran it with the default settings, so without --sv-comp or --explicit-symbolic. It only found the bug when I explicitly initialized the array with nondet values.
Hi, I was trying to run a program like
using default configuration. However symbiotic it did not find manage to find the error. Is there a flag that allows for arrays to be initialised implicitly, or do I have to run something like
and explicitly initialize arrays to random values?
Version is
The text was updated successfully, but these errors were encountered: