NeKon69
NeKon69
This appears to be much harder than I initially anticipated as these are not modeled on the CFG level. So this might actually take a while..
I don't plan on working on this for the foreseeable future, there are too much blockers that I encountered while looking for a way to solve this issue.
This sounds interesting as a concept! I was thinking about something similar like how we can come up with a new attribute we can place on parameters, but never thought...
Also I don't think placing attributes like this in the middle of code is valid C++: ```cpp HandleMessage(message); [[this_maybe_deleted]]; return; ``` The attribute will most likely have to go on...
> > Also I don't think placing attributes like this in the middle of code is valid C++ > > It's valid. See for example https://en.cppreference.com/cpp/language/attributes/assume. Huh, interesting. Thanks for...
I think this issue is more of a general problem with invalidations currently, not something specific to `std::unique_ptr::reset`, see - https://godbolt.org/z/qT18xGWbW (invalidations are currently highly experimental, so it's expected that...
I also think we should discuss this before implementing any changes. One approach I can see is the following: Maintain a mapping from each lifetimebound parameter in the function being...
> I think we could potentially do this the other way around too. Tracking the set of returned loans and where they are coming from. > > And in case...
> We can introduce a placeholder loan for these cases. Do you mean creating a new loan each time a function is called? Hm, yeah, that can simplify things. Though...
> But that might be the source of the violation and thus would qualify as something to show as details. I think the approach @Xazax-hun suggested is superior in this...