Skip to content

Commit

Permalink
Reformat dotk{} to print as .K rather than . (#990)
Browse files Browse the repository at this point in the history
See runtimeverification/k#4017 for full context.

Blocked on downstream semantics updates.
  • Loading branch information
Baltoli authored Feb 21, 2024
1 parent 0861085 commit d3c1ee7
Show file tree
Hide file tree
Showing 8 changed files with 12 additions and 12 deletions.
2 changes: 1 addition & 1 deletion lib/printer/printer.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ std::map<std::string, std::string> getFormats() {
if (once) {
formats["kseq"] = "%1 ~> %2";
formats["append"] = "%1 ~> %2";
formats["dotk"] = ".";
formats["dotk"] = ".K";
formats["inj"] = "%1";
formats["\\bottom"] = "#Bottom";
formats["\\top"] = "#Top";
Expand Down
2 changes: 1 addition & 1 deletion test/output/amb.out.diff
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
<k>
amb ( ( 1 * 2 ) * 3 , 1 * ( 2 * 3 ) ) ~> .
amb ( ( 1 * 2 ) * 3 , 1 * ( 2 * 3 ) ) ~> .K
</k>
2 changes: 1 addition & 1 deletion test/output/locations.out.diff
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
<k>
stop ( ) ~> bar ( foo ( ) , bar ( bar ( baz ( ) , foo ( ) ) , bar ( foo ( ) , baz ( ) ) ) ) ~> .
stop ( ) ~> bar ( foo ( ) , bar ( bar ( baz ( ) , foo ( ) ) , bar ( foo ( ) , baz ( ) ) ) ) ~> .K
</k>
2 changes: 1 addition & 1 deletion test/unparse/filter/result.kore.out
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
V:K
#Equals
3 ~> .
3 ~> .K
}
6 changes: 3 additions & 3 deletions test/unparse/imp++/search.cfg.kore.out
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
#Equals
<T>
<k>
++ x ~> #freezer_/__IMP-SYNTAX_AExp_AExp_AExp0_ ( 1 ~> . ) ~> #freezer_/__IMP-SYNTAX_AExp_AExp_AExp1_ ( ++ x ~> . ) ~> #freezer_=_;_IMP-SYNTAX_Stmt_Id_AExp1_ ( y ~> . ) ~> .
++ x ~> #freezer_/__IMP-SYNTAX_AExp_AExp_AExp0_ ( 1 ~> .K ) ~> #freezer_/__IMP-SYNTAX_AExp_AExp_AExp1_ ( ++ x ~> .K ) ~> #freezer_=_;_IMP-SYNTAX_Stmt_Id_AExp1_ ( y ~> .K ) ~> .K
</k>
<state>
x |-> 1
Expand All @@ -17,7 +17,7 @@
#Equals
<T>
<k>
++ x ~> #freezer_/__IMP-SYNTAX_AExp_AExp_AExp0_ ( ++ x / x ~> . ) ~> #freezer_=_;_IMP-SYNTAX_Stmt_Id_AExp1_ ( y ~> . ) ~> .
++ x ~> #freezer_/__IMP-SYNTAX_AExp_AExp_AExp0_ ( ++ x / x ~> .K ) ~> #freezer_=_;_IMP-SYNTAX_Stmt_Id_AExp1_ ( y ~> .K ) ~> .K
</k>
<state>
x |-> 1
Expand All @@ -31,7 +31,7 @@
#Equals
<T>
<k>
++ x ~> #freezer_/__IMP-SYNTAX_AExp_AExp_AExp0_ ( x ~> . ) ~> #freezer_/__IMP-SYNTAX_AExp_AExp_AExp1_ ( ++ x ~> . ) ~> #freezer_=_;_IMP-SYNTAX_Stmt_Id_AExp1_ ( y ~> . ) ~> .
++ x ~> #freezer_/__IMP-SYNTAX_AExp_AExp_AExp0_ ( x ~> .K ) ~> #freezer_/__IMP-SYNTAX_AExp_AExp_AExp1_ ( ++ x ~> .K ) ~> #freezer_=_;_IMP-SYNTAX_Stmt_Id_AExp1_ ( y ~> .K ) ~> .K
</k>
<state>
x |-> 1
Expand Down
2 changes: 1 addition & 1 deletion test/unparse/string/string.cfg.kore.out
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
<k>
"hello world!" ~> .
"hello world!" ~> .K
</k>
4 changes: 2 additions & 2 deletions test/unparse/subst/subst.cfg.kore.out
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,9 @@
} )
#And
<k>
?_0:Int ~> .
?_0:Int ~> .K
</k>
#Or
<k>
one ~> .
one ~> .K
</k>
4 changes: 2 additions & 2 deletions test/unparse/subst/subst2.cfg.kore.out
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<k>
?_0:Int ~> .
?_0:Int ~> .K
</k>
#And
{
Expand All @@ -9,5 +9,5 @@
}
#Or
<k>
one ~> .
one ~> .K
</k>

0 comments on commit d3c1ee7

Please sign in to comment.