1 /* Copyright (c) 2015-2020. The SimGrid Team.
2 * All rights reserved. */
4 /* This program is free software; you can redistribute it and/or modify it
5 * under the terms of the license (GNU LGPL) which comes with this package. */
7 #include "src/mc/remote/mc_protocol.h"
10 const char* MC_message_type_name(simgrid::mc::MessageType type)
12 constexpr std::array<const char*, 14> names{{"NONE", "CONTINUE", "IGNORE_HEAP", "UNIGNORE_HEAP", "IGNORE_MEMORY",
13 "STACK_REGION", "REGISTER_SYMBOL", "DEADLOCK_CHECK",
14 "DEADLOCK_CHECK_REPLY", "WAITING", "SIMCALL_HANDLE", "ASSERTION_FAILED",
15 "ACTOR_ENABLED", "ACTOR_ENABLED_REPLY"}};
16 return names[static_cast<int>(type)];