Branch Coverage

/usr/include/c++/5/bits/regex.tcc
Criterion Covered Total %
branch 11 88 12.5


line true false branch
61 0 100 if (__re._M_automaton == nullptr)
67 800 100 for (auto& __it : __res)
74 0 100 if (!__re._M_automaton->_M_has_backref
82 0 0 __executor(__s, __e, __m, __re, __flags);
84 0 0 __ret = __executor._M_match();
91 100 0 __executor(__s, __e, __m, __re, __flags);
93 100 0 __ret = __executor._M_match();
97 100 0 if (__ret)
99 800 100 for (auto& __it : __res)
100 300 500 if (!__it.matched)
126 0 0 for (auto& __it : __res)
147 0 0 const __ctype_type& __fctyp(use_facet<__ctype_type>(_M_locale));
282 0 0 for (; __first != __last; ++__first)
283 0 0 __s += __fctyp.narrow(*__first, 0);
0 0 __s += __fctyp.narrow(*__first, 0);
285 0 0 for (const auto& __it : __collatenames)
286 0 0 if (__s == __it)
0 0 if (__s == __it)
288 0 0 static_cast(&__it - __collatenames)));
0 0 static_cast(&__it - __collatenames)));
303 0 0 const __ctype_type& __fctyp(use_facet<__ctype_type>(_M_locale));
326 0 0 for (; __first != __last; ++__first)
327 0 0 __s += __fctyp.narrow(__fctyp.tolower(*__first), 0);
0 0 __s += __fctyp.narrow(__fctyp.tolower(*__first), 0);
0 0 __s += __fctyp.narrow(__fctyp.tolower(*__first), 0);
329 0 0 for (const auto& __it : __classnames)
330 0 0 if (__s == __it.first)
0 0 if (__s == __it.first)
332 0 0 if (__icase
334 0 0 & (ctype_base::lower | ctype_base::upper)) != 0))
0 0 & (ctype_base::lower | ctype_base::upper)) != 0))
0 0 & (ctype_base::lower | ctype_base::upper)) != 0))
352 0 0 && __c == __fctyp.widen('_'));
0 0 && __c == __fctyp.widen('_'));
0 0 && __c == __fctyp.widen('_'));
360 0 0 std::basic_istringstream __is(string_type(1, __ch));
0 0 std::basic_istringstream __is(string_type(1, __ch));
362 0 0 if (__radix == 8)
363 0 0 __is >> std::oct;
364 0 0 else if (__radix == 16)
365 0 0 __is >> std::hex;
366 0 0 __is >> __v;
367 0 0 return __is.fail() ? -1 : __v;
0 0 return __is.fail() ? -1 : __v;