<html><head></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; "><br><div><div>On Aug 11, 2011, at 3:52 PM, Jordy Rose wrote:</div><br class="Apple-interchange-newline"><blockquote type="cite"><span class="Apple-style-span" style="border-collapse: separate; font-family: Helvetica; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-align: -webkit-auto; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-border-horizontal-spacing: 0px; -webkit-border-vertical-spacing: 0px; -webkit-text-decorations-in-effect: none; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px; font-size: medium; ">On Aug 11, 2011, at 15:42, Ted Kremenek wrote:<br><br><blockquote type="cite">]As for not many symbols having multiple dependents, I don't think that's a valid assumption. The whole point of this addition was to give checkers the ability to tie two symbols together (e.g., parameter out value and a return value). There's no reason why there can't be multiple dependents. Even if it's just two checkers that need to track dependencies between a common symbol and another, two is still more than one.<br></blockquote><br>Sorry, I meant multiple dependenCIES. My bad. With the dependency capabilities in this commit we have "this symbol survives if ANY of its base symbols are alive", and no way to express "all of its base symbols".</span></blockquote><div><br></div><div>Ah, I see what you mean.</div><div><br></div><div>I think these are two separate concepts. This commit supports the "this symbol survives if ANY of its base symbols are alive", and I think that's a valid feature to support. The idea is that a checker indicates that it wants to extend the lifetime of one symbol to be at least as long as the lifetime of another. I think the confusion here is the terminology "base". This isn't an issue of one symbol being derived from another; it's about linking the lifetime of two existing symbols.</div><div><br></div><blockquote type="cite"><span class="Apple-style-span" style="border-collapse: separate; font-family: Helvetica; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-align: -webkit-auto; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-border-horizontal-spacing: 0px; -webkit-border-vertical-spacing: 0px; -webkit-text-decorations-in-effect: none; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px; font-size: medium; "> I think we might want to say that multiple dependencies = undefined behavior.<br></span></blockquote></div><br><div>I think for the intention of this feature, I don't think that's valid.</div><div><br></div><div>I think we have two things:</div><div><br></div><div>(1) Derived symbols. Derived symbols are mostly used to lazily symbolicate memory. They naturally have a notion of a *SINGLE* base. There is no real reason to support multiple bases. Lifetime of the derived symbol is dictated by the lifetime of the base symbol.</div><div><br></div><div>(2) Linked symbols. Two symbols can be linked without having any other relationship to another. That's the intention of this commit.</div></body></html>