Skip to content
GitLab
Projects Groups Snippets
  • /
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
  • Sign in
  • Spot Spot
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
  • Issues 133
    • Issues 133
    • List
    • Boards
    • Service Desk
    • Milestones
  • Merge requests 1
    • Merge requests 1
  • CI/CD
    • CI/CD
    • Pipelines
    • Jobs
    • Schedules
  • Deployments
    • Deployments
    • Environments
    • Releases
  • Monitor
    • Monitor
    • Incidents
  • Analytics
    • Analytics
    • Value stream
    • CI/CD
    • Repository
  • Wiki
    • Wiki
  • Activity
  • Graph
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
Collapse sidebar
  • SpotSpot
  • SpotSpot
  • Issues
  • #170
Closed
Open
Issue created Apr 29, 2016 by Alexandre Duret-Lutz@adlOwner4 of 4 checklist items completed4/4 checklist items

counting atomic propositions and transitions

% cat >aut <<EOF
HOA: v1
States: 1
Start: 0
AP: 2 "a" "b"
Acceptance: 0 t
--BODY--
State: 0 
[1] 0
--END--
EOF

This automaton declares two atomic propositions, but uses only one. So its single edge should count as two transitions.

Yet Spot counts it as a single transition, because the algorithm counting transitions only consider the atomic propositions that are actually used.

% autfilt --stats=%t aut
1

A related issue (?) is

% autfilt --ap=2 aut
HOA: v1
States: 1
Start: 0
AP: 1 "b"
acc-name: all
Acceptance: 0 t
properties: trans-labels explicit-labels state-acc deterministic
--BODY--
State: 0
[0] 0
--END--

which shockingly prints an automaton with a single atomic proposition, even though we filtered automata that have 2 atomic propositions. This is because --ap use the declared number of atomic propositions, while print_hoa() outputs only the used propositions.

I suggests the following changes:

  • change twa_sub_statistics() to use ap() instead of discovering used atomic propositions so that --ap is more faithful to the input
  • change print_hoa() to honor ap()
  • introduce a remove_unused_ap() function, a relevant option in autfilt, and probably always call this in postproc.
  • introduce a --used-ap filter to autfilt
Assignee
Assign to
Time tracking