Partial start state for reachability query
Nobody has claimed this yet.
- Dominant language
- Rust
- Stars
- 4
- Forks
- 6
- PR merge metrics
- No merged PRs in 30d
Description
The reachability query currently supports partial end states, but not partial start states.
Partial states are states where atleast one location is marked as being any location.
This means that a partial location represents many states in a transition system.
This will require changes in the grammar, the parser, and the algorithm itself.
Will probably work similarly to partial end states in the grammar and parser, however will be implemented differently to partial end states in the algorithm itself.
I think the easiest way to implement it, is to in the find_path or reachability_search_algorithm function, to iterate through all states that the start state represents, and add each of them to the frontier, instead of only adding one state to the frontier, which should be correct and also be performant.
Examples of queries with partial start states where it should return reachable.
Machine -> [_](y>6); [_](y<2)
Machine || Researcher -> [_, _](x>6); [_, _](x<2)
Machine || Researcher -> [_, _](y>6); [L5, _](y<2)
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start by reading the grammar and parser handling for partial end states, then inspect find_path or reachability_search_algorithm to understand how the start state enters the frontier. Add partial start-state support for the examples in the issue, and verify that each example returns reachable while existing partial end-state behavior remains correct.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- rust
- Domain
- backend, compilers
- Issue type
- Feature
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 42/100