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

FV: Direct verification failure indication #1297

Open
EnoF opened this issue Aug 31, 2023 · 0 comments
Open

FV: Direct verification failure indication #1297

EnoF opened this issue Aug 31, 2023 · 0 comments
Labels
enhancement FV Formal verification

Comments

@EnoF
Copy link

EnoF commented Aug 31, 2023

Is your enhancement request related to a problem? Please describe.

When a invalidating model has been found, we print the path it took to reach that invalidating model, but we do not have any reporting on which model property has been invalidated.

Describe the solution you'd like

When verifying this:

(module test G
  (defcap G() true)

  (defcap ONE (i:integer)
    (enforce (= i 1) "Needs 1")
  )

  (defun test(i:integer)
    @model [
      (property (= i 1))
    ]
    (require-capability (ONE i))
    i
  )
)

(verify 'test)

I'd like to see:

OutputFailure: Invalidating model found in test.test
  Program trace:
    entering function test.test with argument
      i = 0
    
      returning with 0
      
  Property (= i 1) has been invalidated
 
Load successful

Currently it reports this:

OutputFailure: Invalidating model found in test.test
  Program trace:
    entering function test.test with argument
      i = 0
    
      returning with 0
      
  
Load successful
@rsoeldner rsoeldner added enhancement FV Formal verification labels Aug 31, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement FV Formal verification
Projects
None yet
Development

No branches or pull requests

2 participants