-
Notifications
You must be signed in to change notification settings - Fork 482
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix some issues and inconsistencies related to pretty-printing (#6515)
- Loading branch information
Showing
137 changed files
with
3,120 additions
and
3,352 deletions.
There are no files selected for viewing
12 changes: 12 additions & 0 deletions
12
plutus-core/changelog.d/20240924_105256_unsafeFixIO_pretty.md
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 @@ | ||
|
||
### Removed | ||
|
||
- Removed `PlutusIR.Core.Instance.Pretty.Readable.PrettyPir`. | ||
Use `PlutusCore.Pretty.Readable.PrettyReadable` instead. | ||
|
||
### Changed | ||
|
||
- Renamed `PlutusIR.Core.Instance.Pretty.Readable.prettyPirReadable` | ||
to `PlutusCore.Pretty.Readable.prettyReadable`. | ||
- Renamed `PlutusIR.Core.Instance.Pretty.Readable.prettyPirReadableSimple` | ||
to `PlutusCore.Pretty.Readable.prettyReadableSimple`. |
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
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
26 changes: 12 additions & 14 deletions
26
...s-tx-plugin/test/IntegerLiterals/9.6/integerLiterals-NoStrict-NegativeLiterals.pir.golden
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 |
---|---|---|
@@ -1,20 +1,18 @@ | ||
program | ||
1.1.0 | ||
(\(x : integer) -> | ||
addInteger | ||
24680135792468013579 | ||
\(x : integer) -> | ||
addInteger | ||
24680135792468013579 | ||
(addInteger | ||
-99887766554433221100 | ||
(addInteger | ||
-99887766554433221100 | ||
98765432109876543210 | ||
(addInteger | ||
98765432109876543210 | ||
-654 | ||
(addInteger | ||
-654 | ||
456 | ||
(addInteger | ||
456 | ||
13579246801357924680 | ||
(addInteger | ||
13579246801357924680 | ||
-11223344556677889900 | ||
(addInteger | ||
-11223344556677889900 | ||
(addInteger | ||
12345678901234567890 | ||
(addInteger -321 (multiplyInteger 123 x)))))))))) | ||
12345678901234567890 | ||
(addInteger -321 (multiplyInteger 123 x))))))))) |
26 changes: 12 additions & 14 deletions
26
...tx-plugin/test/IntegerLiterals/9.6/integerLiterals-NoStrict-NoNegativeLiterals.pir.golden
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 |
---|---|---|
@@ -1,20 +1,18 @@ | ||
program | ||
1.1.0 | ||
(\(x : integer) -> | ||
addInteger | ||
24680135792468013579 | ||
\(x : integer) -> | ||
addInteger | ||
24680135792468013579 | ||
(addInteger | ||
-99887766554433221100 | ||
(addInteger | ||
-99887766554433221100 | ||
98765432109876543210 | ||
(addInteger | ||
98765432109876543210 | ||
-654 | ||
(addInteger | ||
-654 | ||
456 | ||
(addInteger | ||
456 | ||
13579246801357924680 | ||
(addInteger | ||
13579246801357924680 | ||
-11223344556677889900 | ||
(addInteger | ||
-11223344556677889900 | ||
(addInteger | ||
12345678901234567890 | ||
(addInteger -321 (multiplyInteger 123 x)))))))))) | ||
12345678901234567890 | ||
(addInteger -321 (multiplyInteger 123 x))))))))) |
26 changes: 12 additions & 14 deletions
26
plutus-tx-plugin/test/IntegerLiterals/9.6/integerLiterals-Strict-NegativeLiterals.pir.golden
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 |
---|---|---|
@@ -1,20 +1,18 @@ | ||
program | ||
1.1.0 | ||
(\(x : integer) -> | ||
addInteger | ||
24680135792468013579 | ||
\(x : integer) -> | ||
addInteger | ||
24680135792468013579 | ||
(addInteger | ||
-99887766554433221100 | ||
(addInteger | ||
-99887766554433221100 | ||
98765432109876543210 | ||
(addInteger | ||
98765432109876543210 | ||
-654 | ||
(addInteger | ||
-654 | ||
456 | ||
(addInteger | ||
456 | ||
13579246801357924680 | ||
(addInteger | ||
13579246801357924680 | ||
-11223344556677889900 | ||
(addInteger | ||
-11223344556677889900 | ||
(addInteger | ||
12345678901234567890 | ||
(addInteger -321 (multiplyInteger 123 x)))))))))) | ||
12345678901234567890 | ||
(addInteger -321 (multiplyInteger 123 x))))))))) |
26 changes: 12 additions & 14 deletions
26
...s-tx-plugin/test/IntegerLiterals/9.6/integerLiterals-Strict-NoNegativeLiterals.pir.golden
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 |
---|---|---|
@@ -1,20 +1,18 @@ | ||
program | ||
1.1.0 | ||
(\(x : integer) -> | ||
addInteger | ||
24680135792468013579 | ||
\(x : integer) -> | ||
addInteger | ||
24680135792468013579 | ||
(addInteger | ||
-99887766554433221100 | ||
(addInteger | ||
-99887766554433221100 | ||
98765432109876543210 | ||
(addInteger | ||
98765432109876543210 | ||
-654 | ||
(addInteger | ||
-654 | ||
456 | ||
(addInteger | ||
456 | ||
13579246801357924680 | ||
(addInteger | ||
13579246801357924680 | ||
-11223344556677889900 | ||
(addInteger | ||
-11223344556677889900 | ||
(addInteger | ||
12345678901234567890 | ||
(addInteger -321 (multiplyInteger 123 x)))))))))) | ||
12345678901234567890 | ||
(addInteger -321 (multiplyInteger 123 x))))))))) |
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
Oops, something went wrong.
f912edc
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Possible performance regression was detected for benchmark 'Plutus Benchmarks'.
Benchmark result of this commit is worse than the previous benchmark result exceeding threshold
1.05
.validation-auction_1-4
327.5
μs289
μs1.13
validation-auction_2-1
257.1
μs212.4
μs1.21
validation-escrow-redeem_2-1
580
μs524.6
μs1.11
validation-escrow-redeem_2-2
580.1
μs403.1
μs1.44
validation-escrow-redeem_2-3
578.5
μs404.3
μs1.43
validation-escrow-refund-1
221.7
μs153.5
μs1.44
validation-future-increase-margin-1
341.5
μs244.6
μs1.40
validation-game-sm-success_1-2
245.5
μs201
μs1.22
validation-game-sm-success_1-3
908.9
μs638.2
μs1.42
validation-game-sm-success_1-4
332.8
μs233.3
μs1.43
validation-game-sm-success_2-1
553.2
μs388.6
μs1.42
validation-game-sm-success_2-2
285.2
μs200.8
μs1.42
validation-game-sm-success_2-3
911.1
μs818
μs1.11
validation-multisig-sm-1
565.3
μs404.6
μs1.40
validation-multisig-sm-2
549.4
μs394.8
μs1.39
validation-multisig-sm-8
560
μs513.7
μs1.09
validation-multisig-sm-9
561.9
μs392.5
μs1.43
validation-multisig-sm-10
792.3
μs554.1
μs1.43
validation-ping-pong-1
469.7
μs332.1
μs1.41
validation-ping-pong-2
469.3
μs331.8
μs1.41
validation-ping-pong_2-1
285.3
μs200.7
μs1.42
validation-uniswap-4
476.3
μs333.3
μs1.43
validation-uniswap-5
1640
μs1148
μs1.43
validation-uniswap-6
457.4
μs319.7
μs1.43
validation-vesting-1
500
μs350.3
μs1.43
validation-decode-auction_1-1
273.4
μs188.2
μs1.45
validation-decode-auction_1-2
762.9
μs539.6
μs1.41
validation-decode-escrow-redeem_1-2
443.2
μs308.7
μs1.44
validation-decode-escrow-redeem_2-1
443.9
μs308.6
μs1.44
validation-decode-escrow-redeem_2-2
445
μs308.3
μs1.44
validation-decode-escrow-redeem_2-3
332.3
μs308.9
μs1.08
validation-decode-escrow-refund-1
444.4
μs309.3
μs1.44
validation-decode-future-increase-margin-1
328.8
μs227.3
μs1.45
validation-decode-future-increase-margin-2
444.9
μs325.2
μs1.37
validation-decode-future-pay-out-3
440.8
μs409.9
μs1.08
validation-decode-future-pay-out-4
969.3
μs917.3
μs1.06
validation-decode-future-settle-early-1
334.4
μs318.2
μs1.05
validation-decode-game-sm-success_1-2
230.2
μs201.3
μs1.14
validation-decode-game-sm-success_1-3
730.7
μs505.5
μs1.45
validation-decode-game-sm-success_1-4
229.5
μs165.3
μs1.39
validation-decode-game-sm-success_2-1
736.9
μs504.3
μs1.46
validation-decode-game-sm-success_2-2
200.6
μs160
μs1.25
validation-decode-game-sm-success_2-3
543
μs505.6
μs1.07
validation-decode-multisig-sm-7
686.5
μs561.7
μs1.22
validation-decode-multisig-sm-8
801.6
μs563.4
μs1.42
validation-decode-multisig-sm-9
822.6
μs563.4
μs1.46
validation-decode-multisig-sm-10
824.5
μs560.6
μs1.47
validation-decode-ping-pong-1
694.4
μs470.8
μs1.47
validation-decode-ping-pong-2
695.4
μs599.2
μs1.16
validation-decode-stablecoin_2-1
910.7
μs834.3
μs1.09
validation-decode-stablecoin_2-3
908.1
μs833.7
μs1.09
validation-decode-stablecoin_2-4
230.2
μs159.5
μs1.44
validation-decode-token-account-1
337.5
μs225.4
μs1.50
validation-decode-token-account-2
266.9
μs207.5
μs1.29
validation-decode-uniswap-3
838.1
μs713.8
μs1.17
validation-decode-uniswap-4
251
μs174.5
μs1.44
validation-decode-uniswap-5
1032
μs710.8
μs1.45
validation-decode-uniswap-6
196.1
μs174.3
μs1.13
nofib-clausify/formula1
3856
μs3595
μs1.07
marlowe-semantics/0000020002010200020101020201000100010001020101020201010000020102
454.7
μs320.4
μs1.42
marlowe-role-payout/06317060a8e488b1219c9dae427f9ce27918a9e09ee8ac424afa33ca923f7954
228.4
μs180.9
μs1.26
marlowe-role-payout/07658a6c898ad6d624c37df1e49e909c2e9349ba7f4c0a6be5f166fe239bfcae
228.4
μs162.9
μs1.40
marlowe-role-payout/0bdca1cb8fa7e38e09062557b82490714052e84e2054e913092cd84ac071b961
277.4
μs198.7
μs1.40
marlowe-role-payout/0c9d3634aeae7038f839a1262d1a8bc724dc77af9426459417a56ec73240f0e0
250
μs178.2
μs1.40
marlowe-role-payout/0d0f01050a0a0a0b0b050d0404090e0d0506000d0a041003040e0f100e0a0408
247.6
μs202.1
μs1.23
marlowe-role-payout/0dbb692d2bf22d25eeceac461cfebf616f54003077a8473abc0457f18e025960
280.8
μs199.4
μs1.41
marlowe-role-payout/0e00171d0f1e1f14070d0a00091f07101808021d081e1b120219081312081e15
242.9
μs173.3
μs1.40
marlowe-role-payout/1a20b465d48a585ffd622bd8dc26a498a3c12f930ab4feab3a5064cfb3bc536a
223.5
μs187.4
μs1.19
marlowe-role-payout/211e1b6c10260c4620074d2e372c260d38643a3d605f63772524034f0a4a7632
252.2
μs180
μs1.40
marlowe-role-payout/21a1426fb3fb3019d5dc93f210152e90b0a6e740ef509b1cdd423395f010e0ca
265.1
μs188.9
μs1.40
marlowe-role-payout/224ce46046fab9a17be4197622825f45cc0c59a6bd1604405148e43768c487ef
240.4
μs171.1
μs1.41
marlowe-role-payout/332c2b1c11383d1b373e1315201f1128010e0e1518332f273f141b23243f2a07
229.7
μs164.7
μs1.39
marlowe-role-payout/3565ee025317e065e8555eef288080276716366769aad89e03389f5ec4ce26d7
253
μs181.2
μs1.40
marlowe-role-payout/3569299fc986f5354d02e627a9eaa48ab46d5af52722307a0af72bae87e256dc
235.1
μs169.3
μs1.39
marlowe-role-payout/36866914aa07cf62ef36cf2cd64c7f240e3371e27bb9fff5464301678e809c40
234.9
μs168.9
μs1.39
marlowe-role-payout/371c10d2526fc0f09dbe9ed59e44dcd949270b27dc42035addd7ff9f7e0d05e7
286.7
μs204.9
μs1.40
marlowe-role-payout/3897ef714bba3e6821495b706c75f8d64264c3fdaa58a3826c808b5a768c303d
245.7
μs177
μs1.39
This comment was automatically generated by workflow using github-action-benchmark.
CC: @IntersectMBO/plutus-core