Generate [return 0] for main + small refactoring.

1 job for master in 14 minutes and 18 seconds (queued for 3 seconds)