Cell bag detection
Nobody has claimed this yet.
Assessment
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Newbie friendliness
- 25/100
- Issue type
- Bug
- Clarity
- Needs clarification
- Activity status
- Stale
- Domain
- compilers
Research direction
Reproduce the report with the provided strange.k definition using the kompile command, then read the cell-bag diagnostic and its source location. Check the blocked issue 3167 and related feature discussion in issue 1419; done should mean the requested behavior or guidance is clear for this configuration.
Written by the indexing model from the issue text.
Description
Blocked on: https://github.com/runtimeverification/k/issues/3167
What component is the issue in?
Front-End
Which command
- kompile
- kast
- krun
- kprove
- kprovex
- ksearch
What K Version?
K version: v5.5.38
Operating System
Linux
K Definitions (If Possible)
module STRANGE
imports DOMAINS
configuration
<top>
<nextid> 1 </nextid> //Last generated fresh int value
<ch> .Map </ch> //Map of channel names to types
<nset> .Map </nset> //Map of named sets to actual sets
<procstrs> //Bag to store process structures
<procstr multiplicity="*">
<pmodel> .K </pmodel> //The name given in the proc. definition
<pact> .Map </pact> //Map of action names to definitions
<psch> .Map </psch> //Map of schema names to definitions
<pdef> .K </pdef> //The whole process definition text
<pstate> .Map </pstate> //A map from state var names to types
<pinv> .K </pinv> //The state constraint
</procstr>
</procstrs>
<deadlock> .Set </deadlock> //Set with ids of deadlocked processes
<tempset> .Set </tempset> //Used for converting circus set to K sets
<procs> //Configuration for each running action
<proc color="green" multiplicity="*">
<model> .K </model> //The declared name for the process
<k>$PGM:K</k> //The K Cell -- The computation cell
<id>0</id> //An unique integer reference
<alt>0</alt> //Id to the alternative of an ext. choice
<parent>0</parent> //Reference to the proc. which spawned
<env> .Map </env> //A map from var names to symbolic values
<postenv> .Map </postenv> //Like env but used in schemas decor. vars.
<stack> .List </stack> //Stack of environments for nested scopes
<sync>false</sync> //Flag a process waiting an initial exec.
<const>true</const> //The constraint as in the OPS
<temp> .K </temp> //Auxiliary K manipulation
</proc>
</procs>
<inits> //Set of initials waiting for resolution
<init multiplicity="*">
<iresp> 0 </iresp> //The current responsible for the initial
<iev> .K </iev> //The communication event
<from> .Set </from> //References to all concerning processes
<ialt> .Set </ialt> //Reference to alternatives for ext. choice
<iexp> .K </iexp>
</init>
</inits>
<oks> //Set of notifications of solved initials
<ok multiplicity="*">
<oev> .K </oev> //The resolved communication event
<to> .Set </to> //References to the concerning processes
</ok>
</oks>
<spectr> .K </spectr> //The specification trace
<tr> .K </tr> //The observable output CS trace
</top>
endmodule
Steps to Reproduce
kompile strange.k
Expected Results
[Error] Compiler: Cell bags are only supported on the Java backend. If you want
this feature, comment on https://github.com/runtimeverification/k/issues/1419 .
As a workaround, you can add the attribute type="Set" and add a unique
identifier to each element in the set.
Source(~/strange/strange.k)
Location(5,5,53,11)
. v~~~~
5 | <top>
| ...
53 | </top>
. ~~~~~^
[Error] Compiler: Had 1 structural errors.
I don't understand what cell bags are, and where I need to put `type="Set".
- Dominant language
- Python
- Stars
- 591
- Forks
- 163
- PR merge metrics
- No merged PRs in 30d
Contributor guide
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.
More from runtimeverification/k
-
runtimeverification/k#4939 · 1 assignee ·
-
Concolic Explorer Open
Difficulty 5/5 Over a week Newbie friendliness 32/100
runtimeverification/k#4937 ·
-
Difficulty 5/5 Over a week Newbie friendliness 30/100
runtimeverification/k#4936 ·
-
type:epic
runtimeverification/k#4934 · 4 comments · 1 assignee ·
-
runtimeverification/k#4924 · 1 assignee ·
All issues in runtimeverification/k
Similar issues
-
Difficulty 2/5 1-3 hours Newbie friendliness 74/100
bancolombia/sentinel#23 ·
-
test md OpenCI
Difficulty 2/5 1-3 hours Newbie friendliness 74/100
-
integration:quickjs org:external priority:backlog topic:code-interpreter topic:middleware type:feature
Difficulty 2/5 1-3 hours Newbie friendliness 74/100
langchain-ai/deepagents#6450 ·
-
bug client
Difficulty 2/5 1-3 hours Newbie friendliness 88/100
-
Difficulty 2/5 1-3 hours Newbie friendliness 74/100