Skip to content

Conversation

@Angs12
Copy link

@Angs12 Angs12 commented Jan 3, 2026

Blk.flatten produces new variables with incorrect type after flattening expressions with extract or concat expressions.

On extract expressions the new variable gets the type of the expression inside the extract and not the size (high - low + 1).

On concat expressions the new variable gets the type of the second expression and not the added size of the two expressions,
after the changes the type is the sum of sizes of the types of the expressions if the expressions are of type Imm otherwise if any of the expressions are of Unknown type the new variable type is also unknown. Lastly, i don't know how to define concat on memories so i call failwith.

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