private boolean isVarLocal(FunctionTrace ft, String varName) {
		if (ft == null || varName == null || varName == "") {
			System.out
					.println("Error: Empty variable or trace passed to isVarLocal");
			System.exit(-1);
		}

		// Find varName in ft's variable list
		List<VariableDesc> vDesc_list = ft.f_decl.var_descs;
		Iterator<VariableDesc> vDesc_it = vDesc_list.iterator();
		VariableDesc vDesc = null;
		boolean varFound = false;
		while (vDesc_it.hasNext()) {
			vDesc = vDesc_it.next();
			// System.err.println(vDesc.getVarName());
			if (vDesc.getVarName().equals(varName)) {
				varFound = true;
				break;
			} else {
				// System.out.println(varName);
			}
		}

		if (!varFound) {
			System.out
					.println("Error: variable name not found in function declaration => varName:"
							+ varName);
			System.exit(-1);
		}

		// If this point is reached, the variable must have been found
		// and vDesc should contain the correct VariableDesc
		boolean isLocal = false;
		if (!vDesc.isGlobal()) {
			isLocal = true;
		}

		return isLocal;
	}