/* 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 "mc/mc_private.h"
#include "smpi/private.h"
#include "mc/mc_snapshot.h"
#include "mc/mc_private.h"
#include "smpi/private.h"
#include "mc/mc_snapshot.h"
- mc_variable_t current_var = &info->global_variables[cursor];
- int cmp = strcmp(current_var->name.c_str(), name);
+ simgrid::mc::Variable* current_var = &info->global_variables[cursor];
+ int cmp = current_var->name.compare(name);
static void mc_ignore_local_variable_in_scope(const char *var_name,
const char *subprogram_name,
static void mc_ignore_local_variable_in_scope(const char *var_name,
const char *subprogram_name,
static void MC_ignore_local_variable_in_object(const char *var_name,
const char *subprogram_name,
static void MC_ignore_local_variable_in_object(const char *var_name,
const char *subprogram_name,
MC_ignore_local_variable_in_object(var_name, frame_name, info.get());
}
static void MC_ignore_local_variable_in_object(const char *var_name,
const char *subprogram_name,
MC_ignore_local_variable_in_object(var_name, frame_name, info.get());
}
static void MC_ignore_local_variable_in_object(const char *var_name,
const char *subprogram_name,
*/
static void mc_ignore_local_variable_in_scope(const char *var_name,
const char *subprogram_name,
*/
static void mc_ignore_local_variable_in_scope(const char *var_name,
const char *subprogram_name,
if (compare == 0) {
// Variable found, remove it:
scope->variables.erase(scope->variables.begin() + cursor);
if (compare == 0) {
// Variable found, remove it:
scope->variables.erase(scope->variables.begin() + cursor);
for (simgrid::mc::Frame& nested_scope : scope->scopes) {
// The new scope may be an inlined subroutine, in this case we want to use its
// namespaced name in recursive calls:
for (simgrid::mc::Frame& nested_scope : scope->scopes) {
// The new scope may be an inlined subroutine, in this case we want to use its
// namespaced name in recursive calls:
{
if (stacks_areas == NULL)
stacks_areas = xbt_dynar_new(sizeof(stack_region_t), NULL);
{
if (stacks_areas == NULL)
stacks_areas = xbt_dynar_new(sizeof(stack_region_t), NULL);