Skip to content

assertion failed: self.contains_function(function_name) #412

Description

@tim-hoffman

Reproduced by circom/tests/circom_doc_examples/04.circom.
It tries to lookup AND as a function but it's a template. Stack trace shows this happens in DeclarationInfo::from_template() which means information about all templates has not yet been collected and thus the confusion. Near the top of the stack, it's trying to generate a poly.expr for a dimension expression when it encounters the AND() call and tries to generate it as a function call.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions