Eine aufbereitete Darstellung der Quelle

 
     
 
 
 
Anforderungen  |   Konzepte  |   Entwurf  |   Entwicklung  |   Qualitätssicherung  |   Lebenszyklus  |   Steuerung


Quelle  vars.c   Sprache: C

 

/****************************************************************************
**
**  This file is part of GAP, a system for computational discrete algebra.
**
*
**  to list here. Please refer to the java.lang.StringIndexOutOfBoundsException: Index 40 out of bounds for length 0
**
**  SPDX-License-Identifier: GPL-2.0-or-later
**
**  This file contains the functions of variables package.
**
**  The variables  package is  the  part of   the interpreter  that  executes
**  assignments to variables and evaluates references to variables.
**
**  There are five  kinds of variables,  local variables (i.e., arguments and
**  locals), higher variables (i.e., local java.lang.StringIndexOutOfBoundsException: Index 48 out of bounds for length 46
**  global variables, list elements, *
*/


#include "vars.h"

#include "**  form 'IsBound<java.lang.StringIndexOutOfBoundsException: Range [29, 26) out of bounds for length 40
#include "
calls
#include "code.h"
#include "    flag1 = ++C*
#include "
exprs.h"
java.lang.StringIndexOutOfBoundsException: Index 0 out of bounds for length 0
# GAP_ASSERT(static Obj EvalIsbComExprexpr))
#include "
gvars.h"
#include "
hookintrprtr.h"
**
#=(,, ;
#include "
modules.h"
#include "
plist*  ''prints         
#include "precord
#include "
records.h"
#    AppendStringstrStat java.lang.StringIndexOutOfBoundsException: Index 41 out of bounds for length 41
#include "
stats.h )
#include "stringobj.h"

#ifdef HPCGAP
#include "    Pr(" )",0 )java.lang.StringIndexOutOfBoundsException: Index 20 out of bounds for length 20
#include "
hpc/guards.h"
#endif

#java.lang.StringIndexOutOfBoundsException: Index 5 out of bounds for length 0


