Skip to content

Print final register and memory states#96

Open
s-prism wants to merge 13 commits intomainfrom
x86-print-final-states
Open

Print final register and memory states#96
s-prism wants to merge 13 commits intomainfrom
x86-print-final-states

Conversation

@s-prism
Copy link
Copy Markdown
Collaborator

@s-prism s-prism commented Mar 27, 2026

  • Can now pass the print-final-states flag on the command line
  • If this flag is passed, prints all possible final states of the register and memory locations that the test is concerned with. Also print relevant statistics that mcompare wants.
    • Currently, arm register names start with 'R' and not 'X' or 'W'. This won't match other litmus testing tools.
  • Example structure of what we print:
    Test MP Allowed
    States 3
    1:rax=0; 1:rbx=0;
    1:rax=0; 1:rbx=1;
    1:rax=1; 1:rbx=1;
    No (allowed not found)
    Observation MP Never 0 3

Comment thread cli/lib/litmus/runner.ml Outdated
Comment thread cli/bin/main.ml Outdated
Comment thread cli/lib/litmus/runner.ml Outdated
Comment thread cli/lib/litmus/runner.ml Outdated
Comment thread cli/lib/litmus/runner.ml Outdated
Comment thread .gitignore
Comment thread cli/lib/litmus/runner.ml Outdated
@s-prism s-prism force-pushed the x86-print-final-states branch from be15e47 to a7e0546 Compare April 1, 2026 15:30
@s-prism s-prism changed the title Print final register states, and in progress for memory states Print final register and memory states Apr 1, 2026
@s-prism s-prism marked this pull request as ready for review April 2, 2026 22:22
Copy link
Copy Markdown
Collaborator

@tperami tperami left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Sorry I forgot to click "Submit review"

Comment thread cli/bin/main.ml
Comment thread cli/bin/main.ml Outdated
Comment thread cli/bin/main.ml Outdated
Comment thread cli/bin/main.ml Outdated
Comment thread cli/lib/litmus/testrepr.ml Outdated
Comment thread cli/lib/litmus/runner.ml Outdated
Comment thread cli/lib/litmus/runner.ml Outdated
Comment thread cli/lib/litmus/runner.ml Outdated
@tperami
Copy link
Copy Markdown
Collaborator

tperami commented Apr 3, 2026

Also waiting on #102

@s-prism s-prism force-pushed the x86-print-final-states branch from a7e0546 to fd886c0 Compare April 3, 2026 20:19
@s-prism s-prism force-pushed the x86-print-final-states branch from 309e179 to 1e12b40 Compare April 8, 2026 12:47
Comment thread cli/lib/litmus/minState.ml Outdated
Comment thread cli/lib/litmus/minState.ml Outdated
Comment thread cli/tests/unit/litmus/testrepr_test.ml Outdated
Comment thread cli/lib/litmus/minState.ml
Comment thread cli/lib/litmus/minState.ml Outdated
Comment thread cli/lib/litmus/runner.ml Outdated
Comment thread cli/lib/litmus/runner.ml Outdated
Comment thread cli/lib/litmus/minState.ml Outdated
Comment thread cli/lib/litmus/runner.ml Outdated
Comment thread cli/lib/litmus/runner.ml Outdated
@s-prism s-prism force-pushed the x86-print-final-states branch from 076c39d to a813bee Compare April 10, 2026 10:16
@s-prism s-prism force-pushed the x86-print-final-states branch from 6d146b8 to 87cd22c Compare April 10, 2026 16:19
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.

3 participants