-
Notifications
You must be signed in to change notification settings - Fork 46
/
Copy pathdefault_weights.toml
65 lines (61 loc) · 1.51 KB
/
default_weights.toml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
# These are the default weights for each randomization pass for each compiler type.
# They can be overridden by settings.toml in the non-matching directory.
[base]
perm_temp_for_expr = 100
perm_expand_expr = 20
perm_reorder_stmts = 10
perm_reorder_decls = 10
perm_add_mask = 15
perm_xor_zero = 10
perm_cast_simple = 10
perm_refer_to_var = 10
perm_float_literal = 3
perm_randomize_internal_type = 10
perm_randomize_external_type = 5
perm_randomize_function_type = 5
perm_split_assignment = 10
perm_sameline = 3
perm_ins_block = 10
perm_struct_ref = 10
perm_empty_stmt = 10
perm_condition = 10
perm_mult_zero = 5
perm_factor_mult = 5
perm_factor_shift = 5
perm_dummy_comma_expr = 5
perm_add_self_assignment = 5
perm_commutative = 5
perm_add_sub = 5
perm_inequalities = 5
perm_compound_assignment = 5
perm_remove_ast = 5
perm_duplicate_assignment = 5
perm_chain_assignment = 5
perm_long_chain_assignment = 3
perm_pad_var_decl = 1
perm_inline = 10
[ido]
perm_float_literal = 10
perm_sameline = 10
perm_inline = 0
[mwcc]
perm_chain_assignment = 10
perm_compound_assignment = 0.5
perm_empty_stmt = 0.5
perm_struct_ref = 0.5
perm_sameline = 0.5
perm_xor_zero = 0.5
[gcc]
# The following passes were originally written with IDO in mind and are not beneficial for GCC
perm_add_mask = 0.5
perm_xor_zero = 0.5
perm_refer_to_var = 0.5
perm_float_literal = 0.5
perm_sameline = 0.5
perm_empty_stmt = 0.5
perm_condition = 0.5
perm_mult_zero = 0.5
perm_dummy_comma_expr = 0.5
perm_add_self_assignment = 0.5
perm_duplicate_assignment = 0.5
perm_pad_var_decl = 0.5