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

Create dummy target arch for tests #314

Open
codyroux opened this issue Apr 15, 2021 · 0 comments
Open

Create dummy target arch for tests #314

codyroux opened this issue Apr 15, 2021 · 0 comments
Assignees
Labels
WP Involves the Weakest Precondition computation

Comments

@codyroux
Copy link
Contributor

We currently use the assumption we're on X86_64 pervasively and scattered throughout in the tests, eg.

let x86_64_input_regs : Var.t list =

let test_tgt = X86_target.amd64

let module Target = (val target_of_arch `x86_64) in

let module Target = (val target_of_arch `x86_64) in

We need to:

  • Make things generic over the target
  • Create our own dummy target with the appropriate variables for the needed roles in the analysis.
  • If there are x86 or AMD64 specific tests, make sure to mark them appropriately.
@codyroux codyroux added the WP Involves the Weakest Precondition computation label Apr 15, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
WP Involves the Weakest Precondition computation
Projects
None yet
Development

No branches or pull requests

2 participants