-
Notifications
You must be signed in to change notification settings - Fork 5.4k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'master' into josh/text_document
- Loading branch information
Showing
3 changed files
with
17 additions
and
1 deletion.
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
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,15 @@ | ||
# Behavior Considered Undefined | ||
|
||
Sway code that contains any of the following behavior is considered undefined. | ||
The compiler is allowed to treat undefined Sway code however it desires, | ||
including removing it or replacing it with any other Sway code. | ||
|
||
This is not an exhaustive list, it may grow or shrink, there is no formal model | ||
of Sway's semantics so there may be more behavior considered undefined. We | ||
reserve the right to make some of the listed behavior defined in the future. | ||
|
||
* Invalid arithmetic operations (overflows, underflows, division by zero, etc) | ||
* Misuse of compiler intrinsics | ||
* Incorrect use of inline assembly | ||
* Reading and writing `raw_ptr` and `raw_slice` | ||
* Slicing and indexing out of bounds by directly using compiler intrinsics. |