diff options
Diffstat (limited to 'sample/process_networks/processnet1.in')
| -rw-r--r-- | sample/process_networks/processnet1.in | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/sample/process_networks/processnet1.in b/sample/process_networks/processnet1.in new file mode 100644 index 0000000..c648650 --- /dev/null +++ b/sample/process_networks/processnet1.in @@ -0,0 +1,22 @@ +// Rules +dup(a1,a2) >< (int i):xs => a1~(i:xs1), a2~(i:xs2), dup(xs1,xs2)~xs; +dup(a1,a2) >< [] => a1~[], a2~[]; + +inc(r) >< (int i):xs => r~(i+1):w, inc(w)~xs; +inc(r) >< [] => r~[]; + + +// Nets +dup(r,w)~r1, inc(r1) ~ (0:w); + +// r,w << dup(r1), r1 << inc(0:w) + +// +-----+ +-----+ +---+ +// r ----| | r1 | | | | +// | dup |--->---| inc |---><---| 0 |----+ +// +---| | | | | | | +// | +-----+ +-----+ +---+ | +// | | +// +-----------------------------------------+ +// w +
\ No newline at end of file |
