-
Notifications
You must be signed in to change notification settings - Fork 112
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
Record the SMT input size for each split #938
base: master
Are you sure you want to change the base?
Conversation
… regressions in encoding performance
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This seems like a useful thing to have. I'd prefer to have the size increment and Send
calls paired in a separate method, though I don't feel strongly about that.
@@ -647,6 +653,7 @@ protected override void Send(string s, bool isCommon) | |||
|
|||
if (Process != null) | |||
{ | |||
SentSize += s.Length; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It would be lovely if this could only be done from a wrapper around Send
, to ensure that it's always incremented. It would be even nicer if the reset to size 0 could be encapsulated somewhere, too, though I remember from working on this code that there isn't a clear place to put it at the moment.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This looks good overall, but it looks like there are some minor test fixes needed.
Test/commandline/xml.bpl
Outdated
@@ -11,11 +11,11 @@ | |||
// CHECK: \<method name="ExampleWithSplits" startTime=".*"\> | |||
// CHECK: \<assertionBatch number="1" iteration="0" startTime=".*"\> | |||
// CHECK: \<assertion file="xml.bpl" line="25" column="3" /\> | |||
// CHECK: \<conclusion duration=".*" outcome="valid" resourceCount=".*" /\> | |||
// CHECK: \<conclusion duration=".*" outcome="valid" resourceCount=".*" smtInputSize="601" /\> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It looks like these values need updating again.
Currently sometimes |
Changes
Record the SMT input string size for each split, which can be used to detect regressions in encoding performance
Testing
Updated existing test xml.bpl