Word.out 1.2 KB

12345678910111213141516171819202122232425262728293031323334
  1. EXECUTED_PROGRAM
  2. ret > ExitSuccess
  3. out > Word.NumWord =
  4. out > Agda.Builtin.FromNat.Number.constructor _ (λ a _ → toWord64 a)
  5. out > Word.NumNat = Agda.Builtin.FromNat.Number.constructor _ (λ a _ → a)
  6. out > Word.natOp = λ a b c → toWord64 (a (fromWord64 b) (fromWord64 c))
  7. out > Word._^_ =
  8. out > λ a b →
  9. out > case b of
  10. out > 0 → 1
  11. out > _ → let c = b - 1 in a * Word._^_ a c
  12. out > Word.2⁶⁴ = Word._^_ 2 64
  13. out > Word.addWord = λ a b → a +64 b
  14. out > Word.subWord = λ a b → a -64 b
  15. out > Word.mulWord = λ a b → a *64 b
  16. out > Word.NonZero = _
  17. out > Word.div = λ a b _ → quot a b
  18. out > Word.mod = λ a b _ → rem a b
  19. out > Word.NonZeroWord = _
  20. out > Word.divWord = λ a b _ → quot64 a b
  21. out > Word.modWord = λ a b _ → rem64 a b
  22. out > Word.eqWord = λ a b → a ==64 b
  23. out > Word.ltWord = λ a b → a <64 b
  24. out > Word.2^63 = 1 +64 quot64 (0 -64 1) 2
  25. out > Word.test = 100 +64 Word.2^63 +64 (1 +64 Word.2^63)
  26. out > Word.prf = _
  27. out > Word.prf' = _
  28. out > Word.main = Word.putStrLn (Word.showWord Word.test)
  29. out > Word.ltDouble = λ a b → 2 *64 a <64 b
  30. out > Word.lt4x = λ a _ → let b = 2 *64 a in seq b (Word.ltDouble b) b
  31. out > 101
  32. out >