Colored Marking Mismatch

Bug #1958274 reported by Peter Gjøl Jensen
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
TAPAAL
Fix Committed
Undecided
Kenneth Yrke Jørgensen

Bug Description

When sending the token-ring example to the engine, the GUI does not translate the marking correctly.

Specifically it computes:
            <hlinitialMarking>
                <text>(6'dot)</text>
                <structure>
                    <add>
                        <subterm>
                            <numberof>
                                <subterm>
                                    <numberconstant value="6">
                                        <positive/>
                                    </numberconstant>
                                </subterm>
                                <subterm>
                                    <useroperator declaration="dot"/>
                                </subterm>
                            </numberof>
                        </subterm>
                    </add>
                </structure>
            </hlinitialMarking>

where markings are noted as "dot".

The correct version would look more like:
                <hlinitialMarking>
                    <text>{($i,$i) | 0 leq $i leq 5}</text>
                    <structure>
                        <add>
                            <subterm>
                                <numberof>
                                    <subterm>
                                        <numberconstant value="1">
                                            <positive/>
                                        </numberconstant>
                                    </subterm>
                                    <subterm>
                                        <tuple>
                                            <subterm>
                                                <useroperator declaration="process0"/>
                                            </subterm>
                                            <subterm>
                                                <useroperator declaration="process0"/>
                                            </subterm>
                                        </tuple>
                                    </subterm>
                                </numberof>
                            </subterm>

Related branches

Revision history for this message
Peter Gjøl Jensen (peter-gjoel) wrote :

produced model from the GUI sent to the engine.

Revision history for this message
Peter Gjøl Jensen (peter-gjoel) wrote :

Example of correctly formatted initial marking

Revision history for this message
Peter Gjøl Jensen (peter-gjoel) wrote :

This version of the engine throws an error when the initial marking does not match:
https://github.com/TAPAAL/verifypn/pull/31

Jiri Srba (srba)
Changed in tapaal:
milestone: none → cpn
Changed in tapaal:
assignee: nobody → Kenneth Yrke Jørgensen (yrke)
status: New → Fix Committed
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.