Skip to content

Commit

Permalink
For EDA 3310
Browse files Browse the repository at this point in the history
  • Loading branch information
manadher committed Nov 22, 2024
1 parent c10906b commit a4cd691
Showing 1 changed file with 13 additions and 1 deletion.
14 changes: 13 additions & 1 deletion src/Compiler/Compiler.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -940,8 +940,20 @@ bool Compiler::RegisterCommands(TclInterpreter* interp, bool batchMode) {
return TCL_ERROR;
}
std::string opts;
bool read_init_registers = false;

Check warning on line 943 in src/Compiler/Compiler.cpp

View check run for this annotation

Codecov / codecov/patch

src/Compiler/Compiler.cpp#L943

Added line #L943 was not covered by tests
for (int i = 1; i < argc; i++) {
opts += std::string(argv[i]);
std::string opt = argv[i];
if (opt == "-read_init_registers") {
read_init_registers = true;

Check warning on line 947 in src/Compiler/Compiler.cpp

View check run for this annotation

Codecov / codecov/patch

src/Compiler/Compiler.cpp#L947

Added line #L947 was not covered by tests
}
if (read_init_registers) {
if (opt != "2" && opt != "1" && opt != "0") {
compiler->ErrorMessage("read_init_registers must be 0, 1, or 2");
return TCL_ERROR;

Check warning on line 952 in src/Compiler/Compiler.cpp

View check run for this annotation

Codecov / codecov/patch

src/Compiler/Compiler.cpp#L952

Added line #L952 was not covered by tests
}
read_init_registers = false;

Check warning on line 954 in src/Compiler/Compiler.cpp

View check run for this annotation

Codecov / codecov/patch

src/Compiler/Compiler.cpp#L954

Added line #L954 was not covered by tests
}
opts += opt;
if (i < (argc - 1)) {
opts += " ";
}
Expand Down

0 comments on commit a4cd691

Please sign in to comment.