projects
/
model-checker.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
2c830a9
)
nodestack: use initializer list
author
Brian Norris
<banorris@uci.edu>
Thu, 4 Oct 2012 21:57:37 +0000
(14:57 -0700)
committer
Brian Norris
<banorris@uci.edu>
Thu, 4 Oct 2012 21:57:37 +0000
(14:57 -0700)
nodestack.cc
patch
|
blob
|
history
diff --git
a/nodestack.cc
b/nodestack.cc
index a73765320dac47e97428390fe37bc3b06ba10483..0be23af47643d269f207e80a474e03ea4ab84847 100644
(file)
--- a/
nodestack.cc
+++ b/
nodestack.cc
@@
-362,12
+362,12
@@
void Node::explore(thread_id_t tid)
explored_children[i] = true;
}
-NodeStack::NodeStack()
- : total_nodes(0)
+NodeStack::NodeStack() :
+ node_list(1, new Node()),
+ iter(0),
+ total_nodes(0)
{
- node_list.push_back(new Node());
total_nodes++;
- iter = 0;
}
NodeStack::~NodeStack()