typedef struct {
int last_Irecv_sender_id;
int bcast_counter;
} s_process_globals_t;
typedef s_process_globals_t *process_globals_t;
{
double value;
char *endptr;
value = strtod(string, &endptr);
if (*endptr != '\0')
return value;
}
#define ACT_DEBUG(...) \
if (XBT_LOG_ISENABLED(actions, xbt_log_priority_verbose)) { \
char *NAME = xbt_str_join_array(action, " "); \
XBT_DEBUG(__VA_ARGS__); \
xbt_free(NAME); \
} else ((void)0)
static void log_action(const char *const *action, double date)
{
}
}
static void asynchronous_cleanup(void)
{
while (1) {
if (pos_found == -1)
break;
}
}
{
char to[250];
const char *size_str = action[3];
ACT_DEBUG("Entering Send: %s (size: %g)", NAME, size);
if (size < 65536) {
} else {
}
asynchronous_cleanup();
}
{
char to[250];
const char *size = action[3];
asynchronous_cleanup();
}
{
char mailbox_name[250];
ACT_DEBUG("Receiving: %s", NAME);
}
asynchronous_cleanup();
}
{
char mailbox[250];
asynchronous_cleanup();
}
{
ACT_DEBUG("Entering %s", NAME);
}
{
static int processes_arrived_sofar = 0;
if (mutex == NULL) {
processes_arrived_sofar = 0;
}
ACT_DEBUG("Entering barrier: %s (%d already there)", NAME, processes_arrived_sofar);
processes_arrived_sofar++;
} else {
}
ACT_DEBUG("Exiting barrier: %s", NAME);
processes_arrived_sofar--;
if (processes_arrived_sofar<=0) {
mutex = NULL;
}
}
{
char mailbox[80];
char *bcast_identifier =
bprintf(
"bcast_%d", counters->bcast_counter);
counters->bcast_counter++;
if (!strcmp(process_name, "p0")) {
XBT_DEBUG(
"%s: %s is the Root", bcast_identifier, process_name);
snprintf(mailbox,79, "%s_p0_p%d", bcast_identifier, i);
}
XBT_DEBUG(
"%s: all messages sent by %s have been received", bcast_identifier, process_name);
} else {
snprintf(mailbox,79, "%s_p0_%s", bcast_identifier, process_name);
XBT_DEBUG(
"%s: %s has received", bcast_identifier, process_name);
}
}
{
const char *size = action[2];
}
{
const char *amount = action[2];
ACT_DEBUG("Entering %s", NAME);
}
{
process_globals_t globals = (process_globals_t) calloc(1, sizeof(s_process_globals_t));
}
{
if (globals) {
asynchronous_cleanup();
}
}
{
"Usage: %s platform_file deployment_file [action_files]\n"
"\t# if all actions are in the same file\n"
"\tExample: %s msg_platform.xml msg_deployment.xml actions\n"
"\t# if actions are in separate files, specified in deployment\n"
"\tExample: %s msg_platform.xml msg_deployment.xml ",
argv[0],argv[0],argv[0]);
}