Skip to content

Commit 8159961

Browse files
peterschrammelDaniel Kroening
authored and
Daniel Kroening
committed
Fix typos in comments
1 parent 16ca5b9 commit 8159961

File tree

3 files changed

+4
-4
lines changed

3 files changed

+4
-4
lines changed

src/solvers/floatbv/float_bv.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -655,7 +655,7 @@ exprt float_bvt::div(
655655
from_integer(0, unsignedbv_typet(div_width - fraction_width)),
656656
unsignedbv_typet(div_width));
657657

658-
// zero-extend fraction2 to match faction1
658+
// zero-extend fraction2 to match fraction1
659659
const typecast_exprt fraction2(unpacked2.fraction, fraction1.type());
660660

661661
// divide fractions
@@ -858,7 +858,7 @@ void float_bvt::normalization_shift(
858858
{
859859
// n-log-n alignment shifter.
860860
// The worst-case shift is the number of fraction
861-
// bits minus one, in case the faction is one exactly.
861+
// bits minus one, in case the fraction is one exactly.
862862
std::size_t fraction_bits=to_unsignedbv_type(fraction.type()).get_width();
863863
std::size_t exponent_bits=to_signedbv_type(exponent.type()).get_width();
864864
PRECONDITION(fraction_bits != 0);

src/solvers/floatbv/float_utils.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -785,7 +785,7 @@ void float_utilst::normalization_shift(bvt &fraction, bvt &exponent)
785785

786786
// n-log-n alignment shifter.
787787
// The worst-case shift is the number of fraction
788-
// bits minus one, in case the faction is one exactly.
788+
// bits minus one, in case the fraction is one exactly.
789789
PRECONDITION(!fraction.empty());
790790
std::size_t depth = address_bits(fraction.size() - 1);
791791

src/solvers/smt2/smt2_conv.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2038,7 +2038,7 @@ void smt2_convt::convert_typecast(const typecast_exprt &expr)
20382038

20392039
out << " (ite (and ";
20402040

2041-
// some faction bit is not zero
2041+
// some fraction bit is not zero
20422042
out << "(not (= ((_ extract " << (from_fraction_bits-1) << " 0) ?tcop) "
20432043
"(_ bv0 " << from_fraction_bits << ")))";
20442044

0 commit comments

Comments
 (0)