projects
/
c11tester.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
eb3b6cc
)
model: fix "earliest diverge" NULL pointer exception
author
Brian Norris
<banorris@uci.edu>
Tue, 2 Oct 2012 18:02:46 +0000
(11:02 -0700)
committer
Brian Norris
<banorris@uci.edu>
Tue, 2 Oct 2012 18:33:37 +0000
(11:33 -0700)
model.cc
patch
|
blob
|
history
diff --git
a/model.cc
b/model.cc
index 1598fb9a276343ba3daf59f3beedad6d452115e7..ae0a787f3ad7a776c416a47cbb302d95f03c02c2 100644
(file)
--- a/
model.cc
+++ b/
model.cc
@@
-183,7
+183,10
@@
bool ModelChecker::next_execution()
num_executions++;
if (isfinalfeasible()) {
printf("Earliest divergence point since last feasible execution:\n");
- earliest_diverge->print();
+ if (earliest_diverge)
+ earliest_diverge->print();
+ else
+ printf("(Not set)\n");
earliest_diverge = NULL;
num_feasible_executions++;