;;; Compiled by f2cl version 2.0 beta 2002-05-06
;;; 
;;; Options: ((:prune-labels nil) (:auto-save t) (:relaxed-array-decls t)
;;;           (:coerce-assigns :as-needed) (:array-type ':simple-array)
;;;           (:array-slicing t) (:declare-common nil)
;;;           (:float-format double-float))

(in-package "SLATEC")


(defun dqawf
       (f a omega integr epsabs result abserr neval ier limlst lst leniw maxp1
        lenw iwork work)
  (declare (type (array double-float (*)) work)
   (type (array f2cl-lib:integer4 (*)) iwork)
   (type f2cl-lib:integer4 lenw maxp1 leniw lst limlst ier neval integr)
   (type double-float abserr result epsabs omega a))
  (prog ((limit 0) (ll2 0) (lvl 0) (l1 0) (l2 0) (l3 0) (l4 0) (l5 0) (l6 0))
    (declare (type f2cl-lib:integer4 l6 l5 l4 l3 l2 l1 lvl ll2 limit))
    (setf ier 6)
    (setf neval 0)
    (setf result 0.0)
    (setf abserr 0.0)
    (if
     (or (< limlst 3)
         (< leniw (f2cl-lib:int-add limlst 2))
         (< maxp1 1)
         (< lenw
            (f2cl-lib:int-add (f2cl-lib:int-mul leniw 2)
                              (f2cl-lib:int-mul maxp1 25))))
     (go label10))
    (setf limit (the f2cl-lib:integer4 (truncate (- leniw limlst) 2)))
    (setf l1 (f2cl-lib:int-add limlst 1))
    (setf l2 (f2cl-lib:int-add limlst l1))
    (setf l3 (f2cl-lib:int-add limit l2))
    (setf l4 (f2cl-lib:int-add limit l3))
    (setf l5 (f2cl-lib:int-add limit l4))
    (setf l6 (f2cl-lib:int-add limit l5))
    (setf ll2 (f2cl-lib:int-add limit l1))
    (multiple-value-bind
        (var-0 var-1 var-2 var-3 var-4 var-5 var-6 var-7 var-8 var-9 var-10
         var-11 var-12 var-13 var-14 var-15 var-16 var-17 var-18 var-19 var-20
         var-21 var-22)
        (dqawfe f a omega integr epsabs limlst limit maxp1 result abserr neval
         ier (f2cl-lib:array-slice work double-float (1) ((1 *)))
         (f2cl-lib:array-slice work double-float (l1) ((1 *)))
         (f2cl-lib:array-slice iwork f2cl-lib:integer4 (1) ((1 *))) lst
         (f2cl-lib:array-slice work double-float (l2) ((1 *)))
         (f2cl-lib:array-slice work double-float (l3) ((1 *)))
         (f2cl-lib:array-slice work double-float (l4) ((1 *)))
         (f2cl-lib:array-slice work double-float (l5) ((1 *)))
         (f2cl-lib:array-slice iwork f2cl-lib:integer4 (l1) ((1 *)))
         (f2cl-lib:array-slice iwork f2cl-lib:integer4 (ll2) ((1 *)))
         (f2cl-lib:array-slice work double-float (l6) ((1 *))))
      (declare
       (ignore var-0 var-1 var-2 var-4 var-5 var-6 var-7 var-12 var-13 var-14
        var-16 var-17 var-18 var-19 var-20 var-21 var-22))
      (setf integr var-3)
      (setf result var-8)
      (setf abserr var-9)
      (setf neval var-10)
      (setf ier var-11)
      (setf lst var-15))
    (setf lvl 0)
   label10
    (if (= ier 6) (setf lvl 1))
    (if (/= ier 0)
        (multiple-value-bind
            (var-0 var-1 var-2 var-3 var-4)
            (xermsg "SLATEC" "DQAWF" "ABNORMAL RETURN" ier lvl)
          (declare (ignore var-0 var-1 var-2))
          (when var-3 (setf ier var-3))
          (when var-4 (setf lvl var-4))))
    (go end_label)
   end_label
    (return
     (values nil
             nil
             nil
             integr
             nil
             result
             abserr
             neval
             ier
             nil
             lst
             nil
             nil
             nil
             nil
             nil))))

