Skip to content

Commit

Permalink
Do not override with old substitution when externalising
Browse files Browse the repository at this point in the history
  • Loading branch information
geo2a committed Oct 22, 2024
1 parent fdf62fc commit 38187b1
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion booster/library/Booster/Syntax/Json/Externalise.hs
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,8 @@ externalisePattern ::
externalisePattern Internal.Pattern{term = term, constraints, ceilConditions, substitution = ensuredSubstitution} inputSubstitution =
-- need a sort for the predicates in external format
let sort = externaliseSort $ sortOfTerm term
substitutions = inputSubstitution <> (ensuredSubstitution `Substitution.compose` inputSubstitution)
-- inputSubstitution is probably not needed here at all
substitutions = ensuredSubstitution `Substitution.compose` inputSubstitution
externalisedSubstitution =
if null substitutions
then Nothing
Expand Down

0 comments on commit 38187b1

Please sign in to comment.