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

Unsound axiom not considered when domain not used #793

Open
bruggerl opened this issue Jan 4, 2024 · 1 comment
Open

Unsound axiom not considered when domain not used #793

bruggerl opened this issue Jan 4, 2024 · 1 comment
Assignees

Comments

@bruggerl
Copy link
Contributor

bruggerl commented Jan 4, 2024

This should successfully verify (in Carbon, it does), but verification fails:

domain Foo {
  axiom unsound {
    false
  }
}

method test()
{
  assert false
}

Silicon reports that the assertion might not hold.

When declaring a variable of type Foo in the method test, verification succeeds:

domain Foo {
  axiom unsound {
    false
  }
}

method test()
{
  var x: Foo
  assert false
}
@mschwerhoff
Copy link
Contributor

I don't have a strong opinion, but we should be careful not to let such corner cases prevent (in general important) optimisations.

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

3 participants