Skip to content

Minor cleanup: PropertyClass #1551

Open
Open

Description

@tedinski

While auditing assertions (#1056) I noticed that we'd accumulated some possibly unnecessary PropertyClass constructors, and others need their purpose clarified and perhaps renamed.

https://github.com/model-checking/kani/blob/main/kani-compiler/src/codegen_cprover_gotoc/codegen/assert.rs

Decisions that need to be made:

  • Should we keep ArithmeticOverflow? Why can't that just be Assertion?
  • Should we keep Assume? It could be SafetyCheck perhaps?
  • Should we keep ExactDiv? Why can't that just be SafetyCheck?
  • Should we keep FiniteCheck? Why can't that just be SafetyCheck?
  • Can we find a way to distinguish RustC notions of Unreachable (a SanityCheck) from std::intrinsics::unreachable() in user code? (Which should be what, Assertion? or SafetyCheck? The decision would be whether it is UB or a panic to reach it...)
  • We should get rid of the current ExpectFail in favor of a proper Cover
  • The current Cover is more like AssertionCover and we'd want a separate Cover for explicit kani::cover(true) statements.

Activity

  1. added
    [I] Refactoring / Clean Up
    on Nov 14, 2022
  2. added
    [C] Internal
    Z-Kani Compiler
    on Nov 5, 2026
  3. self-assigned this
    on Nov 5, 2026
  4. added theissue type on Nov 6, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

Z-Kani Compiler[C] Internal[I] Refactoring / Clean Up

Type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions