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

Unable to perform FV when doing multiple coin.transfers in 1 function #1183

Open
EnoF opened this issue Apr 5, 2023 · 0 comments
Open

Unable to perform FV when doing multiple coin.transfers in 1 function #1183

EnoF opened this issue Apr 5, 2023 · 0 comments
Labels
FV Formal verification

Comments

@EnoF
Copy link

EnoF commented Apr 5, 2023

When attempting to FV on a function where multiple coin.transfer are executed, the FV model becomes so big that it practically hangs for ever.

(load "root/fungible-v2.pact")
(load "root/fungible-xchain-v1.pact")
(load "root/coin-v5.pact")

(module test GOVERNANCE
  (defcap GOVERNANCE() true)
  
  (use coin)

  (defun toobigmodel(x:decimal)
    @model
      [(property (> x 0.0))]
    (enforce (> x 0.0) "nope")
    (coin.transfer "alice" "bob" x)
    (coin.transfer "alice" "bob" x)
    (coin.transfer "alice" "bob" x)
    (coin.transfer "alice" "bob" x)
    (coin.transfer "alice" "bob" x)
    (coin.transfer "alice" "bob" x)
    (coin.transfer "alice" "bob" x)
    (coin.transfer "alice" "bob" x)
    (coin.transfer "alice" "bob" x)
    (coin.transfer "alice" "bob" x)
    (coin.transfer "alice" "bob" x)
    (coin.transfer "alice" "bob" x))
)

(verify "test")
@rsoeldner rsoeldner added the FV Formal verification label Apr 5, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
FV Formal verification
Projects
None yet
Development

No branches or pull requests

2 participants