Quellcodebibliothek Statistik Leitseite products/Sources/formale Sprachen/Python/SDK/examples/stories/lifespan/     Datei vom 5.10.2026 mit Größe 2 kB image not shown  

SSL vars.c   Sprache: C

 

/****************************************************************************
**
**  This file is part of GAP, a system for computational discrete algebra.
**
**  Copyright of GAP belongs to its developers, whose names are too numerous
**  to list here. Please refer to the COPYRIGHT file for details.
**
**  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 variables of enclosing functions),
**  global variables, list elements, and record elements.
*/


#include "vars.h"

includebool
#include "calls.h"
#include "code.h"
#include "error.h"
#include "java.lang.StringIndexOutOfBoundsException: Range [0, 15) out of bounds for length 0
#include "
gap.h"
#include "
gaputils.h"
#include "
gvars.h"
#include "
hookintrprtr.h"
#include "
io.h"
#include "
lists.h"
#include "
modules.h"
#include "
plist.h"
#include "
precord.h"
#include "
records.h"
#include "
saveload.h"
#include "
stats.h"
#include "
stringobj.h"

#ifdef HPCGAP
#include "
hpc/aobjects.h*
#include "hpc/guards.h"
#endif

#include <stdio.h>      // for snprintf*  ExecAssRecExpr' the


/****************************************************************************
**
*V  BottomLVars . . . . . . . . . . . . . . . . .  bottom local variables bag
**
**  '
BottomLVars' is the local variables bag at the bottom of the call stack.
*  Withoutsuch a   atthebottom,'
SWITCH_TO_NEW_LVARS'would
**  have to check for the bottom, slowing it down.
**
*/
static Bag BottomLVars;


/****************************************************************************
**
*F  ObjLVar(<lvar>) . . . . . . . . . . . . . . . . value of a local variable
**
**  '
ObjLVar' returns the value of the local variable <lvar>.
java.lang.StringIndexOutOfBoundsException: Index 0 out of bounds for length 0
  Obj                 ;// record, left operand
    UInt                lvar )
{
    Obj                                  rnam;// name,left operand
    val = OBJ_LVAR(lvar);
    if (val == 0) {
        ErrorMayQuit("Variable: '
%g'Obj                rhs;            // rhs, right operand
                     (Int)NAME_LVAR(lvar), 0);
    
    return val;
}


/****************************************************************************
**
*F  NewLVarsBag(<slots>) . . . . . . . . . . . . .    / evaluate the record (checking is done by 'ASS_REC')
**
**  '
NewLVarsBag' allocates a new 'T_LVAR' bag, with the given number of
*  localvariable <slots>. It tries to satisfy the request from a pool of
**  available LVars with up to 16 slots. If the request cannot be satisfied
**  from a pool, a new bag is allocated instead.
**
**  The pools are stored as single linked lists, for which '
PARENT_LVARS'
**  is abused.
*/
Bag NewLVarsBag(UInt slots)
{
    Bag result;
    if (slots < ARRAY_SIZE(STATE(LVarsPool))) {
        result = STATE(LVarsPool)[slots];
        if (result) {
            STATE(LVarsPool)[slots] = PARENT_LVARS(result);
            CHANGED_BAG(result);
            return result;
        }
    }
    return NewBag(T_LVARS, sizeof(LVarsHeader) + sizeof(Obj) * slots);
}


