File size: 12,688 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
[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 110ms
[info] Extracting coverage information (threads: 1)

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

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

       [################################] 1/1. Finished in 106ms
[info] Running mutants (threads: 20)
[debug] /libxml2/HTMLtree.c:50:42 ExecutionResult: Failed
[debug] /libxml2/HTMLtree.c:124:21 ExecutionResult: Failed
[debug] /libxml2/HTMLtree.c:119:19 ExecutionResult: Failed
[debug] /libxml2/HTMLtree.c:67:14 ExecutionResult: Failed
[debug] /libxml2/HTMLtree.c:87:53 ExecutionResult: Failed

       [#-------------------------------] 5/95
[debug] /libxml2/HTMLtree.c:129:29 ExecutionResult: Passed

       [##------------------------------] 6/95
[debug] /libxml2/HTMLtree.c:237:40 ExecutionResult: Failed

       [##------------------------------] 7/95
[debug] /libxml2/HTMLtree.c:156:35 ExecutionResult: Failed
[debug] /libxml2/HTMLtree.c:182:14 ExecutionResult: Failed
[debug] /libxml2/HTMLtree.c:163:41 ExecutionResult: Failed

       [###-----------------------------] 10/95
[debug] /libxml2/HTMLtree.c:145:40 ExecutionResult: Failed
[debug] /libxml2/HTMLtree.c:322:13 ExecutionResult: Failed
[debug] /libxml2/HTMLtree.c:326:21 ExecutionResult: Failed
[debug] /libxml2/HTMLtree.c:209:24 ExecutionResult: Passed
[debug] /libxml2/HTMLtree.c:199:23 ExecutionResult: Passed
[debug] /libxml2/HTMLtree.c:195:16 ExecutionResult: Passed
[debug] /libxml2/HTMLtree.c:235:32 ExecutionResult: Failed
[debug] /libxml2/HTMLtree.c:152:13 ExecutionResult: Failed

       [######--------------------------] 18/95
[debug] /libxml2/HTMLtree.c:248:18 ExecutionResult: Failed

       [######--------------------------] 19/95
[debug] /libxml2/HTMLtree.c:310:38 ExecutionResult: Failed

       [######--------------------------] 20/95
[debug] /libxml2/HTMLtree.c:51:26 ExecutionResult: Failed
[debug] /libxml2/HTMLtree.c:119:23 ExecutionResult: Failed
[debug] /libxml2/HTMLtree.c:127:20 ExecutionResult: Failed
[debug] /libxml2/HTMLtree.c:93:16 ExecutionResult: Failed

       [########------------------------] 24/95
[debug] /libxml2/HTMLtree.c:129:31 ExecutionResult: Passed

       [########------------------------] 25/95
[debug] /libxml2/HTMLtree.c:164:27 ExecutionResult: Passed
[debug] /libxml2/HTMLtree.c:157:35 ExecutionResult: Failed
[debug] /libxml2/HTMLtree.c:185:25 ExecutionResult: Failed

       [#########-----------------------] 28/95
[debug] /libxml2/HTMLtree.c:146:22 ExecutionResult: Failed
[debug] /libxml2/HTMLtree.c:213:13 ExecutionResult: Failed
[debug] /libxml2/HTMLtree.c:202:21 ExecutionResult: Passed
[debug] /libxml2/HTMLtree.c:323:17 ExecutionResult: Passed
[debug] /libxml2/HTMLtree.c:335:14 ExecutionResult: Failed
[debug] /libxml2/HTMLtree.c:236:16 ExecutionResult: Passed
[debug] /libxml2/HTMLtree.c:195:23 ExecutionResult: Passed

       [###########---------------------] 35/95
[debug] /libxml2/HTMLtree.c:152:59 ExecutionResult: Failed

       [############--------------------] 36/95
[debug] /libxml2/HTMLtree.c:301:9 ExecutionResult: Failed

       [############--------------------] 37/95
[debug] /libxml2/HTMLtree.c:80:20 ExecutionResult: Failed

       [############--------------------] 38/95
[debug] /libxml2/HTMLtree.c:238:29 ExecutionResult: Failed

       [#############-------------------] 39/95
[debug] /libxml2/HTMLtree.c:313:13 ExecutionResult: Failed

       [#############-------------------] 40/95
[debug] /libxml2/HTMLtree.c:52:14 ExecutionResult: Failed
[debug] /libxml2/HTMLtree.c:121:24 ExecutionResult: Passed
[debug] /libxml2/HTMLtree.c:99:16 ExecutionResult: Failed

       [##############------------------] 43/95
[debug] /libxml2/HTMLtree.c:140:9 ExecutionResult: Passed

       [##############------------------] 44/95
[debug] /libxml2/HTMLtree.c:186:31 ExecutionResult: Failed

       [###############-----------------] 45/95
[debug] /libxml2/HTMLtree.c:177:21 ExecutionResult: Failed
[debug] /libxml2/HTMLtree.c:158:14 ExecutionResult: Failed
[debug] /libxml2/HTMLtree.c:148:13 ExecutionResult: Failed

       [################----------------] 48/95
[debug] /libxml2/HTMLtree.c:232:9 ExecutionResult: Passed
[debug] /libxml2/HTMLtree.c:202:21 ExecutionResult: Passed
[debug] /libxml2/HTMLtree.c:236:18 ExecutionResult: Passed

       [#################---------------] 51/95
[debug] /libxml2/HTMLtree.c:338:56 ExecutionResult: Failed
[debug] /libxml2/HTMLtree.c:196:16 ExecutionResult: Failed
[debug] /libxml2/HTMLtree.c:323:19 ExecutionResult: Failed
[debug] /libxml2/HTMLtree.c:154:14 ExecutionResult: Failed

       [##################--------------] 55/95
[debug] /libxml2/HTMLtree.c:303:18 ExecutionResult: Failed

       [##################--------------] 56/95
[debug] /libxml2/HTMLtree.c:128:18 ExecutionResult: Failed

       [###################-------------] 57/95
[debug] /libxml2/HTMLtree.c:80:35 ExecutionResult: Passed

       [###################-------------] 58/95
[debug] /libxml2/HTMLtree.c:239:16 ExecutionResult: Failed

       [###################-------------] 59/95
[debug] /libxml2/HTMLtree.c:317:19 ExecutionResult: Passed

       [####################------------] 60/95
[debug] /libxml2/HTMLtree.c:121:37 ExecutionResult: Passed
[debug] /libxml2/HTMLtree.c:52:56 ExecutionResult: Failed

       [####################------------] 62/95
[debug] /libxml2/HTMLtree.c:102:17 ExecutionResult: Failed
[debug] /libxml2/HTMLtree.c:142:9 ExecutionResult: Failed

       [#####################-----------] 64/95
[debug] /libxml2/HTMLtree.c:187:31 ExecutionResult: Failed

       [#####################-----------] 65/95
[debug] /libxml2/HTMLtree.c:159:53 ExecutionResult: Failed
[debug] /libxml2/HTMLtree.c:178:10 ExecutionResult: Failed

       [######################----------] 67/95
[debug] /libxml2/HTMLtree.c:148:59 ExecutionResult: Failed
[debug] /libxml2/HTMLtree.c:232:59 ExecutionResult: Failed
[debug] /libxml2/HTMLtree.c:207:25 ExecutionResult: Failed
[debug] /libxml2/HTMLtree.c:237:10 ExecutionResult: Passed
[debug] /libxml2/HTMLtree.c:197:16 ExecutionResult: Failed

       [########################--------] 72/95
[debug] /libxml2/HTMLtree.c:343:24 ExecutionResult: Failed
[debug] /libxml2/HTMLtree.c:154:63 ExecutionResult: Failed
[debug] /libxml2/HTMLtree.c:326:21 ExecutionResult: Failed

       [#########################-------] 75/95
[debug] /libxml2/HTMLtree.c:129:19 ExecutionResult: Passed

       [#########################-------] 76/95
[debug] /libxml2/HTMLtree.c:81:20 ExecutionResult: Failed

       [#########################-------] 77/95
[debug] /libxml2/HTMLtree.c:247:63 ExecutionResult: Passed

       [##########################------] 78/95
[debug] /libxml2/HTMLtree.c:102:32 ExecutionResult: Failed

       [##########################------] 79/95
[debug] /libxml2/HTMLtree.c:188:34 ExecutionResult: Failed
[debug] /libxml2/HTMLtree.c:320:24 ExecutionResult: Failed

       [###########################-----] 81/95
[debug] /libxml2/HTMLtree.c:237:27 ExecutionResult: Passed
[debug] /libxml2/HTMLtree.c:307:14 ExecutionResult: Failed
[debug] /libxml2/HTMLtree.c:142:52 ExecutionResult: Failed
[debug] /libxml2/HTMLtree.c:160:27 ExecutionResult: Passed

       [############################----] 85/95
[debug] /libxml2/HTMLtree.c:178:53 ExecutionResult: Failed

       [############################----] 86/95
[debug] /libxml2/HTMLtree.c:235:16 ExecutionResult: Failed
[debug] /libxml2/HTMLtree.c:149:31 ExecutionResult: Failed
[debug] /libxml2/HTMLtree.c:208:23 ExecutionResult: Failed

       [#############################---] 89/95
[debug] /libxml2/HTMLtree.c:199:23 ExecutionResult: Passed
[debug] /libxml2/HTMLtree.c:155:29 ExecutionResult: Failed

       [##############################--] 91/95
[debug] /libxml2/HTMLtree.c:63:13 ExecutionResult: Failed

       [##############################--] 92/95
[debug] /libxml2/HTMLtree.c:124:17 ExecutionResult: Failed

       [###############################-] 93/95
[debug] /libxml2/HTMLtree.c:87:13 ExecutionResult: Failed

       [###############################-] 94/95
[debug] /libxml2/HTMLtree.c:129:23 ExecutionResult: Failed

       [################################] 95/95. Finished in 956ms
[debug] Done running mutants
[info] Survived mutants (24/95):
/libxml2/HTMLtree.c:80:35: warning: Survived: Replaced != with == [cxx_ne_to_eq]
        while ((*p != 'c') && (*p != 'C')) {
                                  ^
/libxml2/HTMLtree.c:121:24: warning: Survived: Replaced != with == [cxx_ne_to_eq]
            while ((*p != 0) && (*p != ';') && (!IS_WS_HTML(*p)))
                       ^
/libxml2/HTMLtree.c:121:37: warning: Survived: Replaced != with == [cxx_ne_to_eq]
            while ((*p != 0) && (*p != ';') && (!IS_WS_HTML(*p)))
                                    ^
/libxml2/HTMLtree.c:129:19: warning: Survived: Replaced 'a = b' with 'a = 42' [cxx_assign_const]
        off->size = p - val + strlen((char *) p);
                  ^
/libxml2/HTMLtree.c:129:29: warning: Survived: Replaced + with - [cxx_add_to_sub]
        off->size = p - val + strlen((char *) p);
                            ^
/libxml2/HTMLtree.c:129:31: warning: Survived: Replaced call to a function with 42 [cxx_replace_scalar_call]
        off->size = p - val + strlen((char *) p);
                              ^
/libxml2/HTMLtree.c:140:9: warning: Survived: Replaced 'T a = b' with 'T a = 42' [cxx_init_const]
    int isContentType = 0;
        ^
/libxml2/HTMLtree.c:160:27: warning: Survived: Replaced 'a = b' with 'a = 42' [cxx_assign_const]
            isContentType = 1;
                          ^
/libxml2/HTMLtree.c:164:27: warning: Survived: Replaced 'a = b' with 'a = 42' [cxx_assign_const]
        *outIsContentType = 1;
                          ^
/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: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:209:24: warning: Survived: Replaced 'a = b' with 'a = 42' [cxx_assign_const]
        menc->off.size = size;
                       ^
/libxml2/HTMLtree.c:232:9: warning: Survived: Replaced call to a function with 42 [cxx_replace_scalar_call]
    if (xmlStrcasecmp(BAD_CAST encoding, BAD_CAST "HTML") == 0)
        ^
/libxml2/HTMLtree.c:236:16: warning: Survived: Replaced 'a = b' with 'a = 42' [cxx_assign_const]
    newEncSize = strlen((char *) encoding);
               ^
/libxml2/HTMLtree.c:236:18: warning: Survived: Replaced call to a function with 42 [cxx_replace_scalar_call]
    newEncSize = strlen((char *) encoding);
                 ^
/libxml2/HTMLtree.c:237:10: warning: Survived: Replaced 'a = b' with 'a = 42' [cxx_assign_const]
    size = menc->off.size - oldEncSize + newEncSize;
         ^
/libxml2/HTMLtree.c:237:27: warning: Survived: Replaced - with + [cxx_sub_to_add]
    size = menc->off.size - oldEncSize + newEncSize;
                          ^
/libxml2/HTMLtree.c:247:63: warning: Survived: Replaced - with + [cxx_sub_to_add]
    memcpy(p, menc->attrValue + menc->off.end, menc->off.size - menc->off.end);
                                                              ^
/libxml2/HTMLtree.c:317:19: warning: Survived: Replaced 'a = b' with 'a = 42' [cxx_assign_const]
            found = 1;
                  ^
/libxml2/HTMLtree.c:323:17: warning: Survived: Replaced 'a = b' with 'a = 42' [cxx_assign_const]
            ret = xmlNodeAddContent((xmlNodePtr) menc.attr, newVal);
                ^
[info] Mutation score: 74%
[info] Total execution time: 1209ms
[info] Surviving mutants: 24