;; -*-theme-d-*-

;; Copyright (C) 2014  Tommi Höynälänmaa
;; Distributed under GNU General Public License version 3,
;; see file doc/GPL-3.

;; Expected results: translation and running OK

;; Expected output:
;; +inf.0
;; +nan.0
;; #f
;; #f
;; #t
;; #t
;; #f
;; #f
;; #f
;; #t
;; #f

(define-proper-program (tests test653)

  (import (standard-library core)
	  (standard-library basic-math)
	  (standard-library console-io))

  (define-simple-proc main (() <none> nonpure)
    (let* ((r1 (* 1e300 1e300))
	   (r2 (/ r1 r1)))
      (console-display-line r1)
      (console-display-line r2)
      (console-display-line (nan? 1.0))
      (console-display-line (nan? r1))
      (console-display-line (nan? r2))
      (console-display-line (finite? 1.0))
      (console-display-line (finite? r1))
      (console-display-line (finite? r2))
      (console-display-line (infinite? 1.0))
      (console-display-line (infinite? r1))
      (console-display-line (infinite? r2)))))




