Questions tagged [control-structures]

A control structure is a statement that changes the control flow in a program, based on the evaluation of one or more conditions. Common examples include the 'if-then-else' statement, the 'case-switch' statement, 'for' loops, and 'while' loops.

41 questions
7
votes
2 answers

"Proceed if true" vs "stop if false" in if statements

While I was writing a private helper method in Java, I needed to add a check for a precondition that would cause the method to do nothing if not met. The last few lines of the method were just off the bottom of the editing area in the IDE, so in an…
0
votes
0 answers

Do mainstream definitions of basic blocks and extended basic blocks say anything about SKIP instructions?

Not many architectures have skip instructions today. They are (usually) conditional instructions that skip the following instruction. A few architectures having these: PIC14, with its btfss and btfsc instructions Most PDP's from DEC (perhaps most…
-5
votes
2 answers

what is a basic block called if it contains a branch instruction?

what is a basic block called if it contains a branch instruction? How about a block that does not contain a branch instruction? Thanks,