Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
19 changes: 19 additions & 0 deletions src/main/java/edu/uiowa/cs/clc/kind2/api/Kind2Api.java
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,8 @@ public class Kind2Api {

private List<String> otherOptions;

private Boolean safeMode;

// module smt
private SolverOption smtSolver;
private QESolverOption qeSmtSolver;
Expand Down Expand Up @@ -129,6 +131,7 @@ public class Kind2Api {
*/
public Kind2Api() {
otherOptions = new ArrayList<>();
safeMode = false;
smtSolver = null;
qeSmtSolver = null;
itpSmtSolver = null;
Expand Down Expand Up @@ -764,10 +767,26 @@ public List<String> getOptions() {
options.add("--fake_filepath");
options.add(fakeFilepath);
}
if (safeMode != null){
options.add("--no_include");
options.add(safeMode.toString());
}
options.addAll(this.otherOptions);
return options;
}

/**
* If called with true, enables safe mode for this API instance.
* Safe mode enables the following features: disabling the use of include statements,
* automatic use of docker containers for executions of Kind 2 (to be implemented)
* <p>
* Default: false
* @param safeMode whether or not to enable safe mode.
*/
public void setSafeMode(boolean safeMode){
this.safeMode = true;
}

/**
* Set the main SMT solver
* <p>
Expand Down
Loading