Skip to content

Commit

Permalink
Allow absolute paths to prover plugins (#764)
Browse files Browse the repository at this point in the history
Previously, the `/proverDll` option allowed only relative paths, since
it looked for `/` or `\` _within_ a name, but not at the beginning, to
determine whether the given name was a filename or a portion of an
internal DLL name. This changes it to also interpret a name as a
filename when either of those characters is the first character.
  • Loading branch information
atomb authored Jul 20, 2023
1 parent 5676d5b commit 70d739b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Source/Provers/SMTLib/ProverUtil.cs
Original file line number Diff line number Diff line change
Expand Up @@ -320,7 +320,7 @@ public static ProverFactory Load(string proverName)
Contract.Ensures(cce.IsNew(Contract.Result<ProverFactory>()) && cce.Owner.New(Contract.Result<ProverFactory>()));
string /*!*/
path;
if (proverName.IndexOf("/") > 0 || proverName.IndexOf("\\") > 0)
if (proverName.IndexOf("/") >= 0 || proverName.IndexOf("\\") >= 0)
{
path = proverName;
}
Expand Down Expand Up @@ -367,4 +367,4 @@ public ProverOptionException(string msg)
Contract.Requires(msg != null);
}
}
}
}

0 comments on commit 70d739b

Please sign in to comment.