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
create a singleton for s4u::Engine
[simgrid.git]
/
src
/
mc
/
mc_pair.cpp
diff --git
a/src/mc/mc_pair.cpp
b/src/mc/mc_pair.cpp
index
129e69a
..
afed72a
100644
(file)
--- a/
src/mc/mc_pair.cpp
+++ b/
src/mc/mc_pair.cpp
@@
-4,7
+4,9
@@
/* 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. */
/* 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 <xbt.h>
+#include <xbt/dynar.h>
+#include <xbt/sysdep.h>
+
#include "src/mc/mc_liveness.h"
#include "src/mc/mc_private.h"
#include "src/mc/mc_liveness.h"
#include "src/mc/mc_private.h"
@@
-12,7
+14,7
@@
extern "C" {
mc_pair_t MC_pair_new()
{
mc_pair_t MC_pair_new()
{
- mc_pair_t p =
NULL
;
+ mc_pair_t p =
nullptr
;
p = xbt_new0(s_mc_pair_t, 1);
p->num = ++mc_stats->expanded_pairs;
p->exploration_started = 0;
p = xbt_new0(s_mc_pair_t, 1);
p->num = ++mc_stats->expanded_pairs;
p->exploration_started = 0;
@@
-23,12
+25,12
@@
mc_pair_t MC_pair_new()
void MC_pair_delete(mc_pair_t p)
{
void MC_pair_delete(mc_pair_t p)
{
- p->automaton_state =
NULL
;
+ p->automaton_state =
nullptr
;
if(p->visited_pair_removed)
MC_state_delete(p->graph_state, 1);
xbt_dynar_free(&(p->atomic_propositions));
xbt_free(p);
if(p->visited_pair_removed)
MC_state_delete(p->graph_state, 1);
xbt_dynar_free(&(p->atomic_propositions));
xbt_free(p);
- p =
NULL
;
+ p =
nullptr
;
}
}
}
}