[C++] update statemap.h from SMC
[C++] use g++ options
[C++] refactor assert