GenSlice: Generalized Semantic History Slicing