#include "nfagraph/ng_dump.h"
#include "nfagraph/ng_is_equal.h"
#include "util/container.h"
+#include "util/dump_util.h"
#include "ue2common.h"
-#include <map>
#include <cstdio>
+#include <map>
#include <string>
#ifndef DUMP_SUPPORT
return;
}
- string filename = grey.dumpPath + "/ssm.txt";
map<u32, const SlotCacheEntry *> by_slot;
map<u32, const InitialResetInfo *> by_slot_ir;
by_slot_ir[e.slot] = &e;
}
- FILE *f = fopen(filename.c_str(), "w");
+ StdioFile f(grey.dumpPath + "/ssm.txt", "w");
fprintf(f, "slot width %u bytes\n\n", ssm.precision);
}
}
- fclose(f);
-
for (const auto &h : ssm.cache->initial_prefixes) {
dumpHolder(*h, hash_holder(*h), "ssm_prefix", grey);
}