Skip to content

Commit 1910fe4

Browse files
authored
Replace usages of priorities, require, and import (#3728)
Part of runtimeverification/k#4009 Replace usages of deprecated tokens: - `syntax priorities` with `syntax priority` - `require` with `requires` - `import` with `imports`
1 parent ac6908d commit 1910fe4

File tree

20 files changed

+30
-30
lines changed

20 files changed

+30
-30
lines changed

design-decisions/2020-02-06-One-Path-Deterministic.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@ lead to claims not being proved because the semantics has chosen the wrong path
5555
Given the following definition:
5656
```
5757
module PATH
58-
import DOMAINS
58+
imports DOMAINS
5959
syntax S ::= "a" | "b" | "c"
6060
6161
rule a => b
@@ -71,7 +71,7 @@ if the prover selects to advance the execution using the other rule.
7171
Given the following definition:
7272
```
7373
module PATH
74-
import DOMAINS
74+
imports DOMAINS
7575
syntax S ::= "a" | "b" | "c"
7676
syntax Cmd ::= "select"
7777

test/all-path/00-basic/01-one-rule/path.k

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
module PATH
2-
import BOOL
3-
import INT
2+
imports BOOL
3+
imports INT
44
syntax S ::= "a" | "b" | "c"
55

66
rule a => b

test/all-path/00-basic/02-cyclic-rule/path.k

+2-2
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,8 @@
55
*
66
*/
77
module PATH
8-
import BOOL
9-
import INT
8+
imports BOOL
9+
imports INT
1010
syntax S ::= "a" | "b" | "c"
1111

1212
rule a => a

test/all-path/00-basic/03-concurrent-rules/path.k

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
module PATH
2-
import BOOL
3-
import INT
2+
imports BOOL
3+
imports INT
44
syntax S ::= "a" | "b" | "c"
55

66
rule a => b

test/all-path/00-basic/04-different-length/path.k

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
module PATH
2-
import BOOL
2+
imports BOOL
33
syntax S ::= "a" | "b" | "c" | "d" | "e" | "f"
44

55
rule a => b

test/all-path/02-constructors/00-case-analysis/path.k

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
module PATH
2-
import BOOL
2+
imports BOOL
33
syntax S ::= "a" | "b" | "c"
44
syntax T ::= total(S) | partial(S) | "end"
55

test/all-path/03-unification/set-select/path.k

+3-3
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
module PATH
2-
import BOOL
3-
import INT
4-
import SET
2+
imports BOOL
3+
imports INT
4+
imports SET
55
syntax S ::= "a" | "b" | "c"
66
syntax Cmd ::= "select"
77

test/all-path/limitations/interfering-specs/path.k

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
module PATH
2-
import BOOL
2+
imports BOOL
33
syntax S ::= "a" | "b" | "c" | "d"
44

55
rule a => b

test/functions/functions.k

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
require "harness.k"
1+
requires "harness.k"
22

33
module FUNCTIONS
44

test/issue-1665/issue-1665-spec.k

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
requires "test.k"
22

33
module ISSUE-1665-SPEC
4-
import TEST
4+
imports TEST
55

66
// Proving this claim requires inferring that the left-hand side of an
77
// intermediate proof goal is defined.

test/issue-1665/test.k

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
module TEST-SYNTAX
2-
import INT
2+
imports INT
33

44
syntax Pgm ::= "begin" Int | "end" Int
55
syntax Int ::= fun(Int) [function, no-evaluators]
@@ -8,7 +8,7 @@ module TEST-SYNTAX
88
endmodule
99

1010
module TEST
11-
import TEST-SYNTAX
11+
imports TEST-SYNTAX
1212

1313
configuration <k> $PGM:Pgm </k>
1414

test/issue-2138/issue-2138-spec.k

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
requires "test.k"
22

33
module ISSUE-2138-SPEC
4-
import TEST
4+
imports TEST
55

66
claim
77
<k> #assert i ( 1 , 0 ) ==Int 0 => . </k>

test/itp-nth-ancestor/chain.k

+1-1
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
https://github.com/runtimeverification/casper-proofs/blob/master/Core/AccountableSafety.v
44
*/
55

6-
require "proof-script.k"
6+
requires "proof-script.k"
77

88
module CHAIN-SYNTAX
99

test/itp-nth-ancestor/nth1-spec.k

+1-1
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@
2323
by apply/connect1.
2424
*/
2525

26-
require "chain.k"
26+
requires "chain.k"
2727

2828
// base case
2929
module NTH1-SPEC

test/itp-nth-ancestor/nth2-spec.k

+1-1
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@
2323
by apply/connect1.
2424
*/
2525

26-
require "chain.k"
26+
requires "chain.k"
2727

2828
// inductive case
2929
module NTH2-SPEC

test/k-equal/test-k-equal.k

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
require "domains.md"
1+
requires "domains.md"
22

33
module TEST-K-EQUAL
44
imports BOOL

test/lib/adomains.k

+3-3
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
require "domains.md"
1+
requires "domains.md"
22

33
module ABOOL-SYNTAX
44
syntax ABool ::= "Zero" | "One"
@@ -10,8 +10,8 @@ module AINT-SYNTAX
1010
endmodule
1111

1212
module AINT
13-
import AINT-SYNTAX
14-
import ABOOL-SYNTAX
13+
imports AINT-SYNTAX
14+
imports ABOOL-SYNTAX
1515

1616
syntax AInt
1717
::= AInt "+AInt" AInt [function]

test/lib/astate.k

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
require "adomains.k"
2-
require "state.k"
1+
requires "adomains.k"
2+
requires "state.k"
33

44
module ASTATE
55
imports STATE-BASIC

test/overloads/simple-lists/simple-lists.k

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
module SIMPLE-LISTS
2-
import BOOL
2+
imports BOOL
33
syntax EmptyStmt
44
// ----------------
55

test/save-proofs/test-2-spec.k

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
// Two claims, the first one should fail, but is loaded from the saved claims
22
// for first.k, which allows the entire spec to pass.
33

4-
require "save-proofs.k"
4+
requires "save-proofs.k"
55

66
module TEST-2-SPEC
77
imports SAVE-PROOFS

0 commit comments

Comments
 (0)