Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Map assignments don't seem to be supported by AliasAnalysis #69

Open
rcastano opened this issue Jul 18, 2018 · 1 comment
Open

Map assignments don't seem to be supported by AliasAnalysis #69

rcastano opened this issue Jul 18, 2018 · 1 comment

Comments

@rcastano
Copy link
Contributor

The following code causes AliasAnalysis to throw an exception. I'm running AliasAnalysis.exe test.bpl, that is, without any additional arguments.

function {:inline} {:aliasingQuery} aliasQ(p: Ref, q: Ref) : bool
{
  p == q
}


type Ref;

var m: [Ref]int;

procedure Write1(r: Ref);
implementation Write1(r: Ref)
{

    m := m[r := 1];
    return;
}

procedure Main();
implementation Main()
{
var a : Ref;
call Write1(a);
assert aliasQ(a, a);
}
@shuvendu-lahiri
Copy link
Collaborator

As mentioned in email, try changing map update to "m[r] := 1".

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants