Skip to content

Commit 29e8225

Browse files
wording and simplification
1 parent ded1ef6 commit 29e8225

1 file changed

Lines changed: 4 additions & 4 deletions

File tree

src/Modelling/PetriNet/Reach/Reach.hs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -327,14 +327,14 @@ provideSolutionsFeedback maxDisplayedSolutions solutionsList
327327
show (TransitionsList oneSolution) ++
328328
if 1 < maxDisplayedSolutions
329329
then "\n\n(This is the one shortest solution.)"
330-
else "\n\n(This is a shortest solution, but more may exist.)"
330+
else "\n\n(This is a shortest solution, but maybe not the only shortest one.)"
331331
Left (firstSolution :| restSolutions) ->
332332
let displayedSolutions = firstSolution : restSolutions
333333
solutionsText = unlines $ map (show . TransitionsList) displayedSolutions
334334
in "Any of:\n\n" ++ solutionsText ++
335335
if 1 + length restSolutions < maxDisplayedSolutions
336336
then "\n(These are all the shortest solutions.)"
337-
else "\n(These are shortest solutions, but more may exist.)"
337+
else "\n(These are shortest solutions, but maybe not the only shortest ones.)"
338338
Right (theOnlySolution :| []) ->
339339
show (TransitionsList theOnlySolution) ++
340340
"\n\n(This is the only solution.)"
@@ -343,8 +343,8 @@ provideSolutionsFeedback maxDisplayedSolutions solutionsList
343343
solutionsText = unlines $ map (show . TransitionsList) displayedSolutions
344344
in (if maxDisplayedSolutions < 2 then "" else "Any of:\n\n") ++ solutionsText ++
345345
if length restSolutions < maxDisplayedSolutions
346-
then (if null restSolutions then "\n(This is the only solution.)" else "\n(These are all the solutions.)")
347-
else if maxDisplayedSolutions == 1 then "\n(This is a solution, but more exist.)" else "\n(These are solutions, but more exist.)"
346+
then "\n(These are all the solutions.)"
347+
else if maxDisplayedSolutions == 1 then "\n(This is a solution, but not the only one.)" else "\n(These are solutions, but not the only ones.)"
348348

349349
reachEvaluation
350350
:: (

0 commit comments

Comments
 (0)