mirror of
https://github.com/Z3Prover/z3
synced 2025-10-24 08:24:34 +00:00
adding mergeopt
Signed-off-by: Nikolaj Bjorner <nbjorner@microsoft.com>
This commit is contained in:
parent
01ba749a5d
commit
9fad15e2ca
4 changed files with 72 additions and 8 deletions
|
|
@ -28,7 +28,5 @@ async function invokeLLMUpdate(code) {
|
|||
const inputFile = env.files[0];
|
||||
const file = await workspace.readText(inputFile);
|
||||
const answer = await invokeLLMUpdate(file.content);
|
||||
// Extract the code from the answer by removing ```cpp and ```:
|
||||
let code = answer.replace(/```cpp/g, "").replace(/```/g, "");
|
||||
const outputFile = inputFile.filename + ".opt";
|
||||
await workspace.writeText(outputFile, code);
|
||||
await workspace.writeText(outputFile, answer);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue