Skip to content

Commit

Permalink
Only emit attributes used by some backend (#3983)
Browse files Browse the repository at this point in the history
Automerge #3983: Only emit attributes used by some backend
  • Loading branch information
Scott-Guest authored Feb 29, 2024
1 parent 4555a40 commit dd9f6e7
Show file tree
Hide file tree
Showing 3 changed files with 303 additions and 146 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -8,12 +8,12 @@
false
#Equals
X:MyId in SET
SetItem ( Z:MyId )
}
#And
{
false
#Equals
Z:MyId in SET
SetItem ( X:MyId )
}
[Error] Prover: backend terminated because the configuration cannot be rewritten further. See output for more details.
Original file line number Diff line number Diff line change
Expand Up @@ -2013,7 +2013,10 @@ private void convert(

for (Tuple2<Tuple2<Att.Key, String>, ?> attribute :
// Sort to stabilize error messages
stream(att.att()).sorted(Comparator.comparing(Tuple2::toString)).toList()) {
stream(att.att())
.filter(e -> e._1._1.shouldEmit())
.sorted(Comparator.comparing(Tuple2::toString))
.toList()) {
Att.Key key = attribute._1._1;
String strKey = key.key();
String clsName = attribute._1._2;
Expand Down
Loading

0 comments on commit dd9f6e7

Please sign in to comment.