Commit f2aad03
authored
* Rewrite of graph traversal used by Kore.Exec and Kore.Reachability.Prove
New traversal models required functionality in data types rather than
using exceptions and monad stack layers to add functionality.
The `graphTraversal` function operates with a list of "steps"
(sequences of "instructions") that take a configuration to a result
containing new configurations.
The traversal is parameterised with a specific transition function
`([Step instr],config) -> m (TransitionResult ([Step instr],config))`
which interprets step results. `TransitionResult` can indicate to
continue with one (`Continuing`) or more (`Branch`) new
configurations, or that the configuration is final, stuck, or should
be stopped.
One reason to stop is when the list of steps runs empty, other reasons
could be to stop execuction on the application of certain rules.
The transition function can be constructed from one that operates on
the primitive instructions, together with an interpretation function
that differs depending on the use case (proving or executing).
* Introduce named type for ([Step instr], config) (TState), document behaviour better
* refactor Kore.Exec.exec for readability
* update ghc923 nix configuration
Command
> nix run .#update-cabal-ghc9
* Overall documentation attached to graphTraversal
* adapt Simplifier imports
1 parent 3c37aab commit f2aad03
File tree
11 files changed
+752
-435
lines changed- kore
- src/Kore
- Exec
- Reachability
- Rewrite
- test/Test/Kore
- Rewrite
- nix
- kore-ghc8107.nix.d
- kore-ghc923.nix.d
11 files changed
+752
-435
lines changedSome generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
313 | 313 | | |
314 | 314 | | |
315 | 315 | | |
| 316 | + | |
316 | 317 | | |
317 | 318 | | |
318 | 319 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
40 | 40 | | |
41 | 41 | | |
42 | 42 | | |
43 | | - | |
| 43 | + | |
44 | 44 | | |
| 45 | + | |
45 | 46 | | |
46 | 47 | | |
47 | 48 | | |
| |||
69 | 70 | | |
70 | 71 | | |
71 | 72 | | |
| 73 | + | |
72 | 74 | | |
73 | 75 | | |
74 | 76 | | |
| |||
168 | 170 | | |
169 | 171 | | |
170 | 172 | | |
171 | | - | |
172 | 173 | | |
173 | 174 | | |
174 | 175 | | |
| |||
278 | 279 | | |
279 | 280 | | |
280 | 281 | | |
281 | | - | |
| 282 | + | |
282 | 283 | | |
283 | 284 | | |
284 | | - | |
| 285 | + | |
285 | 286 | | |
286 | 287 | | |
287 | | - | |
288 | 288 | | |
289 | | - | |
290 | | - | |
291 | | - | |
292 | | - | |
293 | | - | |
294 | | - | |
295 | | - | |
296 | | - | |
297 | | - | |
298 | | - | |
299 | | - | |
300 | | - | |
301 | | - | |
302 | | - | |
303 | | - | |
304 | | - | |
305 | | - | |
306 | | - | |
307 | | - | |
308 | | - | |
309 | | - | |
310 | | - | |
311 | | - | |
312 | | - | |
313 | | - | |
314 | | - | |
315 | | - | |
316 | | - | |
317 | | - | |
318 | | - | |
| 289 | + | |
| 290 | + | |
| 291 | + | |
| 292 | + | |
| 293 | + | |
| 294 | + | |
| 295 | + | |
| 296 | + | |
| 297 | + | |
| 298 | + | |
| 299 | + | |
| 300 | + | |
| 301 | + | |
| 302 | + | |
| 303 | + | |
| 304 | + | |
| 305 | + | |
319 | 306 | | |
320 | 307 | | |
321 | 308 | | |
| |||
328 | 315 | | |
329 | 316 | | |
330 | 317 | | |
331 | | - | |
332 | | - | |
333 | 318 | | |
334 | 319 | | |
335 | 320 | | |
336 | 321 | | |
337 | 322 | | |
338 | 323 | | |
339 | | - | |
340 | | - | |
341 | | - | |
| 324 | + | |
| 325 | + | |
| 326 | + | |
| 327 | + | |
| 328 | + | |
| 329 | + | |
| 330 | + | |
| 331 | + | |
| 332 | + | |
| 333 | + | |
| 334 | + | |
| 335 | + | |
| 336 | + | |
| 337 | + | |
| 338 | + | |
| 339 | + | |
| 340 | + | |
| 341 | + | |
| 342 | + | |
| 343 | + | |
| 344 | + | |
| 345 | + | |
| 346 | + | |
| 347 | + | |
| 348 | + | |
| 349 | + | |
| 350 | + | |
| 351 | + | |
| 352 | + | |
| 353 | + | |
| 354 | + | |
| 355 | + | |
| 356 | + | |
| 357 | + | |
| 358 | + | |
| 359 | + | |
| 360 | + | |
| 361 | + | |
| 362 | + | |
| 363 | + | |
| 364 | + | |
| 365 | + | |
| 366 | + | |
| 367 | + | |
| 368 | + | |
| 369 | + | |
| 370 | + | |
| 371 | + | |
342 | 372 | | |
343 | 373 | | |
344 | 374 | | |
| |||
494 | 524 | | |
495 | 525 | | |
496 | 526 | | |
497 | | - | |
| 527 | + | |
498 | 528 | | |
499 | 529 | | |
500 | 530 | | |
| |||
0 commit comments