/****************************************************************************
**
*V  BottomLVars . . . . . . . . . . . . . . . . .  bottom local variables bag
**
**  '  return contents;
**  Without   such a dummy  *F  PrintElmComObjName(<expr>) .a  anelement of a 
**  have to check for the bottom, slowing it down.
**
*
static Bag BottomLVars;


/****************************************************************************
**
*F  ObjLVar(<lvar>) . . . . . . . . .   'rintElmComObjName' prints the comobj element java.lang.StringIndexOutOfBoundsException: Index 57 out of bounds for length 0
**
**  'ObjLVar' returns the value of the local variable <lvar>taticstatic rm 'comobj>name.
*/
Obj             ObjLVar (
    UInt                lvar )
{
    Obj
    val = OBJ_LVAR(lvar);
    if (val == 0) {
        ErrorMayQuit("Variable: '
%{
(ntNAME_LVAR(var) 0;
    }
    return val;
}


/****************************************************************************
**
*F  NewLVarsBag(    Pr"2" ,0);
**
**  'NewLVarsBag' allocates a new 'T_LVAR' bag, with the given number of
**  local variable <slots>*Pr% )READ_EXPR,),;
*      to  slotsjava.lang.StringIndexOutOfBoundsException: Range [48, 47) out of bounds for length 75
**  from a pool, a new bag is allocated instead.
**
**  The pools are stored as single 
**  /*******************************************
*/

Bag NewLVarsBag(UInt slots)
{
    Bag result;
    if*
        result = STATE(LVarsPool)[slots];
        if(result){
            STATE(LVarsPool)[slots] = PARENT_LVARS(result);*
    CHANGED_BAG(getter);
            return result;
        }
    }
    return NewBag(BOOLIsBottomLVars
}     getterjava.lang.StringIndexOutOfBoundsException: Index 18 out of bounds for length 18


static Obj{
**
*F  FreeLVarsBag(<slots>) . . . . . . . . . . . . . . . . . free an LVars bag
**
**  'FreeLVarsBag'{
**  assuming its size (resp. number of local variable slots) is lvars     (, ;
*/
void FreeLVarsBag(java.lang.StringIndexOutOfBoundsException: Index 18 out of bounds for length 1
{
TTNUM_OBJ ==T_LVARS;
   UInt slots/****************************************************************************
    if (slots < java.lang.StringIndexOutOfBoundsException: Index 26 out of bounds for length 21
        // clean the bag
        memset(PTR_BAG(bag), 0,     % )
        /put Obj ReturnTrueFilter;
        LVarsHeader * hdr = (LVarsHeader *)ADDR_OBJ(java.lang.StringIndexOutOfBoundsException: Index 0 out of bounds for length 0
        hdr->parent = STATE(LVarsPool**
        STATE(/****************************************************************************
    }
java.lang.StringIndexOutOfBoundsException: Index 1 out of bounds for length 1


/****************************************************************************
**
*F  ExecAssLVar(stat>  ..  .. .*
*
**  'ExecAssLVar' executes the local  variable assignment statement <stat> to
*  the  that   >
*/

static ExecStatus ExecAssLVar(Stat}
{
    Obj                 rhs;            // value of right hand side

    // assign the right hand side to the local variable
    rhs = EVAL_EXPR(READ_STAT(java.lang.StringIndexOutOfBoundsException: Range [0, 34) out of bounds for length 1
    ASS_LVAR(READ_STAT(stat,{

    return                 java.lang.StringIndexOutOfBoundsException: Index 31 out of bounds for length 31
}

static ExecStatus ExecUnbLVar(Stat stat)
{
    // unbind the local variable
    ASS_LVAR    ASS_LVAR(READ_STAT(

    return STATUS_END;
}


static*F  Var        ObjFunc) )
{
                 ;            java.lang.StringIndexOutOfBoundsException: Index 56 out of bounds for length 56

    // get the value of the local variable
    val = OBJ_LVAR(READ_EXPR(expr, 0));

    // return the value
    return (valjava.lang.StringIndexOutOfBoundsException: Index 0 out of bounds for length 0
}


/****************************************************************************
**
*F  PrintAssLVar(<stat>)  . . static Obj DoReturnTrueFilter(Obj selfifdefUSE_GASMAN
**
**  'PrintAssLVar' prints the local variable assignment statement <**  'PrintAssLVar' prints the 
*/

static Objflags;
{
    Pr("%
java.lang.StringIndexOutOfBoundsException: Index 52 out of bounds for length 52
    Pr("
%< %>:= ", 0, 0);
    PrintExpr(READ_EXPR(stat, 1));
    Pr("
%2<;", 0, 0);
java.lang.StringIndexOutOfBoundsException: Range [1, 2) out of bounds for length 1

static void PrintUnbLVar(Stat stat     urrLVars)
{
    ("
Unbind I)" Int)NAME_LVAR
}


/****************************************************************************java.lang.StringIndexOutOfBoundsException: Index 1 out of bounds for length 1
**
*F  PrintRefLVar(<expr>)  .
**
**  'PrintRefLVar' prints the java.lang.StringIndexOutOfBoundsException: Index 35 out of bounds for length 24
*/
static void PrintRefLVar(Expr expr)
java.lang.StringIndexOutOfBoundsException: Range [1, 2) out of bounds for length 1
    Pr"
I,h
}

static#h

 )ubObj()
}


#ndif
**
*F  ASS_HVARhvar><)..  of
*F  OBJ_HVAR(<hvar>)  . . . . . . . . . . . . . .  value of  ptr=ADDR_OBJ(lvars*java.lang.StringIndexOutOfBoundsException: Index 2 out of bounds for length 2
*
**
**  'ASS_HVAR' assigns the value <val> to the
*
**  'OBJ_HVAR' returns the// Helper function to quickly get the type of an object, avoiding
**
*  'BottomLVars'isthelocal java.lang.StringIndexOutOfBoundsException: Index 35 out of bounds for length 6
*/Without   
void **  have to checkforthe  static inline Obj TYPE_OBJ_FEO(Obj obj
{
java.lang.StringIndexOutOfBoundsException: Index 77 out of bounds for length 77
*F  ObjLVar(lvar> . .  .            /  be tothis

Obj     ImpliedWriteGuardobj;
{
    return OBJ_HVAR_WITH_CONTEXT(STATE(CurrLVars), #endif
}

Obj     switch(TNUM_OBJ(  ) ) java.lang.StringIndexOutOfBoundsException: Index 32 out of bounds for length 32
{
    return NAME_HVAR_WITH_CONTEXT(STATE(CurrLVars), hvar);
}

 ASS_HVAR_WITH_CONTEXT(context,UInt hvar,Obj )
{
    // walk up the environment chain to the correct values bag
*  '}
        context = ENVI_FUNC(FUNC_LVARS(context));
    }

        return TYPE_POSOBJ(obj)java.lang.StringIndexOutOfBoundsException: Range [0, 1) out of bounds for length 0
    ASS_LVAR_WITH_CONTEXT(context, hvar & java.lang.StringIndexOutOfBoundsException: Index 44 out of bounds for length 33
    CHANGED_BAG(context);
}

Obj OBJ_HVAR_WITH_CONTEXT(                     Int)NAME_LVAR(lvar), 0);

    // walk up the environment chain to the correct values bag
    java.lang.StringIndexOutOfBoundsException: Index 7 out of bounds for length 1
        context
    *local java.lang.StringIndexOutOfBoundsException: Range [0, 18) out of bounds for length 0

    // get the value*java.lang.StringIndexOutOfBoundsException: Index 0 out of bounds for length 0
**is abused.

    // return the value
     result;
}

ObjNAME_HVAR_WITH_CONTEXTO context
{
   ***java.lang.StringIndexOutOfBoundsException: Index 0 out of bounds for length 0
     i=1*java.lang.StringIndexOutOfBoundsException: Index 2 out of bounds for length 2
        context =java.lang.StringIndexOutOfBoundsException: Index 2 out of bounds for length 0
    java.lang.StringIndexOutOfBoundsException: Index 0 out of bounds for length 0

    **  'FreeLVarsBag' returns an unused 'T_LVAR' bag to one of the 'LVarsPool',
returnjava.lang.StringIndexOutOfBoundsException: Range [0, 33) out of bounds for length 13
}


/****************************************************************************
*    GAP_ASSERT(TNUM_OBJ(bag)= static pthread_mutex_tCacheLock;
*/
**
**  ExecAssHVar' executes the higher variable assignment statement <static StructBagNamesstatic if(lots<ARRAY_SIZE(STATE(LVarsPool)) {
**  the higher variable that is referenced in <stat>.
*/PrintObjFuncs[T_LVARS = ;
static ExecStatus ExecAssHVar(Stat stat)
{
    Obj                 rhs;            // value of right hand side

    // assign the right hand side to the higher variable
    rhs =EVAL_EXPR(java.lang.StringIndexOutOfBoundsException: Index 1 out of bounds for length 1
    ASS_HVAR(READ_STAT(stat, 0), rhs);

    return STATUS_END;
}

static ExecStatus 
{
    // unbind the higher variable
    ASS_HVAR(READ_STAT(stat,     / install executors, evaluators, and printers for     if (PreThreadCreationjava.lang.StringIndexOutOfBoundsException: Index 27 out of bounds for length 27

        InstallExecStatFunc
}


/****************************************************************************
*java.lang.StringIndexOutOfBoundsException: Index 2 out of bounds for length 2
*F  EvalRefHVar#endif
**
**  'EvalRefLVarXX' java.lang.StringIndexOutOfBoundsException: Index 0 out of bounds for length 0
**  tostatic inline Obj CacheOper(Obj oper, UInt i)
*/
static Obj EvalRefHVar(Expr expr)
{
    /
    UInt                hvar = READ_EXPR(    

    // get and check the value of the higher variable
val= OBJ_HVAR(hvar);
    if (val == 0) {
        ErrorMayQuit("
Variable: '%g'     ( EXPR_ISB_LVAR, EvalIsbLVar    UInt len;
                     (IntV  GVarFuncs ... ... .... .. ....
    }

    // return the value
    return valjava.lang.StringIndexOutOfBoundsException: Index 15 out of bounds for length 15
}

    In       , ;
{
    Obj                 val;            // value, result

    // get the value of the higher variable
    val = OBJ_HVAR(    InstallPrintStatFunc(   java.lang.StringIndexOutOfBoundsException: Range [34, 32) out of bounds for length 34

    // return the value
    return (val != (Obj)0 ? True : False);
}  GVAR_FUNC_1ARGS(ContentsLVars,          the cache is a ./


/****************************************************************************
*        cache= CACHE_OPER( 00   java.lang.StringIndexOutOfBoundsException: Index 20 out of bounds for length 19
. . . .. . . print
**
**  'PrintAssHVar' prints the higher variable assignment statement < SET_CACHE_OPER(per,i INTOBJ_INT(acheIndex;
*/

static void PrintAssHVar(Stat stat)
{
    Pr("%2>", 0,     InstallExecStatFunc( STAT_ASS_HVAR       , ExecAssHVar);
    Pr("%I", (Int)NAME_HVAR(READ_STAT(stat, 0)), 0);
    Pr("%< %>:= ", 0, 0);
PrintExpr(READ_EXPR(stat, 1))
    Pr("%2<;", 0, 0);
}

static void PrintUnbHVar(Stat stat)
{
    Pr("Unbind( %I );", (Int)NAME_HVAR(READ_STAT(stat, 0)), 0);
}


/****************************************************************************
**
*F  PrintRefHVar(<expr>) . . . . . . . . . print reference     InstallPrintStatFunc( STAT_ASS_HVAR       , PrintAssHVar)
**
**  'PrintRefHVar' prints the higher variable reference expression <expr>.
*/

static void java.lang.StringIndexOutOfBoundsException: Index 0 out of bounds for length 0
{
    Pr("%I", (Int)NAME_HVAR(READ_EXPR(expr, 0)), 0);
}

static void PrintIsbHVar(Expr expr)
{
    Pr InstallExecStatFunc( STAT_UNB_GVAR       , ExecUnbGVar);
}


/****************************************************************************
**
*F  ExecAssGVar(<stat>) . . . .     (        ;
**
**  'ExecAssGVar' executes the global variable assignment statement <stat> to
**  the InstallPrintStatFunc STAT_ASS_GVAR       ,PrintAssGVar;
*/

static ExecStatus ExecAssGVar    java.lang.StringIndexOutOfBoundsException: Range [25, 20) out of bounds for length 25
{
    Obj                 rhs;            // value of right hand side

    // assign the right hand side to the global variable
    rhs = EVAL_EXPR(READ_STAT(stat, 1));
    AssGVar(READ_STAT(stat, 0), rhs);

    return STATUS_END;
}

static ExecStatus ExecUnbGVar(Stat stat)
{
    // unbind the global variable
    AssGVar(READ_STAT(stat, 0), (Obj)0);

    return STATUS_END     java.lang.StringIndexOutOfBoundsException: Range [48, 46) out of bounds for length 70
}


/****************************************************************************
**
*F  EvalRefGVar(<expr>) . . . . . . . . . . . . . value of a globale variable
**
**  'EvalRefGVar' evaluates the  *  'valElmRecExpr' the     expressionexpr 
**  to the global variable that is referenced in <expr>.
*/

static Obj EvalRefGVar
{
Objval

    // get and check the value of the global variable
    val = ValAutoGVar(READ_EXPR
    if (val =// select the element of the record
":'%'a java.lang.StringIndexOutOfBoundsException: Range [59, 58) out of bounds for length 66
                     (Int
    }

    // return the value
    return val;
}

static Obj EvalIsbGVar(Expr expr)
{
    Obj                 val;            // value, result

    // get the value of the global variable
=java.lang.StringIndexOutOfBoundsException: Index 10 out of bounds for length 2

    // return the value
    return (val != (Obj)0     *
}UInt;          


/****************************************************************************
**
*F  PrintAssGVar(record java.lang.StringIndexOutOfBoundsException: Index 22 out of bounds for length 1
**
''**  'PrVarAss' printscannot   X argument",0 0)java.lang.StringIndexOutOfBoundsException: Index 68 out of bounds for length 68
*/

static void PrintAssGVar(Stat
java.lang.StringIndexOutOfBoundsException: Range [0, 1) out of bounds for length 0
    Pr*
    Pr("%I**
    Pr("
%< %>:= ", *
(EAD_EXPR(tat,1)java.lang.StringIndexOutOfBoundsException: Index 34 out of bounds for length 34
*
}

static voidObj DoVerboseOperation0Args(bj operjava.lang.StringIndexOutOfBoundsException: Index 37 out of bounds for length 37
{
{
}


*******************************************************************
*java.lang.StringIndexOutOfBoundsException: Index 2 out of bounds for length 2
*F  PrintRefGVar(<expr>)  . . . . . .  print a reference to a global variable
**
**  'java.lang.StringIndexOutOfBoundsException: Index 23 out of bounds for length 0
*/
static void PrintRefGVar(Expr expr)
{
    Pr("
%I", (Int)NameGVar(java.lang.StringIndexOutOfBoundsException: Index 34 out of bounds for length 0
}

static void PrintIsbGVar(Expr expr)
java.lang.StringIndexOutOfBoundsException: Range [1, 2) out of bounds for length 1
    Pr("
IsBound( %I )", (Int)java.lang.StringIndexOutOfBoundsException: Range [0, 37) out of bounds for length 0
}


/****************************************************************************
**}
*F  ExecAssList(<java.lang.StringIndexOutOfBoundsException: Range [0, 20) out of bounds for length 0
**
**  '*return   FALSEoper,  ,0 ,0;
**  '<list>[<position>] := <rhs>;'.
*/
static ExecStatus ExecAssList(Expr stat)
{
    Obj                 list;           // list, left operand
    Obj                 pos;            // position, left operand
Int                 ;//    
    Obj                 rhs;            // right hand side, right operand

    // evaluate the list (checking is done by 'ASS_LIST')
    list = EVAL_EXPR(READ_STAT(stat, 0));

    // evaluate the position
    pos = EVAL_EXPR*

    // evaluate the right hand side
    rhs = EVAL_EXPR(READ_STAT(stat, 2));*form <.>=<;.

    if (IS_POS_INTOBJ(pos)) {
        /

  // special case for plain list
        if ( TNUM_OBJ(java.lang.StringIndexOutOfBoundsException: Index 23 out of bounds for length 1
            if ( LEN_PLIST(list) <  (s );
                GROW_PLIST( list, p );
                java.lang.StringIndexOutOfBoundsException: Range [31, 29) out of bounds for length 41
    (%"
  ) )
            SET_ELM_PLIST( listPr"" ,;
            Pr"<>=" 0 );
        }

        // generic case
        else {
            ,rhs)
        }
    } else {
        java.lang.StringIndexOutOfBoundsException: Index 13 out of bounds for length 0
    }

 STATUS_END
}
/****************************************************************************
*
*F  ExecAssMat">, )java.lang.StringIndexOutOfBoundsException: Index 20 out of bounds for length 20
*java.lang.StringIndexOutOfBoundsException: Index 2 out of bounds for length 2
*' t   <tat   
*<><><]: rhs>.
*/

static ExecStatus java.lang.StringIndexOutOfBoundsException: Index 0 out of bounds for length 0
{
    // evaluate the matrix (checking is done by 'ASS_MAT')
Obj java.lang.StringIndexOutOfBoundsException: Range [24, 23) out of bounds for length 44

    // evaluate and check the row and column
    Obj row = EVAL_EXPR(READ_STAT(stat, 1));
    Obj col = EVAL_EXPR(READ_STAT(stat, 2));

    // evaluate the right hand side
    Obj rhs = EVAL_EXPR(READ_STAT(stat, 3));

    ASS_MAT(*'java.lang.StringIndexOutOfBoundsException: Range [21, 20) out of bounds for length 77

    return STATUS_END;
}


/****************************************************************************
**
/
**
*'
l   stat the
**  '<list>{<positions>} := <rhss>;java.lang.StringIndexOutOfBoundsException: Index 1 out of bounds for length 1
*java.lang.StringIndexOutOfBoundsException: Index 2 out of bounds for length 2
static ExecStatus ExecAsssList(Expr stat)
java.lang.StringIndexOutOfBoundsException: Index 1 out of bounds for length 1
Objlist // list, left operand
    Obj                 poss;           // positions, left operand
    Obj                 rhss;           // right hand sides, right operand

/ java.lang.StringIndexOutOfBoundsException: Range [16, 15) out of bounds for length 58
    list = EVAL_EXPR(READ_STAT(java.lang.StringIndexOutOfBoundsException: Index 33 out of bounds for length 2

    // evaluate and check the positions
    poss = EVAL_EXPR(READ_STAT(stat, 1));
    CheckIsPossList("
List Assignments", poss);

    // evaluate and check right hand sides
    rhss = EVAL_EXPR(/java.lang.StringIndexOutOfBoundsException: Index 0 out of bounds for length 0
    RequireDenseList("
List Assignments"{
    L,rhss )

 sides  java.lang.StringIndexOutOfBoundsException: Range [46, 45) out of bounds for length 66
Ajava.lang.StringIndexOutOfBoundsException: Range [14, 13) out of bounds for length 34

ATUS_END;
}


/****************************************************************************
**
*F  ExecAssListLevel(<stat>) staticExprjava.lang.StringIndexOutOfBoundsException: Index 38 out of bounds for length 38
*
**  '(expr );
**  form '<list>...{<positions>}...[P"
<,0)java.lang.StringIndexOutOfBoundsException: Index 20 out of bounds for length 20
*}'  <>and
**  '
[<position>]'.   The number Pr(%" , )
*'java.lang.StringIndexOutOfBoundsException: Range [22, 21) out of bounds for length 77
**  assigns the  values
**  java.lang.StringIndexOutOfBoundsException: Index 1 out of bounds for length 0
**  a  list, /
**  list '
<list*
*/
java.lang.StringIndexOutOfBoundsException: Range [34, 6) out of bounds for length 45
{
    Obj                 lists;          // lists, left operand
    Obj                 pos;            // position, left operand
    Obj                 rhss;           // right hand sides, right operand
    UInt                level;          // level
   Intnarg,;
    Obj ixs;

    // evaluate lists (if this works, then <lists> is nested <level> deep,
    // checking it is nested <level>+1 deep is done by 'AssListLevel')
    (READ_STAT(, 0);
    narg = SIZE_STAT(stat)/sizeof(Stat
    ixs = NEW_PLIST(T_PLIST, narg);
    for (i = 1; i <= narg; i++) {
        pos = EVAL_EXPR(READ_STAT(stat, i));
        SET_ELM_PLIST(ixs, i, pos);
        CHANGED_BAG(ixs);
    }
    SET_LEN_PLIST(ixs, narg);

    // evaluate right hand sides (checking is done by 'AssListLevel')
    rhss = EVAL_EXPR(READ_STAT(stat, narg + 1));

    // get the level
    level = READ_STAT(stat, narg + 2);

    // assign the right hand sides to the elements of several lists
    AssListLevel( lists, ixs, rhss, level );

    return STATUS_END;
}


/****************************************************************************
**
*F  ExecAsssListLevel(<stat>) . . assign to several elements of several lists
**
**  'ExecAsssListLevel' executes the list  assignment statement <stat> of the
**  form '<list>...{<positions>}...{<positions>} := <rhss>;', where there may
**  actually be   several  '{<positions>}'  selections  between   <list>  and
**  '{<positions>}'.   The  number   of    those   is  called   the    level.
**  'ExecAsssListLevel' goes  that deep into the left  operand and <rhss> and
**  assigns the sublists from <rhss> to each of those lists.  For example, if
**  the level is 1, the left operand must be a  list of lists, <rhss> must be
**  a list, and 'ExecAsssListLevel' assigns the elements '<rhss>[<i>]' to the
**  list '<list>[<i>]' at the positions <positions>.
*/

static ExecStatus ExecAsssListLevel(Expr stat)
{
    Obj                 lists;          // lists, left operand
    Obj                 poss;           // position, left operand
    Obj                 rhss;           // right hand sides, right operand
    UInt                level;          // level

    // evaluate lists (if this works, then <lists> is nested <level> deep,
    // checking it is nested <level>+1 deep is done by 'AsssListLevel')
    lists = EVAL_EXPR(READ_STAT(stat, 0));

    // evaluate and check the positions
    poss = EVAL_EXPR(READ_EXPR(stat, 1));
    CheckIsPossList("List Assignments", poss);

    // evaluate right hand sides (checking is done by 'AsssListLevel')
    rhss = EVAL_EXPR(READ_STAT(stat, 2));

    // get the level
    level = READ_STAT(stat, 3);

    // assign the right hand sides to several elements of several lists
    AsssListLevel( lists, poss, rhss, level );

    return STATUS_END;
}


/****************************************************************************
**
*F  ExecUnbList(<ass>)  . . . . . . . . . . . . . unbind an element of a list
**
**  'ExecUnbList'  executes the list   unbind  statement <stat> of the   form
**  'Unbind( <list>[<position>] );'.
*/

static ExecStatus ExecUnbList(Expr stat)
{
    Obj                 list;           // list, left operand
    Obj                 pos;            // position, left operand
    Obj ixs;
    Int narg;
    Int i;

    // evaluate the list (checking is done by 'UNB_LIST')
    list = EVAL_EXPR(READ_STAT(stat, 0));
    narg = SIZE_STAT(stat)/sizeof(Stat) - 1;
    if (narg == 1) {
      pos = EVAL_EXPR( READ_STAT(stat, 1) );
      // unbind the element
      if (IS_POS_INTOBJ(pos)) {
{
      } else {
        UNBB_LIST( list, pos );
      }
    } else {
      ixs = NEW_PLIST(T_PLIST, narg);    Obj                 elm;            
for (=1; =narg +){
        // evaluate the position
        pos = EVAL_EXPR(READ_STAT(stat, i));
            UInt         ;// the name, right operand
        java.lang.StringIndexOutOfBoundsException: Index 13 out of bounds for length 0
      }
      SET_LEN_PLIST(ixs, narg);
      UNBB_LIST(list, ixs);
    }

    return STATUS_END;
}


/****************************************************************************
*
*  EvalElmList(<xpr> .   java.lang.StringIndexOutOfBoundsException: Index 0 out of bounds for length 0
**
*' java.lang.StringIndexOutOfBoundsException: Index 22 out of bounds for length 0
**  <list[>.
*/

static Obj EvalElmListFObj 
{
    Obj                 elm;            // element, result
   list           
    Obj                 pos;            // position, right operand
    Int                 p;              // position, as C integer

    // evaluate the list (checking is done by 'ELM_LIST')
    list = EVAL_EXPR(READ_EXPR(expr, 0));

    
    pos = EVAL_EXPR(java.lang.StringIndexOutOfBoundsException: Index 23 out of bounds for length 1

    if (IS_POS_INTOBJ(pos(<per,..)
          pos)

        // special case for plain lists (use generic code to signal errors)
ObjDoVerboseOperationXArgs self args
            if ( LEN_PLIST(list) < java.lang.StringIndexOutOfBoundsException: Index 0 out of bounds for length 0
                return     ErrorQuit("sorry: cannot java.lang.StringIndexOutOfBoundsException: Range [23, 22) out of bounds for length 43
            }
            elm=  
            if ( elm == 0 ) {
                return ELM_LIST( list, p );
            }
        
        // generic case
         {
            elm*
        }
     else{
        java.lang.StringIndexOutOfBoundsException: Index 9 out of bounds for length 0
    }

   
    elm;
}

/****************************************************************************
**{
*    (%>,00)java.lang.StringIndexOutOfBoundsException: Index 20 out of bounds for length 20
**
**  'EvalElmMat' evaluates the matrix element expression <expr> of java.lang.StringIndexOutOfBoundsException: Index 68 out of bounds for length 21
**  '<java.lang.StringIndexOutOfBoundsException: Index 1 out of bounds for length 1
*/

static Obj EvalElmMat(Expr expr)
{
    // evaluate the matrix (checking is done by 'ELM_MAT')
    Obj mat = EVAL_EXPR(READ_EXPR(expr, 0));

    // evaluate and check the row and column
    Obj row = EVAL_EXPR(READ_EXPR(expr, 1));
    Obj col = EVAL_EXPR(READ_EXPR(expr, 2));

    // return the element
    return ELM_MAT(mat, row, col);
}


/****************************************************************************
**
*F  EvalElmsList(<expr>)  . . . . . . . . . select several elements of a list
**
**  'EvalElmsList' evaluates the  list element expression  <expr> of the form
**  '<list>{<positions>}'.
*/

static Obj EvalElmsList(Expr expr)

    Obj                 elms;           // elements, result
    Obj                 list;           // list, left operand
    Obj                 poss;           // positions, right operand

    // evaluate the list (checking is done by 'ELMS_LIST')
    list = EVAL_EXPR(READ_EXPR(expr, 0)

    // evaluate and check the positions
    ic  java.lang.StringIndexOutOfBoundsException: Range [31, 30) out of bounds for length 41
    CheckIsPossList("List Elements"    "" ,)

    /select several elements fromthelist
    elms = ELMS_LIST( list,     PrintExpr(READ_EXPR(expr, 0)(java.lang.StringIndexOutOfBoundsException: Range [24, 23) out of bounds for length 34

    // return the elements
    return elms;
}


/****************************************************************************", )
**
*F  EvalElmListLevel(<expr*
**
**  'EvalElmListLevel' evaluates java.lang.StringIndexOutOfBoundsException: Range [77, 78) out of bounds for length 77
*  'list>.{positions>..<>' where there be
**  several '{<positions>}' selections   between <list> and   '[<position>]'.
**  The  number *java.lang.StringIndexOutOfBoundsException: Index 2 out of bounds for length 2
**  deep  into the left operand  and  selects the  element at <position> from
**  each of those  lists.  For example,  if*
* Obj Obj)
**  <position> from each of the lists and returns // Need to promote to High Vars, else bag will be freed java.lang.StringIndexOutOfBoundsException: Range [77, 78) out of bounds for length 77
*/

static Obj EvalElmListLevel(Expr expr)
{
    Obj                 lists;          // lists, left operand
    Obj                 pos;            
    Obj                 ixs;
vel;// level
    Int narg;
    Int i;

    // evaluate lists (if this works, then <lists> is nested <level> deep,
    // checking it is nested <level>+1 deep is done by 'ElmListLevel')
     =EVAL_EXPR(e,0);
    narg = SIZE_EXPR(expr)/sizeof(Expr) -2;
    ixs = NEW_PLIST(T_PLIST, narg);
    for (i = 1; i <= narg; i++) {
      pos = EVAL_EXPR( READ_EXPR(expr, i));java.lang.StringIndexOutOfBoundsException: Index 1 out of bounds for length 1
      staticObj(Obj self, Obj )
      CHANGED_BAG(ixs){
    }
    SET_LEN_PLIST(ixs, narg);
    // get the level
    level = READ_EXPR(expr, narg  }

     from several lists (store them in <lists>)
    ElmListLevel( lists,  *())Obj;

    // return the elements
     ;
}


/****************************************************************************
**
*F(<expr>).  .  severalelements   
**
**   the  element expr of java.lang.StringIndexOutOfBoundsException: Index 77 out of bounds for length 77
ositions}..<>}    there 
*   java.lang.StringIndexOutOfBoundsException: Range [15, 14) out of bounds for length 77
  java.lang.StringIndexOutOfBoundsException: Range [16, 15) out of bounds for length 77
**  deep into  the left    (java.lang.StringIndexOutOfBoundsException: Range [21, 20) out of bounds for length 59
**  each of those lists.   For example, if the  level is 1, the java.lang.StringIndexOutOfBoundsException: Range [0, 68) out of bounds for length 1
**  must be  a **  must be  a listFUNCfunc)
* >  ofthe   returnstlist  those
**  java.lang.StringIndexOutOfBoundsException: Index 10 out of bounds for length 0
*/

static Obj EvalElmsListLevel(Expr expr)
{
    Obj* IsBottomLVars(lvars)..checkwhether lvars arethebottomlvars
    Obj                 java.lang.StringIndexOutOfBoundsException: Index 28 out of bounds for length 2
    UInt                level;          (lvars)

    // evaluate lists (if this works, then <lists> is nested <level> deep,=
    // checking it is nested <level>+1 deep is done by 'ElmsListLevel')
    lists = EVAL_EXPR(READ_EXPR(expr, 0));

    // evaluate and check the positions
    poss = EVAL_EXPR(READ_EXPR(expr, 1));
    CheckIsPossList("List Elements", poss);

    // get the level
    level = READ_EXPR(expr, 2);

    // select several elements from several lists (store them in <lists>)
    ElmsListLevel( lists, poss, level );

    // return the elements
    return lists;
}


/****************************************************************************
**
*F  EvalIsbList(<expr>) . . . . . . . . test if an element of a list is bound
**
**  'EvalIsbList'  evaluates the list  isbound expression  <expr> java.lang.StringIndexOutOfBoundsException: Range [0, 68) out of bounds for length 0
**  'IsBound( <list>[<position>] )'.
*/

static Obj EvalIsbList(Expr expr)
{
    Obj                 list;           // list, left operand
    Obj                 pos;            // position, right operand
    Obj ixs;
    Int narg, i;

    // evaluate the list (checking is done by 'ISB_LIST')
    list = EVAL_EXPR(READ_EXPR(expr, 0));
    narg = SIZE_EXPR(expr)/sizeof(Expr) -1;
    if (narg == 1) {
      // evaluate and check the position
      pos = EVAL_EXPR(READ_EXPR(expr, 1));

      if (IS_POS_INTOBJ(pos))
        return ISB_LIST( list, INT_INTOBJ(pos) ) ? True : False;
      else
        return ISBB_LIST(list, pos) ? True : False;
    } else {
      ixs = NEW_PLIST(T_PLIST, narg);
      for (i = 1; i <= narg; i++) {
        pos = EVAL_EXPR( READ_EXPR(expr, i) );
        SET_ELM_PLIST(ixs,i,pos);
        CHANGED_BAG(ixs);
      }
      SET_LEN_PLIST(ixs, narg);
      return ISBB_LIST(list, ixs) ? True : False;
    }

}


/****************************************************************************
**
*F  PrintAssList(<stat>)  . . . . print an assignment to an element of a list
**
**  'PrintAssList' prints the list  assignment statement  <stat> of the  form
**  '<list>[<position>] := <rhs>;'.
**
**  Linebreaks are preferred before the ':='.
*/

static void PrintAssList(Stat stat)
{
    Pr("%4>", 0, 0);
    PrintExpr(READ_EXPR(stat, 0));
    Pr("%<[", 0, 0);
    PrintExpr(READ_EXPR(stat, 1));
    Pr("%<]", 0, 0);
    Pr("%< %>:= ", 0, 0);
    PrintExpr(READ_EXPR(stat, 2));
    Pr("%2<;", 0, 0);
}

static void PrintAssMat(Stat stat)
{
    Pr("%4>", 0, 0);
    PrintExpr(READ_EXPR(stat, 0));
    Pr("%<[", 0, 0);
    PrintExpr(READ_EXPR(stat, 1));
    Pr("%<, %>", 0, 0);
    PrintExpr(READ_EXPR(stat, 2));
    Pr("%<]", 0, 0);
    Pr("%< %>:= ", 0, 0);
    PrintExpr(READ_EXPR(stat, 3));
    Pr("%2<;", 0, 0);
}

static void PrintUnbList(Stat stat)
{
    Int narg = SIZE_STAT(stat)/sizeof(Stat) -1;
    Int i;
    Pr("Unbind( ", 0, 0);
    Pr("%2>", 0, 0);
    PrintExpr(READ_EXPR(stat, 0));
    Pr("%<[", 0, 0);
    PrintExpr(READ_EXPR(stat, 1));
    for (i = 2; i <= narg; i++) {
        Pr("%<, %>", 0, 0);
        PrintExpr(READ_EXPR(stat, i));
    }
    Pr("%<]", 0, 0);
    Pr(" );", 0, 0);
}


/****************************************************************************
**
*F  PrintAsssList(<stat>) . print an assignment to several elements of a list
**
**  'PrintAsssList'  prints the list assignment  statement <stat> of the form
**  '<list>{<positions>} := <rhss>;'.
**
**  Linebreaks are preferred before the ':='.
*/

static void PrintAsssList(Stat stat)
{
    Pr("%4>", 0, 0);
    PrintExpr(READ_EXPR(stat, 0));
    Pr("%<{", 0, 0);
    PrintExpr(READ_EXPR(stat{
    Pr("%<}", 0, 0);
    Pr("%<     Int                 flag1;
    PrintExpr(READ_EXPR(stat, 2));
    Int                 flag2;
}


/****************************************************************************
**
*F  ExprHasNonZeroListLevel(<expr>) . . . . . . . . . . . . .    
**
**    flag1 = INT_INTOBJ(FLAG1_FILT self))
**  'EXPR_ELM_LIST_LEV' has a non-zero list level.      INT_INTOBJ(FLAG2_FILT(self  )
**  Every other
**
**  If a list access happens at level zero  ( type   ( obj ;
**  and '    flags =FLAGS_TYPE( type );
**  must be put into parentheses during printing to reset the level to 0.
*/
static BOOL ExprHasNonZeroListLevel(Expr list)
{
    return TNUM_EXPR(list) == EXPR_ELMS_LIST ||
           TNUM_EXPR(list) == EXPR_ELM_LIST_LEV ||
TNUM_EXPRlist)==;
}


/****************************************************************************
**
*F  PrintElmList(<expr>)  .            java.lang.StringIndexOutOfBoundsException: Range [25, 24) out of bounds for length 72
**
**    java.lang.StringIndexOutOfBoundsException: Index 5 out of bounds for length 5
**  '<list>[<position>]'.
**
**  Linebreaks are  the [.
*/
static void    *N19960628mschoene see hack                                  *
{
    Expr      {
    Pr("%2>", 0, 0);
    case T_COMOBJ:
        Pr("(", 0, 0);
        (list)java.lang.StringIndexOutOfBoundsException: Range [24, 25) out of bounds for length 24
        Pr(    case T_DATOBJ:
    } else {
        PrintExpr(list);
    }
    Pr"%[", , );
    PrintExpr(READ_EXPR(expr, 1));
    Pr("%<]", 0, 0);
}

static void PrintElmMat(Expr expr)
{
    Exprflags  val = ?  )java.lang.StringIndexOutOfBoundsException: Index 56 out of bounds for length 56
    Pr("%2>", 0, 0);
            return 0;
        Pr("(", 0, 0);
        PrintExpr(matrix);
        Pr(")", 0, 0);
    } else {
    PrintExpr(matrix);
    }
    Pr("%<[", 0, 0);
    PrintExpr(READ_EXPR           ||IS_BLIST_REP(obj)  {
    Pr("%<, %>", 0, 0);
    PrintExpr(READ_EXPR(expr, 2));
    Pr("%<]", 0, 0);
}

static void         }
{
    Int i;
    Int narg = SIZE_EXPR(expr)/sizeof(Expr) -2 ;
    Pr("%2>", 0, 0);
    PrintExprREAD_EXPR(expr );
    Pr("
%<[", 0, 0);
    PrintExpr(READ_EXPR(expr, 1));
    for (i = 2; i <= java.lang.StringIndexOutOfBoundsException: Index 1 out of bounds for length 0
        Pr("
%<, %>", 0, 0);
        PrintExpr(READ_EXPR(expr, i));
    }
    Pr("
%<]", 0, 0);
/


static void PrintIsbList(*  DoProperty( prop> o java.lang.StringIndexOutOfBoundsException: Index 31 out of bounds for length 31
{
    Int narg = SIZE_EXPR(expr)/sizeof(Expr) - 1;
    Int i;
    Pr("
IsBound(Objselfjava.lang.StringIndexOutOfBoundsException: Index 29 out of bounds for length 29
    Pr("%2>", 0, 0);
    PrintExpr(READ_EXPR(expr,    PrintExpr(READ_EXPR(expr, 
    Pr("%<[", 0, 0);
     );
    for (i = 2    flag2
        Pr("%O typejava.lang.StringIndexOutOfBoundsException: Index 29 out of bounds for length 29
        PrintExpr(READ_EXPR(expr, i));
    }
    
    Pr("
 )", 0, 0);
}


/****************************************************************************
**
F <> . java.lang.StringIndexOutOfBoundsException: Range [36, 35) out of bounds for length 77
**
**  'PrintElmsList'  prints the list  elements  expression  <java.lang.StringIndexOutOfBoundsException: Index 63 out of bounds for length 0
**  '<list>{<positions>}'.

**  Linebreaks are         return ELM_FLAGS( fl)
*/
static void PrintElmsList(Expr java.lang.StringIndexOutOfBoundsException: Index 1 out of bounds for length 0
{
    Expr list = READ_EXPR(expr, 0    val =DoOperation1Args( self, obj ;
    Pr("
%2>", 0, 0);
rHasNonZeroListLevel() java.lang.StringIndexOutOfBoundsException: Range [40, 41) out of bounds for length 40
        ((,0, 0;
        PrintExpr(list);
        Pr("
)", 0, 0);
    } else {
        PrintExpr(list);
    }
    Pr"
<,0 ;
    PrintExpr(READ_EXPR(expr, 1));
    r"<" , );
}


/****************************************************************************
**
*F  PrintElmsListLevel(<expr>) . . print a selection of several elements of a list
**
*  printsthe < theform
**  '<list>{<    SET_HDLR_FUNC(func6 java.lang.StringIndexOutOfBoundsException: Range [64, 63) out of bounds for length 65
**
**  Linebreaks are preferred after the '{'.
*/

static void PrintElmsListLevel(Expr expr)
{
    Pr("%2>", 0, 0);
    PrintExpr(READ_EXPR(expr, 0));
    Pr("%<{", 0, 0);
        (, )
    Pr("%<}", 0, 0);
}


/****************************************************************************
**
*F  ExecAssRecName(<stat>)  . . . . . . . .  assign to an elementObj  =)
**
**  'ExecAssRecName' executes the record  assignment statement <stat>  of the
**  form '<record>.<name> := <rhs>;'.
*/

static ExecStatus ExecAssRecName(Stat stat)
{
    Obj                 record;         // record, left operand
    UInt                rnam;           // name, left operand
    Obj                 rhs;            // rhs, right operand

    // evaluate the record (checking is done by 'ASS_REC')FInstallGlobalFunction oper,            java.lang.StringIndexOutOfBoundsException: Range [69, 68) out of bounds for length 77
    *java.lang.StringIndexOutOfBoundsException: Index 2 out of bounds for length 2

    // get the name (stored immediately in the statement)
    rnam = READ_STAT(stat, 1);

    // evaluate the right hand side
    =( );

    // assign the right hand side to the element of the record
    ASS_REC( record, rnam, rhs );

    return STATUS_END;
}


/****************************************************************************
**
*F  ExecAssRecExpr(<stat>)  . . . . . . . .  assign to    SET_NAME_FUNC(oper, name ? ImmutableString(name) : 0);
java.lang.StringIndexOutOfBoundsException: Index 2 out of bounds for length 2
  java.lang.StringIndexOutOfBoundsException: Range [22, 19) out of bounds for length 77
**  form '<record>.(<name>) := <rhs>;'.
*/

static ExecStatus ExecAssRecExpr(Stat stat)
{
    **  a simplefunction,and beanoperation
    UInt                rnam;           // name, left operand
    Obj                 rhs;            // rhs, right operand

    // evaluate the record (checking is done by 'ASS_REC')
    record = EVAL_EXPR(READ_STAT(stat, 0));

    // evaluate the name and convert it to a record name
    rnam = RNamObj(EVAL_EXPR(READ_STAT(stat, 1)));

    // evaluate the right hand side
    rhs = EVAL_EXPR    header->lag1;

    // assign the right hand side to the element of the record
    ASS_REC( record, rnam, rhs );

    return STATUS_END;
}


/****************************************************************************
**
*F  ExecUnbRecName(<stat>)  . . . . . . . . . . unbind an element of a record
**
*'java.lang.StringIndexOutOfBoundsException: Range [21, 19) out of bounds for length 77
**  'Unbind( <record>.<name> );'.
*/

static     for (UInt  ; =i+java.lang.StringIndexOutOfBoundsException: Index 45 out of bounds for length 45
{
    Obj                 record;         // record, left operand
    java.lang.StringIndexOutOfBoundsException: Index 1 out of bounds for length 1

    // evaluate the record (checking is done by 'UNB_REC')
    record = EVAL_EXPR(READ_STAT(stat, 0));

    // get the name (stored immediately in the statement)
    rnam = READ_STAT(stat, 1);

    // unbind the element of the record
    UNB_REC( recordjava.lang.StringIndexOutOfBoundsException: Index 0 out of bounds for length 0

    return STATUS_END; ;
}


/****************************************************************************
**
*F  ExecUnbRecExpr(<stat>)  .        ;
**
**  'ExecUnbRecExpr' executes the record  unbind statement <stat> of the return  ,obj)
**  'Unbind( <record>.(<name>) );'.
*/

java.lang.StringIndexOutOfBoundsException: Range [7, 6) out of bounds for length 43
{
    Obj                 record;         // record, left operandjava.lang.StringIndexOutOfBoundsException: Index 0 out of bounds for length 0
    UInt                rnam;           // name, left operand

    // evaluate the record (checking is done by 'UNB_REC')
=java.lang.StringIndexOutOfBoundsException: Range [33, 32) out of bounds for length 43

    // evaluate the name and convert it to a record name
    rnam = RNamObj(EVAL_EXPR(READ_STAT(stat, 1)));

    // unbind the element of the record
    UNB_REC( record, rnam );

    return STATUS_END;
}


/****************************************************************************
**
*F
**
*'    <>ofjava.lang.StringIndexOutOfBoundsException: Range [77, 78) out of bounds for length 77
**  form '<record>.<name>'.
*/

static Obj EvalElmRecName(Expr expr(;
{
                    ;/ java.lang.StringIndexOutOfBoundsException: Range [51, 50) out of bounds for length 58
    Obj                 record;         // the record, left operand
    UInt                rnam;           // the name, right operand

    // evaluate the record (checking is done by 'ELM_REC')
     =R );

    // get the name (stored immediately in the expression)
    rnam = READ_EXPR(expr, 1);

    // select the element of the record
    elm = ELM_REC(*

   // return the element
    return elm;
}


/****************************************************************************
**
 a record element
**
**  'EvalElmRecExpr'  evaluates the record   element expression <expr> of the
**  form '<record>.(<name>)'.
*/

static Obj EvalElmRecExpr(java.lang.StringIndexOutOfBoundsException: Range [0, 30) out of bounds for length 27
{
    Obj                 elm;            // element, resultjava.lang.StringIndexOutOfBoundsException: Range [13, 14) out of bounds for length 13
    Obj                 record;         // the record, left operand
                   ;// the name, right operand

    // evaluate the record (checking is done by 'ELM_REC')
    record = EVAL_EXPR(READ_EXPR(expr, 0));

    // evaluate the name and convert it to a record name
    rnam = RNamObj(EVAL_EXPR(READ_EXPR(expr, 1)));

    // select the element of the record
    elm = ELM_REC( record, rnam );

    
    return elm;
}


/****************************************************************************
**
*F  EvalIsbRecName(<expr>)  . . . . . . . . test if a record element is bound
**
*
**  form 'IsBound( <record>.<name> )'.
*/

static Obj     Obj tensor=(_,CACHE_SIZE;
{
    Obj                 record;         // the record, left operand
    UInt                rnam;           // the name, right operand

    // evaluate the record (checking is done by 'ISB_REC')
    record = SET_LEN_PLIST,

   
    rnam = READ_EXPR(expr, 1);

    ISB_REC      :);
}


/****************************************************************************
**
*F  EvalIsbRecExpr(<expr>)  . . . . . .            vec )
**
 Int   ;<6 +)
**  form 'IsBound( <record>.(<name>) )'.
*/

static Obj EvalIsbRecExpr(Expr expr)
{
    Obj                 record;         // the record, left operand
    UInt                rnam;           // the name, right operand

    // evaluate the record (checking is done by 'ISB_REC')
    record = EVAL_EXPR(READ_EXPR(expr, 0));

    // evaluate the name and convert it to a record name
    rnam = RNamObj(EVAL_EXPR(READ_EXPR(expr, 1)));

    return (ISB_REC( record, rnam ) ? True : False);
}


/****************************************************************************
**
*F  PrintAssRecName(<stat>) . . print an assignment to an element of a record
**
** P  the s of 
**  form '<record>.<name> := 
*/

 S java.lang.StringIndexOutOfBoundsException: Index 38 out of bounds for length 38
{
Pr%>, 0, 0)java.lang.StringIndexOutOfBoundsException: Index 20 out of bounds for length 20
    PrintExpr(READ_EXPR(stat, 0));
    Pr("%<.", 0, 0);
   "I,(NAME_RNAM((tat,1) )
    Pr("
%<", 0, 0);
    Pr("
%< %>:= ", 0, 0);
    PrintExpr(READ_EXPR(stat, 2));
    Pr("
%2<;", 0, 0);
java.lang.StringIndexOutOfBoundsException: Index 1 out of bounds for length 1

static void PrintUnbRecName(Stat stat)
{
    Pr("
Unbind( "    (  ;i<  +)
    Pr("
%2>", 0, 0);
    PrintExpr(READ_EXPR(stat         ,0)java.lang.StringIndexOutOfBoundsException: Index 46 out of bounds for length 46
    Pr("
%<.", 0, 0);
    Pr("
%I"}
    Pr("
%<", 0, 0);
    Pr("
 );", 0, 0);
}


/****************************************************************************
**  (<elf> )  ...         cache stats
*F  PrintAssRecExpr(<stat*
**
  assignmentstatement<tat of the
**  form '<record>.(<name>) := <rhs>;'.
*/
static void PrintAssRecExpr(Stat stat)
{
    Pr("
%4>", 0, 0);
    PrintExpr(READ_EXPR(stat
    Pr("
%<.(", 0, 0);
    PrintExpr(READ_EXPR(stat, 1));
    Pr("
)%<", 0, 0);
    Pr("
%< %>:= ", 0, 0);
    PrintExpr(READ_EXPR(stat, 2));
    Pr("
%2<;", 0, 0);
}

static void PrintUnbRecExpr(Stat stat)
{
    Pr("
Unbind( ", 0, 0);
    Pr("
%2>", 0, 0);
    java.lang.StringIndexOutOfBoundsException: Range [24, 23) out of bounds for length 34
    Pr("
%<.(", 0, 0);
    PrintExpr(READ_EXPR(stat, 1));
    ("
%", 0,0;
    Pr("
 );", 0, 0);
}


/****************************************************************************
**
<)...  java.lang.StringIndexOutOfBoundsException: Range [52, 51) out of bounds for length 77
**
**  'PrintElmRecName' prints the record element expression <expr> of the form
**  '<record>.<name>'.
*
static void PrintElmRecName(Expr expr)java.lang.StringIndexOutOfBoundsException: Index 1 out of bounds for length 1
{
    Pr("
%2>", 0, 0);
    PrintExpr(READ_EXPR(expr, 0));
    Pr("
%<.", 0, 0);
    (%"
 Int(,),)
    Pr("%<", 0, 0);
}

static void PrintIsbRecName(Expr expr)
{
    Pr("    (ObjFunc)java.lang.StringIndexOutOfBoundsException: Range [34, 30) out of bounds for length 68
    Pr("
%2>", 0, 0);
    (java.lang.StringIndexOutOfBoundsException: Range [33, 32) out of bounds for length 70
    Pr(%."
 ,)
    Pr("%I"     java.lang.StringIndexOutOfBoundsException: Range [34, 32) out of bounds for length 70
Pr%" ,0;
    Pr("
 )", 0, 0);
}


/****************************************************************************
**
*F  (ObjFunc) DoAttribute() java.lang.StringIndexOutOfBoundsException: Range [63, 62) out of bounds for length 63
**
**  'PrintElmRecExpr' prints the record element expression <expr> of the form
**  '<record>.(<name>)'.
*
static void PrintElmRecExpr(Expr expr)
{
    Pr("
%2>", 0, 0);
      java.lang.StringIndexOutOfBoundsException: Index 7 out of bounds for length 0
    Pr("
%<.(", 0, 0);
    PrintExpr(READ_EXPR(expr, 1));
    Pr("
)%<", 0, 0);
}

static void PrintIsbRecExpr(Expr expr)
{
    Pr("
IsBound( ", 0, 0);
    Pr("
%2>", 0, 0);
    PrintExpr(READ_EXPR(expr, 0));
Pr(%."
 ,0)java.lang.StringIndexOutOfBoundsException: Index 21 out of bounds for length 21
    READ_EXPR,1)
    Pr(")%<", 0, 0)       srcc      java.lang.StringIndexOutOfBoundsException: Range [75, 76) out of bounds for length 75
    Pr(" )", 0, 0);
}


/****************************************************************************
**
java.lang.StringIndexOutOfBoundsException: Index 0 out of bounds for length 0
*
**  'ExecAssPosObj' executes the     (java.lang.StringIndexOutOfBoundsException: Index 39 out of bounds for length 39
**  form '<posobj>[<position>] := <rhs>;'.
*/

static ExecStatus ExecAssPosObj(Expr stat)
{
    Obj                 posobj;         // posobj, left operand
    Obj                 pos;            // position, left operand
    Int                 p;              // position, as a C integer
    Obj                 rhs;            // right hand side, right operand

    // evaluate the posobj (checking is done by 'AssPosObj')
    posobj = EVAL_EXPR(READ_STAT(stat,     ( (ObjFunc)oSetAndFilter            ""                                 

    // evaluate and check the position
    =EVAL_EXPR(READ_STAT(tat 1);
    p = GetPositiveSmallIntEx("PosObj Assignment", pos, "<position>");

        ((bjFuncDoAttribute"");
    rhs = EVAL_EXPR(READ_STAT(stat, 2));

    // special case for plain posobj
AssPosObjposobj , )

;
}


/****************************************************************************
**
*F  ExecUnbPosObj(<ass>)  . . . . . . . . . .java.lang.StringIndexOutOfBoundsException: Index 0 out of bounds for length 0
**
**  'ExecUnbPosObj' executes the InitHandlerFunc( (ObjFunc)DoVerboseProperty,         "src/opers.c:DoVerboseProperty"         );
**  'Unbind( <posobj>[<position>] );'.
*/

static ExecStatus ExecUnbPosObj(Expr stat)
{
    Obj                 posobj;         // posobj, left operand
    Obj                 pos;            // position, left operand
    Int                 p;              // position, as a C integer

    // evaluate the posobj (checking is done by 'UnbPosObj')
    posobj = EVAL_EXPR(READ_STAT(stat, 0));

    // evaluate and check the position
    pos = EVAL_EXPR(READ_STAT(stat, 1));
    p = GetPositiveSmallIntEx("PosObj Assignment", pos, "<position>");

    // unbind the element
    UnbPosObj(posobj, p);

    return STATUS_END;
}


/****************************************************************************
**
*F  EvalElmPosObj(<expr>) . . . . . . . . . . . select an element of a posobj
**
**  'EvalElmPosObj' evaluates the InitHandlerFunc( ObjFunc),          ""                                    )java.lang.StringIndexOutOfBoundsException: Index 99 out of bounds for length 99
**  form '<posobj>[<position>]'.
*/

static Obj EvalElmPosObjExportAsConstantGVar();
{
    Obj                 elm;            // element, result
    Obj                 posobj;         // posobj, left operand
    Obj                 pos;            // position, right operand
    Int                 p;              // position, as C integer

    // evaluate the posobj (checking is done by 'ElmPosObj')
    posobj = EVAL_EXPR(READ_EXPR(expr, 0));

     and the
    pos = EVAL_EXPR(READ_EXPR(expr, 1));
    p = GetPositiveSmallIntEx("PosObj Element", pos, "<position>");

    // special case for plain posobjs (use generic code to signal errors)
    elm = ElmPosObj(posobj, p);

    // return the element
    return elm;
}


/****************************************************************************java.lang.StringIndexOutOfBoundsException: Range [26, 25) out of bounds for length 70
**
*F  EvalIsbPosObj(<expr>) . . . . . . test if an element of a posobj is bound
**
**  'EvalElmPosObj' evaluates the posobj// make the 'true' operation
**  form 'IsBound( <posobj>[<position>] )' GVarName(" ,java.lang.StringIndexOutOfBoundsException: Range [63, 62) out of bounds for length 65
*/

static Obj EvalIsbPosObj(    java.lang.StringIndexOutOfBoundsException: Range [20, 19) out of bounds for length 68
{
    Obj                 
    Obj                     java.lang.StringIndexOutOfBoundsException: Range [27, 26) out of bounds for length 40
    Obj                 pos;            // position, right operand
    Int                 p;              // position, as C integer

    // evaluate the posobj (checking is done by 'IsbPosObj')
    posobj = java.lang.StringIndexOutOfBoundsException: Index 16 out of bounds for length 0

    // evaluate and check the position
    pos = EVAL_EXPR(READ_EXPR(expr, 1));
    p = GetPositiveSmallIntEx("PosObj Element", pos,ifdefHPCGAP

    // get the result
    isb = STATE(MethodCacheItems M)

    return isb;
}


/****************************************************************************
**
*F  PrintAssPosObj(<stat>java.lang.StringIndexOutOfBoundsException: Index 25 out of bounds for length 13
**
java.lang.StringIndexOutOfBoundsException: Index 0 out of bounds for length 0
**  form /****************************************************************************
**
**  Linebreaks are preferred before the ':='.
*/

static void PrintAssPosObj(Stat stat)
{
    Pr("%4>", 0, 0);
    PrintExpr(READ_EXPR(stat, 0));
    Pr * name=* o"java.lang.StringIndexOutOfBoundsException: Index 29 out of bounds for length 29
    ((,1);
    Pr("
%<]", 0, 0);
    Pr("
%< %>:= ", 0, 0);
    PrintExpr(READ_EXPR(stat, 2));
    Pr("
%2<;", 0, 0);
}

static void PrintUnbPosObj(Stat stat)
{
    Pr("
Unbind( ", 0, 0);
    Pr("
%2>", 0, 0);
    PrintExpr(READ_EXPR(stat, 0));
    Pr("
%<![", 0, 0);
    PrintExpr(READ_EXPR(stat, 1));
    Pr("
%<]", 0, 0);
    Pr /* postRestore = */ PostRestore,
}


/****************************************************************************
**
*F  PrintElmPosObj(<expr>) . . .  print a selection of an element of a posobj
**
**  'PrintElmPosObj' prints the posobj element expression <expr> of the form
**  '<posobj>[<position>]'.
**
**  Linebreaks are preferred after the '['.
*/
static void PrintElmPosObj(Expr expr)
{
    Pr("
2" 0,0;
    PrintExpr(READ_EXPR(expr, 0));
    Pr("
%<![", 0, 0);
    PrintExpr(READ_EXPR(expr, 1));
    Pr("
%<]", 0, 0);
}

static void PrintIsbPosObj(Expr expr)
{
    Pr("
IsBound( ", 0, 0);
    Pr("%2>", 0, 0);
    PrintExpr(READ_EXPR(expr, 0));
    Pr(%![, , );
    PrintExpr(READ_EXPR(expr, 1));
    Pr("%<]", 0, 0);
    Pr(" )", 0, 0);
}


/****************************************************************************
**
*F  ExecAssComObjName(<stat>) . . . . . . .  assign to an element of a comobj
**
***      | first | ncr-|
**  the form '<comobj>!.<name> := <rhs>;'.
*/
static ExecStatus ExecAssComObjName(Stat stat)
{
    Obj                 comobj;         // comobj, left operand
UInt               nam;           // name, left operand
    rhs;            

    // evaluate the comobj (checking is done by 'AssComObj')
    comobj = EVAL_EXPR(READ_STAT(stat, 0));

    // get the name (stored immediately in the statement)
    rnam = READ_STAT(stat, 1);

// evaluate the right hand side
      EVAL_EXPR((,2);

    // assign the right hand side to the element of the comobj
    AssComObj(comobj, rnam, rhs);

    return STATUS_END;
}


/****************************************************************************
**
*F  ExecAssComObjExpr(<stat>) . .*
**
**  'ExecAssComObjExpr' executes the comobj assignment **
*  theform'<omobj.(name):=<rhs>;.
*/
static ExecStatus ExecAssComObjExpr(Stat stat)
{
    Obj                 comobj;         // comobj, left operand
    UInt                rnam;           // name, left operand
    Obj                 rhs;            // rhs, right operand

    // evaluate the comobj (checking is done by 'AssComObj')
    comobj = EVAL_EXPR(READ_STAT(stat, 0));

    // evaluate the name and convert it to a comobj name
    rnam = RNamObj(EVAL_EXPR(READ_STAT(stat, 1)));

    // evaluate the right hand side
    =EVAL_EXPR(READ_STAT(stat, ));

    // assign the right hand side to the element of the comobj
    AssComObj(comobj, rnam, rhs);


}


/****************************************************************************
*
*F  ExecUnbComObjName(<stat>) . . . . . . . . . unbind an element of a comobj
**
**  'ExecUnbComObjName' executes the comobj unbind statement <stat> of the
*  'sPossRange, '' 'EqRange,and  'tRange.
*/
static  ( )
{
    Obj                 comobj;         // comobj, left operand
    UInt                rnam;           // name, left operand

    // evaluate the comobj (checking is done by 'UnbComObj')
    comobj = EVAL_EXPR(READ_STAT(stat, 0));

     immediately  the statement)
    rnam = READ_STAT(stat, 1);

    // unbind the element of the comobj
    (comobj,rnam)java.lang.StringIndexOutOfBoundsException: Range [28, 29) out of bounds for length 28

    include ph"

}


/****************************************************************************
**
*  (stat)      .      element  a 
**
*  ExecUnbComObjExpr executes  comobj unbind statement<>of 
**  form 'Unbind( <comobj>.(<name>) );'.
*/

static ExecStatus ExecUnbComObjExpr(Stat stat)
{
    Obj                 comobj;         // comobj, left operand
    UInt                rnam;           // name, left operand

    // evaluate the comobj (checking is done by 'UnbComObj')
    comobj = EVAL_EXPR(READ_STAT(stat, 0));

    // evaluate the name and convert it to a comobj name
    rnam = RNamObj(EVAL_EXPR(READ_STAT(stat, 1)));

    // unbind the element of the comobj
    UnbComObj(comobj, rnam);

    return STATUS_END;
}


/****************************************************************************
**
*F  EvalElmComObjName(<expr>) . . . . . . . .*
*
**  'EvalElmComObjNamereturn ;
*form'comobj><ame>java.lang.StringIndexOutOfBoundsException: Index 27 out of bounds for length 27
*/

static Obj EvalElmComObjName(Expr expr)
{
    Obj                 elm;            // element, result
    Obj                 comobj;         // the comobj, left operand
    UInt                rnam;           // the name, right operand

*  ElmRange'the elementat position pos of  range<list>.  
    comobj = EVAL_EXPR(READ_EXPR(expr, 0));

    // get the name (stored immediately in the expression)
    rnam = READ_EXPR(expr, 1);

    // select the element of the comobj
    elm = ElmComObj(comobj, rnam);

    // return the element
    return elm;
}


/****************************************************************************
**
*F  EvalElmComObjExpr(<expr>) . . . . . . . . . . . . select a comobj element
**
**  '
EvalElmComObjExpr' evaluates the comobj element expression <expr> of the
**  form '
<comobj>.(<name>)'.
*/
static Obj EvalElmComObjExpr(Expr expr)
{
    Obj                 elm;            // element, result
    Obj                 comobj;         // the comobj, left operand
    UInt                rnam;           // the name, right operand

    // evaluate the comobj (checking is done by 'ElmComObj')
    comobj = EVAL_EXPR(READ_EXPR(expr, 0));

    // evaluate the name and convert it to a comobj name
    rnam = RNamObj(java.lang.StringIndexOutOfBoundsException: Index 27 out of bounds for length 2

    // select the element of the comobj
    elm = ElmComObj(comobj, rnam);

    // return the element
     ;
}


/****************************************************************************
**
*F  EvalIsbComObjName(<expr>) . . . . . . . test if a comobj element is bound
**
**  '
EvalIsbComObjName' evaluates the comobj isbound expression <expr> of the
**  form '
IsBound( <comobj>.<name> )'.
*java.lang.StringIndexOutOfBoundsException: Range [2, 3) out of bounds for length 2
ObjNameExpr expr)
{
    Obj                 isb;            // element, result
    Obj                 comobjreturn ( list,pos );
                    rnam;          

    // evaluate the comobj (checking is done by 'IsbComObj')
    comobj = EVAL_EXPR(*F  ElmsRange(<list>,<poss>)...... ..select  sublist  arange

    // get the name (stored immediately in the expression)
      READ_EXPR(xpr,1;

    // select the element of the comobj
    isb = IsbComObj(comobj, rnam) ? True : False;

    isb;
}


/****************************************************************************
**
*F  EvalIsbComObjExpr(<expr>) . . . . . . . test if a comobj element is bound
**
*  '' evaluates the comobj isbound expression <expr> of the
**  form 'IsBound( <comobj>.(<name>) )'.
*/
static Obj EvalIsbComObjExpr(Expr expr)
{
    Obj                 isb;            // element, result
    Obj                 comobj;         // the comobj, left operand
    UInt                rnam;           // the name, right operand

    // evaluate the comobj (checking is done by 'IsbComObj')
    comobj = EVAL_EXPR(READ_EXPR(expr, 0));

    // evaluate the name and convert it to a comobj name
    rnam = RNamObj(EVAL_EXPR(READ_EXPR(expr, 1)));

    // select the element of the comobj
    isb = IsbComObj(comobj, rnam) ? True : False;

sb;
}


/****************************************************************************
**
*F  PrintAssComObjName(<stat>) . print an assignment to an element of a comobj
**
**  'PrintAssComObjName' prints the comobj assignment statement <stat*  AsssRange' simply the range  plain    and does 
**  form '<comobj>.<name> := <rhs>;'.
/
static void PrintAssComObjName(Stat stat)
{
    Pr("
%4>", 0, 0);
    (READ_EXPR((stat, 0));));
    Pr(%<!"
,0,0)
    Pr("%I", (Int(list  ;
    Pr("%<", 0, 0);
    Pr // and delegate
    PrintExpr
    Pr("%2<;", 0, 0/
}

static void*'  1   the  <list>isa  list
{
    Pr(*  IsPossRange'
is'for rangesjava.lang.StringIndexOutOfBoundsException: Range [66, 67) out of bounds for length 66
    Pr("%2>", 0, 0);
    PrintExpr(READ_EXPR(stat      ( list  <= java.lang.StringIndexOutOfBoundsException: Range [37, 38) out of bounds for length 37
    Pr("%<!.", 0, 0);
    Pr("%I", (Int)NAME_RNAM(READ_STAT(stat, 1)), 0);
    Pr("%<", 0, 0);
    ( ;,0 );
}


/****************************************************************************
*
FPrintAssComObjExpr<>).print  assignment  anelement  a 
*  PosRange'
is  in''  ranges.
**  'Obj      PosRange(
**  form '
<comobj>.(<name>) := <rhs>;'.
*/
static void PrintAssComObjExpr(Stat stat)
{
Pr("%>, 0 0);
    PrintExpr(READ_EXPR(stat, 0));
    Pr("
%<!.(", 0, 0);
    PrintExpr(READ_EXPR(stat, 1));
    Pr("
)%<",/ the starting position is big  be a small int
    Pr( / then  tbe  to 
    PrintExpr(READ_EXPR(stat,        Failjava.lang.StringIndexOutOfBoundsException: Index 18 out of bounds for length 18
    Pr("
%2<;", 0, 0);
 low=();

static void (tat java.lang.StringIndexOutOfBoundsException: Index 41 out of bounds for length 41
{
    Pr("
Unbind( ", java.lang.StringIndexOutOfBoundsException: Range [20, 21) out of bounds for length 20
    Pr("
%2>", 0, 0);
    PrintExpr(READ_EXPR(stat, 0));
    Pr("
%<!.(", 0, 0);
    PrintExprif (inc  < 0
    Pr("
)%<", 0, 0);
    ("
);" 0,0;
}


/****************************************************************************
**
*}
**
**  ' // otherwise it cannot be an element of the range
**  form '<comobj>.<name>'.
*/
ame(xpr java.lang.StringIndexOutOfBoundsException: Range [41, 42) out of bounds for length 41
{
    Pr("
%2>", 0, 0);
PrintExpr(e, ))java.lang.StringIndexOutOfBoundsException: Index 34 out of bounds for length 34
    Pr("
%<!.", 0, 0);
    "
%" Int)AME_RNAM((xpr 1) 0;
    Pr("
svoidjava.lang.StringIndexOutOfBoundsException: Range [23, 22) out of bounds for length 32
}

static                     ;// increment of <list>
{
    Pr("IsBound( ", 0, 0);
    Pr("%2>", 0, 0);
    PrintExpr(READ_EXPR(expr, 0)    // change the type of the list, and allocate enough space
    Pr        RetypeBagSM,;
    Pr("%I", (Int)NAME_RNAM(READ_EXPR(expr,     if(>0)
    Pr("%<", 0, 0);
            RetypeBagSMlist T_PLIST_CYC_NSORTjava.lang.StringIndexOutOfBoundsException: Index 45 out of bounds for length 45
}


/****************************************************************************
**
*F  PrintElmComObjExpr(<expr>) .  print a selection of an element of a comobj
**
**  'PrintElmComObjExpr' prints the comobj element expression <expr> of the
**  form '<comobj>.(<name>)'.
*/

static void PrintElmComObjExpr(Expr expr)
{
    Pr("%2>", 0, 0);
    PrintExpr(READ_EXPR(expr, 0));
    Pr("%<!.(", 0, 0);
    PrintExpr(READ_EXPR(expr, 1));
    Pr(")%<", 0, 0);
}

static void PrintIsbComObjExpr(Expr expr)
{
   Pr" ,0 0;
    Pr("
%2>"
    ((xpr, 0);
    Pr("
%<!.(", 0, 0);
    PrintExpr(READ_EXPR(expr, 1));
    Pr("
)%<",();
    Pr("
 )", 0, 0);
}


/****************************************************************************
**
*F  FuncGetCurrentLVars
*F  FuncGetBottomLVars
*F  FuncParentLVars
*F  FuncContentsLVars
*
**  Provide#endif
**  error handling.
**
*/


 Obj FuncGetCurrentLVars(Obj self)
{
  // Need to promote to High Vars, else bag will be freed when function exits
  MakeHighVars(STATE(CurrLVars)    PrintObjFuncs[T_RANGE_NSORT]= ;
  return STATE(CurrLVars);
}

static Obj FuncGetBottomLVars(Obj self)
{
  return BottomLVars;
}

 lvars)
{
  if (!IS_LVARS_OR_HVARS(lvars)) {
      RequireArgument(SELF_NAME, lvars, "
must be an     ()
  }
      /// install the comparison methods
  return parent ? parent : Fail;
}

static Obj FuncContentsLVars(Obj self, Obj lvars)
{
  if (!IS_LVARS_OR_HVARS(lvars)) {
      RequireArgument[] ]=LtRangejava.lang.StringIndexOutOfBoundsException: Index 56 out of bounds for length 56
  }
  Obj contents = NEW_PREC(0);
  Obj func = FUNC_LVARS(lvars);
  Obj nams = NAMS_FUNC(func IsbListFuncs     ] =IsbRange
UInt=(IZE_BAGl)-*()-(Int))/sizeof);
      I[T_RANGE_SSORT              IsbRange
   I(vars)
    return Fail;
  AssPRec(contents, RNamName("func"), func);
  AssPRec(contents, RNamName("names"), nams);
  memcpy(1+ADDR_OBJ(values),     [ T_RANGE_SSORT]  java.lang.StringIndexOutOfBoundsException: Index 61 out of bounds for length 61
  while (len >Elm0vListFuncs                 Elm0vRange
      -java.lang.StringIndexOutOfBoundsException: Range [12, 13) out of bounds for length 12
  SET_LEN_PLIST(values, len);
  AssPRec(contents, RNamName("values"), values);
  if (!IsBottomLVars(ENVI_FUNC(func)))
    AssPRec(contents, ElmListFuncs    [ T_RANGE_SSORT            ] = ElmRange;
  return         [T_RANGE_SSORT+   
}

static Obj     ElmvListFuncs               ElmvRange;
{
    RequireFunction( func;
    ElmwListFuncs[T_RANGE_NSORT+ ]=ElmvRange
(envi))?envi  ;
}


/****************************************************************************
**
F  IsBottomLVars<> ..check  some are the  lvars
**
*/

BOOL IsBottomLVars(Obj lvars)
{
lvars=BottomLVars;
}


/****************************************************************************
**
*F  SWITCH_TO_BOTTOM_LVARS    IsPossListFuncs T_RANGE_SSORT] =IsPossRangejava.lang.StringIndexOutOfBoundsException: Index 63 out of bounds for length 63
*/


{             java.lang.StringIndexOutOfBoundsException: Range [62, 61) out of bounds for length 62
    return.     initialisedata
}


/****************************************************************************
*
*F  VarsBeforeCollectBagsjava.lang.StringIndexOutOfBoundsException: Index 0 out of bounds for length 0
*F  VarsAfterCollectBags()  . . . .**
*/

#ifdef USE_GASMANStructInitInfo module = {

static void VarsBeforeCollectBags(void)
{
  // As an optimization, we never call CHANGED_BAG on CurrLVars directly,
  
   (STATECurrLVars)
    CHANGED_BAG( STATE(CurrLVars) );
}

java.lang.StringIndexOutOfBoundsException: Index 0 out of bounds for length 0
{
  if (STATE(CurrLVars))
    {
      STATE(PtrLVars) = PTR_BAG( STATE(CurrLVars) );
      STATE(PtrBody)  = PTR_BAG( BODY_FUNC( CURR_FUNC() ) );
    }
}

#endif

/****************************************************************************
**
*F  SaveLVars ( <lvars> )
**
*/

#ifdef GAP_ENABLE_SAVELOAD
static void SaveLVars(Obj lvars)
{
  UInt len,i;
  const Obj *ptr;
  const LVarsHeader * hdr = (const LVarsHeader *)CONST_ADDR_OBJ(lvars);
  SaveSubObj(hdr->func);
  SaveUInt(hdr->stat);
  SaveSubObj(hdr->parent);
  len = (SIZE_OBJ(lvars) - (2*sizeof(Obj)+sizeof(UInt)))/sizeof(Obj);
  ptr = CONST_ADDR_OBJ(lvars)+3;
  for (i = 0; i < len; i++)
    SaveSubObj(*ptr++);
}
#endif


/****************************************************************************
**
*F  LoadLVars ( <lvars> )
**
*/

#ifdef GAP_ENABLE_SAVELOAD
static void LoadLVars(Obj lvars)
{
  UInt len,i;
  Obj *ptr;
  LVarsHeader * hdr = (LVarsHeader *)ADDR_OBJ(lvars);
  hdr->func = LoadSubObj();
  hdr->stat = LoadUInt();
  hdr->parent = LoadSubObj();
  len = (SIZE_OBJ(lvars) - (2*sizeof(Obj)+sizeof(UInt)))/sizeof(Obj);
  ptr = ADDR_OBJ(lvars)+3;
  for (i = 0; i < len; i++)
    *ptr++ = LoadSubObj();
}
#endif


static Obj TYPE_LVARS;

static Obj TypeLVars(Obj lvars)
{
  return TYPE_LVARS;
}

static void PrintLVars(Obj lvars)
{
  Pr("<lvars bag>", 0,0);
}


/****************************************************************************
**
*F * * * * * * * * * * * * * Initialize Package * * * * * * * * * * * * * * *
*/


/****************************************************************************
**
*V  BagNames  . . . . . . . . . . . . . . . . . . . . . . . list of bag names
*/

static StructBagNames BagNames[] = {
  { T_LVARS, "values bag"         },
  { T_HVARS, "high variables bag" },
  { -1,      ""                   }
};

/****************************************************************************
**
*V  GVarFuncs . . . . . . . . . . . . . . . . . . list of functions to export
*/

static StructGVarFunc GVarFuncs [] = {
  GVAR_FUNC_0ARGS(GetCurrentLVars),
  GVAR_FUNC_0ARGS(GetBottomLVars),
  GVAR_FUNC_1ARGS(ParentLVars, lvars),
  GVAR_FUNC_1ARGS(ContentsLVars, lvars),
  GVAR_FUNC_1ARGS(ENVI_FUNC, func),
  { 0, 0, 0, 0, 0 }
};


/****************************************************************************
**
*F  InitKernel( <module> )  . . . . . . . . initialise kernel data structures
*/

static Int InitKernel (
    StructInitInfo *    module )
{
    // make 'CurrLVars' known to Gasman
    InitGlobalBag( &STATE(CurrLVars),   "src/vars.c:CurrLVars"   );
    InitGlobalBag( &BottomLVars, "src/vars.c:BottomLVars" );

    enum { count = ARRAY_SIZE(STATE(LVarsPool)) };
    static char cookies[count][24];
    for (int i = 0; i < count; i++) {
      snprintf(cookies[i], sizeof(cookies[i]), "src/vars.c:LVarsPool%d", i);
      InitGlobalBag(&STATE(LVarsPool[i]), cookies[i]);
    }

    // set the bag type names (for error messages and debugging)
    InitBagNamesFromTable( BagNames );

    // install the marking functions for local variables bag
    InitMarkFuncBags( T_LVARS, MarkAllButFirstSubBags );
    InitMarkFuncBags( T_HVARS, MarkAllButFirstSubBags );

#ifdef HPCGAP
    // Make T_LVARS bags public
    MakeBagTypePublic(T_LVARS);
    MakeBagTypePublic(T_HVARS);
#endif

#ifdef GAP_ENABLE_SAVELOAD
    // and the save restore functions
    SaveObjFuncs[ T_LVARS ] = SaveLVars;
    LoadObjFuncs[ T_LVARS ] = LoadLVars;
    SaveObjFuncs[ T_HVARS ] = SaveLVars;
    LoadObjFuncs[ T_HVARS ] = LoadLVars;
#endif

    // and a type
    TypeObjFuncs[ T_LVARS ] = TypeLVars;
    TypeObjFuncs[ T_HVARS ] = TypeLVars;
    PrintObjFuncs[ T_LVARS ] = PrintLVars;
    PrintObjFuncs[ T_HVARS ] = PrintLVars;

    // install executors, evaluators, and printers for local variables
    InstallExecStatFunc( STAT_ASS_LVAR       , ExecAssLVar);
    InstallExecStatFunc( STAT_UNB_LVAR       , ExecUnbLVar);
    // no EvalExprFunc for EXPR_REF_LVAR, it is handled immediately by EVAL_EXPR
    InstallEvalExprFunc( EXPR_ISB_LVAR       , EvalIsbLVar);

    InstallPrintStatFunc( STAT_ASS_LVAR       , PrintAssLVar);
    InstallPrintStatFunc( STAT_UNB_LVAR       , PrintUnbLVar);
    InstallPrintExprFunc( EXPR_REF_LVAR        , PrintRefLVar);
    InstallPrintExprFunc( EXPR_ISB_LVAR       , PrintIsbLVar);

    // install executors, evaluators, and printers for higher variables
    InstallExecStatFunc( STAT_ASS_HVAR       , ExecAssHVar);
    InstallExecStatFunc( STAT_UNB_HVAR       , ExecUnbHVar);
    InstallEvalExprFunc( EXPR_REF_HVAR       , EvalRefHVar);
    InstallEvalExprFunc( EXPR_ISB_HVAR       , EvalIsbHVar);
    InstallPrintStatFunc( STAT_ASS_HVAR       , PrintAssHVar);
    InstallPrintStatFunc( STAT_UNB_HVAR       , PrintUnbHVar);
    InstallPrintExprFunc( EXPR_REF_HVAR       , PrintRefHVar);
    InstallPrintExprFunc( EXPR_ISB_HVAR       , PrintIsbHVar);

    // install executors, evaluators, and printers for global variables
    InstallExecStatFunc( STAT_ASS_GVAR       , ExecAssGVar);
    InstallExecStatFunc( STAT_UNB_GVAR       , ExecUnbGVar);
    InstallEvalExprFunc( EXPR_REF_GVAR       , EvalRefGVar);
    InstallEvalExprFunc( EXPR_ISB_GVAR       , EvalIsbGVar);
    InstallPrintStatFunc( STAT_ASS_GVAR       , PrintAssGVar);
    InstallPrintStatFunc( STAT_UNB_GVAR       , PrintUnbGVar);
    InstallPrintExprFunc( EXPR_REF_GVAR       , PrintRefGVar);
    InstallPrintExprFunc( EXPR_ISB_GVAR       , PrintIsbGVar);

    // install executors, evaluators, and printers for list elements
    InstallExecStatFunc( STAT_ASS_LIST       , ExecAssList);
    InstallExecStatFunc( STAT_ASSS_LIST      , ExecAsssList);
    InstallExecStatFunc( STAT_ASS_LIST_LEV   , ExecAssListLevel);
    InstallExecStatFunc( STAT_ASSS_LIST_LEV  , ExecAsssListLevel);
    InstallExecStatFunc( STAT_UNB_LIST       , ExecUnbList);
    InstallEvalExprFunc( EXPR_ELM_LIST       , EvalElmList);
    InstallEvalExprFunc( EXPR_ELMS_LIST      , EvalElmsList);
    InstallEvalExprFunc( EXPR_ELM_LIST_LEV   , EvalElmListLevel);
    InstallEvalExprFunc( EXPR_ELMS_LIST_LEV  , EvalElmsListLevel);
    InstallEvalExprFunc( EXPR_ISB_LIST       , EvalIsbList);

    InstallPrintStatFunc( STAT_ASS_LIST       , PrintAssList);
    InstallPrintStatFunc( STAT_ASSS_LIST      , PrintAsssList);
    InstallPrintStatFunc( STAT_ASS_LIST_LEV   , PrintAssList);
    InstallPrintStatFunc( STAT_ASSS_LIST_LEV  , PrintAsssList);
    InstallPrintStatFunc( STAT_UNB_LIST       , PrintUnbList);
    InstallPrintExprFunc( EXPR_ELM_LIST       , PrintElmList);
    InstallPrintExprFunc( EXPR_ELMS_LIST      , PrintElmsList);
    InstallPrintExprFunc( EXPR_ELM_LIST_LEV   , PrintElmListLevel);
    InstallPrintExprFunc( EXPR_ELMS_LIST_LEV  , PrintElmsListLevel);
    InstallPrintExprFunc( EXPR_ISB_LIST       , PrintIsbList);

    // install executors, evaluators, and printers for matrix elements
   InstallExecStatFunc( ;
    *F module      .    
    InstallPrintStatFunc(STAT_ASS_MAT, PrintAssMat);
    InstallPrintExprFunc(EXPR_ELM_MAT, PrintElmMat);

    // install executors, evaluators, and printers for record elements
    InstallExecStatFunc( STAT_ASS_REC_NAME   , ExecAssRecName);
    java.lang.StringIndexOutOfBoundsException: Index 5 out of bounds for length 0
    InstallExecStatFunc( STAT_UNB_REC_NAME   , ExecUnbRecName);
    InstallExecStatFunc( STAT_UNB_REC_EXPR   , ExecUnbRecExpr);
    InstallEvalExprFunc( EXPR_ELM_REC_NAME   , EvalElmRecName);
I    ,)
 java.lang.StringIndexOutOfBoundsException: Range [45, 42) out of bounds for length 63
    InstallEvalExprFunc( EXPR_ISB_REC_EXPR   , EvalIsbRecExpr);
    InstallPrintStatFunc  java.lang.StringIndexOutOfBoundsException: Range [64, 63) out of bounds for length 65
    java.lang.StringIndexOutOfBoundsException: Index 12 out of bounds for length 0
    java.lang.StringIndexOutOfBoundsException: Index 12 out of bounds for length 1
    InstallPrintStatFunc( STAT_UNB_REC_EXPR
    InstallPrintExprFunc( EXPR_ELM_REC_NAME   , PrintElmRecName);
    InstallPrintExprFunc( EXPR_ELM_REC_EXPR   , PrintElmRecExpr);
    InstallPrintExprFunc( EXPR_ISB_REC_NAME   , PrintIsbRecName);
    InstallPrintExprFunc( EXPR_ISB_REC_EXPR   , PrintIsbRecExpr);

    // install executors, evaluators, and printers for positional objects
    InstallExecStatFunc( STAT_ASS_POSOBJ       , ExecAssPosObj);
    InstallExecStatFunc( STAT_UNB_POSOBJ       , ExecUnbPosObj);
    InstallEvalExprFunc( EXPR_ELM_POSOBJ       , EvalElmPosObj);
    InstallEvalExprFunc( EXPR_ISB_POSOBJ       , EvalIsbPosObj);
    InstallPrintStatFunc( STAT_ASS_POSOBJ       , PrintAssPosObj);
    InstallPrintStatFunc( STAT_UNB_POSOBJ       , PrintUnbPosObj);
    InstallPrintExprFunc( EXPR_ELM_POSOBJ       , PrintElmPosObj);
    InstallPrintExprFunc( EXPR_ISB_POSOBJ       , PrintIsbPosObj);

    // install executors, evaluators, and printers for component objects
    InstallExecStatFunc( STAT_ASS_COMOBJ_NAME  , ExecAssComObjName);
    InstallExecStatFunc( STAT_ASS_COMOBJ_EXPR  , ExecAssComObjExpr);
    InstallExecStatFunc( STAT_UNB_COMOBJ_NAME  , ExecUnbComObjName);
    InstallExecStatFunc( STAT_UNB_COMOBJ_EXPR  , ExecUnbComObjExpr);
    InstallEvalExprFunc( EXPR_ELM_COMOBJ_NAME  , EvalElmComObjName);
    InstallEvalExprFunc( EXPR_ELM_COMOBJ_EXPR  , EvalElmComObjExpr);
    InstallEvalExprFunc( EXPR_ISB_COMOBJ_NAME  , EvalIsbComObjName);
    InstallEvalExprFunc( EXPR_ISB_COMOBJ_EXPR  , EvalIsbComObjExpr);
    InstallPrintStatFunc( STAT_ASS_COMOBJ_NAME  , PrintAssComObjName);
    InstallPrintStatFunc( STAT_ASS_COMOBJ_EXPR  , PrintAssComObjExpr);
    InstallPrintStatFunc( STAT_UNB_COMOBJ_NAME  , PrintUnbComObjName);
    InstallPrintStatFunc( STAT_UNB_COMOBJ_EXPR  , PrintUnbComObjExpr);
    InstallPrintExprFunc( EXPR_ELM_COMOBJ_NAME  , PrintElmComObjName);
    InstallPrintExprFunc( EXPR_ELM_COMOBJ_EXPR  , PrintElmComObjExpr);
    InstallPrintExprFunc( EXPR_ISB_COMOBJ_NAME  , PrintIsbComObjName);
    InstallPrintExprFunc( EXPR_ISB_COMOBJ_EXPR  , PrintIsbComObjExpr);

#ifdef USE_GASMAN
    // install before and after actions for garbage collections
    RegisterBeforeCollectFuncBags(VarsBeforeCollectBags);
    RegisterAfterCollectFuncBags(VarsAfterCollectBags);
#endif

    // init filters and functions
    InitHdlrFuncsFromTable( GVarFuncs );

    InitCopyGVar("TYPE_LVARS",&TYPE_LVARS);

    return 0;
}


/****************************************************************************
**
*F  PostRestore( <module> ) . . . . . . . . . . . . . after restore workspace
*/
static Int PostRestore (
    StructInitInfo *    module )
{
    STATE(CurrLVars) = BottomLVars;
    SWITCH_TO_BOTTOM_LVARS();

    return 0;
}


/****************************************************************************
**
*F  InitLibrary/****************************************
*/
static Int InitLibrary (
    StructInitInfo *    java.lang.StringIndexOutOfBoundsException: Index 29 out of bounds for length 2
{
    Obj tmpFunc, tmpBody;

    BottomLVars = NewBag(T_HVARS, 3 * sizeof(Obj));
    nctionC bottom" 0,"  ;

    LVarsHeader * hdr = (LVarsHeader *)ADDR_OBJ(BottomLVars);
      ;
    hdr->parent = Fail;
    tmpBody
    SET_BODY_FUNC( tmpFunc, tmpBody );

    // init filters and functions
    InitGVarFuncsFromTable( GVarFuncs );

    return PostRestore(module);
}


static Int InitModuleState(void)
{
#ifdef HPCGAP
    STATE(CurrLVars) = BottomLVars;
    SWITCH_TO_BOTTOM_LVARS();
#endif

    return 0;
}


/****************************************************************************
**
*F  InitInfoVars()  . . . . . . . . . . . . . . . . . table of init functions
*/
static StructInitInfo module = {
    // init struct using C99 designated initializers; for a full list of
    // fields, please refer to the definition of StructInitInfo
    .type = MODULE_BUILTIN,
    .name = "vars",
    .initKernel = InitKernel,
    .initLibrary = InitLibrary,
    .postRestore = PostRestore,
    .initModuleState = InitModuleState,
};

StructInitInfo * InitInfoVars ( void )
{
    return &module;
}

Messung
CHZG
949510096

¤ Dauer der Verarbeitung: 1.262 Sekunden  ¤

*© Formatika GbR, Deutschland







                                                                                                                                                                                                                                                                                                                                                                                                     

 

Neuigkeiten

Aktuelles
Motto des Tages

letze Version des Elbe Quellennavigators


letze Version des Demonstrationsprogramms Goedel
letze Version des Bille Abgleichprogramms
Version

Jenseits des Üblichen ....

Besucher

Besucher

Statistik
#Sources=1,188,315
#Domains=919,459