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
[sonar] Explicit cast when loosing precision (teshsuite/).
[simgrid.git]
/
teshsuite
/
mc
/
dwarf-expression
/
dwarf-expression.cpp
diff --git
a/teshsuite/mc/dwarf-expression/dwarf-expression.cpp
b/teshsuite/mc/dwarf-expression/dwarf-expression.cpp
index 6543cd0155248991470caeda302dcf9770542787..2810a039ee71ed57ee9a5b8eec0d329e7a78c975 100644
(file)
--- a/
teshsuite/mc/dwarf-expression/dwarf-expression.cpp
+++ b/
teshsuite/mc/dwarf-expression/dwarf-expression.cpp
@@
-1,4
+1,4
@@
-/* Copyright (c) 2014-20
19
. The SimGrid Team. All rights reserved. */
+/* Copyright (c) 2014-20
20
. The 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. */
/* 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. */
@@
-12,7
+12,7
@@
#include "src/mc/inspect/ObjectInformation.hpp"
#include "src/mc/inspect/Type.hpp"
#include "src/mc/inspect/Variable.hpp"
#include "src/mc/inspect/ObjectInformation.hpp"
#include "src/mc/inspect/Type.hpp"
#include "src/mc/inspect/Variable.hpp"
-#include "src/mc/remote/Remote
Client
.hpp"
+#include "src/mc/remote/Remote
Simulation
.hpp"
#include <cassert>
#include <cstdlib>
#include <cassert>
#include <cstdlib>
@@
-21,9
+21,10
@@
static std::default_random_engine rnd_engine;
static std::default_random_engine rnd_engine;
-static simgrid::mc::Remote
Client
* process;
+static simgrid::mc::Remote
Simulation
* process;
-static uintptr_t eval_binary_operation(simgrid::dwarf::ExpressionContext const& state, int op, uintptr_t a, uintptr_t b)
+static uintptr_t eval_binary_operation(simgrid::dwarf::ExpressionContext const& state, uint8_t op, uintptr_t a,
+ uintptr_t b)
{
Dwarf_Op ops[15];
ops[0].atom = DW_OP_const8u;
{
Dwarf_Op ops[15];
ops[0].atom = DW_OP_const8u;
@@
-145,7
+146,7
@@
static void test_deref(simgrid::dwarf::ExpressionContext const& state)
int main()
{
int main()
{
- process = new simgrid::mc::Remote
Client(getpid(), -1
);
+ process = new simgrid::mc::Remote
Simulation(getpid()
);
process->init();
simgrid::dwarf::ExpressionContext state;
process->init();
simgrid::dwarf::ExpressionContext state;