Skip to content

[herd] Allow checking of PC in postcondition#1636

Open
diaolo01 wants to merge 1 commit intoherd:masterfrom
diaolo01:pc
Open

[herd] Allow checking of PC in postcondition#1636
diaolo01 wants to merge 1 commit intoherd:masterfrom
diaolo01:pc

Conversation

@diaolo01
Copy link
Contributor

@diaolo01 diaolo01 commented Dec 15, 2025

Can be used to check the following properties:

  • code finalised correctly: END_P#
  • code finalised in the fault handler: FH_END_P#
  • code finalised in an infinite loop: loop label

@diaolo01 diaolo01 force-pushed the pc branch 2 times, most recently from 6b1bb81 to d5ac45c Compare December 16, 2025 13:43
@diaolo01
Copy link
Contributor Author

Update: I reintroduced the cutoff monad and managed to recover final state, including the PC, before herd exists. I found that running herd with -variant cutoff returns a final state such that the PC/registers can be inspected where the code stopped.

Copy link
Collaborator

@HadrienRenaud HadrienRenaud left a comment

Choose a reason for hiding this comment

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

Looks good!

Can be used to check the following properties:
- code finalsied correctly: END_P#
- code finalised in the fault ahndler: FH_END_P#
- code finalised in an infinite loop: loop label
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.

2 participants