- Make Scheduler::step_forward return a bool representing if
the step went okay or otherwise if the simulation ended - Fix simulation states in concrete_simulation.cc - Manage end of input (now CTRL+D exits the program, and you can redirect a file in input knowing that at EOF sgpemv2 will terminate) - Fix a bug in Scheduler that didn't add the newly created environment to History when the simulation ended, thus leading both to a memory leak and an inconsistency in representing the simulation git-svn-id: svn://svn.gna.org/svn/sgpemv2/trunk@807 3ecf2c5c-341e-0410-92b4-d18e462d057c
This commit is contained in:
parent
6f8625d308
commit
c6ebe792e4
6 changed files with 57 additions and 85 deletions
|
@ -131,14 +131,11 @@ parse_options(int argc, char** argv)
|
|||
// initialize the command line version
|
||||
// of sgpemv2
|
||||
TextSimulation sim;
|
||||
|
||||
while(1)
|
||||
{
|
||||
std::string str;
|
||||
getline(std::cin, str);
|
||||
|
||||
TextSimulation::parse_command(sim, str);
|
||||
}
|
||||
std::string str;
|
||||
|
||||
while(getline(std::cin, str))
|
||||
// Enter main loop
|
||||
TextSimulation::parse_command(sim, str);
|
||||
}
|
||||
else
|
||||
{
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue