File size: 13,542 Bytes
6baed57
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
[info] Using config /libxml2/mull.yml
[debug] Diagnostics: Debug Mode enabled. Debug-level messages will be printed.
[warning] Could not find dynamic library: libm.so.6
[warning] Could not find dynamic library: libc.so.6
[info] Warm up run (threads: 1)

       [################################] 1/1. Finished in 108ms
[info] Extracting coverage information (threads: 1)

       [################################] 1/1. Finished in 3ms
[info] Filter mutants (threads: 1)

       [################################] 1/1. Finished in 1ms
[info] Baseline run (threads: 1)

       [################################] 1/1. Finished in 106ms
[info] Running mutants (threads: 20)
[debug] /libxml2/HTMLtree.c:148:13 ExecutionResult: Failed
[debug] /libxml2/HTMLtree.c:140:9 ExecutionResult: Passed
[debug] /libxml2/HTMLtree.c:199:23 ExecutionResult: Passed

       [#-------------------------------] 3/86
[debug] /libxml2/HTMLtree.c:188:34 ExecutionResult: Passed
[debug] /libxml2/HTMLtree.c:208:23 ExecutionResult: Passed

       [#-------------------------------] 5/86
[debug] /libxml2/HTMLtree.c:789:20 ExecutionResult: Passed
[debug] /libxml2/HTMLtree.c:787:15 ExecutionResult: Passed

       [##------------------------------] 7/86
[debug] /libxml2/HTMLtree.c:720:61 ExecutionResult: Failed
[debug] /libxml2/HTMLtree.c:795:43 ExecutionResult: Failed
[debug] /libxml2/HTMLtree.c:1070:19 ExecutionResult: Passed
[debug] /libxml2/HTMLtree.c:770:5 ExecutionResult: Failed
[debug] /libxml2/HTMLtree.c:726:13 ExecutionResult: Failed
[debug] /libxml2/HTMLtree.c:728:31 ExecutionResult: Passed

       [####----------------------------] 13/86
[debug] /libxml2/HTMLtree.c:805:21 ExecutionResult: Failed
[debug] /libxml2/HTMLtree.c:178:53 ExecutionResult: Failed
[debug] /libxml2/HTMLtree.c:709:13 ExecutionResult: Passed
[debug] /libxml2/HTMLtree.c:747:22 ExecutionResult: Failed

       [######--------------------------] 17/86
[debug] /libxml2/HTMLtree.c:1094:30 ExecutionResult: Failed

       [######--------------------------] 18/86
[debug] /libxml2/HTMLtree.c:148:59 ExecutionResult: Failed
[debug] /libxml2/HTMLtree.c:199:23 ExecutionResult: Passed
[debug] /libxml2/HTMLtree.c:142:9 ExecutionResult: Failed
[debug] /libxml2/HTMLtree.c:195:16 ExecutionResult: Passed
[debug] /libxml2/HTMLtree.c:209:24 ExecutionResult: Passed
[debug] /libxml2/HTMLtree.c:720:19 ExecutionResult: Failed

       [########------------------------] 24/86
[debug] /libxml2/HTMLtree.c:841:14 ExecutionResult: Failed

       [#########-----------------------] 25/86
[debug] /libxml2/HTMLtree.c:790:20 ExecutionResult: Passed
[debug] /libxml2/HTMLtree.c:787:26 ExecutionResult: Passed
[debug] /libxml2/HTMLtree.c:728:31 ExecutionResult: Failed

       [##########----------------------] 28/86
[debug] /libxml2/HTMLtree.c:796:29 ExecutionResult: Failed
[debug] /libxml2/HTMLtree.c:1076:28 ExecutionResult: Failed

       [###########---------------------] 30/86
[debug] /libxml2/HTMLtree.c:777:24 ExecutionResult: Failed
[debug] /libxml2/HTMLtree.c:816:9 ExecutionResult: Failed
[debug] /libxml2/HTMLtree.c:709:13 ExecutionResult: Passed
[debug] /libxml2/HTMLtree.c:182:14 ExecutionResult: Failed
[debug] /libxml2/HTMLtree.c:750:9 ExecutionResult: Failed

       [#############-------------------] 35/86
[debug] /libxml2/HTMLtree.c:1098:17 ExecutionResult: Failed
[debug] /libxml2/HTMLtree.c:726:43 ExecutionResult: Failed
[debug] /libxml2/HTMLtree.c:195:23 ExecutionResult: Passed

       [##############------------------] 38/86
[debug] /libxml2/HTMLtree.c:149:31 ExecutionResult: Failed
[debug] /libxml2/HTMLtree.c:142:52 ExecutionResult: Failed
[debug] /libxml2/HTMLtree.c:365:14 ExecutionResult: Passed
[debug] /libxml2/HTMLtree.c:720:33 ExecutionResult: Failed
[debug] /libxml2/HTMLtree.c:202:21 ExecutionResult: Passed

       [################----------------] 43/86
[debug] /libxml2/HTMLtree.c:841:31 ExecutionResult: Failed

       [################----------------] 44/86
[debug] /libxml2/HTMLtree.c:791:20 ExecutionResult: Passed
[debug] /libxml2/HTMLtree.c:787:51 ExecutionResult: Passed
[debug] /libxml2/HTMLtree.c:734:19 ExecutionResult: Failed

       [#################---------------] 47/86
[debug] /libxml2/HTMLtree.c:799:29 ExecutionResult: Failed
[debug] /libxml2/HTMLtree.c:1077:28 ExecutionResult: Failed
[debug] /libxml2/HTMLtree.c:718:13 ExecutionResult: Passed
[debug] /libxml2/HTMLtree.c:777:38 ExecutionResult: Failed

       [##################--------------] 51/86
[debug] /libxml2/HTMLtree.c:837:9 ExecutionResult: Failed
[debug] /libxml2/HTMLtree.c:185:25 ExecutionResult: Passed
[debug] /libxml2/HTMLtree.c:764:5 ExecutionResult: Failed

       [####################------------] 54/86
[debug] /libxml2/HTMLtree.c:1099:17 ExecutionResult: Failed

       [####################------------] 55/86
[debug] /libxml2/HTMLtree.c:196:16 ExecutionResult: Passed
[debug] /libxml2/HTMLtree.c:177:21 ExecutionResult: Failed

       [#####################-----------] 57/86
[debug] /libxml2/HTMLtree.c:145:40 ExecutionResult: Failed
[debug] /libxml2/HTMLtree.c:388:21 ExecutionResult: Passed
[debug] /libxml2/HTMLtree.c:720:33 ExecutionResult: Passed
[debug] /libxml2/HTMLtree.c:202:21 ExecutionResult: Passed

       [######################----------] 61/86
[debug] /libxml2/HTMLtree.c:792:21 ExecutionResult: Passed

       [#######################---------] 62/86
[debug] /libxml2/HTMLtree.c:788:34 ExecutionResult: Passed
[debug] /libxml2/HTMLtree.c:742:22 ExecutionResult: Failed
[debug] /libxml2/HTMLtree.c:803:21 ExecutionResult: Failed
[debug] /libxml2/HTMLtree.c:1093:17 ExecutionResult: Failed
[debug] /libxml2/HTMLtree.c:720:19 ExecutionResult: Passed

       [########################--------] 67/86
[debug] /libxml2/HTMLtree.c:781:9 ExecutionResult: Failed
[debug] /libxml2/HTMLtree.c:839:5 ExecutionResult: Passed

       [#########################-------] 69/86
[debug] /libxml2/HTMLtree.c:186:31 ExecutionResult: Passed

       [##########################------] 70/86
[debug] /libxml2/HTMLtree.c:728:16 ExecutionResult: Failed

       [##########################------] 71/86
[debug] /libxml2/HTMLtree.c:197:16 ExecutionResult: Passed
[debug] /libxml2/HTMLtree.c:146:22 ExecutionResult: Failed
[debug] /libxml2/HTMLtree.c:178:10 ExecutionResult: Failed
[debug] /libxml2/HTMLtree.c:207:25 ExecutionResult: Passed

       [###########################-----] 75/86
[debug] /libxml2/HTMLtree.c:435:13 ExecutionResult: Passed
[debug] /libxml2/HTMLtree.c:1063:21 ExecutionResult: Failed

       [############################----] 77/86
[debug] /libxml2/HTMLtree.c:1111:25 ExecutionResult: Passed
[debug] /libxml2/HTMLtree.c:720:47 ExecutionResult: Failed

       [#############################---] 79/86
[debug] /libxml2/HTMLtree.c:766:18 ExecutionResult: Failed

       [#############################---] 80/86
[debug] /libxml2/HTMLtree.c:187:31 ExecutionResult: Passed

       [##############################--] 81/86
[debug] /libxml2/HTMLtree.c:728:16 ExecutionResult: Passed

       [##############################--] 82/86
[debug] /libxml2/HTMLtree.c:1065:27 ExecutionResult: Failed

       [##############################--] 83/86
[debug] /libxml2/HTMLtree.c:722:15 ExecutionResult: Timedout

       [###############################-] 84/86
[debug] /libxml2/HTMLtree.c:725:17 ExecutionResult: Passed

       [###############################-] 85/86
[debug] /libxml2/HTMLtree.c:725:17 ExecutionResult: Failed

       [################################] 86/86. Finished in 2703ms
[debug] Done running mutants
[info] Survived mutants (38/86):
/libxml2/HTMLtree.c:140:9: warning: Survived: Replaced 'T a = b' with 'T a = 42' [cxx_init_const]
    int isContentType = 0;
        ^
/libxml2/HTMLtree.c:185:25: warning: Survived: Replaced != with == [cxx_ne_to_eq]
    if ((attr->children != NULL) &&
                        ^
/libxml2/HTMLtree.c:186:31: warning: Survived: Replaced == with != [cxx_eq_to_ne]
        (attr->children->type == XML_TEXT_NODE) &&
                              ^
/libxml2/HTMLtree.c:187:31: warning: Survived: Replaced == with != [cxx_eq_to_ne]
        (attr->children->next == NULL) &&
                              ^
/libxml2/HTMLtree.c:188:34: warning: Survived: Replaced != with == [cxx_ne_to_eq]
        (attr->children->content != NULL))
                                 ^
/libxml2/HTMLtree.c:195:16: warning: Survived: Replaced 'T a = b' with 'T a = 42' [cxx_init_const]
        size_t size = strlen((char *) val);
               ^
/libxml2/HTMLtree.c:195:23: warning: Survived: Replaced call to a function with 42 [cxx_replace_scalar_call]
        size_t size = strlen((char *) val);
                      ^
/libxml2/HTMLtree.c:196:16: warning: Survived: Replaced 'T a = b' with 'T a = 42' [cxx_init_const]
        size_t start = 0;
               ^
/libxml2/HTMLtree.c:197:16: warning: Survived: Replaced 'T a = b' with 'T a = 42' [cxx_init_const]
        size_t end = size;
               ^
/libxml2/HTMLtree.c:199:23: warning: Survived: Replaced < with >= [cxx_lt_to_ge]
        while ((start < size) && (IS_WS_HTML(val[start])))
                      ^
/libxml2/HTMLtree.c:199:23: warning: Survived: Replaced < with <= [cxx_lt_to_le]
        while ((start < size) && (IS_WS_HTML(val[start])))
                      ^
/libxml2/HTMLtree.c:202:21: warning: Survived: Replaced > with >= [cxx_gt_to_ge]
        while ((end > 0) && (IS_WS_HTML(val[end-1])))
                    ^
/libxml2/HTMLtree.c:202:21: warning: Survived: Replaced > with <= [cxx_gt_to_le]
        while ((end > 0) && (IS_WS_HTML(val[end-1])))
                    ^
/libxml2/HTMLtree.c:207:25: warning: Survived: Replaced 'a = b' with 'a = 42' [cxx_assign_const]
        menc->off.start = start;
                        ^
/libxml2/HTMLtree.c:208:23: warning: Survived: Replaced 'a = b' with 'a = 42' [cxx_assign_const]
        menc->off.end = end;
                      ^
/libxml2/HTMLtree.c:209:24: warning: Survived: Replaced 'a = b' with 'a = 42' [cxx_assign_const]
        menc->off.size = size;
                       ^
/libxml2/HTMLtree.c:365:14: warning: Survived: Replaced == with != [cxx_eq_to_ne]
    if (name == NULL)
             ^
/libxml2/HTMLtree.c:388:21: warning: Survived: Replaced | with & [cxx_or_to_and]
    switch (name[0] | 0x20) {
                    ^
/libxml2/HTMLtree.c:435:13: warning: Survived: Replaced == with != [cxx_eq_to_ne]
    if (str == NULL)
            ^
/libxml2/HTMLtree.c:709:13: warning: Survived: Replaced > with >= [cxx_gt_to_ge]
    if (tmp > content) {
            ^
/libxml2/HTMLtree.c:709:13: warning: Survived: Replaced > with <= [cxx_gt_to_le]
    if (tmp > content) {
            ^
/libxml2/HTMLtree.c:718:13: warning: Survived: Replaced 'T a = b' with 'T a = 42' [cxx_init_const]
        int c = *tmp;
            ^
/libxml2/HTMLtree.c:720:19: warning: Survived: Replaced > with >= [cxx_gt_to_ge]
        while ((c > 0x20) && (c < 0x7F) && (c != '"') && (c != '&')) {
                  ^
/libxml2/HTMLtree.c:720:33: warning: Survived: Replaced < with <= [cxx_lt_to_le]
        while ((c > 0x20) && (c < 0x7F) && (c != '"') && (c != '&')) {
                                ^
/libxml2/HTMLtree.c:725:17: warning: Survived: Replaced > with >= [cxx_gt_to_ge]
        if (tmp > content)
                ^
/libxml2/HTMLtree.c:728:16: warning: Survived: Replaced <= with < [cxx_le_to_lt]
        if ((c <= 0x20) || (c >= 0x7F)) {
               ^
/libxml2/HTMLtree.c:728:31: warning: Survived: Replaced >= with > [cxx_ge_to_gt]
        if ((c <= 0x20) || (c >= 0x7F)) {
                              ^
/libxml2/HTMLtree.c:787:15: warning: Survived: Replaced 'a = b' with 'a = 42' [cxx_assign_const]
        isUri = (cur->ns == NULL) && (cur->parent != NULL) &&
              ^
/libxml2/HTMLtree.c:787:26: warning: Survived: Replaced == with != [cxx_eq_to_ne]
        isUri = (cur->ns == NULL) && (cur->parent != NULL) &&
                         ^
/libxml2/HTMLtree.c:787:51: warning: Survived: Replaced != with == [cxx_ne_to_eq]
        isUri = (cur->ns == NULL) && (cur->parent != NULL) &&
                                                  ^
/libxml2/HTMLtree.c:788:34: warning: Survived: Replaced == with != [cxx_eq_to_ne]
                (cur->parent->ns == NULL) &&
                                 ^
/libxml2/HTMLtree.c:789:20: warning: Survived: Replaced call to a function with 42 [cxx_replace_scalar_call]
                ((!xmlStrcasecmp(cur->name, BAD_CAST "href")) ||
                   ^
/libxml2/HTMLtree.c:790:20: warning: Survived: Replaced call to a function with 42 [cxx_replace_scalar_call]
                 (!xmlStrcasecmp(cur->name, BAD_CAST "action")) ||
                   ^
/libxml2/HTMLtree.c:791:20: warning: Survived: Replaced call to a function with 42 [cxx_replace_scalar_call]
                 (!xmlStrcasecmp(cur->name, BAD_CAST "src")) ||
                   ^
/libxml2/HTMLtree.c:792:21: warning: Survived: Replaced call to a function with 42 [cxx_replace_scalar_call]
                 ((!xmlStrcasecmp(cur->name, BAD_CAST "name")) &&
                    ^
/libxml2/HTMLtree.c:839:5: warning: Survived: Removed the call to the function [cxx_remove_void_call]
    xmlInitParser();
    ^
/libxml2/HTMLtree.c:1070:19: warning: Survived: Replaced 'a = b' with 'a = 42' [cxx_assign_const]
            isRaw = 0;
                  ^
/libxml2/HTMLtree.c:1111:25: warning: Survived: Replaced == with != [cxx_eq_to_ne]
                if (cur == metaHead)
                        ^
[info] Mutation score: 55%
[info] Total execution time: 2953ms
[info] Surviving mutants: 38