Input (grade 12): The Confederates had succeeded in holding the rail breastworks, yet had expended most of their ammunition in doing so.
Output (grade 10): The confederate rail breastworks had held, but the holding of the line had resulted in the use of a huge amount of ammunition.