{-# 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.Reflection.Argument 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.Reflection
import qualified MAlonzo.Code.Agda.Builtin.Sigma
import qualified MAlonzo.Code.Agda.Primitive
import qualified MAlonzo.Code.Data.List.Base
import qualified MAlonzo.Code.Data.Product
import qualified MAlonzo.Code.Reflection.Argument.Information
import qualified MAlonzo.Code.Relation.Nullary
import qualified MAlonzo.Code.Relation.Nullary.Decidable.Core
import qualified MAlonzo.Code.Relation.Nullary.Product
d_Args_30 :: MAlonzo.Code.Agda.Primitive.T_Level_18 -> () -> ()
d_Args_30 :: T_Level_18 -> T_Level_18 -> T_Level_18
d_Args_30 = T_Level_18 -> T_Level_18 -> T_Level_18
forall a. a
erased
d_map_46 ::
MAlonzo.Code.Agda.Primitive.T_Level_18 ->
() ->
MAlonzo.Code.Agda.Primitive.T_Level_18 ->
() ->
(AgdaAny -> AgdaAny) ->
MAlonzo.Code.Agda.Builtin.Reflection.T_Arg_88 ->
MAlonzo.Code.Agda.Builtin.Reflection.T_Arg_88
d_map_46 :: T_Level_18
-> T_Level_18
-> T_Level_18
-> T_Level_18
-> (AgdaAny -> AgdaAny)
-> T_Arg_88
-> T_Arg_88
d_map_46 ~T_Level_18
v0 ~T_Level_18
v1 ~T_Level_18
v2 ~T_Level_18
v3 AgdaAny -> AgdaAny
v4 T_Arg_88
v5 = (AgdaAny -> AgdaAny) -> T_Arg_88 -> T_Arg_88
du_map_46 AgdaAny -> AgdaAny
v4 T_Arg_88
v5
du_map_46 ::
(AgdaAny -> AgdaAny) ->
MAlonzo.Code.Agda.Builtin.Reflection.T_Arg_88 ->
MAlonzo.Code.Agda.Builtin.Reflection.T_Arg_88
du_map_46 :: (AgdaAny -> AgdaAny) -> T_Arg_88 -> T_Arg_88
du_map_46 AgdaAny -> AgdaAny
v0 T_Arg_88
v1
= case T_Arg_88 -> T_Arg_88
forall a b. a -> b
coe T_Arg_88
v1 of
MAlonzo.Code.Agda.Builtin.Reflection.C_arg_98 T_ArgInfo_76
v2 AgdaAny
v3
-> (T_ArgInfo_76 -> AgdaAny -> T_Arg_88)
-> AgdaAny -> AgdaAny -> T_Arg_88
forall a b. a -> b
coe
T_ArgInfo_76 -> AgdaAny -> T_Arg_88
MAlonzo.Code.Agda.Builtin.Reflection.C_arg_98 (T_ArgInfo_76 -> AgdaAny
forall a b. a -> b
coe T_ArgInfo_76
v2) ((AgdaAny -> AgdaAny) -> AgdaAny -> AgdaAny
forall a b. a -> b
coe AgdaAny -> AgdaAny
v0 AgdaAny
v3)
T_Arg_88
_ -> T_Arg_88
forall a. a
MAlonzo.RTE.mazUnreachableError
d_map'45'Args_54 ::
MAlonzo.Code.Agda.Primitive.T_Level_18 ->
() ->
MAlonzo.Code.Agda.Primitive.T_Level_18 ->
() ->
(AgdaAny -> AgdaAny) ->
[MAlonzo.Code.Agda.Builtin.Reflection.T_Arg_88] ->
[MAlonzo.Code.Agda.Builtin.Reflection.T_Arg_88]
d_map'45'Args_54 :: T_Level_18
-> T_Level_18
-> T_Level_18
-> T_Level_18
-> (AgdaAny -> AgdaAny)
-> [T_Arg_88]
-> [T_Arg_88]
d_map'45'Args_54 ~T_Level_18
v0 ~T_Level_18
v1 ~T_Level_18
v2 ~T_Level_18
v3 AgdaAny -> AgdaAny
v4 [T_Arg_88]
v5 = (AgdaAny -> AgdaAny) -> [T_Arg_88] -> [T_Arg_88]
du_map'45'Args_54 AgdaAny -> AgdaAny
v4 [T_Arg_88]
v5
du_map'45'Args_54 ::
(AgdaAny -> AgdaAny) ->
[MAlonzo.Code.Agda.Builtin.Reflection.T_Arg_88] ->
[MAlonzo.Code.Agda.Builtin.Reflection.T_Arg_88]
du_map'45'Args_54 :: (AgdaAny -> AgdaAny) -> [T_Arg_88] -> [T_Arg_88]
du_map'45'Args_54 AgdaAny -> AgdaAny
v0 [T_Arg_88]
v1
= ((AgdaAny -> AgdaAny) -> [AgdaAny] -> [AgdaAny])
-> AgdaAny -> AgdaAny -> [T_Arg_88]
forall a b. a -> b
coe
(AgdaAny -> AgdaAny) -> [AgdaAny] -> [AgdaAny]
MAlonzo.Code.Data.List.Base.du_map_22 (((AgdaAny -> AgdaAny) -> T_Arg_88 -> T_Arg_88)
-> AgdaAny -> AgdaAny
forall a b. a -> b
coe (AgdaAny -> AgdaAny) -> T_Arg_88 -> T_Arg_88
du_map_46 ((AgdaAny -> AgdaAny) -> AgdaAny
forall a b. a -> b
coe AgdaAny -> AgdaAny
v0))
([T_Arg_88] -> AgdaAny
forall a b. a -> b
coe [T_Arg_88]
v1)
d_arg'45'injective'8321'_68 ::
MAlonzo.Code.Agda.Primitive.T_Level_18 ->
() ->
MAlonzo.Code.Agda.Builtin.Reflection.T_ArgInfo_76 ->
MAlonzo.Code.Agda.Builtin.Reflection.T_ArgInfo_76 ->
AgdaAny ->
AgdaAny ->
MAlonzo.Code.Agda.Builtin.Equality.T__'8801'__12 ->
MAlonzo.Code.Agda.Builtin.Equality.T__'8801'__12
d_arg'45'injective'8321'_68 :: T_Level_18
-> T_Level_18
-> T_ArgInfo_76
-> T_ArgInfo_76
-> AgdaAny
-> AgdaAny
-> T__'8801'__12
-> T__'8801'__12
d_arg'45'injective'8321'_68 = T_Level_18
-> T_Level_18
-> T_ArgInfo_76
-> T_ArgInfo_76
-> AgdaAny
-> AgdaAny
-> T__'8801'__12
-> T__'8801'__12
forall a. a
erased
d_arg'45'injective'8322'_78 ::
MAlonzo.Code.Agda.Primitive.T_Level_18 ->
() ->
MAlonzo.Code.Agda.Builtin.Reflection.T_ArgInfo_76 ->
MAlonzo.Code.Agda.Builtin.Reflection.T_ArgInfo_76 ->
AgdaAny ->
AgdaAny ->
MAlonzo.Code.Agda.Builtin.Equality.T__'8801'__12 ->
MAlonzo.Code.Agda.Builtin.Equality.T__'8801'__12
d_arg'45'injective'8322'_78 :: T_Level_18
-> T_Level_18
-> T_ArgInfo_76
-> T_ArgInfo_76
-> AgdaAny
-> AgdaAny
-> T__'8801'__12
-> T__'8801'__12
d_arg'45'injective'8322'_78 = T_Level_18
-> T_Level_18
-> T_ArgInfo_76
-> T_ArgInfo_76
-> AgdaAny
-> AgdaAny
-> T__'8801'__12
-> T__'8801'__12
forall a. a
erased
d_arg'45'injective_88 ::
MAlonzo.Code.Agda.Primitive.T_Level_18 ->
() ->
MAlonzo.Code.Agda.Builtin.Reflection.T_ArgInfo_76 ->
MAlonzo.Code.Agda.Builtin.Reflection.T_ArgInfo_76 ->
AgdaAny ->
AgdaAny ->
MAlonzo.Code.Agda.Builtin.Equality.T__'8801'__12 ->
MAlonzo.Code.Agda.Builtin.Sigma.T_Σ_14
d_arg'45'injective_88 :: T_Level_18
-> T_Level_18
-> T_ArgInfo_76
-> T_ArgInfo_76
-> AgdaAny
-> AgdaAny
-> T__'8801'__12
-> T_Σ_14
d_arg'45'injective_88 ~T_Level_18
v0 ~T_Level_18
v1 ~T_ArgInfo_76
v2 ~T_ArgInfo_76
v3 ~AgdaAny
v4 ~AgdaAny
v5
= T__'8801'__12 -> T_Σ_14
du_arg'45'injective_88
du_arg'45'injective_88 ::
MAlonzo.Code.Agda.Builtin.Equality.T__'8801'__12 ->
MAlonzo.Code.Agda.Builtin.Sigma.T_Σ_14
du_arg'45'injective_88 :: T__'8801'__12 -> T_Σ_14
du_arg'45'injective_88
= ((AgdaAny -> AgdaAny) -> (AgdaAny -> AgdaAny) -> AgdaAny -> T_Σ_14)
-> AgdaAny -> AgdaAny -> T__'8801'__12 -> T_Σ_14
forall a b. a -> b
coe (AgdaAny -> AgdaAny) -> (AgdaAny -> AgdaAny) -> AgdaAny -> T_Σ_14
MAlonzo.Code.Data.Product.du_'60'_'44'_'62'_132 AgdaAny
forall a. a
erased AgdaAny
forall a. a
erased
d_unArg_90 ::
MAlonzo.Code.Agda.Primitive.T_Level_18 ->
() -> MAlonzo.Code.Agda.Builtin.Reflection.T_Arg_88 -> AgdaAny
d_unArg_90 :: T_Level_18 -> T_Level_18 -> T_Arg_88 -> AgdaAny
d_unArg_90 ~T_Level_18
v0 ~T_Level_18
v1 T_Arg_88
v2 = T_Arg_88 -> AgdaAny
du_unArg_90 T_Arg_88
v2
du_unArg_90 ::
MAlonzo.Code.Agda.Builtin.Reflection.T_Arg_88 -> AgdaAny
du_unArg_90 :: T_Arg_88 -> AgdaAny
du_unArg_90 T_Arg_88
v0
= case T_Arg_88 -> T_Arg_88
forall a b. a -> b
coe T_Arg_88
v0 of
MAlonzo.Code.Agda.Builtin.Reflection.C_arg_98 T_ArgInfo_76
v1 AgdaAny
v2 -> AgdaAny -> AgdaAny
forall a b. a -> b
coe AgdaAny
v2
T_Arg_88
_ -> AgdaAny
forall a. a
MAlonzo.RTE.mazUnreachableError
d_unArg'45'dec_100 ::
MAlonzo.Code.Agda.Primitive.T_Level_18 ->
() ->
MAlonzo.Code.Agda.Builtin.Reflection.T_Arg_88 ->
MAlonzo.Code.Agda.Builtin.Reflection.T_Arg_88 ->
MAlonzo.Code.Relation.Nullary.T_Dec_32 ->
MAlonzo.Code.Relation.Nullary.T_Dec_32
d_unArg'45'dec_100 :: T_Level_18
-> T_Level_18 -> T_Arg_88 -> T_Arg_88 -> T_Dec_32 -> T_Dec_32
d_unArg'45'dec_100 ~T_Level_18
v0 ~T_Level_18
v1 T_Arg_88
v2 T_Arg_88
v3 T_Dec_32
v4 = T_Arg_88 -> T_Arg_88 -> T_Dec_32 -> T_Dec_32
du_unArg'45'dec_100 T_Arg_88
v2 T_Arg_88
v3 T_Dec_32
v4
du_unArg'45'dec_100 ::
MAlonzo.Code.Agda.Builtin.Reflection.T_Arg_88 ->
MAlonzo.Code.Agda.Builtin.Reflection.T_Arg_88 ->
MAlonzo.Code.Relation.Nullary.T_Dec_32 ->
MAlonzo.Code.Relation.Nullary.T_Dec_32
du_unArg'45'dec_100 :: T_Arg_88 -> T_Arg_88 -> T_Dec_32 -> T_Dec_32
du_unArg'45'dec_100 T_Arg_88
v0 T_Arg_88
v1 T_Dec_32
v2
= case T_Arg_88 -> T_Arg_88
forall a b. a -> b
coe T_Arg_88
v0 of
MAlonzo.Code.Agda.Builtin.Reflection.C_arg_98 T_ArgInfo_76
v3 AgdaAny
v4
-> case T_Arg_88 -> T_Arg_88
forall a b. a -> b
coe T_Arg_88
v1 of
MAlonzo.Code.Agda.Builtin.Reflection.C_arg_98 T_ArgInfo_76
v5 AgdaAny
v6
-> ((AgdaAny -> AgdaAny) -> T_Dec_32 -> T_Dec_32)
-> AgdaAny -> AgdaAny -> T_Dec_32
forall a b. a -> b
coe
(AgdaAny -> AgdaAny) -> T_Dec_32 -> T_Dec_32
MAlonzo.Code.Relation.Nullary.Decidable.Core.du_map'8242'_168
(((AgdaAny -> AgdaAny -> AgdaAny) -> T_Σ_14 -> AgdaAny)
-> AgdaAny -> AgdaAny
forall a b. a -> b
coe (AgdaAny -> AgdaAny -> AgdaAny) -> T_Σ_14 -> AgdaAny
MAlonzo.Code.Data.Product.du_uncurry_264 AgdaAny
forall a. a
erased)
((T_Dec_32 -> T_Dec_32 -> T_Dec_32) -> AgdaAny -> AgdaAny -> AgdaAny
forall a b. a -> b
coe
T_Dec_32 -> T_Dec_32 -> T_Dec_32
MAlonzo.Code.Relation.Nullary.Product.du__'215''45'dec__30
((T_ArgInfo_76 -> T_ArgInfo_76 -> T_Dec_32)
-> AgdaAny -> AgdaAny -> AgdaAny
forall a b. a -> b
coe
T_ArgInfo_76 -> T_ArgInfo_76 -> T_Dec_32
MAlonzo.Code.Reflection.Argument.Information.d__'8799'__28 (T_ArgInfo_76 -> AgdaAny
forall a b. a -> b
coe T_ArgInfo_76
v3)
(T_ArgInfo_76 -> AgdaAny
forall a b. a -> b
coe T_ArgInfo_76
v5))
(T_Dec_32 -> AgdaAny
forall a b. a -> b
coe T_Dec_32
v2))
T_Arg_88
_ -> T_Dec_32
forall a. a
MAlonzo.RTE.mazUnreachableError
T_Arg_88
_ -> T_Dec_32
forall a. a
MAlonzo.RTE.mazUnreachableError
d_'8801''45'dec_112 ::
MAlonzo.Code.Agda.Primitive.T_Level_18 ->
() ->
(AgdaAny -> AgdaAny -> MAlonzo.Code.Relation.Nullary.T_Dec_32) ->
MAlonzo.Code.Agda.Builtin.Reflection.T_Arg_88 ->
MAlonzo.Code.Agda.Builtin.Reflection.T_Arg_88 ->
MAlonzo.Code.Relation.Nullary.T_Dec_32
d_'8801''45'dec_112 :: T_Level_18
-> T_Level_18
-> (AgdaAny -> AgdaAny -> T_Dec_32)
-> T_Arg_88
-> T_Arg_88
-> T_Dec_32
d_'8801''45'dec_112 ~T_Level_18
v0 ~T_Level_18
v1 AgdaAny -> AgdaAny -> T_Dec_32
v2 T_Arg_88
v3 T_Arg_88
v4
= (AgdaAny -> AgdaAny -> T_Dec_32)
-> T_Arg_88 -> T_Arg_88 -> T_Dec_32
du_'8801''45'dec_112 AgdaAny -> AgdaAny -> T_Dec_32
v2 T_Arg_88
v3 T_Arg_88
v4
du_'8801''45'dec_112 ::
(AgdaAny -> AgdaAny -> MAlonzo.Code.Relation.Nullary.T_Dec_32) ->
MAlonzo.Code.Agda.Builtin.Reflection.T_Arg_88 ->
MAlonzo.Code.Agda.Builtin.Reflection.T_Arg_88 ->
MAlonzo.Code.Relation.Nullary.T_Dec_32
du_'8801''45'dec_112 :: (AgdaAny -> AgdaAny -> T_Dec_32)
-> T_Arg_88 -> T_Arg_88 -> T_Dec_32
du_'8801''45'dec_112 AgdaAny -> AgdaAny -> T_Dec_32
v0 T_Arg_88
v1 T_Arg_88
v2
= (T_Arg_88 -> T_Arg_88 -> T_Dec_32 -> T_Dec_32)
-> AgdaAny -> AgdaAny -> AgdaAny -> T_Dec_32
forall a b. a -> b
coe
T_Arg_88 -> T_Arg_88 -> T_Dec_32 -> T_Dec_32
du_unArg'45'dec_100 (T_Arg_88 -> AgdaAny
forall a b. a -> b
coe T_Arg_88
v1) (T_Arg_88 -> AgdaAny
forall a b. a -> b
coe T_Arg_88
v2)
((AgdaAny -> AgdaAny -> T_Dec_32) -> AgdaAny -> AgdaAny -> AgdaAny
forall a b. a -> b
coe AgdaAny -> AgdaAny -> T_Dec_32
v0 ((T_Arg_88 -> AgdaAny) -> AgdaAny -> AgdaAny
forall a b. a -> b
coe T_Arg_88 -> AgdaAny
du_unArg_90 (T_Arg_88 -> AgdaAny
forall a b. a -> b
coe T_Arg_88
v1)) ((T_Arg_88 -> AgdaAny) -> AgdaAny -> AgdaAny
forall a b. a -> b
coe T_Arg_88 -> AgdaAny
du_unArg_90 (T_Arg_88 -> AgdaAny
forall a b. a -> b
coe T_Arg_88
v2)))