{-# 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.Information 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.Data.Product
import qualified MAlonzo.Code.Reflection.Argument.Modality
import qualified MAlonzo.Code.Reflection.Argument.Visibility
import qualified MAlonzo.Code.Relation.Nullary
import qualified MAlonzo.Code.Relation.Nullary.Decidable.Core
import qualified MAlonzo.Code.Relation.Nullary.Product

-- Reflection.Argument.Information.visibility
d_visibility_14 ::
  MAlonzo.Code.Agda.Builtin.Reflection.T_ArgInfo_76 ->
  MAlonzo.Code.Agda.Builtin.Reflection.T_Visibility_48
d_visibility_14 :: T_ArgInfo_76 -> T_Visibility_48
d_visibility_14 T_ArgInfo_76
v0
  = case T_ArgInfo_76 -> T_ArgInfo_76
forall a b. a -> b
coe T_ArgInfo_76
v0 of
      MAlonzo.Code.Agda.Builtin.Reflection.C_arg'45'info_82 T_Visibility_48
v1 T_Modality_68
v2
        -> T_Visibility_48 -> T_Visibility_48
forall a b. a -> b
coe T_Visibility_48
v1
      T_ArgInfo_76
_ -> T_Visibility_48
forall a. a
MAlonzo.RTE.mazUnreachableError
-- Reflection.Argument.Information.modality
d_modality_18 ::
  MAlonzo.Code.Agda.Builtin.Reflection.T_ArgInfo_76 ->
  MAlonzo.Code.Agda.Builtin.Reflection.T_Modality_68
d_modality_18 :: T_ArgInfo_76 -> T_Modality_68
d_modality_18 T_ArgInfo_76
v0
  = case T_ArgInfo_76 -> T_ArgInfo_76
forall a b. a -> b
coe T_ArgInfo_76
v0 of
      MAlonzo.Code.Agda.Builtin.Reflection.C_arg'45'info_82 T_Visibility_48
v1 T_Modality_68
v2
        -> T_Modality_68 -> T_Modality_68
forall a b. a -> b
coe T_Modality_68
v2
      T_ArgInfo_76
_ -> T_Modality_68
forall a. a
MAlonzo.RTE.mazUnreachableError
-- Reflection.Argument.Information.arg-info-injective₁
d_arg'45'info'45'injective'8321'_22 ::
  MAlonzo.Code.Agda.Builtin.Reflection.T_Visibility_48 ->
  MAlonzo.Code.Agda.Builtin.Reflection.T_Modality_68 ->
  MAlonzo.Code.Agda.Builtin.Reflection.T_Visibility_48 ->
  MAlonzo.Code.Agda.Builtin.Reflection.T_Modality_68 ->
  MAlonzo.Code.Agda.Builtin.Equality.T__'8801'__12 ->
  MAlonzo.Code.Agda.Builtin.Equality.T__'8801'__12
d_arg'45'info'45'injective'8321'_22 :: T_Visibility_48
-> T_Modality_68
-> T_Visibility_48
-> T_Modality_68
-> T__'8801'__12
-> T__'8801'__12
d_arg'45'info'45'injective'8321'_22 = T_Visibility_48
-> T_Modality_68
-> T_Visibility_48
-> T_Modality_68
-> T__'8801'__12
-> T__'8801'__12
forall a. a
erased
-- Reflection.Argument.Information.arg-info-injective₂
d_arg'45'info'45'injective'8322'_24 ::
  MAlonzo.Code.Agda.Builtin.Reflection.T_Visibility_48 ->
  MAlonzo.Code.Agda.Builtin.Reflection.T_Modality_68 ->
  MAlonzo.Code.Agda.Builtin.Reflection.T_Visibility_48 ->
  MAlonzo.Code.Agda.Builtin.Reflection.T_Modality_68 ->
  MAlonzo.Code.Agda.Builtin.Equality.T__'8801'__12 ->
  MAlonzo.Code.Agda.Builtin.Equality.T__'8801'__12
d_arg'45'info'45'injective'8322'_24 :: T_Visibility_48
-> T_Modality_68
-> T_Visibility_48
-> T_Modality_68
-> T__'8801'__12
-> T__'8801'__12
d_arg'45'info'45'injective'8322'_24 = T_Visibility_48
-> T_Modality_68
-> T_Visibility_48
-> T_Modality_68
-> T__'8801'__12
-> T__'8801'__12
forall a. a
erased
-- Reflection.Argument.Information.arg-info-injective
d_arg'45'info'45'injective_26 ::
  MAlonzo.Code.Agda.Builtin.Reflection.T_Visibility_48 ->
  MAlonzo.Code.Agda.Builtin.Reflection.T_Modality_68 ->
  MAlonzo.Code.Agda.Builtin.Reflection.T_Visibility_48 ->
  MAlonzo.Code.Agda.Builtin.Reflection.T_Modality_68 ->
  MAlonzo.Code.Agda.Builtin.Equality.T__'8801'__12 ->
  MAlonzo.Code.Agda.Builtin.Sigma.T_Σ_14
d_arg'45'info'45'injective_26 :: T_Visibility_48
-> T_Modality_68
-> T_Visibility_48
-> T_Modality_68
-> T__'8801'__12
-> T_Σ_14
d_arg'45'info'45'injective_26 ~T_Visibility_48
v0 ~T_Modality_68
v1 ~T_Visibility_48
v2 ~T_Modality_68
v3
  = T__'8801'__12 -> T_Σ_14
du_arg'45'info'45'injective_26
du_arg'45'info'45'injective_26 ::
  MAlonzo.Code.Agda.Builtin.Equality.T__'8801'__12 ->
  MAlonzo.Code.Agda.Builtin.Sigma.T_Σ_14
du_arg'45'info'45'injective_26 :: T__'8801'__12 -> T_Σ_14
du_arg'45'info'45'injective_26
  = ((Any -> Any) -> (Any -> Any) -> Any -> T_Σ_14)
-> Any -> Any -> T__'8801'__12 -> T_Σ_14
forall a b. a -> b
coe (Any -> Any) -> (Any -> Any) -> Any -> T_Σ_14
MAlonzo.Code.Data.Product.du_'60'_'44'_'62'_132 Any
forall a. a
erased Any
forall a. a
erased
-- Reflection.Argument.Information._≟_
d__'8799'__28 ::
  MAlonzo.Code.Agda.Builtin.Reflection.T_ArgInfo_76 ->
  MAlonzo.Code.Agda.Builtin.Reflection.T_ArgInfo_76 ->
  MAlonzo.Code.Relation.Nullary.T_Dec_32
d__'8799'__28 :: T_ArgInfo_76 -> T_ArgInfo_76 -> T_Dec_32
d__'8799'__28 T_ArgInfo_76
v0 T_ArgInfo_76
v1
  = case T_ArgInfo_76 -> T_ArgInfo_76
forall a b. a -> b
coe T_ArgInfo_76
v0 of
      MAlonzo.Code.Agda.Builtin.Reflection.C_arg'45'info_82 T_Visibility_48
v2 T_Modality_68
v3
        -> case T_ArgInfo_76 -> T_ArgInfo_76
forall a b. a -> b
coe T_ArgInfo_76
v1 of
             MAlonzo.Code.Agda.Builtin.Reflection.C_arg'45'info_82 T_Visibility_48
v4 T_Modality_68
v5
               -> ((Any -> Any) -> T_Dec_32 -> T_Dec_32) -> Any -> Any -> T_Dec_32
forall a b. a -> b
coe
                    (Any -> Any) -> T_Dec_32 -> T_Dec_32
MAlonzo.Code.Relation.Nullary.Decidable.Core.du_map'8242'_168
                    (((Any -> Any -> Any) -> T_Σ_14 -> Any) -> Any -> Any
forall a b. a -> b
coe (Any -> Any -> Any) -> T_Σ_14 -> Any
MAlonzo.Code.Data.Product.du_uncurry_264 Any
forall a. a
erased)
                    ((T_Dec_32 -> T_Dec_32 -> T_Dec_32) -> Any -> Any -> Any
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_Visibility_48 -> T_Visibility_48 -> T_Dec_32)
-> Any -> Any -> Any
forall a b. a -> b
coe
                          T_Visibility_48 -> T_Visibility_48 -> T_Dec_32
MAlonzo.Code.Reflection.Argument.Visibility.d__'8799'__6 (T_Visibility_48 -> Any
forall a b. a -> b
coe T_Visibility_48
v2)
                          (T_Visibility_48 -> Any
forall a b. a -> b
coe T_Visibility_48
v4))
                       ((T_Modality_68 -> T_Modality_68 -> T_Dec_32) -> Any -> Any -> Any
forall a b. a -> b
coe
                          T_Modality_68 -> T_Modality_68 -> T_Dec_32
MAlonzo.Code.Reflection.Argument.Modality.d__'8799'__28 (T_Modality_68 -> Any
forall a b. a -> b
coe T_Modality_68
v3)
                          (T_Modality_68 -> Any
forall a b. a -> b
coe T_Modality_68
v5)))
             T_ArgInfo_76
_ -> T_Dec_32
forall a. a
MAlonzo.RTE.mazUnreachableError
      T_ArgInfo_76
_ -> T_Dec_32
forall a. a
MAlonzo.RTE.mazUnreachableError