| 414 | } |
| 415 | |
| 416 | Constant* |
| 417 | Constant::make_random_nonzero(const Type* type) |
| 418 | { |
| 419 | string v = GenerateRandomConstant(type); |
| 420 | ERROR_GUARD(NULL); |
| 421 | while (StringUtils::str2int(v) == 0) { |
| 422 | v = GenerateRandomConstant(type); |
| 423 | } |
| 424 | return new Constant(type, v); |
| 425 | } |
| 426 | |
| 427 | /* |
| 428 | * Return a `Constant' representing the integer value `v'. Note that the |
nothing calls this directly
no test coverage detected