The convert() call is changing data. To prevent Heisenbugs
depending in NDEBUG definition (e.g. if debug is off).
Move convert() call out of the assert call and use assert
only on the result value of the call.
Signed-off-by: Danny Al-Gaaf <danny.al-gaaf@bisect.de>
string store(args[0]);
string new_store(store);
MonitorStoreConverter converter(store, new_store);
- assert(!converter.convert());
+ int ret = converter.convert();
+ assert(!ret);
assert(converter.match());
std::cout << "store successfully converted to new format" << std::endl;