
     1  %system %integer %fn %spec  getloadavg (%long %real %array %name   loadavg, %integer   nelem)
     2  
503 @ 4405:         LINE   1 "regression-run-tmp/systest.imp"
504 @ 4439:         DEF    GETLOADAVG (_GETLOADAVG) p1=V_0081 a/tf=18 b/format=1 c/ostate=3c  type=1 (integer) form=8 (function) special=0 (<special:0>) linkage=4 (system) spec=1 indirect=1 unass=1
505 @ 4461:         START  ( FORMAL PARAMETERS  {lev=0 --> 1, nested=0 --> 1}
506 @ 4462:            DEF    LOADAVG p1=V_0082 a/tf=2c b/format=4 c/ostate=140  type=2 (real) form=12 (<form:12>) special=0 (<special:0>) linkage=0 (auto) spec=0 indirect=0 unass=0
507 @ 4481:            DEF    NELEM p1=V_0083 a/tf=11 b/format=1 c/ostate=0  type=1 (integer) form=1 (simple) special=0 (<special:0>) linkage=0 (auto) spec=0 indirect=0 unass=0
508 @ 4498:         FINISH ) {lev=0}

     3  %begin
509 @ 4499:         LINE   3 "regression-run-tmp/systest.imp"
510 @ 4533:         BEGIN  _lev0id0 {lev=0 --> 1}

     4    %integer rc
511 @ 4534:            LINE   4 "regression-run-tmp/systest.imp"
512 @ 4568:            DEF    RC p1=V_0082 a/tf=11 b/format=1 c/ostate=0  type=1 (integer) form=1 (simple) special=0 (<special:0>) linkage=0 (auto) spec=0 indirect=0 unass=0

     5    %long %real %array LA(0:2)
513 @ 4582:            LINE   5 "regression-run-tmp/systest.imp"
514 @ 4616:            DEF    LA p1=V_0083 a/tf=2b b/format=4 c/ostate=100  type=2 (real) form=11 (array) special=0 (<special:0>) linkage=0 (auto) spec=0 indirect=0 unass=0
515 @ 4630:            PUSHI  #0x00000000
516 @ 4635:            PUSHI  #0x00000002
517 @ 4640:            DIM    0001 0001

     6    rc = getloadavg (LA, 3)
518 @ 4646:            LINE   6 "regression-run-tmp/systest.imp"
519 @ 4680:            PUSH   RC
520 @ 4683:            PUSH   GETLOADAVG
521 @ 4686:            PUSH   LA
522 @ 4689:            ASSPAR
523 @ 4690:            PUSHI  #0x00000003
524 @ 4695:            ASSPAR
525 @ 4696:            CALL  
526 @ 4697:            ASSVAL

     7    print string("Load average:  1 min: ")
527 @ 4698:            LINE   7 "regression-run-tmp/systest.imp"
528 @ 4732:            PUSH   PRINTSTRING
529 @ 4735:            PUSHS  "Load average:  1 min: "
530 @ 4759:            ASSPAR
531 @ 4760:            CALL  

     8    print(LA(0), 4, 4)
532 @ 4761:            LINE   8 "regression-run-tmp/systest.imp"
533 @ 4795:            PUSH   PRINT
534 @ 4798:            PUSH   LA
535 @ 4801:            PUSHI  #0x00000000
536 @ 4806:            ACCESS
537 @ 4807:            ASSPAR
538 @ 4808:            PUSHI  #0x00000004
539 @ 4813:            ASSPAR
540 @ 4814:            PUSHI  #0x00000004
541 @ 4819:            ASSPAR
542 @ 4820:            CALL  

     9    print string("  5 mins: ")
543 @ 4821:            LINE   9 "regression-run-tmp/systest.imp"
544 @ 4855:            PUSH   PRINTSTRING
545 @ 4858:            PUSHS  "  5 mins: "
546 @ 4870:            ASSPAR
547 @ 4871:            CALL  

    10    print(LA(1), 4, 4)
548 @ 4872:            LINE   10 "regression-run-tmp/systest.imp"
549 @ 4906:            PUSH   PRINT
550 @ 4909:            PUSH   LA
551 @ 4912:            PUSHI  #0x00000001
552 @ 4917:            ACCESS
553 @ 4918:            ASSPAR
554 @ 4919:            PUSHI  #0x00000004
555 @ 4924:            ASSPAR
556 @ 4925:            PUSHI  #0x00000004
557 @ 4930:            ASSPAR
558 @ 4931:            CALL  

    11    print string("  15 mins: ")
559 @ 4932:            LINE   11 "regression-run-tmp/systest.imp"
560 @ 4966:            PUSH   PRINTSTRING
561 @ 4969:            PUSHS  "  15 mins: "
562 @ 4982:            ASSPAR
563 @ 4983:            CALL  

    12    print(LA(2), 4, 4)
564 @ 4984:            LINE   12 "regression-run-tmp/systest.imp"
565 @ 5018:            PUSH   PRINT
566 @ 5021:            PUSH   LA
567 @ 5024:            PUSHI  #0x00000002
568 @ 5029:            ACCESS
569 @ 5030:            ASSPAR
570 @ 5031:            PUSHI  #0x00000004
571 @ 5036:            ASSPAR
572 @ 5037:            PUSHI  #0x00000004
573 @ 5042:            ASSPAR
574 @ 5043:            CALL  

    13    newline
575 @ 5044:            LINE   13 "regression-run-tmp/systest.imp"
576 @ 5078:            PUSH   NEWLINE
577 @ 5081:            CALL  

    14  %endofprogram
578 @ 5082:            LINE   14 "regression-run-tmp/systest.imp"
579 @ 5116:         END    _lev0id0 {lev=1 --> 0}
580 @ 5117:         END     {lev=0 --> -1}
581 @ 5118: 

