This PR introduces the ability to specify a source file language in order to have language-specific functionality. The language is set with a flag, and defaults to C to allow currently existing uses of cbmc-viewer to continue functioning the same as before.
This PR additionally introduces language-specific regex patterns for pretty names in order to fix some issues with trace visualizations in Rust.
The two changes are coupled together in a single PR in order to discuss the design of the new Language class.
By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of your choice.
Issue #, if available:
Description of changes:
This PR introduces the ability to specify a source file language in order to have language-specific functionality. The language is set with a flag, and defaults to C to allow currently existing uses of cbmc-viewer to continue functioning the same as before.
This PR additionally introduces language-specific regex patterns for pretty names in order to fix some issues with trace visualizations in Rust.
The two changes are coupled together in a single PR in order to discuss the design of the new
Language
class.By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of your choice.