@@ -79,7 +79,6 @@ import Kore.Attribute.Pattern.FreeVariables qualified as Attribute.FreeVariables
79
79
import Kore.Attribute.Pattern.FreeVariables qualified as FreeVariables
80
80
import Kore.Attribute.Pattern.Function qualified as Attribute
81
81
import Kore.Attribute.Pattern.Simplified qualified as Attribute
82
- import Kore.Attribute.Pattern.Simplified qualified as Attribute.Simplified
83
82
import Kore.Attribute.Pattern.Total qualified as Attribute
84
83
import Kore.Attribute.Synthetic
85
84
import Kore.Builtin.Encoding qualified as Encoding
@@ -548,12 +547,6 @@ attributeSimplifiedAttribute ::
548
547
attributeSimplifiedAttribute patt@ TermAttributes {termSimplified} =
549
548
assertSimplifiedConsistency patt termSimplified
550
549
551
- constructorLikeAttribute ::
552
- TermAttributes variable ->
553
- Attribute. ConstructorLike
554
- constructorLikeAttribute TermAttributes {termConstructorLike} =
555
- termConstructorLike
556
-
557
550
{- Checks whether the pattern is simplified relative to the given side
558
551
condition.
559
552
-}
@@ -710,54 +703,13 @@ instance (Unparse variable, Ord variable) => Unparse (TermLike variable) where
710
703
| Attribute. hasKnownCreator termCreated ->
711
704
Pretty. sep
712
705
[ Pretty. pretty termCreated
713
- , attributeRepresentation
714
706
, unparse termLikeF
715
707
]
716
708
| otherwise ->
717
- Pretty. sep [attributeRepresentation, unparse termLikeF]
709
+ unparse termLikeF
718
710
where
719
711
TermAttributes {termCreated} = attrs
720
712
721
- attributeRepresentation = case attrs of
722
- (TermAttributes _ _ _ _ _ _ _ _) ->
723
- Pretty. surround
724
- (Pretty. hsep $ map Pretty. pretty representation)
725
- " /* "
726
- " */"
727
- where
728
- representation =
729
- addTotalRepresentation $
730
- addFunctionRepresentation $
731
- addDefinedRepresentation $
732
- addSimplifiedRepresentation $
733
- addConstructorLikeRepresentation []
734
- addTotalRepresentation
735
- | Attribute. isTotal $ termTotal attrs = (" T" : )
736
- | otherwise = id
737
- addFunctionRepresentation
738
- | Attribute. isFunction $ termFunction attrs = (" Fn" : )
739
- | otherwise = id
740
- addDefinedRepresentation
741
- | Attribute. isDefined $ termDefined attrs = (" D" : )
742
- | otherwise = id
743
- addSimplifiedRepresentation =
744
- case simplifiedTag of
745
- Just result -> (result : )
746
- Nothing -> id
747
- where
748
- simplifiedTag =
749
- Attribute.Simplified. unparseTag
750
- (attributeSimplifiedAttribute attrs)
751
- addConstructorLikeRepresentation =
752
- case constructorLike of
753
- Just Attribute. ConstructorLikeHead -> (" Cl" : )
754
- Just Attribute. SortInjectionHead -> (" Cli" : )
755
- Nothing -> id
756
- where
757
- constructorLike =
758
- Attribute. getConstructorLike
759
- (constructorLikeAttribute attrs)
760
-
761
713
unparse2 term =
762
714
case Recursive. project term of
763
715
(_ :< pat) -> unparse2 pat
0 commit comments