Mod'd popco2 comparison fns to generate Clojure code