Commit 8cff1a3f authored by Adam P. Goucher's avatar Adam P. Goucher

Streamlife is functional

parent f64c61bd
......@@ -45,7 +45,7 @@ namespace apg {
if (dmap & 85) {
lmask |= 7;
}
if (dmap) { std::cerr << centre << " " << dmap << std::endl; }
// if (dmap) { std::cerr << centre << " " << dmap << std::endl; }
}
// Use a uint64 as an ordered pair of uint32s:
......
This diff is collapsed.
......@@ -253,9 +253,9 @@ namespace apg {
if (i3 != 0) {
uint64_t lanes = node2lanes(rule, hnode2.depth, hnode2.index);
if (lanes & 255) { std::cerr << lanes << std::endl; }
// if (lanes & 255) { std::cerr << lanes << std::endl; }
if (lanes & 240) {
std::cerr << "lanes & 240" << std::endl;
// std::cerr << "lanes & 240" << std::endl;
res.index2 = i3;
} else {
res.index = i3;
......
......@@ -77,18 +77,24 @@ int main() {
x = x["b3s23"][32768];
std::cerr << "Population of Lidka: " << x.popcount((1 << 30) + 3) << std::endl;
/*
apg::pattern y(&st, "bo$obo$bo8$8bo$6bobo$5b2obo2$4b3o!", "b3s23");
*/
apg::pattern y(&st, "sparked.mc");
std::cerr << "Population of Lidka: " << y.popcount((1 << 30) + 3) << std::endl;
for (int i = 0; i < 1000; i++) {
y = y["b3s23"][32];
for (int i = 0; i < 100; i++) {
std::cerr << ".";
y = y["b3s23"][4096];
}
std::cerr << std::endl;
std::cerr << "Population of Lidka: " << y.popcount((1 << 30) + 3) << std::endl;
std::cerr << y.gethnode().index << " " << y.gethnode().index2 << std::endl;
std::ofstream out2("lidka1.mc");
std::ofstream out2("sparked1.mc");
st.write_macrocell(out2, apg::hypernode<uint32_t>(y.gethnode().index, y.gethnode().depth), "b3s23");
std::ofstream out3("lidka2.mc");
std::ofstream out3("sparked2.mc");
st.write_macrocell(out3, apg::hypernode<uint32_t>(y.gethnode().index2, y.gethnode().depth), "b3s23");
return 0;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment