Skip to content

normalizeType could be implemented more efficiently  #1469

Description

@alex-mckenna

Working on the partial evaluator, I found the following case where normalizeType doesn't seem to work as advertised.
Attempting to normalize

BitSize (Maybe (Vec 2 (Maybe Bool)))

gives

CLog 2 (GConstructorCount (Rep (Maybe (Vec 2 (Maybe Bool))))) + GFieldSize (Rep (Maybe (Vec 2 (Maybe Bool))))

but using normalizeType tcm (normalizeType tcm ty) gives

LitTy (NumTy 5)

which is what was initially expected.

Metadata

Metadata

Assignees

No one assigned

    Labels

    papercutSmall quality-of-life issues

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions