X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/blobdiff_plain/b7c05078f9a89dba063df2fc7edea55ae1d6a3ed..e6bc6eb53997f4648bf3207348c060e9f50ee282:/src/mc/mc_state.c diff --git a/src/mc/mc_state.c b/src/mc/mc_state.c index ad66b618e3..822d17a431 100644 --- 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 "private.h" +#include "mc_private.h" /** * \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); - + state->system_state = NULL; + mc_stats->expanded_states++; return state; }