prettified analyze2.cpp