Y       !"#$%&'()*+,-./0123456789: ; < = > ? @ A B C D E F G H I J K L M N O P Q R STUVWXYZ[\]^_`abcde f g h i j k l m n o pqrstuvwxyz{|}~       !"#$%&'()*+,-./0123456789:;<=>?@ABCDEFGHIJKLMNOPQRSTUVWXYZ[\]^_`abcdefghijklmnopqrstuvwxyz{|}~       !"""""""""""""####&$Safe             Safe DTransform/format a text so that it is acceptable as a HDL identifier  SafeComponent instantiation hole. First argument indicates which function argument to instantiate. Second argument corresponds to output and input assignments, where the first element is the output assignment, and the subsequent elements are the consecutive input assignments.eThe LHS of the tuple is the name of the signal, while the RHS of the tuple is the type of the signalElements of a blackbox contextConstantComponent instantiation hole  Output hole  Input hole  Literal hole  Symbol hole VClock hole (Maybe clk corresponding to input, clk corresponding to output if Nothing) Reset holeType declaration holeType root holeError value hole&Select element type from a vector typeIHole for the name of the component in which the blackbox is instantiated)A BlackBox Template is a List of Elements    None SParse a text as a BlackBoxTemplate, returns a list of errors in case parsing fails7Parse a BlackBoxTemplate (Declarations and Expressions) Parse a single Template Element!!Parse the Text part of a Template")Parse a Declaration or Expression element#Parse a Declaration$#Parse the output tag of Declaration%"Parse the input tag of Declaration&Parse an Expression element'Parse a bracketed text()Parse a token and eat trailing whitespace)/Parse the expression part of Blackbox Templates*Parse an Expression or Text+ !"#$%&'()*+ !"#$%&'()*NoneUExternally defined primitiveLA primitive that has a template that can be filled out by the backend renderName of the primitive Either a  declaration or an  expression template./A primitive that carries additional informationAdditional informationPrimitive Definitions None35FIN#(A class that can generate unique numbers$Get a new unique%^Create a TH expression that returns the a formatted string containing the name of the module %4 is spliced into, and the line where it was spliced.&$Cache the result of a monadic action'ICache the result of a monadic action in a State 3 transformer layers down(Spine-strict cache variant of  mkCachedT3)IRun a State-action using the State that is stored in a higher-layer Monad*Functorial version of %&+Functorial version of %'-0Performs trace when first argument evaluates to ,.Monadic version of ()/Monadic version of (*06Composition of a unary function with a binary function1)if-then-else as a function on an argument2&Applicative version of 'GHC.Types.(:)'3Safe indexing, returns a - if the index does not exist4BUnsafe indexing, return a custom error message when indexing fails55Split the second list at the length of the first list7ceiling (log_2(c))#$%&%The key the action is associated with)The Lens to the HashMap that is the cacheThe action to cache'%The key the action is associated with)The Lens to the HashMap that is the cacheThe action to cache()+Lens to the State in the higher-layer monadThe State-action to perform*+,-./012345678 ./01234567#$%&'()*+,-./01234567#$8%&'()*+,-./01234567#$%&'()*+,-./0123456782+None8MParse a ByteString according to the given JSON template. Prints failures on stdout, and returns - if parsing fails.8Bytestring to parse88None9hGenerate a set of primitives that are found in the primitive definition files in the given directories.9/Directories to search for primitive definitions999,None357 9:;<=>?@AB 9:;<=>?@AB None 023457N? Type variable@ Term variableAVariables in CoreHWBConstructor for type variablesEConstructor for term variablesGChange the name of a variable ?@ABCDEFGCDE ?@ABCDEFG ABECDCF@?G?@ABECDCFGCDE None02357 HDataCon referenceI:Syntactical position of the DataCon in the type definitionJData ConstructorLName of the DataConM+Syntactical position in the type definitionNType of the 'DataConOmUniversally quantified type-variables, these type variables are also part of the result type of the DataConPExistentially quantified type-variables, these type variables are not part of the result of the DataCon, but only of the arguments.QArgument typesRGiven a DataCon and a list of types, the type variables of the DataCon type are substituted for the list of types. The argument types are returned.cThe list of types should be equal to the number of type variables, otherwise an error is reported.HIJKLMNOPQRFGHIJ HIJKLMNOPQR JKLMNOPQHIR HIJKLMNOPQRFGHIJNone02357TyCon reference Type ConstructorS The RHS of an Algebraic DatatypeUThe DataCons of a TyConWThe newtype DataConXThe argument type of the newtype DataCon in eta-reduced form, which is just the representation of the TyCon. The TyName's are the type-variables from the corresponding TyCon.YAlgorithmic DataConsZName of the TyCon[Kind of the TyCon\Number of type arguments]DataCon definitions^$Function TyCons (e.g. type families)_&List of: ([LHS match types], RHS type)`Primitive TyConsa'To close the loop on the type hierarchyb Create a Kind out of a TyConNamec&Does the TyCon look like a tuple TyCond%Get the DataCons belonging to a TyCon STUVWXYZ[\]^_`abcdKLMN STUVWXYZ[\]^_`abcd Y^`aZ[\]Z[\_Z[\ZSTVUWXbcd  Y^`aZ[\]Z[\_Z[\ZSTVUWXbcdKLMN None O Builtin NameP Builtin NameQ Builtin NameR Builtin NameS Builtin KindT Builtin KindU Builtin KindV Builtin KindW Builtin TypeX Builtin TypeOPQRSTUVYefgZ[\WXhijefghijefghijOPQRSTUVYefgZ[\WXhij None02357k Term Literalo Determines the Type of a Literalklmno]^klmnoklmnoklmno]^None02357!Term reference"DTerm representation in the CoreHW language: System F + LetRec + Casep+Patterns in the LHS of a case-decompositionqVDatatype pattern, '[TyVar]' bind existentially-quantified type-variables of a DataConrLiteral patternsDefault patterntBinding in a LetRec constructuVariable referencevDatatype constructorwLiteralx PrimitiveyTerm-abstractionzType-abstraction{ Application|Type-application}Recursive let-binding~ECase-expression: subject, type of alternatives, list of alternatives!"pqrstuvwxyz{|}~_`abcde!"pqrstuvwxyz{|}~"uvwxyz{|}~!tpqrs !" uvwxyz{|}~pqrst_`abcdeNoneSubstitutes types in a typeSubstitutes a type in a typeSubstitutes kinds in a kindSubstitutes a type in a termSubstitutes types in a termSubstitutes a term in a termSubstitutes terms in a term None 02357%:Reference to a Kind;Reference to a Type<The level above types=/Types in CoreHW: function and polymorphic types>Make a Type out of a TyConEither a Kind or a Type Literal TypesType Constants TyCon type Function typeAn easier view on types Function type Applied TyConNeither of the above Type variable Type constantPolymorphic TypeType Application Type literalAn easier view on typesA transformation that renders Signal types transparentA view on types in which SignalU types and newtypes are transparent, and type functions are evaluated when possible.fZInstantiate and Apply the RHS/Original of a NewType with the given list of argument types3Make a function type of an argument and result typeDMake a TyCon Application out of a TyCon and a list of argument types6Split a TyCon Application in a TyCon and its argumentsgIs a type a Superkind?Determine the kind of a typeIs a type polymorphic?4Split a function type in an argument and result type^Split a poly-function type in a: list of type-binders and argument types, and the result type)Is a type a polymorphic or function type?/Is a type a polymorphic or function type under ?Is a type a function type?AApply a function type to an argument type and get the result type(Substitute the type variable of a type () with another typehCSplit a type application in the applied type and the argument types3:;<=>fgihjklmnopqr':;<=>?'=<:;?>':;<=>fgihjklmnopqrNone'Gives the free type-variables in a Type'Gives the free term-variables of a Term'Gives the free type-variables of a TermNone 35#Pretty printing Show-like typeclass Print a Pretty thing to a String?stuvwxyz{|}~7stuvwxyz{|}~NoneKind environment/contextType environment/contextDetermine the type of a term>Split a (Type)Application in the applied term and it argumentsHSplit a (Type)Abstraction in the bound variables and the abstracted termGGet the result type of a polymorphic function given a list of arguments6Get the list of term-binders out of a DataType patternMake a type variableMake a term variable6Abstract a term over a list of term and type variables-Abstract a term over a list of term variables-Abstract a term over a list of type variables)Apply a list of types and terms to a termApply a list of terms to a termApply a list of types to a term!Does a term have a function type?0Does a term have a function or polymorphic type?Is a term a term-abstraction?"Is a term a recursive let-binding?Is a term a variable reference?!Is a term a datatype constructor?Is a term a primitive?,Make variable reference out of term variable0Make a term variable out of a variable referenceNone0C?\Either the name of the identifier, or a tuple of the identifier and the corresponding clock8Context used to fill in the holes of a BlackBox templateResult name and type2Argument names, types, and whether it is a literal&Function arguments (subset of inputs):,(Blackbox Template,Partial Blackbox Concext) Bit literalHighLow UndefinedHigh-impedanceLiterals used in an expressionNumber literal Bit literalBoolean literalVector literal'Expression used in RHS of a declarationLiteral expressionDataCon applicationSignal referenceLeft e : tagToEnum, @Right e@: dataToTag&Instantiation of a BlackBox expressionExpression Modifier@Index the expression: (Type of expression,DataCon tag,Field Tag)JSee expression in a DataCon context: (Type of the expression, DataCon tag)>See the expression in the context of a Vector append operationInternals of a ComponentSignal assignment:Signal to assignAssigned expressionConditional signal assignment:Signal to assignScrutinized expressionVList of: (Maybe expression scrutinized expression is compared with,RHS of alternative)"Instantiation of another component%Instantiation of blackbox declarationSignal declarationRepresentable hardware types Empty type Boolean type Integer typeBitVector of a specified size9Unsigned integer with specified (exclusive) upper bounder"Signed integer of a specified size$Unsigned integer of a specified size Vector type$Sum type: Name and Constructor names"Product type: Name and field types=Sum-of-Product type: Name and Constructor names + field types)Clock type with specified name and periodBReset type corresponding to clock with a specified name and period?Size indication of a type (e.g. bit-size or number of elements)!Component: base unit of a NetlistName of the componentBPorts that have no correspondence the original function definition Input ports Output portsInternal declarationsSignal referenceState of the NetlistMonadGlobal bindersType environment/contextNumber of signal declarationsNumber of create componentsCached componentsPrimitive Definitions#Hardcoded Type -> HWType translator TyCon cache }Monad that caches generated components (StateT) and remembers hidden inputs of components that are being generated (WriterT)T     P     T            None35CState of a rewriting session!Number of applied transformationsGlobal bindersSupply of unique numbers "Hardcode Type -> HWType translator! TyCon cache"%Hardcoded evaluator (delta-reduction)#Context in which a term appears$#Function position of an application%#Argument position of an application&'Function position of a type application')RHS of a Let-binder with the sibling LHS'()Body of a Let-binding with the bound LHS')2Body of a lambda-term with the abstracted variable*9Body of a TyLambda-term with the abstracted type-variable+LRHS of a case-alternative with the variables bound by the pattern on the LHS,Subject of a case-decomposition-,Read-only environment of a rewriting session0Debug Message Verbosity1Don't show debug messages2&Show completely normalized expressions3 Names of applied transformations4/Show sub-expressions after a successful rewrite58Show all sub-expressions on which a rewrite is attempted<A = action in the context of the A==Monadic action that transforms a term given a certain context>MTL convenience wrapper around AAMonad that can do the same as BX and in addition keeps track if a transformation/rewrite has been successfully applied.BzMonad that keeps track how many transformations have been applied and can generate fresh variables and unique identifiers* !"#$%&'()*+,-./0123456789:;<=>?@ABCD) !"#$%&'()*+,-./0123456789:;<=>?@ABC*#$%&'()*+, !";:9876012345-./CBAD>?@=< !"# $%&'()*+,-./0123456789:;<=>?@ABCDNoneJGlobal function bindersEFGHIJEFGHIJJEFGHIEFGHIJNone K State of the VMGlobal bindersN*Cache of previously specialised functions:NKey: (name of the original function, argument position, specialised term/type)AElem: (name of specialised function,type of specialised function)O2Cache of how many times a function was specializedPNumber of time a function f can be specializedQ,Cache of function where inlining took place:'Key: function where inlining took place=Elem: (functions which were inlined, number of times inlined)RNumber of times a function f can be inlined in a function gS&Function which is currently normalizedTA  Transform action in the context of the  RewriteMonad and VU3RewriteSession with extra Normalisation informationV?State monad that stores specialisation and inlining informationKLMNOPQRSTUVWXYZ[\]KLMNOPQRSTUVWXYZ[\]KLMNOPQRS]\[ZYXWVUT KLMNOPQRSTUVWXYZ[\]NoneN ^1Apply a transformation on the subtrees of an term_'Apply two transformations in succession`-Apply a transformation in a topdown traversalaOApply a transformation in a topdown traversal. Doesn't freshen bound variablesb.Apply a transformation in a bottomup traversalcPApply a transformation in a bottomup traversal. Doesn't freshen bound variablesd?Only apply the second transformation if the first one succeeds.e<Only apply the second transformation if the first one fails.f.Keep applying a transformation until it fails.h<Only traverse downwards when the assertion evaluates to true ^/Freshen variable references in abstracted terms+The transformation to apply to the subtrees_`abcdefgh ^_`abcdefgh ^_`abcdefgh ^_`abcdefgh_deNone iSplit a normalized term into: a list of arguments, a list of let-bindings, and a variable reference that is the body of the let-binding. Returns a String containing the error is the term was not in a normalized form.jConverts a Core type to a HWType given a function that translates certain builtin types. Errors if the Core type is not translatable.kKConverts a Core type to a HWType within the NetlistMonad; errors on failurel:Converts a Core type to a HWType within the NetlistMonad; - on failurem@Returns the name and period of the clock corresponding to a typenConverts a Core type to a HWType given a function that translates certain builtin types. Returns a string containing the error message when the Core type is not translatable.oRConverts an algebraic Core type (split into a TyCon and its argument) to a HWType.p/Simple check if a TyCon is recursively defined.qnDetermines if a Core type is translatable to a HWType given a function that translates certain builtin types.r Determines the bitsize of a types3Determines the bitsize of the constructor of a typet(Gives the length of length-indexed typesu}Gives the HWType corresponding to a term. Returns an error if the term has a Core type that is not translatable to a HWType.v2Gives the HWType corresponding to a term. Returns -C if the term has a Core type that is not translatable to a HWType.w_Turns a Core variable reference to a Netlist expression. Errors if the term is not a variable.xLUniquely rename all the variables and their references in a normalized termyAppend a string to a namezPreserve the Netlist  and  when executing a monadic actionijklm TyCon cacheno#Hardcoded Type -> HWType translator TyCon cache9String representation of the Core type for error messages The TyConIts applied argumentspqrstuvwxyz{ijklmnopqrstuvwxyz{ijklmnopqrstuvwxyz{ijklmnopqrstuvwxyz{NoneIN|1Lift an action working in the inner monad to the A}1Lift an action working in the inner monad to the B~1Record if a transformation is succesfully applied"Perform a transformation on a Term,Evaluate a RewriteSession to its inner monad7Notify that a transformation has changed the expression^Identity function that additionally notifies that a transformation has changed the expression>Create a type and kind context out of a transformation contextaCreate a complete type and kind context out of the global binders and the transformation context3Make a new binder and variable reference for a termDMake a new binder and variable reference for either a term or a typeCMake a new, unique, identifier and corresponding variable reference@Inline the binders in a let-binding that have a certain propertySubstitute the RHS of the first set of Let-binders for references to the first set of Let-binders in: the second set of Let-binders and the additional termCalculate the localb free variable of an expression: the free variables that are not bound in the global environment.TLift the binders in a let-binding to a global function that have a certain propertyCreate a global function for a Let-binding and return a Let-binding where the RHS is a reference to the new global function applied to the free variables of the original RHS,Make a global function for a name-term tuple+Add a function to the set of global binders@Create a new name out of the given name, but with another unique=Test whether a term is a variable reference to a local binder5Determine if a term cannot be represented in hardware1Is the Context a Lambda/Term-abstraction context?+Make a binder that should not be referencedNMake a case-decomposition that extracts a field out of a (Sum-of-)Product type)Specialise an application on its argument)Specialise an application on its argument=Create binders and variable references for free variables in specArg|}~Name of the transformationTransformation to be appliedName of the transformationTransformation to performTerm to transform TyCon cacheName of the new binder Term to bind TyCon cacheName of the new binderType or Term to bindName of the identifier Property testLet-binders to substitute*Let-binders where substitution takes place)Expression where substitution takes place Property testName of the functionTerm bound to the function6Name with a proper unique and the type of the function#Name of the caller of this function TyCon cache7Transformation Context in which this function is calledSubject of the case-composition"Lens into previous specialisations$Lens into the specialisation history"Lens into the specialisation limit"Lens into previous specialisations Lens into specialisation history"Lens into the specialisation limit"Perform specialisation limit check Original term@Function part of the term, split into root and applied argumentsArgument to specialize on|}~|}~|}~NoneUADetermine if a function is already inlined in the context of the  NetlistMonad(Specialize under the Normalization MonadDetermine if a term is closed)Determine if a term represents a constant=Create a call graph for a set of global binders, given a rootIDetermine the sets of recursive components given the edges of a callgraph .List of functions that should not be inspectedGlobal bindersRoot of the call graph "(calling function,[called function)]Original BindersDependency GraphRecursive blockLambda-dropped BindersDependency GraphRecursive blockRecursive block dominatorOriginal BindersRecursive block dominatorRecursive block dominator rootBlock sank binder   None >L4Inline non-recursive, non-representable let-bindings#Lift non-representable let-bindings"Specialize functions on their type8Specialize functions on their non-representable argument@Lift the let-bindings out of the subject of a Case-decompositionVMove a Case-decomposition from the subject of a Case-decomposition to the alternatives\Inline function with a non-representable result if it's the subject of a Case-decompositionSpecialize a Case-decomposition (replace by the RHS of an alternative) if the subject is (an application of) a DataCon; or if there is only a single alternative that doesn't reference variables bound by the pattern.lBring an application of a DataCon or Primitive in ANF, when the argument is is considered non-representablekEnsure that top-level lambda's eventually bind a let-expression of which the body is a variable-reference.Remove unused let-bindingsUInline let-bindings when the RHS is either a local variable reference or is constantInline nullary/closed functionsInline small functions4Specialise functions on arguments which are constant7Propagate arguments of application inwards; except for y' where the argument becomes let-bound.lTurn an expression into a modified ANF-form. As opposed to standard ANF, constants do not become let-bound.9Eta-expand top-level lambda's (DON'T use in a traversal!)Turn a normalized recursive function, where the recursive calls only pass along the unchanged original arguments, into let-recursive function. This means that all recursive calls are replaced by the same variable reference as found in the body of the top-level let-expression.+Inline a function with functional argumentsDSimplified CSE, only works on let-bindings, works from top to bottomNoneNormalisation transformation+Topdown traversal, stops upon first successNone-Run a NormalizeSession in a given environment7Rewrite a term according to the provided transformation;Check if the call graph (second argument), starting at the topEnity (first argument) is non-recursive. Returns the list of normalized terms if call graph is indeed non-recursive, errors otherwise.`Perform general "clean up" of the normalized (non-recursive) function hierarchy. This includes:6Inlining functions that simply "wrap" another function Level of debug messages to print UniqueSupplyGlobal Binders#Hardcoded Type -> HWType translator TyCon cache%Hardcoded evaluator (delta-reduction)NormalizeSession to runTransformation to applyTerm to transform  topEntityList of normalized bindersVisitedGlobal bindersRoot of the call graph None Initial state for state monad&Location for the primitive definitionsmName of backend, used for directory to put output files in. Should be | constant function / ignore argument."File extension for target langauge!Get the set of types out of state$Generate HDL for a Netlist componentHGenerate a HDL package containing type definitions for the given HWTypes-Convert a Netlist HWType to a target HDL type<Convert a Netlist HWType to an HDL error value for that type9Convert a Netlist HWType to the root of a target HDL typeHCreate a signal declaration from an identifier (Text) and Netlist HWType4Turn a Netlist Declaration to a HDL concurrent block/Turn a Netlist expression into a HDL expression None4U!Determine if the number of normalliteralqfunction inputs of a blackbox context at least matches the number of argument that is expected by the template.uUpdate all the symbol references in a template, and increment the symbol counter for every newly encountered symbol.*Get the name of the clock of an identifierXRender a blackbox given a certain context. Returns a filled out template and a list of hidden9 inputs that must be added to the encompassing component. Render a single template elementFill out the template corresponding to an output/input assignment of a component instantiation, and turn it into a single identifier so it can be used for a new blackbox context.pGive a context and a tagged hole (of a template), returns part of the context that matches the tag of the hole. Blackbox to verifyTemplate to check againstBlackbox template Context used to fill in the hole    NoneF2Generate the context for a BlackBox instantiation.Create an template instantiation text and a partial blackbox content for an argument term, given that the term is a function. Errors if the term is not a functionMInstantiate symbols references with a new symbol and increment symbol counter5Identifier binding the primitive/blackbox application/Arguments of the primitive/blackbox application&Put BlackBox expression in parenthesis(Treat BlackBox expression as declarationBIdentifier binding the encompassing primitive/blackbox applicationThe function argument termNoneFUGenerate an expression for a DataCon application occurring on the RHS of a let-binderFGenerate an expression for a term occurring on the RHS of a let-binder3Generate a component for a given function (caching)EGenerate a hierarchical netlist out of a set of global binders with  topEntity at the top.0Run a NetlistMonad action in a given environment)Generate a component for a given function0Generate a list of Declarations for a let-binderXGenerate a list of Declarations for a let-binder where the RHS is a function application #HWType of the LHS of the let-binderApplied DataConDataCon Arguments@Returned expression and a list of generate BlackBox declarations(Treat BlackBox expression as declaration!Type of the LHS of the let-binder Term to convert to an expression@Returned expression and a list of generate BlackBox declarationsName of the function$Starting value of the unique counter(Starting number of the component counterGlobal bindersPrimitive definitions TyCon cache#Hardcoded Type -> HWType translator Symbol count Name of the  topEntity(Starting number of the component counterGlobal bindersPrimitive Definitions TyCon cache"Hardcode Type -> HWType translator Action to runName of the functionCorresponding term$Starting value of the unique counterLHS of the let-binderRHS of the let-binderLHS of the let-binderName of the applied functionFunction arguments   !NonegGenerate a HDL testbench for a component given a set of stimuli and a set of matching expected outputs PrimitivesGlobal bindersStimuli Expected output Component to generate TB for"(C) 2015, University of TwenteBSD2 (see the file LICENSE)-Christiaan Baaij <christiaan.baaij@gmail.com>NoneF ICreate a wrapper around a component, potentially initiating clock sources(Create extra input ports for the wrapper)Create extra output ports for the wrapperGenerate input port mappings$Create a Vector chain for a list of sGenerate output port mappingsCreate clock generatorsCreate a single clock generatorCreate a single clock pathGenerate resetsYGenerate a reset synchroniser that synchronously de-asserts an asynchronous reset signalThe  NetListMonad is an transformer stack with  at the bottom. So we must use . TopEntity specificationsEntity to wrap   #NoneN7Create a set of target HDL files for a set of functions(Pretty print Components to HDL DocumentsPrepares the directory for writing HDL files. This means creating the dir if it does not exist and removing all existing .hdl files from it.(Writes a HDL file to the given directorySet of functions Primitive / BlackBox Definitions TyCon cache Hardcoded = ->  translator%Hardcoded evaluator (delta-reduction)5Debug information level for the normalization processBackendList of components-./01233456789:;<=>?@ABCDEFGHEIJKLMNOPQRSTUVWXYZ[\]^_`abcdef g h i j k l m n l o p m q r s t u v w x y z { | }~     n      M           9u      !"#$%&'())*+,-./01234567899: ;&'<=>?@ABCDEFGHIJKLMN0O5P6QRSTTUVWXYZZ[\]^__`abcdefghijklmnopqrstuvwxyz{|}~G       ! " " " " """""""""####$$$$$$ $!$"$#$$$%$&$'()*+,-./0123456789:;<=>?@ABCA%&ABDABEABFAGHAIJAIKA%LA%'AMN+O,P,Q,R,S,T,U,V,W,X,Y Z [ \ ] ^ _ ` abcde f g h i j k l m n o p q r s t uvwxyz{| } ~           !!!!!!>?Aclash_2P9SrRX5n33El1WoaTL1bV CLaSH.UtilCLaSH.Netlist.IdCLaSH.Netlist.BlackBox.TypesCLaSH.Netlist.BlackBox.ParserCLaSH.Primitives.TypesCLaSH.Core.TyConCLaSH.Core.TermCLaSH.Primitives.UtilCLaSH.Core.TypeCLaSH.Core.VarCLaSH.Core.DataConCLaSH.Core.TysPrimCLaSH.Core.LiteralCLaSH.Core.SubstCLaSH.Core.FreeVarsCLaSH.Core.PrettyCLaSH.Core.UtilCLaSH.Netlist.TypesCLaSH.Rewrite.TypesCLaSH.Driver.TypesCLaSH.Normalize.TypesCLaSH.Rewrite.CombinatorsCLaSH.Netlist.UtilCLaSH.Rewrite.UtilCLaSH.Normalize.UtilCLaSH.Normalize.TransformationsCLaSH.Normalize.StrategyCLaSH.Normalize CLaSH.Netlist CLaSH.BackendCLaSH.Netlist.BlackBox.UtilCLaSH.Netlist.BlackBoxCLaSH.Driver.TestbenchGenCLaSH.Driver.TopWrapper CLaSH.DriverPaths_clash_lib Control.Arrowfirstsecond Data.List partition mapAccumLData.Aeson.Extra&Unbound.Generics.LocallyNameless.Extralens_Ku3156d6cpL0FzjOfmEO9QControl.Lens.TH makeLenses mkBasicId mkBasicId'stripDollarPrefixesDeclElementCDOILSymClkRstTypTypMErrTypElemCompNameSigDBlackBoxTemplaterunParse PrimitiveBlackBoxnametemplateprimTypePrimMap$fFromJSONPrimitive TyConNameTyConTmNameTerm MonadUnique getUniqueMcurLoc makeCached makeCachedT3 makeCachedT3S liftStatefirstMsecondMcombineMtraceIf partitionM mapAccumLMdot ifThenElse<:> indexMaybe indexNote splitAtListclashLibVersionclog2$fMonadUniqueStateTgeneratePrimMapKiNameTyNameKindType mkTyConTyTyVarIdVarvarNamevarKindvarType modifyVarNameDcNameConTagDataConMkDatadcNamedcTagdcType dcUnivTyVars dcExtTyVarsdcArgTysdataConInstArgTys AlgTyConRhs DataTyCondataConsNewTyCondataCon ntEtadRhsAlgTyCon tyConName tyConKind tyConArityalgTcRhsFunTyCon tyConSubst PrimTyConSuperKindTyCon mkKindTyConisTupleTyConLike tyConDataConsliftedTypeKind typeNatKindtypeSymbolKind intPrimTy voidPrimTy tysPrimMapLiteralIntegerLiteral StringLiteralRationalLiteral literalTypePatDataPatLitPat DefaultPat LetBindingDataPrimLamTyLamAppTyAppLetrecCasesubstTyssubstTy substKindWith substTyInTm substTysinTmsubstTmsubstTms KindOrTypeLitTyNumTySymTyConstTyArrowTypeViewFunTyTyConApp OtherTypeVarTyForAllTyAppTytyView transparentTycoreViewmkFunTy mkTyConAppsplitTyConAppMtypeKindisPolyTy splitFunTy splitFunTyssplitFunForallTy isPolyFunTyisPolyFunCoreTyisFunTy applyFunTyapplyTy findFunSubst typeFreeVars termFreeIdstermFreeTyVarsPrettypprpprPrecshowDocDeltaGammatermType collectArgs collectBndrsapplyTypeToArgspatIdsmkTyVarmkId mkAbstractionmkTyLamsmkLamsmkAppsmkTmAppsmkTyAppsisFun isPolyFunisLamisLetisVarisConisPrimidToVarvarToIdtermSizeSyncExprSyncIdentifierBlackBoxContextContextbbResultbbInputs bbFunctionsBitHUZNumLitBitLitBoolLitVecLitExpr IdentifierDataTag BlackBoxEModifierIndexedDC VecAppend Declaration AssignmentCondAssignmentInstDecl BlackBoxDNetDeclHWTypeVoidBoolInteger BitVectorIndexSignedUnsignedVectorSumProductSPClockResetSize Component componentName hiddenPortsinputsoutputs declarations NetlistState _bindings_varEnv _varCount _cmpCount _components _primitives_typeTranslator_tcCache _curCompNm NetlistMonad runNetlistemptyBBContext$fNFDataDeclaration$fNFDataHWType$fHashableHWType$fNFDataComponentbindingscmpCount components curCompNm primitivestcCachetypeTranslatorvarCountvarEnv RewriteState_transformCounter _uniqSupply _evaluator CoreContextAppFunAppArgTyAppCLetBodyLamBody TyLamBodyCaseAlt CaseScrut RewriteEnvRE _dbgLevel DebugLevel DebugNone DebugFinal DebugName DebugAppliedDebugAll evaluatortransformCounter uniqSupplyRewrite TransformRrunR RewriteMonadRewriteSessiondbgLevel$fMonadUniqueWriterT CLaSHOptsopt_inlineLimit opt_specLimit opt_dbgLevel BindingMapNormalizeState _normalized_specialisationCache_specialisationHistory_specialisationLimit_inlineHistory _inlineLimit_curFun NormRewriteNormalizeSessionNormalizeMonadcurFun inlineHistory inlineLimit normalizedspecialisationCachespecialisationHistoryspecialisationLimitallR>->topdownRunsafeTopdownR bottomupRunsafeBottomupR!->>-!repeatRwhenR bottomupWhenRsplitNormalizedunsafeCoreTypeToHWTypeunsafeCoreTypeToHWTypeMcoreTypeToHWTypeMsynchronizedClkcoreTypeToHWTypemkADT isRecursiveTyrepresentableTypetypeSizeconSize typeLength termHWType termHWTypeM varToExprmkUniqueNormalized appendToNamepreserveVarEnv dcToLiteralliftRliftRSapply runRewriterunRewriteSession setChangedchanged contextEnvmkEnv mkTmBinderFor mkBinderFor mkInternalVar inlineBinderssubstituteBinders localFreeIds liftBinders liftBinding mkFunction addGlobalBindcloneVar isLocalVarisUntranslatableisLambdaBodyCtxmkWildValBindermkSelectorCase specialise specialise'specArgBndrsAndVarsalreadyInlined addNewInlinespecializeNormisClosed isConstant callGraphrecursiveComponentslambdaDropPrep lambdaDrop dominator blockSink bindNonRep liftNonReptypeSpec nonRepSpeccaseLetcaseCase inlineNonRepcaseCon nonRepANFtopLetdeadCodebindConstantVar inlineClosed inlineSmall constantSpecappPropmakeANFetaExpansionTL recToLetRecinlineHO simpleCSE reduceConst normalizationconstantPropgation topdownSucR innerMost applyManyCallTreeCLeafCBranchrunNormalization normalize normalize' rewriteExprcheckNonRecursive cleanupGraph mkCallTree stripArgs flattenNodeflattenCallTreecallTreeToListmkDcApplicationmkExpr genComponentBackend initBackendprimDir extension extractTypesgenHDL mkTyPackagehdlTypehdlTypeErrValue hdlTypeMarkhdlSiginstexprverifyBlackBoxContextextractLiteralssetSym setCompName setClocks clkSyncIdrenderBlackBox renderElem parseFailsyncIdToSyncExprlineToIdentifier lineToType renderTagmkBlackBoxContextprepareBlackBox mkArgument mkPrimitive mkFunInputinstantiateSyminstantiateCompName genNetlistrunNetlistMonad genComponentTmkDeclarationsmkFunApp toSimpleVar genTestBench mkTopWrapperextraInextraOutmkInput mkVectorChainmkOutputmkClocks stringToVarmkClock clockPortsmkResets genSyncResetunsafeRunNetlist generateHDL createHDL prepareDirwriteHDLcatchIOversionbindirlibdirdatadir libexecdir sysconfdir getBinDir getLibDir getDataDir getLibexecDir getSysconfDirgetDataFileName EncodedString UserStringzEncode encodeDigitChencodeChencodeAsUnicodeChar unencodedChar maybeTuple countCommas pBlackBoxDpElementpTextpTagDpDeclpOutputpInputpTagE pBracketspTokenWS pBlackBoxEpElemEParserghc-prim GHC.TypesTruebaseGHC.BaseNothing<*>pure Applicative Data.Functor<$> Control.Monad<=<>=>*** Data.FunctionondecodeAndReport $fSubstbText $fAlphaText $fOrdEmbed$fHashableName $fSubstbRatio $fNFDataRec$fNFDataRebind $fNFDataName $fNFDataEmbed $fNFDataBind$fSubstTypeVar$fSubstTermVar $fAlphaVar$fSubstaDataCon$fAlphaDataCon $fOrdDataCon $fEqDataCon $fShowDataCon $fAlphaTyCon $fOrdTyCon $fEqTyCon $fShowTyContySuperKindTyConNameliftedTypeKindTyConNametypeNatKindTyConNametypeSymbolKindTyConName tySuperKindtcliftedTypeKindtc typeNatKindtctypeSymbolKindtc intPrimTc voidPrimTc tySuperKindintPrimTyConNamevoidPrimTyConName liftedPrimTC$fSubstaLiteral$fAlphaLiteral$fSubstTypeTerm$fSubstTermTerm$fSubstTermPat$fSubstTypePat $fAlphaTerm $fOrdTerm$fEqTermnewTyConInstRhs isSuperKind splitTyAppM kindFunResult funSubstsfunSubst $fOrdType$fEqType$fSubstTypeType$fSubstTermType$fSubstaConstTy $fSubstaLitTy $fAlphaTypeTypePrecTopPrecFunPrec TyConPrec BindingSite LambdaBindCaseBindLetBindnoPrecopPrecappPrec prettyParenpprTopLevelBndrdcolonperiodrarrow pprPrecLam pprPrecTyLam pprPrecApp pprPrecTyApp pprPrecLetrec pprPrecCase pprPrecAltpprBndr maybeParenpprType pprParendTypeppr_type pprForAllType pprSigmaType pprForAll pprTvBndrpprKindpprTcApppprTypeNameApp pprInfixApp pprPrefixApp pprPrefixVar pprInfixVar pprArrowChain isSymNameisLexSym isLexConSym isLexVarSym startsConSym startsVarSym isSymbolASCII $fPrettyPat$fPrettyLiteral$fPrettyDataCon $fPrettyVar $fPrettyTerm $fPrettyLitTy $fPrettyTyCon $fPrettyVar0 $fPrettyType $fPretty(,) $fPretty[] $fPrettyName NormRewriteW caseOneAlt liftNormR collectANFreduceBindersFix reduceBindersgenClockgenReset genFinishgenDone genStimuli genVerifierIOGHC.IOunsafePerformIO