ifOption.is_some(solve(link_to_eq((ri,rj)::(List.nthprob_auxfam)))[])then(* We made sure prob_aux head would not be empty*)
ifOption.is_some(solve(link_to_eq((ri,rj)::(List.hd(*nth*)prob_aux(*fam*))))[])then(* We made sure prob_aux head would not be empty*)
auxtl((fam,j)::tokl)(((ri,rj)::(List.hdprob_aux))::(List.tlprob_aux))(((star_filterconst((i,j),(ri,rj))(List.hdprob_aux))@(List.hdstar_aux))::(List.tlstar_aux))(*We use List.hd because the current family we're working on should be the current first*)
auxtl((fam,j)::tokl)(((ri,rj)::(List.hdprob_aux))::(List.tlprob_aux))(((star_filterconst((i,j),(ri,rj))(List.hdprob_aux))@(List.hdstar_aux))::(List.tlstar_aux))(*We use List.hd because the current family we're working on should be the current first*)