Commit d06672b
authored
Add initial implementation of the reachability algorithm (#1683)
Add a new module reachability which implements the reachability algorithm. Add the end to end logic for the reachability starting from all the harnesses in the target crate.
## Resolved issues:
Resolves #1672
## Related RFC:
#1588
## Call-outs:
We still need to build the custom sysroot in order to fix the missing functions issue.
I added a mechanism to run the regression tests using the MIR linker inside compiletest.
I ran the regression manually (with the mir_linker enabled) the only tests that didn't pass were:
cargo-kani/asm/global_error/doesnt_call_crate_with_global_asm.expected: The global assembly is out of the scope so it doesn't get processed. If we want to keep that behavior, we will have to inspect all items manually.
cargo-kani/cargo-tests-dir/expected: This might be a legit issue that I need to fix on kani-driver logic.
cargo-ui/dry-run/expected: Not an issue (arguments to the compiler changes).1 parent b85813e commit d06672b
18 files changed
Lines changed: 896 additions & 122 deletions
File tree
- kani-compiler/src
- codegen_cprover_gotoc
- codegen
- tests
- cargo-kani
- asm/global_error
- mir-linker
- src
- cargo-ui/mir-linker
- src
- ui
- mir-linker
- generic-harness
- unwind-without-proof
- tools/compiletest/src
Lines changed: 51 additions & 12 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
9 | 9 | | |
10 | 10 | | |
11 | 11 | | |
| 12 | + | |
| 13 | + | |
12 | 14 | | |
13 | 15 | | |
14 | 16 | | |
| |||
262 | 264 | | |
263 | 265 | | |
264 | 266 | | |
265 | | - | |
266 | | - | |
267 | | - | |
268 | | - | |
269 | | - | |
270 | | - | |
| 267 | + | |
| 268 | + | |
| 269 | + | |
| 270 | + | |
| 271 | + | |
| 272 | + | |
| 273 | + | |
| 274 | + | |
| 275 | + | |
| 276 | + | |
| 277 | + | |
| 278 | + | |
| 279 | + | |
| 280 | + | |
| 281 | + | |
| 282 | + | |
| 283 | + | |
| 284 | + | |
| 285 | + | |
| 286 | + | |
| 287 | + | |
| 288 | + | |
| 289 | + | |
| 290 | + | |
271 | 291 | | |
272 | | - | |
| 292 | + | |
| 293 | + | |
| 294 | + | |
| 295 | + | |
| 296 | + | |
| 297 | + | |
| 298 | + | |
| 299 | + | |
| 300 | + | |
| 301 | + | |
| 302 | + | |
| 303 | + | |
| 304 | + | |
| 305 | + | |
| 306 | + | |
| 307 | + | |
273 | 308 | | |
274 | 309 | | |
275 | 310 | | |
| |||
278 | 313 | | |
279 | 314 | | |
280 | 315 | | |
281 | | - | |
282 | | - | |
283 | | - | |
284 | | - | |
285 | | - | |
286 | 316 | | |
| 317 | + | |
| 318 | + | |
| 319 | + | |
| 320 | + | |
| 321 | + | |
| 322 | + | |
| 323 | + | |
| 324 | + | |
| 325 | + | |
287 | 326 | | |
288 | 327 | | |
289 | 328 | | |
| |||
0 commit comments