Advertisement
cd62131

Flow Analysis

Mar 1st, 2017
291
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C 1.64 KB | None | 0 0
  1. /*
  2.   product dependency
  3. */
  4. product() {
  5.   lens();
  6. }
  7. lens() {
  8.   lcd();
  9.   removable_lcd();
  10. }
  11. lcd() {
  12.   memory();
  13. }
  14. removable_lcd() {
  15.   memory();
  16. }
  17. memory() {
  18.   mic();
  19. }
  20. mic() {
  21.   second_mic();
  22. }
  23. /*
  24. command line:
  25. cflow -T -r -m product product.c
  26. +-lcd() <lcd () at product.c:8>
  27.   \-lens() <lens () at product.c:4>
  28.     \-product() <product () at product.c:1>
  29. +-lens() <lens () at product.c:4>
  30.   \-product() <product () at product.c:1>
  31. +-memory() <memory () at product.c:14>
  32.   +-lcd() <lcd () at product.c:8>
  33.   | \-lens() <lens () at product.c:4>
  34.   |   \-product() <product () at product.c:1>
  35.   \-removable_lcd() <removable_lcd () at product.c:11>
  36.     \-lens() <lens () at product.c:4>
  37.       \-product() <product () at product.c:1>
  38. +-mic() <mic () at product.c:17>
  39.   \-memory() <memory () at product.c:14>
  40.     +-lcd() <lcd () at product.c:8>
  41.     | \-lens() <lens () at product.c:4>
  42.     |   \-product() <product () at product.c:1>
  43.     \-removable_lcd() <removable_lcd () at product.c:11>
  44.       \-lens() <lens () at product.c:4>
  45.         \-product() <product () at product.c:1>
  46. +-product() <product () at product.c:1>
  47. +-removable_lcd() <removable_lcd () at product.c:11>
  48.   \-lens() <lens () at product.c:4>
  49.     \-product() <product () at product.c:1>
  50. +-second_mic()
  51.   \-mic() <mic () at product.c:17>
  52.     \-memory() <memory () at product.c:14>
  53.       +-lcd() <lcd () at product.c:8>
  54.       | \-lens() <lens () at product.c:4>
  55.       |   \-product() <product () at product.c:1>
  56.       \-removable_lcd() <removable_lcd () at product.c:11>
  57.         \-lens() <lens () at product.c:4>
  58.           \-product() <product () at product.c:1>
  59. */
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement