Calculate inputs before outputs (.cc).