12345678910111213141516171819202122232425262728typet=Fpath.t[@@derivingeq,ord,show]lethashp=Hashtbl.hash(Fpath.to_stringp)letpretty()p=GoblintCil.Pretty.text(Fpath.to_stringp)letto_yojsonp=`String(Fpath.to_stringp)letof_yojson=function|`Strings->Fpath.of_strings|>Result.map_error(fun(`Msgm)->"GobFpath.of_yojson: "^m)|_->Error"GobFpath.of_yojson: not string"letcwd()=Fpath.v(Unix.getcwd())letcwd_appendp=Fpath.append(cwd())p(* eta-expanded to get cwd at use time, not define time *)letrem_find_prefixp1p2=(* TODO: don't use get? *)letprefix=Option.get(Fpath.find_prefixp1p2)inOption.get(Fpath.rem_prefixprefixp2)