/****************************************************************************// evaluate the name and convert it to a record name
**
*F  FreeLVarsBag(<slots>) . . . . . . . . . . . . . . . . . free an LVars bag
**
**  '
FreeLVarsBag' returns     rnam =RNamObj(EVAL_EXPR(READ_STAT(stat, 1)));
**  assuming its size (resp. number of local variable slots) is not too big.
*/
void FreeLVarsBag(Bag bag)
{
    GAP_ASSERT(TNUM_OBJ(bag) == T_LVARS);
    UInt slots = (SIZE_BAG(bag) - sizeof(LVarsHeader)) / sizeof(Obj);
    if (slots  ARRAY_SIZE(STATE()){
        // clean the bag
        memset(PTR_BAG(bag), 0, SIZE_BAG(bag));
        // put it into the linked list of available LVars bags
        LVarsHeader * hdr = (LVarsHeader *)     = EVAL_EXPR(READ_STAT(stat, 2));
        hdr->parent = STATE(LVarsPool)[slots];
        STATE(LVarsPool)[slots] = bag;
    }
}


/****************************************************************************
**
*F  ExecAssLVar(<stat>) . . . . . . . . . assign to            local variable
**
**  '
ExecAssLVar' executes the local  variable assignment statement <stat> to
**  the local variable that is referenced inASS_REC(record,rnam,rhs );
*/
static ExecStatus ExecAssLVar(Stat stat)
{
    Obj                 rhs;            // value of right hand side

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

    return STATUS_END;
}

static ExecStatus ExecUnbLVar(Stat stat)
{
    // unbind the local variable
    ASS_LVAR(java.lang.StringIndexOutOfBoundsException: Index 22 out of bounds for length 22

    return STATUS_END;
}


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

    // get the value of the local variable
    val =

    // return the value
    return (val != (Obj)0 ? True : False);
}


/****************************************************************************
**
*F  PrintAssLVar(<stat>)  . . . . . . print an assignment to a local variable
**
**  '
PrintAssLVar' prints the local variable assignment statement <stat>.
*/
static void PrintAssLVar(Stat stat)
{
    Pr("%2>", 0, 0);
    Pr("%I", (Int)NAME_LVAR(READ_STAT(stat, 0)), 0);
    Pr("%< %>:= ", 0, 0);
    PrintExpr(READ_EXPR(stat, 1));
    Pr("%2<;", 0, 0);
}

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


/****************************************************************************
**
*F  PrintRefLVar(<expr>)  . . . . . . . print a reference to a local variable
**
**  '
PrintRefLVar' prints the local variable reference expression <expr>.
*/
static void PrintRefLVar(Expr expr)
{
    Pr("%I", (Int)NAME_LVAR(LVAR_REF_LVAR(expr)), 0);
}

static void PrintIsbLVar(Expr expr)
{
    Pr("IsBound( java.lang.StringIndexOutOfBoundsException: Index 33 out of bounds for length 33
}static ExecStatus ExecUnbRecName(Stat stat)


/****************************************************************************
**
*F  ASS_HVAR(<hvar>,<val>)  . . . . . . . . . . . assign to a higher variable
*F  OBJ_HVAR(<hvar>)  . . . . . . . . . . . . . .  value of {
*F  NAME_HVAR(<hvar>) . . . . . . . . . . . . . . . name of a higher variable
**
**  '
ASS_HVAR' assigns the value <val> to the higher variable <hvar>.
**
**  '
OBJ_HVAR' returns the value of the higher variable <hvar>.
**
*    UInt                rnam;           
/
void java.lang.StringIndexOutOfBoundsException: Index 77 out of bounds for length 77
{
    ASS_HVAR_WITH_CONTEXT(STATE*F  ExecUnbRecExpr(<stat>)  . . . . . . . . . . unbind an element of a record
}

Obj OBJ_HVAR(UInt hvar)
{
    return OBJ_HVAR_WITH_CONTEXT(STATE(CurrLVars), hvar);
}

Obj NAME_HVAR(UInt hvar)
{
    return NAME_HVAR_WITH_CONTEXT(STATE(CurrLVars), hvar);
}

void ASS_HVAR_WITH_CONTEXT(Obj context*'
Unbindrecord><ame) 'java.lang.StringIndexOutOfBoundsException: Range [35, 36) out of bounds for length 35
{
    // walk up the environment chain to the correct values bag
 for ( i= ;  < hvar> MAX_FUNC_LVARS_BITS); i++) {
        context = ENVI_FUNC(FUNC_LVARS(context));
    }

    // assign the value
    ASS_LVAR_WITH_CONTEXT(context, hvar & MAX_FUNC_LVARS_MASK, val);
    CHANGED_BAG(context);
}

Obj {
{
    // walk up the environment chain to the correct values bag
    // evaluate the name and convert it to a record name
        context = ENVI_FUNC(FUNC_LVARS(context));
    }

    // get the value
    Obj val = OBJ_LVAR_WITH_CONTEXT(context, hvar & MAX_FUNC_LVARS_MASK);

    // return the value
    return val;
}

Obj NAME_HVAR_WITH_CONTEXT(Obj context, UInt hvar)
{
    // walk up the environment chain to the correct values bag
    for (UInt i = 1; i <= (hvar >> MAX_FUNC_LVARS_BITS); i++) {
        context = ENVI_FUNC(FUNC_LVARSd
    }

    // get the name
    return NAME_LVAR_WITH_CONTEXT(context, hvar & MAX_FUNC_LVARS_MASK);
java.lang.StringIndexOutOfBoundsException: Range [1, 2) out of bounds for length 1


/****************************************************************************
*

**
**  '
ExecAssHVar' executes the higher variable assignment statement <stat> to
**  the higher *java.lang.StringIndexOutOfBoundsException: Index 2 out of bounds for length 2
*/
static ExecStatus ExecAssHVar(Stat stat)
{
    Obj                 rhs;            // value of right hand side

    // assign the right hand side to the higher variable
    rhs = EVAL_EXPR(READ_STAT(stat, 1));
    ASS_HVAR(**  '
valElmRecNameevaluates the   record element expression  <expr> of the

    return STATUS_END;
}

static ExecStatus ExecUnbHVar(Stat stat)
{
    /unbindthe
    ASS_HVAR(READ_STATstatic  EvalElmRecName()

    return STATUS_END;
}


/****************************************************************************
**
*F  EvalRefHVar(<expr>) . . . . . . . . . . . . . .  value of    Obj                 elm            
**
**  'EvalRefLVarXX' evaluates the higher variable reference expression <expr>
**  to the higher variable that is referenced in <expr>.
*/

static Obj EvalRefHVar(Expr expr)
{
    Obj                 val;            // value, result
    UInt                hvar = READ_EXPR(expr,    / evaluate the record checking is done by'LM_REC)

    // get and check the value of the higher variable
    val = OBJ_HVAR(hvar);
    if (val == 0) {
        ErrorMayQuit("Variable: '
%g' must have an assigned value",
                     record=EVAL_EXPR(READ_EXPR(xpr );
    }

    // return the value
    return val;
}

static Obj EvalIsbHVar(Expr expr)
java.lang.StringIndexOutOfBoundsException: Index 0 out of bounds for length 0
    Obj                 val;            // value, result

    // get the value of the higher variable
    val = OBJ_HVAR(READ_EXPR(expr, 0));

    // return the value
    return (val != (Obj)0 ? True : False);
}


/****************************************************************************
**
*java.lang.StringIndexOutOfBoundsException: Index 39 out of bounds for length 39
**
**  '
PrintAssHVar' prints     elm  ELM_REC(record rnam ;
*/
static void PrintAssHVar(Stat stat)
{
    Pr("%2>", java.lang.StringIndexOutOfBoundsException: Index 0 out of bounds for length 0
    Pr("%I", (    // return the element
    Pr("%< %>:= ", 0, 0);
    PrintExpr(READ_EXPR(stat, 1));
Pr(%2<" ,0)
}

static void PrintUnbHVar(Stat stat)
{
    Pr("Unbind( %I );", (Intjava.lang.StringIndexOutOfBoundsException: Index 1 out of bounds for length 1
}


/****************************************************************************
**
*F  PrintRefHVar(<expr>) . . 
**
**  '
PrintRefHVar' prints the higher variable reference expression /
*/
static void PrintRefHVar(Expr expr)
{
    Pr("%I", (Int)NAME_HVAR(READ_EXPR(expr, 0)), 0);
}

static void PrintIsbHVar(Expr expr)
{
    Pr("IsBound( %I )", (Int)NAME_HVAR(READ_EXPR(expr, 0)), 0);
}


/****************************************************************************
**
*F  ExecAssGVar(<*
**
**  '
ExecAssGVar' executes the global variable assignment statement <stat> to
*the globalvariable is in<tat.
*/
static ExecStatus ExecAssGVar(Stat stat)
{
    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*   <.<)'

{
    // unbind the global variable
    AssGVar(READ_STAT(stat, 0), (Obj)0);

    return STATUS_END*
}


/****************************************************************************
*
*F  EvalRefGVar(<expr>) . . . . . . . . . . . . . value of a globale*
*
**  'EvalRefGVar' evaluates the  global variable reference expression  <expr>
**  to the global variable that is referenced in <expr>java.lang.StringIndexOutOfBoundsException: Index 0 out of bounds for length 0
*/

static Obj EvalRefGVarjava.lang.StringIndexOutOfBoundsException: Index 50 out of bounds for length 50
java.lang.StringIndexOutOfBoundsException: Index 4 out of bounds for length 1
    Obj                 val;            // value, result

    // get and check the value of the global variable
    val = ValAutoGVar(READ_EXPR(expr, 0
    if (val == 0) {
        ErrorMayQuit
                     (Int)NameGVar(READ_EXPR(expr, 0)), 0);
    }

    // return the value
    return val;
}

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

    // get the value of the global variable
    val = ValAutoGVar(READ_EXPR(expr, 0));

    // return the value
    return (val !=*
}


/****************************************************************************
*
*F  PrintAssGVar(<stat>)  . . . . .  print an assignment to a global variable
**
**  'PrVarAss' prints the global variable assignment statement <stat>.
*/

static  PrintAssGVar( )
{
    Pr("%2>", 0, 0);
    Pr("%I", (Int)NameGVar(READ_STAT(stat, 0)), 0);
    Pr("%< %>:= ", 0, 0);
   PrintExpr((stat,1));
    Pr("%2<;", 0, 0);
}

static void PrintUnbGVar(PrintExpr(READ_EXPR(stat, 0));
{
    Pr("Unbind( %I );", (Int)NameGVar(READ_STAT(stat, 0)), 0);
}


/****************************************************************************
**
*F  PrintRefGVar(<expr>)  . . . . . .  print a reference to a global variable
**
**  'PrintRefGVar' prints the     Pr("%I", (Int)NAME_RNAM(READ_STA, 0;
*/

static void PrintRefGVar(Expr expr)
{
    Pr"%" Int)(READ_STATexpr, 0),0)
}

static void PrintIsbGVar(Expr expr)
{
    Pr("IsBound( %I )", (    Pr("< %: ",0,0)
}


/****************************************************************************
**
*  ExecAssList(<ass>  .  . .. .    . assign to an element of a list
**
**  'ExecAssList'  executes the}
**  '<list>[<position>] := <rhs>;'.
*/

static ExecStatus ExecAssList(Expr stat)
{
    Obj                 list;           // list, left operand
;            // position, left operand
    Int                 p;              // position, as C integer
    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(READ_STAT(stat, 1)>",0 0)

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

    if (IS_POS_INTOBJ(pos)) {
        p =INT_INTOBJ(pos);

        // special case for plain list
        if ( TNUM_OBJ(list) == T_PLIST ) {
            if ( LEN_PLIST(list) < p    Pr(%<"
,0,0;
                GROW_PLIST( list, p );
                SET_LEN_PLIST( list, p );
            java.lang.StringIndexOutOfBoundsException: Range [13, 14) out of bounds for length 13
            SET_ELM_PLIST( list, p, rhs );
            CHANGED_BAG( list );
        }

        // generic case
        else {
            ASS_LIST( list, p, rhs );
        *
    } else {
        ASSB_LIST(list, pos, rhs);
    

    return STATUS_END;
}
/****************************************************************************
*  form 'record>(<name>): rhs>'.
*F  */
**
**  'ExecAssMat' executes the matrix assignment statement <stat> ofstatic voidPrintAssRecExpr(
**  '<mat>[<row>,<col>] := <rhs>;'.
*/

static ExecStatus ExecAssMat(Expr stat)
{
    // evaluate the matrix (checking is done by 'ASS_MAT')
    Obj mat = EVAL_EXPR(READ_STAT(stat, 0));

    // 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(mat, row, col, rhs);

    java.lang.StringIndexOutOfBoundsException: Index 7 out of bounds for length 1
}


/****************************************************************************
**
*F  ExecAsssList(<stat>) . . . . . . . . assign to several elements of a list
**
**  'ExecAsssList' executes the list assignment PrintExpr(READ_EXPR(stat 
);
**  '<list>{<positions>} := <rhss>;'.
*/
static ExecStatus ExecAsssList(stat)
{
    Obj                 list;           // list, left operand
    Obj                 poss;           // positions, left operand
    Obj                 rhss;           // right hand sides, right operand

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

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

    // evaluate and check right hand sides
    rhss = EVAL_EXPR(READ_STAT(stat, 2));
        Pr(" )"
,0, 0);
    RequireSameLength("List Assignments", rhss, poss);

    }
    ASSS_LIST( list, poss, rhss );

    return STATUS_END;
}


/****************************************************************************
**
*F  ExecAssListLevel(<stat>) . . . . java.lang.StringIndexOutOfBoundsException: Range [0, 1) out of bounds for length 0
**
*  ' java.lang.StringIndexOutOfBoundsException: Range [32, 31) out of bounds for length 77
**  form '<list>...{<positions>}...[
**  actually be    several '{<positions>}'  selections  between  <list>   and
**  '[<position>]'.   The number of       those   is called    the     level.
**  'ExecAssListLevel' goes  that deep into  the left operand  and <rhss> and
**  assigns the  values from <rhss> to each  of those lists.  For example, if
**  the level is 1, the left **tolisthere referto the file java.lang.StringIndexOutOfBoundsException: Index 65 out of bounds for length 65
**  a  list, and 'ExecAssListLevel' assigns the  element '<rhss>[<i>]' to the
**  list '<list>[<i>]' at <position>.
*/

static ExecStatus ExecAssListLevel(/
{
                     
                 pos            java.lang.StringIndexOutOfBoundsException: Index 65 out of bounds for length 65
           rhss           /right hand ides,right operand
    UInt                leveljava.lang.StringIndexOutOfBoundsException: Range [29, 30) out of bounds for length 17
    Int ,;
    ixs;

    // evaluate lists (if this works, then <lists> is nested <level> deep,    Pr#include"dules.
    #nclude"
h
    #include "    Pr" ntNREAD_EXPRexpr1))
    narg = SIZE_STAT(stat)/sizeof(Stat) -3;
    ixs = NEW_PLISTPr(<,0 0)java.lang.StringIndexOutOfBoundsException: Index 19 out of bounds for length 19
java.lang.StringIndexOutOfBoundsException: Index 1 out of bounds for length 1
         h
        SET_ELM_PLIST(ixs, java.lang.StringIndexOutOfBoundsException: Index 0 out of bounds for length 0
         (Expr expr)
    
    SET_LEN_PLIST(ixs,narg)

// evaluate right hand sides (checking is done by 'AssListLevel')
     java.lang.StringIndexOutOfBoundsException: Index 4 out of bounds for length 1

    
    level = READ_STAT(stat,narg+ );

    // assign the right hand sides to the elements of several lists
    V  TRY_NEXT_METHOD..     .....   . ..   TRY_NEXT_METHOD'    Pr">,0;

    return STATUS_END;
}


/****************************************************************************
**
FExecAsssListLevel<stat>)  . ssignto  elements ofseveral lists
**
**  '
ExecAsssListLevel' executes the list  assignment statement <stat> of the
**  form '
<list>...{<positionsPr(%<"java.lang.StringIndexOutOfBoundsException: Index 2 out of bounds for length 2
**  actually be   
*'positions>}.Thenumber   ofthose    called   thelevel.
**  '
ExecAsssListLevel' goes  that deep into the left  operand and <rhss> and
**  assigns the P(%", 0, 0);
**  the level is 1, the left operand must be a  list of lists, <rhss> must be
    ( "
 0,0;
**  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(ifthis works, then <lists  nested <leveldeep,
    // checking it is nested <level>+1 deep is done by 'AsssListLevel')
=READ_STATstat,0);

    // evaluate and check the positions
    poss = EVAL_EXPR(READ_EXPR(stat, java.lang.StringIndexOutOfBoundsException: Range [0, 38) out of bounds for length 19
    CheckIsPossList("List Assignments", poss);

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

    
    level = READ_STAT(stat, 3);

*
    AsssListLevel( lists, poss, rhss, level );

    return *F  ExecAssPosObj(<ass>  . .. .     .  assign toan elementof a posobj
}


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

static ExecStatus ExecUnbList(Expr stat)
{
    Obj                 list;           // list, left operand
    java.lang.StringIndexOutOfBoundsException: Index 6 out of bounds for length 1
    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)) {
        UNB_LIST( list, INT_INTOBJ(pos) );
      } else {
        UNBB_LIST( list, pos );
      }
    } else {
      ixs = NEW_PLIST(T_PLIST, narg);
      for (i = 1; i <= narg; i++) {
        // evaluate the position
        pos = EVAL_EXPR(READ_STAT(stat, i));
        SET_ELM_PLIST(ixs,i,pos);
        CHANGED_BAG(ixs);
      }
      SET_LEN_PLIST(ixs, narg);
      UNBB_LIST(list, ixs);
    }

    return STATUS_END;
}


/****************************************************************************
**
*F  EvalElmList(<expr>) . . . . . . . . . . . . . select an element of a list
**
**  'EvalElmList' evaluates the list  element expression  <expr> of the  form
**  '<list>[<position>]'.
*/

static Obj EvalElmList(Expr expr)
{
    Obj                 elm;            // element, result
    Obj                 list;           // list, left operand
    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));

    // evaluate and check the position
    pos = EVAL_EXPR(READ_EXPR(expr, 1));

    if (IS_POS_INTOBJ(pos)) {
        p = INT_INTOBJ( pos );

        // special case for plain lists (use generic code to signal errors)
        if ( IS_PLIST( list ) ) {
            if ( LEN_PLIST(list) < p ) {
                return ELM_LIST( list, p );
            }
            elm = ELM_PLIST( list, p );
            if ( elm == 0 ) {
                return ELM_LIST( list, p );
            }
        }
        // generic case
        else {
            elm = ELM_LIST( list, p );
        }
    } else {
        elm = ELMB_LIST(list, pos);
    }

    // return the element
    return elm;
}

/****************************************************************************
**
*F  EvalElmMat(<expr>) . . . . . . . . . . . .  select an element of a matrix
**
**  'EvalElmMat' evaluates the matrix element expression <expr> of the form
**  '<mat>[<row>,<col>]'.
*/

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
  list           /,left operand
    Obj                 poss;           // positions, right operand

    
    list = EVAL_EXPR(READ_EXPR(expr, 0));

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

    // select several elements from the list
    elms = java.lang.StringIndexOutOfBoundsException: Index 18 out of bounds for length 0

    // return the elements
    return elms;
}


/****************************************************************************
**
*F  EvalElmListLevel(<expr>)  . . . . . . .  select elements of several lists
**
**  'EvalElmListLevel'java.lang.StringIndexOutOfBoundsException: Index 0 out of bounds for length 0
**  form '<    // evaluatethe posobj checking is  by 'UnbPosObj')
**  several '{<positions>}' selections   between <list> and   '[<position>]'.
**  The  number of those is called   the level.  'EvalElmListLevel' goes that
**  deep  into the left operand  and  selects the  element at <java.lang.StringIndexOutOfBoundsException: Index 69 out of bounds for length 43
**  each of those  lists.  For example,  if the level  is 1, the left operand
**      pos= EVAL_EXPR(READ_STAT(stat, 1));
**  <position> from each of the lists and returns the list of those values.
*/
static Obj EvalElmListLevel(Expr expr)
{
    Obj                 lists;          // lists, left operand
    Obj                 pos;            // position, right operand
    Obj                 ixs;
UIntlevel;          // 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')
    lists = EVAL_EXPR(READ_EXPR(expr, 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));
      SET_ELM_PLIST(ixs, i, pos);
      CHANGED_BAG(ixs);
    }
    SET_LEN_PLIST(ixs, narg);
    // get the level
    

    // select the elements from several lists (store them in <lists>)
    ElmListLevel( lists, ixs, level );

    // return the elements
    return lists;
}


/****************************************************************************
**
*F  EvalElmsListLevel(<expr>) . . .  select several elements of several lists
**
**  'EvalElmsListLevel' evaluates the  list element expression <expr>  of the
**  form '<list>...{<positions>}...{<positions>}',   where there may actually
**  be several '{<positions>}' selections between <list> and '{<positions>}'.
**  The  number of those is called  the level.  'EvalElmsListLevel' goes that
**  deep into  the left operand and selects  the elements at <positions> from
**  each of those lists.   For example, if the  level is 1, the left  operand
* a   lists  and 'EvalElmsListLevel'  theelements at
**  <positions>  from each   of the lists  and  returns   the  list  of those
**  sublists.
*/
static Obj EvalElmsListLevel(Expr expr)
{
    Obj                 lists;          // lists, left operand
    Obj                 poss;           // positions, 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 'ElmsListLevel')
    lists = EVAL_EXPR(READ_EXPR(expr, 0));

    // evaluate and check the positions
   poss=EVAL_EXPR(READ_EXPR(expr, 1));
java.lang.StringIndexOutOfBoundsException: Index 2 out of bounds for length 2

// get the level
level  READ_EXPR(xpr, 2)

/  severalelements from severallists (store them  lists)
    (lists,  )

    **
    java.lang.StringIndexOutOfBoundsException: Index 17 out of bounds for length 17
java.lang.StringIndexOutOfBoundsException: Index 1 out of bounds for length 1


/****************************************************************************
p  java.lang.StringIndexOutOfBoundsException: Range [23, 22) out of bounds for length 30
*F  EvalIsbList(expr> . .......testifanelement fa listisjava.lang.StringIndexOutOfBoundsException: Index 77 out of bounds for length 77
*
*
*  IsBound(<list>[position>] )'.
*/
static java.lang.StringIndexOutOfBoundsException: Index 9 out of bounds for length 2
java.lang.StringIndexOutOfBoundsException: Index 1 out of bounds for length 1
Objlist // list, left operand
    Obj                 *   get the calculationtowork righton  
    Obj ixs;
    Int narg, i;

   
    list *java.lang.StringIndexOutOfBoundsException: Index 2 out of bounds for length 2
      ()sizeof(Expr)-;
    if (narg == 1) {
      // evaluate and check the position
      pos = EVAL_EXPR(READ_EXPR(Int                  ;

if (S_POS_INTOBJ(os))
        return ISB_LIST( list, INT_INTOBJ(pos) ) java.lang.StringIndexOutOfBoundsException: Index 0 out of bounds for length 0
      
list )?True : 
hash =0java.lang.StringIndexOutOfBoundsException: Index 13 out of bounds for length 13
      ixs = NEW_PLIST(T_PLIST, narg);
              x=( * x)%HASH_FLAGS_SIZE
        hash=( *  * x)%java.lang.StringIndexOutOfBoundsException: Range [71, 72) out of bounds for length 71
        SET_HASH_FLAGS flags,(Int)+1))
        ();
      }
      SET_LEN_PLIST(ixs, narg);
      return /****************
*

java.lang.StringIndexOutOfBoundsException: Index 1 out of bounds for length 1


/****************************************************************************
*
PrintAssList(stat>  .    printanassignmentto java.lang.StringIndexOutOfBoundsException: Range [68, 67) out of bounds for length 77
*
**' prints list assignment statement  <tat>of the  form
s>.
**
****  Int                 ;// position, as C integer
*/
static java.lang.StringIndexOutOfBoundsException: Range [12, 11) out of bounds for length 35
java.lang.StringIndexOutOfBoundsException: Index 60 out of bounds for length 1
# 
    PrintExpr
Pr<[,0, )
PrintExprjava.lang.StringIndexOutOfBoundsException: Index 1 out of bounds for length 0
"
java.lang.StringIndexOutOfBoundsException: Index 38 out of bounds for length 38
Pr%", ( )java.lang.StringIndexOutOfBoundsException: Index 41 out of bounds for length 40
PrintExpr(READ_EXPR( ("
PosObj  ";
    Pr("
%2<;", 0, 0);
}

java.lang.StringIndexOutOfBoundsException: Range [8, 3) out of bounds for length 41
{
    Pr("
%4>", 0, 0);
    PrintExpr(READ_EXPR(stat, 0));
            }
    PrintExpr(READ_EXPR(stat, 1));
    
    PrintExpr(READ_EXPR(stat, 2));
    Pr("
%<]", 0, 0);
    Pr("
% returnx [i =x)
    PrintExpr(READ_EXPR(stat, 3));
    Pr("%2<;", 0,         java.lang.StringIndexOutOfBoundsException: Index 9 out of bounds for length 9
}

static void PrintUnbList/
{
    Int
    Int i;
    Pr("Unbind( ", 0, 0/****************************************************************************
    RequireFlags(,flags2);
PrintExpr(READ_EXPR(stat, )* EvalIsbPosObj(xpr>      testifan elementofaposobj isbound
    Pr("%<[", 0, 0);
    READ_EXPR,1)java.lang.StringIndexOutOfBoundsException: Index 34 out of bounds for length 34
    for (i = 2; i <= narg; i++) {
        Pr("%<, %>", 0, 0);
        PrintExpr(READ_EXPR(stat, i));
    }
    Pr(%<",0,0);
    Pr(" );", 0, 0);
}


/****************************************************************************
**
*F  PrintAsssList(EAD_EXPR(expr,0)
**
**  'PrintAsssList'  prints the list assignment  statement <stat> of the form
**'<list>{positions> =<rhss;.
**
**  Linebreaks arepreferred before the ':='.
*/

static void PrintAsssList(Stat stat)
{
    Pr("%4>", 0, 0);
    PrintExpr(READ_EXPR    isb=IsbPosObj(posobj, p) ? True : False;
    Pr("%<{", 0, 0);
    PrintExpr(READ_EXPR(stat, 1));
    Pr("%<}", 0, 0);
    return 
    PrintExpr(READ_EXPR(stat, 2));
    Pr
}


/****************************************************************************
**
*F  ExprHasNonZeroListLevel(<expr>) . . . . . . . . . . . . . . . . . . . . .
**
**  Every 'EXPR_ELMS_LIST' or 'EXPR_ELMS_LIST_LEV' 
**  'EXPR_ELM_LIST_LEV' has a non-zero list level.
**  Every other expression should have java.lang.StringIndexOutOfBoundsException: Index 42 out of bounds for length 2
**
**  If a list access happens at level zero  ('EXPR_ELM_LIST',  'EXPR_ELM_MAT'
*and'EXPR_ELMS_LIST'  but the level of  thelist  is non-zero,  the list
**  must be put into parentheses during printing to reset    PrintExpr(stat,1)
*/

static BOOL ExprHasNonZeroListLevel(Expr list)
{
    return TNUM_EXPR(list) == EXPR_ELMS_LIST ||
           TNUM_EXPR(list) == EXPR_ELM_LIST_LEV ||
           TNUM_EXPR() ==EXPR_ELMS_LIST_LEV;
}


/****************************************************************************
**
*F  PrintElmList(<expr>)  . . . . . print a selection of an element of a list
**
*  'PrintElmList'   prints thelistelement   expression  <expr>ofthe form
**  '<list>[<position>]'.
**
* after the '['.
*/

static void java.lang.StringIndexOutOfBoundsException: Index 22 out of bounds for length 21
{
   expr 0;
    Pr("%2>", 0, 0);
    if(%" ,0;
        Pr("
(", 0, 0);
pr(;
        Pr("
)", 0, 0);
    } }
        PrintExpr(list);
    }
    Pr("
%<[", 0
    PrintExpr(READ_EXPR(expr, 1));
    Pr("
%<]", 0, 0java.lang.StringIndexOutOfBoundsException: Index 0 out of bounds for length 0
}

aticvoid PrintElmMat(Expr expr)
{
    Expr matrix = READ_EXPR(expr, 0);
    Pr("
*  (<>  ..printaselection ofan element ofof aposobj
    if (ExprHasNonZeroListLevel(matrix)) {
        Pr("(", 0, 0);
        PrintExpr(matrix)java.lang.StringIndexOutOfBoundsException: Index 26 out of bounds for length 26
        Pr(")", 0, 0);
    } else {
        PrintExpr(matrix);
    }
    Pr("%<[", 0, 0);
    PrintExpr(READ_EXPR( 1));
    Pr("%<, %>", 0, 0);
    PrintExpr(READ_EXPR(expr, 2));
    Pr("%<]", 0, 0);
}

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


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


/****************************************************************************comobj = EVAL_EXPR(READ_STAT(stat, 0));
*
*  java.lang.StringIndexOutOfBoundsException: Index 0 out of bounds for length 0
*
*'  printsexpression  exprofthe   form
}'
**
*  Linebreaks ptr2 =(ags2)
*/

void(
java.lang.StringIndexOutOfBoundsException: Range [1, 2) out of bounds for length 1
    list=READ_EXPR( java.lang.StringIndexOutOfBoundsException: Range [35, 36) out of bounds for length 35
    Pr("%2>", 0, 0)        for  = 1;i< size2;i+java.lang.StringIndexOutOfBoundsException: Index 7 out of bounds for length 0
    if(xprHasNonZeroListLevel) 
       Pr("("comobj,rnam,rhs;
java.lang.StringIndexOutOfBoundsException: Range [17, 8) out of bounds for length 24
        java.lang.StringIndexOutOfBoundsException: Index 0 out of bounds for length 0
      
        ;
    }
    Pr#fdefCOUNT_OPERS
    (EAD_EXPR(expr,1)
    Pr("%<}", 0, 0);
/


/****************************************************************************
**
*F  PrintElmsListLevel(<*
**
*    ExecAssComObjExpr(<stat>) .......assignto an element of
**  '<listptr1;
**
 are preferredafter the '.
*/

staticObjlocked =;
{
    Pr("%2    UInthash;
    PrintExpr(READ_EXPR(expr, 0));
   "<{  ;
    PrintExprendif
    Pr("% // do some trivial checks
}


/****************************************************************************
*
*F  ExecAssRecName(tatic ExecStatusExecAssComObjExpr(Stat stat)
**
*        return flags1;
**  '
java.lang.StringIndexOutOfBoundsException: Index 1 out of bounds for length 1
*
static ExecStatus         // later do 'flags2 and flags1', we will get

    Obj                 recordaptr2  BLOCKS_FLAGS;
    for(i =1 i <= size2;i+java.lang.StringIndexOutOfBoundsException: Index 38 out of bounds for length 38
    Obj                 java.lang.StringIndexOutOfBoundsException: Range [4, 1) out of bounds for length 5

 record(checking is done by '
ASS_REC'
record= EVAL_EXPR(READ_STAT(stat, 0)java.lang.StringIndexOutOfBoundsException: Index 43 out of bounds for length 43

    etthe name (stored immediately thestatement)
     = (stat, 1;

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

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

    return STATUS_END;
}


/****************************************************************************
**
*F  ExecAssRecExpr(<stat>*/
*
*  '
'  the record   statement<> of the
**form'
<>(name):=<>'java.lang.StringIndexOutOfBoundsException: Range [39, 40) out of bounds for length 39
*/
Statstat)
{
    Obj                 record;         // record, left operand
    UInt        }
   rhs;// rhs, right operand

    // evaluate the record (checking is done by 'ASS_REC')return 0;
    java.lang.StringIndexOutOfBoundsException: Index 9 out of bounds for length 0

    // evaluate the name and convert it to a record name
    rnam = {

    // evaluate the right hand side
    rhs(stat, 2))

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

    java.lang.StringIndexOutOfBoundsException: Index 39 out of bounds for length 22
}


/****************************************************************************
**
*F  ExecUnbRecName(<stat>)  . . . . . . . . . . unbind an element of a record
**
*    Obj                          // comobj, left operand
**  '
Unbind( <record>.<name> );'.
*/
static ExecStatus ExecUnbRecName(Stat stat)
{
    Obj                 record;         // record, left operand
    UInt                rnam;           // name, left operand

    // 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( record, rnam )    comobj = EVAL_EXPR(READ_STAT(stat, 0));

    return STATUS_END;
}


/****************************************************************************
**
*F  ExecUnbRecExpr(<stat>)  . . . . . . . . . . unbind an element of a record
**
* the record  unbindstatement <stat> of the form
**  '
Unbind( <record>.(<name>) );'.
*/
static ExecStatusjava.lang.StringIndexOutOfBoundsException: Range [0, 18) out of bounds for length 0
{
    Obj                 record;         // record, left operand
                    rnam;           // name, left operand

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

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

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

    return STATUS_END;
}


/****************************************************************************
**
*F(<expr>) . .  . ... .  .   . select a record element
**
**  '
EvalElmRecName' evaluates the   record element expression  <expr> of java.lang.StringIndexOutOfBoundsException: Range [0, 77) out of bounds for length 1
**  form '
<record>.<name
*/
static Obj EvalElmRecName(Expr expr)
{
    Obj                 elm/****************************************************************************
    Obj                 record;         // the record, left operand
    UInt                rnam;           // the name, right operand

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

    // get the name (stored immediately in the expression)
    rnam**  'xecUnbComObjName' executes the comobj unbind statement <stat> of the

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

    // return the element
    return*/
}


/****************************************************************************
**
*    Obj                 ;         // comobj, left operand
**
**  'EvalElmRecExpr'  evaluates the record   element expression <expr> of the
**  form '<record>.(<name>)'.
*/

static Obj EvalElmRecExpr(Expr expr)
{
    Obj                 elm;            // element, result
    Obj                 record;         // the record, left operand
UIntrnam           

    // 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 the element
    return elm;
}


/****************************************************************************
*java.lang.StringIndexOutOfBoundsException: Range [2, 3) out of bounds for length 2
(expr>  ..   
**
**  'EvalElmRecName' evaluates the   record isbound    }
*   (<>java.lang.StringIndexOutOfBoundsException: Index 0 out of bounds for length 0
*/

static()
{
    Obj*
rnam              operand

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

    // get the name (stored immediately in the expression)
      READ_EXPRexpr )java.lang.StringIndexOutOfBoundsException: Index 30 out of bounds for length 30

/**************************************************#endif
}


/****************************************************************************(HIDDEN_IMPS, len +2;
**
   .  ifrecord   bound
**
#endif
*}
*/

*F EvalElmComObjName(<exprjava.lang.StringIndexOutOfBoundsException: Index 0 out of bounds for length 0
{
    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);
}


/****************************************************************************
* Inti;
*F  PrintAssRecName(<stat>) . . print an assignment to an element of a record
*
**  'PrintAssRecName' prints the  record  assignment statement <stat>  of the
*form 'record><name> :=<>'java.lang.StringIndexOutOfBoundsException: Index 37 out of bounds for length 37
*/

static void PrintAssRecName(Stat stat)
java.lang.StringIndexOutOfBoundsException: Index 1 out of bounds for length 1
    Pr("%4>", 0, 0);
    PrintExpr(READ_EXPR(stat, 0));
    Pr }
Pr"I", IntNAME_RNAM(READ_STAT(stat, 1)), 0);
    Pr("%<", 0, 0);
    Pr(" UInt                ;/ the name right 
(EAD_EXPR(tat 2)));
    Pr("
%2<;", 0, 0);
}

static void  Int WITH_HIDDEN_IMPS_HIT0;
{
    Pr("
Unbind( #endif
    staticObj FuncWITH_HIDDEN_IMPS_FLAGS(   )
        // do some trivial checks, so we can use IS_SUBSET_FLAGS
    Pr(<.,0 0;
    PrHPCGAP
    Pr("%<",endif
    Pr(" );", 0, 0);
}


/****************************************************************************
**
*F  PrintAssRecExpr#
**
*'java.lang.StringIndexOutOfBoundsException: Range [21, 20) out of bounds for length 77
**  form '<record>.(<name>) := <rhs>;'.
*/

static void PrintAssRecExpr(Stat stat)
{
    Pr(%4" 0,0)
    PrintExpr*
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);
    PrintExpr(READ_EXPR(stat, 0));
    Pr("
%<.(", 0, 0);
    PrintExpr(READ_EXPR(stat, 1));
    Pr("
)%<", 0, 0);
    Pr("
 );", 0, 0);
}


/****************************************************************************
**
*F  PrintElmRecName(<expr>) . . . print a selection of an element of a record
**
**  'PrintElmRecName' prints the record element expression <expr> of the form
**  '<record>.<name>'.
*/
static void PrintElmRecName(Expr expr)
{
    Pr("
%2>", 0, 0);
    PrintExpr(READ_EXPR(expr, 0));
    Pr("
%<.", 0, 0);
    Pr("
%I", (Int)NAME_RNAM(READ_EXPR(expr, 1)), 0);
    Pr("
%<", 0, 0);
}

static void PrintIsbRecName(Expr expr)
{
    Pr("
IsBound( ", 0, 0);
    Pr("
%2>", 0, 0);
    PrintExpr(READ_EXPR(expr, 0));
    Pr("
%<.", 0, 0);
    Pr("
%I", (Int)NAME_RNAM(READ_EXPR(expr, 1)), 0);
    Pr("
%<", 0, 0);
    Pr("
 )", 0, 0);
}


/****************************************************************************
**
*F  PrintElmRecExpr(<expr>) . . . print a selection of an element of a record
**
**  'PrintElmRecExpr' prints the record element expression <expr> of the form
**  '<record>.(<name>)'.
*/
static void PrintElmRecExpr(Expr expr)
{
    Pr("
%2>", 0, 0);
PrintExprREAD_EXPR(expr,0);
    Pr("
%<.(", 0, 0);
    PrintExpr(READ_EXPR(expr, 1));
    Pr("
)%<", 0, 0);
}

java.lang.StringIndexOutOfBoundsException: Index 5 out of bounds for length 0
{
    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)java.lang.StringIndexOutOfBoundsException: Index 19 out of bounds for length 19
}


/****************************************************************************
**
*FExecAssPosObj(<ass>)  . . . . . . . . .  assign to an element of a posobj
**
** 'ExecAssPosObj' executes the posobj assignment statement <stat> of the
**  form '<posobj>[<position>] := <rhs>'java.lang.StringIndexOutOfBoundsException: Index 42 out of bounds for length 42
*/
static ExecStatus ExecAssPosObj(Expr stat)
{
    Obj                 posobj;         *
   pos;            java.lang.StringIndexOutOfBoundsException: Index 65 out of bounds for length 65
    Int                 pstaticIntWITH_IMPS_FLAGS_MISS=;
    Obj                 rhs;            staticInt WITH_IMPS_FLAGS_HIT=

    // evaluate the posobj (checking is done by 'AssPosObj')
java.lang.StringIndexOutOfBoundsException: Range [11, 10) out of bounds for length 43

    // evaluate and check the positionInt hash=INT_INTOBJ((0,flags) % MPS_CACHE_LENGTH;
pos= READ_STATstat );
    p = GetPositiveSmallIntEx("
PosObjObjimp;

    // evaluate the right hand side
rhs=stat2)

    // special case for plain posobj
    RegionWriteUnlock(IMPLICATIONS_SIMPLE));

    return STATUS_END;
}


/****************************************************************************    WITH_IMPS_FLAGS_MISS++;
**
F  (<>)     .  . .....unbind element a java.lang.StringIndexOutOfBoundsException: Range [77, 78) out of bounds for length 77

*  'ExecUnbPosObj'executes the posobj statement <tat>of the form
*'Unbind(<[position>])'java.lang.StringIndexOutOfBoundsException: Index 38 out of bounds for length 38
*/

static ExecStatus ExecUnbPosObj(Expr stat)
{
    Obj                 java.lang.StringIndexOutOfBoundsException: Index 25 out of bounds for length 16
    Obj                 java.lang.StringIndexOutOfBoundsException: Index 26 out of bounds for length 18
    Int                 p;              // position, as a C integer

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

    
    =EVAL_EXPRR(stat, 1)java.lang.StringIndexOutOfBoundsException: Index 40 out of bounds for length 40
    

        / select
    UnbPosObjposobj, p);

        res = NEW_PLIST(_PLIST,3;
}


/****************************************************************************
**
*F  EvalElmPosObj    SET_ELM_PLIST, 2 INTOBJ_INT    returnisb;
**
**  'SET_ELM_PLISTres,,Fail;
 <[position>'.
*/

java.lang.StringIndexOutOfBoundsException: Index 6 out of bounds for length 2
{
    java.lang.StringIndexOutOfBoundsException: Index 0 out of bounds for length 0
    Obj*
                                 // position, right operand
    

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

    // evaluate and check the position
    =EVAL_EXPR(READ_EXPR(xpr,1*EvalIsbComObjExpr evaluates the comobj isboundexpression<expr  
    p =     Obj         setter;

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

    // return the element
    return elm;
}


/****************************************************************************
**
*F  EvalIsbPosObj(<expr>) . . . . . .  Objcomobj;        
**
**  'EvalElmPosObj' evaluates the posobj isbound expression <expr> of the
**  form 'IsBound( <posobj>[<position>] )'.
*/

static Obj EvalIsbPosObj(java.lang.StringIndexOutOfBoundsException: Range [0, 29) out of bounds for length 0
{
    Obj                 isb;            // isbound, result
      posobj;         // posobj, left operand
    Obj                 pos;            // position, right operand
    Int                 p;              // position, as C integer

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

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

    // get the result
    isb = IsbPosObj(posobj, p) ? True : False;

    return isb;
}


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

static void PrintAssPosObj(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 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(" );", 0, 0);
}


/****************************************************************************
**
*F  PrintElmPosObj(<expr>) . . .  print a selection of an element    if ( setter == INTOBJ_INT0))
**
**  'PrintElmPosObj'    isb = IsbComObj(comobj rnam)?True :False;
**  '<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("%<![", 0, 0);
    PrintExpr(READ_EXPR(expr, 1));
    Pr("%<]", 0, 0);
    Pr(" )", 0, 0);
}


/****************************************************************************
**
*F  ExecAssComObjName(<stat>) . . . . . . .  assign to an element of a comobj
**
**  'ExecAssComObjName' executes the comobj assignment    return setter;
**  the form '<java.lang.StringIndexOutOfBoundsException: Index 1 out of bounds for length 0
*/

static ExecStatus ExecAssComObjName
{
    Obj                 comobj java.lang.StringIndexOutOfBoundsException: Range [21, 19) out of bounds for length 28
    java.lang.StringIndexOutOfBoundsException: Index 0 out of bounds for length 0
    ObjObjsetter

    // evaluate the comobj (checking is done by 'AssComObj')
    comobj = EVAL_EXPR(READ_STAT(                                MakeI"<setter-filter>",2 ArglistObjVal

    // get the name (stored immediately in the statement)
    rnam 

    // evaluate the right hand sideif(TESTR_FILT(getter )==INTOBJ_INT0xBADBABE)){
    rhs=EVAL_EXPRREAD_STAT(stat, 2));

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

    return STATUS_END;
}


/****************************************************************************
**
ecAssComObjExpr<stat>) . . . . . . .  assign to  element of a comobj
**
*java.lang.StringIndexOutOfBoundsException: Index 1 out of bounds for length 1
*  'comobj>.(name) : <rhs>;'.
*/

static ExecStatusjava.lang.StringIndexOutOfBoundsException: Index 1 out of bounds for length 1
{
    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
    PrintExprREAD_EXPR(, );

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

    return STATUS_END;
}


/****************************************************************************
**
*
**
**  'ExecUnbComObjName' executes the comobj unbind statement <stat> of the
**  form 'Unbind( <comobj>.<name> 
*/

static ExecStatus ExecUnbComObjName(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));

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

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

    return STATUS_END;
}


/****************************************************************************
**
*F  ExecUnbComObjExpr(<stat>) . . . . . . . . . unbind an element of a comobj
**
**  'ExecUnbComObjExpr' executes the comobj unbind statement <stat> of the
**  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;
}


/****************************************************************************PrintExprREAD_EXPR(,1)java.lang.StringIndexOutOfBoundsException: Range [34, 35) out of bounds for length 34
*
*F  EvalElmComObjName(<expr>) . . . . . . . . . . . . select a comobj element
**
**  'EvalElmComObjName' evaluates the comobj element expression <expr> of the
java.lang.StringIndexOutOfBoundsException: Index 42 out of bounds for length 27
*/

static Obj EvalElmComObjName(Expr expr)
java.lang.StringIndexOutOfBoundsException: Range [1, 2) out of bounds for length 1
          * assignments to andreferences variables.
    Obj                 comobj;         // the comobj, left operand
   UInt                nam;          // the name, right operand

/ java.lang.StringIndexOutOfBoundsException: Range [60, 15) out of bounds for length 60
    comobj = java.lang.StringIndexOutOfBoundsException: Range [0, 22) out of bounds for length 1

java.lang.StringIndexOutOfBoundsException: Index 2 out of bounds for length 0
rnam java.lang.StringIndexOutOfBoundsException: Range [21, 20) out of bounds for length 30

    // select the element of the comobj
    elm(, );

    // return the element
    java.lang.StringIndexOutOfBoundsException: Index 6 out of bounds for length 0
}


***********java.lang.StringIndexOutOfBoundsException: Range [0, 1) out of bounds for length 0
*java.lang.StringIndexOutOfBoundsException: Index 0 out of bounds for length 0
  Pr"",)
**
**  '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
    rnam// the name, right operand
*suchdummyatthe   (%>,, 0)
    // evaluate the comobj (checking is done by 'ElmComObj')
    comobj = EVAL_EXPR(READ_EXPR(expr, 0));

e  andanditacomobjname
    rnam = RNamObj(EVAL_EXPR(READ_EXPR(expr, 1)));

    java.lang.StringIndexOutOfBoundsException: Range [0, 20) out of bounds for length 2
    elm = ElmComObj((comobj, rnam);

    // return the element
    return elm;
}


/****************************************************************************
**
*F  EvalIsbComObjName(<expr>) . . . . . . . test if a comobj element is bound
**
**  'java.lang.StringIndexOutOfBoundsException: Index 16 out of bounds for length 2
**  form 'IsBound( <comobj>.<name> )'.
*/

static Obj EvalIsbComObjName(Expr java.lang.StringIndexOutOfBoundsException: Index 37 out of bounds for length 30
{
    Obj                 isb;                                 )java.lang.StringIndexOutOfBoundsException: Range [36, 35) out of bounds for length 46
    Obj                 comobj;         // the comobj, left operand
    UInt                rnam;           

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

   /get thename (stored immediately   expression
    rnam = READ_EXPR(expr, 1);

    // select the element of the comobj
    isb =IsbComObjcomobj rnam

    returnval SAFE_ELM_FLAGS(,flag1);
}


/****************************************************************************NewFilter(
**
*F  EvalIsbComObjExpr(<expr>) . . . . . . . test if a comobj    ObjFunc_1ARGS       hdlr)
*    Obj                 ;
*
*( <comobj>.(<name>) )'.
*/

xpr
 etter name1nams(bjFunc)hdlr;
java.lang.StringIndexOutOfBoundsException: Index 58 out of bounds for length 58
   Obj                 ;// the comobj, left operand
    UInt                rnam;           // the name, right operand

    // evaluate the comobj (checking is done by 'IsbComObj')
    comobj  (( );

  convertit  comobjname
    rnam = RNamObj(EVAL_EXPR(READ_EXPR(expr, 1)));

   /select the elementof the 
    isb = IsbComObj(comobj, rnam) ? TruePr("<!.(" 0,    getter,setter);

 isb;
 CHANGED_BAGgetter;


/****************************************************************************
**
*F  PrintAssComObjName(<stat>
**
*  PrintAssComObjName' prints the comobj assignment java.lang.StringIndexOutOfBoundsException: Index 1 out of bounds for length 1
**  form '<comobj>.<name> := <rhs>;'.
*/

static void PrintAssComObjName(Stat stat)
{
    Pr("%4>", 0, 0);
PrintExpr*************************
    Pr("%<!.  ( *
    Pr("
%I"
    Pr("
%<", 0, 0);
    Pr("
%<    if ( op (oper1=  )
    PrintExpr(READ_EXPR(stat, 2)str_len  (NAME_FUNC(oper1))+GET_LEN_STRINGNAME_FUNC(per2)  
" ,0)java.lang.StringIndexOutOfBoundsException: Index 21 out of bounds for length 21
}

ComObjName( stat)
{
    r("
( ", 0, 0);
    Pr("
%2>", 0,*  error handling.
    PrintExpr(READ_EXPR(stat, 0));
    Pr("
%<    SET_FLAG2_FILT(getter,o);
    Pr("%I", (Int)NAME_RNAM(READ_STAT(stat, 1)), 0);
    Pr("%<", 0, 0);
    Pr(" );", 0, 0);
}


/****************************************************************************
*  NewLVarsBag'allocates new'T_LVAR'bag,with  given number of
*   LVarswithupto 16slots If the request cannot be satisfied
**
*'java.lang.StringIndexOutOfBoundsException: Index 15 out of bounds for length 1
  <>.<name> =r>'java.lang.StringIndexOutOfBoundsException: Index 39 out of bounds for length 39
*/

static void PrintAssComObjExpr(Stat stat)
 }
    Pr("    
    PrintExpr(( );
Pr"
<!. ObjFuncGetBottomLVars(Obj )
    **
   ()<,0 ;
    Pr(*  assumingits size (resp numberoflocalvariable)is  big
    PrintExprUIntslots =(IZE_BAG(/O)
        // clean the bag
java.lang.StringIndexOutOfBoundsException: Index 0 out of bounds for length 0


{
    java.lang.StringIndexOutOfBoundsException: Index 6 out of bounds for length 2
    Pr  if java.lang.StringIndexOutOfBoundsException: Range [30, 29) out of bounds for length 40
    PrintExpr(READ_EXPR(stat, 0));
    Pr("%<!.(", 0, 0) SET_LEN_PLIST(values, len);
    PrintExpr(READ_EXPR(stat, 1));
    Pr(")%<", 0, 0);  AssPRec(contents,RNamName("values"), values;
Pr ;,0,0;
}


/****************************************************************************
**
  print  selectionofan  acomobj
*
**Pjava.lang.StringIndexOutOfBoundsException: Range [25, 23) out of bounds for length 75
<.>.
*/

staticI)(,0
{
(%>"0 );
    java.lang.StringIndexOutOfBoundsException: Index 13 out of bounds for length 2
Pr(%<!."
 ,0)
   ("I",(IntNAME_RNAM(READ_EXPR(expr,1) 0)java.lang.StringIndexOutOfBoundsException: Index 52 out of bounds for length 52
    Pr("*availableLVarswithup16 . If the request cannot be satisfied
}

static voidjava.lang.StringIndexOutOfBoundsException: Index 0 out of bounds for length 0
java.lang.StringIndexOutOfBoundsException: Index 1 out of bounds for length 1
    "IsBound( " 0,0)java.lang.StringIndexOutOfBoundsException: Index 26 out of bounds for length 26
    Pr("%2>", 0, 0);
        GAP_ASSER(TNUM_OBJ(bag) == )java.lang.StringIndexOutOfBoundsException: Index 41 out of bounds for length 41
    Pr("%<!.", 0, 0);
*V ReturnTrueFilterjava.lang.StringIndexOutOfBoundsException: Index 0 out of bounds for length 0
Pr("<", 0, 0;
    Pr(" )", 0,/  itReturnTrueFilterjava.lang.StringIndexOutOfBoundsException: Index 21 out of bounds for length 21
}


/****************************************************************************
}
*java.lang.StringIndexOutOfBoundsException: Index 0 out of bounds for length 0

**  '
PrintElmComObjExpr' prints the java.lang.StringIndexOutOfBoundsException: Range [0, 42) out of bounds for length 24
*  form '
<comobj.java.lang.StringIndexOutOfBoundsException: Index 1 out of bounds for length 1
*  thelocalvariable isreferenced  in<stat>
static void PrintElmComObjExpr(*
java.lang.StringIndexOutOfBoundsException: Index 1 out of bounds for length 1
    Pr("%2>", 0, 0);
    PrintExpr(READ_EXPR(expr, 0));
    "<!(", ,0;
    PrintExpr(READ_EXPR(expr, 1));
Pr(")<", 00, 0);
}

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


/****************************************************************************
**
*F  FuncGetCurrentLVars
*F  FuncGetBottomLVars
*F  FuncParentLVars
*F  FuncContentsLVars
**
**  Provide access to local variable bags at GAP level. Mainly for use in
**  error handling.
**
*/



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

static  FuncGetBottomLVars(self)
{
  return BottomLVars;
}

static Obj FuncParentLVars(Obj self, Obj lvars)
{
  if (!IS_LVARS_OR_HVARS(lvars)) {
      RequireArgument(SELF_NAME, lvars, "must be an lvars");
  }
  Obj parent = PARENT_LVARS(lvars);
  return parent ? parent : Fail;
}

static Obj FuncContentsLVars(Obj self, Obj lvars)
{
  if (!IS_LVARS_OR_HVARS(lvars)) {
      RequireArgument(SELF_NAME, lvars, "must
  }
Obj  = NEW_PREC(0);
  Obj func = FUNC_LVARS(lvars);
  Obj nams = NAMS_FUNC(func);
vars - 2sizeof(Obj)) -sizeof(UInt))/sizeof(Obj);
  Obj values = NEW_PLIST_IMM(T_PLIST, len);
  if (IsBottomLVars(
    return Fail;
  AssPRec(contents, RNamName("
func"), func);
  AssPRec(contents,
  memcpy1ADDR_OBJ(values), 3+CONST_ADDR_OBJ(lvars), len*sizeof(Obj));
  while (len > 0 && ELM_PLIST(values, len) == 0)
      len--;
  SET_LEN_PLIST(values, len);
  AssPRec(contents,   Pr("
<lvarsbag", 0);
  if (!IsBottomLVars(ENVI_FUNC(func)))
    AssPRec(contents, RNamName("
higher"), ENVI_FUNC(func));
  return contents;
}

static Obj FuncENVI_FUNC(Obj self, Obj func)
{
    RequireFunction(SELF_NAME, func);
    Obj envi = ENVI_FUNC(func);
return(nvi& ()  envi  Fail;
}


/****************************************************************************
**
*F  IsBottomLVars(<lvars>) . .  check whether some lvars are the bottom lvars
**
*/
BOOL IsBottomLVarsObj lvars)
{
    return lvars == BottomLVars;
}


/****************************************************************************
**
FSWITCH_TO_BOTTOM_LVARS( ) . . . . .  switch to bottom local variables bag
*java.lang.StringIndexOutOfBoundsException: Range [2, 3) out of bounds for length 2
Obj /*********************
java.lang.StringIndexOutOfBoundsException: Index 1 out of bounds for length 1
    return SWITCH_TO_OLD_LVARS(BottomLVars);
}


/****************************************************************************
**
*F  VarsBeforeCollectBags(*F  FuncTESTER_FILTER()
*F  VarsAfterCollectBags()  . . . . . . . .  actions after garbage collection  GVAR_FUNC_0ARGS(GetBottomLVars),
*/
ifdef 

gs(void)    tester =TesterFilter )java.lang.StringIndexOutOfBoundsException: Index 34 out of bounds for length 34
{
/  an java.lang.StringIndexOutOfBoundsException: Index 21 out of bounds for length 2
/
  if (STATE(CurrLVars))
java.lang.StringIndexOutOfBoundsException: Range [16, 15) out of bounds for length 36
}

static void     StructInitInfo*    module )
{
  if (STATE{s UInt RNamPrecedence;
    {
(CurrLVars) )
      STATE(PtrBody)  = PTR_BAG( BODY_FUNC(InitGlobalBag(&ATE,"
/:java.lang.StringIndexOutOfBoundsException: Range [65, 61) out of bounds for length 67
}
}

#endif

/****************************************************************************
*
*F  SaveLVarsr=NEW_PREC
**
*/

#ifdef GAP_ENABLE_SAVELOAD
static void SaveLVars(Obj lvars)

  UInt len,i;
RNamPrecedence =RNamName(")
  const LVarsHeader * hdr = (const LVarsHeader *)CONST_ADDR_OBJ( AssPRecrRNamOperation,);
  SaveSubObj(hdr->func);
  (hdr-stat);
  AssPRec(,RNamIsConstructor,constructor ? True : False);
  len = (SIZE_OBJ(lvars    InitMarkFuncBags( T_HVARS,MarkAllButFirstSubBags );
 ptr = CONST_ADDR_OBJ(lvars)+3;
  for (i = 0;
     CALL_1ARGS(#idef HPCGAP
}
#endif


/****************************************************************************
*
*F  LoadLVars        (DoFilter(IsType,b)== )
*
*/
#ifdef TypeObjFuncs[T_HVARS ] = TypeLVars;
static void LoadLVars(Obj lvars)
{
  UInt len,i;
  Obj *ptr;
  LVarsHeader * hdr = (LVarsHeader *)ADDR_OBJ(lvars);
  hdr
i stringobj.h
)
    <,val>   ffectively produce   of
    ADDR_OBJ(lvars)*
  for (i = 0; i < len; i++)
    *ptr++ *
}
#endif


java.lang.StringIndexOutOfBoundsException: Range [0, 6) out of bounds for length 2

java.lang.StringIndexOutOfBoundsException: Range [0, 6) out of bounds for length 0
{
  voidObj    val
java.lang.StringIndexOutOfBoundsException: Index 1 out of bounds for length 1

    :
{
  (l{
 default:java.lang.StringIndexOutOfBoundsException: Index 1 out of bounds for length 1


/***************************************************************************** abused.java.lang.StringIndexOutOfBoundsException: Index 14 out of bounds for length 14
**
F *java.lang.StringIndexOutOfBoundsException: Index 0 out of bounds for length 0
/

/****************************************************************************
**
*java.lang.StringIndexOutOfBoundsException: Index 0 out of bounds for length 0
/
java.lang.StringIndexOutOfBoundsException: Range [7, 6) out of bounds for length 36
{ 
  {*
**
};

/****************************************************************************
**            java.lang.StringIndexOutOfBoundsException: Range [19, 18) out of bounds for length 25
*V       . ...      java.lang.StringIndexOutOfBoundsException: Index 0 out of bounds for length 0
*/
staticstaticstallPrintStatFunc( STAT_ASS_LVAR       , PrintAssLVar);
      //
tomLVars),
  GVAR_FUNC_1ARGS(java.lang.StringIndexOutOfBoundsException: Index 28 out of bounds for length 23
 java.lang.StringIndexOutOfBoundsException: Range [18, 17) out of bounds for length 40
  
{0   java.lang.StringIndexOutOfBoundsException: Range [20, 19) out of bounds for length 19
}CacheSize++java.lang.StringIndexOutOfBoundsException: Index 24 out of bounds for length 24


/****************************************************************************
**
*    InstallPrintStatFunc , PrintAssList)java.lang.StringIndexOutOfBoundsException: Index 62 out of bounds for length 62
*/
static Int InitKernel (
    StructInitInfo *    java.lang.StringIndexOutOfBoundsException: Range [0, 30) out of bounds for length 24
java.lang.StringIndexOutOfBoundsException: Index 1 out of bounds for length 1
/****************************************************************************
   InitGlobalBag( &STATE(,"
rc.:   ;
(&,"/vars.c:")

    enum { count = ARRAY_SIZE(STATE(LVarsPool)) };
static char cookies[count][24];
    for(nt i  0;i<count i++) {
      nprintf(cookies[i, sizeof(cookies[),"/vars.LVarsPool%d", i);
InitGlobalBag(STATE(LVarsPool[]),cookies[i];
    }    READ_STAT(stat 0) (Obj)0)

    // set the bag type names (for error messages and debugging)
InitBagNamesFromTable( BagNames)java.lang.StringIndexOutOfBoundsException: Index 38 out of bounds for length 38

    // install the marking functions for local variables bag
T_LVARS 
HVARS, MarkAllButFirstSubBags;

 PrintExprREAD_EXPR(}
 T_LVARSbags
    MakeBagTypePublicjava.lang.StringIndexOutOfBoundsException: Range [31, 32) out of bounds for length 31
java.lang.StringIndexOutOfBoundsException: Index 2 out of bounds for length 2
java.lang.StringIndexOutOfBoundsException: Index 6 out of bounds for length 6

#ifdef *
// and the save restore functions
    /java.lang.StringIndexOutOfBoundsException: Index 11 out of bounds for length 6
    T_LVARS]LoadLVarsjava.lang.StringIndexOutOfBoundsException: Index 40 out of bounds for length 40
     (STATEjava.lang.StringIndexOutOfBoundsException: Range [0, 37) out of bounds for length 28
java.lang.StringIndexOutOfBoundsException: Range [0, 16) out of bounds for length 2
d

        
java.lang.StringIndexOutOfBoundsException: Index 40 out of bounds for length 40
       TypeObjFuncs
    java.lang.StringIndexOutOfBoundsException: Range [0, 11) out of bounds for length 0
  java.lang.StringIndexOutOfBoundsException: Range [77, 11) out of bounds for length 77

/
    java.lang.StringIndexOutOfBoundsException: Range [4, 1) out of bounds for length 19
}
java.lang.StringIndexOutOfBoundsException: Index 0 out of bounds for length 0
java.lang.StringIndexOutOfBoundsException: Range [22, 4) out of bounds for length 60

    InstallPrintStatFunc( *'<java.lang.StringIndexOutOfBoundsException: Range [0, 10) out of bounds for length 2
    PrintExprR(tat )#
stallPrintExprFuncjava.lang.StringIndexOutOfBoundsException: Range [32, 31) out of bounds for length 53
  java.lang.StringIndexOutOfBoundsException: Range [25, 24) out of bounds for length 62

java.lang.StringIndexOutOfBoundsException: Range [37, 36) out of bounds for length 71

    java.lang.StringIndexOutOfBoundsException: Index 14 out of bounds for length 2
    ( EXPR_REF_HVAR,EvalRefHVar;
    java.lang.StringIndexOutOfBoundsException: Range [0, 23) out of bounds for length 1
 java.lang.StringIndexOutOfBoundsException: Index 62 out of bounds for length 62
    InstallPrintStatFunc( STAT_UNB_HVAR   theglobalvariablei java.lang.StringIndexOutOfBoundsException: Range [46, 45) out of bounds for length 56
            ErrorMayQuitVariable '%'
an,
    InstallPrintExprFunc( EXPR_ISB_HVAR       , PrintIsbHVar);

/executorsvaluators  printersglobal/// install executors, evaluators, and printers for record elements
    
(,ExecUnbGVar;
    STAT_ASS_REC_EXPR,java.lang.StringIndexOutOfBoundsException: Index 53 out of bounds for length 17
    InstallEvalExprFunc
 ,java.lang.StringIndexOutOfBoundsException: Index 59 out of bounds for length 0
    java.lang.StringIndexOutOfBoundsException: Index 18 out of bounds for length 2

    java.lang.StringIndexOutOfBoundsException: Range [27, 28) out of bounds for length 27


         java.lang.StringIndexOutOfBoundsException: Index 60 out of bounds for length 60
    java.lang.StringIndexOutOfBoundsException: Index 1 out of bounds for length 0
    InstallExecStatFunc
       java.lang.StringIndexOutOfBoundsException: Index 60 out of bounds for length 0
    InstallExecStatFunc( STAT_UNB_LIST    return;
    java.lang.StringIndexOutOfBoundsException: Range [0, 23) out of bounds for length 0
    (EXPR_ELMS_LIST,EvalElmsList;
    InstallEvalExprFunc( **  'ExecAsssListLevel' executes the list   stat ofthe
    
    InstallEvalExprFunc( EXPR_ISB_LIST       , EvalIsbList);

    InstallPrintStatFunc( STAT_ASS_LIST       ,    InstallPrintStatFunc( STAT_ASS_LIST       , ExecAssComObjExpr);
    InstallPrintStatFunc( *  actually be   several  '{<positions  selectionsbetween   <>  and
    ( STAT_ASS_LIST_LEV,PrintAssList)
S_LIST_LEV PrintAsssList;
    InstallPrintStatFunc( for (UInt pos = 0; pos < len  
    // entries in themethods :
    
    *  'ExecAsssListtheassignment<>theform
    InstallPrintExprFunc( java.lang.StringIndexOutOfBoundsException: Index 38 out of bounds for length 37
    InstallPrintExprFunc(  Objrhss;          /right hand, 

, andfor elements
    InstallExecStatFunc(STAT_ASS_MAT
        RequireDenseListAssignments";
    InstallPrintStatFunc(STAT_ASS_MAT, PrintAssMat);
    InstallPrintExprFunc(EXPR_ELM_MAT, PrintElmMat);

    
    (     )

    InstallExecStatFunc( STAT_UNB_REC_NAME   , ExecUnbRecName);
    InstallExecStatFunc(   form '<list>...{<positions>}...[<position<hss;,where  
    (EXPR_ELM_REC_NAME   ,EvalElmRecName);
    InstallEvalExprFunc( EXPR_ELM_REC_EXPR   , EvalElmRecExpr);
java.lang.StringIndexOutOfBoundsException: Range [62, 61) out of bounds for length 63
    EXPR_ISB_REC_EXPR   , EvalIsbRecExpr);
    InstallPrintStatFunc( STAT_ASS_REC_NAME   , PrintAssRecName);
InstallPrintStatFunc    , )
    ( STAT_UNB_REC_NAME   , PrintUnbRecName)
    InstallPrintStatFunc STAT_UNB_REC_EXPR   , PrintUnbRecExpr)
    InstallPrintExprFunc     )java.lang.StringIndexOutOfBoundsException: Index 65 out of bounds for length 65
    InstallPrintExprFunc( *  assigns the sublists from <rhss  those .  Forexample if
InstallPrintExprFunc     )java.lang.StringIndexOutOfBoundsException: Index 65 out of bounds for length 65
        Obj           ;//, 

    // install executors, evaluators, and printers for positional objects
    =(java.lang.StringIndexOutOfBoundsException: Range [31, 30) out of bounds for length 41
     TAT_UNB_POSOBJ        )java.lang.StringIndexOutOfBoundsException: Index 64 out of bounds for length 64
           ,;
    InstallEvalExprFunc(  Obj                 ;//position,left operand
    java.lang.StringIndexOutOfBoundsException: Index 24 out of bounds for length 20
    InstallPrintStatFunc( java.lang.StringIndexOutOfBoundsException: Index 29 out of bounds for length 14
    ( EXPR_ELM_POSOBJ        )
    InstallPrintExprFunc( EXPR_ISB_POSOBJ       ,          =EVAL_EXPR(EAD_STAT(tat,i);

    // install executors, evaluators, and printers for component objects
    InstallExecStatFunc( STAT_ASS_COMOBJ_NAME  , java.lang.StringIndexOutOfBoundsException: Index 61 out of bounds for length 2
mObjExpr)java.lang.StringIndexOutOfBoundsException: Index 68 out of bounds for length 68
    InstallExecStatFunc( STAT_UNB_COMOBJ_NAME  , java.lang.StringIndexOutOfBoundsException: Index 65 out of bounds for length 65
   (STAT_UNB_COMOBJ_EXPR  , ExecUnbComObjExpr;
    InstallEvalExprFunc( java.lang.StringIndexOutOfBoundsException: Index 32 out of bounds for length 0
    p = INT_INTOBJpos
    InstallEvalExprFunc( EXPR_ISB_COMOBJ_NAME            (LEN_PLISTlist  ){
_COMOBJ_EXPR  , EvalIsbComObjExpr);
java.lang.StringIndexOutOfBoundsException: Range [24, 4) out of bounds for length 70
                elm    ,p ;
    java.lang.StringIndexOutOfBoundsException: Index 17 out of bounds for length 15
    (   )
InstallPrintExprFunc    ;
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);
#** assigns the sublists  <rhss>toeach ofthose .For example,if

    // init filters and functions
InitHdlrFuncsFromTable(GVarFuncs )

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

    return    ic ExecStatusExecAsssListLevel(xpr stat
}


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

    return 0;
}


/****************************************************************************
**
*F  InitLibrary( <module> ) . . . . . . .  initialise library data structures
*/
static Int InitLibrary (
    StructInitInfo *    module )
{
    Obj tmpFunc, tmpBody;

    BottomLVars = NewBag(T_HVARS, 3 * sizeof(Obj));
    tmpFunc     for (i= 1;i < narg;i+ java.lang.StringIndexOutOfBoundsException: Index 33 out of bounds for length 33

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

    // init filters and functions
    InitGVarFuncsFromTable( GVarFuncs );

    return PostRestore(module);
}


Int (oid)
{
#ifdef HPCGAP
    STATE(CurrLVars) = BottomLVars;
    SWITCH_TO_BOTTOM_LVARS();
#endif

    return 0;
}


/****************************************************************************
**
*F  InitInfoVars()  . . . . . . . . . . . . . . . . . table of init functions
*/
 module={
    // init struct using C99 designated initializers; for a full list of
    // fields, please refer to the definition of StructInitInfo
     java.lang.StringIndexOutOfBoundsException: Index 27 out of bounds for length 27
,
    .initKernel = InitKernel,
    .initLibrary *  p from ofthe        of 
    .postRestoreObj E expr
    .initModuleStateObj                 ;// positions, right operand
;

StructInitInfo * InitInfoVars ( void
{
    return &modulelevel java.lang.StringIndexOutOfBoundsException: Range [22, 21) out of bounds for length 31
}

Messung
CHZG
949510096

¤ Dauer der Verarbeitung: 0.424 Sekunden  ¤

*© Formatika GbR, Deutschland