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

Regression: Missing printf calls #916

Open
rfalke opened this issue Jul 15, 2020 · 2 comments
Open

Regression: Missing printf calls #916

rfalke opened this issue Jul 15, 2020 · 2 comments

Comments

@rfalke
Copy link

rfalke commented Jul 15, 2020

Subject: https://github.com/rfalke/decompiler-subjects/blob/master/from_holdec/overlapping_instructions/ia32_elf

Method: main

Source code:

int main(int argc, char *argv[])
{
  if(argc==2) {
    exec_python();
  }
  not_endless_loop();
  printf("42+1=%d\n",add_one(42));
  int tmp=return_constant();
  int expected=0xBBC10300+2*0x05000000+0xF4EBC103+0xB9;
  printf("constant: 0x%08x = %d equal=%d\n", tmp, tmp, tmp==expected);
  return 0;
}

Reko output:

// 08049060: void main(Stack word32 dwArg04)
void main(word32 dwArg04)
{
	__align(fp);
	if (dwArg04 == 0x02)
		exec_python();
	else
	{
		not_endless_loop();
		add_one();
	}
}
@rfalke
Copy link
Author

rfalke commented Jul 15, 2020

@rfalke rfalke changed the title Missing printf calls Regression: Missing printf calls Jul 15, 2020
@rfalke
Copy link
Author

rfalke commented Aug 26, 2023

Still relevant in version 0.11.4.0-931ca7d.

It looks like Reko stops after seeing the add_one call.

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