-
Notifications
You must be signed in to change notification settings - Fork 4
Open
Description
As global variables can cause the inpurity of the functions, that is functions will possibly have side effect, current piVC cannot handle them correctly. For example, the partial correctness of the following code will be verified.
int x;
@pre true
@post rv > 0
int fun() {
x := 1;
return x;
}
@pre true
@post rv < 0
int fun1() {
x := -1;
fun();
return x;
}
I have no idea how to fix this bug, It seems a inherent flaw of the algorithm.
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels