Change memory object from int32_t to uint32_t.
Rename mem-main to addcnt.
Reorganise code.
Add g_ prefix to global variable tid.
Make #objs configurable by test application.
Keep only binary log code.
Add g_ prefix to addcnt objs global variable.
Add test program racey, replay deadlock sometimes.
Do not divide version by 2.
Add some debug support.
Check memory value during replay.