Skip to content

give fields unique names - #1386

Merged
nunoplopes merged 2 commits into
AliveToolkit:masterfrom
regehr:regehr/unique-field-names
Nov 16, 2026
Merged

nunoplopes merged 2 commits into
AliveToolkit:masterfrom
regehr:regehr/unique-field-names

Conversation

@regehr

@regehr regehr commented Nov 11, 2026 •

Copy link
Copy Markdown
Contributor

this fixes an unsoundness bug where the transformation below is accepted when it must be rejected. the solution is to avoid collisions when assigning smt names using a depth-first counter.

define i32 @src({ <2 x i32>, <2 x i32> } noundef %x) {
  %a = extractvalue { <2 x i32>, <2 x i32> } %x, 0
  %v = extractelement <2 x i32> %a, i32 1
  ret i32 %v
}

define i32 @tgt({ <2 x i32>, <2 x i32> } noundef %x) {
  %a = extractvalue { <2 x i32>, <2 x i32> } %x, 1
  %v = extractelement <2 x i32> %a, i32 0
  ret i32 %v
}

@nunoplopes
nunoplopes merged commit f589a47 into AliveToolkit:master Nov 16, 2026
16 checks passed
@regehr
regehr deleted the regehr/unique-field-names branch November 17, 2026 22:48
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.

2 participants