Skip to content

Commit

Permalink
Update riddle submodule and optimize JSON serialization using std::st…
Browse files Browse the repository at this point in the history
…ring_view
  • Loading branch information
riccardodebenedictis committed Jan 15, 2025
1 parent c542219 commit f19e716
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions src/z3/z3solver.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ namespace ratio
json::json bool_item::to_json() const
{
json::json j = riddle::bool_item::to_json();
j["lit"] = expr.to_string();
j["lit"] = std::string_view(expr.to_string());
return j;
}

Expand Down Expand Up @@ -65,7 +65,7 @@ namespace ratio
json::json arith_item::to_json() const
{
json::json j = riddle::arith_item::to_json();
j["lin"] = expr.to_string();
j["lin"] = std::string_view(expr.to_string());
return j;
}

Expand Down Expand Up @@ -96,7 +96,7 @@ namespace ratio
json::json string_item::to_json() const
{
json::json j = riddle::string_item::to_json();
j["str"] = expr.to_string();
j["str"] = std::string_view(expr.to_string());
return j;
}

Expand Down Expand Up @@ -170,7 +170,7 @@ namespace ratio
json::json enum_item::to_json() const
{
json::json j = riddle::enum_item::to_json();
j["var"] = expr.to_string();
j["var"] = std::string_view(expr.to_string());
return j;
}

Expand Down Expand Up @@ -223,7 +223,7 @@ namespace ratio
json::json atom::to_json() const
{
json::json j = riddle::atom::to_json();
j["sigma"] = sigma.to_string();
j["sigma"] = std::string_view(sigma.to_string());
return j;
}

Expand Down

0 comments on commit f19e716

Please sign in to comment.