rearranged reductions in func_popr
simplified func_popr, made typedef for alt_set type