Spinroot

A forum for Spin users

You are not logged in.

#1 Re: General » initial state(s) of exported promela proctype » 2014-12-16 23:25:21

That is great news, thank you.

Let me know if you'd prefer regression tests for that assumption, so no one needs to remember it by heart. Else, I'll write them as acceptance tests in MBT Arranger: PML files as test input and state table extracts as test output.

#2 General » initial state(s) of exported promela proctype » 2014-12-15 20:35:06

ETAS-Eder
Replies: 2

Hi there,

we want to process PROMELA proctypes as automata. With MBT Arranger one can define data, state and transition coverage criteria to generate NOTRACEs, which in turn generate testcases.
I have published a video on youtoube ( http://youtu.be/8SjWP42uoq4 ) where you can watch the 3 processing stages involved:
(1b) the raw machine automaton is visualized, as output by SPIN.
(2b) a trimmed version of that automaton is visualized, as processed by consuming ARRANGE operators.
(3b) a depth-first transition covering test sequence is rendered.

As you can see, MBT Arranger trims the terminal sequence fine, it is well recognizable. I have a question regarding initial state. How should the initial state(s) be identified.
The current approach is to use the first state from the DIGRAPH listing, e.g. S12 in

digraph p_boaClient1 {
  GT [shape=box,style=dotted,label="boaClient1"];
    S12 -> S2  [color=black,style=bold,label="chin?cfg_buffer,_"];
    S12 -> S4  [color=black,style=bold,label="chin?cfg_channel,_"];
    S12 -> S6  [color=black,style=bold,label="chin?cfg_baudrate,_"];
    S12 -> S8  [color=black,style=bold,label="chin?cfg_selfRcpt,_"];
    S12 -> S10  [color=black,style=bold,label="chin?tx"];
    S12 -> S15  [color=black,style=bold,label="goto :b0"];
    S2 -> S12  [color=black,style=bold,label="chout!cfg_return"];
    S4 -> S12  [color=black,style=bold,label="chout!cfg_return"];
    S6 -> S12  [color=black,style=bold,label="chout!cfg_return"];
    S8 -> S12  [color=black,style=bold,label="chout!cfg_return"];
    S10 -> S12  [color=black,style=bold,label="chout!rx"];
    S15 -> S0  [color=black,style=solid,label="-end-"];
  S15 [color=blue,style=bold,shape=box];
}

Manual inspection of DIGRAPHs exported from SPIN gave me empirical confidence, but is this guaranteed by design?
I could easily replace the DIGRAPH parser with a parser for your state table exports. Both have exported transitions in identical order.

Kind regards
Dennis

#3 Re: General » license terms of HTML man pages here on the www.spinroot.com website » 2014-09-02 18:45:22

Just implemented. On http://youtu.be/1zybF1Ozuoc you can have a look at your proposed hyper-linking in action.

Thanks again
Dennis

#4 Re: General » license terms of HTML man pages here on the www.spinroot.com website » 2014-09-01 16:40:14

Thank you for your quick reply and positive feedback.

I will follow your advice: MBT Arranger will present a short single-sentence summary with synopsis accessible offline. In the copyright notice below that summary it will provide a hyperlink to your latest online man page. That way users can work completely offline and have your original online documentation just one explicit click away.
I will drop a sample here once done.

Kind regards,
Dennis

#5 General » license terms of HTML man pages here on the www.spinroot.com website » 2014-08-30 11:02:25

ETAS-Eder
Replies: 4

Dear SPIN developers,

MBT Arranger is a C++ test generator that uses PROMELA as its modeling input language.

I enhanced its Eclipse-based "content assist" (aka "intellisense") to present HTML contents and would like to include the man pages as on http://spinroot.com/spin/Man/promela.html for all the syntax-highlighted keywords such as mtype, trace, etc.

What are the license terms of those HTML man pages from the www.spinroot.com website or whom shall I ask for written permission?

Thank you and kind regards,
Dennis

p.s.:
MBT Arranger is free of charge and open sourced by ETAS/BOSCH. Development status is published at https://github.com/etas/MBT-ARRANGER/wiki and mirrored at http://sourceforge.net/projects/mbtarranger .
Here is a screenshot of content assist for mtype: https://github.com/etas/MBT-ARRANGER/blob/gh-pages/pics/content_assist.jpg
Here is a video of the PROMELA editor and explorer in action: https://www.youtube.com/watch?v=KXP8A7nxW4c

For debugging I included another gadget, called "Path Finder". It shows semi-automated state exploration according to parameters 'lookahead', 'lookbehind', 'lookaside', 'maxtransitions' and 'decision history'. It visualizes state space exploration up to / beyond / beside the next pending user decision and asks for user input on how to proceed at the next non-deterministic branching of your SPIN model or jump back (partial reset) to an earlier decision. I recorded a video of that state space exploration: https://www.youtube.com/watch?v=aUPJAUjipsM

Board footer

Powered by FluxBB