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

[SMTChecker] Refactor pointers #7266

Open
leonardoalt opened this issue Aug 15, 2019 · 8 comments
Open

[SMTChecker] Refactor pointers #7266

leonardoalt opened this issue Aug 15, 2019 · 8 comments
Labels
easy difficulty good first issue candidate Could be a "good first issue" but something is blocking it or it has open questions. smt

Comments

@leonardoalt
Copy link
Member

There are a lot of shared_ptr being used for smt::Sort where they could be raw pointers.

@leonardoalt
Copy link
Member Author

@ekpyron actually why did we want them to be raw pointers instead of shared_ptr?

@ekpyron
Copy link
Member

ekpyron commented May 17, 2022

shared pointer have non-zero overhead and you always need to be careful about them becoming cyclically dependent on each other...
In general, it's always nicer to have clearly defined explicit ownership and lifetimes instead - but not sure if there was any more concrete reason than that...

@leonardoalt
Copy link
Member Author

Yea, tho I'm wondering if that really makes sense for the SMT sorts

@ekpyron
Copy link
Member

ekpyron commented May 17, 2022

Rather similar case to us introducing that TypeProvider thing for the solidity AST I guess.

@cameel cameel added good first issue candidate Could be a "good first issue" but something is blocking it or it has open questions. and removed good first issue labels Dec 5, 2022
@aniketmdinde
Copy link

I want to contribute to solve this issue. Can you please guide and assign me this issue?

@DavidRomanovizc
Copy link
Contributor

Hello, @leonardoalt this problem is still relevant?

@pgebal pgebal self-assigned this Dec 15, 2023
@pgebal pgebal removed their assignment Feb 21, 2024
@Ajay-26
Copy link

Ajay-26 commented May 8, 2024

Why not use unique_ptrs as opposed to raw pointers ? Also, I would like to contribute to this issue if possible

@blishko blishko moved this to To Do in SMT Checker May 29, 2024
@Pawar7349
Copy link

I’m interested in working on this issue of refactoring shared_ptr to raw pointers or unique_ptr. Could you provide some guidance on the preferred approach?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
easy difficulty good first issue candidate Could be a "good first issue" but something is blocking it or it has open questions. smt
Projects
Status: To Do
Development

No branches or pull requests

9 participants