cond-expanded optimization and debugging