diff --git a/GitSHA1.c b/GitSHA1.c index f3ddb2b45..4182afe7d 100644 --- a/GitSHA1.c +++ b/GitSHA1.c @@ -1,2 +1,2 @@ -#define GIT_SHA1 "880a9989c3fca9bd8184f0098049fb87795fde62" +#define GIT_SHA1 "fa586f8769671bdf084b01dfe51728a5420a793a" const char g_GIT_SHA1[] = GIT_SHA1; diff --git a/ID b/ID deleted file mode 100644 index 5ee7a8b87..000000000 Binary files a/ID and /dev/null differ diff --git a/OPTYap/CMakeFiles/CMakeDirectoryInformation.cmake b/OPTYap/CMakeFiles/CMakeDirectoryInformation.cmake deleted file mode 100644 index bab203dbc..000000000 --- a/OPTYap/CMakeFiles/CMakeDirectoryInformation.cmake +++ /dev/null @@ -1,16 +0,0 @@ -# CMAKE generated file: DO NOT EDIT! -# Generated by "Unix Makefiles" Generator, CMake Version 3.3 - -# Relative path conversion top directories. -set(CMAKE_RELATIVE_PATH_TOP_SOURCE "/Users/vsc/git/yap-6.3") -set(CMAKE_RELATIVE_PATH_TOP_BINARY "/Users/vsc/git/yap-6.3") - -# Force unix paths in dependencies. -set(CMAKE_FORCE_UNIX_PATHS 1) - - -# The C and CXX include file regular expressions for this directory. -set(CMAKE_C_INCLUDE_REGEX_SCAN "^.*$") -set(CMAKE_C_INCLUDE_REGEX_COMPLAIN "^$") -set(CMAKE_CXX_INCLUDE_REGEX_SCAN ${CMAKE_C_INCLUDE_REGEX_SCAN}) -set(CMAKE_CXX_INCLUDE_REGEX_COMPLAIN ${CMAKE_C_INCLUDE_REGEX_COMPLAIN}) diff --git a/OPTYap/CMakeFiles/libOPTYap.dir/C.includecache b/OPTYap/CMakeFiles/libOPTYap.dir/C.includecache deleted file mode 100644 index 29c134061..000000000 --- a/OPTYap/CMakeFiles/libOPTYap.dir/C.includecache +++ /dev/null @@ -1,838 +0,0 @@ -#IncludeRegexLine: ^[ ]*#[ ]*(include|import)[ ]*[<"]([^">]+)([">]) - -#IncludeRegexScan: ^.*$ - -#IncludeRegexComplain: ^$ - -#IncludeRegexTransform: - -/Users/vsc/git/yap-6.3/OPTYap/opt.init.c -Yap.h -/Users/vsc/git/yap-6.3/OPTYap/Yap.h -Yatom.h -/Users/vsc/git/yap-6.3/OPTYap/Yatom.h -YapHeap.h -/Users/vsc/git/yap-6.3/OPTYap/YapHeap.h -unistd.h -- -signal.h -- -or.macros.h -/Users/vsc/git/yap-6.3/OPTYap/or.macros.h -tab.macros.h -/Users/vsc/git/yap-6.3/OPTYap/tab.macros.h -opt.mavar.h -/Users/vsc/git/yap-6.3/OPTYap/opt.mavar.h -sys/wait.h -/Users/vsc/git/yap-6.3/OPTYap/sys/wait.h - -/Users/vsc/git/yap-6.3/OPTYap/opt.mavar.h - -/Users/vsc/git/yap-6.3/OPTYap/opt.preds.c -Yap.h -/Users/vsc/git/yap-6.3/OPTYap/Yap.h -Yatom.h -/Users/vsc/git/yap-6.3/OPTYap/Yatom.h -YapHeap.h -/Users/vsc/git/yap-6.3/OPTYap/YapHeap.h -string.h -- -sys/time.h -- -or.macros.h -/Users/vsc/git/yap-6.3/OPTYap/or.macros.h -tab.macros.h -/Users/vsc/git/yap-6.3/OPTYap/tab.macros.h -iopreds.h -/Users/vsc/git/yap-6.3/OPTYap/iopreds.h - -/Users/vsc/git/yap-6.3/OPTYap/or.copy_engine.c -Yap.h -/Users/vsc/git/yap-6.3/OPTYap/Yap.h -string.h -- -Yatom.h -/Users/vsc/git/yap-6.3/OPTYap/Yatom.h -YapHeap.h -/Users/vsc/git/yap-6.3/OPTYap/YapHeap.h -or.macros.h -/Users/vsc/git/yap-6.3/OPTYap/or.macros.h -tab.macros.h -/Users/vsc/git/yap-6.3/OPTYap/tab.macros.h -opt.mavar.h -/Users/vsc/git/yap-6.3/OPTYap/opt.mavar.h - -/Users/vsc/git/yap-6.3/OPTYap/or.cow_engine.c -Yap.h -/Users/vsc/git/yap-6.3/OPTYap/Yap.h -sys/types.h -- -unistd.h -- -stdio.h -- -Yatom.h -/Users/vsc/git/yap-6.3/OPTYap/Yatom.h -YapHeap.h -/Users/vsc/git/yap-6.3/OPTYap/YapHeap.h -or.macros.h -/Users/vsc/git/yap-6.3/OPTYap/or.macros.h - -/Users/vsc/git/yap-6.3/OPTYap/or.cut.c -Yap.h -/Users/vsc/git/yap-6.3/OPTYap/Yap.h -Yatom.h -/Users/vsc/git/yap-6.3/OPTYap/Yatom.h -YapHeap.h -/Users/vsc/git/yap-6.3/OPTYap/YapHeap.h -or.macros.h -/Users/vsc/git/yap-6.3/OPTYap/or.macros.h -tab.macros.h -/Users/vsc/git/yap-6.3/OPTYap/tab.macros.h - -/Users/vsc/git/yap-6.3/OPTYap/or.macros.h -stdlib.h -- - -/Users/vsc/git/yap-6.3/OPTYap/or.memory.c -Yap.h -/Users/vsc/git/yap-6.3/OPTYap/Yap.h -signal.h -- -unistd.h -- -fcntl.h -- -string.h -- -sys/shm.h -- -sys/mman.h -- -Yatom.h -/Users/vsc/git/yap-6.3/OPTYap/Yatom.h -alloc.h -/Users/vsc/git/yap-6.3/OPTYap/alloc.h -or.macros.h -/Users/vsc/git/yap-6.3/OPTYap/or.macros.h - -/Users/vsc/git/yap-6.3/OPTYap/or.sba_engine.c -Yap.h -/Users/vsc/git/yap-6.3/OPTYap/Yap.h -stdio.h -- -Yatom.h -/Users/vsc/git/yap-6.3/OPTYap/Yatom.h -YapHeap.h -/Users/vsc/git/yap-6.3/OPTYap/YapHeap.h -or.macros.h -/Users/vsc/git/yap-6.3/OPTYap/or.macros.h -opt.mavar.h -/Users/vsc/git/yap-6.3/OPTYap/opt.mavar.h - -/Users/vsc/git/yap-6.3/OPTYap/or.scheduler.c -Yap.h -/Users/vsc/git/yap-6.3/OPTYap/Yap.h -Yatom.h -/Users/vsc/git/yap-6.3/OPTYap/Yatom.h -YapHeap.h -/Users/vsc/git/yap-6.3/OPTYap/YapHeap.h -or.macros.h -/Users/vsc/git/yap-6.3/OPTYap/or.macros.h -tab.macros.h -/Users/vsc/git/yap-6.3/OPTYap/tab.macros.h - -/Users/vsc/git/yap-6.3/OPTYap/or.thread_engine.c -Yap.h -/Users/vsc/git/yap-6.3/OPTYap/Yap.h -string.h -- -Yatom.h -/Users/vsc/git/yap-6.3/OPTYap/Yatom.h -YapHeap.h -/Users/vsc/git/yap-6.3/OPTYap/YapHeap.h -or.macros.h -/Users/vsc/git/yap-6.3/OPTYap/or.macros.h -tab.macros.h -/Users/vsc/git/yap-6.3/OPTYap/tab.macros.h -opt.mavar.h -/Users/vsc/git/yap-6.3/OPTYap/opt.mavar.h - -/Users/vsc/git/yap-6.3/OPTYap/tab.completion.c -Yap.h -/Users/vsc/git/yap-6.3/OPTYap/Yap.h -Yatom.h -/Users/vsc/git/yap-6.3/OPTYap/Yatom.h -YapHeap.h -/Users/vsc/git/yap-6.3/OPTYap/YapHeap.h -tab.macros.h -/Users/vsc/git/yap-6.3/OPTYap/tab.macros.h -or.macros.h -/Users/vsc/git/yap-6.3/OPTYap/or.macros.h - -/Users/vsc/git/yap-6.3/OPTYap/tab.macros.h -stdlib.h -- -string.h -- -opt.mavar.h -/Users/vsc/git/yap-6.3/OPTYap/opt.mavar.h -or.macros.h -/Users/vsc/git/yap-6.3/OPTYap/or.macros.h - -/Users/vsc/git/yap-6.3/OPTYap/tab.rational.h - -/Users/vsc/git/yap-6.3/OPTYap/tab.tries.c -Yap.h -/Users/vsc/git/yap-6.3/OPTYap/Yap.h -Yatom.h -/Users/vsc/git/yap-6.3/OPTYap/Yatom.h -YapHeap.h -/Users/vsc/git/yap-6.3/OPTYap/YapHeap.h -eval.h -/Users/vsc/git/yap-6.3/OPTYap/eval.h -tab.macros.h -/Users/vsc/git/yap-6.3/OPTYap/tab.macros.h -tab.rational.h -/Users/vsc/git/yap-6.3/OPTYap/tab.rational.h -tab.tries.h -/Users/vsc/git/yap-6.3/OPTYap/tab.tries.h -tab.tries.h -/Users/vsc/git/yap-6.3/OPTYap/tab.tries.h -tab.tries.h -/Users/vsc/git/yap-6.3/OPTYap/tab.tries.h -tab.tries.h -/Users/vsc/git/yap-6.3/OPTYap/tab.tries.h -tab.tries.h -/Users/vsc/git/yap-6.3/OPTYap/tab.tries.h -tab.tries.h -/Users/vsc/git/yap-6.3/OPTYap/tab.tries.h -tab.tries.h -/Users/vsc/git/yap-6.3/OPTYap/tab.tries.h -tab.tries.h -/Users/vsc/git/yap-6.3/OPTYap/tab.tries.h - -/Users/vsc/git/yap-6.3/OPTYap/tab.tries.h - -/usr/local/include/gmp.h -iosfwd -- -cstdio -- -stddef.h -- - -/usr/local/include/gmpxx.h -iosfwd -- -cstring -- -limits -- -utility -- -algorithm -- -string -- -stdexcept -- -cfloat -- -gmp.h -- -type_traits -- - -H/Atoms.h -wchar.h -- - -H/Regs.h -cut_c.h -H/cut_c.h -inline-only.h -H/inline-only.h - -H/ScannerTypes.h - -H/Tags_24bits.h -inline-only.h -H/inline-only.h - -H/Tags_32LowTag.h -inline-only.h -H/inline-only.h - -H/Tags_32Ops.h -inline-only.h -H/inline-only.h - -H/Tags_32bits.h -inline-only.h -H/inline-only.h - -H/Tags_64bits.h -inline-only.h -H/inline-only.h - -H/TermExt.h -inline-only.h -H/inline-only.h -stddef.h -- -string.h -- -stdio.h -- -gmpxx.h -- -gmp.h -- - -H/Yap.h -config.h -H/config.h -inline-only.h -H/inline-only.h -opt.config.h -H/opt.config.h -strings.h -- -stdint.h -- -inttypes.h -- -time.h -- -YapDefs.h -H/YapDefs.h -pthread.h -- -nolocks.h -- -locks_pthread.h -- -locks_x86.h -- -locks_sparc.h -- -locks_mips.h -- -locks_alpha.h -- -Atoms.h -H/Atoms.h -corout.h -H/corout.h -amidefs.h -H/amidefs.h -Regs.h -H/Regs.h -setjmp.h -- -arrays.h -H/arrays.h -YapError.h -H/YapError.h -Yapproto.h -H/Yapproto.h -YapTags.h -H/YapTags.h -jni.h -- -android/asset_manager.h -- -android/asset_manager_jni.h -- -android/log.h -- -ScannerTypes.h -H/ScannerTypes.h -opt.structs.h -H/opt.structs.h -opt.proto.h -H/opt.proto.h -opt.macros.h -H/opt.macros.h -encoding.h -H/encoding.h -stdio.h -- -hglobals.h -H/hglobals.h -dglobals.h -H/dglobals.h -hlocals.h -H/hlocals.h -dlocals.h -H/dlocals.h -or.sba_amiops.h -H/or.sba_amiops.h -or.sba_unify.h -H/or.sba_unify.h -amiops.h -H/amiops.h -YapCompoundTerm.h -H/YapCompoundTerm.h -YapHandles.h -H/YapHandles.h -YapSignals.h -H/YapSignals.h -JIT.hpp -H/JIT.hpp -GitSHA1.h -H/GitSHA1.h - -H/YapAppliedOpcodes.h - -H/YapCompoundTerm.h -inline-only.h -H/inline-only.h - -H/YapFlags.h -YapGFlagInfo.h -H/YapGFlagInfo.h -YapLFlagInfo.h -H/YapLFlagInfo.h - -H/YapGFlagInfo.h - -H/YapHandles.h -Regs.h -H/Regs.h -stdio.h -- - -H/YapHeap.h -stdio.h -- -../include/dswiatoms.h -include/dswiatoms.h -hstruct.h -H/hstruct.h -dhstruct.h -H/dhstruct.h -inline-only.h -H/inline-only.h - -H/YapLFlagInfo.h - -H/YapOpcodes.h - -H/YapSignals.h -signal.h -- - -H/YapTags.h -inline-only.h -H/inline-only.h -Tags_32bits.h -H/Tags_32bits.h -Tags_32Ops.h -H/Tags_32Ops.h -Tags_32LowTag.h -H/Tags_32LowTag.h -Tags_64bits.h -H/Tags_64bits.h -Tags_24bits.h -H/Tags_24bits.h -TermExt.h -H/TermExt.h - -H/YapTerm.h -YapTermConfig.h -H/YapTermConfig.h -config.h -H/config.h -stdint.h -- -inttypes.h -- - -H/Yapproto.h - -H/Yatom.h -YapHeap.h -H/YapHeap.h -YapFlags.h -H/YapFlags.h - -H/absmi.h -Yap.h -H/Yap.h -clause.h -H/clause.h -eval.h -H/eval.h -string.h -- -amijit.h -H/amijit.h -or.macros.h -H/or.macros.h -YapHeap.h -H/YapHeap.h -tab.macros.h -H/tab.macros.h -tracer.h -H/tracer.h -stdio.h -- -trim_trail.h -H/trim_trail.h -sys/time.h -- -sys/resource.h -- -math.h -- -JIT_Compiler.hpp -H/JIT_Compiler.hpp - -H/alloc.h -sys/types.h -- -sys/mman.h -- -unistd.h -- -sys/types.h -- -malloc.h -- - -H/amidefs.h -stdio.h -- -YapOpcodes.h -H/YapOpcodes.h - -H/amijit.h -pthread.h -- -YapAppliedOpcodes.h -H/YapAppliedOpcodes.h -Yap_AppliedBasicBlocks.h -H/Yap_AppliedBasicBlocks.h - -H/amiops.h -inline-only.h -H/inline-only.h - -H/arrays.h - -H/clause.h -Yatom.h -H/Yatom.h -YapHeap.h -H/YapHeap.h -inline-only.h -H/inline-only.h - -H/corout.h - -H/cut_c.h - -H/dglobals.h - -H/dhstruct.h - -H/dlocals.h - -H/eval.h -stdlib.h -- -math.h -- -float.h -- -ieeefp.h -- -limits.h -- -fenv.h -- -strings.h -- -string.h -- -inline-only.h -H/inline-only.h - -H/hglobals.h - -H/hlocals.h - -H/hstruct.h -tatoms.h -H/tatoms.h - -H/inline-only.h - -H/nolocks.h - -H/tatoms.h - -H/threads.h - -H/tracer.h - -H/trim_trail.h - -JIT/HPP/JIT.hpp -vector -- -string -- -cstdio -- -iostream -- -fstream -- -time.h -- -dlfcn.h -- -config.h -JIT/HPP/config.h -gmpxx.h -- -absmi.h -JIT/HPP/absmi.h - -JIT/HPP/JIT_Compiler.hpp -llvm/Linker/Linker.h -JIT/HPP/llvm/Linker/Linker.h -llvm/PassManager.h -JIT/HPP/llvm/PassManager.h -llvm/Analysis/CallGraphSCCPass.h -JIT/HPP/llvm/Analysis/CallGraphSCCPass.h -llvm/Analysis/Passes.h -JIT/HPP/llvm/Analysis/Passes.h -llvm/ADT/Statistic.h -JIT/HPP/llvm/ADT/Statistic.h -llvm/ADT/STLExtras.h -JIT/HPP/llvm/ADT/STLExtras.h -llvm/ADT/StringSet.h -JIT/HPP/llvm/ADT/StringSet.h -llvm/ADT/Triple.h -JIT/HPP/llvm/ADT/Triple.h -llvm/CodeGen/Passes.h -JIT/HPP/llvm/CodeGen/Passes.h -llvm/CodeGen/MachineBlockFrequencyInfo.h -JIT/HPP/llvm/CodeGen/MachineBlockFrequencyInfo.h -llvm/CodeGen/MachineBranchProbabilityInfo.h -JIT/HPP/llvm/CodeGen/MachineBranchProbabilityInfo.h -llvm/CodeGen/MachineFrameInfo.h -JIT/HPP/llvm/CodeGen/MachineFrameInfo.h -llvm/CodeGen/MachineJumpTableInfo.h -JIT/HPP/llvm/CodeGen/MachineJumpTableInfo.h -llvm/CodeGen/MachineLoopInfo.h -JIT/HPP/llvm/CodeGen/MachineLoopInfo.h -llvm/CodeGen/MachineBranchProbabilityInfo.h -JIT/HPP/llvm/CodeGen/MachineBranchProbabilityInfo.h -llvm/CodeGen/MachineModuleInfo.h -JIT/HPP/llvm/CodeGen/MachineModuleInfo.h -llvm/CodeGen/MachineRegionInfo.h -JIT/HPP/llvm/CodeGen/MachineRegionInfo.h -llvm/ExecutionEngine/ExecutionEngine.h -JIT/HPP/llvm/ExecutionEngine/ExecutionEngine.h -llvm/ExecutionEngine/MCJIT.h -JIT/HPP/llvm/ExecutionEngine/MCJIT.h -llvm/ExecutionEngine/Interpreter.h -JIT/HPP/llvm/ExecutionEngine/Interpreter.h -llvm/ExecutionEngine/GenericValue.h -JIT/HPP/llvm/ExecutionEngine/GenericValue.h -llvm/ExecutionEngine/JITEventListener.h -JIT/HPP/llvm/ExecutionEngine/JITEventListener.h -llvm/ExecutionEngine/SectionMemoryManager.h -JIT/HPP/llvm/ExecutionEngine/SectionMemoryManager.h -llvm/IR/Constants.h -JIT/HPP/llvm/IR/Constants.h -llvm/IR/DataLayout.h -JIT/HPP/llvm/IR/DataLayout.h -llvm/IR/DerivedTypes.h -JIT/HPP/llvm/IR/DerivedTypes.h -llvm/IR/Instructions.h -JIT/HPP/llvm/IR/Instructions.h -llvm/IR/IRBuilder.h -JIT/HPP/llvm/IR/IRBuilder.h -llvm/IR/IRPrintingPasses.h -JIT/HPP/llvm/IR/IRPrintingPasses.h -llvm/IR/LegacyPassManager.h -JIT/HPP/llvm/IR/LegacyPassManager.h -llvm/IR/LLVMContext.h -JIT/HPP/llvm/IR/LLVMContext.h -llvm/IR/Module.h -JIT/HPP/llvm/IR/Module.h -llvm/IR/TypeBuilder.h -JIT/HPP/llvm/IR/TypeBuilder.h -llvm/IR/Verifier.h -JIT/HPP/llvm/IR/Verifier.h -llvm/IRReader/IRReader.h -JIT/HPP/llvm/IRReader/IRReader.h -llvm/Support/Host.h -JIT/HPP/llvm/Support/Host.h -llvm/Support/Path.h -JIT/HPP/llvm/Support/Path.h -llvm/Support/TargetSelect.h -JIT/HPP/llvm/Support/TargetSelect.h -llvm/Support/ManagedStatic.h -JIT/HPP/llvm/Support/ManagedStatic.h -llvm/Support/raw_os_ostream.h -JIT/HPP/llvm/Support/raw_os_ostream.h -llvm/Support/ToolOutputFile.h -JIT/HPP/llvm/Support/ToolOutputFile.h -llvm/Target/TargetMachine.h -JIT/HPP/llvm/Target/TargetMachine.h -llvm/Target/TargetOptions.h -JIT/HPP/llvm/Target/TargetOptions.h -llvm/Target/TargetLibraryInfo.h -JIT/HPP/llvm/Target/TargetLibraryInfo.h -llvm/Analysis/Passes.h -JIT/HPP/llvm/Analysis/Passes.h -llvm/Analysis/IVUsers.h -JIT/HPP/llvm/Analysis/IVUsers.h -llvm/Analysis/Lint.h -JIT/HPP/llvm/Analysis/Lint.h -llvm/Analysis/LoopPass.h -JIT/HPP/llvm/Analysis/LoopPass.h -llvm/Analysis/RegionPass.h -JIT/HPP/llvm/Analysis/RegionPass.h -llvm/Analysis/CFGPrinter.h -JIT/HPP/llvm/Analysis/CFGPrinter.h -llvm/Analysis/DomPrinter.h -JIT/HPP/llvm/Analysis/DomPrinter.h -llvm/Analysis/BranchProbabilityInfo.h -JIT/HPP/llvm/Analysis/BranchProbabilityInfo.h -llvm/Analysis/RegionPrinter.h -JIT/HPP/llvm/Analysis/RegionPrinter.h -llvm/Support/MemoryBuffer.h -JIT/HPP/llvm/Support/MemoryBuffer.h -llvm/Support/Process.h -JIT/HPP/llvm/Support/Process.h -llvm/Bitcode/ReaderWriter.h -JIT/HPP/llvm/Bitcode/ReaderWriter.h -llvm/Transforms/IPO.h -JIT/HPP/llvm/Transforms/IPO.h -llvm/Transforms/Scalar.h -JIT/HPP/llvm/Transforms/Scalar.h -llvm/Transforms/Vectorize.h -JIT/HPP/llvm/Transforms/Vectorize.h -llvm/Transforms/IPO/PassManagerBuilder.h -JIT/HPP/llvm/Transforms/IPO/PassManagerBuilder.h -llvm/Transforms/Utils/Cloning.h -JIT/HPP/llvm/Transforms/Utils/Cloning.h -llvm/Transforms/ObjCARC.h -JIT/HPP/llvm/Transforms/ObjCARC.h -llvm/Support/FileSystem.h -JIT/HPP/llvm/Support/FileSystem.h -llvm/Pass.h -JIT/HPP/llvm/Pass.h -errno.h -- -JIT.hpp -JIT/HPP/JIT.hpp - -JIT/HPP/Yap_AppliedBasicBlocks.h - -OPTYap/locks_alpha.h - -OPTYap/locks_mips.h - -OPTYap/locks_pthread.h -pthread.h -- -stdio.h -- - -OPTYap/locks_sparc.h - -OPTYap/locks_x86.h - -OPTYap/opt.config.h - -OPTYap/opt.macros.h -sys/shm.h -- - -OPTYap/opt.mavar.h - -OPTYap/opt.proto.h - -OPTYap/opt.structs.h -or.structs.h -OPTYap/or.structs.h -tab.structs.h -OPTYap/tab.structs.h - -OPTYap/or.sba_amiops.h - -OPTYap/or.sba_unify.h - -OPTYap/or.structs.h - -OPTYap/tab.macros.h -stdlib.h -- -string.h -- -opt.mavar.h -OPTYap/opt.mavar.h -or.macros.h -OPTYap/or.macros.h - -OPTYap/tab.structs.h - -YapConfig.h - -YapTermConfig.h - -config.h - -include/GitSHA1.h - -include/YapDefs.h -stdio.h -- -stdlib.h -- -setjmp.h -- -YapTerm.h -include/YapTerm.h -YapConfig.h -include/YapConfig.h -stdint.h -- -stdbool.h -- -YapError.h -include/YapError.h -threads.h -- - -include/YapError.h - -include/dswiatoms.h - -os/encoding.h - -os/iopreds.h -stdlib.h -- -Yap.h -os/Yap.h -Atoms.h -os/Atoms.h -windows.h -- -wchar.h -- -sys/types.h -- -sys/socket.h -- - diff --git a/OPTYap/CMakeFiles/libOPTYap.dir/DependInfo.cmake b/OPTYap/CMakeFiles/libOPTYap.dir/DependInfo.cmake deleted file mode 100644 index f67743b13..000000000 --- a/OPTYap/CMakeFiles/libOPTYap.dir/DependInfo.cmake +++ /dev/null @@ -1,50 +0,0 @@ -# The set of languages for which implicit dependencies are needed: -set(CMAKE_DEPENDS_LANGUAGES - "C" - ) -# The set of files for implicit dependencies of each language: -set(CMAKE_DEPENDS_CHECK_C - "/Users/vsc/git/yap-6.3/OPTYap/opt.init.c" "/Users/vsc/git/yap-6.3/OPTYap/CMakeFiles/libOPTYap.dir/opt.init.c.o" - "/Users/vsc/git/yap-6.3/OPTYap/opt.preds.c" "/Users/vsc/git/yap-6.3/OPTYap/CMakeFiles/libOPTYap.dir/opt.preds.c.o" - "/Users/vsc/git/yap-6.3/OPTYap/or.copy_engine.c" "/Users/vsc/git/yap-6.3/OPTYap/CMakeFiles/libOPTYap.dir/or.copy_engine.c.o" - "/Users/vsc/git/yap-6.3/OPTYap/or.cow_engine.c" "/Users/vsc/git/yap-6.3/OPTYap/CMakeFiles/libOPTYap.dir/or.cow_engine.c.o" - "/Users/vsc/git/yap-6.3/OPTYap/or.cut.c" "/Users/vsc/git/yap-6.3/OPTYap/CMakeFiles/libOPTYap.dir/or.cut.c.o" - "/Users/vsc/git/yap-6.3/OPTYap/or.memory.c" "/Users/vsc/git/yap-6.3/OPTYap/CMakeFiles/libOPTYap.dir/or.memory.c.o" - "/Users/vsc/git/yap-6.3/OPTYap/or.sba_engine.c" "/Users/vsc/git/yap-6.3/OPTYap/CMakeFiles/libOPTYap.dir/or.sba_engine.c.o" - "/Users/vsc/git/yap-6.3/OPTYap/or.scheduler.c" "/Users/vsc/git/yap-6.3/OPTYap/CMakeFiles/libOPTYap.dir/or.scheduler.c.o" - "/Users/vsc/git/yap-6.3/OPTYap/or.thread_engine.c" "/Users/vsc/git/yap-6.3/OPTYap/CMakeFiles/libOPTYap.dir/or.thread_engine.c.o" - "/Users/vsc/git/yap-6.3/OPTYap/tab.completion.c" "/Users/vsc/git/yap-6.3/OPTYap/CMakeFiles/libOPTYap.dir/tab.completion.c.o" - "/Users/vsc/git/yap-6.3/OPTYap/tab.tries.c" "/Users/vsc/git/yap-6.3/OPTYap/CMakeFiles/libOPTYap.dir/tab.tries.c.o" - ) -set(CMAKE_C_COMPILER_ID "Clang") - -# Preprocessor definitions for this target. -set(CMAKE_TARGET_DEFINITIONS_C - "COROUTINING=1" - "DEBUG=1" - "DEPTH_LIMIT=1" - "HAVE_CONFIG_H" - "LOW_LEVEL_TRACER=1" - "RATIONAL_TREES=1" - "TABLING=1" - "USE_THREADEAD_CODE=1" - "_YAP_NOT_INSTALLED_=1" - ) - -# The include file search paths: -set(CMAKE_C_TARGET_INCLUDE_PATH - "." - "H" - "include" - "os" - "JIT/HPP" - "/usr/local/include" - "OPTYap" - "OPTYap/../H" - "OPTYap/../include" - "OPTYap/." - ) - -# Targets to which this target links. -set(CMAKE_TARGET_LINKED_INFO_FILES - ) diff --git a/OPTYap/CMakeFiles/libOPTYap.dir/depend.internal b/OPTYap/CMakeFiles/libOPTYap.dir/depend.internal deleted file mode 100644 index ab08734c9..000000000 --- a/OPTYap/CMakeFiles/libOPTYap.dir/depend.internal +++ /dev/null @@ -1,832 +0,0 @@ -# CMAKE generated file: DO NOT EDIT! -# Generated by "Unix Makefiles" Generator, CMake Version 3.3 - -OPTYap/CMakeFiles/libOPTYap.dir/opt.init.c.o - /Users/vsc/git/yap-6.3/OPTYap/opt.init.c - /Users/vsc/git/yap-6.3/OPTYap/opt.mavar.h - /Users/vsc/git/yap-6.3/OPTYap/or.macros.h - /Users/vsc/git/yap-6.3/OPTYap/tab.macros.h - /usr/local/include/gmp.h - /usr/local/include/gmpxx.h - H/Atoms.h - H/Regs.h - H/ScannerTypes.h - H/Tags_24bits.h - H/Tags_32LowTag.h - H/Tags_32Ops.h - H/Tags_32bits.h - H/Tags_64bits.h - H/TermExt.h - H/Yap.h - H/YapAppliedOpcodes.h - H/YapCompoundTerm.h - H/YapFlags.h - H/YapGFlagInfo.h - H/YapHandles.h - H/YapHeap.h - H/YapLFlagInfo.h - H/YapOpcodes.h - H/YapSignals.h - H/YapTags.h - H/YapTerm.h - H/Yapproto.h - H/Yatom.h - H/absmi.h - H/amidefs.h - H/amijit.h - H/amiops.h - H/arrays.h - H/clause.h - H/corout.h - H/cut_c.h - H/dglobals.h - H/dhstruct.h - H/dlocals.h - H/eval.h - H/hglobals.h - H/hlocals.h - H/hstruct.h - H/inline-only.h - H/nolocks.h - H/tatoms.h - H/threads.h - H/tracer.h - H/trim_trail.h - JIT/HPP/JIT.hpp - JIT/HPP/JIT_Compiler.hpp - JIT/HPP/Yap_AppliedBasicBlocks.h - OPTYap/locks_alpha.h - OPTYap/locks_mips.h - OPTYap/locks_pthread.h - OPTYap/locks_sparc.h - OPTYap/locks_x86.h - OPTYap/opt.config.h - OPTYap/opt.macros.h - OPTYap/opt.proto.h - OPTYap/opt.structs.h - OPTYap/or.sba_amiops.h - OPTYap/or.sba_unify.h - OPTYap/or.structs.h - OPTYap/tab.structs.h - YapConfig.h - YapTermConfig.h - config.h - include/GitSHA1.h - include/YapDefs.h - include/YapError.h - include/dswiatoms.h - os/encoding.h -OPTYap/CMakeFiles/libOPTYap.dir/opt.preds.c.o - /Users/vsc/git/yap-6.3/OPTYap/opt.mavar.h - /Users/vsc/git/yap-6.3/OPTYap/opt.preds.c - /Users/vsc/git/yap-6.3/OPTYap/or.macros.h - /Users/vsc/git/yap-6.3/OPTYap/tab.macros.h - /usr/local/include/gmp.h - /usr/local/include/gmpxx.h - H/Atoms.h - H/Regs.h - H/ScannerTypes.h - H/Tags_24bits.h - H/Tags_32LowTag.h - H/Tags_32Ops.h - H/Tags_32bits.h - H/Tags_64bits.h - H/TermExt.h - H/Yap.h - H/YapAppliedOpcodes.h - H/YapCompoundTerm.h - H/YapFlags.h - H/YapGFlagInfo.h - H/YapHandles.h - H/YapHeap.h - H/YapLFlagInfo.h - H/YapOpcodes.h - H/YapSignals.h - H/YapTags.h - H/YapTerm.h - H/Yapproto.h - H/Yatom.h - H/absmi.h - H/amidefs.h - H/amijit.h - H/amiops.h - H/arrays.h - H/clause.h - H/corout.h - H/cut_c.h - H/dglobals.h - H/dhstruct.h - H/dlocals.h - H/eval.h - H/hglobals.h - H/hlocals.h - H/hstruct.h - H/inline-only.h - H/nolocks.h - H/tatoms.h - H/threads.h - H/tracer.h - H/trim_trail.h - JIT/HPP/JIT.hpp - JIT/HPP/JIT_Compiler.hpp - JIT/HPP/Yap_AppliedBasicBlocks.h - OPTYap/locks_alpha.h - OPTYap/locks_mips.h - OPTYap/locks_pthread.h - OPTYap/locks_sparc.h - OPTYap/locks_x86.h - OPTYap/opt.config.h - OPTYap/opt.macros.h - OPTYap/opt.proto.h - OPTYap/opt.structs.h - OPTYap/or.sba_amiops.h - OPTYap/or.sba_unify.h - OPTYap/or.structs.h - OPTYap/tab.structs.h - YapConfig.h - YapTermConfig.h - config.h - include/GitSHA1.h - include/YapDefs.h - include/YapError.h - include/dswiatoms.h - os/encoding.h - os/iopreds.h -OPTYap/CMakeFiles/libOPTYap.dir/or.copy_engine.c.o - /Users/vsc/git/yap-6.3/OPTYap/opt.mavar.h - /Users/vsc/git/yap-6.3/OPTYap/or.copy_engine.c - /Users/vsc/git/yap-6.3/OPTYap/or.macros.h - /Users/vsc/git/yap-6.3/OPTYap/tab.macros.h - /usr/local/include/gmp.h - /usr/local/include/gmpxx.h - H/Atoms.h - H/Regs.h - H/ScannerTypes.h - H/Tags_24bits.h - H/Tags_32LowTag.h - H/Tags_32Ops.h - H/Tags_32bits.h - H/Tags_64bits.h - H/TermExt.h - H/Yap.h - H/YapAppliedOpcodes.h - H/YapCompoundTerm.h - H/YapFlags.h - H/YapGFlagInfo.h - H/YapHandles.h - H/YapHeap.h - H/YapLFlagInfo.h - H/YapOpcodes.h - H/YapSignals.h - H/YapTags.h - H/YapTerm.h - H/Yapproto.h - H/Yatom.h - H/absmi.h - H/amidefs.h - H/amijit.h - H/amiops.h - H/arrays.h - H/clause.h - H/corout.h - H/cut_c.h - H/dglobals.h - H/dhstruct.h - H/dlocals.h - H/eval.h - H/hglobals.h - H/hlocals.h - H/hstruct.h - H/inline-only.h - H/nolocks.h - H/tatoms.h - H/threads.h - H/tracer.h - H/trim_trail.h - JIT/HPP/JIT.hpp - JIT/HPP/JIT_Compiler.hpp - JIT/HPP/Yap_AppliedBasicBlocks.h - OPTYap/locks_alpha.h - OPTYap/locks_mips.h - OPTYap/locks_pthread.h - OPTYap/locks_sparc.h - OPTYap/locks_x86.h - OPTYap/opt.config.h - OPTYap/opt.macros.h - OPTYap/opt.proto.h - OPTYap/opt.structs.h - OPTYap/or.sba_amiops.h - OPTYap/or.sba_unify.h - OPTYap/or.structs.h - OPTYap/tab.structs.h - YapConfig.h - YapTermConfig.h - config.h - include/GitSHA1.h - include/YapDefs.h - include/YapError.h - include/dswiatoms.h - os/encoding.h -OPTYap/CMakeFiles/libOPTYap.dir/or.cow_engine.c.o - /Users/vsc/git/yap-6.3/OPTYap/or.cow_engine.c - /Users/vsc/git/yap-6.3/OPTYap/or.macros.h - /usr/local/include/gmp.h - /usr/local/include/gmpxx.h - H/Atoms.h - H/Regs.h - H/ScannerTypes.h - H/Tags_24bits.h - H/Tags_32LowTag.h - H/Tags_32Ops.h - H/Tags_32bits.h - H/Tags_64bits.h - H/TermExt.h - H/Yap.h - H/YapAppliedOpcodes.h - H/YapCompoundTerm.h - H/YapFlags.h - H/YapGFlagInfo.h - H/YapHandles.h - H/YapHeap.h - H/YapLFlagInfo.h - H/YapOpcodes.h - H/YapSignals.h - H/YapTags.h - H/YapTerm.h - H/Yapproto.h - H/Yatom.h - H/absmi.h - H/amidefs.h - H/amijit.h - H/amiops.h - H/arrays.h - H/clause.h - H/corout.h - H/cut_c.h - H/dglobals.h - H/dhstruct.h - H/dlocals.h - H/eval.h - H/hglobals.h - H/hlocals.h - H/hstruct.h - H/inline-only.h - H/nolocks.h - H/tatoms.h - H/threads.h - H/tracer.h - H/trim_trail.h - JIT/HPP/JIT.hpp - JIT/HPP/JIT_Compiler.hpp - JIT/HPP/Yap_AppliedBasicBlocks.h - OPTYap/locks_alpha.h - OPTYap/locks_mips.h - OPTYap/locks_pthread.h - OPTYap/locks_sparc.h - OPTYap/locks_x86.h - OPTYap/opt.config.h - OPTYap/opt.macros.h - OPTYap/opt.mavar.h - OPTYap/opt.proto.h - OPTYap/opt.structs.h - OPTYap/or.sba_amiops.h - OPTYap/or.sba_unify.h - OPTYap/or.structs.h - OPTYap/tab.macros.h - OPTYap/tab.structs.h - YapConfig.h - YapTermConfig.h - config.h - include/GitSHA1.h - include/YapDefs.h - include/YapError.h - include/dswiatoms.h - os/encoding.h -OPTYap/CMakeFiles/libOPTYap.dir/or.cut.c.o - /Users/vsc/git/yap-6.3/OPTYap/opt.mavar.h - /Users/vsc/git/yap-6.3/OPTYap/or.cut.c - /Users/vsc/git/yap-6.3/OPTYap/or.macros.h - /Users/vsc/git/yap-6.3/OPTYap/tab.macros.h - /usr/local/include/gmp.h - /usr/local/include/gmpxx.h - H/Atoms.h - H/Regs.h - H/ScannerTypes.h - H/Tags_24bits.h - H/Tags_32LowTag.h - H/Tags_32Ops.h - H/Tags_32bits.h - H/Tags_64bits.h - H/TermExt.h - H/Yap.h - H/YapAppliedOpcodes.h - H/YapCompoundTerm.h - H/YapFlags.h - H/YapGFlagInfo.h - H/YapHandles.h - H/YapHeap.h - H/YapLFlagInfo.h - H/YapOpcodes.h - H/YapSignals.h - H/YapTags.h - H/YapTerm.h - H/Yapproto.h - H/Yatom.h - H/absmi.h - H/amidefs.h - H/amijit.h - H/amiops.h - H/arrays.h - H/clause.h - H/corout.h - H/cut_c.h - H/dglobals.h - H/dhstruct.h - H/dlocals.h - H/eval.h - H/hglobals.h - H/hlocals.h - H/hstruct.h - H/inline-only.h - H/nolocks.h - H/tatoms.h - H/threads.h - H/tracer.h - H/trim_trail.h - JIT/HPP/JIT.hpp - JIT/HPP/JIT_Compiler.hpp - JIT/HPP/Yap_AppliedBasicBlocks.h - OPTYap/locks_alpha.h - OPTYap/locks_mips.h - OPTYap/locks_pthread.h - OPTYap/locks_sparc.h - OPTYap/locks_x86.h - OPTYap/opt.config.h - OPTYap/opt.macros.h - OPTYap/opt.proto.h - OPTYap/opt.structs.h - OPTYap/or.sba_amiops.h - OPTYap/or.sba_unify.h - OPTYap/or.structs.h - OPTYap/tab.structs.h - YapConfig.h - YapTermConfig.h - config.h - include/GitSHA1.h - include/YapDefs.h - include/YapError.h - include/dswiatoms.h - os/encoding.h -OPTYap/CMakeFiles/libOPTYap.dir/or.memory.c.o - /Users/vsc/git/yap-6.3/OPTYap/or.macros.h - /Users/vsc/git/yap-6.3/OPTYap/or.memory.c - /usr/local/include/gmp.h - /usr/local/include/gmpxx.h - H/Atoms.h - H/Regs.h - H/ScannerTypes.h - H/Tags_24bits.h - H/Tags_32LowTag.h - H/Tags_32Ops.h - H/Tags_32bits.h - H/Tags_64bits.h - H/TermExt.h - H/Yap.h - H/YapAppliedOpcodes.h - H/YapCompoundTerm.h - H/YapFlags.h - H/YapGFlagInfo.h - H/YapHandles.h - H/YapHeap.h - H/YapLFlagInfo.h - H/YapOpcodes.h - H/YapSignals.h - H/YapTags.h - H/YapTerm.h - H/Yapproto.h - H/Yatom.h - H/absmi.h - H/alloc.h - H/amidefs.h - H/amijit.h - H/amiops.h - H/arrays.h - H/clause.h - H/corout.h - H/cut_c.h - H/dglobals.h - H/dhstruct.h - H/dlocals.h - H/eval.h - H/hglobals.h - H/hlocals.h - H/hstruct.h - H/inline-only.h - H/nolocks.h - H/tatoms.h - H/threads.h - H/tracer.h - H/trim_trail.h - JIT/HPP/JIT.hpp - JIT/HPP/JIT_Compiler.hpp - JIT/HPP/Yap_AppliedBasicBlocks.h - OPTYap/locks_alpha.h - OPTYap/locks_mips.h - OPTYap/locks_pthread.h - OPTYap/locks_sparc.h - OPTYap/locks_x86.h - OPTYap/opt.config.h - OPTYap/opt.macros.h - OPTYap/opt.mavar.h - OPTYap/opt.proto.h - OPTYap/opt.structs.h - OPTYap/or.sba_amiops.h - OPTYap/or.sba_unify.h - OPTYap/or.structs.h - OPTYap/tab.macros.h - OPTYap/tab.structs.h - YapConfig.h - YapTermConfig.h - config.h - include/GitSHA1.h - include/YapDefs.h - include/YapError.h - include/dswiatoms.h - os/encoding.h -OPTYap/CMakeFiles/libOPTYap.dir/or.sba_engine.c.o - /Users/vsc/git/yap-6.3/OPTYap/opt.mavar.h - /Users/vsc/git/yap-6.3/OPTYap/or.macros.h - /Users/vsc/git/yap-6.3/OPTYap/or.sba_engine.c - /usr/local/include/gmp.h - /usr/local/include/gmpxx.h - H/Atoms.h - H/Regs.h - H/ScannerTypes.h - H/Tags_24bits.h - H/Tags_32LowTag.h - H/Tags_32Ops.h - H/Tags_32bits.h - H/Tags_64bits.h - H/TermExt.h - H/Yap.h - H/YapAppliedOpcodes.h - H/YapCompoundTerm.h - H/YapFlags.h - H/YapGFlagInfo.h - H/YapHandles.h - H/YapHeap.h - H/YapLFlagInfo.h - H/YapOpcodes.h - H/YapSignals.h - H/YapTags.h - H/YapTerm.h - H/Yapproto.h - H/Yatom.h - H/absmi.h - H/amidefs.h - H/amijit.h - H/amiops.h - H/arrays.h - H/clause.h - H/corout.h - H/cut_c.h - H/dglobals.h - H/dhstruct.h - H/dlocals.h - H/eval.h - H/hglobals.h - H/hlocals.h - H/hstruct.h - H/inline-only.h - H/nolocks.h - H/tatoms.h - H/threads.h - H/tracer.h - H/trim_trail.h - JIT/HPP/JIT.hpp - JIT/HPP/JIT_Compiler.hpp - JIT/HPP/Yap_AppliedBasicBlocks.h - OPTYap/locks_alpha.h - OPTYap/locks_mips.h - OPTYap/locks_pthread.h - OPTYap/locks_sparc.h - OPTYap/locks_x86.h - OPTYap/opt.config.h - OPTYap/opt.macros.h - OPTYap/opt.proto.h - OPTYap/opt.structs.h - OPTYap/or.sba_amiops.h - OPTYap/or.sba_unify.h - OPTYap/or.structs.h - OPTYap/tab.macros.h - OPTYap/tab.structs.h - YapConfig.h - YapTermConfig.h - config.h - include/GitSHA1.h - include/YapDefs.h - include/YapError.h - include/dswiatoms.h - os/encoding.h -OPTYap/CMakeFiles/libOPTYap.dir/or.scheduler.c.o - /Users/vsc/git/yap-6.3/OPTYap/opt.mavar.h - /Users/vsc/git/yap-6.3/OPTYap/or.macros.h - /Users/vsc/git/yap-6.3/OPTYap/or.scheduler.c - /Users/vsc/git/yap-6.3/OPTYap/tab.macros.h - /usr/local/include/gmp.h - /usr/local/include/gmpxx.h - H/Atoms.h - H/Regs.h - H/ScannerTypes.h - H/Tags_24bits.h - H/Tags_32LowTag.h - H/Tags_32Ops.h - H/Tags_32bits.h - H/Tags_64bits.h - H/TermExt.h - H/Yap.h - H/YapAppliedOpcodes.h - H/YapCompoundTerm.h - H/YapFlags.h - H/YapGFlagInfo.h - H/YapHandles.h - H/YapHeap.h - H/YapLFlagInfo.h - H/YapOpcodes.h - H/YapSignals.h - H/YapTags.h - H/YapTerm.h - H/Yapproto.h - H/Yatom.h - H/absmi.h - H/amidefs.h - H/amijit.h - H/amiops.h - H/arrays.h - H/clause.h - H/corout.h - H/cut_c.h - H/dglobals.h - H/dhstruct.h - H/dlocals.h - H/eval.h - H/hglobals.h - H/hlocals.h - H/hstruct.h - H/inline-only.h - H/nolocks.h - H/tatoms.h - H/threads.h - H/tracer.h - H/trim_trail.h - JIT/HPP/JIT.hpp - JIT/HPP/JIT_Compiler.hpp - JIT/HPP/Yap_AppliedBasicBlocks.h - OPTYap/locks_alpha.h - OPTYap/locks_mips.h - OPTYap/locks_pthread.h - OPTYap/locks_sparc.h - OPTYap/locks_x86.h - OPTYap/opt.config.h - OPTYap/opt.macros.h - OPTYap/opt.proto.h - OPTYap/opt.structs.h - OPTYap/or.sba_amiops.h - OPTYap/or.sba_unify.h - OPTYap/or.structs.h - OPTYap/tab.structs.h - YapConfig.h - YapTermConfig.h - config.h - include/GitSHA1.h - include/YapDefs.h - include/YapError.h - include/dswiatoms.h - os/encoding.h -OPTYap/CMakeFiles/libOPTYap.dir/or.thread_engine.c.o - /Users/vsc/git/yap-6.3/OPTYap/opt.mavar.h - /Users/vsc/git/yap-6.3/OPTYap/or.macros.h - /Users/vsc/git/yap-6.3/OPTYap/or.thread_engine.c - /Users/vsc/git/yap-6.3/OPTYap/tab.macros.h - /usr/local/include/gmp.h - /usr/local/include/gmpxx.h - H/Atoms.h - H/Regs.h - H/ScannerTypes.h - H/Tags_24bits.h - H/Tags_32LowTag.h - H/Tags_32Ops.h - H/Tags_32bits.h - H/Tags_64bits.h - H/TermExt.h - H/Yap.h - H/YapAppliedOpcodes.h - H/YapCompoundTerm.h - H/YapFlags.h - H/YapGFlagInfo.h - H/YapHandles.h - H/YapHeap.h - H/YapLFlagInfo.h - H/YapOpcodes.h - H/YapSignals.h - H/YapTags.h - H/YapTerm.h - H/Yapproto.h - H/Yatom.h - H/absmi.h - H/amidefs.h - H/amijit.h - H/amiops.h - H/arrays.h - H/clause.h - H/corout.h - H/cut_c.h - H/dglobals.h - H/dhstruct.h - H/dlocals.h - H/eval.h - H/hglobals.h - H/hlocals.h - H/hstruct.h - H/inline-only.h - H/nolocks.h - H/tatoms.h - H/threads.h - H/tracer.h - H/trim_trail.h - JIT/HPP/JIT.hpp - JIT/HPP/JIT_Compiler.hpp - JIT/HPP/Yap_AppliedBasicBlocks.h - OPTYap/locks_alpha.h - OPTYap/locks_mips.h - OPTYap/locks_pthread.h - OPTYap/locks_sparc.h - OPTYap/locks_x86.h - OPTYap/opt.config.h - OPTYap/opt.macros.h - OPTYap/opt.proto.h - OPTYap/opt.structs.h - OPTYap/or.sba_amiops.h - OPTYap/or.sba_unify.h - OPTYap/or.structs.h - OPTYap/tab.structs.h - YapConfig.h - YapTermConfig.h - config.h - include/GitSHA1.h - include/YapDefs.h - include/YapError.h - include/dswiatoms.h - os/encoding.h -OPTYap/CMakeFiles/libOPTYap.dir/tab.completion.c.o - /Users/vsc/git/yap-6.3/OPTYap/opt.mavar.h - /Users/vsc/git/yap-6.3/OPTYap/or.macros.h - /Users/vsc/git/yap-6.3/OPTYap/tab.completion.c - /Users/vsc/git/yap-6.3/OPTYap/tab.macros.h - /usr/local/include/gmp.h - /usr/local/include/gmpxx.h - H/Atoms.h - H/Regs.h - H/ScannerTypes.h - H/Tags_24bits.h - H/Tags_32LowTag.h - H/Tags_32Ops.h - H/Tags_32bits.h - H/Tags_64bits.h - H/TermExt.h - H/Yap.h - H/YapAppliedOpcodes.h - H/YapCompoundTerm.h - H/YapFlags.h - H/YapGFlagInfo.h - H/YapHandles.h - H/YapHeap.h - H/YapLFlagInfo.h - H/YapOpcodes.h - H/YapSignals.h - H/YapTags.h - H/YapTerm.h - H/Yapproto.h - H/Yatom.h - H/absmi.h - H/amidefs.h - H/amijit.h - H/amiops.h - H/arrays.h - H/clause.h - H/corout.h - H/cut_c.h - H/dglobals.h - H/dhstruct.h - H/dlocals.h - H/eval.h - H/hglobals.h - H/hlocals.h - H/hstruct.h - H/inline-only.h - H/nolocks.h - H/tatoms.h - H/threads.h - H/tracer.h - H/trim_trail.h - JIT/HPP/JIT.hpp - JIT/HPP/JIT_Compiler.hpp - JIT/HPP/Yap_AppliedBasicBlocks.h - OPTYap/locks_alpha.h - OPTYap/locks_mips.h - OPTYap/locks_pthread.h - OPTYap/locks_sparc.h - OPTYap/locks_x86.h - OPTYap/opt.config.h - OPTYap/opt.macros.h - OPTYap/opt.proto.h - OPTYap/opt.structs.h - OPTYap/or.sba_amiops.h - OPTYap/or.sba_unify.h - OPTYap/or.structs.h - OPTYap/tab.structs.h - YapConfig.h - YapTermConfig.h - config.h - include/GitSHA1.h - include/YapDefs.h - include/YapError.h - include/dswiatoms.h - os/encoding.h -OPTYap/CMakeFiles/libOPTYap.dir/tab.tries.c.o - /Users/vsc/git/yap-6.3/OPTYap/opt.mavar.h - /Users/vsc/git/yap-6.3/OPTYap/or.macros.h - /Users/vsc/git/yap-6.3/OPTYap/tab.macros.h - /Users/vsc/git/yap-6.3/OPTYap/tab.rational.h - /Users/vsc/git/yap-6.3/OPTYap/tab.tries.c - /Users/vsc/git/yap-6.3/OPTYap/tab.tries.h - /usr/local/include/gmp.h - /usr/local/include/gmpxx.h - H/Atoms.h - H/Regs.h - H/ScannerTypes.h - H/Tags_24bits.h - H/Tags_32LowTag.h - H/Tags_32Ops.h - H/Tags_32bits.h - H/Tags_64bits.h - H/TermExt.h - H/Yap.h - H/YapAppliedOpcodes.h - H/YapCompoundTerm.h - H/YapFlags.h - H/YapGFlagInfo.h - H/YapHandles.h - H/YapHeap.h - H/YapLFlagInfo.h - H/YapOpcodes.h - H/YapSignals.h - H/YapTags.h - H/YapTerm.h - H/Yapproto.h - H/Yatom.h - H/absmi.h - H/amidefs.h - H/amijit.h - H/amiops.h - H/arrays.h - H/clause.h - H/corout.h - H/cut_c.h - H/dglobals.h - H/dhstruct.h - H/dlocals.h - H/eval.h - H/hglobals.h - H/hlocals.h - H/hstruct.h - H/inline-only.h - H/nolocks.h - H/tatoms.h - H/threads.h - H/tracer.h - H/trim_trail.h - JIT/HPP/JIT.hpp - JIT/HPP/JIT_Compiler.hpp - JIT/HPP/Yap_AppliedBasicBlocks.h - OPTYap/locks_alpha.h - OPTYap/locks_mips.h - OPTYap/locks_pthread.h - OPTYap/locks_sparc.h - OPTYap/locks_x86.h - OPTYap/opt.config.h - OPTYap/opt.macros.h - OPTYap/opt.proto.h - OPTYap/opt.structs.h - OPTYap/or.sba_amiops.h - OPTYap/or.sba_unify.h - OPTYap/or.structs.h - OPTYap/tab.structs.h - YapConfig.h - YapTermConfig.h - config.h - include/GitSHA1.h - include/YapDefs.h - include/YapError.h - include/dswiatoms.h - os/encoding.h diff --git a/OPTYap/CMakeFiles/progress.marks b/OPTYap/CMakeFiles/progress.marks deleted file mode 100644 index 7ed6ff82d..000000000 --- a/OPTYap/CMakeFiles/progress.marks +++ /dev/null @@ -1 +0,0 @@ -5 diff --git a/commands b/commands deleted file mode 100644 index 2af9edfc5..000000000 --- a/commands +++ /dev/null @@ -1,15412 +0,0 @@ -#false -cat << "EOF" > tmp -/** @pred wam_profiler_show_ops_by_group(+ _A_) - - -Display the current value for the counters, organized by groups, using -label _A_. The label must be an atom. - - - - - */ -EOF -sed -e "872r tmp" /Users/vsc/git/yap-6.3/C/analyst.c > x - mv x /Users/vsc/git/yap-6.3/C/analyst.c - -#false -cat << "EOF" > tmp -/** @pred wam_profiler_show_op_counters(+ _A_) - - -Display the current value for the counters, using label _A_. The -label must be an atom. - - -*/ -EOF -sed -e "863r tmp" /Users/vsc/git/yap-6.3/C/analyst.c > x - mv x /Users/vsc/git/yap-6.3/C/analyst.c - -#false -cat << "EOF" > tmp -/** @pred wam_profiler_reset_op_counters - - -Reinitialize all counters. - - -*/ -EOF -sed -e "855r tmp" /Users/vsc/git/yap-6.3/C/analyst.c > x - mv x /Users/vsc/git/yap-6.3/C/analyst.c - -#false -cat << "EOF" > tmp -/** @pred static_array_location(+ _Name_, - _Ptr_) - - -Give the location for a static array with name - _Name_. - - -*/ -EOF -sed -e "2653r tmp" /Users/vsc/git/yap-6.3/C/arrays.c > x - mv x /Users/vsc/git/yap-6.3/C/arrays.c - -#false -cat << "EOF" > tmp -/** @pred static_array_to_term(? _Name_, ? _Term_) - - -Convert a static array with name - _Name_ to a compound term of name _Name_. - -This built-in will silently fail if the there is no static array with -that name. - - -*/ -EOF -sed -e "2641r tmp" /Users/vsc/git/yap-6.3/C/arrays.c > x - mv x /Users/vsc/git/yap-6.3/C/arrays.c - -#false -cat << "EOF" > tmp -/** @pred close_static_array(+ _Name_) - - -Close an existing static array of name _Name_. The _Name_ must -be an atom (named array). Space for the array will be recovered and -further accesses to the array will return an error. - - -*/ -EOF -sed -e "2627r tmp" /Users/vsc/git/yap-6.3/C/arrays.c > x - mv x /Users/vsc/git/yap-6.3/C/arrays.c - -#false -cat << "EOF" > tmp -/** @pred reset_static_array(+ _Name_) - - -Reset static array with name _Name_ to its initial value. - - -*/ -EOF -sed -e "2619r tmp" /Users/vsc/git/yap-6.3/C/arrays.c > x - mv x /Users/vsc/git/yap-6.3/C/arrays.c - -#false -cat << "EOF" > tmp -/** @pred array_element(+ _Name_, + _Index_, ? _Element_) - - -Unify _Element_ with _Name_[ _Index_]. It works for both -static and dynamic arrays, but it is read-only for static arrays, while -it can be used to unify with an element of a dynamic array. - - -*/ -EOF -sed -e "2609r tmp" /Users/vsc/git/yap-6.3/C/arrays.c > x - mv x /Users/vsc/git/yap-6.3/C/arrays.c - -#false -cat << "EOF" > tmp -/** @pred add_to_array_element(+ _Name_, + _Index_, + _Number_, ? _NewValue_) - - -Add _Number_ _Name_[ _Index_] and unify _NewValue_ with -the incremented value. Observe that _Name_[ _Index_] must be an -number. If _Name_ is a static array the type of the array must be -`int` or `float`. If the type of the array is `int` you -only may add integers, if it is `float` you may add integers or -floats. If _Name_ corresponds to a dynamic array the array element -must have been previously bound to a number and `Number` can be -any kind of number. - -The `add_to_array_element/3` built-in actually uses -`setarg/3` to update elements of dynamic arrays. For intensive -operations we suggest it may be less expensive to unify each element -of the array with a mutable terms and to use the operations on mutable -terms. - - - - - */ -EOF -sed -e "2586r tmp" /Users/vsc/git/yap-6.3/C/arrays.c > x - mv x /Users/vsc/git/yap-6.3/C/arrays.c - -#false -cat << "EOF" > tmp -/** @pred update_array(+ _Name_, + _Index_, ? _Value_) - - -Attribute value _Value_ to _Name_[ _Index_]. Type -restrictions must be respected for static arrays. This operation is -available for dynamic arrays if `MULTI_ASSIGNMENT_VARIABLES` is -enabled (true by default). Backtracking undoes _update_array/3_ for -dynamic arrays, but not for static arrays. - -Note that update_array/3 actually uses `setarg/3` to update -elements of dynamic arrays, and `setarg/3` spends an extra cell for -every update. For intensive operations we suggest it may be less -expensive to unify each element of the array with a mutable terms and -to use the operations on mutable terms. - - -*/ -EOF -sed -e "2567r tmp" /Users/vsc/git/yap-6.3/C/arrays.c > x - mv x /Users/vsc/git/yap-6.3/C/arrays.c - -#false -cat << "EOF" > tmp -/** @pred mmapped_array(+ _Name_, + _Size_, + _Type_, + _File_) - - -Similar to static_array/3, but the array is memory mapped to file - _File_. This means that the array is initialized from the file, and -that any changes to the array will also be stored in the file. - -This built-in is only available in operating systems that support the -system call `mmap`. Moreover, mmapped arrays do not store generic -terms (type `term`). - - -*/ -EOF -sed -e "2553r tmp" /Users/vsc/git/yap-6.3/C/arrays.c > x - mv x /Users/vsc/git/yap-6.3/C/arrays.c - -#false -cat << "EOF" > tmp -/** @pred resize_static_array(+ _Name_, - _OldSize_, + _NewSize_) - - -Expand or reduce a static array, The _Size_ must evaluate to an -integer. The _Name_ must be an atom (named array). The _Type_ -must be bound to one of `int`, `dbref`, `float` or -`atom`. - -Note that if the array is a mmapped array the size of the mmapped file -will be actually adjusted to correspond to the size of the array. - - -*/ -EOF -sed -e "2539r tmp" /Users/vsc/git/yap-6.3/C/arrays.c > x - mv x /Users/vsc/git/yap-6.3/C/arrays.c - -#false -cat << "EOF" > tmp -/** @pred static_array(+ _Name_, + _Size_, + _Type_) - - -Create a new static array with name _Name_. Note that the _Name_ -must be an atom (named array). The _Size_ must evaluate to an -integer. The _Type_ must be bound to one of types mentioned -previously. - - -*/ -EOF -sed -e "2528r tmp" /Users/vsc/git/yap-6.3/C/arrays.c > x - mv x /Users/vsc/git/yap-6.3/C/arrays.c - -#false -cat << "EOF" > tmp -/** @pred atomic_concat(+ _As_,? _A_) - - -The predicate holds when the first argument is a list of atomic terms, and -the second unifies with the atom obtained by concatenating all the -atomic terms in the first list. The first argument thus may contain -atoms or numbers. - - -*/ -EOF -sed -e "2226r tmp" /Users/vsc/git/yap-6.3/C/atomic.c > x - mv x /Users/vsc/git/yap-6.3/C/atomic.c - -#false -cat << "EOF" > tmp -/** @pred atom_number(? _Atom_,? _Number_) - - -The predicate holds when at least one of the arguments is ground -(otherwise, an error message will be displayed). If the argument - _Atom_ is an atom, _Number_ must be the number corresponding -to the characters in _Atom_, otherwise the characters in - _Atom_ must encode a number _Number_. - - -*/ -EOF -sed -e "2211r tmp" /Users/vsc/git/yap-6.3/C/atomic.c > x - mv x /Users/vsc/git/yap-6.3/C/atomic.c - -#false -cat << "EOF" > tmp -/** @pred number_atom(? _I_,? _L_) - - - -The predicate holds when at least one of the arguments is ground -(otherwise, an error message will be displayed). The argument _I_ must -be unifiable with a number, and the argument _L_ must be unifiable -with an atom representing the number. - - -*/ -EOF -sed -e "2197r tmp" /Users/vsc/git/yap-6.3/C/atomic.c > x - mv x /Users/vsc/git/yap-6.3/C/atomic.c - -#false -cat << "EOF" > tmp -/** @pred number_chars(? _I_,? _L_) is iso - -The predicate holds when at least one of the arguments is ground -(otherwise, an error message will be displayed). The argument _I_ must -be unifiable with a number, and the argument _L_ with the list of the -characters of the external representation of _I_. - - -*/ -EOF -sed -e "2187r tmp" /Users/vsc/git/yap-6.3/C/atomic.c > x - mv x /Users/vsc/git/yap-6.3/C/atomic.c - -#false -cat << "EOF" > tmp -/** @pred atom_length(+ _A_,? _I_) is iso - - -The predicate holds when the first argument is an atom, and the second -unifies with the number of characters forming that atom. - - -*/ -EOF -sed -e "2175r tmp" /Users/vsc/git/yap-6.3/C/atomic.c > x - mv x /Users/vsc/git/yap-6.3/C/atomic.c - -#false -cat << "EOF" > tmp -/** @pred atom_chars(? _A_,? _L_) is iso - - -The predicate holds when at least one of the arguments is ground -(otherwise, an error message will be displayed). The argument _A_ must -be unifiable with an atom, and the argument _L_ with the list of the -characters of _A_. - - -*/ -EOF -sed -e "2161r tmp" /Users/vsc/git/yap-6.3/C/atomic.c > x - mv x /Users/vsc/git/yap-6.3/C/atomic.c - -#false -cat << "EOF" > tmp -/** @pred char_code(? _A_,? _I_) is iso - - -The built-in succeeds with _A_ bound to character represented as an -atom, and _I_ bound to the character code represented as an -integer. At least, one of either _A_ or _I_ must be bound before -the call. - - -*/ -EOF -sed -e "2150r tmp" /Users/vsc/git/yap-6.3/C/atomic.c > x - mv x /Users/vsc/git/yap-6.3/C/atomic.c - -#false -cat << "EOF" > tmp -/** @pred name( _A_, _L_) - - -The predicate holds when at least one of the arguments is ground -(otherwise, an error message will be displayed). The argument _A_ will -be unified with an atomic symbol and _L_ with the list of the ASCII -codes for the characters of the external representation of _A_. - -~~~~~{.prolog} - name(yap,L). -~~~~~ -will return: - -~~~~~{.prolog} - L = [121,97,112]. -~~~~~ -and - -~~~~~{.prolog} - name(3,L). -~~~~~ -will return: - -~~~~~{.prolog} - L = [51]. -~~~~~ - - -*/ -EOF -sed -e "2116r tmp" /Users/vsc/git/yap-6.3/C/atomic.c > x - mv x /Users/vsc/git/yap-6.3/C/atomic.c - -#false -cat << "EOF" > tmp -/** @pred sub_atom(+ _A_,? _Bef_, ? _Size_, ? _After_, ? _At_out_) is iso - - -True when _A_ and _At_out_ are atoms such that the name of - _At_out_ has size _Size_ and is a sub-string of the name of - _A_, such that _Bef_ is the number of characters before and - _After_ the number of characters afterwards. - -Note that _A_ must always be known, but _At_out_ can be unbound when -calling this built-in. If all the arguments for sub_atom/5 but _A_ -are unbound, the built-in will backtrack through all possible -sub-strings of _A_. - - - - - */ -EOF -sed -e "2090r tmp" /Users/vsc/git/yap-6.3/C/atomic.c > x - mv x /Users/vsc/git/yap-6.3/C/atomic.c - -#false -cat << "EOF" > tmp -/** @pred attvar( _-Var_) - - -Succeed if _Var_ is an attributed variable. - - - - */ -EOF -sed -e "1106r tmp" /Users/vsc/git/yap-6.3/C/attvar.c > x - mv x /Users/vsc/git/yap-6.3/C/attvar.c - -#false -cat << "EOF" > tmp -/** @pred rational( _T_) - - -Checks whether `T` is a rational number. - - -*/ -EOF -sed -e "566r tmp" /Users/vsc/git/yap-6.3/C/bignum.c > x - mv x /Users/vsc/git/yap-6.3/C/bignum.c - -#false -cat << "EOF" > tmp -/** @pred compare( _C_, _X_, _Y_) is iso - - -As a result of comparing _X_ and _Y_, _C_ may take one of -the following values: - -+ -`=` if _X_ and _Y_ are identical; -+ -`<` if _X_ precedes _Y_ in the defined order; -+ -`>` if _Y_ precedes _X_ in the defined order; - - -+ _X_ == _Y_ is iso - - -Succeeds if terms _X_ and _Y_ are strictly identical. The -difference between this predicate and =/2 is that, if one of the -arguments is a free variable, it only succeeds when they have already -been unified. - -~~~~~{.prolog} -?- X == Y. -~~~~~ -fails, but, - -~~~~~{.prolog} -?- X = Y, X == Y. -~~~~~ -succeeds. - -~~~~~{.prolog} -?- X == 2. -~~~~~ -fails, but, - -~~~~~{.prolog} -?- X = 2, X == 2. -~~~~~ -succeeds. - - -*/ -EOF -sed -e "943r tmp" /Users/vsc/git/yap-6.3/C/cmppreds.c > x - mv x /Users/vsc/git/yap-6.3/C/cmppreds.c - -#false -cat << "EOF" > tmp -/** @pred _X_ @>= _Y_ is iso - - -Term _X_ does not precede term _Y_ in the standard order. - - -*/ -EOF -sed -e "935r tmp" /Users/vsc/git/yap-6.3/C/cmppreds.c > x - mv x /Users/vsc/git/yap-6.3/C/cmppreds.c - -#false -cat << "EOF" > tmp -/** @pred _X_ @> _Y_ is iso - - -Term _X_ follows term _Y_ in the standard order. - - -*/ -EOF -sed -e "927r tmp" /Users/vsc/git/yap-6.3/C/cmppreds.c > x - mv x /Users/vsc/git/yap-6.3/C/cmppreds.c - -#false -cat << "EOF" > tmp -/** @pred _X_ @=< _Y_ is iso - - -Term _X_ does not follow term _Y_ in the standard order. - - -*/ -EOF -sed -e "919r tmp" /Users/vsc/git/yap-6.3/C/cmppreds.c > x - mv x /Users/vsc/git/yap-6.3/C/cmppreds.c - -#false -cat << "EOF" > tmp -/** @pred _X_ @< _Y_ is iso - - -Term _X_ precedes term _Y_ in the standard order. - - -*/ -EOF -sed -e "911r tmp" /Users/vsc/git/yap-6.3/C/cmppreds.c > x - mv x /Users/vsc/git/yap-6.3/C/cmppreds.c - -#false -cat << "EOF" > tmp -/** @pred _X_ \== _Y_ is iso - - -Terms _X_ and _Y_ are not strictly identical. - - -*/ -EOF -sed -e "903r tmp" /Users/vsc/git/yap-6.3/C/cmppreds.c > x - mv x /Users/vsc/git/yap-6.3/C/cmppreds.c - -#false -cat << "EOF" > tmp -/** @pred key_statistics(+ _K_,- _Entries_,- _Size_,- _IndexSize_) - - -Returns several statistics for a key _K_. Currently, it says how -many entries we have for that key, _Entries_, what is the -total size spent on entries, _Size_, and what is the amount of -space spent in indices. - - -*/ -EOF -sed -e "5675r tmp" /Users/vsc/git/yap-6.3/C/dbase.c > x - mv x /Users/vsc/git/yap-6.3/C/dbase.c - -#false -cat << "EOF" > tmp -/** @pred eraseall(+ _K_) - - -All terms belonging to the key `K` are erased from the internal -database. The predicate always succeeds. - - -*/ -EOF -sed -e "5650r tmp" /Users/vsc/git/yap-6.3/C/dbase.c > x - mv x /Users/vsc/git/yap-6.3/C/dbase.c - -#false -cat << "EOF" > tmp -/** @pred instance(+ _R_,- _T_) - - -If _R_ refers to a clause or a recorded term, _T_ is unified -with its most general instance. If _R_ refers to an unit clause - _C_, then _T_ is unified with ` _C_ :- true`. When - _R_ is not a reference to an existing clause or to a recorded term, -this goal fails. - - -*/ -EOF -sed -e "5637r tmp" /Users/vsc/git/yap-6.3/C/dbase.c > x - mv x /Users/vsc/git/yap-6.3/C/dbase.c - -#false -cat << "EOF" > tmp -/** @pred erased(+ _R_) - - -Succeeds if the object whose database reference is _R_ has been -erased. - - -*/ -EOF -sed -e "5628r tmp" /Users/vsc/git/yap-6.3/C/dbase.c > x - mv x /Users/vsc/git/yap-6.3/C/dbase.c - -#false -cat << "EOF" > tmp -/** @pred erase(+ _R_) - - -The term referred to by _R_ is erased from the internal database. If -reference _R_ does not exist in the database, `erase` just fails. - - -*/ -EOF -sed -e "5615r tmp" /Users/vsc/git/yap-6.3/C/dbase.c > x - mv x /Users/vsc/git/yap-6.3/C/dbase.c - -#false -cat << "EOF" > tmp -/** @pred recordz_at(+ _R0_, _T_,- _R_) - - -Makes term _T_ the record following record with reference - _R0_, and unifies _R_ with its reference. - - -*/ -EOF -sed -e "5602r tmp" /Users/vsc/git/yap-6.3/C/dbase.c > x - mv x /Users/vsc/git/yap-6.3/C/dbase.c - -#false -cat << "EOF" > tmp -/** @pred recorda_at(+ _R0_, _T_,- _R_) - - -Makes term _T_ the record preceding record with reference - _R0_, and unifies _R_ with its reference. - - -*/ -EOF -sed -e "5593r tmp" /Users/vsc/git/yap-6.3/C/dbase.c > x - mv x /Users/vsc/git/yap-6.3/C/dbase.c - -#false -cat << "EOF" > tmp -/** @pred recordz(+ _K_, _T_,- _R_) - - -Makes term _T_ the last record under key _K_ and unifies _R_ -with its reference. - - -*/ -EOF -sed -e "5583r tmp" /Users/vsc/git/yap-6.3/C/dbase.c > x - mv x /Users/vsc/git/yap-6.3/C/dbase.c - -#false -cat << "EOF" > tmp -/** @pred recorda(+ _K_, _T_,- _R_) - - -Makes term _T_ the first record under key _K_ and unifies _R_ -with its reference. - - -*/ -EOF -sed -e "5574r tmp" /Users/vsc/git/yap-6.3/C/dbase.c > x - mv x /Users/vsc/git/yap-6.3/C/dbase.c - -#false -cat << "EOF" > tmp -/** @pred recorded(+ _K_, _T_, _R_) - - -Searches in the internal database under the key _K_, a term that -unifies with _T_ and whose reference matches _R_. This -built-in may be used in one of two ways: - -+ _K_ may be given, in this case the built-in will return all -elements of the internal data-base that match the key. -+ _R_ may be given, if so returning the key and element that -match the reference. - - - -*/ -EOF -sed -e "5558r tmp" /Users/vsc/git/yap-6.3/C/dbase.c > x - mv x /Users/vsc/git/yap-6.3/C/dbase.c - -#false -cat << "EOF" > tmp -/** @pred between(+ _Low_,+ _High_,? _Value_) - - - - _Low_ and _High_ are integers, _High_ less or equal than - _Low_. If _Value_ is an integer, _Low_ less or equal than - _Value_ less or equal than _High_. When _Value_ is a -variable it is successively bound to all integers between _Low_ and - _High_. If _High_ is `inf`, between/3 is true iff - _Value_ less or equal than _Low_, a feature that is particularly -interesting for generating integers from a certain value. - - -*/ -EOF -sed -e "556r tmp" /Users/vsc/git/yap-6.3/C/eval.c > x - mv x /Users/vsc/git/yap-6.3/C/eval.c - -#false -cat << "EOF" > tmp -/** @pred nb_delete(? _Name_) - -Delete the named global variable. - - - - */ -EOF -sed -e "2839r tmp" /Users/vsc/git/yap-6.3/C/globals.c > x - mv x /Users/vsc/git/yap-6.3/C/globals.c - -#false -cat << "EOF" > tmp -/** @pred nb_delete(+ _Name_) - - -Delete the named global variable. - - -Global variables have been introduced by various Prolog -implementations recently. We follow the implementation of them in -SWI-Prolog, itself based on hProlog by Bart Demoen. - -GNU-Prolog provides a rich set of global variables, including -arrays. Arrays can be implemented easily in YAP and SWI-Prolog using -functor/3 and `setarg/3` due to the unrestricted arity of -compound terms. - - - */ -EOF -sed -e "2839r tmp" /Users/vsc/git/yap-6.3/C/globals.c > x - mv x /Users/vsc/git/yap-6.3/C/globals.c - -#false -cat << "EOF" > tmp -/** @pred nb_linkarg(+ _Arg_, + _Term_, + _Value_) - - - -As nb_setarg/3, but like nb_linkval/2 it does not -duplicate _Value_. Use with extreme care and consult the -documentation of nb_linkval/2 before use. - - -*/ -EOF -sed -e "2828r tmp" /Users/vsc/git/yap-6.3/C/globals.c > x - mv x /Users/vsc/git/yap-6.3/C/globals.c - -#false -cat << "EOF" > tmp -/** @pred nb_set_shared_arg(+ _Arg_, + _Term_, + _Value_) - - - -As nb_setarg/3, but like nb_linkval/2 it does not -duplicate the global sub-terms in _Value_. Use with extreme care -and consult the documentation of nb_linkval/2 before use. - - -*/ -EOF -sed -e "2817r tmp" /Users/vsc/git/yap-6.3/C/globals.c > x - mv x /Users/vsc/git/yap-6.3/C/globals.c - -#false -cat << "EOF" > tmp -/** @pred nb_setarg(+{Arg], + _Term_, + _Value_) - - - -Assigns the _Arg_-th argument of the compound term _Term_ with -the given _Value_ as setarg/3, but on backtracking the assignment -is not reversed. If _Term_ is not atomic, it is duplicated using -duplicate_term/2. This predicate uses the same technique as -nb_setval/2. We therefore refer to the description of -nb_setval/2 for details on non-backtrackable assignment of -terms. This predicate is compatible to GNU-Prolog -`setarg(A,T,V,false)`, removing the type-restriction on - _Value_. See also nb_linkarg/3. Below is an example for -counting the number of solutions of a goal. Note that this -implementation is thread-safe, reentrant and capable of handling -exceptions. Realising these features with a traditional implementation -based on assert/retract or flag/3 is much more complicated. - -~~~~~ - succeeds_n_times(Goal, Times) :- - Counter = counter(0), - ( Goal, - arg(1, Counter, N0), - N is N0 + 1, - nb_setarg(1, Counter, N), - fail - ; arg(1, Counter, Times) - ). -~~~~~ - - -*/ -EOF -sed -e "2784r tmp" /Users/vsc/git/yap-6.3/C/globals.c > x - mv x /Users/vsc/git/yap-6.3/C/globals.c - -#false -cat << "EOF" > tmp -/** @pred nb_linkval(+ _Name_, + _Value_) - - -Associates the term _Value_ with the atom _Name_ without -copying it. This is a fast special-purpose variation of nb_setval/2 -intended for expert users only because the semantics on backtracking -to a point before creating the link are poorly defined for compound -terms. The principal term is always left untouched, but backtracking -behaviour on arguments is undone if the original assignment was -trailed and left alone otherwise, which implies that the history that -created the term affects the behaviour on backtracking. Please -consider the following example: - -~~~~~ -demo_nb_linkval :- - T = nice(N), - ( N = world, - nb_linkval(myvar, T), - fail - ; nb_getval(myvar, V), - writeln(V) - ). -~~~~~ - - -*/ -EOF -sed -e "2756r tmp" /Users/vsc/git/yap-6.3/C/globals.c > x - mv x /Users/vsc/git/yap-6.3/C/globals.c - -#false -cat << "EOF" > tmp -/** @pred nb_set_shared_val(+ _Name_, + _Value_) - - -Associates the term _Value_ with the atom _Name_, but sharing -non-backtrackable terms. This may be useful if you want to rewrite a -global variable so that the new copy will survive backtracking, but -you want to share structure with the previous term. - -The next example shows the differences between the three built-ins: - -~~~~~ -?- nb_setval(a,a(_)),nb_getval(a,A),nb_setval(b,t(C,A)),nb_getval(b,B). -A = a(_A), -B = t(_B,a(_C)) ? - -?- nb_setval(a,a(_)),nb_getval(a,A),nb_set_shared_val(b,t(C,A)),nb_getval(b,B). - -?- nb_setval(a,a(_)),nb_getval(a,A),nb_linkval(b,t(C,A)),nb_getval(b,B). -A = a(_A), -B = t(C,a(_A)) ? -~~~~~ - - -*/ -EOF -sed -e "2731r tmp" /Users/vsc/git/yap-6.3/C/globals.c > x - mv x /Users/vsc/git/yap-6.3/C/globals.c - -#false -cat << "EOF" > tmp -/** @pred nb_setval(+ _Name_,+ _Value_) - - -Associates a copy of _Value_ created with duplicate_term/2 -with the atom _Name_. Note that this can be used to set an -initial value other than `[]` prior to backtrackable assignment. - - -*/ -EOF -sed -e "2712r tmp" /Users/vsc/git/yap-6.3/C/globals.c > x - mv x /Users/vsc/git/yap-6.3/C/globals.c - -#false -cat << "EOF" > tmp -/** @pred nb_setval(+ _Name_, + _Value_) - - -Associates a copy of _Value_ created with duplicate_term/2 with -the atom _Name_. Note that this can be used to set an initial -value other than `[]` prior to backtrackable assignment. - - -*/ -EOF -sed -e "2712r tmp" /Users/vsc/git/yap-6.3/C/globals.c > x - mv x /Users/vsc/git/yap-6.3/C/globals.c - -#false -cat << "EOF" > tmp -/** @pred b_setval(+ _Name_,+ _Value_) - - -Associate the term _Value_ with the atom _Name_ or replaces -the currently associated value with _Value_. If _Name_ does -not refer to an existing global variable a variable with initial value -`[]` is created (the empty list). On backtracking the -assignment is reversed. - - -*/ -EOF -sed -e "2689r tmp" /Users/vsc/git/yap-6.3/C/globals.c > x - mv x /Users/vsc/git/yap-6.3/C/globals.c - -#false -cat << "EOF" > tmp -/** @pred b_setval(+ _Name_, + _Value_) - - -Associate the term _Value_ with the atom _Name_ or replaces -the currently associated value with _Value_. If _Name_ does -not refer to an existing global variable a variable with initial value -[] is created (the empty list). On backtracking the assignment is -reversed. - - -*/ -EOF -sed -e "2689r tmp" /Users/vsc/git/yap-6.3/C/globals.c > x - mv x /Users/vsc/git/yap-6.3/C/globals.c - -#false -cat << "EOF" > tmp -/** @pred functor( _T_, _F_, _N_) is iso - - -The top functor of term _T_ is named _F_ and has arity _N_. - -When _T_ is not instantiated, _F_ and _N_ must be. If - _N_ is 0, _F_ must be an atomic symbol, which will be unified -with _T_. If _N_ is not 0, then _F_ must be an atom and - _T_ becomes instantiated to the most general term having functor - _F_ and arity _N_. If _T_ is instantiated to a term then - _F_ and _N_ are respectively unified with its top functor name -and arity. - -In the current version of YAP the arity _N_ must be an -integer. Previous versions allowed evaluable expressions, as long as the -expression would evaluate to an integer. This feature is not available -in the ISO Prolog standard. - - -*/ -EOF -sed -e "1108r tmp" /Users/vsc/git/yap-6.3/C/inlines.c > x - mv x /Users/vsc/git/yap-6.3/C/inlines.c - -#false -cat << "EOF" > tmp -/** @pred _X_ \= _Y_ is iso - - -Succeeds if terms _X_ and _Y_ are not unifiable. - - -*/ -EOF -sed -e "1105r tmp" /Users/vsc/git/yap-6.3/C/inlines.c > x - mv x /Users/vsc/git/yap-6.3/C/inlines.c - -#false -cat << "EOF" > tmp -/** @pred _X_ = _Y_ is iso - - -Tries to unify terms _X_ and _Y_. - - -*/ -EOF -sed -e "1104r tmp" /Users/vsc/git/yap-6.3/C/inlines.c > x - mv x /Users/vsc/git/yap-6.3/C/inlines.c - -#false -cat << "EOF" > tmp -/** @pred float( _T_) is iso - - -Checks whether _T_ is a floating point number. - - -*/ -EOF -sed -e "1103r tmp" /Users/vsc/git/yap-6.3/C/inlines.c > x - mv x /Users/vsc/git/yap-6.3/C/inlines.c - -#false -cat << "EOF" > tmp -/** @pred compound( _T_) is iso - - -Checks whether _T_ is a compound term. - - -*/ -EOF -sed -e "1102r tmp" /Users/vsc/git/yap-6.3/C/inlines.c > x - mv x /Users/vsc/git/yap-6.3/C/inlines.c - -#false -cat << "EOF" > tmp -/** @pred db_reference( _T_) - - -Checks whether _T_ is a database reference. - - -*/ -EOF -sed -e "1100r tmp" /Users/vsc/git/yap-6.3/C/inlines.c > x - mv x /Users/vsc/git/yap-6.3/C/inlines.c - -#false -cat << "EOF" > tmp -/** @pred var( _T_) is iso - - -Succeeds if _T_ is currently a free variable, otherwise fails. - - -*/ -EOF -sed -e "1099r tmp" /Users/vsc/git/yap-6.3/C/inlines.c > x - mv x /Users/vsc/git/yap-6.3/C/inlines.c - -#false -cat << "EOF" > tmp -/** @pred number( _T_) is iso - - -Checks whether `T` is an integer, rational or a float. - - -*/ -EOF -sed -e "1098r tmp" /Users/vsc/git/yap-6.3/C/inlines.c > x - mv x /Users/vsc/git/yap-6.3/C/inlines.c - -#false -cat << "EOF" > tmp -/** @pred nonvar( _T_) is iso - - -The opposite of `var( _T_)`. - - -*/ -EOF -sed -e "1097r tmp" /Users/vsc/git/yap-6.3/C/inlines.c > x - mv x /Users/vsc/git/yap-6.3/C/inlines.c - -#false -cat << "EOF" > tmp -/** @pred integer( _T_) is iso - - -Succeeds if and only if _T_ is currently instantiated to an integer. - - -*/ -EOF -sed -e "1096r tmp" /Users/vsc/git/yap-6.3/C/inlines.c > x - mv x /Users/vsc/git/yap-6.3/C/inlines.c - -#false -cat << "EOF" > tmp -/** @pred atomic(T) is iso - - -Checks whether _T_ is an atomic symbol (atom or number). - - -*/ -EOF -sed -e "1095r tmp" /Users/vsc/git/yap-6.3/C/inlines.c > x - mv x /Users/vsc/git/yap-6.3/C/inlines.c - -#false -cat << "EOF" > tmp -/** @pred atom( _T_) is iso - - -Succeeds if and only if _T_ is currently instantiated to an atom. - - -*/ -EOF -sed -e "1094r tmp" /Users/vsc/git/yap-6.3/C/inlines.c > x - mv x /Users/vsc/git/yap-6.3/C/inlines.c - -#false -cat << "EOF" > tmp -/** @pred stream_select(+ _STREAMS_,+ _TIMEOUT_,- _READSTREAMS_) - - -Given a list of open _STREAMS_ opened in read mode and a _TIMEOUT_ -return a list of streams who are now available for reading. - -If the _TIMEOUT_ is instantiated to `off`, -stream_select/3 will wait indefinitely for a stream to become -open. Otherwise the timeout must be of the form `SECS:USECS` where -`SECS` is an integer gives the number of seconds to wait for a timeout -and `USECS` adds the number of micro-seconds. - -This built-in is only defined if the system call `select` is -available in the system. - - -*/ -EOF -sed -e "1009r tmp" /Users/vsc/git/yap-6.3/C/iopreds.c > x - mv x /Users/vsc/git/yap-6.3/C/iopreds.c - -#false -cat << "EOF" > tmp -/** @pred char_conversion(+ _IN_,+ _OUT_) is iso - - -While reading terms convert unquoted occurrences of the character - _IN_ to the character _OUT_. Both _IN_ and _OUT_ must be -bound to single characters atoms. - -Character conversion only works if the flag `char_conversion` is -on. This is default in the `iso` and `sicstus` language -modes. As an example, character conversion can be used for instance to -convert characters from the ISO-LATIN-1 character set to ASCII. - -If _IN_ is the same character as _OUT_, char_conversion/2 -will remove this conversion from the table. - - -*/ -EOF -sed -e "986r tmp" /Users/vsc/git/yap-6.3/C/iopreds.c > x - mv x /Users/vsc/git/yap-6.3/C/iopreds.c - -#false -cat << "EOF" > tmp -/** @pred close_shared_object(+ _Handle_) - -Detach the shared object identified by _Handle_. - - -*/ -EOF -sed -e "236r tmp" /Users/vsc/git/yap-6.3/C/load_foreign.c > x - mv x /Users/vsc/git/yap-6.3/C/load_foreign.c - -#false -cat << "EOF" > tmp -/** @pred is_mutable(? _D_) - - -Holds if _D_ is a mutable term. - - -*/ -EOF -sed -e "345r tmp" /Users/vsc/git/yap-6.3/C/mavar.c > x - mv x /Users/vsc/git/yap-6.3/C/mavar.c - -#false -cat << "EOF" > tmp -/** @pred update_mutable(+ _D_,+ _M_) - - -Set the current value of mutable term _M_ to term _D_. - - - - */ -EOF -sed -e "336r tmp" /Users/vsc/git/yap-6.3/C/mavar.c > x - mv x /Users/vsc/git/yap-6.3/C/mavar.c - -#false -cat << "EOF" > tmp -/** @pred get_mutable(? _D_,+ _M_) - - -Unify the current value of mutable term _M_ with term _D_. - - -*/ -EOF -sed -e "328r tmp" /Users/vsc/git/yap-6.3/C/mavar.c > x - mv x /Users/vsc/git/yap-6.3/C/mavar.c - -#false -cat << "EOF" > tmp -/** @pred create_mutable(+ _D_,- _M_) - - -Create new mutable variable _M_ with initial value _D_. - - -*/ -EOF -sed -e "320r tmp" /Users/vsc/git/yap-6.3/C/mavar.c > x - mv x /Users/vsc/git/yap-6.3/C/mavar.c - -#false -cat << "EOF" > tmp -/** @pred setarg(+ _I_,+ _S_,? _T_) - - -Set the value of the _I_th argument of term _S_ to term _T_. - - -*/ -EOF -sed -e "312r tmp" /Users/vsc/git/yap-6.3/C/mavar.c > x - mv x /Users/vsc/git/yap-6.3/C/mavar.c - -#false -cat << "EOF" > tmp -/** @pred abort - - -Abandons the execution of the current goal and returns to top level. All -break levels (see break/0 below) are terminated. It is mainly -used during debugging or after a serious execution error, to return to -the top-level. - - -*/ -EOF -sed -e "1947r tmp" /Users/vsc/git/yap-6.3/C/stdpreds.c > x - mv x /Users/vsc/git/yap-6.3/C/stdpreds.c - -#false -cat << "EOF" > tmp -/** @pred _T_ =.. _L_ is iso - - -The list _L_ is built with the functor and arguments of the term - _T_. If _T_ is instantiated to a variable, then _L_ must be -instantiated either to a list whose head is an atom, or to a list -consisting of just a number. - - -*/ -EOF -sed -e "1917r tmp" /Users/vsc/git/yap-6.3/C/stdpreds.c > x - mv x /Users/vsc/git/yap-6.3/C/stdpreds.c - -#false -cat << "EOF" > tmp -/** @pred get_value(+ _A_,- _V_) - - -In YAP, atoms can be associated with constants. If one such -association exists for atom _A_, unify the second argument with the -constant. Otherwise, unify _V_ with `[]`. - -This predicate is YAP specific. - - -*/ -EOF -sed -e "1902r tmp" /Users/vsc/git/yap-6.3/C/stdpreds.c > x - mv x /Users/vsc/git/yap-6.3/C/stdpreds.c - -#false -cat << "EOF" > tmp -/** @pred set_value(+ _A_,+ _C_) - - -Associate atom _A_ with constant _C_. - -The `set_value` and `get_value` built-ins give a fast alternative to -the internal data-base. This is a simple form of implementing a global -counter. - -~~~~~ - read_and_increment_counter(Value) :- - get_value(counter, Value), - Value1 is Value+1, - set_value(counter, Value1). -~~~~~ -This predicate is YAP specific. - - - - - -*/ -EOF -sed -e "1879r tmp" /Users/vsc/git/yap-6.3/C/stdpreds.c > x - mv x /Users/vsc/git/yap-6.3/C/stdpreds.c - -#false -cat << "EOF" > tmp -/** @pred rename(+ _F_,+ _G_) - - -Renames file _F_ to _G_. - - -*/ -EOF -sed -e "2978r tmp" /Users/vsc/git/yap-6.3/C/sysbits.c > x - mv x /Users/vsc/git/yap-6.3/C/sysbits.c - -#false -cat << "EOF" > tmp -/** @pred sh - - -Creates a new shell interaction. - - -*/ -EOF -sed -e "2968r tmp" /Users/vsc/git/yap-6.3/C/sysbits.c > x - mv x /Users/vsc/git/yap-6.3/C/sysbits.c - -#false -cat << "EOF" > tmp -/** @pred thread_setconcurrency(+ _Old_, - _New_) - - -Determine the concurrency of the process, which is defined as the -maximum number of concurrently active threads. `Active` here means -they are using CPU time. This option is provided if the -thread-implementation provides -`pthread_setconcurrency()`. Solaris is a typical example of this -family. On other systems this predicate unifies _Old_ to 0 (zero) -and succeeds silently. - - -*/ -EOF -sed -e "1089r tmp" /Users/vsc/git/yap-6.3/C/threads.c > x - mv x /Users/vsc/git/yap-6.3/C/threads.c - -#false -cat << "EOF" > tmp -/** @pred thread_yield - - -Voluntarily relinquish the processor. - - -*/ -EOF -sed -e "1077r tmp" /Users/vsc/git/yap-6.3/C/threads.c > x - mv x /Users/vsc/git/yap-6.3/C/threads.c - -#false -cat << "EOF" > tmp -/** @pred stop_low_level_trace - - -Stop display of messages at procedure entry and retry. - - -Note that this compile-time option will slow down execution. - - - */ -EOF -sed -e "462r tmp" /Users/vsc/git/yap-6.3/C/tracer.c > x - mv x /Users/vsc/git/yap-6.3/C/tracer.c - -#false -cat << "EOF" > tmp -/** @pred start_low_level_trace - - -Begin display of messages at procedure entry and retry. - - -*/ -EOF -sed -e "451r tmp" /Users/vsc/git/yap-6.3/C/tracer.c > x - mv x /Users/vsc/git/yap-6.3/C/tracer.c - -#false -cat << "EOF" > tmp -/** @pred acyclic_term( _T_) is iso - - -Succeeds if there are loops in the term _T_, that is, it is an infinite term. - - -*/ -EOF -sed -e "1024r tmp" /Users/vsc/git/yap-6.3/C/unify.c > x - mv x /Users/vsc/git/yap-6.3/C/unify.c - -#false -cat << "EOF" > tmp -/** @pred unify_with_occurs_check(?T1,?T2) is iso - - -Obtain the most general unifier of terms _T1_ and _T2_, if there -is one. - -This predicate implements the full unification algorithm. An example:n - -~~~~~{.prolog} -unify_with_occurs_check(a(X,b,Z),a(X,A,f(B)). -~~~~~ -will succeed with the bindings `A = b` and `Z = f(B)`. On the -other hand: - -~~~~~{.prolog} -unify_with_occurs_check(a(X,b,Z),a(X,A,f(Z)). -~~~~~ -would fail, because `Z` is not unifiable with `f(Z)`. Note that -`(=)/2` would succeed for the previous examples, giving the following -bindings `A = b` and `Z = f(Z)`. - - -*/ -EOF -sed -e "1000r tmp" /Users/vsc/git/yap-6.3/C/unify.c > x - mv x /Users/vsc/git/yap-6.3/C/unify.c - -#false -cat << "EOF" > tmp -/** @pred unnumbervars( _T_,+ _NT_) - - -Replace every `$VAR( _I_)` by a free variable. - - -*/ -EOF -sed -e "5388r tmp" /Users/vsc/git/yap-6.3/C/utilpreds.c > x - mv x /Users/vsc/git/yap-6.3/C/utilpreds.c - -#false -cat << "EOF" > tmp -/** @pred numbervars( _T_,+ _N1_,- _Nn_) - - -Instantiates each variable in term _T_ to a term of the form: -`$VAR( _I_)`, with _I_ increasing from _N1_ to _Nn_. - - -*/ -EOF -sed -e "5379r tmp" /Users/vsc/git/yap-6.3/C/utilpreds.c > x - mv x /Users/vsc/git/yap-6.3/C/utilpreds.c - -#false -cat << "EOF" > tmp -/** @pred term_factorized(? _TI_,- _TF_, ?SubTerms) - - -Similar to rational_term_to_tree/4, but _SubTerms_ is a proper list. - - -*/ -EOF -sed -e "5370r tmp" /Users/vsc/git/yap-6.3/C/utilpreds.c > x - mv x /Users/vsc/git/yap-6.3/C/utilpreds.c - -#false -cat << "EOF" > tmp -/** @pred rational_term_to_tree(? _TI_,- _TF_, ?SubTerms, ?MoreSubterms) - - -The term _TF_ is a forest representation (without cycles and repeated -terms) for the Prolog term _TI_. The term _TF_ is the main term. The -difference list _SubTerms_-_MoreSubterms_ stores terms of the form -_V=T_, where _V_ is a new variable occuring in _TF_, and _T_ is a copy -of a sub-term from _TI_. - - -*/ -EOF -sed -e "5358r tmp" /Users/vsc/git/yap-6.3/C/utilpreds.c > x - mv x /Users/vsc/git/yap-6.3/C/utilpreds.c - -#false -cat << "EOF" > tmp -/** @pred term_attvars(+ _Term_,- _AttVars_) - - - _AttVars_ is a list of all attributed variables in _Term_ and -its attributes. I.e., term_attvars/2 works recursively through -attributes. This predicate is Cycle-safe. - - -*/ -EOF -sed -e "5346r tmp" /Users/vsc/git/yap-6.3/C/utilpreds.c > x - mv x /Users/vsc/git/yap-6.3/C/utilpreds.c - -#false -cat << "EOF" > tmp -/** @pred term_variables(? _Term_, - _Variables_) is iso - - - -Unify _Variables_ with the list of all variables of term - _Term_. The variables occur in the order of their first -appearance when traversing the term depth-first, left-to-right. - - -*/ -EOF -sed -e "5334r tmp" /Users/vsc/git/yap-6.3/C/utilpreds.c > x - mv x /Users/vsc/git/yap-6.3/C/utilpreds.c - -#false -cat << "EOF" > tmp -/** @pred ground( _T_) is iso - - -Succeeds if there are no free variables in the term _T_. - - -*/ -EOF -sed -e "5323r tmp" /Users/vsc/git/yap-6.3/C/utilpreds.c > x - mv x /Users/vsc/git/yap-6.3/C/utilpreds.c - -#false -cat << "EOF" > tmp -/** @pred copy_term_nat(? _TI_,- _TF_) - - -As copy_term/2. Attributes however, are not copied but replaced -by fresh variables. - - - - - */ -EOF -sed -e "5312r tmp" /Users/vsc/git/yap-6.3/C/utilpreds.c > x - mv x /Users/vsc/git/yap-6.3/C/utilpreds.c - -#false -cat << "EOF" > tmp -/** @pred duplicate_term(? _TI_,- _TF_) - - -Term _TF_ is a variant of the original term _TI_, such that -for each variable _V_ in the term _TI_ there is a new variable - _V'_ in term _TF_, and the two terms do not share any -structure. All suspended goals and attributes for attributed variables -in _TI_ are also duplicated. - -Also refer to copy_term/2. - - -*/ -EOF -sed -e "5298r tmp" /Users/vsc/git/yap-6.3/C/utilpreds.c > x - mv x /Users/vsc/git/yap-6.3/C/utilpreds.c - -#false -cat << "EOF" > tmp -/** @pred copy_term(? _TI_,- _TF_) is iso - - -Term _TF_ is a variant of the original term _TI_, such that for -each variable _V_ in the term _TI_ there is a new variable _V'_ -in term _TF_. Notice that: - -+ suspended goals and attributes for attributed variables in _TI_ are also duplicated; -+ ground terms are shared between the new and the old term. - -If you do not want any sharing to occur please use -duplicate_term/2. - - -*/ -EOF -sed -e "5282r tmp" /Users/vsc/git/yap-6.3/C/utilpreds.c > x - mv x /Users/vsc/git/yap-6.3/C/utilpreds.c - -#false -cat << "EOF" > tmp -/** @pred abolish_all_tables/0 - - -Removes all the entries from the table space for all tabled -predicates. The predicates remain as tabled predicates. - - -*/ -EOF -sed -e "210r tmp" /Users/vsc/git/yap-6.3/OPTYap/opt.preds.c > x - mv x /Users/vsc/git/yap-6.3/OPTYap/opt.preds.c - -#false -cat << "EOF" > tmp -/** @pred put_assoc(+ _Key_,+ _Assoc_,+ _Val_,+ _New_) - - -The association list _New_ includes and element of association - _key_ with _Val_, and all elements of _Assoc_ that did not -have key _Key_. - - - - - */ -EOF -sed -e "175r tmp" /Users/vsc/git/yap-6.3/library/assoc.yap > x - mv x /Users/vsc/git/yap-6.3/library/assoc.yap - -#false -cat << "EOF" > tmp -/** @pred ord_list_to_assoc(+ _List_,? _Assoc_) - - -Given an ordered list _List_ such that each element of _List_ is -of the form _Key-Val_, and all the _Keys_ are unique, _Assoc_ is -the corresponding association list. - - -*/ -EOF -sed -e "175r tmp" /Users/vsc/git/yap-6.3/library/assoc.yap > x - mv x /Users/vsc/git/yap-6.3/library/assoc.yap - -#false -cat << "EOF" > tmp -/** @pred min_assoc(+ _Assoc_,- _Key_,? _Value_) - - -Given the association list - _Assoc_, _Key_ in the smallest key in the list, and _Value_ -the associated value. - - -*/ -EOF -sed -e "175r tmp" /Users/vsc/git/yap-6.3/library/assoc.yap > x - mv x /Users/vsc/git/yap-6.3/library/assoc.yap - -#false -cat << "EOF" > tmp -/** @pred max_assoc(+ _Assoc_,- _Key_,? _Value_) - - -Given the association list - _Assoc_, _Key_ in the largest key in the list, and _Value_ -the associated value. - - -*/ -EOF -sed -e "175r tmp" /Users/vsc/git/yap-6.3/library/assoc.yap > x - mv x /Users/vsc/git/yap-6.3/library/assoc.yap - -#false -cat << "EOF" > tmp -/** @pred map_assoc(+ _Pred_,+ _Assoc_,? _New_) - -Given the binary predicate name _Pred_ and the association list - _Assoc_, _New_ in an association list with keys in _Assoc_, -and such that if _Key-Val_ is in _Assoc_, and _Key-Ans_ is in - _New_, then _Pred_( _Val_, _Ans_) holds. - - -*/ -EOF -sed -e "175r tmp" /Users/vsc/git/yap-6.3/library/assoc.yap > x - mv x /Users/vsc/git/yap-6.3/library/assoc.yap - -#false -cat << "EOF" > tmp -/** @pred map_assoc(+ _Pred_,+ _Assoc_) - - -Succeeds if the unary predicate name _Pred_( _Val_) holds for every -element in the association list. - - -*/ -EOF -sed -e "175r tmp" /Users/vsc/git/yap-6.3/library/assoc.yap > x - mv x /Users/vsc/git/yap-6.3/library/assoc.yap - -#false -cat << "EOF" > tmp -/** @pred list_to_assoc(+ _List_,? _Assoc_) - - -Given a list _List_ such that each element of _List_ is of the -form _Key-Val_, and all the _Keys_ are unique, _Assoc_ is -the corresponding association list. - - -*/ -EOF -sed -e "175r tmp" /Users/vsc/git/yap-6.3/library/assoc.yap > x - mv x /Users/vsc/git/yap-6.3/library/assoc.yap - -#false -cat << "EOF" > tmp -/** @pred is_assoc(+ _Assoc_) - - -Succeeds if _Assoc_ is an association list, that is, if it is a -red-black tree. - - -*/ -EOF -sed -e "175r tmp" /Users/vsc/git/yap-6.3/library/assoc.yap > x - mv x /Users/vsc/git/yap-6.3/library/assoc.yap - -#false -cat << "EOF" > tmp -/** @pred get_prev_assoc(+ _Key_,+ _Assoc_,? _Next_,? _Value_) - - -If _Key_ is one of the elements in the association list _Assoc_, -return the previous key, _Next_, and its value, _Value_. - - -*/ -EOF -sed -e "175r tmp" /Users/vsc/git/yap-6.3/library/assoc.yap > x - mv x /Users/vsc/git/yap-6.3/library/assoc.yap - -#false -cat << "EOF" > tmp -/** @pred get_next_assoc(+ _Key_,+ _Assoc_,? _Next_,? _Value_) - -If _Key_ is one of the elements in the association list _Assoc_, -return the next key, _Next_, and its value, _Value_. - - -*/ -EOF -sed -e "175r tmp" /Users/vsc/git/yap-6.3/library/assoc.yap > x - mv x /Users/vsc/git/yap-6.3/library/assoc.yap - -#false -cat << "EOF" > tmp -/** @pred get_assoc(+ _Key_,+ _Assoc_,? _Value_,+ _NAssoc_,? _NValue_) - - -If _Key_ is one of the elements in the association list _Assoc_, -return the associated value _Value_ and a new association list - _NAssoc_ where _Key_ is associated with _NValue_. - - -*/ -EOF -sed -e "175r tmp" /Users/vsc/git/yap-6.3/library/assoc.yap > x - mv x /Users/vsc/git/yap-6.3/library/assoc.yap - -#false -cat << "EOF" > tmp -/** @pred get_assoc(+ _Key_,+ _Assoc_,? _Value_) - - -If _Key_ is one of the elements in the association list _Assoc_, -return the associated value. - - -*/ -EOF -sed -e "175r tmp" /Users/vsc/git/yap-6.3/library/assoc.yap > x - mv x /Users/vsc/git/yap-6.3/library/assoc.yap - -#false -cat << "EOF" > tmp -/** @pred gen_assoc(+ _Assoc_,? _Key_,? _Value_) - - -Given the association list _Assoc_, unify _Key_ and _Value_ -with two associated elements. It can be used to enumerate all elements -in the association list. - - -*/ -EOF -sed -e "175r tmp" /Users/vsc/git/yap-6.3/library/assoc.yap > x - mv x /Users/vsc/git/yap-6.3/library/assoc.yap - -#false -cat << "EOF" > tmp -/** @pred empty_assoc(+ _Assoc_) - - -Succeeds if association list _Assoc_ is empty. - - -*/ -EOF -sed -e "175r tmp" /Users/vsc/git/yap-6.3/library/assoc.yap > x - mv x /Users/vsc/git/yap-6.3/library/assoc.yap - -#false -cat << "EOF" > tmp -/** @pred del_min_assoc(+ _Assoc_, ? _Key_, ? _Val_, ? _NewAssoc_) - - -Succeeds if _NewAssoc_ is an association list, obtained by removing -the smallest element of the list, with _Key_ and _Val_ -from the list _Assoc_. - - -*/ -EOF -sed -e "175r tmp" /Users/vsc/git/yap-6.3/library/assoc.yap > x - mv x /Users/vsc/git/yap-6.3/library/assoc.yap - -#false -cat << "EOF" > tmp -/** @pred del_max_assoc(+ _Assoc_, ? _Key_, ? _Val_, ? _NewAssoc_) - - -Succeeds if _NewAssoc_ is an association list, obtained by removing -the largest element of the list, with _Key_ and _Val_ from the -list _Assoc_. - - -*/ -EOF -sed -e "175r tmp" /Users/vsc/git/yap-6.3/library/assoc.yap > x - mv x /Users/vsc/git/yap-6.3/library/assoc.yap - -#false -cat << "EOF" > tmp -/** @pred del_assoc(+ _Key_, + _Assoc_, ? _Val_, ? _NewAssoc_) - - -Succeeds if _NewAssoc_ is an association list, obtained by removing -the element with _Key_ and _Val_ from the list _Assoc_. - - -*/ -EOF -sed -e "175r tmp" /Users/vsc/git/yap-6.3/library/assoc.yap > x - mv x /Users/vsc/git/yap-6.3/library/assoc.yap - -#false -cat << "EOF" > tmp -/** @pred assoc_to_list(+ _Assoc_,? _List_) - - -Given an association list _Assoc_ unify _List_ with a list of -the form _Key-Val_, where the elements _Key_ are in ascending -order. - - -*/ -EOF -sed -e "175r tmp" /Users/vsc/git/yap-6.3/library/assoc.yap > x - mv x /Users/vsc/git/yap-6.3/library/assoc.yap - -#false -cat << "EOF" > tmp -/** @pred avl_new(+ _T_) - - -Create a new tree. - - -*/ -EOF -sed -e "62r tmp" /Users/vsc/git/yap-6.3/library/avl.yap > x - mv x /Users/vsc/git/yap-6.3/library/avl.yap - -#false -cat << "EOF" > tmp -/** @pred avl_lookup(+ _Key_,- _Value_,+ _T_) - - -Lookup an element with key _Key_ in the AVL tree - _T_, returning the value _Value_. - - - - - */ -EOF -sed -e "62r tmp" /Users/vsc/git/yap-6.3/library/avl.yap > x - mv x /Users/vsc/git/yap-6.3/library/avl.yap - -#false -cat << "EOF" > tmp -/** @pred avl_insert(+ _Key_,? _Value_,+ _T0_,- _TF_) - - -Add an element with key _Key_ and _Value_ to the AVL tree - _T0_ creating a new AVL tree _TF_. Duplicated elements are -allowed. - - -*/ -EOF -sed -e "62r tmp" /Users/vsc/git/yap-6.3/library/avl.yap > x - mv x /Users/vsc/git/yap-6.3/library/avl.yap - -#true -cat << "EOF" > tmp -/** @pred process(+ _StreamInp_, + _Goal_) - - - -For every line _LineIn_ in stream _StreamInp_, call -`call(Goal,LineIn)`. - - -*/ -EOF -sed -e "395r tmp" /Users/vsc/git/yap-6.3/library/block_diagram.yap > x - mv x /Users/vsc/git/yap-6.3/library/block_diagram.yap - -#false -cat << "EOF" > tmp -/** @pred make_diagram(+inputfilename, +ouputfilename, +predicate, +depth, +extension) - - -The same as make_diagram/2 but you can define how many of the imported/exporeted predicates will be shown with predicate, and how deep the crawler is allowed to go with depth. The extension is used if the file use module directives do not include a file extension. - - - -*/ -EOF -sed -e "214r tmp" /Users/vsc/git/yap-6.3/library/block_diagram.yap > x - mv x /Users/vsc/git/yap-6.3/library/block_diagram.yap - -#false -cat << "EOF" > tmp -/** @pred make_diagram(+inputfilename, +ouputfilename) - - - -This will crawl the files following the use_module, ensure_loaded directives withing the inputfilename. -The result will be a file in dot format. -You can make a pdf at the shell by asking `dot -Tpdf filename > output.pdf`. - - -*/ -EOF -sed -e "214r tmp" /Users/vsc/git/yap-6.3/library/block_diagram.yap > x - mv x /Users/vsc/git/yap-6.3/library/block_diagram.yap - -#true -cat << "EOF" > tmp -/** @pred write_to_chars(+ _Term_, - _Result_) - - - -Execute the built-in procedure write/1 with argument _Term_ -outputting the result to the string of character codes _Result_. - - -*/ -EOF -sed -e "17r tmp" /Users/vsc/git/yap-6.3/library/charsio.yap > x - mv x /Users/vsc/git/yap-6.3/library/charsio.yap - -#false -cat << "EOF" > tmp -/** @pred write_to_chars(+ _Term_, - _Result0_, - _Result_) - - -Execute the built-in procedure write/1 with argument _Term_ -outputting the result to the difference list of character codes - _Result-Result0_. - - -*/ -EOF -sed -e "17r tmp" /Users/vsc/git/yap-6.3/library/charsio.yap > x - mv x /Users/vsc/git/yap-6.3/library/charsio.yap - -#false -cat << "EOF" > tmp -/** @pred with_output_to_chars(? _Goal_, ? _Chars0_, - _Chars_) - - -Execute goal _Goal_ such that its standard output will be sent to a -memory buffer. After successful execution the contents of the memory -buffer will be converted to the difference list of character codes - _Chars-Chars0_. - - -*/ -EOF -sed -e "17r tmp" /Users/vsc/git/yap-6.3/library/charsio.yap > x - mv x /Users/vsc/git/yap-6.3/library/charsio.yap - -#false -cat << "EOF" > tmp -/** @pred with_output_to_chars(? _Goal_, - _Stream_, ? _Chars0_, - _Chars_) - - -Execute goal _Goal_ such that its standard output will be sent to a -memory buffer. After successful execution the contents of the memory -buffer will be converted to the difference list of character codes - _Chars-Chars0_ and _Stream_ receives the stream corresponding to -the memory buffer. - - */ -EOF -sed -e "17r tmp" /Users/vsc/git/yap-6.3/library/charsio.yap > x - mv x /Users/vsc/git/yap-6.3/library/charsio.yap - -#false -cat << "EOF" > tmp -/** @pred with_output_to_chars(? _Goal_, - _Chars_) - - - -Execute goal _Goal_ such that its standard output will be sent to a -memory buffer. After successful execution the contents of the memory -buffer will be converted to the list of character codes _Chars_. - - -*/ -EOF -sed -e "17r tmp" /Users/vsc/git/yap-6.3/library/charsio.yap > x - mv x /Users/vsc/git/yap-6.3/library/charsio.yap - -#true -cat << "EOF" > tmp -/** @pred term_to_atom(? _Term_,? _Atom_) - - -Succeeds if _Atom_ describes a term that unifies with _Term_. When - _Atom_ is instantiated _Atom_ is converted and then unified with - _Term_. If _Atom_ has no valid syntax, a `syntax_error` -exception is raised. Otherwise _Term_ is `written` on _Atom_ -using write/1. - - -*/ -EOF -sed -e "17r tmp" /Users/vsc/git/yap-6.3/library/charsio.yap > x - mv x /Users/vsc/git/yap-6.3/library/charsio.yap - -#true -cat << "EOF" > tmp -/** @pred term_to_atom(? _Term_, ? _Atom_) - - -True if _Atom_ describes a term that unifies with _Term_. When - _Atom_ is instantiated _Atom_ is converted and then unified with - _Term_. If _Atom_ has no valid syntax, a syntax_error exception -is raised. Otherwise _Term_ is `written` on _Atom_ using -write_term/2 with the option quoted(true). - - -*/ -EOF -sed -e "17r tmp" /Users/vsc/git/yap-6.3/library/charsio.yap > x - mv x /Users/vsc/git/yap-6.3/library/charsio.yap - -#true -cat << "EOF" > tmp -/** @pred read_from_chars(+ _Chars_, - _Term_) - - - -Parse the list of character codes _Chars_ and return the result in -the term _Term_. The character codes to be read must terminate with -a dot character such that either (i) the dot character is followed by -blank characters; or (ii) the dot character is the last character in the -string. - - -*/ -EOF -sed -e "17r tmp" /Users/vsc/git/yap-6.3/library/charsio.yap > x - mv x /Users/vsc/git/yap-6.3/library/charsio.yap - -#false -cat << "EOF" > tmp -/** @pred open_chars_stream(+ _Chars_, - _Stream_) - - - -Open the list of character codes _Chars_ as a stream _Stream_. - - -*/ -EOF -sed -e "17r tmp" /Users/vsc/git/yap-6.3/library/charsio.yap > x - mv x /Users/vsc/git/yap-6.3/library/charsio.yap - -#false -cat << "EOF" > tmp -/** @pred number_to_chars(+ _Number_, - _Result_) - - - -Convert the number _Number_ to the string of character codes - _Result_. - - -*/ -EOF -sed -e "17r tmp" /Users/vsc/git/yap-6.3/library/charsio.yap > x - mv x /Users/vsc/git/yap-6.3/library/charsio.yap - -#false -cat << "EOF" > tmp -/** @pred number_to_chars(+ _Number_, - _Result0_, - _Result_) - - -Convert the atom _Number_ to the difference list of character codes - _Result-Result0_. - - -*/ -EOF -sed -e "17r tmp" /Users/vsc/git/yap-6.3/library/charsio.yap > x - mv x /Users/vsc/git/yap-6.3/library/charsio.yap - -#false -cat << "EOF" > tmp -/** @pred format_to_chars(+ _Form_, + _Args_, - _Result_, - _Result0_) - - -Execute the built-in procedure format/2 with form _Form_ and -arguments _Args_ outputting the result to the difference list of -character codes _Result-Result0_. - - -*/ -EOF -sed -e "17r tmp" /Users/vsc/git/yap-6.3/library/charsio.yap > x - mv x /Users/vsc/git/yap-6.3/library/charsio.yap - -#false -cat << "EOF" > tmp -/** @pred format_to_chars(+ _Form_, + _Args_, - _Result_) - - - -Execute the built-in procedure format/2 with form _Form_ and -arguments _Args_ outputting the result to the string of character -codes _Result_. - - -*/ -EOF -sed -e "17r tmp" /Users/vsc/git/yap-6.3/library/charsio.yap > x - mv x /Users/vsc/git/yap-6.3/library/charsio.yap - -#false -cat << "EOF" > tmp -/** @pred atom_to_chars(+ _Atom_, - _Result_) - - - -Convert the atom _Atom_ to the string of character codes - _Result_. - - -*/ -EOF -sed -e "17r tmp" /Users/vsc/git/yap-6.3/library/charsio.yap > x - mv x /Users/vsc/git/yap-6.3/library/charsio.yap - -#false -cat << "EOF" > tmp -/** @pred atom_to_chars(+ _Atom_, - _Result0_, - _Result_) - - -Convert the atom _Atom_ to the difference list of character codes - _Result-Result0_. - - -*/ -EOF -sed -e "17r tmp" /Users/vsc/git/yap-6.3/library/charsio.yap > x - mv x /Users/vsc/git/yap-6.3/library/charsio.yap - -#false -cat << "EOF" > tmp -/** @pred on_cleanup(+ _CleanUpGoal_) - - -Any Predicate might registers a _CleanUpGoal_. The - _CleanUpGoal_ is put onto the current cleanup context. All such -CleanUpGoals are executed in reverse order of their registration when -the surrounding cleanup-context ends. This call will throw an exception -if a predicate tries to register a _CleanUpGoal_ outside of any -cleanup-context. - - -*/ -EOF -sed -e "2r tmp" /Users/vsc/git/yap-6.3/library/cleanup.yap > x - mv x /Users/vsc/git/yap-6.3/library/cleanup.yap - -#false -cat << "EOF" > tmp -/** @pred cleanup_all - - -Calls all pending CleanUpGoals and resets the cleanup-system to an -initial state. Should only be used as one of the last calls in the -main program. - - - -There are some private predicates which could be used in special -cases, such as manually setting up cleanup-contexts and registering -CleanUpGoals for other than the current cleanup-context. -Read the Source Luke. - - - */ -EOF -sed -e "2r tmp" /Users/vsc/git/yap-6.3/library/cleanup.yap > x - mv x /Users/vsc/git/yap-6.3/library/cleanup.yap - -#false -cat << "EOF" > tmp -/** @pred call_cleanup(: _Goal_) - - -Execute goal _Goal_ within a cleanup-context. Called predicates -might register cleanup Goals which are called right after the end of -the call to _Goal_. Cuts and exceptions inside Goal do not prevent the -execution of the cleanup calls. call_cleanup might be nested. - - -*/ -EOF -sed -e "2r tmp" /Users/vsc/git/yap-6.3/library/cleanup.yap > x - mv x /Users/vsc/git/yap-6.3/library/cleanup.yap - -#false -cat << "EOF" > tmp -/** @pred attr_portray_hook(+ _AttValue_,+ _Var_) - - - -Called by write_term/2 and friends for each attribute if the option -`attributes(portray)` is in effect. If the hook succeeds the -attribute is considered printed. Otherwise `Module = ...` is -printed to indicate the existence of a variable. - - -*/ -EOF -sed -e "304r tmp" /Users/vsc/git/yap-6.3/library/clp/clp_distinct.pl > x - mv x /Users/vsc/git/yap-6.3/library/clp/clp_distinct.pl - -#true -cat << "EOF" > tmp -/** @pred all_distinct( _Cs_, _Vs_) - -verifies whether all elements of a list are different. Also tests if -all the sums between a list of constants and a list of variables are -different. - -This is a formulation of the queens problem that uses both versions of `all_different`: - -~~~~~{.prolog} -queens(N, Queens) :- - length(Queens, N), - Queens ins 1..N, - all_distinct(Queens), - foldl(inc, Queens, Inc, 0, _), % [0, 1, 2, .... ] - foldl(dec, Queens, Dec, 0, _), % [0, -1, -2, ... ] - all_distinct(Inc,Queens), - all_distinct(Dec,Queens), - labeling([], Queens). - -inc(_, I0, I0, I) :- - I is I0+1. - -dec(_, I0, I0, I) :- - I is I0-1. -~~~~~ - -The next example uses `all_different/1` and the functionality of the matrix package to verify that all squares in -sudoku have a different value: - -~~~~~{.prolog} - foreach( [I,J] ins 0..2 , - all_different(M[I*3+(0..2),J*3+(0..2)]) ), -~~~~~ - - -*/ -EOF -sed -e "157r tmp" /Users/vsc/git/yap-6.3/library/clp/clp_distinct.pl > x - mv x /Users/vsc/git/yap-6.3/library/clp/clp_distinct.pl - -#true -cat << "EOF" > tmp -/** @pred transpose(+ _Graph_, - _NewGraph_) - - -Unify _NewGraph_ with a new graph obtained from _Graph_ by -replacing all edges of the form _V1-V2_ by edges of the form - _V2-V1_. The cost is `O(|V|^2)`. In the next example: - -~~~~~{.prolog} -?- transpose([1-[3,5],2-[4],3-[], - 4-[5],5-[],6-[],7-[],8-[]], NL). - -NL = [1-[],2-[],3-[1],4-[2],5-[1,4],6-[],7-[],8-[]] -~~~~~ -Notice that an undirected graph is its own transpose. - - -*/ -EOF -sed -e "201r tmp" /Users/vsc/git/yap-6.3/library/clp/clpfd.pl > x - mv x /Users/vsc/git/yap-6.3/library/clp/clpfd.pl - -#true -cat << "EOF" > tmp -/** @pred scalar_product(+ _Cs_, + _Vs_, + _Rel_, ? _V_ ) - -The product of constant _Cs_ by _Vs_ must be in relation - _Rel_ with _V_ . - - -*/ -EOF -sed -e "201r tmp" /Users/vsc/git/yap-6.3/library/clp/clpfd.pl > x - mv x /Users/vsc/git/yap-6.3/library/clp/clpfd.pl - -#true -cat << "EOF" > tmp -/** @pred labeling( _Opts_, _Xs_) -performs labeling, several variable and value selection options are -available. The defaults are `min` and `min_step`. - -Variable selection options are as follows: - -+ leftmost -choose the first variable -+ min -choose one of the variables with smallest minimum value -+ max -choose one of the variables with greatest maximum value -+ ff -choose one of the most constrained variables, that is, with the smallest -domain. - - -Given that we selected a variable, the values chosen for branching may -be: - -+ min_step -smallest value -+ max_step -largest value -+ bisect -median -+ enum -all value starting from the minimum. - - - -*/ -EOF -sed -e "201r tmp" /Users/vsc/git/yap-6.3/library/clp/clpfd.pl > x - mv x /Users/vsc/git/yap-6.3/library/clp/clpfd.pl - -#true -cat << "EOF" > tmp -/** @pred all_different( _Vs_ ) - -Verifies whether all elements of a list are different. -*/ -EOF -sed -e "201r tmp" /Users/vsc/git/yap-6.3/library/clp/clpfd.pl > x - mv x /Users/vsc/git/yap-6.3/library/clp/clpfd.pl - -#true -cat << "EOF" > tmp -/** @pred _X_ #\= _Y_ is semidet -disequality - -*/ -EOF -sed -e "201r tmp" /Users/vsc/git/yap-6.3/library/clp/clpfd.pl > x - mv x /Users/vsc/git/yap-6.3/library/clp/clpfd.pl - -#true -cat << "EOF" > tmp -/** @pred _X_ #>= _Y_ is semidet -larger or equal - -*/ -EOF -sed -e "201r tmp" /Users/vsc/git/yap-6.3/library/clp/clpfd.pl > x - mv x /Users/vsc/git/yap-6.3/library/clp/clpfd.pl - -#true -cat << "EOF" > tmp -/** @pred _X_ #> _Y_ is semidet -larger - -*/ -EOF -sed -e "201r tmp" /Users/vsc/git/yap-6.3/library/clp/clpfd.pl > x - mv x /Users/vsc/git/yap-6.3/library/clp/clpfd.pl - -#true -cat << "EOF" > tmp -/** @pred _X_ #==> _B_ is det -Reified implication - -*/ -EOF -sed -e "201r tmp" /Users/vsc/git/yap-6.3/library/clp/clpfd.pl > x - mv x /Users/vsc/git/yap-6.3/library/clp/clpfd.pl - -#true -cat << "EOF" > tmp -/** @pred _X_ #=< _Y_ is semidet -smaller - -*/ -EOF -sed -e "201r tmp" /Users/vsc/git/yap-6.3/library/clp/clpfd.pl > x - mv x /Users/vsc/git/yap-6.3/library/clp/clpfd.pl - -#true -cat << "EOF" > tmp -/** @pred _X_ #= _Y_ is semidet -equality - -*/ -EOF -sed -e "201r tmp" /Users/vsc/git/yap-6.3/library/clp/clpfd.pl > x - mv x /Users/vsc/git/yap-6.3/library/clp/clpfd.pl - -#true -cat << "EOF" > tmp -/** @pred _X_ #<==> _B_ is det -reified equivalence - -*/ -EOF -sed -e "201r tmp" /Users/vsc/git/yap-6.3/library/clp/clpfd.pl > x - mv x /Users/vsc/git/yap-6.3/library/clp/clpfd.pl - -#true -cat << "EOF" > tmp -/** @pred _X_ #< _Y_ is semidet -smaller or equal - -Arguments to this constraint may be an arithmetic expression with +, --, \\*, integer division /, min, max, sum, -count, and -abs. Boolean variables support conjunction (/\), disjunction (\/), -implication (=>), equivalence (<=>), and xor. The sum constraint allows a two argument version using the -`where` conditional, in Zinc style. - -The send more money equation may be written as: - -~~~~~{.prolog} - 1000*S + 100*E + 10*N + D + - 1000*M + 100*O + 10*R + E #= -10000*M + 1000*O + 100*N + 10*E + Y, -~~~~~ - -This example uses `where` to select from -column _I_ the elements that have value under _M_: - -~~~~~{.prolog} -OutFlow[I] #= sum(J in 1..N where D[J,I]count constraint counts the number of elements that match a -certain constant or variable (integer sets are not available). - - -*/ -EOF -sed -e "201r tmp" /Users/vsc/git/yap-6.3/library/clp/clpfd.pl > x - mv x /Users/vsc/git/yap-6.3/library/clp/clpfd.pl - -#true -cat << "EOF" > tmp -/** @pred _X_ #< _B_ is det -reified implication - -As an example. consider finding out the people who wanted to sit -next to a friend and that are are actually sitting together: - -~~~~~{.prolog} -preference_satisfied(X-Y, B) :- - abs(X - Y) #= 1 #<==> B. -~~~~~ -Note that not all constraints may be reifiable. - - -*/ -EOF -sed -e "201r tmp" /Users/vsc/git/yap-6.3/library/clp/clpfd.pl > x - mv x /Users/vsc/git/yap-6.3/library/clp/clpfd.pl - -#false -cat << "EOF" > tmp -/** @pred db_usage - - -Give general overview of data-base usage in the system. - - -*/ -EOF -sed -e "12r tmp" /Users/vsc/git/yap-6.3/library/dbusage.yap > x - mv x /Users/vsc/git/yap-6.3/library/dbusage.yap - -#false -cat << "EOF" > tmp -/** @pred db_static(+ _Threshold_) - -List memory usage for every static predicate. Predicate must use more -than _Threshold_ bytes. - - -*/ -EOF -sed -e "12r tmp" /Users/vsc/git/yap-6.3/library/dbusage.yap > x - mv x /Users/vsc/git/yap-6.3/library/dbusage.yap - -#false -cat << "EOF" > tmp -/** @pred db_static - - -List memory usage for every static predicate. - - -*/ -EOF -sed -e "12r tmp" /Users/vsc/git/yap-6.3/library/dbusage.yap > x - mv x /Users/vsc/git/yap-6.3/library/dbusage.yap - -#false -cat << "EOF" > tmp -/** @pred db_dynamic(+ _Threshold_) - -List memory usage for every dynamic predicate. Predicate must use more -than _Threshold_ bytes. - - - - - */ -EOF -sed -e "12r tmp" /Users/vsc/git/yap-6.3/library/dbusage.yap > x - mv x /Users/vsc/git/yap-6.3/library/dbusage.yap - -#false -cat << "EOF" > tmp -/** @pred db_dynamic - - -List memory usage for every dynamic predicate. - - -*/ -EOF -sed -e "12r tmp" /Users/vsc/git/yap-6.3/library/dbusage.yap > x - mv x /Users/vsc/git/yap-6.3/library/dbusage.yap - -#false -cat << "EOF" > tmp -/** @pred ugraph_to_dgraph( + _UGraph_, - _Graph_) - - -Unify _Graph_ with the directed graph obtain from _UGraph_, -represented in the form used in the _ugraphs_ unweighted graphs -library. - - -*/ -EOF -sed -e "277r tmp" /Users/vsc/git/yap-6.3/library/dgraphs.yap > x - mv x /Users/vsc/git/yap-6.3/library/dgraphs.yap - -#false -cat << "EOF" > tmp -/** @pred dgraph_vertices(+ _Graph_, - _Vertices_) - - -Unify _Vertices_ with all vertices appearing in graph - _Graph_. - - -*/ -EOF -sed -e "277r tmp" /Users/vsc/git/yap-6.3/library/dgraphs.yap > x - mv x /Users/vsc/git/yap-6.3/library/dgraphs.yap - -#false -cat << "EOF" > tmp -/** @pred dgraph_transpose(+ _Graph_, - _Transpose_) - - -Unify _NewGraph_ with a new graph obtained from _Graph_ by -replacing all edges of the form _V1-V2_ by edges of the form - _V2-V1_. - - -*/ -EOF -sed -e "277r tmp" /Users/vsc/git/yap-6.3/library/dgraphs.yap > x - mv x /Users/vsc/git/yap-6.3/library/dgraphs.yap - -#false -cat << "EOF" > tmp -/** @pred dgraph_transitive_closure(+ _Graph_, - _Closure_) - - -Unify _Closure_ with the transitive closure of graph _Graph_. - - -*/ -EOF -sed -e "277r tmp" /Users/vsc/git/yap-6.3/library/dgraphs.yap > x - mv x /Users/vsc/git/yap-6.3/library/dgraphs.yap - -#false -cat << "EOF" > tmp -/** @pred dgraph_top_sort(+ _Graph_, - _Vertices_, ? _Vertices0_) - -Unify the difference list _Vertices_- _Vertices0_ with the -topological sort of graph _Graph_. - - -*/ -EOF -sed -e "277r tmp" /Users/vsc/git/yap-6.3/library/dgraphs.yap > x - mv x /Users/vsc/git/yap-6.3/library/dgraphs.yap - -#false -cat << "EOF" > tmp -/** @pred dgraph_top_sort(+ _Graph_, - _Vertices_) - - -Unify _Vertices_ with the topological sort of graph _Graph_. - - -*/ -EOF -sed -e "277r tmp" /Users/vsc/git/yap-6.3/library/dgraphs.yap > x - mv x /Users/vsc/git/yap-6.3/library/dgraphs.yap - -#false -cat << "EOF" > tmp -/** @pred dgraph_to_ugraph(+ _Graph_, - _UGraph_) - - -Unify _UGraph_ with the representation used by the _ugraphs_ -unweighted graphs library, that is, a list of the form - _V-Neighbors_, where _V_ is a node and _Neighbors_ the nodes -children. - - -*/ -EOF -sed -e "277r tmp" /Users/vsc/git/yap-6.3/library/dgraphs.yap > x - mv x /Users/vsc/git/yap-6.3/library/dgraphs.yap - -#false -cat << "EOF" > tmp -/** @pred dgraph_symmetric_closure(+ _Graph_, - _Closure_) - - -Unify _Closure_ with the symmetric closure of graph _Graph_, -that is, if _Closure_ contains an edge _U-V_ it must also -contain the edge _V-U_. - - -*/ -EOF -sed -e "277r tmp" /Users/vsc/git/yap-6.3/library/dgraphs.yap > x - mv x /Users/vsc/git/yap-6.3/library/dgraphs.yap - -#false -cat << "EOF" > tmp -/** @pred dgraph_reachable(+ _Vertex_, + _Graph_, ? _Edges_) - - -The path _Path_ is a path starting at vertex _Vertex_ in graph - _Graph_. - - -*/ -EOF -sed -e "277r tmp" /Users/vsc/git/yap-6.3/library/dgraphs.yap > x - mv x /Users/vsc/git/yap-6.3/library/dgraphs.yap - -#false -cat << "EOF" > tmp -/** @pred dgraph_path(+ _Vertex_, + _Vertex1_, + _Graph_, ? _Path_) - -The path _Path_ is a path starting at vertex _Vertex_ in graph - _Graph_ and ending at path _Vertex2_. - - -*/ -EOF -sed -e "277r tmp" /Users/vsc/git/yap-6.3/library/dgraphs.yap > x - mv x /Users/vsc/git/yap-6.3/library/dgraphs.yap - -#false -cat << "EOF" > tmp -/** @pred dgraph_path(+ _Vertex_, + _Graph_, ? _Path_) - - -The path _Path_ is a path starting at vertex _Vertex_ in graph - _Graph_. - - -*/ -EOF -sed -e "277r tmp" /Users/vsc/git/yap-6.3/library/dgraphs.yap > x - mv x /Users/vsc/git/yap-6.3/library/dgraphs.yap - -#false -cat << "EOF" > tmp -/** @pred dgraph_neighbours(+ _Vertex_, + _Graph_, - _Vertices_) - - -Unify _Vertices_ with the list of neighbours of vertex _Vertex_ -in _Graph_. - - -*/ -EOF -sed -e "277r tmp" /Users/vsc/git/yap-6.3/library/dgraphs.yap > x - mv x /Users/vsc/git/yap-6.3/library/dgraphs.yap - -#false -cat << "EOF" > tmp -/** @pred dgraph_neighbors(+ _Vertex_, + _Graph_, - _Vertices_) - - -Unify _Vertices_ with the list of neighbors of vertex _Vertex_ -in _Graph_. If the vertice is not in the graph fail. - - -*/ -EOF -sed -e "277r tmp" /Users/vsc/git/yap-6.3/library/dgraphs.yap > x - mv x /Users/vsc/git/yap-6.3/library/dgraphs.yap - -#false -cat << "EOF" > tmp -/** @pred dgraph_min_paths(+ _V1_, + _Graph_, - _Paths_) - - -Unify the list _Paths_ with the minimal cost paths from node - _N1_ to the nodes in graph _Graph_. - - -*/ -EOF -sed -e "277r tmp" /Users/vsc/git/yap-6.3/library/dgraphs.yap > x - mv x /Users/vsc/git/yap-6.3/library/dgraphs.yap - -#false -cat << "EOF" > tmp -/** @pred dgraph_min_path(+ _V1_, + _V1_, + _Graph_, - _Path_, ? _Costt_) - - -Unify the list _Path_ with the minimal cost path between nodes - _N1_ and _N2_ in graph _Graph_. Path _Path_ has cost - _Cost_. - - -*/ -EOF -sed -e "277r tmp" /Users/vsc/git/yap-6.3/library/dgraphs.yap > x - mv x /Users/vsc/git/yap-6.3/library/dgraphs.yap - -#false -cat << "EOF" > tmp -/** @pred dgraph_max_path(+ _V1_, + _V1_, + _Graph_, - _Path_, ? _Costt_) - - -Unify the list _Path_ with the maximal cost path between nodes - _N1_ and _N2_ in graph _Graph_. Path _Path_ has cost - _Cost_. - - -*/ -EOF -sed -e "277r tmp" /Users/vsc/git/yap-6.3/library/dgraphs.yap > x - mv x /Users/vsc/git/yap-6.3/library/dgraphs.yap - -#false -cat << "EOF" > tmp -/** @pred dgraph_leaves(+ _Graph_, ? _Vertices_) - - -The vertices _Vertices_ have no outgoing edge in graph - _Graph_. - - - - - */ -EOF -sed -e "277r tmp" /Users/vsc/git/yap-6.3/library/dgraphs.yap > x - mv x /Users/vsc/git/yap-6.3/library/dgraphs.yap - -#false -cat << "EOF" > tmp -/** @pred dgraph_isomorphic(+ _Vs_, + _NewVs_, + _G0_, - _GF_) - - -Unify the list _GF_ with the graph isomorphic to _G0_ where -vertices in _Vs_ map to vertices in _NewVs_. - - -*/ -EOF -sed -e "277r tmp" /Users/vsc/git/yap-6.3/library/dgraphs.yap > x - mv x /Users/vsc/git/yap-6.3/library/dgraphs.yap - -#false -cat << "EOF" > tmp -/** @pred dgraph_edges(+ _Graph_, - _Edges_) - - -Unify _Edges_ with all edges appearing in graph - _Graph_. - - -*/ -EOF -sed -e "277r tmp" /Users/vsc/git/yap-6.3/library/dgraphs.yap > x - mv x /Users/vsc/git/yap-6.3/library/dgraphs.yap - -#false -cat << "EOF" > tmp -/** @pred dgraph_edge(+ _N1_, + _N2_, + _Graph_) - - -Edge _N1_- _N2_ is an edge in directed graph _Graph_. - - -*/ -EOF -sed -e "277r tmp" /Users/vsc/git/yap-6.3/library/dgraphs.yap > x - mv x /Users/vsc/git/yap-6.3/library/dgraphs.yap - -#false -cat << "EOF" > tmp -/** @pred dgraph_del_vertices(+ _Graph_, + _Vertices_, - _NewGraph_) - - -Unify _NewGraph_ with a new graph obtained by deleting the list of -vertices _Vertices_ and all the edges that start from or go to a -vertex in _Vertices_ to the graph _Graph_. - - -*/ -EOF -sed -e "277r tmp" /Users/vsc/git/yap-6.3/library/dgraphs.yap > x - mv x /Users/vsc/git/yap-6.3/library/dgraphs.yap - -#false -cat << "EOF" > tmp -/** @pred dgraph_del_vertex(+ _Graph_, + _Vertex_, - _NewGraph_) - - -Unify _NewGraph_ with a new graph obtained by deleting vertex - _Vertex_ and all the edges that start from or go to _Vertex_ to -the graph _Graph_. - - -*/ -EOF -sed -e "277r tmp" /Users/vsc/git/yap-6.3/library/dgraphs.yap > x - mv x /Users/vsc/git/yap-6.3/library/dgraphs.yap - -#false -cat << "EOF" > tmp -/** @pred dgraph_del_edges(+ _Graph_, + _Edges_, - _NewGraph_) - - -Unify _NewGraph_ with a new graph obtained by removing the list of -edges _Edges_ from the graph _Graph_. Notice that no vertices -are deleted. - - -*/ -EOF -sed -e "277r tmp" /Users/vsc/git/yap-6.3/library/dgraphs.yap > x - mv x /Users/vsc/git/yap-6.3/library/dgraphs.yap - -#false -cat << "EOF" > tmp -/** @pred dgraph_del_edge(+ _Graph_, + _N1_, + _N2_, - _NewGraph_) - - -Succeeds if _NewGraph_ unifies with a new graph obtained by -removing the edge _N1_- _N2_ from the graph _Graph_. Notice -that no vertices are deleted. - - -*/ -EOF -sed -e "277r tmp" /Users/vsc/git/yap-6.3/library/dgraphs.yap > x - mv x /Users/vsc/git/yap-6.3/library/dgraphs.yap - -#false -cat << "EOF" > tmp -/** @pred dgraph_compose(+ _Graph1_, + _Graph2_, - _ComposedGraph_) - - -Unify _ComposedGraph_ with a new graph obtained by composing - _Graph1_ and _Graph2_, ie, _ComposedGraph_ has an edge - _V1-V2_ iff there is a _V_ such that _V1-V_ in _Graph1_ -and _V-V2_ in _Graph2_. - - -*/ -EOF -sed -e "277r tmp" /Users/vsc/git/yap-6.3/library/dgraphs.yap > x - mv x /Users/vsc/git/yap-6.3/library/dgraphs.yap - -#false -cat << "EOF" > tmp -/** @pred dgraph_complement(+ _Graph_, - _NewGraph_) - - -Unify _NewGraph_ with the graph complementary to _Graph_. - - -*/ -EOF -sed -e "277r tmp" /Users/vsc/git/yap-6.3/library/dgraphs.yap > x - mv x /Users/vsc/git/yap-6.3/library/dgraphs.yap - -#false -cat << "EOF" > tmp -/** @pred dgraph_add_vertices(+ _Graph_, + _Vertices_, - _NewGraph_) - - -Unify _NewGraph_ with a new graph obtained by adding the list of -vertices _Vertices_ to the graph _Graph_. - - -*/ -EOF -sed -e "277r tmp" /Users/vsc/git/yap-6.3/library/dgraphs.yap > x - mv x /Users/vsc/git/yap-6.3/library/dgraphs.yap - -#false -cat << "EOF" > tmp -/** @pred dgraph_add_vertices(+ _Graph_, + _Vertex_, - _NewGraph_) - - -Unify _NewGraph_ with a new graph obtained by adding -vertex _Vertex_ to the graph _Graph_. - - -*/ -EOF -sed -e "277r tmp" /Users/vsc/git/yap-6.3/library/dgraphs.yap > x - mv x /Users/vsc/git/yap-6.3/library/dgraphs.yap - -#false -cat << "EOF" > tmp -/** @pred dgraph_add_edges(+ _Graph_, + _Edges_, - _NewGraph_) - - -Unify _NewGraph_ with a new graph obtained by adding the list of -edges _Edges_ to the graph _Graph_. - - -*/ -EOF -sed -e "277r tmp" /Users/vsc/git/yap-6.3/library/dgraphs.yap > x - mv x /Users/vsc/git/yap-6.3/library/dgraphs.yap - -#false -cat << "EOF" > tmp -/** @pred dgraph_add_edge(+ _Graph_, + _N1_, + _N2_, - _NewGraph_) - - -Unify _NewGraph_ with a new graph obtained by adding the edge - _N1_- _N2_ to the graph _Graph_. - - -*/ -EOF -sed -e "277r tmp" /Users/vsc/git/yap-6.3/library/dgraphs.yap > x - mv x /Users/vsc/git/yap-6.3/library/dgraphs.yap - -#true -cat << "EOF" > tmp -/** @pred foreach(:Generator, : _Goal_) - - -True if the conjunction of instances of _Goal_ using the -bindings from Generator is true. Unlike forall/2, which runs a -failure-driven loop that proves _Goal_ for each solution of -Generator, foreach creates a conjunction. Each member of the -conjunction is a copy of _Goal_, where the variables it shares -with Generator are filled with the values from the corresponding -solution. - -The implementation executes forall/2 if _Goal_ does not contain -any variables that are not shared with Generator. - -Here is an example: - -~~~~~{.prolog} - ?- foreach( between(1,4,X), dif(X,Y)), Y = 5. - Y = 5 - ?- foreach( between(1,4,X), dif(X,Y)), Y = 3. - No -~~~~~ - -Notice that _Goal_ is copied repeatedly, which may cause -problems if attributed variables are involved. - - -*/ -EOF -sed -e "222r tmp" /Users/vsc/git/yap-6.3/library/dialect/bprolog/foreach.pl > x - mv x /Users/vsc/git/yap-6.3/library/dialect/bprolog/foreach.pl - -#true -cat << "EOF" > tmp -/** @pred foreach( _Sequence_, _Goal_) - - -Deterministic iterator. The ranges are given by _Sequence_ that is -either ` _I_ in _M_.. _N_`, or of the form -`[ _I_, _J_] ins _M_.. _N_`, or a list of the above conditions. - -Variables in the goal are assumed to be global, ie, share a single value -in the execution. The exceptions are the iteration indices. Moreover, if -the goal is of the form ` _Locals_^ _G_` all variables -occurring in _Locals_ are marked as local. As an example: - -~~~~~{.prolog} -foreach([I,J] ins 1..N, A^(A <==M[I,J], N[I] <== N[I] + A*A) ) -~~~~~ -the variables _I_, _J_ and _A_ are duplicated for every -call (local), whereas the matrices _M_ and _N_ are shared -throughout the execution (global). - - -*/ -EOF -sed -e "222r tmp" /Users/vsc/git/yap-6.3/library/dialect/bprolog/foreach.pl > x - mv x /Users/vsc/git/yap-6.3/library/dialect/bprolog/foreach.pl - -#true -cat << "EOF" > tmp -/** @pred foreach( _Sequence_, _Goal_, _Acc0_, _AccF_) - -Deterministic iterator with accumulator style arguments. - - -*/ -EOF -sed -e "145r tmp" /Users/vsc/git/yap-6.3/library/dialect/bprolog/foreach.pl > x - mv x /Users/vsc/git/yap-6.3/library/dialect/bprolog/foreach.pl - -#false -cat << "EOF" > tmp -/** @pred arg(+ _N_,+ _T_, _A_) is iso - - -Succeeds if the argument _N_ of the term _T_ unifies with - _A_. The arguments are numbered from 1 to the arity of the term. - -The current version will generate an error if _T_ or _N_ are -unbound, if _T_ is not a compound term, of if _N_ is not a positive -integer. Note that previous versions of YAP would fail silently -under these errors. - - -*/ -EOF -sed -e "192r tmp" /Users/vsc/git/yap-6.3/library/dialect/swi.yap > x - mv x /Users/vsc/git/yap-6.3/library/dialect/swi.yap - -#false -cat << "EOF" > tmp -/** @pred atom_concat(? _A1_,? _A2_,? _A12_) is iso - -The predicate holds when the third argument unifies with an atom, and -the first and second unify with atoms such that their representations -concatenated are the representation for _A12_. - -If _A1_ and _A2_ are unbound, the built-in will find all the atoms -that concatenated give _A12_. - - -*/ -EOF -sed -e "177r tmp" /Users/vsc/git/yap-6.3/library/dialect/swi.yap > x - mv x /Users/vsc/git/yap-6.3/library/dialect/swi.yap - -#false -cat << "EOF" > tmp -/** @pred concat_atom(? _List_,+ _Separator_,? _Atom_) - - -Creates an atom just like concat_atom/2, but inserts _Separator_ -between each pair of atoms. For example: - -~~~~~ -?- concat_atom([gnu, gnat], ', ', A). - -A = 'gnu, gnat' -~~~~~ - -(Unimplemented) This predicate can also be used to split atoms by -instantiating _Separator_ and _Atom_: - -~~~~~ -?- concat_atom(L, -, 'gnu-gnat'). - -L = [gnu, gnat] -~~~~~ - - -*/ -EOF -sed -e "71r tmp" /Users/vsc/git/yap-6.3/library/dialect/swi.yap > x - mv x /Users/vsc/git/yap-6.3/library/dialect/swi.yap - -#false -cat << "EOF" > tmp -/** @pred concat_atom(+ _List_,- _Atom_) - - - - _List_ is a list of atoms, integers or floating point numbers. Succeeds -if _Atom_ can be unified with the concatenated elements of _List_. If - _List_ has exactly 2 elements it is equivalent to `atom_concat/3`, -allowing for variables in the list. - - -*/ -EOF -sed -e "71r tmp" /Users/vsc/git/yap-6.3/library/dialect/swi.yap > x - mv x /Users/vsc/git/yap-6.3/library/dialect/swi.yap - -#false -cat << "EOF" > tmp -/** @pred chdir(+ _Dir_) - - - -Compatibility predicate. New code should use working_directory/2. - - -*/ -EOF -sed -e "71r tmp" /Users/vsc/git/yap-6.3/library/dialect/swi.yap > x - mv x /Users/vsc/git/yap-6.3/library/dialect/swi.yap - -#true -cat << "EOF" > tmp -/** @pred time_file(+ _File_,- _Time_) - - -Unify the last modification time of _File_ with - _Time_. _Time_ is a floating point number expressing the seconds -elapsed since Jan 1, 1970. - - -*/ -EOF -sed -e "71r tmp" /Users/vsc/git/yap-6.3/library/dialect/swi.yap > x - mv x /Users/vsc/git/yap-6.3/library/dialect/swi.yap - -#true -cat << "EOF" > tmp -/** @pred min(+ _Expression_) -Minimizes _Expression_ within the current constraint store. This is -the same as computing the infimum and equation the expression to that -infimum. - - -*/ -EOF -sed -e "75r tmp" /Users/vsc/git/yap-6.3/library/exo_interval.yap > x - mv x /Users/vsc/git/yap-6.3/library/exo_interval.yap - -#true -cat << "EOF" > tmp -/** @pred min( _X_, _Vs_) -First Argument is the least element of a list. - - -*/ -EOF -sed -e "75r tmp" /Users/vsc/git/yap-6.3/library/exo_interval.yap > x - mv x /Users/vsc/git/yap-6.3/library/exo_interval.yap - -#true -cat << "EOF" > tmp -/** @pred max(+ _Expression_) -Maximizes _Expression_ within the current constraint store. This is -the same as computing the supremum and equating the expression to that -supremum. - - -*/ -EOF -sed -e "75r tmp" /Users/vsc/git/yap-6.3/library/exo_interval.yap > x - mv x /Users/vsc/git/yap-6.3/library/exo_interval.yap - -#true -cat << "EOF" > tmp -/** @pred max( _X_, _Vs_) -First Argument is the greatest element of a list. - -+ lex_order( _Vs_) -All elements must be ordered. - - - -The following predicates control search: - - -*/ -EOF -sed -e "75r tmp" /Users/vsc/git/yap-6.3/library/exo_interval.yap > x - mv x /Users/vsc/git/yap-6.3/library/exo_interval.yap - -#false -cat << "EOF" > tmp -/** @pred min_of_heap(+ _Heap_, - _Key_, - _Datum_) - - -Returns the Key-Datum pair at the top of the heap (which is of course -the pair with the smallest Key), but does not remove it from the heap. - - -*/ -EOF -sed -e "131r tmp" /Users/vsc/git/yap-6.3/library/heaps.yap > x - mv x /Users/vsc/git/yap-6.3/library/heaps.yap - -#false -cat << "EOF" > tmp -/** @pred min_of_heap(+ _Heap_, - _Key1_, - _Datum1_, -- _Key2_, - _Datum2_) - -Returns the smallest (Key1) and second smallest (Key2) pairs in the -heap, without deleting them. - - - - */ -EOF -sed -e "131r tmp" /Users/vsc/git/yap-6.3/library/heaps.yap > x - mv x /Users/vsc/git/yap-6.3/library/heaps.yap - -#false -cat << "EOF" > tmp -/** @pred list_to_heap(+ _List_, - _Heap_) - - -Takes a list of _Key-Datum_ pairs (such as keysort could be used to sort) -and forms them into a heap. - - -*/ -EOF -sed -e "131r tmp" /Users/vsc/git/yap-6.3/library/heaps.yap > x - mv x /Users/vsc/git/yap-6.3/library/heaps.yap - -#false -cat << "EOF" > tmp -/** @pred heap_to_list(+ _Heap_, - _List_) - - -Returns the current set of _Key-Datum_ pairs in the _Heap_ as a - _List_, sorted into ascending order of _Keys_. - - -*/ -EOF -sed -e "131r tmp" /Users/vsc/git/yap-6.3/library/heaps.yap > x - mv x /Users/vsc/git/yap-6.3/library/heaps.yap - -#false -cat << "EOF" > tmp -/** @pred heap_size(+ _Heap_, - _Size_) - - -Reports the number of elements currently in the heap. - - -*/ -EOF -sed -e "131r tmp" /Users/vsc/git/yap-6.3/library/heaps.yap > x - mv x /Users/vsc/git/yap-6.3/library/heaps.yap - -#false -cat << "EOF" > tmp -/** @pred get_from_heap(+ _Heap_,- _key_,- _Datum_,- _Heap_) - - -Returns the _Key-Datum_ pair in _OldHeap_ with the smallest - _Key_, and also a _Heap_ which is the _OldHeap_ with that -pair deleted. - - -*/ -EOF -sed -e "131r tmp" /Users/vsc/git/yap-6.3/library/heaps.yap > x - mv x /Users/vsc/git/yap-6.3/library/heaps.yap - -#false -cat << "EOF" > tmp -/** @pred empty_heap(? _Heap_) - - -Succeeds if _Heap_ is an empty heap. - - -*/ -EOF -sed -e "131r tmp" /Users/vsc/git/yap-6.3/library/heaps.yap > x - mv x /Users/vsc/git/yap-6.3/library/heaps.yap - -#false -cat << "EOF" > tmp -/** @pred mpi_wait_recv(? _Handle_,- _Status_,- _Data_) - - - -Completes a non-blocking receive operation. The predicate blocks until -a message associated with handle _Hanlde_ is buffered. The -predicate succeeds unifying _Status_ with the status of the -message and _Data_ with the message itself. - - -*/ -EOF -sed -e "188r tmp" /Users/vsc/git/yap-6.3/library/lam_mpi.yap > x - mv x /Users/vsc/git/yap-6.3/library/lam_mpi.yap - -#false -cat << "EOF" > tmp -/** @pred mpi_wait(? _Handle_,- _Status_) - - - -Completes a non-blocking operation. If the operation was a -`mpi_send`, the predicate blocks until the message is buffered -or sent by the runtime system. At this point the send buffer is -released. If the operation was a `mpi_recv`, it waits until the -message is copied to the receive buffer. _Status_ is unified with -the status of the message. - - -*/ -EOF -sed -e "188r tmp" /Users/vsc/git/yap-6.3/library/lam_mpi.yap > x - mv x /Users/vsc/git/yap-6.3/library/lam_mpi.yap - -#false -cat << "EOF" > tmp -/** @pred mpi_version(- _Major_,- _Minor_) - - -Unifies _Major_ and _Minor_ with, respectively, the major and minor version of the MPI. - - -*/ -EOF -sed -e "188r tmp" /Users/vsc/git/yap-6.3/library/lam_mpi.yap > x - mv x /Users/vsc/git/yap-6.3/library/lam_mpi.yap - -#false -cat << "EOF" > tmp -/** @pred mpi_test_recv(? _Handle_,- _Status_,- _Data_) - - - -Provides information regarding a handle. If the message associated -with handle _Hanlde_ is buffered then the predicate succeeds -unifying _Status_ with the status of the message and _Data_ -with the message itself. Otherwise, the predicate fails. - - -*/ -EOF -sed -e "188r tmp" /Users/vsc/git/yap-6.3/library/lam_mpi.yap > x - mv x /Users/vsc/git/yap-6.3/library/lam_mpi.yap - -#false -cat << "EOF" > tmp -/** @pred mpi_test(? _Handle_,- _Status_) - - - -Provides information regarding the handle _Handle_, ie., if a -communication operation has been completed. If the operation -associate with _Hanlde_ has been completed the predicate succeeds -with the completion status in _Status_, otherwise it fails. - - -*/ -EOF -sed -e "188r tmp" /Users/vsc/git/yap-6.3/library/lam_mpi.yap > x - mv x /Users/vsc/git/yap-6.3/library/lam_mpi.yap - -#true -cat << "EOF" > tmp -/** @pred mpi_send(+ _Data_,+ _Dest_,+ _Tag_) - - - -Blocking communication predicate. The message in _Data_, with tag - _Tag_, is sent immediately to the processor with rank _Dest_. -The predicate succeeds after the message being sent. - - -*/ -EOF -sed -e "188r tmp" /Users/vsc/git/yap-6.3/library/lam_mpi.yap > x - mv x /Users/vsc/git/yap-6.3/library/lam_mpi.yap - -#false -cat << "EOF" > tmp -/** @pred mpi_recv(? _Source_,? _Tag_,- _Data_) - - - -Blocking communication predicate. The predicate blocks until a message -is received from processor with rank _Source_ and tag _Tag_. -The message is placed in _Data_. - - -*/ -EOF -sed -e "188r tmp" /Users/vsc/git/yap-6.3/library/lam_mpi.yap > x - mv x /Users/vsc/git/yap-6.3/library/lam_mpi.yap - -#false -cat << "EOF" > tmp -/** @pred mpi_msg_size( _Msg_, - _MsgSize_) - - -Unify _MsgSize_ with the number of bytes YAP would need to send the -message _Msg_. - - -*/ -EOF -sed -e "188r tmp" /Users/vsc/git/yap-6.3/library/lam_mpi.yap > x - mv x /Users/vsc/git/yap-6.3/library/lam_mpi.yap - -#false -cat << "EOF" > tmp -/** @pred mpi_isend(+ _Data_,+ _Dest_,+ _Tag_,- _Handle_) - - - -Non blocking communication predicate. The message in _Data_, with -tag _Tag_, is sent whenever possible to the processor with rank - _Dest_. An _Handle_ to the message is returned to be used to -check for the status of the message, using the `mpi_wait` or -`mpi_test` predicates. Until `mpi_wait` is called, the -memory allocated for the buffer containing the message is not -released. - - -*/ -EOF -sed -e "188r tmp" /Users/vsc/git/yap-6.3/library/lam_mpi.yap > x - mv x /Users/vsc/git/yap-6.3/library/lam_mpi.yap - -#false -cat << "EOF" > tmp -/** @pred mpi_irecv(? _Source_,? _Tag_,- _Handle_) - - - -Non-blocking communication predicate. The predicate returns an - _Handle_ for a message that will be received from processor with -rank _Source_ and tag _Tag_. Note that the predicate succeeds -immediately, even if no message has been received. The predicate -`mpi_wait_recv` should be used to obtain the data associated to -the handle. - - -*/ -EOF -sed -e "188r tmp" /Users/vsc/git/yap-6.3/library/lam_mpi.yap > x - mv x /Users/vsc/git/yap-6.3/library/lam_mpi.yap - -#false -cat << "EOF" > tmp -/** @pred mpi_init - - -Sets up the mpi environment. This predicate should be called before any other MPI predicate. - - -*/ -EOF -sed -e "188r tmp" /Users/vsc/git/yap-6.3/library/lam_mpi.yap > x - mv x /Users/vsc/git/yap-6.3/library/lam_mpi.yap - -#false -cat << "EOF" > tmp -/** @pred mpi_gc - - - -Attempts to perform garbage collection with all the open handles -associated with send and non-blocking broadcasts. For each handle it -tests it and the message has been delivered the handle and the buffer -are released. - - - - - */ -EOF -sed -e "188r tmp" /Users/vsc/git/yap-6.3/library/lam_mpi.yap > x - mv x /Users/vsc/git/yap-6.3/library/lam_mpi.yap - -#false -cat << "EOF" > tmp -/** @pred mpi_finalize - - -Terminates the MPI execution environment. Every process must call this predicate before exiting. - - -*/ -EOF -sed -e "188r tmp" /Users/vsc/git/yap-6.3/library/lam_mpi.yap > x - mv x /Users/vsc/git/yap-6.3/library/lam_mpi.yap - -#false -cat << "EOF" > tmp -/** @pred mpi_comm_size(- _Size_) - - -Unifies _Size_ with the number of processes in the MPI environment. - - -*/ -EOF -sed -e "188r tmp" /Users/vsc/git/yap-6.3/library/lam_mpi.yap > x - mv x /Users/vsc/git/yap-6.3/library/lam_mpi.yap - -#false -cat << "EOF" > tmp -/** @pred mpi_comm_rank(- _Rank_) - - -Unifies _Rank_ with the rank of the current process in the MPI environment. - - -*/ -EOF -sed -e "188r tmp" /Users/vsc/git/yap-6.3/library/lam_mpi.yap > x - mv x /Users/vsc/git/yap-6.3/library/lam_mpi.yap - -#false -cat << "EOF" > tmp -/** @pred mpi_bcast2(+ _Root_, ? _Data_) - - - -Broadcasts the message _Data_ from the process with rank _Root_ -to all other processes. - - -*/ -EOF -sed -e "188r tmp" /Users/vsc/git/yap-6.3/library/lam_mpi.yap > x - mv x /Users/vsc/git/yap-6.3/library/lam_mpi.yap - -#true -cat << "EOF" > tmp -/** @pred mpi_barrier - - -Collective communication predicate. Performs a barrier -synchronization among all processes. Note that a collective -communication means that all processes call the same predicate. To be -able to use a regular `mpi_recv` to receive the messages, one -should use `mpi_bcast2`. - - -*/ -EOF -sed -e "188r tmp" /Users/vsc/git/yap-6.3/library/lam_mpi.yap > x - mv x /Users/vsc/git/yap-6.3/library/lam_mpi.yap - -#false -cat << "EOF" > tmp -/** @pred mpi_default_buffer_size(- _OldBufferSize_, ? _NewBufferSize_) - - - -The _OldBufferSize_ argument unifies with the current size of the -MPI communication buffer size and sets the communication buffer size - _NewBufferSize_. The buffer is used for assynchronous waiting and -for broadcast receivers. Notice that buffer is local at each MPI -process. - - -*/ -EOF -sed -e "1050r tmp" /Users/vsc/git/yap-6.3/library/lammpi/yap_mpi.c > x - mv x /Users/vsc/git/yap-6.3/library/lammpi/yap_mpi.c - -#false -cat << "EOF" > tmp -/** @pred mpi_ibcast(+ _Root_, + _Data_, + _Tag_) - - - -Non-blocking operation. Broadcasts the message _Data_ with tag _Tag_ -from the process with rank _Root_ to all other processes. - - -*/ -EOF -sed -e "1038r tmp" /Users/vsc/git/yap-6.3/library/lammpi/yap_mpi.c > x - mv x /Users/vsc/git/yap-6.3/library/lammpi/yap_mpi.c - -#false -cat << "EOF" > tmp -/** @pred mpi_bcast3(+ _Root_, + _Data_, + _Tag_) - - -Broadcasts the message _Data_ with tag _Tag_ from the process with rank _Root_ -to all other processes. - - -*/ -EOF -sed -e "1028r tmp" /Users/vsc/git/yap-6.3/library/lammpi/yap_mpi.c > x - mv x /Users/vsc/git/yap-6.3/library/lammpi/yap_mpi.c - -#false -cat << "EOF" > tmp -/** @pred split(+ _Line_,- _Split_) - - -Unify _Words_ with a set of strings obtained from _Line_ by -using the blank characters as separators. - - -*/ -EOF -sed -e "20r tmp" /Users/vsc/git/yap-6.3/library/lineutils.yap > x - mv x /Users/vsc/git/yap-6.3/library/lineutils.yap - -#false -cat << "EOF" > tmp -/** @pred search_for(+ _Char_,+ _Line_,- _RestOfine_) - - -Search for a character _Char_ in the list of codes _Line_, - _RestOfLine_ has the line to the right. - - -*/ -EOF -sed -e "20r tmp" /Users/vsc/git/yap-6.3/library/lineutils.yap > x - mv x /Users/vsc/git/yap-6.3/library/lineutils.yap - -#false -cat << "EOF" > tmp -/** @pred scan_natural(? _Nat_,+ _Line_,+ _RestOfLine_) - - - -Scan the list of codes _Line_ for a natural number _Nat_, zero -or a positive integer, and unify _RestOfLine_ with the remainder -of the line. - - -*/ -EOF -sed -e "20r tmp" /Users/vsc/git/yap-6.3/library/lineutils.yap > x - mv x /Users/vsc/git/yap-6.3/library/lineutils.yap - -#false -cat << "EOF" > tmp -/** @pred scan_integer(? _Int_,+ _Line_,+ _RestOfLine_) - - - -Scan the list of codes _Line_ for an integer _Nat_, either a -positive, zero, or negative integer, and unify _RestOfLine_ with -the remainder of the line. - - -*/ -EOF -sed -e "20r tmp" /Users/vsc/git/yap-6.3/library/lineutils.yap > x - mv x /Users/vsc/git/yap-6.3/library/lineutils.yap - -#false -cat << "EOF" > tmp -/** @pred glue(+ _Words_,+ _Separator_,- _Line_) - - - -Unify _Line_ with string obtained by glueing _Words_ with -the character code _Separator_. - - -*/ -EOF -sed -e "20r tmp" /Users/vsc/git/yap-6.3/library/lineutils.yap > x - mv x /Users/vsc/git/yap-6.3/library/lineutils.yap - -#false -cat << "EOF" > tmp -/** @pred filter(+ _StreamInp_, + _StreamOut_, + _Goal_) - - - -For every line _LineIn_ in stream _StreamInp_, execute -`call(Goal,LineIn,LineOut)`, and output _LineOut_ to -stream _StreamOut_. - - -*/ -EOF -sed -e "20r tmp" /Users/vsc/git/yap-6.3/library/lineutils.yap > x - mv x /Users/vsc/git/yap-6.3/library/lineutils.yap - -#false -cat << "EOF" > tmp -/** @pred file_filter_with_initialization(+ _FileIn_, + _FileOut_, + _Goal_, + _FormatCommand_, + _Arguments_) - - -Same as file_filter/3, but before starting the filter execute -`format/3` on the output stream, using _FormatCommand_ and - _Arguments_. - - - - - */ -EOF -sed -e "20r tmp" /Users/vsc/git/yap-6.3/library/lineutils.yap > x - mv x /Users/vsc/git/yap-6.3/library/lineutils.yap - -#false -cat << "EOF" > tmp -/** @pred file_filter(+ _FileIn_, + _FileOut_, + _Goal_) - - - -For every line _LineIn_ in file _FileIn_, execute -`call(Goal,LineIn,LineOut)`, and output _LineOut_ to file - _FileOut_. - - -*/ -EOF -sed -e "20r tmp" /Users/vsc/git/yap-6.3/library/lineutils.yap > x - mv x /Users/vsc/git/yap-6.3/library/lineutils.yap - -#false -cat << "EOF" > tmp -/** @pred fields(+ _Line_,- _Split_) - - -Unify _Words_ with a set of strings obtained from _Line_ by -using the blank characters as field separators. - - -*/ -EOF -sed -e "20r tmp" /Users/vsc/git/yap-6.3/library/lineutils.yap > x - mv x /Users/vsc/git/yap-6.3/library/lineutils.yap - -#true -cat << "EOF" > tmp -/** @pred fields(+ _Line_,+ _Separators_,- _Split_) - - - -Unify _Words_ with a set of strings obtained from _Line_ by -using the character codes in _Separators_ as separators for -fields. If two separators occur in a row, the field is considered -empty. As an example, consider: - -~~~~~{.prolog} -?- fields("Hello I am free"," *",S). - -S = ["Hello","","I","am","","free"] ? -~~~~~ - - -*/ -EOF -sed -e "20r tmp" /Users/vsc/git/yap-6.3/library/lineutils.yap > x - mv x /Users/vsc/git/yap-6.3/library/lineutils.yap - -#true -cat << "EOF" > tmp -/** @pred copy_line(+ _StreamInput_,+ _StreamOutput_) - - - -Copy a line from _StreamInput_ to _StreamOutput_. - - -*/ -EOF -sed -e "20r tmp" /Users/vsc/git/yap-6.3/library/lineutils.yap > x - mv x /Users/vsc/git/yap-6.3/library/lineutils.yap - -#true -cat << "EOF" > tmp -/** @pred sumlist(? _Numbers_, ? _Total_) - - -True when _Numbers_ is a list of integers, and _Total_ is their -sum. The same as sum_list/2, please do use sum_list/2 -instead. - - -*/ -EOF -sed -e "261r tmp" /Users/vsc/git/yap-6.3/library/lists.yap > x - mv x /Users/vsc/git/yap-6.3/library/lists.yap - -#false -cat << "EOF" > tmp -/** @pred sum_list(? _Numbers_, ? _Total_) - - -True when _Numbers_ is a list of numbers, and _Total_ is their sum. - - -*/ -EOF -sed -e "261r tmp" /Users/vsc/git/yap-6.3/library/lists.yap > x - mv x /Users/vsc/git/yap-6.3/library/lists.yap - -#false -cat << "EOF" > tmp -/** @pred sum_list(? _Numbers_, + _SoFar_, ? _Total_) - -True when _Numbers_ is a list of numbers, and _Total_ is the sum of their total plus _SoFar_. - - -*/ -EOF -sed -e "261r tmp" /Users/vsc/git/yap-6.3/library/lists.yap > x - mv x /Users/vsc/git/yap-6.3/library/lists.yap - -#false -cat << "EOF" > tmp -/** @pred suffix(? _Suffix_, ? _List_) - - -Holds when `append(_,Suffix,List)` holds. - - -*/ -EOF -sed -e "261r tmp" /Users/vsc/git/yap-6.3/library/lists.yap > x - mv x /Users/vsc/git/yap-6.3/library/lists.yap - -#true -cat << "EOF" > tmp -/** @pred subtract(+ _Set_, + _Delete_, ? _Result_) - - -Delete all elements from _Set_ that occur in _Delete_ (a set) -and unify the result with _Result_. Deletion is based on -unification using memberchk/2. The complexity is -`|Delete|\*|Set|`. - -See ord_subtract/3. - - - - */ -EOF -sed -e "261r tmp" /Users/vsc/git/yap-6.3/library/lists.yap > x - mv x /Users/vsc/git/yap-6.3/library/lists.yap - -#true -cat << "EOF" > tmp -/** @pred sublist(? _Sublist_, ? _List_) - - -True when both `append(_,Sublist,S)` and `append(S,_,List)` hold. - - -*/ -EOF -sed -e "261r tmp" /Users/vsc/git/yap-6.3/library/lists.yap > x - mv x /Users/vsc/git/yap-6.3/library/lists.yap - -#true -cat << "EOF" > tmp -/** @pred selectchk(? _Element_, ? _List_, ? _Residue_) - - -Semi-deterministic selection from a list. Steadfast: defines as - -~~~~~{.prolog} -selectchk(Elem, List, Residue) :- - select(Elem, List, Rest0), !, - Rest = Rest0. -~~~~~ - - -*/ -EOF -sed -e "261r tmp" /Users/vsc/git/yap-6.3/library/lists.yap > x - mv x /Users/vsc/git/yap-6.3/library/lists.yap - -#true -cat << "EOF" > tmp -/** @pred select(? _Element_, ? _List_, ? _Residue_) - - -True when _Set_ is a list, _Element_ occurs in _List_, and - _Residue_ is everything in _List_ except _Element_ (things -stay in the same order). - - -*/ -EOF -sed -e "261r tmp" /Users/vsc/git/yap-6.3/library/lists.yap > x - mv x /Users/vsc/git/yap-6.3/library/lists.yap - -#false -cat << "EOF" > tmp -/** @pred same_length(? _List1_, ? _List2_) - - -True when _List1_ and _List2_ are both lists and have the same number -of elements. No relation between the values of their elements is -implied. -Modes `same_length(-,+)` and `same_length(+,-)` generate either list given -the other; mode `same_length(-,-)` generates two lists of the same length, -in which case the arguments will be bound to lists of length 0, 1, 2, ... - - -*/ -EOF -sed -e "261r tmp" /Users/vsc/git/yap-6.3/library/lists.yap > x - mv x /Users/vsc/git/yap-6.3/library/lists.yap - -#false -cat << "EOF" > tmp -/** @pred remove_duplicates(+ _List_, ? _Pruned_) - - -Removes duplicated elements from _List_. Beware: if the _List_ has -non-ground elements, the result may surprise you. - - -*/ -EOF -sed -e "261r tmp" /Users/vsc/git/yap-6.3/library/lists.yap > x - mv x /Users/vsc/git/yap-6.3/library/lists.yap - -#true -cat << "EOF" > tmp -/** @pred permutation(+ _List_,? _Perm_) - - -True when _List_ and _Perm_ are permutations of each other. - - -*/ -EOF -sed -e "261r tmp" /Users/vsc/git/yap-6.3/library/lists.yap > x - mv x /Users/vsc/git/yap-6.3/library/lists.yap - -#false -cat << "EOF" > tmp -/** @pred numlist(+ _Low_, + _High_, + _List_) - - -If _Low_ and _High_ are integers with _Low_ =< - _High_, unify _List_ to a list `[Low, Low+1, ...High]`. See -also between/3. - - -*/ -EOF -sed -e "261r tmp" /Users/vsc/git/yap-6.3/library/lists.yap > x - mv x /Users/vsc/git/yap-6.3/library/lists.yap - -#true -cat << "EOF" > tmp -/** @pred nth1(? _N_, ? _List_, ? _Elem_, ? _Rest_) - -Unifies _Elem_ with the Nth element of _List_, counting from 1, -and _Rest_ with the other elements. It can be used to select the -Nth element of _List_ (yielding _Elem_ and _Rest_), or to -insert _Elem_ before the Nth (counting from 1) element of - _Rest_, when it yields _List_, e.g. `nth(3, List, c, [a,b,d,e])` unifies List with `[a,b,c,d,e]`. `nth/4` -can be used to insert _Elem_ after the Nth element of _Rest_. - - -*/ -EOF -sed -e "261r tmp" /Users/vsc/git/yap-6.3/library/lists.yap > x - mv x /Users/vsc/git/yap-6.3/library/lists.yap - -#true -cat << "EOF" > tmp -/** @pred nth1(? _N_, ? _List_, ? _Elem_) - - -The same as nth0/3, except that it counts from -1, that is `nth(1, [H|_], H)`. - - -*/ -EOF -sed -e "261r tmp" /Users/vsc/git/yap-6.3/library/lists.yap > x - mv x /Users/vsc/git/yap-6.3/library/lists.yap - -#true -cat << "EOF" > tmp -/** @pred nth1(+ _Index_,? _List_,? _Elem_) - - -Succeeds when the _Index_-th element of _List_ unifies with - _Elem_. Counting starts at 1. - -Set environment variable. _Name_ and _Value_ should be -instantiated to atoms or integers. The environment variable will be -passed to `shell/[0-2]` and can be requested using `getenv/2`. -They also influence expand_file_name/2. - - -*/ -EOF -sed -e "261r tmp" /Users/vsc/git/yap-6.3/library/lists.yap > x - mv x /Users/vsc/git/yap-6.3/library/lists.yap - -#true -cat << "EOF" > tmp -/** @pred nth0(? _N_, ? _List_, ? _Elem_, ? _Rest_) - -Unifies _Elem_ with the Nth element of _List_, -counting from 0, and _Rest_ with the other elements. It can be used -to select the Nth element of _List_ (yielding _Elem_ and _Rest_), or to -insert _Elem_ before the Nth (counting from 1) element of _Rest_, when -it yields _List_, e.g. `nth0(2, List, c, [a,b,d,e])` unifies List with -`[a,b,c,d,e]`. `nth/4` is the same except that it counts from 1. `nth0/4` -can be used to insert _Elem_ after the Nth element of _Rest_. - - -*/ -EOF -sed -e "261r tmp" /Users/vsc/git/yap-6.3/library/lists.yap > x - mv x /Users/vsc/git/yap-6.3/library/lists.yap - -#true -cat << "EOF" > tmp -/** @pred nth0(? _N_, ? _List_, ? _Elem_) - - -True when _Elem_ is the Nth member of _List_, -counting the first as element 0. (That is, throw away the first -N elements and unify _Elem_ with the next.) It can only be used to -select a particular element given the list and index. For that -task it is more efficient than member/2 - - -*/ -EOF -sed -e "261r tmp" /Users/vsc/git/yap-6.3/library/lists.yap > x - mv x /Users/vsc/git/yap-6.3/library/lists.yap - -#false -cat << "EOF" > tmp -/** @pred nth(? _N_, ? _List_, ? _Elem_, ? _Rest_) - -Same as `nth1/4`. - - -*/ -EOF -sed -e "261r tmp" /Users/vsc/git/yap-6.3/library/lists.yap > x - mv x /Users/vsc/git/yap-6.3/library/lists.yap - -#false -cat << "EOF" > tmp -/** @pred nth(? _N_, ? _List_, ? _Elem_) - - -The same as nth1/3. - - -*/ -EOF -sed -e "261r tmp" /Users/vsc/git/yap-6.3/library/lists.yap > x - mv x /Users/vsc/git/yap-6.3/library/lists.yap - -#true -cat << "EOF" > tmp -/** @pred min_list(? _Numbers_, ? _Min_) - - -True when _Numbers_ is a list of numbers, and _Min_ is the minimum. - - -*/ -EOF -sed -e "261r tmp" /Users/vsc/git/yap-6.3/library/lists.yap > x - mv x /Users/vsc/git/yap-6.3/library/lists.yap - -#true -cat << "EOF" > tmp -/** @pred max_list(? _Numbers_, ? _Max_) - - -True when _Numbers_ is a list of numbers, and _Max_ is the maximum. - - -*/ -EOF -sed -e "261r tmp" /Users/vsc/git/yap-6.3/library/lists.yap > x - mv x /Users/vsc/git/yap-6.3/library/lists.yap - -#false -cat << "EOF" > tmp -/** @pred list_concat(+ _Lists_,? _List_) - - -True when _Lists_ is a list of lists and _List_ is the -concatenation of _Lists_. - - -*/ -EOF -sed -e "261r tmp" /Users/vsc/git/yap-6.3/library/lists.yap > x - mv x /Users/vsc/git/yap-6.3/library/lists.yap - -#true -cat << "EOF" > tmp -/** @pred last(+ _List_,? _Last_) - - -True when _List_ is a list and _Last_ is identical to its last element. - - -*/ -EOF -sed -e "261r tmp" /Users/vsc/git/yap-6.3/library/lists.yap > x - mv x /Users/vsc/git/yap-6.3/library/lists.yap - -#true -cat << "EOF" > tmp -/** @pred intersection(+ _Set1_, + _Set2_, + _Set3_) - - -Succeeds if _Set3_ unifies with the intersection of _Set1_ and - _Set2_. _Set1_ and _Set2_ are lists without duplicates. They -need not be ordered. - - -*/ -EOF -sed -e "261r tmp" /Users/vsc/git/yap-6.3/library/lists.yap > x - mv x /Users/vsc/git/yap-6.3/library/lists.yap - -#true -cat << "EOF" > tmp -/** @pred flatten(+ _List_, ? _FlattenedList_) - - -Flatten a list of lists _List_ into a single list - _FlattenedList_. - -~~~~~{.prolog} -?- flatten([[1],[2,3],[4,[5,6],7,8]],L). - -L = [1,2,3,4,5,6,7,8] ? ; - -no -~~~~~ - - -*/ -EOF -sed -e "261r tmp" /Users/vsc/git/yap-6.3/library/lists.yap > x - mv x /Users/vsc/git/yap-6.3/library/lists.yap - -#true -cat << "EOF" > tmp -/** @pred append(? _Lists_,? _Combined_) - -Holds if the lists of _Lists_ can be concatenated as a - _Combined_ list. - - -*/ -EOF -sed -e "261r tmp" /Users/vsc/git/yap-6.3/library/lists.yap > x - mv x /Users/vsc/git/yap-6.3/library/lists.yap - -#true -cat << "EOF" > tmp -/** @pred maplist(+ _Pred_,+ _List1_,+ _List2_,+ _List4_) - -Apply _Pred_ on all successive triples of elements from _List1_, - _List2_ and _List3_. Fails if _Pred_ can not be applied to a -triple. See the example above. - - - - - */ -EOF -sed -e "93r tmp" /Users/vsc/git/yap-6.3/library/maplist.yap > x - mv x /Users/vsc/git/yap-6.3/library/maplist.yap - -#true -cat << "EOF" > tmp -/** @pred maplist(+ _Pred_,+ _List1_,+ _List2_) - -Apply _Pred_ on all successive pairs of elements from - _List1_ and - _List2_. Fails if _Pred_ can not be applied to a -pair. See the example above. - - -*/ -EOF -sed -e "93r tmp" /Users/vsc/git/yap-6.3/library/maplist.yap > x - mv x /Users/vsc/git/yap-6.3/library/maplist.yap - -#false -cat << "EOF" > tmp -/** @pred matlab_zeros(+ _Size_, ? _Array_) - - -MATLAB will create a vector of zeros of size _Size_, and if - _Array_ is bound to an atom, store the array in the matlab -variable with name _Array_. Corresponds to the MATLAB command -`zeros`. - - -*/ -EOF -sed -e "192r tmp" /Users/vsc/git/yap-6.3/library/matlab.yap > x - mv x /Users/vsc/git/yap-6.3/library/matlab.yap - -#false -cat << "EOF" > tmp -/** @pred matlab_zeros(+ _SizeX_, + _SizeY_, ? _Array_) - -MATLAB will create an array of zeros of size _SizeX_ and - _SizeY_, and if _Array_ is bound to an atom, store the array -in the matlab variable with name _Array_. Corresponds to the -MATLAB command `zeros`. - - -*/ -EOF -sed -e "192r tmp" /Users/vsc/git/yap-6.3/library/matlab.yap > x - mv x /Users/vsc/git/yap-6.3/library/matlab.yap - -#false -cat << "EOF" > tmp -/** @pred matlab_zeros(+ _SizeX_, + _SizeY_, + _SizeZ_, ? _Array_) - -MATLAB will create an array of zeros of size _SizeX_, _SizeY_, -and _SizeZ_. If _Array_ is bound to an atom, store the array -in the matlab variable with name _Array_. Corresponds to the -MATLAB command `zeros`. - - - - - */ -EOF -sed -e "192r tmp" /Users/vsc/git/yap-6.3/library/matlab.yap > x - mv x /Users/vsc/git/yap-6.3/library/matlab.yap - -#false -cat << "EOF" > tmp -/** @pred matlab_vector(+ _Size_, + _List_, ? _Array_) - - -MATLAB will create a vector of floats of size _Size_, initialized -from the list _List_, and if _Array_ is bound to an atom, -store the array in the matlab variable with name _Array_. - - -*/ -EOF -sed -e "192r tmp" /Users/vsc/git/yap-6.3/library/matlab.yap > x - mv x /Users/vsc/git/yap-6.3/library/matlab.yap - -#false -cat << "EOF" > tmp -/** @pred matlab_set(+ _MatVar_, + _X_, + _Y_, + _Value_) - - -Call MATLAB to set element _MatVar_( _X_, _Y_) to - _Value_. Notice that this command uses the MATLAB array access -convention. - - -*/ -EOF -sed -e "192r tmp" /Users/vsc/git/yap-6.3/library/matlab.yap > x - mv x /Users/vsc/git/yap-6.3/library/matlab.yap - -#false -cat << "EOF" > tmp -/** @pred matlab_sequence(+ _Min_, + _Max_, ? _Array_) - - -MATLAB will create a sequence going from _Min_ to _Max_, and -if _Array_ is bound to an atom, store the sequence in the matlab -variable with name _Array_. - - -*/ -EOF -sed -e "192r tmp" /Users/vsc/git/yap-6.3/library/matlab.yap > x - mv x /Users/vsc/git/yap-6.3/library/matlab.yap - -#false -cat << "EOF" > tmp -/** @pred matlab_on - - -Holds if a matlab session is on. - - -*/ -EOF -sed -e "192r tmp" /Users/vsc/git/yap-6.3/library/matlab.yap > x - mv x /Users/vsc/git/yap-6.3/library/matlab.yap - -#false -cat << "EOF" > tmp -/** @pred matlab_matrix(+ _SizeX_, + _SizeY_, + _List_, ? _Array_) - - -MATLAB will create an array of floats of size _SizeX_ and _SizeY_, -initialized from the list _List_, and if _Array_ is bound to -an atom, store the array in the matlab variable with name _Array_. - - -*/ -EOF -sed -e "192r tmp" /Users/vsc/git/yap-6.3/library/matlab.yap > x - mv x /Users/vsc/git/yap-6.3/library/matlab.yap - -#false -cat << "EOF" > tmp -/** @pred matlab_item1(+ _MatVar_, + _X_, ? _Val_) - - -Read or set MATLAB _MatVar_( _X_) from/to _Val_. Use -MATLAB notation for matrix access (ie, starting from 1). - - -*/ -EOF -sed -e "192r tmp" /Users/vsc/git/yap-6.3/library/matlab.yap > x - mv x /Users/vsc/git/yap-6.3/library/matlab.yap - -#false -cat << "EOF" > tmp -/** @pred matlab_item1(+ _MatVar_, + _X_, + _Y_, ? _Val_) - -Read or set MATLAB _MatVar_( _X_, _Y_) from/to _Val_. Use -MATLAB notation for matrix access (ie, starting from 1). - - -*/ -EOF -sed -e "192r tmp" /Users/vsc/git/yap-6.3/library/matlab.yap > x - mv x /Users/vsc/git/yap-6.3/library/matlab.yap - -#false -cat << "EOF" > tmp -/** @pred matlab_item(+ _MatVar_, + _X_, ? _Val_) - - -Read or set MATLAB _MatVar_( _X_) from/to _Val_. Use -`C` notation for matrix access (ie, starting from 0). - - -*/ -EOF -sed -e "192r tmp" /Users/vsc/git/yap-6.3/library/matlab.yap > x - mv x /Users/vsc/git/yap-6.3/library/matlab.yap - -#false -cat << "EOF" > tmp -/** @pred matlab_item(+ _MatVar_, + _X_, + _Y_, ? _Val_) - -Read or set MATLAB _MatVar_( _X_, _Y_) from/to _Val_. Use -`C` notation for matrix access (ie, starting from 0). - - -*/ -EOF -sed -e "192r tmp" /Users/vsc/git/yap-6.3/library/matlab.yap > x - mv x /Users/vsc/git/yap-6.3/library/matlab.yap - -#false -cat << "EOF" > tmp -/** @pred matlab_initialized_cells(+ _SizeX_, + _SizeY_, + _List_, ? _Array_) - - -MATLAB will create an array of cells of size _SizeX_ and - _SizeY_, initialized from the list _List_, and if _Array_ -is bound to an atom, store the array in the matlab variable with name - _Array_. - - -*/ -EOF -sed -e "192r tmp" /Users/vsc/git/yap-6.3/library/matlab.yap > x - mv x /Users/vsc/git/yap-6.3/library/matlab.yap - -#false -cat << "EOF" > tmp -/** @pred matlab_get_variable(+ _MatVar_, - _List_) - - -Unify MATLAB variable _MatVar_ with the List _List_. - - -*/ -EOF -sed -e "192r tmp" /Users/vsc/git/yap-6.3/library/matlab.yap > x - mv x /Users/vsc/git/yap-6.3/library/matlab.yap - -#false -cat << "EOF" > tmp -/** @pred matlab_eval_string(+ _Command_, - _Answer_) - -MATLAB will evaluate the command _Command_ and unify _Answer_ -with a string reporting the result. - - -*/ -EOF -sed -e "192r tmp" /Users/vsc/git/yap-6.3/library/matlab.yap > x - mv x /Users/vsc/git/yap-6.3/library/matlab.yap - -#false -cat << "EOF" > tmp -/** @pred matlab_eval_string(+ _Command_) - - -Holds if matlab evaluated successfully the command _Command_. - - -*/ -EOF -sed -e "192r tmp" /Users/vsc/git/yap-6.3/library/matlab.yap > x - mv x /Users/vsc/git/yap-6.3/library/matlab.yap - -#false -cat << "EOF" > tmp -/** @pred matlab_cells(+ _Size_, ? _Array_) - - -MATLAB will create an empty vector of cells of size _Size_, and if - _Array_ is bound to an atom, store the array in the matlab -variable with name _Array_. Corresponds to the MATLAB command `cells`. - - -*/ -EOF -sed -e "192r tmp" /Users/vsc/git/yap-6.3/library/matlab.yap > x - mv x /Users/vsc/git/yap-6.3/library/matlab.yap - -#false -cat << "EOF" > tmp -/** @pred matlab_cells(+ _SizeX_, + _SizeY_, ? _Array_) - -MATLAB will create an empty array of cells of size _SizeX_ and - _SizeY_, and if _Array_ is bound to an atom, store the array -in the matlab variable with name _Array_. Corresponds to the -MATLAB command `cells`. - - -*/ -EOF -sed -e "192r tmp" /Users/vsc/git/yap-6.3/library/matlab.yap > x - mv x /Users/vsc/git/yap-6.3/library/matlab.yap - -#false -cat << "EOF" > tmp -/** @pred close_matlab - - -Stop the current matlab session. - - -*/ -EOF -sed -e "192r tmp" /Users/vsc/git/yap-6.3/library/matlab.yap > x - mv x /Users/vsc/git/yap-6.3/library/matlab.yap - -#false -cat << "EOF" > tmp -/** @pred matrix_type(+ _Matrix_,- _Type_) - - - -Unify _NElems_ with the type of the elements in _Matrix_. - - -*/ -EOF -sed -e "567r tmp" /Users/vsc/git/yap-6.3/library/matrix.yap > x - mv x /Users/vsc/git/yap-6.3/library/matrix.yap - -#false -cat << "EOF" > tmp -/** @pred matrix_transpose(+ _Matrix_,- _Transpose_) - - - -Transpose matrix _Matrix_ to _Transpose_. Equivalent to: - -~~~~~ -matrix_transpose(Matrix,Transpose) :- - matrix_shuffle(Matrix,[1,0],Transpose). -~~~~~ - - -*/ -EOF -sed -e "567r tmp" /Users/vsc/git/yap-6.3/library/matrix.yap > x - mv x /Users/vsc/git/yap-6.3/library/matrix.yap - -#false -cat << "EOF" > tmp -/** @pred matrix_to_list(+ _Matrix_,- _Elems_) - - - -Unify _Elems_ with the list including all the elements in _Matrix_. - - -*/ -EOF -sed -e "567r tmp" /Users/vsc/git/yap-6.3/library/matrix.yap > x - mv x /Users/vsc/git/yap-6.3/library/matrix.yap - -#false -cat << "EOF" > tmp -/** @pred matrix_sum(+ _Matrix_,+ _Sum_) - - - -Unify _Sum_ with the sum of all elements in matrix _Matrix_. - - -*/ -EOF -sed -e "567r tmp" /Users/vsc/git/yap-6.3/library/matrix.yap > x - mv x /Users/vsc/git/yap-6.3/library/matrix.yap - -#false -cat << "EOF" > tmp -/** @pred matrix_size(+ _Matrix_,- _NElems_) - - - -Unify _NElems_ with the number of elements for _Matrix_. - - -*/ -EOF -sed -e "567r tmp" /Users/vsc/git/yap-6.3/library/matrix.yap > x - mv x /Users/vsc/git/yap-6.3/library/matrix.yap - -#false -cat << "EOF" > tmp -/** @pred matrix_shuffle(+ _Matrix_,+ _NewOrder_,- _Shuffle_) - - - -Shuffle the dimensions of matrix _Matrix_ according to - _NewOrder_. The list _NewOrder_ must have all the dimensions of - _Matrix_, starting from 0. - - -*/ -EOF -sed -e "567r tmp" /Users/vsc/git/yap-6.3/library/matrix.yap > x - mv x /Users/vsc/git/yap-6.3/library/matrix.yap - -#false -cat << "EOF" > tmp -/** @pred matrix_set_all(+ _Matrix_,+ _Elem_) - - - -Set all element of _Matrix_ to _Elem_. - - -*/ -EOF -sed -e "567r tmp" /Users/vsc/git/yap-6.3/library/matrix.yap > x - mv x /Users/vsc/git/yap-6.3/library/matrix.yap - -#false -cat << "EOF" > tmp -/** @pred matrix_set(+ _Matrix_[+ _Position_],+ _Elem_) - - -Set the element of _Matrix_[ _Position_] to _Elem_. - - -*/ -EOF -sed -e "567r tmp" /Users/vsc/git/yap-6.3/library/matrix.yap > x - mv x /Users/vsc/git/yap-6.3/library/matrix.yap - -#false -cat << "EOF" > tmp -/** @pred matrix_set(+ _Matrix_,+ _Position_,+ _Elem_) - - - -Set the element of _Matrix_ at position - _Position_ to _Elem_. - - -*/ -EOF -sed -e "567r tmp" /Users/vsc/git/yap-6.3/library/matrix.yap > x - mv x /Users/vsc/git/yap-6.3/library/matrix.yap - -#false -cat << "EOF" > tmp -/** @pred matrix_select(+ _Matrix_,+ _Dimension_,+ _Index_,- _New_) - - - -Select from _Matrix_ the elements who have _Index_ at - _Dimension_. - - -*/ -EOF -sed -e "567r tmp" /Users/vsc/git/yap-6.3/library/matrix.yap > x - mv x /Users/vsc/git/yap-6.3/library/matrix.yap - -#false -cat << "EOF" > tmp -/** @pred matrix_op_to_lines(+ _Matrix1_,+ _Lines_,+ _Op_,- _Result_) - - - - _Result_ is the result of applying _Op_ to all elements of - _Matrix1_, with the corresponding element in _Lines_ as the -second argument. Currently, only division (`/`) is supported. - - -*/ -EOF -sed -e "567r tmp" /Users/vsc/git/yap-6.3/library/matrix.yap > x - mv x /Users/vsc/git/yap-6.3/library/matrix.yap - -#false -cat << "EOF" > tmp -/** @pred matrix_op_to_cols(+ _Matrix1_,+ _Cols_,+ _Op_,- _Result_) - - - - _Result_ is the result of applying _Op_ to all elements of - _Matrix1_, with the corresponding element in _Cols_ as the -second argument. Currently, only addition (`+`) is -supported. Notice that _Cols_ will have n-1 dimensions. - - -*/ -EOF -sed -e "567r tmp" /Users/vsc/git/yap-6.3/library/matrix.yap > x - mv x /Users/vsc/git/yap-6.3/library/matrix.yap - -#false -cat << "EOF" > tmp -/** @pred matrix_op_to_all(+ _Matrix1_,+ _Op_,+ _Operand_,- _Result_) - - - - _Result_ is the result of applying _Op_ to all elements of - _Matrix1_, with _Operand_ as the second argument. Currently, -only addition (`+`), multiplication (`\*`), and division -(`/`) are supported. - - -*/ -EOF -sed -e "567r tmp" /Users/vsc/git/yap-6.3/library/matrix.yap > x - mv x /Users/vsc/git/yap-6.3/library/matrix.yap - -#false -cat << "EOF" > tmp -/** @pred matrix_op(+ _Matrix1_,+ _Matrix2_,+ _Op_,- _Result_) - - - - _Result_ is the result of applying _Op_ to matrix _Matrix1_ -and _Matrix2_. Currently, only addition (`+`) is supported. - - -*/ -EOF -sed -e "567r tmp" /Users/vsc/git/yap-6.3/library/matrix.yap > x - mv x /Users/vsc/git/yap-6.3/library/matrix.yap - -#false -cat << "EOF" > tmp -/** @pred matrix_offset_to_arg(+ _Matrix_,- _Offset_,+ _Position_) - - - -Given a position _Position _ for matrix _Matrix_ return the -corresponding numerical _Offset_ from the beginning of the matrix. - - -*/ -EOF -sed -e "567r tmp" /Users/vsc/git/yap-6.3/library/matrix.yap > x - mv x /Users/vsc/git/yap-6.3/library/matrix.yap - -#false -cat << "EOF" > tmp -/** @pred matrix_new_set(? _Dims_,+ _OldMatrix_,+ _Value_,- _NewMatrix_) - - - -Create a new matrix _NewMatrix_ of type _Type_, with dimensions - _Dims_. The elements of _NewMatrix_ are set to _Value_. - - -*/ -EOF -sed -e "567r tmp" /Users/vsc/git/yap-6.3/library/matrix.yap > x - mv x /Users/vsc/git/yap-6.3/library/matrix.yap - -#false -cat << "EOF" > tmp -/** @pred matrix_new(+ _Type_,+ _Dims_,- _Matrix_) - - - -Create a new matrix _Matrix_ of type _Type_, which may be one of -`ints` or `floats`, and with a list of dimensions _Dims_. -The matrix will be initialised to zeros. - -~~~~~ -?- matrix_new(ints,[2,3],Matrix). - -Matrix = {..} -~~~~~ -Notice that currently YAP will always write a matrix of numbers as `{..}`. - - -*/ -EOF -sed -e "567r tmp" /Users/vsc/git/yap-6.3/library/matrix.yap > x - mv x /Users/vsc/git/yap-6.3/library/matrix.yap - -#false -cat << "EOF" > tmp -/** @pred matrix_new(+ _Type_,+ _Dims_,+ _List_,- _Matrix_) - - -Create a new matrix _Matrix_ of type _Type_, which may be one of -`ints` or `floats`, with dimensions _Dims_, and -initialised from list _List_. - - -*/ -EOF -sed -e "567r tmp" /Users/vsc/git/yap-6.3/library/matrix.yap > x - mv x /Users/vsc/git/yap-6.3/library/matrix.yap - -#false -cat << "EOF" > tmp -/** @pred matrix_ndims(+ _Matrix_,- _Dims_) - - - -Unify _NDims_ with the number of dimensions for _Matrix_. - - -*/ -EOF -sed -e "567r tmp" /Users/vsc/git/yap-6.3/library/matrix.yap > x - mv x /Users/vsc/git/yap-6.3/library/matrix.yap - -#false -cat << "EOF" > tmp -/** @pred matrix_minarg(+ _Matrix_,+ _Minarg_) - - - -Unify _Min_ with the position of the minimum in matrix _Matrix_. - - -*/ -EOF -sed -e "567r tmp" /Users/vsc/git/yap-6.3/library/matrix.yap > x - mv x /Users/vsc/git/yap-6.3/library/matrix.yap - -#false -cat << "EOF" > tmp -/** @pred matrix_min(+ _Matrix_,+ _Min_) - - - -Unify _Min_ with the minimum in matrix _Matrix_. - - -*/ -EOF -sed -e "567r tmp" /Users/vsc/git/yap-6.3/library/matrix.yap > x - mv x /Users/vsc/git/yap-6.3/library/matrix.yap - -#false -cat << "EOF" > tmp -/** @pred matrix_maxarg(+ _Matrix_,+ _Maxarg_) - - - -Unify _Max_ with the position of the maximum in matrix _Matrix_. - - -*/ -EOF -sed -e "567r tmp" /Users/vsc/git/yap-6.3/library/matrix.yap > x - mv x /Users/vsc/git/yap-6.3/library/matrix.yap - -#false -cat << "EOF" > tmp -/** @pred matrix_max(+ _Matrix_,+ _Max_) - - - -Unify _Max_ with the maximum in matrix _Matrix_. - - -*/ -EOF -sed -e "567r tmp" /Users/vsc/git/yap-6.3/library/matrix.yap > x - mv x /Users/vsc/git/yap-6.3/library/matrix.yap - -#false -cat << "EOF" > tmp -/** @pred matrix_inc(+ _Matrix_,+ _Position_,- _Element_) - - -Increment the element of _Matrix_ at position _Position_ and -unify with _Element_. - - -*/ -EOF -sed -e "567r tmp" /Users/vsc/git/yap-6.3/library/matrix.yap > x - mv x /Users/vsc/git/yap-6.3/library/matrix.yap - -#false -cat << "EOF" > tmp -/** @pred matrix_inc(+ _Matrix_,+ _Position_) - - - -Increment the element of _Matrix_ at position _Position_. - - -*/ -EOF -sed -e "567r tmp" /Users/vsc/git/yap-6.3/library/matrix.yap > x - mv x /Users/vsc/git/yap-6.3/library/matrix.yap - -#false -cat << "EOF" > tmp -/** @pred matrix_get(+ _Matrix_[+ _Position_],- _Elem_) - - -Unify _Elem_ with the element _Matrix_[ _Position_]. - - -*/ -EOF -sed -e "567r tmp" /Users/vsc/git/yap-6.3/library/matrix.yap > x - mv x /Users/vsc/git/yap-6.3/library/matrix.yap - -#false -cat << "EOF" > tmp -/** @pred matrix_get(+ _Matrix_,+ _Position_,- _Elem_) - - - -Unify _Elem_ with the element of _Matrix_ at position - _Position_. - - -*/ -EOF -sed -e "567r tmp" /Users/vsc/git/yap-6.3/library/matrix.yap > x - mv x /Users/vsc/git/yap-6.3/library/matrix.yap - -#false -cat << "EOF" > tmp -/** @pred matrix_expand(+ _Matrix_,+ _NewDimensions_,- _New_) - - - -Expand _Matrix_ to occupy new dimensions. The elements in - _NewDimensions_ are either 0, for an existing dimension, or a -positive integer with the size of the new dimension. - - -*/ -EOF -sed -e "567r tmp" /Users/vsc/git/yap-6.3/library/matrix.yap > x - mv x /Users/vsc/git/yap-6.3/library/matrix.yap - -#false -cat << "EOF" > tmp -/** @pred matrix_dims(+ _Matrix_,- _Dims_) - - - -Unify _Dims_ with a list of dimensions for _Matrix_. - - -*/ -EOF -sed -e "567r tmp" /Users/vsc/git/yap-6.3/library/matrix.yap > x - mv x /Users/vsc/git/yap-6.3/library/matrix.yap - -#false -cat << "EOF" > tmp -/** @pred matrix_dec(+ _Matrix_,+ _Position_,- _Element_) - - -Decrement the element of _Matrix_ at position _Position_ and -unify with _Element_. - - -*/ -EOF -sed -e "567r tmp" /Users/vsc/git/yap-6.3/library/matrix.yap > x - mv x /Users/vsc/git/yap-6.3/library/matrix.yap - -#false -cat << "EOF" > tmp -/** @pred matrix_dec(+ _Matrix_,+ _Position_) - - - -Decrement the element of _Matrix_ at position _Position_. - - -*/ -EOF -sed -e "567r tmp" /Users/vsc/git/yap-6.3/library/matrix.yap > x - mv x /Users/vsc/git/yap-6.3/library/matrix.yap - -#false -cat << "EOF" > tmp -/** @pred matrix_column(+ _Matrix_,+ _Column_,- _NewMatrix_) - - - -Select from _Matrix_ the column matching _Column_ as new matrix _NewMatrix_. _Column_ must have one less dimension than the original matrix. - - - - */ -EOF -sed -e "567r tmp" /Users/vsc/git/yap-6.3/library/matrix.yap > x - mv x /Users/vsc/git/yap-6.3/library/matrix.yap - -#false -cat << "EOF" > tmp -/** @pred matrix_arg_to_offset(+ _Matrix_,+ _Position_,- _Offset_) - - - -Given matrix _Matrix_ return what is the numerical _Offset_ of -the element at _Position_. - - -*/ -EOF -sed -e "567r tmp" /Users/vsc/git/yap-6.3/library/matrix.yap > x - mv x /Users/vsc/git/yap-6.3/library/matrix.yap - -#false -cat << "EOF" > tmp -/** @pred matrix_agg_lines(+ _Matrix_,+Operator,+ _Aggregate_) - - - -If _Matrix_ is a n-dimensional matrix, unify _Aggregate_ with -the n-1 dimensional matrix where each element is obtained by adding all -_Matrix_ elements with same last n-1 index. Currently, only addition is supported. - - -*/ -EOF -sed -e "567r tmp" /Users/vsc/git/yap-6.3/library/matrix.yap > x - mv x /Users/vsc/git/yap-6.3/library/matrix.yap - -#false -cat << "EOF" > tmp -/** @pred matrix_agg_cols(+ _Matrix_,+Operator,+ _Aggregate_) - - - -If _Matrix_ is a n-dimensional matrix, unify _Aggregate_ with -the one dimensional matrix where each element is obtained by adding all -Matrix elements with same first index. Currently, only addition is supported. - - -*/ -EOF -sed -e "567r tmp" /Users/vsc/git/yap-6.3/library/matrix.yap > x - mv x /Users/vsc/git/yap-6.3/library/matrix.yap - -#false -cat << "EOF" > tmp -/** @pred matrix_add(+ _Matrix_,+ _Position_,+ _Operand_) - - - -Add _Operand_ to the element of _Matrix_ at position - _Position_. - - -*/ -EOF -sed -e "567r tmp" /Users/vsc/git/yap-6.3/library/matrix.yap > x - mv x /Users/vsc/git/yap-6.3/library/matrix.yap - -#true -cat << "EOF" > tmp -/** @pred ?_LHS_ <== ?_RHS_ is semidet - - -General matrix assignment operation. It evaluates the right-hand side -and then acts different according to the -left-hand side and to the matrix: - -+ if _LHS_ is part of an integer or floating-point matrix, -perform non-backtrackable assignment. -+ other unify left-hand side and right-hand size. - - -The right-hand side supports the following operators: - -+ `[]/2` - - written as _M_[ _Offset_]: obtain an element or list of elements -of matrix _M_ at offset _Offset_. - -+ `matrix/1` - - create a vector from a list - -+ `matrix/2` - - create a matrix from a list. Options are: - + dim= -a list of dimensions - + type= -integers, floating-point or terms - + base= -a list of base offsets per dimension (all must be the same for arrays of -integers and floating-points - -+ `matrix/3` - - create matrix giving two options - - + `dim/1` - list with matrix dimensions - - + `nrow/1` - number of rows in bi-dimensional matrix - -+ `ncol/1` - number of columns in bi-dimensional matrix - -+ `length/1` - size of a matrix - -+ `size/1` - size of a matrix - -+ `max/1` - - maximum element of a numeric matrix - -+ `maxarg/1` - - argument of maximum element of a numeric matrix - -+ `min/1` - - minimum element of a numeric matrix - -+ `minarg/1` - - argument of minimum element of a numeric matrix - -+ `list/1` - - represent matrix as a list - -+ `lists/2` - - represent matrix as list of embedded lists - -+ `../2` - - _I_.. _J_ generates a list with all integers from _I_ to - _J_, included. - -+ `+/2` - - add two numbers, add two matrices element-by-element, or add a number to -all elements of a matrix or list. - -+ `-/2 ` - - subtract two numbers, subtract two matrices or lists element-by-element, or subtract a number from -all elements of a matrix or list - -+ `* /2` - - multiply two numbers, multiply two matrices or lists element-by-element, or multiply a number from -all elements of a matrix or list - - + `log/1` - - natural logarithm of a number, matrix or list - -+ `exp/1 ` - - natural exponentiation of a number, matrix or list - -*/ -EOF -sed -e "567r tmp" /Users/vsc/git/yap-6.3/library/matrix.yap > x - mv x /Users/vsc/git/yap-6.3/library/matrix.yap - -#true -cat << "EOF" > tmp -/** @pred nb_queue_size(+ _Queue_, - _Size_) - - -Unify _Size_ with the number of elements in the queue _Queue_. - - -*/ -EOF -sed -e "190r tmp" /Users/vsc/git/yap-6.3/library/nb.yap > x - mv x /Users/vsc/git/yap-6.3/library/nb.yap - -#true -cat << "EOF" > tmp -/** @pred nb_queue_peek(+ _Queue_, - _Element_) - - - _Element_ is the front of the queue _Queue_. Fail if -the queue is empty. - - -*/ -EOF -sed -e "190r tmp" /Users/vsc/git/yap-6.3/library/nb.yap > x - mv x /Users/vsc/git/yap-6.3/library/nb.yap - -#true -cat << "EOF" > tmp -/** @pred nb_queue_enqueue(+ _Queue_, + _Element_) - - -Add _Element_ to the front of the queue _Queue_. - - -*/ -EOF -sed -e "190r tmp" /Users/vsc/git/yap-6.3/library/nb.yap > x - mv x /Users/vsc/git/yap-6.3/library/nb.yap - -#true -cat << "EOF" > tmp -/** @pred nb_queue_empty(+ _Queue_) - - -Succeeds if _Queue_ is empty. - - -*/ -EOF -sed -e "190r tmp" /Users/vsc/git/yap-6.3/library/nb.yap > x - mv x /Users/vsc/git/yap-6.3/library/nb.yap - -#true -cat << "EOF" > tmp -/** @pred nb_queue_dequeue(+ _Queue_, - _Element_) - - -Remove _Element_ from the front of the queue _Queue_. Fail if -the queue is empty. - - -*/ -EOF -sed -e "190r tmp" /Users/vsc/git/yap-6.3/library/nb.yap > x - mv x /Users/vsc/git/yap-6.3/library/nb.yap - -#true -cat << "EOF" > tmp -/** @pred nb_queue_close(+ _Queue_, - _Head_, ? _Tail_) - - -Unify the queue _Queue_ with a difference list - _Head_- _Tail_. The queue will now be empty and no further -elements can be added. - - -*/ -EOF -sed -e "190r tmp" /Users/vsc/git/yap-6.3/library/nb.yap > x - mv x /Users/vsc/git/yap-6.3/library/nb.yap - -#true -cat << "EOF" > tmp -/** @pred nb_queue(- _Queue_) - - -Create a _Queue_. - - -*/ -EOF -sed -e "190r tmp" /Users/vsc/git/yap-6.3/library/nb.yap > x - mv x /Users/vsc/git/yap-6.3/library/nb.yap - -#true -cat << "EOF" > tmp -/** @pred nb_heap_size(+ _Heap_, - _Size_) - - -Unify _Size_ with the number of elements in the heap _Heap_. - - -*/ -EOF -sed -e "190r tmp" /Users/vsc/git/yap-6.3/library/nb.yap > x - mv x /Users/vsc/git/yap-6.3/library/nb.yap - -#true -cat << "EOF" > tmp -/** @pred nb_heap_peek(+ _Heap_, - _Key_, - _Value_)) - - - _Key_- _Value_ is the element with smallest _Key_ in the heap - _Heap_. Fail if the heap is empty. - - -*/ -EOF -sed -e "190r tmp" /Users/vsc/git/yap-6.3/library/nb.yap > x - mv x /Users/vsc/git/yap-6.3/library/nb.yap - -#true -cat << "EOF" > tmp -/** @pred nb_heap_empty(+ _Heap_) - - -Succeeds if _Heap_ is empty. - - -*/ -EOF -sed -e "190r tmp" /Users/vsc/git/yap-6.3/library/nb.yap > x - mv x /Users/vsc/git/yap-6.3/library/nb.yap - -#true -cat << "EOF" > tmp -/** @pred nb_heap_del(+ _Heap_, - _Key_, - _Value_) - - -Remove element _Key_- _Value_ with smallest _Value_ in heap - _Heap_. Fail if the heap is empty. - - -*/ -EOF -sed -e "190r tmp" /Users/vsc/git/yap-6.3/library/nb.yap > x - mv x /Users/vsc/git/yap-6.3/library/nb.yap - -#true -cat << "EOF" > tmp -/** @pred nb_heap_close(+ _Heap_) - - -Close the heap _Heap_: no further elements can be added. - - -*/ -EOF -sed -e "190r tmp" /Users/vsc/git/yap-6.3/library/nb.yap > x - mv x /Users/vsc/git/yap-6.3/library/nb.yap - -#true -cat << "EOF" > tmp -/** @pred nb_heap_add(+ _Heap_, + _Key_, + _Value_) - - -Add _Key_- _Value_ to the heap _Heap_. The key is sorted on - _Key_ only. - - -*/ -EOF -sed -e "190r tmp" /Users/vsc/git/yap-6.3/library/nb.yap > x - mv x /Users/vsc/git/yap-6.3/library/nb.yap - -#true -cat << "EOF" > tmp -/** @pred nb_heap(+ _DefaultSize_,- _Heap_) - - -Create a _Heap_ with default size _DefaultSize_. Note that size -will expand as needed. - - -*/ -EOF -sed -e "190r tmp" /Users/vsc/git/yap-6.3/library/nb.yap > x - mv x /Users/vsc/git/yap-6.3/library/nb.yap - -#true -cat << "EOF" > tmp -/** @pred nb_beam_size(+ _Beam_, - _Size_) - - -Unify _Size_ with the number of elements in the beam _Beam_. - - -*/ -EOF -sed -e "190r tmp" /Users/vsc/git/yap-6.3/library/nb.yap > x - mv x /Users/vsc/git/yap-6.3/library/nb.yap - -#true -cat << "EOF" > tmp -/** @pred nb_beam_peek(+ _Beam_, - _Key_, - _Value_)) - - - _Key_- _Value_ is the element with smallest _Key_ in the beam - _Beam_. Fail if the beam is empty. - - -*/ -EOF -sed -e "190r tmp" /Users/vsc/git/yap-6.3/library/nb.yap > x - mv x /Users/vsc/git/yap-6.3/library/nb.yap - -#true -cat << "EOF" > tmp -/** @pred nb_beam_empty(+ _Beam_) - - -Succeeds if _Beam_ is empty. - - - - - */ -EOF -sed -e "190r tmp" /Users/vsc/git/yap-6.3/library/nb.yap > x - mv x /Users/vsc/git/yap-6.3/library/nb.yap - -#true -cat << "EOF" > tmp -/** @pred nb_beam_del(+ _Beam_, - _Key_, - _Value_) - - -Remove element _Key_- _Value_ with smallest _Value_ in beam - _Beam_. Fail if the beam is empty. - - -*/ -EOF -sed -e "190r tmp" /Users/vsc/git/yap-6.3/library/nb.yap > x - mv x /Users/vsc/git/yap-6.3/library/nb.yap - -#true -cat << "EOF" > tmp -/** @pred nb_beam_close(+ _Beam_) - - -Close the beam _Beam_: no further elements can be added. - - -*/ -EOF -sed -e "190r tmp" /Users/vsc/git/yap-6.3/library/nb.yap > x - mv x /Users/vsc/git/yap-6.3/library/nb.yap - -#true -cat << "EOF" > tmp -/** @pred nb_beam_add(+ _Beam_, + _Key_, + _Value_) - - -Add _Key_- _Value_ to the beam _Beam_. The key is sorted on - _Key_ only. - - -*/ -EOF -sed -e "190r tmp" /Users/vsc/git/yap-6.3/library/nb.yap > x - mv x /Users/vsc/git/yap-6.3/library/nb.yap - -#true -cat << "EOF" > tmp -/** @pred nb_beam(+ _DefaultSize_,- _Beam_) - - -Create a _Beam_ with default size _DefaultSize_. Note that size -is fixed throughout. - - -*/ -EOF -sed -e "190r tmp" /Users/vsc/git/yap-6.3/library/nb.yap > x - mv x /Users/vsc/git/yap-6.3/library/nb.yap - -#false -cat << "EOF" > tmp -/** @pred ord_union(+ _Sets_, ? _Union_) - - -Holds when _Union_ is the union of the lists _Sets_. - - -*/ -EOF -sed -e "175r tmp" /Users/vsc/git/yap-6.3/library/ordsets.yap > x - mv x /Users/vsc/git/yap-6.3/library/ordsets.yap - -#false -cat << "EOF" > tmp -/** @pred ord_union(+ _Set1_, + _Set2_, ? _Union_, ? _Diff_) - -Holds when _Union_ is the union of _Set1_ and _Set2_ and - _Diff_ is the difference. - - - - - */ -EOF -sed -e "175r tmp" /Users/vsc/git/yap-6.3/library/ordsets.yap > x - mv x /Users/vsc/git/yap-6.3/library/ordsets.yap - -#false -cat << "EOF" > tmp -/** @pred ord_union(+ _Set1_, + _Set2_, ? _Union_) - -Holds when _Union_ is the union of _Set1_ and _Set2_. - - -*/ -EOF -sed -e "175r tmp" /Users/vsc/git/yap-6.3/library/ordsets.yap > x - mv x /Users/vsc/git/yap-6.3/library/ordsets.yap - -#false -cat << "EOF" > tmp -/** @pred ord_symdiff(+ _Set1_, + _Set2_, ? _Difference_) - - -Holds when _Difference_ is the symmetric difference of _Set1_ -and _Set2_. - - -*/ -EOF -sed -e "175r tmp" /Users/vsc/git/yap-6.3/library/ordsets.yap > x - mv x /Users/vsc/git/yap-6.3/library/ordsets.yap - -#false -cat << "EOF" > tmp -/** @pred ord_subtract(+ _Set1_, + _Set2_, ? _Difference_) - - -Holds when _Difference_ contains all and only the elements of _Set1_ -which are not also in _Set2_. - - -*/ -EOF -sed -e "175r tmp" /Users/vsc/git/yap-6.3/library/ordsets.yap > x - mv x /Users/vsc/git/yap-6.3/library/ordsets.yap - -#false -cat << "EOF" > tmp -/** @pred ord_subset(+ _Set1_, + _Set2_) - - -Holds when every element of the ordered set _Set1_ appears in the -ordered set _Set2_. - - -*/ -EOF -sed -e "175r tmp" /Users/vsc/git/yap-6.3/library/ordsets.yap > x - mv x /Users/vsc/git/yap-6.3/library/ordsets.yap - -#false -cat << "EOF" > tmp -/** @pred ord_setproduct(+ _Set1_, + _Set2_, - _Set_) - - -If Set1 and Set2 are ordered sets, Product will be an ordered -set of x1-x2 pairs. - - -*/ -EOF -sed -e "175r tmp" /Users/vsc/git/yap-6.3/library/ordsets.yap > x - mv x /Users/vsc/git/yap-6.3/library/ordsets.yap - -#false -cat << "EOF" > tmp -/** @pred ord_seteq(+ _Set1_, + _Set2_) - - -Holds when the two arguments represent the same set. - - -*/ -EOF -sed -e "175r tmp" /Users/vsc/git/yap-6.3/library/ordsets.yap > x - mv x /Users/vsc/git/yap-6.3/library/ordsets.yap - -#false -cat << "EOF" > tmp -/** @pred ord_member(+ _Element_, + _Set_) - - -Holds when _Element_ is a member of _Set_. - - -*/ -EOF -sed -e "175r tmp" /Users/vsc/git/yap-6.3/library/ordsets.yap > x - mv x /Users/vsc/git/yap-6.3/library/ordsets.yap - -#false -cat << "EOF" > tmp -/** @pred ord_intersection(+ _Set1_, + _Set2_, ? _Intersection_, ? _Diff_) - -Holds when Intersection is the ordered representation of _Set1_ -and _Set2_. _Diff_ is the difference between _Set2_ and _Set1_. - - -*/ -EOF -sed -e "175r tmp" /Users/vsc/git/yap-6.3/library/ordsets.yap > x - mv x /Users/vsc/git/yap-6.3/library/ordsets.yap - -#false -cat << "EOF" > tmp -/** @pred ord_intersection(+ _Set1_, + _Set2_, ? _Intersection_) - -Holds when Intersection is the ordered representation of _Set1_ -and _Set2_. - - -*/ -EOF -sed -e "175r tmp" /Users/vsc/git/yap-6.3/library/ordsets.yap > x - mv x /Users/vsc/git/yap-6.3/library/ordsets.yap - -#false -cat << "EOF" > tmp -/** @pred ord_intersect(+ _Set1_, + _Set2_) - - -Holds when the two ordered sets have at least one element in common. - - -*/ -EOF -sed -e "175r tmp" /Users/vsc/git/yap-6.3/library/ordsets.yap > x - mv x /Users/vsc/git/yap-6.3/library/ordsets.yap - -#false -cat << "EOF" > tmp -/** @pred ord_insert(+ _Set1_, + _Element_, ? _Set2_) - - -Inserting _Element_ in _Set1_ returns _Set2_. It should give -exactly the same result as `merge(Set1, [Element], Set2)`, but a -bit faster, and certainly more clearly. The same as ord_add_element/3. - - -*/ -EOF -sed -e "175r tmp" /Users/vsc/git/yap-6.3/library/ordsets.yap > x - mv x /Users/vsc/git/yap-6.3/library/ordsets.yap - -#false -cat << "EOF" > tmp -/** @pred ord_disjoint(+ _Set1_, + _Set2_) - - -Holds when the two ordered sets have no element in common. - - -*/ -EOF -sed -e "175r tmp" /Users/vsc/git/yap-6.3/library/ordsets.yap > x - mv x /Users/vsc/git/yap-6.3/library/ordsets.yap - -#false -cat << "EOF" > tmp -/** @pred ord_del_element(+ _Set1_, + _Element_, ? _Set2_) - - -Removing _Element_ from _Set1_ returns _Set2_. - - -*/ -EOF -sed -e "175r tmp" /Users/vsc/git/yap-6.3/library/ordsets.yap > x - mv x /Users/vsc/git/yap-6.3/library/ordsets.yap - -#false -cat << "EOF" > tmp -/** @pred ord_add_element(+ _Set1_, + _Element_, ? _Set2_) - - -Inserting _Element_ in _Set1_ returns _Set2_. It should give -exactly the same result as `merge(Set1, [Element], Set2)`, but a -bit faster, and certainly more clearly. The same as ord_insert/3. - - -*/ -EOF -sed -e "175r tmp" /Users/vsc/git/yap-6.3/library/ordsets.yap > x - mv x /Users/vsc/git/yap-6.3/library/ordsets.yap - -#true -cat << "EOF" > tmp -/** @pred merge(+ _List1_, + _List2_, - _Merged_) - - -Holds when _Merged_ is the stable merge of the two given lists. - -Notice that merge/3 will not remove duplicates, so merging -ordered sets will not necessarily result in an ordered set. Use -`ord_union/3` instead. - - -*/ -EOF -sed -e "175r tmp" /Users/vsc/git/yap-6.3/library/ordsets.yap > x - mv x /Users/vsc/git/yap-6.3/library/ordsets.yap - -#false -cat << "EOF" > tmp -/** @pred list_to_ord_set(+ _List_, ? _Set_) - - -Holds when _Set_ is the ordered representation of the set -represented by the unordered representation _List_. - - -*/ -EOF -sed -e "175r tmp" /Users/vsc/git/yap-6.3/library/ordsets.yap > x - mv x /Users/vsc/git/yap-6.3/library/ordsets.yap - -#false -cat << "EOF" > tmp -/** @pred ranunif(+ _Range_,- _I_) - - -ranunif/2 produces a uniformly distributed non-negative random -integer _I_ over a caller-specified range _R_. If range is _R_, -the result is in 0 .. _R_-1. - - - - - */ -EOF -sed -e "86r tmp" /Users/vsc/git/yap-6.3/library/prandom.yap > x - mv x /Users/vsc/git/yap-6.3/library/prandom.yap - -#false -cat << "EOF" > tmp -/** @pred ranstart(+ _Seed_) - -Initialize the random number generator with user-defined _Seed_. The -same _Seed_ always produces the same sequence of numbers. - - -*/ -EOF -sed -e "86r tmp" /Users/vsc/git/yap-6.3/library/prandom.yap > x - mv x /Users/vsc/git/yap-6.3/library/prandom.yap - -#false -cat << "EOF" > tmp -/** @pred ranstart - - -Initialize the random number generator using a built-in seed. The -ranstart/0 built-in is always called by the system when loading -the package. - - -*/ -EOF -sed -e "86r tmp" /Users/vsc/git/yap-6.3/library/prandom.yap > x - mv x /Users/vsc/git/yap-6.3/library/prandom.yap - -#false -cat << "EOF" > tmp -/** @pred rannum(- _I_) - - -Produces a random non-negative integer _I_ whose low bits are not -all that random, so it should be scaled to a smaller range in general. -The integer _I_ is in the range 0 .. 2^(w-1) - 1. You can use: - -~~~~~ -rannum(X) :- yap_flag(max_integer,MI), rannum(R), X is R/MI. -~~~~~ -to obtain a floating point number uniformly distributed between 0 and 1. - - -*/ -EOF -sed -e "86r tmp" /Users/vsc/git/yap-6.3/library/prandom.yap > x - mv x /Users/vsc/git/yap-6.3/library/prandom.yap - -#false -cat << "EOF" > tmp -/** @pred serve_queue(+ _OldQueue_, + _Head_, - _NewQueue_) - - -Removes the first element of the queue for service. - - -*/ -EOF -sed -e "101r tmp" /Users/vsc/git/yap-6.3/library/queues.yap > x - mv x /Users/vsc/git/yap-6.3/library/queues.yap - -#false -cat << "EOF" > tmp -/** @pred queue_to_list(+ _Queue_, - _List_) - - -Creates a new list with the same elements as _Queue_. - - - - - */ -EOF -sed -e "101r tmp" /Users/vsc/git/yap-6.3/library/queues.yap > x - mv x /Users/vsc/git/yap-6.3/library/queues.yap - -#false -cat << "EOF" > tmp -/** @pred list_to_queue(+ _List_, - _Queue_) - - -Creates a new queue with the same elements as _List._ - - -*/ -EOF -sed -e "101r tmp" /Users/vsc/git/yap-6.3/library/queues.yap > x - mv x /Users/vsc/git/yap-6.3/library/queues.yap - -#false -cat << "EOF" > tmp -/** @pred list_jump_queue(+ _List_, + _OldQueue_, + _NewQueue_) - - -Adds all the elements of _List_ at the front of the queue. - - -*/ -EOF -sed -e "101r tmp" /Users/vsc/git/yap-6.3/library/queues.yap > x - mv x /Users/vsc/git/yap-6.3/library/queues.yap - -#false -cat << "EOF" > tmp -/** @pred list_join_queue(+ _List_, + _OldQueue_, - _NewQueue_) - - -Ads the new elements at the end of the queue. - - -*/ -EOF -sed -e "101r tmp" /Users/vsc/git/yap-6.3/library/queues.yap > x - mv x /Users/vsc/git/yap-6.3/library/queues.yap - -#false -cat << "EOF" > tmp -/** @pred length_queue(+ _Queue_, - _Length_) - - -Counts the number of elements currently in the queue. - - -*/ -EOF -sed -e "101r tmp" /Users/vsc/git/yap-6.3/library/queues.yap > x - mv x /Users/vsc/git/yap-6.3/library/queues.yap - -#false -cat << "EOF" > tmp -/** @pred jump_queue(+ _Element_, + _OldQueue_, - _NewQueue_) - - -Adds the new element at the front of the list. - - -*/ -EOF -sed -e "101r tmp" /Users/vsc/git/yap-6.3/library/queues.yap > x - mv x /Users/vsc/git/yap-6.3/library/queues.yap - -#false -cat << "EOF" > tmp -/** @pred join_queue(+ _Element_, + _OldQueue_, - _NewQueue_) - - -Adds the new element at the end of the queue. - - -*/ -EOF -sed -e "101r tmp" /Users/vsc/git/yap-6.3/library/queues.yap > x - mv x /Users/vsc/git/yap-6.3/library/queues.yap - -#false -cat << "EOF" > tmp -/** @pred head_queue(+ _Queue_, ? _Head_) - - -Unifies Head with the first element of the queue. - - -*/ -EOF -sed -e "101r tmp" /Users/vsc/git/yap-6.3/library/queues.yap > x - mv x /Users/vsc/git/yap-6.3/library/queues.yap - -#false -cat << "EOF" > tmp -/** @pred empty_queue(+ _Queue_) - - -Tests whether the queue is empty. - - -*/ -EOF -sed -e "101r tmp" /Users/vsc/git/yap-6.3/library/queues.yap > x - mv x /Users/vsc/git/yap-6.3/library/queues.yap - -#false -cat << "EOF" > tmp -/** @pred setrand(+ _Key_) - - -Use a term of the form `rand(X,Y,Z)` to set a new state for the -random number generator. The integer `X` must be in the range -`[1...30269)`, the integer `Y` must be in the range -`[1...30307)`, and the integer `Z` must be in the range -`[1...30323)`. - - - - - */ -EOF -sed -e "106r tmp" /Users/vsc/git/yap-6.3/library/random.yap > x - mv x /Users/vsc/git/yap-6.3/library/random.yap - -#false -cat << "EOF" > tmp -/** @pred randset(+ _LENGTH_, + _MAX_, - _Numbers_) - - -Unify _Numbers_ with an ordered list of _LENGTH_ unique random -integers in the range `[1... _MAX_)`. - - -*/ -EOF -sed -e "106r tmp" /Users/vsc/git/yap-6.3/library/random.yap > x - mv x /Users/vsc/git/yap-6.3/library/random.yap - -#false -cat << "EOF" > tmp -/** @pred randseq(+ _LENGTH_, + _MAX_, - _Numbers_) - - -Unify _Numbers_ with a list of _LENGTH_ unique random integers -in the range `[1... _MAX_)`. - - -*/ -EOF -sed -e "106r tmp" /Users/vsc/git/yap-6.3/library/random.yap > x - mv x /Users/vsc/git/yap-6.3/library/random.yap - -#false -cat << "EOF" > tmp -/** @pred random(- _Number_) - - -Unify _Number_ with a floating-point number in the range `[0...1)`. - - -*/ -EOF -sed -e "106r tmp" /Users/vsc/git/yap-6.3/library/random.yap > x - mv x /Users/vsc/git/yap-6.3/library/random.yap - -#false -cat << "EOF" > tmp -/** @pred random(+ _LOW_, + _HIGH_, - _NUMBER_) - -Unify _Number_ with a number in the range -`[LOW...HIGH)`. If both _LOW_ and _HIGH_ are -integers then _NUMBER_ will also be an integer, otherwise - _NUMBER_ will be a floating-point number. - - -*/ -EOF -sed -e "106r tmp" /Users/vsc/git/yap-6.3/library/random.yap > x - mv x /Users/vsc/git/yap-6.3/library/random.yap - -#false -cat << "EOF" > tmp -/** @pred rb_visit(+ _T_,- _Pairs_) - - - _Pairs_ is an infix visit of tree _T_, where each element of - _Pairs_ is of the form _K_- _Val_. - - -*/ -EOF -sed -e "13r tmp" /Users/vsc/git/yap-6.3/library/rbtrees.yap > x - mv x /Users/vsc/git/yap-6.3/library/rbtrees.yap - -#false -cat << "EOF" > tmp -/** @pred rb_update(+ _T_,+ _Key_,+ _NewVal_,- _TN_) - - -Tree _TN_ is tree _T_, but with value for _Key_ associated -with _NewVal_. Fails if it cannot find _Key_ in _T_. - - -*/ -EOF -sed -e "13r tmp" /Users/vsc/git/yap-6.3/library/rbtrees.yap > x - mv x /Users/vsc/git/yap-6.3/library/rbtrees.yap - -#false -cat << "EOF" > tmp -/** @pred rb_size(+ _T_,- _Size_) - - - _Size_ is the number of elements in _T_. - - -*/ -EOF -sed -e "13r tmp" /Users/vsc/git/yap-6.3/library/rbtrees.yap > x - mv x /Users/vsc/git/yap-6.3/library/rbtrees.yap - -#false -cat << "EOF" > tmp -/** @pred rb_previous(+ _T_, + _Key_,- _Previous_,- _Value_) - - - _Previous_ is the previous element after _Key_ in _T_, and is -associated with _Val_. - - -*/ -EOF -sed -e "13r tmp" /Users/vsc/git/yap-6.3/library/rbtrees.yap > x - mv x /Users/vsc/git/yap-6.3/library/rbtrees.yap - -#false -cat << "EOF" > tmp -/** @pred rb_partial_map(+ _T_,+ _Keys_,+ _G_,- _TN_) - - -For all nodes _Key_ in _Keys_, if the value associated with key - _Key_ is _Val0_ in tree _T_, and if `call(G,Val0,ValF)` -holds, then the value associated with _Key_ in _TN_ is - _ValF_. Fails if or if `call(G,Val0,ValF)` is not satisfiable -for all _Var0_. Assumes keys are not repeated. - - -*/ -EOF -sed -e "13r tmp" /Users/vsc/git/yap-6.3/library/rbtrees.yap > x - mv x /Users/vsc/git/yap-6.3/library/rbtrees.yap - -#false -cat << "EOF" > tmp -/** @pred rb_next(+ _T_, + _Key_,- _Next_,- _Value_) - - - _Next_ is the next element after _Key_ in _T_, and is -associated with _Val_. - - -*/ -EOF -sed -e "13r tmp" /Users/vsc/git/yap-6.3/library/rbtrees.yap > x - mv x /Users/vsc/git/yap-6.3/library/rbtrees.yap - -#false -cat << "EOF" > tmp -/** @pred rb_new(? _T_) - - -Create a new tree. - - -*/ -EOF -sed -e "13r tmp" /Users/vsc/git/yap-6.3/library/rbtrees.yap > x - mv x /Users/vsc/git/yap-6.3/library/rbtrees.yap - -#false -cat << "EOF" > tmp -/** @pred rb_min(+ _T_,- _Key_,- _Value_) - - - _Key_ is the minimum key in _T_, and is associated with _Val_. - - -*/ -EOF -sed -e "13r tmp" /Users/vsc/git/yap-6.3/library/rbtrees.yap > x - mv x /Users/vsc/git/yap-6.3/library/rbtrees.yap - -#false -cat << "EOF" > tmp -/** @pred rb_max(+ _T_,- _Key_,- _Value_) - - - _Key_ is the maximal key in _T_, and is associated with _Val_. - - -*/ -EOF -sed -e "13r tmp" /Users/vsc/git/yap-6.3/library/rbtrees.yap > x - mv x /Users/vsc/git/yap-6.3/library/rbtrees.yap - -#false -cat << "EOF" > tmp -/** @pred rb_map(+ _T_,+ _G_,- _TN_) - - -For all nodes _Key_ in the tree _T_, if the value associated with -key _Key_ is _Val0_ in tree _T_, and if -`call(G,Val0,ValF)` holds, then the value associated with _Key_ -in _TN_ is _ValF_. Fails if or if `call(G,Val0,ValF)` is not -satisfiable for all _Var0_. - - -*/ -EOF -sed -e "13r tmp" /Users/vsc/git/yap-6.3/library/rbtrees.yap > x - mv x /Users/vsc/git/yap-6.3/library/rbtrees.yap - -#false -cat << "EOF" > tmp -/** @pred rb_lookupall(+ _Key_,- _Value_,+ _T_) - - -Lookup all elements with key _Key_ in the red-black tree - _T_, returning the value _Value_. - - -*/ -EOF -sed -e "13r tmp" /Users/vsc/git/yap-6.3/library/rbtrees.yap > x - mv x /Users/vsc/git/yap-6.3/library/rbtrees.yap - -#false -cat << "EOF" > tmp -/** @pred rb_lookup(+ _Key_,- _Value_,+ _T_) - - -Backtrack through all elements with key _Key_ in the red-black tree - _T_, returning for each the value _Value_. - - -*/ -EOF -sed -e "13r tmp" /Users/vsc/git/yap-6.3/library/rbtrees.yap > x - mv x /Users/vsc/git/yap-6.3/library/rbtrees.yap - -#false -cat << "EOF" > tmp -/** @pred rb_keys(+ _T_,+ _Keys_) - - - _Keys_ is an infix visit with all keys in tree _T_. Keys will be -sorted, but may be duplicate. - - -*/ -EOF -sed -e "13r tmp" /Users/vsc/git/yap-6.3/library/rbtrees.yap > x - mv x /Users/vsc/git/yap-6.3/library/rbtrees.yap - -#false -cat << "EOF" > tmp -/** @pred rb_key_fold(+ _T_,+ _G_,+ _Acc0_, - _AccF_) - - -For all nodes _Key_ in the tree _T_, if the value -associated with key _Key_ is _V_ in tree _T_, if -`call(G,Key,V,Acc1,Acc2)` holds, then if _VL_ is value of the -previous node in inorder, `call(G,KeyL,VL,_,Acc0)` must hold, and if - _VR_ is the value of the next node in inorder, -`call(G,KeyR,VR,Acc1,_)` must hold. - - -*/ -EOF -sed -e "13r tmp" /Users/vsc/git/yap-6.3/library/rbtrees.yap > x - mv x /Users/vsc/git/yap-6.3/library/rbtrees.yap - -#false -cat << "EOF" > tmp -/** @pred rb_insert(+ _T0_,+ _Key_,? _Value_,+ _TF_) - - -Add an element with key _Key_ and _Value_ to the tree - _T0_ creating a new red-black tree _TF_. Duplicated elements are not -allowed. - -Add a new element with key _Key_ and _Value_ to the tree - _T0_ creating a new red-black tree _TF_. Fails is an element -with _Key_ exists in the tree. - - -*/ -EOF -sed -e "13r tmp" /Users/vsc/git/yap-6.3/library/rbtrees.yap > x - mv x /Users/vsc/git/yap-6.3/library/rbtrees.yap - -#false -cat << "EOF" > tmp -/** @pred rb_fold(+ _T_,+ _G_,+ _Acc0_, - _AccF_) - - -For all nodes _Key_ in the tree _T_, if the value -associated with key _Key_ is _V_ in tree _T_, if -`call(G,V,Acc1,Acc2)` holds, then if _VL_ is value of the -previous node in inorder, `call(G,VL,_,Acc0)` must hold, and if - _VR_ is the value of the next node in inorder, -`call(G,VR,Acc1,_)` must hold. - - -*/ -EOF -sed -e "13r tmp" /Users/vsc/git/yap-6.3/library/rbtrees.yap > x - mv x /Users/vsc/git/yap-6.3/library/rbtrees.yap - -#false -cat << "EOF" > tmp -/** @pred rb_empty(? _T_) - - -Succeeds if tree _T_ is empty. - - -*/ -EOF -sed -e "13r tmp" /Users/vsc/git/yap-6.3/library/rbtrees.yap > x - mv x /Users/vsc/git/yap-6.3/library/rbtrees.yap - -#false -cat << "EOF" > tmp -/** @pred rb_delete(+ _T_,+ _Key_,- _Val_,- _TN_) - -Delete element with key _Key_ from the tree _T_, returning the -value _Val_ associated with the key and a new tree _TN_. - - -*/ -EOF -sed -e "13r tmp" /Users/vsc/git/yap-6.3/library/rbtrees.yap > x - mv x /Users/vsc/git/yap-6.3/library/rbtrees.yap - -#false -cat << "EOF" > tmp -/** @pred rb_delete(+ _T_,+ _Key_,- _TN_) - - -Delete element with key _Key_ from the tree _T_, returning a new -tree _TN_. - - -*/ -EOF -sed -e "13r tmp" /Users/vsc/git/yap-6.3/library/rbtrees.yap > x - mv x /Users/vsc/git/yap-6.3/library/rbtrees.yap - -#false -cat << "EOF" > tmp -/** @pred rb_del_min(+ _T_,- _Key_,- _Val_,- _TN_) - - -Delete the least element from the tree _T_, returning the key - _Key_, the value _Val_ associated with the key and a new tree - _TN_. - - -*/ -EOF -sed -e "13r tmp" /Users/vsc/git/yap-6.3/library/rbtrees.yap > x - mv x /Users/vsc/git/yap-6.3/library/rbtrees.yap - -#false -cat << "EOF" > tmp -/** @pred rb_del_max(+ _T_,- _Key_,- _Val_,- _TN_) - - -Delete the largest element from the tree _T_, returning the key - _Key_, the value _Val_ associated with the key and a new tree - _TN_. - - -*/ -EOF -sed -e "13r tmp" /Users/vsc/git/yap-6.3/library/rbtrees.yap > x - mv x /Users/vsc/git/yap-6.3/library/rbtrees.yap - -#false -cat << "EOF" > tmp -/** @pred rb_clone(+ _T_,+ _NT_,+ _Nodes_) - - -=Clone= the red-back tree into a new tree with the same keys as the -original but with all values set to unbound values. _Nodes_ is a list -containing all new nodes as pairs _K-V_. - - -*/ -EOF -sed -e "13r tmp" /Users/vsc/git/yap-6.3/library/rbtrees.yap > x - mv x /Users/vsc/git/yap-6.3/library/rbtrees.yap - -#false -cat << "EOF" > tmp -/** @pred rb_apply(+ _T_,+ _Key_,+ _G_,- _TN_) - - -If the value associated with key _Key_ is _Val0_ in _T_, and -if `call(G,Val0,ValF)` holds, then _TN_ differs from - _T_ only in that _Key_ is associated with value _ValF_ in -tree _TN_. Fails if it cannot find _Key_ in _T_, or if -`call(G,Val0,ValF)` is not satisfiable. - - -*/ -EOF -sed -e "13r tmp" /Users/vsc/git/yap-6.3/library/rbtrees.yap > x - mv x /Users/vsc/git/yap-6.3/library/rbtrees.yap - -#false -cat << "EOF" > tmp -/** @pred ord_list_to_rbtree(+ _L_, - _T_) - - - _T_ is the red-black tree corresponding to the mapping in ordered -list _L_. - - - - */ -EOF -sed -e "13r tmp" /Users/vsc/git/yap-6.3/library/rbtrees.yap > x - mv x /Users/vsc/git/yap-6.3/library/rbtrees.yap - -#false -cat << "EOF" > tmp -/** @pred is_rbtree(+ _T_) - - -Check whether _T_ is a valid red-black tree. - - -*/ -EOF -sed -e "13r tmp" /Users/vsc/git/yap-6.3/library/rbtrees.yap > x - mv x /Users/vsc/git/yap-6.3/library/rbtrees.yap - -#false -cat << "EOF" > tmp -/** @pred regexp(+ _RegExp_,+ _String_,+ _Opts_,? _SubMatchVars_) - - -Match regular expression _RegExp_ to input string _String_ -according to options _Opts_. The variable _SubMatchVars_ should -be originally unbound or a list of unbound variables all will contain a -sequence of matches, that is, the head of _SubMatchVars_ will -contain the characters in _String_ that matched the leftmost -parenthesized subexpression within _RegExp_, the next head of list -will contain the characters that matched the next parenthesized -subexpression to the right in _RegExp_, and so on. - -The options may be: - -+ `nocase`: Causes upper-case characters in _String_ to -be treated as lower case during the matching process. -+ `indices`: Changes what is stored in - _SubMatchVars_. Instead of storing the matching characters from - _String_, each variable will contain a term of the form _IO-IF_ -giving the indices in _String_ of the first and last characters in -the matching range of characters. - - - -In general there may be more than one way to match a regular expression -to an input string. For example, consider the command - -~~~~~ - regexp("(a*)b*","aabaaabb", [], [X,Y]) -~~~~~ -Considering only the rules given so far, _X_ and _Y_ could end up -with the values `"aabb"` and `"aa"`, `"aaab"` and -`"aaa"`, `"ab"` and `"a"`, or any of several other -combinations. To resolve this potential ambiguity `regexp` chooses among -alternatives using the rule `first then longest`. In other words, it -considers the possible matches in order working from left to right -across the input string and the pattern, and it attempts to match longer -pieces of the input string before shorter ones. More specifically, the -following rules apply in decreasing order of priority: - -+ If a regular expression could match two different parts of an -input string then it will match the one that begins earliest. - -+ If a regular expression contains "|" operators then the leftmost matching sub-expression is chosen. - -+ In \*, +, and ? constructs, longer matches are chosen in preference to shorter ones. - -+ In sequences of expression components the components are considered from left to right. - -In the example above, `"(a\*)b\*"` matches `"aab"`: the -`"(a\*)"` portion of the pattern is matched first and it consumes -the leading `"aa"`; then the `"b\*"` portion of the pattern -consumes the next `"b"`. Or, consider the following example: - -~~~~~ - regexp("(ab|a)(b*)c", "abc", [], [X,Y,Z]) -~~~~~ - -After this command _X_ will be `"abc"`, _Y_ will be -`"ab"`, and _Z_ will be an empty string. Rule 4 specifies that -`"(ab|a)"` gets first shot at the input string and Rule 2 specifies -that the `"ab"` sub-expression is checked before the `"a"` -sub-expression. Thus the `"b"` has already been claimed before the -`"(b\*)"` component is checked and `(b\*)` must match an empty string. - - - - - */ -EOF -sed -e "149r tmp" /Users/vsc/git/yap-6.3/library/regexp.yap > x - mv x /Users/vsc/git/yap-6.3/library/regexp.yap - -#false -cat << "EOF" > tmp -/** @pred socket_select(+ _SOCKETS_, - _NEWSTREAMS_, + _TIMEOUT_, + _STREAMS_, - _READSTREAMS_) [unsupported in YAP-6.3] - -Interface to system call `select`, used for servers to wait for -connection requests or for data at sockets. The variable - _SOCKETS_ is a list of form _KEY-SOCKET_, where _KEY_ is -an user-defined identifier and _SOCKET_ is a socket descriptor. The -variable _TIMEOUT_ is either `off`, indicating execution will -wait until something is available, or of the form _SEC-USEC_, where - _SEC_ and _USEC_ give the seconds and microseconds before -socket_select/5 returns. The variable _SOCKETS_ is a list of -form _KEY-STREAM_, where _KEY_ is an user-defined identifier -and _STREAM_ is a stream descriptor - -Execution of socket_select/5 unifies _READSTREAMS_ from - _STREAMS_ with readable data, and _NEWSTREAMS_ with a list of -the form _KEY-STREAM_, where _KEY_ was the key for a socket -with pending data, and _STREAM_ the stream descriptor resulting -from accepting the connection. - - -*/ -EOF -sed -e "225r tmp" /Users/vsc/git/yap-6.3/library/sockets.yap > x - mv x /Users/vsc/git/yap-6.3/library/sockets.yap - -#false -cat << "EOF" > tmp -/** @pred socket_buffering(+ _SOCKET_, - _MODE_, - _OLD_, + _NEW_) - - -Set buffering for _SOCKET_ in `read` or `write` - _MODE_. _OLD_ is unified with the previous status, and _NEW_ -receives the new status which may be one of `unbuf` or -`fullbuf`. - - -*/ -EOF -sed -e "178r tmp" /Users/vsc/git/yap-6.3/library/sockets.yap > x - mv x /Users/vsc/git/yap-6.3/library/sockets.yap - -#false -cat << "EOF" > tmp -/** @pred socket_listen(+ _SOCKET_, + _LENGTH_) - - -Interface to system call `listen`, used for servers to indicate -willingness to wait for connections at socket _SOCKET_. The -integer _LENGTH_ gives the queue limit for incoming connections, -and should be limited to `5` for portable applications. The socket -must be of type `SOCK_STREAM` or `SOCK_SEQPACKET`. - - -*/ -EOF -sed -e "99r tmp" /Users/vsc/git/yap-6.3/library/sockets.yap > x - mv x /Users/vsc/git/yap-6.3/library/sockets.yap - -#false -cat << "EOF" > tmp -/** @pred socket_close(+ _SOCKET_) - - - -Close socket _SOCKET_. Note that sockets used in -`socket_connect` (that is, client sockets) should not be closed with -`socket_close`, as they will be automatically closed when the -corresponding stream is closed with close/1 or `close/2`. - - -*/ -EOF -sed -e "99r tmp" /Users/vsc/git/yap-6.3/library/sockets.yap > x - mv x /Users/vsc/git/yap-6.3/library/sockets.yap - -#false -cat << "EOF" > tmp -/** @pred socket_bind(+ _SOCKET_, ? _PORT_) - - - -Interface to system call `bind`, as used for servers: bind socket -to a port. Port information depends on the domain: - -+ 'AF_UNIX'(+ _FILENAME_) (unsupported) -+ 'AF_FILE'(+ _FILENAME_) -use file name _FILENAME_ for UNIX or local sockets. - -+ 'AF_INET'(? _HOST_,?PORT) -If _HOST_ is bound to an atom, bind to host _HOST_, otherwise -if unbound bind to local host ( _HOST_ remains unbound). If port - _PORT_ is bound to an integer, try to bind to the corresponding -port. If variable _PORT_ is unbound allow operating systems to -choose a port number, which is unified with _PORT_. - - - - -*/ -EOF -sed -e "99r tmp" /Users/vsc/git/yap-6.3/library/sockets.yap > x - mv x /Users/vsc/git/yap-6.3/library/sockets.yap - -#false -cat << "EOF" > tmp -/** @pred socket_accept(+ _SOCKET_, - _STREAM_) - -Accept a connection but do not return client information. - - -*/ -EOF -sed -e "99r tmp" /Users/vsc/git/yap-6.3/library/sockets.yap > x - mv x /Users/vsc/git/yap-6.3/library/sockets.yap - -#false -cat << "EOF" > tmp -/** @pred socket_accept(+ _SOCKET_, - _CLIENT_, - _STREAM_) - - -Interface to system call `accept`, used for servers to wait for -connections at socket _SOCKET_. The stream descriptor _STREAM_ -represents the resulting connection. If the socket belongs to the -domain `AF_INET`, _CLIENT_ unifies with an atom containing -the IP address for the client in numbers and dots notation. - - -*/ -EOF -sed -e "99r tmp" /Users/vsc/git/yap-6.3/library/sockets.yap > x - mv x /Users/vsc/git/yap-6.3/library/sockets.yap - -#false -cat << "EOF" > tmp -/** @pred hostname_address(? _HOSTNAME_,? _IP_ADDRESS_) - - _HOSTNAME_ is an host name and _IP_ADDRESS_ its IP -address in number and dots notation. - - - - -*/ -EOF -sed -e "99r tmp" /Users/vsc/git/yap-6.3/library/sockets.yap > x - mv x /Users/vsc/git/yap-6.3/library/sockets.yap - -#false -cat << "EOF" > tmp -/** @pred current_host(? _HOSTNAME_) - -Unify _HOSTNAME_ with an atom representing the fully qualified -hostname for the current host. Also succeeds if _HOSTNAME_ is bound -to the unqualified hostname. - - -*/ -EOF -sed -e "99r tmp" /Users/vsc/git/yap-6.3/library/sockets.yap > x - mv x /Users/vsc/git/yap-6.3/library/sockets.yap - -#false -cat << "EOF" > tmp -/** @pred splay_split(+ _Key_,? _Val_,+ _Tree_,- _LeftTree_,- _RightTree_) - - -Construct and return two trees _LeftTree_ and _RightTree_, -where _LeftTree_ contains all items in _Tree_ less than - _Key_, and _RightTree_ contains all items in _Tree_ -greater than _Key_. This operations destroys _Tree_. - - - - - */ -EOF -sed -e "93r tmp" /Users/vsc/git/yap-6.3/library/splay.yap > x - mv x /Users/vsc/git/yap-6.3/library/splay.yap - -#false -cat << "EOF" > tmp -/** @pred splay_join(+ _LeftTree_,+ _RighTree_,- _NewTree_) - - -Combine trees _LeftTree_ and _RighTree_ into a single -tree _NewTree_ containing all items from both trees. This operation -assumes that all items in _LeftTree_ are less than all those in - _RighTree_ and destroys both _LeftTree_ and _RighTree_. - - -*/ -EOF -sed -e "93r tmp" /Users/vsc/git/yap-6.3/library/splay.yap > x - mv x /Users/vsc/git/yap-6.3/library/splay.yap - -#false -cat << "EOF" > tmp -/** @pred splay_insert(+ _Key_,? _Val_,+ _Tree_,- _NewTree_) - - -Insert item _Key_ in tree _Tree_, assuming that it is not -there already. The variable _Val_ unifies with a value for key - _Key_, and the variable _NewTree_ unifies with the new -tree. In our implementation, _Key_ is not inserted if it is -already there: rather it is unified with the item already in the tree. - - -*/ -EOF -sed -e "93r tmp" /Users/vsc/git/yap-6.3/library/splay.yap > x - mv x /Users/vsc/git/yap-6.3/library/splay.yap - -#false -cat << "EOF" > tmp -/** @pred splay_init(- _NewTree_) - - -Initialize a new splay tree. - - -*/ -EOF -sed -e "93r tmp" /Users/vsc/git/yap-6.3/library/splay.yap > x - mv x /Users/vsc/git/yap-6.3/library/splay.yap - -#false -cat << "EOF" > tmp -/** @pred splay_del(+ _Item_,+ _Tree_,- _NewTree_) - - -Delete item _Key_ from tree _Tree_, assuming that it is present -already. The variable _Val_ unifies with a value for key _Key_, -and the variable _NewTree_ unifies with the new tree. The predicate -will fail if _Key_ is not present. - - -*/ -EOF -sed -e "93r tmp" /Users/vsc/git/yap-6.3/library/splay.yap > x - mv x /Users/vsc/git/yap-6.3/library/splay.yap - -#true -cat << "EOF" > tmp -/** @pred working_directory(- _Old_,+ _New_) - - - -Unify _Old_ with an absolute path to the current working directory -and change working directory to _New_. Use the pattern -`working_directory(CWD, CWD)` to get the current directory. See -also `absolute_file_name/2` and chdir/1. - - -*/ -EOF -sed -e "375r tmp" /Users/vsc/git/yap-6.3/library/system.yap > x - mv x /Users/vsc/git/yap-6.3/library/system.yap - -#false -cat << "EOF" > tmp -/** @pred tmpnam(- _File_) - - - -Interface with _tmpnam_: obtain a new, unique file name _File_. - - -*/ -EOF -sed -e "375r tmp" /Users/vsc/git/yap-6.3/library/system.yap > x - mv x /Users/vsc/git/yap-6.3/library/system.yap - -#true -cat << "EOF" > tmp -/** @pred tmp_file(+_Base_, - _File_) - -Create a name for a temporary file. _Base_ is an user provided -identifier for the category of file. The _TmpName_ is guaranteed to -be unique. If the system halts, it will automatically remove all created -temporary files. - - -*/ -EOF -sed -e "375r tmp" /Users/vsc/git/yap-6.3/library/system.yap > x - mv x /Users/vsc/git/yap-6.3/library/system.yap - -#false -cat << "EOF" > tmp -/** @pred system(+ _Command_,- _Res_) - -Interface to `system`: execute command _Command_ and unify - _Res_ with the result. - - -*/ -EOF -sed -e "375r tmp" /Users/vsc/git/yap-6.3/library/system.yap > x - mv x /Users/vsc/git/yap-6.3/library/system.yap - -#false -cat << "EOF" > tmp -/** @pred system - -Start a new default shell and leave YAP in background until the shell -completes. YAP uses `/bin/sh` in Unix systems and `COMSPEC` in -WIN32. - - -*/ -EOF -sed -e "375r tmp" /Users/vsc/git/yap-6.3/library/system.yap > x - mv x /Users/vsc/git/yap-6.3/library/system.yap - -#true -cat << "EOF" > tmp -/** @pred sleep(+ _Time_) - - -Block the current thread for _Time_ seconds. When YAP is compiled -without multi-threading support, this predicate blocks the YAP process. -The number of seconds must be a positive number, and it may an integer -or a float. The Unix implementation uses `usleep` if the number of -seconds is below one, and `sleep` if it is over a second. The WIN32 -implementation uses `Sleep` for both cases. - - -*/ -EOF -sed -e "375r tmp" /Users/vsc/git/yap-6.3/library/system.yap > x - mv x /Users/vsc/git/yap-6.3/library/system.yap - -#true -cat << "EOF" > tmp -/** @pred shell(+ _Command_,- _Status_) - -Execute command _Command_ under a new shell and unify _Status_ -with the exit for the command. YAP will be in background until the -command completes. In Unix environments YAP uses the shell given by the -environment variable `SHELL` with the option `" -c "`. In -WIN32 environment YAP will use `COMSPEC` if `SHELL` is -undefined, in this case with the option `" /c "`. - - -*/ -EOF -sed -e "375r tmp" /Users/vsc/git/yap-6.3/library/system.yap > x - mv x /Users/vsc/git/yap-6.3/library/system.yap - -#false -cat << "EOF" > tmp -/** @pred shell(+ _Command_) - -Execute command _Command_ under a new shell. YAP will be in -background until the command completes. In Unix environments YAP uses -the shell given by the environment variable `SHELL` with the option -`" -c "`. In WIN32 environment YAP will use `COMSPEC` if -`SHELL` is undefined, in this case with the option `" /c "`. - - -*/ -EOF -sed -e "375r tmp" /Users/vsc/git/yap-6.3/library/system.yap > x - mv x /Users/vsc/git/yap-6.3/library/system.yap - -#false -cat << "EOF" > tmp -/** @pred shell - - -Start a new shell and leave YAP in background until the shell -completes. YAP uses the shell given by the environment variable -`SHELL`. In WIN32 environment YAP will use `COMSPEC` if -`SHELL` is undefined. - - -*/ -EOF -sed -e "375r tmp" /Users/vsc/git/yap-6.3/library/system.yap > x - mv x /Users/vsc/git/yap-6.3/library/system.yap - -#true -cat << "EOF" > tmp -/** @pred rename_file(+ _OldFile_,+ _NewFile_) - - -Create file _OldFile_ to _NewFile_. This predicate uses the -`C` built-in function `rename`. - - -*/ -EOF -sed -e "375r tmp" /Users/vsc/git/yap-6.3/library/system.yap > x - mv x /Users/vsc/git/yap-6.3/library/system.yap - -#false -cat << "EOF" > tmp -/** @pred popen(+ _Command_, + _TYPE_, - _Stream_) - - -Interface to the popen function. It opens a process by creating a -pipe, forking and invoking _Command_ on the current shell. Since a -pipe is by definition unidirectional the _Type_ argument may be -`read` or `write`, not both. The stream should be closed -using close/1, there is no need for a special `pclose` -command. - -The following example demonstrates the use of popen/3 to process -the output of a command, as exec/3 would do: - -~~~~~{.prolog} - ?- popen(ls,read,X),repeat, get0(X,C), (C = -1, ! ; put(C)). - -X = 'C:\\cygwin\\home\\administrator' ? -~~~~~ - -The WIN32 implementation of popen/3 relies on exec/3. - - -*/ -EOF -sed -e "375r tmp" /Users/vsc/git/yap-6.3/library/system.yap > x - mv x /Users/vsc/git/yap-6.3/library/system.yap - -#false -cat << "EOF" > tmp -/** @pred pid(- _Id_) - - - -Unify _Id_ with the process identifier for the current -process. An interface to the getpid function. - - -*/ -EOF -sed -e "375r tmp" /Users/vsc/git/yap-6.3/library/system.yap > x - mv x /Users/vsc/git/yap-6.3/library/system.yap - -#true -cat << "EOF" > tmp -/** @pred mktime(+_Datime_, - _Seconds_) - -The `mktime/2` procedure receives a term of the form _datime(+ _Year_, -+ _Month_, + _DayOfTheMonth_, + _Hour_, + _Minute_, + _Second_)_ and -returns the number of _Seconds_ elapsed since 00:00:00 on January 1, -1970, Coordinated Universal Time (UTC). The user provides information -on _Year_, _Month_, _DayOfTheMonth_, _Hour_, _Minute_, and -_Second_. The _Hour_ is given on local time. This function uses the -WIN32 `GetLocalTime` function or the Unix `mktime` function. - -~~~~~ - ?- mktime(datime(2001,5,28,15,29,46),X). - -X = 991081786 ? ; -~~~~~ - - -*/ -EOF -sed -e "375r tmp" /Users/vsc/git/yap-6.3/library/system.yap > x - mv x /Users/vsc/git/yap-6.3/library/system.yap - -#false -cat << "EOF" > tmp -/** @pred mktemp( _Spec_,- _File_) - - - -Direct interface to `mktemp`: given a _Spec_, that is a file -name with six _X_ to it, create a file name _File_. Use -tmpnam/1 instead. - - -*/ -EOF -sed -e "375r tmp" /Users/vsc/git/yap-6.3/library/system.yap > x - mv x /Users/vsc/git/yap-6.3/library/system.yap - -#true -cat << "EOF" > tmp -/** @pred make_directory(+ _Dir_) - - -Create a directory _Dir_. The name of the directory must be an atom. - - -*/ -EOF -sed -e "375r tmp" /Users/vsc/git/yap-6.3/library/system.yap > x - mv x /Users/vsc/git/yap-6.3/library/system.yap - -#false -cat << "EOF" > tmp -/** @pred host_name(- _Name_) - - - -Unify _Name_ with a name for the current host. YAP uses the -`hostname` function in Unix systems when available, and the -`GetComputerName` function in WIN32 systems. - - -*/ -EOF -sed -e "375r tmp" /Users/vsc/git/yap-6.3/library/system.yap > x - mv x /Users/vsc/git/yap-6.3/library/system.yap - -#false -cat << "EOF" > tmp -/** @pred host_id(- _Id_) - - - -Unify _Id_ with an identifier of the current host. YAP uses the -`hostid` function when available, - - -*/ -EOF -sed -e "375r tmp" /Users/vsc/git/yap-6.3/library/system.yap > x - mv x /Users/vsc/git/yap-6.3/library/system.yap - -#true -cat << "EOF" > tmp -/** @pred file_property(+ _File_,? _Property_) - - -The atom _File_ corresponds to an existing file, and _Property_ -will be unified with a property of this file. The properties are of the -form `type( _Type_)`, which gives whether the file is a regular -file, a directory, a fifo file, or of unknown type; -`size( _Size_)`, with gives the size for a file, and -`mod_time( _Time_)`, which gives the last time a file was -modified according to some Operating System dependent -timestamp; `mode( _mode_)`, gives the permission flags for the -file, and `linkto( _FileName_)`, gives the file pointed to by a -symbolic link. Properties can be obtained through backtracking: - -~~~~~ - ?- file_property('Makefile',P). - -P = type(regular) ? ; - -P = size(2375) ? ; - -P = mod_time(990826911) ? ; - -no -~~~~~ - - -*/ -EOF -sed -e "375r tmp" /Users/vsc/git/yap-6.3/library/system.yap > x - mv x /Users/vsc/git/yap-6.3/library/system.yap - -#false -cat << "EOF" > tmp -/** @pred file_exists(+ _File_,+ _Permissions_) - -The atom _File_ corresponds to an existing file with permissions -compatible with _Permissions_. YAP currently only accepts for -permissions to be described as a number. The actual meaning of this -number is Operating System dependent. - - -*/ -EOF -sed -e "375r tmp" /Users/vsc/git/yap-6.3/library/system.yap > x - mv x /Users/vsc/git/yap-6.3/library/system.yap - -#false -cat << "EOF" > tmp -/** @pred file_exists(+ _File_) - - -The atom _File_ corresponds to an existing file. - - -*/ -EOF -sed -e "375r tmp" /Users/vsc/git/yap-6.3/library/system.yap > x - mv x /Users/vsc/git/yap-6.3/library/system.yap - -#false -cat << "EOF" > tmp -/** @pred exec(+ _Command_, _StandardStreams_,- _PID_) - - -Execute command _Command_ with its standard streams connected to -the list [_InputStream_, _OutputStream_, _ErrorStream_]. The -process that executes the command is returned as _PID_. The -command is executed by the default shell `bin/sh -c` in Unix. - -The following example demonstrates the use of exec/3 to send a -command and process its output: - -~~~~~ -exec(ls,[std,pipe(S),null],P),repeat, get0(S,C), (C = -1, close(S) ! ; put(C)). -~~~~~ - -The streams may be one of standard stream, `std`, null stream, -`null`, or `pipe(S)`, where _S_ is a pipe stream. Note -that it is up to the user to close the pipe. - - -*/ -EOF -sed -e "375r tmp" /Users/vsc/git/yap-6.3/library/system.yap > x - mv x /Users/vsc/git/yap-6.3/library/system.yap - -#false -cat << "EOF" > tmp -/** @pred environ(? _EnvVar_,+ _EnvValue_) - - -Unify environment variable _EnvVar_ with its value _EnvValue_, -if there is one. This predicate is backtrackable in Unix systems, but -not currently in Win32 configurations. - -~~~~~ - ?- environ('HOME',X). - -X = 'C:\\cygwin\\home\\administrator' ? -~~~~~ - - -*/ -EOF -sed -e "375r tmp" /Users/vsc/git/yap-6.3/library/system.yap > x - mv x /Users/vsc/git/yap-6.3/library/system.yap - -#true -cat << "EOF" > tmp -/** @pred directory_files(+ _Dir_,+ _List_) - - -Given a directory _Dir_, directory_files/2 procedures a -listing of all files and directories in the directory: - -~~~~~ - ?- directory_files('.',L), writeq(L). -['Makefile.~1~','sys.so','Makefile','sys.o',x,..,'.'] -~~~~~ -The predicates uses the `dirent` family of routines in Unix -environments, and `findfirst` in WIN32. - - -*/ -EOF -sed -e "375r tmp" /Users/vsc/git/yap-6.3/library/system.yap > x - mv x /Users/vsc/git/yap-6.3/library/system.yap - -#false -cat << "EOF" > tmp -/** @pred delete_file(+ _File_,+ _Opts_) - -The `delete_file/2` procedure removes file _File_ according to -options _Opts_. These options are `directory` if one should -remove directories, `recursive` if one should remove directories -recursively, and `ignore` if errors are not to be reported. - -This example is equivalent to using the delete_file/1 predicate: - -~~~~~ - ?- delete_file(x, [recursive]). -~~~~~ - - -*/ -EOF -sed -e "375r tmp" /Users/vsc/git/yap-6.3/library/system.yap > x - mv x /Users/vsc/git/yap-6.3/library/system.yap - -#true -cat << "EOF" > tmp -/** @pred delete_file(+ _File_) - - -The delete_file/1 procedure removes file _File_. If - _File_ is a directory, remove the directory and all its subdirectories. - -~~~~~ - ?- delete_file(x). -~~~~~ - - -*/ -EOF -sed -e "375r tmp" /Users/vsc/git/yap-6.3/library/system.yap > x - mv x /Users/vsc/git/yap-6.3/library/system.yap - -#true -cat << "EOF" > tmp -/** @pred working_directory(- _CurDir_,? _NextDir_) - - -Fetch the current directory at _CurDir_. If _NextDir_ is bound -to an atom, make its value the current working directory. - - -*/ -EOF -sed -e "375r tmp" /Users/vsc/git/yap-6.3/library/system.yap > x - mv x /Users/vsc/git/yap-6.3/library/system.yap - -#true -cat << "EOF" > tmp -/** @pred system(+ _S_) - - -Passes command _S_ to the Bourne shell (on UNIX environments) or the -current command interpreter in WIN32 environments. - - -*/ -EOF -sed -e "375r tmp" /Users/vsc/git/yap-6.3/library/system.yap > x - mv x /Users/vsc/git/yap-6.3/library/system.yap - -#false -cat << "EOF" > tmp -/** @pred environ(+ _E_,- _S_) - - - - - -Given an environment variable _E_ this predicate unifies the second argument _S_ with its value. - - -*/ -EOF -sed -e "375r tmp" /Users/vsc/git/yap-6.3/library/system.yap > x - mv x /Users/vsc/git/yap-6.3/library/system.yap - -#true -cat << "EOF" > tmp -/** @pred variant(? _Term1_, ? _Term2_) - - - -Succeed if _Term1_ and _Term2_ are variant terms. - - -*/ -EOF -sed -e "130r tmp" /Users/vsc/git/yap-6.3/library/terms.yap > x - mv x /Users/vsc/git/yap-6.3/library/terms.yap - -#true -cat << "EOF" > tmp -/** @pred variables_within_term(+ _Variables_,? _Term_, - _OutputVariables_) - - - -Unify _OutputVariables_ with the subset of the variables _Variables_ that occurs in _Term_. - - -*/ -EOF -sed -e "130r tmp" /Users/vsc/git/yap-6.3/library/terms.yap > x - mv x /Users/vsc/git/yap-6.3/library/terms.yap - -#true -cat << "EOF" > tmp -/** @pred variable_in_term(? _Term_,? _Var_) - - -Succeed if the second argument _Var_ is a variable and occurs in -term _Term_. - - -*/ -EOF -sed -e "130r tmp" /Users/vsc/git/yap-6.3/library/terms.yap > x - mv x /Users/vsc/git/yap-6.3/library/terms.yap - -#true -cat << "EOF" > tmp -/** @pred unifiable(? _Term1_, ? _Term2_, - _Bindings_) - - - -Succeed if _Term1_ and _Term2_ are unifiable with substitution - _Bindings_. - - - - - */ -EOF -sed -e "130r tmp" /Users/vsc/git/yap-6.3/library/terms.yap > x - mv x /Users/vsc/git/yap-6.3/library/terms.yap - -#true -cat << "EOF" > tmp -/** @pred term_hash(+ _Term_, ? _Hash_) - - - -If _Term_ is ground unify _Hash_ with a positive integer -calculated from the structure of the term. Otherwise the argument - _Hash_ is left unbound. The range of the positive integer is from -`0` to, but not including, `33554432`. - - -*/ -EOF -sed -e "130r tmp" /Users/vsc/git/yap-6.3/library/terms.yap > x - mv x /Users/vsc/git/yap-6.3/library/terms.yap - -#true -cat << "EOF" > tmp -/** @pred term_hash(+ _Term_, + _Depth_, + _Range_, ? _Hash_) - - -Unify _Hash_ with a positive integer calculated from the structure -of the term. The range of the positive integer is from `0` to, but -not including, _Range_. If _Depth_ is `-1` the whole term -is considered. Otherwise, the term is considered only up to depth -`1`, where the constants and the principal functor have depth -`1`, and an argument of a term with depth _I_ has depth _I+1_. - - -*/ -EOF -sed -e "130r tmp" /Users/vsc/git/yap-6.3/library/terms.yap > x - mv x /Users/vsc/git/yap-6.3/library/terms.yap - -#true -cat << "EOF" > tmp -/** @pred subsumes_chk(? _Term1_, ? _Term2_) - - - -Succeed if _Term1_ subsumes _Term2_ but does not bind any -variable in _Term1_. - - -*/ -EOF -sed -e "130r tmp" /Users/vsc/git/yap-6.3/library/terms.yap > x - mv x /Users/vsc/git/yap-6.3/library/terms.yap - -#true -cat << "EOF" > tmp -/** @pred subsumes(? _Term1_, ? _Term2_) - - - -Succeed if _Term1_ subsumes _Term2_. Variables in term - _Term1_ are bound so that the two terms become equal. - - -*/ -EOF -sed -e "130r tmp" /Users/vsc/git/yap-6.3/library/terms.yap > x - mv x /Users/vsc/git/yap-6.3/library/terms.yap - -#true -cat << "EOF" > tmp -/** @pred new_variables_in_term(+ _Variables_,? _Term_, - _OutputVariables_) - - - -Unify _OutputVariables_ with all variables occurring in _Term_ that are not in the list _Variables_. - - -*/ -EOF -sed -e "130r tmp" /Users/vsc/git/yap-6.3/library/terms.yap > x - mv x /Users/vsc/git/yap-6.3/library/terms.yap - -#true -cat << "EOF" > tmp -/** @pred term_subsumer(? _T1_, ? _T2_, ? _Subsumer_) - - - -Succeed if _Subsumer_ unifies with the least general -generalization over _T1_ and - _T2_. - - -*/ -EOF -sed -e "130r tmp" /Users/vsc/git/yap-6.3/library/terms.yap > x - mv x /Users/vsc/git/yap-6.3/library/terms.yap - -#false -cat << "EOF" > tmp -/** @pred tree_to_list(+ _Tree_, - _List_) - - -Is the converse operation to list_to_tree. - - - - - */ -EOF -sed -e "84r tmp" /Users/vsc/git/yap-6.3/library/trees.yap > x - mv x /Users/vsc/git/yap-6.3/library/trees.yap - -#false -cat << "EOF" > tmp -/** @pred tree_size(+ _Tree_, - _Size_) - - -Calculates the number of elements in the _Tree_. - - -*/ -EOF -sed -e "84r tmp" /Users/vsc/git/yap-6.3/library/trees.yap > x - mv x /Users/vsc/git/yap-6.3/library/trees.yap - -#false -cat << "EOF" > tmp -/** @pred put_label(+ _Index_, + _OldTree_, + _Label_, - _NewTree_) - - -constructs a new tree the same shape as the old which moreover has the -same elements except that the _Index_-th one is _Label_. - - -*/ -EOF -sed -e "84r tmp" /Users/vsc/git/yap-6.3/library/trees.yap > x - mv x /Users/vsc/git/yap-6.3/library/trees.yap - -#false -cat << "EOF" > tmp -/** @pred map_tree(+ _Pred_, + _OldTree_, - _NewTree_) - - -Holds when _OldTree_ and _NewTree_ are binary trees of the same shape -and `Pred(Old,New)` is true for corresponding elements of the two trees. - - -*/ -EOF -sed -e "84r tmp" /Users/vsc/git/yap-6.3/library/trees.yap > x - mv x /Users/vsc/git/yap-6.3/library/trees.yap - -#false -cat << "EOF" > tmp -/** @pred list_to_tree(+ _List_, - _Tree_) - - -Takes a given _List_ of _N_ elements and constructs a binary - _Tree_. - - -*/ -EOF -sed -e "84r tmp" /Users/vsc/git/yap-6.3/library/trees.yap > x - mv x /Users/vsc/git/yap-6.3/library/trees.yap - -#false -cat << "EOF" > tmp -/** @pred trie_usage(+ _Trie_,- _Entries_,- _Nodes_,- _VirtualNodes_) - - -Give statistics on trie _Trie_, the number of entries, - _Entries_, and the total number of nodes, _Nodes_, and the -number of _VirtualNodes_. - - -*/ -EOF -sed -e "149r tmp" /Users/vsc/git/yap-6.3/library/tries.yap > x - mv x /Users/vsc/git/yap-6.3/library/tries.yap - -#false -cat << "EOF" > tmp -/** @pred trie_stats(- _Memory_,- _Tries_,- _Entries_,- _Nodes_) - - -Give generic statistics on tries, including the amount of memory, - _Memory_, the number of tries, _Tries_, the number of entries, - _Entries_, and the total number of nodes, _Nodes_. - - -*/ -EOF -sed -e "149r tmp" /Users/vsc/git/yap-6.3/library/tries.yap > x - mv x /Users/vsc/git/yap-6.3/library/tries.yap - -#false -cat << "EOF" > tmp -/** @pred trie_save(+ _Trie_,+ _FileName_) - - -Dump trie _Trie_ into file _FileName_. - - -*/ -EOF -sed -e "149r tmp" /Users/vsc/git/yap-6.3/library/tries.yap > x - mv x /Users/vsc/git/yap-6.3/library/tries.yap - -#false -cat << "EOF" > tmp -/** @pred trie_remove_subtree(+ _Ref_) - - - -Remove subtree rooted at handle _Ref_. - - -*/ -EOF -sed -e "149r tmp" /Users/vsc/git/yap-6.3/library/tries.yap > x - mv x /Users/vsc/git/yap-6.3/library/tries.yap - -#false -cat << "EOF" > tmp -/** @pred trie_remove_entry(+ _Ref_) - - - -Remove entry for handle _Ref_. - - -*/ -EOF -sed -e "149r tmp" /Users/vsc/git/yap-6.3/library/tries.yap > x - mv x /Users/vsc/git/yap-6.3/library/tries.yap - -#false -cat << "EOF" > tmp -/** @pred trie_put_entry(+ _Trie_,+ _Term_,- _Ref_) - - - -Add term _Term_ to trie _Trie_. The handle _Ref_ gives -a reference to the term. - - -*/ -EOF -sed -e "149r tmp" /Users/vsc/git/yap-6.3/library/tries.yap > x - mv x /Users/vsc/git/yap-6.3/library/tries.yap - -#false -cat << "EOF" > tmp -/** @pred trie_print(+ _Trie_) - - -Print trie _Trie_ on standard output. - - - - - */ -EOF -sed -e "149r tmp" /Users/vsc/git/yap-6.3/library/tries.yap > x - mv x /Users/vsc/git/yap-6.3/library/tries.yap - -#false -cat << "EOF" > tmp -/** @pred trie_open(- _Id_) - - - -Open a new trie with identifier _Id_. - - -*/ -EOF -sed -e "149r tmp" /Users/vsc/git/yap-6.3/library/tries.yap > x - mv x /Users/vsc/git/yap-6.3/library/tries.yap - -#false -cat << "EOF" > tmp -/** @pred trie_mode(? _Mode_) - - - -Unify _Mode_ with trie operation mode. Allowed values are either -`std` (default) or `rev`. - - -*/ -EOF -sed -e "149r tmp" /Users/vsc/git/yap-6.3/library/tries.yap > x - mv x /Users/vsc/git/yap-6.3/library/tries.yap - -#false -cat << "EOF" > tmp -/** @pred trie_max_stats(- _Memory_,- _Tries_,- _Entries_,- _Nodes_) - - -Give maximal statistics on tries, including the amount of memory, - _Memory_, the number of tries, _Tries_, the number of entries, - _Entries_, and the total number of nodes, _Nodes_. - - -*/ -EOF -sed -e "149r tmp" /Users/vsc/git/yap-6.3/library/tries.yap > x - mv x /Users/vsc/git/yap-6.3/library/tries.yap - -#false -cat << "EOF" > tmp -/** @pred trie_load(+ _Trie_,+ _FileName_) - - -Load trie _Trie_ from the contents of file _FileName_. - - -*/ -EOF -sed -e "149r tmp" /Users/vsc/git/yap-6.3/library/tries.yap > x - mv x /Users/vsc/git/yap-6.3/library/tries.yap - -#false -cat << "EOF" > tmp -/** @pred trie_get_entry(+ _Ref_,- _Term_) - - -Unify _Term_ with the entry for handle _Ref_. - - -*/ -EOF -sed -e "149r tmp" /Users/vsc/git/yap-6.3/library/tries.yap > x - mv x /Users/vsc/git/yap-6.3/library/tries.yap - -#false -cat << "EOF" > tmp -/** @pred trie_close_all - - - -Close all available tries. - - -*/ -EOF -sed -e "149r tmp" /Users/vsc/git/yap-6.3/library/tries.yap > x - mv x /Users/vsc/git/yap-6.3/library/tries.yap - -#false -cat << "EOF" > tmp -/** @pred trie_close(+ _Id_) - - - -Close trie with identifier _Id_. - - -*/ -EOF -sed -e "149r tmp" /Users/vsc/git/yap-6.3/library/tries.yap > x - mv x /Users/vsc/git/yap-6.3/library/tries.yap - -#false -cat << "EOF" > tmp -/** @pred trie_check_entry(+ _Trie_,+ _Term_,- _Ref_) - - - -Succeeds if a variant of term _Term_ is in trie _Trie_. An handle - _Ref_ gives a reference to the term. - - -*/ -EOF -sed -e "149r tmp" /Users/vsc/git/yap-6.3/library/tries.yap > x - mv x /Users/vsc/git/yap-6.3/library/tries.yap - -#false -cat << "EOF" > tmp -/** @pred vertices(+ _Graph_, - _Vertices_) - - -Unify _Vertices_ with all vertices appearing in graph - _Graph_. In the next example: - -~~~~~{.prolog} -?- vertices([1-[3,5],2-[4],3-[],4-[5],5-[]], V). - -L = [1,2,3,4,5] -~~~~~ - - -*/ -EOF -sed -e "295r tmp" /Users/vsc/git/yap-6.3/library/ugraphs.yap > x - mv x /Users/vsc/git/yap-6.3/library/ugraphs.yap - -#false -cat << "EOF" > tmp -/** @pred transitive_closure(+ _Graph_, + _Closure_) - - -Generate the graph _Closure_ as the transitive closure of graph - _Graph_. -In the next example: - -~~~~~{.prolog} -?- transitive_closure([1-[2,3],2-[4,5],4-[6]],L). - -L = [1-[2,3,4,5,6],2-[4,5,6],4-[6]] -~~~~~ - - -*/ -EOF -sed -e "295r tmp" /Users/vsc/git/yap-6.3/library/ugraphs.yap > x - mv x /Users/vsc/git/yap-6.3/library/ugraphs.yap - -#false -cat << "EOF" > tmp -/** @pred top_sort(+ _Graph_, - _Sort_) - - -Generate the set of nodes _Sort_ as a topological sorting of graph - _Graph_, if one is possible. -In the next example we show how topological sorting works for a linear graph: - -~~~~~{.prolog} -?- top_sort([_138-[_219],_219-[_139], _139-[]],L). - -L = [_138,_219,_139] -~~~~~ - - -*/ -EOF -sed -e "295r tmp" /Users/vsc/git/yap-6.3/library/ugraphs.yap > x - mv x /Users/vsc/git/yap-6.3/library/ugraphs.yap - -#false -cat << "EOF" > tmp -/** @pred top_sort(+ _Graph_, - _Sort0_, - _Sort_) - -Generate the difference list _Sort_- _Sort0_ as a topological -sorting of graph _Graph_, if one is possible. - - -*/ -EOF -sed -e "295r tmp" /Users/vsc/git/yap-6.3/library/ugraphs.yap > x - mv x /Users/vsc/git/yap-6.3/library/ugraphs.yap - -#false -cat << "EOF" > tmp -/** @pred reachable(+ _Node_, + _Graph_, - _Vertices_) - - -Unify _Vertices_ with the set of all vertices in graph - _Graph_ that are reachable from _Node_. In the next example: - -~~~~~{.prolog} -?- reachable(1,[1-[3,5],2-[4],3-[],4-[5],5-[]],V). - -V = [1,3,5] -~~~~~ - - - - - */ -EOF -sed -e "295r tmp" /Users/vsc/git/yap-6.3/library/ugraphs.yap > x - mv x /Users/vsc/git/yap-6.3/library/ugraphs.yap - -#false -cat << "EOF" > tmp -/** @pred neighbours(+ _Vertex_, + _Graph_, - _Vertices_) - - -Unify _Vertices_ with the list of neighbours of vertex _Vertex_ -in _Graph_. In the next example: - -~~~~~{.prolog} -?- neighbours(4,[1-[3,5],2-[4],3-[], - 4-[1,2,7,5],5-[],6-[],7-[],8-[]], NL). - -NL = [1,2,7,5] -~~~~~ - - -*/ -EOF -sed -e "295r tmp" /Users/vsc/git/yap-6.3/library/ugraphs.yap > x - mv x /Users/vsc/git/yap-6.3/library/ugraphs.yap - -#false -cat << "EOF" > tmp -/** @pred neighbors(+ _Vertex_, + _Graph_, - _Vertices_) - - -Unify _Vertices_ with the list of neighbors of vertex _Vertex_ -in _Graph_. If the vertice is not in the graph fail. In the next -example: - -~~~~~{.prolog} -?- neighbors(4,[1-[3,5],2-[4],3-[], - 4-[1,2,7,5],5-[],6-[],7-[],8-[]], - NL). - -NL = [1,2,7,5] -~~~~~ - - -*/ -EOF -sed -e "295r tmp" /Users/vsc/git/yap-6.3/library/ugraphs.yap > x - mv x /Users/vsc/git/yap-6.3/library/ugraphs.yap - -#false -cat << "EOF" > tmp -/** @pred edges(+ _Graph_, - _Edges_) - - -Unify _Edges_ with all edges appearing in graph - _Graph_. In the next example: - -~~~~~{.prolog} -?- vertices([1-[3,5],2-[4],3-[],4-[5],5-[]], V). - -L = [1,2,3,4,5] -~~~~~ - - -*/ -EOF -sed -e "295r tmp" /Users/vsc/git/yap-6.3/library/ugraphs.yap > x - mv x /Users/vsc/git/yap-6.3/library/ugraphs.yap - -#true -cat << "EOF" > tmp -/** @pred del_vertices(+ _Graph_, + _Vertices_, - _NewGraph_) - - -Unify _NewGraph_ with a new graph obtained by deleting the list of -vertices _Vertices_ and all the edges that start from or go to a -vertex in _Vertices_ to the graph _Graph_. In the next example: - -~~~~~{.prolog} -?- del_vertices([2,1],[1-[3,5],2-[4],3-[], - 4-[5],5-[],6-[],7-[2,6],8-[]],NL). - -NL = [3-[],4-[5],5-[],6-[],7-[6],8-[]] -~~~~~ - - -*/ -EOF -sed -e "295r tmp" /Users/vsc/git/yap-6.3/library/ugraphs.yap > x - mv x /Users/vsc/git/yap-6.3/library/ugraphs.yap - -#true -cat << "EOF" > tmp -/** @pred del_edges(+ _Graph_, + _Edges_, - _NewGraph_) - - -Unify _NewGraph_ with a new graph obtained by removing the list of -edges _Edges_ from the graph _Graph_. Notice that no vertices -are deleted. In the next example: - -~~~~~{.prolog} -?- del_edges([1-[3,5],2-[4],3-[],4-[5],5-[], - 6-[],7-[],8-[]], - [1-6,2-3,3-2,5-7,3-2,4-5,1-3],NL). - -NL = [1-[5],2-[4],3-[],4-[],5-[],6-[],7-[],8-[]] -~~~~~ - - -*/ -EOF -sed -e "295r tmp" /Users/vsc/git/yap-6.3/library/ugraphs.yap > x - mv x /Users/vsc/git/yap-6.3/library/ugraphs.yap - -#true -cat << "EOF" > tmp -/** @pred compose(+ _LeftGraph_, + _RightGraph_, - _NewGraph_) - - -Compose the graphs _LeftGraph_ and _RightGraph_ to form _NewGraph_. -In the next example: - -~~~~~{.prolog} -?- compose([1-[2],2-[3]],[2-[4],3-[1,2,4]],L). - -L = [1-[4],2-[1,2,4],3-[]] -~~~~~ - - -*/ -EOF -sed -e "295r tmp" /Users/vsc/git/yap-6.3/library/ugraphs.yap > x - mv x /Users/vsc/git/yap-6.3/library/ugraphs.yap - -#false -cat << "EOF" > tmp -/** @pred complement(+ _Graph_, - _NewGraph_) - - -Unify _NewGraph_ with the graph complementary to _Graph_. -In the next example: - -~~~~~{.prolog} -?- complement([1-[3,5],2-[4],3-[], - 4-[1,2,7,5],5-[],6-[],7-[],8-[]], NL). - -NL = [1-[2,4,6,7,8],2-[1,3,5,6,7,8],3-[1,2,4,5,6,7,8], - 4-[3,5,6,8],5-[1,2,3,4,6,7,8],6-[1,2,3,4,5,7,8], - 7-[1,2,3,4,5,6,8],8-[1,2,3,4,5,6,7]] -~~~~~ - - -*/ -EOF -sed -e "295r tmp" /Users/vsc/git/yap-6.3/library/ugraphs.yap > x - mv x /Users/vsc/git/yap-6.3/library/ugraphs.yap - -#true -cat << "EOF" > tmp -/** @pred add_vertices(+ _Graph_, + _Vertices_, - _NewGraph_) - - -Unify _NewGraph_ with a new graph obtained by adding the list of -vertices _Vertices_ to the graph _Graph_. In the next example: - -~~~~~{.prolog} -?- add_vertices([1-[3,5],2-[4],3-[],4-[5], - 5-[],6-[],7-[],8-[]], - [0,2,9,10,11], - NG). - -NG = [0-[],1-[3,5],2-[4],3-[],4-[5],5-[], - 6-[],7-[],8-[],9-[],10-[],11-[]] -~~~~~ - - -*/ -EOF -sed -e "295r tmp" /Users/vsc/git/yap-6.3/library/ugraphs.yap > x - mv x /Users/vsc/git/yap-6.3/library/ugraphs.yap - -#true -cat << "EOF" > tmp -/** @pred add_edges(+ _Graph_, + _Edges_, - _NewGraph_) - - -Unify _NewGraph_ with a new graph obtained by adding the list of -edges _Edges_ to the graph _Graph_. In the next example: - -~~~~~{.prolog} -?- add_edges([1-[3,5],2-[4],3-[],4-[5],5-[],6-[], - 7-[],8-[]],[1-6,2-3,3-2,5-7,3-2,4-5],NL). - -NL = [1-[3,5,6],2-[3,4],3-[2],4-[5],5-[7],6-[],7-[],8-[]] -~~~~~ - - -*/ -EOF -sed -e "295r tmp" /Users/vsc/git/yap-6.3/library/ugraphs.yap > x - mv x /Users/vsc/git/yap-6.3/library/ugraphs.yap - -#false -cat << "EOF" > tmp -/** @pred vertices_edges_to_ugraph(+ _Vertices_, + _Edges_, - _Graph_) - - -Given a graph with a set of vertices _Vertices_ and a set of edges - _Edges_, _Graph_ must unify with the corresponding -s-representation. Note that the vertices without edges will appear in - _Vertices_ but not in _Edges_. Moreover, it is sufficient for a -vertex to appear in _Edges_. - -~~~~~{.prolog} -?- vertices_edges_to_ugraph([],[1-3,2-4,4-5,1-5],L). - -L = [1-[3,5],2-[4],3-[],4-[5],5-[]] ? - -~~~~~ -In this case all edges are defined implicitly. The next example shows -three unconnected edges: - -~~~~~{.prolog} -?- vertices_edges_to_ugraph([6,7,8],[1-3,2-4,4-5,1-5],L). - -L = [1-[3,5],2-[4],3-[],4-[5],5-[],6-[],7-[],8-[]] ? - -~~~~~ - - -*/ -EOF -sed -e "295r tmp" /Users/vsc/git/yap-6.3/library/ugraphs.yap > x - mv x /Users/vsc/git/yap-6.3/library/ugraphs.yap - -#false -cat << "EOF" > tmp -/** @pred undgraph_neighbours(+ _Vertex_, + _Graph_, - _Vertices_) - - -Unify _Vertices_ with the list of neighbours of vertex _Vertex_ -in _Graph_. - - -*/ -EOF -sed -e "6r tmp" /Users/vsc/git/yap-6.3/library/undgraphs.yap > x - mv x /Users/vsc/git/yap-6.3/library/undgraphs.yap - -#false -cat << "EOF" > tmp -/** @pred undgraph_neighbors(+ _Vertex_, + _Graph_, - _Vertices_) - - -Unify _Vertices_ with the list of neighbors of vertex _Vertex_ -in _Graph_. If the vertice is not in the graph fail. - - -*/ -EOF -sed -e "6r tmp" /Users/vsc/git/yap-6.3/library/undgraphs.yap > x - mv x /Users/vsc/git/yap-6.3/library/undgraphs.yap - -#false -cat << "EOF" > tmp -/** @pred undgraph_edges(+ _Graph_, - _Edges_) - - -Unify _Edges_ with all edges appearing in graph - _Graph_. - - -*/ -EOF -sed -e "6r tmp" /Users/vsc/git/yap-6.3/library/undgraphs.yap > x - mv x /Users/vsc/git/yap-6.3/library/undgraphs.yap - -#false -cat << "EOF" > tmp -/** @pred undgraph_del_vertices(+ _Graph_, + _Vertices_, - _NewGraph_) - - -Unify _NewGraph_ with a new graph obtained by deleting the list of -vertices _Vertices_ and all the edges that start from or go to a -vertex in _Vertices_ to the graph _Graph_. - - -*/ -EOF -sed -e "6r tmp" /Users/vsc/git/yap-6.3/library/undgraphs.yap > x - mv x /Users/vsc/git/yap-6.3/library/undgraphs.yap - -#false -cat << "EOF" > tmp -/** @pred undgraph_del_edges(+ _Graph_, + _Edges_, - _NewGraph_) - - -Unify _NewGraph_ with a new graph obtained by removing the list of -edges _Edges_ from the graph _Graph_. Notice that no vertices -are deleted. - - -*/ -EOF -sed -e "6r tmp" /Users/vsc/git/yap-6.3/library/undgraphs.yap > x - mv x /Users/vsc/git/yap-6.3/library/undgraphs.yap - -#false -cat << "EOF" > tmp -/** @pred undgraph_add_vertices(+ _Graph_, + _Vertices_, - _NewGraph_) - - -Unify _NewGraph_ with a new graph obtained by adding the list of -vertices _Vertices_ to the graph _Graph_. - - -*/ -EOF -sed -e "6r tmp" /Users/vsc/git/yap-6.3/library/undgraphs.yap > x - mv x /Users/vsc/git/yap-6.3/library/undgraphs.yap - -#false -cat << "EOF" > tmp -/** @pred undgraph_add_edges(+ _Graph_, + _Edges_, - _NewGraph_) - - -Unify _NewGraph_ with a new graph obtained by adding the list of -edges _Edges_ to the graph _Graph_. - - -*/ -EOF -sed -e "6r tmp" /Users/vsc/git/yap-6.3/library/undgraphs.yap > x - mv x /Users/vsc/git/yap-6.3/library/undgraphs.yap - -#false -cat << "EOF" > tmp -/** @pred char_type(? _Char_, ? _Type_) - - -Tests or generates alternative _Types_ or _Chars_. The -character-types are inspired by the standard `C` -`` primitives. - -+ `alnum` - _Char_ is a letter (upper- or lowercase) or digit. - -+ `alpha` - _Char_ is a letter (upper- or lowercase). - -+ `csym` - _Char_ is a letter (upper- or lowercase), digit or the underscore (_). These are valid C- and Prolog symbol characters. - -+ `csymf` - _Char_ is a letter (upper- or lowercase) or the underscore (_). These are valid first characters for C- and Prolog symbols - -+ `ascii` - _Char_ is a 7-bits ASCII character (0..127). - -+ `white` - _Char_ is a space or tab. E.i. white space inside a line. - -+ `cntrl` - _Char_ is an ASCII control-character (0..31). - -+ `digit` - _Char_ is a digit. - -+ `digit( _Weight_)` - _Char_ is a digit with value _Weight_. I.e. `char_type(X, digit(6))` yields X = aaasaá'6'. Useful for parsing numbers. - -+ `xdigit( _Weight_)` - _Char_ is a hexa-decimal digit with value _Weight_. I.e. char_type(a, xdigit(X) yields X = '10'. Useful for parsing numbers. - -+ `graph` - _Char_ produces a visible mark on a page when printed. Note that the space is not included! - -+ `lower` - _Char_ is a lower-case letter. - -+ `lower(Upper)` - _Char_ is a lower-case version of _Upper_. Only true if _Char_ is lowercase and _Upper_ uppercase. - -+ `to_lower(Upper)` - _Char_ is a lower-case version of Upper. For non-letters, or letter without case, _Char_ and Lower are the same. See also upcase_atom/2 and downcase_atom/2. - -+ `upper` - _Char_ is an upper-case letter. - -+ `upper(Lower)` - _Char_ is an upper-case version of Lower. Only true if _Char_ is uppercase and Lower lowercase. - -+ `to_upper(Lower)` - _Char_ is an upper-case version of Lower. For non-letters, or letter without case, _Char_ and Lower are the same. See also upcase_atom/2 and downcase_atom/2. - -+ `punct` - _Char_ is a punctuation character. This is a graph character that is not a letter or digit. - -+ `space` - _Char_ is some form of layout character (tab, vertical-tab, newline, etc.). - -+ `end_of_file` - _Char_ is -1. - -+ `end_of_line` - _Char_ ends a line (ASCII: 10..13). - -+ `newline` - _Char_ is a the newline character (10). - -+ `period` - _Char_ counts as the end of a sentence (.,!,?). - -+ `quote` - _Char_ is a quote-character. - -+ `paren(Close)` - _Char_ is an open-parenthesis and Close is the corresponding close-parenthesis. - - -+ `code_type(? _Code_, ? _Type_)` - - -As char_type/2, but uses character-codes rather than -one-character atoms. Please note that both predicates are as -flexible as possible. They handle either representation if the -argument is instantiated and only will instantiate with an integer -code or one-character atom depending of the version used. See also -the prolog-flag double_quotes and the built-in predicates -atom_chars/2 and atom_codes/2. - - - - - */ -EOF -sed -e "440r tmp" /Users/vsc/git/yap-6.3/os/pl-ctype.c > x - mv x /Users/vsc/git/yap-6.3/os/pl-ctype.c - -#false -cat << "EOF" > tmp -/** @pred write_canonical(+ _S_,+ _T_) is iso - -Displays term _T_ on the stream _S_. Atoms are quoted when -necessary, and operators are ignored. - - -*/ -EOF -sed -e "5859r tmp" /Users/vsc/git/yap-6.3/os/pl-file.c > x - mv x /Users/vsc/git/yap-6.3/os/pl-file.c - -#false -cat << "EOF" > tmp -/** @pred print(+ _S_, _T_) - -Prints term _T_ to the stream _S_ instead of to the current output -stream. - - -*/ -EOF -sed -e "5851r tmp" /Users/vsc/git/yap-6.3/os/pl-file.c > x - mv x /Users/vsc/git/yap-6.3/os/pl-file.c - -#false -cat << "EOF" > tmp -/** @pred writeq(+ _S_, _T_) is iso - -As writeq/1, but the output is sent to the stream _S_. - - -*/ -EOF -sed -e "5844r tmp" /Users/vsc/git/yap-6.3/os/pl-file.c > x - mv x /Users/vsc/git/yap-6.3/os/pl-file.c - -#false -cat << "EOF" > tmp -/** @pred write(+ _S_, _T_) is iso - -Writes term _T_ to stream _S_ instead of to the current output -stream. - - -*/ -EOF -sed -e "5836r tmp" /Users/vsc/git/yap-6.3/os/pl-file.c > x - mv x /Users/vsc/git/yap-6.3/os/pl-file.c - -#false -cat << "EOF" > tmp -/** @pred nl(+ _S_) is iso - -Outputs a new line to stream _S_. - - - - - */ -EOF -sed -e "5825r tmp" /Users/vsc/git/yap-6.3/os/pl-file.c > x - mv x /Users/vsc/git/yap-6.3/os/pl-file.c - -#false -cat << "EOF" > tmp -/** @pred print( _T_) - - -Prints the term _T_ to the current output stream using write/1 -unless T is bound and a call to the user-defined predicate -`portray/1` succeeds. To do pretty printing of terms the user should -define suitable clauses for `portray/1` and use print/1. - - -*/ -EOF -sed -e "5814r tmp" /Users/vsc/git/yap-6.3/os/pl-file.c > x - mv x /Users/vsc/git/yap-6.3/os/pl-file.c - -#false -cat << "EOF" > tmp -/** @pred writeq( _T_) is iso - - -Writes the term _T_, quoting names to make the result acceptable to -the predicate `read` whenever necessary. - - -*/ -EOF -sed -e "5805r tmp" /Users/vsc/git/yap-6.3/os/pl-file.c > x - mv x /Users/vsc/git/yap-6.3/os/pl-file.c - -#false -cat << "EOF" > tmp -/** @pred write( _T_) is iso - - -The term _T_ is written to the current output stream according to -the operator declarations in force. - - -*/ -EOF -sed -e "5796r tmp" /Users/vsc/git/yap-6.3/os/pl-file.c > x - mv x /Users/vsc/git/yap-6.3/os/pl-file.c - -#false -cat << "EOF" > tmp -/** @pred write_term(+ _S_, + _T_, + _Opts_) is iso - -Displays term _T_ on the current output stream, according to the same -options used by `write_term/3`. - - -*/ -EOF -sed -e "5788r tmp" /Users/vsc/git/yap-6.3/os/pl-file.c > x - mv x /Users/vsc/git/yap-6.3/os/pl-file.c - -#false -cat << "EOF" > tmp -/** @pred write_term(+ _T_, + _Opts_) is iso - - -Displays term _T_ on the current output stream, according to the -following options: - -+ quoted(+ _Bool_) is iso -If `true`, quote atoms if this would be necessary for the atom to -be recognized as an atom by YAP's parser. The default value is -`false`. - -+ ignore_ops(+ _Bool_) is iso -If `true`, ignore operator declarations when writing the term. The -default value is `false`. - -+ numbervars(+ _Bool_) is iso -If `true`, output terms of the form -`$VAR(N)`, where _N_ is an integer, as a sequence of capital -letters. The default value is `false`. - -+ portrayed(+ _Bool_) -If `true`, use portray/1 to portray bound terms. The default -value is `false`. - -+ portray(+ _Bool_) -If `true`, use portray/1 to portray bound terms. The default -value is `false`. - -+ max_depth(+ _Depth_) -If `Depth` is a positive integer, use Depth as -the maximum depth to portray a term. The default is `0`, that is, -unlimited depth. - -+ priority(+ _Piority_) -If `Priority` is a positive integer smaller than `1200`, -give the context priority. The default is `1200`. - -+ cycles(+ _Bool_) -Do not loop in rational trees (default). - - - -*/ -EOF -sed -e "5744r tmp" /Users/vsc/git/yap-6.3/os/pl-file.c > x - mv x /Users/vsc/git/yap-6.3/os/pl-file.c - -#false -cat << "EOF" > tmp -/** @pred write_canonical(+ _T_) is iso - - -Displays term _T_ on the current output stream. Atoms are quoted -when necessary, and operators are ignored, that is, the term is written -in standard parenthesized prefix notation. - - -*/ -EOF -sed -e "5734r tmp" /Users/vsc/git/yap-6.3/os/pl-file.c > x - mv x /Users/vsc/git/yap-6.3/os/pl-file.c - -#false -cat << "EOF" > tmp -/** @pred nl is iso - - -Outputs a new line to the current output stream. - - - - - */ -EOF -sed -e "5724r tmp" /Users/vsc/git/yap-6.3/os/pl-file.c > x - mv x /Users/vsc/git/yap-6.3/os/pl-file.c - -#false -cat << "EOF" > tmp -/** @pred get0(- _C_) - - -The next character from the current input stream is consumed, and then -unified with _C_. There are no restrictions on the possible -values of the ASCII code for the character, but the character will be -internally converted by YAP. - - -*/ -EOF -sed -e "5592r tmp" /Users/vsc/git/yap-6.3/os/pl-file.c > x - mv x /Users/vsc/git/yap-6.3/os/pl-file.c - -#false -cat << "EOF" > tmp -/** @pred get0(+ _S_,- _C_) - -The same as `get0(C)`, but from stream _S_. - - -*/ -EOF -sed -e "5585r tmp" /Users/vsc/git/yap-6.3/os/pl-file.c > x - mv x /Users/vsc/git/yap-6.3/os/pl-file.c - -#false -cat << "EOF" > tmp -/** @pred put_char(+ _N_) is iso - - -Outputs to the current output stream the character who is used to build -the representation of atom `A`. The current output stream must be a -text stream. - - -*/ -EOF -sed -e "5553r tmp" /Users/vsc/git/yap-6.3/os/pl-file.c > x - mv x /Users/vsc/git/yap-6.3/os/pl-file.c - -#false -cat << "EOF" > tmp -/** @pred put_char(+ _S_,+ _A_) is iso - -As `put_char(A)`, but to text stream _S_. - - -*/ -EOF -sed -e "5546r tmp" /Users/vsc/git/yap-6.3/os/pl-file.c > x - mv x /Users/vsc/git/yap-6.3/os/pl-file.c - -#false -cat << "EOF" > tmp -/** @pred peek_char(- _C_) is iso - - -If _C_ is unbound, or is an atom representation of a character, and -the current stream is a text stream, read the next character from the -current stream and unify its atom representation with _C_, while -leaving the current stream position unaltered. - - -*/ -EOF -sed -e "5272r tmp" /Users/vsc/git/yap-6.3/os/pl-file.c > x - mv x /Users/vsc/git/yap-6.3/os/pl-file.c - -#false -cat << "EOF" > tmp -/** @pred peek_char(+ _S_,- _C_) is iso - -If _C_ is unbound, or is an atom representation of a character, and -the stream _S_ is a text stream, read the next character from that -stream and unify its representation as an atom with _C_, while leaving -the current stream position unaltered. - - -*/ -EOF -sed -e "5256r tmp" /Users/vsc/git/yap-6.3/os/pl-file.c > x - mv x /Users/vsc/git/yap-6.3/os/pl-file.c - -#false -cat << "EOF" > tmp -/** @pred peek_code(- _C_) is iso - - -If _C_ is unbound, or is the code for a character, and -the current stream is a text stream, read the next character from the -current stream and unify its code with _C_, while -leaving the current stream position unaltered. - - -*/ -EOF -sed -e "5239r tmp" /Users/vsc/git/yap-6.3/os/pl-file.c > x - mv x /Users/vsc/git/yap-6.3/os/pl-file.c - -#false -cat << "EOF" > tmp -/** @pred peek_code(+ _S_,- _C_) is iso - -If _C_ is unbound, or is an atom representation of a character, and -the stream _S_ is a text stream, read the next character from that -stream and unify its representation as an atom with _C_, while leaving -the current stream position unaltered. - - -*/ -EOF -sed -e "5223r tmp" /Users/vsc/git/yap-6.3/os/pl-file.c > x - mv x /Users/vsc/git/yap-6.3/os/pl-file.c - -#false -cat << "EOF" > tmp -/** @pred peek_byte(- _C_) is iso - - -If _C_ is unbound, or is a character code, and the current stream is a -binary stream, read the next byte from the current stream and unify its -code with _C_, while leaving the current stream position unaltered. - - -*/ -EOF -sed -e "5207r tmp" /Users/vsc/git/yap-6.3/os/pl-file.c > x - mv x /Users/vsc/git/yap-6.3/os/pl-file.c - -#false -cat << "EOF" > tmp -/** @pred peek_byte(+ _S_,- _C_) is iso - -If _C_ is unbound, or is a character code, and _S_ is a binary -stream, read the next byte from the current stream and unify its code -with _C_, while leaving the current stream position unaltered. - - -*/ -EOF -sed -e "5192r tmp" /Users/vsc/git/yap-6.3/os/pl-file.c > x - mv x /Users/vsc/git/yap-6.3/os/pl-file.c - -#false -cat << "EOF" > tmp -/** @pred at_end_of_stream is iso - - -Succeed if the current stream has stream position end-of-stream or -past-end-of-stream. - - -*/ -EOF -sed -e "5146r tmp" /Users/vsc/git/yap-6.3/os/pl-file.c > x - mv x /Users/vsc/git/yap-6.3/os/pl-file.c - -#false -cat << "EOF" > tmp -/** @pred at_end_of_stream(+ _S_) is iso - -Succeed if the stream _S_ has stream position end-of-stream or -past-end-of-stream. Note that _S_ must be a readable stream. - - -*/ -EOF -sed -e "5133r tmp" /Users/vsc/git/yap-6.3/os/pl-file.c > x - mv x /Users/vsc/git/yap-6.3/os/pl-file.c - -#false -cat << "EOF" > tmp -/** @pred line_position(+ _Stream_,- _LinePosition_) - - -Unify _LinePosition_ with the position on current text stream - _Stream_. - - -*/ -EOF -sed -e "5073r tmp" /Users/vsc/git/yap-6.3/os/pl-file.c > x - mv x /Users/vsc/git/yap-6.3/os/pl-file.c - -#false -cat << "EOF" > tmp -/** @pred line_count(+ _Stream_,- _LineNumber_) - - -Unify _LineNumber_ with the line number for the _Stream_. - - -*/ -EOF -sed -e "5050r tmp" /Users/vsc/git/yap-6.3/os/pl-file.c > x - mv x /Users/vsc/git/yap-6.3/os/pl-file.c - -#false -cat << "EOF" > tmp -/** @pred character_count(+ _Stream_,- _CharacterCount_) - - -Unify _CharacterCount_ with the number of characters written to or -read to _Stream_. - - -*/ -EOF -sed -e "5026r tmp" /Users/vsc/git/yap-6.3/os/pl-file.c > x - mv x /Users/vsc/git/yap-6.3/os/pl-file.c - -#false -cat << "EOF" > tmp -/** @pred current_output(- _S_) is iso - - -Unify _S_ with the current output stream. - - -*/ -EOF -sed -e "4996r tmp" /Users/vsc/git/yap-6.3/os/pl-file.c > x - mv x /Users/vsc/git/yap-6.3/os/pl-file.c - -#false -cat << "EOF" > tmp -/** @pred current_input(- _S_) is iso - - -Unify _S_ with the current input stream. - - -*/ -EOF -sed -e "4982r tmp" /Users/vsc/git/yap-6.3/os/pl-file.c > x - mv x /Users/vsc/git/yap-6.3/os/pl-file.c - -#false -cat << "EOF" > tmp -/** @pred set_output(+ _S_) is iso - - -Set stream _S_ as the current output stream. Predicates like -write/1 and put/1 will start using stream _S_. - - -*/ -EOF -sed -e "4959r tmp" /Users/vsc/git/yap-6.3/os/pl-file.c > x - mv x /Users/vsc/git/yap-6.3/os/pl-file.c - -#false -cat << "EOF" > tmp -/** @pred set_input(+ _S_) is iso - - -Set stream _S_ as the current input stream. Predicates like read/1 -and get/1 will start using stream _S_. - - -*/ -EOF -sed -e "4936r tmp" /Users/vsc/git/yap-6.3/os/pl-file.c > x - mv x /Users/vsc/git/yap-6.3/os/pl-file.c - -#false -cat << "EOF" > tmp -/** @pred set_stream_position(+ _S_, + _POS_) is iso - - -Given a stream position _POS_ for a stream _S_, set the current -stream position for _S_ to be _POS_. - - -*/ -EOF -sed -e "4830r tmp" /Users/vsc/git/yap-6.3/os/pl-file.c > x - mv x /Users/vsc/git/yap-6.3/os/pl-file.c - -#false -cat << "EOF" > tmp -/** @pred flush_output(+ _S_) is iso - -Send all data in the output buffer for stream _S_. - - -*/ -EOF -sed -e "4771r tmp" /Users/vsc/git/yap-6.3/os/pl-file.c > x - mv x /Users/vsc/git/yap-6.3/os/pl-file.c - -#false -cat << "EOF" > tmp -/** @pred flush_output is iso - - -Send out all data in the output buffer of the current output stream. - - -*/ -EOF -sed -e "4757r tmp" /Users/vsc/git/yap-6.3/os/pl-file.c > x - mv x /Users/vsc/git/yap-6.3/os/pl-file.c - -#false -cat << "EOF" > tmp -/** @pred is_stream( _S_) - - -Succeeds if _S_ is a currently open stream. - - -*/ -EOF -sed -e "4718r tmp" /Users/vsc/git/yap-6.3/os/pl-file.c > x - mv x /Users/vsc/git/yap-6.3/os/pl-file.c - -#false -cat << "EOF" > tmp -/** @pred stream_property(? _Stream_,? _Prop_) is iso - - - -Obtain the properties for the open streams. If the first argument is -unbound, the procedure will backtrack through all open -streams. Otherwise, the first argument must be a stream term (you may -use `current_stream` to obtain a current stream given a file name). - -The following properties are recognized: - - - -+ file_name( _P_) -An atom giving the file name for the current stream. The file names are -user_input, user_output, and user_error for the -standard streams. - -+ mode( _P_) -The mode used to open the file. It may be one of `append`, -`read`, or `write`. - -+ input -The stream is readable. - -+ output -The stream is writable. - -+ alias( _A_) -ISO-Prolog primitive for stream aliases. YAP returns one of the -existing aliases for the stream. - -+ position( _P_) -A term describing the position in the stream. - -+ end_of_stream( _E_) -Whether the stream is `at` the end of stream, or it has found the -end of stream and is `past`, or whether it has `not` yet -reached the end of stream. - -+ eof_action( _A_) -The action to take when trying to read after reaching the end of -stream. The action may be one of `error`, generate an error, -`eof_code`, return character code `-1`, or `reset` the -stream. - -+ reposition( _B_) -Whether the stream can be repositioned or not, that is, whether it is -seekable. - -+ type( _T_) -Whether the stream is a `text` stream or a `binary` stream. - -+ bom(+ _Bool_) -If present and `true`, a BOM (Byte Order Mark) was -detected while opening the file for reading or a BOM was written while -opening the stream. See BOM for details. - -+ encoding(+ _Encoding_) -Query the encoding used for text. See Encoding for an -overview of wide character and encoding issues in YAP. - -+ representation_errors(+ _Mode_) -Behaviour when writing characters to the stream that cannot be -represented by the encoding. The behaviour is one of `error` -(throw and Input/Output error exception), `prolog` (write `\u...\` -escape code or `xml` (write `\&#...;` XML character entity). -The initial mode is `prolog` for the user streams and -`error` for all other streams. See also Encoding and -`open/4`. - - - -+ current_line_number(- _LineNumber_) - - -Unify _LineNumber_ with the line number for the current stream. - - -*/ -EOF -sed -e "4430r tmp" /Users/vsc/git/yap-6.3/os/pl-file.c > x - mv x /Users/vsc/git/yap-6.3/os/pl-file.c - -#false -cat << "EOF" > tmp -/** @pred close(+ _S_,+ _O_) is iso - -Closes the stream _S_, following options _O_. - -The only valid options are `force(true)` and `force(false)`. -YAP currently ignores these options. - - -*/ -EOF -sed -e "4030r tmp" /Users/vsc/git/yap-6.3/os/pl-file.c > x - mv x /Users/vsc/git/yap-6.3/os/pl-file.c - -#false -cat << "EOF" > tmp -/** @pred close(+ _S_) is iso - - -Closes the stream _S_. If _S_ does not stand for a stream -currently opened an error is reported. The streams user_input, -user_output, and user_error can never be closed. - - -*/ -EOF -sed -e "4007r tmp" /Users/vsc/git/yap-6.3/os/pl-file.c > x - mv x /Users/vsc/git/yap-6.3/os/pl-file.c - -#false -cat << "EOF" > tmp -/** @pred told - - -Closes the current output stream, and the user's terminal becomes again -the current output stream. It is important to remember to close streams -after having finished using them, as the maximum number of -simultaneously opened streams is 17. - - -*/ -EOF -sed -e "3860r tmp" /Users/vsc/git/yap-6.3/os/pl-file.c > x - mv x /Users/vsc/git/yap-6.3/os/pl-file.c - -#false -cat << "EOF" > tmp -/** @pred telling(- _S_) - - -The current output stream is unified with _S_. - - -*/ -EOF -sed -e "3840r tmp" /Users/vsc/git/yap-6.3/os/pl-file.c > x - mv x /Users/vsc/git/yap-6.3/os/pl-file.c - -#false -cat << "EOF" > tmp -/** @pred tell(+ _S_) - - -If _S_ is a currently opened stream for output, it becomes the -current output stream. If _S_ is an atom it is taken to be a -filename. If there is no output stream currently associated with it, -then it is opened for output, and the new output stream created becomes -the current output stream. If it is not possible to open the file, an -error occurs. If there is a single opened output stream currently -associated with the file, then it becomes the current output stream; if -there are more than one in that condition, one of them is chosen. - -Whenever _S_ is a stream not currently opened for output, an error -may be reported, depending on the state of the file_errors flag. The -predicate just fails, if _S_ is neither a stream nor an atom. - - -*/ -EOF -sed -e "3823r tmp" /Users/vsc/git/yap-6.3/os/pl-file.c > x - mv x /Users/vsc/git/yap-6.3/os/pl-file.c - -#false -cat << "EOF" > tmp -/** @pred seeing(- _S_) - - -The current input stream is unified with _S_. - - -*/ -EOF -sed -e "3751r tmp" /Users/vsc/git/yap-6.3/os/pl-file.c > x - mv x /Users/vsc/git/yap-6.3/os/pl-file.c - -#false -cat << "EOF" > tmp -/** @pred seen - - -Closes the current input stream (see 6.7.). - - - - - */ -EOF -sed -e "3738r tmp" /Users/vsc/git/yap-6.3/os/pl-file.c > x - mv x /Users/vsc/git/yap-6.3/os/pl-file.c - -#false -cat << "EOF" > tmp -/** @pred see(+ _S_) - - -If _S_ is a currently opened input stream then it is assumed to be -the current input stream. If _S_ is an atom it is taken as a -filename. If there is no input stream currently associated with it, then -it is opened for input, and the new input stream thus created becomes -the current input stream. If it is not possible to open the file, an -error occurs. If there is a single opened input stream currently -associated with the file, it becomes the current input stream; if there -are more than one in that condition, then one of them is chosen. - -When _S_ is a stream not currently opened for input, an error may be -reported, depending on the state of the `file_errors` flag. If - _S_ is neither a stream nor an atom the predicates just fails. - - -*/ -EOF -sed -e "3723r tmp" /Users/vsc/git/yap-6.3/os/pl-file.c > x - mv x /Users/vsc/git/yap-6.3/os/pl-file.c - -#false -cat << "EOF" > tmp -/** @pred open(+ _F_,+ _M_,- _S_) is iso - - -Opens the file with name _F_ in mode _M_ (`read`, `write` or -`append`), returning _S_ unified with the stream name. - -At most, there are 17 streams opened at the same time. Each stream is -either an input or an output stream but not both. There are always 3 -open streams: user_input for reading, user_output for writing -and user_error for writing. If there is no ambiguity, the atoms -user_input and user_output may be referred to as `user`. - -The `file_errors` flag controls whether errors are reported when in -mode `read` or `append` the file _F_ does not exist or is not -readable, and whether in mode `write` or `append` the file is not -writable. - -*/ -EOF -sed -e "3612r tmp" /Users/vsc/git/yap-6.3/os/pl-file.c > x - mv x /Users/vsc/git/yap-6.3/os/pl-file.c - -#false -cat << "EOF" > tmp -/** @pred open(+ _F_,+ _M_,- _S_,+ _Opts_) is iso - -Opens the file with name _F_ in mode _M_ (`read`, `write` or -`append`), returning _S_ unified with the stream name, and following -these options: - - - -+ `type(+ _T_)` is iso - - Specify whether the stream is a `text` stream (default), or a -`binary` stream. - -+ `reposition(+ _Bool_)` is iso - Specify whether it is possible to reposition the stream (`true`), or -not (`false`). By default, YAP enables repositioning for all -files, except terminal files and sockets. - -+ `eof(+ _Action_)` is iso - - Specify the action to take if attempting to input characters from a -stream where we have previously found an `end_of_file`. The possible -actions are `error`, that raises an error, `reset`, that tries to -reset the stream and is used for `tty` type files, and `eof_code`, -which generates a new `end_of_file` (default for non-tty files). - -+ `alias(+ _Name_)` is iso - - Specify an alias to the stream. The alias Name must be an atom. The -alias can be used instead of the stream descriptor for every operation -concerning the stream. - - The operation will fail and give an error if the alias name is already -in use. YAP allows several aliases for the same file, but only -one is returned by stream_property/2 - -+ `bom(+ _Bool_)` - - If present and `true`, a BOM (Byte Order Mark) was -detected while opening the file for reading or a BOM was written while -opening the stream. See BOM for details. - -+ `encoding(+ _Encoding_)` - -Set the encoding used for text. See Encoding for an overview of -wide character and encoding issues. - -+ `representation_errors(+ _Mode_)` - - Change the behaviour when writing characters to the stream that cannot -be represented by the encoding. The behaviour is one of `error` -(throw and Input/Output error exception), `prolog` (write `\u...\` -escape code or `xml` (write `\&#...;` XML character entity). -The initial mode is `prolog` for the user streams and -`error` for all other streams. See also Encoding. - -+ `expand_filename(+ _Mode_)` - - If _Mode_ is `true` then do filename expansion, then ask Prolog -to do file name expansion before actually trying to opening the file: -this includes processing `~` characters and processing `$` -environment variables at the beginning of the file. Otherwise, just try -to open the file using the given name. - - The default behavior is given by the Prolog flag -open_expands_filename. - - - - -*/ -EOF -sed -e "3583r tmp" /Users/vsc/git/yap-6.3/os/pl-file.c > x - mv x /Users/vsc/git/yap-6.3/os/pl-file.c - -#false -cat << "EOF" > tmp -/** @pred tab(+ _N_) - - -Outputs _N_ spaces to the current output stream. - - -*/ -EOF -sed -e "3178r tmp" /Users/vsc/git/yap-6.3/os/pl-file.c > x - mv x /Users/vsc/git/yap-6.3/os/pl-file.c - -#false -cat << "EOF" > tmp -/** @pred tab(+ _S_,+ _N_) - -The same as tab/1, but using stream _S_. - - -*/ -EOF -sed -e "3164r tmp" /Users/vsc/git/yap-6.3/os/pl-file.c > x - mv x /Users/vsc/git/yap-6.3/os/pl-file.c - -#false -cat << "EOF" > tmp -/** @pred prompt(- _A_,+ _B_) - - -Changes YAP input prompt from _A_ to _B_. - - -*/ -EOF -sed -e "3070r tmp" /Users/vsc/git/yap-6.3/os/pl-file.c > x - mv x /Users/vsc/git/yap-6.3/os/pl-file.c - -#false -cat << "EOF" > tmp -/** @pred get_char(- _C_) is iso - - -If _C_ is unbound, or is an atom representation of a character, and -the current stream is a text stream, read the next character from the -current stream and unify its atom representation with _C_. - - -*/ -EOF -sed -e "3011r tmp" /Users/vsc/git/yap-6.3/os/pl-file.c > x - mv x /Users/vsc/git/yap-6.3/os/pl-file.c - -#false -cat << "EOF" > tmp -/** @pred get_char(+ _S_,- _C_) is iso - -If _C_ is unbound, or is an atom representation of a character, and -the stream _S_ is a text stream, read the next character from that -stream and unify its representation as an atom with _C_. - - -*/ -EOF -sed -e "2995r tmp" /Users/vsc/git/yap-6.3/os/pl-file.c > x - mv x /Users/vsc/git/yap-6.3/os/pl-file.c - -#false -cat << "EOF" > tmp -/** @pred get_code(- _C_) is iso - - -If _C_ is unbound, or is the code for a character, and -the current stream is a text stream, read the next character from the -current stream and unify its code with _C_. - - -*/ -EOF -sed -e "2959r tmp" /Users/vsc/git/yap-6.3/os/pl-file.c > x - mv x /Users/vsc/git/yap-6.3/os/pl-file.c - -#false -cat << "EOF" > tmp -/** @pred get_code(+ _S_,- _C_) is iso - -If _C_ is unbound, or is a character code, and the stream _S_ is a -text stream, read the next character from that stream and unify its -code with _C_. - - -*/ -EOF -sed -e "2943r tmp" /Users/vsc/git/yap-6.3/os/pl-file.c > x - mv x /Users/vsc/git/yap-6.3/os/pl-file.c - -#false -cat << "EOF" > tmp -/** @pred get_byte(- _C_) is iso - - -If _C_ is unbound, or is a character code, and the current stream is a -binary stream, read the next byte from the current stream and unify its -code with _C_. - - -*/ -EOF -sed -e "2906r tmp" /Users/vsc/git/yap-6.3/os/pl-file.c > x - mv x /Users/vsc/git/yap-6.3/os/pl-file.c - -#false -cat << "EOF" > tmp -/** @pred get_byte(+ _S_,- _C_) is iso - -If _C_ is unbound, or is a character code, and the stream _S_ is a -binary stream, read the next byte from that stream and unify its -code with _C_. - - -*/ -EOF -sed -e "2889r tmp" /Users/vsc/git/yap-6.3/os/pl-file.c > x - mv x /Users/vsc/git/yap-6.3/os/pl-file.c - -#false -cat << "EOF" > tmp -/** @pred skip(+ _S_,- _C_) - -Like skip/1, but using stream _S_ instead of the current -input stream. - - -*/ -EOF -sed -e "2827r tmp" /Users/vsc/git/yap-6.3/os/pl-file.c > x - mv x /Users/vsc/git/yap-6.3/os/pl-file.c - -#false -cat << "EOF" > tmp -/** @pred skip(+ _N_) - - -Skips input characters until the next occurrence of the character with -ASCII code _N_. The argument to this predicate can take the same forms -as those for `put` (see 6.11). - - -*/ -EOF -sed -e "2812r tmp" /Users/vsc/git/yap-6.3/os/pl-file.c > x - mv x /Users/vsc/git/yap-6.3/os/pl-file.c - -#false -cat << "EOF" > tmp -/** @pred get(+ _S_,- _C_) - -The same as `get(C)`, but from stream _S_. - - -*/ -EOF -sed -e "2777r tmp" /Users/vsc/git/yap-6.3/os/pl-file.c > x - mv x /Users/vsc/git/yap-6.3/os/pl-file.c - -#false -cat << "EOF" > tmp -/** @pred get(- _C_) - - -The next non-blank character from the current input stream is unified -with _C_. Blank characters are the ones whose ASCII codes are not -greater than 32. If there are no more non-blank characters in the -stream, _C_ is unified with -1. If `end_of_stream` has already -been reached in the previous reading, this call will give an error message. - - -*/ -EOF -sed -e "2763r tmp" /Users/vsc/git/yap-6.3/os/pl-file.c > x - mv x /Users/vsc/git/yap-6.3/os/pl-file.c - -#false -cat << "EOF" > tmp -/** @pred put(+ _N_) - - -Outputs to the current output stream the character whose ASCII code is - _N_. The character _N_ must be a legal ASCII character code, an -expression yielding such a code, or a list in which case only the first -element is used. - - -*/ -EOF -sed -e "2718r tmp" /Users/vsc/git/yap-6.3/os/pl-file.c > x - mv x /Users/vsc/git/yap-6.3/os/pl-file.c - -#false -cat << "EOF" > tmp -/** @pred put(+ _S_,+ _N_) - -As `put(N)`, but to stream _S_. - - -*/ -EOF -sed -e "2700r tmp" /Users/vsc/git/yap-6.3/os/pl-file.c > x - mv x /Users/vsc/git/yap-6.3/os/pl-file.c - -#false -cat << "EOF" > tmp -/** @pred put_code(+ _N_) is iso - - -Outputs to the current output stream the character whose ASCII code is - _N_. The current output stream must be a text stream. The character - _N_ must be a legal ASCII character code, an expression yielding such -a code, or a list in which case only the first element is used. - - -*/ -EOF -sed -e "2686r tmp" /Users/vsc/git/yap-6.3/os/pl-file.c > x - mv x /Users/vsc/git/yap-6.3/os/pl-file.c - -#false -cat << "EOF" > tmp -/** @pred put_code(+ _S_,+ _N_) is iso - -As `put_code(N)`, but to text stream _S_. - - -*/ -EOF -sed -e "2668r tmp" /Users/vsc/git/yap-6.3/os/pl-file.c > x - mv x /Users/vsc/git/yap-6.3/os/pl-file.c - -#false -cat << "EOF" > tmp -/** @pred put_byte(+ _N_) is iso - - -Outputs to the current output stream the character whose code is - _N_. The current output stream must be a binary stream. - - -*/ -EOF -sed -e "2638r tmp" /Users/vsc/git/yap-6.3/os/pl-file.c > x - mv x /Users/vsc/git/yap-6.3/os/pl-file.c - -#false -cat << "EOF" > tmp -/** @pred put_byte(+ _S_,+ _N_) is iso - -As `put_byte(N)`, but to binary stream _S_. - - -*/ -EOF -sed -e "2622r tmp" /Users/vsc/git/yap-6.3/os/pl-file.c > x - mv x /Users/vsc/git/yap-6.3/os/pl-file.c - -#false -cat << "EOF" > tmp -/** @pred file_name_extension(? _Base_,? _Extension_, ? _Name_) - - - -This predicate is used to add, remove or test filename extensions. The -main reason for its introduction is to deal with different filename -properties in a portable manner. If the file system is -case-insensitive, testing for an extension will be done -case-insensitive too. _Extension_ may be specified with or -without a leading dot (.). If an _Extension_ is generated, it -will not have a leading dot. - - -*/ -EOF -sed -e "1231r tmp" /Users/vsc/git/yap-6.3/os/pl-files.c > x - mv x /Users/vsc/git/yap-6.3/os/pl-files.c - -#false -cat << "EOF" > tmp -/** @pred file_base_name(+ _Name_,- _FileName_) - - -Give the path a full path _FullPath_ extract the _FileName_. - - -*/ -EOF -sed -e "967r tmp" /Users/vsc/git/yap-6.3/os/pl-files.c > x - mv x /Users/vsc/git/yap-6.3/os/pl-files.c - -#false -cat << "EOF" > tmp -/** @pred access_file(+ _F_,+ _M_) - -Is the file accessible? - - -*/ -EOF -sed -e "838r tmp" /Users/vsc/git/yap-6.3/os/pl-files.c > x - mv x /Users/vsc/git/yap-6.3/os/pl-files.c - -#false -cat << "EOF" > tmp -/** @pred atom_to_term(+ _Atom_, - _Term_, - _Bindings_) - - -Use _Atom_ as input to read_term/2 using the option `variable_names` and return the read term in _Term_ and the variable bindings in _Bindings_. _Bindings_ is a list of `Name = Var` couples, thus providing access to the actual variable names. See also read_term/2. If Atom has no valid syntax, a syntax_error exception is raised. - - -*/ -EOF -sed -e "1541r tmp" /Users/vsc/git/yap-6.3/os/pl-read.c > x - mv x /Users/vsc/git/yap-6.3/os/pl-read.c - -#false -cat << "EOF" > tmp -/** @pred read_term(- _T_,+ _Options_) is iso - - -Reads term _T_ from the current input stream with execution -controlled by the following options: - -+ term_position(- _Position_) - -Unify _Position_ with a term describing the position of the stream -at the start of parse. Use stream_position_data/3 to obtain extra -information. - -+ singletons(- _Names_) - -Unify _Names_ with a list of the form _Name=Var_, where - _Name_ is the name of a non-anonymous singleton variable in the -original term, and `Var` is the variable's representation in -YAP. -The variables occur in left-to-right traversal order. - -+ syntax_errors(+ _Val_) - -Control action to be taken after syntax errors. See yap_flag/2 -for detailed information. - -+ variables(- _Names_) - -Unify _Names_ with a list of the form _Name=Var_, where _Name_ is -the name of a non-anonymous variable in the original term, and _Var_ -is the variable's representation in YAP. -The variables occur in left-to-right traversal order. - - -*/ -EOF -sed -e "1399r tmp" /Users/vsc/git/yap-6.3/os/pl-read.c > x - mv x /Users/vsc/git/yap-6.3/os/pl-read.c - -#false -cat << "EOF" > tmp -/** @pred read_term(+ _S_,- _T_,+ _Options_) is iso - -Reads term _T_ from stream _S_ with execution controlled by the -same options as read_term/2. - - -*/ -EOF -sed -e "1371r tmp" /Users/vsc/git/yap-6.3/os/pl-read.c > x - mv x /Users/vsc/git/yap-6.3/os/pl-read.c - -#false -cat << "EOF" > tmp -/** @pred mtbdd_new(? _Exp_, - _BddHandle_) - -create a new algebraic decision diagram (ADD) from the logical -expression _Exp_. The expression may include: - -+ Logical Variables: -a leaf-node can be a logical variable, or parameter. -+ Number -a leaf-node can also be any number -+ _X_ \* _Y_ -product -+ _X_ + _Y_ -sum -+ _X_ - _Y_ -subtraction -+ or( _X_, _Y_), _X_ \/ _Y_ -logical or - - - -*/ -EOF -sed -e "20r tmp" /Users/vsc/git/yap-6.3/packages/bdd/bdd.yap > x - mv x /Users/vsc/git/yap-6.3/packages/bdd/bdd.yap - -#false -cat << "EOF" > tmp -/** @pred bdd_tree(+ _BDDHandle_, _Term_) - -Convert the BDD or ADD represented by _BDDHandle_ to a Prolog term -of the form `bdd( _Dir_, _Nodes_, _Vars_)` or `mtbdd( _Nodes_, _Vars_)`, respectively. The arguments are: - -+ - _Dir_ direction of the BDD, usually 1 -+ - _Nodes_ list of nodes in the BDD or ADD. - -In a BDD nodes may be pp (both terminals are positive) or pn -(right-hand-side is negative), and have four arguments: a logical -variable that will be bound to the value of the node, the logical -variable corresponding to the node, a logical variable, a 0 or a 1 with -the value of the left-hand side, and a logical variable, a 0 or a 1 -with the right-hand side. - -+ - _Vars_ are the free variables in the original BDD, or the parameters of the BDD/ADD. - -As an example, the BDD for the expression `X+(Y+X)\*(-Z)` becomes: - -~~~~~ -bdd(1,[pn(N2,X,1,N1),pp(N1,Y,N0,1),pn(N0,Z,1,1)],vs(X,Y,Z)) -~~~~~ - - -*/ -EOF -sed -e "20r tmp" /Users/vsc/git/yap-6.3/packages/bdd/bdd.yap > x - mv x /Users/vsc/git/yap-6.3/packages/bdd/bdd.yap - -#false -cat << "EOF" > tmp -/** @pred bdd_to_probability_sum_product(+ _BDDHandle_, - _Probs_, - _Prob_) -Each node in a BDD is given a probability _Pi_. The total -probability of a corresponding sum-product network is _Prob_, and -the probabilities of the inner nodes are _Probs_. - -In Prolog, this predicate would correspond to computing the value of a -BDD. The input variables will be bound to probabilities, eg -`[ _X_, _Y_, _Z_] = [0.3.0.7,0.1]`, and the previous -`eval_bdd` would operate over real numbers: - -~~~~~ - Tree = bdd(1, T, _Vs), - reverse(T, RT), - foldl(eval_prob, RT, _, V). - -eval_prob(pp(P,X,L,R), _, P) :- - P is X * L + (1-X) * R. -eval_prob(pn(P,X,L,R), _, P) :- - P is X * L + (1-X) * (1-R). -~~~~~ - -*/ -EOF -sed -e "20r tmp" /Users/vsc/git/yap-6.3/packages/bdd/bdd.yap > x - mv x /Users/vsc/git/yap-6.3/packages/bdd/bdd.yap - -#false -cat << "EOF" > tmp -/** @pred bdd_to_probability_sum_product(+ _BDDHandle_, - _Prob_) - -Each node in a BDD is given a probability _Pi_. The total -probability of a corresponding sum-product network is _Prob_. - - -*/ -EOF -sed -e "20r tmp" /Users/vsc/git/yap-6.3/packages/bdd/bdd.yap > x - mv x /Users/vsc/git/yap-6.3/packages/bdd/bdd.yap - -#false -cat << "EOF" > tmp -/** @pred bdd_size(+ _BDDHandle_, - _Size_) - -Unify _Size_ with the number of nodes in _BDDHandle_. - - -*/ -EOF -sed -e "20r tmp" /Users/vsc/git/yap-6.3/packages/bdd/bdd.yap > x - mv x /Users/vsc/git/yap-6.3/packages/bdd/bdd.yap - -#false -cat << "EOF" > tmp -/** @pred bdd_print(+ _BDDHandle_, + _File_) - -Output bdd _BDDHandle_ as a dot file to _File_. - - -*/ -EOF -sed -e "20r tmp" /Users/vsc/git/yap-6.3/packages/bdd/bdd.yap > x - mv x /Users/vsc/git/yap-6.3/packages/bdd/bdd.yap - -#false -cat << "EOF" > tmp -/** @pred bdd_new(? _Exp_, - _BddHandle_) - -create a new BDD from the logical expression _Exp_. The expression -may include: - -+ Logical Variables: -a leaf-node can be a logical variable. -+ Constants 0 and 1 -a leaf-node can also be one of these two constants. -+ or( _X_, _Y_), _X_ \/ _Y_, _X_ + _Y_ -disjunction -+ and( _X_, _Y_), _X_ /\ _Y_, _X_ \* _Y_ -conjunction -+ nand( _X_, _Y_) -negated conjunction@ -+ nor( _X_, _Y_) -negated disjunction -+ xor( _X_, _Y_) -exclusive or -+ not( _X_), - _X_ -negation - - - -*/ -EOF -sed -e "20r tmp" /Users/vsc/git/yap-6.3/packages/bdd/bdd.yap > x - mv x /Users/vsc/git/yap-6.3/packages/bdd/bdd.yap - -#false -cat << "EOF" > tmp -/** @pred bdd_from_list(? _List_, ?_Vars_, - _BddHandle_) - -Convert a _List_ of logical expressions of the form above, that -includes the set of free variables _Vars_, into a BDD accessible -through _BddHandle_. - - -*/ -EOF -sed -e "20r tmp" /Users/vsc/git/yap-6.3/packages/bdd/bdd.yap > x - mv x /Users/vsc/git/yap-6.3/packages/bdd/bdd.yap - -#false -cat << "EOF" > tmp -/** @pred bdd_eval(+ _BDDHandle_, _Val_) - -Unify _Val_ with the value of the logical expression compiled in - _BDDHandle_ given an assignment to its variables. - -~~~~~ -bdd_new(X+(Y+X)*(-Z), BDD), -[X,Y,Z] = [0,0,0], -bdd_eval(BDD, V), -writeln(V). -~~~~~ -would write 0 in the standard output stream. - -The Prolog code equivalent to bdd_eval/2 is: - -~~~~~ - Tree = bdd(1, T, _Vs), - reverse(T, RT), - foldl(eval_bdd, RT, _, V). - -eval_bdd(pp(P,X,L,R), _, P) :- - P is ( X/\L ) \/ ( (1-X) /\ R ). -eval_bdd(pn(P,X,L,R), _, P) :- - P is ( X/\L ) \/ ( (1-X) /\ (1-R) ). -~~~~~ -First, the nodes are reversed to implement bottom-up evaluation. Then, -we use the `foldl` list manipulation predicate to walk every node, -computing the disjunction of the two cases and binding the output -variable. The top node gives the full expression value. Notice that -`(1- _X_)` implements negation. - - -*/ -EOF -sed -e "20r tmp" /Users/vsc/git/yap-6.3/packages/bdd/bdd.yap > x - mv x /Users/vsc/git/yap-6.3/packages/bdd/bdd.yap - -#false -cat << "EOF" > tmp -/** @pred bdd_close( _BDDHandle_) - -close the BDD and release any resources it holds. - - - - - */ -EOF -sed -e "20r tmp" /Users/vsc/git/yap-6.3/packages/bdd/bdd.yap > x - mv x /Users/vsc/git/yap-6.3/packages/bdd/bdd.yap - -#true -cat << "EOF" > tmp -/** @pred chr_show_store(+ _Mod_) -Prints all suspended constraints of module _Mod_ to the standard -output. This predicate is automatically called by the SWI-Prolog toplevel at -the end of each query for every CHR module currently loaded. The prolog-flag -`chr_toplevel_show_store` controls whether the toplevel shows the -constraint stores. The value `true` enables it. Any other value -disables it. - - - - - */ -EOF -sed -e "43r tmp" /Users/vsc/git/yap-6.3/packages/chr/chr_debug.pl > x - mv x /Users/vsc/git/yap-6.3/packages/chr/chr_debug.pl - -#true -cat << "EOF" > tmp -/** @pred chr_notrace -De-activate the CHR tracer. By default the CHR tracer is activated and -deactivated automatically by the Prolog predicates trace/0 and -notrace/0. - -+ chr_leash/0 - -Define the set of CHR ports on which the CHR -tracer asks for user intervention (i.e. stops). _Spec_ is either a -list of ports or a predefined `alias`. Defined aliases are: -`full` to stop at all ports, `none` or `off` to never -stop, and `default` to stop at the `call`, `exit`, -`fail`, `wake` and `apply` ports. See also leash/1. - - -*/ -EOF -sed -e "86r tmp" /Users/vsc/git/yap-6.3/packages/chr/chr_runtime.pl > x - mv x /Users/vsc/git/yap-6.3/packages/chr/chr_runtime.pl - -#true -cat << "EOF" > tmp -/** @pred wait(+ _PID_,- _Status_) - - -Wait until process _PID_ terminates, and return its exits _Status_. - - - - - */ -EOF -sed -e "30r tmp" /Users/vsc/git/yap-6.3/packages/clib/unix.pl > x - mv x /Users/vsc/git/yap-6.3/packages/clib/unix.pl - -#true -cat << "EOF" > tmp -/** @pred kill( _Id_,+ _SIGNAL_) - - - -Send signal _SIGNAL_ to process _Id_. In Unix this predicate is -a direct interface to `kill` so one can send signals to groups of -processes. In WIN32 the predicate is an interface to -`TerminateProcess`, so it kills _Id_ independently of _SIGNAL_. - - -*/ -EOF -sed -e "30r tmp" /Users/vsc/git/yap-6.3/packages/clib/unix.pl > x - mv x /Users/vsc/git/yap-6.3/packages/clib/unix.pl - -#true -cat << "EOF" > tmp -/** @pred minimize(V) -minimise variable _V_ - - - - - */ -EOF -sed -e "108r tmp" /Users/vsc/git/yap-6.3/packages/clpqr/clpr.pl > x - mv x /Users/vsc/git/yap-6.3/packages/clpqr/clpr.pl - -#true -cat << "EOF" > tmp -/** @pred maximize( _V_) -maximise variable _V_ - - -*/ -EOF -sed -e "108r tmp" /Users/vsc/git/yap-6.3/packages/clpqr/clpr.pl > x - mv x /Users/vsc/git/yap-6.3/packages/clpqr/clpr.pl - -#true -cat << "EOF" > tmp -/** @pred inf(+ _Expression_,- _Sup_) -Computes the supremum of _Expression_ within the current state of -the constraint store and returns that supremum in _Sup_. This -predicate does not change the constraint store. - - -*/ -EOF -sed -e "108r tmp" /Users/vsc/git/yap-6.3/packages/clpqr/clpr.pl > x - mv x /Users/vsc/git/yap-6.3/packages/clpqr/clpr.pl - -#true -cat << "EOF" > tmp -/** @pred inf(+ _Expression_,- _Inf_) -Computes the infimum of _Expression_ within the current state of the -constraint store and returns that infimum in _Inf_. This predicate -does not change the constraint store. - - -*/ -EOF -sed -e "108r tmp" /Users/vsc/git/yap-6.3/packages/clpqr/clpr.pl > x - mv x /Users/vsc/git/yap-6.3/packages/clpqr/clpr.pl - -#true -cat << "EOF" > tmp -/** @pred entailed(+ _Constraint_) -Succeeds if _Constraint_ is necessarily true within the current -constraint store. This means that adding the negation of the constraint -to the store results in failure. - - -*/ -EOF -sed -e "108r tmp" /Users/vsc/git/yap-6.3/packages/clpqr/clpr.pl > x - mv x /Users/vsc/git/yap-6.3/packages/clpqr/clpr.pl - -#true -cat << "EOF" > tmp -/** @pred dump(+ _Target_,+ _Newvars_,- _CodedAnswer_) -Returns the constraints on _Target_ in the list _CodedAnswer_ -where all variables of _Target_ have veen replaced by _NewVars_. -This operation does not change the constraint store. E.g. in - -~~~~~ -dump([X,Y,Z],[x,y,z],Cons) -~~~~~ - - _Cons_ will contain the constraints on _X_, _Y_ and - _Z_ where these variables have been replaced by atoms `x`, `y` and `z`. - - - - - */ -EOF -sed -e "108r tmp" /Users/vsc/git/yap-6.3/packages/clpqr/clpr.pl > x - mv x /Users/vsc/git/yap-6.3/packages/clpqr/clpr.pl - -#true -cat << "EOF" > tmp -/** @pred bb_inf(+ _Ints_,+ _Expression_,- _Inf_,- _Vertext_,+ _Eps_) -Computes the infimum of _Expression_ within the current constraint -store, with the additional constraint that in that infimum, all -variables in _Ints_ have integral values. _Vertex_ will contain -the values of _Ints_ in the infimum. _Eps_ denotes how much a -value may differ from an integer to be considered an integer. E.g. when - _Eps_ = 0.001, then X = 4.999 will be considered as an integer (5 in -this case). _Eps_ should be between 0 and 0.5. - - -*/ -EOF -sed -e "108r tmp" /Users/vsc/git/yap-6.3/packages/clpqr/clpr.pl > x - mv x /Users/vsc/git/yap-6.3/packages/clpqr/clpr.pl - -#true -cat << "EOF" > tmp -/** @pred bb_inf(+ _Ints_,+ _Expression_,- _Inf_) -The same as bb_inf/5 but without returning the values of the integers -and with an eps of 0.001. - - -*/ -EOF -sed -e "108r tmp" /Users/vsc/git/yap-6.3/packages/clpqr/clpr.pl > x - mv x /Users/vsc/git/yap-6.3/packages/clpqr/clpr.pl - -#true -cat << "EOF" > tmp -/** @pred split(+ _Line_,+ _Separators_,- _Split_) - - - -Unify _Words_ with a set of strings obtained from _Line_ by -using the character codes in _Separators_ as separators. As an -example, consider: - -~~~~~{.prolog} -?- split("Hello * I am free"," *",S). - -S = ["Hello","I","am","free"] ? - -no -~~~~~ - - -*/ -EOF -sed -e "59r tmp" /Users/vsc/git/yap-6.3/packages/clpqr/clpr/nf_r.pl > x - mv x /Users/vsc/git/yap-6.3/packages/clpqr/clpr/nf_r.pl - -#true -cat << "EOF" > tmp -/** @pred minimum( _X_, _Vs_) - -*/ -EOF -sed -e "29r tmp" /Users/vsc/git/yap-6.3/packages/gecode/clpfd.yap > x - mv x /Users/vsc/git/yap-6.3/packages/gecode/clpfd.yap - -#false -cat << "EOF" > tmp -/** @pred maximum( _X_, _Vs_) - -*/ -EOF -sed -e "29r tmp" /Users/vsc/git/yap-6.3/packages/gecode/clpfd.yap > x - mv x /Users/vsc/git/yap-6.3/packages/gecode/clpfd.yap - -#false -cat << "EOF" > tmp -/** @pred element( _X_, _Vs_ ) - _X_ is an element of list _Vs_ - - -*/ -EOF -sed -e "29r tmp" /Users/vsc/git/yap-6.3/packages/gecode/clpfd.yap > x - mv x /Users/vsc/git/yap-6.3/packages/gecode/clpfd.yap - -#false -cat << "EOF" > tmp -/** @pred clause( _Type_, _Ps_ , _Ns_, _V_ ) -If _Type_ is `and` it is the conjunction of boolean variables - _Ps_ and the negation of boolean variables _Ns_ and must have -result _V_. If _Type_ is `or` it is a disjunction. - -+ DFA -the interface allows creating and manipulation deterministic finite -automata. A DFA has a set of states, represented as integers -and is initialised with an initial state, a set of transitions from the -first to the last argument emitting the middle argument, and a final -state. - -The swedish-drinkers protocol is represented as follows: - -~~~~~{.prolog} - A = [X,Y,Z], - dfa( 0, [t(0,0,0),t(0,1,1),t(1,0,0),t(-1,0,0)], [0], C), - in_dfa( A, C ), -~~~~~ -This code will enumeratae the valid tuples of three emissions. - -+ extensional constraints -Constraints can also be represented as lists of tuples. - -The previous example -would be written as: - -~~~~~{.prolog} - extensional_constraint([[0,0,0],[0,1,0],[1,0,0]], C), - in_relation( A, C ), -~~~~~ - - -*/ -EOF -sed -e "29r tmp" /Users/vsc/git/yap-6.3/packages/gecode/clpfd.yap > x - mv x /Users/vsc/git/yap-6.3/packages/gecode/clpfd.yap - -#true -cat << "EOF" > tmp -/** @pred primitive( _T_) - - -Checks whether _T_ is an atomic term or a database reference. - - -*/ -EOF -sed -e "240r tmp" /Users/vsc/git/yap-6.3/packages/http/js_grammar.pl > x - mv x /Users/vsc/git/yap-6.3/packages/http/js_grammar.pl - -#true -cat << "EOF" > tmp -/** @pred _Term1_ =@= _Term2_ is semidet - - - -True iff _Term1_ and _Term2_ are structurally equivalent. I.e. if _Term1_ and _Term2_ are variants of each other. - - - - - */ -EOF -sed -e "43r tmp" /Users/vsc/git/yap-6.3/packages/plunit/swi.pl > x - mv x /Users/vsc/git/yap-6.3/packages/plunit/swi.pl - -#true -cat << "EOF" > tmp -/** @pred is_list(+ _List_) - - -True when _List_ is a proper list. That is, _List_ -is bound to the empty list (nil) or a term with functor '.' and arity 2. - - -*/ -EOF -sed -e "83r tmp" /Users/vsc/git/yap-6.3/packages/xml/xml.lpa.pl > x - mv x /Users/vsc/git/yap-6.3/packages/xml/xml.lpa.pl - -#true -cat << "EOF" > tmp -/** @pred number_codes(? _A_,? _L_) is iso - - -The predicate holds when at least one of the arguments is ground -(otherwise, an error message will be displayed). The argument _A_ -will be unified with a number and _L_ with the list of the ASCII -codes for the characters of the external representation of _A_. - - -*/ -EOF -sed -e "51r tmp" /Users/vsc/git/yap-6.3/packages/xml/xml.lpa.pl > x - mv x /Users/vsc/git/yap-6.3/packages/xml/xml.lpa.pl - -#true -cat << "EOF" > tmp -/** @pred atom_codes(? _A_,? _L_) is iso - - -The predicate holds when at least one of the arguments is ground -(otherwise, an error message will be displayed). The argument _A_ will -be unified with an atom and _L_ with the list of the ASCII -codes for the characters of the external representation of _A_. - - -*/ -EOF -sed -e "38r tmp" /Users/vsc/git/yap-6.3/packages/xml/xml.lpa.pl > x - mv x /Users/vsc/git/yap-6.3/packages/xml/xml.lpa.pl - -#false -cat << "EOF" > tmp -/** @pred static_array_properties(? _Name_, ? _Size_, ? _Type_) - - -Show the properties size and type of a static array with name - _Name_. Can also be used to enumerate all current -static arrays. - -This built-in will silently fail if the there is no static array with -that name. - - -*/ -EOF -sed -e "94r tmp" /Users/vsc/git/yap-6.3/pl/arrays.yap > x - mv x /Users/vsc/git/yap-6.3/pl/arrays.yap - -#false -cat << "EOF" > tmp -/** @pred array(+ _Name_, + _Size_) - - -Creates a new dynamic array. The _Size_ must evaluate to an -integer. The _Name_ may be either an atom (named array) or an -unbound variable (anonymous array). - -Dynamic arrays work as standard compound terms, hence space for the -array is recovered automatically on backtracking. - - -*/ -EOF -sed -e "37r tmp" /Users/vsc/git/yap-6.3/pl/arrays.yap > x - mv x /Users/vsc/git/yap-6.3/pl/arrays.yap - -#false -cat << "EOF" > tmp -/** @pred current_atom( _A_) - - -Checks whether _A_ is a currently defined atom. It is used to find all -currently defined atoms by backtracking. - - -*/ -EOF -sed -e "171r tmp" /Users/vsc/git/yap-6.3/pl/atoms.yap > x - mv x /Users/vsc/git/yap-6.3/pl/atoms.yap - -#false -cat << "EOF" > tmp -/** @pred atomic_list_concat(? _As_,+ _Separator_,? _A_) - -Creates an atom just like atomic_list_concat/2, but inserts - _Separator_ between each pair of atoms. For example: - -~~~~~{.prolog} -?- atomic_list_concat([gnu, gnat], `, `, A). - -A = `gnu, gnat` -~~~~~ - -YAP emulates the SWI-Prolog version of this predicate that can also be -used to split atoms by instantiating _Separator_ and _Atom_ as -shown below. - -~~~~~{.prolog} -?- atomic_list_concat(L, -, 'gnu-gnat'). - -L = [gnu, gnat] -~~~~~ - - -*/ -EOF -sed -e "109r tmp" /Users/vsc/git/yap-6.3/pl/atoms.yap > x - mv x /Users/vsc/git/yap-6.3/pl/atoms.yap - -#true -cat << "EOF" > tmp -/** @pred atomic_list_concat(+ _As_,? _A_) - - -The predicate holds when the first argument is a list of atomic terms, and -the second unifies with the atom obtained by concatenating all the -atomic terms in the first list. The first argument thus may contain -atoms or numbers. - - -*/ -EOF -sed -e "83r tmp" /Users/vsc/git/yap-6.3/pl/atoms.yap > x - mv x /Users/vsc/git/yap-6.3/pl/atoms.yap - -#false -cat << "EOF" > tmp -/** @pred atom_concat(+ _As_,? _A_) - - -The predicate holds when the first argument is a list of atoms, and the -second unifies with the atom obtained by concatenating all the atoms in -the first list. - - -*/ -EOF -sed -e "33r tmp" /Users/vsc/git/yap-6.3/pl/atoms.yap > x - mv x /Users/vsc/git/yap-6.3/pl/atoms.yap - -#false -cat << "EOF" > tmp -/** @pred call_residue(: _G_, _L_) - - - -Call goal _G_. If subgoals of _G_ are still blocked, return -a list containing these goals and the variables they are blocked in. The -goals are then considered as unblocked. The next example shows a case -where dif/2 suspends twice, once outside call_residue/2, -and the other inside: - -~~~~~ -?- dif(X,Y), - call_residue((dif(X,Y),(X = f(Z) ; Y = f(Z))), L). - -X = f(Z), -L = [[Y]-dif(f(Z),Y)], -dif(f(Z),Y) ? ; - -Y = f(Z), -L = [[X]-dif(X,f(Z))], -dif(X,f(Z)) ? ; - -no -~~~~~ -The system only reports one invocation of dif/2 as having -suspended. - - -*/ -EOF -sed -e "500r tmp" /Users/vsc/git/yap-6.3/pl/attributes.yap > x - mv x /Users/vsc/git/yap-6.3/pl/attributes.yap - -#true -cat << "EOF" > tmp -/** @pred copy_term(? _TI_,- _TF_,- _Goals_) - -Term _TF_ is a variant of the original term _TI_, such that for -each variable _V_ in the term _TI_ there is a new variable _V'_ -in term _TF_ without any attributes attached. Attributed -variables are thus converted to standard variables. _Goals_ is -unified with a list that represents the attributes. The goal -`maplist(call, _Goals_)` can be called to recreate the -attributes. - -Before the actual copying, `copy_term/3` calls -`attribute_goals/1` in the module where the attribute is -defined. - - -*/ -EOF -sed -e "396r tmp" /Users/vsc/git/yap-6.3/pl/attributes.yap > x - mv x /Users/vsc/git/yap-6.3/pl/attributes.yap - -#false -cat << "EOF" > tmp -/** @pred call_residue_vars(: _G_, _L_) - - - -Call goal _G_ and unify _L_ with a list of all constrained variables created during execution of _G_: - -~~~~~ - ?- dif(X,Z), call_residue_vars(dif(X,Y),L). -dif(X,Z), call_residue_vars(dif(X,Y),L). -L = [Y], -dif(X,Z), -dif(X,Y) ? ; - -no -~~~~~ - - - - - */ -EOF -sed -e "348r tmp" /Users/vsc/git/yap-6.3/pl/attributes.yap > x - mv x /Users/vsc/git/yap-6.3/pl/attributes.yap - -#false -cat << "EOF" > tmp -/** @pred put_attrs(+ _Var_,+ _Attributes_) - - -Set all attributes of _Var_. See get_attrs/2 for a description of - _Attributes_. - - -*/ -EOF -sed -e "219r tmp" /Users/vsc/git/yap-6.3/pl/attributes.yap > x - mv x /Users/vsc/git/yap-6.3/pl/attributes.yap - -#false -cat << "EOF" > tmp -/** @pred del_attrs(+ _Var_) - - -If _Var_ is an attributed variable, delete all its -attributes. In all other cases, this predicate succeeds without -side-effects. - - -*/ -EOF -sed -e "205r tmp" /Users/vsc/git/yap-6.3/pl/attributes.yap > x - mv x /Users/vsc/git/yap-6.3/pl/attributes.yap - -#false -cat << "EOF" > tmp -/** @pred del_attr(+ _Var_,+ _Module_) - - - -Delete the named attribute. If _Var_ loses its last attribute it -is transformed back into a traditional Prolog variable. If _Module_ -is not an atom, a type error is raised. In all other cases this -predicate succeeds regardless whether or not the named attribute is -present. - - -*/ -EOF -sed -e "192r tmp" /Users/vsc/git/yap-6.3/pl/attributes.yap > x - mv x /Users/vsc/git/yap-6.3/pl/attributes.yap - -#false -cat << "EOF" > tmp -/** @pred get_attr(+ _Var_,+ _Module_,- _Value_) - - - -Request the current _value_ for the attribute named _Module_. If - _Var_ is not an attributed variable or the named attribute is not -associated to _Var_ this predicate fails silently. If _Module_ -is not an atom, a type error is raised. - - -*/ -EOF -sed -e "170r tmp" /Users/vsc/git/yap-6.3/pl/attributes.yap > x - mv x /Users/vsc/git/yap-6.3/pl/attributes.yap - -#false -cat << "EOF" > tmp -/** @pred throw(+ _Ball_) is iso - - -The goal `throw( _Ball_)` throws an exception. Execution is -stopped, and the exception is sent to the ancestor goals until reaching -a matching catch/3, or until reaching top-level. - - -*/ -EOF -sed -e "1503r tmp" /Users/vsc/git/yap-6.3/pl/boot.yap > x - mv x /Users/vsc/git/yap-6.3/pl/boot.yap - -#false -cat << "EOF" > tmp -/** @pred catch( : _Goal_,+ _Exception_,+ _Action_) is iso - - -The goal `catch( _Goal_, _Exception_, _Action_)` tries to -execute goal _Goal_. If during its execution, _Goal_ throws an -exception _E'_ and this exception unifies with _Exception_, the -exception is considered to be caught and _Action_ is executed. If -the exception _E'_ does not unify with _Exception_, control -again throws the exception. - -The top-level of YAP maintains a default exception handler that -is responsible to capture uncaught exceptions. - - -*/ -EOF -sed -e "1466r tmp" /Users/vsc/git/yap-6.3/pl/boot.yap > x - mv x /Users/vsc/git/yap-6.3/pl/boot.yap - -#false -cat << "EOF" > tmp -/** @pred expand_term( _T_,- _X_) - - - -This predicate is used by YAP for preprocessing each top level -term read when consulting a file and before asserting or executing it. -It rewrites a term _T_ to a term _X_ according to the following -rules: first try term_expansion/2 in the current module, and then try to use the user defined predicate -`user:term_expansion/2`. If this call fails then the translating process -for DCG rules is applied, together with the arithmetic optimizer -whenever the compilation of arithmetic expressions is in progress. - - -*/ -EOF -sed -e "1421r tmp" /Users/vsc/git/yap-6.3/pl/boot.yap > x - mv x /Users/vsc/git/yap-6.3/pl/boot.yap - -#false -cat << "EOF" > tmp -/** @pred incore(+ _P_) - - -The same as call/1. - - -*/ -EOF -sed -e "1093r tmp" /Users/vsc/git/yap-6.3/pl/boot.yap > x - mv x /Users/vsc/git/yap-6.3/pl/boot.yap - -#false -cat << "EOF" > tmp -/** @pred call(+ _P_) is iso -Meta-call predicate. - -If _P_ is instantiated to an atom or a compound term, the goal `call( -_P_)` is executed as if the clause was originally written as _P_ -instead as call( _P_ ), except that any "cut" occurring in _P_ only -cuts alternatives in the execution of _P_. - - -*/ -EOF -sed -e "1084r tmp" /Users/vsc/git/yap-6.3/pl/boot.yap > x - mv x /Users/vsc/git/yap-6.3/pl/boot.yap - -#false -cat << "EOF" > tmp -/** @pred repeat is iso -Succeeds repeatedly. - -In the next example, `repeat` is used as an efficient way to implement -a loop. The next example reads all terms in a file: -~~~~~~~~~~~~~{.prolog} - a :- repeat, read(X), write(X), nl, X=end_of_file, !. -~~~~~~~~~~~~~ -the loop is effectively terminated by the cut-goal, when the test-goal -`X=end` succeeds. While the test fails, the goals `read(X)`, -`write(X)`, and `nl` are executed repeatedly, because -backtracking is caught by the `repeat` goal. - -The built-in `repeat/0` could be defined in Prolog by: - -~~~~~{.prolog} - repeat. - repeat :- repeat. -~~~~~ - -The predicate between/3 can be used to iterate for a pre-defined -number of steps. - -*/ -EOF -sed -e "571r tmp" /Users/vsc/git/yap-6.3/pl/boot.yap > x - mv x /Users/vsc/git/yap-6.3/pl/boot.yap - -#false -cat << "EOF" > tmp -/** @pred true is iso - - -Succeeds once. - - -*/ -EOF -sed -e "308r tmp" /Users/vsc/git/yap-6.3/pl/boot.yap > x - mv x /Users/vsc/git/yap-6.3/pl/boot.yap - -#false -cat << "EOF" > tmp -/** @pred call_count(? _CallsMax_, ? _RetriesMax_, ? _CallsAndRetriesMax_) - - -Set call counters as timers. YAP will generate an exception -if one of the instantiated call counters decreases to 0: - -+ _CallsMax_ - - throw the exception `call_counter` when the -counter `calls` reaches 0; - -+ _RetriesMax_ - - throw the exception `retry_counter` when the -counter `retries` reaches 0; - -+ _CallsAndRetriesMax_ - - throw the exception -`call_and_retry_counter` when the counter `calls_and_retries` -reaches 0. - - YAP will ignore counters that are called with unbound arguments. - -Next, we show a simple example of how to use call counters: - -~~~~~{.prolog} - ?- yap_flag(call_counting,on), [-user]. l :- l. end_of_file. yap_flag(call_counting,off). - -yes - -yes - ?- catch((call_count(10000,_,_),l),call_counter,format("limit_exceeded.~n",[])). - -limit_exceeded. - -yes -~~~~~ -Notice that we first compile the looping predicate `l/0` with -call_counting `on`. Next, we catch/3 to handle an -exception when `l/0` performs more than 10000 reductions. - - - */ -EOF -sed -e "142r tmp" /Users/vsc/git/yap-6.3/pl/callcount.yap > x - mv x /Users/vsc/git/yap-6.3/pl/callcount.yap - -#false -cat << "EOF" > tmp -/** @pred call_count_reset - - -Reset call count counters. All timers are also reset. - -*/ -EOF -sed -e "95r tmp" /Users/vsc/git/yap-6.3/pl/callcount.yap > x - mv x /Users/vsc/git/yap-6.3/pl/callcount.yap - -#false -cat << "EOF" > tmp -/** @pred call_count_data(- _Calls_, - _Retries_, - _CallsAndRetries_) - - -Give current call count data. The first argument gives the current value -for the _Calls_ counter, next the _Retries_ counter, and last -the _CallsAndRetries_ counter. - -*/ -EOF -sed -e "86r tmp" /Users/vsc/git/yap-6.3/pl/callcount.yap > x - mv x /Users/vsc/git/yap-6.3/pl/callcount.yap - -#false -cat << "EOF" > tmp -/** @pred prolog_load_context(? _Key_, ? _Value_) - - -Obtain information on what is going on in the compilation process. The -following keys are available: - - - -+ directory - - - -Full name for the directory where YAP is currently consulting the -file. - -+ file - - - -Full name for the file currently being consulted. Notice that included -filed are ignored. - -+ module - - - -Current source module. - -+ `source` (prolog_load_context/2 option) - - Full name for the file currently being read in, which may be consulted, -reconsulted, or included. - -+ `stream` - - Stream currently being read in. - -+ `term_position` - - Stream position at the stream currently being read in. For SWI -compatibility, it is a term of the form -'$stream_position'(0,Line,0,0,0). - - -+ `source_location(? _FileName_, ? _Line_)` - - SWI-compatible predicate. If the last term has been read from a physical file (i.e., not from the file user or a string), unify File with an absolute path to the file and Line with the line-number in the file. Please use prolog_load_context/2. - -+ `source_file(? _File_)` - - SWI-compatible predicate. True if _File_ is a loaded Prolog source file. - -+ `source_file(? _ModuleAndPred_,? _File_)` - - SWI-compatible predicate. True if the predicate specified by _ModuleAndPred_ was loaded from file _File_, where _File_ is an absolute path name (see `absolute_file_name/2`). - - - -@section YAPLibrary Library Predicates - -Library files reside in the library_directory path (set by the -`LIBDIR` variable in the Makefile for YAP). Currently, -most files in the library are from the Edinburgh Prolog library. - - - */ -EOF -sed -e "875r tmp" /Users/vsc/git/yap-6.3/pl/consult.yap > x - mv x /Users/vsc/git/yap-6.3/pl/consult.yap - -#false -cat << "EOF" > tmp -/** @pred halt(+ _I_) is iso - -Halts Prolog, and exits to the calling application returning the code -given by the integer _I_. - - -*/ -EOF -sed -e "713r tmp" /Users/vsc/git/yap-6.3/pl/control.yap > x - mv x /Users/vsc/git/yap-6.3/pl/control.yap - -#false -cat << "EOF" > tmp -/** @pred halt is iso - - -Halts Prolog, and exits to the calling application. In YAP, -halt/0 returns the exit code `0`. - - -*/ -EOF -sed -e "700r tmp" /Users/vsc/git/yap-6.3/pl/control.yap > x - mv x /Users/vsc/git/yap-6.3/pl/control.yap - -#false -cat << "EOF" > tmp -/** @pred break - - -Suspends the execution of the current goal and creates a new execution -level similar to the top level, displaying the following message: - -~~~~~{.prolog} - [ Break (level ) ] -~~~~~ -telling the depth of the break level just entered. To return to the -previous level just type the end-of-file character or call the -end_of_file predicate. This predicate is especially useful during -debugging. - - -*/ -EOF -sed -e "658r tmp" /Users/vsc/git/yap-6.3/pl/control.yap > x - mv x /Users/vsc/git/yap-6.3/pl/control.yap - -#false -cat << "EOF" > tmp -/** @pred b_getval(+ _Name_,- _Value_) - - -Get the value associated with the global variable _Name_ and unify -it with _Value_. Note that this unification may further instantiate -the value of the global variable. If this is undesirable the normal -precautions (double negation or copy_term/2) must be taken. The -b_getval/2 predicate generates errors if _Name_ is not an atom or -the requested variable does not exist. - - -*/ -EOF -sed -e "599r tmp" /Users/vsc/git/yap-6.3/pl/control.yap > x - mv x /Users/vsc/git/yap-6.3/pl/control.yap - -#false -cat << "EOF" > tmp -/** @pred b_getval(+ _Name_, - _Value_) - - -Get the value associated with the global variable _Name_ and unify -it with _Value_. Note that this unification may further -instantiate the value of the global variable. If this is undesirable -the normal precautions (double negation or copy_term/2) must be -taken. The b_getval/2 predicate generates errors if _Name_ is not -an atom or the requested variable does not exist. - -Notice that for compatibility with other systems _Name_ must be already associated with a term: otherwise the system will generate an error. - - -*/ -EOF -sed -e "599r tmp" /Users/vsc/git/yap-6.3/pl/control.yap > x - mv x /Users/vsc/git/yap-6.3/pl/control.yap - -#false -cat << "EOF" > tmp -/** @pred nb_getval(+ _Name_,- _Value_) - - -The nb_getval/2 predicate is a synonym for b_getval/2, introduced for -compatibility and symmetry. As most scenarios will use a particular -global variable either using non-backtrackable or backtrackable -assignment, using nb_getval/2 can be used to document that the -variable is used non-backtrackable. - - -*/ -EOF -sed -e "560r tmp" /Users/vsc/git/yap-6.3/pl/control.yap > x - mv x /Users/vsc/git/yap-6.3/pl/control.yap - -#false -cat << "EOF" > tmp -/** @pred nb_getval(+ _Name_, - _Value_) - - -The nb_getval/2 predicate is a synonym for b_getval/2, -introduced for compatibility and symmetry. As most scenarios will use -a particular global variable either using non-backtrackable or -backtrackable assignment, using nb_getval/2 can be used to -document that the variable is used non-backtrackable. - - -*/ -EOF -sed -e "560r tmp" /Users/vsc/git/yap-6.3/pl/control.yap > x - mv x /Users/vsc/git/yap-6.3/pl/control.yap - -#true -cat << "EOF" > tmp -/** @pred version(- _Message_) - -Add a message to be written when yap boots or after aborting. It is not -possible to remove messages. - - -*/ -EOF -sed -e "520r tmp" /Users/vsc/git/yap-6.3/pl/control.yap > x - mv x /Users/vsc/git/yap-6.3/pl/control.yap - -#false -cat << "EOF" > tmp -/** @pred version - -Write YAP's boot message. - - -*/ -EOF -sed -e "511r tmp" /Users/vsc/git/yap-6.3/pl/control.yap > x - mv x /Users/vsc/git/yap-6.3/pl/control.yap - -#false -cat << "EOF" > tmp -/** @pred prolog_initialization( _G_) - - -Add a goal to be executed on system initialization. This is compatible -with SICStus Prolog's initialization/1. - - -*/ -EOF -sed -e "495r tmp" /Users/vsc/git/yap-6.3/pl/control.yap > x - mv x /Users/vsc/git/yap-6.3/pl/control.yap - -#false -cat << "EOF" > tmp -/** @pred garbage_collect_atoms - - -The goal `garbage_collect` forces a garbage collection of the atoms -in the data-base. Currently, only atoms are recovered. - - -*/ -EOF -sed -e "473r tmp" /Users/vsc/git/yap-6.3/pl/control.yap > x - mv x /Users/vsc/git/yap-6.3/pl/control.yap - -#false -cat << "EOF" > tmp -/** @pred nogc - - -The goal `nogc` disables garbage collection. The same as -`yap_flag(gc,off)`. - - -*/ -EOF -sed -e "462r tmp" /Users/vsc/git/yap-6.3/pl/control.yap > x - mv x /Users/vsc/git/yap-6.3/pl/control.yap - -#false -cat << "EOF" > tmp -/** @pred gc - - -The goal `gc` enables garbage collection. The same as -`yap_flag(gc,on)`. - - -*/ -EOF -sed -e "452r tmp" /Users/vsc/git/yap-6.3/pl/control.yap > x - mv x /Users/vsc/git/yap-6.3/pl/control.yap - -#false -cat << "EOF" > tmp -/** @pred garbage_collect - - -The goal `garbage_collect` forces a garbage collection. - - -*/ -EOF -sed -e "442r tmp" /Users/vsc/git/yap-6.3/pl/control.yap > x - mv x /Users/vsc/git/yap-6.3/pl/control.yap - -#false -cat << "EOF" > tmp -/** @pred grow_stack(+ _Size_) - - -Increase stack size _Size_ kilobytes - - - */ -EOF -sed -e "428r tmp" /Users/vsc/git/yap-6.3/pl/control.yap > x - mv x /Users/vsc/git/yap-6.3/pl/control.yap - -#false -cat << "EOF" > tmp -/** @pred grow_heap(+ _Size_) -Increase heap size _Size_ kilobytes. - - -*/ -EOF -sed -e "420r tmp" /Users/vsc/git/yap-6.3/pl/control.yap > x - mv x /Users/vsc/git/yap-6.3/pl/control.yap - -#false -cat << "EOF" > tmp -/** @pred setup_call_catcher_cleanup(: _Setup_,: _Goal_, + _Catcher_,: _CleanUpGoal_) - - -Similar to `setup_call_cleanup( _Setup_, _Goal_, _Cleanup_)` with -additional information on the reason of calling _Cleanup_. Prior -to calling _Cleanup_, _Catcher_ unifies with the termination -code. If this unification fails, _Cleanup_ is - *not* called. - - -*/ -EOF -sed -e "327r tmp" /Users/vsc/git/yap-6.3/pl/control.yap > x - mv x /Users/vsc/git/yap-6.3/pl/control.yap - -#false -cat << "EOF" > tmp -/** @pred setup_call_cleanup(: _Setup_,: _Goal_, : _CleanUpGoal_) - - -Calls `(Setup, Goal)`. For each sucessful execution of _Setup_, calling _Goal_, the -cleanup handler _Cleanup_ is guaranteed to be called exactly once. -This will happen after _Goal_ completes, either through failure, -deterministic success, commit, or an exception. _Setup_ will -contain the goals that need to be protected from asynchronous interrupts -such as the ones received from `call_with_time_limit/2` or thread_signal/2. In -most uses, _Setup_ will perform temporary side-effects required by - _Goal_ that are finally undone by _Cleanup_. - -Success or failure of _Cleanup_ is ignored and choice-points it -created are destroyed (as once/1). If _Cleanup_ throws an exception, -this is executed as normal. - -Typically, this predicate is used to cleanup permanent data storage -required to execute _Goal_, close file-descriptors, etc. The example -below provides a non-deterministic search for a term in a file, closing -the stream as needed. - -~~~~~{.prolog} -term_in_file(Term, File) :- - setup_call_cleanup(open(File, read, In), - term_in_stream(Term, In), - close(In) ). - -term_in_stream(Term, In) :- - repeat, - read(In, T), - ( T == end_of_file - -> !, fail - ; T = Term - ). -~~~~~ - -Note that it is impossible to implement this predicate in Prolog other than -by reading all terms into a list, close the file and call member/2. -Without setup_call_cleanup/3 there is no way to gain control if the -choice-point left by `repeat` is removed by a cut or an exception. - -`setup_call_cleanup/2` can also be used to test determinism of a goal: - -~~~~~ -?- setup_call_cleanup(true,(X=1;X=2), Det=yes). - -X = 1 ; - -X = 2, -Det = yes ; -~~~~~ - -This predicate is under consideration for inclusion into the ISO standard. -For compatibility with other Prolog implementations see `call_cleanup/2`. - - -*/ -EOF -sed -e "313r tmp" /Users/vsc/git/yap-6.3/pl/control.yap > x - mv x /Users/vsc/git/yap-6.3/pl/control.yap - -#true -cat << "EOF" > tmp -/** @pred call_cleanup(: _Goal_, : _CleanUpGoal_) - -This is similar to call_cleanup/1 with an additional - _CleanUpGoal_ which gets called after _Goal_ is finished. - - -*/ -EOF -sed -e "250r tmp" /Users/vsc/git/yap-6.3/pl/control.yap > x - mv x /Users/vsc/git/yap-6.3/pl/control.yap - -#false -cat << "EOF" > tmp -/** @pred call(+ _Closure_,...,? _Ai_,...) is iso - - -Meta-call where _Closure_ is a closure that is converted into a goal by -appending the _Ai_ additional arguments. The number of arguments varies -between 0 and 10. - - -*/ -EOF -sed -e "225r tmp" /Users/vsc/git/yap-6.3/pl/control.yap > x - mv x /Users/vsc/git/yap-6.3/pl/control.yap - -#false -cat << "EOF" > tmp -/** @pred if(? _G_,? _H_,? _I_) - -Call goal _H_ once per each solution of goal _H_. If goal - _H_ has no solutions, call goal _I_. - -The built-in `if/3` is similar to `->/3`, with the difference -that it will backtrack over the test goal. Consider the following -small data-base: - -~~~~~{.prolog} -a(1). b(a). c(x). -a(2). b(b). c(y). -~~~~~ - -Execution of an `if/3` query will proceed as follows: - -~~~~~{.prolog} - ?- if(a(X),b(Y),c(Z)). - -X = 1, -Y = a ? ; - -X = 1, -Y = b ? ; - -X = 2, -Y = a ? ; - -X = 2, -Y = b ? ; - -no -~~~~~ - -The system will backtrack over the two solutions for `a/1` and the -two solutions for `b/1`, generating four solutions. - -Cuts are allowed inside the first goal _G_, but they will only prune -over _G_. - -If you want _G_ to be deterministic you should use if-then-else, as -it is both more efficient and more portable. - - -*/ -EOF -sed -e "200r tmp" /Users/vsc/git/yap-6.3/pl/control.yap > x - mv x /Users/vsc/git/yap-6.3/pl/control.yap - -#true -cat << "EOF" > tmp -/** @pred ignore(: _Goal_) - - -Calls _Goal_ as once/1, but succeeds, regardless of whether -`Goal` succeeded or not. Defined as: - -~~~~~{.prolog} -ignore(Goal) :- - Goal, !. -ignore(_). -~~~~~ - - -*/ -EOF -sed -e "140r tmp" /Users/vsc/git/yap-6.3/pl/control.yap > x - mv x /Users/vsc/git/yap-6.3/pl/control.yap - -#true -cat << "EOF" > tmp -/** @pred forall(+ _Cond_,+ _Action_) - - - - -For all alternative bindings of _Cond_ _Action_ can be proven. -The next example verifies that all arithmetic statements in the list - _L_ are correct. It does not say which is wrong if one proves wrong. - -~~~~~ -?- forall(member(Result = Formula, [2 = 1 + 1, 4 = 2 * 2]), - Result =:= Formula). -~~~~~ - - - -*/ -EOF -sed -e "124r tmp" /Users/vsc/git/yap-6.3/pl/control.yap > x - mv x /Users/vsc/git/yap-6.3/pl/control.yap - -#true -cat << "EOF" > tmp -/** @pred forall(: _Cond_,: _Action_) - - -For all alternative bindings of _Cond_ _Action_ can be -proven. The example verifies that all arithmetic statements in the list - _L_ are correct. It does not say which is wrong if one proves wrong. - -~~~~~{.prolog} -?- forall(member(Result = Formula, [2 = 1 + 1, 4 = 2 * 2]), - Result =:= Formula). -~~~~~ - - -*/ -EOF -sed -e "124r tmp" /Users/vsc/git/yap-6.3/pl/control.yap > x - mv x /Users/vsc/git/yap-6.3/pl/control.yap - -#false -cat << "EOF" > tmp -/** @pred once(: _G_) is iso - - -Execute the goal _G_ only once. The predicate is defined by: - -~~~~~{.prolog} - once(G) :- call(G), !. -~~~~~ - -Note that cuts inside once/1 can only cut the other goals inside -once/1. - - -*/ -EOF -sed -e "91r tmp" /Users/vsc/git/yap-6.3/pl/control.yap > x - mv x /Users/vsc/git/yap-6.3/pl/control.yap - -#false -cat << "EOF" > tmp -/** @pred frozen( _X_, _G_) - - -Unify _G_ with a conjunction of goals suspended on variable _X_, -or `true` if no goal has suspended. - - -*/ -EOF -sed -e "572r tmp" /Users/vsc/git/yap-6.3/pl/corout.yap > x - mv x /Users/vsc/git/yap-6.3/pl/corout.yap - -#false -cat << "EOF" > tmp -/** @pred when(+ _C_,: _G_) - - -Delay execution of goal _G_ until the conditions _C_ are -satisfied. The conditions are of the following form: - -+ _C1_, _C2_ -Delay until both conditions _C1_ and _C2_ are satisfied. -+ _C1_; _C2_ -Delay until either condition _C1_ or condition _C2_ is satisfied. -+ ?=( _V1_, _C2_) -Delay until terms _V1_ and _V1_ have been unified. -+ nonvar( _V_) -Delay until variable _V_ is bound. -+ ground( _V_) -Delay until variable _V_ is ground. - - -Note that when/2 will fail if the conditions fail. - - -*/ -EOF -sed -e "331r tmp" /Users/vsc/git/yap-6.3/pl/corout.yap > x - mv x /Users/vsc/git/yap-6.3/pl/corout.yap - -#false -cat << "EOF" > tmp -/** @pred dif( _X_, _Y_) - - -Succeed if the two arguments do not unify. A call to dif/2 will -suspend if unification may still succeed or fail, and will fail if they -always unify. - - -*/ -EOF -sed -e "232r tmp" /Users/vsc/git/yap-6.3/pl/corout.yap > x - mv x /Users/vsc/git/yap-6.3/pl/corout.yap - -#false -cat << "EOF" > tmp -/** @pred freeze(? _X_,: _G_) - - -Delay execution of goal _G_ until the variable _X_ is bound. - - -*/ -EOF -sed -e "171r tmp" /Users/vsc/git/yap-6.3/pl/corout.yap > x - mv x /Users/vsc/git/yap-6.3/pl/corout.yap - -#true -cat << "EOF" > tmp -/** @pred attribute_goals(+ _Var_,- _Gs_,+ _GsRest_) - - - -This nonterminal, if it is defined in a module, is used by _copy_term/3_ -to project attributes of that module to residual goals. It is also -used by the toplevel to obtain residual goals after executing a query. - - -Normal user code should deal with put_attr/3, get_attr/3 and del_attr/2. -The routines in this section fetch or set the entire attribute list of a -variables. Use of these predicates is anticipated to be restricted to -printing and other special purpose operations. - - - - @pred get_attrs(+ _Var_,- _Attributes_) - - - -Get all attributes of _Var_. _Attributes_ is a term of the form -`att( _Module_, _Value_, _MoreAttributes_)`, where _MoreAttributes_ is -`[]` for the last attribute. - - -*/ -EOF -sed -e "133r tmp" /Users/vsc/git/yap-6.3/pl/corout.yap > x - mv x /Users/vsc/git/yap-6.3/pl/corout.yap - -#true -cat << "EOF" > tmp -/** @pred attr_unify_hook(+ _AttValue_,+ _VarValue_) - - - -Hook that must be defined in the module an attributed variable refers -to. Is is called after the attributed variable has been -unified with a non-var term, possibly another attributed variable. - _AttValue_ is the attribute that was associated to the variable -in this module and _VarValue_ is the new value of the variable. -Normally this predicate fails to veto binding the variable to - _VarValue_, forcing backtracking to undo the binding. If - _VarValue_ is another attributed variable the hook often combines -the two attribute and associates the combined attribute with - _VarValue_ using put_attr/3. - - -*/ -EOF -sed -e "87r tmp" /Users/vsc/git/yap-6.3/pl/corout.yap > x - mv x /Users/vsc/git/yap-6.3/pl/corout.yap - -#false -cat << "EOF" > tmp -/** @pred leash(+ _M_) - - -Sets leashing mode to _M_. -The mode can be specified as: - -+ `full` -prompt on Call, Exit, Redo and Fail - -+ `tight` -prompt on Call, Redo and Fail - -+ `half` -prompt on Call and Redo - -+ `loose` -prompt on Call - -+ `off` -never prompt - -+ `none` -never prompt, same as `off` - -The initial leashing mode is `full`. - -The user may also specify directly the debugger ports -where he wants to be prompted. If the argument for leash -is a number _N_, each of lower four bits of the number is used to -control prompting at one the ports of the box model. The debugger will -prompt according to the following conditions: - -+ if `N/\ 1 =\= 0` prompt on fail -+ if `N/\ 2 =\= 0` prompt on redo -+ if `N/\ 4 =\= 0` prompt on exit -+ if `N/\ 8 =\= 0` prompt on call - -Therefore, `leash(15)` is equivalent to `leash(full)` and -`leash(0)` is equivalent to `leash(off)`. - -Another way of using `leash` is to give it a list with the names of -the ports where the debugger should stop. For example, -`leash([call,exit,redo,fail])` is the same as `leash(full)` or -`leash(15)` and `leash([fail])` might be used instead of -`leash(1)`. - - -*/ -EOF -sed -e "349r tmp" /Users/vsc/git/yap-6.3/pl/debug.yap > x - mv x /Users/vsc/git/yap-6.3/pl/debug.yap - -#false -cat << "EOF" > tmp -/** @pred notrace - - -Ends tracing and exits the debugger. This is the same as -nodebug/0. - - - - - */ -EOF -sed -e "289r tmp" /Users/vsc/git/yap-6.3/pl/debug.yap > x - mv x /Users/vsc/git/yap-6.3/pl/debug.yap - -#false -cat << "EOF" > tmp -/** @pred trace - - -Switches on the debugger and enters tracing mode. - - -*/ -EOF -sed -e "270r tmp" /Users/vsc/git/yap-6.3/pl/debug.yap > x - mv x /Users/vsc/git/yap-6.3/pl/debug.yap - -#false -cat << "EOF" > tmp -/** @pred nospyall - - -Removes all existing spy-points. - - -*/ -EOF -sed -e "228r tmp" /Users/vsc/git/yap-6.3/pl/debug.yap > x - mv x /Users/vsc/git/yap-6.3/pl/debug.yap - -#false -cat << "EOF" > tmp -/** @pred nospy( + _P_ ) - - -Removes spy-points from all predicates specified by _P_. -The possible forms for _P_ are the same as in `spy P`. - - -*/ -EOF -sed -e "213r tmp" /Users/vsc/git/yap-6.3/pl/debug.yap > x - mv x /Users/vsc/git/yap-6.3/pl/debug.yap - -#false -cat << "EOF" > tmp -/** @pred spy( + _P_ ). - - -Sets spy-points on all the predicates represented by - _P_. _P_ can either be a single specification or a list of -specifications. Each one must be of the form _Name/Arity_ -or _Name_. In the last case all predicates with the name - _Name_ will be spied. As in C-Prolog, system predicates and -predicates written in C, cannot be spied. - - -*/ -EOF -sed -e "197r tmp" /Users/vsc/git/yap-6.3/pl/debug.yap > x - mv x /Users/vsc/git/yap-6.3/pl/debug.yap - -#false -cat << "EOF" > tmp -/** @pred print_message(+ _Kind_, _Term_) - -The predicate print_message/2 is used to print messages, notably from -exceptions in a human-readable format. _Kind_ is one of -`informational`, `banner`, `warning`, `error`, -`help` or `silent`. A human-readable message is printed to -the stream user_error. - -If the Prolog flag verbose is `silent`, messages with - _Kind_ `informational`, or `banner` are treated as -silent.@c See \cmdlineoption{-q}. - -This predicate first translates the _Term_ into a list of `message -lines` (see print_message_lines/3 for details). Next it will -call the hook message_hook/3 to allow the user intercepting the -message. If message_hook/3 fails it will print the message unless - _Kind_ is silent. - -If you need to report errors from your own predicates, we advise you to -stick to the existing error terms if you can; but should you need to -invent new ones, you can define corresponding error messages by -asserting clauses for `prolog:message/2`. You will need to declare -the predicate as multifile. - - -*/ -EOF -sed -e "292r tmp" /Users/vsc/git/yap-6.3/pl/errors.yap > x - mv x /Users/vsc/git/yap-6.3/pl/errors.yap - -#false -cat << "EOF" > tmp -/** @pred message_to_string(+ _Term_, - _String_) - - -Translates a message-term into a string object. Primarily intended for SWI-Prolog emulation. - - - - */ -EOF -sed -e "263r tmp" /Users/vsc/git/yap-6.3/pl/errors.yap > x - mv x /Users/vsc/git/yap-6.3/pl/errors.yap - -#false -cat << "EOF" > tmp -/** @pred create_prolog_flag(+ _Flag_,+ _Value_,+ _Options_) - - - -Create a new YAP Prolog flag. _Options_ include `type(+Type)` and `access(+Access)` with _Access_ -one of `read_only` or `read_write` and _Type_ one of `boolean`, `integer`, `float`, `atom` -and `term` (that is, no type). - - -*/ -EOF -sed -e "1267r tmp" /Users/vsc/git/yap-6.3/pl/flags.yap > x - mv x /Users/vsc/git/yap-6.3/pl/flags.yap - -#false -cat << "EOF" > tmp -/** @pred prolog_flag(? _Flag_,- _OldValue_,+ _NewValue_) - - - -Obtain the value for a YAP Prolog flag and then set it to a new -value. Equivalent to first calling current_prolog_flag/2 with the -second argument _OldValue_ unbound and then calling -set_prolog_flag/2 with the third argument _NewValue_. - - -*/ -EOF -sed -e "1247r tmp" /Users/vsc/git/yap-6.3/pl/flags.yap > x - mv x /Users/vsc/git/yap-6.3/pl/flags.yap - -#false -cat << "EOF" > tmp -/** @pred set_prolog_flag(+ _Flag_,+ _Value_) is iso - - - -Set the value for YAP Prolog flag `Flag`. Equivalent to -calling yap_flag/2 with both arguments bound. - - -*/ -EOF -sed -e "1204r tmp" /Users/vsc/git/yap-6.3/pl/flags.yap > x - mv x /Users/vsc/git/yap-6.3/pl/flags.yap - -#false -cat << "EOF" > tmp -/** @pred current_prolog_flag(? _Flag_,- _Value_) is iso - -Obtain the value for a YAP Prolog flag. Equivalent to calling -yap_flag/2 with the second argument unbound, and unifying the -returned second argument with _Value_. - - -*/ -EOF -sed -e "1180r tmp" /Users/vsc/git/yap-6.3/pl/flags.yap > x - mv x /Users/vsc/git/yap-6.3/pl/flags.yap - -#false -cat << "EOF" > tmp -/** @pred yap_flag(tabling_mode,? _Mode_) -Sets or reads the tabling mode for all tabled predicates. The list of - _Mode_ options includes: - -+ `default` - - Defines that (i) all calls to tabled predicates are evaluated -using the predicate default mode, and that (ii) answers for all -completed calls are obtained by using the predicate default mode. - -+ `batched` - - Defines that all calls to tabled predicates are evaluated using -batched scheduling. This option ignores the default tabling mode -of each predicate. - -+ `local` - - Defines that all calls to tabled predicates are evaluated using -local scheduling. This option ignores the default tabling mode -of each predicate. - -+ `exec_answers` - - Defines that answers for all completed calls are obtained by -executing compiled WAM-like code directly from the trie data -structure. This option ignores the default tabling mode -of each predicate. - -+ `load_answers` - - Defines that answers for all completed calls are obtained by -loading them from the trie data structure. This option ignores -the default tabling mode of each predicate. - - - -*/ -EOF -sed -e "546r tmp" /Users/vsc/git/yap-6.3/pl/flags.yap > x - mv x /Users/vsc/git/yap-6.3/pl/flags.yap - -#false -cat << "EOF" > tmp -/** @pred yap_flag(unknown,+ _SPEC_) - -Alternatively, one can use yap_flag/2, -current_prolog_flag/2, or set_prolog_flag/2, to set this -functionality. In this case, the first argument for the built-ins should -be `unknown`, and the second argument should be either -`error`, `warning`, `fail`, or a goal. - - -*/ -EOF -sed -e "546r tmp" /Users/vsc/git/yap-6.3/pl/flags.yap > x - mv x /Users/vsc/git/yap-6.3/pl/flags.yap - -#false -cat << "EOF" > tmp -/** @pred yap_flag(? _Param_,? _Value_) - - -Set or read system properties for _Param_: - - -+ `argv ` - - Read-only flag. It unifies with a list of atoms that gives the -arguments to YAP after `--`. - -+ `agc_margin ` - - An integer: if this amount of atoms has been created since the last -atom-garbage collection, perform atom garbage collection at the first -opportunity. Initial value is 10,000. May be changed. A value of 0 -(zero) disables atom garbage collection. - -+ `associate ` - - Read-write flag telling a suffix for files associated to Prolog -sources. It is `yap` by default. - -+ `bounded is iso ` - - Read-only flag telling whether integers are bounded. The value depends -on whether YAP uses the GMP library or not. - -+ `profiling ` - - If `off` (default) do not compile call counting information for -procedures. If `on` compile predicates so that they calls and -retries to the predicate may be counted. Profiling data can be read through the -call_count_data/3 built-in. - -+ `char_conversion is iso` - - Writable flag telling whether a character conversion table is used when -reading terms. The default value for this flag is `off` except in -`sicstus` and `iso` language modes, where it is `on`. - -+ `character_escapes is iso ` - - Writable flag telling whether a character escapes are enables, -`true`, or disabled, `false`. The default value for this flag is -`on`. - -+ `debug is iso ` - - If _Value_ is unbound, tell whether debugging is `true` or -`false`. If _Value_ is bound to `true` enable debugging, and if -it is bound to `false` disable debugging. - -+ `debugger_print_options ` - - If bound, set the argument to the `write_term/3` options the -debugger uses to write terms. If unbound, show the current options. - -+ `dialect ` - - Read-only flag that always returns `yap`. - -+ `discontiguous_warnings ` - - If _Value_ is unbound, tell whether warnings for discontiguous -predicates are `on` or -`off`. If _Value_ is bound to `on` enable these warnings, -and if it is bound to `off` disable them. The default for YAP is -`off`, unless we are in `sicstus` or `iso` mode. - -+ `dollar_as_lower_case ` - - If `off` (default) consider the character `$` a control character, if -`on` consider `$` a lower case character. - -+ `double_quotes is iso ` - - If _Value_ is unbound, tell whether a double quoted list of characters -token is converted to a list of atoms, `chars`, to a list of integers, -`codes`, or to a single atom, `atom`. If _Value_ is bound, set to -the corresponding behavior. The default value is `codes`. - -+ `executable ` - - Read-only flag. It unifies with an atom that gives the -original program path. - -+ `fast ` - - If `on` allow fast machine code, if `off` (default) disable it. Only -available in experimental implementations. - -+ `fileerrors` - - If `on` `fileerrors` is `on`, if `off` (default) -`fileerrors` is disabled. - -+ `float_format ` - - C-library `printf()` format specification used by write/1 and -friends to determine how floating point numbers are printed. The -default is `%.15g`. The specified value is passed to `printf()` -without further checking. For example, if you want less digits -printed, `%g` will print all floats using 6 digits instead of the -default 15. - -+ `gc` - - If `on` allow garbage collection (default), if `off` disable it. - -+ `gc_margin ` - - Set or show the minimum free stack before starting garbage -collection. The default depends on total stack size. - -+ `gc_trace ` - - If `off` (default) do not show information on garbage collection -and stack shifts, if `on` inform when a garbage collection or stack -shift happened, if verbose give detailed information on garbage -collection and stack shifts. Last, if `very_verbose` give detailed -information on data-structures found during the garbage collection -process, namely, on choice-points. - -+ `generate_debugging_info ` - - If `true` (default) generate debugging information for -procedures, including source mode. If `false` predicates no -information is generated, although debugging is still possible, and -source mode is disabled. - -+ `host_type ` - - Return `configure` system information, including the machine-id -for which YAP was compiled and Operating System information. - -+ `index ` - - If `on` allow indexing (default), if `off` disable it, if -`single` allow on first argument only. - -+ `index_sub_term_search_depth ` - - Maximum bound on searching sub-terms for indexing, if `0` (default) no bound. - -+ `informational_messages ` - - If `on` allow printing of informational messages, such as the ones -that are printed when consulting. If `off` disable printing -these messages. It is `on` by default except if YAP is booted with -the `-L` flag. - -+ `integer_rounding_function is iso ` - - Read-only flag telling the rounding function used for integers. Takes the value -`toward_zero` for the current version of YAP. - -+ `language ` - - Choose whether YAP is closer to C-Prolog, `cprolog`, iso-prolog, -`iso` or SICStus Prolog, `sicstus`. The current default is -`cprolog`. This flag affects update semantics, leashing mode, -style checking, handling calls to undefined procedures, how directives -are interpreted, when to use dynamic, character escapes, and how files -are consulted. - -+ `max_arity is iso ` - - Read-only flag telling the maximum arity of a functor. Takes the value -`unbounded` for the current version of YAP. - -+ `max_integer is iso ` - - Read-only flag telling the maximum integer in the -implementation. Depends on machine and Operating System -architecture, and on whether YAP uses the `GMP` multi-precision -library. If bounded is false, requests for max_integer -will fail. - -+ `max_tagged_integer ` - - Read-only flag telling the maximum integer we can store as a single -word. Depends on machine and Operating System -architecture. It can be used to find the word size of the current machine. - -+ `min_integer is iso ` - - Read-only flag telling the minimum integer in the -implementation. Depends on machine and Operating System architecture, -and on whether YAP uses the `GMP` multi-precision library. If -bounded is false, requests for min_integer will fail. - -+ `min_tagged_integer ` - - Read-only flag telling the minimum integer we can store as a single -word. Depends on machine and Operating System -architecture. - -+ `n_of_integer_keys_in_bb ` - - Read or set the size of the hash table that is used for looking up the -blackboard when the key is an integer. - -+ `occurs_check ` - - Current read-only and set to `false`. - -+ `n_of_integer_keys_in_db ` - - Read or set the size of the hash table that is used for looking up the -internal data-base when the key is an integer. - -+ `open_expands_filename ` - - If `true` the open/3 builtin performs filename-expansion -before opening a file (SICStus Prolog like). If `false` it does not -(SWI-Prolog like). - -+ `open_shared_object ` - - If true, `open_shared_object/2` and friends are implemented, -providing access to shared libraries (`.so` files) or to dynamic link -libraries (`.DLL` files). - -+ `profiling ` - - If `off` (default) do not compile profiling information for -procedures. If `on` compile predicates so that they will output -profiling information. Profiling data can be read through the -profile_data/3 built-in. - -+ `prompt_alternatives_on(atom, changeable) ` - - SWI-Compatible option, determines prompting for alternatives in the Prolog toplevel. Default is groundness, YAP prompts for alternatives if and only if the query contains variables. The alternative, default in SWI-Prolog is determinism which implies the system prompts for alternatives if the goal succeeded while leaving choicepoints. - -+ `redefine_warnings ` - - If _Value_ is unbound, tell whether warnings for procedures defined -in several different files are `on` or -`off`. If _Value_ is bound to `on` enable these warnings, -and if it is bound to `off` disable them. The default for YAP is -`off`, unless we are in `sicstus` or `iso` mode. - -+ `shared_object_search_path ` - - Name of the environment variable used by the system to search for shared -objects. - -+ `shared_object_extension ` - - Suffix associated with loadable code. - -+ `single_var_warnings ` - - If _Value_ is unbound, tell whether warnings for singleton variables -are `on` or `off`. If _Value_ is bound to `on` enable -these warnings, and if it is bound to `off` disable them. The -default for YAP is `off`, unless we are in `sicstus` or -`iso` mode. - -+ `strict_iso ` - - If _Value_ is unbound, tell whether strict ISO compatibility mode -is `on` or `off`. If _Value_ is bound to `on` set -language mode to `iso` and enable strict mode. If _Value_ is -bound to `off` disable strict mode, and keep the current language -mode. The default for YAP is `off`. -Under strict ISO Prolog mode all calls to non-ISO built-ins generate an -error. Compilation of clauses that would call non-ISO built-ins will -also generate errors. Pre-processing for grammar rules is also -disabled. Module expansion is still performed. -Arguably, ISO Prolog does not provide all the functionality required -from a modern Prolog system. Moreover, because most Prolog -implementations do not fully implement the standard and because the -standard itself gives the implementor latitude in a few important -questions, such as the unification algorithm and maximum size for -numbers there is no guarantee that programs compliant with this mode -will work the same way in every Prolog and in every platform. We thus -believe this mode is mostly useful when investigating how a program -depends on a Prolog's platform specific features. - -+ `stack_dump_on_error ` - - If `on` show a stack dump when YAP finds an error. The default is -`off`. - -+ `syntax_errors` - - Control action to be taken after syntax errors while executing read/1, -`read/2`, or `read_term/3`: - + `dec10` -Report the syntax error and retry reading the term. - + `fail` -Report the syntax error and fail (default). - + `error` -Report the syntax error and generate an error. - + `quiet` -Just fail - -+ `system_options ` - - This read only flag tells which options were used to compile -YAP. Currently it informs whether the system supports `big_numbers`, -`coroutining`, `depth_limit`, `low_level_tracer`, -`or-parallelism`, `rational_trees`, `readline`, `tabling`, -`threads`, or the `wam_profiler`. - -+ `tabling_mode` - - Sets or reads the tabling mode for all tabled predicates. Please - (see Tabling) for the list of options. - -+ `to_chars_mode ` - - Define whether YAP should follow `quintus`-like -semantics for the `atom_chars/1` or `number_chars/1` built-in, -or whether it should follow the ISO standard (`iso` option). - -+ `toplevel_hook ` - - If bound, set the argument to a goal to be executed before entering the -top-level. If unbound show the current goal or `true` if none is -presented. Only the first solution is considered and the goal is not -backtracked into. - -+ `toplevel_print_options ` - - If bound, set the argument to the `write_term/3` options used to write -terms from the top-level. If unbound, show the current options. - -+ `typein_module ` - - If bound, set the current working or type-in module to the argument, -which must be an atom. If unbound, unify the argument with the current -working module. - -+ `unix` - - Read-only Boolean flag that unifies with `true` if YAP is -running on an Unix system. Defined if the C-compiler used to compile -this version of YAP either defines `__unix__` or `unix`. - -+ `unknown is iso` - - Corresponds to calling the unknown/2 built-in. Possible values -are `error`, `fail`, and `warning`. - -+ `update_semantics ` - - Define whether YAP should follow `immediate` update -semantics, as in C-Prolog (default), `logical` update semantics, -as in Quintus Prolog, SICStus Prolog, or in the ISO standard. There is -also an intermediate mode, `logical_assert`, where dynamic -procedures follow logical semantics but the internal data base still -follows immediate semantics. - -+ `user_error ` - - If the second argument is bound to a stream, set user_error to -this stream. If the second argument is unbound, unify the argument with -the current user_error stream. -By default, the user_error stream is set to a stream -corresponding to the Unix `stderr` stream. -The next example shows how to use this flag: - -~~~{.prolog} - ?- open( '/dev/null', append, Error, - [alias(mauri_tripa)] ). - - Error = '$stream'(3) ? ; - - no - ?- set_prolog_flag(user_error, mauri_tripa). - - close(mauri_tripa). - - yes - ?- -~~~ - We execute three commands. First, we open a stream in write mode and -give it an alias, in this case `mauri_tripa`. Next, we set -user_error to the stream via the alias. Note that after we did so -prompts from the system were redirected to the stream -`mauri_tripa`. Last, we close the stream. At this point, YAP -automatically redirects the user_error alias to the original -`stderr`. - -+ `user_flags ` - - Define the behaviour of set_prolog_flag/2 if the flag is not known. Values are `silent`, `warning` and `error`. The first two create the flag on-the-fly, with `warning` printing a message. The value `error` is consistent with ISO: it raises an existence error and does not create the flag. See also `create_prolog_flag/3`. The default is`error`, and developers are encouraged to use `create_prolog_flag/3` to create flags for their library. - -+ `user_input ` - - If the second argument is bound to a stream, set user_input to -this stream. If the second argument is unbound, unify the argument with -the current user_input stream. -By default, the user_input stream is set to a stream -corresponding to the Unix `stdin` stream. - -+ `user_output ` - - If the second argument is bound to a stream, set user_output to -this stream. If the second argument is unbound, unify the argument with -the current user_output stream. -By default, the user_output stream is set to a stream -corresponding to the Unix `stdout` stream. - -+ `verbose ` - - If `normal` allow printing of informational and banner messages, -such as the ones that are printed when consulting. If `silent` -disable printing these messages. It is `normal` by default except if -YAP is booted with the `-q` or `-L` flag. - -+ `verbose_load ` - - If `true` allow printing of informational messages when -consulting files. If `false` disable printing these messages. It -is `normal` by default except if YAP is booted with the `-L` -flag. - -+ `version ` - - Read-only flag that returns an atom with the current version of -YAP. - -+ `version_data ` - - Read-only flag that reads a term of the form -`yap`( _Major_, _Minor_, _Patch_, _Undefined_), where - _Major_ is the major version, _Minor_ is the minor version, -and _Patch_ is the patch number. - -+ `windows ` - - Read-only boolean flag that unifies with tr `true` if YAP is -running on an Windows machine. - -+ `write_strings ` - - Writable flag telling whether the system should write lists of -integers that are writable character codes using the list notation. It -is `on` if enables or `off` if disabled. The default value for -this flag is `off`. - -+ `max_workers ` - - Read-only flag telling the maximum number of parallel processes. - -+ `max_threads ` - - Read-only flag telling the maximum number of Prolog threads that can -be created. - - - -*/ -EOF -sed -e "546r tmp" /Users/vsc/git/yap-6.3/pl/flags.yap > x - mv x /Users/vsc/git/yap-6.3/pl/flags.yap - -#false -cat << "EOF" > tmp -/** @pred phrase(+ _P_, _L_, _R_) - - -This predicate succeeds when the difference list ` _L_- _R_` -is a phrase of type _P_. - - -*/ -EOF -sed -e "229r tmp" /Users/vsc/git/yap-6.3/pl/grammar.yap > x - mv x /Users/vsc/git/yap-6.3/pl/grammar.yap - -#false -cat << "EOF" > tmp -/** @pred phrase(+ _P_, _L_) - -This predicate succeeds when _L_ is a phrase of type _P_. The -same as `phrase(P,L,[])`. - -Both this predicate and the previous are used as a convenient way to -start execution of grammar rules. - - -*/ -EOF -sed -e "218r tmp" /Users/vsc/git/yap-6.3/pl/grammar.yap > x - mv x /Users/vsc/git/yap-6.3/pl/grammar.yap - -#false -cat << "EOF" > tmp -/** @pred exception(+ _Exception_, + _Context_, - _Action_) - - -Dynamic predicate, normally not defined. Called by the Prolog system on run-time exceptions that can be repaired `just-in-time`. The values for _Exception_ are described below. See also catch/3 and throw/1. -If this hook predicate succeeds it must instantiate the _Action_ argument to the atom `fail` to make the operation fail silently, `retry` to tell Prolog to retry the operation or `error` to make the system generate an exception. The action `retry` only makes sense if this hook modified the environment such that the operation can now succeed without error. - -+ `undefined_predicate` - _Context_ is instantiated to a predicate-indicator ( _Module:Name/Arity_). If the predicate fails Prolog will generate an existence_error exception. The hook is intended to implement alternatives to the SWI built-in autoloader, such as autoloading code from a database. Do not use this hook to suppress existence errors on predicates. See also `unknown`. -+ `undefined_global_variable` - _Context_ is instantiated to the name of the missing global variable. The hook must call nb_setval/2 or b_setval/2 before returning with the action retry. - - - - - - */ -EOF -sed -e "326r tmp" /Users/vsc/git/yap-6.3/pl/init.yap > x - mv x /Users/vsc/git/yap-6.3/pl/init.yap - -#false -cat << "EOF" > tmp -/** @pred user:message_hook(+ _Term_, + _Kind_, + _Lines_) - - -Hook predicate that may be define in the module `user` to intercept -messages from print_message/2. _Term_ and _Kind_ are the -same as passed to print_message/2. _Lines_ is a list of -format statements as described with print_message_lines/3. - -This predicate should be defined dynamic and multifile to allow other -modules defining clauses for it too. - - -*/ -EOF -sed -e "302r tmp" /Users/vsc/git/yap-6.3/pl/init.yap > x - mv x /Users/vsc/git/yap-6.3/pl/init.yap - -#false -cat << "EOF" > tmp -/** @pred false is iso - - -The same as fail. - - -*/ -EOF -sed -e "68r tmp" /Users/vsc/git/yap-6.3/pl/init.yap > x - mv x /Users/vsc/git/yap-6.3/pl/init.yap - -#false -cat << "EOF" > tmp -/** @pred fail is iso - - -Always fails. - - -*/ -EOF -sed -e "59r tmp" /Users/vsc/git/yap-6.3/pl/init.yap > x - mv x /Users/vsc/git/yap-6.3/pl/init.yap - -#true -cat << "EOF" > tmp -/** @pred portray_clause(+ _C_) - - -Write clause _C_ as if written by listing/0. - - -*/ -EOF -sed -e "184r tmp" /Users/vsc/git/yap-6.3/pl/listing.yap > x - mv x /Users/vsc/git/yap-6.3/pl/listing.yap - -#true -cat << "EOF" > tmp -/** @pred portray_clause(+ _S_,+ _C_) - -Write clause _C_ on stream _S_ as if written by listing/0. - - -*/ -EOF -sed -e "171r tmp" /Users/vsc/git/yap-6.3/pl/listing.yap > x - mv x /Users/vsc/git/yap-6.3/pl/listing.yap - -#true -cat << "EOF" > tmp -/** @pred listing(+ _P_) - -Lists predicate _P_ if its source code is available. - - -*/ -EOF -sed -e "54r tmp" /Users/vsc/git/yap-6.3/pl/listing.yap > x - mv x /Users/vsc/git/yap-6.3/pl/listing.yap - -#true -cat << "EOF" > tmp -/** @pred listing - - -Lists in the current output stream all the clauses for which source code -is available (these include all clauses for dynamic predicates and -clauses for static predicates compiled when source mode was `on`). - - -*/ -EOF -sed -e "41r tmp" /Users/vsc/git/yap-6.3/pl/listing.yap > x - mv x /Users/vsc/git/yap-6.3/pl/listing.yap - -#true -cat << "EOF" > tmp -/** @pred delete(+ _List_, ? _Element_, ? _Residue_) - - -True when _List_ is a list, in which _Element_ may or may not -occur, and _Residue_ is a copy of _List_ with all elements -identical to _Element_ deleted. - - -*/ -EOF -sed -e "69r tmp" /Users/vsc/git/yap-6.3/pl/lists.yap > x - mv x /Users/vsc/git/yap-6.3/pl/lists.yap - -#true -cat << "EOF" > tmp -/** @pred append(? _List1_,? _List2_,? _List3_) - - -Succeeds when _List3_ unifies with the concatenation of _List1_ -and _List2_. The predicate can be used with any instantiation -pattern (even three variables). - - -*/ -EOF -sed -e "49r tmp" /Users/vsc/git/yap-6.3/pl/lists.yap > x - mv x /Users/vsc/git/yap-6.3/pl/lists.yap - -#true -cat << "EOF" > tmp -/** @pred member(? _Element_, ? _Set_) - - -True when _Set_ is a list, and _Element_ occurs in it. It may be used -to test for an element or to enumerate all the elements by backtracking. - - -*/ -EOF -sed -e "36r tmp" /Users/vsc/git/yap-6.3/pl/lists.yap > x - mv x /Users/vsc/git/yap-6.3/pl/lists.yap - -#true -cat << "EOF" > tmp -/** @pred memberchk(+ _Element_, + _Set_) - - -As member/2, but may only be used to test whether a known - _Element_ occurs in a known Set. In return for this limited use, it -is more efficient when it is applicable. - - -*/ -EOF -sed -e "19r tmp" /Users/vsc/git/yap-6.3/pl/lists.yap > x - mv x /Users/vsc/git/yap-6.3/pl/lists.yap - -#false -cat << "EOF" > tmp -/** @pred open_shared_object(+ _File_, - _Handle_, + _Options_) - -As `open_shared_object/2`, but allows for additional flags to -be passed. _Options_ is a list of atoms. `now` implies the -symbols are -resolved immediately rather than lazily (default). `global` implies -symbols of the loaded object are visible while loading other shared -objects (by default they are local). Note that these flags may not -be supported by your operating system. Check the documentation of -`dlopen()` or equivalent on your operating system. Unsupported -flags are silently ignored. - - -*/ -EOF -sed -e "164r tmp" /Users/vsc/git/yap-6.3/pl/load_foreign.yap > x - mv x /Users/vsc/git/yap-6.3/pl/load_foreign.yap - -#false -cat << "EOF" > tmp -/** @pred open_shared_object(+ _File_, - _Handle_) - -File is the name of a shared object file (called dynamic load -library in MS-Windows). This file is attached to the current process -and _Handle_ is unified with a handle to the library. Equivalent to -`open_shared_object(File, [], Handle)`. See also -load_foreign_library/1 and `load_foreign_library/2`. - -On errors, an exception `shared_object`( _Action_, - _Message_) is raised. _Message_ is the return value from -dlerror(). - - -*/ -EOF -sed -e "147r tmp" /Users/vsc/git/yap-6.3/pl/load_foreign.yap > x - mv x /Users/vsc/git/yap-6.3/pl/load_foreign.yap - -#false -cat << "EOF" > tmp -/** @pred load_foreign_files( _Files_, _Libs_, _InitRoutine_) - -should be used, from inside YAP, to load object files produced by the C -compiler. The argument _ObjectFiles_ should be a list of atoms -specifying the object files to load, _Libs_ is a list (possibly -empty) of libraries to be passed to the unix loader (`ld`) and -InitRoutine is the name of the C routine (to be called after the files -are loaded) to perform the necessary declarations to YAP of the -predicates defined in the files. - -YAP will search for _ObjectFiles_ in the current directory first. If -it cannot find them it will search for the files using the environment -variable: - -+ YAPLIBDIR - -if defined, or in the default library. - -YAP also supports the SWI-Prolog interface to loading foreign code: - - -*/ -EOF -sed -e "53r tmp" /Users/vsc/git/yap-6.3/pl/load_foreign.yap > x - mv x /Users/vsc/git/yap-6.3/pl/load_foreign.yap - -#false -cat << "EOF" > tmp -/** @pred print_message_lines(+ _Stream_, + _Prefix_, + _Lines_) - - -Print a message (see print_message/2) that has been translated to -a list of message elements. The elements of this list are: - -+ _Format_-_Args_ -Where _Format_ is an atom and _Args_ is a list -of format argument. Handed to `format/3`. -+ `flush` -If this appears as the last element, _Stream_ is flushed -(see `flush_output/1`) and no final newline is generated. -+ `at_same_line` -If this appears as first element, no prefix is printed for -the first line and the line-position is not forced to 0 -(see `format/1`, `~N`). -+ `` -Handed to `format/3` as `format(Stream, Format, [])`. -+ nl -A new line is started and if the message is not complete -the _Prefix_ is printed too. - - - -*/ -EOF -sed -e "578r tmp" /Users/vsc/git/yap-6.3/pl/messages.yap > x - mv x /Users/vsc/git/yap-6.3/pl/messages.yap - -#false -cat << "EOF" > tmp -/** @pred with_mutex(+ _MutexId_, : _Goal_) - - -Execute _Goal_ while holding _MutexId_. If _Goal_ leaves -choicepoints, these are destroyed (as in once/1). The mutex is unlocked -regardless of whether _Goal_ succeeds, fails or raises an exception. -An exception thrown by _Goal_ is re-thrown after the mutex has been -successfully unlocked. See also `mutex_create/2`. - -Although described in the thread-section, this predicate is also -available in the single-threaded version, where it behaves simply as -once/1. - - -*/ -EOF -sed -e "1447r tmp" /Users/vsc/git/yap-6.3/pl/modules.yap > x - mv x /Users/vsc/git/yap-6.3/pl/modules.yap - -#false -cat << "EOF" > tmp -/** @pred call_shared_object_function(+ _Handle_, + _Function_) - - -Call the named function in the loaded shared library. The function -is called without arguments and the return-value is -ignored. In SWI-Prolog, normally this function installs foreign -language predicates using calls to `PL_register_foreign()`. - - - - */ -EOF -sed -e "1447r tmp" /Users/vsc/git/yap-6.3/pl/modules.yap > x - mv x /Users/vsc/git/yap-6.3/pl/modules.yap - -#false -cat << "EOF" > tmp -/** @pred with_output_to(+ _Ouput_,: _Goal_) - - -Run _Goal_ as once/1, while characters written to the current -output are sent to _Output_. The predicate is SWI-Prolog -specific. - -Applications should generally avoid creating atoms by breaking and -concatenating other atoms as the creation of large numbers of -intermediate atoms generally leads to poor performance, even more so in -multi-threaded applications. This predicate supports creating -difference-lists from character data efficiently. The example below -defines the DCG rule `term/3` to insert a term in the output: - -~~~~~ - term(Term, In, Tail) :- - with_output_to(codes(In, Tail), write(Term)). - -?- phrase(term(hello), X). - -X = [104, 101, 108, 108, 111] -~~~~~ - -+ A Stream handle or alias -Temporary switch current output to the given stream. Redirection using with_output_to/2 guarantees the original output is restored, also if Goal fails or raises an exception. See also call_cleanup/2. -+ atom(- _Atom_) -Create an atom from the emitted characters. Please note the remark above. -+ string(- _String_) -Create a string-object (not supported in YAP). -+ codes(- _Codes_) -Create a list of character codes from the emitted characters, similar to atom_codes/2. -+ codes(- _Codes_, - _Tail_) -Create a list of character codes as a difference-list. -+ chars(- _Chars_) -Create a list of one-character-atoms codes from the emitted characters, similar to atom_chars/2. -+ chars(- _Chars_, - _Tail_) -Create a list of one-character-atoms as a difference-list. - - - - - - */ -EOF -sed -e "1447r tmp" /Users/vsc/git/yap-6.3/pl/modules.yap > x - mv x /Users/vsc/git/yap-6.3/pl/modules.yap - -#false -cat << "EOF" > tmp -/** @pred setof( _X_,+ _P_,- _B_) is iso - - -Similar to `bagof( _T_, _G_, _L_)` but sorts list - _L_ and keeping only one copy of each element. Again, assuming the -same clauses as in the examples above, the reply to the query - -~~~~~ -setof(X,a(X,Y),L). -~~~~~ -would be: - -~~~~~ -X = _32 -Y = 1 -L = [1,2]; -X = _32 -Y = 2 -L = [2]; -no -~~~~~ - - - - - */ -EOF -sed -e "1447r tmp" /Users/vsc/git/yap-6.3/pl/modules.yap > x - mv x /Users/vsc/git/yap-6.3/pl/modules.yap - -#false -cat << "EOF" > tmp -/** @pred format(+ _T_,+ _L_) - - -Print formatted output to the current output stream. The arguments in -list _L_ are output according to the string or atom _T_. - -A control sequence is introduced by a `w`. The following control -sequences are available in YAP: - - - -+ `~~` -Print a single tilde. - -+ `~a` -The next argument must be an atom, that will be printed as if by `write`. - -+ `~Nc` -The next argument must be an integer, that will be printed as a -character code. The number _N_ is the number of times to print the -character (default 1). - -+ `~Ne` -+ `~NE` -+ `~Nf` -+ `~Ng` -+ `~NG` -The next argument must be a floating point number. The float _F_, the number - _N_ and the control code `c` will be passed to `printf` as: - -~~~~~{.prolog} - printf("%s.Nc", F) -~~~~~ - -As an example: - -~~~~~{.prolog} -?- format("~8e, ~8E, ~8f, ~8g, ~8G~w", - [3.14,3.14,3.14,3.14,3.14,3.14]). -3.140000e+00, 3.140000E+00, 3.140000, 3.14, 3.143.14 -~~~~~ - -+ `~Nd` -The next argument must be an integer, and _N_ is the number of digits -after the decimal point. If _N_ is `0` no decimal points will be -printed. The default is _N = 0_. - -~~~~~{.prolog} -?- format("~2d, ~d",[15000, 15000]). -150.00, 15000 -~~~~~ - -+ `~ND` -Identical to `~Nd`, except that commas are used to separate groups -of three digits. - -~~~~~{.prolog} -?- format("~2D, ~D",[150000, 150000]). -1,500.00, 150,000 -~~~~~ - -+ `~i` -Ignore the next argument in the list of arguments: - -~~~~~{.prolog} -?- format('The ~i met the boregrove',[mimsy]). -The met the boregrove -~~~~~ - -+ `~k` -Print the next argument with `write_canonical`: - -~~~~~{.prolog} -?- format("Good night ~k",a+[1,2]). -Good night +(a,[1,2]) -~~~~~ - -+ `~Nn` -Print _N_ newlines (where _N_ defaults to 1). - -+ `~NN` -Print _N_ newlines if at the beginning of the line (where _N_ -defaults to 1). - -+ `~Nr` -The next argument must be an integer, and _N_ is interpreted as a -radix, such that `2 <= N <= 36` (the default is 8). - -~~~~~{.prolog} -?- format("~2r, 0x~16r, ~r", - [150000, 150000, 150000]). -100100100111110000, 0x249f0, 444760 -~~~~~ - -Note that the letters `a-z` denote digits larger than 9. - -+ `~NR` -Similar to `~NR`. The next argument must be an integer, and _N_ is -interpreted as a radix, such that `2 <= N <= 36` (the default is 8). - -~~~~~{.prolog} -?- format("~2r, 0x~16r, ~r", - [150000, 150000, 150000]). -100100100111110000, 0x249F0, 444760 -~~~~~ - -The only difference is that letters `A-Z` denote digits larger than 9. - -+ `~p` -Print the next argument with print/1: - -~~~~~{.prolog} -?- format("Good night ~p",a+[1,2]). -Good night a+[1,2] -~~~~~ - -+ `~q` -Print the next argument with writeq/1: - -~~~~~{.prolog} -?- format("Good night ~q",'Hello'+[1,2]). -Good night 'Hello'+[1,2] -~~~~~ - -+ `~Ns` -The next argument must be a list of character codes. The system then -outputs their representation as a string, where _N_ is the maximum -number of characters for the string ( _N_ defaults to the length of the -string). - -~~~~~{.prolog} -?- format("The ~s are ~4s",["woods","lovely"]). -The woods are love -~~~~~ - -+ `~w` -Print the next argument with write/1: - -~~~~~ -?- format("Good night ~w",'Hello'+[1,2]). -Good night Hello+[1,2] -~~~~~ - - -The number of arguments, `N`, may be given as an integer, or it -may be given as an extra argument. The next example shows a small -procedure to write a variable number of `a` characters: - -~~~~~ -write_many_as(N) :- - format("~*c",[N,0'a]). -~~~~~ - -The format/2 built-in also allows for formatted output. One can -specify column boundaries and fill the intermediate space by a padding -character: - -+ `~N|` -Set a column boundary at position _N_, where _N_ defaults to the -current position. - -+ `~N+` -Set a column boundary at _N_ characters past the current position, where - _N_ defaults to `8`. - -+ `~Nt` -Set padding for a column, where _N_ is the fill code (default is -`SPC`). - - - -The next example shows how to align columns and padding. We first show -left-alignment: - -~~~~~ - ?- format("~n*Hello~16+*~n",[]). -*Hello * -~~~~~ - -Note that we reserve 16 characters for the column. - -The following example shows how to do right-alignment: - -~~~~~ - ?- format("*~tHello~16+*~n",[]). -* Hello* - -~~~~~ - -The `~t` escape sequence forces filling before `Hello`. - -We next show how to do centering: - -~~~~~ - ?- format("*~tHello~t~16+*~n",[]). -* Hello * -~~~~~ - -The two `~t` escape sequence force filling both before and after -`Hello`. Space is then evenly divided between the right and the -left sides. - - -*/ -EOF -sed -e "1447r tmp" /Users/vsc/git/yap-6.3/pl/modules.yap > x - mv x /Users/vsc/git/yap-6.3/pl/modules.yap - -#false -cat << "EOF" > tmp -/** @pred format(+ _S_,+ _T_,+ _L_) - -Print formatted output to stream _S_. - - -*/ -EOF -sed -e "1447r tmp" /Users/vsc/git/yap-6.3/pl/modules.yap > x - mv x /Users/vsc/git/yap-6.3/pl/modules.yap - -#false -cat << "EOF" > tmp -/** @pred findall( _T_,+ _G_,- _L_) is iso - - -Unifies _L_ with a list that contains all the instantiations of the -term _T_ satisfying the goal _G_. - -With the following program: - -~~~~~ -a(2,1). -a(1,1). -a(2,2). -~~~~~ -the answer to the query - -~~~~~ -findall(X,a(X,Y),L). -~~~~~ -would be: - -~~~~~ -X = _32 -Y = _33 -L = [2,1,2]; -no -~~~~~ - - -*/ -EOF -sed -e "1447r tmp" /Users/vsc/git/yap-6.3/pl/modules.yap > x - mv x /Users/vsc/git/yap-6.3/pl/modules.yap - -#false -cat << "EOF" > tmp -/** @pred findall( _T_,+ _G_,+ _L_,- _L0_) - -Similar to findall/3, but appends all answers to list _L0_. - - -*/ -EOF -sed -e "1447r tmp" /Users/vsc/git/yap-6.3/pl/modules.yap > x - mv x /Users/vsc/git/yap-6.3/pl/modules.yap - -#false -cat << "EOF" > tmp -/** @pred call_with_args(+ _Name_,...,? _Ai_,...) - - -Meta-call where _Name_ is the name of the procedure to be called and -the _Ai_ are the arguments. The number of arguments varies between 0 -and 10. New code should use `call/N` for better portability. - -If _Name_ is a complex term, then call_with_args/n behaves as -call/n: - -~~~~~{.prolog} -call(p(X1,...,Xm), Y1,...,Yn) :- p(X1,...,Xm,Y1,...,Yn). -~~~~~ - - -*/ -EOF -sed -e "1447r tmp" /Users/vsc/git/yap-6.3/pl/modules.yap > x - mv x /Users/vsc/git/yap-6.3/pl/modules.yap - -#false -cat << "EOF" > tmp -/** @pred bb_update(+ _Key_,? _Term_,? _New_) - - -Atomically unify a term stored in the blackboard under key _Key_ -with _Term_, and if the unification succeeds replace it by - _New_. Fail silently if no such term exists or if unification fails. - - - - - */ -EOF -sed -e "1447r tmp" /Users/vsc/git/yap-6.3/pl/modules.yap > x - mv x /Users/vsc/git/yap-6.3/pl/modules.yap - -#false -cat << "EOF" > tmp -/** @pred bb_put(+ _Key_,? _Term_) - - -Store term table _Term_ in the blackboard under key _Key_. If a -previous term was stored under key _Key_ it is simply forgotten. - - -*/ -EOF -sed -e "1447r tmp" /Users/vsc/git/yap-6.3/pl/modules.yap > x - mv x /Users/vsc/git/yap-6.3/pl/modules.yap - -#false -cat << "EOF" > tmp -/** @pred bb_get(+ _Key_,? _Term_) - - -Unify _Term_ with a term stored in the blackboard under key - _Key_, or fail silently if no such term exists. - - -*/ -EOF -sed -e "1447r tmp" /Users/vsc/git/yap-6.3/pl/modules.yap > x - mv x /Users/vsc/git/yap-6.3/pl/modules.yap - -#false -cat << "EOF" > tmp -/** @pred bb_delete(+ _Key_,? _Term_) - - -Delete any term stored in the blackboard under key _Key_ and unify -it with _Term_. Fail silently if no such term exists. - - -*/ -EOF -sed -e "1447r tmp" /Users/vsc/git/yap-6.3/pl/modules.yap > x - mv x /Users/vsc/git/yap-6.3/pl/modules.yap - -#false -cat << "EOF" > tmp -/** @pred bagof( _T_,+ _G_,- _L_) is iso - - -For each set of possible instances of the free variables occurring in - _G_ but not in _T_, generates the list _L_ of the instances of - _T_ satisfying _G_. Again, assuming the same clauses as in the -examples above, the reply to the query - -~~~~~ -bagof(X,a(X,Y),L). - -would be: -X = _32 -Y = 1 -L = [2,1]; -X = _32 -Y = 2 -L = [2]; -no -~~~~~ - - -*/ -EOF -sed -e "1447r tmp" /Users/vsc/git/yap-6.3/pl/modules.yap > x - mv x /Users/vsc/git/yap-6.3/pl/modules.yap - -#false -cat << "EOF" > tmp -/** @pred all( _T_,+ _G_,- _L_) - - -Similar to `findall( _T_, _G_, _L_)` but eliminate -repeated elements. Thus, assuming the same clauses as in the above -example, the reply to the query - -~~~~~ -all(X,a(X,Y),L). -~~~~~ -would be: - -~~~~~ -X = _32 -Y = _33 -L = [2,1]; -no -~~~~~ - -Note that all/3 will fail if no answers are found. - - -*/ -EOF -sed -e "1447r tmp" /Users/vsc/git/yap-6.3/pl/modules.yap > x - mv x /Users/vsc/git/yap-6.3/pl/modules.yap - -#false -cat << "EOF" > tmp -/** @pred current_module( _M_, _F_) - -Succeeds if _M_ are current modules associated to the file _F_. - - - - - */ -EOF -sed -e "552r tmp" /Users/vsc/git/yap-6.3/pl/modules.yap > x - mv x /Users/vsc/git/yap-6.3/pl/modules.yap - -#false -cat << "EOF" > tmp -/** @pred current_module( _M_) - - -Succeeds if _M_ are defined modules. A module is defined as soon as some -predicate defined in the module is loaded, as soon as a goal in the -module is called, or as soon as it becomes the current type-in module. - - -*/ -EOF -sed -e "536r tmp" /Users/vsc/git/yap-6.3/pl/modules.yap > x - mv x /Users/vsc/git/yap-6.3/pl/modules.yap - -#false -cat << "EOF" > tmp -/** @pred setenv(+ _Name_,+ _Value_) - - -Set environment variable. _Name_ and _Value_ should be -instantiated to atoms or integers. The environment variable will be -passed to `shell/[0-2]` and can be requested using `getenv/2`. -They also influence expand_file_name/2. - - -*/ -EOF -sed -e "215r tmp" /Users/vsc/git/yap-6.3/pl/os.yap > x - mv x /Users/vsc/git/yap-6.3/pl/os.yap - -#false -cat << "EOF" > tmp -/** @pred putenv(+ _E_,+ _S_) - - -Set environment variable _E_ to the value _S_. If the -environment variable _E_ does not exist, create a new one. Both the -environment variable and the value must be atoms. - - -*/ -EOF -sed -e "199r tmp" /Users/vsc/git/yap-6.3/pl/os.yap > x - mv x /Users/vsc/git/yap-6.3/pl/os.yap - -#false -cat << "EOF" > tmp -/** @pred unix(+ _S_) - - -Access to Unix-like functionality: - -+ argv/1 -Return a list of arguments to the program. These are the arguments that -follow a `--`, as in the usual Unix convention. -+ cd/0 -Change to home directory. -+ cd/1 -Change to given directory. Acceptable directory names are strings or -atoms. -+ environ/2 -If the first argument is an atom, unify the second argument with the -value of the corresponding environment variable. -+ getcwd/1 -Unify the first argument with an atom representing the current directory. -+ putenv/2 -Set environment variable _E_ to the value _S_. If the -environment variable _E_ does not exist, create a new one. Both the -environment variable and the value must be atoms. -+ shell/1 -Execute command under current shell. Acceptable commands are strings or -atoms. -+ system/1 -Execute command with `/bin/sh`. Acceptable commands are strings or -atoms. -+ shell/0 -Execute a new shell. - - - -*/ -EOF -sed -e "140r tmp" /Users/vsc/git/yap-6.3/pl/os.yap > x - mv x /Users/vsc/git/yap-6.3/pl/os.yap - -#false -cat << "EOF" > tmp -/** @pred pwd - - -Prints the current directory. - - -*/ -EOF -sed -e "102r tmp" /Users/vsc/git/yap-6.3/pl/os.yap > x - mv x /Users/vsc/git/yap-6.3/pl/os.yap - -#false -cat << "EOF" > tmp -/** @pred ls - - -Prints a list of all files in the current directory. - - -*/ -EOF -sed -e "70r tmp" /Users/vsc/git/yap-6.3/pl/os.yap > x - mv x /Users/vsc/git/yap-6.3/pl/os.yap - -#false -cat << "EOF" > tmp -/** @pred getcwd(- _D_) - - -Unify the current directory, represented as an atom, with the argument - _D_. - - -*/ -EOF -sed -e "61r tmp" /Users/vsc/git/yap-6.3/pl/os.yap > x - mv x /Users/vsc/git/yap-6.3/pl/os.yap - -#false -cat << "EOF" > tmp -/** @pred cd(+ _D_) - - -Changes the current directory (on UNIX environments). - - -*/ -EOF -sed -e "49r tmp" /Users/vsc/git/yap-6.3/pl/os.yap > x - mv x /Users/vsc/git/yap-6.3/pl/os.yap - -#false -cat << "EOF" > tmp -/** @pred cd - -Changes the current directory (on UNIX environments) to the user's home directory. - - -*/ -EOF -sed -e "39r tmp" /Users/vsc/git/yap-6.3/pl/os.yap > x - mv x /Users/vsc/git/yap-6.3/pl/os.yap - -#false -cat << "EOF" > tmp -/** @pred dynamic( + _P_ ) - - -Declares predicate _P_ or list of predicates [ _P1_,..., _Pn_] -as a dynamic predicate. _P_ must be written as a predicate indicator, that is in form - _Name/Arity_ or _Module:Name/Arity_. - -~~~~~ -:- dynamic god/1. -~~~~~ - - -a more convenient form can be used: - -~~~~~ -:- dynamic son/3, father/2, mother/2. -~~~~~ - -or, equivalently, - -~~~~~ -:- dynamic [son/3, father/2, mother/2]. -~~~~~ - -Note: - -a predicate is assumed to be dynamic when -asserted before being defined. - - -*/ -EOF -sed -e "72r tmp" /Users/vsc/git/yap-6.3/pl/preddecls.yap > x - mv x /Users/vsc/git/yap-6.3/pl/preddecls.yap - -#false -cat << "EOF" > tmp -/** @pred unknown(- _O_,+ _N_) - - -Specifies an handler to be called is a program tries to call an -undefined static procedure _P_. - -The arity of _N_ may be zero or one. If the arity is `0`, the -new action must be one of `fail`, `warning`, or -`error`. If the arity is `1`, _P_ is an user-defined -handler and at run-time, the argument to the handler _P_ will be -unified with the undefined goal. Note that _N_ must be defined prior -to calling unknown/2, and that the single argument to _N_ must -be unbound. - -In YAP, the default action is to `fail` (note that in the ISO -Prolog standard the default action is `error`). - -After defining `undefined/1` by: - -~~~~~{.prolog} -undefined(A) :- format('Undefined predicate: ~w~n',[A]), fail. -~~~~~ -and executing the goal: - -~~~~~{.prolog} -unknown(U,undefined(X)). -~~~~~ -a call to a predicate for which no clauses were defined will result in -the output of a message of the form: - -~~~~~{.prolog} -Undefined predicate: user:xyz(A1,A2) -~~~~~ -followed by the failure of that call. - - -*/ -EOF -sed -e "1415r tmp" /Users/vsc/git/yap-6.3/pl/preds.yap > x - mv x /Users/vsc/git/yap-6.3/pl/preds.yap - -#false -cat << "EOF" > tmp -/** @pred compile_predicates(: _ListOfNameArity_) - - - -Compile a list of specified dynamic predicates (see dynamic/1 and -assert/1 into normal static predicates. This call tells the -Prolog environment the definition will not change anymore and further -calls to assert/1 or retract/1 on the named predicates -raise a permission error. This predicate is designed to deal with parts -of the program that is generated at runtime but does not change during -the remainder of the program execution. - - - - - */ -EOF -sed -e "1310r tmp" /Users/vsc/git/yap-6.3/pl/preds.yap > x - mv x /Users/vsc/git/yap-6.3/pl/preds.yap - -#false -cat << "EOF" > tmp -/** @pred current_key(? _A_,? _K_) - - -Defines the relation: _K_ is a currently defined database key whose -name is the atom _A_. It can be used to generate all the keys for -the internal data-base. - - -*/ -EOF -sed -e "1279r tmp" /Users/vsc/git/yap-6.3/pl/preds.yap > x - mv x /Users/vsc/git/yap-6.3/pl/preds.yap - -#false -cat << "EOF" > tmp -/** @pred current_predicate( _F_) is iso - - - _F_ is the predicate indicator for a currently defined user or -library predicate. _F_ is of the form _Na/Ar_, where the atom - _Na_ is the name of the predicate, and _Ar_ its arity. - - -*/ -EOF -sed -e "1226r tmp" /Users/vsc/git/yap-6.3/pl/preds.yap > x - mv x /Users/vsc/git/yap-6.3/pl/preds.yap - -#false -cat << "EOF" > tmp -/** @pred system_predicate( _A_, _P_) - - -Defines the relation: _P_ is a built-in predicate whose name -is the atom _A_. - - -*/ -EOF -sed -e "1204r tmp" /Users/vsc/git/yap-6.3/pl/preds.yap > x - mv x /Users/vsc/git/yap-6.3/pl/preds.yap - -#false -cat << "EOF" > tmp -/** @pred current_predicate( _A_, _P_) - -Defines the relation: _P_ is a currently defined predicate whose -name is the atom _A_. - - -*/ -EOF -sed -e "1166r tmp" /Users/vsc/git/yap-6.3/pl/preds.yap > x - mv x /Users/vsc/git/yap-6.3/pl/preds.yap - -#false -cat << "EOF" > tmp -/** @pred predicate_erased_statistics( _P_, _NCls_, _Sz_, _IndexSz_) - - -Given predicate _P_, _NCls_ is the number of erased clauses for - _P_ that could not be discarded yet, _Sz_ is the amount of space -taken to store those clauses (in bytes), and _IndexSz_ is the amount -of space required to store indices to those clauses (in bytes). - - - - - */ -EOF -sed -e "1149r tmp" /Users/vsc/git/yap-6.3/pl/preds.yap > x - mv x /Users/vsc/git/yap-6.3/pl/preds.yap - -#false -cat << "EOF" > tmp -/** @pred predicate_statistics( _P_, _NCls_, _Sz_, _IndexSz_) - - -Given predicate _P_, _NCls_ is the number of clauses for - _P_, _Sz_ is the amount of space taken to store those clauses -(in bytes), and _IndexSz_ is the amount of space required to store -indices to those clauses (in bytes). - - -*/ -EOF -sed -e "1117r tmp" /Users/vsc/git/yap-6.3/pl/preds.yap > x - mv x /Users/vsc/git/yap-6.3/pl/preds.yap - -#false -cat << "EOF" > tmp -/** @pred predicate_property( _P_, _Prop_) is iso - - -For the predicates obeying the specification _P_ unify _Prop_ -with a property of _P_. These properties may be: - -+ `built_in ` -true for built-in predicates, - -+ `dynamic` -true if the predicate is dynamic - -+ `static ` -true if the predicate is static - -+ `meta_predicate( _M_) ` -true if the predicate has a meta_predicate declaration _M_. - -+ `multifile ` -true if the predicate was declared to be multifile - -+ `imported_from( _Mod_) ` -true if the predicate was imported from module _Mod_. - -+ `exported ` -true if the predicate is exported in the current module. - -+ `public` -true if the predicate is public; note that all dynamic predicates are -public. - -+ `tabled ` -true if the predicate is tabled; note that only static predicates can -be tabled in YAP. - -+ `source (predicate_property flag) ` -true if source for the predicate is available. - -+ `number_of_clauses( _ClauseCount_) ` -Number of clauses in the predicate definition. Always one if external -or built-in. - - - -*/ -EOF -sed -e "1038r tmp" /Users/vsc/git/yap-6.3/pl/preds.yap > x - mv x /Users/vsc/git/yap-6.3/pl/preds.yap - -#false -cat << "EOF" > tmp -/** @pred dynamic_predicate(+ _P_,+ _Semantics_) - - -Declares predicate _P_ or list of predicates [ _P1_,..., _Pn_] -as a dynamic predicate following either `logical` or -`immediate` semantics. - - -*/ -EOF -sed -e "917r tmp" /Users/vsc/git/yap-6.3/pl/preds.yap > x - mv x /Users/vsc/git/yap-6.3/pl/preds.yap - -#false -cat << "EOF" > tmp -/** @pred abolish(+ _PredSpec_) is iso - - -Deletes the predicate given by _PredSpec_ from the database. If - _PredSpec_ is an unbound variable, delete all predicates for the -current module. The -specification must include the name and arity, and it may include module -information. Under iso language mode this built-in will only abolish -dynamic procedures. Under other modes it will abolish any procedures. - - -*/ -EOF -sed -e "747r tmp" /Users/vsc/git/yap-6.3/pl/preds.yap > x - mv x /Users/vsc/git/yap-6.3/pl/preds.yap - -#false -cat << "EOF" > tmp -/** @pred abolish(+ _P_,+ _N_) - -Deletes the predicate with name _P_ and arity _N_. It will remove -both static and dynamic predicates. - - -*/ -EOF -sed -e "718r tmp" /Users/vsc/git/yap-6.3/pl/preds.yap > x - mv x /Users/vsc/git/yap-6.3/pl/preds.yap - -#false -cat << "EOF" > tmp -/** @pred retractall(+ _G_) is iso - - -Retract all the clauses whose head matches the goal _G_. Goal - _G_ must be a call to a dynamic predicate. - - - - - */ -EOF -sed -e "659r tmp" /Users/vsc/git/yap-6.3/pl/preds.yap > x - mv x /Users/vsc/git/yap-6.3/pl/preds.yap - -#false -cat << "EOF" > tmp -/** @pred retract(+ _C_,- _R_) - -Erases from the program the clause _C_ whose -database reference is _R_. The predicate must be dynamic. - - - - - */ -EOF -sed -e "621r tmp" /Users/vsc/git/yap-6.3/pl/preds.yap > x - mv x /Users/vsc/git/yap-6.3/pl/preds.yap - -#false -cat << "EOF" > tmp -/** @pred retract(+ _C_) is iso - - -Erases the first clause in the program that matches _C_. This -predicate may also be used for the static predicates that have been -compiled when the source mode was `on`. For more information on -source/0 ( (see Setting the Compiler)). - - -*/ -EOF -sed -e "575r tmp" /Users/vsc/git/yap-6.3/pl/preds.yap > x - mv x /Users/vsc/git/yap-6.3/pl/preds.yap - -#false -cat << "EOF" > tmp -/** @pred nth_clause(+ _H_, _I_,- _R_) - - -Find the _I_th clause in the predicate defining _H_, and give -a reference to the clause. Alternatively, if the reference _R_ is -given the head _H_ is unified with a description of the predicate -and _I_ is bound to its position. - - - -The following predicates can only be used for dynamic predicates: - - - - -*/ -EOF -sed -e "552r tmp" /Users/vsc/git/yap-6.3/pl/preds.yap > x - mv x /Users/vsc/git/yap-6.3/pl/preds.yap - -#false -cat << "EOF" > tmp -/** @pred clause(+ _H_, _B_,- _R_) - -The same as clause/2, plus _R_ is unified with the -reference to the clause in the database. You can use instance/2 -to access the reference's value. Note that you may not use -erase/1 on the reference on static procedures. - - -*/ -EOF -sed -e "471r tmp" /Users/vsc/git/yap-6.3/pl/preds.yap > x - mv x /Users/vsc/git/yap-6.3/pl/preds.yap - -#false -cat << "EOF" > tmp -/** @pred clause(+ _H_, _B_) is iso - - -A clause whose head matches _H_ is searched for in the -program. Its head and body are respectively unified with _H_ and - _B_. If the clause is a unit clause, _B_ is unified with - _true_. - -This predicate is applicable to static procedures compiled with -`source` active, and to all dynamic procedures. - - -*/ -EOF -sed -e "456r tmp" /Users/vsc/git/yap-6.3/pl/preds.yap > x - mv x /Users/vsc/git/yap-6.3/pl/preds.yap - -#false -cat << "EOF" > tmp -/** @pred assert(+ _C_,- _R_) - -The same as `assert(C)` ( (see Modifying the Database)) but -unifies _R_ with the database reference that identifies the new -clause, in a one-to-one way. Note that `asserta/2` only works for dynamic -predicates. If the predicate is undefined, it will automatically be -declared dynamic. - - -*/ -EOF -sed -e "437r tmp" /Users/vsc/git/yap-6.3/pl/preds.yap > x - mv x /Users/vsc/git/yap-6.3/pl/preds.yap - -#false -cat << "EOF" > tmp -/** @pred assertz(+ _C_,- _R_) - -The same as `assertz(C)` but unifying _R_ with -the database reference that identifies the new clause, in a -one-to-one way. Note that `asserta/2` only works for dynamic -predicates. If the predicate is undefined, it will automatically be -declared dynamic. - - -*/ -EOF -sed -e "421r tmp" /Users/vsc/git/yap-6.3/pl/preds.yap > x - mv x /Users/vsc/git/yap-6.3/pl/preds.yap - -#false -cat << "EOF" > tmp -/** @pred asserta(+ _C_,- _R_) - -The same as `asserta(C)` but unifying _R_ with -the database reference that identifies the new clause, in a -one-to-one way. Note that `asserta/2` only works for dynamic -predicates. If the predicate is undefined, it will automatically be -declared dynamic. - - -*/ -EOF -sed -e "405r tmp" /Users/vsc/git/yap-6.3/pl/preds.yap > x - mv x /Users/vsc/git/yap-6.3/pl/preds.yap - -#false -cat << "EOF" > tmp -/** @pred assertz_static(: _C_) - - -Adds clause _C_ to the end of a static procedure. Asserting a -static clause for a predicate while choice-points for the predicate are -available has undefined results. - - - -The following predicates can be used for dynamic predicates and for -static predicates, if source mode was on when they were compiled: - - - - -*/ -EOF -sed -e "299r tmp" /Users/vsc/git/yap-6.3/pl/preds.yap > x - mv x /Users/vsc/git/yap-6.3/pl/preds.yap - -#false -cat << "EOF" > tmp -/** @pred asserta_static(: _C_) - - -Adds clause _C_ to the beginning of a static procedure. - - -*/ -EOF -sed -e "275r tmp" /Users/vsc/git/yap-6.3/pl/preds.yap > x - mv x /Users/vsc/git/yap-6.3/pl/preds.yap - -#false -cat << "EOF" > tmp -/** @pred assert_static(: _C_) - - -Adds clause _C_ to a static procedure. Asserting a static clause -for a predicate while choice-points for the predicate are available has -undefined results. - - -*/ -EOF -sed -e "262r tmp" /Users/vsc/git/yap-6.3/pl/preds.yap > x - mv x /Users/vsc/git/yap-6.3/pl/preds.yap - -#false -cat << "EOF" > tmp -/** @pred assert(+ _C_) - - -Same as assertz/1. Adds clause _C_ to the program. If the predicate is undefined, -declare it as dynamic. New code should use assertz/1 for better portability. - -Most Prolog systems only allow asserting clauses for dynamic -predicates. This is also as specified in the ISO standard. YAP allows -asserting clauses for static predicates, as long as the predicate is not -in use and the language flag is cprolog. Note that this feature is -deprecated, if you want to assert clauses for static procedures you -should use assert_static/1. - - -*/ -EOF -sed -e "154r tmp" /Users/vsc/git/yap-6.3/pl/preds.yap > x - mv x /Users/vsc/git/yap-6.3/pl/preds.yap - -#false -cat << "EOF" > tmp -/** @pred assertz(+ _C_) is iso - - -Adds clause _C_ to the end of the program. If the predicate is -undefined, declare it as dynamic. - -Most Prolog systems only allow asserting clauses for dynamic -predicates. This is also as specified in the ISO standard. YAP allows -asserting clauses for static predicates. The current version of YAP -supports this feature, but this feature is deprecated and support may go -away in future versions. - - -*/ -EOF -sed -e "133r tmp" /Users/vsc/git/yap-6.3/pl/preds.yap > x - mv x /Users/vsc/git/yap-6.3/pl/preds.yap - -#false -cat << "EOF" > tmp -/** @pred asserta(+ _C_) is iso - - -Adds clause _C_ to the beginning of the program. If the predicate is -undefined, declare it as dynamic. - - -*/ -EOF -sed -e "113r tmp" /Users/vsc/git/yap-6.3/pl/preds.yap > x - mv x /Users/vsc/git/yap-6.3/pl/preds.yap - -#false -cat << "EOF" > tmp -/** @pred showprofres( _N_) - -Show profiling info for the top-most _N_ predicates. - - - -The showprofres/0 and `showprofres/1` predicates call a user-defined multifile hook predicate, `user:prolog_predicate_name/2`, that can be used for converting a possibly explicitly-qualified callable term into an atom that will used when printing the profiling information. - - - */ -EOF -sed -e "165r tmp" /Users/vsc/git/yap-6.3/pl/profile.yap > x - mv x /Users/vsc/git/yap-6.3/pl/profile.yap - -#false -cat << "EOF" > tmp -/** @pred showprofres - - -Show profiling info. - - -*/ -EOF -sed -e "152r tmp" /Users/vsc/git/yap-6.3/pl/profile.yap > x - mv x /Users/vsc/git/yap-6.3/pl/profile.yap - -#false -cat << "EOF" > tmp -/** @pred profile_data(? _Na/Ar_, ? _Parameter_, - _Data_) - - -Give current profile data on _Parameter_ for a predicate described -by the predicate indicator _Na/Ar_. If any of _Na/Ar_ or - _Parameter_ are unbound, backtrack through all profiled predicates -or stored parameters. Current parameters are: - -+ calls -Number of times a procedure was called. - -+ retries -Number of times a call to the procedure was backtracked to and retried. - - -+ profile_reset - - -Reset all profiling information. - - - - - */ -EOF -sed -e "102r tmp" /Users/vsc/git/yap-6.3/pl/profile.yap > x - mv x /Users/vsc/git/yap-6.3/pl/profile.yap - -#false -cat << "EOF" > tmp -/** @pred on_signal(+ _Signal_,? _OldAction_,+ _Callable_) - - -Set the interrupt handler for soft interrupt _Signal_ to be - _Callable_. _OldAction_ is unified with the previous handler. - -Only a subset of the software interrupts (signals) can have their -handlers manipulated through on_signal/3. -Their POSIX names, YAP names and default behavior is given below. -The "YAP name" of the signal is the atom that is associated with -each signal, and should be used as the first argument to -on_signal/3. It is chosen so that it matches the signal's POSIX -name. - -on_signal/3 succeeds, unless when called with an invalid -signal name or one that is not supported on this platform. No checks -are made on the handler provided by the user. - -+ sig_up (Hangup) -SIGHUP in Unix/Linux; Reconsult the initialization files -~/.yaprc, ~/.prologrc and ~/prolog.ini. -+ sig_usr1 and sig_usr2 (User signals) -SIGUSR1 and SIGUSR2 in Unix/Linux; Print a message and halt. - - -A special case is made, where if _Callable_ is bound to -`default`, then the default handler is restored for that signal. - -A call in the form `on_signal( _S_, _H_, _H_)` can be used -to retrieve a signal's current handler without changing it. - -It must be noted that although a signal can be received at all times, -the handler is not executed while YAP is waiting for a query at the -prompt. The signal will be, however, registered and dealt with as soon -as the user makes a query. - -Please also note, that neither POSIX Operating Systems nor YAP guarantee -that the order of delivery and handling is going to correspond with the -order of dispatch. - - - - - */ -EOF -sed -e "145r tmp" /Users/vsc/git/yap-6.3/pl/signals.yap > x - mv x /Users/vsc/git/yap-6.3/pl/signals.yap - -#true -cat << "EOF" > tmp -/** @pred alarm(+ _Seconds_,+ _Callable_,+ _OldAlarm_) - - -Arranges for YAP to be interrupted in _Seconds_ seconds, or in -[ _Seconds_| _MicroSeconds_]. When interrupted, YAP will execute - _Callable_ and then return to the previous execution. If - _Seconds_ is `0`, no new alarm is scheduled. In any event, -any previously set alarm is canceled. - -The variable _OldAlarm_ unifies with the number of seconds remaining -until any previously scheduled alarm was due to be delivered, or with -`0` if there was no previously scheduled alarm. - -Note that execution of _Callable_ will wait if YAP is -executing built-in predicates, such as Input/Output operations. - -The next example shows how _alarm/3_ can be used to implement a -simple clock: - -~~~~~ -loop :- loop. - -ticker :- write('.'), flush_output, - get_value(tick, yes), - alarm(1,ticker,_). - -:- set_value(tick, yes), alarm(1,ticker,_), loop. -~~~~~ - -The clock, `ticker`, writes a dot and then checks the flag -`tick` to see whether it can continue ticking. If so, it calls -itself again. Note that there is no guarantee that the each dot -corresponds a second: for instance, if the YAP is waiting for -user input, `ticker` will wait until the user types the entry in. - -The next example shows how alarm/3 can be used to guarantee that -a certain procedure does not take longer than a certain amount of time: - -~~~~~ -loop :- loop. - -:- catch((alarm(10, throw(ball), _),loop), - ball, - format('Quota exhausted.~n',[])). -~~~~~ -In this case after `10` seconds our `loop` is interrupted, -`ball` is thrown, and the handler writes `Quota exhausted`. -Execution then continues from the handler. - -Note that in this case `loop/0` always executes until the alarm is -sent. Often, the code you are executing succeeds or fails before the -alarm is actually delivered. In this case, you probably want to disable -the alarm when you leave the procedure. The next procedure does exactly so: - -~~~~~ -once_with_alarm(Time,Goal,DoOnAlarm) :- - catch(execute_once_with_alarm(Time, Goal), alarm, DoOnAlarm). - -execute_once_with_alarm(Time, Goal) :- - alarm(Time, alarm, _), - ( call(Goal) -> alarm(0, alarm, _) ; alarm(0, alarm, _), fail). -~~~~~ - -The procedure `once_with_alarm/3` has three arguments: -the _Time_ to wait before the alarm is -sent; the _Goal_ to execute; and the goal _DoOnAlarm_ to execute -if the alarm is sent. It uses catch/3 to handle the case the -`alarm` is sent. Then it starts the alarm, calls the goal - _Goal_, and disables the alarm on success or failure. - - -*/ -EOF -sed -e "145r tmp" /Users/vsc/git/yap-6.3/pl/signals.yap > x - mv x /Users/vsc/git/yap-6.3/pl/signals.yap - -#false -cat << "EOF" > tmp -/** @pred predsort(+ _Pred_, + _List_, - _Sorted_) - - -Sorts similar to sort/2, but determines the order of two terms by -calling _Pred_(- _Delta_, + _E1_, + _E2_) . This call must -unify _Delta_ with one of `<`, `>` or `=`. If -built-in predicate compare/3 is used, the result is the same as -sort/2. - - -*/ -EOF -sed -e "169r tmp" /Users/vsc/git/yap-6.3/pl/sort.yap > x - mv x /Users/vsc/git/yap-6.3/pl/sort.yap - -#false -cat << "EOF" > tmp -/** @pred keysort(+ _L_, _S_) is iso - - -Assuming L is a list of the form ` _Key_- _Value_`, -`keysort(+ _L_, _S_)` unifies _S_ with the list obtained -from _L_, by sorting its elements according to the value of - _Key_. - -~~~~~{.prolog} -?- keysort([3-a,1-b,2-c,1-a,1-b],S). -~~~~~ -would return: - -~~~~~{.prolog} -S = [1-b,1-a,1-b,2-c,3-a] -~~~~~ - - -*/ -EOF -sed -e "131r tmp" /Users/vsc/git/yap-6.3/pl/sort.yap > x - mv x /Users/vsc/git/yap-6.3/pl/sort.yap - -#false -cat << "EOF" > tmp -/** @pred sort(+ _L_,- _S_) is iso - - -Unifies _S_ with the list obtained by sorting _L_ and merging -identical (in the sense of `==`) elements. - - -*/ -EOF -sed -e "85r tmp" /Users/vsc/git/yap-6.3/pl/sort.yap > x - mv x /Users/vsc/git/yap-6.3/pl/sort.yap - -#false -cat << "EOF" > tmp -/** @pred length(? _L_,? _S_) - - -Unify the well-defined list _L_ with its length. The procedure can -be used to find the length of a pre-defined list, or to build a list -of length _S_. - - - - - */ -EOF -sed -e "49r tmp" /Users/vsc/git/yap-6.3/pl/sort.yap > x - mv x /Users/vsc/git/yap-6.3/pl/sort.yap - -#true -cat << "EOF" > tmp -/** @pred time(: _Goal_) - - -Prints the CPU time and the wall time for the execution of _Goal_. -Possible choice-points of _Goal_ are removed. Based on the SWI-Prolog -definition (minus reporting the number of inferences, which YAP currently -does not support). - - -*/ -EOF -sed -e "330r tmp" /Users/vsc/git/yap-6.3/pl/statistics.yap > x - mv x /Users/vsc/git/yap-6.3/pl/statistics.yap - -#true -cat << "EOF" > tmp -/** @pred key_statistics(+ _K_,- _Entries_,- _TotalSize_) - -Returns several statistics for a key _K_. Currently, it says how -many entries we have for that key, _Entries_, what is the -total size spent on this key. - - -*/ -EOF -sed -e "309r tmp" /Users/vsc/git/yap-6.3/pl/statistics.yap > x - mv x /Users/vsc/git/yap-6.3/pl/statistics.yap - -#true -cat << "EOF" > tmp -/** @pred statistics(? _Param_,- _Info_) - -Gives statistical information on the system parameter given by first -argument: - - - -+ atoms - -`[ _NumberOfAtoms_, _SpaceUsedBy Atoms_]` - - -This gives the total number of atoms `NumberOfAtoms` and how much -space they require in bytes, _SpaceUsedBy Atoms_. - -+ cputime - -`[ _Time since Boot_, _Time From Last Call to Cputime_]` - - -This gives the total cputime in milliseconds spent executing Prolog code, -garbage collection and stack shifts time included. - -+ dynamic_code - -`[ _Clause Size_, _Index Size_, _Tree Index Size_, _Choice Point Instructions Size_, _Expansion Nodes Size_, _Index Switch Size_]` - - -Size of static code in YAP in bytes: _Clause Size_, the number of -bytes allocated for clauses, plus - _Index Size_, the number of bytes spent in the indexing code. The -indexing code is divided into main tree, _Tree Index Size_, -tables that implement choice-point manipulation, _Choice xsPoint Instructions Size_, tables that cache clauses for future expansion of the index -tree, _Expansion Nodes Size_, and -tables such as hash tables that select according to value, _Index Switch Size_. - -+ garbage_collection - -`[ _Number of GCs_, _Total Global Recovered_, _Total Time Spent_]` - - -Number of garbage collections, amount of space recovered in kbytes, and -total time spent doing garbage collection in milliseconds. More detailed -information is available using `yap_flag(gc_trace,verbose)`. - -+ global_stack - -`[ _Global Stack Used_, _Execution Stack Free_]` - - -Space in kbytes currently used in the global stack, and space available for -expansion by the local and global stacks. - -+ local_stack - -`[ _Local Stack Used_, _Execution Stack Free_]` - - -Space in kbytes currently used in the local stack, and space available for -expansion by the local and global stacks. - -+ heap - -`[ _Heap Used_, _Heap Free_]` - - -Total space in kbytes not recoverable -in backtracking. It includes the program code, internal data base, and, -atom symbol table. - -+ program - -`[ _Program Space Used_, _Program Space Free_]` - - -Equivalent to heap. - -+ runtime - -`[ _Time since Boot_, _Time From Last Call to Runtime_]` - - -This gives the total cputime in milliseconds spent executing Prolog -code, not including garbage collections and stack shifts. Note that -until YAP4.1.2 the runtime statistics would return time spent on -garbage collection and stack shifting. - -+ stack_shifts - -`[ _Number of Heap Shifts_, _Number of Stack Shifts_, _Number of Trail Shifts_]` - - -Number of times YAP had to -expand the heap, the stacks, or the trail. More detailed information is -available using `yap_flag(gc_trace,verbose)`. - -+ static_code - -`[ _Clause Size_, _Index Size_, _Tree Index Size_, _Expansion Nodes Size_, _Index Switch Size_]` - - -Size of static code in YAP in bytes: _Clause Size_, the number of -bytes allocated for clauses, plus - _Index Size_, the number of bytes spent in the indexing code. The -indexing code is divided into a main tree, _Tree Index Size_, table that cache clauses for future expansion of the index -tree, _Expansion Nodes Size_, and and -tables such as hash tables that select according to value, _Index Switch Size_. - -+ trail - -`[ _Trail Used_, _Trail Free_]` - - -Space in kbytes currently being used and still available for the trail. - -+ walltime - -`[ _Time since Boot_, _Time From Last Call to Walltime_]` - - -This gives the clock time in milliseconds since starting Prolog. - - - - -*/ -EOF -sed -e "256r tmp" /Users/vsc/git/yap-6.3/pl/statistics.yap > x - mv x /Users/vsc/git/yap-6.3/pl/statistics.yap - -#true -cat << "EOF" > tmp -/** @pred statistics/0 - - -Send to the current user error stream general information on space used and time -spent by the system. - -~~~~~ -?- statistics. -memory (total) 4784124 bytes - program space 3055616 bytes: 1392224 in use, 1663392 free - 2228132 max - stack space 1531904 bytes: 464 in use, 1531440 free - global stack: 96 in use, 616684 max - local stack: 368 in use, 546208 max - trail stack 196604 bytes: 8 in use, 196596 free - - 0.010 sec. for 5 code, 2 stack, and 1 trail space overflows - 0.130 sec. for 3 garbage collections which collected 421000 bytes - 0.000 sec. for 0 atom garbage collections which collected 0 bytes - 0.880 sec. runtime - 1.020 sec. cputime - 25.055 sec. elapsed time - -~~~~~ -The example shows how much memory the system spends. Memory is divided -into Program Space, Stack Space and Trail. In the example we have 3MB -allocated for program spaces, with less than half being actually -used. YAP also shows the maximum amount of heap space having been used -which was over 2MB. - -The stack space is divided into two stacks which grow against each -other. We are in the top level so very little stack is being used. On -the other hand, the system did use a lot of global and local stack -during the previous execution (we refer the reader to a WAM tutorial in -order to understand what are the global and local stacks). - -YAP also shows information on how many memory overflows and garbage -collections the system executed, and statistics on total execution -time. Cputime includes all running time, runtime excludes garbage -collection and stack overflow time. - - -*/ -EOF -sed -e "68r tmp" /Users/vsc/git/yap-6.3/pl/statistics.yap > x - mv x /Users/vsc/git/yap-6.3/pl/statistics.yap - -#true -cat << "EOF" > tmp -/** @pred reverse(+ _List_, ? _Reversed_) - - -True when _List_ and _Reversed_ are lists with the same elements -but in opposite orders. - - -*/ -EOF -sed -e "81r tmp" /Users/vsc/git/yap-6.3/pl/swi.yap > x - mv x /Users/vsc/git/yap-6.3/pl/swi.yap - -#false -cat << "EOF" > tmp -/** @pred tabling_statistics/0 - - -Prints statistics on space used by all tables. - - - - */ -EOF -sed -e "214r tmp" /Users/vsc/git/yap-6.3/pl/tabling.yap > x - mv x /Users/vsc/git/yap-6.3/pl/tabling.yap - -#false -cat << "EOF" > tmp -/** @pred tabling_mode(+ _P_,? _Mode_) - - -Sets or reads the default tabling mode for a tabled predicate _P_ -(or a list of predicates _P1_,..., _Pn_ or -[ _P1_,..., _Pn_]). The list of _Mode_ options includes: - -+ `batched` - - Defines that, by default, batched scheduling is the scheduling -strategy to be used to evaluated calls to predicate _P_. - -+ `local` - - Defines that, by default, local scheduling is the scheduling -strategy to be used to evaluated calls to predicate _P_. - -+ `exec_answers` - - Defines that, by default, when a call to predicate _P_ is -already evaluated (completed), answers are obtained by executing -compiled WAM-like code directly from the trie data -structure. This reduces the loading time when backtracking, but -the order in which answers are obtained is undefined. - -+ `load_answers` - - Defines that, by default, when a call to predicate _P_ is -already evaluated (completed), answers are obtained (as a -consumer) by loading them from the trie data structure. This -guarantees that answers are obtained in the same order as they -were found. Somewhat less efficient but creates less choice-points. - -The default tabling mode for a new tabled predicate is `batched` -and `exec_answers`. To set the tabling mode for all predicates at -once you can use the yap_flag/2 predicate as described next. - -*/ -EOF -sed -e "165r tmp" /Users/vsc/git/yap-6.3/pl/tabling.yap > x - mv x /Users/vsc/git/yap-6.3/pl/tabling.yap - -#false -cat << "EOF" > tmp -/** @pred table_statistics(+ _P_) - - -Prints table statistics (subgoals and answers) for predicate _P_ -(or a list of predicates _P1_,..., _Pn_ or -[ _P1_,..., _Pn_]). - - -*/ -EOF -sed -e "165r tmp" /Users/vsc/git/yap-6.3/pl/tabling.yap > x - mv x /Users/vsc/git/yap-6.3/pl/tabling.yap - -#false -cat << "EOF" > tmp -/** @pred table( + _P_ ) - - -Declares predicate _P_ (or a list of predicates - _P1_,..., _Pn_ or [ _P1_,..., _Pn_]) as a tabled -predicate. _P_ must be written in the form - _name/arity_. Examples: - -~~~~~ -:- table son/3. -:- table father/2. -:- table mother/2. -~~~~~ - or - -~~~~~ -:- table son/3, father/2, mother/2. -~~~~~ - or - -~~~~~ -:- table [son/3, father/2, mother/2]. -~~~~~ - - -*/ -EOF -sed -e "165r tmp" /Users/vsc/git/yap-6.3/pl/tabling.yap > x - mv x /Users/vsc/git/yap-6.3/pl/tabling.yap - -#false -cat << "EOF" > tmp -/** @pred show_table(+ _P_) - - -Prints table contents (subgoals and answers) for predicate _P_ -(or a list of predicates _P1_,..., _Pn_ or -[ _P1_,..., _Pn_]). - - -*/ -EOF -sed -e "165r tmp" /Users/vsc/git/yap-6.3/pl/tabling.yap > x - mv x /Users/vsc/git/yap-6.3/pl/tabling.yap - -#false -cat << "EOF" > tmp -/** @pred is_tabled(+ _P_) - - -Succeeds if the predicate _P_ (or a list of predicates - _P1_,..., _Pn_ or [ _P1_,..., _Pn_]), of the form - _name/arity_, is a tabled predicate. - - -*/ -EOF -sed -e "165r tmp" /Users/vsc/git/yap-6.3/pl/tabling.yap > x - mv x /Users/vsc/git/yap-6.3/pl/tabling.yap - -#false -cat << "EOF" > tmp -/** @pred abolish_table(+ _P_) - - -Removes all the entries from the table space for predicate _P_ (or -a list of predicates _P1_,..., _Pn_ or -[ _P1_,..., _Pn_]). The predicate remains as a tabled predicate. - - -*/ -EOF -sed -e "165r tmp" /Users/vsc/git/yap-6.3/pl/tabling.yap > x - mv x /Users/vsc/git/yap-6.3/pl/tabling.yap - -#false -cat << "EOF" > tmp -/** @pred thread_statistics(+ _Id_, + _Key_, - _Value_) - - -Obtains statistical information on thread _Id_ as `statistics/2` -does in single-threaded applications. This call returns all keys -of `statistics/2`, although only information statistics about the -stacks and CPU time yield different values for each thread. - -+ mutex_statistics - - -Print usage statistics on internal mutexes and mutexes associated -with dynamic predicates. For each mutex two numbers are printed: -the number of times the mutex was acquired and the number of -collisions: the number times the calling thread has to -wait for the mutex. The collision-count is not available on -Windows as this would break portability to Windows-95/98/ME or -significantly harm performance. Generally collision count is -close to zero on single-CPU hardware. - -+ threads - - -Prints a table of current threads and their status. - - - - */ -EOF -sed -e "1479r tmp" /Users/vsc/git/yap-6.3/pl/threads.yap > x - mv x /Users/vsc/git/yap-6.3/pl/threads.yap - -#false -cat << "EOF" > tmp -/** @pred thread_property(? _Id_, ? _Property_) - - -Enumerates the properties of the specified thread. -Calling thread_property/2 does not influence any thread. See also -thread_join/2. For threads that have an alias-name, this name can -be used in _Id_ instead of the numerical thread identifier. - _Property_ is one of: - -+ status( _Status_) -The thread status of a thread (see below). - -+ alias( _Alias_) -The thread alias, if it exists. - -+ at_exit( _AtExit_) -The thread exit hook, if defined (not available if the thread is already terminated). - -+ detached( _Boolean_) -The detached state of the thread. - -+ stack( _Size_) -The thread stack data-area size. - -+ trail( _Size_) -The thread trail data-area size. - -+ system( _Size_) -The thread system data-area size. - - - -*/ -EOF -sed -e "1345r tmp" /Users/vsc/git/yap-6.3/pl/threads.yap > x - mv x /Users/vsc/git/yap-6.3/pl/threads.yap - -#false -cat << "EOF" > tmp -/** @pred thread_sleep(+ _Time_) - - -Make current thread sleep for _Time_ seconds. _Time_ may be an -integer or a floating point number. When time is zero or a negative value -the call succeeds and returns immediately. This call should not be used if -alarms are also being used. - - - - */ -EOF -sed -e "1270r tmp" /Users/vsc/git/yap-6.3/pl/threads.yap > x - mv x /Users/vsc/git/yap-6.3/pl/threads.yap - -#false -cat << "EOF" > tmp -/** @pred thread_local( _+Functor/Arity_) - - -related to the dynamic/1 directive. It tells the system that the -predicate may be modified using assert/1, retract/1, -etc, during execution of the program. Unlike normal shared dynamic -data however each thread has its own clause-list for the predicate. -As a thread starts, this clause list is empty. If there are still -clauses as the thread terminates these are automatically reclaimed by -the system. The `thread_local` property implies -the property `dynamic`. - -Thread-local dynamic predicates are intended for maintaining -thread-specific state or intermediate results of a computation. - -It is not recommended to put clauses for a thread-local predicate into -a file as in the example below as the clause is only visible from the -thread that loaded the source-file. All other threads start with an -empty clause-list. - -~~~~~ -:- thread_local - foo/1. - -foo(gnat). -~~~~~ - - - - - */ -EOF -sed -e "1234r tmp" /Users/vsc/git/yap-6.3/pl/threads.yap > x - mv x /Users/vsc/git/yap-6.3/pl/threads.yap - -#false -cat << "EOF" > tmp -/** @pred thread_peek_message(+ _Queue_, ? _Term_) - -As thread_peek_message/1, operating on a given queue. It is allowed to -peek into another thread's message queue, an operation that can be used -to check whether a thread has swallowed a message sent to it. - - - -Explicit message queues are designed with the worker-pool model -in mind, where multiple threads wait on a single queue and pick up the -first goal to execute. Below is a simple implementation where the -workers execute arbitrary Prolog goals. Note that this example provides -no means to tell when all work is done. This must be realised using -additional synchronisation. - -~~~~~ -% create_workers(+Id, +N) -% -% Create a pool with given Id and number of workers. - -create_workers(Id, N) :- - message_queue_create(Id), - forall(between(1, N, _), - thread_create(do_work(Id), _, [])). - -do_work(Id) :- - repeat, - thread_get_message(Id, Goal), - ( catch(Goal, E, print_message(error, E)) - -> true - ; print_message(error, goal_failed(Goal, worker(Id))) - ), - fail. - -% work(+Id, +Goal) -% -% Post work to be done by the pool - -work(Id, Goal) :- - thread_send_message(Id, Goal). -~~~~~ - - - */ -EOF -sed -e "1183r tmp" /Users/vsc/git/yap-6.3/pl/threads.yap > x - mv x /Users/vsc/git/yap-6.3/pl/threads.yap - -#false -cat << "EOF" > tmp -/** @pred thread_peek_message(? _Term_) - - -Examines the thread message-queue and compares the queued terms -with _Term_ until one unifies or the end of the queue has been -reached. In the first case the call succeeds (possibly instantiating - _Term_. If no term from the queue unifies this call fails. - - -*/ -EOF -sed -e "1135r tmp" /Users/vsc/git/yap-6.3/pl/threads.yap > x - mv x /Users/vsc/git/yap-6.3/pl/threads.yap - -#false -cat << "EOF" > tmp -/** @pred thread_get_message(+ _Queue_, ? _Term_) - -As thread_get_message/1, operating on a given queue. It is allowed to -peek into another thread's message queue, an operation that can be used -to check whether a thread has swallowed a message sent to it. - - -*/ -EOF -sed -e "1104r tmp" /Users/vsc/git/yap-6.3/pl/threads.yap > x - mv x /Users/vsc/git/yap-6.3/pl/threads.yap - -#false -cat << "EOF" > tmp -/** @pred thread_get_message(? _Term_) - - -Examines the thread message-queue and if necessary blocks execution -until a term that unifies to _Term_ arrives in the queue. After -a term from the queue has been unified unified to _Term_, the -term is deleted from the queue and this predicate returns. - -Please note that not-unifying messages remain in the queue. After -the following has been executed, thread 1 has the term `gnu` -in its queue and continues execution using _A_ is `gnat`. - -~~~~~ - - thread_get_message(a(A)), - - - thread_send_message(b(gnu)), - thread_send_message(a(gnat)), -~~~~~ - -See also thread_peek_message/1. - - -*/ -EOF -sed -e "1092r tmp" /Users/vsc/git/yap-6.3/pl/threads.yap > x - mv x /Users/vsc/git/yap-6.3/pl/threads.yap - -#false -cat << "EOF" > tmp -/** @pred thread_send_message(+ _QueueOrThreadId_, + _Term_) - -Place _Term_ in the given queue or default queue of the indicated -thread (which can even be the message queue of itself (see -thread_self/1). Any term can be placed in a message queue, but note that -the term is copied to the receiving thread and variable-bindings are -thus lost. This call returns immediately. - -If more than one thread is waiting for messages on the given queue and -at least one of these is waiting with a partially instantiated - _Term_, the waiting threads are all sent a wakeup signal, -starting a rush for the available messages in the queue. This behaviour -can seriously harm performance with many threads waiting on the same -queue as all-but-the-winner perform a useless scan of the queue. If -there is only one waiting thread or all waiting threads wait with an -unbound variable an arbitrary thread is restarted to scan the queue. - - - - - -*/ -EOF -sed -e "1046r tmp" /Users/vsc/git/yap-6.3/pl/threads.yap > x - mv x /Users/vsc/git/yap-6.3/pl/threads.yap - -#false -cat << "EOF" > tmp -/** @pred message_queue_destroy(+ _Queue_) - - -Destroy a message queue created with message_queue_create/1. It is -not allows to destroy the queue of a thread. Neither is it -allowed to destroy a queue other threads are waiting for or, for -anonymous message queues, may try to wait for later. - - -*/ -EOF -sed -e "948r tmp" /Users/vsc/git/yap-6.3/pl/threads.yap > x - mv x /Users/vsc/git/yap-6.3/pl/threads.yap - -#false -cat << "EOF" > tmp -/** @pred message_queue_create(? _Queue_) - - -If _Queue_ is an atom, create a named queue. To avoid ambiguity -on `thread_send_message/2`, the name of a queue may not be in use -as a thread-name. If _Queue_ is unbound an anonymous queue is -created and _Queue_ is unified to its identifier. - - -*/ -EOF -sed -e "891r tmp" /Users/vsc/git/yap-6.3/pl/threads.yap > x - mv x /Users/vsc/git/yap-6.3/pl/threads.yap - -#false -cat << "EOF" > tmp -/** @pred current_mutex(? _MutexId_, ? _ThreadId_, ? _Count_) - - -Enumerates all existing mutexes. If the mutex is held by some thread, - _ThreadId_ is unified with the identifier of the holding thread and - _Count_ with the recursive count of the mutex. Otherwise, - _ThreadId_ is `[]` and _Count_ is 0. - - - - */ -EOF -sed -e "825r tmp" /Users/vsc/git/yap-6.3/pl/threads.yap > x - mv x /Users/vsc/git/yap-6.3/pl/threads.yap - -#false -cat << "EOF" > tmp -/** @pred mutex_unlock_all - - -Unlock all mutexes held by the current thread. This call is especially -useful to handle thread-termination using abort/0 or exceptions. See -also thread_signal/2. - - -*/ -EOF -sed -e "764r tmp" /Users/vsc/git/yap-6.3/pl/threads.yap > x - mv x /Users/vsc/git/yap-6.3/pl/threads.yap - -#false -cat << "EOF" > tmp -/** @pred mutex_unlock(+ _MutexId_) - - -Unlock the mutex. This can only be called if the mutex is held by the -calling thread. If this is not the case, a `permission_error` -exception is raised. - - -*/ -EOF -sed -e "746r tmp" /Users/vsc/git/yap-6.3/pl/threads.yap > x - mv x /Users/vsc/git/yap-6.3/pl/threads.yap - -#false -cat << "EOF" > tmp -/** @pred mutex_trylock(+ _MutexId_) - - -As mutex_lock/1, but if the mutex is held by another thread, this -predicates fails immediately. - - -*/ -EOF -sed -e "724r tmp" /Users/vsc/git/yap-6.3/pl/threads.yap > x - mv x /Users/vsc/git/yap-6.3/pl/threads.yap - -#false -cat << "EOF" > tmp -/** @pred mutex_lock(+ _MutexId_) - - -Lock the mutex. Prolog mutexes are recursive mutexes: they -can be locked multiple times by the same thread. Only after unlocking -it as many times as it is locked, the mutex becomes available for -locking by other threads. If another thread has locked the mutex the -calling thread is suspended until to mutex is unlocked. - -If _MutexId_ is an atom, and there is no current mutex with that -name, the mutex is created automatically using mutex_create/1. This -implies named mutexes need not be declared explicitly. - -Please note that locking and unlocking mutexes should be paired -carefully. Especially make sure to unlock mutexes even if the protected -code fails or raises an exception. For most common cases use -with_mutex/2, which provides a safer way for handling Prolog-level -mutexes. - - -*/ -EOF -sed -e "703r tmp" /Users/vsc/git/yap-6.3/pl/threads.yap > x - mv x /Users/vsc/git/yap-6.3/pl/threads.yap - -#false -cat << "EOF" > tmp -/** @pred mutex_destroy(+ _MutexId_) - - -Destroy a mutex. After this call, _MutexId_ becomes invalid and -further references yield an `existence_error` exception. - - -*/ -EOF -sed -e "670r tmp" /Users/vsc/git/yap-6.3/pl/threads.yap > x - mv x /Users/vsc/git/yap-6.3/pl/threads.yap - -#false -cat << "EOF" > tmp -/** @pred mutex_create(? _MutexId_) - - -Create a mutex. if _MutexId_ is an atom, a named mutex is -created. If it is a variable, an anonymous mutex reference is returned. -There is no limit to the number of mutexes that can be created. - - -*/ -EOF -sed -e "602r tmp" /Users/vsc/git/yap-6.3/pl/threads.yap > x - mv x /Users/vsc/git/yap-6.3/pl/threads.yap - -#false -cat << "EOF" > tmp -/** @pred current_thread(+ _Id_, - _Status_) - - -Enumerates identifiers and status of all currently known threads. -Calling current_thread/2 does not influence any thread. See also -thread_join/2. For threads that have an alias-name, this name is -returned in _Id_ instead of the numerical thread identifier. - _Status_ is one of: - -+ running -The thread is running. This is the initial status of a thread. Please -note that threads waiting for something are considered running too. - -+ false -The _Goal_ of the thread has been completed and failed. - -+ true -The _Goal_ of the thread has been completed and succeeded. - -+ exited( _Term_) -The _Goal_ of the thread has been terminated using thread_exit/1 -with _Term_ as argument. If the underlying native thread has -exited (using pthread_exit()) _Term_ is unbound. - -+ exception( _Term_) -The _Goal_ of the thread has been terminated due to an uncaught -exception (see throw/1 and catch/3). - - - -*/ -EOF -sed -e "578r tmp" /Users/vsc/git/yap-6.3/pl/threads.yap > x - mv x /Users/vsc/git/yap-6.3/pl/threads.yap - -#false -cat << "EOF" > tmp -/** @pred thread_exit(+ _Term_) - - -Terminates the thread immediately, leaving `exited( _Term_)` as -result-state for thread_join/2. If the thread has the attribute -`detached` `true` it terminates, but its exit status cannot be -retrieved using thread_join/2 making the value of _Term_ -irrelevant. The Prolog stacks and C-thread are reclaimed. - - -*/ -EOF -sed -e "526r tmp" /Users/vsc/git/yap-6.3/pl/threads.yap > x - mv x /Users/vsc/git/yap-6.3/pl/threads.yap - -#false -cat << "EOF" > tmp -/** @pred thread_join(+ _Id_, - _Status_) - - -Wait for the termination of thread with given _Id_. Then unify the -result-status of the thread with _Status_. After this call, - _Id_ becomes invalid and all resources associated with the thread -are reclaimed. Note that threads with the attribute `detached` -`true` cannot be joined. See also current_thread/2. - -A thread that has been completed without thread_join/2 being -called on it is partly reclaimed: the Prolog stacks are released and the -C-thread is destroyed. A small data-structure representing the -exit-status of the thread is retained until thread_join/2 is called on -the thread. Defined values for _Status_ are: - -+ true -The goal has been proven successfully. - -+ false -The goal has failed. - -+ exception( _Term_) -The thread is terminated on an -exception. See print_message/2 to turn system exceptions into -readable messages. - -+ exited( _Term_) -The thread is terminated on thread_exit/1 using the argument _Term_. - - -+ thread_detach(+ _Id_) - - -Switch thread into detached-state (see `detached` option at -thread_create/3 at runtime. _Id_ is the identifier of the thread -placed in detached state. - -One of the possible applications is to simplify debugging. Threads that -are created as `detached` leave no traces if they crash. For -not-detached threads the status can be inspected using -current_thread/2. Threads nobody is waiting for may be created -normally and detach themselves just before completion. This way they -leave no traces on normal completion and their reason for failure can be -inspected. - - -*/ -EOF -sed -e "485r tmp" /Users/vsc/git/yap-6.3/pl/threads.yap > x - mv x /Users/vsc/git/yap-6.3/pl/threads.yap - -#true -cat << "EOF" > tmp -/** @pred thread_self(- _Id_) - - -Get the Prolog thread identifier of the running thread. If the thread -has an alias, the alias-name is returned. - - -*/ -EOF -sed -e "430r tmp" /Users/vsc/git/yap-6.3/pl/threads.yap > x - mv x /Users/vsc/git/yap-6.3/pl/threads.yap - -#false -cat << "EOF" > tmp -/** @pred thread_signal(+ _ThreadId_, : _Goal_) - - -Make thread _ThreadId_ execute _Goal_ at the first -opportunity. In the current implementation, this implies at the first -pass through the Call-port. The predicate thread_signal/2 -itself places _Goal_ into the signalled-thread's signal queue -and returns immediately. - -Signals (interrupts) do not cooperate well with the world of -multi-threading, mainly because the status of mutexes cannot be -guaranteed easily. At the call-port, the Prolog virtual machine -holds no locks and therefore the asynchronous execution is safe. - - _Goal_ can be any valid Prolog goal, including throw/1 to make -the receiving thread generate an exception and trace/0 to start -tracing the receiving thread. - - - - - */ -EOF -sed -e "123r tmp" /Users/vsc/git/yap-6.3/pl/threads.yap > x - mv x /Users/vsc/git/yap-6.3/pl/threads.yap - -#false -cat << "EOF" > tmp -/** @pred thread_create(: _Goal_, - _Id_) - - -Create a new Prolog thread using default options. See thread_create/3. - - -*/ -EOF -sed -e "123r tmp" /Users/vsc/git/yap-6.3/pl/threads.yap > x - mv x /Users/vsc/git/yap-6.3/pl/threads.yap - -#false -cat << "EOF" > tmp -/** @pred thread_create(: _Goal_) - - -Create a new Prolog detached thread using default options. See thread_create/3. - - -*/ -EOF -sed -e "123r tmp" /Users/vsc/git/yap-6.3/pl/threads.yap > x - mv x /Users/vsc/git/yap-6.3/pl/threads.yap - -#false -cat << "EOF" > tmp -/** @pred thread_at_exit(: _Term_) - - -Run _Goal_ just before releasing the thread resources. This is to -be compared to `at_halt/1`, but only for the current -thread. These hooks are ran regardless of why the execution of the -thread has been completed. As these hooks are run, the return-code is -already available through thread_property/2 using the result of -thread_self/1 as thread-identifier. If you want to guarantee the -execution of an exit hook no matter how the thread terminates (the thread -can be aborted before reaching the thread_at_exit/1 call), consider -using instead the `at_exit/1` option of thread_create/3. - - -*/ -EOF -sed -e "123r tmp" /Users/vsc/git/yap-6.3/pl/threads.yap > x - mv x /Users/vsc/git/yap-6.3/pl/threads.yap - -#false -cat << "EOF" > tmp -/** @pred subsumes_term(? _Subsumer_, ? _Subsumed_) - - - -Succeed if _Submuser_ subsumes _Subsuned_ but does not bind any -variable in _Subsumer_. - - -*/ -EOF -sed -e "407r tmp" /Users/vsc/git/yap-6.3/pl/utils.yap > x - mv x /Users/vsc/git/yap-6.3/pl/utils.yap - -#false -cat << "EOF" > tmp -/** @pred nb_current(? _Name_,? _Value_) - - -Enumerate all defined variables with their value. The order of -enumeration is undefined. - - -*/ -EOF -sed -e "374r tmp" /Users/vsc/git/yap-6.3/pl/utils.yap > x - mv x /Users/vsc/git/yap-6.3/pl/utils.yap - -#false -cat << "EOF" > tmp -/** @pred nb_current(? _Name_, ? _Value_) - - -Enumerate all defined variables with their value. The order of -enumeration is undefined. - - -*/ -EOF -sed -e "374r tmp" /Users/vsc/git/yap-6.3/pl/utils.yap > x - mv x /Users/vsc/git/yap-6.3/pl/utils.yap - -#false -cat << "EOF" > tmp -/** @pred nth_instance(? _Key_,? _Index_, _T_,? _R_) - -Fetches the _Index_nth entry in the internal database under the key - _Key_. Entries are numbered from one. If the key _Key_ or the - _Index_ are bound, a reference is unified with _R_. Otherwise, -the reference _R_ must be given, and YAP will find -the matching key and index. - - -*/ -EOF -sed -e "350r tmp" /Users/vsc/git/yap-6.3/pl/utils.yap > x - mv x /Users/vsc/git/yap-6.3/pl/utils.yap - -#false -cat << "EOF" > tmp -/** @pred nth_instance(? _Key_,? _Index_,? _R_) - - -Fetches the _Index_nth entry in the internal database under the key - _Key_. Entries are numbered from one. If the key _Key_ or the - _Index_ are bound, a reference is unified with _R_. Otherwise, -the reference _R_ must be given, and YAP will find -the matching key and index. - - -*/ -EOF -sed -e "333r tmp" /Users/vsc/git/yap-6.3/pl/utils.yap > x - mv x /Users/vsc/git/yap-6.3/pl/utils.yap - -#true -cat << "EOF" > tmp -/** @pred simple( _T_) - - -Checks whether _T_ is unbound, an atom, or a number. - - -*/ -EOF -sed -e "314r tmp" /Users/vsc/git/yap-6.3/pl/utils.yap > x - mv x /Users/vsc/git/yap-6.3/pl/utils.yap - -#false -cat << "EOF" > tmp -/** @pred callable( _T_) is iso - - -Checks whether _T_ is a callable term, that is, an atom or a -compound term. - - -*/ -EOF -sed -e "304r tmp" /Users/vsc/git/yap-6.3/pl/utils.yap > x - mv x /Users/vsc/git/yap-6.3/pl/utils.yap - -#false -cat << "EOF" > tmp -/** @pred recordzifnot(+ _K_, _T_,- _R_) - - -If a term equal to _T_ up to variable renaming is stored under key - _K_ fail. Otherwise, make term _T_ the first record under key - _K_ and unify _R_ with its reference. - -This predicate is YAP specific. - - -*/ -EOF -sed -e "288r tmp" /Users/vsc/git/yap-6.3/pl/utils.yap > x - mv x /Users/vsc/git/yap-6.3/pl/utils.yap - -#false -cat << "EOF" > tmp -/** @pred recordaifnot(+ _K_, _T_,- _R_) - - -If a term equal to _T_ up to variable renaming is stored under key - _K_ fail. Otherwise, make term _T_ the first record under key - _K_ and unify _R_ with its reference. - - -*/ -EOF -sed -e "269r tmp" /Users/vsc/git/yap-6.3/pl/utils.yap > x - mv x /Users/vsc/git/yap-6.3/pl/utils.yap - -#false -cat << "EOF" > tmp -/** @pred current_op( _P_, _T_, _F_) is iso - - -Defines the relation: _P_ is a currently defined operator of type - _T_ and precedence _P_. - - -*/ -EOF -sed -e "169r tmp" /Users/vsc/git/yap-6.3/pl/utils.yap > x - mv x /Users/vsc/git/yap-6.3/pl/utils.yap - -#false -cat << "EOF" > tmp -/** @pred op(+ _P_,+ _T_,+ _A_) is iso - - -Defines the operator _A_ or the list of operators _A_ with type - _T_ (which must be one of `xfx`, `xfy`,`yfx`, -`xf`, `yf`, `fx` or `fy`) and precedence _P_ -(see appendix iv for a list of predefined operators). - -Note that if there is a preexisting operator with the same name and -type, this operator will be discarded. Also, `,` may not be defined -as an operator, and it is not allowed to have the same for an infix and -a postfix operator. - - -*/ -EOF -sed -e "49r tmp" /Users/vsc/git/yap-6.3/pl/utils.yap > x - mv x /Users/vsc/git/yap-6.3/pl/utils.yap - -#false -cat << "EOF" > tmp -/** @pred stream_position_data(+ _Field_,+ _StreamPosition_,- _Info_) - - -Given the packaged stream position term _StreamPosition_, unify - _Info_ with _Field_ `line_count`, `byte_count`, or -`char_count`. - - - - - */ -EOF -sed -e "521r tmp" /Users/vsc/git/yap-6.3/pl/yio.yap > x - mv x /Users/vsc/git/yap-6.3/pl/yio.yap - -#true -cat << "EOF" > tmp -/** @pred current_stream( _F_, _M_, _S_) - - -Defines the relation: The stream _S_ is opened on the file _F_ -in mode _M_. It might be used to obtain all open streams (by -backtracking) or to access the stream for a file _F_ in mode - _M_, or to find properties for a stream _S_. Notice that some -streams might not be associated to a file: in this case YAP tries to -return the file number. If that is not available, YAP unifies _F_ -with _S_. - - -*/ -EOF -sed -e "460r tmp" /Users/vsc/git/yap-6.3/pl/yio.yap > x - mv x /Users/vsc/git/yap-6.3/pl/yio.yap - -#false -cat << "EOF" > tmp -/** @pred current_char_conversion(? _IN_,? _OUT_) is iso - - -If _IN_ is unbound give all current character -translations. Otherwise, give the translation for _IN_, if one -exists. - - -*/ -EOF -sed -e "434r tmp" /Users/vsc/git/yap-6.3/pl/yio.yap > x - mv x /Users/vsc/git/yap-6.3/pl/yio.yap - -#false -cat << "EOF" > tmp -/** @pred stream_position(+ _Stream_,- _StreamPosition_) - - -Unify _StreamPosition_ with the packaged information of position on -current stream _Stream_. Use stream_position_data/3 to -retrieve information on character or line count. - - -*/ -EOF -sed -e "406r tmp" /Users/vsc/git/yap-6.3/pl/yio.yap > x - mv x /Users/vsc/git/yap-6.3/pl/yio.yap - -#false -cat << "EOF" > tmp -/** @pred current_line_number(+ _Stream_,- _LineNumber_) - -Unify _LineNumber_ with the line number for the _Stream_. - - -*/ -EOF -sed -e "394r tmp" /Users/vsc/git/yap-6.3/pl/yio.yap > x - mv x /Users/vsc/git/yap-6.3/pl/yio.yap - -#false -cat << "EOF" > tmp -/** @pred ttynl - - -Outputs a new line to stream user_output. - - - - - */ -EOF -sed -e "382r tmp" /Users/vsc/git/yap-6.3/pl/yio.yap > x - mv x /Users/vsc/git/yap-6.3/pl/yio.yap - -#false -cat << "EOF" > tmp -/** @pred ttyput(+ _N_) - - -As `put(N)` but always to user_output. - - -*/ -EOF -sed -e "371r tmp" /Users/vsc/git/yap-6.3/pl/yio.yap > x - mv x /Users/vsc/git/yap-6.3/pl/yio.yap - -#false -cat << "EOF" > tmp -/** @pred ttyskip(- _C_) - - -Like skip/1, but always using stream user_input. -stream. - - -*/ -EOF -sed -e "362r tmp" /Users/vsc/git/yap-6.3/pl/yio.yap > x - mv x /Users/vsc/git/yap-6.3/pl/yio.yap - -#false -cat << "EOF" > tmp -/** @pred ttyget0(- _C_) - - -The same as `get0(C)`, but from stream user_input. - - -*/ -EOF -sed -e "352r tmp" /Users/vsc/git/yap-6.3/pl/yio.yap > x - mv x /Users/vsc/git/yap-6.3/pl/yio.yap - -#false -cat << "EOF" > tmp -/** @pred ttyget(- _C_) - - -The same as `get(C)`, but from stream user_input. - - -*/ -EOF -sed -e "343r tmp" /Users/vsc/git/yap-6.3/pl/yio.yap > x - mv x /Users/vsc/git/yap-6.3/pl/yio.yap - -#false -cat << "EOF" > tmp -/** @pred writeln( _T_) is iso - - -Same as write/1 followed by nl/0. - - -*/ -EOF -sed -e "323r tmp" /Users/vsc/git/yap-6.3/pl/yio.yap > x - mv x /Users/vsc/git/yap-6.3/pl/yio.yap - -#false -cat << "EOF" > tmp -/** @pred format(+ _T_) - -Print formatted output to the current output stream. - - -*/ -EOF -sed -e "313r tmp" /Users/vsc/git/yap-6.3/pl/yio.yap > x - mv x /Users/vsc/git/yap-6.3/pl/yio.yap - -#false -cat << "EOF" > tmp -/** @pred display(+ _S_, _T_) - -Like display/1, but using stream _S_ to display the term. - - -*/ -EOF -sed -e "304r tmp" /Users/vsc/git/yap-6.3/pl/yio.yap > x - mv x /Users/vsc/git/yap-6.3/pl/yio.yap - -#true -cat << "EOF" > tmp -/** @pred display(+ _T_) - - -Displays term _T_ on the current output stream. All Prolog terms are -written in standard parenthesized prefix notation. - - -*/ -EOF -sed -e "294r tmp" /Users/vsc/git/yap-6.3/pl/yio.yap > x - mv x /Users/vsc/git/yap-6.3/pl/yio.yap - -#false -cat << "EOF" > tmp -/** @pred read(+ _S_,- _T_) is iso - -Reads term _T_ from the stream _S_ instead of from the current input -stream. - - -*/ -EOF -sed -e "273r tmp" /Users/vsc/git/yap-6.3/pl/yio.yap > x - mv x /Users/vsc/git/yap-6.3/pl/yio.yap - -#false -cat << "EOF" > tmp -/** @pred read(- _T_) is iso - - -Reads the next term from the current input stream, and unifies it with - _T_. The term must be followed by a dot (`.`) and any blank-character -as previously defined. The syntax of the term must match the current -declarations for operators (see op). If the end-of-stream is reached, - _T_ is unified with the atom `end_of_file`. Further reads from of -the same stream may cause an error failure (see open/3). - -*/ -EOF -sed -e "263r tmp" /Users/vsc/git/yap-6.3/pl/yio.yap > x - mv x /Users/vsc/git/yap-6.3/pl/yio.yap - -#false -cat << "EOF" > tmp -/** @pred exists(+ _F_) - - -Checks if file _F_ exists in the current directory. - -*/ -EOF -sed -e "247r tmp" /Users/vsc/git/yap-6.3/pl/yio.yap > x - mv x /Users/vsc/git/yap-6.3/pl/yio.yap - -#false -cat << "EOF" > tmp -/** @pred nofileerrors - - -Switches off the file_errors flag, so that the predicates see/1, -tell/1, open/3 and close/1 just fail, instead of producing -an error message and aborting whenever the specified file cannot be -opened or closed. - -*/ -EOF -sed -e "239r tmp" /Users/vsc/git/yap-6.3/pl/yio.yap > x - mv x /Users/vsc/git/yap-6.3/pl/yio.yap - -#false -cat << "EOF" > tmp -/** @pred fileerrors - - -Switches on the file_errors flag so that in certain error conditions -Input/Output predicates will produce an appropriated message and abort. - - */ -EOF -sed -e "228r tmp" /Users/vsc/git/yap-6.3/pl/yio.yap > x - mv x /Users/vsc/git/yap-6.3/pl/yio.yap - -#false -cat << "EOF" > tmp -/** @pred socket_connect(+ _SOCKET_, + _PORT_, - _STREAM_) - - - -Interface to system call `connect`, used for clients: connect -socket _SOCKET_ to _PORT_. The connection results in the -read/write stream _STREAM_. - -Port information depends on the domain: - -+ 'AF_UNIX'(+ _FILENAME_) -+ 'AF_FILE'(+ _FILENAME_) -connect to socket at file _FILENAME_. - -+ 'AF_INET'(+ _HOST_,+ _PORT_) -Connect to socket at host _HOST_ and port _PORT_. - - - -*/ -EOF -sed -e "198r tmp" /Users/vsc/git/yap-6.3/pl/yio.yap > x - mv x /Users/vsc/git/yap-6.3/pl/yio.yap - -#false -cat << "EOF" > tmp -/** @pred socket(+ _DOMAIN_,+ _TYPE_,+ _PROTOCOL_,- _SOCKET_) - - -Corresponds to the BSD system call `socket`. Create a socket for -domain _DOMAIN_ of type _TYPE_ and protocol - _PROTOCOL_. Both _DOMAIN_ and _TYPE_ should be atoms, -whereas _PROTOCOL_ must be an integer. -The new socket object is -accessible through a descriptor bound to the variable _SOCKET_. - -The current implementation of YAP accepts socket -domains `AF_INET` and `AF_UNIX`. -Socket types depend on the -underlying operating system, but at least the following types are -supported: `SOCK_STREAM'` and `SOCK_DGRAM'` (untested in 6.3). - - -*/ -EOF -sed -e "168r tmp" /Users/vsc/git/yap-6.3/pl/yio.yap > x - mv x /Users/vsc/git/yap-6.3/pl/yio.yap - -#false -cat << "EOF" > tmp -/** @pred socket(+ _DOMAIN_,- _SOCKET_) - - -Call socket/4 with _TYPE_ bound to `SOCK_STREAM'` and - _PROTOCOL_ bound to `0`. - - -*/ -EOF -sed -e "140r tmp" /Users/vsc/git/yap-6.3/pl/yio.yap > x - mv x /Users/vsc/git/yap-6.3/pl/yio.yap - -#false -cat << "EOF" > tmp -/** @pred free_variables(:Generator, + _Template_, +VarList0, -VarList) is det - - -In order to handle variables properly, we have to find all the universally quantified variables in the Generator. All variables as yet unbound are universally quantified, unless - -+ they occur in the template -+ they are bound by X/\P, setof, or bagof - -`free_variables(Generator, Template, OldList, NewList)` finds this set, using OldList as an accumulator. - - -The original author of this code was Richard O'Keefe. Jan Wielemaker -made some SWI-Prolog enhancements, sponsored by SecuritEase, -http://www.securitease.com. The code is public domain (from DEC10 library). - - - */ -EOF -sed -e "31r tmp" /Users/vsc/git/yap-6.3/swi/library/aggregate.pl > x - mv x /Users/vsc/git/yap-6.3/swi/library/aggregate.pl - -#false -cat << "EOF" > tmp -/** @pred aggregate_all(+ _Template_, : _Goal_, - _Result_) is semidet - - -Aggregate bindings in _Goal_ according to _Template_. The -aggregate_all/3 version performs findall/3 on _Goal_. - -*/ -EOF -sed -e "31r tmp" /Users/vsc/git/yap-6.3/swi/library/aggregate.pl > x - mv x /Users/vsc/git/yap-6.3/swi/library/aggregate.pl - -#false -cat << "EOF" > tmp -/** @pred aggregate_all(+ _Template_, + _Discriminator_, : _Goal_, - _Result_) is semidet - -Aggregate bindings in _Goal_ according to _Template_. The -aggregate_all/3 version performs findall/3 followed by sort/2 on - _Goal_. - -*/ -EOF -sed -e "31r tmp" /Users/vsc/git/yap-6.3/swi/library/aggregate.pl > x - mv x /Users/vsc/git/yap-6.3/swi/library/aggregate.pl - -#false -cat << "EOF" > tmp -/** @pred read_stream_to_codes(+ _Stream_, - _Codes_, ? _Tail_) - -Difference-list version of read_stream_to_codes/2. - - -*/ -EOF -sed -e "31r tmp" /Users/vsc/git/yap-6.3/swi/library/readutil.pl > x - mv x /Users/vsc/git/yap-6.3/swi/library/readutil.pl - -#false -cat << "EOF" > tmp -/** @pred read_stream_to_codes(+ _Stream_, - _Codes_) - - -Read all input until end-of-file and unify the result to _Codes_. - - -*/ -EOF -sed -e "31r tmp" /Users/vsc/git/yap-6.3/swi/library/readutil.pl > x - mv x /Users/vsc/git/yap-6.3/swi/library/readutil.pl - -#false -cat << "EOF" > tmp -/** @pred read_line_to_codes(+ _Stream_, - _Codes_, ? _Tail_) - -Difference-list version to read an input line to a list of character -codes. Reading stops at the newline or end-of-file character, but -unlike read_line_to_codes/2, the newline is retained in the -output. This predicate is especially useful for reading a block of -lines upto some delimiter. The following example reads an HTTP header -ended by a blank line: - -~~~~~ -read_header_data(Stream, Header) :- - read_line_to_codes(Stream, Header, Tail), - read_header_data(Header, Stream, Tail). - -read_header_data("\r\n", _, _) :- !. -read_header_data("\n", _, _) :- !. -read_header_data("", _, _) :- !. -read_header_data(_, Stream, Tail) :- - read_line_to_codes(Stream, Tail, NewTail), - read_header_data(Tail, Stream, NewTail). -~~~~~ - - -*/ -EOF -sed -e "31r tmp" /Users/vsc/git/yap-6.3/swi/library/readutil.pl > x - mv x /Users/vsc/git/yap-6.3/swi/library/readutil.pl - -#false -cat << "EOF" > tmp -/** @pred read_line_to_codes(+ _Stream_, - _Codes_) - - - -Read the next line of input from _Stream_ and unify the result with - _Codes_ after the line has been read. A line is ended by a -newline character or end-of-file. Unlike `read_line_to_codes/3`, -this predicate removes trailing newline character. - -On end-of-file the atom `end_of_file` is returned. See also -`at_end_of_stream/[0,1]`. - - -*/ -EOF -sed -e "31r tmp" /Users/vsc/git/yap-6.3/swi/library/readutil.pl > x - mv x /Users/vsc/git/yap-6.3/swi/library/readutil.pl - -#false -cat << "EOF" > tmp -/** @pred read_file_to_terms(+ _Spec_, - _Terms_, + _Options_) - - -Read a file to a list of Prolog terms (see read/1). @c _Spec_ is a - - - - - - - - - - */ -EOF -sed -e "31r tmp" /Users/vsc/git/yap-6.3/swi/library/readutil.pl > x - mv x /Users/vsc/git/yap-6.3/swi/library/readutil.pl - -#false -cat << "EOF" > tmp -/** @pred read_file_to_codes(+ _Spec_, - _Codes_, + _Options_) - - -Read a file to a list of character codes. Currently ignores - _Options_. - - -*/ -EOF -sed -e "31r tmp" /Users/vsc/git/yap-6.3/swi/library/readutil.pl > x - mv x /Users/vsc/git/yap-6.3/swi/library/readutil.pl - -#false -cat << "EOF" > tmp -/** @pred use_foreign_library(+ _FileSpec_) is det - use_foreign_library(+ _FileSpec_, + _Entry_:atom) is det - - - -Load and install a foreign library as load_foreign_library/1 -and `load_foreign_library/2` and -register the installation using `initialization/2` with the option -now. This is similar to using: - -~~~~~ - :- initialization(load_foreign_library(foreign(mylib))). -~~~~~ - -but using the initialization/1 wrapper causes the library to -be loaded after loading of the file in which it appears is -completed, while use_foreign_library/1 loads the library -immediately. I.e. the difference is only relevant if the remainder -of the file uses functionality of the `C`-library. - - -*/ -EOF -sed -e "31r tmp" /Users/vsc/git/yap-6.3/swi/library/shlib.pl > x - mv x /Users/vsc/git/yap-6.3/swi/library/shlib.pl - -#false -cat << "EOF" > tmp -/** @pred unload_foreign_library(+ _FileSpec_, + _Exit_:atom) is det - - - - -Unload a shared -object or DLL. After calling the _Exit_ function, the shared object is -removed from the process. The default exit function is composed from -`uninstall_`, followed by the file base-name. - - -*/ -EOF -sed -e "31r tmp" /Users/vsc/git/yap-6.3/swi/library/shlib.pl > x - mv x /Users/vsc/git/yap-6.3/swi/library/shlib.pl - -#false -cat << "EOF" > tmp -/** @pred unload_foreign_library(+ _FileSpec_) is det - -*/ -EOF -sed -e "31r tmp" /Users/vsc/git/yap-6.3/swi/library/shlib.pl > x - mv x /Users/vsc/git/yap-6.3/swi/library/shlib.pl - -#false -cat << "EOF" > tmp -/** @pred load_foreign_library(: _FileSpec_, + _Entry_:atom) is det - -Load a shared object or DLL. After loading the _Entry_ function is -called without arguments. The default entry function is composed -from `install_`, followed by the file base-name. E.g., the -load-call below calls the function `install_mylib()`. If the platform -prefixes extern functions with `_`, this prefix is added before -calling. - -~~~~~ - ... - load_foreign_library(foreign(mylib)), - ... -~~~~~ - - _FileSpec_ is a specification for -absolute_file_name/3. If searching the file fails, the plain -name is passed to the OS to try the default method of the OS for -locating foreign objects. The default definition of -file_search_path/2 searches /lib/Yap. - -See also -`use_foreign_library/1,2` are intended for use in -directives. - - -*/ -EOF -sed -e "31r tmp" /Users/vsc/git/yap-6.3/swi/library/shlib.pl > x - mv x /Users/vsc/git/yap-6.3/swi/library/shlib.pl - -#false -cat << "EOF" > tmp -/** @pred load_foreign_library(: _FileSpec_) is det - - - -*/ -EOF -sed -e "31r tmp" /Users/vsc/git/yap-6.3/swi/library/shlib.pl > x - mv x /Users/vsc/git/yap-6.3/swi/library/shlib.pl - -#false -cat << "EOF" > tmp -/** @pred current_foreign_library(? _File_, ? _Public_) - - - -Query currently -loaded shared libraries. - - - - - */ -EOF -sed -e "31r tmp" /Users/vsc/git/yap-6.3/swi/library/shlib.pl > x - mv x /Users/vsc/git/yap-6.3/swi/library/shlib.pl - diff --git a/comments.yap b/comments.yap deleted file mode 100644 index 749e45e8c..000000000 --- a/comments.yap +++ /dev/null @@ -1,15434 +0,0 @@ -#false -cat << "EOF" > tmp -/** @pred wam_profiler_show_ops_by_group(+ _A_) - - -Display the current value for the counters, organized by groups, using -label _A_. The label must be an atom. - - - - - */ -EOF -sed -e "872r tmp" /Users/vsc/git/yap-6.3/C/analyst.c > x - mv x /Users/vsc/git/yap-6.3/C/analyst.c - -#false -cat << "EOF" > tmp -/** @pred wam_profiler_show_op_counters(+ _A_) - - -Display the current value for the counters, using label _A_. The -label must be an atom. - - -*/ -EOF -sed -e "863r tmp" /Users/vsc/git/yap-6.3/C/analyst.c > x - mv x /Users/vsc/git/yap-6.3/C/analyst.c - -#false -cat << "EOF" > tmp -/** @pred wam_profiler_reset_op_counters - - -Reinitialize all counters. - - -*/ -EOF -sed -e "855r tmp" /Users/vsc/git/yap-6.3/C/analyst.c > x - mv x /Users/vsc/git/yap-6.3/C/analyst.c - -#false -cat << "EOF" > tmp -/** @pred static_array_location(+ _Name_, - _Ptr_) - - -Give the location for a static array with name - _Name_. - - -*/ -EOF -sed -e "2636r tmp" /Users/vsc/git/yap-6.3/C/arrays.c > x - mv x /Users/vsc/git/yap-6.3/C/arrays.c - -#false -cat << "EOF" > tmp -/** @pred static_array_to_term(? _Name_, ? _Term_) - - -Convert a static array with name - _Name_ to a compound term of name _Name_. - -This built-in will silently fail if the there is no static array with -that name. - - -*/ -EOF -sed -e "2635r tmp" /Users/vsc/git/yap-6.3/C/arrays.c > x - mv x /Users/vsc/git/yap-6.3/C/arrays.c - -#false -cat << "EOF" > tmp -/** @pred close_static_array(+ _Name_) - - -Close an existing static array of name _Name_. The _Name_ must -be an atom (named array). Space for the array will be recovered and -further accesses to the array will return an error. - - -*/ -EOF -sed -e "2630r tmp" /Users/vsc/git/yap-6.3/C/arrays.c > x - mv x /Users/vsc/git/yap-6.3/C/arrays.c - -#false -cat << "EOF" > tmp -/** @pred reset_static_array(+ _Name_) - - -Reset static array with name _Name_ to its initial value. - - -*/ -EOF -sed -e "2629r tmp" /Users/vsc/git/yap-6.3/C/arrays.c > x - mv x /Users/vsc/git/yap-6.3/C/arrays.c - -#false -cat << "EOF" > tmp -/** @pred array_element(+ _Name_, + _Index_, ? _Element_) - - -Unify _Element_ with _Name_[ _Index_]. It works for both -static and dynamic arrays, but it is read-only for static arrays, while -it can be used to unify with an element of a dynamic array. - - -*/ -EOF -sed -e "2628r tmp" /Users/vsc/git/yap-6.3/C/arrays.c > x - mv x /Users/vsc/git/yap-6.3/C/arrays.c - -#false -cat << "EOF" > tmp -/** @pred add_to_array_element(+ _Name_, + _Index_, + _Number_, ? _NewValue_) - - -Add _Number_ _Name_[ _Index_] and unify _NewValue_ with -the incremented value. Observe that _Name_[ _Index_] must be an -number. If _Name_ is a static array the type of the array must be -`int` or `float`. If the type of the array is `int` you -only may add integers, if it is `float` you may add integers or -floats. If _Name_ corresponds to a dynamic array the array element -must have been previously bound to a number and `Number` can be -any kind of number. - -The `add_to_array_element/3` built-in actually uses -`setarg/3` to update elements of dynamic arrays. For intensive -operations we suggest it may be less expensive to unify each element -of the array with a mutable terms and to use the operations on mutable -terms. - - - - - */ -EOF -sed -e "2627r tmp" /Users/vsc/git/yap-6.3/C/arrays.c > x - mv x /Users/vsc/git/yap-6.3/C/arrays.c - -#false -cat << "EOF" > tmp -/** @pred update_array(+ _Name_, + _Index_, ? _Value_) - - -Attribute value _Value_ to _Name_[ _Index_]. Type -restrictions must be respected for static arrays. This operation is -available for dynamic arrays if `MULTI_ASSIGNMENT_VARIABLES` is -enabled (true by default). Backtracking undoes _update_array/3_ for -dynamic arrays, but not for static arrays. - -Note that update_array/3 actually uses `setarg/3` to update -elements of dynamic arrays, and `setarg/3` spends an extra cell for -every update. For intensive operations we suggest it may be less -expensive to unify each element of the array with a mutable terms and -to use the operations on mutable terms. - - -*/ -EOF -sed -e "2625r tmp" /Users/vsc/git/yap-6.3/C/arrays.c > x - mv x /Users/vsc/git/yap-6.3/C/arrays.c - -#false -cat << "EOF" > tmp -/** @pred mmapped_array(+ _Name_, + _Size_, + _Type_, + _File_) - - -Similar to static_array/3, but the array is memory mapped to file - _File_. This means that the array is initialized from the file, and -that any changes to the array will also be stored in the file. - -This built-in is only available in operating systems that support the -system call `mmap`. Moreover, mmapped arrays do not store generic -terms (type `term`). - - -*/ -EOF -sed -e "2624r tmp" /Users/vsc/git/yap-6.3/C/arrays.c > x - mv x /Users/vsc/git/yap-6.3/C/arrays.c - -#false -cat << "EOF" > tmp -/** @pred resize_static_array(+ _Name_, - _OldSize_, + _NewSize_) - - -Expand or reduce a static array, The _Size_ must evaluate to an -integer. The _Name_ must be an atom (named array). The _Type_ -must be bound to one of `int`, `dbref`, `float` or -`atom`. - -Note that if the array is a mmapped array the size of the mmapped file -will be actually adjusted to correspond to the size of the array. - - -*/ -EOF -sed -e "2623r tmp" /Users/vsc/git/yap-6.3/C/arrays.c > x - mv x /Users/vsc/git/yap-6.3/C/arrays.c - -#false -cat << "EOF" > tmp -/** @pred static_array(+ _Name_, + _Size_, + _Type_) - - -Create a new static array with name _Name_. Note that the _Name_ -must be an atom (named array). The _Size_ must evaluate to an -integer. The _Type_ must be bound to one of types mentioned -previously. - - -*/ -EOF -sed -e "2622r tmp" /Users/vsc/git/yap-6.3/C/arrays.c > x - mv x /Users/vsc/git/yap-6.3/C/arrays.c - -#false -cat << "EOF" > tmp -/** @pred atomic_concat(+ _As_,? _A_) - - -The predicate holds when the first argument is a list of atomic terms, and -the second unifies with the atom obtained by concatenating all the -atomic terms in the first list. The first argument thus may contain -atoms or numbers. - - -*/ -EOF -sed -e "2335r tmp" /Users/vsc/git/yap-6.3/C/atomic.c > x - mv x /Users/vsc/git/yap-6.3/C/atomic.c - -#false -cat << "EOF" > tmp -/** @pred atom_number(? _Atom_,? _Number_) - - -The predicate holds when at least one of the arguments is ground -(otherwise, an error message will be displayed). If the argument - _Atom_ is an atom, _Number_ must be the number corresponding -to the characters in _Atom_, otherwise the characters in - _Atom_ must encode a number _Number_. - - -*/ -EOF -sed -e "2320r tmp" /Users/vsc/git/yap-6.3/C/atomic.c > x - mv x /Users/vsc/git/yap-6.3/C/atomic.c - -#false -cat << "EOF" > tmp -/** @pred number_atom(? _I_,? _L_) - - - -The predicate holds when at least one of the arguments is ground -(otherwise, an error message will be displayed). The argument _I_ must -be unifiable with a number, and the argument _L_ must be unifiable -with an atom representing the number. - - -*/ -EOF -sed -e "2306r tmp" /Users/vsc/git/yap-6.3/C/atomic.c > x - mv x /Users/vsc/git/yap-6.3/C/atomic.c - -#false -cat << "EOF" > tmp -/** @pred number_chars(? _I_,? _L_) is iso - -The predicate holds when at least one of the arguments is ground -(otherwise, an error message will be displayed). The argument _I_ must -be unifiable with a number, and the argument _L_ with the list of the -characters of the external representation of _I_. - - -*/ -EOF -sed -e "2296r tmp" /Users/vsc/git/yap-6.3/C/atomic.c > x - mv x /Users/vsc/git/yap-6.3/C/atomic.c - -#false -cat << "EOF" > tmp -/** @pred atom_length(+ _A_,? _I_) is iso - - -The predicate holds when the first argument is an atom, and the second -unifies with the number of characters forming that atom. - - -*/ -EOF -sed -e "2284r tmp" /Users/vsc/git/yap-6.3/C/atomic.c > x - mv x /Users/vsc/git/yap-6.3/C/atomic.c - -#false -cat << "EOF" > tmp -/** @pred atom_chars(? _A_,? _L_) is iso - - -The predicate holds when at least one of the arguments is ground -(otherwise, an error message will be displayed). The argument _A_ must -be unifiable with an atom, and the argument _L_ with the list of the -characters of _A_. - - -*/ -EOF -sed -e "2270r tmp" /Users/vsc/git/yap-6.3/C/atomic.c > x - mv x /Users/vsc/git/yap-6.3/C/atomic.c - -#false -cat << "EOF" > tmp -/** @pred char_code(? _A_,? _I_) is iso - - -The built-in succeeds with _A_ bound to character represented as an -atom, and _I_ bound to the character code represented as an -integer. At least, one of either _A_ or _I_ must be bound before -the call. - - -*/ -EOF -sed -e "2259r tmp" /Users/vsc/git/yap-6.3/C/atomic.c > x - mv x /Users/vsc/git/yap-6.3/C/atomic.c - -#false -cat << "EOF" > tmp -/** @pred name( _A_, _L_) - - -The predicate holds when at least one of the arguments is ground -(otherwise, an error message will be displayed). The argument _A_ will -be unified with an atomic symbol and _L_ with the list of the ASCII -codes for the characters of the external representation of _A_. - -~~~~~{.prolog} - name(yap,L). -~~~~~ -will return: - -~~~~~{.prolog} - L = [121,97,112]. -~~~~~ -and - -~~~~~{.prolog} - name(3,L). -~~~~~ -will return: - -~~~~~{.prolog} - L = [51]. -~~~~~ - - -*/ -EOF -sed -e "2225r tmp" /Users/vsc/git/yap-6.3/C/atomic.c > x - mv x /Users/vsc/git/yap-6.3/C/atomic.c - -#false -cat << "EOF" > tmp -/** @pred sub_atom(+ _A_,? _Bef_, ? _Size_, ? _After_, ? _At_out_) is iso - - -True when _A_ and _At_out_ are atoms such that the name of - _At_out_ has size _Size_ and is a sub-string of the name of - _A_, such that _Bef_ is the number of characters before and - _After_ the number of characters afterwards. - -Note that _A_ must always be known, but _At_out_ can be unbound when -calling this built-in. If all the arguments for sub_atom/5 but _A_ -are unbound, the built-in will backtrack through all possible -sub-strings of _A_. - - - - - */ -EOF -sed -e "2199r tmp" /Users/vsc/git/yap-6.3/C/atomic.c > x - mv x /Users/vsc/git/yap-6.3/C/atomic.c - -#false -cat << "EOF" > tmp -/** @pred attvar( _-Var_) - - -Succeed if _Var_ is an attributed variable. - - - - */ -EOF -sed -e "1106r tmp" /Users/vsc/git/yap-6.3/C/attvar.c > x - mv x /Users/vsc/git/yap-6.3/C/attvar.c - -#false -cat << "EOF" > tmp -/** @pred rational( _T_) - - -Checks whether `T` is a rational number. - - -*/ -EOF -sed -e "566r tmp" /Users/vsc/git/yap-6.3/C/bignum.c > x - mv x /Users/vsc/git/yap-6.3/C/bignum.c - -#false -cat << "EOF" > tmp -/** @pred compare( _C_, _X_, _Y_) is iso - - -As a result of comparing _X_ and _Y_, _C_ may take one of -the following values: - -+ -`=` if _X_ and _Y_ are identical; -+ -`<` if _X_ precedes _Y_ in the defined order; -+ -`>` if _Y_ precedes _X_ in the defined order; - - -+ _X_ == _Y_ is iso - - -Succeeds if terms _X_ and _Y_ are strictly identical. The -difference between this predicate and =/2 is that, if one of the -arguments is a free variable, it only succeeds when they have already -been unified. - -~~~~~{.prolog} -?- X == Y. -~~~~~ -fails, but, - -~~~~~{.prolog} -?- X = Y, X == Y. -~~~~~ -succeeds. - -~~~~~{.prolog} -?- X == 2. -~~~~~ -fails, but, - -~~~~~{.prolog} -?- X = 2, X == 2. -~~~~~ -succeeds. - - -*/ -EOF -sed -e "932r tmp" /Users/vsc/git/yap-6.3/C/cmppreds.c > x - mv x /Users/vsc/git/yap-6.3/C/cmppreds.c - -#false -cat << "EOF" > tmp -/** @pred _X_ @>= _Y_ is iso - - -Term _X_ does not precede term _Y_ in the standard order. - - -*/ -EOF -sed -e "931r tmp" /Users/vsc/git/yap-6.3/C/cmppreds.c > x - mv x /Users/vsc/git/yap-6.3/C/cmppreds.c - -#false -cat << "EOF" > tmp -/** @pred _X_ @> _Y_ is iso - - -Term _X_ follows term _Y_ in the standard order. - - -*/ -EOF -sed -e "930r tmp" /Users/vsc/git/yap-6.3/C/cmppreds.c > x - mv x /Users/vsc/git/yap-6.3/C/cmppreds.c - -#false -cat << "EOF" > tmp -/** @pred _X_ @=< _Y_ is iso - - -Term _X_ does not follow term _Y_ in the standard order. - - -*/ -EOF -sed -e "929r tmp" /Users/vsc/git/yap-6.3/C/cmppreds.c > x - mv x /Users/vsc/git/yap-6.3/C/cmppreds.c - -#false -cat << "EOF" > tmp -/** @pred _X_ @< _Y_ is iso - - -Term _X_ precedes term _Y_ in the standard order. - - -*/ -EOF -sed -e "928r tmp" /Users/vsc/git/yap-6.3/C/cmppreds.c > x - mv x /Users/vsc/git/yap-6.3/C/cmppreds.c - -#false -cat << "EOF" > tmp -/** @pred _X_ \== _Y_ is iso - - -Terms _X_ and _Y_ are not strictly identical. - - -*/ -EOF -sed -e "927r tmp" /Users/vsc/git/yap-6.3/C/cmppreds.c > x - mv x /Users/vsc/git/yap-6.3/C/cmppreds.c - -#false -cat << "EOF" > tmp -/** @pred key_statistics(+ _K_,- _Entries_,- _Size_,- _IndexSize_) - - -Returns several statistics for a key _K_. Currently, it says how -many entries we have for that key, _Entries_, what is the -total size spent on entries, _Size_, and what is the amount of -space spent in indices. - - -*/ -EOF -sed -e "5684r tmp" /Users/vsc/git/yap-6.3/C/dbase.c > x - mv x /Users/vsc/git/yap-6.3/C/dbase.c - -#false -cat << "EOF" > tmp -/** @pred eraseall(+ _K_) - - -All terms belonging to the key `K` are erased from the internal -database. The predicate always succeeds. - - -*/ -EOF -sed -e "5667r tmp" /Users/vsc/git/yap-6.3/C/dbase.c > x - mv x /Users/vsc/git/yap-6.3/C/dbase.c - -#false -cat << "EOF" > tmp -/** @pred instance(+ _R_,- _T_) - - -If _R_ refers to a clause or a recorded term, _T_ is unified -with its most general instance. If _R_ refers to an unit clause - _C_, then _T_ is unified with ` _C_ :- true`. When - _R_ is not a reference to an existing clause or to a recorded term, -this goal fails. - - -*/ -EOF -sed -e "5665r tmp" /Users/vsc/git/yap-6.3/C/dbase.c > x - mv x /Users/vsc/git/yap-6.3/C/dbase.c - -#false -cat << "EOF" > tmp -/** @pred erased(+ _R_) - - -Succeeds if the object whose database reference is _R_ has been -erased. - - -*/ -EOF -sed -e "5664r tmp" /Users/vsc/git/yap-6.3/C/dbase.c > x - mv x /Users/vsc/git/yap-6.3/C/dbase.c - -#false -cat << "EOF" > tmp -/** @pred erase(+ _R_) - - -The term referred to by _R_ is erased from the internal database. If -reference _R_ does not exist in the database, `erase` just fails. - - -*/ -EOF -sed -e "5659r tmp" /Users/vsc/git/yap-6.3/C/dbase.c > x - mv x /Users/vsc/git/yap-6.3/C/dbase.c - -#false -cat << "EOF" > tmp -/** @pred recordz_at(+ _R0_, _T_,- _R_) - - -Makes term _T_ the record following record with reference - _R0_, and unifies _R_ with its reference. - - -*/ -EOF -sed -e "5654r tmp" /Users/vsc/git/yap-6.3/C/dbase.c > x - mv x /Users/vsc/git/yap-6.3/C/dbase.c - -#false -cat << "EOF" > tmp -/** @pred recorda_at(+ _R0_, _T_,- _R_) - - -Makes term _T_ the record preceding record with reference - _R0_, and unifies _R_ with its reference. - - -*/ -EOF -sed -e "5653r tmp" /Users/vsc/git/yap-6.3/C/dbase.c > x - mv x /Users/vsc/git/yap-6.3/C/dbase.c - -#false -cat << "EOF" > tmp -/** @pred recordz(+ _K_, _T_,- _R_) - - -Makes term _T_ the last record under key _K_ and unifies _R_ -with its reference. - - -*/ -EOF -sed -e "5651r tmp" /Users/vsc/git/yap-6.3/C/dbase.c > x - mv x /Users/vsc/git/yap-6.3/C/dbase.c - -#false -cat << "EOF" > tmp -/** @pred recorda(+ _K_, _T_,- _R_) - - -Makes term _T_ the first record under key _K_ and unifies _R_ -with its reference. - - -*/ -EOF -sed -e "5642r tmp" /Users/vsc/git/yap-6.3/C/dbase.c > x - mv x /Users/vsc/git/yap-6.3/C/dbase.c - -#false -cat << "EOF" > tmp -/** @pred recorded(+ _K_, _T_, _R_) - - -Searches in the internal database under the key _K_, a term that -unifies with _T_ and whose reference matches _R_. This -built-in may be used in one of two ways: - -+ _K_ may be given, in this case the built-in will return all -elements of the internal data-base that match the key. -+ _R_ may be given, if so returning the key and element that -match the reference. - - - -*/ -EOF -sed -e "5626r tmp" /Users/vsc/git/yap-6.3/C/dbase.c > x - mv x /Users/vsc/git/yap-6.3/C/dbase.c - -#false -cat << "EOF" > tmp -/** @pred between(+ _Low_,+ _High_,? _Value_) - - - - _Low_ and _High_ are integers, _High_ less or equal than - _Low_. If _Value_ is an integer, _Low_ less or equal than - _Value_ less or equal than _High_. When _Value_ is a -variable it is successively bound to all integers between _Low_ and - _High_. If _High_ is `inf`, between/3 is true iff - _Value_ less or equal than _Low_, a feature that is particularly -interesting for generating integers from a certain value. - - -*/ -EOF -sed -e "622r tmp" /Users/vsc/git/yap-6.3/C/eval.c > x - mv x /Users/vsc/git/yap-6.3/C/eval.c - -#false -cat << "EOF" > tmp -/** @pred nb_delete(? _Name_) - -Delete the named global variable. - - - - */ -EOF -sed -e "2850r tmp" /Users/vsc/git/yap-6.3/C/globals.c > x - mv x /Users/vsc/git/yap-6.3/C/globals.c - -#false -cat << "EOF" > tmp -/** @pred nb_delete(+ _Name_) - - -Delete the named global variable. - - -Global variables have been introduced by various Prolog -implementations recently. We follow the implementation of them in -SWI-Prolog, itself based on hProlog by Bart Demoen. - -GNU-Prolog provides a rich set of global variables, including -arrays. Arrays can be implemented easily in YAP and SWI-Prolog using -functor/3 and `setarg/3` due to the unrestricted arity of -compound terms. - - - */ -EOF -sed -e "2850r tmp" /Users/vsc/git/yap-6.3/C/globals.c > x - mv x /Users/vsc/git/yap-6.3/C/globals.c - -#false -cat << "EOF" > tmp -/** @pred nb_linkarg(+ _Arg_, + _Term_, + _Value_) - - - -As nb_setarg/3, but like nb_linkval/2 it does not -duplicate _Value_. Use with extreme care and consult the -documentation of nb_linkval/2 before use. - - -*/ -EOF -sed -e "2839r tmp" /Users/vsc/git/yap-6.3/C/globals.c > x - mv x /Users/vsc/git/yap-6.3/C/globals.c - -#false -cat << "EOF" > tmp -/** @pred nb_set_shared_arg(+ _Arg_, + _Term_, + _Value_) - - - -As nb_setarg/3, but like nb_linkval/2 it does not -duplicate the global sub-terms in _Value_. Use with extreme care -and consult the documentation of nb_linkval/2 before use. - - -*/ -EOF -sed -e "2828r tmp" /Users/vsc/git/yap-6.3/C/globals.c > x - mv x /Users/vsc/git/yap-6.3/C/globals.c - -#false -cat << "EOF" > tmp -/** @pred nb_setarg(+{Arg], + _Term_, + _Value_) - - - -Assigns the _Arg_-th argument of the compound term _Term_ with -the given _Value_ as setarg/3, but on backtracking the assignment -is not reversed. If _Term_ is not atomic, it is duplicated using -duplicate_term/2. This predicate uses the same technique as -nb_setval/2. We therefore refer to the description of -nb_setval/2 for details on non-backtrackable assignment of -terms. This predicate is compatible to GNU-Prolog -`setarg(A,T,V,false)`, removing the type-restriction on - _Value_. See also nb_linkarg/3. Below is an example for -counting the number of solutions of a goal. Note that this -implementation is thread-safe, reentrant and capable of handling -exceptions. Realising these features with a traditional implementation -based on assert/retract or flag/3 is much more complicated. - -~~~~~ - succeeds_n_times(Goal, Times) :- - Counter = counter(0), - ( Goal, - arg(1, Counter, N0), - N is N0 + 1, - nb_setarg(1, Counter, N), - fail - ; arg(1, Counter, Times) - ). -~~~~~ - - -*/ -EOF -sed -e "2795r tmp" /Users/vsc/git/yap-6.3/C/globals.c > x - mv x /Users/vsc/git/yap-6.3/C/globals.c - -#false -cat << "EOF" > tmp -/** @pred nb_linkval(+ _Name_, + _Value_) - - -Associates the term _Value_ with the atom _Name_ without -copying it. This is a fast special-purpose variation of nb_setval/2 -intended for expert users only because the semantics on backtracking -to a point before creating the link are poorly defined for compound -terms. The principal term is always left untouched, but backtracking -behaviour on arguments is undone if the original assignment was -trailed and left alone otherwise, which implies that the history that -created the term affects the behaviour on backtracking. Please -consider the following example: - -~~~~~ -demo_nb_linkval :- - T = nice(N), - ( N = world, - nb_linkval(myvar, T), - fail - ; nb_getval(myvar, V), - writeln(V) - ). -~~~~~ - - -*/ -EOF -sed -e "2767r tmp" /Users/vsc/git/yap-6.3/C/globals.c > x - mv x /Users/vsc/git/yap-6.3/C/globals.c - -#false -cat << "EOF" > tmp -/** @pred nb_set_shared_val(+ _Name_, + _Value_) - - -Associates the term _Value_ with the atom _Name_, but sharing -non-backtrackable terms. This may be useful if you want to rewrite a -global variable so that the new copy will survive backtracking, but -you want to share structure with the previous term. - -The next example shows the differences between the three built-ins: - -~~~~~ -?- nb_setval(a,a(_)),nb_getval(a,A),nb_setval(b,t(C,A)),nb_getval(b,B). -A = a(_A), -B = t(_B,a(_C)) ? - -?- nb_setval(a,a(_)),nb_getval(a,A),nb_set_shared_val(b,t(C,A)),nb_getval(b,B). - -?- nb_setval(a,a(_)),nb_getval(a,A),nb_linkval(b,t(C,A)),nb_getval(b,B). -A = a(_A), -B = t(C,a(_A)) ? -~~~~~ - - -*/ -EOF -sed -e "2742r tmp" /Users/vsc/git/yap-6.3/C/globals.c > x - mv x /Users/vsc/git/yap-6.3/C/globals.c - -#false -cat << "EOF" > tmp -/** @pred nb_setval(+ _Name_,+ _Value_) - - -Associates a copy of _Value_ created with duplicate_term/2 -with the atom _Name_. Note that this can be used to set an -initial value other than `[]` prior to backtrackable assignment. - - -*/ -EOF -sed -e "2723r tmp" /Users/vsc/git/yap-6.3/C/globals.c > x - mv x /Users/vsc/git/yap-6.3/C/globals.c - -#false -cat << "EOF" > tmp -/** @pred nb_setval(+ _Name_, + _Value_) - - -Associates a copy of _Value_ created with duplicate_term/2 with -the atom _Name_. Note that this can be used to set an initial -value other than `[]` prior to backtrackable assignment. - - -*/ -EOF -sed -e "2723r tmp" /Users/vsc/git/yap-6.3/C/globals.c > x - mv x /Users/vsc/git/yap-6.3/C/globals.c - -#false -cat << "EOF" > tmp -/** @pred b_setval(+ _Name_,+ _Value_) - - -Associate the term _Value_ with the atom _Name_ or replaces -the currently associated value with _Value_. If _Name_ does -not refer to an existing global variable a variable with initial value -`[]` is created (the empty list). On backtracking the -assignment is reversed. - - -*/ -EOF -sed -e "2700r tmp" /Users/vsc/git/yap-6.3/C/globals.c > x - mv x /Users/vsc/git/yap-6.3/C/globals.c - -#false -cat << "EOF" > tmp -/** @pred b_setval(+ _Name_, + _Value_) - - -Associate the term _Value_ with the atom _Name_ or replaces -the currently associated value with _Value_. If _Name_ does -not refer to an existing global variable a variable with initial value -[] is created (the empty list). On backtracking the assignment is -reversed. - - -*/ -EOF -sed -e "2700r tmp" /Users/vsc/git/yap-6.3/C/globals.c > x - mv x /Users/vsc/git/yap-6.3/C/globals.c - -#false -cat << "EOF" > tmp -/** @pred functor( _T_, _F_, _N_) is iso - - -The top functor of term _T_ is named _F_ and has arity _N_. - -When _T_ is not instantiated, _F_ and _N_ must be. If - _N_ is 0, _F_ must be an atomic symbol, which will be unified -with _T_. If _N_ is not 0, then _F_ must be an atom and - _T_ becomes instantiated to the most general term having functor - _F_ and arity _N_. If _T_ is instantiated to a term then - _F_ and _N_ are respectively unified with its top functor name -and arity. - -In the current version of YAP the arity _N_ must be an -integer. Previous versions allowed evaluable expressions, as long as the -expression would evaluate to an integer. This feature is not available -in the ISO Prolog standard. - - -*/ -EOF -sed -e "1108r tmp" /Users/vsc/git/yap-6.3/C/inlines.c > x - mv x /Users/vsc/git/yap-6.3/C/inlines.c - -#false -cat << "EOF" > tmp -/** @pred _X_ \= _Y_ is iso - - -Succeeds if terms _X_ and _Y_ are not unifiable. - - -*/ -EOF -sed -e "1105r tmp" /Users/vsc/git/yap-6.3/C/inlines.c > x - mv x /Users/vsc/git/yap-6.3/C/inlines.c - -#false -cat << "EOF" > tmp -/** @pred _X_ = _Y_ is iso - - -Tries to unify terms _X_ and _Y_. - - -*/ -EOF -sed -e "1104r tmp" /Users/vsc/git/yap-6.3/C/inlines.c > x - mv x /Users/vsc/git/yap-6.3/C/inlines.c - -#false -cat << "EOF" > tmp -/** @pred float( _T_) is iso - - -Checks whether _T_ is a floating point number. - - -*/ -EOF -sed -e "1103r tmp" /Users/vsc/git/yap-6.3/C/inlines.c > x - mv x /Users/vsc/git/yap-6.3/C/inlines.c - -#false -cat << "EOF" > tmp -/** @pred compound( _T_) is iso - - -Checks whether _T_ is a compound term. - - -*/ -EOF -sed -e "1102r tmp" /Users/vsc/git/yap-6.3/C/inlines.c > x - mv x /Users/vsc/git/yap-6.3/C/inlines.c - -#false -cat << "EOF" > tmp -/** @pred db_reference( _T_) - - -Checks whether _T_ is a database reference. - - -*/ -EOF -sed -e "1100r tmp" /Users/vsc/git/yap-6.3/C/inlines.c > x - mv x /Users/vsc/git/yap-6.3/C/inlines.c - -#false -cat << "EOF" > tmp -/** @pred var( _T_) is iso - - -Succeeds if _T_ is currently a free variable, otherwise fails. - - -*/ -EOF -sed -e "1099r tmp" /Users/vsc/git/yap-6.3/C/inlines.c > x - mv x /Users/vsc/git/yap-6.3/C/inlines.c - -#false -cat << "EOF" > tmp -/** @pred number( _T_) is iso - - -Checks whether `T` is an integer, rational or a float. - - -*/ -EOF -sed -e "1098r tmp" /Users/vsc/git/yap-6.3/C/inlines.c > x - mv x /Users/vsc/git/yap-6.3/C/inlines.c - -#false -cat << "EOF" > tmp -/** @pred nonvar( _T_) is iso - - -The opposite of `var( _T_)`. - - -*/ -EOF -sed -e "1097r tmp" /Users/vsc/git/yap-6.3/C/inlines.c > x - mv x /Users/vsc/git/yap-6.3/C/inlines.c - -#false -cat << "EOF" > tmp -/** @pred integer( _T_) is iso - - -Succeeds if and only if _T_ is currently instantiated to an integer. - - -*/ -EOF -sed -e "1096r tmp" /Users/vsc/git/yap-6.3/C/inlines.c > x - mv x /Users/vsc/git/yap-6.3/C/inlines.c - -#false -cat << "EOF" > tmp -/** @pred atomic(T) is iso - - -Checks whether _T_ is an atomic symbol (atom or number). - - -*/ -EOF -sed -e "1095r tmp" /Users/vsc/git/yap-6.3/C/inlines.c > x - mv x /Users/vsc/git/yap-6.3/C/inlines.c - -#false -cat << "EOF" > tmp -/** @pred atom( _T_) is iso - - -Succeeds if and only if _T_ is currently instantiated to an atom. - - -*/ -EOF -sed -e "1094r tmp" /Users/vsc/git/yap-6.3/C/inlines.c > x - mv x /Users/vsc/git/yap-6.3/C/inlines.c - -#false -cat << "EOF" > tmp -/** @pred stream_select(+ _STREAMS_,+ _TIMEOUT_,- _READSTREAMS_) - - -Given a list of open _STREAMS_ opened in read mode and a _TIMEOUT_ -return a list of streams who are now available for reading. - -If the _TIMEOUT_ is instantiated to `off`, -stream_select/3 will wait indefinitely for a stream to become -open. Otherwise the timeout must be of the form `SECS:USECS` where -`SECS` is an integer gives the number of seconds to wait for a timeout -and `USECS` adds the number of micro-seconds. - -This built-in is only defined if the system call `select` is -available in the system. - - -*/ -EOF -sed -e "1024r tmp" /Users/vsc/git/yap-6.3/C/iopreds.c > x - mv x /Users/vsc/git/yap-6.3/C/iopreds.c - -#false -cat << "EOF" > tmp -/** @pred char_conversion(+ _IN_,+ _OUT_) is iso - - -While reading terms convert unquoted occurrences of the character - _IN_ to the character _OUT_. Both _IN_ and _OUT_ must be -bound to single characters atoms. - -Character conversion only works if the flag `char_conversion` is -on. This is default in the `iso` and `sicstus` language -modes. As an example, character conversion can be used for instance to -convert characters from the ISO-LATIN-1 character set to ASCII. - -If _IN_ is the same character as _OUT_, char_conversion/2 -will remove this conversion from the table. - - -*/ -EOF -sed -e "1001r tmp" /Users/vsc/git/yap-6.3/C/iopreds.c > x - mv x /Users/vsc/git/yap-6.3/C/iopreds.c - -#false -cat << "EOF" > tmp -/** @pred close_shared_object(+ _Handle_) - -Detach the shared object identified by _Handle_. - - -*/ -EOF -sed -e "236r tmp" /Users/vsc/git/yap-6.3/C/load_foreign.c > x - mv x /Users/vsc/git/yap-6.3/C/load_foreign.c - -#false -cat << "EOF" > tmp -/** @pred is_mutable(? _D_) - - -Holds if _D_ is a mutable term. - - -*/ -EOF -sed -e "351r tmp" /Users/vsc/git/yap-6.3/C/mavar.c > x - mv x /Users/vsc/git/yap-6.3/C/mavar.c - -#false -cat << "EOF" > tmp -/** @pred update_mutable(+ _D_,+ _M_) - - -Set the current value of mutable term _M_ to term _D_. - - - - */ -EOF -sed -e "350r tmp" /Users/vsc/git/yap-6.3/C/mavar.c > x - mv x /Users/vsc/git/yap-6.3/C/mavar.c - -#false -cat << "EOF" > tmp -/** @pred get_mutable(? _D_,+ _M_) - - -Unify the current value of mutable term _M_ with term _D_. - - -*/ -EOF -sed -e "349r tmp" /Users/vsc/git/yap-6.3/C/mavar.c > x - mv x /Users/vsc/git/yap-6.3/C/mavar.c - -#false -cat << "EOF" > tmp -/** @pred create_mutable(+ _D_,- _M_) - - -Create new mutable variable _M_ with initial value _D_. - - -*/ -EOF -sed -e "348r tmp" /Users/vsc/git/yap-6.3/C/mavar.c > x - mv x /Users/vsc/git/yap-6.3/C/mavar.c - -#false -cat << "EOF" > tmp -/** @pred setarg(+ _I_,+ _S_,? _T_) - - -Set the value of the _I_th argument of term _S_ to term _T_. - - -*/ -EOF -sed -e "347r tmp" /Users/vsc/git/yap-6.3/C/mavar.c > x - mv x /Users/vsc/git/yap-6.3/C/mavar.c - -#false -cat << "EOF" > tmp -/** @pred abort - - -Abandons the execution of the current goal and returns to top level. All -break levels (see break/0 below) are terminated. It is mainly -used during debugging or after a serious execution error, to return to -the top-level. - - -*/ -EOF -sed -e "1997r tmp" /Users/vsc/git/yap-6.3/C/stdpreds.c > x - mv x /Users/vsc/git/yap-6.3/C/stdpreds.c - -#false -cat << "EOF" > tmp -/** @pred _T_ =.. _L_ is iso - - -The list _L_ is built with the functor and arguments of the term - _T_. If _T_ is instantiated to a variable, then _L_ must be -instantiated either to a list whose head is an atom, or to a list -consisting of just a number. - - -*/ -EOF -sed -e "1955r tmp" /Users/vsc/git/yap-6.3/C/stdpreds.c > x - mv x /Users/vsc/git/yap-6.3/C/stdpreds.c - -#false -cat << "EOF" > tmp -/** @pred get_value(+ _A_,- _V_) - - -In YAP, atoms can be associated with constants. If one such -association exists for atom _A_, unify the second argument with the -constant. Otherwise, unify _V_ with `[]`. - -This predicate is YAP specific. - - -*/ -EOF -sed -e "1939r tmp" /Users/vsc/git/yap-6.3/C/stdpreds.c > x - mv x /Users/vsc/git/yap-6.3/C/stdpreds.c - -#false -cat << "EOF" > tmp -/** @pred set_value(+ _A_,+ _C_) - - -Associate atom _A_ with constant _C_. - -The `set_value` and `get_value` built-ins give a fast alternative to -the internal data-base. This is a simple form of implementing a global -counter. - -~~~~~ - read_and_increment_counter(Value) :- - get_value(counter, Value), - Value1 is Value+1, - set_value(counter, Value1). -~~~~~ -This predicate is YAP specific. - - - - - -*/ -EOF -sed -e "1916r tmp" /Users/vsc/git/yap-6.3/C/stdpreds.c > x - mv x /Users/vsc/git/yap-6.3/C/stdpreds.c - -#false -cat << "EOF" > tmp -/** @pred rename(+ _F_,+ _G_) - - -Renames file _F_ to _G_. - - -*/ -EOF -sed -e "3095r tmp" /Users/vsc/git/yap-6.3/C/sysbits.c > x - mv x /Users/vsc/git/yap-6.3/C/sysbits.c - -#false -cat << "EOF" > tmp -/** @pred sh - - -Creates a new shell interaction. - - -*/ -EOF -sed -e "3092r tmp" /Users/vsc/git/yap-6.3/C/sysbits.c > x - mv x /Users/vsc/git/yap-6.3/C/sysbits.c - -#false -cat << "EOF" > tmp -/** @pred mutex_unlock(+ _MutexId_) - - -Unlock the mutex. This can only be called if the mutex is held by the -calling thread. If this is not the case, a `permission_error` -exception is raised. - - -*/ -EOF -sed -e "1682r tmp" /Users/vsc/git/yap-6.3/C/threads.c > x - mv x /Users/vsc/git/yap-6.3/C/threads.c - -#false -cat << "EOF" > tmp -/** @pred mutex_trylock(+ _MutexId_) - - -As mutex_lock/1, but if the mutex is held by another thread, this -predicates fails immediately. - - -*/ -EOF -sed -e "1681r tmp" /Users/vsc/git/yap-6.3/C/threads.c > x - mv x /Users/vsc/git/yap-6.3/C/threads.c - -#false -cat << "EOF" > tmp -/** @pred mutex_lock(+ _MutexId_) - - -Lock the mutex. Prolog mutexes are recursive mutexes: they -can be locked multiple times by the same thread. Only after unlocking -it as many times as it is locked, the mutex becomes available for -locking by other threads. If another thread has locked the mutex the -calling thread is suspended until to mutex is unlocked. - -If _MutexId_ is an atom, and there is no current mutex with that -name, the mutex is created automatically using mutex_create/1. This -implies named mutexes need not be declared explicitly. - -Please note that locking and unlocking mutexes should be paired -carefully. Especially make sure to unlock mutexes even if the protected -code fails or raises an exception. For most common cases use -with_mutex/2, which provides a safer way for handling Prolog-level -mutexes. - - -*/ -EOF -sed -e "1680r tmp" /Users/vsc/git/yap-6.3/C/threads.c > x - mv x /Users/vsc/git/yap-6.3/C/threads.c - -#false -cat << "EOF" > tmp -/** @pred mutex_destroy(+ _MutexId_) - - -Destroy a mutex. After this call, _MutexId_ becomes invalid and -further references yield an `existence_error` exception. - - -*/ -EOF -sed -e "1679r tmp" /Users/vsc/git/yap-6.3/C/threads.c > x - mv x /Users/vsc/git/yap-6.3/C/threads.c - -#false -cat << "EOF" > tmp -/** @pred mutex_create(? _MutexId_) - - -Create a mutex. if _MutexId_ is an atom, a named mutex is -created. If it is a variable, an anonymous mutex reference is returned. -There is no limit to the number of mutexes that can be created. - - -*/ -EOF -sed -e "1678r tmp" /Users/vsc/git/yap-6.3/C/threads.c > x - mv x /Users/vsc/git/yap-6.3/C/threads.c - -#false -cat << "EOF" > tmp -/** @pred thread_setconcurrency(+ _Old_, - _New_) - - -Determine the concurrency of the process, which is defined as the -maximum number of concurrently active threads. `Active` here means -they are using CPU time. This option is provided if the -thread-implementation provides -`pthread_setconcurrency()`. Solaris is a typical example of this -family. On other systems this predicate unifies _Old_ to 0 (zero) -and succeeds silently. - - -*/ -EOF -sed -e "1663r tmp" /Users/vsc/git/yap-6.3/C/threads.c > x - mv x /Users/vsc/git/yap-6.3/C/threads.c - -#false -cat << "EOF" > tmp -/** @pred thread_yield - - -Voluntarily relinquish the processor. - - -*/ -EOF -sed -e "1651r tmp" /Users/vsc/git/yap-6.3/C/threads.c > x - mv x /Users/vsc/git/yap-6.3/C/threads.c - -#false -cat << "EOF" > tmp -/** @pred stop_low_level_trace - - -Stop display of messages at procedure entry and retry. - - -Note that this compile-time option will slow down execution. - - - */ -EOF -sed -e "462r tmp" /Users/vsc/git/yap-6.3/C/tracer.c > x - mv x /Users/vsc/git/yap-6.3/C/tracer.c - -#false -cat << "EOF" > tmp -/** @pred start_low_level_trace - - -Begin display of messages at procedure entry and retry. - - -*/ -EOF -sed -e "451r tmp" /Users/vsc/git/yap-6.3/C/tracer.c > x - mv x /Users/vsc/git/yap-6.3/C/tracer.c - -#false -cat << "EOF" > tmp -/** @pred acyclic_term( _T_) is iso - - -Succeeds if there are loops in the term _T_, that is, it is an infinite term. - - -*/ -EOF -sed -e "1024r tmp" /Users/vsc/git/yap-6.3/C/unify.c > x - mv x /Users/vsc/git/yap-6.3/C/unify.c - -#false -cat << "EOF" > tmp -/** @pred unify_with_occurs_check(?T1,?T2) is iso - - -Obtain the most general unifier of terms _T1_ and _T2_, if there -is one. - -This predicate implements the full unification algorithm. An example:n - -~~~~~{.prolog} -unify_with_occurs_check(a(X,b,Z),a(X,A,f(B)). -~~~~~ -will succeed with the bindings `A = b` and `Z = f(B)`. On the -other hand: - -~~~~~{.prolog} -unify_with_occurs_check(a(X,b,Z),a(X,A,f(Z)). -~~~~~ -would fail, because `Z` is not unifiable with `f(Z)`. Note that -`(=)/2` would succeed for the previous examples, giving the following -bindings `A = b` and `Z = f(Z)`. - - -*/ -EOF -sed -e "1000r tmp" /Users/vsc/git/yap-6.3/C/unify.c > x - mv x /Users/vsc/git/yap-6.3/C/unify.c - -#false -cat << "EOF" > tmp -/** @pred unnumbervars( _T_,+ _NT_) - - -Replace every `$VAR( _I_)` by a free variable. - - -*/ -EOF -sed -e "5388r tmp" /Users/vsc/git/yap-6.3/C/utilpreds.c > x - mv x /Users/vsc/git/yap-6.3/C/utilpreds.c - -#false -cat << "EOF" > tmp -/** @pred numbervars( _T_,+ _N1_,- _Nn_) - - -Instantiates each variable in term _T_ to a term of the form: -`$VAR( _I_)`, with _I_ increasing from _N1_ to _Nn_. - - -*/ -EOF -sed -e "5379r tmp" /Users/vsc/git/yap-6.3/C/utilpreds.c > x - mv x /Users/vsc/git/yap-6.3/C/utilpreds.c - -#false -cat << "EOF" > tmp -/** @pred term_factorized(? _TI_,- _TF_, ?SubTerms) - - -Similar to rational_term_to_tree/4, but _SubTerms_ is a proper list. - - -*/ -EOF -sed -e "5370r tmp" /Users/vsc/git/yap-6.3/C/utilpreds.c > x - mv x /Users/vsc/git/yap-6.3/C/utilpreds.c - -#false -cat << "EOF" > tmp -/** @pred rational_term_to_tree(? _TI_,- _TF_, ?SubTerms, ?MoreSubterms) - - -The term _TF_ is a forest representation (without cycles and repeated -terms) for the Prolog term _TI_. The term _TF_ is the main term. The -difference list _SubTerms_-_MoreSubterms_ stores terms of the form -_V=T_, where _V_ is a new variable occuring in _TF_, and _T_ is a copy -of a sub-term from _TI_. - - -*/ -EOF -sed -e "5358r tmp" /Users/vsc/git/yap-6.3/C/utilpreds.c > x - mv x /Users/vsc/git/yap-6.3/C/utilpreds.c - -#false -cat << "EOF" > tmp -/** @pred term_attvars(+ _Term_,- _AttVars_) - - - _AttVars_ is a list of all attributed variables in _Term_ and -its attributes. I.e., term_attvars/2 works recursively through -attributes. This predicate is Cycle-safe. - - -*/ -EOF -sed -e "5346r tmp" /Users/vsc/git/yap-6.3/C/utilpreds.c > x - mv x /Users/vsc/git/yap-6.3/C/utilpreds.c - -#false -cat << "EOF" > tmp -/** @pred term_variables(? _Term_, - _Variables_) is iso - - - -Unify _Variables_ with the list of all variables of term - _Term_. The variables occur in the order of their first -appearance when traversing the term depth-first, left-to-right. - - -*/ -EOF -sed -e "5334r tmp" /Users/vsc/git/yap-6.3/C/utilpreds.c > x - mv x /Users/vsc/git/yap-6.3/C/utilpreds.c - -#false -cat << "EOF" > tmp -/** @pred ground( _T_) is iso - - -Succeeds if there are no free variables in the term _T_. - - -*/ -EOF -sed -e "5323r tmp" /Users/vsc/git/yap-6.3/C/utilpreds.c > x - mv x /Users/vsc/git/yap-6.3/C/utilpreds.c - -#false -cat << "EOF" > tmp -/** @pred copy_term_nat(? _TI_,- _TF_) - - -As copy_term/2. Attributes however, are not copied but replaced -by fresh variables. - - - - - */ -EOF -sed -e "5312r tmp" /Users/vsc/git/yap-6.3/C/utilpreds.c > x - mv x /Users/vsc/git/yap-6.3/C/utilpreds.c - -#false -cat << "EOF" > tmp -/** @pred duplicate_term(? _TI_,- _TF_) - - -Term _TF_ is a variant of the original term _TI_, such that -for each variable _V_ in the term _TI_ there is a new variable - _V'_ in term _TF_, and the two terms do not share any -structure. All suspended goals and attributes for attributed variables -in _TI_ are also duplicated. - -Also refer to copy_term/2. - - -*/ -EOF -sed -e "5298r tmp" /Users/vsc/git/yap-6.3/C/utilpreds.c > x - mv x /Users/vsc/git/yap-6.3/C/utilpreds.c - -#false -cat << "EOF" > tmp -/** @pred copy_term(? _TI_,- _TF_) is iso - - -Term _TF_ is a variant of the original term _TI_, such that for -each variable _V_ in the term _TI_ there is a new variable _V'_ -in term _TF_. Notice that: - -+ suspended goals and attributes for attributed variables in _TI_ are also duplicated; -+ ground terms are shared between the new and the old term. - -If you do not want any sharing to occur please use -duplicate_term/2. - - -*/ -EOF -sed -e "5282r tmp" /Users/vsc/git/yap-6.3/C/utilpreds.c > x - mv x /Users/vsc/git/yap-6.3/C/utilpreds.c - -#false -cat << "EOF" > tmp -/** @pred abolish_all_tables/0 - - -Removes all the entries from the table space for all tabled -predicates. The predicates remain as tabled predicates. - - -*/ -EOF -sed -e "210r tmp" /Users/vsc/git/yap-6.3/OPTYap/opt.preds.c > x - mv x /Users/vsc/git/yap-6.3/OPTYap/opt.preds.c - -#false -cat << "EOF" > tmp -/** @pred put_assoc(+ _Key_,+ _Assoc_,+ _Val_,+ _New_) - - -The association list _New_ includes and element of association - _key_ with _Val_, and all elements of _Assoc_ that did not -have key _Key_. - - - - - */ -EOF -sed -e "175r tmp" /Users/vsc/git/yap-6.3/library/assoc.yap > x - mv x /Users/vsc/git/yap-6.3/library/assoc.yap - -#false -cat << "EOF" > tmp -/** @pred ord_list_to_assoc(+ _List_,? _Assoc_) - - -Given an ordered list _List_ such that each element of _List_ is -of the form _Key-Val_, and all the _Keys_ are unique, _Assoc_ is -the corresponding association list. - - -*/ -EOF -sed -e "175r tmp" /Users/vsc/git/yap-6.3/library/assoc.yap > x - mv x /Users/vsc/git/yap-6.3/library/assoc.yap - -#false -cat << "EOF" > tmp -/** @pred min_assoc(+ _Assoc_,- _Key_,? _Value_) - - -Given the association list - _Assoc_, _Key_ in the smallest key in the list, and _Value_ -the associated value. - - -*/ -EOF -sed -e "175r tmp" /Users/vsc/git/yap-6.3/library/assoc.yap > x - mv x /Users/vsc/git/yap-6.3/library/assoc.yap - -#false -cat << "EOF" > tmp -/** @pred max_assoc(+ _Assoc_,- _Key_,? _Value_) - - -Given the association list - _Assoc_, _Key_ in the largest key in the list, and _Value_ -the associated value. - - -*/ -EOF -sed -e "175r tmp" /Users/vsc/git/yap-6.3/library/assoc.yap > x - mv x /Users/vsc/git/yap-6.3/library/assoc.yap - -#false -cat << "EOF" > tmp -/** @pred map_assoc(+ _Pred_,+ _Assoc_,? _New_) - -Given the binary predicate name _Pred_ and the association list - _Assoc_, _New_ in an association list with keys in _Assoc_, -and such that if _Key-Val_ is in _Assoc_, and _Key-Ans_ is in - _New_, then _Pred_( _Val_, _Ans_) holds. - - -*/ -EOF -sed -e "175r tmp" /Users/vsc/git/yap-6.3/library/assoc.yap > x - mv x /Users/vsc/git/yap-6.3/library/assoc.yap - -#false -cat << "EOF" > tmp -/** @pred map_assoc(+ _Pred_,+ _Assoc_) - - -Succeeds if the unary predicate name _Pred_( _Val_) holds for every -element in the association list. - - -*/ -EOF -sed -e "175r tmp" /Users/vsc/git/yap-6.3/library/assoc.yap > x - mv x /Users/vsc/git/yap-6.3/library/assoc.yap - -#false -cat << "EOF" > tmp -/** @pred list_to_assoc(+ _List_,? _Assoc_) - - -Given a list _List_ such that each element of _List_ is of the -form _Key-Val_, and all the _Keys_ are unique, _Assoc_ is -the corresponding association list. - - -*/ -EOF -sed -e "175r tmp" /Users/vsc/git/yap-6.3/library/assoc.yap > x - mv x /Users/vsc/git/yap-6.3/library/assoc.yap - -#false -cat << "EOF" > tmp -/** @pred is_assoc(+ _Assoc_) - - -Succeeds if _Assoc_ is an association list, that is, if it is a -red-black tree. - - -*/ -EOF -sed -e "175r tmp" /Users/vsc/git/yap-6.3/library/assoc.yap > x - mv x /Users/vsc/git/yap-6.3/library/assoc.yap - -#false -cat << "EOF" > tmp -/** @pred get_prev_assoc(+ _Key_,+ _Assoc_,? _Next_,? _Value_) - - -If _Key_ is one of the elements in the association list _Assoc_, -return the previous key, _Next_, and its value, _Value_. - - -*/ -EOF -sed -e "175r tmp" /Users/vsc/git/yap-6.3/library/assoc.yap > x - mv x /Users/vsc/git/yap-6.3/library/assoc.yap - -#false -cat << "EOF" > tmp -/** @pred get_next_assoc(+ _Key_,+ _Assoc_,? _Next_,? _Value_) - -If _Key_ is one of the elements in the association list _Assoc_, -return the next key, _Next_, and its value, _Value_. - - -*/ -EOF -sed -e "175r tmp" /Users/vsc/git/yap-6.3/library/assoc.yap > x - mv x /Users/vsc/git/yap-6.3/library/assoc.yap - -#false -cat << "EOF" > tmp -/** @pred get_assoc(+ _Key_,+ _Assoc_,? _Value_,+ _NAssoc_,? _NValue_) - - -If _Key_ is one of the elements in the association list _Assoc_, -return the associated value _Value_ and a new association list - _NAssoc_ where _Key_ is associated with _NValue_. - - -*/ -EOF -sed -e "175r tmp" /Users/vsc/git/yap-6.3/library/assoc.yap > x - mv x /Users/vsc/git/yap-6.3/library/assoc.yap - -#false -cat << "EOF" > tmp -/** @pred get_assoc(+ _Key_,+ _Assoc_,? _Value_) - - -If _Key_ is one of the elements in the association list _Assoc_, -return the associated value. - - -*/ -EOF -sed -e "175r tmp" /Users/vsc/git/yap-6.3/library/assoc.yap > x - mv x /Users/vsc/git/yap-6.3/library/assoc.yap - -#false -cat << "EOF" > tmp -/** @pred gen_assoc(+ _Assoc_,? _Key_,? _Value_) - - -Given the association list _Assoc_, unify _Key_ and _Value_ -with two associated elements. It can be used to enumerate all elements -in the association list. - - -*/ -EOF -sed -e "175r tmp" /Users/vsc/git/yap-6.3/library/assoc.yap > x - mv x /Users/vsc/git/yap-6.3/library/assoc.yap - -#false -cat << "EOF" > tmp -/** @pred empty_assoc(+ _Assoc_) - - -Succeeds if association list _Assoc_ is empty. - - -*/ -EOF -sed -e "175r tmp" /Users/vsc/git/yap-6.3/library/assoc.yap > x - mv x /Users/vsc/git/yap-6.3/library/assoc.yap - -#false -cat << "EOF" > tmp -/** @pred del_min_assoc(+ _Assoc_, ? _Key_, ? _Val_, ? _NewAssoc_) - - -Succeeds if _NewAssoc_ is an association list, obtained by removing -the smallest element of the list, with _Key_ and _Val_ -from the list _Assoc_. - - -*/ -EOF -sed -e "175r tmp" /Users/vsc/git/yap-6.3/library/assoc.yap > x - mv x /Users/vsc/git/yap-6.3/library/assoc.yap - -#false -cat << "EOF" > tmp -/** @pred del_max_assoc(+ _Assoc_, ? _Key_, ? _Val_, ? _NewAssoc_) - - -Succeeds if _NewAssoc_ is an association list, obtained by removing -the largest element of the list, with _Key_ and _Val_ from the -list _Assoc_. - - -*/ -EOF -sed -e "175r tmp" /Users/vsc/git/yap-6.3/library/assoc.yap > x - mv x /Users/vsc/git/yap-6.3/library/assoc.yap - -#false -cat << "EOF" > tmp -/** @pred del_assoc(+ _Key_, + _Assoc_, ? _Val_, ? _NewAssoc_) - - -Succeeds if _NewAssoc_ is an association list, obtained by removing -the element with _Key_ and _Val_ from the list _Assoc_. - - -*/ -EOF -sed -e "175r tmp" /Users/vsc/git/yap-6.3/library/assoc.yap > x - mv x /Users/vsc/git/yap-6.3/library/assoc.yap - -#false -cat << "EOF" > tmp -/** @pred assoc_to_list(+ _Assoc_,? _List_) - - -Given an association list _Assoc_ unify _List_ with a list of -the form _Key-Val_, where the elements _Key_ are in ascending -order. - - -*/ -EOF -sed -e "175r tmp" /Users/vsc/git/yap-6.3/library/assoc.yap > x - mv x /Users/vsc/git/yap-6.3/library/assoc.yap - -#false -cat << "EOF" > tmp -/** @pred avl_new(+ _T_) - - -Create a new tree. - - -*/ -EOF -sed -e "62r tmp" /Users/vsc/git/yap-6.3/library/avl.yap > x - mv x /Users/vsc/git/yap-6.3/library/avl.yap - -#false -cat << "EOF" > tmp -/** @pred avl_lookup(+ _Key_,- _Value_,+ _T_) - - -Lookup an element with key _Key_ in the AVL tree - _T_, returning the value _Value_. - - - - - */ -EOF -sed -e "62r tmp" /Users/vsc/git/yap-6.3/library/avl.yap > x - mv x /Users/vsc/git/yap-6.3/library/avl.yap - -#false -cat << "EOF" > tmp -/** @pred avl_insert(+ _Key_,? _Value_,+ _T0_,- _TF_) - - -Add an element with key _Key_ and _Value_ to the AVL tree - _T0_ creating a new AVL tree _TF_. Duplicated elements are -allowed. - - -*/ -EOF -sed -e "62r tmp" /Users/vsc/git/yap-6.3/library/avl.yap > x - mv x /Users/vsc/git/yap-6.3/library/avl.yap - -#true -cat << "EOF" > tmp -/** @pred process(+ _StreamInp_, + _Goal_) - - - -For every line _LineIn_ in stream _StreamInp_, call -`call(Goal,LineIn)`. - - -*/ -EOF -sed -e "395r tmp" /Users/vsc/git/yap-6.3/library/block_diagram.yap > x - mv x /Users/vsc/git/yap-6.3/library/block_diagram.yap - -#false -cat << "EOF" > tmp -/** @pred make_diagram(+inputfilename, +ouputfilename, +predicate, +depth, +extension) - - -The same as make_diagram/2 but you can define how many of the imported/exporeted predicates will be shown with predicate, and how deep the crawler is allowed to go with depth. The extension is used if the file use module directives do not include a file extension. - - - -*/ -EOF -sed -e "214r tmp" /Users/vsc/git/yap-6.3/library/block_diagram.yap > x - mv x /Users/vsc/git/yap-6.3/library/block_diagram.yap - -#false -cat << "EOF" > tmp -/** @pred make_diagram(+inputfilename, +ouputfilename) - - - -This will crawl the files following the use_module, ensure_loaded directives withing the inputfilename. -The result will be a file in dot format. -You can make a pdf at the shell by asking `dot -Tpdf filename > output.pdf`. - - -*/ -EOF -sed -e "214r tmp" /Users/vsc/git/yap-6.3/library/block_diagram.yap > x - mv x /Users/vsc/git/yap-6.3/library/block_diagram.yap - -#true -cat << "EOF" > tmp -/** @pred write_to_chars(+ _Term_, - _Result_) - - - -Execute the built-in procedure write/1 with argument _Term_ -outputting the result to the string of character codes _Result_. - - -*/ -EOF -sed -e "17r tmp" /Users/vsc/git/yap-6.3/library/charsio.yap > x - mv x /Users/vsc/git/yap-6.3/library/charsio.yap - -#false -cat << "EOF" > tmp -/** @pred write_to_chars(+ _Term_, - _Result0_, - _Result_) - - -Execute the built-in procedure write/1 with argument _Term_ -outputting the result to the difference list of character codes - _Result-Result0_. - - -*/ -EOF -sed -e "17r tmp" /Users/vsc/git/yap-6.3/library/charsio.yap > x - mv x /Users/vsc/git/yap-6.3/library/charsio.yap - -#false -cat << "EOF" > tmp -/** @pred with_output_to_chars(? _Goal_, ? _Chars0_, - _Chars_) - - -Execute goal _Goal_ such that its standard output will be sent to a -memory buffer. After successful execution the contents of the memory -buffer will be converted to the difference list of character codes - _Chars-Chars0_. - - -*/ -EOF -sed -e "17r tmp" /Users/vsc/git/yap-6.3/library/charsio.yap > x - mv x /Users/vsc/git/yap-6.3/library/charsio.yap - -#false -cat << "EOF" > tmp -/** @pred with_output_to_chars(? _Goal_, - _Stream_, ? _Chars0_, - _Chars_) - - -Execute goal _Goal_ such that its standard output will be sent to a -memory buffer. After successful execution the contents of the memory -buffer will be converted to the difference list of character codes - _Chars-Chars0_ and _Stream_ receives the stream corresponding to -the memory buffer. - - */ -EOF -sed -e "17r tmp" /Users/vsc/git/yap-6.3/library/charsio.yap > x - mv x /Users/vsc/git/yap-6.3/library/charsio.yap - -#false -cat << "EOF" > tmp -/** @pred with_output_to_chars(? _Goal_, - _Chars_) - - - -Execute goal _Goal_ such that its standard output will be sent to a -memory buffer. After successful execution the contents of the memory -buffer will be converted to the list of character codes _Chars_. - - -*/ -EOF -sed -e "17r tmp" /Users/vsc/git/yap-6.3/library/charsio.yap > x - mv x /Users/vsc/git/yap-6.3/library/charsio.yap - -#true -cat << "EOF" > tmp -/** @pred term_to_atom(? _Term_,? _Atom_) - - -Succeeds if _Atom_ describes a term that unifies with _Term_. When - _Atom_ is instantiated _Atom_ is converted and then unified with - _Term_. If _Atom_ has no valid syntax, a `syntax_error` -exception is raised. Otherwise _Term_ is `written` on _Atom_ -using write/1. - - -*/ -EOF -sed -e "17r tmp" /Users/vsc/git/yap-6.3/library/charsio.yap > x - mv x /Users/vsc/git/yap-6.3/library/charsio.yap - -#true -cat << "EOF" > tmp -/** @pred term_to_atom(? _Term_, ? _Atom_) - - -True if _Atom_ describes a term that unifies with _Term_. When - _Atom_ is instantiated _Atom_ is converted and then unified with - _Term_. If _Atom_ has no valid syntax, a syntax_error exception -is raised. Otherwise _Term_ is `written` on _Atom_ using -write_term/2 with the option quoted(true). - - -*/ -EOF -sed -e "17r tmp" /Users/vsc/git/yap-6.3/library/charsio.yap > x - mv x /Users/vsc/git/yap-6.3/library/charsio.yap - -#true -cat << "EOF" > tmp -/** @pred read_from_chars(+ _Chars_, - _Term_) - - - -Parse the list of character codes _Chars_ and return the result in -the term _Term_. The character codes to be read must terminate with -a dot character such that either (i) the dot character is followed by -blank characters; or (ii) the dot character is the last character in the -string. - - -*/ -EOF -sed -e "17r tmp" /Users/vsc/git/yap-6.3/library/charsio.yap > x - mv x /Users/vsc/git/yap-6.3/library/charsio.yap - -#false -cat << "EOF" > tmp -/** @pred open_chars_stream(+ _Chars_, - _Stream_) - - - -Open the list of character codes _Chars_ as a stream _Stream_. - - -*/ -EOF -sed -e "17r tmp" /Users/vsc/git/yap-6.3/library/charsio.yap > x - mv x /Users/vsc/git/yap-6.3/library/charsio.yap - -#false -cat << "EOF" > tmp -/** @pred number_to_chars(+ _Number_, - _Result_) - - - -Convert the number _Number_ to the string of character codes - _Result_. - - -*/ -EOF -sed -e "17r tmp" /Users/vsc/git/yap-6.3/library/charsio.yap > x - mv x /Users/vsc/git/yap-6.3/library/charsio.yap - -#false -cat << "EOF" > tmp -/** @pred number_to_chars(+ _Number_, - _Result0_, - _Result_) - - -Convert the atom _Number_ to the difference list of character codes - _Result-Result0_. - - -*/ -EOF -sed -e "17r tmp" /Users/vsc/git/yap-6.3/library/charsio.yap > x - mv x /Users/vsc/git/yap-6.3/library/charsio.yap - -#false -cat << "EOF" > tmp -/** @pred format_to_chars(+ _Form_, + _Args_, - _Result_, - _Result0_) - - -Execute the built-in procedure format/2 with form _Form_ and -arguments _Args_ outputting the result to the difference list of -character codes _Result-Result0_. - - -*/ -EOF -sed -e "17r tmp" /Users/vsc/git/yap-6.3/library/charsio.yap > x - mv x /Users/vsc/git/yap-6.3/library/charsio.yap - -#false -cat << "EOF" > tmp -/** @pred format_to_chars(+ _Form_, + _Args_, - _Result_) - - - -Execute the built-in procedure format/2 with form _Form_ and -arguments _Args_ outputting the result to the string of character -codes _Result_. - - -*/ -EOF -sed -e "17r tmp" /Users/vsc/git/yap-6.3/library/charsio.yap > x - mv x /Users/vsc/git/yap-6.3/library/charsio.yap - -#false -cat << "EOF" > tmp -/** @pred atom_to_chars(+ _Atom_, - _Result_) - - - -Convert the atom _Atom_ to the string of character codes - _Result_. - - -*/ -EOF -sed -e "17r tmp" /Users/vsc/git/yap-6.3/library/charsio.yap > x - mv x /Users/vsc/git/yap-6.3/library/charsio.yap - -#false -cat << "EOF" > tmp -/** @pred atom_to_chars(+ _Atom_, - _Result0_, - _Result_) - - -Convert the atom _Atom_ to the difference list of character codes - _Result-Result0_. - - -*/ -EOF -sed -e "17r tmp" /Users/vsc/git/yap-6.3/library/charsio.yap > x - mv x /Users/vsc/git/yap-6.3/library/charsio.yap - -#false -cat << "EOF" > tmp -/** @pred on_cleanup(+ _CleanUpGoal_) - - -Any Predicate might registers a _CleanUpGoal_. The - _CleanUpGoal_ is put onto the current cleanup context. All such -CleanUpGoals are executed in reverse order of their registration when -the surrounding cleanup-context ends. This call will throw an exception -if a predicate tries to register a _CleanUpGoal_ outside of any -cleanup-context. - - -*/ -EOF -sed -e "2r tmp" /Users/vsc/git/yap-6.3/library/cleanup.yap > x - mv x /Users/vsc/git/yap-6.3/library/cleanup.yap - -#false -cat << "EOF" > tmp -/** @pred cleanup_all - - -Calls all pending CleanUpGoals and resets the cleanup-system to an -initial state. Should only be used as one of the last calls in the -main program. - - - -There are some private predicates which could be used in special -cases, such as manually setting up cleanup-contexts and registering -CleanUpGoals for other than the current cleanup-context. -Read the Source Luke. - - - */ -EOF -sed -e "2r tmp" /Users/vsc/git/yap-6.3/library/cleanup.yap > x - mv x /Users/vsc/git/yap-6.3/library/cleanup.yap - -#false -cat << "EOF" > tmp -/** @pred call_cleanup(: _Goal_) - - -Execute goal _Goal_ within a cleanup-context. Called predicates -might register cleanup Goals which are called right after the end of -the call to _Goal_. Cuts and exceptions inside Goal do not prevent the -execution of the cleanup calls. call_cleanup might be nested. - - -*/ -EOF -sed -e "2r tmp" /Users/vsc/git/yap-6.3/library/cleanup.yap > x - mv x /Users/vsc/git/yap-6.3/library/cleanup.yap - -#false -cat << "EOF" > tmp -/** @pred attr_portray_hook(+ _AttValue_,+ _Var_) - - - -Called by write_term/2 and friends for each attribute if the option -`attributes(portray)` is in effect. If the hook succeeds the -attribute is considered printed. Otherwise `Module = ...` is -printed to indicate the existence of a variable. - - -*/ -EOF -sed -e "304r tmp" /Users/vsc/git/yap-6.3/library/clp/clp_distinct.pl > x - mv x /Users/vsc/git/yap-6.3/library/clp/clp_distinct.pl - -#true -cat << "EOF" > tmp -/** @pred all_distinct( _Cs_, _Vs_) - -verifies whether all elements of a list are different. Also tests if -all the sums between a list of constants and a list of variables are -different. - -This is a formulation of the queens problem that uses both versions of `all_different`: - -~~~~~{.prolog} -queens(N, Queens) :- - length(Queens, N), - Queens ins 1..N, - all_distinct(Queens), - foldl(inc, Queens, Inc, 0, _), % [0, 1, 2, .... ] - foldl(dec, Queens, Dec, 0, _), % [0, -1, -2, ... ] - all_distinct(Inc,Queens), - all_distinct(Dec,Queens), - labeling([], Queens). - -inc(_, I0, I0, I) :- - I is I0+1. - -dec(_, I0, I0, I) :- - I is I0-1. -~~~~~ - -The next example uses `all_different/1` and the functionality of the matrix package to verify that all squares in -sudoku have a different value: - -~~~~~{.prolog} - foreach( [I,J] ins 0..2 , - all_different(M[I*3+(0..2),J*3+(0..2)]) ), -~~~~~ - - -*/ -EOF -sed -e "157r tmp" /Users/vsc/git/yap-6.3/library/clp/clp_distinct.pl > x - mv x /Users/vsc/git/yap-6.3/library/clp/clp_distinct.pl - -#true -cat << "EOF" > tmp -/** @pred transpose(+ _Graph_, - _NewGraph_) - - -Unify _NewGraph_ with a new graph obtained from _Graph_ by -replacing all edges of the form _V1-V2_ by edges of the form - _V2-V1_. The cost is `O(|V|^2)`. In the next example: - -~~~~~{.prolog} -?- transpose([1-[3,5],2-[4],3-[], - 4-[5],5-[],6-[],7-[],8-[]], NL). - -NL = [1-[],2-[],3-[1],4-[2],5-[1,4],6-[],7-[],8-[]] -~~~~~ -Notice that an undirected graph is its own transpose. - - -*/ -EOF -sed -e "70r tmp" /Users/vsc/git/yap-6.3/library/clp/clpfd.pl > x - mv x /Users/vsc/git/yap-6.3/library/clp/clpfd.pl - -#true -cat << "EOF" > tmp -/** @pred scalar_product(+ _Cs_, + _Vs_, + _Rel_, ? _V_ ) - -The product of constant _Cs_ by _Vs_ must be in relation - _Rel_ with _V_ . - - -*/ -EOF -sed -e "70r tmp" /Users/vsc/git/yap-6.3/library/clp/clpfd.pl > x - mv x /Users/vsc/git/yap-6.3/library/clp/clpfd.pl - -#true -cat << "EOF" > tmp -/** @pred labeling( _Opts_, _Xs_) -performs labeling, several variable and value selection options are -available. The defaults are `min` and `min_step`. - -Variable selection options are as follows: - -+ leftmost -choose the first variable -+ min -choose one of the variables with smallest minimum value -+ max -choose one of the variables with greatest maximum value -+ ff -choose one of the most constrained variables, that is, with the smallest -domain. - - -Given that we selected a variable, the values chosen for branching may -be: - -+ min_step -smallest value -+ max_step -largest value -+ bisect -median -+ enum -all value starting from the minimum. - - - -*/ -EOF -sed -e "70r tmp" /Users/vsc/git/yap-6.3/library/clp/clpfd.pl > x - mv x /Users/vsc/git/yap-6.3/library/clp/clpfd.pl - -#true -cat << "EOF" > tmp -/** @pred all_different( _Vs_ ) - -Verifies whether all elements of a list are different. -*/ -EOF -sed -e "70r tmp" /Users/vsc/git/yap-6.3/library/clp/clpfd.pl > x - mv x /Users/vsc/git/yap-6.3/library/clp/clpfd.pl - -#true -cat << "EOF" > tmp -/** @pred _X_ #\= _Y_ is semidet -disequality - -*/ -EOF -sed -e "70r tmp" /Users/vsc/git/yap-6.3/library/clp/clpfd.pl > x - mv x /Users/vsc/git/yap-6.3/library/clp/clpfd.pl - -#true -cat << "EOF" > tmp -/** @pred _X_ #>= _Y_ is semidet -larger or equal - -*/ -EOF -sed -e "70r tmp" /Users/vsc/git/yap-6.3/library/clp/clpfd.pl > x - mv x /Users/vsc/git/yap-6.3/library/clp/clpfd.pl - -#true -cat << "EOF" > tmp -/** @pred _X_ #> _Y_ is semidet -larger - -*/ -EOF -sed -e "70r tmp" /Users/vsc/git/yap-6.3/library/clp/clpfd.pl > x - mv x /Users/vsc/git/yap-6.3/library/clp/clpfd.pl - -#true -cat << "EOF" > tmp -/** @pred _X_ #==> _B_ is det -Reified implication - -*/ -EOF -sed -e "70r tmp" /Users/vsc/git/yap-6.3/library/clp/clpfd.pl > x - mv x /Users/vsc/git/yap-6.3/library/clp/clpfd.pl - -#true -cat << "EOF" > tmp -/** @pred _X_ #=< _Y_ is semidet -smaller - -*/ -EOF -sed -e "70r tmp" /Users/vsc/git/yap-6.3/library/clp/clpfd.pl > x - mv x /Users/vsc/git/yap-6.3/library/clp/clpfd.pl - -#true -cat << "EOF" > tmp -/** @pred _X_ #= _Y_ is semidet -equality - -*/ -EOF -sed -e "70r tmp" /Users/vsc/git/yap-6.3/library/clp/clpfd.pl > x - mv x /Users/vsc/git/yap-6.3/library/clp/clpfd.pl - -#true -cat << "EOF" > tmp -/** @pred _X_ #<==> _B_ is det -reified equivalence - -*/ -EOF -sed -e "70r tmp" /Users/vsc/git/yap-6.3/library/clp/clpfd.pl > x - mv x /Users/vsc/git/yap-6.3/library/clp/clpfd.pl - -#true -cat << "EOF" > tmp -/** @pred _X_ #< _Y_ is semidet -smaller or equal - -Arguments to this constraint may be an arithmetic expression with +, --, \\*, integer division /, min, max, sum, -count, and -abs. Boolean variables support conjunction (/\), disjunction (\/), -implication (=>), equivalence (<=>), and xor. The sum constraint allows a two argument version using the -`where` conditional, in Zinc style. - -The send more money equation may be written as: - -~~~~~{.prolog} - 1000*S + 100*E + 10*N + D + - 1000*M + 100*O + 10*R + E #= -10000*M + 1000*O + 100*N + 10*E + Y, -~~~~~ - -This example uses `where` to select from -column _I_ the elements that have value under _M_: - -~~~~~{.prolog} -OutFlow[I] #= sum(J in 1..N where D[J,I]count constraint counts the number of elements that match a -certain constant or variable (integer sets are not available). - - -*/ -EOF -sed -e "70r tmp" /Users/vsc/git/yap-6.3/library/clp/clpfd.pl > x - mv x /Users/vsc/git/yap-6.3/library/clp/clpfd.pl - -#true -cat << "EOF" > tmp -/** @pred _X_ #< _B_ is det -reified implication - -As an example. consider finding out the people who wanted to sit -next to a friend and that are are actually sitting together: - -~~~~~{.prolog} -preference_satisfied(X-Y, B) :- - abs(X - Y) #= 1 #<==> B. -~~~~~ -Note that not all constraints may be reifiable. - - -*/ -EOF -sed -e "70r tmp" /Users/vsc/git/yap-6.3/library/clp/clpfd.pl > x - mv x /Users/vsc/git/yap-6.3/library/clp/clpfd.pl - -#false -cat << "EOF" > tmp -/** @pred db_usage - - -Give general overview of data-base usage in the system. - - -*/ -EOF -sed -e "11r tmp" /Users/vsc/git/yap-6.3/library/dbusage.yap > x - mv x /Users/vsc/git/yap-6.3/library/dbusage.yap - -#false -cat << "EOF" > tmp -/** @pred db_static(+ _Threshold_) - -List memory usage for every static predicate. Predicate must use more -than _Threshold_ bytes. - - -*/ -EOF -sed -e "11r tmp" /Users/vsc/git/yap-6.3/library/dbusage.yap > x - mv x /Users/vsc/git/yap-6.3/library/dbusage.yap - -#false -cat << "EOF" > tmp -/** @pred db_static - - -List memory usage for every static predicate. - - -*/ -EOF -sed -e "11r tmp" /Users/vsc/git/yap-6.3/library/dbusage.yap > x - mv x /Users/vsc/git/yap-6.3/library/dbusage.yap - -#false -cat << "EOF" > tmp -/** @pred db_dynamic(+ _Threshold_) - -List memory usage for every dynamic predicate. Predicate must use more -than _Threshold_ bytes. - - - - - */ -EOF -sed -e "11r tmp" /Users/vsc/git/yap-6.3/library/dbusage.yap > x - mv x /Users/vsc/git/yap-6.3/library/dbusage.yap - -#false -cat << "EOF" > tmp -/** @pred db_dynamic - - -List memory usage for every dynamic predicate. - - -*/ -EOF -sed -e "11r tmp" /Users/vsc/git/yap-6.3/library/dbusage.yap > x - mv x /Users/vsc/git/yap-6.3/library/dbusage.yap - -#false -cat << "EOF" > tmp -/** @pred ugraph_to_dgraph( + _UGraph_, - _Graph_) - - -Unify _Graph_ with the directed graph obtain from _UGraph_, -represented in the form used in the _ugraphs_ unweighted graphs -library. - - -*/ -EOF -sed -e "277r tmp" /Users/vsc/git/yap-6.3/library/dgraphs.yap > x - mv x /Users/vsc/git/yap-6.3/library/dgraphs.yap - -#false -cat << "EOF" > tmp -/** @pred dgraph_vertices(+ _Graph_, - _Vertices_) - - -Unify _Vertices_ with all vertices appearing in graph - _Graph_. - - -*/ -EOF -sed -e "277r tmp" /Users/vsc/git/yap-6.3/library/dgraphs.yap > x - mv x /Users/vsc/git/yap-6.3/library/dgraphs.yap - -#false -cat << "EOF" > tmp -/** @pred dgraph_transpose(+ _Graph_, - _Transpose_) - - -Unify _NewGraph_ with a new graph obtained from _Graph_ by -replacing all edges of the form _V1-V2_ by edges of the form - _V2-V1_. - - -*/ -EOF -sed -e "277r tmp" /Users/vsc/git/yap-6.3/library/dgraphs.yap > x - mv x /Users/vsc/git/yap-6.3/library/dgraphs.yap - -#false -cat << "EOF" > tmp -/** @pred dgraph_transitive_closure(+ _Graph_, - _Closure_) - - -Unify _Closure_ with the transitive closure of graph _Graph_. - - -*/ -EOF -sed -e "277r tmp" /Users/vsc/git/yap-6.3/library/dgraphs.yap > x - mv x /Users/vsc/git/yap-6.3/library/dgraphs.yap - -#false -cat << "EOF" > tmp -/** @pred dgraph_top_sort(+ _Graph_, - _Vertices_, ? _Vertices0_) - -Unify the difference list _Vertices_- _Vertices0_ with the -topological sort of graph _Graph_. - - -*/ -EOF -sed -e "277r tmp" /Users/vsc/git/yap-6.3/library/dgraphs.yap > x - mv x /Users/vsc/git/yap-6.3/library/dgraphs.yap - -#false -cat << "EOF" > tmp -/** @pred dgraph_top_sort(+ _Graph_, - _Vertices_) - - -Unify _Vertices_ with the topological sort of graph _Graph_. - - -*/ -EOF -sed -e "277r tmp" /Users/vsc/git/yap-6.3/library/dgraphs.yap > x - mv x /Users/vsc/git/yap-6.3/library/dgraphs.yap - -#false -cat << "EOF" > tmp -/** @pred dgraph_to_ugraph(+ _Graph_, - _UGraph_) - - -Unify _UGraph_ with the representation used by the _ugraphs_ -unweighted graphs library, that is, a list of the form - _V-Neighbors_, where _V_ is a node and _Neighbors_ the nodes -children. - - -*/ -EOF -sed -e "277r tmp" /Users/vsc/git/yap-6.3/library/dgraphs.yap > x - mv x /Users/vsc/git/yap-6.3/library/dgraphs.yap - -#false -cat << "EOF" > tmp -/** @pred dgraph_symmetric_closure(+ _Graph_, - _Closure_) - - -Unify _Closure_ with the symmetric closure of graph _Graph_, -that is, if _Closure_ contains an edge _U-V_ it must also -contain the edge _V-U_. - - -*/ -EOF -sed -e "277r tmp" /Users/vsc/git/yap-6.3/library/dgraphs.yap > x - mv x /Users/vsc/git/yap-6.3/library/dgraphs.yap - -#false -cat << "EOF" > tmp -/** @pred dgraph_reachable(+ _Vertex_, + _Graph_, ? _Edges_) - - -The path _Path_ is a path starting at vertex _Vertex_ in graph - _Graph_. - - -*/ -EOF -sed -e "277r tmp" /Users/vsc/git/yap-6.3/library/dgraphs.yap > x - mv x /Users/vsc/git/yap-6.3/library/dgraphs.yap - -#false -cat << "EOF" > tmp -/** @pred dgraph_path(+ _Vertex_, + _Vertex1_, + _Graph_, ? _Path_) - -The path _Path_ is a path starting at vertex _Vertex_ in graph - _Graph_ and ending at path _Vertex2_. - - -*/ -EOF -sed -e "277r tmp" /Users/vsc/git/yap-6.3/library/dgraphs.yap > x - mv x /Users/vsc/git/yap-6.3/library/dgraphs.yap - -#false -cat << "EOF" > tmp -/** @pred dgraph_path(+ _Vertex_, + _Graph_, ? _Path_) - - -The path _Path_ is a path starting at vertex _Vertex_ in graph - _Graph_. - - -*/ -EOF -sed -e "277r tmp" /Users/vsc/git/yap-6.3/library/dgraphs.yap > x - mv x /Users/vsc/git/yap-6.3/library/dgraphs.yap - -#false -cat << "EOF" > tmp -/** @pred dgraph_neighbours(+ _Vertex_, + _Graph_, - _Vertices_) - - -Unify _Vertices_ with the list of neighbours of vertex _Vertex_ -in _Graph_. - - -*/ -EOF -sed -e "277r tmp" /Users/vsc/git/yap-6.3/library/dgraphs.yap > x - mv x /Users/vsc/git/yap-6.3/library/dgraphs.yap - -#false -cat << "EOF" > tmp -/** @pred dgraph_neighbors(+ _Vertex_, + _Graph_, - _Vertices_) - - -Unify _Vertices_ with the list of neighbors of vertex _Vertex_ -in _Graph_. If the vertice is not in the graph fail. - - -*/ -EOF -sed -e "277r tmp" /Users/vsc/git/yap-6.3/library/dgraphs.yap > x - mv x /Users/vsc/git/yap-6.3/library/dgraphs.yap - -#false -cat << "EOF" > tmp -/** @pred dgraph_min_paths(+ _V1_, + _Graph_, - _Paths_) - - -Unify the list _Paths_ with the minimal cost paths from node - _N1_ to the nodes in graph _Graph_. - - -*/ -EOF -sed -e "277r tmp" /Users/vsc/git/yap-6.3/library/dgraphs.yap > x - mv x /Users/vsc/git/yap-6.3/library/dgraphs.yap - -#false -cat << "EOF" > tmp -/** @pred dgraph_min_path(+ _V1_, + _V1_, + _Graph_, - _Path_, ? _Costt_) - - -Unify the list _Path_ with the minimal cost path between nodes - _N1_ and _N2_ in graph _Graph_. Path _Path_ has cost - _Cost_. - - -*/ -EOF -sed -e "277r tmp" /Users/vsc/git/yap-6.3/library/dgraphs.yap > x - mv x /Users/vsc/git/yap-6.3/library/dgraphs.yap - -#false -cat << "EOF" > tmp -/** @pred dgraph_max_path(+ _V1_, + _V1_, + _Graph_, - _Path_, ? _Costt_) - - -Unify the list _Path_ with the maximal cost path between nodes - _N1_ and _N2_ in graph _Graph_. Path _Path_ has cost - _Cost_. - - -*/ -EOF -sed -e "277r tmp" /Users/vsc/git/yap-6.3/library/dgraphs.yap > x - mv x /Users/vsc/git/yap-6.3/library/dgraphs.yap - -#false -cat << "EOF" > tmp -/** @pred dgraph_leaves(+ _Graph_, ? _Vertices_) - - -The vertices _Vertices_ have no outgoing edge in graph - _Graph_. - - - - - */ -EOF -sed -e "277r tmp" /Users/vsc/git/yap-6.3/library/dgraphs.yap > x - mv x /Users/vsc/git/yap-6.3/library/dgraphs.yap - -#false -cat << "EOF" > tmp -/** @pred dgraph_isomorphic(+ _Vs_, + _NewVs_, + _G0_, - _GF_) - - -Unify the list _GF_ with the graph isomorphic to _G0_ where -vertices in _Vs_ map to vertices in _NewVs_. - - -*/ -EOF -sed -e "277r tmp" /Users/vsc/git/yap-6.3/library/dgraphs.yap > x - mv x /Users/vsc/git/yap-6.3/library/dgraphs.yap - -#false -cat << "EOF" > tmp -/** @pred dgraph_edges(+ _Graph_, - _Edges_) - - -Unify _Edges_ with all edges appearing in graph - _Graph_. - - -*/ -EOF -sed -e "277r tmp" /Users/vsc/git/yap-6.3/library/dgraphs.yap > x - mv x /Users/vsc/git/yap-6.3/library/dgraphs.yap - -#false -cat << "EOF" > tmp -/** @pred dgraph_edge(+ _N1_, + _N2_, + _Graph_) - - -Edge _N1_- _N2_ is an edge in directed graph _Graph_. - - -*/ -EOF -sed -e "277r tmp" /Users/vsc/git/yap-6.3/library/dgraphs.yap > x - mv x /Users/vsc/git/yap-6.3/library/dgraphs.yap - -#false -cat << "EOF" > tmp -/** @pred dgraph_del_vertices(+ _Graph_, + _Vertices_, - _NewGraph_) - - -Unify _NewGraph_ with a new graph obtained by deleting the list of -vertices _Vertices_ and all the edges that start from or go to a -vertex in _Vertices_ to the graph _Graph_. - - -*/ -EOF -sed -e "277r tmp" /Users/vsc/git/yap-6.3/library/dgraphs.yap > x - mv x /Users/vsc/git/yap-6.3/library/dgraphs.yap - -#false -cat << "EOF" > tmp -/** @pred dgraph_del_vertex(+ _Graph_, + _Vertex_, - _NewGraph_) - - -Unify _NewGraph_ with a new graph obtained by deleting vertex - _Vertex_ and all the edges that start from or go to _Vertex_ to -the graph _Graph_. - - -*/ -EOF -sed -e "277r tmp" /Users/vsc/git/yap-6.3/library/dgraphs.yap > x - mv x /Users/vsc/git/yap-6.3/library/dgraphs.yap - -#false -cat << "EOF" > tmp -/** @pred dgraph_del_edges(+ _Graph_, + _Edges_, - _NewGraph_) - - -Unify _NewGraph_ with a new graph obtained by removing the list of -edges _Edges_ from the graph _Graph_. Notice that no vertices -are deleted. - - -*/ -EOF -sed -e "277r tmp" /Users/vsc/git/yap-6.3/library/dgraphs.yap > x - mv x /Users/vsc/git/yap-6.3/library/dgraphs.yap - -#false -cat << "EOF" > tmp -/** @pred dgraph_del_edge(+ _Graph_, + _N1_, + _N2_, - _NewGraph_) - - -Succeeds if _NewGraph_ unifies with a new graph obtained by -removing the edge _N1_- _N2_ from the graph _Graph_. Notice -that no vertices are deleted. - - -*/ -EOF -sed -e "277r tmp" /Users/vsc/git/yap-6.3/library/dgraphs.yap > x - mv x /Users/vsc/git/yap-6.3/library/dgraphs.yap - -#false -cat << "EOF" > tmp -/** @pred dgraph_compose(+ _Graph1_, + _Graph2_, - _ComposedGraph_) - - -Unify _ComposedGraph_ with a new graph obtained by composing - _Graph1_ and _Graph2_, ie, _ComposedGraph_ has an edge - _V1-V2_ iff there is a _V_ such that _V1-V_ in _Graph1_ -and _V-V2_ in _Graph2_. - - -*/ -EOF -sed -e "277r tmp" /Users/vsc/git/yap-6.3/library/dgraphs.yap > x - mv x /Users/vsc/git/yap-6.3/library/dgraphs.yap - -#false -cat << "EOF" > tmp -/** @pred dgraph_complement(+ _Graph_, - _NewGraph_) - - -Unify _NewGraph_ with the graph complementary to _Graph_. - - -*/ -EOF -sed -e "277r tmp" /Users/vsc/git/yap-6.3/library/dgraphs.yap > x - mv x /Users/vsc/git/yap-6.3/library/dgraphs.yap - -#false -cat << "EOF" > tmp -/** @pred dgraph_add_vertices(+ _Graph_, + _Vertices_, - _NewGraph_) - - -Unify _NewGraph_ with a new graph obtained by adding the list of -vertices _Vertices_ to the graph _Graph_. - - -*/ -EOF -sed -e "277r tmp" /Users/vsc/git/yap-6.3/library/dgraphs.yap > x - mv x /Users/vsc/git/yap-6.3/library/dgraphs.yap - -#false -cat << "EOF" > tmp -/** @pred dgraph_add_vertices(+ _Graph_, + _Vertex_, - _NewGraph_) - - -Unify _NewGraph_ with a new graph obtained by adding -vertex _Vertex_ to the graph _Graph_. - - -*/ -EOF -sed -e "277r tmp" /Users/vsc/git/yap-6.3/library/dgraphs.yap > x - mv x /Users/vsc/git/yap-6.3/library/dgraphs.yap - -#false -cat << "EOF" > tmp -/** @pred dgraph_add_edges(+ _Graph_, + _Edges_, - _NewGraph_) - - -Unify _NewGraph_ with a new graph obtained by adding the list of -edges _Edges_ to the graph _Graph_. - - -*/ -EOF -sed -e "277r tmp" /Users/vsc/git/yap-6.3/library/dgraphs.yap > x - mv x /Users/vsc/git/yap-6.3/library/dgraphs.yap - -#false -cat << "EOF" > tmp -/** @pred dgraph_add_edge(+ _Graph_, + _N1_, + _N2_, - _NewGraph_) - - -Unify _NewGraph_ with a new graph obtained by adding the edge - _N1_- _N2_ to the graph _Graph_. - - -*/ -EOF -sed -e "277r tmp" /Users/vsc/git/yap-6.3/library/dgraphs.yap > x - mv x /Users/vsc/git/yap-6.3/library/dgraphs.yap - -#true -cat << "EOF" > tmp -/** @pred foreach(:Generator, : _Goal_) - - -True if the conjunction of instances of _Goal_ using the -bindings from Generator is true. Unlike forall/2, which runs a -failure-driven loop that proves _Goal_ for each solution of -Generator, foreach creates a conjunction. Each member of the -conjunction is a copy of _Goal_, where the variables it shares -with Generator are filled with the values from the corresponding -solution. - -The implementation executes forall/2 if _Goal_ does not contain -any variables that are not shared with Generator. - -Here is an example: - -~~~~~{.prolog} - ?- foreach( between(1,4,X), dif(X,Y)), Y = 5. - Y = 5 - ?- foreach( between(1,4,X), dif(X,Y)), Y = 3. - No -~~~~~ - -Notice that _Goal_ is copied repeatedly, which may cause -problems if attributed variables are involved. - - -*/ -EOF -sed -e "222r tmp" /Users/vsc/git/yap-6.3/library/dialect/bprolog/foreach.pl > x - mv x /Users/vsc/git/yap-6.3/library/dialect/bprolog/foreach.pl - -#true -cat << "EOF" > tmp -/** @pred foreach( _Sequence_, _Goal_) - - -Deterministic iterator. The ranges are given by _Sequence_ that is -either ` _I_ in _M_.. _N_`, or of the form -`[ _I_, _J_] ins _M_.. _N_`, or a list of the above conditions. - -Variables in the goal are assumed to be global, ie, share a single value -in the execution. The exceptions are the iteration indices. Moreover, if -the goal is of the form ` _Locals_^ _G_` all variables -occurring in _Locals_ are marked as local. As an example: - -~~~~~{.prolog} -foreach([I,J] ins 1..N, A^(A <==M[I,J], N[I] <== N[I] + A*A) ) -~~~~~ -the variables _I_, _J_ and _A_ are duplicated for every -call (local), whereas the matrices _M_ and _N_ are shared -throughout the execution (global). - - -*/ -EOF -sed -e "222r tmp" /Users/vsc/git/yap-6.3/library/dialect/bprolog/foreach.pl > x - mv x /Users/vsc/git/yap-6.3/library/dialect/bprolog/foreach.pl - -#true -cat << "EOF" > tmp -/** @pred foreach( _Sequence_, _Goal_, _Acc0_, _AccF_) - -Deterministic iterator with accumulator style arguments. - - -*/ -EOF -sed -e "145r tmp" /Users/vsc/git/yap-6.3/library/dialect/bprolog/foreach.pl > x - mv x /Users/vsc/git/yap-6.3/library/dialect/bprolog/foreach.pl - -#false -cat << "EOF" > tmp -/** @pred arg(+ _N_,+ _T_, _A_) is iso - - -Succeeds if the argument _N_ of the term _T_ unifies with - _A_. The arguments are numbered from 1 to the arity of the term. - -The current version will generate an error if _T_ or _N_ are -unbound, if _T_ is not a compound term, of if _N_ is not a positive -integer. Note that previous versions of YAP would fail silently -under these errors. - - -*/ -EOF -sed -e "163r tmp" /Users/vsc/git/yap-6.3/library/dialect/swi.yap > x - mv x /Users/vsc/git/yap-6.3/library/dialect/swi.yap - -#false -cat << "EOF" > tmp -/** @pred atom_concat(? _A1_,? _A2_,? _A12_) is iso - -The predicate holds when the third argument unifies with an atom, and -the first and second unify with atoms such that their representations -concatenated are the representation for _A12_. - -If _A1_ and _A2_ are unbound, the built-in will find all the atoms -that concatenated give _A12_. - - -*/ -EOF -sed -e "148r tmp" /Users/vsc/git/yap-6.3/library/dialect/swi.yap > x - mv x /Users/vsc/git/yap-6.3/library/dialect/swi.yap - -#false -cat << "EOF" > tmp -/** @pred concat_atom(? _List_,+ _Separator_,? _Atom_) - - -Creates an atom just like concat_atom/2, but inserts _Separator_ -between each pair of atoms. For example: - -~~~~~ -?- concat_atom([gnu, gnat], ', ', A). - -A = 'gnu, gnat' -~~~~~ - -(Unimplemented) This predicate can also be used to split atoms by -instantiating _Separator_ and _Atom_: - -~~~~~ -?- concat_atom(L, -, 'gnu-gnat'). - -L = [gnu, gnat] -~~~~~ - - -*/ -EOF -sed -e "42r tmp" /Users/vsc/git/yap-6.3/library/dialect/swi.yap > x - mv x /Users/vsc/git/yap-6.3/library/dialect/swi.yap - -#false -cat << "EOF" > tmp -/** @pred concat_atom(+ _List_,- _Atom_) - - - - _List_ is a list of atoms, integers or floating point numbers. Succeeds -if _Atom_ can be unified with the concatenated elements of _List_. If - _List_ has exactly 2 elements it is equivalent to `atom_concat/3`, -allowing for variables in the list. - - -*/ -EOF -sed -e "42r tmp" /Users/vsc/git/yap-6.3/library/dialect/swi.yap > x - mv x /Users/vsc/git/yap-6.3/library/dialect/swi.yap - -#false -cat << "EOF" > tmp -/** @pred chdir(+ _Dir_) - - - -Compatibility predicate. New code should use working_directory/2. - - -*/ -EOF -sed -e "42r tmp" /Users/vsc/git/yap-6.3/library/dialect/swi.yap > x - mv x /Users/vsc/git/yap-6.3/library/dialect/swi.yap - -#true -cat << "EOF" > tmp -/** @pred time_file(+ _File_,- _Time_) - - -Unify the last modification time of _File_ with - _Time_. _Time_ is a floating point number expressing the seconds -elapsed since Jan 1, 1970. - - -*/ -EOF -sed -e "42r tmp" /Users/vsc/git/yap-6.3/library/dialect/swi.yap > x - mv x /Users/vsc/git/yap-6.3/library/dialect/swi.yap - -#true -cat << "EOF" > tmp -/** @pred min(+ _Expression_) -Minimizes _Expression_ within the current constraint store. This is -the same as computing the infimum and equation the expression to that -infimum. - - -*/ -EOF -sed -e "75r tmp" /Users/vsc/git/yap-6.3/library/exo_interval.yap > x - mv x /Users/vsc/git/yap-6.3/library/exo_interval.yap - -#true -cat << "EOF" > tmp -/** @pred min( _X_, _Vs_) -First Argument is the least element of a list. - - -*/ -EOF -sed -e "75r tmp" /Users/vsc/git/yap-6.3/library/exo_interval.yap > x - mv x /Users/vsc/git/yap-6.3/library/exo_interval.yap - -#true -cat << "EOF" > tmp -/** @pred max(+ _Expression_) -Maximizes _Expression_ within the current constraint store. This is -the same as computing the supremum and equating the expression to that -supremum. - - -*/ -EOF -sed -e "75r tmp" /Users/vsc/git/yap-6.3/library/exo_interval.yap > x - mv x /Users/vsc/git/yap-6.3/library/exo_interval.yap - -#true -cat << "EOF" > tmp -/** @pred max( _X_, _Vs_) -First Argument is the greatest element of a list. - -+ lex_order( _Vs_) -All elements must be ordered. - - - -The following predicates control search: - - -*/ -EOF -sed -e "75r tmp" /Users/vsc/git/yap-6.3/library/exo_interval.yap > x - mv x /Users/vsc/git/yap-6.3/library/exo_interval.yap - -#false -cat << "EOF" > tmp -/** @pred min_of_heap(+ _Heap_, - _Key_, - _Datum_) - - -Returns the Key-Datum pair at the top of the heap (which is of course -the pair with the smallest Key), but does not remove it from the heap. - - -*/ -EOF -sed -e "131r tmp" /Users/vsc/git/yap-6.3/library/heaps.yap > x - mv x /Users/vsc/git/yap-6.3/library/heaps.yap - -#false -cat << "EOF" > tmp -/** @pred min_of_heap(+ _Heap_, - _Key1_, - _Datum1_, -- _Key2_, - _Datum2_) - -Returns the smallest (Key1) and second smallest (Key2) pairs in the -heap, without deleting them. - - - - */ -EOF -sed -e "131r tmp" /Users/vsc/git/yap-6.3/library/heaps.yap > x - mv x /Users/vsc/git/yap-6.3/library/heaps.yap - -#false -cat << "EOF" > tmp -/** @pred list_to_heap(+ _List_, - _Heap_) - - -Takes a list of _Key-Datum_ pairs (such as keysort could be used to sort) -and forms them into a heap. - - -*/ -EOF -sed -e "131r tmp" /Users/vsc/git/yap-6.3/library/heaps.yap > x - mv x /Users/vsc/git/yap-6.3/library/heaps.yap - -#false -cat << "EOF" > tmp -/** @pred heap_to_list(+ _Heap_, - _List_) - - -Returns the current set of _Key-Datum_ pairs in the _Heap_ as a - _List_, sorted into ascending order of _Keys_. - - -*/ -EOF -sed -e "131r tmp" /Users/vsc/git/yap-6.3/library/heaps.yap > x - mv x /Users/vsc/git/yap-6.3/library/heaps.yap - -#false -cat << "EOF" > tmp -/** @pred heap_size(+ _Heap_, - _Size_) - - -Reports the number of elements currently in the heap. - - -*/ -EOF -sed -e "131r tmp" /Users/vsc/git/yap-6.3/library/heaps.yap > x - mv x /Users/vsc/git/yap-6.3/library/heaps.yap - -#false -cat << "EOF" > tmp -/** @pred get_from_heap(+ _Heap_,- _key_,- _Datum_,- _Heap_) - - -Returns the _Key-Datum_ pair in _OldHeap_ with the smallest - _Key_, and also a _Heap_ which is the _OldHeap_ with that -pair deleted. - - -*/ -EOF -sed -e "131r tmp" /Users/vsc/git/yap-6.3/library/heaps.yap > x - mv x /Users/vsc/git/yap-6.3/library/heaps.yap - -#false -cat << "EOF" > tmp -/** @pred empty_heap(? _Heap_) - - -Succeeds if _Heap_ is an empty heap. - - -*/ -EOF -sed -e "131r tmp" /Users/vsc/git/yap-6.3/library/heaps.yap > x - mv x /Users/vsc/git/yap-6.3/library/heaps.yap - -#false -cat << "EOF" > tmp -/** @pred mpi_wait_recv(? _Handle_,- _Status_,- _Data_) - - - -Completes a non-blocking receive operation. The predicate blocks until -a message associated with handle _Hanlde_ is buffered. The -predicate succeeds unifying _Status_ with the status of the -message and _Data_ with the message itself. - - -*/ -EOF -sed -e "188r tmp" /Users/vsc/git/yap-6.3/library/lam_mpi.yap > x - mv x /Users/vsc/git/yap-6.3/library/lam_mpi.yap - -#false -cat << "EOF" > tmp -/** @pred mpi_wait(? _Handle_,- _Status_) - - - -Completes a non-blocking operation. If the operation was a -`mpi_send`, the predicate blocks until the message is buffered -or sent by the runtime system. At this point the send buffer is -released. If the operation was a `mpi_recv`, it waits until the -message is copied to the receive buffer. _Status_ is unified with -the status of the message. - - -*/ -EOF -sed -e "188r tmp" /Users/vsc/git/yap-6.3/library/lam_mpi.yap > x - mv x /Users/vsc/git/yap-6.3/library/lam_mpi.yap - -#false -cat << "EOF" > tmp -/** @pred mpi_version(- _Major_,- _Minor_) - - -Unifies _Major_ and _Minor_ with, respectively, the major and minor version of the MPI. - - -*/ -EOF -sed -e "188r tmp" /Users/vsc/git/yap-6.3/library/lam_mpi.yap > x - mv x /Users/vsc/git/yap-6.3/library/lam_mpi.yap - -#false -cat << "EOF" > tmp -/** @pred mpi_test_recv(? _Handle_,- _Status_,- _Data_) - - - -Provides information regarding a handle. If the message associated -with handle _Hanlde_ is buffered then the predicate succeeds -unifying _Status_ with the status of the message and _Data_ -with the message itself. Otherwise, the predicate fails. - - -*/ -EOF -sed -e "188r tmp" /Users/vsc/git/yap-6.3/library/lam_mpi.yap > x - mv x /Users/vsc/git/yap-6.3/library/lam_mpi.yap - -#false -cat << "EOF" > tmp -/** @pred mpi_test(? _Handle_,- _Status_) - - - -Provides information regarding the handle _Handle_, ie., if a -communication operation has been completed. If the operation -associate with _Hanlde_ has been completed the predicate succeeds -with the completion status in _Status_, otherwise it fails. - - -*/ -EOF -sed -e "188r tmp" /Users/vsc/git/yap-6.3/library/lam_mpi.yap > x - mv x /Users/vsc/git/yap-6.3/library/lam_mpi.yap - -#true -cat << "EOF" > tmp -/** @pred mpi_send(+ _Data_,+ _Dest_,+ _Tag_) - - - -Blocking communication predicate. The message in _Data_, with tag - _Tag_, is sent immediately to the processor with rank _Dest_. -The predicate succeeds after the message being sent. - - -*/ -EOF -sed -e "188r tmp" /Users/vsc/git/yap-6.3/library/lam_mpi.yap > x - mv x /Users/vsc/git/yap-6.3/library/lam_mpi.yap - -#false -cat << "EOF" > tmp -/** @pred mpi_recv(? _Source_,? _Tag_,- _Data_) - - - -Blocking communication predicate. The predicate blocks until a message -is received from processor with rank _Source_ and tag _Tag_. -The message is placed in _Data_. - - -*/ -EOF -sed -e "188r tmp" /Users/vsc/git/yap-6.3/library/lam_mpi.yap > x - mv x /Users/vsc/git/yap-6.3/library/lam_mpi.yap - -#false -cat << "EOF" > tmp -/** @pred mpi_msg_size( _Msg_, - _MsgSize_) - - -Unify _MsgSize_ with the number of bytes YAP would need to send the -message _Msg_. - - -*/ -EOF -sed -e "188r tmp" /Users/vsc/git/yap-6.3/library/lam_mpi.yap > x - mv x /Users/vsc/git/yap-6.3/library/lam_mpi.yap - -#false -cat << "EOF" > tmp -/** @pred mpi_isend(+ _Data_,+ _Dest_,+ _Tag_,- _Handle_) - - - -Non blocking communication predicate. The message in _Data_, with -tag _Tag_, is sent whenever possible to the processor with rank - _Dest_. An _Handle_ to the message is returned to be used to -check for the status of the message, using the `mpi_wait` or -`mpi_test` predicates. Until `mpi_wait` is called, the -memory allocated for the buffer containing the message is not -released. - - -*/ -EOF -sed -e "188r tmp" /Users/vsc/git/yap-6.3/library/lam_mpi.yap > x - mv x /Users/vsc/git/yap-6.3/library/lam_mpi.yap - -#false -cat << "EOF" > tmp -/** @pred mpi_irecv(? _Source_,? _Tag_,- _Handle_) - - - -Non-blocking communication predicate. The predicate returns an - _Handle_ for a message that will be received from processor with -rank _Source_ and tag _Tag_. Note that the predicate succeeds -immediately, even if no message has been received. The predicate -`mpi_wait_recv` should be used to obtain the data associated to -the handle. - - -*/ -EOF -sed -e "188r tmp" /Users/vsc/git/yap-6.3/library/lam_mpi.yap > x - mv x /Users/vsc/git/yap-6.3/library/lam_mpi.yap - -#false -cat << "EOF" > tmp -/** @pred mpi_init - - -Sets up the mpi environment. This predicate should be called before any other MPI predicate. - - -*/ -EOF -sed -e "188r tmp" /Users/vsc/git/yap-6.3/library/lam_mpi.yap > x - mv x /Users/vsc/git/yap-6.3/library/lam_mpi.yap - -#false -cat << "EOF" > tmp -/** @pred mpi_gc - - - -Attempts to perform garbage collection with all the open handles -associated with send and non-blocking broadcasts. For each handle it -tests it and the message has been delivered the handle and the buffer -are released. - - - - - */ -EOF -sed -e "188r tmp" /Users/vsc/git/yap-6.3/library/lam_mpi.yap > x - mv x /Users/vsc/git/yap-6.3/library/lam_mpi.yap - -#false -cat << "EOF" > tmp -/** @pred mpi_finalize - - -Terminates the MPI execution environment. Every process must call this predicate before exiting. - - -*/ -EOF -sed -e "188r tmp" /Users/vsc/git/yap-6.3/library/lam_mpi.yap > x - mv x /Users/vsc/git/yap-6.3/library/lam_mpi.yap - -#false -cat << "EOF" > tmp -/** @pred mpi_comm_size(- _Size_) - - -Unifies _Size_ with the number of processes in the MPI environment. - - -*/ -EOF -sed -e "188r tmp" /Users/vsc/git/yap-6.3/library/lam_mpi.yap > x - mv x /Users/vsc/git/yap-6.3/library/lam_mpi.yap - -#false -cat << "EOF" > tmp -/** @pred mpi_comm_rank(- _Rank_) - - -Unifies _Rank_ with the rank of the current process in the MPI environment. - - -*/ -EOF -sed -e "188r tmp" /Users/vsc/git/yap-6.3/library/lam_mpi.yap > x - mv x /Users/vsc/git/yap-6.3/library/lam_mpi.yap - -#false -cat << "EOF" > tmp -/** @pred mpi_bcast2(+ _Root_, ? _Data_) - - - -Broadcasts the message _Data_ from the process with rank _Root_ -to all other processes. - - -*/ -EOF -sed -e "188r tmp" /Users/vsc/git/yap-6.3/library/lam_mpi.yap > x - mv x /Users/vsc/git/yap-6.3/library/lam_mpi.yap - -#true -cat << "EOF" > tmp -/** @pred mpi_barrier - - -Collective communication predicate. Performs a barrier -synchronization among all processes. Note that a collective -communication means that all processes call the same predicate. To be -able to use a regular `mpi_recv` to receive the messages, one -should use `mpi_bcast2`. - - -*/ -EOF -sed -e "188r tmp" /Users/vsc/git/yap-6.3/library/lam_mpi.yap > x - mv x /Users/vsc/git/yap-6.3/library/lam_mpi.yap - -#false -cat << "EOF" > tmp -/** @pred mpi_default_buffer_size(- _OldBufferSize_, ? _NewBufferSize_) - - - -The _OldBufferSize_ argument unifies with the current size of the -MPI communication buffer size and sets the communication buffer size - _NewBufferSize_. The buffer is used for assynchronous waiting and -for broadcast receivers. Notice that buffer is local at each MPI -process. - - -*/ -EOF -sed -e "1050r tmp" /Users/vsc/git/yap-6.3/library/lammpi/yap_mpi.c > x - mv x /Users/vsc/git/yap-6.3/library/lammpi/yap_mpi.c - -#false -cat << "EOF" > tmp -/** @pred mpi_ibcast(+ _Root_, + _Data_, + _Tag_) - - - -Non-blocking operation. Broadcasts the message _Data_ with tag _Tag_ -from the process with rank _Root_ to all other processes. - - -*/ -EOF -sed -e "1038r tmp" /Users/vsc/git/yap-6.3/library/lammpi/yap_mpi.c > x - mv x /Users/vsc/git/yap-6.3/library/lammpi/yap_mpi.c - -#false -cat << "EOF" > tmp -/** @pred mpi_bcast3(+ _Root_, + _Data_, + _Tag_) - - -Broadcasts the message _Data_ with tag _Tag_ from the process with rank _Root_ -to all other processes. - - -*/ -EOF -sed -e "1028r tmp" /Users/vsc/git/yap-6.3/library/lammpi/yap_mpi.c > x - mv x /Users/vsc/git/yap-6.3/library/lammpi/yap_mpi.c - -#false -cat << "EOF" > tmp -/** @pred split(+ _Line_,- _Split_) - - -Unify _Words_ with a set of strings obtained from _Line_ by -using the blank characters as separators. - - -*/ -EOF -sed -e "1r tmp" /Users/vsc/git/yap-6.3/library/lineutils.yap > x - mv x /Users/vsc/git/yap-6.3/library/lineutils.yap - -#false -cat << "EOF" > tmp -/** @pred search_for(+ _Char_,+ _Line_,- _RestOfine_) - - -Search for a character _Char_ in the list of codes _Line_, - _RestOfLine_ has the line to the right. - - -*/ -EOF -sed -e "1r tmp" /Users/vsc/git/yap-6.3/library/lineutils.yap > x - mv x /Users/vsc/git/yap-6.3/library/lineutils.yap - -#false -cat << "EOF" > tmp -/** @pred scan_natural(? _Nat_,+ _Line_,+ _RestOfLine_) - - - -Scan the list of codes _Line_ for a natural number _Nat_, zero -or a positive integer, and unify _RestOfLine_ with the remainder -of the line. - - -*/ -EOF -sed -e "1r tmp" /Users/vsc/git/yap-6.3/library/lineutils.yap > x - mv x /Users/vsc/git/yap-6.3/library/lineutils.yap - -#false -cat << "EOF" > tmp -/** @pred scan_integer(? _Int_,+ _Line_,+ _RestOfLine_) - - - -Scan the list of codes _Line_ for an integer _Nat_, either a -positive, zero, or negative integer, and unify _RestOfLine_ with -the remainder of the line. - - -*/ -EOF -sed -e "1r tmp" /Users/vsc/git/yap-6.3/library/lineutils.yap > x - mv x /Users/vsc/git/yap-6.3/library/lineutils.yap - -#false -cat << "EOF" > tmp -/** @pred glue(+ _Words_,+ _Separator_,- _Line_) - - - -Unify _Line_ with string obtained by glueing _Words_ with -the character code _Separator_. - - -*/ -EOF -sed -e "1r tmp" /Users/vsc/git/yap-6.3/library/lineutils.yap > x - mv x /Users/vsc/git/yap-6.3/library/lineutils.yap - -#false -cat << "EOF" > tmp -/** @pred filter(+ _StreamInp_, + _StreamOut_, + _Goal_) - - - -For every line _LineIn_ in stream _StreamInp_, execute -`call(Goal,LineIn,LineOut)`, and output _LineOut_ to -stream _StreamOut_. - - -*/ -EOF -sed -e "1r tmp" /Users/vsc/git/yap-6.3/library/lineutils.yap > x - mv x /Users/vsc/git/yap-6.3/library/lineutils.yap - -#false -cat << "EOF" > tmp -/** @pred file_filter_with_initialization(+ _FileIn_, + _FileOut_, + _Goal_, + _FormatCommand_, + _Arguments_) - - -Same as file_filter/3, but before starting the filter execute -`format/3` on the output stream, using _FormatCommand_ and - _Arguments_. - - - - - */ -EOF -sed -e "1r tmp" /Users/vsc/git/yap-6.3/library/lineutils.yap > x - mv x /Users/vsc/git/yap-6.3/library/lineutils.yap - -#false -cat << "EOF" > tmp -/** @pred file_filter(+ _FileIn_, + _FileOut_, + _Goal_) - - - -For every line _LineIn_ in file _FileIn_, execute -`call(Goal,LineIn,LineOut)`, and output _LineOut_ to file - _FileOut_. - - -*/ -EOF -sed -e "1r tmp" /Users/vsc/git/yap-6.3/library/lineutils.yap > x - mv x /Users/vsc/git/yap-6.3/library/lineutils.yap - -#false -cat << "EOF" > tmp -/** @pred fields(+ _Line_,- _Split_) - - -Unify _Words_ with a set of strings obtained from _Line_ by -using the blank characters as field separators. - - -*/ -EOF -sed -e "1r tmp" /Users/vsc/git/yap-6.3/library/lineutils.yap > x - mv x /Users/vsc/git/yap-6.3/library/lineutils.yap - -#true -cat << "EOF" > tmp -/** @pred fields(+ _Line_,+ _Separators_,- _Split_) - - - -Unify _Words_ with a set of strings obtained from _Line_ by -using the character codes in _Separators_ as separators for -fields. If two separators occur in a row, the field is considered -empty. As an example, consider: - -~~~~~{.prolog} -?- fields("Hello I am free"," *",S). - -S = ["Hello","","I","am","","free"] ? -~~~~~ - - -*/ -EOF -sed -e "1r tmp" /Users/vsc/git/yap-6.3/library/lineutils.yap > x - mv x /Users/vsc/git/yap-6.3/library/lineutils.yap - -#true -cat << "EOF" > tmp -/** @pred copy_line(+ _StreamInput_,+ _StreamOutput_) - - - -Copy a line from _StreamInput_ to _StreamOutput_. - - -*/ -EOF -sed -e "1r tmp" /Users/vsc/git/yap-6.3/library/lineutils.yap > x - mv x /Users/vsc/git/yap-6.3/library/lineutils.yap - -#true -cat << "EOF" > tmp -/** @pred sumlist(? _Numbers_, ? _Total_) - - -True when _Numbers_ is a list of integers, and _Total_ is their -sum. The same as sum_list/2, please do use sum_list/2 -instead. - - -*/ -EOF -sed -e "261r tmp" /Users/vsc/git/yap-6.3/library/lists.yap > x - mv x /Users/vsc/git/yap-6.3/library/lists.yap - -#false -cat << "EOF" > tmp -/** @pred sum_list(? _Numbers_, ? _Total_) - - -True when _Numbers_ is a list of numbers, and _Total_ is their sum. - - -*/ -EOF -sed -e "261r tmp" /Users/vsc/git/yap-6.3/library/lists.yap > x - mv x /Users/vsc/git/yap-6.3/library/lists.yap - -#false -cat << "EOF" > tmp -/** @pred sum_list(? _Numbers_, + _SoFar_, ? _Total_) - -True when _Numbers_ is a list of numbers, and _Total_ is the sum of their total plus _SoFar_. - - -*/ -EOF -sed -e "261r tmp" /Users/vsc/git/yap-6.3/library/lists.yap > x - mv x /Users/vsc/git/yap-6.3/library/lists.yap - -#false -cat << "EOF" > tmp -/** @pred suffix(? _Suffix_, ? _List_) - - -Holds when `append(_,Suffix,List)` holds. - - -*/ -EOF -sed -e "261r tmp" /Users/vsc/git/yap-6.3/library/lists.yap > x - mv x /Users/vsc/git/yap-6.3/library/lists.yap - -#true -cat << "EOF" > tmp -/** @pred subtract(+ _Set_, + _Delete_, ? _Result_) - - -Delete all elements from _Set_ that occur in _Delete_ (a set) -and unify the result with _Result_. Deletion is based on -unification using memberchk/2. The complexity is -`|Delete|\*|Set|`. - -See ord_subtract/3. - - - - */ -EOF -sed -e "261r tmp" /Users/vsc/git/yap-6.3/library/lists.yap > x - mv x /Users/vsc/git/yap-6.3/library/lists.yap - -#true -cat << "EOF" > tmp -/** @pred sublist(? _Sublist_, ? _List_) - - -True when both `append(_,Sublist,S)` and `append(S,_,List)` hold. - - -*/ -EOF -sed -e "261r tmp" /Users/vsc/git/yap-6.3/library/lists.yap > x - mv x /Users/vsc/git/yap-6.3/library/lists.yap - -#true -cat << "EOF" > tmp -/** @pred selectchk(? _Element_, ? _List_, ? _Residue_) - - -Semi-deterministic selection from a list. Steadfast: defines as - -~~~~~{.prolog} -selectchk(Elem, List, Residue) :- - select(Elem, List, Rest0), !, - Rest = Rest0. -~~~~~ - - -*/ -EOF -sed -e "261r tmp" /Users/vsc/git/yap-6.3/library/lists.yap > x - mv x /Users/vsc/git/yap-6.3/library/lists.yap - -#true -cat << "EOF" > tmp -/** @pred select(? _Element_, ? _List_, ? _Residue_) - - -True when _Set_ is a list, _Element_ occurs in _List_, and - _Residue_ is everything in _List_ except _Element_ (things -stay in the same order). - - -*/ -EOF -sed -e "261r tmp" /Users/vsc/git/yap-6.3/library/lists.yap > x - mv x /Users/vsc/git/yap-6.3/library/lists.yap - -#false -cat << "EOF" > tmp -/** @pred same_length(? _List1_, ? _List2_) - - -True when _List1_ and _List2_ are both lists and have the same number -of elements. No relation between the values of their elements is -implied. -Modes `same_length(-,+)` and `same_length(+,-)` generate either list given -the other; mode `same_length(-,-)` generates two lists of the same length, -in which case the arguments will be bound to lists of length 0, 1, 2, ... - - -*/ -EOF -sed -e "261r tmp" /Users/vsc/git/yap-6.3/library/lists.yap > x - mv x /Users/vsc/git/yap-6.3/library/lists.yap - -#false -cat << "EOF" > tmp -/** @pred remove_duplicates(+ _List_, ? _Pruned_) - - -Removes duplicated elements from _List_. Beware: if the _List_ has -non-ground elements, the result may surprise you. - - -*/ -EOF -sed -e "261r tmp" /Users/vsc/git/yap-6.3/library/lists.yap > x - mv x /Users/vsc/git/yap-6.3/library/lists.yap - -#true -cat << "EOF" > tmp -/** @pred permutation(+ _List_,? _Perm_) - - -True when _List_ and _Perm_ are permutations of each other. - - -*/ -EOF -sed -e "261r tmp" /Users/vsc/git/yap-6.3/library/lists.yap > x - mv x /Users/vsc/git/yap-6.3/library/lists.yap - -#false -cat << "EOF" > tmp -/** @pred numlist(+ _Low_, + _High_, + _List_) - - -If _Low_ and _High_ are integers with _Low_ =< - _High_, unify _List_ to a list `[Low, Low+1, ...High]`. See -also between/3. - - -*/ -EOF -sed -e "261r tmp" /Users/vsc/git/yap-6.3/library/lists.yap > x - mv x /Users/vsc/git/yap-6.3/library/lists.yap - -#true -cat << "EOF" > tmp -/** @pred nth1(? _N_, ? _List_, ? _Elem_, ? _Rest_) - -Unifies _Elem_ with the Nth element of _List_, counting from 1, -and _Rest_ with the other elements. It can be used to select the -Nth element of _List_ (yielding _Elem_ and _Rest_), or to -insert _Elem_ before the Nth (counting from 1) element of - _Rest_, when it yields _List_, e.g. `nth(3, List, c, [a,b,d,e])` unifies List with `[a,b,c,d,e]`. `nth/4` -can be used to insert _Elem_ after the Nth element of _Rest_. - - -*/ -EOF -sed -e "261r tmp" /Users/vsc/git/yap-6.3/library/lists.yap > x - mv x /Users/vsc/git/yap-6.3/library/lists.yap - -#true -cat << "EOF" > tmp -/** @pred nth1(? _N_, ? _List_, ? _Elem_) - - -The same as nth0/3, except that it counts from -1, that is `nth(1, [H|_], H)`. - - -*/ -EOF -sed -e "261r tmp" /Users/vsc/git/yap-6.3/library/lists.yap > x - mv x /Users/vsc/git/yap-6.3/library/lists.yap - -#true -cat << "EOF" > tmp -/** @pred nth1(+ _Index_,? _List_,? _Elem_) - - -Succeeds when the _Index_-th element of _List_ unifies with - _Elem_. Counting starts at 1. - -Set environment variable. _Name_ and _Value_ should be -instantiated to atoms or integers. The environment variable will be -passed to `shell/[0-2]` and can be requested using `getenv/2`. -They also influence expand_file_name/2. - - -*/ -EOF -sed -e "261r tmp" /Users/vsc/git/yap-6.3/library/lists.yap > x - mv x /Users/vsc/git/yap-6.3/library/lists.yap - -#true -cat << "EOF" > tmp -/** @pred nth0(? _N_, ? _List_, ? _Elem_, ? _Rest_) - -Unifies _Elem_ with the Nth element of _List_, -counting from 0, and _Rest_ with the other elements. It can be used -to select the Nth element of _List_ (yielding _Elem_ and _Rest_), or to -insert _Elem_ before the Nth (counting from 1) element of _Rest_, when -it yields _List_, e.g. `nth0(2, List, c, [a,b,d,e])` unifies List with -`[a,b,c,d,e]`. `nth/4` is the same except that it counts from 1. `nth0/4` -can be used to insert _Elem_ after the Nth element of _Rest_. - - -*/ -EOF -sed -e "261r tmp" /Users/vsc/git/yap-6.3/library/lists.yap > x - mv x /Users/vsc/git/yap-6.3/library/lists.yap - -#true -cat << "EOF" > tmp -/** @pred nth0(? _N_, ? _List_, ? _Elem_) - - -True when _Elem_ is the Nth member of _List_, -counting the first as element 0. (That is, throw away the first -N elements and unify _Elem_ with the next.) It can only be used to -select a particular element given the list and index. For that -task it is more efficient than member/2 - - -*/ -EOF -sed -e "261r tmp" /Users/vsc/git/yap-6.3/library/lists.yap > x - mv x /Users/vsc/git/yap-6.3/library/lists.yap - -#false -cat << "EOF" > tmp -/** @pred nth(? _N_, ? _List_, ? _Elem_, ? _Rest_) - -Same as `nth1/4`. - - -*/ -EOF -sed -e "261r tmp" /Users/vsc/git/yap-6.3/library/lists.yap > x - mv x /Users/vsc/git/yap-6.3/library/lists.yap - -#false -cat << "EOF" > tmp -/** @pred nth(? _N_, ? _List_, ? _Elem_) - - -The same as nth1/3. - - -*/ -EOF -sed -e "261r tmp" /Users/vsc/git/yap-6.3/library/lists.yap > x - mv x /Users/vsc/git/yap-6.3/library/lists.yap - -#true -cat << "EOF" > tmp -/** @pred min_list(? _Numbers_, ? _Min_) - - -True when _Numbers_ is a list of numbers, and _Min_ is the minimum. - - -*/ -EOF -sed -e "261r tmp" /Users/vsc/git/yap-6.3/library/lists.yap > x - mv x /Users/vsc/git/yap-6.3/library/lists.yap - -#true -cat << "EOF" > tmp -/** @pred max_list(? _Numbers_, ? _Max_) - - -True when _Numbers_ is a list of numbers, and _Max_ is the maximum. - - -*/ -EOF -sed -e "261r tmp" /Users/vsc/git/yap-6.3/library/lists.yap > x - mv x /Users/vsc/git/yap-6.3/library/lists.yap - -#false -cat << "EOF" > tmp -/** @pred list_concat(+ _Lists_,? _List_) - - -True when _Lists_ is a list of lists and _List_ is the -concatenation of _Lists_. - - -*/ -EOF -sed -e "261r tmp" /Users/vsc/git/yap-6.3/library/lists.yap > x - mv x /Users/vsc/git/yap-6.3/library/lists.yap - -#true -cat << "EOF" > tmp -/** @pred last(+ _List_,? _Last_) - - -True when _List_ is a list and _Last_ is identical to its last element. - - -*/ -EOF -sed -e "261r tmp" /Users/vsc/git/yap-6.3/library/lists.yap > x - mv x /Users/vsc/git/yap-6.3/library/lists.yap - -#true -cat << "EOF" > tmp -/** @pred intersection(+ _Set1_, + _Set2_, + _Set3_) - - -Succeeds if _Set3_ unifies with the intersection of _Set1_ and - _Set2_. _Set1_ and _Set2_ are lists without duplicates. They -need not be ordered. - - -*/ -EOF -sed -e "261r tmp" /Users/vsc/git/yap-6.3/library/lists.yap > x - mv x /Users/vsc/git/yap-6.3/library/lists.yap - -#true -cat << "EOF" > tmp -/** @pred flatten(+ _List_, ? _FlattenedList_) - - -Flatten a list of lists _List_ into a single list - _FlattenedList_. - -~~~~~{.prolog} -?- flatten([[1],[2,3],[4,[5,6],7,8]],L). - -L = [1,2,3,4,5,6,7,8] ? ; - -no -~~~~~ - - -*/ -EOF -sed -e "261r tmp" /Users/vsc/git/yap-6.3/library/lists.yap > x - mv x /Users/vsc/git/yap-6.3/library/lists.yap - -#true -cat << "EOF" > tmp -/** @pred append(? _Lists_,? _Combined_) - -Holds if the lists of _Lists_ can be concatenated as a - _Combined_ list. - - -*/ -EOF -sed -e "261r tmp" /Users/vsc/git/yap-6.3/library/lists.yap > x - mv x /Users/vsc/git/yap-6.3/library/lists.yap - -#true -cat << "EOF" > tmp -/** @pred maplist(+ _Pred_,+ _List1_,+ _List2_,+ _List4_) - -Apply _Pred_ on all successive triples of elements from _List1_, - _List2_ and _List3_. Fails if _Pred_ can not be applied to a -triple. See the example above. - - - - - */ -EOF -sed -e "98r tmp" /Users/vsc/git/yap-6.3/library/maplist.yap > x - mv x /Users/vsc/git/yap-6.3/library/maplist.yap - -#true -cat << "EOF" > tmp -/** @pred maplist(+ _Pred_,+ _List1_,+ _List2_) - -Apply _Pred_ on all successive pairs of elements from - _List1_ and - _List2_. Fails if _Pred_ can not be applied to a -pair. See the example above. - - -*/ -EOF -sed -e "98r tmp" /Users/vsc/git/yap-6.3/library/maplist.yap > x - mv x /Users/vsc/git/yap-6.3/library/maplist.yap - -#false -cat << "EOF" > tmp -/** @pred matlab_zeros(+ _Size_, ? _Array_) - - -MATLAB will create a vector of zeros of size _Size_, and if - _Array_ is bound to an atom, store the array in the matlab -variable with name _Array_. Corresponds to the MATLAB command -`zeros`. - - -*/ -EOF -sed -e "192r tmp" /Users/vsc/git/yap-6.3/library/matlab.yap > x - mv x /Users/vsc/git/yap-6.3/library/matlab.yap - -#false -cat << "EOF" > tmp -/** @pred matlab_zeros(+ _SizeX_, + _SizeY_, ? _Array_) - -MATLAB will create an array of zeros of size _SizeX_ and - _SizeY_, and if _Array_ is bound to an atom, store the array -in the matlab variable with name _Array_. Corresponds to the -MATLAB command `zeros`. - - -*/ -EOF -sed -e "192r tmp" /Users/vsc/git/yap-6.3/library/matlab.yap > x - mv x /Users/vsc/git/yap-6.3/library/matlab.yap - -#false -cat << "EOF" > tmp -/** @pred matlab_zeros(+ _SizeX_, + _SizeY_, + _SizeZ_, ? _Array_) - -MATLAB will create an array of zeros of size _SizeX_, _SizeY_, -and _SizeZ_. If _Array_ is bound to an atom, store the array -in the matlab variable with name _Array_. Corresponds to the -MATLAB command `zeros`. - - - - - */ -EOF -sed -e "192r tmp" /Users/vsc/git/yap-6.3/library/matlab.yap > x - mv x /Users/vsc/git/yap-6.3/library/matlab.yap - -#false -cat << "EOF" > tmp -/** @pred matlab_vector(+ _Size_, + _List_, ? _Array_) - - -MATLAB will create a vector of floats of size _Size_, initialized -from the list _List_, and if _Array_ is bound to an atom, -store the array in the matlab variable with name _Array_. - - -*/ -EOF -sed -e "192r tmp" /Users/vsc/git/yap-6.3/library/matlab.yap > x - mv x /Users/vsc/git/yap-6.3/library/matlab.yap - -#false -cat << "EOF" > tmp -/** @pred matlab_set(+ _MatVar_, + _X_, + _Y_, + _Value_) - - -Call MATLAB to set element _MatVar_( _X_, _Y_) to - _Value_. Notice that this command uses the MATLAB array access -convention. - - -*/ -EOF -sed -e "192r tmp" /Users/vsc/git/yap-6.3/library/matlab.yap > x - mv x /Users/vsc/git/yap-6.3/library/matlab.yap - -#false -cat << "EOF" > tmp -/** @pred matlab_sequence(+ _Min_, + _Max_, ? _Array_) - - -MATLAB will create a sequence going from _Min_ to _Max_, and -if _Array_ is bound to an atom, store the sequence in the matlab -variable with name _Array_. - - -*/ -EOF -sed -e "192r tmp" /Users/vsc/git/yap-6.3/library/matlab.yap > x - mv x /Users/vsc/git/yap-6.3/library/matlab.yap - -#false -cat << "EOF" > tmp -/** @pred matlab_on - - -Holds if a matlab session is on. - - -*/ -EOF -sed -e "192r tmp" /Users/vsc/git/yap-6.3/library/matlab.yap > x - mv x /Users/vsc/git/yap-6.3/library/matlab.yap - -#false -cat << "EOF" > tmp -/** @pred matlab_matrix(+ _SizeX_, + _SizeY_, + _List_, ? _Array_) - - -MATLAB will create an array of floats of size _SizeX_ and _SizeY_, -initialized from the list _List_, and if _Array_ is bound to -an atom, store the array in the matlab variable with name _Array_. - - -*/ -EOF -sed -e "192r tmp" /Users/vsc/git/yap-6.3/library/matlab.yap > x - mv x /Users/vsc/git/yap-6.3/library/matlab.yap - -#false -cat << "EOF" > tmp -/** @pred matlab_item1(+ _MatVar_, + _X_, ? _Val_) - - -Read or set MATLAB _MatVar_( _X_) from/to _Val_. Use -MATLAB notation for matrix access (ie, starting from 1). - - -*/ -EOF -sed -e "192r tmp" /Users/vsc/git/yap-6.3/library/matlab.yap > x - mv x /Users/vsc/git/yap-6.3/library/matlab.yap - -#false -cat << "EOF" > tmp -/** @pred matlab_item1(+ _MatVar_, + _X_, + _Y_, ? _Val_) - -Read or set MATLAB _MatVar_( _X_, _Y_) from/to _Val_. Use -MATLAB notation for matrix access (ie, starting from 1). - - -*/ -EOF -sed -e "192r tmp" /Users/vsc/git/yap-6.3/library/matlab.yap > x - mv x /Users/vsc/git/yap-6.3/library/matlab.yap - -#false -cat << "EOF" > tmp -/** @pred matlab_item(+ _MatVar_, + _X_, ? _Val_) - - -Read or set MATLAB _MatVar_( _X_) from/to _Val_. Use -`C` notation for matrix access (ie, starting from 0). - - -*/ -EOF -sed -e "192r tmp" /Users/vsc/git/yap-6.3/library/matlab.yap > x - mv x /Users/vsc/git/yap-6.3/library/matlab.yap - -#false -cat << "EOF" > tmp -/** @pred matlab_item(+ _MatVar_, + _X_, + _Y_, ? _Val_) - -Read or set MATLAB _MatVar_( _X_, _Y_) from/to _Val_. Use -`C` notation for matrix access (ie, starting from 0). - - -*/ -EOF -sed -e "192r tmp" /Users/vsc/git/yap-6.3/library/matlab.yap > x - mv x /Users/vsc/git/yap-6.3/library/matlab.yap - -#false -cat << "EOF" > tmp -/** @pred matlab_initialized_cells(+ _SizeX_, + _SizeY_, + _List_, ? _Array_) - - -MATLAB will create an array of cells of size _SizeX_ and - _SizeY_, initialized from the list _List_, and if _Array_ -is bound to an atom, store the array in the matlab variable with name - _Array_. - - -*/ -EOF -sed -e "192r tmp" /Users/vsc/git/yap-6.3/library/matlab.yap > x - mv x /Users/vsc/git/yap-6.3/library/matlab.yap - -#false -cat << "EOF" > tmp -/** @pred matlab_get_variable(+ _MatVar_, - _List_) - - -Unify MATLAB variable _MatVar_ with the List _List_. - - -*/ -EOF -sed -e "192r tmp" /Users/vsc/git/yap-6.3/library/matlab.yap > x - mv x /Users/vsc/git/yap-6.3/library/matlab.yap - -#false -cat << "EOF" > tmp -/** @pred matlab_eval_string(+ _Command_, - _Answer_) - -MATLAB will evaluate the command _Command_ and unify _Answer_ -with a string reporting the result. - - -*/ -EOF -sed -e "192r tmp" /Users/vsc/git/yap-6.3/library/matlab.yap > x - mv x /Users/vsc/git/yap-6.3/library/matlab.yap - -#false -cat << "EOF" > tmp -/** @pred matlab_eval_string(+ _Command_) - - -Holds if matlab evaluated successfully the command _Command_. - - -*/ -EOF -sed -e "192r tmp" /Users/vsc/git/yap-6.3/library/matlab.yap > x - mv x /Users/vsc/git/yap-6.3/library/matlab.yap - -#false -cat << "EOF" > tmp -/** @pred matlab_cells(+ _Size_, ? _Array_) - - -MATLAB will create an empty vector of cells of size _Size_, and if - _Array_ is bound to an atom, store the array in the matlab -variable with name _Array_. Corresponds to the MATLAB command `cells`. - - -*/ -EOF -sed -e "192r tmp" /Users/vsc/git/yap-6.3/library/matlab.yap > x - mv x /Users/vsc/git/yap-6.3/library/matlab.yap - -#false -cat << "EOF" > tmp -/** @pred matlab_cells(+ _SizeX_, + _SizeY_, ? _Array_) - -MATLAB will create an empty array of cells of size _SizeX_ and - _SizeY_, and if _Array_ is bound to an atom, store the array -in the matlab variable with name _Array_. Corresponds to the -MATLAB command `cells`. - - -*/ -EOF -sed -e "192r tmp" /Users/vsc/git/yap-6.3/library/matlab.yap > x - mv x /Users/vsc/git/yap-6.3/library/matlab.yap - -#false -cat << "EOF" > tmp -/** @pred close_matlab - - -Stop the current matlab session. - - -*/ -EOF -sed -e "192r tmp" /Users/vsc/git/yap-6.3/library/matlab.yap > x - mv x /Users/vsc/git/yap-6.3/library/matlab.yap - -#false -cat << "EOF" > tmp -/** @pred matrix_type(+ _Matrix_,- _Type_) - - - -Unify _NElems_ with the type of the elements in _Matrix_. - - -*/ -EOF -sed -e "571r tmp" /Users/vsc/git/yap-6.3/library/matrix.yap > x - mv x /Users/vsc/git/yap-6.3/library/matrix.yap - -#false -cat << "EOF" > tmp -/** @pred matrix_transpose(+ _Matrix_,- _Transpose_) - - - -Transpose matrix _Matrix_ to _Transpose_. Equivalent to: - -~~~~~ -matrix_transpose(Matrix,Transpose) :- - matrix_shuffle(Matrix,[1,0],Transpose). -~~~~~ - - -*/ -EOF -sed -e "571r tmp" /Users/vsc/git/yap-6.3/library/matrix.yap > x - mv x /Users/vsc/git/yap-6.3/library/matrix.yap - -#false -cat << "EOF" > tmp -/** @pred matrix_to_list(+ _Matrix_,- _Elems_) - - - -Unify _Elems_ with the list including all the elements in _Matrix_. - - -*/ -EOF -sed -e "571r tmp" /Users/vsc/git/yap-6.3/library/matrix.yap > x - mv x /Users/vsc/git/yap-6.3/library/matrix.yap - -#false -cat << "EOF" > tmp -/** @pred matrix_sum(+ _Matrix_,+ _Sum_) - - - -Unify _Sum_ with the sum of all elements in matrix _Matrix_. - - -*/ -EOF -sed -e "571r tmp" /Users/vsc/git/yap-6.3/library/matrix.yap > x - mv x /Users/vsc/git/yap-6.3/library/matrix.yap - -#false -cat << "EOF" > tmp -/** @pred matrix_size(+ _Matrix_,- _NElems_) - - - -Unify _NElems_ with the number of elements for _Matrix_. - - -*/ -EOF -sed -e "571r tmp" /Users/vsc/git/yap-6.3/library/matrix.yap > x - mv x /Users/vsc/git/yap-6.3/library/matrix.yap - -#false -cat << "EOF" > tmp -/** @pred matrix_shuffle(+ _Matrix_,+ _NewOrder_,- _Shuffle_) - - - -Shuffle the dimensions of matrix _Matrix_ according to - _NewOrder_. The list _NewOrder_ must have all the dimensions of - _Matrix_, starting from 0. - - -*/ -EOF -sed -e "571r tmp" /Users/vsc/git/yap-6.3/library/matrix.yap > x - mv x /Users/vsc/git/yap-6.3/library/matrix.yap - -#false -cat << "EOF" > tmp -/** @pred matrix_set_all(+ _Matrix_,+ _Elem_) - - - -Set all element of _Matrix_ to _Elem_. - - -*/ -EOF -sed -e "571r tmp" /Users/vsc/git/yap-6.3/library/matrix.yap > x - mv x /Users/vsc/git/yap-6.3/library/matrix.yap - -#false -cat << "EOF" > tmp -/** @pred matrix_set(+ _Matrix_[+ _Position_],+ _Elem_) - - -Set the element of _Matrix_[ _Position_] to _Elem_. - - -*/ -EOF -sed -e "571r tmp" /Users/vsc/git/yap-6.3/library/matrix.yap > x - mv x /Users/vsc/git/yap-6.3/library/matrix.yap - -#false -cat << "EOF" > tmp -/** @pred matrix_set(+ _Matrix_,+ _Position_,+ _Elem_) - - - -Set the element of _Matrix_ at position - _Position_ to _Elem_. - - -*/ -EOF -sed -e "571r tmp" /Users/vsc/git/yap-6.3/library/matrix.yap > x - mv x /Users/vsc/git/yap-6.3/library/matrix.yap - -#false -cat << "EOF" > tmp -/** @pred matrix_select(+ _Matrix_,+ _Dimension_,+ _Index_,- _New_) - - - -Select from _Matrix_ the elements who have _Index_ at - _Dimension_. - - -*/ -EOF -sed -e "571r tmp" /Users/vsc/git/yap-6.3/library/matrix.yap > x - mv x /Users/vsc/git/yap-6.3/library/matrix.yap - -#false -cat << "EOF" > tmp -/** @pred matrix_op_to_lines(+ _Matrix1_,+ _Lines_,+ _Op_,- _Result_) - - - - _Result_ is the result of applying _Op_ to all elements of - _Matrix1_, with the corresponding element in _Lines_ as the -second argument. Currently, only division (`/`) is supported. - - -*/ -EOF -sed -e "571r tmp" /Users/vsc/git/yap-6.3/library/matrix.yap > x - mv x /Users/vsc/git/yap-6.3/library/matrix.yap - -#false -cat << "EOF" > tmp -/** @pred matrix_op_to_cols(+ _Matrix1_,+ _Cols_,+ _Op_,- _Result_) - - - - _Result_ is the result of applying _Op_ to all elements of - _Matrix1_, with the corresponding element in _Cols_ as the -second argument. Currently, only addition (`+`) is -supported. Notice that _Cols_ will have n-1 dimensions. - - -*/ -EOF -sed -e "571r tmp" /Users/vsc/git/yap-6.3/library/matrix.yap > x - mv x /Users/vsc/git/yap-6.3/library/matrix.yap - -#false -cat << "EOF" > tmp -/** @pred matrix_op_to_all(+ _Matrix1_,+ _Op_,+ _Operand_,- _Result_) - - - - _Result_ is the result of applying _Op_ to all elements of - _Matrix1_, with _Operand_ as the second argument. Currently, -only addition (`+`), multiplication (`\*`), and division -(`/`) are supported. - - -*/ -EOF -sed -e "571r tmp" /Users/vsc/git/yap-6.3/library/matrix.yap > x - mv x /Users/vsc/git/yap-6.3/library/matrix.yap - -#false -cat << "EOF" > tmp -/** @pred matrix_op(+ _Matrix1_,+ _Matrix2_,+ _Op_,- _Result_) - - - - _Result_ is the result of applying _Op_ to matrix _Matrix1_ -and _Matrix2_. Currently, only addition (`+`) is supported. - - -*/ -EOF -sed -e "571r tmp" /Users/vsc/git/yap-6.3/library/matrix.yap > x - mv x /Users/vsc/git/yap-6.3/library/matrix.yap - -#false -cat << "EOF" > tmp -/** @pred matrix_offset_to_arg(+ _Matrix_,- _Offset_,+ _Position_) - - - -Given a position _Position _ for matrix _Matrix_ return the -corresponding numerical _Offset_ from the beginning of the matrix. - - -*/ -EOF -sed -e "571r tmp" /Users/vsc/git/yap-6.3/library/matrix.yap > x - mv x /Users/vsc/git/yap-6.3/library/matrix.yap - -#false -cat << "EOF" > tmp -/** @pred matrix_new_set(? _Dims_,+ _OldMatrix_,+ _Value_,- _NewMatrix_) - - - -Create a new matrix _NewMatrix_ of type _Type_, with dimensions - _Dims_. The elements of _NewMatrix_ are set to _Value_. - - -*/ -EOF -sed -e "571r tmp" /Users/vsc/git/yap-6.3/library/matrix.yap > x - mv x /Users/vsc/git/yap-6.3/library/matrix.yap - -#false -cat << "EOF" > tmp -/** @pred matrix_new(+ _Type_,+ _Dims_,- _Matrix_) - - - -Create a new matrix _Matrix_ of type _Type_, which may be one of -`ints` or `floats`, and with a list of dimensions _Dims_. -The matrix will be initialised to zeros. - -~~~~~ -?- matrix_new(ints,[2,3],Matrix). - -Matrix = {..} -~~~~~ -Notice that currently YAP will always write a matrix of numbers as `{..}`. - - -*/ -EOF -sed -e "571r tmp" /Users/vsc/git/yap-6.3/library/matrix.yap > x - mv x /Users/vsc/git/yap-6.3/library/matrix.yap - -#false -cat << "EOF" > tmp -/** @pred matrix_new(+ _Type_,+ _Dims_,+ _List_,- _Matrix_) - - -Create a new matrix _Matrix_ of type _Type_, which may be one of -`ints` or `floats`, with dimensions _Dims_, and -initialised from list _List_. - - -*/ -EOF -sed -e "571r tmp" /Users/vsc/git/yap-6.3/library/matrix.yap > x - mv x /Users/vsc/git/yap-6.3/library/matrix.yap - -#false -cat << "EOF" > tmp -/** @pred matrix_ndims(+ _Matrix_,- _Dims_) - - - -Unify _NDims_ with the number of dimensions for _Matrix_. - - -*/ -EOF -sed -e "571r tmp" /Users/vsc/git/yap-6.3/library/matrix.yap > x - mv x /Users/vsc/git/yap-6.3/library/matrix.yap - -#false -cat << "EOF" > tmp -/** @pred matrix_minarg(+ _Matrix_,+ _Minarg_) - - - -Unify _Min_ with the position of the minimum in matrix _Matrix_. - - -*/ -EOF -sed -e "571r tmp" /Users/vsc/git/yap-6.3/library/matrix.yap > x - mv x /Users/vsc/git/yap-6.3/library/matrix.yap - -#false -cat << "EOF" > tmp -/** @pred matrix_min(+ _Matrix_,+ _Min_) - - - -Unify _Min_ with the minimum in matrix _Matrix_. - - -*/ -EOF -sed -e "571r tmp" /Users/vsc/git/yap-6.3/library/matrix.yap > x - mv x /Users/vsc/git/yap-6.3/library/matrix.yap - -#false -cat << "EOF" > tmp -/** @pred matrix_maxarg(+ _Matrix_,+ _Maxarg_) - - - -Unify _Max_ with the position of the maximum in matrix _Matrix_. - - -*/ -EOF -sed -e "571r tmp" /Users/vsc/git/yap-6.3/library/matrix.yap > x - mv x /Users/vsc/git/yap-6.3/library/matrix.yap - -#false -cat << "EOF" > tmp -/** @pred matrix_max(+ _Matrix_,+ _Max_) - - - -Unify _Max_ with the maximum in matrix _Matrix_. - - -*/ -EOF -sed -e "571r tmp" /Users/vsc/git/yap-6.3/library/matrix.yap > x - mv x /Users/vsc/git/yap-6.3/library/matrix.yap - -#false -cat << "EOF" > tmp -/** @pred matrix_inc(+ _Matrix_,+ _Position_,- _Element_) - - -Increment the element of _Matrix_ at position _Position_ and -unify with _Element_. - - -*/ -EOF -sed -e "571r tmp" /Users/vsc/git/yap-6.3/library/matrix.yap > x - mv x /Users/vsc/git/yap-6.3/library/matrix.yap - -#false -cat << "EOF" > tmp -/** @pred matrix_inc(+ _Matrix_,+ _Position_) - - - -Increment the element of _Matrix_ at position _Position_. - - -*/ -EOF -sed -e "571r tmp" /Users/vsc/git/yap-6.3/library/matrix.yap > x - mv x /Users/vsc/git/yap-6.3/library/matrix.yap - -#false -cat << "EOF" > tmp -/** @pred matrix_get(+ _Matrix_[+ _Position_],- _Elem_) - - -Unify _Elem_ with the element _Matrix_[ _Position_]. - - -*/ -EOF -sed -e "571r tmp" /Users/vsc/git/yap-6.3/library/matrix.yap > x - mv x /Users/vsc/git/yap-6.3/library/matrix.yap - -#false -cat << "EOF" > tmp -/** @pred matrix_get(+ _Matrix_,+ _Position_,- _Elem_) - - - -Unify _Elem_ with the element of _Matrix_ at position - _Position_. - - -*/ -EOF -sed -e "571r tmp" /Users/vsc/git/yap-6.3/library/matrix.yap > x - mv x /Users/vsc/git/yap-6.3/library/matrix.yap - -#false -cat << "EOF" > tmp -/** @pred matrix_expand(+ _Matrix_,+ _NewDimensions_,- _New_) - - - -Expand _Matrix_ to occupy new dimensions. The elements in - _NewDimensions_ are either 0, for an existing dimension, or a -positive integer with the size of the new dimension. - - -*/ -EOF -sed -e "571r tmp" /Users/vsc/git/yap-6.3/library/matrix.yap > x - mv x /Users/vsc/git/yap-6.3/library/matrix.yap - -#false -cat << "EOF" > tmp -/** @pred matrix_dims(+ _Matrix_,- _Dims_) - - - -Unify _Dims_ with a list of dimensions for _Matrix_. - - -*/ -EOF -sed -e "571r tmp" /Users/vsc/git/yap-6.3/library/matrix.yap > x - mv x /Users/vsc/git/yap-6.3/library/matrix.yap - -#false -cat << "EOF" > tmp -/** @pred matrix_dec(+ _Matrix_,+ _Position_,- _Element_) - - -Decrement the element of _Matrix_ at position _Position_ and -unify with _Element_. - - -*/ -EOF -sed -e "571r tmp" /Users/vsc/git/yap-6.3/library/matrix.yap > x - mv x /Users/vsc/git/yap-6.3/library/matrix.yap - -#false -cat << "EOF" > tmp -/** @pred matrix_dec(+ _Matrix_,+ _Position_) - - - -Decrement the element of _Matrix_ at position _Position_. - - -*/ -EOF -sed -e "571r tmp" /Users/vsc/git/yap-6.3/library/matrix.yap > x - mv x /Users/vsc/git/yap-6.3/library/matrix.yap - -#false -cat << "EOF" > tmp -/** @pred matrix_column(+ _Matrix_,+ _Column_,- _NewMatrix_) - - - -Select from _Matrix_ the column matching _Column_ as new matrix _NewMatrix_. _Column_ must have one less dimension than the original matrix. - - - - */ -EOF -sed -e "571r tmp" /Users/vsc/git/yap-6.3/library/matrix.yap > x - mv x /Users/vsc/git/yap-6.3/library/matrix.yap - -#false -cat << "EOF" > tmp -/** @pred matrix_arg_to_offset(+ _Matrix_,+ _Position_,- _Offset_) - - - -Given matrix _Matrix_ return what is the numerical _Offset_ of -the element at _Position_. - - -*/ -EOF -sed -e "571r tmp" /Users/vsc/git/yap-6.3/library/matrix.yap > x - mv x /Users/vsc/git/yap-6.3/library/matrix.yap - -#false -cat << "EOF" > tmp -/** @pred matrix_agg_lines(+ _Matrix_,+Operator,+ _Aggregate_) - - - -If _Matrix_ is a n-dimensional matrix, unify _Aggregate_ with -the n-1 dimensional matrix where each element is obtained by adding all -_Matrix_ elements with same last n-1 index. Currently, only addition is supported. - - -*/ -EOF -sed -e "571r tmp" /Users/vsc/git/yap-6.3/library/matrix.yap > x - mv x /Users/vsc/git/yap-6.3/library/matrix.yap - -#false -cat << "EOF" > tmp -/** @pred matrix_agg_cols(+ _Matrix_,+Operator,+ _Aggregate_) - - - -If _Matrix_ is a n-dimensional matrix, unify _Aggregate_ with -the one dimensional matrix where each element is obtained by adding all -Matrix elements with same first index. Currently, only addition is supported. - - -*/ -EOF -sed -e "571r tmp" /Users/vsc/git/yap-6.3/library/matrix.yap > x - mv x /Users/vsc/git/yap-6.3/library/matrix.yap - -#false -cat << "EOF" > tmp -/** @pred matrix_add(+ _Matrix_,+ _Position_,+ _Operand_) - - - -Add _Operand_ to the element of _Matrix_ at position - _Position_. - - -*/ -EOF -sed -e "571r tmp" /Users/vsc/git/yap-6.3/library/matrix.yap > x - mv x /Users/vsc/git/yap-6.3/library/matrix.yap - -#true -cat << "EOF" > tmp -/** @pred ?_LHS_ <== ?_RHS_ is semidet - - -General matrix assignment operation. It evaluates the right-hand side -and then acts different according to the -left-hand side and to the matrix: - -+ if _LHS_ is part of an integer or floating-point matrix, -perform non-backtrackable assignment. -+ other unify left-hand side and right-hand size. - - -The right-hand side supports the following operators: - -+ `[]/2` - - written as _M_[ _Offset_]: obtain an element or list of elements -of matrix _M_ at offset _Offset_. - -+ `matrix/1` - - create a vector from a list - -+ `matrix/2` - - create a matrix from a list. Options are: - + dim= -a list of dimensions - + type= -integers, floating-point or terms - + base= -a list of base offsets per dimension (all must be the same for arrays of -integers and floating-points - -+ `matrix/3` - - create matrix giving two options - - + `dim/1` - list with matrix dimensions - - + `nrow/1` - number of rows in bi-dimensional matrix - -+ `ncol/1` - number of columns in bi-dimensional matrix - -+ `length/1` - size of a matrix - -+ `size/1` - size of a matrix - -+ `max/1` - - maximum element of a numeric matrix - -+ `maxarg/1` - - argument of maximum element of a numeric matrix - -+ `min/1` - - minimum element of a numeric matrix - -+ `minarg/1` - - argument of minimum element of a numeric matrix - -+ `list/1` - - represent matrix as a list - -+ `lists/2` - - represent matrix as list of embedded lists - -+ `../2` - - _I_.. _J_ generates a list with all integers from _I_ to - _J_, included. - -+ `+/2` - - add two numbers, add two matrices element-by-element, or add a number to -all elements of a matrix or list. - -+ `-/2 ` - - subtract two numbers, subtract two matrices or lists element-by-element, or subtract a number from -all elements of a matrix or list - -+ `* /2` - - multiply two numbers, multiply two matrices or lists element-by-element, or multiply a number from -all elements of a matrix or list - - + `log/1` - - natural logarithm of a number, matrix or list - -+ `exp/1 ` - - natural exponentiation of a number, matrix or list - -*/ -EOF -sed -e "571r tmp" /Users/vsc/git/yap-6.3/library/matrix.yap > x - mv x /Users/vsc/git/yap-6.3/library/matrix.yap - -#true -cat << "EOF" > tmp -/** @pred nb_queue_size(+ _Queue_, - _Size_) - - -Unify _Size_ with the number of elements in the queue _Queue_. - - -*/ -EOF -sed -e "190r tmp" /Users/vsc/git/yap-6.3/library/nb.yap > x - mv x /Users/vsc/git/yap-6.3/library/nb.yap - -#true -cat << "EOF" > tmp -/** @pred nb_queue_peek(+ _Queue_, - _Element_) - - - _Element_ is the front of the queue _Queue_. Fail if -the queue is empty. - - -*/ -EOF -sed -e "190r tmp" /Users/vsc/git/yap-6.3/library/nb.yap > x - mv x /Users/vsc/git/yap-6.3/library/nb.yap - -#true -cat << "EOF" > tmp -/** @pred nb_queue_enqueue(+ _Queue_, + _Element_) - - -Add _Element_ to the front of the queue _Queue_. - - -*/ -EOF -sed -e "190r tmp" /Users/vsc/git/yap-6.3/library/nb.yap > x - mv x /Users/vsc/git/yap-6.3/library/nb.yap - -#true -cat << "EOF" > tmp -/** @pred nb_queue_empty(+ _Queue_) - - -Succeeds if _Queue_ is empty. - - -*/ -EOF -sed -e "190r tmp" /Users/vsc/git/yap-6.3/library/nb.yap > x - mv x /Users/vsc/git/yap-6.3/library/nb.yap - -#true -cat << "EOF" > tmp -/** @pred nb_queue_dequeue(+ _Queue_, - _Element_) - - -Remove _Element_ from the front of the queue _Queue_. Fail if -the queue is empty. - - -*/ -EOF -sed -e "190r tmp" /Users/vsc/git/yap-6.3/library/nb.yap > x - mv x /Users/vsc/git/yap-6.3/library/nb.yap - -#true -cat << "EOF" > tmp -/** @pred nb_queue_close(+ _Queue_, - _Head_, ? _Tail_) - - -Unify the queue _Queue_ with a difference list - _Head_- _Tail_. The queue will now be empty and no further -elements can be added. - - -*/ -EOF -sed -e "190r tmp" /Users/vsc/git/yap-6.3/library/nb.yap > x - mv x /Users/vsc/git/yap-6.3/library/nb.yap - -#true -cat << "EOF" > tmp -/** @pred nb_queue(- _Queue_) - - -Create a _Queue_. - - -*/ -EOF -sed -e "190r tmp" /Users/vsc/git/yap-6.3/library/nb.yap > x - mv x /Users/vsc/git/yap-6.3/library/nb.yap - -#true -cat << "EOF" > tmp -/** @pred nb_heap_size(+ _Heap_, - _Size_) - - -Unify _Size_ with the number of elements in the heap _Heap_. - - -*/ -EOF -sed -e "190r tmp" /Users/vsc/git/yap-6.3/library/nb.yap > x - mv x /Users/vsc/git/yap-6.3/library/nb.yap - -#true -cat << "EOF" > tmp -/** @pred nb_heap_peek(+ _Heap_, - _Key_, - _Value_)) - - - _Key_- _Value_ is the element with smallest _Key_ in the heap - _Heap_. Fail if the heap is empty. - - -*/ -EOF -sed -e "190r tmp" /Users/vsc/git/yap-6.3/library/nb.yap > x - mv x /Users/vsc/git/yap-6.3/library/nb.yap - -#true -cat << "EOF" > tmp -/** @pred nb_heap_empty(+ _Heap_) - - -Succeeds if _Heap_ is empty. - - -*/ -EOF -sed -e "190r tmp" /Users/vsc/git/yap-6.3/library/nb.yap > x - mv x /Users/vsc/git/yap-6.3/library/nb.yap - -#true -cat << "EOF" > tmp -/** @pred nb_heap_del(+ _Heap_, - _Key_, - _Value_) - - -Remove element _Key_- _Value_ with smallest _Value_ in heap - _Heap_. Fail if the heap is empty. - - -*/ -EOF -sed -e "190r tmp" /Users/vsc/git/yap-6.3/library/nb.yap > x - mv x /Users/vsc/git/yap-6.3/library/nb.yap - -#true -cat << "EOF" > tmp -/** @pred nb_heap_close(+ _Heap_) - - -Close the heap _Heap_: no further elements can be added. - - -*/ -EOF -sed -e "190r tmp" /Users/vsc/git/yap-6.3/library/nb.yap > x - mv x /Users/vsc/git/yap-6.3/library/nb.yap - -#true -cat << "EOF" > tmp -/** @pred nb_heap_add(+ _Heap_, + _Key_, + _Value_) - - -Add _Key_- _Value_ to the heap _Heap_. The key is sorted on - _Key_ only. - - -*/ -EOF -sed -e "190r tmp" /Users/vsc/git/yap-6.3/library/nb.yap > x - mv x /Users/vsc/git/yap-6.3/library/nb.yap - -#true -cat << "EOF" > tmp -/** @pred nb_heap(+ _DefaultSize_,- _Heap_) - - -Create a _Heap_ with default size _DefaultSize_. Note that size -will expand as needed. - - -*/ -EOF -sed -e "190r tmp" /Users/vsc/git/yap-6.3/library/nb.yap > x - mv x /Users/vsc/git/yap-6.3/library/nb.yap - -#true -cat << "EOF" > tmp -/** @pred nb_beam_size(+ _Beam_, - _Size_) - - -Unify _Size_ with the number of elements in the beam _Beam_. - - -*/ -EOF -sed -e "190r tmp" /Users/vsc/git/yap-6.3/library/nb.yap > x - mv x /Users/vsc/git/yap-6.3/library/nb.yap - -#true -cat << "EOF" > tmp -/** @pred nb_beam_peek(+ _Beam_, - _Key_, - _Value_)) - - - _Key_- _Value_ is the element with smallest _Key_ in the beam - _Beam_. Fail if the beam is empty. - - -*/ -EOF -sed -e "190r tmp" /Users/vsc/git/yap-6.3/library/nb.yap > x - mv x /Users/vsc/git/yap-6.3/library/nb.yap - -#true -cat << "EOF" > tmp -/** @pred nb_beam_empty(+ _Beam_) - - -Succeeds if _Beam_ is empty. - - - - - */ -EOF -sed -e "190r tmp" /Users/vsc/git/yap-6.3/library/nb.yap > x - mv x /Users/vsc/git/yap-6.3/library/nb.yap - -#true -cat << "EOF" > tmp -/** @pred nb_beam_del(+ _Beam_, - _Key_, - _Value_) - - -Remove element _Key_- _Value_ with smallest _Value_ in beam - _Beam_. Fail if the beam is empty. - - -*/ -EOF -sed -e "190r tmp" /Users/vsc/git/yap-6.3/library/nb.yap > x - mv x /Users/vsc/git/yap-6.3/library/nb.yap - -#true -cat << "EOF" > tmp -/** @pred nb_beam_close(+ _Beam_) - - -Close the beam _Beam_: no further elements can be added. - - -*/ -EOF -sed -e "190r tmp" /Users/vsc/git/yap-6.3/library/nb.yap > x - mv x /Users/vsc/git/yap-6.3/library/nb.yap - -#true -cat << "EOF" > tmp -/** @pred nb_beam_add(+ _Beam_, + _Key_, + _Value_) - - -Add _Key_- _Value_ to the beam _Beam_. The key is sorted on - _Key_ only. - - -*/ -EOF -sed -e "190r tmp" /Users/vsc/git/yap-6.3/library/nb.yap > x - mv x /Users/vsc/git/yap-6.3/library/nb.yap - -#true -cat << "EOF" > tmp -/** @pred nb_beam(+ _DefaultSize_,- _Beam_) - - -Create a _Beam_ with default size _DefaultSize_. Note that size -is fixed throughout. - - -*/ -EOF -sed -e "190r tmp" /Users/vsc/git/yap-6.3/library/nb.yap > x - mv x /Users/vsc/git/yap-6.3/library/nb.yap - -#false -cat << "EOF" > tmp -/** @pred ord_union(+ _Sets_, ? _Union_) - - -Holds when _Union_ is the union of the lists _Sets_. - - -*/ -EOF -sed -e "175r tmp" /Users/vsc/git/yap-6.3/library/ordsets.yap > x - mv x /Users/vsc/git/yap-6.3/library/ordsets.yap - -#false -cat << "EOF" > tmp -/** @pred ord_union(+ _Set1_, + _Set2_, ? _Union_, ? _Diff_) - -Holds when _Union_ is the union of _Set1_ and _Set2_ and - _Diff_ is the difference. - - - - - */ -EOF -sed -e "175r tmp" /Users/vsc/git/yap-6.3/library/ordsets.yap > x - mv x /Users/vsc/git/yap-6.3/library/ordsets.yap - -#false -cat << "EOF" > tmp -/** @pred ord_union(+ _Set1_, + _Set2_, ? _Union_) - -Holds when _Union_ is the union of _Set1_ and _Set2_. - - -*/ -EOF -sed -e "175r tmp" /Users/vsc/git/yap-6.3/library/ordsets.yap > x - mv x /Users/vsc/git/yap-6.3/library/ordsets.yap - -#false -cat << "EOF" > tmp -/** @pred ord_symdiff(+ _Set1_, + _Set2_, ? _Difference_) - - -Holds when _Difference_ is the symmetric difference of _Set1_ -and _Set2_. - - -*/ -EOF -sed -e "175r tmp" /Users/vsc/git/yap-6.3/library/ordsets.yap > x - mv x /Users/vsc/git/yap-6.3/library/ordsets.yap - -#false -cat << "EOF" > tmp -/** @pred ord_subtract(+ _Set1_, + _Set2_, ? _Difference_) - - -Holds when _Difference_ contains all and only the elements of _Set1_ -which are not also in _Set2_. - - -*/ -EOF -sed -e "175r tmp" /Users/vsc/git/yap-6.3/library/ordsets.yap > x - mv x /Users/vsc/git/yap-6.3/library/ordsets.yap - -#false -cat << "EOF" > tmp -/** @pred ord_subset(+ _Set1_, + _Set2_) - - -Holds when every element of the ordered set _Set1_ appears in the -ordered set _Set2_. - - -*/ -EOF -sed -e "175r tmp" /Users/vsc/git/yap-6.3/library/ordsets.yap > x - mv x /Users/vsc/git/yap-6.3/library/ordsets.yap - -#false -cat << "EOF" > tmp -/** @pred ord_setproduct(+ _Set1_, + _Set2_, - _Set_) - - -If Set1 and Set2 are ordered sets, Product will be an ordered -set of x1-x2 pairs. - - -*/ -EOF -sed -e "175r tmp" /Users/vsc/git/yap-6.3/library/ordsets.yap > x - mv x /Users/vsc/git/yap-6.3/library/ordsets.yap - -#false -cat << "EOF" > tmp -/** @pred ord_seteq(+ _Set1_, + _Set2_) - - -Holds when the two arguments represent the same set. - - -*/ -EOF -sed -e "175r tmp" /Users/vsc/git/yap-6.3/library/ordsets.yap > x - mv x /Users/vsc/git/yap-6.3/library/ordsets.yap - -#false -cat << "EOF" > tmp -/** @pred ord_member(+ _Element_, + _Set_) - - -Holds when _Element_ is a member of _Set_. - - -*/ -EOF -sed -e "175r tmp" /Users/vsc/git/yap-6.3/library/ordsets.yap > x - mv x /Users/vsc/git/yap-6.3/library/ordsets.yap - -#false -cat << "EOF" > tmp -/** @pred ord_intersection(+ _Set1_, + _Set2_, ? _Intersection_, ? _Diff_) - -Holds when Intersection is the ordered representation of _Set1_ -and _Set2_. _Diff_ is the difference between _Set2_ and _Set1_. - - -*/ -EOF -sed -e "175r tmp" /Users/vsc/git/yap-6.3/library/ordsets.yap > x - mv x /Users/vsc/git/yap-6.3/library/ordsets.yap - -#false -cat << "EOF" > tmp -/** @pred ord_intersection(+ _Set1_, + _Set2_, ? _Intersection_) - -Holds when Intersection is the ordered representation of _Set1_ -and _Set2_. - - -*/ -EOF -sed -e "175r tmp" /Users/vsc/git/yap-6.3/library/ordsets.yap > x - mv x /Users/vsc/git/yap-6.3/library/ordsets.yap - -#false -cat << "EOF" > tmp -/** @pred ord_intersect(+ _Set1_, + _Set2_) - - -Holds when the two ordered sets have at least one element in common. - - -*/ -EOF -sed -e "175r tmp" /Users/vsc/git/yap-6.3/library/ordsets.yap > x - mv x /Users/vsc/git/yap-6.3/library/ordsets.yap - -#false -cat << "EOF" > tmp -/** @pred ord_insert(+ _Set1_, + _Element_, ? _Set2_) - - -Inserting _Element_ in _Set1_ returns _Set2_. It should give -exactly the same result as `merge(Set1, [Element], Set2)`, but a -bit faster, and certainly more clearly. The same as ord_add_element/3. - - -*/ -EOF -sed -e "175r tmp" /Users/vsc/git/yap-6.3/library/ordsets.yap > x - mv x /Users/vsc/git/yap-6.3/library/ordsets.yap - -#false -cat << "EOF" > tmp -/** @pred ord_disjoint(+ _Set1_, + _Set2_) - - -Holds when the two ordered sets have no element in common. - - -*/ -EOF -sed -e "175r tmp" /Users/vsc/git/yap-6.3/library/ordsets.yap > x - mv x /Users/vsc/git/yap-6.3/library/ordsets.yap - -#false -cat << "EOF" > tmp -/** @pred ord_del_element(+ _Set1_, + _Element_, ? _Set2_) - - -Removing _Element_ from _Set1_ returns _Set2_. - - -*/ -EOF -sed -e "175r tmp" /Users/vsc/git/yap-6.3/library/ordsets.yap > x - mv x /Users/vsc/git/yap-6.3/library/ordsets.yap - -#false -cat << "EOF" > tmp -/** @pred ord_add_element(+ _Set1_, + _Element_, ? _Set2_) - - -Inserting _Element_ in _Set1_ returns _Set2_. It should give -exactly the same result as `merge(Set1, [Element], Set2)`, but a -bit faster, and certainly more clearly. The same as ord_insert/3. - - -*/ -EOF -sed -e "175r tmp" /Users/vsc/git/yap-6.3/library/ordsets.yap > x - mv x /Users/vsc/git/yap-6.3/library/ordsets.yap - -#true -cat << "EOF" > tmp -/** @pred merge(+ _List1_, + _List2_, - _Merged_) - - -Holds when _Merged_ is the stable merge of the two given lists. - -Notice that merge/3 will not remove duplicates, so merging -ordered sets will not necessarily result in an ordered set. Use -`ord_union/3` instead. - - -*/ -EOF -sed -e "175r tmp" /Users/vsc/git/yap-6.3/library/ordsets.yap > x - mv x /Users/vsc/git/yap-6.3/library/ordsets.yap - -#false -cat << "EOF" > tmp -/** @pred list_to_ord_set(+ _List_, ? _Set_) - - -Holds when _Set_ is the ordered representation of the set -represented by the unordered representation _List_. - - -*/ -EOF -sed -e "175r tmp" /Users/vsc/git/yap-6.3/library/ordsets.yap > x - mv x /Users/vsc/git/yap-6.3/library/ordsets.yap - -#false -cat << "EOF" > tmp -/** @pred ranunif(+ _Range_,- _I_) - - -ranunif/2 produces a uniformly distributed non-negative random -integer _I_ over a caller-specified range _R_. If range is _R_, -the result is in 0 .. _R_-1. - - - - - */ -EOF -sed -e "91r tmp" /Users/vsc/git/yap-6.3/library/prandom.yap > x - mv x /Users/vsc/git/yap-6.3/library/prandom.yap - -#false -cat << "EOF" > tmp -/** @pred ranstart(+ _Seed_) - -Initialize the random number generator with user-defined _Seed_. The -same _Seed_ always produces the same sequence of numbers. - - -*/ -EOF -sed -e "91r tmp" /Users/vsc/git/yap-6.3/library/prandom.yap > x - mv x /Users/vsc/git/yap-6.3/library/prandom.yap - -#false -cat << "EOF" > tmp -/** @pred ranstart - - -Initialize the random number generator using a built-in seed. The -ranstart/0 built-in is always called by the system when loading -the package. - - -*/ -EOF -sed -e "91r tmp" /Users/vsc/git/yap-6.3/library/prandom.yap > x - mv x /Users/vsc/git/yap-6.3/library/prandom.yap - -#false -cat << "EOF" > tmp -/** @pred rannum(- _I_) - - -Produces a random non-negative integer _I_ whose low bits are not -all that random, so it should be scaled to a smaller range in general. -The integer _I_ is in the range 0 .. 2^(w-1) - 1. You can use: - -~~~~~ -rannum(X) :- yap_flag(max_integer,MI), rannum(R), X is R/MI. -~~~~~ -to obtain a floating point number uniformly distributed between 0 and 1. - - -*/ -EOF -sed -e "91r tmp" /Users/vsc/git/yap-6.3/library/prandom.yap > x - mv x /Users/vsc/git/yap-6.3/library/prandom.yap - -#false -cat << "EOF" > tmp -/** @pred serve_queue(+ _OldQueue_, + _Head_, - _NewQueue_) - - -Removes the first element of the queue for service. - - -*/ -EOF -sed -e "101r tmp" /Users/vsc/git/yap-6.3/library/queues.yap > x - mv x /Users/vsc/git/yap-6.3/library/queues.yap - -#false -cat << "EOF" > tmp -/** @pred queue_to_list(+ _Queue_, - _List_) - - -Creates a new list with the same elements as _Queue_. - - - - - */ -EOF -sed -e "101r tmp" /Users/vsc/git/yap-6.3/library/queues.yap > x - mv x /Users/vsc/git/yap-6.3/library/queues.yap - -#false -cat << "EOF" > tmp -/** @pred list_to_queue(+ _List_, - _Queue_) - - -Creates a new queue with the same elements as _List._ - - -*/ -EOF -sed -e "101r tmp" /Users/vsc/git/yap-6.3/library/queues.yap > x - mv x /Users/vsc/git/yap-6.3/library/queues.yap - -#false -cat << "EOF" > tmp -/** @pred list_jump_queue(+ _List_, + _OldQueue_, + _NewQueue_) - - -Adds all the elements of _List_ at the front of the queue. - - -*/ -EOF -sed -e "101r tmp" /Users/vsc/git/yap-6.3/library/queues.yap > x - mv x /Users/vsc/git/yap-6.3/library/queues.yap - -#false -cat << "EOF" > tmp -/** @pred list_join_queue(+ _List_, + _OldQueue_, - _NewQueue_) - - -Ads the new elements at the end of the queue. - - -*/ -EOF -sed -e "101r tmp" /Users/vsc/git/yap-6.3/library/queues.yap > x - mv x /Users/vsc/git/yap-6.3/library/queues.yap - -#false -cat << "EOF" > tmp -/** @pred length_queue(+ _Queue_, - _Length_) - - -Counts the number of elements currently in the queue. - - -*/ -EOF -sed -e "101r tmp" /Users/vsc/git/yap-6.3/library/queues.yap > x - mv x /Users/vsc/git/yap-6.3/library/queues.yap - -#false -cat << "EOF" > tmp -/** @pred jump_queue(+ _Element_, + _OldQueue_, - _NewQueue_) - - -Adds the new element at the front of the list. - - -*/ -EOF -sed -e "101r tmp" /Users/vsc/git/yap-6.3/library/queues.yap > x - mv x /Users/vsc/git/yap-6.3/library/queues.yap - -#false -cat << "EOF" > tmp -/** @pred join_queue(+ _Element_, + _OldQueue_, - _NewQueue_) - - -Adds the new element at the end of the queue. - - -*/ -EOF -sed -e "101r tmp" /Users/vsc/git/yap-6.3/library/queues.yap > x - mv x /Users/vsc/git/yap-6.3/library/queues.yap - -#false -cat << "EOF" > tmp -/** @pred head_queue(+ _Queue_, ? _Head_) - - -Unifies Head with the first element of the queue. - - -*/ -EOF -sed -e "101r tmp" /Users/vsc/git/yap-6.3/library/queues.yap > x - mv x /Users/vsc/git/yap-6.3/library/queues.yap - -#false -cat << "EOF" > tmp -/** @pred empty_queue(+ _Queue_) - - -Tests whether the queue is empty. - - -*/ -EOF -sed -e "101r tmp" /Users/vsc/git/yap-6.3/library/queues.yap > x - mv x /Users/vsc/git/yap-6.3/library/queues.yap - -#false -cat << "EOF" > tmp -/** @pred setrand(+ _Key_) - - -Use a term of the form `rand(X,Y,Z)` to set a new state for the -random number generator. The integer `X` must be in the range -`[1...30269)`, the integer `Y` must be in the range -`[1...30307)`, and the integer `Z` must be in the range -`[1...30323)`. - - - - - */ -EOF -sed -e "106r tmp" /Users/vsc/git/yap-6.3/library/random.yap > x - mv x /Users/vsc/git/yap-6.3/library/random.yap - -#false -cat << "EOF" > tmp -/** @pred randset(+ _LENGTH_, + _MAX_, - _Numbers_) - - -Unify _Numbers_ with an ordered list of _LENGTH_ unique random -integers in the range `[1... _MAX_)`. - - -*/ -EOF -sed -e "106r tmp" /Users/vsc/git/yap-6.3/library/random.yap > x - mv x /Users/vsc/git/yap-6.3/library/random.yap - -#false -cat << "EOF" > tmp -/** @pred randseq(+ _LENGTH_, + _MAX_, - _Numbers_) - - -Unify _Numbers_ with a list of _LENGTH_ unique random integers -in the range `[1... _MAX_)`. - - -*/ -EOF -sed -e "106r tmp" /Users/vsc/git/yap-6.3/library/random.yap > x - mv x /Users/vsc/git/yap-6.3/library/random.yap - -#false -cat << "EOF" > tmp -/** @pred random(- _Number_) - - -Unify _Number_ with a floating-point number in the range `[0...1)`. - - -*/ -EOF -sed -e "106r tmp" /Users/vsc/git/yap-6.3/library/random.yap > x - mv x /Users/vsc/git/yap-6.3/library/random.yap - -#false -cat << "EOF" > tmp -/** @pred random(+ _LOW_, + _HIGH_, - _NUMBER_) - -Unify _Number_ with a number in the range -`[LOW...HIGH)`. If both _LOW_ and _HIGH_ are -integers then _NUMBER_ will also be an integer, otherwise - _NUMBER_ will be a floating-point number. - - -*/ -EOF -sed -e "106r tmp" /Users/vsc/git/yap-6.3/library/random.yap > x - mv x /Users/vsc/git/yap-6.3/library/random.yap - -#false -cat << "EOF" > tmp -/** @pred rb_visit(+ _T_,- _Pairs_) - - - _Pairs_ is an infix visit of tree _T_, where each element of - _Pairs_ is of the form _K_- _Val_. - - -*/ -EOF -sed -e "13r tmp" /Users/vsc/git/yap-6.3/library/rbtrees.yap > x - mv x /Users/vsc/git/yap-6.3/library/rbtrees.yap - -#false -cat << "EOF" > tmp -/** @pred rb_update(+ _T_,+ _Key_,+ _NewVal_,- _TN_) - - -Tree _TN_ is tree _T_, but with value for _Key_ associated -with _NewVal_. Fails if it cannot find _Key_ in _T_. - - -*/ -EOF -sed -e "13r tmp" /Users/vsc/git/yap-6.3/library/rbtrees.yap > x - mv x /Users/vsc/git/yap-6.3/library/rbtrees.yap - -#false -cat << "EOF" > tmp -/** @pred rb_size(+ _T_,- _Size_) - - - _Size_ is the number of elements in _T_. - - -*/ -EOF -sed -e "13r tmp" /Users/vsc/git/yap-6.3/library/rbtrees.yap > x - mv x /Users/vsc/git/yap-6.3/library/rbtrees.yap - -#false -cat << "EOF" > tmp -/** @pred rb_previous(+ _T_, + _Key_,- _Previous_,- _Value_) - - - _Previous_ is the previous element after _Key_ in _T_, and is -associated with _Val_. - - -*/ -EOF -sed -e "13r tmp" /Users/vsc/git/yap-6.3/library/rbtrees.yap > x - mv x /Users/vsc/git/yap-6.3/library/rbtrees.yap - -#false -cat << "EOF" > tmp -/** @pred rb_partial_map(+ _T_,+ _Keys_,+ _G_,- _TN_) - - -For all nodes _Key_ in _Keys_, if the value associated with key - _Key_ is _Val0_ in tree _T_, and if `call(G,Val0,ValF)` -holds, then the value associated with _Key_ in _TN_ is - _ValF_. Fails if or if `call(G,Val0,ValF)` is not satisfiable -for all _Var0_. Assumes keys are not repeated. - - -*/ -EOF -sed -e "13r tmp" /Users/vsc/git/yap-6.3/library/rbtrees.yap > x - mv x /Users/vsc/git/yap-6.3/library/rbtrees.yap - -#false -cat << "EOF" > tmp -/** @pred rb_next(+ _T_, + _Key_,- _Next_,- _Value_) - - - _Next_ is the next element after _Key_ in _T_, and is -associated with _Val_. - - -*/ -EOF -sed -e "13r tmp" /Users/vsc/git/yap-6.3/library/rbtrees.yap > x - mv x /Users/vsc/git/yap-6.3/library/rbtrees.yap - -#false -cat << "EOF" > tmp -/** @pred rb_new(? _T_) - - -Create a new tree. - - -*/ -EOF -sed -e "13r tmp" /Users/vsc/git/yap-6.3/library/rbtrees.yap > x - mv x /Users/vsc/git/yap-6.3/library/rbtrees.yap - -#false -cat << "EOF" > tmp -/** @pred rb_min(+ _T_,- _Key_,- _Value_) - - - _Key_ is the minimum key in _T_, and is associated with _Val_. - - -*/ -EOF -sed -e "13r tmp" /Users/vsc/git/yap-6.3/library/rbtrees.yap > x - mv x /Users/vsc/git/yap-6.3/library/rbtrees.yap - -#false -cat << "EOF" > tmp -/** @pred rb_max(+ _T_,- _Key_,- _Value_) - - - _Key_ is the maximal key in _T_, and is associated with _Val_. - - -*/ -EOF -sed -e "13r tmp" /Users/vsc/git/yap-6.3/library/rbtrees.yap > x - mv x /Users/vsc/git/yap-6.3/library/rbtrees.yap - -#false -cat << "EOF" > tmp -/** @pred rb_map(+ _T_,+ _G_,- _TN_) - - -For all nodes _Key_ in the tree _T_, if the value associated with -key _Key_ is _Val0_ in tree _T_, and if -`call(G,Val0,ValF)` holds, then the value associated with _Key_ -in _TN_ is _ValF_. Fails if or if `call(G,Val0,ValF)` is not -satisfiable for all _Var0_. - - -*/ -EOF -sed -e "13r tmp" /Users/vsc/git/yap-6.3/library/rbtrees.yap > x - mv x /Users/vsc/git/yap-6.3/library/rbtrees.yap - -#false -cat << "EOF" > tmp -/** @pred rb_lookupall(+ _Key_,- _Value_,+ _T_) - - -Lookup all elements with key _Key_ in the red-black tree - _T_, returning the value _Value_. - - -*/ -EOF -sed -e "13r tmp" /Users/vsc/git/yap-6.3/library/rbtrees.yap > x - mv x /Users/vsc/git/yap-6.3/library/rbtrees.yap - -#false -cat << "EOF" > tmp -/** @pred rb_lookup(+ _Key_,- _Value_,+ _T_) - - -Backtrack through all elements with key _Key_ in the red-black tree - _T_, returning for each the value _Value_. - - -*/ -EOF -sed -e "13r tmp" /Users/vsc/git/yap-6.3/library/rbtrees.yap > x - mv x /Users/vsc/git/yap-6.3/library/rbtrees.yap - -#false -cat << "EOF" > tmp -/** @pred rb_keys(+ _T_,+ _Keys_) - - - _Keys_ is an infix visit with all keys in tree _T_. Keys will be -sorted, but may be duplicate. - - -*/ -EOF -sed -e "13r tmp" /Users/vsc/git/yap-6.3/library/rbtrees.yap > x - mv x /Users/vsc/git/yap-6.3/library/rbtrees.yap - -#false -cat << "EOF" > tmp -/** @pred rb_key_fold(+ _T_,+ _G_,+ _Acc0_, - _AccF_) - - -For all nodes _Key_ in the tree _T_, if the value -associated with key _Key_ is _V_ in tree _T_, if -`call(G,Key,V,Acc1,Acc2)` holds, then if _VL_ is value of the -previous node in inorder, `call(G,KeyL,VL,_,Acc0)` must hold, and if - _VR_ is the value of the next node in inorder, -`call(G,KeyR,VR,Acc1,_)` must hold. - - -*/ -EOF -sed -e "13r tmp" /Users/vsc/git/yap-6.3/library/rbtrees.yap > x - mv x /Users/vsc/git/yap-6.3/library/rbtrees.yap - -#false -cat << "EOF" > tmp -/** @pred rb_insert(+ _T0_,+ _Key_,? _Value_,+ _TF_) - - -Add an element with key _Key_ and _Value_ to the tree - _T0_ creating a new red-black tree _TF_. Duplicated elements are not -allowed. - -Add a new element with key _Key_ and _Value_ to the tree - _T0_ creating a new red-black tree _TF_. Fails is an element -with _Key_ exists in the tree. - - -*/ -EOF -sed -e "13r tmp" /Users/vsc/git/yap-6.3/library/rbtrees.yap > x - mv x /Users/vsc/git/yap-6.3/library/rbtrees.yap - -#false -cat << "EOF" > tmp -/** @pred rb_fold(+ _T_,+ _G_,+ _Acc0_, - _AccF_) - - -For all nodes _Key_ in the tree _T_, if the value -associated with key _Key_ is _V_ in tree _T_, if -`call(G,V,Acc1,Acc2)` holds, then if _VL_ is value of the -previous node in inorder, `call(G,VL,_,Acc0)` must hold, and if - _VR_ is the value of the next node in inorder, -`call(G,VR,Acc1,_)` must hold. - - -*/ -EOF -sed -e "13r tmp" /Users/vsc/git/yap-6.3/library/rbtrees.yap > x - mv x /Users/vsc/git/yap-6.3/library/rbtrees.yap - -#false -cat << "EOF" > tmp -/** @pred rb_empty(? _T_) - - -Succeeds if tree _T_ is empty. - - -*/ -EOF -sed -e "13r tmp" /Users/vsc/git/yap-6.3/library/rbtrees.yap > x - mv x /Users/vsc/git/yap-6.3/library/rbtrees.yap - -#false -cat << "EOF" > tmp -/** @pred rb_delete(+ _T_,+ _Key_,- _Val_,- _TN_) - -Delete element with key _Key_ from the tree _T_, returning the -value _Val_ associated with the key and a new tree _TN_. - - -*/ -EOF -sed -e "13r tmp" /Users/vsc/git/yap-6.3/library/rbtrees.yap > x - mv x /Users/vsc/git/yap-6.3/library/rbtrees.yap - -#false -cat << "EOF" > tmp -/** @pred rb_delete(+ _T_,+ _Key_,- _TN_) - - -Delete element with key _Key_ from the tree _T_, returning a new -tree _TN_. - - -*/ -EOF -sed -e "13r tmp" /Users/vsc/git/yap-6.3/library/rbtrees.yap > x - mv x /Users/vsc/git/yap-6.3/library/rbtrees.yap - -#false -cat << "EOF" > tmp -/** @pred rb_del_min(+ _T_,- _Key_,- _Val_,- _TN_) - - -Delete the least element from the tree _T_, returning the key - _Key_, the value _Val_ associated with the key and a new tree - _TN_. - - -*/ -EOF -sed -e "13r tmp" /Users/vsc/git/yap-6.3/library/rbtrees.yap > x - mv x /Users/vsc/git/yap-6.3/library/rbtrees.yap - -#false -cat << "EOF" > tmp -/** @pred rb_del_max(+ _T_,- _Key_,- _Val_,- _TN_) - - -Delete the largest element from the tree _T_, returning the key - _Key_, the value _Val_ associated with the key and a new tree - _TN_. - - -*/ -EOF -sed -e "13r tmp" /Users/vsc/git/yap-6.3/library/rbtrees.yap > x - mv x /Users/vsc/git/yap-6.3/library/rbtrees.yap - -#false -cat << "EOF" > tmp -/** @pred rb_clone(+ _T_,+ _NT_,+ _Nodes_) - - -=Clone= the red-back tree into a new tree with the same keys as the -original but with all values set to unbound values. _Nodes_ is a list -containing all new nodes as pairs _K-V_. - - -*/ -EOF -sed -e "13r tmp" /Users/vsc/git/yap-6.3/library/rbtrees.yap > x - mv x /Users/vsc/git/yap-6.3/library/rbtrees.yap - -#false -cat << "EOF" > tmp -/** @pred rb_apply(+ _T_,+ _Key_,+ _G_,- _TN_) - - -If the value associated with key _Key_ is _Val0_ in _T_, and -if `call(G,Val0,ValF)` holds, then _TN_ differs from - _T_ only in that _Key_ is associated with value _ValF_ in -tree _TN_. Fails if it cannot find _Key_ in _T_, or if -`call(G,Val0,ValF)` is not satisfiable. - - -*/ -EOF -sed -e "13r tmp" /Users/vsc/git/yap-6.3/library/rbtrees.yap > x - mv x /Users/vsc/git/yap-6.3/library/rbtrees.yap - -#false -cat << "EOF" > tmp -/** @pred ord_list_to_rbtree(+ _L_, - _T_) - - - _T_ is the red-black tree corresponding to the mapping in ordered -list _L_. - - - - */ -EOF -sed -e "13r tmp" /Users/vsc/git/yap-6.3/library/rbtrees.yap > x - mv x /Users/vsc/git/yap-6.3/library/rbtrees.yap - -#false -cat << "EOF" > tmp -/** @pred is_rbtree(+ _T_) - - -Check whether _T_ is a valid red-black tree. - - -*/ -EOF -sed -e "13r tmp" /Users/vsc/git/yap-6.3/library/rbtrees.yap > x - mv x /Users/vsc/git/yap-6.3/library/rbtrees.yap - -#false -cat << "EOF" > tmp -/** @pred regexp(+ _RegExp_,+ _String_,+ _Opts_,? _SubMatchVars_) - - -Match regular expression _RegExp_ to input string _String_ -according to options _Opts_. The variable _SubMatchVars_ should -be originally unbound or a list of unbound variables all will contain a -sequence of matches, that is, the head of _SubMatchVars_ will -contain the characters in _String_ that matched the leftmost -parenthesized subexpression within _RegExp_, the next head of list -will contain the characters that matched the next parenthesized -subexpression to the right in _RegExp_, and so on. - -The options may be: - -+ `nocase`: Causes upper-case characters in _String_ to -be treated as lower case during the matching process. -+ `indices`: Changes what is stored in - _SubMatchVars_. Instead of storing the matching characters from - _String_, each variable will contain a term of the form _IO-IF_ -giving the indices in _String_ of the first and last characters in -the matching range of characters. - - - -In general there may be more than one way to match a regular expression -to an input string. For example, consider the command - -~~~~~ - regexp("(a*)b*","aabaaabb", [], [X,Y]) -~~~~~ -Considering only the rules given so far, _X_ and _Y_ could end up -with the values `"aabb"` and `"aa"`, `"aaab"` and -`"aaa"`, `"ab"` and `"a"`, or any of several other -combinations. To resolve this potential ambiguity `regexp` chooses among -alternatives using the rule `first then longest`. In other words, it -considers the possible matches in order working from left to right -across the input string and the pattern, and it attempts to match longer -pieces of the input string before shorter ones. More specifically, the -following rules apply in decreasing order of priority: - -+ If a regular expression could match two different parts of an -input string then it will match the one that begins earliest. - -+ If a regular expression contains "|" operators then the leftmost matching sub-expression is chosen. - -+ In \*, +, and ? constructs, longer matches are chosen in preference to shorter ones. - -+ In sequences of expression components the components are considered from left to right. - -In the example above, `"(a\*)b\*"` matches `"aab"`: the -`"(a\*)"` portion of the pattern is matched first and it consumes -the leading `"aa"`; then the `"b\*"` portion of the pattern -consumes the next `"b"`. Or, consider the following example: - -~~~~~ - regexp("(ab|a)(b*)c", "abc", [], [X,Y,Z]) -~~~~~ - -After this command _X_ will be `"abc"`, _Y_ will be -`"ab"`, and _Z_ will be an empty string. Rule 4 specifies that -`"(ab|a)"` gets first shot at the input string and Rule 2 specifies -that the `"ab"` sub-expression is checked before the `"a"` -sub-expression. Thus the `"b"` has already been claimed before the -`"(b\*)"` component is checked and `(b\*)` must match an empty string. - - - - - */ -EOF -sed -e "149r tmp" /Users/vsc/git/yap-6.3/library/regexp.yap > x - mv x /Users/vsc/git/yap-6.3/library/regexp.yap - -#false -cat << "EOF" > tmp -/** @pred socket_select(+ _SOCKETS_, - _NEWSTREAMS_, + _TIMEOUT_, + _STREAMS_, - _READSTREAMS_) [unsupported in YAP-6.3] - -Interface to system call `select`, used for servers to wait for -connection requests or for data at sockets. The variable - _SOCKETS_ is a list of form _KEY-SOCKET_, where _KEY_ is -an user-defined identifier and _SOCKET_ is a socket descriptor. The -variable _TIMEOUT_ is either `off`, indicating execution will -wait until something is available, or of the form _SEC-USEC_, where - _SEC_ and _USEC_ give the seconds and microseconds before -socket_select/5 returns. The variable _SOCKETS_ is a list of -form _KEY-STREAM_, where _KEY_ is an user-defined identifier -and _STREAM_ is a stream descriptor - -Execution of socket_select/5 unifies _READSTREAMS_ from - _STREAMS_ with readable data, and _NEWSTREAMS_ with a list of -the form _KEY-STREAM_, where _KEY_ was the key for a socket -with pending data, and _STREAM_ the stream descriptor resulting -from accepting the connection. - - -*/ -EOF -sed -e "225r tmp" /Users/vsc/git/yap-6.3/library/sockets.yap > x - mv x /Users/vsc/git/yap-6.3/library/sockets.yap - -#false -cat << "EOF" > tmp -/** @pred socket_buffering(+ _SOCKET_, - _MODE_, - _OLD_, + _NEW_) - - -Set buffering for _SOCKET_ in `read` or `write` - _MODE_. _OLD_ is unified with the previous status, and _NEW_ -receives the new status which may be one of `unbuf` or -`fullbuf`. - - -*/ -EOF -sed -e "178r tmp" /Users/vsc/git/yap-6.3/library/sockets.yap > x - mv x /Users/vsc/git/yap-6.3/library/sockets.yap - -#false -cat << "EOF" > tmp -/** @pred socket_listen(+ _SOCKET_, + _LENGTH_) - - -Interface to system call `listen`, used for servers to indicate -willingness to wait for connections at socket _SOCKET_. The -integer _LENGTH_ gives the queue limit for incoming connections, -and should be limited to `5` for portable applications. The socket -must be of type `SOCK_STREAM` or `SOCK_SEQPACKET`. - - -*/ -EOF -sed -e "99r tmp" /Users/vsc/git/yap-6.3/library/sockets.yap > x - mv x /Users/vsc/git/yap-6.3/library/sockets.yap - -#false -cat << "EOF" > tmp -/** @pred socket_close(+ _SOCKET_) - - - -Close socket _SOCKET_. Note that sockets used in -`socket_connect` (that is, client sockets) should not be closed with -`socket_close`, as they will be automatically closed when the -corresponding stream is closed with close/1 or `close/2`. - - -*/ -EOF -sed -e "99r tmp" /Users/vsc/git/yap-6.3/library/sockets.yap > x - mv x /Users/vsc/git/yap-6.3/library/sockets.yap - -#false -cat << "EOF" > tmp -/** @pred socket_bind(+ _SOCKET_, ? _PORT_) - - - -Interface to system call `bind`, as used for servers: bind socket -to a port. Port information depends on the domain: - -+ 'AF_UNIX'(+ _FILENAME_) (unsupported) -+ 'AF_FILE'(+ _FILENAME_) -use file name _FILENAME_ for UNIX or local sockets. - -+ 'AF_INET'(? _HOST_,?PORT) -If _HOST_ is bound to an atom, bind to host _HOST_, otherwise -if unbound bind to local host ( _HOST_ remains unbound). If port - _PORT_ is bound to an integer, try to bind to the corresponding -port. If variable _PORT_ is unbound allow operating systems to -choose a port number, which is unified with _PORT_. - - - - -*/ -EOF -sed -e "99r tmp" /Users/vsc/git/yap-6.3/library/sockets.yap > x - mv x /Users/vsc/git/yap-6.3/library/sockets.yap - -#false -cat << "EOF" > tmp -/** @pred socket_accept(+ _SOCKET_, - _STREAM_) - -Accept a connection but do not return client information. - - -*/ -EOF -sed -e "99r tmp" /Users/vsc/git/yap-6.3/library/sockets.yap > x - mv x /Users/vsc/git/yap-6.3/library/sockets.yap - -#false -cat << "EOF" > tmp -/** @pred socket_accept(+ _SOCKET_, - _CLIENT_, - _STREAM_) - - -Interface to system call `accept`, used for servers to wait for -connections at socket _SOCKET_. The stream descriptor _STREAM_ -represents the resulting connection. If the socket belongs to the -domain `AF_INET`, _CLIENT_ unifies with an atom containing -the IP address for the client in numbers and dots notation. - - -*/ -EOF -sed -e "99r tmp" /Users/vsc/git/yap-6.3/library/sockets.yap > x - mv x /Users/vsc/git/yap-6.3/library/sockets.yap - -#false -cat << "EOF" > tmp -/** @pred hostname_address(? _HOSTNAME_,? _IP_ADDRESS_) - - _HOSTNAME_ is an host name and _IP_ADDRESS_ its IP -address in number and dots notation. - - - - -*/ -EOF -sed -e "99r tmp" /Users/vsc/git/yap-6.3/library/sockets.yap > x - mv x /Users/vsc/git/yap-6.3/library/sockets.yap - -#false -cat << "EOF" > tmp -/** @pred current_host(? _HOSTNAME_) - -Unify _HOSTNAME_ with an atom representing the fully qualified -hostname for the current host. Also succeeds if _HOSTNAME_ is bound -to the unqualified hostname. - - -*/ -EOF -sed -e "99r tmp" /Users/vsc/git/yap-6.3/library/sockets.yap > x - mv x /Users/vsc/git/yap-6.3/library/sockets.yap - -#false -cat << "EOF" > tmp -/** @pred splay_split(+ _Key_,? _Val_,+ _Tree_,- _LeftTree_,- _RightTree_) - - -Construct and return two trees _LeftTree_ and _RightTree_, -where _LeftTree_ contains all items in _Tree_ less than - _Key_, and _RightTree_ contains all items in _Tree_ -greater than _Key_. This operations destroys _Tree_. - - - - - */ -EOF -sed -e "93r tmp" /Users/vsc/git/yap-6.3/library/splay.yap > x - mv x /Users/vsc/git/yap-6.3/library/splay.yap - -#false -cat << "EOF" > tmp -/** @pred splay_join(+ _LeftTree_,+ _RighTree_,- _NewTree_) - - -Combine trees _LeftTree_ and _RighTree_ into a single -tree _NewTree_ containing all items from both trees. This operation -assumes that all items in _LeftTree_ are less than all those in - _RighTree_ and destroys both _LeftTree_ and _RighTree_. - - -*/ -EOF -sed -e "93r tmp" /Users/vsc/git/yap-6.3/library/splay.yap > x - mv x /Users/vsc/git/yap-6.3/library/splay.yap - -#false -cat << "EOF" > tmp -/** @pred splay_insert(+ _Key_,? _Val_,+ _Tree_,- _NewTree_) - - -Insert item _Key_ in tree _Tree_, assuming that it is not -there already. The variable _Val_ unifies with a value for key - _Key_, and the variable _NewTree_ unifies with the new -tree. In our implementation, _Key_ is not inserted if it is -already there: rather it is unified with the item already in the tree. - - -*/ -EOF -sed -e "93r tmp" /Users/vsc/git/yap-6.3/library/splay.yap > x - mv x /Users/vsc/git/yap-6.3/library/splay.yap - -#false -cat << "EOF" > tmp -/** @pred splay_init(- _NewTree_) - - -Initialize a new splay tree. - - -*/ -EOF -sed -e "93r tmp" /Users/vsc/git/yap-6.3/library/splay.yap > x - mv x /Users/vsc/git/yap-6.3/library/splay.yap - -#false -cat << "EOF" > tmp -/** @pred splay_del(+ _Item_,+ _Tree_,- _NewTree_) - - -Delete item _Key_ from tree _Tree_, assuming that it is present -already. The variable _Val_ unifies with a value for key _Key_, -and the variable _NewTree_ unifies with the new tree. The predicate -will fail if _Key_ is not present. - - -*/ -EOF -sed -e "93r tmp" /Users/vsc/git/yap-6.3/library/splay.yap > x - mv x /Users/vsc/git/yap-6.3/library/splay.yap - -#true -cat << "EOF" > tmp -/** @pred working_directory(- _Old_,+ _New_) - - - -Unify _Old_ with an absolute path to the current working directory -and change working directory to _New_. Use the pattern -`working_directory(CWD, CWD)` to get the current directory. See -also `absolute_file_name/2` and chdir/1. - - -*/ -EOF -sed -e "375r tmp" /Users/vsc/git/yap-6.3/library/system.yap > x - mv x /Users/vsc/git/yap-6.3/library/system.yap - -#false -cat << "EOF" > tmp -/** @pred tmpnam(- _File_) - - - -Interface with _tmpnam_: obtain a new, unique file name _File_. - - -*/ -EOF -sed -e "375r tmp" /Users/vsc/git/yap-6.3/library/system.yap > x - mv x /Users/vsc/git/yap-6.3/library/system.yap - -#true -cat << "EOF" > tmp -/** @pred tmp_file(+_Base_, - _File_) - -Create a name for a temporary file. _Base_ is an user provided -identifier for the category of file. The _TmpName_ is guaranteed to -be unique. If the system halts, it will automatically remove all created -temporary files. - - -*/ -EOF -sed -e "375r tmp" /Users/vsc/git/yap-6.3/library/system.yap > x - mv x /Users/vsc/git/yap-6.3/library/system.yap - -#false -cat << "EOF" > tmp -/** @pred system(+ _Command_,- _Res_) - -Interface to `system`: execute command _Command_ and unify - _Res_ with the result. - - -*/ -EOF -sed -e "375r tmp" /Users/vsc/git/yap-6.3/library/system.yap > x - mv x /Users/vsc/git/yap-6.3/library/system.yap - -#false -cat << "EOF" > tmp -/** @pred system - -Start a new default shell and leave YAP in background until the shell -completes. YAP uses `/bin/sh` in Unix systems and `COMSPEC` in -WIN32. - - -*/ -EOF -sed -e "375r tmp" /Users/vsc/git/yap-6.3/library/system.yap > x - mv x /Users/vsc/git/yap-6.3/library/system.yap - -#true -cat << "EOF" > tmp -/** @pred sleep(+ _Time_) - - -Block the current thread for _Time_ seconds. When YAP is compiled -without multi-threading support, this predicate blocks the YAP process. -The number of seconds must be a positive number, and it may an integer -or a float. The Unix implementation uses `usleep` if the number of -seconds is below one, and `sleep` if it is over a second. The WIN32 -implementation uses `Sleep` for both cases. - - -*/ -EOF -sed -e "375r tmp" /Users/vsc/git/yap-6.3/library/system.yap > x - mv x /Users/vsc/git/yap-6.3/library/system.yap - -#true -cat << "EOF" > tmp -/** @pred shell(+ _Command_,- _Status_) - -Execute command _Command_ under a new shell and unify _Status_ -with the exit for the command. YAP will be in background until the -command completes. In Unix environments YAP uses the shell given by the -environment variable `SHELL` with the option `" -c "`. In -WIN32 environment YAP will use `COMSPEC` if `SHELL` is -undefined, in this case with the option `" /c "`. - - -*/ -EOF -sed -e "375r tmp" /Users/vsc/git/yap-6.3/library/system.yap > x - mv x /Users/vsc/git/yap-6.3/library/system.yap - -#false -cat << "EOF" > tmp -/** @pred shell(+ _Command_) - -Execute command _Command_ under a new shell. YAP will be in -background until the command completes. In Unix environments YAP uses -the shell given by the environment variable `SHELL` with the option -`" -c "`. In WIN32 environment YAP will use `COMSPEC` if -`SHELL` is undefined, in this case with the option `" /c "`. - - -*/ -EOF -sed -e "375r tmp" /Users/vsc/git/yap-6.3/library/system.yap > x - mv x /Users/vsc/git/yap-6.3/library/system.yap - -#false -cat << "EOF" > tmp -/** @pred shell - - -Start a new shell and leave YAP in background until the shell -completes. YAP uses the shell given by the environment variable -`SHELL`. In WIN32 environment YAP will use `COMSPEC` if -`SHELL` is undefined. - - -*/ -EOF -sed -e "375r tmp" /Users/vsc/git/yap-6.3/library/system.yap > x - mv x /Users/vsc/git/yap-6.3/library/system.yap - -#true -cat << "EOF" > tmp -/** @pred rename_file(+ _OldFile_,+ _NewFile_) - - -Create file _OldFile_ to _NewFile_. This predicate uses the -`C` built-in function `rename`. - - -*/ -EOF -sed -e "375r tmp" /Users/vsc/git/yap-6.3/library/system.yap > x - mv x /Users/vsc/git/yap-6.3/library/system.yap - -#false -cat << "EOF" > tmp -/** @pred popen(+ _Command_, + _TYPE_, - _Stream_) - - -Interface to the popen function. It opens a process by creating a -pipe, forking and invoking _Command_ on the current shell. Since a -pipe is by definition unidirectional the _Type_ argument may be -`read` or `write`, not both. The stream should be closed -using close/1, there is no need for a special `pclose` -command. - -The following example demonstrates the use of popen/3 to process -the output of a command, as exec/3 would do: - -~~~~~{.prolog} - ?- popen(ls,read,X),repeat, get0(X,C), (C = -1, ! ; put(C)). - -X = 'C:\\cygwin\\home\\administrator' ? -~~~~~ - -The WIN32 implementation of popen/3 relies on exec/3. - - -*/ -EOF -sed -e "375r tmp" /Users/vsc/git/yap-6.3/library/system.yap > x - mv x /Users/vsc/git/yap-6.3/library/system.yap - -#false -cat << "EOF" > tmp -/** @pred pid(- _Id_) - - - -Unify _Id_ with the process identifier for the current -process. An interface to the getpid function. - - -*/ -EOF -sed -e "375r tmp" /Users/vsc/git/yap-6.3/library/system.yap > x - mv x /Users/vsc/git/yap-6.3/library/system.yap - -#true -cat << "EOF" > tmp -/** @pred mktime(+_Datime_, - _Seconds_) - -The `mktime/2` procedure receives a term of the form _datime(+ _Year_, -+ _Month_, + _DayOfTheMonth_, + _Hour_, + _Minute_, + _Second_)_ and -returns the number of _Seconds_ elapsed since 00:00:00 on January 1, -1970, Coordinated Universal Time (UTC). The user provides information -on _Year_, _Month_, _DayOfTheMonth_, _Hour_, _Minute_, and -_Second_. The _Hour_ is given on local time. This function uses the -WIN32 `GetLocalTime` function or the Unix `mktime` function. - -~~~~~ - ?- mktime(datime(2001,5,28,15,29,46),X). - -X = 991081786 ? ; -~~~~~ - - -*/ -EOF -sed -e "375r tmp" /Users/vsc/git/yap-6.3/library/system.yap > x - mv x /Users/vsc/git/yap-6.3/library/system.yap - -#false -cat << "EOF" > tmp -/** @pred mktemp( _Spec_,- _File_) - - - -Direct interface to `mktemp`: given a _Spec_, that is a file -name with six _X_ to it, create a file name _File_. Use -tmpnam/1 instead. - - -*/ -EOF -sed -e "375r tmp" /Users/vsc/git/yap-6.3/library/system.yap > x - mv x /Users/vsc/git/yap-6.3/library/system.yap - -#true -cat << "EOF" > tmp -/** @pred make_directory(+ _Dir_) - - -Create a directory _Dir_. The name of the directory must be an atom. - - -*/ -EOF -sed -e "375r tmp" /Users/vsc/git/yap-6.3/library/system.yap > x - mv x /Users/vsc/git/yap-6.3/library/system.yap - -#false -cat << "EOF" > tmp -/** @pred host_name(- _Name_) - - - -Unify _Name_ with a name for the current host. YAP uses the -`hostname` function in Unix systems when available, and the -`GetComputerName` function in WIN32 systems. - - -*/ -EOF -sed -e "375r tmp" /Users/vsc/git/yap-6.3/library/system.yap > x - mv x /Users/vsc/git/yap-6.3/library/system.yap - -#false -cat << "EOF" > tmp -/** @pred host_id(- _Id_) - - - -Unify _Id_ with an identifier of the current host. YAP uses the -`hostid` function when available, - - -*/ -EOF -sed -e "375r tmp" /Users/vsc/git/yap-6.3/library/system.yap > x - mv x /Users/vsc/git/yap-6.3/library/system.yap - -#true -cat << "EOF" > tmp -/** @pred file_property(+ _File_,? _Property_) - - -The atom _File_ corresponds to an existing file, and _Property_ -will be unified with a property of this file. The properties are of the -form `type( _Type_)`, which gives whether the file is a regular -file, a directory, a fifo file, or of unknown type; -`size( _Size_)`, with gives the size for a file, and -`mod_time( _Time_)`, which gives the last time a file was -modified according to some Operating System dependent -timestamp; `mode( _mode_)`, gives the permission flags for the -file, and `linkto( _FileName_)`, gives the file pointed to by a -symbolic link. Properties can be obtained through backtracking: - -~~~~~ - ?- file_property('Makefile',P). - -P = type(regular) ? ; - -P = size(2375) ? ; - -P = mod_time(990826911) ? ; - -no -~~~~~ - - -*/ -EOF -sed -e "375r tmp" /Users/vsc/git/yap-6.3/library/system.yap > x - mv x /Users/vsc/git/yap-6.3/library/system.yap - -#false -cat << "EOF" > tmp -/** @pred file_exists(+ _File_,+ _Permissions_) - -The atom _File_ corresponds to an existing file with permissions -compatible with _Permissions_. YAP currently only accepts for -permissions to be described as a number. The actual meaning of this -number is Operating System dependent. - - -*/ -EOF -sed -e "375r tmp" /Users/vsc/git/yap-6.3/library/system.yap > x - mv x /Users/vsc/git/yap-6.3/library/system.yap - -#false -cat << "EOF" > tmp -/** @pred file_exists(+ _File_) - - -The atom _File_ corresponds to an existing file. - - -*/ -EOF -sed -e "375r tmp" /Users/vsc/git/yap-6.3/library/system.yap > x - mv x /Users/vsc/git/yap-6.3/library/system.yap - -#false -cat << "EOF" > tmp -/** @pred exec(+ _Command_, _StandardStreams_,- _PID_) - - -Execute command _Command_ with its standard streams connected to -the list [_InputStream_, _OutputStream_, _ErrorStream_]. The -process that executes the command is returned as _PID_. The -command is executed by the default shell `bin/sh -c` in Unix. - -The following example demonstrates the use of exec/3 to send a -command and process its output: - -~~~~~ -exec(ls,[std,pipe(S),null],P),repeat, get0(S,C), (C = -1, close(S) ! ; put(C)). -~~~~~ - -The streams may be one of standard stream, `std`, null stream, -`null`, or `pipe(S)`, where _S_ is a pipe stream. Note -that it is up to the user to close the pipe. - - -*/ -EOF -sed -e "375r tmp" /Users/vsc/git/yap-6.3/library/system.yap > x - mv x /Users/vsc/git/yap-6.3/library/system.yap - -#false -cat << "EOF" > tmp -/** @pred environ(? _EnvVar_,+ _EnvValue_) - - -Unify environment variable _EnvVar_ with its value _EnvValue_, -if there is one. This predicate is backtrackable in Unix systems, but -not currently in Win32 configurations. - -~~~~~ - ?- environ('HOME',X). - -X = 'C:\\cygwin\\home\\administrator' ? -~~~~~ - - -*/ -EOF -sed -e "375r tmp" /Users/vsc/git/yap-6.3/library/system.yap > x - mv x /Users/vsc/git/yap-6.3/library/system.yap - -#true -cat << "EOF" > tmp -/** @pred directory_files(+ _Dir_,+ _List_) - - -Given a directory _Dir_, directory_files/2 procedures a -listing of all files and directories in the directory: - -~~~~~ - ?- directory_files('.',L), writeq(L). -['Makefile.~1~','sys.so','Makefile','sys.o',x,..,'.'] -~~~~~ -The predicates uses the `dirent` family of routines in Unix -environments, and `findfirst` in WIN32. - - -*/ -EOF -sed -e "375r tmp" /Users/vsc/git/yap-6.3/library/system.yap > x - mv x /Users/vsc/git/yap-6.3/library/system.yap - -#false -cat << "EOF" > tmp -/** @pred delete_file(+ _File_,+ _Opts_) - -The `delete_file/2` procedure removes file _File_ according to -options _Opts_. These options are `directory` if one should -remove directories, `recursive` if one should remove directories -recursively, and `ignore` if errors are not to be reported. - -This example is equivalent to using the delete_file/1 predicate: - -~~~~~ - ?- delete_file(x, [recursive]). -~~~~~ - - -*/ -EOF -sed -e "375r tmp" /Users/vsc/git/yap-6.3/library/system.yap > x - mv x /Users/vsc/git/yap-6.3/library/system.yap - -#true -cat << "EOF" > tmp -/** @pred delete_file(+ _File_) - - -The delete_file/1 procedure removes file _File_. If - _File_ is a directory, remove the directory and all its subdirectories. - -~~~~~ - ?- delete_file(x). -~~~~~ - - -*/ -EOF -sed -e "375r tmp" /Users/vsc/git/yap-6.3/library/system.yap > x - mv x /Users/vsc/git/yap-6.3/library/system.yap - -#true -cat << "EOF" > tmp -/** @pred working_directory(- _CurDir_,? _NextDir_) - - -Fetch the current directory at _CurDir_. If _NextDir_ is bound -to an atom, make its value the current working directory. - - -*/ -EOF -sed -e "375r tmp" /Users/vsc/git/yap-6.3/library/system.yap > x - mv x /Users/vsc/git/yap-6.3/library/system.yap - -#true -cat << "EOF" > tmp -/** @pred system(+ _S_) - - -Passes command _S_ to the Bourne shell (on UNIX environments) or the -current command interpreter in WIN32 environments. - - -*/ -EOF -sed -e "375r tmp" /Users/vsc/git/yap-6.3/library/system.yap > x - mv x /Users/vsc/git/yap-6.3/library/system.yap - -#false -cat << "EOF" > tmp -/** @pred environ(+ _E_,- _S_) - - - - - -Given an environment variable _E_ this predicate unifies the second argument _S_ with its value. - - -*/ -EOF -sed -e "375r tmp" /Users/vsc/git/yap-6.3/library/system.yap > x - mv x /Users/vsc/git/yap-6.3/library/system.yap - -#true -cat << "EOF" > tmp -/** @pred variant(? _Term1_, ? _Term2_) - - - -Succeed if _Term1_ and _Term2_ are variant terms. - - -*/ -EOF -sed -e "130r tmp" /Users/vsc/git/yap-6.3/library/terms.yap > x - mv x /Users/vsc/git/yap-6.3/library/terms.yap - -#true -cat << "EOF" > tmp -/** @pred variables_within_term(+ _Variables_,? _Term_, - _OutputVariables_) - - - -Unify _OutputVariables_ with the subset of the variables _Variables_ that occurs in _Term_. - - -*/ -EOF -sed -e "130r tmp" /Users/vsc/git/yap-6.3/library/terms.yap > x - mv x /Users/vsc/git/yap-6.3/library/terms.yap - -#true -cat << "EOF" > tmp -/** @pred variable_in_term(? _Term_,? _Var_) - - -Succeed if the second argument _Var_ is a variable and occurs in -term _Term_. - - -*/ -EOF -sed -e "130r tmp" /Users/vsc/git/yap-6.3/library/terms.yap > x - mv x /Users/vsc/git/yap-6.3/library/terms.yap - -#true -cat << "EOF" > tmp -/** @pred unifiable(? _Term1_, ? _Term2_, - _Bindings_) - - - -Succeed if _Term1_ and _Term2_ are unifiable with substitution - _Bindings_. - - - - - */ -EOF -sed -e "130r tmp" /Users/vsc/git/yap-6.3/library/terms.yap > x - mv x /Users/vsc/git/yap-6.3/library/terms.yap - -#true -cat << "EOF" > tmp -/** @pred term_hash(+ _Term_, ? _Hash_) - - - -If _Term_ is ground unify _Hash_ with a positive integer -calculated from the structure of the term. Otherwise the argument - _Hash_ is left unbound. The range of the positive integer is from -`0` to, but not including, `33554432`. - - -*/ -EOF -sed -e "130r tmp" /Users/vsc/git/yap-6.3/library/terms.yap > x - mv x /Users/vsc/git/yap-6.3/library/terms.yap - -#true -cat << "EOF" > tmp -/** @pred term_hash(+ _Term_, + _Depth_, + _Range_, ? _Hash_) - - -Unify _Hash_ with a positive integer calculated from the structure -of the term. The range of the positive integer is from `0` to, but -not including, _Range_. If _Depth_ is `-1` the whole term -is considered. Otherwise, the term is considered only up to depth -`1`, where the constants and the principal functor have depth -`1`, and an argument of a term with depth _I_ has depth _I+1_. - - -*/ -EOF -sed -e "130r tmp" /Users/vsc/git/yap-6.3/library/terms.yap > x - mv x /Users/vsc/git/yap-6.3/library/terms.yap - -#true -cat << "EOF" > tmp -/** @pred subsumes_chk(? _Term1_, ? _Term2_) - - - -Succeed if _Term1_ subsumes _Term2_ but does not bind any -variable in _Term1_. - - -*/ -EOF -sed -e "130r tmp" /Users/vsc/git/yap-6.3/library/terms.yap > x - mv x /Users/vsc/git/yap-6.3/library/terms.yap - -#true -cat << "EOF" > tmp -/** @pred subsumes(? _Term1_, ? _Term2_) - - - -Succeed if _Term1_ subsumes _Term2_. Variables in term - _Term1_ are bound so that the two terms become equal. - - -*/ -EOF -sed -e "130r tmp" /Users/vsc/git/yap-6.3/library/terms.yap > x - mv x /Users/vsc/git/yap-6.3/library/terms.yap - -#true -cat << "EOF" > tmp -/** @pred new_variables_in_term(+ _Variables_,? _Term_, - _OutputVariables_) - - - -Unify _OutputVariables_ with all variables occurring in _Term_ that are not in the list _Variables_. - - -*/ -EOF -sed -e "130r tmp" /Users/vsc/git/yap-6.3/library/terms.yap > x - mv x /Users/vsc/git/yap-6.3/library/terms.yap - -#true -cat << "EOF" > tmp -/** @pred term_subsumer(? _T1_, ? _T2_, ? _Subsumer_) - - - -Succeed if _Subsumer_ unifies with the least general -generalization over _T1_ and - _T2_. - - -*/ -EOF -sed -e "130r tmp" /Users/vsc/git/yap-6.3/library/terms.yap > x - mv x /Users/vsc/git/yap-6.3/library/terms.yap - -#false -cat << "EOF" > tmp -/** @pred tree_to_list(+ _Tree_, - _List_) - - -Is the converse operation to list_to_tree. - - - - - */ -EOF -sed -e "84r tmp" /Users/vsc/git/yap-6.3/library/trees.yap > x - mv x /Users/vsc/git/yap-6.3/library/trees.yap - -#false -cat << "EOF" > tmp -/** @pred tree_size(+ _Tree_, - _Size_) - - -Calculates the number of elements in the _Tree_. - - -*/ -EOF -sed -e "84r tmp" /Users/vsc/git/yap-6.3/library/trees.yap > x - mv x /Users/vsc/git/yap-6.3/library/trees.yap - -#false -cat << "EOF" > tmp -/** @pred put_label(+ _Index_, + _OldTree_, + _Label_, - _NewTree_) - - -constructs a new tree the same shape as the old which moreover has the -same elements except that the _Index_-th one is _Label_. - - -*/ -EOF -sed -e "84r tmp" /Users/vsc/git/yap-6.3/library/trees.yap > x - mv x /Users/vsc/git/yap-6.3/library/trees.yap - -#false -cat << "EOF" > tmp -/** @pred map_tree(+ _Pred_, + _OldTree_, - _NewTree_) - - -Holds when _OldTree_ and _NewTree_ are binary trees of the same shape -and `Pred(Old,New)` is true for corresponding elements of the two trees. - - -*/ -EOF -sed -e "84r tmp" /Users/vsc/git/yap-6.3/library/trees.yap > x - mv x /Users/vsc/git/yap-6.3/library/trees.yap - -#false -cat << "EOF" > tmp -/** @pred list_to_tree(+ _List_, - _Tree_) - - -Takes a given _List_ of _N_ elements and constructs a binary - _Tree_. - - -*/ -EOF -sed -e "84r tmp" /Users/vsc/git/yap-6.3/library/trees.yap > x - mv x /Users/vsc/git/yap-6.3/library/trees.yap - -#false -cat << "EOF" > tmp -/** @pred trie_usage(+ _Trie_,- _Entries_,- _Nodes_,- _VirtualNodes_) - - -Give statistics on trie _Trie_, the number of entries, - _Entries_, and the total number of nodes, _Nodes_, and the -number of _VirtualNodes_. - - -*/ -EOF -sed -e "149r tmp" /Users/vsc/git/yap-6.3/library/tries.yap > x - mv x /Users/vsc/git/yap-6.3/library/tries.yap - -#false -cat << "EOF" > tmp -/** @pred trie_stats(- _Memory_,- _Tries_,- _Entries_,- _Nodes_) - - -Give generic statistics on tries, including the amount of memory, - _Memory_, the number of tries, _Tries_, the number of entries, - _Entries_, and the total number of nodes, _Nodes_. - - -*/ -EOF -sed -e "149r tmp" /Users/vsc/git/yap-6.3/library/tries.yap > x - mv x /Users/vsc/git/yap-6.3/library/tries.yap - -#false -cat << "EOF" > tmp -/** @pred trie_save(+ _Trie_,+ _FileName_) - - -Dump trie _Trie_ into file _FileName_. - - -*/ -EOF -sed -e "149r tmp" /Users/vsc/git/yap-6.3/library/tries.yap > x - mv x /Users/vsc/git/yap-6.3/library/tries.yap - -#false -cat << "EOF" > tmp -/** @pred trie_remove_subtree(+ _Ref_) - - - -Remove subtree rooted at handle _Ref_. - - -*/ -EOF -sed -e "149r tmp" /Users/vsc/git/yap-6.3/library/tries.yap > x - mv x /Users/vsc/git/yap-6.3/library/tries.yap - -#false -cat << "EOF" > tmp -/** @pred trie_remove_entry(+ _Ref_) - - - -Remove entry for handle _Ref_. - - -*/ -EOF -sed -e "149r tmp" /Users/vsc/git/yap-6.3/library/tries.yap > x - mv x /Users/vsc/git/yap-6.3/library/tries.yap - -#false -cat << "EOF" > tmp -/** @pred trie_put_entry(+ _Trie_,+ _Term_,- _Ref_) - - - -Add term _Term_ to trie _Trie_. The handle _Ref_ gives -a reference to the term. - - -*/ -EOF -sed -e "149r tmp" /Users/vsc/git/yap-6.3/library/tries.yap > x - mv x /Users/vsc/git/yap-6.3/library/tries.yap - -#false -cat << "EOF" > tmp -/** @pred trie_print(+ _Trie_) - - -Print trie _Trie_ on standard output. - - - - - */ -EOF -sed -e "149r tmp" /Users/vsc/git/yap-6.3/library/tries.yap > x - mv x /Users/vsc/git/yap-6.3/library/tries.yap - -#false -cat << "EOF" > tmp -/** @pred trie_open(- _Id_) - - - -Open a new trie with identifier _Id_. - - -*/ -EOF -sed -e "149r tmp" /Users/vsc/git/yap-6.3/library/tries.yap > x - mv x /Users/vsc/git/yap-6.3/library/tries.yap - -#false -cat << "EOF" > tmp -/** @pred trie_mode(? _Mode_) - - - -Unify _Mode_ with trie operation mode. Allowed values are either -`std` (default) or `rev`. - - -*/ -EOF -sed -e "149r tmp" /Users/vsc/git/yap-6.3/library/tries.yap > x - mv x /Users/vsc/git/yap-6.3/library/tries.yap - -#false -cat << "EOF" > tmp -/** @pred trie_max_stats(- _Memory_,- _Tries_,- _Entries_,- _Nodes_) - - -Give maximal statistics on tries, including the amount of memory, - _Memory_, the number of tries, _Tries_, the number of entries, - _Entries_, and the total number of nodes, _Nodes_. - - -*/ -EOF -sed -e "149r tmp" /Users/vsc/git/yap-6.3/library/tries.yap > x - mv x /Users/vsc/git/yap-6.3/library/tries.yap - -#false -cat << "EOF" > tmp -/** @pred trie_load(+ _Trie_,+ _FileName_) - - -Load trie _Trie_ from the contents of file _FileName_. - - -*/ -EOF -sed -e "149r tmp" /Users/vsc/git/yap-6.3/library/tries.yap > x - mv x /Users/vsc/git/yap-6.3/library/tries.yap - -#false -cat << "EOF" > tmp -/** @pred trie_get_entry(+ _Ref_,- _Term_) - - -Unify _Term_ with the entry for handle _Ref_. - - -*/ -EOF -sed -e "149r tmp" /Users/vsc/git/yap-6.3/library/tries.yap > x - mv x /Users/vsc/git/yap-6.3/library/tries.yap - -#false -cat << "EOF" > tmp -/** @pred trie_close_all - - - -Close all available tries. - - -*/ -EOF -sed -e "149r tmp" /Users/vsc/git/yap-6.3/library/tries.yap > x - mv x /Users/vsc/git/yap-6.3/library/tries.yap - -#false -cat << "EOF" > tmp -/** @pred trie_close(+ _Id_) - - - -Close trie with identifier _Id_. - - -*/ -EOF -sed -e "149r tmp" /Users/vsc/git/yap-6.3/library/tries.yap > x - mv x /Users/vsc/git/yap-6.3/library/tries.yap - -#false -cat << "EOF" > tmp -/** @pred trie_check_entry(+ _Trie_,+ _Term_,- _Ref_) - - - -Succeeds if a variant of term _Term_ is in trie _Trie_. An handle - _Ref_ gives a reference to the term. - - -*/ -EOF -sed -e "149r tmp" /Users/vsc/git/yap-6.3/library/tries.yap > x - mv x /Users/vsc/git/yap-6.3/library/tries.yap - -#false -cat << "EOF" > tmp -/** @pred vertices(+ _Graph_, - _Vertices_) - - -Unify _Vertices_ with all vertices appearing in graph - _Graph_. In the next example: - -~~~~~{.prolog} -?- vertices([1-[3,5],2-[4],3-[],4-[5],5-[]], V). - -L = [1,2,3,4,5] -~~~~~ - - -*/ -EOF -sed -e "295r tmp" /Users/vsc/git/yap-6.3/library/ugraphs.yap > x - mv x /Users/vsc/git/yap-6.3/library/ugraphs.yap - -#false -cat << "EOF" > tmp -/** @pred transitive_closure(+ _Graph_, + _Closure_) - - -Generate the graph _Closure_ as the transitive closure of graph - _Graph_. -In the next example: - -~~~~~{.prolog} -?- transitive_closure([1-[2,3],2-[4,5],4-[6]],L). - -L = [1-[2,3,4,5,6],2-[4,5,6],4-[6]] -~~~~~ - - -*/ -EOF -sed -e "295r tmp" /Users/vsc/git/yap-6.3/library/ugraphs.yap > x - mv x /Users/vsc/git/yap-6.3/library/ugraphs.yap - -#false -cat << "EOF" > tmp -/** @pred top_sort(+ _Graph_, - _Sort_) - - -Generate the set of nodes _Sort_ as a topological sorting of graph - _Graph_, if one is possible. -In the next example we show how topological sorting works for a linear graph: - -~~~~~{.prolog} -?- top_sort([_138-[_219],_219-[_139], _139-[]],L). - -L = [_138,_219,_139] -~~~~~ - - -*/ -EOF -sed -e "295r tmp" /Users/vsc/git/yap-6.3/library/ugraphs.yap > x - mv x /Users/vsc/git/yap-6.3/library/ugraphs.yap - -#false -cat << "EOF" > tmp -/** @pred top_sort(+ _Graph_, - _Sort0_, - _Sort_) - -Generate the difference list _Sort_- _Sort0_ as a topological -sorting of graph _Graph_, if one is possible. - - -*/ -EOF -sed -e "295r tmp" /Users/vsc/git/yap-6.3/library/ugraphs.yap > x - mv x /Users/vsc/git/yap-6.3/library/ugraphs.yap - -#false -cat << "EOF" > tmp -/** @pred reachable(+ _Node_, + _Graph_, - _Vertices_) - - -Unify _Vertices_ with the set of all vertices in graph - _Graph_ that are reachable from _Node_. In the next example: - -~~~~~{.prolog} -?- reachable(1,[1-[3,5],2-[4],3-[],4-[5],5-[]],V). - -V = [1,3,5] -~~~~~ - - - - - */ -EOF -sed -e "295r tmp" /Users/vsc/git/yap-6.3/library/ugraphs.yap > x - mv x /Users/vsc/git/yap-6.3/library/ugraphs.yap - -#false -cat << "EOF" > tmp -/** @pred neighbours(+ _Vertex_, + _Graph_, - _Vertices_) - - -Unify _Vertices_ with the list of neighbours of vertex _Vertex_ -in _Graph_. In the next example: - -~~~~~{.prolog} -?- neighbours(4,[1-[3,5],2-[4],3-[], - 4-[1,2,7,5],5-[],6-[],7-[],8-[]], NL). - -NL = [1,2,7,5] -~~~~~ - - -*/ -EOF -sed -e "295r tmp" /Users/vsc/git/yap-6.3/library/ugraphs.yap > x - mv x /Users/vsc/git/yap-6.3/library/ugraphs.yap - -#false -cat << "EOF" > tmp -/** @pred neighbors(+ _Vertex_, + _Graph_, - _Vertices_) - - -Unify _Vertices_ with the list of neighbors of vertex _Vertex_ -in _Graph_. If the vertice is not in the graph fail. In the next -example: - -~~~~~{.prolog} -?- neighbors(4,[1-[3,5],2-[4],3-[], - 4-[1,2,7,5],5-[],6-[],7-[],8-[]], - NL). - -NL = [1,2,7,5] -~~~~~ - - -*/ -EOF -sed -e "295r tmp" /Users/vsc/git/yap-6.3/library/ugraphs.yap > x - mv x /Users/vsc/git/yap-6.3/library/ugraphs.yap - -#false -cat << "EOF" > tmp -/** @pred edges(+ _Graph_, - _Edges_) - - -Unify _Edges_ with all edges appearing in graph - _Graph_. In the next example: - -~~~~~{.prolog} -?- vertices([1-[3,5],2-[4],3-[],4-[5],5-[]], V). - -L = [1,2,3,4,5] -~~~~~ - - -*/ -EOF -sed -e "295r tmp" /Users/vsc/git/yap-6.3/library/ugraphs.yap > x - mv x /Users/vsc/git/yap-6.3/library/ugraphs.yap - -#true -cat << "EOF" > tmp -/** @pred del_vertices(+ _Graph_, + _Vertices_, - _NewGraph_) - - -Unify _NewGraph_ with a new graph obtained by deleting the list of -vertices _Vertices_ and all the edges that start from or go to a -vertex in _Vertices_ to the graph _Graph_. In the next example: - -~~~~~{.prolog} -?- del_vertices([2,1],[1-[3,5],2-[4],3-[], - 4-[5],5-[],6-[],7-[2,6],8-[]],NL). - -NL = [3-[],4-[5],5-[],6-[],7-[6],8-[]] -~~~~~ - - -*/ -EOF -sed -e "295r tmp" /Users/vsc/git/yap-6.3/library/ugraphs.yap > x - mv x /Users/vsc/git/yap-6.3/library/ugraphs.yap - -#true -cat << "EOF" > tmp -/** @pred del_edges(+ _Graph_, + _Edges_, - _NewGraph_) - - -Unify _NewGraph_ with a new graph obtained by removing the list of -edges _Edges_ from the graph _Graph_. Notice that no vertices -are deleted. In the next example: - -~~~~~{.prolog} -?- del_edges([1-[3,5],2-[4],3-[],4-[5],5-[], - 6-[],7-[],8-[]], - [1-6,2-3,3-2,5-7,3-2,4-5,1-3],NL). - -NL = [1-[5],2-[4],3-[],4-[],5-[],6-[],7-[],8-[]] -~~~~~ - - -*/ -EOF -sed -e "295r tmp" /Users/vsc/git/yap-6.3/library/ugraphs.yap > x - mv x /Users/vsc/git/yap-6.3/library/ugraphs.yap - -#true -cat << "EOF" > tmp -/** @pred compose(+ _LeftGraph_, + _RightGraph_, - _NewGraph_) - - -Compose the graphs _LeftGraph_ and _RightGraph_ to form _NewGraph_. -In the next example: - -~~~~~{.prolog} -?- compose([1-[2],2-[3]],[2-[4],3-[1,2,4]],L). - -L = [1-[4],2-[1,2,4],3-[]] -~~~~~ - - -*/ -EOF -sed -e "295r tmp" /Users/vsc/git/yap-6.3/library/ugraphs.yap > x - mv x /Users/vsc/git/yap-6.3/library/ugraphs.yap - -#false -cat << "EOF" > tmp -/** @pred complement(+ _Graph_, - _NewGraph_) - - -Unify _NewGraph_ with the graph complementary to _Graph_. -In the next example: - -~~~~~{.prolog} -?- complement([1-[3,5],2-[4],3-[], - 4-[1,2,7,5],5-[],6-[],7-[],8-[]], NL). - -NL = [1-[2,4,6,7,8],2-[1,3,5,6,7,8],3-[1,2,4,5,6,7,8], - 4-[3,5,6,8],5-[1,2,3,4,6,7,8],6-[1,2,3,4,5,7,8], - 7-[1,2,3,4,5,6,8],8-[1,2,3,4,5,6,7]] -~~~~~ - - -*/ -EOF -sed -e "295r tmp" /Users/vsc/git/yap-6.3/library/ugraphs.yap > x - mv x /Users/vsc/git/yap-6.3/library/ugraphs.yap - -#true -cat << "EOF" > tmp -/** @pred add_vertices(+ _Graph_, + _Vertices_, - _NewGraph_) - - -Unify _NewGraph_ with a new graph obtained by adding the list of -vertices _Vertices_ to the graph _Graph_. In the next example: - -~~~~~{.prolog} -?- add_vertices([1-[3,5],2-[4],3-[],4-[5], - 5-[],6-[],7-[],8-[]], - [0,2,9,10,11], - NG). - -NG = [0-[],1-[3,5],2-[4],3-[],4-[5],5-[], - 6-[],7-[],8-[],9-[],10-[],11-[]] -~~~~~ - - -*/ -EOF -sed -e "295r tmp" /Users/vsc/git/yap-6.3/library/ugraphs.yap > x - mv x /Users/vsc/git/yap-6.3/library/ugraphs.yap - -#true -cat << "EOF" > tmp -/** @pred add_edges(+ _Graph_, + _Edges_, - _NewGraph_) - - -Unify _NewGraph_ with a new graph obtained by adding the list of -edges _Edges_ to the graph _Graph_. In the next example: - -~~~~~{.prolog} -?- add_edges([1-[3,5],2-[4],3-[],4-[5],5-[],6-[], - 7-[],8-[]],[1-6,2-3,3-2,5-7,3-2,4-5],NL). - -NL = [1-[3,5,6],2-[3,4],3-[2],4-[5],5-[7],6-[],7-[],8-[]] -~~~~~ - - -*/ -EOF -sed -e "295r tmp" /Users/vsc/git/yap-6.3/library/ugraphs.yap > x - mv x /Users/vsc/git/yap-6.3/library/ugraphs.yap - -#false -cat << "EOF" > tmp -/** @pred vertices_edges_to_ugraph(+ _Vertices_, + _Edges_, - _Graph_) - - -Given a graph with a set of vertices _Vertices_ and a set of edges - _Edges_, _Graph_ must unify with the corresponding -s-representation. Note that the vertices without edges will appear in - _Vertices_ but not in _Edges_. Moreover, it is sufficient for a -vertex to appear in _Edges_. - -~~~~~{.prolog} -?- vertices_edges_to_ugraph([],[1-3,2-4,4-5,1-5],L). - -L = [1-[3,5],2-[4],3-[],4-[5],5-[]] ? - -~~~~~ -In this case all edges are defined implicitly. The next example shows -three unconnected edges: - -~~~~~{.prolog} -?- vertices_edges_to_ugraph([6,7,8],[1-3,2-4,4-5,1-5],L). - -L = [1-[3,5],2-[4],3-[],4-[5],5-[],6-[],7-[],8-[]] ? - -~~~~~ - - -*/ -EOF -sed -e "295r tmp" /Users/vsc/git/yap-6.3/library/ugraphs.yap > x - mv x /Users/vsc/git/yap-6.3/library/ugraphs.yap - -#false -cat << "EOF" > tmp -/** @pred undgraph_neighbours(+ _Vertex_, + _Graph_, - _Vertices_) - - -Unify _Vertices_ with the list of neighbours of vertex _Vertex_ -in _Graph_. - - -*/ -EOF -sed -e "6r tmp" /Users/vsc/git/yap-6.3/library/undgraphs.yap > x - mv x /Users/vsc/git/yap-6.3/library/undgraphs.yap - -#false -cat << "EOF" > tmp -/** @pred undgraph_neighbors(+ _Vertex_, + _Graph_, - _Vertices_) - - -Unify _Vertices_ with the list of neighbors of vertex _Vertex_ -in _Graph_. If the vertice is not in the graph fail. - - -*/ -EOF -sed -e "6r tmp" /Users/vsc/git/yap-6.3/library/undgraphs.yap > x - mv x /Users/vsc/git/yap-6.3/library/undgraphs.yap - -#false -cat << "EOF" > tmp -/** @pred undgraph_edges(+ _Graph_, - _Edges_) - - -Unify _Edges_ with all edges appearing in graph - _Graph_. - - -*/ -EOF -sed -e "6r tmp" /Users/vsc/git/yap-6.3/library/undgraphs.yap > x - mv x /Users/vsc/git/yap-6.3/library/undgraphs.yap - -#false -cat << "EOF" > tmp -/** @pred undgraph_del_vertices(+ _Graph_, + _Vertices_, - _NewGraph_) - - -Unify _NewGraph_ with a new graph obtained by deleting the list of -vertices _Vertices_ and all the edges that start from or go to a -vertex in _Vertices_ to the graph _Graph_. - - -*/ -EOF -sed -e "6r tmp" /Users/vsc/git/yap-6.3/library/undgraphs.yap > x - mv x /Users/vsc/git/yap-6.3/library/undgraphs.yap - -#false -cat << "EOF" > tmp -/** @pred undgraph_del_edges(+ _Graph_, + _Edges_, - _NewGraph_) - - -Unify _NewGraph_ with a new graph obtained by removing the list of -edges _Edges_ from the graph _Graph_. Notice that no vertices -are deleted. - - -*/ -EOF -sed -e "6r tmp" /Users/vsc/git/yap-6.3/library/undgraphs.yap > x - mv x /Users/vsc/git/yap-6.3/library/undgraphs.yap - -#false -cat << "EOF" > tmp -/** @pred undgraph_add_vertices(+ _Graph_, + _Vertices_, - _NewGraph_) - - -Unify _NewGraph_ with a new graph obtained by adding the list of -vertices _Vertices_ to the graph _Graph_. - - -*/ -EOF -sed -e "6r tmp" /Users/vsc/git/yap-6.3/library/undgraphs.yap > x - mv x /Users/vsc/git/yap-6.3/library/undgraphs.yap - -#false -cat << "EOF" > tmp -/** @pred undgraph_add_edges(+ _Graph_, + _Edges_, - _NewGraph_) - - -Unify _NewGraph_ with a new graph obtained by adding the list of -edges _Edges_ to the graph _Graph_. - - -*/ -EOF -sed -e "6r tmp" /Users/vsc/git/yap-6.3/library/undgraphs.yap > x - mv x /Users/vsc/git/yap-6.3/library/undgraphs.yap - -#false -cat << "EOF" > tmp -/** @pred char_type(? _Char_, ? _Type_) - - -Tests or generates alternative _Types_ or _Chars_. The -character-types are inspired by the standard `C` -`` primitives. - -+ `alnum` - _Char_ is a letter (upper- or lowercase) or digit. - -+ `alpha` - _Char_ is a letter (upper- or lowercase). - -+ `csym` - _Char_ is a letter (upper- or lowercase), digit or the underscore (_). These are valid C- and Prolog symbol characters. - -+ `csymf` - _Char_ is a letter (upper- or lowercase) or the underscore (_). These are valid first characters for C- and Prolog symbols - -+ `ascii` - _Char_ is a 7-bits ASCII character (0..127). - -+ `white` - _Char_ is a space or tab. E.i. white space inside a line. - -+ `cntrl` - _Char_ is an ASCII control-character (0..31). - -+ `digit` - _Char_ is a digit. - -+ `digit( _Weight_)` - _Char_ is a digit with value _Weight_. I.e. `char_type(X, digit(6))` yields X = aaasaá'6'. Useful for parsing numbers. - -+ `xdigit( _Weight_)` - _Char_ is a hexa-decimal digit with value _Weight_. I.e. char_type(a, xdigit(X) yields X = '10'. Useful for parsing numbers. - -+ `graph` - _Char_ produces a visible mark on a page when printed. Note that the space is not included! - -+ `lower` - _Char_ is a lower-case letter. - -+ `lower(Upper)` - _Char_ is a lower-case version of _Upper_. Only true if _Char_ is lowercase and _Upper_ uppercase. - -+ `to_lower(Upper)` - _Char_ is a lower-case version of Upper. For non-letters, or letter without case, _Char_ and Lower are the same. See also upcase_atom/2 and downcase_atom/2. - -+ `upper` - _Char_ is an upper-case letter. - -+ `upper(Lower)` - _Char_ is an upper-case version of Lower. Only true if _Char_ is uppercase and Lower lowercase. - -+ `to_upper(Lower)` - _Char_ is an upper-case version of Lower. For non-letters, or letter without case, _Char_ and Lower are the same. See also upcase_atom/2 and downcase_atom/2. - -+ `punct` - _Char_ is a punctuation character. This is a graph character that is not a letter or digit. - -+ `space` - _Char_ is some form of layout character (tab, vertical-tab, newline, etc.). - -+ `end_of_file` - _Char_ is -1. - -+ `end_of_line` - _Char_ ends a line (ASCII: 10..13). - -+ `newline` - _Char_ is a the newline character (10). - -+ `period` - _Char_ counts as the end of a sentence (.,!,?). - -+ `quote` - _Char_ is a quote-character. - -+ `paren(Close)` - _Char_ is an open-parenthesis and Close is the corresponding close-parenthesis. - - -+ `code_type(? _Code_, ? _Type_)` - - -As char_type/2, but uses character-codes rather than -one-character atoms. Please note that both predicates are as -flexible as possible. They handle either representation if the -argument is instantiated and only will instantiate with an integer -code or one-character atom depending of the version used. See also -the prolog-flag double_quotes and the built-in predicates -atom_chars/2 and atom_codes/2. - - - - - */ -EOF -sed -e "459r tmp" /Users/vsc/git/yap-6.3/os/pl-ctype.c > x - mv x /Users/vsc/git/yap-6.3/os/pl-ctype.c - -#false -cat << "EOF" > tmp -/** @pred write_canonical(+ _S_,+ _T_) is iso - -Displays term _T_ on the stream _S_. Atoms are quoted when -necessary, and operators are ignored. - - -*/ -EOF -sed -e "5891r tmp" /Users/vsc/git/yap-6.3/os/pl-file.c > x - mv x /Users/vsc/git/yap-6.3/os/pl-file.c - -#false -cat << "EOF" > tmp -/** @pred print(+ _S_, _T_) - -Prints term _T_ to the stream _S_ instead of to the current output -stream. - - -*/ -EOF -sed -e "5890r tmp" /Users/vsc/git/yap-6.3/os/pl-file.c > x - mv x /Users/vsc/git/yap-6.3/os/pl-file.c - -#false -cat << "EOF" > tmp -/** @pred writeq(+ _S_, _T_) is iso - -As writeq/1, but the output is sent to the stream _S_. - - -*/ -EOF -sed -e "5889r tmp" /Users/vsc/git/yap-6.3/os/pl-file.c > x - mv x /Users/vsc/git/yap-6.3/os/pl-file.c - -#false -cat << "EOF" > tmp -/** @pred write(+ _S_, _T_) is iso - -Writes term _T_ to stream _S_ instead of to the current output -stream. - - -*/ -EOF -sed -e "5888r tmp" /Users/vsc/git/yap-6.3/os/pl-file.c > x - mv x /Users/vsc/git/yap-6.3/os/pl-file.c - -#false -cat << "EOF" > tmp -/** @pred nl(+ _S_) is iso - -Outputs a new line to stream _S_. - - - - - */ -EOF -sed -e "5885r tmp" /Users/vsc/git/yap-6.3/os/pl-file.c > x - mv x /Users/vsc/git/yap-6.3/os/pl-file.c - -#false -cat << "EOF" > tmp -/** @pred writeln( _T_) is iso - - -Same as write/1 followed by nl/0. - - -*/ -EOF -sed -e "5884r tmp" /Users/vsc/git/yap-6.3/os/pl-file.c > x - mv x /Users/vsc/git/yap-6.3/os/pl-file.c - -#false -cat << "EOF" > tmp -/** @pred print( _T_) - - -Prints the term _T_ to the current output stream using write/1 -unless T is bound and a call to the user-defined predicate -`portray/1` succeeds. To do pretty printing of terms the user should -define suitable clauses for `portray/1` and use print/1. - - -*/ -EOF -sed -e "5883r tmp" /Users/vsc/git/yap-6.3/os/pl-file.c > x - mv x /Users/vsc/git/yap-6.3/os/pl-file.c - -#false -cat << "EOF" > tmp -/** @pred writeq( _T_) is iso - - -Writes the term _T_, quoting names to make the result acceptable to -the predicate `read` whenever necessary. - - -*/ -EOF -sed -e "5882r tmp" /Users/vsc/git/yap-6.3/os/pl-file.c > x - mv x /Users/vsc/git/yap-6.3/os/pl-file.c - -#false -cat << "EOF" > tmp -/** @pred write( _T_) is iso - - -The term _T_ is written to the current output stream according to -the operator declarations in force. - - -*/ -EOF -sed -e "5881r tmp" /Users/vsc/git/yap-6.3/os/pl-file.c > x - mv x /Users/vsc/git/yap-6.3/os/pl-file.c - -#false -cat << "EOF" > tmp -/** @pred write_term(+ _S_, + _T_, + _Opts_) is iso - -Displays term _T_ on the current output stream, according to the same -options used by `write_term/3`. - - -*/ -EOF -sed -e "5880r tmp" /Users/vsc/git/yap-6.3/os/pl-file.c > x - mv x /Users/vsc/git/yap-6.3/os/pl-file.c - -#false -cat << "EOF" > tmp -/** @pred write_term(+ _T_, + _Opts_) is iso - - -Displays term _T_ on the current output stream, according to the -following options: - -+ quoted(+ _Bool_) is iso -If `true`, quote atoms if this would be necessary for the atom to -be recognized as an atom by YAP's parser. The default value is -`false`. - -+ ignore_ops(+ _Bool_) is iso -If `true`, ignore operator declarations when writing the term. The -default value is `false`. - -+ numbervars(+ _Bool_) is iso -If `true`, output terms of the form -`$VAR(N)`, where _N_ is an integer, as a sequence of capital -letters. The default value is `false`. - -+ portrayed(+ _Bool_) -If `true`, use portray/1 to portray bound terms. The default -value is `false`. - -+ portray(+ _Bool_) -If `true`, use portray/1 to portray bound terms. The default -value is `false`. - -+ max_depth(+ _Depth_) -If `Depth` is a positive integer, use Depth as -the maximum depth to portray a term. The default is `0`, that is, -unlimited depth. - -+ priority(+ _Piority_) -If `Priority` is a positive integer smaller than `1200`, -give the context priority. The default is `1200`. - -+ cycles(+ _Bool_) -Do not loop in rational trees (default). - - - -*/ -EOF -sed -e "5879r tmp" /Users/vsc/git/yap-6.3/os/pl-file.c > x - mv x /Users/vsc/git/yap-6.3/os/pl-file.c - -#false -cat << "EOF" > tmp -/** @pred write_canonical(+ _T_) is iso - - -Displays term _T_ on the current output stream. Atoms are quoted -when necessary, and operators are ignored, that is, the term is written -in standard parenthesized prefix notation. - - -*/ -EOF -sed -e "5878r tmp" /Users/vsc/git/yap-6.3/os/pl-file.c > x - mv x /Users/vsc/git/yap-6.3/os/pl-file.c - -#false -cat << "EOF" > tmp -/** @pred nl is iso - - -Outputs a new line to the current output stream. - - - - - */ -EOF -sed -e "5877r tmp" /Users/vsc/git/yap-6.3/os/pl-file.c > x - mv x /Users/vsc/git/yap-6.3/os/pl-file.c - -#false -cat << "EOF" > tmp -/** @pred get0(- _C_) - - -The next character from the current input stream is consumed, and then -unified with _C_. There are no restrictions on the possible -values of the ASCII code for the character, but the character will be -internally converted by YAP. - - -*/ -EOF -sed -e "5755r tmp" /Users/vsc/git/yap-6.3/os/pl-file.c > x - mv x /Users/vsc/git/yap-6.3/os/pl-file.c - -#false -cat << "EOF" > tmp -/** @pred get0(+ _S_,- _C_) - -The same as `get0(C)`, but from stream _S_. - - -*/ -EOF -sed -e "5754r tmp" /Users/vsc/git/yap-6.3/os/pl-file.c > x - mv x /Users/vsc/git/yap-6.3/os/pl-file.c - -#false -cat << "EOF" > tmp -/** @pred put_char(+ _N_) is iso - - -Outputs to the current output stream the character who is used to build -the representation of atom `A`. The current output stream must be a -text stream. - - -*/ -EOF -sed -e "5731r tmp" /Users/vsc/git/yap-6.3/os/pl-file.c > x - mv x /Users/vsc/git/yap-6.3/os/pl-file.c - -#false -cat << "EOF" > tmp -/** @pred put_char(+ _S_,+ _A_) is iso - -As `put_char(A)`, but to text stream _S_. - - -*/ -EOF -sed -e "5730r tmp" /Users/vsc/git/yap-6.3/os/pl-file.c > x - mv x /Users/vsc/git/yap-6.3/os/pl-file.c - -#false -cat << "EOF" > tmp -/** @pred peek_char(- _C_) is iso - - -If _C_ is unbound, or is an atom representation of a character, and -the current stream is a text stream, read the next character from the -current stream and unify its atom representation with _C_, while -leaving the current stream position unaltered. - - -*/ -EOF -sed -e "5445r tmp" /Users/vsc/git/yap-6.3/os/pl-file.c > x - mv x /Users/vsc/git/yap-6.3/os/pl-file.c - -#false -cat << "EOF" > tmp -/** @pred peek_char(+ _S_,- _C_) is iso - -If _C_ is unbound, or is an atom representation of a character, and -the stream _S_ is a text stream, read the next character from that -stream and unify its representation as an atom with _C_, while leaving -the current stream position unaltered. - - -*/ -EOF -sed -e "5429r tmp" /Users/vsc/git/yap-6.3/os/pl-file.c > x - mv x /Users/vsc/git/yap-6.3/os/pl-file.c - -#false -cat << "EOF" > tmp -/** @pred peek_code(- _C_) is iso - - -If _C_ is unbound, or is the code for a character, and -the current stream is a text stream, read the next character from the -current stream and unify its code with _C_, while -leaving the current stream position unaltered. - - -*/ -EOF -sed -e "5413r tmp" /Users/vsc/git/yap-6.3/os/pl-file.c > x - mv x /Users/vsc/git/yap-6.3/os/pl-file.c - -#false -cat << "EOF" > tmp -/** @pred peek_code(+ _S_,- _C_) is iso - -If _C_ is unbound, or is an atom representation of a character, and -the stream _S_ is a text stream, read the next character from that -stream and unify its representation as an atom with _C_, while leaving -the current stream position unaltered. - - -*/ -EOF -sed -e "5397r tmp" /Users/vsc/git/yap-6.3/os/pl-file.c > x - mv x /Users/vsc/git/yap-6.3/os/pl-file.c - -#false -cat << "EOF" > tmp -/** @pred peek_byte(- _C_) is iso - - -If _C_ is unbound, or is a character code, and the current stream is a -binary stream, read the next byte from the current stream and unify its -code with _C_, while leaving the current stream position unaltered. - - -*/ -EOF -sed -e "5381r tmp" /Users/vsc/git/yap-6.3/os/pl-file.c > x - mv x /Users/vsc/git/yap-6.3/os/pl-file.c - -#false -cat << "EOF" > tmp -/** @pred peek_byte(+ _S_,- _C_) is iso - -If _C_ is unbound, or is a character code, and _S_ is a binary -stream, read the next byte from the current stream and unify its code -with _C_, while leaving the current stream position unaltered. - - -*/ -EOF -sed -e "5365r tmp" /Users/vsc/git/yap-6.3/os/pl-file.c > x - mv x /Users/vsc/git/yap-6.3/os/pl-file.c - -#false -cat << "EOF" > tmp -/** @pred at_end_of_stream is iso - - -Succeed if the current stream has stream position end-of-stream or -past-end-of-stream. - - -*/ -EOF -sed -e "5309r tmp" /Users/vsc/git/yap-6.3/os/pl-file.c > x - mv x /Users/vsc/git/yap-6.3/os/pl-file.c - -#false -cat << "EOF" > tmp -/** @pred at_end_of_stream(+ _S_) is iso - -Succeed if the stream _S_ has stream position end-of-stream or -past-end-of-stream. Note that _S_ must be a readable stream. - - -*/ -EOF -sed -e "5295r tmp" /Users/vsc/git/yap-6.3/os/pl-file.c > x - mv x /Users/vsc/git/yap-6.3/os/pl-file.c - -#false -cat << "EOF" > tmp -/** @pred line_position(+ _Stream_,- _LinePosition_) - - -Unify _LinePosition_ with the position on current text stream - _Stream_. - - -*/ -EOF -sed -e "5236r tmp" /Users/vsc/git/yap-6.3/os/pl-file.c > x - mv x /Users/vsc/git/yap-6.3/os/pl-file.c - -#false -cat << "EOF" > tmp -/** @pred line_count(+ _Stream_,- _LineNumber_) - - -Unify _LineNumber_ with the line number for the _Stream_. - - -*/ -EOF -sed -e "5212r tmp" /Users/vsc/git/yap-6.3/os/pl-file.c > x - mv x /Users/vsc/git/yap-6.3/os/pl-file.c - -#false -cat << "EOF" > tmp -/** @pred character_count(+ _Stream_,- _CharacterCount_) - - -Unify _CharacterCount_ with the number of characters written to or -read to _Stream_. - - -*/ -EOF -sed -e "5189r tmp" /Users/vsc/git/yap-6.3/os/pl-file.c > x - mv x /Users/vsc/git/yap-6.3/os/pl-file.c - -#false -cat << "EOF" > tmp -/** @pred current_output(- _S_) is iso - - -Unify _S_ with the current output stream. - - -*/ -EOF -sed -e "5150r tmp" /Users/vsc/git/yap-6.3/os/pl-file.c > x - mv x /Users/vsc/git/yap-6.3/os/pl-file.c - -#false -cat << "EOF" > tmp -/** @pred current_input(- _S_) is iso - - -Unify _S_ with the current input stream. - - -*/ -EOF -sed -e "5136r tmp" /Users/vsc/git/yap-6.3/os/pl-file.c > x - mv x /Users/vsc/git/yap-6.3/os/pl-file.c - -#false -cat << "EOF" > tmp -/** @pred set_output(+ _S_) is iso - - -Set stream _S_ as the current output stream. Predicates like -write/1 and put/1 will start using stream _S_. - - -*/ -EOF -sed -e "5114r tmp" /Users/vsc/git/yap-6.3/os/pl-file.c > x - mv x /Users/vsc/git/yap-6.3/os/pl-file.c - -#false -cat << "EOF" > tmp -/** @pred set_input(+ _S_) is iso - - -Set stream _S_ as the current input stream. Predicates like read/1 -and get/1 will start using stream _S_. - - -*/ -EOF -sed -e "5091r tmp" /Users/vsc/git/yap-6.3/os/pl-file.c > x - mv x /Users/vsc/git/yap-6.3/os/pl-file.c - -#false -cat << "EOF" > tmp -/** @pred set_stream_position(+ _S_, + _POS_) is iso - - -Given a stream position _POS_ for a stream _S_, set the current -stream position for _S_ to be _POS_. - - -*/ -EOF -sed -e "4985r tmp" /Users/vsc/git/yap-6.3/os/pl-file.c > x - mv x /Users/vsc/git/yap-6.3/os/pl-file.c - -#false -cat << "EOF" > tmp -/** @pred flush_output(+ _S_) is iso - -Send all data in the output buffer for stream _S_. - - -*/ -EOF -sed -e "4915r tmp" /Users/vsc/git/yap-6.3/os/pl-file.c > x - mv x /Users/vsc/git/yap-6.3/os/pl-file.c - -#false -cat << "EOF" > tmp -/** @pred flush_output is iso - - -Send out all data in the output buffer of the current output stream. - - -*/ -EOF -sed -e "4902r tmp" /Users/vsc/git/yap-6.3/os/pl-file.c > x - mv x /Users/vsc/git/yap-6.3/os/pl-file.c - -#false -cat << "EOF" > tmp -/** @pred is_stream( _S_) - - -Succeeds if _S_ is a currently open stream. - - -*/ -EOF -sed -e "4857r tmp" /Users/vsc/git/yap-6.3/os/pl-file.c > x - mv x /Users/vsc/git/yap-6.3/os/pl-file.c - -#false -cat << "EOF" > tmp -/** @pred stream_property(? _Stream_,? _Prop_) is iso - - - -Obtain the properties for the open streams. If the first argument is -unbound, the procedure will backtrack through all open -streams. Otherwise, the first argument must be a stream term (you may -use `current_stream` to obtain a current stream given a file name). - -The following properties are recognized: - - - -+ file_name( _P_) -An atom giving the file name for the current stream. The file names are -user_input, user_output, and user_error for the -standard streams. - -+ mode( _P_) -The mode used to open the file. It may be one of `append`, -`read`, or `write`. - -+ input -The stream is readable. - -+ output -The stream is writable. - -+ alias( _A_) -ISO-Prolog primitive for stream aliases. YAP returns one of the -existing aliases for the stream. - -+ position( _P_) -A term describing the position in the stream. - -+ end_of_stream( _E_) -Whether the stream is `at` the end of stream, or it has found the -end of stream and is `past`, or whether it has `not` yet -reached the end of stream. - -+ eof_action( _A_) -The action to take when trying to read after reaching the end of -stream. The action may be one of `error`, generate an error, -`eof_code`, return character code `-1`, or `reset` the -stream. - -+ reposition( _B_) -Whether the stream can be repositioned or not, that is, whether it is -seekable. - -+ type( _T_) -Whether the stream is a `text` stream or a `binary` stream. - -+ bom(+ _Bool_) -If present and `true`, a BOM (Byte Order Mark) was -detected while opening the file for reading or a BOM was written while -opening the stream. See BOM for details. - -+ encoding(+ _Encoding_) -Query the encoding used for text. See Encoding for an -overview of wide character and encoding issues in YAP. - -+ representation_errors(+ _Mode_) -Behaviour when writing characters to the stream that cannot be -represented by the encoding. The behaviour is one of `error` -(throw and Input/Output error exception), `prolog` (write `\u...\` -escape code or `xml` (write `\&#...;` XML character entity). -The initial mode is `prolog` for the user streams and -`error` for all other streams. See also Encoding and -`open/4`. - - - -+ current_line_number(- _LineNumber_) - - -Unify _LineNumber_ with the line number for the current stream. - - -*/ -EOF -sed -e "4644r tmp" /Users/vsc/git/yap-6.3/os/pl-file.c > x - mv x /Users/vsc/git/yap-6.3/os/pl-file.c - -#false -cat << "EOF" > tmp -/** @pred close(+ _S_,+ _O_) is iso - -Closes the stream _S_, following options _O_. - -The only valid options are `force(true)` and `force(false)`. -YAP currently ignores these options. - - -*/ -EOF -sed -e "4164r tmp" /Users/vsc/git/yap-6.3/os/pl-file.c > x - mv x /Users/vsc/git/yap-6.3/os/pl-file.c - -#false -cat << "EOF" > tmp -/** @pred close(+ _S_) is iso - - -Closes the stream _S_. If _S_ does not stand for a stream -currently opened an error is reported. The streams user_input, -user_output, and user_error can never be closed. - - -*/ -EOF -sed -e "4141r tmp" /Users/vsc/git/yap-6.3/os/pl-file.c > x - mv x /Users/vsc/git/yap-6.3/os/pl-file.c - -#false -cat << "EOF" > tmp -/** @pred told - - -Closes the current output stream, and the user's terminal becomes again -the current output stream. It is important to remember to close streams -after having finished using them, as the maximum number of -simultaneously opened streams is 17. - - -*/ -EOF -sed -e "3984r tmp" /Users/vsc/git/yap-6.3/os/pl-file.c > x - mv x /Users/vsc/git/yap-6.3/os/pl-file.c - -#false -cat << "EOF" > tmp -/** @pred telling(- _S_) - - -The current output stream is unified with _S_. - - -*/ -EOF -sed -e "3964r tmp" /Users/vsc/git/yap-6.3/os/pl-file.c > x - mv x /Users/vsc/git/yap-6.3/os/pl-file.c - -#false -cat << "EOF" > tmp -/** @pred tell(+ _S_) - - -If _S_ is a currently opened stream for output, it becomes the -current output stream. If _S_ is an atom it is taken to be a -filename. If there is no output stream currently associated with it, -then it is opened for output, and the new output stream created becomes -the current output stream. If it is not possible to open the file, an -error occurs. If there is a single opened output stream currently -associated with the file, then it becomes the current output stream; if -there are more than one in that condition, one of them is chosen. - -Whenever _S_ is a stream not currently opened for output, an error -may be reported, depending on the state of the file_errors flag. The -predicate just fails, if _S_ is neither a stream nor an atom. - - -*/ -EOF -sed -e "3947r tmp" /Users/vsc/git/yap-6.3/os/pl-file.c > x - mv x /Users/vsc/git/yap-6.3/os/pl-file.c - -#false -cat << "EOF" > tmp -/** @pred seeing(- _S_) - - -The current input stream is unified with _S_. - - -*/ -EOF -sed -e "3875r tmp" /Users/vsc/git/yap-6.3/os/pl-file.c > x - mv x /Users/vsc/git/yap-6.3/os/pl-file.c - -#false -cat << "EOF" > tmp -/** @pred seen - - -Closes the current input stream (see 6.7.). - - - - - */ -EOF -sed -e "3862r tmp" /Users/vsc/git/yap-6.3/os/pl-file.c > x - mv x /Users/vsc/git/yap-6.3/os/pl-file.c - -#false -cat << "EOF" > tmp -/** @pred see(+ _S_) - - -If _S_ is a currently opened input stream then it is assumed to be -the current input stream. If _S_ is an atom it is taken as a -filename. If there is no input stream currently associated with it, then -it is opened for input, and the new input stream thus created becomes -the current input stream. If it is not possible to open the file, an -error occurs. If there is a single opened input stream currently -associated with the file, it becomes the current input stream; if there -are more than one in that condition, then one of them is chosen. - -When _S_ is a stream not currently opened for input, an error may be -reported, depending on the state of the `file_errors` flag. If - _S_ is neither a stream nor an atom the predicates just fails. - - -*/ -EOF -sed -e "3850r tmp" /Users/vsc/git/yap-6.3/os/pl-file.c > x - mv x /Users/vsc/git/yap-6.3/os/pl-file.c - -#false -cat << "EOF" > tmp -/** @pred open(+ _F_,+ _M_,- _S_) is iso - - -Opens the file with name _F_ in mode _M_ (`read`, `write` or -`append`), returning _S_ unified with the stream name. - -At most, there are 17 streams opened at the same time. Each stream is -either an input or an output stream but not both. There are always 3 -open streams: user_input for reading, user_output for writing -and user_error for writing. If there is no ambiguity, the atoms -user_input and user_output may be referred to as `user`. - -The `file_errors` flag controls whether errors are reported when in -mode `read` or `append` the file _F_ does not exist or is not -readable, and whether in mode `write` or `append` the file is not -writable. - -*/ -EOF -sed -e "3732r tmp" /Users/vsc/git/yap-6.3/os/pl-file.c > x - mv x /Users/vsc/git/yap-6.3/os/pl-file.c - -#false -cat << "EOF" > tmp -/** @pred open(+ _F_,+ _M_,- _S_,+ _Opts_) is iso - -Opens the file with name _F_ in mode _M_ (`read`, `write` or -`append`), returning _S_ unified with the stream name, and following -these options: - - - -+ `type(+ _T_)` is iso - - Specify whether the stream is a `text` stream (default), or a -`binary` stream. - -+ `reposition(+ _Bool_)` is iso - Specify whether it is possible to reposition the stream (`true`), or -not (`false`). By default, YAP enables repositioning for all -files, except terminal files and sockets. - -+ `eof(+ _Action_)` is iso - - Specify the action to take if attempting to input characters from a -stream where we have previously found an `end_of_file`. The possible -actions are `error`, that raises an error, `reset`, that tries to -reset the stream and is used for `tty` type files, and `eof_code`, -which generates a new `end_of_file` (default for non-tty files). - -+ `alias(+ _Name_)` is iso - - Specify an alias to the stream. The alias Name must be an atom. The -alias can be used instead of the stream descriptor for every operation -concerning the stream. - - The operation will fail and give an error if the alias name is already -in use. YAP allows several aliases for the same file, but only -one is returned by stream_property/2 - -+ `bom(+ _Bool_)` - - If present and `true`, a BOM (Byte Order Mark) was -detected while opening the file for reading or a BOM was written while -opening the stream. See BOM for details. - -+ `encoding(+ _Encoding_)` - -Set the encoding used for text. See Encoding for an overview of -wide character and encoding issues. - -+ `representation_errors(+ _Mode_)` - - Change the behaviour when writing characters to the stream that cannot -be represented by the encoding. The behaviour is one of `error` -(throw and Input/Output error exception), `prolog` (write `\u...\` -escape code or `xml` (write `\&#...;` XML character entity). -The initial mode is `prolog` for the user streams and -`error` for all other streams. See also Encoding. - -+ `expand_filename(+ _Mode_)` - - If _Mode_ is `true` then do filename expansion, then ask Prolog -to do file name expansion before actually trying to opening the file: -this includes processing `~` characters and processing `$` -environment variables at the beginning of the file. Otherwise, just try -to open the file using the given name. - - The default behavior is given by the Prolog flag -open_expands_filename. - - - - -*/ -EOF -sed -e "3703r tmp" /Users/vsc/git/yap-6.3/os/pl-file.c > x - mv x /Users/vsc/git/yap-6.3/os/pl-file.c - -#false -cat << "EOF" > tmp -/** @pred tab(+ _N_) - - -Outputs _N_ spaces to the current output stream. - - -*/ -EOF -sed -e "3300r tmp" /Users/vsc/git/yap-6.3/os/pl-file.c > x - mv x /Users/vsc/git/yap-6.3/os/pl-file.c - -#false -cat << "EOF" > tmp -/** @pred tab(+ _S_,+ _N_) - -The same as tab/1, but using stream _S_. - - -*/ -EOF -sed -e "3286r tmp" /Users/vsc/git/yap-6.3/os/pl-file.c > x - mv x /Users/vsc/git/yap-6.3/os/pl-file.c - -#false -cat << "EOF" > tmp -/** @pred prompt(- _A_,+ _B_) - - -Changes YAP input prompt from _A_ to _B_. - - -*/ -EOF -sed -e "3189r tmp" /Users/vsc/git/yap-6.3/os/pl-file.c > x - mv x /Users/vsc/git/yap-6.3/os/pl-file.c - -#false -cat << "EOF" > tmp -/** @pred get_char(- _C_) is iso - - -If _C_ is unbound, or is an atom representation of a character, and -the current stream is a text stream, read the next character from the -current stream and unify its atom representation with _C_. - - -*/ -EOF -sed -e "3112r tmp" /Users/vsc/git/yap-6.3/os/pl-file.c > x - mv x /Users/vsc/git/yap-6.3/os/pl-file.c - -#false -cat << "EOF" > tmp -/** @pred get_char(+ _S_,- _C_) is iso - -If _C_ is unbound, or is an atom representation of a character, and -the stream _S_ is a text stream, read the next character from that -stream and unify its representation as an atom with _C_. - - -*/ -EOF -sed -e "3096r tmp" /Users/vsc/git/yap-6.3/os/pl-file.c > x - mv x /Users/vsc/git/yap-6.3/os/pl-file.c - -#false -cat << "EOF" > tmp -/** @pred get_code(- _C_) is iso - - -If _C_ is unbound, or is the code for a character, and -the current stream is a text stream, read the next character from the -current stream and unify its code with _C_. - - -*/ -EOF -sed -e "3060r tmp" /Users/vsc/git/yap-6.3/os/pl-file.c > x - mv x /Users/vsc/git/yap-6.3/os/pl-file.c - -#false -cat << "EOF" > tmp -/** @pred get_code(+ _S_,- _C_) is iso - -If _C_ is unbound, or is a character code, and the stream _S_ is a -text stream, read the next character from that stream and unify its -code with _C_. - - -*/ -EOF -sed -e "3044r tmp" /Users/vsc/git/yap-6.3/os/pl-file.c > x - mv x /Users/vsc/git/yap-6.3/os/pl-file.c - -#false -cat << "EOF" > tmp -/** @pred get_byte(- _C_) is iso - - -If _C_ is unbound, or is a character code, and the current stream is a -binary stream, read the next byte from the current stream and unify its -code with _C_. - - -*/ -EOF -sed -e "3002r tmp" /Users/vsc/git/yap-6.3/os/pl-file.c > x - mv x /Users/vsc/git/yap-6.3/os/pl-file.c - -#false -cat << "EOF" > tmp -/** @pred get_byte(+ _S_,- _C_) is iso - -If _C_ is unbound, or is a character code, and the stream _S_ is a -binary stream, read the next byte from that stream and unify its -code with _C_. - - -*/ -EOF -sed -e "2985r tmp" /Users/vsc/git/yap-6.3/os/pl-file.c > x - mv x /Users/vsc/git/yap-6.3/os/pl-file.c - -#false -cat << "EOF" > tmp -/** @pred skip(+ _S_,- _C_) - -Like skip/1, but using stream _S_ instead of the current -input stream. - - -*/ -EOF -sed -e "2917r tmp" /Users/vsc/git/yap-6.3/os/pl-file.c > x - mv x /Users/vsc/git/yap-6.3/os/pl-file.c - -#false -cat << "EOF" > tmp -/** @pred skip(+ _N_) - - -Skips input characters until the next occurrence of the character with -ASCII code _N_. The argument to this predicate can take the same forms -as those for `put` (see 6.11). - - -*/ -EOF -sed -e "2902r tmp" /Users/vsc/git/yap-6.3/os/pl-file.c > x - mv x /Users/vsc/git/yap-6.3/os/pl-file.c - -#false -cat << "EOF" > tmp -/** @pred get(+ _S_,- _C_) - -The same as `get(C)`, but from stream _S_. - - -*/ -EOF -sed -e "2867r tmp" /Users/vsc/git/yap-6.3/os/pl-file.c > x - mv x /Users/vsc/git/yap-6.3/os/pl-file.c - -#false -cat << "EOF" > tmp -/** @pred get(- _C_) - - -The next non-blank character from the current input stream is unified -with _C_. Blank characters are the ones whose ASCII codes are not -greater than 32. If there are no more non-blank characters in the -stream, _C_ is unified with -1. If `end_of_stream` has already -been reached in the previous reading, this call will give an error message. - - -*/ -EOF -sed -e "2853r tmp" /Users/vsc/git/yap-6.3/os/pl-file.c > x - mv x /Users/vsc/git/yap-6.3/os/pl-file.c - -#false -cat << "EOF" > tmp -/** @pred put(+ _N_) - - -Outputs to the current output stream the character whose ASCII code is - _N_. The character _N_ must be a legal ASCII character code, an -expression yielding such a code, or a list in which case only the first -element is used. - - -*/ -EOF -sed -e "2808r tmp" /Users/vsc/git/yap-6.3/os/pl-file.c > x - mv x /Users/vsc/git/yap-6.3/os/pl-file.c - -#false -cat << "EOF" > tmp -/** @pred put(+ _S_,+ _N_) - -As `put(N)`, but to stream _S_. - - -*/ -EOF -sed -e "2790r tmp" /Users/vsc/git/yap-6.3/os/pl-file.c > x - mv x /Users/vsc/git/yap-6.3/os/pl-file.c - -#false -cat << "EOF" > tmp -/** @pred put_code(+ _N_) is iso - - -Outputs to the current output stream the character whose ASCII code is - _N_. The current output stream must be a text stream. The character - _N_ must be a legal ASCII character code, an expression yielding such -a code, or a list in which case only the first element is used. - - -*/ -EOF -sed -e "2776r tmp" /Users/vsc/git/yap-6.3/os/pl-file.c > x - mv x /Users/vsc/git/yap-6.3/os/pl-file.c - -#false -cat << "EOF" > tmp -/** @pred put_code(+ _S_,+ _N_) is iso - -As `put_code(N)`, but to text stream _S_. - - -*/ -EOF -sed -e "2749r tmp" /Users/vsc/git/yap-6.3/os/pl-file.c > x - mv x /Users/vsc/git/yap-6.3/os/pl-file.c - -#false -cat << "EOF" > tmp -/** @pred put_byte(+ _N_) is iso - - -Outputs to the current output stream the character whose code is - _N_. The current output stream must be a binary stream. - - -*/ -EOF -sed -e "2713r tmp" /Users/vsc/git/yap-6.3/os/pl-file.c > x - mv x /Users/vsc/git/yap-6.3/os/pl-file.c - -#false -cat << "EOF" > tmp -/** @pred put_byte(+ _S_,+ _N_) is iso - -As `put_byte(N)`, but to binary stream _S_. - - -*/ -EOF -sed -e "2699r tmp" /Users/vsc/git/yap-6.3/os/pl-file.c > x - mv x /Users/vsc/git/yap-6.3/os/pl-file.c - -#false -cat << "EOF" > tmp -/** @pred file_name_extension(? _Base_,? _Extension_, ? _Name_) - - - -This predicate is used to add, remove or test filename extensions. The -main reason for its introduction is to deal with different filename -properties in a portable manner. If the file system is -case-insensitive, testing for an extension will be done -case-insensitive too. _Extension_ may be specified with or -without a leading dot (.). If an _Extension_ is generated, it -will not have a leading dot. - - -*/ -EOF -sed -e "1231r tmp" /Users/vsc/git/yap-6.3/os/pl-files.c > x - mv x /Users/vsc/git/yap-6.3/os/pl-files.c - -#false -cat << "EOF" > tmp -/** @pred file_base_name(+ _Name_,- _FileName_) - - -Give the path a full path _FullPath_ extract the _FileName_. - - -*/ -EOF -sed -e "967r tmp" /Users/vsc/git/yap-6.3/os/pl-files.c > x - mv x /Users/vsc/git/yap-6.3/os/pl-files.c - -#false -cat << "EOF" > tmp -/** @pred access_file(+ _F_,+ _M_) - -Is the file accessible? - - -*/ -EOF -sed -e "838r tmp" /Users/vsc/git/yap-6.3/os/pl-files.c > x - mv x /Users/vsc/git/yap-6.3/os/pl-files.c - -#false -cat << "EOF" > tmp -/** @pred atom_to_term(+ _Atom_, - _Term_, - _Bindings_) - - -Use _Atom_ as input to read_term/2 using the option `variable_names` and return the read term in _Term_ and the variable bindings in _Bindings_. _Bindings_ is a list of `Name = Var` couples, thus providing access to the actual variable names. See also read_term/2. If Atom has no valid syntax, a syntax_error exception is raised. - - -*/ -EOF -sed -e "1563r tmp" /Users/vsc/git/yap-6.3/os/pl-read.c > x - mv x /Users/vsc/git/yap-6.3/os/pl-read.c - -#false -cat << "EOF" > tmp -/** @pred read_term(- _T_,+ _Options_) is iso - - -Reads term _T_ from the current input stream with execution -controlled by the following options: - -+ term_position(- _Position_) - -Unify _Position_ with a term describing the position of the stream -at the start of parse. Use stream_position_data/3 to obtain extra -information. - -+ singletons(- _Names_) - -Unify _Names_ with a list of the form _Name=Var_, where - _Name_ is the name of a non-anonymous singleton variable in the -original term, and `Var` is the variable's representation in -YAP. -The variables occur in left-to-right traversal order. - -+ syntax_errors(+ _Val_) - -Control action to be taken after syntax errors. See yap_flag/2 -for detailed information. - -+ variables(- _Names_) - -Unify _Names_ with a list of the form _Name=Var_, where _Name_ is -the name of a non-anonymous variable in the original term, and _Var_ -is the variable's representation in YAP. -The variables occur in left-to-right traversal order. - - -*/ -EOF -sed -e "1448r tmp" /Users/vsc/git/yap-6.3/os/pl-read.c > x - mv x /Users/vsc/git/yap-6.3/os/pl-read.c - -#false -cat << "EOF" > tmp -/** @pred read_term(+ _S_,- _T_,+ _Options_) is iso - -Reads term _T_ from stream _S_ with execution controlled by the -same options as read_term/2. - - -*/ -EOF -sed -e "1380r tmp" /Users/vsc/git/yap-6.3/os/pl-read.c > x - mv x /Users/vsc/git/yap-6.3/os/pl-read.c - -#false -cat << "EOF" > tmp -/** @pred mtbdd_new(? _Exp_, - _BddHandle_) - -create a new algebraic decision diagram (ADD) from the logical -expression _Exp_. The expression may include: - -+ Logical Variables: -a leaf-node can be a logical variable, or parameter. -+ Number -a leaf-node can also be any number -+ _X_ \* _Y_ -product -+ _X_ + _Y_ -sum -+ _X_ - _Y_ -subtraction -+ or( _X_, _Y_), _X_ \/ _Y_ -logical or - - - -*/ -EOF -sed -e "20r tmp" /Users/vsc/git/yap-6.3/packages/bdd/bdd.yap > x - mv x /Users/vsc/git/yap-6.3/packages/bdd/bdd.yap - -#false -cat << "EOF" > tmp -/** @pred bdd_tree(+ _BDDHandle_, _Term_) - -Convert the BDD or ADD represented by _BDDHandle_ to a Prolog term -of the form `bdd( _Dir_, _Nodes_, _Vars_)` or `mtbdd( _Nodes_, _Vars_)`, respectively. The arguments are: - -+ - _Dir_ direction of the BDD, usually 1 -+ - _Nodes_ list of nodes in the BDD or ADD. - -In a BDD nodes may be pp (both terminals are positive) or pn -(right-hand-side is negative), and have four arguments: a logical -variable that will be bound to the value of the node, the logical -variable corresponding to the node, a logical variable, a 0 or a 1 with -the value of the left-hand side, and a logical variable, a 0 or a 1 -with the right-hand side. - -+ - _Vars_ are the free variables in the original BDD, or the parameters of the BDD/ADD. - -As an example, the BDD for the expression `X+(Y+X)\*(-Z)` becomes: - -~~~~~ -bdd(1,[pn(N2,X,1,N1),pp(N1,Y,N0,1),pn(N0,Z,1,1)],vs(X,Y,Z)) -~~~~~ - - -*/ -EOF -sed -e "20r tmp" /Users/vsc/git/yap-6.3/packages/bdd/bdd.yap > x - mv x /Users/vsc/git/yap-6.3/packages/bdd/bdd.yap - -#false -cat << "EOF" > tmp -/** @pred bdd_to_probability_sum_product(+ _BDDHandle_, - _Probs_, - _Prob_) -Each node in a BDD is given a probability _Pi_. The total -probability of a corresponding sum-product network is _Prob_, and -the probabilities of the inner nodes are _Probs_. - -In Prolog, this predicate would correspond to computing the value of a -BDD. The input variables will be bound to probabilities, eg -`[ _X_, _Y_, _Z_] = [0.3.0.7,0.1]`, and the previous -`eval_bdd` would operate over real numbers: - -~~~~~ - Tree = bdd(1, T, _Vs), - reverse(T, RT), - foldl(eval_prob, RT, _, V). - -eval_prob(pp(P,X,L,R), _, P) :- - P is X * L + (1-X) * R. -eval_prob(pn(P,X,L,R), _, P) :- - P is X * L + (1-X) * (1-R). -~~~~~ - -*/ -EOF -sed -e "20r tmp" /Users/vsc/git/yap-6.3/packages/bdd/bdd.yap > x - mv x /Users/vsc/git/yap-6.3/packages/bdd/bdd.yap - -#false -cat << "EOF" > tmp -/** @pred bdd_to_probability_sum_product(+ _BDDHandle_, - _Prob_) - -Each node in a BDD is given a probability _Pi_. The total -probability of a corresponding sum-product network is _Prob_. - - -*/ -EOF -sed -e "20r tmp" /Users/vsc/git/yap-6.3/packages/bdd/bdd.yap > x - mv x /Users/vsc/git/yap-6.3/packages/bdd/bdd.yap - -#false -cat << "EOF" > tmp -/** @pred bdd_size(+ _BDDHandle_, - _Size_) - -Unify _Size_ with the number of nodes in _BDDHandle_. - - -*/ -EOF -sed -e "20r tmp" /Users/vsc/git/yap-6.3/packages/bdd/bdd.yap > x - mv x /Users/vsc/git/yap-6.3/packages/bdd/bdd.yap - -#false -cat << "EOF" > tmp -/** @pred bdd_print(+ _BDDHandle_, + _File_) - -Output bdd _BDDHandle_ as a dot file to _File_. - - -*/ -EOF -sed -e "20r tmp" /Users/vsc/git/yap-6.3/packages/bdd/bdd.yap > x - mv x /Users/vsc/git/yap-6.3/packages/bdd/bdd.yap - -#false -cat << "EOF" > tmp -/** @pred bdd_new(? _Exp_, - _BddHandle_) - -create a new BDD from the logical expression _Exp_. The expression -may include: - -+ Logical Variables: -a leaf-node can be a logical variable. -+ Constants 0 and 1 -a leaf-node can also be one of these two constants. -+ or( _X_, _Y_), _X_ \/ _Y_, _X_ + _Y_ -disjunction -+ and( _X_, _Y_), _X_ /\ _Y_, _X_ \* _Y_ -conjunction -+ nand( _X_, _Y_) -negated conjunction@ -+ nor( _X_, _Y_) -negated disjunction -+ xor( _X_, _Y_) -exclusive or -+ not( _X_), - _X_ -negation - - - -*/ -EOF -sed -e "20r tmp" /Users/vsc/git/yap-6.3/packages/bdd/bdd.yap > x - mv x /Users/vsc/git/yap-6.3/packages/bdd/bdd.yap - -#false -cat << "EOF" > tmp -/** @pred bdd_from_list(? _List_, ?_Vars_, - _BddHandle_) - -Convert a _List_ of logical expressions of the form above, that -includes the set of free variables _Vars_, into a BDD accessible -through _BddHandle_. - - -*/ -EOF -sed -e "20r tmp" /Users/vsc/git/yap-6.3/packages/bdd/bdd.yap > x - mv x /Users/vsc/git/yap-6.3/packages/bdd/bdd.yap - -#false -cat << "EOF" > tmp -/** @pred bdd_eval(+ _BDDHandle_, _Val_) - -Unify _Val_ with the value of the logical expression compiled in - _BDDHandle_ given an assignment to its variables. - -~~~~~ -bdd_new(X+(Y+X)*(-Z), BDD), -[X,Y,Z] = [0,0,0], -bdd_eval(BDD, V), -writeln(V). -~~~~~ -would write 0 in the standard output stream. - -The Prolog code equivalent to bdd_eval/2 is: - -~~~~~ - Tree = bdd(1, T, _Vs), - reverse(T, RT), - foldl(eval_bdd, RT, _, V). - -eval_bdd(pp(P,X,L,R), _, P) :- - P is ( X/\L ) \/ ( (1-X) /\ R ). -eval_bdd(pn(P,X,L,R), _, P) :- - P is ( X/\L ) \/ ( (1-X) /\ (1-R) ). -~~~~~ -First, the nodes are reversed to implement bottom-up evaluation. Then, -we use the `foldl` list manipulation predicate to walk every node, -computing the disjunction of the two cases and binding the output -variable. The top node gives the full expression value. Notice that -`(1- _X_)` implements negation. - - -*/ -EOF -sed -e "20r tmp" /Users/vsc/git/yap-6.3/packages/bdd/bdd.yap > x - mv x /Users/vsc/git/yap-6.3/packages/bdd/bdd.yap - -#false -cat << "EOF" > tmp -/** @pred bdd_close( _BDDHandle_) - -close the BDD and release any resources it holds. - - - - - */ -EOF -sed -e "20r tmp" /Users/vsc/git/yap-6.3/packages/bdd/bdd.yap > x - mv x /Users/vsc/git/yap-6.3/packages/bdd/bdd.yap - -#true -cat << "EOF" > tmp -/** @pred chr_show_store(+ _Mod_) -Prints all suspended constraints of module _Mod_ to the standard -output. This predicate is automatically called by the SWI-Prolog toplevel at -the end of each query for every CHR module currently loaded. The prolog-flag -`chr_toplevel_show_store` controls whether the toplevel shows the -constraint stores. The value `true` enables it. Any other value -disables it. - - - - - */ -EOF -sed -e "35r tmp" /Users/vsc/git/yap-6.3/packages/chr/chr_debug.pl > x - mv x /Users/vsc/git/yap-6.3/packages/chr/chr_debug.pl - -#true -cat << "EOF" > tmp -/** @pred chr_notrace -De-activate the CHR tracer. By default the CHR tracer is activated and -deactivated automatically by the Prolog predicates trace/0 and -notrace/0. - -+ chr_leash/0 - -Define the set of CHR ports on which the CHR -tracer asks for user intervention (i.e. stops). _Spec_ is either a -list of ports or a predefined `alias`. Defined aliases are: -`full` to stop at all ports, `none` or `off` to never -stop, and `default` to stop at the `call`, `exit`, -`fail`, `wake` and `apply` ports. See also leash/1. - - -*/ -EOF -sed -e "74r tmp" /Users/vsc/git/yap-6.3/packages/chr/chr_runtime.pl > x - mv x /Users/vsc/git/yap-6.3/packages/chr/chr_runtime.pl - -#true -cat << "EOF" > tmp -/** @pred wait(+ _PID_,- _Status_) - - -Wait until process _PID_ terminates, and return its exits _Status_. - - - - - */ -EOF -sed -e "30r tmp" /Users/vsc/git/yap-6.3/packages/clib/unix.pl > x - mv x /Users/vsc/git/yap-6.3/packages/clib/unix.pl - -#true -cat << "EOF" > tmp -/** @pred kill( _Id_,+ _SIGNAL_) - - - -Send signal _SIGNAL_ to process _Id_. In Unix this predicate is -a direct interface to `kill` so one can send signals to groups of -processes. In WIN32 the predicate is an interface to -`TerminateProcess`, so it kills _Id_ independently of _SIGNAL_. - - -*/ -EOF -sed -e "30r tmp" /Users/vsc/git/yap-6.3/packages/clib/unix.pl > x - mv x /Users/vsc/git/yap-6.3/packages/clib/unix.pl - -#true -cat << "EOF" > tmp -/** @pred minimize(V) -minimise variable _V_ - - - - - */ -EOF -sed -e "108r tmp" /Users/vsc/git/yap-6.3/packages/clpqr/clpr.pl > x - mv x /Users/vsc/git/yap-6.3/packages/clpqr/clpr.pl - -#true -cat << "EOF" > tmp -/** @pred maximize( _V_) -maximise variable _V_ - - -*/ -EOF -sed -e "108r tmp" /Users/vsc/git/yap-6.3/packages/clpqr/clpr.pl > x - mv x /Users/vsc/git/yap-6.3/packages/clpqr/clpr.pl - -#true -cat << "EOF" > tmp -/** @pred inf(+ _Expression_,- _Sup_) -Computes the supremum of _Expression_ within the current state of -the constraint store and returns that supremum in _Sup_. This -predicate does not change the constraint store. - - -*/ -EOF -sed -e "108r tmp" /Users/vsc/git/yap-6.3/packages/clpqr/clpr.pl > x - mv x /Users/vsc/git/yap-6.3/packages/clpqr/clpr.pl - -#true -cat << "EOF" > tmp -/** @pred inf(+ _Expression_,- _Inf_) -Computes the infimum of _Expression_ within the current state of the -constraint store and returns that infimum in _Inf_. This predicate -does not change the constraint store. - - -*/ -EOF -sed -e "108r tmp" /Users/vsc/git/yap-6.3/packages/clpqr/clpr.pl > x - mv x /Users/vsc/git/yap-6.3/packages/clpqr/clpr.pl - -#true -cat << "EOF" > tmp -/** @pred entailed(+ _Constraint_) -Succeeds if _Constraint_ is necessarily true within the current -constraint store. This means that adding the negation of the constraint -to the store results in failure. - - -*/ -EOF -sed -e "108r tmp" /Users/vsc/git/yap-6.3/packages/clpqr/clpr.pl > x - mv x /Users/vsc/git/yap-6.3/packages/clpqr/clpr.pl - -#true -cat << "EOF" > tmp -/** @pred dump(+ _Target_,+ _Newvars_,- _CodedAnswer_) -Returns the constraints on _Target_ in the list _CodedAnswer_ -where all variables of _Target_ have veen replaced by _NewVars_. -This operation does not change the constraint store. E.g. in - -~~~~~ -dump([X,Y,Z],[x,y,z],Cons) -~~~~~ - - _Cons_ will contain the constraints on _X_, _Y_ and - _Z_ where these variables have been replaced by atoms `x`, `y` and `z`. - - - - - */ -EOF -sed -e "108r tmp" /Users/vsc/git/yap-6.3/packages/clpqr/clpr.pl > x - mv x /Users/vsc/git/yap-6.3/packages/clpqr/clpr.pl - -#true -cat << "EOF" > tmp -/** @pred bb_inf(+ _Ints_,+ _Expression_,- _Inf_,- _Vertext_,+ _Eps_) -Computes the infimum of _Expression_ within the current constraint -store, with the additional constraint that in that infimum, all -variables in _Ints_ have integral values. _Vertex_ will contain -the values of _Ints_ in the infimum. _Eps_ denotes how much a -value may differ from an integer to be considered an integer. E.g. when - _Eps_ = 0.001, then X = 4.999 will be considered as an integer (5 in -this case). _Eps_ should be between 0 and 0.5. - - -*/ -EOF -sed -e "108r tmp" /Users/vsc/git/yap-6.3/packages/clpqr/clpr.pl > x - mv x /Users/vsc/git/yap-6.3/packages/clpqr/clpr.pl - -#true -cat << "EOF" > tmp -/** @pred bb_inf(+ _Ints_,+ _Expression_,- _Inf_) -The same as bb_inf/5 but without returning the values of the integers -and with an eps of 0.001. - - -*/ -EOF -sed -e "108r tmp" /Users/vsc/git/yap-6.3/packages/clpqr/clpr.pl > x - mv x /Users/vsc/git/yap-6.3/packages/clpqr/clpr.pl - -#true -cat << "EOF" > tmp -/** @pred split(+ _Line_,+ _Separators_,- _Split_) - - - -Unify _Words_ with a set of strings obtained from _Line_ by -using the character codes in _Separators_ as separators. As an -example, consider: - -~~~~~{.prolog} -?- split("Hello * I am free"," *",S). - -S = ["Hello","I","am","free"] ? - -no -~~~~~ - - -*/ -EOF -sed -e "59r tmp" /Users/vsc/git/yap-6.3/packages/clpqr/clpr/nf_r.pl > x - mv x /Users/vsc/git/yap-6.3/packages/clpqr/clpr/nf_r.pl - -#true -cat << "EOF" > tmp -/** @pred minimum( _X_, _Vs_) - -*/ -EOF -sed -e "30r tmp" /Users/vsc/git/yap-6.3/packages/gecode/clpfd.yap > x - mv x /Users/vsc/git/yap-6.3/packages/gecode/clpfd.yap - -#false -cat << "EOF" > tmp -/** @pred maximum( _X_, _Vs_) - -*/ -EOF -sed -e "30r tmp" /Users/vsc/git/yap-6.3/packages/gecode/clpfd.yap > x - mv x /Users/vsc/git/yap-6.3/packages/gecode/clpfd.yap - -#false -cat << "EOF" > tmp -/** @pred element( _X_, _Vs_ ) - _X_ is an element of list _Vs_ - - -*/ -EOF -sed -e "30r tmp" /Users/vsc/git/yap-6.3/packages/gecode/clpfd.yap > x - mv x /Users/vsc/git/yap-6.3/packages/gecode/clpfd.yap - -#false -cat << "EOF" > tmp -/** @pred clause( _Type_, _Ps_ , _Ns_, _V_ ) -If _Type_ is `and` it is the conjunction of boolean variables - _Ps_ and the negation of boolean variables _Ns_ and must have -result _V_. If _Type_ is `or` it is a disjunction. - -+ DFA -the interface allows creating and manipulation deterministic finite -automata. A DFA has a set of states, represented as integers -and is initialised with an initial state, a set of transitions from the -first to the last argument emitting the middle argument, and a final -state. - -The swedish-drinkers protocol is represented as follows: - -~~~~~{.prolog} - A = [X,Y,Z], - dfa( 0, [t(0,0,0),t(0,1,1),t(1,0,0),t(-1,0,0)], [0], C), - in_dfa( A, C ), -~~~~~ -This code will enumeratae the valid tuples of three emissions. - -+ extensional constraints -Constraints can also be represented as lists of tuples. - -The previous example -would be written as: - -~~~~~{.prolog} - extensional_constraint([[0,0,0],[0,1,0],[1,0,0]], C), - in_relation( A, C ), -~~~~~ - - -*/ -EOF -sed -e "30r tmp" /Users/vsc/git/yap-6.3/packages/gecode/clpfd.yap > x - mv x /Users/vsc/git/yap-6.3/packages/gecode/clpfd.yap - -#true -cat << "EOF" > tmp -/** @pred primitive( _T_) - - -Checks whether _T_ is an atomic term or a database reference. - - -*/ -EOF -sed -e "234r tmp" /Users/vsc/git/yap-6.3/packages/http/js_grammar.pl > x - mv x /Users/vsc/git/yap-6.3/packages/http/js_grammar.pl - -#true -cat << "EOF" > tmp -/** @pred _Term1_ =@= _Term2_ is semidet - - - -True iff _Term1_ and _Term2_ are structurally equivalent. I.e. if _Term1_ and _Term2_ are variants of each other. - - - - - */ -EOF -sed -e "43r tmp" /Users/vsc/git/yap-6.3/packages/plunit/swi.pl > x - mv x /Users/vsc/git/yap-6.3/packages/plunit/swi.pl - -#true -cat << "EOF" > tmp -/** @pred is_list(+ _List_) - - -True when _List_ is a proper list. That is, _List_ -is bound to the empty list (nil) or a term with functor '.' and arity 2. - - -*/ -EOF -sed -e "83r tmp" /Users/vsc/git/yap-6.3/packages/xml/xml.lpa.pl > x - mv x /Users/vsc/git/yap-6.3/packages/xml/xml.lpa.pl - -#true -cat << "EOF" > tmp -/** @pred number_codes(? _A_,? _L_) is iso - - -The predicate holds when at least one of the arguments is ground -(otherwise, an error message will be displayed). The argument _A_ -will be unified with a number and _L_ with the list of the ASCII -codes for the characters of the external representation of _A_. - - -*/ -EOF -sed -e "51r tmp" /Users/vsc/git/yap-6.3/packages/xml/xml.lpa.pl > x - mv x /Users/vsc/git/yap-6.3/packages/xml/xml.lpa.pl - -#true -cat << "EOF" > tmp -/** @pred atom_codes(? _A_,? _L_) is iso - - -The predicate holds when at least one of the arguments is ground -(otherwise, an error message will be displayed). The argument _A_ will -be unified with an atom and _L_ with the list of the ASCII -codes for the characters of the external representation of _A_. - - -*/ -EOF -sed -e "38r tmp" /Users/vsc/git/yap-6.3/packages/xml/xml.lpa.pl > x - mv x /Users/vsc/git/yap-6.3/packages/xml/xml.lpa.pl - -#false -cat << "EOF" > tmp -/** @pred static_array_properties(? _Name_, ? _Size_, ? _Type_) - - -Show the properties size and type of a static array with name - _Name_. Can also be used to enumerate all current -static arrays. - -This built-in will silently fail if the there is no static array with -that name. - - -*/ -EOF -sed -e "94r tmp" /Users/vsc/git/yap-6.3/pl/arrays.yap > x - mv x /Users/vsc/git/yap-6.3/pl/arrays.yap - -#false -cat << "EOF" > tmp -/** @pred array(+ _Name_, + _Size_) - - -Creates a new dynamic array. The _Size_ must evaluate to an -integer. The _Name_ may be either an atom (named array) or an -unbound variable (anonymous array). - -Dynamic arrays work as standard compound terms, hence space for the -array is recovered automatically on backtracking. - - -*/ -EOF -sed -e "37r tmp" /Users/vsc/git/yap-6.3/pl/arrays.yap > x - mv x /Users/vsc/git/yap-6.3/pl/arrays.yap - -#false -cat << "EOF" > tmp -/** @pred current_atom( _A_) - - -Checks whether _A_ is a currently defined atom. It is used to find all -currently defined atoms by backtracking. - - -*/ -EOF -sed -e "171r tmp" /Users/vsc/git/yap-6.3/pl/atoms.yap > x - mv x /Users/vsc/git/yap-6.3/pl/atoms.yap - -#false -cat << "EOF" > tmp -/** @pred atomic_list_concat(? _As_,+ _Separator_,? _A_) - -Creates an atom just like atomic_list_concat/2, but inserts - _Separator_ between each pair of atoms. For example: - -~~~~~{.prolog} -?- atomic_list_concat([gnu, gnat], `, `, A). - -A = `gnu, gnat` -~~~~~ - -YAP emulates the SWI-Prolog version of this predicate that can also be -used to split atoms by instantiating _Separator_ and _Atom_ as -shown below. - -~~~~~{.prolog} -?- atomic_list_concat(L, -, 'gnu-gnat'). - -L = [gnu, gnat] -~~~~~ - - -*/ -EOF -sed -e "109r tmp" /Users/vsc/git/yap-6.3/pl/atoms.yap > x - mv x /Users/vsc/git/yap-6.3/pl/atoms.yap - -#true -cat << "EOF" > tmp -/** @pred atomic_list_concat(+ _As_,? _A_) - - -The predicate holds when the first argument is a list of atomic terms, and -the second unifies with the atom obtained by concatenating all the -atomic terms in the first list. The first argument thus may contain -atoms or numbers. - - -*/ -EOF -sed -e "83r tmp" /Users/vsc/git/yap-6.3/pl/atoms.yap > x - mv x /Users/vsc/git/yap-6.3/pl/atoms.yap - -#false -cat << "EOF" > tmp -/** @pred atom_concat(+ _As_,? _A_) - - -The predicate holds when the first argument is a list of atoms, and the -second unifies with the atom obtained by concatenating all the atoms in -the first list. - - -*/ -EOF -sed -e "33r tmp" /Users/vsc/git/yap-6.3/pl/atoms.yap > x - mv x /Users/vsc/git/yap-6.3/pl/atoms.yap - -#false -cat << "EOF" > tmp -/** @pred call_residue(: _G_, _L_) - - - -Call goal _G_. If subgoals of _G_ are still blocked, return -a list containing these goals and the variables they are blocked in. The -goals are then considered as unblocked. The next example shows a case -where dif/2 suspends twice, once outside call_residue/2, -and the other inside: - -~~~~~ -?- dif(X,Y), - call_residue((dif(X,Y),(X = f(Z) ; Y = f(Z))), L). - -X = f(Z), -L = [[Y]-dif(f(Z),Y)], -dif(f(Z),Y) ? ; - -Y = f(Z), -L = [[X]-dif(X,f(Z))], -dif(X,f(Z)) ? ; - -no -~~~~~ -The system only reports one invocation of dif/2 as having -suspended. - - -*/ -EOF -sed -e "498r tmp" /Users/vsc/git/yap-6.3/pl/attributes.yap > x - mv x /Users/vsc/git/yap-6.3/pl/attributes.yap - -#false -cat << "EOF" > tmp -/** @pred call_residue_vars(: _G_, _L_) - - - -Call goal _G_ and unify _L_ with a list of all constrained variables created during execution of _G_: - -~~~~~ - ?- dif(X,Z), call_residue_vars(dif(X,Y),L). -dif(X,Z), call_residue_vars(dif(X,Y),L). -L = [Y], -dif(X,Z), -dif(X,Y) ? ; - -no -~~~~~ - - - - - */ -EOF -sed -e "393r tmp" /Users/vsc/git/yap-6.3/pl/attributes.yap > x - mv x /Users/vsc/git/yap-6.3/pl/attributes.yap - -#true -cat << "EOF" > tmp -/** @pred copy_term(? _TI_,- _TF_,- _Goals_) - -Term _TF_ is a variant of the original term _TI_, such that for -each variable _V_ in the term _TI_ there is a new variable _V'_ -in term _TF_ without any attributes attached. Attributed -variables are thus converted to standard variables. _Goals_ is -unified with a list that represents the attributes. The goal -`maplist(call, _Goals_)` can be called to recreate the -attributes. - -Before the actual copying, `copy_term/3` calls -`attribute_goals/1` in the module where the attribute is -defined. - - -*/ -EOF -sed -e "249r tmp" /Users/vsc/git/yap-6.3/pl/attributes.yap > x - mv x /Users/vsc/git/yap-6.3/pl/attributes.yap - -#false -cat << "EOF" > tmp -/** @pred put_attrs(+ _Var_,+ _Attributes_) - - -Set all attributes of _Var_. See get_attrs/2 for a description of - _Attributes_. - - -*/ -EOF -sed -e "223r tmp" /Users/vsc/git/yap-6.3/pl/attributes.yap > x - mv x /Users/vsc/git/yap-6.3/pl/attributes.yap - -#false -cat << "EOF" > tmp -/** @pred del_attrs(+ _Var_) - - -If _Var_ is an attributed variable, delete all its -attributes. In all other cases, this predicate succeeds without -side-effects. - - -*/ -EOF -sed -e "209r tmp" /Users/vsc/git/yap-6.3/pl/attributes.yap > x - mv x /Users/vsc/git/yap-6.3/pl/attributes.yap - -#false -cat << "EOF" > tmp -/** @pred del_attr(+ _Var_,+ _Module_) - - - -Delete the named attribute. If _Var_ loses its last attribute it -is transformed back into a traditional Prolog variable. If _Module_ -is not an atom, a type error is raised. In all other cases this -predicate succeeds regardless whether or not the named attribute is -present. - - -*/ -EOF -sed -e "196r tmp" /Users/vsc/git/yap-6.3/pl/attributes.yap > x - mv x /Users/vsc/git/yap-6.3/pl/attributes.yap - -#false -cat << "EOF" > tmp -/** @pred get_attr(+ _Var_,+ _Module_,- _Value_) - - - -Request the current _value_ for the attribute named _Module_. If - _Var_ is not an attributed variable or the named attribute is not -associated to _Var_ this predicate fails silently. If _Module_ -is not an atom, a type error is raised. - - -*/ -EOF -sed -e "160r tmp" /Users/vsc/git/yap-6.3/pl/attributes.yap > x - mv x /Users/vsc/git/yap-6.3/pl/attributes.yap - -#false -cat << "EOF" > tmp -/** @pred throw(+ _Ball_) is iso - - -The goal `throw( _Ball_)` throws an exception. Execution is -stopped, and the exception is sent to the ancestor goals until reaching -a matching catch/3, or until reaching top-level. - - -*/ -EOF -sed -e "1534r tmp" /Users/vsc/git/yap-6.3/pl/boot.yap > x - mv x /Users/vsc/git/yap-6.3/pl/boot.yap - -#false -cat << "EOF" > tmp -/** @pred catch( : _Goal_,+ _Exception_,+ _Action_) is iso - - -The goal `catch( _Goal_, _Exception_, _Action_)` tries to -execute goal _Goal_. If during its execution, _Goal_ throws an -exception _E'_ and this exception unifies with _Exception_, the -exception is considered to be caught and _Action_ is executed. If -the exception _E'_ does not unify with _Exception_, control -again throws the exception. - -The top-level of YAP maintains a default exception handler that -is responsible to capture uncaught exceptions. - - -*/ -EOF -sed -e "1497r tmp" /Users/vsc/git/yap-6.3/pl/boot.yap > x - mv x /Users/vsc/git/yap-6.3/pl/boot.yap - -#false -cat << "EOF" > tmp -/** @pred expand_term( _T_,- _X_) - - - -This predicate is used by YAP for preprocessing each top level -term read when consulting a file and before asserting or executing it. -It rewrites a term _T_ to a term _X_ according to the following -rules: first try term_expansion/2 in the current module, and then try to use the user defined predicate -`user:term_expansion/2`. If this call fails then the translating process -for DCG rules is applied, together with the arithmetic optimizer -whenever the compilation of arithmetic expressions is in progress. - - -*/ -EOF -sed -e "1452r tmp" /Users/vsc/git/yap-6.3/pl/boot.yap > x - mv x /Users/vsc/git/yap-6.3/pl/boot.yap - -#false -cat << "EOF" > tmp -/** @pred incore(+ _P_) - - -The same as call/1. - - -*/ -EOF -sed -e "1119r tmp" /Users/vsc/git/yap-6.3/pl/boot.yap > x - mv x /Users/vsc/git/yap-6.3/pl/boot.yap - -#false -cat << "EOF" > tmp -/** @pred call(+ _P_) is iso -Meta-call predicate. - -If _P_ is instantiated to an atom or a compound term, the goal `call( -_P_)` is executed as if the clause was originally written as _P_ -instead as call( _P_ ), except that any "cut" occurring in _P_ only -cuts alternatives in the execution of _P_. - - -*/ -EOF -sed -e "1110r tmp" /Users/vsc/git/yap-6.3/pl/boot.yap > x - mv x /Users/vsc/git/yap-6.3/pl/boot.yap - -#false -cat << "EOF" > tmp -/** @pred repeat is iso -Succeeds repeatedly. - -In the next example, `repeat` is used as an efficient way to implement -a loop. The next example reads all terms in a file: -~~~~~~~~~~~~~{.prolog} - a :- repeat, read(X), write(X), nl, X=end_of_file, !. -~~~~~~~~~~~~~ -the loop is effectively terminated by the cut-goal, when the test-goal -`X=end` succeeds. While the test fails, the goals `read(X)`, -`write(X)`, and `nl` are executed repeatedly, because -backtracking is caught by the `repeat` goal. - -The built-in `repeat/0` could be defined in Prolog by: - -~~~~~{.prolog} - repeat. - repeat :- repeat. -~~~~~ - -The predicate between/3 can be used to iterate for a pre-defined -number of steps. - -*/ -EOF -sed -e "583r tmp" /Users/vsc/git/yap-6.3/pl/boot.yap > x - mv x /Users/vsc/git/yap-6.3/pl/boot.yap - -#false -cat << "EOF" > tmp -/** @pred true is iso - - -Succeeds once. - - -*/ -EOF -sed -e "299r tmp" /Users/vsc/git/yap-6.3/pl/boot.yap > x - mv x /Users/vsc/git/yap-6.3/pl/boot.yap - -#false -cat << "EOF" > tmp -/** @pred call_count(? _CallsMax_, ? _RetriesMax_, ? _CallsAndRetriesMax_) - - -Set call counters as timers. YAP will generate an exception -if one of the instantiated call counters decreases to 0: - -+ _CallsMax_ - - throw the exception `call_counter` when the -counter `calls` reaches 0; - -+ _RetriesMax_ - - throw the exception `retry_counter` when the -counter `retries` reaches 0; - -+ _CallsAndRetriesMax_ - - throw the exception -`call_and_retry_counter` when the counter `calls_and_retries` -reaches 0. - - YAP will ignore counters that are called with unbound arguments. - -Next, we show a simple example of how to use call counters: - -~~~~~{.prolog} - ?- yap_flag(call_counting,on), [-user]. l :- l. end_of_file. yap_flag(call_counting,off). - -yes - -yes - ?- catch((call_count(10000,_,_),l),call_counter,format("limit_exceeded.~n",[])). - -limit_exceeded. - -yes -~~~~~ -Notice that we first compile the looping predicate `l/0` with -call_counting `on`. Next, we catch/3 to handle an -exception when `l/0` performs more than 10000 reductions. - - - */ -EOF -sed -e "142r tmp" /Users/vsc/git/yap-6.3/pl/callcount.yap > x - mv x /Users/vsc/git/yap-6.3/pl/callcount.yap - -#false -cat << "EOF" > tmp -/** @pred call_count_reset - - -Reset call count counters. All timers are also reset. - -*/ -EOF -sed -e "95r tmp" /Users/vsc/git/yap-6.3/pl/callcount.yap > x - mv x /Users/vsc/git/yap-6.3/pl/callcount.yap - -#false -cat << "EOF" > tmp -/** @pred call_count_data(- _Calls_, - _Retries_, - _CallsAndRetries_) - - -Give current call count data. The first argument gives the current value -for the _Calls_ counter, next the _Retries_ counter, and last -the _CallsAndRetries_ counter. - -*/ -EOF -sed -e "86r tmp" /Users/vsc/git/yap-6.3/pl/callcount.yap > x - mv x /Users/vsc/git/yap-6.3/pl/callcount.yap - -#false -cat << "EOF" > tmp -/** @pred prolog_load_context(? _Key_, ? _Value_) - - -Obtain information on what is going on in the compilation process. The -following keys are available: - - - -+ directory - - - -Full name for the directory where YAP is currently consulting the -file. - -+ file - - - -Full name for the file currently being consulted. Notice that included -filed are ignored. - -+ module - - - -Current source module. - -+ `source` (prolog_load_context/2 option) - - Full name for the file currently being read in, which may be consulted, -reconsulted, or included. - -+ `stream` - - Stream currently being read in. - -+ `term_position` - - Stream position at the stream currently being read in. For SWI -compatibility, it is a term of the form -'$stream_position'(0,Line,0,0,0). - - -+ `source_location(? _FileName_, ? _Line_)` - - SWI-compatible predicate. If the last term has been read from a physical file (i.e., not from the file user or a string), unify File with an absolute path to the file and Line with the line-number in the file. Please use prolog_load_context/2. - -+ `source_file(? _File_)` - - SWI-compatible predicate. True if _File_ is a loaded Prolog source file. - -+ `source_file(? _ModuleAndPred_,? _File_)` - - SWI-compatible predicate. True if the predicate specified by _ModuleAndPred_ was loaded from file _File_, where _File_ is an absolute path name (see `absolute_file_name/2`). - - - -@section YAPLibrary Library Predicates - -Library files reside in the library_directory path (set by the -`LIBDIR` variable in the Makefile for YAP). Currently, -most files in the library are from the Edinburgh Prolog library. - - - */ -EOF -sed -e "958r tmp" /Users/vsc/git/yap-6.3/pl/consult.yap > x - mv x /Users/vsc/git/yap-6.3/pl/consult.yap - -#false -cat << "EOF" > tmp -/** @pred halt(+ _I_) is iso - -Halts Prolog, and exits to the calling application returning the code -given by the integer _I_. - - -*/ -EOF -sed -e "732r tmp" /Users/vsc/git/yap-6.3/pl/control.yap > x - mv x /Users/vsc/git/yap-6.3/pl/control.yap - -#false -cat << "EOF" > tmp -/** @pred halt is iso - - -Halts Prolog, and exits to the calling application. In YAP, -halt/0 returns the exit code `0`. - - -*/ -EOF -sed -e "719r tmp" /Users/vsc/git/yap-6.3/pl/control.yap > x - mv x /Users/vsc/git/yap-6.3/pl/control.yap - -#false -cat << "EOF" > tmp -/** @pred break - - -Suspends the execution of the current goal and creates a new execution -level similar to the top level, displaying the following message: - -~~~~~{.prolog} - [ Break (level ) ] -~~~~~ -telling the depth of the break level just entered. To return to the -previous level just type the end-of-file character or call the -end_of_file predicate. This predicate is especially useful during -debugging. - - -*/ -EOF -sed -e "677r tmp" /Users/vsc/git/yap-6.3/pl/control.yap > x - mv x /Users/vsc/git/yap-6.3/pl/control.yap - -#false -cat << "EOF" > tmp -/** @pred b_getval(+ _Name_,- _Value_) - - -Get the value associated with the global variable _Name_ and unify -it with _Value_. Note that this unification may further instantiate -the value of the global variable. If this is undesirable the normal -precautions (double negation or copy_term/2) must be taken. The -b_getval/2 predicate generates errors if _Name_ is not an atom or -the requested variable does not exist. - - -*/ -EOF -sed -e "618r tmp" /Users/vsc/git/yap-6.3/pl/control.yap > x - mv x /Users/vsc/git/yap-6.3/pl/control.yap - -#false -cat << "EOF" > tmp -/** @pred b_getval(+ _Name_, - _Value_) - - -Get the value associated with the global variable _Name_ and unify -it with _Value_. Note that this unification may further -instantiate the value of the global variable. If this is undesirable -the normal precautions (double negation or copy_term/2) must be -taken. The b_getval/2 predicate generates errors if _Name_ is not -an atom or the requested variable does not exist. - -Notice that for compatibility with other systems _Name_ must be already associated with a term: otherwise the system will generate an error. - - -*/ -EOF -sed -e "618r tmp" /Users/vsc/git/yap-6.3/pl/control.yap > x - mv x /Users/vsc/git/yap-6.3/pl/control.yap - -#false -cat << "EOF" > tmp -/** @pred nb_getval(+ _Name_,- _Value_) - - -The nb_getval/2 predicate is a synonym for b_getval/2, introduced for -compatibility and symmetry. As most scenarios will use a particular -global variable either using non-backtrackable or backtrackable -assignment, using nb_getval/2 can be used to document that the -variable is used non-backtrackable. - - -*/ -EOF -sed -e "579r tmp" /Users/vsc/git/yap-6.3/pl/control.yap > x - mv x /Users/vsc/git/yap-6.3/pl/control.yap - -#false -cat << "EOF" > tmp -/** @pred nb_getval(+ _Name_, - _Value_) - - -The nb_getval/2 predicate is a synonym for b_getval/2, -introduced for compatibility and symmetry. As most scenarios will use -a particular global variable either using non-backtrackable or -backtrackable assignment, using nb_getval/2 can be used to -document that the variable is used non-backtrackable. - - -*/ -EOF -sed -e "579r tmp" /Users/vsc/git/yap-6.3/pl/control.yap > x - mv x /Users/vsc/git/yap-6.3/pl/control.yap - -#true -cat << "EOF" > tmp -/** @pred version(- _Message_) - -Add a message to be written when yap boots or after aborting. It is not -possible to remove messages. - - -*/ -EOF -sed -e "539r tmp" /Users/vsc/git/yap-6.3/pl/control.yap > x - mv x /Users/vsc/git/yap-6.3/pl/control.yap - -#false -cat << "EOF" > tmp -/** @pred version - -Write YAP's boot message. - - -*/ -EOF -sed -e "530r tmp" /Users/vsc/git/yap-6.3/pl/control.yap > x - mv x /Users/vsc/git/yap-6.3/pl/control.yap - -#false -cat << "EOF" > tmp -/** @pred prolog_initialization( _G_) - - -Add a goal to be executed on system initialization. This is compatible -with SICStus Prolog's initialization/1. - - -*/ -EOF -sed -e "514r tmp" /Users/vsc/git/yap-6.3/pl/control.yap > x - mv x /Users/vsc/git/yap-6.3/pl/control.yap - -#false -cat << "EOF" > tmp -/** @pred garbage_collect_atoms - - -The goal `garbage_collect` forces a garbage collection of the atoms -in the data-base. Currently, only atoms are recovered. - - -*/ -EOF -sed -e "492r tmp" /Users/vsc/git/yap-6.3/pl/control.yap > x - mv x /Users/vsc/git/yap-6.3/pl/control.yap - -#false -cat << "EOF" > tmp -/** @pred nogc - - -The goal `nogc` disables garbage collection. The same as -`yap_flag(gc,off)`. - - -*/ -EOF -sed -e "480r tmp" /Users/vsc/git/yap-6.3/pl/control.yap > x - mv x /Users/vsc/git/yap-6.3/pl/control.yap - -#false -cat << "EOF" > tmp -/** @pred gc - - -The goal `gc` enables garbage collection. The same as -`yap_flag(gc,on)`. - - -*/ -EOF -sed -e "470r tmp" /Users/vsc/git/yap-6.3/pl/control.yap > x - mv x /Users/vsc/git/yap-6.3/pl/control.yap - -#false -cat << "EOF" > tmp -/** @pred garbage_collect - - -The goal `garbage_collect` forces a garbage collection. - - -*/ -EOF -sed -e "457r tmp" /Users/vsc/git/yap-6.3/pl/control.yap > x - mv x /Users/vsc/git/yap-6.3/pl/control.yap - -#false -cat << "EOF" > tmp -/** @pred grow_stack(+ _Size_) - - -Increase stack size _Size_ kilobytes - - - */ -EOF -sed -e "443r tmp" /Users/vsc/git/yap-6.3/pl/control.yap > x - mv x /Users/vsc/git/yap-6.3/pl/control.yap - -#false -cat << "EOF" > tmp -/** @pred grow_heap(+ _Size_) -Increase heap size _Size_ kilobytes. - - -*/ -EOF -sed -e "435r tmp" /Users/vsc/git/yap-6.3/pl/control.yap > x - mv x /Users/vsc/git/yap-6.3/pl/control.yap - -#false -cat << "EOF" > tmp -/** @pred setup_call_catcher_cleanup(: _Setup_,: _Goal_, + _Catcher_,: _CleanUpGoal_) - - -Similar to `setup_call_cleanup( _Setup_, _Goal_, _Cleanup_)` with -additional information on the reason of calling _Cleanup_. Prior -to calling _Cleanup_, _Catcher_ unifies with the termination -code. If this unification fails, _Cleanup_ is - *not* called. - - -*/ -EOF -sed -e "326r tmp" /Users/vsc/git/yap-6.3/pl/control.yap > x - mv x /Users/vsc/git/yap-6.3/pl/control.yap - -#false -cat << "EOF" > tmp -/** @pred setup_call_cleanup(: _Setup_,: _Goal_, : _CleanUpGoal_) - - -Calls `(Setup, Goal)`. For each sucessful execution of _Setup_, calling _Goal_, the -cleanup handler _Cleanup_ is guaranteed to be called exactly once. -This will happen after _Goal_ completes, either through failure, -deterministic success, commit, or an exception. _Setup_ will -contain the goals that need to be protected from asynchronous interrupts -such as the ones received from `call_with_time_limit/2` or thread_signal/2. In -most uses, _Setup_ will perform temporary side-effects required by - _Goal_ that are finally undone by _Cleanup_. - -Success or failure of _Cleanup_ is ignored and choice-points it -created are destroyed (as once/1). If _Cleanup_ throws an exception, -this is executed as normal. - -Typically, this predicate is used to cleanup permanent data storage -required to execute _Goal_, close file-descriptors, etc. The example -below provides a non-deterministic search for a term in a file, closing -the stream as needed. - -~~~~~{.prolog} -term_in_file(Term, File) :- - setup_call_cleanup(open(File, read, In), - term_in_stream(Term, In), - close(In) ). - -term_in_stream(Term, In) :- - repeat, - read(In, T), - ( T == end_of_file - -> !, fail - ; T = Term - ). -~~~~~ - -Note that it is impossible to implement this predicate in Prolog other than -by reading all terms into a list, close the file and call member/2. -Without setup_call_cleanup/3 there is no way to gain control if the -choice-point left by `repeat` is removed by a cut or an exception. - -`setup_call_cleanup/2` can also be used to test determinism of a goal: - -~~~~~ -?- setup_call_cleanup(true,(X=1;X=2), Det=yes). - -X = 1 ; - -X = 2, -Det = yes ; -~~~~~ - -This predicate is under consideration for inclusion into the ISO standard. -For compatibility with other Prolog implementations see `call_cleanup/2`. - - -*/ -EOF -sed -e "312r tmp" /Users/vsc/git/yap-6.3/pl/control.yap > x - mv x /Users/vsc/git/yap-6.3/pl/control.yap - -#true -cat << "EOF" > tmp -/** @pred call_cleanup(: _Goal_, : _CleanUpGoal_) - -This is similar to call_cleanup/1 with an additional - _CleanUpGoal_ which gets called after _Goal_ is finished. - - -*/ -EOF -sed -e "249r tmp" /Users/vsc/git/yap-6.3/pl/control.yap > x - mv x /Users/vsc/git/yap-6.3/pl/control.yap - -#false -cat << "EOF" > tmp -/** @pred call(+ _Closure_,...,? _Ai_,...) is iso - - -Meta-call where _Closure_ is a closure that is converted into a goal by -appending the _Ai_ additional arguments. The number of arguments varies -between 0 and 10. - - -*/ -EOF -sed -e "224r tmp" /Users/vsc/git/yap-6.3/pl/control.yap > x - mv x /Users/vsc/git/yap-6.3/pl/control.yap - -#false -cat << "EOF" > tmp -/** @pred if(? _G_,? _H_,? _I_) - -Call goal _H_ once per each solution of goal _H_. If goal - _H_ has no solutions, call goal _I_. - -The built-in `if/3` is similar to `->/3`, with the difference -that it will backtrack over the test goal. Consider the following -small data-base: - -~~~~~{.prolog} -a(1). b(a). c(x). -a(2). b(b). c(y). -~~~~~ - -Execution of an `if/3` query will proceed as follows: - -~~~~~{.prolog} - ?- if(a(X),b(Y),c(Z)). - -X = 1, -Y = a ? ; - -X = 1, -Y = b ? ; - -X = 2, -Y = a ? ; - -X = 2, -Y = b ? ; - -no -~~~~~ - -The system will backtrack over the two solutions for `a/1` and the -two solutions for `b/1`, generating four solutions. - -Cuts are allowed inside the first goal _G_, but they will only prune -over _G_. - -If you want _G_ to be deterministic you should use if-then-else, as -it is both more efficient and more portable. - - -*/ -EOF -sed -e "200r tmp" /Users/vsc/git/yap-6.3/pl/control.yap > x - mv x /Users/vsc/git/yap-6.3/pl/control.yap - -#true -cat << "EOF" > tmp -/** @pred ignore(: _Goal_) - - -Calls _Goal_ as once/1, but succeeds, regardless of whether -`Goal` succeeded or not. Defined as: - -~~~~~{.prolog} -ignore(Goal) :- - Goal, !. -ignore(_). -~~~~~ - - -*/ -EOF -sed -e "141r tmp" /Users/vsc/git/yap-6.3/pl/control.yap > x - mv x /Users/vsc/git/yap-6.3/pl/control.yap - -#true -cat << "EOF" > tmp -/** @pred forall(+ _Cond_,+ _Action_) - - - - -For all alternative bindings of _Cond_ _Action_ can be proven. -The next example verifies that all arithmetic statements in the list - _L_ are correct. It does not say which is wrong if one proves wrong. - -~~~~~ -?- forall(member(Result = Formula, [2 = 1 + 1, 4 = 2 * 2]), - Result =:= Formula). -~~~~~ - - - -*/ -EOF -sed -e "125r tmp" /Users/vsc/git/yap-6.3/pl/control.yap > x - mv x /Users/vsc/git/yap-6.3/pl/control.yap - -#true -cat << "EOF" > tmp -/** @pred forall(: _Cond_,: _Action_) - - -For all alternative bindings of _Cond_ _Action_ can be -proven. The example verifies that all arithmetic statements in the list - _L_ are correct. It does not say which is wrong if one proves wrong. - -~~~~~{.prolog} -?- forall(member(Result = Formula, [2 = 1 + 1, 4 = 2 * 2]), - Result =:= Formula). -~~~~~ - - -*/ -EOF -sed -e "125r tmp" /Users/vsc/git/yap-6.3/pl/control.yap > x - mv x /Users/vsc/git/yap-6.3/pl/control.yap - -#false -cat << "EOF" > tmp -/** @pred once(: _G_) is iso - - -Execute the goal _G_ only once. The predicate is defined by: - -~~~~~{.prolog} - once(G) :- call(G), !. -~~~~~ - -Note that cuts inside once/1 can only cut the other goals inside -once/1. - - -*/ -EOF -sed -e "92r tmp" /Users/vsc/git/yap-6.3/pl/control.yap > x - mv x /Users/vsc/git/yap-6.3/pl/control.yap - -#false -cat << "EOF" > tmp -/** @pred frozen( _X_, _G_) - - -Unify _G_ with a conjunction of goals suspended on variable _X_, -or `true` if no goal has suspended. - - -*/ -EOF -sed -e "572r tmp" /Users/vsc/git/yap-6.3/pl/corout.yap > x - mv x /Users/vsc/git/yap-6.3/pl/corout.yap - -#false -cat << "EOF" > tmp -/** @pred when(+ _C_,: _G_) - - -Delay execution of goal _G_ until the conditions _C_ are -satisfied. The conditions are of the following form: - -+ _C1_, _C2_ -Delay until both conditions _C1_ and _C2_ are satisfied. -+ _C1_; _C2_ -Delay until either condition _C1_ or condition _C2_ is satisfied. -+ ?=( _V1_, _C2_) -Delay until terms _V1_ and _V1_ have been unified. -+ nonvar( _V_) -Delay until variable _V_ is bound. -+ ground( _V_) -Delay until variable _V_ is ground. - - -Note that when/2 will fail if the conditions fail. - - -*/ -EOF -sed -e "331r tmp" /Users/vsc/git/yap-6.3/pl/corout.yap > x - mv x /Users/vsc/git/yap-6.3/pl/corout.yap - -#false -cat << "EOF" > tmp -/** @pred dif( _X_, _Y_) - - -Succeed if the two arguments do not unify. A call to dif/2 will -suspend if unification may still succeed or fail, and will fail if they -always unify. - - -*/ -EOF -sed -e "232r tmp" /Users/vsc/git/yap-6.3/pl/corout.yap > x - mv x /Users/vsc/git/yap-6.3/pl/corout.yap - -#false -cat << "EOF" > tmp -/** @pred freeze(? _X_,: _G_) - - -Delay execution of goal _G_ until the variable _X_ is bound. - - -*/ -EOF -sed -e "171r tmp" /Users/vsc/git/yap-6.3/pl/corout.yap > x - mv x /Users/vsc/git/yap-6.3/pl/corout.yap - -#true -cat << "EOF" > tmp -/** @pred attribute_goals(+ _Var_,- _Gs_,+ _GsRest_) - - - -This nonterminal, if it is defined in a module, is used by _copy_term/3_ -to project attributes of that module to residual goals. It is also -used by the toplevel to obtain residual goals after executing a query. - - -Normal user code should deal with put_attr/3, get_attr/3 and del_attr/2. -The routines in this section fetch or set the entire attribute list of a -variables. Use of these predicates is anticipated to be restricted to -printing and other special purpose operations. - - - - @pred get_attrs(+ _Var_,- _Attributes_) - - - -Get all attributes of _Var_. _Attributes_ is a term of the form -`att( _Module_, _Value_, _MoreAttributes_)`, where _MoreAttributes_ is -`[]` for the last attribute. - - -*/ -EOF -sed -e "133r tmp" /Users/vsc/git/yap-6.3/pl/corout.yap > x - mv x /Users/vsc/git/yap-6.3/pl/corout.yap - -#true -cat << "EOF" > tmp -/** @pred attr_unify_hook(+ _AttValue_,+ _VarValue_) - - - -Hook that must be defined in the module an attributed variable refers -to. Is is called after the attributed variable has been -unified with a non-var term, possibly another attributed variable. - _AttValue_ is the attribute that was associated to the variable -in this module and _VarValue_ is the new value of the variable. -Normally this predicate fails to veto binding the variable to - _VarValue_, forcing backtracking to undo the binding. If - _VarValue_ is another attributed variable the hook often combines -the two attribute and associates the combined attribute with - _VarValue_ using put_attr/3. - - -*/ -EOF -sed -e "87r tmp" /Users/vsc/git/yap-6.3/pl/corout.yap > x - mv x /Users/vsc/git/yap-6.3/pl/corout.yap - -#false -cat << "EOF" > tmp -/** @pred leash(+ _M_) - - -Sets leashing mode to _M_. -The mode can be specified as: - -+ `full` -prompt on Call, Exit, Redo and Fail - -+ `tight` -prompt on Call, Redo and Fail - -+ `half` -prompt on Call and Redo - -+ `loose` -prompt on Call - -+ `off` -never prompt - -+ `none` -never prompt, same as `off` - -The initial leashing mode is `full`. - -The user may also specify directly the debugger ports -where he wants to be prompted. If the argument for leash -is a number _N_, each of lower four bits of the number is used to -control prompting at one the ports of the box model. The debugger will -prompt according to the following conditions: - -+ if `N/\ 1 =\= 0` prompt on fail -+ if `N/\ 2 =\= 0` prompt on redo -+ if `N/\ 4 =\= 0` prompt on exit -+ if `N/\ 8 =\= 0` prompt on call - -Therefore, `leash(15)` is equivalent to `leash(full)` and -`leash(0)` is equivalent to `leash(off)`. - -Another way of using `leash` is to give it a list with the names of -the ports where the debugger should stop. For example, -`leash([call,exit,redo,fail])` is the same as `leash(full)` or -`leash(15)` and `leash([fail])` might be used instead of -`leash(1)`. - - -*/ -EOF -sed -e "348r tmp" /Users/vsc/git/yap-6.3/pl/debug.yap > x - mv x /Users/vsc/git/yap-6.3/pl/debug.yap - -#false -cat << "EOF" > tmp -/** @pred notrace - - -Ends tracing and exits the debugger. This is the same as -nodebug/0. - - - - - */ -EOF -sed -e "288r tmp" /Users/vsc/git/yap-6.3/pl/debug.yap > x - mv x /Users/vsc/git/yap-6.3/pl/debug.yap - -#false -cat << "EOF" > tmp -/** @pred trace - - -Switches on the debugger and enters tracing mode. - - -*/ -EOF -sed -e "269r tmp" /Users/vsc/git/yap-6.3/pl/debug.yap > x - mv x /Users/vsc/git/yap-6.3/pl/debug.yap - -#false -cat << "EOF" > tmp -/** @pred nospyall - - -Removes all existing spy-points. - - -*/ -EOF -sed -e "227r tmp" /Users/vsc/git/yap-6.3/pl/debug.yap > x - mv x /Users/vsc/git/yap-6.3/pl/debug.yap - -#false -cat << "EOF" > tmp -/** @pred nospy( + _P_ ) - - -Removes spy-points from all predicates specified by _P_. -The possible forms for _P_ are the same as in `spy P`. - - -*/ -EOF -sed -e "212r tmp" /Users/vsc/git/yap-6.3/pl/debug.yap > x - mv x /Users/vsc/git/yap-6.3/pl/debug.yap - -#false -cat << "EOF" > tmp -/** @pred spy( + _P_ ). - - -Sets spy-points on all the predicates represented by - _P_. _P_ can either be a single specification or a list of -specifications. Each one must be of the form _Name/Arity_ -or _Name_. In the last case all predicates with the name - _Name_ will be spied. As in C-Prolog, system predicates and -predicates written in C, cannot be spied. - - -*/ -EOF -sed -e "196r tmp" /Users/vsc/git/yap-6.3/pl/debug.yap > x - mv x /Users/vsc/git/yap-6.3/pl/debug.yap - -#false -cat << "EOF" > tmp -/** @pred print_message(+ _Kind_, _Term_) - -The predicate print_message/2 is used to print messages, notably from -exceptions in a human-readable format. _Kind_ is one of -`informational`, `banner`, `warning`, `error`, -`help` or `silent`. A human-readable message is printed to -the stream user_error. - -If the Prolog flag verbose is `silent`, messages with - _Kind_ `informational`, or `banner` are treated as -silent.@c See \cmdlineoption{-q}. - -This predicate first translates the _Term_ into a list of `message -lines` (see print_message_lines/3 for details). Next it will -call the hook message_hook/3 to allow the user intercepting the -message. If message_hook/3 fails it will print the message unless - _Kind_ is silent. - -If you need to report errors from your own predicates, we advise you to -stick to the existing error terms if you can; but should you need to -invent new ones, you can define corresponding error messages by -asserting clauses for `prolog:message/2`. You will need to declare -the predicate as multifile. - - -*/ -EOF -sed -e "297r tmp" /Users/vsc/git/yap-6.3/pl/errors.yap > x - mv x /Users/vsc/git/yap-6.3/pl/errors.yap - -#false -cat << "EOF" > tmp -/** @pred message_to_string(+ _Term_, - _String_) - - -Translates a message-term into a string object. Primarily intended for SWI-Prolog emulation. - - - - */ -EOF -sed -e "268r tmp" /Users/vsc/git/yap-6.3/pl/errors.yap > x - mv x /Users/vsc/git/yap-6.3/pl/errors.yap - -#false -cat << "EOF" > tmp -/** @pred create_prolog_flag(+ _Flag_,+ _Value_,+ _Options_) - - - -Create a new YAP Prolog flag. _Options_ include `type(+Type)` and `access(+Access)` with _Access_ -one of `read_only` or `read_write` and _Type_ one of `boolean`, `integer`, `float`, `atom` -and `term` (that is, no type). - - -*/ -EOF -sed -e "1343r tmp" /Users/vsc/git/yap-6.3/pl/flags.yap > x - mv x /Users/vsc/git/yap-6.3/pl/flags.yap - -#false -cat << "EOF" > tmp -/** @pred prolog_flag(? _Flag_,- _OldValue_,+ _NewValue_) - - - -Obtain the value for a YAP Prolog flag and then set it to a new -value. Equivalent to first calling current_prolog_flag/2 with the -second argument _OldValue_ unbound and then calling -set_prolog_flag/2 with the third argument _NewValue_. - - -*/ -EOF -sed -e "1323r tmp" /Users/vsc/git/yap-6.3/pl/flags.yap > x - mv x /Users/vsc/git/yap-6.3/pl/flags.yap - -#false -cat << "EOF" > tmp -/** @pred set_prolog_flag(+ _Flag_,+ _Value_) is iso - - - -Set the value for YAP Prolog flag `Flag`. Equivalent to -calling yap_flag/2 with both arguments bound. - - -*/ -EOF -sed -e "1280r tmp" /Users/vsc/git/yap-6.3/pl/flags.yap > x - mv x /Users/vsc/git/yap-6.3/pl/flags.yap - -#false -cat << "EOF" > tmp -/** @pred current_prolog_flag(? _Flag_,- _Value_) is iso - -Obtain the value for a YAP Prolog flag. Equivalent to calling -yap_flag/2 with the second argument unbound, and unifying the -returned second argument with _Value_. - - -*/ -EOF -sed -e "1256r tmp" /Users/vsc/git/yap-6.3/pl/flags.yap > x - mv x /Users/vsc/git/yap-6.3/pl/flags.yap - -#false -cat << "EOF" > tmp -/** @pred yap_flag(tabling_mode,? _Mode_) -Sets or reads the tabling mode for all tabled predicates. The list of - _Mode_ options includes: - -+ `default` - - Defines that (i) all calls to tabled predicates are evaluated -using the predicate default mode, and that (ii) answers for all -completed calls are obtained by using the predicate default mode. - -+ `batched` - - Defines that all calls to tabled predicates are evaluated using -batched scheduling. This option ignores the default tabling mode -of each predicate. - -+ `local` - - Defines that all calls to tabled predicates are evaluated using -local scheduling. This option ignores the default tabling mode -of each predicate. - -+ `exec_answers` - - Defines that answers for all completed calls are obtained by -executing compiled WAM-like code directly from the trie data -structure. This option ignores the default tabling mode -of each predicate. - -+ `load_answers` - - Defines that answers for all completed calls are obtained by -loading them from the trie data structure. This option ignores -the default tabling mode of each predicate. - - - -*/ -EOF -sed -e "585r tmp" /Users/vsc/git/yap-6.3/pl/flags.yap > x - mv x /Users/vsc/git/yap-6.3/pl/flags.yap - -#false -cat << "EOF" > tmp -/** @pred yap_flag(unknown,+ _SPEC_) - -Alternatively, one can use yap_flag/2, -current_prolog_flag/2, or set_prolog_flag/2, to set this -functionality. In this case, the first argument for the built-ins should -be `unknown`, and the second argument should be either -`error`, `warning`, `fail`, or a goal. - - -*/ -EOF -sed -e "585r tmp" /Users/vsc/git/yap-6.3/pl/flags.yap > x - mv x /Users/vsc/git/yap-6.3/pl/flags.yap - -#false -cat << "EOF" > tmp -/** @pred yap_flag(? _Param_,? _Value_) - - -Set or read system properties for _Param_: - - -+ `argv ` - - Read-only flag. It unifies with a list of atoms that gives the -arguments to YAP after `--`. - -+ `agc_margin ` - - An integer: if this amount of atoms has been created since the last -atom-garbage collection, perform atom garbage collection at the first -opportunity. Initial value is 10,000. May be changed. A value of 0 -(zero) disables atom garbage collection. - -+ `associate ` - - Read-write flag telling a suffix for files associated to Prolog -sources. It is `yap` by default. - -+ `bounded is iso ` - - Read-only flag telling whether integers are bounded. The value depends -on whether YAP uses the GMP library or not. - -+ `profiling ` - - If `off` (default) do not compile call counting information for -procedures. If `on` compile predicates so that they calls and -retries to the predicate may be counted. Profiling data can be read through the -call_count_data/3 built-in. - -+ `char_conversion is iso` - - Writable flag telling whether a character conversion table is used when -reading terms. The default value for this flag is `off` except in -`sicstus` and `iso` language modes, where it is `on`. - -+ `character_escapes is iso ` - - Writable flag telling whether a character escapes are enables, -`true`, or disabled, `false`. The default value for this flag is -`on`. - -+ `debug is iso ` - - If _Value_ is unbound, tell whether debugging is `true` or -`false`. If _Value_ is bound to `true` enable debugging, and if -it is bound to `false` disable debugging. - -+ `debugger_print_options ` - - If bound, set the argument to the `write_term/3` options the -debugger uses to write terms. If unbound, show the current options. - -+ `dialect ` - - Read-only flag that always returns `yap`. - -+ `discontiguous_warnings ` - - If _Value_ is unbound, tell whether warnings for discontiguous -predicates are `on` or -`off`. If _Value_ is bound to `on` enable these warnings, -and if it is bound to `off` disable them. The default for YAP is -`off`, unless we are in `sicstus` or `iso` mode. - -+ `dollar_as_lower_case ` - - If `off` (default) consider the character `$` a control character, if -`on` consider `$` a lower case character. - -+ `double_quotes is iso ` - - If _Value_ is unbound, tell whether a double quoted list of characters -token is converted to a list of atoms, `chars`, to a list of integers, -`codes`, or to a single atom, `atom`. If _Value_ is bound, set to -the corresponding behavior. The default value is `codes`. - -+ `executable ` - - Read-only flag. It unifies with an atom that gives the -original program path. - -+ `fast ` - - If `on` allow fast machine code, if `off` (default) disable it. Only -available in experimental implementations. - -+ `fileerrors` - - If `on` `fileerrors` is `on`, if `off` (default) -`fileerrors` is disabled. - -+ `float_format ` - - C-library `printf()` format specification used by write/1 and -friends to determine how floating point numbers are printed. The -default is `%.15g`. The specified value is passed to `printf()` -without further checking. For example, if you want less digits -printed, `%g` will print all floats using 6 digits instead of the -default 15. - -+ `gc` - - If `on` allow garbage collection (default), if `off` disable it. - -+ `gc_margin ` - - Set or show the minimum free stack before starting garbage -collection. The default depends on total stack size. - -+ `gc_trace ` - - If `off` (default) do not show information on garbage collection -and stack shifts, if `on` inform when a garbage collection or stack -shift happened, if verbose give detailed information on garbage -collection and stack shifts. Last, if `very_verbose` give detailed -information on data-structures found during the garbage collection -process, namely, on choice-points. - -+ `generate_debugging_info ` - - If `true` (default) generate debugging information for -procedures, including source mode. If `false` predicates no -information is generated, although debugging is still possible, and -source mode is disabled. - -+ `host_type ` - - Return `configure` system information, including the machine-id -for which YAP was compiled and Operating System information. - -+ `index ` - - If `on` allow indexing (default), if `off` disable it, if -`single` allow on first argument only. - -+ `index_sub_term_search_depth ` - - Maximum bound on searching sub-terms for indexing, if `0` (default) no bound. - -+ `informational_messages ` - - If `on` allow printing of informational messages, such as the ones -that are printed when consulting. If `off` disable printing -these messages. It is `on` by default except if YAP is booted with -the `-L` flag. - -+ `integer_rounding_function is iso ` - - Read-only flag telling the rounding function used for integers. Takes the value -`toward_zero` for the current version of YAP. - -+ `language ` - - Choose whether YAP is closer to C-Prolog, `cprolog`, iso-prolog, -`iso` or SICStus Prolog, `sicstus`. The current default is -`cprolog`. This flag affects update semantics, leashing mode, -style checking, handling calls to undefined procedures, how directives -are interpreted, when to use dynamic, character escapes, and how files -are consulted. - -+ `max_arity is iso ` - - Read-only flag telling the maximum arity of a functor. Takes the value -`unbounded` for the current version of YAP. - -+ `max_integer is iso ` - - Read-only flag telling the maximum integer in the -implementation. Depends on machine and Operating System -architecture, and on whether YAP uses the `GMP` multi-precision -library. If bounded is false, requests for max_integer -will fail. - -+ `max_tagged_integer ` - - Read-only flag telling the maximum integer we can store as a single -word. Depends on machine and Operating System -architecture. It can be used to find the word size of the current machine. - -+ `min_integer is iso ` - - Read-only flag telling the minimum integer in the -implementation. Depends on machine and Operating System architecture, -and on whether YAP uses the `GMP` multi-precision library. If -bounded is false, requests for min_integer will fail. - -+ `min_tagged_integer ` - - Read-only flag telling the minimum integer we can store as a single -word. Depends on machine and Operating System -architecture. - -+ `n_of_integer_keys_in_bb ` - - Read or set the size of the hash table that is used for looking up the -blackboard when the key is an integer. - -+ `occurs_check ` - - Current read-only and set to `false`. - -+ `n_of_integer_keys_in_db ` - - Read or set the size of the hash table that is used for looking up the -internal data-base when the key is an integer. - -+ `open_expands_filename ` - - If `true` the open/3 builtin performs filename-expansion -before opening a file (SICStus Prolog like). If `false` it does not -(SWI-Prolog like). - -+ `open_shared_object ` - - If true, `open_shared_object/2` and friends are implemented, -providing access to shared libraries (`.so` files) or to dynamic link -libraries (`.DLL` files). - -+ `profiling ` - - If `off` (default) do not compile profiling information for -procedures. If `on` compile predicates so that they will output -profiling information. Profiling data can be read through the -profile_data/3 built-in. - -+ `prompt_alternatives_on(atom, changeable) ` - - SWI-Compatible option, determines prompting for alternatives in the Prolog toplevel. Default is groundness, YAP prompts for alternatives if and only if the query contains variables. The alternative, default in SWI-Prolog is determinism which implies the system prompts for alternatives if the goal succeeded while leaving choicepoints. - -+ `redefine_warnings ` - - If _Value_ is unbound, tell whether warnings for procedures defined -in several different files are `on` or -`off`. If _Value_ is bound to `on` enable these warnings, -and if it is bound to `off` disable them. The default for YAP is -`off`, unless we are in `sicstus` or `iso` mode. - -+ `shared_object_search_path ` - - Name of the environment variable used by the system to search for shared -objects. - -+ `shared_object_extension ` - - Suffix associated with loadable code. - -+ `single_var_warnings ` - - If _Value_ is unbound, tell whether warnings for singleton variables -are `on` or `off`. If _Value_ is bound to `on` enable -these warnings, and if it is bound to `off` disable them. The -default for YAP is `off`, unless we are in `sicstus` or -`iso` mode. - -+ `strict_iso ` - - If _Value_ is unbound, tell whether strict ISO compatibility mode -is `on` or `off`. If _Value_ is bound to `on` set -language mode to `iso` and enable strict mode. If _Value_ is -bound to `off` disable strict mode, and keep the current language -mode. The default for YAP is `off`. -Under strict ISO Prolog mode all calls to non-ISO built-ins generate an -error. Compilation of clauses that would call non-ISO built-ins will -also generate errors. Pre-processing for grammar rules is also -disabled. Module expansion is still performed. -Arguably, ISO Prolog does not provide all the functionality required -from a modern Prolog system. Moreover, because most Prolog -implementations do not fully implement the standard and because the -standard itself gives the implementor latitude in a few important -questions, such as the unification algorithm and maximum size for -numbers there is no guarantee that programs compliant with this mode -will work the same way in every Prolog and in every platform. We thus -believe this mode is mostly useful when investigating how a program -depends on a Prolog's platform specific features. - -+ `stack_dump_on_error ` - - If `on` show a stack dump when YAP finds an error. The default is -`off`. - -+ `syntax_errors` - - Control action to be taken after syntax errors while executing read/1, -`read/2`, or `read_term/3`: - + `dec10` -Report the syntax error and retry reading the term. - + `fail` -Report the syntax error and fail (default). - + `error` -Report the syntax error and generate an error. - + `quiet` -Just fail - -+ `system_options ` - - This read only flag tells which options were used to compile -YAP. Currently it informs whether the system supports `big_numbers`, -`coroutining`, `depth_limit`, `low_level_tracer`, -`or-parallelism`, `rational_trees`, `readline`, `tabling`, -`threads`, or the `wam_profiler`. - -+ `tabling_mode` - - Sets or reads the tabling mode for all tabled predicates. Please - (see Tabling) for the list of options. - -+ `to_chars_mode ` - - Define whether YAP should follow `quintus`-like -semantics for the `atom_chars/1` or `number_chars/1` built-in, -or whether it should follow the ISO standard (`iso` option). - -+ `toplevel_hook ` - - If bound, set the argument to a goal to be executed before entering the -top-level. If unbound show the current goal or `true` if none is -presented. Only the first solution is considered and the goal is not -backtracked into. - -+ `toplevel_print_options ` - - If bound, set the argument to the `write_term/3` options used to write -terms from the top-level. If unbound, show the current options. - -+ `typein_module ` - - If bound, set the current working or type-in module to the argument, -which must be an atom. If unbound, unify the argument with the current -working module. - -+ `unix` - - Read-only Boolean flag that unifies with `true` if YAP is -running on an Unix system. Defined if the C-compiler used to compile -this version of YAP either defines `__unix__` or `unix`. - -+ `unknown is iso` - - Corresponds to calling the unknown/2 built-in. Possible values -are `error`, `fail`, and `warning`. - -+ `update_semantics ` - - Define whether YAP should follow `immediate` update -semantics, as in C-Prolog (default), `logical` update semantics, -as in Quintus Prolog, SICStus Prolog, or in the ISO standard. There is -also an intermediate mode, `logical_assert`, where dynamic -procedures follow logical semantics but the internal data base still -follows immediate semantics. - -+ `user_error ` - - If the second argument is bound to a stream, set user_error to -this stream. If the second argument is unbound, unify the argument with -the current user_error stream. -By default, the user_error stream is set to a stream -corresponding to the Unix `stderr` stream. -The next example shows how to use this flag: - -~~~{.prolog} - ?- open( '/dev/null', append, Error, - [alias(mauri_tripa)] ). - - Error = '$stream'(3) ? ; - - no - ?- set_prolog_flag(user_error, mauri_tripa). - - close(mauri_tripa). - - yes - ?- -~~~ - We execute three commands. First, we open a stream in write mode and -give it an alias, in this case `mauri_tripa`. Next, we set -user_error to the stream via the alias. Note that after we did so -prompts from the system were redirected to the stream -`mauri_tripa`. Last, we close the stream. At this point, YAP -automatically redirects the user_error alias to the original -`stderr`. - -+ `user_flags ` - - Define the behaviour of set_prolog_flag/2 if the flag is not known. Values are `silent`, `warning` and `error`. The first two create the flag on-the-fly, with `warning` printing a message. The value `error` is consistent with ISO: it raises an existence error and does not create the flag. See also `create_prolog_flag/3`. The default is`error`, and developers are encouraged to use `create_prolog_flag/3` to create flags for their library. - -+ `user_input ` - - If the second argument is bound to a stream, set user_input to -this stream. If the second argument is unbound, unify the argument with -the current user_input stream. -By default, the user_input stream is set to a stream -corresponding to the Unix `stdin` stream. - -+ `user_output ` - - If the second argument is bound to a stream, set user_output to -this stream. If the second argument is unbound, unify the argument with -the current user_output stream. -By default, the user_output stream is set to a stream -corresponding to the Unix `stdout` stream. - -+ `verbose ` - - If `normal` allow printing of informational and banner messages, -such as the ones that are printed when consulting. If `silent` -disable printing these messages. It is `normal` by default except if -YAP is booted with the `-q` or `-L` flag. - -+ `verbose_load ` - - If `true` allow printing of informational messages when -consulting files. If `false` disable printing these messages. It -is `normal` by default except if YAP is booted with the `-L` -flag. - -+ `version ` - - Read-only flag that returns an atom with the current version of -YAP. - -+ `version_data ` - - Read-only flag that reads a term of the form -`yap`( _Major_, _Minor_, _Patch_, _Undefined_), where - _Major_ is the major version, _Minor_ is the minor version, -and _Patch_ is the patch number. - -+ `windows ` - - Read-only boolean flag that unifies with tr `true` if YAP is -running on an Windows machine. - -+ `write_strings ` - - Writable flag telling whether the system should write lists of -integers that are writable character codes using the list notation. It -is `on` if enables or `off` if disabled. The default value for -this flag is `off`. - -+ `max_workers ` - - Read-only flag telling the maximum number of parallel processes. - -+ `max_threads ` - - Read-only flag telling the maximum number of Prolog threads that can -be created. - - - -*/ -EOF -sed -e "585r tmp" /Users/vsc/git/yap-6.3/pl/flags.yap > x - mv x /Users/vsc/git/yap-6.3/pl/flags.yap - -#true -cat << "EOF" > tmp -/** @pred phrase(+ _P_, _L_, _R_) - - -This predicate succeeds when the difference list ` _L_- _R_` -is a phrase of type _P_. - - -*/ -EOF -sed -e "63r tmp" /Users/vsc/git/yap-6.3/pl/grammar.yap > x - mv x /Users/vsc/git/yap-6.3/pl/grammar.yap - -#true -cat << "EOF" > tmp -/** @pred phrase(+ _P_, _L_) - -This predicate succeeds when _L_ is a phrase of type _P_. The -same as `phrase(P,L,[])`. - -Both this predicate and the previous are used as a convenient way to -start execution of grammar rules. - - -*/ -EOF -sed -e "63r tmp" /Users/vsc/git/yap-6.3/pl/grammar.yap > x - mv x /Users/vsc/git/yap-6.3/pl/grammar.yap - -#false -cat << "EOF" > tmp -/** @pred exception(+ _Exception_, + _Context_, - _Action_) - - -Dynamic predicate, normally not defined. Called by the Prolog system on run-time exceptions that can be repaired `just-in-time`. The values for _Exception_ are described below. See also catch/3 and throw/1. -If this hook predicate succeeds it must instantiate the _Action_ argument to the atom `fail` to make the operation fail silently, `retry` to tell Prolog to retry the operation or `error` to make the system generate an exception. The action `retry` only makes sense if this hook modified the environment such that the operation can now succeed without error. - -+ `undefined_predicate` - _Context_ is instantiated to a predicate-indicator ( _Module:Name/Arity_). If the predicate fails Prolog will generate an existence_error exception. The hook is intended to implement alternatives to the SWI built-in autoloader, such as autoloading code from a database. Do not use this hook to suppress existence errors on predicates. See also `unknown`. -+ `undefined_global_variable` - _Context_ is instantiated to the name of the missing global variable. The hook must call nb_setval/2 or b_setval/2 before returning with the action retry. - - - - - - */ -EOF -sed -e "334r tmp" /Users/vsc/git/yap-6.3/pl/init.yap > x - mv x /Users/vsc/git/yap-6.3/pl/init.yap - -#false -cat << "EOF" > tmp -/** @pred user:message_hook(+ _Term_, + _Kind_, + _Lines_) - - -Hook predicate that may be define in the module `user` to intercept -messages from print_message/2. _Term_ and _Kind_ are the -same as passed to print_message/2. _Lines_ is a list of -format statements as described with print_message_lines/3. - -This predicate should be defined dynamic and multifile to allow other -modules defining clauses for it too. - - -*/ -EOF -sed -e "308r tmp" /Users/vsc/git/yap-6.3/pl/init.yap > x - mv x /Users/vsc/git/yap-6.3/pl/init.yap - -#false -cat << "EOF" > tmp -/** @pred false is iso - - -The same as fail. - - -*/ -EOF -sed -e "68r tmp" /Users/vsc/git/yap-6.3/pl/init.yap > x - mv x /Users/vsc/git/yap-6.3/pl/init.yap - -#false -cat << "EOF" > tmp -/** @pred fail is iso - - -Always fails. - - -*/ -EOF -sed -e "59r tmp" /Users/vsc/git/yap-6.3/pl/init.yap > x - mv x /Users/vsc/git/yap-6.3/pl/init.yap - -#true -cat << "EOF" > tmp -/** @pred portray_clause(+ _C_) - - -Write clause _C_ as if written by listing/0. - - -*/ -EOF -sed -e "218r tmp" /Users/vsc/git/yap-6.3/pl/listing.yap > x - mv x /Users/vsc/git/yap-6.3/pl/listing.yap - -#true -cat << "EOF" > tmp -/** @pred portray_clause(+ _S_,+ _C_) - -Write clause _C_ on stream _S_ as if written by listing/0. - - -*/ -EOF -sed -e "207r tmp" /Users/vsc/git/yap-6.3/pl/listing.yap > x - mv x /Users/vsc/git/yap-6.3/pl/listing.yap - -#true -cat << "EOF" > tmp -/** @pred listing(+ _P_) - -Lists predicate _P_ if its source code is available. - - -*/ -EOF -sed -e "78r tmp" /Users/vsc/git/yap-6.3/pl/listing.yap > x - mv x /Users/vsc/git/yap-6.3/pl/listing.yap - -#true -cat << "EOF" > tmp -/** @pred listing - - -Lists in the current output stream all the clauses for which source code -is available (these include all clauses for dynamic predicates and -clauses for static predicates compiled when source mode was `on`). - - -*/ -EOF -sed -e "58r tmp" /Users/vsc/git/yap-6.3/pl/listing.yap > x - mv x /Users/vsc/git/yap-6.3/pl/listing.yap - -#true -cat << "EOF" > tmp -/** @pred delete(+ _List_, ? _Element_, ? _Residue_) - - -True when _List_ is a list, in which _Element_ may or may not -occur, and _Residue_ is a copy of _List_ with all elements -identical to _Element_ deleted. - - -*/ -EOF -sed -e "69r tmp" /Users/vsc/git/yap-6.3/pl/lists.yap > x - mv x /Users/vsc/git/yap-6.3/pl/lists.yap - -#true -cat << "EOF" > tmp -/** @pred append(? _List1_,? _List2_,? _List3_) - - -Succeeds when _List3_ unifies with the concatenation of _List1_ -and _List2_. The predicate can be used with any instantiation -pattern (even three variables). - - -*/ -EOF -sed -e "49r tmp" /Users/vsc/git/yap-6.3/pl/lists.yap > x - mv x /Users/vsc/git/yap-6.3/pl/lists.yap - -#true -cat << "EOF" > tmp -/** @pred member(? _Element_, ? _Set_) - - -True when _Set_ is a list, and _Element_ occurs in it. It may be used -to test for an element or to enumerate all the elements by backtracking. - - -*/ -EOF -sed -e "36r tmp" /Users/vsc/git/yap-6.3/pl/lists.yap > x - mv x /Users/vsc/git/yap-6.3/pl/lists.yap - -#true -cat << "EOF" > tmp -/** @pred memberchk(+ _Element_, + _Set_) - - -As member/2, but may only be used to test whether a known - _Element_ occurs in a known Set. In return for this limited use, it -is more efficient when it is applicable. - - -*/ -EOF -sed -e "19r tmp" /Users/vsc/git/yap-6.3/pl/lists.yap > x - mv x /Users/vsc/git/yap-6.3/pl/lists.yap - -#false -cat << "EOF" > tmp -/** @pred open_shared_object(+ _File_, - _Handle_, + _Options_) - -As `open_shared_object/2`, but allows for additional flags to -be passed. _Options_ is a list of atoms. `now` implies the -symbols are -resolved immediately rather than lazily (default). `global` implies -symbols of the loaded object are visible while loading other shared -objects (by default they are local). Note that these flags may not -be supported by your operating system. Check the documentation of -`dlopen()` or equivalent on your operating system. Unsupported -flags are silently ignored. - - -*/ -EOF -sed -e "170r tmp" /Users/vsc/git/yap-6.3/pl/load_foreign.yap > x - mv x /Users/vsc/git/yap-6.3/pl/load_foreign.yap - -#false -cat << "EOF" > tmp -/** @pred open_shared_object(+ _File_, - _Handle_) - -File is the name of a shared object file (called dynamic load -library in MS-Windows). This file is attached to the current process -and _Handle_ is unified with a handle to the library. Equivalent to -`open_shared_object(File, [], Handle)`. See also -load_foreign_library/1 and `load_foreign_library/2`. - -On errors, an exception `shared_object`( _Action_, - _Message_) is raised. _Message_ is the return value from -dlerror(). - - -*/ -EOF -sed -e "153r tmp" /Users/vsc/git/yap-6.3/pl/load_foreign.yap > x - mv x /Users/vsc/git/yap-6.3/pl/load_foreign.yap - -#false -cat << "EOF" > tmp -/** @pred load_foreign_files( _Files_, _Libs_, _InitRoutine_) - -should be used, from inside YAP, to load object files produced by the C -compiler. The argument _ObjectFiles_ should be a list of atoms -specifying the object files to load, _Libs_ is a list (possibly -empty) of libraries to be passed to the unix loader (`ld`) and -InitRoutine is the name of the C routine (to be called after the files -are loaded) to perform the necessary declarations to YAP of the -predicates defined in the files. - -YAP will search for _ObjectFiles_ in the current directory first. If -it cannot find them it will search for the files using the environment -variable: - -+ YAPLIBDIR - -if defined, or in the default library. - -YAP also supports the SWI-Prolog interface to loading foreign code: - - -*/ -EOF -sed -e "53r tmp" /Users/vsc/git/yap-6.3/pl/load_foreign.yap > x - mv x /Users/vsc/git/yap-6.3/pl/load_foreign.yap - -#false -cat << "EOF" > tmp -/** @pred print_message_lines(+ _Stream_, + _Prefix_, + _Lines_) - - -Print a message (see print_message/2) that has been translated to -a list of message elements. The elements of this list are: - -+ _Format_-_Args_ -Where _Format_ is an atom and _Args_ is a list -of format argument. Handed to `format/3`. -+ `flush` -If this appears as the last element, _Stream_ is flushed -(see `flush_output/1`) and no final newline is generated. -+ `at_same_line` -If this appears as first element, no prefix is printed for -the first line and the line-position is not forced to 0 -(see `format/1`, `~N`). -+ `` -Handed to `format/3` as `format(Stream, Format, [])`. -+ nl -A new line is started and if the message is not complete -the _Prefix_ is printed too. - - - -*/ -EOF -sed -e "580r tmp" /Users/vsc/git/yap-6.3/pl/messages.yap > x - mv x /Users/vsc/git/yap-6.3/pl/messages.yap - -#false -cat << "EOF" > tmp -/** @pred with_mutex(+ _MutexId_, : _Goal_) - - -Execute _Goal_ while holding _MutexId_. If _Goal_ leaves -choicepoints, these are destroyed (as in once/1). The mutex is unlocked -regardless of whether _Goal_ succeeds, fails or raises an exception. -An exception thrown by _Goal_ is re-thrown after the mutex has been -successfully unlocked. See also `mutex_create/2`. - -Although described in the thread-section, this predicate is also -available in the single-threaded version, where it behaves simply as -once/1. - - -*/ -EOF -sed -e "1060r tmp" /Users/vsc/git/yap-6.3/pl/modules.yap > x - mv x /Users/vsc/git/yap-6.3/pl/modules.yap - -#false -cat << "EOF" > tmp -/** @pred call_shared_object_function(+ _Handle_, + _Function_) - - -Call the named function in the loaded shared library. The function -is called without arguments and the return-value is -ignored. In SWI-Prolog, normally this function installs foreign -language predicates using calls to `PL_register_foreign()`. - - - - */ -EOF -sed -e "1060r tmp" /Users/vsc/git/yap-6.3/pl/modules.yap > x - mv x /Users/vsc/git/yap-6.3/pl/modules.yap - -#false -cat << "EOF" > tmp -/** @pred with_output_to(+ _Ouput_,: _Goal_) - - -Run _Goal_ as once/1, while characters written to the current -output are sent to _Output_. The predicate is SWI-Prolog -specific. - -Applications should generally avoid creating atoms by breaking and -concatenating other atoms as the creation of large numbers of -intermediate atoms generally leads to poor performance, even more so in -multi-threaded applications. This predicate supports creating -difference-lists from character data efficiently. The example below -defines the DCG rule `term/3` to insert a term in the output: - -~~~~~ - term(Term, In, Tail) :- - with_output_to(codes(In, Tail), write(Term)). - -?- phrase(term(hello), X). - -X = [104, 101, 108, 108, 111] -~~~~~ - -+ A Stream handle or alias -Temporary switch current output to the given stream. Redirection using with_output_to/2 guarantees the original output is restored, also if Goal fails or raises an exception. See also call_cleanup/2. -+ atom(- _Atom_) -Create an atom from the emitted characters. Please note the remark above. -+ string(- _String_) -Create a string-object (not supported in YAP). -+ codes(- _Codes_) -Create a list of character codes from the emitted characters, similar to atom_codes/2. -+ codes(- _Codes_, - _Tail_) -Create a list of character codes as a difference-list. -+ chars(- _Chars_) -Create a list of one-character-atoms codes from the emitted characters, similar to atom_chars/2. -+ chars(- _Chars_, - _Tail_) -Create a list of one-character-atoms as a difference-list. - - - - - - */ -EOF -sed -e "1060r tmp" /Users/vsc/git/yap-6.3/pl/modules.yap > x - mv x /Users/vsc/git/yap-6.3/pl/modules.yap - -#false -cat << "EOF" > tmp -/** @pred setof( _X_,+ _P_,- _B_) is iso - - -Similar to `bagof( _T_, _G_, _L_)` but sorts list - _L_ and keeping only one copy of each element. Again, assuming the -same clauses as in the examples above, the reply to the query - -~~~~~ -setof(X,a(X,Y),L). -~~~~~ -would be: - -~~~~~ -X = _32 -Y = 1 -L = [1,2]; -X = _32 -Y = 2 -L = [2]; -no -~~~~~ - - - - - */ -EOF -sed -e "1060r tmp" /Users/vsc/git/yap-6.3/pl/modules.yap > x - mv x /Users/vsc/git/yap-6.3/pl/modules.yap - -#false -cat << "EOF" > tmp -/** @pred format(+ _T_,+ _L_) - - -Print formatted output to the current output stream. The arguments in -list _L_ are output according to the string or atom _T_. - -A control sequence is introduced by a `w`. The following control -sequences are available in YAP: - - - -+ `~~` -Print a single tilde. - -+ `~a` -The next argument must be an atom, that will be printed as if by `write`. - -+ `~Nc` -The next argument must be an integer, that will be printed as a -character code. The number _N_ is the number of times to print the -character (default 1). - -+ `~Ne` -+ `~NE` -+ `~Nf` -+ `~Ng` -+ `~NG` -The next argument must be a floating point number. The float _F_, the number - _N_ and the control code `c` will be passed to `printf` as: - -~~~~~{.prolog} - printf("%s.Nc", F) -~~~~~ - -As an example: - -~~~~~{.prolog} -?- format("~8e, ~8E, ~8f, ~8g, ~8G~w", - [3.14,3.14,3.14,3.14,3.14,3.14]). -3.140000e+00, 3.140000E+00, 3.140000, 3.14, 3.143.14 -~~~~~ - -+ `~Nd` -The next argument must be an integer, and _N_ is the number of digits -after the decimal point. If _N_ is `0` no decimal points will be -printed. The default is _N = 0_. - -~~~~~{.prolog} -?- format("~2d, ~d",[15000, 15000]). -150.00, 15000 -~~~~~ - -+ `~ND` -Identical to `~Nd`, except that commas are used to separate groups -of three digits. - -~~~~~{.prolog} -?- format("~2D, ~D",[150000, 150000]). -1,500.00, 150,000 -~~~~~ - -+ `~i` -Ignore the next argument in the list of arguments: - -~~~~~{.prolog} -?- format('The ~i met the boregrove',[mimsy]). -The met the boregrove -~~~~~ - -+ `~k` -Print the next argument with `write_canonical`: - -~~~~~{.prolog} -?- format("Good night ~k",a+[1,2]). -Good night +(a,[1,2]) -~~~~~ - -+ `~Nn` -Print _N_ newlines (where _N_ defaults to 1). - -+ `~NN` -Print _N_ newlines if at the beginning of the line (where _N_ -defaults to 1). - -+ `~Nr` -The next argument must be an integer, and _N_ is interpreted as a -radix, such that `2 <= N <= 36` (the default is 8). - -~~~~~{.prolog} -?- format("~2r, 0x~16r, ~r", - [150000, 150000, 150000]). -100100100111110000, 0x249f0, 444760 -~~~~~ - -Note that the letters `a-z` denote digits larger than 9. - -+ `~NR` -Similar to `~NR`. The next argument must be an integer, and _N_ is -interpreted as a radix, such that `2 <= N <= 36` (the default is 8). - -~~~~~{.prolog} -?- format("~2r, 0x~16r, ~r", - [150000, 150000, 150000]). -100100100111110000, 0x249F0, 444760 -~~~~~ - -The only difference is that letters `A-Z` denote digits larger than 9. - -+ `~p` -Print the next argument with print/1: - -~~~~~{.prolog} -?- format("Good night ~p",a+[1,2]). -Good night a+[1,2] -~~~~~ - -+ `~q` -Print the next argument with writeq/1: - -~~~~~{.prolog} -?- format("Good night ~q",'Hello'+[1,2]). -Good night 'Hello'+[1,2] -~~~~~ - -+ `~Ns` -The next argument must be a list of character codes. The system then -outputs their representation as a string, where _N_ is the maximum -number of characters for the string ( _N_ defaults to the length of the -string). - -~~~~~{.prolog} -?- format("The ~s are ~4s",["woods","lovely"]). -The woods are love -~~~~~ - -+ `~w` -Print the next argument with write/1: - -~~~~~ -?- format("Good night ~w",'Hello'+[1,2]). -Good night Hello+[1,2] -~~~~~ - - -The number of arguments, `N`, may be given as an integer, or it -may be given as an extra argument. The next example shows a small -procedure to write a variable number of `a` characters: - -~~~~~ -write_many_as(N) :- - format("~*c",[N,0'a]). -~~~~~ - -The format/2 built-in also allows for formatted output. One can -specify column boundaries and fill the intermediate space by a padding -character: - -+ `~N|` -Set a column boundary at position _N_, where _N_ defaults to the -current position. - -+ `~N+` -Set a column boundary at _N_ characters past the current position, where - _N_ defaults to `8`. - -+ `~Nt` -Set padding for a column, where _N_ is the fill code (default is -`SPC`). - - - -The next example shows how to align columns and padding. We first show -left-alignment: - -~~~~~ - ?- format("~n*Hello~16+*~n",[]). -*Hello * -~~~~~ - -Note that we reserve 16 characters for the column. - -The following example shows how to do right-alignment: - -~~~~~ - ?- format("*~tHello~16+*~n",[]). -* Hello* - -~~~~~ - -The `~t` escape sequence forces filling before `Hello`. - -We next show how to do centering: - -~~~~~ - ?- format("*~tHello~t~16+*~n",[]). -* Hello * -~~~~~ - -The two `~t` escape sequence force filling both before and after -`Hello`. Space is then evenly divided between the right and the -left sides. - - -*/ -EOF -sed -e "1060r tmp" /Users/vsc/git/yap-6.3/pl/modules.yap > x - mv x /Users/vsc/git/yap-6.3/pl/modules.yap - -#false -cat << "EOF" > tmp -/** @pred format(+ _S_,+ _T_,+ _L_) - -Print formatted output to stream _S_. - - -*/ -EOF -sed -e "1060r tmp" /Users/vsc/git/yap-6.3/pl/modules.yap > x - mv x /Users/vsc/git/yap-6.3/pl/modules.yap - -#false -cat << "EOF" > tmp -/** @pred findall( _T_,+ _G_,- _L_) is iso - - -Unifies _L_ with a list that contains all the instantiations of the -term _T_ satisfying the goal _G_. - -With the following program: - -~~~~~ -a(2,1). -a(1,1). -a(2,2). -~~~~~ -the answer to the query - -~~~~~ -findall(X,a(X,Y),L). -~~~~~ -would be: - -~~~~~ -X = _32 -Y = _33 -L = [2,1,2]; -no -~~~~~ - - -*/ -EOF -sed -e "1060r tmp" /Users/vsc/git/yap-6.3/pl/modules.yap > x - mv x /Users/vsc/git/yap-6.3/pl/modules.yap - -#false -cat << "EOF" > tmp -/** @pred findall( _T_,+ _G_,+ _L_,- _L0_) - -Similar to findall/3, but appends all answers to list _L0_. - - -*/ -EOF -sed -e "1060r tmp" /Users/vsc/git/yap-6.3/pl/modules.yap > x - mv x /Users/vsc/git/yap-6.3/pl/modules.yap - -#false -cat << "EOF" > tmp -/** @pred call_with_args(+ _Name_,...,? _Ai_,...) - - -Meta-call where _Name_ is the name of the procedure to be called and -the _Ai_ are the arguments. The number of arguments varies between 0 -and 10. New code should use `call/N` for better portability. - -If _Name_ is a complex term, then call_with_args/n behaves as -call/n: - -~~~~~{.prolog} -call(p(X1,...,Xm), Y1,...,Yn) :- p(X1,...,Xm,Y1,...,Yn). -~~~~~ - - -*/ -EOF -sed -e "1060r tmp" /Users/vsc/git/yap-6.3/pl/modules.yap > x - mv x /Users/vsc/git/yap-6.3/pl/modules.yap - -#false -cat << "EOF" > tmp -/** @pred bb_update(+ _Key_,? _Term_,? _New_) - - -Atomically unify a term stored in the blackboard under key _Key_ -with _Term_, and if the unification succeeds replace it by - _New_. Fail silently if no such term exists or if unification fails. - - - - - */ -EOF -sed -e "1060r tmp" /Users/vsc/git/yap-6.3/pl/modules.yap > x - mv x /Users/vsc/git/yap-6.3/pl/modules.yap - -#false -cat << "EOF" > tmp -/** @pred bb_put(+ _Key_,? _Term_) - - -Store term table _Term_ in the blackboard under key _Key_. If a -previous term was stored under key _Key_ it is simply forgotten. - - -*/ -EOF -sed -e "1060r tmp" /Users/vsc/git/yap-6.3/pl/modules.yap > x - mv x /Users/vsc/git/yap-6.3/pl/modules.yap - -#false -cat << "EOF" > tmp -/** @pred bb_get(+ _Key_,? _Term_) - - -Unify _Term_ with a term stored in the blackboard under key - _Key_, or fail silently if no such term exists. - - -*/ -EOF -sed -e "1060r tmp" /Users/vsc/git/yap-6.3/pl/modules.yap > x - mv x /Users/vsc/git/yap-6.3/pl/modules.yap - -#false -cat << "EOF" > tmp -/** @pred bb_delete(+ _Key_,? _Term_) - - -Delete any term stored in the blackboard under key _Key_ and unify -it with _Term_. Fail silently if no such term exists. - - -*/ -EOF -sed -e "1060r tmp" /Users/vsc/git/yap-6.3/pl/modules.yap > x - mv x /Users/vsc/git/yap-6.3/pl/modules.yap - -#false -cat << "EOF" > tmp -/** @pred bagof( _T_,+ _G_,- _L_) is iso - - -For each set of possible instances of the free variables occurring in - _G_ but not in _T_, generates the list _L_ of the instances of - _T_ satisfying _G_. Again, assuming the same clauses as in the -examples above, the reply to the query - -~~~~~ -bagof(X,a(X,Y),L). - -would be: -X = _32 -Y = 1 -L = [2,1]; -X = _32 -Y = 2 -L = [2]; -no -~~~~~ - - -*/ -EOF -sed -e "1060r tmp" /Users/vsc/git/yap-6.3/pl/modules.yap > x - mv x /Users/vsc/git/yap-6.3/pl/modules.yap - -#false -cat << "EOF" > tmp -/** @pred all( _T_,+ _G_,- _L_) - - -Similar to `findall( _T_, _G_, _L_)` but eliminate -repeated elements. Thus, assuming the same clauses as in the above -example, the reply to the query - -~~~~~ -all(X,a(X,Y),L). -~~~~~ -would be: - -~~~~~ -X = _32 -Y = _33 -L = [2,1]; -no -~~~~~ - -Note that all/3 will fail if no answers are found. - - -*/ -EOF -sed -e "1060r tmp" /Users/vsc/git/yap-6.3/pl/modules.yap > x - mv x /Users/vsc/git/yap-6.3/pl/modules.yap - -#false -cat << "EOF" > tmp -/** @pred current_module( _M_, _F_) - -Succeeds if _M_ are current modules associated to the file _F_. - - - - - */ -EOF -sed -e "553r tmp" /Users/vsc/git/yap-6.3/pl/modules.yap > x - mv x /Users/vsc/git/yap-6.3/pl/modules.yap - -#false -cat << "EOF" > tmp -/** @pred current_module( _M_) - - -Succeeds if _M_ are defined modules. A module is defined as soon as some -predicate defined in the module is loaded, as soon as a goal in the -module is called, or as soon as it becomes the current type-in module. - - -*/ -EOF -sed -e "537r tmp" /Users/vsc/git/yap-6.3/pl/modules.yap > x - mv x /Users/vsc/git/yap-6.3/pl/modules.yap - -#false -cat << "EOF" > tmp -/** @pred setenv(+ _Name_,+ _Value_) - - -Set environment variable. _Name_ and _Value_ should be -instantiated to atoms or integers. The environment variable will be -passed to `shell/[0-2]` and can be requested using `getenv/2`. -They also influence expand_file_name/2. - - -*/ -EOF -sed -e "215r tmp" /Users/vsc/git/yap-6.3/pl/os.yap > x - mv x /Users/vsc/git/yap-6.3/pl/os.yap - -#false -cat << "EOF" > tmp -/** @pred putenv(+ _E_,+ _S_) - - -Set environment variable _E_ to the value _S_. If the -environment variable _E_ does not exist, create a new one. Both the -environment variable and the value must be atoms. - - -*/ -EOF -sed -e "199r tmp" /Users/vsc/git/yap-6.3/pl/os.yap > x - mv x /Users/vsc/git/yap-6.3/pl/os.yap - -#false -cat << "EOF" > tmp -/** @pred unix(+ _S_) - - -Access to Unix-like functionality: - -+ argv/1 -Return a list of arguments to the program. These are the arguments that -follow a `--`, as in the usual Unix convention. -+ cd/0 -Change to home directory. -+ cd/1 -Change to given directory. Acceptable directory names are strings or -atoms. -+ environ/2 -If the first argument is an atom, unify the second argument with the -value of the corresponding environment variable. -+ getcwd/1 -Unify the first argument with an atom representing the current directory. -+ putenv/2 -Set environment variable _E_ to the value _S_. If the -environment variable _E_ does not exist, create a new one. Both the -environment variable and the value must be atoms. -+ shell/1 -Execute command under current shell. Acceptable commands are strings or -atoms. -+ system/1 -Execute command with `/bin/sh`. Acceptable commands are strings or -atoms. -+ shell/0 -Execute a new shell. - - - -*/ -EOF -sed -e "140r tmp" /Users/vsc/git/yap-6.3/pl/os.yap > x - mv x /Users/vsc/git/yap-6.3/pl/os.yap - -#false -cat << "EOF" > tmp -/** @pred pwd - - -Prints the current directory. - - -*/ -EOF -sed -e "102r tmp" /Users/vsc/git/yap-6.3/pl/os.yap > x - mv x /Users/vsc/git/yap-6.3/pl/os.yap - -#false -cat << "EOF" > tmp -/** @pred ls - - -Prints a list of all files in the current directory. - - -*/ -EOF -sed -e "70r tmp" /Users/vsc/git/yap-6.3/pl/os.yap > x - mv x /Users/vsc/git/yap-6.3/pl/os.yap - -#false -cat << "EOF" > tmp -/** @pred getcwd(- _D_) - - -Unify the current directory, represented as an atom, with the argument - _D_. - - -*/ -EOF -sed -e "61r tmp" /Users/vsc/git/yap-6.3/pl/os.yap > x - mv x /Users/vsc/git/yap-6.3/pl/os.yap - -#false -cat << "EOF" > tmp -/** @pred cd(+ _D_) - - -Changes the current directory (on UNIX environments). - - -*/ -EOF -sed -e "49r tmp" /Users/vsc/git/yap-6.3/pl/os.yap > x - mv x /Users/vsc/git/yap-6.3/pl/os.yap - -#false -cat << "EOF" > tmp -/** @pred cd - -Changes the current directory (on UNIX environments) to the user's home directory. - - -*/ -EOF -sed -e "39r tmp" /Users/vsc/git/yap-6.3/pl/os.yap > x - mv x /Users/vsc/git/yap-6.3/pl/os.yap - -#false -cat << "EOF" > tmp -/** @pred dynamic( + _P_ ) - - -Declares predicate _P_ or list of predicates [ _P1_,..., _Pn_] -as a dynamic predicate. _P_ must be written as a predicate indicator, that is in form - _Name/Arity_ or _Module:Name/Arity_. - -~~~~~ -:- dynamic god/1. -~~~~~ - - -a more convenient form can be used: - -~~~~~ -:- dynamic son/3, father/2, mother/2. -~~~~~ - -or, equivalently, - -~~~~~ -:- dynamic [son/3, father/2, mother/2]. -~~~~~ - -Note: - -a predicate is assumed to be dynamic when -asserted before being defined. - - -*/ -EOF -sed -e "72r tmp" /Users/vsc/git/yap-6.3/pl/preddecls.yap > x - mv x /Users/vsc/git/yap-6.3/pl/preddecls.yap - -#false -cat << "EOF" > tmp -/** @pred compile_predicates(: _ListOfNameArity_) - - - -Compile a list of specified dynamic predicates (see dynamic/1 and -assert/1 into normal static predicates. This call tells the -Prolog environment the definition will not change anymore and further -calls to assert/1 or retract/1 on the named predicates -raise a permission error. This predicate is designed to deal with parts -of the program that is generated at runtime but does not change during -the remainder of the program execution. - - - - - */ -EOF -sed -e "1257r tmp" /Users/vsc/git/yap-6.3/pl/preds.yap > x - mv x /Users/vsc/git/yap-6.3/pl/preds.yap - -#false -cat << "EOF" > tmp -/** @pred current_key(? _A_,? _K_) - - -Defines the relation: _K_ is a currently defined database key whose -name is the atom _A_. It can be used to generate all the keys for -the internal data-base. - - -*/ -EOF -sed -e "1231r tmp" /Users/vsc/git/yap-6.3/pl/preds.yap > x - mv x /Users/vsc/git/yap-6.3/pl/preds.yap - -#false -cat << "EOF" > tmp -/** @pred current_predicate( _F_) is iso - - - _F_ is the predicate indicator for a currently defined user or -library predicate. _F_ is of the form _Na/Ar_, where the atom - _Na_ is the name of the predicate, and _Ar_ its arity. - - -*/ -EOF -sed -e "1208r tmp" /Users/vsc/git/yap-6.3/pl/preds.yap > x - mv x /Users/vsc/git/yap-6.3/pl/preds.yap - -#false -cat << "EOF" > tmp -/** @pred system_predicate( _A_, _P_) - - -Defines the relation: _P_ is a built-in predicate whose name -is the atom _A_. - - -*/ -EOF -sed -e "1182r tmp" /Users/vsc/git/yap-6.3/pl/preds.yap > x - mv x /Users/vsc/git/yap-6.3/pl/preds.yap - -#false -cat << "EOF" > tmp -/** @pred current_predicate( _A_, _P_) - -Defines the relation: _P_ is a currently defined predicate whose -name is the atom _A_. - - -*/ -EOF -sed -e "1168r tmp" /Users/vsc/git/yap-6.3/pl/preds.yap > x - mv x /Users/vsc/git/yap-6.3/pl/preds.yap - -#false -cat << "EOF" > tmp -/** @pred predicate_erased_statistics( _P_, _NCls_, _Sz_, _IndexSz_) - - -Given predicate _P_, _NCls_ is the number of erased clauses for - _P_ that could not be discarded yet, _Sz_ is the amount of space -taken to store those clauses (in bytes), and _IndexSz_ is the amount -of space required to store indices to those clauses (in bytes). - - - - - */ -EOF -sed -e "1154r tmp" /Users/vsc/git/yap-6.3/pl/preds.yap > x - mv x /Users/vsc/git/yap-6.3/pl/preds.yap - -#false -cat << "EOF" > tmp -/** @pred predicate_statistics( _P_, _NCls_, _Sz_, _IndexSz_) - - -Given predicate _P_, _NCls_ is the number of clauses for - _P_, _Sz_ is the amount of space taken to store those clauses -(in bytes), and _IndexSz_ is the amount of space required to store -indices to those clauses (in bytes). - - -*/ -EOF -sed -e "1122r tmp" /Users/vsc/git/yap-6.3/pl/preds.yap > x - mv x /Users/vsc/git/yap-6.3/pl/preds.yap - -#false -cat << "EOF" > tmp -/** @pred predicate_property( _P_, _Prop_) is iso - - -For the predicates obeying the specification _P_ unify _Prop_ -with a property of _P_. These properties may be: - -+ `built_in ` -true for built-in predicates, - -+ `dynamic` -true if the predicate is dynamic - -+ `static ` -true if the predicate is static - -+ `meta_predicate( _M_) ` -true if the predicate has a meta_predicate declaration _M_. - -+ `multifile ` -true if the predicate was declared to be multifile - -+ `imported_from( _Mod_) ` -true if the predicate was imported from module _Mod_. - -+ `exported ` -true if the predicate is exported in the current module. - -+ `public` -true if the predicate is public; note that all dynamic predicates are -public. - -+ `tabled ` -true if the predicate is tabled; note that only static predicates can -be tabled in YAP. - -+ `source (predicate_property flag) ` -true if source for the predicate is available. - -+ `number_of_clauses( _ClauseCount_) ` -Number of clauses in the predicate definition. Always one if external -or built-in. - - - -*/ -EOF -sed -e "1046r tmp" /Users/vsc/git/yap-6.3/pl/preds.yap > x - mv x /Users/vsc/git/yap-6.3/pl/preds.yap - -#false -cat << "EOF" > tmp -/** @pred dynamic_predicate(+ _P_,+ _Semantics_) - - -Declares predicate _P_ or list of predicates [ _P1_,..., _Pn_] -as a dynamic predicate following either `logical` or -`immediate` semantics. - - -*/ -EOF -sed -e "924r tmp" /Users/vsc/git/yap-6.3/pl/preds.yap > x - mv x /Users/vsc/git/yap-6.3/pl/preds.yap - -#false -cat << "EOF" > tmp -/** @pred abolish(+ _PredSpec_) is iso - - -Deletes the predicate given by _PredSpec_ from the database. If - _PredSpec_ is an unbound variable, delete all predicates for the -current module. The -specification must include the name and arity, and it may include module -information. Under iso language mode this built-in will only abolish -dynamic procedures. Under other modes it will abolish any procedures. - - -*/ -EOF -sed -e "750r tmp" /Users/vsc/git/yap-6.3/pl/preds.yap > x - mv x /Users/vsc/git/yap-6.3/pl/preds.yap - -#false -cat << "EOF" > tmp -/** @pred abolish(+ _P_,+ _N_) - -Deletes the predicate with name _P_ and arity _N_. It will remove -both static and dynamic predicates. - - -*/ -EOF -sed -e "721r tmp" /Users/vsc/git/yap-6.3/pl/preds.yap > x - mv x /Users/vsc/git/yap-6.3/pl/preds.yap - -#false -cat << "EOF" > tmp -/** @pred retractall(+ _G_) is iso - - -Retract all the clauses whose head matches the goal _G_. Goal - _G_ must be a call to a dynamic predicate. - - - - - */ -EOF -sed -e "659r tmp" /Users/vsc/git/yap-6.3/pl/preds.yap > x - mv x /Users/vsc/git/yap-6.3/pl/preds.yap - -#false -cat << "EOF" > tmp -/** @pred retract(+ _C_,- _R_) - -Erases from the program the clause _C_ whose -database reference is _R_. The predicate must be dynamic. - - - - - */ -EOF -sed -e "621r tmp" /Users/vsc/git/yap-6.3/pl/preds.yap > x - mv x /Users/vsc/git/yap-6.3/pl/preds.yap - -#false -cat << "EOF" > tmp -/** @pred retract(+ _C_) is iso - - -Erases the first clause in the program that matches _C_. This -predicate may also be used for the static predicates that have been -compiled when the source mode was `on`. For more information on -source/0 ( (see Setting the Compiler)). - - -*/ -EOF -sed -e "575r tmp" /Users/vsc/git/yap-6.3/pl/preds.yap > x - mv x /Users/vsc/git/yap-6.3/pl/preds.yap - -#false -cat << "EOF" > tmp -/** @pred nth_clause(+ _H_, _I_,- _R_) - - -Find the _I_th clause in the predicate defining _H_, and give -a reference to the clause. Alternatively, if the reference _R_ is -given the head _H_ is unified with a description of the predicate -and _I_ is bound to its position. - - - -The following predicates can only be used for dynamic predicates: - - - - -*/ -EOF -sed -e "552r tmp" /Users/vsc/git/yap-6.3/pl/preds.yap > x - mv x /Users/vsc/git/yap-6.3/pl/preds.yap - -#false -cat << "EOF" > tmp -/** @pred clause(+ _H_, _B_,- _R_) - -The same as clause/2, plus _R_ is unified with the -reference to the clause in the database. You can use instance/2 -to access the reference's value. Note that you may not use -erase/1 on the reference on static procedures. - - -*/ -EOF -sed -e "471r tmp" /Users/vsc/git/yap-6.3/pl/preds.yap > x - mv x /Users/vsc/git/yap-6.3/pl/preds.yap - -#false -cat << "EOF" > tmp -/** @pred clause(+ _H_, _B_) is iso - - -A clause whose head matches _H_ is searched for in the -program. Its head and body are respectively unified with _H_ and - _B_. If the clause is a unit clause, _B_ is unified with - _true_. - -This predicate is applicable to static procedures compiled with -`source` active, and to all dynamic procedures. - - -*/ -EOF -sed -e "456r tmp" /Users/vsc/git/yap-6.3/pl/preds.yap > x - mv x /Users/vsc/git/yap-6.3/pl/preds.yap - -#false -cat << "EOF" > tmp -/** @pred assert(+ _C_,- _R_) - -The same as `assert(C)` ( (see Modifying the Database)) but -unifies _R_ with the database reference that identifies the new -clause, in a one-to-one way. Note that `asserta/2` only works for dynamic -predicates. If the predicate is undefined, it will automatically be -declared dynamic. - - -*/ -EOF -sed -e "437r tmp" /Users/vsc/git/yap-6.3/pl/preds.yap > x - mv x /Users/vsc/git/yap-6.3/pl/preds.yap - -#false -cat << "EOF" > tmp -/** @pred assertz(+ _C_,- _R_) - -The same as `assertz(C)` but unifying _R_ with -the database reference that identifies the new clause, in a -one-to-one way. Note that `asserta/2` only works for dynamic -predicates. If the predicate is undefined, it will automatically be -declared dynamic. - - -*/ -EOF -sed -e "421r tmp" /Users/vsc/git/yap-6.3/pl/preds.yap > x - mv x /Users/vsc/git/yap-6.3/pl/preds.yap - -#false -cat << "EOF" > tmp -/** @pred asserta(+ _C_,- _R_) - -The same as `asserta(C)` but unifying _R_ with -the database reference that identifies the new clause, in a -one-to-one way. Note that `asserta/2` only works for dynamic -predicates. If the predicate is undefined, it will automatically be -declared dynamic. - - -*/ -EOF -sed -e "405r tmp" /Users/vsc/git/yap-6.3/pl/preds.yap > x - mv x /Users/vsc/git/yap-6.3/pl/preds.yap - -#false -cat << "EOF" > tmp -/** @pred assertz_static(: _C_) - - -Adds clause _C_ to the end of a static procedure. Asserting a -static clause for a predicate while choice-points for the predicate are -available has undefined results. - - - -The following predicates can be used for dynamic predicates and for -static predicates, if source mode was on when they were compiled: - - - - -*/ -EOF -sed -e "299r tmp" /Users/vsc/git/yap-6.3/pl/preds.yap > x - mv x /Users/vsc/git/yap-6.3/pl/preds.yap - -#false -cat << "EOF" > tmp -/** @pred asserta_static(: _C_) - - -Adds clause _C_ to the beginning of a static procedure. - - -*/ -EOF -sed -e "275r tmp" /Users/vsc/git/yap-6.3/pl/preds.yap > x - mv x /Users/vsc/git/yap-6.3/pl/preds.yap - -#false -cat << "EOF" > tmp -/** @pred assert_static(: _C_) - - -Adds clause _C_ to a static procedure. Asserting a static clause -for a predicate while choice-points for the predicate are available has -undefined results. - - -*/ -EOF -sed -e "262r tmp" /Users/vsc/git/yap-6.3/pl/preds.yap > x - mv x /Users/vsc/git/yap-6.3/pl/preds.yap - -#false -cat << "EOF" > tmp -/** @pred assert(+ _C_) - - -Same as assertz/1. Adds clause _C_ to the program. If the predicate is undefined, -declare it as dynamic. New code should use assertz/1 for better portability. - -Most Prolog systems only allow asserting clauses for dynamic -predicates. This is also as specified in the ISO standard. YAP allows -asserting clauses for static predicates, as long as the predicate is not -in use and the language flag is cprolog. Note that this feature is -deprecated, if you want to assert clauses for static procedures you -should use assert_static/1. - - -*/ -EOF -sed -e "154r tmp" /Users/vsc/git/yap-6.3/pl/preds.yap > x - mv x /Users/vsc/git/yap-6.3/pl/preds.yap - -#false -cat << "EOF" > tmp -/** @pred assertz(+ _C_) is iso - - -Adds clause _C_ to the end of the program. If the predicate is -undefined, declare it as dynamic. - -Most Prolog systems only allow asserting clauses for dynamic -predicates. This is also as specified in the ISO standard. YAP allows -asserting clauses for static predicates. The current version of YAP -supports this feature, but this feature is deprecated and support may go -away in future versions. - - -*/ -EOF -sed -e "133r tmp" /Users/vsc/git/yap-6.3/pl/preds.yap > x - mv x /Users/vsc/git/yap-6.3/pl/preds.yap - -#false -cat << "EOF" > tmp -/** @pred asserta(+ _C_) is iso - - -Adds clause _C_ to the beginning of the program. If the predicate is -undefined, declare it as dynamic. - - -*/ -EOF -sed -e "113r tmp" /Users/vsc/git/yap-6.3/pl/preds.yap > x - mv x /Users/vsc/git/yap-6.3/pl/preds.yap - -#false -cat << "EOF" > tmp -/** @pred showprofres( _N_) - -Show profiling info for the top-most _N_ predicates. - - - -The showprofres/0 and `showprofres/1` predicates call a user-defined multifile hook predicate, `user:prolog_predicate_name/2`, that can be used for converting a possibly explicitly-qualified callable term into an atom that will used when printing the profiling information. - - - */ -EOF -sed -e "164r tmp" /Users/vsc/git/yap-6.3/pl/profile.yap > x - mv x /Users/vsc/git/yap-6.3/pl/profile.yap - -#false -cat << "EOF" > tmp -/** @pred showprofres - - -Show profiling info. - - -*/ -EOF -sed -e "151r tmp" /Users/vsc/git/yap-6.3/pl/profile.yap > x - mv x /Users/vsc/git/yap-6.3/pl/profile.yap - -#false -cat << "EOF" > tmp -/** @pred profile_data(? _Na/Ar_, ? _Parameter_, - _Data_) - - -Give current profile data on _Parameter_ for a predicate described -by the predicate indicator _Na/Ar_. If any of _Na/Ar_ or - _Parameter_ are unbound, backtrack through all profiled predicates -or stored parameters. Current parameters are: - -+ calls -Number of times a procedure was called. - -+ retries -Number of times a call to the procedure was backtracked to and retried. - - -+ profile_reset - - -Reset all profiling information. - - - - - */ -EOF -sed -e "102r tmp" /Users/vsc/git/yap-6.3/pl/profile.yap > x - mv x /Users/vsc/git/yap-6.3/pl/profile.yap - -#false -cat << "EOF" > tmp -/** @pred on_signal(+ _Signal_,? _OldAction_,+ _Callable_) - - -Set the interrupt handler for soft interrupt _Signal_ to be - _Callable_. _OldAction_ is unified with the previous handler. - -Only a subset of the software interrupts (signals) can have their -handlers manipulated through on_signal/3. -Their POSIX names, YAP names and default behavior is given below. -The "YAP name" of the signal is the atom that is associated with -each signal, and should be used as the first argument to -on_signal/3. It is chosen so that it matches the signal's POSIX -name. - -on_signal/3 succeeds, unless when called with an invalid -signal name or one that is not supported on this platform. No checks -are made on the handler provided by the user. - -+ sig_up (Hangup) -SIGHUP in Unix/Linux; Reconsult the initialization files -~/.yaprc, ~/.prologrc and ~/prolog.ini. -+ sig_usr1 and sig_usr2 (User signals) -SIGUSR1 and SIGUSR2 in Unix/Linux; Print a message and halt. - - -A special case is made, where if _Callable_ is bound to -`default`, then the default handler is restored for that signal. - -A call in the form `on_signal( _S_, _H_, _H_)` can be used -to retrieve a signal's current handler without changing it. - -It must be noted that although a signal can be received at all times, -the handler is not executed while YAP is waiting for a query at the -prompt. The signal will be, however, registered and dealt with as soon -as the user makes a query. - -Please also note, that neither POSIX Operating Systems nor YAP guarantee -that the order of delivery and handling is going to correspond with the -order of dispatch. - - - - - */ -EOF -sed -e "147r tmp" /Users/vsc/git/yap-6.3/pl/signals.yap > x - mv x /Users/vsc/git/yap-6.3/pl/signals.yap - -#true -cat << "EOF" > tmp -/** @pred alarm(+ _Seconds_,+ _Callable_,+ _OldAlarm_) - - -Arranges for YAP to be interrupted in _Seconds_ seconds, or in -[ _Seconds_| _MicroSeconds_]. When interrupted, YAP will execute - _Callable_ and then return to the previous execution. If - _Seconds_ is `0`, no new alarm is scheduled. In any event, -any previously set alarm is canceled. - -The variable _OldAlarm_ unifies with the number of seconds remaining -until any previously scheduled alarm was due to be delivered, or with -`0` if there was no previously scheduled alarm. - -Note that execution of _Callable_ will wait if YAP is -executing built-in predicates, such as Input/Output operations. - -The next example shows how _alarm/3_ can be used to implement a -simple clock: - -~~~~~ -loop :- loop. - -ticker :- write('.'), flush_output, - get_value(tick, yes), - alarm(1,ticker,_). - -:- set_value(tick, yes), alarm(1,ticker,_), loop. -~~~~~ - -The clock, `ticker`, writes a dot and then checks the flag -`tick` to see whether it can continue ticking. If so, it calls -itself again. Note that there is no guarantee that the each dot -corresponds a second: for instance, if the YAP is waiting for -user input, `ticker` will wait until the user types the entry in. - -The next example shows how alarm/3 can be used to guarantee that -a certain procedure does not take longer than a certain amount of time: - -~~~~~ -loop :- loop. - -:- catch((alarm(10, throw(ball), _),loop), - ball, - format('Quota exhausted.~n',[])). -~~~~~ -In this case after `10` seconds our `loop` is interrupted, -`ball` is thrown, and the handler writes `Quota exhausted`. -Execution then continues from the handler. - -Note that in this case `loop/0` always executes until the alarm is -sent. Often, the code you are executing succeeds or fails before the -alarm is actually delivered. In this case, you probably want to disable -the alarm when you leave the procedure. The next procedure does exactly so: - -~~~~~ -once_with_alarm(Time,Goal,DoOnAlarm) :- - catch(execute_once_with_alarm(Time, Goal), alarm, DoOnAlarm). - -execute_once_with_alarm(Time, Goal) :- - alarm(Time, alarm, _), - ( call(Goal) -> alarm(0, alarm, _) ; alarm(0, alarm, _), fail). -~~~~~ - -The procedure `once_with_alarm/3` has three arguments: -the _Time_ to wait before the alarm is -sent; the _Goal_ to execute; and the goal _DoOnAlarm_ to execute -if the alarm is sent. It uses catch/3 to handle the case the -`alarm` is sent. Then it starts the alarm, calls the goal - _Goal_, and disables the alarm on success or failure. - - -*/ -EOF -sed -e "147r tmp" /Users/vsc/git/yap-6.3/pl/signals.yap > x - mv x /Users/vsc/git/yap-6.3/pl/signals.yap - -#false -cat << "EOF" > tmp -/** @pred predsort(+ _Pred_, + _List_, - _Sorted_) - - -Sorts similar to sort/2, but determines the order of two terms by -calling _Pred_(- _Delta_, + _E1_, + _E2_) . This call must -unify _Delta_ with one of `<`, `>` or `=`. If -built-in predicate compare/3 is used, the result is the same as -sort/2. - - -*/ -EOF -sed -e "172r tmp" /Users/vsc/git/yap-6.3/pl/sort.yap > x - mv x /Users/vsc/git/yap-6.3/pl/sort.yap - -#false -cat << "EOF" > tmp -/** @pred keysort(+ _L_, _S_) is iso - - -Assuming L is a list of the form ` _Key_- _Value_`, -`keysort(+ _L_, _S_)` unifies _S_ with the list obtained -from _L_, by sorting its elements according to the value of - _Key_. - -~~~~~{.prolog} -?- keysort([3-a,1-b,2-c,1-a,1-b],S). -~~~~~ -would return: - -~~~~~{.prolog} -S = [1-b,1-a,1-b,2-c,3-a] -~~~~~ - - -*/ -EOF -sed -e "134r tmp" /Users/vsc/git/yap-6.3/pl/sort.yap > x - mv x /Users/vsc/git/yap-6.3/pl/sort.yap - -#false -cat << "EOF" > tmp -/** @pred sort(+ _L_,- _S_) is iso - - -Unifies _S_ with the list obtained by sorting _L_ and merging -identical (in the sense of `==`) elements. - - -*/ -EOF -sed -e "88r tmp" /Users/vsc/git/yap-6.3/pl/sort.yap > x - mv x /Users/vsc/git/yap-6.3/pl/sort.yap - -#false -cat << "EOF" > tmp -/** @pred length(? _L_,? _S_) - - -Unify the well-defined list _L_ with its length. The procedure can -be used to find the length of a pre-defined list, or to build a list -of length _S_. - - - - - */ -EOF -sed -e "52r tmp" /Users/vsc/git/yap-6.3/pl/sort.yap > x - mv x /Users/vsc/git/yap-6.3/pl/sort.yap - -#true -cat << "EOF" > tmp -/** @pred time(: _Goal_) - - -Prints the CPU time and the wall time for the execution of _Goal_. -Possible choice-points of _Goal_ are removed. Based on the SWI-Prolog -definition (minus reporting the number of inferences, which YAP currently -does not support). - - -*/ -EOF -sed -e "328r tmp" /Users/vsc/git/yap-6.3/pl/statistics.yap > x - mv x /Users/vsc/git/yap-6.3/pl/statistics.yap - -#true -cat << "EOF" > tmp -/** @pred key_statistics(+ _K_,- _Entries_,- _TotalSize_) - -Returns several statistics for a key _K_. Currently, it says how -many entries we have for that key, _Entries_, what is the -total size spent on this key. - - -*/ -EOF -sed -e "307r tmp" /Users/vsc/git/yap-6.3/pl/statistics.yap > x - mv x /Users/vsc/git/yap-6.3/pl/statistics.yap - -#true -cat << "EOF" > tmp -/** @pred statistics(? _Param_,- _Info_) - -Gives statistical information on the system parameter given by first -argument: - - - -+ atoms - -`[ _NumberOfAtoms_, _SpaceUsedBy Atoms_]` - - -This gives the total number of atoms `NumberOfAtoms` and how much -space they require in bytes, _SpaceUsedBy Atoms_. - -+ cputime - -`[ _Time since Boot_, _Time From Last Call to Cputime_]` - - -This gives the total cputime in milliseconds spent executing Prolog code, -garbage collection and stack shifts time included. - -+ dynamic_code - -`[ _Clause Size_, _Index Size_, _Tree Index Size_, _Choice Point Instructions Size_, _Expansion Nodes Size_, _Index Switch Size_]` - - -Size of static code in YAP in bytes: _Clause Size_, the number of -bytes allocated for clauses, plus - _Index Size_, the number of bytes spent in the indexing code. The -indexing code is divided into main tree, _Tree Index Size_, -tables that implement choice-point manipulation, _Choice xsPoint Instructions Size_, tables that cache clauses for future expansion of the index -tree, _Expansion Nodes Size_, and -tables such as hash tables that select according to value, _Index Switch Size_. - -+ garbage_collection - -`[ _Number of GCs_, _Total Global Recovered_, _Total Time Spent_]` - - -Number of garbage collections, amount of space recovered in kbytes, and -total time spent doing garbage collection in milliseconds. More detailed -information is available using `yap_flag(gc_trace,verbose)`. - -+ global_stack - -`[ _Global Stack Used_, _Execution Stack Free_]` - - -Space in kbytes currently used in the global stack, and space available for -expansion by the local and global stacks. - -+ local_stack - -`[ _Local Stack Used_, _Execution Stack Free_]` - - -Space in kbytes currently used in the local stack, and space available for -expansion by the local and global stacks. - -+ heap - -`[ _Heap Used_, _Heap Free_]` - - -Total space in kbytes not recoverable -in backtracking. It includes the program code, internal data base, and, -atom symbol table. - -+ program - -`[ _Program Space Used_, _Program Space Free_]` - - -Equivalent to heap. - -+ runtime - -`[ _Time since Boot_, _Time From Last Call to Runtime_]` - - -This gives the total cputime in milliseconds spent executing Prolog -code, not including garbage collections and stack shifts. Note that -until YAP4.1.2 the runtime statistics would return time spent on -garbage collection and stack shifting. - -+ stack_shifts - -`[ _Number of Heap Shifts_, _Number of Stack Shifts_, _Number of Trail Shifts_]` - - -Number of times YAP had to -expand the heap, the stacks, or the trail. More detailed information is -available using `yap_flag(gc_trace,verbose)`. - -+ static_code - -`[ _Clause Size_, _Index Size_, _Tree Index Size_, _Expansion Nodes Size_, _Index Switch Size_]` - - -Size of static code in YAP in bytes: _Clause Size_, the number of -bytes allocated for clauses, plus - _Index Size_, the number of bytes spent in the indexing code. The -indexing code is divided into a main tree, _Tree Index Size_, table that cache clauses for future expansion of the index -tree, _Expansion Nodes Size_, and and -tables such as hash tables that select according to value, _Index Switch Size_. - -+ trail - -`[ _Trail Used_, _Trail Free_]` - - -Space in kbytes currently being used and still available for the trail. - -+ walltime - -`[ _Time since Boot_, _Time From Last Call to Walltime_]` - - -This gives the clock time in milliseconds since starting Prolog. - - - - -*/ -EOF -sed -e "256r tmp" /Users/vsc/git/yap-6.3/pl/statistics.yap > x - mv x /Users/vsc/git/yap-6.3/pl/statistics.yap - -#true -cat << "EOF" > tmp -/** @pred statistics/0 - - -Send to the current user error stream general information on space used and time -spent by the system. - -~~~~~ -?- statistics. -memory (total) 4784124 bytes - program space 3055616 bytes: 1392224 in use, 1663392 free - 2228132 max - stack space 1531904 bytes: 464 in use, 1531440 free - global stack: 96 in use, 616684 max - local stack: 368 in use, 546208 max - trail stack 196604 bytes: 8 in use, 196596 free - - 0.010 sec. for 5 code, 2 stack, and 1 trail space overflows - 0.130 sec. for 3 garbage collections which collected 421000 bytes - 0.000 sec. for 0 atom garbage collections which collected 0 bytes - 0.880 sec. runtime - 1.020 sec. cputime - 25.055 sec. elapsed time - -~~~~~ -The example shows how much memory the system spends. Memory is divided -into Program Space, Stack Space and Trail. In the example we have 3MB -allocated for program spaces, with less than half being actually -used. YAP also shows the maximum amount of heap space having been used -which was over 2MB. - -The stack space is divided into two stacks which grow against each -other. We are in the top level so very little stack is being used. On -the other hand, the system did use a lot of global and local stack -during the previous execution (we refer the reader to a WAM tutorial in -order to understand what are the global and local stacks). - -YAP also shows information on how many memory overflows and garbage -collections the system executed, and statistics on total execution -time. Cputime includes all running time, runtime excludes garbage -collection and stack overflow time. - - -*/ -EOF -sed -e "68r tmp" /Users/vsc/git/yap-6.3/pl/statistics.yap > x - mv x /Users/vsc/git/yap-6.3/pl/statistics.yap - -#true -cat << "EOF" > tmp -/** @pred reverse(+ _List_, ? _Reversed_) - - -True when _List_ and _Reversed_ are lists with the same elements -but in opposite orders. - - -*/ -EOF -sed -e "81r tmp" /Users/vsc/git/yap-6.3/pl/swi.yap > x - mv x /Users/vsc/git/yap-6.3/pl/swi.yap - -#false -cat << "EOF" > tmp -/** @pred tabling_statistics/0 - - -Prints statistics on space used by all tables. - - - - */ -EOF -sed -e "214r tmp" /Users/vsc/git/yap-6.3/pl/tabling.yap > x - mv x /Users/vsc/git/yap-6.3/pl/tabling.yap - -#false -cat << "EOF" > tmp -/** @pred tabling_mode(+ _P_,? _Mode_) - - -Sets or reads the default tabling mode for a tabled predicate _P_ -(or a list of predicates _P1_,..., _Pn_ or -[ _P1_,..., _Pn_]). The list of _Mode_ options includes: - -+ `batched` - - Defines that, by default, batched scheduling is the scheduling -strategy to be used to evaluated calls to predicate _P_. - -+ `local` - - Defines that, by default, local scheduling is the scheduling -strategy to be used to evaluated calls to predicate _P_. - -+ `exec_answers` - - Defines that, by default, when a call to predicate _P_ is -already evaluated (completed), answers are obtained by executing -compiled WAM-like code directly from the trie data -structure. This reduces the loading time when backtracking, but -the order in which answers are obtained is undefined. - -+ `load_answers` - - Defines that, by default, when a call to predicate _P_ is -already evaluated (completed), answers are obtained (as a -consumer) by loading them from the trie data structure. This -guarantees that answers are obtained in the same order as they -were found. Somewhat less efficient but creates less choice-points. - -The default tabling mode for a new tabled predicate is `batched` -and `exec_answers`. To set the tabling mode for all predicates at -once you can use the yap_flag/2 predicate as described next. - -*/ -EOF -sed -e "165r tmp" /Users/vsc/git/yap-6.3/pl/tabling.yap > x - mv x /Users/vsc/git/yap-6.3/pl/tabling.yap - -#false -cat << "EOF" > tmp -/** @pred table_statistics(+ _P_) - - -Prints table statistics (subgoals and answers) for predicate _P_ -(or a list of predicates _P1_,..., _Pn_ or -[ _P1_,..., _Pn_]). - - -*/ -EOF -sed -e "165r tmp" /Users/vsc/git/yap-6.3/pl/tabling.yap > x - mv x /Users/vsc/git/yap-6.3/pl/tabling.yap - -#false -cat << "EOF" > tmp -/** @pred table( + _P_ ) - - -Declares predicate _P_ (or a list of predicates - _P1_,..., _Pn_ or [ _P1_,..., _Pn_]) as a tabled -predicate. _P_ must be written in the form - _name/arity_. Examples: - -~~~~~ -:- table son/3. -:- table father/2. -:- table mother/2. -~~~~~ - or - -~~~~~ -:- table son/3, father/2, mother/2. -~~~~~ - or - -~~~~~ -:- table [son/3, father/2, mother/2]. -~~~~~ - - -*/ -EOF -sed -e "165r tmp" /Users/vsc/git/yap-6.3/pl/tabling.yap > x - mv x /Users/vsc/git/yap-6.3/pl/tabling.yap - -#false -cat << "EOF" > tmp -/** @pred show_table(+ _P_) - - -Prints table contents (subgoals and answers) for predicate _P_ -(or a list of predicates _P1_,..., _Pn_ or -[ _P1_,..., _Pn_]). - - -*/ -EOF -sed -e "165r tmp" /Users/vsc/git/yap-6.3/pl/tabling.yap > x - mv x /Users/vsc/git/yap-6.3/pl/tabling.yap - -#false -cat << "EOF" > tmp -/** @pred is_tabled(+ _P_) - - -Succeeds if the predicate _P_ (or a list of predicates - _P1_,..., _Pn_ or [ _P1_,..., _Pn_]), of the form - _name/arity_, is a tabled predicate. - - -*/ -EOF -sed -e "165r tmp" /Users/vsc/git/yap-6.3/pl/tabling.yap > x - mv x /Users/vsc/git/yap-6.3/pl/tabling.yap - -#false -cat << "EOF" > tmp -/** @pred abolish_table(+ _P_) - - -Removes all the entries from the table space for predicate _P_ (or -a list of predicates _P1_,..., _Pn_ or -[ _P1_,..., _Pn_]). The predicate remains as a tabled predicate. - - -*/ -EOF -sed -e "165r tmp" /Users/vsc/git/yap-6.3/pl/tabling.yap > x - mv x /Users/vsc/git/yap-6.3/pl/tabling.yap - -#false -cat << "EOF" > tmp -/** @pred thread_local( _+Functor/Arity_) - - -related to the dynamic/1 directive. It tells the system that the -predicate may be modified using assert/1, retract/1, -etc, during execution of the program. Unlike normal shared dynamic -data however each thread has its own clause-list for the predicate. -As a thread starts, this clause list is empty. If there are still -clauses as the thread terminates these are automatically reclaimed by -the system. The `thread_local` property implies -the property `dynamic`. - -Thread-local dynamic predicates are intended for maintaining -thread-specific state or intermediate results of a computation. - -It is not recommended to put clauses for a thread-local predicate into -a file as in the example below as the clause is only visible from the -thread that loaded the source-file. All other threads start with an -empty clause-list. - -~~~~~ -:- thread_local - foo/1. - -foo(gnat). -~~~~~ - - - - - */ -EOF -sed -e "1357r tmp" /Users/vsc/git/yap-6.3/pl/threads.yap > x - mv x /Users/vsc/git/yap-6.3/pl/threads.yap - -#false -cat << "EOF" > tmp -/** @pred thread_sleep(+ _Time_) - - -Make current thread sleep for _Time_ seconds. _Time_ may be an -integer or a floating point number. When time is zero or a negative value -the call succeeds and returns immediately. This call should not be used if -alarms are also being used. - - - - */ -EOF -sed -e "1266r tmp" /Users/vsc/git/yap-6.3/pl/threads.yap > x - mv x /Users/vsc/git/yap-6.3/pl/threads.yap - -#false -cat << "EOF" > tmp -/** @pred thread_peek_message(+ _Queue_, ? _Term_) - -As thread_peek_message/1, operating on a given queue. It is allowed to -peek into another thread's message queue, an operation that can be used -to check whether a thread has swallowed a message sent to it. - - - -Explicit message queues are designed with the worker-pool model -in mind, where multiple threads wait on a single queue and pick up the -first goal to execute. Below is a simple implementation where the -workers execute arbitrary Prolog goals. Note that this example provides -no means to tell when all work is done. This must be realised using -additional synchronisation. - -~~~~~ -% create_workers(+Id, +N) -% -% Create a pool with given Id and number of workers. - -create_workers(Id, N) :- - message_queue_create(Id), - forall(between(1, N, _), - thread_create(do_work(Id), _, [])). - -do_work(Id) :- - repeat, - thread_get_message(Id, Goal), - ( catch(Goal, E, print_message(error, E)) - -> true - ; print_message(error, goal_failed(Goal, worker(Id))) - ), - fail. - -% work(+Id, +Goal) -% -% Post work to be done by the pool - -work(Id, Goal) :- - thread_send_message(Id, Goal). -~~~~~ - - - */ -EOF -sed -e "1228r tmp" /Users/vsc/git/yap-6.3/pl/threads.yap > x - mv x /Users/vsc/git/yap-6.3/pl/threads.yap - -#false -cat << "EOF" > tmp -/** @pred thread_peek_message(? _Term_) - - -Examines the thread message-queue and compares the queued terms -with _Term_ until one unifies or the end of the queue has been -reached. In the first case the call succeeds (possibly instantiating - _Term_. If no term from the queue unifies this call fails. - - -*/ -EOF -sed -e "1180r tmp" /Users/vsc/git/yap-6.3/pl/threads.yap > x - mv x /Users/vsc/git/yap-6.3/pl/threads.yap - -#false -cat << "EOF" > tmp -/** @pred thread_get_message(+ _Queue_, ? _Term_) - -As thread_get_message/1, operating on a given queue. It is allowed to -peek into another thread's message queue, an operation that can be used -to check whether a thread has swallowed a message sent to it. - - -*/ -EOF -sed -e "1161r tmp" /Users/vsc/git/yap-6.3/pl/threads.yap > x - mv x /Users/vsc/git/yap-6.3/pl/threads.yap - -#false -cat << "EOF" > tmp -/** @pred thread_get_message(? _Term_) - - -Examines the thread message-queue and if necessary blocks execution -until a term that unifies to _Term_ arrives in the queue. After -a term from the queue has been unified unified to _Term_, the -term is deleted from the queue and this predicate returns. - -Please note that not-unifying messages remain in the queue. After -the following has been executed, thread 1 has the term `gnu` -in its queue and continues execution using _A_ is `gnat`. - -~~~~~ - - thread_get_message(a(A)), - - - thread_send_message(b(gnu)), - thread_send_message(a(gnat)), -~~~~~ - -See also thread_peek_message/1. - - -*/ -EOF -sed -e "1149r tmp" /Users/vsc/git/yap-6.3/pl/threads.yap > x - mv x /Users/vsc/git/yap-6.3/pl/threads.yap - -#false -cat << "EOF" > tmp -/** @pred thread_send_message(+ _QueueOrThreadId_, + _Term_) - -Place _Term_ in the given queue or default queue of the indicated -thread (which can even be the message queue of itself (see -thread_self/1). Any term can be placed in a message queue, but note that -the term is copied to the receiving thread and variable-bindings are -thus lost. This call returns immediately. - -If more than one thread is waiting for messages on the given queue and -at least one of these is waiting with a partially instantiated - _Term_, the waiting threads are all sent a wakeup signal, -starting a rush for the available messages in the queue. This behaviour -can seriously harm performance with many threads waiting on the same -queue as all-but-the-winner perform a useless scan of the queue. If -there is only one waiting thread or all waiting threads wait with an -unbound variable an arbitrary thread is restarted to scan the queue. - - - - - -*/ -EOF -sed -e "1116r tmp" /Users/vsc/git/yap-6.3/pl/threads.yap > x - mv x /Users/vsc/git/yap-6.3/pl/threads.yap - -#false -cat << "EOF" > tmp -/** @pred message_queue_destroy(+ _Queue_) - - -Destroy a message queue created with message_queue_create/1. It is -not allows to destroy the queue of a thread. Neither is it -allowed to destroy a queue other threads are waiting for or, for -anonymous message queues, may try to wait for later. - - -*/ -EOF -sed -e "1047r tmp" /Users/vsc/git/yap-6.3/pl/threads.yap > x - mv x /Users/vsc/git/yap-6.3/pl/threads.yap - -#false -cat << "EOF" > tmp -/** @pred message_queue_create(? _Queue_) - - -If _Queue_ is an atom, create a named queue. To avoid ambiguity -on `thread_send_message/2`, the name of a queue may not be in use -as a thread-name. If _Queue_ is unbound an anonymous queue is -created and _Queue_ is unified to its identifier. - - -*/ -EOF -sed -e "1029r tmp" /Users/vsc/git/yap-6.3/pl/threads.yap > x - mv x /Users/vsc/git/yap-6.3/pl/threads.yap - -#false -cat << "EOF" > tmp -/** @pred current_mutex(? _MutexId_, ? _ThreadId_, ? _Count_) - - -Enumerates all existing mutexes. If the mutex is held by some thread, - _ThreadId_ is unified with the identifier of the holding thread and - _Count_ with the recursive count of the mutex. Otherwise, - _ThreadId_ is `[]` and _Count_ is 0. - - - - */ -EOF -sed -e "945r tmp" /Users/vsc/git/yap-6.3/pl/threads.yap > x - mv x /Users/vsc/git/yap-6.3/pl/threads.yap - -#false -cat << "EOF" > tmp -/** @pred mutex_unlock_all - - -Unlock all mutexes held by the current thread. This call is especially -useful to handle thread-termination using abort/0 or exceptions. See -also thread_signal/2. - - -*/ -EOF -sed -e "916r tmp" /Users/vsc/git/yap-6.3/pl/threads.yap > x - mv x /Users/vsc/git/yap-6.3/pl/threads.yap - -#false -cat << "EOF" > tmp -/** @pred thread_statistics(+ _Id_, + _Key_, - _Value_) - - -Obtains statistical information on thread _Id_ as `statistics/2` -does in single-threaded applications. This call returns all keys -of `statistics/2`, although only information statistics about the -stacks and CPU time yield different values for each thread. - -+ mutex_statistics - - -Print usage statistics on internal mutexes and mutexes associated -with dynamic predicates. For each mutex two numbers are printed: -the number of times the mutex was acquired and the number of -collisions: the number times the calling thread has to -wait for the mutex. The collision-count is not available on -Windows as this would break portability to Windows-95/98/ME or -significantly harm performance. Generally collision count is -close to zero on single-CPU hardware. - -+ threads - - -Prints a table of current threads and their status. - - - - */ -EOF -sed -e "807r tmp" /Users/vsc/git/yap-6.3/pl/threads.yap > x - mv x /Users/vsc/git/yap-6.3/pl/threads.yap - -#false -cat << "EOF" > tmp -/** @pred thread_property(? _Id_, ? _Property_) - - -Enumerates the properties of the specified thread. -Calling thread_property/2 does not influence any thread. See also -thread_join/2. For threads that have an alias-name, this name can -be used in _Id_ instead of the numerical thread identifier. - _Property_ is one of: - -+ status( _Status_) -The thread status of a thread (see below). - -+ alias( _Alias_) -The thread alias, if it exists. - -+ at_exit( _AtExit_) -The thread exit hook, if defined (not available if the thread is already terminated). - -+ detached( _Boolean_) -The detached state of the thread. - -+ stack( _Size_) -The thread stack data-area size. - -+ trail( _Size_) -The thread trail data-area size. - -+ system( _Size_) -The thread system data-area size. - - - -*/ -EOF -sed -e "673r tmp" /Users/vsc/git/yap-6.3/pl/threads.yap > x - mv x /Users/vsc/git/yap-6.3/pl/threads.yap - -#false -cat << "EOF" > tmp -/** @pred current_thread(+ _Id_, - _Status_) - - -Enumerates identifiers and status of all currently known threads. -Calling current_thread/2 does not influence any thread. See also -thread_join/2. For threads that have an alias-name, this name is -returned in _Id_ instead of the numerical thread identifier. - _Status_ is one of: - -+ running -The thread is running. This is the initial status of a thread. Please -note that threads waiting for something are considered running too. - -+ false -The _Goal_ of the thread has been completed and failed. - -+ true -The _Goal_ of the thread has been completed and succeeded. - -+ exited( _Term_) -The _Goal_ of the thread has been terminated using thread_exit/1 -with _Term_ as argument. If the underlying native thread has -exited (using pthread_exit()) _Term_ is unbound. - -+ exception( _Term_) -The _Goal_ of the thread has been terminated due to an uncaught -exception (see throw/1 and catch/3). - - - -*/ -EOF -sed -e "624r tmp" /Users/vsc/git/yap-6.3/pl/threads.yap > x - mv x /Users/vsc/git/yap-6.3/pl/threads.yap - -#false -cat << "EOF" > tmp -/** @pred thread_exit(+ _Term_) - - -Terminates the thread immediately, leaving `exited( _Term_)` as -result-state for thread_join/2. If the thread has the attribute -`detached` `true` it terminates, but its exit status cannot be -retrieved using thread_join/2 making the value of _Term_ -irrelevant. The Prolog stacks and C-thread are reclaimed. - - -*/ -EOF -sed -e "537r tmp" /Users/vsc/git/yap-6.3/pl/threads.yap > x - mv x /Users/vsc/git/yap-6.3/pl/threads.yap - -#false -cat << "EOF" > tmp -/** @pred thread_join(+ _Id_, - _Status_) - - -Wait for the termination of thread with given _Id_. Then unify the -result-status of the thread with _Status_. After this call, - _Id_ becomes invalid and all resources associated with the thread -are reclaimed. Note that threads with the attribute `detached` -`true` cannot be joined. See also current_thread/2. - -A thread that has been completed without thread_join/2 being -called on it is partly reclaimed: the Prolog stacks are released and the -C-thread is destroyed. A small data-structure representing the -exit-status of the thread is retained until thread_join/2 is called on -the thread. Defined values for _Status_ are: - -+ true -The goal has been proven successfully. - -+ false -The goal has failed. - -+ exception( _Term_) -The thread is terminated on an -exception. See print_message/2 to turn system exceptions into -readable messages. - -+ exited( _Term_) -The thread is terminated on thread_exit/1 using the argument _Term_. - - -+ thread_detach(+ _Id_) - - -Switch thread into detached-state (see `detached` option at -thread_create/3 at runtime. _Id_ is the identifier of the thread -placed in detached state. - -One of the possible applications is to simplify debugging. Threads that -are created as `detached` leave no traces if they crash. For -not-detached threads the status can be inspected using -current_thread/2. Threads nobody is waiting for may be created -normally and detach themselves just before completion. This way they -leave no traces on normal completion and their reason for failure can be -inspected. - - -*/ -EOF -sed -e "496r tmp" /Users/vsc/git/yap-6.3/pl/threads.yap > x - mv x /Users/vsc/git/yap-6.3/pl/threads.yap - -#true -cat << "EOF" > tmp -/** @pred thread_self(- _Id_) - - -Get the Prolog thread identifier of the running thread. If the thread -has an alias, the alias-name is returned. - - -*/ -EOF -sed -e "441r tmp" /Users/vsc/git/yap-6.3/pl/threads.yap > x - mv x /Users/vsc/git/yap-6.3/pl/threads.yap - -#false -cat << "EOF" > tmp -/** @pred thread_signal(+ _ThreadId_, : _Goal_) - - -Make thread _ThreadId_ execute _Goal_ at the first -opportunity. In the current implementation, this implies at the first -pass through the Call-port. The predicate thread_signal/2 -itself places _Goal_ into the signalled-thread's signal queue -and returns immediately. - -Signals (interrupts) do not cooperate well with the world of -multi-threading, mainly because the status of mutexes cannot be -guaranteed easily. At the call-port, the Prolog virtual machine -holds no locks and therefore the asynchronous execution is safe. - - _Goal_ can be any valid Prolog goal, including throw/1 to make -the receiving thread generate an exception and trace/0 to start -tracing the receiving thread. - - - - - */ -EOF -sed -e "85r tmp" /Users/vsc/git/yap-6.3/pl/threads.yap > x - mv x /Users/vsc/git/yap-6.3/pl/threads.yap - -#false -cat << "EOF" > tmp -/** @pred thread_create(: _Goal_, - _Id_) - - -Create a new Prolog thread using default options. See thread_create/3. - - -*/ -EOF -sed -e "85r tmp" /Users/vsc/git/yap-6.3/pl/threads.yap > x - mv x /Users/vsc/git/yap-6.3/pl/threads.yap - -#false -cat << "EOF" > tmp -/** @pred thread_create(: _Goal_) - - -Create a new Prolog detached thread using default options. See thread_create/3. - - -*/ -EOF -sed -e "85r tmp" /Users/vsc/git/yap-6.3/pl/threads.yap > x - mv x /Users/vsc/git/yap-6.3/pl/threads.yap - -#false -cat << "EOF" > tmp -/** @pred thread_at_exit(: _Term_) - - -Run _Goal_ just before releasing the thread resources. This is to -be compared to `at_halt/1`, but only for the current -thread. These hooks are ran regardless of why the execution of the -thread has been completed. As these hooks are run, the return-code is -already available through thread_property/2 using the result of -thread_self/1 as thread-identifier. If you want to guarantee the -execution of an exit hook no matter how the thread terminates (the thread -can be aborted before reaching the thread_at_exit/1 call), consider -using instead the `at_exit/1` option of thread_create/3. - - -*/ -EOF -sed -e "85r tmp" /Users/vsc/git/yap-6.3/pl/threads.yap > x - mv x /Users/vsc/git/yap-6.3/pl/threads.yap - -#false -cat << "EOF" > tmp -/** @pred user:unknown_predicate_handler(+G,+M,?NG) - - -The user may also define clauses for -`user:unknown_predicate_handler/3` hook predicate. This -user-defined procedure is called before any system processing for the -undefined procedure, with the first argument _G_ set to the current -goal, and the second _M_ set to the current module. The predicate - _G_ will be called from within the user module. - -If `user:unknown_predicate_handler/3` succeeds, the system will -execute _NG_. If `user:unknown_predicate_handler/3` fails, the -system will execute default action as specified by unknown/2. - - -*/ -EOF -sed -e "105r tmp" /Users/vsc/git/yap-6.3/pl/undefined.yap > x - mv x /Users/vsc/git/yap-6.3/pl/undefined.yap - -#false -cat << "EOF" > tmp -/** @pred unknown(- _O_,+ _N_) - - -Specifies an handler to be called is a program tries to call an -undefined static procedure _P_. - -The arity of _N_ may be zero or one. If the arity is `0`, the -new action must be one of `fail`, `warning`, or -`error`. If the arity is `1`, _P_ is an user-defined -handler and at run-time, the argument to the handler _P_ will be -unified with the undefined goal. Note that _N_ must be defined prior -to calling unknown/2, and that the single argument to _N_ must -be unbound. - -In YAP, the default action is to `fail` (note that in the ISO -Prolog standard the default action is `error`). - -After defining `undefined/1` by: - -~~~~~{.prolog} -undefined(A) :- format('Undefined predicate: ~w~n',[A]), fail. -~~~~~ -and executing the goal: - -~~~~~{.prolog} -unknown(U,undefined(X)). -~~~~~ -a call to a predicate for which no clauses were defined will result in -the output of a message of the form: - -~~~~~{.prolog} -Undefined predicate: user:xyz(A1,A2) -~~~~~ -followed by the failure of that call. - - -*/ -EOF -sed -e "73r tmp" /Users/vsc/git/yap-6.3/pl/undefined.yap > x - mv x /Users/vsc/git/yap-6.3/pl/undefined.yap - -#false -cat << "EOF" > tmp -/** @pred subsumes_term(? _Subsumer_, ? _Subsumed_) - - - -Succeed if _Submuser_ subsumes _Subsuned_ but does not bind any -variable in _Subsumer_. - - -*/ -EOF -sed -e "403r tmp" /Users/vsc/git/yap-6.3/pl/utils.yap > x - mv x /Users/vsc/git/yap-6.3/pl/utils.yap - -#false -cat << "EOF" > tmp -/** @pred nb_current(? _Name_,? _Value_) - - -Enumerate all defined variables with their value. The order of -enumeration is undefined. - - -*/ -EOF -sed -e "370r tmp" /Users/vsc/git/yap-6.3/pl/utils.yap > x - mv x /Users/vsc/git/yap-6.3/pl/utils.yap - -#false -cat << "EOF" > tmp -/** @pred nb_current(? _Name_, ? _Value_) - - -Enumerate all defined variables with their value. The order of -enumeration is undefined. - - -*/ -EOF -sed -e "370r tmp" /Users/vsc/git/yap-6.3/pl/utils.yap > x - mv x /Users/vsc/git/yap-6.3/pl/utils.yap - -#false -cat << "EOF" > tmp -/** @pred nth_instance(? _Key_,? _Index_, _T_,? _R_) - -Fetches the _Index_nth entry in the internal database under the key - _Key_. Entries are numbered from one. If the key _Key_ or the - _Index_ are bound, a reference is unified with _R_. Otherwise, -the reference _R_ must be given, and YAP will find -the matching key and index. - - -*/ -EOF -sed -e "346r tmp" /Users/vsc/git/yap-6.3/pl/utils.yap > x - mv x /Users/vsc/git/yap-6.3/pl/utils.yap - -#false -cat << "EOF" > tmp -/** @pred nth_instance(? _Key_,? _Index_,? _R_) - - -Fetches the _Index_nth entry in the internal database under the key - _Key_. Entries are numbered from one. If the key _Key_ or the - _Index_ are bound, a reference is unified with _R_. Otherwise, -the reference _R_ must be given, and YAP will find -the matching key and index. - - -*/ -EOF -sed -e "329r tmp" /Users/vsc/git/yap-6.3/pl/utils.yap > x - mv x /Users/vsc/git/yap-6.3/pl/utils.yap - -#true -cat << "EOF" > tmp -/** @pred simple( _T_) - - -Checks whether _T_ is unbound, an atom, or a number. - - -*/ -EOF -sed -e "314r tmp" /Users/vsc/git/yap-6.3/pl/utils.yap > x - mv x /Users/vsc/git/yap-6.3/pl/utils.yap - -#false -cat << "EOF" > tmp -/** @pred callable( _T_) is iso - - -Checks whether _T_ is a callable term, that is, an atom or a -compound term. - - -*/ -EOF -sed -e "304r tmp" /Users/vsc/git/yap-6.3/pl/utils.yap > x - mv x /Users/vsc/git/yap-6.3/pl/utils.yap - -#false -cat << "EOF" > tmp -/** @pred recordzifnot(+ _K_, _T_,- _R_) - - -If a term equal to _T_ up to variable renaming is stored under key - _K_ fail. Otherwise, make term _T_ the first record under key - _K_ and unify _R_ with its reference. - -This predicate is YAP specific. - - -*/ -EOF -sed -e "288r tmp" /Users/vsc/git/yap-6.3/pl/utils.yap > x - mv x /Users/vsc/git/yap-6.3/pl/utils.yap - -#false -cat << "EOF" > tmp -/** @pred recordaifnot(+ _K_, _T_,- _R_) - - -If a term equal to _T_ up to variable renaming is stored under key - _K_ fail. Otherwise, make term _T_ the first record under key - _K_ and unify _R_ with its reference. - - -*/ -EOF -sed -e "269r tmp" /Users/vsc/git/yap-6.3/pl/utils.yap > x - mv x /Users/vsc/git/yap-6.3/pl/utils.yap - -#false -cat << "EOF" > tmp -/** @pred current_op( _P_, _T_, _F_) is iso - - -Defines the relation: _P_ is a currently defined operator of type - _T_ and precedence _P_. - - -*/ -EOF -sed -e "169r tmp" /Users/vsc/git/yap-6.3/pl/utils.yap > x - mv x /Users/vsc/git/yap-6.3/pl/utils.yap - -#false -cat << "EOF" > tmp -/** @pred op(+ _P_,+ _T_,+ _A_) is iso - - -Defines the operator _A_ or the list of operators _A_ with type - _T_ (which must be one of `xfx`, `xfy`,`yfx`, -`xf`, `yf`, `fx` or `fy`) and precedence _P_ -(see appendix iv for a list of predefined operators). - -Note that if there is a preexisting operator with the same name and -type, this operator will be discarded. Also, `,` may not be defined -as an operator, and it is not allowed to have the same for an infix and -a postfix operator. - - -*/ -EOF -sed -e "49r tmp" /Users/vsc/git/yap-6.3/pl/utils.yap > x - mv x /Users/vsc/git/yap-6.3/pl/utils.yap - -#false -cat << "EOF" > tmp -/** @pred stream_position_data(+ _Field_,+ _StreamPosition_,- _Info_) - - -Given the packaged stream position term _StreamPosition_, unify - _Info_ with _Field_ `line_count`, `byte_count`, or -`char_count`. - - - - - */ -EOF -sed -e "550r tmp" /Users/vsc/git/yap-6.3/pl/yio.yap > x - mv x /Users/vsc/git/yap-6.3/pl/yio.yap - -#true -cat << "EOF" > tmp -/** @pred current_stream( _F_, _M_, _S_) - - -Defines the relation: The stream _S_ is opened on the file _F_ -in mode _M_. It might be used to obtain all open streams (by -backtracking) or to access the stream for a file _F_ in mode - _M_, or to find properties for a stream _S_. Notice that some -streams might not be associated to a file: in this case YAP tries to -return the file number. If that is not available, YAP unifies _F_ -with _S_. - - -*/ -EOF -sed -e "489r tmp" /Users/vsc/git/yap-6.3/pl/yio.yap > x - mv x /Users/vsc/git/yap-6.3/pl/yio.yap - -#false -cat << "EOF" > tmp -/** @pred current_char_conversion(? _IN_,? _OUT_) is iso - - -If _IN_ is unbound give all current character -translations. Otherwise, give the translation for _IN_, if one -exists. - - -*/ -EOF -sed -e "463r tmp" /Users/vsc/git/yap-6.3/pl/yio.yap > x - mv x /Users/vsc/git/yap-6.3/pl/yio.yap - -#false -cat << "EOF" > tmp -/** @pred stream_position(+ _Stream_,- _StreamPosition_) - - -Unify _StreamPosition_ with the packaged information of position on -current stream _Stream_. Use stream_position_data/3 to -retrieve information on character or line count. - - -*/ -EOF -sed -e "423r tmp" /Users/vsc/git/yap-6.3/pl/yio.yap > x - mv x /Users/vsc/git/yap-6.3/pl/yio.yap - -#false -cat << "EOF" > tmp -/** @pred current_line_number(+ _Stream_,- _LineNumber_) - -Unify _LineNumber_ with the line number for the _Stream_. - - -*/ -EOF -sed -e "413r tmp" /Users/vsc/git/yap-6.3/pl/yio.yap > x - mv x /Users/vsc/git/yap-6.3/pl/yio.yap - -#false -cat << "EOF" > tmp -/** @pred ttynl - - -Outputs a new line to stream user_output. - - - - - */ -EOF -sed -e "392r tmp" /Users/vsc/git/yap-6.3/pl/yio.yap > x - mv x /Users/vsc/git/yap-6.3/pl/yio.yap - -#false -cat << "EOF" > tmp -/** @pred ttyput(+ _N_) - - -As `put(N)` but always to user_output. - - -*/ -EOF -sed -e "384r tmp" /Users/vsc/git/yap-6.3/pl/yio.yap > x - mv x /Users/vsc/git/yap-6.3/pl/yio.yap - -#false -cat << "EOF" > tmp -/** @pred ttyskip(- _C_) - - -Like skip/1, but always using stream user_input. -stream. - - -*/ -EOF -sed -e "375r tmp" /Users/vsc/git/yap-6.3/pl/yio.yap > x - mv x /Users/vsc/git/yap-6.3/pl/yio.yap - -#false -cat << "EOF" > tmp -/** @pred ttyget0(- _C_) - - -The same as `get0(C)`, but from stream user_input. - - -*/ -EOF -sed -e "365r tmp" /Users/vsc/git/yap-6.3/pl/yio.yap > x - mv x /Users/vsc/git/yap-6.3/pl/yio.yap - -#false -cat << "EOF" > tmp -/** @pred ttyget(- _C_) - - -The same as `get(C)`, but from stream user_input. - - -*/ -EOF -sed -e "356r tmp" /Users/vsc/git/yap-6.3/pl/yio.yap > x - mv x /Users/vsc/git/yap-6.3/pl/yio.yap - -#false -cat << "EOF" > tmp -/** @pred format(+ _T_) - -Print formatted output to the current output stream. - - -*/ -EOF -sed -e "339r tmp" /Users/vsc/git/yap-6.3/pl/yio.yap > x - mv x /Users/vsc/git/yap-6.3/pl/yio.yap - -#false -cat << "EOF" > tmp -/** @pred display(+ _S_, _T_) - -Like display/1, but using stream _S_ to display the term. - - -*/ -EOF -sed -e "318r tmp" /Users/vsc/git/yap-6.3/pl/yio.yap > x - mv x /Users/vsc/git/yap-6.3/pl/yio.yap - -#true -cat << "EOF" > tmp -/** @pred display(+ _T_) - - -Displays term _T_ on the current output stream. All Prolog terms are -written in standard parenthesized prefix notation. - - -*/ -EOF -sed -e "308r tmp" /Users/vsc/git/yap-6.3/pl/yio.yap > x - mv x /Users/vsc/git/yap-6.3/pl/yio.yap - -#false -cat << "EOF" > tmp -/** @pred read(+ _S_,- _T_) is iso - -Reads term _T_ from the stream _S_ instead of from the current input -stream. - - -*/ -EOF -sed -e "283r tmp" /Users/vsc/git/yap-6.3/pl/yio.yap > x - mv x /Users/vsc/git/yap-6.3/pl/yio.yap - -#false -cat << "EOF" > tmp -/** @pred read(- _T_) is iso - - -Reads the next term from the current input stream, and unifies it with - _T_. The term must be followed by a dot (`.`) and any blank-character -as previously defined. The syntax of the term must match the current -declarations for operators (see op). If the end-of-stream is reached, - _T_ is unified with the atom `end_of_file`. Further reads from of -the same stream may cause an error failure (see open/3). - -*/ -EOF -sed -e "273r tmp" /Users/vsc/git/yap-6.3/pl/yio.yap > x - mv x /Users/vsc/git/yap-6.3/pl/yio.yap - -#false -cat << "EOF" > tmp -/** @pred exists(+ _F_) - - -Checks if file _F_ exists in the current directory. - -*/ -EOF -sed -e "255r tmp" /Users/vsc/git/yap-6.3/pl/yio.yap > x - mv x /Users/vsc/git/yap-6.3/pl/yio.yap - -#false -cat << "EOF" > tmp -/** @pred nofileerrors - - -Switches off the file_errors flag, so that the predicates see/1, -tell/1, open/3 and close/1 just fail, instead of producing -an error message and aborting whenever the specified file cannot be -opened or closed. - -*/ -EOF -sed -e "248r tmp" /Users/vsc/git/yap-6.3/pl/yio.yap > x - mv x /Users/vsc/git/yap-6.3/pl/yio.yap - -#false -cat << "EOF" > tmp -/** @pred fileerrors - - -Switches on the file_errors flag so that in certain error conditions -Input/Output predicates will produce an appropriated message and abort. - - */ -EOF -sed -e "238r tmp" /Users/vsc/git/yap-6.3/pl/yio.yap > x - mv x /Users/vsc/git/yap-6.3/pl/yio.yap - -#false -cat << "EOF" > tmp -/** @pred socket_connect(+ _SOCKET_, + _PORT_, - _STREAM_) - - - -Interface to system call `connect`, used for clients: connect -socket _SOCKET_ to _PORT_. The connection results in the -read/write stream _STREAM_. - -Port information depends on the domain: - -+ 'AF_UNIX'(+ _FILENAME_) -+ 'AF_FILE'(+ _FILENAME_) -connect to socket at file _FILENAME_. - -+ 'AF_INET'(+ _HOST_,+ _PORT_) -Connect to socket at host _HOST_ and port _PORT_. - - - -*/ -EOF -sed -e "201r tmp" /Users/vsc/git/yap-6.3/pl/yio.yap > x - mv x /Users/vsc/git/yap-6.3/pl/yio.yap - -#false -cat << "EOF" > tmp -/** @pred socket(+ _DOMAIN_,+ _TYPE_,+ _PROTOCOL_,- _SOCKET_) - - -Corresponds to the BSD system call `socket`. Create a socket for -domain _DOMAIN_ of type _TYPE_ and protocol - _PROTOCOL_. Both _DOMAIN_ and _TYPE_ should be atoms, -whereas _PROTOCOL_ must be an integer. -The new socket object is -accessible through a descriptor bound to the variable _SOCKET_. - -The current implementation of YAP accepts socket -domains `AF_INET` and `AF_UNIX`. -Socket types depend on the -underlying operating system, but at least the following types are -supported: `SOCK_STREAM'` and `SOCK_DGRAM'` (untested in 6.3). - - -*/ -EOF -sed -e "171r tmp" /Users/vsc/git/yap-6.3/pl/yio.yap > x - mv x /Users/vsc/git/yap-6.3/pl/yio.yap - -#false -cat << "EOF" > tmp -/** @pred socket(+ _DOMAIN_,- _SOCKET_) - - -Call socket/4 with _TYPE_ bound to `SOCK_STREAM'` and - _PROTOCOL_ bound to `0`. - - -*/ -EOF -sed -e "144r tmp" /Users/vsc/git/yap-6.3/pl/yio.yap > x - mv x /Users/vsc/git/yap-6.3/pl/yio.yap - -#false -cat << "EOF" > tmp -/** @pred free_variables(:Generator, + _Template_, +VarList0, -VarList) is det - - -In order to handle variables properly, we have to find all the universally quantified variables in the Generator. All variables as yet unbound are universally quantified, unless - -+ they occur in the template -+ they are bound by X/\P, setof, or bagof - -`free_variables(Generator, Template, OldList, NewList)` finds this set, using OldList as an accumulator. - - -The original author of this code was Richard O'Keefe. Jan Wielemaker -made some SWI-Prolog enhancements, sponsored by SecuritEase, -http://www.securitease.com. The code is public domain (from DEC10 library). - - - */ -EOF -sed -e "31r tmp" /Users/vsc/git/yap-6.3/swi/library/aggregate.pl > x - mv x /Users/vsc/git/yap-6.3/swi/library/aggregate.pl - -#false -cat << "EOF" > tmp -/** @pred aggregate_all(+ _Template_, : _Goal_, - _Result_) is semidet - - -Aggregate bindings in _Goal_ according to _Template_. The -aggregate_all/3 version performs findall/3 on _Goal_. - -*/ -EOF -sed -e "31r tmp" /Users/vsc/git/yap-6.3/swi/library/aggregate.pl > x - mv x /Users/vsc/git/yap-6.3/swi/library/aggregate.pl - -#false -cat << "EOF" > tmp -/** @pred aggregate_all(+ _Template_, + _Discriminator_, : _Goal_, - _Result_) is semidet - -Aggregate bindings in _Goal_ according to _Template_. The -aggregate_all/3 version performs findall/3 followed by sort/2 on - _Goal_. - -*/ -EOF -sed -e "31r tmp" /Users/vsc/git/yap-6.3/swi/library/aggregate.pl > x - mv x /Users/vsc/git/yap-6.3/swi/library/aggregate.pl - -#false -cat << "EOF" > tmp -/** @pred read_stream_to_codes(+ _Stream_, - _Codes_, ? _Tail_) - -Difference-list version of read_stream_to_codes/2. - - -*/ -EOF -sed -e "31r tmp" /Users/vsc/git/yap-6.3/swi/library/readutil.pl > x - mv x /Users/vsc/git/yap-6.3/swi/library/readutil.pl - -#false -cat << "EOF" > tmp -/** @pred read_stream_to_codes(+ _Stream_, - _Codes_) - - -Read all input until end-of-file and unify the result to _Codes_. - - -*/ -EOF -sed -e "31r tmp" /Users/vsc/git/yap-6.3/swi/library/readutil.pl > x - mv x /Users/vsc/git/yap-6.3/swi/library/readutil.pl - -#false -cat << "EOF" > tmp -/** @pred read_line_to_codes(+ _Stream_, - _Codes_, ? _Tail_) - -Difference-list version to read an input line to a list of character -codes. Reading stops at the newline or end-of-file character, but -unlike read_line_to_codes/2, the newline is retained in the -output. This predicate is especially useful for reading a block of -lines upto some delimiter. The following example reads an HTTP header -ended by a blank line: - -~~~~~ -read_header_data(Stream, Header) :- - read_line_to_codes(Stream, Header, Tail), - read_header_data(Header, Stream, Tail). - -read_header_data("\r\n", _, _) :- !. -read_header_data("\n", _, _) :- !. -read_header_data("", _, _) :- !. -read_header_data(_, Stream, Tail) :- - read_line_to_codes(Stream, Tail, NewTail), - read_header_data(Tail, Stream, NewTail). -~~~~~ - - -*/ -EOF -sed -e "31r tmp" /Users/vsc/git/yap-6.3/swi/library/readutil.pl > x - mv x /Users/vsc/git/yap-6.3/swi/library/readutil.pl - -#false -cat << "EOF" > tmp -/** @pred read_line_to_codes(+ _Stream_, - _Codes_) - - - -Read the next line of input from _Stream_ and unify the result with - _Codes_ after the line has been read. A line is ended by a -newline character or end-of-file. Unlike `read_line_to_codes/3`, -this predicate removes trailing newline character. - -On end-of-file the atom `end_of_file` is returned. See also -`at_end_of_stream/[0,1]`. - - -*/ -EOF -sed -e "31r tmp" /Users/vsc/git/yap-6.3/swi/library/readutil.pl > x - mv x /Users/vsc/git/yap-6.3/swi/library/readutil.pl - -#false -cat << "EOF" > tmp -/** @pred read_file_to_terms(+ _Spec_, - _Terms_, + _Options_) - - -Read a file to a list of Prolog terms (see read/1). @c _Spec_ is a - - - - - - - - - - */ -EOF -sed -e "31r tmp" /Users/vsc/git/yap-6.3/swi/library/readutil.pl > x - mv x /Users/vsc/git/yap-6.3/swi/library/readutil.pl - -#false -cat << "EOF" > tmp -/** @pred read_file_to_codes(+ _Spec_, - _Codes_, + _Options_) - - -Read a file to a list of character codes. Currently ignores - _Options_. - - -*/ -EOF -sed -e "31r tmp" /Users/vsc/git/yap-6.3/swi/library/readutil.pl > x - mv x /Users/vsc/git/yap-6.3/swi/library/readutil.pl - -#false -cat << "EOF" > tmp -/** @pred use_foreign_library(+ _FileSpec_) is det - use_foreign_library(+ _FileSpec_, + _Entry_:atom) is det - - - -Load and install a foreign library as load_foreign_library/1 -and `load_foreign_library/2` and -register the installation using `initialization/2` with the option -now. This is similar to using: - -~~~~~ - :- initialization(load_foreign_library(foreign(mylib))). -~~~~~ - -but using the initialization/1 wrapper causes the library to -be loaded after loading of the file in which it appears is -completed, while use_foreign_library/1 loads the library -immediately. I.e. the difference is only relevant if the remainder -of the file uses functionality of the `C`-library. - - -*/ -EOF -sed -e "31r tmp" /Users/vsc/git/yap-6.3/swi/library/shlib.pl > x - mv x /Users/vsc/git/yap-6.3/swi/library/shlib.pl - -#false -cat << "EOF" > tmp -/** @pred unload_foreign_library(+ _FileSpec_, + _Exit_:atom) is det - - - - -Unload a shared -object or DLL. After calling the _Exit_ function, the shared object is -removed from the process. The default exit function is composed from -`uninstall_`, followed by the file base-name. - - -*/ -EOF -sed -e "31r tmp" /Users/vsc/git/yap-6.3/swi/library/shlib.pl > x - mv x /Users/vsc/git/yap-6.3/swi/library/shlib.pl - -#false -cat << "EOF" > tmp -/** @pred unload_foreign_library(+ _FileSpec_) is det - -*/ -EOF -sed -e "31r tmp" /Users/vsc/git/yap-6.3/swi/library/shlib.pl > x - mv x /Users/vsc/git/yap-6.3/swi/library/shlib.pl - -#false -cat << "EOF" > tmp -/** @pred load_foreign_library(: _FileSpec_, + _Entry_:atom) is det - -Load a shared object or DLL. After loading the _Entry_ function is -called without arguments. The default entry function is composed -from `install_`, followed by the file base-name. E.g., the -load-call below calls the function `install_mylib()`. If the platform -prefixes extern functions with `_`, this prefix is added before -calling. - -~~~~~ - ... - load_foreign_library(foreign(mylib)), - ... -~~~~~ - - _FileSpec_ is a specification for -absolute_file_name/3. If searching the file fails, the plain -name is passed to the OS to try the default method of the OS for -locating foreign objects. The default definition of -file_search_path/2 searches /lib/Yap. - -See also -`use_foreign_library/1,2` are intended for use in -directives. - - -*/ -EOF -sed -e "31r tmp" /Users/vsc/git/yap-6.3/swi/library/shlib.pl > x - mv x /Users/vsc/git/yap-6.3/swi/library/shlib.pl - -#false -cat << "EOF" > tmp -/** @pred load_foreign_library(: _FileSpec_) is det - - - -*/ -EOF -sed -e "31r tmp" /Users/vsc/git/yap-6.3/swi/library/shlib.pl > x - mv x /Users/vsc/git/yap-6.3/swi/library/shlib.pl - -#false -cat << "EOF" > tmp -/** @pred current_foreign_library(? _File_, ? _Public_) - - - -Query currently -loaded shared libraries. - - - - - */ -EOF -sed -e "31r tmp" /Users/vsc/git/yap-6.3/swi/library/shlib.pl > x - mv x /Users/vsc/git/yap-6.3/swi/library/shlib.pl - diff --git a/compile_commands.json b/compile_commands.json deleted file mode 100644 index b26151953..000000000 --- a/compile_commands.json +++ /dev/null @@ -1,892 +0,0 @@ -[ -{ - "directory": "/Users/vsc/git/yap-6.3", - "command": "/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/cc -DCOROUTINING=1 -DDEPTH_LIMIT=1 -DGNU_SOURCE=1 -DHAVE_CONFIG_H -DRATIONAL_TREES=1 -DTABLING=1 -DTHREADEAD_CODE=1 -DYAP_JIT=1 -D_XOPEN_SOURCE=700 -D_YAP_NOT_INSTALLED_=1 -DlibYap_EXPORTS -fPIC -I/Users/vsc/git/yap-6.3 -I/Users/vsc/git/yap-6.3/H -I/Users/vsc/git/yap-6.3/include -I/Users/vsc/git/yap-6.3/os -I/Users/vsc/git/yap-6.3/OPTYap -I/usr/local/include -I/usr/local/opt/readline/include -I/Users/vsc/git/yap-6.3/JIT -I/Users/vsc/git/yap-6.3/JIT/HPP -Wall -Wstrict-prototypes -Wmissing-prototypes -fexceptions -o CMakeFiles/libYap.dir/C/absmi.c.o -c /Users/vsc/git/yap-6.3/C/absmi.c", - "file": "/Users/vsc/git/yap-6.3/C/absmi.c" -}, -{ - "directory": "/Users/vsc/git/yap-6.3", - "command": "/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/cc -DCOROUTINING=1 -DDEPTH_LIMIT=1 -DGNU_SOURCE=1 -DHAVE_CONFIG_H -DRATIONAL_TREES=1 -DTABLING=1 -DTHREADEAD_CODE=1 -DYAP_JIT=1 -D_XOPEN_SOURCE=700 -D_YAP_NOT_INSTALLED_=1 -DlibYap_EXPORTS -fPIC -I/Users/vsc/git/yap-6.3 -I/Users/vsc/git/yap-6.3/H -I/Users/vsc/git/yap-6.3/include -I/Users/vsc/git/yap-6.3/os -I/Users/vsc/git/yap-6.3/OPTYap -I/usr/local/include -I/usr/local/opt/readline/include -I/Users/vsc/git/yap-6.3/JIT -I/Users/vsc/git/yap-6.3/JIT/HPP -Wall -Wstrict-prototypes -Wmissing-prototypes -fexceptions -o CMakeFiles/libYap.dir/C/agc.c.o -c /Users/vsc/git/yap-6.3/C/agc.c", - "file": "/Users/vsc/git/yap-6.3/C/agc.c" -}, -{ - "directory": "/Users/vsc/git/yap-6.3", - "command": "/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/cc -DCOROUTINING=1 -DDEPTH_LIMIT=1 -DGNU_SOURCE=1 -DHAVE_CONFIG_H -DRATIONAL_TREES=1 -DTABLING=1 -DTHREADEAD_CODE=1 -DYAP_JIT=1 -D_XOPEN_SOURCE=700 -D_YAP_NOT_INSTALLED_=1 -DlibYap_EXPORTS -fPIC -I/Users/vsc/git/yap-6.3 -I/Users/vsc/git/yap-6.3/H -I/Users/vsc/git/yap-6.3/include -I/Users/vsc/git/yap-6.3/os -I/Users/vsc/git/yap-6.3/OPTYap -I/usr/local/include -I/usr/local/opt/readline/include -I/Users/vsc/git/yap-6.3/JIT -I/Users/vsc/git/yap-6.3/JIT/HPP -Wall -Wstrict-prototypes -Wmissing-prototypes -fexceptions -o CMakeFiles/libYap.dir/C/adtdefs.c.o -c /Users/vsc/git/yap-6.3/C/adtdefs.c", - "file": "/Users/vsc/git/yap-6.3/C/adtdefs.c" -}, -{ - "directory": "/Users/vsc/git/yap-6.3", - "command": "/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/cc -DCOROUTINING=1 -DDEPTH_LIMIT=1 -DGNU_SOURCE=1 -DHAVE_CONFIG_H -DRATIONAL_TREES=1 -DTABLING=1 -DTHREADEAD_CODE=1 -DYAP_JIT=1 -D_XOPEN_SOURCE=700 -D_YAP_NOT_INSTALLED_=1 -DlibYap_EXPORTS -fPIC -I/Users/vsc/git/yap-6.3 -I/Users/vsc/git/yap-6.3/H -I/Users/vsc/git/yap-6.3/include -I/Users/vsc/git/yap-6.3/os -I/Users/vsc/git/yap-6.3/OPTYap -I/usr/local/include -I/usr/local/opt/readline/include -I/Users/vsc/git/yap-6.3/JIT -I/Users/vsc/git/yap-6.3/JIT/HPP -Wall -Wstrict-prototypes -Wmissing-prototypes -fexceptions -o CMakeFiles/libYap.dir/C/alloc.c.o -c /Users/vsc/git/yap-6.3/C/alloc.c", - "file": "/Users/vsc/git/yap-6.3/C/alloc.c" -}, -{ - "directory": "/Users/vsc/git/yap-6.3", - "command": "/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/cc -DCOROUTINING=1 -DDEPTH_LIMIT=1 -DGNU_SOURCE=1 -DHAVE_CONFIG_H -DRATIONAL_TREES=1 -DTABLING=1 -DTHREADEAD_CODE=1 -DYAP_JIT=1 -D_XOPEN_SOURCE=700 -D_YAP_NOT_INSTALLED_=1 -DlibYap_EXPORTS -fPIC -I/Users/vsc/git/yap-6.3 -I/Users/vsc/git/yap-6.3/H -I/Users/vsc/git/yap-6.3/include -I/Users/vsc/git/yap-6.3/os -I/Users/vsc/git/yap-6.3/OPTYap -I/usr/local/include -I/usr/local/opt/readline/include -I/Users/vsc/git/yap-6.3/JIT -I/Users/vsc/git/yap-6.3/JIT/HPP -Wall -Wstrict-prototypes -Wmissing-prototypes -fexceptions -o CMakeFiles/libYap.dir/C/amasm.c.o -c /Users/vsc/git/yap-6.3/C/amasm.c", - "file": "/Users/vsc/git/yap-6.3/C/amasm.c" -}, -{ - "directory": "/Users/vsc/git/yap-6.3", - "command": "/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/cc -DCOROUTINING=1 -DDEPTH_LIMIT=1 -DGNU_SOURCE=1 -DHAVE_CONFIG_H -DRATIONAL_TREES=1 -DTABLING=1 -DTHREADEAD_CODE=1 -DYAP_JIT=1 -D_XOPEN_SOURCE=700 -D_YAP_NOT_INSTALLED_=1 -DlibYap_EXPORTS -fPIC -I/Users/vsc/git/yap-6.3 -I/Users/vsc/git/yap-6.3/H -I/Users/vsc/git/yap-6.3/include -I/Users/vsc/git/yap-6.3/os -I/Users/vsc/git/yap-6.3/OPTYap -I/usr/local/include -I/usr/local/opt/readline/include -I/Users/vsc/git/yap-6.3/JIT -I/Users/vsc/git/yap-6.3/JIT/HPP -Wall -Wstrict-prototypes -Wmissing-prototypes -fexceptions -o CMakeFiles/libYap.dir/C/analyst.c.o -c /Users/vsc/git/yap-6.3/C/analyst.c", - "file": "/Users/vsc/git/yap-6.3/C/analyst.c" -}, -{ - "directory": "/Users/vsc/git/yap-6.3", - "command": "/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/cc -DCOROUTINING=1 -DDEPTH_LIMIT=1 -DGNU_SOURCE=1 -DHAVE_CONFIG_H -DRATIONAL_TREES=1 -DTABLING=1 -DTHREADEAD_CODE=1 -DYAP_JIT=1 -D_XOPEN_SOURCE=700 -D_YAP_NOT_INSTALLED_=1 -DlibYap_EXPORTS -fPIC -I/Users/vsc/git/yap-6.3 -I/Users/vsc/git/yap-6.3/H -I/Users/vsc/git/yap-6.3/include -I/Users/vsc/git/yap-6.3/os -I/Users/vsc/git/yap-6.3/OPTYap -I/usr/local/include -I/usr/local/opt/readline/include -I/Users/vsc/git/yap-6.3/JIT -I/Users/vsc/git/yap-6.3/JIT/HPP -Wall -Wstrict-prototypes -Wmissing-prototypes -fexceptions -o CMakeFiles/libYap.dir/C/arrays.c.o -c /Users/vsc/git/yap-6.3/C/arrays.c", - "file": "/Users/vsc/git/yap-6.3/C/arrays.c" -}, -{ - "directory": "/Users/vsc/git/yap-6.3", - "command": "/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/cc -DCOROUTINING=1 -DDEPTH_LIMIT=1 -DGNU_SOURCE=1 -DHAVE_CONFIG_H -DRATIONAL_TREES=1 -DTABLING=1 -DTHREADEAD_CODE=1 -DYAP_JIT=1 -D_XOPEN_SOURCE=700 -D_YAP_NOT_INSTALLED_=1 -DlibYap_EXPORTS -fPIC -I/Users/vsc/git/yap-6.3 -I/Users/vsc/git/yap-6.3/H -I/Users/vsc/git/yap-6.3/include -I/Users/vsc/git/yap-6.3/os -I/Users/vsc/git/yap-6.3/OPTYap -I/usr/local/include -I/usr/local/opt/readline/include -I/Users/vsc/git/yap-6.3/JIT -I/Users/vsc/git/yap-6.3/JIT/HPP -Wall -Wstrict-prototypes -Wmissing-prototypes -fexceptions -o CMakeFiles/libYap.dir/C/arith0.c.o -c /Users/vsc/git/yap-6.3/C/arith0.c", - "file": "/Users/vsc/git/yap-6.3/C/arith0.c" -}, -{ - "directory": "/Users/vsc/git/yap-6.3", - "command": "/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/cc -DCOROUTINING=1 -DDEPTH_LIMIT=1 -DGNU_SOURCE=1 -DHAVE_CONFIG_H -DRATIONAL_TREES=1 -DTABLING=1 -DTHREADEAD_CODE=1 -DYAP_JIT=1 -D_XOPEN_SOURCE=700 -D_YAP_NOT_INSTALLED_=1 -DlibYap_EXPORTS -fPIC -I/Users/vsc/git/yap-6.3 -I/Users/vsc/git/yap-6.3/H -I/Users/vsc/git/yap-6.3/include -I/Users/vsc/git/yap-6.3/os -I/Users/vsc/git/yap-6.3/OPTYap -I/usr/local/include -I/usr/local/opt/readline/include -I/Users/vsc/git/yap-6.3/JIT -I/Users/vsc/git/yap-6.3/JIT/HPP -Wall -Wstrict-prototypes -Wmissing-prototypes -fexceptions -o CMakeFiles/libYap.dir/C/arith1.c.o -c /Users/vsc/git/yap-6.3/C/arith1.c", - "file": "/Users/vsc/git/yap-6.3/C/arith1.c" -}, -{ - "directory": "/Users/vsc/git/yap-6.3", - "command": "/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/cc -DCOROUTINING=1 -DDEPTH_LIMIT=1 -DGNU_SOURCE=1 -DHAVE_CONFIG_H -DRATIONAL_TREES=1 -DTABLING=1 -DTHREADEAD_CODE=1 -DYAP_JIT=1 -D_XOPEN_SOURCE=700 -D_YAP_NOT_INSTALLED_=1 -DlibYap_EXPORTS -fPIC -I/Users/vsc/git/yap-6.3 -I/Users/vsc/git/yap-6.3/H -I/Users/vsc/git/yap-6.3/include -I/Users/vsc/git/yap-6.3/os -I/Users/vsc/git/yap-6.3/OPTYap -I/usr/local/include -I/usr/local/opt/readline/include -I/Users/vsc/git/yap-6.3/JIT -I/Users/vsc/git/yap-6.3/JIT/HPP -Wall -Wstrict-prototypes -Wmissing-prototypes -fexceptions -o CMakeFiles/libYap.dir/C/arith2.c.o -c /Users/vsc/git/yap-6.3/C/arith2.c", - "file": "/Users/vsc/git/yap-6.3/C/arith2.c" -}, -{ - "directory": "/Users/vsc/git/yap-6.3", - "command": "/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/cc -DCOROUTINING=1 -DDEPTH_LIMIT=1 -DGNU_SOURCE=1 -DHAVE_CONFIG_H -DRATIONAL_TREES=1 -DTABLING=1 -DTHREADEAD_CODE=1 -DYAP_JIT=1 -D_XOPEN_SOURCE=700 -D_YAP_NOT_INSTALLED_=1 -DlibYap_EXPORTS -fPIC -I/Users/vsc/git/yap-6.3 -I/Users/vsc/git/yap-6.3/H -I/Users/vsc/git/yap-6.3/include -I/Users/vsc/git/yap-6.3/os -I/Users/vsc/git/yap-6.3/OPTYap -I/usr/local/include -I/usr/local/opt/readline/include -I/Users/vsc/git/yap-6.3/JIT -I/Users/vsc/git/yap-6.3/JIT/HPP -Wall -Wstrict-prototypes -Wmissing-prototypes -fexceptions -o CMakeFiles/libYap.dir/C/atomic.c.o -c /Users/vsc/git/yap-6.3/C/atomic.c", - "file": "/Users/vsc/git/yap-6.3/C/atomic.c" -}, -{ - "directory": "/Users/vsc/git/yap-6.3", - "command": "/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/cc -DCOROUTINING=1 -DDEPTH_LIMIT=1 -DGNU_SOURCE=1 -DHAVE_CONFIG_H -DRATIONAL_TREES=1 -DTABLING=1 -DTHREADEAD_CODE=1 -DYAP_JIT=1 -D_XOPEN_SOURCE=700 -D_YAP_NOT_INSTALLED_=1 -DlibYap_EXPORTS -fPIC -I/Users/vsc/git/yap-6.3 -I/Users/vsc/git/yap-6.3/H -I/Users/vsc/git/yap-6.3/include -I/Users/vsc/git/yap-6.3/os -I/Users/vsc/git/yap-6.3/OPTYap -I/usr/local/include -I/usr/local/opt/readline/include -I/Users/vsc/git/yap-6.3/JIT -I/Users/vsc/git/yap-6.3/JIT/HPP -Wall -Wstrict-prototypes -Wmissing-prototypes -fexceptions -o CMakeFiles/libYap.dir/C/attvar.c.o -c /Users/vsc/git/yap-6.3/C/attvar.c", - "file": "/Users/vsc/git/yap-6.3/C/attvar.c" -}, -{ - "directory": "/Users/vsc/git/yap-6.3", - "command": "/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/cc -DCOROUTINING=1 -DDEPTH_LIMIT=1 -DGNU_SOURCE=1 -DHAVE_CONFIG_H -DRATIONAL_TREES=1 -DTABLING=1 -DTHREADEAD_CODE=1 -DYAP_JIT=1 -D_XOPEN_SOURCE=700 -D_YAP_NOT_INSTALLED_=1 -DlibYap_EXPORTS -fPIC -I/Users/vsc/git/yap-6.3 -I/Users/vsc/git/yap-6.3/H -I/Users/vsc/git/yap-6.3/include -I/Users/vsc/git/yap-6.3/os -I/Users/vsc/git/yap-6.3/OPTYap -I/usr/local/include -I/usr/local/opt/readline/include -I/Users/vsc/git/yap-6.3/JIT -I/Users/vsc/git/yap-6.3/JIT/HPP -Wall -Wstrict-prototypes -Wmissing-prototypes -fexceptions -o CMakeFiles/libYap.dir/C/bignum.c.o -c /Users/vsc/git/yap-6.3/C/bignum.c", - "file": "/Users/vsc/git/yap-6.3/C/bignum.c" -}, -{ - "directory": "/Users/vsc/git/yap-6.3", - "command": "/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/cc -DCOROUTINING=1 -DDEPTH_LIMIT=1 -DGNU_SOURCE=1 -DHAVE_CONFIG_H -DRATIONAL_TREES=1 -DTABLING=1 -DTHREADEAD_CODE=1 -DYAP_JIT=1 -D_XOPEN_SOURCE=700 -D_YAP_NOT_INSTALLED_=1 -DlibYap_EXPORTS -fPIC -I/Users/vsc/git/yap-6.3 -I/Users/vsc/git/yap-6.3/H -I/Users/vsc/git/yap-6.3/include -I/Users/vsc/git/yap-6.3/os -I/Users/vsc/git/yap-6.3/OPTYap -I/usr/local/include -I/usr/local/opt/readline/include -I/Users/vsc/git/yap-6.3/JIT -I/Users/vsc/git/yap-6.3/JIT/HPP -Wall -Wstrict-prototypes -Wmissing-prototypes -fexceptions -o CMakeFiles/libYap.dir/C/bb.c.o -c /Users/vsc/git/yap-6.3/C/bb.c", - "file": "/Users/vsc/git/yap-6.3/C/bb.c" -}, -{ - "directory": "/Users/vsc/git/yap-6.3", - "command": "/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/cc -DCOROUTINING=1 -DDEPTH_LIMIT=1 -DGNU_SOURCE=1 -DHAVE_CONFIG_H -DRATIONAL_TREES=1 -DTABLING=1 -DTHREADEAD_CODE=1 -DYAP_JIT=1 -D_XOPEN_SOURCE=700 -D_YAP_NOT_INSTALLED_=1 -DlibYap_EXPORTS -fPIC -I/Users/vsc/git/yap-6.3 -I/Users/vsc/git/yap-6.3/H -I/Users/vsc/git/yap-6.3/include -I/Users/vsc/git/yap-6.3/os -I/Users/vsc/git/yap-6.3/OPTYap -I/usr/local/include -I/usr/local/opt/readline/include -I/Users/vsc/git/yap-6.3/JIT -I/Users/vsc/git/yap-6.3/JIT/HPP -Wall -Wstrict-prototypes -Wmissing-prototypes -fexceptions -o CMakeFiles/libYap.dir/C/cdmgr.c.o -c /Users/vsc/git/yap-6.3/C/cdmgr.c", - "file": "/Users/vsc/git/yap-6.3/C/cdmgr.c" -}, -{ - "directory": "/Users/vsc/git/yap-6.3", - "command": "/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/cc -DCOROUTINING=1 -DDEPTH_LIMIT=1 -DGNU_SOURCE=1 -DHAVE_CONFIG_H -DRATIONAL_TREES=1 -DTABLING=1 -DTHREADEAD_CODE=1 -DYAP_JIT=1 -D_XOPEN_SOURCE=700 -D_YAP_NOT_INSTALLED_=1 -DlibYap_EXPORTS -fPIC -I/Users/vsc/git/yap-6.3 -I/Users/vsc/git/yap-6.3/H -I/Users/vsc/git/yap-6.3/include -I/Users/vsc/git/yap-6.3/os -I/Users/vsc/git/yap-6.3/OPTYap -I/usr/local/include -I/usr/local/opt/readline/include -I/Users/vsc/git/yap-6.3/JIT -I/Users/vsc/git/yap-6.3/JIT/HPP -Wall -Wstrict-prototypes -Wmissing-prototypes -fexceptions -o CMakeFiles/libYap.dir/C/cmppreds.c.o -c /Users/vsc/git/yap-6.3/C/cmppreds.c", - "file": "/Users/vsc/git/yap-6.3/C/cmppreds.c" -}, -{ - "directory": "/Users/vsc/git/yap-6.3", - "command": "/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/cc -DCOROUTINING=1 -DDEPTH_LIMIT=1 -DGNU_SOURCE=1 -DHAVE_CONFIG_H -DRATIONAL_TREES=1 -DTABLING=1 -DTHREADEAD_CODE=1 -DYAP_JIT=1 -D_XOPEN_SOURCE=700 -D_YAP_NOT_INSTALLED_=1 -DlibYap_EXPORTS -fPIC -I/Users/vsc/git/yap-6.3 -I/Users/vsc/git/yap-6.3/H -I/Users/vsc/git/yap-6.3/include -I/Users/vsc/git/yap-6.3/os -I/Users/vsc/git/yap-6.3/OPTYap -I/usr/local/include -I/usr/local/opt/readline/include -I/Users/vsc/git/yap-6.3/JIT -I/Users/vsc/git/yap-6.3/JIT/HPP -Wall -Wstrict-prototypes -Wmissing-prototypes -fexceptions -o CMakeFiles/libYap.dir/C/compiler.c.o -c /Users/vsc/git/yap-6.3/C/compiler.c", - "file": "/Users/vsc/git/yap-6.3/C/compiler.c" -}, -{ - "directory": "/Users/vsc/git/yap-6.3", - "command": "/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/cc -DCOROUTINING=1 -DDEPTH_LIMIT=1 -DGNU_SOURCE=1 -DHAVE_CONFIG_H -DRATIONAL_TREES=1 -DTABLING=1 -DTHREADEAD_CODE=1 -DYAP_JIT=1 -D_XOPEN_SOURCE=700 -D_YAP_NOT_INSTALLED_=1 -DlibYap_EXPORTS -fPIC -I/Users/vsc/git/yap-6.3 -I/Users/vsc/git/yap-6.3/H -I/Users/vsc/git/yap-6.3/include -I/Users/vsc/git/yap-6.3/os -I/Users/vsc/git/yap-6.3/OPTYap -I/usr/local/include -I/usr/local/opt/readline/include -I/Users/vsc/git/yap-6.3/JIT -I/Users/vsc/git/yap-6.3/JIT/HPP -Wall -Wstrict-prototypes -Wmissing-prototypes -fexceptions -o CMakeFiles/libYap.dir/C/computils.c.o -c /Users/vsc/git/yap-6.3/C/computils.c", - "file": "/Users/vsc/git/yap-6.3/C/computils.c" -}, -{ - "directory": "/Users/vsc/git/yap-6.3", - "command": "/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/cc -DCOROUTINING=1 -DDEPTH_LIMIT=1 -DGNU_SOURCE=1 -DHAVE_CONFIG_H -DRATIONAL_TREES=1 -DTABLING=1 -DTHREADEAD_CODE=1 -DYAP_JIT=1 -D_XOPEN_SOURCE=700 -D_YAP_NOT_INSTALLED_=1 -DlibYap_EXPORTS -fPIC -I/Users/vsc/git/yap-6.3 -I/Users/vsc/git/yap-6.3/H -I/Users/vsc/git/yap-6.3/include -I/Users/vsc/git/yap-6.3/os -I/Users/vsc/git/yap-6.3/OPTYap -I/usr/local/include -I/usr/local/opt/readline/include -I/Users/vsc/git/yap-6.3/JIT -I/Users/vsc/git/yap-6.3/JIT/HPP -Wall -Wstrict-prototypes -Wmissing-prototypes -fexceptions -o CMakeFiles/libYap.dir/C/corout.c.o -c /Users/vsc/git/yap-6.3/C/corout.c", - "file": "/Users/vsc/git/yap-6.3/C/corout.c" -}, -{ - "directory": "/Users/vsc/git/yap-6.3", - "command": "/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/cc -DCOROUTINING=1 -DDEPTH_LIMIT=1 -DGNU_SOURCE=1 -DHAVE_CONFIG_H -DRATIONAL_TREES=1 -DTABLING=1 -DTHREADEAD_CODE=1 -DYAP_JIT=1 -D_XOPEN_SOURCE=700 -D_YAP_NOT_INSTALLED_=1 -DlibYap_EXPORTS -fPIC -I/Users/vsc/git/yap-6.3 -I/Users/vsc/git/yap-6.3/H -I/Users/vsc/git/yap-6.3/include -I/Users/vsc/git/yap-6.3/os -I/Users/vsc/git/yap-6.3/OPTYap -I/usr/local/include -I/usr/local/opt/readline/include -I/Users/vsc/git/yap-6.3/JIT -I/Users/vsc/git/yap-6.3/JIT/HPP -Wall -Wstrict-prototypes -Wmissing-prototypes -fexceptions -o CMakeFiles/libYap.dir/C/cut_c.c.o -c /Users/vsc/git/yap-6.3/C/cut_c.c", - "file": "/Users/vsc/git/yap-6.3/C/cut_c.c" -}, -{ - "directory": "/Users/vsc/git/yap-6.3", - "command": "/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/cc -DCOROUTINING=1 -DDEPTH_LIMIT=1 -DGNU_SOURCE=1 -DHAVE_CONFIG_H -DRATIONAL_TREES=1 -DTABLING=1 -DTHREADEAD_CODE=1 -DYAP_JIT=1 -D_XOPEN_SOURCE=700 -D_YAP_NOT_INSTALLED_=1 -DlibYap_EXPORTS -fPIC -I/Users/vsc/git/yap-6.3 -I/Users/vsc/git/yap-6.3/H -I/Users/vsc/git/yap-6.3/include -I/Users/vsc/git/yap-6.3/os -I/Users/vsc/git/yap-6.3/OPTYap -I/usr/local/include -I/usr/local/opt/readline/include -I/Users/vsc/git/yap-6.3/JIT -I/Users/vsc/git/yap-6.3/JIT/HPP -Wall -Wstrict-prototypes -Wmissing-prototypes -fexceptions -o CMakeFiles/libYap.dir/C/dbase.c.o -c /Users/vsc/git/yap-6.3/C/dbase.c", - "file": "/Users/vsc/git/yap-6.3/C/dbase.c" -}, -{ - "directory": "/Users/vsc/git/yap-6.3", - "command": "/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/cc -DCOROUTINING=1 -DDEPTH_LIMIT=1 -DGNU_SOURCE=1 -DHAVE_CONFIG_H -DRATIONAL_TREES=1 -DTABLING=1 -DTHREADEAD_CODE=1 -DYAP_JIT=1 -D_XOPEN_SOURCE=700 -D_YAP_NOT_INSTALLED_=1 -DlibYap_EXPORTS -fPIC -I/Users/vsc/git/yap-6.3 -I/Users/vsc/git/yap-6.3/H -I/Users/vsc/git/yap-6.3/include -I/Users/vsc/git/yap-6.3/os -I/Users/vsc/git/yap-6.3/OPTYap -I/usr/local/include -I/usr/local/opt/readline/include -I/Users/vsc/git/yap-6.3/JIT -I/Users/vsc/git/yap-6.3/JIT/HPP -Wall -Wstrict-prototypes -Wmissing-prototypes -fexceptions -o CMakeFiles/libYap.dir/C/dlmalloc.c.o -c /Users/vsc/git/yap-6.3/C/dlmalloc.c", - "file": "/Users/vsc/git/yap-6.3/C/dlmalloc.c" -}, -{ - "directory": "/Users/vsc/git/yap-6.3", - "command": "/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/cc -DCOROUTINING=1 -DDEPTH_LIMIT=1 -DGNU_SOURCE=1 -DHAVE_CONFIG_H -DRATIONAL_TREES=1 -DTABLING=1 -DTHREADEAD_CODE=1 -DYAP_JIT=1 -D_XOPEN_SOURCE=700 -D_YAP_NOT_INSTALLED_=1 -DlibYap_EXPORTS -fPIC -I/Users/vsc/git/yap-6.3 -I/Users/vsc/git/yap-6.3/H -I/Users/vsc/git/yap-6.3/include -I/Users/vsc/git/yap-6.3/os -I/Users/vsc/git/yap-6.3/OPTYap -I/usr/local/include -I/usr/local/opt/readline/include -I/Users/vsc/git/yap-6.3/JIT -I/Users/vsc/git/yap-6.3/JIT/HPP -Wall -Wstrict-prototypes -Wmissing-prototypes -fexceptions -o CMakeFiles/libYap.dir/C/errors.c.o -c /Users/vsc/git/yap-6.3/C/errors.c", - "file": "/Users/vsc/git/yap-6.3/C/errors.c" -}, -{ - "directory": "/Users/vsc/git/yap-6.3", - "command": "/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/cc -DCOROUTINING=1 -DDEPTH_LIMIT=1 -DGNU_SOURCE=1 -DHAVE_CONFIG_H -DRATIONAL_TREES=1 -DTABLING=1 -DTHREADEAD_CODE=1 -DYAP_JIT=1 -D_XOPEN_SOURCE=700 -D_YAP_NOT_INSTALLED_=1 -DlibYap_EXPORTS -fPIC -I/Users/vsc/git/yap-6.3 -I/Users/vsc/git/yap-6.3/H -I/Users/vsc/git/yap-6.3/include -I/Users/vsc/git/yap-6.3/os -I/Users/vsc/git/yap-6.3/OPTYap -I/usr/local/include -I/usr/local/opt/readline/include -I/Users/vsc/git/yap-6.3/JIT -I/Users/vsc/git/yap-6.3/JIT/HPP -Wall -Wstrict-prototypes -Wmissing-prototypes -fexceptions -o CMakeFiles/libYap.dir/C/eval.c.o -c /Users/vsc/git/yap-6.3/C/eval.c", - "file": "/Users/vsc/git/yap-6.3/C/eval.c" -}, -{ - "directory": "/Users/vsc/git/yap-6.3", - "command": "/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/cc -DCOROUTINING=1 -DDEPTH_LIMIT=1 -DGNU_SOURCE=1 -DHAVE_CONFIG_H -DRATIONAL_TREES=1 -DTABLING=1 -DTHREADEAD_CODE=1 -DYAP_JIT=1 -D_XOPEN_SOURCE=700 -D_YAP_NOT_INSTALLED_=1 -DlibYap_EXPORTS -fPIC -I/Users/vsc/git/yap-6.3 -I/Users/vsc/git/yap-6.3/H -I/Users/vsc/git/yap-6.3/include -I/Users/vsc/git/yap-6.3/os -I/Users/vsc/git/yap-6.3/OPTYap -I/usr/local/include -I/usr/local/opt/readline/include -I/Users/vsc/git/yap-6.3/JIT -I/Users/vsc/git/yap-6.3/JIT/HPP -Wall -Wstrict-prototypes -Wmissing-prototypes -fexceptions -o CMakeFiles/libYap.dir/C/exec.c.o -c /Users/vsc/git/yap-6.3/C/exec.c", - "file": "/Users/vsc/git/yap-6.3/C/exec.c" -}, -{ - "directory": "/Users/vsc/git/yap-6.3", - "command": "/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/cc -DCOROUTINING=1 -DDEPTH_LIMIT=1 -DGNU_SOURCE=1 -DHAVE_CONFIG_H -DRATIONAL_TREES=1 -DTABLING=1 -DTHREADEAD_CODE=1 -DYAP_JIT=1 -D_XOPEN_SOURCE=700 -D_YAP_NOT_INSTALLED_=1 -DlibYap_EXPORTS -fPIC -I/Users/vsc/git/yap-6.3 -I/Users/vsc/git/yap-6.3/H -I/Users/vsc/git/yap-6.3/include -I/Users/vsc/git/yap-6.3/os -I/Users/vsc/git/yap-6.3/OPTYap -I/usr/local/include -I/usr/local/opt/readline/include -I/Users/vsc/git/yap-6.3/JIT -I/Users/vsc/git/yap-6.3/JIT/HPP -Wall -Wstrict-prototypes -Wmissing-prototypes -fexceptions -o CMakeFiles/libYap.dir/C/exo.c.o -c /Users/vsc/git/yap-6.3/C/exo.c", - "file": "/Users/vsc/git/yap-6.3/C/exo.c" -}, -{ - "directory": "/Users/vsc/git/yap-6.3", - "command": "/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/cc -DCOROUTINING=1 -DDEPTH_LIMIT=1 -DGNU_SOURCE=1 -DHAVE_CONFIG_H -DRATIONAL_TREES=1 -DTABLING=1 -DTHREADEAD_CODE=1 -DYAP_JIT=1 -D_XOPEN_SOURCE=700 -D_YAP_NOT_INSTALLED_=1 -DlibYap_EXPORTS -fPIC -I/Users/vsc/git/yap-6.3 -I/Users/vsc/git/yap-6.3/H -I/Users/vsc/git/yap-6.3/include -I/Users/vsc/git/yap-6.3/os -I/Users/vsc/git/yap-6.3/OPTYap -I/usr/local/include -I/usr/local/opt/readline/include -I/Users/vsc/git/yap-6.3/JIT -I/Users/vsc/git/yap-6.3/JIT/HPP -Wall -Wstrict-prototypes -Wmissing-prototypes -fexceptions -o CMakeFiles/libYap.dir/C/exo_udi.c.o -c /Users/vsc/git/yap-6.3/C/exo_udi.c", - "file": "/Users/vsc/git/yap-6.3/C/exo_udi.c" -}, -{ - "directory": "/Users/vsc/git/yap-6.3", - "command": "/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/cc -DCOROUTINING=1 -DDEPTH_LIMIT=1 -DGNU_SOURCE=1 -DHAVE_CONFIG_H -DRATIONAL_TREES=1 -DTABLING=1 -DTHREADEAD_CODE=1 -DYAP_JIT=1 -D_XOPEN_SOURCE=700 -D_YAP_NOT_INSTALLED_=1 -DlibYap_EXPORTS -fPIC -I/Users/vsc/git/yap-6.3 -I/Users/vsc/git/yap-6.3/H -I/Users/vsc/git/yap-6.3/include -I/Users/vsc/git/yap-6.3/os -I/Users/vsc/git/yap-6.3/OPTYap -I/usr/local/include -I/usr/local/opt/readline/include -I/Users/vsc/git/yap-6.3/JIT -I/Users/vsc/git/yap-6.3/JIT/HPP -Wall -Wstrict-prototypes -Wmissing-prototypes -fexceptions -o CMakeFiles/libYap.dir/C/globals.c.o -c /Users/vsc/git/yap-6.3/C/globals.c", - "file": "/Users/vsc/git/yap-6.3/C/globals.c" -}, -{ - "directory": "/Users/vsc/git/yap-6.3", - "command": "/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/cc -DCOROUTINING=1 -DDEPTH_LIMIT=1 -DGNU_SOURCE=1 -DHAVE_CONFIG_H -DRATIONAL_TREES=1 -DTABLING=1 -DTHREADEAD_CODE=1 -DYAP_JIT=1 -D_XOPEN_SOURCE=700 -D_YAP_NOT_INSTALLED_=1 -DlibYap_EXPORTS -fPIC -I/Users/vsc/git/yap-6.3 -I/Users/vsc/git/yap-6.3/H -I/Users/vsc/git/yap-6.3/include -I/Users/vsc/git/yap-6.3/os -I/Users/vsc/git/yap-6.3/OPTYap -I/usr/local/include -I/usr/local/opt/readline/include -I/Users/vsc/git/yap-6.3/JIT -I/Users/vsc/git/yap-6.3/JIT/HPP -Wall -Wstrict-prototypes -Wmissing-prototypes -fexceptions -o CMakeFiles/libYap.dir/C/gmp_support.c.o -c /Users/vsc/git/yap-6.3/C/gmp_support.c", - "file": "/Users/vsc/git/yap-6.3/C/gmp_support.c" -}, -{ - "directory": "/Users/vsc/git/yap-6.3", - "command": "/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/cc -DCOROUTINING=1 -DDEPTH_LIMIT=1 -DGNU_SOURCE=1 -DHAVE_CONFIG_H -DRATIONAL_TREES=1 -DTABLING=1 -DTHREADEAD_CODE=1 -DYAP_JIT=1 -D_XOPEN_SOURCE=700 -D_YAP_NOT_INSTALLED_=1 -DlibYap_EXPORTS -fPIC -I/Users/vsc/git/yap-6.3 -I/Users/vsc/git/yap-6.3/H -I/Users/vsc/git/yap-6.3/include -I/Users/vsc/git/yap-6.3/os -I/Users/vsc/git/yap-6.3/OPTYap -I/usr/local/include -I/usr/local/opt/readline/include -I/Users/vsc/git/yap-6.3/JIT -I/Users/vsc/git/yap-6.3/JIT/HPP -Wall -Wstrict-prototypes -Wmissing-prototypes -fexceptions -o CMakeFiles/libYap.dir/C/gprof.c.o -c /Users/vsc/git/yap-6.3/C/gprof.c", - "file": "/Users/vsc/git/yap-6.3/C/gprof.c" -}, -{ - "directory": "/Users/vsc/git/yap-6.3", - "command": "/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/cc -DCOROUTINING=1 -DDEPTH_LIMIT=1 -DGNU_SOURCE=1 -DHAVE_CONFIG_H -DRATIONAL_TREES=1 -DTABLING=1 -DTHREADEAD_CODE=1 -DYAP_JIT=1 -D_XOPEN_SOURCE=700 -D_YAP_NOT_INSTALLED_=1 -DlibYap_EXPORTS -fPIC -I/Users/vsc/git/yap-6.3 -I/Users/vsc/git/yap-6.3/H -I/Users/vsc/git/yap-6.3/include -I/Users/vsc/git/yap-6.3/os -I/Users/vsc/git/yap-6.3/OPTYap -I/usr/local/include -I/usr/local/opt/readline/include -I/Users/vsc/git/yap-6.3/JIT -I/Users/vsc/git/yap-6.3/JIT/HPP -Wall -Wstrict-prototypes -Wmissing-prototypes -fexceptions -o CMakeFiles/libYap.dir/C/grow.c.o -c /Users/vsc/git/yap-6.3/C/grow.c", - "file": "/Users/vsc/git/yap-6.3/C/grow.c" -}, -{ - "directory": "/Users/vsc/git/yap-6.3", - "command": "/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/cc -DCOROUTINING=1 -DDEPTH_LIMIT=1 -DGNU_SOURCE=1 -DHAVE_CONFIG_H -DRATIONAL_TREES=1 -DTABLING=1 -DTHREADEAD_CODE=1 -DYAP_JIT=1 -D_XOPEN_SOURCE=700 -D_YAP_NOT_INSTALLED_=1 -DlibYap_EXPORTS -fPIC -I/Users/vsc/git/yap-6.3 -I/Users/vsc/git/yap-6.3/H -I/Users/vsc/git/yap-6.3/include -I/Users/vsc/git/yap-6.3/os -I/Users/vsc/git/yap-6.3/OPTYap -I/usr/local/include -I/usr/local/opt/readline/include -I/Users/vsc/git/yap-6.3/JIT -I/Users/vsc/git/yap-6.3/JIT/HPP -Wall -Wstrict-prototypes -Wmissing-prototypes -fexceptions -o CMakeFiles/libYap.dir/C/heapgc.c.o -c /Users/vsc/git/yap-6.3/C/heapgc.c", - "file": "/Users/vsc/git/yap-6.3/C/heapgc.c" -}, -{ - "directory": "/Users/vsc/git/yap-6.3", - "command": "/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/cc -DCOROUTINING=1 -DDEPTH_LIMIT=1 -DGNU_SOURCE=1 -DHAVE_CONFIG_H -DRATIONAL_TREES=1 -DTABLING=1 -DTHREADEAD_CODE=1 -DYAP_JIT=1 -D_XOPEN_SOURCE=700 -D_YAP_NOT_INSTALLED_=1 -DlibYap_EXPORTS -fPIC -I/Users/vsc/git/yap-6.3 -I/Users/vsc/git/yap-6.3/H -I/Users/vsc/git/yap-6.3/include -I/Users/vsc/git/yap-6.3/os -I/Users/vsc/git/yap-6.3/OPTYap -I/usr/local/include -I/usr/local/opt/readline/include -I/Users/vsc/git/yap-6.3/JIT -I/Users/vsc/git/yap-6.3/JIT/HPP -Wall -Wstrict-prototypes -Wmissing-prototypes -fexceptions -o CMakeFiles/libYap.dir/C/index.c.o -c /Users/vsc/git/yap-6.3/C/index.c", - "file": "/Users/vsc/git/yap-6.3/C/index.c" -}, -{ - "directory": "/Users/vsc/git/yap-6.3", - "command": "/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/cc -DCOROUTINING=1 -DDEPTH_LIMIT=1 -DGNU_SOURCE=1 -DHAVE_CONFIG_H -DRATIONAL_TREES=1 -DTABLING=1 -DTHREADEAD_CODE=1 -DYAP_JIT=1 -D_XOPEN_SOURCE=700 -D_YAP_NOT_INSTALLED_=1 -DlibYap_EXPORTS -fPIC -I/Users/vsc/git/yap-6.3 -I/Users/vsc/git/yap-6.3/H -I/Users/vsc/git/yap-6.3/include -I/Users/vsc/git/yap-6.3/os -I/Users/vsc/git/yap-6.3/OPTYap -I/usr/local/include -I/usr/local/opt/readline/include -I/Users/vsc/git/yap-6.3/JIT -I/Users/vsc/git/yap-6.3/JIT/HPP -Wall -Wstrict-prototypes -Wmissing-prototypes -fexceptions -o CMakeFiles/libYap.dir/C/init.c.o -c /Users/vsc/git/yap-6.3/C/init.c", - "file": "/Users/vsc/git/yap-6.3/C/init.c" -}, -{ - "directory": "/Users/vsc/git/yap-6.3", - "command": "/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/cc -DCOROUTINING=1 -DDEPTH_LIMIT=1 -DGNU_SOURCE=1 -DHAVE_CONFIG_H -DRATIONAL_TREES=1 -DTABLING=1 -DTHREADEAD_CODE=1 -DYAP_JIT=1 -D_XOPEN_SOURCE=700 -D_YAP_NOT_INSTALLED_=1 -DlibYap_EXPORTS -fPIC -I/Users/vsc/git/yap-6.3 -I/Users/vsc/git/yap-6.3/H -I/Users/vsc/git/yap-6.3/include -I/Users/vsc/git/yap-6.3/os -I/Users/vsc/git/yap-6.3/OPTYap -I/usr/local/include -I/usr/local/opt/readline/include -I/Users/vsc/git/yap-6.3/JIT -I/Users/vsc/git/yap-6.3/JIT/HPP -Wall -Wstrict-prototypes -Wmissing-prototypes -fexceptions -o CMakeFiles/libYap.dir/C/inlines.c.o -c /Users/vsc/git/yap-6.3/C/inlines.c", - "file": "/Users/vsc/git/yap-6.3/C/inlines.c" -}, -{ - "directory": "/Users/vsc/git/yap-6.3", - "command": "/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/cc -DCOROUTINING=1 -DDEPTH_LIMIT=1 -DGNU_SOURCE=1 -DHAVE_CONFIG_H -DRATIONAL_TREES=1 -DTABLING=1 -DTHREADEAD_CODE=1 -DYAP_JIT=1 -D_XOPEN_SOURCE=700 -D_YAP_NOT_INSTALLED_=1 -DlibYap_EXPORTS -fPIC -I/Users/vsc/git/yap-6.3 -I/Users/vsc/git/yap-6.3/H -I/Users/vsc/git/yap-6.3/include -I/Users/vsc/git/yap-6.3/os -I/Users/vsc/git/yap-6.3/OPTYap -I/usr/local/include -I/usr/local/opt/readline/include -I/Users/vsc/git/yap-6.3/JIT -I/Users/vsc/git/yap-6.3/JIT/HPP -Wall -Wstrict-prototypes -Wmissing-prototypes -fexceptions -o CMakeFiles/libYap.dir/C/iopreds.c.o -c /Users/vsc/git/yap-6.3/C/iopreds.c", - "file": "/Users/vsc/git/yap-6.3/C/iopreds.c" -}, -{ - "directory": "/Users/vsc/git/yap-6.3", - "command": "/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/cc -DCOROUTINING=1 -DDEPTH_LIMIT=1 -DGNU_SOURCE=1 -DHAVE_CONFIG_H -DRATIONAL_TREES=1 -DTABLING=1 -DTHREADEAD_CODE=1 -DYAP_JIT=1 -D_XOPEN_SOURCE=700 -D_YAP_NOT_INSTALLED_=1 -DlibYap_EXPORTS -fPIC -I/Users/vsc/git/yap-6.3 -I/Users/vsc/git/yap-6.3/H -I/Users/vsc/git/yap-6.3/include -I/Users/vsc/git/yap-6.3/os -I/Users/vsc/git/yap-6.3/OPTYap -I/usr/local/include -I/usr/local/opt/readline/include -I/Users/vsc/git/yap-6.3/JIT -I/Users/vsc/git/yap-6.3/JIT/HPP -Wall -Wstrict-prototypes -Wmissing-prototypes -fexceptions -o CMakeFiles/libYap.dir/C/depth_bound.c.o -c /Users/vsc/git/yap-6.3/C/depth_bound.c", - "file": "/Users/vsc/git/yap-6.3/C/depth_bound.c" -}, -{ - "directory": "/Users/vsc/git/yap-6.3", - "command": "/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/cc -DCOROUTINING=1 -DDEPTH_LIMIT=1 -DGNU_SOURCE=1 -DHAVE_CONFIG_H -DRATIONAL_TREES=1 -DTABLING=1 -DTHREADEAD_CODE=1 -DYAP_JIT=1 -D_XOPEN_SOURCE=700 -D_YAP_NOT_INSTALLED_=1 -DlibYap_EXPORTS -fPIC -I/Users/vsc/git/yap-6.3 -I/Users/vsc/git/yap-6.3/H -I/Users/vsc/git/yap-6.3/include -I/Users/vsc/git/yap-6.3/os -I/Users/vsc/git/yap-6.3/OPTYap -I/usr/local/include -I/usr/local/opt/readline/include -I/Users/vsc/git/yap-6.3/JIT -I/Users/vsc/git/yap-6.3/JIT/HPP -Wall -Wstrict-prototypes -Wmissing-prototypes -fexceptions -o CMakeFiles/libYap.dir/C/mavar.c.o -c /Users/vsc/git/yap-6.3/C/mavar.c", - "file": "/Users/vsc/git/yap-6.3/C/mavar.c" -}, -{ - "directory": "/Users/vsc/git/yap-6.3", - "command": "/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/cc -DCOROUTINING=1 -DDEPTH_LIMIT=1 -DGNU_SOURCE=1 -DHAVE_CONFIG_H -DRATIONAL_TREES=1 -DTABLING=1 -DTHREADEAD_CODE=1 -DYAP_JIT=1 -D_XOPEN_SOURCE=700 -D_YAP_NOT_INSTALLED_=1 -DlibYap_EXPORTS -fPIC -I/Users/vsc/git/yap-6.3 -I/Users/vsc/git/yap-6.3/H -I/Users/vsc/git/yap-6.3/include -I/Users/vsc/git/yap-6.3/os -I/Users/vsc/git/yap-6.3/OPTYap -I/usr/local/include -I/usr/local/opt/readline/include -I/Users/vsc/git/yap-6.3/JIT -I/Users/vsc/git/yap-6.3/JIT/HPP -Wall -Wstrict-prototypes -Wmissing-prototypes -fexceptions -o CMakeFiles/libYap.dir/C/modules.c.o -c /Users/vsc/git/yap-6.3/C/modules.c", - "file": "/Users/vsc/git/yap-6.3/C/modules.c" -}, -{ - "directory": "/Users/vsc/git/yap-6.3", - "command": "/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/cc -DCOROUTINING=1 -DDEPTH_LIMIT=1 -DGNU_SOURCE=1 -DHAVE_CONFIG_H -DRATIONAL_TREES=1 -DTABLING=1 -DTHREADEAD_CODE=1 -DYAP_JIT=1 -D_XOPEN_SOURCE=700 -D_YAP_NOT_INSTALLED_=1 -DlibYap_EXPORTS -fPIC -I/Users/vsc/git/yap-6.3 -I/Users/vsc/git/yap-6.3/H -I/Users/vsc/git/yap-6.3/include -I/Users/vsc/git/yap-6.3/os -I/Users/vsc/git/yap-6.3/OPTYap -I/usr/local/include -I/usr/local/opt/readline/include -I/Users/vsc/git/yap-6.3/JIT -I/Users/vsc/git/yap-6.3/JIT/HPP -Wall -Wstrict-prototypes -Wmissing-prototypes -fexceptions -o CMakeFiles/libYap.dir/C/other.c.o -c /Users/vsc/git/yap-6.3/C/other.c", - "file": "/Users/vsc/git/yap-6.3/C/other.c" -}, -{ - "directory": "/Users/vsc/git/yap-6.3", - "command": "/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/cc -DCOROUTINING=1 -DDEPTH_LIMIT=1 -DGNU_SOURCE=1 -DHAVE_CONFIG_H -DRATIONAL_TREES=1 -DTABLING=1 -DTHREADEAD_CODE=1 -DYAP_JIT=1 -D_XOPEN_SOURCE=700 -D_YAP_NOT_INSTALLED_=1 -DlibYap_EXPORTS -fPIC -I/Users/vsc/git/yap-6.3 -I/Users/vsc/git/yap-6.3/H -I/Users/vsc/git/yap-6.3/include -I/Users/vsc/git/yap-6.3/os -I/Users/vsc/git/yap-6.3/OPTYap -I/usr/local/include -I/usr/local/opt/readline/include -I/Users/vsc/git/yap-6.3/JIT -I/Users/vsc/git/yap-6.3/JIT/HPP -Wall -Wstrict-prototypes -Wmissing-prototypes -fexceptions -o CMakeFiles/libYap.dir/C/parser.c.o -c /Users/vsc/git/yap-6.3/C/parser.c", - "file": "/Users/vsc/git/yap-6.3/C/parser.c" -}, -{ - "directory": "/Users/vsc/git/yap-6.3", - "command": "/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/cc -DCOROUTINING=1 -DDEPTH_LIMIT=1 -DGNU_SOURCE=1 -DHAVE_CONFIG_H -DRATIONAL_TREES=1 -DTABLING=1 -DTHREADEAD_CODE=1 -DYAP_JIT=1 -D_XOPEN_SOURCE=700 -D_YAP_NOT_INSTALLED_=1 -DlibYap_EXPORTS -fPIC -I/Users/vsc/git/yap-6.3 -I/Users/vsc/git/yap-6.3/H -I/Users/vsc/git/yap-6.3/include -I/Users/vsc/git/yap-6.3/os -I/Users/vsc/git/yap-6.3/OPTYap -I/usr/local/include -I/usr/local/opt/readline/include -I/Users/vsc/git/yap-6.3/JIT -I/Users/vsc/git/yap-6.3/JIT/HPP -Wall -Wstrict-prototypes -Wmissing-prototypes -fexceptions -o CMakeFiles/libYap.dir/C/qlyr.c.o -c /Users/vsc/git/yap-6.3/C/qlyr.c", - "file": "/Users/vsc/git/yap-6.3/C/qlyr.c" -}, -{ - "directory": "/Users/vsc/git/yap-6.3", - "command": "/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/cc -DCOROUTINING=1 -DDEPTH_LIMIT=1 -DGNU_SOURCE=1 -DHAVE_CONFIG_H -DRATIONAL_TREES=1 -DTABLING=1 -DTHREADEAD_CODE=1 -DYAP_JIT=1 -D_XOPEN_SOURCE=700 -D_YAP_NOT_INSTALLED_=1 -DlibYap_EXPORTS -fPIC -I/Users/vsc/git/yap-6.3 -I/Users/vsc/git/yap-6.3/H -I/Users/vsc/git/yap-6.3/include -I/Users/vsc/git/yap-6.3/os -I/Users/vsc/git/yap-6.3/OPTYap -I/usr/local/include -I/usr/local/opt/readline/include -I/Users/vsc/git/yap-6.3/JIT -I/Users/vsc/git/yap-6.3/JIT/HPP -Wall -Wstrict-prototypes -Wmissing-prototypes -fexceptions -o CMakeFiles/libYap.dir/C/qlyw.c.o -c /Users/vsc/git/yap-6.3/C/qlyw.c", - "file": "/Users/vsc/git/yap-6.3/C/qlyw.c" -}, -{ - "directory": "/Users/vsc/git/yap-6.3", - "command": "/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/cc -DCOROUTINING=1 -DDEPTH_LIMIT=1 -DGNU_SOURCE=1 -DHAVE_CONFIG_H -DRATIONAL_TREES=1 -DTABLING=1 -DTHREADEAD_CODE=1 -DYAP_JIT=1 -D_XOPEN_SOURCE=700 -D_YAP_NOT_INSTALLED_=1 -DlibYap_EXPORTS -fPIC -I/Users/vsc/git/yap-6.3 -I/Users/vsc/git/yap-6.3/H -I/Users/vsc/git/yap-6.3/include -I/Users/vsc/git/yap-6.3/os -I/Users/vsc/git/yap-6.3/OPTYap -I/usr/local/include -I/usr/local/opt/readline/include -I/Users/vsc/git/yap-6.3/JIT -I/Users/vsc/git/yap-6.3/JIT/HPP -Wall -Wstrict-prototypes -Wmissing-prototypes -fexceptions -o CMakeFiles/libYap.dir/C/range.c.o -c /Users/vsc/git/yap-6.3/C/range.c", - "file": "/Users/vsc/git/yap-6.3/C/range.c" -}, -{ - "directory": "/Users/vsc/git/yap-6.3", - "command": "/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/cc -DCOROUTINING=1 -DDEPTH_LIMIT=1 -DGNU_SOURCE=1 -DHAVE_CONFIG_H -DRATIONAL_TREES=1 -DTABLING=1 -DTHREADEAD_CODE=1 -DYAP_JIT=1 -D_XOPEN_SOURCE=700 -D_YAP_NOT_INSTALLED_=1 -DlibYap_EXPORTS -fPIC -I/Users/vsc/git/yap-6.3 -I/Users/vsc/git/yap-6.3/H -I/Users/vsc/git/yap-6.3/include -I/Users/vsc/git/yap-6.3/os -I/Users/vsc/git/yap-6.3/OPTYap -I/usr/local/include -I/usr/local/opt/readline/include -I/Users/vsc/git/yap-6.3/JIT -I/Users/vsc/git/yap-6.3/JIT/HPP -Wall -Wstrict-prototypes -Wmissing-prototypes -fexceptions -o CMakeFiles/libYap.dir/C/save.c.o -c /Users/vsc/git/yap-6.3/C/save.c", - "file": "/Users/vsc/git/yap-6.3/C/save.c" -}, -{ - "directory": "/Users/vsc/git/yap-6.3", - "command": "/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/cc -DCOROUTINING=1 -DDEPTH_LIMIT=1 -DGNU_SOURCE=1 -DHAVE_CONFIG_H -DRATIONAL_TREES=1 -DTABLING=1 -DTHREADEAD_CODE=1 -DYAP_JIT=1 -D_XOPEN_SOURCE=700 -D_YAP_NOT_INSTALLED_=1 -DlibYap_EXPORTS -fPIC -I/Users/vsc/git/yap-6.3 -I/Users/vsc/git/yap-6.3/H -I/Users/vsc/git/yap-6.3/include -I/Users/vsc/git/yap-6.3/os -I/Users/vsc/git/yap-6.3/OPTYap -I/usr/local/include -I/usr/local/opt/readline/include -I/Users/vsc/git/yap-6.3/JIT -I/Users/vsc/git/yap-6.3/JIT/HPP -Wall -Wstrict-prototypes -Wmissing-prototypes -fexceptions -o CMakeFiles/libYap.dir/C/scanner.c.o -c /Users/vsc/git/yap-6.3/C/scanner.c", - "file": "/Users/vsc/git/yap-6.3/C/scanner.c" -}, -{ - "directory": "/Users/vsc/git/yap-6.3", - "command": "/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/cc -DCOROUTINING=1 -DDEPTH_LIMIT=1 -DGNU_SOURCE=1 -DHAVE_CONFIG_H -DRATIONAL_TREES=1 -DTABLING=1 -DTHREADEAD_CODE=1 -DYAP_JIT=1 -D_XOPEN_SOURCE=700 -D_YAP_NOT_INSTALLED_=1 -DlibYap_EXPORTS -fPIC -I/Users/vsc/git/yap-6.3 -I/Users/vsc/git/yap-6.3/H -I/Users/vsc/git/yap-6.3/include -I/Users/vsc/git/yap-6.3/os -I/Users/vsc/git/yap-6.3/OPTYap -I/usr/local/include -I/usr/local/opt/readline/include -I/Users/vsc/git/yap-6.3/JIT -I/Users/vsc/git/yap-6.3/JIT/HPP -Wall -Wstrict-prototypes -Wmissing-prototypes -fexceptions -o CMakeFiles/libYap.dir/C/signals.c.o -c /Users/vsc/git/yap-6.3/C/signals.c", - "file": "/Users/vsc/git/yap-6.3/C/signals.c" -}, -{ - "directory": "/Users/vsc/git/yap-6.3", - "command": "/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/cc -DCOROUTINING=1 -DDEPTH_LIMIT=1 -DGNU_SOURCE=1 -DHAVE_CONFIG_H -DRATIONAL_TREES=1 -DTABLING=1 -DTHREADEAD_CODE=1 -DYAP_JIT=1 -D_XOPEN_SOURCE=700 -D_YAP_NOT_INSTALLED_=1 -DlibYap_EXPORTS -fPIC -I/Users/vsc/git/yap-6.3 -I/Users/vsc/git/yap-6.3/H -I/Users/vsc/git/yap-6.3/include -I/Users/vsc/git/yap-6.3/os -I/Users/vsc/git/yap-6.3/OPTYap -I/usr/local/include -I/usr/local/opt/readline/include -I/Users/vsc/git/yap-6.3/JIT -I/Users/vsc/git/yap-6.3/JIT/HPP -Wall -Wstrict-prototypes -Wmissing-prototypes -fexceptions -o CMakeFiles/libYap.dir/C/sort.c.o -c /Users/vsc/git/yap-6.3/C/sort.c", - "file": "/Users/vsc/git/yap-6.3/C/sort.c" -}, -{ - "directory": "/Users/vsc/git/yap-6.3", - "command": "/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/cc -DCOROUTINING=1 -DDEPTH_LIMIT=1 -DGNU_SOURCE=1 -DHAVE_CONFIG_H -DRATIONAL_TREES=1 -DTABLING=1 -DTHREADEAD_CODE=1 -DYAP_JIT=1 -D_XOPEN_SOURCE=700 -D_YAP_NOT_INSTALLED_=1 -DlibYap_EXPORTS -fPIC -I/Users/vsc/git/yap-6.3 -I/Users/vsc/git/yap-6.3/H -I/Users/vsc/git/yap-6.3/include -I/Users/vsc/git/yap-6.3/os -I/Users/vsc/git/yap-6.3/OPTYap -I/usr/local/include -I/usr/local/opt/readline/include -I/Users/vsc/git/yap-6.3/JIT -I/Users/vsc/git/yap-6.3/JIT/HPP -Wall -Wstrict-prototypes -Wmissing-prototypes -fexceptions -o CMakeFiles/libYap.dir/C/stdpreds.c.o -c /Users/vsc/git/yap-6.3/C/stdpreds.c", - "file": "/Users/vsc/git/yap-6.3/C/stdpreds.c" -}, -{ - "directory": "/Users/vsc/git/yap-6.3", - "command": "/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/cc -DCOROUTINING=1 -DDEPTH_LIMIT=1 -DGNU_SOURCE=1 -DHAVE_CONFIG_H -DRATIONAL_TREES=1 -DTABLING=1 -DTHREADEAD_CODE=1 -DYAP_JIT=1 -D_XOPEN_SOURCE=700 -D_YAP_NOT_INSTALLED_=1 -DlibYap_EXPORTS -fPIC -I/Users/vsc/git/yap-6.3 -I/Users/vsc/git/yap-6.3/H -I/Users/vsc/git/yap-6.3/include -I/Users/vsc/git/yap-6.3/os -I/Users/vsc/git/yap-6.3/OPTYap -I/usr/local/include -I/usr/local/opt/readline/include -I/Users/vsc/git/yap-6.3/JIT -I/Users/vsc/git/yap-6.3/JIT/HPP -Wall -Wstrict-prototypes -Wmissing-prototypes -fexceptions -o CMakeFiles/libYap.dir/C/sysbits.c.o -c /Users/vsc/git/yap-6.3/C/sysbits.c", - "file": "/Users/vsc/git/yap-6.3/C/sysbits.c" -}, -{ - "directory": "/Users/vsc/git/yap-6.3", - "command": "/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/cc -DCOROUTINING=1 -DDEPTH_LIMIT=1 -DGNU_SOURCE=1 -DHAVE_CONFIG_H -DRATIONAL_TREES=1 -DTABLING=1 -DTHREADEAD_CODE=1 -DYAP_JIT=1 -D_XOPEN_SOURCE=700 -D_YAP_NOT_INSTALLED_=1 -DlibYap_EXPORTS -fPIC -I/Users/vsc/git/yap-6.3 -I/Users/vsc/git/yap-6.3/H -I/Users/vsc/git/yap-6.3/include -I/Users/vsc/git/yap-6.3/os -I/Users/vsc/git/yap-6.3/OPTYap -I/usr/local/include -I/usr/local/opt/readline/include -I/Users/vsc/git/yap-6.3/JIT -I/Users/vsc/git/yap-6.3/JIT/HPP -Wall -Wstrict-prototypes -Wmissing-prototypes -fexceptions -o CMakeFiles/libYap.dir/C/text.c.o -c /Users/vsc/git/yap-6.3/C/text.c", - "file": "/Users/vsc/git/yap-6.3/C/text.c" -}, -{ - "directory": "/Users/vsc/git/yap-6.3", - "command": "/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/cc -DCOROUTINING=1 -DDEPTH_LIMIT=1 -DGNU_SOURCE=1 -DHAVE_CONFIG_H -DRATIONAL_TREES=1 -DTABLING=1 -DTHREADEAD_CODE=1 -DYAP_JIT=1 -D_XOPEN_SOURCE=700 -D_YAP_NOT_INSTALLED_=1 -DlibYap_EXPORTS -fPIC -I/Users/vsc/git/yap-6.3 -I/Users/vsc/git/yap-6.3/H -I/Users/vsc/git/yap-6.3/include -I/Users/vsc/git/yap-6.3/os -I/Users/vsc/git/yap-6.3/OPTYap -I/usr/local/include -I/usr/local/opt/readline/include -I/Users/vsc/git/yap-6.3/JIT -I/Users/vsc/git/yap-6.3/JIT/HPP -Wall -Wstrict-prototypes -Wmissing-prototypes -fexceptions -o CMakeFiles/libYap.dir/C/threads.c.o -c /Users/vsc/git/yap-6.3/C/threads.c", - "file": "/Users/vsc/git/yap-6.3/C/threads.c" -}, -{ - "directory": "/Users/vsc/git/yap-6.3", - "command": "/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/cc -DCOROUTINING=1 -DDEPTH_LIMIT=1 -DGNU_SOURCE=1 -DHAVE_CONFIG_H -DRATIONAL_TREES=1 -DTABLING=1 -DTHREADEAD_CODE=1 -DYAP_JIT=1 -D_XOPEN_SOURCE=700 -D_YAP_NOT_INSTALLED_=1 -DlibYap_EXPORTS -fPIC -I/Users/vsc/git/yap-6.3 -I/Users/vsc/git/yap-6.3/H -I/Users/vsc/git/yap-6.3/include -I/Users/vsc/git/yap-6.3/os -I/Users/vsc/git/yap-6.3/OPTYap -I/usr/local/include -I/usr/local/opt/readline/include -I/Users/vsc/git/yap-6.3/JIT -I/Users/vsc/git/yap-6.3/JIT/HPP -Wall -Wstrict-prototypes -Wmissing-prototypes -fexceptions -o CMakeFiles/libYap.dir/C/tracer.c.o -c /Users/vsc/git/yap-6.3/C/tracer.c", - "file": "/Users/vsc/git/yap-6.3/C/tracer.c" -}, -{ - "directory": "/Users/vsc/git/yap-6.3", - "command": "/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/cc -DCOROUTINING=1 -DDEPTH_LIMIT=1 -DGNU_SOURCE=1 -DHAVE_CONFIG_H -DRATIONAL_TREES=1 -DTABLING=1 -DTHREADEAD_CODE=1 -DYAP_JIT=1 -D_XOPEN_SOURCE=700 -D_YAP_NOT_INSTALLED_=1 -DlibYap_EXPORTS -fPIC -I/Users/vsc/git/yap-6.3 -I/Users/vsc/git/yap-6.3/H -I/Users/vsc/git/yap-6.3/include -I/Users/vsc/git/yap-6.3/os -I/Users/vsc/git/yap-6.3/OPTYap -I/usr/local/include -I/usr/local/opt/readline/include -I/Users/vsc/git/yap-6.3/JIT -I/Users/vsc/git/yap-6.3/JIT/HPP -Wall -Wstrict-prototypes -Wmissing-prototypes -fexceptions -o CMakeFiles/libYap.dir/C/unify.c.o -c /Users/vsc/git/yap-6.3/C/unify.c", - "file": "/Users/vsc/git/yap-6.3/C/unify.c" -}, -{ - "directory": "/Users/vsc/git/yap-6.3", - "command": "/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/cc -DCOROUTINING=1 -DDEPTH_LIMIT=1 -DGNU_SOURCE=1 -DHAVE_CONFIG_H -DRATIONAL_TREES=1 -DTABLING=1 -DTHREADEAD_CODE=1 -DYAP_JIT=1 -D_XOPEN_SOURCE=700 -D_YAP_NOT_INSTALLED_=1 -DlibYap_EXPORTS -fPIC -I/Users/vsc/git/yap-6.3 -I/Users/vsc/git/yap-6.3/H -I/Users/vsc/git/yap-6.3/include -I/Users/vsc/git/yap-6.3/os -I/Users/vsc/git/yap-6.3/OPTYap -I/usr/local/include -I/usr/local/opt/readline/include -I/Users/vsc/git/yap-6.3/JIT -I/Users/vsc/git/yap-6.3/JIT/HPP -Wall -Wstrict-prototypes -Wmissing-prototypes -fexceptions -o CMakeFiles/libYap.dir/C/userpreds.c.o -c /Users/vsc/git/yap-6.3/C/userpreds.c", - "file": "/Users/vsc/git/yap-6.3/C/userpreds.c" -}, -{ - "directory": "/Users/vsc/git/yap-6.3", - "command": "/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/cc -DCOROUTINING=1 -DDEPTH_LIMIT=1 -DGNU_SOURCE=1 -DHAVE_CONFIG_H -DRATIONAL_TREES=1 -DTABLING=1 -DTHREADEAD_CODE=1 -DYAP_JIT=1 -D_XOPEN_SOURCE=700 -D_YAP_NOT_INSTALLED_=1 -DlibYap_EXPORTS -fPIC -I/Users/vsc/git/yap-6.3 -I/Users/vsc/git/yap-6.3/H -I/Users/vsc/git/yap-6.3/include -I/Users/vsc/git/yap-6.3/os -I/Users/vsc/git/yap-6.3/OPTYap -I/usr/local/include -I/usr/local/opt/readline/include -I/Users/vsc/git/yap-6.3/JIT -I/Users/vsc/git/yap-6.3/JIT/HPP -Wall -Wstrict-prototypes -Wmissing-prototypes -fexceptions -o CMakeFiles/libYap.dir/C/utilpreds.c.o -c /Users/vsc/git/yap-6.3/C/utilpreds.c", - "file": "/Users/vsc/git/yap-6.3/C/utilpreds.c" -}, -{ - "directory": "/Users/vsc/git/yap-6.3", - "command": "/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/cc -DCOROUTINING=1 -DDEPTH_LIMIT=1 -DGNU_SOURCE=1 -DHAVE_CONFIG_H -DRATIONAL_TREES=1 -DTABLING=1 -DTHREADEAD_CODE=1 -DYAP_JIT=1 -D_XOPEN_SOURCE=700 -D_YAP_NOT_INSTALLED_=1 -DlibYap_EXPORTS -fPIC -I/Users/vsc/git/yap-6.3 -I/Users/vsc/git/yap-6.3/H -I/Users/vsc/git/yap-6.3/include -I/Users/vsc/git/yap-6.3/os -I/Users/vsc/git/yap-6.3/OPTYap -I/usr/local/include -I/usr/local/opt/readline/include -I/Users/vsc/git/yap-6.3/JIT -I/Users/vsc/git/yap-6.3/JIT/HPP -Wall -Wstrict-prototypes -Wmissing-prototypes -fexceptions -o CMakeFiles/libYap.dir/C/yap-args.c.o -c /Users/vsc/git/yap-6.3/C/yap-args.c", - "file": "/Users/vsc/git/yap-6.3/C/yap-args.c" -}, -{ - "directory": "/Users/vsc/git/yap-6.3", - "command": "/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/cc -DCOROUTINING=1 -DDEPTH_LIMIT=1 -DGNU_SOURCE=1 -DHAVE_CONFIG_H -DRATIONAL_TREES=1 -DTABLING=1 -DTHREADEAD_CODE=1 -DYAP_JIT=1 -D_XOPEN_SOURCE=700 -D_YAP_NOT_INSTALLED_=1 -DlibYap_EXPORTS -fPIC -I/Users/vsc/git/yap-6.3 -I/Users/vsc/git/yap-6.3/H -I/Users/vsc/git/yap-6.3/include -I/Users/vsc/git/yap-6.3/os -I/Users/vsc/git/yap-6.3/OPTYap -I/usr/local/include -I/usr/local/opt/readline/include -I/Users/vsc/git/yap-6.3/JIT -I/Users/vsc/git/yap-6.3/JIT/HPP -Wall -Wstrict-prototypes -Wmissing-prototypes -fexceptions -o CMakeFiles/libYap.dir/C/write.c.o -c /Users/vsc/git/yap-6.3/C/write.c", - "file": "/Users/vsc/git/yap-6.3/C/write.c" -}, -{ - "directory": "/Users/vsc/git/yap-6.3", - "command": "/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/cc -DCOROUTINING=1 -DDEPTH_LIMIT=1 -DGNU_SOURCE=1 -DHAVE_CONFIG_H -DRATIONAL_TREES=1 -DTABLING=1 -DTHREADEAD_CODE=1 -DYAP_JIT=1 -D_XOPEN_SOURCE=700 -D_YAP_NOT_INSTALLED_=1 -DlibYap_EXPORTS -fPIC -I/Users/vsc/git/yap-6.3 -I/Users/vsc/git/yap-6.3/H -I/Users/vsc/git/yap-6.3/include -I/Users/vsc/git/yap-6.3/os -I/Users/vsc/git/yap-6.3/OPTYap -I/usr/local/include -I/usr/local/opt/readline/include -I/Users/vsc/git/yap-6.3/JIT -I/Users/vsc/git/yap-6.3/JIT/HPP -Wall -Wstrict-prototypes -Wmissing-prototypes -fexceptions -o CMakeFiles/libYap.dir/C/ypstdio.c.o -c /Users/vsc/git/yap-6.3/C/ypstdio.c", - "file": "/Users/vsc/git/yap-6.3/C/ypstdio.c" -}, -{ - "directory": "/Users/vsc/git/yap-6.3", - "command": "/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/cc -DCOROUTINING=1 -DDEPTH_LIMIT=1 -DGNU_SOURCE=1 -DHAVE_CONFIG_H -DRATIONAL_TREES=1 -DTABLING=1 -DTHREADEAD_CODE=1 -DYAP_JIT=1 -D_XOPEN_SOURCE=700 -D_YAP_NOT_INSTALLED_=1 -DlibYap_EXPORTS -fPIC -I/Users/vsc/git/yap-6.3 -I/Users/vsc/git/yap-6.3/H -I/Users/vsc/git/yap-6.3/include -I/Users/vsc/git/yap-6.3/os -I/Users/vsc/git/yap-6.3/OPTYap -I/usr/local/include -I/usr/local/opt/readline/include -I/Users/vsc/git/yap-6.3/JIT -I/Users/vsc/git/yap-6.3/JIT/HPP -Wall -Wstrict-prototypes -Wmissing-prototypes -fexceptions -o CMakeFiles/libYap.dir/library/dialect/swi/fli/swi.c.o -c /Users/vsc/git/yap-6.3/library/dialect/swi/fli/swi.c", - "file": "/Users/vsc/git/yap-6.3/library/dialect/swi/fli/swi.c" -}, -{ - "directory": "/Users/vsc/git/yap-6.3", - "command": "/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/cc -DCOROUTINING=1 -DDEPTH_LIMIT=1 -DGNU_SOURCE=1 -DHAVE_CONFIG_H -DRATIONAL_TREES=1 -DTABLING=1 -DTHREADEAD_CODE=1 -DYAP_JIT=1 -D_XOPEN_SOURCE=700 -D_YAP_NOT_INSTALLED_=1 -DlibYap_EXPORTS -fPIC -I/Users/vsc/git/yap-6.3 -I/Users/vsc/git/yap-6.3/H -I/Users/vsc/git/yap-6.3/include -I/Users/vsc/git/yap-6.3/os -I/Users/vsc/git/yap-6.3/OPTYap -I/usr/local/include -I/usr/local/opt/readline/include -I/Users/vsc/git/yap-6.3/JIT -I/Users/vsc/git/yap-6.3/JIT/HPP -Wall -Wstrict-prototypes -Wmissing-prototypes -fexceptions -o CMakeFiles/libYap.dir/library/dialect/swi/fli/blobs.c.o -c /Users/vsc/git/yap-6.3/library/dialect/swi/fli/blobs.c", - "file": "/Users/vsc/git/yap-6.3/library/dialect/swi/fli/blobs.c" -}, -{ - "directory": "/Users/vsc/git/yap-6.3", - "command": "/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/cc -DCOROUTINING=1 -DDEPTH_LIMIT=1 -DGNU_SOURCE=1 -DHAVE_CONFIG_H -DRATIONAL_TREES=1 -DTABLING=1 -DTHREADEAD_CODE=1 -DYAP_JIT=1 -D_XOPEN_SOURCE=700 -D_YAP_NOT_INSTALLED_=1 -DlibYap_EXPORTS -fPIC -I/Users/vsc/git/yap-6.3 -I/Users/vsc/git/yap-6.3/H -I/Users/vsc/git/yap-6.3/include -I/Users/vsc/git/yap-6.3/os -I/Users/vsc/git/yap-6.3/OPTYap -I/usr/local/include -I/usr/local/opt/readline/include -I/Users/vsc/git/yap-6.3/JIT -I/Users/vsc/git/yap-6.3/JIT/HPP -Wall -Wstrict-prototypes -Wmissing-prototypes -fexceptions -o CMakeFiles/libYap.dir/C/udi.c.o -c /Users/vsc/git/yap-6.3/C/udi.c", - "file": "/Users/vsc/git/yap-6.3/C/udi.c" -}, -{ - "directory": "/Users/vsc/git/yap-6.3", - "command": "/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/cc -DCOROUTINING=1 -DDEPTH_LIMIT=1 -DGNU_SOURCE=1 -DHAVE_CONFIG_H -DRATIONAL_TREES=1 -DTABLING=1 -DTHREADEAD_CODE=1 -DYAP_JIT=1 -D_XOPEN_SOURCE=700 -D_YAP_NOT_INSTALLED_=1 -DlibYap_EXPORTS -fPIC -I/Users/vsc/git/yap-6.3 -I/Users/vsc/git/yap-6.3/H -I/Users/vsc/git/yap-6.3/include -I/Users/vsc/git/yap-6.3/os -I/Users/vsc/git/yap-6.3/OPTYap -I/usr/local/include -I/usr/local/opt/readline/include -I/Users/vsc/git/yap-6.3/JIT -I/Users/vsc/git/yap-6.3/JIT/HPP -Wall -Wstrict-prototypes -Wmissing-prototypes -fexceptions -o CMakeFiles/libYap.dir/os/pl-buffer.c.o -c /Users/vsc/git/yap-6.3/os/pl-buffer.c", - "file": "/Users/vsc/git/yap-6.3/os/pl-buffer.c" -}, -{ - "directory": "/Users/vsc/git/yap-6.3", - "command": "/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/cc -DCOROUTINING=1 -DDEPTH_LIMIT=1 -DGNU_SOURCE=1 -DHAVE_CONFIG_H -DRATIONAL_TREES=1 -DTABLING=1 -DTHREADEAD_CODE=1 -DYAP_JIT=1 -D_XOPEN_SOURCE=700 -D_YAP_NOT_INSTALLED_=1 -DlibYap_EXPORTS -fPIC -I/Users/vsc/git/yap-6.3 -I/Users/vsc/git/yap-6.3/H -I/Users/vsc/git/yap-6.3/include -I/Users/vsc/git/yap-6.3/os -I/Users/vsc/git/yap-6.3/OPTYap -I/usr/local/include -I/usr/local/opt/readline/include -I/Users/vsc/git/yap-6.3/JIT -I/Users/vsc/git/yap-6.3/JIT/HPP -Wall -Wstrict-prototypes -Wmissing-prototypes -fexceptions -o CMakeFiles/libYap.dir/os/pl-codelist.c.o -c /Users/vsc/git/yap-6.3/os/pl-codelist.c", - "file": "/Users/vsc/git/yap-6.3/os/pl-codelist.c" -}, -{ - "directory": "/Users/vsc/git/yap-6.3", - "command": "/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/cc -DCOROUTINING=1 -DDEPTH_LIMIT=1 -DGNU_SOURCE=1 -DHAVE_CONFIG_H -DRATIONAL_TREES=1 -DTABLING=1 -DTHREADEAD_CODE=1 -DYAP_JIT=1 -D_XOPEN_SOURCE=700 -D_YAP_NOT_INSTALLED_=1 -DlibYap_EXPORTS -fPIC -I/Users/vsc/git/yap-6.3 -I/Users/vsc/git/yap-6.3/H -I/Users/vsc/git/yap-6.3/include -I/Users/vsc/git/yap-6.3/os -I/Users/vsc/git/yap-6.3/OPTYap -I/usr/local/include -I/usr/local/opt/readline/include -I/Users/vsc/git/yap-6.3/JIT -I/Users/vsc/git/yap-6.3/JIT/HPP -Wall -Wstrict-prototypes -Wmissing-prototypes -fexceptions -o CMakeFiles/libYap.dir/os/pl-ctype.c.o -c /Users/vsc/git/yap-6.3/os/pl-ctype.c", - "file": "/Users/vsc/git/yap-6.3/os/pl-ctype.c" -}, -{ - "directory": "/Users/vsc/git/yap-6.3", - "command": "/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/cc -DCOROUTINING=1 -DDEPTH_LIMIT=1 -DGNU_SOURCE=1 -DHAVE_CONFIG_H -DRATIONAL_TREES=1 -DTABLING=1 -DTHREADEAD_CODE=1 -DYAP_JIT=1 -D_XOPEN_SOURCE=700 -D_YAP_NOT_INSTALLED_=1 -DlibYap_EXPORTS -fPIC -I/Users/vsc/git/yap-6.3 -I/Users/vsc/git/yap-6.3/H -I/Users/vsc/git/yap-6.3/include -I/Users/vsc/git/yap-6.3/os -I/Users/vsc/git/yap-6.3/OPTYap -I/usr/local/include -I/usr/local/opt/readline/include -I/Users/vsc/git/yap-6.3/JIT -I/Users/vsc/git/yap-6.3/JIT/HPP -Wall -Wstrict-prototypes -Wmissing-prototypes -fexceptions -o CMakeFiles/libYap.dir/os/pl-dtoa.c.o -c /Users/vsc/git/yap-6.3/os/pl-dtoa.c", - "file": "/Users/vsc/git/yap-6.3/os/pl-dtoa.c" -}, -{ - "directory": "/Users/vsc/git/yap-6.3", - "command": "/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/cc -DCOROUTINING=1 -DDEPTH_LIMIT=1 -DGNU_SOURCE=1 -DHAVE_CONFIG_H -DRATIONAL_TREES=1 -DTABLING=1 -DTHREADEAD_CODE=1 -DYAP_JIT=1 -D_XOPEN_SOURCE=700 -D_YAP_NOT_INSTALLED_=1 -DlibYap_EXPORTS -fPIC -I/Users/vsc/git/yap-6.3 -I/Users/vsc/git/yap-6.3/H -I/Users/vsc/git/yap-6.3/include -I/Users/vsc/git/yap-6.3/os -I/Users/vsc/git/yap-6.3/OPTYap -I/usr/local/include -I/usr/local/opt/readline/include -I/Users/vsc/git/yap-6.3/JIT -I/Users/vsc/git/yap-6.3/JIT/HPP -Wall -Wstrict-prototypes -Wmissing-prototypes -fexceptions -o CMakeFiles/libYap.dir/os/pl-error.c.o -c /Users/vsc/git/yap-6.3/os/pl-error.c", - "file": "/Users/vsc/git/yap-6.3/os/pl-error.c" -}, -{ - "directory": "/Users/vsc/git/yap-6.3", - "command": "/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/cc -DCOROUTINING=1 -DDEPTH_LIMIT=1 -DGNU_SOURCE=1 -DHAVE_CONFIG_H -DRATIONAL_TREES=1 -DTABLING=1 -DTHREADEAD_CODE=1 -DYAP_JIT=1 -D_XOPEN_SOURCE=700 -D_YAP_NOT_INSTALLED_=1 -DlibYap_EXPORTS -fPIC -I/Users/vsc/git/yap-6.3 -I/Users/vsc/git/yap-6.3/H -I/Users/vsc/git/yap-6.3/include -I/Users/vsc/git/yap-6.3/os -I/Users/vsc/git/yap-6.3/OPTYap -I/usr/local/include -I/usr/local/opt/readline/include -I/Users/vsc/git/yap-6.3/JIT -I/Users/vsc/git/yap-6.3/JIT/HPP -Wall -Wstrict-prototypes -Wmissing-prototypes -fexceptions -o CMakeFiles/libYap.dir/os/pl-file.c.o -c /Users/vsc/git/yap-6.3/os/pl-file.c", - "file": "/Users/vsc/git/yap-6.3/os/pl-file.c" -}, -{ - "directory": "/Users/vsc/git/yap-6.3", - "command": "/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/cc -DCOROUTINING=1 -DDEPTH_LIMIT=1 -DGNU_SOURCE=1 -DHAVE_CONFIG_H -DRATIONAL_TREES=1 -DTABLING=1 -DTHREADEAD_CODE=1 -DYAP_JIT=1 -D_XOPEN_SOURCE=700 -D_YAP_NOT_INSTALLED_=1 -DlibYap_EXPORTS -fPIC -I/Users/vsc/git/yap-6.3 -I/Users/vsc/git/yap-6.3/H -I/Users/vsc/git/yap-6.3/include -I/Users/vsc/git/yap-6.3/os -I/Users/vsc/git/yap-6.3/OPTYap -I/usr/local/include -I/usr/local/opt/readline/include -I/Users/vsc/git/yap-6.3/JIT -I/Users/vsc/git/yap-6.3/JIT/HPP -Wall -Wstrict-prototypes -Wmissing-prototypes -fexceptions -o CMakeFiles/libYap.dir/os/pl-files.c.o -c /Users/vsc/git/yap-6.3/os/pl-files.c", - "file": "/Users/vsc/git/yap-6.3/os/pl-files.c" -}, -{ - "directory": "/Users/vsc/git/yap-6.3", - "command": "/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/cc -DCOROUTINING=1 -DDEPTH_LIMIT=1 -DGNU_SOURCE=1 -DHAVE_CONFIG_H -DRATIONAL_TREES=1 -DTABLING=1 -DTHREADEAD_CODE=1 -DYAP_JIT=1 -D_XOPEN_SOURCE=700 -D_YAP_NOT_INSTALLED_=1 -DlibYap_EXPORTS -fPIC -I/Users/vsc/git/yap-6.3 -I/Users/vsc/git/yap-6.3/H -I/Users/vsc/git/yap-6.3/include -I/Users/vsc/git/yap-6.3/os -I/Users/vsc/git/yap-6.3/OPTYap -I/usr/local/include -I/usr/local/opt/readline/include -I/Users/vsc/git/yap-6.3/JIT -I/Users/vsc/git/yap-6.3/JIT/HPP -Wall -Wstrict-prototypes -Wmissing-prototypes -fexceptions -o CMakeFiles/libYap.dir/os/pl-fmt.c.o -c /Users/vsc/git/yap-6.3/os/pl-fmt.c", - "file": "/Users/vsc/git/yap-6.3/os/pl-fmt.c" -}, -{ - "directory": "/Users/vsc/git/yap-6.3", - "command": "/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/cc -DCOROUTINING=1 -DDEPTH_LIMIT=1 -DGNU_SOURCE=1 -DHAVE_CONFIG_H -DRATIONAL_TREES=1 -DTABLING=1 -DTHREADEAD_CODE=1 -DYAP_JIT=1 -D_XOPEN_SOURCE=700 -D_YAP_NOT_INSTALLED_=1 -DlibYap_EXPORTS -fPIC -I/Users/vsc/git/yap-6.3 -I/Users/vsc/git/yap-6.3/H -I/Users/vsc/git/yap-6.3/include -I/Users/vsc/git/yap-6.3/os -I/Users/vsc/git/yap-6.3/OPTYap -I/usr/local/include -I/usr/local/opt/readline/include -I/Users/vsc/git/yap-6.3/JIT -I/Users/vsc/git/yap-6.3/JIT/HPP -Wall -Wstrict-prototypes -Wmissing-prototypes -fexceptions -o CMakeFiles/libYap.dir/os/pl-glob.c.o -c /Users/vsc/git/yap-6.3/os/pl-glob.c", - "file": "/Users/vsc/git/yap-6.3/os/pl-glob.c" -}, -{ - "directory": "/Users/vsc/git/yap-6.3", - "command": "/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/cc -DCOROUTINING=1 -DDEPTH_LIMIT=1 -DGNU_SOURCE=1 -DHAVE_CONFIG_H -DRATIONAL_TREES=1 -DTABLING=1 -DTHREADEAD_CODE=1 -DYAP_JIT=1 -D_XOPEN_SOURCE=700 -D_YAP_NOT_INSTALLED_=1 -DlibYap_EXPORTS -fPIC -I/Users/vsc/git/yap-6.3 -I/Users/vsc/git/yap-6.3/H -I/Users/vsc/git/yap-6.3/include -I/Users/vsc/git/yap-6.3/os -I/Users/vsc/git/yap-6.3/OPTYap -I/usr/local/include -I/usr/local/opt/readline/include -I/Users/vsc/git/yap-6.3/JIT -I/Users/vsc/git/yap-6.3/JIT/HPP -Wall -Wstrict-prototypes -Wmissing-prototypes -fexceptions -o CMakeFiles/libYap.dir/os/pl-option.c.o -c /Users/vsc/git/yap-6.3/os/pl-option.c", - "file": "/Users/vsc/git/yap-6.3/os/pl-option.c" -}, -{ - "directory": "/Users/vsc/git/yap-6.3", - "command": "/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/cc -DCOROUTINING=1 -DDEPTH_LIMIT=1 -DGNU_SOURCE=1 -DHAVE_CONFIG_H -DRATIONAL_TREES=1 -DTABLING=1 -DTHREADEAD_CODE=1 -DYAP_JIT=1 -D_XOPEN_SOURCE=700 -D_YAP_NOT_INSTALLED_=1 -DlibYap_EXPORTS -fPIC -I/Users/vsc/git/yap-6.3 -I/Users/vsc/git/yap-6.3/H -I/Users/vsc/git/yap-6.3/include -I/Users/vsc/git/yap-6.3/os -I/Users/vsc/git/yap-6.3/OPTYap -I/usr/local/include -I/usr/local/opt/readline/include -I/Users/vsc/git/yap-6.3/JIT -I/Users/vsc/git/yap-6.3/JIT/HPP -Wall -Wstrict-prototypes -Wmissing-prototypes -fexceptions -o CMakeFiles/libYap.dir/os/pl-nt.c.o -c /Users/vsc/git/yap-6.3/os/pl-nt.c", - "file": "/Users/vsc/git/yap-6.3/os/pl-nt.c" -}, -{ - "directory": "/Users/vsc/git/yap-6.3", - "command": "/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/cc -DCOROUTINING=1 -DDEPTH_LIMIT=1 -DGNU_SOURCE=1 -DHAVE_CONFIG_H -DRATIONAL_TREES=1 -DTABLING=1 -DTHREADEAD_CODE=1 -DYAP_JIT=1 -D_XOPEN_SOURCE=700 -D_YAP_NOT_INSTALLED_=1 -DlibYap_EXPORTS -fPIC -I/Users/vsc/git/yap-6.3 -I/Users/vsc/git/yap-6.3/H -I/Users/vsc/git/yap-6.3/include -I/Users/vsc/git/yap-6.3/os -I/Users/vsc/git/yap-6.3/OPTYap -I/usr/local/include -I/usr/local/opt/readline/include -I/Users/vsc/git/yap-6.3/JIT -I/Users/vsc/git/yap-6.3/JIT/HPP -Wall -Wstrict-prototypes -Wmissing-prototypes -fexceptions -o CMakeFiles/libYap.dir/os/pl-os.c.o -c /Users/vsc/git/yap-6.3/os/pl-os.c", - "file": "/Users/vsc/git/yap-6.3/os/pl-os.c" -}, -{ - "directory": "/Users/vsc/git/yap-6.3", - "command": "/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/cc -DCOROUTINING=1 -DDEPTH_LIMIT=1 -DGNU_SOURCE=1 -DHAVE_CONFIG_H -DRATIONAL_TREES=1 -DTABLING=1 -DTHREADEAD_CODE=1 -DYAP_JIT=1 -D_XOPEN_SOURCE=700 -D_YAP_NOT_INSTALLED_=1 -DlibYap_EXPORTS -fPIC -I/Users/vsc/git/yap-6.3 -I/Users/vsc/git/yap-6.3/H -I/Users/vsc/git/yap-6.3/include -I/Users/vsc/git/yap-6.3/os -I/Users/vsc/git/yap-6.3/OPTYap -I/usr/local/include -I/usr/local/opt/readline/include -I/Users/vsc/git/yap-6.3/JIT -I/Users/vsc/git/yap-6.3/JIT/HPP -Wall -Wstrict-prototypes -Wmissing-prototypes -fexceptions -o CMakeFiles/libYap.dir/os/pl-privitf.c.o -c /Users/vsc/git/yap-6.3/os/pl-privitf.c", - "file": "/Users/vsc/git/yap-6.3/os/pl-privitf.c" -}, -{ - "directory": "/Users/vsc/git/yap-6.3", - "command": "/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/cc -DCOROUTINING=1 -DDEPTH_LIMIT=1 -DGNU_SOURCE=1 -DHAVE_CONFIG_H -DRATIONAL_TREES=1 -DTABLING=1 -DTHREADEAD_CODE=1 -DYAP_JIT=1 -D_XOPEN_SOURCE=700 -D_YAP_NOT_INSTALLED_=1 -DlibYap_EXPORTS -fPIC -I/Users/vsc/git/yap-6.3 -I/Users/vsc/git/yap-6.3/H -I/Users/vsc/git/yap-6.3/include -I/Users/vsc/git/yap-6.3/os -I/Users/vsc/git/yap-6.3/OPTYap -I/usr/local/include -I/usr/local/opt/readline/include -I/Users/vsc/git/yap-6.3/JIT -I/Users/vsc/git/yap-6.3/JIT/HPP -Wall -Wstrict-prototypes -Wmissing-prototypes -fexceptions -o CMakeFiles/libYap.dir/os/pl-prologflag.c.o -c /Users/vsc/git/yap-6.3/os/pl-prologflag.c", - "file": "/Users/vsc/git/yap-6.3/os/pl-prologflag.c" -}, -{ - "directory": "/Users/vsc/git/yap-6.3", - "command": "/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/cc -DCOROUTINING=1 -DDEPTH_LIMIT=1 -DGNU_SOURCE=1 -DHAVE_CONFIG_H -DRATIONAL_TREES=1 -DTABLING=1 -DTHREADEAD_CODE=1 -DYAP_JIT=1 -D_XOPEN_SOURCE=700 -D_YAP_NOT_INSTALLED_=1 -DlibYap_EXPORTS -fPIC -I/Users/vsc/git/yap-6.3 -I/Users/vsc/git/yap-6.3/H -I/Users/vsc/git/yap-6.3/include -I/Users/vsc/git/yap-6.3/os -I/Users/vsc/git/yap-6.3/OPTYap -I/usr/local/include -I/usr/local/opt/readline/include -I/Users/vsc/git/yap-6.3/JIT -I/Users/vsc/git/yap-6.3/JIT/HPP -Wall -Wstrict-prototypes -Wmissing-prototypes -fexceptions -o CMakeFiles/libYap.dir/os/pl-read.c.o -c /Users/vsc/git/yap-6.3/os/pl-read.c", - "file": "/Users/vsc/git/yap-6.3/os/pl-read.c" -}, -{ - "directory": "/Users/vsc/git/yap-6.3", - "command": "/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/cc -DCOROUTINING=1 -DDEPTH_LIMIT=1 -DGNU_SOURCE=1 -DHAVE_CONFIG_H -DRATIONAL_TREES=1 -DTABLING=1 -DTHREADEAD_CODE=1 -DYAP_JIT=1 -D_XOPEN_SOURCE=700 -D_YAP_NOT_INSTALLED_=1 -DlibYap_EXPORTS -fPIC -I/Users/vsc/git/yap-6.3 -I/Users/vsc/git/yap-6.3/H -I/Users/vsc/git/yap-6.3/include -I/Users/vsc/git/yap-6.3/os -I/Users/vsc/git/yap-6.3/OPTYap -I/usr/local/include -I/usr/local/opt/readline/include -I/Users/vsc/git/yap-6.3/JIT -I/Users/vsc/git/yap-6.3/JIT/HPP -Wall -Wstrict-prototypes -Wmissing-prototypes -fexceptions -o CMakeFiles/libYap.dir/os/pl-rl.c.o -c /Users/vsc/git/yap-6.3/os/pl-rl.c", - "file": "/Users/vsc/git/yap-6.3/os/pl-rl.c" -}, -{ - "directory": "/Users/vsc/git/yap-6.3", - "command": "/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/cc -DCOROUTINING=1 -DDEPTH_LIMIT=1 -DGNU_SOURCE=1 -DHAVE_CONFIG_H -DRATIONAL_TREES=1 -DTABLING=1 -DTHREADEAD_CODE=1 -DYAP_JIT=1 -D_XOPEN_SOURCE=700 -D_YAP_NOT_INSTALLED_=1 -DlibYap_EXPORTS -fPIC -I/Users/vsc/git/yap-6.3 -I/Users/vsc/git/yap-6.3/H -I/Users/vsc/git/yap-6.3/include -I/Users/vsc/git/yap-6.3/os -I/Users/vsc/git/yap-6.3/OPTYap -I/usr/local/include -I/usr/local/opt/readline/include -I/Users/vsc/git/yap-6.3/JIT -I/Users/vsc/git/yap-6.3/JIT/HPP -Wall -Wstrict-prototypes -Wmissing-prototypes -fexceptions -o CMakeFiles/libYap.dir/os/pl-stream.c.o -c /Users/vsc/git/yap-6.3/os/pl-stream.c", - "file": "/Users/vsc/git/yap-6.3/os/pl-stream.c" -}, -{ - "directory": "/Users/vsc/git/yap-6.3", - "command": "/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/cc -DCOROUTINING=1 -DDEPTH_LIMIT=1 -DGNU_SOURCE=1 -DHAVE_CONFIG_H -DRATIONAL_TREES=1 -DTABLING=1 -DTHREADEAD_CODE=1 -DYAP_JIT=1 -D_XOPEN_SOURCE=700 -D_YAP_NOT_INSTALLED_=1 -DlibYap_EXPORTS -fPIC -I/Users/vsc/git/yap-6.3 -I/Users/vsc/git/yap-6.3/H -I/Users/vsc/git/yap-6.3/include -I/Users/vsc/git/yap-6.3/os -I/Users/vsc/git/yap-6.3/OPTYap -I/usr/local/include -I/usr/local/opt/readline/include -I/Users/vsc/git/yap-6.3/JIT -I/Users/vsc/git/yap-6.3/JIT/HPP -Wall -Wstrict-prototypes -Wmissing-prototypes -fexceptions -o CMakeFiles/libYap.dir/os/pl-string.c.o -c /Users/vsc/git/yap-6.3/os/pl-string.c", - "file": "/Users/vsc/git/yap-6.3/os/pl-string.c" -}, -{ - "directory": "/Users/vsc/git/yap-6.3", - "command": "/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/cc -DCOROUTINING=1 -DDEPTH_LIMIT=1 -DGNU_SOURCE=1 -DHAVE_CONFIG_H -DRATIONAL_TREES=1 -DTABLING=1 -DTHREADEAD_CODE=1 -DYAP_JIT=1 -D_XOPEN_SOURCE=700 -D_YAP_NOT_INSTALLED_=1 -DlibYap_EXPORTS -fPIC -I/Users/vsc/git/yap-6.3 -I/Users/vsc/git/yap-6.3/H -I/Users/vsc/git/yap-6.3/include -I/Users/vsc/git/yap-6.3/os -I/Users/vsc/git/yap-6.3/OPTYap -I/usr/local/include -I/usr/local/opt/readline/include -I/Users/vsc/git/yap-6.3/JIT -I/Users/vsc/git/yap-6.3/JIT/HPP -Wall -Wstrict-prototypes -Wmissing-prototypes -fexceptions -o CMakeFiles/libYap.dir/os/pl-table.c.o -c /Users/vsc/git/yap-6.3/os/pl-table.c", - "file": "/Users/vsc/git/yap-6.3/os/pl-table.c" -}, -{ - "directory": "/Users/vsc/git/yap-6.3", - "command": "/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/cc -DCOROUTINING=1 -DDEPTH_LIMIT=1 -DGNU_SOURCE=1 -DHAVE_CONFIG_H -DRATIONAL_TREES=1 -DTABLING=1 -DTHREADEAD_CODE=1 -DYAP_JIT=1 -D_XOPEN_SOURCE=700 -D_YAP_NOT_INSTALLED_=1 -DlibYap_EXPORTS -fPIC -I/Users/vsc/git/yap-6.3 -I/Users/vsc/git/yap-6.3/H -I/Users/vsc/git/yap-6.3/include -I/Users/vsc/git/yap-6.3/os -I/Users/vsc/git/yap-6.3/OPTYap -I/usr/local/include -I/usr/local/opt/readline/include -I/Users/vsc/git/yap-6.3/JIT -I/Users/vsc/git/yap-6.3/JIT/HPP -Wall -Wstrict-prototypes -Wmissing-prototypes -fexceptions -o CMakeFiles/libYap.dir/os/pl-tai.c.o -c /Users/vsc/git/yap-6.3/os/pl-tai.c", - "file": "/Users/vsc/git/yap-6.3/os/pl-tai.c" -}, -{ - "directory": "/Users/vsc/git/yap-6.3", - "command": "/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/cc -DCOROUTINING=1 -DDEPTH_LIMIT=1 -DGNU_SOURCE=1 -DHAVE_CONFIG_H -DRATIONAL_TREES=1 -DTABLING=1 -DTHREADEAD_CODE=1 -DYAP_JIT=1 -D_XOPEN_SOURCE=700 -D_YAP_NOT_INSTALLED_=1 -DlibYap_EXPORTS -fPIC -I/Users/vsc/git/yap-6.3 -I/Users/vsc/git/yap-6.3/H -I/Users/vsc/git/yap-6.3/include -I/Users/vsc/git/yap-6.3/os -I/Users/vsc/git/yap-6.3/OPTYap -I/usr/local/include -I/usr/local/opt/readline/include -I/Users/vsc/git/yap-6.3/JIT -I/Users/vsc/git/yap-6.3/JIT/HPP -Wall -Wstrict-prototypes -Wmissing-prototypes -fexceptions -o CMakeFiles/libYap.dir/os/pl-text.c.o -c /Users/vsc/git/yap-6.3/os/pl-text.c", - "file": "/Users/vsc/git/yap-6.3/os/pl-text.c" -}, -{ - "directory": "/Users/vsc/git/yap-6.3", - "command": "/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/cc -DCOROUTINING=1 -DDEPTH_LIMIT=1 -DGNU_SOURCE=1 -DHAVE_CONFIG_H -DRATIONAL_TREES=1 -DTABLING=1 -DTHREADEAD_CODE=1 -DYAP_JIT=1 -D_XOPEN_SOURCE=700 -D_YAP_NOT_INSTALLED_=1 -DlibYap_EXPORTS -fPIC -I/Users/vsc/git/yap-6.3 -I/Users/vsc/git/yap-6.3/H -I/Users/vsc/git/yap-6.3/include -I/Users/vsc/git/yap-6.3/os -I/Users/vsc/git/yap-6.3/OPTYap -I/usr/local/include -I/usr/local/opt/readline/include -I/Users/vsc/git/yap-6.3/JIT -I/Users/vsc/git/yap-6.3/JIT/HPP -Wall -Wstrict-prototypes -Wmissing-prototypes -fexceptions -o CMakeFiles/libYap.dir/os/pl-utf8.c.o -c /Users/vsc/git/yap-6.3/os/pl-utf8.c", - "file": "/Users/vsc/git/yap-6.3/os/pl-utf8.c" -}, -{ - "directory": "/Users/vsc/git/yap-6.3", - "command": "/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/cc -DCOROUTINING=1 -DDEPTH_LIMIT=1 -DGNU_SOURCE=1 -DHAVE_CONFIG_H -DRATIONAL_TREES=1 -DTABLING=1 -DTHREADEAD_CODE=1 -DYAP_JIT=1 -D_XOPEN_SOURCE=700 -D_YAP_NOT_INSTALLED_=1 -DlibYap_EXPORTS -fPIC -I/Users/vsc/git/yap-6.3 -I/Users/vsc/git/yap-6.3/H -I/Users/vsc/git/yap-6.3/include -I/Users/vsc/git/yap-6.3/os -I/Users/vsc/git/yap-6.3/OPTYap -I/usr/local/include -I/usr/local/opt/readline/include -I/Users/vsc/git/yap-6.3/JIT -I/Users/vsc/git/yap-6.3/JIT/HPP -Wall -Wstrict-prototypes -Wmissing-prototypes -fexceptions -o CMakeFiles/libYap.dir/os/pl-write.c.o -c /Users/vsc/git/yap-6.3/os/pl-write.c", - "file": "/Users/vsc/git/yap-6.3/os/pl-write.c" -}, -{ - "directory": "/Users/vsc/git/yap-6.3", - "command": "/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/cc -DCOROUTINING=1 -DDEPTH_LIMIT=1 -DGNU_SOURCE=1 -DHAVE_CONFIG_H -DRATIONAL_TREES=1 -DTABLING=1 -DTHREADEAD_CODE=1 -DYAP_JIT=1 -D_XOPEN_SOURCE=700 -D_YAP_NOT_INSTALLED_=1 -DlibYap_EXPORTS -fPIC -I/Users/vsc/git/yap-6.3 -I/Users/vsc/git/yap-6.3/H -I/Users/vsc/git/yap-6.3/include -I/Users/vsc/git/yap-6.3/os -I/Users/vsc/git/yap-6.3/OPTYap -I/usr/local/include -I/usr/local/opt/readline/include -I/Users/vsc/git/yap-6.3/JIT -I/Users/vsc/git/yap-6.3/JIT/HPP -Wall -Wstrict-prototypes -Wmissing-prototypes -fexceptions -o CMakeFiles/libYap.dir/C/pl-yap.c.o -c /Users/vsc/git/yap-6.3/C/pl-yap.c", - "file": "/Users/vsc/git/yap-6.3/C/pl-yap.c" -}, -{ - "directory": "/Users/vsc/git/yap-6.3", - "command": "/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/cc -DCOROUTINING=1 -DDEPTH_LIMIT=1 -DGNU_SOURCE=1 -DHAVE_CONFIG_H -DRATIONAL_TREES=1 -DTABLING=1 -DTHREADEAD_CODE=1 -DYAP_JIT=1 -D_XOPEN_SOURCE=700 -D_YAP_NOT_INSTALLED_=1 -DlibYap_EXPORTS -fPIC -I/Users/vsc/git/yap-6.3 -I/Users/vsc/git/yap-6.3/H -I/Users/vsc/git/yap-6.3/include -I/Users/vsc/git/yap-6.3/os -I/Users/vsc/git/yap-6.3/OPTYap -I/usr/local/include -I/usr/local/opt/readline/include -I/Users/vsc/git/yap-6.3/JIT -I/Users/vsc/git/yap-6.3/JIT/HPP -Wall -Wstrict-prototypes -Wmissing-prototypes -fexceptions -o CMakeFiles/libYap.dir/C/load_foreign.c.o -c /Users/vsc/git/yap-6.3/C/load_foreign.c", - "file": "/Users/vsc/git/yap-6.3/C/load_foreign.c" -}, -{ - "directory": "/Users/vsc/git/yap-6.3", - "command": "/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/cc -DCOROUTINING=1 -DDEPTH_LIMIT=1 -DGNU_SOURCE=1 -DHAVE_CONFIG_H -DRATIONAL_TREES=1 -DTABLING=1 -DTHREADEAD_CODE=1 -DYAP_JIT=1 -D_XOPEN_SOURCE=700 -D_YAP_NOT_INSTALLED_=1 -DlibYap_EXPORTS -fPIC -I/Users/vsc/git/yap-6.3 -I/Users/vsc/git/yap-6.3/H -I/Users/vsc/git/yap-6.3/include -I/Users/vsc/git/yap-6.3/os -I/Users/vsc/git/yap-6.3/OPTYap -I/usr/local/include -I/usr/local/opt/readline/include -I/Users/vsc/git/yap-6.3/JIT -I/Users/vsc/git/yap-6.3/JIT/HPP -Wall -Wstrict-prototypes -Wmissing-prototypes -fexceptions -o CMakeFiles/libYap.dir/C/load_dl.c.o -c /Users/vsc/git/yap-6.3/C/load_dl.c", - "file": "/Users/vsc/git/yap-6.3/C/load_dl.c" -}, -{ - "directory": "/Users/vsc/git/yap-6.3", - "command": "/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/cc -DCOROUTINING=1 -DDEPTH_LIMIT=1 -DGNU_SOURCE=1 -DHAVE_CONFIG_H -DRATIONAL_TREES=1 -DTABLING=1 -DTHREADEAD_CODE=1 -DYAP_JIT=1 -D_XOPEN_SOURCE=700 -D_YAP_NOT_INSTALLED_=1 -DlibYap_EXPORTS -fPIC -I/Users/vsc/git/yap-6.3 -I/Users/vsc/git/yap-6.3/H -I/Users/vsc/git/yap-6.3/include -I/Users/vsc/git/yap-6.3/os -I/Users/vsc/git/yap-6.3/OPTYap -I/usr/local/include -I/usr/local/opt/readline/include -I/Users/vsc/git/yap-6.3/JIT -I/Users/vsc/git/yap-6.3/JIT/HPP -Wall -Wstrict-prototypes -Wmissing-prototypes -fexceptions -o CMakeFiles/libYap.dir/C/load_dld.c.o -c /Users/vsc/git/yap-6.3/C/load_dld.c", - "file": "/Users/vsc/git/yap-6.3/C/load_dld.c" -}, -{ - "directory": "/Users/vsc/git/yap-6.3", - "command": "/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/cc -DCOROUTINING=1 -DDEPTH_LIMIT=1 -DGNU_SOURCE=1 -DHAVE_CONFIG_H -DRATIONAL_TREES=1 -DTABLING=1 -DTHREADEAD_CODE=1 -DYAP_JIT=1 -D_XOPEN_SOURCE=700 -D_YAP_NOT_INSTALLED_=1 -DlibYap_EXPORTS -fPIC -I/Users/vsc/git/yap-6.3 -I/Users/vsc/git/yap-6.3/H -I/Users/vsc/git/yap-6.3/include -I/Users/vsc/git/yap-6.3/os -I/Users/vsc/git/yap-6.3/OPTYap -I/usr/local/include -I/usr/local/opt/readline/include -I/Users/vsc/git/yap-6.3/JIT -I/Users/vsc/git/yap-6.3/JIT/HPP -Wall -Wstrict-prototypes -Wmissing-prototypes -fexceptions -o CMakeFiles/libYap.dir/C/load_dyld.c.o -c /Users/vsc/git/yap-6.3/C/load_dyld.c", - "file": "/Users/vsc/git/yap-6.3/C/load_dyld.c" -}, -{ - "directory": "/Users/vsc/git/yap-6.3", - "command": "/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/cc -DCOROUTINING=1 -DDEPTH_LIMIT=1 -DGNU_SOURCE=1 -DHAVE_CONFIG_H -DRATIONAL_TREES=1 -DTABLING=1 -DTHREADEAD_CODE=1 -DYAP_JIT=1 -D_XOPEN_SOURCE=700 -D_YAP_NOT_INSTALLED_=1 -DlibYap_EXPORTS -fPIC -I/Users/vsc/git/yap-6.3 -I/Users/vsc/git/yap-6.3/H -I/Users/vsc/git/yap-6.3/include -I/Users/vsc/git/yap-6.3/os -I/Users/vsc/git/yap-6.3/OPTYap -I/usr/local/include -I/usr/local/opt/readline/include -I/Users/vsc/git/yap-6.3/JIT -I/Users/vsc/git/yap-6.3/JIT/HPP -Wall -Wstrict-prototypes -Wmissing-prototypes -fexceptions -o CMakeFiles/libYap.dir/C/load_none.c.o -c /Users/vsc/git/yap-6.3/C/load_none.c", - "file": "/Users/vsc/git/yap-6.3/C/load_none.c" -}, -{ - "directory": "/Users/vsc/git/yap-6.3", - "command": "/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/cc -DCOROUTINING=1 -DDEPTH_LIMIT=1 -DGNU_SOURCE=1 -DHAVE_CONFIG_H -DRATIONAL_TREES=1 -DTABLING=1 -DTHREADEAD_CODE=1 -DYAP_JIT=1 -D_XOPEN_SOURCE=700 -D_YAP_NOT_INSTALLED_=1 -DlibYap_EXPORTS -fPIC -I/Users/vsc/git/yap-6.3 -I/Users/vsc/git/yap-6.3/H -I/Users/vsc/git/yap-6.3/include -I/Users/vsc/git/yap-6.3/os -I/Users/vsc/git/yap-6.3/OPTYap -I/usr/local/include -I/usr/local/opt/readline/include -I/Users/vsc/git/yap-6.3/JIT -I/Users/vsc/git/yap-6.3/JIT/HPP -Wall -Wstrict-prototypes -Wmissing-prototypes -fexceptions -o CMakeFiles/libYap.dir/C/load_aout.c.o -c /Users/vsc/git/yap-6.3/C/load_aout.c", - "file": "/Users/vsc/git/yap-6.3/C/load_aout.c" -}, -{ - "directory": "/Users/vsc/git/yap-6.3", - "command": "/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/cc -DCOROUTINING=1 -DDEPTH_LIMIT=1 -DGNU_SOURCE=1 -DHAVE_CONFIG_H -DRATIONAL_TREES=1 -DTABLING=1 -DTHREADEAD_CODE=1 -DYAP_JIT=1 -D_XOPEN_SOURCE=700 -D_YAP_NOT_INSTALLED_=1 -DlibYap_EXPORTS -fPIC -I/Users/vsc/git/yap-6.3 -I/Users/vsc/git/yap-6.3/H -I/Users/vsc/git/yap-6.3/include -I/Users/vsc/git/yap-6.3/os -I/Users/vsc/git/yap-6.3/OPTYap -I/usr/local/include -I/usr/local/opt/readline/include -I/Users/vsc/git/yap-6.3/JIT -I/Users/vsc/git/yap-6.3/JIT/HPP -Wall -Wstrict-prototypes -Wmissing-prototypes -fexceptions -o CMakeFiles/libYap.dir/C/load_aix.c.o -c /Users/vsc/git/yap-6.3/C/load_aix.c", - "file": "/Users/vsc/git/yap-6.3/C/load_aix.c" -}, -{ - "directory": "/Users/vsc/git/yap-6.3", - "command": "/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/cc -DCOROUTINING=1 -DDEPTH_LIMIT=1 -DGNU_SOURCE=1 -DHAVE_CONFIG_H -DRATIONAL_TREES=1 -DTABLING=1 -DTHREADEAD_CODE=1 -DYAP_JIT=1 -D_XOPEN_SOURCE=700 -D_YAP_NOT_INSTALLED_=1 -DlibYap_EXPORTS -fPIC -I/Users/vsc/git/yap-6.3 -I/Users/vsc/git/yap-6.3/H -I/Users/vsc/git/yap-6.3/include -I/Users/vsc/git/yap-6.3/os -I/Users/vsc/git/yap-6.3/OPTYap -I/usr/local/include -I/usr/local/opt/readline/include -I/Users/vsc/git/yap-6.3/JIT -I/Users/vsc/git/yap-6.3/JIT/HPP -Wall -Wstrict-prototypes -Wmissing-prototypes -fexceptions -o CMakeFiles/libYap.dir/C/load_dll.c.o -c /Users/vsc/git/yap-6.3/C/load_dll.c", - "file": "/Users/vsc/git/yap-6.3/C/load_dll.c" -}, -{ - "directory": "/Users/vsc/git/yap-6.3", - "command": "/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/cc -DCOROUTINING=1 -DDEPTH_LIMIT=1 -DGNU_SOURCE=1 -DHAVE_CONFIG_H -DRATIONAL_TREES=1 -DTABLING=1 -DTHREADEAD_CODE=1 -DYAP_JIT=1 -D_XOPEN_SOURCE=700 -D_YAP_NOT_INSTALLED_=1 -DlibYap_EXPORTS -fPIC -I/Users/vsc/git/yap-6.3 -I/Users/vsc/git/yap-6.3/H -I/Users/vsc/git/yap-6.3/include -I/Users/vsc/git/yap-6.3/os -I/Users/vsc/git/yap-6.3/OPTYap -I/usr/local/include -I/usr/local/opt/readline/include -I/Users/vsc/git/yap-6.3/JIT -I/Users/vsc/git/yap-6.3/JIT/HPP -Wall -Wstrict-prototypes -Wmissing-prototypes -fexceptions -o CMakeFiles/libYap.dir/C/load_shl.c.o -c /Users/vsc/git/yap-6.3/C/load_shl.c", - "file": "/Users/vsc/git/yap-6.3/C/load_shl.c" -}, -{ - "directory": "/Users/vsc/git/yap-6.3", - "command": "/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/cc -DCOROUTINING=1 -DDEPTH_LIMIT=1 -DGNU_SOURCE=1 -DHAVE_CONFIG_H -DRATIONAL_TREES=1 -DTABLING=1 -DTHREADEAD_CODE=1 -DYAP_JIT=1 -D_XOPEN_SOURCE=700 -D_YAP_NOT_INSTALLED_=1 -DlibYap_EXPORTS -fPIC -I/Users/vsc/git/yap-6.3 -I/Users/vsc/git/yap-6.3/H -I/Users/vsc/git/yap-6.3/include -I/Users/vsc/git/yap-6.3/os -I/Users/vsc/git/yap-6.3/OPTYap -I/usr/local/include -I/usr/local/opt/readline/include -I/Users/vsc/git/yap-6.3/JIT -I/Users/vsc/git/yap-6.3/JIT/HPP -Wall -Wstrict-prototypes -Wmissing-prototypes -fexceptions -o CMakeFiles/libYap.dir/C/c_interface.c.o -c /Users/vsc/git/yap-6.3/C/c_interface.c", - "file": "/Users/vsc/git/yap-6.3/C/c_interface.c" -}, -{ - "directory": "/Users/vsc/git/yap-6.3", - "command": "/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/cc -DCOROUTINING=1 -DDEPTH_LIMIT=1 -DGNU_SOURCE=1 -DHAVE_CONFIG_H -DRATIONAL_TREES=1 -DTABLING=1 -DTHREADEAD_CODE=1 -DYAP_JIT=1 -D_XOPEN_SOURCE=700 -D_YAP_NOT_INSTALLED_=1 -DlibYap_EXPORTS -fPIC -I/Users/vsc/git/yap-6.3 -I/Users/vsc/git/yap-6.3/H -I/Users/vsc/git/yap-6.3/include -I/Users/vsc/git/yap-6.3/os -I/Users/vsc/git/yap-6.3/OPTYap -I/usr/local/include -I/usr/local/opt/readline/include -I/Users/vsc/git/yap-6.3/JIT -I/Users/vsc/git/yap-6.3/JIT/HPP -Wall -Wstrict-prototypes -Wmissing-prototypes -fexceptions -o CMakeFiles/libYap.dir/C/clause_list.c.o -c /Users/vsc/git/yap-6.3/C/clause_list.c", - "file": "/Users/vsc/git/yap-6.3/C/clause_list.c" -}, -{ - "directory": "/Users/vsc/git/yap-6.3", - "command": "/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/cc -DCOROUTINING=1 -DDEPTH_LIMIT=1 -DGNU_SOURCE=1 -DHAVE_CONFIG_H -DRATIONAL_TREES=1 -DTABLING=1 -DTHREADEAD_CODE=1 -DYAP_JIT=1 -D_XOPEN_SOURCE=700 -D_YAP_NOT_INSTALLED_=1 -DlibYap_EXPORTS -fPIC -I/Users/vsc/git/yap-6.3 -I/Users/vsc/git/yap-6.3/H -I/Users/vsc/git/yap-6.3/include -I/Users/vsc/git/yap-6.3/os -I/Users/vsc/git/yap-6.3/OPTYap -I/usr/local/include -I/usr/local/opt/readline/include -I/Users/vsc/git/yap-6.3/JIT -I/Users/vsc/git/yap-6.3/JIT/HPP -Wall -Wstrict-prototypes -Wmissing-prototypes -fexceptions -o CMakeFiles/libYap.dir/OPTYap/or.memory.c.o -c /Users/vsc/git/yap-6.3/OPTYap/or.memory.c", - "file": "/Users/vsc/git/yap-6.3/OPTYap/or.memory.c" -}, -{ - "directory": "/Users/vsc/git/yap-6.3", - "command": "/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/cc -DCOROUTINING=1 -DDEPTH_LIMIT=1 -DGNU_SOURCE=1 -DHAVE_CONFIG_H -DRATIONAL_TREES=1 -DTABLING=1 -DTHREADEAD_CODE=1 -DYAP_JIT=1 -D_XOPEN_SOURCE=700 -D_YAP_NOT_INSTALLED_=1 -DlibYap_EXPORTS -fPIC -I/Users/vsc/git/yap-6.3 -I/Users/vsc/git/yap-6.3/H -I/Users/vsc/git/yap-6.3/include -I/Users/vsc/git/yap-6.3/os -I/Users/vsc/git/yap-6.3/OPTYap -I/usr/local/include -I/usr/local/opt/readline/include -I/Users/vsc/git/yap-6.3/JIT -I/Users/vsc/git/yap-6.3/JIT/HPP -Wall -Wstrict-prototypes -Wmissing-prototypes -fexceptions -o CMakeFiles/libYap.dir/OPTYap/opt.init.c.o -c /Users/vsc/git/yap-6.3/OPTYap/opt.init.c", - "file": "/Users/vsc/git/yap-6.3/OPTYap/opt.init.c" -}, -{ - "directory": "/Users/vsc/git/yap-6.3", - "command": "/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/cc -DCOROUTINING=1 -DDEPTH_LIMIT=1 -DGNU_SOURCE=1 -DHAVE_CONFIG_H -DRATIONAL_TREES=1 -DTABLING=1 -DTHREADEAD_CODE=1 -DYAP_JIT=1 -D_XOPEN_SOURCE=700 -D_YAP_NOT_INSTALLED_=1 -DlibYap_EXPORTS -fPIC -I/Users/vsc/git/yap-6.3 -I/Users/vsc/git/yap-6.3/H -I/Users/vsc/git/yap-6.3/include -I/Users/vsc/git/yap-6.3/os -I/Users/vsc/git/yap-6.3/OPTYap -I/usr/local/include -I/usr/local/opt/readline/include -I/Users/vsc/git/yap-6.3/JIT -I/Users/vsc/git/yap-6.3/JIT/HPP -Wall -Wstrict-prototypes -Wmissing-prototypes -fexceptions -o CMakeFiles/libYap.dir/OPTYap/opt.preds.c.o -c /Users/vsc/git/yap-6.3/OPTYap/opt.preds.c", - "file": "/Users/vsc/git/yap-6.3/OPTYap/opt.preds.c" -}, -{ - "directory": "/Users/vsc/git/yap-6.3", - "command": "/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/cc -DCOROUTINING=1 -DDEPTH_LIMIT=1 -DGNU_SOURCE=1 -DHAVE_CONFIG_H -DRATIONAL_TREES=1 -DTABLING=1 -DTHREADEAD_CODE=1 -DYAP_JIT=1 -D_XOPEN_SOURCE=700 -D_YAP_NOT_INSTALLED_=1 -DlibYap_EXPORTS -fPIC -I/Users/vsc/git/yap-6.3 -I/Users/vsc/git/yap-6.3/H -I/Users/vsc/git/yap-6.3/include -I/Users/vsc/git/yap-6.3/os -I/Users/vsc/git/yap-6.3/OPTYap -I/usr/local/include -I/usr/local/opt/readline/include -I/Users/vsc/git/yap-6.3/JIT -I/Users/vsc/git/yap-6.3/JIT/HPP -Wall -Wstrict-prototypes -Wmissing-prototypes -fexceptions -o CMakeFiles/libYap.dir/OPTYap/or.copy_engine.c.o -c /Users/vsc/git/yap-6.3/OPTYap/or.copy_engine.c", - "file": "/Users/vsc/git/yap-6.3/OPTYap/or.copy_engine.c" -}, -{ - "directory": "/Users/vsc/git/yap-6.3", - "command": "/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/cc -DCOROUTINING=1 -DDEPTH_LIMIT=1 -DGNU_SOURCE=1 -DHAVE_CONFIG_H -DRATIONAL_TREES=1 -DTABLING=1 -DTHREADEAD_CODE=1 -DYAP_JIT=1 -D_XOPEN_SOURCE=700 -D_YAP_NOT_INSTALLED_=1 -DlibYap_EXPORTS -fPIC -I/Users/vsc/git/yap-6.3 -I/Users/vsc/git/yap-6.3/H -I/Users/vsc/git/yap-6.3/include -I/Users/vsc/git/yap-6.3/os -I/Users/vsc/git/yap-6.3/OPTYap -I/usr/local/include -I/usr/local/opt/readline/include -I/Users/vsc/git/yap-6.3/JIT -I/Users/vsc/git/yap-6.3/JIT/HPP -Wall -Wstrict-prototypes -Wmissing-prototypes -fexceptions -o CMakeFiles/libYap.dir/OPTYap/or.cow_engine.c.o -c /Users/vsc/git/yap-6.3/OPTYap/or.cow_engine.c", - "file": "/Users/vsc/git/yap-6.3/OPTYap/or.cow_engine.c" -}, -{ - "directory": "/Users/vsc/git/yap-6.3", - "command": "/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/cc -DCOROUTINING=1 -DDEPTH_LIMIT=1 -DGNU_SOURCE=1 -DHAVE_CONFIG_H -DRATIONAL_TREES=1 -DTABLING=1 -DTHREADEAD_CODE=1 -DYAP_JIT=1 -D_XOPEN_SOURCE=700 -D_YAP_NOT_INSTALLED_=1 -DlibYap_EXPORTS -fPIC -I/Users/vsc/git/yap-6.3 -I/Users/vsc/git/yap-6.3/H -I/Users/vsc/git/yap-6.3/include -I/Users/vsc/git/yap-6.3/os -I/Users/vsc/git/yap-6.3/OPTYap -I/usr/local/include -I/usr/local/opt/readline/include -I/Users/vsc/git/yap-6.3/JIT -I/Users/vsc/git/yap-6.3/JIT/HPP -Wall -Wstrict-prototypes -Wmissing-prototypes -fexceptions -o CMakeFiles/libYap.dir/OPTYap/or.sba_engine.c.o -c /Users/vsc/git/yap-6.3/OPTYap/or.sba_engine.c", - "file": "/Users/vsc/git/yap-6.3/OPTYap/or.sba_engine.c" -}, -{ - "directory": "/Users/vsc/git/yap-6.3", - "command": "/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/cc -DCOROUTINING=1 -DDEPTH_LIMIT=1 -DGNU_SOURCE=1 -DHAVE_CONFIG_H -DRATIONAL_TREES=1 -DTABLING=1 -DTHREADEAD_CODE=1 -DYAP_JIT=1 -D_XOPEN_SOURCE=700 -D_YAP_NOT_INSTALLED_=1 -DlibYap_EXPORTS -fPIC -I/Users/vsc/git/yap-6.3 -I/Users/vsc/git/yap-6.3/H -I/Users/vsc/git/yap-6.3/include -I/Users/vsc/git/yap-6.3/os -I/Users/vsc/git/yap-6.3/OPTYap -I/usr/local/include -I/usr/local/opt/readline/include -I/Users/vsc/git/yap-6.3/JIT -I/Users/vsc/git/yap-6.3/JIT/HPP -Wall -Wstrict-prototypes -Wmissing-prototypes -fexceptions -o CMakeFiles/libYap.dir/OPTYap/or.thread_engine.c.o -c /Users/vsc/git/yap-6.3/OPTYap/or.thread_engine.c", - "file": "/Users/vsc/git/yap-6.3/OPTYap/or.thread_engine.c" -}, -{ - "directory": "/Users/vsc/git/yap-6.3", - "command": "/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/cc -DCOROUTINING=1 -DDEPTH_LIMIT=1 -DGNU_SOURCE=1 -DHAVE_CONFIG_H -DRATIONAL_TREES=1 -DTABLING=1 -DTHREADEAD_CODE=1 -DYAP_JIT=1 -D_XOPEN_SOURCE=700 -D_YAP_NOT_INSTALLED_=1 -DlibYap_EXPORTS -fPIC -I/Users/vsc/git/yap-6.3 -I/Users/vsc/git/yap-6.3/H -I/Users/vsc/git/yap-6.3/include -I/Users/vsc/git/yap-6.3/os -I/Users/vsc/git/yap-6.3/OPTYap -I/usr/local/include -I/usr/local/opt/readline/include -I/Users/vsc/git/yap-6.3/JIT -I/Users/vsc/git/yap-6.3/JIT/HPP -Wall -Wstrict-prototypes -Wmissing-prototypes -fexceptions -o CMakeFiles/libYap.dir/OPTYap/or.scheduler.c.o -c /Users/vsc/git/yap-6.3/OPTYap/or.scheduler.c", - "file": "/Users/vsc/git/yap-6.3/OPTYap/or.scheduler.c" -}, -{ - "directory": "/Users/vsc/git/yap-6.3", - "command": "/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/cc -DCOROUTINING=1 -DDEPTH_LIMIT=1 -DGNU_SOURCE=1 -DHAVE_CONFIG_H -DRATIONAL_TREES=1 -DTABLING=1 -DTHREADEAD_CODE=1 -DYAP_JIT=1 -D_XOPEN_SOURCE=700 -D_YAP_NOT_INSTALLED_=1 -DlibYap_EXPORTS -fPIC -I/Users/vsc/git/yap-6.3 -I/Users/vsc/git/yap-6.3/H -I/Users/vsc/git/yap-6.3/include -I/Users/vsc/git/yap-6.3/os -I/Users/vsc/git/yap-6.3/OPTYap -I/usr/local/include -I/usr/local/opt/readline/include -I/Users/vsc/git/yap-6.3/JIT -I/Users/vsc/git/yap-6.3/JIT/HPP -Wall -Wstrict-prototypes -Wmissing-prototypes -fexceptions -o CMakeFiles/libYap.dir/OPTYap/or.cut.c.o -c /Users/vsc/git/yap-6.3/OPTYap/or.cut.c", - "file": "/Users/vsc/git/yap-6.3/OPTYap/or.cut.c" -}, -{ - "directory": "/Users/vsc/git/yap-6.3", - "command": "/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/cc -DCOROUTINING=1 -DDEPTH_LIMIT=1 -DGNU_SOURCE=1 -DHAVE_CONFIG_H -DRATIONAL_TREES=1 -DTABLING=1 -DTHREADEAD_CODE=1 -DYAP_JIT=1 -D_XOPEN_SOURCE=700 -D_YAP_NOT_INSTALLED_=1 -DlibYap_EXPORTS -fPIC -I/Users/vsc/git/yap-6.3 -I/Users/vsc/git/yap-6.3/H -I/Users/vsc/git/yap-6.3/include -I/Users/vsc/git/yap-6.3/os -I/Users/vsc/git/yap-6.3/OPTYap -I/usr/local/include -I/usr/local/opt/readline/include -I/Users/vsc/git/yap-6.3/JIT -I/Users/vsc/git/yap-6.3/JIT/HPP -Wall -Wstrict-prototypes -Wmissing-prototypes -fexceptions -o CMakeFiles/libYap.dir/OPTYap/tab.tries.c.o -c /Users/vsc/git/yap-6.3/OPTYap/tab.tries.c", - "file": "/Users/vsc/git/yap-6.3/OPTYap/tab.tries.c" -}, -{ - "directory": "/Users/vsc/git/yap-6.3", - "command": "/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/cc -DCOROUTINING=1 -DDEPTH_LIMIT=1 -DGNU_SOURCE=1 -DHAVE_CONFIG_H -DRATIONAL_TREES=1 -DTABLING=1 -DTHREADEAD_CODE=1 -DYAP_JIT=1 -D_XOPEN_SOURCE=700 -D_YAP_NOT_INSTALLED_=1 -DlibYap_EXPORTS -fPIC -I/Users/vsc/git/yap-6.3 -I/Users/vsc/git/yap-6.3/H -I/Users/vsc/git/yap-6.3/include -I/Users/vsc/git/yap-6.3/os -I/Users/vsc/git/yap-6.3/OPTYap -I/usr/local/include -I/usr/local/opt/readline/include -I/Users/vsc/git/yap-6.3/JIT -I/Users/vsc/git/yap-6.3/JIT/HPP -Wall -Wstrict-prototypes -Wmissing-prototypes -fexceptions -o CMakeFiles/libYap.dir/OPTYap/tab.completion.c.o -c /Users/vsc/git/yap-6.3/OPTYap/tab.completion.c", - "file": "/Users/vsc/git/yap-6.3/OPTYap/tab.completion.c" -}, -{ - "directory": "/Users/vsc/git/yap-6.3", - "command": "/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/cc -DCOROUTINING=1 -DDEPTH_LIMIT=1 -DGNU_SOURCE=1 -DHAVE_CONFIG_H -DRATIONAL_TREES=1 -DTABLING=1 -DTHREADEAD_CODE=1 -DYAP_JIT=1 -D_XOPEN_SOURCE=700 -D_YAP_NOT_INSTALLED_=1 -I/Users/vsc/git/yap-6.3 -I/Users/vsc/git/yap-6.3/H -I/Users/vsc/git/yap-6.3/include -I/Users/vsc/git/yap-6.3/os -I/Users/vsc/git/yap-6.3/OPTYap -I/usr/local/include -I/usr/local/opt/readline/include -I/Users/vsc/git/yap-6.3/JIT -I/Users/vsc/git/yap-6.3/JIT/HPP -Wall -Wstrict-prototypes -Wmissing-prototypes -fexceptions -o CMakeFiles/yap-bin.dir/console/yap.c.o -c /Users/vsc/git/yap-6.3/console/yap.c", - "file": "/Users/vsc/git/yap-6.3/console/yap.c" -}, -{ - "directory": "/Users/vsc/git/yap-6.3/os/libtai", - "command": "/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/cc -DCOROUTINING=1 -DDEPTH_LIMIT=1 -DGNU_SOURCE=1 -DHAVE_CONFIG_H -DRATIONAL_TREES=1 -DTHREADEAD_CODE=1 -D_XOPEN_SOURCE=700 -D_YAP_NOT_INSTALLED_=1 -fPIC -I/Users/vsc/git/yap-6.3 -I/Users/vsc/git/yap-6.3/H -I/Users/vsc/git/yap-6.3/include -I/Users/vsc/git/yap-6.3/os -Wall -Wstrict-prototypes -Wmissing-prototypes -fexceptions -o CMakeFiles/libyaptai.dir/tai_add.c.o -c /Users/vsc/git/yap-6.3/os/libtai/tai_add.c", - "file": "/Users/vsc/git/yap-6.3/os/libtai/tai_add.c" -}, -{ - "directory": "/Users/vsc/git/yap-6.3/os/libtai", - "command": "/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/cc -DCOROUTINING=1 -DDEPTH_LIMIT=1 -DGNU_SOURCE=1 -DHAVE_CONFIG_H -DRATIONAL_TREES=1 -DTHREADEAD_CODE=1 -D_XOPEN_SOURCE=700 -D_YAP_NOT_INSTALLED_=1 -fPIC -I/Users/vsc/git/yap-6.3 -I/Users/vsc/git/yap-6.3/H -I/Users/vsc/git/yap-6.3/include -I/Users/vsc/git/yap-6.3/os -Wall -Wstrict-prototypes -Wmissing-prototypes -fexceptions -o CMakeFiles/libyaptai.dir/tai_now.c.o -c /Users/vsc/git/yap-6.3/os/libtai/tai_now.c", - "file": "/Users/vsc/git/yap-6.3/os/libtai/tai_now.c" -}, -{ - "directory": "/Users/vsc/git/yap-6.3/os/libtai", - "command": "/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/cc -DCOROUTINING=1 -DDEPTH_LIMIT=1 -DGNU_SOURCE=1 -DHAVE_CONFIG_H -DRATIONAL_TREES=1 -DTHREADEAD_CODE=1 -D_XOPEN_SOURCE=700 -D_YAP_NOT_INSTALLED_=1 -fPIC -I/Users/vsc/git/yap-6.3 -I/Users/vsc/git/yap-6.3/H -I/Users/vsc/git/yap-6.3/include -I/Users/vsc/git/yap-6.3/os -Wall -Wstrict-prototypes -Wmissing-prototypes -fexceptions -o CMakeFiles/libyaptai.dir/tai_pack.c.o -c /Users/vsc/git/yap-6.3/os/libtai/tai_pack.c", - "file": "/Users/vsc/git/yap-6.3/os/libtai/tai_pack.c" -}, -{ - "directory": "/Users/vsc/git/yap-6.3/os/libtai", - "command": "/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/cc -DCOROUTINING=1 -DDEPTH_LIMIT=1 -DGNU_SOURCE=1 -DHAVE_CONFIG_H -DRATIONAL_TREES=1 -DTHREADEAD_CODE=1 -D_XOPEN_SOURCE=700 -D_YAP_NOT_INSTALLED_=1 -fPIC -I/Users/vsc/git/yap-6.3 -I/Users/vsc/git/yap-6.3/H -I/Users/vsc/git/yap-6.3/include -I/Users/vsc/git/yap-6.3/os -Wall -Wstrict-prototypes -Wmissing-prototypes -fexceptions -o CMakeFiles/libyaptai.dir/tai_sub.c.o -c /Users/vsc/git/yap-6.3/os/libtai/tai_sub.c", - "file": "/Users/vsc/git/yap-6.3/os/libtai/tai_sub.c" -}, -{ - "directory": "/Users/vsc/git/yap-6.3/os/libtai", - "command": "/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/cc -DCOROUTINING=1 -DDEPTH_LIMIT=1 -DGNU_SOURCE=1 -DHAVE_CONFIG_H -DRATIONAL_TREES=1 -DTHREADEAD_CODE=1 -D_XOPEN_SOURCE=700 -D_YAP_NOT_INSTALLED_=1 -fPIC -I/Users/vsc/git/yap-6.3 -I/Users/vsc/git/yap-6.3/H -I/Users/vsc/git/yap-6.3/include -I/Users/vsc/git/yap-6.3/os -Wall -Wstrict-prototypes -Wmissing-prototypes -fexceptions -o CMakeFiles/libyaptai.dir/tai_unpack.c.o -c /Users/vsc/git/yap-6.3/os/libtai/tai_unpack.c", - "file": "/Users/vsc/git/yap-6.3/os/libtai/tai_unpack.c" -}, -{ - "directory": "/Users/vsc/git/yap-6.3/os/libtai", - "command": "/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/cc -DCOROUTINING=1 -DDEPTH_LIMIT=1 -DGNU_SOURCE=1 -DHAVE_CONFIG_H -DRATIONAL_TREES=1 -DTHREADEAD_CODE=1 -D_XOPEN_SOURCE=700 -D_YAP_NOT_INSTALLED_=1 -fPIC -I/Users/vsc/git/yap-6.3 -I/Users/vsc/git/yap-6.3/H -I/Users/vsc/git/yap-6.3/include -I/Users/vsc/git/yap-6.3/os -Wall -Wstrict-prototypes -Wmissing-prototypes -fexceptions -o CMakeFiles/libyaptai.dir/taia_add.c.o -c /Users/vsc/git/yap-6.3/os/libtai/taia_add.c", - "file": "/Users/vsc/git/yap-6.3/os/libtai/taia_add.c" -}, -{ - "directory": "/Users/vsc/git/yap-6.3/os/libtai", - "command": "/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/cc -DCOROUTINING=1 -DDEPTH_LIMIT=1 -DGNU_SOURCE=1 -DHAVE_CONFIG_H -DRATIONAL_TREES=1 -DTHREADEAD_CODE=1 -D_XOPEN_SOURCE=700 -D_YAP_NOT_INSTALLED_=1 -fPIC -I/Users/vsc/git/yap-6.3 -I/Users/vsc/git/yap-6.3/H -I/Users/vsc/git/yap-6.3/include -I/Users/vsc/git/yap-6.3/os -Wall -Wstrict-prototypes -Wmissing-prototypes -fexceptions -o CMakeFiles/libyaptai.dir/taia_approx.c.o -c /Users/vsc/git/yap-6.3/os/libtai/taia_approx.c", - "file": "/Users/vsc/git/yap-6.3/os/libtai/taia_approx.c" -}, -{ - "directory": "/Users/vsc/git/yap-6.3/os/libtai", - "command": "/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/cc -DCOROUTINING=1 -DDEPTH_LIMIT=1 -DGNU_SOURCE=1 -DHAVE_CONFIG_H -DRATIONAL_TREES=1 -DTHREADEAD_CODE=1 -D_XOPEN_SOURCE=700 -D_YAP_NOT_INSTALLED_=1 -fPIC -I/Users/vsc/git/yap-6.3 -I/Users/vsc/git/yap-6.3/H -I/Users/vsc/git/yap-6.3/include -I/Users/vsc/git/yap-6.3/os -Wall -Wstrict-prototypes -Wmissing-prototypes -fexceptions -o CMakeFiles/libyaptai.dir/taia_fmtfrac.c.o -c /Users/vsc/git/yap-6.3/os/libtai/taia_fmtfrac.c", - "file": "/Users/vsc/git/yap-6.3/os/libtai/taia_fmtfrac.c" -}, -{ - "directory": "/Users/vsc/git/yap-6.3/os/libtai", - "command": "/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/cc -DCOROUTINING=1 -DDEPTH_LIMIT=1 -DGNU_SOURCE=1 -DHAVE_CONFIG_H -DRATIONAL_TREES=1 -DTHREADEAD_CODE=1 -D_XOPEN_SOURCE=700 -D_YAP_NOT_INSTALLED_=1 -fPIC -I/Users/vsc/git/yap-6.3 -I/Users/vsc/git/yap-6.3/H -I/Users/vsc/git/yap-6.3/include -I/Users/vsc/git/yap-6.3/os -Wall -Wstrict-prototypes -Wmissing-prototypes -fexceptions -o CMakeFiles/libyaptai.dir/taia_frac.c.o -c /Users/vsc/git/yap-6.3/os/libtai/taia_frac.c", - "file": "/Users/vsc/git/yap-6.3/os/libtai/taia_frac.c" -}, -{ - "directory": "/Users/vsc/git/yap-6.3/os/libtai", - "command": "/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/cc -DCOROUTINING=1 -DDEPTH_LIMIT=1 -DGNU_SOURCE=1 -DHAVE_CONFIG_H -DRATIONAL_TREES=1 -DTHREADEAD_CODE=1 -D_XOPEN_SOURCE=700 -D_YAP_NOT_INSTALLED_=1 -fPIC -I/Users/vsc/git/yap-6.3 -I/Users/vsc/git/yap-6.3/H -I/Users/vsc/git/yap-6.3/include -I/Users/vsc/git/yap-6.3/os -Wall -Wstrict-prototypes -Wmissing-prototypes -fexceptions -o CMakeFiles/libyaptai.dir/taia_half.c.o -c /Users/vsc/git/yap-6.3/os/libtai/taia_half.c", - "file": "/Users/vsc/git/yap-6.3/os/libtai/taia_half.c" -}, -{ - "directory": "/Users/vsc/git/yap-6.3/os/libtai", - "command": "/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/cc -DCOROUTINING=1 -DDEPTH_LIMIT=1 -DGNU_SOURCE=1 -DHAVE_CONFIG_H -DRATIONAL_TREES=1 -DTHREADEAD_CODE=1 -D_XOPEN_SOURCE=700 -D_YAP_NOT_INSTALLED_=1 -fPIC -I/Users/vsc/git/yap-6.3 -I/Users/vsc/git/yap-6.3/H -I/Users/vsc/git/yap-6.3/include -I/Users/vsc/git/yap-6.3/os -Wall -Wstrict-prototypes -Wmissing-prototypes -fexceptions -o CMakeFiles/libyaptai.dir/taia_less.c.o -c /Users/vsc/git/yap-6.3/os/libtai/taia_less.c", - "file": "/Users/vsc/git/yap-6.3/os/libtai/taia_less.c" -}, -{ - "directory": "/Users/vsc/git/yap-6.3/os/libtai", - "command": "/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/cc -DCOROUTINING=1 -DDEPTH_LIMIT=1 -DGNU_SOURCE=1 -DHAVE_CONFIG_H -DRATIONAL_TREES=1 -DTHREADEAD_CODE=1 -D_XOPEN_SOURCE=700 -D_YAP_NOT_INSTALLED_=1 -fPIC -I/Users/vsc/git/yap-6.3 -I/Users/vsc/git/yap-6.3/H -I/Users/vsc/git/yap-6.3/include -I/Users/vsc/git/yap-6.3/os -Wall -Wstrict-prototypes -Wmissing-prototypes -fexceptions -o CMakeFiles/libyaptai.dir/taia_now.c.o -c /Users/vsc/git/yap-6.3/os/libtai/taia_now.c", - "file": "/Users/vsc/git/yap-6.3/os/libtai/taia_now.c" -}, -{ - "directory": "/Users/vsc/git/yap-6.3/os/libtai", - "command": "/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/cc -DCOROUTINING=1 -DDEPTH_LIMIT=1 -DGNU_SOURCE=1 -DHAVE_CONFIG_H -DRATIONAL_TREES=1 -DTHREADEAD_CODE=1 -D_XOPEN_SOURCE=700 -D_YAP_NOT_INSTALLED_=1 -fPIC -I/Users/vsc/git/yap-6.3 -I/Users/vsc/git/yap-6.3/H -I/Users/vsc/git/yap-6.3/include -I/Users/vsc/git/yap-6.3/os -Wall -Wstrict-prototypes -Wmissing-prototypes -fexceptions -o CMakeFiles/libyaptai.dir/taia_pack.c.o -c /Users/vsc/git/yap-6.3/os/libtai/taia_pack.c", - "file": "/Users/vsc/git/yap-6.3/os/libtai/taia_pack.c" -}, -{ - "directory": "/Users/vsc/git/yap-6.3/os/libtai", - "command": "/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/cc -DCOROUTINING=1 -DDEPTH_LIMIT=1 -DGNU_SOURCE=1 -DHAVE_CONFIG_H -DRATIONAL_TREES=1 -DTHREADEAD_CODE=1 -D_XOPEN_SOURCE=700 -D_YAP_NOT_INSTALLED_=1 -fPIC -I/Users/vsc/git/yap-6.3 -I/Users/vsc/git/yap-6.3/H -I/Users/vsc/git/yap-6.3/include -I/Users/vsc/git/yap-6.3/os -Wall -Wstrict-prototypes -Wmissing-prototypes -fexceptions -o CMakeFiles/libyaptai.dir/taia_sub.c.o -c /Users/vsc/git/yap-6.3/os/libtai/taia_sub.c", - "file": "/Users/vsc/git/yap-6.3/os/libtai/taia_sub.c" -}, -{ - "directory": "/Users/vsc/git/yap-6.3/os/libtai", - "command": "/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/cc -DCOROUTINING=1 -DDEPTH_LIMIT=1 -DGNU_SOURCE=1 -DHAVE_CONFIG_H -DRATIONAL_TREES=1 -DTHREADEAD_CODE=1 -D_XOPEN_SOURCE=700 -D_YAP_NOT_INSTALLED_=1 -fPIC -I/Users/vsc/git/yap-6.3 -I/Users/vsc/git/yap-6.3/H -I/Users/vsc/git/yap-6.3/include -I/Users/vsc/git/yap-6.3/os -Wall -Wstrict-prototypes -Wmissing-prototypes -fexceptions -o CMakeFiles/libyaptai.dir/taia_tai.c.o -c /Users/vsc/git/yap-6.3/os/libtai/taia_tai.c", - "file": "/Users/vsc/git/yap-6.3/os/libtai/taia_tai.c" -}, -{ - "directory": "/Users/vsc/git/yap-6.3/os/libtai", - "command": "/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/cc -DCOROUTINING=1 -DDEPTH_LIMIT=1 -DGNU_SOURCE=1 -DHAVE_CONFIG_H -DRATIONAL_TREES=1 -DTHREADEAD_CODE=1 -D_XOPEN_SOURCE=700 -D_YAP_NOT_INSTALLED_=1 -fPIC -I/Users/vsc/git/yap-6.3 -I/Users/vsc/git/yap-6.3/H -I/Users/vsc/git/yap-6.3/include -I/Users/vsc/git/yap-6.3/os -Wall -Wstrict-prototypes -Wmissing-prototypes -fexceptions -o CMakeFiles/libyaptai.dir/taia_unpack.c.o -c /Users/vsc/git/yap-6.3/os/libtai/taia_unpack.c", - "file": "/Users/vsc/git/yap-6.3/os/libtai/taia_unpack.c" -}, -{ - "directory": "/Users/vsc/git/yap-6.3/os/libtai", - "command": "/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/cc -DCOROUTINING=1 -DDEPTH_LIMIT=1 -DGNU_SOURCE=1 -DHAVE_CONFIG_H -DRATIONAL_TREES=1 -DTHREADEAD_CODE=1 -D_XOPEN_SOURCE=700 -D_YAP_NOT_INSTALLED_=1 -fPIC -I/Users/vsc/git/yap-6.3 -I/Users/vsc/git/yap-6.3/H -I/Users/vsc/git/yap-6.3/include -I/Users/vsc/git/yap-6.3/os -Wall -Wstrict-prototypes -Wmissing-prototypes -fexceptions -o CMakeFiles/libyaptai.dir/caldate_fmt.c.o -c /Users/vsc/git/yap-6.3/os/libtai/caldate_fmt.c", - "file": "/Users/vsc/git/yap-6.3/os/libtai/caldate_fmt.c" -}, -{ - "directory": "/Users/vsc/git/yap-6.3/os/libtai", - "command": "/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/cc -DCOROUTINING=1 -DDEPTH_LIMIT=1 -DGNU_SOURCE=1 -DHAVE_CONFIG_H -DRATIONAL_TREES=1 -DTHREADEAD_CODE=1 -D_XOPEN_SOURCE=700 -D_YAP_NOT_INSTALLED_=1 -fPIC -I/Users/vsc/git/yap-6.3 -I/Users/vsc/git/yap-6.3/H -I/Users/vsc/git/yap-6.3/include -I/Users/vsc/git/yap-6.3/os -Wall -Wstrict-prototypes -Wmissing-prototypes -fexceptions -o CMakeFiles/libyaptai.dir/caldate_scan.c.o -c /Users/vsc/git/yap-6.3/os/libtai/caldate_scan.c", - "file": "/Users/vsc/git/yap-6.3/os/libtai/caldate_scan.c" -}, -{ - "directory": "/Users/vsc/git/yap-6.3/os/libtai", - "command": "/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/cc -DCOROUTINING=1 -DDEPTH_LIMIT=1 -DGNU_SOURCE=1 -DHAVE_CONFIG_H -DRATIONAL_TREES=1 -DTHREADEAD_CODE=1 -D_XOPEN_SOURCE=700 -D_YAP_NOT_INSTALLED_=1 -fPIC -I/Users/vsc/git/yap-6.3 -I/Users/vsc/git/yap-6.3/H -I/Users/vsc/git/yap-6.3/include -I/Users/vsc/git/yap-6.3/os -Wall -Wstrict-prototypes -Wmissing-prototypes -fexceptions -o CMakeFiles/libyaptai.dir/caldate_fmjd.c.o -c /Users/vsc/git/yap-6.3/os/libtai/caldate_fmjd.c", - "file": "/Users/vsc/git/yap-6.3/os/libtai/caldate_fmjd.c" -}, -{ - "directory": "/Users/vsc/git/yap-6.3/os/libtai", - "command": "/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/cc -DCOROUTINING=1 -DDEPTH_LIMIT=1 -DGNU_SOURCE=1 -DHAVE_CONFIG_H -DRATIONAL_TREES=1 -DTHREADEAD_CODE=1 -D_XOPEN_SOURCE=700 -D_YAP_NOT_INSTALLED_=1 -fPIC -I/Users/vsc/git/yap-6.3 -I/Users/vsc/git/yap-6.3/H -I/Users/vsc/git/yap-6.3/include -I/Users/vsc/git/yap-6.3/os -Wall -Wstrict-prototypes -Wmissing-prototypes -fexceptions -o CMakeFiles/libyaptai.dir/caldate_mjd.c.o -c /Users/vsc/git/yap-6.3/os/libtai/caldate_mjd.c", - "file": "/Users/vsc/git/yap-6.3/os/libtai/caldate_mjd.c" -}, -{ - "directory": "/Users/vsc/git/yap-6.3/os/libtai", - "command": "/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/cc -DCOROUTINING=1 -DDEPTH_LIMIT=1 -DGNU_SOURCE=1 -DHAVE_CONFIG_H -DRATIONAL_TREES=1 -DTHREADEAD_CODE=1 -D_XOPEN_SOURCE=700 -D_YAP_NOT_INSTALLED_=1 -fPIC -I/Users/vsc/git/yap-6.3 -I/Users/vsc/git/yap-6.3/H -I/Users/vsc/git/yap-6.3/include -I/Users/vsc/git/yap-6.3/os -Wall -Wstrict-prototypes -Wmissing-prototypes -fexceptions -o CMakeFiles/libyaptai.dir/caldate_norm.c.o -c /Users/vsc/git/yap-6.3/os/libtai/caldate_norm.c", - "file": "/Users/vsc/git/yap-6.3/os/libtai/caldate_norm.c" -}, -{ - "directory": "/Users/vsc/git/yap-6.3/os/libtai", - "command": "/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/cc -DCOROUTINING=1 -DDEPTH_LIMIT=1 -DGNU_SOURCE=1 -DHAVE_CONFIG_H -DRATIONAL_TREES=1 -DTHREADEAD_CODE=1 -D_XOPEN_SOURCE=700 -D_YAP_NOT_INSTALLED_=1 -fPIC -I/Users/vsc/git/yap-6.3 -I/Users/vsc/git/yap-6.3/H -I/Users/vsc/git/yap-6.3/include -I/Users/vsc/git/yap-6.3/os -Wall -Wstrict-prototypes -Wmissing-prototypes -fexceptions -o CMakeFiles/libyaptai.dir/caldate_ster.c.o -c /Users/vsc/git/yap-6.3/os/libtai/caldate_ster.c", - "file": "/Users/vsc/git/yap-6.3/os/libtai/caldate_ster.c" -}, -{ - "directory": "/Users/vsc/git/yap-6.3/os/libtai", - "command": "/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/cc -DCOROUTINING=1 -DDEPTH_LIMIT=1 -DGNU_SOURCE=1 -DHAVE_CONFIG_H -DRATIONAL_TREES=1 -DTHREADEAD_CODE=1 -D_XOPEN_SOURCE=700 -D_YAP_NOT_INSTALLED_=1 -fPIC -I/Users/vsc/git/yap-6.3 -I/Users/vsc/git/yap-6.3/H -I/Users/vsc/git/yap-6.3/include -I/Users/vsc/git/yap-6.3/os -Wall -Wstrict-prototypes -Wmissing-prototypes -fexceptions -o CMakeFiles/libyaptai.dir/leapsecs_read.c.o -c /Users/vsc/git/yap-6.3/os/libtai/leapsecs_read.c", - "file": "/Users/vsc/git/yap-6.3/os/libtai/leapsecs_read.c" -}, -{ - "directory": "/Users/vsc/git/yap-6.3/os/libtai", - "command": "/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/cc -DCOROUTINING=1 -DDEPTH_LIMIT=1 -DGNU_SOURCE=1 -DHAVE_CONFIG_H -DRATIONAL_TREES=1 -DTHREADEAD_CODE=1 -D_XOPEN_SOURCE=700 -D_YAP_NOT_INSTALLED_=1 -fPIC -I/Users/vsc/git/yap-6.3 -I/Users/vsc/git/yap-6.3/H -I/Users/vsc/git/yap-6.3/include -I/Users/vsc/git/yap-6.3/os -Wall -Wstrict-prototypes -Wmissing-prototypes -fexceptions -o CMakeFiles/libyaptai.dir/leapsecs_init.c.o -c /Users/vsc/git/yap-6.3/os/libtai/leapsecs_init.c", - "file": "/Users/vsc/git/yap-6.3/os/libtai/leapsecs_init.c" -}, -{ - "directory": "/Users/vsc/git/yap-6.3/os/libtai", - "command": "/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/cc -DCOROUTINING=1 -DDEPTH_LIMIT=1 -DGNU_SOURCE=1 -DHAVE_CONFIG_H -DRATIONAL_TREES=1 -DTHREADEAD_CODE=1 -D_XOPEN_SOURCE=700 -D_YAP_NOT_INSTALLED_=1 -fPIC -I/Users/vsc/git/yap-6.3 -I/Users/vsc/git/yap-6.3/H -I/Users/vsc/git/yap-6.3/include -I/Users/vsc/git/yap-6.3/os -Wall -Wstrict-prototypes -Wmissing-prototypes -fexceptions -o CMakeFiles/libyaptai.dir/leapsecs_add.c.o -c /Users/vsc/git/yap-6.3/os/libtai/leapsecs_add.c", - "file": "/Users/vsc/git/yap-6.3/os/libtai/leapsecs_add.c" -}, -{ - "directory": "/Users/vsc/git/yap-6.3/os/libtai", - "command": "/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/cc -DCOROUTINING=1 -DDEPTH_LIMIT=1 -DGNU_SOURCE=1 -DHAVE_CONFIG_H -DRATIONAL_TREES=1 -DTHREADEAD_CODE=1 -D_XOPEN_SOURCE=700 -D_YAP_NOT_INSTALLED_=1 -fPIC -I/Users/vsc/git/yap-6.3 -I/Users/vsc/git/yap-6.3/H -I/Users/vsc/git/yap-6.3/include -I/Users/vsc/git/yap-6.3/os -Wall -Wstrict-prototypes -Wmissing-prototypes -fexceptions -o CMakeFiles/libyaptai.dir/leapsecs_sub.c.o -c /Users/vsc/git/yap-6.3/os/libtai/leapsecs_sub.c", - "file": "/Users/vsc/git/yap-6.3/os/libtai/leapsecs_sub.c" -}, -{ - "directory": "/Users/vsc/git/yap-6.3/os/libtai", - "command": "/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/cc -DCOROUTINING=1 -DDEPTH_LIMIT=1 -DGNU_SOURCE=1 -DHAVE_CONFIG_H -DRATIONAL_TREES=1 -DTHREADEAD_CODE=1 -D_XOPEN_SOURCE=700 -D_YAP_NOT_INSTALLED_=1 -fPIC -I/Users/vsc/git/yap-6.3 -I/Users/vsc/git/yap-6.3/H -I/Users/vsc/git/yap-6.3/include -I/Users/vsc/git/yap-6.3/os -Wall -Wstrict-prototypes -Wmissing-prototypes -fexceptions -o CMakeFiles/libyaptai.dir/caltime_fmt.c.o -c /Users/vsc/git/yap-6.3/os/libtai/caltime_fmt.c", - "file": "/Users/vsc/git/yap-6.3/os/libtai/caltime_fmt.c" -}, -{ - "directory": "/Users/vsc/git/yap-6.3/os/libtai", - "command": "/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/cc -DCOROUTINING=1 -DDEPTH_LIMIT=1 -DGNU_SOURCE=1 -DHAVE_CONFIG_H -DRATIONAL_TREES=1 -DTHREADEAD_CODE=1 -D_XOPEN_SOURCE=700 -D_YAP_NOT_INSTALLED_=1 -fPIC -I/Users/vsc/git/yap-6.3 -I/Users/vsc/git/yap-6.3/H -I/Users/vsc/git/yap-6.3/include -I/Users/vsc/git/yap-6.3/os -Wall -Wstrict-prototypes -Wmissing-prototypes -fexceptions -o CMakeFiles/libyaptai.dir/caltime_scan.c.o -c /Users/vsc/git/yap-6.3/os/libtai/caltime_scan.c", - "file": "/Users/vsc/git/yap-6.3/os/libtai/caltime_scan.c" -}, -{ - "directory": "/Users/vsc/git/yap-6.3/os/libtai", - "command": "/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/cc -DCOROUTINING=1 -DDEPTH_LIMIT=1 -DGNU_SOURCE=1 -DHAVE_CONFIG_H -DRATIONAL_TREES=1 -DTHREADEAD_CODE=1 -D_XOPEN_SOURCE=700 -D_YAP_NOT_INSTALLED_=1 -fPIC -I/Users/vsc/git/yap-6.3 -I/Users/vsc/git/yap-6.3/H -I/Users/vsc/git/yap-6.3/include -I/Users/vsc/git/yap-6.3/os -Wall -Wstrict-prototypes -Wmissing-prototypes -fexceptions -o CMakeFiles/libyaptai.dir/caltime_tai.c.o -c /Users/vsc/git/yap-6.3/os/libtai/caltime_tai.c", - "file": "/Users/vsc/git/yap-6.3/os/libtai/caltime_tai.c" -}, -{ - "directory": "/Users/vsc/git/yap-6.3/os/libtai", - "command": "/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/cc -DCOROUTINING=1 -DDEPTH_LIMIT=1 -DGNU_SOURCE=1 -DHAVE_CONFIG_H -DRATIONAL_TREES=1 -DTHREADEAD_CODE=1 -D_XOPEN_SOURCE=700 -D_YAP_NOT_INSTALLED_=1 -fPIC -I/Users/vsc/git/yap-6.3 -I/Users/vsc/git/yap-6.3/H -I/Users/vsc/git/yap-6.3/include -I/Users/vsc/git/yap-6.3/os -Wall -Wstrict-prototypes -Wmissing-prototypes -fexceptions -o CMakeFiles/libyaptai.dir/caltime_utc.c.o -c /Users/vsc/git/yap-6.3/os/libtai/caltime_utc.c", - "file": "/Users/vsc/git/yap-6.3/os/libtai/caltime_utc.c" -}, -{ - "directory": "/Users/vsc/git/yap-6.3/CXX", - "command": "/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/c++ -DCOROUTINING=1 -DDEPTH_LIMIT=1 -DGNU_SOURCE=1 -DHAVE_CONFIG_H -DRATIONAL_TREES=1 -DTABLING=1 -DTHREADEAD_CODE=1 -DYap___EXPORTS -D_XOPEN_SOURCE=700 -D_YAP_NOT_INSTALLED_=1 -fPIC -I/Users/vsc/git/yap-6.3 -I/Users/vsc/git/yap-6.3/H -I/Users/vsc/git/yap-6.3/include -I/Users/vsc/git/yap-6.3/os -I/Users/vsc/git/yap-6.3/OPTYap -I/usr/local/include -I/usr/local/opt/readline/include -I/Users/vsc/git/yap-6.3/CXX/H -I/Users/vsc/git/yap-6.3/CXX/include -I/Users/vsc/git/yap-6.3/CXX/os -Wall -Wstrict-prototypes -Wmissing-prototypes -fexceptions -o CMakeFiles/Yap++.dir/yapi.cpp.o -c /Users/vsc/git/yap-6.3/CXX/yapi.cpp", - "file": "/Users/vsc/git/yap-6.3/CXX/yapi.cpp" -}, -{ - "directory": "/Users/vsc/git/yap-6.3/library/matrix", - "command": "/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/cc -DCOROUTINING=1 -DDEPTH_LIMIT=1 -DGNU_SOURCE=1 -DHAVE_CONFIG_H -DRATIONAL_TREES=1 -DTABLING=1 -DTHREADEAD_CODE=1 -D_XOPEN_SOURCE=700 -D_YAP_NOT_INSTALLED_=1 -Dmatrix_EXPORTS -fPIC -I/Users/vsc/git/yap-6.3 -I/Users/vsc/git/yap-6.3/H -I/Users/vsc/git/yap-6.3/include -I/Users/vsc/git/yap-6.3/os -I/Users/vsc/git/yap-6.3/OPTYap -I/usr/local/include -I/usr/local/opt/readline/include -Wall -Wstrict-prototypes -Wmissing-prototypes -fexceptions -o CMakeFiles/matrix.dir/matrix.c.o -c /Users/vsc/git/yap-6.3/library/matrix/matrix.c", - "file": "/Users/vsc/git/yap-6.3/library/matrix/matrix.c" -}, -{ - "directory": "/Users/vsc/git/yap-6.3/library/random", - "command": "/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/cc -DCOROUTINING=1 -DDEPTH_LIMIT=1 -DGNU_SOURCE=1 -DHAVE_CONFIG_H -DRATIONAL_TREES=1 -DTABLING=1 -DTHREADEAD_CODE=1 -D_XOPEN_SOURCE=700 -D_YAP_NOT_INSTALLED_=1 -Dyap_random_EXPORTS -fPIC -I/Users/vsc/git/yap-6.3 -I/Users/vsc/git/yap-6.3/H -I/Users/vsc/git/yap-6.3/include -I/Users/vsc/git/yap-6.3/os -I/Users/vsc/git/yap-6.3/OPTYap -I/usr/local/include -I/usr/local/opt/readline/include -Wall -Wstrict-prototypes -Wmissing-prototypes -fexceptions -o CMakeFiles/yap_random.dir/yap_random.c.o -c /Users/vsc/git/yap-6.3/library/random/yap_random.c", - "file": "/Users/vsc/git/yap-6.3/library/random/yap_random.c" -}, -{ - "directory": "/Users/vsc/git/yap-6.3/library/regex", - "command": "/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/cc -DCOROUTINING=1 -DDEPTH_LIMIT=1 -DGNU_SOURCE=1 -DHAVE_CONFIG_H -DRATIONAL_TREES=1 -DTABLING=1 -DTHREADEAD_CODE=1 -D_XOPEN_SOURCE=700 -D_YAP_NOT_INSTALLED_=1 -Dregexp_EXPORTS -fPIC -I/Users/vsc/git/yap-6.3 -I/Users/vsc/git/yap-6.3/H -I/Users/vsc/git/yap-6.3/include -I/Users/vsc/git/yap-6.3/os -I/Users/vsc/git/yap-6.3/OPTYap -I/usr/local/include -I/usr/local/opt/readline/include -Wall -Wstrict-prototypes -Wmissing-prototypes -fexceptions -o CMakeFiles/regexp.dir/regexp.c.o -c /Users/vsc/git/yap-6.3/library/regex/regexp.c", - "file": "/Users/vsc/git/yap-6.3/library/regex/regexp.c" -}, -{ - "directory": "/Users/vsc/git/yap-6.3/library/rltree", - "command": "/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/cc -DCOROUTINING=1 -DDEPTH_LIMIT=1 -DGNU_SOURCE=1 -DHAVE_CONFIG_H -DRATIONAL_TREES=1 -DTABLING=1 -DTHREADEAD_CODE=1 -D_XOPEN_SOURCE=700 -D_YAP_NOT_INSTALLED_=1 -Dyap_rl_EXPORTS -fPIC -I/Users/vsc/git/yap-6.3 -I/Users/vsc/git/yap-6.3/H -I/Users/vsc/git/yap-6.3/include -I/Users/vsc/git/yap-6.3/os -I/Users/vsc/git/yap-6.3/OPTYap -I/usr/local/include -I/usr/local/opt/readline/include -Wall -Wstrict-prototypes -Wmissing-prototypes -fexceptions -o CMakeFiles/yap_rl.dir/yap_rl.c.o -c /Users/vsc/git/yap-6.3/library/rltree/yap_rl.c", - "file": "/Users/vsc/git/yap-6.3/library/rltree/yap_rl.c" -}, -{ - "directory": "/Users/vsc/git/yap-6.3/library/rltree", - "command": "/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/cc -DCOROUTINING=1 -DDEPTH_LIMIT=1 -DGNU_SOURCE=1 -DHAVE_CONFIG_H -DRATIONAL_TREES=1 -DTABLING=1 -DTHREADEAD_CODE=1 -D_XOPEN_SOURCE=700 -D_YAP_NOT_INSTALLED_=1 -Dyap_rl_EXPORTS -fPIC -I/Users/vsc/git/yap-6.3 -I/Users/vsc/git/yap-6.3/H -I/Users/vsc/git/yap-6.3/include -I/Users/vsc/git/yap-6.3/os -I/Users/vsc/git/yap-6.3/OPTYap -I/usr/local/include -I/usr/local/opt/readline/include -Wall -Wstrict-prototypes -Wmissing-prototypes -fexceptions -o CMakeFiles/yap_rl.dir/range_list.c.o -c /Users/vsc/git/yap-6.3/library/rltree/range_list.c", - "file": "/Users/vsc/git/yap-6.3/library/rltree/range_list.c" -}, -{ - "directory": "/Users/vsc/git/yap-6.3/library/system", - "command": "/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/cc -DCOROUTINING=1 -DDEPTH_LIMIT=1 -DGNU_SOURCE=1 -DHAVE_CONFIG_H -DRATIONAL_TREES=1 -DTABLING=1 -DTHREADEAD_CODE=1 -D_XOPEN_SOURCE=700 -D_YAP_NOT_INSTALLED_=1 -Dsys_EXPORTS -fPIC -I/Users/vsc/git/yap-6.3 -I/Users/vsc/git/yap-6.3/H -I/Users/vsc/git/yap-6.3/include -I/Users/vsc/git/yap-6.3/os -I/Users/vsc/git/yap-6.3/OPTYap -I/usr/local/include -I/usr/local/opt/readline/include -Wall -Wstrict-prototypes -Wmissing-prototypes -fexceptions -o CMakeFiles/sys.dir/sys.c.o -c /Users/vsc/git/yap-6.3/library/system/sys.c", - "file": "/Users/vsc/git/yap-6.3/library/system/sys.c" -}, -{ - "directory": "/Users/vsc/git/yap-6.3/library/tries", - "command": "/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/cc -DCOROUTINING=1 -DDEPTH_LIMIT=1 -DGNU_SOURCE=1 -DHAVE_CONFIG_H -DRATIONAL_TREES=1 -DTABLING=1 -DTHREADEAD_CODE=1 -D_XOPEN_SOURCE=700 -D_YAP_NOT_INSTALLED_=1 -Ditries_EXPORTS -fPIC -I/Users/vsc/git/yap-6.3 -I/Users/vsc/git/yap-6.3/H -I/Users/vsc/git/yap-6.3/include -I/Users/vsc/git/yap-6.3/os -I/Users/vsc/git/yap-6.3/OPTYap -I/usr/local/include -I/usr/local/opt/readline/include -Wall -Wstrict-prototypes -Wmissing-prototypes -fexceptions -o CMakeFiles/itries.dir/core_tries.c.o -c /Users/vsc/git/yap-6.3/library/tries/core_tries.c", - "file": "/Users/vsc/git/yap-6.3/library/tries/core_tries.c" -}, -{ - "directory": "/Users/vsc/git/yap-6.3/library/tries", - "command": "/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/cc -DCOROUTINING=1 -DDEPTH_LIMIT=1 -DGNU_SOURCE=1 -DHAVE_CONFIG_H -DRATIONAL_TREES=1 -DTABLING=1 -DTHREADEAD_CODE=1 -D_XOPEN_SOURCE=700 -D_YAP_NOT_INSTALLED_=1 -Ditries_EXPORTS -fPIC -I/Users/vsc/git/yap-6.3 -I/Users/vsc/git/yap-6.3/H -I/Users/vsc/git/yap-6.3/include -I/Users/vsc/git/yap-6.3/os -I/Users/vsc/git/yap-6.3/OPTYap -I/usr/local/include -I/usr/local/opt/readline/include -Wall -Wstrict-prototypes -Wmissing-prototypes -fexceptions -o CMakeFiles/itries.dir/base_itries.c.o -c /Users/vsc/git/yap-6.3/library/tries/base_itries.c", - "file": "/Users/vsc/git/yap-6.3/library/tries/base_itries.c" -}, -{ - "directory": "/Users/vsc/git/yap-6.3/library/tries", - "command": "/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/cc -DCOROUTINING=1 -DDEPTH_LIMIT=1 -DGNU_SOURCE=1 -DHAVE_CONFIG_H -DRATIONAL_TREES=1 -DTABLING=1 -DTHREADEAD_CODE=1 -D_XOPEN_SOURCE=700 -D_YAP_NOT_INSTALLED_=1 -Ditries_EXPORTS -fPIC -I/Users/vsc/git/yap-6.3 -I/Users/vsc/git/yap-6.3/H -I/Users/vsc/git/yap-6.3/include -I/Users/vsc/git/yap-6.3/os -I/Users/vsc/git/yap-6.3/OPTYap -I/usr/local/include -I/usr/local/opt/readline/include -Wall -Wstrict-prototypes -Wmissing-prototypes -fexceptions -o CMakeFiles/itries.dir/itries.c.o -c /Users/vsc/git/yap-6.3/library/tries/itries.c", - "file": "/Users/vsc/git/yap-6.3/library/tries/itries.c" -}, -{ - "directory": "/Users/vsc/git/yap-6.3/library/tries", - "command": "/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/cc -DCOROUTINING=1 -DDEPTH_LIMIT=1 -DGNU_SOURCE=1 -DHAVE_CONFIG_H -DRATIONAL_TREES=1 -DTABLING=1 -DTHREADEAD_CODE=1 -D_XOPEN_SOURCE=700 -D_YAP_NOT_INSTALLED_=1 -Dtries_EXPORTS -fPIC -I/Users/vsc/git/yap-6.3 -I/Users/vsc/git/yap-6.3/H -I/Users/vsc/git/yap-6.3/include -I/Users/vsc/git/yap-6.3/os -I/Users/vsc/git/yap-6.3/OPTYap -I/usr/local/include -I/usr/local/opt/readline/include -Wall -Wstrict-prototypes -Wmissing-prototypes -fexceptions -o CMakeFiles/tries.dir/core_tries.c.o -c /Users/vsc/git/yap-6.3/library/tries/core_tries.c", - "file": "/Users/vsc/git/yap-6.3/library/tries/core_tries.c" -}, -{ - "directory": "/Users/vsc/git/yap-6.3/library/tries", - "command": "/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/cc -DCOROUTINING=1 -DDEPTH_LIMIT=1 -DGNU_SOURCE=1 -DHAVE_CONFIG_H -DRATIONAL_TREES=1 -DTABLING=1 -DTHREADEAD_CODE=1 -D_XOPEN_SOURCE=700 -D_YAP_NOT_INSTALLED_=1 -Dtries_EXPORTS -fPIC -I/Users/vsc/git/yap-6.3 -I/Users/vsc/git/yap-6.3/H -I/Users/vsc/git/yap-6.3/include -I/Users/vsc/git/yap-6.3/os -I/Users/vsc/git/yap-6.3/OPTYap -I/usr/local/include -I/usr/local/opt/readline/include -Wall -Wstrict-prototypes -Wmissing-prototypes -fexceptions -o CMakeFiles/tries.dir/base_tries.c.o -c /Users/vsc/git/yap-6.3/library/tries/base_tries.c", - "file": "/Users/vsc/git/yap-6.3/library/tries/base_tries.c" -}, -{ - "directory": "/Users/vsc/git/yap-6.3/library/tries", - "command": "/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/cc -DCOROUTINING=1 -DDEPTH_LIMIT=1 -DGNU_SOURCE=1 -DHAVE_CONFIG_H -DRATIONAL_TREES=1 -DTABLING=1 -DTHREADEAD_CODE=1 -D_XOPEN_SOURCE=700 -D_YAP_NOT_INSTALLED_=1 -Dtries_EXPORTS -fPIC -I/Users/vsc/git/yap-6.3 -I/Users/vsc/git/yap-6.3/H -I/Users/vsc/git/yap-6.3/include -I/Users/vsc/git/yap-6.3/os -I/Users/vsc/git/yap-6.3/OPTYap -I/usr/local/include -I/usr/local/opt/readline/include -Wall -Wstrict-prototypes -Wmissing-prototypes -fexceptions -o CMakeFiles/tries.dir/tries.c.o -c /Users/vsc/git/yap-6.3/library/tries/tries.c", - "file": "/Users/vsc/git/yap-6.3/library/tries/tries.c" -}, -{ - "directory": "/Users/vsc/git/yap-6.3/JIT", - "command": "/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/cc -DCOROUTINING=1 -DDEPTH_LIMIT=1 -DGNU_SOURCE=1 -DHAVE_CONFIG_H -DRATIONAL_TREES=1 -DTABLING=1 -DTHREADEAD_CODE=1 -DYAP_JIT=1 -D_XOPEN_SOURCE=700 -D_YAP_NOT_INSTALLED_=1 -Dlibyapjit_EXPORTS -fPIC -I/Users/vsc/git/yap-6.3 -I/Users/vsc/git/yap-6.3/H -I/Users/vsc/git/yap-6.3/include -I/Users/vsc/git/yap-6.3/os -I/Users/vsc/git/yap-6.3/OPTYap -I/usr/local/include -I/usr/local/opt/readline/include -I/Users/vsc/git/yap-6.3/JIT -I/Users/vsc/git/yap-6.3/JIT/HPP -Wall -Wstrict-prototypes -Wmissing-prototypes -fexceptions -o CMakeFiles/libyapjit.dir/jit_analysispreds.c.o -c /Users/vsc/git/yap-6.3/JIT/jit_analysispreds.c", - "file": "/Users/vsc/git/yap-6.3/JIT/jit_analysispreds.c" -}, -{ - "directory": "/Users/vsc/git/yap-6.3/JIT", - "command": "/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/cc -DCOROUTINING=1 -DDEPTH_LIMIT=1 -DGNU_SOURCE=1 -DHAVE_CONFIG_H -DRATIONAL_TREES=1 -DTABLING=1 -DTHREADEAD_CODE=1 -DYAP_JIT=1 -D_XOPEN_SOURCE=700 -D_YAP_NOT_INSTALLED_=1 -Dlibyapjit_EXPORTS -fPIC -I/Users/vsc/git/yap-6.3 -I/Users/vsc/git/yap-6.3/H -I/Users/vsc/git/yap-6.3/include -I/Users/vsc/git/yap-6.3/os -I/Users/vsc/git/yap-6.3/OPTYap -I/usr/local/include -I/usr/local/opt/readline/include -I/Users/vsc/git/yap-6.3/JIT -I/Users/vsc/git/yap-6.3/JIT/HPP -Wall -Wstrict-prototypes -Wmissing-prototypes -fexceptions -o CMakeFiles/libyapjit.dir/jit_configpreds.c.o -c /Users/vsc/git/yap-6.3/JIT/jit_configpreds.c", - "file": "/Users/vsc/git/yap-6.3/JIT/jit_configpreds.c" -}, -{ - "directory": "/Users/vsc/git/yap-6.3/JIT", - "command": "/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/cc -DCOROUTINING=1 -DDEPTH_LIMIT=1 -DGNU_SOURCE=1 -DHAVE_CONFIG_H -DRATIONAL_TREES=1 -DTABLING=1 -DTHREADEAD_CODE=1 -DYAP_JIT=1 -D_XOPEN_SOURCE=700 -D_YAP_NOT_INSTALLED_=1 -Dlibyapjit_EXPORTS -fPIC -I/Users/vsc/git/yap-6.3 -I/Users/vsc/git/yap-6.3/H -I/Users/vsc/git/yap-6.3/include -I/Users/vsc/git/yap-6.3/os -I/Users/vsc/git/yap-6.3/OPTYap -I/usr/local/include -I/usr/local/opt/readline/include -I/Users/vsc/git/yap-6.3/JIT -I/Users/vsc/git/yap-6.3/JIT/HPP -Wall -Wstrict-prototypes -Wmissing-prototypes -fexceptions -o CMakeFiles/libyapjit.dir/jit_statisticpreds.c.o -c /Users/vsc/git/yap-6.3/JIT/jit_statisticpreds.c", - "file": "/Users/vsc/git/yap-6.3/JIT/jit_statisticpreds.c" -}, -{ - "directory": "/Users/vsc/git/yap-6.3/JIT", - "command": "/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/cc -DCOROUTINING=1 -DDEPTH_LIMIT=1 -DGNU_SOURCE=1 -DHAVE_CONFIG_H -DRATIONAL_TREES=1 -DTABLING=1 -DTHREADEAD_CODE=1 -DYAP_JIT=1 -D_XOPEN_SOURCE=700 -D_YAP_NOT_INSTALLED_=1 -Dlibyapjit_EXPORTS -fPIC -I/Users/vsc/git/yap-6.3 -I/Users/vsc/git/yap-6.3/H -I/Users/vsc/git/yap-6.3/include -I/Users/vsc/git/yap-6.3/os -I/Users/vsc/git/yap-6.3/OPTYap -I/usr/local/include -I/usr/local/opt/readline/include -I/Users/vsc/git/yap-6.3/JIT -I/Users/vsc/git/yap-6.3/JIT/HPP -Wall -Wstrict-prototypes -Wmissing-prototypes -fexceptions -o CMakeFiles/libyapjit.dir/jit_codegenpreds.c.o -c /Users/vsc/git/yap-6.3/JIT/jit_codegenpreds.c", - "file": "/Users/vsc/git/yap-6.3/JIT/jit_codegenpreds.c" -}, -{ - "directory": "/Users/vsc/git/yap-6.3/JIT", - "command": "/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/cc -DCOROUTINING=1 -DDEPTH_LIMIT=1 -DGNU_SOURCE=1 -DHAVE_CONFIG_H -DRATIONAL_TREES=1 -DTABLING=1 -DTHREADEAD_CODE=1 -DYAP_JIT=1 -D_XOPEN_SOURCE=700 -D_YAP_NOT_INSTALLED_=1 -Dlibyapjit_EXPORTS -fPIC -I/Users/vsc/git/yap-6.3 -I/Users/vsc/git/yap-6.3/H -I/Users/vsc/git/yap-6.3/include -I/Users/vsc/git/yap-6.3/os -I/Users/vsc/git/yap-6.3/OPTYap -I/usr/local/include -I/usr/local/opt/readline/include -I/Users/vsc/git/yap-6.3/JIT -I/Users/vsc/git/yap-6.3/JIT/HPP -Wall -Wstrict-prototypes -Wmissing-prototypes -fexceptions -o CMakeFiles/libyapjit.dir/jit_debugpreds.c.o -c /Users/vsc/git/yap-6.3/JIT/jit_debugpreds.c", - "file": "/Users/vsc/git/yap-6.3/JIT/jit_debugpreds.c" -}, -{ - "directory": "/Users/vsc/git/yap-6.3/JIT", - "command": "/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/cc -DCOROUTINING=1 -DDEPTH_LIMIT=1 -DGNU_SOURCE=1 -DHAVE_CONFIG_H -DRATIONAL_TREES=1 -DTABLING=1 -DTHREADEAD_CODE=1 -DYAP_JIT=1 -D_XOPEN_SOURCE=700 -D_YAP_NOT_INSTALLED_=1 -Dlibyapjit_EXPORTS -fPIC -I/Users/vsc/git/yap-6.3 -I/Users/vsc/git/yap-6.3/H -I/Users/vsc/git/yap-6.3/include -I/Users/vsc/git/yap-6.3/os -I/Users/vsc/git/yap-6.3/OPTYap -I/usr/local/include -I/usr/local/opt/readline/include -I/Users/vsc/git/yap-6.3/JIT -I/Users/vsc/git/yap-6.3/JIT/HPP -Wall -Wstrict-prototypes -Wmissing-prototypes -fexceptions -o CMakeFiles/libyapjit.dir/jit_traced.c.o -c /Users/vsc/git/yap-6.3/JIT/jit_traced.c", - "file": "/Users/vsc/git/yap-6.3/JIT/jit_traced.c" -}, -{ - "directory": "/Users/vsc/git/yap-6.3/JIT", - "command": "/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/cc -DCOROUTINING=1 -DDEPTH_LIMIT=1 -DGNU_SOURCE=1 -DHAVE_CONFIG_H -DRATIONAL_TREES=1 -DTABLING=1 -DTHREADEAD_CODE=1 -DYAP_JIT=1 -D_XOPEN_SOURCE=700 -D_YAP_NOT_INSTALLED_=1 -Dlibyapjit_EXPORTS -fPIC -I/Users/vsc/git/yap-6.3 -I/Users/vsc/git/yap-6.3/H -I/Users/vsc/git/yap-6.3/include -I/Users/vsc/git/yap-6.3/os -I/Users/vsc/git/yap-6.3/OPTYap -I/usr/local/include -I/usr/local/opt/readline/include -I/Users/vsc/git/yap-6.3/JIT -I/Users/vsc/git/yap-6.3/JIT/HPP -Wall -Wstrict-prototypes -Wmissing-prototypes -fexceptions -o CMakeFiles/libyapjit.dir/jit_transformpreds.c.o -c /Users/vsc/git/yap-6.3/JIT/jit_transformpreds.c", - "file": "/Users/vsc/git/yap-6.3/JIT/jit_transformpreds.c" -}, -{ - "directory": "/Users/vsc/git/yap-6.3/JIT", - "command": "/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/c++ -DCOROUTINING=1 -DDEPTH_LIMIT=1 -DGNU_SOURCE=1 -DHAVE_CONFIG_H -DRATIONAL_TREES=1 -DTABLING=1 -DTHREADEAD_CODE=1 -DYAP_JIT=1 -D_XOPEN_SOURCE=700 -D_YAP_NOT_INSTALLED_=1 -Dlibyapjit_EXPORTS -I/usr/local/Cellar/llvm/3.5.1/include -D_DEBUG -D_GNU_SOURCE -D__STDC_CONSTANT_MACROS -D__STDC_FORMAT_MACROS -D__STDC_LIMIT_MACROS -O3 -std=c++11 -fvisibility-inlines-hidden -fno-exceptions -fno-common -Woverloaded-virtual -Wcast-qual -fno-rtti -fPIC -I/Users/vsc/git/yap-6.3 -I/Users/vsc/git/yap-6.3/H -I/Users/vsc/git/yap-6.3/include -I/Users/vsc/git/yap-6.3/os -I/Users/vsc/git/yap-6.3/OPTYap -I/usr/local/include -I/usr/local/opt/readline/include -I/Users/vsc/git/yap-6.3/JIT -I/Users/vsc/git/yap-6.3/JIT/HPP -Wall -Wstrict-prototypes -Wmissing-prototypes -fexceptions -o CMakeFiles/libyapjit.dir/JIT_Compiler.cpp.o -c /Users/vsc/git/yap-6.3/JIT/JIT_Compiler.cpp", - "file": "/Users/vsc/git/yap-6.3/JIT/JIT_Compiler.cpp" -}, -{ - "directory": "/Users/vsc/git/yap-6.3/JIT", - "command": "/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/c++ -DCOROUTINING=1 -DDEPTH_LIMIT=1 -DGNU_SOURCE=1 -DHAVE_CONFIG_H -DRATIONAL_TREES=1 -DTABLING=1 -DTHREADEAD_CODE=1 -DYAP_JIT=1 -D_XOPEN_SOURCE=700 -D_YAP_NOT_INSTALLED_=1 -Dlibyapjit_EXPORTS -I/usr/local/Cellar/llvm/3.5.1/include -D_DEBUG -D_GNU_SOURCE -D__STDC_CONSTANT_MACROS -D__STDC_FORMAT_MACROS -D__STDC_LIMIT_MACROS -O3 -std=c++11 -fvisibility-inlines-hidden -fno-exceptions -fno-common -Woverloaded-virtual -Wcast-qual -fno-rtti -fPIC -I/Users/vsc/git/yap-6.3 -I/Users/vsc/git/yap-6.3/H -I/Users/vsc/git/yap-6.3/include -I/Users/vsc/git/yap-6.3/os -I/Users/vsc/git/yap-6.3/OPTYap -I/usr/local/include -I/usr/local/opt/readline/include -I/Users/vsc/git/yap-6.3/JIT -I/Users/vsc/git/yap-6.3/JIT/HPP -Wall -Wstrict-prototypes -Wmissing-prototypes -fexceptions -o CMakeFiles/libyapjit.dir/JIT_Init.cpp.o -c /Users/vsc/git/yap-6.3/JIT/JIT_Init.cpp", - "file": "/Users/vsc/git/yap-6.3/JIT/JIT_Init.cpp" -}, -{ - "directory": "/Users/vsc/git/yap-6.3/library/lammpi", - "command": "/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/cc -DCOROUTINING=1 -DDEPTH_LIMIT=1 -DGNU_SOURCE=1 -DHAVE_CONFIG_H -DHAVE_MPI_H=1 -DRATIONAL_TREES=1 -DTABLING=1 -DTHREADEAD_CODE=1 -DYAP_JIT=1 -D_XOPEN_SOURCE=700 -D_YAP_NOT_INSTALLED_=1 -Dyap_mpi_EXPORTS -fPIC -I/Users/vsc/git/yap-6.3 -I/Users/vsc/git/yap-6.3/H -I/Users/vsc/git/yap-6.3/include -I/Users/vsc/git/yap-6.3/os -I/Users/vsc/git/yap-6.3/OPTYap -I/usr/local/include -I/usr/local/opt/readline/include -I/Users/vsc/git/yap-6.3/JIT -I/Users/vsc/git/yap-6.3/JIT/HPP -Wall -Wstrict-prototypes -Wmissing-prototypes -fexceptions -o CMakeFiles/yap_mpi.dir/hash.c.o -c /Users/vsc/git/yap-6.3/library/lammpi/hash.c", - "file": "/Users/vsc/git/yap-6.3/library/lammpi/hash.c" -}, -{ - "directory": "/Users/vsc/git/yap-6.3/library/lammpi", - "command": "/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/cc -DCOROUTINING=1 -DDEPTH_LIMIT=1 -DGNU_SOURCE=1 -DHAVE_CONFIG_H -DHAVE_MPI_H=1 -DRATIONAL_TREES=1 -DTABLING=1 -DTHREADEAD_CODE=1 -DYAP_JIT=1 -D_XOPEN_SOURCE=700 -D_YAP_NOT_INSTALLED_=1 -Dyap_mpi_EXPORTS -fPIC -I/Users/vsc/git/yap-6.3 -I/Users/vsc/git/yap-6.3/H -I/Users/vsc/git/yap-6.3/include -I/Users/vsc/git/yap-6.3/os -I/Users/vsc/git/yap-6.3/OPTYap -I/usr/local/include -I/usr/local/opt/readline/include -I/Users/vsc/git/yap-6.3/JIT -I/Users/vsc/git/yap-6.3/JIT/HPP -Wall -Wstrict-prototypes -Wmissing-prototypes -fexceptions -o CMakeFiles/yap_mpi.dir/prologterms2c.c.o -c /Users/vsc/git/yap-6.3/library/lammpi/prologterms2c.c", - "file": "/Users/vsc/git/yap-6.3/library/lammpi/prologterms2c.c" -}, -{ - "directory": "/Users/vsc/git/yap-6.3/library/lammpi", - "command": "/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/cc -DCOROUTINING=1 -DDEPTH_LIMIT=1 -DGNU_SOURCE=1 -DHAVE_CONFIG_H -DHAVE_MPI_H=1 -DRATIONAL_TREES=1 -DTABLING=1 -DTHREADEAD_CODE=1 -DYAP_JIT=1 -D_XOPEN_SOURCE=700 -D_YAP_NOT_INSTALLED_=1 -Dyap_mpi_EXPORTS -fPIC -I/Users/vsc/git/yap-6.3 -I/Users/vsc/git/yap-6.3/H -I/Users/vsc/git/yap-6.3/include -I/Users/vsc/git/yap-6.3/os -I/Users/vsc/git/yap-6.3/OPTYap -I/usr/local/include -I/usr/local/opt/readline/include -I/Users/vsc/git/yap-6.3/JIT -I/Users/vsc/git/yap-6.3/JIT/HPP -Wall -Wstrict-prototypes -Wmissing-prototypes -fexceptions -o CMakeFiles/yap_mpi.dir/yap_mpi.c.o -c /Users/vsc/git/yap-6.3/library/lammpi/yap_mpi.c", - "file": "/Users/vsc/git/yap-6.3/library/lammpi/yap_mpi.c" -}, -{ - "directory": "/Users/vsc/git/yap-6.3/packages/gecode", - "command": "/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/c++ -DCOROUTINING=1 -DDEPTH_LIMIT=1 -DGNU_SOURCE=1 -DHAVE_CONFIG_H -DRATIONAL_TREES=1 -DTABLING=1 -DTHREADEAD_CODE=1 -DYAP_JIT=1 -D_XOPEN_SOURCE=700 -D_YAP_NOT_INSTALLED_=1 -Dgecode_EXPORTS -fPIC -I/Users/vsc/git/yap-6.3 -I/Users/vsc/git/yap-6.3/H -I/Users/vsc/git/yap-6.3/include -I/Users/vsc/git/yap-6.3/os -I/Users/vsc/git/yap-6.3/OPTYap -I/usr/local/include -I/usr/local/opt/readline/include -I/Users/vsc/git/yap-6.3/JIT -I/Users/vsc/git/yap-6.3/JIT/HPP -I/Users/vsc/git/yap-6.3/packages/gecode -I/Users/vsc/git/yap-6.3/packages/gecode/4.2.1 -Wall -Wstrict-prototypes -Wmissing-prototypes -fexceptions -o CMakeFiles/gecode.dir/gecode4_yap.cc.o -c /Users/vsc/git/yap-6.3/packages/gecode/gecode4_yap.cc", - "file": "/Users/vsc/git/yap-6.3/packages/gecode/gecode4_yap.cc" -}, -{ - "directory": "/Users/vsc/git/yap-6.3/packages/myddas", - "command": "/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/cc -DCOROUTINING=1 -DDEPTH_LIMIT=1 -DGNU_SOURCE=1 -DHAVE_CONFIG_H -DMYDDAS_ODBC=1 -DMYDDAS_POSTGRES=1 -DMYDDAS_SQLITE3=1 -DRATIONAL_TREES=1 -DTABLING=1 -DTHREADEAD_CODE=1 -DUSE_MYDDAS=1 -DYAP_JIT=1 -D_XOPEN_SOURCE=700 -D_YAP_NOT_INSTALLED_=1 -Dmyddas_EXPORTS -fPIC -I/Users/vsc/git/yap-6.3 -I/Users/vsc/git/yap-6.3/H -I/Users/vsc/git/yap-6.3/include -I/Users/vsc/git/yap-6.3/os -I/Users/vsc/git/yap-6.3/OPTYap -I/usr/local/include -I/usr/local/opt/readline/include -I/Users/vsc/git/yap-6.3/JIT -I/Users/vsc/git/yap-6.3/JIT/HPP -Wall -Wstrict-prototypes -Wmissing-prototypes -fexceptions -o CMakeFiles/myddas.dir/myddas_mysql.c.o -c /Users/vsc/git/yap-6.3/packages/myddas/myddas_mysql.c", - "file": "/Users/vsc/git/yap-6.3/packages/myddas/myddas_mysql.c" -}, -{ - "directory": "/Users/vsc/git/yap-6.3/packages/myddas", - "command": "/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/cc -DCOROUTINING=1 -DDEPTH_LIMIT=1 -DGNU_SOURCE=1 -DHAVE_CONFIG_H -DMYDDAS_ODBC=1 -DMYDDAS_POSTGRES=1 -DMYDDAS_SQLITE3=1 -DRATIONAL_TREES=1 -DTABLING=1 -DTHREADEAD_CODE=1 -DUSE_MYDDAS=1 -DYAP_JIT=1 -D_XOPEN_SOURCE=700 -D_YAP_NOT_INSTALLED_=1 -Dmyddas_EXPORTS -fPIC -I/Users/vsc/git/yap-6.3 -I/Users/vsc/git/yap-6.3/H -I/Users/vsc/git/yap-6.3/include -I/Users/vsc/git/yap-6.3/os -I/Users/vsc/git/yap-6.3/OPTYap -I/usr/local/include -I/usr/local/opt/readline/include -I/Users/vsc/git/yap-6.3/JIT -I/Users/vsc/git/yap-6.3/JIT/HPP -Wall -Wstrict-prototypes -Wmissing-prototypes -fexceptions -o CMakeFiles/myddas.dir/myddas_odbc.c.o -c /Users/vsc/git/yap-6.3/packages/myddas/myddas_odbc.c", - "file": "/Users/vsc/git/yap-6.3/packages/myddas/myddas_odbc.c" -}, -{ - "directory": "/Users/vsc/git/yap-6.3/packages/myddas", - "command": "/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/cc -DCOROUTINING=1 -DDEPTH_LIMIT=1 -DGNU_SOURCE=1 -DHAVE_CONFIG_H -DMYDDAS_ODBC=1 -DMYDDAS_POSTGRES=1 -DMYDDAS_SQLITE3=1 -DRATIONAL_TREES=1 -DTABLING=1 -DTHREADEAD_CODE=1 -DUSE_MYDDAS=1 -DYAP_JIT=1 -D_XOPEN_SOURCE=700 -D_YAP_NOT_INSTALLED_=1 -Dmyddas_EXPORTS -fPIC -I/Users/vsc/git/yap-6.3 -I/Users/vsc/git/yap-6.3/H -I/Users/vsc/git/yap-6.3/include -I/Users/vsc/git/yap-6.3/os -I/Users/vsc/git/yap-6.3/OPTYap -I/usr/local/include -I/usr/local/opt/readline/include -I/Users/vsc/git/yap-6.3/JIT -I/Users/vsc/git/yap-6.3/JIT/HPP -Wall -Wstrict-prototypes -Wmissing-prototypes -fexceptions -o CMakeFiles/myddas.dir/myddas_postgres.c.o -c /Users/vsc/git/yap-6.3/packages/myddas/myddas_postgres.c", - "file": "/Users/vsc/git/yap-6.3/packages/myddas/myddas_postgres.c" -}, -{ - "directory": "/Users/vsc/git/yap-6.3/packages/myddas", - "command": "/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/cc -DCOROUTINING=1 -DDEPTH_LIMIT=1 -DGNU_SOURCE=1 -DHAVE_CONFIG_H -DMYDDAS_ODBC=1 -DMYDDAS_POSTGRES=1 -DMYDDAS_SQLITE3=1 -DRATIONAL_TREES=1 -DTABLING=1 -DTHREADEAD_CODE=1 -DUSE_MYDDAS=1 -DYAP_JIT=1 -D_XOPEN_SOURCE=700 -D_YAP_NOT_INSTALLED_=1 -Dmyddas_EXPORTS -fPIC -I/Users/vsc/git/yap-6.3 -I/Users/vsc/git/yap-6.3/H -I/Users/vsc/git/yap-6.3/include -I/Users/vsc/git/yap-6.3/os -I/Users/vsc/git/yap-6.3/OPTYap -I/usr/local/include -I/usr/local/opt/readline/include -I/Users/vsc/git/yap-6.3/JIT -I/Users/vsc/git/yap-6.3/JIT/HPP -Wall -Wstrict-prototypes -Wmissing-prototypes -fexceptions -o CMakeFiles/myddas.dir/myddas_sqlite3.c.o -c /Users/vsc/git/yap-6.3/packages/myddas/myddas_sqlite3.c", - "file": "/Users/vsc/git/yap-6.3/packages/myddas/myddas_sqlite3.c" -}, -{ - "directory": "/Users/vsc/git/yap-6.3/packages/myddas", - "command": "/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/cc -DCOROUTINING=1 -DDEPTH_LIMIT=1 -DGNU_SOURCE=1 -DHAVE_CONFIG_H -DMYDDAS_ODBC=1 -DMYDDAS_POSTGRES=1 -DMYDDAS_SQLITE3=1 -DRATIONAL_TREES=1 -DTABLING=1 -DTHREADEAD_CODE=1 -DUSE_MYDDAS=1 -DYAP_JIT=1 -D_XOPEN_SOURCE=700 -D_YAP_NOT_INSTALLED_=1 -Dmyddas_EXPORTS -fPIC -I/Users/vsc/git/yap-6.3 -I/Users/vsc/git/yap-6.3/H -I/Users/vsc/git/yap-6.3/include -I/Users/vsc/git/yap-6.3/os -I/Users/vsc/git/yap-6.3/OPTYap -I/usr/local/include -I/usr/local/opt/readline/include -I/Users/vsc/git/yap-6.3/JIT -I/Users/vsc/git/yap-6.3/JIT/HPP -Wall -Wstrict-prototypes -Wmissing-prototypes -fexceptions -o CMakeFiles/myddas.dir/myddas_util.c.o -c /Users/vsc/git/yap-6.3/packages/myddas/myddas_util.c", - "file": "/Users/vsc/git/yap-6.3/packages/myddas/myddas_util.c" -}, -{ - "directory": "/Users/vsc/git/yap-6.3/packages/myddas", - "command": "/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/cc -DCOROUTINING=1 -DDEPTH_LIMIT=1 -DGNU_SOURCE=1 -DHAVE_CONFIG_H -DMYDDAS_ODBC=1 -DMYDDAS_POSTGRES=1 -DMYDDAS_SQLITE3=1 -DRATIONAL_TREES=1 -DTABLING=1 -DTHREADEAD_CODE=1 -DUSE_MYDDAS=1 -DYAP_JIT=1 -D_XOPEN_SOURCE=700 -D_YAP_NOT_INSTALLED_=1 -Dmyddas_EXPORTS -fPIC -I/Users/vsc/git/yap-6.3 -I/Users/vsc/git/yap-6.3/H -I/Users/vsc/git/yap-6.3/include -I/Users/vsc/git/yap-6.3/os -I/Users/vsc/git/yap-6.3/OPTYap -I/usr/local/include -I/usr/local/opt/readline/include -I/Users/vsc/git/yap-6.3/JIT -I/Users/vsc/git/yap-6.3/JIT/HPP -Wall -Wstrict-prototypes -Wmissing-prototypes -fexceptions -o CMakeFiles/myddas.dir/myddas_initialization.c.o -c /Users/vsc/git/yap-6.3/packages/myddas/myddas_initialization.c", - "file": "/Users/vsc/git/yap-6.3/packages/myddas/myddas_initialization.c" -}, -{ - "directory": "/Users/vsc/git/yap-6.3/packages/myddas", - "command": "/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/cc -DCOROUTINING=1 -DDEPTH_LIMIT=1 -DGNU_SOURCE=1 -DHAVE_CONFIG_H -DMYDDAS_ODBC=1 -DMYDDAS_POSTGRES=1 -DMYDDAS_SQLITE3=1 -DRATIONAL_TREES=1 -DTABLING=1 -DTHREADEAD_CODE=1 -DUSE_MYDDAS=1 -DYAP_JIT=1 -D_XOPEN_SOURCE=700 -D_YAP_NOT_INSTALLED_=1 -Dmyddas_EXPORTS -fPIC -I/Users/vsc/git/yap-6.3 -I/Users/vsc/git/yap-6.3/H -I/Users/vsc/git/yap-6.3/include -I/Users/vsc/git/yap-6.3/os -I/Users/vsc/git/yap-6.3/OPTYap -I/usr/local/include -I/usr/local/opt/readline/include -I/Users/vsc/git/yap-6.3/JIT -I/Users/vsc/git/yap-6.3/JIT/HPP -Wall -Wstrict-prototypes -Wmissing-prototypes -fexceptions -o CMakeFiles/myddas.dir/myddas_shared.c.o -c /Users/vsc/git/yap-6.3/packages/myddas/myddas_shared.c", - "file": "/Users/vsc/git/yap-6.3/packages/myddas/myddas_shared.c" -}, -{ - "directory": "/Users/vsc/git/yap-6.3/packages/myddas", - "command": "/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/cc -DCOROUTINING=1 -DDEPTH_LIMIT=1 -DGNU_SOURCE=1 -DHAVE_CONFIG_H -DMYDDAS_ODBC=1 -DMYDDAS_POSTGRES=1 -DMYDDAS_SQLITE3=1 -DRATIONAL_TREES=1 -DTABLING=1 -DTHREADEAD_CODE=1 -DUSE_MYDDAS=1 -DYAP_JIT=1 -D_XOPEN_SOURCE=700 -D_YAP_NOT_INSTALLED_=1 -Dmyddas_EXPORTS -fPIC -I/Users/vsc/git/yap-6.3 -I/Users/vsc/git/yap-6.3/H -I/Users/vsc/git/yap-6.3/include -I/Users/vsc/git/yap-6.3/os -I/Users/vsc/git/yap-6.3/OPTYap -I/usr/local/include -I/usr/local/opt/readline/include -I/Users/vsc/git/yap-6.3/JIT -I/Users/vsc/git/yap-6.3/JIT/HPP -Wall -Wstrict-prototypes -Wmissing-prototypes -fexceptions -o CMakeFiles/myddas.dir/myddas_statistics.c.o -c /Users/vsc/git/yap-6.3/packages/myddas/myddas_statistics.c", - "file": "/Users/vsc/git/yap-6.3/packages/myddas/myddas_statistics.c" -}, -{ - "directory": "/Users/vsc/git/yap-6.3/packages/myddas", - "command": "/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/cc -DCOROUTINING=1 -DDEPTH_LIMIT=1 -DGNU_SOURCE=1 -DHAVE_CONFIG_H -DMYDDAS_ODBC=1 -DMYDDAS_POSTGRES=1 -DMYDDAS_SQLITE3=1 -DRATIONAL_TREES=1 -DTABLING=1 -DTHREADEAD_CODE=1 -DUSE_MYDDAS=1 -DYAP_JIT=1 -D_XOPEN_SOURCE=700 -D_YAP_NOT_INSTALLED_=1 -Dmyddas_EXPORTS -fPIC -I/Users/vsc/git/yap-6.3 -I/Users/vsc/git/yap-6.3/H -I/Users/vsc/git/yap-6.3/include -I/Users/vsc/git/yap-6.3/os -I/Users/vsc/git/yap-6.3/OPTYap -I/usr/local/include -I/usr/local/opt/readline/include -I/Users/vsc/git/yap-6.3/JIT -I/Users/vsc/git/yap-6.3/JIT/HPP -Wall -Wstrict-prototypes -Wmissing-prototypes -fexceptions -o CMakeFiles/myddas.dir/myddas_top_level.c.o -c /Users/vsc/git/yap-6.3/packages/myddas/myddas_top_level.c", - "file": "/Users/vsc/git/yap-6.3/packages/myddas/myddas_top_level.c" -}, -{ - "directory": "/Users/vsc/git/yap-6.3/packages/myddas", - "command": "/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/cc -DCOROUTINING=1 -DDEPTH_LIMIT=1 -DGNU_SOURCE=1 -DHAVE_CONFIG_H -DMYDDAS_ODBC=1 -DMYDDAS_POSTGRES=1 -DMYDDAS_SQLITE3=1 -DRATIONAL_TREES=1 -DTABLING=1 -DTHREADEAD_CODE=1 -DUSE_MYDDAS=1 -DYAP_JIT=1 -D_XOPEN_SOURCE=700 -D_YAP_NOT_INSTALLED_=1 -Dmyddas_EXPORTS -fPIC -I/Users/vsc/git/yap-6.3 -I/Users/vsc/git/yap-6.3/H -I/Users/vsc/git/yap-6.3/include -I/Users/vsc/git/yap-6.3/os -I/Users/vsc/git/yap-6.3/OPTYap -I/usr/local/include -I/usr/local/opt/readline/include -I/Users/vsc/git/yap-6.3/JIT -I/Users/vsc/git/yap-6.3/JIT/HPP -Wall -Wstrict-prototypes -Wmissing-prototypes -fexceptions -o CMakeFiles/myddas.dir/myddas_wkb2prolog.c.o -c /Users/vsc/git/yap-6.3/packages/myddas/myddas_wkb2prolog.c", - "file": "/Users/vsc/git/yap-6.3/packages/myddas/myddas_wkb2prolog.c" -}, -{ - "directory": "/Users/vsc/git/yap-6.3/packages/real", - "command": "/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/cc -DCOROUTINING=1 -DDEPTH_LIMIT=1 -DGNU_SOURCE=1 -DHAVE_CONFIG_H -DRATIONAL_TREES=1 -DTABLING=1 -DTHREADEAD_CODE=1 -DYAP_JIT=1 -D_XOPEN_SOURCE=700 -D_YAP_NOT_INSTALLED_=1 -Dreal_EXPORTS -fPIC -I/Users/vsc/git/yap-6.3 -I/Users/vsc/git/yap-6.3/H -I/Users/vsc/git/yap-6.3/include -I/Users/vsc/git/yap-6.3/os -I/Users/vsc/git/yap-6.3/OPTYap -I/usr/local/include -I/usr/local/opt/readline/include -I/Users/vsc/git/yap-6.3/JIT -I/Users/vsc/git/yap-6.3/JIT/HPP -I/Library/Frameworks/R.framework/Headers -I/Users/vsc/git/yap-6.3/packages/real -Wall -Wstrict-prototypes -Wmissing-prototypes -fexceptions -o CMakeFiles/real.dir/real.c.o -c /Users/vsc/git/yap-6.3/packages/real/real.c", - "file": "/Users/vsc/git/yap-6.3/packages/real/real.c" -}, -{ - "directory": "/Users/vsc/git/yap-6.3/packages/python", - "command": "/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/cc -DCOROUTINING=1 -DDEPTH_LIMIT=1 -DGNU_SOURCE=1 -DHAVE_CONFIG_H -DRATIONAL_TREES=1 -DTABLING=1 -DTHREADEAD_CODE=1 -DYAP_JIT=1 -D_XOPEN_SOURCE=700 -D_YAP_NOT_INSTALLED_=1 -Dpython_EXPORTS -fPIC -I/Users/vsc/git/yap-6.3 -I/Users/vsc/git/yap-6.3/H -I/Users/vsc/git/yap-6.3/include -I/Users/vsc/git/yap-6.3/os -I/Users/vsc/git/yap-6.3/OPTYap -I/usr/local/include -I/usr/local/opt/readline/include -I/Users/vsc/git/yap-6.3/JIT -I/Users/vsc/git/yap-6.3/JIT/HPP -I/System/Library/Frameworks/Python.framework/Headers -Wall -Wstrict-prototypes -Wmissing-prototypes -fexceptions -o CMakeFiles/python.dir/python.c.o -c /Users/vsc/git/yap-6.3/packages/python/python.c", - "file": "/Users/vsc/git/yap-6.3/packages/python/python.c" -}, -{ - "directory": "/Users/vsc/git/yap-6.3/packages/raptor", - "command": "/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/cc -DCOROUTINING=1 -DDEPTH_LIMIT=1 -DGNU_SOURCE=1 -DHAVE_CONFIG_H -DRATIONAL_TREES=1 -DTABLING=1 -DTHREADEAD_CODE=1 -DYAP_JIT=1 -D_XOPEN_SOURCE=700 -D_YAP_NOT_INSTALLED_=1 -Draptor_EXPORTS -fPIC -I/Users/vsc/git/yap-6.3 -I/Users/vsc/git/yap-6.3/H -I/Users/vsc/git/yap-6.3/include -I/Users/vsc/git/yap-6.3/os -I/Users/vsc/git/yap-6.3/OPTYap -I/usr/local/include -I/usr/local/opt/readline/include -I/Users/vsc/git/yap-6.3/JIT -I/Users/vsc/git/yap-6.3/JIT/HPP -I/Users/vsc/git/yap-6.3/packages/raptor -I/Users/vsc/git/yap-6.3/packages/raptor/. -Wall -Wstrict-prototypes -Wmissing-prototypes -fexceptions -o CMakeFiles/raptor.dir/raptor_yap.c.o -c /Users/vsc/git/yap-6.3/packages/raptor/raptor_yap.c", - "file": "/Users/vsc/git/yap-6.3/packages/raptor/raptor_yap.c" -} -] diff --git a/docs/DoxygenLayout.xml b/docs/DoxygenLayout.xml deleted file mode 100644 index f97be9744..000000000 --- a/docs/DoxygenLayout.xml +++ /dev/null @@ -1,194 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/docs/LOG b/docs/LOG deleted file mode 100644 index dedd1f5b8..000000000 --- a/docs/LOG +++ /dev/null @@ -1,34 +0,0 @@ -Doxygen version 1.8.8 -Copyright Dimitri van Heesch 1997-2014 - -You can use doxygen in a number of ways: - -1) Use doxygen to generate a template configuration file: - /Users/vsc/bin/doxygen [-s] -g [configName] - - If - is used for configName doxygen will write to standard output. - -2) Use doxygen to update an old configuration file: - /Users/vsc/bin/doxygen [-s] -u [configName] - -3) Use doxygen to generate documentation using an existing configuration file: - /Users/vsc/bin/doxygen [configName] - - If - is used for configName doxygen will read from standard input. - -4) Use doxygen to generate a template file controlling the layout of the - generated documentation: - /Users/vsc/bin/doxygen -l layoutFileName.xml - -5) Use doxygen to generate a template style sheet file for RTF, HTML or Latex. - RTF: /Users/vsc/bin/doxygen -w rtf styleSheetFile - HTML: /Users/vsc/bin/doxygen -w html headerFile footerFile styleSheetFile [configFile] - LaTeX: /Users/vsc/bin/doxygen -w latex headerFile footerFile styleSheetFile [configFile] - -6) Use doxygen to generate a rtf extensions file - RTF: /Users/vsc/bin/doxygen -e rtf extensionsFile - -If -s is specified the comments of the configuration items in the config file will be omitted. -If configName is omitted `Doxyfile' will be used as a default. - --v print version string diff --git a/docs/LOGE b/docs/LOGE deleted file mode 100644 index 45ce2a68e..000000000 --- a/docs/LOGE +++ /dev/null @@ -1 +0,0 @@ -error: configuration file docs/doxfull.rc not found! diff --git a/docs/abn_tree.css b/docs/abn_tree.css deleted file mode 100644 index 37cc08f35..000000000 --- a/docs/abn_tree.css +++ /dev/null @@ -1,121 +0,0 @@ -/* - abn-tree.css - - style for the angular-bootstrap-nav-tree - for both Bootstrap 2 and Bootstrap 3 - -*/ - - - -/* ------------------------------------------ -AngularJS Animations... - -The first selector is for Angular 1.1.5 -The second selector is for Angular 1.2.0 - -*/ -.abn-tree-animate-enter, -li.abn-tree-row.ng-enter { - transition: 200ms linear all; - position: relative; - display: block; - opacity: 0; - max-height:0px; -} -.abn-tree-animate-enter.abn-tree-animate-enter-active, -li.abn-tree-row.ng-enter-active{ - opacity: 1; - max-height:30px; -} - -.abn-tree-animate-leave, -li.abn-tree-row.ng-leave { - transition: 200ms linear all; - position: relative; - display: block; - height:30px; - max-height: 30px; - opacity: 1; -} -.abn-tree-animate-leave.abn-tree-animate-leave-active, -li.abn-tree-row.ng-leave-active { - height: 0px; - max-height:0px; - opacity: 0; -} - - -/* ------------------------------------------- -Angular 1.2.0 Animation -*/ - - -.abn-tree-animate.ng-enter{ - -} -.abn-tree-animate.ng-enter{ - -} - - - - -/* - end animation stuff ------------------------------------------ - begin normal css stuff -*/ -ul.abn-tree li.abn-tree-row { - padding: 0px; - margin:0px; -} - -ul.abn-tree li.abn-tree-row a { - padding: 3px 10px; -} - -ul.abn-tree i.indented { - padding: 2px; -} - -.abn-tree { - cursor: pointer; -} -ul.nav.abn-tree .level-1 .indented { - position: relative; - left: 0px; -} -ul.nav.abn-tree .level-2 .indented { - position: relative; - left: 20px; -} -ul.nav.abn-tree .level-3 .indented { - position: relative; - left: 40px; -} -ul.nav.abn-tree .level-4 .indented { - position: relative; - left: 60px; -} -ul.nav.abn-tree .level-5 .indented { - position: relative; - left: 80px; -} -ul.nav.abn-tree .level-6 .indented { - position: relative; - left: 100px; -} -ul.nav.nav-list.abn-tree .level-7 .indented { - position: relative; - left: 120px; -} -ul.nav.nav-list.abn-tree .level-8 .indented { - position: relative; - left: 140px; -} -ul.nav.nav-list.abn-tree .level-9 .indented { - position: relative; - left: 160px; -} diff --git a/docs/abn_tree_directive.coffee b/docs/abn_tree_directive.coffee deleted file mode 100644 index 9f55892a8..000000000 --- a/docs/abn_tree_directive.coffee +++ /dev/null @@ -1,2740 +0,0 @@ - - - - - - - - - - - - - angular-bootstrap-nav-tree/abn_tree_directive.coffee at master · nickperkinslondon/angular-bootstrap-nav-tree - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - Skip to content -
- - - - - - - - - - - - - -
-
-
- -
-
-
- -
    - -
  • -
    - -
    - - - - - Watch - - - -
    - -
    -
    - -
    -
  • - -
  • - -
    - -
    - - -
    -
    - - -
    - -
  • - - -
  • - - - Fork - - -
  • - -
- -

- - /angular-bootstrap-nav-tree - - - - - -

-
-
- -
-
-
- - - -
- - -
-

HTTPS clone URL

-
- - - - -
-
- - -
-

SSH clone URL

-
- - - - -
-
- - -
-

Subversion checkout URL

-
- - - - -
-
- - - -

You can clone with - HTTPS, SSH, or Subversion. - - - -

- - - - Clone in Desktop - - - - - - Download ZIP - -
-
- -
- - - - - - -
- -
- - - branch: - master - - - -
- -
- - - - -
- - -
- - -
- - -
-

- - 3 - contributors - -

- Nick Perkins - Rahat Ahmed - Teppo Jalava - - -
- -
- -
-
-
-
- 480 lines (372 sloc) - - 11.835 kb -
-
-
- Raw - Blame - History -
- - - - - - - - - - -
-
- - -
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
module = angular.module 'angularBootstrapNavTree',[]
-
module.directive 'abnTree',['$timeout',($timeout)->
restrict:'E'
#templateUrl: '../dist/abn_tree_template.html' # <--- another way to do this
-
template: """{html}""" # will be replaced by Grunt, during build, with the actual Template HTML
replace:true
scope:
treeData:'='
onSelect:'&'
initialSelection:'@'
treeControl:'='
-
link:(scope,element,attrs)->
-
-
error = (s) ->
console.log 'ERROR:'+s
debugger
return undefined
-
-
# default values ( Font-Awesome 3 or 4 or Glyphicons )
attrs.iconExpand ?= 'icon-plus glyphicon glyphicon-plus fa fa-plus'
attrs.iconCollapse ?= 'icon-minus glyphicon glyphicon-minus fa fa-minus'
attrs.iconLeaf ?= 'icon-file glyphicon glyphicon-file fa fa-file'
-
attrs.expandLevel ?= '3'
-
expand_level = parseInt attrs.expandLevel,10
-
# check args
if !scope.treeData
alert 'no treeData defined for the tree!'
return
-
if !scope.treeData.length?
if treeData.label?
scope.treeData = [ treeData ]
else
alert 'treeData should be an array of root branches'
return
-
-
#
# internal utilities...
#
for_each_branch = (f)->
do_f = (branch,level)->
f(branch,level)
if branch.children?
for child in branch.children
do_f(child,level + 1)
for root_branch in scope.treeData
do_f(root_branch,1)
-
-
-
-
#
# only one branch can be selected at a time
#
selected_branch = null
select_branch = (branch)->
-
if not branch
if selected_branch?
selected_branch.selected = false
selected_branch = null
return
-
if branch isnt selected_branch
if selected_branch?
selected_branch.selected = false
-
branch.selected = true
selected_branch = branch
expand_all_parents(branch)
-
-
#
# check:
# 1) branch.onSelect
# 2) tree.onSelect
#
if branch.onSelect?
#
# use $timeout
# so that the branch becomes fully selected
# ( and highlighted )
# before calling the "onSelect" function.
#
$timeout ->
branch.onSelect(branch)
else
if scope.onSelect?
$timeout ->
scope.onSelect({branch:branch})
-
-
scope.user_clicks_branch = (branch)->
if branch isnt selected_branch
select_branch(branch)
-
-
get_parent = (child)->
parent = undefined
if child.parent_uid
for_each_branch (b)->
if b.uid == child.parent_uid
parent = b
return parent
-
for_all_ancestors = ( child, fn )->
parent = get_parent( child )
if parent?
fn( parent )
for_all_ancestors( parent, fn )
-
-
expand_all_parents = ( child )->
for_all_ancestors child, (b)->
b.expanded = true
-
-
#
# To make the Angular rendering simpler,
# ( and to avoid recursive templates )
# we transform the TREE of data into a LIST of data.
# ( "tree_rows" )
#
# We do this whenever data in the tree changes.
# The tree itself is bound to this list.
#
# Children of un-expanded parents are included,
# but are set to "visible:false"
# ( and then they filtered out during rendering )
#
scope.tree_rows = []
on_treeData_change = ->
-
#console.log 'tree-data-change!'
#
# if "children" is just a list of strings...
# ...change them into objects:
#
for_each_branch (branch)->
if branch.children
if branch.children.length > 0
# don't use Array.map ( old browsers don't have it )
f = (e)->
if typeof e == 'string'
label:e
children:[]
else
e
branch.children = ( f(child) for child in branch.children )
-
else
branch.children = []
-
-
# give each Branch a UID ( to keep AngularJS happy )
for_each_branch (b,level)->
if not b.uid
b.uid = ""+Math.random()
console.log 'UIDs are set.'
-
-
# set all parents:
for_each_branch (b)->
if angular.isArray b.children
for child in b.children
child.parent_uid = b.uid
-
-
scope.tree_rows = []
-
#
# add_branch_to_list: recursively add one branch
# and all of it's children to the list
#
add_branch_to_list = (level,branch,visible)->
-
if not branch.expanded?
branch.expanded = false
-
if not branch.classes?
branch.classes = []
-
#
# icons can be Bootstrap or Font-Awesome icons:
# they will be rendered like:
# <i class="icon-plus"></i>
#
if not branch.noLeaf and (not branch.children or branch.children.length == 0)
tree_icon = attrs.iconLeaf
branch.classes.push "leaf" if "leaf" not in branch.classes
else
if branch.expanded
tree_icon = attrs.iconCollapse
else
tree_icon = attrs.iconExpand
-
-
#
# append to the list of "Tree Row" objects:
#
scope.tree_rows.push
level : level
branch : branch
label : branch.label
classes : branch.classes
tree_icon : tree_icon
visible : visible
-
#
# recursively add all children of this branch...( at Level+1 )
#
if branch.children?
for child in branch.children
#
# all branches are added to the list,
# but some are not visible
# ( if parent is collapsed )
#
child_visible = visible and branch.expanded
add_branch_to_list level+1, child, child_visible
-
#
# start with root branches,
# and recursively add all children to the list
#
for root_branch in scope.treeData
add_branch_to_list 1, root_branch, true
-
-
#
# make sure to do a "deep watch" on the tree data
# ( by passing "true" as the third arg )
#
scope.$watch 'treeData',on_treeData_change,true
-
-
#
# initial-selection="Branch Label"
# if specified, find and select the branch:
#
if attrs.initialSelection?
for_each_branch (b)->
if b.label == attrs.initialSelection
$timeout ->
select_branch b
-
#
# expand to the proper level
#
n = scope.treeData.length
console.log 'num root branches = '+n
for_each_branch (b,level)->
b.level = level
b.expanded = b.level < expand_level
#b.expanded = false
-
-
#
# TREE-CONTROL : the API to the Tree
#
# if we have been given an Object for this,
# then we attach all of tree-control functions
# to that given object:
#
if scope.treeControl?
if angular.isObject scope.treeControl
tree = scope.treeControl
-
tree.expand_all = ->
for_each_branch (b,level)->
b.expanded = true
-
tree.collapse_all = ->
for_each_branch (b,level)->
b.expanded = false
-
tree.get_first_branch = ->
n = scope.treeData.length
if n > 0
return scope.treeData[0]
-
tree.select_first_branch = ->
b = tree.get_first_branch()
tree.select_branch(b)
-
tree.get_selected_branch = ->
selected_branch
-
tree.get_parent_branch = (b)->
get_parent(b)
-
tree.select_branch = (b)->
select_branch(b)
b
-
tree.get_children = (b)->
b.children
-
tree.select_parent_branch = (b)->
if not b?
b = tree.get_selected_branch()
if b?
p = tree.get_parent_branch(b)
if p?
tree.select_branch(p)
p
-
-
tree.add_branch = (parent,new_branch)->
if parent?
parent.children.push new_branch
parent.expanded = true
else
scope.treeData.push new_branch
#tree.select new_branch
new_branch
-
tree.add_root_branch = (new_branch)->
tree.add_branch null, new_branch
new_branch
-
tree.expand_branch = (b)->
if not b?
b = tree.get_selected_branch()
if b?
b.expanded = true
b
-
tree.collapse_branch = (b)->
b ?= selected_branch
if b?
b.expanded = false
b
-
-
tree.get_siblings = (b)->
b ?= selected_branch
if b?
p = tree.get_parent_branch(b)
if p
siblings = p.children
else
siblings = scope.treeData # the root branches
return siblings
-
-
tree.get_next_sibling = (b)->
b ?= selected_branch
if b?
siblings = tree.get_siblings(b)
n = siblings.length
i = siblings.indexOf b
if i < n
return siblings[i+1]
-
-
tree.get_prev_sibling = (b)->
b ?= selected_branch
siblings = tree.get_siblings(b)
n = siblings.length
i = siblings.indexOf b
if i > 0
return siblings[i-1]
-
-
tree.select_next_sibling = (b)->
b ?= selected_branch
if b?
next = tree.get_next_sibling(b)
if next?
tree.select_branch next
-
-
tree.select_prev_sibling = (b)->
b ?= selected_branch
if b?
prev = tree.get_prev_sibling(b)
if prev?
tree.select_branch prev
-
-
tree.get_first_child = (b)->
b ?= selected_branch
if b?
if b.children?.length > 0
return b.children[0]
-
-
tree.get_closest_ancestor_next_sibling = (b)->
next = tree.get_next_sibling(b)
if next?
return next
else
parent = tree.get_parent_branch(b)
return tree.get_closest_ancestor_next_sibling(parent)
-
-
-
-
tree.get_next_branch = (b)->
#
# "next" in the sense of...vertically, from top to bottom
#
# try:
# 1) next sibling
# 2) first child
# 3) parent.get_next() // recursive
#
b ?= selected_branch
if b?
next = tree.get_first_child(b)
if next?
return next
else
next = tree.get_closest_ancestor_next_sibling(b)
return next
-
-
tree.select_next_branch = (b)->
b ?= selected_branch
if b?
next = tree.get_next_branch(b)
if next?
tree.select_branch(next)
next
-
-
tree.last_descendant = (b)->
if not b?
debugger
n = b.children.length
if n == 0
return b
else
last_child = b.children[n-1]
return tree.last_descendant(last_child)
-
-
tree.get_prev_branch = (b)->
b ?= selected_branch
if b?
prev_sibling = tree.get_prev_sibling(b)
if prev_sibling?
return tree.last_descendant prev_sibling
else
parent = tree.get_parent_branch(b)
return parent
-
tree.select_prev_branch = (b)->
b ?= selected_branch
if b?
prev = tree.get_prev_branch(b)
if prev?
tree.select_branch(prev)
return prev
]
-
-
-
-
-
-
-
-
-
-
- -
- -
-
- -Jump to Line - - -
- -
- -
-
- - -
- -
- -
- - -
-
-
- -
-
-
-
-
- -
- - - -
- - - Something went wrong with that request. Please try again. -
- - - - - - - - - diff --git a/docs/abn_tree_directive.js b/docs/abn_tree_directive.js deleted file mode 100644 index f30999533..000000000 --- a/docs/abn_tree_directive.js +++ /dev/null @@ -1,492 +0,0 @@ -(function() { - var module, - __indexOf = [].indexOf || function(item) { for (var i = 0, l = this.length; i < l; i++) { if (i in this && this[i] === item) return i; } return -1; }; - - module = angular.module('angularBootstrapNavTree', []); - - module.directive('abnTree', [ - '$timeout', function($timeout) { - return { - restrict: 'E', - template: "", - replace: true, - scope: { - treeData: '=', - onSelect: '&', - initialSelection: '@', - treeControl: '=' - }, - link: function(scope, element, attrs) { - var error, expand_all_parents, expand_level, for_all_ancestors, for_each_branch, get_parent, n, on_treeData_change, select_branch, selected_branch, tree; - error = function(s) { - console.log('ERROR:' + s); - debugger; - return void 0; - }; - if (attrs.iconExpand == null) { - attrs.iconExpand = 'icon-plus glyphicon glyphicon-plus fa fa-plus'; - } - if (attrs.iconCollapse == null) { - attrs.iconCollapse = 'icon-minus glyphicon glyphicon-minus fa fa-minus'; - } - if (attrs.iconLeaf == null) { - attrs.iconLeaf = 'icon-file glyphicon glyphicon-file fa fa-file'; - } - if (attrs.expandLevel == null) { - attrs.expandLevel = '3'; - } - expand_level = parseInt(attrs.expandLevel, 10); - if (!scope.treeData) { - alert('no treeData defined for the tree!'); - return; - } - if (scope.treeData.length == null) { - if (treeData.label != null) { - scope.treeData = [treeData]; - } else { - alert('treeData should be an array of root branches'); - return; - } - } - for_each_branch = function(f) { - var do_f, root_branch, _i, _len, _ref, _results; - do_f = function(branch, level) { - var child, _i, _len, _ref, _results; - f(branch, level); - if (branch.children != null) { - _ref = branch.children; - _results = []; - for (_i = 0, _len = _ref.length; _i < _len; _i++) { - child = _ref[_i]; - _results.push(do_f(child, level + 1)); - } - return _results; - } - }; - _ref = scope.treeData; - _results = []; - for (_i = 0, _len = _ref.length; _i < _len; _i++) { - root_branch = _ref[_i]; - _results.push(do_f(root_branch, 1)); - } - return _results; - }; - selected_branch = null; - select_branch = function(branch) { - if (!branch) { - if (selected_branch != null) { - selected_branch.selected = false; - } - selected_branch = null; - return; - } - if (branch !== selected_branch) { - if (selected_branch != null) { - selected_branch.selected = false; - } - branch.selected = true; - selected_branch = branch; - expand_all_parents(branch); - if (branch.onSelect != null) { - return $timeout(function() { - return branch.onSelect(branch); - }); - } else { - if (scope.onSelect != null) { - return $timeout(function() { - return scope.onSelect({ - branch: branch - }); - }); - } - } - } - }; - scope.user_clicks_branch = function(branch) { - if (branch !== selected_branch) { - return select_branch(branch); - } - }; - get_parent = function(child) { - var parent; - parent = void 0; - if (child.parent_uid) { - for_each_branch(function(b) { - if (b.uid === child.parent_uid) { - return parent = b; - } - }); - } - return parent; - }; - for_all_ancestors = function(child, fn) { - var parent; - parent = get_parent(child); - if (parent != null) { - fn(parent); - return for_all_ancestors(parent, fn); - } - }; - expand_all_parents = function(child) { - return for_all_ancestors(child, function(b) { - return b.expanded = true; - }); - }; - scope.tree_rows = []; - on_treeData_change = function() { - var add_branch_to_list, root_branch, _i, _len, _ref, _results; - for_each_branch(function(b, level) { - if (!b.uid) { - return b.uid = "" + Math.random(); - } - }); - console.log('UIDs are set.'); - for_each_branch(function(b) { - var child, _i, _len, _ref, _results; - if (angular.isArray(b.children)) { - _ref = b.children; - _results = []; - for (_i = 0, _len = _ref.length; _i < _len; _i++) { - child = _ref[_i]; - _results.push(child.parent_uid = b.uid); - } - return _results; - } - }); - scope.tree_rows = []; - for_each_branch(function(branch) { - var child, f; - if (branch.children) { - if (branch.children.length > 0) { - f = function(e) { - if (typeof e === 'string') { - return { - label: e, - children: [] - }; - } else { - return e; - } - }; - return branch.children = (function() { - var _i, _len, _ref, _results; - _ref = branch.children; - _results = []; - for (_i = 0, _len = _ref.length; _i < _len; _i++) { - child = _ref[_i]; - _results.push(f(child)); - } - return _results; - })(); - } - } else { - return branch.children = []; - } - }); - add_branch_to_list = function(level, branch, visible) { - var child, child_visible, tree_icon, _i, _len, _ref, _results; - if (branch.expanded == null) { - branch.expanded = false; - } - if (branch.classes == null) { - branch.classes = []; - } - if (!branch.noLeaf && (!branch.children || branch.children.length === 0)) { - tree_icon = attrs.iconLeaf; - if (__indexOf.call(branch.classes, "leaf") < 0) { - branch.classes.push("leaf"); - } - } else { - if (branch.expanded) { - tree_icon = attrs.iconCollapse; - } else { - tree_icon = attrs.iconExpand; - } - } - scope.tree_rows.push({ - level: level, - branch: branch, - label: branch.label, - classes: branch.classes, - tree_icon: tree_icon, - visible: visible - }); - if (branch.children != null) { - _ref = branch.children; - _results = []; - for (_i = 0, _len = _ref.length; _i < _len; _i++) { - child = _ref[_i]; - child_visible = visible && branch.expanded; - _results.push(add_branch_to_list(level + 1, child, child_visible)); - } - return _results; - } - }; - _ref = scope.treeData; - _results = []; - for (_i = 0, _len = _ref.length; _i < _len; _i++) { - root_branch = _ref[_i]; - _results.push(add_branch_to_list(1, root_branch, true)); - } - return _results; - }; - scope.$watch('treeData', on_treeData_change, true); - if (attrs.initialSelection != null) { - for_each_branch(function(b) { - if (b.label === attrs.initialSelection) { - return $timeout(function() { - return select_branch(b); - }); - } - }); - } - n = scope.treeData.length; - console.log('num root branches = ' + n); - for_each_branch(function(b, level) { - b.level = level; - return b.expanded = b.level < expand_level; - }); - if (scope.treeControl != null) { - if (angular.isObject(scope.treeControl)) { - tree = scope.treeControl; - tree.expand_all = function() { - return for_each_branch(function(b, level) { - return b.expanded = true; - }); - }; - tree.collapse_all = function() { - return for_each_branch(function(b, level) { - return b.expanded = false; - }); - }; - tree.get_first_branch = function() { - n = scope.treeData.length; - if (n > 0) { - return scope.treeData[0]; - } - }; - tree.select_first_branch = function() { - var b; - b = tree.get_first_branch(); - return tree.select_branch(b); - }; - tree.get_selected_branch = function() { - return selected_branch; - }; - tree.get_parent_branch = function(b) { - return get_parent(b); - }; - tree.select_branch = function(b) { - select_branch(b); - return b; - }; - tree.get_children = function(b) { - return b.children; - }; - tree.select_parent_branch = function(b) { - var p; - if (b == null) { - b = tree.get_selected_branch(); - } - if (b != null) { - p = tree.get_parent_branch(b); - if (p != null) { - tree.select_branch(p); - return p; - } - } - }; - tree.add_branch = function(parent, new_branch) { - if (parent != null) { - parent.children.push(new_branch); - parent.expanded = true; - } else { - scope.treeData.push(new_branch); - } - return new_branch; - }; - tree.add_root_branch = function(new_branch) { - tree.add_branch(null, new_branch); - return new_branch; - }; - tree.expand_branch = function(b) { - if (b == null) { - b = tree.get_selected_branch(); - } - if (b != null) { - b.expanded = true; - return b; - } - }; - tree.collapse_branch = function(b) { - if (b == null) { - b = selected_branch; - } - if (b != null) { - b.expanded = false; - return b; - } - }; - tree.get_siblings = function(b) { - var p, siblings; - if (b == null) { - b = selected_branch; - } - if (b != null) { - p = tree.get_parent_branch(b); - if (p) { - siblings = p.children; - } else { - siblings = scope.treeData; - } - return siblings; - } - }; - tree.get_next_sibling = function(b) { - var i, siblings; - if (b == null) { - b = selected_branch; - } - if (b != null) { - siblings = tree.get_siblings(b); - n = siblings.length; - i = siblings.indexOf(b); - if (i < n) { - return siblings[i + 1]; - } - } - }; - tree.get_prev_sibling = function(b) { - var i, siblings; - if (b == null) { - b = selected_branch; - } - siblings = tree.get_siblings(b); - n = siblings.length; - i = siblings.indexOf(b); - if (i > 0) { - return siblings[i - 1]; - } - }; - tree.select_next_sibling = function(b) { - var next; - if (b == null) { - b = selected_branch; - } - if (b != null) { - next = tree.get_next_sibling(b); - if (next != null) { - return tree.select_branch(next); - } - } - }; - tree.select_prev_sibling = function(b) { - var prev; - if (b == null) { - b = selected_branch; - } - if (b != null) { - prev = tree.get_prev_sibling(b); - if (prev != null) { - return tree.select_branch(prev); - } - } - }; - tree.get_first_child = function(b) { - var _ref; - if (b == null) { - b = selected_branch; - } - if (b != null) { - if (((_ref = b.children) != null ? _ref.length : void 0) > 0) { - return b.children[0]; - } - } - }; - tree.get_closest_ancestor_next_sibling = function(b) { - var next, parent; - next = tree.get_next_sibling(b); - if (next != null) { - return next; - } else { - parent = tree.get_parent_branch(b); - return tree.get_closest_ancestor_next_sibling(parent); - } - }; - tree.get_next_branch = function(b) { - var next; - if (b == null) { - b = selected_branch; - } - if (b != null) { - next = tree.get_first_child(b); - if (next != null) { - return next; - } else { - next = tree.get_closest_ancestor_next_sibling(b); - return next; - } - } - }; - tree.select_next_branch = function(b) { - var next; - if (b == null) { - b = selected_branch; - } - if (b != null) { - next = tree.get_next_branch(b); - if (next != null) { - tree.select_branch(next); - return next; - } - } - }; - tree.last_descendant = function(b) { - var last_child; - if (b == null) { - debugger; - } - n = b.children.length; - if (n === 0) { - return b; - } else { - last_child = b.children[n - 1]; - return tree.last_descendant(last_child); - } - }; - tree.get_prev_branch = function(b) { - var parent, prev_sibling; - if (b == null) { - b = selected_branch; - } - if (b != null) { - prev_sibling = tree.get_prev_sibling(b); - if (prev_sibling != null) { - return tree.last_descendant(prev_sibling); - } else { - parent = tree.get_parent_branch(b); - return parent; - } - } - }; - return tree.select_prev_branch = function(b) { - var prev; - if (b == null) { - b = selected_branch; - } - if (b != null) { - prev = tree.get_prev_branch(b); - if (prev != null) { - tree.select_branch(prev); - return prev; - } - } - }; - } - } - } - }; - } - ]); - -}).call(this); diff --git a/docs/angular.treeview.css b/docs/angular.treeview.css deleted file mode 100644 index 7b3bae4ba..000000000 --- a/docs/angular.treeview.css +++ /dev/null @@ -1,56 +0,0 @@ -div[data-angular-treeview] { - /* prevent user selection */ - -moz-user-select: -moz-none; - -khtml-user-select: none; - -webkit-user-select: none; - -ms-user-select: none; - user-select: none; - - /* default */ - font-family: Tahoma; - font-size:13px; - color: #555; - text-decoration: none; -} - -div[data-tree-model] ul { - margin: 0; - padding: 0; - list-style: none; - border: none; - overflow: hidden; -} - -div[data-tree-model] li { - position: relative; - padding: 0 0 0 20px; - line-height: 20px; -} - -div[data-tree-model] li .expanded { - padding: 1px 10px; - background-image: url("../img/folder.png"); - background-repeat: no-repeat; -} - -div[data-tree-model] li .collapsed { - padding: 1px 10px; - background-image: url("../img/folder-closed.png"); - background-repeat: no-repeat; -} - -div[data-tree-model] li .normal { - padding: 1px 10px; - background-image: url("../img/file.png"); - background-repeat: no-repeat; -} - -div[data-tree-model] li i, div[data-tree-model] li span { - cursor: pointer; -} - -div[data-tree-model] li .selected { - background-color: #aaddff; - font-weight: bold; - padding: 1px 5px; -} diff --git a/docs/angular.treeview.js b/docs/angular.treeview.js deleted file mode 100644 index b70773441..000000000 --- a/docs/angular.treeview.js +++ /dev/null @@ -1,98 +0,0 @@ -/* - @license Angular Treeview version 0.1.6 - â“’ 2013 AHN JAE-HA http://github.com/eu81273/angular.treeview - License: MIT - - - [TREE attribute] - angular-treeview: the treeview directive - tree-id : each tree's unique id. - tree-model : the tree model on $scope. - node-id : each node's id - node-label : each node's label - node-children: each node's children - -
-
-*/ - -(function ( angular ) { - 'use strict'; - - angular.module( 'angularTreeview', [] ).directive( 'treeModel', ['$compile', function( $compile ) { - return { - restrict: 'A', - link: function ( scope, element, attrs ) { - //tree id - var treeId = attrs.treeId; - - //tree model - var treeModel = attrs.treeModel; - - //node id - var nodeId = attrs.nodeId || 'id'; - - //node label - var nodeLabel = attrs.nodeLabel || 'label'; - - //children - var nodeChildren = attrs.nodeChildren || 'children'; - - //tree template - var template = - '
    ' + - '
  • ' + - '' + - '' + - ' ' + - '{{node.' + nodeLabel + '}}' + - '
    ' + - '
  • ' + - '
'; - - - //check tree id, tree model - if( treeId && treeModel ) { - - //root node - if( attrs.angularTreeview ) { - - //create tree object if not exists - scope[treeId] = scope[treeId] || {}; - - //if node head clicks, - scope[treeId].selectNodeHead = scope[treeId].selectNodeHead || function( selectedNode ){ - - //Collapse or Expand - selectedNode.collapsed = !selectedNode.collapsed; - }; - - //if node label clicks, - scope[treeId].selectNodeLabel = scope[treeId].selectNodeLabel || function( selectedNode ){ - - //remove highlight from previous node - if( scope[treeId].currentNode && scope[treeId].currentNode.selected ) { - scope[treeId].currentNode.selected = undefined; - } - - //set highlight to selected node - selectedNode.selected = 'selected'; - - //set currentNode - scope[treeId].currentNode = selectedNode; - }; - } - - //Rendering template. - element.html('').append( $compile( template )( scope ) ); - } - } - }; - }]); -})( angular ); diff --git a/docs/blog.css b/docs/blog.css deleted file mode 100644 index f9106eb47..000000000 --- a/docs/blog.css +++ /dev/null @@ -1,166 +0,0 @@ -/* - * Globals - */ - -body { - font-family: Georgia, "Times New Roman", Times, serif; - color: #555; -} - -h1, .h1, -h2, .h2, -h3, .h3, -h4, .h4, -h5, .h5, -h6, .h6 { - margin-top: 0; - font-family: "Helvetica Neue", Helvetica, Arial, sans-serif; - font-weight: normal; - color: #333; -} - - -/* - * Override Bootstrap's default container. - */ - -@media (min-width: 1200px) { - .container { - width: 970px; - } -} - - -/* - * Masthead for nav - */ - -.blog-masthead { - background-color: #428bca; - -webkit-box-shadow: inset 0 -2px 5px rgba(0,0,0,.1); - box-shadow: inset 0 -2px 5px rgba(0,0,0,.1); -} - -/* Nav links */ -.blog-nav-item { - position: relative; - display: inline-block; - padding: 10px; - font-weight: 500; - color: #cdddeb; -} -.blog-nav-item:hover, -.blog-nav-item:focus { - color: #fff; - text-decoration: none; -} - -/* Active state gets a caret at the bottom */ -.blog-nav .active { - color: #fff; -} -.blog-nav .active:after { - position: absolute; - bottom: 0; - left: 50%; - width: 0; - height: 0; - margin-left: -5px; - vertical-align: middle; - content: " "; - border-right: 5px solid transparent; - border-bottom: 5px solid; - border-left: 5px solid transparent; -} - - -/* - * Blog name and description - */ - -.blog-header { - padding-top: 20px; - padding-bottom: 20px; -} -.blog-title { - margin-top: 30px; - margin-bottom: 0; - font-size: 60px; - font-weight: normal; -} -.blog-description { - font-size: 20px; - color: #999; -} - - -/* - * Main column and sidebar layout - */ - -.blog-main { - font-size: 18px; - line-height: 1.5; -} - -/* Sidebar modules for boxing content */ -.sidebar-module { - padding: 15px; - margin: 0 -15px 15px; -} -.sidebar-module-inset { - padding: 15px; - background-color: #f5f5f5; - border-radius: 4px; -} -.sidebar-module-inset p:last-child, -.sidebar-module-inset ul:last-child, -.sidebar-module-inset ol:last-child { - margin-bottom: 0; -} - - -/* Pagination */ -.pager { - margin-bottom: 60px; - text-align: left; -} -.pager > li > a { - width: 140px; - padding: 10px 20px; - text-align: center; - border-radius: 30px; -} - - -/* - * Blog posts - */ - -.blog-post { - margin-bottom: 60px; -} -.blog-post-title { - margin-bottom: 5px; - font-size: 40px; -} -.blog-post-meta { - margin-bottom: 20px; - color: #999; -} - - -/* - * Footer - */ - -.blog-footer { - padding: 40px 0; - color: #999; - text-align: center; - background-color: #f9f9f9; - border-top: 1px solid #e5e5e5; -} -.blog-footer p:last-child { - margin-bottom: 0; -} diff --git a/docs/bootstrap-treenav.js b/docs/bootstrap-treenav.js deleted file mode 100644 index eefb25bba..000000000 --- a/docs/bootstrap-treenav.js +++ /dev/null @@ -1,1207 +0,0 @@ - - - - - - - - - - - - - BootstrapTreeNav/bootstrap-treenav.js at master · morrissinger/BootstrapTreeNav - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - Skip to content -
- - - - - - - - - - - - - -
-
-
- -
-
-
- -
    - -
  • -
    - -
    - - - - - Watch - - - -
    - -
    -
    - -
    -
  • - -
  • - -
    - -
    - - -
    -
    - - -
    - -
  • - - -
  • - - - Fork - - -
  • - -
- -

- - /BootstrapTreeNav - - - - - -

-
-
- -
-
-
- - - -
- - -
-

HTTPS clone URL

-
- - - - -
-
- - -
-

SSH clone URL

-
- - - - -
-
- - -
-

Subversion checkout URL

-
- - - - -
-
- - - -

You can clone with - HTTPS, SSH, or Subversion. - - - -

- - - - Clone in Desktop - - - - - - Download ZIP - -
-
- -
- - - - - - -
- -
- - - branch: - master - - - -
- -
- - - - -
- - -
- - -
- - - - -
- -
-
-
-
- 122 lines (103 sloc) - - 4.109 kb -
-
-
- Raw - Blame - History -
- - - - - - - - - - -
-
- - -
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
/**
* bootstrap-treenav.js v1.0.0 by @morrissinger
* Copyright 2013 Morris Singer
* http://www.apache.org/licenses/LICENSE-2.0
*/
if (!jQuery) { throw new Error("Bootstrap Tree Nav requires jQuery"); }
-
/* ==========================================================
* bootstrap-treenav.js
* https://github.com/morrissinger/BootstrapTreeNav
* ==========================================================
* Copyright 2013 Morris Singer
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
* ========================================================== */
-
+function ($) {
-
'use strict';
-
$.fn.navTree = function(options) {
-
var defaults = {
navTreeExpanded: 'icon-collapse-alt',
navTreeCollapsed: 'icon-expand-alt'
};
options = $.extend(defaults, options);
if ($(this).prop('tagName') === 'LI') {
collapsible(this, options);
} else if ($(this).prop('tagName') === 'UL') {
collapsible(this, options);
}
-
};
-
var collapsible = function(element, options) {
var $childrenLi = $(element).find('li');
$childrenLi.each(function(index, li) {
collapsibleAll($(li), options);
// Expand the tree so that the active item is shown.
if ($(li).hasClass('active')) {
$(li).parents('ul').each(function(i, ul) {
$(ul).show();
$(ul).siblings('span.opener')
.removeClass('closed')
.addClass('opened');
-
// If there's a real target to this menu item link, then allow it to be
// clicked to go to that page, now that the menu has been expanded.
if ($(ul).siblings('a').attr('href') !== '#' && $(ul).siblings('a').attr('href') !== '') {
$(ul).siblings('a').off('click.bs.tree');
}
-
});
}
});
};
-
var collapsibleAll = function(element, options) {
var $childUl = $(element).children('ul');
if ( $childUl.length > 0 ) {
$childUl.hide();
$(element).prepend('<span class="opener closed"><span class="tree-icon-closed"><i class="' + options.navTreeCollapsed + '"></i></span><span class="tree-icon-opened"><i class="' + options.navTreeExpanded + '"></i></span></span>');
$(element).children('a').first().on('click.bs.tree', function(e) {
e.preventDefault();
var $opener = $(this).siblings('span.opener');
if ($opener.hasClass('closed')) {
expand(element);
-
// If there's a real target to this menu item link, then allow it to be
// clicked to go to that page, now that the menu has been expanded.
if (($(this).attr('href') !== '#') && ($(this).attr('href') !== '')) {
$(this).off('click.bs.tree');
}
} else {
collapse(element);
}
});
$(element).children('span.opener').first().on('click.bs.tree', function(e){
var $opener = $(this);
if ($opener.hasClass('closed')) {
expand(element);
} else {
collapse(element);
}
});
}
};
-
var expand = function(element) {
var $opener = $(element).children('span.opener');
$opener.removeClass('closed').addClass('opened');
$(element).children('ul').first().slideDown('fast');
};
-
var collapse = function(element) {
var $opener = $(element).children('span.opener');
$opener.removeClass('opened').addClass('closed');
$(element).children('ul').first().slideUp('fast');
};
-
$('ul[data-toggle=nav-tree]').each(function(){
var $tree;
$tree = $(this);
$tree.navTree($tree.data());
});
}(window.jQuery);
- -
- -
-
- -Jump to Line - - -
- -
- -
-
- - -
- -
- -
- - -
-
-
- -
-
-
-
-
- -
- - - -
- - - Something went wrong with that request. Please try again. -
- - - - - - - - - diff --git a/docs/builtins.md b/docs/builtins.md deleted file mode 100644 index e69de29bb..000000000 diff --git a/docs/builtins.tex b/docs/builtins.tex deleted file mode 100644 index 1ad112d5b..000000000 --- a/docs/builtins.tex +++ /dev/null @@ -1,6124 +0,0 @@ -@c -*- mode: texinfo; coding: utf-8; -* - -@node Built-ins, Library, Modules, Top - -@chapter Built-In Predicates Library - -@menu - -Built-ins, Debugging, Syntax, Top -* Control:: Controlling the Execution of Prolog Programs -* Undefined Procedures:: Handling calls to Undefined Procedures -* Messages:: Message Handling in YAP -* Testing Terms:: Predicates on Terms -* Predicates on Atoms:: Manipulating Atoms -* Predicates on Characters:: Manipulating Characters -* Comparing Terms:: Comparison of Terms -* Arithmetic:: Arithmetic in YAP -* Input/Output:: Input/Output with YAP -* Database:: Modifying Prolog's Database -* Sets:: Finding All Possible Solutions -* Grammars:: Grammar Rules -* Preds:: Predicate Information -* OS:: Access to Operating System Functionality -* Term Modification:: Updating Prolog Terms -* Global Variables:: Manipulating Global Variables -* Profiling:: Profiling Prolog Execution -* Call Counting:: Limiting the Maximum Number of Reductions -* Arrays:: Supporting Global and Local Arrays -* Preds:: Information on Predicates -* Misc:: Miscellaneous Predicates - -@end menu - -@node Control, Undefined Procedures, , Top -@section Control Predicates - - -This chapter describes the predicates for controlling the execution of -Prolog programs. - -In the description of the arguments of functors the following notation -will be used: - -@itemize @bullet -@item -a preceding plus sign will denote an argument as an "input argument" - -it cannot be a free variable at the time of the call; -@item - a preceding minus sign will denote an "output argument"; -@item -an argument with no preceding symbol can be used in both ways. -@end itemize - - -@table @code - -@item +@var{P}, +@var{Q} [ISO] -@findex ,/2 -@syindex ,/2 -@cyindex ,/2 -Conjunction of goals (and). - -@noindent -Example: -@example - p(X) :- q(X), r(X). -@end example - -@noindent -should be read as "p(@var{X}) if q(@var{X}) and r(@var{X})". - -@item +@var{P} ; +@var{Q} [ISO] -@findex ;/2 -@syindex ;/2 -@cyindex ;/2 -Disjunction of goals (or). - -@noindent -Example: -@example - p(X) :- q(X); r(X). -@end example -@noindent -should be read as "p(@var{X}) if q(@var{X}) or r(@var{X})". - -@item true [ISO] -@findex true/0 -@syindex true/0 -@cyindex true/0 -Succeeds once. - -@item fail [ISO] -@findex fail/0 -@syindex fail/0 -@cyindex fail/0 -Always fails. - -@item false [ISO] -@findex false/0 -@syindex false/0 -@cnindex false/0 -The same as fail. - -@item ! [ISO] -@findex !/0 -@syindex !/0 -@cyindex !/0 - Read as "cut". Cuts any choices taken in the current procedure. -When first found "cut" succeeds as a goal, but if backtracking should -later return to it, the parent goal (the one which matches the head of -the clause containing the "cut", causing the clause activation) will -fail. This is an extra-logical predicate and cannot be explained in -terms of the declarative semantics of Prolog. - -example: - -@example - member(X,[X|_]). - member(X,[_|L]) :- member(X,L). -@end example - -@noindent -With the above definition - -@example - ?- member(X,[1,2,3]). -@end example - -@noindent -will return each element of the list by backtracking. With the following -definition: - -@example - member(X,[X|_]) :- !. - member(X,[_|L]) :- member(X,L). -@end example - -@noindent -the same query would return only the first element of the -list, since backtracking could not "pass through" the cut. - -@item \+ +@var{P} [ISO] -@findex \+/1 -@syindex \+/1 -@cyindex \+/1 -Goal @var{P} is not provable. The execution of this predicate fails if -and only if the goal @var{P} finitely succeeds. It is not a true logical -negation, which is impossible in standard Prolog, but -"negation-by-failure". - -@noindent -This predicate might be defined as: -@example - \+(P) :- P, !, fail. - \+(_). -@end example -@noindent -if @var{P} did not include "cuts". - -@item not +@var{P} -@findex not/1 -@snindex not/1 -@cyindex not/1 -Goal @var{P} is not provable. The same as @code{'\+ @var{P}'}. - -This predicate is kept for compatibility with C-Prolog and previous -versions of YAP. Uses of @code{not/1} should be replace by -@code{(\+)/1}, as YAP does not implement true negation. - -@item +@var{P} -> +@var{Q} [ISO] -@findex ->/2 -@syindex ->/2 -@cnindex ->/2 -Read as "if-then-else" or "commit". This operator is similar to the -conditional operator of imperative languages and can be used alone or -with an else part as follows: - -@table @code -@item +P -> +Q -"if P then Q". -@item +P -> +Q; +R -"if P then Q else R". -@end table - -@noindent -These two predicates could be defined respectively in Prolog as: -@example - (P -> Q) :- P, !, Q. -@end example -@noindent -and -@example - (P -> Q; R) :- P, !, Q. - (P -> Q; R) :- R. -@end example -@noindent -if there were no "cuts" in @var{P}, @var{Q} and @var{R}. - -Note that the commit operator works by "cutting" any alternative -solutions of @var{P}. - -Note also that you can use chains of commit operators like: -@example - P -> Q ; R -> S ; T. -@end example -@noindent -Note that @code{(->)/2} does not affect the scope of cuts in its -arguments. - -@item +@var{Condition} *-> +@var{Action} ; +@var{Else} -@findex *->/2 -@snindex *->/2 -@cnindex *->/2 -This construct implements the so-called @emph{soft-cut}. The control is - defined as follows: If @var{Condition} succeeds at least once, the - semantics is the same as (@var{Condition}, @var{Action}). If - @var{Condition} does not succeed, the semantics is that of (\+ - @var{Condition}, @var{Else}). In other words, If @var{Condition} - succeeds at least once, simply behave as the conjunction of - @var{Condition} and @var{Action}, otherwise execute @var{Else}. - - The construct @var{A *-> B}, i.e. without an @var{Else} branch, is -translated as the normal conjunction @var{A}, @var{B}. - -@item repeat [ISO] -@findex repeat/0 -@syindex repeat/0 -@cyindex repeat/0 -Succeeds repeatedly. - -In the next example, @code{repeat} is used as an efficient way to implement -a loop. The next example reads all terms in a file: - -@example - a :- repeat, read(X), write(X), nl, X=end_of_file, !. -@end example -@noindent -the loop is effectively terminated by the cut-goal, when the test-goal -@code{X=end} succeeds. While the test fails, the goals @code{read(X)}, -@code{write(X)}, and @code{nl} are executed repeatedly, because -backtracking is caught by the @code{repeat} goal. - -The built-in @code{repeat/1} could be defined in Prolog by: -@example - repeat. - repeat :- repeat. -@end example - -@item call(+@var{P}) [ISO] -@findex call/1 -@syindex call/1 -@cyindex call/1 - If @var{P} is instantiated to an atom or a compound term, the goal -@code{call(@var{P})} is executed as if the value of @code{P} was found -instead of the call to @code{call/1}, except that any "cut" occurring in -@var{P} only cuts alternatives in the execution of @var{P}. - -@item incore(+@var{P}) -@findex incore/1 -@syindex incore/1 -@cnindex incore/1 -The same as @code{call/1}. - -@item call(+@var{Closure},...,?@var{Ai},...) [ISO] -@findex call/n -@snindex call/n -@cnindex call/n -Meta-call where @var{Closure} is a closure that is converted into a goal by -appending the @var{Ai} additional arguments. The number of arguments varies -between 0 and 10. - -@item call_with_args(+@var{Name},...,?@var{Ai},...) -@findex call_with_args/n -@snindex call_with_args/n -@cnindex call_with_args/n -Meta-call where @var{Name} is the name of the procedure to be called and -the @var{Ai} are the arguments. The number of arguments varies between 0 -and 10. New code should use @code{call/N} for better portability. - -If @var{Name} is a complex term, then @code{call_with_args/n} behaves as -@code{call/n}: - -@example -call(p(X1,...,Xm), Y1,...,Yn) :- p(X1,...,Xm,Y1,...,Yn). -@end example - - -@item +@var{P} -@findex var_call/1 - The same as @code{call(@var{P})}. This feature has been kept to provide -compatibility with C-Prolog. When compiling a goal, YAP -generates a @code{call(@var{X})} whenever a variable @var{X} is found as -a goal. - -@example - a(X) :- X. -@end example -@noindent -is converted to: -@example - a(X) :- call(X). -@end example - -@item if(?@var{G},?@var{H},?@var{I}) -@findex if/3 -@syindex if/3 -@cnindex if/3 -Call goal @var{H} once per each solution of goal @var{H}. If goal -@var{H} has no solutions, call goal @var{I}. - -The built-in @code{if/3} is similar to @code{->/3}, with the difference -that it will backtrack over the test goal. Consider the following -small data-base: - -@example -a(1). b(a). c(x). -a(2). b(b). c(y). -@end example - -Execution of an @code{if/3} query will proceed as follows: - -@example - ?- if(a(X),b(Y),c(Z)). - -X = 1, -Y = a ? ; - -X = 1, -Y = b ? ; - -X = 2, -Y = a ? ; - -X = 2, -Y = b ? ; - -no -@end example - - -@noindent -The system will backtrack over the two solutions for @code{a/1} and the -two solutions for @code{b/1}, generating four solutions. - -Cuts are allowed inside the first goal @var{G}, but they will only prune -over @var{G}. - -If you want @var{G} to be deterministic you should use if-then-else, as -it is both more efficient and more portable. - -@item once(:@var{G}) [ISO] -@findex once/1 -@snindex once/1 -@cnindex once/1 -Execute the goal @var{G} only once. The predicate is defined by: - -@example - once(G) :- call(G), !. -@end example - -@noindent -Note that cuts inside @code{once/1} can only cut the other goals inside -@code{once/1}. - -@item forall(:@var{Cond},:@var{Action}) -@findex forall/2 -@snindex forall/2 -@cnindex forall/2 -For all alternative bindings of @var{Cond} @var{Action} can be -proven. The example verifies that all arithmetic statements in the list -@var{L} are correct. It does not say which is wrong if one proves wrong. - -@example -?- forall(member(Result = Formula, [2 = 1 + 1, 4 = 2 * 2]), - Result =:= Formula). -@end example - -@item ignore(:@var{Goal}) -@findex ignore/1 -@snindex ignore/1 -@cnindex ignore/1 -Calls @var{Goal} as @code{once/1}, but succeeds, regardless of whether -@code{Goal} succeeded or not. Defined as: - -@example -ignore(Goal) :- - Goal, !. -ignore(_). -@end example - -@item abort -@findex abort/0 -@syindex abort/0 -@cyindex abort/0 -Abandons the execution of the current goal and returns to top level. All -break levels (see @code{break/0} below) are terminated. It is mainly -used during debugging or after a serious execution error, to return to -the top-level. - - -@item break -@findex break/0 -@syindex break/0 -@cyindex break/0 -Suspends the execution of the current goal and creates a new execution -level similar to the top level, displaying the following message: - -@example - [ Break (level ) ] -@end example -@noindent -telling the depth of the break level just entered. To return to the -previous level just type the end-of-file character or call the -end_of_file predicate. This predicate is especially useful during -debugging. - -@item halt [ISO] -@findex halt/0 -@syindex halt/0 -@cyindex halt/0 -Halts Prolog, and exits to the calling application. In YAP, -@code{halt/0} returns the exit code @code{0}. - -@item halt(+ @var{I}) [ISO] -@findex halt/1 -@syindex halt/1 -@cnindex halt/1 -Halts Prolog, and exits to the calling application returning the code -given by the integer @var{I}. - -@item catch(+@var{Goal},+@var{Exception},+@var{Action}) [ISO] -@findex catch/3 -@snindex catch/3 -@cnindex catch/3 -The goal @code{catch(@var{Goal},@var{Exception},@var{Action})} tries to -execute goal @var{Goal}. If during its execution, @var{Goal} throws an -exception @var{E'} and this exception unifies with @var{Exception}, the -exception is considered to be caught and @var{Action} is executed. If -the exception @var{E'} does not unify with @var{Exception}, control -again throws the exception. - -The top-level of YAP maintains a default exception handler that -is responsible to capture uncaught exceptions. - -@item throw(+@var{Ball}) [ISO] -@findex throw/1 -@snindex throw/1 -@cnindex throw/1 -The goal @code{throw(@var{Ball})} throws an exception. Execution is -stopped, and the exception is sent to the ancestor goals until reaching -a matching @code{catch/3}, or until reaching top-level. - -@item garbage_collect -@findex garbage_collect/0 -@syindex garbage_collect/0 -@cnindex garbage_collect/0 -The goal @code{garbage_collect} forces a garbage collection. - -@item garbage_collect_atoms -@findex garbage_collect_atoms/0 -@syindex garbage_collect_atoms/0 -@cnindex garbage_collect_atoms/0 -The goal @code{garbage_collect} forces a garbage collection of the atoms -in the data-base. Currently, only atoms are recovered. - -@item gc -@findex gc/0 -@syindex gc/0 -@cnindex gc/0 -The goal @code{gc} enables garbage collection. The same as -@code{yap_flag(gc,on)}. - -@item nogc -@findex nogc/0 -@syindex nogc/0 -@cnindex nogc/0 -The goal @code{nogc} disables garbage collection. The same as -@code{yap_flag(gc,off)}. - -@item grow_heap(+@var{Size}) -@findex grow_heap/1 -@snindex grow_heap/1 -@cnindex grow_heap/1 -Increase heap size @var{Size} kilobytes. - -@item grow_stack(+@var{Size}) -@findex grow_stack/1 -@snindex grow_stack/1 -@cnindex grow_stack/1 -Increase stack size @var{Size} kilobytes. - -@end table - -@node Undefined Procedures, Messages, Control, Top -@section Handling Undefined Procedures - -A predicate in a module is said to be undefined if there are no clauses -defining the predicate, and if the predicate has not been declared to be -dynamic. What YAP does when trying to execute undefined predicates can -be specified in three different ways: -@itemize @bullet -@item By setting an YAP flag, through the @code{yap_flag/2} or -@code{set_prolog_flag/2} built-ins. This solution generalizes the -ISO standard. -@item By using the @code{unknown/2} built-in (this solution is -compatible with previous releases of YAP). -@item By defining clauses for the hook predicate -@code{user:unknown_predicate_handler/3}. This solution is compatible -with SICStus Prolog. -@end itemize - -In more detail: -@table @code -@item unknown(-@var{O},+@var{N}) -@findex unknown/2 -@saindex unknown/2 -@cnindex unknown/2 -Specifies an handler to be called is a program tries to call an -undefined static procedure @var{P}. - -The arity of @var{N} may be zero or one. If the arity is @code{0}, the -new action must be one of @code{fail}, @code{warning}, or -@code{error}. If the arity is @code{1}, @var{P} is an user-defined -handler and at run-time, the argument to the handler @var{P} will be -unified with the undefined goal. Note that @var{N} must be defined prior -to calling @code{unknown/2}, and that the single argument to @var{N} must -be unbound. - -In YAP, the default action is to @code{fail} (note that in the ISO -Prolog standard the default action is @code{error}). - -After defining @code{undefined/1} by: -@example -undefined(A) :- format('Undefined predicate: ~w~n',[A]), fail. -@end example -@noindent -and executing the goal: -@example -unknown(U,undefined(X)). -@end example -@noindent -a call to a predicate for which no clauses were defined will result in -the output of a message of the form: -@example -Undefined predicate: user:xyz(A1,A2) -@end example -@noindent -followed by the failure of that call. - -@item yap_flag(unknown,+@var{SPEC}) -@findex yap_flag_unknown/1 -Alternatively, one can use @code{yap_flag/2}, -@code{current_prolog_flag/2}, or @code{set_prolog_flag/2}, to set this -functionality. In this case, the first argument for the built-ins should -be @code{unknown}, and the second argument should be either -@code{error}, @code{warning}, @code{fail}, or a goal. - -@item user:unknown_predicate_handler(+G,+M,?NG) -@findex unknown_predicate_handler/3 -@syindex unknown_predicate_handler/3 -@cnindex unknown_predicate_handler/3 -The user may also define clauses for -@code{user:unknown_predicate_handler/3} hook predicate. This -user-defined procedure is called before any system processing for the -undefined procedure, with the first argument @var{G} set to the current -goal, and the second @var{M} set to the current module. The predicate -@var{G} will be called from within the user module. - -If @code{user:unknown_predicate_handler/3} succeeds, the system will -execute @var{NG}. If @code{user:unknown_predicate_handler/3} fails, the -system will execute default action as specified by @code{unknown/2}. - -@item exception(+@var{Exception}, +@var{Context}, -@var{Action}) -@findex exception/3 -@syindex exception/3 -@cnindex exception/3 - Dynamic predicate, normally not defined. Called by the Prolog system on run-time exceptions that can be repaired `just-in-time'. The values for @var{Exception} are described below. See also @code{catch/3} and @code{throw/1}. -If this hook predicate succeeds it must instantiate the @var{Action} argument to the atom @code{fail} to make the operation fail silently, @code{retry} to tell Prolog to retry the operation or @code{error} to make the system generate an exception. The action @code{retry} only makes sense if this hook modified the environment such that the operation can now succeed without error. - -@table @code -@item undefined_predicate -@var{Context} is instantiated to a predicate-indicator (@var{Module:Name/Arity}). If the predicate fails Prolog will generate an existence_error exception. The hook is intended to implement alternatives to the SWI built-in autoloader, such as autoloading code from a database. Do not use this hook to suppress existence errors on predicates. See also @code{unknown}. -@item undefined_global_variable -@var{Context} is instantiated to the name of the missing global variable. The hook must call @code{nb_setval/2} or @code{b_setval/2} before returning with the action retry. -@end table - -@end table - -@node Messages, Testing Terms, Undefined Procedures, Top -@section Message Handling - -The interaction between YAP and the user relies on YAP's ability to -portray messages. These messages range from prompts to error -information. All message processing is performed through the builtin -@code{print_message/2}, in two steps: - -@itemize @bullet -@item The message is processed into a list of commands -@item The commands in the list are sent to the @code{format/3} builtin -in sequence. -@end itemize - -The first argument to @code{print_message/2} specifies the importance of -the message. The options are: - -@table @code -@item error -error handling -@item warning -compilation and run-time warnings, -@item informational -generic informational messages -@item help -help messages (not currently implemented in YAP) -@item query -query used in query processing (not currently implemented in YAP) -@item silent -messages that do not produce output but that can be intercepted by hooks. -@end table - -The next table shows the main predicates and hooks associated to message -handling in YAP: -@table @code -@item print_message(+@var{Kind}, @var{Term}) -@findex print_message/2 -@syindex print_message/2 -@cnindex print_message/2 -The predicate print_message/2 is used to print messages, notably from -exceptions in a human-readable format. @var{Kind} is one of -@code{informational}, @code{banner}, @code{warning}, @code{error}, -@code{help} or @code{silent}. A human-readable message is printed to -the stream @code{user_error}. - -@c \index{silent}\index{quiet}% -If the Prolog flag @code{verbose} is @code{silent}, messages with -@var{Kind} @code{informational}, or @code{banner} are treated as -silent.@c See \cmdlineoption{-q}. - -This predicate first translates the @var{Term} into a list of `message -lines' (see @code{print_message_lines/3} for details). Next it will -call the hook @code{message_hook/3} to allow the user intercepting the -message. If @code{message_hook/3} fails it will print the message unless -@var{Kind} is silent. - -@c The print_message/2 predicate and its rules are in the file -@c \file{/boot/messages.pl}, which may be inspected for more -@c information on the error messages and related error terms. -If you need to report errors from your own predicates, we advise you to -stick to the existing error terms if you can; but should you need to -invent new ones, you can define corresponding error messages by -asserting clauses for @code{prolog:message/2}. You will need to declare -the predicate as multifile. - -@c See also message_to_string/2. - -@item print_message_lines(+@var{Stream}, +@var{Prefix}, +@var{Lines}) -@findex print_message_lines/3 -@syindex print_message_lines/3 -@cnindex print_message_lines/3 -Print a message (see @code{print_message/2}) that has been translated to -a list of message elements. The elements of this list are: - -@table @code - @item @code{}-@code{} - Where @var{Format} is an atom and @var{Args} is a list - of format argument. Handed to @code{format/3}. - @item @code{flush} - If this appears as the last element, @var{Stream} is flushed - (see @code{flush_output/1}) and no final newline is generated. - @item @code{at_same_line} - If this appears as first element, no prefix is printed for - the first line and the line-position is not forced to 0 - (see @code{format/1}, @code{~N}). - @item @code{} - Handed to @code{format/3} as @code{format(Stream, Format, [])}. - @item nl - A new line is started and if the message is not complete - the @var{Prefix} is printed too. -@end table - -@item user:message_hook(+@var{Term}, +@var{Kind}, +@var{Lines}) -@findex message_hook/3 -@syindex message_hook/3 -@cnindex message_hook/3 -Hook predicate that may be define in the module @code{user} to intercept -messages from @code{print_message/2}. @var{Term} and @var{Kind} are the -same as passed to @code{print_message/2}. @var{Lines} is a list of -format statements as described with @code{print_message_lines/3}. - -This predicate should be defined dynamic and multifile to allow other -modules defining clauses for it too. - -@item message_to_string(+@var{Term}, -@var{String}) -@findex message_to_string/2 -@snindex message_to_string/2 -@cnindex message_to_string/2 -Translates a message-term into a string object. Primarily intended for SWI-Prolog emulation. -@end table - -@node Testing Terms, Predicates on Atoms, Messages, Top -@section Predicates on terms - -@table @code - -@item var(@var{T}) [ISO] -@findex var/1 -@syindex var/1 -@cyindex var/1 -Succeeds if @var{T} is currently a free variable, otherwise fails. - -@item atom(@var{T}) [ISO] -@findex atom/1 -@syindex atom/1 -@cyindex atom/1 -Succeeds if and only if @var{T} is currently instantiated to an atom. - -@item atomic(T) [ISO] -@findex atomic/1 -@syindex atomic/1 -@cyindex atomic/1 -Checks whether @var{T} is an atomic symbol (atom or number). - -@item compound(@var{T}) [ISO] -@findex compound/1 -@syindex compound/1 -@cnindex compound/1 -Checks whether @var{T} is a compound term. - -@item db_reference(@var{T}) -@findex db_reference/1C -@syindex db_reference/1 -@cyindex db_reference/1 -Checks whether @var{T} is a database reference. - -@item float(@var{T}) [ISO] -@findex float/1 -@syindex float/1 -@cnindex float/1 -Checks whether @var{T} is a floating point number. - -@item rational(@var{T}) -@findex rational/1 -@syindex rational/1 -@cyindex rational/1 -Checks whether @code{T} is a rational number. - -@item integer(@var{T}) [ISO] -@findex integer/1 -@syindex integer/1 -@cyindex integer/1 -Succeeds if and only if @var{T} is currently instantiated to an integer. - -@item nonvar(@var{T}) [ISO] -@findex nonvar/1 -@syindex nonvar/1 -@cyindex nonvar/1 -The opposite of @code{var(@var{T})}. - -@item number(@var{T}) [ISO] -@findex number/1 -@syindex number/1 -@cyindex number/1 -Checks whether @code{T} is an integer, rational or a float. - -@item primitive(@var{T}) -@findex primitive/1 -@syindex primitive/1 -@cyindex primitive/1 -Checks whether @var{T} is an atomic term or a database reference. - -@item simple(@var{T}) -@findex simple/1 -@syindex simple/1 -@cnindex simple/1 -Checks whether @var{T} is unbound, an atom, or a number. - -@item callable(@var{T}) [ISO] -@findex callable/1 -@syindex callable/1 -@cnindex callable/1 -Checks whether @var{T} is a callable term, that is, an atom or a -compound term. - -@item numbervars(@var{T},+@var{N1},-@var{Nn}) -@findex numbervars/3 -@syindex numbervars/3 -@cnindex numbervars/3 -Instantiates each variable in term @var{T} to a term of the form: -@code{'$VAR'(@var{I})}, with @var{I} increasing from @var{N1} to @var{Nn}. - -@item unnumbervars(@var{T},+@var{NT}) -@findex unnumbervars/2 -@syindex unnumbervars/2 -@cnindex unnumbervars/2 -Replace every @code{'$VAR'(@var{I})} by a free variable. - -@item ground(@var{T}) [ISO] -@findex ground/1 -@syindex ground/1 -@cnindex ground/1 -Succeeds if there are no free variables in the term @var{T}. - -@item acyclic_term(@var{T}) [ISO] -@findex acyclic_term/1 -@snindex acyclic_term/1 -@cnindex acyclic_term/1 -Succeeds if there are loops in the term @var{T}, that is, it is an infinite term. - -@item arg(+@var{N},+@var{T},@var{A}) [ISO] -@findex arg/3 -@syindex arg/3 -@cnindex arg/3 -Succeeds if the argument @var{N} of the term @var{T} unifies with -@var{A}. The arguments are numbered from 1 to the arity of the term. - -The current version will generate an error if @var{T} or @var{N} are -unbound, if @var{T} is not a compound term, of if @var{N} is not a positive -integer. Note that previous versions of YAP would fail silently -under these errors. - -@item functor(@var{T},@var{F},@var{N}) [ISO] -@findex functor/3 -@syindex functor/3 -@cyindex functor/3 -The top functor of term @var{T} is named @var{F} and has arity @var{N}. - -When @var{T} is not instantiated, @var{F} and @var{N} must be. If -@var{N} is 0, @var{F} must be an atomic symbol, which will be unified -with @var{T}. If @var{N} is not 0, then @var{F} must be an atom and -@var{T} becomes instantiated to the most general term having functor -@var{F} and arity @var{N}. If @var{T} is instantiated to a term then -@var{F} and @var{N} are respectively unified with its top functor name -and arity. - -In the current version of YAP the arity @var{N} must be an -integer. Previous versions allowed evaluable expressions, as long as the -expression would evaluate to an integer. This feature is not available -in the ISO Prolog standard. - -@item @var{T} =.. @var{L} [ISO] -@findex =../2 -@syindex =../2 -@cyindex =../2 -The list @var{L} is built with the functor and arguments of the term -@var{T}. If @var{T} is instantiated to a variable, then @var{L} must be -instantiated either to a list whose head is an atom, or to a list -consisting of just a number. - -@item @var{X} = @var{Y} [ISO] -@findex =/2 -@syindex =/2 -@cnindex =/2 -Tries to unify terms @var{X} and @var{Y}. - -@item @var{X} \= @var{Y} [ISO] -@findex \=/2 -@snindex \=/2 -@cnindex \=/2 -Succeeds if terms @var{X} and @var{Y} are not unifiable. - -@item unify_with_occurs_check(?T1,?T2) [ISO] -@findex unify_with_occurs_check/2 -@syindex unify_with_occurs_check/2 -@cnindex unify_with_occurs_check/2 -Obtain the most general unifier of terms @var{T1} and @var{T2}, if there -is one. - -This predicate implements the full unification algorithm. An example:n -@example -unify_with_occurs_check(a(X,b,Z),a(X,A,f(B)). -@end example -@noindent -will succeed with the bindings @code{A = b} and @code{Z = f(B)}. On the -other hand: -@example -unify_with_occurs_check(a(X,b,Z),a(X,A,f(Z)). -@end example -@noindent -would fail, because @code{Z} is not unifiable with @code{f(Z)}. Note that -@code{(=)/2} would succeed for the previous examples, giving the following -bindings @code{A = b} and @code{Z = f(Z)}. - - -@item copy_term(?@var{TI},-@var{TF}) [ISO] -@findex copy_term/2 -@syindex copy_term/2 -@cnindex copy_term/2 -Term @var{TF} is a variant of the original term @var{TI}, such that for -each variable @var{V} in the term @var{TI} there is a new variable @var{V'} -in term @var{TF}. Notice that: - -@itemize @bullet -@item suspended goals and attributes for attributed variables in - @var{TI} are also duplicated; -@item ground terms are shared between the new and the old term. -@end itemize - -If you do not want any sharing to occur please use -@code{duplicate_term/2}. - -@item duplicate_term(?@var{TI},-@var{TF}) -@findex duplicate_term/2 -@syindex duplicate_term/2 -@cnindex duplicate_term/2 -Term @var{TF} is a variant of the original term @var{TI}, such that -for each variable @var{V} in the term @var{TI} there is a new variable -@var{V'} in term @var{TF}, and the two terms do not share any -structure. All suspended goals and attributes for attributed variables -in @var{TI} are also duplicated. - -Also refer to @code{copy_term/2}. - -@item is_list(+@var{List}) -@findex is_list/1 -@syindex is_list/1 -@cnindex is_list/1 -True when @var{List} is a proper list. That is, @var{List} -is bound to the empty list (nil) or a term with functor '.' and arity 2. - -@item ?@var{Term1} =@@= ?@var{Term2} -@findex =@=/2 -@syindex =@=/2 -@cnindex =@=/2 - -Same as @code{variant/2}, succeeds if @var{Term1} and @var{Term2} are variant terms. - - -@item subsumes_term(?@var{Subsumer}, ?@var{Subsumed}) -@findex subsumes_term/2 -@syindex subsumes_term/2 -@cnindex subsumes_term/2 - -Succeed if @var{Submuser} subsumes @var{Subsuned} but does not bind any -variable in @var{Subsumer}. - -@item term_subsumer(?@var{T1}, ?@var{T2}, ?@var{Subsumer}) -@findex term_subsumer/2 -@syindex term_subsumer/2 -@cnindex term_subsumer/2 - -Succeed if @var{Subsumer} unifies with the least general -generalization over @var{T1} and -@var{T2}. - -@item term_variables(?@var{Term}, -@var{Variables}) [ISO] -@findex term_variables/2 -@syindex term_variables/2 -@cnindex term_variables/2 - -Unify @var{Variables} with the list of all variables of term -@var{Term}. The variables occur in the order of their first -appearance when traversing the term depth-first, left-to-right. - -@item rational_term_to_tree(?@var{TI},-@var{TF}) -@findex rational_term_to_tree/2 -@syindex rational_term_to_term/2 -@cnindex rational_term_to_tree/2 -The term @var{TF} is a tree representation (without cycles) for the - Prolog term @var{TI}. Loops are replaced by terms of the form - @code{_LOOP_(@var{LevelsAbove})} where @var{LevelsAbove} is the size of - the loop. - -@item tree_to_rational_term(?@var{TI},-@var{TF}) -@findex tree_to_rational_term/2 -@syindex tree_to_rational_term/2 -@cnindex tree_to_rational_term/2 -Inverse of above. The term @var{TI} is a tree representation (without - cycles) for the Prolog term @var{TF}. Loops replace terms of the form - @code{_LOOP_(@var{LevelsAbove})} where @var{LevelsAbove} is the size of - the loop. - - -@end table - -@node Predicates on Atoms, Predicates on Characters, Testing Terms, Top -@section Predicates on Atoms - -The following predicates are used to manipulate atoms: - -@table @code -@item name(@var{A},@var{L}) -@findex name/2 -@syindex name/2 -@cyindex name/2 -The predicate holds when at least one of the arguments is ground -(otherwise, an error message will be displayed). The argument @var{A} will -be unified with an atomic symbol and @var{L} with the list of the ASCII -codes for the characters of the external representation of @var{A}. - -@example - name(yap,L). -@end example -@noindent -will return: -@example - L = [121,97,112]. -@end example -@noindent -and -@example - name(3,L). -@end example -@noindent -will return: -@example - L = [51]. -@end example - -@item atom_chars(?@var{A},?@var{L}) [ISO] -@findex atom_chars/2 -@saindex atom_chars/2 -@cnindex atom_chars/2 -The predicate holds when at least one of the arguments is ground -(otherwise, an error message will be displayed). The argument @var{A} must -be unifiable with an atom, and the argument @var{L} with the list of the -characters of @var{A}. - -@item atom_codes(?@var{A},?@var{L}) [ISO] -@findex atom_codes/2 -@syindex atom_codes/2 -@cnindex atom_codes/2 -The predicate holds when at least one of the arguments is ground -(otherwise, an error message will be displayed). The argument @var{A} will -be unified with an atom and @var{L} with the list of the ASCII -codes for the characters of the external representation of @var{A}. - -@item atom_concat(+@var{As},?@var{A}) -@findex atom_concat/2 -@syindex atom_concat/2 -@cnindex atom_concat/2 -The predicate holds when the first argument is a list of atoms, and the -second unifies with the atom obtained by concatenating all the atoms in -the first list. - -@item atomic_concat(+@var{As},?@var{A}) -@findex atomic_concat/2 -@snindex atomic_concat/2 -@cnindex atomic_concat/2 -The predicate holds when the first argument is a list of atomic terms, and -the second unifies with the atom obtained by concatenating all the -atomic terms in the first list. The first argument thus may contain -atoms or numbers. - -@item atomic_list_concat(+@var{As},?@var{A}) -@findex atomic_list_concat/2 -@snindex atomic_list_concat/2 -@cnindex atomic_list_concat/2 -The predicate holds when the first argument is a list of atomic terms, and -the second unifies with the atom obtained by concatenating all the -atomic terms in the first list. The first argument thus may contain -atoms or numbers. - -@item atomic_list_concat(?@var{As},+@var{Separator},?@var{A}) -@findex atomic_list_concat/3 -@snindex atomic_list_concat/3 -@cnindex atomic_list_concat/3 -Creates an atom just like @code{atomic_list_concat/2}, but inserts -@var{Separator} between each pair of atoms. For example: - -@example -?- atomic_list_concat([gnu, gnat], ', ', A). - -A = 'gnu, gnat' -@end example - -YAP emulates the SWI-Prolog version of this predicate that can also be -used to split atoms by instantiating @var{Separator} and @var{Atom} as -shown below. - -@example -?- atomic_list_concat(L, -, 'gnu-gnat'). - -L = [gnu, gnat] -@end example - -@item atom_length(+@var{A},?@var{I}) [ISO] -@findex atom_length/2 -@snindex atom_length/2 -@cnindex atom_length/2 -The predicate holds when the first argument is an atom, and the second -unifies with the number of characters forming that atom. - -@item atom_concat(?@var{A1},?@var{A2},?@var{A12}) [ISO] -@findex atom_concat/3 -@snindex atom_concat/3 -@cnindex atom_concat/3 -The predicate holds when the third argument unifies with an atom, and -the first and second unify with atoms such that their representations -concatenated are the representation for @var{A12}. - -If @var{A1} and @var{A2} are unbound, the built-in will find all the atoms -that concatenated give @var{A12}. - -@item number_chars(?@var{I},?@var{L}) [ISO] -@findex number_chars/2 -@saindex number_chars/2 -@cnindex number_chars/2 - -The predicate holds when at least one of the arguments is ground -(otherwise, an error message will be displayed). The argument @var{I} must -be unifiable with a number, and the argument @var{L} with the list of the -characters of the external representation of @var{I}. - -@item number_codes(?@var{A},?@var{L}) [ISO] -@findex number_codes/2 -@syindex number_codes/2 -@cnindex number_codes/2 -The predicate holds when at least one of the arguments is ground -(otherwise, an error message will be displayed). The argument @var{A} -will be unified with a number and @var{L} with the list of the ASCII -codes for the characters of the external representation of @var{A}. - -@item atom_number(?@var{Atom},?@var{Number}) -@findex atom_number/2 -@syindex atom_number/2 -@cnindex atom_number/2 -The predicate holds when at least one of the arguments is ground -(otherwise, an error message will be displayed). If the argument -@var{Atom} is an atom, @var{Number} must be the number corresponding -to the characters in @var{Atom}, otherwise the characters in -@var{Atom} must encode a number @var{Number}. - -@item number_atom(?@var{I},?@var{L}) -@findex number_atom/2 -@snindex number_atom/2 -@cnindex number_atom/2 - -The predicate holds when at least one of the arguments is ground -(otherwise, an error message will be displayed). The argument @var{I} must -be unifiable with a number, and the argument @var{L} must be unifiable -with an atom representing the number. - -@item sub_atom(+@var{A},?@var{Bef}, ?@var{Size}, ?@var{After}, ?@var{At_out}) [ISO] -@findex sub_atom/5 -@snindex sub_atom/5 -@cnindex sub_atom/5 -True when @var{A} and @var{At_out} are atoms such that the name of -@var{At_out} has size @var{Size} and is a sub-string of the name of -@var{A}, such that @var{Bef} is the number of characters before and -@var{After} the number of characters afterwards. - -Note that @var{A} must always be known, but @var{At_out} can be unbound when -calling this built-in. If all the arguments for @code{sub_atom/5} but @var{A} -are unbound, the built-in will backtrack through all possible -sub-strings of @var{A}. - -@end table - -@node Predicates on Characters, Comparing Terms, Predicates on Atoms, Top -@section Predicates on Characters - -The following predicates are used to manipulate characters: - -@table @code -@item char_code(?@var{A},?@var{I}) [ISO] -@findex char_code/2 -@syindex char_code/2 -@cnindex char_code/2 -The built-in succeeds with @var{A} bound to character represented as an -atom, and @var{I} bound to the character code represented as an -integer. At least, one of either @var{A} or @var{I} must be bound before -the call. - -@item char_type(?@var{Char}, ?@var{Type}) -@findex char_type/2 -@snindex char_type/2 -@cnindex char_type/2 - Tests or generates alternative @var{Types} or @var{Chars}. The - character-types are inspired by the standard @code{C} - @code{} primitives. - -@table @code -@item alnum - @var{Char} is a letter (upper- or lowercase) or digit. - -@item alpha - @var{Char} is a letter (upper- or lowercase). - -@item csym - @var{Char} is a letter (upper- or lowercase), digit or the underscore (_). These are valid C- and Prolog symbol characters. - -@item csymf - @var{Char} is a letter (upper- or lowercase) or the underscore (_). These are valid first characters for C- and Prolog symbols - -@item ascii - @var{Char} is a 7-bits ASCII character (0..127). - -@item white - @var{Char} is a space or tab. E.i. white space inside a line. - -@item cntrl - @var{Char} is an ASCII control-character (0..31). - -@item digit - @var{Char} is a digit. - -@item digit(@var{Weight}) - @var{Char} is a digit with value - @var{Weight}. I.e. @code{char_type(X, digit(6))} yields @code{X = '6'}. Useful for parsing numbers. - -@item xdigit(@var{Weight}) - @var{Char} is a hexa-decimal digit with value @var{Weight}. I.e. char_type(a, xdigit(X) yields X = '10'. Useful for parsing numbers. - -@item graph - @var{Char} produces a visible mark on a page when printed. Note that the space is not included! - -@item lower - @var{Char} is a lower-case letter. - -@item lower(Upper) - @var{Char} is a lower-case version of @var{Upper}. Only true if - @var{Char} is lowercase and @var{Upper} uppercase. - -@item to_lower(Upper) - @var{Char} is a lower-case version of Upper. For non-letters, or letter without case, @var{Char} and Lower are the same. See also upcase_atom/2 and downcase_atom/2. - -@item upper - @var{Char} is an upper-case letter. - -@item upper(Lower) - @var{Char} is an upper-case version of Lower. Only true if @var{Char} is uppercase and Lower lowercase. - -@item to_upper(Lower) - @var{Char} is an upper-case version of Lower. For non-letters, or letter without case, @var{Char} and Lower are the same. See also upcase_atom/2 and downcase_atom/2. - -@item punct - @var{Char} is a punctuation character. This is a graph character that is not a letter or digit. - -@item space - @var{Char} is some form of layout character (tab, vertical-tab, newline, etc.). - -@item end_of_file - @var{Char} is -1. - -@item end_of_line - @var{Char} ends a line (ASCII: 10..13). - -@item newline - @var{Char} is a the newline character (10). - -@item period - @var{Char} counts as the end of a sentence (.,!,?). - -@item quote - @var{Char} is a quote-character (", ', `). - -@item paren(Close) - @var{Char} is an open-parenthesis and Close is the corresponding close-parenthesis. -@end table - -@item code_type(?@var{Code}, ?@var{Type}) -@findex code_type/2 -@snindex code_type/2 -@cnindex code_type/2 - As @code{char_type/2}, but uses character-codes rather than - one-character atoms. Please note that both predicates are as - flexible as possible. They handle either representation if the - argument is instantiated and only will instantiate with an integer - code or one-character atom depending of the version used. See also - the prolog-flag @code{double_quotes} and the built-in predicates - @code{atom_chars/2} and @code{atom_codes/2}. - -@end table - -@node Comparing Terms, Arithmetic, Predicates on Characters, Top -@section Comparing Terms - -The following predicates are used to compare and order terms, using the -standard ordering: - -@itemize @bullet -@item -variables come before numbers, numbers come before atoms which in turn -come before compound terms, i.e.: variables @@< numbers @@< atoms @@< -compound terms. -@item -Variables are roughly ordered by "age" (the "oldest" variable is put -first); -@item -Floating point numbers are sorted in increasing order; -@item -Rational numbers are sorted in increasing order; -@item -Integers are sorted in increasing order; -@item -Atoms are sorted in lexicographic order; -@item -Compound terms are ordered first by arity of the main functor, then by -the name of the main functor, and finally by their arguments in -left-to-right order. -@end itemize - -@table @code - -@item compare(@var{C},@var{X},@var{Y}) [ISO] -@findex compare/3 -@syindex compare/3 -@cyindex compare/3 -As a result of comparing @var{X} and @var{Y}, @var{C} may take one of -the following values: - -@itemize @bullet -@item -@code{=} if @var{X} and @var{Y} are identical; -@item -@code{<} if @var{X} precedes @var{Y} in the defined order; -@item -@code{>} if @var{Y} precedes @var{X} in the defined order; -@end itemize - -@item @var{X} == @var{Y} [ISO] -@findex ==/2 -@syindex ==/2 -@cyindex ==/2 -Succeeds if terms @var{X} and @var{Y} are strictly identical. The -difference between this predicate and @code{=/2} is that, if one of the -arguments is a free variable, it only succeeds when they have already -been unified. - -@example -?- X == Y. -@end example -@noindent -fails, but, -@example -?- X = Y, X == Y. -@end example -@noindent -succeeds. -@example -?- X == 2. -@end example -@noindent -fails, but, -@example -?- X = 2, X == 2. -@end example -@noindent -succeeds. - - -@item @var{X} \== @var{Y} [ISO] -@findex \==/2 -@syindex \==/2 -@cyindex \==/2 -Terms @var{X} and @var{Y} are not strictly identical. - -@item @var{X} @@< @var{Y} [ISO] -@findex @@ @var{Y} [ISO] -@findex @@>/2 -@syindex @@>/2 -@cyindex @@>/2 -Term @var{X} follows term @var{Y} in the standard order. - -@item @var{X} @@>= @var{Y} [ISO] -@findex @@>=/2 -@syindex @@>=/2 -@cyindex @@>=/2 -Term @var{X} does not precede term @var{Y} in the standard order. - -@item sort(+@var{L},-@var{S}) [ISO] -@findex sort/2 -@syindex sort/2 -@cyindex sort/2 -Unifies @var{S} with the list obtained by sorting @var{L} and merging -identical (in the sense of @code{==}) elements. - -@item keysort(+@var{L},@var{S}) [ISO] -@findex keysort/2 -@syindex keysort/2 -@cyindex keysort/2 -Assuming L is a list of the form @code{@var{Key}-@var{Value}}, -@code{keysort(+@var{L},@var{S})} unifies @var{S} with the list obtained -from @var{L}, by sorting its elements according to the value of -@var{Key}. -@example -?- keysort([3-a,1-b,2-c,1-a,1-b],S). -@end example -@noindent -would return: -@example -S = [1-b,1-a,1-b,2-c,3-a] -@end example - -@item predsort(+@var{Pred}, +@var{List}, -@var{Sorted}) -@findex predsort/3 -@snindex predsort/3 -@cnindex predsort/3 -Sorts similar to sort/2, but determines the order of two terms by -calling @var{Pred}(-@var{Delta}, +@var{E1}, +@var{E2}) . This call must -unify @var{Delta} with one of @code{<}, @code{>} or @code{=}. If -built-in predicate compare/3 is used, the result is the same as -sort/2. - -@item length(?@var{L},?@var{S}) -@findex length/2 -@syindex length/2 -@cyindex length/2 -Unify the well-defined list @var{L} with its length. The procedure can -be used to find the length of a pre-defined list, or to build a list -of length @var{S}. - -@end table - -@node Arithmetic, Input/Output, Comparing Terms, Top -@section Arithmetic - -@ifplaintext -@copydoc arithmetic - -See @ref arithmetic_preds for the predicates that implement arithment - -See @ref arithmetic_cmps for the arithmetic comparisons supported in YAP - -See @ref arithmetic_operators for how to call arithmetic operations in YAP - -@end ifplaintext - -@texinfo -YAP now supports several different numeric types: - -@table @code -@item integers - When YAP is built using the GNU multiple precision arithmetic - library (GMP), integer arithmetic is unbounded, which means that - the size of integers is limited by available memory only. Without - GMP, SWI-Prolog integers have the same size as an address. The - type of integer support can be detected using the Prolog flags - bounded, min_integer and max_integer. As the use of GMP is - default, most of the following descriptions assume unbounded - integer arithmetic. - - Internally, SWI-Prolog has three integer representations. Small - integers (defined by the Prolog flag max_tagged_integer) are - encoded directly. Larger integers are represented as cell values - on the global stack. Integers that do not fit in 64-bit are - represented as serialised GNU MPZ structures on the global stack. - -@item number - Rational numbers (Q) are quotients of two integers. Rational - arithmetic is only provided if GMP is used (see above). Rational - numbers that are returned from is/2 are canonical, which means M - is positive and N and M have no common divisors. Rational numbers - are introduced in the computation using the rational/1, - rationalize/1 or the -rdiv/2 (rational division) function. - -@item float - Floating point numbers are represented using the C-type double. On most today platforms these are 64-bit IEEE floating point numbers. - -@end table - -Arithmetic functions that require integer arguments accept, in addition -to integers, rational numbers with denominator `1' and floating point -numbers that can be accurately converted to integers. If the required -argument is a float the argument is converted to float. Note that -conversion of integers to floating point numbers may raise an overflow -exception. In all other cases, arguments are converted to the same type -using the order integer to rational number to floating point number. - -@subsection Arithmetic Expressions - -Arithmetic expressions in YAP may use the following operators or -@i{evaluable predicates}: - -@table @code - -@item +@var{X} [ISO] -The value of @var{X} itself. - -@item -@var{X} [ISO] -Symmetric value. - -@item @var{X}+@var{Y} [ISO] -Sum. - -@item @var{X}-@var{Y} [ISO] -Difference. - -@item @var{X}*@var{Y} [ISO] -Product. - -@item @var{X}/@var{Y} [ISO] -Quotient. - -@item @var{X}//@var{Y} [ISO] -Integer quotient. - -@item @var{X} mod @var{Y} [ISO] -Integer module operator, always positive. - -@item @var{X} rem @var{Y} [ISO] -Integer remainder, similar to @code{mod} but always has the same sign -@code{X}. - -@item @var{X} div @var{Y} [ISO] -Integer division, as if defined by @code{(@var{X} - @var{X} mod @var{Y})// @var{Y}}. - -@item exp(@var{X}) [ISO] -Natural exponential. - -@item log(@var{X}) [ISO] -Natural logarithm. - -@item log10(@var{X}) -Decimal logarithm. - -@item sqrt(@var{X}) [ISO] -Square root. - -@item sin(@var{X}) [ISO] -Sine. - -@item cos(@var{X}) [ISO] -Cosine. - -@item tan(@var{X}) [ISO] -Tangent. - -@item asin(@var{X}) [ISO] -Arc sine. - -@item acos(@var{X}) [ISO] -Arc cosine. - -@item atan(@var{X}) [ISO] -Arc tangent. - -@item atan(@var{X},@var{Y}) -Four-quadrant arc tangent. Also available as @code{atan2/2}. - -@item atan2(@var{X},@var{Y}) [ISO] -Four-quadrant arc tangent. - -@item sinh(@var{X}) -Hyperbolic sine. - -@item cosh(@var{X}) -Hyperbolic cosine. - -@item tanh(@var{X}) -Hyperbolic tangent. - -@item asinh(@var{X}) -Hyperbolic arc sine. - -@item acosh(@var{X}) -Hyperbolic arc cosine. - -@item atanh(@var{X}) -Hyperbolic arc tangent. - -@item lgamma(@var{X}) -Logarithm of gamma function. - -@item erf(@var{X}) -Gaussian error function. - -@item erfc(@var{X}) -Complementary gaussian error function. - -@item random(@var{X}) [ISO] -An integer random number between 0 and @var{X}. - -In @code{iso} language mode the argument must be a floating -point-number, the result is an integer and it the float is equidistant -it is rounded up, that is, to the least integer greater than @var{X}. - -@item integer(@var{X}) -If @var{X} evaluates to a float, the integer between the value of @var{X} -and 0 closest to the value of @var{X}, else if @var{X} evaluates to an -integer, the value of @var{X}. - -@item float(@var{X}) [ISO] -If @var{X} evaluates to an integer, the corresponding float, else the float -itself. - -@item float_fractional_part(@var{X}) [ISO] -The fractional part of the floating point number @var{X}, or @code{0.0} -if @var{X} is an integer. In the @code{iso} language mode, -@var{X} must be an integer. - -@item float_integer_part(@var{X}) [ISO] -The float giving the integer part of the floating point number @var{X}, -or @var{X} if @var{X} is an integer. In the @code{iso} language mode, -@var{X} must be an integer. - -@item abs(@var{X}) [ISO] -The absolute value of @var{X}. - -@item ceiling(@var{X}) [ISO] -The integer that is the smallest integral value not smaller than @var{X}. - -In @code{iso} language mode the argument must be a floating -point-number and the result is an integer. - -@item floor(@var{X}) [ISO] -The integer that is the greatest integral value not greater than @var{X}. - -In @code{iso} language mode the argument must be a floating -point-number and the result is an integer. - -@item round(@var{X}) [ISO] -The nearest integral value to @var{X}. If @var{X} is -equidistant to two integers, it will be rounded to the closest even -integral value. - -In @code{iso} language mode the argument must be a floating -point-number, the result is an integer and it the float is equidistant -it is rounded up, that is, to the least integer greater than @var{X}. - -@item sign(@var{X}) [ISO] -Return 1 if the @var{X} evaluates to a positive integer, 0 it if -evaluates to 0, and -1 if it evaluates to a negative integer. If @var{X} -evaluates to a floating-point number return 1.0 for a positive @var{X}, -0.0 for 0.0, and -1.0 otherwise. - -@item truncate(@var{X}) [ISO] -The integral value between @var{X} and 0 closest to -@var{X}. - -@item rational(@var{X}) -Convert the expression @var{X} to a rational number or integer. The -function returns the input on integers and rational numbers. For -floating point numbers, the returned rational number exactly represents -the float. As floats cannot exactly represent all decimal numbers the -results may be surprising. In the examples below, doubles can represent -@code{0.25} and the result is as expected, in contrast to the result of -@code{rational(0.1)}. The function @code{rationalize/1} gives a more -intuitive result. - -@example -?- A is rational(0.25). - -A is 1 rdiv 4 -?- A is rational(0.1). -A = 3602879701896397 rdiv 36028797018963968 -@end example - -@item rationalize(@var{X}) -Convert the Expr to a rational number or integer. The function is -similar to @code{rational/1}, but the result is only accurate within the -rounding error of floating point numbers, generally producing a much -smaller denominator. - -@example -?- A is rationalize(0.25). - -A = 1 rdiv 4 -?- A is rationalize(0.1). - -A = 1 rdiv 10 -@end example - - -@item max(@var{X},@var{Y}) [ISO] -The greater value of @var{X} and @var{Y}. - -@item min(@var{X},@var{Y}) [ISO] -The lesser value of @var{X} and @var{Y}. - -@item @var{X} ^ @var{Y} [ISO] -@var{X} raised to the power of @var{Y}, (from the C-Prolog syntax). - -@item exp(@var{X},@var{Y}) -@var{X} raised to the power of @var{Y}, (from the Quintus Prolog syntax). - -@item @var{X} ** @var{Y} [ISO] -@var{X} raised to the power of @var{Y} (from ISO). - -@item @var{X} /\ @var{Y} [ISO] -Integer bitwise conjunction. - -@item @var{X} \/ @var{Y} [ISO] -Integer bitwise disjunction. - -@item @var{X} # @var{Y} -@item @var{X} >< @var{Y} -@item xor(@var{X} , @var{Y}) [ISO] -Integer bitwise exclusive disjunction. - -@item @var{X} << @var{Y} -Integer bitwise left logical shift of @var{X} by @var{Y} places. - -@item @var{X} >> @var{Y} [ISO] -Integer bitwise right logical shift of @var{X} by @var{Y} places. - -@item \ @var{X} [ISO] -Integer bitwise negation. - -@item gcd(@var{X},@var{Y}) -The greatest common divisor of the two integers @var{X} and @var{Y}. - -@item msb(@var{X}) -The most significant bit of the non-negative integer @var{X}. - -@item lsb(@var{X}) -The least significant bit of the non-negative integer @var{X}. - -@item popcount(@var{X}) -The number of bits set to @code{1} in the binary representation of the -non-negative integer @var{X}. - -@item [@var{X}] -Evaluates to @var{X} for expression @var{X}. Useful because character -strings in Prolog are lists of character codes. - -@example -X is Y*10+C-"0" -@end example -@noindent -is the same as -@example -X is Y*10+C-[48]. -@end example -@noindent -which would be evaluated as: -@example -X is Y*10+C-48. -@end example - -@end table - -Besides numbers and the arithmetic operators described above, certain -atoms have a special meaning when present in arithmetic expressions: - -@table @code -@item pi [ISO] -The value of @emph{pi}, the ratio of a circle's circumference to its -diameter. - -@item e -The base of the natural logarithms. - -@item epsilon -The difference between the float @code{1.0} and the first larger floating point -number. - -@item inf -Infinity according to the IEEE Floating-Point standard. Note that -evaluating this term will generate a domain error in the @code{iso} -language mode. - -@item nan -Not-a-number according to the IEEE Floating-Point standard. Note that -evaluating this term will generate a domain error in the @code{iso} -language mode. - -@item cputime -CPU time in seconds, since YAP was invoked. - -@item heapused -Heap space used, in bytes. - -@item local -Local stack in use, in bytes. - -@item global -Global stack in use, in bytes. - -@item random -A "random" floating point number between 0 and 1. - -@end table - -@subsection Arithmetic Primitives - -The primitive YAP predicates involving arithmetic expressions are: - -@table @code - -@itemize -@item @var{X} is +@var{Y} [2] -@findex is/2 -@syindex is/2 -@caindex is/2 -This predicate succeeds iff the result of evaluating the expression -@var{Y} unifies with @var{X}. This is the predicate normally used to -perform evaluation of arithmetic expressions: - -@example -X is 2+3*4 -@end example -@noindent -succeeds with @code{X = 14}. -@end itemize - -@item +@var{X} < +@var{Y} [ISO] -@findex +@var{Y} [ISO] -@findex >/2 -@syindex >/2 -@cyindex >/2 -The value of the expression @var{X} is greater than the value of -expression @var{Y}. - -@item +@var{X} >= +@var{Y} [ISO] -@findex >=/2 -@syindex >=/2 -@cyindex >=/2 -The value of the expression @var{X} is greater than or equal to the -value of expression @var{Y}. - -@item +@var{X} =:= +@var{Y} [ISO] -@findex =:=/2 -@syindex =:=/2 -@cyindex =:=/2 -The value of the expression @var{X} is equal to the value of expression -@var{Y}. - -@item +@var{X} =\= +@var{Y} [ISO] -@findex =\=/2 -@syindex =\=/2 -@cyindex =\=/2 -The value of the expression @var{X} is different from the value of -expression @var{Y}. - -@item srandom(+@var{X}) -@findex srandom/1 -@snindex srandom/1 -@cnindex srandom/1 -Use the argument @var{X} as a new seed for YAP's random number -generator. The argument should be an integer, but floats are acceptable. -@end table - -@noindent -@strong{Notes:} - -@itemize @bullet -@item -Since YAP4, YAP @emph{does not} convert automatically between integers -and floats. -@item -arguments to trigonometric functions are expressed in radians. -@item -if a (non-instantiated) variable occurs in an arithmetic expression YAP -will generate an exception. If no error handler is available, execution -will be thrown back to the top-level. -@end itemize - -@subsection Counting - -The following predicates provide counting: - -@table @code -@item between(+@var{Low}, +@var{High}, ?@var{Value}) -@findex between/3 -@syindex between/3 -@cnindex between/3 - - @var{Low} and @var{High} are integers, @var{High} >=@var{Low}. If - @var{Value} is an integer, @var{Low} =<@var{Value} - =<@var{High}. When @var{Value} is a variable it is successively - bound to all integers between @var{Low} and @var{High}. If - @var{High} is inf or infinite @code{between/3} is true iff - @var{Value} >= @var{Low}, a feature that is particularly interesting - for generating integers from a certain value. - -@item succ(?@var{Int1}, ?@var{Int2}) -@findex succ/3 -@syindex succ/3 -@cnindex succ/3 - - True if @var{Int2} = @var{Int1} + 1 and @var{Int1} >= 0. At least - one of the arguments must be instantiated to a natural number. This - predicate raises the domain-error not_less_than_zero if called with - a negative integer. E.g. @code{succ(X, 0)} fails silently and succ(X, -1) - raises a domain-error. The behaviour to deal with natural numbers - only was defined by Richard O'Keefe to support the common - count-down-to-zero in a natural way. - -@item plus(?@var{Int1}, ?@var{Int2}, ?@var{Int3}) -@findex plus/3 -@syindex plus/3 -@cnindex plus/3 - True if @var{Int3} = @var{Int1} + @var{Int2}. At least two of the - three arguments must be instantiated to integers. - -@item logsum(+@var{Log1}, +@var{Log2}, -@var{Out} ) -@findex logsum/3 -@snindex logsum/3 -@cnindex logsum/3 - True if @var{Log1} is the logarithm of the positive number @var{A1}, - @var{Log2} is the logarithm of the positive number @var{A2}, and - @var{Out} is the logarithm of the sum of the numbers @var{A1} and - @var{A2}. Useful in probability computation. - -@item isnan(+@var{Float}) -@findex isnan/1 -@snindex isnan/1 -@cnindex isnan/1 - True if @var{Float} is not a number. - -@item isinf(+@var{Float}) -@findex isinf/1 -@snindex isinf/1 -@cnindex isinf/1 - True if floating point expression @var{Float} evaluates to infinity. - -@end table - -@end texinfo - - - -@node Input/Output, Database, Arithmetic, Top -@section Input/Output Predicates - -Some of the Input/Output predicates described below will in certain conditions -provide error messages and abort only if the file_errors flag is set. -If this flag is cleared the same predicates will just fail. Details on -setting and clearing this flag are given under 7.7. - -@menu - -Subnodes of Input/Output -* Streams and Files:: Handling Streams and Files -* C-Prolog File Handling:: C-Prolog Compatible File Handling -* Input/Output of Terms:: Input/Output of terms -* Input/Output of Characters:: Input/Output of Characters -* Input/Output for Streams:: Input/Output using Streams -* C-Prolog to Terminal:: C-Prolog compatible Character Input/Output to terminal -* Input/Output Control:: Controlling your Input/Output -* Sockets:: Using Sockets from YAP - -@end menu - -@node Streams and Files, C-Prolog File Handling, , Input/Output -@section Handling Streams and Files - -@table @code - -@item open(+@var{F},+@var{M},-@var{S}) [ISO] -@findex open/3 -@syindex open/3 -@cnindex open/3 -Opens the file with name @var{F} in mode @var{M} ('read', 'write' or -'append'), returning @var{S} unified with the stream name. - -At most, there are 17 streams opened at the same time. Each stream is -either an input or an output stream but not both. There are always 3 -open streams: @code{user_input} for reading, @code{user_output} for writing -and @code{user_error} for writing. If there is no ambiguity, the atoms -@code{user_input} and @code{user_output} may be referred to as @code{user}. - -The @code{file_errors} flag controls whether errors are reported when in -mode 'read' or 'append' the file @var{F} does not exist or is not -readable, and whether in mode 'write' or 'append' the file is not -writable. - -@item open(+@var{F},+@var{M},-@var{S},+@var{Opts}) [ISO] -@findex open/4 -@saindex open/4 -@cnindex open/4 -Opens the file with name @var{F} in mode @var{M} ('read', 'write' or -'append'), returning @var{S} unified with the stream name, and following -these options: - -@table @code - -@item type(+@var{T}) [ISO] -Specify whether the stream is a @code{text} stream (default), or a -@code{binary} stream. - -@item reposition(+@var{Bool}) [ISO] -Specify whether it is possible to reposition the stream (@code{true}), or -not (@code{false}). By default, YAP enables repositioning for all -files, except terminal files and sockets. - -@item eof_action(+@var{Action}) [ISO] -Specify the action to take if attempting to input characters from a -stream where we have previously found an @code{end_of_file}. The possible -actions are @code{error}, that raises an error, @code{reset}, that tries to -reset the stream and is used for @code{tty} type files, and @code{eof_code}, -which generates a new @code{end_of_file} (default for non-tty files). - -@item alias(+@var{Name}) [ISO] -Specify an alias to the stream. The alias @t{Name} must be an atom. The -alias can be used instead of the stream descriptor for every operation -concerning the stream. - -The operation will fail and give an error if the alias name is already -in use. YAP allows several aliases for the same file, but only -one is returned by @code{stream_property/2} - -@item bom(+@var{Bool}) -If present and @code{true}, a BOM (@emph{Byte Order Mark}) was -detected while opening the file for reading or a BOM was written while -opening the stream. See @ref{BOM} for details. - -@item encoding(+@var{Encoding}) -Set the encoding used for text. See @ref{Encoding} for an overview of -wide character and encoding issues. - -@item representation_errors(+@var{Mode}) -Change the behaviour when writing characters to the stream that cannot -be represented by the encoding. The behaviour is one of @code{error} -(throw and Input/Output error exception), @code{prolog} (write @code{\u...\} -escape code or @code{xml} (write @code{&#...;} XML character entity). -The initial mode is @code{prolog} for the user streams and -@code{error} for all other streams. See also @ref{Encoding}. - -@item expand_filename(+@var{Mode}) -If @var{Mode} is @code{true} then do filename expansion, then ask Prolog -to do file name expansion before actually trying to opening the file: -this includes processing @code{~} characters and processing @code{$} -environment variables at the beginning of the file. Otherwise, just try -to open the file using the given name. - -The default behavior is given by the Prolog flag -@code{open_expands_filename}. - -@end table - -@item close(+@var{S}) [ISO] -@findex close/1 -@syindex close/1 -@cyindex close/1 -Closes the stream @var{S}. If @var{S} does not stand for a stream -currently opened an error is reported. The streams @code{user_input}, -@code{user_output}, and @code{user_error} can never be closed. - -@c By default, give a file name, @code{close/1} will also try to close a -@c corresponding open stream. This feature is not available in ISO or -@c SICStus languages mode and is deprecated. - -@item close(+@var{S},+@var{O}) [ISO] -@findex close/2 -@saindex close/2 -@cnindex close/2 -Closes the stream @var{S}, following options @var{O}. - -The only valid options are @code{force(true)} and @code{force(false)}. -YAP currently ignores these options. - -@item time_file(+@var{File},-@var{Time}) -@findex time_file/2 -@snindex time_file/2 -@cnindex time_file/2 -Unify the last modification time of @var{File} with -@var{Time}. @var{Time} is a floating point number expressing the seconds -elapsed since Jan 1, 1970. - -@item access_file(+@var{F},+@var{M}) -@findex access_file/2 -Is the file accessible? - -@texinfo - -@item absolute_file_name(+@var{Name},+@var{Options}, -@var{FullPath}) absolute_file_name(+@var{Name}, -@var{FullPath},+@var{Options}) -@findex absolute_file_name/3 -@syindex absolute_file_name/3 -@cnindex absolute_file_name/3 - -Converts the given file specification into an absolute path. -@var{Option} is a list of options to guide the conversion: - -@table @code - @item extensions(+@var{ListOfExtensions}) -List of file-extensions to try. Default is @samp{''}. For each -extension, @code{absolute_file_name/3} will first add the extension and then -verify the conditions imposed by the other options. If the condition -fails, the next extension of the list is tried. Extensions may be -specified both as @code{.ext} or plain @code{ext}. - - @item relative_to(+@var{FileOrDir}) -Resolve the path relative to the given directory or directory the -holding the given file. Without this option, paths are resolved -relative to the working directory (see @code{working_directory/2}) or, -if @var{Spec} is atomic and @code{absolute_file_name/[2,3]} is executed -in a directive, it uses the current source-file as reference. - - @item access(+@var{Mode}) -Imposes the condition access_file(@var{File}, @var{Mode}). @var{Mode} -is on of @code{read}, @code{write}, @code{append}, @code{exist} or -@code{none} (default). -See also @code{access_file/2}. - - @item file_type(+@var{Type}) -Defines extensions. Current mapping: @code{txt} implies @code{['']}, -@code{prolog} implies @code{['.yap', '.pl', '.prolog', '']}, @code{executable} -implies @code{['.so', '']}, @code{qlf} implies @code{['.qlf', '']} and -@code{directory} implies @code{['']}. The file-type @code{source} -is an alias for @code{prolog} for compatibility to SICStus Prolog. -See also @code{prolog_file_type/2}. Notice also that this predicate only -returns non-directories, unless the option @code{file_type(directory)} is -specified, or unless @code{access(none)}. - - @item file_errors(@code{fail}/@code{error}) -If @code{error} (default), throw and @code{existence_error} exception -if the file cannot be found. If @code{fail}, stay silent. - - @item solutions(@code{first}/@code{all}) -If @code{first} (default), the predicates leaves no choice-point. -Otherwise a choice-point will be left and backtracking may yield -more solutions. - - @item expand(@code{true}/@code{false}) - If @code{true} (default is @code{false}) and @var{Spec} is atomic, - call @code{expand_file_name/2} followed by @code{member/2} on @var{Spec} before - proceeding. This is originally a SWI-Prolog extension. -@end table - -@c The Prolog flag @code{verbose_file_search} can be set to @code{true} -@c to help debugging Prolog's search for files. - -Compatibility considerations to common argument-order in ISO as well -as SICStus @code{absolute_file_name/3} forced us to be flexible here. -If the last argument is a list and the 2nd not, the arguments are -swapped, making the call @code{absolute_file_name}(+@var{Spec}, -@var{Path}, -+@var{Options}) valid as well. - - -@item absolute_file_name(+@var{Name},-@var{FullPath}) -@findex absolute_file_name/2 -@syindex absolute_file_name/2 -@cnindex absolute_file_name/2 -Give the path a full path @var{FullPath} YAP would use to consult a file -named @var{Name}. Unify @var{FullPath} with @code{user} if the file -name is @code{user}. - -@end texinfo - -@item file_base_name(+@var{Name},-@var{FileName}) -@findex file_base_name/2 -@snindex file_base_name/2 -@cnindex file_base_name/2 -Give the path a full path @var{FullPath} extract the @var{FileName}. - -@item file_name_extension(?@var{Base},?@var{Extension}, ?@var{Name}) -@findex file_name_extension/3 -@snindex file_name_extension/3 -@cnindex file_name_extension/3 - -This predicate is used to add, remove or test filename extensions. The -main reason for its introduction is to deal with different filename -properties in a portable manner. If the file system is -case-insensitive, testing for an extension will be done -case-insensitive too. @var{Extension} may be specified with or -without a leading dot (.). If an @var{Extension} is generated, it -will not have a leading dot. - -@item current_stream(@var{F},@var{M},@var{S}) -@findex current_stream/3 -@syindex current_stream/3 -@cnindex current_stream/3 -Defines the relation: The stream @var{S} is opened on the file @var{F} -in mode @var{M}. It might be used to obtain all open streams (by -backtracking) or to access the stream for a file @var{F} in mode -@var{M}, or to find properties for a stream @var{S}. Notice that some -streams might not be associated to a file: in this case YAP tries to -return the file number. If that is not available, YAP unifies @var{F} -with @var{S}. - -@item is_stream(@var{S}) -@findex is_stream/1 -@snindex is_stream/1 -@cnindex is_stream/1 -Succeeds if @var{S} is a currently open stream. - -@item flush_output [ISO] -@findex flush_output/0 -@syindex flush_output/0 -@cnindex flush_output/0 -Send out all data in the output buffer of the current output stream. - -@item flush_output(+@var{S}) [ISO] -@findex flush_output/1 -@syindex flush_output/1 -@cnindex flush_output/1 -Send all data in the output buffer for stream @var{S}. - -@item set_input(+@var{S}) [ISO] -@findex set_input/1 -@syindex set_input/1 -@cnindex set_input/1 -Set stream @var{S} as the current input stream. Predicates like @code{read/1} -and @code{get/1} will start using stream @var{S}. - -@item set_output(+@var{S}) [ISO] -@findex set_output/1 -@syindex set_output/1 -@cnindex set_output/1 -Set stream @var{S} as the current output stream. Predicates like -@code{write/1} and @code{put/1} will start using stream @var{S}. - -@item stream_select(+@var{STREAMS},+@var{TIMEOUT},-@var{READSTREAMS}) -@findex stream_select/3 -@syindex stream_select/3 -@cnindex stream_select/3 -Given a list of open @var{STREAMS} opened in read mode and a @var{TIMEOUT} -return a list of streams who are now available for reading. - -If the @var{TIMEOUT} is instantiated to @code{off}, -@code{stream_select/3} will wait indefinitely for a stream to become -open. Otherwise the timeout must be of the form @code{SECS:USECS} where -@code{SECS} is an integer gives the number of seconds to wait for a timeout -and @code{USECS} adds the number of micro-seconds. - -This built-in is only defined if the system call @code{select} is -available in the system. - -@item current_input(-@var{S}) [ISO] -@findex current_input/1 -@syindex current_input/1 -@cnindex current_input/1 -Unify @var{S} with the current input stream. - -@item current_output(-@var{S}) [ISO] -@findex current_output/1 -@syindex current_output/1 -@cnindex current_output/1 -Unify @var{S} with the current output stream. - -@item at_end_of_stream [ISO] -@findex at_end_of_stream/0 -@syindex at_end_of_stream/0 -@cnindex at_end_of_stream/0 -Succeed if the current stream has stream position end-of-stream or -past-end-of-stream. - -@item at_end_of_stream(+@var{S}) [ISO] -@findex at_end_of_stream/1 -@syindex at_end_of_stream/1 -@cnindex at_end_of_stream/1 -Succeed if the stream @var{S} has stream position end-of-stream or -past-end-of-stream. Note that @var{S} must be a readable stream. - -@item set_stream_position(+@var{S}, +@var{POS}) [ISO] -@findex set_stream_position/2 -@syindex set_stream_position/2 -@cnindex set_stream_position/2 -Given a stream position @var{POS} for a stream @var{S}, set the current -stream position for @var{S} to be @var{POS}. - -@item stream_property(?@var{Stream},?@var{Prop}) [ISO] -@findex stream_property/2 -@snindex stream_property/2 -@cnindex stream_property/2 - -Obtain the properties for the open streams. If the first argument is -unbound, the procedure will backtrack through all open -streams. Otherwise, the first argument must be a stream term (you may -use @code{current_stream} to obtain a current stream given a file name). - -The following properties are recognized: - -@table @code - -@item file_name(@var{P}) -An atom giving the file name for the current stream. The file names are -@code{user_input}, @code{user_output}, and @code{user_error} for the -standard streams. - -@item mode(@var{P}) -The mode used to open the file. It may be one of @code{append}, -@code{read}, or @code{write}. - -@item input -The stream is readable. - -@item output -The stream is writable. - -@item alias(@var{A}) -ISO-Prolog primitive for stream aliases. @t{YAP} returns one of the -existing aliases for the stream. - -@item position(@var{P}) -A term describing the position in the stream. - -@item end_of_stream(@var{E}) -Whether the stream is @code{at} the end of stream, or it has found the -end of stream and is @code{past}, or whether it has @code{not} yet -reached the end of stream. - -@item eof_action(@var{A}) -The action to take when trying to read after reaching the end of -stream. The action may be one of @code{error}, generate an error, -@code{eof_code}, return character code @code{-1}, or @code{reset} the -stream. - -@item reposition(@var{B}) -Whether the stream can be repositioned or not, that is, whether it is -seekable. - -@item type(@var{T}) -Whether the stream is a @code{text} stream or a @code{binary} stream. - -@item bom(+@var{Bool}) -If present and @code{true}, a BOM (@emph{Byte Order Mark}) was -detected while opening the file for reading or a BOM was written while -opening the stream. See @ref{BOM} for details. - -@item encoding(+@var{Encoding}) -Query the encoding used for text. See @ref{Encoding} for an -overview of wide character and encoding issues in YAP. - -@item representation_errors(+@var{Mode}) -Behaviour when writing characters to the stream that cannot be -represented by the encoding. The behaviour is one of @code{error} -(throw and Input/Output error exception), @code{prolog} (write @code{\u...\} -escape code or @code{xml} (write @code{&#...;} XML character entity). -The initial mode is @code{prolog} for the user streams and -@code{error} for all other streams. See also @ref{Encoding} and -@code{open/4}. - -@end table - -@item current_line_number(-@var{LineNumber}) -@findex current_line_number/1 -@saindex current_line_number/1 -@cnindex current_line_number/1 -Unify @var{LineNumber} with the line number for the current stream. - -@item current_line_number(+@var{Stream},-@var{LineNumber}) -@findex current_line_number/2 -@saindex current_line_number/2 -@cnindex current_line_number/2 -Unify @var{LineNumber} with the line number for the @var{Stream}. - -@item line_count(+@var{Stream},-@var{LineNumber}) -@findex line_count/2 -@syindex line_count/2 -@cnindex line_count/2 -Unify @var{LineNumber} with the line number for the @var{Stream}. - -@item character_count(+@var{Stream},-@var{CharacterCount}) -@findex character_count/2 -@syindex character_count/2 -@cnindex character_count/2 -Unify @var{CharacterCount} with the number of characters written to or -read to @var{Stream}. - -@item line_position(+@var{Stream},-@var{LinePosition}) -@findex line_position/2 -@syindex line_position/2 -@cnindex line_position/2 -Unify @var{LinePosition} with the position on current text stream -@var{Stream}. - -@item stream_position(+@var{Stream},-@var{StreamPosition}) -@findex stream_position/2 -@syindex stream_position/2 -@cnindex stream_position/2 -Unify @var{StreamPosition} with the packaged information of position on -current stream @var{Stream}. Use @code{stream_position_data/3} to -retrieve information on character or line count. - -@item stream_position_data(+@var{Field},+@var{StreamPosition},-@var{Info}) -@findex stream_position_data/3 -@syindex stream_position_data/3 -@cnindex stream_position_data/3 -Given the packaged stream position term @var{StreamPosition}, unify -@var{Info} with @var{Field} @code{line_count}, @code{byte_count}, or -@code{char_count}. - -@end table - -@node C-Prolog File Handling, Input/Output of Terms, Streams and Files, Input/Output -@section C-Prolog File Handling - -@table @code - -@item tell(+@var{S}) -@findex tell/1 -@syindex tell/1 -@cyindex tell/1 -If @var{S} is a currently opened stream for output, it becomes the -current output stream. If @var{S} is an atom it is taken to be a -filename. If there is no output stream currently associated with it, -then it is opened for output, and the new output stream created becomes -the current output stream. If it is not possible to open the file, an -error occurs. If there is a single opened output stream currently -associated with the file, then it becomes the current output stream; if -there are more than one in that condition, one of them is chosen. - -Whenever @var{S} is a stream not currently opened for output, an error -may be reported, depending on the state of the file_errors flag. The -predicate just fails, if @var{S} is neither a stream nor an atom. - -@item telling(-@var{S}) -@findex telling/1 -@syindex telling/1 -@cyindex telling/1 -The current output stream is unified with @var{S}. - -@item told -@findex told/0 -@syindex told/0 -@cyindex told/0 -Closes the current output stream, and the user's terminal becomes again -the current output stream. It is important to remember to close streams -after having finished using them, as the maximum number of -simultaneously opened streams is 17. - -@item see(+@var{S}) -@findex see/1 -@syindex see/1 -@cyindex see/1 -If @var{S} is a currently opened input stream then it is assumed to be -the current input stream. If @var{S} is an atom it is taken as a -filename. If there is no input stream currently associated with it, then -it is opened for input, and the new input stream thus created becomes -the current input stream. If it is not possible to open the file, an -error occurs. If there is a single opened input stream currently -associated with the file, it becomes the current input stream; if there -are more than one in that condition, then one of them is chosen. - -When @var{S} is a stream not currently opened for input, an error may be -reported, depending on the state of the @code{file_errors} flag. If -@var{S} is neither a stream nor an atom the predicates just fails. - -@item seeing(-@var{S}) -@findex seeing/1 -@syindex seeing/1 -@cyindex seeing/1 -The current input stream is unified with @var{S}. - -@item seen -@findex seen/0 -@syindex seen/0 -@cyindex seen/0 -Closes the current input stream (see 6.7.). - -@end table - - -@node Input/Output of Terms, Input/Output of Characters, C-Prolog File Handling, Input/Output -@section Handling Input/Output of Terms - -@table @code - -@item read(-@var{T}) [ISO] -@findex read/1 -@syindex read/1 -@cyindex read/1 -Reads the next term from the current input stream, and unifies it with -@var{T}. The term must be followed by a dot ('.') and any blank-character -as previously defined. The syntax of the term must match the current -declarations for operators (see op). If the end-of-stream is reached, -@var{T} is unified with the atom @code{end_of_file}. Further reads from of -the same stream may cause an error failure (see @code{open/3}). - -@item read_term(-@var{T},+@var{Options}) [ISO] -@findex read_term/2 -@saindex read_term/2 -@cnindex read_term/2 -Reads term @var{T} from the current input stream with execution -controlled by the following options: - -@table @code - -@item term_position(-@var{Position}) -@findex term_position/1 (read_term/2 option) -Unify @var{Position} with a term describing the position of the stream -at the start of parse. Use @code{stream_position_data/3} to obtain extra -information. - -@item singletons(-@var{Names}) -@findex singletons/1 (read_term/2 option) -Unify @var{Names} with a list of the form @var{Name=Var}, where -@var{Name} is the name of a non-anonymous singleton variable in the -original term, and @code{Var} is the variable's representation in -YAP. -The variables occur in left-to-right traversal order. - -@item syntax_errors(+@var{Val}) -@findex syntax_errors/1 (read_term/2 option) -Control action to be taken after syntax errors. See @code{yap_flag/2} -for detailed information. - -@item variable_names(-@var{Names}) -@findex variable_names/1 (read_term/2 option) -Unify @var{Names} with a list of the form @var{Name=Var}, where @var{Name} is -the name of a non-anonymous variable in the original term, and @var{Var} -is the variable's representation in YAP. -The variables occur in left-to-right traversal order. - -@item variables(-@var{Names}) -@findex variables/1 (read_term/2 option) -Unify @var{Names} with a list of the variables in term @var{T}. -The variables occur in left-to-right traversal order. - -@end table - -@item char_conversion(+@var{IN},+@var{OUT}) [ISO] -@findex char_conversion/2 -@syindex char_conversion/2 -@cnindex char_conversion/2 -While reading terms convert unquoted occurrences of the character -@var{IN} to the character @var{OUT}. Both @var{IN} and @var{OUT} must be -bound to single characters atoms. - -Character conversion only works if the flag @code{char_conversion} is -on. This is default in the @code{iso} and @code{sicstus} language -modes. As an example, character conversion can be used for instance to -convert characters from the ISO-LATIN-1 character set to ASCII. - -If @var{IN} is the same character as @var{OUT}, @code{char_conversion/2} -will remove this conversion from the table. - -@item current_char_conversion(?@var{IN},?@var{OUT}) [ISO] -@findex current_char_conversion/2 -@syindex current_char_conversion/2 -@cnindex current_char_conversion/2 -If @var{IN} is unbound give all current character -translations. Otherwise, give the translation for @var{IN}, if one -exists. - -@item write(@var{T}) [ISO] -@findex write/1 -@syindex write/1 -@cyindex write/1 -The term @var{T} is written to the current output stream according to -the operator declarations in force. - -@item writeln(@var{T}) [ISO] -@findex writeln/1 -@snindex writeln/1 -@cnindex writeln/1 -Same as @code{write/1} followed by @code{nl/0}. - -@item display(+@var{T}) -@findex display/1 -@syindex display/1 -@cyindex display/1 -Displays term @var{T} on the current output stream. All Prolog terms are -written in standard parenthesized prefix notation. - -@item write_canonical(+@var{T}) [ISO] -@findex write_canonical/1 -@syindex write_canonical/1 -@cnindex write_canonical/1 -Displays term @var{T} on the current output stream. Atoms are quoted -when necessary, and operators are ignored, that is, the term is written -in standard parenthesized prefix notation. - -@item write_term(+@var{T}, +@var{Opts}) [ISO] -@findex write_term/2 -@syindex write_term/2 -@cnindex write_term/2 -Displays term @var{T} on the current output stream, according to the -following options: - -@table @code -@item quoted(+@var{Bool}) [ISO] -If @code{true}, quote atoms if this would be necessary for the atom to -be recognized as an atom by YAP's parser. The default value is -@code{false}. - -@item ignore_ops(+@var{Bool}) [ISO] -If @code{true}, ignore operator declarations when writing the term. The -default value is @code{false}. - -@item numbervars(+@var{Bool}) [ISO] -If @code{true}, output terms of the form -@code{'$VAR'(N)}, where @var{N} is an integer, as a sequence of capital -letters. The default value is @code{false}. - -@item portrayed(+@var{Bool}) -If @code{true}, use @t{portray/1} to portray bound terms. The default -value is @code{false}. - -@item portray(+@var{Bool}) -If @code{true}, use @t{portray/1} to portray bound terms. The default -value is @code{false}. - -@item max_depth(+@var{Depth}) -If @code{Depth} is a positive integer, use @t{Depth} as -the maximum depth to portray a term. The default is @code{0}, that is, -unlimited depth. - -@item priority(+@var{Piority}) -If @code{Priority} is a positive integer smaller than @code{1200}, -give the context priority. The default is @code{1200}. - -@item cycles(+@var{Bool}) -Do not loop in rational trees (default). -@end table - -@item writeq(@var{T}) [ISO] -@findex writeq/1 -@syindex writeq/1 -@cyindex writeq/1 - Writes the term @var{T}, quoting names to make the result acceptable to -the predicate 'read' whenever necessary. - -@item print(@var{T}) -@findex print/1 -@syindex print/1 -@cyindex print/1 -Prints the term @var{T} to the current output stream using @code{write/1} -unless T is bound and a call to the user-defined predicate -@code{portray/1} succeeds. To do pretty printing of terms the user should -define suitable clauses for @code{portray/1} and use @code{print/1}. - -@item format(+@var{T},+@var{L}) -@findex format/2 -@saindex format/2 -@cnindex format/2 -Print formatted output to the current output stream. The arguments in -list @var{L} are output according to the string or atom @var{T}. - -A control sequence is introduced by a @code{w}. The following control -sequences are available in YAP: - -@table @code - -@item '~~' -Print a single tilde. - -@item '~a' -The next argument must be an atom, that will be printed as if by @code{write}. - -@item '~Nc' -The next argument must be an integer, that will be printed as a -character code. The number @var{N} is the number of times to print the -character (default 1). - -@item '~Ne' -@itemx '~NE' -@itemx '~Nf' -@itemx '~Ng' -@itemx '~NG' -The next argument must be a floating point number. The float @var{F}, the number -@var{N} and the control code @code{c} will be passed to @code{printf} as: - -@example - printf("%s.Nc", F) - @end example - -As an example: - -@example -?- format("~8e, ~8E, ~8f, ~8g, ~8G~w", - [3.14,3.14,3.14,3.14,3.14,3.14]). -3.140000e+00, 3.140000E+00, 3.140000, 3.14, 3.143.14 -@end example - -@item '~Nd' -The next argument must be an integer, and @var{N} is the number of digits -after the decimal point. If @var{N} is @code{0} no decimal points will be -printed. The default is @var{N = 0}. - -@example -?- format("~2d, ~d",[15000, 15000]). -150.00, 15000 -@end example - -@item '~ND' -Identical to @code{'~Nd'}, except that commas are used to separate groups -of three digits. - -@example -?- format("~2D, ~D",[150000, 150000]). -1,500.00, 150,000 -@end example - -@item '~i' -Ignore the next argument in the list of arguments: - -@example -?- format('The ~i met the boregrove',[mimsy]). -The met the boregrove -@end example - -@item '~k' -Print the next argument with @code{write_canonical}: - -@example -?- format("Good night ~k",a+[1,2]). -Good night +(a,[1,2]) -@end example - -@item '~Nn' -Print @var{N} newlines (where @var{N} defaults to 1). - -@item '~NN' -Print @var{N} newlines if at the beginning of the line (where @var{N} -defaults to 1). - -@item '~Nr' -The next argument must be an integer, and @var{N} is interpreted as a -radix, such that @code{2 <= N <= 36} (the default is 8). - -@example -?- format("~2r, 0x~16r, ~r", - [150000, 150000, 150000]). -100100100111110000, 0x249f0, 444760 -@end example - -@noindent -Note that the letters @code{a-z} denote digits larger than 9. - -@item '~NR' -Similar to '~NR'. The next argument must be an integer, and @var{N} is -interpreted as a radix, such that @code{2 <= N <= 36} (the default is 8). - -@example -?- format("~2r, 0x~16r, ~r", - [150000, 150000, 150000]). -100100100111110000, 0x249F0, 444760 -@end example - -@noindent -The only difference is that letters @code{A-Z} denote digits larger than 9. - -@item '~p' -Print the next argument with @code{print/1}: - -@example -?- format("Good night ~p",a+[1,2]). -Good night a+[1,2] -@end example - -@item '~q' -Print the next argument with @code{writeq/1}: - -@example -?- format("Good night ~q",'Hello'+[1,2]). -Good night 'Hello'+[1,2] -@end example - -@item '~Ns' -The next argument must be a list of character codes. The system then -outputs their representation as a string, where @var{N} is the maximum -number of characters for the string (@var{N} defaults to the length of the -string). - -@example -?- format("The ~s are ~4s",["woods","lovely"]). -The woods are love -@end example - -@item '~w' -Print the next argument with @code{write/1}: - -@example -?- format("Good night ~w",'Hello'+[1,2]). -Good night Hello+[1,2] -@end example - -@end table -The number of arguments, @code{N}, may be given as an integer, or it -may be given as an extra argument. The next example shows a small -procedure to write a variable number of @code{a} characters: - -@example -write_many_as(N) :- - format("~*c",[N,0'a]). -@end example - -The @code{format/2} built-in also allows for formatted output. One can -specify column boundaries and fill the intermediate space by a padding -character: - -@table @code -@item '~N|' -Set a column boundary at position @var{N}, where @var{N} defaults to the -current position. - -@item '~N+' -Set a column boundary at @var{N} characters past the current position, where -@var{N} defaults to @code{8}. - - -@item '~Nt' -Set padding for a column, where @var{N} is the fill code (default is -@key{SPC}). - -@end table - -The next example shows how to align columns and padding. We first show -left-alignment: - -@example - ?- format("~n*Hello~16+*~n",[]). -*Hello * -@end example - -Note that we reserve 16 characters for the column. - -The following example shows how to do right-alignment: - - -@example - ?- format("*~tHello~16+*~n",[]). -* Hello* - -@end example - - -The @code{~t} escape sequence forces filling before @code{Hello}. - -We next show how to do centering: - -@example - ?- format("*~tHello~t~16+*~n",[]). -* Hello * -@end example - - -The two @code{~t} escape sequence force filling both before and after -@code{Hello}. Space is then evenly divided between the right and the -left sides. - - -@item format(+@var{T}) -@findex format/1 -@saindex format/1 -@cnindex format/1 -Print formatted output to the current output stream. - - -@item format(+@var{S},+@var{T},+@var{L}) -@findex format/3 -@saindex format/3 -@cnindex format/3 -Print formatted output to stream @var{S}. - -@item with_output_to(+@var{Ouput},:@var{Goal}) -@findex with_output_to/2 -@saindex with_output_to/2 -@cnindex with_output_to/2 -Run @var{Goal} as @code{once/1}, while characters written to the current -output are sent to @var{Output}. The predicate is SWI-Prolog -specific. - -Applications should generally avoid creating atoms by breaking and -concatenating other atoms as the creation of large numbers of -intermediate atoms generally leads to poor performance, even more so in -multi-threaded applications. This predicate supports creating -difference-lists from character data efficiently. The example below -defines the DCG rule @code{term/3} to insert a term in the output: - -@example - term(Term, In, Tail) :- - with_output_to(codes(In, Tail), write(Term)). - -?- phrase(term(hello), X). - -X = [104, 101, 108, 108, 111] -@end example - -@table @code -@item A Stream handle or alias - Temporary switch current output to the given stream. Redirection using with_output_to/2 guarantees the original output is restored, also if Goal fails or raises an exception. See also call_cleanup/2. -@item atom(-@var{Atom}) - Create an atom from the emitted characters. Please note the remark above. -@item string(-@var{String}) - Create a string-object (not supported in YAP). -@item codes(-@var{Codes}) - Create a list of character codes from the emitted characters, similar to atom_codes/2. -@item codes(-@var{Codes}, -@var{Tail}) - Create a list of character codes as a difference-list. -@item chars(-@var{Chars}) - Create a list of one-character-atoms codes from the emitted characters, similar to atom_chars/2. -@item chars(-@var{Chars}, -@var{Tail}) - Create a list of one-character-atoms as a difference-list. -@end table - -@end table - -@node Input/Output of Characters, Input/Output for Streams, Input/Output of Terms, Input/Output -@section Handling Input/Output of Characters - -@table @code - -@item put(+@var{N}) -@findex put/1 -@syindex put/1 -@cyindex put/1 -Outputs to the current output stream the character whose ASCII code is -@var{N}. The character @var{N} must be a legal ASCII character code, an -expression yielding such a code, or a list in which case only the first -element is used. - -@item put_byte(+@var{N}) [ISO] -@findex put_byte/1 -@snindex put_byte/1 -@cnindex put_byte/1 -Outputs to the current output stream the character whose code is -@var{N}. The current output stream must be a binary stream. - -@item put_char(+@var{N}) [ISO] -@findex put_char/1 -@snindex put_char/1 -@cnindex put_char/1 -Outputs to the current output stream the character who is used to build -the representation of atom @code{A}. The current output stream must be a -text stream. - -@item put_code(+@var{N}) [ISO] -@findex put_code/1 -@snindex put_code/1 -@cnindex put_code/1 -Outputs to the current output stream the character whose ASCII code is -@var{N}. The current output stream must be a text stream. The character -@var{N} must be a legal ASCII character code, an expression yielding such -a code, or a list in which case only the first element is used. - -@item get(-@var{C}) -@findex get/1 -@syindex get/1 -@cyindex get/1 -The next non-blank character from the current input stream is unified -with @var{C}. Blank characters are the ones whose ASCII codes are not -greater than 32. If there are no more non-blank characters in the -stream, @var{C} is unified with -1. If @code{end_of_stream} has already -been reached in the previous reading, this call will give an error message. - -@item get0(-@var{C}) -@findex get0/1 -@syindex get0/1 -@cyindex get0/1 -The next character from the current input stream is consumed, and then -unified with @var{C}. There are no restrictions on the possible -values of the ASCII code for the character, but the character will be -internally converted by YAP. - -@item get_byte(-@var{C}) [ISO] -@findex get_byte/1 -@snindex get_byte/1 -@cnindex get_byte/1 -If @var{C} is unbound, or is a character code, and the current stream is a -binary stream, read the next byte from the current stream and unify its -code with @var{C}. - -@item get_char(-@var{C}) [ISO] -@findex get_char/1 -@snindex get_char/1 -@cnindex get_char/1 -If @var{C} is unbound, or is an atom representation of a character, and -the current stream is a text stream, read the next character from the -current stream and unify its atom representation with @var{C}. - -@item get_code(-@var{C}) [ISO] -@findex get_code/1 -@snindex get_code/1 -@cnindex get_code/1 -If @var{C} is unbound, or is the code for a character, and -the current stream is a text stream, read the next character from the -current stream and unify its code with @var{C}. - -@item peek_byte(-@var{C}) [ISO] -@findex peek_byte/1 -@snindex peek_byte/1 -@cnindex peek_byte/1 -If @var{C} is unbound, or is a character code, and the current stream is a -binary stream, read the next byte from the current stream and unify its -code with @var{C}, while leaving the current stream position unaltered. - -@item peek_char(-@var{C}) [ISO] -@findex peek_char/1 -@syindex peek_char/1 -@cnindex peek_char/1 -If @var{C} is unbound, or is an atom representation of a character, and -the current stream is a text stream, read the next character from the -current stream and unify its atom representation with @var{C}, while -leaving the current stream position unaltered. - -@item peek_code(-@var{C}) [ISO] -@findex peek_code/1 -@snindex peek_code/1 -@cnindex peek_code/1 -If @var{C} is unbound, or is the code for a character, and -the current stream is a text stream, read the next character from the -current stream and unify its code with @var{C}, while -leaving the current stream position unaltered. - -@item skip(+@var{N}) -@findex skip/1 -@syindex skip/1 -@cyindex skip/1 -Skips input characters until the next occurrence of the character with -ASCII code @var{N}. The argument to this predicate can take the same forms -as those for @code{put} (see 6.11). - -@item tab(+@var{N}) -@findex tab/1 -@syindex tab/1 -@cyindex tab/1 -Outputs @var{N} spaces to the current output stream. - -@item nl [ISO] -@findex nl/0 -@syindex nl/0 -@cyindex nl/0 -Outputs a new line to the current output stream. - -@end table - -@node Input/Output for Streams, C-Prolog to Terminal, Input/Output of Characters, Input/Output -@section Input/Output Predicates applied to Streams - -@table @code - -@item read(+@var{S},-@var{T}) [ISO] -@findex read/2 -@syindex read/2 -@cnindex read/2 -Reads term @var{T} from the stream @var{S} instead of from the current input -stream. - -@item read_term(+@var{S},-@var{T},+@var{Options}) [ISO] -@findex read_term/3 -@saindex read_term/3 -@cnindex read_term/3 -Reads term @var{T} from stream @var{S} with execution controlled by the -same options as @code{read_term/2}. - -@item write(+@var{S},@var{T}) [ISO] -@findex write/2 -@syindex write/2 -@cnindex write/2 -Writes term @var{T} to stream @var{S} instead of to the current output -stream. - -@item write_canonical(+@var{S},+@var{T}) [ISO] -@findex write_canonical/2 -@syindex write_canonical/2 -@cnindex write_canonical/2 -Displays term @var{T} on the stream @var{S}. Atoms are quoted when -necessary, and operators are ignored. - -@item write_term(+@var{S}, +@var{T}, +@var{Opts}) [ISO] -@findex write_term/3 -@syindex write_term/3 -@cnindex write_term/3 -Displays term @var{T} on the current output stream, according to the same -options used by @code{write_term/3}. - -@item writeq(+@var{S},@var{T}) [ISO] -@findex writeq/2 -@syindex writeq/2 -@cnindex writeq/2 -As @code{writeq/1}, but the output is sent to the stream @var{S}. - -@item display(+@var{S},@var{T}) -@findex display/2 -@syindex display/2 -@cnindex display/2 -Like @code{display/1}, but using stream @var{S} to display the term. - -@item print(+@var{S},@var{T}) -@findex print/2 -@syindex print/2 -@cnindex print/2 -Prints term @var{T} to the stream @var{S} instead of to the current output -stream. - -@item put(+@var{S},+@var{N}) -@findex put/2 -@syindex put/2 -@cnindex put/2 -As @code{put(N)}, but to stream @var{S}. - -@item put_byte(+@var{S},+@var{N}) [ISO] -@findex put_byte/2 -@snindex put_byte/2 -@cnindex put_byte/2 -As @code{put_byte(N)}, but to binary stream @var{S}. - -@item put_char(+@var{S},+@var{A}) [ISO] -@findex put_char/2 -@snindex put_char/2 -@cnindex put_char/2 -As @code{put_char(A)}, but to text stream @var{S}. - -@item put_code(+@var{S},+@var{N}) [ISO] -@findex put_code/2 -@snindex put_code/2 -@cnindex put_code/2 -As @code{put_code(N)}, but to text stream @var{S}. - -@item get(+@var{S},-@var{C}) -@findex get/2 -@syindex get/2 -@cnindex get/2 -The same as @code{get(C)}, but from stream @var{S}. - -@item get0(+@var{S},-@var{C}) -@findex get0/2 -@syindex get0/2 -@cnindex get0/2 -The same as @code{get0(C)}, but from stream @var{S}. - -@item get_byte(+@var{S},-@var{C}) [ISO] -@findex get_byte/2 -@snindex get_byte/2 -@cnindex get_byte/2 -If @var{C} is unbound, or is a character code, and the stream @var{S} is a -binary stream, read the next byte from that stream and unify its -code with @var{C}. - -@item get_char(+@var{S},-@var{C}) [ISO] -@findex get_char/2 -@snindex get_char/2 -@cnindex get_char/2 -If @var{C} is unbound, or is an atom representation of a character, and -the stream @var{S} is a text stream, read the next character from that -stream and unify its representation as an atom with @var{C}. - -@item get_code(+@var{S},-@var{C}) [ISO] -@findex get_code/2 -@snindex get_code/2 -@cnindex get_code/2 -If @var{C} is unbound, or is a character code, and the stream @var{S} is a -text stream, read the next character from that stream and unify its -code with @var{C}. - -@item peek_byte(+@var{S},-@var{C}) [ISO] -@findex peek_byte/2 -@snindex peek_byte/2 -@cnindex peek_byte/2 -If @var{C} is unbound, or is a character code, and @var{S} is a binary -stream, read the next byte from the current stream and unify its code -with @var{C}, while leaving the current stream position unaltered. - -@item peek_char(+@var{S},-@var{C}) [ISO] -@findex peek_char/2 -@snindex peek_char/2 -@cnindex peek_char/2 -If @var{C} is unbound, or is an atom representation of a character, and -the stream @var{S} is a text stream, read the next character from that -stream and unify its representation as an atom with @var{C}, while leaving -the current stream position unaltered. - -@item peek_code(+@var{S},-@var{C}) [ISO] -@findex peek_code/2 -@snindex peek_code/2 -@cnindex peek_code/2 -If @var{C} is unbound, or is an atom representation of a character, and -the stream @var{S} is a text stream, read the next character from that -stream and unify its representation as an atom with @var{C}, while leaving -the current stream position unaltered. - -@item skip(+@var{S},-@var{C}) -@findex skip/2 -@syindex skip/2 -@cnindex skip/2 -Like @code{skip/1}, but using stream @var{S} instead of the current -input stream. - -@item tab(+@var{S},+@var{N}) -@findex tab/2 -@syindex tab/2 -@cnindex tab/2 -The same as @code{tab/1}, but using stream @var{S}. - -@item nl(+@var{S}) [ISO] -@findex nl/1 -@syindex nl/1 -@cnindex nl/1 -Outputs a new line to stream @var{S}. - -@end table - -@node C-Prolog to Terminal, Input/Output Control, Input/Output for Streams, Input/Output -@section Compatible C-Prolog predicates for Terminal Input/Output - -@table @code - -@item ttyput(+@var{N}) -@findex ttyput/1 -@syindex ttyput/1 -@cnindex ttyput/1 -As @code{put(N)} but always to @code{user_output}. - -@item ttyget(-@var{C}) -@findex ttyget/1 -@syindex ttyget/1 -@cnindex ttyget/1 -The same as @code{get(C)}, but from stream @code{user_input}. - -@item ttyget0(-@var{C}) -@findex ttyget0/1 -@syindex ttyget0/1 -@cnindex ttyget0/1 -The same as @code{get0(C)}, but from stream @code{user_input}. - -@item ttyskip(-@var{C}) -@findex ttyskip/1 -@syindex ttyskip/1 -@cnindex ttyskip/1 -Like @code{skip/1}, but always using stream @code{user_input}. -stream. - -@item ttytab(+@var{N}) -@findex ttytab/1 -@syindex ttytab/1 -@cnindex ttytab/1 -The same as @code{tab/1}, but using stream @code{user_output}. - -@item ttynl -@findex ttynl/0 -@syindex ttynl/0 -@cnindex ttynl/0 -Outputs a new line to stream @code{user_output}. - -@end table - -@node Input/Output Control, Sockets, C-Prolog to Terminal, Input/Output -@section Controlling Input/Output - -@table @code - -@item exists(+@var{F}) -@findex exists/1 -@snindex exists/1 -@cyindex exists/1 -Checks if file @var{F} exists in the current directory. - -@item nofileerrors -@findex nofileerrors/0 -@syindex nofileerrors/0 -@cyindex nofileerrors/0 -Switches off the file_errors flag, so that the predicates @code{see/1}, -@code{tell/1}, @code{open/3} and @code{close/1} just fail, instead of producing -an error message and aborting whenever the specified file cannot be -opened or closed. - -@item fileerrors -@findex fileerrors/0 -@syindex fileerrors/0 -@cyindex fileerrors/0 -Switches on the file_errors flag so that in certain error conditions -Input/Output predicates will produce an appropriated message and abort. - -@item always_prompt_user -@findex always_prompt_user/0 -@snindex always_prompt_user/0 -@cnindex always_prompt_user/0 -Force the system to prompt the user even if the @code{user_input} stream -is not a terminal. This command is useful if you want to obtain -interactive control from a pipe or a socket. - -@end table - -@node Sockets, , Input/Output Control, Input/Output -@section Using Sockets From YAP - -YAP includes a SICStus Prolog compatible socket interface. In YAP-6.3 -this uses the @code{clib} package to emulate the old low level interface that -provides direct access to the major socket system calls. These calls -can be used both to open a new connection in the network or connect to -a networked server. Socket connections are described as read/write -streams, and standard Input/Output built-ins can be used to write on or read -from sockets. The following calls are available: - -@table @code - -@item socket(+@var{DOMAIN},+@var{TYPE},+@var{PROTOCOL},-@var{SOCKET}) -@findex socket/4 -@syindex socket/4 -@cnindex socket/4 -Corresponds to the BSD system call @code{socket}. Create a socket for -domain @var{DOMAIN} of type @var{TYPE} and protocol -@var{PROTOCOL}. Both @var{DOMAIN} and @var{TYPE} should be atoms, -whereas @var{PROTOCOL} must be an integer. -The new socket object is -accessible through a descriptor bound to the variable @var{SOCKET}. - -The current implementation of YAP accepts socket -domains @code{'AF_INET'} and @code{'AF_UNIX'}. -Socket types depend on the -underlying operating system, but at least the following types are -supported: @code{'SOCK_STREAM'} and @code{'SOCK_DGRAM'} (untested in 6.3). - -@item socket(+@var{DOMAIN},-@var{SOCKET}) -@findex socket/2 -@syindex socket/2 -@cnindex socket/2 - -Call @code{socket/4} with @var{TYPE} bound to @code{'SOCK_STREAM'} and -@var{PROTOCOL} bound to @code{0}. - -@item socket_close(+@var{SOCKET}) -@findex socket_close/1 -@syindex socket_close/1 -@cnindex socket_close/1 - -Close socket @var{SOCKET}. Note that sockets used in -@code{socket_connect} (that is, client sockets) should not be closed with -@code{socket_close}, as they will be automatically closed when the -corresponding stream is closed with @code{close/1} or @code{close/2}. - -@item socket_bind(+@var{SOCKET}, ?@var{PORT}) -@findex socket_bind/2 -@syindex socket_bind/2 -@cnindex socket_bind/2 - -Interface to system call @code{bind}, as used for servers: bind socket -to a port. Port information depends on the domain: -@table @code -@item 'AF_UNIX'(+@var{FILENAME}) (unsupported) -@item 'AF_FILE'(+@var{FILENAME}) -use file name @var{FILENAME} for UNIX or local sockets. - -@item 'AF_INET'(?@var{HOST},?PORT) -If @var{HOST} is bound to an atom, bind to host @var{HOST}, otherwise -if unbound bind to local host (@var{HOST} remains unbound). If port -@var{PORT} is bound to an integer, try to bind to the corresponding -port. If variable @var{PORT} is unbound allow operating systems to -choose a port number, which is unified with @var{PORT}. - -@end table - -@item socket_connect(+@var{SOCKET}, +@var{PORT}, -@var{STREAM}) -@findex socket_connect/3 -@syindex socket_connect/3 -@cnindex socket_connect/3 - -Interface to system call @code{connect}, used for clients: connect -socket @var{SOCKET} to @var{PORT}. The connection results in the -read/write stream @var{STREAM}. - -Port information depends on the domain: -@table @code -@item 'AF_UNIX'(+@var{FILENAME}) -@item 'AF_FILE'(+@var{FILENAME}) -connect to socket at file @var{FILENAME}. - -@item 'AF_INET'(+@var{HOST},+@var{PORT}) -Connect to socket at host @var{HOST} and port @var{PORT}. -@end table - -@item socket_listen(+@var{SOCKET}, +@var{LENGTH}) -@findex socket_listen/2 -@syindex socket_listen/2 -@cnindex socket_listen/2 -Interface to system call @code{listen}, used for servers to indicate -willingness to wait for connections at socket @var{SOCKET}. The -integer @var{LENGTH} gives the queue limit for incoming connections, -and should be limited to @code{5} for portable applications. The socket -must be of type @code{SOCK_STREAM} or @code{SOCK_SEQPACKET}. - -@item socket_accept(+@var{SOCKET}, -@var{CLIENT}, -@var{STREAM}) -@findex socket_accept/3 -@syindex socket_accept/3 -@cnindex socket_accept/3 -Interface to system call @code{accept}, used for servers to wait for -connections at socket @var{SOCKET}. The stream descriptor @var{STREAM} -represents the resulting connection. If the socket belongs to the -domain @code{'AF_INET'}, @var{CLIENT} unifies with an atom containing -the IP address for the client in numbers and dots notation. - -@item socket_accept(+@var{SOCKET}, -@var{STREAM}) -@findex socket_accept/2 -@syindex socket_accept/2 -@cnindex socket_accept/2 -Accept a connection but do not return client information. - -@item socket_buffering(+@var{SOCKET}, -@var{MODE}, -@var{OLD}, +@var{NEW}) -@findex socket_buffering/4 -@syindex socket_buffering/4 -@cnindex socket_buffering/4 -Set buffering for @var{SOCKET} in @code{read} or @code{write} -@var{MODE}. @var{OLD} is unified with the previous status, and @var{NEW} -receives the new status which may be one of @code{unbuf} or -@code{fullbuf}. - -@item socket_select(+@var{SOCKETS}, -@var{NEWSTREAMS}, +@var{TIMEOUT}, -+@var{STREAMS}, -@var{READSTREAMS}) [unsupported in YAP-6.3] -@findex socket_select/5 -@syindex socket_select/5 -@cnindex socket_select/5 -Interface to system call @code{select}, used for servers to wait for -connection requests or for data at sockets. The variable -@var{SOCKETS} is a list of form @var{KEY-SOCKET}, where @var{KEY} is -an user-defined identifier and @var{SOCKET} is a socket descriptor. The -variable @var{TIMEOUT} is either @code{off}, indicating execution will -wait until something is available, or of the form @var{SEC-USEC}, where -@var{SEC} and @var{USEC} give the seconds and microseconds before -@code{socket_select/5} returns. The variable @var{SOCKETS} is a list of -form @var{KEY-STREAM}, where @var{KEY} is an user-defined identifier -and @var{STREAM} is a stream descriptor - -Execution of @code{socket_select/5} unifies @var{READSTREAMS} from -@var{STREAMS} with readable data, and @var{NEWSTREAMS} with a list of -the form @var{KEY-STREAM}, where @var{KEY} was the key for a socket -with pending data, and @var{STREAM} the stream descriptor resulting -from accepting the connection. - -@item current_host(?@var{HOSTNAME}) -@findex current_host/1 - Unify @var{HOSTNAME} with an atom representing the fully qualified -hostname for the current host. Also succeeds if @var{HOSTNAME} is bound -to the unqualified hostname. - -@item hostname_address(?@var{HOSTNAME},?@var{IP_ADDRESS}) -@findex hostname_address/2 -@var{HOSTNAME} is an host name and @var{IP_ADDRESS} its IP -address in number and dots notation. - - -@end table - -@node Database, Sets, Input/Output, Top -@section Using the Clausal Data Base - -Predicates in YAP may be dynamic or static. By default, when -consulting or reconsulting, predicates are assumed to be static: -execution is faster and the code will probably use less space. -Static predicates impose some restrictions: in general there can be no -addition or removal of clauses for a procedure if it is being used in the -current execution. - -Dynamic predicates allow programmers to change the Clausal Data Base with -the same flexibility as in C-Prolog. With dynamic predicates it is -always possible to add or remove clauses during execution and the -semantics will be the same as for C-Prolog. But the programmer should be -aware of the fact that asserting or retracting are still expensive operations, -and therefore he should try to avoid them whenever possible. - -@table @code - -@item dynamic +@var{P} -@findex dynamic/1 -@saindex dynamic/1 -@cnindex dynamic/1 -Declares predicate @var{P} or list of predicates [@var{P1},...,@var{Pn}] -as a dynamic predicate. @var{P} must be written in form: -@var{name/arity}. - -@example -:- dynamic god/1. -@end example - -@noindent -a more convenient form can be used: - -@example -:- dynamic son/3, father/2, mother/2. -@end example - -or, equivalently, - -@example -:- dynamic [son/3, father/2, mother/2]. -@end example - -@noindent -Note: - -a predicate is assumed to be dynamic when -asserted before being defined. - -@item dynamic_predicate(+@var{P},+@var{Semantics}) -@findex dynamic_predicate/2 -@snindex dynamic_predicate/2 -@cnindex dynamic_predicate/2 -Declares predicate @var{P} or list of predicates [@var{P1},...,@var{Pn}] -as a dynamic predicate following either @code{logical} or -@code{immediate} semantics. - -@item compile_predicates(:@var{ListOfNameArity}) -@findex compile_predicates/1 -@snindex compile_predicates/1 -@cnindex compile_predicates/1 - -Compile a list of specified dynamic predicates (see @code{dynamic/1} and -@code{assert/1} into normal static predicates. This call tells the -Prolog environment the definition will not change anymore and further -calls to @code{assert/1} or @code{retract/1} on the named predicates -raise a permission error. This predicate is designed to deal with parts -of the program that is generated at runtime but does not change during -the remainder of the program execution. - -@menu - -Subnodes of Database -* Modifying the Database:: Asserting and Retracting -* Looking at the Database:: Finding out what is in the Data Base -* Database References:: Using Data Base References -* Internal Database:: YAP's Internal Database -* BlackBoard:: Storing and Fetching Terms in the BlackBoard - -@end menu - -@end table - -@node Modifying the Database, Looking at the Database, , Database -@section Modification of the Data Base - -These predicates can be used either for static or for dynamic -predicates: - -@table @code - -@item assert(+@var{C}) -@findex assert/1 -@saindex assert/1 -@caindex assert/1 - Same as @code{assertz/1}. Adds clause @var{C} to the program. If the predicate is undefined, -declare it as dynamic. New code should use @code{assertz/1} for better portability. - - Most Prolog systems only allow asserting clauses for dynamic -predicates. This is also as specified in the ISO standard. YAP allows -asserting clauses for static predicates, as long as the predicate is not -in use and the language flag is @t{cprolog}. Note that this feature is -deprecated, if you want to assert clauses for static procedures you -should use @code{assert_static/1}. - -@item asserta(+@var{C}) [ISO] -@findex asserta/1 -@saindex asserta/1 -@caindex asserta/1 - Adds clause @var{C} to the beginning of the program. If the predicate is -undefined, declare it as dynamic. - -@item assertz(+@var{C}) [ISO] -@findex assertz/1 -@saindex assertz/1 -@caindex assertz/1 - Adds clause @var{C} to the end of the program. If the predicate is -undefined, declare it as dynamic. - - Most Prolog systems only allow asserting clauses for dynamic -predicates. This is also as specified in the ISO standard. YAP allows -asserting clauses for static predicates. The current version of YAP -supports this feature, but this feature is deprecated and support may go -away in future versions. - -@item abolish(+@var{PredSpec}) [ISO] -@findex abolish/1 -@saindex abolish/1 -@caindex abolish/1 - Deletes the predicate given by @var{PredSpec} from the database. If -@var{PredSpec} is an unbound variable, delete all predicates for the -current module. The -specification must include the name and arity, and it may include module -information. Under @t{iso} language mode this built-in will only abolish -dynamic procedures. Under other modes it will abolish any procedures. - -@item abolish(+@var{P},+@var{N}) -@findex abolish/2 -@saindex abolish/2 -@caindex abolish/2 - Deletes the predicate with name @var{P} and arity @var{N}. It will remove -both static and dynamic predicates. - -@item assert_static(:@var{C}) -@findex assert_static/1 -@snindex assert_static/1 -@cnindex assert_static/1 -Adds clause @var{C} to a static procedure. Asserting a static clause -for a predicate while choice-points for the predicate are available has -undefined results. - -@item asserta_static(:@var{C}) -@findex asserta_static/1 -@snindex asserta_static/1 -@cnindex asserta_static/1 - Adds clause @var{C} to the beginning of a static procedure. - -@item assertz_static(:@var{C}) -@findex assertz_static/1 -@snindex assertz_static/1 -@cnindex assertz_static/1 - Adds clause @var{C} to the end of a static procedure. Asserting a -static clause for a predicate while choice-points for the predicate are -available has undefined results. - -@end table - -The following predicates can be used for dynamic predicates and for -static predicates, if source mode was on when they were compiled: - -@table @code - -@item clause(+@var{H},@var{B}) [ISO] -@findex clause/2 -@saindex clause/2 -@caindex clause/2 - A clause whose head matches @var{H} is searched for in the -program. Its head and body are respectively unified with @var{H} and -@var{B}. If the clause is a unit clause, @var{B} is unified with -@var{true}. - -This predicate is applicable to static procedures compiled with -@code{source} active, and to all dynamic procedures. - -@item clause(+@var{H},@var{B},-@var{R}) -@findex clause/3 -@saindex clause/3 -@caindex clause/3 -The same as @code{clause/2}, plus @var{R} is unified with the -reference to the clause in the database. You can use @code{instance/2} -to access the reference's value. Note that you may not use -@code{erase/1} on the reference on static procedures. - -@item nth_clause(+@var{H},@var{I},-@var{R}) -@findex nth_clause/3 -@saindex nth_clause/3 -@caindex nth_clause/3 -Find the @var{I}th clause in the predicate defining @var{H}, and give -a reference to the clause. Alternatively, if the reference @var{R} is -given the head @var{H} is unified with a description of the predicate -and @var{I} is bound to its position. - -@end table - -The following predicates can only be used for dynamic predicates: - -@table @code - -@item retract(+@var{C}) [ISO] -@findex retract/1 -@saindex retract/1 -@cnindex retract/1 -Erases the first clause in the program that matches @var{C}. This -predicate may also be used for the static predicates that have been -compiled when the source mode was @code{on}. For more information on -@code{source/0} (@pxref{Setting the Compiler}). - -@item retractall(+@var{G}) [ISO] -@findex retractall/1 -@saindex retractall/1 -@cnindex retractall/1 -Retract all the clauses whose head matches the goal @var{G}. Goal -@var{G} must be a call to a dynamic predicate. - -@end table - -@node Looking at the Database, Database References, Modifying the Database, Database -@section Looking at the Data Base - -@table @code - -@item listing -@findex listing/0 -@saindex listing/0 -@caindex listing/0 -Lists in the current output stream all the clauses for which source code -is available (these include all clauses for dynamic predicates and -clauses for static predicates compiled when source mode was @code{on}). - -@item listing(+@var{P}) -@findex listing/1 -@syindex listing/1 -@caindex listing/1 -Lists predicate @var{P} if its source code is available. - -@item portray_clause(+@var{C}) -@findex portray_clause/1 -@syindex portray_clause/1 -@cnindex portray_clause/1 -Write clause @var{C} as if written by @code{listing/0}. - -@item portray_clause(+@var{S},+@var{C}) -@findex portray_clause/2 -@syindex portray_clause/2 -@cnindex portray_clause/2 -Write clause @var{C} on stream @var{S} as if written by @code{listing/0}. - -@item current_atom(@var{A}) -@findex current_atom/1 -@syindex current_atom/1 -@cyindex current_atom/1 -Checks whether @var{A} is a currently defined atom. It is used to find all -currently defined atoms by backtracking. - -@item current_predicate(@var{F}) [ISO] -@findex current_predicate/1 -@syindex current_predicate/1 -@cyindex current_predicate/1 -@var{F} is the predicate indicator for a currently defined user or -library predicate. @var{F} is of the form @var{Na/Ar}, where the atom -@var{Na} is the name of the predicate, and @var{Ar} its arity. - -@item current_predicate(@var{A},@var{P}) -@findex current_predicate/2 -@syindex current_predicate/2 -@cnindex current_predicate/2 -Defines the relation: @var{P} is a currently defined predicate whose -name is the atom @var{A}. - -@item system_predicate(@var{A},@var{P}) -@findex system_predicate/2 -@syindex system_predicate/2 -@cnindex system_predicate/2 -Defines the relation: @var{P} is a built-in predicate whose name -is the atom @var{A}. - -@item predicate_property(@var{P},@var{Prop}) [ISO] -@findex predicate_property/2 -@saindex predicate_property/2 -@cnindex predicate_property/2 -For the predicates obeying the specification @var{P} unify @var{Prop} -with a property of @var{P}. These properties may be: -@table @code -@item built_in -@findex built_in/0 (predicate_property flag) -true for built-in predicates, -@item dynamic -@findex dynamic/0 (predicate_property flag) -true if the predicate is dynamic -@item static -@findex static/0 (predicate_property flag) -true if the predicate is static -@item meta_predicate(@var{M}) -@findex meta_predicate_flag/1 (predicate_property flag) -true if the predicate has a meta_predicate declaration @var{M}. -@item multifile -@findex multifile_flag/1 (predicate_property flag) -true if the predicate was declared to be multifile -@item imported_from(@var{Mod}) -@findex imported_from/1 (predicate_property flag) -true if the predicate was imported from module @var{Mod}. -@item exported -@findex exported/0 (predicate_property flag) -true if the predicate is exported in the current module. -@item public -@findex public/0 (predicate_property flag) -true if the predicate is public; note that all dynamic predicates are -public. -@item tabled -@findex tabled/0 (predicate_property flag) -true if the predicate is tabled; note that only static predicates can -be tabled in YAP. -@item source (predicate_property flag) -@findex source_flag/0 (predicate_property flag) -true if source for the predicate is available. -@item number_of_clauses(@var{ClauseCount}) -@findex number_of_clauses/1 (predicate_property flag) -Number of clauses in the predicate definition. Always one if external -or built-in. -@end table - -@item predicate_statistics(@var{P},@var{NCls},@var{Sz},@var{IndexSz}) -@findex predicate_statistics/4 - -Given predicate @var{P}, @var{NCls} is the number of clauses for -@var{P}, @var{Sz} is the amount of space taken to store those clauses -(in bytes), and @var{IndexSz} is the amount of space required to store -indices to those clauses (in bytes). - -@item predicate_erased_statistics(@var{P},@var{NCls},@var{Sz},@var{IndexSz}) -@findex predicate_erased_statistics/4 - -Given predicate @var{P}, @var{NCls} is the number of erased clauses for -@var{P} that could not be discarded yet, @var{Sz} is the amount of space -taken to store those clauses (in bytes), and @var{IndexSz} is the amount -of space required to store indices to those clauses (in bytes). - -@end table - -@node Database References, Internal Database, Looking at the Database, Database -@section Using Data Base References - -Data Base references are a fast way of accessing terms. The predicates -@code{erase/1} and @code{instance/1} also apply to these references and may -sometimes be used instead of @code{retract/1} and @code{clause/2}. - -@table @code - -@item assert(+@var{C},-@var{R}) -@findex assert/2 -@saindex assert/2 -@caindex assert/2 - The same as @code{assert(C)} (@pxref{Modifying the Database}) but -unifies @var{R} with the database reference that identifies the new -clause, in a one-to-one way. Note that @code{asserta/2} only works for dynamic -predicates. If the predicate is undefined, it will automatically be -declared dynamic. - -@item asserta(+@var{C},-@var{R}) -@findex asserta/2 -@saindex asserta/2 -@caindex asserta/2 - The same as @code{asserta(C)} but unifying @var{R} with -the database reference that identifies the new clause, in a -one-to-one way. Note that @code{asserta/2} only works for dynamic -predicates. If the predicate is undefined, it will automatically be -declared dynamic. - -@item assertz(+@var{C},-@var{R}) -@findex assertz/2 -@saindex assertz/2 -@caindex assertz/2 - The same as @code{assertz(C)} but unifying @var{R} with -the database reference that identifies the new clause, in a -one-to-one way. Note that @code{asserta/2} only works for dynamic -predicates. If the predicate is undefined, it will automatically be -declared dynamic. - -@item retract(+@var{C},-@var{R}) -@findex retract/2 -@saindex retract/2 -@caindex retract/2 - Erases from the program the clause @var{C} whose -database reference is @var{R}. The predicate must be dynamic. - - -@end table - -@node Internal Database, BlackBoard, Database References, Database -@section Internal Data Base - -Some programs need global information for, e.g. counting or collecting -data obtained by backtracking. As a rule, to keep this information, the -internal data base should be used instead of asserting and retracting -clauses (as most novice programmers do), . -In YAP (as in some other Prolog systems) the internal data base (i.d.b. -for short) is faster, needs less space and provides a better insulation of -program and data than using asserted/retracted clauses. -The i.d.b. is implemented as a set of terms, accessed by keys that -unlikely what happens in (non-Prolog) data bases are not part of the -term. Under each key a list of terms is kept. References are provided so that -terms can be identified: each term in the i.d.b. has a unique reference -(references are also available for clauses of dynamic predicates). - -@table @code - -@item recorda(+@var{K},@var{T},-@var{R}) -@findex recorda/3 -@saindex recorda/3 -@cyindex recorda/3 -Makes term @var{T} the first record under key @var{K} and unifies @var{R} -with its reference. - -@item recordz(+@var{K},@var{T},-@var{R}) -@findex recordz/3 -@saindex recordz/3 -@cyindex recordz/3 -Makes term @var{T} the last record under key @var{K} and unifies @var{R} -with its reference. - -@item recorda_at(+@var{R0},@var{T},-@var{R}) -@findex recorda_at/3 -@snindex recorda_at/3 -@cnindex recorda_at/3 -Makes term @var{T} the record preceding record with reference -@var{R0}, and unifies @var{R} with its reference. - -@item recordz_at(+@var{R0},@var{T},-@var{R}) -@findex recordz_at/3 -@snindex recordz_at/3 -@cnindex recordz_at/3 -Makes term @var{T} the record following record with reference -@var{R0}, and unifies @var{R} with its reference. - -@item recordaifnot(+@var{K},@var{T},-@var{R}) -@findex recordaifnot/3 -@saindex recordaifnot/3 -@cnindex recordaifnot/3 -If a term equal to @var{T} up to variable renaming is stored under key -@var{K} fail. Otherwise, make term @var{T} the first record under key -@var{K} and unify @var{R} with its reference. - -@item recordzifnot(+@var{K},@var{T},-@var{R}) -@findex recordzifnot/3 -@snindex recordzifnot/3 -@cnindex recordzifnot/3 -If a term equal to @var{T} up to variable renaming is stored under key -@var{K} fail. Otherwise, make term @var{T} the first record under key -@var{K} and unify @var{R} with its reference. - -This predicate is YAP specific. - - -@item recorded(+@var{K},@var{T},@var{R}) -@findex recorded/3 -@saindex recorded/3 -@cyindex recorded/3 -Searches in the internal database under the key @var{K}, a term that -unifies with @var{T} and whose reference matches @var{R}. This -built-in may be used in one of two ways: -@itemize @bullet -@item @var{K} may be given, in this case the built-in will return all -elements of the internal data-base that match the key. -@item @var{R} may be given, if so returning the key and element that -match the reference. -@end itemize - -@item erase(+@var{R}) -@findex erase/1 -@saindex erase/1 -@cyindex erase/1 -The term referred to by @var{R} is erased from the internal database. If -reference @var{R} does not exist in the database, @code{erase} just fails. - -@item erased(+@var{R}) -@findex erased/1 -@saindex erased/1 -@cyindex erased/1 -Succeeds if the object whose database reference is @var{R} has been -erased. - -@item instance(+@var{R},-@var{T}) -@findex instance/2 -@saindex instance/2 -@cyindex instance/2 -If @var{R} refers to a clause or a recorded term, @var{T} is unified -with its most general instance. If @var{R} refers to an unit clause -@var{C}, then @var{T} is unified with @code{@var{C} :- true}. When -@var{R} is not a reference to an existing clause or to a recorded term, -this goal fails. - -@item eraseall(+@var{K}) -@findex eraseall/1 -@snindex eraseall/1 -@cnindex eraseall/1 -All terms belonging to the key @code{K} are erased from the internal -database. The predicate always succeeds. - -@item current_key(?@var{A},?@var{K}) -@findex current_key/2 -@syindex current_key/2 -@cnindex current_key/2 -Defines the relation: @var{K} is a currently defined database key whose -name is the atom @var{A}. It can be used to generate all the keys for -the internal data-base. - -@item nth_instance(?@var{Key},?@var{Index},?@var{R}) -@findex nth_instance/3 -@saindex nth_instance/3 -@cnindex nth_instance/3 -Fetches the @var{Index}nth entry in the internal database under the key -@var{Key}. Entries are numbered from one. If the key @var{Key} or the -@var{Index} are bound, a reference is unified with @var{R}. Otherwise, -the reference @var{R} must be given, and YAP will find -the matching key and index. - - -@item nth_instance(?@var{Key},?@var{Index},@var{T},?@var{R}) -@findex nth_instance/4 -@saindex nth_instance/4 -@cnindex nth_instance/4 -Fetches the @var{Index}nth entry in the internal database under the key -@var{Key}. Entries are numbered from one. If the key @var{Key} or the -@var{Index} are bound, a reference is unified with @var{R}. Otherwise, -the reference @var{R} must be given, and YAP will find -the matching key and index. - -@item key_statistics(+@var{K},-@var{Entries},-@var{Size},-@var{IndexSize}) -@findex key_statistics/4 -@snindex key_statistics/4 -@cnindex key_statistics/4 -Returns several statistics for a key @var{K}. Currently, it says how -many entries we have for that key, @var{Entries}, what is the -total size spent on entries, @var{Size}, and what is the amount of -space spent in indices. - -@item key_statistics(+@var{K},-@var{Entries},-@var{TotalSize}) -@findex key_statistics/3 -@snindex key_statistics/3 -@cnindex key_statistics/3 -Returns several statistics for a key @var{K}. Currently, it says how -many entries we have for that key, @var{Entries}, what is the -total size spent on this key. - -@item get_value(+@var{A},-@var{V}) -@findex get_value/2 -@snindex get_value/2 -@cnindex get_value/2 -In YAP, atoms can be associated with constants. If one such -association exists for atom @var{A}, unify the second argument with the -constant. Otherwise, unify @var{V} with @code{[]}. - -This predicate is YAP specific. - -@item set_value(+@var{A},+@var{C}) -@findex set_value/2 -@snindex set_value/2 -@cnindex set_value/2 -Associate atom @var{A} with constant @var{C}. - -The @code{set_value} and @code{get_value} built-ins give a fast alternative to -the internal data-base. This is a simple form of implementing a global -counter. -@example - read_and_increment_counter(Value) :- - get_value(counter, Value), - Value1 is Value+1, - set_value(counter, Value1). -@end example -@noindent -This predicate is YAP specific. - -@end table - -There is a strong analogy between the i.d.b. and the way dynamic -predicates are stored. In fact, the main i.d.b. predicates might be -implemented using dynamic predicates: - -@example -recorda(X,T,R) :- asserta(idb(X,T),R). -recordz(X,T,R) :- assertz(idb(X,T),R). -recorded(X,T,R) :- clause(idb(X,T),R). -@end example -@noindent - We can take advantage of this, the other way around, as it is quite -easy to write a simple Prolog interpreter, using the i.d.b.: - -@example -asserta(G) :- recorda(interpreter,G,_). -assertz(G) :- recordz(interpreter,G,_). -retract(G) :- recorded(interpreter,G,R), !, erase(R). -call(V) :- var(V), !, fail. -call((H :- B)) :- !, recorded(interpreter,(H :- B),_), call(B). -call(G) :- recorded(interpreter,G,_). -@end example -@noindent -In YAP, much attention has been given to the implementation of the -i.d.b., especially to the problem of accelerating the access to terms kept in -a large list under the same key. Besides using the key, YAP uses an internal -lookup function, transparent to the user, to find only the terms that might -unify. For instance, in a data base containing the terms - -@example -b -b(a) -c(d) -e(g) -b(X) -e(h) -@end example - -@noindent -stored under the key k/1, when executing the query - -@example -:- recorded(k(_),c(_),R). -@end example - -@noindent -@code{recorded} would proceed directly to the third term, spending almost the -time as if @code{a(X)} or @code{b(X)} was being searched. - The lookup function uses the functor of the term, and its first three -arguments (when they exist). So, @code{recorded(k(_),e(h),_)} would go -directly to the last term, while @code{recorded(k(_),e(_),_)} would find -first the fourth term, and then, after backtracking, the last one. - - This mechanism may be useful to implement a sort of hierarchy, where -the functors of the terms (and eventually the first arguments) work as -secondary keys. - - In the YAP's i.d.b. an optimized representation is used for -terms without free variables. This results in a faster retrieval of terms -and better space usage. Whenever possible, avoid variables in terms in terms stored in the i.d.b. - - -@node BlackBoard, , Internal Database, Database -@section The Blackboard - -YAP implements a blackboard in the style of the SICStus Prolog -blackboard. The blackboard uses the same underlying mechanism as the -internal data-base but has several important differences: -@itemize @bullet -@item It is module aware, in contrast to the internal data-base. -@item Keys can only be atoms or integers, and not compound terms. -@item A single term can be stored per key. -@item An atomic update operation is provided; this is useful for -parallelism. -@end itemize - - -@table @code -@item bb_put(+@var{Key},?@var{Term}) -@findex bb_put/2 -@syindex bb_put/2 -@cnindex bb_put/2 -Store term table @var{Term} in the blackboard under key @var{Key}. If a -previous term was stored under key @var{Key} it is simply forgotten. - -@item bb_get(+@var{Key},?@var{Term}) -@findex bb_get/2 -@syindex bb_get/2 -@cnindex bb_get/2 -Unify @var{Term} with a term stored in the blackboard under key -@var{Key}, or fail silently if no such term exists. - -@item bb_delete(+@var{Key},?@var{Term}) -@findex bb_delete/2 -@syindex bb_delete/2 -@cnindex bb_delete/2 -Delete any term stored in the blackboard under key @var{Key} and unify -it with @var{Term}. Fail silently if no such term exists. - -@item bb_update(+@var{Key},?@var{Term},?@var{New}) -@findex bb_update/3 -@syindex bb_update/3 -@cnindex bb_update/3 -Atomically unify a term stored in the blackboard under key @var{Key} -with @var{Term}, and if the unification succeeds replace it by -@var{New}. Fail silently if no such term exists or if unification fails. - -@end table - -@node Sets, Grammars, Database, Top -@section Collecting Solutions to a Goal - -When there are several solutions to a goal, if the user wants to collect all -the solutions he may be led to use the data base, because backtracking will -forget previous solutions. - -YAP allows the programmer to choose from several system -predicates instead of writing his own routines. @code{findall/3} gives you -the fastest, but crudest solution. The other built-in predicates -post-process the result of the query in several different ways: - -@table @code - -@item findall(@var{T},+@var{G},-@var{L}) [ISO] -@findex findall/3 -@syindex findall/3 -@cyindex findall/3 -Unifies @var{L} with a list that contains all the instantiations of the -term @var{T} satisfying the goal @var{G}. - -With the following program: -@example -a(2,1). -a(1,1). -a(2,2). -@end example -@noindent -the answer to the query -@example -findall(X,a(X,Y),L). -@end example -@noindent -would be: -@example -X = _32 -Y = _33 -L = [2,1,2]; -no -@end example - -@item findall(@var{T},+@var{G},+@var{L},-@var{L0}) -@findex findall/4 -@syindex findall/4 -@cnindex findall/4 -Similar to @code{findall/3}, but appends all answers to list @var{L0}. - -@item all(@var{T},+@var{G},-@var{L}) -@findex all/3 -@snindex all/3 -@cnindex all/3 -Similar to @code{findall(@var{T},@var{G},@var{L})} but eliminate -repeated elements. Thus, assuming the same clauses as in the above -example, the reply to the query - -@example -all(X,a(X,Y),L). -@end example -@noindent -would be: - -@example -X = _32 -Y = _33 -L = [2,1]; -no -@end example - -Note that @code{all/3} will fail if no answers are found. - -@item bagof(@var{T},+@var{G},-@var{L}) [ISO] -@findex bagof/3 -@saindex bagof/3 -@cyindex bagof/3 -For each set of possible instances of the free variables occurring in -@var{G} but not in @var{T}, generates the list @var{L} of the instances of -@var{T} satisfying @var{G}. Again, assuming the same clauses as in the -examples above, the reply to the query - -@example -bagof(X,a(X,Y),L). - -would be: -X = _32 -Y = 1 -L = [2,1]; -X = _32 -Y = 2 -L = [2]; -no -@end example - -@item setof(@var{X},+@var{P},-@var{B}) [ISO] -@findex setof/3 -@saindex setof/3 -@cyindex setof/3 -Similar to @code{bagof(@var{T},@var{G},@var{L})} but sorts list -@var{L} and keeping only one copy of each element. Again, assuming the -same clauses as in the examples above, the reply to the query -@example -setof(X,a(X,Y),L). -@end example -@noindent -would be: -@example -X = _32 -Y = 1 -L = [1,2]; -X = _32 -Y = 2 -L = [2]; -no -@end example - -@end table - -@node Grammars, OS, Sets, Top -@section Grammar Rules - -Grammar rules in Prolog are both a convenient way to express definite -clause grammars and an extension of the well known context-free grammars. - -A grammar rule is of the form: - -@example -head --> body -@end example -@noindent -where both @i{head} and @i{body} are sequences of one or more items -linked by the standard conjunction operator ','. - -@emph{Items can be:} - -@itemize @bullet -@item -a @emph{non-terminal} symbol may be either a complex term or an atom. -@item -a @emph{terminal} symbol may be any Prolog symbol. Terminals are -written as Prolog lists. -@item -an @emph{empty body} is written as the empty list '[ ]'. -@item -@emph{extra conditions} may be inserted as Prolog procedure calls, by being -written inside curly brackets '@{' and '@}'. -@item -the left side of a rule consists of a nonterminal and an optional list -of terminals. -@item -alternatives may be stated in the right-hand side of the rule by using -the disjunction operator ';'. -@item -the @emph{cut} and @emph{conditional} symbol ('->') may be inserted in the -right hand side of a grammar rule -@end itemize - -Grammar related built-in predicates: - -@table @code - -@item expand_term(@var{T},-@var{X}) -@findex expand_term/2 -@syindex expand_term/2 -@cyindex expand_term/2 - -This predicate is used by YAP for preprocessing each top level -term read when consulting a file and before asserting or executing it. -It rewrites a term @var{T} to a term @var{X} according to the following -rules: first try @code{term_expansion/2} in the current module, and then try to use the user defined predicate -@code{user:term_expansion/2}. If this call fails then the translating process -for DCG rules is applied, together with the arithmetic optimizer -whenever the compilation of arithmetic expressions is in progress. - -@item @var{CurrentModule}:term_expansion(@var{T},-@var{X}), user:term_expansion(@var{T},-@var{X}) -@findex term_expansion/2 -@syindex term_expansion/2 -@cyindex term_expansion/2 -This user-defined predicate is called by @code{expand_term/3} to -preprocess all terms read when consulting a file. If it succeeds: - -@itemize -@item -If @var{X} is of the form @code{:- G} or @code{?- G}, it is processed as -a directive. -@item -If @var{X} is of the form @code{'$source_location'(@var{File},@var{Line}):@var{Clause}} it is processed as if from @code{File} and line @code{Line}. - -@item -If @var{X} is a list, all terms of the list are asserted or processed -as directives. -@item The term @var{X} is asserted instead of @var{T}. -@end itemize - -@item @var{CurrentModule}:goal_expansion(+@var{G},+@var{M},-@var{NG}), user:goal_expansion(+@var{G},+@var{M},-@var{NG}) -@findex goal_expansion/3 -@snindex goal_expansion/3 -@cnindex goal_expansion/3 -YAP now supports @code{goal_expansion/3}. This is an user-defined -procedure that is called after term expansion when compiling or -asserting goals for each sub-goal in a clause. The first argument is -bound to the goal and the second to the module under which the goal -@var{G} will execute. If @code{goal_expansion/3} succeeds the new -sub-goal @var{NG} will replace @var{G} and will be processed in the same -way. If @code{goal_expansion/3} fails the system will use the default -rules. - -@item phrase(+@var{P},@var{L},@var{R}) -@findex phrase/3 -@syindex phrase/3 -@cnindex phrase/3 -This predicate succeeds when the difference list @code{@var{L}-@var{R}} -is a phrase of type @var{P}. - -@item phrase(+@var{P},@var{L}) -@findex phrase/2 -@syindex phrase/2 -@cnindex phrase/2 -This predicate succeeds when @var{L} is a phrase of type @var{P}. The -same as @code{phrase(P,L,[])}. - -Both this predicate and the previous are used as a convenient way to -start execution of grammar rules. - -@item 'C'(@var{S1},@var{T},@var{S2}) -@findex C/3 -@syindex C/3 -@cnindex C/3 -This predicate is used by the grammar rules compiler and is defined as -@code{'C'([H|T],H,T)}. - -@end table - -@node OS, Term Modification, Grammars, Top -@section Access to Operating System Functionality - -The following built-in predicates allow access to underlying -Operating System functionality: - -@table @code - -@item cd(+@var{D}) -@findex cd/1 -@snindex cd/1 -@cnindex cd/1 -Changes the current directory (on UNIX environments). - -@item cd -@findex cd/0 -@snindex cd/0 -@cnindex cd/0 -Changes the current directory (on UNIX environments) to the user's home directory. - -@item environ(+@var{E},-@var{S}) -@findex environ/2 -@syindex environ/2 -@cnindex environ/2 -@comment This backtrackable predicate unifies the first argument with an -@comment environment variable @var{E}, and the second with its value @var{S}. It -@comment can used to detect all environment variables. - Given an environment variable @var{E} this predicate unifies the second argument @var{S} with its value. - -@item getcwd(-@var{D}) -@findex getcwd/1 -@snindex getcwd/1 -@cnindex getcwd/1 -Unify the current directory, represented as an atom, with the argument -@var{D}. - -@item pwd -@findex pwd/0 -@snindex pwd/0 -@cnindex pwd/0 -Prints the current directory. - -@item ls -@findex ls/0 -@snindex ls/0 -@cnindex ls/0 -Prints a list of all files in the current directory. - -@item putenv(+@var{E},+@var{S}) -@findex putenv/2 -@snindex putenv/2 -@cnindex putenv/2 -Set environment variable @var{E} to the value @var{S}. If the -environment variable @var{E} does not exist, create a new one. Both the -environment variable and the value must be atoms. - -@item rename(+@var{F},+@var{G}) -@findex rename/2 -@snindex rename/2 -@cyindex rename/2 -Renames file @var{F} to @var{G}. - -@item sh -@findex sh/0 -@snindex sh/0 -@cyindex sh/0 -Creates a new shell interaction. - -@item system(+@var{S}) -@findex system/1 -@snindex system/1 -@cyindex system/1 -Passes command @var{S} to the Bourne shell (on UNIX environments) or the -current command interpreter in WIN32 environments. - -@item unix(+@var{S}) -@findex unix/1 -@snindex unix/1 -@cnindex unix/1 -Access to Unix-like functionality: -@table @code -@item argv/1 -Return a list of arguments to the program. These are the arguments that -follow a @code{--}, as in the usual Unix convention. -@item cd/0 -Change to home directory. -@item cd/1 -Change to given directory. Acceptable directory names are strings or -atoms. -@item environ/2 -If the first argument is an atom, unify the second argument with the -value of the corresponding environment variable. -@item getcwd/1 -Unify the first argument with an atom representing the current directory. -@item putenv/2 -Set environment variable @var{E} to the value @var{S}. If the -environment variable @var{E} does not exist, create a new one. Both the -environment variable and the value must be atoms. -@item shell/1 -Execute command under current shell. Acceptable commands are strings or -atoms. -@item system/1 -Execute command with @code{/bin/sh}. Acceptable commands are strings or -atoms. -@item shell/0 -Execute a new shell. -@end table - -@item working_directory(-@var{CurDir},?@var{NextDir}) -@findex working_directory/2 -@syindex working_directory/2 -@cnindex working_directory/2 @c -Fetch the current directory at @var{CurDir}. If @var{NextDir} is bound -to an atom, make its value the current working directory. - -@item alarm(+@var{Seconds},+@var{Callable},+@var{OldAlarm}) -@findex alarm/3 -@snindex alarm/3 -@cnindex alarm/3 -Arranges for YAP to be interrupted in @var{Seconds} seconds, or in -[@var{Seconds}|@var{MicroSeconds}]. When interrupted, YAP will execute -@var{Callable} and then return to the previous execution. If -@var{Seconds} is @code{0}, no new alarm is scheduled. In any event, -any previously set alarm is canceled. - -The variable @var{OldAlarm} unifies with the number of seconds remaining -until any previously scheduled alarm was due to be delivered, or with -@code{0} if there was no previously scheduled alarm. - -Note that execution of @var{Callable} will wait if YAP is -executing built-in predicates, such as Input/Output operations. - -The next example shows how @var{alarm/3} can be used to implement a -simple clock: - -@example -loop :- loop. - -ticker :- write('.'), flush_output, - get_value(tick, yes), - alarm(1,ticker,_). - -:- set_value(tick, yes), alarm(1,ticker,_), loop. -@end example - -The clock, @code{ticker}, writes a dot and then checks the flag -@code{tick} to see whether it can continue ticking. If so, it calls -itself again. Note that there is no guarantee that the each dot -corresponds a second: for instance, if the YAP is waiting for -user input, @code{ticker} will wait until the user types the entry in. - -The next example shows how @code{alarm/3} can be used to guarantee that -a certain procedure does not take longer than a certain amount of time: - -@example -loop :- loop. - -:- catch((alarm(10, throw(ball), _),loop), - ball, - format('Quota exhausted.~n',[])). -@end example -In this case after @code{10} seconds our @code{loop} is interrupted, -@code{ball} is thrown, and the handler writes @code{Quota exhausted}. -Execution then continues from the handler. - -Note that in this case @code{loop/0} always executes until the alarm is -sent. Often, the code you are executing succeeds or fails before the -alarm is actually delivered. In this case, you probably want to disable -the alarm when you leave the procedure. The next procedure does exactly so: -@example -once_with_alarm(Time,Goal,DoOnAlarm) :- - catch(execute_once_with_alarm(Time, Goal), alarm, DoOnAlarm). - -execute_once_with_alarm(Time, Goal) :- - alarm(Time, alarm, _), - ( call(Goal) -> alarm(0, alarm, _) ; alarm(0, alarm, _), fail). -@end example - -The procedure @code{once_with_alarm/3} has three arguments: -the @var{Time} to wait before the alarm is -sent; the @var{Goal} to execute; and the goal @var{DoOnAlarm} to execute -if the alarm is sent. It uses @code{catch/3} to handle the case the -@code{alarm} is sent. Then it starts the alarm, calls the goal -@var{Goal}, and disables the alarm on success or failure. - -@item on_signal(+@var{Signal},?@var{OldAction},+@var{Callable}) -@findex on_signal/3 -@snindex on_signal/3 -@cnindex on_signal/3 -Set the interrupt handler for soft interrupt @var{Signal} to be -@var{Callable}. @var{OldAction} is unified with the previous handler. - -Only a subset of the software interrupts (signals) can have their -handlers manipulated through @code{on_signal/3}. -Their POSIX names, YAP names and default behavior is given below. -The "YAP name" of the signal is the atom that is associated with -each signal, and should be used as the first argument to -@code{on_signal/3}. It is chosen so that it matches the signal's POSIX -name. - -@code{on_signal/3} succeeds, unless when called with an invalid -signal name or one that is not supported on this platform. No checks -are made on the handler provided by the user. - -@table @code -@item sig_up (Hangup) - SIGHUP in Unix/Linux; Reconsult the initialization files - ~/.yaprc, ~/.prologrc and ~/prolog.ini. -@item sig_usr1 and sig_usr2 (User signals) - SIGUSR1 and SIGUSR2 in Unix/Linux; Print a message and halt. -@end table - -A special case is made, where if @var{Callable} is bound to -@code{default}, then the default handler is restored for that signal. - -A call in the form @code{on_signal(@var{S},@var{H},@var{H})} can be used -to retrieve a signal's current handler without changing it. - -It must be noted that although a signal can be received at all times, -the handler is not executed while YAP is waiting for a query at the -prompt. The signal will be, however, registered and dealt with as soon -as the user makes a query. - -Please also note, that neither POSIX Operating Systems nor YAP guarantee -that the order of delivery and handling is going to correspond with the -order of dispatch. - -@end table - -@node Term Modification, Global Variables, OS, Top -@section Term Modification - -@cindex updating terms -It is sometimes useful to change the value of instantiated -variables. Although, this is against the spirit of logic programming, it -is sometimes useful. As in other Prolog systems, YAP has -several primitives that allow updating Prolog terms. Note that these -primitives are also backtrackable. - -The @code{setarg/3} primitive allows updating any argument of a Prolog -compound terms. The @code{mutable} family of predicates provides -@emph{mutable variables}. They should be used instead of @code{setarg/3}, -as they allow the encapsulation of accesses to updatable -variables. Their implementation can also be more efficient for long -deterministic computations. - -@table @code -@item setarg(+@var{I},+@var{S},?@var{T}) -@findex setarg/3n -@snindex setarg/3n -@cnindex setarg/3n -Set the value of the @var{I}th argument of term @var{S} to term @var{T}. - -@cindex mutable variables -@item create_mutable(+@var{D},-@var{M}) -@findex create_mutable/2 -@syindex create_mutable/2 -@cnindex create_mutable/2 -Create new mutable variable @var{M} with initial value @var{D}. - -@item is_mutable(?@var{D}) -@findex is_mutable/1 -@syindex is_mutable/1 -@cnindex is_mutable/1 -Holds if @var{D} is a mutable term. - -@item get_mutable(?@var{D},+@var{M}) -@findex get_mutable/2 -@syindex get_mutable/2 -@cnindex get_mutable/2 -Unify the current value of mutable term @var{M} with term @var{D}. - -@item update_mutable(+@var{D},+@var{M}) -@findex update_mutable/2 -@syindex update_mutable/2 -@cnindex update_mutable/2 -Set the current value of mutable term @var{M} to term @var{D}. -@end table - -@node Global Variables, Profiling, Term Modification, Top -@section Global Variables - -@cindex global variables - -Global variables are associations between names (atoms) and -terms. They differ in various ways from storing information using -@code{assert/1} or @code{recorda/3}. - -@itemize @bullet -@item The value lives on the Prolog (global) stack. This implies that -lookup time is independent from the size of the term. This is -particularly interesting for large data structures such as parsed XML -documents or the CHR global constraint store. - -@item They support both global assignment using @code{nb_setval/2} and -backtrackable assignment using @code{b_setval/2}. - -@item Only one value (which can be an arbitrary complex Prolog term) -can be associated to a variable at a time. - -@item Their value cannot be shared among threads. Each thread has its own -namespace and values for global variables. -@end itemize - -Currently global variables are scoped globally. We may consider module -scoping in future versions. Both @code{b_setval/2} and -@code{nb_setval/2} implicitly create a variable if the referenced name -does not already refer to a variable. - -Global variables may be initialised from directives to make them -available during the program lifetime, but some considerations are -necessary for saved-states and threads. Saved-states to not store -global variables, which implies they have to be declared with -@code{initialization/1} to recreate them after loading the saved -state. Each thread has its own set of global variables, starting with -an empty set. Using @code{thread_initialization/1} to define a global -variable it will be defined, restored after reloading a saved state -and created in all threads that are created after the -registration. Finally, global variables can be initialised using the -exception hook called @code{exception/3}. The latter technique is used -by CHR. - -@table @code -@item b_setval(+@var{Name}, +@var{Value}) -@findex b_setval/2 -@snindex b_setval/2 -@cnindex b_setval/2 -Associate the term @var{Value} with the atom @var{Name} or replaces -the currently associated value with @var{Value}. If @var{Name} does -not refer to an existing global variable a variable with initial value -[] is created (the empty list). On backtracking the assignment is -reversed. - -@item b_getval(+@var{Name}, -@var{Value}) -@findex b_getval/2 -@snindex b_getval/2 -@cnindex b_getval/2 -Get the value associated with the global variable @var{Name} and unify -it with @var{Value}. Note that this unification may further -instantiate the value of the global variable. If this is undesirable -the normal precautions (double negation or @code{copy_term/2}) must be -taken. The @code{b_getval/2} predicate generates errors if @var{Name} is not -an atom or the requested variable does not exist. - -Notice that for compatibility with other systems @var{Name} @emph{must} be already associated with a term: otherwise the system will generate an error. - -@item nb_setval(+@var{Name}, +@var{Value}) -@findex nb_setval/2 -@snindex nb_setval/2 -@cnindex nb_setval/2 -Associates a copy of @var{Value} created with @code{duplicate_term/2} with -the atom @var{Name}. Note that this can be used to set an initial -value other than @code{[]} prior to backtrackable assignment. - -@item nb_getval(+@var{Name}, -@var{Value}) -@findex nb_getval/2 -@snindex nb_getval/2 -@cnindex nb_getval/2 -The @code{nb_getval/2} predicate is a synonym for @code{b_getval/2}, -introduced for compatibility and symmetry. As most scenarios will use -a particular global variable either using non-backtrackable or -backtrackable assignment, using @code{nb_getval/2} can be used to -document that the variable is used non-backtrackable. - -@item nb_linkval(+@var{Name}, +@var{Value}) -@findex nb_linkval/2 -@snindex nb_linkval/2 -@cnindex nb_linkval/2 -Associates the term @var{Value} with the atom @var{Name} without -copying it. This is a fast special-purpose variation of @code{nb_setval/2} -intended for expert users only because the semantics on backtracking -to a point before creating the link are poorly defined for compound -terms. The principal term is always left untouched, but backtracking -behaviour on arguments is undone if the original assignment was -trailed and left alone otherwise, which implies that the history that -created the term affects the behaviour on backtracking. Please -consider the following example: - -@example -demo_nb_linkval :- - T = nice(N), - ( N = world, - nb_linkval(myvar, T), - fail - ; nb_getval(myvar, V), - writeln(V) - ). -@end example - -@item nb_set_shared_val(+@var{Name}, +@var{Value}) -@findex nb_set_shared_val/2 -@snindex nb_set_shared_val/2 -@cnindex nb_set_shared_val/2 -Associates the term @var{Value} with the atom @var{Name}, but sharing -non-backtrackable terms. This may be useful if you want to rewrite a -global variable so that the new copy will survive backtracking, but -you want to share structure with the previous term. - -The next example shows the differences between the three built-ins: -@example -?- nb_setval(a,a(_)),nb_getval(a,A),nb_setval(b,t(C,A)),nb_getval(b,B). -A = a(_A), -B = t(_B,a(_C)) ? - -?- nb_setval(a,a(_)),nb_getval(a,A),nb_set_shared_val(b,t(C,A)),nb_getval(b,B). - -?- nb_setval(a,a(_)),nb_getval(a,A),nb_linkval(b,t(C,A)),nb_getval(b,B). -A = a(_A), -B = t(C,a(_A)) ? -@end example - -@item nb_setarg(+@{Arg], +@var{Term}, +@var{Value}) -@findex nb_setarg/3 -@snindex nb_setarg/3 -@cnindex nb_setarg/3 - -Assigns the @var{Arg}-th argument of the compound term @var{Term} with -the given @var{Value} as setarg/3, but on backtracking the assignment -is not reversed. If @var{Term} is not atomic, it is duplicated using -duplicate_term/2. This predicate uses the same technique as -@code{nb_setval/2}. We therefore refer to the description of -@code{nb_setval/2} for details on non-backtrackable assignment of -terms. This predicate is compatible to GNU-Prolog -@code{setarg(A,T,V,false)}, removing the type-restriction on -@var{Value}. See also @code{nb_linkarg/3}. Below is an example for -counting the number of solutions of a goal. Note that this -implementation is thread-safe, reentrant and capable of handling -exceptions. Realising these features with a traditional implementation -based on assert/retract or flag/3 is much more complicated. - -@example - succeeds_n_times(Goal, Times) :- - Counter = counter(0), - ( Goal, - arg(1, Counter, N0), - N is N0 + 1, - nb_setarg(1, Counter, N), - fail - ; arg(1, Counter, Times) - ). -@end example - -@item nb_set_shared_arg(+@var{Arg}, +@var{Term}, +@var{Value}) -@findex nb_set_shared_arg/3 -@snindex nb_set_shared_arg/3 -@cnindex nb_set_shared_arg/3 - -As @code{nb_setarg/3}, but like @code{nb_linkval/2} it does not -duplicate the global sub-terms in @var{Value}. Use with extreme care -and consult the documentation of @code{nb_linkval/2} before use. - -@item nb_linkarg(+@var{Arg}, +@var{Term}, +@var{Value}) -@findex nb_linkarg/3 -@snindex nb_lnkarg/3 -@cnindex nb_linkarg/3 - -As @code{nb_setarg/3}, but like @code{nb_linkval/2} it does not -duplicate @var{Value}. Use with extreme care and consult the -documentation of @code{nb_linkval/2} before use. - - -@item nb_current(?@var{Name}, ?@var{Value}) -@findex nb_current/2 -@snindex nb_current/2 -@cnindex nb_current/2 -Enumerate all defined variables with their value. The order of -enumeration is undefined. - -@item nb_delete(+@var{Name}) -@findex nb_delete/2 -@snindex nb_delete/2 -@cnindex nb_delete/2 -Delete the named global variable. -@end table - -Global variables have been introduced by various Prolog -implementations recently. We follow the implementation of them in -SWI-Prolog, itself based on hProlog by Bart Demoen. - -GNU-Prolog provides a rich set of global variables, including -arrays. Arrays can be implemented easily in YAP and SWI-Prolog using -@code{functor/3} and @code{setarg/3} due to the unrestricted arity of -compound terms. - - -@node Profiling, Call Counting, Global Variables, Top -@section Profiling Prolog Programs - -@cindex profiling - -YAP includes two profilers. The count profiler keeps information on the -number of times a predicate was called. This information can be used to -detect what are the most commonly called predicates in the program. The -count profiler can be compiled by setting YAP's flag @code{profiling} -to @code{on}. The time-profiler is a @code{gprof} profiler, and counts -how many ticks are being spent on specific predicates, or on other -system functions such as internal data-base accesses or garbage collects. - -The YAP profiling sub-system is currently under -development. Functionality for this sub-system will increase with newer -implementation. - -@section The Count Profiler - -@strong{Notes:} - -The count profiler works by incrementing counters at procedure entry or -backtracking. It provides exact information: - -@itemize @bullet -@item Profiling works for both static and dynamic predicates. -@item Currently only information on entries and retries to a predicate -are maintained. This may change in the future. -@item As an example, the following user-level program gives a list of -the most often called procedures in a program. The procedure -@code{list_profile} shows all procedures, irrespective of module, and -the procedure @code{list_profile/1} shows the procedures being used in -a specific module. -@example -list_profile :- - % get number of calls for each profiled procedure - setof(D-[M:P|D1],(current_module(M),profile_data(M:P,calls,D),profile_data(M:P,retries,D1)),LP), - % output so that the most often called - % predicates will come last: - write_profile_data(LP). - -list_profile(Module) :- - % get number of calls for each profiled procedure - setof(D-[Module:P|D1],(profile_data(Module:P,calls,D),profile_data(Module:P,retries,D1)),LP), - % output so that the most often called - % predicates will come last: - write_profile_data(LP). - -write_profile_data([]). -write_profile_data([D-[M:P|R]|SLP]) :- - % swap the two calls if you want the most often - % called predicates first. - format('~a:~w: ~32+~t~d~12+~t~d~12+~n', [M,P,D,R]), - write_profile_data(SLP). -@end example -@end itemize - -These are the current predicates to access and clear profiling data: - -@table @code -@item profile_data(?@var{Na/Ar}, ?@var{Parameter}, -@var{Data}) -@findex profile_data/3 -@snindex profile_data/3 -@cnindex profile_data/3 -Give current profile data on @var{Parameter} for a predicate described -by the predicate indicator @var{Na/Ar}. If any of @var{Na/Ar} or -@var{Parameter} are unbound, backtrack through all profiled predicates -or stored parameters. Current parameters are: - -@table @code -@item calls -Number of times a procedure was called. - -@item retries - Number of times a call to the procedure was backtracked to and retried. -@end table - -@item profile_reset -@findex profiled_reset/0 -@snindex profiled_reset/0 -@cnindex profiled_reset/0 -Reset all profiling information. - -@end table - -@section Tick Profiler - -The tick profiler works by interrupting the Prolog code every so often -and checking at each point the code was. The profiler must be able to -retrace the state of the abstract machine at every moment. The major -advantage of this approach is that it gives the actual amount of time -being spent per procedure, or whether garbage collection dominates -execution time. The major drawback is that tracking down the state of -the abstract machine may take significant time, and in the worst case -may slow down the whole execution. - -The following procedures are available: - -@table @code -@item profinit -@findex profinit/0 -@snindex profinit/0 -@cnindex profinit/0 -Initialise the data-structures for the profiler. Unnecessary for -dynamic profiler. - -@item profon -@findex profon/0 -@snindex profon/0 -@cnindex profon/0 -Start profiling. - -@item profoff -@findex profoff/0 -@snindex profoff/0 -@cnindex profoff/0 -Stop profiling. - -@item showprofres -@findex showprofres/0 -@snindex showprofres/0 -@cnindex showprofres/0 -Show profiling info. - -@item showprofres(@var{N}) -@findex showprofres/1 -@snindex showprofres/1 -@cnindex showprofres/1 -Show profiling info for the top-most @var{N} predicates. - -@end table - -The @code{showprofres/0} and @code{showprofres/1} predicates call a user-defined multifile hook predicate, @code{user:prolog_predicate_name/2}, that can be used for converting a possibly explicitly-qualified callable term into an atom that will used when printing the profiling information. - -@node Call Counting, Arrays, Profiling, Top -@section Counting Calls - -@cindex Counting Calls -Predicates compiled with YAP's flag @code{call_counting} set to -@code{on} update counters on the numbers of calls and of -retries. Counters are actually decreasing counters, so that they can be -used as timers. Three counters are available: -@itemize @bullet -@item @code{calls}: number of predicate calls since execution started or since -system was reset; -@item @code{retries}: number of retries for predicates called since -execution started or since counters were reset; -@item @code{calls_and_retries}: count both on predicate calls and -retries. -@end itemize -These counters can be used to find out how many calls a certain -goal takes to execute. They can also be used as timers. - -The code for the call counters piggybacks on the profiling -code. Therefore, activating the call counters also activates the profiling -counters. - -These are the predicates that access and manipulate the call counters: - -@table @code -@item call_count_data(-@var{Calls}, -@var{Retries}, -@var{CallsAndRetries}) -@findex call_count_data/3 -@snindex call_count_data/3 -@cnindex call_count_data/3 -Give current call count data. The first argument gives the current value -for the @var{Calls} counter, next the @var{Retries} counter, and last -the @var{CallsAndRetries} counter. - -@item call_count_reset -@findex call_count_reset/0 -@snindex call_count_reset/0 -@cnindex call_count_reset/0 -Reset call count counters. All timers are also reset. - -@item call_count(?@var{CallsMax}, ?@var{RetriesMax}, ?@var{CallsAndRetriesMax}) -@findex call_count/3 -@snindex call_count/3 -@cnindex call_count/3 -Set call count counter as timers. YAP will generate an exception -if one of the instantiated call counters decreases to 0. YAP will ignore -unbound arguments: -@itemize @bullet -@item @var{CallsMax}: throw the exception @code{call_counter} when the -counter @code{calls} reaches 0; -@item @var{RetriesMax}: throw the exception @code{retry_counter} when the -counter @code{retries} reaches 0; -@item @var{CallsAndRetriesMax}: throw the exception -@code{call_and_retry_counter} when the counter @code{calls_and_retries} -reaches 0. -@end itemize -@end table - -Next, we show a simple example of how to use call counters: -@example - ?- yap_flag(call_counting,on), [-user]. l :- l. end_of_file. yap_flag(call_counting,off). - -yes - -yes - ?- catch((call_count(10000,_,_),l),call_counter,format("limit_exceeded.~n",[])). - -limit_exceeded. - -yes -@end example -Notice that we first compile the looping predicate @code{l/0} with -@code{call_counting} @code{on}. Next, we @code{catch/3} to handle an -exception when @code{l/0} performs more than 10000 reductions. - - -@node Arrays, Preds, Call Counting , Top -@section Arrays - -The YAP system includes experimental support for arrays. The -support is enabled with the option @code{YAP_ARRAYS}. - -There are two very distinct forms of arrays in YAP. The -@emph{dynamic arrays} are a different way to access compound terms -created during the execution. Like any other terms, any bindings to -these terms and eventually the terms themselves will be destroyed during -backtracking. Our goal in supporting dynamic arrays is twofold. First, -they provide an alternative to the standard @code{arg/3} -built-in. Second, because dynamic arrays may have name that are globally -visible, a dynamic array can be visible from any point in the -program. In more detail, the clause -@example -g(X) :- array_element(a,2,X). -@end example -will succeed as long as the programmer has used the built-in @t{array/2} -to create an array term with at least 3 elements in the current -environment, and the array was associated with the name @code{a}. The -element @code{X} is a Prolog term, so one can bind it and any such -bindings will be undone when backtracking. Note that dynamic arrays do -not have a type: each element may be any Prolog term. - -The @emph{static arrays} are an extension of the database. They provide -a compact way for manipulating data-structures formed by characters, -integers, or floats imperatively. They can also be used to provide -two-way communication between YAP and external programs through -shared memory. - -In order to efficiently manage space elements in a static array must -have a type. Currently, elements of static arrays in YAP should -have one of the following predefined types: - -@itemize @bullet -@item @code{byte}: an 8-bit signed character. -@item @code{unsigned_byte}: an 8-bit unsigned character. -@item @code{int}: Prolog integers. Size would be the natural size for -the machine's architecture. -@item @code{float}: Prolog floating point number. Size would be equivalent -to a double in @code{C}. -@item @code{atom}: a Prolog atom. -@item @code{dbref}: an internal database reference. -@item @code{term}: a generic Prolog term. Note that this will term will -not be stored in the array itself, but instead will be stored in the -Prolog internal database. -@end itemize - -Arrays may be @emph{named} or @emph{anonymous}. Most arrays will be -@emph{named}, that is associated with an atom that will be used to find -the array. Anonymous arrays do not have a name, and they are only of -interest if the @code{TERM_EXTENSIONS} compilation flag is enabled. In -this case, the unification and parser are extended to replace -occurrences of Prolog terms of the form @code{X[I]} by run-time calls to -@code{array_element/3}, so that one can use array references instead of -extra calls to @code{arg/3}. As an example: -@example -g(X,Y,Z,I,J) :- X[I] is Y[J]+Z[I]. -@end example -should give the same results as: -@example -G(X,Y,Z,I,J) :- - array_element(X,I,E1), - array_element(Y,J,E2), - array_element(Z,I,E3), - E1 is E2+E3. -@end example - -Note that the only limitation on array size are the stack size for -dynamic arrays; and, the heap size for static (not memory mapped) -arrays. Memory mapped arrays are limited by available space in the file -system and in the virtual memory space. - -The following predicates manipulate arrays: - -@table @code - -@item array(+@var{Name}, +@var{Size}) -@findex array/2 -@snindex array/2 -@cnindex array/2 -Creates a new dynamic array. The @var{Size} must evaluate to an -integer. The @var{Name} may be either an atom (named array) or an -unbound variable (anonymous array). - -Dynamic arrays work as standard compound terms, hence space for the -array is recovered automatically on backtracking. - -@item static_array(+@var{Name}, +@var{Size}, +@var{Type}) -@findex static_array/3 -@snindex static_array/3 -@cnindex static_array/3 -Create a new static array with name @var{Name}. Note that the @var{Name} -must be an atom (named array). The @var{Size} must evaluate to an -integer. The @var{Type} must be bound to one of types mentioned -previously. - -@item reset_static_array(+@var{Name}) -@findex reset_static_array/1 -@snindex reset_static_array/1 -@cnindex reset_static_array/1 -Reset static array with name @var{Name} to its initial value. - -@item static_array_location(+@var{Name}, -@var{Ptr}) -@findex static_array_location/4 -@snindex static_array_location/4 -@cnindex static_array_location/4 -Give the location for a static array with name -@var{Name}. - -@item static_array_properties(?@var{Name}, ?@var{Size}, ?@var{Type}) -@findex static_array_properties/3 -@snindex static_array_properties/3 -@cnindex static_array_properties/3 -Show the properties size and type of a static array with name -@var{Name}. Can also be used to enumerate all current -static arrays. - -This built-in will silently fail if the there is no static array with -that name. - -@item static_array_to_term(?@var{Name}, ?@var{Term}) -@findex static_array_to_term/3 -@snindex static_array_to_term/3 -@cnindex static_array_to_term/3 -Convert a static array with name -@var{Name} to a compound term of name @var{Name}. - -This built-in will silently fail if the there is no static array with -that name. - -@item mmapped_array(+@var{Name}, +@var{Size}, +@var{Type}, +@var{File}) -@findex mmapped_array/3 -@snindex mmapped_array/3 -@cnindex mmapped_array/3 -Similar to @code{static_array/3}, but the array is memory mapped to file -@var{File}. This means that the array is initialized from the file, and -that any changes to the array will also be stored in the file. - -This built-in is only available in operating systems that support the -system call @code{mmap}. Moreover, mmapped arrays do not store generic -terms (type @code{term}). - -@item close_static_array(+@var{Name}) -@findex close_static_array/1 -@snindex close_static_array/1 -@cnindex close_static_array/1 -Close an existing static array of name @var{Name}. The @var{Name} must -be an atom (named array). Space for the array will be recovered and -further accesses to the array will return an error. - -@item resize_static_array(+@var{Name}, -@var{OldSize}, +@var{NewSize}) -@findex resize_static_array/3 -@snindex resize_static_array/3 -@cnindex resize_static_array/3 -Expand or reduce a static array, The @var{Size} must evaluate to an -integer. The @var{Name} must be an atom (named array). The @var{Type} -must be bound to one of @code{int}, @code{dbref}, @code{float} or -@code{atom}. - -Note that if the array is a mmapped array the size of the mmapped file -will be actually adjusted to correspond to the size of the array. - -@item array_element(+@var{Name}, +@var{Index}, ?@var{Element}) -@findex array_element/3 -@snindex array_element/3 -@cnindex array_element/3 -Unify @var{Element} with @var{Name}[@var{Index}]. It works for both -static and dynamic arrays, but it is read-only for static arrays, while -it can be used to unify with an element of a dynamic array. - -@item update_array(+@var{Name}, +@var{Index}, ?@var{Value}) -@findex update_array/3 -@snindex update_array/3 -@cnindex update_array/3 -Attribute value @var{Value} to @var{Name}[@var{Index}]. Type -restrictions must be respected for static arrays. This operation is -available for dynamic arrays if @code{MULTI_ASSIGNMENT_VARIABLES} is -enabled (true by default). Backtracking undoes @var{update_array/3} for -dynamic arrays, but not for static arrays. - -Note that @code{update_array/3} actually uses @code{setarg/3} to update -elements of dynamic arrays, and @code{setarg/3} spends an extra cell for -every update. For intensive operations we suggest it may be less -expensive to unify each element of the array with a mutable terms and -to use the operations on mutable terms. - -@item add_to_array_element(+@var{Name}, +@var{Index}, , +@var{Number}, ?@var{NewValue}) -@findex add_to_array_element/4 -@snindex add_to_array_element/4 -@cnindex add_to_array_element/4 -Add @var{Number} @var{Name}[@var{Index}] and unify @var{NewValue} with -the incremented value. Observe that @var{Name}[@var{Index}] must be an -number. If @var{Name} is a static array the type of the array must be -@code{int} or @code{float}. If the type of the array is @code{int} you -only may add integers, if it is @code{float} you may add integers or -floats. If @var{Name} corresponds to a dynamic array the array element -must have been previously bound to a number and @code{Number} can be -any kind of number. - -The @code{add_to_array_element/3} built-in actually uses -@code{setarg/3} to update elements of dynamic arrays. For intensive -operations we suggest it may be less expensive to unify each element -of the array with a mutable terms and to use the operations on mutable -terms. - -@end table - -@node Preds, Misc, Arrays, Top -@section Predicate Information - -Built-ins that return information on the current predicates and modules: - -@table @code -@c ......... begin of 'module' documentation ......... -@item current_module(@var{M}) -@findex current_module/1 -@syindex current_module/1 -@cnindex current_module/1 -Succeeds if @var{M} are defined modules. A module is defined as soon as some -predicate defined in the module is loaded, as soon as a goal in the -module is called, or as soon as it becomes the current type-in module. - -@item current_module(@var{M},@var{F}) -@findex current_module/2 -@syindex current_module/2 -@cnindex current_module/2 -Succeeds if @var{M} are current modules associated to the file @var{F}. - -@c .......... end of 'module' documentation .......... -@end table - -@node Misc, , Preds, Top -@section Miscellaneous - -@table @code - -@item statistics/0 -@findex statistics/0 -@saindex statistics/0 -@cyindex statistics/0 -Send to the current user error stream general information on space used and time -spent by the system. -@example -?- statistics. -memory (total) 4784124 bytes - program space 3055616 bytes: 1392224 in use, 1663392 free - 2228132 max - stack space 1531904 bytes: 464 in use, 1531440 free - global stack: 96 in use, 616684 max - local stack: 368 in use, 546208 max - trail stack 196604 bytes: 8 in use, 196596 free - - 0.010 sec. for 5 code, 2 stack, and 1 trail space overflows - 0.130 sec. for 3 garbage collections which collected 421000 bytes - 0.000 sec. for 0 atom garbage collections which collected 0 bytes - 0.880 sec. runtime - 1.020 sec. cputime - 25.055 sec. elapsed time - -@end example -The example shows how much memory the system spends. Memory is divided -into Program Space, Stack Space and Trail. In the example we have 3MB -allocated for program spaces, with less than half being actually -used. YAP also shows the maximum amount of heap space having been used -which was over 2MB. - -The stack space is divided into two stacks which grow against each -other. We are in the top level so very little stack is being used. On -the other hand, the system did use a lot of global and local stack -during the previous execution (we refer the reader to a WAM tutorial in -order to understand what are the global and local stacks). - -YAP also shows information on how many memory overflows and garbage -collections the system executed, and statistics on total execution -time. Cputime includes all running time, runtime excludes garbage -collection and stack overflow time. - -@item statistics(?@var{Param},-@var{Info}) -@findex statistics/2 -@saindex statistics/2 -@cnindex statistics/2 -Gives statistical information on the system parameter given by first -argument: - -@table @code - -@item atoms -@findex atoms (statistics/2 option) -@code{[@var{NumberOfAtoms},@var{SpaceUsedBy Atoms}]} -@* -This gives the total number of atoms @code{NumberOfAtoms} and how much -space they require in bytes, @var{SpaceUsedBy Atoms}. - -@item cputime -@findex cputime (statistics/2 option) -@code{[@var{Time since Boot},@var{Time From Last Call to Cputime}]} -@* -This gives the total cputime in milliseconds spent executing Prolog code, -garbage collection and stack shifts time included. - -@item dynamic_code -@findex dynamic_code (statistics/2 option) -@code{[@var{Clause Size},@var{Index Size},@var{Tree Index Size},@var{Choice Point Instructions Size},@var{Expansion Nodes Size},@var{Index Switch Size}]} -@* -Size of static code in YAP in bytes: @var{Clause Size}, the number of -bytes allocated for clauses, plus -@var{Index Size}, the number of bytes spent in the indexing code. The -indexing code is divided into main tree, @var{Tree Index Size}, -tables that implement choice-point manipulation, @var{Choice xsPoint Instructions Size}, tables that cache clauses for future expansion of the index -tree, @var{Expansion Nodes Size}, and -tables such as hash tables that select according to value, @var{Index Switch Size}. - -@item garbage_collection -@findex garbage_collection (statistics/2 option) -@code{[@var{Number of GCs},@var{Total Global Recovered},@var{Total Time Spent}]} -@* -Number of garbage collections, amount of space recovered in kbytes, and -total time spent doing garbage collection in milliseconds. More detailed -information is available using @code{yap_flag(gc_trace,verbose)}. - -@item global_stack -@findex global_stack (statistics/2 option) -@code{[@var{Global Stack Used},@var{Execution Stack Free}]} -@* -Space in kbytes currently used in the global stack, and space available for -expansion by the local and global stacks. - -@item local_stack -@findex local_stack (statistics/2 option) -@code{[@var{Local Stack Used},@var{Execution Stack Free}]} -@* -Space in kbytes currently used in the local stack, and space available for -expansion by the local and global stacks. - -@item heap -@findex heap (statistics/2 option) -@code{[@var{Heap Used},@var{Heap Free}]} -@* -Total space in kbytes not recoverable -in backtracking. It includes the program code, internal data base, and, -atom symbol table. - -@item program -@findex program (statistics/2 option) -@code{[@var{Program Space Used},@var{Program Space Free}]} -@* -Equivalent to @code{heap}. - -@item runtime -@findex runtime (statistics/2 option) -@code{[@var{Time since Boot},@var{Time From Last Call to Runtime}]} -@* -This gives the total cputime in milliseconds spent executing Prolog -code, not including garbage collections and stack shifts. Note that -until YAP4.1.2 the @code{runtime} statistics would return time spent on -garbage collection and stack shifting. - -@item stack_shifts -@findex stack_shifts (statistics/2 option) -@code{[@var{Number of Heap Shifts},@var{Number of Stack Shifts},@var{Number of Trail Shifts}]} -@* -Number of times YAP had to -expand the heap, the stacks, or the trail. More detailed information is -available using @code{yap_flag(gc_trace,verbose)}. - -@item static_code -@findex static_code (statistics/2 option) -@code{[@var{Clause Size},@var{Index Size},@var{Tree Index Size},@var{Expansion Nodes Size},@var{Index Switch Size}]} -@* -Size of static code in YAP in bytes: @var{Clause Size}, the number of -bytes allocated for clauses, plus -@var{Index Size}, the number of bytes spent in the indexing code. The -indexing code is divided into a main tree, @var{Tree Index Size}, table that cache clauses for future expansion of the index -tree, @var{Expansion Nodes Size}, and and -tables such as hash tables that select according to value, @var{Index Switch Size}. - -@item trail -@findex trail (statistics/2 option) -@code{[@var{Trail Used},@var{Trail Free}]} -@* -Space in kbytes currently being used and still available for the trail. - -@item walltime -@findex walltime (statistics/2 option) -@code{[@var{Time since Boot},@var{Time From Last Call to Walltime}]} -@* -This gives the clock time in milliseconds since starting Prolog. - -@end table - -@item time(:@var{Goal}) -@findex time/1 -@snindex time/1 -@cnindex time/1 -Prints the CPU time and the wall time for the execution of @var{Goal}. -Possible choice-points of @var{Goal} are removed. Based on the SWI-Prolog -definition (minus reporting the number of inferences, which YAP currently -does not support). - -@item yap_flag(?@var{Param},?@var{Value}) -@findex yap_flag/2 -@snindex yap_flag/2 -@cnindex yap_flag/2 -Set or read system properties for @var{Param}: - -@table @code - -@item argv -@findex argv (yap_flag/2 option) -@* Read-only flag. It unifies with a list of atoms that gives the -arguments to YAP after @code{--}. - -@item agc_margin -@findex agc_margin (yap_flag/2 option) -An integer: if this amount of atoms has been created since the last -atom-garbage collection, perform atom garbage collection at the first -opportunity. Initial value is 10,000. May be changed. A value of 0 -(zero) disables atom garbage collection. - -@item associate -@findex associate (yap_flag/2 option) -@* -Read-write flag telling a suffix for files associated to Prolog -sources. It is @code{yap} by default. - -@item bounded [ISO] -@findex bounded (yap_flag/2 option) -@* -Read-only flag telling whether integers are bounded. The value depends -on whether YAP uses the GMP library or not. - -@item profiling -@findex call_counting (yap_flag/2 option) -@* -If @code{off} (default) do not compile call counting information for -procedures. If @code{on} compile predicates so that they calls and -retries to the predicate may be counted. Profiling data can be read through the -@code{call_count_data/3} built-in. - -@item char_conversion [ISO] -@findex char_conversion (yap_flag/2 option) -@* -Writable flag telling whether a character conversion table is used when -reading terms. The default value for this flag is @code{off} except in -@code{sicstus} and @code{iso} language modes, where it is @code{on}. - -@item character_escapes [ISO] -@findex character_escapes (yap_flag/2 option) -@* Writable flag telling whether a character escapes are enables, -@code{true}, or disabled, @code{false}. The default value for this flag is -@code{on}. - -@c You can also use @code{cprolog} mode, which corresponds to @code{off}, -@c @code{iso} mode, which corresponds to @code{on}, and @code{sicstus} -@c mode, which corresponds to the mode traditionally used in SICStus -@c Prolog. In this mode back-quoted escape sequences should not close with -@c a backquote and unrecognized escape codes do not result in error. - -@item debug [ISO] -@findex debug (yap_flag/2 option) -@* -If @var{Value} is unbound, tell whether debugging is @code{true} or -@code{false}. If @var{Value} is bound to @code{true} enable debugging, and if -it is bound to @code{false} disable debugging. - -@item debugger_print_options -@findex debugger_print_options (yap_flag/2 option) -@* -If bound, set the argument to the @code{write_term/3} options the -debugger uses to write terms. If unbound, show the current options. - -@item dialect -@findex dialect (yap_flag/2 option) -@* -Read-only flag that always returns @code{yap}. - -@item discontiguous_warnings -@findex discontiguous_warnings (yap_flag/2 option) -@* -If @var{Value} is unbound, tell whether warnings for discontiguous -predicates are @code{on} or -@code{off}. If @var{Value} is bound to @code{on} enable these warnings, -and if it is bound to @code{off} disable them. The default for YAP is -@code{off}, unless we are in @code{sicstus} or @code{iso} mode. - -@item dollar_as_lower_case -@findex dollar_as_lower_case (yap_flag/2 option) -@* -If @code{off} (default) consider the character '$' a control character, if -@code{on} consider '$' a lower case character. - -@item double_quotes [ISO] -@findex double_quotes (yap_flag/2 option) -@* -If @var{Value} is unbound, tell whether a double quoted list of characters -token is converted to a list of atoms, @code{chars}, to a list of integers, -@code{codes}, or to a single atom, @code{atom}. If @var{Value} is bound, set to -the corresponding behavior. The default value is @code{codes}. - -@item executable -@findex executable (yap_flag/2 option) -@* Read-only flag. It unifies with an atom that gives the -original program path. - -@item fast -@findex fast (yap_flag/2 option) -@* -If @code{on} allow fast machine code, if @code{off} (default) disable it. Only -available in experimental implementations. - -@item fileerrors -@findex fileerrors (yap_flag/2 option) -@* -If @code{on} @code{fileerrors} is @code{on}, if @code{off} (default) -@code{fileerrors} is disabled. - -@item float_format -@findex float_format (yap_flag/2 option) -@* C-library @code{printf()} format specification used by @code{write/1} and -friends to determine how floating point numbers are printed. The -default is @code{%.15g}. The specified value is passed to @code{printf()} -without further checking. For example, if you want less digits -printed, @code{%g} will print all floats using 6 digits instead of the -default 15. - -@item gc -@findex gc (yap_flag/2 option) -@* -If @code{on} allow garbage collection (default), if @code{off} disable it. - -@item gc_margin -@findex gc_margin (yap_flag/2 option) -@* -Set or show the minimum free stack before starting garbage -collection. The default depends on total stack size. - -@item gc_trace -@findex gc_trace (yap_flag/2 option) -@* If @code{off} (default) do not show information on garbage collection -and stack shifts, if @code{on} inform when a garbage collection or stack -shift happened, if @code{verbose} give detailed information on garbage -collection and stack shifts. Last, if @code{very_verbose} give detailed -information on data-structures found during the garbage collection -process, namely, on choice-points. - -@item generate_debugging_info -@findex generate_debugging_info (yap_flag/2 option) -@* If @code{true} (default) generate debugging information for -procedures, including source mode. If @code{false} predicates no -information is generated, although debugging is still possible, and -source mode is disabled. - -@item host_type -@findex host_type (yap_flag/2 option) -@* Return @code{configure} system information, including the machine-id -for which YAP was compiled and Operating System information. - -@item index -@findex index_yap_flag/2 -@* If @code{on} allow indexing (default), if @code{off} disable it, if -@code{single} allow on first argument only. - -@item index_sub_term_search_depth -@findex index_sub_term_yap_flag/2 -@* -Maximum bound on searching sub-terms for indexing, if @code{0} (default) no bound. - -@item informational_messages -@findex informational_messages (yap_flag/2 option) -@* -If @code{on} allow printing of informational messages, such as the ones -that are printed when consulting. If @code{off} disable printing -these messages. It is @code{on} by default except if YAP is booted with -the @code{-L} flag. - -@item integer_rounding_function [ISO] -@findex integer_rounding_function (yap_flag/2 option) -@* -Read-only flag telling the rounding function used for integers. Takes the value -@code{toward_zero} for the current version of YAP. - -@item language -@findex language (yap_flag/2 option) -@* -Choose whether YAP is closer to C-Prolog, @code{cprolog}, iso-prolog, -@code{iso} or SICStus Prolog, @code{sicstus}. The current default is -@code{cprolog}. This flag affects update semantics, leashing mode, -style checking, handling calls to undefined procedures, how directives -are interpreted, when to use dynamic, character escapes, and how files -are consulted. - -@item max_arity [ISO] -@findex max_arity (yap_flag/2 option) -@* -Read-only flag telling the maximum arity of a functor. Takes the value -@code{unbounded} for the current version of YAP. - -@item max_integer [ISO] -@findex max_integer (yap_flag/2 option) -@* -Read-only flag telling the maximum integer in the -implementation. Depends on machine and Operating System -architecture, and on whether YAP uses the @code{GMP} multi-precision -library. If @code{bounded} is false, requests for @code{max_integer} -will fail. - -@item max_tagged_integer -@findex max_tagged_integer (yap_flag/2 option) -@* -Read-only flag telling the maximum integer we can store as a single -word. Depends on machine and Operating System -architecture. It can be used to find the word size of the current machine. - -@item min_integer [ISO] -@findex min_integer (yap_flag/2 option) -@* Read-only flag telling the minimum integer in the -implementation. Depends on machine and Operating System architecture, -and on whether YAP uses the @code{GMP} multi-precision library. If -@code{bounded} is false, requests for @code{min_integer} will fail. - -@item min_tagged_integer -@findex min_tagged_integer (yap_flag/2 option) -@* -Read-only flag telling the minimum integer we can store as a single -word. Depends on machine and Operating System -architecture. - -@item n_of_integer_keys_in_bb -@findex n_of_integer_keys_in_bb (yap_flag/2 option) -@* -Read or set the size of the hash table that is used for looking up the -blackboard when the key is an integer. - -@item occurs_check -@findex occurs_check (yap_flag/2 option) -@* -Current read-only and set to @code{false}. - -@item n_of_integer_keys_in_db -@findex n_of_integer_keys_in_db (yap_flag/2 option) -@* -Read or set the size of the hash table that is used for looking up the -internal data-base when the key is an integer. - -@item open_expands_filename -@findex open_expands_filename (yap_flag/2 option) -@* -If @code{true} the @code{open/3} builtin performs filename-expansion -before opening a file (SICStus Prolog like). If @code{false} it does not -(SWI-Prolog like). - -@item open_shared_object -@findex open_shared_object (yap_flag/2 option) -@* -If true, @code{open_shared_object/2} and friends are implemented, -providing access to shared libraries (@code{.so} files) or to dynamic link -libraries (@code{.DLL} files). - -@item profiling -@findex profiling (yap_flag/2 option) -@* -If @code{off} (default) do not compile profiling information for -procedures. If @code{on} compile predicates so that they will output -profiling information. Profiling data can be read through the -@code{profile_data/3} built-in. - -@item prompt_alternatives_on(atom, changeable) -@findex prompt_alternatives_on (yap_flag/2 option) -SWI-Compatible option, determines prompting for alternatives in the Prolog toplevel. Default is @t{groundness}, YAP prompts for alternatives if and only if the query contains variables. The alternative, default in SWI-Prolog is @t{determinism} which implies the system prompts for alternatives if the goal succeeded while leaving choicepoints. - - -@item redefine_warnings -@findex redefine_warnings (yap_flag/2 option) -@* -If @var{Value} is unbound, tell whether warnings for procedures defined -in several different files are @code{on} or -@code{off}. If @var{Value} is bound to @code{on} enable these warnings, -and if it is bound to @code{off} disable them. The default for YAP is -@code{off}, unless we are in @code{sicstus} or @code{iso} mode. - -@item shared_object_search_path -@findex shared_object_search_path (yap_flag/2 option) -Name of the environment variable used by the system to search for shared -objects. - -@item shared_object_extension -@findex shared_object_extension (yap_flag/2 option) -Suffix associated with loadable code. - -@item single_var_warnings -@findex single_var_warnings (yap_flag/2 option) -@* -If @var{Value} is unbound, tell whether warnings for singleton variables -are @code{on} or @code{off}. If @var{Value} is bound to @code{on} enable -these warnings, and if it is bound to @code{off} disable them. The -default for YAP is @code{off}, unless we are in @code{sicstus} or -@code{iso} mode. - -@item strict_iso -@findex strict_iso (yap_flag/2 option) -@* - If @var{Value} is unbound, tell whether strict ISO compatibility mode -is @code{on} or @code{off}. If @var{Value} is bound to @code{on} set -language mode to @code{iso} and enable strict mode. If @var{Value} is -bound to @code{off} disable strict mode, and keep the current language -mode. The default for YAP is @code{off}. - -Under strict ISO Prolog mode all calls to non-ISO built-ins generate an -error. Compilation of clauses that would call non-ISO built-ins will -also generate errors. Pre-processing for grammar rules is also -disabled. Module expansion is still performed. - -Arguably, ISO Prolog does not provide all the functionality required -from a modern Prolog system. Moreover, because most Prolog -implementations do not fully implement the standard and because the -standard itself gives the implementor latitude in a few important -questions, such as the unification algorithm and maximum size for -numbers there is no guarantee that programs compliant with this mode -will work the same way in every Prolog and in every platform. We thus -believe this mode is mostly useful when investigating how a program -depends on a Prolog's platform specific features. - -@item stack_dump_on_error -@findex stack_dump_on_error (yap_flag/2 option) -@* -If @code{on} show a stack dump when YAP finds an error. The default is -@code{off}. - -@item syntax_errors -@findex syntax_errors (yap_flag/2 option) -@* -Control action to be taken after syntax errors while executing @code{read/1}, -@code{read/2}, or @code{read_term/3}: -@table @code - -@item dec10 -@* -Report the syntax error and retry reading the term. - -@item fail -@* -Report the syntax error and fail (default). - -@item error -@* -Report the syntax error and generate an error. - -@item quiet -@* -Just fail -@end table - -@item system_options -@findex system_options (yap_flag/2 option) -@* This read only flag tells which options were used to compile -YAP. Currently it informs whether the system supports @code{big_numbers}, -@code{coroutining}, @code{depth_limit}, @code{low_level_tracer}, -@code{or-parallelism}, @code{rational_trees}, @code{readline}, @code{tabling}, -@code{threads}, or the @code{wam_profiler}. - -@item tabling_mode -@* Sets or reads the tabling mode for all tabled predicates. Please -@pxref{Tabling} for the list of options. - -@item to_chars_mode -@findex to_chars_modes (yap_flag/2 option) -@* Define whether YAP should follow @code{quintus}-like -semantics for the @code{atom_chars/1} or @code{number_chars/1} built-in, -or whether it should follow the ISO standard (@code{iso} option). - -@item toplevel_hook -@findex toplevel_hook (yap_flag/2 option) -@* -+If bound, set the argument to a goal to be executed before entering the -top-level. If unbound show the current goal or @code{true} if none is -presented. Only the first solution is considered and the goal is not -backtracked into. - -@item toplevel_print_options -@findex toplevel_print_options (yap_flag/2 option) -@* -+If bound, set the argument to the @code{write_term/3} options used to write -terms from the top-level. If unbound, show the current options. - -@item typein_module -@findex typein_module (yap_flag/2 option) -@* -If bound, set the current working or type-in module to the argument, -which must be an atom. If unbound, unify the argument with the current -working module. - -@item unix -@findex unix (yap_flag/2 option) -@* Read-only Boolean flag that unifies with @code{true} if YAP is -running on an Unix system. Defined if the C-compiler used to compile -this version of YAP either defines @code{__unix__} or @code{unix}. - -@item unknown [ISO] -@findex unknown (yap_flag/2 option) -@* -Corresponds to calling the @code{unknown/2} built-in. Possible values -are @code{error}, @code{fail}, and @code{warning}. - -@item update_semantics -@findex update_semantics (yap_flag/2 option) -@* -Define whether YAP should follow @code{immediate} update -semantics, as in C-Prolog (default), @code{logical} update semantics, -as in Quintus Prolog, SICStus Prolog, or in the ISO standard. There is -also an intermediate mode, @code{logical_assert}, where dynamic -procedures follow logical semantics but the internal data base still -follows immediate semantics. - -@item user_error -@findex user_error (yap_flag/2 option) -@* -If the second argument is bound to a stream, set @code{user_error} to -this stream. If the second argument is unbound, unify the argument with -the current @code{user_error} stream. - -By default, the @code{user_error} stream is set to a stream -corresponding to the Unix @code{stderr} stream. - -The next example shows how to use this flag: -@example - ?- open( '/dev/null', append, Error, - [alias(mauri_tripa)] ). - -Error = '$stream'(3) ? ; - -no - ?- set_prolog_flag(user_error, mauri_tripa). - -close(mauri_tripa). - -yes - ?- -@end example -We execute three commands. First, we open a stream in write mode and -give it an alias, in this case @code{mauri_tripa}. Next, we set -@code{user_error} to the stream via the alias. Note that after we did so -prompts from the system were redirected to the stream -@code{mauri_tripa}. Last, we close the stream. At this point, YAP -automatically redirects the @code{user_error} alias to the original -@code{stderr}. - -@item user_flags -@findex user_flags (yap_flag/2 option) -@* -Define the behaviour of @code{set_prolog_flag/2} if the flag is not known. Values are @code{silent}, @code{warning} and @code{error}. The first two create the flag on-the-fly, with @code{warning} printing a message. The value @code{error} is consistent with ISO: it raises an existence error and does not create the flag. See also @code{create_prolog_flag/3}. The default is@code{error}, and developers are encouraged to use @code{create_prolog_flag/3} to create flags for their library. - -@item user_input -@findex user_input (yap_flag/2 option) -@* -If the second argument is bound to a stream, set @code{user_input} to -this stream. If the second argument is unbound, unify the argument with -the current @code{user_input} stream. - -By default, the @code{user_input} stream is set to a stream -corresponding to the Unix @code{stdin} stream. - -@item user_output -@findex user_output (yap_flag/2 option) -@* -If the second argument is bound to a stream, set @code{user_output} to -this stream. If the second argument is unbound, unify the argument with -the current @code{user_output} stream. - -By default, the @code{user_output} stream is set to a stream -corresponding to the Unix @code{stdout} stream. - -@item verbose -@findex verbose (yap_flag/2 option) -@* -If @code{normal} allow printing of informational and banner messages, -such as the ones that are printed when consulting. If @code{silent} -disable printing these messages. It is @code{normal} by default except if -YAP is booted with the @code{-q} or @code{-L} flag. - -@item verbose_load -@findex verbose_load (yap_flag/2 option) -@* If @code{true} allow printing of informational messages when -consulting files. If @code{false} disable printing these messages. It -is @code{normal} by default except if YAP is booted with the @code{-L} -flag. - -@item version -@findex version (yap_flag/2 option) -@* Read-only flag that returns an atom with the current version of -YAP. - -@item version_data -@findex version_data (yap_flag/2 option) -@* Read-only flag that reads a term of the form -@code{yap}(@var{Major},@var{Minor},@var{Patch},@var{Undefined}), where -@var{Major} is the major version, @var{Minor} is the minor version, -and @var{Patch} is the patch number. - -@item windows -@findex windoes (yap_flag/2 option) -@* -Read-only boolean flag that unifies with tr @code{true} if YAP is -running on an Windows machine. - -@item write_strings -@findex write_strings (yap_flag/2 option) -@* Writable flag telling whether the system should write lists of -integers that are writable character codes using the list notation. It -is @code{on} if enables or @code{off} if disabled. The default value for -this flag is @code{off}. - -@item max_workers -@findex max_workers (yap_flag/2 option) -@* Read-only flag telling the maximum number of parallel processes. - -@item max_threads -@findex max_threads (yap_flag/2 option) -@* Read-only flag telling the maximum number of Prolog threads that can -be created. - -@end table - -@item current_prolog_flag(?@var{Flag},-@var{Value}) [ISO] -@findex current_prolog_flag/2 -@snindex current_prolog_flag/2 -@cnindex current_prolog_flag/2 - -Obtain the value for a YAP Prolog flag. Equivalent to calling -@code{yap_flag/2} with the second argument unbound, and unifying the -returned second argument with @var{Value}. - -@item prolog_flag(?@var{Flag},-@var{OldValue},+@var{NewValue}) -@findex prolog_flag/3 -@syindex prolog_flag/3 -@cnindex prolog_flag/3 - -Obtain the value for a YAP Prolog flag and then set it to a new -value. Equivalent to first calling @code{current_prolog_flag/2} with the -second argument @var{OldValue} unbound and then calling -@code{set_prolog_flag/2} with the third argument @var{NewValue}. - -@item set_prolog_flag(+@var{Flag},+@var{Value}) [ISO] -@findex set_prolog_flag/2 -@snindex set_prolog_flag/2 -@cnindex set_prolog_flag/2 - -Set the value for YAP Prolog flag @code{Flag}. Equivalent to -calling @code{yap_flag/2} with both arguments bound. - - -@item create_prolog_flag(+@var{Flag},+@var{Value},+@var{Options}) -@findex create_prolog_flag/2 -@snindex create_prolog_flag/2 -@cnindex create_prolog_flag/2 - -Create a new YAP Prolog flag. @var{Options} include @code{type(+Type)} and @code{access(+Access)} with @var{Access} -one of @code{read_only} or @code{read_write} and @var{Type} one of @code{boolean}, @code{integer}, @code{float}, @code{atom} -and @code{term} (that is, no type). - -@item op(+@var{P},+@var{T},+@var{A}) [ISO] -@findex op/3 -@syindex op/3 -@cyindex op/3 -Defines the operator @var{A} or the list of operators @var{A} with type -@var{T} (which must be one of @code{xfx}, @code{xfy},@code{yfx}, -@code{xf}, @code{yf}, @code{fx} or @code{fy}) and precedence @var{P} -(see appendix iv for a list of predefined operators). - -Note that if there is a preexisting operator with the same name and -type, this operator will be discarded. Also, @code{','} may not be defined -as an operator, and it is not allowed to have the same for an infix and -a postfix operator. - -@item current_op(@var{P},@var{T},@var{F}) [ISO] -@findex current_op/3 -@syindex current_op/3 -@cnindex current_op/3 -Defines the relation: @var{P} is a currently defined operator of type -@var{T} and precedence @var{P}. - -@item prompt(-@var{A},+@var{B}) -@findex prompt/2 -@syindex prompt/2 -@cyindex prompt/2 -Changes YAP input prompt from @var{A} to @var{B}. - -@item initialization -@findex initialization/0 -@syindex initialization/0 -@cnindex initialization/0 -Execute the goals defined by initialization/1. Only the first answer is -considered. - -@item prolog_initialization(@var{G}) -@findex prolog_initialization/1 -@saindex prolog_initialization/1 -@cnindex prolog_initialization/1 -Add a goal to be executed on system initialization. This is compatible -with SICStus Prolog's @code{initialization/1}. - -@item version -@findex version/0 -@saindex version/0 -@cnindex version/0 -Write YAP's boot message. - -@item version(-@var{Message}) -@findex version/1 -@syindex version/1 -@cnindex version/1 -Add a message to be written when yap boots or after aborting. It is not -possible to remove messages. - -@item prolog_load_context(?@var{Key}, ?@var{Value}) -@findex prolog_load_context/2 -@syindex prolog_load_context/2 -@cnindex prolog_load_context/2 -Obtain information on what is going on in the compilation process. The -following keys are available: - -@table @code - -@item directory -@findex directory_prolog_load_context/2 option -@* -Full name for the directory where YAP is currently consulting the -file. - -@item file -@findex file_prolog_load_context/2 option -@* -Full name for the file currently being consulted. Notice that included -filed are ignored. - -@item module -@findex module_prolog_load_context/2 option -@* -Current source module. - -@item source (prolog_load_context/2 option) -@findex source_prolog_load_context/2 option -@* -Full name for the file currently being read in, which may be consulted, -reconsulted, or included. - -@item stream -@findex stream_prolog_load_context/2 option -@* -Stream currently being read in. - -@item term_position -@findex term_position_prolog_load_context/2 option -@* -Stream position at the stream currently being read in. For SWI -compatibility, it is a term of the form -@code{'$stream_position'(0,Line,0,0,0)}. -@end table - -@item source_location(?@var{FileName}, ?@var{Line}) -@findex source_location/2 -@syindex source_location/2 -@cnindex source_location/2 -SWI-compatible predicate. If the last term has been read from a physical file (i.e., not from the file user or a string), unify File with an absolute path to the file and Line with the line-number in the file. Please use @code{prolog_load_context/2}. - -@item source_file(?@var{File}) -@findex source_file/1 -@syindex source_file/1 -@cnindex source_file/1 -SWI-compatible predicate. True if @var{File} is a loaded Prolog source file. - -@item source_file(?@var{ModuleAndPred},?@var{File}) -@findex source_file/2 -@syindex source_file/2 -@cnindex source_file/2 -SWI-compatible predicate. True if the predicate specified by @var{ModuleAndPred} was loaded from file @var{File}, where @var{File} is an absolute path name (see @code{absolute_file_name/2}). - - - -@end table - diff --git a/docs/chr.md b/docs/chr.md deleted file mode 100644 index 4255d7f1e..000000000 --- a/docs/chr.md +++ /dev/null @@ -1,527 +0,0 @@ -CHR: Constraint Handling Rules {#chr} -============================== - -This chapter is written by Tom Schrijvers, K.U. Leuven for the hProlog -system. Adjusted by Jan Wielemaker to fit the SWI-Prolog documentation -infrastructure and remove hProlog specific references. - -The CHR system of SWI-Prolog is the K.U.Leuven CHR system. The runtime -environment is written by Christian Holzbaur and Tom Schrijvers while the -compiler is written by Tom Schrijvers. Both are integrated with SWI-Prolog -and licenced under compatible conditions with permission from the authors. - -The main reference for SWI-Prolog's CHR system is: - -+ T. Schrijvers, and B. Demoen, The K.U.Leuven CHR System: Implementation and Application, First Workshop on Constraint Handling Rules: Selected -Contributions (Fruwirth, T. and Meister, M., eds.), pp. 1--5, 2004. - -# Introduction - -Constraint Handling Rules (CHR) is a committed-choice bottom-up language -embedded in Prolog. It is designed for writing constraint solvers and is -particularily useful for providing application-specific constraints. -It has been used in many kinds of applications, like scheduling, -model checking, abduction, type checking among many others. - -CHR has previously been implemented in other Prolog systems (SICStus, -Eclipse, Yap), Haskell and Java. This CHR system is based on the -compilation scheme and runtime environment of CHR in SICStus. - -In this documentation we restrict ourselves to giving a short overview -of CHR in general and mainly focus on elements specific to this -implementation. For a more thorough review of CHR we refer the reader to -[Freuhwirth:98]. More background on CHR can be found at the CHR web site. - -### Syntax and Semantics - -We present informally the syntax and semantics of CHR. - - -#### CHR Syntax - -The syntax of CHR rules in hProlog is the following: - -~~~~~ -rules --> rule, rules. -rules --> []. - -rule --> name, actual_rule, pragma, [atom(`.`)]. - -name --> atom, [atom(`@`)]. -name --> []. - -actual_rule --> simplification_rule. -actual_rule --> propagation_rule. -actual_rule --> simpagation_rule. - -simplification_rule --> constraints, [atom(`<=>`)], guard, body. -propagation_rule --> constraints, [atom(`==>`)], guard, body. -simpagation_rule --> constraints, [atom(`\`)], constraints, [atom(`<=>`)], - guard, body. - -constraints --> constraint, constraint_id. -constraints --> constraint, [atom(`,`)], constraints. - -constraint --> compound_term. - -constraint_id --> []. -constraint_id --> [atom(`#`)], variable. - -guard --> []. -guard --> goal, [atom(`|`)]. - -body --> goal. - -pragma --> []. -pragma --> [atom(`pragma`)], actual_pragmas. - -actual_pragmas --> actual_pragma. -actual_pragmas --> actual_pragma, [atom(`,`)], actual_pragmas. - -actual_pragma --> [atom(`passive(`)], variable, [atom(`)`)]. - -~~~~~ - -Additional syntax-related terminology: - -+ *head:* the constraints in an `actual_rule` before -the arrow (either `<=>` or `==>`) - - -#### Semantics Semantics - -In this subsection the operational semantics of CHR in Prolog are presented -informally. They do not differ essentially from other CHR systems. - -When a constraint is called, it is considered an active constraint and -the system will try to apply the rules to it. Rules are tried and executed -sequentially in the order they are written. - -A rule is conceptually tried for an active constraint in the following -way. The active constraint is matched with a constraint in the head of -the rule. If more constraints appear in the head they are looked for -among the suspended constraints, which are called passive constraints in -this context. If the necessary passive constraints can be found and all -match with the head of the rule and the guard of the rule succeeds, then -the rule is committed and the body of the rule executed. If not all the -necessary passive constraint can be found, the matching fails or the -guard fails, then the body is not executed and the process of trying and -executing simply continues with the following rules. If for a rule, -there are multiple constraints in the head, the active constraint will -try the rule sequentially multiple times, each time trying to match with -another constraint. - -This process ends either when the active constraint disappears, i.e. it -is removed by some rule, or after the last rule has been processed. In -the latter case the active constraint becomes suspended. - -A suspended constraint is eligible as a passive constraint for an active -constraint. The other way it may interact again with the rules, is when -a variable appearing in the constraint becomes bound to either a nonvariable -or another variable involved in one or more constraints. In that case the -constraint is triggered, i.e. it becomes an active constraint and all -the rules are tried. - -### Rules - -There are three different kinds of rules, each with their specific semantics: - -+ simplification -The simplification rule removes the constraints in its head and calls its body. - -+ propagation -The propagation rule calls its body exactly once for the constraints in -its head. - -+ simpagation -The simpagation rule removes the constraints in its head after the -`\` and then calls its body. It is an optimization of -simplification rules of the form: \[constraints_1, constraints_2 <=> -constraints_1, body \] Namely, in the simpagation form: - -~~~~~ -constraints1 \ constraints2 <=> body -~~~~~ - _constraints1_ -constraints are not called in the body. - - - -#### Rule Names - -Naming a rule is optional and has no semantical meaning. It only functions -as documentation for the programmer. - -### Pragmas - -The semantics of the pragmas are: - -+ passive(Identifier) -The constraint in the head of a rule _Identifier_ can only act as a -passive constraint in that rule. - - -Additional pragmas may be released in the future. - -### CHR_Options Options - -It is possible to specify options that apply to all the CHR rules in the module. -Options are specified with the `option/2` declaration: - -~~~~~ - option(Option,Value). -~~~~~ - -Available options are: - -+ check_guard_bindings -This option controls whether guards should be checked for illegal -variable bindings or not. Possible values for this option are -`on`, to enable the checks, and `off`, to disable the -checks. - -+ optimize -This is an experimental option controlling the degree of optimization. -Possible values are `full`, to enable all available -optimizations, and `off` (default), to disable all optimizations. -The default is derived from the SWI-Prolog flag `optimise`, where -`true` is mapped to `full`. Therefore the commandline -option `-O` provides full CHR optimization. -If optimization is enabled, debugging should be disabled. - -+ debug -This options enables or disables the possibility to debug the CHR code. -Possible values are `on` (default) and `off`. See -`debugging` for more details on debugging. The default is -derived from the prolog flag `generate_debug_info`, which -is `true` by default. See `-nodebug`. -If debugging is enabled, optimization should be disabled. - -+ mode -This option specifies the mode for a particular constraint. The -value is a term with functor and arity equal to that of a constraint. -The arguments can be one of `-`, `+` or `?`. -The latter is the default. The meaning is the following: - -+ - -The corresponding argument of every occurrence -of the constraint is always unbound. -+ + -The corresponding argument of every occurrence -of the constraint is always ground. -+ ? -The corresponding argument of every occurrence -of the constraint can have any instantiation, which may change -over time. This is the default value. - -The declaration is used by the compiler for various optimizations. -Note that it is up to the user the ensure that the mode declaration -is correct with respect to the use of the constraint. -This option may occur once for each constraint. - -+ type_declaration -This option specifies the argument types for a particular constraint. The -value is a term with functor and arity equal to that of a constraint. -The arguments can be a user-defined type or one of -the built-in types: - -+ int -The corresponding argument of every occurrence -of the constraint is an integer number. -+ float -...{} a floating point number. -+ number -...{} a number. -+ natural -...{} a positive integer. -+ any -The corresponding argument of every occurrence -of the constraint can have any type. This is the default value. - - -Currently, type declarations are only used to improve certain -optimizations (guard simplification, occurrence subsumption, ...{}). - -+ type_definition -This option defines a new user-defined type which can be used in -type declarations. The value is a term of the form -`type(` _name_`,` _list_`)`, where - _name_ is a term and _list_ is a list of alternatives. -Variables can be used to define generic types. Recursive definitions -are allowed. Examples are - -~~~~~ -type(bool,[true,false]). -type(complex_number,[float + float * i]). -type(binary_tree(T),[ leaf(T) | node(binary_tree(T),binary_tree(T)) ]). -type(list(T),[ [] | [T | list(T)]). -~~~~~ - - - -The mode, type_declaration and type_definition options are provided -for backward compatibility. The new syntax is described below. - - - -### CHR in Prolog Programs - - -The CHR constraints defined in a particulary chr file are -associated with a module. The default module is `user`. One should -never load different chr files with the same CHR module name. - - - -#### Constraint Declarations - - -Every constraint used in CHR rules has to be declared. -There are two ways to do this. The old style is as follows: - -~~~~~ -option(type_definition,type(list(T),[ [] , [T|list(T)] ]). -option(mode,foo(+,?)). -option(type_declaration,foo(list(int),float)). -:- constraints foo/2, bar/0. -~~~~~ - -The new style is as follows: - -~~~~~ -:- chr_type list(T) ---> [] ; [T|list(T)]. -:- constraints foo(+list(int),?float), bar. -~~~~~ - - - -#### Compilation - -The - SWI-Prolog CHR compiler exploits term_expansion/2 rules to translate -the constraint handling rules to plain Prolog. These rules are loaded -from the library chr. They are activated if the compiled file -has the chr extension or after finding a declaration of the -format below. - -~~~~~ -:- constraints ... -~~~~~ - -It is adviced to define CHR rules in a module file, where the module -declaration is immediately followed by including the chr -library as examplified below: - -~~~~~ -:- module(zebra, [ zebra/0 ]). -:- use_module(library(chr)). - -:- constraints ... -~~~~~ - -Using this style CHR rules can be defined in ordinary Prolog -pl files and the operator definitions required by CHR do not -leak into modules where they might cause conflicts. - - - - - -#### CHR Debugging - -The CHR debugging facilities are currently rather limited. Only tracing -is currently available. To use the CHR debugging facilities for a CHR -file it must be compiled for debugging. Generating debug info is -controlled by the CHR option debug, whose default is derived -from the SWI-Prolog flag `generate_debug_info`. Therefore debug -info is provided unless the `-nodebug` is used. - -#### Ports - -For CHR constraints the four standard ports are defined: - -+ call -A new constraint is called and becomes active. -+ exit -An active constraint exits: it has either been inserted in the store after -trying all rules or has been removed from the constraint store. -+ fail -An active constraint fails. -+ redo -An active constraint starts looking for an alternative solution. - - -In addition to the above ports, CHR constraints have five additional -ports: - -+ wake -A suspended constraint is woken and becomes active. -+ insert -An active constraint has tried all rules and is suspended in -the constraint store. -+ remove -An active or passive constraint is removed from the constraint -store, if it had been inserted. -+ try -An active constraints tries a rule with possibly -some passive constraints. The try port is entered -just before committing to the rule. -+ apply -An active constraints commits to a rule with possibly -some passive constraints. The apply port is entered -just after committing to the rule. - -#### Tracing - -Tracing is enabled with the chr_trace/0 predicate -and disabled with the chr_notrace/0 predicate. - -When enabled the tracer will step through the `call`, -`exit`, `fail`, `wake` and `apply` ports, -accepting debug commands, and simply write out the other ports. - -The following debug commans are currently supported: - -~~~~~ - CHR debug options: - - creep c creep - s skip - g ancestors - n nodebug - b break - a abort - f fail - ? help h help -~~~~~ - -Their meaning is: - -+ creep -Step to the next port. -+ skip -Skip to exit port of this call or wake port. -+ ancestors -Print list of ancestor call and wake ports. -+ nodebug -Disable the tracer. -+ break -Enter a recursive Prolog toplevel. See break/0. -+ abort -Exit to the toplevel. See abort/0. -+ fail -Insert failure in execution. -+ help -Print the above available debug options. - - -#### CHR Debugging Predicates - - -The chr module contains several predicates that allow -inspecting and printing the content of the constraint store. - -+ chr_trace -Activate the CHR tracer. By default the CHR tracer is activated and -deactivated automatically by the Prolog predicates trace/0 and -notrace/0. - -### CHR_Examples Examples - -Here are two example constraint solvers written in CHR. - -+ -The program below defines a solver with one constraint, -`leq/2`, which is a less-than-or-equal constraint. - -~~~~~ -:- module(leq,[cycle/3, leq/2]). -:- use_module(library(chr)). - -:- constraints leq/2. -reflexivity @ leq(X,X) <=> true. -antisymmetry @ leq(X,Y), leq(Y,X) <=> X = Y. -idempotence @ leq(X,Y) \ leq(X,Y) <=> true. -transitivity @ leq(X,Y), leq(Y,Z) ==> leq(X,Z). - -cycle(X,Y,Z):- - leq(X,Y), - leq(Y,Z), - leq(Z,X). -~~~~~ - -+ -The program below implements a simple finite domain -constraint solver. - -~~~~~ -:- module(dom,[dom/2]). -:- use_module(library(chr)). - -:- constraints dom/2. - -dom(X,[]) <=> fail. -dom(X,[Y]) <=> X = Y. -dom(X,L1), dom(X,L2) <=> intersection(L1,L2,L3), dom(X,L3). - -intersection([],_,[]). -intersection([H|T],L2,[H|L3]) :- - member(H,L2), !, - intersection(T,L2,L3). -intersection([_|T],L2,L3) :- - intersection(T,L2,L3). -~~~~~ - - - -### Compatibility with SICStus CHR - - -There are small differences between CHR in SWI-Prolog and newer -YAPs and SICStus and older versions of YAP. Besides differences in -available options and pragmas, the following differences should be -noted: - -+ [The handler/1 declaration] -In SICStus every CHR module requires a `handler/1` -declaration declaring a unique handler name. This declaration is valid -syntax in SWI-Prolog, but will have no effect. A warning will be given -during compilation. - -+ [The rules/1 declaration] -In SICStus, for every CHR module it is possible to only enable a subset -of the available rules through the `rules/1` declaration. The -declaration is valid syntax in SWI-Prolog, but has no effect. A -warning is given during compilation. - -+ [Sourcefile naming] -SICStus uses a two-step compiler, where chr files are -first translated into pl files. For SWI-Prolog CHR -rules may be defined in a file with any extension. - -### Guidelines - -In this section we cover several guidelines on how to use CHR to write -constraint solvers and how to do so efficiently. - -+ [Set semantics] -The CHR system allows the presence of identical constraints, i.e. -multiple constraints with the same functor, arity and arguments. For -most constraint solvers, this is not desirable: it affects efficiency -and possibly termination. Hence appropriate simpagation rules should be -added of the form: - -~~~~~ -{constraint \ constraint <=> true}. -~~~~~ - -+ [Multi-headed rules] -Multi-headed rules are executed more efficiently when the constraints -share one or more variables. - -+ [Mode and type declarations] -Provide mode and type declarations to get more efficient program execution. -Make sure to disable debug (`-nodebug`) and enable optimization -(`-O`). - - diff --git a/docs/chr.tex b/docs/chr.tex deleted file mode 100644 index ff009f3dc..000000000 --- a/docs/chr.tex +++ /dev/null @@ -1,596 +0,0 @@ -@chapter CHR: Constraint Handling Rules -@c \label{sec:chr} - -This chapter is written by Tom Schrijvers, K.U. Leuven for the hProlog -system. Adjusted by Jan Wielemaker to fit the SWI-Prolog documentation -infrastructure and remove hProlog specific references. - -The CHR system of SWI-Prolog is the K.U.Leuven CHR system. The runtime -environment is written by Christian Holzbaur and Tom Schrijvers while the -compiler is written by Tom Schrijvers. Both are integrated with SWI-Prolog -and licenced under compatible conditions with permission from the authors. - -The main reference for SWI-Prolog's CHR system is: -@itemize -@item T. Schrijvers, and B. Demoen, @emph{The K.U.Leuven CHR System: Implementation and Application}, First Workshop on Constraint Handling Rules: Selected -Contributions (Fruwirth, T. and Meister, M., eds.), pp. 1--5, 2004. -@end itemize - -@node CHR Introduction, CHR Syntax and Semantics, , CHR -@section Introduction -@c ===================== - -Constraint Handling Rules (CHR) is a committed-choice bottom-up language -embedded in Prolog. It is designed for writing constraint solvers and is -particularily useful for providing application-specific constraints. -It has been used in many kinds of applications, like scheduling, -model checking, abduction, type checking among many others. - -CHR has previously been implemented in other Prolog systems (SICStus, -Eclipse, Yap), Haskell and Java. This CHR system is based on the -compilation scheme and runtime environment of CHR in SICStus. - -In this documentation we restrict ourselves to giving a short overview -of CHR in general and mainly focus on elements specific to this -implementation. For a more thorough review of CHR we refer the reader to -[Freuhwirth:98]. More background on CHR can be found at the CHR web site. - -@c \secref{SyntaxAndSemantics} we present the syntax of CHR in Prolog and -@c explain informally its operational semantics. Next, \secref{practical} -@c deals with practical issues of writing and compiling hProlog programs -@c containing CHR. \Secref{debugging} explains the currently primitive CHR -@c debugging facilities. \Secref{predicates} provides a few useful predicates -@c to inspect the constraint store and \secref{examples} illustrates CHR with -@c two example programs. In \secref{sicstus-chr} some compatibility issues with -@c SICStus CHR are listed. Finally, \secref{guidelines} concludes with a few -@c practical guidelines for using CHR. - - -@node CHR Syntax and Semantics, CHR in YAP Programs, CHR Introduction, CHR -@section Syntax and Semantics -@c \label{sec:SyntaxAndSemantics} -@c ============================= - -@subsection CHR Syntax -@c ----------------- - -The syntax of CHR rules in hProlog is the following: - -@example -rules --> rule, rules. -rules --> []. - -rule --> name, actual_rule, pragma, [atom('.')]. - -name --> atom, [atom('@')]. -name --> []. - -actual_rule --> simplification_rule. -actual_rule --> propagation_rule. -actual_rule --> simpagation_rule. - -simplification_rule --> constraints, [atom('<=>')], guard, body. -propagation_rule --> constraints, [atom('==>')], guard, body. -simpagation_rule --> constraints, [atom('\')], constraints, [atom('<=>')], - guard, body. - -constraints --> constraint, constraint_id. -constraints --> constraint, [atom(',')], constraints. - -constraint --> compound_term. - -constraint_id --> []. -constraint_id --> [atom('#')], variable. - -guard --> []. -guard --> goal, [atom('|')]. - -body --> goal. - -pragma --> []. -pragma --> [atom('pragma')], actual_pragmas. - -actual_pragmas --> actual_pragma. -actual_pragmas --> actual_pragma, [atom(',')], actual_pragmas. - -actual_pragma --> [atom('passive(')], variable, [atom(')')]. - -@end example - -Additional syntax-related terminology: - -@itemize -@item @strong{head:} the constraints in an @code{actual_rule} before - the arrow (either @code{<=>} or @code{==>}) -@end itemize - -@subsection Semantics -@c -------------------- - -In this subsection the operational semantics of CHR in Prolog are presented -informally. They do not differ essentially from other CHR systems. - -When a constraint is called, it is considered an active constraint and -the system will try to apply the rules to it. Rules are tried and executed -sequentially in the order they are written. - -A rule is conceptually tried for an active constraint in the following -way. The active constraint is matched with a constraint in the head of -the rule. If more constraints appear in the head they are looked for -among the suspended constraints, which are called passive constraints in -this context. If the necessary passive constraints can be found and all -match with the head of the rule and the guard of the rule succeeds, then -the rule is committed and the body of the rule executed. If not all the -necessary passive constraint can be found, the matching fails or the -guard fails, then the body is not executed and the process of trying and -executing simply continues with the following rules. If for a rule, -there are multiple constraints in the head, the active constraint will -try the rule sequentially multiple times, each time trying to match with -another constraint. - -This process ends either when the active constraint disappears, i.e. it -is removed by some rule, or after the last rule has been processed. In -the latter case the active constraint becomes suspended. - -A suspended constraint is eligible as a passive constraint for an active -constraint. The other way it may interact again with the rules, is when -a variable appearing in the constraint becomes bound to either a nonvariable -or another variable involved in one or more constraints. In that case the -constraint is triggered, i.e. it becomes an active constraint and all -the rules are tried. - -@unnumberedsubsubsec Rule Types -@c - - - - - - - - - - - -There are three different kinds of rules, each with their specific semantics: - -@table @code -@item simplification -The simplification rule removes the constraints in its head and calls its body. - -@item propagation -The propagation rule calls its body exactly once for the constraints in -its head. - -@item simpagation -The simpagation rule removes the constraints in its head after the -@code{\} and then calls its body. It is an optimization of -simplification rules of the form: \[constraints_1, constraints_2 <=> -constraints_1, body \] Namely, in the simpagation form: - -@example -constraints1 \ constraints2 <=> body -@end example -@noindent -@var{constraints1} -constraints are not called in the body. -@end table - -@unnumberedsubsubsec Rule Names -@c - - - - - - - - - - -Naming a rule is optional and has no semantical meaning. It only functions -as documentation for the programmer. - -@unnumberedsubsubsec Pragmas -@c - - - - - - - - - -The semantics of the pragmas are: - -@table @option -@item passive(Identifier) -The constraint in the head of a rule @var{Identifier} can only act as a -passive constraint in that rule. -@end table - -Additional pragmas may be released in the future. - -@unnumberedsubsubsec Options -@c - - - - - - - - - -It is possible to specify options that apply to all the CHR rules in the module. -Options are specified with the @code{option/2} declaration: - -@example - option(Option,Value). -@end example - -Available options are: -@table @code - @item check_guard_bindings -This option controls whether guards should be checked for illegal -variable bindings or not. Possible values for this option are -@code{on}, to enable the checks, and @code{off}, to disable the -checks. - - @item optimize -This is an experimental option controlling the degree of optimization. -Possible values are @code{full}, to enable all available -optimizations, and @code{off} (default), to disable all optimizations. -The default is derived from the SWI-Prolog flag @code{optimise}, where -@code{true} is mapped to @code{full}. Therefore the commandline -option @option{-O} provides full CHR optimization. -If optimization is enabled, debugging should be disabled. - - @item debug -This options enables or disables the possibility to debug the CHR code. -Possible values are @code{on} (default) and @code{off}. See -@option{debugging} for more details on debugging. The default is -derived from the prolog flag @code{generate_debug_info}, which -is @code{true} by default. See @option{-nodebug}. -If debugging is enabled, optimization should be disabled. - - @item mode -This option specifies the mode for a particular constraint. The -value is a term with functor and arity equal to that of a constraint. -The arguments can be one of @code{-}, @code{+} or @code{?}. -The latter is the default. The meaning is the following: - @table @code - @item - - The corresponding argument of every occurrence - of the constraint is always unbound. - @item + - The corresponding argument of every occurrence - of the constraint is always ground. - @item ? - The corresponding argument of every occurrence - of the constraint can have any instantiation, which may change - over time. This is the default value. - @end table -The declaration is used by the compiler for various optimizations. -Note that it is up to the user the ensure that the mode declaration -is correct with respect to the use of the constraint. -This option may occur once for each constraint. - - @item type_declaration -This option specifies the argument types for a particular constraint. The -value is a term with functor and arity equal to that of a constraint. -The arguments can be a user-defined type or one of -the built-in types: - @table @code - @item int - The corresponding argument of every occurrence - of the constraint is an integer number. - @item float - @dots{} a floating point number. - @item number - @dots{} a number. - @item natural - @dots{} a positive integer. - @item any - The corresponding argument of every occurrence - of the constraint can have any type. This is the default value. - @end table - -Currently, type declarations are only used to improve certain -optimizations (guard simplification, occurrence subsumption, @dots{}). - - @item type_definition -This option defines a new user-defined type which can be used in -type declarations. The value is a term of the form -@code{type(}@var{name}@code{,}@var{list}@code{)}, where -@var{name} is a term and @var{list} is a list of alternatives. -Variables can be used to define generic types. Recursive definitions -are allowed. Examples are - -@example -type(bool,[true,false]). -type(complex_number,[float + float * i]). -type(binary_tree(T),[ leaf(T) | node(binary_tree(T),binary_tree(T)) ]). -type(list(T),[ [] | [T | list(T)]). -@end example - - -@end table - -The mode, type_declaration and type_definition options are provided -for backward compatibility. The new syntax is described below. - -@node CHR in YAP Programs, CHR Debugging, CHR Syntax and Semantics, CHR -@section CHR in YAP Programs -@c \label{sec:practical} -@c =========================== - - -@subsection Embedding in Prolog Programs - -The CHR constraints defined in a particulary @file{chr} file are -associated with a module. The default module is @code{user}. One should -never load different @file{chr} files with the same CHR module name. - -@subsection Constraint declaration - -Every constraint used in CHR rules has to be declared. -There are two ways to do this. The old style is as follows: - -@example -option(type_definition,type(list(T),[ [] , [T|list(T)] ]). -option(mode,foo(+,?)). -option(type_declaration,foo(list(int),float)). -:- constraints foo/2, bar/0. -@end example - -The new style is as follows: - -@example -:- chr_type list(T) ---> [] ; [T|list(T)]. -:- constraints foo(+list(int),?float), bar. -@end example - - -@subsection Compilation - -The SWI-Prolog CHR compiler exploits term_expansion/2 rules to translate -the constraint handling rules to plain Prolog. These rules are loaded -from the library @file{chr}. They are activated if the compiled file -has the @file{chr} extension or after finding a declaration of the -format below. - -@example -:- constraints ... -@end example - -It is adviced to define CHR rules in a module file, where the module -declaration is immediately followed by including the @file{chr} -library as examplified below: - -@example -:- module(zebra, [ zebra/0 ]). -:- use_module(library(chr)). - -:- constraints ... -@end example - -Using this style CHR rules can be defined in ordinary Prolog -@file{pl} files and the operator definitions required by CHR do not -leak into modules where they might cause conflicts. - - -@node CHR Debugging, CHR Examples,CHR in YAP Programs, CHR -@section Debugging -@c \label{sec:debugging} -@c ================= - -The CHR debugging facilities are currently rather limited. Only tracing -is currently available. To use the CHR debugging facilities for a CHR -file it must be compiled for debugging. Generating debug info is -controlled by the CHR option @code{debug}, whose default is derived -from the SWI-Prolog flag @code{generate_debug_info}. Therefore debug -info is provided unless the @option{-nodebug} is used. - - -@subsection Ports -@c \label{sec:chrports -@c =============== - -For CHR constraints the four standard ports are defined: - -@table @code - @item call -A new constraint is called and becomes active. - @item exit -An active constraint exits: it has either been inserted in the store after -trying all rules or has been removed from the constraint store. - @item fail -An active constraint fails. - @item redo -An active constraint starts looking for an alternative solution. -@end table - -In addition to the above ports, CHR constraints have five additional -ports: - -@table @code -@item wake -A suspended constraint is woken and becomes active. -@item insert -An active constraint has tried all rules and is suspended in -the constraint store. -@item remove -An active or passive constraint is removed from the constraint -store, if it had been inserted. -@item try - An active constraints tries a rule with possibly - some passive constraints. The try port is entered - just before committing to the rule. -@item apply - An active constraints commits to a rule with possibly - some passive constraints. The apply port is entered - just after committing to the rule. -@end table - -@subsection Tracing -@c ================= - -Tracing is enabled with the chr_trace/0 predicate -and disabled with the chr_notrace/0 predicate. - -When enabled the tracer will step through the @code{call}, -@code{exit}, @code{fail}, @code{wake} and @code{apply} ports, -accepting debug commands, and simply write out the other ports. - -The following debug commans are currently supported: - -@example - CHR debug options: - - creep c creep - s skip - g ancestors - n nodebug - b break - a abort - f fail - ? help h help -@end example - -Their meaning is: - -@table @code -@item creep -Step to the next port. -@item skip -Skip to exit port of this call or wake port. -@item ancestors -Print list of ancestor call and wake ports. -@item nodebug -Disable the tracer. -@item break -Enter a recursive Prolog toplevel. See break/0. -@item abort -Exit to the toplevel. See abort/0. -@item fail -Insert failure in execution. -@item help -Print the above available debug options. -@end table - -@subsection CHR Debugging Predicates -@c \label{sec:predicates -@c ==================================== - -The @file{chr} module contains several predicates that allow -inspecting and printing the content of the constraint store. - -@table @code - @item chr_trace/0 -Activate the CHR tracer. By default the CHR tracer is activated and -deactivated automatically by the Prolog predicates trace/0 and -notrace/0. - - @item chr_notrace/0 -De-activate the CHR tracer. By default the CHR tracer is activated and -deactivated automatically by the Prolog predicates trace/0 and -notrace/0. - - @item chr_leash/0 - -Define the set of CHR ports on which the CHR -tracer asks for user intervention (i.e. stops). @var{Spec} is either a -list of ports or a predefined `alias'. Defined aliases are: -@code{full} to stop at all ports, @code{none} or @code{off} to never -stop, and @code{default} to stop at the @code{call}, @code{exit}, -@code{fail}, @code{wake} and @code{apply} ports. See also leash/1. - - @item chr_show_store(+@var{Mod}) -Prints all suspended constraints of module @var{Mod} to the standard -output. This predicate is automatically called by the SWI-Prolog toplevel at -the end of each query for every CHR module currently loaded. The prolog-flag -@code{chr_toplevel_show_store} controls whether the toplevel shows the -constraint stores. The value @code{true} enables it. Any other value -disables it. - - -@end table - - -@node CHR Examples, CHR Compatibility,CHR Debugging, CHR -@section Examples -@c \label{sec:examples} -@c ================ - -Here are two example constraint solvers written in CHR. - -@itemize - @item -The program below defines a solver with one constraint, -@code{leq/2}, which is a less-than-or-equal constraint. - -@example -:- module(leq,[cycle/3, leq/2]). -:- use_module(library(chr)). - -:- constraints leq/2. -reflexivity @ leq(X,X) <=> true. -antisymmetry @ leq(X,Y), leq(Y,X) <=> X = Y. -idempotence @ leq(X,Y) \ leq(X,Y) <=> true. -transitivity @ leq(X,Y), leq(Y,Z) ==> leq(X,Z). - -cycle(X,Y,Z):- - leq(X,Y), - leq(Y,Z), - leq(Z,X). -@end example - - @item -The program below implements a simple finite domain -constraint solver. - -@example -:- module(dom,[dom/2]). -:- use_module(library(chr)). - -:- constraints dom/2. - -dom(X,[]) <=> fail. -dom(X,[Y]) <=> X = Y. -dom(X,L1), dom(X,L2) <=> intersection(L1,L2,L3), dom(X,L3). - -intersection([],_,[]). -intersection([H|T],L2,[H|L3]) :- - member(H,L2), !, - intersection(T,L2,L3). -intersection([_|T],L2,L3) :- - intersection(T,L2,L3). -@end example - -@end itemize - -@node CHR Compatibility, CHR Guidelines,CHR Examples, CHR -@section Compatibility with SICStus CHR -@c \label{sec:sicstus-chr} -@c ================== - -There are small differences between CHR in SWI-Prolog and newer -YAPs and SICStus and older versions of YAP. Besides differences in -available options and pragmas, the following differences should be -noted: - -@table @code - @item [The handler/1 declaration] -In SICStus every CHR module requires a @code{handler/1} -declaration declaring a unique handler name. This declaration is valid -syntax in SWI-Prolog, but will have no effect. A warning will be given -during compilation. - - @item [The rules/1 declaration] -In SICStus, for every CHR module it is possible to only enable a subset -of the available rules through the @code{rules/1} declaration. The -declaration is valid syntax in SWI-Prolog, but has no effect. A -warning is given during compilation. - - @item [Sourcefile naming] -SICStus uses a two-step compiler, where @file{chr} files are -first translated into @file{pl} files. For SWI-Prolog CHR -rules may be defined in a file with any extension. -@end table - - -@node CHR Guidelines, ,CHR Compatibility, CHR -@section Guidelines -@c \label{sec:guidelines} -@c ================== - -In this section we cover several guidelines on how to use CHR to write -constraint solvers and how to do so efficiently. - -@table @code - @item [Set semantics] -The CHR system allows the presence of identical constraints, i.e. -multiple constraints with the same functor, arity and arguments. For -most constraint solvers, this is not desirable: it affects efficiency -and possibly termination. Hence appropriate simpagation rules should be -added of the form: - -@example -@{constraint \ constraint <=> true@}. -@end example - - @item [Multi-headed rules] -Multi-headed rules are executed more efficiently when the constraints -share one or more variables. - - @item [Mode and type declarations] -Provide mode and type declarations to get more efficient program execution. -Make sure to disable debug (@option{-nodebug}) and enable optimization -(@option{-O}). -@end table - - diff --git a/docs/clpqr.md b/docs/clpqr.md deleted file mode 100644 index e67c24101..000000000 --- a/docs/clpqr.md +++ /dev/null @@ -1,121 +0,0 @@ -Constraint Logic Programming over Rationals and Reals {#clpqr} -===================================================== - - -YAP now uses the CLP(R) package developed by Leslie De Koninck, -K.U. Leuven as part of a thesis with supervisor Bart Demoen and daily -advisor Tom Schrijvers, and distributed with SWI-Prolog. - -This CLP(R) system is a port of the CLP(Q,R) system of Sicstus Prolog -and YAP by Christian Holzbaur: Holzbaur C.: OFAI clp(q,r) Manual, -Edition 1.3.3, Austrian Research Institute for Artificial -Intelligence, Vienna, TR-95-09, 1995, - This -port only contains the part concerning real arithmetics. This manual -is roughly based on the manual of the above mentioned *CLP(QR)* -implementation. - -Please note that the clpr library is not an -`autoload` library and therefore this library must be loaded -explicitely before using it: - -~~~~~ -:- use_module(library(clpr)). -~~~~~ - -### Solver Predicates {#CLPQR_Solver_Predicates} - -The following predicates are provided to work with constraints: - - -### Syntax of the predicate arguments {#CLPQR_Syntax} - - -The arguments of the predicates defined in the subsection above are -defined in the following table. Failing to meet the syntax rules will -result in an exception. - -~~~~~ - ---> \ single constraint \ - | , \ conjunction \ - | ; \ disjunction \ - - ---> {<} \ less than \ - | {>} \ greater than \ - | {=<} \ less or equal \ - | {<=}(, ) \ less or equal \ - | {>=} \ greater or equal \ - | {=\=} \ not equal \ - | =:= \ equal \ - | = \ equal \ - - ---> \ Prolog variable \ - | \ Prolog number (float, integer) \ - | + \ unary plus \ - | - \ unary minus \ - | + \ addition \ - | - \ substraction \ - | * \ multiplication \ - | / \ division \ - | abs() \ absolute value \ - | sin() \ sine \ - | cos() \ cosine \ - | tan() \ tangent \ - | exp() \ exponent \ - | pow() \ exponent \ - | {^} \ exponent \ - | min(, ) \ minimum \ - | max(, ) \ maximum \ -~~~~~ - - -### Use of unification {#CLPQR_Unification} - -Instead of using the `{}/1` predicate, you can also use the standard -unification mechanism to store constraints. The following code samples -are equivalent: - -+ Unification with a variable - -~~~~~ -{X =:= Y} -{X = Y} -X = Y -~~~~~ - -+ Unification with a number - -~~~~~ -{X =:= 5.0} -{X = 5.0} -X = 5.0 -~~~~~ - - -#### Non-Linear Constraints {#CLPQR_NonhYlinear_Constraints} - - -In this version, non-linear constraints do not get solved until certain -conditions are satisfied. We call these conditions the _isolation_ axioms. -They are given in the following table. - -~~~~~ -A = B * C when B or C is ground or // A = 5 * C or A = B * 4 \\ - A and (B or C) are ground // 20 = 5 * C or 20 = B * 4 \\ - -A = B / C when C is ground or // A = B / 3 - A and B are ground // 4 = 12 / C - -X = min(Y,Z) when Y and Z are ground or // X = min(4,3) -X = max(Y,Z) Y and Z are ground // X = max(4,3) -X = abs(Y) Y is ground // X = abs(-7) - -X = pow(Y,Z) when X and Y are ground or // 8 = 2 ^ Z -X = exp(Y,Z) X and Z are ground // 8 = Y ^ 3 -X = Y ^ Z Y and Z are ground // X = 2 ^ 3 - -X = sin(Y) when X is ground or // 1 = sin(Y) -X = cos(Y) Y is ground // X = sin(1.5707) -X = tan(Y) -~~~~~ - diff --git a/docs/clpr.tex b/docs/clpr.tex deleted file mode 100644 index 9d3d9e6c0..000000000 --- a/docs/clpr.tex +++ /dev/null @@ -1,180 +0,0 @@ -@chapter Constraint Logic Programming over Reals - -YAP now uses the CLP(R) package developed by @emph{Leslie De Koninck}, -K.U. Leuven as part of a thesis with supervisor Bart Demoen and daily -advisor Tom Schrijvers, and distributed with SWI-Prolog. - -This CLP(R) system is a port of the CLP(Q,R) system of Sicstus Prolog -and YAP by Christian Holzbaur: Holzbaur C.: OFAI clp(q,r) Manual, -Edition 1.3.3, Austrian Research Institute for Artificial -Intelligence, Vienna, TR-95-09, 1995, -@url{http://www.ai.univie.ac.at/cgi-bin/tr-online?number+95-09} This -port only contains the part concerning real arithmetics. This manual -is roughly based on the manual of the above mentioned @strong{CLP(QR)} -implementation. - -Please note that the @file{clpr} library is @emph{not} an -@code{autoload} library and therefore this library must be loaded -explicitely before using it: - -@example -:- use_module(library(clpr)). -@end example - -@node CLPR Solver Predicates, CLPR Syntax , , CLPR -@section Solver Predicates -@c ============================= - -The following predicates are provided to work with constraints: - -@table @code - @item @{+@var{Constraints}@} -Adds the constraints given by @var{Constraints} to the constraint store. - - @item entailed(+@var{Constraint}) -Succeeds if @var{Constraint} is necessarily true within the current -constraint store. This means that adding the negation of the constraint -to the store results in failure. - - @item inf(+@var{Expression},-@var{Inf}) -Computes the infimum of @var{Expression} within the current state of the -constraint store and returns that infimum in @var{Inf}. This predicate -does not change the constraint store. - - @item inf(+@var{Expression},-@var{Sup}) -Computes the supremum of @var{Expression} within the current state of -the constraint store and returns that supremum in @var{Sup}. This -predicate does not change the constraint store. - - @item min(+@var{Expression}) -Minimizes @var{Expression} within the current constraint store. This is -the same as computing the infimum and equation the expression to that -infimum. - - @item max(+@var{Expression}) -Maximizes @var{Expression} within the current constraint store. This is -the same as computing the supremum and equating the expression to that -supremum. - - @item bb_inf(+@var{Ints},+@var{Expression},-@var{Inf},-@var{Vertext},+@var{Eps}) -Computes the infimum of @var{Expression} within the current constraint -store, with the additional constraint that in that infimum, all -variables in @var{Ints} have integral values. @var{Vertex} will contain -the values of @var{Ints} in the infimum. @var{Eps} denotes how much a -value may differ from an integer to be considered an integer. E.g. when -@var{Eps} = 0.001, then X = 4.999 will be considered as an integer (5 in -this case). @var{Eps} should be between 0 and 0.5. - - @item bb_inf(+@var{Ints},+@var{Expression},-@var{Inf}) -The same as bb_inf/5 but without returning the values of the integers -and with an eps of 0.001. - - @item dump(+@var{Target},+@var{Newvars},-@var{CodedAnswer}) -Returns the constraints on @var{Target} in the list @var{CodedAnswer} -where all variables of @var{Target} have veen replaced by @var{NewVars}. -This operation does not change the constraint store. E.g. in - -@example -dump([X,Y,Z],[x,y,z],Cons) -@end example - -@var{Cons} will contain the constraints on @var{X}, @var{Y} and -@var{Z} where these variables have been replaced by atoms @code{x}, @code{y} and @code{z}. - -@end table - -@node CLPR Syntax, CLPR Unification, CLPR Solver Predicates, CLPR -@section Syntax of the predicate arguments -@c ============================================= - -The arguments of the predicates defined in the subsection above are -defined in the following table. Failing to meet the syntax rules will -result in an exception. - -@example - ---> \\ single constraint \\ - | , \\ conjunction \\ - | ; \\ disjunction \\ - - ---> @{<@} \\ less than \\ - | @{>@} \\ greater than \\ - | @{=<@} \\ less or equal \\ - | @{<=@}(, ) \\ less or equal \\ - | @{>=@} \\ greater or equal \\ - | @{=\=@} \\ not equal \\ - | =:= \\ equal \\ - | = \\ equal \\ - - ---> \\ Prolog variable \\ - | \\ Prolog number (float, integer) \\ - | + \\ unary plus \\ - | - \\ unary minus \\ - | + \\ addition \\ - | - \\ substraction \\ - | * \\ multiplication \\ - | / \\ division \\ - | abs() \\ absolute value \\ - | sin() \\ sine \\ - | cos() \\ cosine \\ - | tan() \\ tangent \\ - | exp() \\ exponent \\ - | pow() \\ exponent \\ - | @{^@} \\ exponent \\ - | min(, ) \\ minimum \\ - | max(, ) \\ maximum \\ -@end example - -@node CLPR Unification, CLPR Non-linear Constraints, CLPR Syntax, CLPR -@section Use of unification - -Instead of using the @code{@{@}/1} predicate, you can also use the standard -unification mechanism to store constraints. The following code samples -are equivalent: - -@table @option -@item Unification with a variable - -@example -@{X =:= Y@} -@{X = Y@} -X = Y -@end example - -@item Unification with a number - -@example -@{X =:= 5.0@} -@{X = 5.0@} -X = 5.0 -@end example - -@end table - -@node CLPR Non-linear Constraints, , CLPR Unification, CLPR -@section Non-Linear Constraints -@c ================================== - -In this version, non-linear constraints do not get solved until certain -conditions are satisfied. We call these conditions the isolation axioms. -They are given in the following table. - -@example -A = B * C when B or C is ground or // A = 5 * C or A = B * 4 \\ - A and (B or C) are ground // 20 = 5 * C or 20 = B * 4 \\ - -A = B / C when C is ground or // A = B / 3 - A and B are ground // 4 = 12 / C - -X = min(Y,Z) when Y and Z are ground or // X = min(4,3) -X = max(Y,Z) Y and Z are ground // X = max(4,3) -X = abs(Y) Y is ground // X = abs(-7) - -X = pow(Y,Z) when X and Y are ground or // 8 = 2 ^ Z -X = exp(Y,Z) X and Z are ground // 8 = Y ^ 3 -X = Y ^ Z Y and Z are ground // X = 2 ^ 3 - -X = sin(Y) when X is ground or // 1 = sin(Y) -X = cos(Y) Y is ground // X = sin(1.5707) -X = tan(Y) -@end example - diff --git a/docs/customdoxygen.css b/docs/customdoxygen.css deleted file mode 100644 index f847961ab..000000000 --- a/docs/customdoxygen.css +++ /dev/null @@ -1,179 +0,0 @@ -/* Custom Look and feel - Can be edited ------------------------------------ */ -#navrow1, #navrow2, #navrow3, #navrow4, #navrow5{ - border-bottom: 1px solid #EEEEEE; -} - -.adjust-right { - margin-left: 30px !important; - font-size: 1.15em !important; -} - -/* DOXYGEN Code Styles - These are from doxygen but can be changed to fit the theme ------------------------------------ */ - -a.qindex { - font-weight: bold; -} - -a.qindexHL { - font-weight: bold; - background-color: #9CAFD4; - color: #ffffff; - border: 1px double #869DCA; -} - -.contents a.qindexHL:visited { - color: #ffffff; -} - -a.code, a.code:visited, a.line, a.line:visited { - color: #4665A2; -} - -a.codeRef, a.codeRef:visited, a.lineRef, a.lineRef:visited { - color: #4665A2; -} - -/* @end */ - -dl.el { - margin-left: -1cm; -} - -pre.fragment { - border: 1px solid #C4CFE5; - background-color: #FBFCFD; - padding: 4px 6px; - margin: 4px 8px 4px 2px; - overflow: auto; - word-wrap: break-word; - font-size: 9pt; - line-height: 125%; - font-family: monospace, fixed; - font-size: 105%; -} - -div.fragment { - padding: 4px 6px; - margin: 4px 8px 4px 2px; - border: 1px solid #C4CFE5; -} - -div.line { - font-family: monospace, fixed; - font-size: 13px; - min-height: 13px; - line-height: 1.0; - text-wrap: unrestricted; - white-space: -moz-pre-wrap; /* Moz */ - white-space: -pre-wrap; /* Opera 4-6 */ - white-space: -o-pre-wrap; /* Opera 7 */ - white-space: pre-wrap; /* CSS3 */ - word-wrap: break-word; /* IE 5.5+ */ - text-indent: -53px; - padding-left: 53px; - padding-bottom: 0px; - margin: 0px; - -webkit-transition-property: background-color, box-shadow; - -webkit-transition-duration: 0.5s; - -moz-transition-property: background-color, box-shadow; - -moz-transition-duration: 0.5s; - -ms-transition-property: background-color, box-shadow; - -ms-transition-duration: 0.5s; - -o-transition-property: background-color, box-shadow; - -o-transition-duration: 0.5s; - transition-property: background-color, box-shadow; - transition-duration: 0.5s; -} - -div.line.glow { - background-color: cyan; - box-shadow: 0 0 10px cyan; -} - - -span.lineno { - padding-right: 4px; - text-align: right; - border-right: 2px solid #0F0; - background-color: #E8E8E8; - white-space: pre; -} -span.lineno a { - background-color: #D8D8D8; -} - -span.lineno a:hover { - background-color: #C8C8C8; -} - -div.groupHeader { - margin-left: 16px; - margin-top: 12px; - font-weight: bold; -} - -div.groupText { - margin-left: 16px; - font-style: italic; -} - -/* @group Code Colorization */ - -span.keyword { - color: #008000 -} - -span.keywordtype { - color: #604020 -} - -span.keywordflow { - color: #e08000 -} - -span.comment { - color: #800000 -} - -span.preprocessor { - color: #806020 -} - -span.stringliteral { - color: #002080 -} - -span.charliteral { - color: #008080 -} - -span.vhdldigit { - color: #ff00ff -} - -span.vhdlchar { - color: #000000 -} - -span.vhdlkeyword { - color: #700070 -} - -span.vhdllogic { - color: #ff0000 -} - -blockquote { - background-color: #F7F8FB; - border-left: 2px solid #9CAFD4; - margin: 0 24px 0 4px; - padding: 0 12px 0 16px; -} - -.container-fluid { - margin-right: auto; - margin-left: auto; - max-width: 1600px; /* or 950px */ -} diff --git a/docs/dir b/docs/dir deleted file mode 100644 index f4d8a0f8c..000000000 --- a/docs/dir +++ /dev/null @@ -1,18 +0,0 @@ --*- Text -*- -This is the file .../info/dir, which contains the topmost node of the -Info hierarchy. The first time you invoke Info you start off -looking at that node, which is (dir)Top. - -File: dir Node: Top This is the top of the INFO tree - This (the Directory node) gives a menu of major topics. - Typing "d" returns here, "q" exits, "?" lists all INFO commands, "h" - gives a primer for first-timers, "mEmacs" visits the Emacs topic, - etc. - In Emacs, you can click mouse button 2 on a menu item or cross reference - to select it. - --- PLEASE ADD DOCUMENTATION TO THIS TREE. (See INFO topic first.) --- - -* Menu: The list of major topics begins on the next line. - -YAP Prolog -* YAP Prolog Manual: (yap). YAP User's Manual. diff --git a/docs/dist/css/bootstrap-theme.css b/docs/dist/css/bootstrap-theme.css deleted file mode 100755 index b82bd721f..000000000 --- a/docs/dist/css/bootstrap-theme.css +++ /dev/null @@ -1,457 +0,0 @@ -/*! - * Bootstrap v3.3.0 (http://getbootstrap.com) - * Copyright 2011-2014 Twitter, Inc. - * Licensed under MIT (https://github.com/twbs/bootstrap/blob/master/LICENSE) - */ - -.btn-default, -.btn-primary, -.btn-success, -.btn-info, -.btn-warning, -.btn-danger { - text-shadow: 0 -1px 0 rgba(0, 0, 0, .2); - -webkit-box-shadow: inset 0 1px 0 rgba(255, 255, 255, .15), 0 1px 1px rgba(0, 0, 0, .075); - box-shadow: inset 0 1px 0 rgba(255, 255, 255, .15), 0 1px 1px rgba(0, 0, 0, .075); -} -.btn-default:active, -.btn-primary:active, -.btn-success:active, -.btn-info:active, -.btn-warning:active, -.btn-danger:active, -.btn-default.active, -.btn-primary.active, -.btn-success.active, -.btn-info.active, -.btn-warning.active, -.btn-danger.active { - -webkit-box-shadow: inset 0 3px 5px rgba(0, 0, 0, .125); - box-shadow: inset 0 3px 5px rgba(0, 0, 0, .125); -} -.btn-default .badge, -.btn-primary .badge, -.btn-success .badge, -.btn-info .badge, -.btn-warning .badge, -.btn-danger .badge { - text-shadow: none; -} -.btn:active, -.btn.active { - background-image: none; -} -.btn-default { - text-shadow: 0 1px 0 #fff; - background-image: -webkit-linear-gradient(top, #fff 0%, #e0e0e0 100%); - background-image: -o-linear-gradient(top, #fff 0%, #e0e0e0 100%); - background-image: -webkit-gradient(linear, left top, left bottom, from(#fff), to(#e0e0e0)); - background-image: linear-gradient(to bottom, #fff 0%, #e0e0e0 100%); - filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#ffffffff', endColorstr='#ffe0e0e0', GradientType=0); - filter: progid:DXImageTransform.Microsoft.gradient(enabled = false); - background-repeat: repeat-x; - border-color: #dbdbdb; - border-color: #ccc; -} -.btn-default:hover, -.btn-default:focus { - background-color: #e0e0e0; - background-position: 0 -15px; -} -.btn-default:active, -.btn-default.active { - background-color: #e0e0e0; - border-color: #dbdbdb; -} -.btn-default:disabled, -.btn-default[disabled] { - background-color: #e0e0e0; - background-image: none; -} -.btn-primary { - background-image: -webkit-linear-gradient(top, #428bca 0%, #2d6ca2 100%); - background-image: -o-linear-gradient(top, #428bca 0%, #2d6ca2 100%); - background-image: -webkit-gradient(linear, left top, left bottom, from(#428bca), to(#2d6ca2)); - background-image: linear-gradient(to bottom, #428bca 0%, #2d6ca2 100%); - filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#ff428bca', endColorstr='#ff2d6ca2', GradientType=0); - filter: progid:DXImageTransform.Microsoft.gradient(enabled = false); - background-repeat: repeat-x; - border-color: #2b669a; -} -.btn-primary:hover, -.btn-primary:focus { - background-color: #2d6ca2; - background-position: 0 -15px; -} -.btn-primary:active, -.btn-primary.active { - background-color: #2d6ca2; - border-color: #2b669a; -} -.btn-primary:disabled, -.btn-primary[disabled] { - background-color: #2d6ca2; - background-image: none; -} -.btn-success { - background-image: -webkit-linear-gradient(top, #5cb85c 0%, #419641 100%); - background-image: -o-linear-gradient(top, #5cb85c 0%, #419641 100%); - background-image: -webkit-gradient(linear, left top, left bottom, from(#5cb85c), to(#419641)); - background-image: linear-gradient(to bottom, #5cb85c 0%, #419641 100%); - filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#ff5cb85c', endColorstr='#ff419641', GradientType=0); - filter: progid:DXImageTransform.Microsoft.gradient(enabled = false); - background-repeat: repeat-x; - border-color: #3e8f3e; -} -.btn-success:hover, -.btn-success:focus { - background-color: #419641; - background-position: 0 -15px; -} -.btn-success:active, -.btn-success.active { - background-color: #419641; - border-color: #3e8f3e; -} -.btn-success:disabled, -.btn-success[disabled] { - background-color: #419641; - background-image: none; -} -.btn-info { - background-image: -webkit-linear-gradient(top, #5bc0de 0%, #2aabd2 100%); - background-image: -o-linear-gradient(top, #5bc0de 0%, #2aabd2 100%); - background-image: -webkit-gradient(linear, left top, left bottom, from(#5bc0de), to(#2aabd2)); - background-image: linear-gradient(to bottom, #5bc0de 0%, #2aabd2 100%); - filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#ff5bc0de', endColorstr='#ff2aabd2', GradientType=0); - filter: progid:DXImageTransform.Microsoft.gradient(enabled = false); - background-repeat: repeat-x; - border-color: #28a4c9; -} -.btn-info:hover, -.btn-info:focus { - background-color: #2aabd2; - background-position: 0 -15px; -} -.btn-info:active, -.btn-info.active { - background-color: #2aabd2; - border-color: #28a4c9; -} -.btn-info:disabled, -.btn-info[disabled] { - background-color: #2aabd2; - background-image: none; -} -.btn-warning { - background-image: -webkit-linear-gradient(top, #f0ad4e 0%, #eb9316 100%); - background-image: -o-linear-gradient(top, #f0ad4e 0%, #eb9316 100%); - background-image: -webkit-gradient(linear, left top, left bottom, from(#f0ad4e), to(#eb9316)); - background-image: linear-gradient(to bottom, #f0ad4e 0%, #eb9316 100%); - filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#fff0ad4e', endColorstr='#ffeb9316', GradientType=0); - filter: progid:DXImageTransform.Microsoft.gradient(enabled = false); - background-repeat: repeat-x; - border-color: #e38d13; -} -.btn-warning:hover, -.btn-warning:focus { - background-color: #eb9316; - background-position: 0 -15px; -} -.btn-warning:active, -.btn-warning.active { - background-color: #eb9316; - border-color: #e38d13; -} -.btn-warning:disabled, -.btn-warning[disabled] { - background-color: #eb9316; - background-image: none; -} -.btn-danger { - background-image: -webkit-linear-gradient(top, #d9534f 0%, #c12e2a 100%); - background-image: -o-linear-gradient(top, #d9534f 0%, #c12e2a 100%); - background-image: -webkit-gradient(linear, left top, left bottom, from(#d9534f), to(#c12e2a)); - background-image: linear-gradient(to bottom, #d9534f 0%, #c12e2a 100%); - filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#ffd9534f', endColorstr='#ffc12e2a', GradientType=0); - filter: progid:DXImageTransform.Microsoft.gradient(enabled = false); - background-repeat: repeat-x; - border-color: #b92c28; -} -.btn-danger:hover, -.btn-danger:focus { - background-color: #c12e2a; - background-position: 0 -15px; -} -.btn-danger:active, -.btn-danger.active { - background-color: #c12e2a; - border-color: #b92c28; -} -.btn-danger:disabled, -.btn-danger[disabled] { - background-color: #c12e2a; - background-image: none; -} -.thumbnail, -.img-thumbnail { - -webkit-box-shadow: 0 1px 2px rgba(0, 0, 0, .075); - box-shadow: 0 1px 2px rgba(0, 0, 0, .075); -} -.dropdown-menu > li > a:hover, -.dropdown-menu > li > a:focus { - background-color: #e8e8e8; - background-image: -webkit-linear-gradient(top, #f5f5f5 0%, #e8e8e8 100%); - background-image: -o-linear-gradient(top, #f5f5f5 0%, #e8e8e8 100%); - background-image: -webkit-gradient(linear, left top, left bottom, from(#f5f5f5), to(#e8e8e8)); - background-image: linear-gradient(to bottom, #f5f5f5 0%, #e8e8e8 100%); - filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#fff5f5f5', endColorstr='#ffe8e8e8', GradientType=0); - background-repeat: repeat-x; -} -.dropdown-menu > .active > a, -.dropdown-menu > .active > a:hover, -.dropdown-menu > .active > a:focus { - background-color: #357ebd; - background-image: -webkit-linear-gradient(top, #428bca 0%, #357ebd 100%); - background-image: -o-linear-gradient(top, #428bca 0%, #357ebd 100%); - background-image: -webkit-gradient(linear, left top, left bottom, from(#428bca), to(#357ebd)); - background-image: linear-gradient(to bottom, #428bca 0%, #357ebd 100%); - filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#ff428bca', endColorstr='#ff357ebd', GradientType=0); - background-repeat: repeat-x; -} -.navbar-default { - background-image: -webkit-linear-gradient(top, #fff 0%, #f8f8f8 100%); - background-image: -o-linear-gradient(top, #fff 0%, #f8f8f8 100%); - background-image: -webkit-gradient(linear, left top, left bottom, from(#fff), to(#f8f8f8)); - background-image: linear-gradient(to bottom, #fff 0%, #f8f8f8 100%); - filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#ffffffff', endColorstr='#fff8f8f8', GradientType=0); - filter: progid:DXImageTransform.Microsoft.gradient(enabled = false); - background-repeat: repeat-x; - border-radius: 4px; - -webkit-box-shadow: inset 0 1px 0 rgba(255, 255, 255, .15), 0 1px 5px rgba(0, 0, 0, .075); - box-shadow: inset 0 1px 0 rgba(255, 255, 255, .15), 0 1px 5px rgba(0, 0, 0, .075); -} -.navbar-default .navbar-nav > .open > a, -.navbar-default .navbar-nav > .active > a { - background-image: -webkit-linear-gradient(top, #dbdbdb 0%, #e2e2e2 100%); - background-image: -o-linear-gradient(top, #dbdbdb 0%, #e2e2e2 100%); - background-image: -webkit-gradient(linear, left top, left bottom, from(#dbdbdb), to(#e2e2e2)); - background-image: linear-gradient(to bottom, #dbdbdb 0%, #e2e2e2 100%); - filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#ffdbdbdb', endColorstr='#ffe2e2e2', GradientType=0); - background-repeat: repeat-x; - -webkit-box-shadow: inset 0 3px 9px rgba(0, 0, 0, .075); - box-shadow: inset 0 3px 9px rgba(0, 0, 0, .075); -} -.navbar-brand, -.navbar-nav > li > a { - text-shadow: 0 1px 0 rgba(255, 255, 255, .25); -} -.navbar-inverse { - background-image: -webkit-linear-gradient(top, #3c3c3c 0%, #222 100%); - background-image: -o-linear-gradient(top, #3c3c3c 0%, #222 100%); - background-image: -webkit-gradient(linear, left top, left bottom, from(#3c3c3c), to(#222)); - background-image: linear-gradient(to bottom, #3c3c3c 0%, #222 100%); - filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#ff3c3c3c', endColorstr='#ff222222', GradientType=0); - filter: progid:DXImageTransform.Microsoft.gradient(enabled = false); - background-repeat: repeat-x; -} -.navbar-inverse .navbar-nav > .open > a, -.navbar-inverse .navbar-nav > .active > a { - background-image: -webkit-linear-gradient(top, #080808 0%, #0f0f0f 100%); - background-image: -o-linear-gradient(top, #080808 0%, #0f0f0f 100%); - background-image: -webkit-gradient(linear, left top, left bottom, from(#080808), to(#0f0f0f)); - background-image: linear-gradient(to bottom, #080808 0%, #0f0f0f 100%); - filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#ff080808', endColorstr='#ff0f0f0f', GradientType=0); - background-repeat: repeat-x; - -webkit-box-shadow: inset 0 3px 9px rgba(0, 0, 0, .25); - box-shadow: inset 0 3px 9px rgba(0, 0, 0, .25); -} -.navbar-inverse .navbar-brand, -.navbar-inverse .navbar-nav > li > a { - text-shadow: 0 -1px 0 rgba(0, 0, 0, .25); -} -.navbar-static-top, -.navbar-fixed-top, -.navbar-fixed-bottom { - border-radius: 0; -} -.alert { - text-shadow: 0 1px 0 rgba(255, 255, 255, .2); - -webkit-box-shadow: inset 0 1px 0 rgba(255, 255, 255, .25), 0 1px 2px rgba(0, 0, 0, .05); - box-shadow: inset 0 1px 0 rgba(255, 255, 255, .25), 0 1px 2px rgba(0, 0, 0, .05); -} -.alert-success { - background-image: -webkit-linear-gradient(top, #dff0d8 0%, #c8e5bc 100%); - background-image: -o-linear-gradient(top, #dff0d8 0%, #c8e5bc 100%); - background-image: -webkit-gradient(linear, left top, left bottom, from(#dff0d8), to(#c8e5bc)); - background-image: linear-gradient(to bottom, #dff0d8 0%, #c8e5bc 100%); - filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#ffdff0d8', endColorstr='#ffc8e5bc', GradientType=0); - background-repeat: repeat-x; - border-color: #b2dba1; -} -.alert-info { - background-image: -webkit-linear-gradient(top, #d9edf7 0%, #b9def0 100%); - background-image: -o-linear-gradient(top, #d9edf7 0%, #b9def0 100%); - background-image: -webkit-gradient(linear, left top, left bottom, from(#d9edf7), to(#b9def0)); - background-image: linear-gradient(to bottom, #d9edf7 0%, #b9def0 100%); - filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#ffd9edf7', endColorstr='#ffb9def0', GradientType=0); - background-repeat: repeat-x; - border-color: #9acfea; -} -.alert-warning { - background-image: -webkit-linear-gradient(top, #fcf8e3 0%, #f8efc0 100%); - background-image: -o-linear-gradient(top, #fcf8e3 0%, #f8efc0 100%); - background-image: -webkit-gradient(linear, left top, left bottom, from(#fcf8e3), to(#f8efc0)); - background-image: linear-gradient(to bottom, #fcf8e3 0%, #f8efc0 100%); - filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#fffcf8e3', endColorstr='#fff8efc0', GradientType=0); - background-repeat: repeat-x; - border-color: #f5e79e; -} -.alert-danger { - background-image: -webkit-linear-gradient(top, #f2dede 0%, #e7c3c3 100%); - background-image: -o-linear-gradient(top, #f2dede 0%, #e7c3c3 100%); - background-image: -webkit-gradient(linear, left top, left bottom, from(#f2dede), to(#e7c3c3)); - background-image: linear-gradient(to bottom, #f2dede 0%, #e7c3c3 100%); - filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#fff2dede', endColorstr='#ffe7c3c3', GradientType=0); - background-repeat: repeat-x; - border-color: #dca7a7; -} -.progress { - background-image: -webkit-linear-gradient(top, #ebebeb 0%, #f5f5f5 100%); - background-image: -o-linear-gradient(top, #ebebeb 0%, #f5f5f5 100%); - background-image: -webkit-gradient(linear, left top, left bottom, from(#ebebeb), to(#f5f5f5)); - background-image: linear-gradient(to bottom, #ebebeb 0%, #f5f5f5 100%); - filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#ffebebeb', endColorstr='#fff5f5f5', GradientType=0); - background-repeat: repeat-x; -} -.progress-bar { - background-image: -webkit-linear-gradient(top, #428bca 0%, #3071a9 100%); - background-image: -o-linear-gradient(top, #428bca 0%, #3071a9 100%); - background-image: -webkit-gradient(linear, left top, left bottom, from(#428bca), to(#3071a9)); - background-image: linear-gradient(to bottom, #428bca 0%, #3071a9 100%); - filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#ff428bca', endColorstr='#ff3071a9', GradientType=0); - background-repeat: repeat-x; -} -.progress-bar-success { - background-image: -webkit-linear-gradient(top, #5cb85c 0%, #449d44 100%); - background-image: -o-linear-gradient(top, #5cb85c 0%, #449d44 100%); - background-image: -webkit-gradient(linear, left top, left bottom, from(#5cb85c), to(#449d44)); - background-image: linear-gradient(to bottom, #5cb85c 0%, #449d44 100%); - filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#ff5cb85c', endColorstr='#ff449d44', GradientType=0); - background-repeat: repeat-x; -} -.progress-bar-info { - background-image: -webkit-linear-gradient(top, #5bc0de 0%, #31b0d5 100%); - background-image: -o-linear-gradient(top, #5bc0de 0%, #31b0d5 100%); - background-image: -webkit-gradient(linear, left top, left bottom, from(#5bc0de), to(#31b0d5)); - background-image: linear-gradient(to bottom, #5bc0de 0%, #31b0d5 100%); - filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#ff5bc0de', endColorstr='#ff31b0d5', GradientType=0); - background-repeat: repeat-x; -} -.progress-bar-warning { - background-image: -webkit-linear-gradient(top, #f0ad4e 0%, #ec971f 100%); - background-image: -o-linear-gradient(top, #f0ad4e 0%, #ec971f 100%); - background-image: -webkit-gradient(linear, left top, left bottom, from(#f0ad4e), to(#ec971f)); - background-image: linear-gradient(to bottom, #f0ad4e 0%, #ec971f 100%); - filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#fff0ad4e', endColorstr='#ffec971f', GradientType=0); - background-repeat: repeat-x; -} -.progress-bar-danger { - background-image: -webkit-linear-gradient(top, #d9534f 0%, #c9302c 100%); - background-image: -o-linear-gradient(top, #d9534f 0%, #c9302c 100%); - background-image: -webkit-gradient(linear, left top, left bottom, from(#d9534f), to(#c9302c)); - background-image: linear-gradient(to bottom, #d9534f 0%, #c9302c 100%); - filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#ffd9534f', endColorstr='#ffc9302c', GradientType=0); - background-repeat: repeat-x; -} -.progress-bar-striped { - background-image: -webkit-linear-gradient(45deg, rgba(255, 255, 255, .15) 25%, transparent 25%, transparent 50%, rgba(255, 255, 255, .15) 50%, rgba(255, 255, 255, .15) 75%, transparent 75%, transparent); - background-image: -o-linear-gradient(45deg, rgba(255, 255, 255, .15) 25%, transparent 25%, transparent 50%, rgba(255, 255, 255, .15) 50%, rgba(255, 255, 255, .15) 75%, transparent 75%, transparent); - background-image: linear-gradient(45deg, rgba(255, 255, 255, .15) 25%, transparent 25%, transparent 50%, rgba(255, 255, 255, .15) 50%, rgba(255, 255, 255, .15) 75%, transparent 75%, transparent); -} -.list-group { - border-radius: 4px; - -webkit-box-shadow: 0 1px 2px rgba(0, 0, 0, .075); - box-shadow: 0 1px 2px rgba(0, 0, 0, .075); -} -.list-group-item.active, -.list-group-item.active:hover, -.list-group-item.active:focus { - text-shadow: 0 -1px 0 #3071a9; - background-image: -webkit-linear-gradient(top, #428bca 0%, #3278b3 100%); - background-image: -o-linear-gradient(top, #428bca 0%, #3278b3 100%); - background-image: -webkit-gradient(linear, left top, left bottom, from(#428bca), to(#3278b3)); - background-image: linear-gradient(to bottom, #428bca 0%, #3278b3 100%); - filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#ff428bca', endColorstr='#ff3278b3', GradientType=0); - background-repeat: repeat-x; - border-color: #3278b3; -} -.list-group-item.active .badge, -.list-group-item.active:hover .badge, -.list-group-item.active:focus .badge { - text-shadow: none; -} -.panel { - -webkit-box-shadow: 0 1px 2px rgba(0, 0, 0, .05); - box-shadow: 0 1px 2px rgba(0, 0, 0, .05); -} -.panel-default > .panel-heading { - background-image: -webkit-linear-gradient(top, #f5f5f5 0%, #e8e8e8 100%); - background-image: -o-linear-gradient(top, #f5f5f5 0%, #e8e8e8 100%); - background-image: -webkit-gradient(linear, left top, left bottom, from(#f5f5f5), to(#e8e8e8)); - background-image: linear-gradient(to bottom, #f5f5f5 0%, #e8e8e8 100%); - filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#fff5f5f5', endColorstr='#ffe8e8e8', GradientType=0); - background-repeat: repeat-x; -} -.panel-primary > .panel-heading { - background-image: -webkit-linear-gradient(top, #428bca 0%, #357ebd 100%); - background-image: -o-linear-gradient(top, #428bca 0%, #357ebd 100%); - background-image: -webkit-gradient(linear, left top, left bottom, from(#428bca), to(#357ebd)); - background-image: linear-gradient(to bottom, #428bca 0%, #357ebd 100%); - filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#ff428bca', endColorstr='#ff357ebd', GradientType=0); - background-repeat: repeat-x; -} -.panel-success > .panel-heading { - background-image: -webkit-linear-gradient(top, #dff0d8 0%, #d0e9c6 100%); - background-image: -o-linear-gradient(top, #dff0d8 0%, #d0e9c6 100%); - background-image: -webkit-gradient(linear, left top, left bottom, from(#dff0d8), to(#d0e9c6)); - background-image: linear-gradient(to bottom, #dff0d8 0%, #d0e9c6 100%); - filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#ffdff0d8', endColorstr='#ffd0e9c6', GradientType=0); - background-repeat: repeat-x; -} -.panel-info > .panel-heading { - background-image: -webkit-linear-gradient(top, #d9edf7 0%, #c4e3f3 100%); - background-image: -o-linear-gradient(top, #d9edf7 0%, #c4e3f3 100%); - background-image: -webkit-gradient(linear, left top, left bottom, from(#d9edf7), to(#c4e3f3)); - background-image: linear-gradient(to bottom, #d9edf7 0%, #c4e3f3 100%); - filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#ffd9edf7', endColorstr='#ffc4e3f3', GradientType=0); - background-repeat: repeat-x; -} -.panel-warning > .panel-heading { - background-image: -webkit-linear-gradient(top, #fcf8e3 0%, #faf2cc 100%); - background-image: -o-linear-gradient(top, #fcf8e3 0%, #faf2cc 100%); - background-image: -webkit-gradient(linear, left top, left bottom, from(#fcf8e3), to(#faf2cc)); - background-image: linear-gradient(to bottom, #fcf8e3 0%, #faf2cc 100%); - filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#fffcf8e3', endColorstr='#fffaf2cc', GradientType=0); - background-repeat: repeat-x; -} -.panel-danger > .panel-heading { - background-image: -webkit-linear-gradient(top, #f2dede 0%, #ebcccc 100%); - background-image: -o-linear-gradient(top, #f2dede 0%, #ebcccc 100%); - background-image: -webkit-gradient(linear, left top, left bottom, from(#f2dede), to(#ebcccc)); - background-image: linear-gradient(to bottom, #f2dede 0%, #ebcccc 100%); - filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#fff2dede', endColorstr='#ffebcccc', GradientType=0); - background-repeat: repeat-x; -} -.well { - background-image: -webkit-linear-gradient(top, #e8e8e8 0%, #f5f5f5 100%); - background-image: -o-linear-gradient(top, #e8e8e8 0%, #f5f5f5 100%); - background-image: -webkit-gradient(linear, left top, left bottom, from(#e8e8e8), to(#f5f5f5)); - background-image: linear-gradient(to bottom, #e8e8e8 0%, #f5f5f5 100%); - filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#ffe8e8e8', endColorstr='#fff5f5f5', GradientType=0); - background-repeat: repeat-x; - border-color: #dcdcdc; - -webkit-box-shadow: inset 0 1px 3px rgba(0, 0, 0, .05), 0 1px 0 rgba(255, 255, 255, .1); - box-shadow: inset 0 1px 3px rgba(0, 0, 0, .05), 0 1px 0 rgba(255, 255, 255, .1); -} -/*# sourceMappingURL=bootstrap-theme.css.map */ diff --git a/docs/dist/css/bootstrap-theme.css.map b/docs/dist/css/bootstrap-theme.css.map deleted file mode 100755 index 1ea032ac1..000000000 --- a/docs/dist/css/bootstrap-theme.css.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"sources":["less/theme.less","less/mixins/vendor-prefixes.less","bootstrap-theme.css","less/mixins/gradients.less","less/mixins/reset-filter.less"],"names":[],"mappings":"AAcA;;;;;;EAME,0CAAA;ECgDA,6FAAA;EACQ,qFAAA;EC5DT;AFgBC;;;;;;;;;;;;EC2CA,0DAAA;EACQ,kDAAA;EC7CT;AFVD;;;;;;EAiBI,mBAAA;EECH;AFgCC;;EAEE,wBAAA;EE9BH;AFmCD;EGlDI,0EAAA;EACA,qEAAA;EACA,+FAAA;EAAA,wEAAA;EAEA,wHAAA;ECnBF,qEAAA;EJiCA,6BAAA;EACA,uBAAA;EA+B2C,2BAAA;EAA2B,oBAAA;EExBvE;AFLC;;EAEE,2BAAA;EACA,8BAAA;EEOH;AFJC;;EAEE,2BAAA;EACA,uBAAA;EEMH;AFHC;;EAEE,2BAAA;EACA,wBAAA;EEKH;AFUD;EGnDI,0EAAA;EACA,qEAAA;EACA,+FAAA;EAAA,wEAAA;EAEA,wHAAA;ECnBF,qEAAA;EJiCA,6BAAA;EACA,uBAAA;EE+BD;AF7BC;;EAEE,2BAAA;EACA,8BAAA;EE+BH;AF5BC;;EAEE,2BAAA;EACA,uBAAA;EE8BH;AF3BC;;EAEE,2BAAA;EACA,wBAAA;EE6BH;AFbD;EGpDI,0EAAA;EACA,qEAAA;EACA,+FAAA;EAAA,wEAAA;EAEA,wHAAA;ECnBF,qEAAA;EJiCA,6BAAA;EACA,uBAAA;EEuDD;AFrDC;;EAEE,2BAAA;EACA,8BAAA;EEuDH;AFpDC;;EAEE,2BAAA;EACA,uBAAA;EEsDH;AFnDC;;EAEE,2BAAA;EACA,wBAAA;EEqDH;AFpCD;EGrDI,0EAAA;EACA,qEAAA;EACA,+FAAA;EAAA,wEAAA;EAEA,wHAAA;ECnBF,qEAAA;EJiCA,6BAAA;EACA,uBAAA;EE+ED;AF7EC;;EAEE,2BAAA;EACA,8BAAA;EE+EH;AF5EC;;EAEE,2BAAA;EACA,uBAAA;EE8EH;AF3EC;;EAEE,2BAAA;EACA,wBAAA;EE6EH;AF3DD;EGtDI,0EAAA;EACA,qEAAA;EACA,+FAAA;EAAA,wEAAA;EAEA,wHAAA;ECnBF,qEAAA;EJiCA,6BAAA;EACA,uBAAA;EEuGD;AFrGC;;EAEE,2BAAA;EACA,8BAAA;EEuGH;AFpGC;;EAEE,2BAAA;EACA,uBAAA;EEsGH;AFnGC;;EAEE,2BAAA;EACA,wBAAA;EEqGH;AFlFD;EGvDI,0EAAA;EACA,qEAAA;EACA,+FAAA;EAAA,wEAAA;EAEA,wHAAA;ECnBF,qEAAA;EJiCA,6BAAA;EACA,uBAAA;EE+HD;AF7HC;;EAEE,2BAAA;EACA,8BAAA;EE+HH;AF5HC;;EAEE,2BAAA;EACA,uBAAA;EE8HH;AF3HC;;EAEE,2BAAA;EACA,wBAAA;EE6HH;AFnGD;;ECfE,oDAAA;EACQ,4CAAA;ECsHT;AF9FD;;EGxEI,0EAAA;EACA,qEAAA;EACA,+FAAA;EAAA,wEAAA;EACA,6BAAA;EACA,wHAAA;EHuEF,2BAAA;EEoGD;AFlGD;;;EG7EI,0EAAA;EACA,qEAAA;EACA,+FAAA;EAAA,wEAAA;EACA,6BAAA;EACA,wHAAA;EH6EF,2BAAA;EEwGD;AF/FD;EG1FI,0EAAA;EACA,qEAAA;EACA,+FAAA;EAAA,wEAAA;EACA,6BAAA;EACA,wHAAA;ECnBF,qEAAA;EJ4GA,oBAAA;EC9CA,6FAAA;EACQ,qFAAA;ECoJT;AF1GD;;EG1FI,0EAAA;EACA,qEAAA;EACA,+FAAA;EAAA,wEAAA;EACA,6BAAA;EACA,wHAAA;EF2CF,0DAAA;EACQ,kDAAA;EC8JT;AFvGD;;EAEE,gDAAA;EEyGD;AFrGD;EG7GI,0EAAA;EACA,qEAAA;EACA,+FAAA;EAAA,wEAAA;EACA,6BAAA;EACA,wHAAA;ECnBF,qEAAA;EFyOD;AF7GD;;EG7GI,0EAAA;EACA,qEAAA;EACA,+FAAA;EAAA,wEAAA;EACA,6BAAA;EACA,wHAAA;EF2CF,yDAAA;EACQ,iDAAA;ECoLT;AFvHD;;EAYI,2CAAA;EE+GH;AF1GD;;;EAGE,kBAAA;EE4GD;AFnGD;EACE,+CAAA;EC5FA,4FAAA;EACQ,oFAAA;ECkMT;AF3FD;EGvJI,0EAAA;EACA,qEAAA;EACA,+FAAA;EAAA,wEAAA;EACA,6BAAA;EACA,wHAAA;EH+IF,uBAAA;EEuGD;AFlGD;EGxJI,0EAAA;EACA,qEAAA;EACA,+FAAA;EAAA,wEAAA;EACA,6BAAA;EACA,wHAAA;EH+IF,uBAAA;EE+GD;AFzGD;EGzJI,0EAAA;EACA,qEAAA;EACA,+FAAA;EAAA,wEAAA;EACA,6BAAA;EACA,wHAAA;EH+IF,uBAAA;EEuHD;AFhHD;EG1JI,0EAAA;EACA,qEAAA;EACA,+FAAA;EAAA,wEAAA;EACA,6BAAA;EACA,wHAAA;EH+IF,uBAAA;EE+HD;AFhHD;EGlKI,0EAAA;EACA,qEAAA;EACA,+FAAA;EAAA,wEAAA;EACA,6BAAA;EACA,wHAAA;EDqRH;AF7GD;EG5KI,0EAAA;EACA,qEAAA;EACA,+FAAA;EAAA,wEAAA;EACA,6BAAA;EACA,wHAAA;ED4RH;AFnHD;EG7KI,0EAAA;EACA,qEAAA;EACA,+FAAA;EAAA,wEAAA;EACA,6BAAA;EACA,wHAAA;EDmSH;AFzHD;EG9KI,0EAAA;EACA,qEAAA;EACA,+FAAA;EAAA,wEAAA;EACA,6BAAA;EACA,wHAAA;ED0SH;AF/HD;EG/KI,0EAAA;EACA,qEAAA;EACA,+FAAA;EAAA,wEAAA;EACA,6BAAA;EACA,wHAAA;EDiTH;AFrID;EGhLI,0EAAA;EACA,qEAAA;EACA,+FAAA;EAAA,wEAAA;EACA,6BAAA;EACA,wHAAA;EDwTH;AFxID;EGnJI,+MAAA;EACA,0MAAA;EACA,uMAAA;ED8RH;AFpID;EACE,oBAAA;EC/IA,oDAAA;EACQ,4CAAA;ECsRT;AFrID;;;EAGE,+BAAA;EGpME,0EAAA;EACA,qEAAA;EACA,+FAAA;EAAA,wEAAA;EACA,6BAAA;EACA,wHAAA;EHkMF,uBAAA;EE2ID;AFhJD;;;EAQI,mBAAA;EE6IH;AFnID;ECpKE,mDAAA;EACQ,2CAAA;EC0ST;AF7HD;EG7NI,0EAAA;EACA,qEAAA;EACA,+FAAA;EAAA,wEAAA;EACA,6BAAA;EACA,wHAAA;ED6VH;AFnID;EG9NI,0EAAA;EACA,qEAAA;EACA,+FAAA;EAAA,wEAAA;EACA,6BAAA;EACA,wHAAA;EDoWH;AFzID;EG/NI,0EAAA;EACA,qEAAA;EACA,+FAAA;EAAA,wEAAA;EACA,6BAAA;EACA,wHAAA;ED2WH;AF/ID;EGhOI,0EAAA;EACA,qEAAA;EACA,+FAAA;EAAA,wEAAA;EACA,6BAAA;EACA,wHAAA;EDkXH;AFrJD;EGjOI,0EAAA;EACA,qEAAA;EACA,+FAAA;EAAA,wEAAA;EACA,6BAAA;EACA,wHAAA;EDyXH;AF3JD;EGlOI,0EAAA;EACA,qEAAA;EACA,+FAAA;EAAA,wEAAA;EACA,6BAAA;EACA,wHAAA;EDgYH;AF3JD;EGzOI,0EAAA;EACA,qEAAA;EACA,+FAAA;EAAA,wEAAA;EACA,6BAAA;EACA,wHAAA;EHuOF,uBAAA;EC5LA,2FAAA;EACQ,mFAAA;EC8VT","file":"bootstrap-theme.css","sourcesContent":["\n//\n// Load core variables and mixins\n// --------------------------------------------------\n\n@import \"variables.less\";\n@import \"mixins.less\";\n\n\n//\n// Buttons\n// --------------------------------------------------\n\n// Common styles\n.btn-default,\n.btn-primary,\n.btn-success,\n.btn-info,\n.btn-warning,\n.btn-danger {\n text-shadow: 0 -1px 0 rgba(0,0,0,.2);\n @shadow: inset 0 1px 0 rgba(255,255,255,.15), 0 1px 1px rgba(0,0,0,.075);\n .box-shadow(@shadow);\n\n // Reset the shadow\n &:active,\n &.active {\n .box-shadow(inset 0 3px 5px rgba(0,0,0,.125));\n }\n\n .badge {\n text-shadow: none;\n }\n}\n\n// Mixin for generating new styles\n.btn-styles(@btn-color: #555) {\n #gradient > .vertical(@start-color: @btn-color; @end-color: darken(@btn-color, 12%));\n .reset-filter(); // Disable gradients for IE9 because filter bleeds through rounded corners\n background-repeat: repeat-x;\n border-color: darken(@btn-color, 14%);\n\n &:hover,\n &:focus {\n background-color: darken(@btn-color, 12%);\n background-position: 0 -15px;\n }\n\n &:active,\n &.active {\n background-color: darken(@btn-color, 12%);\n border-color: darken(@btn-color, 14%);\n }\n\n &:disabled,\n &[disabled] {\n background-color: darken(@btn-color, 12%);\n background-image: none;\n }\n}\n\n// Common styles\n.btn {\n // Remove the gradient for the pressed/active state\n &:active,\n &.active {\n background-image: none;\n }\n}\n\n// Apply the mixin to the buttons\n.btn-default { .btn-styles(@btn-default-bg); text-shadow: 0 1px 0 #fff; border-color: #ccc; }\n.btn-primary { .btn-styles(@btn-primary-bg); }\n.btn-success { .btn-styles(@btn-success-bg); }\n.btn-info { .btn-styles(@btn-info-bg); }\n.btn-warning { .btn-styles(@btn-warning-bg); }\n.btn-danger { .btn-styles(@btn-danger-bg); }\n\n\n//\n// Images\n// --------------------------------------------------\n\n.thumbnail,\n.img-thumbnail {\n .box-shadow(0 1px 2px rgba(0,0,0,.075));\n}\n\n\n//\n// Dropdowns\n// --------------------------------------------------\n\n.dropdown-menu > li > a:hover,\n.dropdown-menu > li > a:focus {\n #gradient > .vertical(@start-color: @dropdown-link-hover-bg; @end-color: darken(@dropdown-link-hover-bg, 5%));\n background-color: darken(@dropdown-link-hover-bg, 5%);\n}\n.dropdown-menu > .active > a,\n.dropdown-menu > .active > a:hover,\n.dropdown-menu > .active > a:focus {\n #gradient > .vertical(@start-color: @dropdown-link-active-bg; @end-color: darken(@dropdown-link-active-bg, 5%));\n background-color: darken(@dropdown-link-active-bg, 5%);\n}\n\n\n//\n// Navbar\n// --------------------------------------------------\n\n// Default navbar\n.navbar-default {\n #gradient > .vertical(@start-color: lighten(@navbar-default-bg, 10%); @end-color: @navbar-default-bg);\n .reset-filter(); // Remove gradient in IE<10 to fix bug where dropdowns don't get triggered\n border-radius: @navbar-border-radius;\n @shadow: inset 0 1px 0 rgba(255,255,255,.15), 0 1px 5px rgba(0,0,0,.075);\n .box-shadow(@shadow);\n\n .navbar-nav > .open > a,\n .navbar-nav > .active > a {\n #gradient > .vertical(@start-color: darken(@navbar-default-link-active-bg, 5%); @end-color: darken(@navbar-default-link-active-bg, 2%));\n .box-shadow(inset 0 3px 9px rgba(0,0,0,.075));\n }\n}\n.navbar-brand,\n.navbar-nav > li > a {\n text-shadow: 0 1px 0 rgba(255,255,255,.25);\n}\n\n// Inverted navbar\n.navbar-inverse {\n #gradient > .vertical(@start-color: lighten(@navbar-inverse-bg, 10%); @end-color: @navbar-inverse-bg);\n .reset-filter(); // Remove gradient in IE<10 to fix bug where dropdowns don't get triggered\n\n .navbar-nav > .open > a,\n .navbar-nav > .active > a {\n #gradient > .vertical(@start-color: @navbar-inverse-link-active-bg; @end-color: lighten(@navbar-inverse-link-active-bg, 2.5%));\n .box-shadow(inset 0 3px 9px rgba(0,0,0,.25));\n }\n\n .navbar-brand,\n .navbar-nav > li > a {\n text-shadow: 0 -1px 0 rgba(0,0,0,.25);\n }\n}\n\n// Undo rounded corners in static and fixed navbars\n.navbar-static-top,\n.navbar-fixed-top,\n.navbar-fixed-bottom {\n border-radius: 0;\n}\n\n\n//\n// Alerts\n// --------------------------------------------------\n\n// Common styles\n.alert {\n text-shadow: 0 1px 0 rgba(255,255,255,.2);\n @shadow: inset 0 1px 0 rgba(255,255,255,.25), 0 1px 2px rgba(0,0,0,.05);\n .box-shadow(@shadow);\n}\n\n// Mixin for generating new styles\n.alert-styles(@color) {\n #gradient > .vertical(@start-color: @color; @end-color: darken(@color, 7.5%));\n border-color: darken(@color, 15%);\n}\n\n// Apply the mixin to the alerts\n.alert-success { .alert-styles(@alert-success-bg); }\n.alert-info { .alert-styles(@alert-info-bg); }\n.alert-warning { .alert-styles(@alert-warning-bg); }\n.alert-danger { .alert-styles(@alert-danger-bg); }\n\n\n//\n// Progress bars\n// --------------------------------------------------\n\n// Give the progress background some depth\n.progress {\n #gradient > .vertical(@start-color: darken(@progress-bg, 4%); @end-color: @progress-bg)\n}\n\n// Mixin for generating new styles\n.progress-bar-styles(@color) {\n #gradient > .vertical(@start-color: @color; @end-color: darken(@color, 10%));\n}\n\n// Apply the mixin to the progress bars\n.progress-bar { .progress-bar-styles(@progress-bar-bg); }\n.progress-bar-success { .progress-bar-styles(@progress-bar-success-bg); }\n.progress-bar-info { .progress-bar-styles(@progress-bar-info-bg); }\n.progress-bar-warning { .progress-bar-styles(@progress-bar-warning-bg); }\n.progress-bar-danger { .progress-bar-styles(@progress-bar-danger-bg); }\n\n// Reset the striped class because our mixins don't do multiple gradients and\n// the above custom styles override the new `.progress-bar-striped` in v3.2.0.\n.progress-bar-striped {\n #gradient > .striped();\n}\n\n\n//\n// List groups\n// --------------------------------------------------\n\n.list-group {\n border-radius: @border-radius-base;\n .box-shadow(0 1px 2px rgba(0,0,0,.075));\n}\n.list-group-item.active,\n.list-group-item.active:hover,\n.list-group-item.active:focus {\n text-shadow: 0 -1px 0 darken(@list-group-active-bg, 10%);\n #gradient > .vertical(@start-color: @list-group-active-bg; @end-color: darken(@list-group-active-bg, 7.5%));\n border-color: darken(@list-group-active-border, 7.5%);\n\n .badge {\n text-shadow: none;\n }\n}\n\n\n//\n// Panels\n// --------------------------------------------------\n\n// Common styles\n.panel {\n .box-shadow(0 1px 2px rgba(0,0,0,.05));\n}\n\n// Mixin for generating new styles\n.panel-heading-styles(@color) {\n #gradient > .vertical(@start-color: @color; @end-color: darken(@color, 5%));\n}\n\n// Apply the mixin to the panel headings only\n.panel-default > .panel-heading { .panel-heading-styles(@panel-default-heading-bg); }\n.panel-primary > .panel-heading { .panel-heading-styles(@panel-primary-heading-bg); }\n.panel-success > .panel-heading { .panel-heading-styles(@panel-success-heading-bg); }\n.panel-info > .panel-heading { .panel-heading-styles(@panel-info-heading-bg); }\n.panel-warning > .panel-heading { .panel-heading-styles(@panel-warning-heading-bg); }\n.panel-danger > .panel-heading { .panel-heading-styles(@panel-danger-heading-bg); }\n\n\n//\n// Wells\n// --------------------------------------------------\n\n.well {\n #gradient > .vertical(@start-color: darken(@well-bg, 5%); @end-color: @well-bg);\n border-color: darken(@well-bg, 10%);\n @shadow: inset 0 1px 3px rgba(0,0,0,.05), 0 1px 0 rgba(255,255,255,.1);\n .box-shadow(@shadow);\n}\n","// Vendor Prefixes\n//\n// All vendor mixins are deprecated as of v3.2.0 due to the introduction of\n// Autoprefixer in our Gruntfile. They will be removed in v4.\n\n// - Animations\n// - Backface visibility\n// - Box shadow\n// - Box sizing\n// - Content columns\n// - Hyphens\n// - Placeholder text\n// - Transformations\n// - Transitions\n// - User Select\n\n\n// Animations\n.animation(@animation) {\n -webkit-animation: @animation;\n -o-animation: @animation;\n animation: @animation;\n}\n.animation-name(@name) {\n -webkit-animation-name: @name;\n animation-name: @name;\n}\n.animation-duration(@duration) {\n -webkit-animation-duration: @duration;\n animation-duration: @duration;\n}\n.animation-timing-function(@timing-function) {\n -webkit-animation-timing-function: @timing-function;\n animation-timing-function: @timing-function;\n}\n.animation-delay(@delay) {\n -webkit-animation-delay: @delay;\n animation-delay: @delay;\n}\n.animation-iteration-count(@iteration-count) {\n -webkit-animation-iteration-count: @iteration-count;\n animation-iteration-count: @iteration-count;\n}\n.animation-direction(@direction) {\n -webkit-animation-direction: @direction;\n animation-direction: @direction;\n}\n.animation-fill-mode(@fill-mode) {\n -webkit-animation-fill-mode: @fill-mode;\n animation-fill-mode: @fill-mode;\n}\n\n// Backface visibility\n// Prevent browsers from flickering when using CSS 3D transforms.\n// Default value is `visible`, but can be changed to `hidden`\n\n.backface-visibility(@visibility){\n -webkit-backface-visibility: @visibility;\n -moz-backface-visibility: @visibility;\n backface-visibility: @visibility;\n}\n\n// Drop shadows\n//\n// Note: Deprecated `.box-shadow()` as of v3.1.0 since all of Bootstrap's\n// supported browsers that have box shadow capabilities now support it.\n\n.box-shadow(@shadow) {\n -webkit-box-shadow: @shadow; // iOS <4.3 & Android <4.1\n box-shadow: @shadow;\n}\n\n// Box sizing\n.box-sizing(@boxmodel) {\n -webkit-box-sizing: @boxmodel;\n -moz-box-sizing: @boxmodel;\n box-sizing: @boxmodel;\n}\n\n// CSS3 Content Columns\n.content-columns(@column-count; @column-gap: @grid-gutter-width) {\n -webkit-column-count: @column-count;\n -moz-column-count: @column-count;\n column-count: @column-count;\n -webkit-column-gap: @column-gap;\n -moz-column-gap: @column-gap;\n column-gap: @column-gap;\n}\n\n// Optional hyphenation\n.hyphens(@mode: auto) {\n word-wrap: break-word;\n -webkit-hyphens: @mode;\n -moz-hyphens: @mode;\n -ms-hyphens: @mode; // IE10+\n -o-hyphens: @mode;\n hyphens: @mode;\n}\n\n// Placeholder text\n.placeholder(@color: @input-color-placeholder) {\n // Firefox\n &::-moz-placeholder {\n color: @color;\n opacity: 1; // See https://github.com/twbs/bootstrap/pull/11526\n }\n &:-ms-input-placeholder { color: @color; } // Internet Explorer 10+\n &::-webkit-input-placeholder { color: @color; } // Safari and Chrome\n}\n\n// Transformations\n.scale(@ratio) {\n -webkit-transform: scale(@ratio);\n -ms-transform: scale(@ratio); // IE9 only\n -o-transform: scale(@ratio);\n transform: scale(@ratio);\n}\n.scale(@ratioX; @ratioY) {\n -webkit-transform: scale(@ratioX, @ratioY);\n -ms-transform: scale(@ratioX, @ratioY); // IE9 only\n -o-transform: scale(@ratioX, @ratioY);\n transform: scale(@ratioX, @ratioY);\n}\n.scaleX(@ratio) {\n -webkit-transform: scaleX(@ratio);\n -ms-transform: scaleX(@ratio); // IE9 only\n -o-transform: scaleX(@ratio);\n transform: scaleX(@ratio);\n}\n.scaleY(@ratio) {\n -webkit-transform: scaleY(@ratio);\n -ms-transform: scaleY(@ratio); // IE9 only\n -o-transform: scaleY(@ratio);\n transform: scaleY(@ratio);\n}\n.skew(@x; @y) {\n -webkit-transform: skewX(@x) skewY(@y);\n -ms-transform: skewX(@x) skewY(@y); // See https://github.com/twbs/bootstrap/issues/4885; IE9+\n -o-transform: skewX(@x) skewY(@y);\n transform: skewX(@x) skewY(@y);\n}\n.translate(@x; @y) {\n -webkit-transform: translate(@x, @y);\n -ms-transform: translate(@x, @y); // IE9 only\n -o-transform: translate(@x, @y);\n transform: translate(@x, @y);\n}\n.translate3d(@x; @y; @z) {\n -webkit-transform: translate3d(@x, @y, @z);\n transform: translate3d(@x, @y, @z);\n}\n.rotate(@degrees) {\n -webkit-transform: rotate(@degrees);\n -ms-transform: rotate(@degrees); // IE9 only\n -o-transform: rotate(@degrees);\n transform: rotate(@degrees);\n}\n.rotateX(@degrees) {\n -webkit-transform: rotateX(@degrees);\n -ms-transform: rotateX(@degrees); // IE9 only\n -o-transform: rotateX(@degrees);\n transform: rotateX(@degrees);\n}\n.rotateY(@degrees) {\n -webkit-transform: rotateY(@degrees);\n -ms-transform: rotateY(@degrees); // IE9 only\n -o-transform: rotateY(@degrees);\n transform: rotateY(@degrees);\n}\n.perspective(@perspective) {\n -webkit-perspective: @perspective;\n -moz-perspective: @perspective;\n perspective: @perspective;\n}\n.perspective-origin(@perspective) {\n -webkit-perspective-origin: @perspective;\n -moz-perspective-origin: @perspective;\n perspective-origin: @perspective;\n}\n.transform-origin(@origin) {\n -webkit-transform-origin: @origin;\n -moz-transform-origin: @origin;\n -ms-transform-origin: @origin; // IE9 only\n transform-origin: @origin;\n}\n\n\n// Transitions\n\n.transition(@transition) {\n -webkit-transition: @transition;\n -o-transition: @transition;\n transition: @transition;\n}\n.transition-property(@transition-property) {\n -webkit-transition-property: @transition-property;\n transition-property: @transition-property;\n}\n.transition-delay(@transition-delay) {\n -webkit-transition-delay: @transition-delay;\n transition-delay: @transition-delay;\n}\n.transition-duration(@transition-duration) {\n -webkit-transition-duration: @transition-duration;\n transition-duration: @transition-duration;\n}\n.transition-timing-function(@timing-function) {\n -webkit-transition-timing-function: @timing-function;\n transition-timing-function: @timing-function;\n}\n.transition-transform(@transition) {\n -webkit-transition: -webkit-transform @transition;\n -moz-transition: -moz-transform @transition;\n -o-transition: -o-transform @transition;\n transition: transform @transition;\n}\n\n\n// User select\n// For selecting text on the page\n\n.user-select(@select) {\n -webkit-user-select: @select;\n -moz-user-select: @select;\n -ms-user-select: @select; // IE10+\n user-select: @select;\n}\n",".btn-default,\n.btn-primary,\n.btn-success,\n.btn-info,\n.btn-warning,\n.btn-danger {\n text-shadow: 0 -1px 0 rgba(0, 0, 0, 0.2);\n -webkit-box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.15), 0 1px 1px rgba(0, 0, 0, 0.075);\n box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.15), 0 1px 1px rgba(0, 0, 0, 0.075);\n}\n.btn-default:active,\n.btn-primary:active,\n.btn-success:active,\n.btn-info:active,\n.btn-warning:active,\n.btn-danger:active,\n.btn-default.active,\n.btn-primary.active,\n.btn-success.active,\n.btn-info.active,\n.btn-warning.active,\n.btn-danger.active {\n -webkit-box-shadow: inset 0 3px 5px rgba(0, 0, 0, 0.125);\n box-shadow: inset 0 3px 5px rgba(0, 0, 0, 0.125);\n}\n.btn-default .badge,\n.btn-primary .badge,\n.btn-success .badge,\n.btn-info .badge,\n.btn-warning .badge,\n.btn-danger .badge {\n text-shadow: none;\n}\n.btn:active,\n.btn.active {\n background-image: none;\n}\n.btn-default {\n background-image: -webkit-linear-gradient(top, #ffffff 0%, #e0e0e0 100%);\n background-image: -o-linear-gradient(top, #ffffff 0%, #e0e0e0 100%);\n background-image: linear-gradient(to bottom, #ffffff 0%, #e0e0e0 100%);\n filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#ffffffff', endColorstr='#ffe0e0e0', GradientType=0);\n filter: progid:DXImageTransform.Microsoft.gradient(enabled = false);\n background-repeat: repeat-x;\n border-color: #dbdbdb;\n text-shadow: 0 1px 0 #fff;\n border-color: #ccc;\n}\n.btn-default:hover,\n.btn-default:focus {\n background-color: #e0e0e0;\n background-position: 0 -15px;\n}\n.btn-default:active,\n.btn-default.active {\n background-color: #e0e0e0;\n border-color: #dbdbdb;\n}\n.btn-default:disabled,\n.btn-default[disabled] {\n background-color: #e0e0e0;\n background-image: none;\n}\n.btn-primary {\n background-image: -webkit-linear-gradient(top, #428bca 0%, #2d6ca2 100%);\n background-image: -o-linear-gradient(top, #428bca 0%, #2d6ca2 100%);\n background-image: linear-gradient(to bottom, #428bca 0%, #2d6ca2 100%);\n filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#ff428bca', endColorstr='#ff2d6ca2', GradientType=0);\n filter: progid:DXImageTransform.Microsoft.gradient(enabled = false);\n background-repeat: repeat-x;\n border-color: #2b669a;\n}\n.btn-primary:hover,\n.btn-primary:focus {\n background-color: #2d6ca2;\n background-position: 0 -15px;\n}\n.btn-primary:active,\n.btn-primary.active {\n background-color: #2d6ca2;\n border-color: #2b669a;\n}\n.btn-primary:disabled,\n.btn-primary[disabled] {\n background-color: #2d6ca2;\n background-image: none;\n}\n.btn-success {\n background-image: -webkit-linear-gradient(top, #5cb85c 0%, #419641 100%);\n background-image: -o-linear-gradient(top, #5cb85c 0%, #419641 100%);\n background-image: linear-gradient(to bottom, #5cb85c 0%, #419641 100%);\n filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#ff5cb85c', endColorstr='#ff419641', GradientType=0);\n filter: progid:DXImageTransform.Microsoft.gradient(enabled = false);\n background-repeat: repeat-x;\n border-color: #3e8f3e;\n}\n.btn-success:hover,\n.btn-success:focus {\n background-color: #419641;\n background-position: 0 -15px;\n}\n.btn-success:active,\n.btn-success.active {\n background-color: #419641;\n border-color: #3e8f3e;\n}\n.btn-success:disabled,\n.btn-success[disabled] {\n background-color: #419641;\n background-image: none;\n}\n.btn-info {\n background-image: -webkit-linear-gradient(top, #5bc0de 0%, #2aabd2 100%);\n background-image: -o-linear-gradient(top, #5bc0de 0%, #2aabd2 100%);\n background-image: linear-gradient(to bottom, #5bc0de 0%, #2aabd2 100%);\n filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#ff5bc0de', endColorstr='#ff2aabd2', GradientType=0);\n filter: progid:DXImageTransform.Microsoft.gradient(enabled = false);\n background-repeat: repeat-x;\n border-color: #28a4c9;\n}\n.btn-info:hover,\n.btn-info:focus {\n background-color: #2aabd2;\n background-position: 0 -15px;\n}\n.btn-info:active,\n.btn-info.active {\n background-color: #2aabd2;\n border-color: #28a4c9;\n}\n.btn-info:disabled,\n.btn-info[disabled] {\n background-color: #2aabd2;\n background-image: none;\n}\n.btn-warning {\n background-image: -webkit-linear-gradient(top, #f0ad4e 0%, #eb9316 100%);\n background-image: -o-linear-gradient(top, #f0ad4e 0%, #eb9316 100%);\n background-image: linear-gradient(to bottom, #f0ad4e 0%, #eb9316 100%);\n filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#fff0ad4e', endColorstr='#ffeb9316', GradientType=0);\n filter: progid:DXImageTransform.Microsoft.gradient(enabled = false);\n background-repeat: repeat-x;\n border-color: #e38d13;\n}\n.btn-warning:hover,\n.btn-warning:focus {\n background-color: #eb9316;\n background-position: 0 -15px;\n}\n.btn-warning:active,\n.btn-warning.active {\n background-color: #eb9316;\n border-color: #e38d13;\n}\n.btn-warning:disabled,\n.btn-warning[disabled] {\n background-color: #eb9316;\n background-image: none;\n}\n.btn-danger {\n background-image: -webkit-linear-gradient(top, #d9534f 0%, #c12e2a 100%);\n background-image: -o-linear-gradient(top, #d9534f 0%, #c12e2a 100%);\n background-image: linear-gradient(to bottom, #d9534f 0%, #c12e2a 100%);\n filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#ffd9534f', endColorstr='#ffc12e2a', GradientType=0);\n filter: progid:DXImageTransform.Microsoft.gradient(enabled = false);\n background-repeat: repeat-x;\n border-color: #b92c28;\n}\n.btn-danger:hover,\n.btn-danger:focus {\n background-color: #c12e2a;\n background-position: 0 -15px;\n}\n.btn-danger:active,\n.btn-danger.active {\n background-color: #c12e2a;\n border-color: #b92c28;\n}\n.btn-danger:disabled,\n.btn-danger[disabled] {\n background-color: #c12e2a;\n background-image: none;\n}\n.thumbnail,\n.img-thumbnail {\n -webkit-box-shadow: 0 1px 2px rgba(0, 0, 0, 0.075);\n box-shadow: 0 1px 2px rgba(0, 0, 0, 0.075);\n}\n.dropdown-menu > li > a:hover,\n.dropdown-menu > li > a:focus {\n background-image: -webkit-linear-gradient(top, #f5f5f5 0%, #e8e8e8 100%);\n background-image: -o-linear-gradient(top, #f5f5f5 0%, #e8e8e8 100%);\n background-image: linear-gradient(to bottom, #f5f5f5 0%, #e8e8e8 100%);\n background-repeat: repeat-x;\n filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#fff5f5f5', endColorstr='#ffe8e8e8', GradientType=0);\n background-color: #e8e8e8;\n}\n.dropdown-menu > .active > a,\n.dropdown-menu > .active > a:hover,\n.dropdown-menu > .active > a:focus {\n background-image: -webkit-linear-gradient(top, #428bca 0%, #357ebd 100%);\n background-image: -o-linear-gradient(top, #428bca 0%, #357ebd 100%);\n background-image: linear-gradient(to bottom, #428bca 0%, #357ebd 100%);\n background-repeat: repeat-x;\n filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#ff428bca', endColorstr='#ff357ebd', GradientType=0);\n background-color: #357ebd;\n}\n.navbar-default {\n background-image: -webkit-linear-gradient(top, #ffffff 0%, #f8f8f8 100%);\n background-image: -o-linear-gradient(top, #ffffff 0%, #f8f8f8 100%);\n background-image: linear-gradient(to bottom, #ffffff 0%, #f8f8f8 100%);\n background-repeat: repeat-x;\n filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#ffffffff', endColorstr='#fff8f8f8', GradientType=0);\n filter: progid:DXImageTransform.Microsoft.gradient(enabled = false);\n border-radius: 4px;\n -webkit-box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.15), 0 1px 5px rgba(0, 0, 0, 0.075);\n box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.15), 0 1px 5px rgba(0, 0, 0, 0.075);\n}\n.navbar-default .navbar-nav > .open > a,\n.navbar-default .navbar-nav > .active > a {\n background-image: -webkit-linear-gradient(top, #dbdbdb 0%, #e2e2e2 100%);\n background-image: -o-linear-gradient(top, #dbdbdb 0%, #e2e2e2 100%);\n background-image: linear-gradient(to bottom, #dbdbdb 0%, #e2e2e2 100%);\n background-repeat: repeat-x;\n filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#ffdbdbdb', endColorstr='#ffe2e2e2', GradientType=0);\n -webkit-box-shadow: inset 0 3px 9px rgba(0, 0, 0, 0.075);\n box-shadow: inset 0 3px 9px rgba(0, 0, 0, 0.075);\n}\n.navbar-brand,\n.navbar-nav > li > a {\n text-shadow: 0 1px 0 rgba(255, 255, 255, 0.25);\n}\n.navbar-inverse {\n background-image: -webkit-linear-gradient(top, #3c3c3c 0%, #222222 100%);\n background-image: -o-linear-gradient(top, #3c3c3c 0%, #222222 100%);\n background-image: linear-gradient(to bottom, #3c3c3c 0%, #222222 100%);\n background-repeat: repeat-x;\n filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#ff3c3c3c', endColorstr='#ff222222', GradientType=0);\n filter: progid:DXImageTransform.Microsoft.gradient(enabled = false);\n}\n.navbar-inverse .navbar-nav > .open > a,\n.navbar-inverse .navbar-nav > .active > a {\n background-image: -webkit-linear-gradient(top, #080808 0%, #0f0f0f 100%);\n background-image: -o-linear-gradient(top, #080808 0%, #0f0f0f 100%);\n background-image: linear-gradient(to bottom, #080808 0%, #0f0f0f 100%);\n background-repeat: repeat-x;\n filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#ff080808', endColorstr='#ff0f0f0f', GradientType=0);\n -webkit-box-shadow: inset 0 3px 9px rgba(0, 0, 0, 0.25);\n box-shadow: inset 0 3px 9px rgba(0, 0, 0, 0.25);\n}\n.navbar-inverse .navbar-brand,\n.navbar-inverse .navbar-nav > li > a {\n text-shadow: 0 -1px 0 rgba(0, 0, 0, 0.25);\n}\n.navbar-static-top,\n.navbar-fixed-top,\n.navbar-fixed-bottom {\n border-radius: 0;\n}\n.alert {\n text-shadow: 0 1px 0 rgba(255, 255, 255, 0.2);\n -webkit-box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.25), 0 1px 2px rgba(0, 0, 0, 0.05);\n box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.25), 0 1px 2px rgba(0, 0, 0, 0.05);\n}\n.alert-success {\n background-image: -webkit-linear-gradient(top, #dff0d8 0%, #c8e5bc 100%);\n background-image: -o-linear-gradient(top, #dff0d8 0%, #c8e5bc 100%);\n background-image: linear-gradient(to bottom, #dff0d8 0%, #c8e5bc 100%);\n background-repeat: repeat-x;\n filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#ffdff0d8', endColorstr='#ffc8e5bc', GradientType=0);\n border-color: #b2dba1;\n}\n.alert-info {\n background-image: -webkit-linear-gradient(top, #d9edf7 0%, #b9def0 100%);\n background-image: -o-linear-gradient(top, #d9edf7 0%, #b9def0 100%);\n background-image: linear-gradient(to bottom, #d9edf7 0%, #b9def0 100%);\n background-repeat: repeat-x;\n filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#ffd9edf7', endColorstr='#ffb9def0', GradientType=0);\n border-color: #9acfea;\n}\n.alert-warning {\n background-image: -webkit-linear-gradient(top, #fcf8e3 0%, #f8efc0 100%);\n background-image: -o-linear-gradient(top, #fcf8e3 0%, #f8efc0 100%);\n background-image: linear-gradient(to bottom, #fcf8e3 0%, #f8efc0 100%);\n background-repeat: repeat-x;\n filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#fffcf8e3', endColorstr='#fff8efc0', GradientType=0);\n border-color: #f5e79e;\n}\n.alert-danger {\n background-image: -webkit-linear-gradient(top, #f2dede 0%, #e7c3c3 100%);\n background-image: -o-linear-gradient(top, #f2dede 0%, #e7c3c3 100%);\n background-image: linear-gradient(to bottom, #f2dede 0%, #e7c3c3 100%);\n background-repeat: repeat-x;\n filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#fff2dede', endColorstr='#ffe7c3c3', GradientType=0);\n border-color: #dca7a7;\n}\n.progress {\n background-image: -webkit-linear-gradient(top, #ebebeb 0%, #f5f5f5 100%);\n background-image: -o-linear-gradient(top, #ebebeb 0%, #f5f5f5 100%);\n background-image: linear-gradient(to bottom, #ebebeb 0%, #f5f5f5 100%);\n background-repeat: repeat-x;\n filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#ffebebeb', endColorstr='#fff5f5f5', GradientType=0);\n}\n.progress-bar {\n background-image: -webkit-linear-gradient(top, #428bca 0%, #3071a9 100%);\n background-image: -o-linear-gradient(top, #428bca 0%, #3071a9 100%);\n background-image: linear-gradient(to bottom, #428bca 0%, #3071a9 100%);\n background-repeat: repeat-x;\n filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#ff428bca', endColorstr='#ff3071a9', GradientType=0);\n}\n.progress-bar-success {\n background-image: -webkit-linear-gradient(top, #5cb85c 0%, #449d44 100%);\n background-image: -o-linear-gradient(top, #5cb85c 0%, #449d44 100%);\n background-image: linear-gradient(to bottom, #5cb85c 0%, #449d44 100%);\n background-repeat: repeat-x;\n filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#ff5cb85c', endColorstr='#ff449d44', GradientType=0);\n}\n.progress-bar-info {\n background-image: -webkit-linear-gradient(top, #5bc0de 0%, #31b0d5 100%);\n background-image: -o-linear-gradient(top, #5bc0de 0%, #31b0d5 100%);\n background-image: linear-gradient(to bottom, #5bc0de 0%, #31b0d5 100%);\n background-repeat: repeat-x;\n filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#ff5bc0de', endColorstr='#ff31b0d5', GradientType=0);\n}\n.progress-bar-warning {\n background-image: -webkit-linear-gradient(top, #f0ad4e 0%, #ec971f 100%);\n background-image: -o-linear-gradient(top, #f0ad4e 0%, #ec971f 100%);\n background-image: linear-gradient(to bottom, #f0ad4e 0%, #ec971f 100%);\n background-repeat: repeat-x;\n filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#fff0ad4e', endColorstr='#ffec971f', GradientType=0);\n}\n.progress-bar-danger {\n background-image: -webkit-linear-gradient(top, #d9534f 0%, #c9302c 100%);\n background-image: -o-linear-gradient(top, #d9534f 0%, #c9302c 100%);\n background-image: linear-gradient(to bottom, #d9534f 0%, #c9302c 100%);\n background-repeat: repeat-x;\n filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#ffd9534f', endColorstr='#ffc9302c', GradientType=0);\n}\n.progress-bar-striped {\n background-image: -webkit-linear-gradient(45deg, rgba(255, 255, 255, 0.15) 25%, transparent 25%, transparent 50%, rgba(255, 255, 255, 0.15) 50%, rgba(255, 255, 255, 0.15) 75%, transparent 75%, transparent);\n background-image: -o-linear-gradient(45deg, rgba(255, 255, 255, 0.15) 25%, transparent 25%, transparent 50%, rgba(255, 255, 255, 0.15) 50%, rgba(255, 255, 255, 0.15) 75%, transparent 75%, transparent);\n background-image: linear-gradient(45deg, rgba(255, 255, 255, 0.15) 25%, transparent 25%, transparent 50%, rgba(255, 255, 255, 0.15) 50%, rgba(255, 255, 255, 0.15) 75%, transparent 75%, transparent);\n}\n.list-group {\n border-radius: 4px;\n -webkit-box-shadow: 0 1px 2px rgba(0, 0, 0, 0.075);\n box-shadow: 0 1px 2px rgba(0, 0, 0, 0.075);\n}\n.list-group-item.active,\n.list-group-item.active:hover,\n.list-group-item.active:focus {\n text-shadow: 0 -1px 0 #3071a9;\n background-image: -webkit-linear-gradient(top, #428bca 0%, #3278b3 100%);\n background-image: -o-linear-gradient(top, #428bca 0%, #3278b3 100%);\n background-image: linear-gradient(to bottom, #428bca 0%, #3278b3 100%);\n background-repeat: repeat-x;\n filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#ff428bca', endColorstr='#ff3278b3', GradientType=0);\n border-color: #3278b3;\n}\n.list-group-item.active .badge,\n.list-group-item.active:hover .badge,\n.list-group-item.active:focus .badge {\n text-shadow: none;\n}\n.panel {\n -webkit-box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);\n box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);\n}\n.panel-default > .panel-heading {\n background-image: -webkit-linear-gradient(top, #f5f5f5 0%, #e8e8e8 100%);\n background-image: -o-linear-gradient(top, #f5f5f5 0%, #e8e8e8 100%);\n background-image: linear-gradient(to bottom, #f5f5f5 0%, #e8e8e8 100%);\n background-repeat: repeat-x;\n filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#fff5f5f5', endColorstr='#ffe8e8e8', GradientType=0);\n}\n.panel-primary > .panel-heading {\n background-image: -webkit-linear-gradient(top, #428bca 0%, #357ebd 100%);\n background-image: -o-linear-gradient(top, #428bca 0%, #357ebd 100%);\n background-image: linear-gradient(to bottom, #428bca 0%, #357ebd 100%);\n background-repeat: repeat-x;\n filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#ff428bca', endColorstr='#ff357ebd', GradientType=0);\n}\n.panel-success > .panel-heading {\n background-image: -webkit-linear-gradient(top, #dff0d8 0%, #d0e9c6 100%);\n background-image: -o-linear-gradient(top, #dff0d8 0%, #d0e9c6 100%);\n background-image: linear-gradient(to bottom, #dff0d8 0%, #d0e9c6 100%);\n background-repeat: repeat-x;\n filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#ffdff0d8', endColorstr='#ffd0e9c6', GradientType=0);\n}\n.panel-info > .panel-heading {\n background-image: -webkit-linear-gradient(top, #d9edf7 0%, #c4e3f3 100%);\n background-image: -o-linear-gradient(top, #d9edf7 0%, #c4e3f3 100%);\n background-image: linear-gradient(to bottom, #d9edf7 0%, #c4e3f3 100%);\n background-repeat: repeat-x;\n filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#ffd9edf7', endColorstr='#ffc4e3f3', GradientType=0);\n}\n.panel-warning > .panel-heading {\n background-image: -webkit-linear-gradient(top, #fcf8e3 0%, #faf2cc 100%);\n background-image: -o-linear-gradient(top, #fcf8e3 0%, #faf2cc 100%);\n background-image: linear-gradient(to bottom, #fcf8e3 0%, #faf2cc 100%);\n background-repeat: repeat-x;\n filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#fffcf8e3', endColorstr='#fffaf2cc', GradientType=0);\n}\n.panel-danger > .panel-heading {\n background-image: -webkit-linear-gradient(top, #f2dede 0%, #ebcccc 100%);\n background-image: -o-linear-gradient(top, #f2dede 0%, #ebcccc 100%);\n background-image: linear-gradient(to bottom, #f2dede 0%, #ebcccc 100%);\n background-repeat: repeat-x;\n filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#fff2dede', endColorstr='#ffebcccc', GradientType=0);\n}\n.well {\n background-image: -webkit-linear-gradient(top, #e8e8e8 0%, #f5f5f5 100%);\n background-image: -o-linear-gradient(top, #e8e8e8 0%, #f5f5f5 100%);\n background-image: linear-gradient(to bottom, #e8e8e8 0%, #f5f5f5 100%);\n background-repeat: repeat-x;\n filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#ffe8e8e8', endColorstr='#fff5f5f5', GradientType=0);\n border-color: #dcdcdc;\n -webkit-box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.05), 0 1px 0 rgba(255, 255, 255, 0.1);\n box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.05), 0 1px 0 rgba(255, 255, 255, 0.1);\n}\n/*# sourceMappingURL=bootstrap-theme.css.map */","// Gradients\n\n#gradient {\n\n // Horizontal gradient, from left to right\n //\n // Creates two color stops, start and end, by specifying a color and position for each color stop.\n // Color stops are not available in IE9 and below.\n .horizontal(@start-color: #555; @end-color: #333; @start-percent: 0%; @end-percent: 100%) {\n background-image: -webkit-linear-gradient(left, @start-color @start-percent, @end-color @end-percent); // Safari 5.1-6, Chrome 10+\n background-image: -o-linear-gradient(left, @start-color @start-percent, @end-color @end-percent); // Opera 12\n background-image: linear-gradient(to right, @start-color @start-percent, @end-color @end-percent); // Standard, IE10, Firefox 16+, Opera 12.10+, Safari 7+, Chrome 26+\n background-repeat: repeat-x;\n filter: e(%(\"progid:DXImageTransform.Microsoft.gradient(startColorstr='%d', endColorstr='%d', GradientType=1)\",argb(@start-color),argb(@end-color))); // IE9 and down\n }\n\n // Vertical gradient, from top to bottom\n //\n // Creates two color stops, start and end, by specifying a color and position for each color stop.\n // Color stops are not available in IE9 and below.\n .vertical(@start-color: #555; @end-color: #333; @start-percent: 0%; @end-percent: 100%) {\n background-image: -webkit-linear-gradient(top, @start-color @start-percent, @end-color @end-percent); // Safari 5.1-6, Chrome 10+\n background-image: -o-linear-gradient(top, @start-color @start-percent, @end-color @end-percent); // Opera 12\n background-image: linear-gradient(to bottom, @start-color @start-percent, @end-color @end-percent); // Standard, IE10, Firefox 16+, Opera 12.10+, Safari 7+, Chrome 26+\n background-repeat: repeat-x;\n filter: e(%(\"progid:DXImageTransform.Microsoft.gradient(startColorstr='%d', endColorstr='%d', GradientType=0)\",argb(@start-color),argb(@end-color))); // IE9 and down\n }\n\n .directional(@start-color: #555; @end-color: #333; @deg: 45deg) {\n background-repeat: repeat-x;\n background-image: -webkit-linear-gradient(@deg, @start-color, @end-color); // Safari 5.1-6, Chrome 10+\n background-image: -o-linear-gradient(@deg, @start-color, @end-color); // Opera 12\n background-image: linear-gradient(@deg, @start-color, @end-color); // Standard, IE10, Firefox 16+, Opera 12.10+, Safari 7+, Chrome 26+\n }\n .horizontal-three-colors(@start-color: #00b3ee; @mid-color: #7a43b6; @color-stop: 50%; @end-color: #c3325f) {\n background-image: -webkit-linear-gradient(left, @start-color, @mid-color @color-stop, @end-color);\n background-image: -o-linear-gradient(left, @start-color, @mid-color @color-stop, @end-color);\n background-image: linear-gradient(to right, @start-color, @mid-color @color-stop, @end-color);\n background-repeat: no-repeat;\n filter: e(%(\"progid:DXImageTransform.Microsoft.gradient(startColorstr='%d', endColorstr='%d', GradientType=1)\",argb(@start-color),argb(@end-color))); // IE9 and down, gets no color-stop at all for proper fallback\n }\n .vertical-three-colors(@start-color: #00b3ee; @mid-color: #7a43b6; @color-stop: 50%; @end-color: #c3325f) {\n background-image: -webkit-linear-gradient(@start-color, @mid-color @color-stop, @end-color);\n background-image: -o-linear-gradient(@start-color, @mid-color @color-stop, @end-color);\n background-image: linear-gradient(@start-color, @mid-color @color-stop, @end-color);\n background-repeat: no-repeat;\n filter: e(%(\"progid:DXImageTransform.Microsoft.gradient(startColorstr='%d', endColorstr='%d', GradientType=0)\",argb(@start-color),argb(@end-color))); // IE9 and down, gets no color-stop at all for proper fallback\n }\n .radial(@inner-color: #555; @outer-color: #333) {\n background-image: -webkit-radial-gradient(circle, @inner-color, @outer-color);\n background-image: radial-gradient(circle, @inner-color, @outer-color);\n background-repeat: no-repeat;\n }\n .striped(@color: rgba(255,255,255,.15); @angle: 45deg) {\n background-image: -webkit-linear-gradient(@angle, @color 25%, transparent 25%, transparent 50%, @color 50%, @color 75%, transparent 75%, transparent);\n background-image: -o-linear-gradient(@angle, @color 25%, transparent 25%, transparent 50%, @color 50%, @color 75%, transparent 75%, transparent);\n background-image: linear-gradient(@angle, @color 25%, transparent 25%, transparent 50%, @color 50%, @color 75%, transparent 75%, transparent);\n }\n}\n","// Reset filters for IE\n//\n// When you need to remove a gradient background, do not forget to use this to reset\n// the IE filter for IE9 and below.\n\n.reset-filter() {\n filter: e(%(\"progid:DXImageTransform.Microsoft.gradient(enabled = false)\"));\n}\n"]} \ No newline at end of file diff --git a/docs/dist/css/bootstrap-theme.min.css b/docs/dist/css/bootstrap-theme.min.css deleted file mode 100755 index 11784e7f0..000000000 --- a/docs/dist/css/bootstrap-theme.min.css +++ /dev/null @@ -1,5 +0,0 @@ -/*! - * Bootstrap v3.3.0 (http://getbootstrap.com) - * Copyright 2011-2014 Twitter, Inc. - * Licensed under MIT (https://github.com/twbs/bootstrap/blob/master/LICENSE) - */.btn-default,.btn-primary,.btn-success,.btn-info,.btn-warning,.btn-danger{text-shadow:0 -1px 0 rgba(0,0,0,.2);-webkit-box-shadow:inset 0 1px 0 rgba(255,255,255,.15),0 1px 1px rgba(0,0,0,.075);box-shadow:inset 0 1px 0 rgba(255,255,255,.15),0 1px 1px rgba(0,0,0,.075)}.btn-default:active,.btn-primary:active,.btn-success:active,.btn-info:active,.btn-warning:active,.btn-danger:active,.btn-default.active,.btn-primary.active,.btn-success.active,.btn-info.active,.btn-warning.active,.btn-danger.active{-webkit-box-shadow:inset 0 3px 5px rgba(0,0,0,.125);box-shadow:inset 0 3px 5px rgba(0,0,0,.125)}.btn-default .badge,.btn-primary .badge,.btn-success .badge,.btn-info .badge,.btn-warning .badge,.btn-danger .badge{text-shadow:none}.btn:active,.btn.active{background-image:none}.btn-default{text-shadow:0 1px 0 #fff;background-image:-webkit-linear-gradient(top,#fff 0,#e0e0e0 100%);background-image:-o-linear-gradient(top,#fff 0,#e0e0e0 100%);background-image:-webkit-gradient(linear,left top,left bottom,from(#fff),to(#e0e0e0));background-image:linear-gradient(to bottom,#fff 0,#e0e0e0 100%);filter:progid:DXImageTransform.Microsoft.gradient(startColorstr='#ffffffff', endColorstr='#ffe0e0e0', GradientType=0);filter:progid:DXImageTransform.Microsoft.gradient(enabled=false);background-repeat:repeat-x;border-color:#dbdbdb;border-color:#ccc}.btn-default:hover,.btn-default:focus{background-color:#e0e0e0;background-position:0 -15px}.btn-default:active,.btn-default.active{background-color:#e0e0e0;border-color:#dbdbdb}.btn-default:disabled,.btn-default[disabled]{background-color:#e0e0e0;background-image:none}.btn-primary{background-image:-webkit-linear-gradient(top,#428bca 0,#2d6ca2 100%);background-image:-o-linear-gradient(top,#428bca 0,#2d6ca2 100%);background-image:-webkit-gradient(linear,left top,left bottom,from(#428bca),to(#2d6ca2));background-image:linear-gradient(to bottom,#428bca 0,#2d6ca2 100%);filter:progid:DXImageTransform.Microsoft.gradient(startColorstr='#ff428bca', endColorstr='#ff2d6ca2', GradientType=0);filter:progid:DXImageTransform.Microsoft.gradient(enabled=false);background-repeat:repeat-x;border-color:#2b669a}.btn-primary:hover,.btn-primary:focus{background-color:#2d6ca2;background-position:0 -15px}.btn-primary:active,.btn-primary.active{background-color:#2d6ca2;border-color:#2b669a}.btn-primary:disabled,.btn-primary[disabled]{background-color:#2d6ca2;background-image:none}.btn-success{background-image:-webkit-linear-gradient(top,#5cb85c 0,#419641 100%);background-image:-o-linear-gradient(top,#5cb85c 0,#419641 100%);background-image:-webkit-gradient(linear,left top,left bottom,from(#5cb85c),to(#419641));background-image:linear-gradient(to bottom,#5cb85c 0,#419641 100%);filter:progid:DXImageTransform.Microsoft.gradient(startColorstr='#ff5cb85c', endColorstr='#ff419641', GradientType=0);filter:progid:DXImageTransform.Microsoft.gradient(enabled=false);background-repeat:repeat-x;border-color:#3e8f3e}.btn-success:hover,.btn-success:focus{background-color:#419641;background-position:0 -15px}.btn-success:active,.btn-success.active{background-color:#419641;border-color:#3e8f3e}.btn-success:disabled,.btn-success[disabled]{background-color:#419641;background-image:none}.btn-info{background-image:-webkit-linear-gradient(top,#5bc0de 0,#2aabd2 100%);background-image:-o-linear-gradient(top,#5bc0de 0,#2aabd2 100%);background-image:-webkit-gradient(linear,left top,left bottom,from(#5bc0de),to(#2aabd2));background-image:linear-gradient(to bottom,#5bc0de 0,#2aabd2 100%);filter:progid:DXImageTransform.Microsoft.gradient(startColorstr='#ff5bc0de', endColorstr='#ff2aabd2', GradientType=0);filter:progid:DXImageTransform.Microsoft.gradient(enabled=false);background-repeat:repeat-x;border-color:#28a4c9}.btn-info:hover,.btn-info:focus{background-color:#2aabd2;background-position:0 -15px}.btn-info:active,.btn-info.active{background-color:#2aabd2;border-color:#28a4c9}.btn-info:disabled,.btn-info[disabled]{background-color:#2aabd2;background-image:none}.btn-warning{background-image:-webkit-linear-gradient(top,#f0ad4e 0,#eb9316 100%);background-image:-o-linear-gradient(top,#f0ad4e 0,#eb9316 100%);background-image:-webkit-gradient(linear,left top,left bottom,from(#f0ad4e),to(#eb9316));background-image:linear-gradient(to bottom,#f0ad4e 0,#eb9316 100%);filter:progid:DXImageTransform.Microsoft.gradient(startColorstr='#fff0ad4e', endColorstr='#ffeb9316', GradientType=0);filter:progid:DXImageTransform.Microsoft.gradient(enabled=false);background-repeat:repeat-x;border-color:#e38d13}.btn-warning:hover,.btn-warning:focus{background-color:#eb9316;background-position:0 -15px}.btn-warning:active,.btn-warning.active{background-color:#eb9316;border-color:#e38d13}.btn-warning:disabled,.btn-warning[disabled]{background-color:#eb9316;background-image:none}.btn-danger{background-image:-webkit-linear-gradient(top,#d9534f 0,#c12e2a 100%);background-image:-o-linear-gradient(top,#d9534f 0,#c12e2a 100%);background-image:-webkit-gradient(linear,left top,left bottom,from(#d9534f),to(#c12e2a));background-image:linear-gradient(to bottom,#d9534f 0,#c12e2a 100%);filter:progid:DXImageTransform.Microsoft.gradient(startColorstr='#ffd9534f', endColorstr='#ffc12e2a', GradientType=0);filter:progid:DXImageTransform.Microsoft.gradient(enabled=false);background-repeat:repeat-x;border-color:#b92c28}.btn-danger:hover,.btn-danger:focus{background-color:#c12e2a;background-position:0 -15px}.btn-danger:active,.btn-danger.active{background-color:#c12e2a;border-color:#b92c28}.btn-danger:disabled,.btn-danger[disabled]{background-color:#c12e2a;background-image:none}.thumbnail,.img-thumbnail{-webkit-box-shadow:0 1px 2px rgba(0,0,0,.075);box-shadow:0 1px 2px rgba(0,0,0,.075)}.dropdown-menu>li>a:hover,.dropdown-menu>li>a:focus{background-color:#e8e8e8;background-image:-webkit-linear-gradient(top,#f5f5f5 0,#e8e8e8 100%);background-image:-o-linear-gradient(top,#f5f5f5 0,#e8e8e8 100%);background-image:-webkit-gradient(linear,left top,left bottom,from(#f5f5f5),to(#e8e8e8));background-image:linear-gradient(to bottom,#f5f5f5 0,#e8e8e8 100%);filter:progid:DXImageTransform.Microsoft.gradient(startColorstr='#fff5f5f5', endColorstr='#ffe8e8e8', GradientType=0);background-repeat:repeat-x}.dropdown-menu>.active>a,.dropdown-menu>.active>a:hover,.dropdown-menu>.active>a:focus{background-color:#357ebd;background-image:-webkit-linear-gradient(top,#428bca 0,#357ebd 100%);background-image:-o-linear-gradient(top,#428bca 0,#357ebd 100%);background-image:-webkit-gradient(linear,left top,left bottom,from(#428bca),to(#357ebd));background-image:linear-gradient(to bottom,#428bca 0,#357ebd 100%);filter:progid:DXImageTransform.Microsoft.gradient(startColorstr='#ff428bca', endColorstr='#ff357ebd', GradientType=0);background-repeat:repeat-x}.navbar-default{background-image:-webkit-linear-gradient(top,#fff 0,#f8f8f8 100%);background-image:-o-linear-gradient(top,#fff 0,#f8f8f8 100%);background-image:-webkit-gradient(linear,left top,left bottom,from(#fff),to(#f8f8f8));background-image:linear-gradient(to bottom,#fff 0,#f8f8f8 100%);filter:progid:DXImageTransform.Microsoft.gradient(startColorstr='#ffffffff', endColorstr='#fff8f8f8', GradientType=0);filter:progid:DXImageTransform.Microsoft.gradient(enabled=false);background-repeat:repeat-x;border-radius:4px;-webkit-box-shadow:inset 0 1px 0 rgba(255,255,255,.15),0 1px 5px rgba(0,0,0,.075);box-shadow:inset 0 1px 0 rgba(255,255,255,.15),0 1px 5px rgba(0,0,0,.075)}.navbar-default .navbar-nav>.open>a,.navbar-default .navbar-nav>.active>a{background-image:-webkit-linear-gradient(top,#dbdbdb 0,#e2e2e2 100%);background-image:-o-linear-gradient(top,#dbdbdb 0,#e2e2e2 100%);background-image:-webkit-gradient(linear,left top,left bottom,from(#dbdbdb),to(#e2e2e2));background-image:linear-gradient(to bottom,#dbdbdb 0,#e2e2e2 100%);filter:progid:DXImageTransform.Microsoft.gradient(startColorstr='#ffdbdbdb', endColorstr='#ffe2e2e2', GradientType=0);background-repeat:repeat-x;-webkit-box-shadow:inset 0 3px 9px rgba(0,0,0,.075);box-shadow:inset 0 3px 9px rgba(0,0,0,.075)}.navbar-brand,.navbar-nav>li>a{text-shadow:0 1px 0 rgba(255,255,255,.25)}.navbar-inverse{background-image:-webkit-linear-gradient(top,#3c3c3c 0,#222 100%);background-image:-o-linear-gradient(top,#3c3c3c 0,#222 100%);background-image:-webkit-gradient(linear,left top,left bottom,from(#3c3c3c),to(#222));background-image:linear-gradient(to bottom,#3c3c3c 0,#222 100%);filter:progid:DXImageTransform.Microsoft.gradient(startColorstr='#ff3c3c3c', endColorstr='#ff222222', GradientType=0);filter:progid:DXImageTransform.Microsoft.gradient(enabled=false);background-repeat:repeat-x}.navbar-inverse .navbar-nav>.open>a,.navbar-inverse .navbar-nav>.active>a{background-image:-webkit-linear-gradient(top,#080808 0,#0f0f0f 100%);background-image:-o-linear-gradient(top,#080808 0,#0f0f0f 100%);background-image:-webkit-gradient(linear,left top,left bottom,from(#080808),to(#0f0f0f));background-image:linear-gradient(to bottom,#080808 0,#0f0f0f 100%);filter:progid:DXImageTransform.Microsoft.gradient(startColorstr='#ff080808', endColorstr='#ff0f0f0f', GradientType=0);background-repeat:repeat-x;-webkit-box-shadow:inset 0 3px 9px rgba(0,0,0,.25);box-shadow:inset 0 3px 9px rgba(0,0,0,.25)}.navbar-inverse .navbar-brand,.navbar-inverse .navbar-nav>li>a{text-shadow:0 -1px 0 rgba(0,0,0,.25)}.navbar-static-top,.navbar-fixed-top,.navbar-fixed-bottom{border-radius:0}.alert{text-shadow:0 1px 0 rgba(255,255,255,.2);-webkit-box-shadow:inset 0 1px 0 rgba(255,255,255,.25),0 1px 2px rgba(0,0,0,.05);box-shadow:inset 0 1px 0 rgba(255,255,255,.25),0 1px 2px rgba(0,0,0,.05)}.alert-success{background-image:-webkit-linear-gradient(top,#dff0d8 0,#c8e5bc 100%);background-image:-o-linear-gradient(top,#dff0d8 0,#c8e5bc 100%);background-image:-webkit-gradient(linear,left top,left bottom,from(#dff0d8),to(#c8e5bc));background-image:linear-gradient(to bottom,#dff0d8 0,#c8e5bc 100%);filter:progid:DXImageTransform.Microsoft.gradient(startColorstr='#ffdff0d8', endColorstr='#ffc8e5bc', GradientType=0);background-repeat:repeat-x;border-color:#b2dba1}.alert-info{background-image:-webkit-linear-gradient(top,#d9edf7 0,#b9def0 100%);background-image:-o-linear-gradient(top,#d9edf7 0,#b9def0 100%);background-image:-webkit-gradient(linear,left top,left bottom,from(#d9edf7),to(#b9def0));background-image:linear-gradient(to bottom,#d9edf7 0,#b9def0 100%);filter:progid:DXImageTransform.Microsoft.gradient(startColorstr='#ffd9edf7', endColorstr='#ffb9def0', GradientType=0);background-repeat:repeat-x;border-color:#9acfea}.alert-warning{background-image:-webkit-linear-gradient(top,#fcf8e3 0,#f8efc0 100%);background-image:-o-linear-gradient(top,#fcf8e3 0,#f8efc0 100%);background-image:-webkit-gradient(linear,left top,left bottom,from(#fcf8e3),to(#f8efc0));background-image:linear-gradient(to bottom,#fcf8e3 0,#f8efc0 100%);filter:progid:DXImageTransform.Microsoft.gradient(startColorstr='#fffcf8e3', endColorstr='#fff8efc0', GradientType=0);background-repeat:repeat-x;border-color:#f5e79e}.alert-danger{background-image:-webkit-linear-gradient(top,#f2dede 0,#e7c3c3 100%);background-image:-o-linear-gradient(top,#f2dede 0,#e7c3c3 100%);background-image:-webkit-gradient(linear,left top,left bottom,from(#f2dede),to(#e7c3c3));background-image:linear-gradient(to bottom,#f2dede 0,#e7c3c3 100%);filter:progid:DXImageTransform.Microsoft.gradient(startColorstr='#fff2dede', endColorstr='#ffe7c3c3', GradientType=0);background-repeat:repeat-x;border-color:#dca7a7}.progress{background-image:-webkit-linear-gradient(top,#ebebeb 0,#f5f5f5 100%);background-image:-o-linear-gradient(top,#ebebeb 0,#f5f5f5 100%);background-image:-webkit-gradient(linear,left top,left bottom,from(#ebebeb),to(#f5f5f5));background-image:linear-gradient(to bottom,#ebebeb 0,#f5f5f5 100%);filter:progid:DXImageTransform.Microsoft.gradient(startColorstr='#ffebebeb', endColorstr='#fff5f5f5', GradientType=0);background-repeat:repeat-x}.progress-bar{background-image:-webkit-linear-gradient(top,#428bca 0,#3071a9 100%);background-image:-o-linear-gradient(top,#428bca 0,#3071a9 100%);background-image:-webkit-gradient(linear,left top,left bottom,from(#428bca),to(#3071a9));background-image:linear-gradient(to bottom,#428bca 0,#3071a9 100%);filter:progid:DXImageTransform.Microsoft.gradient(startColorstr='#ff428bca', endColorstr='#ff3071a9', GradientType=0);background-repeat:repeat-x}.progress-bar-success{background-image:-webkit-linear-gradient(top,#5cb85c 0,#449d44 100%);background-image:-o-linear-gradient(top,#5cb85c 0,#449d44 100%);background-image:-webkit-gradient(linear,left top,left bottom,from(#5cb85c),to(#449d44));background-image:linear-gradient(to bottom,#5cb85c 0,#449d44 100%);filter:progid:DXImageTransform.Microsoft.gradient(startColorstr='#ff5cb85c', endColorstr='#ff449d44', GradientType=0);background-repeat:repeat-x}.progress-bar-info{background-image:-webkit-linear-gradient(top,#5bc0de 0,#31b0d5 100%);background-image:-o-linear-gradient(top,#5bc0de 0,#31b0d5 100%);background-image:-webkit-gradient(linear,left top,left bottom,from(#5bc0de),to(#31b0d5));background-image:linear-gradient(to bottom,#5bc0de 0,#31b0d5 100%);filter:progid:DXImageTransform.Microsoft.gradient(startColorstr='#ff5bc0de', endColorstr='#ff31b0d5', GradientType=0);background-repeat:repeat-x}.progress-bar-warning{background-image:-webkit-linear-gradient(top,#f0ad4e 0,#ec971f 100%);background-image:-o-linear-gradient(top,#f0ad4e 0,#ec971f 100%);background-image:-webkit-gradient(linear,left top,left bottom,from(#f0ad4e),to(#ec971f));background-image:linear-gradient(to bottom,#f0ad4e 0,#ec971f 100%);filter:progid:DXImageTransform.Microsoft.gradient(startColorstr='#fff0ad4e', endColorstr='#ffec971f', GradientType=0);background-repeat:repeat-x}.progress-bar-danger{background-image:-webkit-linear-gradient(top,#d9534f 0,#c9302c 100%);background-image:-o-linear-gradient(top,#d9534f 0,#c9302c 100%);background-image:-webkit-gradient(linear,left top,left bottom,from(#d9534f),to(#c9302c));background-image:linear-gradient(to bottom,#d9534f 0,#c9302c 100%);filter:progid:DXImageTransform.Microsoft.gradient(startColorstr='#ffd9534f', endColorstr='#ffc9302c', GradientType=0);background-repeat:repeat-x}.progress-bar-striped{background-image:-webkit-linear-gradient(45deg,rgba(255,255,255,.15) 25%,transparent 25%,transparent 50%,rgba(255,255,255,.15) 50%,rgba(255,255,255,.15) 75%,transparent 75%,transparent);background-image:-o-linear-gradient(45deg,rgba(255,255,255,.15) 25%,transparent 25%,transparent 50%,rgba(255,255,255,.15) 50%,rgba(255,255,255,.15) 75%,transparent 75%,transparent);background-image:linear-gradient(45deg,rgba(255,255,255,.15) 25%,transparent 25%,transparent 50%,rgba(255,255,255,.15) 50%,rgba(255,255,255,.15) 75%,transparent 75%,transparent)}.list-group{border-radius:4px;-webkit-box-shadow:0 1px 2px rgba(0,0,0,.075);box-shadow:0 1px 2px rgba(0,0,0,.075)}.list-group-item.active,.list-group-item.active:hover,.list-group-item.active:focus{text-shadow:0 -1px 0 #3071a9;background-image:-webkit-linear-gradient(top,#428bca 0,#3278b3 100%);background-image:-o-linear-gradient(top,#428bca 0,#3278b3 100%);background-image:-webkit-gradient(linear,left top,left bottom,from(#428bca),to(#3278b3));background-image:linear-gradient(to bottom,#428bca 0,#3278b3 100%);filter:progid:DXImageTransform.Microsoft.gradient(startColorstr='#ff428bca', endColorstr='#ff3278b3', GradientType=0);background-repeat:repeat-x;border-color:#3278b3}.list-group-item.active .badge,.list-group-item.active:hover .badge,.list-group-item.active:focus .badge{text-shadow:none}.panel{-webkit-box-shadow:0 1px 2px rgba(0,0,0,.05);box-shadow:0 1px 2px rgba(0,0,0,.05)}.panel-default>.panel-heading{background-image:-webkit-linear-gradient(top,#f5f5f5 0,#e8e8e8 100%);background-image:-o-linear-gradient(top,#f5f5f5 0,#e8e8e8 100%);background-image:-webkit-gradient(linear,left top,left bottom,from(#f5f5f5),to(#e8e8e8));background-image:linear-gradient(to bottom,#f5f5f5 0,#e8e8e8 100%);filter:progid:DXImageTransform.Microsoft.gradient(startColorstr='#fff5f5f5', endColorstr='#ffe8e8e8', GradientType=0);background-repeat:repeat-x}.panel-primary>.panel-heading{background-image:-webkit-linear-gradient(top,#428bca 0,#357ebd 100%);background-image:-o-linear-gradient(top,#428bca 0,#357ebd 100%);background-image:-webkit-gradient(linear,left top,left bottom,from(#428bca),to(#357ebd));background-image:linear-gradient(to bottom,#428bca 0,#357ebd 100%);filter:progid:DXImageTransform.Microsoft.gradient(startColorstr='#ff428bca', endColorstr='#ff357ebd', GradientType=0);background-repeat:repeat-x}.panel-success>.panel-heading{background-image:-webkit-linear-gradient(top,#dff0d8 0,#d0e9c6 100%);background-image:-o-linear-gradient(top,#dff0d8 0,#d0e9c6 100%);background-image:-webkit-gradient(linear,left top,left bottom,from(#dff0d8),to(#d0e9c6));background-image:linear-gradient(to bottom,#dff0d8 0,#d0e9c6 100%);filter:progid:DXImageTransform.Microsoft.gradient(startColorstr='#ffdff0d8', endColorstr='#ffd0e9c6', GradientType=0);background-repeat:repeat-x}.panel-info>.panel-heading{background-image:-webkit-linear-gradient(top,#d9edf7 0,#c4e3f3 100%);background-image:-o-linear-gradient(top,#d9edf7 0,#c4e3f3 100%);background-image:-webkit-gradient(linear,left top,left bottom,from(#d9edf7),to(#c4e3f3));background-image:linear-gradient(to bottom,#d9edf7 0,#c4e3f3 100%);filter:progid:DXImageTransform.Microsoft.gradient(startColorstr='#ffd9edf7', endColorstr='#ffc4e3f3', GradientType=0);background-repeat:repeat-x}.panel-warning>.panel-heading{background-image:-webkit-linear-gradient(top,#fcf8e3 0,#faf2cc 100%);background-image:-o-linear-gradient(top,#fcf8e3 0,#faf2cc 100%);background-image:-webkit-gradient(linear,left top,left bottom,from(#fcf8e3),to(#faf2cc));background-image:linear-gradient(to bottom,#fcf8e3 0,#faf2cc 100%);filter:progid:DXImageTransform.Microsoft.gradient(startColorstr='#fffcf8e3', endColorstr='#fffaf2cc', GradientType=0);background-repeat:repeat-x}.panel-danger>.panel-heading{background-image:-webkit-linear-gradient(top,#f2dede 0,#ebcccc 100%);background-image:-o-linear-gradient(top,#f2dede 0,#ebcccc 100%);background-image:-webkit-gradient(linear,left top,left bottom,from(#f2dede),to(#ebcccc));background-image:linear-gradient(to bottom,#f2dede 0,#ebcccc 100%);filter:progid:DXImageTransform.Microsoft.gradient(startColorstr='#fff2dede', endColorstr='#ffebcccc', GradientType=0);background-repeat:repeat-x}.well{background-image:-webkit-linear-gradient(top,#e8e8e8 0,#f5f5f5 100%);background-image:-o-linear-gradient(top,#e8e8e8 0,#f5f5f5 100%);background-image:-webkit-gradient(linear,left top,left bottom,from(#e8e8e8),to(#f5f5f5));background-image:linear-gradient(to bottom,#e8e8e8 0,#f5f5f5 100%);filter:progid:DXImageTransform.Microsoft.gradient(startColorstr='#ffe8e8e8', endColorstr='#fff5f5f5', GradientType=0);background-repeat:repeat-x;border-color:#dcdcdc;-webkit-box-shadow:inset 0 1px 3px rgba(0,0,0,.05),0 1px 0 rgba(255,255,255,.1);box-shadow:inset 0 1px 3px rgba(0,0,0,.05),0 1px 0 rgba(255,255,255,.1)} diff --git a/docs/dist/css/bootstrap.css b/docs/dist/css/bootstrap.css deleted file mode 100755 index 4165d414d..000000000 --- a/docs/dist/css/bootstrap.css +++ /dev/null @@ -1,6358 +0,0 @@ -/*! - * Bootstrap v3.3.0 (http://getbootstrap.com) - * Copyright 2011-2014 Twitter, Inc. - * Licensed under MIT (https://github.com/twbs/bootstrap/blob/master/LICENSE) - */ - -/*! normalize.css v3.0.2 | MIT License | git.io/normalize */ -html { - font-family: sans-serif; - -webkit-text-size-adjust: 100%; - -ms-text-size-adjust: 100%; -} -body { - margin: 0; -} -article, -aside, -details, -figcaption, -figure, -footer, -header, -hgroup, -main, -menu, -nav, -section, -summary { - display: block; -} -audio, -canvas, -progress, -video { - display: inline-block; - vertical-align: baseline; -} -audio:not([controls]) { - display: none; - height: 0; -} -[hidden], -template { - display: none; -} -a { - background-color: transparent; -} -a:active, -a:hover { - outline: 0; -} -abbr[title] { - border-bottom: 1px dotted; -} -b, -strong { - font-weight: bold; -} -dfn { - font-style: italic; -} -h1 { - margin: .67em 0; - font-size: 2em; -} -mark { - color: #000; - background: #ff0; -} -small { - font-size: 80%; -} -sub, -sup { - position: relative; - font-size: 75%; - line-height: 0; - vertical-align: baseline; -} -sup { - top: -.5em; -} -sub { - bottom: -.25em; -} -img { - border: 0; -} -svg:not(:root) { - overflow: hidden; -} -figure { - margin: 1em 40px; -} -hr { - height: 0; - -webkit-box-sizing: content-box; - -moz-box-sizing: content-box; - box-sizing: content-box; -} -pre { - overflow: auto; -} -code, -kbd, -pre, -samp { - font-family: monospace, monospace; - font-size: 1em; -} -button, -input, -optgroup, -select, -textarea { - margin: 0; - font: inherit; - color: inherit; -} -button { - overflow: visible; -} -button, -select { - text-transform: none; -} -button, -html input[type="button"], -input[type="reset"], -input[type="submit"] { - -webkit-appearance: button; - cursor: pointer; -} -button[disabled], -html input[disabled] { - cursor: default; -} -button::-moz-focus-inner, -input::-moz-focus-inner { - padding: 0; - border: 0; -} -input { - line-height: normal; -} -input[type="checkbox"], -input[type="radio"] { - -webkit-box-sizing: border-box; - -moz-box-sizing: border-box; - box-sizing: border-box; - padding: 0; -} -input[type="number"]::-webkit-inner-spin-button, -input[type="number"]::-webkit-outer-spin-button { - height: auto; -} -input[type="search"] { - -webkit-box-sizing: content-box; - -moz-box-sizing: content-box; - box-sizing: content-box; - -webkit-appearance: textfield; -} -input[type="search"]::-webkit-search-cancel-button, -input[type="search"]::-webkit-search-decoration { - -webkit-appearance: none; -} -fieldset { - padding: .35em .625em .75em; - margin: 0 2px; - border: 1px solid #c0c0c0; -} -legend { - padding: 0; - border: 0; -} -textarea { - overflow: auto; -} -optgroup { - font-weight: bold; -} -table { - border-spacing: 0; - border-collapse: collapse; -} -td, -th { - padding: 0; -} -/*! Source: https://github.com/h5bp/html5-boilerplate/blob/master/src/css/main.css */ -@media print { - *, - *:before, - *:after { - color: #000 !important; - text-shadow: none !important; - background: transparent !important; - -webkit-box-shadow: none !important; - box-shadow: none !important; - } - a, - a:visited { - text-decoration: underline; - } - a[href]:after { - content: " (" attr(href) ")"; - } - abbr[title]:after { - content: " (" attr(title) ")"; - } - a[href^="#"]:after, - a[href^="javascript:"]:after { - content: ""; - } - pre, - blockquote { - border: 1px solid #999; - - page-break-inside: avoid; - } - thead { - display: table-header-group; - } - tr, - img { - page-break-inside: avoid; - } - img { - max-width: 100% !important; - } - p, - h2, - h3 { - orphans: 3; - widows: 3; - } - h2, - h3 { - page-break-after: avoid; - } - select { - background: #fff !important; - } - .navbar { - display: none; - } - .btn > .caret, - .dropup > .btn > .caret { - border-top-color: #000 !important; - } - .label { - border: 1px solid #000; - } - .table { - border-collapse: collapse !important; - } - .table td, - .table th { - background-color: #fff !important; - } - .table-bordered th, - .table-bordered td { - border: 1px solid #ddd !important; - } -} -@font-face { - font-family: 'Glyphicons Halflings'; - - src: url('../fonts/glyphicons-halflings-regular.eot'); - src: url('../fonts/glyphicons-halflings-regular.eot?#iefix') format('embedded-opentype'), url('../fonts/glyphicons-halflings-regular.woff') format('woff'), url('../fonts/glyphicons-halflings-regular.ttf') format('truetype'), url('../fonts/glyphicons-halflings-regular.svg#glyphicons_halflingsregular') format('svg'); -} -.glyphicon { - position: relative; - top: 1px; - display: inline-block; - font-family: 'Glyphicons Halflings'; - font-style: normal; - font-weight: normal; - line-height: 1; - - -webkit-font-smoothing: antialiased; - -moz-osx-font-smoothing: grayscale; -} -.glyphicon-asterisk:before { - content: "\2a"; -} -.glyphicon-plus:before { - content: "\2b"; -} -.glyphicon-euro:before, -.glyphicon-eur:before { - content: "\20ac"; -} -.glyphicon-minus:before { - content: "\2212"; -} -.glyphicon-cloud:before { - content: "\2601"; -} -.glyphicon-envelope:before { - content: "\2709"; -} -.glyphicon-pencil:before { - content: "\270f"; -} -.glyphicon-glass:before { - content: "\e001"; -} -.glyphicon-music:before { - content: "\e002"; -} -.glyphicon-search:before { - content: "\e003"; -} -.glyphicon-heart:before { - content: "\e005"; -} -.glyphicon-star:before { - content: "\e006"; -} -.glyphicon-star-empty:before { - content: "\e007"; -} -.glyphicon-user:before { - content: "\e008"; -} -.glyphicon-film:before { - content: "\e009"; -} -.glyphicon-th-large:before { - content: "\e010"; -} -.glyphicon-th:before { - content: "\e011"; -} -.glyphicon-th-list:before { - content: "\e012"; -} -.glyphicon-ok:before { - content: "\e013"; -} -.glyphicon-remove:before { - content: "\e014"; -} -.glyphicon-zoom-in:before { - content: "\e015"; -} -.glyphicon-zoom-out:before { - content: "\e016"; -} -.glyphicon-off:before { - content: "\e017"; -} -.glyphicon-signal:before { - content: "\e018"; -} -.glyphicon-cog:before { - content: "\e019"; -} -.glyphicon-trash:before { - content: "\e020"; -} -.glyphicon-home:before { - content: "\e021"; -} -.glyphicon-file:before { - content: "\e022"; -} -.glyphicon-time:before { - content: "\e023"; -} -.glyphicon-road:before { - content: "\e024"; -} -.glyphicon-download-alt:before { - content: "\e025"; -} -.glyphicon-download:before { - content: "\e026"; -} -.glyphicon-upload:before { - content: "\e027"; -} -.glyphicon-inbox:before { - content: "\e028"; -} -.glyphicon-play-circle:before { - content: "\e029"; -} -.glyphicon-repeat:before { - content: "\e030"; -} -.glyphicon-refresh:before { - content: "\e031"; -} -.glyphicon-list-alt:before { - content: "\e032"; -} -.glyphicon-lock:before { - content: "\e033"; -} -.glyphicon-flag:before { - content: "\e034"; -} -.glyphicon-headphones:before { - content: "\e035"; -} -.glyphicon-volume-off:before { - content: "\e036"; -} -.glyphicon-volume-down:before { - content: "\e037"; -} -.glyphicon-volume-up:before { - content: "\e038"; -} -.glyphicon-qrcode:before { - content: "\e039"; -} -.glyphicon-barcode:before { - content: "\e040"; -} -.glyphicon-tag:before { - content: "\e041"; -} -.glyphicon-tags:before { - content: "\e042"; -} -.glyphicon-book:before { - content: "\e043"; -} -.glyphicon-bookmark:before { - content: "\e044"; -} -.glyphicon-print:before { - content: "\e045"; -} -.glyphicon-camera:before { - content: "\e046"; -} -.glyphicon-font:before { - content: "\e047"; -} -.glyphicon-bold:before { - content: "\e048"; -} -.glyphicon-italic:before { - content: "\e049"; -} -.glyphicon-text-height:before { - content: "\e050"; -} -.glyphicon-text-width:before { - content: "\e051"; -} -.glyphicon-align-left:before { - content: "\e052"; -} -.glyphicon-align-center:before { - content: "\e053"; -} -.glyphicon-align-right:before { - content: "\e054"; -} -.glyphicon-align-justify:before { - content: "\e055"; -} -.glyphicon-list:before { - content: "\e056"; -} -.glyphicon-indent-left:before { - content: "\e057"; -} -.glyphicon-indent-right:before { - content: "\e058"; -} -.glyphicon-facetime-video:before { - content: "\e059"; -} -.glyphicon-picture:before { - content: "\e060"; -} -.glyphicon-map-marker:before { - content: "\e062"; -} -.glyphicon-adjust:before { - content: "\e063"; -} -.glyphicon-tint:before { - content: "\e064"; -} -.glyphicon-edit:before { - content: "\e065"; -} -.glyphicon-share:before { - content: "\e066"; -} -.glyphicon-check:before { - content: "\e067"; -} -.glyphicon-move:before { - content: "\e068"; -} -.glyphicon-step-backward:before { - content: "\e069"; -} -.glyphicon-fast-backward:before { - content: "\e070"; -} -.glyphicon-backward:before { - content: "\e071"; -} -.glyphicon-play:before { - content: "\e072"; -} -.glyphicon-pause:before { - content: "\e073"; -} -.glyphicon-stop:before { - content: "\e074"; -} -.glyphicon-forward:before { - content: "\e075"; -} -.glyphicon-fast-forward:before { - content: "\e076"; -} -.glyphicon-step-forward:before { - content: "\e077"; -} -.glyphicon-eject:before { - content: "\e078"; -} -.glyphicon-chevron-left:before { - content: "\e079"; -} -.glyphicon-chevron-right:before { - content: "\e080"; -} -.glyphicon-plus-sign:before { - content: "\e081"; -} -.glyphicon-minus-sign:before { - content: "\e082"; -} -.glyphicon-remove-sign:before { - content: "\e083"; -} -.glyphicon-ok-sign:before { - content: "\e084"; -} -.glyphicon-question-sign:before { - content: "\e085"; -} -.glyphicon-info-sign:before { - content: "\e086"; -} -.glyphicon-screenshot:before { - content: "\e087"; -} -.glyphicon-remove-circle:before { - content: "\e088"; -} -.glyphicon-ok-circle:before { - content: "\e089"; -} -.glyphicon-ban-circle:before { - content: "\e090"; -} -.glyphicon-arrow-left:before { - content: "\e091"; -} -.glyphicon-arrow-right:before { - content: "\e092"; -} -.glyphicon-arrow-up:before { - content: "\e093"; -} -.glyphicon-arrow-down:before { - content: "\e094"; -} -.glyphicon-share-alt:before { - content: "\e095"; -} -.glyphicon-resize-full:before { - content: "\e096"; -} -.glyphicon-resize-small:before { - content: "\e097"; -} -.glyphicon-exclamation-sign:before { - content: "\e101"; -} -.glyphicon-gift:before { - content: "\e102"; -} -.glyphicon-leaf:before { - content: "\e103"; -} -.glyphicon-fire:before { - content: "\e104"; -} -.glyphicon-eye-open:before { - content: "\e105"; -} -.glyphicon-eye-close:before { - content: "\e106"; -} -.glyphicon-warning-sign:before { - content: "\e107"; -} -.glyphicon-plane:before { - content: "\e108"; -} -.glyphicon-calendar:before { - content: "\e109"; -} -.glyphicon-random:before { - content: "\e110"; -} -.glyphicon-comment:before { - content: "\e111"; -} -.glyphicon-magnet:before { - content: "\e112"; -} -.glyphicon-chevron-up:before { - content: "\e113"; -} -.glyphicon-chevron-down:before { - content: "\e114"; -} -.glyphicon-retweet:before { - content: "\e115"; -} -.glyphicon-shopping-cart:before { - content: "\e116"; -} -.glyphicon-folder-close:before { - content: "\e117"; -} -.glyphicon-folder-open:before { - content: "\e118"; -} -.glyphicon-resize-vertical:before { - content: "\e119"; -} -.glyphicon-resize-horizontal:before { - content: "\e120"; -} -.glyphicon-hdd:before { - content: "\e121"; -} -.glyphicon-bullhorn:before { - content: "\e122"; -} -.glyphicon-bell:before { - content: "\e123"; -} -.glyphicon-certificate:before { - content: "\e124"; -} -.glyphicon-thumbs-up:before { - content: "\e125"; -} -.glyphicon-thumbs-down:before { - content: "\e126"; -} -.glyphicon-hand-right:before { - content: "\e127"; -} -.glyphicon-hand-left:before { - content: "\e128"; -} -.glyphicon-hand-up:before { - content: "\e129"; -} -.glyphicon-hand-down:before { - content: "\e130"; -} -.glyphicon-circle-arrow-right:before { - content: "\e131"; -} -.glyphicon-circle-arrow-left:before { - content: "\e132"; -} -.glyphicon-circle-arrow-up:before { - content: "\e133"; -} -.glyphicon-circle-arrow-down:before { - content: "\e134"; -} -.glyphicon-globe:before { - content: "\e135"; -} -.glyphicon-wrench:before { - content: "\e136"; -} -.glyphicon-tasks:before { - content: "\e137"; -} -.glyphicon-filter:before { - content: "\e138"; -} -.glyphicon-briefcase:before { - content: "\e139"; -} -.glyphicon-fullscreen:before { - content: "\e140"; -} -.glyphicon-dashboard:before { - content: "\e141"; -} -.glyphicon-paperclip:before { - content: "\e142"; -} -.glyphicon-heart-empty:before { - content: "\e143"; -} -.glyphicon-link:before { - content: "\e144"; -} -.glyphicon-phone:before { - content: "\e145"; -} -.glyphicon-pushpin:before { - content: "\e146"; -} -.glyphicon-usd:before { - content: "\e148"; -} -.glyphicon-gbp:before { - content: "\e149"; -} -.glyphicon-sort:before { - content: "\e150"; -} -.glyphicon-sort-by-alphabet:before { - content: "\e151"; -} -.glyphicon-sort-by-alphabet-alt:before { - content: "\e152"; -} -.glyphicon-sort-by-order:before { - content: "\e153"; -} -.glyphicon-sort-by-order-alt:before { - content: "\e154"; -} -.glyphicon-sort-by-attributes:before { - content: "\e155"; -} -.glyphicon-sort-by-attributes-alt:before { - content: "\e156"; -} -.glyphicon-unchecked:before { - content: "\e157"; -} -.glyphicon-expand:before { - content: "\e158"; -} -.glyphicon-collapse-down:before { - content: "\e159"; -} -.glyphicon-collapse-up:before { - content: "\e160"; -} -.glyphicon-log-in:before { - content: "\e161"; -} -.glyphicon-flash:before { - content: "\e162"; -} -.glyphicon-log-out:before { - content: "\e163"; -} -.glyphicon-new-window:before { - content: "\e164"; -} -.glyphicon-record:before { - content: "\e165"; -} -.glyphicon-save:before { - content: "\e166"; -} -.glyphicon-open:before { - content: "\e167"; -} -.glyphicon-saved:before { - content: "\e168"; -} -.glyphicon-import:before { - content: "\e169"; -} -.glyphicon-export:before { - content: "\e170"; -} -.glyphicon-send:before { - content: "\e171"; -} -.glyphicon-floppy-disk:before { - content: "\e172"; -} -.glyphicon-floppy-saved:before { - content: "\e173"; -} -.glyphicon-floppy-remove:before { - content: "\e174"; -} -.glyphicon-floppy-save:before { - content: "\e175"; -} -.glyphicon-floppy-open:before { - content: "\e176"; -} -.glyphicon-credit-card:before { - content: "\e177"; -} -.glyphicon-transfer:before { - content: "\e178"; -} -.glyphicon-cutlery:before { - content: "\e179"; -} -.glyphicon-header:before { - content: "\e180"; -} -.glyphicon-compressed:before { - content: "\e181"; -} -.glyphicon-earphone:before { - content: "\e182"; -} -.glyphicon-phone-alt:before { - content: "\e183"; -} -.glyphicon-tower:before { - content: "\e184"; -} -.glyphicon-stats:before { - content: "\e185"; -} -.glyphicon-sd-video:before { - content: "\e186"; -} -.glyphicon-hd-video:before { - content: "\e187"; -} -.glyphicon-subtitles:before { - content: "\e188"; -} -.glyphicon-sound-stereo:before { - content: "\e189"; -} -.glyphicon-sound-dolby:before { - content: "\e190"; -} -.glyphicon-sound-5-1:before { - content: "\e191"; -} -.glyphicon-sound-6-1:before { - content: "\e192"; -} -.glyphicon-sound-7-1:before { - content: "\e193"; -} -.glyphicon-copyright-mark:before { - content: "\e194"; -} -.glyphicon-registration-mark:before { - content: "\e195"; -} -.glyphicon-cloud-download:before { - content: "\e197"; -} -.glyphicon-cloud-upload:before { - content: "\e198"; -} -.glyphicon-tree-conifer:before { - content: "\e199"; -} -.glyphicon-tree-deciduous:before { - content: "\e200"; -} -* { - -webkit-box-sizing: border-box; - -moz-box-sizing: border-box; - box-sizing: border-box; -} -*:before, -*:after { - -webkit-box-sizing: border-box; - -moz-box-sizing: border-box; - box-sizing: border-box; -} -html { - font-size: 10px; - - -webkit-tap-highlight-color: rgba(0, 0, 0, 0); -} -body { - font-family: "Helvetica Neue", Helvetica, Arial, sans-serif; - font-size: 14px; - line-height: 1.42857143; - color: #333; - background-color: #fff; -} -input, -button, -select, -textarea { - font-family: inherit; - font-size: inherit; - line-height: inherit; -} -a { - color: #428bca; - text-decoration: none; -} -a:hover, -a:focus { - color: #2a6496; - text-decoration: underline; -} -a:focus { - outline: thin dotted; - outline: 5px auto -webkit-focus-ring-color; - outline-offset: -2px; -} -figure { - margin: 0; -} -img { - vertical-align: middle; -} -.img-responsive, -.thumbnail > img, -.thumbnail a > img, -.carousel-inner > .item > img, -.carousel-inner > .item > a > img { - display: block; - max-width: 100%; - height: auto; -} -.img-rounded { - border-radius: 6px; -} -.img-thumbnail { - display: inline-block; - max-width: 100%; - height: auto; - padding: 4px; - line-height: 1.42857143; - background-color: #fff; - border: 1px solid #ddd; - border-radius: 4px; - -webkit-transition: all .2s ease-in-out; - -o-transition: all .2s ease-in-out; - transition: all .2s ease-in-out; -} -.img-circle { - border-radius: 50%; -} -hr { - margin-top: 20px; - margin-bottom: 20px; - border: 0; - border-top: 1px solid #eee; -} -.sr-only { - position: absolute; - width: 1px; - height: 1px; - padding: 0; - margin: -1px; - overflow: hidden; - clip: rect(0, 0, 0, 0); - border: 0; -} -.sr-only-focusable:active, -.sr-only-focusable:focus { - position: static; - width: auto; - height: auto; - margin: 0; - overflow: visible; - clip: auto; -} -h1, -h2, -h3, -h4, -h5, -h6, -.h1, -.h2, -.h3, -.h4, -.h5, -.h6 { - font-family: inherit; - font-weight: 500; - line-height: 1.1; - color: inherit; -} -h1 small, -h2 small, -h3 small, -h4 small, -h5 small, -h6 small, -.h1 small, -.h2 small, -.h3 small, -.h4 small, -.h5 small, -.h6 small, -h1 .small, -h2 .small, -h3 .small, -h4 .small, -h5 .small, -h6 .small, -.h1 .small, -.h2 .small, -.h3 .small, -.h4 .small, -.h5 .small, -.h6 .small { - font-weight: normal; - line-height: 1; - color: #777; -} -h1, -.h1, -h2, -.h2, -h3, -.h3 { - margin-top: 20px; - margin-bottom: 10px; -} -h1 small, -.h1 small, -h2 small, -.h2 small, -h3 small, -.h3 small, -h1 .small, -.h1 .small, -h2 .small, -.h2 .small, -h3 .small, -.h3 .small { - font-size: 65%; -} -h4, -.h4, -h5, -.h5, -h6, -.h6 { - margin-top: 10px; - margin-bottom: 10px; -} -h4 small, -.h4 small, -h5 small, -.h5 small, -h6 small, -.h6 small, -h4 .small, -.h4 .small, -h5 .small, -.h5 .small, -h6 .small, -.h6 .small { - font-size: 75%; -} -h1, -.h1 { - font-size: 36px; -} -h2, -.h2 { - font-size: 30px; -} -h3, -.h3 { - font-size: 24px; -} -h4, -.h4 { - font-size: 18px; -} -h5, -.h5 { - font-size: 14px; -} -h6, -.h6 { - font-size: 12px; -} -p { - margin: 0 0 10px; -} -.lead { - margin-bottom: 20px; - font-size: 16px; - font-weight: 300; - line-height: 1.4; -} -@media (min-width: 768px) { - .lead { - font-size: 21px; - } -} -small, -.small { - font-size: 85%; -} -mark, -.mark { - padding: .2em; - background-color: #fcf8e3; -} -.text-left { - text-align: left; -} -.text-right { - text-align: right; -} -.text-center { - text-align: center; -} -.text-justify { - text-align: justify; -} -.text-nowrap { - white-space: nowrap; -} -.text-lowercase { - text-transform: lowercase; -} -.text-uppercase { - text-transform: uppercase; -} -.text-capitalize { - text-transform: capitalize; -} -.text-muted { - color: #777; -} -.text-primary { - color: #428bca; -} -a.text-primary:hover { - color: #3071a9; -} -.text-success { - color: #3c763d; -} -a.text-success:hover { - color: #2b542c; -} -.text-info { - color: #31708f; -} -a.text-info:hover { - color: #245269; -} -.text-warning { - color: #8a6d3b; -} -a.text-warning:hover { - color: #66512c; -} -.text-danger { - color: #a94442; -} -a.text-danger:hover { - color: #843534; -} -.bg-primary { - color: #fff; - background-color: #428bca; -} -a.bg-primary:hover { - background-color: #3071a9; -} -.bg-success { - background-color: #dff0d8; -} -a.bg-success:hover { - background-color: #c1e2b3; -} -.bg-info { - background-color: #d9edf7; -} -a.bg-info:hover { - background-color: #afd9ee; -} -.bg-warning { - background-color: #fcf8e3; -} -a.bg-warning:hover { - background-color: #f7ecb5; -} -.bg-danger { - background-color: #f2dede; -} -a.bg-danger:hover { - background-color: #e4b9b9; -} -.page-header { - padding-bottom: 9px; - margin: 40px 0 20px; - border-bottom: 1px solid #eee; -} -ul, -ol { - margin-top: 0; - margin-bottom: 10px; -} -ul ul, -ol ul, -ul ol, -ol ol { - margin-bottom: 0; -} -.list-unstyled { - padding-left: 0; - list-style: none; -} -.list-inline { - padding-left: 0; - margin-left: -5px; - list-style: none; -} -.list-inline > li { - display: inline-block; - padding-right: 5px; - padding-left: 5px; -} -dl { - margin-top: 0; - margin-bottom: 20px; -} -dt, -dd { - line-height: 1.42857143; -} -dt { - font-weight: bold; -} -dd { - margin-left: 0; -} -@media (min-width: 768px) { - .dl-horizontal dt { - float: left; - width: 160px; - overflow: hidden; - clear: left; - text-align: right; - text-overflow: ellipsis; - white-space: nowrap; - } - .dl-horizontal dd { - margin-left: 180px; - } -} -abbr[title], -abbr[data-original-title] { - cursor: help; - border-bottom: 1px dotted #777; -} -.initialism { - font-size: 90%; - text-transform: uppercase; -} -blockquote { - padding: 10px 20px; - margin: 0 0 20px; - font-size: 17.5px; - border-left: 5px solid #eee; -} -blockquote p:last-child, -blockquote ul:last-child, -blockquote ol:last-child { - margin-bottom: 0; -} -blockquote footer, -blockquote small, -blockquote .small { - display: block; - font-size: 80%; - line-height: 1.42857143; - color: #777; -} -blockquote footer:before, -blockquote small:before, -blockquote .small:before { - content: '\2014 \00A0'; -} -.blockquote-reverse, -blockquote.pull-right { - padding-right: 15px; - padding-left: 0; - text-align: right; - border-right: 5px solid #eee; - border-left: 0; -} -.blockquote-reverse footer:before, -blockquote.pull-right footer:before, -.blockquote-reverse small:before, -blockquote.pull-right small:before, -.blockquote-reverse .small:before, -blockquote.pull-right .small:before { - content: ''; -} -.blockquote-reverse footer:after, -blockquote.pull-right footer:after, -.blockquote-reverse small:after, -blockquote.pull-right small:after, -.blockquote-reverse .small:after, -blockquote.pull-right .small:after { - content: '\00A0 \2014'; -} -address { - margin-bottom: 20px; - font-style: normal; - line-height: 1.42857143; -} -code, -kbd, -pre, -samp { - font-family: Menlo, Monaco, Consolas, "Courier New", monospace; -} -code { - padding: 2px 4px; - font-size: 90%; - color: #c7254e; - background-color: #f9f2f4; - border-radius: 4px; -} -kbd { - padding: 2px 4px; - font-size: 90%; - color: #fff; - background-color: #333; - border-radius: 3px; - -webkit-box-shadow: inset 0 -1px 0 rgba(0, 0, 0, .25); - box-shadow: inset 0 -1px 0 rgba(0, 0, 0, .25); -} -kbd kbd { - padding: 0; - font-size: 100%; - font-weight: bold; - -webkit-box-shadow: none; - box-shadow: none; -} -pre { - display: block; - padding: 9.5px; - margin: 0 0 10px; - font-size: 13px; - line-height: 1.42857143; - color: #333; - word-break: break-all; - word-wrap: break-word; - background-color: #f5f5f5; - border: 1px solid #ccc; - border-radius: 4px; -} -pre code { - padding: 0; - font-size: inherit; - color: inherit; - white-space: pre-wrap; - background-color: transparent; - border-radius: 0; -} -.pre-scrollable { - max-height: 340px; - overflow-y: scroll; -} -.container { - padding-right: 15px; - padding-left: 15px; - margin-right: auto; - margin-left: auto; -} -@media (min-width: 768px) { - .container { - width: 750px; - } -} -@media (min-width: 992px) { - .container { - width: 970px; - } -} -@media (min-width: 1200px) { - .container { - width: 1170px; - } -} -.container-fluid { - padding-right: 15px; - padding-left: 15px; - margin-right: auto; - margin-left: auto; -} -.row { - margin-right: -15px; - margin-left: -15px; -} -.col-xs-1, .col-sm-1, .col-md-1, .col-lg-1, .col-xs-2, .col-sm-2, .col-md-2, .col-lg-2, .col-xs-3, .col-sm-3, .col-md-3, .col-lg-3, .col-xs-4, .col-sm-4, .col-md-4, .col-lg-4, .col-xs-5, .col-sm-5, .col-md-5, .col-lg-5, .col-xs-6, .col-sm-6, .col-md-6, .col-lg-6, .col-xs-7, .col-sm-7, .col-md-7, .col-lg-7, .col-xs-8, .col-sm-8, .col-md-8, .col-lg-8, .col-xs-9, .col-sm-9, .col-md-9, .col-lg-9, .col-xs-10, .col-sm-10, .col-md-10, .col-lg-10, .col-xs-11, .col-sm-11, .col-md-11, .col-lg-11, .col-xs-12, .col-sm-12, .col-md-12, .col-lg-12 { - position: relative; - min-height: 1px; - padding-right: 15px; - padding-left: 15px; -} -.col-xs-1, .col-xs-2, .col-xs-3, .col-xs-4, .col-xs-5, .col-xs-6, .col-xs-7, .col-xs-8, .col-xs-9, .col-xs-10, .col-xs-11, .col-xs-12 { - float: left; -} -.col-xs-12 { - width: 100%; -} -.col-xs-11 { - width: 91.66666667%; -} -.col-xs-10 { - width: 83.33333333%; -} -.col-xs-9 { - width: 75%; -} -.col-xs-8 { - width: 66.66666667%; -} -.col-xs-7 { - width: 58.33333333%; -} -.col-xs-6 { - width: 50%; -} -.col-xs-5 { - width: 41.66666667%; -} -.col-xs-4 { - width: 33.33333333%; -} -.col-xs-3 { - width: 25%; -} -.col-xs-2 { - width: 16.66666667%; -} -.col-xs-1 { - width: 8.33333333%; -} -.col-xs-pull-12 { - right: 100%; -} -.col-xs-pull-11 { - right: 91.66666667%; -} -.col-xs-pull-10 { - right: 83.33333333%; -} -.col-xs-pull-9 { - right: 75%; -} -.col-xs-pull-8 { - right: 66.66666667%; -} -.col-xs-pull-7 { - right: 58.33333333%; -} -.col-xs-pull-6 { - right: 50%; -} -.col-xs-pull-5 { - right: 41.66666667%; -} -.col-xs-pull-4 { - right: 33.33333333%; -} -.col-xs-pull-3 { - right: 25%; -} -.col-xs-pull-2 { - right: 16.66666667%; -} -.col-xs-pull-1 { - right: 8.33333333%; -} -.col-xs-pull-0 { - right: auto; -} -.col-xs-push-12 { - left: 100%; -} -.col-xs-push-11 { - left: 91.66666667%; -} -.col-xs-push-10 { - left: 83.33333333%; -} -.col-xs-push-9 { - left: 75%; -} -.col-xs-push-8 { - left: 66.66666667%; -} -.col-xs-push-7 { - left: 58.33333333%; -} -.col-xs-push-6 { - left: 50%; -} -.col-xs-push-5 { - left: 41.66666667%; -} -.col-xs-push-4 { - left: 33.33333333%; -} -.col-xs-push-3 { - left: 25%; -} -.col-xs-push-2 { - left: 16.66666667%; -} -.col-xs-push-1 { - left: 8.33333333%; -} -.col-xs-push-0 { - left: auto; -} -.col-xs-offset-12 { - margin-left: 100%; -} -.col-xs-offset-11 { - margin-left: 91.66666667%; -} -.col-xs-offset-10 { - margin-left: 83.33333333%; -} -.col-xs-offset-9 { - margin-left: 75%; -} -.col-xs-offset-8 { - margin-left: 66.66666667%; -} -.col-xs-offset-7 { - margin-left: 58.33333333%; -} -.col-xs-offset-6 { - margin-left: 50%; -} -.col-xs-offset-5 { - margin-left: 41.66666667%; -} -.col-xs-offset-4 { - margin-left: 33.33333333%; -} -.col-xs-offset-3 { - margin-left: 25%; -} -.col-xs-offset-2 { - margin-left: 16.66666667%; -} -.col-xs-offset-1 { - margin-left: 8.33333333%; -} -.col-xs-offset-0 { - margin-left: 0; -} -@media (min-width: 768px) { - .col-sm-1, .col-sm-2, .col-sm-3, .col-sm-4, .col-sm-5, .col-sm-6, .col-sm-7, .col-sm-8, .col-sm-9, .col-sm-10, .col-sm-11, .col-sm-12 { - float: left; - } - .col-sm-12 { - width: 100%; - } - .col-sm-11 { - width: 91.66666667%; - } - .col-sm-10 { - width: 83.33333333%; - } - .col-sm-9 { - width: 75%; - } - .col-sm-8 { - width: 66.66666667%; - } - .col-sm-7 { - width: 58.33333333%; - } - .col-sm-6 { - width: 50%; - } - .col-sm-5 { - width: 41.66666667%; - } - .col-sm-4 { - width: 33.33333333%; - } - .col-sm-3 { - width: 25%; - } - .col-sm-2 { - width: 16.66666667%; - } - .col-sm-1 { - width: 8.33333333%; - } - .col-sm-pull-12 { - right: 100%; - } - .col-sm-pull-11 { - right: 91.66666667%; - } - .col-sm-pull-10 { - right: 83.33333333%; - } - .col-sm-pull-9 { - right: 75%; - } - .col-sm-pull-8 { - right: 66.66666667%; - } - .col-sm-pull-7 { - right: 58.33333333%; - } - .col-sm-pull-6 { - right: 50%; - } - .col-sm-pull-5 { - right: 41.66666667%; - } - .col-sm-pull-4 { - right: 33.33333333%; - } - .col-sm-pull-3 { - right: 25%; - } - .col-sm-pull-2 { - right: 16.66666667%; - } - .col-sm-pull-1 { - right: 8.33333333%; - } - .col-sm-pull-0 { - right: auto; - } - .col-sm-push-12 { - left: 100%; - } - .col-sm-push-11 { - left: 91.66666667%; - } - .col-sm-push-10 { - left: 83.33333333%; - } - .col-sm-push-9 { - left: 75%; - } - .col-sm-push-8 { - left: 66.66666667%; - } - .col-sm-push-7 { - left: 58.33333333%; - } - .col-sm-push-6 { - left: 50%; - } - .col-sm-push-5 { - left: 41.66666667%; - } - .col-sm-push-4 { - left: 33.33333333%; - } - .col-sm-push-3 { - left: 25%; - } - .col-sm-push-2 { - left: 16.66666667%; - } - .col-sm-push-1 { - left: 8.33333333%; - } - .col-sm-push-0 { - left: auto; - } - .col-sm-offset-12 { - margin-left: 100%; - } - .col-sm-offset-11 { - margin-left: 91.66666667%; - } - .col-sm-offset-10 { - margin-left: 83.33333333%; - } - .col-sm-offset-9 { - margin-left: 75%; - } - .col-sm-offset-8 { - margin-left: 66.66666667%; - } - .col-sm-offset-7 { - margin-left: 58.33333333%; - } - .col-sm-offset-6 { - margin-left: 50%; - } - .col-sm-offset-5 { - margin-left: 41.66666667%; - } - .col-sm-offset-4 { - margin-left: 33.33333333%; - } - .col-sm-offset-3 { - margin-left: 25%; - } - .col-sm-offset-2 { - margin-left: 16.66666667%; - } - .col-sm-offset-1 { - margin-left: 8.33333333%; - } - .col-sm-offset-0 { - margin-left: 0; - } -} -@media (min-width: 992px) { - .col-md-1, .col-md-2, .col-md-3, .col-md-4, .col-md-5, .col-md-6, .col-md-7, .col-md-8, .col-md-9, .col-md-10, .col-md-11, .col-md-12 { - float: left; - } - .col-md-12 { - width: 100%; - } - .col-md-11 { - width: 91.66666667%; - } - .col-md-10 { - width: 83.33333333%; - } - .col-md-9 { - width: 75%; - } - .col-md-8 { - width: 66.66666667%; - } - .col-md-7 { - width: 58.33333333%; - } - .col-md-6 { - width: 50%; - } - .col-md-5 { - width: 41.66666667%; - } - .col-md-4 { - width: 33.33333333%; - } - .col-md-3 { - width: 25%; - } - .col-md-2 { - width: 16.66666667%; - } - .col-md-1 { - width: 8.33333333%; - } - .col-md-pull-12 { - right: 100%; - } - .col-md-pull-11 { - right: 91.66666667%; - } - .col-md-pull-10 { - right: 83.33333333%; - } - .col-md-pull-9 { - right: 75%; - } - .col-md-pull-8 { - right: 66.66666667%; - } - .col-md-pull-7 { - right: 58.33333333%; - } - .col-md-pull-6 { - right: 50%; - } - .col-md-pull-5 { - right: 41.66666667%; - } - .col-md-pull-4 { - right: 33.33333333%; - } - .col-md-pull-3 { - right: 25%; - } - .col-md-pull-2 { - right: 16.66666667%; - } - .col-md-pull-1 { - right: 8.33333333%; - } - .col-md-pull-0 { - right: auto; - } - .col-md-push-12 { - left: 100%; - } - .col-md-push-11 { - left: 91.66666667%; - } - .col-md-push-10 { - left: 83.33333333%; - } - .col-md-push-9 { - left: 75%; - } - .col-md-push-8 { - left: 66.66666667%; - } - .col-md-push-7 { - left: 58.33333333%; - } - .col-md-push-6 { - left: 50%; - } - .col-md-push-5 { - left: 41.66666667%; - } - .col-md-push-4 { - left: 33.33333333%; - } - .col-md-push-3 { - left: 25%; - } - .col-md-push-2 { - left: 16.66666667%; - } - .col-md-push-1 { - left: 8.33333333%; - } - .col-md-push-0 { - left: auto; - } - .col-md-offset-12 { - margin-left: 100%; - } - .col-md-offset-11 { - margin-left: 91.66666667%; - } - .col-md-offset-10 { - margin-left: 83.33333333%; - } - .col-md-offset-9 { - margin-left: 75%; - } - .col-md-offset-8 { - margin-left: 66.66666667%; - } - .col-md-offset-7 { - margin-left: 58.33333333%; - } - .col-md-offset-6 { - margin-left: 50%; - } - .col-md-offset-5 { - margin-left: 41.66666667%; - } - .col-md-offset-4 { - margin-left: 33.33333333%; - } - .col-md-offset-3 { - margin-left: 25%; - } - .col-md-offset-2 { - margin-left: 16.66666667%; - } - .col-md-offset-1 { - margin-left: 8.33333333%; - } - .col-md-offset-0 { - margin-left: 0; - } -} -@media (min-width: 1200px) { - .col-lg-1, .col-lg-2, .col-lg-3, .col-lg-4, .col-lg-5, .col-lg-6, .col-lg-7, .col-lg-8, .col-lg-9, .col-lg-10, .col-lg-11, .col-lg-12 { - float: left; - } - .col-lg-12 { - width: 100%; - } - .col-lg-11 { - width: 91.66666667%; - } - .col-lg-10 { - width: 83.33333333%; - } - .col-lg-9 { - width: 75%; - } - .col-lg-8 { - width: 66.66666667%; - } - .col-lg-7 { - width: 58.33333333%; - } - .col-lg-6 { - width: 50%; - } - .col-lg-5 { - width: 41.66666667%; - } - .col-lg-4 { - width: 33.33333333%; - } - .col-lg-3 { - width: 25%; - } - .col-lg-2 { - width: 16.66666667%; - } - .col-lg-1 { - width: 8.33333333%; - } - .col-lg-pull-12 { - right: 100%; - } - .col-lg-pull-11 { - right: 91.66666667%; - } - .col-lg-pull-10 { - right: 83.33333333%; - } - .col-lg-pull-9 { - right: 75%; - } - .col-lg-pull-8 { - right: 66.66666667%; - } - .col-lg-pull-7 { - right: 58.33333333%; - } - .col-lg-pull-6 { - right: 50%; - } - .col-lg-pull-5 { - right: 41.66666667%; - } - .col-lg-pull-4 { - right: 33.33333333%; - } - .col-lg-pull-3 { - right: 25%; - } - .col-lg-pull-2 { - right: 16.66666667%; - } - .col-lg-pull-1 { - right: 8.33333333%; - } - .col-lg-pull-0 { - right: auto; - } - .col-lg-push-12 { - left: 100%; - } - .col-lg-push-11 { - left: 91.66666667%; - } - .col-lg-push-10 { - left: 83.33333333%; - } - .col-lg-push-9 { - left: 75%; - } - .col-lg-push-8 { - left: 66.66666667%; - } - .col-lg-push-7 { - left: 58.33333333%; - } - .col-lg-push-6 { - left: 50%; - } - .col-lg-push-5 { - left: 41.66666667%; - } - .col-lg-push-4 { - left: 33.33333333%; - } - .col-lg-push-3 { - left: 25%; - } - .col-lg-push-2 { - left: 16.66666667%; - } - .col-lg-push-1 { - left: 8.33333333%; - } - .col-lg-push-0 { - left: auto; - } - .col-lg-offset-12 { - margin-left: 100%; - } - .col-lg-offset-11 { - margin-left: 91.66666667%; - } - .col-lg-offset-10 { - margin-left: 83.33333333%; - } - .col-lg-offset-9 { - margin-left: 75%; - } - .col-lg-offset-8 { - margin-left: 66.66666667%; - } - .col-lg-offset-7 { - margin-left: 58.33333333%; - } - .col-lg-offset-6 { - margin-left: 50%; - } - .col-lg-offset-5 { - margin-left: 41.66666667%; - } - .col-lg-offset-4 { - margin-left: 33.33333333%; - } - .col-lg-offset-3 { - margin-left: 25%; - } - .col-lg-offset-2 { - margin-left: 16.66666667%; - } - .col-lg-offset-1 { - margin-left: 8.33333333%; - } - .col-lg-offset-0 { - margin-left: 0; - } -} -table { - background-color: transparent; -} -caption { - padding-top: 8px; - padding-bottom: 8px; - color: #777; - text-align: left; -} -th { - text-align: left; -} -.table { - width: 100%; - max-width: 100%; - margin-bottom: 20px; -} -.table > thead > tr > th, -.table > tbody > tr > th, -.table > tfoot > tr > th, -.table > thead > tr > td, -.table > tbody > tr > td, -.table > tfoot > tr > td { - padding: 8px; - line-height: 1.42857143; - vertical-align: top; - border-top: 1px solid #ddd; -} -.table > thead > tr > th { - vertical-align: bottom; - border-bottom: 2px solid #ddd; -} -.table > caption + thead > tr:first-child > th, -.table > colgroup + thead > tr:first-child > th, -.table > thead:first-child > tr:first-child > th, -.table > caption + thead > tr:first-child > td, -.table > colgroup + thead > tr:first-child > td, -.table > thead:first-child > tr:first-child > td { - border-top: 0; -} -.table > tbody + tbody { - border-top: 2px solid #ddd; -} -.table .table { - background-color: #fff; -} -.table-condensed > thead > tr > th, -.table-condensed > tbody > tr > th, -.table-condensed > tfoot > tr > th, -.table-condensed > thead > tr > td, -.table-condensed > tbody > tr > td, -.table-condensed > tfoot > tr > td { - padding: 5px; -} -.table-bordered { - border: 1px solid #ddd; -} -.table-bordered > thead > tr > th, -.table-bordered > tbody > tr > th, -.table-bordered > tfoot > tr > th, -.table-bordered > thead > tr > td, -.table-bordered > tbody > tr > td, -.table-bordered > tfoot > tr > td { - border: 1px solid #ddd; -} -.table-bordered > thead > tr > th, -.table-bordered > thead > tr > td { - border-bottom-width: 2px; -} -.table-striped > tbody > tr:nth-child(odd) { - background-color: #f9f9f9; -} -.table-hover > tbody > tr:hover { - background-color: #f5f5f5; -} -table col[class*="col-"] { - position: static; - display: table-column; - float: none; -} -table td[class*="col-"], -table th[class*="col-"] { - position: static; - display: table-cell; - float: none; -} -.table > thead > tr > td.active, -.table > tbody > tr > td.active, -.table > tfoot > tr > td.active, -.table > thead > tr > th.active, -.table > tbody > tr > th.active, -.table > tfoot > tr > th.active, -.table > thead > tr.active > td, -.table > tbody > tr.active > td, -.table > tfoot > tr.active > td, -.table > thead > tr.active > th, -.table > tbody > tr.active > th, -.table > tfoot > tr.active > th { - background-color: #f5f5f5; -} -.table-hover > tbody > tr > td.active:hover, -.table-hover > tbody > tr > th.active:hover, -.table-hover > tbody > tr.active:hover > td, -.table-hover > tbody > tr:hover > .active, -.table-hover > tbody > tr.active:hover > th { - background-color: #e8e8e8; -} -.table > thead > tr > td.success, -.table > tbody > tr > td.success, -.table > tfoot > tr > td.success, -.table > thead > tr > th.success, -.table > tbody > tr > th.success, -.table > tfoot > tr > th.success, -.table > thead > tr.success > td, -.table > tbody > tr.success > td, -.table > tfoot > tr.success > td, -.table > thead > tr.success > th, -.table > tbody > tr.success > th, -.table > tfoot > tr.success > th { - background-color: #dff0d8; -} -.table-hover > tbody > tr > td.success:hover, -.table-hover > tbody > tr > th.success:hover, -.table-hover > tbody > tr.success:hover > td, -.table-hover > tbody > tr:hover > .success, -.table-hover > tbody > tr.success:hover > th { - background-color: #d0e9c6; -} -.table > thead > tr > td.info, -.table > tbody > tr > td.info, -.table > tfoot > tr > td.info, -.table > thead > tr > th.info, -.table > tbody > tr > th.info, -.table > tfoot > tr > th.info, -.table > thead > tr.info > td, -.table > tbody > tr.info > td, -.table > tfoot > tr.info > td, -.table > thead > tr.info > th, -.table > tbody > tr.info > th, -.table > tfoot > tr.info > th { - background-color: #d9edf7; -} -.table-hover > tbody > tr > td.info:hover, -.table-hover > tbody > tr > th.info:hover, -.table-hover > tbody > tr.info:hover > td, -.table-hover > tbody > tr:hover > .info, -.table-hover > tbody > tr.info:hover > th { - background-color: #c4e3f3; -} -.table > thead > tr > td.warning, -.table > tbody > tr > td.warning, -.table > tfoot > tr > td.warning, -.table > thead > tr > th.warning, -.table > tbody > tr > th.warning, -.table > tfoot > tr > th.warning, -.table > thead > tr.warning > td, -.table > tbody > tr.warning > td, -.table > tfoot > tr.warning > td, -.table > thead > tr.warning > th, -.table > tbody > tr.warning > th, -.table > tfoot > tr.warning > th { - background-color: #fcf8e3; -} -.table-hover > tbody > tr > td.warning:hover, -.table-hover > tbody > tr > th.warning:hover, -.table-hover > tbody > tr.warning:hover > td, -.table-hover > tbody > tr:hover > .warning, -.table-hover > tbody > tr.warning:hover > th { - background-color: #faf2cc; -} -.table > thead > tr > td.danger, -.table > tbody > tr > td.danger, -.table > tfoot > tr > td.danger, -.table > thead > tr > th.danger, -.table > tbody > tr > th.danger, -.table > tfoot > tr > th.danger, -.table > thead > tr.danger > td, -.table > tbody > tr.danger > td, -.table > tfoot > tr.danger > td, -.table > thead > tr.danger > th, -.table > tbody > tr.danger > th, -.table > tfoot > tr.danger > th { - background-color: #f2dede; -} -.table-hover > tbody > tr > td.danger:hover, -.table-hover > tbody > tr > th.danger:hover, -.table-hover > tbody > tr.danger:hover > td, -.table-hover > tbody > tr:hover > .danger, -.table-hover > tbody > tr.danger:hover > th { - background-color: #ebcccc; -} -.table-responsive { - min-height: .01%; - overflow-x: auto; -} -@media screen and (max-width: 767px) { - .table-responsive { - width: 100%; - margin-bottom: 15px; - overflow-y: hidden; - -ms-overflow-style: -ms-autohiding-scrollbar; - border: 1px solid #ddd; - } - .table-responsive > .table { - margin-bottom: 0; - } - .table-responsive > .table > thead > tr > th, - .table-responsive > .table > tbody > tr > th, - .table-responsive > .table > tfoot > tr > th, - .table-responsive > .table > thead > tr > td, - .table-responsive > .table > tbody > tr > td, - .table-responsive > .table > tfoot > tr > td { - white-space: nowrap; - } - .table-responsive > .table-bordered { - border: 0; - } - .table-responsive > .table-bordered > thead > tr > th:first-child, - .table-responsive > .table-bordered > tbody > tr > th:first-child, - .table-responsive > .table-bordered > tfoot > tr > th:first-child, - .table-responsive > .table-bordered > thead > tr > td:first-child, - .table-responsive > .table-bordered > tbody > tr > td:first-child, - .table-responsive > .table-bordered > tfoot > tr > td:first-child { - border-left: 0; - } - .table-responsive > .table-bordered > thead > tr > th:last-child, - .table-responsive > .table-bordered > tbody > tr > th:last-child, - .table-responsive > .table-bordered > tfoot > tr > th:last-child, - .table-responsive > .table-bordered > thead > tr > td:last-child, - .table-responsive > .table-bordered > tbody > tr > td:last-child, - .table-responsive > .table-bordered > tfoot > tr > td:last-child { - border-right: 0; - } - .table-responsive > .table-bordered > tbody > tr:last-child > th, - .table-responsive > .table-bordered > tfoot > tr:last-child > th, - .table-responsive > .table-bordered > tbody > tr:last-child > td, - .table-responsive > .table-bordered > tfoot > tr:last-child > td { - border-bottom: 0; - } -} -fieldset { - min-width: 0; - padding: 0; - margin: 0; - border: 0; -} -legend { - display: block; - width: 100%; - padding: 0; - margin-bottom: 20px; - font-size: 21px; - line-height: inherit; - color: #333; - border: 0; - border-bottom: 1px solid #e5e5e5; -} -label { - display: inline-block; - max-width: 100%; - margin-bottom: 5px; - font-weight: bold; -} -input[type="search"] { - -webkit-box-sizing: border-box; - -moz-box-sizing: border-box; - box-sizing: border-box; -} -input[type="radio"], -input[type="checkbox"] { - margin: 4px 0 0; - margin-top: 1px \9; - line-height: normal; -} -input[type="file"] { - display: block; -} -input[type="range"] { - display: block; - width: 100%; -} -select[multiple], -select[size] { - height: auto; -} -input[type="file"]:focus, -input[type="radio"]:focus, -input[type="checkbox"]:focus { - outline: thin dotted; - outline: 5px auto -webkit-focus-ring-color; - outline-offset: -2px; -} -output { - display: block; - padding-top: 7px; - font-size: 14px; - line-height: 1.42857143; - color: #555; -} -.form-control { - display: block; - width: 100%; - height: 34px; - padding: 6px 12px; - font-size: 14px; - line-height: 1.42857143; - color: #555; - background-color: #fff; - background-image: none; - border: 1px solid #ccc; - border-radius: 4px; - -webkit-box-shadow: inset 0 1px 1px rgba(0, 0, 0, .075); - box-shadow: inset 0 1px 1px rgba(0, 0, 0, .075); - -webkit-transition: border-color ease-in-out .15s, -webkit-box-shadow ease-in-out .15s; - -o-transition: border-color ease-in-out .15s, box-shadow ease-in-out .15s; - transition: border-color ease-in-out .15s, box-shadow ease-in-out .15s; -} -.form-control:focus { - border-color: #66afe9; - outline: 0; - -webkit-box-shadow: inset 0 1px 1px rgba(0,0,0,.075), 0 0 8px rgba(102, 175, 233, .6); - box-shadow: inset 0 1px 1px rgba(0,0,0,.075), 0 0 8px rgba(102, 175, 233, .6); -} -.form-control::-moz-placeholder { - color: #999; - opacity: 1; -} -.form-control:-ms-input-placeholder { - color: #999; -} -.form-control::-webkit-input-placeholder { - color: #999; -} -.form-control[disabled], -.form-control[readonly], -fieldset[disabled] .form-control { - cursor: not-allowed; - background-color: #eee; - opacity: 1; -} -textarea.form-control { - height: auto; -} -input[type="search"] { - -webkit-appearance: none; -} -input[type="date"], -input[type="time"], -input[type="datetime-local"], -input[type="month"] { - line-height: 34px; - line-height: 1.42857143 \0; -} -input[type="date"].input-sm, -input[type="time"].input-sm, -input[type="datetime-local"].input-sm, -input[type="month"].input-sm { - line-height: 30px; - line-height: 1.5 \0; -} -input[type="date"].input-lg, -input[type="time"].input-lg, -input[type="datetime-local"].input-lg, -input[type="month"].input-lg { - line-height: 46px; - line-height: 1.33 \0; -} -_:-ms-fullscreen, -:root input[type="date"], -_:-ms-fullscreen, -:root input[type="time"], -_:-ms-fullscreen, -:root input[type="datetime-local"], -_:-ms-fullscreen, -:root input[type="month"] { - line-height: 1.42857143; -} -_:-ms-fullscreen.input-sm, -:root input[type="date"].input-sm, -_:-ms-fullscreen.input-sm, -:root input[type="time"].input-sm, -_:-ms-fullscreen.input-sm, -:root input[type="datetime-local"].input-sm, -_:-ms-fullscreen.input-sm, -:root input[type="month"].input-sm { - line-height: 1.5; -} -_:-ms-fullscreen.input-lg, -:root input[type="date"].input-lg, -_:-ms-fullscreen.input-lg, -:root input[type="time"].input-lg, -_:-ms-fullscreen.input-lg, -:root input[type="datetime-local"].input-lg, -_:-ms-fullscreen.input-lg, -:root input[type="month"].input-lg { - line-height: 1.33; -} -.form-group { - margin-bottom: 15px; -} -.radio, -.checkbox { - position: relative; - display: block; - margin-top: 10px; - margin-bottom: 10px; -} -.radio label, -.checkbox label { - min-height: 20px; - padding-left: 20px; - margin-bottom: 0; - font-weight: normal; - cursor: pointer; -} -.radio input[type="radio"], -.radio-inline input[type="radio"], -.checkbox input[type="checkbox"], -.checkbox-inline input[type="checkbox"] { - position: absolute; - margin-top: 4px \9; - margin-left: -20px; -} -.radio + .radio, -.checkbox + .checkbox { - margin-top: -5px; -} -.radio-inline, -.checkbox-inline { - display: inline-block; - padding-left: 20px; - margin-bottom: 0; - font-weight: normal; - vertical-align: middle; - cursor: pointer; -} -.radio-inline + .radio-inline, -.checkbox-inline + .checkbox-inline { - margin-top: 0; - margin-left: 10px; -} -input[type="radio"][disabled], -input[type="checkbox"][disabled], -input[type="radio"].disabled, -input[type="checkbox"].disabled, -fieldset[disabled] input[type="radio"], -fieldset[disabled] input[type="checkbox"] { - cursor: not-allowed; -} -.radio-inline.disabled, -.checkbox-inline.disabled, -fieldset[disabled] .radio-inline, -fieldset[disabled] .checkbox-inline { - cursor: not-allowed; -} -.radio.disabled label, -.checkbox.disabled label, -fieldset[disabled] .radio label, -fieldset[disabled] .checkbox label { - cursor: not-allowed; -} -.form-control-static { - padding-top: 7px; - padding-bottom: 7px; - margin-bottom: 0; -} -.form-control-static.input-lg, -.form-control-static.input-sm { - padding-right: 0; - padding-left: 0; -} -.input-sm, -.form-group-sm .form-control { - height: 30px; - padding: 5px 10px; - font-size: 12px; - line-height: 1.5; - border-radius: 3px; -} -select.input-sm, -select.form-group-sm .form-control { - height: 30px; - line-height: 30px; -} -textarea.input-sm, -textarea.form-group-sm .form-control, -select[multiple].input-sm, -select[multiple].form-group-sm .form-control { - height: auto; -} -.input-lg, -.form-group-lg .form-control { - height: 46px; - padding: 10px 16px; - font-size: 18px; - line-height: 1.33; - border-radius: 6px; -} -select.input-lg, -select.form-group-lg .form-control { - height: 46px; - line-height: 46px; -} -textarea.input-lg, -textarea.form-group-lg .form-control, -select[multiple].input-lg, -select[multiple].form-group-lg .form-control { - height: auto; -} -.has-feedback { - position: relative; -} -.has-feedback .form-control { - padding-right: 42.5px; -} -.form-control-feedback { - position: absolute; - top: 0; - right: 0; - z-index: 2; - display: block; - width: 34px; - height: 34px; - line-height: 34px; - text-align: center; - pointer-events: none; -} -.input-lg + .form-control-feedback { - width: 46px; - height: 46px; - line-height: 46px; -} -.input-sm + .form-control-feedback { - width: 30px; - height: 30px; - line-height: 30px; -} -.has-success .help-block, -.has-success .control-label, -.has-success .radio, -.has-success .checkbox, -.has-success .radio-inline, -.has-success .checkbox-inline, -.has-success.radio label, -.has-success.checkbox label, -.has-success.radio-inline label, -.has-success.checkbox-inline label { - color: #3c763d; -} -.has-success .form-control { - border-color: #3c763d; - -webkit-box-shadow: inset 0 1px 1px rgba(0, 0, 0, .075); - box-shadow: inset 0 1px 1px rgba(0, 0, 0, .075); -} -.has-success .form-control:focus { - border-color: #2b542c; - -webkit-box-shadow: inset 0 1px 1px rgba(0, 0, 0, .075), 0 0 6px #67b168; - box-shadow: inset 0 1px 1px rgba(0, 0, 0, .075), 0 0 6px #67b168; -} -.has-success .input-group-addon { - color: #3c763d; - background-color: #dff0d8; - border-color: #3c763d; -} -.has-success .form-control-feedback { - color: #3c763d; -} -.has-warning .help-block, -.has-warning .control-label, -.has-warning .radio, -.has-warning .checkbox, -.has-warning .radio-inline, -.has-warning .checkbox-inline, -.has-warning.radio label, -.has-warning.checkbox label, -.has-warning.radio-inline label, -.has-warning.checkbox-inline label { - color: #8a6d3b; -} -.has-warning .form-control { - border-color: #8a6d3b; - -webkit-box-shadow: inset 0 1px 1px rgba(0, 0, 0, .075); - box-shadow: inset 0 1px 1px rgba(0, 0, 0, .075); -} -.has-warning .form-control:focus { - border-color: #66512c; - -webkit-box-shadow: inset 0 1px 1px rgba(0, 0, 0, .075), 0 0 6px #c0a16b; - box-shadow: inset 0 1px 1px rgba(0, 0, 0, .075), 0 0 6px #c0a16b; -} -.has-warning .input-group-addon { - color: #8a6d3b; - background-color: #fcf8e3; - border-color: #8a6d3b; -} -.has-warning .form-control-feedback { - color: #8a6d3b; -} -.has-error .help-block, -.has-error .control-label, -.has-error .radio, -.has-error .checkbox, -.has-error .radio-inline, -.has-error .checkbox-inline, -.has-error.radio label, -.has-error.checkbox label, -.has-error.radio-inline label, -.has-error.checkbox-inline label { - color: #a94442; -} -.has-error .form-control { - border-color: #a94442; - -webkit-box-shadow: inset 0 1px 1px rgba(0, 0, 0, .075); - box-shadow: inset 0 1px 1px rgba(0, 0, 0, .075); -} -.has-error .form-control:focus { - border-color: #843534; - -webkit-box-shadow: inset 0 1px 1px rgba(0, 0, 0, .075), 0 0 6px #ce8483; - box-shadow: inset 0 1px 1px rgba(0, 0, 0, .075), 0 0 6px #ce8483; -} -.has-error .input-group-addon { - color: #a94442; - background-color: #f2dede; - border-color: #a94442; -} -.has-error .form-control-feedback { - color: #a94442; -} -.has-feedback label ~ .form-control-feedback { - top: 25px; -} -.has-feedback label.sr-only ~ .form-control-feedback { - top: 0; -} -.help-block { - display: block; - margin-top: 5px; - margin-bottom: 10px; - color: #737373; -} -@media (min-width: 768px) { - .form-inline .form-group { - display: inline-block; - margin-bottom: 0; - vertical-align: middle; - } - .form-inline .form-control { - display: inline-block; - width: auto; - vertical-align: middle; - } - .form-inline .form-control-static { - display: inline-block; - } - .form-inline .input-group { - display: inline-table; - vertical-align: middle; - } - .form-inline .input-group .input-group-addon, - .form-inline .input-group .input-group-btn, - .form-inline .input-group .form-control { - width: auto; - } - .form-inline .input-group > .form-control { - width: 100%; - } - .form-inline .control-label { - margin-bottom: 0; - vertical-align: middle; - } - .form-inline .radio, - .form-inline .checkbox { - display: inline-block; - margin-top: 0; - margin-bottom: 0; - vertical-align: middle; - } - .form-inline .radio label, - .form-inline .checkbox label { - padding-left: 0; - } - .form-inline .radio input[type="radio"], - .form-inline .checkbox input[type="checkbox"] { - position: relative; - margin-left: 0; - } - .form-inline .has-feedback .form-control-feedback { - top: 0; - } -} -.form-horizontal .radio, -.form-horizontal .checkbox, -.form-horizontal .radio-inline, -.form-horizontal .checkbox-inline { - padding-top: 7px; - margin-top: 0; - margin-bottom: 0; -} -.form-horizontal .radio, -.form-horizontal .checkbox { - min-height: 27px; -} -.form-horizontal .form-group { - margin-right: -15px; - margin-left: -15px; -} -@media (min-width: 768px) { - .form-horizontal .control-label { - padding-top: 7px; - margin-bottom: 0; - text-align: right; - } -} -.form-horizontal .has-feedback .form-control-feedback { - right: 15px; -} -@media (min-width: 768px) { - .form-horizontal .form-group-lg .control-label { - padding-top: 14.3px; - } -} -@media (min-width: 768px) { - .form-horizontal .form-group-sm .control-label { - padding-top: 6px; - } -} -.btn { - display: inline-block; - padding: 6px 12px; - margin-bottom: 0; - font-size: 14px; - font-weight: normal; - line-height: 1.42857143; - text-align: center; - white-space: nowrap; - vertical-align: middle; - -ms-touch-action: manipulation; - touch-action: manipulation; - cursor: pointer; - -webkit-user-select: none; - -moz-user-select: none; - -ms-user-select: none; - user-select: none; - background-image: none; - border: 1px solid transparent; - border-radius: 4px; -} -.btn:focus, -.btn:active:focus, -.btn.active:focus, -.btn.focus, -.btn:active.focus, -.btn.active.focus { - outline: thin dotted; - outline: 5px auto -webkit-focus-ring-color; - outline-offset: -2px; -} -.btn:hover, -.btn:focus, -.btn.focus { - color: #333; - text-decoration: none; -} -.btn:active, -.btn.active { - background-image: none; - outline: 0; - -webkit-box-shadow: inset 0 3px 5px rgba(0, 0, 0, .125); - box-shadow: inset 0 3px 5px rgba(0, 0, 0, .125); -} -.btn.disabled, -.btn[disabled], -fieldset[disabled] .btn { - pointer-events: none; - cursor: not-allowed; - filter: alpha(opacity=65); - -webkit-box-shadow: none; - box-shadow: none; - opacity: .65; -} -.btn-default { - color: #333; - background-color: #fff; - border-color: #ccc; -} -.btn-default:hover, -.btn-default:focus, -.btn-default.focus, -.btn-default:active, -.btn-default.active, -.open > .dropdown-toggle.btn-default { - color: #333; - background-color: #e6e6e6; - border-color: #adadad; -} -.btn-default:active, -.btn-default.active, -.open > .dropdown-toggle.btn-default { - background-image: none; -} -.btn-default.disabled, -.btn-default[disabled], -fieldset[disabled] .btn-default, -.btn-default.disabled:hover, -.btn-default[disabled]:hover, -fieldset[disabled] .btn-default:hover, -.btn-default.disabled:focus, -.btn-default[disabled]:focus, -fieldset[disabled] .btn-default:focus, -.btn-default.disabled.focus, -.btn-default[disabled].focus, -fieldset[disabled] .btn-default.focus, -.btn-default.disabled:active, -.btn-default[disabled]:active, -fieldset[disabled] .btn-default:active, -.btn-default.disabled.active, -.btn-default[disabled].active, -fieldset[disabled] .btn-default.active { - background-color: #fff; - border-color: #ccc; -} -.btn-default .badge { - color: #fff; - background-color: #333; -} -.btn-primary { - color: #fff; - background-color: #428bca; - border-color: #357ebd; -} -.btn-primary:hover, -.btn-primary:focus, -.btn-primary.focus, -.btn-primary:active, -.btn-primary.active, -.open > .dropdown-toggle.btn-primary { - color: #fff; - background-color: #3071a9; - border-color: #285e8e; -} -.btn-primary:active, -.btn-primary.active, -.open > .dropdown-toggle.btn-primary { - background-image: none; -} -.btn-primary.disabled, -.btn-primary[disabled], -fieldset[disabled] .btn-primary, -.btn-primary.disabled:hover, -.btn-primary[disabled]:hover, -fieldset[disabled] .btn-primary:hover, -.btn-primary.disabled:focus, -.btn-primary[disabled]:focus, -fieldset[disabled] .btn-primary:focus, -.btn-primary.disabled.focus, -.btn-primary[disabled].focus, -fieldset[disabled] .btn-primary.focus, -.btn-primary.disabled:active, -.btn-primary[disabled]:active, -fieldset[disabled] .btn-primary:active, -.btn-primary.disabled.active, -.btn-primary[disabled].active, -fieldset[disabled] .btn-primary.active { - background-color: #428bca; - border-color: #357ebd; -} -.btn-primary .badge { - color: #428bca; - background-color: #fff; -} -.btn-success { - color: #fff; - background-color: #5cb85c; - border-color: #4cae4c; -} -.btn-success:hover, -.btn-success:focus, -.btn-success.focus, -.btn-success:active, -.btn-success.active, -.open > .dropdown-toggle.btn-success { - color: #fff; - background-color: #449d44; - border-color: #398439; -} -.btn-success:active, -.btn-success.active, -.open > .dropdown-toggle.btn-success { - background-image: none; -} -.btn-success.disabled, -.btn-success[disabled], -fieldset[disabled] .btn-success, -.btn-success.disabled:hover, -.btn-success[disabled]:hover, -fieldset[disabled] .btn-success:hover, -.btn-success.disabled:focus, -.btn-success[disabled]:focus, -fieldset[disabled] .btn-success:focus, -.btn-success.disabled.focus, -.btn-success[disabled].focus, -fieldset[disabled] .btn-success.focus, -.btn-success.disabled:active, -.btn-success[disabled]:active, -fieldset[disabled] .btn-success:active, -.btn-success.disabled.active, -.btn-success[disabled].active, -fieldset[disabled] .btn-success.active { - background-color: #5cb85c; - border-color: #4cae4c; -} -.btn-success .badge { - color: #5cb85c; - background-color: #fff; -} -.btn-info { - color: #fff; - background-color: #5bc0de; - border-color: #46b8da; -} -.btn-info:hover, -.btn-info:focus, -.btn-info.focus, -.btn-info:active, -.btn-info.active, -.open > .dropdown-toggle.btn-info { - color: #fff; - background-color: #31b0d5; - border-color: #269abc; -} -.btn-info:active, -.btn-info.active, -.open > .dropdown-toggle.btn-info { - background-image: none; -} -.btn-info.disabled, -.btn-info[disabled], -fieldset[disabled] .btn-info, -.btn-info.disabled:hover, -.btn-info[disabled]:hover, -fieldset[disabled] .btn-info:hover, -.btn-info.disabled:focus, -.btn-info[disabled]:focus, -fieldset[disabled] .btn-info:focus, -.btn-info.disabled.focus, -.btn-info[disabled].focus, -fieldset[disabled] .btn-info.focus, -.btn-info.disabled:active, -.btn-info[disabled]:active, -fieldset[disabled] .btn-info:active, -.btn-info.disabled.active, -.btn-info[disabled].active, -fieldset[disabled] .btn-info.active { - background-color: #5bc0de; - border-color: #46b8da; -} -.btn-info .badge { - color: #5bc0de; - background-color: #fff; -} -.btn-warning { - color: #fff; - background-color: #f0ad4e; - border-color: #eea236; -} -.btn-warning:hover, -.btn-warning:focus, -.btn-warning.focus, -.btn-warning:active, -.btn-warning.active, -.open > .dropdown-toggle.btn-warning { - color: #fff; - background-color: #ec971f; - border-color: #d58512; -} -.btn-warning:active, -.btn-warning.active, -.open > .dropdown-toggle.btn-warning { - background-image: none; -} -.btn-warning.disabled, -.btn-warning[disabled], -fieldset[disabled] .btn-warning, -.btn-warning.disabled:hover, -.btn-warning[disabled]:hover, -fieldset[disabled] .btn-warning:hover, -.btn-warning.disabled:focus, -.btn-warning[disabled]:focus, -fieldset[disabled] .btn-warning:focus, -.btn-warning.disabled.focus, -.btn-warning[disabled].focus, -fieldset[disabled] .btn-warning.focus, -.btn-warning.disabled:active, -.btn-warning[disabled]:active, -fieldset[disabled] .btn-warning:active, -.btn-warning.disabled.active, -.btn-warning[disabled].active, -fieldset[disabled] .btn-warning.active { - background-color: #f0ad4e; - border-color: #eea236; -} -.btn-warning .badge { - color: #f0ad4e; - background-color: #fff; -} -.btn-danger { - color: #fff; - background-color: #d9534f; - border-color: #d43f3a; -} -.btn-danger:hover, -.btn-danger:focus, -.btn-danger.focus, -.btn-danger:active, -.btn-danger.active, -.open > .dropdown-toggle.btn-danger { - color: #fff; - background-color: #c9302c; - border-color: #ac2925; -} -.btn-danger:active, -.btn-danger.active, -.open > .dropdown-toggle.btn-danger { - background-image: none; -} -.btn-danger.disabled, -.btn-danger[disabled], -fieldset[disabled] .btn-danger, -.btn-danger.disabled:hover, -.btn-danger[disabled]:hover, -fieldset[disabled] .btn-danger:hover, -.btn-danger.disabled:focus, -.btn-danger[disabled]:focus, -fieldset[disabled] .btn-danger:focus, -.btn-danger.disabled.focus, -.btn-danger[disabled].focus, -fieldset[disabled] .btn-danger.focus, -.btn-danger.disabled:active, -.btn-danger[disabled]:active, -fieldset[disabled] .btn-danger:active, -.btn-danger.disabled.active, -.btn-danger[disabled].active, -fieldset[disabled] .btn-danger.active { - background-color: #d9534f; - border-color: #d43f3a; -} -.btn-danger .badge { - color: #d9534f; - background-color: #fff; -} -.btn-link { - font-weight: normal; - color: #428bca; - border-radius: 0; -} -.btn-link, -.btn-link:active, -.btn-link.active, -.btn-link[disabled], -fieldset[disabled] .btn-link { - background-color: transparent; - -webkit-box-shadow: none; - box-shadow: none; -} -.btn-link, -.btn-link:hover, -.btn-link:focus, -.btn-link:active { - border-color: transparent; -} -.btn-link:hover, -.btn-link:focus { - color: #2a6496; - text-decoration: underline; - background-color: transparent; -} -.btn-link[disabled]:hover, -fieldset[disabled] .btn-link:hover, -.btn-link[disabled]:focus, -fieldset[disabled] .btn-link:focus { - color: #777; - text-decoration: none; -} -.btn-lg, -.btn-group-lg > .btn { - padding: 10px 16px; - font-size: 18px; - line-height: 1.33; - border-radius: 6px; -} -.btn-sm, -.btn-group-sm > .btn { - padding: 5px 10px; - font-size: 12px; - line-height: 1.5; - border-radius: 3px; -} -.btn-xs, -.btn-group-xs > .btn { - padding: 1px 5px; - font-size: 12px; - line-height: 1.5; - border-radius: 3px; -} -.btn-block { - display: block; - width: 100%; -} -.btn-block + .btn-block { - margin-top: 5px; -} -input[type="submit"].btn-block, -input[type="reset"].btn-block, -input[type="button"].btn-block { - width: 100%; -} -.fade { - opacity: 0; - -webkit-transition: opacity .15s linear; - -o-transition: opacity .15s linear; - transition: opacity .15s linear; -} -.fade.in { - opacity: 1; -} -.collapse { - display: none; - visibility: hidden; -} -.collapse.in { - display: block; - visibility: visible; -} -tr.collapse.in { - display: table-row; -} -tbody.collapse.in { - display: table-row-group; -} -.collapsing { - position: relative; - height: 0; - overflow: hidden; - -webkit-transition-timing-function: ease; - -o-transition-timing-function: ease; - transition-timing-function: ease; - -webkit-transition-duration: .35s; - -o-transition-duration: .35s; - transition-duration: .35s; - -webkit-transition-property: height, visibility; - -o-transition-property: height, visibility; - transition-property: height, visibility; -} -.caret { - display: inline-block; - width: 0; - height: 0; - margin-left: 2px; - vertical-align: middle; - border-top: 4px solid; - border-right: 4px solid transparent; - border-left: 4px solid transparent; -} -.dropdown { - position: relative; -} -.dropdown-toggle:focus { - outline: 0; -} -.dropdown-menu { - position: absolute; - top: 100%; - left: 0; - z-index: 1000; - display: none; - float: left; - min-width: 160px; - padding: 5px 0; - margin: 2px 0 0; - font-size: 14px; - text-align: left; - list-style: none; - background-color: #fff; - -webkit-background-clip: padding-box; - background-clip: padding-box; - border: 1px solid #ccc; - border: 1px solid rgba(0, 0, 0, .15); - border-radius: 4px; - -webkit-box-shadow: 0 6px 12px rgba(0, 0, 0, .175); - box-shadow: 0 6px 12px rgba(0, 0, 0, .175); -} -.dropdown-menu.pull-right { - right: 0; - left: auto; -} -.dropdown-menu .divider { - height: 1px; - margin: 9px 0; - overflow: hidden; - background-color: #e5e5e5; -} -.dropdown-menu > li > a { - display: block; - padding: 3px 20px; - clear: both; - font-weight: normal; - line-height: 1.42857143; - color: #333; - white-space: nowrap; -} -.dropdown-menu > li > a:hover, -.dropdown-menu > li > a:focus { - color: #262626; - text-decoration: none; - background-color: #f5f5f5; -} -.dropdown-menu > .active > a, -.dropdown-menu > .active > a:hover, -.dropdown-menu > .active > a:focus { - color: #fff; - text-decoration: none; - background-color: #428bca; - outline: 0; -} -.dropdown-menu > .disabled > a, -.dropdown-menu > .disabled > a:hover, -.dropdown-menu > .disabled > a:focus { - color: #777; -} -.dropdown-menu > .disabled > a:hover, -.dropdown-menu > .disabled > a:focus { - text-decoration: none; - cursor: not-allowed; - background-color: transparent; - background-image: none; - filter: progid:DXImageTransform.Microsoft.gradient(enabled = false); -} -.open > .dropdown-menu { - display: block; -} -.open > a { - outline: 0; -} -.dropdown-menu-right { - right: 0; - left: auto; -} -.dropdown-menu-left { - right: auto; - left: 0; -} -.dropdown-header { - display: block; - padding: 3px 20px; - font-size: 12px; - line-height: 1.42857143; - color: #777; - white-space: nowrap; -} -.dropdown-backdrop { - position: fixed; - top: 0; - right: 0; - bottom: 0; - left: 0; - z-index: 990; -} -.pull-right > .dropdown-menu { - right: 0; - left: auto; -} -.dropup .caret, -.navbar-fixed-bottom .dropdown .caret { - content: ""; - border-top: 0; - border-bottom: 4px solid; -} -.dropup .dropdown-menu, -.navbar-fixed-bottom .dropdown .dropdown-menu { - top: auto; - bottom: 100%; - margin-bottom: 1px; -} -@media (min-width: 768px) { - .navbar-right .dropdown-menu { - right: 0; - left: auto; - } - .navbar-right .dropdown-menu-left { - right: auto; - left: 0; - } -} -.btn-group, -.btn-group-vertical { - position: relative; - display: inline-block; - vertical-align: middle; -} -.btn-group > .btn, -.btn-group-vertical > .btn { - position: relative; - float: left; -} -.btn-group > .btn:hover, -.btn-group-vertical > .btn:hover, -.btn-group > .btn:focus, -.btn-group-vertical > .btn:focus, -.btn-group > .btn:active, -.btn-group-vertical > .btn:active, -.btn-group > .btn.active, -.btn-group-vertical > .btn.active { - z-index: 2; -} -.btn-group > .btn:focus, -.btn-group-vertical > .btn:focus { - outline: 0; -} -.btn-group .btn + .btn, -.btn-group .btn + .btn-group, -.btn-group .btn-group + .btn, -.btn-group .btn-group + .btn-group { - margin-left: -1px; -} -.btn-toolbar { - margin-left: -5px; -} -.btn-toolbar .btn-group, -.btn-toolbar .input-group { - float: left; -} -.btn-toolbar > .btn, -.btn-toolbar > .btn-group, -.btn-toolbar > .input-group { - margin-left: 5px; -} -.btn-group > .btn:not(:first-child):not(:last-child):not(.dropdown-toggle) { - border-radius: 0; -} -.btn-group > .btn:first-child { - margin-left: 0; -} -.btn-group > .btn:first-child:not(:last-child):not(.dropdown-toggle) { - border-top-right-radius: 0; - border-bottom-right-radius: 0; -} -.btn-group > .btn:last-child:not(:first-child), -.btn-group > .dropdown-toggle:not(:first-child) { - border-top-left-radius: 0; - border-bottom-left-radius: 0; -} -.btn-group > .btn-group { - float: left; -} -.btn-group > .btn-group:not(:first-child):not(:last-child) > .btn { - border-radius: 0; -} -.btn-group > .btn-group:first-child > .btn:last-child, -.btn-group > .btn-group:first-child > .dropdown-toggle { - border-top-right-radius: 0; - border-bottom-right-radius: 0; -} -.btn-group > .btn-group:last-child > .btn:first-child { - border-top-left-radius: 0; - border-bottom-left-radius: 0; -} -.btn-group .dropdown-toggle:active, -.btn-group.open .dropdown-toggle { - outline: 0; -} -.btn-group > .btn + .dropdown-toggle { - padding-right: 8px; - padding-left: 8px; -} -.btn-group > .btn-lg + .dropdown-toggle { - padding-right: 12px; - padding-left: 12px; -} -.btn-group.open .dropdown-toggle { - -webkit-box-shadow: inset 0 3px 5px rgba(0, 0, 0, .125); - box-shadow: inset 0 3px 5px rgba(0, 0, 0, .125); -} -.btn-group.open .dropdown-toggle.btn-link { - -webkit-box-shadow: none; - box-shadow: none; -} -.btn .caret { - margin-left: 0; -} -.btn-lg .caret { - border-width: 5px 5px 0; - border-bottom-width: 0; -} -.dropup .btn-lg .caret { - border-width: 0 5px 5px; -} -.btn-group-vertical > .btn, -.btn-group-vertical > .btn-group, -.btn-group-vertical > .btn-group > .btn { - display: block; - float: none; - width: 100%; - max-width: 100%; -} -.btn-group-vertical > .btn-group > .btn { - float: none; -} -.btn-group-vertical > .btn + .btn, -.btn-group-vertical > .btn + .btn-group, -.btn-group-vertical > .btn-group + .btn, -.btn-group-vertical > .btn-group + .btn-group { - margin-top: -1px; - margin-left: 0; -} -.btn-group-vertical > .btn:not(:first-child):not(:last-child) { - border-radius: 0; -} -.btn-group-vertical > .btn:first-child:not(:last-child) { - border-top-right-radius: 4px; - border-bottom-right-radius: 0; - border-bottom-left-radius: 0; -} -.btn-group-vertical > .btn:last-child:not(:first-child) { - border-top-left-radius: 0; - border-top-right-radius: 0; - border-bottom-left-radius: 4px; -} -.btn-group-vertical > .btn-group:not(:first-child):not(:last-child) > .btn { - border-radius: 0; -} -.btn-group-vertical > .btn-group:first-child:not(:last-child) > .btn:last-child, -.btn-group-vertical > .btn-group:first-child:not(:last-child) > .dropdown-toggle { - border-bottom-right-radius: 0; - border-bottom-left-radius: 0; -} -.btn-group-vertical > .btn-group:last-child:not(:first-child) > .btn:first-child { - border-top-left-radius: 0; - border-top-right-radius: 0; -} -.btn-group-justified { - display: table; - width: 100%; - table-layout: fixed; - border-collapse: separate; -} -.btn-group-justified > .btn, -.btn-group-justified > .btn-group { - display: table-cell; - float: none; - width: 1%; -} -.btn-group-justified > .btn-group .btn { - width: 100%; -} -.btn-group-justified > .btn-group .dropdown-menu { - left: auto; -} -[data-toggle="buttons"] > .btn input[type="radio"], -[data-toggle="buttons"] > .btn-group > .btn input[type="radio"], -[data-toggle="buttons"] > .btn input[type="checkbox"], -[data-toggle="buttons"] > .btn-group > .btn input[type="checkbox"] { - position: absolute; - clip: rect(0, 0, 0, 0); - pointer-events: none; -} -.input-group { - position: relative; - display: table; - border-collapse: separate; -} -.input-group[class*="col-"] { - float: none; - padding-right: 0; - padding-left: 0; -} -.input-group .form-control { - position: relative; - z-index: 2; - float: left; - width: 100%; - margin-bottom: 0; -} -.input-group-lg > .form-control, -.input-group-lg > .input-group-addon, -.input-group-lg > .input-group-btn > .btn { - height: 46px; - padding: 10px 16px; - font-size: 18px; - line-height: 1.33; - border-radius: 6px; -} -select.input-group-lg > .form-control, -select.input-group-lg > .input-group-addon, -select.input-group-lg > .input-group-btn > .btn { - height: 46px; - line-height: 46px; -} -textarea.input-group-lg > .form-control, -textarea.input-group-lg > .input-group-addon, -textarea.input-group-lg > .input-group-btn > .btn, -select[multiple].input-group-lg > .form-control, -select[multiple].input-group-lg > .input-group-addon, -select[multiple].input-group-lg > .input-group-btn > .btn { - height: auto; -} -.input-group-sm > .form-control, -.input-group-sm > .input-group-addon, -.input-group-sm > .input-group-btn > .btn { - height: 30px; - padding: 5px 10px; - font-size: 12px; - line-height: 1.5; - border-radius: 3px; -} -select.input-group-sm > .form-control, -select.input-group-sm > .input-group-addon, -select.input-group-sm > .input-group-btn > .btn { - height: 30px; - line-height: 30px; -} -textarea.input-group-sm > .form-control, -textarea.input-group-sm > .input-group-addon, -textarea.input-group-sm > .input-group-btn > .btn, -select[multiple].input-group-sm > .form-control, -select[multiple].input-group-sm > .input-group-addon, -select[multiple].input-group-sm > .input-group-btn > .btn { - height: auto; -} -.input-group-addon, -.input-group-btn, -.input-group .form-control { - display: table-cell; -} -.input-group-addon:not(:first-child):not(:last-child), -.input-group-btn:not(:first-child):not(:last-child), -.input-group .form-control:not(:first-child):not(:last-child) { - border-radius: 0; -} -.input-group-addon, -.input-group-btn { - width: 1%; - white-space: nowrap; - vertical-align: middle; -} -.input-group-addon { - padding: 6px 12px; - font-size: 14px; - font-weight: normal; - line-height: 1; - color: #555; - text-align: center; - background-color: #eee; - border: 1px solid #ccc; - border-radius: 4px; -} -.input-group-addon.input-sm { - padding: 5px 10px; - font-size: 12px; - border-radius: 3px; -} -.input-group-addon.input-lg { - padding: 10px 16px; - font-size: 18px; - border-radius: 6px; -} -.input-group-addon input[type="radio"], -.input-group-addon input[type="checkbox"] { - margin-top: 0; -} -.input-group .form-control:first-child, -.input-group-addon:first-child, -.input-group-btn:first-child > .btn, -.input-group-btn:first-child > .btn-group > .btn, -.input-group-btn:first-child > .dropdown-toggle, -.input-group-btn:last-child > .btn:not(:last-child):not(.dropdown-toggle), -.input-group-btn:last-child > .btn-group:not(:last-child) > .btn { - border-top-right-radius: 0; - border-bottom-right-radius: 0; -} -.input-group-addon:first-child { - border-right: 0; -} -.input-group .form-control:last-child, -.input-group-addon:last-child, -.input-group-btn:last-child > .btn, -.input-group-btn:last-child > .btn-group > .btn, -.input-group-btn:last-child > .dropdown-toggle, -.input-group-btn:first-child > .btn:not(:first-child), -.input-group-btn:first-child > .btn-group:not(:first-child) > .btn { - border-top-left-radius: 0; - border-bottom-left-radius: 0; -} -.input-group-addon:last-child { - border-left: 0; -} -.input-group-btn { - position: relative; - font-size: 0; - white-space: nowrap; -} -.input-group-btn > .btn { - position: relative; -} -.input-group-btn > .btn + .btn { - margin-left: -1px; -} -.input-group-btn > .btn:hover, -.input-group-btn > .btn:focus, -.input-group-btn > .btn:active { - z-index: 2; -} -.input-group-btn:first-child > .btn, -.input-group-btn:first-child > .btn-group { - margin-right: -1px; -} -.input-group-btn:last-child > .btn, -.input-group-btn:last-child > .btn-group { - margin-left: -1px; -} -.nav { - padding-left: 0; - margin-bottom: 0; - list-style: none; -} -.nav > li { - position: relative; - display: block; -} -.nav > li > a { - position: relative; - display: block; - padding: 10px 15px; -} -.nav > li > a:hover, -.nav > li > a:focus { - text-decoration: none; - background-color: #eee; -} -.nav > li.disabled > a { - color: #777; -} -.nav > li.disabled > a:hover, -.nav > li.disabled > a:focus { - color: #777; - text-decoration: none; - cursor: not-allowed; - background-color: transparent; -} -.nav .open > a, -.nav .open > a:hover, -.nav .open > a:focus { - background-color: #eee; - border-color: #428bca; -} -.nav .nav-divider { - height: 1px; - margin: 9px 0; - overflow: hidden; - background-color: #e5e5e5; -} -.nav > li > a > img { - max-width: none; -} -.nav-tabs { - border-bottom: 1px solid #ddd; -} -.nav-tabs > li { - float: left; - margin-bottom: -1px; -} -.nav-tabs > li > a { - margin-right: 2px; - line-height: 1.42857143; - border: 1px solid transparent; - border-radius: 4px 4px 0 0; -} -.nav-tabs > li > a:hover { - border-color: #eee #eee #ddd; -} -.nav-tabs > li.active > a, -.nav-tabs > li.active > a:hover, -.nav-tabs > li.active > a:focus { - color: #555; - cursor: default; - background-color: #fff; - border: 1px solid #ddd; - border-bottom-color: transparent; -} -.nav-tabs.nav-justified { - width: 100%; - border-bottom: 0; -} -.nav-tabs.nav-justified > li { - float: none; -} -.nav-tabs.nav-justified > li > a { - margin-bottom: 5px; - text-align: center; -} -.nav-tabs.nav-justified > .dropdown .dropdown-menu { - top: auto; - left: auto; -} -@media (min-width: 768px) { - .nav-tabs.nav-justified > li { - display: table-cell; - width: 1%; - } - .nav-tabs.nav-justified > li > a { - margin-bottom: 0; - } -} -.nav-tabs.nav-justified > li > a { - margin-right: 0; - border-radius: 4px; -} -.nav-tabs.nav-justified > .active > a, -.nav-tabs.nav-justified > .active > a:hover, -.nav-tabs.nav-justified > .active > a:focus { - border: 1px solid #ddd; -} -@media (min-width: 768px) { - .nav-tabs.nav-justified > li > a { - border-bottom: 1px solid #ddd; - border-radius: 4px 4px 0 0; - } - .nav-tabs.nav-justified > .active > a, - .nav-tabs.nav-justified > .active > a:hover, - .nav-tabs.nav-justified > .active > a:focus { - border-bottom-color: #fff; - } -} -.nav-pills > li { - float: left; -} -.nav-pills > li > a { - border-radius: 4px; -} -.nav-pills > li + li { - margin-left: 2px; -} -.nav-pills > li.active > a, -.nav-pills > li.active > a:hover, -.nav-pills > li.active > a:focus { - color: #fff; - background-color: #428bca; -} -.nav-stacked > li { - float: none; -} -.nav-stacked > li + li { - margin-top: 2px; - margin-left: 0; -} -.nav-justified { - width: 100%; -} -.nav-justified > li { - float: none; -} -.nav-justified > li > a { - margin-bottom: 5px; - text-align: center; -} -.nav-justified > .dropdown .dropdown-menu { - top: auto; - left: auto; -} -@media (min-width: 768px) { - .nav-justified > li { - display: table-cell; - width: 1%; - } - .nav-justified > li > a { - margin-bottom: 0; - } -} -.nav-tabs-justified { - border-bottom: 0; -} -.nav-tabs-justified > li > a { - margin-right: 0; - border-radius: 4px; -} -.nav-tabs-justified > .active > a, -.nav-tabs-justified > .active > a:hover, -.nav-tabs-justified > .active > a:focus { - border: 1px solid #ddd; -} -@media (min-width: 768px) { - .nav-tabs-justified > li > a { - border-bottom: 1px solid #ddd; - border-radius: 4px 4px 0 0; - } - .nav-tabs-justified > .active > a, - .nav-tabs-justified > .active > a:hover, - .nav-tabs-justified > .active > a:focus { - border-bottom-color: #fff; - } -} -.tab-content > .tab-pane { - display: none; - visibility: hidden; -} -.tab-content > .active { - display: block; - visibility: visible; -} -.nav-tabs .dropdown-menu { - margin-top: -1px; - border-top-left-radius: 0; - border-top-right-radius: 0; -} -.navbar { - position: relative; - min-height: 50px; - margin-bottom: 20px; - border: 1px solid transparent; -} -@media (min-width: 768px) { - .navbar { - border-radius: 4px; - } -} -@media (min-width: 768px) { - .navbar-header { - float: left; - } -} -.navbar-collapse { - padding-right: 15px; - padding-left: 15px; - overflow-x: visible; - -webkit-overflow-scrolling: touch; - border-top: 1px solid transparent; - -webkit-box-shadow: inset 0 1px 0 rgba(255, 255, 255, .1); - box-shadow: inset 0 1px 0 rgba(255, 255, 255, .1); -} -.navbar-collapse.in { - overflow-y: auto; -} -@media (min-width: 768px) { - .navbar-collapse { - width: auto; - border-top: 0; - -webkit-box-shadow: none; - box-shadow: none; - } - .navbar-collapse.collapse { - display: block !important; - height: auto !important; - padding-bottom: 0; - overflow: visible !important; - visibility: visible !important; - } - .navbar-collapse.in { - overflow-y: visible; - } - .navbar-fixed-top .navbar-collapse, - .navbar-static-top .navbar-collapse, - .navbar-fixed-bottom .navbar-collapse { - padding-right: 0; - padding-left: 0; - } -} -.navbar-fixed-top .navbar-collapse, -.navbar-fixed-bottom .navbar-collapse { - max-height: 340px; -} -@media (max-device-width: 480px) and (orientation: landscape) { - .navbar-fixed-top .navbar-collapse, - .navbar-fixed-bottom .navbar-collapse { - max-height: 200px; - } -} -.container > .navbar-header, -.container-fluid > .navbar-header, -.container > .navbar-collapse, -.container-fluid > .navbar-collapse { - margin-right: -15px; - margin-left: -15px; -} -@media (min-width: 768px) { - .container > .navbar-header, - .container-fluid > .navbar-header, - .container > .navbar-collapse, - .container-fluid > .navbar-collapse { - margin-right: 0; - margin-left: 0; - } -} -.navbar-static-top { - z-index: 1000; - border-width: 0 0 1px; -} -@media (min-width: 768px) { - .navbar-static-top { - border-radius: 0; - } -} -.navbar-fixed-top, -.navbar-fixed-bottom { - position: fixed; - right: 0; - left: 0; - z-index: 1030; -} -@media (min-width: 768px) { - .navbar-fixed-top, - .navbar-fixed-bottom { - border-radius: 0; - } -} -.navbar-fixed-top { - top: 0; - border-width: 0 0 1px; -} -.navbar-fixed-bottom { - bottom: 0; - margin-bottom: 0; - border-width: 1px 0 0; -} -.navbar-brand { - float: left; - height: 50px; - padding: 15px 15px; - font-size: 18px; - line-height: 20px; -} -.navbar-brand:hover, -.navbar-brand:focus { - text-decoration: none; -} -.navbar-brand > img { - display: block; -} -@media (min-width: 768px) { - .navbar > .container .navbar-brand, - .navbar > .container-fluid .navbar-brand { - margin-left: -15px; - } -} -.navbar-toggle { - position: relative; - float: right; - padding: 9px 10px; - margin-top: 8px; - margin-right: 15px; - margin-bottom: 8px; - background-color: transparent; - background-image: none; - border: 1px solid transparent; - border-radius: 4px; -} -.navbar-toggle:focus { - outline: 0; -} -.navbar-toggle .icon-bar { - display: block; - width: 22px; - height: 2px; - border-radius: 1px; -} -.navbar-toggle .icon-bar + .icon-bar { - margin-top: 4px; -} -@media (min-width: 768px) { - .navbar-toggle { - display: none; - } -} -.navbar-nav { - margin: 7.5px -15px; -} -.navbar-nav > li > a { - padding-top: 10px; - padding-bottom: 10px; - line-height: 20px; -} -@media (max-width: 767px) { - .navbar-nav .open .dropdown-menu { - position: static; - float: none; - width: auto; - margin-top: 0; - background-color: transparent; - border: 0; - -webkit-box-shadow: none; - box-shadow: none; - } - .navbar-nav .open .dropdown-menu > li > a, - .navbar-nav .open .dropdown-menu .dropdown-header { - padding: 5px 15px 5px 25px; - } - .navbar-nav .open .dropdown-menu > li > a { - line-height: 20px; - } - .navbar-nav .open .dropdown-menu > li > a:hover, - .navbar-nav .open .dropdown-menu > li > a:focus { - background-image: none; - } -} -@media (min-width: 768px) { - .navbar-nav { - float: left; - margin: 0; - } - .navbar-nav > li { - float: left; - } - .navbar-nav > li > a { - padding-top: 15px; - padding-bottom: 15px; - } -} -.navbar-form { - padding: 10px 15px; - margin-top: 8px; - margin-right: -15px; - margin-bottom: 8px; - margin-left: -15px; - border-top: 1px solid transparent; - border-bottom: 1px solid transparent; - -webkit-box-shadow: inset 0 1px 0 rgba(255, 255, 255, .1), 0 1px 0 rgba(255, 255, 255, .1); - box-shadow: inset 0 1px 0 rgba(255, 255, 255, .1), 0 1px 0 rgba(255, 255, 255, .1); -} -@media (min-width: 768px) { - .navbar-form .form-group { - display: inline-block; - margin-bottom: 0; - vertical-align: middle; - } - .navbar-form .form-control { - display: inline-block; - width: auto; - vertical-align: middle; - } - .navbar-form .form-control-static { - display: inline-block; - } - .navbar-form .input-group { - display: inline-table; - vertical-align: middle; - } - .navbar-form .input-group .input-group-addon, - .navbar-form .input-group .input-group-btn, - .navbar-form .input-group .form-control { - width: auto; - } - .navbar-form .input-group > .form-control { - width: 100%; - } - .navbar-form .control-label { - margin-bottom: 0; - vertical-align: middle; - } - .navbar-form .radio, - .navbar-form .checkbox { - display: inline-block; - margin-top: 0; - margin-bottom: 0; - vertical-align: middle; - } - .navbar-form .radio label, - .navbar-form .checkbox label { - padding-left: 0; - } - .navbar-form .radio input[type="radio"], - .navbar-form .checkbox input[type="checkbox"] { - position: relative; - margin-left: 0; - } - .navbar-form .has-feedback .form-control-feedback { - top: 0; - } -} -@media (max-width: 767px) { - .navbar-form .form-group { - margin-bottom: 5px; - } - .navbar-form .form-group:last-child { - margin-bottom: 0; - } -} -@media (min-width: 768px) { - .navbar-form { - width: auto; - padding-top: 0; - padding-bottom: 0; - margin-right: 0; - margin-left: 0; - border: 0; - -webkit-box-shadow: none; - box-shadow: none; - } -} -.navbar-nav > li > .dropdown-menu { - margin-top: 0; - border-top-left-radius: 0; - border-top-right-radius: 0; -} -.navbar-fixed-bottom .navbar-nav > li > .dropdown-menu { - border-bottom-right-radius: 0; - border-bottom-left-radius: 0; -} -.navbar-btn { - margin-top: 8px; - margin-bottom: 8px; -} -.navbar-btn.btn-sm { - margin-top: 10px; - margin-bottom: 10px; -} -.navbar-btn.btn-xs { - margin-top: 14px; - margin-bottom: 14px; -} -.navbar-text { - margin-top: 15px; - margin-bottom: 15px; -} -@media (min-width: 768px) { - .navbar-text { - float: left; - margin-right: 15px; - margin-left: 15px; - } -} -@media (min-width: 768px) { - .navbar-left { - float: left !important; - } - .navbar-right { - float: right !important; - margin-right: -15px; - } - .navbar-right ~ .navbar-right { - margin-right: 0; - } -} -.navbar-default { - background-color: #f8f8f8; - border-color: #e7e7e7; -} -.navbar-default .navbar-brand { - color: #777; -} -.navbar-default .navbar-brand:hover, -.navbar-default .navbar-brand:focus { - color: #5e5e5e; - background-color: transparent; -} -.navbar-default .navbar-text { - color: #777; -} -.navbar-default .navbar-nav > li > a { - color: #777; -} -.navbar-default .navbar-nav > li > a:hover, -.navbar-default .navbar-nav > li > a:focus { - color: #333; - background-color: transparent; -} -.navbar-default .navbar-nav > .active > a, -.navbar-default .navbar-nav > .active > a:hover, -.navbar-default .navbar-nav > .active > a:focus { - color: #555; - background-color: #e7e7e7; -} -.navbar-default .navbar-nav > .disabled > a, -.navbar-default .navbar-nav > .disabled > a:hover, -.navbar-default .navbar-nav > .disabled > a:focus { - color: #ccc; - background-color: transparent; -} -.navbar-default .navbar-toggle { - border-color: #ddd; -} -.navbar-default .navbar-toggle:hover, -.navbar-default .navbar-toggle:focus { - background-color: #ddd; -} -.navbar-default .navbar-toggle .icon-bar { - background-color: #888; -} -.navbar-default .navbar-collapse, -.navbar-default .navbar-form { - border-color: #e7e7e7; -} -.navbar-default .navbar-nav > .open > a, -.navbar-default .navbar-nav > .open > a:hover, -.navbar-default .navbar-nav > .open > a:focus { - color: #555; - background-color: #e7e7e7; -} -@media (max-width: 767px) { - .navbar-default .navbar-nav .open .dropdown-menu > li > a { - color: #777; - } - .navbar-default .navbar-nav .open .dropdown-menu > li > a:hover, - .navbar-default .navbar-nav .open .dropdown-menu > li > a:focus { - color: #333; - background-color: transparent; - } - .navbar-default .navbar-nav .open .dropdown-menu > .active > a, - .navbar-default .navbar-nav .open .dropdown-menu > .active > a:hover, - .navbar-default .navbar-nav .open .dropdown-menu > .active > a:focus { - color: #555; - background-color: #e7e7e7; - } - .navbar-default .navbar-nav .open .dropdown-menu > .disabled > a, - .navbar-default .navbar-nav .open .dropdown-menu > .disabled > a:hover, - .navbar-default .navbar-nav .open .dropdown-menu > .disabled > a:focus { - color: #ccc; - background-color: transparent; - } -} -.navbar-default .navbar-link { - color: #777; -} -.navbar-default .navbar-link:hover { - color: #333; -} -.navbar-default .btn-link { - color: #777; -} -.navbar-default .btn-link:hover, -.navbar-default .btn-link:focus { - color: #333; -} -.navbar-default .btn-link[disabled]:hover, -fieldset[disabled] .navbar-default .btn-link:hover, -.navbar-default .btn-link[disabled]:focus, -fieldset[disabled] .navbar-default .btn-link:focus { - color: #ccc; -} -.navbar-inverse { - background-color: #222; - border-color: #080808; -} -.navbar-inverse .navbar-brand { - color: #9d9d9d; -} -.navbar-inverse .navbar-brand:hover, -.navbar-inverse .navbar-brand:focus { - color: #fff; - background-color: transparent; -} -.navbar-inverse .navbar-text { - color: #9d9d9d; -} -.navbar-inverse .navbar-nav > li > a { - color: #9d9d9d; -} -.navbar-inverse .navbar-nav > li > a:hover, -.navbar-inverse .navbar-nav > li > a:focus { - color: #fff; - background-color: transparent; -} -.navbar-inverse .navbar-nav > .active > a, -.navbar-inverse .navbar-nav > .active > a:hover, -.navbar-inverse .navbar-nav > .active > a:focus { - color: #fff; - background-color: #080808; -} -.navbar-inverse .navbar-nav > .disabled > a, -.navbar-inverse .navbar-nav > .disabled > a:hover, -.navbar-inverse .navbar-nav > .disabled > a:focus { - color: #444; - background-color: transparent; -} -.navbar-inverse .navbar-toggle { - border-color: #333; -} -.navbar-inverse .navbar-toggle:hover, -.navbar-inverse .navbar-toggle:focus { - background-color: #333; -} -.navbar-inverse .navbar-toggle .icon-bar { - background-color: #fff; -} -.navbar-inverse .navbar-collapse, -.navbar-inverse .navbar-form { - border-color: #101010; -} -.navbar-inverse .navbar-nav > .open > a, -.navbar-inverse .navbar-nav > .open > a:hover, -.navbar-inverse .navbar-nav > .open > a:focus { - color: #fff; - background-color: #080808; -} -@media (max-width: 767px) { - .navbar-inverse .navbar-nav .open .dropdown-menu > .dropdown-header { - border-color: #080808; - } - .navbar-inverse .navbar-nav .open .dropdown-menu .divider { - background-color: #080808; - } - .navbar-inverse .navbar-nav .open .dropdown-menu > li > a { - color: #9d9d9d; - } - .navbar-inverse .navbar-nav .open .dropdown-menu > li > a:hover, - .navbar-inverse .navbar-nav .open .dropdown-menu > li > a:focus { - color: #fff; - background-color: transparent; - } - .navbar-inverse .navbar-nav .open .dropdown-menu > .active > a, - .navbar-inverse .navbar-nav .open .dropdown-menu > .active > a:hover, - .navbar-inverse .navbar-nav .open .dropdown-menu > .active > a:focus { - color: #fff; - background-color: #080808; - } - .navbar-inverse .navbar-nav .open .dropdown-menu > .disabled > a, - .navbar-inverse .navbar-nav .open .dropdown-menu > .disabled > a:hover, - .navbar-inverse .navbar-nav .open .dropdown-menu > .disabled > a:focus { - color: #444; - background-color: transparent; - } -} -.navbar-inverse .navbar-link { - color: #9d9d9d; -} -.navbar-inverse .navbar-link:hover { - color: #fff; -} -.navbar-inverse .btn-link { - color: #9d9d9d; -} -.navbar-inverse .btn-link:hover, -.navbar-inverse .btn-link:focus { - color: #fff; -} -.navbar-inverse .btn-link[disabled]:hover, -fieldset[disabled] .navbar-inverse .btn-link:hover, -.navbar-inverse .btn-link[disabled]:focus, -fieldset[disabled] .navbar-inverse .btn-link:focus { - color: #444; -} -.breadcrumb { - padding: 8px 15px; - margin-bottom: 20px; - list-style: none; - background-color: #f5f5f5; - border-radius: 4px; -} -.breadcrumb > li { - display: inline-block; -} -.breadcrumb > li + li:before { - padding: 0 5px; - color: #ccc; - content: "/\00a0"; -} -.breadcrumb > .active { - color: #777; -} -.pagination { - display: inline-block; - padding-left: 0; - margin: 20px 0; - border-radius: 4px; -} -.pagination > li { - display: inline; -} -.pagination > li > a, -.pagination > li > span { - position: relative; - float: left; - padding: 6px 12px; - margin-left: -1px; - line-height: 1.42857143; - color: #428bca; - text-decoration: none; - background-color: #fff; - border: 1px solid #ddd; -} -.pagination > li:first-child > a, -.pagination > li:first-child > span { - margin-left: 0; - border-top-left-radius: 4px; - border-bottom-left-radius: 4px; -} -.pagination > li:last-child > a, -.pagination > li:last-child > span { - border-top-right-radius: 4px; - border-bottom-right-radius: 4px; -} -.pagination > li > a:hover, -.pagination > li > span:hover, -.pagination > li > a:focus, -.pagination > li > span:focus { - color: #2a6496; - background-color: #eee; - border-color: #ddd; -} -.pagination > .active > a, -.pagination > .active > span, -.pagination > .active > a:hover, -.pagination > .active > span:hover, -.pagination > .active > a:focus, -.pagination > .active > span:focus { - z-index: 2; - color: #fff; - cursor: default; - background-color: #428bca; - border-color: #428bca; -} -.pagination > .disabled > span, -.pagination > .disabled > span:hover, -.pagination > .disabled > span:focus, -.pagination > .disabled > a, -.pagination > .disabled > a:hover, -.pagination > .disabled > a:focus { - color: #777; - cursor: not-allowed; - background-color: #fff; - border-color: #ddd; -} -.pagination-lg > li > a, -.pagination-lg > li > span { - padding: 10px 16px; - font-size: 18px; -} -.pagination-lg > li:first-child > a, -.pagination-lg > li:first-child > span { - border-top-left-radius: 6px; - border-bottom-left-radius: 6px; -} -.pagination-lg > li:last-child > a, -.pagination-lg > li:last-child > span { - border-top-right-radius: 6px; - border-bottom-right-radius: 6px; -} -.pagination-sm > li > a, -.pagination-sm > li > span { - padding: 5px 10px; - font-size: 12px; -} -.pagination-sm > li:first-child > a, -.pagination-sm > li:first-child > span { - border-top-left-radius: 3px; - border-bottom-left-radius: 3px; -} -.pagination-sm > li:last-child > a, -.pagination-sm > li:last-child > span { - border-top-right-radius: 3px; - border-bottom-right-radius: 3px; -} -.pager { - padding-left: 0; - margin: 20px 0; - text-align: center; - list-style: none; -} -.pager li { - display: inline; -} -.pager li > a, -.pager li > span { - display: inline-block; - padding: 5px 14px; - background-color: #fff; - border: 1px solid #ddd; - border-radius: 15px; -} -.pager li > a:hover, -.pager li > a:focus { - text-decoration: none; - background-color: #eee; -} -.pager .next > a, -.pager .next > span { - float: right; -} -.pager .previous > a, -.pager .previous > span { - float: left; -} -.pager .disabled > a, -.pager .disabled > a:hover, -.pager .disabled > a:focus, -.pager .disabled > span { - color: #777; - cursor: not-allowed; - background-color: #fff; -} -.label { - display: inline; - padding: .2em .6em .3em; - font-size: 75%; - font-weight: bold; - line-height: 1; - color: #fff; - text-align: center; - white-space: nowrap; - vertical-align: baseline; - border-radius: .25em; -} -a.label:hover, -a.label:focus { - color: #fff; - text-decoration: none; - cursor: pointer; -} -.label:empty { - display: none; -} -.btn .label { - position: relative; - top: -1px; -} -.label-default { - background-color: #777; -} -.label-default[href]:hover, -.label-default[href]:focus { - background-color: #5e5e5e; -} -.label-primary { - background-color: #428bca; -} -.label-primary[href]:hover, -.label-primary[href]:focus { - background-color: #3071a9; -} -.label-success { - background-color: #5cb85c; -} -.label-success[href]:hover, -.label-success[href]:focus { - background-color: #449d44; -} -.label-info { - background-color: #5bc0de; -} -.label-info[href]:hover, -.label-info[href]:focus { - background-color: #31b0d5; -} -.label-warning { - background-color: #f0ad4e; -} -.label-warning[href]:hover, -.label-warning[href]:focus { - background-color: #ec971f; -} -.label-danger { - background-color: #d9534f; -} -.label-danger[href]:hover, -.label-danger[href]:focus { - background-color: #c9302c; -} -.badge { - display: inline-block; - min-width: 10px; - padding: 3px 7px; - font-size: 12px; - font-weight: bold; - line-height: 1; - color: #fff; - text-align: center; - white-space: nowrap; - vertical-align: baseline; - background-color: #777; - border-radius: 10px; -} -.badge:empty { - display: none; -} -.btn .badge { - position: relative; - top: -1px; -} -.btn-xs .badge { - top: 0; - padding: 1px 5px; -} -a.badge:hover, -a.badge:focus { - color: #fff; - text-decoration: none; - cursor: pointer; -} -a.list-group-item.active > .badge, -.nav-pills > .active > a > .badge { - color: #428bca; - background-color: #fff; -} -.nav-pills > li > a > .badge { - margin-left: 3px; -} -.jumbotron { - padding: 30px 15px; - margin-bottom: 30px; - color: inherit; - background-color: #eee; -} -.jumbotron h1, -.jumbotron .h1 { - color: inherit; -} -.jumbotron p { - margin-bottom: 15px; - font-size: 21px; - font-weight: 200; -} -.jumbotron > hr { - border-top-color: #d5d5d5; -} -.container .jumbotron, -.container-fluid .jumbotron { - border-radius: 6px; -} -.jumbotron .container { - max-width: 100%; -} -@media screen and (min-width: 768px) { - .jumbotron { - padding: 48px 0; - } - .container .jumbotron { - padding-right: 60px; - padding-left: 60px; - } - .jumbotron h1, - .jumbotron .h1 { - font-size: 63px; - } -} -.thumbnail { - display: block; - padding: 4px; - margin-bottom: 20px; - line-height: 1.42857143; - background-color: #fff; - border: 1px solid #ddd; - border-radius: 4px; - -webkit-transition: border .2s ease-in-out; - -o-transition: border .2s ease-in-out; - transition: border .2s ease-in-out; -} -.thumbnail > img, -.thumbnail a > img { - margin-right: auto; - margin-left: auto; -} -a.thumbnail:hover, -a.thumbnail:focus, -a.thumbnail.active { - border-color: #428bca; -} -.thumbnail .caption { - padding: 9px; - color: #333; -} -.alert { - padding: 15px; - margin-bottom: 20px; - border: 1px solid transparent; - border-radius: 4px; -} -.alert h4 { - margin-top: 0; - color: inherit; -} -.alert .alert-link { - font-weight: bold; -} -.alert > p, -.alert > ul { - margin-bottom: 0; -} -.alert > p + p { - margin-top: 5px; -} -.alert-dismissable, -.alert-dismissible { - padding-right: 35px; -} -.alert-dismissable .close, -.alert-dismissible .close { - position: relative; - top: -2px; - right: -21px; - color: inherit; -} -.alert-success { - color: #3c763d; - background-color: #dff0d8; - border-color: #d6e9c6; -} -.alert-success hr { - border-top-color: #c9e2b3; -} -.alert-success .alert-link { - color: #2b542c; -} -.alert-info { - color: #31708f; - background-color: #d9edf7; - border-color: #bce8f1; -} -.alert-info hr { - border-top-color: #a6e1ec; -} -.alert-info .alert-link { - color: #245269; -} -.alert-warning { - color: #8a6d3b; - background-color: #fcf8e3; - border-color: #faebcc; -} -.alert-warning hr { - border-top-color: #f7e1b5; -} -.alert-warning .alert-link { - color: #66512c; -} -.alert-danger { - color: #a94442; - background-color: #f2dede; - border-color: #ebccd1; -} -.alert-danger hr { - border-top-color: #e4b9c0; -} -.alert-danger .alert-link { - color: #843534; -} -@-webkit-keyframes progress-bar-stripes { - from { - background-position: 40px 0; - } - to { - background-position: 0 0; - } -} -@-o-keyframes progress-bar-stripes { - from { - background-position: 40px 0; - } - to { - background-position: 0 0; - } -} -@keyframes progress-bar-stripes { - from { - background-position: 40px 0; - } - to { - background-position: 0 0; - } -} -.progress { - height: 20px; - margin-bottom: 20px; - overflow: hidden; - background-color: #f5f5f5; - border-radius: 4px; - -webkit-box-shadow: inset 0 1px 2px rgba(0, 0, 0, .1); - box-shadow: inset 0 1px 2px rgba(0, 0, 0, .1); -} -.progress-bar { - float: left; - width: 0; - height: 100%; - font-size: 12px; - line-height: 20px; - color: #fff; - text-align: center; - background-color: #428bca; - -webkit-box-shadow: inset 0 -1px 0 rgba(0, 0, 0, .15); - box-shadow: inset 0 -1px 0 rgba(0, 0, 0, .15); - -webkit-transition: width .6s ease; - -o-transition: width .6s ease; - transition: width .6s ease; -} -.progress-striped .progress-bar, -.progress-bar-striped { - background-image: -webkit-linear-gradient(45deg, rgba(255, 255, 255, .15) 25%, transparent 25%, transparent 50%, rgba(255, 255, 255, .15) 50%, rgba(255, 255, 255, .15) 75%, transparent 75%, transparent); - background-image: -o-linear-gradient(45deg, rgba(255, 255, 255, .15) 25%, transparent 25%, transparent 50%, rgba(255, 255, 255, .15) 50%, rgba(255, 255, 255, .15) 75%, transparent 75%, transparent); - background-image: linear-gradient(45deg, rgba(255, 255, 255, .15) 25%, transparent 25%, transparent 50%, rgba(255, 255, 255, .15) 50%, rgba(255, 255, 255, .15) 75%, transparent 75%, transparent); - -webkit-background-size: 40px 40px; - background-size: 40px 40px; -} -.progress.active .progress-bar, -.progress-bar.active { - -webkit-animation: progress-bar-stripes 2s linear infinite; - -o-animation: progress-bar-stripes 2s linear infinite; - animation: progress-bar-stripes 2s linear infinite; -} -.progress-bar-success { - background-color: #5cb85c; -} -.progress-striped .progress-bar-success { - background-image: -webkit-linear-gradient(45deg, rgba(255, 255, 255, .15) 25%, transparent 25%, transparent 50%, rgba(255, 255, 255, .15) 50%, rgba(255, 255, 255, .15) 75%, transparent 75%, transparent); - background-image: -o-linear-gradient(45deg, rgba(255, 255, 255, .15) 25%, transparent 25%, transparent 50%, rgba(255, 255, 255, .15) 50%, rgba(255, 255, 255, .15) 75%, transparent 75%, transparent); - background-image: linear-gradient(45deg, rgba(255, 255, 255, .15) 25%, transparent 25%, transparent 50%, rgba(255, 255, 255, .15) 50%, rgba(255, 255, 255, .15) 75%, transparent 75%, transparent); -} -.progress-bar-info { - background-color: #5bc0de; -} -.progress-striped .progress-bar-info { - background-image: -webkit-linear-gradient(45deg, rgba(255, 255, 255, .15) 25%, transparent 25%, transparent 50%, rgba(255, 255, 255, .15) 50%, rgba(255, 255, 255, .15) 75%, transparent 75%, transparent); - background-image: -o-linear-gradient(45deg, rgba(255, 255, 255, .15) 25%, transparent 25%, transparent 50%, rgba(255, 255, 255, .15) 50%, rgba(255, 255, 255, .15) 75%, transparent 75%, transparent); - background-image: linear-gradient(45deg, rgba(255, 255, 255, .15) 25%, transparent 25%, transparent 50%, rgba(255, 255, 255, .15) 50%, rgba(255, 255, 255, .15) 75%, transparent 75%, transparent); -} -.progress-bar-warning { - background-color: #f0ad4e; -} -.progress-striped .progress-bar-warning { - background-image: -webkit-linear-gradient(45deg, rgba(255, 255, 255, .15) 25%, transparent 25%, transparent 50%, rgba(255, 255, 255, .15) 50%, rgba(255, 255, 255, .15) 75%, transparent 75%, transparent); - background-image: -o-linear-gradient(45deg, rgba(255, 255, 255, .15) 25%, transparent 25%, transparent 50%, rgba(255, 255, 255, .15) 50%, rgba(255, 255, 255, .15) 75%, transparent 75%, transparent); - background-image: linear-gradient(45deg, rgba(255, 255, 255, .15) 25%, transparent 25%, transparent 50%, rgba(255, 255, 255, .15) 50%, rgba(255, 255, 255, .15) 75%, transparent 75%, transparent); -} -.progress-bar-danger { - background-color: #d9534f; -} -.progress-striped .progress-bar-danger { - background-image: -webkit-linear-gradient(45deg, rgba(255, 255, 255, .15) 25%, transparent 25%, transparent 50%, rgba(255, 255, 255, .15) 50%, rgba(255, 255, 255, .15) 75%, transparent 75%, transparent); - background-image: -o-linear-gradient(45deg, rgba(255, 255, 255, .15) 25%, transparent 25%, transparent 50%, rgba(255, 255, 255, .15) 50%, rgba(255, 255, 255, .15) 75%, transparent 75%, transparent); - background-image: linear-gradient(45deg, rgba(255, 255, 255, .15) 25%, transparent 25%, transparent 50%, rgba(255, 255, 255, .15) 50%, rgba(255, 255, 255, .15) 75%, transparent 75%, transparent); -} -.media { - margin-top: 15px; -} -.media:first-child { - margin-top: 0; -} -.media-right, -.media > .pull-right { - padding-left: 10px; -} -.media-left, -.media > .pull-left { - padding-right: 10px; -} -.media-left, -.media-right, -.media-body { - display: table-cell; - vertical-align: top; -} -.media-middle { - vertical-align: middle; -} -.media-bottom { - vertical-align: bottom; -} -.media-heading { - margin-top: 0; - margin-bottom: 5px; -} -.media-list { - padding-left: 0; - list-style: none; -} -.list-group { - padding-left: 0; - margin-bottom: 20px; -} -.list-group-item { - position: relative; - display: block; - padding: 10px 15px; - margin-bottom: -1px; - background-color: #fff; - border: 1px solid #ddd; -} -.list-group-item:first-child { - border-top-left-radius: 4px; - border-top-right-radius: 4px; -} -.list-group-item:last-child { - margin-bottom: 0; - border-bottom-right-radius: 4px; - border-bottom-left-radius: 4px; -} -.list-group-item > .badge { - float: right; -} -.list-group-item > .badge + .badge { - margin-right: 5px; -} -a.list-group-item { - color: #555; -} -a.list-group-item .list-group-item-heading { - color: #333; -} -a.list-group-item:hover, -a.list-group-item:focus { - color: #555; - text-decoration: none; - background-color: #f5f5f5; -} -.list-group-item.disabled, -.list-group-item.disabled:hover, -.list-group-item.disabled:focus { - color: #777; - cursor: not-allowed; - background-color: #eee; -} -.list-group-item.disabled .list-group-item-heading, -.list-group-item.disabled:hover .list-group-item-heading, -.list-group-item.disabled:focus .list-group-item-heading { - color: inherit; -} -.list-group-item.disabled .list-group-item-text, -.list-group-item.disabled:hover .list-group-item-text, -.list-group-item.disabled:focus .list-group-item-text { - color: #777; -} -.list-group-item.active, -.list-group-item.active:hover, -.list-group-item.active:focus { - z-index: 2; - color: #fff; - background-color: #428bca; - border-color: #428bca; -} -.list-group-item.active .list-group-item-heading, -.list-group-item.active:hover .list-group-item-heading, -.list-group-item.active:focus .list-group-item-heading, -.list-group-item.active .list-group-item-heading > small, -.list-group-item.active:hover .list-group-item-heading > small, -.list-group-item.active:focus .list-group-item-heading > small, -.list-group-item.active .list-group-item-heading > .small, -.list-group-item.active:hover .list-group-item-heading > .small, -.list-group-item.active:focus .list-group-item-heading > .small { - color: inherit; -} -.list-group-item.active .list-group-item-text, -.list-group-item.active:hover .list-group-item-text, -.list-group-item.active:focus .list-group-item-text { - color: #e1edf7; -} -.list-group-item-success { - color: #3c763d; - background-color: #dff0d8; -} -a.list-group-item-success { - color: #3c763d; -} -a.list-group-item-success .list-group-item-heading { - color: inherit; -} -a.list-group-item-success:hover, -a.list-group-item-success:focus { - color: #3c763d; - background-color: #d0e9c6; -} -a.list-group-item-success.active, -a.list-group-item-success.active:hover, -a.list-group-item-success.active:focus { - color: #fff; - background-color: #3c763d; - border-color: #3c763d; -} -.list-group-item-info { - color: #31708f; - background-color: #d9edf7; -} -a.list-group-item-info { - color: #31708f; -} -a.list-group-item-info .list-group-item-heading { - color: inherit; -} -a.list-group-item-info:hover, -a.list-group-item-info:focus { - color: #31708f; - background-color: #c4e3f3; -} -a.list-group-item-info.active, -a.list-group-item-info.active:hover, -a.list-group-item-info.active:focus { - color: #fff; - background-color: #31708f; - border-color: #31708f; -} -.list-group-item-warning { - color: #8a6d3b; - background-color: #fcf8e3; -} -a.list-group-item-warning { - color: #8a6d3b; -} -a.list-group-item-warning .list-group-item-heading { - color: inherit; -} -a.list-group-item-warning:hover, -a.list-group-item-warning:focus { - color: #8a6d3b; - background-color: #faf2cc; -} -a.list-group-item-warning.active, -a.list-group-item-warning.active:hover, -a.list-group-item-warning.active:focus { - color: #fff; - background-color: #8a6d3b; - border-color: #8a6d3b; -} -.list-group-item-danger { - color: #a94442; - background-color: #f2dede; -} -a.list-group-item-danger { - color: #a94442; -} -a.list-group-item-danger .list-group-item-heading { - color: inherit; -} -a.list-group-item-danger:hover, -a.list-group-item-danger:focus { - color: #a94442; - background-color: #ebcccc; -} -a.list-group-item-danger.active, -a.list-group-item-danger.active:hover, -a.list-group-item-danger.active:focus { - color: #fff; - background-color: #a94442; - border-color: #a94442; -} -.list-group-item-heading { - margin-top: 0; - margin-bottom: 5px; -} -.list-group-item-text { - margin-bottom: 0; - line-height: 1.3; -} -.panel { - margin-bottom: 20px; - background-color: #fff; - border: 1px solid transparent; - border-radius: 4px; - -webkit-box-shadow: 0 1px 1px rgba(0, 0, 0, .05); - box-shadow: 0 1px 1px rgba(0, 0, 0, .05); -} -.panel-body { - padding: 15px; -} -.panel-heading { - padding: 10px 15px; - border-bottom: 1px solid transparent; - border-top-left-radius: 3px; - border-top-right-radius: 3px; -} -.panel-heading > .dropdown .dropdown-toggle { - color: inherit; -} -.panel-title { - margin-top: 0; - margin-bottom: 0; - font-size: 16px; - color: inherit; -} -.panel-title > a { - color: inherit; -} -.panel-footer { - padding: 10px 15px; - background-color: #f5f5f5; - border-top: 1px solid #ddd; - border-bottom-right-radius: 3px; - border-bottom-left-radius: 3px; -} -.panel > .list-group, -.panel > .panel-collapse > .list-group { - margin-bottom: 0; -} -.panel > .list-group .list-group-item, -.panel > .panel-collapse > .list-group .list-group-item { - border-width: 1px 0; - border-radius: 0; -} -.panel > .list-group:first-child .list-group-item:first-child, -.panel > .panel-collapse > .list-group:first-child .list-group-item:first-child { - border-top: 0; - border-top-left-radius: 3px; - border-top-right-radius: 3px; -} -.panel > .list-group:last-child .list-group-item:last-child, -.panel > .panel-collapse > .list-group:last-child .list-group-item:last-child { - border-bottom: 0; - border-bottom-right-radius: 3px; - border-bottom-left-radius: 3px; -} -.panel-heading + .list-group .list-group-item:first-child { - border-top-width: 0; -} -.list-group + .panel-footer { - border-top-width: 0; -} -.panel > .table, -.panel > .table-responsive > .table, -.panel > .panel-collapse > .table { - margin-bottom: 0; -} -.panel > .table caption, -.panel > .table-responsive > .table caption, -.panel > .panel-collapse > .table caption { - padding-right: 15px; - padding-left: 15px; -} -.panel > .table:first-child, -.panel > .table-responsive:first-child > .table:first-child { - border-top-left-radius: 3px; - border-top-right-radius: 3px; -} -.panel > .table:first-child > thead:first-child > tr:first-child, -.panel > .table-responsive:first-child > .table:first-child > thead:first-child > tr:first-child, -.panel > .table:first-child > tbody:first-child > tr:first-child, -.panel > .table-responsive:first-child > .table:first-child > tbody:first-child > tr:first-child { - border-top-left-radius: 3px; - border-top-right-radius: 3px; -} -.panel > .table:first-child > thead:first-child > tr:first-child td:first-child, -.panel > .table-responsive:first-child > .table:first-child > thead:first-child > tr:first-child td:first-child, -.panel > .table:first-child > tbody:first-child > tr:first-child td:first-child, -.panel > .table-responsive:first-child > .table:first-child > tbody:first-child > tr:first-child td:first-child, -.panel > .table:first-child > thead:first-child > tr:first-child th:first-child, -.panel > .table-responsive:first-child > .table:first-child > thead:first-child > tr:first-child th:first-child, -.panel > .table:first-child > tbody:first-child > tr:first-child th:first-child, -.panel > .table-responsive:first-child > .table:first-child > tbody:first-child > tr:first-child th:first-child { - border-top-left-radius: 3px; -} -.panel > .table:first-child > thead:first-child > tr:first-child td:last-child, -.panel > .table-responsive:first-child > .table:first-child > thead:first-child > tr:first-child td:last-child, -.panel > .table:first-child > tbody:first-child > tr:first-child td:last-child, -.panel > .table-responsive:first-child > .table:first-child > tbody:first-child > tr:first-child td:last-child, -.panel > .table:first-child > thead:first-child > tr:first-child th:last-child, -.panel > .table-responsive:first-child > .table:first-child > thead:first-child > tr:first-child th:last-child, -.panel > .table:first-child > tbody:first-child > tr:first-child th:last-child, -.panel > .table-responsive:first-child > .table:first-child > tbody:first-child > tr:first-child th:last-child { - border-top-right-radius: 3px; -} -.panel > .table:last-child, -.panel > .table-responsive:last-child > .table:last-child { - border-bottom-right-radius: 3px; - border-bottom-left-radius: 3px; -} -.panel > .table:last-child > tbody:last-child > tr:last-child, -.panel > .table-responsive:last-child > .table:last-child > tbody:last-child > tr:last-child, -.panel > .table:last-child > tfoot:last-child > tr:last-child, -.panel > .table-responsive:last-child > .table:last-child > tfoot:last-child > tr:last-child { - border-bottom-right-radius: 3px; - border-bottom-left-radius: 3px; -} -.panel > .table:last-child > tbody:last-child > tr:last-child td:first-child, -.panel > .table-responsive:last-child > .table:last-child > tbody:last-child > tr:last-child td:first-child, -.panel > .table:last-child > tfoot:last-child > tr:last-child td:first-child, -.panel > .table-responsive:last-child > .table:last-child > tfoot:last-child > tr:last-child td:first-child, -.panel > .table:last-child > tbody:last-child > tr:last-child th:first-child, -.panel > .table-responsive:last-child > .table:last-child > tbody:last-child > tr:last-child th:first-child, -.panel > .table:last-child > tfoot:last-child > tr:last-child th:first-child, -.panel > .table-responsive:last-child > .table:last-child > tfoot:last-child > tr:last-child th:first-child { - border-bottom-left-radius: 3px; -} -.panel > .table:last-child > tbody:last-child > tr:last-child td:last-child, -.panel > .table-responsive:last-child > .table:last-child > tbody:last-child > tr:last-child td:last-child, -.panel > .table:last-child > tfoot:last-child > tr:last-child td:last-child, -.panel > .table-responsive:last-child > .table:last-child > tfoot:last-child > tr:last-child td:last-child, -.panel > .table:last-child > tbody:last-child > tr:last-child th:last-child, -.panel > .table-responsive:last-child > .table:last-child > tbody:last-child > tr:last-child th:last-child, -.panel > .table:last-child > tfoot:last-child > tr:last-child th:last-child, -.panel > .table-responsive:last-child > .table:last-child > tfoot:last-child > tr:last-child th:last-child { - border-bottom-right-radius: 3px; -} -.panel > .panel-body + .table, -.panel > .panel-body + .table-responsive, -.panel > .table + .panel-body, -.panel > .table-responsive + .panel-body { - border-top: 1px solid #ddd; -} -.panel > .table > tbody:first-child > tr:first-child th, -.panel > .table > tbody:first-child > tr:first-child td { - border-top: 0; -} -.panel > .table-bordered, -.panel > .table-responsive > .table-bordered { - border: 0; -} -.panel > .table-bordered > thead > tr > th:first-child, -.panel > .table-responsive > .table-bordered > thead > tr > th:first-child, -.panel > .table-bordered > tbody > tr > th:first-child, -.panel > .table-responsive > .table-bordered > tbody > tr > th:first-child, -.panel > .table-bordered > tfoot > tr > th:first-child, -.panel > .table-responsive > .table-bordered > tfoot > tr > th:first-child, -.panel > .table-bordered > thead > tr > td:first-child, -.panel > .table-responsive > .table-bordered > thead > tr > td:first-child, -.panel > .table-bordered > tbody > tr > td:first-child, -.panel > .table-responsive > .table-bordered > tbody > tr > td:first-child, -.panel > .table-bordered > tfoot > tr > td:first-child, -.panel > .table-responsive > .table-bordered > tfoot > tr > td:first-child { - border-left: 0; -} -.panel > .table-bordered > thead > tr > th:last-child, -.panel > .table-responsive > .table-bordered > thead > tr > th:last-child, -.panel > .table-bordered > tbody > tr > th:last-child, -.panel > .table-responsive > .table-bordered > tbody > tr > th:last-child, -.panel > .table-bordered > tfoot > tr > th:last-child, -.panel > .table-responsive > .table-bordered > tfoot > tr > th:last-child, -.panel > .table-bordered > thead > tr > td:last-child, -.panel > .table-responsive > .table-bordered > thead > tr > td:last-child, -.panel > .table-bordered > tbody > tr > td:last-child, -.panel > .table-responsive > .table-bordered > tbody > tr > td:last-child, -.panel > .table-bordered > tfoot > tr > td:last-child, -.panel > .table-responsive > .table-bordered > tfoot > tr > td:last-child { - border-right: 0; -} -.panel > .table-bordered > thead > tr:first-child > td, -.panel > .table-responsive > .table-bordered > thead > tr:first-child > td, -.panel > .table-bordered > tbody > tr:first-child > td, -.panel > .table-responsive > .table-bordered > tbody > tr:first-child > td, -.panel > .table-bordered > thead > tr:first-child > th, -.panel > .table-responsive > .table-bordered > thead > tr:first-child > th, -.panel > .table-bordered > tbody > tr:first-child > th, -.panel > .table-responsive > .table-bordered > tbody > tr:first-child > th { - border-bottom: 0; -} -.panel > .table-bordered > tbody > tr:last-child > td, -.panel > .table-responsive > .table-bordered > tbody > tr:last-child > td, -.panel > .table-bordered > tfoot > tr:last-child > td, -.panel > .table-responsive > .table-bordered > tfoot > tr:last-child > td, -.panel > .table-bordered > tbody > tr:last-child > th, -.panel > .table-responsive > .table-bordered > tbody > tr:last-child > th, -.panel > .table-bordered > tfoot > tr:last-child > th, -.panel > .table-responsive > .table-bordered > tfoot > tr:last-child > th { - border-bottom: 0; -} -.panel > .table-responsive { - margin-bottom: 0; - border: 0; -} -.panel-group { - margin-bottom: 20px; -} -.panel-group .panel { - margin-bottom: 0; - border-radius: 4px; -} -.panel-group .panel + .panel { - margin-top: 5px; -} -.panel-group .panel-heading { - border-bottom: 0; -} -.panel-group .panel-heading + .panel-collapse > .panel-body, -.panel-group .panel-heading + .panel-collapse > .list-group { - border-top: 1px solid #ddd; -} -.panel-group .panel-footer { - border-top: 0; -} -.panel-group .panel-footer + .panel-collapse .panel-body { - border-bottom: 1px solid #ddd; -} -.panel-default { - border-color: #ddd; -} -.panel-default > .panel-heading { - color: #333; - background-color: #f5f5f5; - border-color: #ddd; -} -.panel-default > .panel-heading + .panel-collapse > .panel-body { - border-top-color: #ddd; -} -.panel-default > .panel-heading .badge { - color: #f5f5f5; - background-color: #333; -} -.panel-default > .panel-footer + .panel-collapse > .panel-body { - border-bottom-color: #ddd; -} -.panel-primary { - border-color: #428bca; -} -.panel-primary > .panel-heading { - color: #fff; - background-color: #428bca; - border-color: #428bca; -} -.panel-primary > .panel-heading + .panel-collapse > .panel-body { - border-top-color: #428bca; -} -.panel-primary > .panel-heading .badge { - color: #428bca; - background-color: #fff; -} -.panel-primary > .panel-footer + .panel-collapse > .panel-body { - border-bottom-color: #428bca; -} -.panel-success { - border-color: #d6e9c6; -} -.panel-success > .panel-heading { - color: #3c763d; - background-color: #dff0d8; - border-color: #d6e9c6; -} -.panel-success > .panel-heading + .panel-collapse > .panel-body { - border-top-color: #d6e9c6; -} -.panel-success > .panel-heading .badge { - color: #dff0d8; - background-color: #3c763d; -} -.panel-success > .panel-footer + .panel-collapse > .panel-body { - border-bottom-color: #d6e9c6; -} -.panel-info { - border-color: #bce8f1; -} -.panel-info > .panel-heading { - color: #31708f; - background-color: #d9edf7; - border-color: #bce8f1; -} -.panel-info > .panel-heading + .panel-collapse > .panel-body { - border-top-color: #bce8f1; -} -.panel-info > .panel-heading .badge { - color: #d9edf7; - background-color: #31708f; -} -.panel-info > .panel-footer + .panel-collapse > .panel-body { - border-bottom-color: #bce8f1; -} -.panel-warning { - border-color: #faebcc; -} -.panel-warning > .panel-heading { - color: #8a6d3b; - background-color: #fcf8e3; - border-color: #faebcc; -} -.panel-warning > .panel-heading + .panel-collapse > .panel-body { - border-top-color: #faebcc; -} -.panel-warning > .panel-heading .badge { - color: #fcf8e3; - background-color: #8a6d3b; -} -.panel-warning > .panel-footer + .panel-collapse > .panel-body { - border-bottom-color: #faebcc; -} -.panel-danger { - border-color: #ebccd1; -} -.panel-danger > .panel-heading { - color: #a94442; - background-color: #f2dede; - border-color: #ebccd1; -} -.panel-danger > .panel-heading + .panel-collapse > .panel-body { - border-top-color: #ebccd1; -} -.panel-danger > .panel-heading .badge { - color: #f2dede; - background-color: #a94442; -} -.panel-danger > .panel-footer + .panel-collapse > .panel-body { - border-bottom-color: #ebccd1; -} -.embed-responsive { - position: relative; - display: block; - height: 0; - padding: 0; - overflow: hidden; -} -.embed-responsive .embed-responsive-item, -.embed-responsive iframe, -.embed-responsive embed, -.embed-responsive object, -.embed-responsive video { - position: absolute; - top: 0; - bottom: 0; - left: 0; - width: 100%; - height: 100%; - border: 0; -} -.embed-responsive.embed-responsive-16by9 { - padding-bottom: 56.25%; -} -.embed-responsive.embed-responsive-4by3 { - padding-bottom: 75%; -} -.well { - min-height: 20px; - padding: 19px; - margin-bottom: 20px; - background-color: #f5f5f5; - border: 1px solid #e3e3e3; - border-radius: 4px; - -webkit-box-shadow: inset 0 1px 1px rgba(0, 0, 0, .05); - box-shadow: inset 0 1px 1px rgba(0, 0, 0, .05); -} -.well blockquote { - border-color: #ddd; - border-color: rgba(0, 0, 0, .15); -} -.well-lg { - padding: 24px; - border-radius: 6px; -} -.well-sm { - padding: 9px; - border-radius: 3px; -} -.close { - float: right; - font-size: 21px; - font-weight: bold; - line-height: 1; - color: #000; - text-shadow: 0 1px 0 #fff; - filter: alpha(opacity=20); - opacity: .2; -} -.close:hover, -.close:focus { - color: #000; - text-decoration: none; - cursor: pointer; - filter: alpha(opacity=50); - opacity: .5; -} -button.close { - -webkit-appearance: none; - padding: 0; - cursor: pointer; - background: transparent; - border: 0; -} -.modal-open { - overflow: hidden; -} -.modal { - position: fixed; - top: 0; - right: 0; - bottom: 0; - left: 0; - z-index: 1040; - display: none; - overflow: hidden; - -webkit-overflow-scrolling: touch; - outline: 0; -} -.modal.fade .modal-dialog { - -webkit-transition: -webkit-transform .3s ease-out; - -o-transition: -o-transform .3s ease-out; - transition: transform .3s ease-out; - -webkit-transform: translate(0, -25%); - -ms-transform: translate(0, -25%); - -o-transform: translate(0, -25%); - transform: translate(0, -25%); -} -.modal.in .modal-dialog { - -webkit-transform: translate(0, 0); - -ms-transform: translate(0, 0); - -o-transform: translate(0, 0); - transform: translate(0, 0); -} -.modal-open .modal { - overflow-x: hidden; - overflow-y: auto; -} -.modal-dialog { - position: relative; - width: auto; - margin: 10px; -} -.modal-content { - position: relative; - background-color: #fff; - -webkit-background-clip: padding-box; - background-clip: padding-box; - border: 1px solid #999; - border: 1px solid rgba(0, 0, 0, .2); - border-radius: 6px; - outline: 0; - -webkit-box-shadow: 0 3px 9px rgba(0, 0, 0, .5); - box-shadow: 0 3px 9px rgba(0, 0, 0, .5); -} -.modal-backdrop { - position: fixed; - top: 0; - right: 0; - bottom: 0; - left: 0; - background-color: #000; -} -.modal-backdrop.fade { - filter: alpha(opacity=0); - opacity: 0; -} -.modal-backdrop.in { - filter: alpha(opacity=50); - opacity: .5; -} -.modal-header { - min-height: 16.42857143px; - padding: 15px; - border-bottom: 1px solid #e5e5e5; -} -.modal-header .close { - margin-top: -2px; -} -.modal-title { - margin: 0; - line-height: 1.42857143; -} -.modal-body { - position: relative; - padding: 15px; -} -.modal-footer { - padding: 15px; - text-align: right; - border-top: 1px solid #e5e5e5; -} -.modal-footer .btn + .btn { - margin-bottom: 0; - margin-left: 5px; -} -.modal-footer .btn-group .btn + .btn { - margin-left: -1px; -} -.modal-footer .btn-block + .btn-block { - margin-left: 0; -} -.modal-scrollbar-measure { - position: absolute; - top: -9999px; - width: 50px; - height: 50px; - overflow: scroll; -} -@media (min-width: 768px) { - .modal-dialog { - width: 600px; - margin: 30px auto; - } - .modal-content { - -webkit-box-shadow: 0 5px 15px rgba(0, 0, 0, .5); - box-shadow: 0 5px 15px rgba(0, 0, 0, .5); - } - .modal-sm { - width: 300px; - } -} -@media (min-width: 992px) { - .modal-lg { - width: 900px; - } -} -.tooltip { - position: absolute; - z-index: 1070; - display: block; - font-size: 12px; - line-height: 1.4; - visibility: visible; - filter: alpha(opacity=0); - opacity: 0; -} -.tooltip.in { - filter: alpha(opacity=90); - opacity: .9; -} -.tooltip.top { - padding: 5px 0; - margin-top: -3px; -} -.tooltip.right { - padding: 0 5px; - margin-left: 3px; -} -.tooltip.bottom { - padding: 5px 0; - margin-top: 3px; -} -.tooltip.left { - padding: 0 5px; - margin-left: -3px; -} -.tooltip-inner { - max-width: 200px; - padding: 3px 8px; - color: #fff; - text-align: center; - text-decoration: none; - background-color: #000; - border-radius: 4px; -} -.tooltip-arrow { - position: absolute; - width: 0; - height: 0; - border-color: transparent; - border-style: solid; -} -.tooltip.top .tooltip-arrow { - bottom: 0; - left: 50%; - margin-left: -5px; - border-width: 5px 5px 0; - border-top-color: #000; -} -.tooltip.top-left .tooltip-arrow { - bottom: 0; - left: 5px; - border-width: 5px 5px 0; - border-top-color: #000; -} -.tooltip.top-right .tooltip-arrow { - right: 5px; - bottom: 0; - border-width: 5px 5px 0; - border-top-color: #000; -} -.tooltip.right .tooltip-arrow { - top: 50%; - left: 0; - margin-top: -5px; - border-width: 5px 5px 5px 0; - border-right-color: #000; -} -.tooltip.left .tooltip-arrow { - top: 50%; - right: 0; - margin-top: -5px; - border-width: 5px 0 5px 5px; - border-left-color: #000; -} -.tooltip.bottom .tooltip-arrow { - top: 0; - left: 50%; - margin-left: -5px; - border-width: 0 5px 5px; - border-bottom-color: #000; -} -.tooltip.bottom-left .tooltip-arrow { - top: 0; - left: 5px; - border-width: 0 5px 5px; - border-bottom-color: #000; -} -.tooltip.bottom-right .tooltip-arrow { - top: 0; - right: 5px; - border-width: 0 5px 5px; - border-bottom-color: #000; -} -.popover { - position: absolute; - top: 0; - left: 0; - z-index: 1060; - display: none; - max-width: 276px; - padding: 1px; - font-size: 14px; - font-weight: normal; - line-height: 1.42857143; - text-align: left; - white-space: normal; - background-color: #fff; - -webkit-background-clip: padding-box; - background-clip: padding-box; - border: 1px solid #ccc; - border: 1px solid rgba(0, 0, 0, .2); - border-radius: 6px; - -webkit-box-shadow: 0 5px 10px rgba(0, 0, 0, .2); - box-shadow: 0 5px 10px rgba(0, 0, 0, .2); -} -.popover.top { - margin-top: -10px; -} -.popover.right { - margin-left: 10px; -} -.popover.bottom { - margin-top: 10px; -} -.popover.left { - margin-left: -10px; -} -.popover-title { - padding: 8px 14px; - margin: 0; - font-size: 14px; - background-color: #f7f7f7; - border-bottom: 1px solid #ebebeb; - border-radius: 5px 5px 0 0; -} -.popover-content { - padding: 9px 14px; -} -.popover > .arrow, -.popover > .arrow:after { - position: absolute; - display: block; - width: 0; - height: 0; - border-color: transparent; - border-style: solid; -} -.popover > .arrow { - border-width: 11px; -} -.popover > .arrow:after { - content: ""; - border-width: 10px; -} -.popover.top > .arrow { - bottom: -11px; - left: 50%; - margin-left: -11px; - border-top-color: #999; - border-top-color: rgba(0, 0, 0, .25); - border-bottom-width: 0; -} -.popover.top > .arrow:after { - bottom: 1px; - margin-left: -10px; - content: " "; - border-top-color: #fff; - border-bottom-width: 0; -} -.popover.right > .arrow { - top: 50%; - left: -11px; - margin-top: -11px; - border-right-color: #999; - border-right-color: rgba(0, 0, 0, .25); - border-left-width: 0; -} -.popover.right > .arrow:after { - bottom: -10px; - left: 1px; - content: " "; - border-right-color: #fff; - border-left-width: 0; -} -.popover.bottom > .arrow { - top: -11px; - left: 50%; - margin-left: -11px; - border-top-width: 0; - border-bottom-color: #999; - border-bottom-color: rgba(0, 0, 0, .25); -} -.popover.bottom > .arrow:after { - top: 1px; - margin-left: -10px; - content: " "; - border-top-width: 0; - border-bottom-color: #fff; -} -.popover.left > .arrow { - top: 50%; - right: -11px; - margin-top: -11px; - border-right-width: 0; - border-left-color: #999; - border-left-color: rgba(0, 0, 0, .25); -} -.popover.left > .arrow:after { - right: 1px; - bottom: -10px; - content: " "; - border-right-width: 0; - border-left-color: #fff; -} -.carousel { - position: relative; -} -.carousel-inner { - position: relative; - width: 100%; - overflow: hidden; -} -.carousel-inner > .item { - position: relative; - display: none; - -webkit-transition: .6s ease-in-out left; - -o-transition: .6s ease-in-out left; - transition: .6s ease-in-out left; -} -.carousel-inner > .item > img, -.carousel-inner > .item > a > img { - line-height: 1; -} -@media all and (transform-3d), (-webkit-transform-3d) { - .carousel-inner > .item { - -webkit-transition: -webkit-transform .6s ease-in-out; - -o-transition: -o-transform .6s ease-in-out; - transition: transform .6s ease-in-out; - - -webkit-backface-visibility: hidden; - backface-visibility: hidden; - -webkit-perspective: 1000; - perspective: 1000; - } - .carousel-inner > .item.next, - .carousel-inner > .item.active.right { - left: 0; - -webkit-transform: translate3d(100%, 0, 0); - transform: translate3d(100%, 0, 0); - } - .carousel-inner > .item.prev, - .carousel-inner > .item.active.left { - left: 0; - -webkit-transform: translate3d(-100%, 0, 0); - transform: translate3d(-100%, 0, 0); - } - .carousel-inner > .item.next.left, - .carousel-inner > .item.prev.right, - .carousel-inner > .item.active { - left: 0; - -webkit-transform: translate3d(0, 0, 0); - transform: translate3d(0, 0, 0); - } -} -.carousel-inner > .active, -.carousel-inner > .next, -.carousel-inner > .prev { - display: block; -} -.carousel-inner > .active { - left: 0; -} -.carousel-inner > .next, -.carousel-inner > .prev { - position: absolute; - top: 0; - width: 100%; -} -.carousel-inner > .next { - left: 100%; -} -.carousel-inner > .prev { - left: -100%; -} -.carousel-inner > .next.left, -.carousel-inner > .prev.right { - left: 0; -} -.carousel-inner > .active.left { - left: -100%; -} -.carousel-inner > .active.right { - left: 100%; -} -.carousel-control { - position: absolute; - top: 0; - bottom: 0; - left: 0; - width: 15%; - font-size: 20px; - color: #fff; - text-align: center; - text-shadow: 0 1px 2px rgba(0, 0, 0, .6); - filter: alpha(opacity=50); - opacity: .5; -} -.carousel-control.left { - background-image: -webkit-linear-gradient(left, rgba(0, 0, 0, .5) 0%, rgba(0, 0, 0, .0001) 100%); - background-image: -o-linear-gradient(left, rgba(0, 0, 0, .5) 0%, rgba(0, 0, 0, .0001) 100%); - background-image: -webkit-gradient(linear, left top, right top, from(rgba(0, 0, 0, .5)), to(rgba(0, 0, 0, .0001))); - background-image: linear-gradient(to right, rgba(0, 0, 0, .5) 0%, rgba(0, 0, 0, .0001) 100%); - filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#80000000', endColorstr='#00000000', GradientType=1); - background-repeat: repeat-x; -} -.carousel-control.right { - right: 0; - left: auto; - background-image: -webkit-linear-gradient(left, rgba(0, 0, 0, .0001) 0%, rgba(0, 0, 0, .5) 100%); - background-image: -o-linear-gradient(left, rgba(0, 0, 0, .0001) 0%, rgba(0, 0, 0, .5) 100%); - background-image: -webkit-gradient(linear, left top, right top, from(rgba(0, 0, 0, .0001)), to(rgba(0, 0, 0, .5))); - background-image: linear-gradient(to right, rgba(0, 0, 0, .0001) 0%, rgba(0, 0, 0, .5) 100%); - filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#00000000', endColorstr='#80000000', GradientType=1); - background-repeat: repeat-x; -} -.carousel-control:hover, -.carousel-control:focus { - color: #fff; - text-decoration: none; - filter: alpha(opacity=90); - outline: 0; - opacity: .9; -} -.carousel-control .icon-prev, -.carousel-control .icon-next, -.carousel-control .glyphicon-chevron-left, -.carousel-control .glyphicon-chevron-right { - position: absolute; - top: 50%; - z-index: 5; - display: inline-block; -} -.carousel-control .icon-prev, -.carousel-control .glyphicon-chevron-left { - left: 50%; - margin-left: -10px; -} -.carousel-control .icon-next, -.carousel-control .glyphicon-chevron-right { - right: 50%; - margin-right: -10px; -} -.carousel-control .icon-prev, -.carousel-control .icon-next { - width: 20px; - height: 20px; - margin-top: -10px; - font-family: serif; -} -.carousel-control .icon-prev:before { - content: '\2039'; -} -.carousel-control .icon-next:before { - content: '\203a'; -} -.carousel-indicators { - position: absolute; - bottom: 10px; - left: 50%; - z-index: 15; - width: 60%; - padding-left: 0; - margin-left: -30%; - text-align: center; - list-style: none; -} -.carousel-indicators li { - display: inline-block; - width: 10px; - height: 10px; - margin: 1px; - text-indent: -999px; - cursor: pointer; - background-color: #000 \9; - background-color: rgba(0, 0, 0, 0); - border: 1px solid #fff; - border-radius: 10px; -} -.carousel-indicators .active { - width: 12px; - height: 12px; - margin: 0; - background-color: #fff; -} -.carousel-caption { - position: absolute; - right: 15%; - bottom: 20px; - left: 15%; - z-index: 10; - padding-top: 20px; - padding-bottom: 20px; - color: #fff; - text-align: center; - text-shadow: 0 1px 2px rgba(0, 0, 0, .6); -} -.carousel-caption .btn { - text-shadow: none; -} -@media screen and (min-width: 768px) { - .carousel-control .glyphicon-chevron-left, - .carousel-control .glyphicon-chevron-right, - .carousel-control .icon-prev, - .carousel-control .icon-next { - width: 30px; - height: 30px; - margin-top: -15px; - font-size: 30px; - } - .carousel-control .glyphicon-chevron-left, - .carousel-control .icon-prev { - margin-left: -15px; - } - .carousel-control .glyphicon-chevron-right, - .carousel-control .icon-next { - margin-right: -15px; - } - .carousel-caption { - right: 20%; - left: 20%; - padding-bottom: 30px; - } - .carousel-indicators { - bottom: 20px; - } -} -.clearfix:before, -.clearfix:after, -.dl-horizontal dd:before, -.dl-horizontal dd:after, -.container:before, -.container:after, -.container-fluid:before, -.container-fluid:after, -.row:before, -.row:after, -.form-horizontal .form-group:before, -.form-horizontal .form-group:after, -.btn-toolbar:before, -.btn-toolbar:after, -.btn-group-vertical > .btn-group:before, -.btn-group-vertical > .btn-group:after, -.nav:before, -.nav:after, -.navbar:before, -.navbar:after, -.navbar-header:before, -.navbar-header:after, -.navbar-collapse:before, -.navbar-collapse:after, -.pager:before, -.pager:after, -.panel-body:before, -.panel-body:after, -.modal-footer:before, -.modal-footer:after { - display: table; - content: " "; -} -.clearfix:after, -.dl-horizontal dd:after, -.container:after, -.container-fluid:after, -.row:after, -.form-horizontal .form-group:after, -.btn-toolbar:after, -.btn-group-vertical > .btn-group:after, -.nav:after, -.navbar:after, -.navbar-header:after, -.navbar-collapse:after, -.pager:after, -.panel-body:after, -.modal-footer:after { - clear: both; -} -.center-block { - display: block; - margin-right: auto; - margin-left: auto; -} -.pull-right { - float: right !important; -} -.pull-left { - float: left !important; -} -.hide { - display: none !important; -} -.show { - display: block !important; -} -.invisible { - visibility: hidden; -} -.text-hide { - font: 0/0 a; - color: transparent; - text-shadow: none; - background-color: transparent; - border: 0; -} -.hidden { - display: none !important; - visibility: hidden !important; -} -.affix { - position: fixed; -} -@-ms-viewport { - width: device-width; -} -.visible-xs, -.visible-sm, -.visible-md, -.visible-lg { - display: none !important; -} -.visible-xs-block, -.visible-xs-inline, -.visible-xs-inline-block, -.visible-sm-block, -.visible-sm-inline, -.visible-sm-inline-block, -.visible-md-block, -.visible-md-inline, -.visible-md-inline-block, -.visible-lg-block, -.visible-lg-inline, -.visible-lg-inline-block { - display: none !important; -} -@media (max-width: 767px) { - .visible-xs { - display: block !important; - } - table.visible-xs { - display: table; - } - tr.visible-xs { - display: table-row !important; - } - th.visible-xs, - td.visible-xs { - display: table-cell !important; - } -} -@media (max-width: 767px) { - .visible-xs-block { - display: block !important; - } -} -@media (max-width: 767px) { - .visible-xs-inline { - display: inline !important; - } -} -@media (max-width: 767px) { - .visible-xs-inline-block { - display: inline-block !important; - } -} -@media (min-width: 768px) and (max-width: 991px) { - .visible-sm { - display: block !important; - } - table.visible-sm { - display: table; - } - tr.visible-sm { - display: table-row !important; - } - th.visible-sm, - td.visible-sm { - display: table-cell !important; - } -} -@media (min-width: 768px) and (max-width: 991px) { - .visible-sm-block { - display: block !important; - } -} -@media (min-width: 768px) and (max-width: 991px) { - .visible-sm-inline { - display: inline !important; - } -} -@media (min-width: 768px) and (max-width: 991px) { - .visible-sm-inline-block { - display: inline-block !important; - } -} -@media (min-width: 992px) and (max-width: 1199px) { - .visible-md { - display: block !important; - } - table.visible-md { - display: table; - } - tr.visible-md { - display: table-row !important; - } - th.visible-md, - td.visible-md { - display: table-cell !important; - } -} -@media (min-width: 992px) and (max-width: 1199px) { - .visible-md-block { - display: block !important; - } -} -@media (min-width: 992px) and (max-width: 1199px) { - .visible-md-inline { - display: inline !important; - } -} -@media (min-width: 992px) and (max-width: 1199px) { - .visible-md-inline-block { - display: inline-block !important; - } -} -@media (min-width: 1200px) { - .visible-lg { - display: block !important; - } - table.visible-lg { - display: table; - } - tr.visible-lg { - display: table-row !important; - } - th.visible-lg, - td.visible-lg { - display: table-cell !important; - } -} -@media (min-width: 1200px) { - .visible-lg-block { - display: block !important; - } -} -@media (min-width: 1200px) { - .visible-lg-inline { - display: inline !important; - } -} -@media (min-width: 1200px) { - .visible-lg-inline-block { - display: inline-block !important; - } -} -@media (max-width: 767px) { - .hidden-xs { - display: none !important; - } -} -@media (min-width: 768px) and (max-width: 991px) { - .hidden-sm { - display: none !important; - } -} -@media (min-width: 992px) and (max-width: 1199px) { - .hidden-md { - display: none !important; - } -} -@media (min-width: 1200px) { - .hidden-lg { - display: none !important; - } -} -.visible-print { - display: none !important; -} -@media print { - .visible-print { - display: block !important; - } - table.visible-print { - display: table; - } - tr.visible-print { - display: table-row !important; - } - th.visible-print, - td.visible-print { - display: table-cell !important; - } -} -.visible-print-block { - display: none !important; -} -@media print { - .visible-print-block { - display: block !important; - } -} -.visible-print-inline { - display: none !important; -} -@media print { - .visible-print-inline { - display: inline !important; - } -} -.visible-print-inline-block { - display: none !important; -} -@media print { - .visible-print-inline-block { - display: inline-block !important; - } -} -@media print { - .hidden-print { - display: none !important; - } -} -/*# sourceMappingURL=bootstrap.css.map */ diff --git a/docs/dist/css/bootstrap.css.map b/docs/dist/css/bootstrap.css.map deleted file mode 100755 index fa5546b59..000000000 --- a/docs/dist/css/bootstrap.css.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"sources":["bootstrap.css","less/normalize.less","less/print.less","less/glyphicons.less","less/scaffolding.less","less/mixins/vendor-prefixes.less","less/mixins/tab-focus.less","less/mixins/image.less","less/type.less","less/mixins/text-emphasis.less","less/mixins/background-variant.less","less/mixins/text-overflow.less","less/code.less","less/grid.less","less/mixins/grid.less","less/mixins/grid-framework.less","less/tables.less","less/mixins/table-row.less","less/forms.less","less/mixins/forms.less","less/buttons.less","less/mixins/buttons.less","less/mixins/opacity.less","less/component-animations.less","less/dropdowns.less","less/mixins/nav-divider.less","less/mixins/reset-filter.less","less/button-groups.less","less/mixins/border-radius.less","less/input-groups.less","less/navs.less","less/navbar.less","less/mixins/nav-vertical-align.less","less/utilities.less","less/breadcrumbs.less","less/pagination.less","less/mixins/pagination.less","less/pager.less","less/labels.less","less/mixins/labels.less","less/badges.less","less/jumbotron.less","less/thumbnails.less","less/alerts.less","less/mixins/alerts.less","less/progress-bars.less","less/mixins/gradients.less","less/mixins/progress-bar.less","less/media.less","less/list-group.less","less/mixins/list-group.less","less/panels.less","less/mixins/panels.less","less/responsive-embed.less","less/wells.less","less/close.less","less/modals.less","less/tooltip.less","less/popovers.less","less/carousel.less","less/mixins/clearfix.less","less/mixins/center-block.less","less/mixins/hide-text.less","less/responsive-utilities.less","less/mixins/responsive-visibility.less"],"names":[],"mappings":"AAAA,6DAA4D;ACQ5D;EACE,yBAAA;EACA,4BAAA;EACA,gCAAA;EDND;ACaD;EACE,WAAA;EDXD;ACwBD;;;;;;;;;;;;;EAaE,gBAAA;EDtBD;AC8BD;;;;EAIE,uBAAA;EACA,0BAAA;ED5BD;ACoCD;EACE,eAAA;EACA,WAAA;EDlCD;AC0CD;;EAEE,eAAA;EDxCD;ACkDD;EACE,+BAAA;EDhDD;ACuDD;;EAEE,YAAA;EDrDD;AC+DD;EACE,2BAAA;ED7DD;ACoED;;EAEE,mBAAA;EDlED;ACyED;EACE,oBAAA;EDvED;AC+ED;EACE,gBAAA;EACA,kBAAA;ED7ED;ACoFD;EACE,kBAAA;EACA,aAAA;EDlFD;ACyFD;EACE,gBAAA;EDvFD;AC8FD;;EAEE,gBAAA;EACA,gBAAA;EACA,oBAAA;EACA,0BAAA;ED5FD;AC+FD;EACE,aAAA;ED7FD;ACgGD;EACE,iBAAA;ED9FD;ACwGD;EACE,WAAA;EDtGD;AC6GD;EACE,kBAAA;ED3GD;ACqHD;EACE,kBAAA;EDnHD;AC0HD;EACE,8BAAA;EACA,iCAAA;UAAA,yBAAA;EACA,WAAA;EDxHD;AC+HD;EACE,gBAAA;ED7HD;ACoID;;;;EAIE,mCAAA;EACA,gBAAA;EDlID;ACoJD;;;;;EAKE,gBAAA;EACA,eAAA;EACA,WAAA;EDlJD;ACyJD;EACE,mBAAA;EDvJD;ACiKD;;EAEE,sBAAA;ED/JD;AC0KD;;;;EAIE,4BAAA;EACA,iBAAA;EDxKD;AC+KD;;EAEE,iBAAA;ED7KD;ACoLD;;EAEE,WAAA;EACA,YAAA;EDlLD;AC0LD;EACE,qBAAA;EDxLD;ACmMD;;EAEE,gCAAA;KAAA,6BAAA;UAAA,wBAAA;EACA,YAAA;EDjMD;AC0MD;;EAEE,cAAA;EDxMD;ACiND;EACE,+BAAA;EACA,8BAAA;EACA,iCAAA;EACA,yBAAA;ED/MD;ACwND;;EAEE,0BAAA;EDtND;AC6ND;EACE,2BAAA;EACA,eAAA;EACA,gCAAA;ED3ND;ACmOD;EACE,WAAA;EACA,YAAA;EDjOD;ACwOD;EACE,gBAAA;EDtOD;AC8OD;EACE,mBAAA;ED5OD;ACsPD;EACE,2BAAA;EACA,mBAAA;EDpPD;ACuPD;;EAEE,YAAA;EDrPD;AACD,sFAAqF;AE1ErF;EAnGI;;;IAGI,oCAAA;IACA,wBAAA;IACA,qCAAA;YAAA,6BAAA;IACA,8BAAA;IFgLL;EE7KC;;IAEI,4BAAA;IF+KL;EE5KC;IACI,8BAAA;IF8KL;EE3KC;IACI,+BAAA;IF6KL;EExKC;;IAEI,aAAA;IF0KL;EEvKC;;IAEI,wBAAA;IACA,0BAAA;IFyKL;EEtKC;IACI,6BAAA;IFwKL;EErKC;;IAEI,0BAAA;IFuKL;EEpKC;IACI,4BAAA;IFsKL;EEnKC;;;IAGI,YAAA;IACA,WAAA;IFqKL;EElKC;;IAEI,yBAAA;IFoKL;EE7JC;IACI,6BAAA;IF+JL;EE3JC;IACI,eAAA;IF6JL;EE3JC;;IAGQ,mCAAA;IF4JT;EEzJC;IACI,wBAAA;IF2JL;EExJC;IACI,sCAAA;IF0JL;EE3JC;;IAKQ,mCAAA;IF0JT;EEvJC;;IAGQ,mCAAA;IFwJT;EACF;AGpPD;EACE,qCAAA;EACA,uDAAA;EACA,6TAAA;EHsPD;AG/OD;EACE,oBAAA;EACA,UAAA;EACA,uBAAA;EACA,qCAAA;EACA,oBAAA;EACA,qBAAA;EACA,gBAAA;EACA,qCAAA;EACA,oCAAA;EHiPD;AG7OmC;EAAW,gBAAA;EHgP9C;AG/OmC;EAAW,gBAAA;EHkP9C;AGhPmC;;EAAW,kBAAA;EHoP9C;AGnPmC;EAAW,kBAAA;EHsP9C;AGrPmC;EAAW,kBAAA;EHwP9C;AGvPmC;EAAW,kBAAA;EH0P9C;AGzPmC;EAAW,kBAAA;EH4P9C;AG3PmC;EAAW,kBAAA;EH8P9C;AG7PmC;EAAW,kBAAA;EHgQ9C;AG/PmC;EAAW,kBAAA;EHkQ9C;AGjQmC;EAAW,kBAAA;EHoQ9C;AGnQmC;EAAW,kBAAA;EHsQ9C;AGrQmC;EAAW,kBAAA;EHwQ9C;AGvQmC;EAAW,kBAAA;EH0Q9C;AGzQmC;EAAW,kBAAA;EH4Q9C;AG3QmC;EAAW,kBAAA;EH8Q9C;AG7QmC;EAAW,kBAAA;EHgR9C;AG/QmC;EAAW,kBAAA;EHkR9C;AGjRmC;EAAW,kBAAA;EHoR9C;AGnRmC;EAAW,kBAAA;EHsR9C;AGrRmC;EAAW,kBAAA;EHwR9C;AGvRmC;EAAW,kBAAA;EH0R9C;AGzRmC;EAAW,kBAAA;EH4R9C;AG3RmC;EAAW,kBAAA;EH8R9C;AG7RmC;EAAW,kBAAA;EHgS9C;AG/RmC;EAAW,kBAAA;EHkS9C;AGjSmC;EAAW,kBAAA;EHoS9C;AGnSmC;EAAW,kBAAA;EHsS9C;AGrSmC;EAAW,kBAAA;EHwS9C;AGvSmC;EAAW,kBAAA;EH0S9C;AGzSmC;EAAW,kBAAA;EH4S9C;AG3SmC;EAAW,kBAAA;EH8S9C;AG7SmC;EAAW,kBAAA;EHgT9C;AG/SmC;EAAW,kBAAA;EHkT9C;AGjTmC;EAAW,kBAAA;EHoT9C;AGnTmC;EAAW,kBAAA;EHsT9C;AGrTmC;EAAW,kBAAA;EHwT9C;AGvTmC;EAAW,kBAAA;EH0T9C;AGzTmC;EAAW,kBAAA;EH4T9C;AG3TmC;EAAW,kBAAA;EH8T9C;AG7TmC;EAAW,kBAAA;EHgU9C;AG/TmC;EAAW,kBAAA;EHkU9C;AGjUmC;EAAW,kBAAA;EHoU9C;AGnUmC;EAAW,kBAAA;EHsU9C;AGrUmC;EAAW,kBAAA;EHwU9C;AGvUmC;EAAW,kBAAA;EH0U9C;AGzUmC;EAAW,kBAAA;EH4U9C;AG3UmC;EAAW,kBAAA;EH8U9C;AG7UmC;EAAW,kBAAA;EHgV9C;AG/UmC;EAAW,kBAAA;EHkV9C;AGjVmC;EAAW,kBAAA;EHoV9C;AGnVmC;EAAW,kBAAA;EHsV9C;AGrVmC;EAAW,kBAAA;EHwV9C;AGvVmC;EAAW,kBAAA;EH0V9C;AGzVmC;EAAW,kBAAA;EH4V9C;AG3VmC;EAAW,kBAAA;EH8V9C;AG7VmC;EAAW,kBAAA;EHgW9C;AG/VmC;EAAW,kBAAA;EHkW9C;AGjWmC;EAAW,kBAAA;EHoW9C;AGnWmC;EAAW,kBAAA;EHsW9C;AGrWmC;EAAW,kBAAA;EHwW9C;AGvWmC;EAAW,kBAAA;EH0W9C;AGzWmC;EAAW,kBAAA;EH4W9C;AG3WmC;EAAW,kBAAA;EH8W9C;AG7WmC;EAAW,kBAAA;EHgX9C;AG/WmC;EAAW,kBAAA;EHkX9C;AGjXmC;EAAW,kBAAA;EHoX9C;AGnXmC;EAAW,kBAAA;EHsX9C;AGrXmC;EAAW,kBAAA;EHwX9C;AGvXmC;EAAW,kBAAA;EH0X9C;AGzXmC;EAAW,kBAAA;EH4X9C;AG3XmC;EAAW,kBAAA;EH8X9C;AG7XmC;EAAW,kBAAA;EHgY9C;AG/XmC;EAAW,kBAAA;EHkY9C;AGjYmC;EAAW,kBAAA;EHoY9C;AGnYmC;EAAW,kBAAA;EHsY9C;AGrYmC;EAAW,kBAAA;EHwY9C;AGvYmC;EAAW,kBAAA;EH0Y9C;AGzYmC;EAAW,kBAAA;EH4Y9C;AG3YmC;EAAW,kBAAA;EH8Y9C;AG7YmC;EAAW,kBAAA;EHgZ9C;AG/YmC;EAAW,kBAAA;EHkZ9C;AGjZmC;EAAW,kBAAA;EHoZ9C;AGnZmC;EAAW,kBAAA;EHsZ9C;AGrZmC;EAAW,kBAAA;EHwZ9C;AGvZmC;EAAW,kBAAA;EH0Z9C;AGzZmC;EAAW,kBAAA;EH4Z9C;AG3ZmC;EAAW,kBAAA;EH8Z9C;AG7ZmC;EAAW,kBAAA;EHga9C;AG/ZmC;EAAW,kBAAA;EHka9C;AGjamC;EAAW,kBAAA;EHoa9C;AGnamC;EAAW,kBAAA;EHsa9C;AGramC;EAAW,kBAAA;EHwa9C;AGvamC;EAAW,kBAAA;EH0a9C;AGzamC;EAAW,kBAAA;EH4a9C;AG3amC;EAAW,kBAAA;EH8a9C;AG7amC;EAAW,kBAAA;EHgb9C;AG/amC;EAAW,kBAAA;EHkb9C;AGjbmC;EAAW,kBAAA;EHob9C;AGnbmC;EAAW,kBAAA;EHsb9C;AGrbmC;EAAW,kBAAA;EHwb9C;AGvbmC;EAAW,kBAAA;EH0b9C;AGzbmC;EAAW,kBAAA;EH4b9C;AG3bmC;EAAW,kBAAA;EH8b9C;AG7bmC;EAAW,kBAAA;EHgc9C;AG/bmC;EAAW,kBAAA;EHkc9C;AGjcmC;EAAW,kBAAA;EHoc9C;AGncmC;EAAW,kBAAA;EHsc9C;AGrcmC;EAAW,kBAAA;EHwc9C;AGvcmC;EAAW,kBAAA;EH0c9C;AGzcmC;EAAW,kBAAA;EH4c9C;AG3cmC;EAAW,kBAAA;EH8c9C;AG7cmC;EAAW,kBAAA;EHgd9C;AG/cmC;EAAW,kBAAA;EHkd9C;AGjdmC;EAAW,kBAAA;EHod9C;AGndmC;EAAW,kBAAA;EHsd9C;AGrdmC;EAAW,kBAAA;EHwd9C;AGvdmC;EAAW,kBAAA;EH0d9C;AGzdmC;EAAW,kBAAA;EH4d9C;AG3dmC;EAAW,kBAAA;EH8d9C;AG7dmC;EAAW,kBAAA;EHge9C;AG/dmC;EAAW,kBAAA;EHke9C;AGjemC;EAAW,kBAAA;EHoe9C;AGnemC;EAAW,kBAAA;EHse9C;AGremC;EAAW,kBAAA;EHwe9C;AGvemC;EAAW,kBAAA;EH0e9C;AGzemC;EAAW,kBAAA;EH4e9C;AG3emC;EAAW,kBAAA;EH8e9C;AG7emC;EAAW,kBAAA;EHgf9C;AG/emC;EAAW,kBAAA;EHkf9C;AGjfmC;EAAW,kBAAA;EHof9C;AGnfmC;EAAW,kBAAA;EHsf9C;AGrfmC;EAAW,kBAAA;EHwf9C;AGvfmC;EAAW,kBAAA;EH0f9C;AGzfmC;EAAW,kBAAA;EH4f9C;AG3fmC;EAAW,kBAAA;EH8f9C;AG7fmC;EAAW,kBAAA;EHggB9C;AG/fmC;EAAW,kBAAA;EHkgB9C;AGjgBmC;EAAW,kBAAA;EHogB9C;AGngBmC;EAAW,kBAAA;EHsgB9C;AGrgBmC;EAAW,kBAAA;EHwgB9C;AGvgBmC;EAAW,kBAAA;EH0gB9C;AGzgBmC;EAAW,kBAAA;EH4gB9C;AG3gBmC;EAAW,kBAAA;EH8gB9C;AG7gBmC;EAAW,kBAAA;EHghB9C;AG/gBmC;EAAW,kBAAA;EHkhB9C;AGjhBmC;EAAW,kBAAA;EHohB9C;AGnhBmC;EAAW,kBAAA;EHshB9C;AGrhBmC;EAAW,kBAAA;EHwhB9C;AGvhBmC;EAAW,kBAAA;EH0hB9C;AGzhBmC;EAAW,kBAAA;EH4hB9C;AG3hBmC;EAAW,kBAAA;EH8hB9C;AG7hBmC;EAAW,kBAAA;EHgiB9C;AG/hBmC;EAAW,kBAAA;EHkiB9C;AGjiBmC;EAAW,kBAAA;EHoiB9C;AGniBmC;EAAW,kBAAA;EHsiB9C;AGriBmC;EAAW,kBAAA;EHwiB9C;AGviBmC;EAAW,kBAAA;EH0iB9C;AGziBmC;EAAW,kBAAA;EH4iB9C;AG3iBmC;EAAW,kBAAA;EH8iB9C;AG7iBmC;EAAW,kBAAA;EHgjB9C;AG/iBmC;EAAW,kBAAA;EHkjB9C;AGjjBmC;EAAW,kBAAA;EHojB9C;AGnjBmC;EAAW,kBAAA;EHsjB9C;AGrjBmC;EAAW,kBAAA;EHwjB9C;AGvjBmC;EAAW,kBAAA;EH0jB9C;AGzjBmC;EAAW,kBAAA;EH4jB9C;AG3jBmC;EAAW,kBAAA;EH8jB9C;AG7jBmC;EAAW,kBAAA;EHgkB9C;AG/jBmC;EAAW,kBAAA;EHkkB9C;AGjkBmC;EAAW,kBAAA;EHokB9C;AGnkBmC;EAAW,kBAAA;EHskB9C;AGrkBmC;EAAW,kBAAA;EHwkB9C;AGvkBmC;EAAW,kBAAA;EH0kB9C;AGzkBmC;EAAW,kBAAA;EH4kB9C;AG3kBmC;EAAW,kBAAA;EH8kB9C;AG7kBmC;EAAW,kBAAA;EHglB9C;AG/kBmC;EAAW,kBAAA;EHklB9C;AGjlBmC;EAAW,kBAAA;EHolB9C;AGnlBmC;EAAW,kBAAA;EHslB9C;AGrlBmC;EAAW,kBAAA;EHwlB9C;AGvlBmC;EAAW,kBAAA;EH0lB9C;AGzlBmC;EAAW,kBAAA;EH4lB9C;AG3lBmC;EAAW,kBAAA;EH8lB9C;AG7lBmC;EAAW,kBAAA;EHgmB9C;AG/lBmC;EAAW,kBAAA;EHkmB9C;AGjmBmC;EAAW,kBAAA;EHomB9C;AGnmBmC;EAAW,kBAAA;EHsmB9C;AGrmBmC;EAAW,kBAAA;EHwmB9C;AGvmBmC;EAAW,kBAAA;EH0mB9C;AGzmBmC;EAAW,kBAAA;EH4mB9C;AG3mBmC;EAAW,kBAAA;EH8mB9C;AG7mBmC;EAAW,kBAAA;EHgnB9C;AG/mBmC;EAAW,kBAAA;EHknB9C;AGjnBmC;EAAW,kBAAA;EHonB9C;AGnnBmC;EAAW,kBAAA;EHsnB9C;AGrnBmC;EAAW,kBAAA;EHwnB9C;AGvnBmC;EAAW,kBAAA;EH0nB9C;AGznBmC;EAAW,kBAAA;EH4nB9C;AG3nBmC;EAAW,kBAAA;EH8nB9C;AI71BD;ECgEE,gCAAA;EACG,6BAAA;EACK,wBAAA;ELgyBT;AI/1BD;;EC6DE,gCAAA;EACG,6BAAA;EACK,wBAAA;ELsyBT;AI71BD;EACE,iBAAA;EACA,+CAAA;EJ+1BD;AI51BD;EACE,6DAAA;EACA,iBAAA;EACA,yBAAA;EACA,gBAAA;EACA,2BAAA;EJ81BD;AI11BD;;;;EAIE,sBAAA;EACA,oBAAA;EACA,sBAAA;EJ41BD;AIt1BD;EACE,gBAAA;EACA,uBAAA;EJw1BD;AIt1BC;;EAEE,gBAAA;EACA,4BAAA;EJw1BH;AIr1BC;EErDA,sBAAA;EAEA,4CAAA;EACA,sBAAA;EN44BD;AI/0BD;EACE,WAAA;EJi1BD;AI30BD;EACE,wBAAA;EJ60BD;AIz0BD;;;;;EGvEE,gBAAA;EACA,iBAAA;EACA,cAAA;EPu5BD;AI70BD;EACE,oBAAA;EJ+0BD;AIz0BD;EACE,cAAA;EACA,yBAAA;EACA,2BAAA;EACA,2BAAA;EACA,oBAAA;EC6FA,0CAAA;EACK,qCAAA;EACG,kCAAA;EEvLR,uBAAA;EACA,iBAAA;EACA,cAAA;EPu6BD;AIz0BD;EACE,oBAAA;EJ20BD;AIr0BD;EACE,kBAAA;EACA,qBAAA;EACA,WAAA;EACA,+BAAA;EJu0BD;AI/zBD;EACE,oBAAA;EACA,YAAA;EACA,aAAA;EACA,cAAA;EACA,YAAA;EACA,kBAAA;EACA,wBAAA;EACA,WAAA;EJi0BD;AIzzBC;;EAEE,kBAAA;EACA,aAAA;EACA,cAAA;EACA,WAAA;EACA,mBAAA;EACA,YAAA;EJ2zBH;AQt8BD;;;;;;;;;;;;EAEE,sBAAA;EACA,kBAAA;EACA,kBAAA;EACA,gBAAA;ERk9BD;AQv9BD;;;;;;;;;;;;;;;;;;;;;;;;EASI,qBAAA;EACA,gBAAA;EACA,gBAAA;ERw+BH;AQp+BD;;;;;;EAGE,kBAAA;EACA,qBAAA;ERy+BD;AQ7+BD;;;;;;;;;;;;EAQI,gBAAA;ERm/BH;AQh/BD;;;;;;EAGE,kBAAA;EACA,qBAAA;ERq/BD;AQz/BD;;;;;;;;;;;;EAQI,gBAAA;ER+/BH;AQ3/BD;;EAAU,iBAAA;ER+/BT;AQ9/BD;;EAAU,iBAAA;ERkgCT;AQjgCD;;EAAU,iBAAA;ERqgCT;AQpgCD;;EAAU,iBAAA;ERwgCT;AQvgCD;;EAAU,iBAAA;ER2gCT;AQ1gCD;;EAAU,iBAAA;ER8gCT;AQxgCD;EACE,kBAAA;ER0gCD;AQvgCD;EACE,qBAAA;EACA,iBAAA;EACA,kBAAA;EACA,kBAAA;ERygCD;AQpgCD;EAAA;IAFI,iBAAA;IR0gCD;EACF;AQlgCD;;EAEE,gBAAA;ERogCD;AQjgCD;;EAEE,2BAAA;EACA,eAAA;ERmgCD;AQ//BD;EAAuB,kBAAA;ERkgCtB;AQjgCD;EAAuB,mBAAA;ERogCtB;AQngCD;EAAuB,oBAAA;ERsgCtB;AQrgCD;EAAuB,qBAAA;ERwgCtB;AQvgCD;EAAuB,qBAAA;ER0gCtB;AQvgCD;EAAuB,2BAAA;ER0gCtB;AQzgCD;EAAuB,2BAAA;ER4gCtB;AQ3gCD;EAAuB,4BAAA;ER8gCtB;AQ3gCD;EACE,gBAAA;ER6gCD;AQ3gCD;ECrGE,gBAAA;ETmnCD;ASlnCC;EACE,gBAAA;ETonCH;AQ9gCD;ECxGE,gBAAA;ETynCD;ASxnCC;EACE,gBAAA;ET0nCH;AQjhCD;EC3GE,gBAAA;ET+nCD;AS9nCC;EACE,gBAAA;ETgoCH;AQphCD;EC9GE,gBAAA;ETqoCD;ASpoCC;EACE,gBAAA;ETsoCH;AQvhCD;ECjHE,gBAAA;ET2oCD;AS1oCC;EACE,gBAAA;ET4oCH;AQthCD;EAGE,aAAA;EE3HA,2BAAA;EVkpCD;AUjpCC;EACE,2BAAA;EVmpCH;AQvhCD;EE9HE,2BAAA;EVwpCD;AUvpCC;EACE,2BAAA;EVypCH;AQ1hCD;EEjIE,2BAAA;EV8pCD;AU7pCC;EACE,2BAAA;EV+pCH;AQ7hCD;EEpIE,2BAAA;EVoqCD;AUnqCC;EACE,2BAAA;EVqqCH;AQhiCD;EEvIE,2BAAA;EV0qCD;AUzqCC;EACE,2BAAA;EV2qCH;AQ9hCD;EACE,qBAAA;EACA,qBAAA;EACA,kCAAA;ERgiCD;AQxhCD;;EAEE,eAAA;EACA,qBAAA;ER0hCD;AQ7hCD;;;;EAMI,kBAAA;ER6hCH;AQthCD;EACE,iBAAA;EACA,kBAAA;ERwhCD;AQphCD;EALE,iBAAA;EACA,kBAAA;EAMA,mBAAA;ERuhCD;AQzhCD;EAKI,uBAAA;EACA,mBAAA;EACA,oBAAA;ERuhCH;AQlhCD;EACE,eAAA;EACA,qBAAA;ERohCD;AQlhCD;;EAEE,yBAAA;ERohCD;AQlhCD;EACE,mBAAA;ERohCD;AQlhCD;EACE,gBAAA;ERohCD;AQ3/BD;EAAA;IAVM,aAAA;IACA,cAAA;IACA,aAAA;IACA,mBAAA;IGtNJ,kBAAA;IACA,yBAAA;IACA,qBAAA;IXguCC;EQrgCH;IAHM,oBAAA;IR2gCH;EACF;AQlgCD;;EAGE,cAAA;EACA,mCAAA;ERmgCD;AQjgCD;EACE,gBAAA;EACA,2BAAA;ERmgCD;AQ//BD;EACE,oBAAA;EACA,kBAAA;EACA,mBAAA;EACA,gCAAA;ERigCD;AQ5/BG;;;EACE,kBAAA;ERggCL;AQ1gCD;;;EAmBI,gBAAA;EACA,gBAAA;EACA,yBAAA;EACA,gBAAA;ER4/BH;AQ1/BG;;;EACE,wBAAA;ER8/BL;AQt/BD;;EAEE,qBAAA;EACA,iBAAA;EACA,iCAAA;EACA,gBAAA;EACA,mBAAA;ERw/BD;AQl/BG;;;;;;EAAW,aAAA;ER0/Bd;AQz/BG;;;;;;EACE,wBAAA;ERggCL;AQ1/BD;EACE,qBAAA;EACA,oBAAA;EACA,yBAAA;ER4/BD;AYlyCD;;;;EAIE,gEAAA;EZoyCD;AYhyCD;EACE,kBAAA;EACA,gBAAA;EACA,gBAAA;EACA,2BAAA;EACA,oBAAA;EZkyCD;AY9xCD;EACE,kBAAA;EACA,gBAAA;EACA,gBAAA;EACA,2BAAA;EACA,oBAAA;EACA,wDAAA;UAAA,gDAAA;EZgyCD;AYtyCD;EASI,YAAA;EACA,iBAAA;EACA,mBAAA;EACA,0BAAA;UAAA,kBAAA;EZgyCH;AY3xCD;EACE,gBAAA;EACA,gBAAA;EACA,kBAAA;EACA,iBAAA;EACA,yBAAA;EACA,uBAAA;EACA,uBAAA;EACA,gBAAA;EACA,2BAAA;EACA,2BAAA;EACA,oBAAA;EZ6xCD;AYxyCD;EAeI,YAAA;EACA,oBAAA;EACA,gBAAA;EACA,uBAAA;EACA,+BAAA;EACA,kBAAA;EZ4xCH;AYvxCD;EACE,mBAAA;EACA,oBAAA;EZyxCD;Aan1CD;ECHE,oBAAA;EACA,mBAAA;EACA,oBAAA;EACA,qBAAA;Edy1CD;Aan1CC;EAAA;IAFE,cAAA;Iby1CD;EACF;Aar1CC;EAAA;IAFE,cAAA;Ib21CD;EACF;Aav1CD;EAAA;IAFI,eAAA;Ib61CD;EACF;Aap1CD;ECvBE,oBAAA;EACA,mBAAA;EACA,oBAAA;EACA,qBAAA;Ed82CD;Aaj1CD;ECvBE,oBAAA;EACA,qBAAA;Ed22CD;Ae32CG;EACE,oBAAA;EAEA,iBAAA;EAEA,oBAAA;EACA,qBAAA;Ef22CL;Ae31CG;EACE,aAAA;Ef61CL;Aet1CC;EACE,aAAA;Efw1CH;Aez1CC;EACE,qBAAA;Ef21CH;Ae51CC;EACE,qBAAA;Ef81CH;Ae/1CC;EACE,YAAA;Efi2CH;Ael2CC;EACE,qBAAA;Efo2CH;Aer2CC;EACE,qBAAA;Efu2CH;Aex2CC;EACE,YAAA;Ef02CH;Ae32CC;EACE,qBAAA;Ef62CH;Ae92CC;EACE,qBAAA;Efg3CH;Aej3CC;EACE,YAAA;Efm3CH;Aep3CC;EACE,qBAAA;Efs3CH;Aev3CC;EACE,oBAAA;Efy3CH;Ae32CC;EACE,aAAA;Ef62CH;Ae92CC;EACE,qBAAA;Efg3CH;Aej3CC;EACE,qBAAA;Efm3CH;Aep3CC;EACE,YAAA;Efs3CH;Aev3CC;EACE,qBAAA;Efy3CH;Ae13CC;EACE,qBAAA;Ef43CH;Ae73CC;EACE,YAAA;Ef+3CH;Aeh4CC;EACE,qBAAA;Efk4CH;Aen4CC;EACE,qBAAA;Efq4CH;Aet4CC;EACE,YAAA;Efw4CH;Aez4CC;EACE,qBAAA;Ef24CH;Ae54CC;EACE,oBAAA;Ef84CH;Ae14CC;EACE,aAAA;Ef44CH;Ae55CC;EACE,YAAA;Ef85CH;Ae/5CC;EACE,oBAAA;Efi6CH;Ael6CC;EACE,oBAAA;Efo6CH;Aer6CC;EACE,WAAA;Efu6CH;Aex6CC;EACE,oBAAA;Ef06CH;Ae36CC;EACE,oBAAA;Ef66CH;Ae96CC;EACE,WAAA;Efg7CH;Aej7CC;EACE,oBAAA;Efm7CH;Aep7CC;EACE,oBAAA;Efs7CH;Aev7CC;EACE,WAAA;Efy7CH;Ae17CC;EACE,oBAAA;Ef47CH;Ae77CC;EACE,mBAAA;Ef+7CH;Ae37CC;EACE,YAAA;Ef67CH;Ae/6CC;EACE,mBAAA;Efi7CH;Ael7CC;EACE,2BAAA;Efo7CH;Aer7CC;EACE,2BAAA;Efu7CH;Aex7CC;EACE,kBAAA;Ef07CH;Ae37CC;EACE,2BAAA;Ef67CH;Ae97CC;EACE,2BAAA;Efg8CH;Aej8CC;EACE,kBAAA;Efm8CH;Aep8CC;EACE,2BAAA;Efs8CH;Aev8CC;EACE,2BAAA;Efy8CH;Ae18CC;EACE,kBAAA;Ef48CH;Ae78CC;EACE,2BAAA;Ef+8CH;Aeh9CC;EACE,0BAAA;Efk9CH;Aen9CC;EACE,iBAAA;Efq9CH;Aaz9CD;EE9BI;IACE,aAAA;If0/CH;Een/CD;IACE,aAAA;Ifq/CD;Eet/CD;IACE,qBAAA;Ifw/CD;Eez/CD;IACE,qBAAA;If2/CD;Ee5/CD;IACE,YAAA;If8/CD;Ee//CD;IACE,qBAAA;IfigDD;EelgDD;IACE,qBAAA;IfogDD;EergDD;IACE,YAAA;IfugDD;EexgDD;IACE,qBAAA;If0gDD;Ee3gDD;IACE,qBAAA;If6gDD;Ee9gDD;IACE,YAAA;IfghDD;EejhDD;IACE,qBAAA;IfmhDD;EephDD;IACE,oBAAA;IfshDD;EexgDD;IACE,aAAA;If0gDD;Ee3gDD;IACE,qBAAA;If6gDD;Ee9gDD;IACE,qBAAA;IfghDD;EejhDD;IACE,YAAA;IfmhDD;EephDD;IACE,qBAAA;IfshDD;EevhDD;IACE,qBAAA;IfyhDD;Ee1hDD;IACE,YAAA;If4hDD;Ee7hDD;IACE,qBAAA;If+hDD;EehiDD;IACE,qBAAA;IfkiDD;EeniDD;IACE,YAAA;IfqiDD;EetiDD;IACE,qBAAA;IfwiDD;EeziDD;IACE,oBAAA;If2iDD;EeviDD;IACE,aAAA;IfyiDD;EezjDD;IACE,YAAA;If2jDD;Ee5jDD;IACE,oBAAA;If8jDD;Ee/jDD;IACE,oBAAA;IfikDD;EelkDD;IACE,WAAA;IfokDD;EerkDD;IACE,oBAAA;IfukDD;EexkDD;IACE,oBAAA;If0kDD;Ee3kDD;IACE,WAAA;If6kDD;Ee9kDD;IACE,oBAAA;IfglDD;EejlDD;IACE,oBAAA;IfmlDD;EeplDD;IACE,WAAA;IfslDD;EevlDD;IACE,oBAAA;IfylDD;Ee1lDD;IACE,mBAAA;If4lDD;EexlDD;IACE,YAAA;If0lDD;Ee5kDD;IACE,mBAAA;If8kDD;Ee/kDD;IACE,2BAAA;IfilDD;EellDD;IACE,2BAAA;IfolDD;EerlDD;IACE,kBAAA;IfulDD;EexlDD;IACE,2BAAA;If0lDD;Ee3lDD;IACE,2BAAA;If6lDD;Ee9lDD;IACE,kBAAA;IfgmDD;EejmDD;IACE,2BAAA;IfmmDD;EepmDD;IACE,2BAAA;IfsmDD;EevmDD;IACE,kBAAA;IfymDD;Ee1mDD;IACE,2BAAA;If4mDD;Ee7mDD;IACE,0BAAA;If+mDD;EehnDD;IACE,iBAAA;IfknDD;EACF;Aa9mDD;EEvCI;IACE,aAAA;IfwpDH;EejpDD;IACE,aAAA;IfmpDD;EeppDD;IACE,qBAAA;IfspDD;EevpDD;IACE,qBAAA;IfypDD;Ee1pDD;IACE,YAAA;If4pDD;Ee7pDD;IACE,qBAAA;If+pDD;EehqDD;IACE,qBAAA;IfkqDD;EenqDD;IACE,YAAA;IfqqDD;EetqDD;IACE,qBAAA;IfwqDD;EezqDD;IACE,qBAAA;If2qDD;Ee5qDD;IACE,YAAA;If8qDD;Ee/qDD;IACE,qBAAA;IfirDD;EelrDD;IACE,oBAAA;IforDD;EetqDD;IACE,aAAA;IfwqDD;EezqDD;IACE,qBAAA;If2qDD;Ee5qDD;IACE,qBAAA;If8qDD;Ee/qDD;IACE,YAAA;IfirDD;EelrDD;IACE,qBAAA;IforDD;EerrDD;IACE,qBAAA;IfurDD;EexrDD;IACE,YAAA;If0rDD;Ee3rDD;IACE,qBAAA;If6rDD;Ee9rDD;IACE,qBAAA;IfgsDD;EejsDD;IACE,YAAA;IfmsDD;EepsDD;IACE,qBAAA;IfssDD;EevsDD;IACE,oBAAA;IfysDD;EersDD;IACE,aAAA;IfusDD;EevtDD;IACE,YAAA;IfytDD;Ee1tDD;IACE,oBAAA;If4tDD;Ee7tDD;IACE,oBAAA;If+tDD;EehuDD;IACE,WAAA;IfkuDD;EenuDD;IACE,oBAAA;IfquDD;EetuDD;IACE,oBAAA;IfwuDD;EezuDD;IACE,WAAA;If2uDD;Ee5uDD;IACE,oBAAA;If8uDD;Ee/uDD;IACE,oBAAA;IfivDD;EelvDD;IACE,WAAA;IfovDD;EervDD;IACE,oBAAA;IfuvDD;EexvDD;IACE,mBAAA;If0vDD;EetvDD;IACE,YAAA;IfwvDD;Ee1uDD;IACE,mBAAA;If4uDD;Ee7uDD;IACE,2BAAA;If+uDD;EehvDD;IACE,2BAAA;IfkvDD;EenvDD;IACE,kBAAA;IfqvDD;EetvDD;IACE,2BAAA;IfwvDD;EezvDD;IACE,2BAAA;If2vDD;Ee5vDD;IACE,kBAAA;If8vDD;Ee/vDD;IACE,2BAAA;IfiwDD;EelwDD;IACE,2BAAA;IfowDD;EerwDD;IACE,kBAAA;IfuwDD;EexwDD;IACE,2BAAA;If0wDD;Ee3wDD;IACE,0BAAA;If6wDD;Ee9wDD;IACE,iBAAA;IfgxDD;EACF;AarwDD;EE9CI;IACE,aAAA;IfszDH;Ee/yDD;IACE,aAAA;IfizDD;EelzDD;IACE,qBAAA;IfozDD;EerzDD;IACE,qBAAA;IfuzDD;EexzDD;IACE,YAAA;If0zDD;Ee3zDD;IACE,qBAAA;If6zDD;Ee9zDD;IACE,qBAAA;Ifg0DD;Eej0DD;IACE,YAAA;Ifm0DD;Eep0DD;IACE,qBAAA;Ifs0DD;Eev0DD;IACE,qBAAA;Ify0DD;Ee10DD;IACE,YAAA;If40DD;Ee70DD;IACE,qBAAA;If+0DD;Eeh1DD;IACE,oBAAA;Ifk1DD;Eep0DD;IACE,aAAA;Ifs0DD;Eev0DD;IACE,qBAAA;Ify0DD;Ee10DD;IACE,qBAAA;If40DD;Ee70DD;IACE,YAAA;If+0DD;Eeh1DD;IACE,qBAAA;Ifk1DD;Een1DD;IACE,qBAAA;Ifq1DD;Eet1DD;IACE,YAAA;Ifw1DD;Eez1DD;IACE,qBAAA;If21DD;Ee51DD;IACE,qBAAA;If81DD;Ee/1DD;IACE,YAAA;Ifi2DD;Eel2DD;IACE,qBAAA;Ifo2DD;Eer2DD;IACE,oBAAA;Ifu2DD;Een2DD;IACE,aAAA;Ifq2DD;Eer3DD;IACE,YAAA;Ifu3DD;Eex3DD;IACE,oBAAA;If03DD;Ee33DD;IACE,oBAAA;If63DD;Ee93DD;IACE,WAAA;Ifg4DD;Eej4DD;IACE,oBAAA;Ifm4DD;Eep4DD;IACE,oBAAA;Ifs4DD;Eev4DD;IACE,WAAA;Ify4DD;Ee14DD;IACE,oBAAA;If44DD;Ee74DD;IACE,oBAAA;If+4DD;Eeh5DD;IACE,WAAA;Ifk5DD;Een5DD;IACE,oBAAA;Ifq5DD;Eet5DD;IACE,mBAAA;Ifw5DD;Eep5DD;IACE,YAAA;Ifs5DD;Eex4DD;IACE,mBAAA;If04DD;Ee34DD;IACE,2BAAA;If64DD;Ee94DD;IACE,2BAAA;Ifg5DD;Eej5DD;IACE,kBAAA;Ifm5DD;Eep5DD;IACE,2BAAA;Ifs5DD;Eev5DD;IACE,2BAAA;Ify5DD;Ee15DD;IACE,kBAAA;If45DD;Ee75DD;IACE,2BAAA;If+5DD;Eeh6DD;IACE,2BAAA;Ifk6DD;Een6DD;IACE,kBAAA;Ifq6DD;Eet6DD;IACE,2BAAA;Ifw6DD;Eez6DD;IACE,0BAAA;If26DD;Ee56DD;IACE,iBAAA;If86DD;EACF;AgBl/DD;EACE,+BAAA;EhBo/DD;AgBl/DD;EACE,kBAAA;EACA,qBAAA;EACA,gBAAA;EACA,kBAAA;EhBo/DD;AgBl/DD;EACE,kBAAA;EhBo/DD;AgB9+DD;EACE,aAAA;EACA,iBAAA;EACA,qBAAA;EhBg/DD;AgBn/DD;;;;;;EAWQ,cAAA;EACA,yBAAA;EACA,qBAAA;EACA,+BAAA;EhBg/DP;AgB9/DD;EAoBI,wBAAA;EACA,kCAAA;EhB6+DH;AgBlgED;;;;;;EA8BQ,eAAA;EhB4+DP;AgB1gED;EAoCI,+BAAA;EhBy+DH;AgB7gED;EAyCI,2BAAA;EhBu+DH;AgBh+DD;;;;;;EAOQ,cAAA;EhBi+DP;AgBt9DD;EACE,2BAAA;EhBw9DD;AgBz9DD;;;;;;EAQQ,2BAAA;EhBy9DP;AgBj+DD;;EAeM,0BAAA;EhBs9DL;AgB58DD;EAEI,2BAAA;EhB68DH;AgBp8DD;EAEI,2BAAA;EhBq8DH;AgB57DD;EACE,kBAAA;EACA,aAAA;EACA,uBAAA;EhB87DD;AgBz7DG;;EACE,kBAAA;EACA,aAAA;EACA,qBAAA;EhB47DL;AiBxkEC;;;;;;;;;;;;EAOI,2BAAA;EjB+kEL;AiBzkEC;;;;;EAMI,2BAAA;EjB0kEL;AiB7lEC;;;;;;;;;;;;EAOI,2BAAA;EjBomEL;AiB9lEC;;;;;EAMI,2BAAA;EjB+lEL;AiBlnEC;;;;;;;;;;;;EAOI,2BAAA;EjBynEL;AiBnnEC;;;;;EAMI,2BAAA;EjBonEL;AiBvoEC;;;;;;;;;;;;EAOI,2BAAA;EjB8oEL;AiBxoEC;;;;;EAMI,2BAAA;EjByoEL;AiB5pEC;;;;;;;;;;;;EAOI,2BAAA;EjBmqEL;AiB7pEC;;;;;EAMI,2BAAA;EjB8pEL;AgB5gED;EACE,kBAAA;EACA,mBAAA;EhB8gED;AgBj9DD;EAAA;IA1DI,aAAA;IACA,qBAAA;IACA,oBAAA;IACA,8CAAA;IACA,2BAAA;IhB+gED;EgBz9DH;IAlDM,kBAAA;IhB8gEH;EgB59DH;;;;;;IAzCY,qBAAA;IhB6gET;EgBp+DH;IAjCM,WAAA;IhBwgEH;EgBv+DH;;;;;;IAxBY,gBAAA;IhBugET;EgB/+DH;;;;;;IApBY,iBAAA;IhB2gET;EgBv/DH;;;;IAPY,kBAAA;IhBogET;EACF;AkB9tED;EACE,YAAA;EACA,WAAA;EACA,WAAA;EAIA,cAAA;ElB6tED;AkB1tED;EACE,gBAAA;EACA,aAAA;EACA,YAAA;EACA,qBAAA;EACA,iBAAA;EACA,sBAAA;EACA,gBAAA;EACA,WAAA;EACA,kCAAA;ElB4tED;AkBztED;EACE,uBAAA;EACA,iBAAA;EACA,oBAAA;EACA,mBAAA;ElB2tED;AkBhtED;Eb4BE,gCAAA;EACG,6BAAA;EACK,wBAAA;ELurET;AkBhtED;;EAEE,iBAAA;EACA,oBAAA;EACA,qBAAA;ElBktED;AkB9sED;EACE,gBAAA;ElBgtED;AkB5sED;EACE,gBAAA;EACA,aAAA;ElB8sED;AkB1sED;;EAEE,cAAA;ElB4sED;AkBxsED;;;EZxEE,sBAAA;EAEA,4CAAA;EACA,sBAAA;ENoxED;AkBxsED;EACE,gBAAA;EACA,kBAAA;EACA,iBAAA;EACA,yBAAA;EACA,gBAAA;ElB0sED;AkBhrED;EACE,gBAAA;EACA,aAAA;EACA,cAAA;EACA,mBAAA;EACA,iBAAA;EACA,yBAAA;EACA,gBAAA;EACA,2BAAA;EACA,wBAAA;EACA,2BAAA;EACA,oBAAA;EbzDA,0DAAA;EACQ,kDAAA;EAyHR,wFAAA;EACK,2EAAA;EACG,wEAAA;ELonET;AmB5vEC;EACE,uBAAA;EACA,YAAA;EdUF,wFAAA;EACQ,gFAAA;ELqvET;AKptEC;EACE,gBAAA;EACA,YAAA;ELstEH;AKptEC;EAA0B,gBAAA;ELutE3B;AKttEC;EAAgC,gBAAA;ELytEjC;AkBxrEC;;;EAGE,qBAAA;EACA,2BAAA;EACA,YAAA;ElB0rEH;AkBtrEC;EACE,cAAA;ElBwrEH;AkB5qED;EACE,0BAAA;ElB8qED;AkBlqED;;;;EAIE,mBAAA;EAEA,4BAAA;ElBmqED;AkBjqEC;;;;EACE,mBAAA;EACA,qBAAA;ElBsqEH;AkBpqEC;;;;EACE,mBAAA;EACA,sBAAA;ElByqEH;AkBpqED;;;;;;;;EAIE,yBAAA;ElB0qED;AkBxqEC;;;;;;;;EACE,kBAAA;ElBirEH;AkB/qEC;;;;;;;;EACE,mBAAA;ElBwrEH;AkB9qED;EACE,qBAAA;ElBgrED;AkBxqED;;EAEE,oBAAA;EACA,gBAAA;EACA,kBAAA;EACA,qBAAA;ElB0qED;AkB/qED;;EAQI,kBAAA;EACA,oBAAA;EACA,kBAAA;EACA,qBAAA;EACA,iBAAA;ElB2qEH;AkBxqED;;;;EAIE,oBAAA;EACA,oBAAA;EACA,oBAAA;ElB0qED;AkBvqED;;EAEE,kBAAA;ElByqED;AkBrqED;;EAEE,uBAAA;EACA,oBAAA;EACA,kBAAA;EACA,wBAAA;EACA,qBAAA;EACA,iBAAA;ElBuqED;AkBrqED;;EAEE,eAAA;EACA,mBAAA;ElBuqED;AkB9pEC;;;;;;EAGE,qBAAA;ElBmqEH;AkB7pEC;;;;EAEE,qBAAA;ElBiqEH;AkB3pEC;;;;EAGI,qBAAA;ElB8pEL;AkBnpED;EAEE,kBAAA;EACA,qBAAA;EAEA,kBAAA;ElBmpED;AkBjpEC;;EAEE,iBAAA;EACA,kBAAA;ElBmpEH;AkBzoED;;EChQE,cAAA;EACA,mBAAA;EACA,iBAAA;EACA,kBAAA;EACA,oBAAA;EnB64ED;AmB34EC;;EACE,cAAA;EACA,mBAAA;EnB84EH;AmB34EC;;;;EAEE,cAAA;EnB+4EH;AkBvpED;;ECrQE,cAAA;EACA,oBAAA;EACA,iBAAA;EACA,mBAAA;EACA,oBAAA;EnBg6ED;AmB95EC;;EACE,cAAA;EACA,mBAAA;EnBi6EH;AmB95EC;;;;EAEE,cAAA;EnBk6EH;AkBhqED;EAEE,oBAAA;ElBiqED;AkBnqED;EAMI,uBAAA;ElBgqEH;AkB5pED;EACE,oBAAA;EACA,QAAA;EACA,UAAA;EACA,YAAA;EACA,gBAAA;EACA,aAAA;EACA,cAAA;EACA,mBAAA;EACA,oBAAA;EACA,sBAAA;ElB8pED;AkB5pED;EACE,aAAA;EACA,cAAA;EACA,mBAAA;ElB8pED;AkB5pED;EACE,aAAA;EACA,cAAA;EACA,mBAAA;ElB8pED;AkB1pED;;;;;;;;;;ECrWI,gBAAA;EnB2gFH;AkBtqED;ECjWI,uBAAA;Ed+CF,0DAAA;EACQ,kDAAA;EL49ET;AmB1gFG;EACE,uBAAA;Ed4CJ,2EAAA;EACQ,mEAAA;ELi+ET;AkBhrED;ECvVI,gBAAA;EACA,uBAAA;EACA,2BAAA;EnB0gFH;AkBrrED;ECjVI,gBAAA;EnBygFH;AkBrrED;;;;;;;;;;ECxWI,gBAAA;EnByiFH;AkBjsED;ECpWI,uBAAA;Ed+CF,0DAAA;EACQ,kDAAA;EL0/ET;AmBxiFG;EACE,uBAAA;Ed4CJ,2EAAA;EACQ,mEAAA;EL+/ET;AkB3sED;EC1VI,gBAAA;EACA,uBAAA;EACA,2BAAA;EnBwiFH;AkBhtED;ECpVI,gBAAA;EnBuiFH;AkBhtED;;;;;;;;;;EC3WI,gBAAA;EnBukFH;AkB5tED;ECvWI,uBAAA;Ed+CF,0DAAA;EACQ,kDAAA;ELwhFT;AmBtkFG;EACE,uBAAA;Ed4CJ,2EAAA;EACQ,mEAAA;EL6hFT;AkBtuED;EC7VI,gBAAA;EACA,uBAAA;EACA,2BAAA;EnBskFH;AkB3uED;ECvVI,gBAAA;EnBqkFH;AkBvuEC;EACG,WAAA;ElByuEJ;AkBvuEC;EACG,QAAA;ElByuEJ;AkB/tED;EACE,gBAAA;EACA,iBAAA;EACA,qBAAA;EACA,gBAAA;ElBiuED;AkB7oED;EAAA;IA/DM,uBAAA;IACA,kBAAA;IACA,wBAAA;IlBgtEH;EkBnpEH;IAxDM,uBAAA;IACA,aAAA;IACA,wBAAA;IlB8sEH;EkBxpEH;IAjDM,uBAAA;IlB4sEH;EkB3pEH;IA7CM,uBAAA;IACA,wBAAA;IlB2sEH;EkB/pEH;;;IAvCQ,aAAA;IlB2sEL;EkBpqEH;IAjCM,aAAA;IlBwsEH;EkBvqEH;IA7BM,kBAAA;IACA,wBAAA;IlBusEH;EkB3qEH;;IApBM,uBAAA;IACA,eAAA;IACA,kBAAA;IACA,wBAAA;IlBmsEH;EkBlrEH;;IAdQ,iBAAA;IlBosEL;EkBtrEH;;IATM,oBAAA;IACA,gBAAA;IlBmsEH;EkB3rEH;IAHM,QAAA;IlBisEH;EACF;AkBvrED;;;;EASI,eAAA;EACA,kBAAA;EACA,kBAAA;ElBorEH;AkB/rED;;EAiBI,kBAAA;ElBkrEH;AkBnsED;EJleE,oBAAA;EACA,qBAAA;EdwqFD;AkBpqEC;EAAA;IANI,mBAAA;IACA,kBAAA;IACA,kBAAA;IlB8qEH;EACF;AkB9sED;EAwCI,aAAA;ElByqEH;AkB5pEC;EAAA;IAHM,qBAAA;IlBmqEL;EACF;AkB1pEC;EAAA;IAHM,kBAAA;IlBiqEL;EACF;AoBpsFD;EACE,uBAAA;EACA,kBAAA;EACA,qBAAA;EACA,oBAAA;EACA,wBAAA;EACA,gCAAA;MAAA,4BAAA;EACA,iBAAA;EACA,wBAAA;EACA,+BAAA;EACA,qBAAA;EC6BA,mBAAA;EACA,iBAAA;EACA,yBAAA;EACA,oBAAA;EhB4KA,2BAAA;EACG,wBAAA;EACC,uBAAA;EACI,mBAAA;EL+/ET;AoBvsFG;;;;;;EdrBF,sBAAA;EAEA,4CAAA;EACA,sBAAA;ENmuFD;AoB3sFC;;;EAGE,gBAAA;EACA,uBAAA;EpB6sFH;AoB1sFC;;EAEE,YAAA;EACA,wBAAA;Ef2BF,0DAAA;EACQ,kDAAA;ELkrFT;AoB1sFC;;;EAGE,qBAAA;EACA,sBAAA;EE9CF,eAAA;EAGA,2BAAA;EjB8DA,0BAAA;EACQ,kBAAA;EL4rFT;AoBtsFD;ECrDE,gBAAA;EACA,2BAAA;EACA,uBAAA;ErB8vFD;AqB5vFC;;;;;;EAME,gBAAA;EACA,2BAAA;EACI,uBAAA;ErB8vFP;AqB5vFC;;;EAGE,wBAAA;ErB8vFH;AqBzvFG;;;;;;;;;;;;;;;;;;EAME,2BAAA;EACI,uBAAA;ErBuwFT;AoB/uFD;ECnBI,gBAAA;EACA,2BAAA;ErBqwFH;AoBhvFD;ECxDE,gBAAA;EACA,2BAAA;EACA,uBAAA;ErB2yFD;AqBzyFC;;;;;;EAME,gBAAA;EACA,2BAAA;EACI,uBAAA;ErB2yFP;AqBzyFC;;;EAGE,wBAAA;ErB2yFH;AqBtyFG;;;;;;;;;;;;;;;;;;EAME,2BAAA;EACI,uBAAA;ErBozFT;AoBzxFD;ECtBI,gBAAA;EACA,2BAAA;ErBkzFH;AoBzxFD;EC5DE,gBAAA;EACA,2BAAA;EACA,uBAAA;ErBw1FD;AqBt1FC;;;;;;EAME,gBAAA;EACA,2BAAA;EACI,uBAAA;ErBw1FP;AqBt1FC;;;EAGE,wBAAA;ErBw1FH;AqBn1FG;;;;;;;;;;;;;;;;;;EAME,2BAAA;EACI,uBAAA;ErBi2FT;AoBl0FD;EC1BI,gBAAA;EACA,2BAAA;ErB+1FH;AoBl0FD;EChEE,gBAAA;EACA,2BAAA;EACA,uBAAA;ErBq4FD;AqBn4FC;;;;;;EAME,gBAAA;EACA,2BAAA;EACI,uBAAA;ErBq4FP;AqBn4FC;;;EAGE,wBAAA;ErBq4FH;AqBh4FG;;;;;;;;;;;;;;;;;;EAME,2BAAA;EACI,uBAAA;ErB84FT;AoB32FD;EC9BI,gBAAA;EACA,2BAAA;ErB44FH;AoB32FD;ECpEE,gBAAA;EACA,2BAAA;EACA,uBAAA;ErBk7FD;AqBh7FC;;;;;;EAME,gBAAA;EACA,2BAAA;EACI,uBAAA;ErBk7FP;AqBh7FC;;;EAGE,wBAAA;ErBk7FH;AqB76FG;;;;;;;;;;;;;;;;;;EAME,2BAAA;EACI,uBAAA;ErB27FT;AoBp5FD;EClCI,gBAAA;EACA,2BAAA;ErBy7FH;AoBp5FD;ECxEE,gBAAA;EACA,2BAAA;EACA,uBAAA;ErB+9FD;AqB79FC;;;;;;EAME,gBAAA;EACA,2BAAA;EACI,uBAAA;ErB+9FP;AqB79FC;;;EAGE,wBAAA;ErB+9FH;AqB19FG;;;;;;;;;;;;;;;;;;EAME,2BAAA;EACI,uBAAA;ErBw+FT;AoB77FD;ECtCI,gBAAA;EACA,2BAAA;ErBs+FH;AoBx7FD;EACE,gBAAA;EACA,qBAAA;EACA,kBAAA;EpB07FD;AoBx7FC;;;;;EAKE,+BAAA;Ef7BF,0BAAA;EACQ,kBAAA;ELw9FT;AoBz7FC;;;;EAIE,2BAAA;EpB27FH;AoBz7FC;;EAEE,gBAAA;EACA,4BAAA;EACA,+BAAA;EpB27FH;AoBv7FG;;;;EAEE,gBAAA;EACA,uBAAA;EpB27FL;AoBl7FD;;EC/EE,oBAAA;EACA,iBAAA;EACA,mBAAA;EACA,oBAAA;ErBqgGD;AoBr7FD;;ECnFE,mBAAA;EACA,iBAAA;EACA,kBAAA;EACA,oBAAA;ErB4gGD;AoBx7FD;;ECvFE,kBAAA;EACA,iBAAA;EACA,kBAAA;EACA,oBAAA;ErBmhGD;AoBv7FD;EACE,gBAAA;EACA,aAAA;EpBy7FD;AoBr7FD;EACE,iBAAA;EpBu7FD;AoBh7FC;;;EACE,aAAA;EpBo7FH;AuBxkGD;EACE,YAAA;ElBoLA,0CAAA;EACK,qCAAA;EACG,kCAAA;ELu5FT;AuB3kGC;EACE,YAAA;EvB6kGH;AuBzkGD;EACE,eAAA;EACA,oBAAA;EvB2kGD;AuBzkGC;EAAY,gBAAA;EAAgB,qBAAA;EvB6kG7B;AuB5kGC;EAAY,oBAAA;EvB+kGb;AuB9kGC;EAAY,0BAAA;EvBilGb;AuB9kGD;EACE,oBAAA;EACA,WAAA;EACA,kBAAA;ElBsKA,iDAAA;EACQ,4CAAA;KAAA,yCAAA;EAOR,oCAAA;EACQ,+BAAA;KAAA,4BAAA;EAGR,0CAAA;EACQ,qCAAA;KAAA,kCAAA;ELm6FT;AwB7mGD;EACE,uBAAA;EACA,UAAA;EACA,WAAA;EACA,kBAAA;EACA,wBAAA;EACA,uBAAA;EACA,qCAAA;EACA,oCAAA;ExB+mGD;AwB3mGD;EACE,oBAAA;ExB6mGD;AwBzmGD;EACE,YAAA;ExB2mGD;AwBvmGD;EACE,oBAAA;EACA,WAAA;EACA,SAAA;EACA,eAAA;EACA,eAAA;EACA,aAAA;EACA,kBAAA;EACA,gBAAA;EACA,iBAAA;EACA,kBAAA;EACA,iBAAA;EACA,kBAAA;EACA,2BAAA;EACA,2BAAA;EACA,uCAAA;EACA,oBAAA;EnBwBA,qDAAA;EACQ,6CAAA;EmBvBR,sCAAA;UAAA,8BAAA;ExB0mGD;AwBrmGC;EACE,UAAA;EACA,YAAA;ExBumGH;AwBhoGD;ECvBE,aAAA;EACA,eAAA;EACA,kBAAA;EACA,2BAAA;EzB0pGD;AwBtoGD;EAmCI,gBAAA;EACA,mBAAA;EACA,aAAA;EACA,qBAAA;EACA,yBAAA;EACA,gBAAA;EACA,qBAAA;ExBsmGH;AwBhmGC;;EAEE,uBAAA;EACA,gBAAA;EACA,2BAAA;ExBkmGH;AwB5lGC;;;EAGE,gBAAA;EACA,uBAAA;EACA,YAAA;EACA,2BAAA;ExB8lGH;AwBrlGC;;;EAGE,gBAAA;ExBulGH;AwBnlGC;;EAEE,uBAAA;EACA,+BAAA;EACA,wBAAA;EEzGF,qEAAA;EF2GE,qBAAA;ExBqlGH;AwBhlGD;EAGI,gBAAA;ExBglGH;AwBnlGD;EAQI,YAAA;ExB8kGH;AwBtkGD;EACE,YAAA;EACA,UAAA;ExBwkGD;AwBhkGD;EACE,SAAA;EACA,aAAA;ExBkkGD;AwB9jGD;EACE,gBAAA;EACA,mBAAA;EACA,iBAAA;EACA,yBAAA;EACA,gBAAA;EACA,qBAAA;ExBgkGD;AwB5jGD;EACE,iBAAA;EACA,SAAA;EACA,UAAA;EACA,WAAA;EACA,QAAA;EACA,cAAA;ExB8jGD;AwB1jGD;EACE,UAAA;EACA,YAAA;ExB4jGD;AwBpjGD;;EAII,eAAA;EACA,0BAAA;EACA,aAAA;ExBojGH;AwB1jGD;;EAUI,WAAA;EACA,cAAA;EACA,oBAAA;ExBojGH;AwB/hGD;EAXE;IAnEA,YAAA;IACA,UAAA;IxBinGC;EwB/iGD;IAzDA,SAAA;IACA,aAAA;IxB2mGC;EACF;A2BzvGD;;EAEE,oBAAA;EACA,uBAAA;EACA,wBAAA;E3B2vGD;A2B/vGD;;EAMI,oBAAA;EACA,aAAA;E3B6vGH;A2B3vGG;;;;;;;;EAIE,YAAA;E3BiwGL;A2B/vGG;;EAEE,YAAA;E3BiwGL;A2B3vGD;;;;EAKI,mBAAA;E3B4vGH;A2BvvGD;EACE,mBAAA;E3ByvGD;A2B1vGD;;EAMI,aAAA;E3BwvGH;A2B9vGD;;;EAWI,kBAAA;E3BwvGH;A2BpvGD;EACE,kBAAA;E3BsvGD;A2BlvGD;EACE,gBAAA;E3BovGD;A2BnvGC;ECrDA,+BAAA;EACG,4BAAA;E5B2yGJ;A2BlvGD;;EClDE,8BAAA;EACG,2BAAA;E5BwyGJ;A2BjvGD;EACE,aAAA;E3BmvGD;A2BjvGD;EACE,kBAAA;E3BmvGD;A2BjvGD;;ECtEE,+BAAA;EACG,4BAAA;E5B2zGJ;A2BhvGD;ECpEE,8BAAA;EACG,2BAAA;E5BuzGJ;A2B/uGD;;EAEE,YAAA;E3BivGD;A2BhuGD;EACE,mBAAA;EACA,oBAAA;E3BkuGD;A2BhuGD;EACE,oBAAA;EACA,qBAAA;E3BkuGD;A2B7tGD;EtBlDE,0DAAA;EACQ,kDAAA;ELkxGT;A2B7tGC;EtBtDA,0BAAA;EACQ,kBAAA;ELsxGT;A2B1tGD;EACE,gBAAA;E3B4tGD;A2BztGD;EACE,yBAAA;EACA,wBAAA;E3B2tGD;A2BxtGD;EACE,yBAAA;E3B0tGD;A2BntGD;;;EAII,gBAAA;EACA,aAAA;EACA,aAAA;EACA,iBAAA;E3BotGH;A2B3tGD;EAcM,aAAA;E3BgtGL;A2B9tGD;;;;EAsBI,kBAAA;EACA,gBAAA;E3B8sGH;A2BzsGC;EACE,kBAAA;E3B2sGH;A2BzsGC;EACE,8BAAA;ECvKF,+BAAA;EACC,8BAAA;E5Bm3GF;A2B1sGC;EACE,gCAAA;ECnLF,4BAAA;EACC,2BAAA;E5Bg4GF;A2B1sGD;EACE,kBAAA;E3B4sGD;A2B1sGD;;EClLE,+BAAA;EACC,8BAAA;E5Bg4GF;A2BzsGD;EChME,4BAAA;EACC,2BAAA;E5B44GF;A2BrsGD;EACE,gBAAA;EACA,aAAA;EACA,qBAAA;EACA,2BAAA;E3BusGD;A2B3sGD;;EAOI,aAAA;EACA,qBAAA;EACA,WAAA;E3BwsGH;A2BjtGD;EAYI,aAAA;E3BwsGH;A2BptGD;EAgBI,YAAA;E3BusGH;A2BtrGD;;;;EAKM,oBAAA;EACA,wBAAA;EACA,sBAAA;E3BurGL;A6Bp6GD;EACE,oBAAA;EACA,gBAAA;EACA,2BAAA;E7Bs6GD;A6Bn6GC;EACE,aAAA;EACA,iBAAA;EACA,kBAAA;E7Bq6GH;A6B96GD;EAeI,oBAAA;EACA,YAAA;EAKA,aAAA;EAEA,aAAA;EACA,kBAAA;E7B65GH;A6Bp5GD;;;EV8BE,cAAA;EACA,oBAAA;EACA,iBAAA;EACA,mBAAA;EACA,oBAAA;EnB23GD;AmBz3GC;;;EACE,cAAA;EACA,mBAAA;EnB63GH;AmB13GC;;;;;;EAEE,cAAA;EnBg4GH;A6Bt6GD;;;EVyBE,cAAA;EACA,mBAAA;EACA,iBAAA;EACA,kBAAA;EACA,oBAAA;EnBk5GD;AmBh5GC;;;EACE,cAAA;EACA,mBAAA;EnBo5GH;AmBj5GC;;;;;;EAEE,cAAA;EnBu5GH;A6Bp7GD;;;EAGE,qBAAA;E7Bs7GD;A6Bp7GC;;;EACE,kBAAA;E7Bw7GH;A6Bp7GD;;EAEE,WAAA;EACA,qBAAA;EACA,wBAAA;E7Bs7GD;A6Bj7GD;EACE,mBAAA;EACA,iBAAA;EACA,qBAAA;EACA,gBAAA;EACA,gBAAA;EACA,oBAAA;EACA,2BAAA;EACA,2BAAA;EACA,oBAAA;E7Bm7GD;A6Bh7GC;EACE,mBAAA;EACA,iBAAA;EACA,oBAAA;E7Bk7GH;A6Bh7GC;EACE,oBAAA;EACA,iBAAA;EACA,oBAAA;E7Bk7GH;A6Bt8GD;;EA0BI,eAAA;E7Bg7GH;A6B36GD;;;;;;;EDhGE,+BAAA;EACG,4BAAA;E5BohHJ;A6B56GD;EACE,iBAAA;E7B86GD;A6B56GD;;;;;;;EDpGE,8BAAA;EACG,2BAAA;E5ByhHJ;A6B76GD;EACE,gBAAA;E7B+6GD;A6B16GD;EACE,oBAAA;EAGA,cAAA;EACA,qBAAA;E7B06GD;A6B/6GD;EAUI,oBAAA;E7Bw6GH;A6Bl7GD;EAYM,mBAAA;E7By6GL;A6Bt6GG;;;EAGE,YAAA;E7Bw6GL;A6Bn6GC;;EAGI,oBAAA;E7Bo6GL;A6Bj6GC;;EAGI,mBAAA;E7Bk6GL;A8B5jHD;EACE,kBAAA;EACA,iBAAA;EACA,kBAAA;E9B8jHD;A8BjkHD;EAOI,oBAAA;EACA,gBAAA;E9B6jHH;A8BrkHD;EAWM,oBAAA;EACA,gBAAA;EACA,oBAAA;E9B6jHL;A8B5jHK;;EAEE,uBAAA;EACA,2BAAA;E9B8jHP;A8BzjHG;EACE,gBAAA;E9B2jHL;A8BzjHK;;EAEE,gBAAA;EACA,uBAAA;EACA,+BAAA;EACA,qBAAA;E9B2jHP;A8BpjHG;;;EAGE,2BAAA;EACA,uBAAA;E9BsjHL;A8B/lHD;ELHE,aAAA;EACA,eAAA;EACA,kBAAA;EACA,2BAAA;EzBqmHD;A8BrmHD;EA0DI,iBAAA;E9B8iHH;A8BriHD;EACE,kCAAA;E9BuiHD;A8BxiHD;EAGI,aAAA;EAEA,qBAAA;E9BuiHH;A8B5iHD;EASM,mBAAA;EACA,yBAAA;EACA,+BAAA;EACA,4BAAA;E9BsiHL;A8BriHK;EACE,uCAAA;E9BuiHP;A8BjiHK;;;EAGE,gBAAA;EACA,2BAAA;EACA,2BAAA;EACA,kCAAA;EACA,iBAAA;E9BmiHP;A8B9hHC;EAqDA,aAAA;EA8BA,kBAAA;E9B+8GD;A8BliHC;EAwDE,aAAA;E9B6+GH;A8BriHC;EA0DI,oBAAA;EACA,oBAAA;E9B8+GL;A8BziHC;EAgEE,WAAA;EACA,YAAA;E9B4+GH;A8Bh+GD;EAAA;IAPM,qBAAA;IACA,WAAA;I9B2+GH;E8Br+GH;IAJQ,kBAAA;I9B4+GL;EACF;A8BtjHC;EAuFE,iBAAA;EACA,oBAAA;E9Bk+GH;A8B1jHC;;;EA8FE,2BAAA;E9Bi+GH;A8Bn9GD;EAAA;IATM,kCAAA;IACA,4BAAA;I9Bg+GH;E8Bx9GH;;;IAHM,8BAAA;I9Bg+GH;EACF;A8BjkHD;EAEI,aAAA;E9BkkHH;A8BpkHD;EAMM,oBAAA;E9BikHL;A8BvkHD;EASM,kBAAA;E9BikHL;A8B5jHK;;;EAGE,gBAAA;EACA,2BAAA;E9B8jHP;A8BtjHD;EAEI,aAAA;E9BujHH;A8BzjHD;EAIM,iBAAA;EACA,gBAAA;E9BwjHL;A8B5iHD;EACE,aAAA;E9B8iHD;A8B/iHD;EAII,aAAA;E9B8iHH;A8BljHD;EAMM,oBAAA;EACA,oBAAA;E9B+iHL;A8BtjHD;EAYI,WAAA;EACA,YAAA;E9B6iHH;A8BjiHD;EAAA;IAPM,qBAAA;IACA,WAAA;I9B4iHH;E8BtiHH;IAJQ,kBAAA;I9B6iHL;EACF;A8BriHD;EACE,kBAAA;E9BuiHD;A8BxiHD;EAKI,iBAAA;EACA,oBAAA;E9BsiHH;A8B5iHD;;;EAYI,2BAAA;E9BqiHH;A8BvhHD;EAAA;IATM,kCAAA;IACA,4BAAA;I9BoiHH;E8B5hHH;;;IAHM,8BAAA;I9BoiHH;EACF;A8B3hHD;EAEI,eAAA;EACA,oBAAA;E9B4hHH;A8B/hHD;EAMI,gBAAA;EACA,qBAAA;E9B4hHH;A8BnhHD;EAEE,kBAAA;EF7OA,4BAAA;EACC,2BAAA;E5BkwHF;A+B5vHD;EACE,oBAAA;EACA,kBAAA;EACA,qBAAA;EACA,+BAAA;E/B8vHD;A+BtvHD;EAAA;IAFI,oBAAA;I/B4vHD;EACF;A+B7uHD;EAAA;IAFI,aAAA;I/BmvHD;EACF;A+BruHD;EACE,qBAAA;EACA,qBAAA;EACA,oBAAA;EACA,mCAAA;EACA,4DAAA;UAAA,oDAAA;EAEA,mCAAA;E/BsuHD;A+BpuHC;EACE,kBAAA;E/BsuHH;A+BzsHD;EAAA;IAzBI,aAAA;IACA,eAAA;IACA,0BAAA;YAAA,kBAAA;I/BsuHD;E+BpuHC;IACE,2BAAA;IACA,gCAAA;IACA,yBAAA;IACA,mBAAA;IACA,8BAAA;I/BsuHH;E+BnuHC;IACE,qBAAA;I/BquHH;E+BhuHC;;;IAGE,iBAAA;IACA,kBAAA;I/BkuHH;EACF;A+B9tHD;;EAGI,mBAAA;E/B+tHH;A+B1tHC;EAAA;;IAFI,mBAAA;I/BiuHH;EACF;A+BxtHD;;;;EAII,qBAAA;EACA,oBAAA;E/B0tHH;A+BptHC;EAAA;;;;IAHI,iBAAA;IACA,gBAAA;I/B8tHH;EACF;A+BltHD;EACE,eAAA;EACA,uBAAA;E/BotHD;A+B/sHD;EAAA;IAFI,kBAAA;I/BqtHD;EACF;A+BjtHD;;EAEE,iBAAA;EACA,UAAA;EACA,SAAA;EACA,eAAA;E/BmtHD;A+B7sHD;EAAA;;IAFI,kBAAA;I/BotHD;EACF;A+BltHD;EACE,QAAA;EACA,uBAAA;E/BotHD;A+BltHD;EACE,WAAA;EACA,kBAAA;EACA,uBAAA;E/BotHD;A+B9sHD;EACE,aAAA;EACA,oBAAA;EACA,iBAAA;EACA,mBAAA;EACA,cAAA;E/BgtHD;A+B9sHC;;EAEE,uBAAA;E/BgtHH;A+BztHD;EAaI,gBAAA;E/B+sHH;A+BtsHD;EALI;;IAEE,oBAAA;I/B8sHH;EACF;A+BpsHD;EACE,oBAAA;EACA,cAAA;EACA,oBAAA;EACA,mBAAA;EC/LA,iBAAA;EACA,oBAAA;EDgMA,+BAAA;EACA,wBAAA;EACA,+BAAA;EACA,oBAAA;E/BusHD;A+BnsHC;EACE,YAAA;E/BqsHH;A+BntHD;EAmBI,gBAAA;EACA,aAAA;EACA,aAAA;EACA,oBAAA;E/BmsHH;A+BztHD;EAyBI,iBAAA;E/BmsHH;A+B7rHD;EAAA;IAFI,eAAA;I/BmsHD;EACF;A+B1rHD;EACE,qBAAA;E/B4rHD;A+B7rHD;EAII,mBAAA;EACA,sBAAA;EACA,mBAAA;E/B4rHH;A+BjqHC;EAAA;IArBI,kBAAA;IACA,aAAA;IACA,aAAA;IACA,eAAA;IACA,+BAAA;IACA,WAAA;IACA,0BAAA;YAAA,kBAAA;I/B0rHH;E+B3qHD;;IAZM,4BAAA;I/B2rHL;E+B/qHD;IATM,mBAAA;I/B2rHL;E+B1rHK;;IAEE,wBAAA;I/B4rHP;EACF;A+B1qHD;EAAA;IAXI,aAAA;IACA,WAAA;I/ByrHD;E+B/qHH;IAPM,aAAA;I/ByrHH;E+BlrHH;IALQ,mBAAA;IACA,sBAAA;I/B0rHL;EACF;A+B/qHD;EACE,oBAAA;EACA,qBAAA;EACA,oBAAA;EACA,mCAAA;EACA,sCAAA;E1B/NA,8FAAA;EACQ,sFAAA;E2B/DR,iBAAA;EACA,oBAAA;EhCi9HD;AkB/+GD;EAAA;IA/DM,uBAAA;IACA,kBAAA;IACA,wBAAA;IlBkjHH;EkBr/GH;IAxDM,uBAAA;IACA,aAAA;IACA,wBAAA;IlBgjHH;EkB1/GH;IAjDM,uBAAA;IlB8iHH;EkB7/GH;IA7CM,uBAAA;IACA,wBAAA;IlB6iHH;EkBjgHH;;;IAvCQ,aAAA;IlB6iHL;EkBtgHH;IAjCM,aAAA;IlB0iHH;EkBzgHH;IA7BM,kBAAA;IACA,wBAAA;IlByiHH;EkB7gHH;;IApBM,uBAAA;IACA,eAAA;IACA,kBAAA;IACA,wBAAA;IlBqiHH;EkBphHH;;IAdQ,iBAAA;IlBsiHL;EkBxhHH;;IATM,oBAAA;IACA,gBAAA;IlBqiHH;EkB7hHH;IAHM,QAAA;IlBmiHH;EACF;A+BxtHC;EAAA;IANI,oBAAA;I/BkuHH;E+BhuHG;IACE,kBAAA;I/BkuHL;EACF;A+BjtHD;EAAA;IARI,aAAA;IACA,WAAA;IACA,gBAAA;IACA,iBAAA;IACA,gBAAA;IACA,mBAAA;I1B1PF,0BAAA;IACQ,kBAAA;ILw9HP;EACF;A+BvtHD;EACE,eAAA;EHrUA,4BAAA;EACC,2BAAA;E5B+hIF;A+BvtHD;EHjUE,+BAAA;EACC,8BAAA;E5B2hIF;A+BltHD;EC/UE,iBAAA;EACA,oBAAA;EhCoiID;A+BntHC;EClVA,kBAAA;EACA,qBAAA;EhCwiID;A+BptHC;ECrVA,kBAAA;EACA,qBAAA;EhC4iID;A+B9sHD;EC/VE,kBAAA;EACA,qBAAA;EhCgjID;A+B1sHD;EAAA;IAJI,aAAA;IACA,mBAAA;IACA,oBAAA;I/BktHD;EACF;A+BzrHD;EAZE;IEvWA,wBAAA;IjCgjIC;E+BxsHD;IE3WA,yBAAA;IF6WE,qBAAA;I/B0sHD;E+B5sHD;IAKI,iBAAA;I/B0sHH;EACF;A+BjsHD;EACE,2BAAA;EACA,uBAAA;E/BmsHD;A+BrsHD;EAKI,gBAAA;E/BmsHH;A+BlsHG;;EAEE,gBAAA;EACA,+BAAA;E/BosHL;A+B7sHD;EAcI,gBAAA;E/BksHH;A+BhtHD;EAmBM,gBAAA;E/BgsHL;A+B9rHK;;EAEE,gBAAA;EACA,+BAAA;E/BgsHP;A+B5rHK;;;EAGE,gBAAA;EACA,2BAAA;E/B8rHP;A+B1rHK;;;EAGE,gBAAA;EACA,+BAAA;E/B4rHP;A+BpuHD;EA8CI,uBAAA;E/ByrHH;A+BxrHG;;EAEE,2BAAA;E/B0rHL;A+B3uHD;EAoDM,2BAAA;E/B0rHL;A+B9uHD;;EA0DI,uBAAA;E/BwrHH;A+BjrHK;;;EAGE,2BAAA;EACA,gBAAA;E/BmrHP;A+BlpHC;EAAA;IAzBQ,gBAAA;I/B+qHP;E+B9qHO;;IAEE,gBAAA;IACA,+BAAA;I/BgrHT;E+B5qHO;;;IAGE,gBAAA;IACA,2BAAA;I/B8qHT;E+B1qHO;;;IAGE,gBAAA;IACA,+BAAA;I/B4qHT;EACF;A+B9wHD;EA8GI,gBAAA;E/BmqHH;A+BlqHG;EACE,gBAAA;E/BoqHL;A+BpxHD;EAqHI,gBAAA;E/BkqHH;A+BjqHG;;EAEE,gBAAA;E/BmqHL;A+B/pHK;;;;EAEE,gBAAA;E/BmqHP;A+B3pHD;EACE,2BAAA;EACA,uBAAA;E/B6pHD;A+B/pHD;EAKI,gBAAA;E/B6pHH;A+B5pHG;;EAEE,gBAAA;EACA,+BAAA;E/B8pHL;A+BvqHD;EAcI,gBAAA;E/B4pHH;A+B1qHD;EAmBM,gBAAA;E/B0pHL;A+BxpHK;;EAEE,gBAAA;EACA,+BAAA;E/B0pHP;A+BtpHK;;;EAGE,gBAAA;EACA,2BAAA;E/BwpHP;A+BppHK;;;EAGE,gBAAA;EACA,+BAAA;E/BspHP;A+B9rHD;EA+CI,uBAAA;E/BkpHH;A+BjpHG;;EAEE,2BAAA;E/BmpHL;A+BrsHD;EAqDM,2BAAA;E/BmpHL;A+BxsHD;;EA2DI,uBAAA;E/BipHH;A+B3oHK;;;EAGE,2BAAA;EACA,gBAAA;E/B6oHP;A+BtmHC;EAAA;IA/BQ,uBAAA;I/ByoHP;E+B1mHD;IA5BQ,2BAAA;I/ByoHP;E+B7mHD;IAzBQ,gBAAA;I/ByoHP;E+BxoHO;;IAEE,gBAAA;IACA,+BAAA;I/B0oHT;E+BtoHO;;;IAGE,gBAAA;IACA,2BAAA;I/BwoHT;E+BpoHO;;;IAGE,gBAAA;IACA,+BAAA;I/BsoHT;EACF;A+B9uHD;EA+GI,gBAAA;E/BkoHH;A+BjoHG;EACE,gBAAA;E/BmoHL;A+BpvHD;EAsHI,gBAAA;E/BioHH;A+BhoHG;;EAEE,gBAAA;E/BkoHL;A+B9nHK;;;;EAEE,gBAAA;E/BkoHP;AkC3wID;EACE,mBAAA;EACA,qBAAA;EACA,kBAAA;EACA,2BAAA;EACA,oBAAA;ElC6wID;AkClxID;EAQI,uBAAA;ElC6wIH;AkCrxID;EAWM,mBAAA;EACA,gBAAA;EACA,gBAAA;ElC6wIL;AkC1xID;EAkBI,gBAAA;ElC2wIH;AmC/xID;EACE,uBAAA;EACA,iBAAA;EACA,gBAAA;EACA,oBAAA;EnCiyID;AmCryID;EAOI,iBAAA;EnCiyIH;AmCxyID;;EAUM,oBAAA;EACA,aAAA;EACA,mBAAA;EACA,yBAAA;EACA,uBAAA;EACA,gBAAA;EACA,2BAAA;EACA,2BAAA;EACA,mBAAA;EnCkyIL;AmChyIG;;EAGI,gBAAA;EPXN,gCAAA;EACG,6BAAA;E5B6yIJ;AmC/xIG;;EPvBF,iCAAA;EACG,8BAAA;E5B0zIJ;AmC1xIG;;;;EAEE,gBAAA;EACA,2BAAA;EACA,uBAAA;EnC8xIL;AmCxxIG;;;;;;EAGE,YAAA;EACA,gBAAA;EACA,2BAAA;EACA,uBAAA;EACA,iBAAA;EnC6xIL;AmCn1ID;;;;;;EAiEM,gBAAA;EACA,2BAAA;EACA,uBAAA;EACA,qBAAA;EnC0xIL;AmCjxID;;EC1EM,oBAAA;EACA,iBAAA;EpC+1IL;AoC71IG;;ERMF,gCAAA;EACG,6BAAA;E5B21IJ;AoC51IG;;ERRF,iCAAA;EACG,8BAAA;E5Bw2IJ;AmC3xID;;EC/EM,mBAAA;EACA,iBAAA;EpC82IL;AoC52IG;;ERMF,gCAAA;EACG,6BAAA;E5B02IJ;AoC32IG;;ERRF,iCAAA;EACG,8BAAA;E5Bu3IJ;AqC13ID;EACE,iBAAA;EACA,gBAAA;EACA,kBAAA;EACA,oBAAA;ErC43ID;AqCh4ID;EAOI,iBAAA;ErC43IH;AqCn4ID;;EAUM,uBAAA;EACA,mBAAA;EACA,2BAAA;EACA,2BAAA;EACA,qBAAA;ErC63IL;AqC34ID;;EAmBM,uBAAA;EACA,2BAAA;ErC43IL;AqCh5ID;;EA2BM,cAAA;ErCy3IL;AqCp5ID;;EAkCM,aAAA;ErCs3IL;AqCx5ID;;;;EA2CM,gBAAA;EACA,2BAAA;EACA,qBAAA;ErCm3IL;AsCj6ID;EACE,iBAAA;EACA,yBAAA;EACA,gBAAA;EACA,mBAAA;EACA,gBAAA;EACA,gBAAA;EACA,oBAAA;EACA,qBAAA;EACA,0BAAA;EACA,sBAAA;EtCm6ID;AsC/5IG;;EAEE,gBAAA;EACA,uBAAA;EACA,iBAAA;EtCi6IL;AsC55IC;EACE,eAAA;EtC85IH;AsC15IC;EACE,oBAAA;EACA,WAAA;EtC45IH;AsCr5ID;ECtCE,2BAAA;EvC87ID;AuC37IG;;EAEE,2BAAA;EvC67IL;AsCx5ID;EC1CE,2BAAA;EvCq8ID;AuCl8IG;;EAEE,2BAAA;EvCo8IL;AsC35ID;EC9CE,2BAAA;EvC48ID;AuCz8IG;;EAEE,2BAAA;EvC28IL;AsC95ID;EClDE,2BAAA;EvCm9ID;AuCh9IG;;EAEE,2BAAA;EvCk9IL;AsCj6ID;ECtDE,2BAAA;EvC09ID;AuCv9IG;;EAEE,2BAAA;EvCy9IL;AsCp6ID;EC1DE,2BAAA;EvCi+ID;AuC99IG;;EAEE,2BAAA;EvCg+IL;AwCl+ID;EACE,uBAAA;EACA,iBAAA;EACA,kBAAA;EACA,iBAAA;EACA,mBAAA;EACA,gBAAA;EACA,gBAAA;EACA,0BAAA;EACA,qBAAA;EACA,oBAAA;EACA,2BAAA;EACA,qBAAA;ExCo+ID;AwCj+IC;EACE,eAAA;ExCm+IH;AwC/9IC;EACE,oBAAA;EACA,WAAA;ExCi+IH;AwC/9IC;EACE,QAAA;EACA,kBAAA;ExCi+IH;AwC59IG;;EAEE,gBAAA;EACA,uBAAA;EACA,iBAAA;ExC89IL;AwCz9IC;;EAEE,gBAAA;EACA,2BAAA;ExC29IH;AwCz9IC;EACE,kBAAA;ExC29IH;AyC1gJD;EACE,oBAAA;EACA,qBAAA;EACA,gBAAA;EACA,2BAAA;EzC4gJD;AyChhJD;;EAQI,gBAAA;EzC4gJH;AyCphJD;EAWI,qBAAA;EACA,iBAAA;EACA,kBAAA;EzC4gJH;AyCzhJD;EAiBI,2BAAA;EzC2gJH;AyCxgJC;;EAEE,oBAAA;EzC0gJH;AyChiJD;EA0BI,iBAAA;EzCygJH;AyCz/ID;EAAA;IAZI,iBAAA;IzCygJD;EyCvgJC;IACE,oBAAA;IACA,qBAAA;IzCygJH;EyCjgJH;;IAHM,iBAAA;IzCwgJH;EACF;A0C/iJD;EACE,gBAAA;EACA,cAAA;EACA,qBAAA;EACA,yBAAA;EACA,2BAAA;EACA,2BAAA;EACA,oBAAA;ErCiLA,6CAAA;EACK,wCAAA;EACG,qCAAA;ELi4IT;A0C3jJD;;EAaI,mBAAA;EACA,oBAAA;E1CkjJH;A0C9iJC;;;EAGE,uBAAA;E1CgjJH;A0CrkJD;EA0BI,cAAA;EACA,gBAAA;E1C8iJH;A2CvkJD;EACE,eAAA;EACA,qBAAA;EACA,+BAAA;EACA,oBAAA;E3CykJD;A2C7kJD;EAQI,eAAA;EAEA,gBAAA;E3CukJH;A2CjlJD;EAcI,mBAAA;E3CskJH;A2CplJD;;EAoBI,kBAAA;E3CokJH;A2CxlJD;EAuBI,iBAAA;E3CokJH;A2C5jJD;;EAEE,qBAAA;E3C8jJD;A2ChkJD;;EAMI,oBAAA;EACA,WAAA;EACA,cAAA;EACA,gBAAA;E3C8jJH;A2CtjJD;ECrDE,2BAAA;EACA,uBAAA;EACA,gBAAA;E5C8mJD;A2C3jJD;EChDI,2BAAA;E5C8mJH;A2C9jJD;EC7CI,gBAAA;E5C8mJH;A2C9jJD;ECxDE,2BAAA;EACA,uBAAA;EACA,gBAAA;E5CynJD;A2CnkJD;ECnDI,2BAAA;E5CynJH;A2CtkJD;EChDI,gBAAA;E5CynJH;A2CtkJD;EC3DE,2BAAA;EACA,uBAAA;EACA,gBAAA;E5CooJD;A2C3kJD;ECtDI,2BAAA;E5CooJH;A2C9kJD;ECnDI,gBAAA;E5CooJH;A2C9kJD;EC9DE,2BAAA;EACA,uBAAA;EACA,gBAAA;E5C+oJD;A2CnlJD;ECzDI,2BAAA;E5C+oJH;A2CtlJD;ECtDI,gBAAA;E5C+oJH;A6CjpJD;EACE;IAAQ,6BAAA;I7CopJP;E6CnpJD;IAAQ,0BAAA;I7CspJP;EACF;A6CnpJD;EACE;IAAQ,6BAAA;I7CspJP;E6CrpJD;IAAQ,0BAAA;I7CwpJP;EACF;A6C3pJD;EACE;IAAQ,6BAAA;I7CspJP;E6CrpJD;IAAQ,0BAAA;I7CwpJP;EACF;A6CjpJD;EACE,kBAAA;EACA,cAAA;EACA,qBAAA;EACA,2BAAA;EACA,oBAAA;ExCsCA,wDAAA;EACQ,gDAAA;EL8mJT;A6ChpJD;EACE,aAAA;EACA,WAAA;EACA,cAAA;EACA,iBAAA;EACA,mBAAA;EACA,gBAAA;EACA,oBAAA;EACA,2BAAA;ExCyBA,wDAAA;EACQ,gDAAA;EAyHR,qCAAA;EACK,gCAAA;EACG,6BAAA;ELkgJT;A6C7oJD;;ECCI,+MAAA;EACA,0MAAA;EACA,uMAAA;EDAF,oCAAA;UAAA,4BAAA;E7CipJD;A6C1oJD;;ExC5CE,4DAAA;EACK,uDAAA;EACG,oDAAA;EL0rJT;A6CvoJD;EErEE,2BAAA;E/C+sJD;A+C5sJC;EDgDE,+MAAA;EACA,0MAAA;EACA,uMAAA;E9C+pJH;A6C3oJD;EEzEE,2BAAA;E/CutJD;A+CptJC;EDgDE,+MAAA;EACA,0MAAA;EACA,uMAAA;E9CuqJH;A6C/oJD;EE7EE,2BAAA;E/C+tJD;A+C5tJC;EDgDE,+MAAA;EACA,0MAAA;EACA,uMAAA;E9C+qJH;A6CnpJD;EEjFE,2BAAA;E/CuuJD;A+CpuJC;EDgDE,+MAAA;EACA,0MAAA;EACA,uMAAA;E9CurJH;AgD/uJD;EAEE,kBAAA;EhDgvJD;AgD9uJC;EACE,eAAA;EhDgvJH;AgD5uJD;;EAEE,oBAAA;EhD8uJD;AgD3uJD;;EAEE,qBAAA;EhD6uJD;AgD1uJD;;;EAGE,qBAAA;EACA,qBAAA;EhD4uJD;AgDzuJD;EACE,wBAAA;EhD2uJD;AgDxuJD;EACE,wBAAA;EhD0uJD;AgDtuJD;EACE,eAAA;EACA,oBAAA;EhDwuJD;AgDluJD;EACE,iBAAA;EACA,kBAAA;EhDouJD;AiDxwJD;EAEE,qBAAA;EACA,iBAAA;EjDywJD;AiDjwJD;EACE,oBAAA;EACA,gBAAA;EACA,oBAAA;EAEA,qBAAA;EACA,2BAAA;EACA,2BAAA;EjDkwJD;AiD/vJC;ErB3BA,8BAAA;EACC,6BAAA;E5B6xJF;AiDhwJC;EACE,kBAAA;ErBvBF,iCAAA;EACC,gCAAA;E5B0xJF;AiDlxJD;EAoBI,cAAA;EjDiwJH;AiDrxJD;EAuBI,mBAAA;EjDiwJH;AiDvvJD;EACE,gBAAA;EjDyvJD;AiD1vJD;EAII,gBAAA;EjDyvJH;AiDrvJC;;EAEE,uBAAA;EACA,gBAAA;EACA,2BAAA;EjDuvJH;AiDjvJC;;;EAGE,2BAAA;EACA,gBAAA;EACA,qBAAA;EjDmvJH;AiDxvJC;;;EASI,gBAAA;EjDovJL;AiD7vJC;;;EAYI,gBAAA;EjDsvJL;AiDjvJC;;;EAGE,YAAA;EACA,gBAAA;EACA,2BAAA;EACA,uBAAA;EjDmvJH;AiDzvJC;;;;;;;;;EAYI,gBAAA;EjDwvJL;AiDpwJC;;;EAeI,gBAAA;EjD0vJL;AkD91JC;EACE,gBAAA;EACA,2BAAA;ElDg2JH;AkD91JG;EACE,gBAAA;ElDg2JL;AkDj2JG;EAII,gBAAA;ElDg2JP;AkD71JK;;EAEE,gBAAA;EACA,2BAAA;ElD+1JP;AkD71JK;;;EAGE,aAAA;EACA,2BAAA;EACA,uBAAA;ElD+1JP;AkDp3JC;EACE,gBAAA;EACA,2BAAA;ElDs3JH;AkDp3JG;EACE,gBAAA;ElDs3JL;AkDv3JG;EAII,gBAAA;ElDs3JP;AkDn3JK;;EAEE,gBAAA;EACA,2BAAA;ElDq3JP;AkDn3JK;;;EAGE,aAAA;EACA,2BAAA;EACA,uBAAA;ElDq3JP;AkD14JC;EACE,gBAAA;EACA,2BAAA;ElD44JH;AkD14JG;EACE,gBAAA;ElD44JL;AkD74JG;EAII,gBAAA;ElD44JP;AkDz4JK;;EAEE,gBAAA;EACA,2BAAA;ElD24JP;AkDz4JK;;;EAGE,aAAA;EACA,2BAAA;EACA,uBAAA;ElD24JP;AkDh6JC;EACE,gBAAA;EACA,2BAAA;ElDk6JH;AkDh6JG;EACE,gBAAA;ElDk6JL;AkDn6JG;EAII,gBAAA;ElDk6JP;AkD/5JK;;EAEE,gBAAA;EACA,2BAAA;ElDi6JP;AkD/5JK;;;EAGE,aAAA;EACA,2BAAA;EACA,uBAAA;ElDi6JP;AiD7zJD;EACE,eAAA;EACA,oBAAA;EjD+zJD;AiD7zJD;EACE,kBAAA;EACA,kBAAA;EjD+zJD;AmD37JD;EACE,qBAAA;EACA,2BAAA;EACA,+BAAA;EACA,oBAAA;E9C0DA,mDAAA;EACQ,2CAAA;ELo4JT;AmD17JD;EACE,eAAA;EnD47JD;AmDv7JD;EACE,oBAAA;EACA,sCAAA;EvBpBA,8BAAA;EACC,6BAAA;E5B88JF;AmD77JD;EAMI,gBAAA;EnD07JH;AmDr7JD;EACE,eAAA;EACA,kBAAA;EACA,iBAAA;EACA,gBAAA;EnDu7JD;AmD37JD;EAOI,gBAAA;EnDu7JH;AmDl7JD;EACE,oBAAA;EACA,2BAAA;EACA,+BAAA;EvBpCA,iCAAA;EACC,gCAAA;E5By9JF;AmD56JD;;EAGI,kBAAA;EnD66JH;AmDh7JD;;EAMM,qBAAA;EACA,kBAAA;EnD86JL;AmD16JG;;EAEI,eAAA;EvBnEN,8BAAA;EACC,6BAAA;E5Bg/JF;AmDz6JG;;EAEI,kBAAA;EvBlEN,iCAAA;EACC,gCAAA;E5B8+JF;AmDt6JD;EAEI,qBAAA;EnDu6JH;AmDp6JD;EACE,qBAAA;EnDs6JD;AmD95JD;;;EAII,kBAAA;EnD+5JH;AmDn6JD;;;EAOM,oBAAA;EACA,qBAAA;EnDi6JL;AmDz6JD;;EvB/FE,8BAAA;EACC,6BAAA;E5B4gKF;AmD96JD;;;;EAmBQ,6BAAA;EACA,8BAAA;EnDi6JP;AmDr7JD;;;;;;;;EAwBU,6BAAA;EnDu6JT;AmD/7JD;;;;;;;;EA4BU,8BAAA;EnD66JT;AmDz8JD;;EvBvFE,iCAAA;EACC,gCAAA;E5BoiKF;AmD98JD;;;;EAyCQ,gCAAA;EACA,iCAAA;EnD26JP;AmDr9JD;;;;;;;;EA8CU,gCAAA;EnDi7JT;AmD/9JD;;;;;;;;EAkDU,iCAAA;EnDu7JT;AmDz+JD;;;;EA2DI,+BAAA;EnDo7JH;AmD/+JD;;EA+DI,eAAA;EnDo7JH;AmDn/JD;;EAmEI,WAAA;EnDo7JH;AmDv/JD;;;;;;;;;;;;EA0EU,gBAAA;EnD27JT;AmDrgKD;;;;;;;;;;;;EA8EU,iBAAA;EnDq8JT;AmDnhKD;;;;;;;;EAuFU,kBAAA;EnDs8JT;AmD7hKD;;;;;;;;EAgGU,kBAAA;EnDu8JT;AmDviKD;EAsGI,WAAA;EACA,kBAAA;EnDo8JH;AmD17JD;EACE,qBAAA;EnD47JD;AmD77JD;EAKI,kBAAA;EACA,oBAAA;EnD27JH;AmDj8JD;EASM,iBAAA;EnD27JL;AmDp8JD;EAcI,kBAAA;EnDy7JH;AmDv8JD;;EAkBM,+BAAA;EnDy7JL;AmD38JD;EAuBI,eAAA;EnDu7JH;AmD98JD;EAyBM,kCAAA;EnDw7JL;AmDj7JD;EChPE,uBAAA;EpDoqKD;AoDlqKC;EACE,gBAAA;EACA,2BAAA;EACA,uBAAA;EpDoqKH;AoDvqKC;EAMI,2BAAA;EpDoqKL;AoD1qKC;EASI,gBAAA;EACA,2BAAA;EpDoqKL;AoDjqKC;EAEI,8BAAA;EpDkqKL;AmDh8JD;ECnPE,uBAAA;EpDsrKD;AoDprKC;EACE,gBAAA;EACA,2BAAA;EACA,uBAAA;EpDsrKH;AoDzrKC;EAMI,2BAAA;EpDsrKL;AoD5rKC;EASI,gBAAA;EACA,2BAAA;EpDsrKL;AoDnrKC;EAEI,8BAAA;EpDorKL;AmD/8JD;ECtPE,uBAAA;EpDwsKD;AoDtsKC;EACE,gBAAA;EACA,2BAAA;EACA,uBAAA;EpDwsKH;AoD3sKC;EAMI,2BAAA;EpDwsKL;AoD9sKC;EASI,gBAAA;EACA,2BAAA;EpDwsKL;AoDrsKC;EAEI,8BAAA;EpDssKL;AmD99JD;ECzPE,uBAAA;EpD0tKD;AoDxtKC;EACE,gBAAA;EACA,2BAAA;EACA,uBAAA;EpD0tKH;AoD7tKC;EAMI,2BAAA;EpD0tKL;AoDhuKC;EASI,gBAAA;EACA,2BAAA;EpD0tKL;AoDvtKC;EAEI,8BAAA;EpDwtKL;AmD7+JD;EC5PE,uBAAA;EpD4uKD;AoD1uKC;EACE,gBAAA;EACA,2BAAA;EACA,uBAAA;EpD4uKH;AoD/uKC;EAMI,2BAAA;EpD4uKL;AoDlvKC;EASI,gBAAA;EACA,2BAAA;EpD4uKL;AoDzuKC;EAEI,8BAAA;EpD0uKL;AmD5/JD;EC/PE,uBAAA;EpD8vKD;AoD5vKC;EACE,gBAAA;EACA,2BAAA;EACA,uBAAA;EpD8vKH;AoDjwKC;EAMI,2BAAA;EpD8vKL;AoDpwKC;EASI,gBAAA;EACA,2BAAA;EpD8vKL;AoD3vKC;EAEI,8BAAA;EpD4vKL;AqD5wKD;EACE,oBAAA;EACA,gBAAA;EACA,WAAA;EACA,YAAA;EACA,kBAAA;ErD8wKD;AqDnxKD;;;;;EAYI,oBAAA;EACA,QAAA;EACA,SAAA;EACA,WAAA;EACA,cAAA;EACA,aAAA;EACA,WAAA;ErD8wKH;AqD1wKC;EACE,wBAAA;ErD4wKH;AqDxwKC;EACE,qBAAA;ErD0wKH;AsDpyKD;EACE,kBAAA;EACA,eAAA;EACA,qBAAA;EACA,2BAAA;EACA,2BAAA;EACA,oBAAA;EjDwDA,yDAAA;EACQ,iDAAA;EL+uKT;AsD9yKD;EASI,oBAAA;EACA,mCAAA;EtDwyKH;AsDnyKD;EACE,eAAA;EACA,oBAAA;EtDqyKD;AsDnyKD;EACE,cAAA;EACA,oBAAA;EtDqyKD;AuD3zKD;EACE,cAAA;EACA,iBAAA;EACA,mBAAA;EACA,gBAAA;EACA,gBAAA;EACA,8BAAA;EjCRA,cAAA;EAGA,2BAAA;EtBo0KD;AuD5zKC;;EAEE,gBAAA;EACA,uBAAA;EACA,iBAAA;EjCfF,cAAA;EAGA,2BAAA;EtB40KD;AuDzzKC;EACE,YAAA;EACA,iBAAA;EACA,yBAAA;EACA,WAAA;EACA,0BAAA;EvD2zKH;AwD/0KD;EACE,kBAAA;ExDi1KD;AwD70KD;EACE,eAAA;EACA,kBAAA;EACA,iBAAA;EACA,QAAA;EACA,UAAA;EACA,WAAA;EACA,SAAA;EACA,eAAA;EACA,mCAAA;EAIA,YAAA;ExD40KD;AwDz0KC;EnD+GA,uCAAA;EACI,mCAAA;EACC,kCAAA;EACG,+BAAA;EAkER,qDAAA;EAEK,2CAAA;EACG,qCAAA;EL4pKT;AwD/0KC;EnD2GA,oCAAA;EACI,gCAAA;EACC,+BAAA;EACG,4BAAA;ELuuKT;AwDn1KD;EACE,oBAAA;EACA,kBAAA;ExDq1KD;AwDj1KD;EACE,oBAAA;EACA,aAAA;EACA,cAAA;ExDm1KD;AwD/0KD;EACE,oBAAA;EACA,2BAAA;EACA,2BAAA;EACA,sCAAA;EACA,oBAAA;EnDaA,kDAAA;EACQ,0CAAA;EmDZR,sCAAA;UAAA,8BAAA;EAEA,YAAA;ExDi1KD;AwD70KD;EACE,iBAAA;EACA,QAAA;EACA,UAAA;EACA,WAAA;EACA,SAAA;EACA,2BAAA;ExD+0KD;AwD70KC;ElCpEA,YAAA;EAGA,0BAAA;EtBk5KD;AwDh1KC;ElCrEA,cAAA;EAGA,2BAAA;EtBs5KD;AwD/0KD;EACE,eAAA;EACA,kCAAA;EACA,2BAAA;ExDi1KD;AwD90KD;EACE,kBAAA;ExDg1KD;AwD50KD;EACE,WAAA;EACA,yBAAA;ExD80KD;AwDz0KD;EACE,oBAAA;EACA,eAAA;ExD20KD;AwDv0KD;EACE,eAAA;EACA,mBAAA;EACA,+BAAA;ExDy0KD;AwD50KD;EAQI,kBAAA;EACA,kBAAA;ExDu0KH;AwDh1KD;EAaI,mBAAA;ExDs0KH;AwDn1KD;EAiBI,gBAAA;ExDq0KH;AwDh0KD;EACE,oBAAA;EACA,cAAA;EACA,aAAA;EACA,cAAA;EACA,kBAAA;ExDk0KD;AwDhzKD;EAZE;IACE,cAAA;IACA,mBAAA;IxD+zKD;EwD7zKD;InDtEA,mDAAA;IACQ,2CAAA;ILs4KP;EwD5zKD;IAAY,cAAA;IxD+zKX;EACF;AwD1zKD;EAFE;IAAY,cAAA;IxDg0KX;EACF;AyD98KD;EACE,oBAAA;EACA,eAAA;EACA,gBAAA;EACA,qBAAA;EACA,iBAAA;EACA,kBAAA;EnCTA,YAAA;EAGA,0BAAA;EtBw9KD;AyD/8KC;EnCZA,cAAA;EAGA,2BAAA;EtB49KD;AyDl9KC;EAAW,kBAAA;EAAmB,gBAAA;EzDs9K/B;AyDr9KC;EAAW,kBAAA;EAAmB,gBAAA;EzDy9K/B;AyDx9KC;EAAW,iBAAA;EAAmB,gBAAA;EzD49K/B;AyD39KC;EAAW,mBAAA;EAAmB,gBAAA;EzD+9K/B;AyD39KD;EACE,kBAAA;EACA,kBAAA;EACA,gBAAA;EACA,oBAAA;EACA,uBAAA;EACA,2BAAA;EACA,oBAAA;EzD69KD;AyDz9KD;EACE,oBAAA;EACA,UAAA;EACA,WAAA;EACA,2BAAA;EACA,qBAAA;EzD29KD;AyDx9KC;EACE,WAAA;EACA,WAAA;EACA,mBAAA;EACA,yBAAA;EACA,2BAAA;EzD09KH;AyDx9KC;EACE,WAAA;EACA,WAAA;EACA,yBAAA;EACA,2BAAA;EzD09KH;AyDx9KC;EACE,WAAA;EACA,YAAA;EACA,yBAAA;EACA,2BAAA;EzD09KH;AyDx9KC;EACE,UAAA;EACA,SAAA;EACA,kBAAA;EACA,6BAAA;EACA,6BAAA;EzD09KH;AyDx9KC;EACE,UAAA;EACA,UAAA;EACA,kBAAA;EACA,6BAAA;EACA,4BAAA;EzD09KH;AyDx9KC;EACE,QAAA;EACA,WAAA;EACA,mBAAA;EACA,yBAAA;EACA,8BAAA;EzD09KH;AyDx9KC;EACE,QAAA;EACA,WAAA;EACA,yBAAA;EACA,8BAAA;EzD09KH;AyDx9KC;EACE,QAAA;EACA,YAAA;EACA,yBAAA;EACA,8BAAA;EzD09KH;A0DjjLD;EACE,oBAAA;EACA,QAAA;EACA,SAAA;EACA,eAAA;EACA,eAAA;EACA,kBAAA;EACA,cAAA;EAEA,iBAAA;EACA,qBAAA;EACA,yBAAA;EACA,kBAAA;EACA,2BAAA;EACA,sCAAA;UAAA,8BAAA;EACA,2BAAA;EACA,sCAAA;EACA,oBAAA;ErD8CA,mDAAA;EACQ,2CAAA;EqD3CR,qBAAA;E1DijLD;A0D9iLC;EAAY,mBAAA;E1DijLb;A0DhjLC;EAAY,mBAAA;E1DmjLb;A0DljLC;EAAY,kBAAA;E1DqjLb;A0DpjLC;EAAY,oBAAA;E1DujLb;A0DpjLD;EACE,WAAA;EACA,mBAAA;EACA,iBAAA;EACA,2BAAA;EACA,kCAAA;EACA,4BAAA;E1DsjLD;A0DnjLD;EACE,mBAAA;E1DqjLD;A0D7iLC;;EAEE,oBAAA;EACA,gBAAA;EACA,UAAA;EACA,WAAA;EACA,2BAAA;EACA,qBAAA;E1D+iLH;A0D5iLD;EACE,oBAAA;E1D8iLD;A0D5iLD;EACE,oBAAA;EACA,aAAA;E1D8iLD;A0D1iLC;EACE,WAAA;EACA,oBAAA;EACA,wBAAA;EACA,2BAAA;EACA,uCAAA;EACA,eAAA;E1D4iLH;A0D3iLG;EACE,cAAA;EACA,aAAA;EACA,oBAAA;EACA,wBAAA;EACA,2BAAA;E1D6iLL;A0D1iLC;EACE,UAAA;EACA,aAAA;EACA,mBAAA;EACA,sBAAA;EACA,6BAAA;EACA,yCAAA;E1D4iLH;A0D3iLG;EACE,cAAA;EACA,WAAA;EACA,eAAA;EACA,sBAAA;EACA,6BAAA;E1D6iLL;A0D1iLC;EACE,WAAA;EACA,oBAAA;EACA,qBAAA;EACA,8BAAA;EACA,0CAAA;EACA,YAAA;E1D4iLH;A0D3iLG;EACE,cAAA;EACA,UAAA;EACA,oBAAA;EACA,qBAAA;EACA,8BAAA;E1D6iLL;A0DziLC;EACE,UAAA;EACA,cAAA;EACA,mBAAA;EACA,uBAAA;EACA,4BAAA;EACA,wCAAA;E1D2iLH;A0D1iLG;EACE,cAAA;EACA,YAAA;EACA,uBAAA;EACA,4BAAA;EACA,eAAA;E1D4iLL;A2DxqLD;EACE,oBAAA;E3D0qLD;A2DvqLD;EACE,oBAAA;EACA,kBAAA;EACA,aAAA;E3DyqLD;A2D5qLD;EAMI,eAAA;EACA,oBAAA;EtD6KF,2CAAA;EACK,sCAAA;EACG,mCAAA;EL6/KT;A2DnrLD;;EAcM,gBAAA;E3DyqLL;A2D/oLC;EAAA;IArBI,wDAAA;SAAA,8CAAA;YAAA,wCAAA;IACA,qCAAA;YAAA,6BAAA;IACA,2BAAA;YAAA,mBAAA;I3DwqLH;E2DtqLG;;IAEE,4CAAA;YAAA,oCAAA;IACA,SAAA;I3DwqLL;E2DtqLG;;IAEE,6CAAA;YAAA,qCAAA;IACA,SAAA;I3DwqLL;E2DtqLG;;;IAGE,yCAAA;YAAA,iCAAA;IACA,SAAA;I3DwqLL;EACF;A2D9sLD;;;EA6CI,gBAAA;E3DsqLH;A2DntLD;EAiDI,SAAA;E3DqqLH;A2DttLD;;EAsDI,oBAAA;EACA,QAAA;EACA,aAAA;E3DoqLH;A2D5tLD;EA4DI,YAAA;E3DmqLH;A2D/tLD;EA+DI,aAAA;E3DmqLH;A2DluLD;;EAmEI,SAAA;E3DmqLH;A2DtuLD;EAuEI,aAAA;E3DkqLH;A2DzuLD;EA0EI,YAAA;E3DkqLH;A2D1pLD;EACE,oBAAA;EACA,QAAA;EACA,SAAA;EACA,WAAA;EACA,YAAA;ErC9FA,cAAA;EAGA,2BAAA;EqC6FA,iBAAA;EACA,gBAAA;EACA,oBAAA;EACA,2CAAA;E3D6pLD;A2DxpLC;EblGE,oGAAA;EACA,+FAAA;EACA,sHAAA;EAAA,gGAAA;EACA,6BAAA;EACA,wHAAA;E9C6vLH;A2D5pLC;EACE,YAAA;EACA,UAAA;EbvGA,oGAAA;EACA,+FAAA;EACA,sHAAA;EAAA,gGAAA;EACA,6BAAA;EACA,wHAAA;E9CswLH;A2D9pLC;;EAEE,YAAA;EACA,gBAAA;EACA,uBAAA;ErCtHF,cAAA;EAGA,2BAAA;EtBqxLD;A2D/rLD;;;;EAsCI,oBAAA;EACA,UAAA;EACA,YAAA;EACA,uBAAA;E3D+pLH;A2DxsLD;;EA6CI,WAAA;EACA,oBAAA;E3D+pLH;A2D7sLD;;EAkDI,YAAA;EACA,qBAAA;E3D+pLH;A2DltLD;;EAuDI,aAAA;EACA,cAAA;EACA,mBAAA;EACA,oBAAA;E3D+pLH;A2D1pLG;EACE,kBAAA;E3D4pLL;A2DxpLG;EACE,kBAAA;E3D0pLL;A2DhpLD;EACE,oBAAA;EACA,cAAA;EACA,WAAA;EACA,aAAA;EACA,YAAA;EACA,mBAAA;EACA,iBAAA;EACA,kBAAA;EACA,oBAAA;E3DkpLD;A2D3pLD;EAYI,uBAAA;EACA,aAAA;EACA,cAAA;EACA,aAAA;EACA,qBAAA;EACA,2BAAA;EACA,qBAAA;EACA,iBAAA;EAUA,2BAAA;EACA,oCAAA;E3DyoLH;A2DvqLD;EAiCI,WAAA;EACA,aAAA;EACA,cAAA;EACA,2BAAA;E3DyoLH;A2DloLD;EACE,oBAAA;EACA,WAAA;EACA,YAAA;EACA,cAAA;EACA,aAAA;EACA,mBAAA;EACA,sBAAA;EACA,gBAAA;EACA,oBAAA;EACA,2CAAA;E3DooLD;A2DnoLC;EACE,mBAAA;E3DqoLH;A2D5lLD;EAhCE;;;;IAKI,aAAA;IACA,cAAA;IACA,mBAAA;IACA,iBAAA;I3D8nLH;E2DtoLD;;IAYI,oBAAA;I3D8nLH;E2D1oLD;;IAgBI,qBAAA;I3D8nLH;E2DznLD;IACE,WAAA;IACA,YAAA;IACA,sBAAA;I3D2nLD;E2DvnLD;IACE,cAAA;I3DynLD;EACF;A4Dr3LC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAEE,cAAA;EACA,gBAAA;E5Dm5LH;A4Dj5LC;;;;;;;;;;;;;;;EACE,aAAA;E5Di6LH;AiCz6LD;E4BRE,gBAAA;EACA,mBAAA;EACA,oBAAA;E7Do7LD;AiC36LD;EACE,yBAAA;EjC66LD;AiC36LD;EACE,wBAAA;EjC66LD;AiCr6LD;EACE,0BAAA;EjCu6LD;AiCr6LD;EACE,2BAAA;EjCu6LD;AiCr6LD;EACE,oBAAA;EjCu6LD;AiCr6LD;E6BzBE,aAAA;EACA,oBAAA;EACA,mBAAA;EACA,+BAAA;EACA,WAAA;E9Di8LD;AiCn6LD;EACE,0BAAA;EACA,+BAAA;EjCq6LD;AiC95LD;EACE,iBAAA;EjCg6LD;A+Dl8LD;EACE,qBAAA;E/Do8LD;A+D97LD;;;;ECdE,0BAAA;EhEk9LD;A+D77LD;;;;;;;;;;;;EAYE,0BAAA;E/D+7LD;A+Dx7LD;EAAA;IChDE,2BAAA;IhE4+LC;EgE3+LD;IAAU,gBAAA;IhE8+LT;EgE7+LD;IAAU,+BAAA;IhEg/LT;EgE/+LD;;IACU,gCAAA;IhEk/LT;EACF;A+Dl8LD;EAAA;IAFI,2BAAA;I/Dw8LD;EACF;A+Dl8LD;EAAA;IAFI,4BAAA;I/Dw8LD;EACF;A+Dl8LD;EAAA;IAFI,kCAAA;I/Dw8LD;EACF;A+Dj8LD;EAAA;ICrEE,2BAAA;IhE0gMC;EgEzgMD;IAAU,gBAAA;IhE4gMT;EgE3gMD;IAAU,+BAAA;IhE8gMT;EgE7gMD;;IACU,gCAAA;IhEghMT;EACF;A+D38LD;EAAA;IAFI,2BAAA;I/Di9LD;EACF;A+D38LD;EAAA;IAFI,4BAAA;I/Di9LD;EACF;A+D38LD;EAAA;IAFI,kCAAA;I/Di9LD;EACF;A+D18LD;EAAA;IC1FE,2BAAA;IhEwiMC;EgEviMD;IAAU,gBAAA;IhE0iMT;EgEziMD;IAAU,+BAAA;IhE4iMT;EgE3iMD;;IACU,gCAAA;IhE8iMT;EACF;A+Dp9LD;EAAA;IAFI,2BAAA;I/D09LD;EACF;A+Dp9LD;EAAA;IAFI,4BAAA;I/D09LD;EACF;A+Dp9LD;EAAA;IAFI,kCAAA;I/D09LD;EACF;A+Dn9LD;EAAA;IC/GE,2BAAA;IhEskMC;EgErkMD;IAAU,gBAAA;IhEwkMT;EgEvkMD;IAAU,+BAAA;IhE0kMT;EgEzkMD;;IACU,gCAAA;IhE4kMT;EACF;A+D79LD;EAAA;IAFI,2BAAA;I/Dm+LD;EACF;A+D79LD;EAAA;IAFI,4BAAA;I/Dm+LD;EACF;A+D79LD;EAAA;IAFI,kCAAA;I/Dm+LD;EACF;A+D59LD;EAAA;IC5HE,0BAAA;IhE4lMC;EACF;A+D59LD;EAAA;ICjIE,0BAAA;IhEimMC;EACF;A+D59LD;EAAA;ICtIE,0BAAA;IhEsmMC;EACF;A+D59LD;EAAA;IC3IE,0BAAA;IhE2mMC;EACF;A+Dz9LD;ECnJE,0BAAA;EhE+mMD;A+Dt9LD;EAAA;ICjKE,2BAAA;IhE2nMC;EgE1nMD;IAAU,gBAAA;IhE6nMT;EgE5nMD;IAAU,+BAAA;IhE+nMT;EgE9nMD;;IACU,gCAAA;IhEioMT;EACF;A+Dp+LD;EACE,0BAAA;E/Ds+LD;A+Dj+LD;EAAA;IAFI,2BAAA;I/Du+LD;EACF;A+Dr+LD;EACE,0BAAA;E/Du+LD;A+Dl+LD;EAAA;IAFI,4BAAA;I/Dw+LD;EACF;A+Dt+LD;EACE,0BAAA;E/Dw+LD;A+Dn+LD;EAAA;IAFI,kCAAA;I/Dy+LD;EACF;A+Dl+LD;EAAA;ICpLE,0BAAA;IhE0pMC;EACF","file":"bootstrap.css","sourcesContent":["/*! normalize.css v3.0.2 | MIT License | git.io/normalize */\nhtml {\n font-family: sans-serif;\n -ms-text-size-adjust: 100%;\n -webkit-text-size-adjust: 100%;\n}\nbody {\n margin: 0;\n}\narticle,\naside,\ndetails,\nfigcaption,\nfigure,\nfooter,\nheader,\nhgroup,\nmain,\nmenu,\nnav,\nsection,\nsummary {\n display: block;\n}\naudio,\ncanvas,\nprogress,\nvideo {\n display: inline-block;\n vertical-align: baseline;\n}\naudio:not([controls]) {\n display: none;\n height: 0;\n}\n[hidden],\ntemplate {\n display: none;\n}\na {\n background-color: transparent;\n}\na:active,\na:hover {\n outline: 0;\n}\nabbr[title] {\n border-bottom: 1px dotted;\n}\nb,\nstrong {\n font-weight: bold;\n}\ndfn {\n font-style: italic;\n}\nh1 {\n font-size: 2em;\n margin: 0.67em 0;\n}\nmark {\n background: #ff0;\n color: #000;\n}\nsmall {\n font-size: 80%;\n}\nsub,\nsup {\n font-size: 75%;\n line-height: 0;\n position: relative;\n vertical-align: baseline;\n}\nsup {\n top: -0.5em;\n}\nsub {\n bottom: -0.25em;\n}\nimg {\n border: 0;\n}\nsvg:not(:root) {\n overflow: hidden;\n}\nfigure {\n margin: 1em 40px;\n}\nhr {\n -moz-box-sizing: content-box;\n box-sizing: content-box;\n height: 0;\n}\npre {\n overflow: auto;\n}\ncode,\nkbd,\npre,\nsamp {\n font-family: monospace, monospace;\n font-size: 1em;\n}\nbutton,\ninput,\noptgroup,\nselect,\ntextarea {\n color: inherit;\n font: inherit;\n margin: 0;\n}\nbutton {\n overflow: visible;\n}\nbutton,\nselect {\n text-transform: none;\n}\nbutton,\nhtml input[type=\"button\"],\ninput[type=\"reset\"],\ninput[type=\"submit\"] {\n -webkit-appearance: button;\n cursor: pointer;\n}\nbutton[disabled],\nhtml input[disabled] {\n cursor: default;\n}\nbutton::-moz-focus-inner,\ninput::-moz-focus-inner {\n border: 0;\n padding: 0;\n}\ninput {\n line-height: normal;\n}\ninput[type=\"checkbox\"],\ninput[type=\"radio\"] {\n box-sizing: border-box;\n padding: 0;\n}\ninput[type=\"number\"]::-webkit-inner-spin-button,\ninput[type=\"number\"]::-webkit-outer-spin-button {\n height: auto;\n}\ninput[type=\"search\"] {\n -webkit-appearance: textfield;\n -moz-box-sizing: content-box;\n -webkit-box-sizing: content-box;\n box-sizing: content-box;\n}\ninput[type=\"search\"]::-webkit-search-cancel-button,\ninput[type=\"search\"]::-webkit-search-decoration {\n -webkit-appearance: none;\n}\nfieldset {\n border: 1px solid #c0c0c0;\n margin: 0 2px;\n padding: 0.35em 0.625em 0.75em;\n}\nlegend {\n border: 0;\n padding: 0;\n}\ntextarea {\n overflow: auto;\n}\noptgroup {\n font-weight: bold;\n}\ntable {\n border-collapse: collapse;\n border-spacing: 0;\n}\ntd,\nth {\n padding: 0;\n}\n/*! Source: https://github.com/h5bp/html5-boilerplate/blob/master/src/css/main.css */\n@media print {\n *,\n *:before,\n *:after {\n background: transparent !important;\n color: #000 !important;\n box-shadow: none !important;\n text-shadow: none !important;\n }\n a,\n a:visited {\n text-decoration: underline;\n }\n a[href]:after {\n content: \" (\" attr(href) \")\";\n }\n abbr[title]:after {\n content: \" (\" attr(title) \")\";\n }\n a[href^=\"#\"]:after,\n a[href^=\"javascript:\"]:after {\n content: \"\";\n }\n pre,\n blockquote {\n border: 1px solid #999;\n page-break-inside: avoid;\n }\n thead {\n display: table-header-group;\n }\n tr,\n img {\n page-break-inside: avoid;\n }\n img {\n max-width: 100% !important;\n }\n p,\n h2,\n h3 {\n orphans: 3;\n widows: 3;\n }\n h2,\n h3 {\n page-break-after: avoid;\n }\n select {\n background: #fff !important;\n }\n .navbar {\n display: none;\n }\n .btn > .caret,\n .dropup > .btn > .caret {\n border-top-color: #000 !important;\n }\n .label {\n border: 1px solid #000;\n }\n .table {\n border-collapse: collapse !important;\n }\n .table td,\n .table th {\n background-color: #fff !important;\n }\n .table-bordered th,\n .table-bordered td {\n border: 1px solid #ddd !important;\n }\n}\n@font-face {\n font-family: 'Glyphicons Halflings';\n src: url('../fonts/glyphicons-halflings-regular.eot');\n src: url('../fonts/glyphicons-halflings-regular.eot?#iefix') format('embedded-opentype'), url('../fonts/glyphicons-halflings-regular.woff') format('woff'), url('../fonts/glyphicons-halflings-regular.ttf') format('truetype'), url('../fonts/glyphicons-halflings-regular.svg#glyphicons_halflingsregular') format('svg');\n}\n.glyphicon {\n position: relative;\n top: 1px;\n display: inline-block;\n font-family: 'Glyphicons Halflings';\n font-style: normal;\n font-weight: normal;\n line-height: 1;\n -webkit-font-smoothing: antialiased;\n -moz-osx-font-smoothing: grayscale;\n}\n.glyphicon-asterisk:before {\n content: \"\\2a\";\n}\n.glyphicon-plus:before {\n content: \"\\2b\";\n}\n.glyphicon-euro:before,\n.glyphicon-eur:before {\n content: \"\\20ac\";\n}\n.glyphicon-minus:before {\n content: \"\\2212\";\n}\n.glyphicon-cloud:before {\n content: \"\\2601\";\n}\n.glyphicon-envelope:before {\n content: \"\\2709\";\n}\n.glyphicon-pencil:before {\n content: \"\\270f\";\n}\n.glyphicon-glass:before {\n content: \"\\e001\";\n}\n.glyphicon-music:before {\n content: \"\\e002\";\n}\n.glyphicon-search:before {\n content: \"\\e003\";\n}\n.glyphicon-heart:before {\n content: \"\\e005\";\n}\n.glyphicon-star:before {\n content: \"\\e006\";\n}\n.glyphicon-star-empty:before {\n content: \"\\e007\";\n}\n.glyphicon-user:before {\n content: \"\\e008\";\n}\n.glyphicon-film:before {\n content: \"\\e009\";\n}\n.glyphicon-th-large:before {\n content: \"\\e010\";\n}\n.glyphicon-th:before {\n content: \"\\e011\";\n}\n.glyphicon-th-list:before {\n content: \"\\e012\";\n}\n.glyphicon-ok:before {\n content: \"\\e013\";\n}\n.glyphicon-remove:before {\n content: \"\\e014\";\n}\n.glyphicon-zoom-in:before {\n content: \"\\e015\";\n}\n.glyphicon-zoom-out:before {\n content: \"\\e016\";\n}\n.glyphicon-off:before {\n content: \"\\e017\";\n}\n.glyphicon-signal:before {\n content: \"\\e018\";\n}\n.glyphicon-cog:before {\n content: \"\\e019\";\n}\n.glyphicon-trash:before {\n content: \"\\e020\";\n}\n.glyphicon-home:before {\n content: \"\\e021\";\n}\n.glyphicon-file:before {\n content: \"\\e022\";\n}\n.glyphicon-time:before {\n content: \"\\e023\";\n}\n.glyphicon-road:before {\n content: \"\\e024\";\n}\n.glyphicon-download-alt:before {\n content: \"\\e025\";\n}\n.glyphicon-download:before {\n content: \"\\e026\";\n}\n.glyphicon-upload:before {\n content: \"\\e027\";\n}\n.glyphicon-inbox:before {\n content: \"\\e028\";\n}\n.glyphicon-play-circle:before {\n content: \"\\e029\";\n}\n.glyphicon-repeat:before {\n content: \"\\e030\";\n}\n.glyphicon-refresh:before {\n content: \"\\e031\";\n}\n.glyphicon-list-alt:before {\n content: \"\\e032\";\n}\n.glyphicon-lock:before {\n content: \"\\e033\";\n}\n.glyphicon-flag:before {\n content: \"\\e034\";\n}\n.glyphicon-headphones:before {\n content: \"\\e035\";\n}\n.glyphicon-volume-off:before {\n content: \"\\e036\";\n}\n.glyphicon-volume-down:before {\n content: \"\\e037\";\n}\n.glyphicon-volume-up:before {\n content: \"\\e038\";\n}\n.glyphicon-qrcode:before {\n content: \"\\e039\";\n}\n.glyphicon-barcode:before {\n content: \"\\e040\";\n}\n.glyphicon-tag:before {\n content: \"\\e041\";\n}\n.glyphicon-tags:before {\n content: \"\\e042\";\n}\n.glyphicon-book:before {\n content: \"\\e043\";\n}\n.glyphicon-bookmark:before {\n content: \"\\e044\";\n}\n.glyphicon-print:before {\n content: \"\\e045\";\n}\n.glyphicon-camera:before {\n content: \"\\e046\";\n}\n.glyphicon-font:before {\n content: \"\\e047\";\n}\n.glyphicon-bold:before {\n content: \"\\e048\";\n}\n.glyphicon-italic:before {\n content: \"\\e049\";\n}\n.glyphicon-text-height:before {\n content: \"\\e050\";\n}\n.glyphicon-text-width:before {\n content: \"\\e051\";\n}\n.glyphicon-align-left:before {\n content: \"\\e052\";\n}\n.glyphicon-align-center:before {\n content: \"\\e053\";\n}\n.glyphicon-align-right:before {\n content: \"\\e054\";\n}\n.glyphicon-align-justify:before {\n content: \"\\e055\";\n}\n.glyphicon-list:before {\n content: \"\\e056\";\n}\n.glyphicon-indent-left:before {\n content: \"\\e057\";\n}\n.glyphicon-indent-right:before {\n content: \"\\e058\";\n}\n.glyphicon-facetime-video:before {\n content: \"\\e059\";\n}\n.glyphicon-picture:before {\n content: \"\\e060\";\n}\n.glyphicon-map-marker:before {\n content: \"\\e062\";\n}\n.glyphicon-adjust:before {\n content: \"\\e063\";\n}\n.glyphicon-tint:before {\n content: \"\\e064\";\n}\n.glyphicon-edit:before {\n content: \"\\e065\";\n}\n.glyphicon-share:before {\n content: \"\\e066\";\n}\n.glyphicon-check:before {\n content: \"\\e067\";\n}\n.glyphicon-move:before {\n content: \"\\e068\";\n}\n.glyphicon-step-backward:before {\n content: \"\\e069\";\n}\n.glyphicon-fast-backward:before {\n content: \"\\e070\";\n}\n.glyphicon-backward:before {\n content: \"\\e071\";\n}\n.glyphicon-play:before {\n content: \"\\e072\";\n}\n.glyphicon-pause:before {\n content: \"\\e073\";\n}\n.glyphicon-stop:before {\n content: \"\\e074\";\n}\n.glyphicon-forward:before {\n content: \"\\e075\";\n}\n.glyphicon-fast-forward:before {\n content: \"\\e076\";\n}\n.glyphicon-step-forward:before {\n content: \"\\e077\";\n}\n.glyphicon-eject:before {\n content: \"\\e078\";\n}\n.glyphicon-chevron-left:before {\n content: \"\\e079\";\n}\n.glyphicon-chevron-right:before {\n content: \"\\e080\";\n}\n.glyphicon-plus-sign:before {\n content: \"\\e081\";\n}\n.glyphicon-minus-sign:before {\n content: \"\\e082\";\n}\n.glyphicon-remove-sign:before {\n content: \"\\e083\";\n}\n.glyphicon-ok-sign:before {\n content: \"\\e084\";\n}\n.glyphicon-question-sign:before {\n content: \"\\e085\";\n}\n.glyphicon-info-sign:before {\n content: \"\\e086\";\n}\n.glyphicon-screenshot:before {\n content: \"\\e087\";\n}\n.glyphicon-remove-circle:before {\n content: \"\\e088\";\n}\n.glyphicon-ok-circle:before {\n content: \"\\e089\";\n}\n.glyphicon-ban-circle:before {\n content: \"\\e090\";\n}\n.glyphicon-arrow-left:before {\n content: \"\\e091\";\n}\n.glyphicon-arrow-right:before {\n content: \"\\e092\";\n}\n.glyphicon-arrow-up:before {\n content: \"\\e093\";\n}\n.glyphicon-arrow-down:before {\n content: \"\\e094\";\n}\n.glyphicon-share-alt:before {\n content: \"\\e095\";\n}\n.glyphicon-resize-full:before {\n content: \"\\e096\";\n}\n.glyphicon-resize-small:before {\n content: \"\\e097\";\n}\n.glyphicon-exclamation-sign:before {\n content: \"\\e101\";\n}\n.glyphicon-gift:before {\n content: \"\\e102\";\n}\n.glyphicon-leaf:before {\n content: \"\\e103\";\n}\n.glyphicon-fire:before {\n content: \"\\e104\";\n}\n.glyphicon-eye-open:before {\n content: \"\\e105\";\n}\n.glyphicon-eye-close:before {\n content: \"\\e106\";\n}\n.glyphicon-warning-sign:before {\n content: \"\\e107\";\n}\n.glyphicon-plane:before {\n content: \"\\e108\";\n}\n.glyphicon-calendar:before {\n content: \"\\e109\";\n}\n.glyphicon-random:before {\n content: \"\\e110\";\n}\n.glyphicon-comment:before {\n content: \"\\e111\";\n}\n.glyphicon-magnet:before {\n content: \"\\e112\";\n}\n.glyphicon-chevron-up:before {\n content: \"\\e113\";\n}\n.glyphicon-chevron-down:before {\n content: \"\\e114\";\n}\n.glyphicon-retweet:before {\n content: \"\\e115\";\n}\n.glyphicon-shopping-cart:before {\n content: \"\\e116\";\n}\n.glyphicon-folder-close:before {\n content: \"\\e117\";\n}\n.glyphicon-folder-open:before {\n content: \"\\e118\";\n}\n.glyphicon-resize-vertical:before {\n content: \"\\e119\";\n}\n.glyphicon-resize-horizontal:before {\n content: \"\\e120\";\n}\n.glyphicon-hdd:before {\n content: \"\\e121\";\n}\n.glyphicon-bullhorn:before {\n content: \"\\e122\";\n}\n.glyphicon-bell:before {\n content: \"\\e123\";\n}\n.glyphicon-certificate:before {\n content: \"\\e124\";\n}\n.glyphicon-thumbs-up:before {\n content: \"\\e125\";\n}\n.glyphicon-thumbs-down:before {\n content: \"\\e126\";\n}\n.glyphicon-hand-right:before {\n content: \"\\e127\";\n}\n.glyphicon-hand-left:before {\n content: \"\\e128\";\n}\n.glyphicon-hand-up:before {\n content: \"\\e129\";\n}\n.glyphicon-hand-down:before {\n content: \"\\e130\";\n}\n.glyphicon-circle-arrow-right:before {\n content: \"\\e131\";\n}\n.glyphicon-circle-arrow-left:before {\n content: \"\\e132\";\n}\n.glyphicon-circle-arrow-up:before {\n content: \"\\e133\";\n}\n.glyphicon-circle-arrow-down:before {\n content: \"\\e134\";\n}\n.glyphicon-globe:before {\n content: \"\\e135\";\n}\n.glyphicon-wrench:before {\n content: \"\\e136\";\n}\n.glyphicon-tasks:before {\n content: \"\\e137\";\n}\n.glyphicon-filter:before {\n content: \"\\e138\";\n}\n.glyphicon-briefcase:before {\n content: \"\\e139\";\n}\n.glyphicon-fullscreen:before {\n content: \"\\e140\";\n}\n.glyphicon-dashboard:before {\n content: \"\\e141\";\n}\n.glyphicon-paperclip:before {\n content: \"\\e142\";\n}\n.glyphicon-heart-empty:before {\n content: \"\\e143\";\n}\n.glyphicon-link:before {\n content: \"\\e144\";\n}\n.glyphicon-phone:before {\n content: \"\\e145\";\n}\n.glyphicon-pushpin:before {\n content: \"\\e146\";\n}\n.glyphicon-usd:before {\n content: \"\\e148\";\n}\n.glyphicon-gbp:before {\n content: \"\\e149\";\n}\n.glyphicon-sort:before {\n content: \"\\e150\";\n}\n.glyphicon-sort-by-alphabet:before {\n content: \"\\e151\";\n}\n.glyphicon-sort-by-alphabet-alt:before {\n content: \"\\e152\";\n}\n.glyphicon-sort-by-order:before {\n content: \"\\e153\";\n}\n.glyphicon-sort-by-order-alt:before {\n content: \"\\e154\";\n}\n.glyphicon-sort-by-attributes:before {\n content: \"\\e155\";\n}\n.glyphicon-sort-by-attributes-alt:before {\n content: \"\\e156\";\n}\n.glyphicon-unchecked:before {\n content: \"\\e157\";\n}\n.glyphicon-expand:before {\n content: \"\\e158\";\n}\n.glyphicon-collapse-down:before {\n content: \"\\e159\";\n}\n.glyphicon-collapse-up:before {\n content: \"\\e160\";\n}\n.glyphicon-log-in:before {\n content: \"\\e161\";\n}\n.glyphicon-flash:before {\n content: \"\\e162\";\n}\n.glyphicon-log-out:before {\n content: \"\\e163\";\n}\n.glyphicon-new-window:before {\n content: \"\\e164\";\n}\n.glyphicon-record:before {\n content: \"\\e165\";\n}\n.glyphicon-save:before {\n content: \"\\e166\";\n}\n.glyphicon-open:before {\n content: \"\\e167\";\n}\n.glyphicon-saved:before {\n content: \"\\e168\";\n}\n.glyphicon-import:before {\n content: \"\\e169\";\n}\n.glyphicon-export:before {\n content: \"\\e170\";\n}\n.glyphicon-send:before {\n content: \"\\e171\";\n}\n.glyphicon-floppy-disk:before {\n content: \"\\e172\";\n}\n.glyphicon-floppy-saved:before {\n content: \"\\e173\";\n}\n.glyphicon-floppy-remove:before {\n content: \"\\e174\";\n}\n.glyphicon-floppy-save:before {\n content: \"\\e175\";\n}\n.glyphicon-floppy-open:before {\n content: \"\\e176\";\n}\n.glyphicon-credit-card:before {\n content: \"\\e177\";\n}\n.glyphicon-transfer:before {\n content: \"\\e178\";\n}\n.glyphicon-cutlery:before {\n content: \"\\e179\";\n}\n.glyphicon-header:before {\n content: \"\\e180\";\n}\n.glyphicon-compressed:before {\n content: \"\\e181\";\n}\n.glyphicon-earphone:before {\n content: \"\\e182\";\n}\n.glyphicon-phone-alt:before {\n content: \"\\e183\";\n}\n.glyphicon-tower:before {\n content: \"\\e184\";\n}\n.glyphicon-stats:before {\n content: \"\\e185\";\n}\n.glyphicon-sd-video:before {\n content: \"\\e186\";\n}\n.glyphicon-hd-video:before {\n content: \"\\e187\";\n}\n.glyphicon-subtitles:before {\n content: \"\\e188\";\n}\n.glyphicon-sound-stereo:before {\n content: \"\\e189\";\n}\n.glyphicon-sound-dolby:before {\n content: \"\\e190\";\n}\n.glyphicon-sound-5-1:before {\n content: \"\\e191\";\n}\n.glyphicon-sound-6-1:before {\n content: \"\\e192\";\n}\n.glyphicon-sound-7-1:before {\n content: \"\\e193\";\n}\n.glyphicon-copyright-mark:before {\n content: \"\\e194\";\n}\n.glyphicon-registration-mark:before {\n content: \"\\e195\";\n}\n.glyphicon-cloud-download:before {\n content: \"\\e197\";\n}\n.glyphicon-cloud-upload:before {\n content: \"\\e198\";\n}\n.glyphicon-tree-conifer:before {\n content: \"\\e199\";\n}\n.glyphicon-tree-deciduous:before {\n content: \"\\e200\";\n}\n* {\n -webkit-box-sizing: border-box;\n -moz-box-sizing: border-box;\n box-sizing: border-box;\n}\n*:before,\n*:after {\n -webkit-box-sizing: border-box;\n -moz-box-sizing: border-box;\n box-sizing: border-box;\n}\nhtml {\n font-size: 10px;\n -webkit-tap-highlight-color: rgba(0, 0, 0, 0);\n}\nbody {\n font-family: \"Helvetica Neue\", Helvetica, Arial, sans-serif;\n font-size: 14px;\n line-height: 1.42857143;\n color: #333333;\n background-color: #ffffff;\n}\ninput,\nbutton,\nselect,\ntextarea {\n font-family: inherit;\n font-size: inherit;\n line-height: inherit;\n}\na {\n color: #428bca;\n text-decoration: none;\n}\na:hover,\na:focus {\n color: #2a6496;\n text-decoration: underline;\n}\na:focus {\n outline: thin dotted;\n outline: 5px auto -webkit-focus-ring-color;\n outline-offset: -2px;\n}\nfigure {\n margin: 0;\n}\nimg {\n vertical-align: middle;\n}\n.img-responsive,\n.thumbnail > img,\n.thumbnail a > img,\n.carousel-inner > .item > img,\n.carousel-inner > .item > a > img {\n display: block;\n max-width: 100%;\n height: auto;\n}\n.img-rounded {\n border-radius: 6px;\n}\n.img-thumbnail {\n padding: 4px;\n line-height: 1.42857143;\n background-color: #ffffff;\n border: 1px solid #dddddd;\n border-radius: 4px;\n -webkit-transition: all 0.2s ease-in-out;\n -o-transition: all 0.2s ease-in-out;\n transition: all 0.2s ease-in-out;\n display: inline-block;\n max-width: 100%;\n height: auto;\n}\n.img-circle {\n border-radius: 50%;\n}\nhr {\n margin-top: 20px;\n margin-bottom: 20px;\n border: 0;\n border-top: 1px solid #eeeeee;\n}\n.sr-only {\n position: absolute;\n width: 1px;\n height: 1px;\n margin: -1px;\n padding: 0;\n overflow: hidden;\n clip: rect(0, 0, 0, 0);\n border: 0;\n}\n.sr-only-focusable:active,\n.sr-only-focusable:focus {\n position: static;\n width: auto;\n height: auto;\n margin: 0;\n overflow: visible;\n clip: auto;\n}\nh1,\nh2,\nh3,\nh4,\nh5,\nh6,\n.h1,\n.h2,\n.h3,\n.h4,\n.h5,\n.h6 {\n font-family: inherit;\n font-weight: 500;\n line-height: 1.1;\n color: inherit;\n}\nh1 small,\nh2 small,\nh3 small,\nh4 small,\nh5 small,\nh6 small,\n.h1 small,\n.h2 small,\n.h3 small,\n.h4 small,\n.h5 small,\n.h6 small,\nh1 .small,\nh2 .small,\nh3 .small,\nh4 .small,\nh5 .small,\nh6 .small,\n.h1 .small,\n.h2 .small,\n.h3 .small,\n.h4 .small,\n.h5 .small,\n.h6 .small {\n font-weight: normal;\n line-height: 1;\n color: #777777;\n}\nh1,\n.h1,\nh2,\n.h2,\nh3,\n.h3 {\n margin-top: 20px;\n margin-bottom: 10px;\n}\nh1 small,\n.h1 small,\nh2 small,\n.h2 small,\nh3 small,\n.h3 small,\nh1 .small,\n.h1 .small,\nh2 .small,\n.h2 .small,\nh3 .small,\n.h3 .small {\n font-size: 65%;\n}\nh4,\n.h4,\nh5,\n.h5,\nh6,\n.h6 {\n margin-top: 10px;\n margin-bottom: 10px;\n}\nh4 small,\n.h4 small,\nh5 small,\n.h5 small,\nh6 small,\n.h6 small,\nh4 .small,\n.h4 .small,\nh5 .small,\n.h5 .small,\nh6 .small,\n.h6 .small {\n font-size: 75%;\n}\nh1,\n.h1 {\n font-size: 36px;\n}\nh2,\n.h2 {\n font-size: 30px;\n}\nh3,\n.h3 {\n font-size: 24px;\n}\nh4,\n.h4 {\n font-size: 18px;\n}\nh5,\n.h5 {\n font-size: 14px;\n}\nh6,\n.h6 {\n font-size: 12px;\n}\np {\n margin: 0 0 10px;\n}\n.lead {\n margin-bottom: 20px;\n font-size: 16px;\n font-weight: 300;\n line-height: 1.4;\n}\n@media (min-width: 768px) {\n .lead {\n font-size: 21px;\n }\n}\nsmall,\n.small {\n font-size: 85%;\n}\nmark,\n.mark {\n background-color: #fcf8e3;\n padding: .2em;\n}\n.text-left {\n text-align: left;\n}\n.text-right {\n text-align: right;\n}\n.text-center {\n text-align: center;\n}\n.text-justify {\n text-align: justify;\n}\n.text-nowrap {\n white-space: nowrap;\n}\n.text-lowercase {\n text-transform: lowercase;\n}\n.text-uppercase {\n text-transform: uppercase;\n}\n.text-capitalize {\n text-transform: capitalize;\n}\n.text-muted {\n color: #777777;\n}\n.text-primary {\n color: #428bca;\n}\na.text-primary:hover {\n color: #3071a9;\n}\n.text-success {\n color: #3c763d;\n}\na.text-success:hover {\n color: #2b542c;\n}\n.text-info {\n color: #31708f;\n}\na.text-info:hover {\n color: #245269;\n}\n.text-warning {\n color: #8a6d3b;\n}\na.text-warning:hover {\n color: #66512c;\n}\n.text-danger {\n color: #a94442;\n}\na.text-danger:hover {\n color: #843534;\n}\n.bg-primary {\n color: #fff;\n background-color: #428bca;\n}\na.bg-primary:hover {\n background-color: #3071a9;\n}\n.bg-success {\n background-color: #dff0d8;\n}\na.bg-success:hover {\n background-color: #c1e2b3;\n}\n.bg-info {\n background-color: #d9edf7;\n}\na.bg-info:hover {\n background-color: #afd9ee;\n}\n.bg-warning {\n background-color: #fcf8e3;\n}\na.bg-warning:hover {\n background-color: #f7ecb5;\n}\n.bg-danger {\n background-color: #f2dede;\n}\na.bg-danger:hover {\n background-color: #e4b9b9;\n}\n.page-header {\n padding-bottom: 9px;\n margin: 40px 0 20px;\n border-bottom: 1px solid #eeeeee;\n}\nul,\nol {\n margin-top: 0;\n margin-bottom: 10px;\n}\nul ul,\nol ul,\nul ol,\nol ol {\n margin-bottom: 0;\n}\n.list-unstyled {\n padding-left: 0;\n list-style: none;\n}\n.list-inline {\n padding-left: 0;\n list-style: none;\n margin-left: -5px;\n}\n.list-inline > li {\n display: inline-block;\n padding-left: 5px;\n padding-right: 5px;\n}\ndl {\n margin-top: 0;\n margin-bottom: 20px;\n}\ndt,\ndd {\n line-height: 1.42857143;\n}\ndt {\n font-weight: bold;\n}\ndd {\n margin-left: 0;\n}\n@media (min-width: 768px) {\n .dl-horizontal dt {\n float: left;\n width: 160px;\n clear: left;\n text-align: right;\n overflow: hidden;\n text-overflow: ellipsis;\n white-space: nowrap;\n }\n .dl-horizontal dd {\n margin-left: 180px;\n }\n}\nabbr[title],\nabbr[data-original-title] {\n cursor: help;\n border-bottom: 1px dotted #777777;\n}\n.initialism {\n font-size: 90%;\n text-transform: uppercase;\n}\nblockquote {\n padding: 10px 20px;\n margin: 0 0 20px;\n font-size: 17.5px;\n border-left: 5px solid #eeeeee;\n}\nblockquote p:last-child,\nblockquote ul:last-child,\nblockquote ol:last-child {\n margin-bottom: 0;\n}\nblockquote footer,\nblockquote small,\nblockquote .small {\n display: block;\n font-size: 80%;\n line-height: 1.42857143;\n color: #777777;\n}\nblockquote footer:before,\nblockquote small:before,\nblockquote .small:before {\n content: '\\2014 \\00A0';\n}\n.blockquote-reverse,\nblockquote.pull-right {\n padding-right: 15px;\n padding-left: 0;\n border-right: 5px solid #eeeeee;\n border-left: 0;\n text-align: right;\n}\n.blockquote-reverse footer:before,\nblockquote.pull-right footer:before,\n.blockquote-reverse small:before,\nblockquote.pull-right small:before,\n.blockquote-reverse .small:before,\nblockquote.pull-right .small:before {\n content: '';\n}\n.blockquote-reverse footer:after,\nblockquote.pull-right footer:after,\n.blockquote-reverse small:after,\nblockquote.pull-right small:after,\n.blockquote-reverse .small:after,\nblockquote.pull-right .small:after {\n content: '\\00A0 \\2014';\n}\naddress {\n margin-bottom: 20px;\n font-style: normal;\n line-height: 1.42857143;\n}\ncode,\nkbd,\npre,\nsamp {\n font-family: Menlo, Monaco, Consolas, \"Courier New\", monospace;\n}\ncode {\n padding: 2px 4px;\n font-size: 90%;\n color: #c7254e;\n background-color: #f9f2f4;\n border-radius: 4px;\n}\nkbd {\n padding: 2px 4px;\n font-size: 90%;\n color: #ffffff;\n background-color: #333333;\n border-radius: 3px;\n box-shadow: inset 0 -1px 0 rgba(0, 0, 0, 0.25);\n}\nkbd kbd {\n padding: 0;\n font-size: 100%;\n font-weight: bold;\n box-shadow: none;\n}\npre {\n display: block;\n padding: 9.5px;\n margin: 0 0 10px;\n font-size: 13px;\n line-height: 1.42857143;\n word-break: break-all;\n word-wrap: break-word;\n color: #333333;\n background-color: #f5f5f5;\n border: 1px solid #cccccc;\n border-radius: 4px;\n}\npre code {\n padding: 0;\n font-size: inherit;\n color: inherit;\n white-space: pre-wrap;\n background-color: transparent;\n border-radius: 0;\n}\n.pre-scrollable {\n max-height: 340px;\n overflow-y: scroll;\n}\n.container {\n margin-right: auto;\n margin-left: auto;\n padding-left: 15px;\n padding-right: 15px;\n}\n@media (min-width: 768px) {\n .container {\n width: 750px;\n }\n}\n@media (min-width: 992px) {\n .container {\n width: 970px;\n }\n}\n@media (min-width: 1200px) {\n .container {\n width: 1170px;\n }\n}\n.container-fluid {\n margin-right: auto;\n margin-left: auto;\n padding-left: 15px;\n padding-right: 15px;\n}\n.row {\n margin-left: -15px;\n margin-right: -15px;\n}\n.col-xs-1, .col-sm-1, .col-md-1, .col-lg-1, .col-xs-2, .col-sm-2, .col-md-2, .col-lg-2, .col-xs-3, .col-sm-3, .col-md-3, .col-lg-3, .col-xs-4, .col-sm-4, .col-md-4, .col-lg-4, .col-xs-5, .col-sm-5, .col-md-5, .col-lg-5, .col-xs-6, .col-sm-6, .col-md-6, .col-lg-6, .col-xs-7, .col-sm-7, .col-md-7, .col-lg-7, .col-xs-8, .col-sm-8, .col-md-8, .col-lg-8, .col-xs-9, .col-sm-9, .col-md-9, .col-lg-9, .col-xs-10, .col-sm-10, .col-md-10, .col-lg-10, .col-xs-11, .col-sm-11, .col-md-11, .col-lg-11, .col-xs-12, .col-sm-12, .col-md-12, .col-lg-12 {\n position: relative;\n min-height: 1px;\n padding-left: 15px;\n padding-right: 15px;\n}\n.col-xs-1, .col-xs-2, .col-xs-3, .col-xs-4, .col-xs-5, .col-xs-6, .col-xs-7, .col-xs-8, .col-xs-9, .col-xs-10, .col-xs-11, .col-xs-12 {\n float: left;\n}\n.col-xs-12 {\n width: 100%;\n}\n.col-xs-11 {\n width: 91.66666667%;\n}\n.col-xs-10 {\n width: 83.33333333%;\n}\n.col-xs-9 {\n width: 75%;\n}\n.col-xs-8 {\n width: 66.66666667%;\n}\n.col-xs-7 {\n width: 58.33333333%;\n}\n.col-xs-6 {\n width: 50%;\n}\n.col-xs-5 {\n width: 41.66666667%;\n}\n.col-xs-4 {\n width: 33.33333333%;\n}\n.col-xs-3 {\n width: 25%;\n}\n.col-xs-2 {\n width: 16.66666667%;\n}\n.col-xs-1 {\n width: 8.33333333%;\n}\n.col-xs-pull-12 {\n right: 100%;\n}\n.col-xs-pull-11 {\n right: 91.66666667%;\n}\n.col-xs-pull-10 {\n right: 83.33333333%;\n}\n.col-xs-pull-9 {\n right: 75%;\n}\n.col-xs-pull-8 {\n right: 66.66666667%;\n}\n.col-xs-pull-7 {\n right: 58.33333333%;\n}\n.col-xs-pull-6 {\n right: 50%;\n}\n.col-xs-pull-5 {\n right: 41.66666667%;\n}\n.col-xs-pull-4 {\n right: 33.33333333%;\n}\n.col-xs-pull-3 {\n right: 25%;\n}\n.col-xs-pull-2 {\n right: 16.66666667%;\n}\n.col-xs-pull-1 {\n right: 8.33333333%;\n}\n.col-xs-pull-0 {\n right: auto;\n}\n.col-xs-push-12 {\n left: 100%;\n}\n.col-xs-push-11 {\n left: 91.66666667%;\n}\n.col-xs-push-10 {\n left: 83.33333333%;\n}\n.col-xs-push-9 {\n left: 75%;\n}\n.col-xs-push-8 {\n left: 66.66666667%;\n}\n.col-xs-push-7 {\n left: 58.33333333%;\n}\n.col-xs-push-6 {\n left: 50%;\n}\n.col-xs-push-5 {\n left: 41.66666667%;\n}\n.col-xs-push-4 {\n left: 33.33333333%;\n}\n.col-xs-push-3 {\n left: 25%;\n}\n.col-xs-push-2 {\n left: 16.66666667%;\n}\n.col-xs-push-1 {\n left: 8.33333333%;\n}\n.col-xs-push-0 {\n left: auto;\n}\n.col-xs-offset-12 {\n margin-left: 100%;\n}\n.col-xs-offset-11 {\n margin-left: 91.66666667%;\n}\n.col-xs-offset-10 {\n margin-left: 83.33333333%;\n}\n.col-xs-offset-9 {\n margin-left: 75%;\n}\n.col-xs-offset-8 {\n margin-left: 66.66666667%;\n}\n.col-xs-offset-7 {\n margin-left: 58.33333333%;\n}\n.col-xs-offset-6 {\n margin-left: 50%;\n}\n.col-xs-offset-5 {\n margin-left: 41.66666667%;\n}\n.col-xs-offset-4 {\n margin-left: 33.33333333%;\n}\n.col-xs-offset-3 {\n margin-left: 25%;\n}\n.col-xs-offset-2 {\n margin-left: 16.66666667%;\n}\n.col-xs-offset-1 {\n margin-left: 8.33333333%;\n}\n.col-xs-offset-0 {\n margin-left: 0%;\n}\n@media (min-width: 768px) {\n .col-sm-1, .col-sm-2, .col-sm-3, .col-sm-4, .col-sm-5, .col-sm-6, .col-sm-7, .col-sm-8, .col-sm-9, .col-sm-10, .col-sm-11, .col-sm-12 {\n float: left;\n }\n .col-sm-12 {\n width: 100%;\n }\n .col-sm-11 {\n width: 91.66666667%;\n }\n .col-sm-10 {\n width: 83.33333333%;\n }\n .col-sm-9 {\n width: 75%;\n }\n .col-sm-8 {\n width: 66.66666667%;\n }\n .col-sm-7 {\n width: 58.33333333%;\n }\n .col-sm-6 {\n width: 50%;\n }\n .col-sm-5 {\n width: 41.66666667%;\n }\n .col-sm-4 {\n width: 33.33333333%;\n }\n .col-sm-3 {\n width: 25%;\n }\n .col-sm-2 {\n width: 16.66666667%;\n }\n .col-sm-1 {\n width: 8.33333333%;\n }\n .col-sm-pull-12 {\n right: 100%;\n }\n .col-sm-pull-11 {\n right: 91.66666667%;\n }\n .col-sm-pull-10 {\n right: 83.33333333%;\n }\n .col-sm-pull-9 {\n right: 75%;\n }\n .col-sm-pull-8 {\n right: 66.66666667%;\n }\n .col-sm-pull-7 {\n right: 58.33333333%;\n }\n .col-sm-pull-6 {\n right: 50%;\n }\n .col-sm-pull-5 {\n right: 41.66666667%;\n }\n .col-sm-pull-4 {\n right: 33.33333333%;\n }\n .col-sm-pull-3 {\n right: 25%;\n }\n .col-sm-pull-2 {\n right: 16.66666667%;\n }\n .col-sm-pull-1 {\n right: 8.33333333%;\n }\n .col-sm-pull-0 {\n right: auto;\n }\n .col-sm-push-12 {\n left: 100%;\n }\n .col-sm-push-11 {\n left: 91.66666667%;\n }\n .col-sm-push-10 {\n left: 83.33333333%;\n }\n .col-sm-push-9 {\n left: 75%;\n }\n .col-sm-push-8 {\n left: 66.66666667%;\n }\n .col-sm-push-7 {\n left: 58.33333333%;\n }\n .col-sm-push-6 {\n left: 50%;\n }\n .col-sm-push-5 {\n left: 41.66666667%;\n }\n .col-sm-push-4 {\n left: 33.33333333%;\n }\n .col-sm-push-3 {\n left: 25%;\n }\n .col-sm-push-2 {\n left: 16.66666667%;\n }\n .col-sm-push-1 {\n left: 8.33333333%;\n }\n .col-sm-push-0 {\n left: auto;\n }\n .col-sm-offset-12 {\n margin-left: 100%;\n }\n .col-sm-offset-11 {\n margin-left: 91.66666667%;\n }\n .col-sm-offset-10 {\n margin-left: 83.33333333%;\n }\n .col-sm-offset-9 {\n margin-left: 75%;\n }\n .col-sm-offset-8 {\n margin-left: 66.66666667%;\n }\n .col-sm-offset-7 {\n margin-left: 58.33333333%;\n }\n .col-sm-offset-6 {\n margin-left: 50%;\n }\n .col-sm-offset-5 {\n margin-left: 41.66666667%;\n }\n .col-sm-offset-4 {\n margin-left: 33.33333333%;\n }\n .col-sm-offset-3 {\n margin-left: 25%;\n }\n .col-sm-offset-2 {\n margin-left: 16.66666667%;\n }\n .col-sm-offset-1 {\n margin-left: 8.33333333%;\n }\n .col-sm-offset-0 {\n margin-left: 0%;\n }\n}\n@media (min-width: 992px) {\n .col-md-1, .col-md-2, .col-md-3, .col-md-4, .col-md-5, .col-md-6, .col-md-7, .col-md-8, .col-md-9, .col-md-10, .col-md-11, .col-md-12 {\n float: left;\n }\n .col-md-12 {\n width: 100%;\n }\n .col-md-11 {\n width: 91.66666667%;\n }\n .col-md-10 {\n width: 83.33333333%;\n }\n .col-md-9 {\n width: 75%;\n }\n .col-md-8 {\n width: 66.66666667%;\n }\n .col-md-7 {\n width: 58.33333333%;\n }\n .col-md-6 {\n width: 50%;\n }\n .col-md-5 {\n width: 41.66666667%;\n }\n .col-md-4 {\n width: 33.33333333%;\n }\n .col-md-3 {\n width: 25%;\n }\n .col-md-2 {\n width: 16.66666667%;\n }\n .col-md-1 {\n width: 8.33333333%;\n }\n .col-md-pull-12 {\n right: 100%;\n }\n .col-md-pull-11 {\n right: 91.66666667%;\n }\n .col-md-pull-10 {\n right: 83.33333333%;\n }\n .col-md-pull-9 {\n right: 75%;\n }\n .col-md-pull-8 {\n right: 66.66666667%;\n }\n .col-md-pull-7 {\n right: 58.33333333%;\n }\n .col-md-pull-6 {\n right: 50%;\n }\n .col-md-pull-5 {\n right: 41.66666667%;\n }\n .col-md-pull-4 {\n right: 33.33333333%;\n }\n .col-md-pull-3 {\n right: 25%;\n }\n .col-md-pull-2 {\n right: 16.66666667%;\n }\n .col-md-pull-1 {\n right: 8.33333333%;\n }\n .col-md-pull-0 {\n right: auto;\n }\n .col-md-push-12 {\n left: 100%;\n }\n .col-md-push-11 {\n left: 91.66666667%;\n }\n .col-md-push-10 {\n left: 83.33333333%;\n }\n .col-md-push-9 {\n left: 75%;\n }\n .col-md-push-8 {\n left: 66.66666667%;\n }\n .col-md-push-7 {\n left: 58.33333333%;\n }\n .col-md-push-6 {\n left: 50%;\n }\n .col-md-push-5 {\n left: 41.66666667%;\n }\n .col-md-push-4 {\n left: 33.33333333%;\n }\n .col-md-push-3 {\n left: 25%;\n }\n .col-md-push-2 {\n left: 16.66666667%;\n }\n .col-md-push-1 {\n left: 8.33333333%;\n }\n .col-md-push-0 {\n left: auto;\n }\n .col-md-offset-12 {\n margin-left: 100%;\n }\n .col-md-offset-11 {\n margin-left: 91.66666667%;\n }\n .col-md-offset-10 {\n margin-left: 83.33333333%;\n }\n .col-md-offset-9 {\n margin-left: 75%;\n }\n .col-md-offset-8 {\n margin-left: 66.66666667%;\n }\n .col-md-offset-7 {\n margin-left: 58.33333333%;\n }\n .col-md-offset-6 {\n margin-left: 50%;\n }\n .col-md-offset-5 {\n margin-left: 41.66666667%;\n }\n .col-md-offset-4 {\n margin-left: 33.33333333%;\n }\n .col-md-offset-3 {\n margin-left: 25%;\n }\n .col-md-offset-2 {\n margin-left: 16.66666667%;\n }\n .col-md-offset-1 {\n margin-left: 8.33333333%;\n }\n .col-md-offset-0 {\n margin-left: 0%;\n }\n}\n@media (min-width: 1200px) {\n .col-lg-1, .col-lg-2, .col-lg-3, .col-lg-4, .col-lg-5, .col-lg-6, .col-lg-7, .col-lg-8, .col-lg-9, .col-lg-10, .col-lg-11, .col-lg-12 {\n float: left;\n }\n .col-lg-12 {\n width: 100%;\n }\n .col-lg-11 {\n width: 91.66666667%;\n }\n .col-lg-10 {\n width: 83.33333333%;\n }\n .col-lg-9 {\n width: 75%;\n }\n .col-lg-8 {\n width: 66.66666667%;\n }\n .col-lg-7 {\n width: 58.33333333%;\n }\n .col-lg-6 {\n width: 50%;\n }\n .col-lg-5 {\n width: 41.66666667%;\n }\n .col-lg-4 {\n width: 33.33333333%;\n }\n .col-lg-3 {\n width: 25%;\n }\n .col-lg-2 {\n width: 16.66666667%;\n }\n .col-lg-1 {\n width: 8.33333333%;\n }\n .col-lg-pull-12 {\n right: 100%;\n }\n .col-lg-pull-11 {\n right: 91.66666667%;\n }\n .col-lg-pull-10 {\n right: 83.33333333%;\n }\n .col-lg-pull-9 {\n right: 75%;\n }\n .col-lg-pull-8 {\n right: 66.66666667%;\n }\n .col-lg-pull-7 {\n right: 58.33333333%;\n }\n .col-lg-pull-6 {\n right: 50%;\n }\n .col-lg-pull-5 {\n right: 41.66666667%;\n }\n .col-lg-pull-4 {\n right: 33.33333333%;\n }\n .col-lg-pull-3 {\n right: 25%;\n }\n .col-lg-pull-2 {\n right: 16.66666667%;\n }\n .col-lg-pull-1 {\n right: 8.33333333%;\n }\n .col-lg-pull-0 {\n right: auto;\n }\n .col-lg-push-12 {\n left: 100%;\n }\n .col-lg-push-11 {\n left: 91.66666667%;\n }\n .col-lg-push-10 {\n left: 83.33333333%;\n }\n .col-lg-push-9 {\n left: 75%;\n }\n .col-lg-push-8 {\n left: 66.66666667%;\n }\n .col-lg-push-7 {\n left: 58.33333333%;\n }\n .col-lg-push-6 {\n left: 50%;\n }\n .col-lg-push-5 {\n left: 41.66666667%;\n }\n .col-lg-push-4 {\n left: 33.33333333%;\n }\n .col-lg-push-3 {\n left: 25%;\n }\n .col-lg-push-2 {\n left: 16.66666667%;\n }\n .col-lg-push-1 {\n left: 8.33333333%;\n }\n .col-lg-push-0 {\n left: auto;\n }\n .col-lg-offset-12 {\n margin-left: 100%;\n }\n .col-lg-offset-11 {\n margin-left: 91.66666667%;\n }\n .col-lg-offset-10 {\n margin-left: 83.33333333%;\n }\n .col-lg-offset-9 {\n margin-left: 75%;\n }\n .col-lg-offset-8 {\n margin-left: 66.66666667%;\n }\n .col-lg-offset-7 {\n margin-left: 58.33333333%;\n }\n .col-lg-offset-6 {\n margin-left: 50%;\n }\n .col-lg-offset-5 {\n margin-left: 41.66666667%;\n }\n .col-lg-offset-4 {\n margin-left: 33.33333333%;\n }\n .col-lg-offset-3 {\n margin-left: 25%;\n }\n .col-lg-offset-2 {\n margin-left: 16.66666667%;\n }\n .col-lg-offset-1 {\n margin-left: 8.33333333%;\n }\n .col-lg-offset-0 {\n margin-left: 0%;\n }\n}\ntable {\n background-color: transparent;\n}\ncaption {\n padding-top: 8px;\n padding-bottom: 8px;\n color: #777777;\n text-align: left;\n}\nth {\n text-align: left;\n}\n.table {\n width: 100%;\n max-width: 100%;\n margin-bottom: 20px;\n}\n.table > thead > tr > th,\n.table > tbody > tr > th,\n.table > tfoot > tr > th,\n.table > thead > tr > td,\n.table > tbody > tr > td,\n.table > tfoot > tr > td {\n padding: 8px;\n line-height: 1.42857143;\n vertical-align: top;\n border-top: 1px solid #dddddd;\n}\n.table > thead > tr > th {\n vertical-align: bottom;\n border-bottom: 2px solid #dddddd;\n}\n.table > caption + thead > tr:first-child > th,\n.table > colgroup + thead > tr:first-child > th,\n.table > thead:first-child > tr:first-child > th,\n.table > caption + thead > tr:first-child > td,\n.table > colgroup + thead > tr:first-child > td,\n.table > thead:first-child > tr:first-child > td {\n border-top: 0;\n}\n.table > tbody + tbody {\n border-top: 2px solid #dddddd;\n}\n.table .table {\n background-color: #ffffff;\n}\n.table-condensed > thead > tr > th,\n.table-condensed > tbody > tr > th,\n.table-condensed > tfoot > tr > th,\n.table-condensed > thead > tr > td,\n.table-condensed > tbody > tr > td,\n.table-condensed > tfoot > tr > td {\n padding: 5px;\n}\n.table-bordered {\n border: 1px solid #dddddd;\n}\n.table-bordered > thead > tr > th,\n.table-bordered > tbody > tr > th,\n.table-bordered > tfoot > tr > th,\n.table-bordered > thead > tr > td,\n.table-bordered > tbody > tr > td,\n.table-bordered > tfoot > tr > td {\n border: 1px solid #dddddd;\n}\n.table-bordered > thead > tr > th,\n.table-bordered > thead > tr > td {\n border-bottom-width: 2px;\n}\n.table-striped > tbody > tr:nth-child(odd) {\n background-color: #f9f9f9;\n}\n.table-hover > tbody > tr:hover {\n background-color: #f5f5f5;\n}\ntable col[class*=\"col-\"] {\n position: static;\n float: none;\n display: table-column;\n}\ntable td[class*=\"col-\"],\ntable th[class*=\"col-\"] {\n position: static;\n float: none;\n display: table-cell;\n}\n.table > thead > tr > td.active,\n.table > tbody > tr > td.active,\n.table > tfoot > tr > td.active,\n.table > thead > tr > th.active,\n.table > tbody > tr > th.active,\n.table > tfoot > tr > th.active,\n.table > thead > tr.active > td,\n.table > tbody > tr.active > td,\n.table > tfoot > tr.active > td,\n.table > thead > tr.active > th,\n.table > tbody > tr.active > th,\n.table > tfoot > tr.active > th {\n background-color: #f5f5f5;\n}\n.table-hover > tbody > tr > td.active:hover,\n.table-hover > tbody > tr > th.active:hover,\n.table-hover > tbody > tr.active:hover > td,\n.table-hover > tbody > tr:hover > .active,\n.table-hover > tbody > tr.active:hover > th {\n background-color: #e8e8e8;\n}\n.table > thead > tr > td.success,\n.table > tbody > tr > td.success,\n.table > tfoot > tr > td.success,\n.table > thead > tr > th.success,\n.table > tbody > tr > th.success,\n.table > tfoot > tr > th.success,\n.table > thead > tr.success > td,\n.table > tbody > tr.success > td,\n.table > tfoot > tr.success > td,\n.table > thead > tr.success > th,\n.table > tbody > tr.success > th,\n.table > tfoot > tr.success > th {\n background-color: #dff0d8;\n}\n.table-hover > tbody > tr > td.success:hover,\n.table-hover > tbody > tr > th.success:hover,\n.table-hover > tbody > tr.success:hover > td,\n.table-hover > tbody > tr:hover > .success,\n.table-hover > tbody > tr.success:hover > th {\n background-color: #d0e9c6;\n}\n.table > thead > tr > td.info,\n.table > tbody > tr > td.info,\n.table > tfoot > tr > td.info,\n.table > thead > tr > th.info,\n.table > tbody > tr > th.info,\n.table > tfoot > tr > th.info,\n.table > thead > tr.info > td,\n.table > tbody > tr.info > td,\n.table > tfoot > tr.info > td,\n.table > thead > tr.info > th,\n.table > tbody > tr.info > th,\n.table > tfoot > tr.info > th {\n background-color: #d9edf7;\n}\n.table-hover > tbody > tr > td.info:hover,\n.table-hover > tbody > tr > th.info:hover,\n.table-hover > tbody > tr.info:hover > td,\n.table-hover > tbody > tr:hover > .info,\n.table-hover > tbody > tr.info:hover > th {\n background-color: #c4e3f3;\n}\n.table > thead > tr > td.warning,\n.table > tbody > tr > td.warning,\n.table > tfoot > tr > td.warning,\n.table > thead > tr > th.warning,\n.table > tbody > tr > th.warning,\n.table > tfoot > tr > th.warning,\n.table > thead > tr.warning > td,\n.table > tbody > tr.warning > td,\n.table > tfoot > tr.warning > td,\n.table > thead > tr.warning > th,\n.table > tbody > tr.warning > th,\n.table > tfoot > tr.warning > th {\n background-color: #fcf8e3;\n}\n.table-hover > tbody > tr > td.warning:hover,\n.table-hover > tbody > tr > th.warning:hover,\n.table-hover > tbody > tr.warning:hover > td,\n.table-hover > tbody > tr:hover > .warning,\n.table-hover > tbody > tr.warning:hover > th {\n background-color: #faf2cc;\n}\n.table > thead > tr > td.danger,\n.table > tbody > tr > td.danger,\n.table > tfoot > tr > td.danger,\n.table > thead > tr > th.danger,\n.table > tbody > tr > th.danger,\n.table > tfoot > tr > th.danger,\n.table > thead > tr.danger > td,\n.table > tbody > tr.danger > td,\n.table > tfoot > tr.danger > td,\n.table > thead > tr.danger > th,\n.table > tbody > tr.danger > th,\n.table > tfoot > tr.danger > th {\n background-color: #f2dede;\n}\n.table-hover > tbody > tr > td.danger:hover,\n.table-hover > tbody > tr > th.danger:hover,\n.table-hover > tbody > tr.danger:hover > td,\n.table-hover > tbody > tr:hover > .danger,\n.table-hover > tbody > tr.danger:hover > th {\n background-color: #ebcccc;\n}\n.table-responsive {\n overflow-x: auto;\n min-height: 0.01%;\n}\n@media screen and (max-width: 767px) {\n .table-responsive {\n width: 100%;\n margin-bottom: 15px;\n overflow-y: hidden;\n -ms-overflow-style: -ms-autohiding-scrollbar;\n border: 1px solid #dddddd;\n }\n .table-responsive > .table {\n margin-bottom: 0;\n }\n .table-responsive > .table > thead > tr > th,\n .table-responsive > .table > tbody > tr > th,\n .table-responsive > .table > tfoot > tr > th,\n .table-responsive > .table > thead > tr > td,\n .table-responsive > .table > tbody > tr > td,\n .table-responsive > .table > tfoot > tr > td {\n white-space: nowrap;\n }\n .table-responsive > .table-bordered {\n border: 0;\n }\n .table-responsive > .table-bordered > thead > tr > th:first-child,\n .table-responsive > .table-bordered > tbody > tr > th:first-child,\n .table-responsive > .table-bordered > tfoot > tr > th:first-child,\n .table-responsive > .table-bordered > thead > tr > td:first-child,\n .table-responsive > .table-bordered > tbody > tr > td:first-child,\n .table-responsive > .table-bordered > tfoot > tr > td:first-child {\n border-left: 0;\n }\n .table-responsive > .table-bordered > thead > tr > th:last-child,\n .table-responsive > .table-bordered > tbody > tr > th:last-child,\n .table-responsive > .table-bordered > tfoot > tr > th:last-child,\n .table-responsive > .table-bordered > thead > tr > td:last-child,\n .table-responsive > .table-bordered > tbody > tr > td:last-child,\n .table-responsive > .table-bordered > tfoot > tr > td:last-child {\n border-right: 0;\n }\n .table-responsive > .table-bordered > tbody > tr:last-child > th,\n .table-responsive > .table-bordered > tfoot > tr:last-child > th,\n .table-responsive > .table-bordered > tbody > tr:last-child > td,\n .table-responsive > .table-bordered > tfoot > tr:last-child > td {\n border-bottom: 0;\n }\n}\nfieldset {\n padding: 0;\n margin: 0;\n border: 0;\n min-width: 0;\n}\nlegend {\n display: block;\n width: 100%;\n padding: 0;\n margin-bottom: 20px;\n font-size: 21px;\n line-height: inherit;\n color: #333333;\n border: 0;\n border-bottom: 1px solid #e5e5e5;\n}\nlabel {\n display: inline-block;\n max-width: 100%;\n margin-bottom: 5px;\n font-weight: bold;\n}\ninput[type=\"search\"] {\n -webkit-box-sizing: border-box;\n -moz-box-sizing: border-box;\n box-sizing: border-box;\n}\ninput[type=\"radio\"],\ninput[type=\"checkbox\"] {\n margin: 4px 0 0;\n margin-top: 1px \\9;\n line-height: normal;\n}\ninput[type=\"file\"] {\n display: block;\n}\ninput[type=\"range\"] {\n display: block;\n width: 100%;\n}\nselect[multiple],\nselect[size] {\n height: auto;\n}\ninput[type=\"file\"]:focus,\ninput[type=\"radio\"]:focus,\ninput[type=\"checkbox\"]:focus {\n outline: thin dotted;\n outline: 5px auto -webkit-focus-ring-color;\n outline-offset: -2px;\n}\noutput {\n display: block;\n padding-top: 7px;\n font-size: 14px;\n line-height: 1.42857143;\n color: #555555;\n}\n.form-control {\n display: block;\n width: 100%;\n height: 34px;\n padding: 6px 12px;\n font-size: 14px;\n line-height: 1.42857143;\n color: #555555;\n background-color: #ffffff;\n background-image: none;\n border: 1px solid #cccccc;\n border-radius: 4px;\n -webkit-box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.075);\n box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.075);\n -webkit-transition: border-color ease-in-out .15s, box-shadow ease-in-out .15s;\n -o-transition: border-color ease-in-out .15s, box-shadow ease-in-out .15s;\n transition: border-color ease-in-out .15s, box-shadow ease-in-out .15s;\n}\n.form-control:focus {\n border-color: #66afe9;\n outline: 0;\n -webkit-box-shadow: inset 0 1px 1px rgba(0,0,0,.075), 0 0 8px rgba(102, 175, 233, 0.6);\n box-shadow: inset 0 1px 1px rgba(0,0,0,.075), 0 0 8px rgba(102, 175, 233, 0.6);\n}\n.form-control::-moz-placeholder {\n color: #999999;\n opacity: 1;\n}\n.form-control:-ms-input-placeholder {\n color: #999999;\n}\n.form-control::-webkit-input-placeholder {\n color: #999999;\n}\n.form-control[disabled],\n.form-control[readonly],\nfieldset[disabled] .form-control {\n cursor: not-allowed;\n background-color: #eeeeee;\n opacity: 1;\n}\ntextarea.form-control {\n height: auto;\n}\ninput[type=\"search\"] {\n -webkit-appearance: none;\n}\ninput[type=\"date\"],\ninput[type=\"time\"],\ninput[type=\"datetime-local\"],\ninput[type=\"month\"] {\n line-height: 34px;\n line-height: 1.42857143 \\0;\n}\ninput[type=\"date\"].input-sm,\ninput[type=\"time\"].input-sm,\ninput[type=\"datetime-local\"].input-sm,\ninput[type=\"month\"].input-sm {\n line-height: 30px;\n line-height: 1.5 \\0;\n}\ninput[type=\"date\"].input-lg,\ninput[type=\"time\"].input-lg,\ninput[type=\"datetime-local\"].input-lg,\ninput[type=\"month\"].input-lg {\n line-height: 46px;\n line-height: 1.33 \\0;\n}\n_:-ms-fullscreen,\n:root input[type=\"date\"],\n_:-ms-fullscreen,\n:root input[type=\"time\"],\n_:-ms-fullscreen,\n:root input[type=\"datetime-local\"],\n_:-ms-fullscreen,\n:root input[type=\"month\"] {\n line-height: 1.42857143;\n}\n_:-ms-fullscreen.input-sm,\n:root input[type=\"date\"].input-sm,\n_:-ms-fullscreen.input-sm,\n:root input[type=\"time\"].input-sm,\n_:-ms-fullscreen.input-sm,\n:root input[type=\"datetime-local\"].input-sm,\n_:-ms-fullscreen.input-sm,\n:root input[type=\"month\"].input-sm {\n line-height: 1.5;\n}\n_:-ms-fullscreen.input-lg,\n:root input[type=\"date\"].input-lg,\n_:-ms-fullscreen.input-lg,\n:root input[type=\"time\"].input-lg,\n_:-ms-fullscreen.input-lg,\n:root input[type=\"datetime-local\"].input-lg,\n_:-ms-fullscreen.input-lg,\n:root input[type=\"month\"].input-lg {\n line-height: 1.33;\n}\n.form-group {\n margin-bottom: 15px;\n}\n.radio,\n.checkbox {\n position: relative;\n display: block;\n margin-top: 10px;\n margin-bottom: 10px;\n}\n.radio label,\n.checkbox label {\n min-height: 20px;\n padding-left: 20px;\n margin-bottom: 0;\n font-weight: normal;\n cursor: pointer;\n}\n.radio input[type=\"radio\"],\n.radio-inline input[type=\"radio\"],\n.checkbox input[type=\"checkbox\"],\n.checkbox-inline input[type=\"checkbox\"] {\n position: absolute;\n margin-left: -20px;\n margin-top: 4px \\9;\n}\n.radio + .radio,\n.checkbox + .checkbox {\n margin-top: -5px;\n}\n.radio-inline,\n.checkbox-inline {\n display: inline-block;\n padding-left: 20px;\n margin-bottom: 0;\n vertical-align: middle;\n font-weight: normal;\n cursor: pointer;\n}\n.radio-inline + .radio-inline,\n.checkbox-inline + .checkbox-inline {\n margin-top: 0;\n margin-left: 10px;\n}\ninput[type=\"radio\"][disabled],\ninput[type=\"checkbox\"][disabled],\ninput[type=\"radio\"].disabled,\ninput[type=\"checkbox\"].disabled,\nfieldset[disabled] input[type=\"radio\"],\nfieldset[disabled] input[type=\"checkbox\"] {\n cursor: not-allowed;\n}\n.radio-inline.disabled,\n.checkbox-inline.disabled,\nfieldset[disabled] .radio-inline,\nfieldset[disabled] .checkbox-inline {\n cursor: not-allowed;\n}\n.radio.disabled label,\n.checkbox.disabled label,\nfieldset[disabled] .radio label,\nfieldset[disabled] .checkbox label {\n cursor: not-allowed;\n}\n.form-control-static {\n padding-top: 7px;\n padding-bottom: 7px;\n margin-bottom: 0;\n}\n.form-control-static.input-lg,\n.form-control-static.input-sm {\n padding-left: 0;\n padding-right: 0;\n}\n.input-sm,\n.form-group-sm .form-control {\n height: 30px;\n padding: 5px 10px;\n font-size: 12px;\n line-height: 1.5;\n border-radius: 3px;\n}\nselect.input-sm,\nselect.form-group-sm .form-control {\n height: 30px;\n line-height: 30px;\n}\ntextarea.input-sm,\ntextarea.form-group-sm .form-control,\nselect[multiple].input-sm,\nselect[multiple].form-group-sm .form-control {\n height: auto;\n}\n.input-lg,\n.form-group-lg .form-control {\n height: 46px;\n padding: 10px 16px;\n font-size: 18px;\n line-height: 1.33;\n border-radius: 6px;\n}\nselect.input-lg,\nselect.form-group-lg .form-control {\n height: 46px;\n line-height: 46px;\n}\ntextarea.input-lg,\ntextarea.form-group-lg .form-control,\nselect[multiple].input-lg,\nselect[multiple].form-group-lg .form-control {\n height: auto;\n}\n.has-feedback {\n position: relative;\n}\n.has-feedback .form-control {\n padding-right: 42.5px;\n}\n.form-control-feedback {\n position: absolute;\n top: 0;\n right: 0;\n z-index: 2;\n display: block;\n width: 34px;\n height: 34px;\n line-height: 34px;\n text-align: center;\n pointer-events: none;\n}\n.input-lg + .form-control-feedback {\n width: 46px;\n height: 46px;\n line-height: 46px;\n}\n.input-sm + .form-control-feedback {\n width: 30px;\n height: 30px;\n line-height: 30px;\n}\n.has-success .help-block,\n.has-success .control-label,\n.has-success .radio,\n.has-success .checkbox,\n.has-success .radio-inline,\n.has-success .checkbox-inline,\n.has-success.radio label,\n.has-success.checkbox label,\n.has-success.radio-inline label,\n.has-success.checkbox-inline label {\n color: #3c763d;\n}\n.has-success .form-control {\n border-color: #3c763d;\n -webkit-box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.075);\n box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.075);\n}\n.has-success .form-control:focus {\n border-color: #2b542c;\n -webkit-box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.075), 0 0 6px #67b168;\n box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.075), 0 0 6px #67b168;\n}\n.has-success .input-group-addon {\n color: #3c763d;\n border-color: #3c763d;\n background-color: #dff0d8;\n}\n.has-success .form-control-feedback {\n color: #3c763d;\n}\n.has-warning .help-block,\n.has-warning .control-label,\n.has-warning .radio,\n.has-warning .checkbox,\n.has-warning .radio-inline,\n.has-warning .checkbox-inline,\n.has-warning.radio label,\n.has-warning.checkbox label,\n.has-warning.radio-inline label,\n.has-warning.checkbox-inline label {\n color: #8a6d3b;\n}\n.has-warning .form-control {\n border-color: #8a6d3b;\n -webkit-box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.075);\n box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.075);\n}\n.has-warning .form-control:focus {\n border-color: #66512c;\n -webkit-box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.075), 0 0 6px #c0a16b;\n box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.075), 0 0 6px #c0a16b;\n}\n.has-warning .input-group-addon {\n color: #8a6d3b;\n border-color: #8a6d3b;\n background-color: #fcf8e3;\n}\n.has-warning .form-control-feedback {\n color: #8a6d3b;\n}\n.has-error .help-block,\n.has-error .control-label,\n.has-error .radio,\n.has-error .checkbox,\n.has-error .radio-inline,\n.has-error .checkbox-inline,\n.has-error.radio label,\n.has-error.checkbox label,\n.has-error.radio-inline label,\n.has-error.checkbox-inline label {\n color: #a94442;\n}\n.has-error .form-control {\n border-color: #a94442;\n -webkit-box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.075);\n box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.075);\n}\n.has-error .form-control:focus {\n border-color: #843534;\n -webkit-box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.075), 0 0 6px #ce8483;\n box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.075), 0 0 6px #ce8483;\n}\n.has-error .input-group-addon {\n color: #a94442;\n border-color: #a94442;\n background-color: #f2dede;\n}\n.has-error .form-control-feedback {\n color: #a94442;\n}\n.has-feedback label ~ .form-control-feedback {\n top: 25px;\n}\n.has-feedback label.sr-only ~ .form-control-feedback {\n top: 0;\n}\n.help-block {\n display: block;\n margin-top: 5px;\n margin-bottom: 10px;\n color: #737373;\n}\n@media (min-width: 768px) {\n .form-inline .form-group {\n display: inline-block;\n margin-bottom: 0;\n vertical-align: middle;\n }\n .form-inline .form-control {\n display: inline-block;\n width: auto;\n vertical-align: middle;\n }\n .form-inline .form-control-static {\n display: inline-block;\n }\n .form-inline .input-group {\n display: inline-table;\n vertical-align: middle;\n }\n .form-inline .input-group .input-group-addon,\n .form-inline .input-group .input-group-btn,\n .form-inline .input-group .form-control {\n width: auto;\n }\n .form-inline .input-group > .form-control {\n width: 100%;\n }\n .form-inline .control-label {\n margin-bottom: 0;\n vertical-align: middle;\n }\n .form-inline .radio,\n .form-inline .checkbox {\n display: inline-block;\n margin-top: 0;\n margin-bottom: 0;\n vertical-align: middle;\n }\n .form-inline .radio label,\n .form-inline .checkbox label {\n padding-left: 0;\n }\n .form-inline .radio input[type=\"radio\"],\n .form-inline .checkbox input[type=\"checkbox\"] {\n position: relative;\n margin-left: 0;\n }\n .form-inline .has-feedback .form-control-feedback {\n top: 0;\n }\n}\n.form-horizontal .radio,\n.form-horizontal .checkbox,\n.form-horizontal .radio-inline,\n.form-horizontal .checkbox-inline {\n margin-top: 0;\n margin-bottom: 0;\n padding-top: 7px;\n}\n.form-horizontal .radio,\n.form-horizontal .checkbox {\n min-height: 27px;\n}\n.form-horizontal .form-group {\n margin-left: -15px;\n margin-right: -15px;\n}\n@media (min-width: 768px) {\n .form-horizontal .control-label {\n text-align: right;\n margin-bottom: 0;\n padding-top: 7px;\n }\n}\n.form-horizontal .has-feedback .form-control-feedback {\n right: 15px;\n}\n@media (min-width: 768px) {\n .form-horizontal .form-group-lg .control-label {\n padding-top: 14.3px;\n }\n}\n@media (min-width: 768px) {\n .form-horizontal .form-group-sm .control-label {\n padding-top: 6px;\n }\n}\n.btn {\n display: inline-block;\n margin-bottom: 0;\n font-weight: normal;\n text-align: center;\n vertical-align: middle;\n touch-action: manipulation;\n cursor: pointer;\n background-image: none;\n border: 1px solid transparent;\n white-space: nowrap;\n padding: 6px 12px;\n font-size: 14px;\n line-height: 1.42857143;\n border-radius: 4px;\n -webkit-user-select: none;\n -moz-user-select: none;\n -ms-user-select: none;\n user-select: none;\n}\n.btn:focus,\n.btn:active:focus,\n.btn.active:focus,\n.btn.focus,\n.btn:active.focus,\n.btn.active.focus {\n outline: thin dotted;\n outline: 5px auto -webkit-focus-ring-color;\n outline-offset: -2px;\n}\n.btn:hover,\n.btn:focus,\n.btn.focus {\n color: #333333;\n text-decoration: none;\n}\n.btn:active,\n.btn.active {\n outline: 0;\n background-image: none;\n -webkit-box-shadow: inset 0 3px 5px rgba(0, 0, 0, 0.125);\n box-shadow: inset 0 3px 5px rgba(0, 0, 0, 0.125);\n}\n.btn.disabled,\n.btn[disabled],\nfieldset[disabled] .btn {\n cursor: not-allowed;\n pointer-events: none;\n opacity: 0.65;\n filter: alpha(opacity=65);\n -webkit-box-shadow: none;\n box-shadow: none;\n}\n.btn-default {\n color: #333333;\n background-color: #ffffff;\n border-color: #cccccc;\n}\n.btn-default:hover,\n.btn-default:focus,\n.btn-default.focus,\n.btn-default:active,\n.btn-default.active,\n.open > .dropdown-toggle.btn-default {\n color: #333333;\n background-color: #e6e6e6;\n border-color: #adadad;\n}\n.btn-default:active,\n.btn-default.active,\n.open > .dropdown-toggle.btn-default {\n background-image: none;\n}\n.btn-default.disabled,\n.btn-default[disabled],\nfieldset[disabled] .btn-default,\n.btn-default.disabled:hover,\n.btn-default[disabled]:hover,\nfieldset[disabled] .btn-default:hover,\n.btn-default.disabled:focus,\n.btn-default[disabled]:focus,\nfieldset[disabled] .btn-default:focus,\n.btn-default.disabled.focus,\n.btn-default[disabled].focus,\nfieldset[disabled] .btn-default.focus,\n.btn-default.disabled:active,\n.btn-default[disabled]:active,\nfieldset[disabled] .btn-default:active,\n.btn-default.disabled.active,\n.btn-default[disabled].active,\nfieldset[disabled] .btn-default.active {\n background-color: #ffffff;\n border-color: #cccccc;\n}\n.btn-default .badge {\n color: #ffffff;\n background-color: #333333;\n}\n.btn-primary {\n color: #ffffff;\n background-color: #428bca;\n border-color: #357ebd;\n}\n.btn-primary:hover,\n.btn-primary:focus,\n.btn-primary.focus,\n.btn-primary:active,\n.btn-primary.active,\n.open > .dropdown-toggle.btn-primary {\n color: #ffffff;\n background-color: #3071a9;\n border-color: #285e8e;\n}\n.btn-primary:active,\n.btn-primary.active,\n.open > .dropdown-toggle.btn-primary {\n background-image: none;\n}\n.btn-primary.disabled,\n.btn-primary[disabled],\nfieldset[disabled] .btn-primary,\n.btn-primary.disabled:hover,\n.btn-primary[disabled]:hover,\nfieldset[disabled] .btn-primary:hover,\n.btn-primary.disabled:focus,\n.btn-primary[disabled]:focus,\nfieldset[disabled] .btn-primary:focus,\n.btn-primary.disabled.focus,\n.btn-primary[disabled].focus,\nfieldset[disabled] .btn-primary.focus,\n.btn-primary.disabled:active,\n.btn-primary[disabled]:active,\nfieldset[disabled] .btn-primary:active,\n.btn-primary.disabled.active,\n.btn-primary[disabled].active,\nfieldset[disabled] .btn-primary.active {\n background-color: #428bca;\n border-color: #357ebd;\n}\n.btn-primary .badge {\n color: #428bca;\n background-color: #ffffff;\n}\n.btn-success {\n color: #ffffff;\n background-color: #5cb85c;\n border-color: #4cae4c;\n}\n.btn-success:hover,\n.btn-success:focus,\n.btn-success.focus,\n.btn-success:active,\n.btn-success.active,\n.open > .dropdown-toggle.btn-success {\n color: #ffffff;\n background-color: #449d44;\n border-color: #398439;\n}\n.btn-success:active,\n.btn-success.active,\n.open > .dropdown-toggle.btn-success {\n background-image: none;\n}\n.btn-success.disabled,\n.btn-success[disabled],\nfieldset[disabled] .btn-success,\n.btn-success.disabled:hover,\n.btn-success[disabled]:hover,\nfieldset[disabled] .btn-success:hover,\n.btn-success.disabled:focus,\n.btn-success[disabled]:focus,\nfieldset[disabled] .btn-success:focus,\n.btn-success.disabled.focus,\n.btn-success[disabled].focus,\nfieldset[disabled] .btn-success.focus,\n.btn-success.disabled:active,\n.btn-success[disabled]:active,\nfieldset[disabled] .btn-success:active,\n.btn-success.disabled.active,\n.btn-success[disabled].active,\nfieldset[disabled] .btn-success.active {\n background-color: #5cb85c;\n border-color: #4cae4c;\n}\n.btn-success .badge {\n color: #5cb85c;\n background-color: #ffffff;\n}\n.btn-info {\n color: #ffffff;\n background-color: #5bc0de;\n border-color: #46b8da;\n}\n.btn-info:hover,\n.btn-info:focus,\n.btn-info.focus,\n.btn-info:active,\n.btn-info.active,\n.open > .dropdown-toggle.btn-info {\n color: #ffffff;\n background-color: #31b0d5;\n border-color: #269abc;\n}\n.btn-info:active,\n.btn-info.active,\n.open > .dropdown-toggle.btn-info {\n background-image: none;\n}\n.btn-info.disabled,\n.btn-info[disabled],\nfieldset[disabled] .btn-info,\n.btn-info.disabled:hover,\n.btn-info[disabled]:hover,\nfieldset[disabled] .btn-info:hover,\n.btn-info.disabled:focus,\n.btn-info[disabled]:focus,\nfieldset[disabled] .btn-info:focus,\n.btn-info.disabled.focus,\n.btn-info[disabled].focus,\nfieldset[disabled] .btn-info.focus,\n.btn-info.disabled:active,\n.btn-info[disabled]:active,\nfieldset[disabled] .btn-info:active,\n.btn-info.disabled.active,\n.btn-info[disabled].active,\nfieldset[disabled] .btn-info.active {\n background-color: #5bc0de;\n border-color: #46b8da;\n}\n.btn-info .badge {\n color: #5bc0de;\n background-color: #ffffff;\n}\n.btn-warning {\n color: #ffffff;\n background-color: #f0ad4e;\n border-color: #eea236;\n}\n.btn-warning:hover,\n.btn-warning:focus,\n.btn-warning.focus,\n.btn-warning:active,\n.btn-warning.active,\n.open > .dropdown-toggle.btn-warning {\n color: #ffffff;\n background-color: #ec971f;\n border-color: #d58512;\n}\n.btn-warning:active,\n.btn-warning.active,\n.open > .dropdown-toggle.btn-warning {\n background-image: none;\n}\n.btn-warning.disabled,\n.btn-warning[disabled],\nfieldset[disabled] .btn-warning,\n.btn-warning.disabled:hover,\n.btn-warning[disabled]:hover,\nfieldset[disabled] .btn-warning:hover,\n.btn-warning.disabled:focus,\n.btn-warning[disabled]:focus,\nfieldset[disabled] .btn-warning:focus,\n.btn-warning.disabled.focus,\n.btn-warning[disabled].focus,\nfieldset[disabled] .btn-warning.focus,\n.btn-warning.disabled:active,\n.btn-warning[disabled]:active,\nfieldset[disabled] .btn-warning:active,\n.btn-warning.disabled.active,\n.btn-warning[disabled].active,\nfieldset[disabled] .btn-warning.active {\n background-color: #f0ad4e;\n border-color: #eea236;\n}\n.btn-warning .badge {\n color: #f0ad4e;\n background-color: #ffffff;\n}\n.btn-danger {\n color: #ffffff;\n background-color: #d9534f;\n border-color: #d43f3a;\n}\n.btn-danger:hover,\n.btn-danger:focus,\n.btn-danger.focus,\n.btn-danger:active,\n.btn-danger.active,\n.open > .dropdown-toggle.btn-danger {\n color: #ffffff;\n background-color: #c9302c;\n border-color: #ac2925;\n}\n.btn-danger:active,\n.btn-danger.active,\n.open > .dropdown-toggle.btn-danger {\n background-image: none;\n}\n.btn-danger.disabled,\n.btn-danger[disabled],\nfieldset[disabled] .btn-danger,\n.btn-danger.disabled:hover,\n.btn-danger[disabled]:hover,\nfieldset[disabled] .btn-danger:hover,\n.btn-danger.disabled:focus,\n.btn-danger[disabled]:focus,\nfieldset[disabled] .btn-danger:focus,\n.btn-danger.disabled.focus,\n.btn-danger[disabled].focus,\nfieldset[disabled] .btn-danger.focus,\n.btn-danger.disabled:active,\n.btn-danger[disabled]:active,\nfieldset[disabled] .btn-danger:active,\n.btn-danger.disabled.active,\n.btn-danger[disabled].active,\nfieldset[disabled] .btn-danger.active {\n background-color: #d9534f;\n border-color: #d43f3a;\n}\n.btn-danger .badge {\n color: #d9534f;\n background-color: #ffffff;\n}\n.btn-link {\n color: #428bca;\n font-weight: normal;\n border-radius: 0;\n}\n.btn-link,\n.btn-link:active,\n.btn-link.active,\n.btn-link[disabled],\nfieldset[disabled] .btn-link {\n background-color: transparent;\n -webkit-box-shadow: none;\n box-shadow: none;\n}\n.btn-link,\n.btn-link:hover,\n.btn-link:focus,\n.btn-link:active {\n border-color: transparent;\n}\n.btn-link:hover,\n.btn-link:focus {\n color: #2a6496;\n text-decoration: underline;\n background-color: transparent;\n}\n.btn-link[disabled]:hover,\nfieldset[disabled] .btn-link:hover,\n.btn-link[disabled]:focus,\nfieldset[disabled] .btn-link:focus {\n color: #777777;\n text-decoration: none;\n}\n.btn-lg,\n.btn-group-lg > .btn {\n padding: 10px 16px;\n font-size: 18px;\n line-height: 1.33;\n border-radius: 6px;\n}\n.btn-sm,\n.btn-group-sm > .btn {\n padding: 5px 10px;\n font-size: 12px;\n line-height: 1.5;\n border-radius: 3px;\n}\n.btn-xs,\n.btn-group-xs > .btn {\n padding: 1px 5px;\n font-size: 12px;\n line-height: 1.5;\n border-radius: 3px;\n}\n.btn-block {\n display: block;\n width: 100%;\n}\n.btn-block + .btn-block {\n margin-top: 5px;\n}\ninput[type=\"submit\"].btn-block,\ninput[type=\"reset\"].btn-block,\ninput[type=\"button\"].btn-block {\n width: 100%;\n}\n.fade {\n opacity: 0;\n -webkit-transition: opacity 0.15s linear;\n -o-transition: opacity 0.15s linear;\n transition: opacity 0.15s linear;\n}\n.fade.in {\n opacity: 1;\n}\n.collapse {\n display: none;\n visibility: hidden;\n}\n.collapse.in {\n display: block;\n visibility: visible;\n}\ntr.collapse.in {\n display: table-row;\n}\ntbody.collapse.in {\n display: table-row-group;\n}\n.collapsing {\n position: relative;\n height: 0;\n overflow: hidden;\n -webkit-transition-property: height, visibility;\n transition-property: height, visibility;\n -webkit-transition-duration: 0.35s;\n transition-duration: 0.35s;\n -webkit-transition-timing-function: ease;\n transition-timing-function: ease;\n}\n.caret {\n display: inline-block;\n width: 0;\n height: 0;\n margin-left: 2px;\n vertical-align: middle;\n border-top: 4px solid;\n border-right: 4px solid transparent;\n border-left: 4px solid transparent;\n}\n.dropdown {\n position: relative;\n}\n.dropdown-toggle:focus {\n outline: 0;\n}\n.dropdown-menu {\n position: absolute;\n top: 100%;\n left: 0;\n z-index: 1000;\n display: none;\n float: left;\n min-width: 160px;\n padding: 5px 0;\n margin: 2px 0 0;\n list-style: none;\n font-size: 14px;\n text-align: left;\n background-color: #ffffff;\n border: 1px solid #cccccc;\n border: 1px solid rgba(0, 0, 0, 0.15);\n border-radius: 4px;\n -webkit-box-shadow: 0 6px 12px rgba(0, 0, 0, 0.175);\n box-shadow: 0 6px 12px rgba(0, 0, 0, 0.175);\n background-clip: padding-box;\n}\n.dropdown-menu.pull-right {\n right: 0;\n left: auto;\n}\n.dropdown-menu .divider {\n height: 1px;\n margin: 9px 0;\n overflow: hidden;\n background-color: #e5e5e5;\n}\n.dropdown-menu > li > a {\n display: block;\n padding: 3px 20px;\n clear: both;\n font-weight: normal;\n line-height: 1.42857143;\n color: #333333;\n white-space: nowrap;\n}\n.dropdown-menu > li > a:hover,\n.dropdown-menu > li > a:focus {\n text-decoration: none;\n color: #262626;\n background-color: #f5f5f5;\n}\n.dropdown-menu > .active > a,\n.dropdown-menu > .active > a:hover,\n.dropdown-menu > .active > a:focus {\n color: #ffffff;\n text-decoration: none;\n outline: 0;\n background-color: #428bca;\n}\n.dropdown-menu > .disabled > a,\n.dropdown-menu > .disabled > a:hover,\n.dropdown-menu > .disabled > a:focus {\n color: #777777;\n}\n.dropdown-menu > .disabled > a:hover,\n.dropdown-menu > .disabled > a:focus {\n text-decoration: none;\n background-color: transparent;\n background-image: none;\n filter: progid:DXImageTransform.Microsoft.gradient(enabled = false);\n cursor: not-allowed;\n}\n.open > .dropdown-menu {\n display: block;\n}\n.open > a {\n outline: 0;\n}\n.dropdown-menu-right {\n left: auto;\n right: 0;\n}\n.dropdown-menu-left {\n left: 0;\n right: auto;\n}\n.dropdown-header {\n display: block;\n padding: 3px 20px;\n font-size: 12px;\n line-height: 1.42857143;\n color: #777777;\n white-space: nowrap;\n}\n.dropdown-backdrop {\n position: fixed;\n left: 0;\n right: 0;\n bottom: 0;\n top: 0;\n z-index: 990;\n}\n.pull-right > .dropdown-menu {\n right: 0;\n left: auto;\n}\n.dropup .caret,\n.navbar-fixed-bottom .dropdown .caret {\n border-top: 0;\n border-bottom: 4px solid;\n content: \"\";\n}\n.dropup .dropdown-menu,\n.navbar-fixed-bottom .dropdown .dropdown-menu {\n top: auto;\n bottom: 100%;\n margin-bottom: 1px;\n}\n@media (min-width: 768px) {\n .navbar-right .dropdown-menu {\n left: auto;\n right: 0;\n }\n .navbar-right .dropdown-menu-left {\n left: 0;\n right: auto;\n }\n}\n.btn-group,\n.btn-group-vertical {\n position: relative;\n display: inline-block;\n vertical-align: middle;\n}\n.btn-group > .btn,\n.btn-group-vertical > .btn {\n position: relative;\n float: left;\n}\n.btn-group > .btn:hover,\n.btn-group-vertical > .btn:hover,\n.btn-group > .btn:focus,\n.btn-group-vertical > .btn:focus,\n.btn-group > .btn:active,\n.btn-group-vertical > .btn:active,\n.btn-group > .btn.active,\n.btn-group-vertical > .btn.active {\n z-index: 2;\n}\n.btn-group > .btn:focus,\n.btn-group-vertical > .btn:focus {\n outline: 0;\n}\n.btn-group .btn + .btn,\n.btn-group .btn + .btn-group,\n.btn-group .btn-group + .btn,\n.btn-group .btn-group + .btn-group {\n margin-left: -1px;\n}\n.btn-toolbar {\n margin-left: -5px;\n}\n.btn-toolbar .btn-group,\n.btn-toolbar .input-group {\n float: left;\n}\n.btn-toolbar > .btn,\n.btn-toolbar > .btn-group,\n.btn-toolbar > .input-group {\n margin-left: 5px;\n}\n.btn-group > .btn:not(:first-child):not(:last-child):not(.dropdown-toggle) {\n border-radius: 0;\n}\n.btn-group > .btn:first-child {\n margin-left: 0;\n}\n.btn-group > .btn:first-child:not(:last-child):not(.dropdown-toggle) {\n border-bottom-right-radius: 0;\n border-top-right-radius: 0;\n}\n.btn-group > .btn:last-child:not(:first-child),\n.btn-group > .dropdown-toggle:not(:first-child) {\n border-bottom-left-radius: 0;\n border-top-left-radius: 0;\n}\n.btn-group > .btn-group {\n float: left;\n}\n.btn-group > .btn-group:not(:first-child):not(:last-child) > .btn {\n border-radius: 0;\n}\n.btn-group > .btn-group:first-child > .btn:last-child,\n.btn-group > .btn-group:first-child > .dropdown-toggle {\n border-bottom-right-radius: 0;\n border-top-right-radius: 0;\n}\n.btn-group > .btn-group:last-child > .btn:first-child {\n border-bottom-left-radius: 0;\n border-top-left-radius: 0;\n}\n.btn-group .dropdown-toggle:active,\n.btn-group.open .dropdown-toggle {\n outline: 0;\n}\n.btn-group > .btn + .dropdown-toggle {\n padding-left: 8px;\n padding-right: 8px;\n}\n.btn-group > .btn-lg + .dropdown-toggle {\n padding-left: 12px;\n padding-right: 12px;\n}\n.btn-group.open .dropdown-toggle {\n -webkit-box-shadow: inset 0 3px 5px rgba(0, 0, 0, 0.125);\n box-shadow: inset 0 3px 5px rgba(0, 0, 0, 0.125);\n}\n.btn-group.open .dropdown-toggle.btn-link {\n -webkit-box-shadow: none;\n box-shadow: none;\n}\n.btn .caret {\n margin-left: 0;\n}\n.btn-lg .caret {\n border-width: 5px 5px 0;\n border-bottom-width: 0;\n}\n.dropup .btn-lg .caret {\n border-width: 0 5px 5px;\n}\n.btn-group-vertical > .btn,\n.btn-group-vertical > .btn-group,\n.btn-group-vertical > .btn-group > .btn {\n display: block;\n float: none;\n width: 100%;\n max-width: 100%;\n}\n.btn-group-vertical > .btn-group > .btn {\n float: none;\n}\n.btn-group-vertical > .btn + .btn,\n.btn-group-vertical > .btn + .btn-group,\n.btn-group-vertical > .btn-group + .btn,\n.btn-group-vertical > .btn-group + .btn-group {\n margin-top: -1px;\n margin-left: 0;\n}\n.btn-group-vertical > .btn:not(:first-child):not(:last-child) {\n border-radius: 0;\n}\n.btn-group-vertical > .btn:first-child:not(:last-child) {\n border-top-right-radius: 4px;\n border-bottom-right-radius: 0;\n border-bottom-left-radius: 0;\n}\n.btn-group-vertical > .btn:last-child:not(:first-child) {\n border-bottom-left-radius: 4px;\n border-top-right-radius: 0;\n border-top-left-radius: 0;\n}\n.btn-group-vertical > .btn-group:not(:first-child):not(:last-child) > .btn {\n border-radius: 0;\n}\n.btn-group-vertical > .btn-group:first-child:not(:last-child) > .btn:last-child,\n.btn-group-vertical > .btn-group:first-child:not(:last-child) > .dropdown-toggle {\n border-bottom-right-radius: 0;\n border-bottom-left-radius: 0;\n}\n.btn-group-vertical > .btn-group:last-child:not(:first-child) > .btn:first-child {\n border-top-right-radius: 0;\n border-top-left-radius: 0;\n}\n.btn-group-justified {\n display: table;\n width: 100%;\n table-layout: fixed;\n border-collapse: separate;\n}\n.btn-group-justified > .btn,\n.btn-group-justified > .btn-group {\n float: none;\n display: table-cell;\n width: 1%;\n}\n.btn-group-justified > .btn-group .btn {\n width: 100%;\n}\n.btn-group-justified > .btn-group .dropdown-menu {\n left: auto;\n}\n[data-toggle=\"buttons\"] > .btn input[type=\"radio\"],\n[data-toggle=\"buttons\"] > .btn-group > .btn input[type=\"radio\"],\n[data-toggle=\"buttons\"] > .btn input[type=\"checkbox\"],\n[data-toggle=\"buttons\"] > .btn-group > .btn input[type=\"checkbox\"] {\n position: absolute;\n clip: rect(0, 0, 0, 0);\n pointer-events: none;\n}\n.input-group {\n position: relative;\n display: table;\n border-collapse: separate;\n}\n.input-group[class*=\"col-\"] {\n float: none;\n padding-left: 0;\n padding-right: 0;\n}\n.input-group .form-control {\n position: relative;\n z-index: 2;\n float: left;\n width: 100%;\n margin-bottom: 0;\n}\n.input-group-lg > .form-control,\n.input-group-lg > .input-group-addon,\n.input-group-lg > .input-group-btn > .btn {\n height: 46px;\n padding: 10px 16px;\n font-size: 18px;\n line-height: 1.33;\n border-radius: 6px;\n}\nselect.input-group-lg > .form-control,\nselect.input-group-lg > .input-group-addon,\nselect.input-group-lg > .input-group-btn > .btn {\n height: 46px;\n line-height: 46px;\n}\ntextarea.input-group-lg > .form-control,\ntextarea.input-group-lg > .input-group-addon,\ntextarea.input-group-lg > .input-group-btn > .btn,\nselect[multiple].input-group-lg > .form-control,\nselect[multiple].input-group-lg > .input-group-addon,\nselect[multiple].input-group-lg > .input-group-btn > .btn {\n height: auto;\n}\n.input-group-sm > .form-control,\n.input-group-sm > .input-group-addon,\n.input-group-sm > .input-group-btn > .btn {\n height: 30px;\n padding: 5px 10px;\n font-size: 12px;\n line-height: 1.5;\n border-radius: 3px;\n}\nselect.input-group-sm > .form-control,\nselect.input-group-sm > .input-group-addon,\nselect.input-group-sm > .input-group-btn > .btn {\n height: 30px;\n line-height: 30px;\n}\ntextarea.input-group-sm > .form-control,\ntextarea.input-group-sm > .input-group-addon,\ntextarea.input-group-sm > .input-group-btn > .btn,\nselect[multiple].input-group-sm > .form-control,\nselect[multiple].input-group-sm > .input-group-addon,\nselect[multiple].input-group-sm > .input-group-btn > .btn {\n height: auto;\n}\n.input-group-addon,\n.input-group-btn,\n.input-group .form-control {\n display: table-cell;\n}\n.input-group-addon:not(:first-child):not(:last-child),\n.input-group-btn:not(:first-child):not(:last-child),\n.input-group .form-control:not(:first-child):not(:last-child) {\n border-radius: 0;\n}\n.input-group-addon,\n.input-group-btn {\n width: 1%;\n white-space: nowrap;\n vertical-align: middle;\n}\n.input-group-addon {\n padding: 6px 12px;\n font-size: 14px;\n font-weight: normal;\n line-height: 1;\n color: #555555;\n text-align: center;\n background-color: #eeeeee;\n border: 1px solid #cccccc;\n border-radius: 4px;\n}\n.input-group-addon.input-sm {\n padding: 5px 10px;\n font-size: 12px;\n border-radius: 3px;\n}\n.input-group-addon.input-lg {\n padding: 10px 16px;\n font-size: 18px;\n border-radius: 6px;\n}\n.input-group-addon input[type=\"radio\"],\n.input-group-addon input[type=\"checkbox\"] {\n margin-top: 0;\n}\n.input-group .form-control:first-child,\n.input-group-addon:first-child,\n.input-group-btn:first-child > .btn,\n.input-group-btn:first-child > .btn-group > .btn,\n.input-group-btn:first-child > .dropdown-toggle,\n.input-group-btn:last-child > .btn:not(:last-child):not(.dropdown-toggle),\n.input-group-btn:last-child > .btn-group:not(:last-child) > .btn {\n border-bottom-right-radius: 0;\n border-top-right-radius: 0;\n}\n.input-group-addon:first-child {\n border-right: 0;\n}\n.input-group .form-control:last-child,\n.input-group-addon:last-child,\n.input-group-btn:last-child > .btn,\n.input-group-btn:last-child > .btn-group > .btn,\n.input-group-btn:last-child > .dropdown-toggle,\n.input-group-btn:first-child > .btn:not(:first-child),\n.input-group-btn:first-child > .btn-group:not(:first-child) > .btn {\n border-bottom-left-radius: 0;\n border-top-left-radius: 0;\n}\n.input-group-addon:last-child {\n border-left: 0;\n}\n.input-group-btn {\n position: relative;\n font-size: 0;\n white-space: nowrap;\n}\n.input-group-btn > .btn {\n position: relative;\n}\n.input-group-btn > .btn + .btn {\n margin-left: -1px;\n}\n.input-group-btn > .btn:hover,\n.input-group-btn > .btn:focus,\n.input-group-btn > .btn:active {\n z-index: 2;\n}\n.input-group-btn:first-child > .btn,\n.input-group-btn:first-child > .btn-group {\n margin-right: -1px;\n}\n.input-group-btn:last-child > .btn,\n.input-group-btn:last-child > .btn-group {\n margin-left: -1px;\n}\n.nav {\n margin-bottom: 0;\n padding-left: 0;\n list-style: none;\n}\n.nav > li {\n position: relative;\n display: block;\n}\n.nav > li > a {\n position: relative;\n display: block;\n padding: 10px 15px;\n}\n.nav > li > a:hover,\n.nav > li > a:focus {\n text-decoration: none;\n background-color: #eeeeee;\n}\n.nav > li.disabled > a {\n color: #777777;\n}\n.nav > li.disabled > a:hover,\n.nav > li.disabled > a:focus {\n color: #777777;\n text-decoration: none;\n background-color: transparent;\n cursor: not-allowed;\n}\n.nav .open > a,\n.nav .open > a:hover,\n.nav .open > a:focus {\n background-color: #eeeeee;\n border-color: #428bca;\n}\n.nav .nav-divider {\n height: 1px;\n margin: 9px 0;\n overflow: hidden;\n background-color: #e5e5e5;\n}\n.nav > li > a > img {\n max-width: none;\n}\n.nav-tabs {\n border-bottom: 1px solid #dddddd;\n}\n.nav-tabs > li {\n float: left;\n margin-bottom: -1px;\n}\n.nav-tabs > li > a {\n margin-right: 2px;\n line-height: 1.42857143;\n border: 1px solid transparent;\n border-radius: 4px 4px 0 0;\n}\n.nav-tabs > li > a:hover {\n border-color: #eeeeee #eeeeee #dddddd;\n}\n.nav-tabs > li.active > a,\n.nav-tabs > li.active > a:hover,\n.nav-tabs > li.active > a:focus {\n color: #555555;\n background-color: #ffffff;\n border: 1px solid #dddddd;\n border-bottom-color: transparent;\n cursor: default;\n}\n.nav-tabs.nav-justified {\n width: 100%;\n border-bottom: 0;\n}\n.nav-tabs.nav-justified > li {\n float: none;\n}\n.nav-tabs.nav-justified > li > a {\n text-align: center;\n margin-bottom: 5px;\n}\n.nav-tabs.nav-justified > .dropdown .dropdown-menu {\n top: auto;\n left: auto;\n}\n@media (min-width: 768px) {\n .nav-tabs.nav-justified > li {\n display: table-cell;\n width: 1%;\n }\n .nav-tabs.nav-justified > li > a {\n margin-bottom: 0;\n }\n}\n.nav-tabs.nav-justified > li > a {\n margin-right: 0;\n border-radius: 4px;\n}\n.nav-tabs.nav-justified > .active > a,\n.nav-tabs.nav-justified > .active > a:hover,\n.nav-tabs.nav-justified > .active > a:focus {\n border: 1px solid #dddddd;\n}\n@media (min-width: 768px) {\n .nav-tabs.nav-justified > li > a {\n border-bottom: 1px solid #dddddd;\n border-radius: 4px 4px 0 0;\n }\n .nav-tabs.nav-justified > .active > a,\n .nav-tabs.nav-justified > .active > a:hover,\n .nav-tabs.nav-justified > .active > a:focus {\n border-bottom-color: #ffffff;\n }\n}\n.nav-pills > li {\n float: left;\n}\n.nav-pills > li > a {\n border-radius: 4px;\n}\n.nav-pills > li + li {\n margin-left: 2px;\n}\n.nav-pills > li.active > a,\n.nav-pills > li.active > a:hover,\n.nav-pills > li.active > a:focus {\n color: #ffffff;\n background-color: #428bca;\n}\n.nav-stacked > li {\n float: none;\n}\n.nav-stacked > li + li {\n margin-top: 2px;\n margin-left: 0;\n}\n.nav-justified {\n width: 100%;\n}\n.nav-justified > li {\n float: none;\n}\n.nav-justified > li > a {\n text-align: center;\n margin-bottom: 5px;\n}\n.nav-justified > .dropdown .dropdown-menu {\n top: auto;\n left: auto;\n}\n@media (min-width: 768px) {\n .nav-justified > li {\n display: table-cell;\n width: 1%;\n }\n .nav-justified > li > a {\n margin-bottom: 0;\n }\n}\n.nav-tabs-justified {\n border-bottom: 0;\n}\n.nav-tabs-justified > li > a {\n margin-right: 0;\n border-radius: 4px;\n}\n.nav-tabs-justified > .active > a,\n.nav-tabs-justified > .active > a:hover,\n.nav-tabs-justified > .active > a:focus {\n border: 1px solid #dddddd;\n}\n@media (min-width: 768px) {\n .nav-tabs-justified > li > a {\n border-bottom: 1px solid #dddddd;\n border-radius: 4px 4px 0 0;\n }\n .nav-tabs-justified > .active > a,\n .nav-tabs-justified > .active > a:hover,\n .nav-tabs-justified > .active > a:focus {\n border-bottom-color: #ffffff;\n }\n}\n.tab-content > .tab-pane {\n display: none;\n visibility: hidden;\n}\n.tab-content > .active {\n display: block;\n visibility: visible;\n}\n.nav-tabs .dropdown-menu {\n margin-top: -1px;\n border-top-right-radius: 0;\n border-top-left-radius: 0;\n}\n.navbar {\n position: relative;\n min-height: 50px;\n margin-bottom: 20px;\n border: 1px solid transparent;\n}\n@media (min-width: 768px) {\n .navbar {\n border-radius: 4px;\n }\n}\n@media (min-width: 768px) {\n .navbar-header {\n float: left;\n }\n}\n.navbar-collapse {\n overflow-x: visible;\n padding-right: 15px;\n padding-left: 15px;\n border-top: 1px solid transparent;\n box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.1);\n -webkit-overflow-scrolling: touch;\n}\n.navbar-collapse.in {\n overflow-y: auto;\n}\n@media (min-width: 768px) {\n .navbar-collapse {\n width: auto;\n border-top: 0;\n box-shadow: none;\n }\n .navbar-collapse.collapse {\n display: block !important;\n visibility: visible !important;\n height: auto !important;\n padding-bottom: 0;\n overflow: visible !important;\n }\n .navbar-collapse.in {\n overflow-y: visible;\n }\n .navbar-fixed-top .navbar-collapse,\n .navbar-static-top .navbar-collapse,\n .navbar-fixed-bottom .navbar-collapse {\n padding-left: 0;\n padding-right: 0;\n }\n}\n.navbar-fixed-top .navbar-collapse,\n.navbar-fixed-bottom .navbar-collapse {\n max-height: 340px;\n}\n@media (max-device-width: 480px) and (orientation: landscape) {\n .navbar-fixed-top .navbar-collapse,\n .navbar-fixed-bottom .navbar-collapse {\n max-height: 200px;\n }\n}\n.container > .navbar-header,\n.container-fluid > .navbar-header,\n.container > .navbar-collapse,\n.container-fluid > .navbar-collapse {\n margin-right: -15px;\n margin-left: -15px;\n}\n@media (min-width: 768px) {\n .container > .navbar-header,\n .container-fluid > .navbar-header,\n .container > .navbar-collapse,\n .container-fluid > .navbar-collapse {\n margin-right: 0;\n margin-left: 0;\n }\n}\n.navbar-static-top {\n z-index: 1000;\n border-width: 0 0 1px;\n}\n@media (min-width: 768px) {\n .navbar-static-top {\n border-radius: 0;\n }\n}\n.navbar-fixed-top,\n.navbar-fixed-bottom {\n position: fixed;\n right: 0;\n left: 0;\n z-index: 1030;\n}\n@media (min-width: 768px) {\n .navbar-fixed-top,\n .navbar-fixed-bottom {\n border-radius: 0;\n }\n}\n.navbar-fixed-top {\n top: 0;\n border-width: 0 0 1px;\n}\n.navbar-fixed-bottom {\n bottom: 0;\n margin-bottom: 0;\n border-width: 1px 0 0;\n}\n.navbar-brand {\n float: left;\n padding: 15px 15px;\n font-size: 18px;\n line-height: 20px;\n height: 50px;\n}\n.navbar-brand:hover,\n.navbar-brand:focus {\n text-decoration: none;\n}\n.navbar-brand > img {\n display: block;\n}\n@media (min-width: 768px) {\n .navbar > .container .navbar-brand,\n .navbar > .container-fluid .navbar-brand {\n margin-left: -15px;\n }\n}\n.navbar-toggle {\n position: relative;\n float: right;\n margin-right: 15px;\n padding: 9px 10px;\n margin-top: 8px;\n margin-bottom: 8px;\n background-color: transparent;\n background-image: none;\n border: 1px solid transparent;\n border-radius: 4px;\n}\n.navbar-toggle:focus {\n outline: 0;\n}\n.navbar-toggle .icon-bar {\n display: block;\n width: 22px;\n height: 2px;\n border-radius: 1px;\n}\n.navbar-toggle .icon-bar + .icon-bar {\n margin-top: 4px;\n}\n@media (min-width: 768px) {\n .navbar-toggle {\n display: none;\n }\n}\n.navbar-nav {\n margin: 7.5px -15px;\n}\n.navbar-nav > li > a {\n padding-top: 10px;\n padding-bottom: 10px;\n line-height: 20px;\n}\n@media (max-width: 767px) {\n .navbar-nav .open .dropdown-menu {\n position: static;\n float: none;\n width: auto;\n margin-top: 0;\n background-color: transparent;\n border: 0;\n box-shadow: none;\n }\n .navbar-nav .open .dropdown-menu > li > a,\n .navbar-nav .open .dropdown-menu .dropdown-header {\n padding: 5px 15px 5px 25px;\n }\n .navbar-nav .open .dropdown-menu > li > a {\n line-height: 20px;\n }\n .navbar-nav .open .dropdown-menu > li > a:hover,\n .navbar-nav .open .dropdown-menu > li > a:focus {\n background-image: none;\n }\n}\n@media (min-width: 768px) {\n .navbar-nav {\n float: left;\n margin: 0;\n }\n .navbar-nav > li {\n float: left;\n }\n .navbar-nav > li > a {\n padding-top: 15px;\n padding-bottom: 15px;\n }\n}\n.navbar-form {\n margin-left: -15px;\n margin-right: -15px;\n padding: 10px 15px;\n border-top: 1px solid transparent;\n border-bottom: 1px solid transparent;\n -webkit-box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.1), 0 1px 0 rgba(255, 255, 255, 0.1);\n box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.1), 0 1px 0 rgba(255, 255, 255, 0.1);\n margin-top: 8px;\n margin-bottom: 8px;\n}\n@media (min-width: 768px) {\n .navbar-form .form-group {\n display: inline-block;\n margin-bottom: 0;\n vertical-align: middle;\n }\n .navbar-form .form-control {\n display: inline-block;\n width: auto;\n vertical-align: middle;\n }\n .navbar-form .form-control-static {\n display: inline-block;\n }\n .navbar-form .input-group {\n display: inline-table;\n vertical-align: middle;\n }\n .navbar-form .input-group .input-group-addon,\n .navbar-form .input-group .input-group-btn,\n .navbar-form .input-group .form-control {\n width: auto;\n }\n .navbar-form .input-group > .form-control {\n width: 100%;\n }\n .navbar-form .control-label {\n margin-bottom: 0;\n vertical-align: middle;\n }\n .navbar-form .radio,\n .navbar-form .checkbox {\n display: inline-block;\n margin-top: 0;\n margin-bottom: 0;\n vertical-align: middle;\n }\n .navbar-form .radio label,\n .navbar-form .checkbox label {\n padding-left: 0;\n }\n .navbar-form .radio input[type=\"radio\"],\n .navbar-form .checkbox input[type=\"checkbox\"] {\n position: relative;\n margin-left: 0;\n }\n .navbar-form .has-feedback .form-control-feedback {\n top: 0;\n }\n}\n@media (max-width: 767px) {\n .navbar-form .form-group {\n margin-bottom: 5px;\n }\n .navbar-form .form-group:last-child {\n margin-bottom: 0;\n }\n}\n@media (min-width: 768px) {\n .navbar-form {\n width: auto;\n border: 0;\n margin-left: 0;\n margin-right: 0;\n padding-top: 0;\n padding-bottom: 0;\n -webkit-box-shadow: none;\n box-shadow: none;\n }\n}\n.navbar-nav > li > .dropdown-menu {\n margin-top: 0;\n border-top-right-radius: 0;\n border-top-left-radius: 0;\n}\n.navbar-fixed-bottom .navbar-nav > li > .dropdown-menu {\n border-bottom-right-radius: 0;\n border-bottom-left-radius: 0;\n}\n.navbar-btn {\n margin-top: 8px;\n margin-bottom: 8px;\n}\n.navbar-btn.btn-sm {\n margin-top: 10px;\n margin-bottom: 10px;\n}\n.navbar-btn.btn-xs {\n margin-top: 14px;\n margin-bottom: 14px;\n}\n.navbar-text {\n margin-top: 15px;\n margin-bottom: 15px;\n}\n@media (min-width: 768px) {\n .navbar-text {\n float: left;\n margin-left: 15px;\n margin-right: 15px;\n }\n}\n@media (min-width: 768px) {\n .navbar-left {\n float: left !important;\n }\n .navbar-right {\n float: right !important;\n margin-right: -15px;\n }\n .navbar-right ~ .navbar-right {\n margin-right: 0;\n }\n}\n.navbar-default {\n background-color: #f8f8f8;\n border-color: #e7e7e7;\n}\n.navbar-default .navbar-brand {\n color: #777777;\n}\n.navbar-default .navbar-brand:hover,\n.navbar-default .navbar-brand:focus {\n color: #5e5e5e;\n background-color: transparent;\n}\n.navbar-default .navbar-text {\n color: #777777;\n}\n.navbar-default .navbar-nav > li > a {\n color: #777777;\n}\n.navbar-default .navbar-nav > li > a:hover,\n.navbar-default .navbar-nav > li > a:focus {\n color: #333333;\n background-color: transparent;\n}\n.navbar-default .navbar-nav > .active > a,\n.navbar-default .navbar-nav > .active > a:hover,\n.navbar-default .navbar-nav > .active > a:focus {\n color: #555555;\n background-color: #e7e7e7;\n}\n.navbar-default .navbar-nav > .disabled > a,\n.navbar-default .navbar-nav > .disabled > a:hover,\n.navbar-default .navbar-nav > .disabled > a:focus {\n color: #cccccc;\n background-color: transparent;\n}\n.navbar-default .navbar-toggle {\n border-color: #dddddd;\n}\n.navbar-default .navbar-toggle:hover,\n.navbar-default .navbar-toggle:focus {\n background-color: #dddddd;\n}\n.navbar-default .navbar-toggle .icon-bar {\n background-color: #888888;\n}\n.navbar-default .navbar-collapse,\n.navbar-default .navbar-form {\n border-color: #e7e7e7;\n}\n.navbar-default .navbar-nav > .open > a,\n.navbar-default .navbar-nav > .open > a:hover,\n.navbar-default .navbar-nav > .open > a:focus {\n background-color: #e7e7e7;\n color: #555555;\n}\n@media (max-width: 767px) {\n .navbar-default .navbar-nav .open .dropdown-menu > li > a {\n color: #777777;\n }\n .navbar-default .navbar-nav .open .dropdown-menu > li > a:hover,\n .navbar-default .navbar-nav .open .dropdown-menu > li > a:focus {\n color: #333333;\n background-color: transparent;\n }\n .navbar-default .navbar-nav .open .dropdown-menu > .active > a,\n .navbar-default .navbar-nav .open .dropdown-menu > .active > a:hover,\n .navbar-default .navbar-nav .open .dropdown-menu > .active > a:focus {\n color: #555555;\n background-color: #e7e7e7;\n }\n .navbar-default .navbar-nav .open .dropdown-menu > .disabled > a,\n .navbar-default .navbar-nav .open .dropdown-menu > .disabled > a:hover,\n .navbar-default .navbar-nav .open .dropdown-menu > .disabled > a:focus {\n color: #cccccc;\n background-color: transparent;\n }\n}\n.navbar-default .navbar-link {\n color: #777777;\n}\n.navbar-default .navbar-link:hover {\n color: #333333;\n}\n.navbar-default .btn-link {\n color: #777777;\n}\n.navbar-default .btn-link:hover,\n.navbar-default .btn-link:focus {\n color: #333333;\n}\n.navbar-default .btn-link[disabled]:hover,\nfieldset[disabled] .navbar-default .btn-link:hover,\n.navbar-default .btn-link[disabled]:focus,\nfieldset[disabled] .navbar-default .btn-link:focus {\n color: #cccccc;\n}\n.navbar-inverse {\n background-color: #222222;\n border-color: #080808;\n}\n.navbar-inverse .navbar-brand {\n color: #9d9d9d;\n}\n.navbar-inverse .navbar-brand:hover,\n.navbar-inverse .navbar-brand:focus {\n color: #ffffff;\n background-color: transparent;\n}\n.navbar-inverse .navbar-text {\n color: #9d9d9d;\n}\n.navbar-inverse .navbar-nav > li > a {\n color: #9d9d9d;\n}\n.navbar-inverse .navbar-nav > li > a:hover,\n.navbar-inverse .navbar-nav > li > a:focus {\n color: #ffffff;\n background-color: transparent;\n}\n.navbar-inverse .navbar-nav > .active > a,\n.navbar-inverse .navbar-nav > .active > a:hover,\n.navbar-inverse .navbar-nav > .active > a:focus {\n color: #ffffff;\n background-color: #080808;\n}\n.navbar-inverse .navbar-nav > .disabled > a,\n.navbar-inverse .navbar-nav > .disabled > a:hover,\n.navbar-inverse .navbar-nav > .disabled > a:focus {\n color: #444444;\n background-color: transparent;\n}\n.navbar-inverse .navbar-toggle {\n border-color: #333333;\n}\n.navbar-inverse .navbar-toggle:hover,\n.navbar-inverse .navbar-toggle:focus {\n background-color: #333333;\n}\n.navbar-inverse .navbar-toggle .icon-bar {\n background-color: #ffffff;\n}\n.navbar-inverse .navbar-collapse,\n.navbar-inverse .navbar-form {\n border-color: #101010;\n}\n.navbar-inverse .navbar-nav > .open > a,\n.navbar-inverse .navbar-nav > .open > a:hover,\n.navbar-inverse .navbar-nav > .open > a:focus {\n background-color: #080808;\n color: #ffffff;\n}\n@media (max-width: 767px) {\n .navbar-inverse .navbar-nav .open .dropdown-menu > .dropdown-header {\n border-color: #080808;\n }\n .navbar-inverse .navbar-nav .open .dropdown-menu .divider {\n background-color: #080808;\n }\n .navbar-inverse .navbar-nav .open .dropdown-menu > li > a {\n color: #9d9d9d;\n }\n .navbar-inverse .navbar-nav .open .dropdown-menu > li > a:hover,\n .navbar-inverse .navbar-nav .open .dropdown-menu > li > a:focus {\n color: #ffffff;\n background-color: transparent;\n }\n .navbar-inverse .navbar-nav .open .dropdown-menu > .active > a,\n .navbar-inverse .navbar-nav .open .dropdown-menu > .active > a:hover,\n .navbar-inverse .navbar-nav .open .dropdown-menu > .active > a:focus {\n color: #ffffff;\n background-color: #080808;\n }\n .navbar-inverse .navbar-nav .open .dropdown-menu > .disabled > a,\n .navbar-inverse .navbar-nav .open .dropdown-menu > .disabled > a:hover,\n .navbar-inverse .navbar-nav .open .dropdown-menu > .disabled > a:focus {\n color: #444444;\n background-color: transparent;\n }\n}\n.navbar-inverse .navbar-link {\n color: #9d9d9d;\n}\n.navbar-inverse .navbar-link:hover {\n color: #ffffff;\n}\n.navbar-inverse .btn-link {\n color: #9d9d9d;\n}\n.navbar-inverse .btn-link:hover,\n.navbar-inverse .btn-link:focus {\n color: #ffffff;\n}\n.navbar-inverse .btn-link[disabled]:hover,\nfieldset[disabled] .navbar-inverse .btn-link:hover,\n.navbar-inverse .btn-link[disabled]:focus,\nfieldset[disabled] .navbar-inverse .btn-link:focus {\n color: #444444;\n}\n.breadcrumb {\n padding: 8px 15px;\n margin-bottom: 20px;\n list-style: none;\n background-color: #f5f5f5;\n border-radius: 4px;\n}\n.breadcrumb > li {\n display: inline-block;\n}\n.breadcrumb > li + li:before {\n content: \"/\\00a0\";\n padding: 0 5px;\n color: #cccccc;\n}\n.breadcrumb > .active {\n color: #777777;\n}\n.pagination {\n display: inline-block;\n padding-left: 0;\n margin: 20px 0;\n border-radius: 4px;\n}\n.pagination > li {\n display: inline;\n}\n.pagination > li > a,\n.pagination > li > span {\n position: relative;\n float: left;\n padding: 6px 12px;\n line-height: 1.42857143;\n text-decoration: none;\n color: #428bca;\n background-color: #ffffff;\n border: 1px solid #dddddd;\n margin-left: -1px;\n}\n.pagination > li:first-child > a,\n.pagination > li:first-child > span {\n margin-left: 0;\n border-bottom-left-radius: 4px;\n border-top-left-radius: 4px;\n}\n.pagination > li:last-child > a,\n.pagination > li:last-child > span {\n border-bottom-right-radius: 4px;\n border-top-right-radius: 4px;\n}\n.pagination > li > a:hover,\n.pagination > li > span:hover,\n.pagination > li > a:focus,\n.pagination > li > span:focus {\n color: #2a6496;\n background-color: #eeeeee;\n border-color: #dddddd;\n}\n.pagination > .active > a,\n.pagination > .active > span,\n.pagination > .active > a:hover,\n.pagination > .active > span:hover,\n.pagination > .active > a:focus,\n.pagination > .active > span:focus {\n z-index: 2;\n color: #ffffff;\n background-color: #428bca;\n border-color: #428bca;\n cursor: default;\n}\n.pagination > .disabled > span,\n.pagination > .disabled > span:hover,\n.pagination > .disabled > span:focus,\n.pagination > .disabled > a,\n.pagination > .disabled > a:hover,\n.pagination > .disabled > a:focus {\n color: #777777;\n background-color: #ffffff;\n border-color: #dddddd;\n cursor: not-allowed;\n}\n.pagination-lg > li > a,\n.pagination-lg > li > span {\n padding: 10px 16px;\n font-size: 18px;\n}\n.pagination-lg > li:first-child > a,\n.pagination-lg > li:first-child > span {\n border-bottom-left-radius: 6px;\n border-top-left-radius: 6px;\n}\n.pagination-lg > li:last-child > a,\n.pagination-lg > li:last-child > span {\n border-bottom-right-radius: 6px;\n border-top-right-radius: 6px;\n}\n.pagination-sm > li > a,\n.pagination-sm > li > span {\n padding: 5px 10px;\n font-size: 12px;\n}\n.pagination-sm > li:first-child > a,\n.pagination-sm > li:first-child > span {\n border-bottom-left-radius: 3px;\n border-top-left-radius: 3px;\n}\n.pagination-sm > li:last-child > a,\n.pagination-sm > li:last-child > span {\n border-bottom-right-radius: 3px;\n border-top-right-radius: 3px;\n}\n.pager {\n padding-left: 0;\n margin: 20px 0;\n list-style: none;\n text-align: center;\n}\n.pager li {\n display: inline;\n}\n.pager li > a,\n.pager li > span {\n display: inline-block;\n padding: 5px 14px;\n background-color: #ffffff;\n border: 1px solid #dddddd;\n border-radius: 15px;\n}\n.pager li > a:hover,\n.pager li > a:focus {\n text-decoration: none;\n background-color: #eeeeee;\n}\n.pager .next > a,\n.pager .next > span {\n float: right;\n}\n.pager .previous > a,\n.pager .previous > span {\n float: left;\n}\n.pager .disabled > a,\n.pager .disabled > a:hover,\n.pager .disabled > a:focus,\n.pager .disabled > span {\n color: #777777;\n background-color: #ffffff;\n cursor: not-allowed;\n}\n.label {\n display: inline;\n padding: .2em .6em .3em;\n font-size: 75%;\n font-weight: bold;\n line-height: 1;\n color: #ffffff;\n text-align: center;\n white-space: nowrap;\n vertical-align: baseline;\n border-radius: .25em;\n}\na.label:hover,\na.label:focus {\n color: #ffffff;\n text-decoration: none;\n cursor: pointer;\n}\n.label:empty {\n display: none;\n}\n.btn .label {\n position: relative;\n top: -1px;\n}\n.label-default {\n background-color: #777777;\n}\n.label-default[href]:hover,\n.label-default[href]:focus {\n background-color: #5e5e5e;\n}\n.label-primary {\n background-color: #428bca;\n}\n.label-primary[href]:hover,\n.label-primary[href]:focus {\n background-color: #3071a9;\n}\n.label-success {\n background-color: #5cb85c;\n}\n.label-success[href]:hover,\n.label-success[href]:focus {\n background-color: #449d44;\n}\n.label-info {\n background-color: #5bc0de;\n}\n.label-info[href]:hover,\n.label-info[href]:focus {\n background-color: #31b0d5;\n}\n.label-warning {\n background-color: #f0ad4e;\n}\n.label-warning[href]:hover,\n.label-warning[href]:focus {\n background-color: #ec971f;\n}\n.label-danger {\n background-color: #d9534f;\n}\n.label-danger[href]:hover,\n.label-danger[href]:focus {\n background-color: #c9302c;\n}\n.badge {\n display: inline-block;\n min-width: 10px;\n padding: 3px 7px;\n font-size: 12px;\n font-weight: bold;\n color: #ffffff;\n line-height: 1;\n vertical-align: baseline;\n white-space: nowrap;\n text-align: center;\n background-color: #777777;\n border-radius: 10px;\n}\n.badge:empty {\n display: none;\n}\n.btn .badge {\n position: relative;\n top: -1px;\n}\n.btn-xs .badge {\n top: 0;\n padding: 1px 5px;\n}\na.badge:hover,\na.badge:focus {\n color: #ffffff;\n text-decoration: none;\n cursor: pointer;\n}\na.list-group-item.active > .badge,\n.nav-pills > .active > a > .badge {\n color: #428bca;\n background-color: #ffffff;\n}\n.nav-pills > li > a > .badge {\n margin-left: 3px;\n}\n.jumbotron {\n padding: 30px 15px;\n margin-bottom: 30px;\n color: inherit;\n background-color: #eeeeee;\n}\n.jumbotron h1,\n.jumbotron .h1 {\n color: inherit;\n}\n.jumbotron p {\n margin-bottom: 15px;\n font-size: 21px;\n font-weight: 200;\n}\n.jumbotron > hr {\n border-top-color: #d5d5d5;\n}\n.container .jumbotron,\n.container-fluid .jumbotron {\n border-radius: 6px;\n}\n.jumbotron .container {\n max-width: 100%;\n}\n@media screen and (min-width: 768px) {\n .jumbotron {\n padding: 48px 0;\n }\n .container .jumbotron {\n padding-left: 60px;\n padding-right: 60px;\n }\n .jumbotron h1,\n .jumbotron .h1 {\n font-size: 63px;\n }\n}\n.thumbnail {\n display: block;\n padding: 4px;\n margin-bottom: 20px;\n line-height: 1.42857143;\n background-color: #ffffff;\n border: 1px solid #dddddd;\n border-radius: 4px;\n -webkit-transition: border 0.2s ease-in-out;\n -o-transition: border 0.2s ease-in-out;\n transition: border 0.2s ease-in-out;\n}\n.thumbnail > img,\n.thumbnail a > img {\n margin-left: auto;\n margin-right: auto;\n}\na.thumbnail:hover,\na.thumbnail:focus,\na.thumbnail.active {\n border-color: #428bca;\n}\n.thumbnail .caption {\n padding: 9px;\n color: #333333;\n}\n.alert {\n padding: 15px;\n margin-bottom: 20px;\n border: 1px solid transparent;\n border-radius: 4px;\n}\n.alert h4 {\n margin-top: 0;\n color: inherit;\n}\n.alert .alert-link {\n font-weight: bold;\n}\n.alert > p,\n.alert > ul {\n margin-bottom: 0;\n}\n.alert > p + p {\n margin-top: 5px;\n}\n.alert-dismissable,\n.alert-dismissible {\n padding-right: 35px;\n}\n.alert-dismissable .close,\n.alert-dismissible .close {\n position: relative;\n top: -2px;\n right: -21px;\n color: inherit;\n}\n.alert-success {\n background-color: #dff0d8;\n border-color: #d6e9c6;\n color: #3c763d;\n}\n.alert-success hr {\n border-top-color: #c9e2b3;\n}\n.alert-success .alert-link {\n color: #2b542c;\n}\n.alert-info {\n background-color: #d9edf7;\n border-color: #bce8f1;\n color: #31708f;\n}\n.alert-info hr {\n border-top-color: #a6e1ec;\n}\n.alert-info .alert-link {\n color: #245269;\n}\n.alert-warning {\n background-color: #fcf8e3;\n border-color: #faebcc;\n color: #8a6d3b;\n}\n.alert-warning hr {\n border-top-color: #f7e1b5;\n}\n.alert-warning .alert-link {\n color: #66512c;\n}\n.alert-danger {\n background-color: #f2dede;\n border-color: #ebccd1;\n color: #a94442;\n}\n.alert-danger hr {\n border-top-color: #e4b9c0;\n}\n.alert-danger .alert-link {\n color: #843534;\n}\n@-webkit-keyframes progress-bar-stripes {\n from {\n background-position: 40px 0;\n }\n to {\n background-position: 0 0;\n }\n}\n@keyframes progress-bar-stripes {\n from {\n background-position: 40px 0;\n }\n to {\n background-position: 0 0;\n }\n}\n.progress {\n overflow: hidden;\n height: 20px;\n margin-bottom: 20px;\n background-color: #f5f5f5;\n border-radius: 4px;\n -webkit-box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.1);\n box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.1);\n}\n.progress-bar {\n float: left;\n width: 0%;\n height: 100%;\n font-size: 12px;\n line-height: 20px;\n color: #ffffff;\n text-align: center;\n background-color: #428bca;\n -webkit-box-shadow: inset 0 -1px 0 rgba(0, 0, 0, 0.15);\n box-shadow: inset 0 -1px 0 rgba(0, 0, 0, 0.15);\n -webkit-transition: width 0.6s ease;\n -o-transition: width 0.6s ease;\n transition: width 0.6s ease;\n}\n.progress-striped .progress-bar,\n.progress-bar-striped {\n background-image: -webkit-linear-gradient(45deg, rgba(255, 255, 255, 0.15) 25%, transparent 25%, transparent 50%, rgba(255, 255, 255, 0.15) 50%, rgba(255, 255, 255, 0.15) 75%, transparent 75%, transparent);\n background-image: -o-linear-gradient(45deg, rgba(255, 255, 255, 0.15) 25%, transparent 25%, transparent 50%, rgba(255, 255, 255, 0.15) 50%, rgba(255, 255, 255, 0.15) 75%, transparent 75%, transparent);\n background-image: linear-gradient(45deg, rgba(255, 255, 255, 0.15) 25%, transparent 25%, transparent 50%, rgba(255, 255, 255, 0.15) 50%, rgba(255, 255, 255, 0.15) 75%, transparent 75%, transparent);\n background-size: 40px 40px;\n}\n.progress.active .progress-bar,\n.progress-bar.active {\n -webkit-animation: progress-bar-stripes 2s linear infinite;\n -o-animation: progress-bar-stripes 2s linear infinite;\n animation: progress-bar-stripes 2s linear infinite;\n}\n.progress-bar-success {\n background-color: #5cb85c;\n}\n.progress-striped .progress-bar-success {\n background-image: -webkit-linear-gradient(45deg, rgba(255, 255, 255, 0.15) 25%, transparent 25%, transparent 50%, rgba(255, 255, 255, 0.15) 50%, rgba(255, 255, 255, 0.15) 75%, transparent 75%, transparent);\n background-image: -o-linear-gradient(45deg, rgba(255, 255, 255, 0.15) 25%, transparent 25%, transparent 50%, rgba(255, 255, 255, 0.15) 50%, rgba(255, 255, 255, 0.15) 75%, transparent 75%, transparent);\n background-image: linear-gradient(45deg, rgba(255, 255, 255, 0.15) 25%, transparent 25%, transparent 50%, rgba(255, 255, 255, 0.15) 50%, rgba(255, 255, 255, 0.15) 75%, transparent 75%, transparent);\n}\n.progress-bar-info {\n background-color: #5bc0de;\n}\n.progress-striped .progress-bar-info {\n background-image: -webkit-linear-gradient(45deg, rgba(255, 255, 255, 0.15) 25%, transparent 25%, transparent 50%, rgba(255, 255, 255, 0.15) 50%, rgba(255, 255, 255, 0.15) 75%, transparent 75%, transparent);\n background-image: -o-linear-gradient(45deg, rgba(255, 255, 255, 0.15) 25%, transparent 25%, transparent 50%, rgba(255, 255, 255, 0.15) 50%, rgba(255, 255, 255, 0.15) 75%, transparent 75%, transparent);\n background-image: linear-gradient(45deg, rgba(255, 255, 255, 0.15) 25%, transparent 25%, transparent 50%, rgba(255, 255, 255, 0.15) 50%, rgba(255, 255, 255, 0.15) 75%, transparent 75%, transparent);\n}\n.progress-bar-warning {\n background-color: #f0ad4e;\n}\n.progress-striped .progress-bar-warning {\n background-image: -webkit-linear-gradient(45deg, rgba(255, 255, 255, 0.15) 25%, transparent 25%, transparent 50%, rgba(255, 255, 255, 0.15) 50%, rgba(255, 255, 255, 0.15) 75%, transparent 75%, transparent);\n background-image: -o-linear-gradient(45deg, rgba(255, 255, 255, 0.15) 25%, transparent 25%, transparent 50%, rgba(255, 255, 255, 0.15) 50%, rgba(255, 255, 255, 0.15) 75%, transparent 75%, transparent);\n background-image: linear-gradient(45deg, rgba(255, 255, 255, 0.15) 25%, transparent 25%, transparent 50%, rgba(255, 255, 255, 0.15) 50%, rgba(255, 255, 255, 0.15) 75%, transparent 75%, transparent);\n}\n.progress-bar-danger {\n background-color: #d9534f;\n}\n.progress-striped .progress-bar-danger {\n background-image: -webkit-linear-gradient(45deg, rgba(255, 255, 255, 0.15) 25%, transparent 25%, transparent 50%, rgba(255, 255, 255, 0.15) 50%, rgba(255, 255, 255, 0.15) 75%, transparent 75%, transparent);\n background-image: -o-linear-gradient(45deg, rgba(255, 255, 255, 0.15) 25%, transparent 25%, transparent 50%, rgba(255, 255, 255, 0.15) 50%, rgba(255, 255, 255, 0.15) 75%, transparent 75%, transparent);\n background-image: linear-gradient(45deg, rgba(255, 255, 255, 0.15) 25%, transparent 25%, transparent 50%, rgba(255, 255, 255, 0.15) 50%, rgba(255, 255, 255, 0.15) 75%, transparent 75%, transparent);\n}\n.media {\n margin-top: 15px;\n}\n.media:first-child {\n margin-top: 0;\n}\n.media-right,\n.media > .pull-right {\n padding-left: 10px;\n}\n.media-left,\n.media > .pull-left {\n padding-right: 10px;\n}\n.media-left,\n.media-right,\n.media-body {\n display: table-cell;\n vertical-align: top;\n}\n.media-middle {\n vertical-align: middle;\n}\n.media-bottom {\n vertical-align: bottom;\n}\n.media-heading {\n margin-top: 0;\n margin-bottom: 5px;\n}\n.media-list {\n padding-left: 0;\n list-style: none;\n}\n.list-group {\n margin-bottom: 20px;\n padding-left: 0;\n}\n.list-group-item {\n position: relative;\n display: block;\n padding: 10px 15px;\n margin-bottom: -1px;\n background-color: #ffffff;\n border: 1px solid #dddddd;\n}\n.list-group-item:first-child {\n border-top-right-radius: 4px;\n border-top-left-radius: 4px;\n}\n.list-group-item:last-child {\n margin-bottom: 0;\n border-bottom-right-radius: 4px;\n border-bottom-left-radius: 4px;\n}\n.list-group-item > .badge {\n float: right;\n}\n.list-group-item > .badge + .badge {\n margin-right: 5px;\n}\na.list-group-item {\n color: #555555;\n}\na.list-group-item .list-group-item-heading {\n color: #333333;\n}\na.list-group-item:hover,\na.list-group-item:focus {\n text-decoration: none;\n color: #555555;\n background-color: #f5f5f5;\n}\n.list-group-item.disabled,\n.list-group-item.disabled:hover,\n.list-group-item.disabled:focus {\n background-color: #eeeeee;\n color: #777777;\n cursor: not-allowed;\n}\n.list-group-item.disabled .list-group-item-heading,\n.list-group-item.disabled:hover .list-group-item-heading,\n.list-group-item.disabled:focus .list-group-item-heading {\n color: inherit;\n}\n.list-group-item.disabled .list-group-item-text,\n.list-group-item.disabled:hover .list-group-item-text,\n.list-group-item.disabled:focus .list-group-item-text {\n color: #777777;\n}\n.list-group-item.active,\n.list-group-item.active:hover,\n.list-group-item.active:focus {\n z-index: 2;\n color: #ffffff;\n background-color: #428bca;\n border-color: #428bca;\n}\n.list-group-item.active .list-group-item-heading,\n.list-group-item.active:hover .list-group-item-heading,\n.list-group-item.active:focus .list-group-item-heading,\n.list-group-item.active .list-group-item-heading > small,\n.list-group-item.active:hover .list-group-item-heading > small,\n.list-group-item.active:focus .list-group-item-heading > small,\n.list-group-item.active .list-group-item-heading > .small,\n.list-group-item.active:hover .list-group-item-heading > .small,\n.list-group-item.active:focus .list-group-item-heading > .small {\n color: inherit;\n}\n.list-group-item.active .list-group-item-text,\n.list-group-item.active:hover .list-group-item-text,\n.list-group-item.active:focus .list-group-item-text {\n color: #e1edf7;\n}\n.list-group-item-success {\n color: #3c763d;\n background-color: #dff0d8;\n}\na.list-group-item-success {\n color: #3c763d;\n}\na.list-group-item-success .list-group-item-heading {\n color: inherit;\n}\na.list-group-item-success:hover,\na.list-group-item-success:focus {\n color: #3c763d;\n background-color: #d0e9c6;\n}\na.list-group-item-success.active,\na.list-group-item-success.active:hover,\na.list-group-item-success.active:focus {\n color: #fff;\n background-color: #3c763d;\n border-color: #3c763d;\n}\n.list-group-item-info {\n color: #31708f;\n background-color: #d9edf7;\n}\na.list-group-item-info {\n color: #31708f;\n}\na.list-group-item-info .list-group-item-heading {\n color: inherit;\n}\na.list-group-item-info:hover,\na.list-group-item-info:focus {\n color: #31708f;\n background-color: #c4e3f3;\n}\na.list-group-item-info.active,\na.list-group-item-info.active:hover,\na.list-group-item-info.active:focus {\n color: #fff;\n background-color: #31708f;\n border-color: #31708f;\n}\n.list-group-item-warning {\n color: #8a6d3b;\n background-color: #fcf8e3;\n}\na.list-group-item-warning {\n color: #8a6d3b;\n}\na.list-group-item-warning .list-group-item-heading {\n color: inherit;\n}\na.list-group-item-warning:hover,\na.list-group-item-warning:focus {\n color: #8a6d3b;\n background-color: #faf2cc;\n}\na.list-group-item-warning.active,\na.list-group-item-warning.active:hover,\na.list-group-item-warning.active:focus {\n color: #fff;\n background-color: #8a6d3b;\n border-color: #8a6d3b;\n}\n.list-group-item-danger {\n color: #a94442;\n background-color: #f2dede;\n}\na.list-group-item-danger {\n color: #a94442;\n}\na.list-group-item-danger .list-group-item-heading {\n color: inherit;\n}\na.list-group-item-danger:hover,\na.list-group-item-danger:focus {\n color: #a94442;\n background-color: #ebcccc;\n}\na.list-group-item-danger.active,\na.list-group-item-danger.active:hover,\na.list-group-item-danger.active:focus {\n color: #fff;\n background-color: #a94442;\n border-color: #a94442;\n}\n.list-group-item-heading {\n margin-top: 0;\n margin-bottom: 5px;\n}\n.list-group-item-text {\n margin-bottom: 0;\n line-height: 1.3;\n}\n.panel {\n margin-bottom: 20px;\n background-color: #ffffff;\n border: 1px solid transparent;\n border-radius: 4px;\n -webkit-box-shadow: 0 1px 1px rgba(0, 0, 0, 0.05);\n box-shadow: 0 1px 1px rgba(0, 0, 0, 0.05);\n}\n.panel-body {\n padding: 15px;\n}\n.panel-heading {\n padding: 10px 15px;\n border-bottom: 1px solid transparent;\n border-top-right-radius: 3px;\n border-top-left-radius: 3px;\n}\n.panel-heading > .dropdown .dropdown-toggle {\n color: inherit;\n}\n.panel-title {\n margin-top: 0;\n margin-bottom: 0;\n font-size: 16px;\n color: inherit;\n}\n.panel-title > a {\n color: inherit;\n}\n.panel-footer {\n padding: 10px 15px;\n background-color: #f5f5f5;\n border-top: 1px solid #dddddd;\n border-bottom-right-radius: 3px;\n border-bottom-left-radius: 3px;\n}\n.panel > .list-group,\n.panel > .panel-collapse > .list-group {\n margin-bottom: 0;\n}\n.panel > .list-group .list-group-item,\n.panel > .panel-collapse > .list-group .list-group-item {\n border-width: 1px 0;\n border-radius: 0;\n}\n.panel > .list-group:first-child .list-group-item:first-child,\n.panel > .panel-collapse > .list-group:first-child .list-group-item:first-child {\n border-top: 0;\n border-top-right-radius: 3px;\n border-top-left-radius: 3px;\n}\n.panel > .list-group:last-child .list-group-item:last-child,\n.panel > .panel-collapse > .list-group:last-child .list-group-item:last-child {\n border-bottom: 0;\n border-bottom-right-radius: 3px;\n border-bottom-left-radius: 3px;\n}\n.panel-heading + .list-group .list-group-item:first-child {\n border-top-width: 0;\n}\n.list-group + .panel-footer {\n border-top-width: 0;\n}\n.panel > .table,\n.panel > .table-responsive > .table,\n.panel > .panel-collapse > .table {\n margin-bottom: 0;\n}\n.panel > .table caption,\n.panel > .table-responsive > .table caption,\n.panel > .panel-collapse > .table caption {\n padding-left: 15px;\n padding-right: 15px;\n}\n.panel > .table:first-child,\n.panel > .table-responsive:first-child > .table:first-child {\n border-top-right-radius: 3px;\n border-top-left-radius: 3px;\n}\n.panel > .table:first-child > thead:first-child > tr:first-child,\n.panel > .table-responsive:first-child > .table:first-child > thead:first-child > tr:first-child,\n.panel > .table:first-child > tbody:first-child > tr:first-child,\n.panel > .table-responsive:first-child > .table:first-child > tbody:first-child > tr:first-child {\n border-top-left-radius: 3px;\n border-top-right-radius: 3px;\n}\n.panel > .table:first-child > thead:first-child > tr:first-child td:first-child,\n.panel > .table-responsive:first-child > .table:first-child > thead:first-child > tr:first-child td:first-child,\n.panel > .table:first-child > tbody:first-child > tr:first-child td:first-child,\n.panel > .table-responsive:first-child > .table:first-child > tbody:first-child > tr:first-child td:first-child,\n.panel > .table:first-child > thead:first-child > tr:first-child th:first-child,\n.panel > .table-responsive:first-child > .table:first-child > thead:first-child > tr:first-child th:first-child,\n.panel > .table:first-child > tbody:first-child > tr:first-child th:first-child,\n.panel > .table-responsive:first-child > .table:first-child > tbody:first-child > tr:first-child th:first-child {\n border-top-left-radius: 3px;\n}\n.panel > .table:first-child > thead:first-child > tr:first-child td:last-child,\n.panel > .table-responsive:first-child > .table:first-child > thead:first-child > tr:first-child td:last-child,\n.panel > .table:first-child > tbody:first-child > tr:first-child td:last-child,\n.panel > .table-responsive:first-child > .table:first-child > tbody:first-child > tr:first-child td:last-child,\n.panel > .table:first-child > thead:first-child > tr:first-child th:last-child,\n.panel > .table-responsive:first-child > .table:first-child > thead:first-child > tr:first-child th:last-child,\n.panel > .table:first-child > tbody:first-child > tr:first-child th:last-child,\n.panel > .table-responsive:first-child > .table:first-child > tbody:first-child > tr:first-child th:last-child {\n border-top-right-radius: 3px;\n}\n.panel > .table:last-child,\n.panel > .table-responsive:last-child > .table:last-child {\n border-bottom-right-radius: 3px;\n border-bottom-left-radius: 3px;\n}\n.panel > .table:last-child > tbody:last-child > tr:last-child,\n.panel > .table-responsive:last-child > .table:last-child > tbody:last-child > tr:last-child,\n.panel > .table:last-child > tfoot:last-child > tr:last-child,\n.panel > .table-responsive:last-child > .table:last-child > tfoot:last-child > tr:last-child {\n border-bottom-left-radius: 3px;\n border-bottom-right-radius: 3px;\n}\n.panel > .table:last-child > tbody:last-child > tr:last-child td:first-child,\n.panel > .table-responsive:last-child > .table:last-child > tbody:last-child > tr:last-child td:first-child,\n.panel > .table:last-child > tfoot:last-child > tr:last-child td:first-child,\n.panel > .table-responsive:last-child > .table:last-child > tfoot:last-child > tr:last-child td:first-child,\n.panel > .table:last-child > tbody:last-child > tr:last-child th:first-child,\n.panel > .table-responsive:last-child > .table:last-child > tbody:last-child > tr:last-child th:first-child,\n.panel > .table:last-child > tfoot:last-child > tr:last-child th:first-child,\n.panel > .table-responsive:last-child > .table:last-child > tfoot:last-child > tr:last-child th:first-child {\n border-bottom-left-radius: 3px;\n}\n.panel > .table:last-child > tbody:last-child > tr:last-child td:last-child,\n.panel > .table-responsive:last-child > .table:last-child > tbody:last-child > tr:last-child td:last-child,\n.panel > .table:last-child > tfoot:last-child > tr:last-child td:last-child,\n.panel > .table-responsive:last-child > .table:last-child > tfoot:last-child > tr:last-child td:last-child,\n.panel > .table:last-child > tbody:last-child > tr:last-child th:last-child,\n.panel > .table-responsive:last-child > .table:last-child > tbody:last-child > tr:last-child th:last-child,\n.panel > .table:last-child > tfoot:last-child > tr:last-child th:last-child,\n.panel > .table-responsive:last-child > .table:last-child > tfoot:last-child > tr:last-child th:last-child {\n border-bottom-right-radius: 3px;\n}\n.panel > .panel-body + .table,\n.panel > .panel-body + .table-responsive,\n.panel > .table + .panel-body,\n.panel > .table-responsive + .panel-body {\n border-top: 1px solid #dddddd;\n}\n.panel > .table > tbody:first-child > tr:first-child th,\n.panel > .table > tbody:first-child > tr:first-child td {\n border-top: 0;\n}\n.panel > .table-bordered,\n.panel > .table-responsive > .table-bordered {\n border: 0;\n}\n.panel > .table-bordered > thead > tr > th:first-child,\n.panel > .table-responsive > .table-bordered > thead > tr > th:first-child,\n.panel > .table-bordered > tbody > tr > th:first-child,\n.panel > .table-responsive > .table-bordered > tbody > tr > th:first-child,\n.panel > .table-bordered > tfoot > tr > th:first-child,\n.panel > .table-responsive > .table-bordered > tfoot > tr > th:first-child,\n.panel > .table-bordered > thead > tr > td:first-child,\n.panel > .table-responsive > .table-bordered > thead > tr > td:first-child,\n.panel > .table-bordered > tbody > tr > td:first-child,\n.panel > .table-responsive > .table-bordered > tbody > tr > td:first-child,\n.panel > .table-bordered > tfoot > tr > td:first-child,\n.panel > .table-responsive > .table-bordered > tfoot > tr > td:first-child {\n border-left: 0;\n}\n.panel > .table-bordered > thead > tr > th:last-child,\n.panel > .table-responsive > .table-bordered > thead > tr > th:last-child,\n.panel > .table-bordered > tbody > tr > th:last-child,\n.panel > .table-responsive > .table-bordered > tbody > tr > th:last-child,\n.panel > .table-bordered > tfoot > tr > th:last-child,\n.panel > .table-responsive > .table-bordered > tfoot > tr > th:last-child,\n.panel > .table-bordered > thead > tr > td:last-child,\n.panel > .table-responsive > .table-bordered > thead > tr > td:last-child,\n.panel > .table-bordered > tbody > tr > td:last-child,\n.panel > .table-responsive > .table-bordered > tbody > tr > td:last-child,\n.panel > .table-bordered > tfoot > tr > td:last-child,\n.panel > .table-responsive > .table-bordered > tfoot > tr > td:last-child {\n border-right: 0;\n}\n.panel > .table-bordered > thead > tr:first-child > td,\n.panel > .table-responsive > .table-bordered > thead > tr:first-child > td,\n.panel > .table-bordered > tbody > tr:first-child > td,\n.panel > .table-responsive > .table-bordered > tbody > tr:first-child > td,\n.panel > .table-bordered > thead > tr:first-child > th,\n.panel > .table-responsive > .table-bordered > thead > tr:first-child > th,\n.panel > .table-bordered > tbody > tr:first-child > th,\n.panel > .table-responsive > .table-bordered > tbody > tr:first-child > th {\n border-bottom: 0;\n}\n.panel > .table-bordered > tbody > tr:last-child > td,\n.panel > .table-responsive > .table-bordered > tbody > tr:last-child > td,\n.panel > .table-bordered > tfoot > tr:last-child > td,\n.panel > .table-responsive > .table-bordered > tfoot > tr:last-child > td,\n.panel > .table-bordered > tbody > tr:last-child > th,\n.panel > .table-responsive > .table-bordered > tbody > tr:last-child > th,\n.panel > .table-bordered > tfoot > tr:last-child > th,\n.panel > .table-responsive > .table-bordered > tfoot > tr:last-child > th {\n border-bottom: 0;\n}\n.panel > .table-responsive {\n border: 0;\n margin-bottom: 0;\n}\n.panel-group {\n margin-bottom: 20px;\n}\n.panel-group .panel {\n margin-bottom: 0;\n border-radius: 4px;\n}\n.panel-group .panel + .panel {\n margin-top: 5px;\n}\n.panel-group .panel-heading {\n border-bottom: 0;\n}\n.panel-group .panel-heading + .panel-collapse > .panel-body,\n.panel-group .panel-heading + .panel-collapse > .list-group {\n border-top: 1px solid #dddddd;\n}\n.panel-group .panel-footer {\n border-top: 0;\n}\n.panel-group .panel-footer + .panel-collapse .panel-body {\n border-bottom: 1px solid #dddddd;\n}\n.panel-default {\n border-color: #dddddd;\n}\n.panel-default > .panel-heading {\n color: #333333;\n background-color: #f5f5f5;\n border-color: #dddddd;\n}\n.panel-default > .panel-heading + .panel-collapse > .panel-body {\n border-top-color: #dddddd;\n}\n.panel-default > .panel-heading .badge {\n color: #f5f5f5;\n background-color: #333333;\n}\n.panel-default > .panel-footer + .panel-collapse > .panel-body {\n border-bottom-color: #dddddd;\n}\n.panel-primary {\n border-color: #428bca;\n}\n.panel-primary > .panel-heading {\n color: #ffffff;\n background-color: #428bca;\n border-color: #428bca;\n}\n.panel-primary > .panel-heading + .panel-collapse > .panel-body {\n border-top-color: #428bca;\n}\n.panel-primary > .panel-heading .badge {\n color: #428bca;\n background-color: #ffffff;\n}\n.panel-primary > .panel-footer + .panel-collapse > .panel-body {\n border-bottom-color: #428bca;\n}\n.panel-success {\n border-color: #d6e9c6;\n}\n.panel-success > .panel-heading {\n color: #3c763d;\n background-color: #dff0d8;\n border-color: #d6e9c6;\n}\n.panel-success > .panel-heading + .panel-collapse > .panel-body {\n border-top-color: #d6e9c6;\n}\n.panel-success > .panel-heading .badge {\n color: #dff0d8;\n background-color: #3c763d;\n}\n.panel-success > .panel-footer + .panel-collapse > .panel-body {\n border-bottom-color: #d6e9c6;\n}\n.panel-info {\n border-color: #bce8f1;\n}\n.panel-info > .panel-heading {\n color: #31708f;\n background-color: #d9edf7;\n border-color: #bce8f1;\n}\n.panel-info > .panel-heading + .panel-collapse > .panel-body {\n border-top-color: #bce8f1;\n}\n.panel-info > .panel-heading .badge {\n color: #d9edf7;\n background-color: #31708f;\n}\n.panel-info > .panel-footer + .panel-collapse > .panel-body {\n border-bottom-color: #bce8f1;\n}\n.panel-warning {\n border-color: #faebcc;\n}\n.panel-warning > .panel-heading {\n color: #8a6d3b;\n background-color: #fcf8e3;\n border-color: #faebcc;\n}\n.panel-warning > .panel-heading + .panel-collapse > .panel-body {\n border-top-color: #faebcc;\n}\n.panel-warning > .panel-heading .badge {\n color: #fcf8e3;\n background-color: #8a6d3b;\n}\n.panel-warning > .panel-footer + .panel-collapse > .panel-body {\n border-bottom-color: #faebcc;\n}\n.panel-danger {\n border-color: #ebccd1;\n}\n.panel-danger > .panel-heading {\n color: #a94442;\n background-color: #f2dede;\n border-color: #ebccd1;\n}\n.panel-danger > .panel-heading + .panel-collapse > .panel-body {\n border-top-color: #ebccd1;\n}\n.panel-danger > .panel-heading .badge {\n color: #f2dede;\n background-color: #a94442;\n}\n.panel-danger > .panel-footer + .panel-collapse > .panel-body {\n border-bottom-color: #ebccd1;\n}\n.embed-responsive {\n position: relative;\n display: block;\n height: 0;\n padding: 0;\n overflow: hidden;\n}\n.embed-responsive .embed-responsive-item,\n.embed-responsive iframe,\n.embed-responsive embed,\n.embed-responsive object,\n.embed-responsive video {\n position: absolute;\n top: 0;\n left: 0;\n bottom: 0;\n height: 100%;\n width: 100%;\n border: 0;\n}\n.embed-responsive.embed-responsive-16by9 {\n padding-bottom: 56.25%;\n}\n.embed-responsive.embed-responsive-4by3 {\n padding-bottom: 75%;\n}\n.well {\n min-height: 20px;\n padding: 19px;\n margin-bottom: 20px;\n background-color: #f5f5f5;\n border: 1px solid #e3e3e3;\n border-radius: 4px;\n -webkit-box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.05);\n box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.05);\n}\n.well blockquote {\n border-color: #ddd;\n border-color: rgba(0, 0, 0, 0.15);\n}\n.well-lg {\n padding: 24px;\n border-radius: 6px;\n}\n.well-sm {\n padding: 9px;\n border-radius: 3px;\n}\n.close {\n float: right;\n font-size: 21px;\n font-weight: bold;\n line-height: 1;\n color: #000000;\n text-shadow: 0 1px 0 #ffffff;\n opacity: 0.2;\n filter: alpha(opacity=20);\n}\n.close:hover,\n.close:focus {\n color: #000000;\n text-decoration: none;\n cursor: pointer;\n opacity: 0.5;\n filter: alpha(opacity=50);\n}\nbutton.close {\n padding: 0;\n cursor: pointer;\n background: transparent;\n border: 0;\n -webkit-appearance: none;\n}\n.modal-open {\n overflow: hidden;\n}\n.modal {\n display: none;\n overflow: hidden;\n position: fixed;\n top: 0;\n right: 0;\n bottom: 0;\n left: 0;\n z-index: 1040;\n -webkit-overflow-scrolling: touch;\n outline: 0;\n}\n.modal.fade .modal-dialog {\n -webkit-transform: translate(0, -25%);\n -ms-transform: translate(0, -25%);\n -o-transform: translate(0, -25%);\n transform: translate(0, -25%);\n -webkit-transition: -webkit-transform 0.3s ease-out;\n -moz-transition: -moz-transform 0.3s ease-out;\n -o-transition: -o-transform 0.3s ease-out;\n transition: transform 0.3s ease-out;\n}\n.modal.in .modal-dialog {\n -webkit-transform: translate(0, 0);\n -ms-transform: translate(0, 0);\n -o-transform: translate(0, 0);\n transform: translate(0, 0);\n}\n.modal-open .modal {\n overflow-x: hidden;\n overflow-y: auto;\n}\n.modal-dialog {\n position: relative;\n width: auto;\n margin: 10px;\n}\n.modal-content {\n position: relative;\n background-color: #ffffff;\n border: 1px solid #999999;\n border: 1px solid rgba(0, 0, 0, 0.2);\n border-radius: 6px;\n -webkit-box-shadow: 0 3px 9px rgba(0, 0, 0, 0.5);\n box-shadow: 0 3px 9px rgba(0, 0, 0, 0.5);\n background-clip: padding-box;\n outline: 0;\n}\n.modal-backdrop {\n position: fixed;\n top: 0;\n right: 0;\n bottom: 0;\n left: 0;\n background-color: #000000;\n}\n.modal-backdrop.fade {\n opacity: 0;\n filter: alpha(opacity=0);\n}\n.modal-backdrop.in {\n opacity: 0.5;\n filter: alpha(opacity=50);\n}\n.modal-header {\n padding: 15px;\n border-bottom: 1px solid #e5e5e5;\n min-height: 16.42857143px;\n}\n.modal-header .close {\n margin-top: -2px;\n}\n.modal-title {\n margin: 0;\n line-height: 1.42857143;\n}\n.modal-body {\n position: relative;\n padding: 15px;\n}\n.modal-footer {\n padding: 15px;\n text-align: right;\n border-top: 1px solid #e5e5e5;\n}\n.modal-footer .btn + .btn {\n margin-left: 5px;\n margin-bottom: 0;\n}\n.modal-footer .btn-group .btn + .btn {\n margin-left: -1px;\n}\n.modal-footer .btn-block + .btn-block {\n margin-left: 0;\n}\n.modal-scrollbar-measure {\n position: absolute;\n top: -9999px;\n width: 50px;\n height: 50px;\n overflow: scroll;\n}\n@media (min-width: 768px) {\n .modal-dialog {\n width: 600px;\n margin: 30px auto;\n }\n .modal-content {\n -webkit-box-shadow: 0 5px 15px rgba(0, 0, 0, 0.5);\n box-shadow: 0 5px 15px rgba(0, 0, 0, 0.5);\n }\n .modal-sm {\n width: 300px;\n }\n}\n@media (min-width: 992px) {\n .modal-lg {\n width: 900px;\n }\n}\n.tooltip {\n position: absolute;\n z-index: 1070;\n display: block;\n visibility: visible;\n font-size: 12px;\n line-height: 1.4;\n opacity: 0;\n filter: alpha(opacity=0);\n}\n.tooltip.in {\n opacity: 0.9;\n filter: alpha(opacity=90);\n}\n.tooltip.top {\n margin-top: -3px;\n padding: 5px 0;\n}\n.tooltip.right {\n margin-left: 3px;\n padding: 0 5px;\n}\n.tooltip.bottom {\n margin-top: 3px;\n padding: 5px 0;\n}\n.tooltip.left {\n margin-left: -3px;\n padding: 0 5px;\n}\n.tooltip-inner {\n max-width: 200px;\n padding: 3px 8px;\n color: #ffffff;\n text-align: center;\n text-decoration: none;\n background-color: #000000;\n border-radius: 4px;\n}\n.tooltip-arrow {\n position: absolute;\n width: 0;\n height: 0;\n border-color: transparent;\n border-style: solid;\n}\n.tooltip.top .tooltip-arrow {\n bottom: 0;\n left: 50%;\n margin-left: -5px;\n border-width: 5px 5px 0;\n border-top-color: #000000;\n}\n.tooltip.top-left .tooltip-arrow {\n bottom: 0;\n left: 5px;\n border-width: 5px 5px 0;\n border-top-color: #000000;\n}\n.tooltip.top-right .tooltip-arrow {\n bottom: 0;\n right: 5px;\n border-width: 5px 5px 0;\n border-top-color: #000000;\n}\n.tooltip.right .tooltip-arrow {\n top: 50%;\n left: 0;\n margin-top: -5px;\n border-width: 5px 5px 5px 0;\n border-right-color: #000000;\n}\n.tooltip.left .tooltip-arrow {\n top: 50%;\n right: 0;\n margin-top: -5px;\n border-width: 5px 0 5px 5px;\n border-left-color: #000000;\n}\n.tooltip.bottom .tooltip-arrow {\n top: 0;\n left: 50%;\n margin-left: -5px;\n border-width: 0 5px 5px;\n border-bottom-color: #000000;\n}\n.tooltip.bottom-left .tooltip-arrow {\n top: 0;\n left: 5px;\n border-width: 0 5px 5px;\n border-bottom-color: #000000;\n}\n.tooltip.bottom-right .tooltip-arrow {\n top: 0;\n right: 5px;\n border-width: 0 5px 5px;\n border-bottom-color: #000000;\n}\n.popover {\n position: absolute;\n top: 0;\n left: 0;\n z-index: 1060;\n display: none;\n max-width: 276px;\n padding: 1px;\n font-size: 14px;\n font-weight: normal;\n line-height: 1.42857143;\n text-align: left;\n background-color: #ffffff;\n background-clip: padding-box;\n border: 1px solid #cccccc;\n border: 1px solid rgba(0, 0, 0, 0.2);\n border-radius: 6px;\n -webkit-box-shadow: 0 5px 10px rgba(0, 0, 0, 0.2);\n box-shadow: 0 5px 10px rgba(0, 0, 0, 0.2);\n white-space: normal;\n}\n.popover.top {\n margin-top: -10px;\n}\n.popover.right {\n margin-left: 10px;\n}\n.popover.bottom {\n margin-top: 10px;\n}\n.popover.left {\n margin-left: -10px;\n}\n.popover-title {\n margin: 0;\n padding: 8px 14px;\n font-size: 14px;\n background-color: #f7f7f7;\n border-bottom: 1px solid #ebebeb;\n border-radius: 5px 5px 0 0;\n}\n.popover-content {\n padding: 9px 14px;\n}\n.popover > .arrow,\n.popover > .arrow:after {\n position: absolute;\n display: block;\n width: 0;\n height: 0;\n border-color: transparent;\n border-style: solid;\n}\n.popover > .arrow {\n border-width: 11px;\n}\n.popover > .arrow:after {\n border-width: 10px;\n content: \"\";\n}\n.popover.top > .arrow {\n left: 50%;\n margin-left: -11px;\n border-bottom-width: 0;\n border-top-color: #999999;\n border-top-color: rgba(0, 0, 0, 0.25);\n bottom: -11px;\n}\n.popover.top > .arrow:after {\n content: \" \";\n bottom: 1px;\n margin-left: -10px;\n border-bottom-width: 0;\n border-top-color: #ffffff;\n}\n.popover.right > .arrow {\n top: 50%;\n left: -11px;\n margin-top: -11px;\n border-left-width: 0;\n border-right-color: #999999;\n border-right-color: rgba(0, 0, 0, 0.25);\n}\n.popover.right > .arrow:after {\n content: \" \";\n left: 1px;\n bottom: -10px;\n border-left-width: 0;\n border-right-color: #ffffff;\n}\n.popover.bottom > .arrow {\n left: 50%;\n margin-left: -11px;\n border-top-width: 0;\n border-bottom-color: #999999;\n border-bottom-color: rgba(0, 0, 0, 0.25);\n top: -11px;\n}\n.popover.bottom > .arrow:after {\n content: \" \";\n top: 1px;\n margin-left: -10px;\n border-top-width: 0;\n border-bottom-color: #ffffff;\n}\n.popover.left > .arrow {\n top: 50%;\n right: -11px;\n margin-top: -11px;\n border-right-width: 0;\n border-left-color: #999999;\n border-left-color: rgba(0, 0, 0, 0.25);\n}\n.popover.left > .arrow:after {\n content: \" \";\n right: 1px;\n border-right-width: 0;\n border-left-color: #ffffff;\n bottom: -10px;\n}\n.carousel {\n position: relative;\n}\n.carousel-inner {\n position: relative;\n overflow: hidden;\n width: 100%;\n}\n.carousel-inner > .item {\n display: none;\n position: relative;\n -webkit-transition: 0.6s ease-in-out left;\n -o-transition: 0.6s ease-in-out left;\n transition: 0.6s ease-in-out left;\n}\n.carousel-inner > .item > img,\n.carousel-inner > .item > a > img {\n line-height: 1;\n}\n@media all and (transform-3d), (-webkit-transform-3d) {\n .carousel-inner > .item {\n transition: transform 0.6s ease-in-out;\n backface-visibility: hidden;\n perspective: 1000;\n }\n .carousel-inner > .item.next,\n .carousel-inner > .item.active.right {\n transform: translate3d(100%, 0, 0);\n left: 0;\n }\n .carousel-inner > .item.prev,\n .carousel-inner > .item.active.left {\n transform: translate3d(-100%, 0, 0);\n left: 0;\n }\n .carousel-inner > .item.next.left,\n .carousel-inner > .item.prev.right,\n .carousel-inner > .item.active {\n transform: translate3d(0, 0, 0);\n left: 0;\n }\n}\n.carousel-inner > .active,\n.carousel-inner > .next,\n.carousel-inner > .prev {\n display: block;\n}\n.carousel-inner > .active {\n left: 0;\n}\n.carousel-inner > .next,\n.carousel-inner > .prev {\n position: absolute;\n top: 0;\n width: 100%;\n}\n.carousel-inner > .next {\n left: 100%;\n}\n.carousel-inner > .prev {\n left: -100%;\n}\n.carousel-inner > .next.left,\n.carousel-inner > .prev.right {\n left: 0;\n}\n.carousel-inner > .active.left {\n left: -100%;\n}\n.carousel-inner > .active.right {\n left: 100%;\n}\n.carousel-control {\n position: absolute;\n top: 0;\n left: 0;\n bottom: 0;\n width: 15%;\n opacity: 0.5;\n filter: alpha(opacity=50);\n font-size: 20px;\n color: #ffffff;\n text-align: center;\n text-shadow: 0 1px 2px rgba(0, 0, 0, 0.6);\n}\n.carousel-control.left {\n background-image: -webkit-linear-gradient(left, rgba(0, 0, 0, 0.5) 0%, rgba(0, 0, 0, 0.0001) 100%);\n background-image: -o-linear-gradient(left, rgba(0, 0, 0, 0.5) 0%, rgba(0, 0, 0, 0.0001) 100%);\n background-image: linear-gradient(to right, rgba(0, 0, 0, 0.5) 0%, rgba(0, 0, 0, 0.0001) 100%);\n background-repeat: repeat-x;\n filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#80000000', endColorstr='#00000000', GradientType=1);\n}\n.carousel-control.right {\n left: auto;\n right: 0;\n background-image: -webkit-linear-gradient(left, rgba(0, 0, 0, 0.0001) 0%, rgba(0, 0, 0, 0.5) 100%);\n background-image: -o-linear-gradient(left, rgba(0, 0, 0, 0.0001) 0%, rgba(0, 0, 0, 0.5) 100%);\n background-image: linear-gradient(to right, rgba(0, 0, 0, 0.0001) 0%, rgba(0, 0, 0, 0.5) 100%);\n background-repeat: repeat-x;\n filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#00000000', endColorstr='#80000000', GradientType=1);\n}\n.carousel-control:hover,\n.carousel-control:focus {\n outline: 0;\n color: #ffffff;\n text-decoration: none;\n opacity: 0.9;\n filter: alpha(opacity=90);\n}\n.carousel-control .icon-prev,\n.carousel-control .icon-next,\n.carousel-control .glyphicon-chevron-left,\n.carousel-control .glyphicon-chevron-right {\n position: absolute;\n top: 50%;\n z-index: 5;\n display: inline-block;\n}\n.carousel-control .icon-prev,\n.carousel-control .glyphicon-chevron-left {\n left: 50%;\n margin-left: -10px;\n}\n.carousel-control .icon-next,\n.carousel-control .glyphicon-chevron-right {\n right: 50%;\n margin-right: -10px;\n}\n.carousel-control .icon-prev,\n.carousel-control .icon-next {\n width: 20px;\n height: 20px;\n margin-top: -10px;\n font-family: serif;\n}\n.carousel-control .icon-prev:before {\n content: '\\2039';\n}\n.carousel-control .icon-next:before {\n content: '\\203a';\n}\n.carousel-indicators {\n position: absolute;\n bottom: 10px;\n left: 50%;\n z-index: 15;\n width: 60%;\n margin-left: -30%;\n padding-left: 0;\n list-style: none;\n text-align: center;\n}\n.carousel-indicators li {\n display: inline-block;\n width: 10px;\n height: 10px;\n margin: 1px;\n text-indent: -999px;\n border: 1px solid #ffffff;\n border-radius: 10px;\n cursor: pointer;\n background-color: #000 \\9;\n background-color: rgba(0, 0, 0, 0);\n}\n.carousel-indicators .active {\n margin: 0;\n width: 12px;\n height: 12px;\n background-color: #ffffff;\n}\n.carousel-caption {\n position: absolute;\n left: 15%;\n right: 15%;\n bottom: 20px;\n z-index: 10;\n padding-top: 20px;\n padding-bottom: 20px;\n color: #ffffff;\n text-align: center;\n text-shadow: 0 1px 2px rgba(0, 0, 0, 0.6);\n}\n.carousel-caption .btn {\n text-shadow: none;\n}\n@media screen and (min-width: 768px) {\n .carousel-control .glyphicon-chevron-left,\n .carousel-control .glyphicon-chevron-right,\n .carousel-control .icon-prev,\n .carousel-control .icon-next {\n width: 30px;\n height: 30px;\n margin-top: -15px;\n font-size: 30px;\n }\n .carousel-control .glyphicon-chevron-left,\n .carousel-control .icon-prev {\n margin-left: -15px;\n }\n .carousel-control .glyphicon-chevron-right,\n .carousel-control .icon-next {\n margin-right: -15px;\n }\n .carousel-caption {\n left: 20%;\n right: 20%;\n padding-bottom: 30px;\n }\n .carousel-indicators {\n bottom: 20px;\n }\n}\n.clearfix:before,\n.clearfix:after,\n.dl-horizontal dd:before,\n.dl-horizontal dd:after,\n.container:before,\n.container:after,\n.container-fluid:before,\n.container-fluid:after,\n.row:before,\n.row:after,\n.form-horizontal .form-group:before,\n.form-horizontal .form-group:after,\n.btn-toolbar:before,\n.btn-toolbar:after,\n.btn-group-vertical > .btn-group:before,\n.btn-group-vertical > .btn-group:after,\n.nav:before,\n.nav:after,\n.navbar:before,\n.navbar:after,\n.navbar-header:before,\n.navbar-header:after,\n.navbar-collapse:before,\n.navbar-collapse:after,\n.pager:before,\n.pager:after,\n.panel-body:before,\n.panel-body:after,\n.modal-footer:before,\n.modal-footer:after {\n content: \" \";\n display: table;\n}\n.clearfix:after,\n.dl-horizontal dd:after,\n.container:after,\n.container-fluid:after,\n.row:after,\n.form-horizontal .form-group:after,\n.btn-toolbar:after,\n.btn-group-vertical > .btn-group:after,\n.nav:after,\n.navbar:after,\n.navbar-header:after,\n.navbar-collapse:after,\n.pager:after,\n.panel-body:after,\n.modal-footer:after {\n clear: both;\n}\n.center-block {\n display: block;\n margin-left: auto;\n margin-right: auto;\n}\n.pull-right {\n float: right !important;\n}\n.pull-left {\n float: left !important;\n}\n.hide {\n display: none !important;\n}\n.show {\n display: block !important;\n}\n.invisible {\n visibility: hidden;\n}\n.text-hide {\n font: 0/0 a;\n color: transparent;\n text-shadow: none;\n background-color: transparent;\n border: 0;\n}\n.hidden {\n display: none !important;\n visibility: hidden !important;\n}\n.affix {\n position: fixed;\n}\n@-ms-viewport {\n width: device-width;\n}\n.visible-xs,\n.visible-sm,\n.visible-md,\n.visible-lg {\n display: none !important;\n}\n.visible-xs-block,\n.visible-xs-inline,\n.visible-xs-inline-block,\n.visible-sm-block,\n.visible-sm-inline,\n.visible-sm-inline-block,\n.visible-md-block,\n.visible-md-inline,\n.visible-md-inline-block,\n.visible-lg-block,\n.visible-lg-inline,\n.visible-lg-inline-block {\n display: none !important;\n}\n@media (max-width: 767px) {\n .visible-xs {\n display: block !important;\n }\n table.visible-xs {\n display: table;\n }\n tr.visible-xs {\n display: table-row !important;\n }\n th.visible-xs,\n td.visible-xs {\n display: table-cell !important;\n }\n}\n@media (max-width: 767px) {\n .visible-xs-block {\n display: block !important;\n }\n}\n@media (max-width: 767px) {\n .visible-xs-inline {\n display: inline !important;\n }\n}\n@media (max-width: 767px) {\n .visible-xs-inline-block {\n display: inline-block !important;\n }\n}\n@media (min-width: 768px) and (max-width: 991px) {\n .visible-sm {\n display: block !important;\n }\n table.visible-sm {\n display: table;\n }\n tr.visible-sm {\n display: table-row !important;\n }\n th.visible-sm,\n td.visible-sm {\n display: table-cell !important;\n }\n}\n@media (min-width: 768px) and (max-width: 991px) {\n .visible-sm-block {\n display: block !important;\n }\n}\n@media (min-width: 768px) and (max-width: 991px) {\n .visible-sm-inline {\n display: inline !important;\n }\n}\n@media (min-width: 768px) and (max-width: 991px) {\n .visible-sm-inline-block {\n display: inline-block !important;\n }\n}\n@media (min-width: 992px) and (max-width: 1199px) {\n .visible-md {\n display: block !important;\n }\n table.visible-md {\n display: table;\n }\n tr.visible-md {\n display: table-row !important;\n }\n th.visible-md,\n td.visible-md {\n display: table-cell !important;\n }\n}\n@media (min-width: 992px) and (max-width: 1199px) {\n .visible-md-block {\n display: block !important;\n }\n}\n@media (min-width: 992px) and (max-width: 1199px) {\n .visible-md-inline {\n display: inline !important;\n }\n}\n@media (min-width: 992px) and (max-width: 1199px) {\n .visible-md-inline-block {\n display: inline-block !important;\n }\n}\n@media (min-width: 1200px) {\n .visible-lg {\n display: block !important;\n }\n table.visible-lg {\n display: table;\n }\n tr.visible-lg {\n display: table-row !important;\n }\n th.visible-lg,\n td.visible-lg {\n display: table-cell !important;\n }\n}\n@media (min-width: 1200px) {\n .visible-lg-block {\n display: block !important;\n }\n}\n@media (min-width: 1200px) {\n .visible-lg-inline {\n display: inline !important;\n }\n}\n@media (min-width: 1200px) {\n .visible-lg-inline-block {\n display: inline-block !important;\n }\n}\n@media (max-width: 767px) {\n .hidden-xs {\n display: none !important;\n }\n}\n@media (min-width: 768px) and (max-width: 991px) {\n .hidden-sm {\n display: none !important;\n }\n}\n@media (min-width: 992px) and (max-width: 1199px) {\n .hidden-md {\n display: none !important;\n }\n}\n@media (min-width: 1200px) {\n .hidden-lg {\n display: none !important;\n }\n}\n.visible-print {\n display: none !important;\n}\n@media print {\n .visible-print {\n display: block !important;\n }\n table.visible-print {\n display: table;\n }\n tr.visible-print {\n display: table-row !important;\n }\n th.visible-print,\n td.visible-print {\n display: table-cell !important;\n }\n}\n.visible-print-block {\n display: none !important;\n}\n@media print {\n .visible-print-block {\n display: block !important;\n }\n}\n.visible-print-inline {\n display: none !important;\n}\n@media print {\n .visible-print-inline {\n display: inline !important;\n }\n}\n.visible-print-inline-block {\n display: none !important;\n}\n@media print {\n .visible-print-inline-block {\n display: inline-block !important;\n }\n}\n@media print {\n .hidden-print {\n display: none !important;\n }\n}\n/*# sourceMappingURL=bootstrap.css.map */","/*! normalize.css v3.0.2 | MIT License | git.io/normalize */\n\n//\n// 1. Set default font family to sans-serif.\n// 2. Prevent iOS text size adjust after orientation change, without disabling\n// user zoom.\n//\n\nhtml {\n font-family: sans-serif; // 1\n -ms-text-size-adjust: 100%; // 2\n -webkit-text-size-adjust: 100%; // 2\n}\n\n//\n// Remove default margin.\n//\n\nbody {\n margin: 0;\n}\n\n// HTML5 display definitions\n// ==========================================================================\n\n//\n// Correct `block` display not defined for any HTML5 element in IE 8/9.\n// Correct `block` display not defined for `details` or `summary` in IE 10/11\n// and Firefox.\n// Correct `block` display not defined for `main` in IE 11.\n//\n\narticle,\naside,\ndetails,\nfigcaption,\nfigure,\nfooter,\nheader,\nhgroup,\nmain,\nmenu,\nnav,\nsection,\nsummary {\n display: block;\n}\n\n//\n// 1. Correct `inline-block` display not defined in IE 8/9.\n// 2. Normalize vertical alignment of `progress` in Chrome, Firefox, and Opera.\n//\n\naudio,\ncanvas,\nprogress,\nvideo {\n display: inline-block; // 1\n vertical-align: baseline; // 2\n}\n\n//\n// Prevent modern browsers from displaying `audio` without controls.\n// Remove excess height in iOS 5 devices.\n//\n\naudio:not([controls]) {\n display: none;\n height: 0;\n}\n\n//\n// Address `[hidden]` styling not present in IE 8/9/10.\n// Hide the `template` element in IE 8/9/11, Safari, and Firefox < 22.\n//\n\n[hidden],\ntemplate {\n display: none;\n}\n\n// Links\n// ==========================================================================\n\n//\n// Remove the gray background color from active links in IE 10.\n//\n\na {\n background-color: transparent;\n}\n\n//\n// Improve readability when focused and also mouse hovered in all browsers.\n//\n\na:active,\na:hover {\n outline: 0;\n}\n\n// Text-level semantics\n// ==========================================================================\n\n//\n// Address styling not present in IE 8/9/10/11, Safari, and Chrome.\n//\n\nabbr[title] {\n border-bottom: 1px dotted;\n}\n\n//\n// Address style set to `bolder` in Firefox 4+, Safari, and Chrome.\n//\n\nb,\nstrong {\n font-weight: bold;\n}\n\n//\n// Address styling not present in Safari and Chrome.\n//\n\ndfn {\n font-style: italic;\n}\n\n//\n// Address variable `h1` font-size and margin within `section` and `article`\n// contexts in Firefox 4+, Safari, and Chrome.\n//\n\nh1 {\n font-size: 2em;\n margin: 0.67em 0;\n}\n\n//\n// Address styling not present in IE 8/9.\n//\n\nmark {\n background: #ff0;\n color: #000;\n}\n\n//\n// Address inconsistent and variable font size in all browsers.\n//\n\nsmall {\n font-size: 80%;\n}\n\n//\n// Prevent `sub` and `sup` affecting `line-height` in all browsers.\n//\n\nsub,\nsup {\n font-size: 75%;\n line-height: 0;\n position: relative;\n vertical-align: baseline;\n}\n\nsup {\n top: -0.5em;\n}\n\nsub {\n bottom: -0.25em;\n}\n\n// Embedded content\n// ==========================================================================\n\n//\n// Remove border when inside `a` element in IE 8/9/10.\n//\n\nimg {\n border: 0;\n}\n\n//\n// Correct overflow not hidden in IE 9/10/11.\n//\n\nsvg:not(:root) {\n overflow: hidden;\n}\n\n// Grouping content\n// ==========================================================================\n\n//\n// Address margin not present in IE 8/9 and Safari.\n//\n\nfigure {\n margin: 1em 40px;\n}\n\n//\n// Address differences between Firefox and other browsers.\n//\n\nhr {\n -moz-box-sizing: content-box;\n box-sizing: content-box;\n height: 0;\n}\n\n//\n// Contain overflow in all browsers.\n//\n\npre {\n overflow: auto;\n}\n\n//\n// Address odd `em`-unit font size rendering in all browsers.\n//\n\ncode,\nkbd,\npre,\nsamp {\n font-family: monospace, monospace;\n font-size: 1em;\n}\n\n// Forms\n// ==========================================================================\n\n//\n// Known limitation: by default, Chrome and Safari on OS X allow very limited\n// styling of `select`, unless a `border` property is set.\n//\n\n//\n// 1. Correct color not being inherited.\n// Known issue: affects color of disabled elements.\n// 2. Correct font properties not being inherited.\n// 3. Address margins set differently in Firefox 4+, Safari, and Chrome.\n//\n\nbutton,\ninput,\noptgroup,\nselect,\ntextarea {\n color: inherit; // 1\n font: inherit; // 2\n margin: 0; // 3\n}\n\n//\n// Address `overflow` set to `hidden` in IE 8/9/10/11.\n//\n\nbutton {\n overflow: visible;\n}\n\n//\n// Address inconsistent `text-transform` inheritance for `button` and `select`.\n// All other form control elements do not inherit `text-transform` values.\n// Correct `button` style inheritance in Firefox, IE 8/9/10/11, and Opera.\n// Correct `select` style inheritance in Firefox.\n//\n\nbutton,\nselect {\n text-transform: none;\n}\n\n//\n// 1. Avoid the WebKit bug in Android 4.0.* where (2) destroys native `audio`\n// and `video` controls.\n// 2. Correct inability to style clickable `input` types in iOS.\n// 3. Improve usability and consistency of cursor style between image-type\n// `input` and others.\n//\n\nbutton,\nhtml input[type=\"button\"], // 1\ninput[type=\"reset\"],\ninput[type=\"submit\"] {\n -webkit-appearance: button; // 2\n cursor: pointer; // 3\n}\n\n//\n// Re-set default cursor for disabled elements.\n//\n\nbutton[disabled],\nhtml input[disabled] {\n cursor: default;\n}\n\n//\n// Remove inner padding and border in Firefox 4+.\n//\n\nbutton::-moz-focus-inner,\ninput::-moz-focus-inner {\n border: 0;\n padding: 0;\n}\n\n//\n// Address Firefox 4+ setting `line-height` on `input` using `!important` in\n// the UA stylesheet.\n//\n\ninput {\n line-height: normal;\n}\n\n//\n// It's recommended that you don't attempt to style these elements.\n// Firefox's implementation doesn't respect box-sizing, padding, or width.\n//\n// 1. Address box sizing set to `content-box` in IE 8/9/10.\n// 2. Remove excess padding in IE 8/9/10.\n//\n\ninput[type=\"checkbox\"],\ninput[type=\"radio\"] {\n box-sizing: border-box; // 1\n padding: 0; // 2\n}\n\n//\n// Fix the cursor style for Chrome's increment/decrement buttons. For certain\n// `font-size` values of the `input`, it causes the cursor style of the\n// decrement button to change from `default` to `text`.\n//\n\ninput[type=\"number\"]::-webkit-inner-spin-button,\ninput[type=\"number\"]::-webkit-outer-spin-button {\n height: auto;\n}\n\n//\n// 1. Address `appearance` set to `searchfield` in Safari and Chrome.\n// 2. Address `box-sizing` set to `border-box` in Safari and Chrome\n// (include `-moz` to future-proof).\n//\n\ninput[type=\"search\"] {\n -webkit-appearance: textfield; // 1\n -moz-box-sizing: content-box;\n -webkit-box-sizing: content-box; // 2\n box-sizing: content-box;\n}\n\n//\n// Remove inner padding and search cancel button in Safari and Chrome on OS X.\n// Safari (but not Chrome) clips the cancel button when the search input has\n// padding (and `textfield` appearance).\n//\n\ninput[type=\"search\"]::-webkit-search-cancel-button,\ninput[type=\"search\"]::-webkit-search-decoration {\n -webkit-appearance: none;\n}\n\n//\n// Define consistent border, margin, and padding.\n//\n\nfieldset {\n border: 1px solid #c0c0c0;\n margin: 0 2px;\n padding: 0.35em 0.625em 0.75em;\n}\n\n//\n// 1. Correct `color` not being inherited in IE 8/9/10/11.\n// 2. Remove padding so people aren't caught out if they zero out fieldsets.\n//\n\nlegend {\n border: 0; // 1\n padding: 0; // 2\n}\n\n//\n// Remove default vertical scrollbar in IE 8/9/10/11.\n//\n\ntextarea {\n overflow: auto;\n}\n\n//\n// Don't inherit the `font-weight` (applied by a rule above).\n// NOTE: the default cannot safely be changed in Chrome and Safari on OS X.\n//\n\noptgroup {\n font-weight: bold;\n}\n\n// Tables\n// ==========================================================================\n\n//\n// Remove most spacing between table cells.\n//\n\ntable {\n border-collapse: collapse;\n border-spacing: 0;\n}\n\ntd,\nth {\n padding: 0;\n}\n","/*! Source: https://github.com/h5bp/html5-boilerplate/blob/master/src/css/main.css */\n\n// ==========================================================================\n// Print styles.\n// Inlined to avoid the additional HTTP request: h5bp.com/r\n// ==========================================================================\n\n@media print {\n *,\n *:before,\n *:after {\n background: transparent !important;\n color: #000 !important; // Black prints faster: h5bp.com/s\n box-shadow: none !important;\n text-shadow: none !important;\n }\n\n a,\n a:visited {\n text-decoration: underline;\n }\n\n a[href]:after {\n content: \" (\" attr(href) \")\";\n }\n\n abbr[title]:after {\n content: \" (\" attr(title) \")\";\n }\n\n // Don't show links that are fragment identifiers,\n // or use the `javascript:` pseudo protocol\n a[href^=\"#\"]:after,\n a[href^=\"javascript:\"]:after {\n content: \"\";\n }\n\n pre,\n blockquote {\n border: 1px solid #999;\n page-break-inside: avoid;\n }\n\n thead {\n display: table-header-group; // h5bp.com/t\n }\n\n tr,\n img {\n page-break-inside: avoid;\n }\n\n img {\n max-width: 100% !important;\n }\n\n p,\n h2,\n h3 {\n orphans: 3;\n widows: 3;\n }\n\n h2,\n h3 {\n page-break-after: avoid;\n }\n\n // Bootstrap specific changes start\n //\n // Chrome (OSX) fix for https://github.com/twbs/bootstrap/issues/11245\n // Once fixed, we can just straight up remove this.\n select {\n background: #fff !important;\n }\n\n // Bootstrap components\n .navbar {\n display: none;\n }\n .btn,\n .dropup > .btn {\n > .caret {\n border-top-color: #000 !important;\n }\n }\n .label {\n border: 1px solid #000;\n }\n\n .table {\n border-collapse: collapse !important;\n\n td,\n th {\n background-color: #fff !important;\n }\n }\n .table-bordered {\n th,\n td {\n border: 1px solid #ddd !important;\n }\n }\n\n // Bootstrap specific changes end\n}\n","//\n// Glyphicons for Bootstrap\n//\n// Since icons are fonts, they can be placed anywhere text is placed and are\n// thus automatically sized to match the surrounding child. To use, create an\n// inline element with the appropriate classes, like so:\n//\n// Star\n\n// Import the fonts\n@font-face {\n font-family: 'Glyphicons Halflings';\n src: url('@{icon-font-path}@{icon-font-name}.eot');\n src: url('@{icon-font-path}@{icon-font-name}.eot?#iefix') format('embedded-opentype'),\n url('@{icon-font-path}@{icon-font-name}.woff') format('woff'),\n url('@{icon-font-path}@{icon-font-name}.ttf') format('truetype'),\n url('@{icon-font-path}@{icon-font-name}.svg#@{icon-font-svg-id}') format('svg');\n}\n\n// Catchall baseclass\n.glyphicon {\n position: relative;\n top: 1px;\n display: inline-block;\n font-family: 'Glyphicons Halflings';\n font-style: normal;\n font-weight: normal;\n line-height: 1;\n -webkit-font-smoothing: antialiased;\n -moz-osx-font-smoothing: grayscale;\n}\n\n// Individual icons\n.glyphicon-asterisk { &:before { content: \"\\2a\"; } }\n.glyphicon-plus { &:before { content: \"\\2b\"; } }\n.glyphicon-euro,\n.glyphicon-eur { &:before { content: \"\\20ac\"; } }\n.glyphicon-minus { &:before { content: \"\\2212\"; } }\n.glyphicon-cloud { &:before { content: \"\\2601\"; } }\n.glyphicon-envelope { &:before { content: \"\\2709\"; } }\n.glyphicon-pencil { &:before { content: \"\\270f\"; } }\n.glyphicon-glass { &:before { content: \"\\e001\"; } }\n.glyphicon-music { &:before { content: \"\\e002\"; } }\n.glyphicon-search { &:before { content: \"\\e003\"; } }\n.glyphicon-heart { &:before { content: \"\\e005\"; } }\n.glyphicon-star { &:before { content: \"\\e006\"; } }\n.glyphicon-star-empty { &:before { content: \"\\e007\"; } }\n.glyphicon-user { &:before { content: \"\\e008\"; } }\n.glyphicon-film { &:before { content: \"\\e009\"; } }\n.glyphicon-th-large { &:before { content: \"\\e010\"; } }\n.glyphicon-th { &:before { content: \"\\e011\"; } }\n.glyphicon-th-list { &:before { content: \"\\e012\"; } }\n.glyphicon-ok { &:before { content: \"\\e013\"; } }\n.glyphicon-remove { &:before { content: \"\\e014\"; } }\n.glyphicon-zoom-in { &:before { content: \"\\e015\"; } }\n.glyphicon-zoom-out { &:before { content: \"\\e016\"; } }\n.glyphicon-off { &:before { content: \"\\e017\"; } }\n.glyphicon-signal { &:before { content: \"\\e018\"; } }\n.glyphicon-cog { &:before { content: \"\\e019\"; } }\n.glyphicon-trash { &:before { content: \"\\e020\"; } }\n.glyphicon-home { &:before { content: \"\\e021\"; } }\n.glyphicon-file { &:before { content: \"\\e022\"; } }\n.glyphicon-time { &:before { content: \"\\e023\"; } }\n.glyphicon-road { &:before { content: \"\\e024\"; } }\n.glyphicon-download-alt { &:before { content: \"\\e025\"; } }\n.glyphicon-download { &:before { content: \"\\e026\"; } }\n.glyphicon-upload { &:before { content: \"\\e027\"; } }\n.glyphicon-inbox { &:before { content: \"\\e028\"; } }\n.glyphicon-play-circle { &:before { content: \"\\e029\"; } }\n.glyphicon-repeat { &:before { content: \"\\e030\"; } }\n.glyphicon-refresh { &:before { content: \"\\e031\"; } }\n.glyphicon-list-alt { &:before { content: \"\\e032\"; } }\n.glyphicon-lock { &:before { content: \"\\e033\"; } }\n.glyphicon-flag { &:before { content: \"\\e034\"; } }\n.glyphicon-headphones { &:before { content: \"\\e035\"; } }\n.glyphicon-volume-off { &:before { content: \"\\e036\"; } }\n.glyphicon-volume-down { &:before { content: \"\\e037\"; } }\n.glyphicon-volume-up { &:before { content: \"\\e038\"; } }\n.glyphicon-qrcode { &:before { content: \"\\e039\"; } }\n.glyphicon-barcode { &:before { content: \"\\e040\"; } }\n.glyphicon-tag { &:before { content: \"\\e041\"; } }\n.glyphicon-tags { &:before { content: \"\\e042\"; } }\n.glyphicon-book { &:before { content: \"\\e043\"; } }\n.glyphicon-bookmark { &:before { content: \"\\e044\"; } }\n.glyphicon-print { &:before { content: \"\\e045\"; } }\n.glyphicon-camera { &:before { content: \"\\e046\"; } }\n.glyphicon-font { &:before { content: \"\\e047\"; } }\n.glyphicon-bold { &:before { content: \"\\e048\"; } }\n.glyphicon-italic { &:before { content: \"\\e049\"; } }\n.glyphicon-text-height { &:before { content: \"\\e050\"; } }\n.glyphicon-text-width { &:before { content: \"\\e051\"; } }\n.glyphicon-align-left { &:before { content: \"\\e052\"; } }\n.glyphicon-align-center { &:before { content: \"\\e053\"; } }\n.glyphicon-align-right { &:before { content: \"\\e054\"; } }\n.glyphicon-align-justify { &:before { content: \"\\e055\"; } }\n.glyphicon-list { &:before { content: \"\\e056\"; } }\n.glyphicon-indent-left { &:before { content: \"\\e057\"; } }\n.glyphicon-indent-right { &:before { content: \"\\e058\"; } }\n.glyphicon-facetime-video { &:before { content: \"\\e059\"; } }\n.glyphicon-picture { &:before { content: \"\\e060\"; } }\n.glyphicon-map-marker { &:before { content: \"\\e062\"; } }\n.glyphicon-adjust { &:before { content: \"\\e063\"; } }\n.glyphicon-tint { &:before { content: \"\\e064\"; } }\n.glyphicon-edit { &:before { content: \"\\e065\"; } }\n.glyphicon-share { &:before { content: \"\\e066\"; } }\n.glyphicon-check { &:before { content: \"\\e067\"; } }\n.glyphicon-move { &:before { content: \"\\e068\"; } }\n.glyphicon-step-backward { &:before { content: \"\\e069\"; } }\n.glyphicon-fast-backward { &:before { content: \"\\e070\"; } }\n.glyphicon-backward { &:before { content: \"\\e071\"; } }\n.glyphicon-play { &:before { content: \"\\e072\"; } }\n.glyphicon-pause { &:before { content: \"\\e073\"; } }\n.glyphicon-stop { &:before { content: \"\\e074\"; } }\n.glyphicon-forward { &:before { content: \"\\e075\"; } }\n.glyphicon-fast-forward { &:before { content: \"\\e076\"; } }\n.glyphicon-step-forward { &:before { content: \"\\e077\"; } }\n.glyphicon-eject { &:before { content: \"\\e078\"; } }\n.glyphicon-chevron-left { &:before { content: \"\\e079\"; } }\n.glyphicon-chevron-right { &:before { content: \"\\e080\"; } }\n.glyphicon-plus-sign { &:before { content: \"\\e081\"; } }\n.glyphicon-minus-sign { &:before { content: \"\\e082\"; } }\n.glyphicon-remove-sign { &:before { content: \"\\e083\"; } }\n.glyphicon-ok-sign { &:before { content: \"\\e084\"; } }\n.glyphicon-question-sign { &:before { content: \"\\e085\"; } }\n.glyphicon-info-sign { &:before { content: \"\\e086\"; } }\n.glyphicon-screenshot { &:before { content: \"\\e087\"; } }\n.glyphicon-remove-circle { &:before { content: \"\\e088\"; } }\n.glyphicon-ok-circle { &:before { content: \"\\e089\"; } }\n.glyphicon-ban-circle { &:before { content: \"\\e090\"; } }\n.glyphicon-arrow-left { &:before { content: \"\\e091\"; } }\n.glyphicon-arrow-right { &:before { content: \"\\e092\"; } }\n.glyphicon-arrow-up { &:before { content: \"\\e093\"; } }\n.glyphicon-arrow-down { &:before { content: \"\\e094\"; } }\n.glyphicon-share-alt { &:before { content: \"\\e095\"; } }\n.glyphicon-resize-full { &:before { content: \"\\e096\"; } }\n.glyphicon-resize-small { &:before { content: \"\\e097\"; } }\n.glyphicon-exclamation-sign { &:before { content: \"\\e101\"; } }\n.glyphicon-gift { &:before { content: \"\\e102\"; } }\n.glyphicon-leaf { &:before { content: \"\\e103\"; } }\n.glyphicon-fire { &:before { content: \"\\e104\"; } }\n.glyphicon-eye-open { &:before { content: \"\\e105\"; } }\n.glyphicon-eye-close { &:before { content: \"\\e106\"; } }\n.glyphicon-warning-sign { &:before { content: \"\\e107\"; } }\n.glyphicon-plane { &:before { content: \"\\e108\"; } }\n.glyphicon-calendar { &:before { content: \"\\e109\"; } }\n.glyphicon-random { &:before { content: \"\\e110\"; } }\n.glyphicon-comment { &:before { content: \"\\e111\"; } }\n.glyphicon-magnet { &:before { content: \"\\e112\"; } }\n.glyphicon-chevron-up { &:before { content: \"\\e113\"; } }\n.glyphicon-chevron-down { &:before { content: \"\\e114\"; } }\n.glyphicon-retweet { &:before { content: \"\\e115\"; } }\n.glyphicon-shopping-cart { &:before { content: \"\\e116\"; } }\n.glyphicon-folder-close { &:before { content: \"\\e117\"; } }\n.glyphicon-folder-open { &:before { content: \"\\e118\"; } }\n.glyphicon-resize-vertical { &:before { content: \"\\e119\"; } }\n.glyphicon-resize-horizontal { &:before { content: \"\\e120\"; } }\n.glyphicon-hdd { &:before { content: \"\\e121\"; } }\n.glyphicon-bullhorn { &:before { content: \"\\e122\"; } }\n.glyphicon-bell { &:before { content: \"\\e123\"; } }\n.glyphicon-certificate { &:before { content: \"\\e124\"; } }\n.glyphicon-thumbs-up { &:before { content: \"\\e125\"; } }\n.glyphicon-thumbs-down { &:before { content: \"\\e126\"; } }\n.glyphicon-hand-right { &:before { content: \"\\e127\"; } }\n.glyphicon-hand-left { &:before { content: \"\\e128\"; } }\n.glyphicon-hand-up { &:before { content: \"\\e129\"; } }\n.glyphicon-hand-down { &:before { content: \"\\e130\"; } }\n.glyphicon-circle-arrow-right { &:before { content: \"\\e131\"; } }\n.glyphicon-circle-arrow-left { &:before { content: \"\\e132\"; } }\n.glyphicon-circle-arrow-up { &:before { content: \"\\e133\"; } }\n.glyphicon-circle-arrow-down { &:before { content: \"\\e134\"; } }\n.glyphicon-globe { &:before { content: \"\\e135\"; } }\n.glyphicon-wrench { &:before { content: \"\\e136\"; } }\n.glyphicon-tasks { &:before { content: \"\\e137\"; } }\n.glyphicon-filter { &:before { content: \"\\e138\"; } }\n.glyphicon-briefcase { &:before { content: \"\\e139\"; } }\n.glyphicon-fullscreen { &:before { content: \"\\e140\"; } }\n.glyphicon-dashboard { &:before { content: \"\\e141\"; } }\n.glyphicon-paperclip { &:before { content: \"\\e142\"; } }\n.glyphicon-heart-empty { &:before { content: \"\\e143\"; } }\n.glyphicon-link { &:before { content: \"\\e144\"; } }\n.glyphicon-phone { &:before { content: \"\\e145\"; } }\n.glyphicon-pushpin { &:before { content: \"\\e146\"; } }\n.glyphicon-usd { &:before { content: \"\\e148\"; } }\n.glyphicon-gbp { &:before { content: \"\\e149\"; } }\n.glyphicon-sort { &:before { content: \"\\e150\"; } }\n.glyphicon-sort-by-alphabet { &:before { content: \"\\e151\"; } }\n.glyphicon-sort-by-alphabet-alt { &:before { content: \"\\e152\"; } }\n.glyphicon-sort-by-order { &:before { content: \"\\e153\"; } }\n.glyphicon-sort-by-order-alt { &:before { content: \"\\e154\"; } }\n.glyphicon-sort-by-attributes { &:before { content: \"\\e155\"; } }\n.glyphicon-sort-by-attributes-alt { &:before { content: \"\\e156\"; } }\n.glyphicon-unchecked { &:before { content: \"\\e157\"; } }\n.glyphicon-expand { &:before { content: \"\\e158\"; } }\n.glyphicon-collapse-down { &:before { content: \"\\e159\"; } }\n.glyphicon-collapse-up { &:before { content: \"\\e160\"; } }\n.glyphicon-log-in { &:before { content: \"\\e161\"; } }\n.glyphicon-flash { &:before { content: \"\\e162\"; } }\n.glyphicon-log-out { &:before { content: \"\\e163\"; } }\n.glyphicon-new-window { &:before { content: \"\\e164\"; } }\n.glyphicon-record { &:before { content: \"\\e165\"; } }\n.glyphicon-save { &:before { content: \"\\e166\"; } }\n.glyphicon-open { &:before { content: \"\\e167\"; } }\n.glyphicon-saved { &:before { content: \"\\e168\"; } }\n.glyphicon-import { &:before { content: \"\\e169\"; } }\n.glyphicon-export { &:before { content: \"\\e170\"; } }\n.glyphicon-send { &:before { content: \"\\e171\"; } }\n.glyphicon-floppy-disk { &:before { content: \"\\e172\"; } }\n.glyphicon-floppy-saved { &:before { content: \"\\e173\"; } }\n.glyphicon-floppy-remove { &:before { content: \"\\e174\"; } }\n.glyphicon-floppy-save { &:before { content: \"\\e175\"; } }\n.glyphicon-floppy-open { &:before { content: \"\\e176\"; } }\n.glyphicon-credit-card { &:before { content: \"\\e177\"; } }\n.glyphicon-transfer { &:before { content: \"\\e178\"; } }\n.glyphicon-cutlery { &:before { content: \"\\e179\"; } }\n.glyphicon-header { &:before { content: \"\\e180\"; } }\n.glyphicon-compressed { &:before { content: \"\\e181\"; } }\n.glyphicon-earphone { &:before { content: \"\\e182\"; } }\n.glyphicon-phone-alt { &:before { content: \"\\e183\"; } }\n.glyphicon-tower { &:before { content: \"\\e184\"; } }\n.glyphicon-stats { &:before { content: \"\\e185\"; } }\n.glyphicon-sd-video { &:before { content: \"\\e186\"; } }\n.glyphicon-hd-video { &:before { content: \"\\e187\"; } }\n.glyphicon-subtitles { &:before { content: \"\\e188\"; } }\n.glyphicon-sound-stereo { &:before { content: \"\\e189\"; } }\n.glyphicon-sound-dolby { &:before { content: \"\\e190\"; } }\n.glyphicon-sound-5-1 { &:before { content: \"\\e191\"; } }\n.glyphicon-sound-6-1 { &:before { content: \"\\e192\"; } }\n.glyphicon-sound-7-1 { &:before { content: \"\\e193\"; } }\n.glyphicon-copyright-mark { &:before { content: \"\\e194\"; } }\n.glyphicon-registration-mark { &:before { content: \"\\e195\"; } }\n.glyphicon-cloud-download { &:before { content: \"\\e197\"; } }\n.glyphicon-cloud-upload { &:before { content: \"\\e198\"; } }\n.glyphicon-tree-conifer { &:before { content: \"\\e199\"; } }\n.glyphicon-tree-deciduous { &:before { content: \"\\e200\"; } }\n","//\n// Scaffolding\n// --------------------------------------------------\n\n\n// Reset the box-sizing\n//\n// Heads up! This reset may cause conflicts with some third-party widgets.\n// For recommendations on resolving such conflicts, see\n// http://getbootstrap.com/getting-started/#third-box-sizing\n* {\n .box-sizing(border-box);\n}\n*:before,\n*:after {\n .box-sizing(border-box);\n}\n\n\n// Body reset\n\nhtml {\n font-size: 10px;\n -webkit-tap-highlight-color: rgba(0,0,0,0);\n}\n\nbody {\n font-family: @font-family-base;\n font-size: @font-size-base;\n line-height: @line-height-base;\n color: @text-color;\n background-color: @body-bg;\n}\n\n// Reset fonts for relevant elements\ninput,\nbutton,\nselect,\ntextarea {\n font-family: inherit;\n font-size: inherit;\n line-height: inherit;\n}\n\n\n// Links\n\na {\n color: @link-color;\n text-decoration: none;\n\n &:hover,\n &:focus {\n color: @link-hover-color;\n text-decoration: @link-hover-decoration;\n }\n\n &:focus {\n .tab-focus();\n }\n}\n\n\n// Figures\n//\n// We reset this here because previously Normalize had no `figure` margins. This\n// ensures we don't break anyone's use of the element.\n\nfigure {\n margin: 0;\n}\n\n\n// Images\n\nimg {\n vertical-align: middle;\n}\n\n// Responsive images (ensure images don't scale beyond their parents)\n.img-responsive {\n .img-responsive();\n}\n\n// Rounded corners\n.img-rounded {\n border-radius: @border-radius-large;\n}\n\n// Image thumbnails\n//\n// Heads up! This is mixin-ed into thumbnails.less for `.thumbnail`.\n.img-thumbnail {\n padding: @thumbnail-padding;\n line-height: @line-height-base;\n background-color: @thumbnail-bg;\n border: 1px solid @thumbnail-border;\n border-radius: @thumbnail-border-radius;\n .transition(all .2s ease-in-out);\n\n // Keep them at most 100% wide\n .img-responsive(inline-block);\n}\n\n// Perfect circle\n.img-circle {\n border-radius: 50%; // set radius in percents\n}\n\n\n// Horizontal rules\n\nhr {\n margin-top: @line-height-computed;\n margin-bottom: @line-height-computed;\n border: 0;\n border-top: 1px solid @hr-border;\n}\n\n\n// Only display content to screen readers\n//\n// See: http://a11yproject.com/posts/how-to-hide-content/\n\n.sr-only {\n position: absolute;\n width: 1px;\n height: 1px;\n margin: -1px;\n padding: 0;\n overflow: hidden;\n clip: rect(0,0,0,0);\n border: 0;\n}\n\n// Use in conjunction with .sr-only to only display content when it's focused.\n// Useful for \"Skip to main content\" links; see http://www.w3.org/TR/2013/NOTE-WCAG20-TECHS-20130905/G1\n// Credit: HTML5 Boilerplate\n\n.sr-only-focusable {\n &:active,\n &:focus {\n position: static;\n width: auto;\n height: auto;\n margin: 0;\n overflow: visible;\n clip: auto;\n }\n}\n","// Vendor Prefixes\n//\n// All vendor mixins are deprecated as of v3.2.0 due to the introduction of\n// Autoprefixer in our Gruntfile. They will be removed in v4.\n\n// - Animations\n// - Backface visibility\n// - Box shadow\n// - Box sizing\n// - Content columns\n// - Hyphens\n// - Placeholder text\n// - Transformations\n// - Transitions\n// - User Select\n\n\n// Animations\n.animation(@animation) {\n -webkit-animation: @animation;\n -o-animation: @animation;\n animation: @animation;\n}\n.animation-name(@name) {\n -webkit-animation-name: @name;\n animation-name: @name;\n}\n.animation-duration(@duration) {\n -webkit-animation-duration: @duration;\n animation-duration: @duration;\n}\n.animation-timing-function(@timing-function) {\n -webkit-animation-timing-function: @timing-function;\n animation-timing-function: @timing-function;\n}\n.animation-delay(@delay) {\n -webkit-animation-delay: @delay;\n animation-delay: @delay;\n}\n.animation-iteration-count(@iteration-count) {\n -webkit-animation-iteration-count: @iteration-count;\n animation-iteration-count: @iteration-count;\n}\n.animation-direction(@direction) {\n -webkit-animation-direction: @direction;\n animation-direction: @direction;\n}\n.animation-fill-mode(@fill-mode) {\n -webkit-animation-fill-mode: @fill-mode;\n animation-fill-mode: @fill-mode;\n}\n\n// Backface visibility\n// Prevent browsers from flickering when using CSS 3D transforms.\n// Default value is `visible`, but can be changed to `hidden`\n\n.backface-visibility(@visibility){\n -webkit-backface-visibility: @visibility;\n -moz-backface-visibility: @visibility;\n backface-visibility: @visibility;\n}\n\n// Drop shadows\n//\n// Note: Deprecated `.box-shadow()` as of v3.1.0 since all of Bootstrap's\n// supported browsers that have box shadow capabilities now support it.\n\n.box-shadow(@shadow) {\n -webkit-box-shadow: @shadow; // iOS <4.3 & Android <4.1\n box-shadow: @shadow;\n}\n\n// Box sizing\n.box-sizing(@boxmodel) {\n -webkit-box-sizing: @boxmodel;\n -moz-box-sizing: @boxmodel;\n box-sizing: @boxmodel;\n}\n\n// CSS3 Content Columns\n.content-columns(@column-count; @column-gap: @grid-gutter-width) {\n -webkit-column-count: @column-count;\n -moz-column-count: @column-count;\n column-count: @column-count;\n -webkit-column-gap: @column-gap;\n -moz-column-gap: @column-gap;\n column-gap: @column-gap;\n}\n\n// Optional hyphenation\n.hyphens(@mode: auto) {\n word-wrap: break-word;\n -webkit-hyphens: @mode;\n -moz-hyphens: @mode;\n -ms-hyphens: @mode; // IE10+\n -o-hyphens: @mode;\n hyphens: @mode;\n}\n\n// Placeholder text\n.placeholder(@color: @input-color-placeholder) {\n // Firefox\n &::-moz-placeholder {\n color: @color;\n opacity: 1; // See https://github.com/twbs/bootstrap/pull/11526\n }\n &:-ms-input-placeholder { color: @color; } // Internet Explorer 10+\n &::-webkit-input-placeholder { color: @color; } // Safari and Chrome\n}\n\n// Transformations\n.scale(@ratio) {\n -webkit-transform: scale(@ratio);\n -ms-transform: scale(@ratio); // IE9 only\n -o-transform: scale(@ratio);\n transform: scale(@ratio);\n}\n.scale(@ratioX; @ratioY) {\n -webkit-transform: scale(@ratioX, @ratioY);\n -ms-transform: scale(@ratioX, @ratioY); // IE9 only\n -o-transform: scale(@ratioX, @ratioY);\n transform: scale(@ratioX, @ratioY);\n}\n.scaleX(@ratio) {\n -webkit-transform: scaleX(@ratio);\n -ms-transform: scaleX(@ratio); // IE9 only\n -o-transform: scaleX(@ratio);\n transform: scaleX(@ratio);\n}\n.scaleY(@ratio) {\n -webkit-transform: scaleY(@ratio);\n -ms-transform: scaleY(@ratio); // IE9 only\n -o-transform: scaleY(@ratio);\n transform: scaleY(@ratio);\n}\n.skew(@x; @y) {\n -webkit-transform: skewX(@x) skewY(@y);\n -ms-transform: skewX(@x) skewY(@y); // See https://github.com/twbs/bootstrap/issues/4885; IE9+\n -o-transform: skewX(@x) skewY(@y);\n transform: skewX(@x) skewY(@y);\n}\n.translate(@x; @y) {\n -webkit-transform: translate(@x, @y);\n -ms-transform: translate(@x, @y); // IE9 only\n -o-transform: translate(@x, @y);\n transform: translate(@x, @y);\n}\n.translate3d(@x; @y; @z) {\n -webkit-transform: translate3d(@x, @y, @z);\n transform: translate3d(@x, @y, @z);\n}\n.rotate(@degrees) {\n -webkit-transform: rotate(@degrees);\n -ms-transform: rotate(@degrees); // IE9 only\n -o-transform: rotate(@degrees);\n transform: rotate(@degrees);\n}\n.rotateX(@degrees) {\n -webkit-transform: rotateX(@degrees);\n -ms-transform: rotateX(@degrees); // IE9 only\n -o-transform: rotateX(@degrees);\n transform: rotateX(@degrees);\n}\n.rotateY(@degrees) {\n -webkit-transform: rotateY(@degrees);\n -ms-transform: rotateY(@degrees); // IE9 only\n -o-transform: rotateY(@degrees);\n transform: rotateY(@degrees);\n}\n.perspective(@perspective) {\n -webkit-perspective: @perspective;\n -moz-perspective: @perspective;\n perspective: @perspective;\n}\n.perspective-origin(@perspective) {\n -webkit-perspective-origin: @perspective;\n -moz-perspective-origin: @perspective;\n perspective-origin: @perspective;\n}\n.transform-origin(@origin) {\n -webkit-transform-origin: @origin;\n -moz-transform-origin: @origin;\n -ms-transform-origin: @origin; // IE9 only\n transform-origin: @origin;\n}\n\n\n// Transitions\n\n.transition(@transition) {\n -webkit-transition: @transition;\n -o-transition: @transition;\n transition: @transition;\n}\n.transition-property(@transition-property) {\n -webkit-transition-property: @transition-property;\n transition-property: @transition-property;\n}\n.transition-delay(@transition-delay) {\n -webkit-transition-delay: @transition-delay;\n transition-delay: @transition-delay;\n}\n.transition-duration(@transition-duration) {\n -webkit-transition-duration: @transition-duration;\n transition-duration: @transition-duration;\n}\n.transition-timing-function(@timing-function) {\n -webkit-transition-timing-function: @timing-function;\n transition-timing-function: @timing-function;\n}\n.transition-transform(@transition) {\n -webkit-transition: -webkit-transform @transition;\n -moz-transition: -moz-transform @transition;\n -o-transition: -o-transform @transition;\n transition: transform @transition;\n}\n\n\n// User select\n// For selecting text on the page\n\n.user-select(@select) {\n -webkit-user-select: @select;\n -moz-user-select: @select;\n -ms-user-select: @select; // IE10+\n user-select: @select;\n}\n","// WebKit-style focus\n\n.tab-focus() {\n // Default\n outline: thin dotted;\n // WebKit\n outline: 5px auto -webkit-focus-ring-color;\n outline-offset: -2px;\n}\n","// Image Mixins\n// - Responsive image\n// - Retina image\n\n\n// Responsive image\n//\n// Keep images from scaling beyond the width of their parents.\n.img-responsive(@display: block) {\n display: @display;\n max-width: 100%; // Part 1: Set a maximum relative to the parent\n height: auto; // Part 2: Scale the height according to the width, otherwise you get stretching\n}\n\n\n// Retina image\n//\n// Short retina mixin for setting background-image and -size. Note that the\n// spelling of `min--moz-device-pixel-ratio` is intentional.\n.img-retina(@file-1x; @file-2x; @width-1x; @height-1x) {\n background-image: url(\"@{file-1x}\");\n\n @media\n only screen and (-webkit-min-device-pixel-ratio: 2),\n only screen and ( min--moz-device-pixel-ratio: 2),\n only screen and ( -o-min-device-pixel-ratio: 2/1),\n only screen and ( min-device-pixel-ratio: 2),\n only screen and ( min-resolution: 192dpi),\n only screen and ( min-resolution: 2dppx) {\n background-image: url(\"@{file-2x}\");\n background-size: @width-1x @height-1x;\n }\n}\n","//\n// Typography\n// --------------------------------------------------\n\n\n// Headings\n// -------------------------\n\nh1, h2, h3, h4, h5, h6,\n.h1, .h2, .h3, .h4, .h5, .h6 {\n font-family: @headings-font-family;\n font-weight: @headings-font-weight;\n line-height: @headings-line-height;\n color: @headings-color;\n\n small,\n .small {\n font-weight: normal;\n line-height: 1;\n color: @headings-small-color;\n }\n}\n\nh1, .h1,\nh2, .h2,\nh3, .h3 {\n margin-top: @line-height-computed;\n margin-bottom: (@line-height-computed / 2);\n\n small,\n .small {\n font-size: 65%;\n }\n}\nh4, .h4,\nh5, .h5,\nh6, .h6 {\n margin-top: (@line-height-computed / 2);\n margin-bottom: (@line-height-computed / 2);\n\n small,\n .small {\n font-size: 75%;\n }\n}\n\nh1, .h1 { font-size: @font-size-h1; }\nh2, .h2 { font-size: @font-size-h2; }\nh3, .h3 { font-size: @font-size-h3; }\nh4, .h4 { font-size: @font-size-h4; }\nh5, .h5 { font-size: @font-size-h5; }\nh6, .h6 { font-size: @font-size-h6; }\n\n\n// Body text\n// -------------------------\n\np {\n margin: 0 0 (@line-height-computed / 2);\n}\n\n.lead {\n margin-bottom: @line-height-computed;\n font-size: floor((@font-size-base * 1.15));\n font-weight: 300;\n line-height: 1.4;\n\n @media (min-width: @screen-sm-min) {\n font-size: (@font-size-base * 1.5);\n }\n}\n\n\n// Emphasis & misc\n// -------------------------\n\n// Ex: (12px small font / 14px base font) * 100% = about 85%\nsmall,\n.small {\n font-size: floor((100% * @font-size-small / @font-size-base));\n}\n\nmark,\n.mark {\n background-color: @state-warning-bg;\n padding: .2em;\n}\n\n// Alignment\n.text-left { text-align: left; }\n.text-right { text-align: right; }\n.text-center { text-align: center; }\n.text-justify { text-align: justify; }\n.text-nowrap { white-space: nowrap; }\n\n// Transformation\n.text-lowercase { text-transform: lowercase; }\n.text-uppercase { text-transform: uppercase; }\n.text-capitalize { text-transform: capitalize; }\n\n// Contextual colors\n.text-muted {\n color: @text-muted;\n}\n.text-primary {\n .text-emphasis-variant(@brand-primary);\n}\n.text-success {\n .text-emphasis-variant(@state-success-text);\n}\n.text-info {\n .text-emphasis-variant(@state-info-text);\n}\n.text-warning {\n .text-emphasis-variant(@state-warning-text);\n}\n.text-danger {\n .text-emphasis-variant(@state-danger-text);\n}\n\n// Contextual backgrounds\n// For now we'll leave these alongside the text classes until v4 when we can\n// safely shift things around (per SemVer rules).\n.bg-primary {\n // Given the contrast here, this is the only class to have its color inverted\n // automatically.\n color: #fff;\n .bg-variant(@brand-primary);\n}\n.bg-success {\n .bg-variant(@state-success-bg);\n}\n.bg-info {\n .bg-variant(@state-info-bg);\n}\n.bg-warning {\n .bg-variant(@state-warning-bg);\n}\n.bg-danger {\n .bg-variant(@state-danger-bg);\n}\n\n\n// Page header\n// -------------------------\n\n.page-header {\n padding-bottom: ((@line-height-computed / 2) - 1);\n margin: (@line-height-computed * 2) 0 @line-height-computed;\n border-bottom: 1px solid @page-header-border-color;\n}\n\n\n// Lists\n// -------------------------\n\n// Unordered and Ordered lists\nul,\nol {\n margin-top: 0;\n margin-bottom: (@line-height-computed / 2);\n ul,\n ol {\n margin-bottom: 0;\n }\n}\n\n// List options\n\n// Unstyled keeps list items block level, just removes default browser padding and list-style\n.list-unstyled {\n padding-left: 0;\n list-style: none;\n}\n\n// Inline turns list items into inline-block\n.list-inline {\n .list-unstyled();\n margin-left: -5px;\n\n > li {\n display: inline-block;\n padding-left: 5px;\n padding-right: 5px;\n }\n}\n\n// Description Lists\ndl {\n margin-top: 0; // Remove browser default\n margin-bottom: @line-height-computed;\n}\ndt,\ndd {\n line-height: @line-height-base;\n}\ndt {\n font-weight: bold;\n}\ndd {\n margin-left: 0; // Undo browser default\n}\n\n// Horizontal description lists\n//\n// Defaults to being stacked without any of the below styles applied, until the\n// grid breakpoint is reached (default of ~768px).\n\n.dl-horizontal {\n dd {\n &:extend(.clearfix all); // Clear the floated `dt` if an empty `dd` is present\n }\n\n @media (min-width: @grid-float-breakpoint) {\n dt {\n float: left;\n width: (@dl-horizontal-offset - 20);\n clear: left;\n text-align: right;\n .text-overflow();\n }\n dd {\n margin-left: @dl-horizontal-offset;\n }\n }\n}\n\n\n// Misc\n// -------------------------\n\n// Abbreviations and acronyms\nabbr[title],\n// Add data-* attribute to help out our tooltip plugin, per https://github.com/twbs/bootstrap/issues/5257\nabbr[data-original-title] {\n cursor: help;\n border-bottom: 1px dotted @abbr-border-color;\n}\n.initialism {\n font-size: 90%;\n text-transform: uppercase;\n}\n\n// Blockquotes\nblockquote {\n padding: (@line-height-computed / 2) @line-height-computed;\n margin: 0 0 @line-height-computed;\n font-size: @blockquote-font-size;\n border-left: 5px solid @blockquote-border-color;\n\n p,\n ul,\n ol {\n &:last-child {\n margin-bottom: 0;\n }\n }\n\n // Note: Deprecated small and .small as of v3.1.0\n // Context: https://github.com/twbs/bootstrap/issues/11660\n footer,\n small,\n .small {\n display: block;\n font-size: 80%; // back to default font-size\n line-height: @line-height-base;\n color: @blockquote-small-color;\n\n &:before {\n content: '\\2014 \\00A0'; // em dash, nbsp\n }\n }\n}\n\n// Opposite alignment of blockquote\n//\n// Heads up: `blockquote.pull-right` has been deprecated as of v3.1.0.\n.blockquote-reverse,\nblockquote.pull-right {\n padding-right: 15px;\n padding-left: 0;\n border-right: 5px solid @blockquote-border-color;\n border-left: 0;\n text-align: right;\n\n // Account for citation\n footer,\n small,\n .small {\n &:before { content: ''; }\n &:after {\n content: '\\00A0 \\2014'; // nbsp, em dash\n }\n }\n}\n\n// Addresses\naddress {\n margin-bottom: @line-height-computed;\n font-style: normal;\n line-height: @line-height-base;\n}\n","// Typography\n\n.text-emphasis-variant(@color) {\n color: @color;\n a&:hover {\n color: darken(@color, 10%);\n }\n}\n","// Contextual backgrounds\n\n.bg-variant(@color) {\n background-color: @color;\n a&:hover {\n background-color: darken(@color, 10%);\n }\n}\n","// Text overflow\n// Requires inline-block or block for proper styling\n\n.text-overflow() {\n overflow: hidden;\n text-overflow: ellipsis;\n white-space: nowrap;\n}\n","//\n// Code (inline and block)\n// --------------------------------------------------\n\n\n// Inline and block code styles\ncode,\nkbd,\npre,\nsamp {\n font-family: @font-family-monospace;\n}\n\n// Inline code\ncode {\n padding: 2px 4px;\n font-size: 90%;\n color: @code-color;\n background-color: @code-bg;\n border-radius: @border-radius-base;\n}\n\n// User input typically entered via keyboard\nkbd {\n padding: 2px 4px;\n font-size: 90%;\n color: @kbd-color;\n background-color: @kbd-bg;\n border-radius: @border-radius-small;\n box-shadow: inset 0 -1px 0 rgba(0,0,0,.25);\n\n kbd {\n padding: 0;\n font-size: 100%;\n font-weight: bold;\n box-shadow: none;\n }\n}\n\n// Blocks of code\npre {\n display: block;\n padding: ((@line-height-computed - 1) / 2);\n margin: 0 0 (@line-height-computed / 2);\n font-size: (@font-size-base - 1); // 14px to 13px\n line-height: @line-height-base;\n word-break: break-all;\n word-wrap: break-word;\n color: @pre-color;\n background-color: @pre-bg;\n border: 1px solid @pre-border-color;\n border-radius: @border-radius-base;\n\n // Account for some code outputs that place code tags in pre tags\n code {\n padding: 0;\n font-size: inherit;\n color: inherit;\n white-space: pre-wrap;\n background-color: transparent;\n border-radius: 0;\n }\n}\n\n// Enable scrollable blocks of code\n.pre-scrollable {\n max-height: @pre-scrollable-max-height;\n overflow-y: scroll;\n}\n","//\n// Grid system\n// --------------------------------------------------\n\n\n// Container widths\n//\n// Set the container width, and override it for fixed navbars in media queries.\n\n.container {\n .container-fixed();\n\n @media (min-width: @screen-sm-min) {\n width: @container-sm;\n }\n @media (min-width: @screen-md-min) {\n width: @container-md;\n }\n @media (min-width: @screen-lg-min) {\n width: @container-lg;\n }\n}\n\n\n// Fluid container\n//\n// Utilizes the mixin meant for fixed width containers, but without any defined\n// width for fluid, full width layouts.\n\n.container-fluid {\n .container-fixed();\n}\n\n\n// Row\n//\n// Rows contain and clear the floats of your columns.\n\n.row {\n .make-row();\n}\n\n\n// Columns\n//\n// Common styles for small and large grid columns\n\n.make-grid-columns();\n\n\n// Extra small grid\n//\n// Columns, offsets, pushes, and pulls for extra small devices like\n// smartphones.\n\n.make-grid(xs);\n\n\n// Small grid\n//\n// Columns, offsets, pushes, and pulls for the small device range, from phones\n// to tablets.\n\n@media (min-width: @screen-sm-min) {\n .make-grid(sm);\n}\n\n\n// Medium grid\n//\n// Columns, offsets, pushes, and pulls for the desktop device range.\n\n@media (min-width: @screen-md-min) {\n .make-grid(md);\n}\n\n\n// Large grid\n//\n// Columns, offsets, pushes, and pulls for the large desktop device range.\n\n@media (min-width: @screen-lg-min) {\n .make-grid(lg);\n}\n","// Grid system\n//\n// Generate semantic grid columns with these mixins.\n\n// Centered container element\n.container-fixed(@gutter: @grid-gutter-width) {\n margin-right: auto;\n margin-left: auto;\n padding-left: (@gutter / 2);\n padding-right: (@gutter / 2);\n &:extend(.clearfix all);\n}\n\n// Creates a wrapper for a series of columns\n.make-row(@gutter: @grid-gutter-width) {\n margin-left: (@gutter / -2);\n margin-right: (@gutter / -2);\n &:extend(.clearfix all);\n}\n\n// Generate the extra small columns\n.make-xs-column(@columns; @gutter: @grid-gutter-width) {\n position: relative;\n float: left;\n width: percentage((@columns / @grid-columns));\n min-height: 1px;\n padding-left: (@gutter / 2);\n padding-right: (@gutter / 2);\n}\n.make-xs-column-offset(@columns) {\n margin-left: percentage((@columns / @grid-columns));\n}\n.make-xs-column-push(@columns) {\n left: percentage((@columns / @grid-columns));\n}\n.make-xs-column-pull(@columns) {\n right: percentage((@columns / @grid-columns));\n}\n\n// Generate the small columns\n.make-sm-column(@columns; @gutter: @grid-gutter-width) {\n position: relative;\n min-height: 1px;\n padding-left: (@gutter / 2);\n padding-right: (@gutter / 2);\n\n @media (min-width: @screen-sm-min) {\n float: left;\n width: percentage((@columns / @grid-columns));\n }\n}\n.make-sm-column-offset(@columns) {\n @media (min-width: @screen-sm-min) {\n margin-left: percentage((@columns / @grid-columns));\n }\n}\n.make-sm-column-push(@columns) {\n @media (min-width: @screen-sm-min) {\n left: percentage((@columns / @grid-columns));\n }\n}\n.make-sm-column-pull(@columns) {\n @media (min-width: @screen-sm-min) {\n right: percentage((@columns / @grid-columns));\n }\n}\n\n// Generate the medium columns\n.make-md-column(@columns; @gutter: @grid-gutter-width) {\n position: relative;\n min-height: 1px;\n padding-left: (@gutter / 2);\n padding-right: (@gutter / 2);\n\n @media (min-width: @screen-md-min) {\n float: left;\n width: percentage((@columns / @grid-columns));\n }\n}\n.make-md-column-offset(@columns) {\n @media (min-width: @screen-md-min) {\n margin-left: percentage((@columns / @grid-columns));\n }\n}\n.make-md-column-push(@columns) {\n @media (min-width: @screen-md-min) {\n left: percentage((@columns / @grid-columns));\n }\n}\n.make-md-column-pull(@columns) {\n @media (min-width: @screen-md-min) {\n right: percentage((@columns / @grid-columns));\n }\n}\n\n// Generate the large columns\n.make-lg-column(@columns; @gutter: @grid-gutter-width) {\n position: relative;\n min-height: 1px;\n padding-left: (@gutter / 2);\n padding-right: (@gutter / 2);\n\n @media (min-width: @screen-lg-min) {\n float: left;\n width: percentage((@columns / @grid-columns));\n }\n}\n.make-lg-column-offset(@columns) {\n @media (min-width: @screen-lg-min) {\n margin-left: percentage((@columns / @grid-columns));\n }\n}\n.make-lg-column-push(@columns) {\n @media (min-width: @screen-lg-min) {\n left: percentage((@columns / @grid-columns));\n }\n}\n.make-lg-column-pull(@columns) {\n @media (min-width: @screen-lg-min) {\n right: percentage((@columns / @grid-columns));\n }\n}\n","// Framework grid generation\n//\n// Used only by Bootstrap to generate the correct number of grid classes given\n// any value of `@grid-columns`.\n\n.make-grid-columns() {\n // Common styles for all sizes of grid columns, widths 1-12\n .col(@index) when (@index = 1) { // initial\n @item: ~\".col-xs-@{index}, .col-sm-@{index}, .col-md-@{index}, .col-lg-@{index}\";\n .col((@index + 1), @item);\n }\n .col(@index, @list) when (@index =< @grid-columns) { // general; \"=<\" isn't a typo\n @item: ~\".col-xs-@{index}, .col-sm-@{index}, .col-md-@{index}, .col-lg-@{index}\";\n .col((@index + 1), ~\"@{list}, @{item}\");\n }\n .col(@index, @list) when (@index > @grid-columns) { // terminal\n @{list} {\n position: relative;\n // Prevent columns from collapsing when empty\n min-height: 1px;\n // Inner gutter via padding\n padding-left: (@grid-gutter-width / 2);\n padding-right: (@grid-gutter-width / 2);\n }\n }\n .col(1); // kickstart it\n}\n\n.float-grid-columns(@class) {\n .col(@index) when (@index = 1) { // initial\n @item: ~\".col-@{class}-@{index}\";\n .col((@index + 1), @item);\n }\n .col(@index, @list) when (@index =< @grid-columns) { // general\n @item: ~\".col-@{class}-@{index}\";\n .col((@index + 1), ~\"@{list}, @{item}\");\n }\n .col(@index, @list) when (@index > @grid-columns) { // terminal\n @{list} {\n float: left;\n }\n }\n .col(1); // kickstart it\n}\n\n.calc-grid-column(@index, @class, @type) when (@type = width) and (@index > 0) {\n .col-@{class}-@{index} {\n width: percentage((@index / @grid-columns));\n }\n}\n.calc-grid-column(@index, @class, @type) when (@type = push) and (@index > 0) {\n .col-@{class}-push-@{index} {\n left: percentage((@index / @grid-columns));\n }\n}\n.calc-grid-column(@index, @class, @type) when (@type = push) and (@index = 0) {\n .col-@{class}-push-0 {\n left: auto;\n }\n}\n.calc-grid-column(@index, @class, @type) when (@type = pull) and (@index > 0) {\n .col-@{class}-pull-@{index} {\n right: percentage((@index / @grid-columns));\n }\n}\n.calc-grid-column(@index, @class, @type) when (@type = pull) and (@index = 0) {\n .col-@{class}-pull-0 {\n right: auto;\n }\n}\n.calc-grid-column(@index, @class, @type) when (@type = offset) {\n .col-@{class}-offset-@{index} {\n margin-left: percentage((@index / @grid-columns));\n }\n}\n\n// Basic looping in LESS\n.loop-grid-columns(@index, @class, @type) when (@index >= 0) {\n .calc-grid-column(@index, @class, @type);\n // next iteration\n .loop-grid-columns((@index - 1), @class, @type);\n}\n\n// Create grid for specific class\n.make-grid(@class) {\n .float-grid-columns(@class);\n .loop-grid-columns(@grid-columns, @class, width);\n .loop-grid-columns(@grid-columns, @class, pull);\n .loop-grid-columns(@grid-columns, @class, push);\n .loop-grid-columns(@grid-columns, @class, offset);\n}\n","//\n// Tables\n// --------------------------------------------------\n\n\ntable {\n background-color: @table-bg;\n}\ncaption {\n padding-top: @table-cell-padding;\n padding-bottom: @table-cell-padding;\n color: @text-muted;\n text-align: left;\n}\nth {\n text-align: left;\n}\n\n\n// Baseline styles\n\n.table {\n width: 100%;\n max-width: 100%;\n margin-bottom: @line-height-computed;\n // Cells\n > thead,\n > tbody,\n > tfoot {\n > tr {\n > th,\n > td {\n padding: @table-cell-padding;\n line-height: @line-height-base;\n vertical-align: top;\n border-top: 1px solid @table-border-color;\n }\n }\n }\n // Bottom align for column headings\n > thead > tr > th {\n vertical-align: bottom;\n border-bottom: 2px solid @table-border-color;\n }\n // Remove top border from thead by default\n > caption + thead,\n > colgroup + thead,\n > thead:first-child {\n > tr:first-child {\n > th,\n > td {\n border-top: 0;\n }\n }\n }\n // Account for multiple tbody instances\n > tbody + tbody {\n border-top: 2px solid @table-border-color;\n }\n\n // Nesting\n .table {\n background-color: @body-bg;\n }\n}\n\n\n// Condensed table w/ half padding\n\n.table-condensed {\n > thead,\n > tbody,\n > tfoot {\n > tr {\n > th,\n > td {\n padding: @table-condensed-cell-padding;\n }\n }\n }\n}\n\n\n// Bordered version\n//\n// Add borders all around the table and between all the columns.\n\n.table-bordered {\n border: 1px solid @table-border-color;\n > thead,\n > tbody,\n > tfoot {\n > tr {\n > th,\n > td {\n border: 1px solid @table-border-color;\n }\n }\n }\n > thead > tr {\n > th,\n > td {\n border-bottom-width: 2px;\n }\n }\n}\n\n\n// Zebra-striping\n//\n// Default zebra-stripe styles (alternating gray and transparent backgrounds)\n\n.table-striped {\n > tbody > tr:nth-child(odd) {\n background-color: @table-bg-accent;\n }\n}\n\n\n// Hover effect\n//\n// Placed here since it has to come after the potential zebra striping\n\n.table-hover {\n > tbody > tr:hover {\n background-color: @table-bg-hover;\n }\n}\n\n\n// Table cell sizing\n//\n// Reset default table behavior\n\ntable col[class*=\"col-\"] {\n position: static; // Prevent border hiding in Firefox and IE9/10 (see https://github.com/twbs/bootstrap/issues/11623)\n float: none;\n display: table-column;\n}\ntable {\n td,\n th {\n &[class*=\"col-\"] {\n position: static; // Prevent border hiding in Firefox and IE9/10 (see https://github.com/twbs/bootstrap/issues/11623)\n float: none;\n display: table-cell;\n }\n }\n}\n\n\n// Table backgrounds\n//\n// Exact selectors below required to override `.table-striped` and prevent\n// inheritance to nested tables.\n\n// Generate the contextual variants\n.table-row-variant(active; @table-bg-active);\n.table-row-variant(success; @state-success-bg);\n.table-row-variant(info; @state-info-bg);\n.table-row-variant(warning; @state-warning-bg);\n.table-row-variant(danger; @state-danger-bg);\n\n\n// Responsive tables\n//\n// Wrap your tables in `.table-responsive` and we'll make them mobile friendly\n// by enabling horizontal scrolling. Only applies <768px. Everything above that\n// will display normally.\n\n.table-responsive {\n overflow-x: auto;\n min-height: 0.01%; // Workaround for IE9 bug (see https://github.com/twbs/bootstrap/issues/14837)\n\n @media screen and (max-width: @screen-xs-max) {\n width: 100%;\n margin-bottom: (@line-height-computed * 0.75);\n overflow-y: hidden;\n -ms-overflow-style: -ms-autohiding-scrollbar;\n border: 1px solid @table-border-color;\n\n // Tighten up spacing\n > .table {\n margin-bottom: 0;\n\n // Ensure the content doesn't wrap\n > thead,\n > tbody,\n > tfoot {\n > tr {\n > th,\n > td {\n white-space: nowrap;\n }\n }\n }\n }\n\n // Special overrides for the bordered tables\n > .table-bordered {\n border: 0;\n\n // Nuke the appropriate borders so that the parent can handle them\n > thead,\n > tbody,\n > tfoot {\n > tr {\n > th:first-child,\n > td:first-child {\n border-left: 0;\n }\n > th:last-child,\n > td:last-child {\n border-right: 0;\n }\n }\n }\n\n // Only nuke the last row's bottom-border in `tbody` and `tfoot` since\n // chances are there will be only one `tr` in a `thead` and that would\n // remove the border altogether.\n > tbody,\n > tfoot {\n > tr:last-child {\n > th,\n > td {\n border-bottom: 0;\n }\n }\n }\n\n }\n }\n}\n","// Tables\n\n.table-row-variant(@state; @background) {\n // Exact selectors below required to override `.table-striped` and prevent\n // inheritance to nested tables.\n .table > thead > tr,\n .table > tbody > tr,\n .table > tfoot > tr {\n > td.@{state},\n > th.@{state},\n &.@{state} > td,\n &.@{state} > th {\n background-color: @background;\n }\n }\n\n // Hover states for `.table-hover`\n // Note: this is not available for cells or rows within `thead` or `tfoot`.\n .table-hover > tbody > tr {\n > td.@{state}:hover,\n > th.@{state}:hover,\n &.@{state}:hover > td,\n &:hover > .@{state},\n &.@{state}:hover > th {\n background-color: darken(@background, 5%);\n }\n }\n}\n","//\n// Forms\n// --------------------------------------------------\n\n\n// Normalize non-controls\n//\n// Restyle and baseline non-control form elements.\n\nfieldset {\n padding: 0;\n margin: 0;\n border: 0;\n // Chrome and Firefox set a `min-width: min-content;` on fieldsets,\n // so we reset that to ensure it behaves more like a standard block element.\n // See https://github.com/twbs/bootstrap/issues/12359.\n min-width: 0;\n}\n\nlegend {\n display: block;\n width: 100%;\n padding: 0;\n margin-bottom: @line-height-computed;\n font-size: (@font-size-base * 1.5);\n line-height: inherit;\n color: @legend-color;\n border: 0;\n border-bottom: 1px solid @legend-border-color;\n}\n\nlabel {\n display: inline-block;\n max-width: 100%; // Force IE8 to wrap long content (see https://github.com/twbs/bootstrap/issues/13141)\n margin-bottom: 5px;\n font-weight: bold;\n}\n\n\n// Normalize form controls\n//\n// While most of our form styles require extra classes, some basic normalization\n// is required to ensure optimum display with or without those classes to better\n// address browser inconsistencies.\n\n// Override content-box in Normalize (* isn't specific enough)\ninput[type=\"search\"] {\n .box-sizing(border-box);\n}\n\n// Position radios and checkboxes better\ninput[type=\"radio\"],\ninput[type=\"checkbox\"] {\n margin: 4px 0 0;\n margin-top: 1px \\9; // IE8-9\n line-height: normal;\n}\n\n// Set the height of file controls to match text inputs\ninput[type=\"file\"] {\n display: block;\n}\n\n// Make range inputs behave like textual form controls\ninput[type=\"range\"] {\n display: block;\n width: 100%;\n}\n\n// Make multiple select elements height not fixed\nselect[multiple],\nselect[size] {\n height: auto;\n}\n\n// Focus for file, radio, and checkbox\ninput[type=\"file\"]:focus,\ninput[type=\"radio\"]:focus,\ninput[type=\"checkbox\"]:focus {\n .tab-focus();\n}\n\n// Adjust output element\noutput {\n display: block;\n padding-top: (@padding-base-vertical + 1);\n font-size: @font-size-base;\n line-height: @line-height-base;\n color: @input-color;\n}\n\n\n// Common form controls\n//\n// Shared size and type resets for form controls. Apply `.form-control` to any\n// of the following form controls:\n//\n// select\n// textarea\n// input[type=\"text\"]\n// input[type=\"password\"]\n// input[type=\"datetime\"]\n// input[type=\"datetime-local\"]\n// input[type=\"date\"]\n// input[type=\"month\"]\n// input[type=\"time\"]\n// input[type=\"week\"]\n// input[type=\"number\"]\n// input[type=\"email\"]\n// input[type=\"url\"]\n// input[type=\"search\"]\n// input[type=\"tel\"]\n// input[type=\"color\"]\n\n.form-control {\n display: block;\n width: 100%;\n height: @input-height-base; // Make inputs at least the height of their button counterpart (base line-height + padding + border)\n padding: @padding-base-vertical @padding-base-horizontal;\n font-size: @font-size-base;\n line-height: @line-height-base;\n color: @input-color;\n background-color: @input-bg;\n background-image: none; // Reset unusual Firefox-on-Android default style; see https://github.com/necolas/normalize.css/issues/214\n border: 1px solid @input-border;\n border-radius: @input-border-radius;\n .box-shadow(inset 0 1px 1px rgba(0,0,0,.075));\n .transition(~\"border-color ease-in-out .15s, box-shadow ease-in-out .15s\");\n\n // Customize the `:focus` state to imitate native WebKit styles.\n .form-control-focus();\n\n // Placeholder\n .placeholder();\n\n // Disabled and read-only inputs\n //\n // HTML5 says that controls under a fieldset > legend:first-child won't be\n // disabled if the fieldset is disabled. Due to implementation difficulty, we\n // don't honor that edge case; we style them as disabled anyway.\n &[disabled],\n &[readonly],\n fieldset[disabled] & {\n cursor: @cursor-disabled;\n background-color: @input-bg-disabled;\n opacity: 1; // iOS fix for unreadable disabled content\n }\n\n // Reset height for `textarea`s\n textarea& {\n height: auto;\n }\n}\n\n\n// Search inputs in iOS\n//\n// This overrides the extra rounded corners on search inputs in iOS so that our\n// `.form-control` class can properly style them. Note that this cannot simply\n// be added to `.form-control` as it's not specific enough. For details, see\n// https://github.com/twbs/bootstrap/issues/11586.\n\ninput[type=\"search\"] {\n -webkit-appearance: none;\n}\n\n\n// Special styles for iOS temporal inputs\n//\n// In Mobile Safari, setting `display: block` on temporal inputs causes the\n// text within the input to become vertically misaligned.\n// As a workaround, we set a pixel line-height that matches the\n// given height of the input. Since this fucks up everything else, we have to\n// appropriately reset it for Internet Explorer and the size variations.\n\ninput[type=\"date\"],\ninput[type=\"time\"],\ninput[type=\"datetime-local\"],\ninput[type=\"month\"] {\n line-height: @input-height-base;\n // IE8+ misaligns the text within date inputs, so we reset\n line-height: @line-height-base ~\"\\0\";\n\n &.input-sm {\n line-height: @input-height-small;\n line-height: @line-height-small ~\"\\0\";\n }\n &.input-lg {\n line-height: @input-height-large;\n line-height: @line-height-large ~\"\\0\";\n }\n}\n\n// IE 11 hack to reverse the iOS temporal input hack.\n_:-ms-fullscreen, :root input[type=\"date\"],\n_:-ms-fullscreen, :root input[type=\"time\"],\n_:-ms-fullscreen, :root input[type=\"datetime-local\"],\n_:-ms-fullscreen, :root input[type=\"month\"] {\n line-height: @line-height-base;\n\n &.input-sm {\n line-height: @line-height-small;\n }\n &.input-lg {\n line-height: @line-height-large;\n }\n}\n\n\n// Form groups\n//\n// Designed to help with the organization and spacing of vertical forms. For\n// horizontal forms, use the predefined grid classes.\n\n.form-group {\n margin-bottom: 15px;\n}\n\n\n// Checkboxes and radios\n//\n// Indent the labels to position radios/checkboxes as hanging controls.\n\n.radio,\n.checkbox {\n position: relative;\n display: block;\n margin-top: 10px;\n margin-bottom: 10px;\n\n label {\n min-height: @line-height-computed; // Ensure the input doesn't jump when there is no text\n padding-left: 20px;\n margin-bottom: 0;\n font-weight: normal;\n cursor: pointer;\n }\n}\n.radio input[type=\"radio\"],\n.radio-inline input[type=\"radio\"],\n.checkbox input[type=\"checkbox\"],\n.checkbox-inline input[type=\"checkbox\"] {\n position: absolute;\n margin-left: -20px;\n margin-top: 4px \\9;\n}\n\n.radio + .radio,\n.checkbox + .checkbox {\n margin-top: -5px; // Move up sibling radios or checkboxes for tighter spacing\n}\n\n// Radios and checkboxes on same line\n.radio-inline,\n.checkbox-inline {\n display: inline-block;\n padding-left: 20px;\n margin-bottom: 0;\n vertical-align: middle;\n font-weight: normal;\n cursor: pointer;\n}\n.radio-inline + .radio-inline,\n.checkbox-inline + .checkbox-inline {\n margin-top: 0;\n margin-left: 10px; // space out consecutive inline controls\n}\n\n// Apply same disabled cursor tweak as for inputs\n// Some special care is needed because