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

Testcases #7

Open
42niks opened this issue Oct 13, 2020 · 3 comments
Open

Testcases #7

42niks opened this issue Oct 13, 2020 · 3 comments

Comments

@42niks
Copy link
Member

42niks commented Oct 13, 2020

Test cases to be written for which verification is to be done. @manasthakur sir please provide us some test cases you can think of whenever you are free.

@manasthakur
Copy link
Member

manasthakur commented Oct 17, 2020

Here is a plan (any of us can create tests based on the same, and keep pushing to a directory tests):

  1. Two-three local objects, inter-connected via fields, without CVs
  2. Objects assigned to globals
  3. Objects passed to application methods such that the callee doesn't touch parameters
  4. Previous but the callee should modify parameters' fields
  5. Previous but the callee should assign parameter and/or its fields to a global
  6. Objects passed to a library method
  7. Objects passed to multiple application/library methods
  8. Object field loaded after base object was passed to a method
  9. Previous but the field should be uninitialized in the caller
  10. Objects created and returned by callee to caller
  11. Creation of arrays and multiarrays
  12. Arrays whose element objects escape but the array doesn't

@42niks
Copy link
Member Author

42niks commented Dec 13, 2020

PR #10 for adding test cases.

@42niks
Copy link
Member Author

42niks commented Dec 13, 2020

Current code failed testcase 5. It maintains correctness, but didn't optimize as expected. Will continue adding test cases for now. Will investigate later.

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

2 participants