!752

!include #1004863 // Dynamic Concepts
!include #1005530 // PIF Classes (Clip, Found, FullySearched)

p {
  final Concepts in = new Concepts("#1005522").load();
  new MultiMap<Long, Long> bitMap;
  for (Screenshot screenshot : in.list(Screenshot)) {
    continue unless in.findBackRef(screenshot, FullySearched) != null;
    L<Found> found = in.findBackRefs(screenshot, Found);
    print("Screenshot " + screenshot.id + " found clips: " + l(found));
    for (Found f : found)
      bitMap.put(screenshot.id, f.clip->id);
  }
  printStruct(bitMap);
  analyzeBitMap_idToText = func(long id) { ((Clip) in.getConcept(id)).description };
  analyzeBitMap(bitMap);
}