public static LvalExpression addTempLocalVar(String name, Type type) {
		LvalExpression lvalExp = vars.getVar(name);

		if (lvalExp == null) {
			Lvalue lvalue = new VarLvalue(new Variable(name, type), false);
			vars.add(lvalue, false);
			lvalExp = vars.getVar(name);

			// add only the bit variables
			Vector<Lvalue> derivedLvalues = lvalue.getDerivedLvalues();

			for (int i = 0; i < derivedLvalues.size(); i++) {
				lvalue = derivedLvalues.elementAt(i);

				if (! (lvalue.hasDerives())) {
					int lvalSize = lvalue.size();

					// add bits only
					for (int j = 0; j < lvalSize; j++) {
						vars.add(new BitLvalue(lvalue, j), false);
					}
				}
			}
		}

		return lvalExp;
	}