projects
/
c11tester.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
Change initialize a bit
[c11tester.git]
/
model.cc
diff --git
a/model.cc
b/model.cc
index 8f974762043065de618aea980d89ac2321ec9dcd..2aa31e9b596d9e46f5b147536134e3648bc9d498 100644
(file)
--- a/
model.cc
+++ b/
model.cc
@@
-54,7
+54,14
@@
void install_handler() {
perror("sigaction(SIGSEGV)");
exit(EXIT_FAILURE);
}
+}
+void createModelIfNotExist() {
+ if (!model) {
+ snapshot_system_init(100000);
+ model = new ModelChecker();
+ model->startChecker();
+ }
}
/** @brief Constructor */