categorifier icon indicating copy to clipboard operation
categorifier copied to clipboard

Add a test for AxiomInstCo

Open zliu41 opened this issue 3 years ago • 0 comments

I don't think we have a test case for this part of the code

Plugins.Cast from0 Plugins.AxiomInstCo {}
  | Plugins.isPredTy (Plugins.exprType from0) -> do
      inlined <- flip loopM from0 $ \from -> do
        ( \case
            Plugins.Cast from' _ ->
              if Plugins.isPredTy (Plugins.exprType from')
                then Left from'
                else Right from'
            other -> Left other
          )
          <$> (simplifyFun dflags logger [] =<\< mkInline from)
      categorifyLambda name
        =<\< simplifyFun dflags logger [] (Plugins.mkCoreApps inlined args)

outside of Heavisoft.

zliu41 avatar May 14 '22 17:05 zliu41