Skip to content

Add unsafe callee detection for verification targets.#239

Merged
hxuhack merged 3 commits into
safer-rust:mainfrom
hxuhack:main
May 6, 2026
Merged

Add unsafe callee detection for verification targets.#239
hxuhack merged 3 commits into
safer-rust:mainfrom
hxuhack:main

Conversation

@hxuhack
Copy link
Copy Markdown
Contributor

@hxuhack hxuhack commented May 6, 2026

No description provided.

@hxuhack hxuhack merged commit b8490c2 into safer-rust:main May 6, 2026
1 check passed
hxuhack added a commit that referenced this pull request May 12, 2026
* Add a new cli option for verification. (#237)

* add verify test

* feat: add verify command with --scan option

* fix compilation errors

* fix bugs

* refactor verification module to make pipeline clearer (#238)

* Add unsafe callee detection for verification targets. (#239)

* Extend verify scan to collect unsafe callees

* add unsafe callees

* * rename scan to collect
* add std contracts
* add 2 test cases for alignment verification (#240)
* extract callee contracts.

---------

* Update verify target collector (#242)

* add local verify contract module

* add local verify helper module

* fix verify local module paths and type inference

* add English documentation to verify collect module

* update

* refactor verify (#243)

* add struct invariants (#244)

* add a struct example

* Refactor verify targets into function and struct targets

* Support struct field and generic resolution in verify helpers

* Simplify verify target collector structure

* Fix struct invariant collection for local struct targets

* Read struct invariants from local struct HIR items

* fix compilation bug

* fix bug

* Add RAPx attribute parser under verify

* Use shared RAPx attribute parser in verify target analysis

* Fix RAPx attribute parsing with syn outer attributes

* Use method context when parsing struct invariants

* update rapx attribute parsing (#245)

* merge two get fn proterty functions

* delete walk_fn

* refactor: simplify RAPx attribute parser flow

* refactor: deduplicate RAPx verify attribute collection

* refactor: remove requires kind filtering

* Associate RAPx kind with preceding property

* update attribute parser (#246)

* docs: add doc comments and inline comments to attr_parser.rs

* docs: clarify requires attribute parser comments and naming

* Refactor RAPx requires attribute parsing for semicolon metadata

* Simplify RAPx requires attribute parser for single property syntax

* Refactor src modules into analysis, check, and verify namespaces with dedicated CLI check args

* Complete physical `analysis` → `check`/`verify` module migration in `rapx` (#247)

---------

Co-authored-by: ClearLove <98693523+DiuDiu777@users.noreply.github.com>
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

Successfully merging this pull request may close these issues.

1 participant