Skip to content

Expr/stmt eval that provides types#26

Draft
agle wants to merge 8 commits intomainfrom
typeinf
Draft

Expr/stmt eval that provides types#26
agle wants to merge 8 commits intomainfrom
typeinf

Conversation

@agle
Copy link
Owner

@agle agle commented Feb 6, 2026

Eval statement now uses new ExprEvalWithType which pushes types up the ast and passes the type to the ValueAbstraction: see https://github.com/agle/bincaml/pull/26/changes#diff-fe7cc53407f35da17c26c9fc0f79c4317c9083dcc897c2e0c0ffba47f5374712

I think this makes sense as a default because the semantics are defined by the type (bitvector width). There would be other sensible approaches though

  • store the type attached to every expr tree node
  • monomorphise the set of ops to include width arguments

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

Successfully merging this pull request may close these issues.

1 participant