| 445 | } |
| 446 | |
| 447 | bool |
| 448 | ArrayVariable::no_loop_initializer(void) const |
| 449 | { |
| 450 | // don't use loop initializer if we are doing test case reduction |
| 451 | // if (CGOptions::get_reducer()) return true; |
| 452 | // can not use loop initializer if either array member are structs, or they are constants, or it has > 1 initial values |
| 453 | return type->eType==eStruct || type->eType==eUnion || is_const() || is_global() || (init_values.size() > 0); |
| 454 | } |
| 455 | |
| 456 | // print the initializer recursively for multi-dimension arrays |
| 457 | // this is based on John's idea |
no test coverage detected