overwrite_states_using_pool
void overwrite_states_using_pool(struct sm_state *gate_sm, struct sm_state *pool_sm);
overwrite_states_using_pool(sm, tmp);