| 292 | } |
| 293 | |
| 294 | size_t getElementsVectorLength( |
| 295 | const VectorFuzzer::Options& opts, |
| 296 | vector_size_t size) { |
| 297 | if (opts.containerVariableLength == false && |
| 298 | size * opts.containerLength > opts.complexElementsMaxSize) { |
| 299 | BOLT_USER_FAIL( |
| 300 | "Requested fixed opts.containerVariableLength can't be satisfied: " |
| 301 | "increase opts.complexElementsMaxSize, reduce opts.containerLength" |
| 302 | " or make opts.containerVariableLength=true"); |
| 303 | } |
| 304 | return std::min(size * opts.containerLength, opts.complexElementsMaxSize); |
| 305 | } |
| 306 | |
| 307 | int64_t randShortDecimal(const TypePtr& type, FuzzerGenerator& rng) { |
| 308 | auto precision = type->asShortDecimal().precision(); |
no test coverage detected