this is my code:

switch(a){

        case 1:
        case 2:
        case 3:
        case 4:
            printf("4\n");
            break;
        default:
            break;
    }

i need the nodes to make control flow graph for testing purposes.

Could you explain a bit more about what you need? It isn't enitrely clear what sort of help you are looking for.

It isn't enitrely clear what sort of help you are looking for.

Read: extremely vague.

actually, I want to do coverage testing

so I would define nodes in the code first

and then, from these nodes, I would define control flow graph

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.