Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Datalog midend stage #1580

Open
1 of 5 tasks
verytactical opened this issue Jan 27, 2025 · 0 comments
Open
1 of 5 tasks

Datalog midend stage #1580

verytactical opened this issue Jan 27, 2025 · 0 comments

Comments

@verytactical
Copy link
Contributor

In order to simplify development of tree operations and computing complex fixpoint operations, we need an intermediate datalog stage.

  • Compile souffle-js
  • Write temporary AST -> datalog converter
  • Write some simple, but interesting operations on it (resolving, optimization etc)
  • Check performance on real-world contracts
  • Make a codegen that
    • takes AST types + souffle code without .type statements
    • generates .type statements from TS types, and concatenates them
    • generates bindings for code that
      • serializes .input CSV from values of those TS types
      • calls souffle on source from previous step
      • deserializes .output CSV to values of those types
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant