Skip to content

Commit

Permalink
add syntax highlighting
Browse files Browse the repository at this point in the history
  • Loading branch information
konnov committed Jul 27, 2024
1 parent c07f3ea commit 82578a7
Show file tree
Hide file tree
Showing 17 changed files with 41 additions and 15 deletions.
3 changes: 2 additions & 1 deletion spec/protocol-spec/experiments/n6f1b0.qnt
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
// -*- mode: Bluespec; -*-
// A specification instance for n=6, f=1, and no Byzantine faults
module n6f1b0 {
import replica(
Expand All @@ -11,4 +12,4 @@ module n6f1b0 {
VALID_BLOCKS = Set("val_b0", "val_b1"),
INVALID_BLOCKS = Set("inv_b3")
).* from "../replica"
}
}
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
// -*- mode: Bluespec; -*-
// A specification instance for n=6, f=1, and 1 Byzantine fault
//
// Due to import/export limitations of Quint, use the definitions starting with g_:
Expand Down Expand Up @@ -38,4 +39,4 @@ module n6f1b1_two_blocks {

]
).* from "../guided_replica"
}
}
3 changes: 2 additions & 1 deletion spec/protocol-spec/experiments/n6f1b1.qnt
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
// -*- mode: Bluespec; -*-
// A specification instance for n=6, f=1, and 1 Byzantine fault
module n6f1b1 {
import replica(
Expand All @@ -11,4 +12,4 @@ module n6f1b1 {
VALID_BLOCKS = Set("val_b0", "val_b1"),
INVALID_BLOCKS = Set("inv_b3")
).* from "../replica"
}
}
4 changes: 3 additions & 1 deletion spec/protocol-spec/experiments/n6f1b1_guided_dead_lock.qnt
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
// -*- mode: Bluespec; -*-
//
// A specification instance for n=6, f=1, and 1 Byzantine fault
//
/// Test a liveness issue where some validators have the HighQC but don't have the block payload and have to wait for it,
Expand Down Expand Up @@ -42,4 +44,4 @@ module n6f1b1_two_blocks {
OnProposalStep("n1"), OnProposalStep("n2"), OnProposalStep("n3"), OnProposalStep("n4"), OnProposalStep("n5"),
]
).* from "../guided_replica"
}
}
4 changes: 3 additions & 1 deletion spec/protocol-spec/experiments/n6f1b1_guided_two_blocks.qnt
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
// -*- mode: Bluespec; -*-
//
// A specification instance for n=6, f=1, and 1 Byzantine fault
//
// Due to import/export limitations of Quint, use the definitions starting with g_:
Expand Down Expand Up @@ -29,4 +31,4 @@ module n6f1b1_two_blocks {
OnCommitStep("n0"), OnCommitStep("n0"), OnCommitStep("n0"), OnCommitStep("n0"), OnCommitStep("n0"),
]
).* from "../guided_replica"
}
}
4 changes: 3 additions & 1 deletion spec/protocol-spec/experiments/n6f1b2.qnt
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
// -*- mode: Bluespec; -*-
//
// A specification instance for n=6, f=1, and 2 Byzantine faults
module n6f1b2 {
import replica(
Expand All @@ -11,4 +13,4 @@ module n6f1b2 {
VALID_BLOCKS = Set("val_b0", "val_b1"),
INVALID_BLOCKS = Set("inv_b3")
).* from "../replica"
}
}
4 changes: 3 additions & 1 deletion spec/protocol-spec/experiments/n6f1b2_boxed.qnt
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
// -*- mode: Bluespec; -*-
//
// A specification instance for n=6, f=1, and 2 Byzantine faults.
// We box the number of different steps.
module n6f1b2_boxed {
Expand Down Expand Up @@ -137,4 +139,4 @@ module n6f1b2_boxed {
}
}
}
}
}
4 changes: 3 additions & 1 deletion spec/protocol-spec/experiments/n6f1b2_guided_agreement.qnt
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
// -*- mode: Bluespec; -*-
//
// A specification instance for n=6, f=1, and 2 Byzantine faults
//
// Due to import/export limitations of Quint, use the definitions starting with g_:
Expand Down Expand Up @@ -32,4 +34,4 @@ module n6f1b2_agreement {
OnCommitStep("n3"), OnCommitStep("n3"), OnCommitStep("n3"), OnCommitStep("n3"), OnCommitStep("n3"),
]
).* from "../guided_replica"
}
}
4 changes: 3 additions & 1 deletion spec/protocol-spec/experiments/n6f1b3.qnt
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
// -*- mode: Bluespec; -*-
//
// A specification instance for n=6, f=1, and 3 Byzantine faults
module n6f1b0 {
import replica(
Expand All @@ -11,4 +13,4 @@ module n6f1b0 {
VALID_BLOCKS = Set("val_b0", "val_b1"),
INVALID_BLOCKS = Set("inv_b3")
).* from "../replica"
}
}
2 changes: 2 additions & 0 deletions spec/protocol-spec/experiments/n7f1b0.qnt
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
// -*- mode: Bluespec; -*-
//
// A specification instance for n=6, f=1, and no Byzantine faults
module n7f1b0 {
import replica(
Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
// -*- mode: Bluespec; -*-
//
// A specification instance for n=7, f=1, and 0 byzantine nodes.
//
// Due to import/export limitations of Quint, use the definitions starting with g_:
Expand Down Expand Up @@ -63,4 +65,4 @@ module n6f1b1_two_blocks {
OnCommitStep("n0"), OnCommitStep("n0"), OnCommitStep("n0"), OnCommitStep("n0"), OnCommitStep("n0"), OnCommitStep("n0"),
]
).* from "../guided_replica"
}
}
2 changes: 2 additions & 0 deletions spec/protocol-spec/experiments/n7f1b1.qnt
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
// -*- mode: Bluespec; -*-
//
// A specification instance for n=6, f=1, and no Byzantine faults
module n7f1b1 {
import replica(
Expand Down
3 changes: 2 additions & 1 deletion spec/protocol-spec/guided_replica.qnt
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
// -*- mode: Bluespec; -*-
// A restriction of replica.qnt to guide the model checker's search
module guided_replica {
import types.* from "./types"
Expand Down Expand Up @@ -139,4 +140,4 @@ module guided_replica {
}
}
}
}
}
3 changes: 2 additions & 1 deletion spec/protocol-spec/main.qnt
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
// -*- mode: Bluespec; -*-
/// A few handy small models that are good for debugging and inspection
module main {
// A specification instance for n=6, f=1, and 1 Byzantine fault
Expand All @@ -12,4 +13,4 @@ module main {
VALID_BLOCKS = Set("val_b0", "val_b1"),
INVALID_BLOCKS = Set("inv_b3")
) .* from "./replica"
}
}
3 changes: 2 additions & 1 deletion spec/protocol-spec/state_monitor.qnt
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
// -*- mode: Bluespec; -*-
// A state monitor that allows us to compare new state against the old states.
// For example, we compare phase transitions.
// To do so, we save the old replica states in old_replica_state.
Expand Down Expand Up @@ -55,4 +56,4 @@ module state_monitor {

i::CORRECT.forall(id => for_replica(id))
}
}
}
3 changes: 2 additions & 1 deletion spec/protocol-spec/twins_n6f1b1.qnt
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
// -*- mode: Bluespec; -*-
// This is an explorative module applying the Twins approach
// to model byzantine behaviour with 1 faulty replicas and 5 correct replicas.
module twins {
Expand Down Expand Up @@ -31,4 +32,4 @@ module twins {


action step = i::correct_step
}
}
3 changes: 2 additions & 1 deletion spec/protocol-spec/twins_n6f1b2.qnt
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
// -*- mode: Bluespec; -*-
// This is an explorative module applying the Twins approach
// to model byzantine behaviour with 2 faulty replicas and 4 correct replicas.
module twins {
Expand Down Expand Up @@ -31,4 +32,4 @@ module twins {


action step = i::correct_step
}
}

0 comments on commit 82578a7

Please sign in to comment.