Skip to content

Enable MIR linker in the bookrunner #1720

Closed

Description

@celinval

The bookrunner executes Kani with --function main instead of using harnesses. For that, we will need to enable the MIR linker to start from specific functions. #1674 will enable the reachability from public functions. We should either ensure that main function gets included here or we might want to add a new reachability algorithm that gets the name of the function to look for.

For simplicity, I'm leaning towards re-using the public function approach.

Activity

  1. self-assigned this
    on Oct 4, 2022
  2. moved this to Todo in Kani 0.13on Oct 4, 2022
  3. adpaco commented on Oct 14, 2022

    @adpaco
    Contributor

    In #1785 the MIR linker is used by default, including the bookrunner run. I've also built #1785 locally and compared the results with the legacy linker. The only difference between those runs is one more failure (in CI), likely due to one test which often shows intermittent failures in CI (runs fine in my machine but times out or gets close to it in CI).

    These are the results comparing a CI run with the legacy linker against the local run with the MIR linker:

    Failures Legacy linker MIR linker
    Check 2 2
    Codegen 4 4
    Verify 71 68
    Total 77 74

    The MIR linker doesn't affect Check/Codegen results, but slightly reduces the number of Verify failures. A large amount of verification failures are due to timeouts, which corresponds to the behavior we've seen in other tests suites (the now-available definitions cause the verification to run longer). Overall, I don't see any problem in enabling the MIR linker for bookrunner (which #1785 is already doing).

  4. moved this from Todo to In Progress in Kani 0.13on Oct 14, 2022
  5. Repository owner moved this from In Progress to Done in Kani 0.13on Oct 17, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions