* */
| 287 | * |
| 288 | */ |
| 289 | void |
| 290 | Block::Output(std::ostream &out, FactMgr* fm, int indent) const |
| 291 | { |
| 292 | output_tab(out, indent); |
| 293 | out << "{ "; |
| 294 | std::ostringstream ss; |
| 295 | ss << "block id: " << stm_id; |
| 296 | output_comment_line(out, ss.str()); |
| 297 | |
| 298 | if (CGOptions::depth_protect()) { |
| 299 | out << "DEPTH++;" << endl; |
| 300 | } |
| 301 | |
| 302 | indent++; |
| 303 | if (CGOptions::math_notmp()) |
| 304 | OutputTmpVariableList(out, indent); |
| 305 | |
| 306 | OutputVariableList(local_vars, out, indent); |
| 307 | OutputStatementList(stms, out, fm, indent); |
| 308 | |
| 309 | if (CGOptions::depth_protect()) { |
| 310 | out << "DEPTH--;" << endl; |
| 311 | } |
| 312 | indent--; |
| 313 | |
| 314 | output_tab(out, indent); |
| 315 | out << "}"; |
| 316 | outputln(out); |
| 317 | } |
| 318 | |
| 319 | /* find the last effective statement for this block, note |
| 320 | * a return statement terminates the block before reaching the |
no test coverage detected