res.push_back(RecordTraceElement(pid, value));
}
- return std::move(res);
+ return res;
}
// TODO, deduplicate with SafetyChecker
xbt_free(req_str);
}
}
- return std::move(res);
+ return res;
}
void CommunicationDeterminismChecker::prepare()
int res = xbt_automaton_propositional_symbol_evaluate(ps);
xbt_dynar_push_as(values.get(), int, res);
}
- return std::move(values);
+ return values;
}
int LivenessChecker::compare(simgrid::mc::VisitedPair* state1, simgrid::mc::VisitedPair* state2)
}
}
- return std::move(res);
+ return res;
}
void LivenessChecker::showAcceptanceCycle(std::size_t depth)
xbt_free(req_str);
}
}
- return std::move(trace);
+ return trace;
}
int LivenessChecker::main(void)
locations.push_back({ DwarfExpression(ops, ops+len), range });
}
- return std::move(locations);
+ return locations;
}
XBT_DEBUG("New region : type : %s, data : %p (real addr %p), size : %zu",
to_cstr(region_type), region.flat_data().get(), permanent_addr, size);
- return std::move(region);
+ return region;
}
/** @brief Take a snapshot of a given region
simgrid::mc::RegionSnapshot region(
region_type, start_addr, permanent_addr, size);
region.page_data(std::move(page_data));
- return std::move(region);
+ return region;
}
}
res.push_back(RecordTraceElement(pid, value));
}
- return std::move(res);
+ return res;
}
std::vector<std::string> SafetyChecker::getTextualTrace() // override
xbt_free(req_str);
}
}
- return std::move(trace);
+ return trace;
}
int SafetyChecker::run()
simgrid::mc::RegionSnapshot region = simgrid::mc::RegionSnapshot(
region_type, start_addr, permanent_addr, size);
region.privatized_data(std::move(data));
- return std::move(region);
+ return region;
}
#endif
std::vector<s_local_variable> variables;
for (s_mc_stack_frame_t& stack_frame : stack_frames)
fill_local_variables_values(&stack_frame, stack_frame.frame, process_index, variables);
- return std::move(variables);
+ return variables;
}
static std::vector<s_mc_stack_frame_t> unwind_stack_frames(simgrid::mc::UnwindContext* stack_context)
xbt_abort();
}
- return std::move(result);
+ return result;
};
static std::vector<s_mc_snapshot_stack_t> take_snapshot_stacks(simgrid::mc::Snapshot* snapshot)
snapshot->stack_sizes.push_back(stack_size);
}
- return std::move(res);
+ return res;
}
}
closedir (fd_dir);
- return std::move(fds);
+ return fds;
}
std::shared_ptr<simgrid::mc::Snapshot> take_snapshot(int num_state)
break;
}
- return std::move(type);
+ return type;
}
static void MC_dwarf_handle_type_die(simgrid::mc::ObjectInformation* info, Dwarf_Die * die,
variable->name =
"@anonymous#" + std::to_string(mc_anonymous_variable_index++);
- return std::move(variable);
+ return variable;
}
static void MC_dwarf_handle_variable_die(simgrid::mc::ObjectInformation* info, Dwarf_Die * die,
for (int j = 0; j < 2; ++j)
res[2 * i + j] = hex_byte[j];
}
- return std::move(res);
+ return res;
}
/** Binary data to hexadecimal */
+ to_hex(id.data() + 1, id.size() - 1) + ".debug";
XBT_DEBUG("Checking debug file: %s", filename.c_str());
if (access(filename.c_str(), F_OK) == 0)
- return std::move(filename);
+ return filename;
}
return std::string();
}
for (auto& entry : result.get()->subprograms)
mc_post_process_scope(result.get(), &entry.second);
MC_make_functions_index(result.get());
- return std::move(result);
+ return result;
}
/*************************************************************************/
current = end + 1;
}
- return std::move(res);
+ return res;
}
#if HAVE_MC