Skip to content
New issue

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

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

Already on GitHub? # to your account

Synthesize RHS constants #944

Open
nunoplopes opened this issue Oct 12, 2023 · 1 comment
Open

Synthesize RHS constants #944

nunoplopes opened this issue Oct 12, 2023 · 1 comment
Labels
enhancement New feature or request

Comments

@nunoplopes
Copy link
Member

something like:

define i8 @src(i8 %y) {
  %x = sub i8 %y, %y
  ret i8 %x
}

define i8 @tgt(i8 %y) {
  %c = call i8 @llvm.symbolic.const()
  ret i8 %c
}

The goal is to synthesize a value for %c (0 in this case), or fail if no constant exists.

cc @regehr

@nunoplopes nunoplopes added the enhancement New feature or request label Oct 12, 2023
@regehr
Copy link
Contributor

regehr commented Oct 12, 2023

one extra thing that would be excellent is an indication if the constant is unique, or perhaps an option to dump N constants instead of just the first one

# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants