Skip to content

Commit

Permalink
Fix typos.
Browse files Browse the repository at this point in the history
  • Loading branch information
waywardmonkeys authored and NikolajBjorner committed Aug 5, 2022
1 parent 08165f5 commit 1d9345c
Show file tree
Hide file tree
Showing 13 changed files with 19 additions and 19 deletions.
2 changes: 1 addition & 1 deletion src/ast/seq_decl_plugin.h
Original file line number Diff line number Diff line change
Expand Up @@ -448,7 +448,7 @@ class seq_util {
info() {}

/*
Used for constructing either an invalid info that is only used to indicate uninitialzed entry, or valid but unknown info value.
Used for constructing either an invalid info that is only used to indicate uninitialized entry, or valid but unknown info value.
*/
info(lbool is_known) : known(is_known) {}

Expand Down
4 changes: 2 additions & 2 deletions src/math/grobner/pdd_simplifier.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
Extended Linear Simplification (as exploited in Bosphorus AAAI 2019):
- multiply each polynomial by one variable from their orbits.
- The orbit of a varible are the variables that occur in the same monomial as it in some polynomial.
- The orbit of a variable are the variables that occur in the same monomial as it in some polynomial.
- The extended set of polynomials is fed to a linear Gauss Jordan Eliminator that extracts
additional linear equalities.
- Bosphorus uses M4RI to perform efficient GJE to scale on large bit-matrices.
Expand All @@ -32,7 +32,7 @@
The method seems rather specific to hardware multipliers so not clear it is useful to
generalize.
- find monomials that contain pairs of vanishing polynomials, transitively
withtout actually inlining.
without actually inlining.
Then color polynomial variables w by p, resp, q if they occur in polynomial equalities
w - r = 0, such that all paths in r contain a node colored by p, resp q.
polynomial variables that get colored by both p and q can be set to 0.
Expand Down
2 changes: 1 addition & 1 deletion src/math/lp/emonics.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -518,7 +518,7 @@ std::ostream& emonics::display(std::ostream& out, cell* c) const {

bool emonics::invariant() const {
TRACE("nla_solver_mons", display(tout););
// the varible index contains exactly the active monomials
// the variable index contains exactly the active monomials
unsigned mons = 0;
for (lpvar v = 0; v < m_var2index.size(); v++) {
if (is_monic_var(v)) {
Expand Down
2 changes: 1 addition & 1 deletion src/math/lp/mps_reader.h
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ Revision History:

#pragma once

// reads an MPS file reperesenting a Mixed Integer Program
// reads an MPS file representing a Mixed Integer Program
#include <functional>
#include <algorithm>
#include <string>
Expand Down
2 changes: 1 addition & 1 deletion src/model/datatype_factory.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,7 @@ expr * datatype_factory::get_almost_fresh_value(sort * s) {
return val;
}
// Traverse constructors, and try to invoke get_fresh_value of one of the arguments (if the argument is not a sibling datatype of s).
// If the argumet is a sibling datatype of s, then
// If the argument is a sibling datatype of s, then
// use get_last_fresh_value.
ptr_vector<func_decl> const & constructors = *m_util.get_datatype_constructors(s);
for (func_decl * constructor : constructors) {
Expand Down
2 changes: 1 addition & 1 deletion src/muz/base/dl_context.h
Original file line number Diff line number Diff line change
Expand Up @@ -305,7 +305,7 @@ namespace datalog {
void register_predicate(func_decl * pred, bool named);

/**
Restrict reltaions to set of predicates.
Restrict relations to set of predicates.
*/
void restrict_predicates(func_decl_set const& preds);

Expand Down
2 changes: 1 addition & 1 deletion src/muz/rel/aig_exporter.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ namespace datalog {
// reserve pred id = 0 for initialization purposes
unsigned num_preds = (unsigned)predicates.size() + 1;

// poor's man round-up log2
// poor man's round-up log2
unsigned preds_bitsize = log2(num_preds);
if ((1U << preds_bitsize) < num_preds)
++preds_bitsize;
Expand Down
4 changes: 2 additions & 2 deletions src/muz/rel/dl_base.h
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@ namespace datalog {


/**
Termplate class containing common infrastructure for relations and tables
Template class containing common infrastructure for relations and tables
*/
template<class Traits>
struct tr_infrastructure {
Expand Down Expand Up @@ -881,7 +881,7 @@ namespace datalog {
public:
virtual ~table_row_pair_reduce_fn() {}
/**
\brief The function is called for pair of table rows that became duplicit due to projection.
\brief The function is called for pair of table rows that became duplicated due to projection.
The values that are in the first array after return from the function will be used for the
resulting row.
Expand Down
4 changes: 2 additions & 2 deletions src/muz/rel/dl_relation_manager.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1230,11 +1230,11 @@ namespace datalog {


/**
An auixiliary class for functors that perform filtering. It performs the table traversal
An auxiliary class for functors that perform filtering. It performs the table traversal
and only asks for each individual row whether it should be removed.
When using this class in multiple inheritance, this class should not be inherited publicly
and should be mentioned as last. This should ensure that deteletion of the object will
and should be mentioned as last. This should ensure that deletion of the object will
go well when initiated from a pointer to the first ancestor.
*/
class relation_manager::auxiliary_table_filter_fn {
Expand Down
8 changes: 4 additions & 4 deletions src/opt/maxcore.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,8 @@ Module Name:
- mu: max-sat algorithm by Nina and Bacchus, AAAI 2014.
- mus-mss: based on dual refinement of bounds.
- binary: binary version of maxres
- rc2: implementaion of rc2 heuristic using cardinality constraints
- rc2t: implementaion of rc2 heuristic using totalizerx
- rc2: implementation of rc2 heuristic using cardinality constraints
- rc2t: implementation of rc2 heuristic using totalizerx
- rc2-binary: hybrid of rc2 and binary maxres. Perform one step of binary maxres.
If there are more than 16 soft constraints create a cardinality constraint.
Expand All @@ -27,7 +27,7 @@ Module Name:
constraints the approach works like max-res.
Given a (maximal) satisfying subset of the soft constraints
the approach updates the upper bound if the current assignment
improves the current best assignmet.
improves the current best assignment.
Furthermore, take the soft constraints that are complements
to the current satisfying subset.
E.g, if F are the hard constraints and
Expand All @@ -44,7 +44,7 @@ Module Name:
If k of these soft clauses are false in the satisfying assignment
for the updated F, then k of the original soft clauses are also false
under the assignment.
In summary: any assignment to the new clauses that satsfies F has the
In summary: any assignment to the new clauses that satisfies F has the
same cost.
Claim:
If there are no satisfying assignments to F, then the current best assignment
Expand Down
2 changes: 1 addition & 1 deletion src/smt/theory_pb.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1106,7 +1106,7 @@ namespace smt {
\brief propagate assignment to inequality.
This is a basic, non-optimized implementation based
on the assumption that inequalities are mostly units
and/or relatively few compared to number of argumets.
and/or relatively few compared to number of arguments.
*/
void theory_pb::assign_ineq(ineq& c, bool is_true) {
m_mpz_trail.push_back(c.m_max_sum);
Expand Down
2 changes: 1 addition & 1 deletion src/test/lp/smt_reader.h
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ Revision History:

#pragma once

// reads an MPS file reperesenting a Mixed Integer Program
// reads an MPS file representing a Mixed Integer Program
#include <string>
#include <vector>
#include <unordered_map>
Expand Down
2 changes: 1 addition & 1 deletion src/util/cmd_context_types.h
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,7 @@ typedef std::pair<symbol, sort*> sorted_var;
/**
\brief Command abstract class.
Commands may have variable number of argumets.
Commands may have variable number of arguments.
*/
class cmd {
symbol m_name;
Expand Down

0 comments on commit 1d9345c

Please sign in to comment.