vjr refactoring to identify compilation discrepancy between release and debug modes (with optimization failing, without optimization working)