Simplified comparator handling in exp.c