Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Spot
Spot
Commits
d79da2e9
Commit
d79da2e9
authored
Oct 25, 2014
by
Alexandre Duret-Lutz
Browse files
ltl: rename formula::count_ as formula::serial_.
* src/ltlast/formula.hh, src/ltlast/formula.cc: Here.
parent
2553c29c
Changes
2
Hide whitespace changes
Inline
Side-by-side
src/ltlast/formula.cc
View file @
d79da2e9
...
...
@@ -33,7 +33,7 @@ namespace spot
{
namespace
ltl
{
size_t
formula
::
max_
count
=
0
;
size_t
formula
::
max_
serial
=
0
;
const
formula
*
formula
::
clone
()
const
...
...
src/ltlast/formula.hh
View file @
d79da2e9
...
...
@@ -81,14 +81,14 @@ namespace spot
BUnOp
};
protected:
formula
(
opkind
k
)
:
count_
(
max_count
++
),
kind_
(
k
)
formula
(
opkind
k
)
:
serial_
(
max_serial
++
),
kind_
(
k
)
{
// If the counter of formulae ever loops, we want to skip the
// first three values, because they are permanently associated
// to constants, and it is convenient to have constants smaller
// than all other formulae.
if
(
max_
count
==
0
)
max_
count
=
3
;
if
(
max_
serial
==
0
)
max_
serial
=
3
;
}
public:
...
...
@@ -290,7 +290,7 @@ namespace spot
size_t
hash
()
const
{
return
count
_
;
return
serial
_
;
}
protected:
virtual
~
formula
();
...
...
@@ -302,7 +302,7 @@ namespace spot
virtual
bool
unref_
()
const
;
/// \brief The hash key of this formula.
size_t
count
_
;
size_t
serial
_
;
struct
ltl_prop
{
...
...
@@ -349,7 +349,7 @@ namespace spot
private:
/// \brief Number of formulae created so far.
static
size_t
max_
count
;
static
size_t
max_
serial
;
opkind
kind_
;
};
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment