Skip to content

Commit

Permalink
Include warning if probes do not record useful information.
Browse files Browse the repository at this point in the history
  • Loading branch information
nicolaimueller authored Dec 21, 2023
1 parent e1bd531 commit ced62c0
Showing 1 changed file with 11 additions and 1 deletion.
12 changes: 11 additions & 1 deletion src/Hardware/Probing.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -572,6 +572,16 @@ void Adversaries<RobustProbeExtension>::SetProbeExtensions(
if (input_index >= circuit.Signals[signal_index]->NumberOfInputs) {
probe_extensions_.emplace_back(signal_index, library, circuit,
settings);

if (!probe_extensions_.back().GetAllExtensionIndices().size()) {
std::cout << " Warning A probe on signal \""
<< circuit.Signals[signal_index]->Name
<< "\" does not record any useful information. PROLEAD "
"automatically removes the probe on \""
<< circuit.Signals[signal_index]->Name
<< "\" during the evaluation!" << std::endl;
probe_extensions_.pop_back();
}
}
}
}
Expand Down Expand Up @@ -1386,4 +1396,4 @@ void Adversaries<ExtensionContainer>::NormalTest(
}
}
} // namespace probing
} // namespace Hardware
} // namespace Hardware

0 comments on commit ced62c0

Please sign in to comment.