Skip to content

Commit

Permalink
Fix translations due to new tString constructor
Browse files Browse the repository at this point in the history
  • Loading branch information
mattam82 committed Jul 9, 2024
1 parent ec45ca3 commit 9cdb37b
Show file tree
Hide file tree
Showing 5 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion erasure-plugin/clean_extraction.sh
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ fi

shopt -s nullglob # make the for loop do nothnig when there is no *.ml* files

files=`cat ../template-coq/_PluginProject | grep "^[^#].*mli\?$" | sed -e s/gen-src/src/`
files=`cat ../template-coq/_PluginProject.in | grep "^[^#].*mli\?$" | sed -e s/gen-src/src/`

if [[ ! -f "src/metacoq_erasure_plugin.cmxs" ||
"src/metacoq_erasure_plugin.cmxs" -ot "theories/Extraction.vo" ]]
Expand Down
2 changes: 1 addition & 1 deletion pcuic/clean_extraction.sh
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ shopt -s nullglob # make the for loop do nothnig when there is no *.ml* files

echo "Cleaning result of extraction"

files=`cat ../template-coq/_PluginProject ../checker/_PluginProject.in | grep "^[^#].*mli\?$" | sed -e s/gen-src/src/`
files=`cat ../template-coq/_PluginProject.in ../checker/_PluginProject.in | grep "^[^#].*mli\?$" | sed -e s/gen-src/src/`

cd src
# Move extracted modules to build the certicoq compiler plugin
Expand Down
2 changes: 1 addition & 1 deletion safechecker-plugin/clean_extraction.sh
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ fi

shopt -s nullglob # make the for loop do nothnig when there is no *.ml* files

files=`cat ../template-coq/_PluginProject | grep "^[^#].*mli\?$" | sed -e s/gen-src/src/`
files=`cat ../template-coq/_PluginProject.in | grep "^[^#].*mli\?$" | sed -e s/gen-src/src/`

if [[ ! -f "src/metacoq_safechecker_plugin.cmxs" ||
"src/metacoq_safechecker_plugin.cmxs" -ot "theories/Extraction.vo" ]]
Expand Down
2 changes: 1 addition & 1 deletion translations/param_binary.v
Original file line number Diff line number Diff line change
Expand Up @@ -145,7 +145,7 @@ Fixpoint tsl_rec1_app (app : list term) (E : tsl_table) (t : term) : term :=
| tFix _ _ | tCoFix _ _ => todo "tsl"
| tVar _ | tEvar _ _ => todo "tsl"
| tLambda _ _ _ => tVar "impossible"
| tInt _ | tFloat _ | tArray _ _ _ _ => todo "tsl"
| tInt _ | tFloat _ | tArray _ _ _ _ | tString _ => todo "tsl"
end
in apply app t1
end.
Expand Down
2 changes: 1 addition & 1 deletion translations/param_original.v
Original file line number Diff line number Diff line change
Expand Up @@ -106,7 +106,7 @@ Fixpoint tsl_rec1_app (app : option term) (E : tsl_table) (t : term) : term :=
| tFix _ _ | tCoFix _ _ => todo "tsl"
| tVar _ | tEvar _ _ => todo "tsl"
| tLambda _ _ _ => tVar "impossible"
| tInt _ | tFloat _ | tArray _ _ _ _ => todo "tsl"
| tInt _ | tFloat _ | tArray _ _ _ _ | tString _ => todo "tsl"
end in
match app with Some t' => mkApp t1 (t' {3 := tRel 1} {2 := tRel 0})
| None => t1 end
Expand Down

0 comments on commit 9cdb37b

Please sign in to comment.