# Snapshot all machines
for( int i = 0; i < sizeof(machines) / sizeof*(object) ; i++ )
{
# If the snapshot was successful, put the machine into the
# Merge and reatin all successful_snapshot machines
for ( int i = 0; i < sizeof(successful_snapshots) / sizeof*(object) ; i++ ) )
{
# Check if the element at this position is not null, then the snapshot