Commit b4187a2
committed
kani: Simplify proofs to avoid serde_json state explosion
The proofs using JsonRpcRequest/Response with kani::any() caused
combinatorial explosion in Kani's bounded model checking due to
the complexity of serde_json::Value types.
Simplify to focus on verifiable properties:
- skip_if_zero_or_none: 3 proofs covering None, Some(0), Some(n>0)
- get_fds: 2 proofs covering None and Some(n) cases
These 5 proofs now complete successfully in ~0.02s each.
Assisted-by: OpenCode (Claude Sonnet 4)1 parent 47911cc commit b4187a2
1 file changed
Lines changed: 10 additions & 27 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
289 | 289 | | |
290 | 290 | | |
291 | 291 | | |
292 | | - | |
| 292 | + | |
293 | 293 | | |
294 | 294 | | |
295 | | - | |
| 295 | + | |
296 | 296 | | |
297 | | - | |
298 | | - | |
299 | | - | |
| 297 | + | |
| 298 | + | |
300 | 299 | | |
301 | 300 | | |
302 | 301 | | |
303 | | - | |
304 | 302 | | |
305 | 303 | | |
306 | | - | |
307 | 304 | | |
308 | | - | |
309 | | - | |
310 | | - | |
311 | | - | |
312 | | - | |
313 | | - | |
314 | | - | |
315 | | - | |
316 | | - | |
317 | | - | |
318 | | - | |
319 | | - | |
320 | | - | |
321 | | - | |
322 | | - | |
323 | | - | |
| 305 | + | |
324 | 306 | | |
325 | 307 | | |
326 | | - | |
| 308 | + | |
327 | 309 | | |
328 | | - | |
| 310 | + | |
| 311 | + | |
329 | 312 | | |
330 | 313 | | |
331 | 314 | | |
332 | 315 | | |
333 | | - | |
| 316 | + | |
334 | 317 | | |
335 | 318 | | |
336 | | - | |
| 319 | + | |
337 | 320 | | |
338 | 321 | | |
0 commit comments