-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
0ea0abd
commit 6cc98d8
Showing
12 changed files
with
142 additions
and
12 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
extern "C" { | ||
fn debug_u256(value: u256); | ||
fn debug_u160(value: u160); | ||
fn debug_u128(value: u128); | ||
fn debug_u64(value: u64); | ||
fn debug_u32(value: u32); | ||
fn debug_u16(value: u16); | ||
fn debug_u8(value: u8); | ||
fn debug_bool(value: bool); | ||
fn debug_str(value: &str); | ||
fn debug_unit(value: ()); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,61 @@ | ||
```k | ||
module ULM-SEMANTICS-HOOKS-DEBUG-CONFIGURATION | ||
imports LIST | ||
configuration | ||
<ulm-debug> | ||
.List | ||
</ulm-debug> | ||
endmodule | ||
module ULM-SEMANTICS-HOOKS-DEBUG-SYNTAX | ||
imports RUST-SHARED-SYNTAX | ||
syntax Instruction ::= debugExpression(Expression) | ||
endmodule | ||
// Either ULM-SEMANTICS-HOOKS-NO-DEBUG or ULM-SEMANTICS-HOOKS-DEBUG should be | ||
// included directly in the target module. | ||
module ULM-SEMANTICS-HOOKS-NO-DEBUG | ||
imports private ULM-SEMANTICS-HOOKS-DEBUG-FUNCTIONS | ||
imports private ULM-SEMANTICS-HOOKS-DEBUG-SYNTAX | ||
rule debugExpression(_:Expression) => .K | ||
endmodule | ||
module ULM-SEMANTICS-HOOKS-DEBUG | ||
imports private COMMON-K-CELL | ||
imports private RUST-REPRESENTATION | ||
imports private ULM-SEMANTICS-HOOKS-DEBUG-CONFIGURATION | ||
imports private ULM-SEMANTICS-HOOKS-DEBUG-FUNCTIONS | ||
imports private ULM-SEMANTICS-HOOKS-DEBUG-SYNTAX | ||
rule debugExpression(E:Expression) => debugExpressionImpl(E) | ||
syntax Instruction ::= debugExpressionImpl(Expression) [strict(1)] | ||
rule | ||
<k> debugExpressionImpl(V:PtrValue) => .K ... </k> | ||
<ulm-debug> | ||
... | ||
.List => ListItem(V) | ||
</ulm-debug> | ||
endmodule | ||
module ULM-SEMANTICS-HOOKS-DEBUG-FUNCTIONS | ||
imports private RUST-REPRESENTATION | ||
imports private ULM-SEMANTICS-HOOKS-DEBUG-SYNTAX | ||
syntax Identifier ::= "debug" [token] | ||
rule | ||
normalizedFunctionCall | ||
( :: debug :: _:Identifier :: .PathExprSegments | ||
, ValueId:Ptr, .PtrList | ||
) | ||
=> debugExpression(ValueId) | ||
endmodule | ||
``` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters