diff options
author | Ian Johnson <ian.johnson@appliedlanguage.com> | 2013-05-30 20:21:30 +0400 |
---|---|---|
committer | Ian Johnson <ian.johnson@appliedlanguage.com> | 2013-06-03 16:37:26 +0400 |
commit | ca1f050048d296e39bec6e465c83dfda818a9e3f (patch) | |
tree | b3174b21c2d88124a9054ee47df1a75990b39feb /examples | |
parent | 5d7d222f39875c2247e799fb06a6693ce7ed5463 (diff) |
Instrumentation in resolver
Diffstat (limited to 'examples')
-rw-r--r-- | examples/debug_stubbing/sequential_component.pcl | 4 | ||||
-rw-r--r-- | examples/debug_stubbing/stub_components.pcl | 10 |
2 files changed, 8 insertions, 6 deletions
diff --git a/examples/debug_stubbing/sequential_component.pcl b/examples/debug_stubbing/sequential_component.pcl index 95b8238..39cc17f 100644 --- a/examples/debug_stubbing/sequential_component.pcl +++ b/examples/debug_stubbing/sequential_component.pcl @@ -17,7 +17,7 @@ # along with Pipeline Creation Language (PCL). If not, see <http://www.gnu.org/licenses/>. # component sequential_component - inputs a, b + inputs a output c, d as - wire a -> _, b -> _, True -> c, False -> d + wire a -> _, True -> c, False -> d diff --git a/examples/debug_stubbing/stub_components.pcl b/examples/debug_stubbing/stub_components.pcl index 3900da9..eda8f9e 100644 --- a/examples/debug_stubbing/stub_components.pcl +++ b/examples/debug_stubbing/stub_components.pcl @@ -19,17 +19,19 @@ import parallel_component as parallel import sequential_component as sequential -component stub_component +component stub_components inputs a - output a, seq_c, seq_d, para_e, para_f, para_h, para_h + output a, seq_c, seq_d, para_e, para_f, para_g, para_h declare para := new parallel seq := new sequential as wire a -> a &&& - ((wire a -> a, a -> b >>> seq) &&& + (seq &&& (split >>> wire (a -> a, a -> b), (a -> c, a -> d) >>> para >>> merge top[e] -> para_e, top[f] -> para_f, - bottom[g] -> para_g, bottom[h] -> para_h)) >>> + bottom[g] -> para_g, bottom[h] -> para_h) >>> + merge top[c] -> seq_c, top[d] -> seq_d, + bottom[para_e] -> para_e, bottom[para_f] -> para_f, bottom[para_g] -> para_g, bottom[para_h] -> para_h) >>> merge top[a] -> a, bottom[seq_c] -> seq_c, bottom[seq_d] -> seq_d, bottom[para_e] -> para_e, bottom[para_f] -> para_f, bottom[para_g] -> para_g, bottom[para_h] -> para_h |