+2017-09-14 Niels Möller <nisse@lysator.liu.se>
+
+ * ecc-mod.c (ecc_mod): Workaround to silence a false positive from
+ the clang static analyzer.
+
2017-09-12 Niels Möller <nisse@lysator.liu.se>
* testsuite/testutils.h (mpn_zero_p): Avoid redefining mpn_zero_p
mp_size_t i;
unsigned shift;
- assert (sn > 0);
+ assert (bn < mn);
/* FIXME: Could use mpn_addmul_2. */
/* Eliminate sn limbs at a time */
}
else
{
+ /* The loop below always runs at least once. But the analyzer
+ doesn't realize that, and complains about hi being used later
+ on without a well defined value. */
+#ifdef __clang_analyzer__
+ hi = 0;
+#endif
while (rn >= 2 * mn - bn)
{
rn -= sn;