EvalInitialConditionsCodeGen

class EvalInitialConditionsCodeGen : public rrllvm::CodeGenBase<EvalInitialConditions_FunctionPtr>

Generates a function called ‘modeldata_initialvalues_set’, which evaluates all of the initial conditions specified in the sbml model (initial values, initial assigments, etc…) and stores these values in the appropriate fields in the LLVMModelData structure.

generated function signature: void modeldata_initialvalues_set(ModelData *);

Public Types

typedef EvalInitialConditions_FunctionPtr FunctionPtr

Public Functions

EvalInitialConditionsCodeGen(const ModelGeneratorContext &mgc)
virtual ~EvalInitialConditionsCodeGen()
virtual llvm::Value *codeGen()

Public Static Attributes

static const char *FunctionName = "evalInitialConditions"

Private Functions

void codeGenSpecies(StoreSymbolResolver &modelDataResolver, LoadSymbolResolver &loadResolver)
void codeGenStoichiometry(llvm::Value *modelData, ModelDataStoreSymbolResolver &modelDataResolver, LoadSymbolResolver &initialValueResolver)
void codeGenCompartments(StoreSymbolResolver &modelDataResolver, LoadSymbolResolver &loadResolver)
void codeGenGlobalParameters(StoreSymbolResolver &modelDataResolver, LoadSymbolResolver &loadResolver)
void codeGenInitSpecies(StoreSymbolResolver &modelDataResolver, LoadSymbolResolver &loadResolver)
void codeGenInitCompartments(StoreSymbolResolver &modelDataResolver, LoadSymbolResolver &loadResolver)
void codeGenInitGlobalParameters(StoreSymbolResolver &modelDataResolver, LoadSymbolResolver &loadResolver)