Skip to content

Commit 9665152

Browse files
committed
Fix
1 parent dd0ab7e commit 9665152

3 files changed

Lines changed: 4 additions & 4 deletions

File tree

plugins/lean_meta/lean_meta_reduce.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -281,15 +281,15 @@ std::string LeanMetaReduce::getEmbedName(const Expr& oApp, MetaKind ctx)
281281
<< oApp;
282282
}
283283
const Literal* l = oApp[1].getValue()->asLiteral();
284-
std::string smtStr = cleanSmtId(l->d_str.toString());
284+
std::string smtStr = l->d_str.toString();
285285
// literals don't need native_
286286
if (is_integer(smtStr) || smtStr == "true" || smtStr == "false"
287287
|| (!smtStr.empty() && smtStr.compare(0, 1, "\"") == 0))
288288
{
289289
return smtStr;
290290
}
291291
std::stringstream ss;
292-
ss << "native_" << smtStr;
292+
ss << "native_" << cleanSmtId(smtStr);
293293
return ss.str();
294294
}
295295

plugins/lean_meta/lean_meta_spec.lean

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ Definitions for eo_is_obj
3636
noncomputable section
3737

3838
def native_reserved_datatype_name (s : native_String) : native_Bool :=
39-
s.startsWith "_at_"
39+
s.startsWith "@"
4040

4141
mutual
4242

tools/eoc/out/lean/Spec.lean

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ Definitions for eo_is_obj
3838
noncomputable section
3939

4040
def native_reserved_datatype_name (s : native_String) : native_Bool :=
41-
s.startsWith "_at_"
41+
s.startsWith "@"
4242

4343
mutual
4444

0 commit comments

Comments
 (0)