steadyReceiveSchedules = new HashMap(); initReceiveSchedules = new HashMap(); steadySendSchedules = new HashMap(); initSendSchedules = new HashMap();  RawBackend.simulator.simulate(top);  dumpSchedules();
try { steadyReceiveSchedules = new HashMap(); initReceiveSchedules = new HashMap(); steadySendSchedules = new HashMap(); initSendSchedules = new HashMap();  topFile = new FileWriter("magic_schedules.bc");   RawBackend.simulator.simulate(top);   createTopHeader(topFile);  dumpSchedules("send", initSendSchedules, steadySendSchedules); dumpSchedules("receive", initReceiveSchedules, steadyReceiveSchedules);   createList(topFile); topFile.close(); } catch (Exception e) { e.printStackTrace(); Utils.fail("Error creating the magic schedule file."); }
    public static void generateSchedules(FlatNode top)     {	steadyReceiveSchedules = new HashMap();	initReceiveSchedules = new HashMap();	steadySendSchedules = new HashMap();	initSendSchedules = new HashMap();	RawBackend.simulator.simulate(top);	//now the above hashmaps should be filled	dumpSchedules();    }