Skip to content

Commit

Permalink
Merge pull request #5 from potassco/core_fix
Browse files Browse the repository at this point in the history
Added return value to simplify
  • Loading branch information
hweichelt authored Aug 13, 2024
2 parents be4eeef + 3046b53 commit 4bd0d4c
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/clingexplaid/mus/core_computer.py
Original file line number Diff line number Diff line change
Expand Up @@ -75,12 +75,15 @@ def _compute_single_minimal(self, assumptions: Optional[AssumptionSet] = None) -

return mus_members

def shrink(self, assumptions: Optional[AssumptionSet] = None) -> None:
def shrink(self, assumptions: Optional[AssumptionSet] = None) -> AssumptionSet:
"""
This function applies the unsatisfiable subset minimization (`self._compute_single_minimal`) on the assumptions
set `assumptions` and stores the resulting MUS inside `self.minimal`.
Returns the MUS as a set of assumptions.
"""
self.minimal = self._compute_single_minimal(assumptions=assumptions)
return self.minimal

def get_multiple_minimal(self, max_mus: Optional[int] = None) -> Generator[AssumptionSet, None, None]:
"""
Expand Down

0 comments on commit 4bd0d4c

Please sign in to comment.