partioning code with scas and dcas