-
Notifications
You must be signed in to change notification settings - Fork 64
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
add "skip global checks" attribute for AOs #559
Conversation
This looks okay, though I would've phrased it as something like "public interface". We don't always know who calls it or how many call sites there are, but we do know that we want it to be part of the document's integration surface. That's the thing we're trying to communicate. |
I kind of wanted to go the other way, and make it a very technical "exempt from whole-program analysis", because that's what it's actually going to get used for - we're not going to go annotate all the things which are actually the de-facto public interface in the near future. |
I want to do exactly that. |
Fair enough. The other factor is, I'd like to extend this so that we can have a useful "this AO is never called, you should remove it" check, which I started doing here. But it turns out there's a bunch of stuff which is called but not in a way we can determine, like ToInt16, whose sole call site is this table. So I want to exempt ToInt16 from whole-program analysis. But that doesn't mean it needs to be part of the public interface. Maybe I'll change this to "exempt from whole program analysis" for now, and we can add a "public interface" one later which implies it. |
@bakkot Instead of exempting the AO, we should probably just find a way to annotate the dynamic call site with the AOs that could be reached. |
Well, some of the checks I'd like to do are along the lines of "does every use assert There's not enough dynamic callsites that it makes sense to put in a bunch of work just for those cases, rather than simply skipping analysis for them. |
Renamed to "skip global checks"; gonna land as-is. We can add the "public interface" one separately and have it imply this. |
which disables analyses which require knowing every callsite - currently just the "every callsite invokes with
!
" check, but we'd also use this for a future "every callsite passes this optional argument" check and similar.