Skip to content
This repository has been archived by the owner on May 3, 2024. It is now read-only.

Commit

Permalink
move validMetaLenInPath() to test file
Browse files Browse the repository at this point in the history
  • Loading branch information
mlimbeck committed Nov 22, 2023
1 parent c292a84 commit a68a3e7
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 7 deletions.
7 changes: 0 additions & 7 deletions pkg/slayers/path/scion/base_spec.gobra
Original file line number Diff line number Diff line change
Expand Up @@ -45,13 +45,6 @@ pred (b *Base) Mem() {
(0 < b.NumINF ==> 0 < b.NumHops)
}

ghost
ensures res
decreases
pure func validMetaLenInPath() (res bool) {
return MetaLen == path.MetaLen
}

ghost
decreases
pure func (b Base) ValidCurrInfSpec() bool {
Expand Down
11 changes: 11 additions & 0 deletions pkg/slayers/path/scion/base_spec_test.gobra
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,18 @@

package scion

import (
"github.com/scionproto/scion/pkg/slayers/path"
)

func canAllocateBase() {
b := &Base{}
fold b.Mem()
}

ghost
ensures res
decreases
pure func validMetaLenInPath() (res bool) {
return MetaLen == path.MetaLen
}

0 comments on commit a68a3e7

Please sign in to comment.