Records.hs 3.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123
  1. {-# OPTIONS -fglasgow-exts #-}
  2. -- Generated by Alonzo
  3. module Records where
  4. import RTS
  5. import qualified RTP
  6. import qualified Nat
  7. import qualified Bool
  8. name1 = "Point"
  9. data T1 a b = C1 a b
  10. d1 = ()
  11. name2 = "x"
  12. d2 = d2_1
  13. where d2_1 (Records.C1 v0 _) = cast v0
  14. name3 = "y"
  15. d3 = d3_1
  16. where d3_1 (Records.C1 _ v0) = cast v0
  17. name4 = "Point'"
  18. data T4 a b = C7 a b
  19. d4 = ()
  20. name7 = "mkPoint"
  21. name8 = "origin"
  22. d8 = d8_1
  23. where d8_1
  24. = cast
  25. (Records.C1 (cast (RTP._primIntToNat (0 :: Prelude.Int)))
  26. (cast (RTP._primIntToNat (0 :: Prelude.Int))))
  27. name9 = "origin'"
  28. d9 = d9_1
  29. where d9_1
  30. = cast
  31. (Records.C7 (cast (RTP._primIntToNat (0 :: Prelude.Int)))
  32. (cast (RTP._primIntToNat (0 :: Prelude.Int))))
  33. name10 = "getX"
  34. d10 = d10_1
  35. where d10_1 = cast Records.d2
  36. name11 = "sum"
  37. d11 = d11_1
  38. where d11_1 v0
  39. = cast
  40. (Nat.d4 (cast (Records.d16 (cast v0)))
  41. (cast (Records.d17 (cast v0))))
  42. name16 = "x"
  43. d16 = d16_1
  44. where d16_1 v0 = cast (Records.d2 (cast v0))
  45. name17 = "y"
  46. d17 = d17_1
  47. where d17_1 v0 = cast (Records.d3 (cast v0))
  48. name20 = "_==_"
  49. data T20 = C23
  50. d20 v2 v1 = ()
  51. name23 = "refl"
  52. name25 = "\951-Point"
  53. d25 = d25_1
  54. where d25_1 _ = cast Records.C23
  55. name27 = "True"
  56. data T27 = C27
  57. d27 = ()
  58. name28 = "tt"
  59. d28 = d28_1
  60. where d28_1 = cast Records.C27
  61. name29 = "False"
  62. data T29 = C29
  63. d29 = ()
  64. name30 = "NonZero"
  65. d30 = d30_1
  66. where d30_1 (Nat.C2) = cast Records.d29
  67. d30_1 a = cast d30_2 a
  68. d30_2 (Nat.C3 _) = cast Records.d27
  69. name34 = "_/_"
  70. d34 = d34_1
  71. where d34_1 _ (Nat.C2) _ = undefined
  72. d34_1 a b c = cast d34_2 a b c
  73. d34_2 (Nat.C2) (Nat.C3 _) v0 = cast Nat.C2
  74. d34_2 a b c = cast d34_3 a b c
  75. d34_3 (Nat.C3 v0) (Nat.C3 v1) v2
  76. = cast
  77. (Records.d41 (cast v0) (cast v1) (cast v2)
  78. (cast (Nat.C3 (cast v0)))
  79. (cast (Nat.C3 (cast v1)))
  80. (cast v1))
  81. name41 = "div"
  82. d41 = d41_1
  83. where d41_1 v0 v1 v2 (Nat.C2) (Nat.C2) _
  84. = cast (Nat.C3 (cast Nat.C2))
  85. d41_1 a b c d e f = cast d41_2 a b c d e f
  86. d41_2 v0 v1 v2 (Nat.C2) (Nat.C3 _) v3 = cast Nat.C2
  87. d41_2 a b c d e f = cast d41_3 a b c d e f
  88. d41_3 v0 v1 v2 (Nat.C3 v3) (Nat.C2) v4
  89. = cast
  90. (Nat.C3
  91. (cast
  92. (Records.d41 (cast v0) (cast v1) (cast v2) (cast v3) (cast v4)
  93. (cast v4))))
  94. d41_3 a b c d e f = cast d41_4 a b c d e f
  95. d41_4 v0 v1 v2 (Nat.C3 v3) (Nat.C3 v4) v5
  96. = cast
  97. (Records.d41 (cast v0) (cast v1) (cast v2) (cast v3) (cast v4)
  98. (cast v5))
  99. name50 = "five"
  100. d50 = d50_1
  101. where d50_1
  102. = cast
  103. (Records.d34 (cast (RTP._primIntToNat (17 :: Prelude.Int)))
  104. (cast (RTP._primIntToNat (3 :: Prelude.Int)))
  105. (cast Records.C27))
  106. name53 = "\8707"
  107. data T53 a b = C53 a b
  108. d53 = ()
  109. name56 = "witness"
  110. d56 = d56_1
  111. where d56_1 _ _ (Records.C53 v0 _) = cast v0
  112. name57 = "proof"
  113. d57 = d57_1
  114. where d57_1 _ _ (Records.C53 _ v0) = cast v0