MCPcopy Create free account
hub / github.com/Gecode/gecode / printBoolVar

Function printBoolVar

gecode/flatzinc/flatzinc.cpp:1789–1794  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1787 os << "\n";
1788 }
1789 void printBoolVar(std::ostream& os, const std::string name, const BoolVar& b) {
1790 os << "var bool: " << name;
1791 if(b.assigned())
1792 os << " = " << (b.val() ? "true" : "false");
1793 os << ";\n";
1794 }
1795#ifdef GECODE_HAS_FLOAT_VARS
1796 void printFloatVar(std::ostream& os, const std::string name, const Float::FloatView& f) {
1797 os << "var ";

Callers 1

getDomainsMethod · 0.85

Calls 2

assignedMethod · 0.45
valMethod · 0.45

Tested by

no test coverage detected