-
Notifications
You must be signed in to change notification settings - Fork 284
Add XML trace specification -- no code change #5222
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 XML trace specification -- no code change #5222
Conversation
doc/cprover-manual/cbmc-tutorial.md
Outdated
| ``` | ||
|
|
||
| The specification of the XML trace output can be found here: | ||
| [XML Specification](https://raw.githubusercontent.com/diffblue/cbmc/develop/doc/assets/xml_spec.tex) |
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 should contain information on how the file is intended to be processed. I think this should work with most LaTeX backends with -shell-escape?
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.
Also, maybe even consider producing it as part of our documentation somehow? The LaTeX itself isn’t super human readable unprocessed.
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.
Yeah 🚫 there must be either a script or a readme next to it explaining how to build it.
Codecov Report
@@ Coverage Diff @@
## develop #5222 +/- ##
========================================
Coverage 67.43% 67.43%
========================================
Files 1157 1157
Lines 95351 95351
========================================
Hits 64303 64303
Misses 31048 31048
Continue to review full report at Codecov.
|
|
Why is my face on the codecov comment? 👀 |
Wait. You didn't post the coverage report here? |
|
Nope, never seen this PR, never did anything with codecov 🤷♀️ I only learned about this because I got emails from github after Thomas added his comment (but not earlier). |
e6c2933 to
b4c30fe
Compare
martin-cs
left a comment
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.
I appreciate that documentation is often a thankless task so forgive me if I am making this harder but would it be possible to produce the spec as an XSD file or something so that we add a regression test that validates the output of CBMC against it. That way when someone changes the format we should at least have a flag to update the documentation.
6b53770 to
1bd6f05
Compare
and a reference in the documentation.
Also replace some latex instructions that pandoc can’t handle with some it can.
1bd6f05 to
54a208f
Compare
Note that this is based on observed outputs from cbmc, there is currently no mechanism in place that enforces CBMC to conform to this. We have discussed adding a regression test pass for checking that at least our own regression tests conform to the spec. In a future PR.
f2a95f4 to
44879df
Compare
Codecov Report
@@ Coverage Diff @@
## develop #5222 +/- ##
========================================
Coverage 67.42% 67.42%
========================================
Files 1162 1162
Lines 95620 95620
========================================
Hits 64476 64476
Misses 31144 31144
Continue to review full report at Codecov.
|
|
Turning it off and turning it on again |
| The specification of the XML trace output can be found here: [XML | ||
| Specification](https://raw.githubusercontent.com/diffblue/cbmc/develop/doc/assets/xml_spec.tex) | ||
| and can be build by `pdflatex -shell-escape xml_spec.tex`. Alternatively, you | ||
| view it in Markdown [here](../../../assets/xml_spec). |
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 link doesn't seem to work, I think you only need to go up two directories
| view it in Markdown [here](../../../assets/xml_spec). | |
| view it in Markdown [here](../../assets/xml_spec). |
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.
The link doesn’t work because it links to the develop documentation, which doesn’t have this yet I think.
chrisr-diffblue
left a comment
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 like a great improvement.
and a reference in the documentation.