Branch testing with Chat GPT
You can use any other Chat Bot. If you do so, change the page title.
Task 1 (student 1)
Using a Chat Bot identify statementsbranches for the insertSort function. Assign a tag to for each identified statement.branch. Present the list of statements with tags. Write the prompt and the chatbot answer. Discuss the result.result
Doescompare it properly recognized thatwith the FORprevious instruction consistspage of 3the statements?
book.
Task 2 (student 2)
Using a Chat Bot generate the Control Flow Graph in the DOT language for the insertSort function. Do not forceLabel the Chatedges Bot to createof the instruction list. Write the prompt and the chatbot answer.CFG. Discuss the result.result
Doescompare the CFG haswith the same structure as the CFGgraph created by a humanhuman. in the previous section of the book?
When the Task 1 is finished, use the generated instruction list with tags as the hint for the Chat Bot. Did it help them co correct the CFG (now the CFG should be correct)? Discuss the result.
Task 3. (student 3)
Convince a Chat Bot to write ana instructionbranch test for the function insertSort in the C language. Write the prompt and the chatbot answer. Discuss the result, compare it with the code written by a human in the previous section of the book.