Commit 8c4f93d6 authored by Alexandre Duret-Lutz's avatar Alexandre Duret-Lutz

* doc/org/tut22.org: Add missing call to prop_state_acc(True).

parent 20563d8a
Pipeline #7864 passed with stages
in 320 minutes and 17 seconds
......@@ -194,6 +194,7 @@ whenever possible".
// Set the acceptance condition of the automaton to Inf(0)
aut->set_buchi();
// Pretend this is state-based acceptance
aut->prop_state_acc(true);
// States are numbered from 0.
......@@ -258,6 +259,8 @@ State: 2
# Set the acceptance condition of the automaton to Inf(0)
aut.set_buchi()
# Pretend this is state-based acceptance
aut.prop_state_acc(True);
# States are numbered from 0.
aut.new_states(3)
......@@ -279,6 +282,26 @@ State: 2
print(aut.to_str('hoa'))
#+END_SRC
#+RESULTS:
#+begin_SRC hoa
HOA: v1
States: 3
Start: 0
AP: 2 "p1" "p2"
acc-name: Buchi
Acceptance: 1 Inf(0)
properties: trans-labels explicit-labels state-acc
--BODY--
State: 0
[0] 1
State: 1 {0}
[0&1] 1
[1] 2
State: 2
[0 | 1] 1
--END--
#+end_SRC
* Automaton with arbitrary acceptance condition
:PROPERTIES:
:CUSTOM_ID: setacc
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment