ICT2201-P6-9 / air-manager

0 stars 0 forks source link

WBS 3.3.2 Generate Control Flow Graph & Complexity #68

Open JonTJT opened 1 year ago

JonTJT commented 1 year ago

To do:

JonTJT commented 1 year ago

Task update 26/11 1:27AM:

  1. Completed first draft for the control flow graph, had to make some changes to the pseudo code for the processStaffDashboard function

Task update 26/11 1:36AM:

  1. Counted the number of nodes and edges for the first draft of the CFG (35 nodes, 41 edges)
  2. Calculated cyclomatic complexity of the CFG to be 8. (41-35+2)

Task update 26/11 5:03PM:

  1. Changed the CFG based on the new updates to the pseudo code
  2. Recounted the number of nodes and edges for the new CFG (50 nodes, 57 edges)
  3. Recalculated cyclomatic complexity of the new CFG to be 9. (57-50+2)

Task update 26/11 18:15PM:

  1. Added an edge from node 11 to node 30 to reflect that current flight could be on monday, which will skip the switch statement
  2. Recounted the number of nodes and edges for the CFG (50 nodes, 58 edges)
  3. Recalculated cyclomatic complexity of the new CFG to be 10. (58-50+2)

Task update 26/11 18:25PM:

  1. Added an edge from node 48 to node 46 to reflect the for loop in the pseudo code.
  2. Recounted the number of nodes and edges for the CFG (50 nodes, 59 edges)
  3. Recalculated cyclomatic complexity of the new CFG to be 11. (59-50+2)
JonTJT commented 1 year ago

26/11 1:27AM: Attached first draft of the control flow graph for the processStaffDashboard function. Subject to changes.

26/11 5:07PM: Attached the CFG for the processStaffDashboard function.

26/11 6:16PM: Attached updated CFG with new edge for the processStaffDashboard function

26/11 6:26PM: Attached is the upated CFG with the new edge for the processStaffDashboard function

Image