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 : remove useless debug message and add another one
[simgrid.git]
/
src
/
mc
/
mc_pair.c
diff --git
a/src/mc/mc_pair.c
b/src/mc/mc_pair.c
index
ca6678b
..
29910e6
100644
(file)
--- a/
src/mc/mc_pair.c
+++ b/
src/mc/mc_pair.c
@@
-1,4
+1,4
@@
-/* Copyright (c) 2013. The SimGrid Team.
+/* Copyright (c) 2013
-2014
. The SimGrid Team.
* All rights reserved. */
/* This program is free software; you can redistribute it and/or modify it
* All rights reserved. */
/* This program is free software; you can redistribute it and/or modify it
@@
-6,27
+6,25
@@
#include "mc_private.h"
#include "mc_private.h"
-mc_pair_t MC_pair_new(){
+mc_pair_t MC_pair_new()
+{
mc_pair_t p = NULL;
p = xbt_new0(s_mc_pair_t, 1);
mc_pair_t p = NULL;
p = xbt_new0(s_mc_pair_t, 1);
- p->nb_processes = xbt_swag_size(simix_global->process_list);
p->num = ++mc_stats->expanded_pairs;
p->search_cycle = 0;
p->num = ++mc_stats->expanded_pairs;
p->search_cycle = 0;
- p->other_num = -1;
return p;
}
return p;
}
-void MC_pair_delete(mc_pair_t p){
+void MC_pair_delete(mc_pair_t p)
+{
p->automaton_state = NULL;
MC_state_delete(p->graph_state);
p->automaton_state = NULL;
MC_state_delete(p->graph_state);
- p->stack_removed = 0;
- p->visited_removed = 0;
- p->acceptance_removed = 0;
xbt_dynar_free(&(p->atomic_propositions));
xbt_free(p);
p = NULL;
}
xbt_dynar_free(&(p->atomic_propositions));
xbt_free(p);
p = NULL;
}
-void mc_pair_free_voidp(void *p){
- MC_pair_delete((mc_pair_t) * (void **)p);
+void mc_pair_free_voidp(void *p)
+{
+ MC_pair_delete((mc_pair_t) * (void **) p);
}
}