Skip to content
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 tutorial for adapting write_functional_smt2 #4884

Open
wants to merge 12 commits into
base: main
Choose a base branch
from

Conversation

KrystalDelusion
Copy link
Member

@KrystalDelusion KrystalDelusion commented Feb 7, 2025

Tutorial goes through smtlib.cc (write_functional_smt2) and smtlib_rosette.cc (write_functional_rosette), discussing what each section does and what changes were made for Rosette (and why). Mostly uses literalincludes of a diff file, making use of the diff pygments style to highlight the exact changes. A few code sections instead include a (very lightly) modified version of the raw diff, usually to reduce verbosity or because the raw diff skips lines.

Preview build.

Line breaks.
Put intro under sub-heading.
Can't take both [selection] and [filename] optional arguments.
Add a diff file and use it for showing changes from smtlib to rosette.
Also add relevant sections of diff to Sort and Struct sections.
Easier for comparisons, and the structure still works.  (I don't remember why I moved away from it in the first place.)
This time from the actual source, which apparently means changing all of the spaces for tabs.
- Fixing typo
- Reference `write_functional_rosette`
- Adjusting/fixing diff sections
- Comment on why the `code-block:: diff` isn't a `literalinclude`
@KrystalDelusion KrystalDelusion requested a review from aiju February 7, 2025 02:39
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant