Skip to content

Commit d7d7843

Browse files
feat(cli): log number of variables
1 parent f604334 commit d7d7843

File tree

1 file changed

+5
-4
lines changed

1 file changed

+5
-4
lines changed

ddnnife_cli/src/main.rs

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -209,16 +209,17 @@ fn main() -> io::Result<()> {
209209
dparser::distribute_building(input, cli.total_features)
210210
};
211211

212+
let elapsed_time = time.elapsed().as_secs_f32();
213+
info!("Time for parsing: {elapsed_time:.3}s.");
214+
212215
match ddnnf.kind {
213216
DdnnfKind::NonTrivial => {}
214217
DdnnfKind::Tautology => info!("d-DNNF represents a tautology."),
215218
DdnnfKind::Contradiction => info!("d-DNNF represents a contradiction."),
216219
}
217220

218-
info!("Ddnnf overall count: {}", ddnnf.rc());
219-
220-
let elapsed_time = time.elapsed().as_secs_f32();
221-
info!("Elapsed time for parsing, and overall count: {elapsed_time:.3}s.");
221+
info!("Number of variables: {}", ddnnf.number_of_variables);
222+
info!("Model count: {}", ddnnf.rc());
222223

223224
if let Some(operation) = cli.operation {
224225
// change the number of threads used for cardinality of features and partial configurations

0 commit comments

Comments
 (0)