#!/bin/bash

#sed -i 's:/features/:/features2/:g' "$1"
#sed -i 's:/predicates/:/predicates2/:g' "$1"
#sed -i 's:/symbols/:/symbols2/:g' "$1"
sed -i 's:vehicle/planner/decision/ltl/support/support.codegen.h:vehicle/planner/decision/ltl2/predicate_base.codegen.h:g' "$1"
sed -i 's/ltl::support::CurrentTime/ltl2::CurrentTime/g' "$1"
sed -i '/using ltl::support::All/d' "$1"

sed -i 's/symbol<symbols::\([[:alnum:]]*\)>/symbol<\1>/g' "$1"
sed -i 's/predicate<features::\([[:alnum:]]*\)>/predicate<\1>/g' "$1"
sed -i 's/predicate<predicates::\([[:alnum:]]*\)>/predicate<\1>/g' "$1"
sed -i 's:All<\([[:alnum:]]*\)>:All\1:g' "$1"
sed -i 's:predicate<\([[:alnum:]]*\)>:predicate__\1:g' "$1"
sed -i 's:symbol<\([[:alnum:]]*\)>:symbol__\1:g' "$1"
