BenchGen
BenchGen is a tool for generating benchmarks to stress-test a computing system.
|
#include "ast.h"
Functions | |
void | printIndentationSpaces (int indent) |
Prints a specified number of indentation spaces. | |
std::string | generateIfCondition (Generator &generator) |
Generates a condition string for an if statement. | |
std::string generateIfCondition | ( | Generator & | generator | ) |
Generates a condition string for an if statement.
Generates a condition based on the generator's current context, either returning a random condition or a condition based on PATH variables.
generator | The generator object used to track the current state of code generation. |
void printIndentationSpaces | ( | int | indent | ) |
Prints a specified number of indentation spaces.
Used for formatting output to visualize the structure of the AST.
indent | The number of spaces to print. |