Skip to content

Commit ee031de

Browse files
committed
lltodk: use signature_name.conjecture
1 parent 9c1d38d commit ee031de

2 files changed

Lines changed: 5 additions & 3 deletions

File tree

‎.github/workflows/main.yml‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ jobs:
88
strategy:
99
fail-fast: false
1010
matrix:
11-
ocaml-version: [5.2.0, 5.1.1, 5.0.0, 4.14.1, 4.13.1, 4.12.1, 4.11.2, 4.10.2, 4.09.1, 4.08.1]
11+
ocaml-version: [5.4.1, 5.3.0, 5.2.1, 4.14.2] #5.1.1, 5.0.0, 4.14.2, 4.13.1, 4.12.1, 4.11.2, 4.10.2, 4.09.1, 4.08.1]
1212
runs-on: ubuntu-latest
1313
steps:
1414
- name: checking out lambdapi repo ...

‎lltodk.ml‎

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1061,15 +1061,17 @@ let output_term oc phrases _ llp =
10611061
let goal_name = (List.hd llp).name in
10621062
let dkproof = make_proof_term (List.hd goal) prooftree in
10631063
fprintf oc "#REQUIRE zenon.\n";
1064-
if !Globals.signature_name <> "" then
1064+
let sig_name = !Globals.signature_name in
1065+
if sig_name <> "" then
10651066
begin
10661067
fprintf oc "#REQUIRE %s.\n" !Globals.signature_name;
10671068
fprintf oc "\n[] %s.%s --> " !Globals.signature_name goal_name
10681069
end
10691070
else fprintf oc "\n[] %s --> " goal_name;
10701071
if !Globals.conjecture <> "" then
10711072
fprintf oc "__negated_conjecture_proof__ : \
1072-
zenon.proof (zenon.not Signature.conjecture) =>\n";
1073+
zenon.proof (zenon.not %sconjecture) =>\n"
1074+
(if sig_name <> "" then sig_name^"." else "")
10731075
fprintf oc "zenon.nnpp (%a)\n(%a)"
10741076
print_dk_term dkgoal print_dk_term dkproof;
10751077
if !Globals.signature_name <> "" then fprintf oc ".";

0 commit comments

Comments
 (0)