appendPrimitivesAndChoicePoints