-
Notifications
You must be signed in to change notification settings - Fork 7
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
4 changed files
with
38 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
defproc p1(chan(int<1>) A, B, D) | ||
{ | ||
chp { | ||
*[ A!,B!; D? ] | ||
} | ||
} | ||
|
||
defproc p2(chan(int<1>) A, B, D) | ||
{ | ||
chp { | ||
*[ A?,B?; D! ] | ||
} | ||
} | ||
|
||
defproc test() | ||
{ | ||
chan(int<1>) A, B, D; | ||
int i; | ||
|
||
chp { | ||
( i := 0; *[ i < 1000 -> A!,B!; D?; i := i + 1 ] ) | ||
|| | ||
*[ A?,B?; D! ] | ||
} | ||
/* | ||
p1 x(A,B,D); | ||
p2 y(A,B,D); | ||
*/ | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
WARNING: test<>: substituting chp model (requested prs, not found) |
Empty file.