> compile NEMU
221220000 张三 Linux zzy 5.15.146.1-microsoft-standard-WSL2 #1 SMP Thu Jan 11 04:09:03 UTC 2024 x86_64 x86_64 x86_64 GNU/Linux 20:08:02 up 18:58, 1 user, load average: 0.25, 0.16, 0.12
This commit is contained in:
@ -56,13 +56,15 @@ static void _gen_rand_expr(int deepth) {
|
||||
return;
|
||||
}
|
||||
deepth -= 1;
|
||||
switch (choose(4)) {
|
||||
switch (choose(3)) {
|
||||
case 0: GEN_RAND(); break;
|
||||
case 1: GEN("("); _gen_rand_expr(deepth); GEN(")"); break;
|
||||
case 2: _gen_rand_expr(deepth); GEN_OP(); _gen_rand_expr(deepth); break;
|
||||
case 3: GEN(" ");
|
||||
default: assert(0);
|
||||
}
|
||||
for (int i = 0; i < choose(3); i ++) {
|
||||
GEN(" ");
|
||||
}
|
||||
}
|
||||
|
||||
static void gen_rand_expr() {
|
||||
|
Reference in New Issue
Block a user