-
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
7 changed files
with
1,849 additions
and
1 deletion.
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,52 @@ | ||
defproc test1(chan?(bool) in; chan!(int<1>) out) | ||
{ | ||
chp { | ||
*[ [#in]; out!int(in);in? ] | ||
} | ||
} | ||
|
||
defproc boolsrc(chan!(bool) X) | ||
{ | ||
chp { | ||
*[ X!true; X!false ] | ||
} | ||
} | ||
|
||
defproc intsrc(chan!(int<1>) X) | ||
{ | ||
chp { | ||
*[ X!0; X!1 ] | ||
} | ||
} | ||
|
||
defproc test2(chan?(int<1>) in; chan!(bool) out) | ||
{ | ||
chp { | ||
*[ [#in];out!bool(in);in? ] | ||
} | ||
} | ||
|
||
defproc boolsink(chan?(bool) W) | ||
{ | ||
bool x; | ||
|
||
chp { | ||
*[ W?x; log ("got bool: ", x) ] | ||
} | ||
} | ||
|
||
defproc intsink(chan?(int<1>) W) | ||
{ | ||
int<1> x; | ||
|
||
chp { | ||
*[ W?x; log ("got int: ", x) ] | ||
} | ||
} | ||
|
||
defproc test() | ||
{ | ||
boolsrc s; | ||
test1 t(s.X); | ||
intsink ix(t.out); | ||
} |
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,52 @@ | ||
defproc test1(chan?(bool) in; chan!(int<1>) out) | ||
{ | ||
chp { | ||
*[ [#in]; out!int(in);in? ] | ||
} | ||
} | ||
|
||
defproc boolsrc(chan!(bool) X) | ||
{ | ||
chp { | ||
*[ X!true; X!false ] | ||
} | ||
} | ||
|
||
defproc intsrc(chan!(int<1>) X) | ||
{ | ||
chp { | ||
*[ X!0; X!1 ] | ||
} | ||
} | ||
|
||
defproc test2(chan?(int<1>) in; chan!(bool) out) | ||
{ | ||
chp { | ||
*[ [#in];out!bool(in);in? ] | ||
} | ||
} | ||
|
||
defproc boolsink(chan?(bool) W) | ||
{ | ||
bool x; | ||
|
||
chp { | ||
*[ W?x; log ("got bool: ", x) ] | ||
} | ||
} | ||
|
||
defproc intsink(chan?(int<1>) W) | ||
{ | ||
int<1> x; | ||
|
||
chp { | ||
*[ W?x; log ("got int: ", x) ] | ||
} | ||
} | ||
|
||
defproc test() | ||
{ | ||
intsrc s; | ||
test2 t(s.X); | ||
boolsink ix(t.out); | ||
} |
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,3 @@ | ||
WARNING: intsink<>: substituting chp model (requested prs, not found) | ||
WARNING: test1<>: substituting chp model (requested prs, not found) | ||
WARNING: boolsrc<>: substituting chp model (requested prs, not found) |
Oops, something went wrong.