{-# LANGUAGE BangPatterns #-}
{-# LANGUAGE EmptyCase #-}
{-# LANGUAGE EmptyDataDecls #-}
{-# LANGUAGE ExistentialQuantification #-}
{-# LANGUAGE NoMonomorphismRestriction #-}
{-# LANGUAGE OverloadedStrings #-}
{-# LANGUAGE PatternSynonyms #-}
{-# LANGUAGE RankNTypes #-}
{-# LANGUAGE ScopedTypeVariables #-}
{-# OPTIONS_GHC -Wno-overlapping-patterns #-}
module MAlonzo.Code.Data.Vec.NZ45Zary where
import MAlonzo.RTE (coe, erased, AgdaAny, addInt, subInt, mulInt,
quotInt, remInt, geqInt, ltInt, eqInt, add64, sub64, mul64, quot64,
rem64, lt64, eq64, word64FromNat, word64ToNat)
import qualified MAlonzo.RTE
import qualified Data.Text
import qualified MAlonzo.Code.Agda.Builtin.Equality
import qualified MAlonzo.Code.Agda.Builtin.Sigma
import qualified MAlonzo.Code.Agda.Primitive
import qualified MAlonzo.Code.Data.Product
import qualified MAlonzo.Code.Data.Vec.Base
import qualified MAlonzo.Code.Function.Equivalence
d_N'45'ary'45'level_24 ::
MAlonzo.Code.Agda.Primitive.T_Level_14 ->
MAlonzo.Code.Agda.Primitive.T_Level_14 ->
Integer -> MAlonzo.Code.Agda.Primitive.T_Level_14
d_N'45'ary'45'level_24 v0 v1 v2
= case coe v2 of
0 -> coe v1
_ -> let v3 = subInt (coe v2) (coe (1 :: Integer)) in
coe
MAlonzo.Code.Agda.Primitive.d__'8852'__26 v0
(d_N'45'ary'45'level_24 (coe v0) (coe v1) (coe v3))
d_N'45'ary_38 ::
MAlonzo.Code.Agda.Primitive.T_Level_14 ->
MAlonzo.Code.Agda.Primitive.T_Level_14 -> Integer -> () -> () -> ()
d_N'45'ary_38 = erased
d_curry'8319'_52 ::
MAlonzo.Code.Agda.Primitive.T_Level_14 ->
() ->
MAlonzo.Code.Agda.Primitive.T_Level_14 ->
() ->
Integer ->
(MAlonzo.Code.Data.Vec.Base.T_Vec_28 -> AgdaAny) -> AgdaAny
d_curry'8319'_52 ~v0 ~v1 ~v2 ~v3 v4 v5 = du_curry'8319'_52 v4 v5
du_curry'8319'_52 ::
Integer ->
(MAlonzo.Code.Data.Vec.Base.T_Vec_28 -> AgdaAny) -> AgdaAny
du_curry'8319'_52 v0 v1
= case coe v0 of
0 -> coe v1 (coe MAlonzo.Code.Data.Vec.Base.C_'91''93'_32)
_ -> let v2 = subInt (coe v0) (coe (1 :: Integer)) in
coe
(\ v3 ->
coe
du_curry'8319'_52 (coe v2)
(coe
(\ v4 ->
coe v1 (coe MAlonzo.Code.Data.Vec.Base.C__'8759'__38 v3 v4))))
d__'36''8319'__64 ::
MAlonzo.Code.Agda.Primitive.T_Level_14 ->
() ->
MAlonzo.Code.Agda.Primitive.T_Level_14 ->
() ->
Integer ->
AgdaAny -> MAlonzo.Code.Data.Vec.Base.T_Vec_28 -> AgdaAny
d__'36''8319'__64 ~v0 ~v1 ~v2 ~v3 ~v4 v5 v6
= du__'36''8319'__64 v5 v6
du__'36''8319'__64 ::
AgdaAny -> MAlonzo.Code.Data.Vec.Base.T_Vec_28 -> AgdaAny
du__'36''8319'__64 v0 v1
= case coe v1 of
MAlonzo.Code.Data.Vec.Base.C_'91''93'_32 -> coe v0
MAlonzo.Code.Data.Vec.Base.C__'8759'__38 v3 v4
-> coe du__'36''8319'__64 (coe v0 v3) (coe v4)
_ -> MAlonzo.RTE.mazUnreachableError
d_'8704''8319'_84 ::
MAlonzo.Code.Agda.Primitive.T_Level_14 ->
() ->
MAlonzo.Code.Agda.Primitive.T_Level_14 -> Integer -> AgdaAny -> ()
d_'8704''8319'_84 = erased
d_'8704''8319''688'_96 ::
MAlonzo.Code.Agda.Primitive.T_Level_14 ->
() ->
MAlonzo.Code.Agda.Primitive.T_Level_14 -> Integer -> AgdaAny -> ()
d_'8704''8319''688'_96 = erased
d_'8707''8319'_108 ::
MAlonzo.Code.Agda.Primitive.T_Level_14 ->
() ->
MAlonzo.Code.Agda.Primitive.T_Level_14 -> Integer -> AgdaAny -> ()
d_'8707''8319'_108 = erased
d_Eq_126 ::
MAlonzo.Code.Agda.Primitive.T_Level_14 ->
MAlonzo.Code.Agda.Primitive.T_Level_14 ->
MAlonzo.Code.Agda.Primitive.T_Level_14 ->
MAlonzo.Code.Agda.Primitive.T_Level_14 ->
() ->
() ->
() ->
Integer -> (AgdaAny -> AgdaAny -> ()) -> AgdaAny -> AgdaAny -> ()
d_Eq_126 = erased
d_Eq'688'_146 ::
MAlonzo.Code.Agda.Primitive.T_Level_14 ->
MAlonzo.Code.Agda.Primitive.T_Level_14 ->
MAlonzo.Code.Agda.Primitive.T_Level_14 ->
MAlonzo.Code.Agda.Primitive.T_Level_14 ->
() ->
() ->
() ->
Integer -> (AgdaAny -> AgdaAny -> ()) -> AgdaAny -> AgdaAny -> ()
d_Eq'688'_146 = erased
d_left'45'inverse_164 ::
MAlonzo.Code.Agda.Primitive.T_Level_14 ->
() ->
MAlonzo.Code.Agda.Primitive.T_Level_14 ->
() ->
Integer ->
(MAlonzo.Code.Data.Vec.Base.T_Vec_28 -> AgdaAny) ->
MAlonzo.Code.Data.Vec.Base.T_Vec_28 ->
MAlonzo.Code.Agda.Builtin.Equality.T__'8801'__12
d_left'45'inverse_164 = erased
d_right'45'inverse_178 ::
MAlonzo.Code.Agda.Primitive.T_Level_14 ->
() ->
MAlonzo.Code.Agda.Primitive.T_Level_14 ->
() -> Integer -> AgdaAny -> AgdaAny
d_right'45'inverse_178 ~v0 ~v1 ~v2 ~v3 v4 ~v5
= du_right'45'inverse_178 v4
du_right'45'inverse_178 :: Integer -> AgdaAny
du_right'45'inverse_178 v0
= case coe v0 of
0 -> erased
_ -> let v1 = subInt (coe v0) (coe (1 :: Integer)) in
coe (\ v2 -> coe du_right'45'inverse_178 (coe v1))
d_uncurry'45''8704''8319'_194 ::
MAlonzo.Code.Agda.Primitive.T_Level_14 ->
() ->
MAlonzo.Code.Agda.Primitive.T_Level_14 ->
Integer ->
AgdaAny -> MAlonzo.Code.Function.Equivalence.T_Equivalence_16
d_uncurry'45''8704''8319'_194 ~v0 ~v1 ~v2 v3 ~v4
= du_uncurry'45''8704''8319'_194 v3
du_uncurry'45''8704''8319'_194 ::
Integer -> MAlonzo.Code.Function.Equivalence.T_Equivalence_16
du_uncurry'45''8704''8319'_194 v0
= coe
MAlonzo.Code.Function.Equivalence.du_equivalence_56
(coe du_'8658'_214 (coe v0)) (coe du_'8656'_232 (coe v0))
d_'8658'_214 ::
MAlonzo.Code.Agda.Primitive.T_Level_14 ->
() ->
MAlonzo.Code.Agda.Primitive.T_Level_14 ->
Integer ->
AgdaAny ->
Integer ->
AgdaAny ->
AgdaAny -> MAlonzo.Code.Data.Vec.Base.T_Vec_28 -> AgdaAny
d_'8658'_214 ~v0 ~v1 ~v2 ~v3 ~v4 v5 ~v6 v7 v8
= du_'8658'_214 v5 v7 v8
du_'8658'_214 ::
Integer ->
AgdaAny -> MAlonzo.Code.Data.Vec.Base.T_Vec_28 -> AgdaAny
du_'8658'_214 v0 v1 v2
= case coe v0 of
0 -> coe seq (coe v2) (coe v1)
_ -> let v3 = subInt (coe v0) (coe (1 :: Integer)) in
case coe v2 of
MAlonzo.Code.Data.Vec.Base.C__'8759'__38 v5 v6
-> coe du_'8658'_214 (coe v3) (coe v1 v5) (coe v6)
_ -> MAlonzo.RTE.mazUnreachableError
d_'8656'_232 ::
MAlonzo.Code.Agda.Primitive.T_Level_14 ->
() ->
MAlonzo.Code.Agda.Primitive.T_Level_14 ->
Integer ->
AgdaAny ->
Integer ->
AgdaAny ->
(MAlonzo.Code.Data.Vec.Base.T_Vec_28 -> AgdaAny) -> AgdaAny
d_'8656'_232 ~v0 ~v1 ~v2 ~v3 ~v4 v5 ~v6 v7 = du_'8656'_232 v5 v7
du_'8656'_232 ::
Integer ->
(MAlonzo.Code.Data.Vec.Base.T_Vec_28 -> AgdaAny) -> AgdaAny
du_'8656'_232 v0 v1
= case coe v0 of
0 -> coe v1 (coe MAlonzo.Code.Data.Vec.Base.C_'91''93'_32)
_ -> let v2 = subInt (coe v0) (coe (1 :: Integer)) in
coe
(\ v3 ->
coe
du_'8656'_232 (coe v2)
(coe
(\ v4 ->
coe v1 (coe MAlonzo.Code.Data.Vec.Base.C__'8759'__38 v3 v4))))
d_uncurry'45''8707''8319'_248 ::
MAlonzo.Code.Agda.Primitive.T_Level_14 ->
() ->
MAlonzo.Code.Agda.Primitive.T_Level_14 ->
Integer ->
AgdaAny -> MAlonzo.Code.Function.Equivalence.T_Equivalence_16
d_uncurry'45''8707''8319'_248 ~v0 ~v1 ~v2 v3 ~v4
= du_uncurry'45''8707''8319'_248 v3
du_uncurry'45''8707''8319'_248 ::
Integer -> MAlonzo.Code.Function.Equivalence.T_Equivalence_16
du_uncurry'45''8707''8319'_248 v0
= coe
MAlonzo.Code.Function.Equivalence.du_equivalence_56
(coe du_'8658'_268 (coe v0)) (coe du_'8656'_284 (coe v0))
d_'8658'_268 ::
MAlonzo.Code.Agda.Primitive.T_Level_14 ->
() ->
MAlonzo.Code.Agda.Primitive.T_Level_14 ->
Integer ->
AgdaAny ->
Integer ->
AgdaAny -> AgdaAny -> MAlonzo.Code.Agda.Builtin.Sigma.T_Σ_14
d_'8658'_268 ~v0 ~v1 ~v2 ~v3 ~v4 v5 ~v6 v7 = du_'8658'_268 v5 v7
du_'8658'_268 ::
Integer -> AgdaAny -> MAlonzo.Code.Agda.Builtin.Sigma.T_Σ_14
du_'8658'_268 v0 v1
= case coe v0 of
0 -> coe
MAlonzo.Code.Agda.Builtin.Sigma.C__'44'__32
(coe MAlonzo.Code.Data.Vec.Base.C_'91''93'_32) (coe v1)
_ -> let v2 = subInt (coe v0) (coe (1 :: Integer)) in
case coe v1 of
MAlonzo.Code.Agda.Builtin.Sigma.C__'44'__32 v3 v4
-> coe
MAlonzo.Code.Data.Product.du_map_148
(coe MAlonzo.Code.Data.Vec.Base.C__'8759'__38 (coe v3))
(coe (\ v5 v6 -> v6)) (coe du_'8658'_268 (coe v2) (coe v4))
_ -> MAlonzo.RTE.mazUnreachableError
d_'8656'_284 ::
MAlonzo.Code.Agda.Primitive.T_Level_14 ->
() ->
MAlonzo.Code.Agda.Primitive.T_Level_14 ->
Integer ->
AgdaAny ->
Integer ->
AgdaAny -> MAlonzo.Code.Agda.Builtin.Sigma.T_Σ_14 -> AgdaAny
d_'8656'_284 ~v0 ~v1 ~v2 ~v3 ~v4 v5 ~v6 v7 = du_'8656'_284 v5 v7
du_'8656'_284 ::
Integer -> MAlonzo.Code.Agda.Builtin.Sigma.T_Σ_14 -> AgdaAny
du_'8656'_284 v0 v1
= case coe v0 of
0 -> case coe v1 of
MAlonzo.Code.Agda.Builtin.Sigma.C__'44'__32 v2 v3
-> coe seq (coe v2) (coe v3)
_ -> MAlonzo.RTE.mazUnreachableError
_ -> let v2 = subInt (coe v0) (coe (1 :: Integer)) in
case coe v1 of
MAlonzo.Code.Agda.Builtin.Sigma.C__'44'__32 v3 v4
-> case coe v3 of
MAlonzo.Code.Data.Vec.Base.C__'8759'__38 v6 v7
-> coe
MAlonzo.Code.Agda.Builtin.Sigma.C__'44'__32 (coe v6)
(coe
du_'8656'_284 (coe v2)
(coe
MAlonzo.Code.Agda.Builtin.Sigma.C__'44'__32 (coe v7) (coe v4)))
_ -> MAlonzo.RTE.mazUnreachableError
_ -> MAlonzo.RTE.mazUnreachableError
d_curry'8319''45'cong_316 ::
MAlonzo.Code.Agda.Primitive.T_Level_14 ->
() ->
MAlonzo.Code.Agda.Primitive.T_Level_14 ->
() ->
MAlonzo.Code.Agda.Primitive.T_Level_14 ->
(AgdaAny -> AgdaAny -> ()) ->
MAlonzo.Code.Agda.Primitive.T_Level_14 ->
() ->
Integer ->
(MAlonzo.Code.Data.Vec.Base.T_Vec_28 -> AgdaAny) ->
(MAlonzo.Code.Data.Vec.Base.T_Vec_28 -> AgdaAny) ->
(MAlonzo.Code.Data.Vec.Base.T_Vec_28 -> AgdaAny) -> AgdaAny
d_curry'8319''45'cong_316 ~v0 ~v1 ~v2 ~v3 ~v4 ~v5 ~v6 ~v7 v8 ~v9
~v10 v11
= du_curry'8319''45'cong_316 v8 v11
du_curry'8319''45'cong_316 ::
Integer ->
(MAlonzo.Code.Data.Vec.Base.T_Vec_28 -> AgdaAny) -> AgdaAny
du_curry'8319''45'cong_316 v0 v1
= case coe v0 of
0 -> coe v1 (coe MAlonzo.Code.Data.Vec.Base.C_'91''93'_32)
_ -> let v2 = subInt (coe v0) (coe (1 :: Integer)) in
coe
(\ v3 ->
coe
du_curry'8319''45'cong_316 (coe v2)
(coe
(\ v4 ->
coe v1 (coe MAlonzo.Code.Data.Vec.Base.C__'8759'__38 v3 v4))))
d_curry'8319''45'cong'8315''185'_344 ::
MAlonzo.Code.Agda.Primitive.T_Level_14 ->
() ->
MAlonzo.Code.Agda.Primitive.T_Level_14 ->
() ->
MAlonzo.Code.Agda.Primitive.T_Level_14 ->
(AgdaAny -> AgdaAny -> ()) ->
MAlonzo.Code.Agda.Primitive.T_Level_14 ->
() ->
Integer ->
(MAlonzo.Code.Data.Vec.Base.T_Vec_28 -> AgdaAny) ->
(MAlonzo.Code.Data.Vec.Base.T_Vec_28 -> AgdaAny) ->
AgdaAny -> MAlonzo.Code.Data.Vec.Base.T_Vec_28 -> AgdaAny
d_curry'8319''45'cong'8315''185'_344 ~v0 ~v1 ~v2 ~v3 ~v4 ~v5 ~v6
~v7 ~v8 ~v9 ~v10 v11 v12
= du_curry'8319''45'cong'8315''185'_344 v11 v12
du_curry'8319''45'cong'8315''185'_344 ::
AgdaAny -> MAlonzo.Code.Data.Vec.Base.T_Vec_28 -> AgdaAny
du_curry'8319''45'cong'8315''185'_344 v0 v1
= case coe v1 of
MAlonzo.Code.Data.Vec.Base.C_'91''93'_32 -> coe v0
MAlonzo.Code.Data.Vec.Base.C__'8759'__38 v3 v4
-> coe du_curry'8319''45'cong'8315''185'_344 (coe v0 v3) (coe v4)
_ -> MAlonzo.RTE.mazUnreachableError
d_app'8319''45'cong_370 ::
MAlonzo.Code.Agda.Primitive.T_Level_14 ->
() ->
MAlonzo.Code.Agda.Primitive.T_Level_14 ->
() ->
MAlonzo.Code.Agda.Primitive.T_Level_14 ->
(AgdaAny -> AgdaAny -> ()) ->
MAlonzo.Code.Agda.Primitive.T_Level_14 ->
() ->
Integer ->
AgdaAny ->
AgdaAny ->
AgdaAny -> MAlonzo.Code.Data.Vec.Base.T_Vec_28 -> AgdaAny
d_app'8319''45'cong_370 ~v0 ~v1 ~v2 ~v3 ~v4 ~v5 ~v6 ~v7 ~v8 ~v9
~v10 v11 v12
= du_app'8319''45'cong_370 v11 v12
du_app'8319''45'cong_370 ::
AgdaAny -> MAlonzo.Code.Data.Vec.Base.T_Vec_28 -> AgdaAny
du_app'8319''45'cong_370 v0 v1
= case coe v1 of
MAlonzo.Code.Data.Vec.Base.C_'91''93'_32 -> coe v0
MAlonzo.Code.Data.Vec.Base.C__'8759'__38 v3 v4
-> coe du_app'8319''45'cong_370 (coe v0 v3) (coe v4)
_ -> MAlonzo.RTE.mazUnreachableError
d_app'8319''45'cong'8315''185'_396 ::
MAlonzo.Code.Agda.Primitive.T_Level_14 ->
() ->
MAlonzo.Code.Agda.Primitive.T_Level_14 ->
() ->
MAlonzo.Code.Agda.Primitive.T_Level_14 ->
(AgdaAny -> AgdaAny -> ()) ->
MAlonzo.Code.Agda.Primitive.T_Level_14 ->
() ->
Integer ->
AgdaAny ->
AgdaAny ->
(MAlonzo.Code.Data.Vec.Base.T_Vec_28 -> AgdaAny) -> AgdaAny
d_app'8319''45'cong'8315''185'_396 ~v0 ~v1 ~v2 ~v3 ~v4 ~v5 ~v6 ~v7
v8 ~v9 ~v10 v11
= du_app'8319''45'cong'8315''185'_396 v8 v11
du_app'8319''45'cong'8315''185'_396 ::
Integer ->
(MAlonzo.Code.Data.Vec.Base.T_Vec_28 -> AgdaAny) -> AgdaAny
du_app'8319''45'cong'8315''185'_396 v0 v1
= case coe v0 of
0 -> coe v1 (coe MAlonzo.Code.Data.Vec.Base.C_'91''93'_32)
_ -> let v2 = subInt (coe v0) (coe (1 :: Integer)) in
coe
(\ v3 ->
coe
du_app'8319''45'cong'8315''185'_396 (coe v2)
(coe
(\ v4 ->
coe v1 (coe MAlonzo.Code.Data.Vec.Base.C__'8759'__38 v3 v4))))
d_Eq'45'to'45'Eq'688'_424 ::
MAlonzo.Code.Agda.Primitive.T_Level_14 ->
() ->
MAlonzo.Code.Agda.Primitive.T_Level_14 ->
() ->
MAlonzo.Code.Agda.Primitive.T_Level_14 ->
MAlonzo.Code.Agda.Primitive.T_Level_14 ->
() ->
Integer ->
(AgdaAny -> AgdaAny -> ()) ->
AgdaAny -> AgdaAny -> AgdaAny -> AgdaAny
d_Eq'45'to'45'Eq'688'_424 ~v0 ~v1 ~v2 ~v3 ~v4 ~v5 ~v6 v7 ~v8 ~v9
~v10 v11
= du_Eq'45'to'45'Eq'688'_424 v7 v11
du_Eq'45'to'45'Eq'688'_424 :: Integer -> AgdaAny -> AgdaAny
du_Eq'45'to'45'Eq'688'_424 v0 v1
= case coe v0 of
0 -> coe v1
_ -> let v2 = subInt (coe v0) (coe (1 :: Integer)) in
coe (\ v3 -> coe du_Eq'45'to'45'Eq'688'_424 (coe v2) (coe v1 v3))
d_Eq'688''45'to'45'Eq_444 ::
MAlonzo.Code.Agda.Primitive.T_Level_14 ->
() ->
MAlonzo.Code.Agda.Primitive.T_Level_14 ->
() ->
MAlonzo.Code.Agda.Primitive.T_Level_14 ->
MAlonzo.Code.Agda.Primitive.T_Level_14 ->
() ->
Integer ->
(AgdaAny -> AgdaAny -> ()) ->
AgdaAny -> AgdaAny -> AgdaAny -> AgdaAny
d_Eq'688''45'to'45'Eq_444 ~v0 ~v1 ~v2 ~v3 ~v4 ~v5 ~v6 v7 ~v8 ~v9
~v10 v11
= du_Eq'688''45'to'45'Eq_444 v7 v11
du_Eq'688''45'to'45'Eq_444 :: Integer -> AgdaAny -> AgdaAny
du_Eq'688''45'to'45'Eq_444 v0 v1
= case coe v0 of
0 -> coe v1
_ -> let v2 = subInt (coe v0) (coe (1 :: Integer)) in
coe (\ v3 -> coe du_Eq'688''45'to'45'Eq_444 (coe v2) (coe v1 v3))