-
Notifications
You must be signed in to change notification settings - Fork 61
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
Showing
2 changed files
with
19 additions
and
0 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
//I_YHRP: IYHRP The calculation of constraints shall cause an error if | ||
//necessary, for example where a division by zero occurs, etc. | ||
|
||
func helloworld(y : bits(2)) | ||
begin | ||
// x = { 8, 16, 32, 64} | ||
// y = {00, 01, 10, 11} | ||
var x = 8 << UInt(y); | ||
var zz = x DIV 16; | ||
var xyz = 100 MOD zz; | ||
end | ||
|
||
func main() => integer | ||
begin | ||
return 0; | ||
end |
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