congrats Icon
New! Announcing Tabnine Chat Beta
Learn More
Tabnine Logo
GenerateSortPredicateRules.gen
Code IndexAdd Tabnine to your IDE (free)

How to use
gen
method
in
org.kframework.compile.GenerateSortPredicateRules

Best Java code snippets using org.kframework.compile.GenerateSortPredicateRules.gen (Showing top 1 results out of 315)

origin: kframework/k

public static String getKompiledString(Module mainModule, KLabel topCellInitializer, FileUtil files, boolean heatCoolEquations) {
  mainModule = new GenerateSortPredicateRules(true).gen(mainModule);
  mainModule = ModuleTransformer.fromKTransformer(new AddSortInjections(mainModule)::addInjections, "Add sort injections").apply(mainModule);
  mainModule = ModuleTransformer.fromSentenceTransformer(new MinimizeTermConstruction(mainModule)::resolve, "Minimize term construction").apply(mainModule);
  ModuleToKORE moduleToKORE = new ModuleToKORE(mainModule, files, topCellInitializer);
  String kompiledString = moduleToKORE.convert(heatCoolEquations);
  Properties koreToKLabels = new Properties();
  koreToKLabels.putAll(moduleToKORE.getKToKoreLabelMap().inverse());
  try {
    FileOutputStream output = new FileOutputStream(files.resolveKompiled("kore_to_k_labels.properties"));
    koreToKLabels.store(output, "Properties file containing the mapping from kore to k labels");
  } catch (IOException e) {
    throw KEMException.criticalError("Error while saving kore to K labels map", e);
  }
  return kompiledString;
}
org.kframework.compileGenerateSortPredicateRulesgen

Popular methods of GenerateSortPredicateRules

  • <init>
  • genKore
  • getPredicateSort
  • isPredicateFor
  • promotePredicate
    Takes a rule representing a predicate of one sort and promotes it to a rule representing a predicate

Popular in Java

  • Making http post requests using okhttp
  • findViewById (Activity)
  • requestLocationUpdates (LocationManager)
  • onCreateOptionsMenu (Activity)
  • ObjectMapper (com.fasterxml.jackson.databind)
    ObjectMapper provides functionality for reading and writing JSON, either to and from basic POJOs (Pl
  • GregorianCalendar (java.util)
    GregorianCalendar is a concrete subclass of Calendarand provides the standard calendar used by most
  • List (java.util)
    An ordered collection (also known as a sequence). The user of this interface has precise control ove
  • Annotation (javassist.bytecode.annotation)
    The annotation structure.An instance of this class is returned bygetAnnotations() in AnnotationsAttr
  • JComboBox (javax.swing)
  • JTextField (javax.swing)
  • Top plugins for Android Studio
Tabnine Logo
  • Products

    Search for Java codeSearch for JavaScript code
  • IDE Plugins

    IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogTabnine AcademyTerms of usePrivacy policyJava Code IndexJavascript Code Index
Get Tabnine for your IDE now