-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
formal-ledger-specification commit 25f0dd2d5cafef230e607c08d81c8163b4…
…fa9af1
- Loading branch information
Showing
26 changed files
with
12,795 additions
and
12,776 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,37 @@ | ||
{-# LANGUAGE BangPatterns #-} | ||
{-# LANGUAGE EmptyCase #-} | ||
{-# LANGUAGE EmptyDataDecls #-} | ||
{-# LANGUAGE ExistentialQuantification #-} | ||
{-# LANGUAGE NoMonomorphismRestriction #-} | ||
{-# LANGUAGE OverloadedStrings #-} | ||
{-# LANGUAGE PatternSynonyms #-} | ||
{-# LANGUAGE RankNTypes #-} | ||
{-# LANGUAGE ScopedTypeVariables #-} | ||
|
||
{-# OPTIONS_GHC -Wno-overlapping-patterns #-} | ||
|
||
module MAlonzo.Code.Agda.Builtin.FromNat where | ||
|
||
import MAlonzo.RTE (coe, erased, AgdaAny, addInt, subInt, mulInt, | ||
quotInt, remInt, geqInt, ltInt, eqInt, add64, sub64, mul64, quot64, | ||
rem64, lt64, eq64, word64FromNat, word64ToNat) | ||
import qualified MAlonzo.RTE | ||
import qualified Data.Text | ||
import qualified MAlonzo.Code.Agda.Primitive | ||
|
||
-- Agda.Builtin.FromNat.Number | ||
d_Number_10 a0 a1 = () | ||
newtype T_Number_10 | ||
= C_Number'46'constructor_55 (Integer -> AgdaAny -> AgdaAny) | ||
-- Agda.Builtin.FromNat.Number.Constraint | ||
d_Constraint_24 :: T_Number_10 -> Integer -> () | ||
d_Constraint_24 = erased | ||
-- Agda.Builtin.FromNat.Number.fromNat | ||
d_fromNat_30 :: T_Number_10 -> Integer -> AgdaAny -> AgdaAny | ||
d_fromNat_30 v0 | ||
= case coe v0 of | ||
C_Number'46'constructor_55 v2 -> coe v2 | ||
_ -> MAlonzo.RTE.mazUnreachableError | ||
-- Agda.Builtin.FromNat._.fromNat | ||
d_fromNat_34 :: T_Number_10 -> Integer -> AgdaAny -> AgdaAny | ||
d_fromNat_34 v0 = coe d_fromNat_30 (coe v0) |
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,27 @@ | ||
{-# LANGUAGE BangPatterns #-} | ||
{-# LANGUAGE EmptyCase #-} | ||
{-# LANGUAGE EmptyDataDecls #-} | ||
{-# LANGUAGE ExistentialQuantification #-} | ||
{-# LANGUAGE NoMonomorphismRestriction #-} | ||
{-# LANGUAGE OverloadedStrings #-} | ||
{-# LANGUAGE PatternSynonyms #-} | ||
{-# LANGUAGE RankNTypes #-} | ||
{-# LANGUAGE ScopedTypeVariables #-} | ||
|
||
{-# OPTIONS_GHC -Wno-overlapping-patterns #-} | ||
|
||
module MAlonzo.Code.Data.Nat.Literals where | ||
|
||
import MAlonzo.RTE (coe, erased, AgdaAny, addInt, subInt, mulInt, | ||
quotInt, remInt, geqInt, ltInt, eqInt, add64, sub64, mul64, quot64, | ||
rem64, lt64, eq64, word64FromNat, word64ToNat) | ||
import qualified MAlonzo.RTE | ||
import qualified Data.Text | ||
import qualified MAlonzo.Code.Agda.Builtin.FromNat | ||
|
||
-- Data.Nat.Literals.number | ||
d_number_6 :: MAlonzo.Code.Agda.Builtin.FromNat.T_Number_10 | ||
d_number_6 | ||
= coe | ||
MAlonzo.Code.Agda.Builtin.FromNat.C_Number'46'constructor_55 | ||
(\ v0 v1 -> v0) |
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.