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

extractvalue printing/lexing issues #72

Closed
LebedevRI opened this issue Jun 16, 2019 · 0 comments
Closed

extractvalue printing/lexing issues #72

LebedevRI opened this issue Jun 16, 2019 · 0 comments

Comments

@LebedevRI
Copy link
Contributor

Given

Name: res is undef
  %X = umul_overflow i8 %a, undef
  %Op = extractvalue %X, 0
  %Ov = extractvalue %X, 1
=>
  %X = umul_overflow i8 %a, undef
  %Op = undef
  %Ov = 0

it is printed as:

$ ~/src/alive2/build-Clang-release/alive -smt-to:100000 /tmp/test.opt 
OMP: Info #270: omp_set_nested routine deprecated, please use omp_set_max_active_levels instead.
Processing /tmp/test.opt..

----------------------------------------
Name: res is undef
  %X = umul_overflow i8 %a, undef
  %Op = extractvalue {i8, i1} %X, 0
  %Ov = extractvalue {i8, i1} %X, 1
=>
  %X = umul_overflow i8 %a, undef
  %Op = undef
  %Ov = 0

<...>

But if you copy %Op = extractvalue {i8, i1} %X, 0 back into the test.opt

$ ~/src/alive2/build-Clang-release/alive -smt-to:100000 /tmp/test.opt 
OMP: Info #270: omp_set_nested routine deprecated, please use omp_set_max_active_levels instead.
Processing /tmp/test.opt..
Parse error in line: 3: [Lex] couldn't parse: '{i8, i1} %X, 0
 '

So i think it should either not print {i8, i1}, or not fail to lex it.

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