![]() |
ProvSQL C/C++ API
Adding support for provenance and uncertainty management to PostgreSQL databases
|
Standalone tdkc tool: tree-decomposition-based knowledge compiler.
More...
#include <iostream>#include <fstream>#include <iomanip>#include <sys/time.h>#include "dDNNFTreeDecompositionBuilder.h"#include "Circuit.hpp"
Go to the source code of this file.
Functions | |
| static double | get_timestamp () |
| Return the current time as a floating-point number of seconds. | |
| int | main (int argc, char **argv) |
| Entry point for the standalone tree-decomposition knowledge compiler. | |
Standalone tdkc tool: tree-decomposition-based knowledge compiler.
This file contains the main() entry point for the standalone tdkc (Tree-Decomposition Knowledge Compiler) binary. It is built separately from the PostgreSQL extension (see Makefile target tdkc).
Usage:
The circuit file is a text file produced by BooleanCircuit::exportCircuit() listing the number of gates followed by one line per gate describing its type, probability, and children.
The tool:
dDNNFTreeDecompositionBuilder.stdout.Timing information is printed to stderr.
Definition in file TreeDecompositionKnowledgeCompiler.cpp.
|
static |
Return the current time as a floating-point number of seconds.
Definition at line 42 of file TreeDecompositionKnowledgeCompiler.cpp.

| int main | ( | int | argc, |
| char ** | argv | ||
| ) |
Entry point for the standalone tree-decomposition knowledge compiler.
| argc | Argument count; must be 2. |
| argv | Argument vector; argv[1] is the path to the circuit file. |
Definition at line 55 of file TreeDecompositionKnowledgeCompiler.cpp.
