-------------------------------------------------------------- * Sometimes we need to generate constants outside of any current function, * e.g., initializers for global variables */
| 397 | * e.g., initializers for global variables |
| 398 | */ |
| 399 | Constant * |
| 400 | Constant::make_random(const Type* type) |
| 401 | { |
| 402 | string v = GenerateRandomConstant(type); |
| 403 | ERROR_GUARD(NULL); |
| 404 | return new Constant(type, v); |
| 405 | } |
| 406 | |
| 407 | Constant * |
| 408 | Constant::make_random_upto(unsigned int limit) |
nothing calls this directly
no test coverage detected