I need to draw an cause-effect-graph, I have read a lot about these graphs but still I am not able to draw one. I you could help me it would be perfect. Here is the description of program:
function foo() is checking the user inputted string and changing some chars,
1. if the char in string is '&' function will replace it with '&'
2. if the char in string is '<' function will replace it with '<'
3. if string does not contains any of these chars the string will be returned without changes.
Now I could not come with better solution as this: Assumptions:
- char is
'&' - char is
'<' - no char in string
Effects:
- char changed to
'&' - char changed to
'<' - string unchanged
Explicit join:
- 4 or 5
Could you guys confirm this solution?

