track pruning stats
refactoring to support different kinds of rule loops
refactoring the rule partitions to know the cpu-side id.