Skip to content

Commit

Permalink
fix Property::negate()
Browse files Browse the repository at this point in the history
  • Loading branch information
Roman Andriushchenko committed Sep 18, 2024
1 parent 0955c3e commit fecbfc4
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions paynt/verification/property.py
Original file line number Diff line number Diff line change
Expand Up @@ -160,7 +160,7 @@ def can_be_improved(self):
return False

def negate(self):
negated_formula = self.formula.clone()
negated_formula = self.property.raw_formula.clone()
negated_formula.comparison_type = {
stormpy.ComparisonType.LESS: stormpy.ComparisonType.GEQ,
stormpy.ComparisonType.LEQ: stormpy.ComparisonType.GREATER,
Expand Down Expand Up @@ -282,7 +282,7 @@ def can_be_improved(self):
return not( not self.reward and self.minimizing and self.threshold == 0 )

def negate(self):
negated_formula = self.formula.clone()
negated_formula = self.property.raw_formula.clone()
negate_optimality_type = {
stormpy.OptimizationDirection.Minimize: stormpy.OptimizationDirection.Maximize,
stormpy.OptimizationDirection.Maximize: stormpy.OptimizationDirection.Minimize
Expand Down

0 comments on commit fecbfc4

Please sign in to comment.