#include "Prim.H"
#include "Val.H"
#include "Expr.H"
#include "ApplyCache.H"
#include "Location.H"
#include "Err.H"
#include "Debug.H"
#include "VASTi.H"
#include "ThreadData.H"
#include <Table.H>
#include <VestaConfig.H>
#include <iostream>
#include <iomanip>
#include <fstream>
#include <BufStream.H>
Go to the source code of this file.
|
|
|
Definition at line 82 of file Prim.C. References Error(), Basics::mutex::lock(), outputMu, and Basics::mutex::unlock(). Referenced by PrimInit(). |
|
Definition at line 1951 of file Prim.C. References Error(), Basics::mutex::lock(), outputMu, and Basics::mutex::unlock(). Referenced by PrimInit(). |
|
Definition at line 1966 of file Prim.C. References Error(), Basics::mutex::lock(), outputMu, and Basics::mutex::unlock(). Referenced by PrimInit(). |
|
Definition at line 2222 of file Prim.C. References BooleanVK, ValC::cacheit, ExprC::Eval(), IsValFalse(), ExprC::loc, ValC::Merge(), ValC::MergeAndTypeDPS(), NEW, PrimError(), and ValC::vKind. Referenced by PrimInit(). |
|
Definition at line 296 of file Prim.C. References BindingAppend(), BindingVK, ValC::cacheit, ErrorVK, EvalArgs(), ListT< Value >::First(), IsEmptyBinding(), IsEmptyList(), ListT< Value >::Length(), ListAppend(), ListVK, ValC::MergeAndLenDPS(), NEW, PrimError(), ListT< Value >::Second(), and ValC::vKind. Referenced by PrimInit(). |
|
Definition at line 583 of file Prim.C. References BooleanVK, diagnose, Error(), ErrorDetail(), ErrorVal(), EvalArgs(), ListT< Value >::First(), ListT< Value >::Length(), Basics::mutex::lock(), NEW, outputMu, PrimError(), PrintContext(), ListT< Value >::Second(), Basics::mutex::unlock(), and ValC::vKind. Referenced by PrimInit(). |
|
Definition at line 410 of file Prim.C. References Text::Empty(), EvalArgs(), ListT< Value >::First(), ListT< Value >::Length(), NEW, NEW_CONSTR, PrimError(), ListT< Value >::Second(), TextVK, and ValC::vKind. Referenced by PrimInit(). |
|
Definition at line 224 of file Prim.C. References ListT< Value >::Append1D(), ValC::cacheit, BindingVC::Defined(), BindingVC::elems, ValC::Extend(), IsValTrue(), ValC::Merge(), ValC::MergeAndLenDPS(), AssocVC::name, NEW_CONSTR, NormPK, ListT< Value >::Null(), ListT< Value >::Pop(), test(), and AssocVC::val. Referenced by Append(). |
|
Definition at line 343 of file Prim.C. References BindingVC::AddToLenDPS(), ListT< Value >::Append1D(), ValC::cacheit, BindingVC::DefinedNoDpnd(), ValC::MergeAndTypeDPS(), BindingVC::MergeToLenDPS(), AssocVC::name, NEW_CONSTR, NormPK, ListT< Value >::Null(), ListT< Value >::Pop(), and AssocVC::val. Referenced by Minus(). |
|
Definition at line 446 of file Prim.C. References BindingVK, Text::Empty(), EvalArgs(), ListT< Value >::First(), IsEmptyBinding(), ListT< Value >::Length(), ExprC::loc, NEW, NEW_CONSTR, PrimError(), ListT< Value >::Second(), and TextVK. Referenced by PrimInit(). |
|
Definition at line 479 of file Prim.C. References ValC::cacheit, EvalArgs(), ListT< Value >::First(), IntegerVK, ListT< Value >::Length(), NEW, NEW_CONSTR, PrimError(), ListT< Value >::Second(), and ValC::vKind. Referenced by PrimInit(). |
|
|
Definition at line 2183 of file Prim.C. References EqualVal(), and ExprC::Eval(). Referenced by PrimInit(). |
|
Definition at line 2072 of file Prim.C. References BindingVK, BooleanVK, ValC::cacheit, BindingVC::elems, ErrorVK, ValC::Extend(), IntArc(), IntegerVK, IsEmptyBinding(), IsEmptyList(), IsValFalse(), ListT< Value >::Length(), ListVK, ValC::Merge(), ValC::MergeAndLenDPS(), ValC::MergeAndTypeDPS(), AssocVC::name, NEW, NEW_CONSTR, NormPK, ListT< Value >::Null(), ListT< Value >::Pop(), PrimError(), test(), TextVK, AssocVC::val, and ValC::vKind. |
|
Definition at line 605 of file Prim.C. References ValC::cacheit, EvalArgs(), ListT< Value >::First(), IntegerVK, Text::Length(), ListT< Value >::Length(), ExprC::loc, max(), Text::MaxInt, NEW, NEW_CONSTR, PrimError(), ListT< Value >::Second(), TextVK, ListT< Value >::Third(), valZero, and ValC::vKind. Referenced by PrimInit(). |
|
Definition at line 662 of file Prim.C. References ValC::cacheit, EvalArgs(), ListT< Value >::First(), IntegerVK, Text::Length(), ListT< Value >::Length(), max(), Text::MaxInt, NEW, NEW_CONSTR, PrimError(), ListT< Value >::Second(), TextVK, ListT< Value >::Third(), valZero, and ValC::vKind. Referenced by PrimInit(). |
|
Definition at line 1925 of file Prim.C. References FP::ByteCnt, ValC::cacheit, EvalArgs(), ValC::FingerPrint(), ListT< Value >::First(), ListT< Value >::Length(), ValC::Merge(), NEW, NEW_CONSTR, PrimError(), and Basics::OBufStream::str(). Referenced by PrimInit(). |
|
Definition at line 1697 of file Prim.C. References BindingVK, EvalArgs(), ListT< Value >::First(), ListT< Value >::Length(), NEW, NEW_CONSTR, PrimError(), and ValC::vKind. |
|
Definition at line 1721 of file Prim.C. References BindingVK, EvalArgs(), ListT< Value >::First(), ListT< Value >::Length(), NEW, PrimError(), and ValC::vKind. Referenced by PrimInit(). |
|
Definition at line 2330 of file Prim.C. References ValC::cacheit, ExprC::Eval(), IntegerVK, ExprC::loc, ValC::Merge(), ValC::MergeAndTypeDPS(), NEW, NEW_CONSTR, PrimError(), and ValC::vKind. Referenced by PrimInit(). |
|
Definition at line 2294 of file Prim.C. References ValC::cacheit, ExprC::Eval(), IntegerVK, ExprC::loc, ValC::Merge(), ValC::MergeAndTypeDPS(), NEW, NEW_CONSTR, PrimError(), and ValC::vKind. Referenced by PrimInit(). |
|
Definition at line 719 of file Prim.C. References BindingVK, EvalArgs(), ListT< Value >::First(), IntArc(), ListT< Value >::Length(), ListVK, AssocVC::name, NEW, NEW_CONSTR, NormPK, ListT< Value >::Null(), PrimError(), AssocVC::val, and ValC::vKind. Referenced by PrimInit(). |
|
Definition at line 2262 of file Prim.C. References BooleanVK, ValC::cacheit, ExprC::Eval(), IsValFalse(), ExprC::loc, ValC::Merge(), ValC::MergeAndTypeDPS(), NEW, NEW_CONSTR, PrimError(), and ValC::vKind. Referenced by PrimInit(). |
|
Definition at line 106 of file Prim.C. References BindingVK, EvalArgs(), ListT< Value >::First(), IsType(), ListT< Value >::Length(), NEW, PrimError(), and ValC::vKind. Referenced by PrimInit(). |
|
Definition at line 117 of file Prim.C. References BooleanVK, EvalArgs(), ListT< Value >::First(), IsType(), ListT< Value >::Length(), ExprC::loc, NEW, PrimError(), and ValC::vKind. Referenced by PrimInit(). |
|
Definition at line 128 of file Prim.C. References ClosureVK, EvalArgs(), ListT< Value >::First(), IsType(), ListT< Value >::Length(), ExprC::loc, ModelVK, NEW, PrimError(), PrimitiveVK, and ValC::vKind. Referenced by PrimInit(). |
|
Definition at line 141 of file Prim.C. References ErrorVK, EvalArgs(), ListT< Value >::First(), IsType(), ListT< Value >::Length(), ExprC::loc, NEW, PrimError(), and ValC::vKind. Referenced by PrimInit(). |
|
Definition at line 152 of file Prim.C. References EvalArgs(), ListT< Value >::First(), IntegerVK, IsType(), ListT< Value >::Length(), ExprC::loc, NEW, PrimError(), and ValC::vKind. Referenced by PrimInit(). |
|
Definition at line 163 of file Prim.C. References EvalArgs(), ListT< Value >::First(), IsType(), ListT< Value >::Length(), ListVK, ExprC::loc, NEW, PrimError(), and ValC::vKind. Referenced by PrimInit(). |
|
Definition at line 174 of file Prim.C. References EvalArgs(), ListT< Value >::First(), IsType(), ListT< Value >::Length(), ExprC::loc, NEW, PrimError(), TextVK, and ValC::vKind. Referenced by PrimInit(). |
|
Definition at line 96 of file Prim.C. References ValC::AddToDPS(), ValC::cacheit, ValC::dps, NEW_CONSTR, TypePK, and ValType(). Referenced by IsBinding(), IsBool(), IsClosure(), IsErr(), IsInt(), IsList(), and IsText(). |
|
Definition at line 838 of file Prim.C. References BindingVK, ValC::cacheit, EvalArgs(), ListT< Value >::First(), ListT< Value >::Length(), ListVK, NEW, NEW_CONSTR, PrimError(), TextVK, and ValC::vKind. Referenced by Text::FindChar(), Text::FindCharR(), Text::FindText(), IsId(), PrimInit(), and Text::Sub(). |
|
Definition at line 2348 of file Prim.C. References ValC::cacheit, ExprC::Eval(), IntegerVK, ExprC::loc, ValC::Merge(), ValC::MergeAndTypeDPS(), NEW, NEW_CONSTR, PrimError(), and ValC::vKind. Referenced by PrimInit(). |
|
Definition at line 2312 of file Prim.C. References ValC::cacheit, ExprC::Eval(), IntegerVK, ExprC::loc, ValC::Merge(), ValC::MergeAndTypeDPS(), NEW, NEW_CONSTR, PrimError(), and ValC::vKind. Referenced by PrimInit(). |
|
Definition at line 435 of file Prim.C. References EvalArgs(), ListT< Value >::First(), ListT< Value >::Length(), NEW, NEW_CONSTR, and PrimError(). Referenced by PrimInit(). |
|
Definition at line 254 of file Prim.C. References ValC::AddToDPS(), ListVC::AddToLenDPS(), ListT< Value >::Append1D(), ValC::cacheit, ValC::dps, ListVC::elems, ValC::Extend(), IntArc(), ListVC::lenDps, LLenPK, ValC::MergeDPS(), ValC::MergeLenDPS(), ListVC::MergeToLenDPS(), NEW_CONSTR, NormPK, ListT< Value >::Null(), ValC::path, and ListT< Value >::Pop(). |
|
Definition at line 861 of file Prim.C. References ValC::AddToDPS(), BangPK, BindingVK, Text::Empty(), EvalArgs(), ListT< Value >::First(), IsEmptyBinding(), ListT< Value >::Length(), ValC::MergeDPS(), NEW, PrimError(), ListT< Value >::Second(), TextVK, UnbndVK, and valFalse. |
|
Definition at line 1959 of file Prim.C. Referenced by ApplyOpEC::Eval(). |
|
Definition at line 90 of file Prim.C. Referenced by Primary(), PickleC::UnpickleExpr(), and PickleC::UnpickleVal(). |
|
Definition at line 1974 of file Prim.C. Referenced by ApplyUnOpEC::Eval(). |
|
|
Definition at line 1612 of file Prim.C. References EvalArgs(), ListT< Value >::First(), IntegerVK, ListT< Value >::Length(), ExprC::loc, NEW, PrimError(), ListT< Value >::Second(), and ValC::vKind. Referenced by PrimInit(). |
|
Definition at line 1637 of file Prim.C. References EvalArgs(), ListT< Value >::First(), IntegerVK, ListT< Value >::Length(), ValC::Merge(), NEW, PrimError(), ListT< Value >::Second(), and ValC::vKind. Referenced by PrimInit(). |
|
Definition at line 369 of file Prim.C. References BindingMinus(), BindingVK, ValC::cacheit, ExprC::Eval(), IntegerVK, IsEmptyBinding(), ValC::Merge(), ValC::MergeAndLenDPS(), ValC::MergeAndTypeDPS(), Minus(), NEW, NEW_CONSTR, PrimError(), and ValC::vKind. Referenced by Minus(), and PrimInit(). |
|
Definition at line 1662 of file Prim.C. References ValC::cacheit, EvalArgs(), ListT< Value >::First(), IntegerVK, ListT< Value >::Length(), NEW, NEW_CONSTR, PrimError(), ListT< Value >::Second(), and ValC::vKind. Referenced by PrimInit(). |
|
Definition at line 1908 of file Prim.C. References ValC::cacheit, EvalArgs(), ListT< Value >::First(), ListT< Value >::Length(), ExprC::loc, ValC::Merge(), ModelVK, NEW, NEW_CONSTR, PrimError(), and ValC::vKind. Referenced by PrimInit(). |
|
Definition at line 2202 of file Prim.C. References ValC::cacheit, IntegerVK, ValC::Merge(), ValC::MergeAndTypeDPS(), NEW, NEW_CONSTR, PrimError(), and ValC::vKind. Referenced by PrimInit(). |
|
Definition at line 2188 of file Prim.C. References BooleanVK, ValC::cacheit, ValC::Merge(), ValC::MergeAndTypeDPS(), NEW, NEW_CONSTR, PrimError(), and ValC::vKind. Referenced by PrimInit(). |
|
Definition at line 2284 of file Prim.C. References BooleanVC::b, EqualVal(), ErrorVK, ExprC::Eval(), IsValFalse(), test(), and ValC::vKind. Referenced by PrimInit(). |
|
Definition at line 2240 of file Prim.C. References BooleanVK, ValC::cacheit, Error(), ExprC::Eval(), IsValTrue(), Basics::mutex::lock(), ValC::Merge(), ValC::MergeAndTypeDPS(), NEW, outputMu, Basics::mutex::unlock(), and ValC::vKind. Referenced by PrimInit(). |
|
|
Definition at line 1979 of file Prim.C. References BindingVK, ValC::cacheit, ExprC::Eval(), FP::Tag::Extend(), BindingVC::FingerPrint(), IntegerVK, IsEmptyBinding(), IsEmptyList(), ListAppend(), ListVK, ValC::Merge(), ValC::MergeAndLenDPS(), ValC::MergeAndTypeDPS(), NEW, NEW_CONSTR, Plus(), PrimError(), TextVK, and ValC::vKind. Referenced by Plus(), and PrimInit(). |
|
Definition at line 2046 of file Prim.C. References BindingVK, ValC::cacheit, ExprC::Eval(), IsEmptyBinding(), ExprC::loc, ValC::MergeAndLenDPS(), ValC::MergeAndTypeDPS(), NEW, NEW_CONSTR, PrimError(), and ValC::vKind. Referenced by PrimInit(). |
|
Definition at line 70 of file Prim.C. References Error(), ErrorDetail(), ErrorVal(), Basics::mutex::lock(), outputMu, and Basics::mutex::unlock(). |
|
Definition at line 62 of file Prim.C. References Error(), ErrorDetail(), ErrorVal(), Basics::mutex::lock(), outputMu, and Basics::mutex::unlock(). |
|
Definition at line 54 of file Prim.C. References Error(), ErrorArgs(), ErrorDetail(), Basics::mutex::lock(), outputMu, and Basics::mutex::unlock(). Referenced by And(), Append(), Assert(), Bind1(), Defined(), Div(), Elem(), EqualVal(), Find(), FindR(), GetFP(), GetName(), GetValue(), Greater(), GreaterEq(), Head(), Implies(), IsBinding(), IsBool(), IsClosure(), IsErr(), IsInt(), IsList(), IsText(), Length(), Less(), LessEq(), List1(), Lookup(), Map(), Max(), Min(), Minus(), Mod(), ModelName(), Neg(), Not(), ParMap(), Plus(), PlusPlus(), Print(), SameType(), Star(), Sub(), Tail(), and TypeOf(). |
|
Definition at line 2402 of file Prim.C. References AddPrimitive(), AddPrimitiveOp(), AddPrimitiveUnOp(), And(), Append(), ApplyRunTool(), Assert(), Bind1(), Defined(), Div(), Elem(), Equal(), Find(), FindR(), Basics::thread::fork(), VestaConfig::get_int(), GetFP(), GetName(), GetValue(), Greater(), GreaterEq(), Head(), Implies(), VestaConfig::is_set(), IsBinding(), IsBool(), IsClosure(), IsErr(), IsInt(), IsList(), IsText(), Length(), Less(), LessEq(), List1(), VestaSourceSRPC::Lookup, Map(), Max(), maxThreads, Min(), Minus(), Mod(), ModelName(), Neg(), NEW, Not(), NotEq(), Or(), ParMap(), Plus(), PlusPlus(), Print(), SameType(), Star(), Sub(), Tail(), and TypeOf(). Referenced by StartEval(). |
|
Definition at line 1849 of file Prim.C. References BooleanVK, EvalArgs(), ListT< Value >::First(), IntegerVK, ListT< Value >::Length(), ExprC::loc, Basics::mutex::lock(), NEW, outputMu, PrimError(), PrintAllDpnd(), ValC::PrintD(), PrintDpnd(), ListT< Value >::Second(), ListT< Value >::Third(), Basics::mutex::unlock(), verbose, and ValC::vKind. Referenced by PrimInit(). |
|
Definition at line 212 of file Prim.C. References ValC::cacheit, EvalArgs(), ListT< Value >::First(), ListT< Value >::Length(), NEW, PrimError(), SameTypeInner(), and ListT< Value >::Second(). Referenced by PrimInit(). |
|
Definition at line 204 of file Prim.C. References ValC::dps, ValC::MergeAndTypeDPS(), NEW_CONSTR, TypeOfVal(), and ValC::vKind. Referenced by SameType(). |
|
Definition at line 2368 of file Prim.C. References ValC::cacheit, ExprC::Eval(), IntegerVK, ExprC::loc, ValC::Merge(), ValC::MergeAndTypeDPS(), NEW, NEW_CONSTR, PrimError(), and ValC::vKind. Referenced by PrimInit(). |
|
Definition at line 1743 of file Prim.C. References ListT< Value >::Append1D(), BindingVK, ValC::cacheit, EvalArgs(), ValC::Extend(), FP::Tag::Extend(), ValC::FingerPrint(), ListT< Value >::First(), IntArc(), IntegerVK, ListT< Value >::Length(), ListVK, Text::MaxInt, AssocVC::name, NEW, NEW_CONSTR, NormPK, ListT< Value >::Null(), ValC::path, ListT< Value >::Pop(), PrimError(), ListT< Value >::Second(), Text::Sub(), TextVK, ListT< Value >::Third(), AssocVC::val, valZero, and ValC::vKind. Referenced by Elem(), and PrimInit(). |
|
Definition at line 760 of file Prim.C. References BindingVC::AddToLenDPS(), ListVC::AddToLenDPS(), ListT< Value >::Append1D(), BindingVK, ValC::cacheit, ValC::dps, BindingVC::elems, ListVC::elems, EvalArgs(), ValC::Extend(), ListT< Value >::First(), IntArc(), BindingVC::lenDps, ListVC::lenDps, ListT< Value >::Length(), ListVK, ValC::Merge(), ValC::MergeAndTypeDPS(), AssocVC::name, NEW, NEW_CONSTR, NormPK, ListT< Value >::Null(), ValC::path, ListT< Value >::Pop(), PrimError(), AssocVC::val, and ValC::vKind. Referenced by PrimInit(). |
|
Definition at line 195 of file Prim.C. References EvalArgs(), ListT< Value >::First(), ListT< Value >::Length(), NEW, PrimError(), and TypeOfVal(). Referenced by PrimInit(). |
|
Definition at line 185 of file Prim.C. References ValC::AddToDPS(), ValC::Copy(), ValC::dps, ValC::path, TypePK, and ValType(). Referenced by SameTypeInner(), and TypeOf(). |