Skip to content

Incorrect behavior for global variables #4

@namasikanam

Description

@namasikanam

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions