/***********************************************************************/
+// FIXME, cross-process support? (or make this it is used on the app-side)
void MC_ignore_heap(void *address, size_t size)
{
+ if(!std_heap)
+ return;
int raw_mem_set = (mmalloc_get_current_heap() == mc_heap);
}
+// FIXME, cross-process support?
void MC_ignore_global_variable(const char *name)
{
mc_process_t process = &mc_model_checker->process;
* \param subprogram (possibly inlined) Subprogram of the scope
* \param scope Current scope
*/
+ // FIXME, cross-process support (messaging?)
static void mc_ignore_local_variable_in_scope(const char *var_name,
const char *subprogram_name,
dw_frame_t subprogram,
{
// Processing of direct variables:
- // If the current subprogram matche the given name:
+ // If the current subprogram matches the given name:
if (!subprogram_name ||
(subprogram->name && strcmp(subprogram_name, subprogram->name) == 0)) {
MC_SET_MC_HEAP;
- MC_ignore_local_variable_in_object(var_name, frame_name, process->libsimgrid_info);
- if (frame_name != NULL)
- MC_ignore_local_variable_in_object(var_name, frame_name, process->binary_info);
+ size_t n = process->object_infos_size;
+ size_t i;
+ for (i=0; i!=n; ++i) {
+ MC_ignore_local_variable_in_object(var_name, frame_name, process->object_infos[i]);
+ }
if (!raw_mem_set)
MC_SET_STD_HEAP;
/** @brief Register a stack in the model checker
*
* The stacks are allocated in the heap. The MC handle them especially
- * when we analyse/compare the content of theap so it must be told where
+ * when we analyse/compare the content of the heap so it must be told where
* they are with this function.
*
* @param stack
MC_SET_MC_HEAP;
+ // FIXME, cross-process support
if (mc_checkpoint_ignore == NULL)
mc_checkpoint_ignore =
xbt_dynar_new(sizeof(mc_checkpoint_ignore_region_t),