Canonical representation of linear function, for instance, expression $x + x - y + 5 - 3$ would given by constant_coefficient 2 and coefficients: x -> 2, y -> -1.
More...
#include <string_constraint_instantiation.h>
f composed of additions and subtractions into its cannonical representation. other. y such that f(var <- y) = val. Canonical representation of linear function, for instance, expression $x + x - y + 5 - 3$ would given by constant_coefficient 2 and coefficients: x -> 2, y -> -1.
Definition at line 52 of file string_constraint_instantiation.h.
Put an expression f composed of additions and subtractions into its cannonical representation.
Definition at line 60 of file string_constraint_instantiation.cpp.
Make this function the sum of the current function with other.
Definition at line 101 of file string_constraint_instantiation.cpp.
Format the linear function as a string, can be used for debugging.
Definition at line 166 of file string_constraint_instantiation.cpp.
Return an expression y such that f(var <- y) = val.
The coefficient of var in the linear function must be 1 or -1. For instance, if f corresponds to the expression q + x, solve(q,v,f) returns the expression v - x.
Definition at line 146 of file string_constraint_instantiation.cpp.
Definition at line 109 of file string_constraint_instantiation.cpp.
Definition at line 77 of file string_constraint_instantiation.h.
Definition at line 76 of file string_constraint_instantiation.h.
Definition at line 78 of file string_constraint_instantiation.h.