- simgrid::instr::Type* type = container->type_->byName("MPI_STATE");
- const char *color = instr_find_color (operation);
- simgrid::instr::Value* val = simgrid::instr::Value::byNameOrCreate(operation, color, type);
- new simgrid::instr::PushStateEvent(SIMIX_get_clock(), container, type, val, static_cast<void*>(extra));
+ simgrid::instr::Type* state = container->type_->byName("MPI_STATE");
+ state->addEntityValue(operation, instr_find_color(operation));
+ new simgrid::instr::PushStateEvent(SIMIX_get_clock(), container, state, state->getEntityValue(operation),
+ static_cast<void*>(extra));