A
lgorithmique
N
umérique
D
istribuée
Public GIT Repository
projects
/
simgrid.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
model-checker : init MC for liveness in a separate function
[simgrid.git]
/
src
/
mc
/
mc_state.c
diff --git
a/src/mc/mc_state.c
b/src/mc/mc_state.c
index
ad66b61
..
822d17a
100644
(file)
--- a/
src/mc/mc_state.c
+++ b/
src/mc/mc_state.c
@@
-1,20
+1,24
@@
+/* Copyright (c) 2008-2012 Da SimGrid Team. All rights reserved. */
+/* This program is free software; you can redistribute it and/or modify it
+ * under the terms of the license (GNU LGPL) which comes with this package. */
#include "../simix/smx_private.h"
#include "xbt/fifo.h"
#include "../simix/smx_private.h"
#include "xbt/fifo.h"
-#include "private.h"
+#include "
mc_
private.h"
/**
* \brief Creates a state data structure used by the exploration algorithm
*/
/**
* \brief Creates a state data structure used by the exploration algorithm
*/
-mc_state_t MC_state_new(
void
)
+mc_state_t MC_state_new()
{
mc_state_t state = NULL;
state = xbt_new0(s_mc_state_t, 1);
state->max_pid = simix_process_maxpid;
state->proc_status = xbt_new0(s_mc_procstate_t, state->max_pid);
{
mc_state_t state = NULL;
state = xbt_new0(s_mc_state_t, 1);
state->max_pid = simix_process_maxpid;
state->proc_status = xbt_new0(s_mc_procstate_t, state->max_pid);
-
+ state->system_state = NULL;
+
mc_stats->expanded_states++;
return state;
}
mc_stats->expanded_states++;
return state;
}