1
// -*- Mode: C++; tab-width:2; indent-tabs-mode: nil; c-basic-offset: 2 -*-
2
// vi:tw=80:et:ts=2:sts=2
4
// -----------------------------------------------------------------------
6
// This file is part of RLVM, a RealLive virtual machine clone.
8
// -----------------------------------------------------------------------
10
// Copyright (C) 2013 Elliot Glaysher
12
// This program is free software; you can redistribute it and/or modify
13
// it under the terms of the GNU General Public License as published by
14
// the Free Software Foundation; either version 3 of the License, or
15
// (at your option) any later version.
17
// This program is distributed in the hope that it will be useful,
18
// but WITHOUT ANY WARRANTY; without even the implied warranty of
19
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
20
// GNU General Public License for more details.
22
// You should have received a copy of the GNU General Public License
23
// along with this program; if not, write to the Free Software
24
// Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
25
// -----------------------------------------------------------------------
27
#include "MachineBase/DumpScenario.hpp"
31
#include "libReallive/bytecode.h"
32
#include "libReallive/scenario.h"
36
void DumpScenario(libReallive::Scenario* scenario) {
38
cout << "Invalid scenario number." << endl;
42
libReallive::Scenario::iterator it = scenario->begin();
43
libReallive::Scenario::iterator end = scenario->end();
44
for (; it != end; ++it) {