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

OCM: Data Deep Comparison Equivalence #88

Open
Yiannis128 opened this issue Oct 8, 2023 · 1 comment
Open

OCM: Data Deep Comparison Equivalence #88

Yiannis128 opened this issue Oct 8, 2023 · 1 comment
Labels
enhancement New feature or request

Comments

@Yiannis128
Copy link
Collaborator

Yiannis128 commented Oct 8, 2023

Overhaul the partial equivalence mode to account for pointers.

  • Primitives should check for equivalence like so:
    • Primitives that are a value: a == b
    • Pointers should be dereferenced: *a == *b.
    • Arrays should be dereferenced on every element: a[x] == b[x] where x = range(len(a)) and len(a) == len(b)
  • Structures should check if both are null or not.
  • Structures should individually check their elements like so:
    • If the element is a primitive, then treat with the above rules.
    • If the element is another structure, then compare elements.

The following proposal can be implemented using an ESBMC C Script (with the ClangAST backend and ESBMCCodeGenerator).

There are limitations to checking arrays all using this same method.

For more information, see this wiki page.

@Yiannis128
Copy link
Collaborator Author

OCM is planned to be removed from master pending more research. This was ambitious, perhaps, too ambitious.

@Yiannis128 Yiannis128 removed this from the Version 0.3.5 milestone Feb 8, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant