blob_id
stringlengths
40
40
directory_id
stringlengths
40
40
path
stringlengths
4
721
content_id
stringlengths
40
40
detected_licenses
listlengths
0
57
license_type
stringclasses
2 values
repo_name
stringlengths
5
91
snapshot_id
stringlengths
40
40
revision_id
stringlengths
40
40
branch_name
stringclasses
321 values
visit_date
timestamp[ns]date
2016-08-12 09:31:09
2023-09-06 10:45:07
revision_date
timestamp[ns]date
2010-09-28 14:01:40
2023-09-06 06:22:19
committer_date
timestamp[ns]date
2010-09-28 14:01:40
2023-09-06 06:22:19
github_id
int64
426
681M
star_events_count
int64
101
243k
fork_events_count
int64
0
110k
gha_license_id
stringclasses
23 values
gha_event_created_at
timestamp[ns]date
2012-06-28 18:51:49
2023-09-14 21:59:16
gha_created_at
timestamp[ns]date
2008-02-11 22:55:26
2023-08-10 11:14:58
gha_language
stringclasses
147 values
src_encoding
stringclasses
26 values
language
stringclasses
2 values
is_vendor
bool
2 classes
is_generated
bool
2 classes
length_bytes
int64
6
10.2M
extension
stringclasses
115 values
filename
stringlengths
3
113
content
stringlengths
6
10.2M
5a2adc817e4223975e83571ec0ea4cb2e34f5565
d6d6893f488941edfc5d244221583c63572d9d5f
/code/missionui/fictionviewer.h
67901e8fc877de55d8fc7551f9dfc400628b4d26
[ "Unlicense" ]
permissive
scp-fs2open/fs2open.github.com
4170cc58b92577b41308a9e6343dd3fc3fb7a074
865f7e725c7a4d9c0b209a49ed0cbd8dc45e8ae7
refs/heads/master
2023-08-29T11:29:27.822804
2023-08-27T20:33:28
2023-08-27T20:33:28
7,700,081
382
311
NOASSERTION
2023-09-14T15:49:22
2013-01-19T06:10:53
C++
UTF-8
C
false
false
1,247
h
fictionviewer.h
/* * Created by Ian "Goober5000" Warfield for the FreeSpace2 Source Code Project. * You may not sell or otherwise commercially exploit the source or things you * create based on the source. */ #ifndef __FICTION_VIEWER_H__ #define __FICTION_VIEWER_H__ #include "globalincs/globals.h" #include "globalincs/pstypes.h" #include "graphics/2d.h" // since we may now have multiple possible fiction stages, activated by a formula typedef struct fiction_viewer_stage { char story_filename[MAX_FILENAME_LEN]; char font_filename[MAX_FILENAME_LEN]; char voice_filename[MAX_FILENAME_LEN]; char ui_name[NAME_LENGTH]; char background[GR_NUM_RESOLUTIONS][MAX_FILENAME_LEN]; int formula; } fiction_viewer_stage; extern SCP_vector<fiction_viewer_stage> Fiction_viewer_stages; extern int Fiction_viewer_active_stage; // management stuff void fiction_viewer_init(); void fiction_viewer_close(); void fiction_viewer_do_frame(float frametime); // fiction stuff bool mission_has_fiction(); int fiction_viewer_ui_name_to_index(const char *ui_name); void fiction_viewer_reset(); SCP_string get_localized_fiction_filename(const char* filename); void fiction_viewer_load(int stage); void fiction_viewer_pause(); void fiction_viewer_unpause(); #endif
771ea8a6946177865a01b05a068312dbc642bb85
79d343002bb63a44f8ab0dbac0c9f4ec54078c3a
/lib/libc/musl/src/temp/mkstemps.c
f8eabfec0aec6df934fec984d1288ec1e34e888a
[ "MIT", "BSD-3-Clause", "LicenseRef-scancode-public-domain", "BSD-2-Clause", "LicenseRef-scancode-other-permissive", "LicenseRef-scancode-musl-exception" ]
permissive
ziglang/zig
4aa75d8d3bcc9e39bf61d265fd84b7f005623fc5
f4c9e19bc3213c2bc7e03d7b06d7129882f39f6c
refs/heads/master
2023-08-31T13:16:45.980913
2023-08-31T05:50:29
2023-08-31T05:50:29
40,276,274
25,560
2,399
MIT
2023-09-14T21:09:50
2015-08-06T00:51:28
Zig
UTF-8
C
false
false
122
c
mkstemps.c
#define _BSD_SOURCE #include <stdlib.h> int mkstemps(char *template, int len) { return __mkostemps(template, len, 0); }
501e2593efc0322dce080cc51a83d3c60e1663f9
9ceacf33fd96913cac7ef15492c126d96cae6911
/lib/libcrypto/hidden/openssl/sha.h
ee58793205dfe99f3d05f825e988cc9819d89f0c
[]
no_license
openbsd/src
ab97ef834fd2d5a7f6729814665e9782b586c130
9e79f3a0ebd11a25b4bff61e900cb6de9e7795e9
refs/heads/master
2023-09-02T18:54:56.624627
2023-09-02T15:16:12
2023-09-02T15:16:12
66,966,208
3,394
1,235
null
2023-08-08T02:42:25
2016-08-30T18:18:25
C
UTF-8
C
false
false
1,671
h
sha.h
/* $OpenBSD: sha.h,v 1.1 2023/07/08 12:24:10 beck Exp $ */ /* * Copyright (c) 2023 Bob Beck <beck@openbsd.org> * * Permission to use, copy, modify, and distribute this software for any * purpose with or without fee is hereby granted, provided that the above * copyright notice and this permission notice appear in all copies. * * THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES * WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF * MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR * ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES * WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN * ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF * OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. */ #ifndef _LIBCRYPTO_SHA_H #define _LIBCRYPTO_SHA_H #ifndef _MSC_VER #include_next <openssl/sha.h> #else #include "../include/openssl/sha.h" #endif #include "crypto_namespace.h" LCRYPTO_USED(SHA1_Init); LCRYPTO_USED(SHA1_Update); LCRYPTO_USED(SHA1_Final); LCRYPTO_USED(SHA1); LCRYPTO_USED(SHA1_Transform); LCRYPTO_USED(SHA224_Init); LCRYPTO_USED(SHA224_Update); LCRYPTO_USED(SHA224_Final); LCRYPTO_USED(SHA224); LCRYPTO_USED(SHA256_Init); LCRYPTO_USED(SHA256_Update); LCRYPTO_USED(SHA256_Final); LCRYPTO_USED(SHA256); LCRYPTO_USED(SHA256_Transform); LCRYPTO_USED(SHA384_Init); LCRYPTO_USED(SHA384_Update); LCRYPTO_USED(SHA384_Final); LCRYPTO_USED(SHA384); LCRYPTO_USED(SHA512_Init); LCRYPTO_USED(SHA512_Update); LCRYPTO_USED(SHA512_Final); LCRYPTO_USED(SHA512); LCRYPTO_USED(SHA512_Transform); #endif /* _LIBCRYPTO_SHA_H */
4c8c823dfb01f3d4cf078182586f89a2a9579d3a
581bdcc078d282e388f1b655d4cfc4e08152d117
/KSystemInformer/include/pooltags.h
2476d028e641095081a0fa4ac35956a8959a65ee
[ "MIT", "BSD-3-Clause", "LGPL-2.0-or-later", "Zlib", "LGPL-2.1-or-later", "GPL-2.0-only", "LicenseRef-scancode-public-domain" ]
permissive
winsiderss/systeminformer
774928be871f0055263ac5e62ae0a598b098486b
5a6b442acd45d681f699a133d476a3211d072871
refs/heads/master
2023-08-28T15:43:41.074679
2023-08-27T20:59:20
2023-08-27T20:59:20
50,824,485
2,137
292
MIT
2023-09-10T22:35:12
2016-02-01T08:10:21
C
UTF-8
C
false
false
2,370
h
pooltags.h
/* * Copyright (c) 2022 Winsider Seminars & Solutions, Inc. All rights reserved. * * This file is part of System Informer. * * Authors: * * jxy-s 2022 * */ #pragma once // alloc #define KPH_TAG_PAGED_LOOKASIDE_OBJECT '0AcK' #define KPH_TAG_NPAGED_LOOKASIDE_OBJECT '1AcK' // comms #define KPH_TAG_CLIENT '0CpK' #define KPH_TAG_MESSAGE '1CpK' #define KPH_TAG_NPAGED_MESSAGE '2CpK' #define KPH_TAG_QUEUE_ITEM '3CpK' #define KPH_TAG_THREAD_POOL '4CpK' // dyndata #define KPH_TAG_DYNDATA '0DpK' // object #define KPH_TAG_OBJECT_QUERY '0OpK' // process #define KPH_TAG_PROCESS_INFO '0PpK' // thread #define KPH_TAG_BACKTRACE '0TpK' #define KPH_TAG_THREAD_INFO '1TpK' // util #define KPH_TAG_REG_STRING '0UpK' #define KPH_TAG_REG_BINARY '1UpK' #define KPH_TAG_FILE_OBJECT_NAME '2UpK' // vm #define KPH_TAG_COPY_VM '0vpK' // debug #define KPH_TAG_DBG_SLOTS '0dpK' // hash #define KPH_TAG_HASHING_BUFFER '0HpK' #define KPH_TAG_AUTHENTICODE_SIG '1HpK' #define KPH_TAG_HASHING_INFRA '2HpK' // sign #define KPH_TAG_SIGNING_INFRA '0SpK' // informer #define KPH_TAG_INFORMER_OB_NAME '0IpK' #define KPH_TAG_PROCESS_CREATE_APC '1IpK' // cid_tracking #define KPH_TAG_CID_TABLE '0cpK' #define KPH_TAG_CID_POPULATE '1cpK' #define KPH_TAG_PROCESS_CONTEXT '2cpK' #define KPH_TAG_THREAD_CONTEXT '3cpK' #define KPH_TAG_CID_APC '4cpK' // protection #define KPH_TAG_IMAGE_LOAD_APC '0ppK' // alpc #define KPH_TAG_ALPC_NAME_QUERY '0ApK' #define KPH_TAG_ALPC_QUERY '1ApK' // file #define KPH_TAG_FILE_QUERY '0FpK' #define KPH_TAG_VOL_FILE_QUERY '1FpK' // socket #define KPH_TAG_SOCKET '0spK' #define KPH_TAG_TLS '1spK' #define KPH_TAG_TLS_BUFFER '2spK'
9e40a009ad4d6c2f03d531ff74b076b0bd1a6508
23ba742dbd55d9d2cef68e624f2d23e4fd76e8a3
/src/saiga/core/geometry/all.h
bdfe2388a2c8bb79e09dd45a4d8500ed100878a3
[ "LicenseRef-scancode-unknown-license-reference", "MIT" ]
permissive
darglein/saiga
a4026b86e7397266e5036294a6435d85657f39ee
7617871a8ccdde58847e4f6871bd527f32652a79
refs/heads/master
2023-08-17T03:33:44.387706
2023-08-15T14:54:47
2023-08-15T14:54:47
97,219,629
135
26
MIT
2023-02-13T16:24:21
2017-07-14T09:55:50
C++
UTF-8
C
false
false
280
h
all.h
/** * Copyright (c) 2021 Darius Rückert * Licensed under the MIT License. * See LICENSE file for more information. */ #pragma once #include "saiga/config.h" #include "AccelerationStructure.h" #include "cone.h" #include "iRect.h" #include "triangle_mesh.h"
44b31057b717701ba1d41eddd021a614ef064376
7f6c235b0598353549959c18f69eefd20b766907
/src/appmake/mc.c
cca0752fb8fb5079aee420cc9405a00742d67c2a
[ "ClArtistic" ]
permissive
z88dk/z88dk
46dfd4905f36d99333173cadd0a660839befc9f0
8b07f37cc43c5d9ffe69b563c80763491d8faff7
refs/heads/master
2023-09-04T19:29:49.254958
2023-09-03T20:51:24
2023-09-03T20:51:24
54,035,569
820
263
NOASSERTION
2023-09-05T11:09:04
2016-03-16T13:48:16
Assembly
UTF-8
C
false
false
6,224
c
mc.c
/* * CCE MMC-1000 BIN to CAS file converter and WAV generator * * $Id: mc.c $ */ #include "appmake.h" static char *binname = NULL; static char *crtfile = NULL; static char *outfile = NULL; static char *blockname = NULL; static int origin = -1; static char help = 0; static char audio = 0; static char fast = 0; static char khz_22 = 0; /* Options that are available for this module */ option_t mc_options[] = { { 'h', "help", "Display this help", OPT_BOOL, &help}, { 'b', "binfile", "Linked binary file", OPT_STR, &binname }, { 'c', "crt0file", "crt0 file used in linking", OPT_STR, &crtfile }, { 'o', "output", "Name of output file", OPT_STR, &outfile }, { 0, "audio", "Create also a WAV file", OPT_BOOL, &audio }, { 0, "fast", "Fast loading WAV trick for MESS emulator", OPT_BOOL, &fast }, { 0, "22", "22050hz bitrate option", OPT_BOOL, &khz_22 }, // { 0, "dumb", "Just convert to WAV a tape file", OPT_BOOL, &dumb }, { 0 , "org", "Origin of the binary", OPT_INT, &origin }, { 0 , "blockname", "Name of the code block", OPT_STR, &blockname}, { 0 , NULL, NULL, OPT_NONE, NULL } }; void mc_bit(FILE* fpout, unsigned char bit) { int period1, period0; if (fast) { // We're just guessing, no test on the real harware has been done period0 = 27; period1 = 14; } else { period0 = 31; period1 = 16; } if (bit) { /* '1' */ zx_rawbit(fpout, period1); } else { /* '0' */ zx_rawbit(fpout, period0); } } void mc_rawout(FILE* fpout, unsigned char b) { static unsigned char c[8] = { 0x01, 0x02, 0x04, 0x08, 0x10, 0x20, 0x40, 0x80 }; int i, parity; parity = 1; /* start bit */ mc_bit(fpout, 1); /* byte */ for (i = 0; i < 8; i++) { mc_bit(fpout, b & c[i]); if (b & c[i]) parity++; } /* parity bit */ mc_bit(fpout, parity & 1); } int mc_exec(char* target) { char filename[FILENAME_MAX + 1]; char wavfile[FILENAME_MAX + 1]; char name[18]; FILE *fpin, *fpout; int c; int i; int len, hdlen; unsigned short startaddr; unsigned short endaddr; if (help) return -1; if (binname == NULL) { return -1; } if (origin == -1) if ((origin = get_org_addr(crtfile)) == -1) { exit_log(1,"Could not find parameter ZORG (not z88dk compiled?)\n"); } if (outfile == NULL) { strcpy(filename, binname); suffix_change(filename, ".cas"); } else { strcpy(filename, outfile); } if (blockname == NULL) blockname = " \0"; if ((fpin = fopen_bin(binname, crtfile)) == NULL) { exit_log(1, "Can't open input file %s\n", binname); } /* * Now we try to determine the size of the file * to be converted */ if (fseek(fpin, 0, SEEK_END)) { fclose(fpin); exit_log(1, "Couldn't determine size of file\n"); } len = ftell(fpin); fseek(fpin, 0, SEEK_SET); if ((fpout = fopen(filename, "wb")) == NULL) { fclose(fpin); exit_log(1,"Can't open output file\n"); } if (origin != 0x200) { /* Deal with the filename */ if (strlen(blockname) > 14) { strncpy(name, blockname, 14); } else { strcpy(name, blockname); } for (i = 0; i < (strlen(name)); i++) fputc(toupper(name[i]), fpout); if (strlen(blockname) <= 14) fputc(13, fpout); } else { /* TLOAD ignores the file name, so * let's shorten it as much as possible */ fputc(13, fpout); } startaddr = origin; endaddr = origin + len; writeword(startaddr, fpout); writeword(endaddr, fpout); for (i = 0; i < len; i++) { c = getc(fpin); fputc(c, fpout); } /* end address */ fputc(255, fpout); fclose(fpin); fclose(fpout); /* ***************************************** */ /* Now, if requested, create the audio file */ /* ***************************************** */ if ((audio) || (fast) || (khz_22)) { if ((fpin = fopen(filename, "rb")) == NULL) { exit_log(1, "Can't open file %s for wave conversion\n", filename); } if (fseek(fpin, 0, SEEK_END)) { fclose(fpin); exit_log(1,"Couldn't determine size of file\n"); } len = ftell(fpin); fseek(fpin, 0L, SEEK_SET); strcpy(wavfile, filename); suffix_change(wavfile, ".RAW"); if ((fpout = fopen(wavfile, "wb")) == NULL) { exit_log(1, "Can't open output raw audio file %s\n", wavfile); } /* preamble + leadin + type + name + string termination */ //hdlen=128 + 5 + 1 + strlen(name) + 1; /* leading silence */ for (i = 0; i < 0x5000; i++) fputc(0x80, fpout); /* headinf tones */ for (i = 0; i < 4096; i++) mc_bit(fpout, 1); for (i = 0; i < 256; i++) mc_bit(fpout, 0); hdlen = 0; /* filename */ c = 0; while ((c != 13) && (hdlen < 14)) { c = getc(fpin); mc_rawout(fpout, c); hdlen++; } /* start+end locations */ for (i = 0; i < 4; i++) { c = getc(fpin); mc_rawout(fpout, c); } hdlen += 4; /* start addr + end addr + program block */ for (i = 0; (i < (len - hdlen)); i++) { c = getc(fpin); mc_rawout(fpout, c); } /* trailing silence */ for (i = 0; i < 0x1500; i++) fputc(0x80, fpout); fclose(fpin); fclose(fpout); /* Now let's think at the WAV format */ if (khz_22) raw2wav_22k(wavfile,2); else raw2wav(wavfile); } return 0; }
2d2d258bef2f73ff228a32184adcda12b74330ba
b3192f20fe6c264794adea523c57c8e258efd10f
/sketches/M2_CAN_haz_bus/sniffing.h
01caa5450030bebd2e0d44cb983f1204bf20864d
[ "BSD-2-Clause" ]
permissive
atlas0fd00m/CanCat
4e2e90a0a15d80a5e225501165e470a3c2b2f883
9729abf99cb53d5d20cc05ad540deb82ede606a2
refs/heads/master
2023-04-15T04:49:45.571873
2023-04-07T17:39:32
2023-04-07T17:39:32
33,624,794
179
41
BSD-2-Clause
2023-04-07T17:39:33
2015-04-08T18:32:01
Python
UTF-8
C
false
false
89
h
sniffing.h
#ifndef __SNIFFING_H__ #define __SNIFFING_H__ uint8_t Init_Sniff(uint8_t baud); #endif
13d7ad73faf4b02c9e5072aa7bbe1c6c76b8b39f
e1d9c54e9925e30e388a255b53a93cccad0b94cb
/kubernetes/model/v1_resource_field_selector.h
0e908acffbb8cea7abd4336f7decb35e05bbabe0
[ "Apache-2.0", "curl" ]
permissive
kubernetes-client/c
dd4fd8095485c083e0f40f2b48159b1609a6141b
5ac5ff25e9809a92a48111b1f77574b6d040b711
refs/heads/master
2023-08-13T10:51:03.702497
2023-08-07T19:18:32
2023-08-07T19:18:32
247,958,425
127
47
Apache-2.0
2023-09-07T20:07:00
2020-03-17T11:59:05
C
UTF-8
C
false
false
1,113
h
v1_resource_field_selector.h
/* * v1_resource_field_selector.h * * ResourceFieldSelector represents container resources (cpu, memory) and their output format */ #ifndef _v1_resource_field_selector_H_ #define _v1_resource_field_selector_H_ #include <string.h> #include "../external/cJSON.h" #include "../include/list.h" #include "../include/keyValuePair.h" #include "../include/binary.h" typedef struct v1_resource_field_selector_t v1_resource_field_selector_t; typedef struct v1_resource_field_selector_t { char *container_name; // string char *divisor; // string char *resource; // string } v1_resource_field_selector_t; v1_resource_field_selector_t *v1_resource_field_selector_create( char *container_name, char *divisor, char *resource ); void v1_resource_field_selector_free(v1_resource_field_selector_t *v1_resource_field_selector); v1_resource_field_selector_t *v1_resource_field_selector_parseFromJSON(cJSON *v1_resource_field_selectorJSON); cJSON *v1_resource_field_selector_convertToJSON(v1_resource_field_selector_t *v1_resource_field_selector); #endif /* _v1_resource_field_selector_H_ */
876639caa4fa2b1bf991d7658948a3430faddb3c
0149ed842327e3133fc2fe7b49d6ee2e27c22021
/shared/source/unified_memory/unified_memory.h
f30cef5ebba10c596dcd81112dff6fd738886db1
[ "MIT" ]
permissive
intel/compute-runtime
17f1c3dd3e1120895c6217b1e6c311d88a09902e
869e3ec9f83a79ca4ac43a18d21847183c63e037
refs/heads/master
2023-09-03T07:28:16.591743
2023-09-02T02:04:35
2023-09-02T02:24:33
105,299,354
1,027
262
MIT
2023-08-25T11:06:41
2017-09-29T17:26:43
C++
UTF-8
C
false
false
1,298
h
unified_memory.h
/* * Copyright (C) 2019-2023 Intel Corporation * * SPDX-License-Identifier: MIT * */ #pragma once #include <stdint.h> enum InternalMemoryType : uint32_t { NOT_SPECIFIED = 0b0, SVM = 0b1, DEVICE_UNIFIED_MEMORY = 0b10, HOST_UNIFIED_MEMORY = 0b100, SHARED_UNIFIED_MEMORY = 0b1000, RESERVED_DEVICE_MEMORY = 0b10000 }; enum class InternalIpcMemoryType : uint32_t { IPC_DEVICE_UNIFIED_MEMORY = 0, IPC_HOST_UNIFIED_MEMORY = 1 }; enum TransferType : uint32_t { TRANSFER_TYPE_UNKNOWN = 0, HOST_NON_USM_TO_HOST_USM = 1, HOST_NON_USM_TO_DEVICE_USM = 2, HOST_NON_USM_TO_SHARED_USM = 3, HOST_NON_USM_TO_HOST_NON_USM = 4, HOST_USM_TO_HOST_USM = 5, HOST_USM_TO_DEVICE_USM = 6, HOST_USM_TO_SHARED_USM = 7, HOST_USM_TO_HOST_NON_USM = 8, DEVICE_USM_TO_HOST_USM = 9, DEVICE_USM_TO_DEVICE_USM = 10, DEVICE_USM_TO_SHARED_USM = 11, DEVICE_USM_TO_HOST_NON_USM = 12, SHARED_USM_TO_HOST_USM = 13, SHARED_USM_TO_DEVICE_USM = 14, SHARED_USM_TO_SHARED_USM = 15, SHARED_USM_TO_HOST_NON_USM = 16 }; struct UnifiedMemoryControls { uint32_t generateMask(); bool indirectDeviceAllocationsAllowed = false; bool indirectHostAllocationsAllowed = false; bool indirectSharedAllocationsAllowed = false; };
7aea08acc138ebab05b06b363c8d5a9aa9a0a270
8838eb997879add5759b6dfb23f9a646464e53ca
/src/tests/mem/objalloc.c
a76cf45adeb7c684d33472f5d4a5949902f79353
[ "BSD-2-Clause" ]
permissive
embox/embox
d6aacec876978522f01cdc4b8de37a668c6f4c80
98e3c06e33f3fdac10a29c069c20775568e0a6d1
refs/heads/master
2023-09-04T03:02:20.165042
2023-09-02T14:55:31
2023-09-02T14:55:31
33,078,138
1,087
325
BSD-2-Clause
2023-09-14T16:58:34
2015-03-29T15:27:48
C
UTF-8
C
false
false
414
c
objalloc.c
/** * @file * * @date 6.07.2011 * @author Alexandr Kalmuk */ #include <embox/test.h> #include <mem/objalloc.h> #define TOTAL_OBJECTS 16 EMBOX_TEST_SUITE("objalloc test"); OBJALLOC_DEF(allocator, int , TOTAL_OBJECTS); TEST_CASE("test for macro OBJALLOC_DEF") { void *obj = objalloc(&allocator); test_assert_not_null(obj); objfree(&allocator,obj); test_assert_equal(objalloc_destroy(&allocator), 0); }
168bc7809a5d6e3355d7b16c7fd93e8e461e4e2e
59864cbd213b5da6f50d6255b0a021564b3d5bd4
/challenges/On_Sale/src/sale.c
51e237e87ebe8bee9d50dedb3501cedf12e5f4b5
[ "MIT", "BSD-3-Clause", "LicenseRef-scancode-unknown", "BSD-2-Clause" ]
permissive
trailofbits/cb-multios
8af96a4fbc3b34644367faa135347f88e0e0d0a3
810d7b24b1f62f56ef49b148fe155b0d0629cad2
refs/heads/master
2023-09-05T03:56:20.229403
2022-12-27T15:47:54
2022-12-27T15:47:54
41,688,943
522
133
MIT
2023-06-29T02:47:13
2015-08-31T17:04:31
C
UTF-8
C
false
false
22,887
c
sale.c
/* * Copyright (C) Narf Industries <info@narfindustries.com> * * Permission is hereby granted, free of charge, to any person obtaining a * copy of this software and associated documentation files (the "Software"), * to deal in the Software without restriction, including without limitation * the rights to use, copy, modify, merge, publish, distribute, sublicense, * and/or sell copies of the Software, and to permit persons to whom the * Software is furnished to do so, subject to the following conditions: * * The above copyright notice and this permission notice shall be included * in all copies or substantial portions of the Software. * * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS * OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF * MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. * IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY * CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, * TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE * SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. */ #include "libcgc.h" #include "cgc_sale.h" #define END_MARKER NULL float __attribute__((regparm(2))) cgc_sale_0(unsigned int model_num, float cost) { unsigned int percent_int = 0; float adjustment = 1.0 - ((float)percent_int / 100.0); return cost * adjustment; } float __attribute__((regparm(2))) cgc_sale_1(unsigned int model_num, float cost) { unsigned int percent_int = 1; float adjustment = 1.0 - ((float)percent_int / 100.0); return cost * adjustment; } float __attribute__((regparm(2))) cgc_sale_2(unsigned int model_num, float cost) { unsigned int percent_int = 2; float adjustment = 1.0 - ((float)percent_int / 100.0); return cost * adjustment; } float __attribute__((regparm(2))) cgc_sale_3(unsigned int model_num, float cost) { unsigned int percent_int = 3; float adjustment = 1.0 - ((float)percent_int / 100.0); return cost * adjustment; } float __attribute__((regparm(2))) cgc_sale_4(unsigned int model_num, float cost) { unsigned int percent_int = 4; float adjustment = 1.0 - ((float)percent_int / 100.0); return cost * adjustment; } float __attribute__((regparm(2))) cgc_sale_5(unsigned int model_num, float cost) { unsigned int percent_int = 5; float adjustment = 1.0 - ((float)percent_int / 100.0); return cost * adjustment; } float __attribute__((regparm(2))) cgc_sale_6(unsigned int model_num, float cost) { unsigned int percent_int = 6; float adjustment = 1.0 - ((float)percent_int / 100.0); return cost * adjustment; } float __attribute__((regparm(2))) cgc_sale_7(unsigned int model_num, float cost) { unsigned int percent_int = 7; float adjustment = 1.0 - ((float)percent_int / 100.0); return cost * adjustment; } float __attribute__((regparm(2))) cgc_sale_8(unsigned int model_num, float cost) { unsigned int percent_int = 8; float adjustment = 1.0 - ((float)percent_int / 100.0); return cost * adjustment; } float __attribute__((regparm(2))) cgc_sale_9(unsigned int model_num, float cost) { unsigned int percent_int = 9; float adjustment = 1.0 - ((float)percent_int / 100.0); return cost * adjustment; } float __attribute__((regparm(2))) cgc_sale_10(unsigned int model_num, float cost) { unsigned int percent_int = 10; float adjustment = 1.0 - ((float)percent_int / 100.0); return cost * adjustment; } float __attribute__((regparm(2))) cgc_sale_11(unsigned int model_num, float cost) { unsigned int percent_int = 11; float adjustment = 1.0 - ((float)percent_int / 100.0); return cost * adjustment; } float __attribute__((regparm(2))) cgc_sale_12(unsigned int model_num, float cost) { unsigned int percent_int = 12; float adjustment = 1.0 - ((float)percent_int / 100.0); return cost * adjustment; } float __attribute__((regparm(2))) cgc_sale_13(unsigned int model_num, float cost) { unsigned int percent_int = 13; float adjustment = 1.0 - ((float)percent_int / 100.0); return cost * adjustment; } float __attribute__((regparm(2))) cgc_sale_14(unsigned int model_num, float cost) { unsigned int percent_int = 14; float adjustment = 1.0 - ((float)percent_int / 100.0); return cost * adjustment; } float __attribute__((regparm(2))) cgc_sale_15(unsigned int model_num, float cost) { unsigned int percent_int = 15; float adjustment = 1.0 - ((float)percent_int / 100.0); return cost * adjustment; } float __attribute__((regparm(2))) cgc_sale_16(unsigned int model_num, float cost) { unsigned int percent_int = 16; float adjustment = 1.0 - ((float)percent_int / 100.0); return cost * adjustment; } float __attribute__((regparm(2))) cgc_sale_17(unsigned int model_num, float cost) { unsigned int percent_int = 17; float adjustment = 1.0 - ((float)percent_int / 100.0); return cost * adjustment; } float __attribute__((regparm(2))) cgc_sale_18(unsigned int model_num, float cost) { unsigned int percent_int = 18; float adjustment = 1.0 - ((float)percent_int / 100.0); return cost * adjustment; } float __attribute__((regparm(2))) cgc_sale_19(unsigned int model_num, float cost) { unsigned int percent_int = 19; float adjustment = 1.0 - ((float)percent_int / 100.0); return cost * adjustment; } float __attribute__((regparm(2))) cgc_sale_20(unsigned int model_num, float cost) { unsigned int percent_int = 20; float adjustment = 1.0 - ((float)percent_int / 100.0); return cost * adjustment; } float __attribute__((regparm(2))) cgc_sale_21(unsigned int model_num, float cost) { unsigned int percent_int = 21; float adjustment = 1.0 - ((float)percent_int / 100.0); return cost * adjustment; } float __attribute__((regparm(2))) cgc_sale_22(unsigned int model_num, float cost) { unsigned int percent_int = 22; float adjustment = 1.0 - ((float)percent_int / 100.0); return cost * adjustment; } float __attribute__((regparm(2))) cgc_sale_23(unsigned int model_num, float cost) { unsigned int percent_int = 23; float adjustment = 1.0 - ((float)percent_int / 100.0); return cost * adjustment; } float __attribute__((regparm(2))) cgc_sale_24(unsigned int model_num, float cost) { unsigned int percent_int = 24; float adjustment = 1.0 - ((float)percent_int / 100.0); return cost * adjustment; } float __attribute__((regparm(2))) cgc_sale_25(unsigned int model_num, float cost) { unsigned int percent_int = 25; float adjustment = 1.0 - ((float)percent_int / 100.0); return cost * adjustment; } float __attribute__((regparm(2))) cgc_sale_26(unsigned int model_num, float cost) { unsigned int percent_int = 26; float adjustment = 1.0 - ((float)percent_int / 100.0); return cost * adjustment; } float __attribute__((regparm(2))) cgc_sale_27(unsigned int model_num, float cost) { unsigned int percent_int = 27; float adjustment = 1.0 - ((float)percent_int / 100.0); return cost * adjustment; } float __attribute__((regparm(2))) cgc_sale_28(unsigned int model_num, float cost) { unsigned int percent_int = 28; float adjustment = 1.0 - ((float)percent_int / 100.0); return cost * adjustment; } float __attribute__((regparm(2))) cgc_sale_29(unsigned int model_num, float cost) { unsigned int percent_int = 29; float adjustment = 1.0 - ((float)percent_int / 100.0); return cost * adjustment; } float __attribute__((regparm(2))) cgc_sale_30(unsigned int model_num, float cost) { unsigned int percent_int = 30; float adjustment = 1.0 - ((float)percent_int / 100.0); return cost * adjustment; } float __attribute__((regparm(2))) cgc_sale_31(unsigned int model_num, float cost) { unsigned int percent_int = 31; float adjustment = 1.0 - ((float)percent_int / 100.0); return cost * adjustment; } float __attribute__((regparm(2))) cgc_sale_32(unsigned int model_num, float cost) { unsigned int percent_int = 32; float adjustment = 1.0 - ((float)percent_int / 100.0); return cost * adjustment; } float __attribute__((regparm(2))) cgc_sale_33(unsigned int model_num, float cost) { unsigned int percent_int = 33; float adjustment = 1.0 - ((float)percent_int / 100.0); return cost * adjustment; } float __attribute__((regparm(2))) cgc_sale_34(unsigned int model_num, float cost) { unsigned int percent_int = 34; float adjustment = 1.0 - ((float)percent_int / 100.0); return cost * adjustment; } float __attribute__((regparm(2))) cgc_sale_35(unsigned int model_num, float cost) { unsigned int percent_int = 35; float adjustment = 1.0 - ((float)percent_int / 100.0); return cost * adjustment; } float __attribute__((regparm(2))) cgc_sale_36(unsigned int model_num, float cost) { unsigned int percent_int = 36; float adjustment = 1.0 - ((float)percent_int / 100.0); return cost * adjustment; } float __attribute__((regparm(2))) cgc_sale_37(unsigned int model_num, float cost) { unsigned int percent_int = 37; float adjustment = 1.0 - ((float)percent_int / 100.0); return cost * adjustment; } float __attribute__((regparm(2))) cgc_sale_38(unsigned int model_num, float cost) { unsigned int percent_int = 38; float adjustment = 1.0 - ((float)percent_int / 100.0); return cost * adjustment; } float __attribute__((regparm(2))) cgc_sale_39(unsigned int model_num, float cost) { unsigned int percent_int = 39; float adjustment = 1.0 - ((float)percent_int / 100.0); return cost * adjustment; } float __attribute__((regparm(2))) cgc_sale_40(unsigned int model_num, float cost) { unsigned int percent_int = 40; float adjustment = 1.0 - ((float)percent_int / 100.0); return cost * adjustment; } float __attribute__((regparm(2))) cgc_sale_41(unsigned int model_num, float cost) { unsigned int percent_int = 41; float adjustment = 1.0 - ((float)percent_int / 100.0); return cost * adjustment; } float __attribute__((regparm(2))) cgc_sale_42(unsigned int model_num, float cost) { unsigned int percent_int = 42; float adjustment = 1.0 - ((float)percent_int / 100.0); return cost * adjustment; } float __attribute__((regparm(2))) cgc_sale_43(unsigned int model_num, float cost) { unsigned int percent_int = 43; float adjustment = 1.0 - ((float)percent_int / 100.0); return cost * adjustment; } float __attribute__((regparm(2))) cgc_sale_44(unsigned int model_num, float cost) { unsigned int percent_int = 44; float adjustment = 1.0 - ((float)percent_int / 100.0); return cost * adjustment; } float __attribute__((regparm(2))) cgc_sale_45(unsigned int model_num, float cost) { unsigned int percent_int = 45; float adjustment = 1.0 - ((float)percent_int / 100.0); return cost * adjustment; } float __attribute__((regparm(2))) cgc_sale_46(unsigned int model_num, float cost) { unsigned int percent_int = 46; float adjustment = 1.0 - ((float)percent_int / 100.0); return cost * adjustment; } float __attribute__((regparm(2))) cgc_sale_47(unsigned int model_num, float cost) { unsigned int percent_int = 47; float adjustment = 1.0 - ((float)percent_int / 100.0); return cost * adjustment; } float __attribute__((regparm(2))) cgc_sale_48(unsigned int model_num, float cost) { unsigned int percent_int = 48; float adjustment = 1.0 - ((float)percent_int / 100.0); return cost * adjustment; } float __attribute__((regparm(2))) cgc_sale_49(unsigned int model_num, float cost) { unsigned int percent_int = 49; float adjustment = 1.0 - ((float)percent_int / 100.0); return cost * adjustment; } float __attribute__((regparm(2))) cgc_sale_50(unsigned int model_num, float cost) { unsigned int percent_int = 50; float adjustment = 1.0 - ((float)percent_int / 100.0); return cost * adjustment; } float __attribute__((regparm(2))) cgc_sale_51(unsigned int model_num, float cost) { unsigned int percent_int = 51; float adjustment = 1.0 - ((float)percent_int / 100.0); return cost * adjustment; } float __attribute__((regparm(2))) cgc_sale_52(unsigned int model_num, float cost) { unsigned int percent_int = 52; float adjustment = 1.0 - ((float)percent_int / 100.0); return cost * adjustment; } float __attribute__((regparm(2))) cgc_sale_53(unsigned int model_num, float cost) { unsigned int percent_int = 53; float adjustment = 1.0 - ((float)percent_int / 100.0); return cost * adjustment; } float __attribute__((regparm(2))) cgc_sale_54(unsigned int model_num, float cost) { unsigned int percent_int = 54; float adjustment = 1.0 - ((float)percent_int / 100.0); return cost * adjustment; } float __attribute__((regparm(2))) cgc_sale_55(unsigned int model_num, float cost) { unsigned int percent_int = 55; float adjustment = 1.0 - ((float)percent_int / 100.0); return cost * adjustment; } float __attribute__((regparm(2))) cgc_sale_56(unsigned int model_num, float cost) { unsigned int percent_int = 56; float adjustment = 1.0 - ((float)percent_int / 100.0); return cost * adjustment; } float __attribute__((regparm(2))) cgc_sale_57(unsigned int model_num, float cost) { unsigned int percent_int = 57; float adjustment = 1.0 - ((float)percent_int / 100.0); return cost * adjustment; } float __attribute__((regparm(2))) cgc_sale_58(unsigned int model_num, float cost) { unsigned int percent_int = 58; float adjustment = 1.0 - ((float)percent_int / 100.0); return cost * adjustment; } float __attribute__((regparm(2))) cgc_sale_59(unsigned int model_num, float cost) { unsigned int percent_int = 59; float adjustment = 1.0 - ((float)percent_int / 100.0); return cost * adjustment; } float __attribute__((regparm(2))) cgc_sale_60(unsigned int model_num, float cost) { unsigned int percent_int = 60; float adjustment = 1.0 - ((float)percent_int / 100.0); return cost * adjustment; } float __attribute__((regparm(2))) cgc_sale_61(unsigned int model_num, float cost) { unsigned int percent_int = 61; float adjustment = 1.0 - ((float)percent_int / 100.0); return cost * adjustment; } float __attribute__((regparm(2))) cgc_sale_62(unsigned int model_num, float cost) { unsigned int percent_int = 62; float adjustment = 1.0 - ((float)percent_int / 100.0); return cost * adjustment; } float __attribute__((regparm(2))) cgc_sale_63(unsigned int model_num, float cost) { unsigned int percent_int = 63; float adjustment = 1.0 - ((float)percent_int / 100.0); return cost * adjustment; } float __attribute__((regparm(2))) cgc_sale_64(unsigned int model_num, float cost) { unsigned int percent_int = 64; float adjustment = 1.0 - ((float)percent_int / 100.0); return cost * adjustment; } float __attribute__((regparm(2))) cgc_sale_65(unsigned int model_num, float cost) { unsigned int percent_int = 65; float adjustment = 1.0 - ((float)percent_int / 100.0); return cost * adjustment; } float __attribute__((regparm(2))) cgc_sale_66(unsigned int model_num, float cost) { unsigned int percent_int = 66; float adjustment = 1.0 - ((float)percent_int / 100.0); return cost * adjustment; } float __attribute__((regparm(2))) cgc_sale_67(unsigned int model_num, float cost) { unsigned int percent_int = 67; float adjustment = 1.0 - ((float)percent_int / 100.0); return cost * adjustment; } float __attribute__((regparm(2))) cgc_sale_68(unsigned int model_num, float cost) { unsigned int percent_int = 68; float adjustment = 1.0 - ((float)percent_int / 100.0); return cost * adjustment; } float __attribute__((regparm(2))) cgc_sale_69(unsigned int model_num, float cost) { unsigned int percent_int = 69; float adjustment = 1.0 - ((float)percent_int / 100.0); return cost * adjustment; } float __attribute__((regparm(2))) cgc_sale_70(unsigned int model_num, float cost) { unsigned int percent_int = 70; float adjustment = 1.0 - ((float)percent_int / 100.0); return cost * adjustment; } float __attribute__((regparm(2))) cgc_sale_71(unsigned int model_num, float cost) { unsigned int percent_int = 71; float adjustment = 1.0 - ((float)percent_int / 100.0); return cost * adjustment; } float __attribute__((regparm(2))) cgc_sale_72(unsigned int model_num, float cost) { unsigned int percent_int = 72; float adjustment = 1.0 - ((float)percent_int / 100.0); return cost * adjustment; } float __attribute__((regparm(2))) cgc_sale_73(unsigned int model_num, float cost) { unsigned int percent_int = 73; float adjustment = 1.0 - ((float)percent_int / 100.0); return cost * adjustment; } float __attribute__((regparm(2))) cgc_sale_74(unsigned int model_num, float cost) { unsigned int percent_int = 74; float adjustment = 1.0 - ((float)percent_int / 100.0); return cost * adjustment; } float __attribute__((regparm(2))) cgc_sale_75(unsigned int model_num, float cost) { unsigned int percent_int = 75; float adjustment = 1.0 - ((float)percent_int / 100.0); return cost * adjustment; } float __attribute__((regparm(2))) cgc_sale_76(unsigned int model_num, float cost) { unsigned int percent_int = 76; float adjustment = 1.0 - ((float)percent_int / 100.0); return cost * adjustment; } float __attribute__((regparm(2))) cgc_sale_77(unsigned int model_num, float cost) { unsigned int percent_int = 77; float adjustment = 1.0 - ((float)percent_int / 100.0); return cost * adjustment; } float __attribute__((regparm(2))) cgc_sale_78(unsigned int model_num, float cost) { unsigned int percent_int = 78; float adjustment = 1.0 - ((float)percent_int / 100.0); return cost * adjustment; } float __attribute__((regparm(2))) cgc_sale_79(unsigned int model_num, float cost) { unsigned int percent_int = 79; float adjustment = 1.0 - ((float)percent_int / 100.0); return cost * adjustment; } float __attribute__((regparm(2))) cgc_sale_80(unsigned int model_num, float cost) { unsigned int percent_int = 80; float adjustment = 1.0 - ((float)percent_int / 100.0); return cost * adjustment; } float __attribute__((regparm(2))) cgc_sale_81(unsigned int model_num, float cost) { unsigned int percent_int = 81; float adjustment = 1.0 - ((float)percent_int / 100.0); return cost * adjustment; } float __attribute__((regparm(2))) cgc_sale_82(unsigned int model_num, float cost) { unsigned int percent_int = 82; float adjustment = 1.0 - ((float)percent_int / 100.0); return cost * adjustment; } float __attribute__((regparm(2))) cgc_sale_83(unsigned int model_num, float cost) { unsigned int percent_int = 83; float adjustment = 1.0 - ((float)percent_int / 100.0); return cost * adjustment; } float __attribute__((regparm(2))) cgc_sale_84(unsigned int model_num, float cost) { unsigned int percent_int = 84; float adjustment = 1.0 - ((float)percent_int / 100.0); return cost * adjustment; } float __attribute__((regparm(2))) cgc_sale_85(unsigned int model_num, float cost) { unsigned int percent_int = 85; float adjustment = 1.0 - ((float)percent_int / 100.0); return cost * adjustment; } float __attribute__((regparm(2))) cgc_sale_86(unsigned int model_num, float cost) { unsigned int percent_int = 86; float adjustment = 1.0 - ((float)percent_int / 100.0); return cost * adjustment; } float __attribute__((regparm(2))) cgc_sale_87(unsigned int model_num, float cost) { unsigned int percent_int = 87; float adjustment = 1.0 - ((float)percent_int / 100.0); return cost * adjustment; } float __attribute__((regparm(2))) cgc_sale_88(unsigned int model_num, float cost) { unsigned int percent_int = 88; float adjustment = 1.0 - ((float)percent_int / 100.0); return cost * adjustment; } float __attribute__((regparm(2))) cgc_sale_89(unsigned int model_num, float cost) { unsigned int percent_int = 89; float adjustment = 1.0 - ((float)percent_int / 100.0); return cost * adjustment; } float __attribute__((regparm(2))) cgc_sale_90(unsigned int model_num, float cost) { unsigned int percent_int = 90; float adjustment = 1.0 - ((float)percent_int / 100.0); return cost * adjustment; } float __attribute__((regparm(2))) cgc_sale_91(unsigned int model_num, float cost) { unsigned int percent_int = 91; float adjustment = 1.0 - ((float)percent_int / 100.0); return cost * adjustment; } float __attribute__((regparm(2))) cgc_sale_92(unsigned int model_num, float cost) { unsigned int percent_int = 92; float adjustment = 1.0 - ((float)percent_int / 100.0); return cost * adjustment; } float __attribute__((regparm(2))) cgc_sale_93(unsigned int model_num, float cost) { unsigned int percent_int = 93; float adjustment = 1.0 - ((float)percent_int / 100.0); return cost * adjustment; } float __attribute__((regparm(2))) cgc_sale_94(unsigned int model_num, float cost) { unsigned int percent_int = 94; float adjustment = 1.0 - ((float)percent_int / 100.0); return cost * adjustment; } float __attribute__((regparm(2))) cgc_sale_95(unsigned int model_num, float cost) { unsigned int percent_int = 95; float adjustment = 1.0 - ((float)percent_int / 100.0); return cost * adjustment; } float __attribute__((regparm(2))) cgc_sale_96(unsigned int model_num, float cost) { unsigned int percent_int = 96; float adjustment = 1.0 - ((float)percent_int / 100.0); return cost * adjustment; } float __attribute__((regparm(2))) cgc_sale_97(unsigned int model_num, float cost) { unsigned int percent_int = 97; float adjustment = 1.0 - ((float)percent_int / 100.0); return cost * adjustment; } float __attribute__((regparm(2))) cgc_sale_98(unsigned int model_num, float cost) { unsigned int percent_int = 98; float adjustment = 1.0 - ((float)percent_int / 100.0); return cost * adjustment; } float __attribute__((regparm(2))) cgc_sale_99(unsigned int model_num, float cost) { unsigned int percent_int = 99; float adjustment = 1.0 - ((float)percent_int / 100.0); return cost * adjustment; } float __attribute__((regparm(2))) (*onsale_fn[101])(unsigned int model_num, float cost) = { cgc_sale_0, cgc_sale_1, cgc_sale_2, cgc_sale_3, cgc_sale_4, cgc_sale_5, cgc_sale_6, cgc_sale_7, cgc_sale_8, cgc_sale_9, cgc_sale_10, cgc_sale_11, cgc_sale_12, cgc_sale_13, cgc_sale_14, cgc_sale_15, cgc_sale_16, cgc_sale_17, cgc_sale_18, cgc_sale_19, cgc_sale_20, cgc_sale_21, cgc_sale_22, cgc_sale_23, cgc_sale_24, cgc_sale_25, cgc_sale_26, cgc_sale_27, cgc_sale_28, cgc_sale_29, cgc_sale_30, cgc_sale_31, cgc_sale_32, cgc_sale_33, cgc_sale_34, cgc_sale_35, cgc_sale_36, cgc_sale_37, cgc_sale_38, cgc_sale_39, cgc_sale_40, cgc_sale_41, cgc_sale_42, cgc_sale_43, cgc_sale_44, cgc_sale_45, cgc_sale_46, cgc_sale_47, cgc_sale_48, cgc_sale_49, cgc_sale_50, cgc_sale_51, cgc_sale_52, cgc_sale_53, cgc_sale_54, cgc_sale_55, cgc_sale_56, cgc_sale_57, cgc_sale_58, cgc_sale_59, cgc_sale_60, cgc_sale_61, cgc_sale_62, cgc_sale_63, cgc_sale_64, cgc_sale_65, cgc_sale_66, cgc_sale_67, cgc_sale_68, cgc_sale_69, cgc_sale_70, cgc_sale_71, cgc_sale_72, cgc_sale_73, cgc_sale_74, cgc_sale_75, cgc_sale_76, cgc_sale_77, cgc_sale_78, cgc_sale_79, cgc_sale_80, cgc_sale_81, cgc_sale_82, cgc_sale_83, cgc_sale_84, cgc_sale_85, cgc_sale_86, cgc_sale_87, cgc_sale_88, cgc_sale_89, cgc_sale_90, cgc_sale_91, cgc_sale_92, cgc_sale_93, cgc_sale_94, cgc_sale_95, cgc_sale_96, cgc_sale_97, cgc_sale_98, cgc_sale_99, END_MARKER };
76c0a6118e27c0ec518ba91953758108e50dd8d6
0744dcc5394cebf57ebcba343747af6871b67017
/external/grpc/src/core/lib/iomgr/udp_server.h
c1aa49f15dd7bb4ee345a64fef8b8b267c80870d
[ "MIT", "Apache-2.0" ]
permissive
Samsung/TizenRT
96abf62f1853f61fcf91ff14671a5e0c6ca48fdb
1a5c2e00a4b1bbf4c505bbf5cc6a8259e926f686
refs/heads/master
2023-08-31T08:59:33.327998
2023-08-08T06:09:20
2023-08-31T04:38:20
82,517,252
590
719
Apache-2.0
2023-09-14T06:54:49
2017-02-20T04:38:30
C
UTF-8
C
false
false
3,393
h
udp_server.h
/* * * Copyright 2015 gRPC authors. * * 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. * */ #ifndef GRPC_CORE_LIB_IOMGR_UDP_SERVER_H #define GRPC_CORE_LIB_IOMGR_UDP_SERVER_H #include "src/core/lib/iomgr/endpoint.h" #include "src/core/lib/iomgr/ev_posix.h" #include "src/core/lib/iomgr/resolve_address.h" /* Forward decl of struct grpc_server */ /* This is not typedef'ed to avoid a typedef-redefinition error */ struct grpc_server; /* Forward decl of grpc_udp_server */ typedef struct grpc_udp_server grpc_udp_server; /* Called when grpc server starts to listening on the grpc_fd. */ typedef void (*grpc_udp_server_start_cb)(grpc_fd* emfd, void* user_data); /* Called when data is available to read from the socket. * Return true if there is more data to read from fd. */ typedef bool (*grpc_udp_server_read_cb)(grpc_fd* emfd); /* Called when the socket is writeable. The given closure should be scheduled * when the socket becomes blocked next time. */ typedef void (*grpc_udp_server_write_cb)(grpc_fd* emfd, void* user_data, grpc_closure* notify_on_write_closure); /* Called when the grpc_fd is about to be orphaned (and the FD closed). */ typedef void (*grpc_udp_server_orphan_cb)(grpc_fd* emfd, grpc_closure* shutdown_fd_callback, void* user_data); /* Create a server, initially not bound to any ports */ grpc_udp_server* grpc_udp_server_create(const grpc_channel_args* args); /* Start listening to bound ports. user_data is passed to callbacks. */ void grpc_udp_server_start(grpc_udp_server* udp_server, grpc_pollset** pollsets, size_t pollset_count, void* user_data); int grpc_udp_server_get_fd(grpc_udp_server* s, unsigned port_index); /* Add a port to the server, returning port number on success, or negative on failure. The :: and 0.0.0.0 wildcard addresses are treated identically, accepting both IPv4 and IPv6 connections, but :: is the preferred style. This usually creates one socket, but possibly two on systems which support IPv6, but not dualstack sockets. */ /* TODO(ctiller): deprecate this, and make grpc_udp_server_add_ports to handle all of the multiple socket port matching logic in one place */ int grpc_udp_server_add_port(grpc_udp_server* s, const grpc_resolved_address* addr, int rcv_buf_size, int snd_buf_size, grpc_udp_server_start_cb start_cb, grpc_udp_server_read_cb read_cb, grpc_udp_server_write_cb write_cb, grpc_udp_server_orphan_cb orphan_cb); void grpc_udp_server_destroy(grpc_udp_server* server, grpc_closure* on_done); #endif /* GRPC_CORE_LIB_IOMGR_UDP_SERVER_H */
b07c496b7beccfaa6db4ea2eaa57b6aa1d710933
ad2a1d85b7c2d694ccce31b3111868704bf65d4e
/src/formats/png.c
5d97fef04eec97936461dd4493cde2b1d9b6a8a2
[ "MIT" ]
permissive
artemsen/swayimg
84bf5017fd0ba43c7da99b1ce8f3ef8aa2197686
d0a4a0ed46f01bd953536f3421f3baaa0ff27cf7
refs/heads/master
2023-08-18T05:08:42.919422
2023-08-08T05:55:20
2023-08-08T05:55:20
284,720,432
247
28
MIT
2023-07-23T05:41:14
2020-08-03T14:21:48
C
UTF-8
C
false
false
3,678
c
png.c
// SPDX-License-Identifier: MIT // PNG format decoder. // Copyright (C) 2020 Artem Senichev <artemsen@gmail.com> #include "loader.h" #include <png.h> #include <setjmp.h> #include <stdlib.h> #include <string.h> // PNG memory reader struct mem_reader { const uint8_t* data; const size_t size; size_t position; }; // PNG reader callback, see `png_rw_ptr` in png.h static void png_reader(png_structp png, png_bytep buffer, size_t size) { struct mem_reader* reader = (struct mem_reader*)png_get_io_ptr(png); if (reader && reader->position + size < reader->size) { memcpy(buffer, reader->data + reader->position, size); reader->position += size; } else { png_error(png, "No data in PNG reader"); } } // PNG loader implementation enum loader_status decode_png(struct image* ctx, const uint8_t* data, size_t size) { png_struct* png = NULL; png_info* info = NULL; png_bytep* lines = NULL; size_t width, height; png_byte color_type, bit_depth; struct image_frame* frame; struct mem_reader reader = { .data = data, .size = size, .position = 0, }; // check signature if (png_sig_cmp(data, 0, size) != 0) { return ldr_unsupported; } // create decoder png = png_create_read_struct(PNG_LIBPNG_VER_STRING, NULL, NULL, NULL); if (!png) { image_print_error(ctx, "unable to initialize png decoder"); return ldr_fmterror; } info = png_create_info_struct(png); if (!info) { image_print_error(ctx, "unable to create png object"); png_destroy_read_struct(&png, NULL, NULL); return ldr_fmterror; } // setup error handling if (setjmp(png_jmpbuf(png))) { png_destroy_read_struct(&png, &info, NULL); free(lines); image_free_frames(ctx); image_print_error(ctx, "failed to decode png"); return ldr_fmterror; } // get general image info png_set_read_fn(png, &reader, &png_reader); png_read_info(png, info); width = png_get_image_width(png, info); height = png_get_image_height(png, info); color_type = png_get_color_type(png, info); bit_depth = png_get_bit_depth(png, info); // setup decoder if (color_type == PNG_COLOR_TYPE_PALETTE) { png_set_palette_to_rgb(png); } if (color_type == PNG_COLOR_TYPE_GRAY || color_type == PNG_COLOR_TYPE_GRAY_ALPHA) { png_set_gray_to_rgb(png); if (bit_depth < 8) { png_set_expand_gray_1_2_4_to_8(png); } } if (png_get_valid(png, info, PNG_INFO_tRNS)) { png_set_tRNS_to_alpha(png); } if (bit_depth == 16) { png_set_strip_16(png); } png_set_filler(png, 0xff, PNG_FILLER_AFTER); png_set_packing(png); png_set_packswap(png); png_set_bgr(png); frame = image_create_frame(ctx, width, height); if (!frame) { png_destroy_read_struct(&png, &info, NULL); return ldr_fmterror; } // prepare list of pointers to image lines lines = malloc(height * sizeof(png_bytep)); if (!lines) { image_print_error(ctx, "not enough memory"); png_destroy_read_struct(&png, &info, NULL); image_free_frames(ctx); return ldr_fmterror; } for (size_t i = 0; i < height; ++i) { lines[i] = (png_bytep)&frame->data[frame->width * i]; } // read image png_read_image(png, lines); image_set_format(ctx, "PNG %dbit", bit_depth * 4); ctx->alpha = true; // free resources png_destroy_read_struct(&png, &info, NULL); free(lines); return ldr_success; }
637a6578e8efcac36e197ef20771aac6214f4969
dca770e1b56cf36ef1922a4293298a3e8e155a26
/examples/espidf-coap-server/components/libcoap/ext/tinydtls/global.h
87153df3969a3e4e165acef7c13e01fa61ee24f4
[ "Apache-2.0", "BSD-3-Clause", "OpenSSL", "LGPL-2.1-only", "LicenseRef-scancode-public-domain", "BSD-1-Clause", "BSD-2-Clause", "EPL-1.0", "MIT" ]
permissive
platformio/platform-espressif32
45c60ae0973a62ca7c4bc17f22a95c569528a905
ceafaa7c176c18875538886b35e7291b2635f64a
refs/heads/develop
2023-08-31T02:51:07.482741
2023-08-30T14:32:34
2023-08-30T14:32:34
71,603,115
787
576
Apache-2.0
2023-09-11T13:27:05
2016-10-21T23:00:55
Python
UTF-8
C
false
false
4,183
h
global.h
/******************************************************************************* * * Copyright (c) 2011, 2012, 2013, 2014, 2015 Olaf Bergmann (TZI) and others. * All rights reserved. This program and the accompanying materials * are made available under the terms of the Eclipse Public License v1.0 * and Eclipse Distribution License v. 1.0 which accompanies this distribution. * * The Eclipse Public License is available at http://www.eclipse.org/legal/epl-v10.html * and the Eclipse Distribution License is available at * http://www.eclipse.org/org/documents/edl-v10.php. * * Contributors: * Olaf Bergmann - initial API and implementation * Hauke Mehrtens - memory optimization, ECC integration * *******************************************************************************/ #ifndef _DTLS_GLOBAL_H_ #define _DTLS_GLOBAL_H_ #include <stdlib.h> #include <sys/types.h> #include "tinydtls.h" #ifndef DTLSv12 /* The current version of tinyDTLS supports DTLSv1.2 only. */ #define DTLSv12 1 #endif #ifndef WITH_SHA256 /* The current version of tinyDTLS supports DTLSv1.2 with SHA256 PRF only. */ #define WITH_SHA256 1 #endif /* Define our own types as at least uint32_t does not work on my amd64. */ typedef unsigned char uint8; typedef unsigned char uint16[2]; typedef unsigned char uint24[3]; typedef unsigned char uint32[4]; typedef unsigned char uint48[6]; #ifndef DTLS_MAX_BUF /** Maximum size of DTLS message. When Peers are sending bigger messages this causes problems. Californium with ECDSA needs at least 220 */ #if (defined(WITH_CONTIKI) || defined(RIOT_VERSION)) #ifdef DTLS_ECC #define DTLS_MAX_BUF 200 #else /* DTLS_ECC */ #define DTLS_MAX_BUF 120 #endif /* DTLS_ECC */ #else /* WITH_CONTIKI */ #define DTLS_MAX_BUF 1400 #endif /* WITH_CONTIKI || RIOT_VERSION */ #endif #ifndef DTLS_DEFAULT_MAX_RETRANSMIT /** Number of message retransmissions. */ #define DTLS_DEFAULT_MAX_RETRANSMIT 7 #endif /** Known cipher suites.*/ typedef enum { TLS_NULL_WITH_NULL_NULL = 0x0000, /**< NULL cipher */ TLS_PSK_WITH_AES_128_CCM_8 = 0xC0A8, /**< see RFC 6655 */ TLS_ECDHE_ECDSA_WITH_AES_128_CCM_8 = 0xC0AE /**< see RFC 7251 */ } dtls_cipher_t; /** Known compression suites.*/ typedef enum { TLS_COMPRESSION_NULL = 0x0000 /* NULL compression */ } dtls_compression_t; #define TLS_EXT_ELLIPTIC_CURVES 10 /* see RFC 4492 */ #define TLS_EXT_EC_POINT_FORMATS 11 /* see RFC 4492 */ #define TLS_EXT_SIG_HASH_ALGO 13 /* see RFC 5246 */ #define TLS_EXT_CLIENT_CERTIFICATE_TYPE 19 /* see RFC 7250 */ #define TLS_EXT_SERVER_CERTIFICATE_TYPE 20 /* see RFC 7250 */ #define TLS_EXT_ENCRYPT_THEN_MAC 22 /* see RFC 7366 */ #define TLS_EXT_EXTENDED_MASTER_SECRET 23 /* see RFC 7627 */ #define TLS_CERT_TYPE_RAW_PUBLIC_KEY 2 /* see RFC 7250 */ #define TLS_EXT_ELLIPTIC_CURVES_SECP256R1 23 /* see RFC 4492 */ #define TLS_EXT_EC_POINT_FORMATS_UNCOMPRESSED 0 /* see RFC 4492 */ #define TLS_EC_CURVE_TYPE_NAMED_CURVE 3 /* see RFC 4492 */ #define TLS_CLIENT_CERTIFICATE_TYPE_ECDSA_SIGN 64 /* see RFC 4492 */ #define TLS_EXT_SIG_HASH_ALGO_SHA256 4 /* see RFC 5246 */ #define TLS_EXT_SIG_HASH_ALGO_ECDSA 3 /* see RFC 5246 */ /** * XORs \p n bytes byte-by-byte starting at \p y to the memory area * starting at \p x. */ static inline void memxor(unsigned char *x, const unsigned char *y, size_t n) { while(n--) { *x ^= *y; x++; y++; } } /** * Compares \p len bytes from @p a with @p b in constant time. This * functions always traverses the entire length to prevent timing * attacks. * * \param a Byte sequence to compare * \param b Byte sequence to compare * \param len Number of bytes to compare. * \return \c 1 if \p a and \p b are equal, \c 0 otherwise. */ static inline int equals(unsigned char *a, unsigned char *b, size_t len) { int result = 1; while (len--) { result &= (*a++ == *b++); } return result; } #ifdef HAVE_FLS #define dtls_fls(i) fls(i) #else static inline int dtls_fls(unsigned int i) { int n; for (n = 0; i; n++) i >>= 1; return n; } #endif /* HAVE_FLS */ #undef uthash_fatal #define uthash_fatal(msg) return(-1) /* fatal error in uthash */ #endif /* _DTLS_GLOBAL_H_ */
52b8ece9f9bda06354a050ed88f80721c06647df
7eaf54a78c9e2117247cb2ab6d3a0c20719ba700
/SOFTWARE/A64-TERES/linux-a64/arch/sh/kernel/cpu/sh2a/clock-sh7203.c
529f719b6e33541e078e97d49b7637cef3219678
[ "Linux-syscall-note", "GPL-2.0-only", "GPL-1.0-or-later", "LicenseRef-scancode-free-unknown", "Apache-2.0" ]
permissive
OLIMEX/DIY-LAPTOP
ae82f4ee79c641d9aee444db9a75f3f6709afa92
a3fafd1309135650bab27f5eafc0c32bc3ca74ee
refs/heads/rel3
2023-08-04T01:54:19.483792
2023-04-03T07:18:12
2023-04-03T07:18:12
80,094,055
507
92
Apache-2.0
2023-04-03T07:05:59
2017-01-26T07:25:50
C
UTF-8
C
false
false
1,895
c
clock-sh7203.c
/* * arch/sh/kernel/cpu/sh2a/clock-sh7203.c * * SH7203 support for the clock framework * * Copyright (C) 2007 Kieran Bingham (MPC-Data Ltd) * * Based on clock-sh7263.c * Copyright (C) 2006 Yoshinori Sato * * Based on clock-sh4.c * Copyright (C) 2005 Paul Mundt * * This file is subject to the terms and conditions of the GNU General Public * License. See the file "COPYING" in the main directory of this archive * for more details. */ #include <linux/init.h> #include <linux/kernel.h> #include <asm/clock.h> #include <asm/freq.h> #include <asm/io.h> static const int pll1rate[]={8,12,16,0}; static const int pfc_divisors[]={1,2,3,4,6,8,12}; #define ifc_divisors pfc_divisors static unsigned int pll2_mult; static void master_clk_init(struct clk *clk) { clk->rate *= pll1rate[(__raw_readw(FREQCR) >> 8) & 0x0003] * pll2_mult; } static struct sh_clk_ops sh7203_master_clk_ops = { .init = master_clk_init, }; static unsigned long module_clk_recalc(struct clk *clk) { int idx = (__raw_readw(FREQCR) & 0x0007); return clk->parent->rate / pfc_divisors[idx]; } static struct sh_clk_ops sh7203_module_clk_ops = { .recalc = module_clk_recalc, }; static unsigned long bus_clk_recalc(struct clk *clk) { int idx = (__raw_readw(FREQCR) & 0x0007); return clk->parent->rate / pfc_divisors[idx-2]; } static struct sh_clk_ops sh7203_bus_clk_ops = { .recalc = bus_clk_recalc, }; static struct sh_clk_ops sh7203_cpu_clk_ops = { .recalc = followparent_recalc, }; static struct sh_clk_ops *sh7203_clk_ops[] = { &sh7203_master_clk_ops, &sh7203_module_clk_ops, &sh7203_bus_clk_ops, &sh7203_cpu_clk_ops, }; void __init arch_init_clk_ops(struct sh_clk_ops **ops, int idx) { if (test_mode_pin(MODE_PIN1)) pll2_mult = 4; else if (test_mode_pin(MODE_PIN0)) pll2_mult = 2; else pll2_mult = 1; if (idx < ARRAY_SIZE(sh7203_clk_ops)) *ops = sh7203_clk_ops[idx]; }
d9938c6d9766db142ac80bb318e75af0bc3e5137
e8b04bef9aa1ac8e2c109dd315f133c8f4d28ae6
/tests/api/controllers/emitter_receiver_serial/emitter_receiver_serial.c
a6ef2bf8d2f6de1bc5ff5ccdb06778d585b65619
[ "Apache-2.0" ]
permissive
cyberbotics/webots
f075dacf4067e8dcebbfd89e8690df8525f6d745
8aba6eaae76989facf3442305c8089d3cc366bcf
refs/heads/master
2023-08-31T09:41:13.205940
2023-08-18T10:48:30
2023-08-18T10:48:30
156,228,018
2,495
1,525
Apache-2.0
2023-08-28T16:30:33
2018-11-05T14:09:10
C++
UTF-8
C
false
false
29,072
c
emitter_receiver_serial.c
/* * Description: Test Emitters and Receivers with serial transmission type. * This file contains some tests of the reception of messages: * - disabled / ensabled receivers * - different channels, emitter/receiver broadcast * - multiple emitters/receivers * - send and receive on the same robot * - reduced emitter/receiver buffer size * - reduced emitter range */ #include <webots/emitter.h> #include <webots/receiver.h> #include <webots/robot.h> #include "../../../lib/ts_assertion.h" #include "../../../lib/ts_utils.h" #define TIME_STEP 32 int main(int argc, char **argv) { ts_setup(argv[1]); WbDeviceTag communication = 0, receiver0 = 0; const char *buffer; const double *dbuffer; const int *ibuffer; int queueLength, samplingPeriod, dataSize, bufferSize, channel; double signalStrength, range; int robotID = -1; // channels const int channel1 = 1; const int channel2 = 7; const int channel3 = 24; const int channelAll = -1; // messages const char *msgString1 = "Hello!"; const char *msgString2 = "Do you received the message?"; const char *msgString3 = "A very long message that should be larger than the buffer size and cause a buffer overflow if not handled properly."; double *msgDouble4 = (double *)malloc(4 * (sizeof(double))); msgDouble4[0] = 9.67; msgDouble4[1] = 8.75; msgDouble4[2] = 0.00; msgDouble4[3] = 1.61; int *msgInt5 = (int *)malloc(2 * (sizeof(int))); msgInt5[0] = 2; msgInt5[1] = 33; if (strcmp(wb_robot_get_name(), "robot0") == 0) { communication = wb_robot_get_device("emitter0"); receiver0 = wb_robot_get_device("receiver0"); wb_emitter_set_channel(communication, channel1); robotID = 0; } else if (strcmp(wb_robot_get_name(), "robot1") == 0) { communication = wb_robot_get_device("emitter1"); wb_emitter_set_channel(communication, channel2); robotID = 1; } else if (strcmp(wb_robot_get_name(), "robot2") == 0) { communication = wb_robot_get_device("receiver2"); wb_receiver_set_channel(communication, channel1); robotID = 2; } else if (strcmp(wb_robot_get_name(), "robot3") == 0) { communication = wb_robot_get_device("receiver3"); wb_receiver_set_channel(communication, channel3); robotID = 3; } wb_robot_step(TIME_STEP); // CASE 1: Receivers not enabled // e0: channel1, e1: channel2, r0: channelALL (disabled), r2: channel1 (disabled), r3: channel3 (disabled) // communication: switch (robotID) { case 0: case 1: wb_emitter_send(communication, msgString1, strlen(msgString1) + 1); wb_robot_step(TIME_STEP); wb_robot_step(TIME_STEP); break; case 2: case 3: wb_robot_step(TIME_STEP); wb_robot_step(TIME_STEP); queueLength = wb_receiver_get_queue_length(communication); ts_assert_int_equal(queueLength, 0, "Case 1 - Receiver \"receiver%d\" should not receive %d packets not %d packets when disabled", robotID, 0, queueLength); wb_receiver_enable(communication, TIME_STEP); queueLength = wb_receiver_get_queue_length(communication); ts_assert_int_equal( queueLength, 0, "Case 1 - Receiver \"receiver%d\" should not receive %d packets not %d packets before the step after it is enabled", robotID, 0, queueLength); break; default: break; } wb_robot_step(TIME_STEP); // CASE 2: Receivers enabled // e0: channel1, e1: channel2, r0: channelALL (disabled), r2: channel1, r3: channel3 // communication: e0 -> r2, msgString1 switch (robotID) { case 0: wb_emitter_send(communication, msgString1, strlen(msgString1) + 1); wb_robot_step(TIME_STEP); wb_robot_step(TIME_STEP); break; case 1: wb_emitter_send(communication, msgString2, strlen(msgString2) + 1); wb_robot_step(TIME_STEP); wb_robot_step(TIME_STEP); break; case 2: wb_robot_step(TIME_STEP); wb_robot_step(TIME_STEP); queueLength = wb_receiver_get_queue_length(communication); ts_assert_int_equal(queueLength, 1, "Case 2 - Receiver \"receiver%d\" should receive 1 packet not %d packets", robotID - 2, queueLength); // check packet content buffer = wb_receiver_get_data(communication); ts_assert_string_equal(buffer, msgString1, "Case 2 - Receiver \"receiver%d\" should receive packet contaning \"%c\" not \"%c\"", msgString1, buffer); wb_receiver_next_packet(communication); break; case 3: wb_robot_step(TIME_STEP); wb_robot_step(TIME_STEP); queueLength = wb_receiver_get_queue_length(communication); ts_assert_int_equal(queueLength, 0, "Case 2 - Receiver \"receiver%d\" should receive 0 packet not %d packets", robotID - 2, queueLength); wb_receiver_set_channel(communication, channel2); break; default: break; } wb_robot_step(TIME_STEP); // CASE 3: Multiple messages sent by an emitter and data size checks // e0: channel1, e1: channel2, r0: channelALL (disabled), r2: channel1, r3: channel2 // communication: e0 -> r2, msgString1 // e0 -> r2, msgInt5 // e1 -> r3, msgString2 switch (robotID) { case 0: wb_emitter_send(communication, msgString1, strlen(msgString1) + 1); wb_emitter_send(communication, msgInt5, 2 * sizeof(int)); wb_robot_step(TIME_STEP); wb_robot_step(TIME_STEP); break; case 1: wb_emitter_send(communication, msgString3, strlen(msgString3) + 1); wb_robot_step(TIME_STEP); wb_robot_step(TIME_STEP); break; case 2: wb_robot_step(TIME_STEP); wb_robot_step(TIME_STEP); queueLength = wb_receiver_get_queue_length(communication); ts_assert_int_equal(queueLength, 2, "Case 3 - Receiver \"receiver%d\" should receive %d packets not %d packets", robotID, 2, queueLength); // check packets content buffer = wb_receiver_get_data(communication); dataSize = wb_receiver_get_data_size(communication); ts_assert_boolean_equal(dataSize == (strlen(msgString1) + 1), "Case 3 - Receiver \"receiver%d\" should receive a first packet with size %d not %d", robotID, (strlen(msgString1) + 1), dataSize); ts_assert_string_equal(buffer, msgString1, "Case 3 - Receiver \"receiver%d\" should receive a first packet contaning \"%c\" not \"%c\"", robotID, msgString1, buffer); wb_receiver_next_packet(communication); dataSize = wb_receiver_get_data_size(communication); ibuffer = (const int *)wb_receiver_get_data(communication); ts_assert_boolean_equal(dataSize == (2 * sizeof(int)), "Case 3 - Receiver \"receiver%d\" should receive a second packet with size %d not %d", robotID, 2 * sizeof(int), dataSize); ts_assert_boolean_equal(ibuffer[0] == msgInt5[0] && ibuffer[1] == msgInt5[1], "Case 3 - Receiver \"receiver%d\" should receive a second packet contaning [%d, %d] not [%d, %d]", robotID, msgInt5[0], msgInt5[1], ibuffer[0], ibuffer[1]); wb_receiver_next_packet(communication); break; case 3: wb_robot_step(TIME_STEP); wb_robot_step(TIME_STEP); queueLength = wb_receiver_get_queue_length(communication); ts_assert_int_equal(queueLength, 1, "Case 3 - Receiver \"receiver%d\" should receive %d packets not %d packets", robotID, 1, queueLength); // check packet content buffer = wb_receiver_get_data(communication); dataSize = wb_receiver_get_data_size(communication); ts_assert_boolean_equal(dataSize == (strlen(msgString3) + 1), "Case 3 - Receiver \"receiver%d\" should receive packet with size %d not %d", robotID, (strlen(msgString3) + 1), dataSize); ts_assert_string_equal(buffer, msgString3, "Case 3 - Receiver \"receiver%d\" should receive packet contaning \"%c\" not \"%c\"", robotID, msgString3, buffer); wb_receiver_next_packet(communication); wb_receiver_set_channel(communication, channel1); break; default: break; } wb_robot_step(TIME_STEP); // CASE 4: Multiple messages sent by an emitter to multiple receivers and get/set channel check // e0: channel1, e1: channel2, r0: channelALL (disabled), r2: channel1, r3: channel1 // communication: e0 -> r2, msgString1 // e0 -> r2, msgDouble5 // e0 -> r3, msgString1 // e0 -> r3, msgDouble5 switch (robotID) { case 0: wb_emitter_send(communication, msgString1, strlen(msgString1) + 1); wb_emitter_send(communication, msgDouble4, 4 * sizeof(double)); channel = wb_emitter_get_channel(communication); ts_assert_boolean_equal(channel == channel1, "Case 4 - Emitter \"emiter%d\" should be set to channel %d not %d", robotID, channel1, channel); wb_emitter_set_channel(communication, channel3); channel = wb_emitter_get_channel(communication); ts_assert_boolean_equal(channel == channel3, "Case 4 - Emitter \"emitter%d\" should be set to channel %d not %d", robotID, channel3, channel); wb_robot_step(TIME_STEP); wb_robot_step(TIME_STEP); break; case 1: wb_emitter_send(communication, msgString2, strlen(msgString2) + 1); wb_emitter_set_channel(communication, channel3); wb_robot_step(TIME_STEP); wb_robot_step(TIME_STEP); break; case 2: case 3: wb_robot_step(TIME_STEP); wb_robot_step(TIME_STEP); queueLength = wb_receiver_get_queue_length(communication); ts_assert_int_equal(queueLength, 2, "Case 4 - Receiver \"receiver%d\" should receive %d packets not %d packets", robotID, 2, queueLength); // check packets content buffer = wb_receiver_get_data(communication); ts_assert_string_equal(buffer, msgString1, "Case 4 - Receiver \"receiver%d\" should receive a first packet contaning \"%c\" not \"%c\"", robotID, msgString1, buffer); wb_receiver_next_packet(communication); dbuffer = (double *)wb_receiver_get_data(communication); ts_assert_doubles_in_delta( 4, dbuffer, msgDouble4, 0.001, "Case 4 - Receiver \"receiver%d\" should receive a second packet contaning [%f, %f, %f, %f] not [%f, %f, %f, %f]", robotID, msgDouble4[0], msgDouble4[1], msgDouble4[2], msgDouble4[3], dbuffer[0], dbuffer[1], dbuffer[2], dbuffer[3]); wb_receiver_next_packet(communication); if (robotID == 3) { channel = wb_receiver_get_channel(communication); ts_assert_boolean_equal(channel == channel1, "Case 4 - Receiver \"receiver%d\" should be set to channel %d not %d before changing it", robotID, channel1, channel); wb_receiver_set_channel(communication, channel3); channel = wb_receiver_get_channel(communication); ts_assert_boolean_equal(channel == channel3, "Case 4 - Receiver \"receiver%d\" should be set to channel %d not %d after changing it", robotID, channel3, channel); } else { channel = wb_receiver_get_channel(communication); ts_assert_boolean_equal(channel == channel1, "Case 4 - Receiver \"receiver%d\" should be set to channel %d not %d", robotID, channel1, channel); } break; default: break; } wb_robot_step(TIME_STEP); // CASE 5: Multiple packets sent to a receiver by multiple emitters // e0: channel3, e1: channel3, r0: channelALL (disabled), r2: channel1, r3: channel3 // communication: e0 -> r3, msgString1 // e1 -> r3, msgString2 // e1 -> r3, msgString3 switch (robotID) { case 0: wb_emitter_send(communication, msgString1, strlen(msgString1) + 1); wb_robot_step(TIME_STEP); wb_robot_step(TIME_STEP); wb_robot_step(TIME_STEP); break; case 1: wb_robot_step(TIME_STEP); wb_emitter_send(communication, msgString2, strlen(msgString2) + 1); wb_emitter_send(communication, msgString3, strlen(msgString3) + 1); wb_robot_step(TIME_STEP); wb_robot_step(TIME_STEP); break; case 2: wb_robot_step(TIME_STEP); wb_robot_step(TIME_STEP); wb_robot_step(TIME_STEP); queueLength = wb_receiver_get_queue_length(communication); ts_assert_int_equal(queueLength, 0, "Case 5 - Receiver \"receiver%d\" should receive %d packets not %d packets", robotID, 0, queueLength); break; case 3: wb_robot_step(TIME_STEP); wb_robot_step(TIME_STEP); wb_robot_step(TIME_STEP); queueLength = wb_receiver_get_queue_length(communication); ts_assert_int_equal(queueLength, 2, "Case 5 - Receiver \"receiver%d\" should receive %d packets not %d packets", robotID, 2, queueLength); // check packets content buffer = wb_receiver_get_data(communication); ts_assert_string_equal(buffer, msgString1, "Case 5 - Receiver \"receiver%d\" should receive a first packet contaning \"%c\" not \"%c\"", robotID, msgString1, buffer); wb_receiver_next_packet(communication); buffer = wb_receiver_get_data(communication); ts_assert_string_equal(buffer, msgString2, "Case 5 - Receiver \"receiver%d\" should receive a second packet contaning \"%c\" not \"%c\"", robotID, msgString2, buffer); wb_receiver_next_packet(communication); // 3. message was too big and the buffer does not have enough space -> destroyed break; default: break; } wb_robot_step(TIME_STEP); // CASE 6: Emitter broadcast and check signal strength and emitter direction // e0: channelALL, e1: channel3, r0: channelALL (disabled), r2: channel1, r3: channel3 // communication: e0 -> r2, msgString1 // e0 -> r3, msgString1 // e1 -> r3, msgString2 switch (robotID) { case 0: wb_emitter_set_channel(communication, channelAll); wb_emitter_send(communication, msgString1, strlen(msgString1) + 1); wb_robot_step(TIME_STEP); wb_robot_step(TIME_STEP); wb_robot_step(TIME_STEP); break; case 1: wb_robot_step(TIME_STEP); wb_emitter_send(communication, msgString2, strlen(msgString2) + 1); wb_robot_step(TIME_STEP); wb_robot_step(TIME_STEP); break; case 2: { wb_robot_step(TIME_STEP); wb_robot_step(TIME_STEP); wb_robot_step(TIME_STEP); queueLength = wb_receiver_get_queue_length(communication); ts_assert_int_equal(queueLength, 1, "Case 6 - Receiver \"receiver%d\" should receive %d packets not %d packets", robotID, 1, queueLength); // check packet content buffer = wb_receiver_get_data(communication); ts_assert_string_equal(buffer, msgString1, "Case 6 - Receiver \"receiver%d\" should receive packet contaning \"%c\" not \"%c\"", robotID, msgString1, buffer); // check emitter direction dbuffer = wb_receiver_get_emitter_direction(communication); const double expected[3] = {-0.7071, 0.0, -0.7071}; ts_assert_doubles_in_delta( 3, dbuffer, expected, 0.0001, "Case 6 - Receiver \"receiver%d\" should receive packet from the emitter in direction [%f, %f, %f] not [%f, %f, %f]", robotID, expected[0], expected[1], expected[2], dbuffer[0], dbuffer[1], dbuffer[2]); // check signal strength signalStrength = wb_receiver_get_signal_strength(communication); ts_assert_double_in_delta(signalStrength, 1.3889, 0.0001, "Case 6 - Receiver \"receiver%d\" should receive packet with signal strength %f not %f", robotID, 1.3889, signalStrength); wb_receiver_next_packet(communication); wb_receiver_set_channel(communication, channelAll); break; } case 3: { wb_robot_step(TIME_STEP); wb_robot_step(TIME_STEP); wb_robot_step(TIME_STEP); queueLength = wb_receiver_get_queue_length(communication); ts_assert_int_equal(queueLength, 2, "Case 6 - Receiver \"receiver%d\" should receive %d packets not %d packets", robotID, 2, queueLength); // check packets content buffer = wb_receiver_get_data(communication); ts_assert_string_equal(buffer, msgString1, "Case 6 - Receiver \"receiver%d\" should receive a first packet contaning \"%c\" not \"%c\"", robotID, msgString1, buffer); // check emitter direction dbuffer = wb_receiver_get_emitter_direction(communication); const double expected[3] = {-1.0, 0.0, 0.0}; ts_assert_doubles_in_delta(3, dbuffer, expected, 0.0001, "Case 6 - Receiver \"receiver%d\" should receive a first packet from the emitter in direction " "[%f, %f, %f] not [%f, %f, %f]", robotID, expected[0], expected[1], expected[2], dbuffer[0], dbuffer[1], dbuffer[2]); // check signal strength signalStrength = wb_receiver_get_signal_strength(communication); ts_assert_double_in_delta(signalStrength, 2.7778, 0.0001, "Case 6 - Receiver \"receiver%d\" should receive packet with signal strength %f not %f", robotID, 2.7778, signalStrength); wb_receiver_next_packet(communication); // check packets content buffer = wb_receiver_get_data(communication); ts_assert_string_equal(buffer, msgString2, "Case 6 - Receiver \"receiver%d\" should receive a second packet contaning \"%c\" not \"%c\"", robotID, msgString2, buffer); // check emitter direction dbuffer = wb_receiver_get_emitter_direction(communication); const double expected1[3] = {-0.7071, 0.0, +0.7071}; ts_assert_doubles_in_delta(3, dbuffer, expected1, 0.0001, "Case 6 - Receiver \"receiver%d\" should receive a second packet from the emitter in " "direction [%f, %f, %f] not [%f, %f, %f]", robotID, expected1[0], expected1[1], expected1[2], dbuffer[0], dbuffer[1], dbuffer[2]); // check signal strength signalStrength = wb_receiver_get_signal_strength(communication); ts_assert_double_in_delta(signalStrength, 1.3889, 0.0001, "Case 6 - Receiver \"receiver%d\" should receive packet with signal strength %f not %f", robotID, 1.3889, signalStrength); wb_receiver_next_packet(communication); wb_receiver_disable(communication); break; } default: break; } wb_robot_step(TIME_STEP); // CASE 7: Disable receiver and check sending and receiving on the same robot // e0: channelALL, e1: channel3, r0: channelALL, r2: channelALL, r3: channel3 (disabled) // communication: e0 -> r2, msgString1 // e1 -> r2, msgString2 // e1 -> r0, msgString2 switch (robotID) { case 0: wb_receiver_enable(receiver0, TIME_STEP); wb_emitter_send(communication, msgString1, strlen(msgString1) + 1); wb_robot_step(TIME_STEP); wb_robot_step(TIME_STEP); wb_robot_step(TIME_STEP); queueLength = wb_receiver_get_queue_length(receiver0); // Not possible to send and receive data from the same robot ts_assert_int_equal(queueLength, 1, "Case 7 - Receiver \"receiver%d\" should receive %d packets not %d packets", robotID, 1, queueLength); buffer = wb_receiver_get_data(receiver0); ts_assert_string_equal(buffer, msgString2, "Case 7 - Receiver \"receiver%d\" should receive packet contaning \"%c\" not \"%c\"", robotID, msgString2, buffer); wb_receiver_next_packet(receiver0); samplingPeriod = wb_receiver_get_sampling_period(receiver0); ts_assert_int_equal(samplingPeriod, TIME_STEP, "Case 7 - Receiver \"receiver%d\" should have a sampling period %d not %d when enabled", robotID, TIME_STEP, samplingPeriod); wb_receiver_disable(receiver0); break; case 1: wb_robot_step(TIME_STEP); wb_emitter_send(communication, msgString2, strlen(msgString2) + 1); wb_robot_step(TIME_STEP); wb_robot_step(TIME_STEP); break; case 2: wb_robot_step(TIME_STEP); wb_robot_step(TIME_STEP); wb_robot_step(TIME_STEP); queueLength = wb_receiver_get_queue_length(communication); ts_assert_int_equal(queueLength, 2, "Case 7 - Receiver \"receiver%d\" should receive %d packets not %d packets", robotID, 2, queueLength); buffer = wb_receiver_get_data(communication); ts_assert_string_equal(buffer, msgString1, "Case 7 - Receiver \"receiver%d\" should receive a first packet contaning \"%c\" not \"%c\"", robotID, msgString1, buffer); wb_receiver_next_packet(communication); buffer = wb_receiver_get_data(communication); ts_assert_string_equal(buffer, msgString2, "Case 7 - Receiver \"receiver%d\" should receive a second packet contaning \"%c\" not \"%c\"", robotID, msgString2, buffer); wb_receiver_next_packet(communication); samplingPeriod = wb_receiver_get_sampling_period(communication); ts_assert_int_equal(samplingPeriod, TIME_STEP, "Case 7 - Receiver \"receiver%d\" should have a sampling period %d not %d when enabled", TIME_STEP, robotID, samplingPeriod); break; case 3: wb_robot_step(TIME_STEP); wb_robot_step(TIME_STEP); wb_robot_step(TIME_STEP); queueLength = wb_receiver_get_queue_length(communication); ts_assert_int_equal(queueLength, 0, "Case 7 - Receiver \"receiver%d\" should receive %d packet not %d packets when disabled", robotID, 0, queueLength); samplingPeriod = wb_receiver_get_sampling_period(communication); ts_assert_int_equal(samplingPeriod, 0, "Case 7 - Receiver \"receiver%d\" should have a sampling period %d not %d when disabled", robotID, 0, samplingPeriod); break; default: break; } wb_robot_step(TIME_STEP); // CASE 8: Check emitter buffer size // e0: channelALL, e1: channel3, r0: channelALL (disabled), r2: channelALL, r3: channel3 (disabled) // communication: e1 -> r2, msgString2 switch (robotID) { case 0: bufferSize = wb_emitter_get_buffer_size(communication); ts_assert_int_equal(bufferSize, 100, "Case 8 - Emitter \"emitter%d\" should have a buffer size %d not %d", robotID, 100, bufferSize); // bigger than the buffer -> not sent // wb_emitter_send(communication, msgString3, strlen(msgString3) + 1); wb_robot_step(TIME_STEP); wb_robot_step(TIME_STEP); wb_receiver_enable(receiver0, TIME_STEP); break; case 1: bufferSize = wb_emitter_get_buffer_size(communication); ts_assert_int_equal(bufferSize, -1, "Case 8 - Emitter \"emitter%d\" should have a buffer size %d not %d", robotID, 4096, bufferSize); wb_emitter_send(communication, msgString2, strlen(msgString2) + 1); wb_robot_step(TIME_STEP); wb_robot_step(TIME_STEP); break; case 2: wb_robot_step(TIME_STEP); wb_robot_step(TIME_STEP); queueLength = wb_receiver_get_queue_length(communication); ts_assert_int_equal(queueLength, 1, "Case 8 - Receiver \"receiver%d\" should receive %d packets not %d packets", robotID, 1, queueLength); buffer = wb_receiver_get_data(communication); ts_assert_string_equal(buffer, msgString2, "Case 8 - Receiver \"receiver%d\" should receive a first packet contaning \"%c\" not \"%c\"", robotID, msgString2, buffer); wb_receiver_next_packet(communication); break; case 3: wb_robot_step(TIME_STEP); wb_robot_step(TIME_STEP); queueLength = wb_receiver_get_queue_length(communication); ts_assert_int_equal(queueLength, 0, "Case 8 - Receiver \"receiver%d\" should receive %d packet not %d packets when disabled", robotID, 0, queueLength); wb_receiver_enable(communication, TIME_STEP); break; default: break; } wb_robot_step(TIME_STEP); // CASE 9: Check emitter range // e0: channelALL, e1: channel3, r0: channelALL , r2: channelALL, r3: channel3 // communication: e1 -> r0, msgString3 // e1 -> r2, msgString3 switch (robotID) { case 0: range = wb_emitter_get_range(communication); ts_assert_double_in_delta(range, -1, 0.001, "Case 9 - Emitter \"emitter%d\" should have range %d not %d", robotID, -1, range); wb_robot_step(TIME_STEP); wb_robot_step(TIME_STEP); queueLength = wb_receiver_get_queue_length(receiver0); ts_assert_int_equal(queueLength, 1, "Case 9 - Receiver \"receiver%d\" should receive %d packets not %d packets", robotID, 1, queueLength); buffer = wb_receiver_get_data(receiver0); ts_assert_string_equal(buffer, msgString2, "Case 9 - Receiver \"receiver%d\" should receive a first packet contaning \"%c\" not \"%c\"", robotID, msgString2, buffer); wb_receiver_next_packet(receiver0); break; case 1: range = wb_emitter_get_range(communication); ts_assert_double_in_delta(range, 1.3, 0.001, "Case 9 - Emitter \"emitter%d\" should have range %d not %d before changing it", robotID, 1.3, range); wb_emitter_set_range(communication, 2.5); range = wb_emitter_get_range(communication); ts_assert_double_in_delta( range, 2.0, 0.001, "Case 9 - Emitter \"emitter%d\" should have range %f not %f if setting a value greater than max range %f", robotID, 2.0, range, 2.0); wb_emitter_set_range(communication, 0.7); range = wb_emitter_get_range(communication); ts_assert_double_in_delta( range, 0.7, 0.001, "Case 9 - Emitter \"emitter%d\" should have range %f not %f after changing it", robotID, 0.7, range); wb_emitter_send(communication, msgString2, strlen(msgString2) + 1); wb_robot_step(TIME_STEP); wb_robot_step(TIME_STEP); break; case 2: wb_robot_step(TIME_STEP); wb_robot_step(TIME_STEP); queueLength = wb_receiver_get_queue_length(communication); ts_assert_int_equal(queueLength, 1, "Case 9 - Receiver \"receiver%d\" should receive %d packets not %d packets", robotID, 1, queueLength); buffer = wb_receiver_get_data(communication); ts_assert_string_equal(buffer, msgString2, "Case 9 - Receiver \"receiver%d\" should receive a first packet contaning \"%c\" not \"%c\"", robotID, msgString2, buffer); wb_receiver_next_packet(communication); break; case 3: wb_robot_step(TIME_STEP); wb_robot_step(TIME_STEP); queueLength = wb_receiver_get_queue_length(communication); ts_assert_int_equal( queueLength, 0, "Case 9 - Receiver \"receiver%d\" should receive %d packet not %d packets when distance larger that valid range", robotID, 0, queueLength); break; default: break; } wb_robot_step(robotID * TIME_STEP); // avoid collision of simultaneous success messages on stdout ts_send_success(); return EXIT_SUCCESS; }
3ab07466ada69e585327f51d3a651fb6e14246a9
fc89df5d65edcfada41a5bcc3b5c52d7b00d9d13
/components/platform_console/test/test_system.c
0cde9412b17c12d0c62438c52f1cfccfaf913b37
[]
no_license
sle118/squeezelite-esp32
b83f580b4de4a517be87ca1db8fead2223694068
149c9d8142d7a3f8679efc73985609eb6dee73a5
refs/heads/master-v4.3
2023-08-23T05:06:18.461579
2023-08-22T23:30:18
2023-08-22T23:30:18
187,874,998
698
84
null
2023-09-09T22:58:50
2019-05-21T16:25:56
C
UTF-8
C
false
false
6,622
c
test_system.c
/* test_mean.c: Implementation of a testable component. This example code is in the Public Domain (or CC0 licensed, at your option.) Unless required by applicable law or agreed to in writing, this software is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. */ #include <limits.h> #include "unity.h" #include "platform_console.h" #include "platform_esp32.h" #include "platform_config.h" #include "string.h" struct arg_lit *arglit; struct arg_int *argint; struct arg_str *argstr; struct arg_end *end; extern int is_output_gpio(struct arg_int * gpio, FILE * f, int * gpio_out, bool mandatory); extern void initialize_console(); extern esp_err_t run_command(char * line); static char *buf = NULL; static char * s_tmp_line_buf=NULL; static size_t buf_size = 0; static FILE * f; static size_t argc=1; static char ** argv=NULL; static bool config_initialized=false; void init_console(){ if(config_initialized) return; initialize_console(); config_initialized=true; } /**************************************************************************************** * */ void open_mem_stream_file(){ f = open_memstream(&buf, &buf_size); } /**************************************************************************************** * */ void close_flush_all(void * argtable, int count,bool print){ fflush (f); if(print){ printf("%s", buf); } fclose(f); free(buf); arg_freetable(argtable,count); free(argv); } /**************************************************************************************** * */ int alloc_split_command_line(char * cmdline){ argv = (char **) calloc(22, sizeof(char *)); if(!s_tmp_line_buf){ s_tmp_line_buf= calloc(strlen(cmdline), 1); } strlcpy(s_tmp_line_buf, cmdline, 22); argc = esp_console_split_argv(s_tmp_line_buf, argv,22); return 0; } /**************************************************************************************** * */ int alloc_split_parse_command_line(char * cmdline, void ** args){ alloc_split_command_line(cmdline); return arg_parse(argc, argv,args); } /**************************************************************************************** * */ TEST_CASE("Invalid GPIO detected", "[config][ui]") { char * cmdline = "test -i 55\n"; void *argtable[] = { argint = arg_int1("i","int","<gpio>","GPIO number"), end = arg_end(6) }; open_mem_stream_file(); alloc_split_parse_command_line(cmdline, &argtable); int out_val = 0; TEST_ASSERT_EQUAL_INT_MESSAGE(1,is_output_gpio(argtable[0], f, &out_val, true),"Invalid GPIO not detected"); TEST_ASSERT_EQUAL_INT_MESSAGE(-1,out_val,"GPIO Should be set to -1"); fflush (f); TEST_ASSERT_EQUAL_STRING_MESSAGE("Invalid int gpio: [55] is not a GPIO\n",buf,"Invalid GPIO message wrong"); close_flush_all(argtable,sizeof(argtable)/sizeof(argtable[0]),false); } /**************************************************************************************** * */ TEST_CASE("Input Only GPIO detected", "[config][ui]") { char * cmdline = "test -i 35\n"; void *argtable[] = { argint = arg_int1("i","int","<gpio>","GPIO number"), end = arg_end(6) }; open_mem_stream_file(); alloc_split_parse_command_line(cmdline, &argtable); int out_val = 0; TEST_ASSERT_EQUAL_INT_MESSAGE(1,is_output_gpio(argtable[0], f, &out_val, true),"Input only GPIO not detected"); TEST_ASSERT_EQUAL_INT_MESSAGE(-1,out_val,"GPIO Should be set to -1"); fflush (f); TEST_ASSERT_EQUAL_STRING_MESSAGE("Invalid int gpio: [35] has input capabilities only\n",buf,"Missing GPIO message wrong"); close_flush_all(argtable,sizeof(argtable)/sizeof(argtable[0]),false); } /**************************************************************************************** * */ TEST_CASE("Valid GPIO Processed", "[config][ui]") { char * cmdline = "test -i 33\n"; void *argtable[] = { argint = arg_int1("i","int","<gpio>","GPIO number"), end = arg_end(6) }; open_mem_stream_file(); alloc_split_parse_command_line(cmdline, &argtable); int out_val = 0; TEST_ASSERT_EQUAL_INT_MESSAGE(0,is_output_gpio(argtable[0], f, &out_val, true),"Valid GPIO not recognized"); TEST_ASSERT_EQUAL_INT_MESSAGE(33,out_val,"GPIO Should be set to 33"); fflush (f); TEST_ASSERT_EQUAL_STRING_MESSAGE("",buf,"Valid GPIO shouldn't produce a message"); close_flush_all(argtable,sizeof(argtable)/sizeof(argtable[0]),false); } /**************************************************************************************** * */ TEST_CASE("Missing mandatory GPIO detected", "[config][ui]") { char * cmdline = "test \n"; void *argtable[] = { argint = arg_int1("i","int","<gpio>","GPIO number"), end = arg_end(6) }; open_mem_stream_file(); alloc_split_parse_command_line(cmdline, &argtable); int out_val = 0; TEST_ASSERT_EQUAL_INT_MESSAGE(1,is_output_gpio(argtable[0], f, &out_val, true),"Missing GPIO not detected"); fflush (f); TEST_ASSERT_EQUAL_STRING_MESSAGE("Missing: int\n",buf,"Missing GPIO parameter message wrong"); TEST_ASSERT_EQUAL_INT_MESSAGE(-1,out_val,"GPIO Should be set to -1"); close_flush_all(argtable,sizeof(argtable)/sizeof(argtable[0]),false); } /**************************************************************************************** * */ TEST_CASE("Missing mandatory parameter detected", "[config][ui]") { char * cmdline = "test \n"; void *argtable[] = { argint = arg_int1("i","int","<gpio>","GPIO number"), end = arg_end(6) }; open_mem_stream_file(); alloc_split_parse_command_line(cmdline, &argtable); int out_val = 0; TEST_ASSERT_EQUAL_INT_MESSAGE(1,is_output_gpio(argtable[0], f, &out_val, true),"Missing parameter not detected"); fflush (f); TEST_ASSERT_EQUAL_STRING_MESSAGE("Missing: int\n",buf,"Missing parameter message wrong"); TEST_ASSERT_EQUAL_INT_MESSAGE(-1,out_val,"GPIO Should be set to -1"); close_flush_all(argtable,sizeof(argtable)/sizeof(argtable[0]),false); } /**************************************************************************************** * */ TEST_CASE("dac config command", "[config_cmd]") { config_set_value(NVS_TYPE_STR, "dac_config", ""); esp_err_t err=run_command("cfg-hw-dac\n"); char * nvs_value = config_alloc_get_str("dac_config", NULL,NULL); TEST_ASSERT_NOT_NULL(nvs_value); TEST_ASSERT_EQUAL_MESSAGE(ESP_OK,err,"Running command failed"); free(nvs_value); }
284c4b4f31df778ec9279fac3ff5ba6c26559cd1
7fcb614a59a138019b2845a6e493f9d22c44852d
/MCUME_teensy41/teensygen/mem68k.h
e9c54bdbf1087d527541823eaffe4b4ebc97a4a9
[]
no_license
Jean-MarcHarvengt/MCUME
9180feaf8195c6a0a38eba6c12733c987fa98062
fe1280985d9a86bfb2166842a56c8eec768aa666
refs/heads/master
2023-06-09T23:11:04.216374
2023-05-28T15:24:02
2023-05-28T15:24:02
203,546,040
318
43
null
2023-03-21T13:19:51
2019-08-21T08:58:23
C
UTF-8
C
false
false
508
h
mem68k.h
#ifndef _MEM68K_H_ #define _MEM68K_H_ /* Function prototypes */ unsigned int m68k_read_bus_8(unsigned int address); unsigned int m68k_read_bus_16(unsigned int address); void m68k_unused_w(unsigned int address, unsigned int value); void m68k_lockup_w_8(unsigned int address, unsigned int value); void m68k_lockup_w_16(unsigned int address, unsigned int value); unsigned int m68k_lockup_r_8(unsigned int address); unsigned int m68k_lockup_r_16(unsigned int address); #endif /* _MEM68K_H_ */
fd2bb30969862a241517fceb0ec1231beeb2318f
0affc758a64ea49ca041183dccfc8545ba77773a
/dbg.h
79bb5d72534c3741d081e415f2ce1284e5d28370
[ "BSD-3-Clause" ]
permissive
ataradov/edbg
2e63d963061d28db53da84b3844799eb019c2205
f924b26c46290a17f58740d7724265e9f9453c13
refs/heads/master
2023-04-03T03:50:15.084692
2023-03-31T00:42:25
2023-03-31T00:42:25
34,344,870
260
101
BSD-3-Clause
2022-12-20T00:01:55
2015-04-21T18:30:31
C
UTF-8
C
false
false
948
h
dbg.h
// SPDX-License-Identifier: BSD-3-Clause // Copyright (c) 2013-2022, Alex Taradov <alex@taradov.com>. All rights reserved. #ifndef _DBG_H_ #define _DBG_H_ /*- Includes ----------------------------------------------------------------*/ #include <stddef.h> #include <stdint.h> /*- Definitions -------------------------------------------------------------*/ #define DBG_MAX_EP_SIZE 1024 /*- Types -------------------------------------------------------------------*/ typedef struct { char *path; uint64_t entry_id; char *serial; char *manufacturer; char *product; int vid; int pid; } debugger_t; /*- Prototypes --------------------------------------------------------------*/ int dbg_enumerate(debugger_t *debuggers, int size); void dbg_open(debugger_t *debugger); void dbg_close(void); int dbg_get_report_size(void); int dbg_dap_cmd(uint8_t *data, int resp_size, int req_size); #endif // _DBG_H_
3b2b53798e43016c2c62b1e8f5731c903b3e02d7
99bdb3251fecee538e0630f15f6574054dfc1468
/bsp/gd32/arm/libraries/GD32F20x_Firmware_Library/GD32F20x_standard_peripheral/Include/gd32f20x_cau.h
8cf28a7c4aca506e9267322b7f47e6ddd1ace180
[ "Apache-2.0", "Zlib", "LicenseRef-scancode-proprietary-license", "MIT", "BSD-3-Clause", "X11", "BSD-4-Clause-UC", "LicenseRef-scancode-unknown-license-reference" ]
permissive
RT-Thread/rt-thread
03a7c52c2aeb1b06a544143b0e803d72f47d1ece
3602f891211904a27dcbd51e5ba72fefce7326b2
refs/heads/master
2023-09-01T04:10:20.295801
2023-08-31T16:20:55
2023-08-31T16:20:55
7,408,108
9,599
5,805
Apache-2.0
2023-09-14T13:37:26
2013-01-02T14:49:21
C
UTF-8
C
false
false
14,216
h
gd32f20x_cau.h
/*! \file gd32f20x_cau.h \brief definitions for the CAU \version 2015-07-15, V1.0.0, firmware for GD32F20x \version 2017-06-05, V2.0.0, firmware for GD32F20x \version 2018-10-31, V2.1.0, firmware for GD32F20x \version 2020-09-30, V2.2.0, firmware for GD32F20x */ /* Copyright (c) 2020, GigaDevice Semiconductor Inc. Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met: 1. Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer. 2. Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer in the documentation and/or other materials provided with the distribution. 3. Neither the name of the copyright holder nor the names of its contributors may be used to endorse or promote products derived from this software without specific prior written permission. THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ #ifndef GD32F20X_CAU_H #define GD32F20X_CAU_H #include "gd32f20x.h" /* CAU definitions */ #define CAU CAU_BASE /* registers definitions */ #define CAU_CTL REG32(CAU + 0x00U) /*!< control register */ #define CAU_STAT0 REG32(CAU + 0x04U) /*!< status register 0 */ #define CAU_DI REG32(CAU + 0x08U) /*!< data input register */ #define CAU_DO REG32(CAU + 0x0CU) /*!< data output register */ #define CAU_DMAEN REG32(CAU + 0x10U) /*!< DMA enable register */ #define CAU_INTEN REG32(CAU + 0x14U) /*!< interrupt enable register */ #define CAU_STAT1 REG32(CAU + 0x18U) /*!< status register 1 */ #define CAU_INTF REG32(CAU + 0x1CU) /*!< interrupt flag register */ #define CAU_KEY0H REG32(CAU + 0x20U) /*!< key 0 high register */ #define CAU_KEY0L REG32(CAU + 0x24U) /*!< key 0 low register */ #define CAU_KEY1H REG32(CAU + 0x28U) /*!< key 1 high register */ #define CAU_KEY1L REG32(CAU + 0x2CU) /*!< key 1 low register */ #define CAU_KEY2H REG32(CAU + 0x30U) /*!< key 2 high register */ #define CAU_KEY2L REG32(CAU + 0x34U) /*!< key 2 low register */ #define CAU_KEY3H REG32(CAU + 0x38U) /*!< key 3 high register */ #define CAU_KEY3L REG32(CAU + 0x3CU) /*!< key 3 low register */ #define CAU_IV0H REG32(CAU + 0x40U) /*!< initial vector 0 high register */ #define CAU_IV0L REG32(CAU + 0x44U) /*!< initial vector 0 low register */ #define CAU_IV1H REG32(CAU + 0x48U) /*!< initial vector 1 high register */ #define CAU_IV1L REG32(CAU + 0x4CU) /*!< initial vector 1 low register */ /* bits definitions */ /* CAU_CTL */ #define CAU_CTL_CAUDIR BIT(2) /*!< algorithm direction */ #define CAU_CTL_ALGM BITS(3,5) /*!< algorithm mode selection */ #define CAU_CTL_DATAM BITS(6,7) /*!< data swapping selection */ #define CAU_CTL_KEYM BITS(8,9) /*!< key length selection when aes mode */ #define CAU_CTL_FFLUSH BIT(14) /*!< FIFO flush */ #define CAU_CTL_CAUEN BIT(15) /*!< cryptographic module enable */ /* CAU_STAT0 */ #define CAU_STAT0_IEM BIT(0) /*!< IN FIFO empty flag */ #define CAU_STAT0_INF BIT(1) /*!< IN FIFO not full flag */ #define CAU_STAT0_ONE BIT(2) /*!< OUT FIFO not empty flag */ #define CAU_STAT0_OFU BIT(3) /*!< OUT FIFO full flag */ #define CAU_STAT0_BUSY BIT(4) /*!< busy flag */ /* CAU_DI */ #define CAU_DI_DI BITS(0,31) /*!< data input */ /* CAU_DO */ #define CAU_DO_DO BITS(0,31) /*!< data output */ /* CAU_DMAEN */ #define CAU_DMAEN_DMAIEN BIT(0) /*!< IN FIFO DMA enable */ #define CAU_DMAEN_DMAOEN BIT(1) /*!< OUT FIFO DMA enable */ /* CAU_INTEN */ #define CAU_INTEN_IINTEN BIT(0) /*!< IN FIFO interrupt enable */ #define CAU_INTEN_OINTEN BIT(1) /*!< OUT FIFO interrupt enable */ /* CAU_STAT1 */ #define CAU_STAT1_ISTA BIT(0) /*!< flag set when there is less than 4 words in IN FIFO */ #define CAU_STAT1_OSTA BIT(1) /*!< flag set when there is one or more word in OUT FIFO */ /* CAU_INTF */ #define CAU_INTF_IINTF BIT(0) /*!< IN FIFO interrupt flag */ #define CAU_INTF_OINTF BIT(1) /*!< OUT FIFO interrupt flag */ /* CAU_KEYxH x=0..3 */ #define CAU_KEYXH_KEYXH BITS(0,31) /*!< the key for des, tdes, aes */ /* CAU_KEYxL x=0..3 */ #define CAU_KEYXL_KEYXL BITS(0,31) /*!< the key for des, tdes, aes */ /* CAU_IVxH x=0..1 */ #define CAU_IVXH_IVXH BITS(0,31) /*!< the initialization vector for des, tdes, aes */ /* CAU_IVxL x=0..1 */ #define CAU_IVXL_IVXL BITS(0,31) /*!< the initialization vector for des, tdes, aes */ /* constants definitions */ /* structure for keys initialization of the cau */ typedef struct { uint32_t key_0_high; /*!< key 0 high */ uint32_t key_0_low; /*!< key 0 low */ uint32_t key_1_high; /*!< key 1 high */ uint32_t key_1_low; /*!< key 1 low */ uint32_t key_2_high; /*!< key 2 high */ uint32_t key_2_low; /*!< key 2 low */ uint32_t key_3_high; /*!< key 3 high */ uint32_t key_3_low; /*!< key 3 low */ }cau_key_parameter_struct; /* structure for vectors initialization of the cau */ typedef struct { uint32_t iv_0_high; /*!< init vector 0 high */ uint32_t iv_0_low; /*!< init vector 0 low */ uint32_t iv_1_high; /*!< init vector 1 high */ uint32_t iv_1_low; /*!< init vector 1 low */ }cau_iv_parameter_struct; /* structure for vectors initialization of the cau */ typedef struct { uint8_t *input; /*!< pointer to the input buffer */ uint32_t in_length; /*!< length of the input buffer, must be a multiple of 8(DES and TDES) or 16(AES) */ uint8_t *output; /*!< pointer to the returned buffer */ }cau_text_struct; /* cau_ctl register value */ #define CAU_ENCRYPT ((uint32_t)0x00000000) /*!< encrypt */ #define CAU_DECRYPT CAU_CTL_CAUDIR /*!< decrypt */ #define CTL_ALGM(regval) (BITS(3,5) & ((uint32_t)(regval) << 3)) /*!< write value to CAU_CTL_ALGM bit field */ #define CAU_MODE_TDES_ECB CTL_ALGM(0) /*!< TDES-ECB (3DES Electronic codebook) */ #define CAU_MODE_TDES_CBC CTL_ALGM(1) /*!< TDES-CBC (3DES Cipher block chaining) */ #define CAU_MODE_DES_ECB CTL_ALGM(2) /*!< DES-ECB (simple DES Electronic codebook) */ #define CAU_MODE_DES_CBC CTL_ALGM(3) /*!< DES-CBC (simple DES Cipher block chaining) */ #define CAU_MODE_AES_ECB CTL_ALGM(4) /*!< AES-ECB (AES Electronic codebook) */ #define CAU_MODE_AES_CBC CTL_ALGM(5) /*!< AES-CBC (AES Cipher block chaining) */ #define CAU_MODE_AES_CTR CTL_ALGM(6) /*!< AES-CTR (AES counter mode) */ #define CAU_MODE_AES_KEY CTL_ALGM(7) /*!< AES decryption key preparation mode */ #define CTL_DATAM(regval) (BITS(6,7) & ((uint32_t)(regval) << 6)) /*!< write value to CAU_CTL_DATAM bit field */ #define CAU_SWAPPING_32BIT CTL_DATAM(0) /*!< no swapping */ #define CAU_SWAPPING_16BIT CTL_DATAM(1) /*!< half-word swapping */ #define CAU_SWAPPING_8BIT CTL_DATAM(2) /*!< bytes swapping */ #define CAU_SWAPPING_1BIT CTL_DATAM(3) /*!< bit swapping */ #define CTL_KEYM(regval) (BITS(8,9) & ((uint32_t)(regval) << 8)) /*!< write value to CAU_CTL_KEYM bit field */ #define CAU_KEYSIZE_128BIT CTL_KEYM(0) /*!< 128 bit key length */ #define CAU_KEYSIZE_192BIT CTL_KEYM(1) /*!< 192 bit key length */ #define CAU_KEYSIZE_256BIT CTL_KEYM(2) /*!< 256 bit key length */ /* cau_stat0 register value */ #define CAU_FLAG_INFIFO_EMPTY CAU_STAT0_IEM /*!< IN FIFO empty */ #define CAU_FLAG_INFIFO_NO_FULL CAU_STAT0_INF /*!< IN FIFO is not full */ #define CAU_FLAG_OUTFIFO_NO_EMPTY CAU_STAT0_ONE /*!< OUT FIFO not empty */ #define CAU_FLAG_OUTFIFO_FULL CAU_STAT0_OFU /*!< OUT FIFO is full */ #define CAU_FLAG_BUSY CAU_STAT0_BUSY /*!< the CAU core is busy */ /* cau_dmaen register value */ #define CAU_DMA_INFIFO CAU_DMAEN_DMAIEN /*!< DMA input enable */ #define CAU_DMA_OUTFIFO CAU_DMAEN_DMAOEN /*!< DMA output enable */ /* cau_inten register value */ #define CAU_INT_INFIFO CAU_INTEN_IINTEN /*!< IN FIFO Interrupt */ #define CAU_INT_OUTFIFO CAU_INTEN_OINTEN /*!< OUT FIFO Interrupt */ /* cau_stat1 register value */ #define CAU_FLAG_INFIFO (CAU_STAT1_ISTA | ((uint32_t)0x00000020U)) /*!< IN FIFO flag status */ #define CAU_FLAG_OUTFIFO (CAU_STAT1_OSTA | ((uint32_t)0x00000020U)) /*!< OUT FIFO flag status */ /* cau_intf register value */ #define CAU_INT_FLAG_INFIFO CAU_INTF_IINTF /*!< IN FIFO interrupt status */ #define CAU_INT_FLAG_OUTFIFO CAU_INTF_OINTF /*!< OUT FIFO interrupt status */ /* function declarations */ /* initialization functions */ /* reset the CAU peripheral */ void cau_deinit(void); /* enable the CAU peripheral */ void cau_enable(void); /* disable the CAU peripheral */ void cau_disable(void); /* enable the CAU DMA interface */ void cau_dma_enable(uint32_t dma_req); /* disable the CAU DMA interface */ void cau_dma_disable(uint32_t dma_req); /* initialize the CAU peripheral */ void cau_init(uint32_t algo_dir, uint32_t algo_mode, uint32_t swapping); /* configure key size if used AES algorithm */ void cau_aes_keysize_config(uint32_t key_size); /* initialize the key parameters */ void cau_key_init(cau_key_parameter_struct* key_initpara); /* initialize the structure cau_key_initpara */ void cau_key_parameter_init(cau_key_parameter_struct* key_initpara); /* initialize the vectors parameters */ void cau_iv_init(cau_iv_parameter_struct* iv_initpara); /* initialize the vectors parameters */ void cau_iv_parameter_init(cau_iv_parameter_struct* iv_initpara); /* flush the IN and OUT FIFOs */ void cau_fifo_flush(void); /* return whether CAU peripheral is enabled or disabled */ ControlStatus cau_enable_state_get(void); /* write data to the IN FIFO */ void cau_data_write(uint32_t data); /* return the last data entered into the output FIFO */ uint32_t cau_data_read(void); /* function configuration */ /* calculate digest in HASH mode */ /* encrypt and decrypt using AES in ECB mode */ ErrStatus cau_aes_ecb(uint32_t algo_dir, uint8_t *key, uint16_t keysize, cau_text_struct *text); /* encrypt and decrypt using AES in CBC mode */ ErrStatus cau_aes_cbc(uint32_t algo_dir, uint8_t *key, uint16_t keysize, uint8_t iv[16], cau_text_struct *text); /* encrypt and decrypt using AES in CTR mode */ ErrStatus cau_aes_ctr(uint32_t algo_dir, uint8_t *key, uint16_t keysize, uint8_t iv[16], cau_text_struct *text); /* encrypt and decrypt using TDES in ECB mode */ ErrStatus cau_tdes_ecb(uint32_t algo_dir, uint8_t key[24], cau_text_struct *text); /* encrypt and decrypt using TDES in CBC mode */ ErrStatus cau_tdes_cbc(uint32_t algo_dir, uint8_t key[24], uint8_t iv[8], cau_text_struct *text); /* encrypt and decrypt using DES in ECB mode */ ErrStatus cau_des_ecb(uint32_t algo_dir, uint8_t key[24], cau_text_struct *text); /* encrypt and decrypt using DES in CBC mode */ ErrStatus cau_des_cbc(uint32_t algo_dir, uint8_t key[24], uint8_t iv[8], cau_text_struct *text); /* interrupt & flag functions */ /* get the CAU flag status */ FlagStatus cau_flag_get(uint32_t flag); /* enable the CAU interrupts */ void cau_interrupt_enable(uint32_t interrupt); /* disable the CAU interrupts */ void cau_interrupt_disable(uint32_t interrupt); /* get the interrupt flag */ FlagStatus cau_interrupt_flag_get(uint32_t int_flag); #endif /* GD32F20X_CAU_H */
e6b3279050fce5d023e19034dc94ce57ece35c6c
fce81b804cae23f525a5ad4370b684bf0dc531a5
/numpy/distutils/checks/cpu_neon_vfpv4.c
a039159ddeed006d62f07250a3a1dbb5abfcb6ac
[ "Zlib", "BSD-3-Clause", "MIT", "Apache-2.0" ]
permissive
numpy/numpy
ba2abcc1d2d46affbb6aabe5aed6407b4b57507e
dc2ff125493777a1084044e6cd6857a42ee323d4
refs/heads/main
2023-09-05T10:10:52.767363
2023-09-04T18:03:29
2023-09-04T18:03:29
908,607
25,725
11,968
BSD-3-Clause
2023-09-14T21:26:09
2010-09-13T23:02:39
Python
UTF-8
C
false
false
609
c
cpu_neon_vfpv4.c
#ifdef _MSC_VER #include <Intrin.h> #endif #include <arm_neon.h> int main(int argc, char **argv) { float *src = (float*)argv[argc-1]; float32x4_t v1 = vdupq_n_f32(src[0]); float32x4_t v2 = vdupq_n_f32(src[1]); float32x4_t v3 = vdupq_n_f32(src[2]); int ret = (int)vgetq_lane_f32(vfmaq_f32(v1, v2, v3), 0); #ifdef __aarch64__ double *src2 = (double*)argv[argc-2]; float64x2_t vd1 = vdupq_n_f64(src2[0]); float64x2_t vd2 = vdupq_n_f64(src2[1]); float64x2_t vd3 = vdupq_n_f64(src2[2]); ret += (int)vgetq_lane_f64(vfmaq_f64(vd1, vd2, vd3), 0); #endif return ret; }
32ca6bab516a444a1439a5e17a534cd38feee94d
1f399edf85d995443d01f66d77eca0723886d0ff
/devicemodel/include/vhost.h
ddd9db925e36edeb77b1f6248e43e3dc8c27a94d
[ "BSD-3-Clause" ]
permissive
projectacrn/acrn-hypervisor
f9c5864d54929a5d2fa36b5e78c08f19b46b8f98
390740aa1b1e9d62c51f8e3afa0c29e07e43fa23
refs/heads/master
2023-08-18T05:07:01.310327
2023-08-11T07:49:36
2023-08-16T13:20:27
123,983,554
1,059
686
BSD-3-Clause
2023-09-14T09:51:10
2018-03-05T21:52:25
C
UTF-8
C
false
false
3,114
h
vhost.h
/* * Copyright (C) 2018-2022 Intel Corporation. * * SPDX-License-Identifier: BSD-3-Clause * */ /** * @file vhost.h * * @brief VHOST APIs for ACRN Project */ #ifndef __VHOST_H__ #define __VHOST_H__ #include "virtio.h" /** * @brief vhost APIs * * @addtogroup acrn_virtio * */ struct vhost_vq { int kick_fd; /**< fd of kick eventfd */ int call_fd; /**< fd of call eventfd */ int idx; /**< index of this vq in vhost dev */ struct vhost_dev *dev; /**< pointer to vhost_dev */ }; struct vhost_dev { /** * backpointer to virtio_base */ struct virtio_base *base; /** * pointer to vhost_vq array */ struct vhost_vq *vqs; /** * number of virtqueues */ int nvqs; /** * vhost chardev fd */ int fd; /** * first vq's index in virtio_vq_info */ int vq_idx; /** * supported virtio defined features */ uint64_t vhost_features; /** * vhost self-defined internal features bits used for * communicate between vhost user-space and kernel-space modules */ uint64_t vhost_ext_features; /** * vq busyloop timeout in us */ uint32_t busyloop_timeout; /** * whether vhost is started */ bool started; }; /** * @brief vhost_dev initialization. * * This interface is called to initialize the vhost_dev. It must be called * before the actual feature negotiation with the guest OS starts. * * @param vdev Pointer to struct vhost_dev. * @param base Pointer to struct virtio_base. * @param fd fd of the vhost chardev. * @param vq_idx The first virtqueue which would be used by this vhost dev. * @param vhost_features Subset of vhost features which would be enabled. * @param vhost_ext_features Specific vhost internal features to be enabled. * @param busyloop_timeout Busy loop timeout in us. * * @return 0 on success and -1 on failure. */ int vhost_dev_init(struct vhost_dev *vdev, struct virtio_base *base, int fd, int vq_idx, uint64_t vhost_features, uint64_t vhost_ext_features, uint32_t busyloop_timeout); /** * @brief vhost_dev cleanup. * * This interface is called to cleanup the vhost_dev. * * @param vdev Pointer to struct vhost_dev. * * @return 0 on success and -1 on failure. */ int vhost_dev_deinit(struct vhost_dev *vdev); /** * @brief start vhost data plane. * * This interface is called to start the data plane in vhost. * * @param vdev Pointer to struct vhost_dev. * * @return 0 on success and -1 on failure. */ int vhost_dev_start(struct vhost_dev *vdev); /** * @brief stop vhost data plane. * * This interface is called to stop the data plane in vhost. * * @param vdev Pointer to struct vhost_dev. * * @return 0 on success and -1 on failure. */ int vhost_dev_stop(struct vhost_dev *vdev); /** * @brief vhost kernel dev ioctrl function. * * This interface is used to operation the vhost dev kernel. * * @param vdev Pointer to struct vhost_dev. * @param request to vhost kernel. * @param arg of vhost kernel operation. * * @return 0 on success and -1 on failure. */ int vhost_kernel_ioctl(struct vhost_dev *vdev, unsigned long int request, void *arg); #endif /* __VHOST_H__ */
2387087b14ed20e41a9b92cfb7b079152d9a384d
1b8617545453376ac8bdca000516422d7c01fc2c
/components/micropython/port/src/touchscreen/py_touchscreen.c
ea32c9e67141d565da3183c4adf09c9d820f2b4d
[ "MIT", "Apache-2.0", "LicenseRef-scancode-unknown-license-reference" ]
permissive
sipeed/MaixPy
f1bee59ec3f47a1172928e8363b8307c8cd90c6e
23d09fbccb3dd75138c86f6e82f8d02162938996
refs/heads/master
2023-08-16T10:11:25.652994
2023-06-05T14:05:10
2023-06-05T14:05:10
154,797,251
1,751
492
NOASSERTION
2023-06-05T14:05:11
2018-10-26T07:48:11
Python
UTF-8
C
false
false
4,901
c
py_touchscreen.c
#include <mp.h> #include "touchscreen.h" mp_obj_t py_touchscreen_init(size_t n_args, const mp_obj_t *pos_args, mp_map_t *kw_args) { enum{ ARG_i2c, ARG_type, ARG_cal }; static const mp_arg_t allowed_args[] = { { MP_QSTR_i2c, MP_ARG_OBJ, {.u_obj = mp_const_none} }, { MP_QSTR_type, MP_ARG_OBJ, {.u_obj = mp_const_none} }, { MP_QSTR_cal, MP_ARG_OBJ, {.u_obj = mp_const_none} } }; mp_arg_val_t args[MP_ARRAY_SIZE(allowed_args)]; mp_arg_parse_all(n_args, pos_args, kw_args, MP_ARRAY_SIZE(allowed_args), allowed_args, args); touchscreen_config_t config; config.i2c = (machine_hard_i2c_obj_t*)args[ARG_i2c].u_obj; if( config.i2c == mp_const_none) { config.i2c = NULL; } int ret; mp_obj_t type_obj = args[ARG_type].u_obj; if ( type_obj != mp_const_none) { mp_int_t type_int = mp_obj_get_int(type_obj); switch (type_int) { case TOUCHSCREEN_TYPE_NS2009: config.drives_type = TOUCHSCREEN_TYPE_NS2009; break; case TOUCHSCREEN_TYPE_FT62XX: config.drives_type = TOUCHSCREEN_TYPE_FT62XX; ret = touchscreen_init((void *)&config); if ( ret != 0) mp_raise_OSError(ret); return mp_const_none; default: break; } } mp_obj_t cal = args[ARG_cal].u_obj; if( cal != mp_const_none) { size_t size; mp_obj_t* tuple_data; mp_obj_tuple_get(cal, &size, &tuple_data); if(size != CALIBRATION_SIZE) mp_raise_ValueError("tuple size must be 7"); for(uint8_t i=0; i<CALIBRATION_SIZE; ++i) config.calibration[i] = mp_obj_get_int(tuple_data[i]); } else { config.calibration[0] = -6; config.calibration[1] = -5941; config.calibration[2] = 22203576; config.calibration[3] = 4232; config.calibration[4] = -8; config.calibration[5] = -700369; config.calibration[6] = 65536; } ret = touchscreen_init((void*)&config); if( ret != 0) mp_raise_OSError(ret); return mp_const_none; } STATIC MP_DEFINE_CONST_FUN_OBJ_KW(py_touchscreen_init_obj, 0, py_touchscreen_init); mp_obj_t py_touchscreen_deinit(size_t n_args, const mp_obj_t *args, mp_map_t *kw_args) { int ret = touchscreen_deinit(); if( ret != 0) mp_raise_OSError(ret); return mp_const_none; } STATIC MP_DEFINE_CONST_FUN_OBJ_KW(py_touchscreen_deinit_obj, 0, py_touchscreen_deinit); mp_obj_t py_touchscreen_read(size_t n_args, const mp_obj_t *args, mp_map_t *kw_args) { int ret, status=0, x=0, y=0; ret = touchscreen_read(&status, &x, &y); if( ret != 0) mp_raise_OSError(ret); mp_obj_t value[3]; value[0] = mp_obj_new_int(status); value[1] = mp_obj_new_int(x); value[2] = mp_obj_new_int(y); mp_obj_t t = mp_obj_new_tuple(3, value); return t; } STATIC MP_DEFINE_CONST_FUN_OBJ_KW(py_touchscreen_read_obj, 0, py_touchscreen_read); mp_obj_t py_touchscreen_calibrate(size_t n_args, const mp_obj_t *args, mp_map_t *kw_args) { //TODO: add args(width height etc.) int w = 320; int h = 240; int* cal = malloc(sizeof(int)*7); if(!cal) mp_raise_OSError(MP_ENOMEM); //TODO: lcd optimize int ret = touchscreen_calibrate(w, h, cal); if( ret!=0 ) { free(cal); mp_raise_OSError(ret); } mp_obj_t value[7]; for(uint8_t i=0; i<7; ++i) value[i] = mp_obj_new_int(cal[i]); mp_obj_t t = mp_obj_new_tuple(7, value); free(cal); return t; } STATIC MP_DEFINE_CONST_FUN_OBJ_KW(py_touchscreen_calibrate_obj, 0, py_touchscreen_calibrate); STATIC const mp_map_elem_t globals_dict_table[] = { {MP_OBJ_NEW_QSTR(MP_QSTR___name__), MP_OBJ_NEW_QSTR(MP_QSTR_touchscreen)}, {MP_OBJ_NEW_QSTR(MP_QSTR_init), (mp_obj_t)&py_touchscreen_init_obj}, {MP_OBJ_NEW_QSTR(MP_QSTR___del__), (mp_obj_t)&py_touchscreen_deinit_obj}, {MP_OBJ_NEW_QSTR(MP_QSTR_read), (mp_obj_t)&py_touchscreen_read_obj}, {MP_OBJ_NEW_QSTR(MP_QSTR_calibrate), (mp_obj_t)&py_touchscreen_calibrate_obj}, { MP_ROM_QSTR(MP_QSTR_STATUS_IDLE), MP_ROM_INT(TOUCHSCREEN_STATUS_IDLE) }, { MP_ROM_QSTR(MP_QSTR_STATUS_RELEASE), MP_ROM_INT(TOUCHSCREEN_STATUS_RELEASE) }, { MP_ROM_QSTR(MP_QSTR_STATUS_PRESS), MP_ROM_INT(TOUCHSCREEN_STATUS_PRESS) }, { MP_ROM_QSTR(MP_QSTR_STATUS_MOVE), MP_ROM_INT(TOUCHSCREEN_STATUS_MOVE) }, { MP_ROM_QSTR(MP_QSTR_NS2009), MP_ROM_INT(TOUCHSCREEN_TYPE_NS2009) }, { MP_ROM_QSTR(MP_QSTR_FT62XX), MP_ROM_INT(TOUCHSCREEN_TYPE_FT62XX) }, }; STATIC MP_DEFINE_CONST_DICT(globals_dict, globals_dict_table); const mp_obj_module_t mp_module_touchscreen = { .base = {&mp_type_module}, //just support one touchscreen so we don't need make_new function .globals = (mp_obj_t)&globals_dict, };
99eac9ad164dc06fda927c33011485cbaedb18d6
fdbb74a95924e2677466614f6ab6e2bb13b2a95a
/third_party/python/Include/sliceobject.h
f1c222b38888e7f61567d78d4668204f8687c64c
[ "ISC", "Python-2.0", "GPL-1.0-or-later", "LicenseRef-scancode-python-cwi", "LicenseRef-scancode-free-unknown", "LicenseRef-scancode-other-copyleft" ]
permissive
jart/cosmopolitan
fb11b5658939023977060a7c6c71a74093d9cb44
0d748ad58e1063dd1f8560f18a0c75293b9415b7
refs/heads/master
2023-09-06T09:17:29.303607
2023-09-02T03:49:13
2023-09-02T03:50:18
272,457,606
11,887
435
ISC
2023-09-14T17:47:58
2020-06-15T14:16:13
C
UTF-8
C
false
false
2,431
h
sliceobject.h
#ifndef Py_SLICEOBJECT_H #define Py_SLICEOBJECT_H #include "third_party/python/Include/object.h" COSMOPOLITAN_C_START_ /* clang-format off */ /* The unique ellipsis object "..." */ extern PyObject _Py_EllipsisObject; /* Don't use this directly */ #define Py_Ellipsis (&_Py_EllipsisObject) /* Slice object interface */ /* A slice object containing start, stop, and step data members (the names are from range). After much talk with Guido, it was decided to let these be any arbitrary python type. Py_None stands for omitted values. */ #ifndef Py_LIMITED_API typedef struct { PyObject_HEAD PyObject *start, *stop, *step; /* not NULL */ } PySliceObject; #endif extern PyTypeObject PySlice_Type; extern PyTypeObject PyEllipsis_Type; #define PySlice_Check(op) (Py_TYPE(op) == &PySlice_Type) PyObject * PySlice_New(PyObject* start, PyObject* stop, PyObject* step); #ifndef Py_LIMITED_API PyObject * _PySlice_FromIndices(Py_ssize_t start, Py_ssize_t stop); int _PySlice_GetLongIndices(PySliceObject *self, PyObject *length, PyObject **start_ptr, PyObject **stop_ptr, PyObject **step_ptr); #endif int PySlice_GetIndices(PyObject *r, Py_ssize_t length, Py_ssize_t *start, Py_ssize_t *stop, Py_ssize_t *step); int PySlice_GetIndicesEx(PyObject *r, Py_ssize_t length, Py_ssize_t *start, Py_ssize_t *stop, Py_ssize_t *step, Py_ssize_t *slicelength); #if !defined(Py_LIMITED_API) || (Py_LIMITED_API+0 >= 0x03050400 && Py_LIMITED_API+0 < 0x03060000) || Py_LIMITED_API+0 >= 0x03060100 #ifdef Py_LIMITED_API #define PySlice_GetIndicesEx(slice, length, start, stop, step, slicelen) ( \ PySlice_Unpack((slice), (start), (stop), (step)) < 0 ? \ ((*(slicelen) = 0), -1) : \ ((*(slicelen) = PySlice_AdjustIndices((length), (start), (stop), *(step))), \ 0)) #endif int PySlice_Unpack(PyObject *slice, Py_ssize_t *start, Py_ssize_t *stop, Py_ssize_t *step); Py_ssize_t PySlice_AdjustIndices(Py_ssize_t length, Py_ssize_t *start, Py_ssize_t *stop, Py_ssize_t step); #endif COSMOPOLITAN_C_END_ #endif /* !Py_SLICEOBJECT_H */
9a103d0390e5fb28165dbb5568cd43023b6ab276
7b92efd7dfb60d9b0a498871d5ffa699d0cf7d9e
/src/modules/gfx_sinefield.c
4a07cce0cb45e355d57bce51f4a47c7d0f991a34
[ "ISC" ]
permissive
shinyblink/sled
854499be7c589b2d705050b41b8324ed66948e45
9d8e60ccbf6d8a30db83f41a8a4435d4c6b317a1
refs/heads/master
2023-07-24T08:30:03.348039
2023-07-08T14:00:54
2023-07-08T22:17:15
115,367,599
107
20
ISC
2023-07-08T22:17:17
2017-12-25T23:06:04
C
UTF-8
C
false
false
2,159
c
gfx_sinefield.c
/* * sinefield port, much stolen from https://github.com/orithena/Arduino-LED-experiments/blob/master/MatrixDemo/MatrixDemo.ino * * Even the original author, @orithena, has no clue how this effect works. He just experimented and this came out. * */ #include <types.h> #include <matrix.h> #include <timers.h> #include <stddef.h> #include <mathey.h> #include <math.h> #define FPS 60 #define FRAMETIME (T_SECOND / FPS) #define FRAMES (TIME_LONG * FPS) /*** management variables ***/ static int modno; static int frame = 0; static oscore_time nexttick; /*** matrix info (initialized in init()) ***/ static int mx, my; // matrix size /*** module init ***/ int init(int moduleno, char* argstr) { mx = matrix_getx(); my = matrix_gety(); if (mx < 2) return 1; if (my < 2) return 1; modno = moduleno; return 0; } void reset(int _modno) { nexttick = udate(); frame = 0; } /*** main drawing loop ***/ int draw(int _modno, int argc, char* argv[]) { float step = (float)(((udate()) >> 16) & 0x00007FFF); //printf("[%8.1f]", step); uint8_t hue = 0; /* for(int x = 0; x < mx; x++ ) { hue = step + (37 * sinf( ((x*step)/(11*M_PI)) * 0.04 ) ); for(int y = 0; y < my; y++ ) { hue += 17 * sinf(y/(5*M_PI)); RGB color = HSV2RGB(HSV( (uint8_t)(hue + (uint8_t)step), 255, //(uint8_t)(192 - (63*cosf((hue+step)*M_PI*0.004145))), (uint8_t)(255*sinf((hue+step)*M_PI*0.003891)) )); matrix_set(x,y,color); } } */ for(int x = (-mx/2); x < (mx/2); x++ ) { hue = ((int)(step + (37.0f * sinf( ((x*step)/(11.0f*M_PI)) * 0.04f)))) & 0xFF; for(int y = (-my/2); y < (my/2); y++ ) { hue = ((int)(hue + (17.0f + (x*(8.0f/mx))) * sinf(y/(5.0f*M_PI)))) & 0xFF; RGB color = HSV2RGB(HSV( ((int)(hue + (uint8_t)(step))) & 0xFF, 255, ((int)(255*sinf(((float)hue+step)*M_PI*0.003891f))) & 0xFF )); matrix_set(x+(mx/2),y+(my/2),color); } } // render it out matrix_render(); // manage framework variables if (frame >= FRAMES) { frame = 0; return 1; } frame++; nexttick += FRAMETIME; timer_add(nexttick, modno, 0, NULL); return 0; } /*** module deconstructor ***/ void deinit(int _modno) {}
ffa1ffff823649ff30c4ede900bcdd9d397e6fe0
d79db96554e506a7be2b61bd9df178a98ac7ccf4
/src/libressl-2.4.1/crypto/evp/e_chacha20poly1305.c
3678f3e4ed4d4d14dd269480ed22bde6e1cd5b28
[ "FSFAP", "OpenSSL", "LicenseRef-scancode-openssl", "LicenseRef-scancode-ssleay-windows", "LicenseRef-scancode-public-domain", "LicenseRef-scancode-unknown-license-reference", "Apache-2.0" ]
permissive
lsds/TaLoS
42edcb4ed4d76257ec3c217ba26a92f543a9ef63
9c959980de0c6d2a80582e3546747823ea3eca69
refs/heads/master
2023-09-05T04:58:07.718709
2022-01-25T05:00:19
2022-01-25T05:00:19
85,239,830
113
23
Apache-2.0
2020-11-19T08:10:08
2017-03-16T20:42:42
C
UTF-8
C
false
false
9,927
c
e_chacha20poly1305.c
/* $OpenBSD: e_chacha20poly1305.c,v 1.13 2016/04/13 13:25:05 jsing Exp $ */ /* * Copyright (c) 2015 Reyk Floter <reyk@openbsd.org> * Copyright (c) 2014, Google Inc. * * Permission to use, copy, modify, and/or distribute this software for any * purpose with or without fee is hereby granted, provided that the above * copyright notice and this permission notice appear in all copies. * * THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES * WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF * MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY * SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES * WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION * OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN * CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. */ #include <stdint.h> #include <string.h> #include <openssl/opensslconf.h> #if !defined(OPENSSL_NO_CHACHA) && !defined(OPENSSL_NO_POLY1305) #include <openssl/err.h> #include <openssl/evp.h> #include <openssl/chacha.h> #include <openssl/poly1305.h> #include "evp_locl.h" #define POLY1305_TAG_LEN 16 #define CHACHA20_NONCE_LEN_OLD 8 /* * The informational RFC 7539, "ChaCha20 and Poly1305 for IETF Protocols", * introduced a modified AEAD construction that is incompatible with the * common style that has been already used in TLS. The IETF version also * adds a constant (salt) that is prepended to the nonce. */ #define CHACHA20_CONSTANT_LEN 4 #define CHACHA20_IV_LEN 8 #define CHACHA20_NONCE_LEN (CHACHA20_CONSTANT_LEN + CHACHA20_IV_LEN) struct aead_chacha20_poly1305_ctx { unsigned char key[32]; unsigned char tag_len; }; static int aead_chacha20_poly1305_init(EVP_AEAD_CTX *ctx, const unsigned char *key, size_t key_len, size_t tag_len) { struct aead_chacha20_poly1305_ctx *c20_ctx; if (tag_len == 0) tag_len = POLY1305_TAG_LEN; if (tag_len > POLY1305_TAG_LEN) { EVPerr(EVP_F_AEAD_CHACHA20_POLY1305_INIT, EVP_R_TOO_LARGE); return 0; } /* Internal error - EVP_AEAD_CTX_init should catch this. */ if (key_len != sizeof(c20_ctx->key)) return 0; c20_ctx = malloc(sizeof(struct aead_chacha20_poly1305_ctx)); if (c20_ctx == NULL) return 0; memcpy(&c20_ctx->key[0], key, key_len); c20_ctx->tag_len = tag_len; ctx->aead_state = c20_ctx; return 1; } static void aead_chacha20_poly1305_cleanup(EVP_AEAD_CTX *ctx) { struct aead_chacha20_poly1305_ctx *c20_ctx = ctx->aead_state; explicit_bzero(c20_ctx->key, sizeof(c20_ctx->key)); free(c20_ctx); } static void poly1305_update_with_length(poly1305_state *poly1305, const unsigned char *data, size_t data_len) { size_t j = data_len; unsigned char length_bytes[8]; unsigned i; for (i = 0; i < sizeof(length_bytes); i++) { length_bytes[i] = j; j >>= 8; } if (data != NULL) CRYPTO_poly1305_update(poly1305, data, data_len); CRYPTO_poly1305_update(poly1305, length_bytes, sizeof(length_bytes)); } static void poly1305_update_with_pad16(poly1305_state *poly1305, const unsigned char *data, size_t data_len) { static const unsigned char zero_pad16[16]; size_t pad_len; CRYPTO_poly1305_update(poly1305, data, data_len); /* pad16() is defined in RFC 7539 2.8.1. */ if ((pad_len = data_len % 16) == 0) return; CRYPTO_poly1305_update(poly1305, zero_pad16, 16 - pad_len); } static int aead_chacha20_poly1305_seal(const EVP_AEAD_CTX *ctx, unsigned char *out, size_t *out_len, size_t max_out_len, const unsigned char *nonce, size_t nonce_len, const unsigned char *in, size_t in_len, const unsigned char *ad, size_t ad_len) { const struct aead_chacha20_poly1305_ctx *c20_ctx = ctx->aead_state; unsigned char poly1305_key[32]; poly1305_state poly1305; const unsigned char *iv; const uint64_t in_len_64 = in_len; uint64_t ctr; /* The underlying ChaCha implementation may not overflow the block * counter into the second counter word. Therefore we disallow * individual operations that work on more than 2TB at a time. * in_len_64 is needed because, on 32-bit platforms, size_t is only * 32-bits and this produces a warning because it's always false. * Casting to uint64_t inside the conditional is not sufficient to stop * the warning. */ if (in_len_64 >= (1ULL << 32) * 64 - 64) { EVPerr(EVP_F_AEAD_CHACHA20_POLY1305_SEAL, EVP_R_TOO_LARGE); return 0; } if (max_out_len < in_len + c20_ctx->tag_len) { EVPerr(EVP_F_AEAD_CHACHA20_POLY1305_SEAL, EVP_R_BUFFER_TOO_SMALL); return 0; } if (nonce_len != ctx->aead->nonce_len) { EVPerr(EVP_F_AEAD_CHACHA20_POLY1305_SEAL, EVP_R_IV_TOO_LARGE); return 0; } if (nonce_len == CHACHA20_NONCE_LEN_OLD) { /* Google's draft-agl-tls-chacha20poly1305-04, Nov 2013 */ memset(poly1305_key, 0, sizeof(poly1305_key)); CRYPTO_chacha_20(poly1305_key, poly1305_key, sizeof(poly1305_key), c20_ctx->key, nonce, 0); CRYPTO_poly1305_init(&poly1305, poly1305_key); poly1305_update_with_length(&poly1305, ad, ad_len); CRYPTO_chacha_20(out, in, in_len, c20_ctx->key, nonce, 1); poly1305_update_with_length(&poly1305, out, in_len); } else if (nonce_len == CHACHA20_NONCE_LEN) { /* RFC 7539, May 2015 */ ctr = (uint64_t)(nonce[0] | nonce[1] << 8 | nonce[2] << 16 | nonce[3] << 24) << 32; iv = nonce + CHACHA20_CONSTANT_LEN; memset(poly1305_key, 0, sizeof(poly1305_key)); CRYPTO_chacha_20(poly1305_key, poly1305_key, sizeof(poly1305_key), c20_ctx->key, iv, ctr); CRYPTO_poly1305_init(&poly1305, poly1305_key); poly1305_update_with_pad16(&poly1305, ad, ad_len); CRYPTO_chacha_20(out, in, in_len, c20_ctx->key, iv, ctr + 1); poly1305_update_with_pad16(&poly1305, out, in_len); poly1305_update_with_length(&poly1305, NULL, ad_len); poly1305_update_with_length(&poly1305, NULL, in_len); } if (c20_ctx->tag_len != POLY1305_TAG_LEN) { unsigned char tag[POLY1305_TAG_LEN]; CRYPTO_poly1305_finish(&poly1305, tag); memcpy(out + in_len, tag, c20_ctx->tag_len); *out_len = in_len + c20_ctx->tag_len; return 1; } CRYPTO_poly1305_finish(&poly1305, out + in_len); *out_len = in_len + POLY1305_TAG_LEN; return 1; } static int aead_chacha20_poly1305_open(const EVP_AEAD_CTX *ctx, unsigned char *out, size_t *out_len, size_t max_out_len, const unsigned char *nonce, size_t nonce_len, const unsigned char *in, size_t in_len, const unsigned char *ad, size_t ad_len) { const struct aead_chacha20_poly1305_ctx *c20_ctx = ctx->aead_state; unsigned char mac[POLY1305_TAG_LEN]; unsigned char poly1305_key[32]; const unsigned char *iv = nonce; poly1305_state poly1305; const uint64_t in_len_64 = in_len; size_t plaintext_len; uint64_t ctr = 0; if (in_len < c20_ctx->tag_len) { EVPerr(EVP_F_AEAD_CHACHA20_POLY1305_OPEN, EVP_R_BAD_DECRYPT); return 0; } /* The underlying ChaCha implementation may not overflow the block * counter into the second counter word. Therefore we disallow * individual operations that work on more than 2TB at a time. * in_len_64 is needed because, on 32-bit platforms, size_t is only * 32-bits and this produces a warning because it's always false. * Casting to uint64_t inside the conditional is not sufficient to stop * the warning. */ if (in_len_64 >= (1ULL << 32) * 64 - 64) { EVPerr(EVP_F_AEAD_CHACHA20_POLY1305_OPEN, EVP_R_TOO_LARGE); return 0; } if (nonce_len != ctx->aead->nonce_len) { EVPerr(EVP_F_AEAD_CHACHA20_POLY1305_OPEN, EVP_R_IV_TOO_LARGE); return 0; } plaintext_len = in_len - c20_ctx->tag_len; if (max_out_len < plaintext_len) { EVPerr(EVP_F_AEAD_CHACHA20_POLY1305_OPEN, EVP_R_BUFFER_TOO_SMALL); return 0; } if (nonce_len == CHACHA20_NONCE_LEN_OLD) { /* Google's draft-agl-tls-chacha20poly1305-04, Nov 2013 */ memset(poly1305_key, 0, sizeof(poly1305_key)); CRYPTO_chacha_20(poly1305_key, poly1305_key, sizeof(poly1305_key), c20_ctx->key, nonce, 0); CRYPTO_poly1305_init(&poly1305, poly1305_key); poly1305_update_with_length(&poly1305, ad, ad_len); poly1305_update_with_length(&poly1305, in, plaintext_len); } else if (nonce_len == CHACHA20_NONCE_LEN) { /* RFC 7539, May 2015 */ ctr = (uint64_t)(nonce[0] | nonce[1] << 8 | nonce[2] << 16 | nonce[3] << 24) << 32; iv = nonce + CHACHA20_CONSTANT_LEN; memset(poly1305_key, 0, sizeof(poly1305_key)); CRYPTO_chacha_20(poly1305_key, poly1305_key, sizeof(poly1305_key), c20_ctx->key, iv, ctr); CRYPTO_poly1305_init(&poly1305, poly1305_key); poly1305_update_with_pad16(&poly1305, ad, ad_len); poly1305_update_with_pad16(&poly1305, in, plaintext_len); poly1305_update_with_length(&poly1305, NULL, ad_len); poly1305_update_with_length(&poly1305, NULL, plaintext_len); } CRYPTO_poly1305_finish(&poly1305, mac); if (timingsafe_memcmp(mac, in + plaintext_len, c20_ctx->tag_len) != 0) { EVPerr(EVP_F_AEAD_CHACHA20_POLY1305_OPEN, EVP_R_BAD_DECRYPT); return 0; } CRYPTO_chacha_20(out, in, plaintext_len, c20_ctx->key, iv, ctr + 1); *out_len = plaintext_len; return 1; } static const EVP_AEAD aead_chacha20_poly1305 = { .key_len = 32, .nonce_len = CHACHA20_NONCE_LEN, .overhead = POLY1305_TAG_LEN, .max_tag_len = POLY1305_TAG_LEN, .init = aead_chacha20_poly1305_init, .cleanup = aead_chacha20_poly1305_cleanup, .seal = aead_chacha20_poly1305_seal, .open = aead_chacha20_poly1305_open, }; static const EVP_AEAD aead_chacha20_poly1305_old = { .key_len = 32, .nonce_len = CHACHA20_NONCE_LEN_OLD, .overhead = POLY1305_TAG_LEN, .max_tag_len = POLY1305_TAG_LEN, .init = aead_chacha20_poly1305_init, .cleanup = aead_chacha20_poly1305_cleanup, .seal = aead_chacha20_poly1305_seal, .open = aead_chacha20_poly1305_open, }; const EVP_AEAD * EVP_aead_chacha20_poly1305() { return &aead_chacha20_poly1305; } const EVP_AEAD * EVP_aead_chacha20_poly1305_old() { return &aead_chacha20_poly1305_old; } #endif /* !OPENSSL_NO_CHACHA && !OPENSSL_NO_POLY1305 */
544ce5eb7add7034ff56162cf1eaa41995a7da25
4da66ea2be83b62a46d77bf53f690b5146ac996d
/modules/stb-image-write/native/stb_image_write.h
a8aa076894f1154e4f5fb60c93a441d8bdcf4449
[ "Zlib" ]
permissive
blitz-research/monkey2
620855b08b6f41b40ff328da71d2e0d05d943855
3f6be81d73388b800a39ee53acaa7f4a0c6a9f42
refs/heads/develop
2021-04-09T17:13:34.240441
2020-06-28T04:26:30
2020-06-28T04:26:30
53,753,109
146
76
Zlib
2019-09-07T21:28:05
2016-03-12T20:59:51
Monkey
UTF-8
C
false
false
1,296
h
stb_image_write.h
#ifndef INCLUDE_STB_IMAGE_WRITE_H #define INCLUDE_STB_IMAGE_WRITE_H #ifdef __cplusplus extern "C" { #endif #ifdef STB_IMAGE_WRITE_STATIC #define STBIWDEF static #else #define STBIWDEF extern extern int stbi_write_tga_with_rle; #endif #ifndef STBI_WRITE_NO_STDIO STBIWDEF int stbi_write_png(char const *filename, int w, int h, int comp, const void *data, int stride_in_bytes); STBIWDEF int stbi_write_bmp(char const *filename, int w, int h, int comp, const void *data); STBIWDEF int stbi_write_tga(char const *filename, int w, int h, int comp, const void *data); STBIWDEF int stbi_write_hdr(char const *filename, int w, int h, int comp, const float *data); #endif typedef void stbi_write_func(void *context, void *data, int size); STBIWDEF int stbi_write_png_to_func(stbi_write_func *func, void *context, int w, int h, int comp, const void *data, int stride_in_bytes); STBIWDEF int stbi_write_bmp_to_func(stbi_write_func *func, void *context, int w, int h, int comp, const void *data); STBIWDEF int stbi_write_tga_to_func(stbi_write_func *func, void *context, int w, int h, int comp, const void *data); STBIWDEF int stbi_write_hdr_to_func(stbi_write_func *func, void *context, int w, int h, int comp, const float *data); #ifdef __cplusplus } #endif #endif//INCLUDE_STB_IMAGE_WRITE_H
28910e83ca633d5b930f695fbe8dba970b429f38
fb0f9abad373cd635c2635bbdf491ea0f32da5ff
/src/native/external/libunwind/include/libunwind-hppa.h
7013aa772682db37da545074c891088b28956c9e
[ "MIT" ]
permissive
dotnet/runtime
f6fd23936752e202f8e4d6d94f3a4f3b0e77f58f
47bb554d298e1e34c4e3895d7731e18ad1c47d02
refs/heads/main
2023-09-03T15:35:46.493337
2023-09-03T08:13:23
2023-09-03T08:13:23
210,716,005
13,765
5,179
MIT
2023-09-14T21:58:52
2019-09-24T23:36:39
C#
UTF-8
C
false
false
4,016
h
libunwind-hppa.h
/* libunwind - a platform-independent unwind library Copyright (C) 2003-2004 Hewlett-Packard Co This file is part of libunwind. Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. */ #ifndef LIBUNWIND_H #define LIBUNWIND_H #if defined(__cplusplus) || defined(c_plusplus) extern "C" { #endif #include <inttypes.h> #include <ucontext.h> #define UNW_TARGET hppa #define UNW_TARGET_HPPA 1 #define _U_TDEP_QP_TRUE 0 /* see libunwind-dynamic.h */ /* This needs to be big enough to accommodate "struct cursor", while leaving some slack for future expansion. Changing this value will require recompiling all users of this library. Stack allocation is relatively cheap and unwind-state copying is relatively rare, so we want to err on making it rather too big than too small. */ #define UNW_TDEP_CURSOR_LEN 511 typedef uint32_t unw_word_t; typedef int32_t unw_sword_t; typedef union { struct { unw_word_t bits[2]; } raw; double val; } unw_tdep_fpreg_t; typedef enum { /* Note: general registers are expected to start with index 0. This convention facilitates architecture-independent implementation of the C++ exception handling ABI. See _Unwind_SetGR() and _Unwind_GetGR() for details. */ UNW_HPPA_GR = 0, UNW_HPPA_RP = 2, /* return pointer */ UNW_HPPA_FP = 3, /* frame pointer */ UNW_HPPA_SP = UNW_HPPA_GR + 30, UNW_HPPA_FR = UNW_HPPA_GR + 32, UNW_HPPA_IP = UNW_HPPA_FR + 32, /* instruction pointer */ /* other "preserved" registers (fpsr etc.)... */ /* PA-RISC has 4 exception-argument registers but they're not contiguous. To deal with this, we define 4 pseudo exception-handling registers which we then alias to the actual physical register. */ UNW_HPPA_EH0 = UNW_HPPA_IP + 1, /* alias for UNW_HPPA_GR + 20 */ UNW_HPPA_EH1 = UNW_HPPA_EH0 + 1, /* alias for UNW_HPPA_GR + 21 */ UNW_HPPA_EH2 = UNW_HPPA_EH1 + 1, /* alias for UNW_HPPA_GR + 22 */ UNW_HPPA_EH3 = UNW_HPPA_EH2 + 1, /* alias for UNW_HPPA_GR + 31 */ /* frame info (read-only) */ UNW_HPPA_CFA, UNW_TDEP_LAST_REG = UNW_HPPA_IP, UNW_TDEP_IP = UNW_HPPA_IP, UNW_TDEP_SP = UNW_HPPA_SP, UNW_TDEP_EH = UNW_HPPA_EH0 } hppa_regnum_t; #define UNW_TDEP_NUM_EH_REGS 4 typedef struct unw_tdep_save_loc { /* Additional target-dependent info on a save location. */ } unw_tdep_save_loc_t; /* On PA-RISC, we can directly use ucontext_t as the unwind context. */ typedef ucontext_t unw_tdep_context_t; #define unw_tdep_is_fpreg(r) ((unsigned) ((r) - UNW_HPPA_FR) < 32) #include "libunwind-dynamic.h" typedef struct { /* no PA-RISC-specific auxiliary proc-info */ } unw_tdep_proc_info_t; #include "libunwind-common.h" #define unw_tdep_getcontext UNW_ARCH_OBJ (getcontext) extern int unw_tdep_getcontext (unw_tdep_context_t *); #if defined(__cplusplus) || defined(c_plusplus) } #endif #endif /* LIBUNWIND_H */
c0a856e02ac874a3ed92dd89ce075f8d93810e29
9ceacf33fd96913cac7ef15492c126d96cae6911
/games/quiz/rxp.c
c64698e305eb48f4621d5609b24686630086a4cd
[]
no_license
openbsd/src
ab97ef834fd2d5a7f6729814665e9782b586c130
9e79f3a0ebd11a25b4bff61e900cb6de9e7795e9
refs/heads/master
2023-09-02T18:54:56.624627
2023-09-02T15:16:12
2023-09-02T15:16:12
66,966,208
3,394
1,235
null
2023-08-08T02:42:25
2016-08-30T18:18:25
C
UTF-8
C
false
false
7,086
c
rxp.c
/* $OpenBSD: rxp.c,v 1.8 2009/10/27 23:59:26 deraadt Exp $ */ /* $NetBSD: rxp.c,v 1.5 1995/04/22 10:17:00 cgd Exp $ */ /*- * Copyright (c) 1991, 1993 * The Regents of the University of California. All rights reserved. * * This code is derived from software contributed to Berkeley by * Jim R. Oldroyd at The Instruction Set and Keith Gabryelski at * Commodore Business Machines. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions * are met: * 1. Redistributions of source code must retain the above copyright * notice, this list of conditions and the following disclaimer. * 2. Redistributions in binary form must reproduce the above copyright * notice, this list of conditions and the following disclaimer in the * documentation and/or other materials provided with the distribution. * 3. Neither the name of the University nor the names of its contributors * may be used to endorse or promote products derived from this software * without specific prior written permission. * * THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE * ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF * SUCH DAMAGE. */ /* * regular expression parser * * external functions and return values are: * rxp_compile(s) * TRUE success * FALSE parse failure; error message will be in char rxperr[] * metas are: * {...} optional pattern, equialent to [...|] * | alternate pattern * [...] pattern delimiters * * rxp_match(s) * TRUE string s matches compiled pattern * FALSE match failure or regexp error * * rxp_expand() * char * reverse-engineered regular expression string * NULL regexp error */ #include <stdio.h> #include <ctype.h> #include "quiz.h" /* regexp tokens, arg */ #define LIT (-1) /* literal character, char */ #define SOT (-2) /* start text anchor, - */ #define EOT (-3) /* end text anchor, - */ #define GRP_S (-4) /* start alternate grp, ptr_to_end */ #define GRP_E (-5) /* end group, - */ #define ALT_S (-6) /* alternate starts, ptr_to_next */ #define ALT_E (-7) /* alternate ends, - */ #define END (-8) /* end of regexp, - */ typedef short Rxp_t; /* type for regexp tokens */ static Rxp_t rxpbuf[RXP_LINE_SZ]; /* compiled regular expression buffer */ char rxperr[128]; /* parser error message */ static int rxp__compile(const char *, int); static char *rxp__expand(int); static int rxp__match(const char *, int, Rxp_t *, Rxp_t *, const char *); int rxp_compile(const char *s) { return (rxp__compile(s, TRUE)); } static int rxp__compile(const char *s, int first) { static Rxp_t *rp; static const char *sp; Rxp_t *grp_ptr; Rxp_t *alt_ptr; int esc, err; if (s == NULL) { (void)snprintf(rxperr, sizeof(rxperr), "null string sent to rxp_compile"); return(FALSE); } esc = 0; if (first) { rp = rxpbuf; sp = s; *rp++ = SOT; /* auto-anchor: pat is really ^pat$ */ *rp++ = GRP_S; /* auto-group: ^pat$ is really ^[pat]$ */ *rp++ = 0; } *rp++ = ALT_S; alt_ptr = rp; *rp++ = 0; for (; *sp; ++sp) { if (rp - rxpbuf >= RXP_LINE_SZ - 4) { (void)snprintf(rxperr, sizeof(rxperr), "regular expression too long %s", s); return (FALSE); } if (*sp == ':' && !esc) break; if (esc) { *rp++ = LIT; *rp++ = *sp; esc = 0; } else switch (*sp) { case '\\': esc = 1; break; case '{': case '[': *rp++ = GRP_S; grp_ptr = rp; *rp++ = 0; sp++; if ((err = rxp__compile(s, FALSE)) != TRUE) return (err); *rp++ = GRP_E; *grp_ptr = rp - rxpbuf; break; case '}': case ']': case '|': *rp++ = ALT_E; *alt_ptr = rp - rxpbuf; if (*sp != ']') { *rp++ = ALT_S; alt_ptr = rp; *rp++ = 0; } if (*sp != '|') { if (*sp != ']') { *rp++ = ALT_E; *alt_ptr = rp - rxpbuf; } if (first) { (void)snprintf(rxperr, sizeof(rxperr), "unmatched alternator in regexp %s", s); return (FALSE); } return (TRUE); } break; default: *rp++ = LIT; *rp++ = *sp; esc = 0; break; } } if (!first) { (void)snprintf(rxperr, sizeof(rxperr), "unmatched alternator in regexp %s", s); return (FALSE); } *rp++ = ALT_E; *alt_ptr = rp - rxpbuf; *rp++ = GRP_E; *(rxpbuf + 2) = rp - rxpbuf; *rp++ = EOT; *rp = END; return (TRUE); } /* * match string against compiled regular expression */ int rxp_match(const char *s) { return (rxp__match(s, TRUE, NULL, NULL, NULL)); } /* * j_succ : jump here on successful alt match * j_fail : jump here on failed match * sp_fail: reset sp to here on failed match */ static int rxp__match(const char *s, int first, Rxp_t *j_succ, Rxp_t *j_fail, const char *sp_fail) { static Rxp_t *rp; static const char *sp; int ch; Rxp_t *grp_end = NULL; int err; if (first) { rp = rxpbuf; sp = s; } while (rp < rxpbuf + RXP_LINE_SZ && *rp != END) switch(*rp) { case LIT: rp++; ch = isascii(*rp) && isupper(*rp) ? tolower(*rp) : *rp; if (ch != *sp++) { rp = j_fail; sp = sp_fail; return (TRUE); } rp++; break; case SOT: if (sp != s) return (FALSE); rp++; break; case EOT: if (*sp != 0) return (FALSE); rp++; break; case GRP_S: rp++; grp_end = rxpbuf + *rp++; break; case ALT_S: rp++; if ((err = rxp__match(sp, FALSE, grp_end, rxpbuf + *rp++, sp)) != TRUE) return (err); break; case ALT_E: rp = j_succ; return (TRUE); case GRP_E: default: return (FALSE); } return (*rp != END ? FALSE : TRUE); } /* * Reverse engineer the regular expression, by picking first of all alternates. */ char * rxp_expand(void) { return (rxp__expand(TRUE)); } static char * rxp__expand(int first) { static char buf[RXP_LINE_SZ/2]; static Rxp_t *rp; static char *bp; Rxp_t *grp_ptr; char *err; if (first) { rp = rxpbuf; bp = buf; } while (rp < rxpbuf + RXP_LINE_SZ && *rp != END) switch(*rp) { case LIT: rp++; *bp++ = *rp++; break; case GRP_S: rp++; grp_ptr = rxpbuf + *rp; rp++; if ((err = rxp__expand(FALSE)) == NULL) return (err); rp = grp_ptr; break; case ALT_E: return (buf); case ALT_S: rp++; /* FALLTHROUGH */ case SOT: case EOT: case GRP_E: rp++; break; default: return (NULL); } if (first) { if (*rp != END) return (NULL); *bp = '\0'; } return (buf); }
312a571b46c38a7e99f1ae95d876c4fd4d3ab7ca
0480082b1a9f42e251ffb3403e9a1f8728e6995c
/src/api/haskell/external/unix-2.7.2.2/cbits/execvpe.c
708b8b2c50c887982463036247516f5ca72c6023
[ "MIT", "LGPL-2.0-or-later", "FSFAP", "ISC", "LicenseRef-scancode-warranty-disclaimer", "GPL-3.0-or-later", "BSL-1.0", "Apache-2.0", "LGPL-2.0-only", "Autoconf-exception-2.0", "GPL-2.0-or-later", "OCaml-LGPL-linking-exception", "MPL-1.0", "GPL-3.0-only", "Autoconf-exception-macro", "BSD-2-Clause", "GPL-1.0-or-later", "BSD-3-Clause", "LicenseRef-scancode-other-permissive", "MPL-2.0", "Python-2.0", "LicenseRef-scancode-unknown-license-reference" ]
permissive
CloudI/CloudI
5cc5cd2e97cbc737d3b412fe2fe267bd748b357d
0dd802a50b397cbd41ae04fb2e77a3615d3f2dd0
refs/heads/develop
2023-08-31T13:04:24.814582
2023-08-26T21:56:46
2023-08-26T21:56:46
293,999
289
35
MIT
2018-10-04T16:17:36
2009-09-01T06:11:16
Erlang
UTF-8
C
false
false
5,007
c
execvpe.c
/* ----------------------------------------------------------------------------- (c) The University of Glasgow 1995-2004 Our low-level exec() variant. Note: __hsunix_execvpe() is very similiar to the function execvpe(3) as provided by glibc 2.11 and later. However, if execvpe(3) is available, we use that instead. -------------------------------------------------------------------------- */ #include "HsUnixConfig.h" #include <errno.h> #include <sys/types.h> #if HAVE_SYS_WAIT_H # include <sys/wait.h> #endif #include <unistd.h> #include <sys/time.h> #include <stdlib.h> #include <string.h> #include <errno.h> #define HSUNIX_EXECVPE_H_NO_COMPAT #include "execvpe.h" #if !defined(execvpe) && !HAVE_DECL_EXECVPE // On some archs such as AIX, the prototype may be missing int execvpe(const char *file, char *const argv[], char *const envp[]); #endif /* * We want the search semantics of execvp, but we want to provide our * own environment, like execve. The following copyright applies to * this code, as it is a derivative of execvp: *- * Copyright (c) 1991 The Regents of the University of California. * All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions * are met: * 1. Redistributions of source code must retain the above copyright * notice, this list of conditions and the following disclaimer. * 2. Redistributions in binary form must reproduce the above copyright * notice, this list of conditions and the following disclaimer in the * documentation and/or other materials provided with the distribution. * 3. All advertising materials mentioning features or use of this software * must display the following acknowledgement: * This product includes software developed by the University of * California, Berkeley and its contributors. * 4. Neither the name of the University nor the names of its contributors * may be used to endorse or promote products derived from this software * without specific prior written permission. * * THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE * ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF * SUCH DAMAGE. */ int __hsunix_execvpe(const char *name, char *const argv[], char *const envp[]) { #if HAVE_EXECVPE return execvpe(name, argv, envp); #else register int lp, ln; register char *p; int eacces=0, etxtbsy=0; char *bp, *cur, *path, *buf = 0; /* If it's an absolute or relative path name, it's easy. */ if (strchr(name, '/')) { bp = (char *) name; cur = path = buf = NULL; goto retry; } /* Get the path we're searching. */ if (!(path = getenv("PATH"))) { # ifdef HAVE_CONFSTR ln = confstr(_CS_PATH, NULL, 0); if ((cur = path = malloc(ln + 1)) != NULL) { path[0] = ':'; (void) confstr (_CS_PATH, path + 1, ln); } # else if ((cur = path = malloc(1 + 1)) != NULL) { path[0] = ':'; path[1] = '\0'; } # endif } else cur = path = strdup(path); if (path == NULL || (bp = buf = malloc(strlen(path)+strlen(name)+2)) == NULL) goto done; while (cur != NULL) { p = cur; if ((cur = strchr(cur, ':')) != NULL) *cur++ = '\0'; /* * It's a SHELL path -- double, leading and trailing colons mean the current * directory. */ if (!*p) { p = "."; lp = 1; } else lp = strlen(p); ln = strlen(name); memcpy(buf, p, lp); buf[lp] = '/'; memcpy(buf + lp + 1, name, ln); buf[lp + ln + 1] = '\0'; retry: (void) execve(bp, argv, envp); switch (errno) { case EACCES: eacces = 1; break; case ENOTDIR: case ENOENT: break; case ENOEXEC: { register size_t cnt; register char **ap; for (cnt = 0, ap = (char **) argv; *ap; ++ap, ++cnt) ; if ((ap = malloc((cnt + 2) * sizeof(char *))) != NULL) { memcpy(ap + 2, argv + 1, cnt * sizeof(char *)); ap[0] = "sh"; ap[1] = bp; (void) execve("/bin/sh", ap, envp); free(ap); } goto done; } case ETXTBSY: if (etxtbsy < 3) (void) sleep(++etxtbsy); goto retry; default: goto done; } } if (eacces) errno = EACCES; else if (!errno) errno = ENOENT; done: if (path) free(path); if (buf) free(buf); return (-1); #endif }
44dfa20d5fd21af7df5efae9b9025153f5ad0e5e
e4c1163b2d89b79b0843bb7668d349b2e43500a9
/Pods/Headers/Public/MJRefresh/MJRefreshTrailer.h
6d984b358e6d6f06f178f9324300338ab8c08a31
[ "MIT" ]
permissive
summerxx27/XTAnimations
278e7eb9497beb20f95b36bd56ad13343b17ca5e
44358bf5520a675d622380162b249787f48d6378
refs/heads/master
2023-08-30T18:41:51.802409
2023-06-16T08:06:43
2023-06-16T08:06:43
63,325,252
196
39
null
2016-12-20T16:50:55
2016-07-14T10:04:09
Objective-C
UTF-8
C
false
false
55
h
MJRefreshTrailer.h
../../../MJRefresh/MJRefresh/include/MJRefreshTrailer.h
46da22fabf6dc5bb6a77fc501fa4ae217d1c5a62
fdbb74a95924e2677466614f6ab6e2bb13b2a95a
/third_party/ctags/parse.c
692d57e93e30779beb704213e168c85435c51cd5
[ "ISC", "GPL-2.0-only" ]
permissive
jart/cosmopolitan
fb11b5658939023977060a7c6c71a74093d9cb44
0d748ad58e1063dd1f8560f18a0c75293b9415b7
refs/heads/master
2023-09-06T09:17:29.303607
2023-09-02T03:49:13
2023-09-02T03:50:18
272,457,606
11,887
435
ISC
2023-09-14T17:47:58
2020-06-15T14:16:13
C
UTF-8
C
false
false
17,393
c
parse.c
// clang-format off /* * $Id: parse.c 597 2007-07-31 05:35:30Z dhiebert $ * * Copyright (c) 1996-2003, Darren Hiebert * * This source code is released for free distribution under the terms of the * GNU General Public License. * * This module contains functions for managing source languages and * dispatching files to the appropriate language parser. */ /* * INCLUDE FILES */ #include "third_party/ctags/general.h" /* must always come first */ #include "libc/mem/alg.h" #include "libc/str/str.h" #include "third_party/ctags/debug.h" #include "third_party/ctags/entry.h" #include "third_party/ctags/main.h" #define OPTION_WRITE #include "third_party/ctags/options.h" #include "third_party/ctags/parsers.h" #include "third_party/ctags/read.h" #include "third_party/ctags/routines.h" #include "third_party/ctags/vstring.h" /* * DATA DEFINITIONS */ static parserDefinitionFunc* BuiltInParsers[] = { PARSER_LIST }; static parserDefinition** LanguageTable = NULL; static unsigned int LanguageCount = 0; /* * FUNCTION DEFINITIONS */ extern void makeSimpleTag ( const vString* const name, kindOption* const kinds, const int kind) { if (kinds [kind].enabled && name != NULL && vStringLength (name) > 0) { tagEntryInfo e; initTagEntry (&e, vStringValue (name)); e.kindName = kinds [kind].name; e.kind = kinds [kind].letter; makeTagEntry (&e); } } /* * parserDescription mapping management */ extern parserDefinition* parserNew (const char* name) { parserDefinition* result = xCalloc (1, parserDefinition); result->name = eStrdup (name); return result; } extern const char *getLanguageName (const langType language) { const char* result; if (language == LANG_IGNORE) result = "unknown"; else { Assert (0 <= language && language < (int) LanguageCount); result = LanguageTable [language]->name; } return result; } extern langType getNamedLanguage (const char *const name) { langType result = LANG_IGNORE; unsigned int i; Assert (name != NULL); for (i = 0 ; i < LanguageCount && result == LANG_IGNORE ; ++i) { const parserDefinition* const lang = LanguageTable [i]; if (lang->name != NULL) if (strcasecmp (name, lang->name) == 0) result = i; } return result; } static langType getExtensionLanguage (const char *const extension) { langType result = LANG_IGNORE; unsigned int i; for (i = 0 ; i < LanguageCount && result == LANG_IGNORE ; ++i) { stringList* const exts = LanguageTable [i]->currentExtensions; if (exts != NULL && stringListExtensionMatched (exts, extension)) result = i; } return result; } static langType getPatternLanguage (const char *const fileName) { langType result = LANG_IGNORE; const char* base = baseFilename (fileName); unsigned int i; for (i = 0 ; i < LanguageCount && result == LANG_IGNORE ; ++i) { stringList* const ptrns = LanguageTable [i]->currentPatterns; if (ptrns != NULL && stringListFileMatched (ptrns, base)) result = i; } return result; } #ifdef SYS_INTERPRETER /* The name of the language interpreter, either directly or as the argument * to "env". */ static vString* determineInterpreter (const char* const cmd) { vString* const interpreter = vStringNew (); const char* p = cmd; do { vStringClear (interpreter); for ( ; isspace ((int) *p) ; ++p) ; /* no-op */ for ( ; *p != '\0' && ! isspace ((int) *p) ; ++p) vStringPut (interpreter, (int) *p); vStringTerminate (interpreter); } while (strcmp (vStringValue (interpreter), "env") == 0); return interpreter; } static langType getInterpreterLanguage (const char *const fileName) { langType result = LANG_IGNORE; FILE* const fp = fopen (fileName, "r"); if (fp != NULL) { vString* const vLine = vStringNew (); const char* const line = readLine (vLine, fp); if (line != NULL && line [0] == '#' && line [1] == '!') { const char* const lastSlash = strrchr (line, '/'); const char *const cmd = lastSlash != NULL ? lastSlash+1 : line+2; vString* const interpreter = determineInterpreter (cmd); result = getExtensionLanguage (vStringValue (interpreter)); if (result == LANG_IGNORE) result = getNamedLanguage (vStringValue (interpreter)); vStringDelete (interpreter); } vStringDelete (vLine); fclose (fp); } return result; } #endif extern langType getFileLanguage (const char *const fileName) { langType language = Option.language; if (language == LANG_AUTO) { language = getExtensionLanguage (fileExtension (fileName)); if (language == LANG_IGNORE) language = getPatternLanguage (fileName); #ifdef SYS_INTERPRETER if (language == LANG_IGNORE) { fileStatus *status = eStat (fileName); if (status->isExecutable) language = getInterpreterLanguage (fileName); } #endif } return language; } extern void printLanguageMap (const langType language) { boolean first = TRUE; unsigned int i; stringList* map = LanguageTable [language]->currentPatterns; Assert (0 <= language && language < (int) LanguageCount); for (i = 0 ; map != NULL && i < stringListCount (map) ; ++i) { printf ("%s(%s)", (first ? "" : " "), vStringValue (stringListItem (map, i))); first = FALSE; } map = LanguageTable [language]->currentExtensions; for (i = 0 ; map != NULL && i < stringListCount (map) ; ++i) { printf ("%s.%s", (first ? "" : " "), vStringValue (stringListItem (map, i))); first = FALSE; } } extern void installLanguageMapDefault (const langType language) { parserDefinition* lang; Assert (0 <= language && language < (int) LanguageCount); lang = LanguageTable [language]; if (lang->currentPatterns != NULL) stringListDelete (lang->currentPatterns); if (lang->currentExtensions != NULL) stringListDelete (lang->currentExtensions); if (lang->patterns == NULL) lang->currentPatterns = stringListNew (); else { lang->currentPatterns = stringListNewFromArgv (lang->patterns); } if (lang->extensions == NULL) lang->currentExtensions = stringListNew (); else { lang->currentExtensions = stringListNewFromArgv (lang->extensions); } if (Option.verbose) printLanguageMap (language); verbose ("\n"); } extern void installLanguageMapDefaults (void) { unsigned int i; for (i = 0 ; i < LanguageCount ; ++i) { verbose (" %s: ", getLanguageName (i)); installLanguageMapDefault (i); } } extern void clearLanguageMap (const langType language) { Assert (0 <= language && language < (int) LanguageCount); stringListClear (LanguageTable [language]->currentPatterns); stringListClear (LanguageTable [language]->currentExtensions); } extern void addLanguagePatternMap (const langType language, const char* ptrn) { vString* const str = vStringNewInit (ptrn); parserDefinition* lang; Assert (0 <= language && language < (int) LanguageCount); lang = LanguageTable [language]; if (lang->currentPatterns == NULL) lang->currentPatterns = stringListNew (); stringListAdd (lang->currentPatterns, str); } extern boolean removeLanguageExtensionMap (const char *const extension) { boolean result = FALSE; unsigned int i; for (i = 0 ; i < LanguageCount && ! result ; ++i) { stringList* const exts = LanguageTable [i]->currentExtensions; if (exts != NULL && stringListRemoveExtension (exts, extension)) { verbose (" (removed from %s)", getLanguageName (i)); result = TRUE; } } return result; } extern void addLanguageExtensionMap ( const langType language, const char* extension) { vString* const str = vStringNewInit (extension); Assert (0 <= language && language < (int) LanguageCount); removeLanguageExtensionMap (extension); stringListAdd (LanguageTable [language]->currentExtensions, str); } extern void enableLanguage (const langType language, const boolean state) { Assert (0 <= language && language < (int) LanguageCount); LanguageTable [language]->enabled = state; } extern void enableLanguages (const boolean state) { unsigned int i; for (i = 0 ; i < LanguageCount ; ++i) enableLanguage (i, state); } static void initializeParsers (void) { unsigned int i; for (i = 0 ; i < LanguageCount ; ++i) if (LanguageTable [i]->initialize != NULL) (LanguageTable [i]->initialize) ((langType) i); } extern void initializeParsing (void) { unsigned int builtInCount; unsigned int i; builtInCount = sizeof (BuiltInParsers) / sizeof (BuiltInParsers [0]); LanguageTable = xMalloc (builtInCount, parserDefinition*); verbose ("Installing parsers: "); for (i = 0 ; i < builtInCount ; ++i) { parserDefinition* const def = (*BuiltInParsers [i]) (); if (def != NULL) { boolean accepted = FALSE; if (def->name == NULL || def->name[0] == '\0') error (FATAL, "parser definition must contain name\n"); else if (def->regex) { def->parser = findRegexTags; accepted = TRUE; } else if ((def->parser == NULL) == (def->parser2 == NULL)) error (FATAL, "%s parser definition must define one and only one parsing routine\n", def->name); else accepted = TRUE; if (accepted) { verbose ("%s%s", i > 0 ? ", " : "", def->name); def->id = LanguageCount++; LanguageTable [def->id] = def; } } } verbose ("\n"); enableLanguages (TRUE); initializeParsers (); } extern void freeParserResources (void) { unsigned int i; for (i = 0 ; i < LanguageCount ; ++i) { parserDefinition* const lang = LanguageTable [i]; freeList (&lang->currentPatterns); freeList (&lang->currentExtensions); eFree (lang->name); lang->name = NULL; eFree (lang); } if (LanguageTable != NULL) eFree (LanguageTable); LanguageTable = NULL; LanguageCount = 0; } /* * Option parsing */ extern void processLanguageDefineOption ( const char *const option, const char *const parameter __unused) { if (parameter [0] == '\0') error (WARNING, "No language specified for \"%s\" option", option); else if (getNamedLanguage (parameter) != LANG_IGNORE) error (WARNING, "Language \"%s\" already defined", parameter); else { unsigned int i = LanguageCount++; parserDefinition* const def = parserNew (parameter); def->parser = findRegexTags; def->currentPatterns = stringListNew (); def->currentExtensions = stringListNew (); def->regex = TRUE; def->enabled = TRUE; def->id = i; LanguageTable = xRealloc (LanguageTable, i + 1, parserDefinition*); LanguageTable [i] = def; } } static kindOption *langKindOption (const langType language, const int flag) { unsigned int i; kindOption* result = NULL; const parserDefinition* lang; Assert (0 <= language && language < (int) LanguageCount); lang = LanguageTable [language]; for (i=0 ; i < lang->kindCount && result == NULL ; ++i) if (lang->kinds [i].letter == flag) result = &lang->kinds [i]; return result; } static void disableLanguageKinds (const langType language) { const parserDefinition* lang; Assert (0 <= language && language < (int) LanguageCount); lang = LanguageTable [language]; if (lang->regex) disableRegexKinds (language); else { unsigned int i; for (i = 0 ; i < lang->kindCount ; ++i) lang->kinds [i].enabled = FALSE; } } static boolean enableLanguageKind ( const langType language, const int kind, const boolean mode) { boolean result = FALSE; if (LanguageTable [language]->regex) result = enableRegexKind (language, kind, mode); else { kindOption* const opt = langKindOption (language, kind); if (opt != NULL) { opt->enabled = mode; result = TRUE; } } return result; } static void processLangKindOption ( const langType language, const char *const option, const char *const parameter) { const char *p = parameter; boolean mode = TRUE; int c; Assert (0 <= language && language < (int) LanguageCount); if (*p != '+' && *p != '-') disableLanguageKinds (language); while ((c = *p++) != '\0') switch (c) { case '+': mode = TRUE; break; case '-': mode = FALSE; break; default: if (! enableLanguageKind (language, c, mode)) error (WARNING, "Unsupported parameter '%c' for --%s option", c, option); break; } } extern boolean processKindOption ( const char *const option, const char *const parameter) { boolean handled = FALSE; const char* const dash = strchr (option, '-'); if (dash != NULL && (strcmp (dash + 1, "kinds") == 0 || strcmp (dash + 1, "types") == 0)) { langType language; vString* langName = vStringNew (); vStringNCopyS (langName, option, dash - option); language = getNamedLanguage (vStringValue (langName)); if (language == LANG_IGNORE) error (WARNING, "Unknown language \"%s\" in \"%s\" option", vStringValue (langName), option); else processLangKindOption (language, option, parameter); vStringDelete (langName); handled = TRUE; } return handled; } static void printLanguageKind (const kindOption* const kind, boolean indent) { const char *const indentation = indent ? " " : ""; printf ("%s%c %s%s\n", indentation, kind->letter, kind->description != NULL ? kind->description : (kind->name != NULL ? kind->name : ""), kind->enabled ? "" : " [off]"); } static void printKinds (langType language, boolean indent) { const parserDefinition* lang; Assert (0 <= language && language < (int) LanguageCount); lang = LanguageTable [language]; if (lang->kinds != NULL || lang->regex) { unsigned int i; for (i = 0 ; i < lang->kindCount ; ++i) printLanguageKind (lang->kinds + i, indent); printRegexKinds (language, indent); } } extern void printLanguageKinds (const langType language) { if (language == LANG_AUTO) { unsigned int i; for (i = 0 ; i < LanguageCount ; ++i) { const parserDefinition* const lang = LanguageTable [i]; printf ("%s%s\n", lang->name, lang->enabled ? "" : " [disabled]"); printKinds (i, TRUE); } } else printKinds (language, FALSE); } static void printMaps (const langType language) { const parserDefinition* lang; unsigned int i; Assert (0 <= language && language < (int) LanguageCount); lang = LanguageTable [language]; printf ("%-8s", lang->name); if (lang->currentExtensions != NULL) for (i = 0 ; i < stringListCount (lang->currentExtensions) ; ++i) printf (" *.%s", vStringValue ( stringListItem (lang->currentExtensions, i))); if (lang->currentPatterns != NULL) for (i = 0 ; i < stringListCount (lang->currentPatterns) ; ++i) printf (" %s", vStringValue ( stringListItem (lang->currentPatterns, i))); putchar ('\n'); } extern void printLanguageMaps (const langType language) { if (language == LANG_AUTO) { unsigned int i; for (i = 0 ; i < LanguageCount ; ++i) printMaps (i); } else printMaps (language); } static void printLanguage (const langType language) { const parserDefinition* lang; Assert (0 <= language && language < (int) LanguageCount); lang = LanguageTable [language]; if (lang->kinds != NULL || lang->regex) printf ("%s%s\n", lang->name, lang->enabled ? "" : " [disabled]"); } extern void printLanguageList (void) { unsigned int i; for (i = 0 ; i < LanguageCount ; ++i) printLanguage (i); } /* * File parsing */ static void makeFileTag (const char *const fileName) { if (Option.include.fileNames) { tagEntryInfo tag; initTagEntry (&tag, baseFilename (fileName)); tag.isFileEntry = TRUE; tag.lineNumberEntry = TRUE; tag.lineNumber = 1; tag.kindName = "file"; tag.kind = 'F'; makeTagEntry (&tag); } } static boolean createTagsForFile ( const char *const fileName, const langType language, const unsigned int passCount) { boolean retried = FALSE; Assert (0 <= language && language < (int) LanguageCount); if (fileOpen (fileName, language)) { const parserDefinition* const lang = LanguageTable [language]; if (Option.etags) beginEtagsFile (); makeFileTag (fileName); if (lang->parser != NULL) lang->parser (); else if (lang->parser2 != NULL) retried = lang->parser2 (passCount); if (Option.etags) endEtagsFile (getSourceFileTagPath ()); fileClose (); } return retried; } static boolean createTagsWithFallback ( const char *const fileName, const langType language) { const unsigned long numTags = TagFile.numTags.added; fpos_t tagFilePosition; unsigned int passCount = 0; boolean tagFileResized = FALSE; fgetpos (TagFile.fp, &tagFilePosition); while (createTagsForFile (fileName, language, ++passCount)) { /* Restore prior state of tag file. */ fsetpos (TagFile.fp, &tagFilePosition); TagFile.numTags.added = numTags; tagFileResized = TRUE; } return tagFileResized; } extern boolean parseFile (const char *const fileName) { boolean tagFileResized = FALSE; langType language = Option.language; if (Option.language == LANG_AUTO) language = getFileLanguage (fileName); Assert (language != LANG_AUTO); if (language == LANG_IGNORE) verbose ("ignoring %s (unknown language)\n", fileName); else if (! LanguageTable [language]->enabled) verbose ("ignoring %s (language disabled)\n", fileName); else { if (Option.filter) openTagFile (); tagFileResized = createTagsWithFallback (fileName, language); if (Option.filter) closeTagFile (tagFileResized); addTotals (1, 0L, 0L); return tagFileResized; } return tagFileResized; } /* vi:set tabstop=4 shiftwidth=4 nowrap: */
85287c29af72b8bdb75c5314ed9cb9f5ba070048
9ceacf33fd96913cac7ef15492c126d96cae6911
/regress/sys/altivec_ast/vecast.c
4ff9e62f50cf6d28c7ad3d66d4276ca0248189f8
[]
no_license
openbsd/src
ab97ef834fd2d5a7f6729814665e9782b586c130
9e79f3a0ebd11a25b4bff61e900cb6de9e7795e9
refs/heads/master
2023-09-02T18:54:56.624627
2023-09-02T15:16:12
2023-09-02T15:16:12
66,966,208
3,394
1,235
null
2023-08-08T02:42:25
2016-08-30T18:18:25
C
UTF-8
C
false
false
6,107
c
vecast.c
/* $OpenBSD: vecast.c,v 1.1 2022/10/22 17:50:28 gkoehler Exp $ */ /* * Copyright (c) 2022 George Koehler <gkoehler@openbsd.org> * * Permission to use, copy, modify, and distribute this software for any * purpose with or without fee is hereby granted, provided that the above * copyright notice and this permission notice appear in all copies. * * THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES * WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF * MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR * ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES * WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN * ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF * OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. */ #include <altivec.h> #include <err.h> #include <math.h> #include <stdio.h> struct double4 { double d[4]; }; union vu { vector float vf; vector int vi; vector unsigned vu; float f[4]; int i[4]; unsigned u[4]; }; #define AD(a, b, c, d) (struct double4){a, b, c, d} #define VF(a, b, c, d) (vector float)(a, b, c, d) #define VI(a, b, c, d) (vector int)(a, b, c, d) #define VU(a, b, c, d) (vector unsigned)(a, b, c, d) #define rsqrt(f) (1.0 / sqrt(f)) int fail; void ck_equal(const char *what, vector float out, vector float answer) { if (vec_any_ne(out, answer)) { union vu a, b; a.vf = out; b.vf = answer; warnx("%s: {%a, %a, %a, %a} should be {%a, %a, %a, %a}", what, a.f[0], a.f[1], a.f[2], a.f[3], b.f[0], b.f[1], b.f[2], b.f[3]); fail = 1; } } void ck_equal_i(const char *what, vector int out, vector int answer) { if (vec_any_ne(out, answer)) { union vu a, b; a.vi = out; b.vi = answer; warnx("%s: {%d, %d, %d, %d} should be {%d, %d, %d, %d}", what, a.i[0], a.i[1], a.i[2], a.i[3], b.i[0], b.i[1], b.i[2], b.i[3]); fail = 1; } } void ck_equal_u(const char *what, vector unsigned out, vector unsigned answer) { if (vec_any_ne(out, answer)) { union vu a, b; a.vi = out; b.vi = answer; warnx("%s: {%u, %u, %u, %u} should be {%u, %u, %u, %u}", what, a.u[0], a.u[1], a.u[2], a.u[3], b.u[0], b.u[1], b.u[2], b.u[3]); fail = 1; } } enum error_check {REL_1_IN, ABS_1_IN}; /* Checks that error is at most 1 in err_den. */ void ck_estimate(const char *what, vector float out, struct double4 answer, enum error_check which, double err_den) { union vu u; int i, warned = 0; u.vf = out; for (i = 0; i < 4; i++) { double estimate = u.f[i]; double target = answer.d[i]; double error; switch (which) { case REL_1_IN: /* relative error */ error = fabs(target / (estimate - target)); break; case ABS_1_IN: /* absolute error */ error = fabs(1 / (estimate - target)); break; default: errx(1, "invalid check"); } if (error < err_den) { if (!warned) { warnx("%s: {%a, %a, %a, %a} should be " "near {%a, %a, %a, %a} (1/%g)", what, u.f[0], u.f[1], u.f[2], u.f[3], answer.d[0], answer.d[1], answer.d[2], answer.d[3], err_den); warned = 1; fail = 1; } warnx("%a is off %a by 1/%g", estimate, target, error); } } } /* * Tries altivec with denormal or subnormal floats. * These are single-precision floats f, where * 0 < |f| < 2**-126 = 0x1p-126 = 0x10p-130 = 1.17549435E-38F */ int main(void) { struct double4 dan; volatile vector float in1, in2, in3; vector float ans; vector int ian; vector unsigned uan; /* in1 + in2 */ in1 = VF(10, 0x10p-140, 0x20p-130, -0x2000p-134); in2 = VF( 4, 0x5p-140, -0x1p-130, 0x1fffp-134); ans = VF(14, 0x15p-140, 0x1fp-130, -0x1p-134); ck_equal("vec_add", vec_add(in1, in2), ans); /* in1 - in2 */ in1 = VF(0x4000p-134, 10, 0x10p-140, 0x3p-130); in2 = VF(0x3ffep-134, 4, 0x5p-140, 0x40p-130); ans = VF( 0x2p-134, 6, 0xbp-140, -0x3dp-130); ck_equal("vec_sub", vec_sub(in1, in2), ans); /* in1 * in2 + in3 */ in1 = VF( 0x6p-70, 0x6p-140, 6, 0x6p-100); in2 = VF( 0x7p-70, 0x7p50, 7, 0x7p-30); in3 = VF( 0, 0, 1, -0x20p-130); ans = VF(0x2ap-140, 0x2ap-90, 43, 0xap-130); ck_equal("vec_madd", vec_madd(in1, in2, in3), ans); /* in3 - in1 * in2 */ in1 = VF( 0xbp-30, 0xbp-70, 0xbp44, 11); in2 = VF( 0x3p-100, 0x3p-70, -0x3p-138, 3); in3 = VF(0x25p-130, 0, 0, 35); ans = VF( 0x4p-130, -0x21p-140, 0x21p-94, 2); ck_equal("vec_nmsub", vec_nmsub(in1, in2, in3), ans); /* 1 / in1 */ in1 = VF( 3, 0x3p126, 0x3p-126, 0x1p127); dan = AD(1.0 / 3, 1.0 / 0x3p126, 1.0 / 0x3p-126, 0x1p-127); ck_estimate("vec_re", vec_re(in1), dan, REL_1_IN, 4096); /* 1 / sqrt(in1) */ in1 = VF(1, 2, 0x1p-128, 0x5p-135); dan = AD(1, rsqrt(2), rsqrt(0x1p-128), rsqrt(0x5p-135)); ck_estimate("vec_rsqrt", vec_rsqrte(in1), dan, REL_1_IN, 4096); /* log2(in1) */ in1 = VF(0x1p-130, 0x1p-149, 32, 0x1p-10); dan = AD( -130, -149, 5, -10); ck_estimate("vec_loge", vec_loge(in1), dan, ABS_1_IN, 32); in1 = VF( 0x123p-139, 0xabcp-145, 1, 1); dan = AD(log2(0x123p-139), log2(0xabcp-145), 0, 0); ck_estimate("vec_loge", vec_loge(in1), dan, ABS_1_IN, 32); /* 2**in1 */ in1 = VF( -149, -138, -127, 10); ans = VF(0x1p-149, 0x1p-138, 0x1p-127, 1024); ck_equal("vec_expte", vec_expte(in1), ans); in1 = VF( -10, -145.3, -136.9, -127.1); dan = AD(0x1p-10, exp2(-145.3), exp2(-136.9), exp2(-127.1)); ck_estimate("vec_expte", vec_expte(in1), dan, REL_1_IN, 16); /* (int)(in1 * 2**exponent) */ in1 = VF(0x1p-127, 2.34, -0xfedp-140, -19.8); ian = VI( 0, 2, 0, -19); ck_equal_i("vec_cts", vec_cts(in1, 0), ian); in1 = VF(0x1p-113, -1, -0xabcp-143, 0x1fp-10); ian = VI( 0, -1024, 0, 0x1f); ck_equal_i("vec_cts", vec_cts(in1, 10), ian); /* (unsigned)(in1 * 2**exponent) */ in1 = VF(0x1.ap-130, 0x1.ep-140, 24000012, 0); uan = VU( 0, 0, 3072001536, 0); ck_equal_u("vec_ctu", vec_ctu(in1, 7), uan); return fail; }
4de5c2c486b8e59f9de5027a49c4dfc604febac7
7eaf54a78c9e2117247cb2ab6d3a0c20719ba700
/SOFTWARE/A64-TERES/linux-a64/arch/arm64/include/asm/bitops.h
aa5b59d6ba43a1e2e893923ca0bf57acc731909c
[ "Linux-syscall-note", "GPL-2.0-only", "GPL-1.0-or-later", "LicenseRef-scancode-free-unknown", "Apache-2.0" ]
permissive
OLIMEX/DIY-LAPTOP
ae82f4ee79c641d9aee444db9a75f3f6709afa92
a3fafd1309135650bab27f5eafc0c32bc3ca74ee
refs/heads/rel3
2023-08-04T01:54:19.483792
2023-04-03T07:18:12
2023-04-03T07:18:12
80,094,055
507
92
Apache-2.0
2023-04-03T07:05:59
2017-01-26T07:25:50
C
UTF-8
C
false
false
2,127
h
bitops.h
/* * Copyright (C) 2012 ARM Ltd. * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License version 2 as * published by the Free Software Foundation. * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU General Public License * along with this program. If not, see <http://www.gnu.org/licenses/>. */ #ifndef __ASM_BITOPS_H #define __ASM_BITOPS_H #include <linux/compiler.h> #include <asm/barrier.h> /* * clear_bit may not imply a memory barrier */ #ifndef smp_mb__before_clear_bit #define smp_mb__before_clear_bit() smp_mb() #define smp_mb__after_clear_bit() smp_mb() #endif #ifndef _LINUX_BITOPS_H #error only <linux/bitops.h> can be included directly #endif /* * Little endian assembly atomic bitops. */ extern void set_bit(int nr, volatile unsigned long *p); extern void clear_bit(int nr, volatile unsigned long *p); extern void change_bit(int nr, volatile unsigned long *p); extern int test_and_set_bit(int nr, volatile unsigned long *p); extern int test_and_clear_bit(int nr, volatile unsigned long *p); extern int test_and_change_bit(int nr, volatile unsigned long *p); #include <asm-generic/bitops/builtin-__ffs.h> #include <asm-generic/bitops/builtin-ffs.h> #include <asm-generic/bitops/builtin-__fls.h> #include <asm-generic/bitops/builtin-fls.h> #include <asm-generic/bitops/ffz.h> #include <asm-generic/bitops/fls64.h> #include <asm-generic/bitops/find.h> #include <asm-generic/bitops/sched.h> #include <asm-generic/bitops/hweight.h> #include <asm-generic/bitops/lock.h> #include <asm-generic/bitops/non-atomic.h> #include <asm-generic/bitops/le.h> /* * Ext2 is defined to use little-endian byte ordering. */ #define ext2_set_bit_atomic(lock, nr, p) test_and_set_bit_le(nr, p) #define ext2_clear_bit_atomic(lock, nr, p) test_and_clear_bit_le(nr, p) #endif /* __ASM_BITOPS_H */
cd01329af50f902113b548934deff83528839aa9
7eaf54a78c9e2117247cb2ab6d3a0c20719ba700
/SOFTWARE/A64-TERES/linux-a64/drivers/net/wireless/bcmdhd/include/bcmcdc.h
76788d48edadb832a78d0cac6def3bd4edcdfbab
[ "Linux-syscall-note", "GPL-2.0-only", "GPL-1.0-or-later", "LicenseRef-scancode-free-unknown", "Apache-2.0", "LicenseRef-scancode-warranty-disclaimer" ]
permissive
OLIMEX/DIY-LAPTOP
ae82f4ee79c641d9aee444db9a75f3f6709afa92
a3fafd1309135650bab27f5eafc0c32bc3ca74ee
refs/heads/rel3
2023-08-04T01:54:19.483792
2023-04-03T07:18:12
2023-04-03T07:18:12
80,094,055
507
92
Apache-2.0
2023-04-03T07:05:59
2017-01-26T07:25:50
C
UTF-8
C
false
false
4,492
h
bcmcdc.h
/* * CDC network driver ioctl/indication encoding * Broadcom 802.11abg Networking Device Driver * * Definitions subject to change without notice. * * $Copyright Open Broadcom Corporation$ * * $Id: bcmcdc.h 318308 2012-03-02 02:23:42Z $ */ #ifndef _bcmcdc_h_ #define _bcmcdc_h_ #include <proto/ethernet.h> typedef struct cdc_ioctl { uint32 cmd; /* ioctl command value */ uint32 len; /* lower 16: output buflen; upper 16: input buflen (excludes header) */ uint32 flags; /* flag defns given below */ uint32 status; /* status code returned from the device */ } cdc_ioctl_t; /* Max valid buffer size that can be sent to the dongle */ #define CDC_MAX_MSG_SIZE ETHER_MAX_LEN /* len field is divided into input and output buffer lengths */ #define CDCL_IOC_OUTLEN_MASK 0x0000FFFF /* maximum or expected response length, */ /* excluding IOCTL header */ #define CDCL_IOC_OUTLEN_SHIFT 0 #define CDCL_IOC_INLEN_MASK 0xFFFF0000 /* input buffer length, excluding IOCTL header */ #define CDCL_IOC_INLEN_SHIFT 16 /* CDC flag definitions */ #define CDCF_IOC_ERROR 0x01 /* 0=success, 1=ioctl cmd failed */ #define CDCF_IOC_SET 0x02 /* 0=get, 1=set cmd */ #define CDCF_IOC_OVL_IDX_MASK 0x3c /* overlay region index mask */ #define CDCF_IOC_OVL_RSV 0x40 /* 1=reserve this overlay region */ #define CDCF_IOC_OVL 0x80 /* 1=this ioctl corresponds to an overlay */ #define CDCF_IOC_ACTION_MASK 0xfe /* SET/GET, OVL_IDX, OVL_RSV, OVL mask */ #define CDCF_IOC_ACTION_SHIFT 1 /* SET/GET, OVL_IDX, OVL_RSV, OVL shift */ #define CDCF_IOC_IF_MASK 0xF000 /* I/F index */ #define CDCF_IOC_IF_SHIFT 12 #define CDCF_IOC_ID_MASK 0xFFFF0000 /* used to uniquely id an ioctl req/resp pairing */ #define CDCF_IOC_ID_SHIFT 16 /* # of bits of shift for ID Mask */ #define CDC_IOC_IF_IDX(flags) (((flags) & CDCF_IOC_IF_MASK) >> CDCF_IOC_IF_SHIFT) #define CDC_IOC_ID(flags) (((flags) & CDCF_IOC_ID_MASK) >> CDCF_IOC_ID_SHIFT) #define CDC_GET_IF_IDX(hdr) \ ((int)((((hdr)->flags) & CDCF_IOC_IF_MASK) >> CDCF_IOC_IF_SHIFT)) #define CDC_SET_IF_IDX(hdr, idx) \ ((hdr)->flags = (((hdr)->flags & ~CDCF_IOC_IF_MASK) | ((idx) << CDCF_IOC_IF_SHIFT))) /* * BDC header * * The BDC header is used on data packets to convey priority across USB. */ struct bdc_header { uint8 flags; /* Flags */ uint8 priority; /* 802.1d Priority 0:2 bits, 4:7 USB flow control info */ uint8 flags2; uint8 dataOffset; /* Offset from end of BDC header to packet data, in * 4-byte words. Leaves room for optional headers. */ }; #define BDC_HEADER_LEN 4 /* flags field bitmap */ #define BDC_FLAG_80211_PKT 0x01 /* Packet is in 802.11 format (dongle -> host) */ #define BDC_FLAG_SUM_GOOD 0x04 /* Dongle has verified good RX checksums */ #define BDC_FLAG_SUM_NEEDED 0x08 /* Dongle needs to do TX checksums: host->device */ #define BDC_FLAG_EVENT_MSG 0x08 /* Payload contains an event msg: device->host */ #define BDC_FLAG_VER_MASK 0xf0 /* Protocol version mask */ #define BDC_FLAG_VER_SHIFT 4 /* Protocol version shift */ /* priority field bitmap */ #define BDC_PRIORITY_MASK 0x07 #define BDC_PRIORITY_FC_MASK 0xf0 /* flow control info mask */ #define BDC_PRIORITY_FC_SHIFT 4 /* flow control info shift */ /* flags2 field bitmap */ #define BDC_FLAG2_IF_MASK 0x0f /* interface index (host <-> dongle) */ #define BDC_FLAG2_IF_SHIFT 0 #define BDC_FLAG2_FC_FLAG 0x10 /* flag to indicate if pkt contains */ /* FLOW CONTROL info only */ /* version numbers */ #define BDC_PROTO_VER_1 1 /* Old Protocol version */ #define BDC_PROTO_VER 2 /* Protocol version */ /* flags2.if field access macros */ #define BDC_GET_IF_IDX(hdr) \ ((int)((((hdr)->flags2) & BDC_FLAG2_IF_MASK) >> BDC_FLAG2_IF_SHIFT)) #define BDC_SET_IF_IDX(hdr, idx) \ ((hdr)->flags2 = (((hdr)->flags2 & ~BDC_FLAG2_IF_MASK) | ((idx) << BDC_FLAG2_IF_SHIFT))) #define BDC_FLAG2_PAD_MASK 0xf0 #define BDC_FLAG_PAD_MASK 0x03 #define BDC_FLAG2_PAD_SHIFT 2 #define BDC_FLAG_PAD_SHIFT 0 #define BDC_FLAG2_PAD_IDX 0x3c #define BDC_FLAG_PAD_IDX 0x03 #define BDC_GET_PAD_LEN(hdr) \ ((int)(((((hdr)->flags2) & BDC_FLAG2_PAD_MASK) >> BDC_FLAG2_PAD_SHIFT) | \ ((((hdr)->flags) & BDC_FLAG_PAD_MASK) >> BDC_FLAG_PAD_SHIFT))) #define BDC_SET_PAD_LEN(hdr, idx) \ ((hdr)->flags2 = (((hdr)->flags2 & ~BDC_FLAG2_PAD_MASK) | \ (((idx) & BDC_FLAG2_PAD_IDX) << BDC_FLAG2_PAD_SHIFT))); \ ((hdr)->flags = (((hdr)->flags & ~BDC_FLAG_PAD_MASK) | \ (((idx) & BDC_FLAG_PAD_IDX) << BDC_FLAG_PAD_SHIFT))) #endif /* _bcmcdc_h_ */
b647f436ff53cd3269cff8a4aa30af76d3ffce3a
5eff7a36d9a9917dce9111f0c3074375fe6f7656
/driver/xf86-video-openchrome/src/via_i2c.c
91e1add0953588e0ef1a45e1b0cb95d0e7959332
[ "MIT" ]
permissive
openbsd/xenocara
cb392d02ebba06f6ff7d826fd8a89aa3b8401779
a012b5de33ea0b977095d77316a521195b26cc6b
refs/heads/master
2023-08-25T12:16:58.862008
2023-08-12T16:16:25
2023-08-12T16:16:25
66,967,384
177
66
null
2023-07-22T18:12:37
2016-08-30T18:36:01
C
UTF-8
C
false
false
14,087
c
via_i2c.c
/* * Copyright 2009 Luc Verhaegen. * Copyright 2004 The Unichrome Project [unichrome.sf.net] * Copyright 1998-2003 VIA Technologies, Inc. All Rights Reserved. * Copyright 2001-2003 S3 Graphics, Inc. All Rights Reserved. * * Permission is hereby granted, free of charge, to any person obtaining a * copy of this software and associated documentation files (the "Software"), * to deal in the Software without restriction, including without limitation * the rights to use, copy, modify, merge, publish, distribute, sub license, * and/or sell copies of the Software, and to permit persons to whom the * Software is furnished to do so, subject to the following conditions: * * The above copyright notice and this permission notice (including the * next paragraph) shall be included in all copies or substantial portions * of the Software. * * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, * FITNESS FOR A PARTICULAR PURPOSE AND NON-INFRINGEMENT. IN NO EVENT SHALL * THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER * DEALINGS IN THE SOFTWARE. */ /* * Implements three I2C buses through registers SR26, SR2C, and SR31. */ #ifdef HAVE_CONFIG_H #include "config.h" #endif #include "via_driver.h" #define SDA_READ 0x04 #define SCL_READ 0x08 #define SDA_WRITE 0x10 #define SCL_WRITE 0x20 static char strI2CBus1[] = "I2C Bus 1"; static char strI2CBus2[] = "I2C Bus 2"; static char strI2CBus3[] = "I2C Bus 3"; /* * First I2C Bus: Typically used for detecting a VGA monitor. */ static void ViaI2C1PutBits(I2CBusPtr Bus, int clock, int data) { vgaHWPtr hwp = Bus->DriverPrivate.ptr; CARD8 value = 0x01; /* Enable */ if (clock) value |= SCL_WRITE; if (data) value |= SDA_WRITE; ViaSeqMask(hwp, 0x26, value, 0x01 | SCL_WRITE | SDA_WRITE); } static void ViaI2C1GetBits(I2CBusPtr Bus, int *clock, int *data) { vgaHWPtr hwp = Bus->DriverPrivate.ptr; CARD8 value; ViaSeqMask(hwp, 0x26, 0x01, 0x01); value = hwp->readSeq(hwp, 0x26); *clock = (value & SCL_READ) != 0; *data = (value & SDA_READ) != 0; } static I2CBusPtr ViaI2CBus1Init(ScrnInfoPtr pScrn) { vgaHWPtr hwp = VGAHWPTR(pScrn); I2CBusPtr pI2CBus; DEBUG(xf86DrvMsg(pScrn->scrnIndex, X_INFO, "Entered ViaI2CBus1Init.\n")); pI2CBus = xf86CreateI2CBusRec(); if (!pI2CBus) { DEBUG(xf86DrvMsg(pScrn->scrnIndex, X_ERROR, "xf86CreateI2CBusRec failed.\n")); xf86DrvMsg(pScrn->scrnIndex, X_ERROR, "Initialization of I2C Bus 1 failed.\n"); DEBUG(xf86DrvMsg(pScrn->scrnIndex, X_INFO, "Exiting ViaI2CBus1Init.\n")); return NULL; } pI2CBus->BusName = strI2CBus1; pI2CBus->scrnIndex = pScrn->scrnIndex; pI2CBus->I2CPutBits = ViaI2C1PutBits; pI2CBus->I2CGetBits = ViaI2C1GetBits; pI2CBus->DriverPrivate.ptr = hwp; pI2CBus->HoldTime = 40; pI2CBus->BitTimeout = 40; pI2CBus->ByteTimeout = 2200; pI2CBus->AcknTimeout = 40; pI2CBus->StartTimeout = 550; pI2CBus->RiseFallTime = 20; if (!xf86I2CBusInit(pI2CBus)) { DEBUG(xf86DrvMsg(pScrn->scrnIndex, X_ERROR, "xf86I2CBusInit failed.\n")); xf86DestroyI2CBusRec(pI2CBus, TRUE, FALSE); xf86DrvMsg(pScrn->scrnIndex, X_ERROR, "Initialization of I2C Bus 1 failed.\n"); DEBUG(xf86DrvMsg(pScrn->scrnIndex, X_INFO, "Exiting ViaI2CBus1Init.\n")); return NULL; } DEBUG(xf86DrvMsg(pScrn->scrnIndex, X_INFO, "Exiting ViaI2CBus1Init.\n")); return pI2CBus; } /* * Second I2C Bus: Used to detect a DVI monitor, VGA monitor via * a DVI-I connector, or TV encoders. */ static void ViaI2C2PutBits(I2CBusPtr Bus, int clock, int data) { vgaHWPtr hwp = Bus->DriverPrivate.ptr; CARD8 value = 0x01; /* Enable */ if (clock) value |= SCL_WRITE; if (data) value |= SDA_WRITE; ViaSeqMask(hwp, 0x31, value, 0x01 | SCL_WRITE | SDA_WRITE); } static void ViaI2C2GetBits(I2CBusPtr Bus, int *clock, int *data) { vgaHWPtr hwp = Bus->DriverPrivate.ptr; CARD8 value; ViaSeqMask(hwp, 0x31, 0x01, 0x01); value = hwp->readSeq(hwp, 0x31); *clock = (value & SCL_READ) != 0; *data = (value & SDA_READ) != 0; } static I2CBusPtr ViaI2CBus2Init(ScrnInfoPtr pScrn) { vgaHWPtr hwp = VGAHWPTR(pScrn); I2CBusPtr pI2CBus; DEBUG(xf86DrvMsg(pScrn->scrnIndex, X_INFO, "Entered ViaI2CBus2Init.\n")); pI2CBus = xf86CreateI2CBusRec(); if (!pI2CBus) { DEBUG(xf86DrvMsg(pScrn->scrnIndex, X_ERROR, "xf86CreateI2CBusRec failed.\n")); xf86DrvMsg(pScrn->scrnIndex, X_ERROR, "Initialization of I2C Bus 2 failed.\n"); DEBUG(xf86DrvMsg(pScrn->scrnIndex, X_INFO, "Exiting ViaI2CBus2Init.\n")); return NULL; } pI2CBus->BusName = strI2CBus2; pI2CBus->scrnIndex = pScrn->scrnIndex; pI2CBus->I2CPutBits = ViaI2C2PutBits; pI2CBus->I2CGetBits = ViaI2C2GetBits; pI2CBus->DriverPrivate.ptr = hwp; pI2CBus->HoldTime = 40; pI2CBus->BitTimeout = 40; pI2CBus->ByteTimeout = 2200; pI2CBus->AcknTimeout = 40; pI2CBus->StartTimeout = 550; pI2CBus->RiseFallTime = 20; if (!xf86I2CBusInit(pI2CBus)) { DEBUG(xf86DrvMsg(pScrn->scrnIndex, X_ERROR, "xf86I2CBusInit failed.\n")); xf86DestroyI2CBusRec(pI2CBus, TRUE, FALSE); xf86DrvMsg(pScrn->scrnIndex, X_ERROR, "Initialization of I2C Bus 2 failed.\n"); DEBUG(xf86DrvMsg(pScrn->scrnIndex, X_INFO, "Exiting ViaI2CBus2Init.\n")); return NULL; } DEBUG(xf86DrvMsg(pScrn->scrnIndex, X_INFO, "Exiting ViaI2CBus2Init.\n")); return pI2CBus; } /* * Third I2C Bus: Implemented via manipulation of GPIO (General * Purpose I/O) pins. */ static Bool ViaI2C3Start(I2CBusPtr b, int timeout) { vgaHWPtr hwp = b->DriverPrivate.ptr; ViaSeqMask(hwp, 0x2C, 0xF0, 0xF0); b->I2CUDelay(b, b->RiseFallTime); ViaSeqMask(hwp, 0x2C, 0x00, 0x10); b->I2CUDelay(b, b->HoldTime); ViaSeqMask(hwp, 0x2C, 0x00, 0x20); b->I2CUDelay(b, b->HoldTime); return TRUE; } static Bool ViaI2C3Address(I2CDevPtr d, I2CSlaveAddr addr) { I2CBusPtr b = d->pI2CBus; #ifdef X_NEED_I2CSTART if (b->I2CStart(d->pI2CBus, d->StartTimeout)) { #else if (ViaI2C3Start(d->pI2CBus, d->StartTimeout)) { #endif if (b->I2CPutByte(d, addr & 0xFF)) { if ((addr & 0xF8) != 0xF0 && (addr & 0xFE) != 0x00) return TRUE; if (b->I2CPutByte(d, (addr >> 8) & 0xFF)) return TRUE; } b->I2CStop(d); } return FALSE; } static void ViaI2C3Stop(I2CDevPtr d) { I2CBusPtr b = d->pI2CBus; vgaHWPtr hwp = b->DriverPrivate.ptr; ViaSeqMask(hwp, 0x2C, 0xC0, 0xF0); b->I2CUDelay(b, b->RiseFallTime); ViaSeqMask(hwp, 0x2C, 0x20, 0x20); b->I2CUDelay(b, b->HoldTime); ViaSeqMask(hwp, 0x2C, 0x10, 0x10); b->I2CUDelay(b, b->HoldTime); ViaSeqMask(hwp, 0x2C, 0x00, 0x20); b->I2CUDelay(b, b->HoldTime); } static void ViaI2C3PutBit(I2CBusPtr b, Bool sda, int timeout) { vgaHWPtr hwp = b->DriverPrivate.ptr; if (sda) ViaSeqMask(hwp, 0x2C, 0x50, 0x50); else ViaSeqMask(hwp, 0x2C, 0x40, 0x50); b->I2CUDelay(b, b->RiseFallTime / 5); ViaSeqMask(hwp, 0x2C, 0xA0, 0xA0); b->I2CUDelay(b, b->HoldTime); b->I2CUDelay(b, timeout); ViaSeqMask(hwp, 0x2C, 0x80, 0xA0); b->I2CUDelay(b, b->RiseFallTime / 5); } static Bool ViaI2C3PutByte(I2CDevPtr d, I2CByte data) { I2CBusPtr b = d->pI2CBus; vgaHWPtr hwp = b->DriverPrivate.ptr; Bool ret; int i; for (i = 7; i >= 0; i--) ViaI2C3PutBit(b, (data >> i) & 0x01, b->BitTimeout); /* Raise first to avoid false positives. */ ViaSeqMask(hwp, 0x2C, 0x50, 0x50); ViaSeqMask(hwp, 0x2C, 0x00, 0x40); b->I2CUDelay(b, b->RiseFallTime); ViaSeqMask(hwp, 0x2C, 0xA0, 0xA0); if (hwp->readSeq(hwp, 0x2C) & 0x04) ret = FALSE; else ret = TRUE; ViaSeqMask(hwp, 0x2C, 0x80, 0xA0); b->I2CUDelay(b, b->RiseFallTime); return ret; } static Bool ViaI2C3GetBit(I2CBusPtr b, int timeout) { vgaHWPtr hwp = b->DriverPrivate.ptr; Bool ret; ViaSeqMask(hwp, 0x2c, 0x80, 0xC0); b->I2CUDelay(b, b->RiseFallTime / 5); ViaSeqMask(hwp, 0x2c, 0xA0, 0xA0); b->I2CUDelay(b, 3 * b->HoldTime); b->I2CUDelay(b, timeout); if (hwp->readSeq(hwp, 0x2C) & 0x04) ret = TRUE; else ret = FALSE; ViaSeqMask(hwp, 0x2C, 0x80, 0xA0); b->I2CUDelay(b, b->HoldTime); b->I2CUDelay(b, b->RiseFallTime / 5); return ret; } static Bool ViaI2C3GetByte(I2CDevPtr d, I2CByte * data, Bool last) { I2CBusPtr b = d->pI2CBus; vgaHWPtr hwp = b->DriverPrivate.ptr; int i; *data = 0x00; for (i = 7; i >= 0; i--) if (ViaI2C3GetBit(b, b->BitTimeout)) *data |= 0x01 << i; if (last) /* send NACK */ ViaSeqMask(hwp, 0x2C, 0x50, 0x50); else /* send ACK */ ViaSeqMask(hwp, 0x2C, 0x40, 0x50); ViaSeqMask(hwp, 0x2C, 0xA0, 0xA0); b->I2CUDelay(b, b->HoldTime); ViaSeqMask(hwp, 0x2C, 0x80, 0xA0); return TRUE; } static void ViaI2C3SimplePutBits(I2CBusPtr Bus, int clock, int data) { vgaHWPtr hwp = Bus->DriverPrivate.ptr; CARD8 value = 0xC0; if (clock) value |= SCL_WRITE; if (data) value |= SDA_WRITE; ViaSeqMask(hwp, 0x2C, value, 0xC0 | SCL_WRITE | SDA_WRITE); } static void ViaI2C3SimpleGetBits(I2CBusPtr Bus, int *clock, int *data) { vgaHWPtr hwp = Bus->DriverPrivate.ptr; CARD8 value = hwp->readSeq(hwp, 0x2C); *clock = (value & SCL_READ) != 0; *data = (value & SDA_READ) != 0; } static I2CBusPtr ViaI2CBus3Init(ScrnInfoPtr pScrn) { vgaHWPtr hwp = VGAHWPTR(pScrn); I2CBusPtr pI2CBus; DEBUG(xf86DrvMsg(pScrn->scrnIndex, X_INFO, "Entered ViaI2CBus3Init.\n")); pI2CBus = xf86CreateI2CBusRec(); if (!pI2CBus) { DEBUG(xf86DrvMsg(pScrn->scrnIndex, X_ERROR, "xf86CreateI2CBusRec failed.\n")); xf86DrvMsg(pScrn->scrnIndex, X_ERROR, "Initialization of I2C Bus 3 failed.\n"); DEBUG(xf86DrvMsg(pScrn->scrnIndex, X_INFO, "Exiting ViaI2CBus3Init.\n")); return NULL; } pI2CBus->BusName = strI2CBus3; pI2CBus->scrnIndex = pScrn->scrnIndex; pI2CBus->I2CPutBits = ViaI2C3SimplePutBits; pI2CBus->I2CGetBits = ViaI2C3SimpleGetBits; #ifdef X_NEED_I2CSTART pI2CBus->I2CStart = ViaI2C3Start; #endif pI2CBus->I2CAddress = ViaI2C3Address; pI2CBus->I2CStop = ViaI2C3Stop; pI2CBus->I2CPutByte = ViaI2C3PutByte; pI2CBus->I2CGetByte = ViaI2C3GetByte; pI2CBus->DriverPrivate.ptr = hwp; pI2CBus->HoldTime = 40; pI2CBus->BitTimeout = 40; pI2CBus->ByteTimeout = 2200; pI2CBus->AcknTimeout = 40; pI2CBus->StartTimeout = 550; pI2CBus->RiseFallTime = 20; if (!xf86I2CBusInit(pI2CBus)) { DEBUG(xf86DrvMsg(pScrn->scrnIndex, X_ERROR, "xf86I2CBusInit failed.\n")); xf86DestroyI2CBusRec(pI2CBus, TRUE, FALSE); xf86DrvMsg(pScrn->scrnIndex, X_ERROR, "Initialization of I2C Bus 3 failed.\n"); DEBUG(xf86DrvMsg(pScrn->scrnIndex, X_INFO, "Exiting ViaI2CBus3Init.\n")); return NULL; } DEBUG(xf86DrvMsg(pScrn->scrnIndex, X_INFO, "Exiting ViaI2CBus3Init.\n")); return pI2CBus; } #ifdef HAVE_DEBUG static void ViaI2CScan(I2CBusPtr Bus) { CARD8 i; DEBUG(xf86DrvMsg(Bus->scrnIndex, X_INFO, "Entered ViaI2CScan.\n")); xf86DrvMsg(Bus->scrnIndex, X_INFO, "Scanning %s.\n", Bus->BusName); for (i = 0x10; i < 0xF0; i += 2) if (xf86I2CProbeAddress(Bus, i)) xf86DrvMsg(Bus->scrnIndex, X_PROBED, "Found slave on %s " "- 0x%02X.\n", Bus->BusName, i); DEBUG(xf86DrvMsg(Bus->scrnIndex, X_INFO, "Exiting ViaI2CScan.\n")); } #endif /* HAVE_DEBUG */ void ViaI2CInit(ScrnInfoPtr pScrn) { VIAPtr pVia = VIAPTR(pScrn); VIADisplayPtr pVIADisplay = pVia->pVIADisplay; DEBUG(xf86DrvMsg(pScrn->scrnIndex, X_INFO, "Entered ViaI2CInit.\n")); if (pVIADisplay->I2CDevices & VIA_I2C_BUS1) pVIADisplay->pI2CBus1 = ViaI2CBus1Init(pScrn); if (pVIADisplay->I2CDevices & VIA_I2C_BUS2) pVIADisplay->pI2CBus2 = ViaI2CBus2Init(pScrn); if (pVIADisplay->I2CDevices & VIA_I2C_BUS3) pVIADisplay->pI2CBus3 = ViaI2CBus3Init(pScrn); #ifdef HAVE_DEBUG if (pVIADisplay->pI2CBus1) ViaI2CScan(pVIADisplay->pI2CBus1); if (pVIADisplay->pI2CBus2) ViaI2CScan(pVIADisplay->pI2CBus2); if (pVIADisplay->pI2CBus3) ViaI2CScan(pVIADisplay->pI2CBus3); #endif DEBUG(xf86DrvMsg(pScrn->scrnIndex, X_INFO, "Exiting ViaI2CInit.\n")); } /* * The code originated from Luc Verhaegen's xf86-video-unichrome DDX. * * Sure, it is polluting namespace, but this one is quite useful. */ Bool xf86I2CMaskByte(I2CDevPtr d, I2CByte subaddr, I2CByte value, I2CByte mask) { I2CByte tmp; Bool ret; ret = xf86I2CReadByte(d, subaddr, &tmp); if (!ret) return FALSE; tmp &= ~mask; tmp |= (value & mask); return xf86I2CWriteByte(d, subaddr, tmp); }
cabbd643cd6b4ec7679106117e580d62511161fb
e48198ffea7b0b80669253fb970fdcc1d2f4c518
/src/clipboard.c
4ce536ac478d057bebce38c24e0bd0a15954d4bf
[ "GPL-1.0-or-later", "Vim", "GPL-2.0-only" ]
permissive
vim/vim
f9ea5913ff884c87bc11f7826b1fc277fba8a2b5
816fbcc262687b81fc46f82f7bbeb1453addfe0c
refs/heads/master
2023-09-01T16:01:56.964678
2023-08-31T21:52:30
2023-08-31T21:52:30
40,997,482
37,589
7,920
Vim
2023-09-14T20:57:43
2015-08-18T21:03:56
Vim Script
UTF-8
C
false
false
55,095
c
clipboard.c
/* vi:set ts=8 sts=4 sw=4 noet: * * VIM - Vi IMproved by Bram Moolenaar * * Do ":help uganda" in Vim to read copying and usage conditions. * Do ":help credits" in Vim to see a list of people who contributed. * See README.txt for an overview of the Vim source code. */ /* * clipboard.c: Functions to handle the clipboard */ #include "vim.h" #ifdef FEAT_CYGWIN_WIN32_CLIPBOARD # define WIN32_LEAN_AND_MEAN # include <windows.h> # include "winclip.pro" #endif // Functions for copying and pasting text between applications. // This is always included in a GUI version, but may also be included when the // clipboard and mouse is available to a terminal version such as xterm. // Note: there are some more functions in ops.c that handle selection stuff. // // Also note that the majority of functions here deal with the X 'primary' // (visible - for Visual mode use) selection, and only that. There are no // versions of these for the 'clipboard' selection, as Visual mode has no use // for them. #if defined(FEAT_CLIPBOARD) || defined(PROTO) /* * Selection stuff using Visual mode, for cutting and pasting text to other * windows. */ /* * Call this to initialise the clipboard. Pass it FALSE if the clipboard code * is included, but the clipboard can not be used, or TRUE if the clipboard can * be used. Eg unix may call this with FALSE, then call it again with TRUE if * the GUI starts. */ void clip_init(int can_use) { Clipboard_T *cb; cb = &clip_star; for (;;) { cb->available = can_use; cb->owned = FALSE; cb->start.lnum = 0; cb->start.col = 0; cb->end.lnum = 0; cb->end.col = 0; cb->state = SELECT_CLEARED; if (cb == &clip_plus) break; cb = &clip_plus; } } /* * Check whether the VIsual area has changed, and if so try to become the owner * of the selection, and free any old converted selection we may still have * lying around. If the VIsual mode has ended, make a copy of what was * selected so we can still give it to others. Will probably have to make sure * this is called whenever VIsual mode is ended. */ void clip_update_selection(Clipboard_T *clip) { pos_T start, end; // If visual mode is only due to a redo command ("."), then ignore it if (!redo_VIsual_busy && VIsual_active && (State & MODE_NORMAL)) { if (LT_POS(VIsual, curwin->w_cursor)) { start = VIsual; end = curwin->w_cursor; if (has_mbyte) end.col += (*mb_ptr2len)(ml_get_cursor()) - 1; } else { start = curwin->w_cursor; end = VIsual; } if (!EQUAL_POS(clip->start, start) || !EQUAL_POS(clip->end, end) || clip->vmode != VIsual_mode) { clip_clear_selection(clip); clip->start = start; clip->end = end; clip->vmode = VIsual_mode; clip_free_selection(clip); clip_own_selection(clip); clip_gen_set_selection(clip); } } } static int clip_gen_own_selection(Clipboard_T *cbd) { #ifdef FEAT_XCLIPBOARD # ifdef FEAT_GUI if (gui.in_use) return clip_mch_own_selection(cbd); else # endif return clip_xterm_own_selection(cbd); #else return clip_mch_own_selection(cbd); #endif } void clip_own_selection(Clipboard_T *cbd) { /* * Also want to check somehow that we are reading from the keyboard rather * than a mapping etc. */ #ifdef FEAT_X11 // Always own the selection, we might have lost it without being // notified, e.g. during a ":sh" command. if (cbd->available) { int was_owned = cbd->owned; cbd->owned = (clip_gen_own_selection(cbd) == OK); if (!was_owned && (cbd == &clip_star || cbd == &clip_plus)) { // May have to show a different kind of highlighting for the // selected area. There is no specific redraw command for this, // just redraw all windows on the current buffer. if (cbd->owned && (get_real_state() == MODE_VISUAL || get_real_state() == MODE_SELECT) && (cbd == &clip_star ? clip_isautosel_star() : clip_isautosel_plus()) && HL_ATTR(HLF_V) != HL_ATTR(HLF_VNC)) redraw_curbuf_later(UPD_INVERTED_ALL); } } #else // Only own the clipboard when we didn't own it yet. if (!cbd->owned && cbd->available) cbd->owned = (clip_gen_own_selection(cbd) == OK); #endif } static void clip_gen_lose_selection(Clipboard_T *cbd) { #ifdef FEAT_XCLIPBOARD # ifdef FEAT_GUI if (gui.in_use) clip_mch_lose_selection(cbd); else # endif clip_xterm_lose_selection(cbd); #else clip_mch_lose_selection(cbd); #endif } void clip_lose_selection(Clipboard_T *cbd) { #ifdef FEAT_X11 int was_owned = cbd->owned; #endif int visual_selection = FALSE; if (cbd == &clip_star || cbd == &clip_plus) visual_selection = TRUE; clip_free_selection(cbd); cbd->owned = FALSE; if (visual_selection) clip_clear_selection(cbd); clip_gen_lose_selection(cbd); #ifdef FEAT_X11 if (visual_selection) { // May have to show a different kind of highlighting for the selected // area. There is no specific redraw command for this, just redraw all // windows on the current buffer. if (was_owned && (get_real_state() == MODE_VISUAL || get_real_state() == MODE_SELECT) && (cbd == &clip_star ? clip_isautosel_star() : clip_isautosel_plus()) && HL_ATTR(HLF_V) != HL_ATTR(HLF_VNC) && !exiting) { update_curbuf(UPD_INVERTED_ALL); setcursor(); cursor_on(); out_flush_cursor(TRUE, FALSE); } } #endif } static void clip_copy_selection(Clipboard_T *clip) { if (VIsual_active && (State & MODE_NORMAL) && clip->available) { clip_update_selection(clip); clip_free_selection(clip); clip_own_selection(clip); if (clip->owned) clip_get_selection(clip); clip_gen_set_selection(clip); } } /* * Save and restore clip_unnamed before doing possibly many changes. This * prevents accessing the clipboard very often which might slow down Vim * considerably. */ static int global_change_count = 0; // if set, inside a start_global_changes static int clipboard_needs_update = FALSE; // clipboard needs to be updated static int clip_did_set_selection = TRUE; /* * Save clip_unnamed and reset it. */ void start_global_changes(void) { if (++global_change_count > 1) return; clip_unnamed_saved = clip_unnamed; clipboard_needs_update = FALSE; if (clip_did_set_selection) { clip_unnamed = 0; clip_did_set_selection = FALSE; } } /* * Return TRUE if setting the clipboard was postponed, it already contains the * right text. */ static int is_clipboard_needs_update(void) { return clipboard_needs_update; } /* * Restore clip_unnamed and set the selection when needed. */ void end_global_changes(void) { if (--global_change_count > 0) // recursive return; if (!clip_did_set_selection) { clip_did_set_selection = TRUE; clip_unnamed = clip_unnamed_saved; clip_unnamed_saved = 0; if (clipboard_needs_update) { // only store something in the clipboard, // if we have yanked anything to it if (clip_unnamed & CLIP_UNNAMED) { clip_own_selection(&clip_star); clip_gen_set_selection(&clip_star); } if (clip_unnamed & CLIP_UNNAMED_PLUS) { clip_own_selection(&clip_plus); clip_gen_set_selection(&clip_plus); } } } clipboard_needs_update = FALSE; } /* * Called when Visual mode is ended: update the selection. */ void clip_auto_select(void) { if (clip_isautosel_star()) clip_copy_selection(&clip_star); if (clip_isautosel_plus()) clip_copy_selection(&clip_plus); } /* * Return TRUE if automatic selection of Visual area is desired for the * * register. */ int clip_isautosel_star(void) { return ( #ifdef FEAT_GUI gui.in_use ? (vim_strchr(p_go, GO_ASEL) != NULL) : #endif clip_autoselect_star); } /* * Return TRUE if automatic selection of Visual area is desired for the + * register. */ int clip_isautosel_plus(void) { return ( #ifdef FEAT_GUI gui.in_use ? (vim_strchr(p_go, GO_ASELPLUS) != NULL) : #endif clip_autoselect_plus); } /* * Stuff for general mouse selection, without using Visual mode. */ /* * Compare two screen positions ala strcmp() */ static int clip_compare_pos( int row1, int col1, int row2, int col2) { if (row1 > row2) return(1); if (row1 < row2) return(-1); if (col1 > col2) return(1); if (col1 < col2) return(-1); return(0); } // "how" flags for clip_invert_area() #define CLIP_CLEAR 1 #define CLIP_SET 2 #define CLIP_TOGGLE 3 /* * Invert or un-invert a rectangle of the screen. * "invert" is true if the result is inverted. */ static void clip_invert_rectangle( Clipboard_T *cbd UNUSED, int row_arg, int col_arg, int height_arg, int width_arg, int invert) { int row = row_arg; int col = col_arg; int height = height_arg; int width = width_arg; #ifdef FEAT_PROP_POPUP // this goes on top of all popup windows screen_zindex = CLIP_ZINDEX; if (col < cbd->min_col) { width -= cbd->min_col - col; col = cbd->min_col; } if (width > cbd->max_col - col) width = cbd->max_col - col; if (row < cbd->min_row) { height -= cbd->min_row - row; row = cbd->min_row; } if (height > cbd->max_row - row + 1) height = cbd->max_row - row + 1; #endif #ifdef FEAT_GUI if (gui.in_use) gui_mch_invert_rectangle(row, col, height, width); else #endif screen_draw_rectangle(row, col, height, width, invert); #ifdef FEAT_PROP_POPUP screen_zindex = 0; #endif } /* * Invert a region of the display between a starting and ending row and column * Values for "how": * CLIP_CLEAR: undo inversion * CLIP_SET: set inversion * CLIP_TOGGLE: set inversion if pos1 < pos2, undo inversion otherwise. * 0: invert (GUI only). */ static void clip_invert_area( Clipboard_T *cbd, int row1, int col1, int row2, int col2, int how) { int invert = FALSE; int max_col; #ifdef FEAT_PROP_POPUP max_col = cbd->max_col - 1; #else max_col = Columns - 1; #endif if (how == CLIP_SET) invert = TRUE; // Swap the from and to positions so the from is always before if (clip_compare_pos(row1, col1, row2, col2) > 0) { int tmp_row, tmp_col; tmp_row = row1; tmp_col = col1; row1 = row2; col1 = col2; row2 = tmp_row; col2 = tmp_col; } else if (how == CLIP_TOGGLE) invert = TRUE; // If all on the same line, do it the easy way if (row1 == row2) { clip_invert_rectangle(cbd, row1, col1, 1, col2 - col1, invert); } else { // Handle a piece of the first line if (col1 > 0) { clip_invert_rectangle(cbd, row1, col1, 1, (int)Columns - col1, invert); row1++; } // Handle a piece of the last line if (col2 < max_col) { clip_invert_rectangle(cbd, row2, 0, 1, col2, invert); row2--; } // Handle the rectangle that's left if (row2 >= row1) clip_invert_rectangle(cbd, row1, 0, row2 - row1 + 1, (int)Columns, invert); } } /* * Start, continue or end a modeless selection. Used when editing the * command-line, in the cmdline window and when the mouse is in a popup window. */ void clip_modeless(int button, int is_click, int is_drag) { int repeat; repeat = ((clip_star.mode == SELECT_MODE_CHAR || clip_star.mode == SELECT_MODE_LINE) && (mod_mask & MOD_MASK_2CLICK)) || (clip_star.mode == SELECT_MODE_WORD && (mod_mask & MOD_MASK_3CLICK)); if (is_click && button == MOUSE_RIGHT) { // Right mouse button: If there was no selection, start one. // Otherwise extend the existing selection. if (clip_star.state == SELECT_CLEARED) clip_start_selection(mouse_col, mouse_row, FALSE); clip_process_selection(button, mouse_col, mouse_row, repeat); } else if (is_click) clip_start_selection(mouse_col, mouse_row, repeat); else if (is_drag) { // Don't try extending a selection if there isn't one. Happens when // button-down is in the cmdline and them moving mouse upwards. if (clip_star.state != SELECT_CLEARED) clip_process_selection(button, mouse_col, mouse_row, repeat); } else // release clip_process_selection(MOUSE_RELEASE, mouse_col, mouse_row, FALSE); } /* * Update the currently selected region by adding and/or subtracting from the * beginning or end and inverting the changed area(s). */ static void clip_update_modeless_selection( Clipboard_T *cb, int row1, int col1, int row2, int col2) { // See if we changed at the beginning of the selection if (row1 != cb->start.lnum || col1 != (int)cb->start.col) { clip_invert_area(cb, row1, col1, (int)cb->start.lnum, cb->start.col, CLIP_TOGGLE); cb->start.lnum = row1; cb->start.col = col1; } // See if we changed at the end of the selection if (row2 != cb->end.lnum || col2 != (int)cb->end.col) { clip_invert_area(cb, (int)cb->end.lnum, cb->end.col, row2, col2, CLIP_TOGGLE); cb->end.lnum = row2; cb->end.col = col2; } } /* * Find the starting and ending positions of the word at the given row and * column. Only white-separated words are recognized here. */ #define CHAR_CLASS(c) (c <= ' ' ? ' ' : vim_iswordc(c)) static void clip_get_word_boundaries(Clipboard_T *cb, int row, int col) { int start_class; int temp_col; char_u *p; int mboff; if (row >= screen_Rows || col >= screen_Columns || ScreenLines == NULL) return; p = ScreenLines + LineOffset[row]; // Correct for starting in the right half of a double-wide char if (enc_dbcs != 0) col -= dbcs_screen_head_off(p, p + col); else if (enc_utf8 && p[col] == 0) --col; start_class = CHAR_CLASS(p[col]); temp_col = col; for ( ; temp_col > 0; temp_col--) if (enc_dbcs != 0 && (mboff = dbcs_screen_head_off(p, p + temp_col - 1)) > 0) temp_col -= mboff; else if (CHAR_CLASS(p[temp_col - 1]) != start_class && !(enc_utf8 && p[temp_col - 1] == 0)) break; cb->word_start_col = temp_col; temp_col = col; for ( ; temp_col < screen_Columns; temp_col++) if (enc_dbcs != 0 && dbcs_ptr2cells(p + temp_col) == 2) ++temp_col; else if (CHAR_CLASS(p[temp_col]) != start_class && !(enc_utf8 && p[temp_col] == 0)) break; cb->word_end_col = temp_col; } /* * Find the column position for the last non-whitespace character on the given * line at or before start_col. */ static int clip_get_line_end(Clipboard_T *cbd UNUSED, int row) { int i; if (row >= screen_Rows || ScreenLines == NULL) return 0; for (i = #ifdef FEAT_PROP_POPUP cbd->max_col; #else screen_Columns; #endif i > 0; i--) if (ScreenLines[LineOffset[row] + i - 1] != ' ') break; return i; } /* * Start the selection */ void clip_start_selection(int col, int row, int repeated_click) { Clipboard_T *cb = &clip_star; #ifdef FEAT_PROP_POPUP win_T *wp; int row_cp = row; int col_cp = col; wp = mouse_find_win(&row_cp, &col_cp, FIND_POPUP); if (wp != NULL && WIN_IS_POPUP(wp) && popup_is_in_scrollbar(wp, row_cp, col_cp)) // click or double click in scrollbar does not start a selection return; #endif if (cb->state == SELECT_DONE) clip_clear_selection(cb); row = check_row(row); col = check_col(col); col = mb_fix_col(col, row); cb->start.lnum = row; cb->start.col = col; cb->end = cb->start; cb->origin_row = (short_u)cb->start.lnum; cb->state = SELECT_IN_PROGRESS; #ifdef FEAT_PROP_POPUP if (wp != NULL && WIN_IS_POPUP(wp)) { // Click in a popup window restricts selection to that window, // excluding the border. cb->min_col = wp->w_wincol + wp->w_popup_border[3]; cb->max_col = wp->w_wincol + popup_width(wp) - wp->w_popup_border[1] - wp->w_has_scrollbar; if (cb->max_col > screen_Columns) cb->max_col = screen_Columns; cb->min_row = wp->w_winrow + wp->w_popup_border[0]; cb->max_row = wp->w_winrow + popup_height(wp) - 1 - wp->w_popup_border[2]; } else { cb->min_col = 0; cb->max_col = screen_Columns; cb->min_row = 0; cb->max_row = screen_Rows; } #endif if (repeated_click) { if (++cb->mode > SELECT_MODE_LINE) cb->mode = SELECT_MODE_CHAR; } else cb->mode = SELECT_MODE_CHAR; #ifdef FEAT_GUI // clear the cursor until the selection is made if (gui.in_use) gui_undraw_cursor(); #endif switch (cb->mode) { case SELECT_MODE_CHAR: cb->origin_start_col = cb->start.col; cb->word_end_col = clip_get_line_end(cb, (int)cb->start.lnum); break; case SELECT_MODE_WORD: clip_get_word_boundaries(cb, (int)cb->start.lnum, cb->start.col); cb->origin_start_col = cb->word_start_col; cb->origin_end_col = cb->word_end_col; clip_invert_area(cb, (int)cb->start.lnum, cb->word_start_col, (int)cb->end.lnum, cb->word_end_col, CLIP_SET); cb->start.col = cb->word_start_col; cb->end.col = cb->word_end_col; break; case SELECT_MODE_LINE: clip_invert_area(cb, (int)cb->start.lnum, 0, (int)cb->start.lnum, (int)Columns, CLIP_SET); cb->start.col = 0; cb->end.col = Columns; break; } cb->prev = cb->start; #ifdef DEBUG_SELECTION printf("Selection started at (%ld,%d)\n", cb->start.lnum, cb->start.col); #endif } /* * Continue processing the selection */ void clip_process_selection( int button, int col, int row, int_u repeated_click) { Clipboard_T *cb = &clip_star; int diff; int slen = 1; // cursor shape width if (button == MOUSE_RELEASE) { if (cb->state != SELECT_IN_PROGRESS) return; // Check to make sure we have something selected if (cb->start.lnum == cb->end.lnum && cb->start.col == cb->end.col) { #ifdef FEAT_GUI if (gui.in_use) gui_update_cursor(FALSE, FALSE); #endif cb->state = SELECT_CLEARED; return; } #ifdef DEBUG_SELECTION printf("Selection ended: (%ld,%d) to (%ld,%d)\n", cb->start.lnum, cb->start.col, cb->end.lnum, cb->end.col); #endif if (clip_isautosel_star() || ( #ifdef FEAT_GUI gui.in_use ? (vim_strchr(p_go, GO_ASELML) != NULL) : #endif clip_autoselectml)) clip_copy_modeless_selection(FALSE); #ifdef FEAT_GUI if (gui.in_use) gui_update_cursor(FALSE, FALSE); #endif cb->state = SELECT_DONE; return; } row = check_row(row); col = check_col(col); col = mb_fix_col(col, row); if (col == (int)cb->prev.col && row == cb->prev.lnum && !repeated_click) return; /* * When extending the selection with the right mouse button, swap the * start and end if the position is before half the selection */ if (cb->state == SELECT_DONE && button == MOUSE_RIGHT) { /* * If the click is before the start, or the click is inside the * selection and the start is the closest side, set the origin to the * end of the selection. */ if (clip_compare_pos(row, col, (int)cb->start.lnum, cb->start.col) < 0 || (clip_compare_pos(row, col, (int)cb->end.lnum, cb->end.col) < 0 && (((cb->start.lnum == cb->end.lnum && cb->end.col - col > col - cb->start.col)) || ((diff = (cb->end.lnum - row) - (row - cb->start.lnum)) > 0 || (diff == 0 && col < (int)(cb->start.col + cb->end.col) / 2))))) { cb->origin_row = (short_u)cb->end.lnum; cb->origin_start_col = cb->end.col - 1; cb->origin_end_col = cb->end.col; } else { cb->origin_row = (short_u)cb->start.lnum; cb->origin_start_col = cb->start.col; cb->origin_end_col = cb->start.col; } if (cb->mode == SELECT_MODE_WORD && !repeated_click) cb->mode = SELECT_MODE_CHAR; } // set state, for when using the right mouse button cb->state = SELECT_IN_PROGRESS; #ifdef DEBUG_SELECTION printf("Selection extending to (%d,%d)\n", row, col); #endif if (repeated_click && ++cb->mode > SELECT_MODE_LINE) cb->mode = SELECT_MODE_CHAR; switch (cb->mode) { case SELECT_MODE_CHAR: // If we're on a different line, find where the line ends if (row != cb->prev.lnum) cb->word_end_col = clip_get_line_end(cb, row); // See if we are before or after the origin of the selection if (clip_compare_pos(row, col, cb->origin_row, cb->origin_start_col) >= 0) { if (col >= (int)cb->word_end_col) clip_update_modeless_selection(cb, cb->origin_row, cb->origin_start_col, row, (int)Columns); else { if (has_mbyte && mb_lefthalve(row, col)) slen = 2; clip_update_modeless_selection(cb, cb->origin_row, cb->origin_start_col, row, col + slen); } } else { if (has_mbyte && mb_lefthalve(cb->origin_row, cb->origin_start_col)) slen = 2; if (col >= (int)cb->word_end_col) clip_update_modeless_selection(cb, row, cb->word_end_col, cb->origin_row, cb->origin_start_col + slen); else clip_update_modeless_selection(cb, row, col, cb->origin_row, cb->origin_start_col + slen); } break; case SELECT_MODE_WORD: // If we are still within the same word, do nothing if (row == cb->prev.lnum && col >= (int)cb->word_start_col && col < (int)cb->word_end_col && !repeated_click) return; // Get new word boundaries clip_get_word_boundaries(cb, row, col); // Handle being after the origin point of selection if (clip_compare_pos(row, col, cb->origin_row, cb->origin_start_col) >= 0) clip_update_modeless_selection(cb, cb->origin_row, cb->origin_start_col, row, cb->word_end_col); else clip_update_modeless_selection(cb, row, cb->word_start_col, cb->origin_row, cb->origin_end_col); break; case SELECT_MODE_LINE: if (row == cb->prev.lnum && !repeated_click) return; if (clip_compare_pos(row, col, cb->origin_row, cb->origin_start_col) >= 0) clip_update_modeless_selection(cb, cb->origin_row, 0, row, (int)Columns); else clip_update_modeless_selection(cb, row, 0, cb->origin_row, (int)Columns); break; } cb->prev.lnum = row; cb->prev.col = col; #ifdef DEBUG_SELECTION printf("Selection is: (%ld,%d) to (%ld,%d)\n", cb->start.lnum, cb->start.col, cb->end.lnum, cb->end.col); #endif } # if defined(FEAT_GUI) || defined(PROTO) /* * Redraw part of the selection if character at "row,col" is inside of it. * Only used for the GUI. */ void clip_may_redraw_selection(int row, int col, int len) { int start = col; int end = col + len; if (clip_star.state != SELECT_CLEARED && row >= clip_star.start.lnum && row <= clip_star.end.lnum) { if (row == clip_star.start.lnum && start < (int)clip_star.start.col) start = clip_star.start.col; if (row == clip_star.end.lnum && end > (int)clip_star.end.col) end = clip_star.end.col; if (end > start) clip_invert_area(&clip_star, row, start, row, end, 0); } } # endif /* * Called from outside to clear selected region from the display */ void clip_clear_selection(Clipboard_T *cbd) { if (cbd->state == SELECT_CLEARED) return; clip_invert_area(cbd, (int)cbd->start.lnum, cbd->start.col, (int)cbd->end.lnum, cbd->end.col, CLIP_CLEAR); cbd->state = SELECT_CLEARED; } /* * Clear the selection if any lines from "row1" to "row2" are inside of it. */ void clip_may_clear_selection(int row1, int row2) { if (clip_star.state == SELECT_DONE && row2 >= clip_star.start.lnum && row1 <= clip_star.end.lnum) clip_clear_selection(&clip_star); } /* * Called before the screen is scrolled up or down. Adjusts the line numbers * of the selection. Call with big number when clearing the screen. */ void clip_scroll_selection( int rows) // negative for scroll down { int lnum; if (clip_star.state == SELECT_CLEARED) return; lnum = clip_star.start.lnum - rows; if (lnum <= 0) clip_star.start.lnum = 0; else if (lnum >= screen_Rows) // scrolled off of the screen clip_star.state = SELECT_CLEARED; else clip_star.start.lnum = lnum; lnum = clip_star.end.lnum - rows; if (lnum < 0) // scrolled off of the screen clip_star.state = SELECT_CLEARED; else if (lnum >= screen_Rows) clip_star.end.lnum = screen_Rows - 1; else clip_star.end.lnum = lnum; } /* * Copy the currently selected area into the '*' register so it will be * available for pasting. * When "both" is TRUE also copy to the '+' register. */ void clip_copy_modeless_selection(int both UNUSED) { char_u *buffer; char_u *bufp; int row; int start_col; int end_col; int line_end_col; int add_newline_flag = FALSE; int len; char_u *p; int row1 = clip_star.start.lnum; int col1 = clip_star.start.col; int row2 = clip_star.end.lnum; int col2 = clip_star.end.col; // Can't use ScreenLines unless initialized if (ScreenLines == NULL) return; /* * Make sure row1 <= row2, and if row1 == row2 that col1 <= col2. */ if (row1 > row2) { row = row1; row1 = row2; row2 = row; row = col1; col1 = col2; col2 = row; } else if (row1 == row2 && col1 > col2) { row = col1; col1 = col2; col2 = row; } #ifdef FEAT_PROP_POPUP if (col1 < clip_star.min_col) col1 = clip_star.min_col; if (col2 > clip_star.max_col) col2 = clip_star.max_col; if (row1 > clip_star.max_row || row2 < clip_star.min_row) return; if (row1 < clip_star.min_row) row1 = clip_star.min_row; if (row2 > clip_star.max_row) row2 = clip_star.max_row; #endif // correct starting point for being on right half of double-wide char p = ScreenLines + LineOffset[row1]; if (enc_dbcs != 0) col1 -= (*mb_head_off)(p, p + col1); else if (enc_utf8 && p[col1] == 0) --col1; // Create a temporary buffer for storing the text len = (row2 - row1 + 1) * Columns + 1; if (enc_dbcs != 0) len *= 2; // max. 2 bytes per display cell else if (enc_utf8) len *= MB_MAXBYTES; buffer = alloc(len); if (buffer == NULL) // out of memory return; // Process each row in the selection for (bufp = buffer, row = row1; row <= row2; row++) { if (row == row1) start_col = col1; else #ifdef FEAT_PROP_POPUP start_col = clip_star.min_col; #else start_col = 0; #endif if (row == row2) end_col = col2; else #ifdef FEAT_PROP_POPUP end_col = clip_star.max_col; #else end_col = Columns; #endif line_end_col = clip_get_line_end(&clip_star, row); // See if we need to nuke some trailing whitespace if (end_col >= #ifdef FEAT_PROP_POPUP clip_star.max_col #else Columns #endif && (row < row2 || end_col > line_end_col)) { // Get rid of trailing whitespace end_col = line_end_col; if (end_col < start_col) end_col = start_col; // If the last line extended to the end, add an extra newline if (row == row2) add_newline_flag = TRUE; } // If after the first row, we need to always add a newline if (row > row1 && !LineWraps[row - 1]) *bufp++ = NL; // Safetey check for in case resizing went wrong if (row < screen_Rows && end_col <= screen_Columns) { if (enc_dbcs != 0) { int i; p = ScreenLines + LineOffset[row]; for (i = start_col; i < end_col; ++i) if (enc_dbcs == DBCS_JPNU && p[i] == 0x8e) { // single-width double-byte char *bufp++ = 0x8e; *bufp++ = ScreenLines2[LineOffset[row] + i]; } else { *bufp++ = p[i]; if (MB_BYTE2LEN(p[i]) == 2) *bufp++ = p[++i]; } } else if (enc_utf8) { int off; int i; int ci; off = LineOffset[row]; for (i = start_col; i < end_col; ++i) { // The base character is either in ScreenLinesUC[] or // ScreenLines[]. if (ScreenLinesUC[off + i] == 0) *bufp++ = ScreenLines[off + i]; else { bufp += utf_char2bytes(ScreenLinesUC[off + i], bufp); for (ci = 0; ci < Screen_mco; ++ci) { // Add a composing character. if (ScreenLinesC[ci][off + i] == 0) break; bufp += utf_char2bytes(ScreenLinesC[ci][off + i], bufp); } } // Skip right half of double-wide character. if (ScreenLines[off + i + 1] == 0) ++i; } } else { STRNCPY(bufp, ScreenLines + LineOffset[row] + start_col, end_col - start_col); bufp += end_col - start_col; } } } // Add a newline at the end if the selection ended there if (add_newline_flag) *bufp++ = NL; // First cleanup any old selection and become the owner. clip_free_selection(&clip_star); clip_own_selection(&clip_star); // Yank the text into the '*' register. clip_yank_selection(MCHAR, buffer, (long)(bufp - buffer), &clip_star); // Make the register contents available to the outside world. clip_gen_set_selection(&clip_star); #ifdef FEAT_X11 if (both) { // Do the same for the '+' register. clip_free_selection(&clip_plus); clip_own_selection(&clip_plus); clip_yank_selection(MCHAR, buffer, (long)(bufp - buffer), &clip_plus); clip_gen_set_selection(&clip_plus); } #endif vim_free(buffer); } void clip_gen_set_selection(Clipboard_T *cbd) { if (!clip_did_set_selection) { // Updating postponed, so that accessing the system clipboard won't // hang Vim when accessing it many times (e.g. on a :g command). if ((cbd == &clip_plus && (clip_unnamed_saved & CLIP_UNNAMED_PLUS)) || (cbd == &clip_star && (clip_unnamed_saved & CLIP_UNNAMED))) { clipboard_needs_update = TRUE; return; } } #ifdef FEAT_XCLIPBOARD # ifdef FEAT_GUI if (gui.in_use) clip_mch_set_selection(cbd); else # endif clip_xterm_set_selection(cbd); #else clip_mch_set_selection(cbd); #endif } static void clip_gen_request_selection(Clipboard_T *cbd) { #ifdef FEAT_XCLIPBOARD # ifdef FEAT_GUI if (gui.in_use) clip_mch_request_selection(cbd); else # endif clip_xterm_request_selection(cbd); #else clip_mch_request_selection(cbd); #endif } #if (defined(FEAT_X11) && defined(FEAT_XCLIPBOARD) && defined(USE_SYSTEM)) \ || defined(PROTO) static int clip_x11_owner_exists(Clipboard_T *cbd) { return XGetSelectionOwner(X_DISPLAY, cbd->sel_atom) != None; } #endif #if (defined(FEAT_X11) && defined(USE_SYSTEM)) || defined(PROTO) int clip_gen_owner_exists(Clipboard_T *cbd UNUSED) { #ifdef FEAT_XCLIPBOARD # ifdef FEAT_GUI_GTK if (gui.in_use) return clip_gtk_owner_exists(cbd); else # endif return clip_x11_owner_exists(cbd); #else return TRUE; #endif } #endif /* * Extract the items in the 'clipboard' option and set global values. * Return an error message or NULL for success. */ char * did_set_clipboard(optset_T *args UNUSED) { int new_unnamed = 0; int new_autoselect_star = FALSE; int new_autoselect_plus = FALSE; int new_autoselectml = FALSE; int new_html = FALSE; regprog_T *new_exclude_prog = NULL; char *errmsg = NULL; char_u *p; for (p = p_cb; *p != NUL; ) { if (STRNCMP(p, "unnamed", 7) == 0 && (p[7] == ',' || p[7] == NUL)) { new_unnamed |= CLIP_UNNAMED; p += 7; } else if (STRNCMP(p, "unnamedplus", 11) == 0 && (p[11] == ',' || p[11] == NUL)) { new_unnamed |= CLIP_UNNAMED_PLUS; p += 11; } else if (STRNCMP(p, "autoselect", 10) == 0 && (p[10] == ',' || p[10] == NUL)) { new_autoselect_star = TRUE; p += 10; } else if (STRNCMP(p, "autoselectplus", 14) == 0 && (p[14] == ',' || p[14] == NUL)) { new_autoselect_plus = TRUE; p += 14; } else if (STRNCMP(p, "autoselectml", 12) == 0 && (p[12] == ',' || p[12] == NUL)) { new_autoselectml = TRUE; p += 12; } else if (STRNCMP(p, "html", 4) == 0 && (p[4] == ',' || p[4] == NUL)) { new_html = TRUE; p += 4; } else if (STRNCMP(p, "exclude:", 8) == 0 && new_exclude_prog == NULL) { p += 8; new_exclude_prog = vim_regcomp(p, RE_MAGIC); if (new_exclude_prog == NULL) errmsg = e_invalid_argument; break; } else { errmsg = e_invalid_argument; break; } if (*p == ',') ++p; } if (errmsg == NULL) { if (global_busy) // clip_unnamed will be reset to clip_unnamed_saved // at end_global_changes clip_unnamed_saved = new_unnamed; else clip_unnamed = new_unnamed; clip_autoselect_star = new_autoselect_star; clip_autoselect_plus = new_autoselect_plus; clip_autoselectml = new_autoselectml; clip_html = new_html; vim_regfree(clip_exclude_prog); clip_exclude_prog = new_exclude_prog; #ifdef FEAT_GUI_GTK if (gui.in_use) { gui_gtk_set_selection_targets(); gui_gtk_set_dnd_targets(); } #endif } else vim_regfree(new_exclude_prog); return errmsg; } /* * Stuff for the X clipboard. Shared between VMS and Unix. */ #if defined(FEAT_XCLIPBOARD) || defined(FEAT_GUI_X11) || defined(PROTO) # include <X11/Xatom.h> # include <X11/Intrinsic.h> /* * Open the application context (if it hasn't been opened yet). * Used for Motif GUI and the xterm clipboard. */ void open_app_context(void) { if (app_context == NULL) { XtToolkitInitialize(); app_context = XtCreateApplicationContext(); } } static Atom vim_atom; // Vim's own special selection format static Atom vimenc_atom; // Vim's extended selection format static Atom utf8_atom; static Atom compound_text_atom; static Atom text_atom; static Atom targets_atom; static Atom timestamp_atom; // Used to get a timestamp void x11_setup_atoms(Display *dpy) { vim_atom = XInternAtom(dpy, VIM_ATOM_NAME, False); vimenc_atom = XInternAtom(dpy, VIMENC_ATOM_NAME,False); utf8_atom = XInternAtom(dpy, "UTF8_STRING", False); compound_text_atom = XInternAtom(dpy, "COMPOUND_TEXT", False); text_atom = XInternAtom(dpy, "TEXT", False); targets_atom = XInternAtom(dpy, "TARGETS", False); clip_star.sel_atom = XA_PRIMARY; clip_plus.sel_atom = XInternAtom(dpy, "CLIPBOARD", False); timestamp_atom = XInternAtom(dpy, "TIMESTAMP", False); } /* * X Selection stuff, for cutting and pasting text to other windows. */ static Boolean clip_x11_convert_selection_cb( Widget w UNUSED, Atom *sel_atom, Atom *target, Atom *type, XtPointer *value, long_u *length, int *format) { static char_u *save_result = NULL; static long_u save_length = 0; char_u *string; int motion_type; Clipboard_T *cbd; int i; if (*sel_atom == clip_plus.sel_atom) cbd = &clip_plus; else cbd = &clip_star; if (!cbd->owned) return False; // Shouldn't ever happen // requestor wants to know what target types we support if (*target == targets_atom) { static Atom array[7]; *value = (XtPointer)array; i = 0; array[i++] = targets_atom; array[i++] = vimenc_atom; array[i++] = vim_atom; if (enc_utf8) array[i++] = utf8_atom; array[i++] = XA_STRING; array[i++] = text_atom; array[i++] = compound_text_atom; *type = XA_ATOM; // This used to be: *format = sizeof(Atom) * 8; but that caused // crashes on 64 bit machines. (Peter Derr) *format = 32; *length = i; return True; } if ( *target != XA_STRING && *target != vimenc_atom && (*target != utf8_atom || !enc_utf8) && *target != vim_atom && *target != text_atom && *target != compound_text_atom) return False; clip_get_selection(cbd); motion_type = clip_convert_selection(&string, length, cbd); if (motion_type < 0) return False; // For our own format, the first byte contains the motion type if (*target == vim_atom) (*length)++; // Our own format with encoding: motion 'encoding' NUL text if (*target == vimenc_atom) *length += STRLEN(p_enc) + 2; if (save_length < *length || save_length / 2 >= *length) *value = XtRealloc((char *)save_result, (Cardinal)*length + 1); else *value = save_result; if (*value == NULL) { vim_free(string); return False; } save_result = (char_u *)*value; save_length = *length; if (*target == XA_STRING || (*target == utf8_atom && enc_utf8)) { mch_memmove(save_result, string, (size_t)(*length)); *type = *target; } else if (*target == compound_text_atom || *target == text_atom) { XTextProperty text_prop; char *string_nt = (char *)save_result; int conv_result; // create NUL terminated string which XmbTextListToTextProperty wants mch_memmove(string_nt, string, (size_t)*length); string_nt[*length] = NUL; conv_result = XmbTextListToTextProperty(X_DISPLAY, &string_nt, 1, XCompoundTextStyle, &text_prop); if (conv_result != Success) { vim_free(string); return False; } *value = (XtPointer)(text_prop.value); // from plain text *length = text_prop.nitems; *type = compound_text_atom; XtFree((char *)save_result); save_result = (char_u *)*value; save_length = *length; } else if (*target == vimenc_atom) { int l = STRLEN(p_enc); save_result[0] = motion_type; STRCPY(save_result + 1, p_enc); mch_memmove(save_result + l + 2, string, (size_t)(*length - l - 2)); *type = vimenc_atom; } else { save_result[0] = motion_type; mch_memmove(save_result + 1, string, (size_t)(*length - 1)); *type = vim_atom; } *format = 8; // 8 bits per char vim_free(string); return True; } static void clip_x11_lose_ownership_cb(Widget w UNUSED, Atom *sel_atom) { if (*sel_atom == clip_plus.sel_atom) clip_lose_selection(&clip_plus); else clip_lose_selection(&clip_star); } static void clip_x11_notify_cb(Widget w UNUSED, Atom *sel_atom UNUSED, Atom *target UNUSED) { // To prevent automatically freeing the selection value. } /* * Property callback to get a timestamp for XtOwnSelection. */ # if (defined(FEAT_X11) && defined(FEAT_XCLIPBOARD)) || defined(PROTO) static void clip_x11_timestamp_cb( Widget w, XtPointer n UNUSED, XEvent *event, Boolean *cont UNUSED) { Atom actual_type; int format; unsigned long nitems, bytes_after; unsigned char *prop=NULL; XPropertyEvent *xproperty=&event->xproperty; // Must be a property notify, state can't be Delete (True), has to be // one of the supported selection types. if (event->type != PropertyNotify || xproperty->state || (xproperty->atom != clip_star.sel_atom && xproperty->atom != clip_plus.sel_atom)) return; if (XGetWindowProperty(xproperty->display, xproperty->window, xproperty->atom, 0, 0, False, timestamp_atom, &actual_type, &format, &nitems, &bytes_after, &prop)) return; if (prop) XFree(prop); // Make sure the property type is "TIMESTAMP" and it's 32 bits. if (actual_type != timestamp_atom || format != 32) return; // Get the selection, using the event timestamp. if (XtOwnSelection(w, xproperty->atom, xproperty->time, clip_x11_convert_selection_cb, clip_x11_lose_ownership_cb, clip_x11_notify_cb) == OK) { // Set the "owned" flag now, there may have been a call to // lose_ownership_cb in between. if (xproperty->atom == clip_plus.sel_atom) clip_plus.owned = TRUE; else clip_star.owned = TRUE; } } void x11_setup_selection(Widget w) { XtAddEventHandler(w, PropertyChangeMask, False, /*(XtEventHandler)*/clip_x11_timestamp_cb, (XtPointer)NULL); } # endif static void clip_x11_request_selection_cb( Widget w UNUSED, XtPointer success, Atom *sel_atom, Atom *type, XtPointer value, long_u *length, int *format) { int motion_type = MAUTO; long_u len; char_u *p; char **text_list = NULL; Clipboard_T *cbd; char_u *tmpbuf = NULL; if (*sel_atom == clip_plus.sel_atom) cbd = &clip_plus; else cbd = &clip_star; if (value == NULL || *length == 0) { clip_free_selection(cbd); // nothing received, clear register *(int *)success = FALSE; return; } p = (char_u *)value; len = *length; if (*type == vim_atom) { motion_type = *p++; len--; } else if (*type == vimenc_atom) { char_u *enc; vimconv_T conv; int convlen; motion_type = *p++; --len; enc = p; p += STRLEN(p) + 1; len -= p - enc; // If the encoding of the text is different from 'encoding', attempt // converting it. conv.vc_type = CONV_NONE; convert_setup(&conv, enc, p_enc); if (conv.vc_type != CONV_NONE) { convlen = len; // Need to use an int here. tmpbuf = string_convert(&conv, p, &convlen); len = convlen; if (tmpbuf != NULL) p = tmpbuf; convert_setup(&conv, NULL, NULL); } } else if (*type == compound_text_atom || *type == utf8_atom || (enc_dbcs != 0 && *type == text_atom)) { XTextProperty text_prop; int n_text = 0; int status; text_prop.value = (unsigned char *)value; text_prop.encoding = *type; text_prop.format = *format; text_prop.nitems = len; #if defined(X_HAVE_UTF8_STRING) if (*type == utf8_atom) status = Xutf8TextPropertyToTextList(X_DISPLAY, &text_prop, &text_list, &n_text); else #endif status = XmbTextPropertyToTextList(X_DISPLAY, &text_prop, &text_list, &n_text); if (status != Success || n_text < 1) { *(int *)success = FALSE; return; } p = (char_u *)text_list[0]; len = STRLEN(p); } clip_yank_selection(motion_type, p, (long)len, cbd); if (text_list != NULL) XFreeStringList(text_list); vim_free(tmpbuf); XtFree((char *)value); *(int *)success = TRUE; } void clip_x11_request_selection( Widget myShell, Display *dpy, Clipboard_T *cbd) { XEvent event; Atom type; static int success; int i; time_t start_time; int timed_out = FALSE; for (i = 0; i < 6; i++) { switch (i) { case 0: type = vimenc_atom; break; case 1: type = vim_atom; break; case 2: type = utf8_atom; break; case 3: type = compound_text_atom; break; case 4: type = text_atom; break; default: type = XA_STRING; } if (type == utf8_atom # if defined(X_HAVE_UTF8_STRING) && !enc_utf8 # endif ) // Only request utf-8 when 'encoding' is utf8 and // Xutf8TextPropertyToTextList is available. continue; success = MAYBE; XtGetSelectionValue(myShell, cbd->sel_atom, type, clip_x11_request_selection_cb, (XtPointer)&success, CurrentTime); // Make sure the request for the selection goes out before waiting for // a response. XFlush(dpy); /* * Wait for result of selection request, otherwise if we type more * characters, then they will appear before the one that requested the * paste! Don't worry, we will catch up with any other events later. */ start_time = time(NULL); while (success == MAYBE) { if (XCheckTypedEvent(dpy, PropertyNotify, &event) || XCheckTypedEvent(dpy, SelectionNotify, &event) || XCheckTypedEvent(dpy, SelectionRequest, &event)) { // This is where clip_x11_request_selection_cb() should be // called. It may actually happen a bit later, so we loop // until "success" changes. // We may get a SelectionRequest here and if we don't handle // it we hang. KDE klipper does this, for example. // We need to handle a PropertyNotify for large selections. XtDispatchEvent(&event); continue; } // Time out after 2 to 3 seconds to avoid that we hang when the // other process doesn't respond. Note that the SelectionNotify // event may still come later when the selection owner comes back // to life and the text gets inserted unexpectedly. Don't know // why that happens or how to avoid that :-(. if (time(NULL) > start_time + 2) { timed_out = TRUE; break; } // Do we need this? Probably not. XSync(dpy, False); // Wait for 1 msec to avoid that we eat up all CPU time. ui_delay(1L, TRUE); } if (success == TRUE) return; // don't do a retry with another type after timing out, otherwise we // hang for 15 seconds. if (timed_out) break; } // Final fallback position - use the X CUT_BUFFER0 store yank_cut_buffer0(dpy, cbd); } void clip_x11_lose_selection(Widget myShell, Clipboard_T *cbd) { XtDisownSelection(myShell, cbd->sel_atom, XtLastTimestampProcessed(XtDisplay(myShell))); } int clip_x11_own_selection(Widget myShell, Clipboard_T *cbd) { // When using the GUI we have proper timestamps, use the one of the last // event. When in the console we don't get events (the terminal gets // them), Get the time by a zero-length append, clip_x11_timestamp_cb will // be called with the current timestamp. #ifdef FEAT_GUI if (gui.in_use) { if (XtOwnSelection(myShell, cbd->sel_atom, XtLastTimestampProcessed(XtDisplay(myShell)), clip_x11_convert_selection_cb, clip_x11_lose_ownership_cb, clip_x11_notify_cb) == False) return FAIL; } else #endif { if (!XChangeProperty(XtDisplay(myShell), XtWindow(myShell), cbd->sel_atom, timestamp_atom, 32, PropModeAppend, NULL, 0)) return FAIL; } // Flush is required in a terminal as nothing else is doing it. XFlush(XtDisplay(myShell)); return OK; } /* * Send the current selection to the clipboard. Do nothing for X because we * will fill in the selection only when requested by another app. */ void clip_x11_set_selection(Clipboard_T *cbd UNUSED) { } #endif #if defined(FEAT_XCLIPBOARD) || defined(FEAT_GUI_X11) \ || defined(FEAT_GUI_GTK) || defined(PROTO) /* * Get the contents of the X CUT_BUFFER0 and put it in "cbd". */ void yank_cut_buffer0(Display *dpy, Clipboard_T *cbd) { int nbytes = 0; char_u *buffer = (char_u *)XFetchBuffer(dpy, &nbytes, 0); if (nbytes > 0) { int done = FALSE; // CUT_BUFFER0 is supposed to be always latin1. Convert to 'enc' when // using a multi-byte encoding. Conversion between two 8-bit // character sets usually fails and the text might actually be in // 'enc' anyway. if (has_mbyte) { char_u *conv_buf; vimconv_T vc; vc.vc_type = CONV_NONE; if (convert_setup(&vc, (char_u *)"latin1", p_enc) == OK) { conv_buf = string_convert(&vc, buffer, &nbytes); if (conv_buf != NULL) { clip_yank_selection(MCHAR, conv_buf, (long)nbytes, cbd); vim_free(conv_buf); done = TRUE; } convert_setup(&vc, NULL, NULL); } } if (!done) // use the text without conversion clip_yank_selection(MCHAR, buffer, (long)nbytes, cbd); XFree((void *)buffer); if (p_verbose > 0) { verbose_enter(); verb_msg(_("Used CUT_BUFFER0 instead of empty selection")); verbose_leave(); } } } #endif /* * SELECTION / PRIMARY ('*') * * Text selection stuff that uses the GUI selection register '*'. When using a * GUI this may be text from another window, otherwise it is the last text we * had highlighted with VIsual mode. With mouse support, clicking the middle * button performs the paste, otherwise you will need to do <"*p>. " * If not under X, it is synonymous with the clipboard register '+'. * * X CLIPBOARD ('+') * * Text selection stuff that uses the GUI clipboard register '+'. * Under X, this matches the standard cut/paste buffer CLIPBOARD selection. * It will be used for unnamed cut/pasting is 'clipboard' contains "unnamed", * otherwise you will need to do <"+p>. " * If not under X, it is synonymous with the selection register '*'. */ /* * Routine to export any final X selection we had to the environment * so that the text is still available after Vim has exited. X selections * only exist while the owning application exists, so we write to the * permanent (while X runs) store CUT_BUFFER0. * Dump the CLIPBOARD selection if we own it (it's logically the more * 'permanent' of the two), otherwise the PRIMARY one. * For now, use a hard-coded sanity limit of 1Mb of data. */ #if (defined(FEAT_X11) && defined(FEAT_CLIPBOARD)) || defined(PROTO) void x11_export_final_selection(void) { Display *dpy; char_u *str = NULL; long_u len = 0; int motion_type = -1; # ifdef FEAT_GUI if (gui.in_use) dpy = X_DISPLAY; else # endif # ifdef FEAT_XCLIPBOARD dpy = xterm_dpy; # else return; # endif // Get selection to export if (clip_plus.owned) motion_type = clip_convert_selection(&str, &len, &clip_plus); else if (clip_star.owned) motion_type = clip_convert_selection(&str, &len, &clip_star); // Check it's OK if (dpy != NULL && str != NULL && motion_type >= 0 && len < 1024*1024 && len > 0) { int ok = TRUE; // The CUT_BUFFER0 is supposed to always contain latin1. Convert from // 'enc' when it is a multi-byte encoding. When 'enc' is an 8-bit // encoding conversion usually doesn't work, so keep the text as-is. if (has_mbyte) { vimconv_T vc; vc.vc_type = CONV_NONE; if (convert_setup(&vc, p_enc, (char_u *)"latin1") == OK) { int intlen = len; char_u *conv_str; vc.vc_fail = TRUE; conv_str = string_convert(&vc, str, &intlen); len = intlen; if (conv_str != NULL) { vim_free(str); str = conv_str; } else { ok = FALSE; } convert_setup(&vc, NULL, NULL); } else { ok = FALSE; } } // Do not store the string if conversion failed. Better to use any // other selection than garbled text. if (ok) { XStoreBuffer(dpy, (char *)str, (int)len, 0); XFlush(dpy); } } vim_free(str); } #endif void clip_free_selection(Clipboard_T *cbd) { yankreg_T *y_ptr = get_y_current(); if (cbd == &clip_plus) set_y_current(get_y_register(PLUS_REGISTER)); else set_y_current(get_y_register(STAR_REGISTER)); free_yank_all(); get_y_current()->y_size = 0; set_y_current(y_ptr); } /* * Get the selected text and put it in register '*' or '+'. */ void clip_get_selection(Clipboard_T *cbd) { yankreg_T *old_y_previous, *old_y_current; pos_T old_cursor; pos_T old_visual; int old_visual_mode; colnr_T old_curswant; int old_set_curswant; pos_T old_op_start, old_op_end; oparg_T oa; cmdarg_T ca; if (cbd->owned) { if ((cbd == &clip_plus && get_y_register(PLUS_REGISTER)->y_array != NULL) || (cbd == &clip_star && get_y_register(STAR_REGISTER)->y_array != NULL)) return; // Avoid triggering autocmds such as TextYankPost. block_autocmds(); // Get the text between clip_star.start & clip_star.end old_y_previous = get_y_previous(); old_y_current = get_y_current(); old_cursor = curwin->w_cursor; old_curswant = curwin->w_curswant; old_set_curswant = curwin->w_set_curswant; old_op_start = curbuf->b_op_start; old_op_end = curbuf->b_op_end; old_visual = VIsual; old_visual_mode = VIsual_mode; clear_oparg(&oa); oa.regname = (cbd == &clip_plus ? '+' : '*'); oa.op_type = OP_YANK; CLEAR_FIELD(ca); ca.oap = &oa; ca.cmdchar = 'y'; ca.count1 = 1; ca.retval = CA_NO_ADJ_OP_END; do_pending_operator(&ca, 0, TRUE); // restore things set_y_previous(old_y_previous); set_y_current(old_y_current); curwin->w_cursor = old_cursor; changed_cline_bef_curs(); // need to update w_virtcol et al curwin->w_curswant = old_curswant; curwin->w_set_curswant = old_set_curswant; curbuf->b_op_start = old_op_start; curbuf->b_op_end = old_op_end; VIsual = old_visual; VIsual_mode = old_visual_mode; unblock_autocmds(); } else if (!is_clipboard_needs_update()) { clip_free_selection(cbd); // Try to get selected text from another window clip_gen_request_selection(cbd); } } /* * Convert from the GUI selection string into the '*'/'+' register. */ void clip_yank_selection( int type, char_u *str, long len, Clipboard_T *cbd) { yankreg_T *y_ptr; if (cbd == &clip_plus) y_ptr = get_y_register(PLUS_REGISTER); else y_ptr = get_y_register(STAR_REGISTER); clip_free_selection(cbd); str_to_reg(y_ptr, type, str, len, -1, FALSE); } /* * Convert the '*'/'+' register into a GUI selection string returned in *str * with length *len. * Returns the motion type, or -1 for failure. */ int clip_convert_selection(char_u **str, long_u *len, Clipboard_T *cbd) { char_u *p; int lnum; int i, j; int_u eolsize; yankreg_T *y_ptr; if (cbd == &clip_plus) y_ptr = get_y_register(PLUS_REGISTER); else y_ptr = get_y_register(STAR_REGISTER); # ifdef USE_CRNL eolsize = 2; # else eolsize = 1; # endif *str = NULL; *len = 0; if (y_ptr->y_array == NULL) return -1; for (i = 0; i < y_ptr->y_size; i++) *len += (long_u)STRLEN(y_ptr->y_array[i]) + eolsize; // Don't want newline character at end of last line if we're in MCHAR mode. if (y_ptr->y_type == MCHAR && *len >= eolsize) *len -= eolsize; p = *str = alloc(*len + 1); // add one to avoid zero if (p == NULL) return -1; lnum = 0; for (i = 0, j = 0; i < (int)*len; i++, j++) { if (y_ptr->y_array[lnum][j] == '\n') p[i] = NUL; else if (y_ptr->y_array[lnum][j] == NUL) { # ifdef USE_CRNL p[i++] = '\r'; # endif p[i] = '\n'; lnum++; j = -1; } else p[i] = y_ptr->y_array[lnum][j]; } return y_ptr->y_type; } /* * When "regname" is a clipboard register, obtain the selection. If it's not * available return zero, otherwise return "regname". */ int may_get_selection(int regname) { if (regname == '*') { if (!clip_star.available) regname = 0; else clip_get_selection(&clip_star); } else if (regname == '+') { if (!clip_plus.available) regname = 0; else clip_get_selection(&clip_plus); } return regname; } /* * If we have written to a clipboard register, send the text to the clipboard. */ void may_set_selection(void) { if ((get_y_current() == get_y_register(STAR_REGISTER)) && clip_star.available) { clip_own_selection(&clip_star); clip_gen_set_selection(&clip_star); } else if ((get_y_current() == get_y_register(PLUS_REGISTER)) && clip_plus.available) { clip_own_selection(&clip_plus); clip_gen_set_selection(&clip_plus); } } /* * Adjust the register name pointed to with "rp" for the clipboard being * used always and the clipboard being available. */ void adjust_clip_reg(int *rp) { // If no reg. specified, and "unnamed" or "unnamedplus" is in 'clipboard', // use '*' or '+' reg, respectively. "unnamedplus" prevails. if (*rp == 0 && (clip_unnamed != 0 || clip_unnamed_saved != 0)) { if (clip_unnamed != 0) *rp = ((clip_unnamed & CLIP_UNNAMED_PLUS) && clip_plus.available) ? '+' : '*'; else *rp = ((clip_unnamed_saved & CLIP_UNNAMED_PLUS) && clip_plus.available) ? '+' : '*'; } if (!clip_star.available && *rp == '*') *rp = 0; if (!clip_plus.available && *rp == '+') *rp = 0; } #endif // FEAT_CLIPBOARD
38fe13b22e3690c7b0a6175a85b33e859dc56fb7
ea401c3e792a50364fe11f7cea0f35f99e8f4bde
/hackathon/hanchuan/sscope/DAQmx_ANSI_C_Dev/include/NIDAQmx.h
b3e93a0248429c420d576dd62702ff2c047e0aa5
[ "MIT" ]
permissive
Vaa3D/vaa3d_tools
edb696aa3b9b59acaf83d6d27c6ae0a14bf75fe9
e6974d5223ae70474efaa85e1253f5df1814fae8
refs/heads/master
2023-08-03T06:12:01.013752
2023-08-02T07:26:01
2023-08-02T07:26:01
50,527,925
107
86
MIT
2023-05-22T23:43:48
2016-01-27T18:19:17
C++
UTF-8
C
false
false
781,662
h
NIDAQmx.h
/*============================================================================*/ /* National Instruments / Data Acquisition */ /*----------------------------------------------------------------------------*/ /* Copyright (c) National Instruments 2003-2010. All Rights Reserved. */ /*----------------------------------------------------------------------------*/ /* */ /* Title: NIDAQmx.h */ /* Purpose: Include file for NI-DAQmx library support. */ /* */ /*============================================================================*/ #ifndef ___nidaqmx_h___ #define ___nidaqmx_h___ #ifdef __cplusplus extern "C" { #endif #ifdef __linux__ #define __CFUNC #define __CFUNC_C #define __CFUNCPTRVAR #define CVICDECL #define CVICALLBACK CVICDECL #else #define __CFUNC __stdcall #define __CFUNC_C __cdecl #define __CFUNCPTRVAR __cdecl #define CVICDECL __cdecl #define CVICALLBACK CVICDECL #endif #if defined(_CVI_) && !defined(__TPC__) #pragma EnableLibraryRuntimeChecking #endif // NI-DAQmx Typedefs #ifndef _NI_int8_DEFINED_ #define _NI_int8_DEFINED_ typedef signed char int8; #endif #ifndef _NI_uInt8_DEFINED_ #define _NI_uInt8_DEFINED_ typedef unsigned char uInt8; #endif #ifndef _NI_int16_DEFINED_ #define _NI_int16_DEFINED_ typedef signed short int16; #endif #ifndef _NI_uInt16_DEFINED_ #define _NI_uInt16_DEFINED_ typedef unsigned short uInt16; #endif #ifndef _NI_int32_DEFINED_ #define _NI_int32_DEFINED_ typedef signed long int32; #endif #ifndef _NI_uInt32_DEFINED_ #define _NI_uInt32_DEFINED_ typedef unsigned long uInt32; #endif #ifndef _NI_float32_DEFINED_ #define _NI_float32_DEFINED_ typedef float float32; #endif #ifndef _NI_float64_DEFINED_ #define _NI_float64_DEFINED_ typedef double float64; #endif #ifndef _NI_int64_DEFINED_ #define _NI_int64_DEFINED_ #ifdef __linux__ typedef long long int int64; #else typedef __int64 int64; #endif #endif #ifndef _NI_uInt64_DEFINED_ #define _NI_uInt64_DEFINED_ #ifdef __linux__ typedef unsigned long long uInt64; #else typedef unsigned __int64 uInt64; #endif #endif typedef uInt32 bool32; typedef void* TaskHandle; typedef uInt32 CalHandle; #ifndef TRUE #define TRUE (1L) #endif #ifndef FALSE #define FALSE (0L) #endif #ifndef NULL #define NULL (0L) #endif /****************************************************************************** *** NI-DAQmx Attributes ****************************************************** ******************************************************************************/ //********** Buffer Attributes ********** #define DAQmx_Buf_Input_BufSize 0x186C // Specifies the number of samples the input buffer can hold for each channel in the task. Zero indicates to allocate no buffer. Use a buffer size of 0 to perform a hardware-timed operation without using a buffer. Setting this property overrides the automatic input buffer allocation that NI-DAQmx performs. #define DAQmx_Buf_Input_OnbrdBufSize 0x230A // Indicates in samples per channel the size of the onboard input buffer of the device. #define DAQmx_Buf_Output_BufSize 0x186D // Specifies the number of samples the output buffer can hold for each channel in the task. Zero indicates to allocate no buffer. Use a buffer size of 0 to perform a hardware-timed operation without using a buffer. Setting this property overrides the automatic output buffer allocation that NI-DAQmx performs. #define DAQmx_Buf_Output_OnbrdBufSize 0x230B // Specifies in samples per channel the size of the onboard output buffer of the device. //********** Calibration Info Attributes ********** #define DAQmx_SelfCal_Supported 0x1860 // Indicates whether the device supports self-calibration. #define DAQmx_SelfCal_LastTemp 0x1864 // Indicates in degrees Celsius the temperature of the device at the time of the last self-calibration. Compare this temperature to the current onboard temperature to determine if you should perform another calibration. #define DAQmx_ExtCal_RecommendedInterval 0x1868 // Indicates in months the National Instruments recommended interval between each external calibration of the device. #define DAQmx_ExtCal_LastTemp 0x1867 // Indicates in degrees Celsius the temperature of the device at the time of the last external calibration. Compare this temperature to the current onboard temperature to determine if you should perform another calibration. #define DAQmx_Cal_UserDefinedInfo 0x1861 // Specifies a string that contains arbitrary, user-defined information. This number of characters in this string can be no more than Max Size. #define DAQmx_Cal_UserDefinedInfo_MaxSize 0x191C // Indicates the maximum length in characters of Information. #define DAQmx_Cal_DevTemp 0x223B // Indicates in degrees Celsius the current temperature of the device. //********** Channel Attributes ********** #define DAQmx_AI_Max 0x17DD // Specifies the maximum value you expect to measure. This value is in the units you specify with a units property. When you query this property, it returns the coerced maximum value that the device can measure with the current settings. #define DAQmx_AI_Min 0x17DE // Specifies the minimum value you expect to measure. This value is in the units you specify with a units property. When you query this property, it returns the coerced minimum value that the device can measure with the current settings. #define DAQmx_AI_CustomScaleName 0x17E0 // Specifies the name of a custom scale for the channel. #define DAQmx_AI_MeasType 0x0695 // Indicates the measurement to take with the analog input channel and in some cases, such as for temperature measurements, the sensor to use. #define DAQmx_AI_Voltage_Units 0x1094 // Specifies the units to use to return voltage measurements from the channel. #define DAQmx_AI_Voltage_dBRef 0x29B0 // Specifies the decibel reference level in the units of the channel. When you read samples as a waveform, the decibel reference level is included in the waveform attributes. #define DAQmx_AI_Voltage_ACRMS_Units 0x17E2 // Specifies the units to use to return voltage RMS measurements from the channel. #define DAQmx_AI_Temp_Units 0x1033 // Specifies the units to use to return temperature measurements from the channel. #define DAQmx_AI_Thrmcpl_Type 0x1050 // Specifies the type of thermocouple connected to the channel. Thermocouple types differ in composition and measurement range. #define DAQmx_AI_Thrmcpl_ScaleType 0x29D0 // Specifies the method or equation form that the thermocouple scale uses. #define DAQmx_AI_Thrmcpl_CJCSrc 0x1035 // Indicates the source of cold-junction compensation. #define DAQmx_AI_Thrmcpl_CJCVal 0x1036 // Specifies the temperature of the cold junction if CJC Source is DAQmx_Val_ConstVal. Specify this value in the units of the measurement. #define DAQmx_AI_Thrmcpl_CJCChan 0x1034 // Indicates the channel that acquires the temperature of the cold junction if CJC Source is DAQmx_Val_Chan. If the channel is a temperature channel, NI-DAQmx acquires the temperature in the correct units. Other channel types, such as a resistance channel with a custom sensor, must use a custom scale to scale values to degrees Celsius. #define DAQmx_AI_RTD_Type 0x1032 // Specifies the type of RTD connected to the channel. #define DAQmx_AI_RTD_R0 0x1030 // Specifies in ohms the sensor resistance at 0 deg C. The Callendar-Van Dusen equation requires this value. Refer to the sensor documentation to determine this value. #define DAQmx_AI_RTD_A 0x1010 // Specifies the 'A' constant of the Callendar-Van Dusen equation. NI-DAQmx requires this value when you use a custom RTD. #define DAQmx_AI_RTD_B 0x1011 // Specifies the 'B' constant of the Callendar-Van Dusen equation. NI-DAQmx requires this value when you use a custom RTD. #define DAQmx_AI_RTD_C 0x1013 // Specifies the 'C' constant of the Callendar-Van Dusen equation. NI-DAQmx requires this value when you use a custom RTD. #define DAQmx_AI_Thrmstr_A 0x18C9 // Specifies the 'A' constant of the Steinhart-Hart thermistor equation. #define DAQmx_AI_Thrmstr_B 0x18CB // Specifies the 'B' constant of the Steinhart-Hart thermistor equation. #define DAQmx_AI_Thrmstr_C 0x18CA // Specifies the 'C' constant of the Steinhart-Hart thermistor equation. #define DAQmx_AI_Thrmstr_R1 0x1061 // Specifies in ohms the value of the reference resistor for the thermistor if you use voltage excitation. NI-DAQmx ignores this value for current excitation. #define DAQmx_AI_ForceReadFromChan 0x18F8 // Specifies whether to read from the channel if it is a cold-junction compensation channel. By default, an NI-DAQmx Read function does not return data from cold-junction compensation channels. Setting this property to TRUE forces read operations to return the cold-junction compensation channel data with the other channels in the task. #define DAQmx_AI_Current_Units 0x0701 // Specifies the units to use to return current measurements from the channel. #define DAQmx_AI_Current_ACRMS_Units 0x17E3 // Specifies the units to use to return current RMS measurements from the channel. #define DAQmx_AI_Strain_Units 0x0981 // Specifies the units to use to return strain measurements from the channel. #define DAQmx_AI_StrainGage_GageFactor 0x0994 // Specifies the sensitivity of the strain gage. Gage factor relates the change in electrical resistance to the change in strain. Refer to the sensor documentation for this value. #define DAQmx_AI_StrainGage_PoissonRatio 0x0998 // Specifies the ratio of lateral strain to axial strain in the material you are measuring. #define DAQmx_AI_StrainGage_Cfg 0x0982 // Specifies the bridge configuration of the strain gages. #define DAQmx_AI_Resistance_Units 0x0955 // Specifies the units to use to return resistance measurements. #define DAQmx_AI_Freq_Units 0x0806 // Specifies the units to use to return frequency measurements from the channel. #define DAQmx_AI_Freq_ThreshVoltage 0x0815 // Specifies the voltage level at which to recognize waveform repetitions. You should select a voltage level that occurs only once within the entire period of a waveform. You also can select a voltage that occurs only once while the voltage rises or falls. #define DAQmx_AI_Freq_Hyst 0x0814 // Specifies in volts a window below Threshold Level. The input voltage must pass below Threshold Level minus this value before NI-DAQmx recognizes a waveform repetition at Threshold Level. Hysteresis can improve the measurement accuracy when the signal contains noise or jitter. #define DAQmx_AI_LVDT_Units 0x0910 // Specifies the units to use to return linear position measurements from the channel. #define DAQmx_AI_LVDT_Sensitivity 0x0939 // Specifies the sensitivity of the LVDT. This value is in the units you specify with Sensitivity Units. Refer to the sensor documentation to determine this value. #define DAQmx_AI_LVDT_SensitivityUnits 0x219A // Specifies the units of Sensitivity. #define DAQmx_AI_RVDT_Units 0x0877 // Specifies the units to use to return angular position measurements from the channel. #define DAQmx_AI_RVDT_Sensitivity 0x0903 // Specifies the sensitivity of the RVDT. This value is in the units you specify with Sensitivity Units. Refer to the sensor documentation to determine this value. #define DAQmx_AI_RVDT_SensitivityUnits 0x219B // Specifies the units of Sensitivity. #define DAQmx_AI_EddyCurrentProxProbe_Units 0x2AC0 // Specifies the units to use to return proximity measurements from the channel. #define DAQmx_AI_EddyCurrentProxProbe_Sensitivity 0x2ABE // Specifies the sensitivity of the eddy current proximity probe . This value is in the units you specify with Sensitivity Units. Refer to the sensor documentation to determine this value. #define DAQmx_AI_EddyCurrentProxProbe_SensitivityUnits 0x2ABF // Specifies the units of Sensitivity. #define DAQmx_AI_SoundPressure_MaxSoundPressureLvl 0x223A // Specifies the maximum instantaneous sound pressure level you expect to measure. This value is in decibels, referenced to 20 micropascals. NI-DAQmx uses the maximum sound pressure level to calculate values in pascals for Maximum Value and Minimum Value for the channel. #define DAQmx_AI_SoundPressure_Units 0x1528 // Specifies the units to use to return sound pressure measurements from the channel. #define DAQmx_AI_SoundPressure_dBRef 0x29B1 // Specifies the decibel reference level in the units of the channel. When you read samples as a waveform, the decibel reference level is included in the waveform attributes. NI-DAQmx also uses the decibel reference level when converting Maximum Sound Pressure Level to a voltage level. #define DAQmx_AI_Microphone_Sensitivity 0x1536 // Specifies the sensitivity of the microphone. This value is in mV/Pa. Refer to the sensor documentation to determine this value. #define DAQmx_AI_Accel_Units 0x0673 // Specifies the units to use to return acceleration measurements from the channel. #define DAQmx_AI_Accel_dBRef 0x29B2 // Specifies the decibel reference level in the units of the channel. When you read samples as a waveform, the decibel reference level is included in the waveform attributes. #define DAQmx_AI_Accel_Sensitivity 0x0692 // Specifies the sensitivity of the accelerometer. This value is in the units you specify with Sensitivity Units. Refer to the sensor documentation to determine this value. #define DAQmx_AI_Accel_SensitivityUnits 0x219C // Specifies the units of Sensitivity. #define DAQmx_AI_Force_Units 0x2F75 // Specifies in which unit to return force or load measurements from the channel. #define DAQmx_AI_Force_IEPESensor_Sensitivity 0x2F81 // Specifies the sensitivity of the IEPE force sensor connected to the channel. Specify this value in the unit indicated by Sensitivity Units. #define DAQmx_AI_Force_IEPESensor_SensitivityUnits 0x2F82 // Specifies the units for Sensitivity. #define DAQmx_AI_Pressure_Units 0x2F76 // Specifies in which unit to return pressure measurements from the channel. #define DAQmx_AI_Torque_Units 0x2F77 // Specifies in which unit to return torque measurements from the channel. #define DAQmx_AI_Bridge_Units 0x2F92 // Specifies in which unit to return voltage ratios from the channel. #define DAQmx_AI_Bridge_ElectricalUnits 0x2F87 // Specifies from which electrical unit to scale data. Select the same unit that the sensor data sheet or calibration certificate uses for electrical values. #define DAQmx_AI_Bridge_PhysicalUnits 0x2F88 // Specifies to which physical unit to scale electrical data. Select the same unit that the sensor data sheet or calibration certificate uses for physical values. #define DAQmx_AI_Bridge_ScaleType 0x2F89 // Specifies the scaling type to use when scaling electrical values from the sensor to physical units. #define DAQmx_AI_Bridge_TwoPointLin_First_ElectricalVal 0x2F8A // Specifies the first electrical value, corresponding to Physical Value. Specify this value in the unit indicated by Electrical Units. #define DAQmx_AI_Bridge_TwoPointLin_First_PhysicalVal 0x2F8B // Specifies the first physical value, corresponding to Electrical Value. Specify this value in the unit indicated by Physical Units. #define DAQmx_AI_Bridge_TwoPointLin_Second_ElectricalVal 0x2F8C // Specifies the second electrical value, corresponding to Physical Value. Specify this value in the unit indicated by Electrical Units. #define DAQmx_AI_Bridge_TwoPointLin_Second_PhysicalVal 0x2F8D // Specifies the second physical value, corresponding to Electrical Value. Specify this value in the unit indicated by Physical Units. #define DAQmx_AI_Bridge_Table_ElectricalVals 0x2F8E // Specifies the array of electrical values that map to the values in Physical Values. Specify this value in the unit indicated by Electrical Units. #define DAQmx_AI_Bridge_Table_PhysicalVals 0x2F8F // Specifies the array of physical values that map to the values in Electrical Values. Specify this value in the unit indicated by Physical Units. #define DAQmx_AI_Bridge_Poly_ForwardCoeff 0x2F90 // Specifies an array of coefficients for the polynomial that converts electrical values to physical values. Each element of the array corresponds to a term of the equation. For example, if index three of the array is 9, the fourth term of the equation is 9x^3. #define DAQmx_AI_Bridge_Poly_ReverseCoeff 0x2F91 // Specifies an array of coefficients for the polynomial that converts physical values to electrical values. Each element of the array corresponds to a term of the equation. For example, if index three of the array is 9, the fourth term of the equation is 9x^3. #define DAQmx_AI_Is_TEDS 0x2983 // Indicates if the virtual channel was initialized using a TEDS bitstream from the corresponding physical channel. #define DAQmx_AI_TEDS_Units 0x21E0 // Indicates the units defined by TEDS information associated with the channel. #define DAQmx_AI_Coupling 0x0064 // Specifies the coupling for the channel. #define DAQmx_AI_Impedance 0x0062 // Specifies the input impedance of the channel. #define DAQmx_AI_TermCfg 0x1097 // Specifies the terminal configuration for the channel. #define DAQmx_AI_InputSrc 0x2198 // Specifies the source of the channel. You can use the signal from the I/O connector or one of several calibration signals. Certain devices have a single calibration signal bus. For these devices, you must specify the same calibration signal for all channels you connect to a calibration signal. #define DAQmx_AI_ResistanceCfg 0x1881 // Specifies the resistance configuration for the channel. NI-DAQmx uses this value for any resistance-based measurements, including temperature measurement using a thermistor or RTD. #define DAQmx_AI_LeadWireResistance 0x17EE // Specifies in ohms the resistance of the wires that lead to the sensor. #define DAQmx_AI_Bridge_Cfg 0x0087 // Specifies the type of Wheatstone bridge connected to the channel. #define DAQmx_AI_Bridge_NomResistance 0x17EC // Specifies in ohms the resistance of the bridge while not under load. #define DAQmx_AI_Bridge_InitialVoltage 0x17ED // Specifies in volts the output voltage of the bridge while not under load. NI-DAQmx subtracts this value from any measurements before applying scaling equations. If you set Initial Bridge Ratio, NI-DAQmx coerces this property to Initial Bridge Ratio times Actual Excitation Value. If you set this property, NI-DAQmx coerces Initial Bridge Ratio to the value of this property divided by Actual Excitation Value. If y... #define DAQmx_AI_Bridge_InitialRatio 0x2F86 // Specifies in volts per volt the ratio of output voltage from the bridge to excitation voltage supplied to the bridge while not under load. NI-DAQmx subtracts this value from any measurements before applying scaling equations. If you set Initial Bridge Voltage, NI-DAQmx coerces this property to Initial Bridge Voltage divided by Actual Excitation Value. If you set this property, NI-DAQmx coerces Initial Bridge Volt... #define DAQmx_AI_Bridge_ShuntCal_Enable 0x0094 // Specifies whether to enable a shunt calibration switch. Use Shunt Cal Select to select the switch(es) to enable. #define DAQmx_AI_Bridge_ShuntCal_Select 0x21D5 // Specifies which shunt calibration switch(es) to enable. Use Shunt Cal Enable to enable the switch(es) you specify with this property. #define DAQmx_AI_Bridge_ShuntCal_GainAdjust 0x193F // Specifies the result of a shunt calibration. NI-DAQmx multiplies data read from the channel by the value of this property. This value should be close to 1.0. #define DAQmx_AI_Bridge_ShuntCal_ShuntCalAResistance 0x2F78 // Specifies in ohms the desired value of the internal shunt calibration A resistor. #define DAQmx_AI_Bridge_ShuntCal_ShuntCalAActualResistance 0x2F79 // Specifies in ohms the actual value of the internal shunt calibration A resistor. #define DAQmx_AI_Bridge_Balance_CoarsePot 0x17F1 // Specifies by how much to compensate for offset in the signal. This value can be between 0 and 127. #define DAQmx_AI_Bridge_Balance_FinePot 0x18F4 // Specifies by how much to compensate for offset in the signal. This value can be between 0 and 4095. #define DAQmx_AI_CurrentShunt_Loc 0x17F2 // Specifies the shunt resistor location for current measurements. #define DAQmx_AI_CurrentShunt_Resistance 0x17F3 // Specifies in ohms the external shunt resistance for current measurements. #define DAQmx_AI_Excit_Src 0x17F4 // Specifies the source of excitation. #define DAQmx_AI_Excit_Val 0x17F5 // Specifies the amount of excitation that the sensor requires. If Voltage or Current is DAQmx_Val_Voltage, this value is in volts. If Voltage or Current is DAQmx_Val_Current, this value is in amperes. #define DAQmx_AI_Excit_UseForScaling 0x17FC // Specifies if NI-DAQmx divides the measurement by the excitation. You should typically set this property to TRUE for ratiometric transducers. If you set this property to TRUE, set Maximum Value and Minimum Value to reflect the scaling. #define DAQmx_AI_Excit_UseMultiplexed 0x2180 // Specifies if the SCXI-1122 multiplexes the excitation to the upper half of the channels as it advances through the scan list. #define DAQmx_AI_Excit_ActualVal 0x1883 // Specifies the actual amount of excitation supplied by an internal excitation source. If you read an internal excitation source more precisely with an external device, set this property to the value you read. NI-DAQmx ignores this value for external excitation. When performing shunt calibration, some devices set this property automatically. #define DAQmx_AI_Excit_DCorAC 0x17FB // Specifies if the excitation supply is DC or AC. #define DAQmx_AI_Excit_VoltageOrCurrent 0x17F6 // Specifies if the channel uses current or voltage excitation. #define DAQmx_AI_ACExcit_Freq 0x0101 // Specifies the AC excitation frequency in Hertz. #define DAQmx_AI_ACExcit_SyncEnable 0x0102 // Specifies whether to synchronize the AC excitation source of the channel to that of another channel. Synchronize the excitation sources of multiple channels to use multichannel sensors. Set this property to FALSE for the master channel and to TRUE for the slave channels. #define DAQmx_AI_ACExcit_WireMode 0x18CD // Specifies the number of leads on the LVDT or RVDT. Some sensors require you to tie leads together to create a four- or five- wire sensor. Refer to the sensor documentation for more information. #define DAQmx_AI_OpenThrmcplDetectEnable 0x2F72 // Specifies whether to apply the open thermocouple detection bias voltage to the channel. When open thermocouple detection is enabled, use Open Thermocouple Channels Exist to determine if any channels were open. #define DAQmx_AI_Thrmcpl_LeadOffsetVoltage 0x2FB8 // Specifies the lead offset nulling voltage to subtract from measurements on a device. This property is ignored if open thermocouple detection is disabled. #define DAQmx_AI_Atten 0x1801 // Specifies the amount of attenuation to use. #define DAQmx_AI_ProbeAtten 0x2A88 // Specifies the amount of attenuation provided by the probe connected to the channel. Specify this attenuation as a ratio. #define DAQmx_AI_Lowpass_Enable 0x1802 // Specifies whether to enable the lowpass filter of the channel. #define DAQmx_AI_Lowpass_CutoffFreq 0x1803 // Specifies the frequency in Hertz that corresponds to the -3dB cutoff of the filter. #define DAQmx_AI_Lowpass_SwitchCap_ClkSrc 0x1884 // Specifies the source of the filter clock. If you need a higher resolution for the filter, you can supply an external clock to increase the resolution. Refer to the SCXI-1141/1142/1143 User Manual for more information. #define DAQmx_AI_Lowpass_SwitchCap_ExtClkFreq 0x1885 // Specifies the frequency of the external clock when you set Clock Source to DAQmx_Val_External. NI-DAQmx uses this frequency to set the pre- and post- filters on the SCXI-1141, SCXI-1142, and SCXI-1143. On those devices, NI-DAQmx determines the filter cutoff by using the equation f/(100*n), where f is the external frequency, and n is the external clock divisor. Refer to the SCXI-1141/1142/1143 User Manual for more... #define DAQmx_AI_Lowpass_SwitchCap_ExtClkDiv 0x1886 // Specifies the divisor for the external clock when you set Clock Source to DAQmx_Val_External. On the SCXI-1141, SCXI-1142, and SCXI-1143, NI-DAQmx determines the filter cutoff by using the equation f/(100*n), where f is the external frequency, and n is the external clock divisor. Refer to the SCXI-1141/1142/1143 User Manual for more information. #define DAQmx_AI_Lowpass_SwitchCap_OutClkDiv 0x1887 // Specifies the divisor for the output clock. NI-DAQmx uses the cutoff frequency to determine the output clock frequency. Refer to the SCXI-1141/1142/1143 User Manual for more information. #define DAQmx_AI_RemoveFilterDelay 0x2FBD // Specifies if filter delay removal is enabled on the device. By default, filter delay removal is disabled on supported devices. #define DAQmx_AI_ResolutionUnits 0x1764 // Indicates the units of Resolution Value. #define DAQmx_AI_Resolution 0x1765 // Indicates the resolution of the analog-to-digital converter of the channel. This value is in the units you specify with Resolution Units. #define DAQmx_AI_RawSampSize 0x22DA // Indicates in bits the size of a raw sample from the device. #define DAQmx_AI_RawSampJustification 0x0050 // Indicates the justification of a raw sample from the device. #define DAQmx_AI_ADCTimingMode 0x29F9 // Specifies the ADC timing mode, controlling the tradeoff between speed and effective resolution. Some ADC timing modes provide increased powerline noise rejection. On devices that have an AI Convert clock, this setting affects both the maximum and default values for Rate. You must use the same ADC timing mode for all channels on a device, but you can use different ADC timing modes for different devices in the same ... #define DAQmx_AI_ADCCustomTimingMode 0x2F6B // Specifies the timing mode of the ADC when Timing Mode is DAQmx_Val_Custom. #define DAQmx_AI_Dither_Enable 0x0068 // Specifies whether to enable dithering. Dithering adds Gaussian noise to the input signal. You can use dithering to achieve higher resolution measurements by over sampling the input signal and averaging the results. #define DAQmx_AI_ChanCal_HasValidCalInfo 0x2297 // Indicates if the channel has calibration information. #define DAQmx_AI_ChanCal_EnableCal 0x2298 // Specifies whether to enable the channel calibration associated with the channel. #define DAQmx_AI_ChanCal_ApplyCalIfExp 0x2299 // Specifies whether to apply the channel calibration to the channel after the expiration date has passed. #define DAQmx_AI_ChanCal_ScaleType 0x229C // Specifies the method or equation form that the calibration scale uses. #define DAQmx_AI_ChanCal_Table_PreScaledVals 0x229D // Specifies the reference values collected when calibrating the channel. #define DAQmx_AI_ChanCal_Table_ScaledVals 0x229E // Specifies the acquired values collected when calibrating the channel. #define DAQmx_AI_ChanCal_Poly_ForwardCoeff 0x229F // Specifies the forward polynomial values used for calibrating the channel. #define DAQmx_AI_ChanCal_Poly_ReverseCoeff 0x22A0 // Specifies the reverse polynomial values used for calibrating the channel. #define DAQmx_AI_ChanCal_OperatorName 0x22A3 // Specifies the name of the operator who performed the channel calibration. #define DAQmx_AI_ChanCal_Desc 0x22A4 // Specifies the description entered for the calibration of the channel. #define DAQmx_AI_ChanCal_Verif_RefVals 0x22A1 // Specifies the reference values collected when verifying the calibration. NI-DAQmx stores these values as a record of calibration accuracy and does not use them in the scaling process. #define DAQmx_AI_ChanCal_Verif_AcqVals 0x22A2 // Specifies the acquired values collected when verifying the calibration. NI-DAQmx stores these values as a record of calibration accuracy and does not use them in the scaling process. #define DAQmx_AI_Rng_High 0x1815 // Specifies the upper limit of the input range of the device. This value is in the native units of the device. On E Series devices, for example, the native units is volts. #define DAQmx_AI_Rng_Low 0x1816 // Specifies the lower limit of the input range of the device. This value is in the native units of the device. On E Series devices, for example, the native units is volts. #define DAQmx_AI_DCOffset 0x2A89 // Specifies the DC value to add to the input range of the device. Use High and Low to specify the input range. This offset is in the native units of the device . #define DAQmx_AI_Gain 0x1818 // Specifies a gain factor to apply to the channel. #define DAQmx_AI_SampAndHold_Enable 0x181A // Specifies whether to enable the sample and hold circuitry of the device. When you disable sample and hold circuitry, a small voltage offset might be introduced into the signal. You can eliminate this offset by using Auto Zero Mode to perform an auto zero on the channel. #define DAQmx_AI_AutoZeroMode 0x1760 // Specifies how often to measure ground. NI-DAQmx subtracts the measured ground voltage from every sample. #define DAQmx_AI_DataXferMech 0x1821 // Specifies the data transfer mode for the device. #define DAQmx_AI_DataXferReqCond 0x188B // Specifies under what condition to transfer data from the onboard memory of the device to the buffer. #define DAQmx_AI_DataXferCustomThreshold 0x230C // Specifies the number of samples that must be in the FIFO to transfer data from the device if Data Transfer Request Condition is DAQmx_Val_OnbrdMemCustomThreshold. #define DAQmx_AI_UsbXferReqSize 0x2A8E // Specifies the maximum size of a USB transfer request in bytes. Modify this value to affect performance under different combinations of operating system and device. #define DAQmx_AI_MemMapEnable 0x188C // Specifies for NI-DAQmx to map hardware registers to the memory space of the application, if possible. Normally, NI-DAQmx maps hardware registers to memory accessible only to the kernel. Mapping the registers to the memory space of the application increases performance. However, if the application accesses the memory space mapped to the registers, it can adversely affect the operation of the device and possibly res... #define DAQmx_AI_RawDataCompressionType 0x22D8 // Specifies the type of compression to apply to raw samples returned from the device. #define DAQmx_AI_LossyLSBRemoval_CompressedSampSize 0x22D9 // Specifies the number of bits to return in a raw sample when Raw Data Compression Type is set to DAQmx_Val_LossyLSBRemoval. #define DAQmx_AI_DevScalingCoeff 0x1930 // Indicates the coefficients of a polynomial equation that NI-DAQmx uses to scale values from the native format of the device to volts. Each element of the array corresponds to a term of the equation. For example, if index two of the array is 4, the third term of the equation is 4x^2. Scaling coefficients do not account for any custom scales or sensors contained by the channel. #define DAQmx_AI_EnhancedAliasRejectionEnable 0x2294 // Specifies whether to enable enhanced alias rejection. Leave this property set to the default value for most applications. #define DAQmx_AO_Max 0x1186 // Specifies the maximum value you expect to generate. The value is in the units you specify with a units property. If you try to write a value larger than the maximum value, NI-DAQmx generates an error. NI-DAQmx might coerce this value to a smaller value if other task settings restrict the device from generating the desired maximum. #define DAQmx_AO_Min 0x1187 // Specifies the minimum value you expect to generate. The value is in the units you specify with a units property. If you try to write a value smaller than the minimum value, NI-DAQmx generates an error. NI-DAQmx might coerce this value to a larger value if other task settings restrict the device from generating the desired minimum. #define DAQmx_AO_CustomScaleName 0x1188 // Specifies the name of a custom scale for the channel. #define DAQmx_AO_OutputType 0x1108 // Indicates whether the channel generates voltage, current, or a waveform. #define DAQmx_AO_Voltage_Units 0x1184 // Specifies in what units to generate voltage on the channel. Write data to the channel in the units you select. #define DAQmx_AO_Voltage_CurrentLimit 0x2A1D // Specifies the current limit, in amperes, for the voltage channel. #define DAQmx_AO_Current_Units 0x1109 // Specifies in what units to generate current on the channel. Write data to the channel in the units you select. #define DAQmx_AO_FuncGen_Type 0x2A18 // Specifies the kind of the waveform to generate. #define DAQmx_AO_FuncGen_Freq 0x2A19 // Specifies the frequency of the waveform to generate in hertz. #define DAQmx_AO_FuncGen_Amplitude 0x2A1A // Specifies the zero-to-peak amplitude of the waveform to generate in volts. Zero and negative values are valid. #define DAQmx_AO_FuncGen_Offset 0x2A1B // Specifies the voltage offset of the waveform to generate. #define DAQmx_AO_FuncGen_Square_DutyCycle 0x2A1C // Specifies the square wave duty cycle of the waveform to generate. #define DAQmx_AO_FuncGen_ModulationType 0x2A22 // Specifies if the device generates a modulated version of the waveform using the original waveform as a carrier and input from an external terminal as the signal. #define DAQmx_AO_FuncGen_FMDeviation 0x2A23 // Specifies the FM deviation in hertz per volt when Type is DAQmx_Val_FM. #define DAQmx_AO_OutputImpedance 0x1490 // Specifies in ohms the impedance of the analog output stage of the device. #define DAQmx_AO_LoadImpedance 0x0121 // Specifies in ohms the load impedance connected to the analog output channel. #define DAQmx_AO_IdleOutputBehavior 0x2240 // Specifies the state of the channel when no generation is in progress. #define DAQmx_AO_TermCfg 0x188E // Specifies the terminal configuration of the channel. #define DAQmx_AO_ResolutionUnits 0x182B // Specifies the units of Resolution Value. #define DAQmx_AO_Resolution 0x182C // Indicates the resolution of the digital-to-analog converter of the channel. This value is in the units you specify with Resolution Units. #define DAQmx_AO_DAC_Rng_High 0x182E // Specifies the upper limit of the output range of the device. This value is in the native units of the device. On E Series devices, for example, the native units is volts. #define DAQmx_AO_DAC_Rng_Low 0x182D // Specifies the lower limit of the output range of the device. This value is in the native units of the device. On E Series devices, for example, the native units is volts. #define DAQmx_AO_DAC_Ref_ConnToGnd 0x0130 // Specifies whether to ground the internal DAC reference. Grounding the internal DAC reference has the effect of grounding all analog output channels and stopping waveform generation across all analog output channels regardless of whether the channels belong to the current task. You can ground the internal DAC reference only when Source is DAQmx_Val_Internal and Allow Connecting DAC Reference to Ground at Runtime is... #define DAQmx_AO_DAC_Ref_AllowConnToGnd 0x1830 // Specifies whether to allow grounding the internal DAC reference at run time. You must set this property to TRUE and set Source to DAQmx_Val_Internal before you can set Connect DAC Reference to Ground to TRUE. #define DAQmx_AO_DAC_Ref_Src 0x0132 // Specifies the source of the DAC reference voltage. The value of this voltage source determines the full-scale value of the DAC. #define DAQmx_AO_DAC_Ref_ExtSrc 0x2252 // Specifies the source of the DAC reference voltage if Source is DAQmx_Val_External. The valid sources for this signal vary by device. #define DAQmx_AO_DAC_Ref_Val 0x1832 // Specifies in volts the value of the DAC reference voltage. This voltage determines the full-scale range of the DAC. Smaller reference voltages result in smaller ranges, but increased resolution. #define DAQmx_AO_DAC_Offset_Src 0x2253 // Specifies the source of the DAC offset voltage. The value of this voltage source determines the full-scale value of the DAC. #define DAQmx_AO_DAC_Offset_ExtSrc 0x2254 // Specifies the source of the DAC offset voltage if Source is DAQmx_Val_External. The valid sources for this signal vary by device. #define DAQmx_AO_DAC_Offset_Val 0x2255 // Specifies in volts the value of the DAC offset voltage. To achieve best accuracy, the DAC offset value should be hand calibrated. #define DAQmx_AO_ReglitchEnable 0x0133 // Specifies whether to enable reglitching. The output of a DAC normally glitches whenever the DAC is updated with a new value. The amount of glitching differs from code to code and is generally largest at major code transitions. Reglitching generates uniform glitch energy at each code transition and provides for more uniform glitches. Uniform glitch energy makes it easier to filter out the noise introduced from g... #define DAQmx_AO_Gain 0x0118 // Specifies in decibels the gain factor to apply to the channel. #define DAQmx_AO_UseOnlyOnBrdMem 0x183A // Specifies whether to write samples directly to the onboard memory of the device, bypassing the memory buffer. Generally, you cannot update onboard memory directly after you start the task. Onboard memory includes data FIFOs. #define DAQmx_AO_DataXferMech 0x0134 // Specifies the data transfer mode for the device. #define DAQmx_AO_DataXferReqCond 0x183C // Specifies under what condition to transfer data from the buffer to the onboard memory of the device. #define DAQmx_AO_UsbXferReqSize 0x2A8F // Specifies the maximum size of a USB transfer request in bytes. Modify this value to affect performance under different combinations of operating system and device. #define DAQmx_AO_MemMapEnable 0x188F // Specifies for NI-DAQmx to map hardware registers to the memory space of the application, if possible. Normally, NI-DAQmx maps hardware registers to memory accessible only to the kernel. Mapping the registers to the memory space of the application increases performance. However, if the application accesses the memory space mapped to the registers, it can adversely affect the operation of the device and possibly res... #define DAQmx_AO_DevScalingCoeff 0x1931 // Indicates the coefficients of a linear equation that NI-DAQmx uses to scale values from a voltage to the native format of the device. Each element of the array corresponds to a term of the equation. The first element of the array corresponds to the y-intercept, and the second element corresponds to the slope. Scaling coefficients do not account for any custom scales that may be applied to the channel. #define DAQmx_AO_EnhancedImageRejectionEnable 0x2241 // Specifies whether to enable the DAC interpolation filter. Disable the interpolation filter to improve DAC signal-to-noise ratio at the expense of degraded image rejection. #define DAQmx_DI_InvertLines 0x0793 // Specifies whether to invert the lines in the channel. If you set this property to TRUE, the lines are at high logic when off and at low logic when on. #define DAQmx_DI_NumLines 0x2178 // Indicates the number of digital lines in the channel. #define DAQmx_DI_DigFltr_Enable 0x21D6 // Specifies whether to enable the digital filter for the line(s) or port(s). You can enable the filter on a line-by-line basis. You do not have to enable the filter for all lines in a channel. #define DAQmx_DI_DigFltr_MinPulseWidth 0x21D7 // Specifies in seconds the minimum pulse width the filter recognizes as a valid high or low state transition. #define DAQmx_DI_DigFltr_EnableBusMode 0x2EFE // Specifies whether to enable bus mode for digital filtering. If you set this property to TRUE, NI-DAQmx treats all lines that use common filtering settings as a bus. If any line in the bus has jitter, all lines in the bus hold state until the entire bus stabilizes, or until 2 times the minimum pulse width elapses. If you set this property to FALSE, NI-DAQmx filters all lines individually. Jitter in one line does no... #define DAQmx_DI_DigFltr_TimebaseSrc 0x2ED4 // Specifies the terminal of the signal to use as the timebase of the digital filter. #define DAQmx_DI_DigFltr_TimebaseRate 0x2ED5 // Specifies in hertz the rate of the digital filter timebase. NI-DAQmx uses this value to compute settings for the filter. #define DAQmx_DI_DigSync_Enable 0x2ED6 // Specifies whether to synchronize recognition of transitions in the signal to the internal timebase of the device. #define DAQmx_DI_Tristate 0x1890 // Specifies whether to tristate the lines in the channel. If you set this property to TRUE, NI-DAQmx tristates the lines in the channel. If you set this property to FALSE, NI-DAQmx does not modify the configuration of the lines even if the lines were previously tristated. Set this property to FALSE to read lines in other tasks or to read output-only lines. #define DAQmx_DI_LogicFamily 0x296D // Specifies the logic family to use for acquisition. A logic family corresponds to voltage thresholds that are compatible with a group of voltage standards. Refer to the device documentation for information on the logic high and logic low voltages for these logic families. #define DAQmx_DI_DataXferMech 0x2263 // Specifies the data transfer mode for the device. #define DAQmx_DI_DataXferReqCond 0x2264 // Specifies under what condition to transfer data from the onboard memory of the device to the buffer. #define DAQmx_DI_UsbXferReqSize 0x2A90 // Specifies the maximum size of a USB transfer request in bytes. Modify this value to affect performance under different combinations of operating system and device. #define DAQmx_DI_MemMapEnable 0x296A // Specifies for NI-DAQmx to map hardware registers to the memory space of the application, if possible. Normally, NI-DAQmx maps hardware registers to memory accessible only to the kernel. Mapping the registers to the memory space of the application increases performance. However, if the application accesses the memory space mapped to the registers, it can adversely affect the operation of the device and possibly res... #define DAQmx_DI_AcquireOn 0x2966 // Specifies on which edge of the sample clock to acquire samples. #define DAQmx_DO_OutputDriveType 0x1137 // Specifies the drive type for digital output channels. #define DAQmx_DO_InvertLines 0x1133 // Specifies whether to invert the lines in the channel. If you set this property to TRUE, the lines are at high logic when off and at low logic when on. #define DAQmx_DO_NumLines 0x2179 // Indicates the number of digital lines in the channel. #define DAQmx_DO_Tristate 0x18F3 // Specifies whether to stop driving the channel and set it to a high-impedance state. You must commit the task for this setting to take effect. #define DAQmx_DO_LineStates_StartState 0x2972 // Specifies the state of the lines in a digital output task when the task starts. #define DAQmx_DO_LineStates_PausedState 0x2967 // Specifies the state of the lines in a digital output task when the task pauses. #define DAQmx_DO_LineStates_DoneState 0x2968 // Specifies the state of the lines in a digital output task when the task completes execution. #define DAQmx_DO_LogicFamily 0x296E // Specifies the logic family to use for generation. A logic family corresponds to voltage thresholds that are compatible with a group of voltage standards. Refer to the device documentation for information on the logic high and logic low voltages for these logic families. #define DAQmx_DO_Overcurrent_Limit 0x2A85 // Specifies the current threshold in Amperes for the channel. A value of 0 means the channel observes no limit. Devices can monitor only a finite number of current thresholds simultaneously. If you attempt to monitor additional thresholds, NI-DAQmx returns an error. #define DAQmx_DO_Overcurrent_AutoReenable 0x2A86 // Specifies whether to automatically reenable channels after they no longer exceed the current limit specified by Current Limit. #define DAQmx_DO_Overcurrent_ReenablePeriod 0x2A87 // Specifies the delay in seconds between the time a channel no longer exceeds the current limit and the reactivation of that channel, if Automatic Re-enable is TRUE. #define DAQmx_DO_UseOnlyOnBrdMem 0x2265 // Specifies whether to write samples directly to the onboard memory of the device, bypassing the memory buffer. Generally, you cannot update onboard memory after you start the task. Onboard memory includes data FIFOs. #define DAQmx_DO_DataXferMech 0x2266 // Specifies the data transfer mode for the device. #define DAQmx_DO_DataXferReqCond 0x2267 // Specifies under what condition to transfer data from the buffer to the onboard memory of the device. #define DAQmx_DO_UsbXferReqSize 0x2A91 // Specifies the maximum size of a USB transfer request in bytes. Modify this value to affect performance under different combinations of operating system and device. #define DAQmx_DO_MemMapEnable 0x296B // Specifies for NI-DAQmx to map hardware registers to the memory space of the application, if possible. Normally, NI-DAQmx maps hardware registers to memory accessible only to the kernel. Mapping the registers to the memory space of the application increases performance. However, if the application accesses the memory space mapped to the registers, it can adversely affect the operation of the device and possibly res... #define DAQmx_DO_GenerateOn 0x2969 // Specifies on which edge of the sample clock to generate samples. #define DAQmx_CI_Max 0x189C // Specifies the maximum value you expect to measure. This value is in the units you specify with a units property. When you query this property, it returns the coerced maximum value that the hardware can measure with the current settings. #define DAQmx_CI_Min 0x189D // Specifies the minimum value you expect to measure. This value is in the units you specify with a units property. When you query this property, it returns the coerced minimum value that the hardware can measure with the current settings. #define DAQmx_CI_CustomScaleName 0x189E // Specifies the name of a custom scale for the channel. #define DAQmx_CI_MeasType 0x18A0 // Indicates the measurement to take with the channel. #define DAQmx_CI_Freq_Units 0x18A1 // Specifies the units to use to return frequency measurements. #define DAQmx_CI_Freq_Term 0x18A2 // Specifies the input terminal of the signal to measure. #define DAQmx_CI_Freq_StartingEdge 0x0799 // Specifies between which edges to measure the frequency of the signal. #define DAQmx_CI_Freq_MeasMeth 0x0144 // Specifies the method to use to measure the frequency of the signal. #define DAQmx_CI_Freq_EnableAveraging 0x2ED0 // Specifies whether to enable averaging mode for Sample Clock-timed frequency measurements. #define DAQmx_CI_Freq_MeasTime 0x0145 // Specifies in seconds the length of time to measure the frequency of the signal if Method is DAQmx_Val_HighFreq2Ctr. Measurement accuracy increases with increased measurement time and with increased signal frequency. If you measure a high-frequency signal for too long, however, the count register could roll over, which results in an incorrect measurement. #define DAQmx_CI_Freq_Div 0x0147 // Specifies the value by which to divide the input signal if Method is DAQmx_Val_LargeRng2Ctr. The larger the divisor, the more accurate the measurement. However, too large a value could cause the count register to roll over, which results in an incorrect measurement. #define DAQmx_CI_Freq_DigFltr_Enable 0x21E7 // Specifies whether to apply the pulse width filter to the signal. #define DAQmx_CI_Freq_DigFltr_MinPulseWidth 0x21E8 // Specifies in seconds the minimum pulse width the filter recognizes. #define DAQmx_CI_Freq_DigFltr_TimebaseSrc 0x21E9 // Specifies the input terminal of the signal to use as the timebase of the pulse width filter. #define DAQmx_CI_Freq_DigFltr_TimebaseRate 0x21EA // Specifies in hertz the rate of the pulse width filter timebase. NI-DAQmx uses this value to compute settings for the filter. #define DAQmx_CI_Freq_DigSync_Enable 0x21EB // Specifies whether to synchronize recognition of transitions in the signal to the internal timebase of the device. #define DAQmx_CI_Period_Units 0x18A3 // Specifies the unit to use to return period measurements. #define DAQmx_CI_Period_Term 0x18A4 // Specifies the input terminal of the signal to measure. #define DAQmx_CI_Period_StartingEdge 0x0852 // Specifies between which edges to measure the period of the signal. #define DAQmx_CI_Period_MeasMeth 0x192C // Specifies the method to use to measure the period of the signal. #define DAQmx_CI_Period_EnableAveraging 0x2ED1 // Specifies whether to enable averaging mode for Sample Clock-timed period measurements. #define DAQmx_CI_Period_MeasTime 0x192D // Specifies in seconds the length of time to measure the period of the signal if Method is DAQmx_Val_HighFreq2Ctr. Measurement accuracy increases with increased measurement time and with increased signal frequency. If you measure a high-frequency signal for too long, however, the count register could roll over, which results in an incorrect measurement. #define DAQmx_CI_Period_Div 0x192E // Specifies the value by which to divide the input signal if Method is DAQmx_Val_LargeRng2Ctr. The larger the divisor, the more accurate the measurement. However, too large a value could cause the count register to roll over, which results in an incorrect measurement. #define DAQmx_CI_Period_DigFltr_Enable 0x21EC // Specifies whether to apply the pulse width filter to the signal. #define DAQmx_CI_Period_DigFltr_MinPulseWidth 0x21ED // Specifies in seconds the minimum pulse width the filter recognizes. #define DAQmx_CI_Period_DigFltr_TimebaseSrc 0x21EE // Specifies the input terminal of the signal to use as the timebase of the pulse width filter. #define DAQmx_CI_Period_DigFltr_TimebaseRate 0x21EF // Specifies in hertz the rate of the pulse width filter timebase. NI-DAQmx uses this value to compute settings for the filter. #define DAQmx_CI_Period_DigSync_Enable 0x21F0 // Specifies whether to synchronize recognition of transitions in the signal to the internal timebase of the device. #define DAQmx_CI_CountEdges_Term 0x18C7 // Specifies the input terminal of the signal to measure. #define DAQmx_CI_CountEdges_Dir 0x0696 // Specifies whether to increment or decrement the counter on each edge. #define DAQmx_CI_CountEdges_DirTerm 0x21E1 // Specifies the source terminal of the digital signal that controls the count direction if Direction is DAQmx_Val_ExtControlled. #define DAQmx_CI_CountEdges_CountDir_DigFltr_Enable 0x21F1 // Specifies whether to apply the pulse width filter to the signal. #define DAQmx_CI_CountEdges_CountDir_DigFltr_MinPulseWidth 0x21F2 // Specifies in seconds the minimum pulse width the filter recognizes. #define DAQmx_CI_CountEdges_CountDir_DigFltr_TimebaseSrc 0x21F3 // Specifies the input terminal of the signal to use as the timebase of the pulse width filter. #define DAQmx_CI_CountEdges_CountDir_DigFltr_TimebaseRate 0x21F4 // Specifies in hertz the rate of the pulse width filter timebase. NI-DAQmx uses this value to compute settings for the filter. #define DAQmx_CI_CountEdges_CountDir_DigSync_Enable 0x21F5 // Specifies whether to synchronize recognition of transitions in the signal to the internal timebase of the device. #define DAQmx_CI_CountEdges_InitialCnt 0x0698 // Specifies the starting value from which to count. #define DAQmx_CI_CountEdges_ActiveEdge 0x0697 // Specifies on which edges to increment or decrement the counter. #define DAQmx_CI_CountEdges_CountReset_Enable 0x2FAF // Specifies whether to reset the count on the active edge specified with Input Terminal. #define DAQmx_CI_CountEdges_CountReset_ResetCount 0x2FB0 // Specifies the value to reset the count to. #define DAQmx_CI_CountEdges_CountReset_Term 0x2FB1 // Specifies the input terminal of the signal to reset the count. #define DAQmx_CI_CountEdges_CountReset_ActiveEdge 0x2FB2 // Specifies on which edge of the signal to reset the count. #define DAQmx_CI_CountEdges_CountReset_DigFltr_Enable 0x2FB3 // Specifies whether to apply the pulse width filter to the signal. #define DAQmx_CI_CountEdges_CountReset_DigFltr_MinPulseWidth 0x2FB4 // Specifies the minimum pulse width the filter recognizes. #define DAQmx_CI_CountEdges_CountReset_DigFltr_TimebaseSrc 0x2FB5 // Specifies the input of the signal to use as the timebase of the pulse width filter. #define DAQmx_CI_CountEdges_CountReset_DigFltr_TimebaseRate 0x2FB6 // Specifies in hertz the rate of the pulse width filter timebase. NI-DAQmx uses this value to compute settings for the filter. #define DAQmx_CI_CountEdges_CountReset_DigSync_Enable 0x2FB7 // Specifies whether to synchronize recognition of transitions in the signal to the internal timebase of the device. #define DAQmx_CI_CountEdges_DigFltr_Enable 0x21F6 // Specifies whether to apply the pulse width filter to the signal. #define DAQmx_CI_CountEdges_DigFltr_MinPulseWidth 0x21F7 // Specifies in seconds the minimum pulse width the filter recognizes. #define DAQmx_CI_CountEdges_DigFltr_TimebaseSrc 0x21F8 // Specifies the input terminal of the signal to use as the timebase of the pulse width filter. #define DAQmx_CI_CountEdges_DigFltr_TimebaseRate 0x21F9 // Specifies in hertz the rate of the pulse width filter timebase. NI-DAQmx uses this value to compute settings for the filter. #define DAQmx_CI_CountEdges_DigSync_Enable 0x21FA // Specifies whether to synchronize recognition of transitions in the signal to the internal timebase of the device. #define DAQmx_CI_AngEncoder_Units 0x18A6 // Specifies the units to use to return angular position measurements from the channel. #define DAQmx_CI_AngEncoder_PulsesPerRev 0x0875 // Specifies the number of pulses the encoder generates per revolution. This value is the number of pulses on either signal A or signal B, not the total number of pulses on both signal A and signal B. #define DAQmx_CI_AngEncoder_InitialAngle 0x0881 // Specifies the starting angle of the encoder. This value is in the units you specify with Units. #define DAQmx_CI_LinEncoder_Units 0x18A9 // Specifies the units to use to return linear encoder measurements from the channel. #define DAQmx_CI_LinEncoder_DistPerPulse 0x0911 // Specifies the distance to measure for each pulse the encoder generates on signal A or signal B. This value is in the units you specify with Units. #define DAQmx_CI_LinEncoder_InitialPos 0x0915 // Specifies the position of the encoder when the measurement begins. This value is in the units you specify with Units. #define DAQmx_CI_Encoder_DecodingType 0x21E6 // Specifies how to count and interpret the pulses the encoder generates on signal A and signal B. DAQmx_Val_X1, DAQmx_Val_X2, and DAQmx_Val_X4 are valid for quadrature encoders only. DAQmx_Val_TwoPulseCounting is valid for two-pulse encoders only. #define DAQmx_CI_Encoder_AInputTerm 0x219D // Specifies the terminal to which signal A is connected. #define DAQmx_CI_Encoder_AInput_DigFltr_Enable 0x21FB // Specifies whether to apply the pulse width filter to the signal. #define DAQmx_CI_Encoder_AInput_DigFltr_MinPulseWidth 0x21FC // Specifies in seconds the minimum pulse width the filter recognizes. #define DAQmx_CI_Encoder_AInput_DigFltr_TimebaseSrc 0x21FD // Specifies the input terminal of the signal to use as the timebase of the pulse width filter. #define DAQmx_CI_Encoder_AInput_DigFltr_TimebaseRate 0x21FE // Specifies in hertz the rate of the pulse width filter timebase. NI-DAQmx uses this value to compute settings for the filter. #define DAQmx_CI_Encoder_AInput_DigSync_Enable 0x21FF // Specifies whether to synchronize recognition of transitions in the signal to the internal timebase of the device. #define DAQmx_CI_Encoder_BInputTerm 0x219E // Specifies the terminal to which signal B is connected. #define DAQmx_CI_Encoder_BInput_DigFltr_Enable 0x2200 // Specifies whether to apply the pulse width filter to the signal. #define DAQmx_CI_Encoder_BInput_DigFltr_MinPulseWidth 0x2201 // Specifies in seconds the minimum pulse width the filter recognizes. #define DAQmx_CI_Encoder_BInput_DigFltr_TimebaseSrc 0x2202 // Specifies the input terminal of the signal to use as the timebase of the pulse width filter. #define DAQmx_CI_Encoder_BInput_DigFltr_TimebaseRate 0x2203 // Specifies in hertz the rate of the pulse width filter timebase. NI-DAQmx uses this value to compute settings for the filter. #define DAQmx_CI_Encoder_BInput_DigSync_Enable 0x2204 // Specifies whether to synchronize recognition of transitions in the signal to the internal timebase of the device. #define DAQmx_CI_Encoder_ZInputTerm 0x219F // Specifies the terminal to which signal Z is connected. #define DAQmx_CI_Encoder_ZInput_DigFltr_Enable 0x2205 // Specifies whether to apply the pulse width filter to the signal. #define DAQmx_CI_Encoder_ZInput_DigFltr_MinPulseWidth 0x2206 // Specifies in seconds the minimum pulse width the filter recognizes. #define DAQmx_CI_Encoder_ZInput_DigFltr_TimebaseSrc 0x2207 // Specifies the input terminal of the signal to use as the timebase of the pulse width filter. #define DAQmx_CI_Encoder_ZInput_DigFltr_TimebaseRate 0x2208 // Specifies in hertz the rate of the pulse width filter timebase. NI-DAQmx uses this value to compute settings for the filter. #define DAQmx_CI_Encoder_ZInput_DigSync_Enable 0x2209 // Specifies whether to synchronize recognition of transitions in the signal to the internal timebase of the device. #define DAQmx_CI_Encoder_ZIndexEnable 0x0890 // Specifies whether to use Z indexing for the channel. #define DAQmx_CI_Encoder_ZIndexVal 0x0888 // Specifies the value to which to reset the measurement when signal Z is high and signal A and signal B are at the states you specify with Z Index Phase. Specify this value in the units of the measurement. #define DAQmx_CI_Encoder_ZIndexPhase 0x0889 // Specifies the states at which signal A and signal B must be while signal Z is high for NI-DAQmx to reset the measurement. If signal Z is never high while signal A and signal B are high, for example, you must choose a phase other than DAQmx_Val_AHighBHigh. #define DAQmx_CI_PulseWidth_Units 0x0823 // Specifies the units to use to return pulse width measurements. #define DAQmx_CI_PulseWidth_Term 0x18AA // Specifies the input terminal of the signal to measure. #define DAQmx_CI_PulseWidth_StartingEdge 0x0825 // Specifies on which edge of the input signal to begin each pulse width measurement. #define DAQmx_CI_PulseWidth_DigFltr_Enable 0x220A // Specifies whether to apply the pulse width filter to the signal. #define DAQmx_CI_PulseWidth_DigFltr_MinPulseWidth 0x220B // Specifies in seconds the minimum pulse width the filter recognizes. #define DAQmx_CI_PulseWidth_DigFltr_TimebaseSrc 0x220C // Specifies the input terminal of the signal to use as the timebase of the pulse width filter. #define DAQmx_CI_PulseWidth_DigFltr_TimebaseRate 0x220D // Specifies in hertz the rate of the pulse width filter timebase. NI-DAQmx uses this value to compute settings for the filter. #define DAQmx_CI_PulseWidth_DigSync_Enable 0x220E // Specifies whether to synchronize recognition of transitions in the signal to the internal timebase of the device. #define DAQmx_CI_TwoEdgeSep_Units 0x18AC // Specifies the units to use to return two-edge separation measurements from the channel. #define DAQmx_CI_TwoEdgeSep_FirstTerm 0x18AD // Specifies the source terminal of the digital signal that starts each measurement. #define DAQmx_CI_TwoEdgeSep_FirstEdge 0x0833 // Specifies on which edge of the first signal to start each measurement. #define DAQmx_CI_TwoEdgeSep_First_DigFltr_Enable 0x220F // Specifies whether to apply the pulse width filter to the signal. #define DAQmx_CI_TwoEdgeSep_First_DigFltr_MinPulseWidth 0x2210 // Specifies in seconds the minimum pulse width the filter recognizes. #define DAQmx_CI_TwoEdgeSep_First_DigFltr_TimebaseSrc 0x2211 // Specifies the input terminal of the signal to use as the timebase of the pulse width filter. #define DAQmx_CI_TwoEdgeSep_First_DigFltr_TimebaseRate 0x2212 // Specifies in hertz the rate of the pulse width filter timebase. NI-DAQmx uses this value to compute settings for the filter. #define DAQmx_CI_TwoEdgeSep_First_DigSync_Enable 0x2213 // Specifies whether to synchronize recognition of transitions in the signal to the internal timebase of the device. #define DAQmx_CI_TwoEdgeSep_SecondTerm 0x18AE // Specifies the source terminal of the digital signal that stops each measurement. #define DAQmx_CI_TwoEdgeSep_SecondEdge 0x0834 // Specifies on which edge of the second signal to stop each measurement. #define DAQmx_CI_TwoEdgeSep_Second_DigFltr_Enable 0x2214 // Specifies whether to apply the pulse width filter to the signal. #define DAQmx_CI_TwoEdgeSep_Second_DigFltr_MinPulseWidth 0x2215 // Specifies in seconds the minimum pulse width the filter recognizes. #define DAQmx_CI_TwoEdgeSep_Second_DigFltr_TimebaseSrc 0x2216 // Specifies the input terminal of the signal to use as the timebase of the pulse width filter. #define DAQmx_CI_TwoEdgeSep_Second_DigFltr_TimebaseRate 0x2217 // Specifies in hertz the rate of the pulse width filter timebase. NI-DAQmx uses this value to compute settings for the filter. #define DAQmx_CI_TwoEdgeSep_Second_DigSync_Enable 0x2218 // Specifies whether to synchronize recognition of transitions in the signal to the internal timebase of the device. #define DAQmx_CI_SemiPeriod_Units 0x18AF // Specifies the units to use to return semi-period measurements. #define DAQmx_CI_SemiPeriod_Term 0x18B0 // Specifies the input terminal of the signal to measure. #define DAQmx_CI_SemiPeriod_StartingEdge 0x22FE // Specifies on which edge of the input signal to begin semi-period measurement. Semi-period measurements alternate between high time and low time, starting on this edge. #define DAQmx_CI_SemiPeriod_DigFltr_Enable 0x2219 // Specifies whether to apply the pulse width filter to the signal. #define DAQmx_CI_SemiPeriod_DigFltr_MinPulseWidth 0x221A // Specifies in seconds the minimum pulse width the filter recognizes. #define DAQmx_CI_SemiPeriod_DigFltr_TimebaseSrc 0x221B // Specifies the input terminal of the signal to use as the timebase of the pulse width filter. #define DAQmx_CI_SemiPeriod_DigFltr_TimebaseRate 0x221C // Specifies in hertz the rate of the pulse width filter timebase. NI-DAQmx uses this value to compute settings for the filter. #define DAQmx_CI_SemiPeriod_DigSync_Enable 0x221D // Specifies whether to synchronize recognition of transitions in the signal to the internal timebase of the device. #define DAQmx_CI_Pulse_Freq_Units 0x2F0B // Specifies the units to use to return pulse specifications in terms of frequency. #define DAQmx_CI_Pulse_Freq_Term 0x2F04 // Specifies the input terminal of the signal to measure. #define DAQmx_CI_Pulse_Freq_Start_Edge 0x2F05 // Specifies on which edge of the input signal to begin pulse measurement. #define DAQmx_CI_Pulse_Freq_DigFltr_Enable 0x2F06 // Specifies whether to apply a digital filter to the signal to measure. #define DAQmx_CI_Pulse_Freq_DigFltr_MinPulseWidth 0x2F07 // Specifies in seconds the minimum pulse width the filter recognizes. #define DAQmx_CI_Pulse_Freq_DigFltr_TimebaseSrc 0x2F08 // Specifies the terminal of the signal to use as the timebase of the digital filter. #define DAQmx_CI_Pulse_Freq_DigFltr_TimebaseRate 0x2F09 // Specifies in hertz the rate of the digital filter timebase. NI-DAQmx uses this value to compute settings for the filter. #define DAQmx_CI_Pulse_Freq_DigSync_Enable 0x2F0A // Specifies whether to synchronize recognition of transitions in the signal to the internal timebase of the device. #define DAQmx_CI_Pulse_Time_Units 0x2F13 // Specifies the units to use to return pulse specifications in terms of high time and low time. #define DAQmx_CI_Pulse_Time_Term 0x2F0C // Specifies the input terminal of the signal to measure. #define DAQmx_CI_Pulse_Time_StartEdge 0x2F0D // Specifies on which edge of the input signal to begin pulse measurement. #define DAQmx_CI_Pulse_Time_DigFltr_Enable 0x2F0E // Specifies whether to apply a digital filter to the signal to measure. #define DAQmx_CI_Pulse_Time_DigFltr_MinPulseWidth 0x2F0F // Specifies in seconds the minimum pulse width the filter recognizes. #define DAQmx_CI_Pulse_Time_DigFltr_TimebaseSrc 0x2F10 // Specifies the terminal of the signal to use as the timebase of the digital filter. #define DAQmx_CI_Pulse_Time_DigFltr_TimebaseRate 0x2F11 // Specifies in hertz the rate of the digital filter timebase. NI-DAQmx uses this value to compute settings for the filter. #define DAQmx_CI_Pulse_Time_DigSync_Enable 0x2F12 // Specifies whether to synchronize recognition of transitions in the signal to the internal timebase of the device. #define DAQmx_CI_Pulse_Ticks_Term 0x2F14 // Specifies the input terminal of the signal to measure. #define DAQmx_CI_Pulse_Ticks_StartEdge 0x2F15 // Specifies on which edge of the input signal to begin pulse measurement. #define DAQmx_CI_Pulse_Ticks_DigFltr_Enable 0x2F16 // Specifies whether to apply a digital filter to the signal to measure. #define DAQmx_CI_Pulse_Ticks_DigFltr_MinPulseWidth 0x2F17 // Specifies in seconds the minimum pulse width the filter recognizes. #define DAQmx_CI_Pulse_Ticks_DigFltr_TimebaseSrc 0x2F18 // Specifies the terminal of the signal to use as the timebase of the digital filter. #define DAQmx_CI_Pulse_Ticks_DigFltr_TimebaseRate 0x2F19 // Specifies in hertz the rate of the digital filter timebase. NI-DAQmx uses this value to compute settings for the filter. #define DAQmx_CI_Pulse_Ticks_DigSync_Enable 0x2F1A // Specifies whether to synchronize recognition of transitions in the signal to the internal timebase of the device. #define DAQmx_CI_Timestamp_Units 0x22B3 // Specifies the units to use to return timestamp measurements. #define DAQmx_CI_Timestamp_InitialSeconds 0x22B4 // Specifies the number of seconds that elapsed since the beginning of the current year. This value is ignored if Synchronization Method is DAQmx_Val_IRIGB. #define DAQmx_CI_GPS_SyncMethod 0x1092 // Specifies the method to use to synchronize the counter to a GPS receiver. #define DAQmx_CI_GPS_SyncSrc 0x1093 // Specifies the terminal to which the GPS synchronization signal is connected. #define DAQmx_CI_CtrTimebaseSrc 0x0143 // Specifies the terminal of the timebase to use for the counter. #define DAQmx_CI_CtrTimebaseRate 0x18B2 // Specifies in Hertz the frequency of the counter timebase. Specifying the rate of a counter timebase allows you to take measurements in terms of time or frequency rather than in ticks of the timebase. If you use an external timebase and do not specify the rate, you can take measurements only in terms of ticks of the timebase. #define DAQmx_CI_CtrTimebaseActiveEdge 0x0142 // Specifies whether a timebase cycle is from rising edge to rising edge or from falling edge to falling edge. #define DAQmx_CI_CtrTimebase_DigFltr_Enable 0x2271 // Specifies whether to apply the pulse width filter to the signal. #define DAQmx_CI_CtrTimebase_DigFltr_MinPulseWidth 0x2272 // Specifies in seconds the minimum pulse width the filter recognizes. #define DAQmx_CI_CtrTimebase_DigFltr_TimebaseSrc 0x2273 // Specifies the input terminal of the signal to use as the timebase of the pulse width filter. #define DAQmx_CI_CtrTimebase_DigFltr_TimebaseRate 0x2274 // Specifies in hertz the rate of the pulse width filter timebase. NI-DAQmx uses this value to compute settings for the filter. #define DAQmx_CI_CtrTimebase_DigSync_Enable 0x2275 // Specifies whether to synchronize recognition of transitions in the signal to the internal timebase of the device. #define DAQmx_CI_Count 0x0148 // Indicates the current value of the count register. #define DAQmx_CI_OutputState 0x0149 // Indicates the current state of the out terminal of the counter. #define DAQmx_CI_TCReached 0x0150 // Indicates whether the counter rolled over. When you query this property, NI-DAQmx resets it to FALSE. #define DAQmx_CI_CtrTimebaseMasterTimebaseDiv 0x18B3 // Specifies the divisor for an external counter timebase. You can divide the counter timebase in order to measure slower signals without causing the count register to roll over. #define DAQmx_CI_DataXferMech 0x0200 // Specifies the data transfer mode for the channel. #define DAQmx_CI_DataXferReqCond 0x2EFB // Specifies under what condition to transfer data from the onboard memory of the device to the buffer. #define DAQmx_CI_UsbXferReqSize 0x2A92 // Specifies the maximum size of a USB transfer request in bytes. Modify this value to affect performance under different combinations of operating system and device. #define DAQmx_CI_MemMapEnable 0x2ED2 // Specifies for NI-DAQmx to map hardware registers to the memory space of the application, if possible. Normally, NI-DAQmx maps hardware registers to memory accessible only to the kernel. Mapping the registers to the memory space of the application increases performance. However, if the application accesses the memory space mapped to the registers, it can adversely affect the operation of the device and possibly res... #define DAQmx_CI_NumPossiblyInvalidSamps 0x193C // Indicates the number of samples that the device might have overwritten before it could transfer them to the buffer. #define DAQmx_CI_DupCountPrevent 0x21AC // Specifies whether to enable duplicate count prevention for the channel. Duplicate count prevention is enabled by default. Setting Prescaler disables duplicate count prevention unless you explicitly enable it. #define DAQmx_CI_Prescaler 0x2239 // Specifies the divisor to apply to the signal you connect to the counter source terminal. Scaled data that you read takes this setting into account. You should use a prescaler only when you connect an external signal to the counter source terminal and when that signal has a higher frequency than the fastest onboard timebase. Setting this value disables duplicate count prevention unless you explicitly set Duplicate ... #define DAQmx_CO_OutputType 0x18B5 // Indicates how to define pulses generated on the channel. #define DAQmx_CO_Pulse_IdleState 0x1170 // Specifies the resting state of the output terminal. #define DAQmx_CO_Pulse_Term 0x18E1 // Specifies on which terminal to generate pulses. #define DAQmx_CO_Pulse_Time_Units 0x18D6 // Specifies the units in which to define high and low pulse time. #define DAQmx_CO_Pulse_HighTime 0x18BA // Specifies the amount of time that the pulse is at a high voltage. This value is in the units you specify with Units or when you create the channel. #define DAQmx_CO_Pulse_LowTime 0x18BB // Specifies the amount of time that the pulse is at a low voltage. This value is in the units you specify with Units or when you create the channel. #define DAQmx_CO_Pulse_Time_InitialDelay 0x18BC // Specifies in seconds the amount of time to wait before generating the first pulse. #define DAQmx_CO_Pulse_DutyCyc 0x1176 // Specifies the duty cycle of the pulses. The duty cycle of a signal is the width of the pulse divided by period. NI-DAQmx uses this ratio and the pulse frequency to determine the width of the pulses and the delay between pulses. #define DAQmx_CO_Pulse_Freq_Units 0x18D5 // Specifies the units in which to define pulse frequency. #define DAQmx_CO_Pulse_Freq 0x1178 // Specifies the frequency of the pulses to generate. This value is in the units you specify with Units or when you create the channel. #define DAQmx_CO_Pulse_Freq_InitialDelay 0x0299 // Specifies in seconds the amount of time to wait before generating the first pulse. #define DAQmx_CO_Pulse_HighTicks 0x1169 // Specifies the number of ticks the pulse is high. #define DAQmx_CO_Pulse_LowTicks 0x1171 // Specifies the number of ticks the pulse is low. #define DAQmx_CO_Pulse_Ticks_InitialDelay 0x0298 // Specifies the number of ticks to wait before generating the first pulse. #define DAQmx_CO_CtrTimebaseSrc 0x0339 // Specifies the terminal of the timebase to use for the counter. Typically, NI-DAQmx uses one of the internal counter timebases when generating pulses. Use this property to specify an external timebase and produce custom pulse widths that are not possible using the internal timebases. #define DAQmx_CO_CtrTimebaseRate 0x18C2 // Specifies in Hertz the frequency of the counter timebase. Specifying the rate of a counter timebase allows you to define output pulses in seconds rather than in ticks of the timebase. If you use an external timebase and do not specify the rate, you can define output pulses only in ticks of the timebase. #define DAQmx_CO_CtrTimebaseActiveEdge 0x0341 // Specifies whether a timebase cycle is from rising edge to rising edge or from falling edge to falling edge. #define DAQmx_CO_CtrTimebase_DigFltr_Enable 0x2276 // Specifies whether to apply the pulse width filter to the signal. #define DAQmx_CO_CtrTimebase_DigFltr_MinPulseWidth 0x2277 // Specifies in seconds the minimum pulse width the filter recognizes. #define DAQmx_CO_CtrTimebase_DigFltr_TimebaseSrc 0x2278 // Specifies the input terminal of the signal to use as the timebase of the pulse width filter. #define DAQmx_CO_CtrTimebase_DigFltr_TimebaseRate 0x2279 // Specifies in hertz the rate of the pulse width filter timebase. NI-DAQmx uses this value to compute settings for the filter. #define DAQmx_CO_CtrTimebase_DigSync_Enable 0x227A // Specifies whether to synchronize recognition of transitions in the signal to the internal timebase of the device. #define DAQmx_CO_Count 0x0293 // Indicates the current value of the count register. #define DAQmx_CO_OutputState 0x0294 // Indicates the current state of the output terminal of the counter. #define DAQmx_CO_AutoIncrCnt 0x0295 // Specifies a number of timebase ticks by which to increase the time spent in the idle state for each successive pulse. #define DAQmx_CO_CtrTimebaseMasterTimebaseDiv 0x18C3 // Specifies the divisor for an external counter timebase. You can divide the counter timebase in order to generate slower signals without causing the count register to roll over. #define DAQmx_CO_PulseDone 0x190E // Indicates if the task completed pulse generation. Use this value for retriggerable pulse generation when you need to determine if the device generated the current pulse. For retriggerable tasks, when you query this property, NI-DAQmx resets it to FALSE. #define DAQmx_CO_EnableInitialDelayOnRetrigger 0x2EC9 // Specifies whether to apply the initial delay to retriggered pulse trains. #define DAQmx_CO_ConstrainedGenMode 0x29F2 // Specifies constraints to apply when the counter generates pulses. Constraining the counter reduces the device resources required for counter operation. Constraining the counter can also allow additional analog or counter tasks on the device to run concurrently. For continuous counter tasks, NI-DAQmx consumes no device resources when the counter is constrained. For finite counter tasks, resource use increases with ... #define DAQmx_CO_UseOnlyOnBrdMem 0x2ECB // Specifies whether to write samples directly to the onboard memory of the device, bypassing the memory buffer. Generally, you cannot update onboard memory directly after you start the task. Onboard memory includes data FIFOs. #define DAQmx_CO_DataXferMech 0x2ECC // Specifies the data transfer mode for the device. For buffered operations, use DMA or USB Bulk. For non-buffered operations, use Polled. #define DAQmx_CO_DataXferReqCond 0x2ECD // Specifies under what condition to transfer data from the buffer to the onboard memory of the device. #define DAQmx_CO_UsbXferReqSize 0x2A93 // Specifies the maximum size of a USB transfer request in bytes. Modify this value to affect performance under different combinations of operating system and device. #define DAQmx_CO_MemMapEnable 0x2ED3 // Specifies for NI-DAQmx to map hardware registers to the memory space of the application, if possible. Normally, NI-DAQmx maps hardware registers to memory accessible only to the kernel. Mapping the registers to the memory space of the application increases performance. However, if the application accesses the memory space mapped to the registers, it can adversely affect the operation of the device and possibly res... #define DAQmx_CO_Prescaler 0x226D // Specifies the divisor to apply to the signal you connect to the counter source terminal. Pulse generations defined by frequency or time take this setting into account, but pulse generations defined by ticks do not. You should use a prescaler only when you connect an external signal to the counter source terminal and when that signal has a higher frequency than the fastest onboard timebase. #define DAQmx_CO_RdyForNewVal 0x22FF // Indicates whether the counter is ready for new continuous pulse train values. #define DAQmx_ChanType 0x187F // Indicates the type of the virtual channel. #define DAQmx_PhysicalChanName 0x18F5 // Specifies the name of the physical channel upon which this virtual channel is based. #define DAQmx_ChanDescr 0x1926 // Specifies a user-defined description for the channel. #define DAQmx_ChanIsGlobal 0x2304 // Indicates whether the channel is a global channel. //********** Export Signal Attributes ********** #define DAQmx_Exported_AIConvClk_OutputTerm 0x1687 // Specifies the terminal to which to route the AI Convert Clock. #define DAQmx_Exported_AIConvClk_Pulse_Polarity 0x1688 // Indicates the polarity of the exported AI Convert Clock. The polarity is fixed and independent of the active edge of the source of the AI Convert Clock. #define DAQmx_Exported_10MHzRefClk_OutputTerm 0x226E // Specifies the terminal to which to route the 10MHz Clock. #define DAQmx_Exported_20MHzTimebase_OutputTerm 0x1657 // Specifies the terminal to which to route the 20MHz Timebase. #define DAQmx_Exported_SampClk_OutputBehavior 0x186B // Specifies whether the exported Sample Clock issues a pulse at the beginning of a sample or changes to a high state for the duration of the sample. #define DAQmx_Exported_SampClk_OutputTerm 0x1663 // Specifies the terminal to which to route the Sample Clock. #define DAQmx_Exported_SampClk_DelayOffset 0x21C4 // Specifies in seconds the amount of time to offset the exported Sample clock. Refer to timing diagrams for generation applications in the device documentation for more information about this value. #define DAQmx_Exported_SampClk_Pulse_Polarity 0x1664 // Specifies the polarity of the exported Sample Clock if Output Behavior is DAQmx_Val_Pulse. #define DAQmx_Exported_SampClkTimebase_OutputTerm 0x18F9 // Specifies the terminal to which to route the Sample Clock Timebase. #define DAQmx_Exported_DividedSampClkTimebase_OutputTerm 0x21A1 // Specifies the terminal to which to route the Divided Sample Clock Timebase. #define DAQmx_Exported_AdvTrig_OutputTerm 0x1645 // Specifies the terminal to which to route the Advance Trigger. #define DAQmx_Exported_AdvTrig_Pulse_Polarity 0x1646 // Indicates the polarity of the exported Advance Trigger. #define DAQmx_Exported_AdvTrig_Pulse_WidthUnits 0x1647 // Specifies the units of Width Value. #define DAQmx_Exported_AdvTrig_Pulse_Width 0x1648 // Specifies the width of an exported Advance Trigger pulse. Specify this value in the units you specify with Width Units. #define DAQmx_Exported_PauseTrig_OutputTerm 0x1615 // Specifies the terminal to which to route the Pause Trigger. #define DAQmx_Exported_PauseTrig_Lvl_ActiveLvl 0x1616 // Specifies the active level of the exported Pause Trigger. #define DAQmx_Exported_RefTrig_OutputTerm 0x0590 // Specifies the terminal to which to route the Reference Trigger. #define DAQmx_Exported_RefTrig_Pulse_Polarity 0x0591 // Specifies the polarity of the exported Reference Trigger. #define DAQmx_Exported_StartTrig_OutputTerm 0x0584 // Specifies the terminal to which to route the Start Trigger. #define DAQmx_Exported_StartTrig_Pulse_Polarity 0x0585 // Specifies the polarity of the exported Start Trigger. #define DAQmx_Exported_AdvCmpltEvent_OutputTerm 0x1651 // Specifies the terminal to which to route the Advance Complete Event. #define DAQmx_Exported_AdvCmpltEvent_Delay 0x1757 // Specifies the output signal delay in periods of the sample clock. #define DAQmx_Exported_AdvCmpltEvent_Pulse_Polarity 0x1652 // Specifies the polarity of the exported Advance Complete Event. #define DAQmx_Exported_AdvCmpltEvent_Pulse_Width 0x1654 // Specifies the width of the exported Advance Complete Event pulse. #define DAQmx_Exported_AIHoldCmpltEvent_OutputTerm 0x18ED // Specifies the terminal to which to route the AI Hold Complete Event. #define DAQmx_Exported_AIHoldCmpltEvent_PulsePolarity 0x18EE // Specifies the polarity of an exported AI Hold Complete Event pulse. #define DAQmx_Exported_ChangeDetectEvent_OutputTerm 0x2197 // Specifies the terminal to which to route the Change Detection Event. #define DAQmx_Exported_ChangeDetectEvent_Pulse_Polarity 0x2303 // Specifies the polarity of an exported Change Detection Event pulse. #define DAQmx_Exported_CtrOutEvent_OutputTerm 0x1717 // Specifies the terminal to which to route the Counter Output Event. #define DAQmx_Exported_CtrOutEvent_OutputBehavior 0x174F // Specifies whether the exported Counter Output Event pulses or changes from one state to the other when the counter reaches terminal count. #define DAQmx_Exported_CtrOutEvent_Pulse_Polarity 0x1718 // Specifies the polarity of the pulses at the output terminal of the counter when Output Behavior is DAQmx_Val_Pulse. NI-DAQmx ignores this property if Output Behavior is DAQmx_Val_Toggle. #define DAQmx_Exported_CtrOutEvent_Toggle_IdleState 0x186A // Specifies the initial state of the output terminal of the counter when Output Behavior is DAQmx_Val_Toggle. The terminal enters this state when NI-DAQmx commits the task. #define DAQmx_Exported_HshkEvent_OutputTerm 0x22BA // Specifies the terminal to which to route the Handshake Event. #define DAQmx_Exported_HshkEvent_OutputBehavior 0x22BB // Specifies the output behavior of the Handshake Event. #define DAQmx_Exported_HshkEvent_Delay 0x22BC // Specifies the number of seconds to delay after the Handshake Trigger deasserts before asserting the Handshake Event. #define DAQmx_Exported_HshkEvent_Interlocked_AssertedLvl 0x22BD // Specifies the asserted level of the exported Handshake Event if Output Behavior is DAQmx_Val_Interlocked. #define DAQmx_Exported_HshkEvent_Interlocked_AssertOnStart 0x22BE // Specifies to assert the Handshake Event when the task starts if Output Behavior is DAQmx_Val_Interlocked. #define DAQmx_Exported_HshkEvent_Interlocked_DeassertDelay 0x22BF // Specifies in seconds the amount of time to wait after the Handshake Trigger asserts before deasserting the Handshake Event if Output Behavior is DAQmx_Val_Interlocked. #define DAQmx_Exported_HshkEvent_Pulse_Polarity 0x22C0 // Specifies the polarity of the exported Handshake Event if Output Behavior is DAQmx_Val_Pulse. #define DAQmx_Exported_HshkEvent_Pulse_Width 0x22C1 // Specifies in seconds the pulse width of the exported Handshake Event if Output Behavior is DAQmx_Val_Pulse. #define DAQmx_Exported_RdyForXferEvent_OutputTerm 0x22B5 // Specifies the terminal to which to route the Ready for Transfer Event. #define DAQmx_Exported_RdyForXferEvent_Lvl_ActiveLvl 0x22B6 // Specifies the active level of the exported Ready for Transfer Event. #define DAQmx_Exported_RdyForXferEvent_DeassertCond 0x2963 // Specifies when the ready for transfer event deasserts. #define DAQmx_Exported_RdyForXferEvent_DeassertCondCustomThreshold 0x2964 // Specifies in samples the threshold below which the Ready for Transfer Event deasserts. This threshold is an amount of space available in the onboard memory of the device. Deassert Condition must be DAQmx_Val_OnbrdMemCustomThreshold to use a custom threshold. #define DAQmx_Exported_DataActiveEvent_OutputTerm 0x1633 // Specifies the terminal to which to export the Data Active Event. #define DAQmx_Exported_DataActiveEvent_Lvl_ActiveLvl 0x1634 // Specifies the polarity of the exported Data Active Event. #define DAQmx_Exported_RdyForStartEvent_OutputTerm 0x1609 // Specifies the terminal to which to route the Ready for Start Event. #define DAQmx_Exported_RdyForStartEvent_Lvl_ActiveLvl 0x1751 // Specifies the polarity of the exported Ready for Start Event. #define DAQmx_Exported_SyncPulseEvent_OutputTerm 0x223C // Specifies the terminal to which to route the Synchronization Pulse Event. #define DAQmx_Exported_WatchdogExpiredEvent_OutputTerm 0x21AA // Specifies the terminal to which to route the Watchdog Timer Expired Event. //********** Device Attributes ********** #define DAQmx_Dev_IsSimulated 0x22CA // Indicates if the device is a simulated device. #define DAQmx_Dev_ProductCategory 0x29A9 // Indicates the product category of the device. This category corresponds to the category displayed in MAX when creating NI-DAQmx simulated devices. #define DAQmx_Dev_ProductType 0x0631 // Indicates the product name of the device. #define DAQmx_Dev_ProductNum 0x231D // Indicates the unique hardware identification number for the device. #define DAQmx_Dev_SerialNum 0x0632 // Indicates the serial number of the device. This value is zero if the device does not have a serial number. #define DAQmx_Dev_Accessory_ProductTypes 0x2F6D // Indicates the model names of accessories connected to the device. Each array element corresponds to a connector. For example, index 0 corresponds to connector 0. The array contains an empty string for each connector with no accessory connected. #define DAQmx_Dev_Accessory_ProductNums 0x2F6E // Indicates the unique hardware identification number for accessories connected to the device. Each array element corresponds to a connector. For example, index 0 corresponds to connector 0. The array contains 0 for each connector with no accessory connected. #define DAQmx_Dev_Accessory_SerialNums 0x2F6F // Indicates the serial number for accessories connected to the device. Each array element corresponds to a connector. For example, index 0 corresponds to connector 0. The array contains 0 for each connector with no accessory connected. #define DAQmx_Carrier_SerialNum 0x2A8A // Indicates the serial number of the device carrier. This value is zero if the carrier does not have a serial number. #define DAQmx_Dev_Chassis_ModuleDevNames 0x29B6 // Indicates an array containing the names of the modules in the chassis. #define DAQmx_Dev_AnlgTrigSupported 0x2984 // Indicates if the device supports analog triggering. #define DAQmx_Dev_DigTrigSupported 0x2985 // Indicates if the device supports digital triggering. #define DAQmx_Dev_AI_PhysicalChans 0x231E // Indicates an array containing the names of the analog input physical channels available on the device. #define DAQmx_Dev_AI_MaxSingleChanRate 0x298C // Indicates the maximum rate for an analog input task if the task contains only a single channel from this device. #define DAQmx_Dev_AI_MaxMultiChanRate 0x298D // Indicates the maximum rate for an analog input task if the task contains multiple channels from this device. For multiplexed devices, divide this rate by the number of channels to determine the maximum sampling rate. #define DAQmx_Dev_AI_MinRate 0x298E // Indicates the minimum rate for an analog input task on this device. NI-DAQmx returns a warning or error if you attempt to sample at a slower rate. #define DAQmx_Dev_AI_SimultaneousSamplingSupported 0x298F // Indicates if the device supports simultaneous sampling. #define DAQmx_Dev_AI_TrigUsage 0x2986 // Indicates the triggers supported by this device for an analog input task. #define DAQmx_Dev_AI_VoltageRngs 0x2990 // Indicates pairs of input voltage ranges supported by this device. Each pair consists of the low value, followed by the high value. #define DAQmx_Dev_AI_VoltageIntExcitDiscreteVals 0x29C9 // Indicates the set of discrete internal voltage excitation values supported by this device. If the device supports ranges of internal excitation values, use Range Values to determine supported excitation values. #define DAQmx_Dev_AI_VoltageIntExcitRangeVals 0x29CA // Indicates pairs of internal voltage excitation ranges supported by this device. Each pair consists of the low value, followed by the high value. If the device supports a set of discrete internal excitation values, use Discrete Values to determine the supported excitation values. #define DAQmx_Dev_AI_CurrentRngs 0x2991 // Indicates the pairs of current input ranges supported by this device. Each pair consists of the low value, followed by the high value. #define DAQmx_Dev_AI_CurrentIntExcitDiscreteVals 0x29CB // Indicates the set of discrete internal current excitation values supported by this device. #define DAQmx_Dev_AI_FreqRngs 0x2992 // Indicates the pairs of frequency input ranges supported by this device. Each pair consists of the low value, followed by the high value. #define DAQmx_Dev_AI_Gains 0x2993 // Indicates the input gain settings supported by this device. #define DAQmx_Dev_AI_Couplings 0x2994 // Indicates the coupling types supported by this device. #define DAQmx_Dev_AI_LowpassCutoffFreqDiscreteVals 0x2995 // Indicates the set of discrete lowpass cutoff frequencies supported by this device. If the device supports ranges of lowpass cutoff frequencies, use Range Values to determine supported frequencies. #define DAQmx_Dev_AI_LowpassCutoffFreqRangeVals 0x29CF // Indicates pairs of lowpass cutoff frequency ranges supported by this device. Each pair consists of the low value, followed by the high value. If the device supports a set of discrete lowpass cutoff frequencies, use Discrete Values to determine the supported frequencies. #define DAQmx_Dev_AO_PhysicalChans 0x231F // Indicates an array containing the names of the analog output physical channels available on the device. #define DAQmx_Dev_AO_SampClkSupported 0x2996 // Indicates if the device supports the sample clock timing type for analog output tasks. #define DAQmx_Dev_AO_MaxRate 0x2997 // Indicates the maximum analog output rate of the device. #define DAQmx_Dev_AO_MinRate 0x2998 // Indicates the minimum analog output rate of the device. #define DAQmx_Dev_AO_TrigUsage 0x2987 // Indicates the triggers supported by this device for analog output tasks. #define DAQmx_Dev_AO_VoltageRngs 0x299B // Indicates pairs of output voltage ranges supported by this device. Each pair consists of the low value, followed by the high value. #define DAQmx_Dev_AO_CurrentRngs 0x299C // Indicates pairs of output current ranges supported by this device. Each pair consists of the low value, followed by the high value. #define DAQmx_Dev_AO_Gains 0x299D // Indicates the output gain settings supported by this device. #define DAQmx_Dev_DI_Lines 0x2320 // Indicates an array containing the names of the digital input lines available on the device. #define DAQmx_Dev_DI_Ports 0x2321 // Indicates an array containing the names of the digital input ports available on the device. #define DAQmx_Dev_DI_MaxRate 0x2999 // Indicates the maximum digital input rate of the device. #define DAQmx_Dev_DI_TrigUsage 0x2988 // Indicates the triggers supported by this device for digital input tasks. #define DAQmx_Dev_DO_Lines 0x2322 // Indicates an array containing the names of the digital output lines available on the device. #define DAQmx_Dev_DO_Ports 0x2323 // Indicates an array containing the names of the digital output ports available on the device. #define DAQmx_Dev_DO_MaxRate 0x299A // Indicates the maximum digital output rate of the device. #define DAQmx_Dev_DO_TrigUsage 0x2989 // Indicates the triggers supported by this device for digital output tasks. #define DAQmx_Dev_CI_PhysicalChans 0x2324 // Indicates an array containing the names of the counter input physical channels available on the device. #define DAQmx_Dev_CI_TrigUsage 0x298A // Indicates the triggers supported by this device for counter input tasks. #define DAQmx_Dev_CI_SampClkSupported 0x299E // Indicates if the device supports the sample clock timing type for counter input tasks. #define DAQmx_Dev_CI_MaxSize 0x299F // Indicates in bits the size of the counters on the device. #define DAQmx_Dev_CI_MaxTimebase 0x29A0 // Indicates in hertz the maximum counter timebase frequency. #define DAQmx_Dev_CO_PhysicalChans 0x2325 // Indicates an array containing the names of the counter output physical channels available on the device. #define DAQmx_Dev_CO_SampClkSupported 0x2F5B // Indicates if the device supports Sample Clock timing for counter output tasks. #define DAQmx_Dev_CO_TrigUsage 0x298B // Indicates the triggers supported by this device for counter output tasks. #define DAQmx_Dev_CO_MaxSize 0x29A1 // Indicates in bits the size of the counters on the device. #define DAQmx_Dev_CO_MaxTimebase 0x29A2 // Indicates in hertz the maximum counter timebase frequency. #define DAQmx_Dev_NumDMAChans 0x233C // Indicates the number of DMA channels on the device. #define DAQmx_Dev_BusType 0x2326 // Indicates the bus type of the device. #define DAQmx_Dev_PCI_BusNum 0x2327 // Indicates the PCI bus number of the device. #define DAQmx_Dev_PCI_DevNum 0x2328 // Indicates the PCI slot number of the device. #define DAQmx_Dev_PXI_ChassisNum 0x2329 // Indicates the PXI chassis number of the device, as identified in MAX. #define DAQmx_Dev_PXI_SlotNum 0x232A // Indicates the PXI slot number of the device. #define DAQmx_Dev_CompactDAQ_ChassisDevName 0x29B7 // Indicates the name of the CompactDAQ chassis that contains this module. #define DAQmx_Dev_CompactDAQ_SlotNum 0x29B8 // Indicates the slot number in which this module is located in the CompactDAQ chassis. #define DAQmx_Dev_TCPIP_Hostname 0x2A8B // Indicates the IPv4 hostname of the device. #define DAQmx_Dev_TCPIP_EthernetIP 0x2A8C // Indicates the IPv4 address of the Ethernet interface in dotted decimal format. This property returns 0.0.0.0 if the Ethernet interface cannot acquire an address. #define DAQmx_Dev_TCPIP_WirelessIP 0x2A8D // Indicates the IPv4 address of the 802.11 wireless interface in dotted decimal format. This property returns 0.0.0.0 if the wireless interface cannot acquire an address. #define DAQmx_Dev_Terminals 0x2A40 // Indicates a list of all terminals on the device. //********** Read Attributes ********** #define DAQmx_Read_RelativeTo 0x190A // Specifies the point in the buffer at which to begin a read operation. If you also specify an offset with Offset, the read operation begins at that offset relative to the point you select with this property. The default value is DAQmx_Val_CurrReadPos unless you configure a Reference Trigger for the task. If you configure a Reference Trigger, the default value is DAQmx_Val_FirstPretrigSamp. #define DAQmx_Read_Offset 0x190B // Specifies an offset in samples per channel at which to begin a read operation. This offset is relative to the location you specify with RelativeTo. #define DAQmx_Read_ChannelsToRead 0x1823 // Specifies a subset of channels in the task from which to read. #define DAQmx_Read_ReadAllAvailSamp 0x1215 // Specifies whether subsequent read operations read all samples currently available in the buffer or wait for the buffer to become full before reading. NI-DAQmx uses this setting for finite acquisitions and only when the number of samples to read is -1. For continuous acquisitions when the number of samples to read is -1, a read operation always reads all samples currently available in the buffer. #define DAQmx_Read_AutoStart 0x1826 // Specifies if an NI-DAQmx Read function automatically starts the task if you did not start the task explicitly by using DAQmxStartTask(). The default value is TRUE. When an NI-DAQmx Read function starts a finite acquisition task, it also stops the task after reading the last sample. #define DAQmx_Read_OverWrite 0x1211 // Specifies whether to overwrite samples in the buffer that you have not yet read. #define DAQmx_Read_CurrReadPos 0x1221 // Indicates in samples per channel the current position in the buffer. #define DAQmx_Read_AvailSampPerChan 0x1223 // Indicates the number of samples available to read per channel. This value is the same for all channels in the task. #define DAQmx_Logging_FilePath 0x2EC4 // Specifies the path to the TDMS file to which you want to log data. #define DAQmx_Logging_Mode 0x2EC5 // Specifies whether to enable logging and whether to allow reading data while logging. Log mode allows for the best performance. However, you cannot read data while logging if you specify this mode. If you want to read data while logging, specify Log and Read mode. #define DAQmx_Logging_TDMS_GroupName 0x2EC6 // Specifies the name of the group to create within the TDMS file for data from this task. If you append data to an existing file and the specified group already exists, NI-DAQmx appends a number symbol and a number to the group name, incrementing that number until finding a group name that does not exist. For example, if you specify a group name of Voltage Task, and that group already exists, NI-DAQmx assigns the gr... #define DAQmx_Logging_TDMS_Operation 0x2EC7 // Specifies how to open the TDMS file. #define DAQmx_Logging_FileWriteSize 0x2FC3 // Specifies the size, in samples, in which data will be written to disk. The size must be evenly divisible by the volume sector size, in bytes. #define DAQmx_Logging_FilePreallocationSize 0x2FC6 // Specifies a size in samples to be used to pre-allocate space on disk. Pre-allocation can improve file I/O performance, especially in situations where multiple files are being written to disk. For finite tasks, the default behavior is to pre-allocate the file based on the number of samples you configure the task to acquire. #define DAQmx_Read_TotalSampPerChanAcquired 0x192A // Indicates the total number of samples acquired by each channel. NI-DAQmx returns a single value because this value is the same for all channels. For retriggered acquisitions, this value is the cumulative number of samples across all retriggered acquisitions. #define DAQmx_Read_CommonModeRangeErrorChansExist 0x2A98 // Indicates if the device(s) detected a common mode range violation for any virtual channel in the task. Common mode range violation occurs when the voltage of either the positive terminal or negative terminal to ground are out of range. Reading this property clears the common mode range violation status for all channels in the task. You must read this property before you read Common Mode Range Error Channels. Other... #define DAQmx_Read_CommonModeRangeErrorChans 0x2A99 // Indicates the names of any virtual channels in the task for which the device(s) detected a common mode range violation. You must read Common Mode Range Error Channels Exist before you read this property. Otherwise, you will receive an error. #define DAQmx_Read_OvercurrentChansExist 0x29E6 // Indicates if the device(s) detected an overcurrent condition for any virtual channel in the task. Reading this property clears the overcurrent status for all channels in the task. You must read this property before you read Overcurrent Channels. Otherwise, you will receive an error. #define DAQmx_Read_OvercurrentChans 0x29E7 // Indicates the names of any virtual channels in the task for which the device(s) detected an overcurrent condition.. You must read Overcurrent Channels Exist before you read this property. Otherwise, you will receive an error. On some devices, you must restart the task for all overcurrent channels to recover. #define DAQmx_Read_OpenCurrentLoopChansExist 0x2A09 // Indicates if the device(s) detected an open current loop for any virtual channel in the task. Reading this property clears the open current loop status for all channels in the task. You must read this property before you read Open Current Loop Channels. Otherwise, you will receive an error. #define DAQmx_Read_OpenCurrentLoopChans 0x2A0A // Indicates the names of any virtual channels in the task for which the device(s) detected an open current loop. You must read Open Current Loop Channels Exist before you read this property. Otherwise, you will receive an error. #define DAQmx_Read_OpenThrmcplChansExist 0x2A96 // Indicates if the device(s) detected an open thermocouple connected to any virtual channel in the task. Reading this property clears the open thermocouple status for all channels in the task. You must read this property before you read Open Thermocouple Channels. Otherwise, you will receive an error. #define DAQmx_Read_OpenThrmcplChans 0x2A97 // Indicates the names of any virtual channels in the task for which the device(s) detected an open thermcouple. You must read Open Thermocouple Channels Exist before you read this property. Otherwise, you will receive an error. #define DAQmx_Read_OverloadedChansExist 0x2174 // Indicates if the device(s) detected an overload in any virtual channel in the task. Reading this property clears the overload status for all channels in the task. You must read this property before you read Overloaded Channels. Otherwise, you will receive an error. #define DAQmx_Read_OverloadedChans 0x2175 // Indicates the names of any overloaded virtual channels in the task. You must read Overloaded Channels Exist before you read this property. Otherwise, you will receive an error. #define DAQmx_Read_AccessoryInsertionOrRemovalDetected 0x2F70 // Indicates if any device(s) in the task detected the insertion or removal of an accessory since the task started. Reading this property clears the accessory change status for all channels in the task. You must read this property before you read Devices with Inserted or Removed Accessories. Otherwise, you will receive an error. #define DAQmx_Read_DevsWithInsertedOrRemovedAccessories 0x2F71 // Indicates the names of any devices that detected the insertion or removal of an accessory since the task started. You must read Accessory Insertion or Removal Detected before you read this property. Otherwise, you will receive an error. #define DAQmx_Read_ChangeDetect_HasOverflowed 0x2194 // Indicates if samples were missed because change detection events occurred faster than the device could handle them. Some devices detect overflows differently than others. #define DAQmx_Read_RawDataWidth 0x217A // Indicates in bytes the size of a raw sample from the task. #define DAQmx_Read_NumChans 0x217B // Indicates the number of channels that an NI-DAQmx Read function reads from the task. This value is the number of channels in the task or the number of channels you specify with Channels to Read. #define DAQmx_Read_DigitalLines_BytesPerChan 0x217C // Indicates the number of bytes per channel that NI-DAQmx returns in a sample for line-based reads. If a channel has fewer lines than this number, the extra bytes are FALSE. #define DAQmx_Read_WaitMode 0x2232 // Specifies how an NI-DAQmx Read function waits for samples to become available. #define DAQmx_Read_SleepTime 0x22B0 // Specifies in seconds the amount of time to sleep after checking for available samples if Wait Mode is DAQmx_Val_Sleep. //********** Real-Time Attributes ********** #define DAQmx_RealTime_ConvLateErrorsToWarnings 0x22EE // Specifies if DAQmxWaitForNextSampleClock() and an NI-DAQmx Read function convert late errors to warnings. NI-DAQmx returns no late warnings or errors until the number of warmup iterations you specify with Number Of Warmup Iterations execute. #define DAQmx_RealTime_NumOfWarmupIters 0x22ED // Specifies the number of loop iterations that must occur before DAQmxWaitForNextSampleClock() and an NI-DAQmx Read function return any late warnings or errors. The system needs a number of iterations to stabilize. During this period, a large amount of jitter occurs, potentially causing reads and writes to be late. The default number of warmup iterations is 100. Specify a larger number if needed to stabilize the sys... #define DAQmx_RealTime_WaitForNextSampClkWaitMode 0x22EF // Specifies how DAQmxWaitForNextSampleClock() waits for the next Sample Clock pulse. #define DAQmx_RealTime_ReportMissedSamp 0x2319 // Specifies whether an NI-DAQmx Read function returns lateness errors or warnings when it detects missed Sample Clock pulses. This setting does not affect DAQmxWaitForNextSampleClock(). Set this property to TRUE for applications that need to detect lateness without using DAQmxWaitForNextSampleClock(). #define DAQmx_RealTime_WriteRecoveryMode 0x231A // Specifies how NI-DAQmx attempts to recover after missing a Sample Clock pulse when performing counter writes. //********** Switch Channel Attributes ********** #define DAQmx_SwitchChan_Usage 0x18E4 // Specifies how you can use the channel. Using this property acts as a safety mechanism to prevent you from connecting two source channels, for example. #define DAQmx_SwitchChan_AnlgBusSharingEnable 0x2F9E // Specifies whether to enable sharing of an analog bus line so that multiple switch devices can connect to it simultaneously. For each device that will share the analog bus line, set this property to TRUE to enable sharing on the channel that connects to the analog bus line. Analog bus sharing is disabled by default. #define DAQmx_SwitchChan_MaxACCarryCurrent 0x0648 // Indicates in amperes the maximum AC current that the device can carry. #define DAQmx_SwitchChan_MaxACSwitchCurrent 0x0646 // Indicates in amperes the maximum AC current that the device can switch. This current is always against an RMS voltage level. #define DAQmx_SwitchChan_MaxACCarryPwr 0x0642 // Indicates in watts the maximum AC power that the device can carry. #define DAQmx_SwitchChan_MaxACSwitchPwr 0x0644 // Indicates in watts the maximum AC power that the device can switch. #define DAQmx_SwitchChan_MaxDCCarryCurrent 0x0647 // Indicates in amperes the maximum DC current that the device can carry. #define DAQmx_SwitchChan_MaxDCSwitchCurrent 0x0645 // Indicates in amperes the maximum DC current that the device can switch. This current is always against a DC voltage level. #define DAQmx_SwitchChan_MaxDCCarryPwr 0x0643 // Indicates in watts the maximum DC power that the device can carry. #define DAQmx_SwitchChan_MaxDCSwitchPwr 0x0649 // Indicates in watts the maximum DC power that the device can switch. #define DAQmx_SwitchChan_MaxACVoltage 0x0651 // Indicates in volts the maximum AC RMS voltage that the device can switch. #define DAQmx_SwitchChan_MaxDCVoltage 0x0650 // Indicates in volts the maximum DC voltage that the device can switch. #define DAQmx_SwitchChan_WireMode 0x18E5 // Indicates the number of wires that the channel switches. #define DAQmx_SwitchChan_Bandwidth 0x0640 // Indicates in Hertz the maximum frequency of a signal that can pass through the switch without significant deterioration. #define DAQmx_SwitchChan_Impedance 0x0641 // Indicates in ohms the switch impedance. This value is important in the RF domain and should match the impedance of the sources and loads. //********** Switch Device Attributes ********** #define DAQmx_SwitchDev_SettlingTime 0x1244 // Specifies in seconds the amount of time to wait for the switch to settle (or debounce). NI-DAQmx adds this time to the settling time of the motherboard. Modify this property only if the switch does not settle within the settling time of the motherboard. Refer to device documentation for supported settling times. #define DAQmx_SwitchDev_AutoConnAnlgBus 0x17DA // Specifies if NI-DAQmx routes multiplexed channels to the analog bus backplane. Only the SCXI-1127 and SCXI-1128 support this property. #define DAQmx_SwitchDev_PwrDownLatchRelaysAfterSettling 0x22DB // Specifies if DAQmxSwitchWaitForSettling() powers down latching relays after waiting for the device to settle. #define DAQmx_SwitchDev_Settled 0x1243 // Indicates when Settling Time expires. #define DAQmx_SwitchDev_RelayList 0x17DC // Indicates a comma-delimited list of relay names. #define DAQmx_SwitchDev_NumRelays 0x18E6 // Indicates the number of relays on the device. This value matches the number of relay names in Relay List. #define DAQmx_SwitchDev_SwitchChanList 0x18E7 // Indicates a comma-delimited list of channel names for the current topology of the device. #define DAQmx_SwitchDev_NumSwitchChans 0x18E8 // Indicates the number of switch channels for the current topology of the device. This value matches the number of channel names in Switch Channel List. #define DAQmx_SwitchDev_NumRows 0x18E9 // Indicates the number of rows on a device in a matrix switch topology. Indicates the number of multiplexed channels on a device in a mux topology. #define DAQmx_SwitchDev_NumColumns 0x18EA // Indicates the number of columns on a device in a matrix switch topology. This value is always 1 if the device is in a mux topology. #define DAQmx_SwitchDev_Topology 0x193D // Indicates the current topology of the device. This value is one of the topology options in DAQmxSwitchSetTopologyAndReset(). //********** Switch Scan Attributes ********** #define DAQmx_SwitchScan_BreakMode 0x1247 // Specifies the action to take between each entry in a scan list. #define DAQmx_SwitchScan_RepeatMode 0x1248 // Specifies if the task advances through the scan list multiple times. #define DAQmx_SwitchScan_WaitingForAdv 0x17D9 // Indicates if the switch hardware is waiting for an Advance Trigger. If the hardware is waiting, it completed the previous entry in the scan list. //********** Scale Attributes ********** #define DAQmx_Scale_Descr 0x1226 // Specifies a description for the scale. #define DAQmx_Scale_ScaledUnits 0x191B // Specifies the units to use for scaled values. You can use an arbitrary string. #define DAQmx_Scale_PreScaledUnits 0x18F7 // Specifies the units of the values that you want to scale. #define DAQmx_Scale_Type 0x1929 // Indicates the method or equation form that the custom scale uses. #define DAQmx_Scale_Lin_Slope 0x1227 // Specifies the slope, m, in the equation y=mx+b. #define DAQmx_Scale_Lin_YIntercept 0x1228 // Specifies the y-intercept, b, in the equation y=mx+b. #define DAQmx_Scale_Map_ScaledMax 0x1229 // Specifies the largest value in the range of scaled values. NI-DAQmx maps this value to Pre-Scaled Maximum Value. Reads coerce samples that are larger than this value to match this value. Writes generate errors for samples that are larger than this value. #define DAQmx_Scale_Map_PreScaledMax 0x1231 // Specifies the largest value in the range of pre-scaled values. NI-DAQmx maps this value to Scaled Maximum Value. #define DAQmx_Scale_Map_ScaledMin 0x1230 // Specifies the smallest value in the range of scaled values. NI-DAQmx maps this value to Pre-Scaled Minimum Value. Reads coerce samples that are smaller than this value to match this value. Writes generate errors for samples that are smaller than this value. #define DAQmx_Scale_Map_PreScaledMin 0x1232 // Specifies the smallest value in the range of pre-scaled values. NI-DAQmx maps this value to Scaled Minimum Value. #define DAQmx_Scale_Poly_ForwardCoeff 0x1234 // Specifies an array of coefficients for the polynomial that converts pre-scaled values to scaled values. Each element of the array corresponds to a term of the equation. For example, if index three of the array is 9, the fourth term of the equation is 9x^3. #define DAQmx_Scale_Poly_ReverseCoeff 0x1235 // Specifies an array of coefficients for the polynomial that converts scaled values to pre-scaled values. Each element of the array corresponds to a term of the equation. For example, if index three of the array is 9, the fourth term of the equation is 9y^3. #define DAQmx_Scale_Table_ScaledVals 0x1236 // Specifies an array of scaled values. These values map directly to the values in Pre-Scaled Values. #define DAQmx_Scale_Table_PreScaledVals 0x1237 // Specifies an array of pre-scaled values. These values map directly to the values in Scaled Values. //********** System Attributes ********** #define DAQmx_Sys_GlobalChans 0x1265 // Indicates an array that contains the names of all global channels saved on the system. #define DAQmx_Sys_Scales 0x1266 // Indicates an array that contains the names of all custom scales saved on the system. #define DAQmx_Sys_Tasks 0x1267 // Indicates an array that contains the names of all tasks saved on the system. #define DAQmx_Sys_DevNames 0x193B // Indicates the names of all devices installed in the system. #define DAQmx_Sys_NIDAQMajorVersion 0x1272 // Indicates the major portion of the installed version of NI-DAQmx, such as 7 for version 7.0. #define DAQmx_Sys_NIDAQMinorVersion 0x1923 // Indicates the minor portion of the installed version of NI-DAQmx, such as 0 for version 7.0. #define DAQmx_Sys_NIDAQUpdateVersion 0x2F22 // Indicates the update portion of the installed version of NI-DAQmx, such as 1 for version 9.0.1. //********** Task Attributes ********** #define DAQmx_Task_Name 0x1276 // Indicates the name of the task. #define DAQmx_Task_Channels 0x1273 // Indicates the names of all virtual channels in the task. #define DAQmx_Task_NumChans 0x2181 // Indicates the number of virtual channels in the task. #define DAQmx_Task_Devices 0x230E // Indicates an array containing the names of all devices in the task. #define DAQmx_Task_NumDevices 0x29BA // Indicates the number of devices in the task. #define DAQmx_Task_Complete 0x1274 // Indicates whether the task completed execution. //********** Timing Attributes ********** #define DAQmx_SampQuant_SampMode 0x1300 // Specifies if a task acquires or generates a finite number of samples or if it continuously acquires or generates samples. #define DAQmx_SampQuant_SampPerChan 0x1310 // Specifies the number of samples to acquire or generate for each channel if Sample Mode is DAQmx_Val_FiniteSamps. If Sample Mode is DAQmx_Val_ContSamps, NI-DAQmx uses this value to determine the buffer size. #define DAQmx_SampTimingType 0x1347 // Specifies the type of sample timing to use for the task. #define DAQmx_SampClk_Rate 0x1344 // Specifies the sampling rate in samples per channel per second. If you use an external source for the Sample Clock, set this input to the maximum expected rate of that clock. #define DAQmx_SampClk_MaxRate 0x22C8 // Indicates the maximum Sample Clock rate supported by the task, based on other timing settings. For output tasks, the maximum Sample Clock rate is the maximum rate of the DAC. For input tasks, NI-DAQmx calculates the maximum sampling rate differently for multiplexed devices than simultaneous sampling devices. #define DAQmx_SampClk_Src 0x1852 // Specifies the terminal of the signal to use as the Sample Clock. #define DAQmx_SampClk_ActiveEdge 0x1301 // Specifies on which edge of a clock pulse sampling takes place. This property is useful primarily when the signal you use as the Sample Clock is not a periodic clock. #define DAQmx_SampClk_OverrunBehavior 0x2EFC // Specifies the action to take if Sample Clock edges occur faster than the device can handle them. #define DAQmx_SampClk_UnderflowBehavior 0x2961 // Specifies the action to take when the onboard memory of the device becomes empty. #define DAQmx_SampClk_TimebaseDiv 0x18EB // Specifies the number of Sample Clock Timebase pulses needed to produce a single Sample Clock pulse. #define DAQmx_SampClk_Term 0x2F1B // Indicates the name of the internal Sample Clock terminal for the task. This property does not return the name of the Sample Clock source terminal specified with Source. #define DAQmx_SampClk_Timebase_Rate 0x1303 // Specifies the rate of the Sample Clock Timebase. Some applications require that you specify a rate when you use any signal other than the onboard Sample Clock Timebase. NI-DAQmx requires this rate to calculate other timing parameters. #define DAQmx_SampClk_Timebase_Src 0x1308 // Specifies the terminal of the signal to use as the Sample Clock Timebase. #define DAQmx_SampClk_Timebase_ActiveEdge 0x18EC // Specifies on which edge to recognize a Sample Clock Timebase pulse. This property is useful primarily when the signal you use as the Sample Clock Timebase is not a periodic clock. #define DAQmx_SampClk_Timebase_MasterTimebaseDiv 0x1305 // Specifies the number of pulses of the Master Timebase needed to produce a single pulse of the Sample Clock Timebase. #define DAQmx_SampClkTimebase_Term 0x2F1C // Indicates the name of the internal Sample Clock Timebase terminal for the task. This property does not return the name of the Sample Clock Timebase source terminal specified with Source. #define DAQmx_SampClk_DigFltr_Enable 0x221E // Specifies whether to apply the pulse width filter to the signal. #define DAQmx_SampClk_DigFltr_MinPulseWidth 0x221F // Specifies in seconds the minimum pulse width the filter recognizes. #define DAQmx_SampClk_DigFltr_TimebaseSrc 0x2220 // Specifies the input terminal of the signal to use as the timebase of the pulse width filter. #define DAQmx_SampClk_DigFltr_TimebaseRate 0x2221 // Specifies in hertz the rate of the pulse width filter timebase. NI-DAQmx uses this value to compute settings for the filter. #define DAQmx_SampClk_DigSync_Enable 0x2222 // Specifies whether to synchronize recognition of transitions in the signal to the internal timebase of the device. #define DAQmx_Hshk_DelayAfterXfer 0x22C2 // Specifies the number of seconds to wait after a handshake cycle before starting a new handshake cycle. #define DAQmx_Hshk_StartCond 0x22C3 // Specifies the point in the handshake cycle that the device is in when the task starts. #define DAQmx_Hshk_SampleInputDataWhen 0x22C4 // Specifies on which edge of the Handshake Trigger an input task latches the data from the peripheral device. #define DAQmx_ChangeDetect_DI_RisingEdgePhysicalChans 0x2195 // Specifies the names of the digital lines or ports on which to detect rising edges. The lines or ports must be used by virtual channels in the task. You also can specify a string that contains a list or range of digital lines or ports. #define DAQmx_ChangeDetect_DI_FallingEdgePhysicalChans 0x2196 // Specifies the names of the digital lines or ports on which to detect falling edges. The lines or ports must be used by virtual channels in the task. You also can specify a string that contains a list or range of digital lines or ports. #define DAQmx_ChangeDetect_DI_Tristate 0x2EFA // Specifies whether to tristate lines specified with Rising Edge Physical Channels and Falling Edge Physical Channels that are not in a virtual channel in the task. If you set this property to TRUE, NI-DAQmx tristates rising/falling edge lines that are not in a virtual channel in the task. If you set this property to FALSE, NI-DAQmx does not modify the configuration of rising/falling edge lines that are not in a vir... #define DAQmx_OnDemand_SimultaneousAOEnable 0x21A0 // Specifies whether to update all channels in the task simultaneously, rather than updating channels independently when you write a sample to that channel. #define DAQmx_Implicit_UnderflowBehavior 0x2EFD // Specifies the action to take when the onboard memory of the device becomes empty. #define DAQmx_AIConv_Rate 0x1848 // Specifies in Hertz the rate at which to clock the analog-to-digital converter. This clock is specific to the analog input section of multiplexed devices. #define DAQmx_AIConv_MaxRate 0x22C9 // Indicates the maximum convert rate supported by the task, given the current devices and channel count. #define DAQmx_AIConv_Src 0x1502 // Specifies the terminal of the signal to use as the AI Convert Clock. #define DAQmx_AIConv_ActiveEdge 0x1853 // Specifies on which edge of the clock pulse an analog-to-digital conversion takes place. #define DAQmx_AIConv_TimebaseDiv 0x1335 // Specifies the number of AI Convert Clock Timebase pulses needed to produce a single AI Convert Clock pulse. #define DAQmx_AIConv_Timebase_Src 0x1339 // Specifies the terminal of the signal to use as the AI Convert Clock Timebase. #define DAQmx_DelayFromSampClk_DelayUnits 0x1304 // Specifies the units of Delay. #define DAQmx_DelayFromSampClk_Delay 0x1317 // Specifies the amount of time to wait after receiving a Sample Clock edge before beginning to acquire the sample. This value is in the units you specify with Delay Units. #define DAQmx_AIConv_DigFltr_Enable 0x2EDC // Specifies whether to apply a digital filter to the AI Convert Clock. #define DAQmx_AIConv_DigFltr_MinPulseWidth 0x2EDD // Specifies in seconds the minimum pulse width the filter recognizes. #define DAQmx_AIConv_DigFltr_TimebaseSrc 0x2EDE // Specifies the terminal of the signal to use as the timebase of the digital filter. #define DAQmx_AIConv_DigFltr_TimebaseRate 0x2EDF // Specifies in hertz the rate of the digital filter timebase. NI-DAQmx uses this value to compute settings for the filter. #define DAQmx_AIConv_DigSync_Enable 0x2EE0 // Specifies whether to synchronize recognition of transitions in the signal to the internal timebase of the device. #define DAQmx_MasterTimebase_Rate 0x1495 // Specifies the rate of the Master Timebase. #define DAQmx_MasterTimebase_Src 0x1343 // Specifies the terminal of the signal to use as the Master Timebase. On an E Series device, you can choose only between the onboard 20MHz Timebase or the RTSI7 terminal. #define DAQmx_RefClk_Rate 0x1315 // Specifies the frequency of the Reference Clock. #define DAQmx_RefClk_Src 0x1316 // Specifies the terminal of the signal to use as the Reference Clock. #define DAQmx_SyncPulse_Src 0x223D // Specifies the terminal of the signal to use as the synchronization pulse. The synchronization pulse resets the clock dividers and the ADCs/DACs on the device. #define DAQmx_SyncPulse_SyncTime 0x223E // Indicates in seconds the delay required to reset the ADCs/DACs after the device receives the synchronization pulse. #define DAQmx_SyncPulse_MinDelayToStart 0x223F // Specifies in seconds the amount of time that elapses after the master device issues the synchronization pulse before the task starts. #define DAQmx_SyncPulse_ResetTime 0x2F7C // Indicates in seconds the amount of time required for the ADCs or DACs on the device to reset. When synchronizing devices, query this property on all devices and note the largest reset time. Then, for each device, subtract the value of this property from the largest reset time and set Reset Delay to the resulting value. #define DAQmx_SyncPulse_ResetDelay 0x2F7D // Specifies in seconds the amount of time to wait after the Synchronization Pulse before resetting the ADCs or DACs on the device. When synchronizing devices, query Reset Time on all devices and note the largest reset time. Then, for each device, subtract the reset time from the largest reset time and set this property to the resulting value. #define DAQmx_SyncPulse_Term 0x2F85 // Indicates the name of the internal Synchronization Pulse terminal for the task. This property does not return the name of the source terminal. #define DAQmx_SyncClk_Interval 0x2F7E // Specifies the interval, in Sample Clock periods, between each internal Synchronization Clock pulse. NI-DAQmx uses this pulse for synchronization of triggers between multiple devices at different rates. Refer to device documentation for information about how to calculate this value. #define DAQmx_SampTimingEngine 0x2A26 // Specifies which timing engine to use for the task. //********** Trigger Attributes ********** #define DAQmx_StartTrig_Type 0x1393 // Specifies the type of trigger to use to start a task. #define DAQmx_StartTrig_Term 0x2F1E // Indicates the name of the internal Start Trigger terminal for the task. This property does not return the name of the trigger source terminal. #define DAQmx_DigEdge_StartTrig_Src 0x1407 // Specifies the name of a terminal where there is a digital signal to use as the source of the Start Trigger. #define DAQmx_DigEdge_StartTrig_Edge 0x1404 // Specifies on which edge of a digital pulse to start acquiring or generating samples. #define DAQmx_DigEdge_StartTrig_DigFltr_Enable 0x2223 // Specifies whether to apply a digital filter to the trigger signal. #define DAQmx_DigEdge_StartTrig_DigFltr_MinPulseWidth 0x2224 // Specifies in seconds the minimum pulse width the filter recognizes. #define DAQmx_DigEdge_StartTrig_DigFltr_TimebaseSrc 0x2225 // Specifies the input terminal of the signal to use as the timebase of the pulse width filter. #define DAQmx_DigEdge_StartTrig_DigFltr_TimebaseRate 0x2226 // Specifies in hertz the rate of the pulse width filter timebase. NI-DAQmx uses this value to compute settings for the filter. #define DAQmx_DigEdge_StartTrig_DigSync_Enable 0x2227 // Specifies whether to synchronize recognition of transitions in the signal to the internal timebase of the device. If you set this property to TRUE, the device does not recognize and act upon the trigger until the next pulse of the internal timebase. #define DAQmx_DigPattern_StartTrig_Src 0x1410 // Specifies the physical channels to use for pattern matching. The order of the physical channels determines the order of the pattern. If a port is included, the order of the physical channels within the port is in ascending order. #define DAQmx_DigPattern_StartTrig_Pattern 0x2186 // Specifies the digital pattern that must be met for the Start Trigger to occur. #define DAQmx_DigPattern_StartTrig_When 0x1411 // Specifies whether the Start Trigger occurs when the physical channels specified with Source match or differ from the digital pattern specified with Pattern. #define DAQmx_AnlgEdge_StartTrig_Src 0x1398 // Specifies the name of a virtual channel or terminal where there is an analog signal to use as the source of the Start Trigger. #define DAQmx_AnlgEdge_StartTrig_Slope 0x1397 // Specifies on which slope of the trigger signal to start acquiring or generating samples. #define DAQmx_AnlgEdge_StartTrig_Lvl 0x1396 // Specifies at what threshold in the units of the measurement or generation to start acquiring or generating samples. Use Slope to specify on which slope to trigger on this threshold. #define DAQmx_AnlgEdge_StartTrig_Hyst 0x1395 // Specifies a hysteresis level in the units of the measurement or generation. If Slope is DAQmx_Val_RisingSlope, the trigger does not deassert until the source signal passes below Level minus the hysteresis. If Slope is DAQmx_Val_FallingSlope, the trigger does not deassert until the source signal passes above Level plus the hysteresis. Hysteresis is always enabled. Set this property to a non-zero value to use hyste... #define DAQmx_AnlgEdge_StartTrig_Coupling 0x2233 // Specifies the coupling for the source signal of the trigger if the source is a terminal rather than a virtual channel. #define DAQmx_AnlgEdge_StartTrig_DigFltr_Enable 0x2EE1 // Specifies whether to apply a digital filter to the digital output of the analog triggering circuitry (the Analog Comparison Event). When enabled, the analog signal must stay above or below the trigger level for the minimum pulse width before being recognized. Use filtering for noisy trigger signals that transition in and out of the hysteresis window rapidly. #define DAQmx_AnlgEdge_StartTrig_DigFltr_MinPulseWidth 0x2EE2 // Specifies in seconds the minimum pulse width the filter recognizes. #define DAQmx_AnlgEdge_StartTrig_DigFltr_TimebaseSrc 0x2EE3 // Specifies the terminal of the signal to use as the timebase of the digital filter. #define DAQmx_AnlgEdge_StartTrig_DigFltr_TimebaseRate 0x2EE4 // Specifies in hertz the rate of the digital filter timebase. NI-DAQmx uses this value to compute settings for the filter. #define DAQmx_AnlgEdge_StartTrig_DigSync_Enable 0x2EE5 // Specifies whether to synchronize recognition of transitions in the signal to the internal timebase of the device. #define DAQmx_AnlgWin_StartTrig_Src 0x1400 // Specifies the name of a virtual channel or terminal where there is an analog signal to use as the source of the Start Trigger. #define DAQmx_AnlgWin_StartTrig_When 0x1401 // Specifies whether the task starts acquiring or generating samples when the signal enters or leaves the window you specify with Bottom and Top. #define DAQmx_AnlgWin_StartTrig_Top 0x1403 // Specifies the upper limit of the window. Specify this value in the units of the measurement or generation. #define DAQmx_AnlgWin_StartTrig_Btm 0x1402 // Specifies the lower limit of the window. Specify this value in the units of the measurement or generation. #define DAQmx_AnlgWin_StartTrig_Coupling 0x2234 // Specifies the coupling for the source signal of the trigger if the source is a terminal rather than a virtual channel. #define DAQmx_AnlgWin_StartTrig_DigFltr_Enable 0x2EFF // Specifies whether to apply a digital filter to the digital output of the analog triggering circuitry (the Analog Comparison Event). When enabled, the analog signal must stay within the trigger window for the minimum pulse width before being recognized. Use filtering for noisy trigger signals that transition in and out of the window rapidly. #define DAQmx_AnlgWin_StartTrig_DigFltr_MinPulseWidth 0x2F00 // Specifies in seconds the minimum pulse width the filter recognizes. #define DAQmx_AnlgWin_StartTrig_DigFltr_TimebaseSrc 0x2F01 // Specifies the terminal of the signal to use as the timebase of the digital filter. #define DAQmx_AnlgWin_StartTrig_DigFltr_TimebaseRate 0x2F02 // Specifies in hertz the rate of the digital filter timebase. NI-DAQmx uses this value to compute settings for the filter. #define DAQmx_AnlgWin_StartTrig_DigSync_Enable 0x2F03 // Specifies whether to synchronize recognition of transitions in the signal to the internal timebase of the device. #define DAQmx_StartTrig_Delay 0x1856 // Specifies an amount of time to wait after the Start Trigger is received before acquiring or generating the first sample. This value is in the units you specify with Delay Units. #define DAQmx_StartTrig_DelayUnits 0x18C8 // Specifies the units of Delay. #define DAQmx_StartTrig_Retriggerable 0x190F // Specifies whether a finite task resets and waits for another Start Trigger after the task completes. When you set this property to TRUE, the device performs a finite acquisition or generation each time the Start Trigger occurs until the task stops. The device ignores a trigger if it is in the process of acquiring or generating signals. #define DAQmx_RefTrig_Type 0x1419 // Specifies the type of trigger to use to mark a reference point for the measurement. #define DAQmx_RefTrig_PretrigSamples 0x1445 // Specifies the minimum number of pretrigger samples to acquire from each channel before recognizing the reference trigger. Post-trigger samples per channel are equal to Samples Per Channel minus the number of pretrigger samples per channel. #define DAQmx_RefTrig_Term 0x2F1F // Indicates the name of the internal Reference Trigger terminal for the task. This property does not return the name of the trigger source terminal. #define DAQmx_DigEdge_RefTrig_Src 0x1434 // Specifies the name of a terminal where there is a digital signal to use as the source of the Reference Trigger. #define DAQmx_DigEdge_RefTrig_Edge 0x1430 // Specifies on what edge of a digital pulse the Reference Trigger occurs. #define DAQmx_DigEdge_RefTrig_DigFltr_Enable 0x2ED7 // Specifies whether to apply a digital filter to the trigger signal. #define DAQmx_DigEdge_RefTrig_DigFltr_MinPulseWidth 0x2ED8 // Specifies in seconds the minimum pulse width the filter recognizes. #define DAQmx_DigEdge_RefTrig_DigFltr_TimebaseSrc 0x2ED9 // Specifies the terminal of the signal to use as the timebase of the digital filter. #define DAQmx_DigEdge_RefTrig_DigFltr_TimebaseRate 0x2EDA // Specifies in hertz the rate of the digital filter timebase. NI-DAQmx uses this value to compute settings for the filter. #define DAQmx_DigEdge_RefTrig_DigSync_Enable 0x2EDB // Specifies whether to synchronize recognition of transitions in the signal to the internal timebase of the device. #define DAQmx_DigPattern_RefTrig_Src 0x1437 // Specifies the physical channels to use for pattern matching. The order of the physical channels determines the order of the pattern. If a port is included, the order of the physical channels within the port is in ascending order. #define DAQmx_DigPattern_RefTrig_Pattern 0x2187 // Specifies the digital pattern that must be met for the Reference Trigger to occur. #define DAQmx_DigPattern_RefTrig_When 0x1438 // Specifies whether the Reference Trigger occurs when the physical channels specified with Source match or differ from the digital pattern specified with Pattern. #define DAQmx_AnlgEdge_RefTrig_Src 0x1424 // Specifies the name of a virtual channel or terminal where there is an analog signal to use as the source of the Reference Trigger. #define DAQmx_AnlgEdge_RefTrig_Slope 0x1423 // Specifies on which slope of the source signal the Reference Trigger occurs. #define DAQmx_AnlgEdge_RefTrig_Lvl 0x1422 // Specifies in the units of the measurement the threshold at which the Reference Trigger occurs. Use Slope to specify on which slope to trigger at this threshold. #define DAQmx_AnlgEdge_RefTrig_Hyst 0x1421 // Specifies a hysteresis level in the units of the measurement. If Slope is DAQmx_Val_RisingSlope, the trigger does not deassert until the source signal passes below Level minus the hysteresis. If Slope is DAQmx_Val_FallingSlope, the trigger does not deassert until the source signal passes above Level plus the hysteresis. Hysteresis is always enabled. Set this property to a non-zero value to use hysteresis. #define DAQmx_AnlgEdge_RefTrig_Coupling 0x2235 // Specifies the coupling for the source signal of the trigger if the source is a terminal rather than a virtual channel. #define DAQmx_AnlgEdge_RefTrig_DigFltr_Enable 0x2EE6 // Specifies whether to apply a digital filter to the digital output of the analog triggering circuitry (the Analog Comparison Event). When enabled, the analog signal must stay above or below the trigger level for the minimum pulse width before being recognized. Use filtering for noisy trigger signals that transition in and out of the hysteresis window rapidly. #define DAQmx_AnlgEdge_RefTrig_DigFltr_MinPulseWidth 0x2EE7 // Specifies in seconds the minimum pulse width thefilter recognizes. #define DAQmx_AnlgEdge_RefTrig_DigFltr_TimebaseSrc 0x2EE8 // Specifies the terminal of the signal to use as the timebase of the digital filter. #define DAQmx_AnlgEdge_RefTrig_DigFltr_TimebaseRate 0x2EE9 // Specifies in hertz the rate of the digital filter timebase. NI-DAQmx uses this value to compute settings for the filter. #define DAQmx_AnlgEdge_RefTrig_DigSync_Enable 0x2EEA // Specifies whether to synchronize recognition of transitions in the signal to the internal timebase of the device. #define DAQmx_AnlgWin_RefTrig_Src 0x1426 // Specifies the name of a virtual channel or terminal where there is an analog signal to use as the source of the Reference Trigger. #define DAQmx_AnlgWin_RefTrig_When 0x1427 // Specifies whether the Reference Trigger occurs when the source signal enters the window or when it leaves the window. Use Bottom and Top to specify the window. #define DAQmx_AnlgWin_RefTrig_Top 0x1429 // Specifies the upper limit of the window. Specify this value in the units of the measurement. #define DAQmx_AnlgWin_RefTrig_Btm 0x1428 // Specifies the lower limit of the window. Specify this value in the units of the measurement. #define DAQmx_AnlgWin_RefTrig_Coupling 0x1857 // Specifies the coupling for the source signal of the trigger if the source is a terminal rather than a virtual channel. #define DAQmx_AnlgWin_RefTrig_DigFltr_Enable 0x2EEB // Specifies whether to apply a digital filter to the digital output of the analog triggering circuitry (the Analog Comparison Event). When enabled, the analog signal must stay within the trigger window for the minimum pulse width before being recognized. Use filtering for noisy trigger signals that transition in and out of the window rapidly. #define DAQmx_AnlgWin_RefTrig_DigFltr_MinPulseWidth 0x2EEC // Specifies in seconds the minimum pulse width the filter recognizes. #define DAQmx_AnlgWin_RefTrig_DigFltr_TimebaseSrc 0x2EED // Specifies the terminal of the signal to use as the timebase of the digital filter. #define DAQmx_AnlgWin_RefTrig_DigFltr_TimebaseRate 0x2EEE // Specifies in hertz the rate of the digital filter timebase. NI-DAQmx uses this value to compute settings for the filter. #define DAQmx_AnlgWin_RefTrig_DigSync_Enable 0x2EEF // Specifies whether to synchronize recognition of transitions in the signal to the internal timebase of the device. #define DAQmx_RefTrig_AutoTrigEnable 0x2EC1 // Specifies whether to send a software trigger to the device when a hardware trigger is no longer active in order to prevent a timeout. #define DAQmx_RefTrig_AutoTriggered 0x2EC2 // Indicates whether a completed acquisition was triggered by the auto trigger. If an acquisition has not completed after the task starts, this property returns FALSE. This property is only applicable when Enable is TRUE. #define DAQmx_RefTrig_Delay 0x1483 // Specifies in seconds the time to wait after the device receives the Reference Trigger before switching from pretrigger to posttrigger samples. #define DAQmx_AdvTrig_Type 0x1365 // Specifies the type of trigger to use to advance to the next entry in a switch scan list. #define DAQmx_DigEdge_AdvTrig_Src 0x1362 // Specifies the name of a terminal where there is a digital signal to use as the source of the Advance Trigger. #define DAQmx_DigEdge_AdvTrig_Edge 0x1360 // Specifies on which edge of a digital signal to advance to the next entry in a scan list. #define DAQmx_DigEdge_AdvTrig_DigFltr_Enable 0x2238 // Specifies whether to apply the pulse width filter to the signal. #define DAQmx_HshkTrig_Type 0x22B7 // Specifies the type of Handshake Trigger to use. #define DAQmx_Interlocked_HshkTrig_Src 0x22B8 // Specifies the source terminal of the Handshake Trigger. #define DAQmx_Interlocked_HshkTrig_AssertedLvl 0x22B9 // Specifies the asserted level of the Handshake Trigger. #define DAQmx_PauseTrig_Type 0x1366 // Specifies the type of trigger to use to pause a task. #define DAQmx_PauseTrig_Term 0x2F20 // Indicates the name of the internal Pause Trigger terminal for the task. This property does not return the name of the trigger source terminal. #define DAQmx_AnlgLvl_PauseTrig_Src 0x1370 // Specifies the name of a virtual channel or terminal where there is an analog signal to use as the source of the trigger. #define DAQmx_AnlgLvl_PauseTrig_When 0x1371 // Specifies whether the task pauses above or below the threshold you specify with Level. #define DAQmx_AnlgLvl_PauseTrig_Lvl 0x1369 // Specifies the threshold at which to pause the task. Specify this value in the units of the measurement or generation. Use Pause When to specify whether the task pauses above or below this threshold. #define DAQmx_AnlgLvl_PauseTrig_Hyst 0x1368 // Specifies a hysteresis level in the units of the measurement or generation. If Pause When is DAQmx_Val_AboveLvl, the trigger does not deassert until the source signal passes below Level minus the hysteresis. If Pause When is DAQmx_Val_BelowLvl, the trigger does not deassert until the source signal passes above Level plus the hysteresis. Hysteresis is always enabled. Set this property to a non-zero value to use hys... #define DAQmx_AnlgLvl_PauseTrig_Coupling 0x2236 // Specifies the coupling for the source signal of the trigger if the source is a terminal rather than a virtual channel. #define DAQmx_AnlgLvl_PauseTrig_DigFltr_Enable 0x2EF0 // Specifies whether to apply a digital filter to the digital output of the analog triggering circuitry (the Analog Comparison Event). When enabled, the analog signal must stay above or below the trigger level for the minimum pulse width before being recognized. Use filtering for noisy trigger signals that transition in and out of the hysteresis window rapidly. #define DAQmx_AnlgLvl_PauseTrig_DigFltr_MinPulseWidth 0x2EF1 // Specifies in seconds the minimum pulse width the filter recognizes. #define DAQmx_AnlgLvl_PauseTrig_DigFltr_TimebaseSrc 0x2EF2 // Specifies the terminal of the signal to use as the timebase of the digital filter. #define DAQmx_AnlgLvl_PauseTrig_DigFltr_TimebaseRate 0x2EF3 // Specifies in hertz the rate of the digital filter timebase. NI-DAQmx uses this value to compute settings for the filter. #define DAQmx_AnlgLvl_PauseTrig_DigSync_Enable 0x2EF4 // Specifies whether to synchronize recognition of transitions in the signal to the internal timebase of the device. #define DAQmx_AnlgWin_PauseTrig_Src 0x1373 // Specifies the name of a virtual channel or terminal where there is an analog signal to use as the source of the trigger. #define DAQmx_AnlgWin_PauseTrig_When 0x1374 // Specifies whether the task pauses while the trigger signal is inside or outside the window you specify with Bottom and Top. #define DAQmx_AnlgWin_PauseTrig_Top 0x1376 // Specifies the upper limit of the window. Specify this value in the units of the measurement or generation. #define DAQmx_AnlgWin_PauseTrig_Btm 0x1375 // Specifies the lower limit of the window. Specify this value in the units of the measurement or generation. #define DAQmx_AnlgWin_PauseTrig_Coupling 0x2237 // Specifies the coupling for the source signal of the trigger if the source is a terminal rather than a virtual channel. #define DAQmx_AnlgWin_PauseTrig_DigFltr_Enable 0x2EF5 // Specifies whether to apply a digital filter to the digital output of the analog triggering circuitry (the Analog Comparison Event). When enabled, the analog signal must stay within the trigger window for the minimum pulse width before being recognized. Use filtering for noisy trigger signals that transition in and out of the window rapidly. #define DAQmx_AnlgWin_PauseTrig_DigFltr_MinPulseWidth 0x2EF6 // Specifies in seconds the minimum pulse width the filter recognizes. #define DAQmx_AnlgWin_PauseTrig_DigFltr_TimebaseSrc 0x2EF7 // Specifies the terminal of the signal to use as the timebase of the digital filter. #define DAQmx_AnlgWin_PauseTrig_DigFltr_TimebaseRate 0x2EF8 // Specifies in hertz the rate of the digital filter timebase. NI-DAQmx uses this value to compute settings for the filter. #define DAQmx_AnlgWin_PauseTrig_DigSync_Enable 0x2EF9 // Specifies whether to synchronize recognition of transitions in the signal to the internal timebase of the device. #define DAQmx_DigLvl_PauseTrig_Src 0x1379 // Specifies the name of a terminal where there is a digital signal to use as the source of the Pause Trigger. #define DAQmx_DigLvl_PauseTrig_When 0x1380 // Specifies whether the task pauses while the signal is high or low. #define DAQmx_DigLvl_PauseTrig_DigFltr_Enable 0x2228 // Specifies whether to apply a digital filter to the trigger signal. #define DAQmx_DigLvl_PauseTrig_DigFltr_MinPulseWidth 0x2229 // Specifies in seconds the minimum pulse width the filter recognizes. #define DAQmx_DigLvl_PauseTrig_DigFltr_TimebaseSrc 0x222A // Specifies the input terminal of the signal to use as the timebase of the pulse width filter. #define DAQmx_DigLvl_PauseTrig_DigFltr_TimebaseRate 0x222B // Specifies in hertz the rate of the pulse width filter timebase. NI-DAQmx uses this value to compute settings for the filter. #define DAQmx_DigLvl_PauseTrig_DigSync_Enable 0x222C // Specifies whether to synchronize recognition of transitions in the signal to the internal timebase of the device. #define DAQmx_DigPattern_PauseTrig_Src 0x216F // Specifies the physical channels to use for pattern matching. The order of the physical channels determines the order of the pattern. If a port is included, the lines within the port are in ascending order. #define DAQmx_DigPattern_PauseTrig_Pattern 0x2188 // Specifies the digital pattern that must be met for the Pause Trigger to occur. #define DAQmx_DigPattern_PauseTrig_When 0x2170 // Specifies if the Pause Trigger occurs when the physical channels specified with Source match or differ from the digital pattern specified with Pattern. #define DAQmx_ArmStartTrig_Type 0x1414 // Specifies the type of trigger to use to arm the task for a Start Trigger. If you configure an Arm Start Trigger, the task does not respond to a Start Trigger until the device receives the Arm Start Trigger. #define DAQmx_ArmStart_Term 0x2F7F // Indicates the name of the internal Arm Start Trigger terminal for the task. This property does not return the name of the trigger source terminal. #define DAQmx_DigEdge_ArmStartTrig_Src 0x1417 // Specifies the name of a terminal where there is a digital signal to use as the source of the Arm Start Trigger. #define DAQmx_DigEdge_ArmStartTrig_Edge 0x1415 // Specifies on which edge of a digital signal to arm the task for a Start Trigger. #define DAQmx_DigEdge_ArmStartTrig_DigFltr_Enable 0x222D // Specifies whether to apply the pulse width filter to the signal. #define DAQmx_DigEdge_ArmStartTrig_DigFltr_MinPulseWidth 0x222E // Specifies in seconds the minimum pulse width the filter recognizes. #define DAQmx_DigEdge_ArmStartTrig_DigFltr_TimebaseSrc 0x222F // Specifies the input terminal of the signal to use as the timebase of the pulse width filter. #define DAQmx_DigEdge_ArmStartTrig_DigFltr_TimebaseRate 0x2230 // Specifies in hertz the rate of the pulse width filter timebase. NI-DAQmx uses this value to compute settings for the filter. #define DAQmx_DigEdge_ArmStartTrig_DigSync_Enable 0x2231 // Specifies whether to synchronize recognition of transitions in the signal to the internal timebase of the device. #define DAQmx_Trigger_SyncType 0x2F80 // Specifies the role of the device in a synchronized system. Setting this value to DAQmx_Val_Master or DAQmx_Val_Slave enables trigger skew correction. If you enable trigger skew correction, set this property to DAQmx_Val_Master on only one device, and set this property to DAQmx_Val_Slave on the other devices. //********** Watchdog Attributes ********** #define DAQmx_Watchdog_Timeout 0x21A9 // Specifies in seconds the amount of time until the watchdog timer expires. A value of -1 means the internal timer never expires. Set this input to -1 if you use an Expiration Trigger to expire the watchdog task. #define DAQmx_WatchdogExpirTrig_Type 0x21A3 // Specifies the type of trigger to use to expire a watchdog task. #define DAQmx_DigEdge_WatchdogExpirTrig_Src 0x21A4 // Specifies the name of a terminal where a digital signal exists to use as the source of the Expiration Trigger. #define DAQmx_DigEdge_WatchdogExpirTrig_Edge 0x21A5 // Specifies on which edge of a digital signal to expire the watchdog task. #define DAQmx_Watchdog_DO_ExpirState 0x21A7 // Specifies the state to which to set the digital physical channels when the watchdog task expires. You cannot modify the expiration state of dedicated digital input physical channels. #define DAQmx_Watchdog_HasExpired 0x21A8 // Indicates if the watchdog timer expired. You can read this property only while the task is running. //********** Write Attributes ********** #define DAQmx_Write_RelativeTo 0x190C // Specifies the point in the buffer at which to write data. If you also specify an offset with Offset, the write operation begins at that offset relative to this point you select with this property. #define DAQmx_Write_Offset 0x190D // Specifies in samples per channel an offset at which a write operation begins. This offset is relative to the location you specify with Relative To. #define DAQmx_Write_RegenMode 0x1453 // Specifies whether to allow NI-DAQmx to generate the same data multiple times. #define DAQmx_Write_CurrWritePos 0x1458 // Indicates the position in the buffer of the next sample to generate. This value is identical for all channels in the task. #define DAQmx_Write_OvercurrentChansExist 0x29E8 // Indicates if the device(s) detected an overcurrent condition for any channel in the task. Reading this property clears the overcurrent status for all channels in the task. You must read this property before you read Overcurrent Channels. Otherwise, you will receive an error. #define DAQmx_Write_OvercurrentChans 0x29E9 // Indicates the names of any virtual channels in the task for which an overcurrent condition has been detected. You must read Overcurrent Channels Exist before you read this property. Otherwise, you will receive an error. #define DAQmx_Write_OvertemperatureChansExist 0x2A84 // Indicates if the device(s) detected a temperature above their safe operating level. If a device exceeds this temperature, the device shuts off its output channels until the temperature returns to a safe level. #define DAQmx_Write_OpenCurrentLoopChansExist 0x29EA // Indicates if the device(s) detected an open current loop for any channel in the task. Reading this property clears the open current loop status for all channels in the task. You must read this property before you read Open Current Loop Channels. Otherwise, you will receive an error. #define DAQmx_Write_OpenCurrentLoopChans 0x29EB // Indicates the names of any virtual channels in the task for which the device(s) detected an open current loop. You must read Open Current Loop Channels Exist before you read this property. Otherwise, you will receive an error. #define DAQmx_Write_PowerSupplyFaultChansExist 0x29EC // Indicates if the device(s) detected a power supply fault for any channel in the task. Reading this property clears the power supply fault status for all channels in the task. You must read this property before you read Power Supply Fault Channels. Otherwise, you will receive an error. #define DAQmx_Write_PowerSupplyFaultChans 0x29ED // Indicates the names of any virtual channels in the task that have a power supply fault. You must read Power Supply Fault Channels Exist before you read this property. Otherwise, you will receive an error. #define DAQmx_Write_SpaceAvail 0x1460 // Indicates in samples per channel the amount of available space in the buffer. #define DAQmx_Write_TotalSampPerChanGenerated 0x192B // Indicates the total number of samples generated by each channel in the task. This value is identical for all channels in the task. #define DAQmx_Write_RawDataWidth 0x217D // Indicates in bytes the required size of a raw sample to write to the task. #define DAQmx_Write_NumChans 0x217E // Indicates the number of channels that an NI-DAQmx Write function writes to the task. This value is the number of channels in the task. #define DAQmx_Write_WaitMode 0x22B1 // Specifies how an NI-DAQmx Write function waits for space to become available in the buffer. #define DAQmx_Write_SleepTime 0x22B2 // Specifies in seconds the amount of time to sleep after checking for available buffer space if Wait Mode is DAQmx_Val_Sleep. #define DAQmx_Write_NextWriteIsLast 0x296C // Specifies that the next samples written are the last samples you want to generate. Use this property when performing continuous generation to prevent underflow errors after writing the last sample. Regeneration Mode must be DAQmx_Val_DoNotAllowRegen to use this property. #define DAQmx_Write_DigitalLines_BytesPerChan 0x217F // Indicates the number of Boolean values expected per channel in a sample for line-based writes. This property is determined by the channel in the task with the most digital lines. If a channel has fewer lines than this number, NI-DAQmx ignores the extra Boolean values. //********** Physical Channel Attributes ********** #define DAQmx_PhysicalChan_AI_TermCfgs 0x2342 // Indicates the list of terminal configurations supported by the channel. #define DAQmx_PhysicalChan_AO_TermCfgs 0x29A3 // Indicates the list of terminal configurations supported by the channel. #define DAQmx_PhysicalChan_AO_ManualControlEnable 0x2A1E // Specifies if you can control the physical channel externally via a manual control located on the device. You cannot simultaneously control a channel manually and with NI-DAQmx. #define DAQmx_PhysicalChan_AO_ManualControl_ShortDetected 0x2EC3 // Indicates whether the physical channel is currently disabled due to a short detected on the channel. #define DAQmx_PhysicalChan_AO_ManualControlAmplitude 0x2A1F // Indicates the current value of the front panel amplitude control for the physical channel in volts. #define DAQmx_PhysicalChan_AO_ManualControlFreq 0x2A20 // Indicates the current value of the front panel frequency control for the physical channel in hertz. #define DAQmx_PhysicalChan_DI_PortWidth 0x29A4 // Indicates in bits the width of digital input port. #define DAQmx_PhysicalChan_DI_SampClkSupported 0x29A5 // Indicates if the sample clock timing type is supported for the digital input physical channel. #define DAQmx_PhysicalChan_DI_ChangeDetectSupported 0x29A6 // Indicates if the change detection timing type is supported for the digital input physical channel. #define DAQmx_PhysicalChan_DO_PortWidth 0x29A7 // Indicates in bits the width of digital output port. #define DAQmx_PhysicalChan_DO_SampClkSupported 0x29A8 // Indicates if the sample clock timing type is supported for the digital output physical channel. #define DAQmx_PhysicalChan_TEDS_MfgID 0x21DA // Indicates the manufacturer ID of the sensor. #define DAQmx_PhysicalChan_TEDS_ModelNum 0x21DB // Indicates the model number of the sensor. #define DAQmx_PhysicalChan_TEDS_SerialNum 0x21DC // Indicates the serial number of the sensor. #define DAQmx_PhysicalChan_TEDS_VersionNum 0x21DD // Indicates the version number of the sensor. #define DAQmx_PhysicalChan_TEDS_VersionLetter 0x21DE // Indicates the version letter of the sensor. #define DAQmx_PhysicalChan_TEDS_BitStream 0x21DF // Indicates the TEDS binary bitstream without checksums. #define DAQmx_PhysicalChan_TEDS_TemplateIDs 0x228F // Indicates the IDs of the templates in the bitstream in BitStream. //********** Persisted Task Attributes ********** #define DAQmx_PersistedTask_Author 0x22CC // Indicates the author of the task. #define DAQmx_PersistedTask_AllowInteractiveEditing 0x22CD // Indicates whether the task can be edited in the DAQ Assistant. #define DAQmx_PersistedTask_AllowInteractiveDeletion 0x22CE // Indicates whether the task can be deleted through MAX. //********** Persisted Channel Attributes ********** #define DAQmx_PersistedChan_Author 0x22D0 // Indicates the author of the global channel. #define DAQmx_PersistedChan_AllowInteractiveEditing 0x22D1 // Indicates whether the global channel can be edited in the DAQ Assistant. #define DAQmx_PersistedChan_AllowInteractiveDeletion 0x22D2 // Indicates whether the global channel can be deleted through MAX. //********** Persisted Scale Attributes ********** #define DAQmx_PersistedScale_Author 0x22D4 // Indicates the author of the custom scale. #define DAQmx_PersistedScale_AllowInteractiveEditing 0x22D5 // Indicates whether the custom scale can be edited in the DAQ Assistant. #define DAQmx_PersistedScale_AllowInteractiveDeletion 0x22D6 // Indicates whether the custom scale can be deleted through MAX. // For backwards compatibility, the DAQmx_ReadWaitMode has to be defined because this was the original spelling // that has been later on corrected. #define DAQmx_ReadWaitMode DAQmx_Read_WaitMode /****************************************************************************** *** NI-DAQmx Values ********************************************************** ******************************************************************************/ /******************************************************/ /*** Non-Attribute Function Parameter Values ***/ /******************************************************/ //*** Values for the Mode parameter of DAQmxTaskControl *** #define DAQmx_Val_Task_Start 0 // Start #define DAQmx_Val_Task_Stop 1 // Stop #define DAQmx_Val_Task_Verify 2 // Verify #define DAQmx_Val_Task_Commit 3 // Commit #define DAQmx_Val_Task_Reserve 4 // Reserve #define DAQmx_Val_Task_Unreserve 5 // Unreserve #define DAQmx_Val_Task_Abort 6 // Abort //*** Values for the Options parameter of the event registration functions #define DAQmx_Val_SynchronousEventCallbacks (1<<0) // Synchronous callbacks //*** Values for the everyNsamplesEventType parameter of DAQmxRegisterEveryNSamplesEvent *** #define DAQmx_Val_Acquired_Into_Buffer 1 // Acquired Into Buffer #define DAQmx_Val_Transferred_From_Buffer 2 // Transferred From Buffer //*** Values for the Action parameter of DAQmxControlWatchdogTask *** #define DAQmx_Val_ResetTimer 0 // Reset Timer #define DAQmx_Val_ClearExpiration 1 // Clear Expiration //*** Values for the Line Grouping parameter of DAQmxCreateDIChan and DAQmxCreateDOChan *** #define DAQmx_Val_ChanPerLine 0 // One Channel For Each Line #define DAQmx_Val_ChanForAllLines 1 // One Channel For All Lines //*** Values for the Fill Mode parameter of DAQmxReadAnalogF64, DAQmxReadBinaryI16, DAQmxReadBinaryU16, DAQmxReadBinaryI32, DAQmxReadBinaryU32, // DAQmxReadDigitalU8, DAQmxReadDigitalU32, DAQmxReadDigitalLines *** //*** Values for the Data Layout parameter of DAQmxWriteAnalogF64, DAQmxWriteBinaryI16, DAQmxWriteDigitalU8, DAQmxWriteDigitalU32, DAQmxWriteDigitalLines *** #define DAQmx_Val_GroupByChannel 0 // Group by Channel #define DAQmx_Val_GroupByScanNumber 1 // Group by Scan Number //*** Values for the Signal Modifiers parameter of DAQmxConnectTerms ***/ #define DAQmx_Val_DoNotInvertPolarity 0 // Do not invert polarity #define DAQmx_Val_InvertPolarity 1 // Invert polarity //*** Values for the Action paramter of DAQmxCloseExtCal *** #define DAQmx_Val_Action_Commit 0 // Commit #define DAQmx_Val_Action_Cancel 1 // Cancel //*** Values for the Trigger ID parameter of DAQmxSendSoftwareTrigger *** #define DAQmx_Val_AdvanceTrigger 12488 // Advance Trigger //*** Value set for the ActiveEdge parameter of DAQmxCfgSampClkTiming and DAQmxCfgPipelinedSampClkTiming *** #define DAQmx_Val_Rising 10280 // Rising #define DAQmx_Val_Falling 10171 // Falling //*** Value set SwitchPathType *** //*** Value set for the output Path Status parameter of DAQmxSwitchFindPath *** #define DAQmx_Val_PathStatus_Available 10431 // Path Available #define DAQmx_Val_PathStatus_AlreadyExists 10432 // Path Already Exists #define DAQmx_Val_PathStatus_Unsupported 10433 // Path Unsupported #define DAQmx_Val_PathStatus_ChannelInUse 10434 // Channel In Use #define DAQmx_Val_PathStatus_SourceChannelConflict 10435 // Channel Source Conflict #define DAQmx_Val_PathStatus_ChannelReservedForRouting 10436 // Channel Reserved for Routing //*** Value set for the Units parameter of DAQmxCreateAIThrmcplChan, DAQmxCreateAIRTDChan, DAQmxCreateAIThrmstrChanIex, DAQmxCreateAIThrmstrChanVex and DAQmxCreateAITempBuiltInSensorChan *** #define DAQmx_Val_DegC 10143 // Deg C #define DAQmx_Val_DegF 10144 // Deg F #define DAQmx_Val_Kelvins 10325 // Kelvins #define DAQmx_Val_DegR 10145 // Deg R //*** Value set for the state parameter of DAQmxSetDigitalPowerUpStates *** #define DAQmx_Val_High 10192 // High #define DAQmx_Val_Low 10214 // Low #define DAQmx_Val_Tristate 10310 // Tristate //*** Value set for the state parameter of DAQmxSetDigitalPullUpPullDownStates *** #define DAQmx_Val_PullUp 15950 // Pull Up #define DAQmx_Val_PullDown 15951 // Pull Down //*** Value set for the channelType parameter of DAQmxSetAnalogPowerUpStates *** #define DAQmx_Val_ChannelVoltage 0 // Voltage Channel #define DAQmx_Val_ChannelCurrent 1 // Current Channel //*** Value set RelayPos *** //*** Value set for the state parameter of DAQmxSwitchGetSingleRelayPos and DAQmxSwitchGetMultiRelayPos *** #define DAQmx_Val_Open 10437 // Open #define DAQmx_Val_Closed 10438 // Closed //*** Value set for the inputCalSource parameter of DAQmxAdjust1540Cal *** #define DAQmx_Val_Loopback0 0 // Loopback 0 degree shift #define DAQmx_Val_Loopback180 1 // Loopback 180 degree shift #define DAQmx_Val_Ground 2 // Ground //*** Value for the Terminal Config parameter of DAQmxCreateAIVoltageChan, DAQmxCreateAICurrentChan and DAQmxCreateAIVoltageChanWithExcit *** #define DAQmx_Val_Cfg_Default -1 // Default //*** Value for the Shunt Resistor Location parameter of DAQmxCreateAICurrentChan *** #define DAQmx_Val_Default -1 // Default //*** Value for the Timeout parameter of DAQmxWaitUntilTaskDone #define DAQmx_Val_WaitInfinitely -1.0 //*** Value for the Number of Samples per Channel parameter of DAQmxReadAnalogF64, DAQmxReadBinaryI16, DAQmxReadBinaryU16, // DAQmxReadBinaryI32, DAQmxReadBinaryU32, DAQmxReadDigitalU8, DAQmxReadDigitalU32, // DAQmxReadDigitalLines, DAQmxReadCounterF64, DAQmxReadCounterU32 and DAQmxReadRaw *** #define DAQmx_Val_Auto -1 // Value set for the Options parameter of DAQmxSaveTask, DAQmxSaveGlobalChan and DAQmxSaveScale #define DAQmx_Val_Save_Overwrite (1<<0) #define DAQmx_Val_Save_AllowInteractiveEditing (1<<1) #define DAQmx_Val_Save_AllowInteractiveDeletion (1<<2) //*** Values for the Trigger Usage parameter - set of trigger types a device may support //*** Values for TriggerUsageTypeBits #define DAQmx_Val_Bit_TriggerUsageTypes_Advance (1<<0) // Device supports advance triggers #define DAQmx_Val_Bit_TriggerUsageTypes_Pause (1<<1) // Device supports pause triggers #define DAQmx_Val_Bit_TriggerUsageTypes_Reference (1<<2) // Device supports reference triggers #define DAQmx_Val_Bit_TriggerUsageTypes_Start (1<<3) // Device supports start triggers #define DAQmx_Val_Bit_TriggerUsageTypes_Handshake (1<<4) // Device supports handshake triggers #define DAQmx_Val_Bit_TriggerUsageTypes_ArmStart (1<<5) // Device supports arm start triggers //*** Values for the Coupling Types parameter - set of coupling types a device may support //*** Values for CouplingTypeBits #define DAQmx_Val_Bit_CouplingTypes_AC (1<<0) // Device supports AC coupling #define DAQmx_Val_Bit_CouplingTypes_DC (1<<1) // Device supports DC coupling #define DAQmx_Val_Bit_CouplingTypes_Ground (1<<2) // Device supports ground coupling #define DAQmx_Val_Bit_CouplingTypes_HFReject (1<<3) // Device supports High Frequency Reject coupling #define DAQmx_Val_Bit_CouplingTypes_LFReject (1<<4) // Device supports Low Frequency Reject coupling #define DAQmx_Val_Bit_CouplingTypes_NoiseReject (1<<5) // Device supports Noise Reject coupling //*** Values for DAQmx_PhysicalChan_AI_TermCfgs and DAQmx_PhysicalChan_AO_TermCfgs //*** Value set TerminalConfigurationBits *** #define DAQmx_Val_Bit_TermCfg_RSE (1<<0) // RSE terminal configuration #define DAQmx_Val_Bit_TermCfg_NRSE (1<<1) // NRSE terminal configuration #define DAQmx_Val_Bit_TermCfg_Diff (1<<2) // Differential terminal configuration #define DAQmx_Val_Bit_TermCfg_PseudoDIFF (1<<3) // Pseudodifferential terminal configuration /******************************************************/ /*** Attribute Values ***/ /******************************************************/ //*** Values for DAQmx_AI_ACExcit_WireMode *** //*** Value set ACExcitWireMode *** #define DAQmx_Val_4Wire 4 // 4-Wire #define DAQmx_Val_5Wire 5 // 5-Wire //*** Values for DAQmx_AI_ADCTimingMode *** //*** Value set ADCTimingMode *** #define DAQmx_Val_HighResolution 10195 // High Resolution #define DAQmx_Val_HighSpeed 14712 // High Speed #define DAQmx_Val_Best50HzRejection 14713 // Best 50 Hz Rejection #define DAQmx_Val_Best60HzRejection 14714 // Best 60 Hz Rejection #define DAQmx_Val_Custom 10137 // Custom //*** Values for DAQmx_AI_MeasType *** //*** Value set AIMeasurementType *** #define DAQmx_Val_Voltage 10322 // Voltage #define DAQmx_Val_VoltageRMS 10350 // Voltage RMS #define DAQmx_Val_Current 10134 // Current #define DAQmx_Val_CurrentRMS 10351 // Current RMS #define DAQmx_Val_Voltage_CustomWithExcitation 10323 // More:Voltage:Custom with Excitation #define DAQmx_Val_Bridge 15908 // More:Bridge (V/V) #define DAQmx_Val_Freq_Voltage 10181 // Frequency #define DAQmx_Val_Resistance 10278 // Resistance #define DAQmx_Val_Temp_TC 10303 // Temperature:Thermocouple #define DAQmx_Val_Temp_Thrmstr 10302 // Temperature:Thermistor #define DAQmx_Val_Temp_RTD 10301 // Temperature:RTD #define DAQmx_Val_Temp_BuiltInSensor 10311 // Temperature:Built-in Sensor #define DAQmx_Val_Strain_Gage 10300 // Strain Gage #define DAQmx_Val_Position_LVDT 10352 // Position:LVDT #define DAQmx_Val_Position_RVDT 10353 // Position:RVDT #define DAQmx_Val_Position_EddyCurrentProximityProbe 14835 // Position:Eddy Current Proximity Probe #define DAQmx_Val_Accelerometer 10356 // Accelerometer #define DAQmx_Val_Force_Bridge 15899 // Force:Bridge #define DAQmx_Val_Force_IEPESensor 15895 // Force:IEPE Sensor #define DAQmx_Val_Pressure_Bridge 15902 // Pressure:Bridge #define DAQmx_Val_SoundPressure_Microphone 10354 // Sound Pressure:Microphone #define DAQmx_Val_Torque_Bridge 15905 // Torque:Bridge #define DAQmx_Val_TEDS_Sensor 12531 // TEDS Sensor //*** Values for DAQmx_AO_IdleOutputBehavior *** //*** Value set AOIdleOutputBehavior *** #define DAQmx_Val_ZeroVolts 12526 // Zero Volts #define DAQmx_Val_HighImpedance 12527 // High Impedance #define DAQmx_Val_MaintainExistingValue 12528 // Maintain Existing Value //*** Values for DAQmx_AO_OutputType *** //*** Value set AOOutputChannelType *** #define DAQmx_Val_Voltage 10322 // Voltage #define DAQmx_Val_Current 10134 // Current #define DAQmx_Val_FuncGen 14750 // Function Generation //*** Values for DAQmx_AI_Accel_SensitivityUnits *** //*** Value set AccelSensitivityUnits1 *** #define DAQmx_Val_mVoltsPerG 12509 // mVolts/g #define DAQmx_Val_VoltsPerG 12510 // Volts/g //*** Values for DAQmx_AI_Accel_Units *** //*** Value set AccelUnits2 *** #define DAQmx_Val_AccelUnit_g 10186 // g #define DAQmx_Val_MetersPerSecondSquared 12470 // m/s^2 #define DAQmx_Val_FromCustomScale 10065 // From Custom Scale //*** Values for DAQmx_SampQuant_SampMode *** //*** Value set AcquisitionType *** #define DAQmx_Val_FiniteSamps 10178 // Finite Samples #define DAQmx_Val_ContSamps 10123 // Continuous Samples #define DAQmx_Val_HWTimedSinglePoint 12522 // Hardware Timed Single Point //*** Values for DAQmx_AnlgLvl_PauseTrig_When *** //*** Value set ActiveLevel *** #define DAQmx_Val_AboveLvl 10093 // Above Level #define DAQmx_Val_BelowLvl 10107 // Below Level //*** Values for DAQmx_AI_RVDT_Units *** //*** Value set AngleUnits1 *** #define DAQmx_Val_Degrees 10146 // Degrees #define DAQmx_Val_Radians 10273 // Radians #define DAQmx_Val_FromCustomScale 10065 // From Custom Scale //*** Values for DAQmx_CI_AngEncoder_Units *** //*** Value set AngleUnits2 *** #define DAQmx_Val_Degrees 10146 // Degrees #define DAQmx_Val_Radians 10273 // Radians #define DAQmx_Val_Ticks 10304 // Ticks #define DAQmx_Val_FromCustomScale 10065 // From Custom Scale //*** Values for DAQmx_AI_AutoZeroMode *** //*** Value set AutoZeroType1 *** #define DAQmx_Val_None 10230 // None #define DAQmx_Val_Once 10244 // Once #define DAQmx_Val_EverySample 10164 // Every Sample //*** Values for DAQmx_SwitchScan_BreakMode *** //*** Value set BreakMode *** #define DAQmx_Val_NoAction 10227 // No Action #define DAQmx_Val_BreakBeforeMake 10110 // Break Before Make //*** Values for DAQmx_AI_Bridge_Cfg *** //*** Value set BridgeConfiguration1 *** #define DAQmx_Val_FullBridge 10182 // Full Bridge #define DAQmx_Val_HalfBridge 10187 // Half Bridge #define DAQmx_Val_QuarterBridge 10270 // Quarter Bridge #define DAQmx_Val_NoBridge 10228 // No Bridge //*** Values for DAQmx_AI_Bridge_ElectricalUnits *** //*** Value set BridgeElectricalUnits *** #define DAQmx_Val_VoltsPerVolt 15896 // Volts/Volt #define DAQmx_Val_mVoltsPerVolt 15897 // mVolts/Volt //*** Values for DAQmx_AI_Bridge_PhysicalUnits *** //*** Value set BridgePhysicalUnits *** #define DAQmx_Val_Newtons 15875 // Newtons #define DAQmx_Val_Pounds 15876 // Pounds #define DAQmx_Val_KilogramForce 15877 // kgf #define DAQmx_Val_Pascals 10081 // Pascals #define DAQmx_Val_PoundsPerSquareInch 15879 // psi #define DAQmx_Val_Bar 15880 // bar #define DAQmx_Val_NewtonMeters 15881 // Nm #define DAQmx_Val_InchOunces 15882 // oz-in #define DAQmx_Val_InchPounds 15883 // lb-in #define DAQmx_Val_FootPounds 15884 // lb-ft //*** Values for DAQmx_AI_Bridge_Units *** //*** Value set BridgeUnits *** #define DAQmx_Val_VoltsPerVolt 15896 // Volts/Volt #define DAQmx_Val_mVoltsPerVolt 15897 // mVolts/Volt #define DAQmx_Val_FromCustomScale 10065 // From Custom Scale #define DAQmx_Val_FromTEDS 12516 // From TEDS //*** Values for DAQmx_Dev_BusType *** //*** Value set BusType *** #define DAQmx_Val_PCI 12582 // PCI #define DAQmx_Val_PCIe 13612 // PCIe #define DAQmx_Val_PXI 12583 // PXI #define DAQmx_Val_PXIe 14706 // PXIe #define DAQmx_Val_SCXI 12584 // SCXI #define DAQmx_Val_SCC 14707 // SCC #define DAQmx_Val_PCCard 12585 // PCCard #define DAQmx_Val_USB 12586 // USB #define DAQmx_Val_CompactDAQ 14637 // CompactDAQ #define DAQmx_Val_TCPIP 14828 // TCP/IP #define DAQmx_Val_Unknown 12588 // Unknown #define DAQmx_Val_SwitchBlock 15870 // SwitchBlock //*** Values for DAQmx_CI_MeasType *** //*** Value set CIMeasurementType *** #define DAQmx_Val_CountEdges 10125 // Count Edges #define DAQmx_Val_Freq 10179 // Frequency #define DAQmx_Val_Period 10256 // Period #define DAQmx_Val_PulseWidth 10359 // Pulse Width #define DAQmx_Val_SemiPeriod 10289 // Semi Period #define DAQmx_Val_PulseFrequency 15864 // Pulse Frequency #define DAQmx_Val_PulseTime 15865 // Pulse Time #define DAQmx_Val_PulseTicks 15866 // Pulse Ticks #define DAQmx_Val_Position_AngEncoder 10360 // Position:Angular Encoder #define DAQmx_Val_Position_LinEncoder 10361 // Position:Linear Encoder #define DAQmx_Val_TwoEdgeSep 10267 // Two Edge Separation #define DAQmx_Val_GPS_Timestamp 10362 // GPS Timestamp //*** Values for DAQmx_AI_Thrmcpl_CJCSrc *** //*** Value set CJCSource1 *** #define DAQmx_Val_BuiltIn 10200 // Built-In #define DAQmx_Val_ConstVal 10116 // Constant Value #define DAQmx_Val_Chan 10113 // Channel //*** Values for DAQmx_CO_OutputType *** //*** Value set COOutputType *** #define DAQmx_Val_Pulse_Time 10269 // Pulse:Time #define DAQmx_Val_Pulse_Freq 10119 // Pulse:Frequency #define DAQmx_Val_Pulse_Ticks 10268 // Pulse:Ticks //*** Values for DAQmx_ChanType *** //*** Value set ChannelType *** #define DAQmx_Val_AI 10100 // Analog Input #define DAQmx_Val_AO 10102 // Analog Output #define DAQmx_Val_DI 10151 // Digital Input #define DAQmx_Val_DO 10153 // Digital Output #define DAQmx_Val_CI 10131 // Counter Input #define DAQmx_Val_CO 10132 // Counter Output //*** Values for DAQmx_CO_ConstrainedGenMode *** //*** Value set ConstrainedGenMode *** #define DAQmx_Val_Unconstrained 14708 // Unconstrained #define DAQmx_Val_FixedHighFreq 14709 // Fixed High Frequency #define DAQmx_Val_FixedLowFreq 14710 // Fixed Low Frequency #define DAQmx_Val_Fixed50PercentDutyCycle 14711 // Fixed 50 Percent Duty Cycle //*** Values for DAQmx_CI_CountEdges_Dir *** //*** Value set CountDirection1 *** #define DAQmx_Val_CountUp 10128 // Count Up #define DAQmx_Val_CountDown 10124 // Count Down #define DAQmx_Val_ExtControlled 10326 // Externally Controlled //*** Values for DAQmx_CI_Freq_MeasMeth *** //*** Values for DAQmx_CI_Period_MeasMeth *** //*** Value set CounterFrequencyMethod *** #define DAQmx_Val_LowFreq1Ctr 10105 // Low Frequency with 1 Counter #define DAQmx_Val_HighFreq2Ctr 10157 // High Frequency with 2 Counters #define DAQmx_Val_LargeRng2Ctr 10205 // Large Range with 2 Counters //*** Values for DAQmx_AI_Coupling *** //*** Value set Coupling1 *** #define DAQmx_Val_AC 10045 // AC #define DAQmx_Val_DC 10050 // DC #define DAQmx_Val_GND 10066 // GND //*** Values for DAQmx_AnlgEdge_StartTrig_Coupling *** //*** Values for DAQmx_AnlgWin_StartTrig_Coupling *** //*** Values for DAQmx_AnlgEdge_RefTrig_Coupling *** //*** Values for DAQmx_AnlgWin_RefTrig_Coupling *** //*** Values for DAQmx_AnlgLvl_PauseTrig_Coupling *** //*** Values for DAQmx_AnlgWin_PauseTrig_Coupling *** //*** Value set Coupling2 *** #define DAQmx_Val_AC 10045 // AC #define DAQmx_Val_DC 10050 // DC //*** Values for DAQmx_AI_CurrentShunt_Loc *** //*** Value set CurrentShuntResistorLocation1 *** #define DAQmx_Val_Internal 10200 // Internal #define DAQmx_Val_External 10167 // External //*** Values for DAQmx_AI_Current_Units *** //*** Values for DAQmx_AI_Current_ACRMS_Units *** //*** Values for DAQmx_AO_Current_Units *** //*** Value set CurrentUnits1 *** #define DAQmx_Val_Amps 10342 // Amps #define DAQmx_Val_FromCustomScale 10065 // From Custom Scale #define DAQmx_Val_FromTEDS 12516 // From TEDS //*** Value set CurrentUnits2 *** #define DAQmx_Val_Amps 10342 // Amps #define DAQmx_Val_FromCustomScale 10065 // From Custom Scale //*** Values for DAQmx_AI_RawSampJustification *** //*** Value set DataJustification1 *** #define DAQmx_Val_RightJustified 10279 // Right-Justified #define DAQmx_Val_LeftJustified 10209 // Left-Justified //*** Values for DAQmx_AI_DataXferMech *** //*** Values for DAQmx_AO_DataXferMech *** //*** Values for DAQmx_DI_DataXferMech *** //*** Values for DAQmx_DO_DataXferMech *** //*** Values for DAQmx_CI_DataXferMech *** //*** Values for DAQmx_CO_DataXferMech *** //*** Value set DataTransferMechanism *** #define DAQmx_Val_DMA 10054 // DMA #define DAQmx_Val_Interrupts 10204 // Interrupts #define DAQmx_Val_ProgrammedIO 10264 // Programmed I/O #define DAQmx_Val_USBbulk 12590 // USB Bulk //*** Values for DAQmx_Exported_RdyForXferEvent_DeassertCond *** //*** Value set DeassertCondition *** #define DAQmx_Val_OnbrdMemMoreThanHalfFull 10237 // Onboard Memory More than Half Full #define DAQmx_Val_OnbrdMemFull 10236 // Onboard Memory Full #define DAQmx_Val_OnbrdMemCustomThreshold 12577 // Onboard Memory Custom Threshold //*** Values for DAQmx_DO_OutputDriveType *** //*** Value set DigitalDriveType *** #define DAQmx_Val_ActiveDrive 12573 // Active Drive #define DAQmx_Val_OpenCollector 12574 // Open Collector //*** Values for DAQmx_DO_LineStates_StartState *** //*** Values for DAQmx_DO_LineStates_PausedState *** //*** Values for DAQmx_DO_LineStates_DoneState *** //*** Values for DAQmx_Watchdog_DO_ExpirState *** //*** Value set DigitalLineState *** #define DAQmx_Val_High 10192 // High #define DAQmx_Val_Low 10214 // Low #define DAQmx_Val_Tristate 10310 // Tristate #define DAQmx_Val_NoChange 10160 // No Change //*** Values for DAQmx_DigPattern_StartTrig_When *** //*** Values for DAQmx_DigPattern_RefTrig_When *** //*** Values for DAQmx_DigPattern_PauseTrig_When *** //*** Value set DigitalPatternCondition1 *** #define DAQmx_Val_PatternMatches 10254 // Pattern Matches #define DAQmx_Val_PatternDoesNotMatch 10253 // Pattern Does Not Match //*** Values for DAQmx_StartTrig_DelayUnits *** //*** Value set DigitalWidthUnits1 *** #define DAQmx_Val_SampClkPeriods 10286 // Sample Clock Periods #define DAQmx_Val_Seconds 10364 // Seconds #define DAQmx_Val_Ticks 10304 // Ticks //*** Values for DAQmx_DelayFromSampClk_DelayUnits *** //*** Value set DigitalWidthUnits2 *** #define DAQmx_Val_Seconds 10364 // Seconds #define DAQmx_Val_Ticks 10304 // Ticks //*** Values for DAQmx_Exported_AdvTrig_Pulse_WidthUnits *** //*** Value set DigitalWidthUnits3 *** #define DAQmx_Val_Seconds 10364 // Seconds //*** Values for DAQmx_AI_EddyCurrentProxProbe_SensitivityUnits *** //*** Value set EddyCurrentProxProbeSensitivityUnits *** #define DAQmx_Val_mVoltsPerMil 14836 // mVolts/mil #define DAQmx_Val_VoltsPerMil 14837 // Volts/mil #define DAQmx_Val_mVoltsPerMillimeter 14838 // mVolts/mMeter #define DAQmx_Val_VoltsPerMillimeter 14839 // Volts/mMeter #define DAQmx_Val_mVoltsPerMicron 14840 // mVolts/micron //*** Values for DAQmx_CI_Freq_StartingEdge *** //*** Values for DAQmx_CI_Period_StartingEdge *** //*** Values for DAQmx_CI_CountEdges_ActiveEdge *** //*** Values for DAQmx_CI_CountEdges_CountReset_ActiveEdge *** //*** Values for DAQmx_CI_PulseWidth_StartingEdge *** //*** Values for DAQmx_CI_TwoEdgeSep_FirstEdge *** //*** Values for DAQmx_CI_TwoEdgeSep_SecondEdge *** //*** Values for DAQmx_CI_SemiPeriod_StartingEdge *** //*** Values for DAQmx_CI_Pulse_Freq_Start_Edge *** //*** Values for DAQmx_CI_Pulse_Time_StartEdge *** //*** Values for DAQmx_CI_Pulse_Ticks_StartEdge *** //*** Values for DAQmx_CI_CtrTimebaseActiveEdge *** //*** Values for DAQmx_CO_CtrTimebaseActiveEdge *** //*** Values for DAQmx_SampClk_ActiveEdge *** //*** Values for DAQmx_SampClk_Timebase_ActiveEdge *** //*** Values for DAQmx_AIConv_ActiveEdge *** //*** Values for DAQmx_DigEdge_StartTrig_Edge *** //*** Values for DAQmx_DigEdge_RefTrig_Edge *** //*** Values for DAQmx_DigEdge_AdvTrig_Edge *** //*** Values for DAQmx_DigEdge_ArmStartTrig_Edge *** //*** Values for DAQmx_DigEdge_WatchdogExpirTrig_Edge *** //*** Value set Edge1 *** #define DAQmx_Val_Rising 10280 // Rising #define DAQmx_Val_Falling 10171 // Falling //*** Values for DAQmx_CI_Encoder_DecodingType *** //*** Value set EncoderType2 *** #define DAQmx_Val_X1 10090 // X1 #define DAQmx_Val_X2 10091 // X2 #define DAQmx_Val_X4 10092 // X4 #define DAQmx_Val_TwoPulseCounting 10313 // Two Pulse Counting //*** Values for DAQmx_CI_Encoder_ZIndexPhase *** //*** Value set EncoderZIndexPhase1 *** #define DAQmx_Val_AHighBHigh 10040 // A High B High #define DAQmx_Val_AHighBLow 10041 // A High B Low #define DAQmx_Val_ALowBHigh 10042 // A Low B High #define DAQmx_Val_ALowBLow 10043 // A Low B Low //*** Values for DAQmx_AI_Excit_DCorAC *** //*** Value set ExcitationDCorAC *** #define DAQmx_Val_DC 10050 // DC #define DAQmx_Val_AC 10045 // AC //*** Values for DAQmx_AI_Excit_Src *** //*** Value set ExcitationSource *** #define DAQmx_Val_Internal 10200 // Internal #define DAQmx_Val_External 10167 // External #define DAQmx_Val_None 10230 // None //*** Values for DAQmx_AI_Excit_VoltageOrCurrent *** //*** Value set ExcitationVoltageOrCurrent *** #define DAQmx_Val_Voltage 10322 // Voltage #define DAQmx_Val_Current 10134 // Current //*** Values for DAQmx_Exported_CtrOutEvent_OutputBehavior *** //*** Value set ExportActions2 *** #define DAQmx_Val_Pulse 10265 // Pulse #define DAQmx_Val_Toggle 10307 // Toggle //*** Values for DAQmx_Exported_SampClk_OutputBehavior *** //*** Value set ExportActions3 *** #define DAQmx_Val_Pulse 10265 // Pulse #define DAQmx_Val_Lvl 10210 // Level //*** Values for DAQmx_Exported_HshkEvent_OutputBehavior *** //*** Value set ExportActions5 *** #define DAQmx_Val_Interlocked 12549 // Interlocked #define DAQmx_Val_Pulse 10265 // Pulse //*** Values for DAQmx_AI_Force_IEPESensor_SensitivityUnits *** //*** Value set ForceIEPESensorSensitivityUnits *** #define DAQmx_Val_mVoltsPerNewton 15891 // mVolts/N #define DAQmx_Val_mVoltsPerPound 15892 // mVolts/lb //*** Values for DAQmx_AI_Force_Units *** //*** Value set ForceUnits *** #define DAQmx_Val_Newtons 15875 // Newtons #define DAQmx_Val_Pounds 15876 // Pounds #define DAQmx_Val_KilogramForce 15877 // kgf #define DAQmx_Val_FromCustomScale 10065 // From Custom Scale //*** Values for DAQmx_AI_Freq_Units *** //*** Value set FrequencyUnits *** #define DAQmx_Val_Hz 10373 // Hz #define DAQmx_Val_FromCustomScale 10065 // From Custom Scale //*** Values for DAQmx_CI_Pulse_Freq_Units *** //*** Values for DAQmx_CO_Pulse_Freq_Units *** //*** Value set FrequencyUnits2 *** #define DAQmx_Val_Hz 10373 // Hz //*** Values for DAQmx_CI_Freq_Units *** //*** Value set FrequencyUnits3 *** #define DAQmx_Val_Hz 10373 // Hz #define DAQmx_Val_Ticks 10304 // Ticks #define DAQmx_Val_FromCustomScale 10065 // From Custom Scale //*** Values for DAQmx_AO_FuncGen_Type *** //*** Value set FuncGenType *** #define DAQmx_Val_Sine 14751 // Sine #define DAQmx_Val_Triangle 14752 // Triangle #define DAQmx_Val_Square 14753 // Square #define DAQmx_Val_Sawtooth 14754 // Sawtooth //*** Values for DAQmx_CI_GPS_SyncMethod *** //*** Value set GpsSignalType1 *** #define DAQmx_Val_IRIGB 10070 // IRIG-B #define DAQmx_Val_PPS 10080 // PPS #define DAQmx_Val_None 10230 // None //*** Values for DAQmx_Hshk_StartCond *** //*** Value set HandshakeStartCondition *** #define DAQmx_Val_Immediate 10198 // Immediate #define DAQmx_Val_WaitForHandshakeTriggerAssert 12550 // Wait For Handshake Trigger Assert #define DAQmx_Val_WaitForHandshakeTriggerDeassert 12551 // Wait For Handshake Trigger Deassert //*** Values for DAQmx_AI_DataXferReqCond *** //*** Values for DAQmx_DI_DataXferReqCond *** //*** Values for DAQmx_CI_DataXferReqCond *** //*** Value set InputDataTransferCondition *** #define DAQmx_Val_OnBrdMemMoreThanHalfFull 10237 // Onboard Memory More than Half Full #define DAQmx_Val_OnBrdMemNotEmpty 10241 // Onboard Memory Not Empty #define DAQmx_Val_OnbrdMemCustomThreshold 12577 // Onboard Memory Custom Threshold #define DAQmx_Val_WhenAcqComplete 12546 // When Acquisition Complete //*** Values for DAQmx_AI_TermCfg *** //*** Value set InputTermCfg *** #define DAQmx_Val_RSE 10083 // RSE #define DAQmx_Val_NRSE 10078 // NRSE #define DAQmx_Val_Diff 10106 // Differential #define DAQmx_Val_PseudoDiff 12529 // Pseudodifferential //*** Values for DAQmx_AI_LVDT_SensitivityUnits *** //*** Value set LVDTSensitivityUnits1 *** #define DAQmx_Val_mVoltsPerVoltPerMillimeter 12506 // mVolts/Volt/mMeter #define DAQmx_Val_mVoltsPerVoltPerMilliInch 12505 // mVolts/Volt/0.001 Inch //*** Values for DAQmx_AI_LVDT_Units *** //*** Values for DAQmx_AI_EddyCurrentProxProbe_Units *** //*** Value set LengthUnits2 *** #define DAQmx_Val_Meters 10219 // Meters #define DAQmx_Val_Inches 10379 // Inches #define DAQmx_Val_FromCustomScale 10065 // From Custom Scale //*** Values for DAQmx_CI_LinEncoder_Units *** //*** Value set LengthUnits3 *** #define DAQmx_Val_Meters 10219 // Meters #define DAQmx_Val_Inches 10379 // Inches #define DAQmx_Val_Ticks 10304 // Ticks #define DAQmx_Val_FromCustomScale 10065 // From Custom Scale //*** Values for DAQmx_CI_OutputState *** //*** Values for DAQmx_CO_Pulse_IdleState *** //*** Values for DAQmx_CO_OutputState *** //*** Values for DAQmx_Exported_CtrOutEvent_Toggle_IdleState *** //*** Values for DAQmx_Exported_HshkEvent_Interlocked_AssertedLvl *** //*** Values for DAQmx_Interlocked_HshkTrig_AssertedLvl *** //*** Values for DAQmx_DigLvl_PauseTrig_When *** //*** Value set Level1 *** #define DAQmx_Val_High 10192 // High #define DAQmx_Val_Low 10214 // Low //*** Values for DAQmx_Logging_Mode *** //*** Value set LoggingMode *** #define DAQmx_Val_Off 10231 // Off #define DAQmx_Val_Log 15844 // Log #define DAQmx_Val_LogAndRead 15842 // Log and Read //*** Values for DAQmx_Logging_TDMS_Operation *** //*** Value set LoggingOperation *** #define DAQmx_Val_Open 10437 // Open #define DAQmx_Val_OpenOrCreate 15846 // Open or Create #define DAQmx_Val_CreateOrReplace 15847 // Create or Replace #define DAQmx_Val_Create 15848 // Create //*** Values for DAQmx_DI_LogicFamily *** //*** Values for DAQmx_DO_LogicFamily *** //*** Value set LogicFamily *** #define DAQmx_Val_2point5V 14620 // 2.5 V #define DAQmx_Val_3point3V 14621 // 3.3 V #define DAQmx_Val_5V 14619 // 5.0 V //*** Values for DAQmx_AIConv_Timebase_Src *** //*** Value set MIOAIConvertTbSrc *** #define DAQmx_Val_SameAsSampTimebase 10284 // Same as Sample Timebase #define DAQmx_Val_100MHzTimebase 15857 // 100 MHz Timebase #define DAQmx_Val_SameAsMasterTimebase 10282 // Same as Master Timebase #define DAQmx_Val_20MHzTimebase 12537 // 20MHz Timebase #define DAQmx_Val_80MHzTimebase 14636 // 80MHz Timebase //*** Values for DAQmx_AO_FuncGen_ModulationType *** //*** Value set ModulationType *** #define DAQmx_Val_AM 14756 // AM #define DAQmx_Val_FM 14757 // FM #define DAQmx_Val_None 10230 // None //*** Values for DAQmx_AO_DataXferReqCond *** //*** Values for DAQmx_DO_DataXferReqCond *** //*** Values for DAQmx_CO_DataXferReqCond *** //*** Value set OutputDataTransferCondition *** #define DAQmx_Val_OnBrdMemEmpty 10235 // Onboard Memory Empty #define DAQmx_Val_OnBrdMemHalfFullOrLess 10239 // Onboard Memory Half Full or Less #define DAQmx_Val_OnBrdMemNotFull 10242 // Onboard Memory Less than Full //*** Values for DAQmx_AO_TermCfg *** //*** Value set OutputTermCfg *** #define DAQmx_Val_RSE 10083 // RSE #define DAQmx_Val_Diff 10106 // Differential #define DAQmx_Val_PseudoDiff 12529 // Pseudodifferential //*** Values for DAQmx_SampClk_OverrunBehavior *** //*** Value set OverflowBehavior *** #define DAQmx_Val_StopTaskAndError 15862 // Stop Task And Error #define DAQmx_Val_IgnoreOverruns 15863 // Ignore Overruns //*** Values for DAQmx_Read_OverWrite *** //*** Value set OverwriteMode1 *** #define DAQmx_Val_OverwriteUnreadSamps 10252 // Overwrite Unread Samples #define DAQmx_Val_DoNotOverwriteUnreadSamps 10159 // Do Not Overwrite Unread Samples //*** Values for DAQmx_Exported_AIConvClk_Pulse_Polarity *** //*** Values for DAQmx_Exported_SampClk_Pulse_Polarity *** //*** Values for DAQmx_Exported_AdvTrig_Pulse_Polarity *** //*** Values for DAQmx_Exported_PauseTrig_Lvl_ActiveLvl *** //*** Values for DAQmx_Exported_RefTrig_Pulse_Polarity *** //*** Values for DAQmx_Exported_StartTrig_Pulse_Polarity *** //*** Values for DAQmx_Exported_AdvCmpltEvent_Pulse_Polarity *** //*** Values for DAQmx_Exported_AIHoldCmpltEvent_PulsePolarity *** //*** Values for DAQmx_Exported_ChangeDetectEvent_Pulse_Polarity *** //*** Values for DAQmx_Exported_CtrOutEvent_Pulse_Polarity *** //*** Values for DAQmx_Exported_HshkEvent_Pulse_Polarity *** //*** Values for DAQmx_Exported_RdyForXferEvent_Lvl_ActiveLvl *** //*** Values for DAQmx_Exported_DataActiveEvent_Lvl_ActiveLvl *** //*** Values for DAQmx_Exported_RdyForStartEvent_Lvl_ActiveLvl *** //*** Value set Polarity2 *** #define DAQmx_Val_ActiveHigh 10095 // Active High #define DAQmx_Val_ActiveLow 10096 // Active Low //*** Values for DAQmx_AI_Pressure_Units *** //*** Value set PressureUnits *** #define DAQmx_Val_Pascals 10081 // Pascals #define DAQmx_Val_PoundsPerSquareInch 15879 // psi #define DAQmx_Val_Bar 15880 // bar #define DAQmx_Val_FromCustomScale 10065 // From Custom Scale //*** Values for DAQmx_Dev_ProductCategory *** //*** Value set ProductCategory *** #define DAQmx_Val_MSeriesDAQ 14643 // M Series DAQ #define DAQmx_Val_XSeriesDAQ 15858 // X Series DAQ #define DAQmx_Val_ESeriesDAQ 14642 // E Series DAQ #define DAQmx_Val_SSeriesDAQ 14644 // S Series DAQ #define DAQmx_Val_BSeriesDAQ 14662 // B Series DAQ #define DAQmx_Val_SCSeriesDAQ 14645 // SC Series DAQ #define DAQmx_Val_USBDAQ 14646 // USB DAQ #define DAQmx_Val_AOSeries 14647 // AO Series #define DAQmx_Val_DigitalIO 14648 // Digital I/O #define DAQmx_Val_TIOSeries 14661 // TIO Series #define DAQmx_Val_DynamicSignalAcquisition 14649 // Dynamic Signal Acquisition #define DAQmx_Val_Switches 14650 // Switches #define DAQmx_Val_CompactDAQChassis 14658 // CompactDAQ Chassis #define DAQmx_Val_CSeriesModule 14659 // C Series Module #define DAQmx_Val_SCXIModule 14660 // SCXI Module #define DAQmx_Val_SCCConnectorBlock 14704 // SCC Connector Block #define DAQmx_Val_SCCModule 14705 // SCC Module #define DAQmx_Val_NIELVIS 14755 // NI ELVIS #define DAQmx_Val_NetworkDAQ 14829 // Network DAQ #define DAQmx_Val_SCExpress 15886 // SC Express #define DAQmx_Val_Unknown 12588 // Unknown //*** Values for DAQmx_AI_RTD_Type *** //*** Value set RTDType1 *** #define DAQmx_Val_Pt3750 12481 // Pt3750 #define DAQmx_Val_Pt3851 10071 // Pt3851 #define DAQmx_Val_Pt3911 12482 // Pt3911 #define DAQmx_Val_Pt3916 10069 // Pt3916 #define DAQmx_Val_Pt3920 10053 // Pt3920 #define DAQmx_Val_Pt3928 12483 // Pt3928 #define DAQmx_Val_Custom 10137 // Custom //*** Values for DAQmx_AI_RVDT_SensitivityUnits *** //*** Value set RVDTSensitivityUnits1 *** #define DAQmx_Val_mVoltsPerVoltPerDegree 12507 // mVolts/Volt/Degree #define DAQmx_Val_mVoltsPerVoltPerRadian 12508 // mVolts/Volt/Radian //*** Values for DAQmx_AI_RawDataCompressionType *** //*** Value set RawDataCompressionType *** #define DAQmx_Val_None 10230 // None #define DAQmx_Val_LosslessPacking 12555 // Lossless Packing #define DAQmx_Val_LossyLSBRemoval 12556 // Lossy LSB Removal //*** Values for DAQmx_Read_RelativeTo *** //*** Value set ReadRelativeTo *** #define DAQmx_Val_FirstSample 10424 // First Sample #define DAQmx_Val_CurrReadPos 10425 // Current Read Position #define DAQmx_Val_RefTrig 10426 // Reference Trigger #define DAQmx_Val_FirstPretrigSamp 10427 // First Pretrigger Sample #define DAQmx_Val_MostRecentSamp 10428 // Most Recent Sample //*** Values for DAQmx_Write_RegenMode *** //*** Value set RegenerationMode1 *** #define DAQmx_Val_AllowRegen 10097 // Allow Regeneration #define DAQmx_Val_DoNotAllowRegen 10158 // Do Not Allow Regeneration //*** Values for DAQmx_AI_ResistanceCfg *** //*** Value set ResistanceConfiguration *** #define DAQmx_Val_2Wire 2 // 2-Wire #define DAQmx_Val_3Wire 3 // 3-Wire #define DAQmx_Val_4Wire 4 // 4-Wire //*** Values for DAQmx_AI_Resistance_Units *** //*** Value set ResistanceUnits1 *** #define DAQmx_Val_Ohms 10384 // Ohms #define DAQmx_Val_FromCustomScale 10065 // From Custom Scale #define DAQmx_Val_FromTEDS 12516 // From TEDS //*** Value set ResistanceUnits2 *** #define DAQmx_Val_Ohms 10384 // Ohms #define DAQmx_Val_FromCustomScale 10065 // From Custom Scale //*** Values for DAQmx_AI_ResolutionUnits *** //*** Values for DAQmx_AO_ResolutionUnits *** //*** Value set ResolutionType1 *** #define DAQmx_Val_Bits 10109 // Bits //*** Value set SCXI1124Range *** #define DAQmx_Val_SCXI1124Range0to1V 14629 // 0V to 1V #define DAQmx_Val_SCXI1124Range0to5V 14630 // 0V to 5V #define DAQmx_Val_SCXI1124Range0to10V 14631 // 0V to 10V #define DAQmx_Val_SCXI1124RangeNeg1to1V 14632 // -1V to 1V #define DAQmx_Val_SCXI1124RangeNeg5to5V 14633 // -5V to 5V #define DAQmx_Val_SCXI1124RangeNeg10to10V 14634 // -10V to 10V #define DAQmx_Val_SCXI1124Range0to20mA 14635 // 0mA to 20mA //*** Values for DAQmx_DI_AcquireOn *** //*** Values for DAQmx_DO_GenerateOn *** //*** Value set SampleClockActiveOrInactiveEdgeSelection *** #define DAQmx_Val_SampClkActiveEdge 14617 // Sample Clock Active Edge #define DAQmx_Val_SampClkInactiveEdge 14618 // Sample Clock Inactive Edge //*** Values for DAQmx_Hshk_SampleInputDataWhen *** //*** Value set SampleInputDataWhen *** #define DAQmx_Val_HandshakeTriggerAsserts 12552 // Handshake Trigger Asserts #define DAQmx_Val_HandshakeTriggerDeasserts 12553 // Handshake Trigger Deasserts //*** Values for DAQmx_SampTimingType *** //*** Value set SampleTimingType *** #define DAQmx_Val_SampClk 10388 // Sample Clock #define DAQmx_Val_BurstHandshake 12548 // Burst Handshake #define DAQmx_Val_Handshake 10389 // Handshake #define DAQmx_Val_Implicit 10451 // Implicit #define DAQmx_Val_OnDemand 10390 // On Demand #define DAQmx_Val_ChangeDetection 12504 // Change Detection #define DAQmx_Val_PipelinedSampClk 14668 // Pipelined Sample Clock //*** Values for DAQmx_Scale_Type *** //*** Value set ScaleType *** #define DAQmx_Val_Linear 10447 // Linear #define DAQmx_Val_MapRanges 10448 // Map Ranges #define DAQmx_Val_Polynomial 10449 // Polynomial #define DAQmx_Val_Table 10450 // Table //*** Values for DAQmx_AI_Thrmcpl_ScaleType *** //*** Value set ScaleType2 *** #define DAQmx_Val_Polynomial 10449 // Polynomial #define DAQmx_Val_Table 10450 // Table //*** Values for DAQmx_AI_ChanCal_ScaleType *** //*** Value set ScaleType3 *** #define DAQmx_Val_Polynomial 10449 // Polynomial #define DAQmx_Val_Table 10450 // Table #define DAQmx_Val_None 10230 // None //*** Values for DAQmx_AI_Bridge_ScaleType *** //*** Value set ScaleType4 *** #define DAQmx_Val_None 10230 // None #define DAQmx_Val_TwoPointLinear 15898 // Two-Point Linear #define DAQmx_Val_Table 10450 // Table #define DAQmx_Val_Polynomial 10449 // Polynomial //*** Values for DAQmx_AI_Bridge_ShuntCal_Select *** //*** Value set ShuntCalSelect *** #define DAQmx_Val_A 12513 // A #define DAQmx_Val_B 12514 // B #define DAQmx_Val_AandB 12515 // A and B //*** Value set ShuntElementLocation *** #define DAQmx_Val_R1 12465 // R1 #define DAQmx_Val_R2 12466 // R2 #define DAQmx_Val_R3 12467 // R3 #define DAQmx_Val_R4 14813 // R4 #define DAQmx_Val_None 10230 // None //*** Value set Signal *** #define DAQmx_Val_AIConvertClock 12484 // AI Convert Clock #define DAQmx_Val_10MHzRefClock 12536 // 10MHz Reference Clock #define DAQmx_Val_20MHzTimebaseClock 12486 // 20MHz Timebase Clock #define DAQmx_Val_SampleClock 12487 // Sample Clock #define DAQmx_Val_AdvanceTrigger 12488 // Advance Trigger #define DAQmx_Val_ReferenceTrigger 12490 // Reference Trigger #define DAQmx_Val_StartTrigger 12491 // Start Trigger #define DAQmx_Val_AdvCmpltEvent 12492 // Advance Complete Event #define DAQmx_Val_AIHoldCmpltEvent 12493 // AI Hold Complete Event #define DAQmx_Val_CounterOutputEvent 12494 // Counter Output Event #define DAQmx_Val_ChangeDetectionEvent 12511 // Change Detection Event #define DAQmx_Val_WDTExpiredEvent 12512 // Watchdog Timer Expired Event //*** Value set Signal2 *** #define DAQmx_Val_SampleCompleteEvent 12530 // Sample Complete Event #define DAQmx_Val_CounterOutputEvent 12494 // Counter Output Event #define DAQmx_Val_ChangeDetectionEvent 12511 // Change Detection Event #define DAQmx_Val_SampleClock 12487 // Sample Clock //*** Values for DAQmx_AnlgEdge_StartTrig_Slope *** //*** Values for DAQmx_AnlgEdge_RefTrig_Slope *** //*** Value set Slope1 *** #define DAQmx_Val_RisingSlope 10280 // Rising #define DAQmx_Val_FallingSlope 10171 // Falling //*** Values for DAQmx_AI_SoundPressure_Units *** //*** Value set SoundPressureUnits1 *** #define DAQmx_Val_Pascals 10081 // Pascals #define DAQmx_Val_FromCustomScale 10065 // From Custom Scale //*** Values for DAQmx_AI_Lowpass_SwitchCap_ClkSrc *** //*** Values for DAQmx_AO_DAC_Ref_Src *** //*** Values for DAQmx_AO_DAC_Offset_Src *** //*** Value set SourceSelection *** #define DAQmx_Val_Internal 10200 // Internal #define DAQmx_Val_External 10167 // External //*** Values for DAQmx_AI_StrainGage_Cfg *** //*** Value set StrainGageBridgeType1 *** #define DAQmx_Val_FullBridgeI 10183 // Full Bridge I #define DAQmx_Val_FullBridgeII 10184 // Full Bridge II #define DAQmx_Val_FullBridgeIII 10185 // Full Bridge III #define DAQmx_Val_HalfBridgeI 10188 // Half Bridge I #define DAQmx_Val_HalfBridgeII 10189 // Half Bridge II #define DAQmx_Val_QuarterBridgeI 10271 // Quarter Bridge I #define DAQmx_Val_QuarterBridgeII 10272 // Quarter Bridge II //*** Values for DAQmx_AI_Strain_Units *** //*** Value set StrainUnits1 *** #define DAQmx_Val_Strain 10299 // Strain #define DAQmx_Val_FromCustomScale 10065 // From Custom Scale //*** Values for DAQmx_SwitchScan_RepeatMode *** //*** Value set SwitchScanRepeatMode *** #define DAQmx_Val_Finite 10172 // Finite #define DAQmx_Val_Cont 10117 // Continuous //*** Values for DAQmx_SwitchChan_Usage *** //*** Value set SwitchUsageTypes *** #define DAQmx_Val_Source 10439 // Source #define DAQmx_Val_Load 10440 // Load #define DAQmx_Val_ReservedForRouting 10441 // Reserved for Routing //*** Values for DAQmx_Trigger_SyncType *** //*** Value set SyncType *** #define DAQmx_Val_None 10230 // None #define DAQmx_Val_Master 15888 // Master #define DAQmx_Val_Slave 15889 // Slave //*** Value set TEDSUnits *** #define DAQmx_Val_FromCustomScale 10065 // From Custom Scale #define DAQmx_Val_FromTEDS 12516 // From TEDS //*** Values for DAQmx_AI_Temp_Units *** //*** Value set TemperatureUnits1 *** #define DAQmx_Val_DegC 10143 // Deg C #define DAQmx_Val_DegF 10144 // Deg F #define DAQmx_Val_Kelvins 10325 // Kelvins #define DAQmx_Val_DegR 10145 // Deg R #define DAQmx_Val_FromCustomScale 10065 // From Custom Scale //*** Values for DAQmx_AI_Thrmcpl_Type *** //*** Value set ThermocoupleType1 *** #define DAQmx_Val_J_Type_TC 10072 // J #define DAQmx_Val_K_Type_TC 10073 // K #define DAQmx_Val_N_Type_TC 10077 // N #define DAQmx_Val_R_Type_TC 10082 // R #define DAQmx_Val_S_Type_TC 10085 // S #define DAQmx_Val_T_Type_TC 10086 // T #define DAQmx_Val_B_Type_TC 10047 // B #define DAQmx_Val_E_Type_TC 10055 // E //*** Values for DAQmx_CI_Timestamp_Units *** //*** Value set TimeUnits *** #define DAQmx_Val_Seconds 10364 // Seconds #define DAQmx_Val_FromCustomScale 10065 // From Custom Scale //*** Values for DAQmx_CI_Pulse_Time_Units *** //*** Values for DAQmx_CO_Pulse_Time_Units *** //*** Value set TimeUnits2 *** #define DAQmx_Val_Seconds 10364 // Seconds //*** Values for DAQmx_CI_Period_Units *** //*** Values for DAQmx_CI_PulseWidth_Units *** //*** Values for DAQmx_CI_TwoEdgeSep_Units *** //*** Values for DAQmx_CI_SemiPeriod_Units *** //*** Value set TimeUnits3 *** #define DAQmx_Val_Seconds 10364 // Seconds #define DAQmx_Val_Ticks 10304 // Ticks #define DAQmx_Val_FromCustomScale 10065 // From Custom Scale //*** Value set TimingResponseMode *** #define DAQmx_Val_SingleCycle 14613 // Single-cycle #define DAQmx_Val_Multicycle 14614 // Multicycle //*** Values for DAQmx_AI_Torque_Units *** //*** Value set TorqueUnits *** #define DAQmx_Val_NewtonMeters 15881 // Nm #define DAQmx_Val_InchOunces 15882 // oz-in #define DAQmx_Val_InchPounds 15883 // lb-in #define DAQmx_Val_FootPounds 15884 // lb-ft #define DAQmx_Val_FromCustomScale 10065 // From Custom Scale //*** Values for DAQmx_ArmStartTrig_Type *** //*** Values for DAQmx_WatchdogExpirTrig_Type *** //*** Value set TriggerType4 *** #define DAQmx_Val_DigEdge 10150 // Digital Edge #define DAQmx_Val_None 10230 // None //*** Values for DAQmx_AdvTrig_Type *** //*** Value set TriggerType5 *** #define DAQmx_Val_DigEdge 10150 // Digital Edge #define DAQmx_Val_Software 10292 // Software #define DAQmx_Val_None 10230 // None //*** Values for DAQmx_PauseTrig_Type *** //*** Value set TriggerType6 *** #define DAQmx_Val_AnlgLvl 10101 // Analog Level #define DAQmx_Val_AnlgWin 10103 // Analog Window #define DAQmx_Val_DigLvl 10152 // Digital Level #define DAQmx_Val_DigPattern 10398 // Digital Pattern #define DAQmx_Val_None 10230 // None //*** Values for DAQmx_StartTrig_Type *** //*** Values for DAQmx_RefTrig_Type *** //*** Value set TriggerType8 *** #define DAQmx_Val_AnlgEdge 10099 // Analog Edge #define DAQmx_Val_DigEdge 10150 // Digital Edge #define DAQmx_Val_DigPattern 10398 // Digital Pattern #define DAQmx_Val_AnlgWin 10103 // Analog Window #define DAQmx_Val_None 10230 // None //*** Values for DAQmx_HshkTrig_Type *** //*** Value set TriggerType9 *** #define DAQmx_Val_Interlocked 12549 // Interlocked #define DAQmx_Val_None 10230 // None //*** Values for DAQmx_SampClk_UnderflowBehavior *** //*** Values for DAQmx_Implicit_UnderflowBehavior *** //*** Value set UnderflowBehavior *** #define DAQmx_Val_HaltOutputAndError 14615 // Halt Output and Error #define DAQmx_Val_PauseUntilDataAvailable 14616 // Pause until Data Available //*** Values for DAQmx_Scale_PreScaledUnits *** //*** Value set UnitsPreScaled *** #define DAQmx_Val_Volts 10348 // Volts #define DAQmx_Val_Amps 10342 // Amps #define DAQmx_Val_DegF 10144 // Deg F #define DAQmx_Val_DegC 10143 // Deg C #define DAQmx_Val_DegR 10145 // Deg R #define DAQmx_Val_Kelvins 10325 // Kelvins #define DAQmx_Val_Strain 10299 // Strain #define DAQmx_Val_Ohms 10384 // Ohms #define DAQmx_Val_Hz 10373 // Hz #define DAQmx_Val_Seconds 10364 // Seconds #define DAQmx_Val_Meters 10219 // Meters #define DAQmx_Val_Inches 10379 // Inches #define DAQmx_Val_Degrees 10146 // Degrees #define DAQmx_Val_Radians 10273 // Radians #define DAQmx_Val_g 10186 // g #define DAQmx_Val_MetersPerSecondSquared 12470 // m/s^2 #define DAQmx_Val_Pascals 10081 // Pascals #define DAQmx_Val_Newtons 15875 // Newtons #define DAQmx_Val_Pounds 15876 // Pounds #define DAQmx_Val_KilogramForce 15877 // kgf #define DAQmx_Val_PoundsPerSquareInch 15879 // psi #define DAQmx_Val_Bar 15880 // bar #define DAQmx_Val_NewtonMeters 15881 // Nm #define DAQmx_Val_InchOunces 15882 // oz-in #define DAQmx_Val_InchPounds 15883 // lb-in #define DAQmx_Val_FootPounds 15884 // lb-ft #define DAQmx_Val_VoltsPerVolt 15896 // Volts/Volt #define DAQmx_Val_mVoltsPerVolt 15897 // mVolts/Volt #define DAQmx_Val_FromTEDS 12516 // From TEDS //*** Values for DAQmx_AI_Voltage_Units *** //*** Values for DAQmx_AI_Voltage_ACRMS_Units *** //*** Value set VoltageUnits1 *** #define DAQmx_Val_Volts 10348 // Volts #define DAQmx_Val_FromCustomScale 10065 // From Custom Scale #define DAQmx_Val_FromTEDS 12516 // From TEDS //*** Values for DAQmx_AO_Voltage_Units *** //*** Value set VoltageUnits2 *** #define DAQmx_Val_Volts 10348 // Volts #define DAQmx_Val_FromCustomScale 10065 // From Custom Scale //*** Values for DAQmx_Read_WaitMode *** //*** Value set WaitMode *** #define DAQmx_Val_WaitForInterrupt 12523 // Wait For Interrupt #define DAQmx_Val_Poll 12524 // Poll #define DAQmx_Val_Yield 12525 // Yield #define DAQmx_Val_Sleep 12547 // Sleep //*** Values for DAQmx_Write_WaitMode *** //*** Value set WaitMode2 *** #define DAQmx_Val_Poll 12524 // Poll #define DAQmx_Val_Yield 12525 // Yield #define DAQmx_Val_Sleep 12547 // Sleep //*** Values for DAQmx_RealTime_WaitForNextSampClkWaitMode *** //*** Value set WaitMode3 *** #define DAQmx_Val_WaitForInterrupt 12523 // Wait For Interrupt #define DAQmx_Val_Poll 12524 // Poll //*** Values for DAQmx_RealTime_WriteRecoveryMode *** //*** Value set WaitMode4 *** #define DAQmx_Val_WaitForInterrupt 12523 // Wait For Interrupt #define DAQmx_Val_Poll 12524 // Poll //*** Values for DAQmx_AnlgWin_StartTrig_When *** //*** Values for DAQmx_AnlgWin_RefTrig_When *** //*** Value set WindowTriggerCondition1 *** #define DAQmx_Val_EnteringWin 10163 // Entering Window #define DAQmx_Val_LeavingWin 10208 // Leaving Window //*** Values for DAQmx_AnlgWin_PauseTrig_When *** //*** Value set WindowTriggerCondition2 *** #define DAQmx_Val_InsideWin 10199 // Inside Window #define DAQmx_Val_OutsideWin 10251 // Outside Window //*** Value set WriteBasicTEDSOptions *** #define DAQmx_Val_WriteToEEPROM 12538 // Write To EEPROM #define DAQmx_Val_WriteToPROM 12539 // Write To PROM Once #define DAQmx_Val_DoNotWrite 12540 // Do Not Write //*** Values for DAQmx_Write_RelativeTo *** //*** Value set WriteRelativeTo *** #define DAQmx_Val_FirstSample 10424 // First Sample #define DAQmx_Val_CurrWritePos 10430 // Current Write Position /****************************************************************************** *** NI-DAQmx Function Declarations ******************************************* ******************************************************************************/ /******************************************************/ /*** Task Configuration/Control ***/ /******************************************************/ int32 __CFUNC DAQmxLoadTask (const char taskName[], TaskHandle *taskHandle); int32 __CFUNC DAQmxCreateTask (const char taskName[], TaskHandle *taskHandle); // Channel Names must be valid channels already available in MAX. They are not created. int32 __CFUNC DAQmxAddGlobalChansToTask (TaskHandle taskHandle, const char channelNames[]); int32 __CFUNC DAQmxStartTask (TaskHandle taskHandle); int32 __CFUNC DAQmxStopTask (TaskHandle taskHandle); int32 __CFUNC DAQmxClearTask (TaskHandle taskHandle); int32 __CFUNC DAQmxWaitUntilTaskDone (TaskHandle taskHandle, float64 timeToWait); int32 __CFUNC DAQmxIsTaskDone (TaskHandle taskHandle, bool32 *isTaskDone); int32 __CFUNC DAQmxTaskControl (TaskHandle taskHandle, int32 action); int32 __CFUNC DAQmxGetNthTaskChannel (TaskHandle taskHandle, uInt32 index, char buffer[], int32 bufferSize); int32 __CFUNC DAQmxGetNthTaskDevice (TaskHandle taskHandle, uInt32 index, char buffer[], int32 bufferSize); int32 __CFUNC_C DAQmxGetTaskAttribute (TaskHandle taskHandle, int32 attribute, void *value, ...); typedef int32 (CVICALLBACK *DAQmxEveryNSamplesEventCallbackPtr)(TaskHandle taskHandle, int32 everyNsamplesEventType, uInt32 nSamples, void *callbackData); typedef int32 (CVICALLBACK *DAQmxDoneEventCallbackPtr)(TaskHandle taskHandle, int32 status, void *callbackData); typedef int32 (CVICALLBACK *DAQmxSignalEventCallbackPtr)(TaskHandle taskHandle, int32 signalID, void *callbackData); int32 __CFUNC DAQmxRegisterEveryNSamplesEvent(TaskHandle task, int32 everyNsamplesEventType, uInt32 nSamples, uInt32 options, DAQmxEveryNSamplesEventCallbackPtr callbackFunction, void *callbackData); int32 __CFUNC DAQmxRegisterDoneEvent (TaskHandle task, uInt32 options, DAQmxDoneEventCallbackPtr callbackFunction, void *callbackData); int32 __CFUNC DAQmxRegisterSignalEvent (TaskHandle task, int32 signalID, uInt32 options, DAQmxSignalEventCallbackPtr callbackFunction, void *callbackData); /******************************************************/ /*** Channel Configuration/Creation ***/ /******************************************************/ int32 __CFUNC DAQmxCreateAIVoltageChan (TaskHandle taskHandle, const char physicalChannel[], const char nameToAssignToChannel[], int32 terminalConfig, float64 minVal, float64 maxVal, int32 units, const char customScaleName[]); int32 __CFUNC DAQmxCreateAICurrentChan (TaskHandle taskHandle, const char physicalChannel[], const char nameToAssignToChannel[], int32 terminalConfig, float64 minVal, float64 maxVal, int32 units, int32 shuntResistorLoc, float64 extShuntResistorVal, const char customScaleName[]); int32 __CFUNC DAQmxCreateAIVoltageRMSChan (TaskHandle taskHandle, const char physicalChannel[], const char nameToAssignToChannel[], int32 terminalConfig, float64 minVal, float64 maxVal, int32 units, const char customScaleName[]); int32 __CFUNC DAQmxCreateAICurrentRMSChan (TaskHandle taskHandle, const char physicalChannel[], const char nameToAssignToChannel[], int32 terminalConfig, float64 minVal, float64 maxVal, int32 units, int32 shuntResistorLoc, float64 extShuntResistorVal, const char customScaleName[]); int32 __CFUNC DAQmxCreateAIThrmcplChan (TaskHandle taskHandle, const char physicalChannel[], const char nameToAssignToChannel[], float64 minVal, float64 maxVal, int32 units, int32 thermocoupleType, int32 cjcSource, float64 cjcVal, const char cjcChannel[]); int32 __CFUNC DAQmxCreateAIRTDChan (TaskHandle taskHandle, const char physicalChannel[], const char nameToAssignToChannel[], float64 minVal, float64 maxVal, int32 units, int32 rtdType, int32 resistanceConfig, int32 currentExcitSource, float64 currentExcitVal, float64 r0); int32 __CFUNC DAQmxCreateAIThrmstrChanIex (TaskHandle taskHandle, const char physicalChannel[], const char nameToAssignToChannel[], float64 minVal, float64 maxVal, int32 units, int32 resistanceConfig, int32 currentExcitSource, float64 currentExcitVal, float64 a, float64 b, float64 c); int32 __CFUNC DAQmxCreateAIThrmstrChanVex (TaskHandle taskHandle, const char physicalChannel[], const char nameToAssignToChannel[], float64 minVal, float64 maxVal, int32 units, int32 resistanceConfig, int32 voltageExcitSource, float64 voltageExcitVal, float64 a, float64 b, float64 c, float64 r1); int32 __CFUNC DAQmxCreateAIFreqVoltageChan (TaskHandle taskHandle, const char physicalChannel[], const char nameToAssignToChannel[], float64 minVal, float64 maxVal, int32 units, float64 thresholdLevel, float64 hysteresis, const char customScaleName[]); int32 __CFUNC DAQmxCreateAIResistanceChan (TaskHandle taskHandle, const char physicalChannel[], const char nameToAssignToChannel[], float64 minVal, float64 maxVal, int32 units, int32 resistanceConfig, int32 currentExcitSource, float64 currentExcitVal, const char customScaleName[]); int32 __CFUNC DAQmxCreateAIStrainGageChan (TaskHandle taskHandle, const char physicalChannel[], const char nameToAssignToChannel[], float64 minVal, float64 maxVal, int32 units, int32 strainConfig, int32 voltageExcitSource, float64 voltageExcitVal, float64 gageFactor, float64 initialBridgeVoltage, float64 nominalGageResistance, float64 poissonRatio, float64 leadWireResistance, const char customScaleName[]); int32 __CFUNC DAQmxCreateAIForceBridgeTwoPointLinChan(TaskHandle taskHandle, const char physicalChannel[], const char nameToAssignToChannel[],float64 minVal,float64 maxVal,int32 units,int32 bridgeConfig,int32 voltageExcitSource,float64 voltageExcitVal,float64 nominalBridgeResistance,float64 firstElectricalVal,float64 secondElectricalVal,int32 electricalUnits,float64 firstPhysicalVal,float64 secondPhysicalVal,int32 physicalUnits,const char customScaleName[]); int32 __CFUNC DAQmxCreateAIForceBridgeTableChan(TaskHandle taskHandle,const char physicalChannel[],const char nameToAssignToChannel[],float64 minVal,float64 maxVal,int32 units,int32 bridgeConfig,int32 voltageExcitSource,float64 voltageExcitVal,float64 nominalBridgeResistance,const float64 electricalVals[],uInt32 numElectricalVals,int32 electricalUnits,const float64 physicalVals[],uInt32 numPhysicalVals,int32 physicalUnits,const char customScaleName[]); int32 __CFUNC DAQmxCreateAIForceBridgePolynomialChan(TaskHandle taskHandle,const char physicalChannel[],const char nameToAssignToChannel[],float64 minVal,float64 maxVal,int32 units,int32 bridgeConfig,int32 voltageExcitSource,float64 voltageExcitVal,float64 nominalBridgeResistance,const float64 forwardCoeffs[],uInt32 numForwardCoeffs,const float64 reverseCoeffs[],uInt32 numReverseCoeffs,int32 electricalUnits,int32 physicalUnits,const char customScaleName[]); int32 __CFUNC DAQmxCreateAIPressureBridgeTwoPointLinChan(TaskHandle taskHandle,const char physicalChannel[],const char nameToAssignToChannel[],float64 minVal,float64 maxVal,int32 units,int32 bridgeConfig,int32 voltageExcitSource,float64 voltageExcitVal,float64 nominalBridgeResistance,float64 firstElectricalVal,float64 secondElectricalVal,int32 electricalUnits,float64 firstPhysicalVal,float64 secondPhysicalVal,int32 physicalUnits,const char customScaleName[]); int32 __CFUNC DAQmxCreateAIPressureBridgeTableChan(TaskHandle taskHandle,const char physicalChannel[],const char nameToAssignToChannel[],float64 minVal,float64 maxVal,int32 units,int32 bridgeConfig,int32 voltageExcitSource,float64 voltageExcitVal,float64 nominalBridgeResistance,const float64 electricalVals[],uInt32 numElectricalVals,int32 electricalUnits,const float64 physicalVals[],uInt32 numPhysicalVals,int32 physicalUnits,const char customScaleName[]); int32 __CFUNC DAQmxCreateAIPressureBridgePolynomialChan(TaskHandle taskHandle,const char physicalChannel[],const char nameToAssignToChannel[],float64 minVal,float64 maxVal,int32 units,int32 bridgeConfig,int32 voltageExcitSource,float64 voltageExcitVal,float64 nominalBridgeResistance,const float64 forwardCoeffs[],uInt32 numForwardCoeffs,const float64 reverseCoeffs[],uInt32 numReverseCoeffs,int32 electricalUnits,int32 physicalUnits,const char customScaleName[]); int32 __CFUNC DAQmxCreateAITorqueBridgeTwoPointLinChan(TaskHandle taskHandle,const char physicalChannel[],const char nameToAssignToChannel[],float64 minVal,float64 maxVal,int32 units,int32 bridgeConfig,int32 voltageExcitSource,float64 voltageExcitVal,float64 nominalBridgeResistance,float64 firstElectricalVal,float64 secondElectricalVal,int32 electricalUnits,float64 firstPhysicalVal,float64 secondPhysicalVal,int32 physicalUnits,const char customScaleName[]); int32 __CFUNC DAQmxCreateAITorqueBridgeTableChan(TaskHandle taskHandle,const char physicalChannel[],const char nameToAssignToChannel[],float64 minVal,float64 maxVal,int32 units,int32 bridgeConfig,int32 voltageExcitSource,float64 voltageExcitVal,float64 nominalBridgeResistance,const float64 electricalVals[],uInt32 numElectricalVals,int32 electricalUnits,const float64 physicalVals[],uInt32 numPhysicalVals,int32 physicalUnits,const char customScaleName[]); int32 __CFUNC DAQmxCreateAITorqueBridgePolynomialChan(TaskHandle taskHandle,const char physicalChannel[],const char nameToAssignToChannel[],float64 minVal,float64 maxVal,int32 units,int32 bridgeConfig,int32 voltageExcitSource,float64 voltageExcitVal,float64 nominalBridgeResistance,const float64 forwardCoeffs[],uInt32 numForwardCoeffs,const float64 reverseCoeffs[],uInt32 numReverseCoeffs,int32 electricalUnits,int32 physicalUnits,const char customScaleName[]); int32 __CFUNC DAQmxCreateAIBridgeChan (TaskHandle taskHandle,const char physicalChannel[],const char nameToAssignToChannel[],float64 minVal,float64 maxVal,int32 units,int32 bridgeConfig,int32 voltageExcitSource,float64 voltageExcitVal,float64 nominalBridgeResistance,const char customScaleName[]); int32 __CFUNC DAQmxCreateAIVoltageChanWithExcit(TaskHandle taskHandle, const char physicalChannel[], const char nameToAssignToChannel[], int32 terminalConfig, float64 minVal, float64 maxVal, int32 units, int32 bridgeConfig, int32 voltageExcitSource, float64 voltageExcitVal, bool32 useExcitForScaling, const char customScaleName[]); int32 __CFUNC DAQmxCreateAITempBuiltInSensorChan(TaskHandle taskHandle, const char physicalChannel[], const char nameToAssignToChannel[], int32 units); int32 __CFUNC DAQmxCreateAIAccelChan (TaskHandle taskHandle, const char physicalChannel[], const char nameToAssignToChannel[], int32 terminalConfig, float64 minVal, float64 maxVal, int32 units, float64 sensitivity, int32 sensitivityUnits, int32 currentExcitSource, float64 currentExcitVal, const char customScaleName[]); int32 __CFUNC DAQmxCreateAIForceIEPEChan (TaskHandle taskHandle, const char physicalChannel[], const char nameToAssignToChannel[], int32 terminalConfig, float64 minVal, float64 maxVal, int32 units, float64 sensitivity, int32 sensitivityUnits, int32 currentExcitSource, float64 currentExcitVal, const char customScaleName[]); int32 __CFUNC DAQmxCreateAIMicrophoneChan (TaskHandle taskHandle, const char physicalChannel[], const char nameToAssignToChannel[], int32 terminalConfig, int32 units, float64 micSensitivity, float64 maxSndPressLevel, int32 currentExcitSource, float64 currentExcitVal, const char customScaleName[]); int32 __CFUNC DAQmxCreateAIPosLVDTChan (TaskHandle taskHandle, const char physicalChannel[], const char nameToAssignToChannel[], float64 minVal, float64 maxVal, int32 units, float64 sensitivity, int32 sensitivityUnits, int32 voltageExcitSource, float64 voltageExcitVal, float64 voltageExcitFreq, int32 ACExcitWireMode, const char customScaleName[]); int32 __CFUNC DAQmxCreateAIPosRVDTChan (TaskHandle taskHandle, const char physicalChannel[], const char nameToAssignToChannel[], float64 minVal, float64 maxVal, int32 units, float64 sensitivity, int32 sensitivityUnits, int32 voltageExcitSource, float64 voltageExcitVal, float64 voltageExcitFreq, int32 ACExcitWireMode, const char customScaleName[]); int32 __CFUNC DAQmxCreateAIPosEddyCurrProxProbeChan(TaskHandle taskHandle, const char physicalChannel[], const char nameToAssignToChannel[], float64 minVal, float64 maxVal, int32 units, float64 sensitivity, int32 sensitivityUnits, const char customScaleName[]); // Function DAQmxCreateAIDeviceTempChan is obsolete and has been replaced by DAQmxCreateAITempBuiltInSensorChan int32 __CFUNC DAQmxCreateAIDeviceTempChan (TaskHandle taskHandle, const char physicalChannel[], const char nameToAssignToChannel[], int32 units); int32 __CFUNC DAQmxCreateTEDSAIVoltageChan (TaskHandle taskHandle, const char physicalChannel[], const char nameToAssignToChannel[], int32 terminalConfig, float64 minVal, float64 maxVal, int32 units, const char customScaleName[]); int32 __CFUNC DAQmxCreateTEDSAICurrentChan (TaskHandle taskHandle, const char physicalChannel[], const char nameToAssignToChannel[], int32 terminalConfig, float64 minVal, float64 maxVal, int32 units, int32 shuntResistorLoc, float64 extShuntResistorVal, const char customScaleName[]); int32 __CFUNC DAQmxCreateTEDSAIThrmcplChan (TaskHandle taskHandle, const char physicalChannel[], const char nameToAssignToChannel[], float64 minVal, float64 maxVal, int32 units, int32 cjcSource, float64 cjcVal, const char cjcChannel[]); int32 __CFUNC DAQmxCreateTEDSAIRTDChan (TaskHandle taskHandle, const char physicalChannel[], const char nameToAssignToChannel[], float64 minVal, float64 maxVal, int32 units, int32 resistanceConfig, int32 currentExcitSource, float64 currentExcitVal); int32 __CFUNC DAQmxCreateTEDSAIThrmstrChanIex(TaskHandle taskHandle, const char physicalChannel[], const char nameToAssignToChannel[], float64 minVal, float64 maxVal, int32 units, int32 resistanceConfig, int32 currentExcitSource, float64 currentExcitVal); int32 __CFUNC DAQmxCreateTEDSAIThrmstrChanVex(TaskHandle taskHandle, const char physicalChannel[], const char nameToAssignToChannel[], float64 minVal, float64 maxVal, int32 units, int32 resistanceConfig, int32 voltageExcitSource, float64 voltageExcitVal, float64 r1); int32 __CFUNC DAQmxCreateTEDSAIResistanceChan(TaskHandle taskHandle, const char physicalChannel[], const char nameToAssignToChannel[], float64 minVal, float64 maxVal, int32 units, int32 resistanceConfig, int32 currentExcitSource, float64 currentExcitVal, const char customScaleName[]); int32 __CFUNC DAQmxCreateTEDSAIStrainGageChan(TaskHandle taskHandle, const char physicalChannel[], const char nameToAssignToChannel[], float64 minVal, float64 maxVal, int32 units, int32 voltageExcitSource, float64 voltageExcitVal, float64 initialBridgeVoltage, float64 leadWireResistance, const char customScaleName[]); int32 __CFUNC DAQmxCreateTEDSAIForceBridgeChan(TaskHandle taskHandle,const char physicalChannel[],const char nameToAssignToChannel[],float64 minVal,float64 maxVal,int32 units,int32 voltageExcitSource,float64 voltageExcitVal,const char customScaleName[]); int32 __CFUNC DAQmxCreateTEDSAIPressureBridgeChan(TaskHandle taskHandle,const char physicalChannel[],const char nameToAssignToChannel[],float64 minVal,float64 maxVal,int32 units,int32 voltageExcitSource,float64 voltageExcitVal, const char customScaleName[]); int32 __CFUNC DAQmxCreateTEDSAITorqueBridgeChan(TaskHandle taskHandle,const char physicalChannel[],const char nameToAssignToChannel[],float64 minVal,float64 maxVal,int32 units,int32 voltageExcitSource,float64 voltageExcitVal,const char customScaleName[]); int32 __CFUNC DAQmxCreateTEDSAIBridgeChan (TaskHandle taskHandle,const char physicalChannel[],const char nameToAssignToChannel[],float64 minVal,float64 maxVal,int32 units,int32 voltageExcitSource,float64 voltageExcitVal,const char customScaleName[]); int32 __CFUNC DAQmxCreateTEDSAIVoltageChanWithExcit(TaskHandle taskHandle, const char physicalChannel[], const char nameToAssignToChannel[], int32 terminalConfig, float64 minVal, float64 maxVal, int32 units, int32 voltageExcitSource, float64 voltageExcitVal, const char customScaleName[]); int32 __CFUNC DAQmxCreateTEDSAIAccelChan (TaskHandle taskHandle, const char physicalChannel[], const char nameToAssignToChannel[], int32 terminalConfig, float64 minVal, float64 maxVal, int32 units, int32 currentExcitSource, float64 currentExcitVal, const char customScaleName[]); int32 __CFUNC DAQmxCreateTEDSAIForceIEPEChan (TaskHandle taskHandle, const char physicalChannel[], const char nameToAssignToChannel[], int32 terminalConfig, float64 minVal, float64 maxVal, int32 units, int32 currentExcitSource, float64 currentExcitVal, const char customScaleName[]); int32 __CFUNC DAQmxCreateTEDSAIMicrophoneChan(TaskHandle taskHandle, const char physicalChannel[], const char nameToAssignToChannel[], int32 terminalConfig, int32 units, float64 maxSndPressLevel, int32 currentExcitSource, float64 currentExcitVal, const char customScaleName[]); int32 __CFUNC DAQmxCreateTEDSAIPosLVDTChan (TaskHandle taskHandle, const char physicalChannel[], const char nameToAssignToChannel[], float64 minVal, float64 maxVal, int32 units, int32 voltageExcitSource, float64 voltageExcitVal, float64 voltageExcitFreq, int32 ACExcitWireMode, const char customScaleName[]); int32 __CFUNC DAQmxCreateTEDSAIPosRVDTChan (TaskHandle taskHandle, const char physicalChannel[], const char nameToAssignToChannel[], float64 minVal, float64 maxVal, int32 units, int32 voltageExcitSource, float64 voltageExcitVal, float64 voltageExcitFreq, int32 ACExcitWireMode, const char customScaleName[]); int32 __CFUNC DAQmxCreateAOVoltageChan (TaskHandle taskHandle, const char physicalChannel[], const char nameToAssignToChannel[], float64 minVal, float64 maxVal, int32 units, const char customScaleName[]); int32 __CFUNC DAQmxCreateAOCurrentChan (TaskHandle taskHandle, const char physicalChannel[], const char nameToAssignToChannel[], float64 minVal, float64 maxVal, int32 units, const char customScaleName[]); int32 __CFUNC DAQmxCreateAOFuncGenChan (TaskHandle taskHandle, const char physicalChannel[], const char nameToAssignToChannel[], int32 type, float64 freq, float64 amplitude, float64 offset); int32 __CFUNC DAQmxCreateDIChan (TaskHandle taskHandle, const char lines[], const char nameToAssignToLines[], int32 lineGrouping); int32 __CFUNC DAQmxCreateDOChan (TaskHandle taskHandle, const char lines[], const char nameToAssignToLines[], int32 lineGrouping); int32 __CFUNC DAQmxCreateCIFreqChan (TaskHandle taskHandle, const char counter[], const char nameToAssignToChannel[], float64 minVal, float64 maxVal, int32 units, int32 edge, int32 measMethod, float64 measTime, uInt32 divisor, const char customScaleName[]); int32 __CFUNC DAQmxCreateCIPeriodChan (TaskHandle taskHandle, const char counter[], const char nameToAssignToChannel[], float64 minVal, float64 maxVal, int32 units, int32 edge, int32 measMethod, float64 measTime, uInt32 divisor, const char customScaleName[]); int32 __CFUNC DAQmxCreateCICountEdgesChan (TaskHandle taskHandle, const char counter[], const char nameToAssignToChannel[], int32 edge, uInt32 initialCount, int32 countDirection); int32 __CFUNC DAQmxCreateCIPulseWidthChan (TaskHandle taskHandle, const char counter[], const char nameToAssignToChannel[], float64 minVal, float64 maxVal, int32 units, int32 startingEdge, const char customScaleName[]); int32 __CFUNC DAQmxCreateCISemiPeriodChan (TaskHandle taskHandle, const char counter[], const char nameToAssignToChannel[], float64 minVal, float64 maxVal, int32 units, const char customScaleName[]); int32 __CFUNC DAQmxCreateCITwoEdgeSepChan (TaskHandle taskHandle, const char counter[], const char nameToAssignToChannel[], float64 minVal, float64 maxVal, int32 units, int32 firstEdge, int32 secondEdge, const char customScaleName[]); int32 __CFUNC DAQmxCreateCIPulseChanFreq (TaskHandle taskHandle, const char counter[], const char nameToAssignToChannel[], float64 minVal, float64 maxVal, int32 units); int32 __CFUNC DAQmxCreateCIPulseChanTime (TaskHandle taskHandle, const char counter[], const char nameToAssignToChannel[], float64 minVal, float64 maxVal, int32 units); int32 __CFUNC DAQmxCreateCIPulseChanTicks (TaskHandle taskHandle, const char counter[], const char nameToAssignToChannel[], const char sourceTerminal[], float64 minVal, float64 maxVal); int32 __CFUNC DAQmxCreateCILinEncoderChan (TaskHandle taskHandle, const char counter[], const char nameToAssignToChannel[], int32 decodingType, bool32 ZidxEnable, float64 ZidxVal, int32 ZidxPhase, int32 units, float64 distPerPulse, float64 initialPos, const char customScaleName[]); int32 __CFUNC DAQmxCreateCIAngEncoderChan (TaskHandle taskHandle, const char counter[], const char nameToAssignToChannel[], int32 decodingType, bool32 ZidxEnable, float64 ZidxVal, int32 ZidxPhase, int32 units, uInt32 pulsesPerRev, float64 initialAngle, const char customScaleName[]); int32 __CFUNC DAQmxCreateCIGPSTimestampChan (TaskHandle taskHandle, const char counter[], const char nameToAssignToChannel[], int32 units, int32 syncMethod, const char customScaleName[]); int32 __CFUNC DAQmxCreateCOPulseChanFreq (TaskHandle taskHandle, const char counter[], const char nameToAssignToChannel[], int32 units, int32 idleState, float64 initialDelay, float64 freq, float64 dutyCycle); int32 __CFUNC DAQmxCreateCOPulseChanTime (TaskHandle taskHandle, const char counter[], const char nameToAssignToChannel[], int32 units, int32 idleState, float64 initialDelay, float64 lowTime, float64 highTime); int32 __CFUNC DAQmxCreateCOPulseChanTicks (TaskHandle taskHandle, const char counter[], const char nameToAssignToChannel[], const char sourceTerminal[], int32 idleState, int32 initialDelay, int32 lowTicks, int32 highTicks); int32 __CFUNC DAQmxGetAIChanCalCalDate (TaskHandle taskHandle, const char channelName[], uInt32 *year, uInt32 *month, uInt32 *day, uInt32 *hour, uInt32 *minute); int32 __CFUNC DAQmxSetAIChanCalCalDate (TaskHandle taskHandle, const char channelName[], uInt32 year, uInt32 month, uInt32 day, uInt32 hour, uInt32 minute); int32 __CFUNC DAQmxGetAIChanCalExpDate (TaskHandle taskHandle, const char channelName[], uInt32 *year, uInt32 *month, uInt32 *day, uInt32 *hour, uInt32 *minute); int32 __CFUNC DAQmxSetAIChanCalExpDate (TaskHandle taskHandle, const char channelName[], uInt32 year, uInt32 month, uInt32 day, uInt32 hour, uInt32 minute); int32 __CFUNC_C DAQmxGetChanAttribute (TaskHandle taskHandle, const char channel[], int32 attribute, void *value, ...); int32 __CFUNC_C DAQmxSetChanAttribute (TaskHandle taskHandle, const char channel[], int32 attribute, ...); int32 __CFUNC DAQmxResetChanAttribute (TaskHandle taskHandle, const char channel[], int32 attribute); /******************************************************/ /*** Timing ***/ /******************************************************/ // (Analog/Counter Timing) int32 __CFUNC DAQmxCfgSampClkTiming (TaskHandle taskHandle, const char source[], float64 rate, int32 activeEdge, int32 sampleMode, uInt64 sampsPerChan); // (Digital Timing) int32 __CFUNC DAQmxCfgHandshakingTiming (TaskHandle taskHandle, int32 sampleMode, uInt64 sampsPerChan); // (Burst Import Clock Timing) int32 __CFUNC DAQmxCfgBurstHandshakingTimingImportClock(TaskHandle taskHandle, int32 sampleMode, uInt64 sampsPerChan, float64 sampleClkRate, const char sampleClkSrc[], int32 sampleClkActiveEdge, int32 pauseWhen, int32 readyEventActiveLevel); // (Burst Export Clock Timing) int32 __CFUNC DAQmxCfgBurstHandshakingTimingExportClock(TaskHandle taskHandle, int32 sampleMode, uInt64 sampsPerChan, float64 sampleClkRate, const char sampleClkOutpTerm[], int32 sampleClkPulsePolarity, int32 pauseWhen, int32 readyEventActiveLevel); int32 __CFUNC DAQmxCfgChangeDetectionTiming (TaskHandle taskHandle, const char risingEdgeChan[], const char fallingEdgeChan[], int32 sampleMode, uInt64 sampsPerChan); // (Counter Timing) int32 __CFUNC DAQmxCfgImplicitTiming (TaskHandle taskHandle, int32 sampleMode, uInt64 sampsPerChan); // (Pipelined Sample Clock Timing) int32 __CFUNC DAQmxCfgPipelinedSampClkTiming (TaskHandle taskHandle, const char source[], float64 rate, int32 activeEdge, int32 sampleMode, uInt64 sampsPerChan); int32 __CFUNC_C DAQmxGetTimingAttribute (TaskHandle taskHandle, int32 attribute, void *value, ...); int32 __CFUNC_C DAQmxSetTimingAttribute (TaskHandle taskHandle, int32 attribute, ...); int32 __CFUNC DAQmxResetTimingAttribute (TaskHandle taskHandle, int32 attribute); int32 __CFUNC_C DAQmxGetTimingAttributeEx (TaskHandle taskHandle, const char deviceNames[], int32 attribute, void *value, ...); int32 __CFUNC_C DAQmxSetTimingAttributeEx (TaskHandle taskHandle, const char deviceNames[], int32 attribute, ...); int32 __CFUNC DAQmxResetTimingAttributeEx (TaskHandle taskHandle, const char deviceNames[], int32 attribute); /******************************************************/ /*** Triggering ***/ /******************************************************/ int32 __CFUNC DAQmxDisableStartTrig (TaskHandle taskHandle); int32 __CFUNC DAQmxCfgDigEdgeStartTrig (TaskHandle taskHandle, const char triggerSource[], int32 triggerEdge); int32 __CFUNC DAQmxCfgAnlgEdgeStartTrig (TaskHandle taskHandle, const char triggerSource[], int32 triggerSlope, float64 triggerLevel); int32 __CFUNC DAQmxCfgAnlgWindowStartTrig (TaskHandle taskHandle, const char triggerSource[], int32 triggerWhen, float64 windowTop, float64 windowBottom); int32 __CFUNC DAQmxCfgDigPatternStartTrig (TaskHandle taskHandle, const char triggerSource[], const char triggerPattern[], int32 triggerWhen); int32 __CFUNC DAQmxDisableRefTrig (TaskHandle taskHandle); int32 __CFUNC DAQmxCfgDigEdgeRefTrig (TaskHandle taskHandle, const char triggerSource[], int32 triggerEdge, uInt32 pretriggerSamples); int32 __CFUNC DAQmxCfgAnlgEdgeRefTrig (TaskHandle taskHandle, const char triggerSource[], int32 triggerSlope, float64 triggerLevel, uInt32 pretriggerSamples); int32 __CFUNC DAQmxCfgAnlgWindowRefTrig (TaskHandle taskHandle, const char triggerSource[], int32 triggerWhen, float64 windowTop, float64 windowBottom, uInt32 pretriggerSamples); int32 __CFUNC DAQmxCfgDigPatternRefTrig (TaskHandle taskHandle, const char triggerSource[], const char triggerPattern[], int32 triggerWhen, uInt32 pretriggerSamples); int32 __CFUNC DAQmxDisableAdvTrig (TaskHandle taskHandle); int32 __CFUNC DAQmxCfgDigEdgeAdvTrig (TaskHandle taskHandle, const char triggerSource[], int32 triggerEdge); int32 __CFUNC_C DAQmxGetTrigAttribute (TaskHandle taskHandle, int32 attribute, void *value, ...); int32 __CFUNC_C DAQmxSetTrigAttribute (TaskHandle taskHandle, int32 attribute, ...); int32 __CFUNC DAQmxResetTrigAttribute (TaskHandle taskHandle, int32 attribute); int32 __CFUNC DAQmxSendSoftwareTrigger (TaskHandle taskHandle, int32 triggerID); /******************************************************/ /*** Read Data ***/ /******************************************************/ int32 __CFUNC DAQmxReadAnalogF64 (TaskHandle taskHandle, int32 numSampsPerChan, float64 timeout, bool32 fillMode, float64 readArray[], uInt32 arraySizeInSamps, int32 *sampsPerChanRead, bool32 *reserved); int32 __CFUNC DAQmxReadAnalogScalarF64 (TaskHandle taskHandle, float64 timeout, float64 *value, bool32 *reserved); int32 __CFUNC DAQmxReadBinaryI16 (TaskHandle taskHandle, int32 numSampsPerChan, float64 timeout, bool32 fillMode, int16 readArray[], uInt32 arraySizeInSamps, int32 *sampsPerChanRead, bool32 *reserved); int32 __CFUNC DAQmxReadBinaryU16 (TaskHandle taskHandle, int32 numSampsPerChan, float64 timeout, bool32 fillMode, uInt16 readArray[], uInt32 arraySizeInSamps, int32 *sampsPerChanRead, bool32 *reserved); int32 __CFUNC DAQmxReadBinaryI32 (TaskHandle taskHandle, int32 numSampsPerChan, float64 timeout, bool32 fillMode, int32 readArray[], uInt32 arraySizeInSamps, int32 *sampsPerChanRead, bool32 *reserved); int32 __CFUNC DAQmxReadBinaryU32 (TaskHandle taskHandle, int32 numSampsPerChan, float64 timeout, bool32 fillMode, uInt32 readArray[], uInt32 arraySizeInSamps, int32 *sampsPerChanRead, bool32 *reserved); int32 __CFUNC DAQmxReadDigitalU8 (TaskHandle taskHandle, int32 numSampsPerChan, float64 timeout, bool32 fillMode, uInt8 readArray[], uInt32 arraySizeInSamps, int32 *sampsPerChanRead, bool32 *reserved); int32 __CFUNC DAQmxReadDigitalU16 (TaskHandle taskHandle, int32 numSampsPerChan, float64 timeout, bool32 fillMode, uInt16 readArray[], uInt32 arraySizeInSamps, int32 *sampsPerChanRead, bool32 *reserved); int32 __CFUNC DAQmxReadDigitalU32 (TaskHandle taskHandle, int32 numSampsPerChan, float64 timeout, bool32 fillMode, uInt32 readArray[], uInt32 arraySizeInSamps, int32 *sampsPerChanRead, bool32 *reserved); int32 __CFUNC DAQmxReadDigitalScalarU32 (TaskHandle taskHandle, float64 timeout, uInt32 *value, bool32 *reserved); int32 __CFUNC DAQmxReadDigitalLines (TaskHandle taskHandle, int32 numSampsPerChan, float64 timeout, bool32 fillMode, uInt8 readArray[], uInt32 arraySizeInBytes, int32 *sampsPerChanRead, int32 *numBytesPerSamp, bool32 *reserved); int32 __CFUNC DAQmxReadCounterF64 (TaskHandle taskHandle, int32 numSampsPerChan, float64 timeout, float64 readArray[], uInt32 arraySizeInSamps, int32 *sampsPerChanRead, bool32 *reserved); int32 __CFUNC DAQmxReadCounterU32 (TaskHandle taskHandle, int32 numSampsPerChan, float64 timeout, uInt32 readArray[], uInt32 arraySizeInSamps, int32 *sampsPerChanRead, bool32 *reserved); int32 __CFUNC DAQmxReadCounterScalarF64 (TaskHandle taskHandle, float64 timeout, float64 *value, bool32 *reserved); int32 __CFUNC DAQmxReadCounterScalarU32 (TaskHandle taskHandle, float64 timeout, uInt32 *value, bool32 *reserved); int32 __CFUNC DAQmxReadCtrFreq (TaskHandle taskHandle, int32 numSampsPerChan, float64 timeout, bool32 interleaved, float64 readArrayFrequency[], float64 readArrayDutyCycle[], uInt32 arraySizeInSamps, int32 *sampsPerChanRead, bool32 *reserved); int32 __CFUNC DAQmxReadCtrTime (TaskHandle taskHandle, int32 numSampsPerChan, float64 timeout, bool32 interleaved, float64 readArrayHighTime[], float64 readArrayLowTime[], uInt32 arraySizeInSamps, int32 *sampsPerChanRead, bool32 *reserved); int32 __CFUNC DAQmxReadCtrTicks (TaskHandle taskHandle, int32 numSampsPerChan, float64 timeout, bool32 interleaved, uInt32 readArrayHighTicks[], uInt32 readArrayLowTicks[], uInt32 arraySizeInSamps, int32 *sampsPerChanRead, bool32 *reserved); int32 __CFUNC DAQmxReadCtrFreqScalar (TaskHandle taskHandle, float64 timeout, float64 *frequency, float64 *dutyCycle, bool32 *reserved); int32 __CFUNC DAQmxReadCtrTimeScalar (TaskHandle taskHandle, float64 timeout, float64 *highTime, float64 *lowTime, bool32 *reserved); int32 __CFUNC DAQmxReadCtrTicksScalar (TaskHandle taskHandle, float64 timeout, uInt32 *highTicks, uInt32 *lowTicks, bool32 *reserved); int32 __CFUNC DAQmxReadRaw (TaskHandle taskHandle, int32 numSampsPerChan, float64 timeout, void *readArray, uInt32 arraySizeInBytes, int32 *sampsRead, int32 *numBytesPerSamp, bool32 *reserved); int32 __CFUNC DAQmxGetNthTaskReadChannel (TaskHandle taskHandle, uInt32 index, char buffer[], int32 bufferSize); int32 __CFUNC_C DAQmxGetReadAttribute (TaskHandle taskHandle, int32 attribute, void *value, ...); int32 __CFUNC_C DAQmxSetReadAttribute (TaskHandle taskHandle, int32 attribute, ...); int32 __CFUNC DAQmxResetReadAttribute (TaskHandle taskHandle, int32 attribute); int32 __CFUNC DAQmxConfigureLogging (TaskHandle taskHandle, const char filePath[], int32 loggingMode, const char groupName[], int32 operation); /******************************************************/ /*** Write Data ***/ /******************************************************/ int32 __CFUNC DAQmxWriteAnalogF64 (TaskHandle taskHandle, int32 numSampsPerChan, bool32 autoStart, float64 timeout, bool32 dataLayout, const float64 writeArray[], int32 *sampsPerChanWritten, bool32 *reserved); int32 __CFUNC DAQmxWriteAnalogScalarF64 (TaskHandle taskHandle, bool32 autoStart, float64 timeout, float64 value, bool32 *reserved); int32 __CFUNC DAQmxWriteBinaryI16 (TaskHandle taskHandle, int32 numSampsPerChan, bool32 autoStart, float64 timeout, bool32 dataLayout, const int16 writeArray[], int32 *sampsPerChanWritten, bool32 *reserved); int32 __CFUNC DAQmxWriteBinaryU16 (TaskHandle taskHandle, int32 numSampsPerChan, bool32 autoStart, float64 timeout, bool32 dataLayout, const uInt16 writeArray[], int32 *sampsPerChanWritten, bool32 *reserved); int32 __CFUNC DAQmxWriteBinaryI32 (TaskHandle taskHandle, int32 numSampsPerChan, bool32 autoStart, float64 timeout, bool32 dataLayout, const int32 writeArray[], int32 *sampsPerChanWritten, bool32 *reserved); int32 __CFUNC DAQmxWriteBinaryU32 (TaskHandle taskHandle, int32 numSampsPerChan, bool32 autoStart, float64 timeout, bool32 dataLayout, const uInt32 writeArray[], int32 *sampsPerChanWritten, bool32 *reserved); int32 __CFUNC DAQmxWriteDigitalU8 (TaskHandle taskHandle, int32 numSampsPerChan, bool32 autoStart, float64 timeout, bool32 dataLayout, const uInt8 writeArray[], int32 *sampsPerChanWritten, bool32 *reserved); int32 __CFUNC DAQmxWriteDigitalU16 (TaskHandle taskHandle, int32 numSampsPerChan, bool32 autoStart, float64 timeout, bool32 dataLayout, const uInt16 writeArray[], int32 *sampsPerChanWritten, bool32 *reserved); int32 __CFUNC DAQmxWriteDigitalU32 (TaskHandle taskHandle, int32 numSampsPerChan, bool32 autoStart, float64 timeout, bool32 dataLayout, const uInt32 writeArray[], int32 *sampsPerChanWritten, bool32 *reserved); int32 __CFUNC DAQmxWriteDigitalScalarU32 (TaskHandle taskHandle, bool32 autoStart, float64 timeout, uInt32 value, bool32 *reserved); int32 __CFUNC DAQmxWriteDigitalLines (TaskHandle taskHandle, int32 numSampsPerChan, bool32 autoStart, float64 timeout, bool32 dataLayout, const uInt8 writeArray[], int32 *sampsPerChanWritten, bool32 *reserved); int32 __CFUNC DAQmxWriteCtrFreq (TaskHandle taskHandle, int32 numSampsPerChan, bool32 autoStart, float64 timeout, bool32 dataLayout, const float64 frequency[], const float64 dutyCycle[], int32 *numSampsPerChanWritten, bool32 *reserved); int32 __CFUNC DAQmxWriteCtrFreqScalar (TaskHandle taskHandle, bool32 autoStart, float64 timeout, float64 frequency, float64 dutyCycle, bool32 *reserved); int32 __CFUNC DAQmxWriteCtrTime (TaskHandle taskHandle, int32 numSampsPerChan, bool32 autoStart, float64 timeout, bool32 dataLayout, const float64 highTime[], const float64 lowTime[], int32 *numSampsPerChanWritten, bool32 *reserved); int32 __CFUNC DAQmxWriteCtrTimeScalar (TaskHandle taskHandle, bool32 autoStart, float64 timeout, float64 highTime, float64 lowTime, bool32 *reserved); int32 __CFUNC DAQmxWriteCtrTicks (TaskHandle taskHandle, int32 numSampsPerChan, bool32 autoStart, float64 timeout, bool32 dataLayout, const uInt32 highTicks[], const uInt32 lowTicks[], int32 *numSampsPerChanWritten, bool32 *reserved); int32 __CFUNC DAQmxWriteCtrTicksScalar (TaskHandle taskHandle, bool32 autoStart, float64 timeout, uInt32 highTicks, uInt32 lowTicks, bool32 *reserved); int32 __CFUNC DAQmxWriteRaw (TaskHandle taskHandle, int32 numSamps, bool32 autoStart, float64 timeout, const void *writeArray, int32 *sampsPerChanWritten, bool32 *reserved); int32 __CFUNC_C DAQmxGetWriteAttribute (TaskHandle taskHandle, int32 attribute, void *value, ...); int32 __CFUNC_C DAQmxSetWriteAttribute (TaskHandle taskHandle, int32 attribute, ...); int32 __CFUNC DAQmxResetWriteAttribute (TaskHandle taskHandle, int32 attribute); /******************************************************/ /*** Events & Signals ***/ /******************************************************/ // Terminology: For hardware, "signals" comprise "clocks," "triggers," and (output) "events". // Software signals or events are not presently supported. // For possible values for parameter signalID see value set Signal in Values section above. int32 __CFUNC DAQmxExportSignal (TaskHandle taskHandle, int32 signalID, const char outputTerminal[]); int32 __CFUNC_C DAQmxGetExportedSignalAttribute(TaskHandle taskHandle, int32 attribute, void *value, ...); int32 __CFUNC_C DAQmxSetExportedSignalAttribute(TaskHandle taskHandle, int32 attribute, ...); int32 __CFUNC DAQmxResetExportedSignalAttribute(TaskHandle taskHandle, int32 attribute); /******************************************************/ /*** Scale Configurations ***/ /******************************************************/ int32 __CFUNC DAQmxCreateLinScale (const char name[], float64 slope, float64 yIntercept, int32 preScaledUnits, const char scaledUnits[]); int32 __CFUNC DAQmxCreateMapScale (const char name[], float64 prescaledMin, float64 prescaledMax, float64 scaledMin, float64 scaledMax, int32 preScaledUnits, const char scaledUnits[]); int32 __CFUNC DAQmxCreatePolynomialScale (const char name[], const float64 forwardCoeffs[], uInt32 numForwardCoeffsIn, const float64 reverseCoeffs[], uInt32 numReverseCoeffsIn, int32 preScaledUnits, const char scaledUnits[]); int32 __CFUNC DAQmxCreateTableScale (const char name[], const float64 prescaledVals[], uInt32 numPrescaledValsIn, const float64 scaledVals[], uInt32 numScaledValsIn, int32 preScaledUnits, const char scaledUnits[]); int32 __CFUNC DAQmxCalculateReversePolyCoeff (const float64 forwardCoeffs[], uInt32 numForwardCoeffsIn, float64 minValX, float64 maxValX, int32 numPointsToCompute, int32 reversePolyOrder, float64 reverseCoeffs[]); int32 __CFUNC_C DAQmxGetScaleAttribute (const char scaleName[], int32 attribute, void *value, ...); int32 __CFUNC_C DAQmxSetScaleAttribute (const char scaleName[], int32 attribute, ...); /******************************************************/ /*** Buffer Configurations ***/ /******************************************************/ int32 __CFUNC DAQmxCfgInputBuffer (TaskHandle taskHandle, uInt32 numSampsPerChan); int32 __CFUNC DAQmxCfgOutputBuffer (TaskHandle taskHandle, uInt32 numSampsPerChan); int32 __CFUNC_C DAQmxGetBufferAttribute (TaskHandle taskHandle, int32 attribute, void *value); int32 __CFUNC_C DAQmxSetBufferAttribute (TaskHandle taskHandle, int32 attribute, ...); int32 __CFUNC DAQmxResetBufferAttribute (TaskHandle taskHandle, int32 attribute); /******************************************************/ /*** Switch Functions ***/ /******************************************************/ int32 __CFUNC DAQmxSwitchCreateScanList (const char scanList[], TaskHandle *taskHandle); int32 __CFUNC DAQmxSwitchConnect (const char switchChannel1[], const char switchChannel2[], bool32 waitForSettling); int32 __CFUNC DAQmxSwitchConnectMulti (const char connectionList[], bool32 waitForSettling); int32 __CFUNC DAQmxSwitchDisconnect (const char switchChannel1[], const char switchChannel2[], bool32 waitForSettling); int32 __CFUNC DAQmxSwitchDisconnectMulti (const char connectionList[], bool32 waitForSettling); int32 __CFUNC DAQmxSwitchDisconnectAll (const char deviceName[], bool32 waitForSettling); // Switch Topologies #define DAQmx_Val_Switch_Topology_Configured_Topology "Configured Topology" // Configured Topology #define DAQmx_Val_Switch_Topology_1127_1_Wire_64x1_Mux "1127/1-Wire 64x1 Mux" // 1127/1-Wire 64x1 Mux #define DAQmx_Val_Switch_Topology_1127_2_Wire_32x1_Mux "1127/2-Wire 32x1 Mux" // 1127/2-Wire 32x1 Mux #define DAQmx_Val_Switch_Topology_1127_2_Wire_4x8_Matrix "1127/2-Wire 4x8 Matrix" // 1127/2-Wire 4x8 Matrix #define DAQmx_Val_Switch_Topology_1127_4_Wire_16x1_Mux "1127/4-Wire 16x1 Mux" // 1127/4-Wire 16x1 Mux #define DAQmx_Val_Switch_Topology_1127_Independent "1127/Independent" // 1127/Independent #define DAQmx_Val_Switch_Topology_1128_1_Wire_64x1_Mux "1128/1-Wire 64x1 Mux" // 1128/1-Wire 64x1 Mux #define DAQmx_Val_Switch_Topology_1128_2_Wire_32x1_Mux "1128/2-Wire 32x1 Mux" // 1128/2-Wire 32x1 Mux #define DAQmx_Val_Switch_Topology_1128_2_Wire_4x8_Matrix "1128/2-Wire 4x8 Matrix" // 1128/2-Wire 4x8 Matrix #define DAQmx_Val_Switch_Topology_1128_4_Wire_16x1_Mux "1128/4-Wire 16x1 Mux" // 1128/4-Wire 16x1 Mux #define DAQmx_Val_Switch_Topology_1128_Independent "1128/Independent" // 1128/Independent #define DAQmx_Val_Switch_Topology_1129_2_Wire_16x16_Matrix "1129/2-Wire 16x16 Matrix" // 1129/2-Wire 16x16 Matrix #define DAQmx_Val_Switch_Topology_1129_2_Wire_8x32_Matrix "1129/2-Wire 8x32 Matrix" // 1129/2-Wire 8x32 Matrix #define DAQmx_Val_Switch_Topology_1129_2_Wire_4x64_Matrix "1129/2-Wire 4x64 Matrix" // 1129/2-Wire 4x64 Matrix #define DAQmx_Val_Switch_Topology_1129_2_Wire_Dual_8x16_Matrix "1129/2-Wire Dual 8x16 Matrix" // 1129/2-Wire Dual 8x16 Matrix #define DAQmx_Val_Switch_Topology_1129_2_Wire_Dual_4x32_Matrix "1129/2-Wire Dual 4x32 Matrix" // 1129/2-Wire Dual 4x32 Matrix #define DAQmx_Val_Switch_Topology_1129_2_Wire_Quad_4x16_Matrix "1129/2-Wire Quad 4x16 Matrix" // 1129/2-Wire Quad 4x16 Matrix #define DAQmx_Val_Switch_Topology_1130_1_Wire_256x1_Mux "1130/1-Wire 256x1 Mux" // 1130/1-Wire 256x1 Mux #define DAQmx_Val_Switch_Topology_1130_1_Wire_Dual_128x1_Mux "1130/1-Wire Dual 128x1 Mux" // 1130/1-Wire Dual 128x1 Mux #define DAQmx_Val_Switch_Topology_1130_2_Wire_128x1_Mux "1130/2-Wire 128x1 Mux" // 1130/2-Wire 128x1 Mux #define DAQmx_Val_Switch_Topology_1130_4_Wire_64x1_Mux "1130/4-Wire 64x1 Mux" // 1130/4-Wire 64x1 Mux #define DAQmx_Val_Switch_Topology_1130_1_Wire_4x64_Matrix "1130/1-Wire 4x64 Matrix" // 1130/1-Wire 4x64 Matrix #define DAQmx_Val_Switch_Topology_1130_1_Wire_8x32_Matrix "1130/1-Wire 8x32 Matrix" // 1130/1-Wire 8x32 Matrix #define DAQmx_Val_Switch_Topology_1130_1_Wire_Octal_32x1_Mux "1130/1-Wire Octal 32x1 Mux" // 1130/1-Wire Octal 32x1 Mux #define DAQmx_Val_Switch_Topology_1130_1_Wire_Quad_64x1_Mux "1130/1-Wire Quad 64x1 Mux" // 1130/1-Wire Quad 64x1 Mux #define DAQmx_Val_Switch_Topology_1130_1_Wire_Sixteen_16x1_Mux "1130/1-Wire Sixteen 16x1 Mux" // 1130/1-Wire Sixteen 16x1 Mux #define DAQmx_Val_Switch_Topology_1130_2_Wire_4x32_Matrix "1130/2-Wire 4x32 Matrix" // 1130/2-Wire 4x32 Matrix #define DAQmx_Val_Switch_Topology_1130_2_Wire_Octal_16x1_Mux "1130/2-Wire Octal 16x1 Mux" // 1130/2-Wire Octal 16x1 Mux #define DAQmx_Val_Switch_Topology_1130_2_Wire_Quad_32x1_Mux "1130/2-Wire Quad 32x1 Mux" // 1130/2-Wire Quad 32x1 Mux #define DAQmx_Val_Switch_Topology_1130_4_Wire_Quad_16x1_Mux "1130/4-Wire Quad 16x1 Mux" // 1130/4-Wire Quad 16x1 Mux #define DAQmx_Val_Switch_Topology_1130_Independent "1130/Independent" // 1130/Independent #define DAQmx_Val_Switch_Topology_1160_16_SPDT "1160/16-SPDT" // 1160/16-SPDT #define DAQmx_Val_Switch_Topology_1161_8_SPDT "1161/8-SPDT" // 1161/8-SPDT #define DAQmx_Val_Switch_Topology_1163R_Octal_4x1_Mux "1163R/Octal 4x1 Mux" // 1163R/Octal 4x1 Mux #define DAQmx_Val_Switch_Topology_1166_32_SPDT "1166/32-SPDT" // 1166/32-SPDT #define DAQmx_Val_Switch_Topology_1166_16_DPDT "1166/16-DPDT" // 1166/16-DPDT #define DAQmx_Val_Switch_Topology_1167_Independent "1167/Independent" // 1167/Independent #define DAQmx_Val_Switch_Topology_1169_100_SPST "1169/100-SPST" // 1169/100-SPST #define DAQmx_Val_Switch_Topology_1169_50_DPST "1169/50-DPST" // 1169/50-DPST #define DAQmx_Val_Switch_Topology_1175_1_Wire_196x1_Mux "1175/1-Wire 196x1 Mux" // 1175/1-Wire 196x1 Mux #define DAQmx_Val_Switch_Topology_1175_2_Wire_98x1_Mux "1175/2-Wire 98x1 Mux" // 1175/2-Wire 98x1 Mux #define DAQmx_Val_Switch_Topology_1175_2_Wire_95x1_Mux "1175/2-Wire 95x1 Mux" // 1175/2-Wire 95x1 Mux #define DAQmx_Val_Switch_Topology_1190_Quad_4x1_Mux "1190/Quad 4x1 Mux" // 1190/Quad 4x1 Mux #define DAQmx_Val_Switch_Topology_1191_Quad_4x1_Mux "1191/Quad 4x1 Mux" // 1191/Quad 4x1 Mux #define DAQmx_Val_Switch_Topology_1192_8_SPDT "1192/8-SPDT" // 1192/8-SPDT #define DAQmx_Val_Switch_Topology_1193_32x1_Mux "1193/32x1 Mux" // 1193/32x1 Mux #define DAQmx_Val_Switch_Topology_1193_Dual_16x1_Mux "1193/Dual 16x1 Mux" // 1193/Dual 16x1 Mux #define DAQmx_Val_Switch_Topology_1193_Quad_8x1_Mux "1193/Quad 8x1 Mux" // 1193/Quad 8x1 Mux #define DAQmx_Val_Switch_Topology_1193_16x1_Terminated_Mux "1193/16x1 Terminated Mux" // 1193/16x1 Terminated Mux #define DAQmx_Val_Switch_Topology_1193_Dual_8x1_Terminated_Mux "1193/Dual 8x1 Terminated Mux" // 1193/Dual 8x1 Terminated Mux #define DAQmx_Val_Switch_Topology_1193_Quad_4x1_Terminated_Mux "1193/Quad 4x1 Terminated Mux" // 1193/Quad 4x1 Terminated Mux #define DAQmx_Val_Switch_Topology_1193_Independent "1193/Independent" // 1193/Independent #define DAQmx_Val_Switch_Topology_1194_Quad_4x1_Mux "1194/Quad 4x1 Mux" // 1194/Quad 4x1 Mux #define DAQmx_Val_Switch_Topology_1195_Quad_4x1_Mux "1195/Quad 4x1 Mux" // 1195/Quad 4x1 Mux #define DAQmx_Val_Switch_Topology_2501_1_Wire_48x1_Mux "2501/1-Wire 48x1 Mux" // 2501/1-Wire 48x1 Mux #define DAQmx_Val_Switch_Topology_2501_1_Wire_48x1_Amplified_Mux "2501/1-Wire 48x1 Amplified Mux" // 2501/1-Wire 48x1 Amplified Mux #define DAQmx_Val_Switch_Topology_2501_2_Wire_24x1_Mux "2501/2-Wire 24x1 Mux" // 2501/2-Wire 24x1 Mux #define DAQmx_Val_Switch_Topology_2501_2_Wire_24x1_Amplified_Mux "2501/2-Wire 24x1 Amplified Mux" // 2501/2-Wire 24x1 Amplified Mux #define DAQmx_Val_Switch_Topology_2501_2_Wire_Dual_12x1_Mux "2501/2-Wire Dual 12x1 Mux" // 2501/2-Wire Dual 12x1 Mux #define DAQmx_Val_Switch_Topology_2501_2_Wire_Quad_6x1_Mux "2501/2-Wire Quad 6x1 Mux" // 2501/2-Wire Quad 6x1 Mux #define DAQmx_Val_Switch_Topology_2501_2_Wire_4x6_Matrix "2501/2-Wire 4x6 Matrix" // 2501/2-Wire 4x6 Matrix #define DAQmx_Val_Switch_Topology_2501_4_Wire_12x1_Mux "2501/4-Wire 12x1 Mux" // 2501/4-Wire 12x1 Mux #define DAQmx_Val_Switch_Topology_2503_1_Wire_48x1_Mux "2503/1-Wire 48x1 Mux" // 2503/1-Wire 48x1 Mux #define DAQmx_Val_Switch_Topology_2503_2_Wire_24x1_Mux "2503/2-Wire 24x1 Mux" // 2503/2-Wire 24x1 Mux #define DAQmx_Val_Switch_Topology_2503_2_Wire_Dual_12x1_Mux "2503/2-Wire Dual 12x1 Mux" // 2503/2-Wire Dual 12x1 Mux #define DAQmx_Val_Switch_Topology_2503_2_Wire_Quad_6x1_Mux "2503/2-Wire Quad 6x1 Mux" // 2503/2-Wire Quad 6x1 Mux #define DAQmx_Val_Switch_Topology_2503_2_Wire_4x6_Matrix "2503/2-Wire 4x6 Matrix" // 2503/2-Wire 4x6 Matrix #define DAQmx_Val_Switch_Topology_2503_4_Wire_12x1_Mux "2503/4-Wire 12x1 Mux" // 2503/4-Wire 12x1 Mux #define DAQmx_Val_Switch_Topology_2510_Independent "2510/Independent" // 2510/Independent #define DAQmx_Val_Switch_Topology_2512_Independent "2512/Independent" // 2512/Independent #define DAQmx_Val_Switch_Topology_2514_Independent "2514/Independent" // 2514/Independent #define DAQmx_Val_Switch_Topology_2515_Independent "2515/Independent" // 2515/Independent #define DAQmx_Val_Switch_Topology_2527_1_Wire_64x1_Mux "2527/1-Wire 64x1 Mux" // 2527/1-Wire 64x1 Mux #define DAQmx_Val_Switch_Topology_2527_1_Wire_Dual_32x1_Mux "2527/1-Wire Dual 32x1 Mux" // 2527/1-Wire Dual 32x1 Mux #define DAQmx_Val_Switch_Topology_2527_2_Wire_32x1_Mux "2527/2-Wire 32x1 Mux" // 2527/2-Wire 32x1 Mux #define DAQmx_Val_Switch_Topology_2527_2_Wire_Dual_16x1_Mux "2527/2-Wire Dual 16x1 Mux" // 2527/2-Wire Dual 16x1 Mux #define DAQmx_Val_Switch_Topology_2527_4_Wire_16x1_Mux "2527/4-Wire 16x1 Mux" // 2527/4-Wire 16x1 Mux #define DAQmx_Val_Switch_Topology_2527_Independent "2527/Independent" // 2527/Independent #define DAQmx_Val_Switch_Topology_2529_2_Wire_8x16_Matrix "2529/2-Wire 8x16 Matrix" // 2529/2-Wire 8x16 Matrix #define DAQmx_Val_Switch_Topology_2529_2_Wire_4x32_Matrix "2529/2-Wire 4x32 Matrix" // 2529/2-Wire 4x32 Matrix #define DAQmx_Val_Switch_Topology_2529_2_Wire_Dual_4x16_Matrix "2529/2-Wire Dual 4x16 Matrix" // 2529/2-Wire Dual 4x16 Matrix #define DAQmx_Val_Switch_Topology_2530_1_Wire_128x1_Mux "2530/1-Wire 128x1 Mux" // 2530/1-Wire 128x1 Mux #define DAQmx_Val_Switch_Topology_2530_1_Wire_Dual_64x1_Mux "2530/1-Wire Dual 64x1 Mux" // 2530/1-Wire Dual 64x1 Mux #define DAQmx_Val_Switch_Topology_2530_2_Wire_64x1_Mux "2530/2-Wire 64x1 Mux" // 2530/2-Wire 64x1 Mux #define DAQmx_Val_Switch_Topology_2530_4_Wire_32x1_Mux "2530/4-Wire 32x1 Mux" // 2530/4-Wire 32x1 Mux #define DAQmx_Val_Switch_Topology_2530_1_Wire_4x32_Matrix "2530/1-Wire 4x32 Matrix" // 2530/1-Wire 4x32 Matrix #define DAQmx_Val_Switch_Topology_2530_1_Wire_8x16_Matrix "2530/1-Wire 8x16 Matrix" // 2530/1-Wire 8x16 Matrix #define DAQmx_Val_Switch_Topology_2530_1_Wire_Octal_16x1_Mux "2530/1-Wire Octal 16x1 Mux" // 2530/1-Wire Octal 16x1 Mux #define DAQmx_Val_Switch_Topology_2530_1_Wire_Quad_32x1_Mux "2530/1-Wire Quad 32x1 Mux" // 2530/1-Wire Quad 32x1 Mux #define DAQmx_Val_Switch_Topology_2530_2_Wire_4x16_Matrix "2530/2-Wire 4x16 Matrix" // 2530/2-Wire 4x16 Matrix #define DAQmx_Val_Switch_Topology_2530_2_Wire_Dual_32x1_Mux "2530/2-Wire Dual 32x1 Mux" // 2530/2-Wire Dual 32x1 Mux #define DAQmx_Val_Switch_Topology_2530_2_Wire_Quad_16x1_Mux "2530/2-Wire Quad 16x1 Mux" // 2530/2-Wire Quad 16x1 Mux #define DAQmx_Val_Switch_Topology_2530_4_Wire_Dual_16x1_Mux "2530/4-Wire Dual 16x1 Mux" // 2530/4-Wire Dual 16x1 Mux #define DAQmx_Val_Switch_Topology_2530_Independent "2530/Independent" // 2530/Independent #define DAQmx_Val_Switch_Topology_2531_1_Wire_4x128_Matrix "2531/1-Wire 4x128 Matrix" // 2531/1-Wire 4x128 Matrix #define DAQmx_Val_Switch_Topology_2531_1_Wire_8x64_Matrix "2531/1-Wire 8x64 Matrix" // 2531/1-Wire 8x64 Matrix #define DAQmx_Val_Switch_Topology_2531_1_Wire_Dual_4x64_Matrix "2531/1-Wire Dual 4x64 Matrix" // 2531/1-Wire Dual 4x64 Matrix #define DAQmx_Val_Switch_Topology_2531_1_Wire_Dual_8x32_Matrix "2531/1-Wire Dual 8x32 Matrix" // 2531/1-Wire Dual 8x32 Matrix #define DAQmx_Val_Switch_Topology_2532_1_Wire_16x32_Matrix "2532/1-Wire 16x32 Matrix" // 2532/1-Wire 16x32 Matrix #define DAQmx_Val_Switch_Topology_2532_1_Wire_4x128_Matrix "2532/1-Wire 4x128 Matrix" // 2532/1-Wire 4x128 Matrix #define DAQmx_Val_Switch_Topology_2532_1_Wire_8x64_Matrix "2532/1-Wire 8x64 Matrix" // 2532/1-Wire 8x64 Matrix #define DAQmx_Val_Switch_Topology_2532_1_Wire_Dual_16x16_Matrix "2532/1-Wire Dual 16x16 Matrix" // 2532/1-Wire Dual 16x16 Matrix #define DAQmx_Val_Switch_Topology_2532_1_Wire_Dual_4x64_Matrix "2532/1-Wire Dual 4x64 Matrix" // 2532/1-Wire Dual 4x64 Matrix #define DAQmx_Val_Switch_Topology_2532_1_Wire_Dual_8x32_Matrix "2532/1-Wire Dual 8x32 Matrix" // 2532/1-Wire Dual 8x32 Matrix #define DAQmx_Val_Switch_Topology_2532_1_Wire_Sixteen_2x16_Matrix "2532/1-Wire Sixteen 2x16 Matrix" // 2532/1-Wire Sixteen 2x16 Matrix #define DAQmx_Val_Switch_Topology_2532_2_Wire_16x16_Matrix "2532/2-Wire 16x16 Matrix" // 2532/2-Wire 16x16 Matrix #define DAQmx_Val_Switch_Topology_2532_2_Wire_4x64_Matrix "2532/2-Wire 4x64 Matrix" // 2532/2-Wire 4x64 Matrix #define DAQmx_Val_Switch_Topology_2532_2_Wire_8x32_Matrix "2532/2-Wire 8x32 Matrix" // 2532/2-Wire 8x32 Matrix #define DAQmx_Val_Switch_Topology_2533_1_Wire_4x64_Matrix "2533/1-Wire 4x64 Matrix" // 2533/1-Wire 4x64 Matrix #define DAQmx_Val_Switch_Topology_2534_1_Wire_8x32_Matrix "2534/1-Wire 8x32 Matrix" // 2534/1-Wire 8x32 Matrix #define DAQmx_Val_Switch_Topology_2535_1_Wire_4x136_Matrix "2535/1-Wire 4x136 Matrix" // 2535/1-Wire 4x136 Matrix #define DAQmx_Val_Switch_Topology_2536_1_Wire_8x68_Matrix "2536/1-Wire 8x68 Matrix" // 2536/1-Wire 8x68 Matrix #define DAQmx_Val_Switch_Topology_2545_4x1_Terminated_Mux "2545/4x1 Terminated Mux" // 2545/4x1 Terminated Mux #define DAQmx_Val_Switch_Topology_2546_Dual_4x1_Mux "2546/Dual 4x1 Mux" // 2546/Dual 4x1 Mux #define DAQmx_Val_Switch_Topology_2547_8x1_Mux "2547/8x1 Mux" // 2547/8x1 Mux #define DAQmx_Val_Switch_Topology_2548_4_SPDT "2548/4-SPDT" // 2548/4-SPDT #define DAQmx_Val_Switch_Topology_2549_Terminated_2_SPDT "2549/Terminated 2-SPDT" // 2549/Terminated 2-SPDT #define DAQmx_Val_Switch_Topology_2554_4x1_Mux "2554/4x1 Mux" // 2554/4x1 Mux #define DAQmx_Val_Switch_Topology_2555_4x1_Terminated_Mux "2555/4x1 Terminated Mux" // 2555/4x1 Terminated Mux #define DAQmx_Val_Switch_Topology_2556_Dual_4x1_Mux "2556/Dual 4x1 Mux" // 2556/Dual 4x1 Mux #define DAQmx_Val_Switch_Topology_2557_8x1_Mux "2557/8x1 Mux" // 2557/8x1 Mux #define DAQmx_Val_Switch_Topology_2558_4_SPDT "2558/4-SPDT" // 2558/4-SPDT #define DAQmx_Val_Switch_Topology_2559_Terminated_2_SPDT "2559/Terminated 2-SPDT" // 2559/Terminated 2-SPDT #define DAQmx_Val_Switch_Topology_2564_16_SPST "2564/16-SPST" // 2564/16-SPST #define DAQmx_Val_Switch_Topology_2564_8_DPST "2564/8-DPST" // 2564/8-DPST #define DAQmx_Val_Switch_Topology_2565_16_SPST "2565/16-SPST" // 2565/16-SPST #define DAQmx_Val_Switch_Topology_2566_16_SPDT "2566/16-SPDT" // 2566/16-SPDT #define DAQmx_Val_Switch_Topology_2566_8_DPDT "2566/8-DPDT" // 2566/8-DPDT #define DAQmx_Val_Switch_Topology_2567_Independent "2567/Independent" // 2567/Independent #define DAQmx_Val_Switch_Topology_2568_31_SPST "2568/31-SPST" // 2568/31-SPST #define DAQmx_Val_Switch_Topology_2568_15_DPST "2568/15-DPST" // 2568/15-DPST #define DAQmx_Val_Switch_Topology_2569_100_SPST "2569/100-SPST" // 2569/100-SPST #define DAQmx_Val_Switch_Topology_2569_50_DPST "2569/50-DPST" // 2569/50-DPST #define DAQmx_Val_Switch_Topology_2570_40_SPDT "2570/40-SPDT" // 2570/40-SPDT #define DAQmx_Val_Switch_Topology_2570_20_DPDT "2570/20-DPDT" // 2570/20-DPDT #define DAQmx_Val_Switch_Topology_2575_1_Wire_196x1_Mux "2575/1-Wire 196x1 Mux" // 2575/1-Wire 196x1 Mux #define DAQmx_Val_Switch_Topology_2575_2_Wire_98x1_Mux "2575/2-Wire 98x1 Mux" // 2575/2-Wire 98x1 Mux #define DAQmx_Val_Switch_Topology_2575_2_Wire_95x1_Mux "2575/2-Wire 95x1 Mux" // 2575/2-Wire 95x1 Mux #define DAQmx_Val_Switch_Topology_2576_2_Wire_64x1_Mux "2576/2-Wire 64x1 Mux" // 2576/2-Wire 64x1 Mux #define DAQmx_Val_Switch_Topology_2576_2_Wire_Dual_32x1_Mux "2576/2-Wire Dual 32x1 Mux" // 2576/2-Wire Dual 32x1 Mux #define DAQmx_Val_Switch_Topology_2576_2_Wire_Octal_8x1_Mux "2576/2-Wire Octal 8x1 Mux" // 2576/2-Wire Octal 8x1 Mux #define DAQmx_Val_Switch_Topology_2576_2_Wire_Quad_16x1_Mux "2576/2-Wire Quad 16x1 Mux" // 2576/2-Wire Quad 16x1 Mux #define DAQmx_Val_Switch_Topology_2576_2_Wire_Sixteen_4x1_Mux "2576/2-Wire Sixteen 4x1 Mux" // 2576/2-Wire Sixteen 4x1 Mux #define DAQmx_Val_Switch_Topology_2576_Independent "2576/Independent" // 2576/Independent #define DAQmx_Val_Switch_Topology_2584_1_Wire_12x1_Mux "2584/1-Wire 12x1 Mux" // 2584/1-Wire 12x1 Mux #define DAQmx_Val_Switch_Topology_2584_1_Wire_Dual_6x1_Mux "2584/1-Wire Dual 6x1 Mux" // 2584/1-Wire Dual 6x1 Mux #define DAQmx_Val_Switch_Topology_2584_2_Wire_6x1_Mux "2584/2-Wire 6x1 Mux" // 2584/2-Wire 6x1 Mux #define DAQmx_Val_Switch_Topology_2584_Independent "2584/Independent" // 2584/Independent #define DAQmx_Val_Switch_Topology_2585_1_Wire_10x1_Mux "2585/1-Wire 10x1 Mux" // 2585/1-Wire 10x1 Mux #define DAQmx_Val_Switch_Topology_2586_10_SPST "2586/10-SPST" // 2586/10-SPST #define DAQmx_Val_Switch_Topology_2586_5_DPST "2586/5-DPST" // 2586/5-DPST #define DAQmx_Val_Switch_Topology_2590_4x1_Mux "2590/4x1 Mux" // 2590/4x1 Mux #define DAQmx_Val_Switch_Topology_2591_4x1_Mux "2591/4x1 Mux" // 2591/4x1 Mux #define DAQmx_Val_Switch_Topology_2593_16x1_Mux "2593/16x1 Mux" // 2593/16x1 Mux #define DAQmx_Val_Switch_Topology_2593_Dual_8x1_Mux "2593/Dual 8x1 Mux" // 2593/Dual 8x1 Mux #define DAQmx_Val_Switch_Topology_2593_8x1_Terminated_Mux "2593/8x1 Terminated Mux" // 2593/8x1 Terminated Mux #define DAQmx_Val_Switch_Topology_2593_Dual_4x1_Terminated_Mux "2593/Dual 4x1 Terminated Mux" // 2593/Dual 4x1 Terminated Mux #define DAQmx_Val_Switch_Topology_2593_Independent "2593/Independent" // 2593/Independent #define DAQmx_Val_Switch_Topology_2594_4x1_Mux "2594/4x1 Mux" // 2594/4x1 Mux #define DAQmx_Val_Switch_Topology_2595_4x1_Mux "2595/4x1 Mux" // 2595/4x1 Mux #define DAQmx_Val_Switch_Topology_2596_Dual_6x1_Mux "2596/Dual 6x1 Mux" // 2596/Dual 6x1 Mux #define DAQmx_Val_Switch_Topology_2597_6x1_Terminated_Mux "2597/6x1 Terminated Mux" // 2597/6x1 Terminated Mux #define DAQmx_Val_Switch_Topology_2598_Dual_Transfer "2598/Dual Transfer" // 2598/Dual Transfer #define DAQmx_Val_Switch_Topology_2599_2_SPDT "2599/2-SPDT" // 2599/2-SPDT int32 __CFUNC DAQmxSwitchSetTopologyAndReset (const char deviceName[], const char newTopology[]); // For possible values of the output parameter pathStatus see value set SwitchPathType in Values section above. int32 __CFUNC DAQmxSwitchFindPath (const char switchChannel1[], const char switchChannel2[], char path[], uInt32 pathBufferSize, int32 *pathStatus); int32 __CFUNC DAQmxSwitchOpenRelays (const char relayList[], bool32 waitForSettling); int32 __CFUNC DAQmxSwitchCloseRelays (const char relayList[], bool32 waitForSettling); int32 __CFUNC DAQmxSwitchGetSingleRelayCount (const char relayName[], uInt32 *count); int32 __CFUNC DAQmxSwitchGetMultiRelayCount (const char relayList[], uInt32 count[], uInt32 countArraySize, uInt32 *numRelayCountsRead); // For possible values of the output parameter relayPos see value set RelayPos in Values section above. int32 __CFUNC DAQmxSwitchGetSingleRelayPos (const char relayName[], uInt32 *relayPos); // For possible values in the output array relayPos see value set RelayPos in Values section above. int32 __CFUNC DAQmxSwitchGetMultiRelayPos (const char relayList[], uInt32 relayPos[], uInt32 relayPosArraySize, uInt32 *numRelayPossRead); int32 __CFUNC DAQmxSwitchWaitForSettling (const char deviceName[]); int32 __CFUNC_C DAQmxGetSwitchChanAttribute (const char switchChannelName[], int32 attribute, void *value); int32 __CFUNC_C DAQmxSetSwitchChanAttribute (const char switchChannelName[], int32 attribute, ...); int32 __CFUNC_C DAQmxGetSwitchDeviceAttribute (const char deviceName[], int32 attribute, void *value, ...); int32 __CFUNC_C DAQmxSetSwitchDeviceAttribute (const char deviceName[], int32 attribute, ...); int32 __CFUNC_C DAQmxGetSwitchScanAttribute (TaskHandle taskHandle, int32 attribute, void *value); int32 __CFUNC_C DAQmxSetSwitchScanAttribute (TaskHandle taskHandle, int32 attribute, ...); int32 __CFUNC DAQmxResetSwitchScanAttribute (TaskHandle taskHandle, int32 attribute); /******************************************************/ /*** Signal Routing ***/ /******************************************************/ int32 __CFUNC DAQmxConnectTerms (const char sourceTerminal[], const char destinationTerminal[], int32 signalModifiers); int32 __CFUNC DAQmxDisconnectTerms (const char sourceTerminal[], const char destinationTerminal[]); int32 __CFUNC DAQmxTristateOutputTerm (const char outputTerminal[]); /******************************************************/ /*** Device Control ***/ /******************************************************/ int32 __CFUNC DAQmxResetDevice (const char deviceName[]); int32 __CFUNC DAQmxSelfTestDevice (const char deviceName[]); int32 __CFUNC_C DAQmxGetDeviceAttribute (const char deviceName[], int32 attribute, void *value, ...); /******************************************************/ /*** Watchdog Timer ***/ /******************************************************/ int32 __CFUNC_C DAQmxCreateWatchdogTimerTask (const char deviceName[], const char taskName[], TaskHandle *taskHandle, float64 timeout, const char lines[], int32 expState, ...); int32 __CFUNC DAQmxControlWatchdogTask (TaskHandle taskHandle, int32 action); int32 __CFUNC_C DAQmxGetWatchdogAttribute (TaskHandle taskHandle, const char lines[], int32 attribute, void *value, ...); int32 __CFUNC_C DAQmxSetWatchdogAttribute (TaskHandle taskHandle, const char lines[], int32 attribute, ...); int32 __CFUNC DAQmxResetWatchdogAttribute (TaskHandle taskHandle, const char lines[], int32 attribute); /******************************************************/ /*** Calibration ***/ /******************************************************/ int32 __CFUNC DAQmxSelfCal (const char deviceName[]); int32 __CFUNC DAQmxPerformBridgeOffsetNullingCal(TaskHandle taskHandle, const char channel[]); int32 __CFUNC DAQmxPerformBridgeOffsetNullingCalEx(TaskHandle taskHandle, const char channel[], bool32 skipUnsupportedChannels); int32 __CFUNC DAQmxPerformThrmcplLeadOffsetNullingCal(TaskHandle taskHandle, const char channel[], bool32 skipUnsupportedChannels); int32 __CFUNC DAQmxPerformStrainShuntCal (TaskHandle taskHandle, const char channel[], float64 shuntResistorValue, int32 shuntResistorLocation, bool32 skipUnsupportedChannels); int32 __CFUNC DAQmxPerformBridgeShuntCal (TaskHandle taskHandle, const char channel[], float64 shuntResistorValue, int32 shuntResistorLocation, float64 bridgeResistance, bool32 skipUnsupportedChannels); int32 __CFUNC DAQmxGetSelfCalLastDateAndTime (const char deviceName[], uInt32 *year, uInt32 *month, uInt32 *day, uInt32 *hour, uInt32 *minute); int32 __CFUNC DAQmxGetExtCalLastDateAndTime (const char deviceName[], uInt32 *year, uInt32 *month, uInt32 *day, uInt32 *hour, uInt32 *minute); int32 __CFUNC DAQmxRestoreLastExtCalConst (const char deviceName[]); int32 __CFUNC DAQmxESeriesCalAdjust (CalHandle calHandle, float64 referenceVoltage); int32 __CFUNC DAQmxMSeriesCalAdjust (CalHandle calHandle, float64 referenceVoltage); int32 __CFUNC DAQmxSSeriesCalAdjust (CalHandle calHandle, float64 referenceVoltage); int32 __CFUNC DAQmxSCBaseboardCalAdjust (CalHandle calHandle, float64 referenceVoltage); int32 __CFUNC DAQmxAOSeriesCalAdjust (CalHandle calHandle, float64 referenceVoltage); int32 __CFUNC DAQmxXSeriesCalAdjust (CalHandle calHandle, float64 referenceVoltage); int32 __CFUNC DAQmxDeviceSupportsCal (const char deviceName[], bool32 *calSupported); int32 __CFUNC_C DAQmxGetCalInfoAttribute (const char deviceName[], int32 attribute, void *value, ...); int32 __CFUNC_C DAQmxSetCalInfoAttribute (const char deviceName[], int32 attribute, ...); int32 __CFUNC DAQmxInitExtCal (const char deviceName[], const char password[], CalHandle *calHandle); int32 __CFUNC DAQmxCloseExtCal (CalHandle calHandle, int32 action); int32 __CFUNC DAQmxChangeExtCalPassword (const char deviceName[], const char password[], const char newPassword[]); int32 __CFUNC DAQmxAdjustDSAAICal (CalHandle calHandle, float64 referenceVoltage); int32 __CFUNC DAQmxAdjustDSAAICalEx (CalHandle calHandle, float64 referenceVoltage, bool32 inputsShorted); int32 __CFUNC DAQmxAdjustDSAAICalWithGainAndCoupling (CalHandle calHandle, int32 coupling, float64 gain, float64 referenceVoltage); int32 __CFUNC DAQmxAdjustDSAAOCal (CalHandle calHandle, uInt32 channel, float64 requestedLowVoltage, float64 actualLowVoltage, float64 requestedHighVoltage, float64 actualHighVoltage, float64 gainSetting); int32 __CFUNC DAQmxAdjustDSATimebaseCal (CalHandle calHandle, float64 referenceFrequency); int32 __CFUNC DAQmxAdjust4204Cal (CalHandle calHandle, const char channelNames[], float64 lowPassFreq, bool32 trackHoldEnabled, float64 inputVal); int32 __CFUNC DAQmxAdjust4220Cal (CalHandle calHandle, const char channelNames[], float64 gain, float64 inputVal); int32 __CFUNC DAQmxAdjust4224Cal (CalHandle calHandle, const char channelNames[], float64 gain, float64 inputVal); // Note: This function is obsolete and now always returns zero. int32 __CFUNC DAQmxAdjust4225Cal (CalHandle calHandle, const char channelNames[], float64 gain, float64 inputVal); int32 __CFUNC DAQmxSetup433xCal (CalHandle calHandle, const char channelNames[], float64 excitationVoltage); int32 __CFUNC DAQmxAdjust433xCal (CalHandle calHandle, float64 refVoltage, float64 refExcitation, int32 shuntLocation); int32 __CFUNC DAQmxAdjust4300Cal (CalHandle calHandle, float64 refVoltage); int32 __CFUNC DAQmxAdjust4353Cal (CalHandle calHandle, const char channelNames[], float64 refVal); int32 __CFUNC DAQmxGet9201CalAdjustPoints(CalHandle calHandle, float64* adjustmentPoints, uInt32 bufferSize); int32 __CFUNC DAQmxCSeriesSetCalTemp(CalHandle calHandle, float64 temperature); int32 __CFUNC DAQmxAdjust9201Cal(CalHandle calHandle, const char channelNames[], float64 value); int32 __CFUNC DAQmxGet9203CalAdjustPoints(CalHandle calHandle, float64 rangeMin, float64 rangeMax, float64* adjustmentPoints, uInt32 bufferSize); int32 __CFUNC DAQmxAdjust9203GainCal(CalHandle calHandle, const char channelNames[], float64 rangeMin, float64 rangeMax, float64 value); int32 __CFUNC DAQmxAdjust9203OffsetCal(CalHandle calHandle, const char channelNames[], float64 rangeMin, float64 rangeMax); int32 __CFUNC DAQmxAdjust9205Cal(CalHandle calHandle, float64 value); int32 __CFUNC DAQmxAdjust9206Cal(CalHandle calHandle, float64 value); int32 __CFUNC DAQmxGet9207CalAdjustPoints(CalHandle calHandle, const char channelNames[], float64* adjustmentPoints, uInt32 bufferSize); int32 __CFUNC DAQmxAdjust9207GainCal(CalHandle calHandle, const char channelNames[], float64 value); int32 __CFUNC DAQmxAdjust9207OffsetCal(CalHandle calHandle, const char channelNames[]); int32 __CFUNC DAQmxGet9208CalAdjustPoints(CalHandle calHandle, float64* adjustmentPoints, uInt32 bufferSize); int32 __CFUNC DAQmxAdjust9208GainCal(CalHandle calHandle, const char channelNames[], float64 value); int32 __CFUNC DAQmxAdjust9208OffsetCal(CalHandle calHandle, const char channelNames[]); int32 __CFUNC DAQmxAdjust9211Cal(CalHandle calHandle, const char channelNames[], float64 value); int32 __CFUNC DAQmxGet9213CalAdjustPoints(CalHandle calHandle, float64 rangeMin, float64 rangeMax, float64* adjustmentPoints, uInt32 bufferSize); int32 __CFUNC DAQmxAdjust9213Cal(CalHandle calHandle, const char channelNames[], float64 rangeMin, float64 rangeMax, float64 value); int32 __CFUNC DAQmxGet9214CalAdjustPoints(CalHandle calHandle, const char channelNames[], float64* adjustmentPoints, uInt32 bufferSize); int32 __CFUNC DAQmxAdjust9214Cal(CalHandle calHandle, const char channelNames[], float64 value); int32 __CFUNC DAQmxGet9215CalAdjustPoints(CalHandle calHandle, float64* adjustmentPoints, uInt32 bufferSize); int32 __CFUNC DAQmxAdjust9215Cal(CalHandle calHandle, const char channelNames[], float64 value); int32 __CFUNC DAQmxSetup9219Cal(CalHandle calHandle, const char channelNames[], float64 rangeMin, float64 rangeMax, int32 measType, int32 bridgeConfig); int32 __CFUNC DAQmxGet9219CalAdjustPoints(CalHandle calHandle, float64* adjustmentPoints, uInt32 bufferSize); int32 __CFUNC DAQmxAdjust9219Cal(CalHandle calHandle, const char channelNames[], float64 value); int32 __CFUNC DAQmxGet9221CalAdjustPoints(CalHandle calHandle, float64* adjustmentPoints, uInt32 bufferSize); int32 __CFUNC DAQmxAdjust9221Cal(CalHandle calHandle, const char channelNames[], float64 value); int32 __CFUNC DAQmxGet9222CalAdjustPoints(CalHandle calHandle, float64* adjustmentPoints, uInt32 bufferSize); int32 __CFUNC DAQmxAdjust9222Cal(CalHandle calHandle, const char channelNames[], float64 value); int32 __CFUNC DAQmxGet9223CalAdjustPoints(CalHandle calHandle, float64* adjustmentPoints, uInt32 bufferSize); int32 __CFUNC DAQmxAdjust9223Cal(CalHandle calHandle, const char channelNames[], float64 value); int32 __CFUNC DAQmxGet9234CalAdjustPoints(CalHandle calHandle, float64* adjustmentPoints, uInt32 bufferSize); int32 __CFUNC DAQmxAdjust9234GainCal(CalHandle calHandle, const char channelNames[], float64 value); int32 __CFUNC DAQmxAdjust9234OffsetCal(CalHandle calHandle, const char channelNames[]); int32 __CFUNC DAQmxGet9263CalAdjustPoints(CalHandle calHandle, int32* adjustmentPoints, uInt32 bufferSize); int32 __CFUNC DAQmxSetup9263Cal(CalHandle calHandle, const char channelNames[], int32 value); int32 __CFUNC DAQmxAdjust9263Cal(CalHandle calHandle, const char channelNames[], float64 value); int32 __CFUNC DAQmxGet9264CalAdjustPoints(CalHandle calHandle, int32* adjustmentPoints, uInt32 bufferSize); int32 __CFUNC DAQmxSetup9264Cal(CalHandle calHandle, const char channelNames[], int32 value); int32 __CFUNC DAQmxAdjust9264Cal(CalHandle calHandle, const char channelNames[], float64 value); int32 __CFUNC DAQmxGet9265CalAdjustPoints(CalHandle calHandle, int32* adjustmentPoints, uInt32 bufferSize); int32 __CFUNC DAQmxSetup9265Cal(CalHandle calHandle, const char channelNames[], int32 value); int32 __CFUNC DAQmxAdjust9265Cal(CalHandle calHandle, const char channelNames[], float64 value); int32 __CFUNC DAQmxGet9269CalAdjustPoints(CalHandle calHandle, int32* adjustmentPoints, uInt32 bufferSize); int32 __CFUNC DAQmxSetup9269Cal(CalHandle calHandle, const char channelNames[], int32 value); int32 __CFUNC DAQmxAdjust9269Cal(CalHandle calHandle, const char channelNames[], float64 value); int32 __CFUNC DAQmxSetup1102Cal (CalHandle calHandle, const char channelName[], float64 gain); int32 __CFUNC DAQmxAdjust1102Cal (CalHandle calHandle, float64 refVoltage, float64 measOutput); int32 __CFUNC DAQmxSetup1104Cal (CalHandle calHandle, const char channelName[]); int32 __CFUNC DAQmxAdjust1104Cal (CalHandle calHandle, float64 refVoltage, float64 measOutput); int32 __CFUNC DAQmxSetup1112Cal (CalHandle calHandle, const char channelName[]); int32 __CFUNC DAQmxAdjust1112Cal (CalHandle calHandle, float64 refVoltage, float64 measOutput); int32 __CFUNC DAQmxSetup1122Cal (CalHandle calHandle, const char channelName[], float64 gain); int32 __CFUNC DAQmxAdjust1122Cal (CalHandle calHandle, float64 refVoltage, float64 measOutput); int32 __CFUNC DAQmxSetup1124Cal (CalHandle calHandle, const char channelName[], int32 range, uInt32 dacValue); int32 __CFUNC DAQmxAdjust1124Cal (CalHandle calHandle, float64 measOutput); int32 __CFUNC DAQmxSetup1125Cal (CalHandle calHandle, const char channelName[], float64 gain); int32 __CFUNC DAQmxAdjust1125Cal (CalHandle calHandle, float64 refVoltage, float64 measOutput); int32 __CFUNC DAQmxSetup1126Cal (CalHandle calHandle, const char channelName[], float64 upperFreqLimit); int32 __CFUNC DAQmxAdjust1126Cal (CalHandle calHandle, float64 refFreq, float64 measOutput); int32 __CFUNC DAQmxSetup1141Cal (CalHandle calHandle, const char channelName[], float64 gain); int32 __CFUNC DAQmxAdjust1141Cal (CalHandle calHandle, float64 refVoltage, float64 measOutput); int32 __CFUNC DAQmxSetup1142Cal (CalHandle calHandle, const char channelName[], float64 gain); int32 __CFUNC DAQmxAdjust1142Cal (CalHandle calHandle, float64 refVoltage, float64 measOutput); int32 __CFUNC DAQmxSetup1143Cal (CalHandle calHandle, const char channelName[], float64 gain); int32 __CFUNC DAQmxAdjust1143Cal (CalHandle calHandle, float64 refVoltage, float64 measOutput); int32 __CFUNC DAQmxSetup1502Cal (CalHandle calHandle, const char channelName[], float64 gain); int32 __CFUNC DAQmxAdjust1502Cal (CalHandle calHandle, float64 refVoltage, float64 measOutput); int32 __CFUNC DAQmxSetup1503Cal (CalHandle calHandle, const char channelName[], float64 gain); int32 __CFUNC DAQmxAdjust1503Cal (CalHandle calHandle, float64 refVoltage, float64 measOutput); int32 __CFUNC DAQmxAdjust1503CurrentCal (CalHandle calHandle, const char channelName[], float64 measCurrent); int32 __CFUNC DAQmxSetup1520Cal (CalHandle calHandle, const char channelName[], float64 gain); int32 __CFUNC DAQmxAdjust1520Cal (CalHandle calHandle, float64 refVoltage, float64 measOutput); int32 __CFUNC DAQmxSetup1521Cal (CalHandle calHandle, const char channelName[]); int32 __CFUNC DAQmxAdjust1521Cal (CalHandle calHandle, float64 refVoltage, float64 measOutput); int32 __CFUNC DAQmxSetup153xCal (CalHandle calHandle, const char channelName[], float64 gain); int32 __CFUNC DAQmxAdjust153xCal (CalHandle calHandle, float64 refVoltage, float64 measOutput); int32 __CFUNC DAQmxSetup1540Cal (CalHandle calHandle, const char channelName[], float64 excitationVoltage, float64 excitationFreq); int32 __CFUNC DAQmxAdjust1540Cal (CalHandle calHandle, float64 refVoltage, float64 measOutput, int32 inputCalSource); /******************************************************/ /*** TEDS ***/ /******************************************************/ int32 __CFUNC DAQmxConfigureTEDS (const char physicalChannel[], const char filePath[]); int32 __CFUNC DAQmxClearTEDS (const char physicalChannel[]); int32 __CFUNC DAQmxWriteToTEDSFromArray (const char physicalChannel[], const uInt8 bitStream[], uInt32 arraySize, int32 basicTEDSOptions); int32 __CFUNC DAQmxWriteToTEDSFromFile (const char physicalChannel[], const char filePath[], int32 basicTEDSOptions); int32 __CFUNC_C DAQmxGetPhysicalChanAttribute (const char physicalChannel[], int32 attribute, void *value, ...); /******************************************************/ /*** Real-Time ***/ /******************************************************/ int32 __CFUNC DAQmxWaitForNextSampleClock(TaskHandle taskHandle, float64 timeout, bool32 *isLate); int32 __CFUNC_C DAQmxGetRealTimeAttribute (TaskHandle taskHandle, int32 attribute, void *value, ...); int32 __CFUNC_C DAQmxSetRealTimeAttribute (TaskHandle taskHandle, int32 attribute, ...); int32 __CFUNC DAQmxResetRealTimeAttribute(TaskHandle taskHandle, int32 attribute); // Note: This function is obsolete and now always returns zero. bool32 __CFUNC DAQmxIsReadOrWriteLate (int32 errorCode); /******************************************************/ /*** Storage ***/ /******************************************************/ int32 __CFUNC DAQmxSaveTask (TaskHandle taskHandle, const char saveAs[], const char author[], uInt32 options); int32 __CFUNC DAQmxSaveGlobalChan (TaskHandle taskHandle, const char channelName[], const char saveAs[], const char author[], uInt32 options); int32 __CFUNC DAQmxSaveScale (const char scaleName[], const char saveAs[], const char author[], uInt32 options); int32 __CFUNC DAQmxDeleteSavedTask (const char taskName[]); int32 __CFUNC DAQmxDeleteSavedGlobalChan (const char channelName[]); int32 __CFUNC DAQmxDeleteSavedScale (const char scaleName[]); int32 __CFUNC_C DAQmxGetPersistedTaskAttribute (const char taskName[], int32 attribute, void *value, ...); int32 __CFUNC_C DAQmxGetPersistedChanAttribute (const char channel[], int32 attribute, void *value, ...); int32 __CFUNC_C DAQmxGetPersistedScaleAttribute(const char scaleName[], int32 attribute, void *value, ...); /******************************************************/ /*** System Configuration ***/ /******************************************************/ int32 __CFUNC_C DAQmxGetSystemInfoAttribute (int32 attribute, void *value, ...); int32 __CFUNC_C DAQmxSetDigitalPowerUpStates (const char deviceName[], const char channelNames[], int32 state, ...); int32 __CFUNC_C DAQmxGetDigitalPowerUpStates (const char deviceName[], const char channelName[], int32* state, ...); int32 __CFUNC_C DAQmxSetDigitalPullUpPullDownStates (const char deviceName[], const char channelName[], int32 state, ...); int32 __CFUNC_C DAQmxGetDigitalPullUpPullDownStates (const char deviceName[], const char channelName[], int32* state, ...); int32 __CFUNC_C DAQmxSetAnalogPowerUpStates (const char deviceName[], const char channelNames[], float64 state, int32 channelType, ...); int32 __CFUNC_C DAQmxGetAnalogPowerUpStates (const char deviceName[], const char channelName[], float64* state, int32 channelType, ...); int32 __CFUNC DAQmxSetDigitalLogicFamilyPowerUpState(const char deviceName[], int32 logicFamily); int32 __CFUNC DAQmxGetDigitalLogicFamilyPowerUpState(const char deviceName[], int32* logicFamily); int32 __CFUNC DAQmxAddNetworkDevice(const char IPAddress[],const char deviceName[], bool32 attemptReservation, float64 timeout, char deviceNameOut[], uInt32 deviceNameOutBufferSize); int32 __CFUNC DAQmxDeleteNetworkDevice(const char deviceName[]); int32 __CFUNC DAQmxReserveNetworkDevice(const char deviceName[], bool32 overrideReservation); int32 __CFUNC DAQmxUnreserveNetworkDevice(const char deviceName[]); /******************************************************/ /*** Error Handling ***/ /******************************************************/ int32 __CFUNC DAQmxGetErrorString (int32 errorCode, char errorString[], uInt32 bufferSize); int32 __CFUNC DAQmxGetExtendedErrorInfo (char errorString[], uInt32 bufferSize); /****************************************************************************** *** NI-DAQmx Specific Attribute Get/Set/Reset Function Declarations ********** ******************************************************************************/ //********** Buffer ********** //*** Set/Get functions for DAQmx_Buf_Input_BufSize *** int32 __CFUNC DAQmxGetBufInputBufSize(TaskHandle taskHandle, uInt32 *data); int32 __CFUNC DAQmxSetBufInputBufSize(TaskHandle taskHandle, uInt32 data); int32 __CFUNC DAQmxResetBufInputBufSize(TaskHandle taskHandle); //*** Set/Get functions for DAQmx_Buf_Input_OnbrdBufSize *** int32 __CFUNC DAQmxGetBufInputOnbrdBufSize(TaskHandle taskHandle, uInt32 *data); //*** Set/Get functions for DAQmx_Buf_Output_BufSize *** int32 __CFUNC DAQmxGetBufOutputBufSize(TaskHandle taskHandle, uInt32 *data); int32 __CFUNC DAQmxSetBufOutputBufSize(TaskHandle taskHandle, uInt32 data); int32 __CFUNC DAQmxResetBufOutputBufSize(TaskHandle taskHandle); //*** Set/Get functions for DAQmx_Buf_Output_OnbrdBufSize *** int32 __CFUNC DAQmxGetBufOutputOnbrdBufSize(TaskHandle taskHandle, uInt32 *data); int32 __CFUNC DAQmxSetBufOutputOnbrdBufSize(TaskHandle taskHandle, uInt32 data); int32 __CFUNC DAQmxResetBufOutputOnbrdBufSize(TaskHandle taskHandle); //********** Calibration Info ********** //*** Set/Get functions for DAQmx_SelfCal_Supported *** int32 __CFUNC DAQmxGetSelfCalSupported(const char deviceName[], bool32 *data); //*** Set/Get functions for DAQmx_SelfCal_LastTemp *** int32 __CFUNC DAQmxGetSelfCalLastTemp(const char deviceName[], float64 *data); //*** Set/Get functions for DAQmx_ExtCal_RecommendedInterval *** int32 __CFUNC DAQmxGetExtCalRecommendedInterval(const char deviceName[], uInt32 *data); //*** Set/Get functions for DAQmx_ExtCal_LastTemp *** int32 __CFUNC DAQmxGetExtCalLastTemp(const char deviceName[], float64 *data); //*** Set/Get functions for DAQmx_Cal_UserDefinedInfo *** int32 __CFUNC DAQmxGetCalUserDefinedInfo(const char deviceName[], char *data, uInt32 bufferSize); int32 __CFUNC DAQmxSetCalUserDefinedInfo(const char deviceName[], const char *data); //*** Set/Get functions for DAQmx_Cal_UserDefinedInfo_MaxSize *** int32 __CFUNC DAQmxGetCalUserDefinedInfoMaxSize(const char deviceName[], uInt32 *data); //*** Set/Get functions for DAQmx_Cal_DevTemp *** int32 __CFUNC DAQmxGetCalDevTemp(const char deviceName[], float64 *data); //********** Channel ********** //*** Set/Get functions for DAQmx_AI_Max *** int32 __CFUNC DAQmxGetAIMax(TaskHandle taskHandle, const char channel[], float64 *data); int32 __CFUNC DAQmxSetAIMax(TaskHandle taskHandle, const char channel[], float64 data); int32 __CFUNC DAQmxResetAIMax(TaskHandle taskHandle, const char channel[]); //*** Set/Get functions for DAQmx_AI_Min *** int32 __CFUNC DAQmxGetAIMin(TaskHandle taskHandle, const char channel[], float64 *data); int32 __CFUNC DAQmxSetAIMin(TaskHandle taskHandle, const char channel[], float64 data); int32 __CFUNC DAQmxResetAIMin(TaskHandle taskHandle, const char channel[]); //*** Set/Get functions for DAQmx_AI_CustomScaleName *** int32 __CFUNC DAQmxGetAICustomScaleName(TaskHandle taskHandle, const char channel[], char *data, uInt32 bufferSize); int32 __CFUNC DAQmxSetAICustomScaleName(TaskHandle taskHandle, const char channel[], const char *data); int32 __CFUNC DAQmxResetAICustomScaleName(TaskHandle taskHandle, const char channel[]); //*** Set/Get functions for DAQmx_AI_MeasType *** // Uses value set AIMeasurementType int32 __CFUNC DAQmxGetAIMeasType(TaskHandle taskHandle, const char channel[], int32 *data); //*** Set/Get functions for DAQmx_AI_Voltage_Units *** // Uses value set VoltageUnits1 int32 __CFUNC DAQmxGetAIVoltageUnits(TaskHandle taskHandle, const char channel[], int32 *data); int32 __CFUNC DAQmxSetAIVoltageUnits(TaskHandle taskHandle, const char channel[], int32 data); int32 __CFUNC DAQmxResetAIVoltageUnits(TaskHandle taskHandle, const char channel[]); //*** Set/Get functions for DAQmx_AI_Voltage_dBRef *** int32 __CFUNC DAQmxGetAIVoltagedBRef(TaskHandle taskHandle, const char channel[], float64 *data); int32 __CFUNC DAQmxSetAIVoltagedBRef(TaskHandle taskHandle, const char channel[], float64 data); int32 __CFUNC DAQmxResetAIVoltagedBRef(TaskHandle taskHandle, const char channel[]); //*** Set/Get functions for DAQmx_AI_Voltage_ACRMS_Units *** // Uses value set VoltageUnits1 int32 __CFUNC DAQmxGetAIVoltageACRMSUnits(TaskHandle taskHandle, const char channel[], int32 *data); int32 __CFUNC DAQmxSetAIVoltageACRMSUnits(TaskHandle taskHandle, const char channel[], int32 data); int32 __CFUNC DAQmxResetAIVoltageACRMSUnits(TaskHandle taskHandle, const char channel[]); //*** Set/Get functions for DAQmx_AI_Temp_Units *** // Uses value set TemperatureUnits1 int32 __CFUNC DAQmxGetAITempUnits(TaskHandle taskHandle, const char channel[], int32 *data); int32 __CFUNC DAQmxSetAITempUnits(TaskHandle taskHandle, const char channel[], int32 data); int32 __CFUNC DAQmxResetAITempUnits(TaskHandle taskHandle, const char channel[]); //*** Set/Get functions for DAQmx_AI_Thrmcpl_Type *** // Uses value set ThermocoupleType1 int32 __CFUNC DAQmxGetAIThrmcplType(TaskHandle taskHandle, const char channel[], int32 *data); int32 __CFUNC DAQmxSetAIThrmcplType(TaskHandle taskHandle, const char channel[], int32 data); int32 __CFUNC DAQmxResetAIThrmcplType(TaskHandle taskHandle, const char channel[]); //*** Set/Get functions for DAQmx_AI_Thrmcpl_ScaleType *** // Uses value set ScaleType2 int32 __CFUNC DAQmxGetAIThrmcplScaleType(TaskHandle taskHandle, const char channel[], int32 *data); int32 __CFUNC DAQmxSetAIThrmcplScaleType(TaskHandle taskHandle, const char channel[], int32 data); int32 __CFUNC DAQmxResetAIThrmcplScaleType(TaskHandle taskHandle, const char channel[]); //*** Set/Get functions for DAQmx_AI_Thrmcpl_CJCSrc *** // Uses value set CJCSource1 int32 __CFUNC DAQmxGetAIThrmcplCJCSrc(TaskHandle taskHandle, const char channel[], int32 *data); //*** Set/Get functions for DAQmx_AI_Thrmcpl_CJCVal *** int32 __CFUNC DAQmxGetAIThrmcplCJCVal(TaskHandle taskHandle, const char channel[], float64 *data); int32 __CFUNC DAQmxSetAIThrmcplCJCVal(TaskHandle taskHandle, const char channel[], float64 data); int32 __CFUNC DAQmxResetAIThrmcplCJCVal(TaskHandle taskHandle, const char channel[]); //*** Set/Get functions for DAQmx_AI_Thrmcpl_CJCChan *** int32 __CFUNC DAQmxGetAIThrmcplCJCChan(TaskHandle taskHandle, const char channel[], char *data, uInt32 bufferSize); //*** Set/Get functions for DAQmx_AI_RTD_Type *** // Uses value set RTDType1 int32 __CFUNC DAQmxGetAIRTDType(TaskHandle taskHandle, const char channel[], int32 *data); int32 __CFUNC DAQmxSetAIRTDType(TaskHandle taskHandle, const char channel[], int32 data); int32 __CFUNC DAQmxResetAIRTDType(TaskHandle taskHandle, const char channel[]); //*** Set/Get functions for DAQmx_AI_RTD_R0 *** int32 __CFUNC DAQmxGetAIRTDR0(TaskHandle taskHandle, const char channel[], float64 *data); int32 __CFUNC DAQmxSetAIRTDR0(TaskHandle taskHandle, const char channel[], float64 data); int32 __CFUNC DAQmxResetAIRTDR0(TaskHandle taskHandle, const char channel[]); //*** Set/Get functions for DAQmx_AI_RTD_A *** int32 __CFUNC DAQmxGetAIRTDA(TaskHandle taskHandle, const char channel[], float64 *data); int32 __CFUNC DAQmxSetAIRTDA(TaskHandle taskHandle, const char channel[], float64 data); int32 __CFUNC DAQmxResetAIRTDA(TaskHandle taskHandle, const char channel[]); //*** Set/Get functions for DAQmx_AI_RTD_B *** int32 __CFUNC DAQmxGetAIRTDB(TaskHandle taskHandle, const char channel[], float64 *data); int32 __CFUNC DAQmxSetAIRTDB(TaskHandle taskHandle, const char channel[], float64 data); int32 __CFUNC DAQmxResetAIRTDB(TaskHandle taskHandle, const char channel[]); //*** Set/Get functions for DAQmx_AI_RTD_C *** int32 __CFUNC DAQmxGetAIRTDC(TaskHandle taskHandle, const char channel[], float64 *data); int32 __CFUNC DAQmxSetAIRTDC(TaskHandle taskHandle, const char channel[], float64 data); int32 __CFUNC DAQmxResetAIRTDC(TaskHandle taskHandle, const char channel[]); //*** Set/Get functions for DAQmx_AI_Thrmstr_A *** int32 __CFUNC DAQmxGetAIThrmstrA(TaskHandle taskHandle, const char channel[], float64 *data); int32 __CFUNC DAQmxSetAIThrmstrA(TaskHandle taskHandle, const char channel[], float64 data); int32 __CFUNC DAQmxResetAIThrmstrA(TaskHandle taskHandle, const char channel[]); //*** Set/Get functions for DAQmx_AI_Thrmstr_B *** int32 __CFUNC DAQmxGetAIThrmstrB(TaskHandle taskHandle, const char channel[], float64 *data); int32 __CFUNC DAQmxSetAIThrmstrB(TaskHandle taskHandle, const char channel[], float64 data); int32 __CFUNC DAQmxResetAIThrmstrB(TaskHandle taskHandle, const char channel[]); //*** Set/Get functions for DAQmx_AI_Thrmstr_C *** int32 __CFUNC DAQmxGetAIThrmstrC(TaskHandle taskHandle, const char channel[], float64 *data); int32 __CFUNC DAQmxSetAIThrmstrC(TaskHandle taskHandle, const char channel[], float64 data); int32 __CFUNC DAQmxResetAIThrmstrC(TaskHandle taskHandle, const char channel[]); //*** Set/Get functions for DAQmx_AI_Thrmstr_R1 *** int32 __CFUNC DAQmxGetAIThrmstrR1(TaskHandle taskHandle, const char channel[], float64 *data); int32 __CFUNC DAQmxSetAIThrmstrR1(TaskHandle taskHandle, const char channel[], float64 data); int32 __CFUNC DAQmxResetAIThrmstrR1(TaskHandle taskHandle, const char channel[]); //*** Set/Get functions for DAQmx_AI_ForceReadFromChan *** int32 __CFUNC DAQmxGetAIForceReadFromChan(TaskHandle taskHandle, const char channel[], bool32 *data); int32 __CFUNC DAQmxSetAIForceReadFromChan(TaskHandle taskHandle, const char channel[], bool32 data); int32 __CFUNC DAQmxResetAIForceReadFromChan(TaskHandle taskHandle, const char channel[]); //*** Set/Get functions for DAQmx_AI_Current_Units *** // Uses value set CurrentUnits1 int32 __CFUNC DAQmxGetAICurrentUnits(TaskHandle taskHandle, const char channel[], int32 *data); int32 __CFUNC DAQmxSetAICurrentUnits(TaskHandle taskHandle, const char channel[], int32 data); int32 __CFUNC DAQmxResetAICurrentUnits(TaskHandle taskHandle, const char channel[]); //*** Set/Get functions for DAQmx_AI_Current_ACRMS_Units *** // Uses value set CurrentUnits1 int32 __CFUNC DAQmxGetAICurrentACRMSUnits(TaskHandle taskHandle, const char channel[], int32 *data); int32 __CFUNC DAQmxSetAICurrentACRMSUnits(TaskHandle taskHandle, const char channel[], int32 data); int32 __CFUNC DAQmxResetAICurrentACRMSUnits(TaskHandle taskHandle, const char channel[]); //*** Set/Get functions for DAQmx_AI_Strain_Units *** // Uses value set StrainUnits1 int32 __CFUNC DAQmxGetAIStrainUnits(TaskHandle taskHandle, const char channel[], int32 *data); int32 __CFUNC DAQmxSetAIStrainUnits(TaskHandle taskHandle, const char channel[], int32 data); int32 __CFUNC DAQmxResetAIStrainUnits(TaskHandle taskHandle, const char channel[]); //*** Set/Get functions for DAQmx_AI_StrainGage_GageFactor *** int32 __CFUNC DAQmxGetAIStrainGageGageFactor(TaskHandle taskHandle, const char channel[], float64 *data); int32 __CFUNC DAQmxSetAIStrainGageGageFactor(TaskHandle taskHandle, const char channel[], float64 data); int32 __CFUNC DAQmxResetAIStrainGageGageFactor(TaskHandle taskHandle, const char channel[]); //*** Set/Get functions for DAQmx_AI_StrainGage_PoissonRatio *** int32 __CFUNC DAQmxGetAIStrainGagePoissonRatio(TaskHandle taskHandle, const char channel[], float64 *data); int32 __CFUNC DAQmxSetAIStrainGagePoissonRatio(TaskHandle taskHandle, const char channel[], float64 data); int32 __CFUNC DAQmxResetAIStrainGagePoissonRatio(TaskHandle taskHandle, const char channel[]); //*** Set/Get functions for DAQmx_AI_StrainGage_Cfg *** // Uses value set StrainGageBridgeType1 int32 __CFUNC DAQmxGetAIStrainGageCfg(TaskHandle taskHandle, const char channel[], int32 *data); int32 __CFUNC DAQmxSetAIStrainGageCfg(TaskHandle taskHandle, const char channel[], int32 data); int32 __CFUNC DAQmxResetAIStrainGageCfg(TaskHandle taskHandle, const char channel[]); //*** Set/Get functions for DAQmx_AI_Resistance_Units *** // Uses value set ResistanceUnits1 int32 __CFUNC DAQmxGetAIResistanceUnits(TaskHandle taskHandle, const char channel[], int32 *data); int32 __CFUNC DAQmxSetAIResistanceUnits(TaskHandle taskHandle, const char channel[], int32 data); int32 __CFUNC DAQmxResetAIResistanceUnits(TaskHandle taskHandle, const char channel[]); //*** Set/Get functions for DAQmx_AI_Freq_Units *** // Uses value set FrequencyUnits int32 __CFUNC DAQmxGetAIFreqUnits(TaskHandle taskHandle, const char channel[], int32 *data); int32 __CFUNC DAQmxSetAIFreqUnits(TaskHandle taskHandle, const char channel[], int32 data); int32 __CFUNC DAQmxResetAIFreqUnits(TaskHandle taskHandle, const char channel[]); //*** Set/Get functions for DAQmx_AI_Freq_ThreshVoltage *** int32 __CFUNC DAQmxGetAIFreqThreshVoltage(TaskHandle taskHandle, const char channel[], float64 *data); int32 __CFUNC DAQmxSetAIFreqThreshVoltage(TaskHandle taskHandle, const char channel[], float64 data); int32 __CFUNC DAQmxResetAIFreqThreshVoltage(TaskHandle taskHandle, const char channel[]); //*** Set/Get functions for DAQmx_AI_Freq_Hyst *** int32 __CFUNC DAQmxGetAIFreqHyst(TaskHandle taskHandle, const char channel[], float64 *data); int32 __CFUNC DAQmxSetAIFreqHyst(TaskHandle taskHandle, const char channel[], float64 data); int32 __CFUNC DAQmxResetAIFreqHyst(TaskHandle taskHandle, const char channel[]); //*** Set/Get functions for DAQmx_AI_LVDT_Units *** // Uses value set LengthUnits2 int32 __CFUNC DAQmxGetAILVDTUnits(TaskHandle taskHandle, const char channel[], int32 *data); int32 __CFUNC DAQmxSetAILVDTUnits(TaskHandle taskHandle, const char channel[], int32 data); int32 __CFUNC DAQmxResetAILVDTUnits(TaskHandle taskHandle, const char channel[]); //*** Set/Get functions for DAQmx_AI_LVDT_Sensitivity *** int32 __CFUNC DAQmxGetAILVDTSensitivity(TaskHandle taskHandle, const char channel[], float64 *data); int32 __CFUNC DAQmxSetAILVDTSensitivity(TaskHandle taskHandle, const char channel[], float64 data); int32 __CFUNC DAQmxResetAILVDTSensitivity(TaskHandle taskHandle, const char channel[]); //*** Set/Get functions for DAQmx_AI_LVDT_SensitivityUnits *** // Uses value set LVDTSensitivityUnits1 int32 __CFUNC DAQmxGetAILVDTSensitivityUnits(TaskHandle taskHandle, const char channel[], int32 *data); int32 __CFUNC DAQmxSetAILVDTSensitivityUnits(TaskHandle taskHandle, const char channel[], int32 data); int32 __CFUNC DAQmxResetAILVDTSensitivityUnits(TaskHandle taskHandle, const char channel[]); //*** Set/Get functions for DAQmx_AI_RVDT_Units *** // Uses value set AngleUnits1 int32 __CFUNC DAQmxGetAIRVDTUnits(TaskHandle taskHandle, const char channel[], int32 *data); int32 __CFUNC DAQmxSetAIRVDTUnits(TaskHandle taskHandle, const char channel[], int32 data); int32 __CFUNC DAQmxResetAIRVDTUnits(TaskHandle taskHandle, const char channel[]); //*** Set/Get functions for DAQmx_AI_RVDT_Sensitivity *** int32 __CFUNC DAQmxGetAIRVDTSensitivity(TaskHandle taskHandle, const char channel[], float64 *data); int32 __CFUNC DAQmxSetAIRVDTSensitivity(TaskHandle taskHandle, const char channel[], float64 data); int32 __CFUNC DAQmxResetAIRVDTSensitivity(TaskHandle taskHandle, const char channel[]); //*** Set/Get functions for DAQmx_AI_RVDT_SensitivityUnits *** // Uses value set RVDTSensitivityUnits1 int32 __CFUNC DAQmxGetAIRVDTSensitivityUnits(TaskHandle taskHandle, const char channel[], int32 *data); int32 __CFUNC DAQmxSetAIRVDTSensitivityUnits(TaskHandle taskHandle, const char channel[], int32 data); int32 __CFUNC DAQmxResetAIRVDTSensitivityUnits(TaskHandle taskHandle, const char channel[]); //*** Set/Get functions for DAQmx_AI_EddyCurrentProxProbe_Units *** // Uses value set LengthUnits2 int32 __CFUNC DAQmxGetAIEddyCurrentProxProbeUnits(TaskHandle taskHandle, const char channel[], int32 *data); int32 __CFUNC DAQmxSetAIEddyCurrentProxProbeUnits(TaskHandle taskHandle, const char channel[], int32 data); int32 __CFUNC DAQmxResetAIEddyCurrentProxProbeUnits(TaskHandle taskHandle, const char channel[]); //*** Set/Get functions for DAQmx_AI_EddyCurrentProxProbe_Sensitivity *** int32 __CFUNC DAQmxGetAIEddyCurrentProxProbeSensitivity(TaskHandle taskHandle, const char channel[], float64 *data); int32 __CFUNC DAQmxSetAIEddyCurrentProxProbeSensitivity(TaskHandle taskHandle, const char channel[], float64 data); int32 __CFUNC DAQmxResetAIEddyCurrentProxProbeSensitivity(TaskHandle taskHandle, const char channel[]); //*** Set/Get functions for DAQmx_AI_EddyCurrentProxProbe_SensitivityUnits *** // Uses value set EddyCurrentProxProbeSensitivityUnits int32 __CFUNC DAQmxGetAIEddyCurrentProxProbeSensitivityUnits(TaskHandle taskHandle, const char channel[], int32 *data); int32 __CFUNC DAQmxSetAIEddyCurrentProxProbeSensitivityUnits(TaskHandle taskHandle, const char channel[], int32 data); int32 __CFUNC DAQmxResetAIEddyCurrentProxProbeSensitivityUnits(TaskHandle taskHandle, const char channel[]); //*** Set/Get functions for DAQmx_AI_SoundPressure_MaxSoundPressureLvl *** int32 __CFUNC DAQmxGetAISoundPressureMaxSoundPressureLvl(TaskHandle taskHandle, const char channel[], float64 *data); int32 __CFUNC DAQmxSetAISoundPressureMaxSoundPressureLvl(TaskHandle taskHandle, const char channel[], float64 data); int32 __CFUNC DAQmxResetAISoundPressureMaxSoundPressureLvl(TaskHandle taskHandle, const char channel[]); //*** Set/Get functions for DAQmx_AI_SoundPressure_Units *** // Uses value set SoundPressureUnits1 int32 __CFUNC DAQmxGetAISoundPressureUnits(TaskHandle taskHandle, const char channel[], int32 *data); int32 __CFUNC DAQmxSetAISoundPressureUnits(TaskHandle taskHandle, const char channel[], int32 data); int32 __CFUNC DAQmxResetAISoundPressureUnits(TaskHandle taskHandle, const char channel[]); //*** Set/Get functions for DAQmx_AI_SoundPressure_dBRef *** int32 __CFUNC DAQmxGetAISoundPressuredBRef(TaskHandle taskHandle, const char channel[], float64 *data); int32 __CFUNC DAQmxSetAISoundPressuredBRef(TaskHandle taskHandle, const char channel[], float64 data); int32 __CFUNC DAQmxResetAISoundPressuredBRef(TaskHandle taskHandle, const char channel[]); //*** Set/Get functions for DAQmx_AI_Microphone_Sensitivity *** int32 __CFUNC DAQmxGetAIMicrophoneSensitivity(TaskHandle taskHandle, const char channel[], float64 *data); int32 __CFUNC DAQmxSetAIMicrophoneSensitivity(TaskHandle taskHandle, const char channel[], float64 data); int32 __CFUNC DAQmxResetAIMicrophoneSensitivity(TaskHandle taskHandle, const char channel[]); //*** Set/Get functions for DAQmx_AI_Accel_Units *** // Uses value set AccelUnits2 int32 __CFUNC DAQmxGetAIAccelUnits(TaskHandle taskHandle, const char channel[], int32 *data); int32 __CFUNC DAQmxSetAIAccelUnits(TaskHandle taskHandle, const char channel[], int32 data); int32 __CFUNC DAQmxResetAIAccelUnits(TaskHandle taskHandle, const char channel[]); //*** Set/Get functions for DAQmx_AI_Accel_dBRef *** int32 __CFUNC DAQmxGetAIAcceldBRef(TaskHandle taskHandle, const char channel[], float64 *data); int32 __CFUNC DAQmxSetAIAcceldBRef(TaskHandle taskHandle, const char channel[], float64 data); int32 __CFUNC DAQmxResetAIAcceldBRef(TaskHandle taskHandle, const char channel[]); //*** Set/Get functions for DAQmx_AI_Accel_Sensitivity *** int32 __CFUNC DAQmxGetAIAccelSensitivity(TaskHandle taskHandle, const char channel[], float64 *data); int32 __CFUNC DAQmxSetAIAccelSensitivity(TaskHandle taskHandle, const char channel[], float64 data); int32 __CFUNC DAQmxResetAIAccelSensitivity(TaskHandle taskHandle, const char channel[]); //*** Set/Get functions for DAQmx_AI_Accel_SensitivityUnits *** // Uses value set AccelSensitivityUnits1 int32 __CFUNC DAQmxGetAIAccelSensitivityUnits(TaskHandle taskHandle, const char channel[], int32 *data); int32 __CFUNC DAQmxSetAIAccelSensitivityUnits(TaskHandle taskHandle, const char channel[], int32 data); int32 __CFUNC DAQmxResetAIAccelSensitivityUnits(TaskHandle taskHandle, const char channel[]); //*** Set/Get functions for DAQmx_AI_Force_Units *** // Uses value set ForceUnits int32 __CFUNC DAQmxGetAIForceUnits(TaskHandle taskHandle, const char channel[], int32 *data); int32 __CFUNC DAQmxSetAIForceUnits(TaskHandle taskHandle, const char channel[], int32 data); int32 __CFUNC DAQmxResetAIForceUnits(TaskHandle taskHandle, const char channel[]); //*** Set/Get functions for DAQmx_AI_Force_IEPESensor_Sensitivity *** int32 __CFUNC DAQmxGetAIForceIEPESensorSensitivity(TaskHandle taskHandle, const char channel[], float64 *data); int32 __CFUNC DAQmxSetAIForceIEPESensorSensitivity(TaskHandle taskHandle, const char channel[], float64 data); int32 __CFUNC DAQmxResetAIForceIEPESensorSensitivity(TaskHandle taskHandle, const char channel[]); //*** Set/Get functions for DAQmx_AI_Force_IEPESensor_SensitivityUnits *** // Uses value set ForceIEPESensorSensitivityUnits int32 __CFUNC DAQmxGetAIForceIEPESensorSensitivityUnits(TaskHandle taskHandle, const char channel[], int32 *data); int32 __CFUNC DAQmxSetAIForceIEPESensorSensitivityUnits(TaskHandle taskHandle, const char channel[], int32 data); int32 __CFUNC DAQmxResetAIForceIEPESensorSensitivityUnits(TaskHandle taskHandle, const char channel[]); //*** Set/Get functions for DAQmx_AI_Pressure_Units *** // Uses value set PressureUnits int32 __CFUNC DAQmxGetAIPressureUnits(TaskHandle taskHandle, const char channel[], int32 *data); int32 __CFUNC DAQmxSetAIPressureUnits(TaskHandle taskHandle, const char channel[], int32 data); int32 __CFUNC DAQmxResetAIPressureUnits(TaskHandle taskHandle, const char channel[]); //*** Set/Get functions for DAQmx_AI_Torque_Units *** // Uses value set TorqueUnits int32 __CFUNC DAQmxGetAITorqueUnits(TaskHandle taskHandle, const char channel[], int32 *data); int32 __CFUNC DAQmxSetAITorqueUnits(TaskHandle taskHandle, const char channel[], int32 data); int32 __CFUNC DAQmxResetAITorqueUnits(TaskHandle taskHandle, const char channel[]); //*** Set/Get functions for DAQmx_AI_Bridge_Units *** // Uses value set BridgeUnits int32 __CFUNC DAQmxGetAIBridgeUnits(TaskHandle taskHandle, const char channel[], int32 *data); int32 __CFUNC DAQmxSetAIBridgeUnits(TaskHandle taskHandle, const char channel[], int32 data); int32 __CFUNC DAQmxResetAIBridgeUnits(TaskHandle taskHandle, const char channel[]); //*** Set/Get functions for DAQmx_AI_Bridge_ElectricalUnits *** // Uses value set BridgeElectricalUnits int32 __CFUNC DAQmxGetAIBridgeElectricalUnits(TaskHandle taskHandle, const char channel[], int32 *data); int32 __CFUNC DAQmxSetAIBridgeElectricalUnits(TaskHandle taskHandle, const char channel[], int32 data); int32 __CFUNC DAQmxResetAIBridgeElectricalUnits(TaskHandle taskHandle, const char channel[]); //*** Set/Get functions for DAQmx_AI_Bridge_PhysicalUnits *** // Uses value set BridgePhysicalUnits int32 __CFUNC DAQmxGetAIBridgePhysicalUnits(TaskHandle taskHandle, const char channel[], int32 *data); int32 __CFUNC DAQmxSetAIBridgePhysicalUnits(TaskHandle taskHandle, const char channel[], int32 data); int32 __CFUNC DAQmxResetAIBridgePhysicalUnits(TaskHandle taskHandle, const char channel[]); //*** Set/Get functions for DAQmx_AI_Bridge_ScaleType *** // Uses value set ScaleType4 int32 __CFUNC DAQmxGetAIBridgeScaleType(TaskHandle taskHandle, const char channel[], int32 *data); int32 __CFUNC DAQmxSetAIBridgeScaleType(TaskHandle taskHandle, const char channel[], int32 data); int32 __CFUNC DAQmxResetAIBridgeScaleType(TaskHandle taskHandle, const char channel[]); //*** Set/Get functions for DAQmx_AI_Bridge_TwoPointLin_First_ElectricalVal *** int32 __CFUNC DAQmxGetAIBridgeTwoPointLinFirstElectricalVal(TaskHandle taskHandle, const char channel[], float64 *data); int32 __CFUNC DAQmxSetAIBridgeTwoPointLinFirstElectricalVal(TaskHandle taskHandle, const char channel[], float64 data); int32 __CFUNC DAQmxResetAIBridgeTwoPointLinFirstElectricalVal(TaskHandle taskHandle, const char channel[]); //*** Set/Get functions for DAQmx_AI_Bridge_TwoPointLin_First_PhysicalVal *** int32 __CFUNC DAQmxGetAIBridgeTwoPointLinFirstPhysicalVal(TaskHandle taskHandle, const char channel[], float64 *data); int32 __CFUNC DAQmxSetAIBridgeTwoPointLinFirstPhysicalVal(TaskHandle taskHandle, const char channel[], float64 data); int32 __CFUNC DAQmxResetAIBridgeTwoPointLinFirstPhysicalVal(TaskHandle taskHandle, const char channel[]); //*** Set/Get functions for DAQmx_AI_Bridge_TwoPointLin_Second_ElectricalVal *** int32 __CFUNC DAQmxGetAIBridgeTwoPointLinSecondElectricalVal(TaskHandle taskHandle, const char channel[], float64 *data); int32 __CFUNC DAQmxSetAIBridgeTwoPointLinSecondElectricalVal(TaskHandle taskHandle, const char channel[], float64 data); int32 __CFUNC DAQmxResetAIBridgeTwoPointLinSecondElectricalVal(TaskHandle taskHandle, const char channel[]); //*** Set/Get functions for DAQmx_AI_Bridge_TwoPointLin_Second_PhysicalVal *** int32 __CFUNC DAQmxGetAIBridgeTwoPointLinSecondPhysicalVal(TaskHandle taskHandle, const char channel[], float64 *data); int32 __CFUNC DAQmxSetAIBridgeTwoPointLinSecondPhysicalVal(TaskHandle taskHandle, const char channel[], float64 data); int32 __CFUNC DAQmxResetAIBridgeTwoPointLinSecondPhysicalVal(TaskHandle taskHandle, const char channel[]); //*** Set/Get functions for DAQmx_AI_Bridge_Table_ElectricalVals *** int32 __CFUNC DAQmxGetAIBridgeTableElectricalVals(TaskHandle taskHandle, const char channel[], float64 *data, uInt32 arraySizeInElements); int32 __CFUNC DAQmxSetAIBridgeTableElectricalVals(TaskHandle taskHandle, const char channel[], float64 *data, uInt32 arraySizeInElements); int32 __CFUNC DAQmxResetAIBridgeTableElectricalVals(TaskHandle taskHandle, const char channel[]); //*** Set/Get functions for DAQmx_AI_Bridge_Table_PhysicalVals *** int32 __CFUNC DAQmxGetAIBridgeTablePhysicalVals(TaskHandle taskHandle, const char channel[], float64 *data, uInt32 arraySizeInElements); int32 __CFUNC DAQmxSetAIBridgeTablePhysicalVals(TaskHandle taskHandle, const char channel[], float64 *data, uInt32 arraySizeInElements); int32 __CFUNC DAQmxResetAIBridgeTablePhysicalVals(TaskHandle taskHandle, const char channel[]); //*** Set/Get functions for DAQmx_AI_Bridge_Poly_ForwardCoeff *** int32 __CFUNC DAQmxGetAIBridgePolyForwardCoeff(TaskHandle taskHandle, const char channel[], float64 *data, uInt32 arraySizeInElements); int32 __CFUNC DAQmxSetAIBridgePolyForwardCoeff(TaskHandle taskHandle, const char channel[], float64 *data, uInt32 arraySizeInElements); int32 __CFUNC DAQmxResetAIBridgePolyForwardCoeff(TaskHandle taskHandle, const char channel[]); //*** Set/Get functions for DAQmx_AI_Bridge_Poly_ReverseCoeff *** int32 __CFUNC DAQmxGetAIBridgePolyReverseCoeff(TaskHandle taskHandle, const char channel[], float64 *data, uInt32 arraySizeInElements); int32 __CFUNC DAQmxSetAIBridgePolyReverseCoeff(TaskHandle taskHandle, const char channel[], float64 *data, uInt32 arraySizeInElements); int32 __CFUNC DAQmxResetAIBridgePolyReverseCoeff(TaskHandle taskHandle, const char channel[]); //*** Set/Get functions for DAQmx_AI_Is_TEDS *** int32 __CFUNC DAQmxGetAIIsTEDS(TaskHandle taskHandle, const char channel[], bool32 *data); //*** Set/Get functions for DAQmx_AI_TEDS_Units *** int32 __CFUNC DAQmxGetAITEDSUnits(TaskHandle taskHandle, const char channel[], char *data, uInt32 bufferSize); //*** Set/Get functions for DAQmx_AI_Coupling *** // Uses value set Coupling1 int32 __CFUNC DAQmxGetAICoupling(TaskHandle taskHandle, const char channel[], int32 *data); int32 __CFUNC DAQmxSetAICoupling(TaskHandle taskHandle, const char channel[], int32 data); int32 __CFUNC DAQmxResetAICoupling(TaskHandle taskHandle, const char channel[]); //*** Set/Get functions for DAQmx_AI_Impedance *** // Uses value set Impedance1 int32 __CFUNC DAQmxGetAIImpedance(TaskHandle taskHandle, const char channel[], float64 *data); int32 __CFUNC DAQmxSetAIImpedance(TaskHandle taskHandle, const char channel[], float64 data); int32 __CFUNC DAQmxResetAIImpedance(TaskHandle taskHandle, const char channel[]); //*** Set/Get functions for DAQmx_AI_TermCfg *** // Uses value set InputTermCfg int32 __CFUNC DAQmxGetAITermCfg(TaskHandle taskHandle, const char channel[], int32 *data); int32 __CFUNC DAQmxSetAITermCfg(TaskHandle taskHandle, const char channel[], int32 data); int32 __CFUNC DAQmxResetAITermCfg(TaskHandle taskHandle, const char channel[]); //*** Set/Get functions for DAQmx_AI_InputSrc *** int32 __CFUNC DAQmxGetAIInputSrc(TaskHandle taskHandle, const char channel[], char *data, uInt32 bufferSize); int32 __CFUNC DAQmxSetAIInputSrc(TaskHandle taskHandle, const char channel[], const char *data); int32 __CFUNC DAQmxResetAIInputSrc(TaskHandle taskHandle, const char channel[]); //*** Set/Get functions for DAQmx_AI_ResistanceCfg *** // Uses value set ResistanceConfiguration int32 __CFUNC DAQmxGetAIResistanceCfg(TaskHandle taskHandle, const char channel[], int32 *data); int32 __CFUNC DAQmxSetAIResistanceCfg(TaskHandle taskHandle, const char channel[], int32 data); int32 __CFUNC DAQmxResetAIResistanceCfg(TaskHandle taskHandle, const char channel[]); //*** Set/Get functions for DAQmx_AI_LeadWireResistance *** int32 __CFUNC DAQmxGetAILeadWireResistance(TaskHandle taskHandle, const char channel[], float64 *data); int32 __CFUNC DAQmxSetAILeadWireResistance(TaskHandle taskHandle, const char channel[], float64 data); int32 __CFUNC DAQmxResetAILeadWireResistance(TaskHandle taskHandle, const char channel[]); //*** Set/Get functions for DAQmx_AI_Bridge_Cfg *** // Uses value set BridgeConfiguration1 int32 __CFUNC DAQmxGetAIBridgeCfg(TaskHandle taskHandle, const char channel[], int32 *data); int32 __CFUNC DAQmxSetAIBridgeCfg(TaskHandle taskHandle, const char channel[], int32 data); int32 __CFUNC DAQmxResetAIBridgeCfg(TaskHandle taskHandle, const char channel[]); //*** Set/Get functions for DAQmx_AI_Bridge_NomResistance *** int32 __CFUNC DAQmxGetAIBridgeNomResistance(TaskHandle taskHandle, const char channel[], float64 *data); int32 __CFUNC DAQmxSetAIBridgeNomResistance(TaskHandle taskHandle, const char channel[], float64 data); int32 __CFUNC DAQmxResetAIBridgeNomResistance(TaskHandle taskHandle, const char channel[]); //*** Set/Get functions for DAQmx_AI_Bridge_InitialVoltage *** int32 __CFUNC DAQmxGetAIBridgeInitialVoltage(TaskHandle taskHandle, const char channel[], float64 *data); int32 __CFUNC DAQmxSetAIBridgeInitialVoltage(TaskHandle taskHandle, const char channel[], float64 data); int32 __CFUNC DAQmxResetAIBridgeInitialVoltage(TaskHandle taskHandle, const char channel[]); //*** Set/Get functions for DAQmx_AI_Bridge_InitialRatio *** int32 __CFUNC DAQmxGetAIBridgeInitialRatio(TaskHandle taskHandle, const char channel[], float64 *data); int32 __CFUNC DAQmxSetAIBridgeInitialRatio(TaskHandle taskHandle, const char channel[], float64 data); int32 __CFUNC DAQmxResetAIBridgeInitialRatio(TaskHandle taskHandle, const char channel[]); //*** Set/Get functions for DAQmx_AI_Bridge_ShuntCal_Enable *** int32 __CFUNC DAQmxGetAIBridgeShuntCalEnable(TaskHandle taskHandle, const char channel[], bool32 *data); int32 __CFUNC DAQmxSetAIBridgeShuntCalEnable(TaskHandle taskHandle, const char channel[], bool32 data); int32 __CFUNC DAQmxResetAIBridgeShuntCalEnable(TaskHandle taskHandle, const char channel[]); //*** Set/Get functions for DAQmx_AI_Bridge_ShuntCal_Select *** // Uses value set ShuntCalSelect int32 __CFUNC DAQmxGetAIBridgeShuntCalSelect(TaskHandle taskHandle, const char channel[], int32 *data); int32 __CFUNC DAQmxSetAIBridgeShuntCalSelect(TaskHandle taskHandle, const char channel[], int32 data); int32 __CFUNC DAQmxResetAIBridgeShuntCalSelect(TaskHandle taskHandle, const char channel[]); //*** Set/Get functions for DAQmx_AI_Bridge_ShuntCal_GainAdjust *** int32 __CFUNC DAQmxGetAIBridgeShuntCalGainAdjust(TaskHandle taskHandle, const char channel[], float64 *data); int32 __CFUNC DAQmxSetAIBridgeShuntCalGainAdjust(TaskHandle taskHandle, const char channel[], float64 data); int32 __CFUNC DAQmxResetAIBridgeShuntCalGainAdjust(TaskHandle taskHandle, const char channel[]); //*** Set/Get functions for DAQmx_AI_Bridge_ShuntCal_ShuntCalAResistance *** int32 __CFUNC DAQmxGetAIBridgeShuntCalShuntCalAResistance(TaskHandle taskHandle, const char channel[], float64 *data); int32 __CFUNC DAQmxSetAIBridgeShuntCalShuntCalAResistance(TaskHandle taskHandle, const char channel[], float64 data); int32 __CFUNC DAQmxResetAIBridgeShuntCalShuntCalAResistance(TaskHandle taskHandle, const char channel[]); //*** Set/Get functions for DAQmx_AI_Bridge_ShuntCal_ShuntCalAActualResistance *** int32 __CFUNC DAQmxGetAIBridgeShuntCalShuntCalAActualResistance(TaskHandle taskHandle, const char channel[], float64 *data); int32 __CFUNC DAQmxSetAIBridgeShuntCalShuntCalAActualResistance(TaskHandle taskHandle, const char channel[], float64 data); int32 __CFUNC DAQmxResetAIBridgeShuntCalShuntCalAActualResistance(TaskHandle taskHandle, const char channel[]); //*** Set/Get functions for DAQmx_AI_Bridge_Balance_CoarsePot *** int32 __CFUNC DAQmxGetAIBridgeBalanceCoarsePot(TaskHandle taskHandle, const char channel[], int32 *data); int32 __CFUNC DAQmxSetAIBridgeBalanceCoarsePot(TaskHandle taskHandle, const char channel[], int32 data); int32 __CFUNC DAQmxResetAIBridgeBalanceCoarsePot(TaskHandle taskHandle, const char channel[]); //*** Set/Get functions for DAQmx_AI_Bridge_Balance_FinePot *** int32 __CFUNC DAQmxGetAIBridgeBalanceFinePot(TaskHandle taskHandle, const char channel[], int32 *data); int32 __CFUNC DAQmxSetAIBridgeBalanceFinePot(TaskHandle taskHandle, const char channel[], int32 data); int32 __CFUNC DAQmxResetAIBridgeBalanceFinePot(TaskHandle taskHandle, const char channel[]); //*** Set/Get functions for DAQmx_AI_CurrentShunt_Loc *** // Uses value set CurrentShuntResistorLocation1 int32 __CFUNC DAQmxGetAICurrentShuntLoc(TaskHandle taskHandle, const char channel[], int32 *data); int32 __CFUNC DAQmxSetAICurrentShuntLoc(TaskHandle taskHandle, const char channel[], int32 data); int32 __CFUNC DAQmxResetAICurrentShuntLoc(TaskHandle taskHandle, const char channel[]); //*** Set/Get functions for DAQmx_AI_CurrentShunt_Resistance *** int32 __CFUNC DAQmxGetAICurrentShuntResistance(TaskHandle taskHandle, const char channel[], float64 *data); int32 __CFUNC DAQmxSetAICurrentShuntResistance(TaskHandle taskHandle, const char channel[], float64 data); int32 __CFUNC DAQmxResetAICurrentShuntResistance(TaskHandle taskHandle, const char channel[]); //*** Set/Get functions for DAQmx_AI_Excit_Src *** // Uses value set ExcitationSource int32 __CFUNC DAQmxGetAIExcitSrc(TaskHandle taskHandle, const char channel[], int32 *data); int32 __CFUNC DAQmxSetAIExcitSrc(TaskHandle taskHandle, const char channel[], int32 data); int32 __CFUNC DAQmxResetAIExcitSrc(TaskHandle taskHandle, const char channel[]); //*** Set/Get functions for DAQmx_AI_Excit_Val *** int32 __CFUNC DAQmxGetAIExcitVal(TaskHandle taskHandle, const char channel[], float64 *data); int32 __CFUNC DAQmxSetAIExcitVal(TaskHandle taskHandle, const char channel[], float64 data); int32 __CFUNC DAQmxResetAIExcitVal(TaskHandle taskHandle, const char channel[]); //*** Set/Get functions for DAQmx_AI_Excit_UseForScaling *** int32 __CFUNC DAQmxGetAIExcitUseForScaling(TaskHandle taskHandle, const char channel[], bool32 *data); int32 __CFUNC DAQmxSetAIExcitUseForScaling(TaskHandle taskHandle, const char channel[], bool32 data); int32 __CFUNC DAQmxResetAIExcitUseForScaling(TaskHandle taskHandle, const char channel[]); //*** Set/Get functions for DAQmx_AI_Excit_UseMultiplexed *** int32 __CFUNC DAQmxGetAIExcitUseMultiplexed(TaskHandle taskHandle, const char channel[], bool32 *data); int32 __CFUNC DAQmxSetAIExcitUseMultiplexed(TaskHandle taskHandle, const char channel[], bool32 data); int32 __CFUNC DAQmxResetAIExcitUseMultiplexed(TaskHandle taskHandle, const char channel[]); //*** Set/Get functions for DAQmx_AI_Excit_ActualVal *** int32 __CFUNC DAQmxGetAIExcitActualVal(TaskHandle taskHandle, const char channel[], float64 *data); int32 __CFUNC DAQmxSetAIExcitActualVal(TaskHandle taskHandle, const char channel[], float64 data); int32 __CFUNC DAQmxResetAIExcitActualVal(TaskHandle taskHandle, const char channel[]); //*** Set/Get functions for DAQmx_AI_Excit_DCorAC *** // Uses value set ExcitationDCorAC int32 __CFUNC DAQmxGetAIExcitDCorAC(TaskHandle taskHandle, const char channel[], int32 *data); int32 __CFUNC DAQmxSetAIExcitDCorAC(TaskHandle taskHandle, const char channel[], int32 data); int32 __CFUNC DAQmxResetAIExcitDCorAC(TaskHandle taskHandle, const char channel[]); //*** Set/Get functions for DAQmx_AI_Excit_VoltageOrCurrent *** // Uses value set ExcitationVoltageOrCurrent int32 __CFUNC DAQmxGetAIExcitVoltageOrCurrent(TaskHandle taskHandle, const char channel[], int32 *data); int32 __CFUNC DAQmxSetAIExcitVoltageOrCurrent(TaskHandle taskHandle, const char channel[], int32 data); int32 __CFUNC DAQmxResetAIExcitVoltageOrCurrent(TaskHandle taskHandle, const char channel[]); //*** Set/Get functions for DAQmx_AI_ACExcit_Freq *** int32 __CFUNC DAQmxGetAIACExcitFreq(TaskHandle taskHandle, const char channel[], float64 *data); int32 __CFUNC DAQmxSetAIACExcitFreq(TaskHandle taskHandle, const char channel[], float64 data); int32 __CFUNC DAQmxResetAIACExcitFreq(TaskHandle taskHandle, const char channel[]); //*** Set/Get functions for DAQmx_AI_ACExcit_SyncEnable *** int32 __CFUNC DAQmxGetAIACExcitSyncEnable(TaskHandle taskHandle, const char channel[], bool32 *data); int32 __CFUNC DAQmxSetAIACExcitSyncEnable(TaskHandle taskHandle, const char channel[], bool32 data); int32 __CFUNC DAQmxResetAIACExcitSyncEnable(TaskHandle taskHandle, const char channel[]); //*** Set/Get functions for DAQmx_AI_ACExcit_WireMode *** // Uses value set ACExcitWireMode int32 __CFUNC DAQmxGetAIACExcitWireMode(TaskHandle taskHandle, const char channel[], int32 *data); int32 __CFUNC DAQmxSetAIACExcitWireMode(TaskHandle taskHandle, const char channel[], int32 data); int32 __CFUNC DAQmxResetAIACExcitWireMode(TaskHandle taskHandle, const char channel[]); //*** Set/Get functions for DAQmx_AI_OpenThrmcplDetectEnable *** int32 __CFUNC DAQmxGetAIOpenThrmcplDetectEnable(TaskHandle taskHandle, const char channel[], bool32 *data); int32 __CFUNC DAQmxSetAIOpenThrmcplDetectEnable(TaskHandle taskHandle, const char channel[], bool32 data); int32 __CFUNC DAQmxResetAIOpenThrmcplDetectEnable(TaskHandle taskHandle, const char channel[]); //*** Set/Get functions for DAQmx_AI_Thrmcpl_LeadOffsetVoltage *** int32 __CFUNC DAQmxGetAIThrmcplLeadOffsetVoltage(TaskHandle taskHandle, const char channel[], float64 *data); int32 __CFUNC DAQmxSetAIThrmcplLeadOffsetVoltage(TaskHandle taskHandle, const char channel[], float64 data); int32 __CFUNC DAQmxResetAIThrmcplLeadOffsetVoltage(TaskHandle taskHandle, const char channel[]); //*** Set/Get functions for DAQmx_AI_Atten *** int32 __CFUNC DAQmxGetAIAtten(TaskHandle taskHandle, const char channel[], float64 *data); int32 __CFUNC DAQmxSetAIAtten(TaskHandle taskHandle, const char channel[], float64 data); int32 __CFUNC DAQmxResetAIAtten(TaskHandle taskHandle, const char channel[]); //*** Set/Get functions for DAQmx_AI_ProbeAtten *** int32 __CFUNC DAQmxGetAIProbeAtten(TaskHandle taskHandle, const char channel[], float64 *data); int32 __CFUNC DAQmxSetAIProbeAtten(TaskHandle taskHandle, const char channel[], float64 data); int32 __CFUNC DAQmxResetAIProbeAtten(TaskHandle taskHandle, const char channel[]); //*** Set/Get functions for DAQmx_AI_Lowpass_Enable *** int32 __CFUNC DAQmxGetAILowpassEnable(TaskHandle taskHandle, const char channel[], bool32 *data); int32 __CFUNC DAQmxSetAILowpassEnable(TaskHandle taskHandle, const char channel[], bool32 data); int32 __CFUNC DAQmxResetAILowpassEnable(TaskHandle taskHandle, const char channel[]); //*** Set/Get functions for DAQmx_AI_Lowpass_CutoffFreq *** int32 __CFUNC DAQmxGetAILowpassCutoffFreq(TaskHandle taskHandle, const char channel[], float64 *data); int32 __CFUNC DAQmxSetAILowpassCutoffFreq(TaskHandle taskHandle, const char channel[], float64 data); int32 __CFUNC DAQmxResetAILowpassCutoffFreq(TaskHandle taskHandle, const char channel[]); //*** Set/Get functions for DAQmx_AI_Lowpass_SwitchCap_ClkSrc *** // Uses value set SourceSelection int32 __CFUNC DAQmxGetAILowpassSwitchCapClkSrc(TaskHandle taskHandle, const char channel[], int32 *data); int32 __CFUNC DAQmxSetAILowpassSwitchCapClkSrc(TaskHandle taskHandle, const char channel[], int32 data); int32 __CFUNC DAQmxResetAILowpassSwitchCapClkSrc(TaskHandle taskHandle, const char channel[]); //*** Set/Get functions for DAQmx_AI_Lowpass_SwitchCap_ExtClkFreq *** int32 __CFUNC DAQmxGetAILowpassSwitchCapExtClkFreq(TaskHandle taskHandle, const char channel[], float64 *data); int32 __CFUNC DAQmxSetAILowpassSwitchCapExtClkFreq(TaskHandle taskHandle, const char channel[], float64 data); int32 __CFUNC DAQmxResetAILowpassSwitchCapExtClkFreq(TaskHandle taskHandle, const char channel[]); //*** Set/Get functions for DAQmx_AI_Lowpass_SwitchCap_ExtClkDiv *** int32 __CFUNC DAQmxGetAILowpassSwitchCapExtClkDiv(TaskHandle taskHandle, const char channel[], uInt32 *data); int32 __CFUNC DAQmxSetAILowpassSwitchCapExtClkDiv(TaskHandle taskHandle, const char channel[], uInt32 data); int32 __CFUNC DAQmxResetAILowpassSwitchCapExtClkDiv(TaskHandle taskHandle, const char channel[]); //*** Set/Get functions for DAQmx_AI_Lowpass_SwitchCap_OutClkDiv *** int32 __CFUNC DAQmxGetAILowpassSwitchCapOutClkDiv(TaskHandle taskHandle, const char channel[], uInt32 *data); int32 __CFUNC DAQmxSetAILowpassSwitchCapOutClkDiv(TaskHandle taskHandle, const char channel[], uInt32 data); int32 __CFUNC DAQmxResetAILowpassSwitchCapOutClkDiv(TaskHandle taskHandle, const char channel[]); //*** Set/Get functions for DAQmx_AI_RemoveFilterDelay *** int32 __CFUNC DAQmxGetAIRemoveFilterDelay(TaskHandle taskHandle, const char channel[], bool32 *data); int32 __CFUNC DAQmxSetAIRemoveFilterDelay(TaskHandle taskHandle, const char channel[], bool32 data); int32 __CFUNC DAQmxResetAIRemoveFilterDelay(TaskHandle taskHandle, const char channel[]); //*** Set/Get functions for DAQmx_AI_ResolutionUnits *** // Uses value set ResolutionType1 int32 __CFUNC DAQmxGetAIResolutionUnits(TaskHandle taskHandle, const char channel[], int32 *data); //*** Set/Get functions for DAQmx_AI_Resolution *** int32 __CFUNC DAQmxGetAIResolution(TaskHandle taskHandle, const char channel[], float64 *data); //*** Set/Get functions for DAQmx_AI_RawSampSize *** int32 __CFUNC DAQmxGetAIRawSampSize(TaskHandle taskHandle, const char channel[], uInt32 *data); //*** Set/Get functions for DAQmx_AI_RawSampJustification *** // Uses value set DataJustification1 int32 __CFUNC DAQmxGetAIRawSampJustification(TaskHandle taskHandle, const char channel[], int32 *data); //*** Set/Get functions for DAQmx_AI_ADCTimingMode *** // Uses value set ADCTimingMode int32 __CFUNC DAQmxGetAIADCTimingMode(TaskHandle taskHandle, const char channel[], int32 *data); int32 __CFUNC DAQmxSetAIADCTimingMode(TaskHandle taskHandle, const char channel[], int32 data); int32 __CFUNC DAQmxResetAIADCTimingMode(TaskHandle taskHandle, const char channel[]); //*** Set/Get functions for DAQmx_AI_ADCCustomTimingMode *** int32 __CFUNC DAQmxGetAIADCCustomTimingMode(TaskHandle taskHandle, const char channel[], uInt32 *data); int32 __CFUNC DAQmxSetAIADCCustomTimingMode(TaskHandle taskHandle, const char channel[], uInt32 data); int32 __CFUNC DAQmxResetAIADCCustomTimingMode(TaskHandle taskHandle, const char channel[]); //*** Set/Get functions for DAQmx_AI_Dither_Enable *** int32 __CFUNC DAQmxGetAIDitherEnable(TaskHandle taskHandle, const char channel[], bool32 *data); int32 __CFUNC DAQmxSetAIDitherEnable(TaskHandle taskHandle, const char channel[], bool32 data); int32 __CFUNC DAQmxResetAIDitherEnable(TaskHandle taskHandle, const char channel[]); //*** Set/Get functions for DAQmx_AI_ChanCal_HasValidCalInfo *** int32 __CFUNC DAQmxGetAIChanCalHasValidCalInfo(TaskHandle taskHandle, const char channel[], bool32 *data); //*** Set/Get functions for DAQmx_AI_ChanCal_EnableCal *** int32 __CFUNC DAQmxGetAIChanCalEnableCal(TaskHandle taskHandle, const char channel[], bool32 *data); int32 __CFUNC DAQmxSetAIChanCalEnableCal(TaskHandle taskHandle, const char channel[], bool32 data); int32 __CFUNC DAQmxResetAIChanCalEnableCal(TaskHandle taskHandle, const char channel[]); //*** Set/Get functions for DAQmx_AI_ChanCal_ApplyCalIfExp *** int32 __CFUNC DAQmxGetAIChanCalApplyCalIfExp(TaskHandle taskHandle, const char channel[], bool32 *data); int32 __CFUNC DAQmxSetAIChanCalApplyCalIfExp(TaskHandle taskHandle, const char channel[], bool32 data); int32 __CFUNC DAQmxResetAIChanCalApplyCalIfExp(TaskHandle taskHandle, const char channel[]); //*** Set/Get functions for DAQmx_AI_ChanCal_ScaleType *** // Uses value set ScaleType3 int32 __CFUNC DAQmxGetAIChanCalScaleType(TaskHandle taskHandle, const char channel[], int32 *data); int32 __CFUNC DAQmxSetAIChanCalScaleType(TaskHandle taskHandle, const char channel[], int32 data); int32 __CFUNC DAQmxResetAIChanCalScaleType(TaskHandle taskHandle, const char channel[]); //*** Set/Get functions for DAQmx_AI_ChanCal_Table_PreScaledVals *** int32 __CFUNC DAQmxGetAIChanCalTablePreScaledVals(TaskHandle taskHandle, const char channel[], float64 *data, uInt32 arraySizeInElements); int32 __CFUNC DAQmxSetAIChanCalTablePreScaledVals(TaskHandle taskHandle, const char channel[], float64 *data, uInt32 arraySizeInElements); int32 __CFUNC DAQmxResetAIChanCalTablePreScaledVals(TaskHandle taskHandle, const char channel[]); //*** Set/Get functions for DAQmx_AI_ChanCal_Table_ScaledVals *** int32 __CFUNC DAQmxGetAIChanCalTableScaledVals(TaskHandle taskHandle, const char channel[], float64 *data, uInt32 arraySizeInElements); int32 __CFUNC DAQmxSetAIChanCalTableScaledVals(TaskHandle taskHandle, const char channel[], float64 *data, uInt32 arraySizeInElements); int32 __CFUNC DAQmxResetAIChanCalTableScaledVals(TaskHandle taskHandle, const char channel[]); //*** Set/Get functions for DAQmx_AI_ChanCal_Poly_ForwardCoeff *** int32 __CFUNC DAQmxGetAIChanCalPolyForwardCoeff(TaskHandle taskHandle, const char channel[], float64 *data, uInt32 arraySizeInElements); int32 __CFUNC DAQmxSetAIChanCalPolyForwardCoeff(TaskHandle taskHandle, const char channel[], float64 *data, uInt32 arraySizeInElements); int32 __CFUNC DAQmxResetAIChanCalPolyForwardCoeff(TaskHandle taskHandle, const char channel[]); //*** Set/Get functions for DAQmx_AI_ChanCal_Poly_ReverseCoeff *** int32 __CFUNC DAQmxGetAIChanCalPolyReverseCoeff(TaskHandle taskHandle, const char channel[], float64 *data, uInt32 arraySizeInElements); int32 __CFUNC DAQmxSetAIChanCalPolyReverseCoeff(TaskHandle taskHandle, const char channel[], float64 *data, uInt32 arraySizeInElements); int32 __CFUNC DAQmxResetAIChanCalPolyReverseCoeff(TaskHandle taskHandle, const char channel[]); //*** Set/Get functions for DAQmx_AI_ChanCal_OperatorName *** int32 __CFUNC DAQmxGetAIChanCalOperatorName(TaskHandle taskHandle, const char channel[], char *data, uInt32 bufferSize); int32 __CFUNC DAQmxSetAIChanCalOperatorName(TaskHandle taskHandle, const char channel[], const char *data); int32 __CFUNC DAQmxResetAIChanCalOperatorName(TaskHandle taskHandle, const char channel[]); //*** Set/Get functions for DAQmx_AI_ChanCal_Desc *** int32 __CFUNC DAQmxGetAIChanCalDesc(TaskHandle taskHandle, const char channel[], char *data, uInt32 bufferSize); int32 __CFUNC DAQmxSetAIChanCalDesc(TaskHandle taskHandle, const char channel[], const char *data); int32 __CFUNC DAQmxResetAIChanCalDesc(TaskHandle taskHandle, const char channel[]); //*** Set/Get functions for DAQmx_AI_ChanCal_Verif_RefVals *** int32 __CFUNC DAQmxGetAIChanCalVerifRefVals(TaskHandle taskHandle, const char channel[], float64 *data, uInt32 arraySizeInElements); int32 __CFUNC DAQmxSetAIChanCalVerifRefVals(TaskHandle taskHandle, const char channel[], float64 *data, uInt32 arraySizeInElements); int32 __CFUNC DAQmxResetAIChanCalVerifRefVals(TaskHandle taskHandle, const char channel[]); //*** Set/Get functions for DAQmx_AI_ChanCal_Verif_AcqVals *** int32 __CFUNC DAQmxGetAIChanCalVerifAcqVals(TaskHandle taskHandle, const char channel[], float64 *data, uInt32 arraySizeInElements); int32 __CFUNC DAQmxSetAIChanCalVerifAcqVals(TaskHandle taskHandle, const char channel[], float64 *data, uInt32 arraySizeInElements); int32 __CFUNC DAQmxResetAIChanCalVerifAcqVals(TaskHandle taskHandle, const char channel[]); //*** Set/Get functions for DAQmx_AI_Rng_High *** int32 __CFUNC DAQmxGetAIRngHigh(TaskHandle taskHandle, const char channel[], float64 *data); int32 __CFUNC DAQmxSetAIRngHigh(TaskHandle taskHandle, const char channel[], float64 data); int32 __CFUNC DAQmxResetAIRngHigh(TaskHandle taskHandle, const char channel[]); //*** Set/Get functions for DAQmx_AI_Rng_Low *** int32 __CFUNC DAQmxGetAIRngLow(TaskHandle taskHandle, const char channel[], float64 *data); int32 __CFUNC DAQmxSetAIRngLow(TaskHandle taskHandle, const char channel[], float64 data); int32 __CFUNC DAQmxResetAIRngLow(TaskHandle taskHandle, const char channel[]); //*** Set/Get functions for DAQmx_AI_DCOffset *** int32 __CFUNC DAQmxGetAIDCOffset(TaskHandle taskHandle, const char channel[], float64 *data); int32 __CFUNC DAQmxSetAIDCOffset(TaskHandle taskHandle, const char channel[], float64 data); int32 __CFUNC DAQmxResetAIDCOffset(TaskHandle taskHandle, const char channel[]); //*** Set/Get functions for DAQmx_AI_Gain *** int32 __CFUNC DAQmxGetAIGain(TaskHandle taskHandle, const char channel[], float64 *data); int32 __CFUNC DAQmxSetAIGain(TaskHandle taskHandle, const char channel[], float64 data); int32 __CFUNC DAQmxResetAIGain(TaskHandle taskHandle, const char channel[]); //*** Set/Get functions for DAQmx_AI_SampAndHold_Enable *** int32 __CFUNC DAQmxGetAISampAndHoldEnable(TaskHandle taskHandle, const char channel[], bool32 *data); int32 __CFUNC DAQmxSetAISampAndHoldEnable(TaskHandle taskHandle, const char channel[], bool32 data); int32 __CFUNC DAQmxResetAISampAndHoldEnable(TaskHandle taskHandle, const char channel[]); //*** Set/Get functions for DAQmx_AI_AutoZeroMode *** // Uses value set AutoZeroType1 int32 __CFUNC DAQmxGetAIAutoZeroMode(TaskHandle taskHandle, const char channel[], int32 *data); int32 __CFUNC DAQmxSetAIAutoZeroMode(TaskHandle taskHandle, const char channel[], int32 data); int32 __CFUNC DAQmxResetAIAutoZeroMode(TaskHandle taskHandle, const char channel[]); //*** Set/Get functions for DAQmx_AI_DataXferMech *** // Uses value set DataTransferMechanism int32 __CFUNC DAQmxGetAIDataXferMech(TaskHandle taskHandle, const char channel[], int32 *data); int32 __CFUNC DAQmxSetAIDataXferMech(TaskHandle taskHandle, const char channel[], int32 data); int32 __CFUNC DAQmxResetAIDataXferMech(TaskHandle taskHandle, const char channel[]); //*** Set/Get functions for DAQmx_AI_DataXferReqCond *** // Uses value set InputDataTransferCondition int32 __CFUNC DAQmxGetAIDataXferReqCond(TaskHandle taskHandle, const char channel[], int32 *data); int32 __CFUNC DAQmxSetAIDataXferReqCond(TaskHandle taskHandle, const char channel[], int32 data); int32 __CFUNC DAQmxResetAIDataXferReqCond(TaskHandle taskHandle, const char channel[]); //*** Set/Get functions for DAQmx_AI_DataXferCustomThreshold *** int32 __CFUNC DAQmxGetAIDataXferCustomThreshold(TaskHandle taskHandle, const char channel[], uInt32 *data); int32 __CFUNC DAQmxSetAIDataXferCustomThreshold(TaskHandle taskHandle, const char channel[], uInt32 data); int32 __CFUNC DAQmxResetAIDataXferCustomThreshold(TaskHandle taskHandle, const char channel[]); //*** Set/Get functions for DAQmx_AI_UsbXferReqSize *** int32 __CFUNC DAQmxGetAIUsbXferReqSize(TaskHandle taskHandle, const char channel[], uInt32 *data); int32 __CFUNC DAQmxSetAIUsbXferReqSize(TaskHandle taskHandle, const char channel[], uInt32 data); int32 __CFUNC DAQmxResetAIUsbXferReqSize(TaskHandle taskHandle, const char channel[]); //*** Set/Get functions for DAQmx_AI_MemMapEnable *** int32 __CFUNC DAQmxGetAIMemMapEnable(TaskHandle taskHandle, const char channel[], bool32 *data); int32 __CFUNC DAQmxSetAIMemMapEnable(TaskHandle taskHandle, const char channel[], bool32 data); int32 __CFUNC DAQmxResetAIMemMapEnable(TaskHandle taskHandle, const char channel[]); //*** Set/Get functions for DAQmx_AI_RawDataCompressionType *** // Uses value set RawDataCompressionType int32 __CFUNC DAQmxGetAIRawDataCompressionType(TaskHandle taskHandle, const char channel[], int32 *data); int32 __CFUNC DAQmxSetAIRawDataCompressionType(TaskHandle taskHandle, const char channel[], int32 data); int32 __CFUNC DAQmxResetAIRawDataCompressionType(TaskHandle taskHandle, const char channel[]); //*** Set/Get functions for DAQmx_AI_LossyLSBRemoval_CompressedSampSize *** int32 __CFUNC DAQmxGetAILossyLSBRemovalCompressedSampSize(TaskHandle taskHandle, const char channel[], uInt32 *data); int32 __CFUNC DAQmxSetAILossyLSBRemovalCompressedSampSize(TaskHandle taskHandle, const char channel[], uInt32 data); int32 __CFUNC DAQmxResetAILossyLSBRemovalCompressedSampSize(TaskHandle taskHandle, const char channel[]); //*** Set/Get functions for DAQmx_AI_DevScalingCoeff *** int32 __CFUNC DAQmxGetAIDevScalingCoeff(TaskHandle taskHandle, const char channel[], float64 *data, uInt32 arraySizeInElements); //*** Set/Get functions for DAQmx_AI_EnhancedAliasRejectionEnable *** int32 __CFUNC DAQmxGetAIEnhancedAliasRejectionEnable(TaskHandle taskHandle, const char channel[], bool32 *data); int32 __CFUNC DAQmxSetAIEnhancedAliasRejectionEnable(TaskHandle taskHandle, const char channel[], bool32 data); int32 __CFUNC DAQmxResetAIEnhancedAliasRejectionEnable(TaskHandle taskHandle, const char channel[]); //*** Set/Get functions for DAQmx_AO_Max *** int32 __CFUNC DAQmxGetAOMax(TaskHandle taskHandle, const char channel[], float64 *data); int32 __CFUNC DAQmxSetAOMax(TaskHandle taskHandle, const char channel[], float64 data); int32 __CFUNC DAQmxResetAOMax(TaskHandle taskHandle, const char channel[]); //*** Set/Get functions for DAQmx_AO_Min *** int32 __CFUNC DAQmxGetAOMin(TaskHandle taskHandle, const char channel[], float64 *data); int32 __CFUNC DAQmxSetAOMin(TaskHandle taskHandle, const char channel[], float64 data); int32 __CFUNC DAQmxResetAOMin(TaskHandle taskHandle, const char channel[]); //*** Set/Get functions for DAQmx_AO_CustomScaleName *** int32 __CFUNC DAQmxGetAOCustomScaleName(TaskHandle taskHandle, const char channel[], char *data, uInt32 bufferSize); int32 __CFUNC DAQmxSetAOCustomScaleName(TaskHandle taskHandle, const char channel[], const char *data); int32 __CFUNC DAQmxResetAOCustomScaleName(TaskHandle taskHandle, const char channel[]); //*** Set/Get functions for DAQmx_AO_OutputType *** // Uses value set AOOutputChannelType int32 __CFUNC DAQmxGetAOOutputType(TaskHandle taskHandle, const char channel[], int32 *data); //*** Set/Get functions for DAQmx_AO_Voltage_Units *** // Uses value set VoltageUnits2 int32 __CFUNC DAQmxGetAOVoltageUnits(TaskHandle taskHandle, const char channel[], int32 *data); int32 __CFUNC DAQmxSetAOVoltageUnits(TaskHandle taskHandle, const char channel[], int32 data); int32 __CFUNC DAQmxResetAOVoltageUnits(TaskHandle taskHandle, const char channel[]); //*** Set/Get functions for DAQmx_AO_Voltage_CurrentLimit *** int32 __CFUNC DAQmxGetAOVoltageCurrentLimit(TaskHandle taskHandle, const char channel[], float64 *data); int32 __CFUNC DAQmxSetAOVoltageCurrentLimit(TaskHandle taskHandle, const char channel[], float64 data); int32 __CFUNC DAQmxResetAOVoltageCurrentLimit(TaskHandle taskHandle, const char channel[]); //*** Set/Get functions for DAQmx_AO_Current_Units *** // Uses value set CurrentUnits1 int32 __CFUNC DAQmxGetAOCurrentUnits(TaskHandle taskHandle, const char channel[], int32 *data); int32 __CFUNC DAQmxSetAOCurrentUnits(TaskHandle taskHandle, const char channel[], int32 data); int32 __CFUNC DAQmxResetAOCurrentUnits(TaskHandle taskHandle, const char channel[]); //*** Set/Get functions for DAQmx_AO_FuncGen_Type *** // Uses value set FuncGenType int32 __CFUNC DAQmxGetAOFuncGenType(TaskHandle taskHandle, const char channel[], int32 *data); int32 __CFUNC DAQmxSetAOFuncGenType(TaskHandle taskHandle, const char channel[], int32 data); int32 __CFUNC DAQmxResetAOFuncGenType(TaskHandle taskHandle, const char channel[]); //*** Set/Get functions for DAQmx_AO_FuncGen_Freq *** int32 __CFUNC DAQmxGetAOFuncGenFreq(TaskHandle taskHandle, const char channel[], float64 *data); int32 __CFUNC DAQmxSetAOFuncGenFreq(TaskHandle taskHandle, const char channel[], float64 data); int32 __CFUNC DAQmxResetAOFuncGenFreq(TaskHandle taskHandle, const char channel[]); //*** Set/Get functions for DAQmx_AO_FuncGen_Amplitude *** int32 __CFUNC DAQmxGetAOFuncGenAmplitude(TaskHandle taskHandle, const char channel[], float64 *data); int32 __CFUNC DAQmxSetAOFuncGenAmplitude(TaskHandle taskHandle, const char channel[], float64 data); int32 __CFUNC DAQmxResetAOFuncGenAmplitude(TaskHandle taskHandle, const char channel[]); //*** Set/Get functions for DAQmx_AO_FuncGen_Offset *** int32 __CFUNC DAQmxGetAOFuncGenOffset(TaskHandle taskHandle, const char channel[], float64 *data); int32 __CFUNC DAQmxSetAOFuncGenOffset(TaskHandle taskHandle, const char channel[], float64 data); int32 __CFUNC DAQmxResetAOFuncGenOffset(TaskHandle taskHandle, const char channel[]); //*** Set/Get functions for DAQmx_AO_FuncGen_Square_DutyCycle *** int32 __CFUNC DAQmxGetAOFuncGenSquareDutyCycle(TaskHandle taskHandle, const char channel[], float64 *data); int32 __CFUNC DAQmxSetAOFuncGenSquareDutyCycle(TaskHandle taskHandle, const char channel[], float64 data); int32 __CFUNC DAQmxResetAOFuncGenSquareDutyCycle(TaskHandle taskHandle, const char channel[]); //*** Set/Get functions for DAQmx_AO_FuncGen_ModulationType *** // Uses value set ModulationType int32 __CFUNC DAQmxGetAOFuncGenModulationType(TaskHandle taskHandle, const char channel[], int32 *data); int32 __CFUNC DAQmxSetAOFuncGenModulationType(TaskHandle taskHandle, const char channel[], int32 data); int32 __CFUNC DAQmxResetAOFuncGenModulationType(TaskHandle taskHandle, const char channel[]); //*** Set/Get functions for DAQmx_AO_FuncGen_FMDeviation *** int32 __CFUNC DAQmxGetAOFuncGenFMDeviation(TaskHandle taskHandle, const char channel[], float64 *data); int32 __CFUNC DAQmxSetAOFuncGenFMDeviation(TaskHandle taskHandle, const char channel[], float64 data); int32 __CFUNC DAQmxResetAOFuncGenFMDeviation(TaskHandle taskHandle, const char channel[]); //*** Set/Get functions for DAQmx_AO_OutputImpedance *** int32 __CFUNC DAQmxGetAOOutputImpedance(TaskHandle taskHandle, const char channel[], float64 *data); int32 __CFUNC DAQmxSetAOOutputImpedance(TaskHandle taskHandle, const char channel[], float64 data); int32 __CFUNC DAQmxResetAOOutputImpedance(TaskHandle taskHandle, const char channel[]); //*** Set/Get functions for DAQmx_AO_LoadImpedance *** int32 __CFUNC DAQmxGetAOLoadImpedance(TaskHandle taskHandle, const char channel[], float64 *data); int32 __CFUNC DAQmxSetAOLoadImpedance(TaskHandle taskHandle, const char channel[], float64 data); int32 __CFUNC DAQmxResetAOLoadImpedance(TaskHandle taskHandle, const char channel[]); //*** Set/Get functions for DAQmx_AO_IdleOutputBehavior *** // Uses value set AOIdleOutputBehavior int32 __CFUNC DAQmxGetAOIdleOutputBehavior(TaskHandle taskHandle, const char channel[], int32 *data); int32 __CFUNC DAQmxSetAOIdleOutputBehavior(TaskHandle taskHandle, const char channel[], int32 data); int32 __CFUNC DAQmxResetAOIdleOutputBehavior(TaskHandle taskHandle, const char channel[]); //*** Set/Get functions for DAQmx_AO_TermCfg *** // Uses value set OutputTermCfg int32 __CFUNC DAQmxGetAOTermCfg(TaskHandle taskHandle, const char channel[], int32 *data); int32 __CFUNC DAQmxSetAOTermCfg(TaskHandle taskHandle, const char channel[], int32 data); int32 __CFUNC DAQmxResetAOTermCfg(TaskHandle taskHandle, const char channel[]); //*** Set/Get functions for DAQmx_AO_ResolutionUnits *** // Uses value set ResolutionType1 int32 __CFUNC DAQmxGetAOResolutionUnits(TaskHandle taskHandle, const char channel[], int32 *data); int32 __CFUNC DAQmxSetAOResolutionUnits(TaskHandle taskHandle, const char channel[], int32 data); int32 __CFUNC DAQmxResetAOResolutionUnits(TaskHandle taskHandle, const char channel[]); //*** Set/Get functions for DAQmx_AO_Resolution *** int32 __CFUNC DAQmxGetAOResolution(TaskHandle taskHandle, const char channel[], float64 *data); //*** Set/Get functions for DAQmx_AO_DAC_Rng_High *** int32 __CFUNC DAQmxGetAODACRngHigh(TaskHandle taskHandle, const char channel[], float64 *data); int32 __CFUNC DAQmxSetAODACRngHigh(TaskHandle taskHandle, const char channel[], float64 data); int32 __CFUNC DAQmxResetAODACRngHigh(TaskHandle taskHandle, const char channel[]); //*** Set/Get functions for DAQmx_AO_DAC_Rng_Low *** int32 __CFUNC DAQmxGetAODACRngLow(TaskHandle taskHandle, const char channel[], float64 *data); int32 __CFUNC DAQmxSetAODACRngLow(TaskHandle taskHandle, const char channel[], float64 data); int32 __CFUNC DAQmxResetAODACRngLow(TaskHandle taskHandle, const char channel[]); //*** Set/Get functions for DAQmx_AO_DAC_Ref_ConnToGnd *** int32 __CFUNC DAQmxGetAODACRefConnToGnd(TaskHandle taskHandle, const char channel[], bool32 *data); int32 __CFUNC DAQmxSetAODACRefConnToGnd(TaskHandle taskHandle, const char channel[], bool32 data); int32 __CFUNC DAQmxResetAODACRefConnToGnd(TaskHandle taskHandle, const char channel[]); //*** Set/Get functions for DAQmx_AO_DAC_Ref_AllowConnToGnd *** int32 __CFUNC DAQmxGetAODACRefAllowConnToGnd(TaskHandle taskHandle, const char channel[], bool32 *data); int32 __CFUNC DAQmxSetAODACRefAllowConnToGnd(TaskHandle taskHandle, const char channel[], bool32 data); int32 __CFUNC DAQmxResetAODACRefAllowConnToGnd(TaskHandle taskHandle, const char channel[]); //*** Set/Get functions for DAQmx_AO_DAC_Ref_Src *** // Uses value set SourceSelection int32 __CFUNC DAQmxGetAODACRefSrc(TaskHandle taskHandle, const char channel[], int32 *data); int32 __CFUNC DAQmxSetAODACRefSrc(TaskHandle taskHandle, const char channel[], int32 data); int32 __CFUNC DAQmxResetAODACRefSrc(TaskHandle taskHandle, const char channel[]); //*** Set/Get functions for DAQmx_AO_DAC_Ref_ExtSrc *** int32 __CFUNC DAQmxGetAODACRefExtSrc(TaskHandle taskHandle, const char channel[], char *data, uInt32 bufferSize); int32 __CFUNC DAQmxSetAODACRefExtSrc(TaskHandle taskHandle, const char channel[], const char *data); int32 __CFUNC DAQmxResetAODACRefExtSrc(TaskHandle taskHandle, const char channel[]); //*** Set/Get functions for DAQmx_AO_DAC_Ref_Val *** int32 __CFUNC DAQmxGetAODACRefVal(TaskHandle taskHandle, const char channel[], float64 *data); int32 __CFUNC DAQmxSetAODACRefVal(TaskHandle taskHandle, const char channel[], float64 data); int32 __CFUNC DAQmxResetAODACRefVal(TaskHandle taskHandle, const char channel[]); //*** Set/Get functions for DAQmx_AO_DAC_Offset_Src *** // Uses value set SourceSelection int32 __CFUNC DAQmxGetAODACOffsetSrc(TaskHandle taskHandle, const char channel[], int32 *data); int32 __CFUNC DAQmxSetAODACOffsetSrc(TaskHandle taskHandle, const char channel[], int32 data); int32 __CFUNC DAQmxResetAODACOffsetSrc(TaskHandle taskHandle, const char channel[]); //*** Set/Get functions for DAQmx_AO_DAC_Offset_ExtSrc *** int32 __CFUNC DAQmxGetAODACOffsetExtSrc(TaskHandle taskHandle, const char channel[], char *data, uInt32 bufferSize); int32 __CFUNC DAQmxSetAODACOffsetExtSrc(TaskHandle taskHandle, const char channel[], const char *data); int32 __CFUNC DAQmxResetAODACOffsetExtSrc(TaskHandle taskHandle, const char channel[]); //*** Set/Get functions for DAQmx_AO_DAC_Offset_Val *** int32 __CFUNC DAQmxGetAODACOffsetVal(TaskHandle taskHandle, const char channel[], float64 *data); int32 __CFUNC DAQmxSetAODACOffsetVal(TaskHandle taskHandle, const char channel[], float64 data); int32 __CFUNC DAQmxResetAODACOffsetVal(TaskHandle taskHandle, const char channel[]); //*** Set/Get functions for DAQmx_AO_ReglitchEnable *** int32 __CFUNC DAQmxGetAOReglitchEnable(TaskHandle taskHandle, const char channel[], bool32 *data); int32 __CFUNC DAQmxSetAOReglitchEnable(TaskHandle taskHandle, const char channel[], bool32 data); int32 __CFUNC DAQmxResetAOReglitchEnable(TaskHandle taskHandle, const char channel[]); //*** Set/Get functions for DAQmx_AO_Gain *** int32 __CFUNC DAQmxGetAOGain(TaskHandle taskHandle, const char channel[], float64 *data); int32 __CFUNC DAQmxSetAOGain(TaskHandle taskHandle, const char channel[], float64 data); int32 __CFUNC DAQmxResetAOGain(TaskHandle taskHandle, const char channel[]); //*** Set/Get functions for DAQmx_AO_UseOnlyOnBrdMem *** int32 __CFUNC DAQmxGetAOUseOnlyOnBrdMem(TaskHandle taskHandle, const char channel[], bool32 *data); int32 __CFUNC DAQmxSetAOUseOnlyOnBrdMem(TaskHandle taskHandle, const char channel[], bool32 data); int32 __CFUNC DAQmxResetAOUseOnlyOnBrdMem(TaskHandle taskHandle, const char channel[]); //*** Set/Get functions for DAQmx_AO_DataXferMech *** // Uses value set DataTransferMechanism int32 __CFUNC DAQmxGetAODataXferMech(TaskHandle taskHandle, const char channel[], int32 *data); int32 __CFUNC DAQmxSetAODataXferMech(TaskHandle taskHandle, const char channel[], int32 data); int32 __CFUNC DAQmxResetAODataXferMech(TaskHandle taskHandle, const char channel[]); //*** Set/Get functions for DAQmx_AO_DataXferReqCond *** // Uses value set OutputDataTransferCondition int32 __CFUNC DAQmxGetAODataXferReqCond(TaskHandle taskHandle, const char channel[], int32 *data); int32 __CFUNC DAQmxSetAODataXferReqCond(TaskHandle taskHandle, const char channel[], int32 data); int32 __CFUNC DAQmxResetAODataXferReqCond(TaskHandle taskHandle, const char channel[]); //*** Set/Get functions for DAQmx_AO_UsbXferReqSize *** int32 __CFUNC DAQmxGetAOUsbXferReqSize(TaskHandle taskHandle, const char channel[], uInt32 *data); int32 __CFUNC DAQmxSetAOUsbXferReqSize(TaskHandle taskHandle, const char channel[], uInt32 data); int32 __CFUNC DAQmxResetAOUsbXferReqSize(TaskHandle taskHandle, const char channel[]); //*** Set/Get functions for DAQmx_AO_MemMapEnable *** int32 __CFUNC DAQmxGetAOMemMapEnable(TaskHandle taskHandle, const char channel[], bool32 *data); int32 __CFUNC DAQmxSetAOMemMapEnable(TaskHandle taskHandle, const char channel[], bool32 data); int32 __CFUNC DAQmxResetAOMemMapEnable(TaskHandle taskHandle, const char channel[]); //*** Set/Get functions for DAQmx_AO_DevScalingCoeff *** int32 __CFUNC DAQmxGetAODevScalingCoeff(TaskHandle taskHandle, const char channel[], float64 *data, uInt32 arraySizeInElements); //*** Set/Get functions for DAQmx_AO_EnhancedImageRejectionEnable *** int32 __CFUNC DAQmxGetAOEnhancedImageRejectionEnable(TaskHandle taskHandle, const char channel[], bool32 *data); int32 __CFUNC DAQmxSetAOEnhancedImageRejectionEnable(TaskHandle taskHandle, const char channel[], bool32 data); int32 __CFUNC DAQmxResetAOEnhancedImageRejectionEnable(TaskHandle taskHandle, const char channel[]); //*** Set/Get functions for DAQmx_DI_InvertLines *** int32 __CFUNC DAQmxGetDIInvertLines(TaskHandle taskHandle, const char channel[], bool32 *data); int32 __CFUNC DAQmxSetDIInvertLines(TaskHandle taskHandle, const char channel[], bool32 data); int32 __CFUNC DAQmxResetDIInvertLines(TaskHandle taskHandle, const char channel[]); //*** Set/Get functions for DAQmx_DI_NumLines *** int32 __CFUNC DAQmxGetDINumLines(TaskHandle taskHandle, const char channel[], uInt32 *data); //*** Set/Get functions for DAQmx_DI_DigFltr_Enable *** int32 __CFUNC DAQmxGetDIDigFltrEnable(TaskHandle taskHandle, const char channel[], bool32 *data); int32 __CFUNC DAQmxSetDIDigFltrEnable(TaskHandle taskHandle, const char channel[], bool32 data); int32 __CFUNC DAQmxResetDIDigFltrEnable(TaskHandle taskHandle, const char channel[]); //*** Set/Get functions for DAQmx_DI_DigFltr_MinPulseWidth *** int32 __CFUNC DAQmxGetDIDigFltrMinPulseWidth(TaskHandle taskHandle, const char channel[], float64 *data); int32 __CFUNC DAQmxSetDIDigFltrMinPulseWidth(TaskHandle taskHandle, const char channel[], float64 data); int32 __CFUNC DAQmxResetDIDigFltrMinPulseWidth(TaskHandle taskHandle, const char channel[]); //*** Set/Get functions for DAQmx_DI_DigFltr_EnableBusMode *** int32 __CFUNC DAQmxGetDIDigFltrEnableBusMode(TaskHandle taskHandle, const char channel[], bool32 *data); int32 __CFUNC DAQmxSetDIDigFltrEnableBusMode(TaskHandle taskHandle, const char channel[], bool32 data); int32 __CFUNC DAQmxResetDIDigFltrEnableBusMode(TaskHandle taskHandle, const char channel[]); //*** Set/Get functions for DAQmx_DI_DigFltr_TimebaseSrc *** int32 __CFUNC DAQmxGetDIDigFltrTimebaseSrc(TaskHandle taskHandle, const char channel[], char *data, uInt32 bufferSize); int32 __CFUNC DAQmxSetDIDigFltrTimebaseSrc(TaskHandle taskHandle, const char channel[], const char *data); int32 __CFUNC DAQmxResetDIDigFltrTimebaseSrc(TaskHandle taskHandle, const char channel[]); //*** Set/Get functions for DAQmx_DI_DigFltr_TimebaseRate *** int32 __CFUNC DAQmxGetDIDigFltrTimebaseRate(TaskHandle taskHandle, const char channel[], float64 *data); int32 __CFUNC DAQmxSetDIDigFltrTimebaseRate(TaskHandle taskHandle, const char channel[], float64 data); int32 __CFUNC DAQmxResetDIDigFltrTimebaseRate(TaskHandle taskHandle, const char channel[]); //*** Set/Get functions for DAQmx_DI_DigSync_Enable *** int32 __CFUNC DAQmxGetDIDigSyncEnable(TaskHandle taskHandle, const char channel[], bool32 *data); int32 __CFUNC DAQmxSetDIDigSyncEnable(TaskHandle taskHandle, const char channel[], bool32 data); int32 __CFUNC DAQmxResetDIDigSyncEnable(TaskHandle taskHandle, const char channel[]); //*** Set/Get functions for DAQmx_DI_Tristate *** int32 __CFUNC DAQmxGetDITristate(TaskHandle taskHandle, const char channel[], bool32 *data); int32 __CFUNC DAQmxSetDITristate(TaskHandle taskHandle, const char channel[], bool32 data); int32 __CFUNC DAQmxResetDITristate(TaskHandle taskHandle, const char channel[]); //*** Set/Get functions for DAQmx_DI_LogicFamily *** // Uses value set LogicFamily int32 __CFUNC DAQmxGetDILogicFamily(TaskHandle taskHandle, const char channel[], int32 *data); int32 __CFUNC DAQmxSetDILogicFamily(TaskHandle taskHandle, const char channel[], int32 data); int32 __CFUNC DAQmxResetDILogicFamily(TaskHandle taskHandle, const char channel[]); //*** Set/Get functions for DAQmx_DI_DataXferMech *** // Uses value set DataTransferMechanism int32 __CFUNC DAQmxGetDIDataXferMech(TaskHandle taskHandle, const char channel[], int32 *data); int32 __CFUNC DAQmxSetDIDataXferMech(TaskHandle taskHandle, const char channel[], int32 data); int32 __CFUNC DAQmxResetDIDataXferMech(TaskHandle taskHandle, const char channel[]); //*** Set/Get functions for DAQmx_DI_DataXferReqCond *** // Uses value set InputDataTransferCondition int32 __CFUNC DAQmxGetDIDataXferReqCond(TaskHandle taskHandle, const char channel[], int32 *data); int32 __CFUNC DAQmxSetDIDataXferReqCond(TaskHandle taskHandle, const char channel[], int32 data); int32 __CFUNC DAQmxResetDIDataXferReqCond(TaskHandle taskHandle, const char channel[]); //*** Set/Get functions for DAQmx_DI_UsbXferReqSize *** int32 __CFUNC DAQmxGetDIUsbXferReqSize(TaskHandle taskHandle, const char channel[], uInt32 *data); int32 __CFUNC DAQmxSetDIUsbXferReqSize(TaskHandle taskHandle, const char channel[], uInt32 data); int32 __CFUNC DAQmxResetDIUsbXferReqSize(TaskHandle taskHandle, const char channel[]); //*** Set/Get functions for DAQmx_DI_MemMapEnable *** int32 __CFUNC DAQmxGetDIMemMapEnable(TaskHandle taskHandle, const char channel[], bool32 *data); int32 __CFUNC DAQmxSetDIMemMapEnable(TaskHandle taskHandle, const char channel[], bool32 data); int32 __CFUNC DAQmxResetDIMemMapEnable(TaskHandle taskHandle, const char channel[]); //*** Set/Get functions for DAQmx_DI_AcquireOn *** // Uses value set SampleClockActiveOrInactiveEdgeSelection int32 __CFUNC DAQmxGetDIAcquireOn(TaskHandle taskHandle, const char channel[], int32 *data); int32 __CFUNC DAQmxSetDIAcquireOn(TaskHandle taskHandle, const char channel[], int32 data); int32 __CFUNC DAQmxResetDIAcquireOn(TaskHandle taskHandle, const char channel[]); //*** Set/Get functions for DAQmx_DO_OutputDriveType *** // Uses value set DigitalDriveType int32 __CFUNC DAQmxGetDOOutputDriveType(TaskHandle taskHandle, const char channel[], int32 *data); int32 __CFUNC DAQmxSetDOOutputDriveType(TaskHandle taskHandle, const char channel[], int32 data); int32 __CFUNC DAQmxResetDOOutputDriveType(TaskHandle taskHandle, const char channel[]); //*** Set/Get functions for DAQmx_DO_InvertLines *** int32 __CFUNC DAQmxGetDOInvertLines(TaskHandle taskHandle, const char channel[], bool32 *data); int32 __CFUNC DAQmxSetDOInvertLines(TaskHandle taskHandle, const char channel[], bool32 data); int32 __CFUNC DAQmxResetDOInvertLines(TaskHandle taskHandle, const char channel[]); //*** Set/Get functions for DAQmx_DO_NumLines *** int32 __CFUNC DAQmxGetDONumLines(TaskHandle taskHandle, const char channel[], uInt32 *data); //*** Set/Get functions for DAQmx_DO_Tristate *** int32 __CFUNC DAQmxGetDOTristate(TaskHandle taskHandle, const char channel[], bool32 *data); int32 __CFUNC DAQmxSetDOTristate(TaskHandle taskHandle, const char channel[], bool32 data); int32 __CFUNC DAQmxResetDOTristate(TaskHandle taskHandle, const char channel[]); //*** Set/Get functions for DAQmx_DO_LineStates_StartState *** // Uses value set DigitalLineState int32 __CFUNC DAQmxGetDOLineStatesStartState(TaskHandle taskHandle, const char channel[], int32 *data); int32 __CFUNC DAQmxSetDOLineStatesStartState(TaskHandle taskHandle, const char channel[], int32 data); int32 __CFUNC DAQmxResetDOLineStatesStartState(TaskHandle taskHandle, const char channel[]); //*** Set/Get functions for DAQmx_DO_LineStates_PausedState *** // Uses value set DigitalLineState int32 __CFUNC DAQmxGetDOLineStatesPausedState(TaskHandle taskHandle, const char channel[], int32 *data); int32 __CFUNC DAQmxSetDOLineStatesPausedState(TaskHandle taskHandle, const char channel[], int32 data); int32 __CFUNC DAQmxResetDOLineStatesPausedState(TaskHandle taskHandle, const char channel[]); //*** Set/Get functions for DAQmx_DO_LineStates_DoneState *** // Uses value set DigitalLineState int32 __CFUNC DAQmxGetDOLineStatesDoneState(TaskHandle taskHandle, const char channel[], int32 *data); int32 __CFUNC DAQmxSetDOLineStatesDoneState(TaskHandle taskHandle, const char channel[], int32 data); int32 __CFUNC DAQmxResetDOLineStatesDoneState(TaskHandle taskHandle, const char channel[]); //*** Set/Get functions for DAQmx_DO_LogicFamily *** // Uses value set LogicFamily int32 __CFUNC DAQmxGetDOLogicFamily(TaskHandle taskHandle, const char channel[], int32 *data); int32 __CFUNC DAQmxSetDOLogicFamily(TaskHandle taskHandle, const char channel[], int32 data); int32 __CFUNC DAQmxResetDOLogicFamily(TaskHandle taskHandle, const char channel[]); //*** Set/Get functions for DAQmx_DO_Overcurrent_Limit *** int32 __CFUNC DAQmxGetDOOvercurrentLimit(TaskHandle taskHandle, const char channel[], float64 *data); int32 __CFUNC DAQmxSetDOOvercurrentLimit(TaskHandle taskHandle, const char channel[], float64 data); int32 __CFUNC DAQmxResetDOOvercurrentLimit(TaskHandle taskHandle, const char channel[]); //*** Set/Get functions for DAQmx_DO_Overcurrent_AutoReenable *** int32 __CFUNC DAQmxGetDOOvercurrentAutoReenable(TaskHandle taskHandle, const char channel[], bool32 *data); int32 __CFUNC DAQmxSetDOOvercurrentAutoReenable(TaskHandle taskHandle, const char channel[], bool32 data); int32 __CFUNC DAQmxResetDOOvercurrentAutoReenable(TaskHandle taskHandle, const char channel[]); //*** Set/Get functions for DAQmx_DO_Overcurrent_ReenablePeriod *** int32 __CFUNC DAQmxGetDOOvercurrentReenablePeriod(TaskHandle taskHandle, const char channel[], float64 *data); int32 __CFUNC DAQmxSetDOOvercurrentReenablePeriod(TaskHandle taskHandle, const char channel[], float64 data); int32 __CFUNC DAQmxResetDOOvercurrentReenablePeriod(TaskHandle taskHandle, const char channel[]); //*** Set/Get functions for DAQmx_DO_UseOnlyOnBrdMem *** int32 __CFUNC DAQmxGetDOUseOnlyOnBrdMem(TaskHandle taskHandle, const char channel[], bool32 *data); int32 __CFUNC DAQmxSetDOUseOnlyOnBrdMem(TaskHandle taskHandle, const char channel[], bool32 data); int32 __CFUNC DAQmxResetDOUseOnlyOnBrdMem(TaskHandle taskHandle, const char channel[]); //*** Set/Get functions for DAQmx_DO_DataXferMech *** // Uses value set DataTransferMechanism int32 __CFUNC DAQmxGetDODataXferMech(TaskHandle taskHandle, const char channel[], int32 *data); int32 __CFUNC DAQmxSetDODataXferMech(TaskHandle taskHandle, const char channel[], int32 data); int32 __CFUNC DAQmxResetDODataXferMech(TaskHandle taskHandle, const char channel[]); //*** Set/Get functions for DAQmx_DO_DataXferReqCond *** // Uses value set OutputDataTransferCondition int32 __CFUNC DAQmxGetDODataXferReqCond(TaskHandle taskHandle, const char channel[], int32 *data); int32 __CFUNC DAQmxSetDODataXferReqCond(TaskHandle taskHandle, const char channel[], int32 data); int32 __CFUNC DAQmxResetDODataXferReqCond(TaskHandle taskHandle, const char channel[]); //*** Set/Get functions for DAQmx_DO_UsbXferReqSize *** int32 __CFUNC DAQmxGetDOUsbXferReqSize(TaskHandle taskHandle, const char channel[], uInt32 *data); int32 __CFUNC DAQmxSetDOUsbXferReqSize(TaskHandle taskHandle, const char channel[], uInt32 data); int32 __CFUNC DAQmxResetDOUsbXferReqSize(TaskHandle taskHandle, const char channel[]); //*** Set/Get functions for DAQmx_DO_MemMapEnable *** int32 __CFUNC DAQmxGetDOMemMapEnable(TaskHandle taskHandle, const char channel[], bool32 *data); int32 __CFUNC DAQmxSetDOMemMapEnable(TaskHandle taskHandle, const char channel[], bool32 data); int32 __CFUNC DAQmxResetDOMemMapEnable(TaskHandle taskHandle, const char channel[]); //*** Set/Get functions for DAQmx_DO_GenerateOn *** // Uses value set SampleClockActiveOrInactiveEdgeSelection int32 __CFUNC DAQmxGetDOGenerateOn(TaskHandle taskHandle, const char channel[], int32 *data); int32 __CFUNC DAQmxSetDOGenerateOn(TaskHandle taskHandle, const char channel[], int32 data); int32 __CFUNC DAQmxResetDOGenerateOn(TaskHandle taskHandle, const char channel[]); //*** Set/Get functions for DAQmx_CI_Max *** int32 __CFUNC DAQmxGetCIMax(TaskHandle taskHandle, const char channel[], float64 *data); int32 __CFUNC DAQmxSetCIMax(TaskHandle taskHandle, const char channel[], float64 data); int32 __CFUNC DAQmxResetCIMax(TaskHandle taskHandle, const char channel[]); //*** Set/Get functions for DAQmx_CI_Min *** int32 __CFUNC DAQmxGetCIMin(TaskHandle taskHandle, const char channel[], float64 *data); int32 __CFUNC DAQmxSetCIMin(TaskHandle taskHandle, const char channel[], float64 data); int32 __CFUNC DAQmxResetCIMin(TaskHandle taskHandle, const char channel[]); //*** Set/Get functions for DAQmx_CI_CustomScaleName *** int32 __CFUNC DAQmxGetCICustomScaleName(TaskHandle taskHandle, const char channel[], char *data, uInt32 bufferSize); int32 __CFUNC DAQmxSetCICustomScaleName(TaskHandle taskHandle, const char channel[], const char *data); int32 __CFUNC DAQmxResetCICustomScaleName(TaskHandle taskHandle, const char channel[]); //*** Set/Get functions for DAQmx_CI_MeasType *** // Uses value set CIMeasurementType int32 __CFUNC DAQmxGetCIMeasType(TaskHandle taskHandle, const char channel[], int32 *data); //*** Set/Get functions for DAQmx_CI_Freq_Units *** // Uses value set FrequencyUnits3 int32 __CFUNC DAQmxGetCIFreqUnits(TaskHandle taskHandle, const char channel[], int32 *data); int32 __CFUNC DAQmxSetCIFreqUnits(TaskHandle taskHandle, const char channel[], int32 data); int32 __CFUNC DAQmxResetCIFreqUnits(TaskHandle taskHandle, const char channel[]); //*** Set/Get functions for DAQmx_CI_Freq_Term *** int32 __CFUNC DAQmxGetCIFreqTerm(TaskHandle taskHandle, const char channel[], char *data, uInt32 bufferSize); int32 __CFUNC DAQmxSetCIFreqTerm(TaskHandle taskHandle, const char channel[], const char *data); int32 __CFUNC DAQmxResetCIFreqTerm(TaskHandle taskHandle, const char channel[]); //*** Set/Get functions for DAQmx_CI_Freq_StartingEdge *** // Uses value set Edge1 int32 __CFUNC DAQmxGetCIFreqStartingEdge(TaskHandle taskHandle, const char channel[], int32 *data); int32 __CFUNC DAQmxSetCIFreqStartingEdge(TaskHandle taskHandle, const char channel[], int32 data); int32 __CFUNC DAQmxResetCIFreqStartingEdge(TaskHandle taskHandle, const char channel[]); //*** Set/Get functions for DAQmx_CI_Freq_MeasMeth *** // Uses value set CounterFrequencyMethod int32 __CFUNC DAQmxGetCIFreqMeasMeth(TaskHandle taskHandle, const char channel[], int32 *data); int32 __CFUNC DAQmxSetCIFreqMeasMeth(TaskHandle taskHandle, const char channel[], int32 data); int32 __CFUNC DAQmxResetCIFreqMeasMeth(TaskHandle taskHandle, const char channel[]); //*** Set/Get functions for DAQmx_CI_Freq_EnableAveraging *** int32 __CFUNC DAQmxGetCIFreqEnableAveraging(TaskHandle taskHandle, const char channel[], bool32 *data); int32 __CFUNC DAQmxSetCIFreqEnableAveraging(TaskHandle taskHandle, const char channel[], bool32 data); int32 __CFUNC DAQmxResetCIFreqEnableAveraging(TaskHandle taskHandle, const char channel[]); //*** Set/Get functions for DAQmx_CI_Freq_MeasTime *** int32 __CFUNC DAQmxGetCIFreqMeasTime(TaskHandle taskHandle, const char channel[], float64 *data); int32 __CFUNC DAQmxSetCIFreqMeasTime(TaskHandle taskHandle, const char channel[], float64 data); int32 __CFUNC DAQmxResetCIFreqMeasTime(TaskHandle taskHandle, const char channel[]); //*** Set/Get functions for DAQmx_CI_Freq_Div *** int32 __CFUNC DAQmxGetCIFreqDiv(TaskHandle taskHandle, const char channel[], uInt32 *data); int32 __CFUNC DAQmxSetCIFreqDiv(TaskHandle taskHandle, const char channel[], uInt32 data); int32 __CFUNC DAQmxResetCIFreqDiv(TaskHandle taskHandle, const char channel[]); //*** Set/Get functions for DAQmx_CI_Freq_DigFltr_Enable *** int32 __CFUNC DAQmxGetCIFreqDigFltrEnable(TaskHandle taskHandle, const char channel[], bool32 *data); int32 __CFUNC DAQmxSetCIFreqDigFltrEnable(TaskHandle taskHandle, const char channel[], bool32 data); int32 __CFUNC DAQmxResetCIFreqDigFltrEnable(TaskHandle taskHandle, const char channel[]); //*** Set/Get functions for DAQmx_CI_Freq_DigFltr_MinPulseWidth *** int32 __CFUNC DAQmxGetCIFreqDigFltrMinPulseWidth(TaskHandle taskHandle, const char channel[], float64 *data); int32 __CFUNC DAQmxSetCIFreqDigFltrMinPulseWidth(TaskHandle taskHandle, const char channel[], float64 data); int32 __CFUNC DAQmxResetCIFreqDigFltrMinPulseWidth(TaskHandle taskHandle, const char channel[]); //*** Set/Get functions for DAQmx_CI_Freq_DigFltr_TimebaseSrc *** int32 __CFUNC DAQmxGetCIFreqDigFltrTimebaseSrc(TaskHandle taskHandle, const char channel[], char *data, uInt32 bufferSize); int32 __CFUNC DAQmxSetCIFreqDigFltrTimebaseSrc(TaskHandle taskHandle, const char channel[], const char *data); int32 __CFUNC DAQmxResetCIFreqDigFltrTimebaseSrc(TaskHandle taskHandle, const char channel[]); //*** Set/Get functions for DAQmx_CI_Freq_DigFltr_TimebaseRate *** int32 __CFUNC DAQmxGetCIFreqDigFltrTimebaseRate(TaskHandle taskHandle, const char channel[], float64 *data); int32 __CFUNC DAQmxSetCIFreqDigFltrTimebaseRate(TaskHandle taskHandle, const char channel[], float64 data); int32 __CFUNC DAQmxResetCIFreqDigFltrTimebaseRate(TaskHandle taskHandle, const char channel[]); //*** Set/Get functions for DAQmx_CI_Freq_DigSync_Enable *** int32 __CFUNC DAQmxGetCIFreqDigSyncEnable(TaskHandle taskHandle, const char channel[], bool32 *data); int32 __CFUNC DAQmxSetCIFreqDigSyncEnable(TaskHandle taskHandle, const char channel[], bool32 data); int32 __CFUNC DAQmxResetCIFreqDigSyncEnable(TaskHandle taskHandle, const char channel[]); //*** Set/Get functions for DAQmx_CI_Period_Units *** // Uses value set TimeUnits3 int32 __CFUNC DAQmxGetCIPeriodUnits(TaskHandle taskHandle, const char channel[], int32 *data); int32 __CFUNC DAQmxSetCIPeriodUnits(TaskHandle taskHandle, const char channel[], int32 data); int32 __CFUNC DAQmxResetCIPeriodUnits(TaskHandle taskHandle, const char channel[]); //*** Set/Get functions for DAQmx_CI_Period_Term *** int32 __CFUNC DAQmxGetCIPeriodTerm(TaskHandle taskHandle, const char channel[], char *data, uInt32 bufferSize); int32 __CFUNC DAQmxSetCIPeriodTerm(TaskHandle taskHandle, const char channel[], const char *data); int32 __CFUNC DAQmxResetCIPeriodTerm(TaskHandle taskHandle, const char channel[]); //*** Set/Get functions for DAQmx_CI_Period_StartingEdge *** // Uses value set Edge1 int32 __CFUNC DAQmxGetCIPeriodStartingEdge(TaskHandle taskHandle, const char channel[], int32 *data); int32 __CFUNC DAQmxSetCIPeriodStartingEdge(TaskHandle taskHandle, const char channel[], int32 data); int32 __CFUNC DAQmxResetCIPeriodStartingEdge(TaskHandle taskHandle, const char channel[]); //*** Set/Get functions for DAQmx_CI_Period_MeasMeth *** // Uses value set CounterFrequencyMethod int32 __CFUNC DAQmxGetCIPeriodMeasMeth(TaskHandle taskHandle, const char channel[], int32 *data); int32 __CFUNC DAQmxSetCIPeriodMeasMeth(TaskHandle taskHandle, const char channel[], int32 data); int32 __CFUNC DAQmxResetCIPeriodMeasMeth(TaskHandle taskHandle, const char channel[]); //*** Set/Get functions for DAQmx_CI_Period_EnableAveraging *** int32 __CFUNC DAQmxGetCIPeriodEnableAveraging(TaskHandle taskHandle, const char channel[], bool32 *data); int32 __CFUNC DAQmxSetCIPeriodEnableAveraging(TaskHandle taskHandle, const char channel[], bool32 data); int32 __CFUNC DAQmxResetCIPeriodEnableAveraging(TaskHandle taskHandle, const char channel[]); //*** Set/Get functions for DAQmx_CI_Period_MeasTime *** int32 __CFUNC DAQmxGetCIPeriodMeasTime(TaskHandle taskHandle, const char channel[], float64 *data); int32 __CFUNC DAQmxSetCIPeriodMeasTime(TaskHandle taskHandle, const char channel[], float64 data); int32 __CFUNC DAQmxResetCIPeriodMeasTime(TaskHandle taskHandle, const char channel[]); //*** Set/Get functions for DAQmx_CI_Period_Div *** int32 __CFUNC DAQmxGetCIPeriodDiv(TaskHandle taskHandle, const char channel[], uInt32 *data); int32 __CFUNC DAQmxSetCIPeriodDiv(TaskHandle taskHandle, const char channel[], uInt32 data); int32 __CFUNC DAQmxResetCIPeriodDiv(TaskHandle taskHandle, const char channel[]); //*** Set/Get functions for DAQmx_CI_Period_DigFltr_Enable *** int32 __CFUNC DAQmxGetCIPeriodDigFltrEnable(TaskHandle taskHandle, const char channel[], bool32 *data); int32 __CFUNC DAQmxSetCIPeriodDigFltrEnable(TaskHandle taskHandle, const char channel[], bool32 data); int32 __CFUNC DAQmxResetCIPeriodDigFltrEnable(TaskHandle taskHandle, const char channel[]); //*** Set/Get functions for DAQmx_CI_Period_DigFltr_MinPulseWidth *** int32 __CFUNC DAQmxGetCIPeriodDigFltrMinPulseWidth(TaskHandle taskHandle, const char channel[], float64 *data); int32 __CFUNC DAQmxSetCIPeriodDigFltrMinPulseWidth(TaskHandle taskHandle, const char channel[], float64 data); int32 __CFUNC DAQmxResetCIPeriodDigFltrMinPulseWidth(TaskHandle taskHandle, const char channel[]); //*** Set/Get functions for DAQmx_CI_Period_DigFltr_TimebaseSrc *** int32 __CFUNC DAQmxGetCIPeriodDigFltrTimebaseSrc(TaskHandle taskHandle, const char channel[], char *data, uInt32 bufferSize); int32 __CFUNC DAQmxSetCIPeriodDigFltrTimebaseSrc(TaskHandle taskHandle, const char channel[], const char *data); int32 __CFUNC DAQmxResetCIPeriodDigFltrTimebaseSrc(TaskHandle taskHandle, const char channel[]); //*** Set/Get functions for DAQmx_CI_Period_DigFltr_TimebaseRate *** int32 __CFUNC DAQmxGetCIPeriodDigFltrTimebaseRate(TaskHandle taskHandle, const char channel[], float64 *data); int32 __CFUNC DAQmxSetCIPeriodDigFltrTimebaseRate(TaskHandle taskHandle, const char channel[], float64 data); int32 __CFUNC DAQmxResetCIPeriodDigFltrTimebaseRate(TaskHandle taskHandle, const char channel[]); //*** Set/Get functions for DAQmx_CI_Period_DigSync_Enable *** int32 __CFUNC DAQmxGetCIPeriodDigSyncEnable(TaskHandle taskHandle, const char channel[], bool32 *data); int32 __CFUNC DAQmxSetCIPeriodDigSyncEnable(TaskHandle taskHandle, const char channel[], bool32 data); int32 __CFUNC DAQmxResetCIPeriodDigSyncEnable(TaskHandle taskHandle, const char channel[]); //*** Set/Get functions for DAQmx_CI_CountEdges_Term *** int32 __CFUNC DAQmxGetCICountEdgesTerm(TaskHandle taskHandle, const char channel[], char *data, uInt32 bufferSize); int32 __CFUNC DAQmxSetCICountEdgesTerm(TaskHandle taskHandle, const char channel[], const char *data); int32 __CFUNC DAQmxResetCICountEdgesTerm(TaskHandle taskHandle, const char channel[]); //*** Set/Get functions for DAQmx_CI_CountEdges_Dir *** // Uses value set CountDirection1 int32 __CFUNC DAQmxGetCICountEdgesDir(TaskHandle taskHandle, const char channel[], int32 *data); int32 __CFUNC DAQmxSetCICountEdgesDir(TaskHandle taskHandle, const char channel[], int32 data); int32 __CFUNC DAQmxResetCICountEdgesDir(TaskHandle taskHandle, const char channel[]); //*** Set/Get functions for DAQmx_CI_CountEdges_DirTerm *** int32 __CFUNC DAQmxGetCICountEdgesDirTerm(TaskHandle taskHandle, const char channel[], char *data, uInt32 bufferSize); int32 __CFUNC DAQmxSetCICountEdgesDirTerm(TaskHandle taskHandle, const char channel[], const char *data); int32 __CFUNC DAQmxResetCICountEdgesDirTerm(TaskHandle taskHandle, const char channel[]); //*** Set/Get functions for DAQmx_CI_CountEdges_CountDir_DigFltr_Enable *** int32 __CFUNC DAQmxGetCICountEdgesCountDirDigFltrEnable(TaskHandle taskHandle, const char channel[], bool32 *data); int32 __CFUNC DAQmxSetCICountEdgesCountDirDigFltrEnable(TaskHandle taskHandle, const char channel[], bool32 data); int32 __CFUNC DAQmxResetCICountEdgesCountDirDigFltrEnable(TaskHandle taskHandle, const char channel[]); //*** Set/Get functions for DAQmx_CI_CountEdges_CountDir_DigFltr_MinPulseWidth *** int32 __CFUNC DAQmxGetCICountEdgesCountDirDigFltrMinPulseWidth(TaskHandle taskHandle, const char channel[], float64 *data); int32 __CFUNC DAQmxSetCICountEdgesCountDirDigFltrMinPulseWidth(TaskHandle taskHandle, const char channel[], float64 data); int32 __CFUNC DAQmxResetCICountEdgesCountDirDigFltrMinPulseWidth(TaskHandle taskHandle, const char channel[]); //*** Set/Get functions for DAQmx_CI_CountEdges_CountDir_DigFltr_TimebaseSrc *** int32 __CFUNC DAQmxGetCICountEdgesCountDirDigFltrTimebaseSrc(TaskHandle taskHandle, const char channel[], char *data, uInt32 bufferSize); int32 __CFUNC DAQmxSetCICountEdgesCountDirDigFltrTimebaseSrc(TaskHandle taskHandle, const char channel[], const char *data); int32 __CFUNC DAQmxResetCICountEdgesCountDirDigFltrTimebaseSrc(TaskHandle taskHandle, const char channel[]); //*** Set/Get functions for DAQmx_CI_CountEdges_CountDir_DigFltr_TimebaseRate *** int32 __CFUNC DAQmxGetCICountEdgesCountDirDigFltrTimebaseRate(TaskHandle taskHandle, const char channel[], float64 *data); int32 __CFUNC DAQmxSetCICountEdgesCountDirDigFltrTimebaseRate(TaskHandle taskHandle, const char channel[], float64 data); int32 __CFUNC DAQmxResetCICountEdgesCountDirDigFltrTimebaseRate(TaskHandle taskHandle, const char channel[]); //*** Set/Get functions for DAQmx_CI_CountEdges_CountDir_DigSync_Enable *** int32 __CFUNC DAQmxGetCICountEdgesCountDirDigSyncEnable(TaskHandle taskHandle, const char channel[], bool32 *data); int32 __CFUNC DAQmxSetCICountEdgesCountDirDigSyncEnable(TaskHandle taskHandle, const char channel[], bool32 data); int32 __CFUNC DAQmxResetCICountEdgesCountDirDigSyncEnable(TaskHandle taskHandle, const char channel[]); //*** Set/Get functions for DAQmx_CI_CountEdges_InitialCnt *** int32 __CFUNC DAQmxGetCICountEdgesInitialCnt(TaskHandle taskHandle, const char channel[], uInt32 *data); int32 __CFUNC DAQmxSetCICountEdgesInitialCnt(TaskHandle taskHandle, const char channel[], uInt32 data); int32 __CFUNC DAQmxResetCICountEdgesInitialCnt(TaskHandle taskHandle, const char channel[]); //*** Set/Get functions for DAQmx_CI_CountEdges_ActiveEdge *** // Uses value set Edge1 int32 __CFUNC DAQmxGetCICountEdgesActiveEdge(TaskHandle taskHandle, const char channel[], int32 *data); int32 __CFUNC DAQmxSetCICountEdgesActiveEdge(TaskHandle taskHandle, const char channel[], int32 data); int32 __CFUNC DAQmxResetCICountEdgesActiveEdge(TaskHandle taskHandle, const char channel[]); //*** Set/Get functions for DAQmx_CI_CountEdges_CountReset_Enable *** int32 __CFUNC DAQmxGetCICountEdgesCountResetEnable(TaskHandle taskHandle, const char channel[], bool32 *data); int32 __CFUNC DAQmxSetCICountEdgesCountResetEnable(TaskHandle taskHandle, const char channel[], bool32 data); int32 __CFUNC DAQmxResetCICountEdgesCountResetEnable(TaskHandle taskHandle, const char channel[]); //*** Set/Get functions for DAQmx_CI_CountEdges_CountReset_ResetCount *** int32 __CFUNC DAQmxGetCICountEdgesCountResetResetCount(TaskHandle taskHandle, const char channel[], uInt32 *data); int32 __CFUNC DAQmxSetCICountEdgesCountResetResetCount(TaskHandle taskHandle, const char channel[], uInt32 data); int32 __CFUNC DAQmxResetCICountEdgesCountResetResetCount(TaskHandle taskHandle, const char channel[]); //*** Set/Get functions for DAQmx_CI_CountEdges_CountReset_Term *** int32 __CFUNC DAQmxGetCICountEdgesCountResetTerm(TaskHandle taskHandle, const char channel[], char *data, uInt32 bufferSize); int32 __CFUNC DAQmxSetCICountEdgesCountResetTerm(TaskHandle taskHandle, const char channel[], const char *data); int32 __CFUNC DAQmxResetCICountEdgesCountResetTerm(TaskHandle taskHandle, const char channel[]); //*** Set/Get functions for DAQmx_CI_CountEdges_CountReset_ActiveEdge *** // Uses value set Edge1 int32 __CFUNC DAQmxGetCICountEdgesCountResetActiveEdge(TaskHandle taskHandle, const char channel[], int32 *data); int32 __CFUNC DAQmxSetCICountEdgesCountResetActiveEdge(TaskHandle taskHandle, const char channel[], int32 data); int32 __CFUNC DAQmxResetCICountEdgesCountResetActiveEdge(TaskHandle taskHandle, const char channel[]); //*** Set/Get functions for DAQmx_CI_CountEdges_CountReset_DigFltr_Enable *** int32 __CFUNC DAQmxGetCICountEdgesCountResetDigFltrEnable(TaskHandle taskHandle, const char channel[], bool32 *data); int32 __CFUNC DAQmxSetCICountEdgesCountResetDigFltrEnable(TaskHandle taskHandle, const char channel[], bool32 data); int32 __CFUNC DAQmxResetCICountEdgesCountResetDigFltrEnable(TaskHandle taskHandle, const char channel[]); //*** Set/Get functions for DAQmx_CI_CountEdges_CountReset_DigFltr_MinPulseWidth *** int32 __CFUNC DAQmxGetCICountEdgesCountResetDigFltrMinPulseWidth(TaskHandle taskHandle, const char channel[], float64 *data); int32 __CFUNC DAQmxSetCICountEdgesCountResetDigFltrMinPulseWidth(TaskHandle taskHandle, const char channel[], float64 data); int32 __CFUNC DAQmxResetCICountEdgesCountResetDigFltrMinPulseWidth(TaskHandle taskHandle, const char channel[]); //*** Set/Get functions for DAQmx_CI_CountEdges_CountReset_DigFltr_TimebaseSrc *** int32 __CFUNC DAQmxGetCICountEdgesCountResetDigFltrTimebaseSrc(TaskHandle taskHandle, const char channel[], char *data, uInt32 bufferSize); int32 __CFUNC DAQmxSetCICountEdgesCountResetDigFltrTimebaseSrc(TaskHandle taskHandle, const char channel[], const char *data); int32 __CFUNC DAQmxResetCICountEdgesCountResetDigFltrTimebaseSrc(TaskHandle taskHandle, const char channel[]); //*** Set/Get functions for DAQmx_CI_CountEdges_CountReset_DigFltr_TimebaseRate *** int32 __CFUNC DAQmxGetCICountEdgesCountResetDigFltrTimebaseRate(TaskHandle taskHandle, const char channel[], float64 *data); int32 __CFUNC DAQmxSetCICountEdgesCountResetDigFltrTimebaseRate(TaskHandle taskHandle, const char channel[], float64 data); int32 __CFUNC DAQmxResetCICountEdgesCountResetDigFltrTimebaseRate(TaskHandle taskHandle, const char channel[]); //*** Set/Get functions for DAQmx_CI_CountEdges_CountReset_DigSync_Enable *** int32 __CFUNC DAQmxGetCICountEdgesCountResetDigSyncEnable(TaskHandle taskHandle, const char channel[], bool32 *data); int32 __CFUNC DAQmxSetCICountEdgesCountResetDigSyncEnable(TaskHandle taskHandle, const char channel[], bool32 data); int32 __CFUNC DAQmxResetCICountEdgesCountResetDigSyncEnable(TaskHandle taskHandle, const char channel[]); //*** Set/Get functions for DAQmx_CI_CountEdges_DigFltr_Enable *** int32 __CFUNC DAQmxGetCICountEdgesDigFltrEnable(TaskHandle taskHandle, const char channel[], bool32 *data); int32 __CFUNC DAQmxSetCICountEdgesDigFltrEnable(TaskHandle taskHandle, const char channel[], bool32 data); int32 __CFUNC DAQmxResetCICountEdgesDigFltrEnable(TaskHandle taskHandle, const char channel[]); //*** Set/Get functions for DAQmx_CI_CountEdges_DigFltr_MinPulseWidth *** int32 __CFUNC DAQmxGetCICountEdgesDigFltrMinPulseWidth(TaskHandle taskHandle, const char channel[], float64 *data); int32 __CFUNC DAQmxSetCICountEdgesDigFltrMinPulseWidth(TaskHandle taskHandle, const char channel[], float64 data); int32 __CFUNC DAQmxResetCICountEdgesDigFltrMinPulseWidth(TaskHandle taskHandle, const char channel[]); //*** Set/Get functions for DAQmx_CI_CountEdges_DigFltr_TimebaseSrc *** int32 __CFUNC DAQmxGetCICountEdgesDigFltrTimebaseSrc(TaskHandle taskHandle, const char channel[], char *data, uInt32 bufferSize); int32 __CFUNC DAQmxSetCICountEdgesDigFltrTimebaseSrc(TaskHandle taskHandle, const char channel[], const char *data); int32 __CFUNC DAQmxResetCICountEdgesDigFltrTimebaseSrc(TaskHandle taskHandle, const char channel[]); //*** Set/Get functions for DAQmx_CI_CountEdges_DigFltr_TimebaseRate *** int32 __CFUNC DAQmxGetCICountEdgesDigFltrTimebaseRate(TaskHandle taskHandle, const char channel[], float64 *data); int32 __CFUNC DAQmxSetCICountEdgesDigFltrTimebaseRate(TaskHandle taskHandle, const char channel[], float64 data); int32 __CFUNC DAQmxResetCICountEdgesDigFltrTimebaseRate(TaskHandle taskHandle, const char channel[]); //*** Set/Get functions for DAQmx_CI_CountEdges_DigSync_Enable *** int32 __CFUNC DAQmxGetCICountEdgesDigSyncEnable(TaskHandle taskHandle, const char channel[], bool32 *data); int32 __CFUNC DAQmxSetCICountEdgesDigSyncEnable(TaskHandle taskHandle, const char channel[], bool32 data); int32 __CFUNC DAQmxResetCICountEdgesDigSyncEnable(TaskHandle taskHandle, const char channel[]); //*** Set/Get functions for DAQmx_CI_AngEncoder_Units *** // Uses value set AngleUnits2 int32 __CFUNC DAQmxGetCIAngEncoderUnits(TaskHandle taskHandle, const char channel[], int32 *data); int32 __CFUNC DAQmxSetCIAngEncoderUnits(TaskHandle taskHandle, const char channel[], int32 data); int32 __CFUNC DAQmxResetCIAngEncoderUnits(TaskHandle taskHandle, const char channel[]); //*** Set/Get functions for DAQmx_CI_AngEncoder_PulsesPerRev *** int32 __CFUNC DAQmxGetCIAngEncoderPulsesPerRev(TaskHandle taskHandle, const char channel[], uInt32 *data); int32 __CFUNC DAQmxSetCIAngEncoderPulsesPerRev(TaskHandle taskHandle, const char channel[], uInt32 data); int32 __CFUNC DAQmxResetCIAngEncoderPulsesPerRev(TaskHandle taskHandle, const char channel[]); //*** Set/Get functions for DAQmx_CI_AngEncoder_InitialAngle *** int32 __CFUNC DAQmxGetCIAngEncoderInitialAngle(TaskHandle taskHandle, const char channel[], float64 *data); int32 __CFUNC DAQmxSetCIAngEncoderInitialAngle(TaskHandle taskHandle, const char channel[], float64 data); int32 __CFUNC DAQmxResetCIAngEncoderInitialAngle(TaskHandle taskHandle, const char channel[]); //*** Set/Get functions for DAQmx_CI_LinEncoder_Units *** // Uses value set LengthUnits3 int32 __CFUNC DAQmxGetCILinEncoderUnits(TaskHandle taskHandle, const char channel[], int32 *data); int32 __CFUNC DAQmxSetCILinEncoderUnits(TaskHandle taskHandle, const char channel[], int32 data); int32 __CFUNC DAQmxResetCILinEncoderUnits(TaskHandle taskHandle, const char channel[]); //*** Set/Get functions for DAQmx_CI_LinEncoder_DistPerPulse *** int32 __CFUNC DAQmxGetCILinEncoderDistPerPulse(TaskHandle taskHandle, const char channel[], float64 *data); int32 __CFUNC DAQmxSetCILinEncoderDistPerPulse(TaskHandle taskHandle, const char channel[], float64 data); int32 __CFUNC DAQmxResetCILinEncoderDistPerPulse(TaskHandle taskHandle, const char channel[]); //*** Set/Get functions for DAQmx_CI_LinEncoder_InitialPos *** int32 __CFUNC DAQmxGetCILinEncoderInitialPos(TaskHandle taskHandle, const char channel[], float64 *data); int32 __CFUNC DAQmxSetCILinEncoderInitialPos(TaskHandle taskHandle, const char channel[], float64 data); int32 __CFUNC DAQmxResetCILinEncoderInitialPos(TaskHandle taskHandle, const char channel[]); //*** Set/Get functions for DAQmx_CI_Encoder_DecodingType *** // Uses value set EncoderType2 int32 __CFUNC DAQmxGetCIEncoderDecodingType(TaskHandle taskHandle, const char channel[], int32 *data); int32 __CFUNC DAQmxSetCIEncoderDecodingType(TaskHandle taskHandle, const char channel[], int32 data); int32 __CFUNC DAQmxResetCIEncoderDecodingType(TaskHandle taskHandle, const char channel[]); //*** Set/Get functions for DAQmx_CI_Encoder_AInputTerm *** int32 __CFUNC DAQmxGetCIEncoderAInputTerm(TaskHandle taskHandle, const char channel[], char *data, uInt32 bufferSize); int32 __CFUNC DAQmxSetCIEncoderAInputTerm(TaskHandle taskHandle, const char channel[], const char *data); int32 __CFUNC DAQmxResetCIEncoderAInputTerm(TaskHandle taskHandle, const char channel[]); //*** Set/Get functions for DAQmx_CI_Encoder_AInput_DigFltr_Enable *** int32 __CFUNC DAQmxGetCIEncoderAInputDigFltrEnable(TaskHandle taskHandle, const char channel[], bool32 *data); int32 __CFUNC DAQmxSetCIEncoderAInputDigFltrEnable(TaskHandle taskHandle, const char channel[], bool32 data); int32 __CFUNC DAQmxResetCIEncoderAInputDigFltrEnable(TaskHandle taskHandle, const char channel[]); //*** Set/Get functions for DAQmx_CI_Encoder_AInput_DigFltr_MinPulseWidth *** int32 __CFUNC DAQmxGetCIEncoderAInputDigFltrMinPulseWidth(TaskHandle taskHandle, const char channel[], float64 *data); int32 __CFUNC DAQmxSetCIEncoderAInputDigFltrMinPulseWidth(TaskHandle taskHandle, const char channel[], float64 data); int32 __CFUNC DAQmxResetCIEncoderAInputDigFltrMinPulseWidth(TaskHandle taskHandle, const char channel[]); //*** Set/Get functions for DAQmx_CI_Encoder_AInput_DigFltr_TimebaseSrc *** int32 __CFUNC DAQmxGetCIEncoderAInputDigFltrTimebaseSrc(TaskHandle taskHandle, const char channel[], char *data, uInt32 bufferSize); int32 __CFUNC DAQmxSetCIEncoderAInputDigFltrTimebaseSrc(TaskHandle taskHandle, const char channel[], const char *data); int32 __CFUNC DAQmxResetCIEncoderAInputDigFltrTimebaseSrc(TaskHandle taskHandle, const char channel[]); //*** Set/Get functions for DAQmx_CI_Encoder_AInput_DigFltr_TimebaseRate *** int32 __CFUNC DAQmxGetCIEncoderAInputDigFltrTimebaseRate(TaskHandle taskHandle, const char channel[], float64 *data); int32 __CFUNC DAQmxSetCIEncoderAInputDigFltrTimebaseRate(TaskHandle taskHandle, const char channel[], float64 data); int32 __CFUNC DAQmxResetCIEncoderAInputDigFltrTimebaseRate(TaskHandle taskHandle, const char channel[]); //*** Set/Get functions for DAQmx_CI_Encoder_AInput_DigSync_Enable *** int32 __CFUNC DAQmxGetCIEncoderAInputDigSyncEnable(TaskHandle taskHandle, const char channel[], bool32 *data); int32 __CFUNC DAQmxSetCIEncoderAInputDigSyncEnable(TaskHandle taskHandle, const char channel[], bool32 data); int32 __CFUNC DAQmxResetCIEncoderAInputDigSyncEnable(TaskHandle taskHandle, const char channel[]); //*** Set/Get functions for DAQmx_CI_Encoder_BInputTerm *** int32 __CFUNC DAQmxGetCIEncoderBInputTerm(TaskHandle taskHandle, const char channel[], char *data, uInt32 bufferSize); int32 __CFUNC DAQmxSetCIEncoderBInputTerm(TaskHandle taskHandle, const char channel[], const char *data); int32 __CFUNC DAQmxResetCIEncoderBInputTerm(TaskHandle taskHandle, const char channel[]); //*** Set/Get functions for DAQmx_CI_Encoder_BInput_DigFltr_Enable *** int32 __CFUNC DAQmxGetCIEncoderBInputDigFltrEnable(TaskHandle taskHandle, const char channel[], bool32 *data); int32 __CFUNC DAQmxSetCIEncoderBInputDigFltrEnable(TaskHandle taskHandle, const char channel[], bool32 data); int32 __CFUNC DAQmxResetCIEncoderBInputDigFltrEnable(TaskHandle taskHandle, const char channel[]); //*** Set/Get functions for DAQmx_CI_Encoder_BInput_DigFltr_MinPulseWidth *** int32 __CFUNC DAQmxGetCIEncoderBInputDigFltrMinPulseWidth(TaskHandle taskHandle, const char channel[], float64 *data); int32 __CFUNC DAQmxSetCIEncoderBInputDigFltrMinPulseWidth(TaskHandle taskHandle, const char channel[], float64 data); int32 __CFUNC DAQmxResetCIEncoderBInputDigFltrMinPulseWidth(TaskHandle taskHandle, const char channel[]); //*** Set/Get functions for DAQmx_CI_Encoder_BInput_DigFltr_TimebaseSrc *** int32 __CFUNC DAQmxGetCIEncoderBInputDigFltrTimebaseSrc(TaskHandle taskHandle, const char channel[], char *data, uInt32 bufferSize); int32 __CFUNC DAQmxSetCIEncoderBInputDigFltrTimebaseSrc(TaskHandle taskHandle, const char channel[], const char *data); int32 __CFUNC DAQmxResetCIEncoderBInputDigFltrTimebaseSrc(TaskHandle taskHandle, const char channel[]); //*** Set/Get functions for DAQmx_CI_Encoder_BInput_DigFltr_TimebaseRate *** int32 __CFUNC DAQmxGetCIEncoderBInputDigFltrTimebaseRate(TaskHandle taskHandle, const char channel[], float64 *data); int32 __CFUNC DAQmxSetCIEncoderBInputDigFltrTimebaseRate(TaskHandle taskHandle, const char channel[], float64 data); int32 __CFUNC DAQmxResetCIEncoderBInputDigFltrTimebaseRate(TaskHandle taskHandle, const char channel[]); //*** Set/Get functions for DAQmx_CI_Encoder_BInput_DigSync_Enable *** int32 __CFUNC DAQmxGetCIEncoderBInputDigSyncEnable(TaskHandle taskHandle, const char channel[], bool32 *data); int32 __CFUNC DAQmxSetCIEncoderBInputDigSyncEnable(TaskHandle taskHandle, const char channel[], bool32 data); int32 __CFUNC DAQmxResetCIEncoderBInputDigSyncEnable(TaskHandle taskHandle, const char channel[]); //*** Set/Get functions for DAQmx_CI_Encoder_ZInputTerm *** int32 __CFUNC DAQmxGetCIEncoderZInputTerm(TaskHandle taskHandle, const char channel[], char *data, uInt32 bufferSize); int32 __CFUNC DAQmxSetCIEncoderZInputTerm(TaskHandle taskHandle, const char channel[], const char *data); int32 __CFUNC DAQmxResetCIEncoderZInputTerm(TaskHandle taskHandle, const char channel[]); //*** Set/Get functions for DAQmx_CI_Encoder_ZInput_DigFltr_Enable *** int32 __CFUNC DAQmxGetCIEncoderZInputDigFltrEnable(TaskHandle taskHandle, const char channel[], bool32 *data); int32 __CFUNC DAQmxSetCIEncoderZInputDigFltrEnable(TaskHandle taskHandle, const char channel[], bool32 data); int32 __CFUNC DAQmxResetCIEncoderZInputDigFltrEnable(TaskHandle taskHandle, const char channel[]); //*** Set/Get functions for DAQmx_CI_Encoder_ZInput_DigFltr_MinPulseWidth *** int32 __CFUNC DAQmxGetCIEncoderZInputDigFltrMinPulseWidth(TaskHandle taskHandle, const char channel[], float64 *data); int32 __CFUNC DAQmxSetCIEncoderZInputDigFltrMinPulseWidth(TaskHandle taskHandle, const char channel[], float64 data); int32 __CFUNC DAQmxResetCIEncoderZInputDigFltrMinPulseWidth(TaskHandle taskHandle, const char channel[]); //*** Set/Get functions for DAQmx_CI_Encoder_ZInput_DigFltr_TimebaseSrc *** int32 __CFUNC DAQmxGetCIEncoderZInputDigFltrTimebaseSrc(TaskHandle taskHandle, const char channel[], char *data, uInt32 bufferSize); int32 __CFUNC DAQmxSetCIEncoderZInputDigFltrTimebaseSrc(TaskHandle taskHandle, const char channel[], const char *data); int32 __CFUNC DAQmxResetCIEncoderZInputDigFltrTimebaseSrc(TaskHandle taskHandle, const char channel[]); //*** Set/Get functions for DAQmx_CI_Encoder_ZInput_DigFltr_TimebaseRate *** int32 __CFUNC DAQmxGetCIEncoderZInputDigFltrTimebaseRate(TaskHandle taskHandle, const char channel[], float64 *data); int32 __CFUNC DAQmxSetCIEncoderZInputDigFltrTimebaseRate(TaskHandle taskHandle, const char channel[], float64 data); int32 __CFUNC DAQmxResetCIEncoderZInputDigFltrTimebaseRate(TaskHandle taskHandle, const char channel[]); //*** Set/Get functions for DAQmx_CI_Encoder_ZInput_DigSync_Enable *** int32 __CFUNC DAQmxGetCIEncoderZInputDigSyncEnable(TaskHandle taskHandle, const char channel[], bool32 *data); int32 __CFUNC DAQmxSetCIEncoderZInputDigSyncEnable(TaskHandle taskHandle, const char channel[], bool32 data); int32 __CFUNC DAQmxResetCIEncoderZInputDigSyncEnable(TaskHandle taskHandle, const char channel[]); //*** Set/Get functions for DAQmx_CI_Encoder_ZIndexEnable *** int32 __CFUNC DAQmxGetCIEncoderZIndexEnable(TaskHandle taskHandle, const char channel[], bool32 *data); int32 __CFUNC DAQmxSetCIEncoderZIndexEnable(TaskHandle taskHandle, const char channel[], bool32 data); int32 __CFUNC DAQmxResetCIEncoderZIndexEnable(TaskHandle taskHandle, const char channel[]); //*** Set/Get functions for DAQmx_CI_Encoder_ZIndexVal *** int32 __CFUNC DAQmxGetCIEncoderZIndexVal(TaskHandle taskHandle, const char channel[], float64 *data); int32 __CFUNC DAQmxSetCIEncoderZIndexVal(TaskHandle taskHandle, const char channel[], float64 data); int32 __CFUNC DAQmxResetCIEncoderZIndexVal(TaskHandle taskHandle, const char channel[]); //*** Set/Get functions for DAQmx_CI_Encoder_ZIndexPhase *** // Uses value set EncoderZIndexPhase1 int32 __CFUNC DAQmxGetCIEncoderZIndexPhase(TaskHandle taskHandle, const char channel[], int32 *data); int32 __CFUNC DAQmxSetCIEncoderZIndexPhase(TaskHandle taskHandle, const char channel[], int32 data); int32 __CFUNC DAQmxResetCIEncoderZIndexPhase(TaskHandle taskHandle, const char channel[]); //*** Set/Get functions for DAQmx_CI_PulseWidth_Units *** // Uses value set TimeUnits3 int32 __CFUNC DAQmxGetCIPulseWidthUnits(TaskHandle taskHandle, const char channel[], int32 *data); int32 __CFUNC DAQmxSetCIPulseWidthUnits(TaskHandle taskHandle, const char channel[], int32 data); int32 __CFUNC DAQmxResetCIPulseWidthUnits(TaskHandle taskHandle, const char channel[]); //*** Set/Get functions for DAQmx_CI_PulseWidth_Term *** int32 __CFUNC DAQmxGetCIPulseWidthTerm(TaskHandle taskHandle, const char channel[], char *data, uInt32 bufferSize); int32 __CFUNC DAQmxSetCIPulseWidthTerm(TaskHandle taskHandle, const char channel[], const char *data); int32 __CFUNC DAQmxResetCIPulseWidthTerm(TaskHandle taskHandle, const char channel[]); //*** Set/Get functions for DAQmx_CI_PulseWidth_StartingEdge *** // Uses value set Edge1 int32 __CFUNC DAQmxGetCIPulseWidthStartingEdge(TaskHandle taskHandle, const char channel[], int32 *data); int32 __CFUNC DAQmxSetCIPulseWidthStartingEdge(TaskHandle taskHandle, const char channel[], int32 data); int32 __CFUNC DAQmxResetCIPulseWidthStartingEdge(TaskHandle taskHandle, const char channel[]); //*** Set/Get functions for DAQmx_CI_PulseWidth_DigFltr_Enable *** int32 __CFUNC DAQmxGetCIPulseWidthDigFltrEnable(TaskHandle taskHandle, const char channel[], bool32 *data); int32 __CFUNC DAQmxSetCIPulseWidthDigFltrEnable(TaskHandle taskHandle, const char channel[], bool32 data); int32 __CFUNC DAQmxResetCIPulseWidthDigFltrEnable(TaskHandle taskHandle, const char channel[]); //*** Set/Get functions for DAQmx_CI_PulseWidth_DigFltr_MinPulseWidth *** int32 __CFUNC DAQmxGetCIPulseWidthDigFltrMinPulseWidth(TaskHandle taskHandle, const char channel[], float64 *data); int32 __CFUNC DAQmxSetCIPulseWidthDigFltrMinPulseWidth(TaskHandle taskHandle, const char channel[], float64 data); int32 __CFUNC DAQmxResetCIPulseWidthDigFltrMinPulseWidth(TaskHandle taskHandle, const char channel[]); //*** Set/Get functions for DAQmx_CI_PulseWidth_DigFltr_TimebaseSrc *** int32 __CFUNC DAQmxGetCIPulseWidthDigFltrTimebaseSrc(TaskHandle taskHandle, const char channel[], char *data, uInt32 bufferSize); int32 __CFUNC DAQmxSetCIPulseWidthDigFltrTimebaseSrc(TaskHandle taskHandle, const char channel[], const char *data); int32 __CFUNC DAQmxResetCIPulseWidthDigFltrTimebaseSrc(TaskHandle taskHandle, const char channel[]); //*** Set/Get functions for DAQmx_CI_PulseWidth_DigFltr_TimebaseRate *** int32 __CFUNC DAQmxGetCIPulseWidthDigFltrTimebaseRate(TaskHandle taskHandle, const char channel[], float64 *data); int32 __CFUNC DAQmxSetCIPulseWidthDigFltrTimebaseRate(TaskHandle taskHandle, const char channel[], float64 data); int32 __CFUNC DAQmxResetCIPulseWidthDigFltrTimebaseRate(TaskHandle taskHandle, const char channel[]); //*** Set/Get functions for DAQmx_CI_PulseWidth_DigSync_Enable *** int32 __CFUNC DAQmxGetCIPulseWidthDigSyncEnable(TaskHandle taskHandle, const char channel[], bool32 *data); int32 __CFUNC DAQmxSetCIPulseWidthDigSyncEnable(TaskHandle taskHandle, const char channel[], bool32 data); int32 __CFUNC DAQmxResetCIPulseWidthDigSyncEnable(TaskHandle taskHandle, const char channel[]); //*** Set/Get functions for DAQmx_CI_TwoEdgeSep_Units *** // Uses value set TimeUnits3 int32 __CFUNC DAQmxGetCITwoEdgeSepUnits(TaskHandle taskHandle, const char channel[], int32 *data); int32 __CFUNC DAQmxSetCITwoEdgeSepUnits(TaskHandle taskHandle, const char channel[], int32 data); int32 __CFUNC DAQmxResetCITwoEdgeSepUnits(TaskHandle taskHandle, const char channel[]); //*** Set/Get functions for DAQmx_CI_TwoEdgeSep_FirstTerm *** int32 __CFUNC DAQmxGetCITwoEdgeSepFirstTerm(TaskHandle taskHandle, const char channel[], char *data, uInt32 bufferSize); int32 __CFUNC DAQmxSetCITwoEdgeSepFirstTerm(TaskHandle taskHandle, const char channel[], const char *data); int32 __CFUNC DAQmxResetCITwoEdgeSepFirstTerm(TaskHandle taskHandle, const char channel[]); //*** Set/Get functions for DAQmx_CI_TwoEdgeSep_FirstEdge *** // Uses value set Edge1 int32 __CFUNC DAQmxGetCITwoEdgeSepFirstEdge(TaskHandle taskHandle, const char channel[], int32 *data); int32 __CFUNC DAQmxSetCITwoEdgeSepFirstEdge(TaskHandle taskHandle, const char channel[], int32 data); int32 __CFUNC DAQmxResetCITwoEdgeSepFirstEdge(TaskHandle taskHandle, const char channel[]); //*** Set/Get functions for DAQmx_CI_TwoEdgeSep_First_DigFltr_Enable *** int32 __CFUNC DAQmxGetCITwoEdgeSepFirstDigFltrEnable(TaskHandle taskHandle, const char channel[], bool32 *data); int32 __CFUNC DAQmxSetCITwoEdgeSepFirstDigFltrEnable(TaskHandle taskHandle, const char channel[], bool32 data); int32 __CFUNC DAQmxResetCITwoEdgeSepFirstDigFltrEnable(TaskHandle taskHandle, const char channel[]); //*** Set/Get functions for DAQmx_CI_TwoEdgeSep_First_DigFltr_MinPulseWidth *** int32 __CFUNC DAQmxGetCITwoEdgeSepFirstDigFltrMinPulseWidth(TaskHandle taskHandle, const char channel[], float64 *data); int32 __CFUNC DAQmxSetCITwoEdgeSepFirstDigFltrMinPulseWidth(TaskHandle taskHandle, const char channel[], float64 data); int32 __CFUNC DAQmxResetCITwoEdgeSepFirstDigFltrMinPulseWidth(TaskHandle taskHandle, const char channel[]); //*** Set/Get functions for DAQmx_CI_TwoEdgeSep_First_DigFltr_TimebaseSrc *** int32 __CFUNC DAQmxGetCITwoEdgeSepFirstDigFltrTimebaseSrc(TaskHandle taskHandle, const char channel[], char *data, uInt32 bufferSize); int32 __CFUNC DAQmxSetCITwoEdgeSepFirstDigFltrTimebaseSrc(TaskHandle taskHandle, const char channel[], const char *data); int32 __CFUNC DAQmxResetCITwoEdgeSepFirstDigFltrTimebaseSrc(TaskHandle taskHandle, const char channel[]); //*** Set/Get functions for DAQmx_CI_TwoEdgeSep_First_DigFltr_TimebaseRate *** int32 __CFUNC DAQmxGetCITwoEdgeSepFirstDigFltrTimebaseRate(TaskHandle taskHandle, const char channel[], float64 *data); int32 __CFUNC DAQmxSetCITwoEdgeSepFirstDigFltrTimebaseRate(TaskHandle taskHandle, const char channel[], float64 data); int32 __CFUNC DAQmxResetCITwoEdgeSepFirstDigFltrTimebaseRate(TaskHandle taskHandle, const char channel[]); //*** Set/Get functions for DAQmx_CI_TwoEdgeSep_First_DigSync_Enable *** int32 __CFUNC DAQmxGetCITwoEdgeSepFirstDigSyncEnable(TaskHandle taskHandle, const char channel[], bool32 *data); int32 __CFUNC DAQmxSetCITwoEdgeSepFirstDigSyncEnable(TaskHandle taskHandle, const char channel[], bool32 data); int32 __CFUNC DAQmxResetCITwoEdgeSepFirstDigSyncEnable(TaskHandle taskHandle, const char channel[]); //*** Set/Get functions for DAQmx_CI_TwoEdgeSep_SecondTerm *** int32 __CFUNC DAQmxGetCITwoEdgeSepSecondTerm(TaskHandle taskHandle, const char channel[], char *data, uInt32 bufferSize); int32 __CFUNC DAQmxSetCITwoEdgeSepSecondTerm(TaskHandle taskHandle, const char channel[], const char *data); int32 __CFUNC DAQmxResetCITwoEdgeSepSecondTerm(TaskHandle taskHandle, const char channel[]); //*** Set/Get functions for DAQmx_CI_TwoEdgeSep_SecondEdge *** // Uses value set Edge1 int32 __CFUNC DAQmxGetCITwoEdgeSepSecondEdge(TaskHandle taskHandle, const char channel[], int32 *data); int32 __CFUNC DAQmxSetCITwoEdgeSepSecondEdge(TaskHandle taskHandle, const char channel[], int32 data); int32 __CFUNC DAQmxResetCITwoEdgeSepSecondEdge(TaskHandle taskHandle, const char channel[]); //*** Set/Get functions for DAQmx_CI_TwoEdgeSep_Second_DigFltr_Enable *** int32 __CFUNC DAQmxGetCITwoEdgeSepSecondDigFltrEnable(TaskHandle taskHandle, const char channel[], bool32 *data); int32 __CFUNC DAQmxSetCITwoEdgeSepSecondDigFltrEnable(TaskHandle taskHandle, const char channel[], bool32 data); int32 __CFUNC DAQmxResetCITwoEdgeSepSecondDigFltrEnable(TaskHandle taskHandle, const char channel[]); //*** Set/Get functions for DAQmx_CI_TwoEdgeSep_Second_DigFltr_MinPulseWidth *** int32 __CFUNC DAQmxGetCITwoEdgeSepSecondDigFltrMinPulseWidth(TaskHandle taskHandle, const char channel[], float64 *data); int32 __CFUNC DAQmxSetCITwoEdgeSepSecondDigFltrMinPulseWidth(TaskHandle taskHandle, const char channel[], float64 data); int32 __CFUNC DAQmxResetCITwoEdgeSepSecondDigFltrMinPulseWidth(TaskHandle taskHandle, const char channel[]); //*** Set/Get functions for DAQmx_CI_TwoEdgeSep_Second_DigFltr_TimebaseSrc *** int32 __CFUNC DAQmxGetCITwoEdgeSepSecondDigFltrTimebaseSrc(TaskHandle taskHandle, const char channel[], char *data, uInt32 bufferSize); int32 __CFUNC DAQmxSetCITwoEdgeSepSecondDigFltrTimebaseSrc(TaskHandle taskHandle, const char channel[], const char *data); int32 __CFUNC DAQmxResetCITwoEdgeSepSecondDigFltrTimebaseSrc(TaskHandle taskHandle, const char channel[]); //*** Set/Get functions for DAQmx_CI_TwoEdgeSep_Second_DigFltr_TimebaseRate *** int32 __CFUNC DAQmxGetCITwoEdgeSepSecondDigFltrTimebaseRate(TaskHandle taskHandle, const char channel[], float64 *data); int32 __CFUNC DAQmxSetCITwoEdgeSepSecondDigFltrTimebaseRate(TaskHandle taskHandle, const char channel[], float64 data); int32 __CFUNC DAQmxResetCITwoEdgeSepSecondDigFltrTimebaseRate(TaskHandle taskHandle, const char channel[]); //*** Set/Get functions for DAQmx_CI_TwoEdgeSep_Second_DigSync_Enable *** int32 __CFUNC DAQmxGetCITwoEdgeSepSecondDigSyncEnable(TaskHandle taskHandle, const char channel[], bool32 *data); int32 __CFUNC DAQmxSetCITwoEdgeSepSecondDigSyncEnable(TaskHandle taskHandle, const char channel[], bool32 data); int32 __CFUNC DAQmxResetCITwoEdgeSepSecondDigSyncEnable(TaskHandle taskHandle, const char channel[]); //*** Set/Get functions for DAQmx_CI_SemiPeriod_Units *** // Uses value set TimeUnits3 int32 __CFUNC DAQmxGetCISemiPeriodUnits(TaskHandle taskHandle, const char channel[], int32 *data); int32 __CFUNC DAQmxSetCISemiPeriodUnits(TaskHandle taskHandle, const char channel[], int32 data); int32 __CFUNC DAQmxResetCISemiPeriodUnits(TaskHandle taskHandle, const char channel[]); //*** Set/Get functions for DAQmx_CI_SemiPeriod_Term *** int32 __CFUNC DAQmxGetCISemiPeriodTerm(TaskHandle taskHandle, const char channel[], char *data, uInt32 bufferSize); int32 __CFUNC DAQmxSetCISemiPeriodTerm(TaskHandle taskHandle, const char channel[], const char *data); int32 __CFUNC DAQmxResetCISemiPeriodTerm(TaskHandle taskHandle, const char channel[]); //*** Set/Get functions for DAQmx_CI_SemiPeriod_StartingEdge *** // Uses value set Edge1 int32 __CFUNC DAQmxGetCISemiPeriodStartingEdge(TaskHandle taskHandle, const char channel[], int32 *data); int32 __CFUNC DAQmxSetCISemiPeriodStartingEdge(TaskHandle taskHandle, const char channel[], int32 data); int32 __CFUNC DAQmxResetCISemiPeriodStartingEdge(TaskHandle taskHandle, const char channel[]); //*** Set/Get functions for DAQmx_CI_SemiPeriod_DigFltr_Enable *** int32 __CFUNC DAQmxGetCISemiPeriodDigFltrEnable(TaskHandle taskHandle, const char channel[], bool32 *data); int32 __CFUNC DAQmxSetCISemiPeriodDigFltrEnable(TaskHandle taskHandle, const char channel[], bool32 data); int32 __CFUNC DAQmxResetCISemiPeriodDigFltrEnable(TaskHandle taskHandle, const char channel[]); //*** Set/Get functions for DAQmx_CI_SemiPeriod_DigFltr_MinPulseWidth *** int32 __CFUNC DAQmxGetCISemiPeriodDigFltrMinPulseWidth(TaskHandle taskHandle, const char channel[], float64 *data); int32 __CFUNC DAQmxSetCISemiPeriodDigFltrMinPulseWidth(TaskHandle taskHandle, const char channel[], float64 data); int32 __CFUNC DAQmxResetCISemiPeriodDigFltrMinPulseWidth(TaskHandle taskHandle, const char channel[]); //*** Set/Get functions for DAQmx_CI_SemiPeriod_DigFltr_TimebaseSrc *** int32 __CFUNC DAQmxGetCISemiPeriodDigFltrTimebaseSrc(TaskHandle taskHandle, const char channel[], char *data, uInt32 bufferSize); int32 __CFUNC DAQmxSetCISemiPeriodDigFltrTimebaseSrc(TaskHandle taskHandle, const char channel[], const char *data); int32 __CFUNC DAQmxResetCISemiPeriodDigFltrTimebaseSrc(TaskHandle taskHandle, const char channel[]); //*** Set/Get functions for DAQmx_CI_SemiPeriod_DigFltr_TimebaseRate *** int32 __CFUNC DAQmxGetCISemiPeriodDigFltrTimebaseRate(TaskHandle taskHandle, const char channel[], float64 *data); int32 __CFUNC DAQmxSetCISemiPeriodDigFltrTimebaseRate(TaskHandle taskHandle, const char channel[], float64 data); int32 __CFUNC DAQmxResetCISemiPeriodDigFltrTimebaseRate(TaskHandle taskHandle, const char channel[]); //*** Set/Get functions for DAQmx_CI_SemiPeriod_DigSync_Enable *** int32 __CFUNC DAQmxGetCISemiPeriodDigSyncEnable(TaskHandle taskHandle, const char channel[], bool32 *data); int32 __CFUNC DAQmxSetCISemiPeriodDigSyncEnable(TaskHandle taskHandle, const char channel[], bool32 data); int32 __CFUNC DAQmxResetCISemiPeriodDigSyncEnable(TaskHandle taskHandle, const char channel[]); //*** Set/Get functions for DAQmx_CI_Pulse_Freq_Units *** // Uses value set FrequencyUnits2 int32 __CFUNC DAQmxGetCIPulseFreqUnits(TaskHandle taskHandle, const char channel[], int32 *data); int32 __CFUNC DAQmxSetCIPulseFreqUnits(TaskHandle taskHandle, const char channel[], int32 data); int32 __CFUNC DAQmxResetCIPulseFreqUnits(TaskHandle taskHandle, const char channel[]); //*** Set/Get functions for DAQmx_CI_Pulse_Freq_Term *** int32 __CFUNC DAQmxGetCIPulseFreqTerm(TaskHandle taskHandle, const char channel[], char *data, uInt32 bufferSize); int32 __CFUNC DAQmxSetCIPulseFreqTerm(TaskHandle taskHandle, const char channel[], const char *data); int32 __CFUNC DAQmxResetCIPulseFreqTerm(TaskHandle taskHandle, const char channel[]); //*** Set/Get functions for DAQmx_CI_Pulse_Freq_Start_Edge *** // Uses value set Edge1 int32 __CFUNC DAQmxGetCIPulseFreqStartEdge(TaskHandle taskHandle, const char channel[], int32 *data); int32 __CFUNC DAQmxSetCIPulseFreqStartEdge(TaskHandle taskHandle, const char channel[], int32 data); int32 __CFUNC DAQmxResetCIPulseFreqStartEdge(TaskHandle taskHandle, const char channel[]); //*** Set/Get functions for DAQmx_CI_Pulse_Freq_DigFltr_Enable *** int32 __CFUNC DAQmxGetCIPulseFreqDigFltrEnable(TaskHandle taskHandle, const char channel[], bool32 *data); int32 __CFUNC DAQmxSetCIPulseFreqDigFltrEnable(TaskHandle taskHandle, const char channel[], bool32 data); int32 __CFUNC DAQmxResetCIPulseFreqDigFltrEnable(TaskHandle taskHandle, const char channel[]); //*** Set/Get functions for DAQmx_CI_Pulse_Freq_DigFltr_MinPulseWidth *** int32 __CFUNC DAQmxGetCIPulseFreqDigFltrMinPulseWidth(TaskHandle taskHandle, const char channel[], float64 *data); int32 __CFUNC DAQmxSetCIPulseFreqDigFltrMinPulseWidth(TaskHandle taskHandle, const char channel[], float64 data); int32 __CFUNC DAQmxResetCIPulseFreqDigFltrMinPulseWidth(TaskHandle taskHandle, const char channel[]); //*** Set/Get functions for DAQmx_CI_Pulse_Freq_DigFltr_TimebaseSrc *** int32 __CFUNC DAQmxGetCIPulseFreqDigFltrTimebaseSrc(TaskHandle taskHandle, const char channel[], char *data, uInt32 bufferSize); int32 __CFUNC DAQmxSetCIPulseFreqDigFltrTimebaseSrc(TaskHandle taskHandle, const char channel[], const char *data); int32 __CFUNC DAQmxResetCIPulseFreqDigFltrTimebaseSrc(TaskHandle taskHandle, const char channel[]); //*** Set/Get functions for DAQmx_CI_Pulse_Freq_DigFltr_TimebaseRate *** int32 __CFUNC DAQmxGetCIPulseFreqDigFltrTimebaseRate(TaskHandle taskHandle, const char channel[], float64 *data); int32 __CFUNC DAQmxSetCIPulseFreqDigFltrTimebaseRate(TaskHandle taskHandle, const char channel[], float64 data); int32 __CFUNC DAQmxResetCIPulseFreqDigFltrTimebaseRate(TaskHandle taskHandle, const char channel[]); //*** Set/Get functions for DAQmx_CI_Pulse_Freq_DigSync_Enable *** int32 __CFUNC DAQmxGetCIPulseFreqDigSyncEnable(TaskHandle taskHandle, const char channel[], bool32 *data); int32 __CFUNC DAQmxSetCIPulseFreqDigSyncEnable(TaskHandle taskHandle, const char channel[], bool32 data); int32 __CFUNC DAQmxResetCIPulseFreqDigSyncEnable(TaskHandle taskHandle, const char channel[]); //*** Set/Get functions for DAQmx_CI_Pulse_Time_Units *** // Uses value set TimeUnits2 int32 __CFUNC DAQmxGetCIPulseTimeUnits(TaskHandle taskHandle, const char channel[], int32 *data); int32 __CFUNC DAQmxSetCIPulseTimeUnits(TaskHandle taskHandle, const char channel[], int32 data); int32 __CFUNC DAQmxResetCIPulseTimeUnits(TaskHandle taskHandle, const char channel[]); //*** Set/Get functions for DAQmx_CI_Pulse_Time_Term *** int32 __CFUNC DAQmxGetCIPulseTimeTerm(TaskHandle taskHandle, const char channel[], char *data, uInt32 bufferSize); int32 __CFUNC DAQmxSetCIPulseTimeTerm(TaskHandle taskHandle, const char channel[], const char *data); int32 __CFUNC DAQmxResetCIPulseTimeTerm(TaskHandle taskHandle, const char channel[]); //*** Set/Get functions for DAQmx_CI_Pulse_Time_StartEdge *** // Uses value set Edge1 int32 __CFUNC DAQmxGetCIPulseTimeStartEdge(TaskHandle taskHandle, const char channel[], int32 *data); int32 __CFUNC DAQmxSetCIPulseTimeStartEdge(TaskHandle taskHandle, const char channel[], int32 data); int32 __CFUNC DAQmxResetCIPulseTimeStartEdge(TaskHandle taskHandle, const char channel[]); //*** Set/Get functions for DAQmx_CI_Pulse_Time_DigFltr_Enable *** int32 __CFUNC DAQmxGetCIPulseTimeDigFltrEnable(TaskHandle taskHandle, const char channel[], bool32 *data); int32 __CFUNC DAQmxSetCIPulseTimeDigFltrEnable(TaskHandle taskHandle, const char channel[], bool32 data); int32 __CFUNC DAQmxResetCIPulseTimeDigFltrEnable(TaskHandle taskHandle, const char channel[]); //*** Set/Get functions for DAQmx_CI_Pulse_Time_DigFltr_MinPulseWidth *** int32 __CFUNC DAQmxGetCIPulseTimeDigFltrMinPulseWidth(TaskHandle taskHandle, const char channel[], float64 *data); int32 __CFUNC DAQmxSetCIPulseTimeDigFltrMinPulseWidth(TaskHandle taskHandle, const char channel[], float64 data); int32 __CFUNC DAQmxResetCIPulseTimeDigFltrMinPulseWidth(TaskHandle taskHandle, const char channel[]); //*** Set/Get functions for DAQmx_CI_Pulse_Time_DigFltr_TimebaseSrc *** int32 __CFUNC DAQmxGetCIPulseTimeDigFltrTimebaseSrc(TaskHandle taskHandle, const char channel[], char *data, uInt32 bufferSize); int32 __CFUNC DAQmxSetCIPulseTimeDigFltrTimebaseSrc(TaskHandle taskHandle, const char channel[], const char *data); int32 __CFUNC DAQmxResetCIPulseTimeDigFltrTimebaseSrc(TaskHandle taskHandle, const char channel[]); //*** Set/Get functions for DAQmx_CI_Pulse_Time_DigFltr_TimebaseRate *** int32 __CFUNC DAQmxGetCIPulseTimeDigFltrTimebaseRate(TaskHandle taskHandle, const char channel[], float64 *data); int32 __CFUNC DAQmxSetCIPulseTimeDigFltrTimebaseRate(TaskHandle taskHandle, const char channel[], float64 data); int32 __CFUNC DAQmxResetCIPulseTimeDigFltrTimebaseRate(TaskHandle taskHandle, const char channel[]); //*** Set/Get functions for DAQmx_CI_Pulse_Time_DigSync_Enable *** int32 __CFUNC DAQmxGetCIPulseTimeDigSyncEnable(TaskHandle taskHandle, const char channel[], bool32 *data); int32 __CFUNC DAQmxSetCIPulseTimeDigSyncEnable(TaskHandle taskHandle, const char channel[], bool32 data); int32 __CFUNC DAQmxResetCIPulseTimeDigSyncEnable(TaskHandle taskHandle, const char channel[]); //*** Set/Get functions for DAQmx_CI_Pulse_Ticks_Term *** int32 __CFUNC DAQmxGetCIPulseTicksTerm(TaskHandle taskHandle, const char channel[], char *data, uInt32 bufferSize); int32 __CFUNC DAQmxSetCIPulseTicksTerm(TaskHandle taskHandle, const char channel[], const char *data); int32 __CFUNC DAQmxResetCIPulseTicksTerm(TaskHandle taskHandle, const char channel[]); //*** Set/Get functions for DAQmx_CI_Pulse_Ticks_StartEdge *** // Uses value set Edge1 int32 __CFUNC DAQmxGetCIPulseTicksStartEdge(TaskHandle taskHandle, const char channel[], int32 *data); int32 __CFUNC DAQmxSetCIPulseTicksStartEdge(TaskHandle taskHandle, const char channel[], int32 data); int32 __CFUNC DAQmxResetCIPulseTicksStartEdge(TaskHandle taskHandle, const char channel[]); //*** Set/Get functions for DAQmx_CI_Pulse_Ticks_DigFltr_Enable *** int32 __CFUNC DAQmxGetCIPulseTicksDigFltrEnable(TaskHandle taskHandle, const char channel[], bool32 *data); int32 __CFUNC DAQmxSetCIPulseTicksDigFltrEnable(TaskHandle taskHandle, const char channel[], bool32 data); int32 __CFUNC DAQmxResetCIPulseTicksDigFltrEnable(TaskHandle taskHandle, const char channel[]); //*** Set/Get functions for DAQmx_CI_Pulse_Ticks_DigFltr_MinPulseWidth *** int32 __CFUNC DAQmxGetCIPulseTicksDigFltrMinPulseWidth(TaskHandle taskHandle, const char channel[], float64 *data); int32 __CFUNC DAQmxSetCIPulseTicksDigFltrMinPulseWidth(TaskHandle taskHandle, const char channel[], float64 data); int32 __CFUNC DAQmxResetCIPulseTicksDigFltrMinPulseWidth(TaskHandle taskHandle, const char channel[]); //*** Set/Get functions for DAQmx_CI_Pulse_Ticks_DigFltr_TimebaseSrc *** int32 __CFUNC DAQmxGetCIPulseTicksDigFltrTimebaseSrc(TaskHandle taskHandle, const char channel[], char *data, uInt32 bufferSize); int32 __CFUNC DAQmxSetCIPulseTicksDigFltrTimebaseSrc(TaskHandle taskHandle, const char channel[], const char *data); int32 __CFUNC DAQmxResetCIPulseTicksDigFltrTimebaseSrc(TaskHandle taskHandle, const char channel[]); //*** Set/Get functions for DAQmx_CI_Pulse_Ticks_DigFltr_TimebaseRate *** int32 __CFUNC DAQmxGetCIPulseTicksDigFltrTimebaseRate(TaskHandle taskHandle, const char channel[], float64 *data); int32 __CFUNC DAQmxSetCIPulseTicksDigFltrTimebaseRate(TaskHandle taskHandle, const char channel[], float64 data); int32 __CFUNC DAQmxResetCIPulseTicksDigFltrTimebaseRate(TaskHandle taskHandle, const char channel[]); //*** Set/Get functions for DAQmx_CI_Pulse_Ticks_DigSync_Enable *** int32 __CFUNC DAQmxGetCIPulseTicksDigSyncEnable(TaskHandle taskHandle, const char channel[], bool32 *data); int32 __CFUNC DAQmxSetCIPulseTicksDigSyncEnable(TaskHandle taskHandle, const char channel[], bool32 data); int32 __CFUNC DAQmxResetCIPulseTicksDigSyncEnable(TaskHandle taskHandle, const char channel[]); //*** Set/Get functions for DAQmx_CI_Timestamp_Units *** // Uses value set TimeUnits int32 __CFUNC DAQmxGetCITimestampUnits(TaskHandle taskHandle, const char channel[], int32 *data); int32 __CFUNC DAQmxSetCITimestampUnits(TaskHandle taskHandle, const char channel[], int32 data); int32 __CFUNC DAQmxResetCITimestampUnits(TaskHandle taskHandle, const char channel[]); //*** Set/Get functions for DAQmx_CI_Timestamp_InitialSeconds *** int32 __CFUNC DAQmxGetCITimestampInitialSeconds(TaskHandle taskHandle, const char channel[], uInt32 *data); int32 __CFUNC DAQmxSetCITimestampInitialSeconds(TaskHandle taskHandle, const char channel[], uInt32 data); int32 __CFUNC DAQmxResetCITimestampInitialSeconds(TaskHandle taskHandle, const char channel[]); //*** Set/Get functions for DAQmx_CI_GPS_SyncMethod *** // Uses value set GpsSignalType1 int32 __CFUNC DAQmxGetCIGPSSyncMethod(TaskHandle taskHandle, const char channel[], int32 *data); int32 __CFUNC DAQmxSetCIGPSSyncMethod(TaskHandle taskHandle, const char channel[], int32 data); int32 __CFUNC DAQmxResetCIGPSSyncMethod(TaskHandle taskHandle, const char channel[]); //*** Set/Get functions for DAQmx_CI_GPS_SyncSrc *** int32 __CFUNC DAQmxGetCIGPSSyncSrc(TaskHandle taskHandle, const char channel[], char *data, uInt32 bufferSize); int32 __CFUNC DAQmxSetCIGPSSyncSrc(TaskHandle taskHandle, const char channel[], const char *data); int32 __CFUNC DAQmxResetCIGPSSyncSrc(TaskHandle taskHandle, const char channel[]); //*** Set/Get functions for DAQmx_CI_CtrTimebaseSrc *** int32 __CFUNC DAQmxGetCICtrTimebaseSrc(TaskHandle taskHandle, const char channel[], char *data, uInt32 bufferSize); int32 __CFUNC DAQmxSetCICtrTimebaseSrc(TaskHandle taskHandle, const char channel[], const char *data); int32 __CFUNC DAQmxResetCICtrTimebaseSrc(TaskHandle taskHandle, const char channel[]); //*** Set/Get functions for DAQmx_CI_CtrTimebaseRate *** int32 __CFUNC DAQmxGetCICtrTimebaseRate(TaskHandle taskHandle, const char channel[], float64 *data); int32 __CFUNC DAQmxSetCICtrTimebaseRate(TaskHandle taskHandle, const char channel[], float64 data); int32 __CFUNC DAQmxResetCICtrTimebaseRate(TaskHandle taskHandle, const char channel[]); //*** Set/Get functions for DAQmx_CI_CtrTimebaseActiveEdge *** // Uses value set Edge1 int32 __CFUNC DAQmxGetCICtrTimebaseActiveEdge(TaskHandle taskHandle, const char channel[], int32 *data); int32 __CFUNC DAQmxSetCICtrTimebaseActiveEdge(TaskHandle taskHandle, const char channel[], int32 data); int32 __CFUNC DAQmxResetCICtrTimebaseActiveEdge(TaskHandle taskHandle, const char channel[]); //*** Set/Get functions for DAQmx_CI_CtrTimebase_DigFltr_Enable *** int32 __CFUNC DAQmxGetCICtrTimebaseDigFltrEnable(TaskHandle taskHandle, const char channel[], bool32 *data); int32 __CFUNC DAQmxSetCICtrTimebaseDigFltrEnable(TaskHandle taskHandle, const char channel[], bool32 data); int32 __CFUNC DAQmxResetCICtrTimebaseDigFltrEnable(TaskHandle taskHandle, const char channel[]); //*** Set/Get functions for DAQmx_CI_CtrTimebase_DigFltr_MinPulseWidth *** int32 __CFUNC DAQmxGetCICtrTimebaseDigFltrMinPulseWidth(TaskHandle taskHandle, const char channel[], float64 *data); int32 __CFUNC DAQmxSetCICtrTimebaseDigFltrMinPulseWidth(TaskHandle taskHandle, const char channel[], float64 data); int32 __CFUNC DAQmxResetCICtrTimebaseDigFltrMinPulseWidth(TaskHandle taskHandle, const char channel[]); //*** Set/Get functions for DAQmx_CI_CtrTimebase_DigFltr_TimebaseSrc *** int32 __CFUNC DAQmxGetCICtrTimebaseDigFltrTimebaseSrc(TaskHandle taskHandle, const char channel[], char *data, uInt32 bufferSize); int32 __CFUNC DAQmxSetCICtrTimebaseDigFltrTimebaseSrc(TaskHandle taskHandle, const char channel[], const char *data); int32 __CFUNC DAQmxResetCICtrTimebaseDigFltrTimebaseSrc(TaskHandle taskHandle, const char channel[]); //*** Set/Get functions for DAQmx_CI_CtrTimebase_DigFltr_TimebaseRate *** int32 __CFUNC DAQmxGetCICtrTimebaseDigFltrTimebaseRate(TaskHandle taskHandle, const char channel[], float64 *data); int32 __CFUNC DAQmxSetCICtrTimebaseDigFltrTimebaseRate(TaskHandle taskHandle, const char channel[], float64 data); int32 __CFUNC DAQmxResetCICtrTimebaseDigFltrTimebaseRate(TaskHandle taskHandle, const char channel[]); //*** Set/Get functions for DAQmx_CI_CtrTimebase_DigSync_Enable *** int32 __CFUNC DAQmxGetCICtrTimebaseDigSyncEnable(TaskHandle taskHandle, const char channel[], bool32 *data); int32 __CFUNC DAQmxSetCICtrTimebaseDigSyncEnable(TaskHandle taskHandle, const char channel[], bool32 data); int32 __CFUNC DAQmxResetCICtrTimebaseDigSyncEnable(TaskHandle taskHandle, const char channel[]); //*** Set/Get functions for DAQmx_CI_Count *** int32 __CFUNC DAQmxGetCICount(TaskHandle taskHandle, const char channel[], uInt32 *data); //*** Set/Get functions for DAQmx_CI_OutputState *** // Uses value set Level1 int32 __CFUNC DAQmxGetCIOutputState(TaskHandle taskHandle, const char channel[], int32 *data); //*** Set/Get functions for DAQmx_CI_TCReached *** int32 __CFUNC DAQmxGetCITCReached(TaskHandle taskHandle, const char channel[], bool32 *data); //*** Set/Get functions for DAQmx_CI_CtrTimebaseMasterTimebaseDiv *** int32 __CFUNC DAQmxGetCICtrTimebaseMasterTimebaseDiv(TaskHandle taskHandle, const char channel[], uInt32 *data); int32 __CFUNC DAQmxSetCICtrTimebaseMasterTimebaseDiv(TaskHandle taskHandle, const char channel[], uInt32 data); int32 __CFUNC DAQmxResetCICtrTimebaseMasterTimebaseDiv(TaskHandle taskHandle, const char channel[]); //*** Set/Get functions for DAQmx_CI_DataXferMech *** // Uses value set DataTransferMechanism int32 __CFUNC DAQmxGetCIDataXferMech(TaskHandle taskHandle, const char channel[], int32 *data); int32 __CFUNC DAQmxSetCIDataXferMech(TaskHandle taskHandle, const char channel[], int32 data); int32 __CFUNC DAQmxResetCIDataXferMech(TaskHandle taskHandle, const char channel[]); //*** Set/Get functions for DAQmx_CI_DataXferReqCond *** // Uses value set InputDataTransferCondition int32 __CFUNC DAQmxGetCIDataXferReqCond(TaskHandle taskHandle, const char channel[], int32 *data); int32 __CFUNC DAQmxSetCIDataXferReqCond(TaskHandle taskHandle, const char channel[], int32 data); int32 __CFUNC DAQmxResetCIDataXferReqCond(TaskHandle taskHandle, const char channel[]); //*** Set/Get functions for DAQmx_CI_UsbXferReqSize *** int32 __CFUNC DAQmxGetCIUsbXferReqSize(TaskHandle taskHandle, const char channel[], uInt32 *data); int32 __CFUNC DAQmxSetCIUsbXferReqSize(TaskHandle taskHandle, const char channel[], uInt32 data); int32 __CFUNC DAQmxResetCIUsbXferReqSize(TaskHandle taskHandle, const char channel[]); //*** Set/Get functions for DAQmx_CI_MemMapEnable *** int32 __CFUNC DAQmxGetCIMemMapEnable(TaskHandle taskHandle, const char channel[], bool32 *data); int32 __CFUNC DAQmxSetCIMemMapEnable(TaskHandle taskHandle, const char channel[], bool32 data); int32 __CFUNC DAQmxResetCIMemMapEnable(TaskHandle taskHandle, const char channel[]); //*** Set/Get functions for DAQmx_CI_NumPossiblyInvalidSamps *** int32 __CFUNC DAQmxGetCINumPossiblyInvalidSamps(TaskHandle taskHandle, const char channel[], uInt32 *data); //*** Set/Get functions for DAQmx_CI_DupCountPrevent *** int32 __CFUNC DAQmxGetCIDupCountPrevent(TaskHandle taskHandle, const char channel[], bool32 *data); int32 __CFUNC DAQmxSetCIDupCountPrevent(TaskHandle taskHandle, const char channel[], bool32 data); int32 __CFUNC DAQmxResetCIDupCountPrevent(TaskHandle taskHandle, const char channel[]); //*** Set/Get functions for DAQmx_CI_Prescaler *** int32 __CFUNC DAQmxGetCIPrescaler(TaskHandle taskHandle, const char channel[], uInt32 *data); int32 __CFUNC DAQmxSetCIPrescaler(TaskHandle taskHandle, const char channel[], uInt32 data); int32 __CFUNC DAQmxResetCIPrescaler(TaskHandle taskHandle, const char channel[]); //*** Set/Get functions for DAQmx_CO_OutputType *** // Uses value set COOutputType int32 __CFUNC DAQmxGetCOOutputType(TaskHandle taskHandle, const char channel[], int32 *data); //*** Set/Get functions for DAQmx_CO_Pulse_IdleState *** // Uses value set Level1 int32 __CFUNC DAQmxGetCOPulseIdleState(TaskHandle taskHandle, const char channel[], int32 *data); int32 __CFUNC DAQmxSetCOPulseIdleState(TaskHandle taskHandle, const char channel[], int32 data); int32 __CFUNC DAQmxResetCOPulseIdleState(TaskHandle taskHandle, const char channel[]); //*** Set/Get functions for DAQmx_CO_Pulse_Term *** int32 __CFUNC DAQmxGetCOPulseTerm(TaskHandle taskHandle, const char channel[], char *data, uInt32 bufferSize); int32 __CFUNC DAQmxSetCOPulseTerm(TaskHandle taskHandle, const char channel[], const char *data); int32 __CFUNC DAQmxResetCOPulseTerm(TaskHandle taskHandle, const char channel[]); //*** Set/Get functions for DAQmx_CO_Pulse_Time_Units *** // Uses value set TimeUnits2 int32 __CFUNC DAQmxGetCOPulseTimeUnits(TaskHandle taskHandle, const char channel[], int32 *data); int32 __CFUNC DAQmxSetCOPulseTimeUnits(TaskHandle taskHandle, const char channel[], int32 data); int32 __CFUNC DAQmxResetCOPulseTimeUnits(TaskHandle taskHandle, const char channel[]); //*** Set/Get functions for DAQmx_CO_Pulse_HighTime *** int32 __CFUNC DAQmxGetCOPulseHighTime(TaskHandle taskHandle, const char channel[], float64 *data); int32 __CFUNC DAQmxSetCOPulseHighTime(TaskHandle taskHandle, const char channel[], float64 data); int32 __CFUNC DAQmxResetCOPulseHighTime(TaskHandle taskHandle, const char channel[]); //*** Set/Get functions for DAQmx_CO_Pulse_LowTime *** int32 __CFUNC DAQmxGetCOPulseLowTime(TaskHandle taskHandle, const char channel[], float64 *data); int32 __CFUNC DAQmxSetCOPulseLowTime(TaskHandle taskHandle, const char channel[], float64 data); int32 __CFUNC DAQmxResetCOPulseLowTime(TaskHandle taskHandle, const char channel[]); //*** Set/Get functions for DAQmx_CO_Pulse_Time_InitialDelay *** int32 __CFUNC DAQmxGetCOPulseTimeInitialDelay(TaskHandle taskHandle, const char channel[], float64 *data); int32 __CFUNC DAQmxSetCOPulseTimeInitialDelay(TaskHandle taskHandle, const char channel[], float64 data); int32 __CFUNC DAQmxResetCOPulseTimeInitialDelay(TaskHandle taskHandle, const char channel[]); //*** Set/Get functions for DAQmx_CO_Pulse_DutyCyc *** int32 __CFUNC DAQmxGetCOPulseDutyCyc(TaskHandle taskHandle, const char channel[], float64 *data); int32 __CFUNC DAQmxSetCOPulseDutyCyc(TaskHandle taskHandle, const char channel[], float64 data); int32 __CFUNC DAQmxResetCOPulseDutyCyc(TaskHandle taskHandle, const char channel[]); //*** Set/Get functions for DAQmx_CO_Pulse_Freq_Units *** // Uses value set FrequencyUnits2 int32 __CFUNC DAQmxGetCOPulseFreqUnits(TaskHandle taskHandle, const char channel[], int32 *data); int32 __CFUNC DAQmxSetCOPulseFreqUnits(TaskHandle taskHandle, const char channel[], int32 data); int32 __CFUNC DAQmxResetCOPulseFreqUnits(TaskHandle taskHandle, const char channel[]); //*** Set/Get functions for DAQmx_CO_Pulse_Freq *** int32 __CFUNC DAQmxGetCOPulseFreq(TaskHandle taskHandle, const char channel[], float64 *data); int32 __CFUNC DAQmxSetCOPulseFreq(TaskHandle taskHandle, const char channel[], float64 data); int32 __CFUNC DAQmxResetCOPulseFreq(TaskHandle taskHandle, const char channel[]); //*** Set/Get functions for DAQmx_CO_Pulse_Freq_InitialDelay *** int32 __CFUNC DAQmxGetCOPulseFreqInitialDelay(TaskHandle taskHandle, const char channel[], float64 *data); int32 __CFUNC DAQmxSetCOPulseFreqInitialDelay(TaskHandle taskHandle, const char channel[], float64 data); int32 __CFUNC DAQmxResetCOPulseFreqInitialDelay(TaskHandle taskHandle, const char channel[]); //*** Set/Get functions for DAQmx_CO_Pulse_HighTicks *** int32 __CFUNC DAQmxGetCOPulseHighTicks(TaskHandle taskHandle, const char channel[], uInt32 *data); int32 __CFUNC DAQmxSetCOPulseHighTicks(TaskHandle taskHandle, const char channel[], uInt32 data); int32 __CFUNC DAQmxResetCOPulseHighTicks(TaskHandle taskHandle, const char channel[]); //*** Set/Get functions for DAQmx_CO_Pulse_LowTicks *** int32 __CFUNC DAQmxGetCOPulseLowTicks(TaskHandle taskHandle, const char channel[], uInt32 *data); int32 __CFUNC DAQmxSetCOPulseLowTicks(TaskHandle taskHandle, const char channel[], uInt32 data); int32 __CFUNC DAQmxResetCOPulseLowTicks(TaskHandle taskHandle, const char channel[]); //*** Set/Get functions for DAQmx_CO_Pulse_Ticks_InitialDelay *** int32 __CFUNC DAQmxGetCOPulseTicksInitialDelay(TaskHandle taskHandle, const char channel[], uInt32 *data); int32 __CFUNC DAQmxSetCOPulseTicksInitialDelay(TaskHandle taskHandle, const char channel[], uInt32 data); int32 __CFUNC DAQmxResetCOPulseTicksInitialDelay(TaskHandle taskHandle, const char channel[]); //*** Set/Get functions for DAQmx_CO_CtrTimebaseSrc *** int32 __CFUNC DAQmxGetCOCtrTimebaseSrc(TaskHandle taskHandle, const char channel[], char *data, uInt32 bufferSize); int32 __CFUNC DAQmxSetCOCtrTimebaseSrc(TaskHandle taskHandle, const char channel[], const char *data); int32 __CFUNC DAQmxResetCOCtrTimebaseSrc(TaskHandle taskHandle, const char channel[]); //*** Set/Get functions for DAQmx_CO_CtrTimebaseRate *** int32 __CFUNC DAQmxGetCOCtrTimebaseRate(TaskHandle taskHandle, const char channel[], float64 *data); int32 __CFUNC DAQmxSetCOCtrTimebaseRate(TaskHandle taskHandle, const char channel[], float64 data); int32 __CFUNC DAQmxResetCOCtrTimebaseRate(TaskHandle taskHandle, const char channel[]); //*** Set/Get functions for DAQmx_CO_CtrTimebaseActiveEdge *** // Uses value set Edge1 int32 __CFUNC DAQmxGetCOCtrTimebaseActiveEdge(TaskHandle taskHandle, const char channel[], int32 *data); int32 __CFUNC DAQmxSetCOCtrTimebaseActiveEdge(TaskHandle taskHandle, const char channel[], int32 data); int32 __CFUNC DAQmxResetCOCtrTimebaseActiveEdge(TaskHandle taskHandle, const char channel[]); //*** Set/Get functions for DAQmx_CO_CtrTimebase_DigFltr_Enable *** int32 __CFUNC DAQmxGetCOCtrTimebaseDigFltrEnable(TaskHandle taskHandle, const char channel[], bool32 *data); int32 __CFUNC DAQmxSetCOCtrTimebaseDigFltrEnable(TaskHandle taskHandle, const char channel[], bool32 data); int32 __CFUNC DAQmxResetCOCtrTimebaseDigFltrEnable(TaskHandle taskHandle, const char channel[]); //*** Set/Get functions for DAQmx_CO_CtrTimebase_DigFltr_MinPulseWidth *** int32 __CFUNC DAQmxGetCOCtrTimebaseDigFltrMinPulseWidth(TaskHandle taskHandle, const char channel[], float64 *data); int32 __CFUNC DAQmxSetCOCtrTimebaseDigFltrMinPulseWidth(TaskHandle taskHandle, const char channel[], float64 data); int32 __CFUNC DAQmxResetCOCtrTimebaseDigFltrMinPulseWidth(TaskHandle taskHandle, const char channel[]); //*** Set/Get functions for DAQmx_CO_CtrTimebase_DigFltr_TimebaseSrc *** int32 __CFUNC DAQmxGetCOCtrTimebaseDigFltrTimebaseSrc(TaskHandle taskHandle, const char channel[], char *data, uInt32 bufferSize); int32 __CFUNC DAQmxSetCOCtrTimebaseDigFltrTimebaseSrc(TaskHandle taskHandle, const char channel[], const char *data); int32 __CFUNC DAQmxResetCOCtrTimebaseDigFltrTimebaseSrc(TaskHandle taskHandle, const char channel[]); //*** Set/Get functions for DAQmx_CO_CtrTimebase_DigFltr_TimebaseRate *** int32 __CFUNC DAQmxGetCOCtrTimebaseDigFltrTimebaseRate(TaskHandle taskHandle, const char channel[], float64 *data); int32 __CFUNC DAQmxSetCOCtrTimebaseDigFltrTimebaseRate(TaskHandle taskHandle, const char channel[], float64 data); int32 __CFUNC DAQmxResetCOCtrTimebaseDigFltrTimebaseRate(TaskHandle taskHandle, const char channel[]); //*** Set/Get functions for DAQmx_CO_CtrTimebase_DigSync_Enable *** int32 __CFUNC DAQmxGetCOCtrTimebaseDigSyncEnable(TaskHandle taskHandle, const char channel[], bool32 *data); int32 __CFUNC DAQmxSetCOCtrTimebaseDigSyncEnable(TaskHandle taskHandle, const char channel[], bool32 data); int32 __CFUNC DAQmxResetCOCtrTimebaseDigSyncEnable(TaskHandle taskHandle, const char channel[]); //*** Set/Get functions for DAQmx_CO_Count *** int32 __CFUNC DAQmxGetCOCount(TaskHandle taskHandle, const char channel[], uInt32 *data); //*** Set/Get functions for DAQmx_CO_OutputState *** // Uses value set Level1 int32 __CFUNC DAQmxGetCOOutputState(TaskHandle taskHandle, const char channel[], int32 *data); //*** Set/Get functions for DAQmx_CO_AutoIncrCnt *** int32 __CFUNC DAQmxGetCOAutoIncrCnt(TaskHandle taskHandle, const char channel[], uInt32 *data); int32 __CFUNC DAQmxSetCOAutoIncrCnt(TaskHandle taskHandle, const char channel[], uInt32 data); int32 __CFUNC DAQmxResetCOAutoIncrCnt(TaskHandle taskHandle, const char channel[]); //*** Set/Get functions for DAQmx_CO_CtrTimebaseMasterTimebaseDiv *** int32 __CFUNC DAQmxGetCOCtrTimebaseMasterTimebaseDiv(TaskHandle taskHandle, const char channel[], uInt32 *data); int32 __CFUNC DAQmxSetCOCtrTimebaseMasterTimebaseDiv(TaskHandle taskHandle, const char channel[], uInt32 data); int32 __CFUNC DAQmxResetCOCtrTimebaseMasterTimebaseDiv(TaskHandle taskHandle, const char channel[]); //*** Set/Get functions for DAQmx_CO_PulseDone *** int32 __CFUNC DAQmxGetCOPulseDone(TaskHandle taskHandle, const char channel[], bool32 *data); //*** Set/Get functions for DAQmx_CO_EnableInitialDelayOnRetrigger *** int32 __CFUNC DAQmxGetCOEnableInitialDelayOnRetrigger(TaskHandle taskHandle, const char channel[], bool32 *data); int32 __CFUNC DAQmxSetCOEnableInitialDelayOnRetrigger(TaskHandle taskHandle, const char channel[], bool32 data); int32 __CFUNC DAQmxResetCOEnableInitialDelayOnRetrigger(TaskHandle taskHandle, const char channel[]); //*** Set/Get functions for DAQmx_CO_ConstrainedGenMode *** // Uses value set ConstrainedGenMode int32 __CFUNC DAQmxGetCOConstrainedGenMode(TaskHandle taskHandle, const char channel[], int32 *data); int32 __CFUNC DAQmxSetCOConstrainedGenMode(TaskHandle taskHandle, const char channel[], int32 data); int32 __CFUNC DAQmxResetCOConstrainedGenMode(TaskHandle taskHandle, const char channel[]); //*** Set/Get functions for DAQmx_CO_UseOnlyOnBrdMem *** int32 __CFUNC DAQmxGetCOUseOnlyOnBrdMem(TaskHandle taskHandle, const char channel[], bool32 *data); int32 __CFUNC DAQmxSetCOUseOnlyOnBrdMem(TaskHandle taskHandle, const char channel[], bool32 data); int32 __CFUNC DAQmxResetCOUseOnlyOnBrdMem(TaskHandle taskHandle, const char channel[]); //*** Set/Get functions for DAQmx_CO_DataXferMech *** // Uses value set DataTransferMechanism int32 __CFUNC DAQmxGetCODataXferMech(TaskHandle taskHandle, const char channel[], int32 *data); int32 __CFUNC DAQmxSetCODataXferMech(TaskHandle taskHandle, const char channel[], int32 data); int32 __CFUNC DAQmxResetCODataXferMech(TaskHandle taskHandle, const char channel[]); //*** Set/Get functions for DAQmx_CO_DataXferReqCond *** // Uses value set OutputDataTransferCondition int32 __CFUNC DAQmxGetCODataXferReqCond(TaskHandle taskHandle, const char channel[], int32 *data); int32 __CFUNC DAQmxSetCODataXferReqCond(TaskHandle taskHandle, const char channel[], int32 data); int32 __CFUNC DAQmxResetCODataXferReqCond(TaskHandle taskHandle, const char channel[]); //*** Set/Get functions for DAQmx_CO_UsbXferReqSize *** int32 __CFUNC DAQmxGetCOUsbXferReqSize(TaskHandle taskHandle, const char channel[], uInt32 *data); int32 __CFUNC DAQmxSetCOUsbXferReqSize(TaskHandle taskHandle, const char channel[], uInt32 data); int32 __CFUNC DAQmxResetCOUsbXferReqSize(TaskHandle taskHandle, const char channel[]); //*** Set/Get functions for DAQmx_CO_MemMapEnable *** int32 __CFUNC DAQmxGetCOMemMapEnable(TaskHandle taskHandle, const char channel[], bool32 *data); int32 __CFUNC DAQmxSetCOMemMapEnable(TaskHandle taskHandle, const char channel[], bool32 data); int32 __CFUNC DAQmxResetCOMemMapEnable(TaskHandle taskHandle, const char channel[]); //*** Set/Get functions for DAQmx_CO_Prescaler *** int32 __CFUNC DAQmxGetCOPrescaler(TaskHandle taskHandle, const char channel[], uInt32 *data); int32 __CFUNC DAQmxSetCOPrescaler(TaskHandle taskHandle, const char channel[], uInt32 data); int32 __CFUNC DAQmxResetCOPrescaler(TaskHandle taskHandle, const char channel[]); //*** Set/Get functions for DAQmx_CO_RdyForNewVal *** int32 __CFUNC DAQmxGetCORdyForNewVal(TaskHandle taskHandle, const char channel[], bool32 *data); //*** Set/Get functions for DAQmx_ChanType *** // Uses value set ChannelType int32 __CFUNC DAQmxGetChanType(TaskHandle taskHandle, const char channel[], int32 *data); //*** Set/Get functions for DAQmx_PhysicalChanName *** int32 __CFUNC DAQmxGetPhysicalChanName(TaskHandle taskHandle, const char channel[], char *data, uInt32 bufferSize); int32 __CFUNC DAQmxSetPhysicalChanName(TaskHandle taskHandle, const char channel[], const char *data); //*** Set/Get functions for DAQmx_ChanDescr *** int32 __CFUNC DAQmxGetChanDescr(TaskHandle taskHandle, const char channel[], char *data, uInt32 bufferSize); int32 __CFUNC DAQmxSetChanDescr(TaskHandle taskHandle, const char channel[], const char *data); int32 __CFUNC DAQmxResetChanDescr(TaskHandle taskHandle, const char channel[]); //*** Set/Get functions for DAQmx_ChanIsGlobal *** int32 __CFUNC DAQmxGetChanIsGlobal(TaskHandle taskHandle, const char channel[], bool32 *data); //********** Export Signal ********** //*** Set/Get functions for DAQmx_Exported_AIConvClk_OutputTerm *** int32 __CFUNC DAQmxGetExportedAIConvClkOutputTerm(TaskHandle taskHandle, char *data, uInt32 bufferSize); int32 __CFUNC DAQmxSetExportedAIConvClkOutputTerm(TaskHandle taskHandle, const char *data); int32 __CFUNC DAQmxResetExportedAIConvClkOutputTerm(TaskHandle taskHandle); //*** Set/Get functions for DAQmx_Exported_AIConvClk_Pulse_Polarity *** // Uses value set Polarity2 int32 __CFUNC DAQmxGetExportedAIConvClkPulsePolarity(TaskHandle taskHandle, int32 *data); //*** Set/Get functions for DAQmx_Exported_10MHzRefClk_OutputTerm *** int32 __CFUNC DAQmxGetExported10MHzRefClkOutputTerm(TaskHandle taskHandle, char *data, uInt32 bufferSize); int32 __CFUNC DAQmxSetExported10MHzRefClkOutputTerm(TaskHandle taskHandle, const char *data); int32 __CFUNC DAQmxResetExported10MHzRefClkOutputTerm(TaskHandle taskHandle); //*** Set/Get functions for DAQmx_Exported_20MHzTimebase_OutputTerm *** int32 __CFUNC DAQmxGetExported20MHzTimebaseOutputTerm(TaskHandle taskHandle, char *data, uInt32 bufferSize); int32 __CFUNC DAQmxSetExported20MHzTimebaseOutputTerm(TaskHandle taskHandle, const char *data); int32 __CFUNC DAQmxResetExported20MHzTimebaseOutputTerm(TaskHandle taskHandle); //*** Set/Get functions for DAQmx_Exported_SampClk_OutputBehavior *** // Uses value set ExportActions3 int32 __CFUNC DAQmxGetExportedSampClkOutputBehavior(TaskHandle taskHandle, int32 *data); int32 __CFUNC DAQmxSetExportedSampClkOutputBehavior(TaskHandle taskHandle, int32 data); int32 __CFUNC DAQmxResetExportedSampClkOutputBehavior(TaskHandle taskHandle); //*** Set/Get functions for DAQmx_Exported_SampClk_OutputTerm *** int32 __CFUNC DAQmxGetExportedSampClkOutputTerm(TaskHandle taskHandle, char *data, uInt32 bufferSize); int32 __CFUNC DAQmxSetExportedSampClkOutputTerm(TaskHandle taskHandle, const char *data); int32 __CFUNC DAQmxResetExportedSampClkOutputTerm(TaskHandle taskHandle); //*** Set/Get functions for DAQmx_Exported_SampClk_DelayOffset *** int32 __CFUNC DAQmxGetExportedSampClkDelayOffset(TaskHandle taskHandle, float64 *data); int32 __CFUNC DAQmxSetExportedSampClkDelayOffset(TaskHandle taskHandle, float64 data); int32 __CFUNC DAQmxResetExportedSampClkDelayOffset(TaskHandle taskHandle); //*** Set/Get functions for DAQmx_Exported_SampClk_Pulse_Polarity *** // Uses value set Polarity2 int32 __CFUNC DAQmxGetExportedSampClkPulsePolarity(TaskHandle taskHandle, int32 *data); int32 __CFUNC DAQmxSetExportedSampClkPulsePolarity(TaskHandle taskHandle, int32 data); int32 __CFUNC DAQmxResetExportedSampClkPulsePolarity(TaskHandle taskHandle); //*** Set/Get functions for DAQmx_Exported_SampClkTimebase_OutputTerm *** int32 __CFUNC DAQmxGetExportedSampClkTimebaseOutputTerm(TaskHandle taskHandle, char *data, uInt32 bufferSize); int32 __CFUNC DAQmxSetExportedSampClkTimebaseOutputTerm(TaskHandle taskHandle, const char *data); int32 __CFUNC DAQmxResetExportedSampClkTimebaseOutputTerm(TaskHandle taskHandle); //*** Set/Get functions for DAQmx_Exported_DividedSampClkTimebase_OutputTerm *** int32 __CFUNC DAQmxGetExportedDividedSampClkTimebaseOutputTerm(TaskHandle taskHandle, char *data, uInt32 bufferSize); int32 __CFUNC DAQmxSetExportedDividedSampClkTimebaseOutputTerm(TaskHandle taskHandle, const char *data); int32 __CFUNC DAQmxResetExportedDividedSampClkTimebaseOutputTerm(TaskHandle taskHandle); //*** Set/Get functions for DAQmx_Exported_AdvTrig_OutputTerm *** int32 __CFUNC DAQmxGetExportedAdvTrigOutputTerm(TaskHandle taskHandle, char *data, uInt32 bufferSize); int32 __CFUNC DAQmxSetExportedAdvTrigOutputTerm(TaskHandle taskHandle, const char *data); int32 __CFUNC DAQmxResetExportedAdvTrigOutputTerm(TaskHandle taskHandle); //*** Set/Get functions for DAQmx_Exported_AdvTrig_Pulse_Polarity *** // Uses value set Polarity2 int32 __CFUNC DAQmxGetExportedAdvTrigPulsePolarity(TaskHandle taskHandle, int32 *data); //*** Set/Get functions for DAQmx_Exported_AdvTrig_Pulse_WidthUnits *** // Uses value set DigitalWidthUnits3 int32 __CFUNC DAQmxGetExportedAdvTrigPulseWidthUnits(TaskHandle taskHandle, int32 *data); int32 __CFUNC DAQmxSetExportedAdvTrigPulseWidthUnits(TaskHandle taskHandle, int32 data); int32 __CFUNC DAQmxResetExportedAdvTrigPulseWidthUnits(TaskHandle taskHandle); //*** Set/Get functions for DAQmx_Exported_AdvTrig_Pulse_Width *** int32 __CFUNC DAQmxGetExportedAdvTrigPulseWidth(TaskHandle taskHandle, float64 *data); int32 __CFUNC DAQmxSetExportedAdvTrigPulseWidth(TaskHandle taskHandle, float64 data); int32 __CFUNC DAQmxResetExportedAdvTrigPulseWidth(TaskHandle taskHandle); //*** Set/Get functions for DAQmx_Exported_PauseTrig_OutputTerm *** int32 __CFUNC DAQmxGetExportedPauseTrigOutputTerm(TaskHandle taskHandle, char *data, uInt32 bufferSize); int32 __CFUNC DAQmxSetExportedPauseTrigOutputTerm(TaskHandle taskHandle, const char *data); int32 __CFUNC DAQmxResetExportedPauseTrigOutputTerm(TaskHandle taskHandle); //*** Set/Get functions for DAQmx_Exported_PauseTrig_Lvl_ActiveLvl *** // Uses value set Polarity2 int32 __CFUNC DAQmxGetExportedPauseTrigLvlActiveLvl(TaskHandle taskHandle, int32 *data); int32 __CFUNC DAQmxSetExportedPauseTrigLvlActiveLvl(TaskHandle taskHandle, int32 data); int32 __CFUNC DAQmxResetExportedPauseTrigLvlActiveLvl(TaskHandle taskHandle); //*** Set/Get functions for DAQmx_Exported_RefTrig_OutputTerm *** int32 __CFUNC DAQmxGetExportedRefTrigOutputTerm(TaskHandle taskHandle, char *data, uInt32 bufferSize); int32 __CFUNC DAQmxSetExportedRefTrigOutputTerm(TaskHandle taskHandle, const char *data); int32 __CFUNC DAQmxResetExportedRefTrigOutputTerm(TaskHandle taskHandle); //*** Set/Get functions for DAQmx_Exported_RefTrig_Pulse_Polarity *** // Uses value set Polarity2 int32 __CFUNC DAQmxGetExportedRefTrigPulsePolarity(TaskHandle taskHandle, int32 *data); int32 __CFUNC DAQmxSetExportedRefTrigPulsePolarity(TaskHandle taskHandle, int32 data); int32 __CFUNC DAQmxResetExportedRefTrigPulsePolarity(TaskHandle taskHandle); //*** Set/Get functions for DAQmx_Exported_StartTrig_OutputTerm *** int32 __CFUNC DAQmxGetExportedStartTrigOutputTerm(TaskHandle taskHandle, char *data, uInt32 bufferSize); int32 __CFUNC DAQmxSetExportedStartTrigOutputTerm(TaskHandle taskHandle, const char *data); int32 __CFUNC DAQmxResetExportedStartTrigOutputTerm(TaskHandle taskHandle); //*** Set/Get functions for DAQmx_Exported_StartTrig_Pulse_Polarity *** // Uses value set Polarity2 int32 __CFUNC DAQmxGetExportedStartTrigPulsePolarity(TaskHandle taskHandle, int32 *data); int32 __CFUNC DAQmxSetExportedStartTrigPulsePolarity(TaskHandle taskHandle, int32 data); int32 __CFUNC DAQmxResetExportedStartTrigPulsePolarity(TaskHandle taskHandle); //*** Set/Get functions for DAQmx_Exported_AdvCmpltEvent_OutputTerm *** int32 __CFUNC DAQmxGetExportedAdvCmpltEventOutputTerm(TaskHandle taskHandle, char *data, uInt32 bufferSize); int32 __CFUNC DAQmxSetExportedAdvCmpltEventOutputTerm(TaskHandle taskHandle, const char *data); int32 __CFUNC DAQmxResetExportedAdvCmpltEventOutputTerm(TaskHandle taskHandle); //*** Set/Get functions for DAQmx_Exported_AdvCmpltEvent_Delay *** int32 __CFUNC DAQmxGetExportedAdvCmpltEventDelay(TaskHandle taskHandle, float64 *data); int32 __CFUNC DAQmxSetExportedAdvCmpltEventDelay(TaskHandle taskHandle, float64 data); int32 __CFUNC DAQmxResetExportedAdvCmpltEventDelay(TaskHandle taskHandle); //*** Set/Get functions for DAQmx_Exported_AdvCmpltEvent_Pulse_Polarity *** // Uses value set Polarity2 int32 __CFUNC DAQmxGetExportedAdvCmpltEventPulsePolarity(TaskHandle taskHandle, int32 *data); int32 __CFUNC DAQmxSetExportedAdvCmpltEventPulsePolarity(TaskHandle taskHandle, int32 data); int32 __CFUNC DAQmxResetExportedAdvCmpltEventPulsePolarity(TaskHandle taskHandle); //*** Set/Get functions for DAQmx_Exported_AdvCmpltEvent_Pulse_Width *** int32 __CFUNC DAQmxGetExportedAdvCmpltEventPulseWidth(TaskHandle taskHandle, float64 *data); int32 __CFUNC DAQmxSetExportedAdvCmpltEventPulseWidth(TaskHandle taskHandle, float64 data); int32 __CFUNC DAQmxResetExportedAdvCmpltEventPulseWidth(TaskHandle taskHandle); //*** Set/Get functions for DAQmx_Exported_AIHoldCmpltEvent_OutputTerm *** int32 __CFUNC DAQmxGetExportedAIHoldCmpltEventOutputTerm(TaskHandle taskHandle, char *data, uInt32 bufferSize); int32 __CFUNC DAQmxSetExportedAIHoldCmpltEventOutputTerm(TaskHandle taskHandle, const char *data); int32 __CFUNC DAQmxResetExportedAIHoldCmpltEventOutputTerm(TaskHandle taskHandle); //*** Set/Get functions for DAQmx_Exported_AIHoldCmpltEvent_PulsePolarity *** // Uses value set Polarity2 int32 __CFUNC DAQmxGetExportedAIHoldCmpltEventPulsePolarity(TaskHandle taskHandle, int32 *data); int32 __CFUNC DAQmxSetExportedAIHoldCmpltEventPulsePolarity(TaskHandle taskHandle, int32 data); int32 __CFUNC DAQmxResetExportedAIHoldCmpltEventPulsePolarity(TaskHandle taskHandle); //*** Set/Get functions for DAQmx_Exported_ChangeDetectEvent_OutputTerm *** int32 __CFUNC DAQmxGetExportedChangeDetectEventOutputTerm(TaskHandle taskHandle, char *data, uInt32 bufferSize); int32 __CFUNC DAQmxSetExportedChangeDetectEventOutputTerm(TaskHandle taskHandle, const char *data); int32 __CFUNC DAQmxResetExportedChangeDetectEventOutputTerm(TaskHandle taskHandle); //*** Set/Get functions for DAQmx_Exported_ChangeDetectEvent_Pulse_Polarity *** // Uses value set Polarity2 int32 __CFUNC DAQmxGetExportedChangeDetectEventPulsePolarity(TaskHandle taskHandle, int32 *data); int32 __CFUNC DAQmxSetExportedChangeDetectEventPulsePolarity(TaskHandle taskHandle, int32 data); int32 __CFUNC DAQmxResetExportedChangeDetectEventPulsePolarity(TaskHandle taskHandle); //*** Set/Get functions for DAQmx_Exported_CtrOutEvent_OutputTerm *** int32 __CFUNC DAQmxGetExportedCtrOutEventOutputTerm(TaskHandle taskHandle, char *data, uInt32 bufferSize); int32 __CFUNC DAQmxSetExportedCtrOutEventOutputTerm(TaskHandle taskHandle, const char *data); int32 __CFUNC DAQmxResetExportedCtrOutEventOutputTerm(TaskHandle taskHandle); //*** Set/Get functions for DAQmx_Exported_CtrOutEvent_OutputBehavior *** // Uses value set ExportActions2 int32 __CFUNC DAQmxGetExportedCtrOutEventOutputBehavior(TaskHandle taskHandle, int32 *data); int32 __CFUNC DAQmxSetExportedCtrOutEventOutputBehavior(TaskHandle taskHandle, int32 data); int32 __CFUNC DAQmxResetExportedCtrOutEventOutputBehavior(TaskHandle taskHandle); //*** Set/Get functions for DAQmx_Exported_CtrOutEvent_Pulse_Polarity *** // Uses value set Polarity2 int32 __CFUNC DAQmxGetExportedCtrOutEventPulsePolarity(TaskHandle taskHandle, int32 *data); int32 __CFUNC DAQmxSetExportedCtrOutEventPulsePolarity(TaskHandle taskHandle, int32 data); int32 __CFUNC DAQmxResetExportedCtrOutEventPulsePolarity(TaskHandle taskHandle); //*** Set/Get functions for DAQmx_Exported_CtrOutEvent_Toggle_IdleState *** // Uses value set Level1 int32 __CFUNC DAQmxGetExportedCtrOutEventToggleIdleState(TaskHandle taskHandle, int32 *data); int32 __CFUNC DAQmxSetExportedCtrOutEventToggleIdleState(TaskHandle taskHandle, int32 data); int32 __CFUNC DAQmxResetExportedCtrOutEventToggleIdleState(TaskHandle taskHandle); //*** Set/Get functions for DAQmx_Exported_HshkEvent_OutputTerm *** int32 __CFUNC DAQmxGetExportedHshkEventOutputTerm(TaskHandle taskHandle, char *data, uInt32 bufferSize); int32 __CFUNC DAQmxSetExportedHshkEventOutputTerm(TaskHandle taskHandle, const char *data); int32 __CFUNC DAQmxResetExportedHshkEventOutputTerm(TaskHandle taskHandle); //*** Set/Get functions for DAQmx_Exported_HshkEvent_OutputBehavior *** // Uses value set ExportActions5 int32 __CFUNC DAQmxGetExportedHshkEventOutputBehavior(TaskHandle taskHandle, int32 *data); int32 __CFUNC DAQmxSetExportedHshkEventOutputBehavior(TaskHandle taskHandle, int32 data); int32 __CFUNC DAQmxResetExportedHshkEventOutputBehavior(TaskHandle taskHandle); //*** Set/Get functions for DAQmx_Exported_HshkEvent_Delay *** int32 __CFUNC DAQmxGetExportedHshkEventDelay(TaskHandle taskHandle, float64 *data); int32 __CFUNC DAQmxSetExportedHshkEventDelay(TaskHandle taskHandle, float64 data); int32 __CFUNC DAQmxResetExportedHshkEventDelay(TaskHandle taskHandle); //*** Set/Get functions for DAQmx_Exported_HshkEvent_Interlocked_AssertedLvl *** // Uses value set Level1 int32 __CFUNC DAQmxGetExportedHshkEventInterlockedAssertedLvl(TaskHandle taskHandle, int32 *data); int32 __CFUNC DAQmxSetExportedHshkEventInterlockedAssertedLvl(TaskHandle taskHandle, int32 data); int32 __CFUNC DAQmxResetExportedHshkEventInterlockedAssertedLvl(TaskHandle taskHandle); //*** Set/Get functions for DAQmx_Exported_HshkEvent_Interlocked_AssertOnStart *** int32 __CFUNC DAQmxGetExportedHshkEventInterlockedAssertOnStart(TaskHandle taskHandle, bool32 *data); int32 __CFUNC DAQmxSetExportedHshkEventInterlockedAssertOnStart(TaskHandle taskHandle, bool32 data); int32 __CFUNC DAQmxResetExportedHshkEventInterlockedAssertOnStart(TaskHandle taskHandle); //*** Set/Get functions for DAQmx_Exported_HshkEvent_Interlocked_DeassertDelay *** int32 __CFUNC DAQmxGetExportedHshkEventInterlockedDeassertDelay(TaskHandle taskHandle, float64 *data); int32 __CFUNC DAQmxSetExportedHshkEventInterlockedDeassertDelay(TaskHandle taskHandle, float64 data); int32 __CFUNC DAQmxResetExportedHshkEventInterlockedDeassertDelay(TaskHandle taskHandle); //*** Set/Get functions for DAQmx_Exported_HshkEvent_Pulse_Polarity *** // Uses value set Polarity2 int32 __CFUNC DAQmxGetExportedHshkEventPulsePolarity(TaskHandle taskHandle, int32 *data); int32 __CFUNC DAQmxSetExportedHshkEventPulsePolarity(TaskHandle taskHandle, int32 data); int32 __CFUNC DAQmxResetExportedHshkEventPulsePolarity(TaskHandle taskHandle); //*** Set/Get functions for DAQmx_Exported_HshkEvent_Pulse_Width *** int32 __CFUNC DAQmxGetExportedHshkEventPulseWidth(TaskHandle taskHandle, float64 *data); int32 __CFUNC DAQmxSetExportedHshkEventPulseWidth(TaskHandle taskHandle, float64 data); int32 __CFUNC DAQmxResetExportedHshkEventPulseWidth(TaskHandle taskHandle); //*** Set/Get functions for DAQmx_Exported_RdyForXferEvent_OutputTerm *** int32 __CFUNC DAQmxGetExportedRdyForXferEventOutputTerm(TaskHandle taskHandle, char *data, uInt32 bufferSize); int32 __CFUNC DAQmxSetExportedRdyForXferEventOutputTerm(TaskHandle taskHandle, const char *data); int32 __CFUNC DAQmxResetExportedRdyForXferEventOutputTerm(TaskHandle taskHandle); //*** Set/Get functions for DAQmx_Exported_RdyForXferEvent_Lvl_ActiveLvl *** // Uses value set Polarity2 int32 __CFUNC DAQmxGetExportedRdyForXferEventLvlActiveLvl(TaskHandle taskHandle, int32 *data); int32 __CFUNC DAQmxSetExportedRdyForXferEventLvlActiveLvl(TaskHandle taskHandle, int32 data); int32 __CFUNC DAQmxResetExportedRdyForXferEventLvlActiveLvl(TaskHandle taskHandle); //*** Set/Get functions for DAQmx_Exported_RdyForXferEvent_DeassertCond *** // Uses value set DeassertCondition int32 __CFUNC DAQmxGetExportedRdyForXferEventDeassertCond(TaskHandle taskHandle, int32 *data); int32 __CFUNC DAQmxSetExportedRdyForXferEventDeassertCond(TaskHandle taskHandle, int32 data); int32 __CFUNC DAQmxResetExportedRdyForXferEventDeassertCond(TaskHandle taskHandle); //*** Set/Get functions for DAQmx_Exported_RdyForXferEvent_DeassertCondCustomThreshold *** int32 __CFUNC DAQmxGetExportedRdyForXferEventDeassertCondCustomThreshold(TaskHandle taskHandle, uInt32 *data); int32 __CFUNC DAQmxSetExportedRdyForXferEventDeassertCondCustomThreshold(TaskHandle taskHandle, uInt32 data); int32 __CFUNC DAQmxResetExportedRdyForXferEventDeassertCondCustomThreshold(TaskHandle taskHandle); //*** Set/Get functions for DAQmx_Exported_DataActiveEvent_OutputTerm *** int32 __CFUNC DAQmxGetExportedDataActiveEventOutputTerm(TaskHandle taskHandle, char *data, uInt32 bufferSize); int32 __CFUNC DAQmxSetExportedDataActiveEventOutputTerm(TaskHandle taskHandle, const char *data); int32 __CFUNC DAQmxResetExportedDataActiveEventOutputTerm(TaskHandle taskHandle); //*** Set/Get functions for DAQmx_Exported_DataActiveEvent_Lvl_ActiveLvl *** // Uses value set Polarity2 int32 __CFUNC DAQmxGetExportedDataActiveEventLvlActiveLvl(TaskHandle taskHandle, int32 *data); int32 __CFUNC DAQmxSetExportedDataActiveEventLvlActiveLvl(TaskHandle taskHandle, int32 data); int32 __CFUNC DAQmxResetExportedDataActiveEventLvlActiveLvl(TaskHandle taskHandle); //*** Set/Get functions for DAQmx_Exported_RdyForStartEvent_OutputTerm *** int32 __CFUNC DAQmxGetExportedRdyForStartEventOutputTerm(TaskHandle taskHandle, char *data, uInt32 bufferSize); int32 __CFUNC DAQmxSetExportedRdyForStartEventOutputTerm(TaskHandle taskHandle, const char *data); int32 __CFUNC DAQmxResetExportedRdyForStartEventOutputTerm(TaskHandle taskHandle); //*** Set/Get functions for DAQmx_Exported_RdyForStartEvent_Lvl_ActiveLvl *** // Uses value set Polarity2 int32 __CFUNC DAQmxGetExportedRdyForStartEventLvlActiveLvl(TaskHandle taskHandle, int32 *data); int32 __CFUNC DAQmxSetExportedRdyForStartEventLvlActiveLvl(TaskHandle taskHandle, int32 data); int32 __CFUNC DAQmxResetExportedRdyForStartEventLvlActiveLvl(TaskHandle taskHandle); //*** Set/Get functions for DAQmx_Exported_SyncPulseEvent_OutputTerm *** int32 __CFUNC DAQmxGetExportedSyncPulseEventOutputTerm(TaskHandle taskHandle, char *data, uInt32 bufferSize); int32 __CFUNC DAQmxSetExportedSyncPulseEventOutputTerm(TaskHandle taskHandle, const char *data); int32 __CFUNC DAQmxResetExportedSyncPulseEventOutputTerm(TaskHandle taskHandle); //*** Set/Get functions for DAQmx_Exported_WatchdogExpiredEvent_OutputTerm *** int32 __CFUNC DAQmxGetExportedWatchdogExpiredEventOutputTerm(TaskHandle taskHandle, char *data, uInt32 bufferSize); int32 __CFUNC DAQmxSetExportedWatchdogExpiredEventOutputTerm(TaskHandle taskHandle, const char *data); int32 __CFUNC DAQmxResetExportedWatchdogExpiredEventOutputTerm(TaskHandle taskHandle); //********** Device ********** //*** Set/Get functions for DAQmx_Dev_IsSimulated *** int32 __CFUNC DAQmxGetDevIsSimulated(const char device[], bool32 *data); //*** Set/Get functions for DAQmx_Dev_ProductCategory *** // Uses value set ProductCategory int32 __CFUNC DAQmxGetDevProductCategory(const char device[], int32 *data); //*** Set/Get functions for DAQmx_Dev_ProductType *** int32 __CFUNC DAQmxGetDevProductType(const char device[], char *data, uInt32 bufferSize); //*** Set/Get functions for DAQmx_Dev_ProductNum *** int32 __CFUNC DAQmxGetDevProductNum(const char device[], uInt32 *data); //*** Set/Get functions for DAQmx_Dev_SerialNum *** int32 __CFUNC DAQmxGetDevSerialNum(const char device[], uInt32 *data); //*** Set/Get functions for DAQmx_Dev_Accessory_ProductTypes *** int32 __CFUNC DAQmxGetDevAccessoryProductTypes(const char device[], char *data, uInt32 bufferSize); //*** Set/Get functions for DAQmx_Dev_Accessory_ProductNums *** int32 __CFUNC DAQmxGetDevAccessoryProductNums(const char device[], uInt32 *data, uInt32 arraySizeInElements); //*** Set/Get functions for DAQmx_Dev_Accessory_SerialNums *** int32 __CFUNC DAQmxGetDevAccessorySerialNums(const char device[], uInt32 *data, uInt32 arraySizeInElements); //*** Set/Get functions for DAQmx_Carrier_SerialNum *** int32 __CFUNC DAQmxGetCarrierSerialNum(const char device[], uInt32 *data); //*** Set/Get functions for DAQmx_Dev_Chassis_ModuleDevNames *** int32 __CFUNC DAQmxGetDevChassisModuleDevNames(const char device[], char *data, uInt32 bufferSize); //*** Set/Get functions for DAQmx_Dev_AnlgTrigSupported *** int32 __CFUNC DAQmxGetDevAnlgTrigSupported(const char device[], bool32 *data); //*** Set/Get functions for DAQmx_Dev_DigTrigSupported *** int32 __CFUNC DAQmxGetDevDigTrigSupported(const char device[], bool32 *data); //*** Set/Get functions for DAQmx_Dev_AI_PhysicalChans *** int32 __CFUNC DAQmxGetDevAIPhysicalChans(const char device[], char *data, uInt32 bufferSize); //*** Set/Get functions for DAQmx_Dev_AI_MaxSingleChanRate *** int32 __CFUNC DAQmxGetDevAIMaxSingleChanRate(const char device[], float64 *data); //*** Set/Get functions for DAQmx_Dev_AI_MaxMultiChanRate *** int32 __CFUNC DAQmxGetDevAIMaxMultiChanRate(const char device[], float64 *data); //*** Set/Get functions for DAQmx_Dev_AI_MinRate *** int32 __CFUNC DAQmxGetDevAIMinRate(const char device[], float64 *data); //*** Set/Get functions for DAQmx_Dev_AI_SimultaneousSamplingSupported *** int32 __CFUNC DAQmxGetDevAISimultaneousSamplingSupported(const char device[], bool32 *data); //*** Set/Get functions for DAQmx_Dev_AI_TrigUsage *** // Uses bits from enum TriggerUsageTypeBits int32 __CFUNC DAQmxGetDevAITrigUsage(const char device[], int32 *data); //*** Set/Get functions for DAQmx_Dev_AI_VoltageRngs *** int32 __CFUNC DAQmxGetDevAIVoltageRngs(const char device[], float64 *data, uInt32 arraySizeInElements); //*** Set/Get functions for DAQmx_Dev_AI_VoltageIntExcitDiscreteVals *** int32 __CFUNC DAQmxGetDevAIVoltageIntExcitDiscreteVals(const char device[], float64 *data, uInt32 arraySizeInElements); //*** Set/Get functions for DAQmx_Dev_AI_VoltageIntExcitRangeVals *** int32 __CFUNC DAQmxGetDevAIVoltageIntExcitRangeVals(const char device[], float64 *data, uInt32 arraySizeInElements); //*** Set/Get functions for DAQmx_Dev_AI_CurrentRngs *** int32 __CFUNC DAQmxGetDevAICurrentRngs(const char device[], float64 *data, uInt32 arraySizeInElements); //*** Set/Get functions for DAQmx_Dev_AI_CurrentIntExcitDiscreteVals *** int32 __CFUNC DAQmxGetDevAICurrentIntExcitDiscreteVals(const char device[], float64 *data, uInt32 arraySizeInElements); //*** Set/Get functions for DAQmx_Dev_AI_FreqRngs *** int32 __CFUNC DAQmxGetDevAIFreqRngs(const char device[], float64 *data, uInt32 arraySizeInElements); //*** Set/Get functions for DAQmx_Dev_AI_Gains *** int32 __CFUNC DAQmxGetDevAIGains(const char device[], float64 *data, uInt32 arraySizeInElements); //*** Set/Get functions for DAQmx_Dev_AI_Couplings *** // Uses bits from enum CouplingTypeBits int32 __CFUNC DAQmxGetDevAICouplings(const char device[], int32 *data); //*** Set/Get functions for DAQmx_Dev_AI_LowpassCutoffFreqDiscreteVals *** int32 __CFUNC DAQmxGetDevAILowpassCutoffFreqDiscreteVals(const char device[], float64 *data, uInt32 arraySizeInElements); //*** Set/Get functions for DAQmx_Dev_AI_LowpassCutoffFreqRangeVals *** int32 __CFUNC DAQmxGetDevAILowpassCutoffFreqRangeVals(const char device[], float64 *data, uInt32 arraySizeInElements); //*** Set/Get functions for DAQmx_Dev_AO_PhysicalChans *** int32 __CFUNC DAQmxGetDevAOPhysicalChans(const char device[], char *data, uInt32 bufferSize); //*** Set/Get functions for DAQmx_Dev_AO_SampClkSupported *** int32 __CFUNC DAQmxGetDevAOSampClkSupported(const char device[], bool32 *data); //*** Set/Get functions for DAQmx_Dev_AO_MaxRate *** int32 __CFUNC DAQmxGetDevAOMaxRate(const char device[], float64 *data); //*** Set/Get functions for DAQmx_Dev_AO_MinRate *** int32 __CFUNC DAQmxGetDevAOMinRate(const char device[], float64 *data); //*** Set/Get functions for DAQmx_Dev_AO_TrigUsage *** // Uses bits from enum TriggerUsageTypeBits int32 __CFUNC DAQmxGetDevAOTrigUsage(const char device[], int32 *data); //*** Set/Get functions for DAQmx_Dev_AO_VoltageRngs *** int32 __CFUNC DAQmxGetDevAOVoltageRngs(const char device[], float64 *data, uInt32 arraySizeInElements); //*** Set/Get functions for DAQmx_Dev_AO_CurrentRngs *** int32 __CFUNC DAQmxGetDevAOCurrentRngs(const char device[], float64 *data, uInt32 arraySizeInElements); //*** Set/Get functions for DAQmx_Dev_AO_Gains *** int32 __CFUNC DAQmxGetDevAOGains(const char device[], float64 *data, uInt32 arraySizeInElements); //*** Set/Get functions for DAQmx_Dev_DI_Lines *** int32 __CFUNC DAQmxGetDevDILines(const char device[], char *data, uInt32 bufferSize); //*** Set/Get functions for DAQmx_Dev_DI_Ports *** int32 __CFUNC DAQmxGetDevDIPorts(const char device[], char *data, uInt32 bufferSize); //*** Set/Get functions for DAQmx_Dev_DI_MaxRate *** int32 __CFUNC DAQmxGetDevDIMaxRate(const char device[], float64 *data); //*** Set/Get functions for DAQmx_Dev_DI_TrigUsage *** // Uses bits from enum TriggerUsageTypeBits int32 __CFUNC DAQmxGetDevDITrigUsage(const char device[], int32 *data); //*** Set/Get functions for DAQmx_Dev_DO_Lines *** int32 __CFUNC DAQmxGetDevDOLines(const char device[], char *data, uInt32 bufferSize); //*** Set/Get functions for DAQmx_Dev_DO_Ports *** int32 __CFUNC DAQmxGetDevDOPorts(const char device[], char *data, uInt32 bufferSize); //*** Set/Get functions for DAQmx_Dev_DO_MaxRate *** int32 __CFUNC DAQmxGetDevDOMaxRate(const char device[], float64 *data); //*** Set/Get functions for DAQmx_Dev_DO_TrigUsage *** // Uses bits from enum TriggerUsageTypeBits int32 __CFUNC DAQmxGetDevDOTrigUsage(const char device[], int32 *data); //*** Set/Get functions for DAQmx_Dev_CI_PhysicalChans *** int32 __CFUNC DAQmxGetDevCIPhysicalChans(const char device[], char *data, uInt32 bufferSize); //*** Set/Get functions for DAQmx_Dev_CI_TrigUsage *** // Uses bits from enum TriggerUsageTypeBits int32 __CFUNC DAQmxGetDevCITrigUsage(const char device[], int32 *data); //*** Set/Get functions for DAQmx_Dev_CI_SampClkSupported *** int32 __CFUNC DAQmxGetDevCISampClkSupported(const char device[], bool32 *data); //*** Set/Get functions for DAQmx_Dev_CI_MaxSize *** int32 __CFUNC DAQmxGetDevCIMaxSize(const char device[], uInt32 *data); //*** Set/Get functions for DAQmx_Dev_CI_MaxTimebase *** int32 __CFUNC DAQmxGetDevCIMaxTimebase(const char device[], float64 *data); //*** Set/Get functions for DAQmx_Dev_CO_PhysicalChans *** int32 __CFUNC DAQmxGetDevCOPhysicalChans(const char device[], char *data, uInt32 bufferSize); //*** Set/Get functions for DAQmx_Dev_CO_SampClkSupported *** int32 __CFUNC DAQmxGetDevCOSampClkSupported(const char device[], bool32 *data); //*** Set/Get functions for DAQmx_Dev_CO_TrigUsage *** // Uses bits from enum TriggerUsageTypeBits int32 __CFUNC DAQmxGetDevCOTrigUsage(const char device[], int32 *data); //*** Set/Get functions for DAQmx_Dev_CO_MaxSize *** int32 __CFUNC DAQmxGetDevCOMaxSize(const char device[], uInt32 *data); //*** Set/Get functions for DAQmx_Dev_CO_MaxTimebase *** int32 __CFUNC DAQmxGetDevCOMaxTimebase(const char device[], float64 *data); //*** Set/Get functions for DAQmx_Dev_NumDMAChans *** int32 __CFUNC DAQmxGetDevNumDMAChans(const char device[], uInt32 *data); //*** Set/Get functions for DAQmx_Dev_BusType *** // Uses value set BusType int32 __CFUNC DAQmxGetDevBusType(const char device[], int32 *data); //*** Set/Get functions for DAQmx_Dev_PCI_BusNum *** int32 __CFUNC DAQmxGetDevPCIBusNum(const char device[], uInt32 *data); //*** Set/Get functions for DAQmx_Dev_PCI_DevNum *** int32 __CFUNC DAQmxGetDevPCIDevNum(const char device[], uInt32 *data); //*** Set/Get functions for DAQmx_Dev_PXI_ChassisNum *** int32 __CFUNC DAQmxGetDevPXIChassisNum(const char device[], uInt32 *data); //*** Set/Get functions for DAQmx_Dev_PXI_SlotNum *** int32 __CFUNC DAQmxGetDevPXISlotNum(const char device[], uInt32 *data); //*** Set/Get functions for DAQmx_Dev_CompactDAQ_ChassisDevName *** int32 __CFUNC DAQmxGetDevCompactDAQChassisDevName(const char device[], char *data, uInt32 bufferSize); //*** Set/Get functions for DAQmx_Dev_CompactDAQ_SlotNum *** int32 __CFUNC DAQmxGetDevCompactDAQSlotNum(const char device[], uInt32 *data); //*** Set/Get functions for DAQmx_Dev_TCPIP_Hostname *** int32 __CFUNC DAQmxGetDevTCPIPHostname(const char device[], char *data, uInt32 bufferSize); //*** Set/Get functions for DAQmx_Dev_TCPIP_EthernetIP *** int32 __CFUNC DAQmxGetDevTCPIPEthernetIP(const char device[], char *data, uInt32 bufferSize); //*** Set/Get functions for DAQmx_Dev_TCPIP_WirelessIP *** int32 __CFUNC DAQmxGetDevTCPIPWirelessIP(const char device[], char *data, uInt32 bufferSize); //*** Set/Get functions for DAQmx_Dev_Terminals *** int32 __CFUNC DAQmxGetDevTerminals(const char device[], char *data, uInt32 bufferSize); //********** Read ********** //*** Set/Get functions for DAQmx_Read_RelativeTo *** // Uses value set ReadRelativeTo int32 __CFUNC DAQmxGetReadRelativeTo(TaskHandle taskHandle, int32 *data); int32 __CFUNC DAQmxSetReadRelativeTo(TaskHandle taskHandle, int32 data); int32 __CFUNC DAQmxResetReadRelativeTo(TaskHandle taskHandle); //*** Set/Get functions for DAQmx_Read_Offset *** int32 __CFUNC DAQmxGetReadOffset(TaskHandle taskHandle, int32 *data); int32 __CFUNC DAQmxSetReadOffset(TaskHandle taskHandle, int32 data); int32 __CFUNC DAQmxResetReadOffset(TaskHandle taskHandle); //*** Set/Get functions for DAQmx_Read_ChannelsToRead *** int32 __CFUNC DAQmxGetReadChannelsToRead(TaskHandle taskHandle, char *data, uInt32 bufferSize); int32 __CFUNC DAQmxSetReadChannelsToRead(TaskHandle taskHandle, const char *data); int32 __CFUNC DAQmxResetReadChannelsToRead(TaskHandle taskHandle); //*** Set/Get functions for DAQmx_Read_ReadAllAvailSamp *** int32 __CFUNC DAQmxGetReadReadAllAvailSamp(TaskHandle taskHandle, bool32 *data); int32 __CFUNC DAQmxSetReadReadAllAvailSamp(TaskHandle taskHandle, bool32 data); int32 __CFUNC DAQmxResetReadReadAllAvailSamp(TaskHandle taskHandle); //*** Set/Get functions for DAQmx_Read_AutoStart *** int32 __CFUNC DAQmxGetReadAutoStart(TaskHandle taskHandle, bool32 *data); int32 __CFUNC DAQmxSetReadAutoStart(TaskHandle taskHandle, bool32 data); int32 __CFUNC DAQmxResetReadAutoStart(TaskHandle taskHandle); //*** Set/Get functions for DAQmx_Read_OverWrite *** // Uses value set OverwriteMode1 int32 __CFUNC DAQmxGetReadOverWrite(TaskHandle taskHandle, int32 *data); int32 __CFUNC DAQmxSetReadOverWrite(TaskHandle taskHandle, int32 data); int32 __CFUNC DAQmxResetReadOverWrite(TaskHandle taskHandle); //*** Set/Get functions for DAQmx_Read_CurrReadPos *** int32 __CFUNC DAQmxGetReadCurrReadPos(TaskHandle taskHandle, uInt64 *data); //*** Set/Get functions for DAQmx_Read_AvailSampPerChan *** int32 __CFUNC DAQmxGetReadAvailSampPerChan(TaskHandle taskHandle, uInt32 *data); //*** Set/Get functions for DAQmx_Logging_FilePath *** int32 __CFUNC DAQmxGetLoggingFilePath(TaskHandle taskHandle, char *data, uInt32 bufferSize); int32 __CFUNC DAQmxSetLoggingFilePath(TaskHandle taskHandle, const char *data); int32 __CFUNC DAQmxResetLoggingFilePath(TaskHandle taskHandle); //*** Set/Get functions for DAQmx_Logging_Mode *** // Uses value set LoggingMode int32 __CFUNC DAQmxGetLoggingMode(TaskHandle taskHandle, int32 *data); int32 __CFUNC DAQmxSetLoggingMode(TaskHandle taskHandle, int32 data); int32 __CFUNC DAQmxResetLoggingMode(TaskHandle taskHandle); //*** Set/Get functions for DAQmx_Logging_TDMS_GroupName *** int32 __CFUNC DAQmxGetLoggingTDMSGroupName(TaskHandle taskHandle, char *data, uInt32 bufferSize); int32 __CFUNC DAQmxSetLoggingTDMSGroupName(TaskHandle taskHandle, const char *data); int32 __CFUNC DAQmxResetLoggingTDMSGroupName(TaskHandle taskHandle); //*** Set/Get functions for DAQmx_Logging_TDMS_Operation *** // Uses value set LoggingOperation int32 __CFUNC DAQmxGetLoggingTDMSOperation(TaskHandle taskHandle, int32 *data); int32 __CFUNC DAQmxSetLoggingTDMSOperation(TaskHandle taskHandle, int32 data); int32 __CFUNC DAQmxResetLoggingTDMSOperation(TaskHandle taskHandle); //*** Set/Get functions for DAQmx_Logging_FileWriteSize *** int32 __CFUNC DAQmxGetLoggingFileWriteSize(TaskHandle taskHandle, uInt32 *data); int32 __CFUNC DAQmxSetLoggingFileWriteSize(TaskHandle taskHandle, uInt32 data); int32 __CFUNC DAQmxResetLoggingFileWriteSize(TaskHandle taskHandle); //*** Set/Get functions for DAQmx_Logging_FilePreallocationSize *** int32 __CFUNC DAQmxGetLoggingFilePreallocationSize(TaskHandle taskHandle, uInt64 *data); int32 __CFUNC DAQmxSetLoggingFilePreallocationSize(TaskHandle taskHandle, uInt64 data); int32 __CFUNC DAQmxResetLoggingFilePreallocationSize(TaskHandle taskHandle); //*** Set/Get functions for DAQmx_Read_TotalSampPerChanAcquired *** int32 __CFUNC DAQmxGetReadTotalSampPerChanAcquired(TaskHandle taskHandle, uInt64 *data); //*** Set/Get functions for DAQmx_Read_CommonModeRangeErrorChansExist *** int32 __CFUNC DAQmxGetReadCommonModeRangeErrorChansExist(TaskHandle taskHandle, bool32 *data); //*** Set/Get functions for DAQmx_Read_CommonModeRangeErrorChans *** int32 __CFUNC DAQmxGetReadCommonModeRangeErrorChans(TaskHandle taskHandle, char *data, uInt32 bufferSize); //*** Set/Get functions for DAQmx_Read_OvercurrentChansExist *** int32 __CFUNC DAQmxGetReadOvercurrentChansExist(TaskHandle taskHandle, bool32 *data); //*** Set/Get functions for DAQmx_Read_OvercurrentChans *** int32 __CFUNC DAQmxGetReadOvercurrentChans(TaskHandle taskHandle, char *data, uInt32 bufferSize); //*** Set/Get functions for DAQmx_Read_OpenCurrentLoopChansExist *** int32 __CFUNC DAQmxGetReadOpenCurrentLoopChansExist(TaskHandle taskHandle, bool32 *data); //*** Set/Get functions for DAQmx_Read_OpenCurrentLoopChans *** int32 __CFUNC DAQmxGetReadOpenCurrentLoopChans(TaskHandle taskHandle, char *data, uInt32 bufferSize); //*** Set/Get functions for DAQmx_Read_OpenThrmcplChansExist *** int32 __CFUNC DAQmxGetReadOpenThrmcplChansExist(TaskHandle taskHandle, bool32 *data); //*** Set/Get functions for DAQmx_Read_OpenThrmcplChans *** int32 __CFUNC DAQmxGetReadOpenThrmcplChans(TaskHandle taskHandle, char *data, uInt32 bufferSize); //*** Set/Get functions for DAQmx_Read_OverloadedChansExist *** int32 __CFUNC DAQmxGetReadOverloadedChansExist(TaskHandle taskHandle, bool32 *data); //*** Set/Get functions for DAQmx_Read_OverloadedChans *** int32 __CFUNC DAQmxGetReadOverloadedChans(TaskHandle taskHandle, char *data, uInt32 bufferSize); //*** Set/Get functions for DAQmx_Read_AccessoryInsertionOrRemovalDetected *** int32 __CFUNC DAQmxGetReadAccessoryInsertionOrRemovalDetected(TaskHandle taskHandle, bool32 *data); //*** Set/Get functions for DAQmx_Read_DevsWithInsertedOrRemovedAccessories *** int32 __CFUNC DAQmxGetReadDevsWithInsertedOrRemovedAccessories(TaskHandle taskHandle, char *data, uInt32 bufferSize); //*** Set/Get functions for DAQmx_Read_ChangeDetect_HasOverflowed *** int32 __CFUNC DAQmxGetReadChangeDetectHasOverflowed(TaskHandle taskHandle, bool32 *data); //*** Set/Get functions for DAQmx_Read_RawDataWidth *** int32 __CFUNC DAQmxGetReadRawDataWidth(TaskHandle taskHandle, uInt32 *data); //*** Set/Get functions for DAQmx_Read_NumChans *** int32 __CFUNC DAQmxGetReadNumChans(TaskHandle taskHandle, uInt32 *data); //*** Set/Get functions for DAQmx_Read_DigitalLines_BytesPerChan *** int32 __CFUNC DAQmxGetReadDigitalLinesBytesPerChan(TaskHandle taskHandle, uInt32 *data); //*** Set/Get functions for DAQmx_Read_WaitMode *** // Uses value set WaitMode int32 __CFUNC DAQmxGetReadWaitMode(TaskHandle taskHandle, int32 *data); int32 __CFUNC DAQmxSetReadWaitMode(TaskHandle taskHandle, int32 data); int32 __CFUNC DAQmxResetReadWaitMode(TaskHandle taskHandle); //*** Set/Get functions for DAQmx_Read_SleepTime *** int32 __CFUNC DAQmxGetReadSleepTime(TaskHandle taskHandle, float64 *data); int32 __CFUNC DAQmxSetReadSleepTime(TaskHandle taskHandle, float64 data); int32 __CFUNC DAQmxResetReadSleepTime(TaskHandle taskHandle); //********** Real-Time ********** //*** Set/Get functions for DAQmx_RealTime_ConvLateErrorsToWarnings *** int32 __CFUNC DAQmxGetRealTimeConvLateErrorsToWarnings(TaskHandle taskHandle, bool32 *data); int32 __CFUNC DAQmxSetRealTimeConvLateErrorsToWarnings(TaskHandle taskHandle, bool32 data); int32 __CFUNC DAQmxResetRealTimeConvLateErrorsToWarnings(TaskHandle taskHandle); //*** Set/Get functions for DAQmx_RealTime_NumOfWarmupIters *** int32 __CFUNC DAQmxGetRealTimeNumOfWarmupIters(TaskHandle taskHandle, uInt32 *data); int32 __CFUNC DAQmxSetRealTimeNumOfWarmupIters(TaskHandle taskHandle, uInt32 data); int32 __CFUNC DAQmxResetRealTimeNumOfWarmupIters(TaskHandle taskHandle); //*** Set/Get functions for DAQmx_RealTime_WaitForNextSampClkWaitMode *** // Uses value set WaitMode3 int32 __CFUNC DAQmxGetRealTimeWaitForNextSampClkWaitMode(TaskHandle taskHandle, int32 *data); int32 __CFUNC DAQmxSetRealTimeWaitForNextSampClkWaitMode(TaskHandle taskHandle, int32 data); int32 __CFUNC DAQmxResetRealTimeWaitForNextSampClkWaitMode(TaskHandle taskHandle); //*** Set/Get functions for DAQmx_RealTime_ReportMissedSamp *** int32 __CFUNC DAQmxGetRealTimeReportMissedSamp(TaskHandle taskHandle, bool32 *data); int32 __CFUNC DAQmxSetRealTimeReportMissedSamp(TaskHandle taskHandle, bool32 data); int32 __CFUNC DAQmxResetRealTimeReportMissedSamp(TaskHandle taskHandle); //*** Set/Get functions for DAQmx_RealTime_WriteRecoveryMode *** // Uses value set WaitMode4 int32 __CFUNC DAQmxGetRealTimeWriteRecoveryMode(TaskHandle taskHandle, int32 *data); int32 __CFUNC DAQmxSetRealTimeWriteRecoveryMode(TaskHandle taskHandle, int32 data); int32 __CFUNC DAQmxResetRealTimeWriteRecoveryMode(TaskHandle taskHandle); //********** Switch Channel ********** //*** Set/Get functions for DAQmx_SwitchChan_Usage *** // Uses value set SwitchUsageTypes int32 __CFUNC DAQmxGetSwitchChanUsage(const char switchChannelName[], int32 *data); int32 __CFUNC DAQmxSetSwitchChanUsage(const char switchChannelName[], int32 data); //*** Set/Get functions for DAQmx_SwitchChan_AnlgBusSharingEnable *** int32 __CFUNC DAQmxGetSwitchChanAnlgBusSharingEnable(const char switchChannelName[], bool32 *data); int32 __CFUNC DAQmxSetSwitchChanAnlgBusSharingEnable(const char switchChannelName[], bool32 data); //*** Set/Get functions for DAQmx_SwitchChan_MaxACCarryCurrent *** int32 __CFUNC DAQmxGetSwitchChanMaxACCarryCurrent(const char switchChannelName[], float64 *data); //*** Set/Get functions for DAQmx_SwitchChan_MaxACSwitchCurrent *** int32 __CFUNC DAQmxGetSwitchChanMaxACSwitchCurrent(const char switchChannelName[], float64 *data); //*** Set/Get functions for DAQmx_SwitchChan_MaxACCarryPwr *** int32 __CFUNC DAQmxGetSwitchChanMaxACCarryPwr(const char switchChannelName[], float64 *data); //*** Set/Get functions for DAQmx_SwitchChan_MaxACSwitchPwr *** int32 __CFUNC DAQmxGetSwitchChanMaxACSwitchPwr(const char switchChannelName[], float64 *data); //*** Set/Get functions for DAQmx_SwitchChan_MaxDCCarryCurrent *** int32 __CFUNC DAQmxGetSwitchChanMaxDCCarryCurrent(const char switchChannelName[], float64 *data); //*** Set/Get functions for DAQmx_SwitchChan_MaxDCSwitchCurrent *** int32 __CFUNC DAQmxGetSwitchChanMaxDCSwitchCurrent(const char switchChannelName[], float64 *data); //*** Set/Get functions for DAQmx_SwitchChan_MaxDCCarryPwr *** int32 __CFUNC DAQmxGetSwitchChanMaxDCCarryPwr(const char switchChannelName[], float64 *data); //*** Set/Get functions for DAQmx_SwitchChan_MaxDCSwitchPwr *** int32 __CFUNC DAQmxGetSwitchChanMaxDCSwitchPwr(const char switchChannelName[], float64 *data); //*** Set/Get functions for DAQmx_SwitchChan_MaxACVoltage *** int32 __CFUNC DAQmxGetSwitchChanMaxACVoltage(const char switchChannelName[], float64 *data); //*** Set/Get functions for DAQmx_SwitchChan_MaxDCVoltage *** int32 __CFUNC DAQmxGetSwitchChanMaxDCVoltage(const char switchChannelName[], float64 *data); //*** Set/Get functions for DAQmx_SwitchChan_WireMode *** int32 __CFUNC DAQmxGetSwitchChanWireMode(const char switchChannelName[], uInt32 *data); //*** Set/Get functions for DAQmx_SwitchChan_Bandwidth *** int32 __CFUNC DAQmxGetSwitchChanBandwidth(const char switchChannelName[], float64 *data); //*** Set/Get functions for DAQmx_SwitchChan_Impedance *** int32 __CFUNC DAQmxGetSwitchChanImpedance(const char switchChannelName[], float64 *data); //********** Switch Device ********** //*** Set/Get functions for DAQmx_SwitchDev_SettlingTime *** int32 __CFUNC DAQmxGetSwitchDevSettlingTime(const char deviceName[], float64 *data); int32 __CFUNC DAQmxSetSwitchDevSettlingTime(const char deviceName[], float64 data); //*** Set/Get functions for DAQmx_SwitchDev_AutoConnAnlgBus *** int32 __CFUNC DAQmxGetSwitchDevAutoConnAnlgBus(const char deviceName[], bool32 *data); int32 __CFUNC DAQmxSetSwitchDevAutoConnAnlgBus(const char deviceName[], bool32 data); //*** Set/Get functions for DAQmx_SwitchDev_PwrDownLatchRelaysAfterSettling *** int32 __CFUNC DAQmxGetSwitchDevPwrDownLatchRelaysAfterSettling(const char deviceName[], bool32 *data); int32 __CFUNC DAQmxSetSwitchDevPwrDownLatchRelaysAfterSettling(const char deviceName[], bool32 data); //*** Set/Get functions for DAQmx_SwitchDev_Settled *** int32 __CFUNC DAQmxGetSwitchDevSettled(const char deviceName[], bool32 *data); //*** Set/Get functions for DAQmx_SwitchDev_RelayList *** int32 __CFUNC DAQmxGetSwitchDevRelayList(const char deviceName[], char *data, uInt32 bufferSize); //*** Set/Get functions for DAQmx_SwitchDev_NumRelays *** int32 __CFUNC DAQmxGetSwitchDevNumRelays(const char deviceName[], uInt32 *data); //*** Set/Get functions for DAQmx_SwitchDev_SwitchChanList *** int32 __CFUNC DAQmxGetSwitchDevSwitchChanList(const char deviceName[], char *data, uInt32 bufferSize); //*** Set/Get functions for DAQmx_SwitchDev_NumSwitchChans *** int32 __CFUNC DAQmxGetSwitchDevNumSwitchChans(const char deviceName[], uInt32 *data); //*** Set/Get functions for DAQmx_SwitchDev_NumRows *** int32 __CFUNC DAQmxGetSwitchDevNumRows(const char deviceName[], uInt32 *data); //*** Set/Get functions for DAQmx_SwitchDev_NumColumns *** int32 __CFUNC DAQmxGetSwitchDevNumColumns(const char deviceName[], uInt32 *data); //*** Set/Get functions for DAQmx_SwitchDev_Topology *** int32 __CFUNC DAQmxGetSwitchDevTopology(const char deviceName[], char *data, uInt32 bufferSize); //********** Switch Scan ********** //*** Set/Get functions for DAQmx_SwitchScan_BreakMode *** // Uses value set BreakMode int32 __CFUNC DAQmxGetSwitchScanBreakMode(TaskHandle taskHandle, int32 *data); int32 __CFUNC DAQmxSetSwitchScanBreakMode(TaskHandle taskHandle, int32 data); int32 __CFUNC DAQmxResetSwitchScanBreakMode(TaskHandle taskHandle); //*** Set/Get functions for DAQmx_SwitchScan_RepeatMode *** // Uses value set SwitchScanRepeatMode int32 __CFUNC DAQmxGetSwitchScanRepeatMode(TaskHandle taskHandle, int32 *data); int32 __CFUNC DAQmxSetSwitchScanRepeatMode(TaskHandle taskHandle, int32 data); int32 __CFUNC DAQmxResetSwitchScanRepeatMode(TaskHandle taskHandle); //*** Set/Get functions for DAQmx_SwitchScan_WaitingForAdv *** int32 __CFUNC DAQmxGetSwitchScanWaitingForAdv(TaskHandle taskHandle, bool32 *data); //********** Scale ********** //*** Set/Get functions for DAQmx_Scale_Descr *** int32 __CFUNC DAQmxGetScaleDescr(const char scaleName[], char *data, uInt32 bufferSize); int32 __CFUNC DAQmxSetScaleDescr(const char scaleName[], const char *data); //*** Set/Get functions for DAQmx_Scale_ScaledUnits *** int32 __CFUNC DAQmxGetScaleScaledUnits(const char scaleName[], char *data, uInt32 bufferSize); int32 __CFUNC DAQmxSetScaleScaledUnits(const char scaleName[], const char *data); //*** Set/Get functions for DAQmx_Scale_PreScaledUnits *** // Uses value set UnitsPreScaled int32 __CFUNC DAQmxGetScalePreScaledUnits(const char scaleName[], int32 *data); int32 __CFUNC DAQmxSetScalePreScaledUnits(const char scaleName[], int32 data); //*** Set/Get functions for DAQmx_Scale_Type *** // Uses value set ScaleType int32 __CFUNC DAQmxGetScaleType(const char scaleName[], int32 *data); //*** Set/Get functions for DAQmx_Scale_Lin_Slope *** int32 __CFUNC DAQmxGetScaleLinSlope(const char scaleName[], float64 *data); int32 __CFUNC DAQmxSetScaleLinSlope(const char scaleName[], float64 data); //*** Set/Get functions for DAQmx_Scale_Lin_YIntercept *** int32 __CFUNC DAQmxGetScaleLinYIntercept(const char scaleName[], float64 *data); int32 __CFUNC DAQmxSetScaleLinYIntercept(const char scaleName[], float64 data); //*** Set/Get functions for DAQmx_Scale_Map_ScaledMax *** int32 __CFUNC DAQmxGetScaleMapScaledMax(const char scaleName[], float64 *data); int32 __CFUNC DAQmxSetScaleMapScaledMax(const char scaleName[], float64 data); //*** Set/Get functions for DAQmx_Scale_Map_PreScaledMax *** int32 __CFUNC DAQmxGetScaleMapPreScaledMax(const char scaleName[], float64 *data); int32 __CFUNC DAQmxSetScaleMapPreScaledMax(const char scaleName[], float64 data); //*** Set/Get functions for DAQmx_Scale_Map_ScaledMin *** int32 __CFUNC DAQmxGetScaleMapScaledMin(const char scaleName[], float64 *data); int32 __CFUNC DAQmxSetScaleMapScaledMin(const char scaleName[], float64 data); //*** Set/Get functions for DAQmx_Scale_Map_PreScaledMin *** int32 __CFUNC DAQmxGetScaleMapPreScaledMin(const char scaleName[], float64 *data); int32 __CFUNC DAQmxSetScaleMapPreScaledMin(const char scaleName[], float64 data); //*** Set/Get functions for DAQmx_Scale_Poly_ForwardCoeff *** int32 __CFUNC DAQmxGetScalePolyForwardCoeff(const char scaleName[], float64 *data, uInt32 arraySizeInElements); int32 __CFUNC DAQmxSetScalePolyForwardCoeff(const char scaleName[], float64 *data, uInt32 arraySizeInElements); //*** Set/Get functions for DAQmx_Scale_Poly_ReverseCoeff *** int32 __CFUNC DAQmxGetScalePolyReverseCoeff(const char scaleName[], float64 *data, uInt32 arraySizeInElements); int32 __CFUNC DAQmxSetScalePolyReverseCoeff(const char scaleName[], float64 *data, uInt32 arraySizeInElements); //*** Set/Get functions for DAQmx_Scale_Table_ScaledVals *** int32 __CFUNC DAQmxGetScaleTableScaledVals(const char scaleName[], float64 *data, uInt32 arraySizeInElements); int32 __CFUNC DAQmxSetScaleTableScaledVals(const char scaleName[], float64 *data, uInt32 arraySizeInElements); //*** Set/Get functions for DAQmx_Scale_Table_PreScaledVals *** int32 __CFUNC DAQmxGetScaleTablePreScaledVals(const char scaleName[], float64 *data, uInt32 arraySizeInElements); int32 __CFUNC DAQmxSetScaleTablePreScaledVals(const char scaleName[], float64 *data, uInt32 arraySizeInElements); //********** System ********** //*** Set/Get functions for DAQmx_Sys_GlobalChans *** int32 __CFUNC DAQmxGetSysGlobalChans(char *data, uInt32 bufferSize); //*** Set/Get functions for DAQmx_Sys_Scales *** int32 __CFUNC DAQmxGetSysScales(char *data, uInt32 bufferSize); //*** Set/Get functions for DAQmx_Sys_Tasks *** int32 __CFUNC DAQmxGetSysTasks(char *data, uInt32 bufferSize); //*** Set/Get functions for DAQmx_Sys_DevNames *** int32 __CFUNC DAQmxGetSysDevNames(char *data, uInt32 bufferSize); //*** Set/Get functions for DAQmx_Sys_NIDAQMajorVersion *** int32 __CFUNC DAQmxGetSysNIDAQMajorVersion(uInt32 *data); //*** Set/Get functions for DAQmx_Sys_NIDAQMinorVersion *** int32 __CFUNC DAQmxGetSysNIDAQMinorVersion(uInt32 *data); //*** Set/Get functions for DAQmx_Sys_NIDAQUpdateVersion *** int32 __CFUNC DAQmxGetSysNIDAQUpdateVersion(uInt32 *data); //********** Task ********** //*** Set/Get functions for DAQmx_Task_Name *** int32 __CFUNC DAQmxGetTaskName(TaskHandle taskHandle, char *data, uInt32 bufferSize); //*** Set/Get functions for DAQmx_Task_Channels *** int32 __CFUNC DAQmxGetTaskChannels(TaskHandle taskHandle, char *data, uInt32 bufferSize); //*** Set/Get functions for DAQmx_Task_NumChans *** int32 __CFUNC DAQmxGetTaskNumChans(TaskHandle taskHandle, uInt32 *data); //*** Set/Get functions for DAQmx_Task_Devices *** int32 __CFUNC DAQmxGetTaskDevices(TaskHandle taskHandle, char *data, uInt32 bufferSize); //*** Set/Get functions for DAQmx_Task_NumDevices *** int32 __CFUNC DAQmxGetTaskNumDevices(TaskHandle taskHandle, uInt32 *data); //*** Set/Get functions for DAQmx_Task_Complete *** int32 __CFUNC DAQmxGetTaskComplete(TaskHandle taskHandle, bool32 *data); //********** Timing ********** //*** Set/Get functions for DAQmx_SampQuant_SampMode *** // Uses value set AcquisitionType int32 __CFUNC DAQmxGetSampQuantSampMode(TaskHandle taskHandle, int32 *data); int32 __CFUNC DAQmxSetSampQuantSampMode(TaskHandle taskHandle, int32 data); int32 __CFUNC DAQmxResetSampQuantSampMode(TaskHandle taskHandle); //*** Set/Get functions for DAQmx_SampQuant_SampPerChan *** int32 __CFUNC DAQmxGetSampQuantSampPerChan(TaskHandle taskHandle, uInt64 *data); int32 __CFUNC DAQmxSetSampQuantSampPerChan(TaskHandle taskHandle, uInt64 data); int32 __CFUNC DAQmxResetSampQuantSampPerChan(TaskHandle taskHandle); //*** Set/Get functions for DAQmx_SampTimingType *** // Uses value set SampleTimingType int32 __CFUNC DAQmxGetSampTimingType(TaskHandle taskHandle, int32 *data); int32 __CFUNC DAQmxSetSampTimingType(TaskHandle taskHandle, int32 data); int32 __CFUNC DAQmxResetSampTimingType(TaskHandle taskHandle); //*** Set/Get functions for DAQmx_SampClk_Rate *** int32 __CFUNC DAQmxGetSampClkRate(TaskHandle taskHandle, float64 *data); int32 __CFUNC DAQmxSetSampClkRate(TaskHandle taskHandle, float64 data); int32 __CFUNC DAQmxResetSampClkRate(TaskHandle taskHandle); //*** Set/Get functions for DAQmx_SampClk_MaxRate *** int32 __CFUNC DAQmxGetSampClkMaxRate(TaskHandle taskHandle, float64 *data); //*** Set/Get functions for DAQmx_SampClk_Src *** int32 __CFUNC DAQmxGetSampClkSrc(TaskHandle taskHandle, char *data, uInt32 bufferSize); int32 __CFUNC DAQmxSetSampClkSrc(TaskHandle taskHandle, const char *data); int32 __CFUNC DAQmxResetSampClkSrc(TaskHandle taskHandle); //*** Set/Get functions for DAQmx_SampClk_ActiveEdge *** // Uses value set Edge1 int32 __CFUNC DAQmxGetSampClkActiveEdge(TaskHandle taskHandle, int32 *data); int32 __CFUNC DAQmxSetSampClkActiveEdge(TaskHandle taskHandle, int32 data); int32 __CFUNC DAQmxResetSampClkActiveEdge(TaskHandle taskHandle); //*** Set/Get functions for DAQmx_SampClk_OverrunBehavior *** // Uses value set OverflowBehavior int32 __CFUNC DAQmxGetSampClkOverrunBehavior(TaskHandle taskHandle, int32 *data); int32 __CFUNC DAQmxSetSampClkOverrunBehavior(TaskHandle taskHandle, int32 data); int32 __CFUNC DAQmxResetSampClkOverrunBehavior(TaskHandle taskHandle); //*** Set/Get functions for DAQmx_SampClk_UnderflowBehavior *** // Uses value set UnderflowBehavior int32 __CFUNC DAQmxGetSampClkUnderflowBehavior(TaskHandle taskHandle, int32 *data); int32 __CFUNC DAQmxSetSampClkUnderflowBehavior(TaskHandle taskHandle, int32 data); int32 __CFUNC DAQmxResetSampClkUnderflowBehavior(TaskHandle taskHandle); //*** Set/Get functions for DAQmx_SampClk_TimebaseDiv *** int32 __CFUNC DAQmxGetSampClkTimebaseDiv(TaskHandle taskHandle, uInt32 *data); int32 __CFUNC DAQmxSetSampClkTimebaseDiv(TaskHandle taskHandle, uInt32 data); int32 __CFUNC DAQmxResetSampClkTimebaseDiv(TaskHandle taskHandle); //*** Set/Get functions for DAQmx_SampClk_Term *** int32 __CFUNC DAQmxGetSampClkTerm(TaskHandle taskHandle, char *data, uInt32 bufferSize); //*** Set/Get functions for DAQmx_SampClk_Timebase_Rate *** int32 __CFUNC DAQmxGetSampClkTimebaseRate(TaskHandle taskHandle, float64 *data); int32 __CFUNC DAQmxSetSampClkTimebaseRate(TaskHandle taskHandle, float64 data); int32 __CFUNC DAQmxResetSampClkTimebaseRate(TaskHandle taskHandle); //*** Set/Get functions for DAQmx_SampClk_Timebase_Src *** int32 __CFUNC DAQmxGetSampClkTimebaseSrc(TaskHandle taskHandle, char *data, uInt32 bufferSize); int32 __CFUNC DAQmxSetSampClkTimebaseSrc(TaskHandle taskHandle, const char *data); int32 __CFUNC DAQmxResetSampClkTimebaseSrc(TaskHandle taskHandle); //*** Set/Get functions for DAQmx_SampClk_Timebase_ActiveEdge *** // Uses value set Edge1 int32 __CFUNC DAQmxGetSampClkTimebaseActiveEdge(TaskHandle taskHandle, int32 *data); int32 __CFUNC DAQmxSetSampClkTimebaseActiveEdge(TaskHandle taskHandle, int32 data); int32 __CFUNC DAQmxResetSampClkTimebaseActiveEdge(TaskHandle taskHandle); //*** Set/Get functions for DAQmx_SampClk_Timebase_MasterTimebaseDiv *** int32 __CFUNC DAQmxGetSampClkTimebaseMasterTimebaseDiv(TaskHandle taskHandle, uInt32 *data); int32 __CFUNC DAQmxSetSampClkTimebaseMasterTimebaseDiv(TaskHandle taskHandle, uInt32 data); int32 __CFUNC DAQmxResetSampClkTimebaseMasterTimebaseDiv(TaskHandle taskHandle); //*** Set/Get functions for DAQmx_SampClkTimebase_Term *** int32 __CFUNC DAQmxGetSampClkTimebaseTerm(TaskHandle taskHandle, char *data, uInt32 bufferSize); //*** Set/Get functions for DAQmx_SampClk_DigFltr_Enable *** int32 __CFUNC DAQmxGetSampClkDigFltrEnable(TaskHandle taskHandle, bool32 *data); int32 __CFUNC DAQmxSetSampClkDigFltrEnable(TaskHandle taskHandle, bool32 data); int32 __CFUNC DAQmxResetSampClkDigFltrEnable(TaskHandle taskHandle); //*** Set/Get functions for DAQmx_SampClk_DigFltr_MinPulseWidth *** int32 __CFUNC DAQmxGetSampClkDigFltrMinPulseWidth(TaskHandle taskHandle, float64 *data); int32 __CFUNC DAQmxSetSampClkDigFltrMinPulseWidth(TaskHandle taskHandle, float64 data); int32 __CFUNC DAQmxResetSampClkDigFltrMinPulseWidth(TaskHandle taskHandle); //*** Set/Get functions for DAQmx_SampClk_DigFltr_TimebaseSrc *** int32 __CFUNC DAQmxGetSampClkDigFltrTimebaseSrc(TaskHandle taskHandle, char *data, uInt32 bufferSize); int32 __CFUNC DAQmxSetSampClkDigFltrTimebaseSrc(TaskHandle taskHandle, const char *data); int32 __CFUNC DAQmxResetSampClkDigFltrTimebaseSrc(TaskHandle taskHandle); //*** Set/Get functions for DAQmx_SampClk_DigFltr_TimebaseRate *** int32 __CFUNC DAQmxGetSampClkDigFltrTimebaseRate(TaskHandle taskHandle, float64 *data); int32 __CFUNC DAQmxSetSampClkDigFltrTimebaseRate(TaskHandle taskHandle, float64 data); int32 __CFUNC DAQmxResetSampClkDigFltrTimebaseRate(TaskHandle taskHandle); //*** Set/Get functions for DAQmx_SampClk_DigSync_Enable *** int32 __CFUNC DAQmxGetSampClkDigSyncEnable(TaskHandle taskHandle, bool32 *data); int32 __CFUNC DAQmxSetSampClkDigSyncEnable(TaskHandle taskHandle, bool32 data); int32 __CFUNC DAQmxResetSampClkDigSyncEnable(TaskHandle taskHandle); //*** Set/Get functions for DAQmx_Hshk_DelayAfterXfer *** int32 __CFUNC DAQmxGetHshkDelayAfterXfer(TaskHandle taskHandle, float64 *data); int32 __CFUNC DAQmxSetHshkDelayAfterXfer(TaskHandle taskHandle, float64 data); int32 __CFUNC DAQmxResetHshkDelayAfterXfer(TaskHandle taskHandle); //*** Set/Get functions for DAQmx_Hshk_StartCond *** // Uses value set HandshakeStartCondition int32 __CFUNC DAQmxGetHshkStartCond(TaskHandle taskHandle, int32 *data); int32 __CFUNC DAQmxSetHshkStartCond(TaskHandle taskHandle, int32 data); int32 __CFUNC DAQmxResetHshkStartCond(TaskHandle taskHandle); //*** Set/Get functions for DAQmx_Hshk_SampleInputDataWhen *** // Uses value set SampleInputDataWhen int32 __CFUNC DAQmxGetHshkSampleInputDataWhen(TaskHandle taskHandle, int32 *data); int32 __CFUNC DAQmxSetHshkSampleInputDataWhen(TaskHandle taskHandle, int32 data); int32 __CFUNC DAQmxResetHshkSampleInputDataWhen(TaskHandle taskHandle); //*** Set/Get functions for DAQmx_ChangeDetect_DI_RisingEdgePhysicalChans *** int32 __CFUNC DAQmxGetChangeDetectDIRisingEdgePhysicalChans(TaskHandle taskHandle, char *data, uInt32 bufferSize); int32 __CFUNC DAQmxSetChangeDetectDIRisingEdgePhysicalChans(TaskHandle taskHandle, const char *data); int32 __CFUNC DAQmxResetChangeDetectDIRisingEdgePhysicalChans(TaskHandle taskHandle); //*** Set/Get functions for DAQmx_ChangeDetect_DI_FallingEdgePhysicalChans *** int32 __CFUNC DAQmxGetChangeDetectDIFallingEdgePhysicalChans(TaskHandle taskHandle, char *data, uInt32 bufferSize); int32 __CFUNC DAQmxSetChangeDetectDIFallingEdgePhysicalChans(TaskHandle taskHandle, const char *data); int32 __CFUNC DAQmxResetChangeDetectDIFallingEdgePhysicalChans(TaskHandle taskHandle); //*** Set/Get functions for DAQmx_ChangeDetect_DI_Tristate *** int32 __CFUNC DAQmxGetChangeDetectDITristate(TaskHandle taskHandle, bool32 *data); int32 __CFUNC DAQmxSetChangeDetectDITristate(TaskHandle taskHandle, bool32 data); int32 __CFUNC DAQmxResetChangeDetectDITristate(TaskHandle taskHandle); //*** Set/Get functions for DAQmx_OnDemand_SimultaneousAOEnable *** int32 __CFUNC DAQmxGetOnDemandSimultaneousAOEnable(TaskHandle taskHandle, bool32 *data); int32 __CFUNC DAQmxSetOnDemandSimultaneousAOEnable(TaskHandle taskHandle, bool32 data); int32 __CFUNC DAQmxResetOnDemandSimultaneousAOEnable(TaskHandle taskHandle); //*** Set/Get functions for DAQmx_Implicit_UnderflowBehavior *** // Uses value set UnderflowBehavior int32 __CFUNC DAQmxGetImplicitUnderflowBehavior(TaskHandle taskHandle, int32 *data); int32 __CFUNC DAQmxSetImplicitUnderflowBehavior(TaskHandle taskHandle, int32 data); int32 __CFUNC DAQmxResetImplicitUnderflowBehavior(TaskHandle taskHandle); //*** Set/Get functions for DAQmx_AIConv_Rate *** int32 __CFUNC DAQmxGetAIConvRate(TaskHandle taskHandle, float64 *data); int32 __CFUNC DAQmxSetAIConvRate(TaskHandle taskHandle, float64 data); int32 __CFUNC DAQmxResetAIConvRate(TaskHandle taskHandle); int32 __CFUNC DAQmxGetAIConvRateEx(TaskHandle taskHandle, const char deviceNames[], float64 *data); int32 __CFUNC DAQmxSetAIConvRateEx(TaskHandle taskHandle, const char deviceNames[], float64 data); int32 __CFUNC DAQmxResetAIConvRateEx(TaskHandle taskHandle, const char deviceNames[]); //*** Set/Get functions for DAQmx_AIConv_MaxRate *** int32 __CFUNC DAQmxGetAIConvMaxRate(TaskHandle taskHandle, float64 *data); int32 __CFUNC DAQmxGetAIConvMaxRateEx(TaskHandle taskHandle, const char deviceNames[], float64 *data); //*** Set/Get functions for DAQmx_AIConv_Src *** int32 __CFUNC DAQmxGetAIConvSrc(TaskHandle taskHandle, char *data, uInt32 bufferSize); int32 __CFUNC DAQmxSetAIConvSrc(TaskHandle taskHandle, const char *data); int32 __CFUNC DAQmxResetAIConvSrc(TaskHandle taskHandle); int32 __CFUNC DAQmxGetAIConvSrcEx(TaskHandle taskHandle, const char deviceNames[], char *data, uInt32 bufferSize); int32 __CFUNC DAQmxSetAIConvSrcEx(TaskHandle taskHandle, const char deviceNames[], const char *data); int32 __CFUNC DAQmxResetAIConvSrcEx(TaskHandle taskHandle, const char deviceNames[]); //*** Set/Get functions for DAQmx_AIConv_ActiveEdge *** // Uses value set Edge1 int32 __CFUNC DAQmxGetAIConvActiveEdge(TaskHandle taskHandle, int32 *data); int32 __CFUNC DAQmxSetAIConvActiveEdge(TaskHandle taskHandle, int32 data); int32 __CFUNC DAQmxResetAIConvActiveEdge(TaskHandle taskHandle); int32 __CFUNC DAQmxGetAIConvActiveEdgeEx(TaskHandle taskHandle, const char deviceNames[], int32 *data); int32 __CFUNC DAQmxSetAIConvActiveEdgeEx(TaskHandle taskHandle, const char deviceNames[], int32 data); int32 __CFUNC DAQmxResetAIConvActiveEdgeEx(TaskHandle taskHandle, const char deviceNames[]); //*** Set/Get functions for DAQmx_AIConv_TimebaseDiv *** int32 __CFUNC DAQmxGetAIConvTimebaseDiv(TaskHandle taskHandle, uInt32 *data); int32 __CFUNC DAQmxSetAIConvTimebaseDiv(TaskHandle taskHandle, uInt32 data); int32 __CFUNC DAQmxResetAIConvTimebaseDiv(TaskHandle taskHandle); int32 __CFUNC DAQmxGetAIConvTimebaseDivEx(TaskHandle taskHandle, const char deviceNames[], uInt32 *data); int32 __CFUNC DAQmxSetAIConvTimebaseDivEx(TaskHandle taskHandle, const char deviceNames[], uInt32 data); int32 __CFUNC DAQmxResetAIConvTimebaseDivEx(TaskHandle taskHandle, const char deviceNames[]); //*** Set/Get functions for DAQmx_AIConv_Timebase_Src *** // Uses value set MIOAIConvertTbSrc int32 __CFUNC DAQmxGetAIConvTimebaseSrc(TaskHandle taskHandle, int32 *data); int32 __CFUNC DAQmxSetAIConvTimebaseSrc(TaskHandle taskHandle, int32 data); int32 __CFUNC DAQmxResetAIConvTimebaseSrc(TaskHandle taskHandle); int32 __CFUNC DAQmxGetAIConvTimebaseSrcEx(TaskHandle taskHandle, const char deviceNames[], int32 *data); int32 __CFUNC DAQmxSetAIConvTimebaseSrcEx(TaskHandle taskHandle, const char deviceNames[], int32 data); int32 __CFUNC DAQmxResetAIConvTimebaseSrcEx(TaskHandle taskHandle, const char deviceNames[]); //*** Set/Get functions for DAQmx_DelayFromSampClk_DelayUnits *** // Uses value set DigitalWidthUnits2 int32 __CFUNC DAQmxGetDelayFromSampClkDelayUnits(TaskHandle taskHandle, int32 *data); int32 __CFUNC DAQmxSetDelayFromSampClkDelayUnits(TaskHandle taskHandle, int32 data); int32 __CFUNC DAQmxResetDelayFromSampClkDelayUnits(TaskHandle taskHandle); int32 __CFUNC DAQmxGetDelayFromSampClkDelayUnitsEx(TaskHandle taskHandle, const char deviceNames[], int32 *data); int32 __CFUNC DAQmxSetDelayFromSampClkDelayUnitsEx(TaskHandle taskHandle, const char deviceNames[], int32 data); int32 __CFUNC DAQmxResetDelayFromSampClkDelayUnitsEx(TaskHandle taskHandle, const char deviceNames[]); //*** Set/Get functions for DAQmx_DelayFromSampClk_Delay *** int32 __CFUNC DAQmxGetDelayFromSampClkDelay(TaskHandle taskHandle, float64 *data); int32 __CFUNC DAQmxSetDelayFromSampClkDelay(TaskHandle taskHandle, float64 data); int32 __CFUNC DAQmxResetDelayFromSampClkDelay(TaskHandle taskHandle); int32 __CFUNC DAQmxGetDelayFromSampClkDelayEx(TaskHandle taskHandle, const char deviceNames[], float64 *data); int32 __CFUNC DAQmxSetDelayFromSampClkDelayEx(TaskHandle taskHandle, const char deviceNames[], float64 data); int32 __CFUNC DAQmxResetDelayFromSampClkDelayEx(TaskHandle taskHandle, const char deviceNames[]); //*** Set/Get functions for DAQmx_AIConv_DigFltr_Enable *** int32 __CFUNC DAQmxGetAIConvDigFltrEnable(TaskHandle taskHandle, bool32 *data); int32 __CFUNC DAQmxSetAIConvDigFltrEnable(TaskHandle taskHandle, bool32 data); int32 __CFUNC DAQmxResetAIConvDigFltrEnable(TaskHandle taskHandle); int32 __CFUNC DAQmxGetAIConvDigFltrEnableEx(TaskHandle taskHandle, const char deviceNames[], bool32 *data); int32 __CFUNC DAQmxSetAIConvDigFltrEnableEx(TaskHandle taskHandle, const char deviceNames[], bool32 data); int32 __CFUNC DAQmxResetAIConvDigFltrEnableEx(TaskHandle taskHandle, const char deviceNames[]); //*** Set/Get functions for DAQmx_AIConv_DigFltr_MinPulseWidth *** int32 __CFUNC DAQmxGetAIConvDigFltrMinPulseWidth(TaskHandle taskHandle, float64 *data); int32 __CFUNC DAQmxSetAIConvDigFltrMinPulseWidth(TaskHandle taskHandle, float64 data); int32 __CFUNC DAQmxResetAIConvDigFltrMinPulseWidth(TaskHandle taskHandle); int32 __CFUNC DAQmxGetAIConvDigFltrMinPulseWidthEx(TaskHandle taskHandle, const char deviceNames[], float64 *data); int32 __CFUNC DAQmxSetAIConvDigFltrMinPulseWidthEx(TaskHandle taskHandle, const char deviceNames[], float64 data); int32 __CFUNC DAQmxResetAIConvDigFltrMinPulseWidthEx(TaskHandle taskHandle, const char deviceNames[]); //*** Set/Get functions for DAQmx_AIConv_DigFltr_TimebaseSrc *** int32 __CFUNC DAQmxGetAIConvDigFltrTimebaseSrc(TaskHandle taskHandle, char *data, uInt32 bufferSize); int32 __CFUNC DAQmxSetAIConvDigFltrTimebaseSrc(TaskHandle taskHandle, const char *data); int32 __CFUNC DAQmxResetAIConvDigFltrTimebaseSrc(TaskHandle taskHandle); int32 __CFUNC DAQmxGetAIConvDigFltrTimebaseSrcEx(TaskHandle taskHandle, const char deviceNames[], char *data, uInt32 bufferSize); int32 __CFUNC DAQmxSetAIConvDigFltrTimebaseSrcEx(TaskHandle taskHandle, const char deviceNames[], const char *data); int32 __CFUNC DAQmxResetAIConvDigFltrTimebaseSrcEx(TaskHandle taskHandle, const char deviceNames[]); //*** Set/Get functions for DAQmx_AIConv_DigFltr_TimebaseRate *** int32 __CFUNC DAQmxGetAIConvDigFltrTimebaseRate(TaskHandle taskHandle, float64 *data); int32 __CFUNC DAQmxSetAIConvDigFltrTimebaseRate(TaskHandle taskHandle, float64 data); int32 __CFUNC DAQmxResetAIConvDigFltrTimebaseRate(TaskHandle taskHandle); int32 __CFUNC DAQmxGetAIConvDigFltrTimebaseRateEx(TaskHandle taskHandle, const char deviceNames[], float64 *data); int32 __CFUNC DAQmxSetAIConvDigFltrTimebaseRateEx(TaskHandle taskHandle, const char deviceNames[], float64 data); int32 __CFUNC DAQmxResetAIConvDigFltrTimebaseRateEx(TaskHandle taskHandle, const char deviceNames[]); //*** Set/Get functions for DAQmx_AIConv_DigSync_Enable *** int32 __CFUNC DAQmxGetAIConvDigSyncEnable(TaskHandle taskHandle, bool32 *data); int32 __CFUNC DAQmxSetAIConvDigSyncEnable(TaskHandle taskHandle, bool32 data); int32 __CFUNC DAQmxResetAIConvDigSyncEnable(TaskHandle taskHandle); int32 __CFUNC DAQmxGetAIConvDigSyncEnableEx(TaskHandle taskHandle, const char deviceNames[], bool32 *data); int32 __CFUNC DAQmxSetAIConvDigSyncEnableEx(TaskHandle taskHandle, const char deviceNames[], bool32 data); int32 __CFUNC DAQmxResetAIConvDigSyncEnableEx(TaskHandle taskHandle, const char deviceNames[]); //*** Set/Get functions for DAQmx_MasterTimebase_Rate *** int32 __CFUNC DAQmxGetMasterTimebaseRate(TaskHandle taskHandle, float64 *data); int32 __CFUNC DAQmxSetMasterTimebaseRate(TaskHandle taskHandle, float64 data); int32 __CFUNC DAQmxResetMasterTimebaseRate(TaskHandle taskHandle); //*** Set/Get functions for DAQmx_MasterTimebase_Src *** int32 __CFUNC DAQmxGetMasterTimebaseSrc(TaskHandle taskHandle, char *data, uInt32 bufferSize); int32 __CFUNC DAQmxSetMasterTimebaseSrc(TaskHandle taskHandle, const char *data); int32 __CFUNC DAQmxResetMasterTimebaseSrc(TaskHandle taskHandle); //*** Set/Get functions for DAQmx_RefClk_Rate *** int32 __CFUNC DAQmxGetRefClkRate(TaskHandle taskHandle, float64 *data); int32 __CFUNC DAQmxSetRefClkRate(TaskHandle taskHandle, float64 data); int32 __CFUNC DAQmxResetRefClkRate(TaskHandle taskHandle); //*** Set/Get functions for DAQmx_RefClk_Src *** int32 __CFUNC DAQmxGetRefClkSrc(TaskHandle taskHandle, char *data, uInt32 bufferSize); int32 __CFUNC DAQmxSetRefClkSrc(TaskHandle taskHandle, const char *data); int32 __CFUNC DAQmxResetRefClkSrc(TaskHandle taskHandle); //*** Set/Get functions for DAQmx_SyncPulse_Src *** int32 __CFUNC DAQmxGetSyncPulseSrc(TaskHandle taskHandle, char *data, uInt32 bufferSize); int32 __CFUNC DAQmxSetSyncPulseSrc(TaskHandle taskHandle, const char *data); int32 __CFUNC DAQmxResetSyncPulseSrc(TaskHandle taskHandle); //*** Set/Get functions for DAQmx_SyncPulse_SyncTime *** int32 __CFUNC DAQmxGetSyncPulseSyncTime(TaskHandle taskHandle, float64 *data); //*** Set/Get functions for DAQmx_SyncPulse_MinDelayToStart *** int32 __CFUNC DAQmxGetSyncPulseMinDelayToStart(TaskHandle taskHandle, float64 *data); int32 __CFUNC DAQmxSetSyncPulseMinDelayToStart(TaskHandle taskHandle, float64 data); int32 __CFUNC DAQmxResetSyncPulseMinDelayToStart(TaskHandle taskHandle); //*** Set/Get functions for DAQmx_SyncPulse_ResetTime *** int32 __CFUNC DAQmxGetSyncPulseResetTime(TaskHandle taskHandle, float64 *data); //*** Set/Get functions for DAQmx_SyncPulse_ResetDelay *** int32 __CFUNC DAQmxGetSyncPulseResetDelay(TaskHandle taskHandle, float64 *data); int32 __CFUNC DAQmxSetSyncPulseResetDelay(TaskHandle taskHandle, float64 data); int32 __CFUNC DAQmxResetSyncPulseResetDelay(TaskHandle taskHandle); //*** Set/Get functions for DAQmx_SyncPulse_Term *** int32 __CFUNC DAQmxGetSyncPulseTerm(TaskHandle taskHandle, char *data, uInt32 bufferSize); //*** Set/Get functions for DAQmx_SyncClk_Interval *** int32 __CFUNC DAQmxGetSyncClkInterval(TaskHandle taskHandle, uInt32 *data); int32 __CFUNC DAQmxSetSyncClkInterval(TaskHandle taskHandle, uInt32 data); int32 __CFUNC DAQmxResetSyncClkInterval(TaskHandle taskHandle); //*** Set/Get functions for DAQmx_SampTimingEngine *** int32 __CFUNC DAQmxGetSampTimingEngine(TaskHandle taskHandle, uInt32 *data); int32 __CFUNC DAQmxSetSampTimingEngine(TaskHandle taskHandle, uInt32 data); int32 __CFUNC DAQmxResetSampTimingEngine(TaskHandle taskHandle); //********** Trigger ********** //*** Set/Get functions for DAQmx_StartTrig_Type *** // Uses value set TriggerType8 int32 __CFUNC DAQmxGetStartTrigType(TaskHandle taskHandle, int32 *data); int32 __CFUNC DAQmxSetStartTrigType(TaskHandle taskHandle, int32 data); int32 __CFUNC DAQmxResetStartTrigType(TaskHandle taskHandle); //*** Set/Get functions for DAQmx_StartTrig_Term *** int32 __CFUNC DAQmxGetStartTrigTerm(TaskHandle taskHandle, char *data, uInt32 bufferSize); //*** Set/Get functions for DAQmx_DigEdge_StartTrig_Src *** int32 __CFUNC DAQmxGetDigEdgeStartTrigSrc(TaskHandle taskHandle, char *data, uInt32 bufferSize); int32 __CFUNC DAQmxSetDigEdgeStartTrigSrc(TaskHandle taskHandle, const char *data); int32 __CFUNC DAQmxResetDigEdgeStartTrigSrc(TaskHandle taskHandle); //*** Set/Get functions for DAQmx_DigEdge_StartTrig_Edge *** // Uses value set Edge1 int32 __CFUNC DAQmxGetDigEdgeStartTrigEdge(TaskHandle taskHandle, int32 *data); int32 __CFUNC DAQmxSetDigEdgeStartTrigEdge(TaskHandle taskHandle, int32 data); int32 __CFUNC DAQmxResetDigEdgeStartTrigEdge(TaskHandle taskHandle); //*** Set/Get functions for DAQmx_DigEdge_StartTrig_DigFltr_Enable *** int32 __CFUNC DAQmxGetDigEdgeStartTrigDigFltrEnable(TaskHandle taskHandle, bool32 *data); int32 __CFUNC DAQmxSetDigEdgeStartTrigDigFltrEnable(TaskHandle taskHandle, bool32 data); int32 __CFUNC DAQmxResetDigEdgeStartTrigDigFltrEnable(TaskHandle taskHandle); //*** Set/Get functions for DAQmx_DigEdge_StartTrig_DigFltr_MinPulseWidth *** int32 __CFUNC DAQmxGetDigEdgeStartTrigDigFltrMinPulseWidth(TaskHandle taskHandle, float64 *data); int32 __CFUNC DAQmxSetDigEdgeStartTrigDigFltrMinPulseWidth(TaskHandle taskHandle, float64 data); int32 __CFUNC DAQmxResetDigEdgeStartTrigDigFltrMinPulseWidth(TaskHandle taskHandle); //*** Set/Get functions for DAQmx_DigEdge_StartTrig_DigFltr_TimebaseSrc *** int32 __CFUNC DAQmxGetDigEdgeStartTrigDigFltrTimebaseSrc(TaskHandle taskHandle, char *data, uInt32 bufferSize); int32 __CFUNC DAQmxSetDigEdgeStartTrigDigFltrTimebaseSrc(TaskHandle taskHandle, const char *data); int32 __CFUNC DAQmxResetDigEdgeStartTrigDigFltrTimebaseSrc(TaskHandle taskHandle); //*** Set/Get functions for DAQmx_DigEdge_StartTrig_DigFltr_TimebaseRate *** int32 __CFUNC DAQmxGetDigEdgeStartTrigDigFltrTimebaseRate(TaskHandle taskHandle, float64 *data); int32 __CFUNC DAQmxSetDigEdgeStartTrigDigFltrTimebaseRate(TaskHandle taskHandle, float64 data); int32 __CFUNC DAQmxResetDigEdgeStartTrigDigFltrTimebaseRate(TaskHandle taskHandle); //*** Set/Get functions for DAQmx_DigEdge_StartTrig_DigSync_Enable *** int32 __CFUNC DAQmxGetDigEdgeStartTrigDigSyncEnable(TaskHandle taskHandle, bool32 *data); int32 __CFUNC DAQmxSetDigEdgeStartTrigDigSyncEnable(TaskHandle taskHandle, bool32 data); int32 __CFUNC DAQmxResetDigEdgeStartTrigDigSyncEnable(TaskHandle taskHandle); //*** Set/Get functions for DAQmx_DigPattern_StartTrig_Src *** int32 __CFUNC DAQmxGetDigPatternStartTrigSrc(TaskHandle taskHandle, char *data, uInt32 bufferSize); int32 __CFUNC DAQmxSetDigPatternStartTrigSrc(TaskHandle taskHandle, const char *data); int32 __CFUNC DAQmxResetDigPatternStartTrigSrc(TaskHandle taskHandle); //*** Set/Get functions for DAQmx_DigPattern_StartTrig_Pattern *** int32 __CFUNC DAQmxGetDigPatternStartTrigPattern(TaskHandle taskHandle, char *data, uInt32 bufferSize); int32 __CFUNC DAQmxSetDigPatternStartTrigPattern(TaskHandle taskHandle, const char *data); int32 __CFUNC DAQmxResetDigPatternStartTrigPattern(TaskHandle taskHandle); //*** Set/Get functions for DAQmx_DigPattern_StartTrig_When *** // Uses value set DigitalPatternCondition1 int32 __CFUNC DAQmxGetDigPatternStartTrigWhen(TaskHandle taskHandle, int32 *data); int32 __CFUNC DAQmxSetDigPatternStartTrigWhen(TaskHandle taskHandle, int32 data); int32 __CFUNC DAQmxResetDigPatternStartTrigWhen(TaskHandle taskHandle); //*** Set/Get functions for DAQmx_AnlgEdge_StartTrig_Src *** int32 __CFUNC DAQmxGetAnlgEdgeStartTrigSrc(TaskHandle taskHandle, char *data, uInt32 bufferSize); int32 __CFUNC DAQmxSetAnlgEdgeStartTrigSrc(TaskHandle taskHandle, const char *data); int32 __CFUNC DAQmxResetAnlgEdgeStartTrigSrc(TaskHandle taskHandle); //*** Set/Get functions for DAQmx_AnlgEdge_StartTrig_Slope *** // Uses value set Slope1 int32 __CFUNC DAQmxGetAnlgEdgeStartTrigSlope(TaskHandle taskHandle, int32 *data); int32 __CFUNC DAQmxSetAnlgEdgeStartTrigSlope(TaskHandle taskHandle, int32 data); int32 __CFUNC DAQmxResetAnlgEdgeStartTrigSlope(TaskHandle taskHandle); //*** Set/Get functions for DAQmx_AnlgEdge_StartTrig_Lvl *** int32 __CFUNC DAQmxGetAnlgEdgeStartTrigLvl(TaskHandle taskHandle, float64 *data); int32 __CFUNC DAQmxSetAnlgEdgeStartTrigLvl(TaskHandle taskHandle, float64 data); int32 __CFUNC DAQmxResetAnlgEdgeStartTrigLvl(TaskHandle taskHandle); //*** Set/Get functions for DAQmx_AnlgEdge_StartTrig_Hyst *** int32 __CFUNC DAQmxGetAnlgEdgeStartTrigHyst(TaskHandle taskHandle, float64 *data); int32 __CFUNC DAQmxSetAnlgEdgeStartTrigHyst(TaskHandle taskHandle, float64 data); int32 __CFUNC DAQmxResetAnlgEdgeStartTrigHyst(TaskHandle taskHandle); //*** Set/Get functions for DAQmx_AnlgEdge_StartTrig_Coupling *** // Uses value set Coupling2 int32 __CFUNC DAQmxGetAnlgEdgeStartTrigCoupling(TaskHandle taskHandle, int32 *data); int32 __CFUNC DAQmxSetAnlgEdgeStartTrigCoupling(TaskHandle taskHandle, int32 data); int32 __CFUNC DAQmxResetAnlgEdgeStartTrigCoupling(TaskHandle taskHandle); //*** Set/Get functions for DAQmx_AnlgEdge_StartTrig_DigFltr_Enable *** int32 __CFUNC DAQmxGetAnlgEdgeStartTrigDigFltrEnable(TaskHandle taskHandle, bool32 *data); int32 __CFUNC DAQmxSetAnlgEdgeStartTrigDigFltrEnable(TaskHandle taskHandle, bool32 data); int32 __CFUNC DAQmxResetAnlgEdgeStartTrigDigFltrEnable(TaskHandle taskHandle); //*** Set/Get functions for DAQmx_AnlgEdge_StartTrig_DigFltr_MinPulseWidth *** int32 __CFUNC DAQmxGetAnlgEdgeStartTrigDigFltrMinPulseWidth(TaskHandle taskHandle, float64 *data); int32 __CFUNC DAQmxSetAnlgEdgeStartTrigDigFltrMinPulseWidth(TaskHandle taskHandle, float64 data); int32 __CFUNC DAQmxResetAnlgEdgeStartTrigDigFltrMinPulseWidth(TaskHandle taskHandle); //*** Set/Get functions for DAQmx_AnlgEdge_StartTrig_DigFltr_TimebaseSrc *** int32 __CFUNC DAQmxGetAnlgEdgeStartTrigDigFltrTimebaseSrc(TaskHandle taskHandle, char *data, uInt32 bufferSize); int32 __CFUNC DAQmxSetAnlgEdgeStartTrigDigFltrTimebaseSrc(TaskHandle taskHandle, const char *data); int32 __CFUNC DAQmxResetAnlgEdgeStartTrigDigFltrTimebaseSrc(TaskHandle taskHandle); //*** Set/Get functions for DAQmx_AnlgEdge_StartTrig_DigFltr_TimebaseRate *** int32 __CFUNC DAQmxGetAnlgEdgeStartTrigDigFltrTimebaseRate(TaskHandle taskHandle, float64 *data); int32 __CFUNC DAQmxSetAnlgEdgeStartTrigDigFltrTimebaseRate(TaskHandle taskHandle, float64 data); int32 __CFUNC DAQmxResetAnlgEdgeStartTrigDigFltrTimebaseRate(TaskHandle taskHandle); //*** Set/Get functions for DAQmx_AnlgEdge_StartTrig_DigSync_Enable *** int32 __CFUNC DAQmxGetAnlgEdgeStartTrigDigSyncEnable(TaskHandle taskHandle, bool32 *data); int32 __CFUNC DAQmxSetAnlgEdgeStartTrigDigSyncEnable(TaskHandle taskHandle, bool32 data); int32 __CFUNC DAQmxResetAnlgEdgeStartTrigDigSyncEnable(TaskHandle taskHandle); //*** Set/Get functions for DAQmx_AnlgWin_StartTrig_Src *** int32 __CFUNC DAQmxGetAnlgWinStartTrigSrc(TaskHandle taskHandle, char *data, uInt32 bufferSize); int32 __CFUNC DAQmxSetAnlgWinStartTrigSrc(TaskHandle taskHandle, const char *data); int32 __CFUNC DAQmxResetAnlgWinStartTrigSrc(TaskHandle taskHandle); //*** Set/Get functions for DAQmx_AnlgWin_StartTrig_When *** // Uses value set WindowTriggerCondition1 int32 __CFUNC DAQmxGetAnlgWinStartTrigWhen(TaskHandle taskHandle, int32 *data); int32 __CFUNC DAQmxSetAnlgWinStartTrigWhen(TaskHandle taskHandle, int32 data); int32 __CFUNC DAQmxResetAnlgWinStartTrigWhen(TaskHandle taskHandle); //*** Set/Get functions for DAQmx_AnlgWin_StartTrig_Top *** int32 __CFUNC DAQmxGetAnlgWinStartTrigTop(TaskHandle taskHandle, float64 *data); int32 __CFUNC DAQmxSetAnlgWinStartTrigTop(TaskHandle taskHandle, float64 data); int32 __CFUNC DAQmxResetAnlgWinStartTrigTop(TaskHandle taskHandle); //*** Set/Get functions for DAQmx_AnlgWin_StartTrig_Btm *** int32 __CFUNC DAQmxGetAnlgWinStartTrigBtm(TaskHandle taskHandle, float64 *data); int32 __CFUNC DAQmxSetAnlgWinStartTrigBtm(TaskHandle taskHandle, float64 data); int32 __CFUNC DAQmxResetAnlgWinStartTrigBtm(TaskHandle taskHandle); //*** Set/Get functions for DAQmx_AnlgWin_StartTrig_Coupling *** // Uses value set Coupling2 int32 __CFUNC DAQmxGetAnlgWinStartTrigCoupling(TaskHandle taskHandle, int32 *data); int32 __CFUNC DAQmxSetAnlgWinStartTrigCoupling(TaskHandle taskHandle, int32 data); int32 __CFUNC DAQmxResetAnlgWinStartTrigCoupling(TaskHandle taskHandle); //*** Set/Get functions for DAQmx_AnlgWin_StartTrig_DigFltr_Enable *** int32 __CFUNC DAQmxGetAnlgWinStartTrigDigFltrEnable(TaskHandle taskHandle, bool32 *data); int32 __CFUNC DAQmxSetAnlgWinStartTrigDigFltrEnable(TaskHandle taskHandle, bool32 data); int32 __CFUNC DAQmxResetAnlgWinStartTrigDigFltrEnable(TaskHandle taskHandle); //*** Set/Get functions for DAQmx_AnlgWin_StartTrig_DigFltr_MinPulseWidth *** int32 __CFUNC DAQmxGetAnlgWinStartTrigDigFltrMinPulseWidth(TaskHandle taskHandle, float64 *data); int32 __CFUNC DAQmxSetAnlgWinStartTrigDigFltrMinPulseWidth(TaskHandle taskHandle, float64 data); int32 __CFUNC DAQmxResetAnlgWinStartTrigDigFltrMinPulseWidth(TaskHandle taskHandle); //*** Set/Get functions for DAQmx_AnlgWin_StartTrig_DigFltr_TimebaseSrc *** int32 __CFUNC DAQmxGetAnlgWinStartTrigDigFltrTimebaseSrc(TaskHandle taskHandle, char *data, uInt32 bufferSize); int32 __CFUNC DAQmxSetAnlgWinStartTrigDigFltrTimebaseSrc(TaskHandle taskHandle, const char *data); int32 __CFUNC DAQmxResetAnlgWinStartTrigDigFltrTimebaseSrc(TaskHandle taskHandle); //*** Set/Get functions for DAQmx_AnlgWin_StartTrig_DigFltr_TimebaseRate *** int32 __CFUNC DAQmxGetAnlgWinStartTrigDigFltrTimebaseRate(TaskHandle taskHandle, float64 *data); int32 __CFUNC DAQmxSetAnlgWinStartTrigDigFltrTimebaseRate(TaskHandle taskHandle, float64 data); int32 __CFUNC DAQmxResetAnlgWinStartTrigDigFltrTimebaseRate(TaskHandle taskHandle); //*** Set/Get functions for DAQmx_AnlgWin_StartTrig_DigSync_Enable *** int32 __CFUNC DAQmxGetAnlgWinStartTrigDigSyncEnable(TaskHandle taskHandle, bool32 *data); int32 __CFUNC DAQmxSetAnlgWinStartTrigDigSyncEnable(TaskHandle taskHandle, bool32 data); int32 __CFUNC DAQmxResetAnlgWinStartTrigDigSyncEnable(TaskHandle taskHandle); //*** Set/Get functions for DAQmx_StartTrig_Delay *** int32 __CFUNC DAQmxGetStartTrigDelay(TaskHandle taskHandle, float64 *data); int32 __CFUNC DAQmxSetStartTrigDelay(TaskHandle taskHandle, float64 data); int32 __CFUNC DAQmxResetStartTrigDelay(TaskHandle taskHandle); //*** Set/Get functions for DAQmx_StartTrig_DelayUnits *** // Uses value set DigitalWidthUnits1 int32 __CFUNC DAQmxGetStartTrigDelayUnits(TaskHandle taskHandle, int32 *data); int32 __CFUNC DAQmxSetStartTrigDelayUnits(TaskHandle taskHandle, int32 data); int32 __CFUNC DAQmxResetStartTrigDelayUnits(TaskHandle taskHandle); //*** Set/Get functions for DAQmx_StartTrig_Retriggerable *** int32 __CFUNC DAQmxGetStartTrigRetriggerable(TaskHandle taskHandle, bool32 *data); int32 __CFUNC DAQmxSetStartTrigRetriggerable(TaskHandle taskHandle, bool32 data); int32 __CFUNC DAQmxResetStartTrigRetriggerable(TaskHandle taskHandle); //*** Set/Get functions for DAQmx_RefTrig_Type *** // Uses value set TriggerType8 int32 __CFUNC DAQmxGetRefTrigType(TaskHandle taskHandle, int32 *data); int32 __CFUNC DAQmxSetRefTrigType(TaskHandle taskHandle, int32 data); int32 __CFUNC DAQmxResetRefTrigType(TaskHandle taskHandle); //*** Set/Get functions for DAQmx_RefTrig_PretrigSamples *** int32 __CFUNC DAQmxGetRefTrigPretrigSamples(TaskHandle taskHandle, uInt32 *data); int32 __CFUNC DAQmxSetRefTrigPretrigSamples(TaskHandle taskHandle, uInt32 data); int32 __CFUNC DAQmxResetRefTrigPretrigSamples(TaskHandle taskHandle); //*** Set/Get functions for DAQmx_RefTrig_Term *** int32 __CFUNC DAQmxGetRefTrigTerm(TaskHandle taskHandle, char *data, uInt32 bufferSize); //*** Set/Get functions for DAQmx_DigEdge_RefTrig_Src *** int32 __CFUNC DAQmxGetDigEdgeRefTrigSrc(TaskHandle taskHandle, char *data, uInt32 bufferSize); int32 __CFUNC DAQmxSetDigEdgeRefTrigSrc(TaskHandle taskHandle, const char *data); int32 __CFUNC DAQmxResetDigEdgeRefTrigSrc(TaskHandle taskHandle); //*** Set/Get functions for DAQmx_DigEdge_RefTrig_Edge *** // Uses value set Edge1 int32 __CFUNC DAQmxGetDigEdgeRefTrigEdge(TaskHandle taskHandle, int32 *data); int32 __CFUNC DAQmxSetDigEdgeRefTrigEdge(TaskHandle taskHandle, int32 data); int32 __CFUNC DAQmxResetDigEdgeRefTrigEdge(TaskHandle taskHandle); //*** Set/Get functions for DAQmx_DigEdge_RefTrig_DigFltr_Enable *** int32 __CFUNC DAQmxGetDigEdgeRefTrigDigFltrEnable(TaskHandle taskHandle, bool32 *data); int32 __CFUNC DAQmxSetDigEdgeRefTrigDigFltrEnable(TaskHandle taskHandle, bool32 data); int32 __CFUNC DAQmxResetDigEdgeRefTrigDigFltrEnable(TaskHandle taskHandle); //*** Set/Get functions for DAQmx_DigEdge_RefTrig_DigFltr_MinPulseWidth *** int32 __CFUNC DAQmxGetDigEdgeRefTrigDigFltrMinPulseWidth(TaskHandle taskHandle, float64 *data); int32 __CFUNC DAQmxSetDigEdgeRefTrigDigFltrMinPulseWidth(TaskHandle taskHandle, float64 data); int32 __CFUNC DAQmxResetDigEdgeRefTrigDigFltrMinPulseWidth(TaskHandle taskHandle); //*** Set/Get functions for DAQmx_DigEdge_RefTrig_DigFltr_TimebaseSrc *** int32 __CFUNC DAQmxGetDigEdgeRefTrigDigFltrTimebaseSrc(TaskHandle taskHandle, char *data, uInt32 bufferSize); int32 __CFUNC DAQmxSetDigEdgeRefTrigDigFltrTimebaseSrc(TaskHandle taskHandle, const char *data); int32 __CFUNC DAQmxResetDigEdgeRefTrigDigFltrTimebaseSrc(TaskHandle taskHandle); //*** Set/Get functions for DAQmx_DigEdge_RefTrig_DigFltr_TimebaseRate *** int32 __CFUNC DAQmxGetDigEdgeRefTrigDigFltrTimebaseRate(TaskHandle taskHandle, float64 *data); int32 __CFUNC DAQmxSetDigEdgeRefTrigDigFltrTimebaseRate(TaskHandle taskHandle, float64 data); int32 __CFUNC DAQmxResetDigEdgeRefTrigDigFltrTimebaseRate(TaskHandle taskHandle); //*** Set/Get functions for DAQmx_DigEdge_RefTrig_DigSync_Enable *** int32 __CFUNC DAQmxGetDigEdgeRefTrigDigSyncEnable(TaskHandle taskHandle, bool32 *data); int32 __CFUNC DAQmxSetDigEdgeRefTrigDigSyncEnable(TaskHandle taskHandle, bool32 data); int32 __CFUNC DAQmxResetDigEdgeRefTrigDigSyncEnable(TaskHandle taskHandle); //*** Set/Get functions for DAQmx_DigPattern_RefTrig_Src *** int32 __CFUNC DAQmxGetDigPatternRefTrigSrc(TaskHandle taskHandle, char *data, uInt32 bufferSize); int32 __CFUNC DAQmxSetDigPatternRefTrigSrc(TaskHandle taskHandle, const char *data); int32 __CFUNC DAQmxResetDigPatternRefTrigSrc(TaskHandle taskHandle); //*** Set/Get functions for DAQmx_DigPattern_RefTrig_Pattern *** int32 __CFUNC DAQmxGetDigPatternRefTrigPattern(TaskHandle taskHandle, char *data, uInt32 bufferSize); int32 __CFUNC DAQmxSetDigPatternRefTrigPattern(TaskHandle taskHandle, const char *data); int32 __CFUNC DAQmxResetDigPatternRefTrigPattern(TaskHandle taskHandle); //*** Set/Get functions for DAQmx_DigPattern_RefTrig_When *** // Uses value set DigitalPatternCondition1 int32 __CFUNC DAQmxGetDigPatternRefTrigWhen(TaskHandle taskHandle, int32 *data); int32 __CFUNC DAQmxSetDigPatternRefTrigWhen(TaskHandle taskHandle, int32 data); int32 __CFUNC DAQmxResetDigPatternRefTrigWhen(TaskHandle taskHandle); //*** Set/Get functions for DAQmx_AnlgEdge_RefTrig_Src *** int32 __CFUNC DAQmxGetAnlgEdgeRefTrigSrc(TaskHandle taskHandle, char *data, uInt32 bufferSize); int32 __CFUNC DAQmxSetAnlgEdgeRefTrigSrc(TaskHandle taskHandle, const char *data); int32 __CFUNC DAQmxResetAnlgEdgeRefTrigSrc(TaskHandle taskHandle); //*** Set/Get functions for DAQmx_AnlgEdge_RefTrig_Slope *** // Uses value set Slope1 int32 __CFUNC DAQmxGetAnlgEdgeRefTrigSlope(TaskHandle taskHandle, int32 *data); int32 __CFUNC DAQmxSetAnlgEdgeRefTrigSlope(TaskHandle taskHandle, int32 data); int32 __CFUNC DAQmxResetAnlgEdgeRefTrigSlope(TaskHandle taskHandle); //*** Set/Get functions for DAQmx_AnlgEdge_RefTrig_Lvl *** int32 __CFUNC DAQmxGetAnlgEdgeRefTrigLvl(TaskHandle taskHandle, float64 *data); int32 __CFUNC DAQmxSetAnlgEdgeRefTrigLvl(TaskHandle taskHandle, float64 data); int32 __CFUNC DAQmxResetAnlgEdgeRefTrigLvl(TaskHandle taskHandle); //*** Set/Get functions for DAQmx_AnlgEdge_RefTrig_Hyst *** int32 __CFUNC DAQmxGetAnlgEdgeRefTrigHyst(TaskHandle taskHandle, float64 *data); int32 __CFUNC DAQmxSetAnlgEdgeRefTrigHyst(TaskHandle taskHandle, float64 data); int32 __CFUNC DAQmxResetAnlgEdgeRefTrigHyst(TaskHandle taskHandle); //*** Set/Get functions for DAQmx_AnlgEdge_RefTrig_Coupling *** // Uses value set Coupling2 int32 __CFUNC DAQmxGetAnlgEdgeRefTrigCoupling(TaskHandle taskHandle, int32 *data); int32 __CFUNC DAQmxSetAnlgEdgeRefTrigCoupling(TaskHandle taskHandle, int32 data); int32 __CFUNC DAQmxResetAnlgEdgeRefTrigCoupling(TaskHandle taskHandle); //*** Set/Get functions for DAQmx_AnlgEdge_RefTrig_DigFltr_Enable *** int32 __CFUNC DAQmxGetAnlgEdgeRefTrigDigFltrEnable(TaskHandle taskHandle, bool32 *data); int32 __CFUNC DAQmxSetAnlgEdgeRefTrigDigFltrEnable(TaskHandle taskHandle, bool32 data); int32 __CFUNC DAQmxResetAnlgEdgeRefTrigDigFltrEnable(TaskHandle taskHandle); //*** Set/Get functions for DAQmx_AnlgEdge_RefTrig_DigFltr_MinPulseWidth *** int32 __CFUNC DAQmxGetAnlgEdgeRefTrigDigFltrMinPulseWidth(TaskHandle taskHandle, float64 *data); int32 __CFUNC DAQmxSetAnlgEdgeRefTrigDigFltrMinPulseWidth(TaskHandle taskHandle, float64 data); int32 __CFUNC DAQmxResetAnlgEdgeRefTrigDigFltrMinPulseWidth(TaskHandle taskHandle); //*** Set/Get functions for DAQmx_AnlgEdge_RefTrig_DigFltr_TimebaseSrc *** int32 __CFUNC DAQmxGetAnlgEdgeRefTrigDigFltrTimebaseSrc(TaskHandle taskHandle, char *data, uInt32 bufferSize); int32 __CFUNC DAQmxSetAnlgEdgeRefTrigDigFltrTimebaseSrc(TaskHandle taskHandle, const char *data); int32 __CFUNC DAQmxResetAnlgEdgeRefTrigDigFltrTimebaseSrc(TaskHandle taskHandle); //*** Set/Get functions for DAQmx_AnlgEdge_RefTrig_DigFltr_TimebaseRate *** int32 __CFUNC DAQmxGetAnlgEdgeRefTrigDigFltrTimebaseRate(TaskHandle taskHandle, float64 *data); int32 __CFUNC DAQmxSetAnlgEdgeRefTrigDigFltrTimebaseRate(TaskHandle taskHandle, float64 data); int32 __CFUNC DAQmxResetAnlgEdgeRefTrigDigFltrTimebaseRate(TaskHandle taskHandle); //*** Set/Get functions for DAQmx_AnlgEdge_RefTrig_DigSync_Enable *** int32 __CFUNC DAQmxGetAnlgEdgeRefTrigDigSyncEnable(TaskHandle taskHandle, bool32 *data); int32 __CFUNC DAQmxSetAnlgEdgeRefTrigDigSyncEnable(TaskHandle taskHandle, bool32 data); int32 __CFUNC DAQmxResetAnlgEdgeRefTrigDigSyncEnable(TaskHandle taskHandle); //*** Set/Get functions for DAQmx_AnlgWin_RefTrig_Src *** int32 __CFUNC DAQmxGetAnlgWinRefTrigSrc(TaskHandle taskHandle, char *data, uInt32 bufferSize); int32 __CFUNC DAQmxSetAnlgWinRefTrigSrc(TaskHandle taskHandle, const char *data); int32 __CFUNC DAQmxResetAnlgWinRefTrigSrc(TaskHandle taskHandle); //*** Set/Get functions for DAQmx_AnlgWin_RefTrig_When *** // Uses value set WindowTriggerCondition1 int32 __CFUNC DAQmxGetAnlgWinRefTrigWhen(TaskHandle taskHandle, int32 *data); int32 __CFUNC DAQmxSetAnlgWinRefTrigWhen(TaskHandle taskHandle, int32 data); int32 __CFUNC DAQmxResetAnlgWinRefTrigWhen(TaskHandle taskHandle); //*** Set/Get functions for DAQmx_AnlgWin_RefTrig_Top *** int32 __CFUNC DAQmxGetAnlgWinRefTrigTop(TaskHandle taskHandle, float64 *data); int32 __CFUNC DAQmxSetAnlgWinRefTrigTop(TaskHandle taskHandle, float64 data); int32 __CFUNC DAQmxResetAnlgWinRefTrigTop(TaskHandle taskHandle); //*** Set/Get functions for DAQmx_AnlgWin_RefTrig_Btm *** int32 __CFUNC DAQmxGetAnlgWinRefTrigBtm(TaskHandle taskHandle, float64 *data); int32 __CFUNC DAQmxSetAnlgWinRefTrigBtm(TaskHandle taskHandle, float64 data); int32 __CFUNC DAQmxResetAnlgWinRefTrigBtm(TaskHandle taskHandle); //*** Set/Get functions for DAQmx_AnlgWin_RefTrig_Coupling *** // Uses value set Coupling2 int32 __CFUNC DAQmxGetAnlgWinRefTrigCoupling(TaskHandle taskHandle, int32 *data); int32 __CFUNC DAQmxSetAnlgWinRefTrigCoupling(TaskHandle taskHandle, int32 data); int32 __CFUNC DAQmxResetAnlgWinRefTrigCoupling(TaskHandle taskHandle); //*** Set/Get functions for DAQmx_AnlgWin_RefTrig_DigFltr_Enable *** int32 __CFUNC DAQmxGetAnlgWinRefTrigDigFltrEnable(TaskHandle taskHandle, bool32 *data); int32 __CFUNC DAQmxSetAnlgWinRefTrigDigFltrEnable(TaskHandle taskHandle, bool32 data); int32 __CFUNC DAQmxResetAnlgWinRefTrigDigFltrEnable(TaskHandle taskHandle); //*** Set/Get functions for DAQmx_AnlgWin_RefTrig_DigFltr_MinPulseWidth *** int32 __CFUNC DAQmxGetAnlgWinRefTrigDigFltrMinPulseWidth(TaskHandle taskHandle, float64 *data); int32 __CFUNC DAQmxSetAnlgWinRefTrigDigFltrMinPulseWidth(TaskHandle taskHandle, float64 data); int32 __CFUNC DAQmxResetAnlgWinRefTrigDigFltrMinPulseWidth(TaskHandle taskHandle); //*** Set/Get functions for DAQmx_AnlgWin_RefTrig_DigFltr_TimebaseSrc *** int32 __CFUNC DAQmxGetAnlgWinRefTrigDigFltrTimebaseSrc(TaskHandle taskHandle, char *data, uInt32 bufferSize); int32 __CFUNC DAQmxSetAnlgWinRefTrigDigFltrTimebaseSrc(TaskHandle taskHandle, const char *data); int32 __CFUNC DAQmxResetAnlgWinRefTrigDigFltrTimebaseSrc(TaskHandle taskHandle); //*** Set/Get functions for DAQmx_AnlgWin_RefTrig_DigFltr_TimebaseRate *** int32 __CFUNC DAQmxGetAnlgWinRefTrigDigFltrTimebaseRate(TaskHandle taskHandle, float64 *data); int32 __CFUNC DAQmxSetAnlgWinRefTrigDigFltrTimebaseRate(TaskHandle taskHandle, float64 data); int32 __CFUNC DAQmxResetAnlgWinRefTrigDigFltrTimebaseRate(TaskHandle taskHandle); //*** Set/Get functions for DAQmx_AnlgWin_RefTrig_DigSync_Enable *** int32 __CFUNC DAQmxGetAnlgWinRefTrigDigSyncEnable(TaskHandle taskHandle, bool32 *data); int32 __CFUNC DAQmxSetAnlgWinRefTrigDigSyncEnable(TaskHandle taskHandle, bool32 data); int32 __CFUNC DAQmxResetAnlgWinRefTrigDigSyncEnable(TaskHandle taskHandle); //*** Set/Get functions for DAQmx_RefTrig_AutoTrigEnable *** int32 __CFUNC DAQmxGetRefTrigAutoTrigEnable(TaskHandle taskHandle, bool32 *data); int32 __CFUNC DAQmxSetRefTrigAutoTrigEnable(TaskHandle taskHandle, bool32 data); int32 __CFUNC DAQmxResetRefTrigAutoTrigEnable(TaskHandle taskHandle); //*** Set/Get functions for DAQmx_RefTrig_AutoTriggered *** int32 __CFUNC DAQmxGetRefTrigAutoTriggered(TaskHandle taskHandle, bool32 *data); //*** Set/Get functions for DAQmx_RefTrig_Delay *** int32 __CFUNC DAQmxGetRefTrigDelay(TaskHandle taskHandle, float64 *data); int32 __CFUNC DAQmxSetRefTrigDelay(TaskHandle taskHandle, float64 data); int32 __CFUNC DAQmxResetRefTrigDelay(TaskHandle taskHandle); //*** Set/Get functions for DAQmx_AdvTrig_Type *** // Uses value set TriggerType5 int32 __CFUNC DAQmxGetAdvTrigType(TaskHandle taskHandle, int32 *data); int32 __CFUNC DAQmxSetAdvTrigType(TaskHandle taskHandle, int32 data); int32 __CFUNC DAQmxResetAdvTrigType(TaskHandle taskHandle); //*** Set/Get functions for DAQmx_DigEdge_AdvTrig_Src *** int32 __CFUNC DAQmxGetDigEdgeAdvTrigSrc(TaskHandle taskHandle, char *data, uInt32 bufferSize); int32 __CFUNC DAQmxSetDigEdgeAdvTrigSrc(TaskHandle taskHandle, const char *data); int32 __CFUNC DAQmxResetDigEdgeAdvTrigSrc(TaskHandle taskHandle); //*** Set/Get functions for DAQmx_DigEdge_AdvTrig_Edge *** // Uses value set Edge1 int32 __CFUNC DAQmxGetDigEdgeAdvTrigEdge(TaskHandle taskHandle, int32 *data); int32 __CFUNC DAQmxSetDigEdgeAdvTrigEdge(TaskHandle taskHandle, int32 data); int32 __CFUNC DAQmxResetDigEdgeAdvTrigEdge(TaskHandle taskHandle); //*** Set/Get functions for DAQmx_DigEdge_AdvTrig_DigFltr_Enable *** int32 __CFUNC DAQmxGetDigEdgeAdvTrigDigFltrEnable(TaskHandle taskHandle, bool32 *data); int32 __CFUNC DAQmxSetDigEdgeAdvTrigDigFltrEnable(TaskHandle taskHandle, bool32 data); int32 __CFUNC DAQmxResetDigEdgeAdvTrigDigFltrEnable(TaskHandle taskHandle); //*** Set/Get functions for DAQmx_HshkTrig_Type *** // Uses value set TriggerType9 int32 __CFUNC DAQmxGetHshkTrigType(TaskHandle taskHandle, int32 *data); int32 __CFUNC DAQmxSetHshkTrigType(TaskHandle taskHandle, int32 data); int32 __CFUNC DAQmxResetHshkTrigType(TaskHandle taskHandle); //*** Set/Get functions for DAQmx_Interlocked_HshkTrig_Src *** int32 __CFUNC DAQmxGetInterlockedHshkTrigSrc(TaskHandle taskHandle, char *data, uInt32 bufferSize); int32 __CFUNC DAQmxSetInterlockedHshkTrigSrc(TaskHandle taskHandle, const char *data); int32 __CFUNC DAQmxResetInterlockedHshkTrigSrc(TaskHandle taskHandle); //*** Set/Get functions for DAQmx_Interlocked_HshkTrig_AssertedLvl *** // Uses value set Level1 int32 __CFUNC DAQmxGetInterlockedHshkTrigAssertedLvl(TaskHandle taskHandle, int32 *data); int32 __CFUNC DAQmxSetInterlockedHshkTrigAssertedLvl(TaskHandle taskHandle, int32 data); int32 __CFUNC DAQmxResetInterlockedHshkTrigAssertedLvl(TaskHandle taskHandle); //*** Set/Get functions for DAQmx_PauseTrig_Type *** // Uses value set TriggerType6 int32 __CFUNC DAQmxGetPauseTrigType(TaskHandle taskHandle, int32 *data); int32 __CFUNC DAQmxSetPauseTrigType(TaskHandle taskHandle, int32 data); int32 __CFUNC DAQmxResetPauseTrigType(TaskHandle taskHandle); //*** Set/Get functions for DAQmx_PauseTrig_Term *** int32 __CFUNC DAQmxGetPauseTrigTerm(TaskHandle taskHandle, char *data, uInt32 bufferSize); //*** Set/Get functions for DAQmx_AnlgLvl_PauseTrig_Src *** int32 __CFUNC DAQmxGetAnlgLvlPauseTrigSrc(TaskHandle taskHandle, char *data, uInt32 bufferSize); int32 __CFUNC DAQmxSetAnlgLvlPauseTrigSrc(TaskHandle taskHandle, const char *data); int32 __CFUNC DAQmxResetAnlgLvlPauseTrigSrc(TaskHandle taskHandle); //*** Set/Get functions for DAQmx_AnlgLvl_PauseTrig_When *** // Uses value set ActiveLevel int32 __CFUNC DAQmxGetAnlgLvlPauseTrigWhen(TaskHandle taskHandle, int32 *data); int32 __CFUNC DAQmxSetAnlgLvlPauseTrigWhen(TaskHandle taskHandle, int32 data); int32 __CFUNC DAQmxResetAnlgLvlPauseTrigWhen(TaskHandle taskHandle); //*** Set/Get functions for DAQmx_AnlgLvl_PauseTrig_Lvl *** int32 __CFUNC DAQmxGetAnlgLvlPauseTrigLvl(TaskHandle taskHandle, float64 *data); int32 __CFUNC DAQmxSetAnlgLvlPauseTrigLvl(TaskHandle taskHandle, float64 data); int32 __CFUNC DAQmxResetAnlgLvlPauseTrigLvl(TaskHandle taskHandle); //*** Set/Get functions for DAQmx_AnlgLvl_PauseTrig_Hyst *** int32 __CFUNC DAQmxGetAnlgLvlPauseTrigHyst(TaskHandle taskHandle, float64 *data); int32 __CFUNC DAQmxSetAnlgLvlPauseTrigHyst(TaskHandle taskHandle, float64 data); int32 __CFUNC DAQmxResetAnlgLvlPauseTrigHyst(TaskHandle taskHandle); //*** Set/Get functions for DAQmx_AnlgLvl_PauseTrig_Coupling *** // Uses value set Coupling2 int32 __CFUNC DAQmxGetAnlgLvlPauseTrigCoupling(TaskHandle taskHandle, int32 *data); int32 __CFUNC DAQmxSetAnlgLvlPauseTrigCoupling(TaskHandle taskHandle, int32 data); int32 __CFUNC DAQmxResetAnlgLvlPauseTrigCoupling(TaskHandle taskHandle); //*** Set/Get functions for DAQmx_AnlgLvl_PauseTrig_DigFltr_Enable *** int32 __CFUNC DAQmxGetAnlgLvlPauseTrigDigFltrEnable(TaskHandle taskHandle, bool32 *data); int32 __CFUNC DAQmxSetAnlgLvlPauseTrigDigFltrEnable(TaskHandle taskHandle, bool32 data); int32 __CFUNC DAQmxResetAnlgLvlPauseTrigDigFltrEnable(TaskHandle taskHandle); //*** Set/Get functions for DAQmx_AnlgLvl_PauseTrig_DigFltr_MinPulseWidth *** int32 __CFUNC DAQmxGetAnlgLvlPauseTrigDigFltrMinPulseWidth(TaskHandle taskHandle, float64 *data); int32 __CFUNC DAQmxSetAnlgLvlPauseTrigDigFltrMinPulseWidth(TaskHandle taskHandle, float64 data); int32 __CFUNC DAQmxResetAnlgLvlPauseTrigDigFltrMinPulseWidth(TaskHandle taskHandle); //*** Set/Get functions for DAQmx_AnlgLvl_PauseTrig_DigFltr_TimebaseSrc *** int32 __CFUNC DAQmxGetAnlgLvlPauseTrigDigFltrTimebaseSrc(TaskHandle taskHandle, char *data, uInt32 bufferSize); int32 __CFUNC DAQmxSetAnlgLvlPauseTrigDigFltrTimebaseSrc(TaskHandle taskHandle, const char *data); int32 __CFUNC DAQmxResetAnlgLvlPauseTrigDigFltrTimebaseSrc(TaskHandle taskHandle); //*** Set/Get functions for DAQmx_AnlgLvl_PauseTrig_DigFltr_TimebaseRate *** int32 __CFUNC DAQmxGetAnlgLvlPauseTrigDigFltrTimebaseRate(TaskHandle taskHandle, float64 *data); int32 __CFUNC DAQmxSetAnlgLvlPauseTrigDigFltrTimebaseRate(TaskHandle taskHandle, float64 data); int32 __CFUNC DAQmxResetAnlgLvlPauseTrigDigFltrTimebaseRate(TaskHandle taskHandle); //*** Set/Get functions for DAQmx_AnlgLvl_PauseTrig_DigSync_Enable *** int32 __CFUNC DAQmxGetAnlgLvlPauseTrigDigSyncEnable(TaskHandle taskHandle, bool32 *data); int32 __CFUNC DAQmxSetAnlgLvlPauseTrigDigSyncEnable(TaskHandle taskHandle, bool32 data); int32 __CFUNC DAQmxResetAnlgLvlPauseTrigDigSyncEnable(TaskHandle taskHandle); //*** Set/Get functions for DAQmx_AnlgWin_PauseTrig_Src *** int32 __CFUNC DAQmxGetAnlgWinPauseTrigSrc(TaskHandle taskHandle, char *data, uInt32 bufferSize); int32 __CFUNC DAQmxSetAnlgWinPauseTrigSrc(TaskHandle taskHandle, const char *data); int32 __CFUNC DAQmxResetAnlgWinPauseTrigSrc(TaskHandle taskHandle); //*** Set/Get functions for DAQmx_AnlgWin_PauseTrig_When *** // Uses value set WindowTriggerCondition2 int32 __CFUNC DAQmxGetAnlgWinPauseTrigWhen(TaskHandle taskHandle, int32 *data); int32 __CFUNC DAQmxSetAnlgWinPauseTrigWhen(TaskHandle taskHandle, int32 data); int32 __CFUNC DAQmxResetAnlgWinPauseTrigWhen(TaskHandle taskHandle); //*** Set/Get functions for DAQmx_AnlgWin_PauseTrig_Top *** int32 __CFUNC DAQmxGetAnlgWinPauseTrigTop(TaskHandle taskHandle, float64 *data); int32 __CFUNC DAQmxSetAnlgWinPauseTrigTop(TaskHandle taskHandle, float64 data); int32 __CFUNC DAQmxResetAnlgWinPauseTrigTop(TaskHandle taskHandle); //*** Set/Get functions for DAQmx_AnlgWin_PauseTrig_Btm *** int32 __CFUNC DAQmxGetAnlgWinPauseTrigBtm(TaskHandle taskHandle, float64 *data); int32 __CFUNC DAQmxSetAnlgWinPauseTrigBtm(TaskHandle taskHandle, float64 data); int32 __CFUNC DAQmxResetAnlgWinPauseTrigBtm(TaskHandle taskHandle); //*** Set/Get functions for DAQmx_AnlgWin_PauseTrig_Coupling *** // Uses value set Coupling2 int32 __CFUNC DAQmxGetAnlgWinPauseTrigCoupling(TaskHandle taskHandle, int32 *data); int32 __CFUNC DAQmxSetAnlgWinPauseTrigCoupling(TaskHandle taskHandle, int32 data); int32 __CFUNC DAQmxResetAnlgWinPauseTrigCoupling(TaskHandle taskHandle); //*** Set/Get functions for DAQmx_AnlgWin_PauseTrig_DigFltr_Enable *** int32 __CFUNC DAQmxGetAnlgWinPauseTrigDigFltrEnable(TaskHandle taskHandle, bool32 *data); int32 __CFUNC DAQmxSetAnlgWinPauseTrigDigFltrEnable(TaskHandle taskHandle, bool32 data); int32 __CFUNC DAQmxResetAnlgWinPauseTrigDigFltrEnable(TaskHandle taskHandle); //*** Set/Get functions for DAQmx_AnlgWin_PauseTrig_DigFltr_MinPulseWidth *** int32 __CFUNC DAQmxGetAnlgWinPauseTrigDigFltrMinPulseWidth(TaskHandle taskHandle, float64 *data); int32 __CFUNC DAQmxSetAnlgWinPauseTrigDigFltrMinPulseWidth(TaskHandle taskHandle, float64 data); int32 __CFUNC DAQmxResetAnlgWinPauseTrigDigFltrMinPulseWidth(TaskHandle taskHandle); //*** Set/Get functions for DAQmx_AnlgWin_PauseTrig_DigFltr_TimebaseSrc *** int32 __CFUNC DAQmxGetAnlgWinPauseTrigDigFltrTimebaseSrc(TaskHandle taskHandle, char *data, uInt32 bufferSize); int32 __CFUNC DAQmxSetAnlgWinPauseTrigDigFltrTimebaseSrc(TaskHandle taskHandle, const char *data); int32 __CFUNC DAQmxResetAnlgWinPauseTrigDigFltrTimebaseSrc(TaskHandle taskHandle); //*** Set/Get functions for DAQmx_AnlgWin_PauseTrig_DigFltr_TimebaseRate *** int32 __CFUNC DAQmxGetAnlgWinPauseTrigDigFltrTimebaseRate(TaskHandle taskHandle, float64 *data); int32 __CFUNC DAQmxSetAnlgWinPauseTrigDigFltrTimebaseRate(TaskHandle taskHandle, float64 data); int32 __CFUNC DAQmxResetAnlgWinPauseTrigDigFltrTimebaseRate(TaskHandle taskHandle); //*** Set/Get functions for DAQmx_AnlgWin_PauseTrig_DigSync_Enable *** int32 __CFUNC DAQmxGetAnlgWinPauseTrigDigSyncEnable(TaskHandle taskHandle, bool32 *data); int32 __CFUNC DAQmxSetAnlgWinPauseTrigDigSyncEnable(TaskHandle taskHandle, bool32 data); int32 __CFUNC DAQmxResetAnlgWinPauseTrigDigSyncEnable(TaskHandle taskHandle); //*** Set/Get functions for DAQmx_DigLvl_PauseTrig_Src *** int32 __CFUNC DAQmxGetDigLvlPauseTrigSrc(TaskHandle taskHandle, char *data, uInt32 bufferSize); int32 __CFUNC DAQmxSetDigLvlPauseTrigSrc(TaskHandle taskHandle, const char *data); int32 __CFUNC DAQmxResetDigLvlPauseTrigSrc(TaskHandle taskHandle); //*** Set/Get functions for DAQmx_DigLvl_PauseTrig_When *** // Uses value set Level1 int32 __CFUNC DAQmxGetDigLvlPauseTrigWhen(TaskHandle taskHandle, int32 *data); int32 __CFUNC DAQmxSetDigLvlPauseTrigWhen(TaskHandle taskHandle, int32 data); int32 __CFUNC DAQmxResetDigLvlPauseTrigWhen(TaskHandle taskHandle); //*** Set/Get functions for DAQmx_DigLvl_PauseTrig_DigFltr_Enable *** int32 __CFUNC DAQmxGetDigLvlPauseTrigDigFltrEnable(TaskHandle taskHandle, bool32 *data); int32 __CFUNC DAQmxSetDigLvlPauseTrigDigFltrEnable(TaskHandle taskHandle, bool32 data); int32 __CFUNC DAQmxResetDigLvlPauseTrigDigFltrEnable(TaskHandle taskHandle); //*** Set/Get functions for DAQmx_DigLvl_PauseTrig_DigFltr_MinPulseWidth *** int32 __CFUNC DAQmxGetDigLvlPauseTrigDigFltrMinPulseWidth(TaskHandle taskHandle, float64 *data); int32 __CFUNC DAQmxSetDigLvlPauseTrigDigFltrMinPulseWidth(TaskHandle taskHandle, float64 data); int32 __CFUNC DAQmxResetDigLvlPauseTrigDigFltrMinPulseWidth(TaskHandle taskHandle); //*** Set/Get functions for DAQmx_DigLvl_PauseTrig_DigFltr_TimebaseSrc *** int32 __CFUNC DAQmxGetDigLvlPauseTrigDigFltrTimebaseSrc(TaskHandle taskHandle, char *data, uInt32 bufferSize); int32 __CFUNC DAQmxSetDigLvlPauseTrigDigFltrTimebaseSrc(TaskHandle taskHandle, const char *data); int32 __CFUNC DAQmxResetDigLvlPauseTrigDigFltrTimebaseSrc(TaskHandle taskHandle); //*** Set/Get functions for DAQmx_DigLvl_PauseTrig_DigFltr_TimebaseRate *** int32 __CFUNC DAQmxGetDigLvlPauseTrigDigFltrTimebaseRate(TaskHandle taskHandle, float64 *data); int32 __CFUNC DAQmxSetDigLvlPauseTrigDigFltrTimebaseRate(TaskHandle taskHandle, float64 data); int32 __CFUNC DAQmxResetDigLvlPauseTrigDigFltrTimebaseRate(TaskHandle taskHandle); //*** Set/Get functions for DAQmx_DigLvl_PauseTrig_DigSync_Enable *** int32 __CFUNC DAQmxGetDigLvlPauseTrigDigSyncEnable(TaskHandle taskHandle, bool32 *data); int32 __CFUNC DAQmxSetDigLvlPauseTrigDigSyncEnable(TaskHandle taskHandle, bool32 data); int32 __CFUNC DAQmxResetDigLvlPauseTrigDigSyncEnable(TaskHandle taskHandle); //*** Set/Get functions for DAQmx_DigPattern_PauseTrig_Src *** int32 __CFUNC DAQmxGetDigPatternPauseTrigSrc(TaskHandle taskHandle, char *data, uInt32 bufferSize); int32 __CFUNC DAQmxSetDigPatternPauseTrigSrc(TaskHandle taskHandle, const char *data); int32 __CFUNC DAQmxResetDigPatternPauseTrigSrc(TaskHandle taskHandle); //*** Set/Get functions for DAQmx_DigPattern_PauseTrig_Pattern *** int32 __CFUNC DAQmxGetDigPatternPauseTrigPattern(TaskHandle taskHandle, char *data, uInt32 bufferSize); int32 __CFUNC DAQmxSetDigPatternPauseTrigPattern(TaskHandle taskHandle, const char *data); int32 __CFUNC DAQmxResetDigPatternPauseTrigPattern(TaskHandle taskHandle); //*** Set/Get functions for DAQmx_DigPattern_PauseTrig_When *** // Uses value set DigitalPatternCondition1 int32 __CFUNC DAQmxGetDigPatternPauseTrigWhen(TaskHandle taskHandle, int32 *data); int32 __CFUNC DAQmxSetDigPatternPauseTrigWhen(TaskHandle taskHandle, int32 data); int32 __CFUNC DAQmxResetDigPatternPauseTrigWhen(TaskHandle taskHandle); //*** Set/Get functions for DAQmx_ArmStartTrig_Type *** // Uses value set TriggerType4 int32 __CFUNC DAQmxGetArmStartTrigType(TaskHandle taskHandle, int32 *data); int32 __CFUNC DAQmxSetArmStartTrigType(TaskHandle taskHandle, int32 data); int32 __CFUNC DAQmxResetArmStartTrigType(TaskHandle taskHandle); //*** Set/Get functions for DAQmx_ArmStart_Term *** int32 __CFUNC DAQmxGetArmStartTerm(TaskHandle taskHandle, char *data, uInt32 bufferSize); //*** Set/Get functions for DAQmx_DigEdge_ArmStartTrig_Src *** int32 __CFUNC DAQmxGetDigEdgeArmStartTrigSrc(TaskHandle taskHandle, char *data, uInt32 bufferSize); int32 __CFUNC DAQmxSetDigEdgeArmStartTrigSrc(TaskHandle taskHandle, const char *data); int32 __CFUNC DAQmxResetDigEdgeArmStartTrigSrc(TaskHandle taskHandle); //*** Set/Get functions for DAQmx_DigEdge_ArmStartTrig_Edge *** // Uses value set Edge1 int32 __CFUNC DAQmxGetDigEdgeArmStartTrigEdge(TaskHandle taskHandle, int32 *data); int32 __CFUNC DAQmxSetDigEdgeArmStartTrigEdge(TaskHandle taskHandle, int32 data); int32 __CFUNC DAQmxResetDigEdgeArmStartTrigEdge(TaskHandle taskHandle); //*** Set/Get functions for DAQmx_DigEdge_ArmStartTrig_DigFltr_Enable *** int32 __CFUNC DAQmxGetDigEdgeArmStartTrigDigFltrEnable(TaskHandle taskHandle, bool32 *data); int32 __CFUNC DAQmxSetDigEdgeArmStartTrigDigFltrEnable(TaskHandle taskHandle, bool32 data); int32 __CFUNC DAQmxResetDigEdgeArmStartTrigDigFltrEnable(TaskHandle taskHandle); //*** Set/Get functions for DAQmx_DigEdge_ArmStartTrig_DigFltr_MinPulseWidth *** int32 __CFUNC DAQmxGetDigEdgeArmStartTrigDigFltrMinPulseWidth(TaskHandle taskHandle, float64 *data); int32 __CFUNC DAQmxSetDigEdgeArmStartTrigDigFltrMinPulseWidth(TaskHandle taskHandle, float64 data); int32 __CFUNC DAQmxResetDigEdgeArmStartTrigDigFltrMinPulseWidth(TaskHandle taskHandle); //*** Set/Get functions for DAQmx_DigEdge_ArmStartTrig_DigFltr_TimebaseSrc *** int32 __CFUNC DAQmxGetDigEdgeArmStartTrigDigFltrTimebaseSrc(TaskHandle taskHandle, char *data, uInt32 bufferSize); int32 __CFUNC DAQmxSetDigEdgeArmStartTrigDigFltrTimebaseSrc(TaskHandle taskHandle, const char *data); int32 __CFUNC DAQmxResetDigEdgeArmStartTrigDigFltrTimebaseSrc(TaskHandle taskHandle); //*** Set/Get functions for DAQmx_DigEdge_ArmStartTrig_DigFltr_TimebaseRate *** int32 __CFUNC DAQmxGetDigEdgeArmStartTrigDigFltrTimebaseRate(TaskHandle taskHandle, float64 *data); int32 __CFUNC DAQmxSetDigEdgeArmStartTrigDigFltrTimebaseRate(TaskHandle taskHandle, float64 data); int32 __CFUNC DAQmxResetDigEdgeArmStartTrigDigFltrTimebaseRate(TaskHandle taskHandle); //*** Set/Get functions for DAQmx_DigEdge_ArmStartTrig_DigSync_Enable *** int32 __CFUNC DAQmxGetDigEdgeArmStartTrigDigSyncEnable(TaskHandle taskHandle, bool32 *data); int32 __CFUNC DAQmxSetDigEdgeArmStartTrigDigSyncEnable(TaskHandle taskHandle, bool32 data); int32 __CFUNC DAQmxResetDigEdgeArmStartTrigDigSyncEnable(TaskHandle taskHandle); //*** Set/Get functions for DAQmx_Trigger_SyncType *** // Uses value set SyncType int32 __CFUNC DAQmxGetTriggerSyncType(TaskHandle taskHandle, int32 *data); int32 __CFUNC DAQmxSetTriggerSyncType(TaskHandle taskHandle, int32 data); int32 __CFUNC DAQmxResetTriggerSyncType(TaskHandle taskHandle); //********** Watchdog ********** //*** Set/Get functions for DAQmx_Watchdog_Timeout *** int32 __CFUNC DAQmxGetWatchdogTimeout(TaskHandle taskHandle, float64 *data); int32 __CFUNC DAQmxSetWatchdogTimeout(TaskHandle taskHandle, float64 data); int32 __CFUNC DAQmxResetWatchdogTimeout(TaskHandle taskHandle); //*** Set/Get functions for DAQmx_WatchdogExpirTrig_Type *** // Uses value set TriggerType4 int32 __CFUNC DAQmxGetWatchdogExpirTrigType(TaskHandle taskHandle, int32 *data); int32 __CFUNC DAQmxSetWatchdogExpirTrigType(TaskHandle taskHandle, int32 data); int32 __CFUNC DAQmxResetWatchdogExpirTrigType(TaskHandle taskHandle); //*** Set/Get functions for DAQmx_DigEdge_WatchdogExpirTrig_Src *** int32 __CFUNC DAQmxGetDigEdgeWatchdogExpirTrigSrc(TaskHandle taskHandle, char *data, uInt32 bufferSize); int32 __CFUNC DAQmxSetDigEdgeWatchdogExpirTrigSrc(TaskHandle taskHandle, const char *data); int32 __CFUNC DAQmxResetDigEdgeWatchdogExpirTrigSrc(TaskHandle taskHandle); //*** Set/Get functions for DAQmx_DigEdge_WatchdogExpirTrig_Edge *** // Uses value set Edge1 int32 __CFUNC DAQmxGetDigEdgeWatchdogExpirTrigEdge(TaskHandle taskHandle, int32 *data); int32 __CFUNC DAQmxSetDigEdgeWatchdogExpirTrigEdge(TaskHandle taskHandle, int32 data); int32 __CFUNC DAQmxResetDigEdgeWatchdogExpirTrigEdge(TaskHandle taskHandle); //*** Set/Get functions for DAQmx_Watchdog_DO_ExpirState *** // Uses value set DigitalLineState int32 __CFUNC DAQmxGetWatchdogDOExpirState(TaskHandle taskHandle, const char lines[], int32 *data); int32 __CFUNC DAQmxSetWatchdogDOExpirState(TaskHandle taskHandle, const char lines[], int32 data); int32 __CFUNC DAQmxResetWatchdogDOExpirState(TaskHandle taskHandle, const char lines[]); //*** Set/Get functions for DAQmx_Watchdog_HasExpired *** int32 __CFUNC DAQmxGetWatchdogHasExpired(TaskHandle taskHandle, bool32 *data); //********** Write ********** //*** Set/Get functions for DAQmx_Write_RelativeTo *** // Uses value set WriteRelativeTo int32 __CFUNC DAQmxGetWriteRelativeTo(TaskHandle taskHandle, int32 *data); int32 __CFUNC DAQmxSetWriteRelativeTo(TaskHandle taskHandle, int32 data); int32 __CFUNC DAQmxResetWriteRelativeTo(TaskHandle taskHandle); //*** Set/Get functions for DAQmx_Write_Offset *** int32 __CFUNC DAQmxGetWriteOffset(TaskHandle taskHandle, int32 *data); int32 __CFUNC DAQmxSetWriteOffset(TaskHandle taskHandle, int32 data); int32 __CFUNC DAQmxResetWriteOffset(TaskHandle taskHandle); //*** Set/Get functions for DAQmx_Write_RegenMode *** // Uses value set RegenerationMode1 int32 __CFUNC DAQmxGetWriteRegenMode(TaskHandle taskHandle, int32 *data); int32 __CFUNC DAQmxSetWriteRegenMode(TaskHandle taskHandle, int32 data); int32 __CFUNC DAQmxResetWriteRegenMode(TaskHandle taskHandle); //*** Set/Get functions for DAQmx_Write_CurrWritePos *** int32 __CFUNC DAQmxGetWriteCurrWritePos(TaskHandle taskHandle, uInt64 *data); //*** Set/Get functions for DAQmx_Write_OvercurrentChansExist *** int32 __CFUNC DAQmxGetWriteOvercurrentChansExist(TaskHandle taskHandle, bool32 *data); //*** Set/Get functions for DAQmx_Write_OvercurrentChans *** int32 __CFUNC DAQmxGetWriteOvercurrentChans(TaskHandle taskHandle, char *data, uInt32 bufferSize); //*** Set/Get functions for DAQmx_Write_OvertemperatureChansExist *** int32 __CFUNC DAQmxGetWriteOvertemperatureChansExist(TaskHandle taskHandle, bool32 *data); //*** Set/Get functions for DAQmx_Write_OpenCurrentLoopChansExist *** int32 __CFUNC DAQmxGetWriteOpenCurrentLoopChansExist(TaskHandle taskHandle, bool32 *data); //*** Set/Get functions for DAQmx_Write_OpenCurrentLoopChans *** int32 __CFUNC DAQmxGetWriteOpenCurrentLoopChans(TaskHandle taskHandle, char *data, uInt32 bufferSize); //*** Set/Get functions for DAQmx_Write_PowerSupplyFaultChansExist *** int32 __CFUNC DAQmxGetWritePowerSupplyFaultChansExist(TaskHandle taskHandle, bool32 *data); //*** Set/Get functions for DAQmx_Write_PowerSupplyFaultChans *** int32 __CFUNC DAQmxGetWritePowerSupplyFaultChans(TaskHandle taskHandle, char *data, uInt32 bufferSize); //*** Set/Get functions for DAQmx_Write_SpaceAvail *** int32 __CFUNC DAQmxGetWriteSpaceAvail(TaskHandle taskHandle, uInt32 *data); //*** Set/Get functions for DAQmx_Write_TotalSampPerChanGenerated *** int32 __CFUNC DAQmxGetWriteTotalSampPerChanGenerated(TaskHandle taskHandle, uInt64 *data); //*** Set/Get functions for DAQmx_Write_RawDataWidth *** int32 __CFUNC DAQmxGetWriteRawDataWidth(TaskHandle taskHandle, uInt32 *data); //*** Set/Get functions for DAQmx_Write_NumChans *** int32 __CFUNC DAQmxGetWriteNumChans(TaskHandle taskHandle, uInt32 *data); //*** Set/Get functions for DAQmx_Write_WaitMode *** // Uses value set WaitMode2 int32 __CFUNC DAQmxGetWriteWaitMode(TaskHandle taskHandle, int32 *data); int32 __CFUNC DAQmxSetWriteWaitMode(TaskHandle taskHandle, int32 data); int32 __CFUNC DAQmxResetWriteWaitMode(TaskHandle taskHandle); //*** Set/Get functions for DAQmx_Write_SleepTime *** int32 __CFUNC DAQmxGetWriteSleepTime(TaskHandle taskHandle, float64 *data); int32 __CFUNC DAQmxSetWriteSleepTime(TaskHandle taskHandle, float64 data); int32 __CFUNC DAQmxResetWriteSleepTime(TaskHandle taskHandle); //*** Set/Get functions for DAQmx_Write_NextWriteIsLast *** int32 __CFUNC DAQmxGetWriteNextWriteIsLast(TaskHandle taskHandle, bool32 *data); int32 __CFUNC DAQmxSetWriteNextWriteIsLast(TaskHandle taskHandle, bool32 data); int32 __CFUNC DAQmxResetWriteNextWriteIsLast(TaskHandle taskHandle); //*** Set/Get functions for DAQmx_Write_DigitalLines_BytesPerChan *** int32 __CFUNC DAQmxGetWriteDigitalLinesBytesPerChan(TaskHandle taskHandle, uInt32 *data); //********** Physical Channel ********** //*** Set/Get functions for DAQmx_PhysicalChan_AI_TermCfgs *** // Uses bits from enum TerminalConfigurationBits int32 __CFUNC DAQmxGetPhysicalChanAITermCfgs(const char physicalChannel[], int32 *data); //*** Set/Get functions for DAQmx_PhysicalChan_AO_TermCfgs *** // Uses bits from enum TerminalConfigurationBits int32 __CFUNC DAQmxGetPhysicalChanAOTermCfgs(const char physicalChannel[], int32 *data); //*** Set/Get functions for DAQmx_PhysicalChan_AO_ManualControlEnable *** int32 __CFUNC DAQmxGetPhysicalChanAOManualControlEnable(const char physicalChannel[], bool32 *data); int32 __CFUNC DAQmxSetPhysicalChanAOManualControlEnable(const char physicalChannel[], bool32 data); int32 __CFUNC DAQmxResetPhysicalChanAOManualControlEnable(const char physicalChannel[]); //*** Set/Get functions for DAQmx_PhysicalChan_AO_ManualControl_ShortDetected *** int32 __CFUNC DAQmxGetPhysicalChanAOManualControlShortDetected(const char physicalChannel[], bool32 *data); //*** Set/Get functions for DAQmx_PhysicalChan_AO_ManualControlAmplitude *** int32 __CFUNC DAQmxGetPhysicalChanAOManualControlAmplitude(const char physicalChannel[], float64 *data); //*** Set/Get functions for DAQmx_PhysicalChan_AO_ManualControlFreq *** int32 __CFUNC DAQmxGetPhysicalChanAOManualControlFreq(const char physicalChannel[], float64 *data); //*** Set/Get functions for DAQmx_PhysicalChan_DI_PortWidth *** int32 __CFUNC DAQmxGetPhysicalChanDIPortWidth(const char physicalChannel[], uInt32 *data); //*** Set/Get functions for DAQmx_PhysicalChan_DI_SampClkSupported *** int32 __CFUNC DAQmxGetPhysicalChanDISampClkSupported(const char physicalChannel[], bool32 *data); //*** Set/Get functions for DAQmx_PhysicalChan_DI_ChangeDetectSupported *** int32 __CFUNC DAQmxGetPhysicalChanDIChangeDetectSupported(const char physicalChannel[], bool32 *data); //*** Set/Get functions for DAQmx_PhysicalChan_DO_PortWidth *** int32 __CFUNC DAQmxGetPhysicalChanDOPortWidth(const char physicalChannel[], uInt32 *data); //*** Set/Get functions for DAQmx_PhysicalChan_DO_SampClkSupported *** int32 __CFUNC DAQmxGetPhysicalChanDOSampClkSupported(const char physicalChannel[], bool32 *data); //*** Set/Get functions for DAQmx_PhysicalChan_TEDS_MfgID *** int32 __CFUNC DAQmxGetPhysicalChanTEDSMfgID(const char physicalChannel[], uInt32 *data); //*** Set/Get functions for DAQmx_PhysicalChan_TEDS_ModelNum *** int32 __CFUNC DAQmxGetPhysicalChanTEDSModelNum(const char physicalChannel[], uInt32 *data); //*** Set/Get functions for DAQmx_PhysicalChan_TEDS_SerialNum *** int32 __CFUNC DAQmxGetPhysicalChanTEDSSerialNum(const char physicalChannel[], uInt32 *data); //*** Set/Get functions for DAQmx_PhysicalChan_TEDS_VersionNum *** int32 __CFUNC DAQmxGetPhysicalChanTEDSVersionNum(const char physicalChannel[], uInt32 *data); //*** Set/Get functions for DAQmx_PhysicalChan_TEDS_VersionLetter *** int32 __CFUNC DAQmxGetPhysicalChanTEDSVersionLetter(const char physicalChannel[], char *data, uInt32 bufferSize); //*** Set/Get functions for DAQmx_PhysicalChan_TEDS_BitStream *** int32 __CFUNC DAQmxGetPhysicalChanTEDSBitStream(const char physicalChannel[], uInt8 *data, uInt32 arraySizeInElements); //*** Set/Get functions for DAQmx_PhysicalChan_TEDS_TemplateIDs *** int32 __CFUNC DAQmxGetPhysicalChanTEDSTemplateIDs(const char physicalChannel[], uInt32 *data, uInt32 arraySizeInElements); //********** Persisted Task ********** //*** Set/Get functions for DAQmx_PersistedTask_Author *** int32 __CFUNC DAQmxGetPersistedTaskAuthor(const char taskName[], char *data, uInt32 bufferSize); //*** Set/Get functions for DAQmx_PersistedTask_AllowInteractiveEditing *** int32 __CFUNC DAQmxGetPersistedTaskAllowInteractiveEditing(const char taskName[], bool32 *data); //*** Set/Get functions for DAQmx_PersistedTask_AllowInteractiveDeletion *** int32 __CFUNC DAQmxGetPersistedTaskAllowInteractiveDeletion(const char taskName[], bool32 *data); //********** Persisted Channel ********** //*** Set/Get functions for DAQmx_PersistedChan_Author *** int32 __CFUNC DAQmxGetPersistedChanAuthor(const char channel[], char *data, uInt32 bufferSize); //*** Set/Get functions for DAQmx_PersistedChan_AllowInteractiveEditing *** int32 __CFUNC DAQmxGetPersistedChanAllowInteractiveEditing(const char channel[], bool32 *data); //*** Set/Get functions for DAQmx_PersistedChan_AllowInteractiveDeletion *** int32 __CFUNC DAQmxGetPersistedChanAllowInteractiveDeletion(const char channel[], bool32 *data); //********** Persisted Scale ********** //*** Set/Get functions for DAQmx_PersistedScale_Author *** int32 __CFUNC DAQmxGetPersistedScaleAuthor(const char scaleName[], char *data, uInt32 bufferSize); //*** Set/Get functions for DAQmx_PersistedScale_AllowInteractiveEditing *** int32 __CFUNC DAQmxGetPersistedScaleAllowInteractiveEditing(const char scaleName[], bool32 *data); //*** Set/Get functions for DAQmx_PersistedScale_AllowInteractiveDeletion *** int32 __CFUNC DAQmxGetPersistedScaleAllowInteractiveDeletion(const char scaleName[], bool32 *data); //*** Set/Get functions for DAQmx_SampClk_TimingResponseMode *** // Uses value set TimingResponseMode // Obsolete - always returns 0 int32 __CFUNC DAQmxGetSampClkTimingResponseMode(TaskHandle taskHandle, int32 *data); int32 __CFUNC DAQmxSetSampClkTimingResponseMode(TaskHandle taskHandle, int32 data); int32 __CFUNC DAQmxResetSampClkTimingResponseMode(TaskHandle taskHandle); /****************************************************************************** *** NI-DAQmx Error Codes ***************************************************** ******************************************************************************/ #define DAQmxSuccess (0) #define DAQmxFailed(error) ((error)<0) // Error and Warning Codes #define DAQmxErrorCOCannotKeepUpInHWTimedSinglePoint (-209805) #define DAQmxErrorWaitForNextSampClkDetected3OrMoreSampClks (-209803) #define DAQmxErrorWaitForNextSampClkDetectedMissedSampClk (-209802) #define DAQmxErrorWriteNotCompleteBeforeSampClk (-209801) #define DAQmxErrorReadNotCompleteBeforeSampClk (-209800) #define DAQmxErrorChangeDetectionStoppedToPreventDeviceHang (-201397) #define DAQmxErrorFilterDelayRemovalNotPosssibleWithAnalogTrigger (-201396) #define DAQmxErrorNonbufferedOrNoChannels (-201395) #define DAQmxErrorTristateLogicLevelNotSpecdForEntirePort (-201394) #define DAQmxErrorTristateLogicLevelNotSupportedOnDigOutChan (-201393) #define DAQmxErrorTristateLogicLevelNotSupported (-201392) #define DAQmxErrorIncompleteGainAndCouplingCalAdjustment (-201391) #define DAQmxErrorNetworkStatusConnectionLost (-201390) #define DAQmxErrorModuleChangeDuringConnectionLoss (-201389) #define DAQmxErrorNetworkDeviceNotReservedByHost (-201388) #define DAQmxErrorDuplicateCalibrationAdjustmentInput (-201387) #define DAQmxErrorSelfCalFailedContactTechSupport (-201386) #define DAQmxErrorSelfCalFailedToConverge (-201385) #define DAQmxErrorUnsupportedSimulatedModuleForSimulatedChassis (-201384) #define DAQmxErrorLoggingWriteSizeTooBig (-201383) #define DAQmxErrorLoggingWriteSizeNotDivisible (-201382) #define DAQmxErrorMyDAQPowerRailFault (-201381) #define DAQmxErrorDeviceDoesNotSupportThisOperation (-201380) #define DAQmxErrorNetworkDevicesNotSupportedOnThisPlatform (-201379) #define DAQmxErrorUnknownFirmwareVersion (-201378) #define DAQmxErrorFirmwareIsUpdating (-201377) #define DAQmxErrorAccessoryEEPROMIsCorrupt (-201376) #define DAQmxErrorThrmcplLeadOffsetNullingCalNotSupported (-201375) #define DAQmxErrorSelfCalFailedTryExtCal (-201374) #define DAQmxErrorOutputP2PNotSupportedWithMultithreadedScripts (-201373) #define DAQmxErrorThrmcplCalibrationChannelsOpen (-201372) #define DAQmxErrorMDNSServiceInstanceAlreadyInUse (-201371) #define DAQmxErrorIPAddressAlreadyInUse (-201370) #define DAQmxErrorHostnameAlreadyInUse (-201369) #define DAQmxErrorInvalidNumberOfCalAdjustmentPoints (-201368) #define DAQmxErrorFilterOrDigitalSyncInternalSignal (-201367) #define DAQmxErrorBadDDSSource (-201366) #define DAQmxErrorOnboardRegenWithMoreThan16Channels (-201365) #define DAQmxErrorTriggerTooFast (-201364) #define DAQmxErrorMinMaxOutsideTableRange (-201363) #define DAQmxErrorChannelExpansionWithInvalidAnalogTriggerDevice (-201362) #define DAQmxErrorSyncPulseSrcInvalidForTask (-201361) #define DAQmxErrorInvalidCarrierSlotNumberSpecd (-201360) #define DAQmxErrorCardsMustBeInSameCarrier (-201359) #define DAQmxErrorCardDevCarrierSimMustMatch (-201358) #define DAQmxErrorDevMustHaveAtLeastOneCard (-201357) #define DAQmxErrorCardTopologyError (-201356) #define DAQmxErrorExceededCarrierPowerLimit (-201355) #define DAQmxErrorCardsIncompatible (-201354) #define DAQmxErrorAnalogBusNotValid (-201353) #define DAQmxErrorReservationConflict (-201352) #define DAQmxErrorMemMappedOnDemandNotSupported (-201351) #define DAQmxErrorChannelExpansionWithDifferentTriggerDevices (-201349) #define DAQmxErrorCounterSyncAndRetriggered (-201348) #define DAQmxErrorNoExternalSyncPulseDetected (-201347) #define DAQmxErrorSlaveAndNoExternalSyncPulse (-201346) #define DAQmxErrorCustomTimingRequiredForAttribute (-201345) #define DAQmxErrorCustomTimingModeNotSet (-201344) #define DAQmxErrorAccessoryPowerTripped (-201343) #define DAQmxErrorUnsupportedAccessory (-201342) #define DAQmxErrorInvalidAccessoryChange (-201341) #define DAQmxErrorFirmwareRequiresUpgrade (-201340) #define DAQmxErrorFastExternalTimebaseNotSupportedForDevice (-201339) #define DAQmxErrorInvalidShuntLocationForCalibration (-201338) #define DAQmxErrorDeviceNameTooLong (-201337) #define DAQmxErrorBridgeScalesUnsupported (-201336) #define DAQmxErrorMismatchedElecPhysValues (-201335) #define DAQmxErrorLinearRequiresUniquePoints (-201334) #define DAQmxErrorMissingRequiredScalingParameter (-201333) #define DAQmxErrorLoggingNotSupportOnOutputTasks (-201332) #define DAQmxErrorMemoryMappedHardwareTimedNonBufferedUnsupported (-201331) #define DAQmxErrorCannotUpdatePulseTrainWithAutoIncrementEnabled (-201330) #define DAQmxErrorHWTimedSinglePointAndDataXferNotDMA (-201329) #define DAQmxErrorSCCSecondStageEmpty (-201328) #define DAQmxErrorSCCInvalidDualStageCombo (-201327) #define DAQmxErrorSCCInvalidSecondStage (-201326) #define DAQmxErrorSCCInvalidFirstStage (-201325) #define DAQmxErrorCounterMultipleSampleClockedChannels (-201324) #define DAQmxError2CounterMeasurementModeAndSampleClocked (-201323) #define DAQmxErrorCantHaveBothMemMappedAndNonMemMappedTasks (-201322) #define DAQmxErrorMemMappedDataReadByAnotherProcess (-201321) #define DAQmxErrorRetriggeringInvalidForGivenSettings (-201320) #define DAQmxErrorAIOverrun (-201319) #define DAQmxErrorCOOverrun (-201318) #define DAQmxErrorCounterMultipleBufferedChannels (-201317) #define DAQmxErrorInvalidTimebaseForCOHWTSP (-201316) #define DAQmxErrorWriteBeforeEvent (-201315) #define DAQmxErrorCIOverrun (-201314) #define DAQmxErrorCounterNonResponsiveAndReset (-201313) #define DAQmxErrorMeasTypeOrChannelNotSupportedForLogging (-201312) #define DAQmxErrorFileAlreadyOpenedForWrite (-201311) #define DAQmxErrorTdmsNotFound (-201310) #define DAQmxErrorGenericFileIO (-201309) #define DAQmxErrorFiniteSTCCounterNotSupportedForLogging (-201308) #define DAQmxErrorMeasurementTypeNotSupportedForLogging (-201307) #define DAQmxErrorFileAlreadyOpened (-201306) #define DAQmxErrorDiskFull (-201305) #define DAQmxErrorFilePathInvalid (-201304) #define DAQmxErrorFileVersionMismatch (-201303) #define DAQmxErrorFileWriteProtected (-201302) #define DAQmxErrorReadNotSupportedForLoggingMode (-201301) #define DAQmxErrorAttributeNotSupportedWhenLogging (-201300) #define DAQmxErrorLoggingModeNotSupportedNonBuffered (-201299) #define DAQmxErrorPropertyNotSupportedWithConflictingProperty (-201298) #define DAQmxErrorParallelSSHOnConnector1 (-201297) #define DAQmxErrorCOOnlyImplicitSampleTimingTypeSupported (-201296) #define DAQmxErrorCalibrationFailedAOOutOfRange (-201295) #define DAQmxErrorCalibrationFailedAIOutOfRange (-201294) #define DAQmxErrorCalPWMLinearityFailed (-201293) #define DAQmxErrorOverrunUnderflowConfigurationCombo (-201292) #define DAQmxErrorCannotWriteToFiniteCOTask (-201291) #define DAQmxErrorNetworkDAQInvalidWEPKeyLength (-201290) #define DAQmxErrorCalInputsShortedNotSupported (-201289) #define DAQmxErrorCannotSetPropertyWhenTaskIsReserved (-201288) #define DAQmxErrorMinus12VFuseBlown (-201287) #define DAQmxErrorPlus12VFuseBlown (-201286) #define DAQmxErrorPlus5VFuseBlown (-201285) #define DAQmxErrorPlus3VFuseBlown (-201284) #define DAQmxErrorDeviceSerialPortError (-201283) #define DAQmxErrorPowerUpStateMachineNotDone (-201282) #define DAQmxErrorTooManyTriggersSpecifiedInTask (-201281) #define DAQmxErrorVerticalOffsetNotSupportedOnDevice (-201280) #define DAQmxErrorInvalidCouplingForMeasurementType (-201279) #define DAQmxErrorDigitalLineUpdateTooFastForDevice (-201278) #define DAQmxErrorCertificateIsTooBigToTransfer (-201277) #define DAQmxErrorOnlyPEMOrDERCertiticatesAccepted (-201276) #define DAQmxErrorCalCouplingNotSupported (-201275) #define DAQmxErrorDeviceNotSupportedIn64Bit (-201274) #define DAQmxErrorNetworkDeviceInUse (-201273) #define DAQmxErrorInvalidIPv4AddressFormat (-201272) #define DAQmxErrorNetworkProductTypeMismatch (-201271) #define DAQmxErrorOnlyPEMCertificatesAccepted (-201270) #define DAQmxErrorCalibrationRequiresPrototypingBoardEnabled (-201269) #define DAQmxErrorAllCurrentLimitingResourcesAlreadyTaken (-201268) #define DAQmxErrorUserDefInfoStringBadLength (-201267) #define DAQmxErrorPropertyNotFound (-201266) #define DAQmxErrorOverVoltageProtectionActivated (-201265) #define DAQmxErrorScaledIQWaveformTooLarge (-201264) #define DAQmxErrorFirmwareFailedToDownload (-201263) #define DAQmxErrorPropertyNotSupportedForBusType (-201262) #define DAQmxErrorChangeRateWhileRunningCouldNotBeCompleted (-201261) #define DAQmxErrorCannotQueryManualControlAttribute (-201260) #define DAQmxErrorInvalidNetworkConfiguration (-201259) #define DAQmxErrorInvalidWirelessConfiguration (-201258) #define DAQmxErrorInvalidWirelessCountryCode (-201257) #define DAQmxErrorInvalidWirelessChannel (-201256) #define DAQmxErrorNetworkEEPROMHasChanged (-201255) #define DAQmxErrorNetworkSerialNumberMismatch (-201254) #define DAQmxErrorNetworkStatusDown (-201253) #define DAQmxErrorNetworkTargetUnreachable (-201252) #define DAQmxErrorNetworkTargetNotFound (-201251) #define DAQmxErrorNetworkStatusTimedOut (-201250) #define DAQmxErrorInvalidWirelessSecuritySelection (-201249) #define DAQmxErrorNetworkDeviceConfigurationLocked (-201248) #define DAQmxErrorNetworkDAQDeviceNotSupported (-201247) #define DAQmxErrorNetworkDAQCannotCreateEmptySleeve (-201246) #define DAQmxErrorModuleTypeDoesNotMatchModuleTypeInDestination (-201244) #define DAQmxErrorInvalidTEDSInterfaceAddress (-201243) #define DAQmxErrorDevDoesNotSupportSCXIComm (-201242) #define DAQmxErrorSCXICommDevConnector0MustBeCabledToModule (-201241) #define DAQmxErrorSCXIModuleDoesNotSupportDigitizationMode (-201240) #define DAQmxErrorDevDoesNotSupportMultiplexedSCXIDigitizationMode (-201239) #define DAQmxErrorDevOrDevPhysChanDoesNotSupportSCXIDigitization (-201238) #define DAQmxErrorInvalidPhysChanName (-201237) #define DAQmxErrorSCXIChassisCommModeInvalid (-201236) #define DAQmxErrorRequiredDependencyNotFound (-201235) #define DAQmxErrorInvalidStorage (-201234) #define DAQmxErrorInvalidObject (-201233) #define DAQmxErrorStorageAlteredPriorToSave (-201232) #define DAQmxErrorTaskDoesNotReferenceLocalChannel (-201231) #define DAQmxErrorReferencedDevSimMustMatchTarget (-201230) #define DAQmxErrorProgrammedIOFailsBecauseOfWatchdogTimer (-201229) #define DAQmxErrorWatchdogTimerFailsBecauseOfProgrammedIO (-201228) #define DAQmxErrorCantUseThisTimingEngineWithAPort (-201227) #define DAQmxErrorProgrammedIOConflict (-201226) #define DAQmxErrorChangeDetectionIncompatibleWithProgrammedIO (-201225) #define DAQmxErrorTristateNotEnoughLines (-201224) #define DAQmxErrorTristateConflict (-201223) #define DAQmxErrorGenerateOrFiniteWaitExpectedBeforeBreakBlock (-201222) #define DAQmxErrorBreakBlockNotAllowedInLoop (-201221) #define DAQmxErrorClearTriggerNotAllowedInBreakBlock (-201220) #define DAQmxErrorNestingNotAllowedInBreakBlock (-201219) #define DAQmxErrorIfElseBlockNotAllowedInBreakBlock (-201218) #define DAQmxErrorRepeatUntilTriggerLoopNotAllowedInBreakBlock (-201217) #define DAQmxErrorWaitUntilTriggerNotAllowedInBreakBlock (-201216) #define DAQmxErrorMarkerPosInvalidInBreakBlock (-201215) #define DAQmxErrorInvalidWaitDurationInBreakBlock (-201214) #define DAQmxErrorInvalidSubsetLengthInBreakBlock (-201213) #define DAQmxErrorInvalidWaveformLengthInBreakBlock (-201212) #define DAQmxErrorInvalidWaitDurationBeforeBreakBlock (-201211) #define DAQmxErrorInvalidSubsetLengthBeforeBreakBlock (-201210) #define DAQmxErrorInvalidWaveformLengthBeforeBreakBlock (-201209) #define DAQmxErrorSampleRateTooHighForADCTimingMode (-201208) #define DAQmxErrorActiveDevNotSupportedWithMultiDevTask (-201207) #define DAQmxErrorRealDevAndSimDevNotSupportedInSameTask (-201206) #define DAQmxErrorRTSISimMustMatchDevSim (-201205) #define DAQmxErrorBridgeShuntCaNotSupported (-201204) #define DAQmxErrorStrainShuntCaNotSupported (-201203) #define DAQmxErrorGainTooLargeForGainCalConst (-201202) #define DAQmxErrorOffsetTooLargeForOffsetCalConst (-201201) #define DAQmxErrorElvisPrototypingBoardRemoved (-201200) #define DAQmxErrorElvis2PowerRailFault (-201199) #define DAQmxErrorElvis2PhysicalChansFault (-201198) #define DAQmxErrorElvis2PhysicalChansThermalEvent (-201197) #define DAQmxErrorRXBitErrorRateLimitExceeded (-201196) #define DAQmxErrorPHYBitErrorRateLimitExceeded (-201195) #define DAQmxErrorTwoPartAttributeCalledOutOfOrder (-201194) #define DAQmxErrorInvalidSCXIChassisAddress (-201193) #define DAQmxErrorCouldNotConnectToRemoteMXS (-201192) #define DAQmxErrorExcitationStateRequiredForAttributes (-201191) #define DAQmxErrorDeviceNotUsableUntilUSBReplug (-201190) #define DAQmxErrorInputFIFOOverflowDuringCalibrationOnFullSpeedUSB (-201189) #define DAQmxErrorInputFIFOOverflowDuringCalibration (-201188) #define DAQmxErrorCJCChanConflictsWithNonThermocoupleChan (-201187) #define DAQmxErrorCommDeviceForPXIBackplaneNotInRightmostSlot (-201186) #define DAQmxErrorCommDeviceForPXIBackplaneNotInSameChassis (-201185) #define DAQmxErrorCommDeviceForPXIBackplaneNotPXI (-201184) #define DAQmxErrorInvalidCalExcitFrequency (-201183) #define DAQmxErrorInvalidCalExcitVoltage (-201182) #define DAQmxErrorInvalidAIInputSrc (-201181) #define DAQmxErrorInvalidCalInputRef (-201180) #define DAQmxErrordBReferenceValueNotGreaterThanZero (-201179) #define DAQmxErrorSampleClockRateIsTooFastForSampleClockTiming (-201178) #define DAQmxErrorDeviceNotUsableUntilColdStart (-201177) #define DAQmxErrorSampleClockRateIsTooFastForBurstTiming (-201176) #define DAQmxErrorDevImportFailedAssociatedResourceIDsNotSupported (-201175) #define DAQmxErrorSCXI1600ImportNotSupported (-201174) #define DAQmxErrorPowerSupplyConfigurationFailed (-201173) #define DAQmxErrorIEPEWithDCNotAllowed (-201172) #define DAQmxErrorMinTempForThermocoupleTypeOutsideAccuracyForPolyScaling (-201171) #define DAQmxErrorDevImportFailedNoDeviceToOverwriteAndSimulationNotSupported (-201170) #define DAQmxErrorDevImportFailedDeviceNotSupportedOnDestination (-201169) #define DAQmxErrorFirmwareIsTooOld (-201168) #define DAQmxErrorFirmwareCouldntUpdate (-201167) #define DAQmxErrorFirmwareIsCorrupt (-201166) #define DAQmxErrorFirmwareTooNew (-201165) #define DAQmxErrorSampClockCannotBeExportedFromExternalSampClockSrc (-201164) #define DAQmxErrorPhysChanReservedForInputWhenDesiredForOutput (-201163) #define DAQmxErrorPhysChanReservedForOutputWhenDesiredForInput (-201162) #define DAQmxErrorSpecifiedCDAQSlotNotEmpty (-201161) #define DAQmxErrorDeviceDoesNotSupportSimulation (-201160) #define DAQmxErrorInvalidCDAQSlotNumberSpecd (-201159) #define DAQmxErrorCSeriesModSimMustMatchCDAQChassisSim (-201158) #define DAQmxErrorSCCCabledDevMustNotBeSimWhenSCCCarrierIsNotSim (-201157) #define DAQmxErrorSCCModSimMustMatchSCCCarrierSim (-201156) #define DAQmxErrorSCXIModuleDoesNotSupportSimulation (-201155) #define DAQmxErrorSCXICableDevMustNotBeSimWhenModIsNotSim (-201154) #define DAQmxErrorSCXIDigitizerSimMustNotBeSimWhenModIsNotSim (-201153) #define DAQmxErrorSCXIModSimMustMatchSCXIChassisSim (-201152) #define DAQmxErrorSimPXIDevReqSlotAndChassisSpecd (-201151) #define DAQmxErrorSimDevConflictWithRealDev (-201150) #define DAQmxErrorInsufficientDataForCalibration (-201149) #define DAQmxErrorTriggerChannelMustBeEnabled (-201148) #define DAQmxErrorCalibrationDataConflictCouldNotBeResolved (-201147) #define DAQmxErrorSoftwareTooNewForSelfCalibrationData (-201146) #define DAQmxErrorSoftwareTooNewForExtCalibrationData (-201145) #define DAQmxErrorSelfCalibrationDataTooNewForSoftware (-201144) #define DAQmxErrorExtCalibrationDataTooNewForSoftware (-201143) #define DAQmxErrorSoftwareTooNewForEEPROM (-201142) #define DAQmxErrorEEPROMTooNewForSoftware (-201141) #define DAQmxErrorSoftwareTooNewForHardware (-201140) #define DAQmxErrorHardwareTooNewForSoftware (-201139) #define DAQmxErrorTaskCannotRestartFirstSampNotAvailToGenerate (-201138) #define DAQmxErrorOnlyUseStartTrigSrcPrptyWithDevDataLines (-201137) #define DAQmxErrorOnlyUsePauseTrigSrcPrptyWithDevDataLines (-201136) #define DAQmxErrorOnlyUseRefTrigSrcPrptyWithDevDataLines (-201135) #define DAQmxErrorPauseTrigDigPatternSizeDoesNotMatchSrcSize (-201134) #define DAQmxErrorLineConflictCDAQ (-201133) #define DAQmxErrorCannotWriteBeyondFinalFiniteSample (-201132) #define DAQmxErrorRefAndStartTriggerSrcCantBeSame (-201131) #define DAQmxErrorMemMappingIncompatibleWithPhysChansInTask (-201130) #define DAQmxErrorOutputDriveTypeMemMappingConflict (-201129) #define DAQmxErrorCAPIDeviceIndexInvalid (-201128) #define DAQmxErrorRatiometricDevicesMustUseExcitationForScaling (-201127) #define DAQmxErrorPropertyRequiresPerDeviceCfg (-201126) #define DAQmxErrorAICouplingAndAIInputSourceConflict (-201125) #define DAQmxErrorOnlyOneTaskCanPerformDOMemoryMappingAtATime (-201124) #define DAQmxErrorTooManyChansForAnalogRefTrigCDAQ (-201123) #define DAQmxErrorSpecdPropertyValueIsIncompatibleWithSampleTimingType (-201122) #define DAQmxErrorCPUNotSupportedRequireSSE (-201121) #define DAQmxErrorSpecdPropertyValueIsIncompatibleWithSampleTimingResponseMode (-201120) #define DAQmxErrorConflictingNextWriteIsLastAndRegenModeProperties (-201119) #define DAQmxErrorMStudioOperationDoesNotSupportDeviceContext (-201118) #define DAQmxErrorPropertyValueInChannelExpansionContextInvalid (-201117) #define DAQmxErrorHWTimedNonBufferedAONotSupported (-201116) #define DAQmxErrorWaveformLengthNotMultOfQuantum (-201115) #define DAQmxErrorDSAExpansionMixedBoardsWrongOrderInPXIChassis (-201114) #define DAQmxErrorPowerLevelTooLowForOOK (-201113) #define DAQmxErrorDeviceComponentTestFailure (-201112) #define DAQmxErrorUserDefinedWfmWithOOKUnsupported (-201111) #define DAQmxErrorInvalidDigitalModulationUserDefinedWaveform (-201110) #define DAQmxErrorBothRefInAndRefOutEnabled (-201109) #define DAQmxErrorBothAnalogAndDigitalModulationEnabled (-201108) #define DAQmxErrorBufferedOpsNotSupportedInSpecdSlotForCDAQ (-201107) #define DAQmxErrorPhysChanNotSupportedInSpecdSlotForCDAQ (-201106) #define DAQmxErrorResourceReservedWithConflictingSettings (-201105) #define DAQmxErrorInconsistentAnalogTrigSettingsCDAQ (-201104) #define DAQmxErrorTooManyChansForAnalogPauseTrigCDAQ (-201103) #define DAQmxErrorAnalogTrigNotFirstInScanListCDAQ (-201102) #define DAQmxErrorTooManyChansGivenTimingType (-201101) #define DAQmxErrorSampClkTimebaseDivWithExtSampClk (-201100) #define DAQmxErrorCantSaveTaskWithPerDeviceTimingProperties (-201099) #define DAQmxErrorConflictingAutoZeroMode (-201098) #define DAQmxErrorSampClkRateNotSupportedWithEAREnabled (-201097) #define DAQmxErrorSampClkTimebaseRateNotSpecd (-201096) #define DAQmxErrorSessionCorruptedByDLLReload (-201095) #define DAQmxErrorActiveDevNotSupportedWithChanExpansion (-201094) #define DAQmxErrorSampClkRateInvalid (-201093) #define DAQmxErrorExtSyncPulseSrcCannotBeExported (-201092) #define DAQmxErrorSyncPulseMinDelayToStartNeededForExtSyncPulseSrc (-201091) #define DAQmxErrorSyncPulseSrcInvalid (-201090) #define DAQmxErrorSampClkTimebaseRateInvalid (-201089) #define DAQmxErrorSampClkTimebaseSrcInvalid (-201088) #define DAQmxErrorSampClkRateMustBeSpecd (-201087) #define DAQmxErrorInvalidAttributeName (-201086) #define DAQmxErrorCJCChanNameMustBeSetWhenCJCSrcIsScannableChan (-201085) #define DAQmxErrorHiddenChanMissingInChansPropertyInCfgFile (-201084) #define DAQmxErrorChanNamesNotSpecdInCfgFile (-201083) #define DAQmxErrorDuplicateHiddenChanNamesInCfgFile (-201082) #define DAQmxErrorDuplicateChanNameInCfgFile (-201081) #define DAQmxErrorInvalidSCCModuleForSlotSpecd (-201080) #define DAQmxErrorInvalidSCCSlotNumberSpecd (-201079) #define DAQmxErrorInvalidSectionIdentifier (-201078) #define DAQmxErrorInvalidSectionName (-201077) #define DAQmxErrorDAQmxVersionNotSupported (-201076) #define DAQmxErrorSWObjectsFoundInFile (-201075) #define DAQmxErrorHWObjectsFoundInFile (-201074) #define DAQmxErrorLocalChannelSpecdWithNoParentTask (-201073) #define DAQmxErrorTaskReferencesMissingLocalChannel (-201072) #define DAQmxErrorTaskReferencesLocalChannelFromOtherTask (-201071) #define DAQmxErrorTaskMissingChannelProperty (-201070) #define DAQmxErrorInvalidLocalChanName (-201069) #define DAQmxErrorInvalidEscapeCharacterInString (-201068) #define DAQmxErrorInvalidTableIdentifier (-201067) #define DAQmxErrorValueFoundInInvalidColumn (-201066) #define DAQmxErrorMissingStartOfTable (-201065) #define DAQmxErrorFileMissingRequiredDAQmxHeader (-201064) #define DAQmxErrorDeviceIDDoesNotMatch (-201063) #define DAQmxErrorBufferedOperationsNotSupportedOnSelectedLines (-201062) #define DAQmxErrorPropertyConflictsWithScale (-201061) #define DAQmxErrorInvalidINIFileSyntax (-201060) #define DAQmxErrorDeviceInfoFailedPXIChassisNotIdentified (-201059) #define DAQmxErrorInvalidHWProductNumber (-201058) #define DAQmxErrorInvalidHWProductType (-201057) #define DAQmxErrorInvalidNumericFormatSpecd (-201056) #define DAQmxErrorDuplicatePropertyInObject (-201055) #define DAQmxErrorInvalidEnumValueSpecd (-201054) #define DAQmxErrorTEDSSensorPhysicalChannelConflict (-201053) #define DAQmxErrorTooManyPhysicalChansForTEDSInterfaceSpecd (-201052) #define DAQmxErrorIncapableTEDSInterfaceControllingDeviceSpecd (-201051) #define DAQmxErrorSCCCarrierSpecdIsMissing (-201050) #define DAQmxErrorIncapableSCCDigitizingDeviceSpecd (-201049) #define DAQmxErrorAccessorySettingNotApplicable (-201048) #define DAQmxErrorDeviceAndConnectorSpecdAlreadyOccupied (-201047) #define DAQmxErrorIllegalAccessoryTypeForDeviceSpecd (-201046) #define DAQmxErrorInvalidDeviceConnectorNumberSpecd (-201045) #define DAQmxErrorInvalidAccessoryName (-201044) #define DAQmxErrorMoreThanOneMatchForSpecdDevice (-201043) #define DAQmxErrorNoMatchForSpecdDevice (-201042) #define DAQmxErrorProductTypeAndProductNumberConflict (-201041) #define DAQmxErrorExtraPropertyDetectedInSpecdObject (-201040) #define DAQmxErrorRequiredPropertyMissing (-201039) #define DAQmxErrorCantSetAuthorForLocalChan (-201038) #define DAQmxErrorInvalidTimeValue (-201037) #define DAQmxErrorInvalidTimeFormat (-201036) #define DAQmxErrorDigDevChansSpecdInModeOtherThanParallel (-201035) #define DAQmxErrorCascadeDigitizationModeNotSupported (-201034) #define DAQmxErrorSpecdSlotAlreadyOccupied (-201033) #define DAQmxErrorInvalidSCXISlotNumberSpecd (-201032) #define DAQmxErrorAddressAlreadyInUse (-201031) #define DAQmxErrorSpecdDeviceDoesNotSupportRTSI (-201030) #define DAQmxErrorSpecdDeviceIsAlreadyOnRTSIBus (-201029) #define DAQmxErrorIdentifierInUse (-201028) #define DAQmxErrorWaitForNextSampleClockOrReadDetected3OrMoreMissedSampClks (-201027) #define DAQmxErrorHWTimedAndDataXferPIO (-201026) #define DAQmxErrorNonBufferedAndHWTimed (-201025) #define DAQmxErrorCTROutSampClkPeriodShorterThanGenPulseTrainPeriodPolled (-201024) #define DAQmxErrorCTROutSampClkPeriodShorterThanGenPulseTrainPeriod2 (-201023) #define DAQmxErrorCOCannotKeepUpInHWTimedSinglePointPolled (-201022) #define DAQmxErrorWriteRecoveryCannotKeepUpInHWTimedSinglePoint (-201021) #define DAQmxErrorNoChangeDetectionOnSelectedLineForDevice (-201020) #define DAQmxErrorSMIOPauseTriggersNotSupportedWithChannelExpansion (-201019) #define DAQmxErrorClockMasterForExternalClockNotLongestPipeline (-201018) #define DAQmxErrorUnsupportedUnicodeByteOrderMarker (-201017) #define DAQmxErrorTooManyInstructionsInLoopInScript (-201016) #define DAQmxErrorPLLNotLocked (-201015) #define DAQmxErrorIfElseBlockNotAllowedInFiniteRepeatLoopInScript (-201014) #define DAQmxErrorIfElseBlockNotAllowedInConditionalRepeatLoopInScript (-201013) #define DAQmxErrorClearIsLastInstructionInIfElseBlockInScript (-201012) #define DAQmxErrorInvalidWaitDurationBeforeIfElseBlockInScript (-201011) #define DAQmxErrorMarkerPosInvalidBeforeIfElseBlockInScript (-201010) #define DAQmxErrorInvalidSubsetLengthBeforeIfElseBlockInScript (-201009) #define DAQmxErrorInvalidWaveformLengthBeforeIfElseBlockInScript (-201008) #define DAQmxErrorGenerateOrFiniteWaitInstructionExpectedBeforeIfElseBlockInScript (-201007) #define DAQmxErrorCalPasswordNotSupported (-201006) #define DAQmxErrorSetupCalNeededBeforeAdjustCal (-201005) #define DAQmxErrorMultipleChansNotSupportedDuringCalSetup (-201004) #define DAQmxErrorDevCannotBeAccessed (-201003) #define DAQmxErrorSampClkRateDoesntMatchSampClkSrc (-201002) #define DAQmxErrorSampClkRateNotSupportedWithEARDisabled (-201001) #define DAQmxErrorLabVIEWVersionDoesntSupportDAQmxEvents (-201000) #define DAQmxErrorCOReadyForNewValNotSupportedWithOnDemand (-200999) #define DAQmxErrorCIHWTimedSinglePointNotSupportedForMeasType (-200998) #define DAQmxErrorOnDemandNotSupportedWithHWTimedSinglePoint (-200997) #define DAQmxErrorHWTimedSinglePointAndDataXferNotProgIO (-200996) #define DAQmxErrorMemMapAndHWTimedSinglePoint (-200995) #define DAQmxErrorCannotSetPropertyWhenHWTimedSinglePointTaskIsRunning (-200994) #define DAQmxErrorCTROutSampClkPeriodShorterThanGenPulseTrainPeriod (-200993) #define DAQmxErrorTooManyEventsGenerated (-200992) #define DAQmxErrorMStudioCppRemoveEventsBeforeStop (-200991) #define DAQmxErrorCAPICannotRegisterSyncEventsFromMultipleThreads (-200990) #define DAQmxErrorReadWaitNextSampClkWaitMismatchTwo (-200989) #define DAQmxErrorReadWaitNextSampClkWaitMismatchOne (-200988) #define DAQmxErrorDAQmxSignalEventTypeNotSupportedByChanTypesOrDevicesInTask (-200987) #define DAQmxErrorCannotUnregisterDAQmxSoftwareEventWhileTaskIsRunning (-200986) #define DAQmxErrorAutoStartWriteNotAllowedEventRegistered (-200985) #define DAQmxErrorAutoStartReadNotAllowedEventRegistered (-200984) #define DAQmxErrorCannotGetPropertyWhenTaskNotReservedCommittedOrRunning (-200983) #define DAQmxErrorSignalEventsNotSupportedByDevice (-200982) #define DAQmxErrorEveryNSamplesAcqIntoBufferEventNotSupportedByDevice (-200981) #define DAQmxErrorEveryNSampsTransferredFromBufferEventNotSupportedByDevice (-200980) #define DAQmxErrorCAPISyncEventsTaskStateChangeNotAllowedFromDifferentThread (-200979) #define DAQmxErrorDAQmxSWEventsWithDifferentCallMechanisms (-200978) #define DAQmxErrorCantSaveChanWithPolyCalScaleAndAllowInteractiveEdit (-200977) #define DAQmxErrorChanDoesNotSupportCJC (-200976) #define DAQmxErrorCOReadyForNewValNotSupportedWithHWTimedSinglePoint (-200975) #define DAQmxErrorDACAllowConnToGndNotSupportedByDevWhenRefSrcExt (-200974) #define DAQmxErrorCantGetPropertyTaskNotRunning (-200973) #define DAQmxErrorCantSetPropertyTaskNotRunning (-200972) #define DAQmxErrorCantSetPropertyTaskNotRunningCommitted (-200971) #define DAQmxErrorAIEveryNSampsEventIntervalNotMultipleOf2 (-200970) #define DAQmxErrorInvalidTEDSPhysChanNotAI (-200969) #define DAQmxErrorCAPICannotPerformTaskOperationInAsyncCallback (-200968) #define DAQmxErrorEveryNSampsTransferredFromBufferEventAlreadyRegistered (-200967) #define DAQmxErrorEveryNSampsAcqIntoBufferEventAlreadyRegistered (-200966) #define DAQmxErrorEveryNSampsTransferredFromBufferNotForInput (-200965) #define DAQmxErrorEveryNSampsAcqIntoBufferNotForOutput (-200964) #define DAQmxErrorAOSampTimingTypeDifferentIn2Tasks (-200963) #define DAQmxErrorCouldNotDownloadFirmwareHWDamaged (-200962) #define DAQmxErrorCouldNotDownloadFirmwareFileMissingOrDamaged (-200961) #define DAQmxErrorCannotRegisterDAQmxSoftwareEventWhileTaskIsRunning (-200960) #define DAQmxErrorDifferentRawDataCompression (-200959) #define DAQmxErrorConfiguredTEDSInterfaceDevNotDetected (-200958) #define DAQmxErrorCompressedSampSizeExceedsResolution (-200957) #define DAQmxErrorChanDoesNotSupportCompression (-200956) #define DAQmxErrorDifferentRawDataFormats (-200955) #define DAQmxErrorSampClkOutputTermIncludesStartTrigSrc (-200954) #define DAQmxErrorStartTrigSrcEqualToSampClkSrc (-200953) #define DAQmxErrorEventOutputTermIncludesTrigSrc (-200952) #define DAQmxErrorCOMultipleWritesBetweenSampClks (-200951) #define DAQmxErrorDoneEventAlreadyRegistered (-200950) #define DAQmxErrorSignalEventAlreadyRegistered (-200949) #define DAQmxErrorCannotHaveTimedLoopAndDAQmxSignalEventsInSameTask (-200948) #define DAQmxErrorNeedLabVIEW711PatchToUseDAQmxEvents (-200947) #define DAQmxErrorStartFailedDueToWriteFailure (-200946) #define DAQmxErrorDataXferCustomThresholdNotDMAXferMethodSpecifiedForDev (-200945) #define DAQmxErrorDataXferRequestConditionNotSpecifiedForCustomThreshold (-200944) #define DAQmxErrorDataXferCustomThresholdNotSpecified (-200943) #define DAQmxErrorCAPISyncCallbackNotSupportedOnThisPlatform (-200942) #define DAQmxErrorCalChanReversePolyCoefNotSpecd (-200941) #define DAQmxErrorCalChanForwardPolyCoefNotSpecd (-200940) #define DAQmxErrorChanCalRepeatedNumberInPreScaledVals (-200939) #define DAQmxErrorChanCalTableNumScaledNotEqualNumPrescaledVals (-200938) #define DAQmxErrorChanCalTableScaledValsNotSpecd (-200937) #define DAQmxErrorChanCalTablePreScaledValsNotSpecd (-200936) #define DAQmxErrorChanCalScaleTypeNotSet (-200935) #define DAQmxErrorChanCalExpired (-200934) #define DAQmxErrorChanCalExpirationDateNotSet (-200933) #define DAQmxError3OutputPortCombinationGivenSampTimingType653x (-200932) #define DAQmxError3InputPortCombinationGivenSampTimingType653x (-200931) #define DAQmxError2OutputPortCombinationGivenSampTimingType653x (-200930) #define DAQmxError2InputPortCombinationGivenSampTimingType653x (-200929) #define DAQmxErrorPatternMatcherMayBeUsedByOneTrigOnly (-200928) #define DAQmxErrorNoChansSpecdForPatternSource (-200927) #define DAQmxErrorChangeDetectionChanNotInTask (-200926) #define DAQmxErrorChangeDetectionChanNotTristated (-200925) #define DAQmxErrorWaitModeValueNotSupportedNonBuffered (-200924) #define DAQmxErrorWaitModePropertyNotSupportedNonBuffered (-200923) #define DAQmxErrorCantSavePerLineConfigDigChanSoInteractiveEditsAllowed (-200922) #define DAQmxErrorCantSaveNonPortMultiLineDigChanSoInteractiveEditsAllowed (-200921) #define DAQmxErrorBufferSizeNotMultipleOfEveryNSampsEventIntervalNoIrqOnDev (-200920) #define DAQmxErrorGlobalTaskNameAlreadyChanName (-200919) #define DAQmxErrorGlobalChanNameAlreadyTaskName (-200918) #define DAQmxErrorAOEveryNSampsEventIntervalNotMultipleOf2 (-200917) #define DAQmxErrorSampleTimebaseDivisorNotSupportedGivenTimingType (-200916) #define DAQmxErrorHandshakeEventOutputTermNotSupportedGivenTimingType (-200915) #define DAQmxErrorChangeDetectionOutputTermNotSupportedGivenTimingType (-200914) #define DAQmxErrorReadyForTransferOutputTermNotSupportedGivenTimingType (-200913) #define DAQmxErrorRefTrigOutputTermNotSupportedGivenTimingType (-200912) #define DAQmxErrorStartTrigOutputTermNotSupportedGivenTimingType (-200911) #define DAQmxErrorSampClockOutputTermNotSupportedGivenTimingType (-200910) #define DAQmxError20MhzTimebaseNotSupportedGivenTimingType (-200909) #define DAQmxErrorSampClockSourceNotSupportedGivenTimingType (-200908) #define DAQmxErrorRefTrigTypeNotSupportedGivenTimingType (-200907) #define DAQmxErrorPauseTrigTypeNotSupportedGivenTimingType (-200906) #define DAQmxErrorHandshakeTrigTypeNotSupportedGivenTimingType (-200905) #define DAQmxErrorStartTrigTypeNotSupportedGivenTimingType (-200904) #define DAQmxErrorRefClkSrcNotSupported (-200903) #define DAQmxErrorDataVoltageLowAndHighIncompatible (-200902) #define DAQmxErrorInvalidCharInDigPatternString (-200901) #define DAQmxErrorCantUsePort3AloneGivenSampTimingTypeOn653x (-200900) #define DAQmxErrorCantUsePort1AloneGivenSampTimingTypeOn653x (-200899) #define DAQmxErrorPartialUseOfPhysicalLinesWithinPortNotSupported653x (-200898) #define DAQmxErrorPhysicalChanNotSupportedGivenSampTimingType653x (-200897) #define DAQmxErrorCanExportOnlyDigEdgeTrigs (-200896) #define DAQmxErrorRefTrigDigPatternSizeDoesNotMatchSourceSize (-200895) #define DAQmxErrorStartTrigDigPatternSizeDoesNotMatchSourceSize (-200894) #define DAQmxErrorChangeDetectionRisingAndFallingEdgeChanDontMatch (-200893) #define DAQmxErrorPhysicalChansForChangeDetectionAndPatternMatch653x (-200892) #define DAQmxErrorCanExportOnlyOnboardSampClk (-200891) #define DAQmxErrorInternalSampClkNotRisingEdge (-200890) #define DAQmxErrorRefTrigDigPatternChanNotInTask (-200889) #define DAQmxErrorRefTrigDigPatternChanNotTristated (-200888) #define DAQmxErrorStartTrigDigPatternChanNotInTask (-200887) #define DAQmxErrorStartTrigDigPatternChanNotTristated (-200886) #define DAQmxErrorPXIStarAndClock10Sync (-200885) #define DAQmxErrorGlobalChanCannotBeSavedSoInteractiveEditsAllowed (-200884) #define DAQmxErrorTaskCannotBeSavedSoInteractiveEditsAllowed (-200883) #define DAQmxErrorInvalidGlobalChan (-200882) #define DAQmxErrorEveryNSampsEventAlreadyRegistered (-200881) #define DAQmxErrorEveryNSampsEventIntervalZeroNotSupported (-200880) #define DAQmxErrorChanSizeTooBigForU16PortWrite (-200879) #define DAQmxErrorChanSizeTooBigForU16PortRead (-200878) #define DAQmxErrorBufferSizeNotMultipleOfEveryNSampsEventIntervalWhenDMA (-200877) #define DAQmxErrorWriteWhenTaskNotRunningCOTicks (-200876) #define DAQmxErrorWriteWhenTaskNotRunningCOFreq (-200875) #define DAQmxErrorWriteWhenTaskNotRunningCOTime (-200874) #define DAQmxErrorAOMinMaxNotSupportedDACRangeTooSmall (-200873) #define DAQmxErrorAOMinMaxNotSupportedGivenDACRange (-200872) #define DAQmxErrorAOMinMaxNotSupportedGivenDACRangeAndOffsetVal (-200871) #define DAQmxErrorAOMinMaxNotSupportedDACOffsetValInappropriate (-200870) #define DAQmxErrorAOMinMaxNotSupportedGivenDACOffsetVal (-200869) #define DAQmxErrorAOMinMaxNotSupportedDACRefValTooSmall (-200868) #define DAQmxErrorAOMinMaxNotSupportedGivenDACRefVal (-200867) #define DAQmxErrorAOMinMaxNotSupportedGivenDACRefAndOffsetVal (-200866) #define DAQmxErrorWhenAcqCompAndNumSampsPerChanExceedsOnBrdBufSize (-200865) #define DAQmxErrorWhenAcqCompAndNoRefTrig (-200864) #define DAQmxErrorWaitForNextSampClkNotSupported (-200863) #define DAQmxErrorDevInUnidentifiedPXIChassis (-200862) #define DAQmxErrorMaxSoundPressureMicSensitivitRelatedAIPropertiesNotSupportedByDev (-200861) #define DAQmxErrorMaxSoundPressureAndMicSensitivityNotSupportedByDev (-200860) #define DAQmxErrorAOBufferSizeZeroForSampClkTimingType (-200859) #define DAQmxErrorAOCallWriteBeforeStartForSampClkTimingType (-200858) #define DAQmxErrorInvalidCalLowPassCutoffFreq (-200857) #define DAQmxErrorSimulationCannotBeDisabledForDevCreatedAsSimulatedDev (-200856) #define DAQmxErrorCannotAddNewDevsAfterTaskConfiguration (-200855) #define DAQmxErrorDifftSyncPulseSrcAndSampClkTimebaseSrcDevMultiDevTask (-200854) #define DAQmxErrorTermWithoutDevInMultiDevTask (-200853) #define DAQmxErrorSyncNoDevSampClkTimebaseOrSyncPulseInPXISlot2 (-200852) #define DAQmxErrorPhysicalChanNotOnThisConnector (-200851) #define DAQmxErrorNumSampsToWaitNotGreaterThanZeroInScript (-200850) #define DAQmxErrorNumSampsToWaitNotMultipleOfAlignmentQuantumInScript (-200849) #define DAQmxErrorEveryNSamplesEventNotSupportedForNonBufferedTasks (-200848) #define DAQmxErrorBufferedAndDataXferPIO (-200847) #define DAQmxErrorCannotWriteWhenAutoStartFalseAndTaskNotRunning (-200846) #define DAQmxErrorNonBufferedAndDataXferInterrupts (-200845) #define DAQmxErrorWriteFailedMultipleCtrsWithFREQOUT (-200844) #define DAQmxErrorReadNotCompleteBefore3SampClkEdges (-200843) #define DAQmxErrorCtrHWTimedSinglePointAndDataXferNotProgIO (-200842) #define DAQmxErrorPrescalerNot1ForInputTerminal (-200841) #define DAQmxErrorPrescalerNot1ForTimebaseSrc (-200840) #define DAQmxErrorSampClkTimingTypeWhenTristateIsFalse (-200839) #define DAQmxErrorOutputBufferSizeNotMultOfXferSize (-200838) #define DAQmxErrorSampPerChanNotMultOfXferSize (-200837) #define DAQmxErrorWriteToTEDSFailed (-200836) #define DAQmxErrorSCXIDevNotUsablePowerTurnedOff (-200835) #define DAQmxErrorCannotReadWhenAutoStartFalseBufSizeZeroAndTaskNotRunning (-200834) #define DAQmxErrorCannotReadWhenAutoStartFalseHWTimedSinglePtAndTaskNotRunning (-200833) #define DAQmxErrorCannotReadWhenAutoStartFalseOnDemandAndTaskNotRunning (-200832) #define DAQmxErrorSimultaneousAOWhenNotOnDemandTiming (-200831) #define DAQmxErrorMemMapAndSimultaneousAO (-200830) #define DAQmxErrorWriteFailedMultipleCOOutputTypes (-200829) #define DAQmxErrorWriteToTEDSNotSupportedOnRT (-200828) #define DAQmxErrorVirtualTEDSDataFileError (-200827) #define DAQmxErrorTEDSSensorDataError (-200826) #define DAQmxErrorDataSizeMoreThanSizeOfEEPROMOnTEDS (-200825) #define DAQmxErrorPROMOnTEDSContainsBasicTEDSData (-200824) #define DAQmxErrorPROMOnTEDSAlreadyWritten (-200823) #define DAQmxErrorTEDSDoesNotContainPROM (-200822) #define DAQmxErrorHWTimedSinglePointNotSupportedAI (-200821) #define DAQmxErrorHWTimedSinglePointOddNumChansInAITask (-200820) #define DAQmxErrorCantUseOnlyOnBoardMemWithProgrammedIO (-200819) #define DAQmxErrorSwitchDevShutDownDueToHighTemp (-200818) #define DAQmxErrorExcitationNotSupportedWhenTermCfgDiff (-200817) #define DAQmxErrorTEDSMinElecValGEMaxElecVal (-200816) #define DAQmxErrorTEDSMinPhysValGEMaxPhysVal (-200815) #define DAQmxErrorCIOnboardClockNotSupportedAsInputTerm (-200814) #define DAQmxErrorInvalidSampModeForPositionMeas (-200813) #define DAQmxErrorTrigWhenAOHWTimedSinglePtSampMode (-200812) #define DAQmxErrorDAQmxCantUseStringDueToUnknownChar (-200811) #define DAQmxErrorDAQmxCantRetrieveStringDueToUnknownChar (-200810) #define DAQmxErrorClearTEDSNotSupportedOnRT (-200809) #define DAQmxErrorCfgTEDSNotSupportedOnRT (-200808) #define DAQmxErrorProgFilterClkCfgdToDifferentMinPulseWidthBySameTask1PerDev (-200807) #define DAQmxErrorProgFilterClkCfgdToDifferentMinPulseWidthByAnotherTask1PerDev (-200806) #define DAQmxErrorNoLastExtCalDateTimeLastExtCalNotDAQmx (-200804) #define DAQmxErrorCannotWriteNotStartedAutoStartFalseNotOnDemandHWTimedSglPt (-200803) #define DAQmxErrorCannotWriteNotStartedAutoStartFalseNotOnDemandBufSizeZero (-200802) #define DAQmxErrorCOInvalidTimingSrcDueToSignal (-200801) #define DAQmxErrorCIInvalidTimingSrcForSampClkDueToSampTimingType (-200800) #define DAQmxErrorCIInvalidTimingSrcForEventCntDueToSampMode (-200799) #define DAQmxErrorNoChangeDetectOnNonInputDigLineForDev (-200798) #define DAQmxErrorEmptyStringTermNameNotSupported (-200797) #define DAQmxErrorMemMapEnabledForHWTimedNonBufferedAO (-200796) #define DAQmxErrorDevOnboardMemOverflowDuringHWTimedNonBufferedGen (-200795) #define DAQmxErrorCODAQmxWriteMultipleChans (-200794) #define DAQmxErrorCantMaintainExistingValueAOSync (-200793) #define DAQmxErrorMStudioMultiplePhysChansNotSupported (-200792) #define DAQmxErrorCantConfigureTEDSForChan (-200791) #define DAQmxErrorWriteDataTypeTooSmall (-200790) #define DAQmxErrorReadDataTypeTooSmall (-200789) #define DAQmxErrorMeasuredBridgeOffsetTooHigh (-200788) #define DAQmxErrorStartTrigConflictWithCOHWTimedSinglePt (-200787) #define DAQmxErrorSampClkRateExtSampClkTimebaseRateMismatch (-200786) #define DAQmxErrorInvalidTimingSrcDueToSampTimingType (-200785) #define DAQmxErrorVirtualTEDSFileNotFound (-200784) #define DAQmxErrorMStudioNoForwardPolyScaleCoeffs (-200783) #define DAQmxErrorMStudioNoReversePolyScaleCoeffs (-200782) #define DAQmxErrorMStudioNoPolyScaleCoeffsUseCalc (-200781) #define DAQmxErrorMStudioNoForwardPolyScaleCoeffsUseCalc (-200780) #define DAQmxErrorMStudioNoReversePolyScaleCoeffsUseCalc (-200779) #define DAQmxErrorCOSampModeSampTimingTypeSampClkConflict (-200778) #define DAQmxErrorDevCannotProduceMinPulseWidth (-200777) #define DAQmxErrorCannotProduceMinPulseWidthGivenPropertyValues (-200776) #define DAQmxErrorTermCfgdToDifferentMinPulseWidthByAnotherTask (-200775) #define DAQmxErrorTermCfgdToDifferentMinPulseWidthByAnotherProperty (-200774) #define DAQmxErrorDigSyncNotAvailableOnTerm (-200773) #define DAQmxErrorDigFilterNotAvailableOnTerm (-200772) #define DAQmxErrorDigFilterEnabledMinPulseWidthNotCfg (-200771) #define DAQmxErrorDigFilterAndSyncBothEnabled (-200770) #define DAQmxErrorHWTimedSinglePointAOAndDataXferNotProgIO (-200769) #define DAQmxErrorNonBufferedAOAndDataXferNotProgIO (-200768) #define DAQmxErrorProgIODataXferForBufferedAO (-200767) #define DAQmxErrorTEDSLegacyTemplateIDInvalidOrUnsupported (-200766) #define DAQmxErrorTEDSMappingMethodInvalidOrUnsupported (-200765) #define DAQmxErrorTEDSLinearMappingSlopeZero (-200764) #define DAQmxErrorAIInputBufferSizeNotMultOfXferSize (-200763) #define DAQmxErrorNoSyncPulseExtSampClkTimebase (-200762) #define DAQmxErrorNoSyncPulseAnotherTaskRunning (-200761) #define DAQmxErrorAOMinMaxNotInGainRange (-200760) #define DAQmxErrorAOMinMaxNotInDACRange (-200759) #define DAQmxErrorDevOnlySupportsSampClkTimingAO (-200758) #define DAQmxErrorDevOnlySupportsSampClkTimingAI (-200757) #define DAQmxErrorTEDSIncompatibleSensorAndMeasType (-200756) #define DAQmxErrorTEDSMultipleCalTemplatesNotSupported (-200755) #define DAQmxErrorTEDSTemplateParametersNotSupported (-200754) #define DAQmxErrorParsingTEDSData (-200753) #define DAQmxErrorMultipleActivePhysChansNotSupported (-200752) #define DAQmxErrorNoChansSpecdForChangeDetect (-200751) #define DAQmxErrorInvalidCalVoltageForGivenGain (-200750) #define DAQmxErrorInvalidCalGain (-200749) #define DAQmxErrorMultipleWritesBetweenSampClks (-200748) #define DAQmxErrorInvalidAcqTypeForFREQOUT (-200747) #define DAQmxErrorSuitableTimebaseNotFoundTimeCombo2 (-200746) #define DAQmxErrorSuitableTimebaseNotFoundFrequencyCombo2 (-200745) #define DAQmxErrorRefClkRateRefClkSrcMismatch (-200744) #define DAQmxErrorNoTEDSTerminalBlock (-200743) #define DAQmxErrorCorruptedTEDSMemory (-200742) #define DAQmxErrorTEDSNotSupported (-200741) #define DAQmxErrorTimingSrcTaskStartedBeforeTimedLoop (-200740) #define DAQmxErrorPropertyNotSupportedForTimingSrc (-200739) #define DAQmxErrorTimingSrcDoesNotExist (-200738) #define DAQmxErrorInputBufferSizeNotEqualSampsPerChanForFiniteSampMode (-200737) #define DAQmxErrorFREQOUTCannotProduceDesiredFrequency2 (-200736) #define DAQmxErrorExtRefClkRateNotSpecified (-200735) #define DAQmxErrorDeviceDoesNotSupportDMADataXferForNonBufferedAcq (-200734) #define DAQmxErrorDigFilterMinPulseWidthSetWhenTristateIsFalse (-200733) #define DAQmxErrorDigFilterEnableSetWhenTristateIsFalse (-200732) #define DAQmxErrorNoHWTimingWithOnDemand (-200731) #define DAQmxErrorCannotDetectChangesWhenTristateIsFalse (-200730) #define DAQmxErrorCannotHandshakeWhenTristateIsFalse (-200729) #define DAQmxErrorLinesUsedForStaticInputNotForHandshakingControl (-200728) #define DAQmxErrorLinesUsedForHandshakingControlNotForStaticInput (-200727) #define DAQmxErrorLinesUsedForStaticInputNotForHandshakingInput (-200726) #define DAQmxErrorLinesUsedForHandshakingInputNotForStaticInput (-200725) #define DAQmxErrorDifferentDITristateValsForChansInTask (-200724) #define DAQmxErrorTimebaseCalFreqVarianceTooLarge (-200723) #define DAQmxErrorTimebaseCalFailedToConverge (-200722) #define DAQmxErrorInadequateResolutionForTimebaseCal (-200721) #define DAQmxErrorInvalidAOGainCalConst (-200720) #define DAQmxErrorInvalidAOOffsetCalConst (-200719) #define DAQmxErrorInvalidAIGainCalConst (-200718) #define DAQmxErrorInvalidAIOffsetCalConst (-200717) #define DAQmxErrorDigOutputOverrun (-200716) #define DAQmxErrorDigInputOverrun (-200715) #define DAQmxErrorAcqStoppedDriverCantXferDataFastEnough (-200714) #define DAQmxErrorChansCantAppearInSameTask (-200713) #define DAQmxErrorInputCfgFailedBecauseWatchdogExpired (-200712) #define DAQmxErrorAnalogTrigChanNotExternal (-200711) #define DAQmxErrorTooManyChansForInternalAIInputSrc (-200710) #define DAQmxErrorTEDSSensorNotDetected (-200709) #define DAQmxErrorPrptyGetSpecdActiveItemFailedDueToDifftValues (-200708) #define DAQmxErrorRoutingDestTermPXIClk10InNotInSlot2 (-200706) #define DAQmxErrorRoutingDestTermPXIStarXNotInSlot2 (-200705) #define DAQmxErrorRoutingSrcTermPXIStarXNotInSlot2 (-200704) #define DAQmxErrorRoutingSrcTermPXIStarInSlot16AndAbove (-200703) #define DAQmxErrorRoutingDestTermPXIStarInSlot16AndAbove (-200702) #define DAQmxErrorRoutingDestTermPXIStarInSlot2 (-200701) #define DAQmxErrorRoutingSrcTermPXIStarInSlot2 (-200700) #define DAQmxErrorRoutingDestTermPXIChassisNotIdentified (-200699) #define DAQmxErrorRoutingSrcTermPXIChassisNotIdentified (-200698) #define DAQmxErrorFailedToAcquireCalData (-200697) #define DAQmxErrorBridgeOffsetNullingCalNotSupported (-200696) #define DAQmxErrorAIMaxNotSpecified (-200695) #define DAQmxErrorAIMinNotSpecified (-200694) #define DAQmxErrorOddTotalBufferSizeToWrite (-200693) #define DAQmxErrorOddTotalNumSampsToWrite (-200692) #define DAQmxErrorBufferWithWaitMode (-200691) #define DAQmxErrorBufferWithHWTimedSinglePointSampMode (-200690) #define DAQmxErrorCOWritePulseLowTicksNotSupported (-200689) #define DAQmxErrorCOWritePulseHighTicksNotSupported (-200688) #define DAQmxErrorCOWritePulseLowTimeOutOfRange (-200687) #define DAQmxErrorCOWritePulseHighTimeOutOfRange (-200686) #define DAQmxErrorCOWriteFreqOutOfRange (-200685) #define DAQmxErrorCOWriteDutyCycleOutOfRange (-200684) #define DAQmxErrorInvalidInstallation (-200683) #define DAQmxErrorRefTrigMasterSessionUnavailable (-200682) #define DAQmxErrorRouteFailedBecauseWatchdogExpired (-200681) #define DAQmxErrorDeviceShutDownDueToHighTemp (-200680) #define DAQmxErrorNoMemMapWhenHWTimedSinglePoint (-200679) #define DAQmxErrorWriteFailedBecauseWatchdogExpired (-200678) #define DAQmxErrorDifftInternalAIInputSrcs (-200677) #define DAQmxErrorDifftAIInputSrcInOneChanGroup (-200676) #define DAQmxErrorInternalAIInputSrcInMultChanGroups (-200675) #define DAQmxErrorSwitchOpFailedDueToPrevError (-200674) #define DAQmxErrorWroteMultiSampsUsingSingleSampWrite (-200673) #define DAQmxErrorMismatchedInputArraySizes (-200672) #define DAQmxErrorCantExceedRelayDriveLimit (-200671) #define DAQmxErrorDACRngLowNotEqualToMinusRefVal (-200670) #define DAQmxErrorCantAllowConnectDACToGnd (-200669) #define DAQmxErrorWatchdogTimeoutOutOfRangeAndNotSpecialVal (-200668) #define DAQmxErrorNoWatchdogOutputOnPortReservedForInput (-200667) #define DAQmxErrorNoInputOnPortCfgdForWatchdogOutput (-200666) #define DAQmxErrorWatchdogExpirationStateNotEqualForLinesInPort (-200665) #define DAQmxErrorCannotPerformOpWhenTaskNotReserved (-200664) #define DAQmxErrorPowerupStateNotSupported (-200663) #define DAQmxErrorWatchdogTimerNotSupported (-200662) #define DAQmxErrorOpNotSupportedWhenRefClkSrcNone (-200661) #define DAQmxErrorSampClkRateUnavailable (-200660) #define DAQmxErrorPrptyGetSpecdSingleActiveChanFailedDueToDifftVals (-200659) #define DAQmxErrorPrptyGetImpliedActiveChanFailedDueToDifftVals (-200658) #define DAQmxErrorPrptyGetSpecdActiveChanFailedDueToDifftVals (-200657) #define DAQmxErrorNoRegenWhenUsingBrdMem (-200656) #define DAQmxErrorNonbufferedReadMoreThanSampsPerChan (-200655) #define DAQmxErrorWatchdogExpirationTristateNotSpecdForEntirePort (-200654) #define DAQmxErrorPowerupTristateNotSpecdForEntirePort (-200653) #define DAQmxErrorPowerupStateNotSpecdForEntirePort (-200652) #define DAQmxErrorCantSetWatchdogExpirationOnDigInChan (-200651) #define DAQmxErrorCantSetPowerupStateOnDigInChan (-200650) #define DAQmxErrorPhysChanNotInTask (-200649) #define DAQmxErrorPhysChanDevNotInTask (-200648) #define DAQmxErrorDigInputNotSupported (-200647) #define DAQmxErrorDigFilterIntervalNotEqualForLines (-200646) #define DAQmxErrorDigFilterIntervalAlreadyCfgd (-200645) #define DAQmxErrorCantResetExpiredWatchdog (-200644) #define DAQmxErrorActiveChanTooManyLinesSpecdWhenGettingPrpty (-200643) #define DAQmxErrorActiveChanNotSpecdWhenGetting1LinePrpty (-200642) #define DAQmxErrorDigPrptyCannotBeSetPerLine (-200641) #define DAQmxErrorSendAdvCmpltAfterWaitForTrigInScanlist (-200640) #define DAQmxErrorDisconnectionRequiredInScanlist (-200639) #define DAQmxErrorTwoWaitForTrigsAfterConnectionInScanlist (-200638) #define DAQmxErrorActionSeparatorRequiredAfterBreakingConnectionInScanlist (-200637) #define DAQmxErrorConnectionInScanlistMustWaitForTrig (-200636) #define DAQmxErrorActionNotSupportedTaskNotWatchdog (-200635) #define DAQmxErrorWfmNameSameAsScriptName (-200634) #define DAQmxErrorScriptNameSameAsWfmName (-200633) #define DAQmxErrorDSFStopClock (-200632) #define DAQmxErrorDSFReadyForStartClock (-200631) #define DAQmxErrorWriteOffsetNotMultOfIncr (-200630) #define DAQmxErrorDifferentPrptyValsNotSupportedOnDev (-200629) #define DAQmxErrorRefAndPauseTrigConfigured (-200628) #define DAQmxErrorFailedToEnableHighSpeedInputClock (-200627) #define DAQmxErrorEmptyPhysChanInPowerUpStatesArray (-200626) #define DAQmxErrorActivePhysChanTooManyLinesSpecdWhenGettingPrpty (-200625) #define DAQmxErrorActivePhysChanNotSpecdWhenGetting1LinePrpty (-200624) #define DAQmxErrorPXIDevTempCausedShutDown (-200623) #define DAQmxErrorInvalidNumSampsToWrite (-200622) #define DAQmxErrorOutputFIFOUnderflow2 (-200621) #define DAQmxErrorRepeatedAIPhysicalChan (-200620) #define DAQmxErrorMultScanOpsInOneChassis (-200619) #define DAQmxErrorInvalidAIChanOrder (-200618) #define DAQmxErrorReversePowerProtectionActivated (-200617) #define DAQmxErrorInvalidAsynOpHandle (-200616) #define DAQmxErrorFailedToEnableHighSpeedOutput (-200615) #define DAQmxErrorCannotReadPastEndOfRecord (-200614) #define DAQmxErrorAcqStoppedToPreventInputBufferOverwriteOneDataXferMech (-200613) #define DAQmxErrorZeroBasedChanIndexInvalid (-200612) #define DAQmxErrorNoChansOfGivenTypeInTask (-200611) #define DAQmxErrorSampClkSrcInvalidForOutputValidForInput (-200610) #define DAQmxErrorOutputBufSizeTooSmallToStartGen (-200609) #define DAQmxErrorInputBufSizeTooSmallToStartAcq (-200608) #define DAQmxErrorExportTwoSignalsOnSameTerminal (-200607) #define DAQmxErrorChanIndexInvalid (-200606) #define DAQmxErrorRangeSyntaxNumberTooBig (-200605) #define DAQmxErrorNULLPtr (-200604) #define DAQmxErrorScaledMinEqualMax (-200603) #define DAQmxErrorPreScaledMinEqualMax (-200602) #define DAQmxErrorPropertyNotSupportedForScaleType (-200601) #define DAQmxErrorChannelNameGenerationNumberTooBig (-200600) #define DAQmxErrorRepeatedNumberInScaledValues (-200599) #define DAQmxErrorRepeatedNumberInPreScaledValues (-200598) #define DAQmxErrorLinesAlreadyReservedForOutput (-200597) #define DAQmxErrorSwitchOperationChansSpanMultipleDevsInList (-200596) #define DAQmxErrorInvalidIDInListAtBeginningOfSwitchOperation (-200595) #define DAQmxErrorMStudioInvalidPolyDirection (-200594) #define DAQmxErrorMStudioPropertyGetWhileTaskNotVerified (-200593) #define DAQmxErrorRangeWithTooManyObjects (-200592) #define DAQmxErrorCppDotNetAPINegativeBufferSize (-200591) #define DAQmxErrorCppCantRemoveInvalidEventHandler (-200590) #define DAQmxErrorCppCantRemoveEventHandlerTwice (-200589) #define DAQmxErrorCppCantRemoveOtherObjectsEventHandler (-200588) #define DAQmxErrorDigLinesReservedOrUnavailable (-200587) #define DAQmxErrorDSFFailedToResetStream (-200586) #define DAQmxErrorDSFReadyForOutputNotAsserted (-200585) #define DAQmxErrorSampToWritePerChanNotMultipleOfIncr (-200584) #define DAQmxErrorAOPropertiesCauseVoltageBelowMin (-200583) #define DAQmxErrorAOPropertiesCauseVoltageOverMax (-200582) #define DAQmxErrorPropertyNotSupportedWhenRefClkSrcNone (-200581) #define DAQmxErrorAIMaxTooSmall (-200580) #define DAQmxErrorAIMaxTooLarge (-200579) #define DAQmxErrorAIMinTooSmall (-200578) #define DAQmxErrorAIMinTooLarge (-200577) #define DAQmxErrorBuiltInCJCSrcNotSupported (-200576) #define DAQmxErrorTooManyPostTrigSampsPerChan (-200575) #define DAQmxErrorTrigLineNotFoundSingleDevRoute (-200574) #define DAQmxErrorDifferentInternalAIInputSources (-200573) #define DAQmxErrorDifferentAIInputSrcInOneChanGroup (-200572) #define DAQmxErrorInternalAIInputSrcInMultipleChanGroups (-200571) #define DAQmxErrorCAPIChanIndexInvalid (-200570) #define DAQmxErrorCollectionDoesNotMatchChanType (-200569) #define DAQmxErrorOutputCantStartChangedRegenerationMode (-200568) #define DAQmxErrorOutputCantStartChangedBufferSize (-200567) #define DAQmxErrorChanSizeTooBigForU32PortWrite (-200566) #define DAQmxErrorChanSizeTooBigForU8PortWrite (-200565) #define DAQmxErrorChanSizeTooBigForU32PortRead (-200564) #define DAQmxErrorChanSizeTooBigForU8PortRead (-200563) #define DAQmxErrorInvalidDigDataWrite (-200562) #define DAQmxErrorInvalidAODataWrite (-200561) #define DAQmxErrorWaitUntilDoneDoesNotIndicateDone (-200560) #define DAQmxErrorMultiChanTypesInTask (-200559) #define DAQmxErrorMultiDevsInTask (-200558) #define DAQmxErrorCannotSetPropertyWhenTaskRunning (-200557) #define DAQmxErrorCannotGetPropertyWhenTaskNotCommittedOrRunning (-200556) #define DAQmxErrorLeadingUnderscoreInString (-200555) #define DAQmxErrorTrailingSpaceInString (-200554) #define DAQmxErrorLeadingSpaceInString (-200553) #define DAQmxErrorInvalidCharInString (-200552) #define DAQmxErrorDLLBecameUnlocked (-200551) #define DAQmxErrorDLLLock (-200550) #define DAQmxErrorSelfCalConstsInvalid (-200549) #define DAQmxErrorInvalidTrigCouplingExceptForExtTrigChan (-200548) #define DAQmxErrorWriteFailsBufferSizeAutoConfigured (-200547) #define DAQmxErrorExtCalAdjustExtRefVoltageFailed (-200546) #define DAQmxErrorSelfCalFailedExtNoiseOrRefVoltageOutOfCal (-200545) #define DAQmxErrorExtCalTemperatureNotDAQmx (-200544) #define DAQmxErrorExtCalDateTimeNotDAQmx (-200543) #define DAQmxErrorSelfCalTemperatureNotDAQmx (-200542) #define DAQmxErrorSelfCalDateTimeNotDAQmx (-200541) #define DAQmxErrorDACRefValNotSet (-200540) #define DAQmxErrorAnalogMultiSampWriteNotSupported (-200539) #define DAQmxErrorInvalidActionInControlTask (-200538) #define DAQmxErrorPolyCoeffsInconsistent (-200537) #define DAQmxErrorSensorValTooLow (-200536) #define DAQmxErrorSensorValTooHigh (-200535) #define DAQmxErrorWaveformNameTooLong (-200534) #define DAQmxErrorIdentifierTooLongInScript (-200533) #define DAQmxErrorUnexpectedIDFollowingSwitchChanName (-200532) #define DAQmxErrorRelayNameNotSpecifiedInList (-200531) #define DAQmxErrorUnexpectedIDFollowingRelayNameInList (-200530) #define DAQmxErrorUnexpectedIDFollowingSwitchOpInList (-200529) #define DAQmxErrorInvalidLineGrouping (-200528) #define DAQmxErrorCtrMinMax (-200527) #define DAQmxErrorWriteChanTypeMismatch (-200526) #define DAQmxErrorReadChanTypeMismatch (-200525) #define DAQmxErrorWriteNumChansMismatch (-200524) #define DAQmxErrorOneChanReadForMultiChanTask (-200523) #define DAQmxErrorCannotSelfCalDuringExtCal (-200522) #define DAQmxErrorMeasCalAdjustOscillatorPhaseDAC (-200521) #define DAQmxErrorInvalidCalConstCalADCAdjustment (-200520) #define DAQmxErrorInvalidCalConstOscillatorFreqDACValue (-200519) #define DAQmxErrorInvalidCalConstOscillatorPhaseDACValue (-200518) #define DAQmxErrorInvalidCalConstOffsetDACValue (-200517) #define DAQmxErrorInvalidCalConstGainDACValue (-200516) #define DAQmxErrorInvalidNumCalADCReadsToAverage (-200515) #define DAQmxErrorInvalidCfgCalAdjustDirectPathOutputImpedance (-200514) #define DAQmxErrorInvalidCfgCalAdjustMainPathOutputImpedance (-200513) #define DAQmxErrorInvalidCfgCalAdjustMainPathPostAmpGainAndOffset (-200512) #define DAQmxErrorInvalidCfgCalAdjustMainPathPreAmpGain (-200511) #define DAQmxErrorInvalidCfgCalAdjustMainPreAmpOffset (-200510) #define DAQmxErrorMeasCalAdjustCalADC (-200509) #define DAQmxErrorMeasCalAdjustOscillatorFrequency (-200508) #define DAQmxErrorMeasCalAdjustDirectPathOutputImpedance (-200507) #define DAQmxErrorMeasCalAdjustMainPathOutputImpedance (-200506) #define DAQmxErrorMeasCalAdjustDirectPathGain (-200505) #define DAQmxErrorMeasCalAdjustMainPathPostAmpGainAndOffset (-200504) #define DAQmxErrorMeasCalAdjustMainPathPreAmpGain (-200503) #define DAQmxErrorMeasCalAdjustMainPathPreAmpOffset (-200502) #define DAQmxErrorInvalidDateTimeInEEPROM (-200501) #define DAQmxErrorUnableToLocateErrorResources (-200500) #define DAQmxErrorDotNetAPINotUnsigned32BitNumber (-200499) #define DAQmxErrorInvalidRangeOfObjectsSyntaxInString (-200498) #define DAQmxErrorAttemptToEnableLineNotPreviouslyDisabled (-200497) #define DAQmxErrorInvalidCharInPattern (-200496) #define DAQmxErrorIntermediateBufferFull (-200495) #define DAQmxErrorLoadTaskFailsBecauseNoTimingOnDev (-200494) #define DAQmxErrorCAPIReservedParamNotNULLNorEmpty (-200493) #define DAQmxErrorCAPIReservedParamNotNULL (-200492) #define DAQmxErrorCAPIReservedParamNotZero (-200491) #define DAQmxErrorSampleValueOutOfRange (-200490) #define DAQmxErrorChanAlreadyInTask (-200489) #define DAQmxErrorVirtualChanDoesNotExist (-200488) #define DAQmxErrorChanNotInTask (-200486) #define DAQmxErrorTaskNotInDataNeighborhood (-200485) #define DAQmxErrorCantSaveTaskWithoutReplace (-200484) #define DAQmxErrorCantSaveChanWithoutReplace (-200483) #define DAQmxErrorDevNotInTask (-200482) #define DAQmxErrorDevAlreadyInTask (-200481) #define DAQmxErrorCanNotPerformOpWhileTaskRunning (-200479) #define DAQmxErrorCanNotPerformOpWhenNoChansInTask (-200478) #define DAQmxErrorCanNotPerformOpWhenNoDevInTask (-200477) #define DAQmxErrorCannotPerformOpWhenTaskNotRunning (-200475) #define DAQmxErrorOperationTimedOut (-200474) #define DAQmxErrorCannotReadWhenAutoStartFalseAndTaskNotRunningOrCommitted (-200473) #define DAQmxErrorCannotWriteWhenAutoStartFalseAndTaskNotRunningOrCommitted (-200472) #define DAQmxErrorTaskVersionNew (-200470) #define DAQmxErrorChanVersionNew (-200469) #define DAQmxErrorEmptyString (-200467) #define DAQmxErrorChannelSizeTooBigForPortReadType (-200466) #define DAQmxErrorChannelSizeTooBigForPortWriteType (-200465) #define DAQmxErrorExpectedNumberOfChannelsVerificationFailed (-200464) #define DAQmxErrorNumLinesMismatchInReadOrWrite (-200463) #define DAQmxErrorOutputBufferEmpty (-200462) #define DAQmxErrorInvalidChanName (-200461) #define DAQmxErrorReadNoInputChansInTask (-200460) #define DAQmxErrorWriteNoOutputChansInTask (-200459) #define DAQmxErrorPropertyNotSupportedNotInputTask (-200457) #define DAQmxErrorPropertyNotSupportedNotOutputTask (-200456) #define DAQmxErrorGetPropertyNotInputBufferedTask (-200455) #define DAQmxErrorGetPropertyNotOutputBufferedTask (-200454) #define DAQmxErrorInvalidTimeoutVal (-200453) #define DAQmxErrorAttributeNotSupportedInTaskContext (-200452) #define DAQmxErrorAttributeNotQueryableUnlessTaskIsCommitted (-200451) #define DAQmxErrorAttributeNotSettableWhenTaskIsRunning (-200450) #define DAQmxErrorDACRngLowNotMinusRefValNorZero (-200449) #define DAQmxErrorDACRngHighNotEqualRefVal (-200448) #define DAQmxErrorUnitsNotFromCustomScale (-200447) #define DAQmxErrorInvalidVoltageReadingDuringExtCal (-200446) #define DAQmxErrorCalFunctionNotSupported (-200445) #define DAQmxErrorInvalidPhysicalChanForCal (-200444) #define DAQmxErrorExtCalNotComplete (-200443) #define DAQmxErrorCantSyncToExtStimulusFreqDuringCal (-200442) #define DAQmxErrorUnableToDetectExtStimulusFreqDuringCal (-200441) #define DAQmxErrorInvalidCloseAction (-200440) #define DAQmxErrorExtCalFunctionOutsideExtCalSession (-200439) #define DAQmxErrorInvalidCalArea (-200438) #define DAQmxErrorExtCalConstsInvalid (-200437) #define DAQmxErrorStartTrigDelayWithExtSampClk (-200436) #define DAQmxErrorDelayFromSampClkWithExtConv (-200435) #define DAQmxErrorFewerThan2PreScaledVals (-200434) #define DAQmxErrorFewerThan2ScaledValues (-200433) #define DAQmxErrorPhysChanOutputType (-200432) #define DAQmxErrorPhysChanMeasType (-200431) #define DAQmxErrorInvalidPhysChanType (-200430) #define DAQmxErrorLabVIEWEmptyTaskOrChans (-200429) #define DAQmxErrorLabVIEWInvalidTaskOrChans (-200428) #define DAQmxErrorInvalidRefClkRate (-200427) #define DAQmxErrorInvalidExtTrigImpedance (-200426) #define DAQmxErrorHystTrigLevelAIMax (-200425) #define DAQmxErrorLineNumIncompatibleWithVideoSignalFormat (-200424) #define DAQmxErrorTrigWindowAIMinAIMaxCombo (-200423) #define DAQmxErrorTrigAIMinAIMax (-200422) #define DAQmxErrorHystTrigLevelAIMin (-200421) #define DAQmxErrorInvalidSampRateConsiderRIS (-200420) #define DAQmxErrorInvalidReadPosDuringRIS (-200419) #define DAQmxErrorImmedTrigDuringRISMode (-200418) #define DAQmxErrorTDCNotEnabledDuringRISMode (-200417) #define DAQmxErrorMultiRecWithRIS (-200416) #define DAQmxErrorInvalidRefClkSrc (-200415) #define DAQmxErrorInvalidSampClkSrc (-200414) #define DAQmxErrorInsufficientOnBoardMemForNumRecsAndSamps (-200413) #define DAQmxErrorInvalidAIAttenuation (-200412) #define DAQmxErrorACCouplingNotAllowedWith50OhmImpedance (-200411) #define DAQmxErrorInvalidRecordNum (-200410) #define DAQmxErrorZeroSlopeLinearScale (-200409) #define DAQmxErrorZeroReversePolyScaleCoeffs (-200408) #define DAQmxErrorZeroForwardPolyScaleCoeffs (-200407) #define DAQmxErrorNoReversePolyScaleCoeffs (-200406) #define DAQmxErrorNoForwardPolyScaleCoeffs (-200405) #define DAQmxErrorNoPolyScaleCoeffs (-200404) #define DAQmxErrorReversePolyOrderLessThanNumPtsToCompute (-200403) #define DAQmxErrorReversePolyOrderNotPositive (-200402) #define DAQmxErrorNumPtsToComputeNotPositive (-200401) #define DAQmxErrorWaveformLengthNotMultipleOfIncr (-200400) #define DAQmxErrorCAPINoExtendedErrorInfoAvailable (-200399) #define DAQmxErrorCVIFunctionNotFoundInDAQmxDLL (-200398) #define DAQmxErrorCVIFailedToLoadDAQmxDLL (-200397) #define DAQmxErrorNoCommonTrigLineForImmedRoute (-200396) #define DAQmxErrorNoCommonTrigLineForTaskRoute (-200395) #define DAQmxErrorF64PrptyValNotUnsignedInt (-200394) #define DAQmxErrorRegisterNotWritable (-200393) #define DAQmxErrorInvalidOutputVoltageAtSampClkRate (-200392) #define DAQmxErrorStrobePhaseShiftDCMBecameUnlocked (-200391) #define DAQmxErrorDrivePhaseShiftDCMBecameUnlocked (-200390) #define DAQmxErrorClkOutPhaseShiftDCMBecameUnlocked (-200389) #define DAQmxErrorOutputBoardClkDCMBecameUnlocked (-200388) #define DAQmxErrorInputBoardClkDCMBecameUnlocked (-200387) #define DAQmxErrorInternalClkDCMBecameUnlocked (-200386) #define DAQmxErrorDCMLock (-200385) #define DAQmxErrorDataLineReservedForDynamicOutput (-200384) #define DAQmxErrorInvalidRefClkSrcGivenSampClkSrc (-200383) #define DAQmxErrorNoPatternMatcherAvailable (-200382) #define DAQmxErrorInvalidDelaySampRateBelowPhaseShiftDCMThresh (-200381) #define DAQmxErrorStrainGageCalibration (-200380) #define DAQmxErrorInvalidExtClockFreqAndDivCombo (-200379) #define DAQmxErrorCustomScaleDoesNotExist (-200378) #define DAQmxErrorOnlyFrontEndChanOpsDuringScan (-200377) #define DAQmxErrorInvalidOptionForDigitalPortChannel (-200376) #define DAQmxErrorUnsupportedSignalTypeExportSignal (-200375) #define DAQmxErrorInvalidSignalTypeExportSignal (-200374) #define DAQmxErrorUnsupportedTrigTypeSendsSWTrig (-200373) #define DAQmxErrorInvalidTrigTypeSendsSWTrig (-200372) #define DAQmxErrorRepeatedPhysicalChan (-200371) #define DAQmxErrorResourcesInUseForRouteInTask (-200370) #define DAQmxErrorResourcesInUseForRoute (-200369) #define DAQmxErrorRouteNotSupportedByHW (-200368) #define DAQmxErrorResourcesInUseForExportSignalPolarity (-200367) #define DAQmxErrorResourcesInUseForInversionInTask (-200366) #define DAQmxErrorResourcesInUseForInversion (-200365) #define DAQmxErrorExportSignalPolarityNotSupportedByHW (-200364) #define DAQmxErrorInversionNotSupportedByHW (-200363) #define DAQmxErrorOverloadedChansExistNotRead (-200362) #define DAQmxErrorInputFIFOOverflow2 (-200361) #define DAQmxErrorCJCChanNotSpecd (-200360) #define DAQmxErrorCtrExportSignalNotPossible (-200359) #define DAQmxErrorRefTrigWhenContinuous (-200358) #define DAQmxErrorIncompatibleSensorOutputAndDeviceInputRanges (-200357) #define DAQmxErrorCustomScaleNameUsed (-200356) #define DAQmxErrorPropertyValNotSupportedByHW (-200355) #define DAQmxErrorPropertyValNotValidTermName (-200354) #define DAQmxErrorResourcesInUseForProperty (-200353) #define DAQmxErrorCJCChanAlreadyUsed (-200352) #define DAQmxErrorForwardPolynomialCoefNotSpecd (-200351) #define DAQmxErrorTableScaleNumPreScaledAndScaledValsNotEqual (-200350) #define DAQmxErrorTableScalePreScaledValsNotSpecd (-200349) #define DAQmxErrorTableScaleScaledValsNotSpecd (-200348) #define DAQmxErrorIntermediateBufferSizeNotMultipleOfIncr (-200347) #define DAQmxErrorEventPulseWidthOutOfRange (-200346) #define DAQmxErrorEventDelayOutOfRange (-200345) #define DAQmxErrorSampPerChanNotMultipleOfIncr (-200344) #define DAQmxErrorCannotCalculateNumSampsTaskNotStarted (-200343) #define DAQmxErrorScriptNotInMem (-200342) #define DAQmxErrorOnboardMemTooSmall (-200341) #define DAQmxErrorReadAllAvailableDataWithoutBuffer (-200340) #define DAQmxErrorPulseActiveAtStart (-200339) #define DAQmxErrorCalTempNotSupported (-200338) #define DAQmxErrorDelayFromSampClkTooLong (-200337) #define DAQmxErrorDelayFromSampClkTooShort (-200336) #define DAQmxErrorAIConvRateTooHigh (-200335) #define DAQmxErrorDelayFromStartTrigTooLong (-200334) #define DAQmxErrorDelayFromStartTrigTooShort (-200333) #define DAQmxErrorSampRateTooHigh (-200332) #define DAQmxErrorSampRateTooLow (-200331) #define DAQmxErrorPFI0UsedForAnalogAndDigitalSrc (-200330) #define DAQmxErrorPrimingCfgFIFO (-200329) #define DAQmxErrorCannotOpenTopologyCfgFile (-200328) #define DAQmxErrorInvalidDTInsideWfmDataType (-200327) #define DAQmxErrorRouteSrcAndDestSame (-200326) #define DAQmxErrorReversePolynomialCoefNotSpecd (-200325) #define DAQmxErrorDevAbsentOrUnavailable (-200324) #define DAQmxErrorNoAdvTrigForMultiDevScan (-200323) #define DAQmxErrorInterruptsInsufficientDataXferMech (-200322) #define DAQmxErrorInvalidAttentuationBasedOnMinMax (-200321) #define DAQmxErrorCabledModuleCannotRouteSSH (-200320) #define DAQmxErrorCabledModuleCannotRouteConvClk (-200319) #define DAQmxErrorInvalidExcitValForScaling (-200318) #define DAQmxErrorNoDevMemForScript (-200317) #define DAQmxErrorScriptDataUnderflow (-200316) #define DAQmxErrorNoDevMemForWaveform (-200315) #define DAQmxErrorStreamDCMBecameUnlocked (-200314) #define DAQmxErrorStreamDCMLock (-200313) #define DAQmxErrorWaveformNotInMem (-200312) #define DAQmxErrorWaveformWriteOutOfBounds (-200311) #define DAQmxErrorWaveformPreviouslyAllocated (-200310) #define DAQmxErrorSampClkTbMasterTbDivNotAppropriateForSampTbSrc (-200309) #define DAQmxErrorSampTbRateSampTbSrcMismatch (-200308) #define DAQmxErrorMasterTbRateMasterTbSrcMismatch (-200307) #define DAQmxErrorSampsPerChanTooBig (-200306) #define DAQmxErrorFinitePulseTrainNotPossible (-200305) #define DAQmxErrorExtMasterTimebaseRateNotSpecified (-200304) #define DAQmxErrorExtSampClkSrcNotSpecified (-200303) #define DAQmxErrorInputSignalSlowerThanMeasTime (-200302) #define DAQmxErrorCannotUpdatePulseGenProperty (-200301) #define DAQmxErrorInvalidTimingType (-200300) #define DAQmxErrorPropertyUnavailWhenUsingOnboardMemory (-200297) #define DAQmxErrorCannotWriteAfterStartWithOnboardMemory (-200295) #define DAQmxErrorNotEnoughSampsWrittenForInitialXferRqstCondition (-200294) #define DAQmxErrorNoMoreSpace (-200293) #define DAQmxErrorSamplesCanNotYetBeWritten (-200292) #define DAQmxErrorGenStoppedToPreventIntermediateBufferRegenOfOldSamples (-200291) #define DAQmxErrorGenStoppedToPreventRegenOfOldSamples (-200290) #define DAQmxErrorSamplesNoLongerWriteable (-200289) #define DAQmxErrorSamplesWillNeverBeGenerated (-200288) #define DAQmxErrorNegativeWriteSampleNumber (-200287) #define DAQmxErrorNoAcqStarted (-200286) #define DAQmxErrorSamplesNotYetAvailable (-200284) #define DAQmxErrorAcqStoppedToPreventIntermediateBufferOverflow (-200283) #define DAQmxErrorNoRefTrigConfigured (-200282) #define DAQmxErrorCannotReadRelativeToRefTrigUntilDone (-200281) #define DAQmxErrorSamplesNoLongerAvailable (-200279) #define DAQmxErrorSamplesWillNeverBeAvailable (-200278) #define DAQmxErrorNegativeReadSampleNumber (-200277) #define DAQmxErrorExternalSampClkAndRefClkThruSameTerm (-200276) #define DAQmxErrorExtSampClkRateTooLowForClkIn (-200275) #define DAQmxErrorExtSampClkRateTooHighForBackplane (-200274) #define DAQmxErrorSampClkRateAndDivCombo (-200273) #define DAQmxErrorSampClkRateTooLowForDivDown (-200272) #define DAQmxErrorProductOfAOMinAndGainTooSmall (-200271) #define DAQmxErrorInterpolationRateNotPossible (-200270) #define DAQmxErrorOffsetTooLarge (-200269) #define DAQmxErrorOffsetTooSmall (-200268) #define DAQmxErrorProductOfAOMaxAndGainTooLarge (-200267) #define DAQmxErrorMinAndMaxNotSymmetric (-200266) #define DAQmxErrorInvalidAnalogTrigSrc (-200265) #define DAQmxErrorTooManyChansForAnalogRefTrig (-200264) #define DAQmxErrorTooManyChansForAnalogPauseTrig (-200263) #define DAQmxErrorTrigWhenOnDemandSampTiming (-200262) #define DAQmxErrorInconsistentAnalogTrigSettings (-200261) #define DAQmxErrorMemMapDataXferModeSampTimingCombo (-200260) #define DAQmxErrorInvalidJumperedAttr (-200259) #define DAQmxErrorInvalidGainBasedOnMinMax (-200258) #define DAQmxErrorInconsistentExcit (-200257) #define DAQmxErrorTopologyNotSupportedByCfgTermBlock (-200256) #define DAQmxErrorBuiltInTempSensorNotSupported (-200255) #define DAQmxErrorInvalidTerm (-200254) #define DAQmxErrorCannotTristateTerm (-200253) #define DAQmxErrorCannotTristateBusyTerm (-200252) #define DAQmxErrorNoDMAChansAvailable (-200251) #define DAQmxErrorInvalidWaveformLengthWithinLoopInScript (-200250) #define DAQmxErrorInvalidSubsetLengthWithinLoopInScript (-200249) #define DAQmxErrorMarkerPosInvalidForLoopInScript (-200248) #define DAQmxErrorIntegerExpectedInScript (-200247) #define DAQmxErrorPLLBecameUnlocked (-200246) #define DAQmxErrorPLLLock (-200245) #define DAQmxErrorDDCClkOutDCMBecameUnlocked (-200244) #define DAQmxErrorDDCClkOutDCMLock (-200243) #define DAQmxErrorClkDoublerDCMBecameUnlocked (-200242) #define DAQmxErrorClkDoublerDCMLock (-200241) #define DAQmxErrorSampClkDCMBecameUnlocked (-200240) #define DAQmxErrorSampClkDCMLock (-200239) #define DAQmxErrorSampClkTimebaseDCMBecameUnlocked (-200238) #define DAQmxErrorSampClkTimebaseDCMLock (-200237) #define DAQmxErrorAttrCannotBeReset (-200236) #define DAQmxErrorExplanationNotFound (-200235) #define DAQmxErrorWriteBufferTooSmall (-200234) #define DAQmxErrorSpecifiedAttrNotValid (-200233) #define DAQmxErrorAttrCannotBeRead (-200232) #define DAQmxErrorAttrCannotBeSet (-200231) #define DAQmxErrorNULLPtrForC_Api (-200230) #define DAQmxErrorReadBufferTooSmall (-200229) #define DAQmxErrorBufferTooSmallForString (-200228) #define DAQmxErrorNoAvailTrigLinesOnDevice (-200227) #define DAQmxErrorTrigBusLineNotAvail (-200226) #define DAQmxErrorCouldNotReserveRequestedTrigLine (-200225) #define DAQmxErrorTrigLineNotFound (-200224) #define DAQmxErrorSCXI1126ThreshHystCombination (-200223) #define DAQmxErrorAcqStoppedToPreventInputBufferOverwrite (-200222) #define DAQmxErrorTimeoutExceeded (-200221) #define DAQmxErrorInvalidDeviceID (-200220) #define DAQmxErrorInvalidAOChanOrder (-200219) #define DAQmxErrorSampleTimingTypeAndDataXferMode (-200218) #define DAQmxErrorBufferWithOnDemandSampTiming (-200217) #define DAQmxErrorBufferAndDataXferMode (-200216) #define DAQmxErrorMemMapAndBuffer (-200215) #define DAQmxErrorNoAnalogTrigHW (-200214) #define DAQmxErrorTooManyPretrigPlusMinPostTrigSamps (-200213) #define DAQmxErrorInconsistentUnitsSpecified (-200212) #define DAQmxErrorMultipleRelaysForSingleRelayOp (-200211) #define DAQmxErrorMultipleDevIDsPerChassisSpecifiedInList (-200210) #define DAQmxErrorDuplicateDevIDInList (-200209) #define DAQmxErrorInvalidRangeStatementCharInList (-200208) #define DAQmxErrorInvalidDeviceIDInList (-200207) #define DAQmxErrorTriggerPolarityConflict (-200206) #define DAQmxErrorCannotScanWithCurrentTopology (-200205) #define DAQmxErrorUnexpectedIdentifierInFullySpecifiedPathInList (-200204) #define DAQmxErrorSwitchCannotDriveMultipleTrigLines (-200203) #define DAQmxErrorInvalidRelayName (-200202) #define DAQmxErrorSwitchScanlistTooBig (-200201) #define DAQmxErrorSwitchChanInUse (-200200) #define DAQmxErrorSwitchNotResetBeforeScan (-200199) #define DAQmxErrorInvalidTopology (-200198) #define DAQmxErrorAttrNotSupported (-200197) #define DAQmxErrorUnexpectedEndOfActionsInList (-200196) #define DAQmxErrorPowerLimitExceeded (-200195) #define DAQmxErrorHWUnexpectedlyPoweredOffAndOn (-200194) #define DAQmxErrorSwitchOperationNotSupported (-200193) #define DAQmxErrorOnlyContinuousScanSupported (-200192) #define DAQmxErrorSwitchDifferentTopologyWhenScanning (-200191) #define DAQmxErrorDisconnectPathNotSameAsExistingPath (-200190) #define DAQmxErrorConnectionNotPermittedOnChanReservedForRouting (-200189) #define DAQmxErrorCannotConnectSrcChans (-200188) #define DAQmxErrorCannotConnectChannelToItself (-200187) #define DAQmxErrorChannelNotReservedForRouting (-200186) #define DAQmxErrorCannotConnectChansDirectly (-200185) #define DAQmxErrorChansAlreadyConnected (-200184) #define DAQmxErrorChanDuplicatedInPath (-200183) #define DAQmxErrorNoPathToDisconnect (-200182) #define DAQmxErrorInvalidSwitchChan (-200181) #define DAQmxErrorNoPathAvailableBetween2SwitchChans (-200180) #define DAQmxErrorExplicitConnectionExists (-200179) #define DAQmxErrorSwitchDifferentSettlingTimeWhenScanning (-200178) #define DAQmxErrorOperationOnlyPermittedWhileScanning (-200177) #define DAQmxErrorOperationNotPermittedWhileScanning (-200176) #define DAQmxErrorHardwareNotResponding (-200175) #define DAQmxErrorInvalidSampAndMasterTimebaseRateCombo (-200173) #define DAQmxErrorNonZeroBufferSizeInProgIOXfer (-200172) #define DAQmxErrorVirtualChanNameUsed (-200171) #define DAQmxErrorPhysicalChanDoesNotExist (-200170) #define DAQmxErrorMemMapOnlyForProgIOXfer (-200169) #define DAQmxErrorTooManyChans (-200168) #define DAQmxErrorCannotHaveCJTempWithOtherChans (-200167) #define DAQmxErrorOutputBufferUnderwrite (-200166) #define DAQmxErrorSensorInvalidCompletionResistance (-200163) #define DAQmxErrorVoltageExcitIncompatibleWith2WireCfg (-200162) #define DAQmxErrorIntExcitSrcNotAvailable (-200161) #define DAQmxErrorCannotCreateChannelAfterTaskVerified (-200160) #define DAQmxErrorLinesReservedForSCXIControl (-200159) #define DAQmxErrorCouldNotReserveLinesForSCXIControl (-200158) #define DAQmxErrorCalibrationFailed (-200157) #define DAQmxErrorReferenceFrequencyInvalid (-200156) #define DAQmxErrorReferenceResistanceInvalid (-200155) #define DAQmxErrorReferenceCurrentInvalid (-200154) #define DAQmxErrorReferenceVoltageInvalid (-200153) #define DAQmxErrorEEPROMDataInvalid (-200152) #define DAQmxErrorCabledModuleNotCapableOfRoutingAI (-200151) #define DAQmxErrorChannelNotAvailableInParallelMode (-200150) #define DAQmxErrorExternalTimebaseRateNotKnownForDelay (-200149) #define DAQmxErrorFREQOUTCannotProduceDesiredFrequency (-200148) #define DAQmxErrorMultipleCounterInputTask (-200147) #define DAQmxErrorCounterStartPauseTriggerConflict (-200146) #define DAQmxErrorCounterInputPauseTriggerAndSampleClockInvalid (-200145) #define DAQmxErrorCounterOutputPauseTriggerInvalid (-200144) #define DAQmxErrorCounterTimebaseRateNotSpecified (-200143) #define DAQmxErrorCounterTimebaseRateNotFound (-200142) #define DAQmxErrorCounterOverflow (-200141) #define DAQmxErrorCounterNoTimebaseEdgesBetweenGates (-200140) #define DAQmxErrorCounterMaxMinRangeFreq (-200139) #define DAQmxErrorCounterMaxMinRangeTime (-200138) #define DAQmxErrorSuitableTimebaseNotFoundTimeCombo (-200137) #define DAQmxErrorSuitableTimebaseNotFoundFrequencyCombo (-200136) #define DAQmxErrorInternalTimebaseSourceDivisorCombo (-200135) #define DAQmxErrorInternalTimebaseSourceRateCombo (-200134) #define DAQmxErrorInternalTimebaseRateDivisorSourceCombo (-200133) #define DAQmxErrorExternalTimebaseRateNotknownForRate (-200132) #define DAQmxErrorAnalogTrigChanNotFirstInScanList (-200131) #define DAQmxErrorNoDivisorForExternalSignal (-200130) #define DAQmxErrorAttributeInconsistentAcrossRepeatedPhysicalChannels (-200128) #define DAQmxErrorCannotHandshakeWithPort0 (-200127) #define DAQmxErrorControlLineConflictOnPortC (-200126) #define DAQmxErrorLines4To7ConfiguredForOutput (-200125) #define DAQmxErrorLines4To7ConfiguredForInput (-200124) #define DAQmxErrorLines0To3ConfiguredForOutput (-200123) #define DAQmxErrorLines0To3ConfiguredForInput (-200122) #define DAQmxErrorPortConfiguredForOutput (-200121) #define DAQmxErrorPortConfiguredForInput (-200120) #define DAQmxErrorPortConfiguredForStaticDigitalOps (-200119) #define DAQmxErrorPortReservedForHandshaking (-200118) #define DAQmxErrorPortDoesNotSupportHandshakingDataIO (-200117) #define DAQmxErrorCannotTristate8255OutputLines (-200116) #define DAQmxErrorTemperatureOutOfRangeForCalibration (-200113) #define DAQmxErrorCalibrationHandleInvalid (-200112) #define DAQmxErrorPasswordRequired (-200111) #define DAQmxErrorIncorrectPassword (-200110) #define DAQmxErrorPasswordTooLong (-200109) #define DAQmxErrorCalibrationSessionAlreadyOpen (-200108) #define DAQmxErrorSCXIModuleIncorrect (-200107) #define DAQmxErrorAttributeInconsistentAcrossChannelsOnDevice (-200106) #define DAQmxErrorSCXI1122ResistanceChanNotSupportedForCfg (-200105) #define DAQmxErrorBracketPairingMismatchInList (-200104) #define DAQmxErrorInconsistentNumSamplesToWrite (-200103) #define DAQmxErrorIncorrectDigitalPattern (-200102) #define DAQmxErrorIncorrectNumChannelsToWrite (-200101) #define DAQmxErrorIncorrectReadFunction (-200100) #define DAQmxErrorPhysicalChannelNotSpecified (-200099) #define DAQmxErrorMoreThanOneTerminal (-200098) #define DAQmxErrorMoreThanOneActiveChannelSpecified (-200097) #define DAQmxErrorInvalidNumberSamplesToRead (-200096) #define DAQmxErrorAnalogWaveformExpected (-200095) #define DAQmxErrorDigitalWaveformExpected (-200094) #define DAQmxErrorActiveChannelNotSpecified (-200093) #define DAQmxErrorFunctionNotSupportedForDeviceTasks (-200092) #define DAQmxErrorFunctionNotInLibrary (-200091) #define DAQmxErrorLibraryNotPresent (-200090) #define DAQmxErrorDuplicateTask (-200089) #define DAQmxErrorInvalidTask (-200088) #define DAQmxErrorInvalidChannel (-200087) #define DAQmxErrorInvalidSyntaxForPhysicalChannelRange (-200086) #define DAQmxErrorMinNotLessThanMax (-200082) #define DAQmxErrorSampleRateNumChansConvertPeriodCombo (-200081) #define DAQmxErrorAODuringCounter1DMAConflict (-200079) #define DAQmxErrorAIDuringCounter0DMAConflict (-200078) #define DAQmxErrorInvalidAttributeValue (-200077) #define DAQmxErrorSuppliedCurrentDataOutsideSpecifiedRange (-200076) #define DAQmxErrorSuppliedVoltageDataOutsideSpecifiedRange (-200075) #define DAQmxErrorCannotStoreCalConst (-200074) #define DAQmxErrorSCXIModuleNotFound (-200073) #define DAQmxErrorDuplicatePhysicalChansNotSupported (-200072) #define DAQmxErrorTooManyPhysicalChansInList (-200071) #define DAQmxErrorInvalidAdvanceEventTriggerType (-200070) #define DAQmxErrorDeviceIsNotAValidSwitch (-200069) #define DAQmxErrorDeviceDoesNotSupportScanning (-200068) #define DAQmxErrorScanListCannotBeTimed (-200067) #define DAQmxErrorConnectOperatorInvalidAtPointInList (-200066) #define DAQmxErrorUnexpectedSwitchActionInList (-200065) #define DAQmxErrorUnexpectedSeparatorInList (-200064) #define DAQmxErrorExpectedTerminatorInList (-200063) #define DAQmxErrorExpectedConnectOperatorInList (-200062) #define DAQmxErrorExpectedSeparatorInList (-200061) #define DAQmxErrorFullySpecifiedPathInListContainsRange (-200060) #define DAQmxErrorConnectionSeparatorAtEndOfList (-200059) #define DAQmxErrorIdentifierInListTooLong (-200058) #define DAQmxErrorDuplicateDeviceIDInListWhenSettling (-200057) #define DAQmxErrorChannelNameNotSpecifiedInList (-200056) #define DAQmxErrorDeviceIDNotSpecifiedInList (-200055) #define DAQmxErrorSemicolonDoesNotFollowRangeInList (-200054) #define DAQmxErrorSwitchActionInListSpansMultipleDevices (-200053) #define DAQmxErrorRangeWithoutAConnectActionInList (-200052) #define DAQmxErrorInvalidIdentifierFollowingSeparatorInList (-200051) #define DAQmxErrorInvalidChannelNameInList (-200050) #define DAQmxErrorInvalidNumberInRepeatStatementInList (-200049) #define DAQmxErrorInvalidTriggerLineInList (-200048) #define DAQmxErrorInvalidIdentifierInListFollowingDeviceID (-200047) #define DAQmxErrorInvalidIdentifierInListAtEndOfSwitchAction (-200046) #define DAQmxErrorDeviceRemoved (-200045) #define DAQmxErrorRoutingPathNotAvailable (-200044) #define DAQmxErrorRoutingHardwareBusy (-200043) #define DAQmxErrorRequestedSignalInversionForRoutingNotPossible (-200042) #define DAQmxErrorInvalidRoutingDestinationTerminalName (-200041) #define DAQmxErrorInvalidRoutingSourceTerminalName (-200040) #define DAQmxErrorRoutingNotSupportedForDevice (-200039) #define DAQmxErrorWaitIsLastInstructionOfLoopInScript (-200038) #define DAQmxErrorClearIsLastInstructionOfLoopInScript (-200037) #define DAQmxErrorInvalidLoopIterationsInScript (-200036) #define DAQmxErrorRepeatLoopNestingTooDeepInScript (-200035) #define DAQmxErrorMarkerPositionOutsideSubsetInScript (-200034) #define DAQmxErrorSubsetStartOffsetNotAlignedInScript (-200033) #define DAQmxErrorInvalidSubsetLengthInScript (-200032) #define DAQmxErrorMarkerPositionNotAlignedInScript (-200031) #define DAQmxErrorSubsetOutsideWaveformInScript (-200030) #define DAQmxErrorMarkerOutsideWaveformInScript (-200029) #define DAQmxErrorWaveformInScriptNotInMem (-200028) #define DAQmxErrorKeywordExpectedInScript (-200027) #define DAQmxErrorBufferNameExpectedInScript (-200026) #define DAQmxErrorProcedureNameExpectedInScript (-200025) #define DAQmxErrorScriptHasInvalidIdentifier (-200024) #define DAQmxErrorScriptHasInvalidCharacter (-200023) #define DAQmxErrorResourceAlreadyReserved (-200022) #define DAQmxErrorSelfTestFailed (-200020) #define DAQmxErrorADCOverrun (-200019) #define DAQmxErrorDACUnderflow (-200018) #define DAQmxErrorInputFIFOUnderflow (-200017) #define DAQmxErrorOutputFIFOUnderflow (-200016) #define DAQmxErrorSCXISerialCommunication (-200015) #define DAQmxErrorDigitalTerminalSpecifiedMoreThanOnce (-200014) #define DAQmxErrorDigitalOutputNotSupported (-200012) #define DAQmxErrorInconsistentChannelDirections (-200011) #define DAQmxErrorInputFIFOOverflow (-200010) #define DAQmxErrorTimeStampOverwritten (-200009) #define DAQmxErrorStopTriggerHasNotOccurred (-200008) #define DAQmxErrorRecordNotAvailable (-200007) #define DAQmxErrorRecordOverwritten (-200006) #define DAQmxErrorDataNotAvailable (-200005) #define DAQmxErrorDataOverwrittenInDeviceMemory (-200004) #define DAQmxErrorDuplicatedChannel (-200003) #define DAQmxWarningTimestampCounterRolledOver (200003) #define DAQmxWarningInputTerminationOverloaded (200004) #define DAQmxWarningADCOverloaded (200005) #define DAQmxWarningPLLUnlocked (200007) #define DAQmxWarningCounter0DMADuringAIConflict (200008) #define DAQmxWarningCounter1DMADuringAOConflict (200009) #define DAQmxWarningStoppedBeforeDone (200010) #define DAQmxWarningRateViolatesSettlingTime (200011) #define DAQmxWarningRateViolatesMaxADCRate (200012) #define DAQmxWarningUserDefInfoStringTooLong (200013) #define DAQmxWarningTooManyInterruptsPerSecond (200014) #define DAQmxWarningPotentialGlitchDuringWrite (200015) #define DAQmxWarningDevNotSelfCalibratedWithDAQmx (200016) #define DAQmxWarningAISampRateTooLow (200017) #define DAQmxWarningAIConvRateTooLow (200018) #define DAQmxWarningReadOffsetCoercion (200019) #define DAQmxWarningPretrigCoercion (200020) #define DAQmxWarningSampValCoercedToMax (200021) #define DAQmxWarningSampValCoercedToMin (200022) #define DAQmxWarningPropertyVersionNew (200024) #define DAQmxWarningUserDefinedInfoTooLong (200025) #define DAQmxWarningCAPIStringTruncatedToFitBuffer (200026) #define DAQmxWarningSampClkRateTooLow (200027) #define DAQmxWarningPossiblyInvalidCTRSampsInFiniteDMAAcq (200028) #define DAQmxWarningRISAcqCompletedSomeBinsNotFilled (200029) #define DAQmxWarningPXIDevTempExceedsMaxOpTemp (200030) #define DAQmxWarningOutputGainTooLowForRFFreq (200031) #define DAQmxWarningOutputGainTooHighForRFFreq (200032) #define DAQmxWarningMultipleWritesBetweenSampClks (200033) #define DAQmxWarningDeviceMayShutDownDueToHighTemp (200034) #define DAQmxWarningRateViolatesMinADCRate (200035) #define DAQmxWarningSampClkRateAboveDevSpecs (200036) #define DAQmxWarningCOPrevDAQmxWriteSettingsOverwrittenForHWTimedSinglePoint (200037) #define DAQmxWarningLowpassFilterSettlingTimeExceedsUserTimeBetween2ADCConversions (200038) #define DAQmxWarningLowpassFilterSettlingTimeExceedsDriverTimeBetween2ADCConversions (200039) #define DAQmxWarningSampClkRateViolatesSettlingTimeForGen (200040) #define DAQmxWarningInvalidCalConstValueForAI (200041) #define DAQmxWarningInvalidCalConstValueForAO (200042) #define DAQmxWarningChanCalExpired (200043) #define DAQmxWarningUnrecognizedEnumValueEncounteredInStorage (200044) #define DAQmxWarningTableCRCNotCorrect (200045) #define DAQmxWarningExternalCRCNotCorrect (200046) #define DAQmxWarningSelfCalCRCNotCorrect (200047) #define DAQmxWarningDeviceSpecExceeded (200048) #define DAQmxWarningOnlyGainCalibrated (200049) #define DAQmxWarningReversePowerProtectionActivated (200050) #define DAQmxWarningOverVoltageProtectionActivated (200051) #define DAQmxWarningBufferSizeNotMultipleOfSectorSize (200052) #define DAQmxWarningSampleRateMayCauseAcqToFail (200053) #define DAQmxWarningUserAreaCRCNotCorrect (200054) #define DAQmxWarningPowerUpInfoCRCNotCorrect (200055) #define DAQmxWarningReadNotCompleteBeforeSampClk (209800) #define DAQmxWarningWriteNotCompleteBeforeSampClk (209801) #define DAQmxWarningWaitForNextSampClkDetectedMissedSampClk (209802) #define DAQmxErrorRoutingDestTermPXIDStarXNotInSystemTimingSlot_Routing (-89167) #define DAQmxErrorRoutingSrcTermPXIDStarXNotInSystemTimingSlot_Routing (-89166) #define DAQmxErrorRoutingSrcTermPXIDStarInNonDStarTriggerSlot_Routing (-89165) #define DAQmxErrorRoutingDestTermPXIDStarInNonDStarTriggerSlot_Routing (-89164) #define DAQmxErrorRoutingDestTermPXIClk10InNotInStarTriggerSlot_Routing (-89162) #define DAQmxErrorRoutingDestTermPXIClk10InNotInSystemTimingSlot_Routing (-89161) #define DAQmxErrorRoutingDestTermPXIStarXNotInStarTriggerSlot_Routing (-89160) #define DAQmxErrorRoutingDestTermPXIStarXNotInSystemTimingSlot_Routing (-89159) #define DAQmxErrorRoutingSrcTermPXIStarXNotInStarTriggerSlot_Routing (-89158) #define DAQmxErrorRoutingSrcTermPXIStarXNotInSystemTimingSlot_Routing (-89157) #define DAQmxErrorRoutingSrcTermPXIStarInNonStarTriggerSlot_Routing (-89156) #define DAQmxErrorRoutingDestTermPXIStarInNonStarTriggerSlot_Routing (-89155) #define DAQmxErrorRoutingDestTermPXIStarInStarTriggerSlot_Routing (-89154) #define DAQmxErrorRoutingDestTermPXIStarInSystemTimingSlot_Routing (-89153) #define DAQmxErrorRoutingSrcTermPXIStarInStarTriggerSlot_Routing (-89152) #define DAQmxErrorRoutingSrcTermPXIStarInSystemTimingSlot_Routing (-89151) #define DAQmxErrorInvalidSignalModifier_Routing (-89150) #define DAQmxErrorRoutingDestTermPXIClk10InNotInSlot2_Routing (-89149) #define DAQmxErrorRoutingDestTermPXIStarXNotInSlot2_Routing (-89148) #define DAQmxErrorRoutingSrcTermPXIStarXNotInSlot2_Routing (-89147) #define DAQmxErrorRoutingSrcTermPXIStarInSlot16AndAbove_Routing (-89146) #define DAQmxErrorRoutingDestTermPXIStarInSlot16AndAbove_Routing (-89145) #define DAQmxErrorRoutingDestTermPXIStarInSlot2_Routing (-89144) #define DAQmxErrorRoutingSrcTermPXIStarInSlot2_Routing (-89143) #define DAQmxErrorRoutingDestTermPXIChassisNotIdentified_Routing (-89142) #define DAQmxErrorRoutingSrcTermPXIChassisNotIdentified_Routing (-89141) #define DAQmxErrorTrigLineNotFoundSingleDevRoute_Routing (-89140) #define DAQmxErrorNoCommonTrigLineForRoute_Routing (-89139) #define DAQmxErrorResourcesInUseForRouteInTask_Routing (-89138) #define DAQmxErrorResourcesInUseForRoute_Routing (-89137) #define DAQmxErrorRouteNotSupportedByHW_Routing (-89136) #define DAQmxErrorResourcesInUseForInversionInTask_Routing (-89135) #define DAQmxErrorResourcesInUseForInversion_Routing (-89134) #define DAQmxErrorInversionNotSupportedByHW_Routing (-89133) #define DAQmxErrorResourcesInUseForProperty_Routing (-89132) #define DAQmxErrorRouteSrcAndDestSame_Routing (-89131) #define DAQmxErrorDevAbsentOrUnavailable_Routing (-89130) #define DAQmxErrorInvalidTerm_Routing (-89129) #define DAQmxErrorCannotTristateTerm_Routing (-89128) #define DAQmxErrorCannotTristateBusyTerm_Routing (-89127) #define DAQmxErrorCouldNotReserveRequestedTrigLine_Routing (-89126) #define DAQmxErrorTrigLineNotFound_Routing (-89125) #define DAQmxErrorRoutingPathNotAvailable_Routing (-89124) #define DAQmxErrorRoutingHardwareBusy_Routing (-89123) #define DAQmxErrorRequestedSignalInversionForRoutingNotPossible_Routing (-89122) #define DAQmxErrorInvalidRoutingDestinationTerminalName_Routing (-89121) #define DAQmxErrorInvalidRoutingSourceTerminalName_Routing (-89120) #define DAQmxErrorServiceLocatorNotAvailable_Routing (-88907) #define DAQmxErrorCouldNotConnectToServer_Routing (-88900) #define DAQmxErrorDeviceNameContainsSpacesOrPunctuation_Routing (-88720) #define DAQmxErrorDeviceNameContainsNonprintableCharacters_Routing (-88719) #define DAQmxErrorDeviceNameIsEmpty_Routing (-88718) #define DAQmxErrorDeviceNameNotFound_Routing (-88717) #define DAQmxErrorLocalRemoteDriverVersionMismatch_Routing (-88716) #define DAQmxErrorDuplicateDeviceName_Routing (-88715) #define DAQmxErrorRuntimeAborting_Routing (-88710) #define DAQmxErrorRuntimeAborted_Routing (-88709) #define DAQmxErrorResourceNotInPool_Routing (-88708) #define DAQmxErrorDriverDeviceGUIDNotFound_Routing (-88705) #define DAQmxErrorPALIsocStreamBufferError (-50807) #define DAQmxErrorPALInvalidAddressComponent (-50806) #define DAQmxErrorPALSharingViolation (-50805) #define DAQmxErrorPALInvalidDeviceState (-50804) #define DAQmxErrorPALConnectionReset (-50803) #define DAQmxErrorPALConnectionAborted (-50802) #define DAQmxErrorPALConnectionRefused (-50801) #define DAQmxErrorPALBusResetOccurred (-50800) #define DAQmxErrorPALWaitInterrupted (-50700) #define DAQmxErrorPALMessageUnderflow (-50651) #define DAQmxErrorPALMessageOverflow (-50650) #define DAQmxErrorPALThreadAlreadyDead (-50604) #define DAQmxErrorPALThreadStackSizeNotSupported (-50603) #define DAQmxErrorPALThreadControllerIsNotThreadCreator (-50602) #define DAQmxErrorPALThreadHasNoThreadObject (-50601) #define DAQmxErrorPALThreadCouldNotRun (-50600) #define DAQmxErrorPALSyncAbandoned (-50551) #define DAQmxErrorPALSyncTimedOut (-50550) #define DAQmxErrorPALReceiverSocketInvalid (-50503) #define DAQmxErrorPALSocketListenerInvalid (-50502) #define DAQmxErrorPALSocketListenerAlreadyRegistered (-50501) #define DAQmxErrorPALDispatcherAlreadyExported (-50500) #define DAQmxErrorPALDMALinkEventMissed (-50450) #define DAQmxErrorPALBusError (-50413) #define DAQmxErrorPALRetryLimitExceeded (-50412) #define DAQmxErrorPALTransferOverread (-50411) #define DAQmxErrorPALTransferOverwritten (-50410) #define DAQmxErrorPALPhysicalBufferFull (-50409) #define DAQmxErrorPALPhysicalBufferEmpty (-50408) #define DAQmxErrorPALLogicalBufferFull (-50407) #define DAQmxErrorPALLogicalBufferEmpty (-50406) #define DAQmxErrorPALTransferAborted (-50405) #define DAQmxErrorPALTransferStopped (-50404) #define DAQmxErrorPALTransferInProgress (-50403) #define DAQmxErrorPALTransferNotInProgress (-50402) #define DAQmxErrorPALCommunicationsFault (-50401) #define DAQmxErrorPALTransferTimedOut (-50400) #define DAQmxErrorPALMemoryHeapNotEmpty (-50355) #define DAQmxErrorPALMemoryBlockCheckFailed (-50354) #define DAQmxErrorPALMemoryPageLockFailed (-50353) #define DAQmxErrorPALMemoryFull (-50352) #define DAQmxErrorPALMemoryAlignmentFault (-50351) #define DAQmxErrorPALMemoryConfigurationFault (-50350) #define DAQmxErrorPALDeviceInitializationFault (-50303) #define DAQmxErrorPALDeviceNotSupported (-50302) #define DAQmxErrorPALDeviceUnknown (-50301) #define DAQmxErrorPALDeviceNotFound (-50300) #define DAQmxErrorPALFeatureDisabled (-50265) #define DAQmxErrorPALComponentBusy (-50264) #define DAQmxErrorPALComponentAlreadyInstalled (-50263) #define DAQmxErrorPALComponentNotUnloadable (-50262) #define DAQmxErrorPALComponentNeverLoaded (-50261) #define DAQmxErrorPALComponentAlreadyLoaded (-50260) #define DAQmxErrorPALComponentCircularDependency (-50259) #define DAQmxErrorPALComponentInitializationFault (-50258) #define DAQmxErrorPALComponentImageCorrupt (-50257) #define DAQmxErrorPALFeatureNotSupported (-50256) #define DAQmxErrorPALFunctionNotFound (-50255) #define DAQmxErrorPALFunctionObsolete (-50254) #define DAQmxErrorPALComponentTooNew (-50253) #define DAQmxErrorPALComponentTooOld (-50252) #define DAQmxErrorPALComponentNotFound (-50251) #define DAQmxErrorPALVersionMismatch (-50250) #define DAQmxErrorPALFileFault (-50209) #define DAQmxErrorPALFileWriteFault (-50208) #define DAQmxErrorPALFileReadFault (-50207) #define DAQmxErrorPALFileSeekFault (-50206) #define DAQmxErrorPALFileCloseFault (-50205) #define DAQmxErrorPALFileOpenFault (-50204) #define DAQmxErrorPALDiskFull (-50203) #define DAQmxErrorPALOSFault (-50202) #define DAQmxErrorPALOSInitializationFault (-50201) #define DAQmxErrorPALOSUnsupported (-50200) #define DAQmxErrorPALCalculationOverflow (-50175) #define DAQmxErrorPALHardwareFault (-50152) #define DAQmxErrorPALFirmwareFault (-50151) #define DAQmxErrorPALSoftwareFault (-50150) #define DAQmxErrorPALMessageQueueFull (-50108) #define DAQmxErrorPALResourceAmbiguous (-50107) #define DAQmxErrorPALResourceBusy (-50106) #define DAQmxErrorPALResourceInitialized (-50105) #define DAQmxErrorPALResourceNotInitialized (-50104) #define DAQmxErrorPALResourceReserved (-50103) #define DAQmxErrorPALResourceNotReserved (-50102) #define DAQmxErrorPALResourceNotAvailable (-50101) #define DAQmxErrorPALResourceOwnedBySystem (-50100) #define DAQmxErrorPALBadToken (-50020) #define DAQmxErrorPALBadThreadMultitask (-50019) #define DAQmxErrorPALBadLibrarySpecifier (-50018) #define DAQmxErrorPALBadAddressSpace (-50017) #define DAQmxErrorPALBadWindowType (-50016) #define DAQmxErrorPALBadAddressClass (-50015) #define DAQmxErrorPALBadWriteCount (-50014) #define DAQmxErrorPALBadWriteOffset (-50013) #define DAQmxErrorPALBadWriteMode (-50012) #define DAQmxErrorPALBadReadCount (-50011) #define DAQmxErrorPALBadReadOffset (-50010) #define DAQmxErrorPALBadReadMode (-50009) #define DAQmxErrorPALBadCount (-50008) #define DAQmxErrorPALBadOffset (-50007) #define DAQmxErrorPALBadMode (-50006) #define DAQmxErrorPALBadDataSize (-50005) #define DAQmxErrorPALBadPointer (-50004) #define DAQmxErrorPALBadSelector (-50003) #define DAQmxErrorPALBadDevice (-50002) #define DAQmxErrorPALIrrelevantAttribute (-50001) #define DAQmxErrorPALValueConflict (-50000) #define DAQmxErrorRetryCall (-26853) #define DAQmxErrorFileDoesNotExist (-26852) #define DAQmxErrorGenerationDisabled (-26851) #define DAQmxErrorAlreadyInitialized (-26850) #define DAQmxErrorInvalidHandle (-26805) #define DAQmxErrorServiceNotRunning (-26804) #define DAQmxErrorRecursiveCall (-26803) #define DAQmxErrorTimeout (-26802) #define DAQmxErrorUnspecifiedError (-26801) #define DAQmxErrorHandlerNotFound (-26657) #define DAQmxErrorIncorrectDataType (-26656) #define DAQmxErrorInconsistentFileFault (-26655) #define DAQmxErrorChildNotFound (-26654) #define DAQmxErrorAttributeNotFound (-26653) #define DAQmxErrorIOError (-26652) #define DAQmxErrorPxiResmanMxsPxiSystemNotFound (-26600) #define DAQmxErrorPxiResmanPciDescriptionStringParseError (-26550) #define DAQmxErrorPxiResmanModuleParseError (-26500) #define DAQmxErrorPxiResmanSystemDescriptionSpecLimitation (-26403) #define DAQmxErrorPxiResmanSystemDescriptionWriteError (-26402) #define DAQmxErrorPxiResmanSystemDescriptionParseError (-26401) #define DAQmxErrorPxiResmanSystemDescriptionFileNotFound (-26400) #define DAQmxErrorPxiResmanControllerParseError (-26302) #define DAQmxErrorPxiResmanControllerTypeInvalid (-26301) #define DAQmxErrorPxiResmanControllerFileNotFound (-26300) #define DAQmxErrorPxiResmanChassisTriggerParseError (-26206) #define DAQmxErrorPxiResmanChassisBridgeParseError (-26205) #define DAQmxErrorPxiResmanChassisSlotParseError (-26204) #define DAQmxErrorPxiResmanChassisSegmentParseError (-26203) #define DAQmxErrorPxiResmanChassisParseError (-26202) #define DAQmxErrorPxiResmanChassisBridgeNotFound (-26201) #define DAQmxErrorPxiResmanChassisFileNotFound (-26200) #define DAQmxErrorInsufficientBuffer (-26113) #define DAQmxErrorDirCreateFault (-26112) #define DAQmxErrorAccessDenied (-26111) #define DAQmxErrorPathNotFound (-26110) #define DAQmxErrorFileExists (-26109) #define DAQmxErrorFileDeleteFault (-26107) #define DAQmxErrorFileCopyFault (-26106) #define DAQmxErrorFileCloseFault (-26105) #define DAQmxErrorFileNotFound (-26103) #define DAQmxErrorPxiResmanSystemNotInitialized (-26102) #define DAQmxErrorPxiResmanInvalidConfiguration (-26101) #define DAQmxErrorPxiResmanAllocationError (-26100) #define DAQmxWarningPxiResmanAllocationError (26100) #define DAQmxWarningPxiResmanInvalidConfiguration (26101) #define DAQmxWarningPxiResmanSystemNotInitialized (26102) #define DAQmxWarningFileNotFound (26103) #define DAQmxWarningFileCloseFault (26105) #define DAQmxWarningFileCopyFault (26106) #define DAQmxWarningFileDeleteFault (26107) #define DAQmxWarningFileExists (26109) #define DAQmxWarningPathNotFound (26110) #define DAQmxWarningAccessDenied (26111) #define DAQmxWarningDirCreateFault (26112) #define DAQmxWarningInsufficientBuffer (26113) #define DAQmxWarningPxiResmanChassisFileNotFound (26200) #define DAQmxWarningPxiResmanChassisBridgeNotFound (26201) #define DAQmxWarningPxiResmanChassisParseError (26202) #define DAQmxWarningPxiResmanChassisSegmentParseError (26203) #define DAQmxWarningPxiResmanChassisSlotParseError (26204) #define DAQmxWarningPxiResmanChassisBridgeParseError (26205) #define DAQmxWarningPxiResmanChassisTriggerParseError (26206) #define DAQmxWarningPxiResmanControllerFileNotFound (26300) #define DAQmxWarningPxiResmanControllerTypeInvalid (26301) #define DAQmxWarningPxiResmanControllerParseError (26302) #define DAQmxWarningPxiResmanSystemDescriptionFileNotFound (26400) #define DAQmxWarningPxiResmanSystemDescriptionParseError (26401) #define DAQmxWarningPxiResmanSystemDescriptionWriteError (26402) #define DAQmxWarningPxiResmanSystemDescriptionSpecLimitation (26403) #define DAQmxWarningPxiResmanModuleParseError (26500) #define DAQmxWarningPxiResmanPciDescriptionStringParseError (26550) #define DAQmxWarningPxiResmanMxsPxiSystemNotFound (26600) #define DAQmxWarningIOError (26652) #define DAQmxWarningAttributeNotFound (26653) #define DAQmxWarningChildNotFound (26654) #define DAQmxWarningInconsistentFileFault (26655) #define DAQmxWarningIncorrectDataType (26656) #define DAQmxWarningHandlerNotFound (26657) #define DAQmxWarningUnspecifiedError (26801) #define DAQmxWarningTimeout (26802) #define DAQmxWarningRecursiveCall (26803) #define DAQmxWarningServiceNotRunning (26804) #define DAQmxWarningInvalidHandle (26805) #define DAQmxWarningAlreadyInitialized (26850) #define DAQmxWarningGenerationDisabled (26851) #define DAQmxWarningFileDoesNotExist (26852) #define DAQmxWarningRetryCall (26853) #define DAQmxWarningPALValueConflict (50000) #define DAQmxWarningPALIrrelevantAttribute (50001) #define DAQmxWarningPALBadDevice (50002) #define DAQmxWarningPALBadSelector (50003) #define DAQmxWarningPALBadPointer (50004) #define DAQmxWarningPALBadDataSize (50005) #define DAQmxWarningPALBadMode (50006) #define DAQmxWarningPALBadOffset (50007) #define DAQmxWarningPALBadCount (50008) #define DAQmxWarningPALBadReadMode (50009) #define DAQmxWarningPALBadReadOffset (50010) #define DAQmxWarningPALBadReadCount (50011) #define DAQmxWarningPALBadWriteMode (50012) #define DAQmxWarningPALBadWriteOffset (50013) #define DAQmxWarningPALBadWriteCount (50014) #define DAQmxWarningPALBadAddressClass (50015) #define DAQmxWarningPALBadWindowType (50016) #define DAQmxWarningPALBadThreadMultitask (50019) #define DAQmxWarningPALResourceOwnedBySystem (50100) #define DAQmxWarningPALResourceNotAvailable (50101) #define DAQmxWarningPALResourceNotReserved (50102) #define DAQmxWarningPALResourceReserved (50103) #define DAQmxWarningPALResourceNotInitialized (50104) #define DAQmxWarningPALResourceInitialized (50105) #define DAQmxWarningPALResourceBusy (50106) #define DAQmxWarningPALResourceAmbiguous (50107) #define DAQmxWarningPALFirmwareFault (50151) #define DAQmxWarningPALHardwareFault (50152) #define DAQmxWarningPALOSUnsupported (50200) #define DAQmxWarningPALOSFault (50202) #define DAQmxWarningPALFunctionObsolete (50254) #define DAQmxWarningPALFunctionNotFound (50255) #define DAQmxWarningPALFeatureNotSupported (50256) #define DAQmxWarningPALComponentInitializationFault (50258) #define DAQmxWarningPALComponentAlreadyLoaded (50260) #define DAQmxWarningPALComponentNotUnloadable (50262) #define DAQmxWarningPALMemoryAlignmentFault (50351) #define DAQmxWarningPALMemoryHeapNotEmpty (50355) #define DAQmxWarningPALTransferNotInProgress (50402) #define DAQmxWarningPALTransferInProgress (50403) #define DAQmxWarningPALTransferStopped (50404) #define DAQmxWarningPALTransferAborted (50405) #define DAQmxWarningPALLogicalBufferEmpty (50406) #define DAQmxWarningPALLogicalBufferFull (50407) #define DAQmxWarningPALPhysicalBufferEmpty (50408) #define DAQmxWarningPALPhysicalBufferFull (50409) #define DAQmxWarningPALTransferOverwritten (50410) #define DAQmxWarningPALTransferOverread (50411) #define DAQmxWarningPALDispatcherAlreadyExported (50500) #define DAQmxWarningPALSyncAbandoned (50551) #ifdef __cplusplus } #endif #endif // __nidaqmx_h__
cd4e30226b71c6cbbff7a931403e306fe4a8d09f
fdbb74a95924e2677466614f6ab6e2bb13b2a95a
/libc/intrin/wsawaitformultipleevents.c
fba0cefc025b6c01a4a87205e1eed765a5e1e3e4
[ "ISC" ]
permissive
jart/cosmopolitan
fb11b5658939023977060a7c6c71a74093d9cb44
0d748ad58e1063dd1f8560f18a0c75293b9415b7
refs/heads/master
2023-09-06T09:17:29.303607
2023-09-02T03:49:13
2023-09-02T03:50:18
272,457,606
11,887
435
ISC
2023-09-14T17:47:58
2020-06-15T14:16:13
C
UTF-8
C
false
false
2,940
c
wsawaitformultipleevents.c
/*-*- mode:c;indent-tabs-mode:nil;c-basic-offset:2;tab-width:8;coding:utf-8 -*-│ │vi: set net ft=c ts=2 sts=2 sw=2 fenc=utf-8 :vi│ ╞══════════════════════════════════════════════════════════════════════════════╡ │ Copyright 2022 Justine Alexandra Roberts Tunney │ │ │ │ Permission to use, copy, modify, and/or distribute this software for │ │ any purpose with or without fee is hereby granted, provided that the │ │ above copyright notice and this permission notice appear in all copies. │ │ │ │ THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL │ │ WARRANTIES WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED │ │ WARRANTIES OF MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE │ │ AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL │ │ DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR │ │ PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER │ │ TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR │ │ PERFORMANCE OF THIS SOFTWARE. │ ╚─────────────────────────────────────────────────────────────────────────────*/ #include "libc/calls/syscall_support-nt.internal.h" #include "libc/intrin/describeflags.internal.h" #include "libc/intrin/strace.internal.h" #include "libc/nt/thunk/msabi.h" #include "libc/nt/winsock.h" __msabi extern typeof(WSAWaitForMultipleEvents) *const __imp_WSAWaitForMultipleEvents; /** * Waits for events on Windows sockets. * * @return 0 on success, or -1 on failure * @note this wrapper takes care of ABI, STRACE(), and __winerr() */ textwindows uint32_t WSAWaitForMultipleEvents(uint32_t cEvents, const int64_t *lphEvents, bool32 fWaitAll, uint32_t dwTimeout_ms, bool32 fAlertable) { uint32_t rc; rc = __imp_WSAWaitForMultipleEvents(cEvents, lphEvents, fWaitAll, dwTimeout_ms, fAlertable); POLLTRACE("WSAWaitForMultipleEvents(%u, %p, %hhhd, %'u, %hhhd) → %u% lm", cEvents, lphEvents, fWaitAll, dwTimeout_ms, fAlertable, rc); return rc; }
e4d0fb323b84eee0e3c603a922d3ae21ee4571c8
de21f9075f55640514c29ef0f1fe3f0690845764
/regression/contracts-dfcc/assigns_enforce_side_effects_1/main.c
bfbb88df56502620b40f4eb1ce79df7e1cf6ddeb
[ "BSD-2-Clause", "LicenseRef-scancode-unknown-license-reference", "BSD-4-Clause" ]
permissive
diffblue/cbmc
975a074ac445febb3b5715f8792beb545522dc18
decd2839c2f51a54b2ad0f3e89fdc1b4bf78cd16
refs/heads/develop
2023-08-31T05:52:05.342195
2023-08-30T13:31:51
2023-08-30T13:31:51
51,877,056
589
309
NOASSERTION
2023-09-14T18:49:17
2016-02-16T23:03:52
C++
UTF-8
C
false
false
284
c
main.c
#include <assert.h> #include <stdbool.h> #include <stdlib.h> int foo(bool a, int *x, long long *y) __CPROVER_assigns(*(a ? x : y++)) { if(a) { *x = 0; } else { *y = 0; } return 0; } int main() { bool a; int x; long y; foo(true, &x, &y); return 0; }
92e934c4f7b52ec3c84174670bb2184ffc72161f
6f8f706e13170c840ce38712693cd9a11ca3ccc4
/Pods/Headers/Private/WBBlades/WBBlades/CDOCProperty.h
6bb3458a9b43e60f0231b02dd916461beaef473c
[]
permissive
wuba/WBBlades
80321e24414a9290f40512d809c79d8592b10439
c8af6d595fa4fa0aaa5d35447dd2fc048ec59705
refs/heads/master
2023-08-16T17:43:42.181515
2023-08-16T06:21:18
2023-08-16T06:21:18
247,865,662
1,353
207
BSD-3-Clause
2023-09-07T06:39:25
2020-03-17T02:56:07
Objective-C
UTF-8
C
false
false
48
h
CDOCProperty.h
../../../../../WBBlades/ClassDump/CDOCProperty.h
074ba66ea4cdcc16feb78e871698995d4ee4185d
6884b12f2b7ca386651630c6bb16360ebc8176c6
/067-pseudoobiektowosc/test.c
03b25856e415caa6b25ee6bbbc0cb7380f162ff8
[ "MIT" ]
permissive
gynvael/stream
2254537b172ae80f4e6150ff9cda8727f1936589
47f5e9f89450b86a34a07a84d70623afb34d360b
refs/heads/master
2023-08-18T18:23:01.122688
2023-08-11T07:54:42
2023-08-11T07:54:42
50,767,329
156
51
null
2017-06-10T21:57:11
2016-01-31T09:39:45
Python
UTF-8
C
false
false
503
c
test.c
#include <stdio.h> #include "bignum.h" int main(void) { BigNum *a = NULL; BetterNum *b = NULL; a = BigNumNew(); if (a == NULL) { goto error; } b = BetterNumNew(); if (b == NULL) { goto error; } char buf[1024]; BigNumAssign(a, 1234); BetterNumAssign(b, 42); printf("a=%s\n", BigNumToStr(a, buf, sizeof(buf))); printf("b=%s\n", BetterNumToStr(b)); BigNumDelete(a); BetterNumDelete(b); return 0; error: BigNumDelete(a); BetterNumDelete(b); return 1; }
c8c146c661ef744b67c6667dc430a39032dd83c8
4805a71711625735215cc1a773a85712be305b59
/Cython/Utility/CommonStructures.c
f39f3d70de2349619bb982569eb62cff2a89c504
[ "Apache-2.0", "LicenseRef-scancode-unknown-license-reference" ]
permissive
cython/cython
0a75b75b7eaf19eeedaaebca9d49adb603e3e8f5
6ba3daf319d94058de74e8e7f53f932092b38441
refs/heads/master
2023-09-04T11:09:56.569277
2023-09-04T07:45:47
2023-09-04T07:45:47
1,099,265
8,352
1,704
Apache-2.0
2023-09-14T06:33:34
2010-11-21T07:44:20
Python
UTF-8
C
false
false
4,791
c
CommonStructures.c
/////////////// FetchSharedCythonModule.proto /////// static PyObject *__Pyx_FetchSharedCythonABIModule(void); /////////////// FetchSharedCythonModule //////////// static PyObject *__Pyx_FetchSharedCythonABIModule(void) { PyObject *abi_module = PyImport_AddModule((char*) __PYX_ABI_MODULE_NAME); if (unlikely(!abi_module)) return NULL; Py_INCREF(abi_module); return abi_module; } /////////////// FetchCommonType.proto /////////////// #if !CYTHON_USE_TYPE_SPECS static PyTypeObject* __Pyx_FetchCommonType(PyTypeObject* type); #else static PyTypeObject* __Pyx_FetchCommonTypeFromSpec(PyObject *module, PyType_Spec *spec, PyObject *bases); #endif /////////////// FetchCommonType /////////////// //@requires:ExtensionTypes.c::FixUpExtensionType //@requires: FetchSharedCythonModule //@requires:StringTools.c::IncludeStringH static int __Pyx_VerifyCachedType(PyObject *cached_type, const char *name, Py_ssize_t basicsize, Py_ssize_t expected_basicsize) { if (!PyType_Check(cached_type)) { PyErr_Format(PyExc_TypeError, "Shared Cython type %.200s is not a type object", name); return -1; } if (basicsize != expected_basicsize) { PyErr_Format(PyExc_TypeError, "Shared Cython type %.200s has the wrong size, try recompiling", name); return -1; } return 0; } #if !CYTHON_USE_TYPE_SPECS static PyTypeObject* __Pyx_FetchCommonType(PyTypeObject* type) { PyObject* abi_module; const char* object_name; PyTypeObject *cached_type = NULL; abi_module = __Pyx_FetchSharedCythonABIModule(); if (!abi_module) return NULL; // get the final part of the object name (after the last dot) object_name = strrchr(type->tp_name, '.'); object_name = object_name ? object_name+1 : type->tp_name; cached_type = (PyTypeObject*) PyObject_GetAttrString(abi_module, object_name); if (cached_type) { if (__Pyx_VerifyCachedType( (PyObject *)cached_type, object_name, cached_type->tp_basicsize, type->tp_basicsize) < 0) { goto bad; } goto done; } if (!PyErr_ExceptionMatches(PyExc_AttributeError)) goto bad; PyErr_Clear(); if (PyType_Ready(type) < 0) goto bad; if (PyObject_SetAttrString(abi_module, object_name, (PyObject *)type) < 0) goto bad; Py_INCREF(type); cached_type = type; done: Py_DECREF(abi_module); // NOTE: always returns owned reference, or NULL on error return cached_type; bad: Py_XDECREF(cached_type); cached_type = NULL; goto done; } #else static PyTypeObject *__Pyx_FetchCommonTypeFromSpec(PyObject *module, PyType_Spec *spec, PyObject *bases) { PyObject *abi_module, *cached_type = NULL; // get the final part of the object name (after the last dot) const char* object_name = strrchr(spec->name, '.'); object_name = object_name ? object_name+1 : spec->name; abi_module = __Pyx_FetchSharedCythonABIModule(); if (!abi_module) return NULL; cached_type = PyObject_GetAttrString(abi_module, object_name); if (cached_type) { Py_ssize_t basicsize; #if CYTHON_COMPILING_IN_LIMITED_API PyObject *py_basicsize; py_basicsize = PyObject_GetAttrString(cached_type, "__basicsize__"); if (unlikely(!py_basicsize)) goto bad; basicsize = PyLong_AsSsize_t(py_basicsize); Py_DECREF(py_basicsize); py_basicsize = 0; if (unlikely(basicsize == (Py_ssize_t)-1) && PyErr_Occurred()) goto bad; #else basicsize = likely(PyType_Check(cached_type)) ? ((PyTypeObject*) cached_type)->tp_basicsize : -1; #endif if (__Pyx_VerifyCachedType( cached_type, object_name, basicsize, spec->basicsize) < 0) { goto bad; } goto done; } if (!PyErr_ExceptionMatches(PyExc_AttributeError)) goto bad; PyErr_Clear(); // We pass the ABI module reference to avoid keeping the user module alive by foreign type usages. CYTHON_UNUSED_VAR(module); cached_type = __Pyx_PyType_FromModuleAndSpec(abi_module, spec, bases); if (unlikely(!cached_type)) goto bad; if (unlikely(__Pyx_fix_up_extension_type_from_spec(spec, (PyTypeObject *) cached_type) < 0)) goto bad; if (PyObject_SetAttrString(abi_module, object_name, cached_type) < 0) goto bad; done: Py_DECREF(abi_module); // NOTE: always returns owned reference, or NULL on error assert(cached_type == NULL || PyType_Check(cached_type)); return (PyTypeObject *) cached_type; bad: Py_XDECREF(cached_type); cached_type = NULL; goto done; } #endif
4d57e532b09afdbd77b6c8c63aedcc1526544c27
ae90aa32e949a5eab9665f526f886f05860161d2
/code/c/02-compiler/00-exp0/EE.c
1c8fe05c35c91d7dcdcfd7ed757803a159041424
[ "CC-BY-SA-3.0", "MIT" ]
permissive
cccbook/sp
4097ab760cfb013b689dc4739a439de29d85d324
aff23e6b18ba6221022b14b024fd562427c46d9a
refs/heads/master
2022-05-22T03:31:33.324045
2019-06-06T07:04:37
2019-06-06T07:04:37
156,299,694
257
96
MIT
2022-03-19T08:48:32
2018-11-05T23:56:37
Assembly
UTF-8
C
false
false
142
c
EE.c
#include <stdio.h> void F(); void E() { printf("E started"); E(); F(); printf("E finished"); } void F() { } int main() { E(); }
a5ecc3ea06926ba12e29523571d87eb5aab3fffd
7eaf54a78c9e2117247cb2ab6d3a0c20719ba700
/SOFTWARE/A64-TERES/linux-a64/drivers/staging/rtl8712/osdep_service.h
f1ccc7ebbda7837b0a66e1bcbea8fbcae1606861
[ "Linux-syscall-note", "GPL-2.0-only", "GPL-1.0-or-later", "LicenseRef-scancode-free-unknown", "Apache-2.0" ]
permissive
OLIMEX/DIY-LAPTOP
ae82f4ee79c641d9aee444db9a75f3f6709afa92
a3fafd1309135650bab27f5eafc0c32bc3ca74ee
refs/heads/rel3
2023-08-04T01:54:19.483792
2023-04-03T07:18:12
2023-04-03T07:18:12
80,094,055
507
92
Apache-2.0
2023-04-03T07:05:59
2017-01-26T07:25:50
C
UTF-8
C
false
false
4,771
h
osdep_service.h
/****************************************************************************** * * Copyright(c) 2007 - 2010 Realtek Corporation. All rights reserved. * * This program is free software; you can redistribute it and/or modify it * under the terms of version 2 of the GNU General Public License as * published by the Free Software Foundation. * * This program is distributed in the hope that it will be useful, but WITHOUT * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for * more details. * * You should have received a copy of the GNU General Public License along with * this program; if not, write to the Free Software Foundation, Inc., * 51 Franklin Street, Fifth Floor, Boston, MA 02110, USA * * Modifications for inclusion into the Linux staging tree are * Copyright(c) 2010 Larry Finger. All rights reserved. * * Contact information: * WLAN FAE <wlanfae@realtek.com> * Larry Finger <Larry.Finger@lwfinger.net> * ******************************************************************************/ #ifndef __OSDEP_SERVICE_H_ #define __OSDEP_SERVICE_H_ #define _SUCCESS 1 #define _FAIL 0 #include <linux/spinlock.h> #include <linux/interrupt.h> #include <linux/semaphore.h> #include <linux/sched.h> #include <linux/sem.h> #include <linux/netdevice.h> #include <linux/etherdevice.h> #include <net/iw_handler.h> #include <linux/proc_fs.h> /* Necessary because we use the proc fs */ #include "basic_types.h" struct __queue { struct list_head queue; spinlock_t lock; }; #define _pkt struct sk_buff #define _buffer unsigned char #define thread_exit() complete_and_exit(NULL, 0) #define _workitem struct work_struct #define _init_queue(pqueue) \ do { \ _init_listhead(&((pqueue)->queue)); \ spin_lock_init(&((pqueue)->lock)); \ } while (0) static inline struct list_head *get_next(struct list_head *list) { return list->next; } static inline struct list_head *get_list_head(struct __queue *queue) { return &(queue->queue); } #define LIST_CONTAINOR(ptr, type, member) \ ((type *)((char *)(ptr)-(SIZE_T)(&((type *)0)->member))) static inline void list_delete(struct list_head *plist) { list_del_init(plist); } static inline void _init_timer(struct timer_list *ptimer, struct net_device *padapter, void *pfunc, void *cntx) { ptimer->function = pfunc; ptimer->data = (addr_t)cntx; init_timer(ptimer); } static inline void _set_timer(struct timer_list *ptimer, u32 delay_time) { mod_timer(ptimer, (jiffies+(delay_time*HZ/1000))); } static inline void _cancel_timer(struct timer_list *ptimer, u8 *bcancelled) { del_timer(ptimer); *bcancelled = true; /*true ==1; false==0*/ } static inline void _init_workitem(_workitem *pwork, void *pfunc, void *cntx) { INIT_WORK(pwork, pfunc); } static inline void _set_workitem(_workitem *pwork) { schedule_work(pwork); } #ifndef BIT #define BIT(x) (1 << (x)) #endif /* For the following list_xxx operations, caller must guarantee the atomic context. Otherwise, there will be racing condition. */ static inline u32 is_list_empty(struct list_head *phead) { if (list_empty(phead)) return true; else return false; } static inline void list_insert_tail(struct list_head *plist, struct list_head *phead) { list_add_tail(plist, phead); } static inline u32 _down_sema(struct semaphore *sema) { if (down_interruptible(sema)) return _FAIL; else return _SUCCESS; } static inline void _init_listhead(struct list_head *list) { INIT_LIST_HEAD(list); } static inline u32 _queue_empty(struct __queue *pqueue) { return is_list_empty(&(pqueue->queue)); } static inline u32 end_of_queue_search(struct list_head *head, struct list_head *plist) { if (head == plist) return true; else return false; } static inline void sleep_schedulable(int ms) { u32 delta; delta = (ms * HZ) / 1000;/*(ms)*/ if (delta == 0) delta = 1;/* 1 ms */ set_current_state(TASK_INTERRUPTIBLE); if (schedule_timeout(delta) != 0) return ; } static inline u8 *_malloc(u32 sz) { return kmalloc(sz, GFP_ATOMIC); } static inline unsigned char _cancel_timer_ex(struct timer_list *ptimer) { return del_timer(ptimer); } static inline void thread_enter(void *context) { allow_signal(SIGTERM); } static inline void flush_signals_thread(void) { if (signal_pending(current)) flush_signals(current); } static inline u32 _RND8(u32 sz) { return ((sz >> 3) + ((sz & 7) ? 1 : 0)) << 3; } static inline u32 _RND128(u32 sz) { return ((sz >> 7) + ((sz & 127) ? 1 : 0)) << 7; } static inline u32 _RND256(u32 sz) { return ((sz >> 8) + ((sz & 255) ? 1 : 0)) << 8; } static inline u32 _RND512(u32 sz) { return ((sz >> 9) + ((sz & 511) ? 1 : 0)) << 9; } #endif
c13512e69dae15e10605058122b70781bb97d2a2
79e0f8e5d93c3c9b80c680721609b71177e1d18b
/ngx_rtmp_netcall_module.c
9ffadde7d990dabbf389347c2cce0a84ba8a6bd4
[ "BSD-2-Clause" ]
permissive
sergey-dryabzhinsky/nginx-rtmp-module
e4a0cee65cfaed78772fdd52bad889b2aff146d0
f9217ba07545583a46821175c2f8c08db03e5e83
refs/heads/dev
2022-12-23T04:55:44.369985
2022-05-15T11:54:40
2022-05-15T11:54:40
38,456,945
1,059
310
BSD-2-Clause
2022-12-09T10:31:02
2015-07-02T21:06:29
C
UTF-8
C
false
false
19,928
c
ngx_rtmp_netcall_module.c
/* * Copyright (C) Roman Arutyunyan */ #include <ngx_config.h> #include <ngx_core.h> #include "ngx_rtmp_netcall_module.h" static ngx_int_t ngx_rtmp_netcall_postconfiguration(ngx_conf_t *cf); static void * ngx_rtmp_netcall_create_srv_conf(ngx_conf_t *cf); static char * ngx_rtmp_netcall_merge_srv_conf(ngx_conf_t *cf, void *parent, void *child); static void ngx_rtmp_netcall_close(ngx_connection_t *cc); static void ngx_rtmp_netcall_detach(ngx_connection_t *cc); static void ngx_rtmp_netcall_recv(ngx_event_t *rev); static void ngx_rtmp_netcall_send(ngx_event_t *wev); typedef struct { ngx_msec_t timeout; size_t bufsize; ngx_log_t *log; } ngx_rtmp_netcall_srv_conf_t; typedef struct ngx_rtmp_netcall_session_s { ngx_rtmp_session_t *session; ngx_peer_connection_t *pc; ngx_url_t *url; struct ngx_rtmp_netcall_session_s *next; void *arg; ngx_rtmp_netcall_handle_pt handle; ngx_rtmp_netcall_filter_pt filter; ngx_rtmp_netcall_sink_pt sink; ngx_chain_t *in; ngx_chain_t *inlast; ngx_chain_t *out; ngx_msec_t timeout; unsigned detached:1; size_t bufsize; } ngx_rtmp_netcall_session_t; typedef struct { ngx_rtmp_netcall_session_t *cs; } ngx_rtmp_netcall_ctx_t; static ngx_command_t ngx_rtmp_netcall_commands[] = { { ngx_string("netcall_timeout"), NGX_RTMP_MAIN_CONF|NGX_RTMP_SRV_CONF|NGX_CONF_TAKE1, ngx_conf_set_msec_slot, NGX_RTMP_SRV_CONF_OFFSET, offsetof(ngx_rtmp_netcall_srv_conf_t, timeout), NULL }, { ngx_string("netcall_buffer"), NGX_RTMP_MAIN_CONF|NGX_RTMP_SRV_CONF|NGX_CONF_TAKE1, ngx_conf_set_size_slot, NGX_RTMP_SRV_CONF_OFFSET, offsetof(ngx_rtmp_netcall_srv_conf_t, bufsize), NULL }, ngx_null_command }; static ngx_rtmp_module_t ngx_rtmp_netcall_module_ctx = { NULL, /* preconfiguration */ ngx_rtmp_netcall_postconfiguration, /* postconfiguration */ NULL, /* create main configuration */ NULL, /* init main configuration */ ngx_rtmp_netcall_create_srv_conf, /* create server configuration */ ngx_rtmp_netcall_merge_srv_conf, /* merge server configuration */ NULL, /* create app configuration */ NULL /* merge app configuration */ }; ngx_module_t ngx_rtmp_netcall_module = { NGX_MODULE_V1, &ngx_rtmp_netcall_module_ctx, /* module context */ ngx_rtmp_netcall_commands, /* module directives */ NGX_RTMP_MODULE, /* module type */ NULL, /* init master */ NULL, /* init module */ NULL, /* init process */ NULL, /* init thread */ NULL, /* exit thread */ NULL, /* exit process */ NULL, /* exit master */ NGX_MODULE_V1_PADDING }; static void * ngx_rtmp_netcall_create_srv_conf(ngx_conf_t *cf) { ngx_rtmp_netcall_srv_conf_t *nscf; nscf = ngx_pcalloc(cf->pool, sizeof(ngx_rtmp_netcall_srv_conf_t)); if (nscf == NULL) { return NULL; } nscf->timeout = NGX_CONF_UNSET_MSEC; nscf->bufsize = NGX_CONF_UNSET_SIZE; nscf->log = &cf->cycle->new_log; return nscf; } static char * ngx_rtmp_netcall_merge_srv_conf(ngx_conf_t *cf, void *parent, void *child) { ngx_rtmp_netcall_srv_conf_t *prev = parent; ngx_rtmp_netcall_srv_conf_t *conf = child; ngx_conf_merge_msec_value(conf->timeout, prev->timeout, 10000); ngx_conf_merge_size_value(conf->bufsize, prev->bufsize, 1024); return NGX_CONF_OK; } static ngx_int_t ngx_rtmp_netcall_disconnect(ngx_rtmp_session_t *s, ngx_rtmp_header_t *h, ngx_chain_t *in) { ngx_rtmp_netcall_ctx_t *ctx; ngx_rtmp_netcall_session_t *cs; ctx = ngx_rtmp_get_module_ctx(s, ngx_rtmp_netcall_module); if (ctx) { for (cs = ctx->cs; cs; cs = cs->next) { ngx_rtmp_netcall_detach(cs->pc->connection); } } return NGX_OK; } static ngx_int_t ngx_rtmp_netcall_get_peer(ngx_peer_connection_t *pc, void *data) { ngx_rtmp_netcall_session_t *cs = data; pc->sockaddr =(struct sockaddr *)&cs->url->sockaddr; pc->socklen = cs->url->socklen; pc->name = &cs->url->host; return NGX_OK; } static void ngx_rtmp_netcall_free_peer(ngx_peer_connection_t *pc, void *data, ngx_uint_t state) { } ngx_int_t ngx_rtmp_netcall_create(ngx_rtmp_session_t *s, ngx_rtmp_netcall_init_t *ci) { ngx_rtmp_netcall_ctx_t *ctx; ngx_peer_connection_t *pc; ngx_rtmp_netcall_session_t *cs; ngx_rtmp_netcall_srv_conf_t *nscf; ngx_connection_t *c, *cc; ngx_pool_t *pool; ngx_int_t rc; pool = NULL; c = s->connection; nscf = ngx_rtmp_get_module_srv_conf(s, ngx_rtmp_netcall_module); if (nscf == NULL) { goto error; } /* get module context */ ctx = ngx_rtmp_get_module_ctx(s, ngx_rtmp_netcall_module); if (ctx == NULL) { ctx = ngx_pcalloc(c->pool, sizeof(ngx_rtmp_netcall_ctx_t)); if (ctx == NULL) { return NGX_ERROR; } ngx_rtmp_set_ctx(s, ctx, ngx_rtmp_netcall_module); } /* Create netcall pool, connection, session. * Note we use shared (app-wide) log because * s->connection->log might be unavailable * in detached netcall when it's being closed */ pool = ngx_create_pool(4096, nscf->log); if (pool == NULL) { goto error; } pc = ngx_pcalloc(pool, sizeof(ngx_peer_connection_t)); if (pc == NULL) { goto error; } cs = ngx_pcalloc(pool, sizeof(ngx_rtmp_netcall_session_t)); if (cs == NULL) { goto error; } /* copy arg to connection pool */ if (ci->argsize) { cs->arg = ngx_pcalloc(pool, ci->argsize); if (cs->arg == NULL) { goto error; } ngx_memcpy(cs->arg, ci->arg, ci->argsize); } cs->timeout = nscf->timeout; cs->bufsize = nscf->bufsize; cs->url = ci->url; cs->session = s; cs->filter = ci->filter; cs->sink = ci->sink; cs->handle = ci->handle; if (cs->handle == NULL) { cs->detached = 1; } pc->log = nscf->log; pc->get = ngx_rtmp_netcall_get_peer; pc->free = ngx_rtmp_netcall_free_peer; pc->data = cs; /* connect */ rc = ngx_event_connect_peer(pc); if (rc != NGX_OK && rc != NGX_AGAIN ) { ngx_log_debug0(NGX_LOG_DEBUG_RTMP, s->connection->log, 0, "netcall: connection failed"); goto error; } cc = pc->connection; cc->data = cs; cc->pool = pool; cs->pc = pc; cs->out = ci->create(s, ci->arg, pool); if (cs->out == NULL) { ngx_log_debug0(NGX_LOG_DEBUG_RTMP, s->connection->log, 0, "netcall: creation failed"); ngx_close_connection(pc->connection); goto error; } cc->write->handler = ngx_rtmp_netcall_send; cc->read->handler = ngx_rtmp_netcall_recv; if (!cs->detached) { cs->next = ctx->cs; ctx->cs = cs; } ngx_rtmp_netcall_send(cc->write); return c->destroyed ? NGX_ERROR : NGX_OK; error: if (pool) { ngx_destroy_pool(pool); } return NGX_ERROR; } static void ngx_rtmp_netcall_close(ngx_connection_t *cc) { ngx_rtmp_netcall_session_t *cs, **css; ngx_pool_t *pool; ngx_rtmp_session_t *s; ngx_rtmp_netcall_ctx_t *ctx; ngx_buf_t *b; cs = cc->data; if (cc->destroyed) { return; } cc->destroyed = 1; if (!cs->detached) { s = cs->session; ctx = ngx_rtmp_get_module_ctx(s, ngx_rtmp_netcall_module); if (cs->in && cs->sink) { cs->sink(cs->session, cs->in); b = cs->in->buf; b->pos = b->last = b->start; } for(css = &ctx->cs; *css; css = &((*css)->next)) { if (*css == cs) { *css = cs->next; break; } } if (cs->handle && cs->handle(s, cs->arg, cs->in) != NGX_OK) { ngx_rtmp_finalize_session(s); } } pool = cc->pool; ngx_close_connection(cc); ngx_destroy_pool(pool); } static void ngx_rtmp_netcall_detach(ngx_connection_t *cc) { ngx_rtmp_netcall_session_t *cs; cs = cc->data; cs->detached = 1; } static void ngx_rtmp_netcall_recv(ngx_event_t *rev) { ngx_rtmp_netcall_session_t *cs; ngx_connection_t *cc; ngx_chain_t *cl; ngx_int_t n; ngx_buf_t *b; cc = rev->data; cs = cc->data; if (cc->destroyed) { return; } if (rev->timedout) { cc->timedout = 1; ngx_rtmp_netcall_close(cc); return; } if (rev->timer_set) { ngx_del_timer(rev); } for ( ;; ) { if (cs->inlast == NULL || cs->inlast->buf->last == cs->inlast->buf->end) { if (cs->in && cs->sink) { if (!cs->detached) { if (cs->sink(cs->session, cs->in) != NGX_OK) { ngx_rtmp_netcall_close(cc); return; } } b = cs->in->buf; b->pos = b->last = b->start; } else { cl = ngx_alloc_chain_link(cc->pool); if (cl == NULL) { ngx_rtmp_netcall_close(cc); return; } cl->next = NULL; cl->buf = ngx_create_temp_buf(cc->pool, cs->bufsize); if (cl->buf == NULL) { ngx_rtmp_netcall_close(cc); return; } if (cs->in == NULL) { cs->in = cl; } else { cs->inlast->next = cl; } cs->inlast = cl; } } b = cs->inlast->buf; n = cc->recv(cc, b->last, b->end - b->last); if (n == NGX_ERROR || n == 0) { ngx_rtmp_netcall_close(cc); return; } if (n == NGX_AGAIN) { if (cs->filter && cs->in && cs->filter(cs->in) != NGX_AGAIN) { ngx_rtmp_netcall_close(cc); return; } ngx_add_timer(rev, cs->timeout); if (ngx_handle_read_event(rev, 0) != NGX_OK) { ngx_rtmp_netcall_close(cc); } return; } b->last += n; } } static void ngx_rtmp_netcall_send(ngx_event_t *wev) { ngx_rtmp_netcall_session_t *cs; ngx_connection_t *cc; ngx_chain_t *cl; cc = wev->data; cs = cc->data; if (cc->destroyed) { return; } if (wev->timedout) { ngx_log_error(NGX_LOG_INFO, cc->log, NGX_ETIMEDOUT, "netcall: client send timed out"); cc->timedout = 1; ngx_rtmp_netcall_close(cc); return; } if (wev->timer_set) { ngx_del_timer(wev); } cl = cc->send_chain(cc, cs->out, 0); if (cl == NGX_CHAIN_ERROR) { ngx_rtmp_netcall_close(cc); return; } cs->out = cl; /* more data to send? */ if (cl) { ngx_add_timer(wev, cs->timeout); if (ngx_handle_write_event(wev, 0) != NGX_OK) { ngx_rtmp_netcall_close(cc); } return; } /* we've sent everything we had. * now receive reply */ ngx_del_event(wev, NGX_WRITE_EVENT, 0); ngx_rtmp_netcall_recv(cc->read); } ngx_chain_t * ngx_rtmp_netcall_http_format_request(ngx_int_t method, ngx_str_t *host, ngx_str_t *uri, ngx_chain_t *args, ngx_chain_t *body, ngx_pool_t *pool, ngx_str_t *content_type) { ngx_chain_t *al, *bl, *ret; ngx_buf_t *b; size_t content_length; static const char *methods[2] = { "GET", "POST" }; static const char rq_tmpl[] = " HTTP/1.0\r\n" "Host: %V\r\n" "Content-Type: %V\r\n" "Connection: Close\r\n" "Content-Length: %uz\r\n" "\r\n"; content_length = 0; for (al = body; al; al = al->next) { b = al->buf; content_length += (b->last - b->pos); } /* create first buffer */ al = ngx_alloc_chain_link(pool); if (al == NULL) { return NULL; } b = ngx_create_temp_buf(pool, sizeof("POST") + /* longest method + 1 */ uri->len); if (b == NULL) { return NULL; } b->last = ngx_snprintf(b->last, b->end - b->last, "%s %V", methods[method], uri); al->buf = b; ret = al; if (args) { *b->last++ = '?'; al->next = args; for (al = args; al->next; al = al->next); } /* create second buffer */ bl = ngx_alloc_chain_link(pool); if (bl == NULL) { return NULL; } b = ngx_create_temp_buf(pool, sizeof(rq_tmpl) + host->len + content_type->len + NGX_SIZE_T_LEN); if (b == NULL) { return NULL; } bl->buf = b; b->last = ngx_snprintf(b->last, b->end - b->last, rq_tmpl, host, content_type, content_length); al->next = bl; bl->next = body; return ret; } ngx_chain_t * ngx_rtmp_netcall_http_format_session(ngx_rtmp_session_t *s, ngx_pool_t *pool) { ngx_chain_t *cl; ngx_buf_t *b; ngx_str_t *addr_text; size_t bsize; addr_text = &s->connection->addr_text; cl = ngx_alloc_chain_link(pool); if (cl == NULL) { return NULL; } /** * @2016-04-20 sergey-dryabzhinsky * Not all params may be filled in session * So not override them with empty values */ bsize = sizeof("addr=") - 1 + addr_text->len * 3 + sizeof("&clientid=") - 1 + NGX_INT_T_LEN; // Indicator of additional vars from session // Event `connect` don't have them, for example if (s->app.len) { bsize += sizeof("&app=") - 1 + s->app.len * 3; } if (s->flashver.len) { bsize += sizeof("&flashver=") - 1 + s->flashver.len * 3; } if (s->swf_url.len) { bsize += sizeof("&swfurl=") - 1 + s->swf_url.len * 3; } if (s->tc_url.len) { bsize += sizeof("&tcurl=") - 1 + s->tc_url.len * 3; } if (s->page_url.len) { bsize += sizeof("&pageurl=") - 1 + s->page_url.len * 3; } b = ngx_create_temp_buf(pool, bsize); if (b == NULL) { return NULL; } cl->buf = b; cl->next = NULL; b->last = ngx_cpymem(b->last, (u_char*) "addr=", sizeof("addr=") - 1); b->last = (u_char*) ngx_escape_uri(b->last, addr_text->data, addr_text->len, NGX_ESCAPE_ARGS); b->last = ngx_cpymem(b->last, (u_char*) "&clientid=", sizeof("&clientid=") - 1); b->last = ngx_sprintf(b->last, "%ui", (ngx_uint_t) s->connection->number); if (s->app.len) { b->last = ngx_cpymem(b->last, (u_char*) "&app=", sizeof("&app=") - 1); b->last = (u_char*) ngx_escape_uri(b->last, s->app.data, s->app.len, NGX_ESCAPE_ARGS); } if (s->flashver.len) { b->last = ngx_cpymem(b->last, (u_char*) "&flashver=", sizeof("&flashver=") - 1); b->last = (u_char*) ngx_escape_uri(b->last, s->flashver.data, s->flashver.len, NGX_ESCAPE_ARGS); } if (s->swf_url.len) { b->last = ngx_cpymem(b->last, (u_char*) "&swfurl=", sizeof("&swfurl=") - 1); b->last = (u_char*) ngx_escape_uri(b->last, s->swf_url.data, s->swf_url.len, NGX_ESCAPE_ARGS); } if (s->tc_url.len) { b->last = ngx_cpymem(b->last, (u_char*) "&tcurl=", sizeof("&tcurl=") - 1); b->last = (u_char*) ngx_escape_uri(b->last, s->tc_url.data, s->tc_url.len, NGX_ESCAPE_ARGS); } if (s->page_url.len) { b->last = ngx_cpymem(b->last, (u_char*) "&pageurl=", sizeof("&pageurl=") - 1); b->last = (u_char*) ngx_escape_uri(b->last, s->page_url.data, s->page_url.len, NGX_ESCAPE_ARGS); } return cl; } ngx_chain_t * ngx_rtmp_netcall_http_skip_header(ngx_chain_t *in) { ngx_buf_t *b; /* find \n[\r]\n */ enum { normal, lf, lfcr } state = normal; if (in == NULL) { return NULL; } b = in->buf; for ( ;; ) { while (b->pos == b->last) { in = in->next; if (in == NULL) { return NULL; } b = in->buf; } switch (*b->pos++) { case '\r': state = (state == lf) ? lfcr : normal; break; case '\n': if (state != normal) { return in; } state = lf; break; default: state = normal; } } } ngx_chain_t * ngx_rtmp_netcall_memcache_set(ngx_rtmp_session_t *s, ngx_pool_t *pool, ngx_str_t *key, ngx_str_t *value, ngx_uint_t flags, ngx_uint_t sec) { ngx_chain_t *cl; ngx_buf_t *b; cl = ngx_alloc_chain_link(pool); if (cl == NULL) { return NULL; } b = ngx_create_temp_buf(pool, sizeof("set ") - 1 + key->len + (1 + NGX_INT_T_LEN) * 3 + (sizeof("\r\n") - 1) * 2 + value->len); if (b == NULL) { return NULL; } cl->next = NULL; cl->buf = b; b->last = ngx_sprintf(b->pos, "set %V %ui %ui %ui\r\n%V\r\n", key, flags, sec, (ngx_uint_t) value->len, value); return cl; } static ngx_int_t ngx_rtmp_netcall_postconfiguration(ngx_conf_t *cf) { ngx_rtmp_core_main_conf_t *cmcf; ngx_rtmp_handler_pt *h; cmcf = ngx_rtmp_conf_get_module_main_conf(cf, ngx_rtmp_core_module); h = ngx_array_push(&cmcf->events[NGX_RTMP_DISCONNECT]); *h = ngx_rtmp_netcall_disconnect; return NGX_OK; }
c8396d6cd6d5e682e3c6ce3ddec3ff46e0b3b048
e65a4dbfbfb0e54e59787ba7741efee12f7687f3
/sysutils/coreutils/files/patch-src_stty.c
9bc150cc1ba2d879a29235e0b1e9ac7bfa903795
[ "BSD-2-Clause" ]
permissive
freebsd/freebsd-ports
86f2e89d43913412c4f6b2be3e255bc0945eac12
605a2983f245ac63f5420e023e7dce56898ad801
refs/heads/main
2023-08-30T21:46:28.720924
2023-08-30T19:33:44
2023-08-30T19:33:44
1,803,961
916
918
NOASSERTION
2023-09-08T04:06:26
2011-05-26T11:15:35
null
UTF-8
C
false
false
362
c
patch-src_stty.c
--- src/stty.c.orig 2016-01-07 12:32:35 UTC +++ src/stty.c @@ -287,10 +287,10 @@ static struct mode_info const mode_info[ # ifdef TAB3 {"tab3", output, SANE_UNSET, TAB3, TABDLY}, # endif -# ifdef TAB2 +# if 0 {"tab2", output, SANE_UNSET, TAB2, TABDLY}, # endif -# ifdef TAB1 +# if 0 {"tab1", output, SANE_UNSET, TAB1, TABDLY}, # endif # ifdef TAB0
def309b1b4bd02077d31ffb987c2aeb46663f655
958839d070b99dce238f908cf85d06376d8b9271
/sqlite-android/src/main/jni/sqlite/ALog-priv.h
04a0abf398dcb64d0db48a7fe10502d097a0dc4f
[ "Apache-2.0" ]
permissive
requery/sqlite-android
4b424707402f1f3c58cb3b15c17bd05c6f040a0f
4fb4458c843d53d7bdf6047346724e45e612ea0a
refs/heads/master
2023-09-05T00:05:31.158587
2023-08-29T08:35:08
2023-08-29T08:35:08
55,330,340
1,110
182
Apache-2.0
2023-08-29T08:35:09
2016-04-03T04:56:43
Java
UTF-8
C
false
false
1,766
h
ALog-priv.h
/* * Copyright 2013 The Android Open Source Project * * 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. */ #ifndef NATIVEHELPER_ALOGPRIV_H_ #define NATIVEHELPER_ALOGPRIV_H_ #include <android/log.h> #ifndef LOG_NDEBUG #ifdef NDEBUG #define LOG_NDEBUG 1 #else #define LOG_NDEBUG 0 #endif #endif /* * Basic log message macros intended to emulate the behavior of log/log.h * in system core. This should be dependent only on ndk exposed logging * functionality. */ #ifndef ALOG #define ALOG(priority, tag, fmt...) \ __android_log_print(ANDROID_##priority, tag, fmt) #endif #ifndef ALOGV #if LOG_NDEBUG #define ALOGV(...) ((void)0) #else #define ALOGV(...) ((void)ALOG(LOG_VERBOSE, LOG_TAG, __VA_ARGS__)) #endif #endif #ifndef ALOGD #define ALOGD(...) ((void)ALOG(LOG_DEBUG, LOG_TAG, __VA_ARGS__)) #endif #ifndef ALOGI #define ALOGI(...) ((void)ALOG(LOG_INFO, LOG_TAG, __VA_ARGS__)) #endif #ifndef ALOGW #define ALOGW(...) ((void)ALOG(LOG_WARN, LOG_TAG, __VA_ARGS__)) #endif #ifndef ALOGE #define ALOGE(...) ((void)ALOG(LOG_ERROR, LOG_TAG, __VA_ARGS__)) #endif /* ** Not quite the same as the core android LOG_FATAL_IF (which also ** sends a SIGTRAP), but close enough. */ #define LOG_FATAL_IF(bCond, zErr) if( bCond ) ALOGE(zErr); #endif
f9265513d6061aeb3b16962aad47848359730821
050a161d249bf844fb33839b980ff2d026c60067
/owl/include/owl/owl_host.h
71e72b911224374858c219c6fb96f7122b042f96
[ "Apache-2.0" ]
permissive
owl-project/owl
0cc9dd0abe8f1ec09aa36b3defdf0828b7191ff6
f39a9b0a0525a7d6ad56d1c523eef083314b70cd
refs/heads/master
2023-08-19T05:33:18.145290
2023-08-08T15:05:24
2023-08-08T15:05:24
229,127,964
199
42
Apache-2.0
2023-08-08T15:03:07
2019-12-19T19:50:28
C++
UTF-8
C
false
false
83,234
h
owl_host.h
// ======================================================================== // // Copyright 2019-2021 Ingo Wald // // // // 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. // // ======================================================================== // #pragma once #include <cuda.h> #include <driver_types.h> #include <optix.h> #include <sys/types.h> #include <stdint.h> #ifdef __cplusplus # include <cstddef> #endif /*! 'curves' support was introduced in optix 7.3, but we use the newer api that came with 7.4 */ #if OPTIX_VERSION >= 70400 # define OWL_CAN_DO_CURVES 1 #endif #if OPTIX_VERSION >= 70500 # define OWL_CAN_DO_SPHERES 1 #endif #if defined(_MSC_VER) # define OWL_DLL_EXPORT __declspec(dllexport) # define OWL_DLL_IMPORT __declspec(dllimport) #elif defined(__clang__) || defined(__GNUC__) # define OWL_DLL_EXPORT __attribute__((visibility("default"))) # define OWL_DLL_IMPORT __attribute__((visibility("default"))) #else # define OWL_DLL_EXPORT # define OWL_DLL_IMPORT #endif #ifdef __cplusplus # define OWL_IF_CPP(a) a #else # define OWL_IF_CPP(a) /* drop it */ #endif # ifdef __cplusplus # define OWL_API extern "C" OWL_DLL_EXPORT # else # define OWL_API /* bla */ # endif #define OWL_OFFSETOF(type,member) \ (uint32_t)((char *)(&((struct type *)0)-> member ) \ - \ (char *)(((struct type *)0))) /*! enum that specifies the different possible memory layouts for passing transformation matrices */ typedef enum { /*! 4x3-float column-major matrix format, where a matrix is specified through four vec3fs, the first three being the basis vectors of the linear transform, and the fourth one the translation part. This is exactly the same layout as used in owl::common::affine3f (owl/common/math/AffineSpae.h) */ OWL_MATRIX_FORMAT_COLUMN_MAJOR=0, /*! just another name for OWL_MATRIX_FORMAT_4X3_COLUMN_MAJOR that is easier to type - the "_OWL" indicates that this is the default format in the owl::common namespace */ OWL_MATRIX_FORMAT_OWL=OWL_MATRIX_FORMAT_COLUMN_MAJOR, /*! 3x4-float *row-major* layout as preferred by optix; in this case it doesn't matter if it's a 4x3 or 4x4 matrix, since the last row in a 4x4 row major matrix can simply be ignored */ OWL_MATRIX_FORMAT_ROW_MAJOR } OWLMatrixFormat; typedef enum { OWL_SBT_HITGROUPS = 0x1, OWL_SBT_GEOMS = OWL_SBT_HITGROUPS, OWL_SBT_RAYGENS = 0x2, OWL_SBT_MISSPROGS = 0x4, OWL_SBT_ALL = 0x7 } OWLBuildSBTFlags; typedef enum { OWL_INVALID_TYPE = 0, OWL_BUFFER=10, /*! a 64-bit int representing the number of elemnets in a buffer */ OWL_BUFFER_SIZE, OWL_BUFFER_ID, OWL_BUFFER_POINTER, OWL_BUFPTR=OWL_BUFFER_POINTER, OWL_GROUP=20, /*! implicit variable of type integer that specifies the *index* of the given device. this variable type is implicit in the sense that it only gets _declared_ on the host, and gets set automatically during SBT creation */ OWL_DEVICE=30, /*! texture(s) */ OWL_TEXTURE=40, OWL_TEXTURE_2D=OWL_TEXTURE, /* all types that are naively copyable should be below this value, all that aren't should be above */ _OWL_BEGIN_COPYABLE_TYPES = 1000, OWL_FLOAT=1000, OWL_FLOAT2, OWL_FLOAT3, OWL_FLOAT4, OWL_INT=1010, OWL_INT2, OWL_INT3, OWL_INT4, OWL_UINT=1020, OWL_UINT2, OWL_UINT3, OWL_UINT4, OWL_LONG=1030, OWL_LONG2, OWL_LONG3, OWL_LONG4, OWL_ULONG=1040, OWL_ULONG2, OWL_ULONG3, OWL_ULONG4, OWL_DOUBLE=1050, OWL_DOUBLE2, OWL_DOUBLE3, OWL_DOUBLE4, OWL_CHAR=1060, OWL_CHAR2, OWL_CHAR3, OWL_CHAR4, /*! unsigend 8-bit integer */ OWL_UCHAR=1070, OWL_UCHAR2, OWL_UCHAR3, OWL_UCHAR4, OWL_SHORT=1080, OWL_SHORT2, OWL_SHORT3, OWL_SHORT4, /*! unsigend 8-bit integer */ OWL_USHORT=1090, OWL_USHORT2, OWL_USHORT3, OWL_USHORT4, OWL_BOOL, OWL_BOOL2, OWL_BOOL3, OWL_BOOL4, /*! just another name for a 64-bit data type - unlike OWL_BUFFER_POINTER's (which gets translated from OWLBuffer's to actual device-side poiners) these OWL_RAW_POINTER types get copied binary without any translation. This is useful for owl-cuda interaction (where the user already has device pointers), but should not be used for logical buffers */ OWL_RAW_POINTER=OWL_ULONG, OWL_BYTE = OWL_UCHAR, // OWL_BOOL = OWL_UCHAR, // OWL_BOOL2 = OWL_UCHAR2, // OWL_BOOL3 = OWL_UCHAR3, // OWL_BOOL4 = OWL_UCHAR4, /* matrix formats */ OWL_AFFINE3F=1300, /*! at least for now, use that for buffers with user-defined types: type then is "OWL_USER_TYPE_BEGIN+sizeof(elementtype). Note that since we always _add_ the user type's size to this value this MUST be the last entry in the enum */ OWL_USER_TYPE_BEGIN=10000 } OWLDataType; #define OWL_USER_TYPE(userType) ((OWLDataType)(OWL_USER_TYPE_BEGIN+sizeof(userType))) typedef enum { // soon to be deprecated old naming OWL_GEOMETRY_USER, // new naming, to be consistent with type OLWGeom (not OWLGeometry): OWL_GEOM_USER=OWL_GEOMETRY_USER, // soon to be deprecated old naming OWL_GEOMETRY_TRIANGLES, // new naming, to be consistent with type OLWGeom (not OWLGeometry): OWL_GEOM_TRIANGLES=OWL_GEOMETRY_TRIANGLES, OWL_TRIANGLES=OWL_GEOMETRY_TRIANGLES, /*! maps to optix curves geometry */ OWL_GEOMETRY_CURVES, /*! maps to optix sphere geometry */ OWL_GEOMETRY_SPHERES } OWLGeomKind; #define OWL_ALL_RAY_TYPES -1 typedef float OWL_float; typedef double OWL_double; typedef int32_t OWL_int; typedef uint32_t OWL_uint; typedef int64_t OWL_long; typedef uint64_t OWL_ulong; typedef struct _OWL_int2 { int32_t x,y; } owl2i; typedef struct _OWL_uint2 { int32_t x,y; } owl2ui; typedef struct _OWL_long2 { int64_t x,y; } owl2l; typedef struct _OWL_ulong2 { uint64_t x,y; } owl2ul; typedef struct _OWL_float2 { float x,y; } owl2f; typedef struct _OWL_double2 { double x,y; } owl2d; typedef struct _OWL_int3 { int32_t x,y,z; } owl3i; typedef struct _OWL_uint3 { uint32_t x,y,z; } owl3ui; typedef struct _OWL_long3 { int64_t x,y,z; } owl3l; typedef struct _OWL_ulong3 { uint64_t x,y,z; } owl3ul; typedef struct _OWL_float3 { float x,y,z; } owl3f; typedef struct _OWL_double3 { double x,y,z; } owl3d; typedef struct _OWL_int4 { int32_t x,y,z,w; } owl4i; typedef struct _OWL_uint4 { uint32_t x,y,z,w; } owl4ui; typedef struct _OWL_long4 { int64_t x,y,z,w; } owl4l; typedef struct _OWL_ulong4 { uint64_t x,y,z,w; } owl4ul; typedef struct _OWL_float4 { float x,y,z,w; } owl4f; typedef struct _OWL_double4 { double x,y,z,w; } owl4d; typedef struct _OWL_affine3f { owl3f vx,vy,vz,t; } owl4x3f; typedef struct _OWLVarDecl { const char *name; OWLDataType type; uint32_t offset; } OWLVarDecl; typedef struct _OWLBoundValueDecl { OWLVarDecl var; void *boundValuePtr; } OWLBoundValueDecl; /*! supported formats for texels in textures */ typedef enum { OWL_TEXEL_FORMAT_RGBA8, OWL_TEXEL_FORMAT_RGBA32F, OWL_TEXEL_FORMAT_R8, OWL_TEXEL_FORMAT_R32F } OWLTexelFormat; /*! currently supported texture filter modes */ typedef enum { OWL_TEXTURE_NEAREST, OWL_TEXTURE_LINEAR } OWLTextureFilterMode; /*! currently supported texture filter modes */ typedef enum { OWL_TEXTURE_WRAP, OWL_TEXTURE_CLAMP, OWL_TEXTURE_BORDER, OWL_TEXTURE_MIRROR } OWLTextureAddressMode; /*! Indicates if a texture is linear or SRGB */ typedef enum { OWL_COLOR_SPACE_LINEAR, OWL_COLOR_SPACE_SRGB } OWLTextureColorSpace; // ------------------------------------------------------------------ // device-objects - size of those _HAS_ to match the device-side // definition of these types // ------------------------------------------------------------------ typedef OptixTraversableHandle OWLDeviceTraversable; typedef struct _OWLDeviceBuffer2D { void *d_pointer; owl2i dims; } OWLDeviceBuffer2D; typedef struct _OWLContext *OWLContext; typedef struct _OWLBuffer *OWLBuffer; typedef struct _OWLTexture *OWLTexture; typedef struct _OWLGeom *OWLGeom; typedef struct _OWLGeomType *OWLGeomType; typedef struct _OWLVariable *OWLVariable; typedef struct _OWLModule *OWLModule; typedef struct _OWLGroup *OWLGroup; typedef struct _OWLRayGen *OWLRayGen; typedef struct _OWLMissProg *OWLMissProg; /*! launch params (or "globals") are variables that can be put into device constant memory, accessible through a CUDA "__constant__ <Type> optixLaunchParams;" variable on the device side. Launch params capture the layout of this struct, and the value of its members, on the host side, then properly fill it in before executing a launch. OptiX calls those "launch parameters" because they are similar to how parameters to a CUDA kernel are internally treated; we also call them "globals" because they are globally accessible to all programs within a given launch */ typedef struct _OWLLaunchParams *OWLLaunchParams, *OWLParams, *OWLGlobals; OWL_API void owlBuildPrograms(OWLContext context); OWL_API void owlBuildPipeline(OWLContext context); OWL_API void owlBuildSBT(OWLContext context, OWLBuildSBTFlags flags OWL_IF_CPP(=OWL_SBT_ALL)); /*! returns number of devices available in the given context */ OWL_API int32_t owlGetDeviceCount(OWLContext context); /*! creates a new device context with the gives list of devices. If requested device IDs list if null it implicitly refers to the list "0,1,2,...."; if numDevices <= 0 it automatically refers to "all devices you can find". Examples: - owlContextCreate(nullptr,1) creates one device on the first GPU - owlContextCreate(nullptr,0) creates a context across all GPUs in the system - int gpu=2;owlContextCreate(&gpu,1) will create a context on GPU #2 (where 2 refers to the CUDA device ordinal; from that point on, from owl's standpoint (eg, during owlBufferGetPointer() this GPU will from that point on be known as device #0 */ OWL_API OWLContext owlContextCreate(int32_t *requestedDeviceIDs OWL_IF_CPP(=nullptr), int numDevices OWL_IF_CPP(=0)); OWL_API void owlContextDestroy(OWLContext context); /*! tell the context/pipeline to enable the support for curves geometries; this _must_ be called when using curves geometries. If you want to use _both_ motion blur and curves, motion blur has to be enabled _before_ enableing curves */ OWL_API void owlEnableCurves(OWLContext _context); /*! tell the context/pipeline to enable the support for curves geometries; this _must_ be called when using curves geometries. If you want to use _both_ motion blur and curves, motion blur has to be enabled _before_ enableing curves */ OWL_API void owlEnableSpheres(OWLContext _context); /*! enable motion blur for this context. this _has_ to be called before creating any geometries, groups, etc, and before the pipeline gets compiled. Ie, it shold be called _right_ after context creation */ OWL_API void owlEnableMotionBlur(OWLContext _context); /*! set number of ray types to be used in this context; this should be done before any programs, pipelines, geometries, etc get created */ OWL_API void owlContextSetRayTypeCount(OWLContext context, size_t numRayTypes); /* Set number of attributes for passing data from custom Intersection programs to ClosestHit programs. Default 2. Has no effect once programs are built.*/ OWL_API void owlContextSetNumAttributeValues(OWLContext context, size_t numAttributeValues); /*! tells OptiX to specialize the values of certain launch parameters when compiling modules, and ignore their values at launch. See section 6.3.1 of the OptiX 7.2 programming guide. This call is a no-op for OptiX versions < 7.2, and programs should not rely on it for correct behavior. OWL stores a copy of the array internally. */ OWL_API void owlContextSetBoundLaunchParamValues(OWLContext context, const OWLBoundValueDecl *boundValues, int numBoundValues); /*! sets maximum instancing depth for the given context: '0' means 'no instancing allowed, only bottom-level accels; Note this mode isn't actually allowed in OWL right now, as the most convenient way of realizing it is actually *slower* than simply putting a single "dummy" instance (with just this one child, and a identify transform) over each blas. '1' means 'at most one layer of instances' (ie, a two-level scene), where the 'root' world rays are traced against can be an instance group, but every child in that inscne group is a geometry group. 'N>1" means "up to N layers of instances are allowed. The default instancing depth is 1 (ie, a two-level scene), since this allows for most use cases of instancing and is still hardware-accelerated. Using a node graph with instancing deeper than the configured value will result in wrong results; but be aware that using any value > 1 here will come with a cost. It is recommended to, if at all possible, leave this value to one and convert the input scene to a two-level scene layout (ie, with only one level of instances) */ OWL_API void owlSetMaxInstancingDepth(OWLContext context, int32_t maxInstanceDepth); /* return the cuda stream associated with the given device. */ OWL_API CUstream owlContextGetStream(OWLContext context, int deviceID); /* return the optix context associated with the given device. */ OWL_API OptixDeviceContext owlContextGetOptixContext(OWLContext context, int deviceID); OWL_API OWLModule owlModuleCreate(OWLContext context, const char *ptxCode); OWL_API void owlModuleRelease(OWLModule module); OWL_API OWLGeom owlGeomCreate(OWLContext context, OWLGeomType type); OWL_API void owlGeomRelease(OWLGeom geometry); OWL_API OWLParams owlParamsCreate(OWLContext context, size_t sizeOfVarStruct, const OWLVarDecl *vars, int numVars); OWL_API OWLRayGen owlRayGenCreate(OWLContext context, OWLModule module, const char *programName, size_t sizeOfVarStruct, const OWLVarDecl *vars, int numVars); OWL_API void owlRayGenRelease(OWLRayGen rayGen); /*! creates a miss program with given function name (in given module) and given variables. Note due to backwards compatibility this will also automatically *set*, by default, the first such created program as miss program for ray type number 0, the second one for ray type number 1, etc. If another order is desired, you can use \see owlMissProgSet to explicitly assign miss programs to specific ray types */ OWL_API OWLMissProg owlMissProgCreate(OWLContext context, OWLModule module, const char *programName, size_t sizeOfVarStruct, const OWLVarDecl *vars, int numVars); /*! sets the given miss program for the given ray type */ OWL_API void owlMissProgSet(OWLContext context, int rayType, OWLMissProg missProgToUse); // ------------------------------------------------------------------ /*! create a new group (which handles the acceleration strucure) for triangle geometries. \param numGeometries Number of geometries in this group, must be non-zero. \param arrayOfChildGeoms A array of 'numGeomteries' child geometries. Every geom in this array must be a valid owl geometry created with owlGeomCreate, and must be of a OWL_GEOM_USER type. \param buildFlags A combination of OptixBuildFlags. The default of 0 means to use OWL default build flags. */ OWL_API OWLGroup owlUserGeomGroupCreate(OWLContext context, size_t numGeometries, OWLGeom *arrayOfChildGeoms, unsigned int buildFlags OWL_IF_CPP(=0)); // ------------------------------------------------------------------ /*! create a new group (which handles the acceleration strucure) for triangle geometries. \param numGeometries Number of geometries in this group, must be non-zero. \param arrayOfChildGeoms A array of 'numGeometries' child geometries. Every geom in this array must be a valid owl geometry created with owlGeomCreate, and must be of a OWL_GEOM_TRIANGLES type. \param buildFlags A combination of OptixBuildFlags. The default of 0 means to use OWL default build flags. */ OWL_API OWLGroup owlTrianglesGeomGroupCreate(OWLContext context, size_t numGeometries, OWLGeom *initValues, unsigned int buildFlags OWL_IF_CPP(=0)); // ------------------------------------------------------------------ /*! create a new group (which handles the acceleration strucure) for "curves" geometries. \param numGeometries Number of geometries in this group, must be non-zero. \param arrayOfChildGeoms A array of 'numGeometries' child geometries. Every geom in this array must be a valid owl geometry created with owlGeomCreate, and must be of a OWL_GEOM_CURVES type. \param buildFlags A combination of OptixBuildFlags. The default of 0 means to use OWL default build flags. Note that in order to use curves geometries you _have_ to call owlEnableCurves() before curves are used; in particular, curves _have_ to already be enabled when the pipeline gets compiled. */ OWL_API OWLGroup owlCurvesGeomGroupCreate(OWLContext context, size_t numCurveGeometries, OWLGeom *curveGeometries, unsigned int buildFlags OWL_IF_CPP(=0)); // ------------------------------------------------------------------ /*! create a new group (which handles the acceleration strucure) for sphere geometries. \param numGeometries Number of geometries in this group, must be non-zero. \param arrayOfChildGeoms A array of 'numGeomteries' child geometries. Every geom in this array must be a valid owl geometry created with owlGeomCreate, and must be of a OWL_GEOMETRY_SPHERES type. \param buildFlags A combination of OptixBuildFlags. The default of 0 means to use OWL default build flags. */ OWL_API OWLGroup owlSphereGeomGroupCreate(OWLContext context, size_t numGeometries, OWLGeom *arrayOfChildGeoms, unsigned int buildFlags OWL_IF_CPP(=0)); // ------------------------------------------------------------------ /*! create a new instance group with given number of instances. The child groups and their instance IDs and/or transforms can either be specified "in bulk" as part of this call, or can be set later on with individual calls to \see owlInstanceGroupSetChild and \see owlInstanceGroupSetTransform. Note however, that in the case of having millions of instances in a group it will be *much* more efficient to set them in bulk open creation, than in millions of inidiviual API calls. Either or all of initGroups, initTranforms, or initInstanceIDs may be null, in which case the values used for the 'th child will be an uninitialized (invalid) group, a unit transform, and 'i', respectively. If initGroups was null, make sure to set all of the child groups with \see owlInstanceGroupSetChild before using this group, or it will crash. */ OWL_API OWLGroup owlInstanceGroupCreate(OWLContext context, /*! number of instances in this group */ size_t numInstances, /*! the initial list of owl groups to use by the instances in this group; must be either null, or an array of the size 'numInstances', the i'th instance in this group will be an instance of the i'th element in this list. If null, you must set all the children individually before using this group. */ const OWLGroup *initGroups OWL_IF_CPP(= nullptr), /*! instance IDs to use for the instance in this group; must be eithe rnull, or an array of size numInstnaces. If null, the i'th child of this instance group will use instanceID=i, otherwise, it will use the user-provided instnace ID from this list. Specifying an instanceID will affect what value 'optixGetInstanceID' will return in a CH program that refers to the given instance */ const uint32_t *initInstanceIDs OWL_IF_CPP(= nullptr), /*! initial list of transforms that this instance group will use; must be either null, or an array of size numInstnaces, of the format specified */ const float *initTransforms OWL_IF_CPP(= nullptr), OWLMatrixFormat matrixFormat OWL_IF_CPP(=OWL_MATRIX_FORMAT_OWL), /*! A combination of OptixBuildFlags. The default of 0 means to use OWL default build flags.*/ unsigned int buildFlags OWL_IF_CPP(=0) ); OWL_API void owlGroupRelease(OWLGroup group); OWL_API void owlGroupBuildAccel(OWLGroup group); OWL_API void owlGroupRefitAccel(OWLGroup group); /*! returns the (device) memory used for this group's acceleration structure (but _excluding_ the memory for the geometries itself). "memFinal" is how much memory is used for the _final_ version of the BVH (after it is done building), "memPeak" is peak memory used during construction. passing a NULL pointer to any value is valid; these values will get ignored. */ OWL_API void owlGroupGetAccelSize(OWLGroup group, size_t *p_memFinal, size_t *p_memPeak); OWL_API OWLGeomType owlGeomTypeCreate(OWLContext context, OWLGeomKind kind, size_t sizeOfVarStruct, const OWLVarDecl *vars, int numVars); /*! create new texture of given format and dimensions - for now, we only do "wrap" textures, and eithe rbilinear or nearest filter; once we allow for doing things like texture borders we'll have to change this api */ OWL_API OWLTexture owlTexture2DCreate(OWLContext context, OWLTexelFormat texelFormat, /*! number of texels in x dimension */ uint32_t size_x, /*! number of texels in y dimension */ uint32_t size_y, const void *texels, OWLTextureFilterMode filterMode OWL_IF_CPP(=OWL_TEXTURE_LINEAR), OWLTextureAddressMode addressMode OWL_IF_CPP(=OWL_TEXTURE_CLAMP), OWLTextureColorSpace colorSpace OWL_IF_CPP(=OWL_COLOR_SPACE_LINEAR), /*! number of bytes between one line of texels and the next; '0' means 'size_x * sizeof(texel)' */ uint32_t linePitchInBytes OWL_IF_CPP(=0) ); /*! destroy the given texture; after this call any accesses to the given texture are invalid */ OWL_API void owlTexture2DDestroy(OWLTexture texture); /*! returns the device handle of the given texture for the given device ID. Useful for custom texture object arrays. */ OWL_API CUtexObject owlTextureGetObject(OWLTexture texture, int deviceID); /*! creates a device buffer where every device has its own local copy of the given buffer */ OWL_API OWLBuffer owlDeviceBufferCreate(OWLContext context, OWLDataType type, size_t count, const void *init); /*! creates a buffer that uses CUDA host pinned memory; that memory is pinned on the host and accessive to all devices in the deviec group */ OWL_API OWLBuffer owlHostPinnedBufferCreate(OWLContext context, OWLDataType type, size_t count); /*! creates a buffer that uses CUDA managed memory; that memory is managed by CUDA (see CUDAs documentatoin on managed memory) and accessive to all devices in the deviec group */ OWL_API OWLBuffer owlManagedMemoryBufferCreate(OWLContext context, OWLDataType type, size_t count, const void *init); /*! creates a buffer wrapping a CUDA graphics resource; the resource must be created and registered by the user */ OWL_API OWLBuffer owlGraphicsBufferCreate(OWLContext context, OWLDataType type, size_t count, cudaGraphicsResource_t resource); /*! OWL objects are reference-counted. This will release the reference to the buffer, and free it if it was the last reference. */ OWL_API void owlBufferRelease(OWLBuffer buffer); /*! destroy the given buffer; this will both release the app's refcount on the given buffer handle, *and* the buffer itself; ie, even if some objects still hold variables that refer to the old handle the buffer itself will be freed */ OWL_API void owlBufferDestroy(OWLBuffer buffer); OWL_API void owlGraphicsBufferMap(OWLBuffer buffer); OWL_API void owlGraphicsBufferUnmap(OWLBuffer buffer); /*! returns the device pointer of the given pointer for the given device ID. For host-pinned or managed memory buffers (where the buffer is shared across all devices) this pointer should be the same across all devices (and even be accessible on the host); for device buffers each device *may* see this buffer under a different address, and that address is not valid on the host. Note this function is paricuarly useful for CUDA-interop; allowing to cudaMemcpy to/from an owl buffer directly from CUDA code */ OWL_API const void * owlBufferGetPointer(OWLBuffer buffer, int deviceID); OWL_API OptixTraversableHandle owlGroupGetTraversable(OWLGroup group, int deviceID); OWL_API void owlBufferResize(OWLBuffer buffer, size_t newItemCount); OWL_API size_t owlBufferSizeInBytes(OWLBuffer buffer); /*! uploads data from given host poiner to given device, uploading 'numItems' items to the destination array offset provided in 'destItemOffset'. \note "Items" and "offset" in that context are computed relative to the type that the given buffer was declared over; so for a OWL_FLOAT buffer this function uploads numItems float values to a float buffer; for a OWL_INT3 buffer it will upload numItems int3 values, etc. Similarly, the offset is also calculated in typed items: i.e., a specified offset of N in a FLOAT2 buffer will upload to byte offset N*sizeof(float2) (i.e., 8 bytes). \param numItems number of (typed) items to upload. A value of numItems==-1 means "upload as many as the buffer has been created over" \param destItemOffset offset in the target buffer (calculated in number of typed _items_, not _bytes_!). I.e., a offset value of 0 will upload to the beginning of the buffer, a offset value of N will upload with an offset of N*sizeof(T) bytes (where T is the type that the buffer was declared over) */ OWL_API void owlBufferUpload(OWLBuffer buffer, const void *hostPtr, size_t destItemOffset OWL_IF_CPP(=0), size_t numItems OWL_IF_CPP(=size_t(-1))); /*! clears a buffer in the sense that it sets the entire memory region to zeroes. Note this is currently implemneted only for buffers of copyable data (ie, not buffers of objects). */ OWL_API void owlBufferClear(OWLBuffer buffer); /*! executes an optix launch of given size, with given launch program. Note this is asynchronous, and may _not_ be completed by the time this function returns. */ OWL_API void owlRayGenLaunch2D(OWLRayGen rayGen, int dims_x, int dims_y); /*! 3D-launch variant of \see owlRayGenLaunch2D */ OWL_API void owlRayGenLaunch3D(OWLRayGen rayGen, int dims_x, int dims_y, int dims_z); /*! perform a raygen launch with launch parameters, in a *synchronous* way; it, by the time this function returns the launch is completed. Both rayGen and params must be valid handles; it is valid to have a empty params, but it may not be null */ OWL_API void owlLaunch2D(OWLRayGen rayGen, int dims_x, int dims_y, OWLParams params); /*! 3D launch variant of owlLaunch2D */ OWL_API void owlLaunch3D(OWLRayGen rayGen, int dims_x, int dims_y, int dims_z, OWLParams params); /*! perform a raygen launch with launch parameters, in a *A*synchronous way; it, this will only launch, but *NOT* wait for completion (see owlLaunchSync). Both rayGen and params must be valid handles; it is valid to have a empty params, but it may not be null */ OWL_API void owlAsyncLaunch2D(OWLRayGen rayGen, int dims_x, int dims_y, OWLParams params); /*! 3D-launch equivalent of \see owlAsyncLaunch2D */ OWL_API void owlAsyncLaunch3D(OWLRayGen rayGen, int dims_x, int dims_y, int dims_z, OWLParams params); /*! perform a raygen launch with launch parameters, but only for a given device, and in an asynchronous way. This function is useful for dynamic load balancing. */ OWL_API void owlAsyncLaunch2DOnDevice(OWLRayGen rayGen, int dims_x, int dims_y, int deviceID, OWLParams params); OWL_API CUstream owlParamsGetCudaStream(OWLParams params, int deviceID); /*! wait for the async launch to finish */ OWL_API void owlLaunchSync(OWLParams params); // ================================================================== // "Triangles" functions // ================================================================== OWL_API void owlTrianglesSetVertices(OWLGeom triangles, OWLBuffer vertices, size_t count, size_t stride, size_t offset); OWL_API void owlTrianglesSetMotionVertices(OWLGeom triangles, /*! number of vertex arrays passed here, the first of those is for t=0, thelast for t=1, everything is linearly interpolated in-between */ size_t numKeys, OWLBuffer *vertexArrays, size_t count, size_t stride, size_t offset); OWL_API void owlTrianglesSetIndices(OWLGeom triangles, OWLBuffer indices, size_t count, size_t stride, size_t offset); // ================================================================== // "Curves" functions // ================================================================== /*! sets curve degree (1="linear", 2="quadratic b-spline", 3="cubic b-spline"), as well as whether end-caps need to get added for non-linear curves (linear curves always have end-caps, no matter what this value is */ OWL_API void owlCurvesSetDegree(OWLGeomType curvesGeomType, int degree, bool forceCaps); /*! sets the array of control points, and their associated curve width. */ OWL_API void owlCurvesSetControlPoints(OWLGeom curvesGeom, int numControlPoints, /*! buffer of (one vec3f per control point) that specifies curve width */ OWLBuffer vertices, /*! buffer of (one float per control point) the curve width of that control point */ OWLBuffer widths); OWL_API void owlCurvesSetSegmentIndices(OWLGeom curvesGeom, int numSegmentIndices, OWLBuffer segmentIndices); // ================================================================== // "Spheres" functions // ================================================================== /*! sets the array of control points, and their associated curve width. */ OWL_API void owlSpheresSetVertices(OWLGeom spheresGeom, int numSpheres, /*! buffer of (one vec3f per sphere) that specifies center */ OWLBuffer vertices, /*! buffer of (one float per sphere) specifies radius*/ OWLBuffer radius); // ------------------------------------------------------- // group/hierarchy creation and setting // ------------------------------------------------------- OWL_API void owlInstanceGroupSetChild(OWLGroup group, int whichChild, OWLGroup child); /*! sets the transformatoin matrix to be applied to the childID'th child of the given instance group */ OWL_API void owlInstanceGroupSetTransform(OWLGroup group, int whichChild, const float *floats, OWLMatrixFormat matrixFormat OWL_IF_CPP(=OWL_MATRIX_FORMAT_OWL)); /*! this function allows to set up to N different arrays of trnsforms for motion blur; the first such array is used as transforms for t=0, the last one for t=1. */ OWL_API void owlInstanceGroupSetTransforms(OWLGroup group, /*! whether to set for t=0 or t=1 - currently supporting only 0 or 1*/ uint32_t timeStep, const float *floatsForThisStimeStep, OWLMatrixFormat matrixFormat OWL_IF_CPP(=OWL_MATRIX_FORMAT_OWL)); /*! sets the list of IDs to use for the child instnaces. By default the instance ID of child #i is simply i, but optix allows to specify a user-defined instnace ID for each instance, which with owl can be done through this array. Array size must match number of instances in the specified group */ OWL_API void owlInstanceGroupSetInstanceIDs(OWLGroup group, const uint32_t *instanceIDs); OWL_API void owlInstanceGroupSetVisibilityMasks(OWLGroup group, const uint8_t *visibilityMasks); OWL_API void owlGeomTypeSetClosestHit(OWLGeomType type, int rayType, OWLModule module, const char *progName); OWL_API void owlGeomTypeSetAnyHit(OWLGeomType type, int rayType, OWLModule module, const char *progName); OWL_API void owlGeomTypeSetIntersectProg(OWLGeomType type, int rayType, OWLModule module, const char *progName); OWL_API void owlGeomTypeSetBoundsProg(OWLGeomType type, OWLModule module, const char *progName); /*! set the primitive count for the given uesr geometry. this _has_ to be set before the group(s) that this geom is used in get built */ OWL_API void owlGeomSetPrimCount(OWLGeom geom, size_t primCount); // ------------------------------------------------------- // VariableGet for the various types // ------------------------------------------------------- OWL_API OWLVariable owlGeomGetVariable(OWLGeom geom, const char *varName); OWL_API OWLVariable owlRayGenGetVariable(OWLRayGen geom, const char *varName); OWL_API OWLVariable owlMissProgGetVariable(OWLMissProg geom, const char *varName); OWL_API OWLVariable owlParamsGetVariable(OWLParams object, const char *varName); OWL_API void owlVariableRelease(OWLVariable variable); // ------------------------------------------------------- // VariableSet for different variable types // ------------------------------------------------------- // setters for bools (c++ only) #ifdef __cplusplus OWL_API void owlVariableSet1b(OWLVariable var, bool val); OWL_API void owlVariableSet2b(OWLVariable var, bool x, bool y); OWL_API void owlVariableSet3b(OWLVariable var, bool x, bool y, bool z); OWL_API void owlVariableSet4b(OWLVariable var, bool x, bool y, bool z, bool w); OWL_API void owlVariableSet2bv(OWLVariable var, const bool *val); OWL_API void owlVariableSet3bv(OWLVariable var, const bool *val); OWL_API void owlVariableSet4bv(OWLVariable var, const bool *val); #endif // setters for 8-bit signed ints OWL_API void owlVariableSet1c(OWLVariable var, int8_t val); OWL_API void owlVariableSet2c(OWLVariable var, int8_t x, int8_t y); OWL_API void owlVariableSet3c(OWLVariable var, int8_t x, int8_t y, int8_t z); OWL_API void owlVariableSet4c(OWLVariable var, int8_t x, int8_t y, int8_t z, int8_t w); OWL_API void owlVariableSet2cv(OWLVariable var, const int8_t *val); OWL_API void owlVariableSet3cv(OWLVariable var, const int8_t *val); OWL_API void owlVariableSet4cv(OWLVariable var, const int8_t *val); // setters for 8-bit unsigned ints OWL_API void owlVariableSet1uc(OWLVariable var, uint8_t val); OWL_API void owlVariableSet2uc(OWLVariable var, uint8_t x, uint8_t y); OWL_API void owlVariableSet3uc(OWLVariable var, uint8_t x, uint8_t y, uint8_t z); OWL_API void owlVariableSet4uc(OWLVariable var, uint8_t x, uint8_t y, uint8_t z, uint8_t w); OWL_API void owlVariableSet2ucv(OWLVariable var, const uint8_t *val); OWL_API void owlVariableSet3ucv(OWLVariable var, const uint8_t *val); OWL_API void owlVariableSet4ucv(OWLVariable var, const uint8_t *val); // setters for 16-bit signed ints OWL_API void owlVariableSet1s(OWLVariable var, int16_t val); OWL_API void owlVariableSet2s(OWLVariable var, int16_t x, int16_t y); OWL_API void owlVariableSet3s(OWLVariable var, int16_t x, int16_t y, int16_t z); OWL_API void owlVariableSet4s(OWLVariable var, int16_t x, int16_t y, int16_t z, int16_t w); OWL_API void owlVariableSet2sv(OWLVariable var, const int16_t *val); OWL_API void owlVariableSet3sv(OWLVariable var, const int16_t *val); OWL_API void owlVariableSet4sv(OWLVariable var, const int16_t *val); // setters for 16-bit unsigned ints OWL_API void owlVariableSet1us(OWLVariable var, uint16_t val); OWL_API void owlVariableSet2us(OWLVariable var, uint16_t x, uint16_t y); OWL_API void owlVariableSet3us(OWLVariable var, uint16_t x, uint16_t y, uint16_t z); OWL_API void owlVariableSet4us(OWLVariable var, uint16_t x, uint16_t y, uint16_t z, uint16_t w); OWL_API void owlVariableSet2usv(OWLVariable var, const uint16_t *val); OWL_API void owlVariableSet3usv(OWLVariable var, const uint16_t *val); OWL_API void owlVariableSet4usv(OWLVariable var, const uint16_t *val); // setters for 32-bit floats OWL_API void owlVariableSet1f(OWLVariable var, float val); OWL_API void owlVariableSet2f(OWLVariable var, float x, float y); OWL_API void owlVariableSet3f(OWLVariable var, float x, float y, float z); OWL_API void owlVariableSet4f(OWLVariable var, float x, float y, float z, float w); OWL_API void owlVariableSet2fv(OWLVariable var, const float *val); OWL_API void owlVariableSet3fv(OWLVariable var, const float *val); OWL_API void owlVariableSet4fv(OWLVariable var, const float *val); // setters for 32-bit signed ints OWL_API void owlVariableSet1i(OWLVariable var, int32_t val); OWL_API void owlVariableSet2i(OWLVariable var, int32_t x, int32_t y); OWL_API void owlVariableSet3i(OWLVariable var, int32_t x, int32_t y, int32_t z); OWL_API void owlVariableSet4i(OWLVariable var, int32_t x, int32_t y, int32_t z, int32_t w); OWL_API void owlVariableSet2iv(OWLVariable var, const int32_t *val); OWL_API void owlVariableSet3iv(OWLVariable var, const int32_t *val); OWL_API void owlVariableSet4iv(OWLVariable var, const int32_t *val); // setters for 32-bit unsigned ints OWL_API void owlVariableSet1ui(OWLVariable var, uint32_t val); OWL_API void owlVariableSet2ui(OWLVariable var, uint32_t x, uint32_t y); OWL_API void owlVariableSet3ui(OWLVariable var, uint32_t x, uint32_t y, uint32_t z); OWL_API void owlVariableSet4ui(OWLVariable var, uint32_t x, uint32_t y, uint32_t z, uint32_t w); OWL_API void owlVariableSet2uiv(OWLVariable var, const uint32_t *val); OWL_API void owlVariableSet3uiv(OWLVariable var, const uint32_t *val); OWL_API void owlVariableSet4uiv(OWLVariable var, const uint32_t *val); // setters for 64-bit doubles OWL_API void owlVariableSet1d(OWLVariable var, double val); OWL_API void owlVariableSet2d(OWLVariable var, double x, double y); OWL_API void owlVariableSet3d(OWLVariable var, double x, double y, double z); OWL_API void owlVariableSet4d(OWLVariable var, double x, double y, double z, double w); OWL_API void owlVariableSet2dv(OWLVariable var, const double *val); OWL_API void owlVariableSet3dv(OWLVariable var, const double *val); OWL_API void owlVariableSet4dv(OWLVariable var, const double *val); // setters for 64-bit signed ints OWL_API void owlVariableSet1l(OWLVariable var, int64_t val); OWL_API void owlVariableSet2l(OWLVariable var, int64_t x, int64_t y); OWL_API void owlVariableSet3l(OWLVariable var, int64_t x, int64_t y, int64_t z); OWL_API void owlVariableSet4l(OWLVariable var, int64_t x, int64_t y, int64_t z, int64_t w); OWL_API void owlVariableSet2lv(OWLVariable var, const int64_t *val); OWL_API void owlVariableSet3lv(OWLVariable var, const int64_t *val); OWL_API void owlVariableSet4lv(OWLVariable var, const int64_t *val); // setters for 64-bit unsigned ints OWL_API void owlVariableSet1ul(OWLVariable var, uint64_t val); OWL_API void owlVariableSet2ul(OWLVariable var, uint64_t x, uint64_t y); OWL_API void owlVariableSet3ul(OWLVariable var, uint64_t x, uint64_t y, uint64_t z); OWL_API void owlVariableSet4ul(OWLVariable var, uint64_t x, uint64_t y, uint64_t z, uint64_t w); OWL_API void owlVariableSet2ulv(OWLVariable var, const uint64_t *val); OWL_API void owlVariableSet3ulv(OWLVariable var, const uint64_t *val); OWL_API void owlVariableSet4ulv(OWLVariable var, const uint64_t *val); // setters for 'meta' variables OWL_API void owlVariableSetGroup (OWLVariable variable, OWLGroup value); OWL_API void owlVariableSetTexture(OWLVariable variable, OWLTexture value); OWL_API void owlVariableSetBuffer (OWLVariable variable, OWLBuffer value); OWL_API void owlVariableSetRaw (OWLVariable variable, const void *valuePtr); OWL_API void owlVariableSetPointer(OWLVariable variable, const void *valuePtr); #ifdef __cplusplus // ------------------------------------------------------------------ // setters for variables of type "bool" (bools only on c++) // ------------------------------------------------------------------ // setters for variables on "RayGen"s OWL_API void owlRayGenSet1b(OWLRayGen var, const char *name, bool val); OWL_API void owlRayGenSet2b(OWLRayGen var, const char *name, bool x, bool y); OWL_API void owlRayGenSet3b(OWLRayGen var, const char *name, bool x, bool y, bool z); OWL_API void owlRayGenSet4b(OWLRayGen var, const char *name, bool x, bool y, bool z, bool w); OWL_API void owlRayGenSet2bv(OWLRayGen var, const char *name, const bool *val); OWL_API void owlRayGenSet3bv(OWLRayGen var, const char *name, const bool *val); OWL_API void owlRayGenSet4bv(OWLRayGen var, const char *name, const bool *val); // setters for variables on "MissProg"s OWL_API void owlMissProgSet1b(OWLMissProg var, const char *name, bool val); OWL_API void owlMissProgSet2b(OWLMissProg var, const char *name, bool x, bool y); OWL_API void owlMissProgSet3b(OWLMissProg var, const char *name, bool x, bool y, bool z); OWL_API void owlMissProgSet4b(OWLMissProg var, const char *name, bool x, bool y, bool z, bool w); OWL_API void owlMissProgSet2bv(OWLMissProg var, const char *name, const bool *val); OWL_API void owlMissProgSet3bv(OWLMissProg var, const char *name, const bool *val); OWL_API void owlMissProgSet4bv(OWLMissProg var, const char *name, const bool *val); // setters for variables on "Geom"s OWL_API void owlGeomSet1b(OWLGeom var, const char *name, bool val); OWL_API void owlGeomSet2b(OWLGeom var, const char *name, bool x, bool y); OWL_API void owlGeomSet3b(OWLGeom var, const char *name, bool x, bool y, bool z); OWL_API void owlGeomSet4b(OWLGeom var, const char *name, bool x, bool y, bool z, bool w); OWL_API void owlGeomSet2bv(OWLGeom var, const char *name, const bool *val); OWL_API void owlGeomSet3bv(OWLGeom var, const char *name, const bool *val); OWL_API void owlGeomSet4bv(OWLGeom var, const char *name, const bool *val); // setters for variables on "Params"s OWL_API void owlParamsSet1b(OWLParams var, const char *name, bool val); OWL_API void owlParamsSet2b(OWLParams var, const char *name, bool x, bool y); OWL_API void owlParamsSet3b(OWLParams var, const char *name, bool x, bool y, bool z); OWL_API void owlParamsSet4b(OWLParams var, const char *name, bool x, bool y, bool z, bool w); OWL_API void owlParamsSet2bv(OWLParams var, const char *name, const bool *val); OWL_API void owlParamsSet3bv(OWLParams var, const char *name, const bool *val); OWL_API void owlParamsSet4bv(OWLParams var, const char *name, const bool *val); #endif // ------------------------------------------------------------------ // setters for variables of type "char" // ------------------------------------------------------------------ // setters for variables on "RayGen"s OWL_API void owlRayGenSet1c(OWLRayGen obj, const char *name, char val); OWL_API void owlRayGenSet2c(OWLRayGen obj, const char *name, char x, char y); OWL_API void owlRayGenSet3c(OWLRayGen obj, const char *name, char x, char y, char z); OWL_API void owlRayGenSet4c(OWLRayGen obj, const char *name, char x, char y, char z, char w); OWL_API void owlRayGenSet2cv(OWLRayGen obj, const char *name, const char *val); OWL_API void owlRayGenSet3cv(OWLRayGen obj, const char *name, const char *val); OWL_API void owlRayGenSet4cv(OWLRayGen obj, const char *name, const char *val); // setters for variables on "MissProg"s OWL_API void owlMissProgSet1c(OWLMissProg obj, const char *name, char val); OWL_API void owlMissProgSet2c(OWLMissProg obj, const char *name, char x, char y); OWL_API void owlMissProgSet3c(OWLMissProg obj, const char *name, char x, char y, char z); OWL_API void owlMissProgSet4c(OWLMissProg obj, const char *name, char x, char y, char z, char w); OWL_API void owlMissProgSet2cv(OWLMissProg obj, const char *name, const char *val); OWL_API void owlMissProgSet3cv(OWLMissProg obj, const char *name, const char *val); OWL_API void owlMissProgSet4cv(OWLMissProg obj, const char *name, const char *val); // setters for variables on "Geom"s OWL_API void owlGeomSet1c(OWLGeom obj, const char *name, char val); OWL_API void owlGeomSet2c(OWLGeom obj, const char *name, char x, char y); OWL_API void owlGeomSet3c(OWLGeom obj, const char *name, char x, char y, char z); OWL_API void owlGeomSet4c(OWLGeom obj, const char *name, char x, char y, char z, char w); OWL_API void owlGeomSet2cv(OWLGeom obj, const char *name, const char *val); OWL_API void owlGeomSet3cv(OWLGeom obj, const char *name, const char *val); OWL_API void owlGeomSet4cv(OWLGeom obj, const char *name, const char *val); // setters for variables on "Params"s OWL_API void owlParamsSet1c(OWLParams obj, const char *name, char val); OWL_API void owlParamsSet2c(OWLParams obj, const char *name, char x, char y); OWL_API void owlParamsSet3c(OWLParams obj, const char *name, char x, char y, char z); OWL_API void owlParamsSet4c(OWLParams obj, const char *name, char x, char y, char z, char w); OWL_API void owlParamsSet2cv(OWLParams obj, const char *name, const char *val); OWL_API void owlParamsSet3cv(OWLParams obj, const char *name, const char *val); OWL_API void owlParamsSet4cv(OWLParams obj, const char *name, const char *val); // ------------------------------------------------------------------ // setters for variables of type "uint8_t" // ------------------------------------------------------------------ // setters for variables on "RayGen"s OWL_API void owlRayGenSet1uc(OWLRayGen obj, const char *name, uint8_t val); OWL_API void owlRayGenSet2uc(OWLRayGen obj, const char *name, uint8_t x, uint8_t y); OWL_API void owlRayGenSet3uc(OWLRayGen obj, const char *name, uint8_t x, uint8_t y, uint8_t z); OWL_API void owlRayGenSet4uc(OWLRayGen obj, const char *name, uint8_t x, uint8_t y, uint8_t z, uint8_t w); OWL_API void owlRayGenSet2ucv(OWLRayGen obj, const char *name, const uint8_t *val); OWL_API void owlRayGenSet3ucv(OWLRayGen obj, const char *name, const uint8_t *val); OWL_API void owlRayGenSet4ucv(OWLRayGen obj, const char *name, const uint8_t *val); // setters for variables on "MissProg"s OWL_API void owlMissProgSet1uc(OWLMissProg obj, const char *name, uint8_t val); OWL_API void owlMissProgSet2uc(OWLMissProg obj, const char *name, uint8_t x, uint8_t y); OWL_API void owlMissProgSet3uc(OWLMissProg obj, const char *name, uint8_t x, uint8_t y, uint8_t z); OWL_API void owlMissProgSet4uc(OWLMissProg obj, const char *name, uint8_t x, uint8_t y, uint8_t z, uint8_t w); OWL_API void owlMissProgSet2ucv(OWLMissProg obj, const char *name, const uint8_t *val); OWL_API void owlMissProgSet3ucv(OWLMissProg obj, const char *name, const uint8_t *val); OWL_API void owlMissProgSet4ucv(OWLMissProg obj, const char *name, const uint8_t *val); // setters for variables on "Geom"s OWL_API void owlGeomSet1uc(OWLGeom obj, const char *name, uint8_t val); OWL_API void owlGeomSet2uc(OWLGeom obj, const char *name, uint8_t x, uint8_t y); OWL_API void owlGeomSet3uc(OWLGeom obj, const char *name, uint8_t x, uint8_t y, uint8_t z); OWL_API void owlGeomSet4uc(OWLGeom obj, const char *name, uint8_t x, uint8_t y, uint8_t z, uint8_t w); OWL_API void owlGeomSet2ucv(OWLGeom obj, const char *name, const uint8_t *val); OWL_API void owlGeomSet3ucv(OWLGeom obj, const char *name, const uint8_t *val); OWL_API void owlGeomSet4ucv(OWLGeom obj, const char *name, const uint8_t *val); // setters for variables on "Params"s OWL_API void owlParamsSet1uc(OWLParams obj, const char *name, uint8_t val); OWL_API void owlParamsSet2uc(OWLParams obj, const char *name, uint8_t x, uint8_t y); OWL_API void owlParamsSet3uc(OWLParams obj, const char *name, uint8_t x, uint8_t y, uint8_t z); OWL_API void owlParamsSet4uc(OWLParams obj, const char *name, uint8_t x, uint8_t y, uint8_t z, uint8_t w); OWL_API void owlParamsSet2ucv(OWLParams obj, const char *name, const uint8_t *val); OWL_API void owlParamsSet3ucv(OWLParams obj, const char *name, const uint8_t *val); OWL_API void owlParamsSet4ucv(OWLParams obj, const char *name, const uint8_t *val); // ------------------------------------------------------------------ // setters for variables of type "int16_t" // ------------------------------------------------------------------ // setters for variables on "RayGen"s OWL_API void owlRayGenSet1s(OWLRayGen obj, const char *name, int16_t val); OWL_API void owlRayGenSet2s(OWLRayGen obj, const char *name, int16_t x, int16_t y); OWL_API void owlRayGenSet3s(OWLRayGen obj, const char *name, int16_t x, int16_t y, int16_t z); OWL_API void owlRayGenSet4s(OWLRayGen obj, const char *name, int16_t x, int16_t y, int16_t z, int16_t w); OWL_API void owlRayGenSet2sv(OWLRayGen obj, const char *name, const int16_t *val); OWL_API void owlRayGenSet3sv(OWLRayGen obj, const char *name, const int16_t *val); OWL_API void owlRayGenSet4sv(OWLRayGen obj, const char *name, const int16_t *val); // setters for variables on "MissProg"s OWL_API void owlMissProgSet1s(OWLMissProg obj, const char *name, int16_t val); OWL_API void owlMissProgSet2s(OWLMissProg obj, const char *name, int16_t x, int16_t y); OWL_API void owlMissProgSet3s(OWLMissProg obj, const char *name, int16_t x, int16_t y, int16_t z); OWL_API void owlMissProgSet4s(OWLMissProg obj, const char *name, int16_t x, int16_t y, int16_t z, int16_t w); OWL_API void owlMissProgSet2sv(OWLMissProg obj, const char *name, const int16_t *val); OWL_API void owlMissProgSet3sv(OWLMissProg obj, const char *name, const int16_t *val); OWL_API void owlMissProgSet4sv(OWLMissProg obj, const char *name, const int16_t *val); // setters for variables on "Geom"s OWL_API void owlGeomSet1s(OWLGeom obj, const char *name, int16_t val); OWL_API void owlGeomSet2s(OWLGeom obj, const char *name, int16_t x, int16_t y); OWL_API void owlGeomSet3s(OWLGeom obj, const char *name, int16_t x, int16_t y, int16_t z); OWL_API void owlGeomSet4s(OWLGeom obj, const char *name, int16_t x, int16_t y, int16_t z, int16_t w); OWL_API void owlGeomSet2sv(OWLGeom obj, const char *name, const int16_t *val); OWL_API void owlGeomSet3sv(OWLGeom obj, const char *name, const int16_t *val); OWL_API void owlGeomSet4sv(OWLGeom obj, const char *name, const int16_t *val); // setters for variables on "Params"s OWL_API void owlParamsSet1s(OWLParams obj, const char *name, int16_t val); OWL_API void owlParamsSet2s(OWLParams obj, const char *name, int16_t x, int16_t y); OWL_API void owlParamsSet3s(OWLParams obj, const char *name, int16_t x, int16_t y, int16_t z); OWL_API void owlParamsSet4s(OWLParams obj, const char *name, int16_t x, int16_t y, int16_t z, int16_t w); OWL_API void owlParamsSet2sv(OWLParams obj, const char *name, const int16_t *val); OWL_API void owlParamsSet3sv(OWLParams obj, const char *name, const int16_t *val); OWL_API void owlParamsSet4sv(OWLParams obj, const char *name, const int16_t *val); // ------------------------------------------------------------------ // setters for variables of type "uint16_t" // ------------------------------------------------------------------ // setters for variables on "RayGen"s OWL_API void owlRayGenSet1us(OWLRayGen obj, const char *name, uint16_t val); OWL_API void owlRayGenSet2us(OWLRayGen obj, const char *name, uint16_t x, uint16_t y); OWL_API void owlRayGenSet3us(OWLRayGen obj, const char *name, uint16_t x, uint16_t y, uint16_t z); OWL_API void owlRayGenSet4us(OWLRayGen obj, const char *name, uint16_t x, uint16_t y, uint16_t z, uint16_t w); OWL_API void owlRayGenSet2usv(OWLRayGen obj, const char *name, const uint16_t *val); OWL_API void owlRayGenSet3usv(OWLRayGen obj, const char *name, const uint16_t *val); OWL_API void owlRayGenSet4usv(OWLRayGen obj, const char *name, const uint16_t *val); // setters for variables on "MissProg"s OWL_API void owlMissProgSet1us(OWLMissProg obj, const char *name, uint16_t val); OWL_API void owlMissProgSet2us(OWLMissProg obj, const char *name, uint16_t x, uint16_t y); OWL_API void owlMissProgSet3us(OWLMissProg obj, const char *name, uint16_t x, uint16_t y, uint16_t z); OWL_API void owlMissProgSet4us(OWLMissProg obj, const char *name, uint16_t x, uint16_t y, uint16_t z, uint16_t w); OWL_API void owlMissProgSet2usv(OWLMissProg obj, const char *name, const uint16_t *val); OWL_API void owlMissProgSet3usv(OWLMissProg obj, const char *name, const uint16_t *val); OWL_API void owlMissProgSet4usv(OWLMissProg obj, const char *name, const uint16_t *val); // setters for variables on "Geom"s OWL_API void owlGeomSet1us(OWLGeom obj, const char *name, uint16_t val); OWL_API void owlGeomSet2us(OWLGeom obj, const char *name, uint16_t x, uint16_t y); OWL_API void owlGeomSet3us(OWLGeom obj, const char *name, uint16_t x, uint16_t y, uint16_t z); OWL_API void owlGeomSet4us(OWLGeom obj, const char *name, uint16_t x, uint16_t y, uint16_t z, uint16_t w); OWL_API void owlGeomSet2usv(OWLGeom obj, const char *name, const uint16_t *val); OWL_API void owlGeomSet3usv(OWLGeom obj, const char *name, const uint16_t *val); OWL_API void owlGeomSet4usv(OWLGeom obj, const char *name, const uint16_t *val); // setters for variables on "Params"s OWL_API void owlParamsSet1us(OWLParams obj, const char *name, uint16_t val); OWL_API void owlParamsSet2us(OWLParams obj, const char *name, uint16_t x, uint16_t y); OWL_API void owlParamsSet3us(OWLParams obj, const char *name, uint16_t x, uint16_t y, uint16_t z); OWL_API void owlParamsSet4us(OWLParams obj, const char *name, uint16_t x, uint16_t y, uint16_t z, uint16_t w); OWL_API void owlParamsSet2usv(OWLParams obj, const char *name, const uint16_t *val); OWL_API void owlParamsSet3usv(OWLParams obj, const char *name, const uint16_t *val); OWL_API void owlParamsSet4usv(OWLParams obj, const char *name, const uint16_t *val); // ------------------------------------------------------------------ // setters for variables of type "int" // ------------------------------------------------------------------ // setters for variables on "RayGen"s OWL_API void owlRayGenSet1i(OWLRayGen obj, const char *name, int val); OWL_API void owlRayGenSet2i(OWLRayGen obj, const char *name, int x, int y); OWL_API void owlRayGenSet3i(OWLRayGen obj, const char *name, int x, int y, int z); OWL_API void owlRayGenSet4i(OWLRayGen obj, const char *name, int x, int y, int z, int w); OWL_API void owlRayGenSet2iv(OWLRayGen obj, const char *name, const int *val); OWL_API void owlRayGenSet3iv(OWLRayGen obj, const char *name, const int *val); OWL_API void owlRayGenSet4iv(OWLRayGen obj, const char *name, const int *val); // setters for variables on "MissProg"s OWL_API void owlMissProgSet1i(OWLMissProg obj, const char *name, int val); OWL_API void owlMissProgSet2i(OWLMissProg obj, const char *name, int x, int y); OWL_API void owlMissProgSet3i(OWLMissProg obj, const char *name, int x, int y, int z); OWL_API void owlMissProgSet4i(OWLMissProg obj, const char *name, int x, int y, int z, int w); OWL_API void owlMissProgSet2iv(OWLMissProg obj, const char *name, const int *val); OWL_API void owlMissProgSet3iv(OWLMissProg obj, const char *name, const int *val); OWL_API void owlMissProgSet4iv(OWLMissProg obj, const char *name, const int *val); // setters for variables on "Geom"s OWL_API void owlGeomSet1i(OWLGeom obj, const char *name, int val); OWL_API void owlGeomSet2i(OWLGeom obj, const char *name, int x, int y); OWL_API void owlGeomSet3i(OWLGeom obj, const char *name, int x, int y, int z); OWL_API void owlGeomSet4i(OWLGeom obj, const char *name, int x, int y, int z, int w); OWL_API void owlGeomSet2iv(OWLGeom obj, const char *name, const int *val); OWL_API void owlGeomSet3iv(OWLGeom obj, const char *name, const int *val); OWL_API void owlGeomSet4iv(OWLGeom obj, const char *name, const int *val); // setters for variables on "Params"s OWL_API void owlParamsSet1i(OWLParams obj, const char *name, int val); OWL_API void owlParamsSet2i(OWLParams obj, const char *name, int x, int y); OWL_API void owlParamsSet3i(OWLParams obj, const char *name, int x, int y, int z); OWL_API void owlParamsSet4i(OWLParams obj, const char *name, int x, int y, int z, int w); OWL_API void owlParamsSet2iv(OWLParams obj, const char *name, const int *val); OWL_API void owlParamsSet3iv(OWLParams obj, const char *name, const int *val); OWL_API void owlParamsSet4iv(OWLParams obj, const char *name, const int *val); // ------------------------------------------------------------------ // setters for variables of type "uint32_t" // ------------------------------------------------------------------ // setters for variables on "RayGen"s OWL_API void owlRayGenSet1ui(OWLRayGen obj, const char *name, uint32_t val); OWL_API void owlRayGenSet2ui(OWLRayGen obj, const char *name, uint32_t x, uint32_t y); OWL_API void owlRayGenSet3ui(OWLRayGen obj, const char *name, uint32_t x, uint32_t y, uint32_t z); OWL_API void owlRayGenSet4ui(OWLRayGen obj, const char *name, uint32_t x, uint32_t y, uint32_t z, uint32_t w); OWL_API void owlRayGenSet2uiv(OWLRayGen obj, const char *name, const uint32_t *val); OWL_API void owlRayGenSet3uiv(OWLRayGen obj, const char *name, const uint32_t *val); OWL_API void owlRayGenSet4uiv(OWLRayGen obj, const char *name, const uint32_t *val); // setters for variables on "MissProg"s OWL_API void owlMissProgSet1ui(OWLMissProg obj, const char *name, uint32_t val); OWL_API void owlMissProgSet2ui(OWLMissProg obj, const char *name, uint32_t x, uint32_t y); OWL_API void owlMissProgSet3ui(OWLMissProg obj, const char *name, uint32_t x, uint32_t y, uint32_t z); OWL_API void owlMissProgSet4ui(OWLMissProg obj, const char *name, uint32_t x, uint32_t y, uint32_t z, uint32_t w); OWL_API void owlMissProgSet2uiv(OWLMissProg obj, const char *name, const uint32_t *val); OWL_API void owlMissProgSet3uiv(OWLMissProg obj, const char *name, const uint32_t *val); OWL_API void owlMissProgSet4uiv(OWLMissProg obj, const char *name, const uint32_t *val); // setters for variables on "Geom"s OWL_API void owlGeomSet1ui(OWLGeom obj, const char *name, uint32_t val); OWL_API void owlGeomSet2ui(OWLGeom obj, const char *name, uint32_t x, uint32_t y); OWL_API void owlGeomSet3ui(OWLGeom obj, const char *name, uint32_t x, uint32_t y, uint32_t z); OWL_API void owlGeomSet4ui(OWLGeom obj, const char *name, uint32_t x, uint32_t y, uint32_t z, uint32_t w); OWL_API void owlGeomSet2uiv(OWLGeom obj, const char *name, const uint32_t *val); OWL_API void owlGeomSet3uiv(OWLGeom obj, const char *name, const uint32_t *val); OWL_API void owlGeomSet4uiv(OWLGeom obj, const char *name, const uint32_t *val); // setters for variables on "Params"s OWL_API void owlParamsSet1ui(OWLParams obj, const char *name, uint32_t val); OWL_API void owlParamsSet2ui(OWLParams obj, const char *name, uint32_t x, uint32_t y); OWL_API void owlParamsSet3ui(OWLParams obj, const char *name, uint32_t x, uint32_t y, uint32_t z); OWL_API void owlParamsSet4ui(OWLParams obj, const char *name, uint32_t x, uint32_t y, uint32_t z, uint32_t w); OWL_API void owlParamsSet2uiv(OWLParams obj, const char *name, const uint32_t *val); OWL_API void owlParamsSet3uiv(OWLParams obj, const char *name, const uint32_t *val); OWL_API void owlParamsSet4uiv(OWLParams obj, const char *name, const uint32_t *val); // ------------------------------------------------------------------ // setters for variables of type "float" // ------------------------------------------------------------------ // setters for variables on "RayGen"s OWL_API void owlRayGenSet1f(OWLRayGen obj, const char *name, float val); OWL_API void owlRayGenSet2f(OWLRayGen obj, const char *name, float x, float y); OWL_API void owlRayGenSet3f(OWLRayGen obj, const char *name, float x, float y, float z); OWL_API void owlRayGenSet4f(OWLRayGen obj, const char *name, float x, float y, float z, float w); OWL_API void owlRayGenSet2fv(OWLRayGen obj, const char *name, const float *val); OWL_API void owlRayGenSet3fv(OWLRayGen obj, const char *name, const float *val); OWL_API void owlRayGenSet4fv(OWLRayGen obj, const char *name, const float *val); // setters for variables on "MissProg"s OWL_API void owlMissProgSet1f(OWLMissProg obj, const char *name, float val); OWL_API void owlMissProgSet2f(OWLMissProg obj, const char *name, float x, float y); OWL_API void owlMissProgSet3f(OWLMissProg obj, const char *name, float x, float y, float z); OWL_API void owlMissProgSet4f(OWLMissProg obj, const char *name, float x, float y, float z, float w); OWL_API void owlMissProgSet2fv(OWLMissProg obj, const char *name, const float *val); OWL_API void owlMissProgSet3fv(OWLMissProg obj, const char *name, const float *val); OWL_API void owlMissProgSet4fv(OWLMissProg obj, const char *name, const float *val); // setters for variables on "Geom"s OWL_API void owlGeomSet1f(OWLGeom obj, const char *name, float val); OWL_API void owlGeomSet2f(OWLGeom obj, const char *name, float x, float y); OWL_API void owlGeomSet3f(OWLGeom obj, const char *name, float x, float y, float z); OWL_API void owlGeomSet4f(OWLGeom obj, const char *name, float x, float y, float z, float w); OWL_API void owlGeomSet2fv(OWLGeom obj, const char *name, const float *val); OWL_API void owlGeomSet3fv(OWLGeom obj, const char *name, const float *val); OWL_API void owlGeomSet4fv(OWLGeom obj, const char *name, const float *val); // setters for variables on "Params"s OWL_API void owlParamsSet1f(OWLParams obj, const char *name, float val); OWL_API void owlParamsSet2f(OWLParams obj, const char *name, float x, float y); OWL_API void owlParamsSet3f(OWLParams obj, const char *name, float x, float y, float z); OWL_API void owlParamsSet4f(OWLParams obj, const char *name, float x, float y, float z, float w); OWL_API void owlParamsSet2fv(OWLParams obj, const char *name, const float *val); OWL_API void owlParamsSet3fv(OWLParams obj, const char *name, const float *val); OWL_API void owlParamsSet4fv(OWLParams obj, const char *name, const float *val); // ------------------------------------------------------------------ // setters for variables of type "double" // ------------------------------------------------------------------ // setters for variables on "RayGen"s OWL_API void owlRayGenSet1d(OWLRayGen obj, const char *name, double val); OWL_API void owlRayGenSet2d(OWLRayGen obj, const char *name, double x, double y); OWL_API void owlRayGenSet3d(OWLRayGen obj, const char *name, double x, double y, double z); OWL_API void owlRayGenSet4d(OWLRayGen obj, const char *name, double x, double y, double z, double w); OWL_API void owlRayGenSet2dv(OWLRayGen obj, const char *name, const double *val); OWL_API void owlRayGenSet3dv(OWLRayGen obj, const char *name, const double *val); OWL_API void owlRayGenSet4dv(OWLRayGen obj, const char *name, const double *val); // setters for variables on "MissProg"s OWL_API void owlMissProgSet1d(OWLMissProg obj, const char *name, double val); OWL_API void owlMissProgSet2d(OWLMissProg obj, const char *name, double x, double y); OWL_API void owlMissProgSet3d(OWLMissProg obj, const char *name, double x, double y, double z); OWL_API void owlMissProgSet4d(OWLMissProg obj, const char *name, double x, double y, double z, double w); OWL_API void owlMissProgSet2dv(OWLMissProg obj, const char *name, const double *val); OWL_API void owlMissProgSet3dv(OWLMissProg obj, const char *name, const double *val); OWL_API void owlMissProgSet4dv(OWLMissProg obj, const char *name, const double *val); // setters for variables on "Geom"s OWL_API void owlGeomSet1d(OWLGeom obj, const char *name, double val); OWL_API void owlGeomSet2d(OWLGeom obj, const char *name, double x, double y); OWL_API void owlGeomSet3d(OWLGeom obj, const char *name, double x, double y, double z); OWL_API void owlGeomSet4d(OWLGeom obj, const char *name, double x, double y, double z, double w); OWL_API void owlGeomSet2dv(OWLGeom obj, const char *name, const double *val); OWL_API void owlGeomSet3dv(OWLGeom obj, const char *name, const double *val); OWL_API void owlGeomSet4dv(OWLGeom obj, const char *name, const double *val); // setters for variables on "Params"s OWL_API void owlParamsSet1d(OWLParams obj, const char *name, double val); OWL_API void owlParamsSet2d(OWLParams obj, const char *name, double x, double y); OWL_API void owlParamsSet3d(OWLParams obj, const char *name, double x, double y, double z); OWL_API void owlParamsSet4d(OWLParams obj, const char *name, double x, double y, double z, double w); OWL_API void owlParamsSet2dv(OWLParams obj, const char *name, const double *val); OWL_API void owlParamsSet3dv(OWLParams obj, const char *name, const double *val); OWL_API void owlParamsSet4dv(OWLParams obj, const char *name, const double *val); // ------------------------------------------------------------------ // setters for variables of type "int64_t" // ------------------------------------------------------------------ // setters for variables on "RayGen"s OWL_API void owlRayGenSet1l(OWLRayGen obj, const char *name, int64_t val); OWL_API void owlRayGenSet2l(OWLRayGen obj, const char *name, int64_t x, int64_t y); OWL_API void owlRayGenSet3l(OWLRayGen obj, const char *name, int64_t x, int64_t y, int64_t z); OWL_API void owlRayGenSet4l(OWLRayGen obj, const char *name, int64_t x, int64_t y, int64_t z, int64_t w); OWL_API void owlRayGenSet2lv(OWLRayGen obj, const char *name, const int64_t *val); OWL_API void owlRayGenSet3lv(OWLRayGen obj, const char *name, const int64_t *val); OWL_API void owlRayGenSet4lv(OWLRayGen obj, const char *name, const int64_t *val); // setters for variables on "MissProg"s OWL_API void owlMissProgSet1l(OWLMissProg obj, const char *name, int64_t val); OWL_API void owlMissProgSet2l(OWLMissProg obj, const char *name, int64_t x, int64_t y); OWL_API void owlMissProgSet3l(OWLMissProg obj, const char *name, int64_t x, int64_t y, int64_t z); OWL_API void owlMissProgSet4l(OWLMissProg obj, const char *name, int64_t x, int64_t y, int64_t z, int64_t w); OWL_API void owlMissProgSet2lv(OWLMissProg obj, const char *name, const int64_t *val); OWL_API void owlMissProgSet3lv(OWLMissProg obj, const char *name, const int64_t *val); OWL_API void owlMissProgSet4lv(OWLMissProg obj, const char *name, const int64_t *val); // setters for variables on "Geom"s OWL_API void owlGeomSet1l(OWLGeom obj, const char *name, int64_t val); OWL_API void owlGeomSet2l(OWLGeom obj, const char *name, int64_t x, int64_t y); OWL_API void owlGeomSet3l(OWLGeom obj, const char *name, int64_t x, int64_t y, int64_t z); OWL_API void owlGeomSet4l(OWLGeom obj, const char *name, int64_t x, int64_t y, int64_t z, int64_t w); OWL_API void owlGeomSet2lv(OWLGeom obj, const char *name, const int64_t *val); OWL_API void owlGeomSet3lv(OWLGeom obj, const char *name, const int64_t *val); OWL_API void owlGeomSet4lv(OWLGeom obj, const char *name, const int64_t *val); // setters for variables on "Params"s OWL_API void owlParamsSet1l(OWLParams obj, const char *name, int64_t val); OWL_API void owlParamsSet2l(OWLParams obj, const char *name, int64_t x, int64_t y); OWL_API void owlParamsSet3l(OWLParams obj, const char *name, int64_t x, int64_t y, int64_t z); OWL_API void owlParamsSet4l(OWLParams obj, const char *name, int64_t x, int64_t y, int64_t z, int64_t w); OWL_API void owlParamsSet2lv(OWLParams obj, const char *name, const int64_t *val); OWL_API void owlParamsSet3lv(OWLParams obj, const char *name, const int64_t *val); OWL_API void owlParamsSet4lv(OWLParams obj, const char *name, const int64_t *val); // ------------------------------------------------------------------ // setters for variables of type "uint64_t" // ------------------------------------------------------------------ // setters for variables on "RayGen"s OWL_API void owlRayGenSet1ul(OWLRayGen obj, const char *name, uint64_t val); OWL_API void owlRayGenSet2ul(OWLRayGen obj, const char *name, uint64_t x, uint64_t y); OWL_API void owlRayGenSet3ul(OWLRayGen obj, const char *name, uint64_t x, uint64_t y, uint64_t z); OWL_API void owlRayGenSet4ul(OWLRayGen obj, const char *name, uint64_t x, uint64_t y, uint64_t z, uint64_t w); OWL_API void owlRayGenSet2ulv(OWLRayGen obj, const char *name, const uint64_t *val); OWL_API void owlRayGenSet3ulv(OWLRayGen obj, const char *name, const uint64_t *val); OWL_API void owlRayGenSet4ulv(OWLRayGen obj, const char *name, const uint64_t *val); // setters for variables on "MissProg"s OWL_API void owlMissProgSet1ul(OWLMissProg obj, const char *name, uint64_t val); OWL_API void owlMissProgSet2ul(OWLMissProg obj, const char *name, uint64_t x, uint64_t y); OWL_API void owlMissProgSet3ul(OWLMissProg obj, const char *name, uint64_t x, uint64_t y, uint64_t z); OWL_API void owlMissProgSet4ul(OWLMissProg obj, const char *name, uint64_t x, uint64_t y, uint64_t z, uint64_t w); OWL_API void owlMissProgSet2ulv(OWLMissProg obj, const char *name, const uint64_t *val); OWL_API void owlMissProgSet3ulv(OWLMissProg obj, const char *name, const uint64_t *val); OWL_API void owlMissProgSet4ulv(OWLMissProg obj, const char *name, const uint64_t *val); // setters for variables on "Geom"s OWL_API void owlGeomSet1ul(OWLGeom obj, const char *name, uint64_t val); OWL_API void owlGeomSet2ul(OWLGeom obj, const char *name, uint64_t x, uint64_t y); OWL_API void owlGeomSet3ul(OWLGeom obj, const char *name, uint64_t x, uint64_t y, uint64_t z); OWL_API void owlGeomSet4ul(OWLGeom obj, const char *name, uint64_t x, uint64_t y, uint64_t z, uint64_t w); OWL_API void owlGeomSet2ulv(OWLGeom obj, const char *name, const uint64_t *val); OWL_API void owlGeomSet3ulv(OWLGeom obj, const char *name, const uint64_t *val); OWL_API void owlGeomSet4ulv(OWLGeom obj, const char *name, const uint64_t *val); // setters for variables on "Params"s OWL_API void owlParamsSet1ul(OWLParams obj, const char *name, uint64_t val); OWL_API void owlParamsSet2ul(OWLParams obj, const char *name, uint64_t x, uint64_t y); OWL_API void owlParamsSet3ul(OWLParams obj, const char *name, uint64_t x, uint64_t y, uint64_t z); OWL_API void owlParamsSet4ul(OWLParams obj, const char *name, uint64_t x, uint64_t y, uint64_t z, uint64_t w); OWL_API void owlParamsSet2ulv(OWLParams obj, const char *name, const uint64_t *val); OWL_API void owlParamsSet3ulv(OWLParams obj, const char *name, const uint64_t *val); OWL_API void owlParamsSet4ulv(OWLParams obj, const char *name, const uint64_t *val); // ------------------------------------------------------------------ // setters for "meta" types // ------------------------------------------------------------------ // setters for variables on "RayGen"s OWL_API void owlRayGenSetTexture(OWLRayGen obj, const char *name, OWLTexture val); OWL_API void owlRayGenSetPointer(OWLRayGen obj, const char *name, const void *val); OWL_API void owlRayGenSetBuffer(OWLRayGen obj, const char *name, OWLBuffer val); OWL_API void owlRayGenSetGroup(OWLRayGen obj, const char *name, OWLGroup val); OWL_API void owlRayGenSetRaw(OWLRayGen obj, const char *name, const void *val); // setters for variables on "Geom"s OWL_API void owlGeomSetTexture(OWLGeom obj, const char *name, OWLTexture val); OWL_API void owlGeomSetPointer(OWLGeom obj, const char *name, const void *val); OWL_API void owlGeomSetBuffer(OWLGeom obj, const char *name, OWLBuffer val); OWL_API void owlGeomSetGroup(OWLGeom obj, const char *name, OWLGroup val); OWL_API void owlGeomSetRaw(OWLGeom obj, const char *name, const void *val); // setters for variables on "Params"s OWL_API void owlParamsSetTexture(OWLParams obj, const char *name, OWLTexture val); OWL_API void owlParamsSetPointer(OWLParams obj, const char *name, const void *val); OWL_API void owlParamsSetBuffer(OWLParams obj, const char *name, OWLBuffer val); OWL_API void owlParamsSetGroup(OWLParams obj, const char *name, OWLGroup val); OWL_API void owlParamsSetRaw(OWLParams obj, const char *name, const void *val); // setters for variables on "MissProg"s OWL_API void owlMissProgSetTexture(OWLMissProg obj, const char *name, OWLTexture val); OWL_API void owlMissProgSetPointer(OWLMissProg obj, const char *name, const void *val); OWL_API void owlMissProgSetBuffer(OWLMissProg obj, const char *name, OWLBuffer val); OWL_API void owlMissProgSetGroup(OWLMissProg obj, const char *name, OWLGroup val); OWL_API void owlMissProgSetRaw(OWLMissProg obj, const char *name, const void *val); // ------------------------------------------------------- // c++ wrappers // ------------------------------------------------------- #ifdef __cplusplus // int inline void owlParamsSet2i(OWLParams obj, const char *name, const owl2i &val) { owlParamsSet2i(obj,name,val.x,val.y); } inline void owlParamsSet3i(OWLParams obj, const char *name, const owl3i &val) { owlParamsSet3i(obj,name,val.x,val.y,val.z); } inline void owlParamsSet4i(OWLParams obj, const char *name, const owl4i &val) { owlParamsSet4i(obj,name,val.x,val.y,val.z,val.w); } // uint inline void owlParamsSet2ui(OWLParams obj, const char *name, const owl2ui &val) { owlParamsSet2ui(obj,name,val.x,val.y); } inline void owlParamsSet3ui(OWLParams obj, const char *name, const owl3ui &val) { owlParamsSet3ui(obj,name,val.x,val.y,val.z); } inline void owlParamsSet4ui(OWLParams obj, const char *name, const owl4ui &val) { owlParamsSet4ui(obj,name,val.x,val.y,val.z,val.w); } // float inline void owlParamsSet2f(OWLParams obj, const char *name, const owl2f &val) { owlParamsSet2f(obj,name,val.x,val.y); } inline void owlParamsSet3f(OWLParams obj, const char *name, const owl3f &val) { owlParamsSet3f(obj,name,val.x,val.y,val.z); } inline void owlParamsSet4f(OWLParams obj, const char *name, const owl4f &val) { owlParamsSet4f(obj,name,val.x,val.y,val.z,val.w); } // int inline void owlGeomSet2i(OWLGeom obj, const char *name, const owl2i &val) { owlGeomSet2i(obj,name,val.x,val.y); } inline void owlGeomSet3i(OWLGeom obj, const char *name, const owl3i &val) { owlGeomSet3i(obj,name,val.x,val.y,val.z); } inline void owlGeomSet4i(OWLGeom obj, const char *name, const owl4i &val) { owlGeomSet4i(obj,name,val.x,val.y,val.z,val.w); } // uint inline void owlGeomSet2ui(OWLGeom obj, const char *name, const owl2ui &val) { owlGeomSet2ui(obj,name,val.x,val.y); } inline void owlGeomSet3ui(OWLGeom obj, const char *name, const owl3ui &val) { owlGeomSet3ui(obj,name,val.x,val.y,val.z); } inline void owlGeomSet4ui(OWLGeom obj, const char *name, const owl4ui &val) { owlGeomSet4ui(obj,name,val.x,val.y,val.z,val.w); } // float inline void owlGeomSet2f(OWLGeom obj, const char *name, const owl2f &val) { owlGeomSet2f(obj,name,val.x,val.y); } inline void owlGeomSet3f(OWLGeom obj, const char *name, const owl3f &val) { owlGeomSet3f(obj,name,val.x,val.y,val.z); } inline void owlGeomSet4f(OWLGeom obj, const char *name, const owl4f &val) { owlGeomSet4f(obj,name,val.x,val.y,val.z,val.w); } // int inline void owlMissProgSet2i(OWLMissProg obj, const char *name, const owl2i &val) { owlMissProgSet2i(obj,name,val.x,val.y); } inline void owlMissProgSet3i(OWLMissProg obj, const char *name, const owl3i &val) { owlMissProgSet3i(obj,name,val.x,val.y,val.z); } inline void owlMissProgSet4i(OWLMissProg obj, const char *name, const owl4i &val) { owlMissProgSet4i(obj,name,val.x,val.y,val.z,val.w); } // uint inline void owlMissProgSet2ui(OWLMissProg obj, const char *name, const owl2ui &val) { owlMissProgSet2ui(obj,name,val.x,val.y); } inline void owlMissProgSet3ui(OWLMissProg obj, const char *name, const owl3ui &val) { owlMissProgSet3ui(obj,name,val.x,val.y,val.z); } inline void owlMissProgSet4ui(OWLMissProg obj, const char *name, const owl4ui &val) { owlMissProgSet4ui(obj,name,val.x,val.y,val.z,val.w); } // float inline void owlMissProgSet2f(OWLMissProg obj, const char *name, const owl2f &val) { owlMissProgSet2f(obj,name,val.x,val.y); } inline void owlMissProgSet3f(OWLMissProg obj, const char *name, const owl3f &val) { owlMissProgSet3f(obj,name,val.x,val.y,val.z); } inline void owlMissProgSet4f(OWLMissProg obj, const char *name, const owl4f &val) { owlMissProgSet4f(obj,name,val.x,val.y,val.z,val.w); } // int inline void owlRayGenSet2i(OWLRayGen obj, const char *name, const owl2i &val) { owlRayGenSet2i(obj,name,val.x,val.y); } inline void owlRayGenSet3i(OWLRayGen obj, const char *name, const owl3i &val) { owlRayGenSet3i(obj,name,val.x,val.y,val.z); } inline void owlRayGenSet4i(OWLRayGen obj, const char *name, const owl4i &val) { owlRayGenSet4i(obj,name,val.x,val.y,val.z,val.w); } // uint inline void owlRayGenSet2ui(OWLRayGen obj, const char *name, const owl2ui &val) { owlRayGenSet2ui(obj,name,val.x,val.y); } inline void owlRayGenSet3ui(OWLRayGen obj, const char *name, const owl3ui &val) { owlRayGenSet3ui(obj,name,val.x,val.y,val.z); } inline void owlRayGenSet4ui(OWLRayGen obj, const char *name, const owl4ui &val) { owlRayGenSet4ui(obj,name,val.x,val.y,val.z,val.w); } // float inline void owlRayGenSet2f(OWLRayGen obj, const char *name, const owl2f &val) { owlRayGenSet2f(obj,name,val.x,val.y); } inline void owlRayGenSet3f(OWLRayGen obj, const char *name, const owl3f &val) { owlRayGenSet3f(obj,name,val.x,val.y,val.z); } inline void owlRayGenSet4f(OWLRayGen obj, const char *name, const owl4f &val) { owlRayGenSet4f(obj,name,val.x,val.y,val.z,val.w); } #endif #ifdef __cplusplus /*! c++ "convenience variant" of owlInstanceGroupSetTransform that also allows passing C++ types) */ inline void owlInstanceGroupSetTransform(OWLGroup group, int childID, const owl4x3f &xfm) { owlInstanceGroupSetTransform(group,childID,(const float *)&xfm, OWL_MATRIX_FORMAT_OWL); } /*! c++ "convenience variant" of owlInstanceGroupSetTransform that also allows passing C++ types) */ inline void owlInstanceGroupSetTransform(OWLGroup group, int childID, const owl4x3f *xfm) { owlInstanceGroupSetTransform(group,childID,(const float *)xfm, OWL_MATRIX_FORMAT_OWL); } #endif
f6a14edc3e197cf8994b9c235dd2e6fb632185da
9d352d0c8dd440acbcce280e542d3bf7973ccbe6
/c/tests/meson-subproject/example.c
e7790e3a3716dce08b905ba0dfdee6620ccf0f81
[ "MIT" ]
permissive
tskit-dev/tskit
3ab0ddadaf369abd9c757dbadd27f95b38ed8ba2
d6c9cf79ea02600d0474a9dc11ec0ae280a75f0b
refs/heads/main
2023-08-31T16:01:28.000908
2023-08-23T13:59:26
2023-08-23T13:59:26
120,805,786
131
68
MIT
2023-09-04T15:58:14
2018-02-08T19:16:31
Python
UTF-8
C
false
false
2,473
c
example.c
/* * MIT License * * Copyright (c) 2019-2022 Tskit Developers * * Permission is hereby granted, free of charge, to any person obtaining a copy * of this software and associated documentation files (the "Software"), to deal * in the Software without restriction, including without limitation the rights * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell * copies of the Software, and to permit persons to whom the Software is * furnished to do so, subject to the following conditions: * * The above copyright notice and this permission notice shall be included in all * copies or substantial portions of the Software. * * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE * SOFTWARE. */ /* Simple example testing that we compile and link in tskit and kastore * when we use meson submodules. */ #include <stdio.h> #include <tskit.h> #include <assert.h> #include <string.h> void test_kas_strerror() { printf("test_kas_strerror\n"); const char *str = kas_strerror(KAS_ERR_NO_MEMORY); assert(strcmp(str, "Out of memory") == 0); } void test_strerror() { printf("test_strerror\n"); const char *str = tsk_strerror(TSK_ERR_NO_MEMORY); assert(strcmp(str, "Out of memory. (TSK_ERR_NO_MEMORY)") == 0); } void test_load_error() { printf("test_open_error\n"); tsk_treeseq_t ts; int ret = tsk_treeseq_load(&ts, "no such file", 0); assert(ret == TSK_ERR_IO); tsk_treeseq_free(&ts); } void test_table_basics() { printf("test_table_basics\n"); tsk_table_collection_t tables; int ret = tsk_table_collection_init(&tables, 0); assert(ret == 0); ret = tsk_node_table_add_row(&tables.nodes, 0, 1.0, TSK_NULL, TSK_NULL, NULL, 0); assert(ret == 0); ret = tsk_node_table_add_row(&tables.nodes, 0, 2.0, TSK_NULL, TSK_NULL, NULL, 0); assert(ret == 1); assert(tables.nodes.num_rows == 2); tsk_table_collection_free(&tables); } int main() { test_kas_strerror(); test_strerror(); test_load_error(); test_table_basics(); return 0; }
c091b32c85f726f5d3900d8236f5ce1baf28d72d
eecd5e4c50d8b78a769bcc2675250576bed34066
/include/petscdmplextransformtypes.h
82e0411cd67b72f91f99f4d2fe85e0276064292a
[ "BSD-2-Clause" ]
permissive
petsc/petsc
3b1a04fea71858e0292f9fd4d04ea11618c50969
9c5460f9064ca60dd71a234a1f6faf93e7a6b0c9
refs/heads/main
2023-08-17T20:51:16.507070
2023-08-17T16:08:06
2023-08-17T16:08:06
8,691,401
341
169
NOASSERTION
2023-03-29T11:02:58
2013-03-10T20:55:21
C
UTF-8
C
false
false
316
h
petscdmplextransformtypes.h
#ifndef PETSCDMPLEXTRANSFORMTYPES_H #define PETSCDMPLEXTRANSFORMTYPES_H /* SUBMANSEC = DMPlex */ /*S DMPlexTransform - An object encapsulating a mesh transformation Level: intermediate .seealso: `DMPlexTransformCreate()`, `DMPlexTransformType` S*/ typedef struct _p_DMPlexTransform *DMPlexTransform; #endif
d86e9c50a854bce21da6ee8ba22379c8f9d8b585
d61b532db0d3e08818338cfaac530a1ced1ffe3b
/lang/fortran/lib/libF77/ef1cmc_.c
90cdc23baf70c7f234300a5b5e9208adff83baa9
[ "LicenseRef-scancode-other-permissive" ]
permissive
davidgiven/ack
61049c7a8e95ff61a77b1edd3c22bb290720e276
db5a32c68c4a60ca26a3927a799ea662b5b2b0e5
refs/heads/default
2023-08-29T07:33:12.771205
2023-07-08T20:17:27
2023-07-08T20:17:27
37,686,316
376
74
NOASSERTION
2023-07-08T20:17:28
2015-06-18T21:33:42
C
UTF-8
C
false
false
221
c
ef1cmc_.c
/* EFL support routine to compare two character strings */ #include "f2c.h" extern integer s_cmp(); integer ef1cmc_(a, la, b, lb) integer *a, *b; integer *la, *lb; { return( s_cmp( (char *)a, (char *)b, *la, *lb) ); }
708fbfd8b12668873fceed14feb915eda30881c1
ae3e9369882d46a2a009c41a58449c3da9cb3ae1
/src/include/shared/virtio_ring_buff.h
dba1449e8642ee494c0e472c34f520b49cdfc0dd
[ "MIT" ]
permissive
lsds/sgx-lkl
efc1f9bc0b9621ff1d301abf0b5bbbcc7c80ef96
b6e838e0034de86b48470b6a6bf87d2e262e65c9
refs/heads/oe_port
2023-06-04T04:44:34.776274
2021-04-12T17:33:53
2021-04-12T17:33:53
113,332,442
267
109
MIT
2022-12-29T04:35:40
2017-12-06T15:22:02
C
UTF-8
C
false
false
1,310
h
virtio_ring_buff.h
#ifndef VIRTIO_RING_BUFF_H #define VIRTIO_RING_BUFF_H #include "shared/oe_compat.h" /* This marks a buffer as continuing via the next field. */ #define LKL_VRING_DESC_F_NEXT 1 /* This marks a buffer as write-only (otherwise read-only). */ #define LKL_VRING_DESC_F_WRITE 2 /* This means the buffer contains a list of buffer descriptors. */ #define LKL_VRING_DESC_F_INDIRECT 4 struct virtq_desc { /* Address (guest-physical). */ uint64_t addr; /* Length. */ uint32_t len; /* The flags as indicated above. */ uint16_t flags; /* We chain unused descriptors via this, too */ uint16_t next; }; struct virtq_avail { uint16_t flags; uint16_t idx; uint16_t ring[]; }; struct virtq_used_elem { /* Index of start of used descriptor chain. */ uint32_t id; /* Total length of the descriptor chain which was used (written to) */ uint32_t len; }; struct virtq_used { uint16_t flags; uint16_t idx; struct virtq_used_elem ring[]; }; struct virtq { uint32_t num_max; _Atomic(uint32_t) num; _Atomic(uint32_t) ready; uint32_t max_merge_len; _Atomic(struct virtq_desc*) desc; _Atomic(struct virtq_avail*) avail; _Atomic(struct virtq_used*) used; uint16_t last_avail_idx; uint16_t last_used_idx_signaled; }; #endif
edaec7d1d43da2568540330f755ebe6d983882a0
8a77579760ab172f0fec3007596516de34841ca2
/test/fixtures/extra.c
79cdff992faa37bf94af2f163af66cd320369031
[ "MIT" ]
permissive
nodejs/llparse
7199c0ad3e705d10ab956fc7742be09518d3336e
4d7e35267870b576f41112f6f720f4a1009b10b8
refs/heads/main
2023-08-25T16:50:30.641125
2022-04-03T02:38:55
2022-04-03T02:38:55
121,175,041
475
31
NOASSERTION
2023-04-20T13:38:42
2018-02-11T22:46:12
TypeScript
UTF-8
C
false
false
1,818
c
extra.c
#include "fixture.h" int llparse__print_zero(llparse_t* s, const char* p, const char* endp) { if (llparse__in_bench) return 0; llparse__print(p, endp, "0"); return 0; } int llparse__print_one(llparse_t* s, const char* p, const char* endp) { if (llparse__in_bench) return 0; llparse__print(p, endp, "1"); return 0; } int llparse__print_off(llparse_t* s, const char* p, const char* endp) { if (llparse__in_bench) return 0; llparse__print(p, endp, ""); return 0; } int llparse__print_match(llparse_t* s, const char* p, const char* endp, int value) { if (llparse__in_bench) return 0; llparse__print(p, endp, "match=%d", value); return 0; } int llparse__on_dot(llparse_t* s, const char* p, const char* endp) { if (llparse__in_bench) return 0; return llparse__print_span("dot", p, endp); } int llparse__on_dash(llparse_t* s, const char* p, const char* endp) { if (llparse__in_bench) return 0; return llparse__print_span("dash", p, endp); } int llparse__on_underscore(llparse_t* s, const char* p, const char* endp) { if (llparse__in_bench) return 0; return llparse__print_span("underscore", p, endp); } /* A span callback, really */ int llparse__please_fail(llparse_t* s, const char* p, const char* endp) { s->reason = "please fail"; if (llparse__in_bench) return 1; return 1; } /* A span callback, really */ static int llparse__pause_once_counter; int llparse__pause_once(llparse_t* s, const char* p, const char* endp) { if (!llparse__in_bench) llparse__print_span("pause", p, endp); if (llparse__pause_once_counter != 0) return 0; llparse__pause_once_counter = 1; return LLPARSE__ERROR_PAUSE; } int llparse__test_init() { llparse__pause_once_counter = 0; }
3c4bace3989c3bac1791a491749b8eef481ccf66
41eb0837713f297134529591b66f3d4d82bcf98e
/src/Raine/source/sound/msm5205.h
cd17612baa99cfa0ded7fe69106c67acf85eee8c
[]
no_license
AlexxandreFS/Batocera.PLUS
27b196b3cbb781b6fc99e62cad855396d1d5f8f2
997ee763ae7135fdf0c34a081e789918bd2eb169
refs/heads/master
2023-08-17T21:52:39.083687
2023-08-17T15:03:44
2023-08-17T15:03:44
215,869,486
135
57
null
2023-08-14T14:46:14
2019-10-17T19:23:42
C
UTF-8
C
false
false
1,343
h
msm5205.h
#ifdef __cplusplus extern "C" { #endif /**************************************************************/ /* MSM5205 (DARIUS ADPCM chip) control */ /**************************************************************/ #ifndef __MSM5205_H__ #define __MSM5205_H__ #define MSM5205BF_MAX (2) #define MSM5205_MONO (0) #define MSM5205_STEREO (1) #define MAX_MSM_ADPCM 31 struct msm5205_adpcm_list { unsigned int start, end; }; struct MSM5205buffer_interface { int num; int sample_rate[MSM5205BF_MAX]; int volume[MSM5205BF_MAX]; struct msm5205_adpcm_list *list[MSM5205BF_MAX]; int listsize[MSM5205BF_MAX]; unsigned char *rom[MSM5205BF_MAX]; unsigned int romsize[MSM5205BF_MAX]; int region[MSM5205BF_MAX]; int updatemode; }; void decode_msm_sample(int chip, int sample); int MSM5205buffer_sh_start( struct MSM5205buffer_interface *interface ); void MSM5205buffer_sh_stop( void ); void MSM5205buffer_UpdateOne( int num, INT16 *buffer, int length ); void MSM5205buffer_Stereo_UpdateOne( int num, INT16 **buffer, int length ); void MSM5205buffer_request( int num, int code ); void MSM5205buffer_setpan( int num, int data ); int live_msm_decode(UINT16 adr,INT16 len); void MSM5205_set_volume(int chip, int volume); #endif /**************** end of file ****************/ #ifdef __cplusplus } #endif
8f23d3dcfdc111d2b8c17f289c90f1ed3aa2b28c
6432ea7a083ff6ba21ea17af9ee47b9c371760f7
/stage0/stdlib/Lean/Data/Lsp/Basic.c
939f02a60b274b82468078f69c81cc672b5197c4
[ "Apache-2.0", "LLVM-exception", "NCSA", "LGPL-3.0-only", "LicenseRef-scancode-inner-net-2.0", "BSD-3-Clause", "LGPL-2.0-or-later", "Spencer-94", "LGPL-2.1-or-later", "HPND", "LicenseRef-scancode-pcre", "ISC", "LGPL-2.1-only", "LicenseRef-scancode-other-permissive", "SunPro", "CMU-Mach" ]
permissive
leanprover/lean4
4bdf9790294964627eb9be79f5e8f6157780b4cc
f1f9dc0f2f531af3312398999d8b8303fa5f096b
refs/heads/master
2023-08-30T01:57:45.786981
2023-08-29T23:14:28
2023-08-29T23:14:28
129,571,436
2,827
311
Apache-2.0
2023-09-14T18:29:16
2018-04-15T02:49:20
Lean
UTF-8
C
false
false
903,605
c
Basic.c
// Lean compiler output // Module: Lean.Data.Lsp.Basic // Imports: Init Lean.Data.Json Lean.Data.JsonRpc #include <lean/lean.h> #if defined(__clang__) #pragma clang diagnostic ignored "-Wunused-parameter" #pragma clang diagnostic ignored "-Wunused-label" #elif defined(__GNUC__) && !defined(__CLANG__) #pragma GCC diagnostic ignored "-Wunused-parameter" #pragma GCC diagnostic ignored "-Wunused-label" #pragma GCC diagnostic ignored "-Wunused-but-set-variable" #endif #ifdef __cplusplus extern "C" { #endif LEAN_EXPORT lean_object* l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_toJsonMarkupContent____x40_Lean_Data_Lsp_Basic___hyg_6318_(lean_object*); lean_object* l_Lean_JsonNumber_fromNat(lean_object*); static lean_object* l_Lean_Lsp_instToJsonMarkupContent___closed__1; static lean_object* l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonCancelParams____x40_Lean_Data_Lsp_Basic___hyg_144____closed__12; LEAN_EXPORT lean_object* l_Lean_Json_getObjValAs_x3f___at___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonTextDocumentEdit____x40_Lean_Data_Lsp_Basic___hyg_2731____spec__2(lean_object*, lean_object*); static lean_object* l_Lean_Lsp_instBEqRange___closed__1; LEAN_EXPORT lean_object* l_Lean_Lsp_MarkupKind_noConfusion___rarg___lambda__1___boxed(lean_object*); LEAN_EXPORT lean_object* l_Lean_Lsp_CreateFile_instFromJsonOptions; static lean_object* l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonWorkDoneProgressParams____x40_Lean_Data_Lsp_Basic___hyg_6868____closed__6; static lean_object* l_Lean_Lsp_instToStringPosition___closed__2; LEAN_EXPORT lean_object* l_Lean_Json_getObjValAs_x3f___at___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonPosition____x40_Lean_Data_Lsp_Basic___hyg_548____spec__1___boxed(lean_object*, lean_object*); static lean_object* l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_DeleteFile_fromJsonOptions____x40_Lean_Data_Lsp_Basic___hyg_3335____closed__6; LEAN_EXPORT lean_object* l_Lean_Lsp_instToJsonChangeAnnotation; static lean_object* l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonTextDocumentItem____x40_Lean_Data_Lsp_Basic___hyg_5313____closed__3; LEAN_EXPORT lean_object* l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_toJsonVersionedTextDocumentIdentifier____x40_Lean_Data_Lsp_Basic___hyg_2500_(lean_object*); static lean_object* l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonDocumentFilter____x40_Lean_Data_Lsp_Basic___hyg_5792____closed__3; static lean_object* l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonLocationLink____x40_Lean_Data_Lsp_Basic___hyg_1529____closed__12; lean_object* l_List_join___rarg(lean_object*); lean_object* l_Lean_Json_getObj_x3f(lean_object*); static lean_object* l_Lean_Lsp_instToJsonStaticRegistrationOptions___closed__1; LEAN_EXPORT lean_object* l_Lean_Lsp_TextEdit_annotationId_x3f___default; static lean_object* l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonPosition____x40_Lean_Data_Lsp_Basic___hyg_548____closed__4; LEAN_EXPORT lean_object* l_Lean_Lsp_instInhabitedLocation; static lean_object* l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonTextDocumentPositionParams____x40_Lean_Data_Lsp_Basic___hyg_5568____closed__9; static lean_object* l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonWorkDoneProgressParams____x40_Lean_Data_Lsp_Basic___hyg_6868____closed__8; static lean_object* l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonDocumentFilter____x40_Lean_Data_Lsp_Basic___hyg_5792____closed__6; LEAN_EXPORT lean_object* l_Lean_Json_getObjValAs_x3f___at___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonLocation____x40_Lean_Data_Lsp_Basic___hyg_1314____spec__1___boxed(lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Lsp_instToJsonTextDocumentPositionParams; static lean_object* l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonLocationLink____x40_Lean_Data_Lsp_Basic___hyg_1529____closed__9; static lean_object* l_Lean_Lsp_instToJsonVersionedTextDocumentIdentifier___closed__1; static lean_object* l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonTextDocumentItem____x40_Lean_Data_Lsp_Basic___hyg_5313____closed__11; static lean_object* l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonMarkupContent____x40_Lean_Data_Lsp_Basic___hyg_6368____closed__7; static lean_object* l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonRenameFile____x40_Lean_Data_Lsp_Basic___hyg_3781____closed__5; static lean_object* l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonChangeAnnotation____x40_Lean_Data_Lsp_Basic___hyg_2933____closed__6; static lean_object* l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonTextDocumentEdit____x40_Lean_Data_Lsp_Basic___hyg_2731____closed__1; LEAN_EXPORT lean_object* l_Lean_Json_getObjValAs_x3f___at___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonWorkDoneProgressParams____x40_Lean_Data_Lsp_Basic___hyg_6868____spec__1(lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Json_getObjValAs_x3f___at___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonRange____x40_Lean_Data_Lsp_Basic___hyg_916____spec__1___boxed(lean_object*, lean_object*); LEAN_EXPORT lean_object* l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonStaticRegistrationOptions____x40_Lean_Data_Lsp_Basic___hyg_6012_(lean_object*); LEAN_EXPORT lean_object* l_Lean_Lsp_instToJsonCancelParams; LEAN_EXPORT lean_object* l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonRange____x40_Lean_Data_Lsp_Basic___hyg_916____boxed(lean_object*); static lean_object* l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonCancelParams____x40_Lean_Data_Lsp_Basic___hyg_144____closed__4; static lean_object* l_Lean_Lsp_instInhabitedRange___closed__1; LEAN_EXPORT lean_object* l_Lean_Lsp_ApplyWorkspaceEditParams_label_x3f___default; static lean_object* l_Lean_Lsp_instFromJsonPartialResultParams___closed__1; LEAN_EXPORT lean_object* l_Lean_RBNode_foldM___at___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonWorkspaceEdit____x40_Lean_Data_Lsp_Basic___hyg_4660____spec__4___boxed(lean_object*, lean_object*, lean_object*); lean_object* lean_mk_empty_array_with_capacity(lean_object*); LEAN_EXPORT uint64_t l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_hashPosition____x40_Lean_Data_Lsp_Basic___hyg_449_(lean_object*); static lean_object* l_Lean_Json_getObjValAs_x3f___at___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonCommand____x40_Lean_Data_Lsp_Basic___hyg_1837____spec__1___closed__2; LEAN_EXPORT lean_object* l_Lean_Lsp_instToJsonProgressParams(lean_object*); static lean_object* l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_toJsonChangeAnnotation____x40_Lean_Data_Lsp_Basic___hyg_2875____closed__2; static lean_object* l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonPartialResultParams____x40_Lean_Data_Lsp_Basic___hyg_6975____closed__3; static lean_object* l_Lean_Lsp_instToJsonCancelParams___closed__1; static lean_object* l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonPosition____x40_Lean_Data_Lsp_Basic___hyg_548____closed__5; static lean_object* l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonCreateFile____x40_Lean_Data_Lsp_Basic___hyg_3525____closed__5; static lean_object* l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonLocationLink____x40_Lean_Data_Lsp_Basic___hyg_1529____closed__18; static lean_object* l_Lean_Lsp_instHashablePosition___closed__1; static lean_object* l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonPartialResultParams____x40_Lean_Data_Lsp_Basic___hyg_6975____closed__5; static lean_object* l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonRange____x40_Lean_Data_Lsp_Basic___hyg_916____closed__3; static lean_object* l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonMarkupContent____x40_Lean_Data_Lsp_Basic___hyg_6368____closed__12; LEAN_EXPORT lean_object* l_Lean_Lsp_instFromJsonDocumentFilter; LEAN_EXPORT lean_object* l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonApplyWorkspaceEditParams____x40_Lean_Data_Lsp_Basic___hyg_5092____boxed(lean_object*); LEAN_EXPORT lean_object* l_Lean_Lsp_instToStringTextDocumentPositionParams(lean_object*); LEAN_EXPORT lean_object* l_Lean_Json_opt___at___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_toJsonCommand____x40_Lean_Data_Lsp_Basic___hyg_1757____spec__1(lean_object*, lean_object*); static lean_object* l_Lean_Lsp_instFromJsonCommand___closed__1; static lean_object* l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonTextDocumentEdit____x40_Lean_Data_Lsp_Basic___hyg_2731____closed__8; LEAN_EXPORT lean_object* l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonRenameFile____x40_Lean_Data_Lsp_Basic___hyg_3781_(lean_object*); static lean_object* l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonRenameFile____x40_Lean_Data_Lsp_Basic___hyg_3781____closed__6; LEAN_EXPORT lean_object* l_Lean_Lsp_instBEqCancelParams; static lean_object* l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonChangeAnnotation____x40_Lean_Data_Lsp_Basic___hyg_2933____closed__14; static lean_object* l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_DeleteFile_fromJsonOptions____x40_Lean_Data_Lsp_Basic___hyg_3335____closed__1; lean_object* l_Lean_Json_mkObj(lean_object*); static lean_object* l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_CreateFile_fromJsonOptions____x40_Lean_Data_Lsp_Basic___hyg_3155____closed__3; static lean_object* l_Lean_Lsp_DeleteFile_instToJsonOptions___closed__1; LEAN_EXPORT lean_object* l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_toJsonPartialResultParams____x40_Lean_Data_Lsp_Basic___hyg_6946_(lean_object*); static lean_object* l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonChangeAnnotation____x40_Lean_Data_Lsp_Basic___hyg_2933____closed__17; LEAN_EXPORT lean_object* l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonWorkDoneProgressParams____x40_Lean_Data_Lsp_Basic___hyg_6868_(lean_object*); static lean_object* l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonRenameFile____x40_Lean_Data_Lsp_Basic___hyg_3781____closed__15; static lean_object* l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonLocation____x40_Lean_Data_Lsp_Basic___hyg_1314____closed__2; static lean_object* l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonRenameFile____x40_Lean_Data_Lsp_Basic___hyg_3781____closed__10; LEAN_EXPORT lean_object* l_Lean_Json_getObjValAs_x3f___at___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonTextEdit____x40_Lean_Data_Lsp_Basic___hyg_2082____spec__1(lean_object*, lean_object*); static lean_object* l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonPartialResultParams____x40_Lean_Data_Lsp_Basic___hyg_6975____closed__9; LEAN_EXPORT uint8_t l_Lean_Lsp_WorkDoneProgressReport_cancellable___default; static lean_object* l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonLocationLink____x40_Lean_Data_Lsp_Basic___hyg_1529____closed__17; static lean_object* l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonRenameFile____x40_Lean_Data_Lsp_Basic___hyg_3781____closed__9; LEAN_EXPORT lean_object* l_Lean_Lsp_WorkDoneProgressBegin_kind___default; static lean_object* l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonCreateFile____x40_Lean_Data_Lsp_Basic___hyg_3525____closed__7; static lean_object* l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonTextEdit____x40_Lean_Data_Lsp_Basic___hyg_2082____closed__11; LEAN_EXPORT lean_object* l_Lean_Lsp_instFromJsonDocumentSelector(lean_object*); LEAN_EXPORT lean_object* l_Lean_Lsp_WorkDoneProgressReport_kind___default; static lean_object* l_Lean_Lsp_WorkspaceEdit_instAppendWorkspaceEdit___closed__1; static lean_object* l_Lean_Lsp_instToJsonDocumentChange___closed__4; LEAN_EXPORT lean_object* l_Lean_RBNode_foldM___at___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonWorkspaceEdit____x40_Lean_Data_Lsp_Basic___hyg_4660____spec__4(lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_RBNode_foldM___at___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonWorkspaceEdit____x40_Lean_Data_Lsp_Basic___hyg_4660____spec__4___at___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonWorkspaceEdit____x40_Lean_Data_Lsp_Basic___hyg_4660____spec__5(lean_object*, lean_object*); static lean_object* l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_CreateFile_toJsonOptions____x40_Lean_Data_Lsp_Basic___hyg_3105____closed__1; static lean_object* l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_DeleteFile_fromJsonOptions____x40_Lean_Data_Lsp_Basic___hyg_3335____closed__4; static lean_object* l_Lean_Lsp_instInhabitedCancelParams___closed__1; LEAN_EXPORT lean_object* l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_DeleteFile_fromJsonOptions____x40_Lean_Data_Lsp_Basic___hyg_3335____boxed(lean_object*); static lean_object* l_Lean_Lsp_instOrdRange___closed__1; static lean_object* l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_toJsonCancelParams____x40_Lean_Data_Lsp_Basic___hyg_100____closed__2; LEAN_EXPORT lean_object* l_Lean_Lsp_MarkupKind_toCtorIdx(uint8_t); static lean_object* l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonTextEdit____x40_Lean_Data_Lsp_Basic___hyg_2082____closed__4; static lean_object* l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonTextDocumentPositionParams____x40_Lean_Data_Lsp_Basic___hyg_5568____closed__5; static lean_object* l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonStaticRegistrationOptions____x40_Lean_Data_Lsp_Basic___hyg_6012____closed__6; static lean_object* l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_CreateFile_fromJsonOptions____x40_Lean_Data_Lsp_Basic___hyg_3155____closed__12; static lean_object* l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_toJsonTextDocumentItem____x40_Lean_Data_Lsp_Basic___hyg_5235____closed__1; uint64_t lean_uint64_of_nat(lean_object*); LEAN_EXPORT lean_object* l_Lean_Lsp_instToJsonPosition; uint64_t lean_uint64_mix_hash(uint64_t, uint64_t); static lean_object* l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonTextDocumentEdit____x40_Lean_Data_Lsp_Basic___hyg_2731____closed__6; static lean_object* l_Lean_Lsp_instToJsonTextDocumentItem___closed__1; LEAN_EXPORT lean_object* l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_toJsonTextDocumentEdit____x40_Lean_Data_Lsp_Basic___hyg_2677_(lean_object*); static lean_object* l_Lean_Lsp_instToJsonMarkupKind___closed__1; static lean_object* l_Lean_Lsp_instFromJsonApplyWorkspaceEditParams___closed__1; static lean_object* l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonTextEdit____x40_Lean_Data_Lsp_Basic___hyg_2082____closed__10; LEAN_EXPORT lean_object* l_Lean_Json_getObjValAs_x3f___at___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonChangeAnnotation____x40_Lean_Data_Lsp_Basic___hyg_2933____spec__1___boxed(lean_object*, lean_object*); static lean_object* l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonLocation____x40_Lean_Data_Lsp_Basic___hyg_1314____closed__9; static lean_object* l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonApplyWorkspaceEditParams____x40_Lean_Data_Lsp_Basic___hyg_5092____closed__6; static lean_object* l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonWorkspaceEdit____x40_Lean_Data_Lsp_Basic___hyg_4660____closed__9; static lean_object* l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_toJsonLocationLink____x40_Lean_Data_Lsp_Basic___hyg_1456____closed__4; LEAN_EXPORT lean_object* l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonDeleteFile____x40_Lean_Data_Lsp_Basic___hyg_4050____boxed(lean_object*); LEAN_EXPORT lean_object* l_Lean_Lsp_instToJsonMarkupContent; LEAN_EXPORT lean_object* l_Lean_Json_getObjValAs_x3f___at___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonPosition____x40_Lean_Data_Lsp_Basic___hyg_548____spec__1(lean_object*, lean_object*); static lean_object* l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonDeleteFile____x40_Lean_Data_Lsp_Basic___hyg_4050____closed__8; lean_object* l_Lean_Name_toString(lean_object*, uint8_t); static lean_object* l_Lean_Lsp_instFromJsonCreateFile___closed__1; LEAN_EXPORT lean_object* l_Lean_Lsp_instFromJsonWorkDoneProgressOptions; static lean_object* l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonWorkDoneProgressParams____x40_Lean_Data_Lsp_Basic___hyg_6868____closed__5; static lean_object* l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonWorkDoneProgressParams____x40_Lean_Data_Lsp_Basic___hyg_6868____closed__9; static lean_object* l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonTextDocumentPositionParams____x40_Lean_Data_Lsp_Basic___hyg_5568____closed__3; static lean_object* l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_CreateFile_fromJsonOptions____x40_Lean_Data_Lsp_Basic___hyg_3155____closed__10; static lean_object* l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonWorkDoneProgressOptions____x40_Lean_Data_Lsp_Basic___hyg_7087____closed__8; static lean_object* l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonWorkDoneProgressOptions____x40_Lean_Data_Lsp_Basic___hyg_7087____closed__7; static lean_object* l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonTextDocumentItem____x40_Lean_Data_Lsp_Basic___hyg_5313____closed__4; uint8_t l_Lean_RBNode_isRed___rarg(lean_object*); LEAN_EXPORT lean_object* l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonTextDocumentPositionParams____x40_Lean_Data_Lsp_Basic___hyg_5568____boxed(lean_object*); static lean_object* l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_toJsonLocationLink____x40_Lean_Data_Lsp_Basic___hyg_1456____closed__1; static lean_object* l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonCancelParams____x40_Lean_Data_Lsp_Basic___hyg_144____closed__6; static lean_object* l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_DeleteFile_toJsonOptions____x40_Lean_Data_Lsp_Basic___hyg_3285____closed__1; static lean_object* l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_toJsonPosition____x40_Lean_Data_Lsp_Basic___hyg_497____closed__1; static lean_object* l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonWorkDoneProgressOptions____x40_Lean_Data_Lsp_Basic___hyg_7087____closed__3; lean_object* lean_array_push(lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Lsp_instToJsonWorkDoneProgressReport; LEAN_EXPORT lean_object* l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_CreateFile_toJsonOptions____x40_Lean_Data_Lsp_Basic___hyg_3105____boxed(lean_object*); static lean_object* l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonWorkspaceEdit____x40_Lean_Data_Lsp_Basic___hyg_4660____closed__6; static lean_object* l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_toJsonCreateFile____x40_Lean_Data_Lsp_Basic___hyg_3473____closed__1; LEAN_EXPORT lean_object* l_Lean_Json_getObjValAs_x3f___at___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonTextDocumentPositionParams____x40_Lean_Data_Lsp_Basic___hyg_5568____spec__1(lean_object*, lean_object*); static lean_object* l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_toJsonMarkupContent____x40_Lean_Data_Lsp_Basic___hyg_6318____closed__3; LEAN_EXPORT lean_object* l_Array_mapMUnsafe_map___at_Lean_Lsp_instFromJsonTextEditBatch___spec__1(size_t, size_t, lean_object*); LEAN_EXPORT lean_object* l_Lean_Lsp_instToJsonTextDocumentEdit; static lean_object* l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_toJsonTextDocumentRegistrationOptions____x40_Lean_Data_Lsp_Basic___hyg_6090____closed__1; static lean_object* l_Lean_Lsp_instToJsonPartialResultParams___closed__1; static lean_object* l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonVersionedTextDocumentIdentifier____x40_Lean_Data_Lsp_Basic___hyg_2545____closed__4; LEAN_EXPORT lean_object* l_Lean_Lsp_WorkDoneProgressParams_workDoneToken_x3f___default; static lean_object* l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonCommand____x40_Lean_Data_Lsp_Basic___hyg_1837____closed__12; static lean_object* l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonChangeAnnotation____x40_Lean_Data_Lsp_Basic___hyg_2933____closed__4; LEAN_EXPORT lean_object* l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonChangeAnnotation____x40_Lean_Data_Lsp_Basic___hyg_2933____boxed(lean_object*); static lean_object* l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonChangeAnnotation____x40_Lean_Data_Lsp_Basic___hyg_2933____closed__15; lean_object* l_Lean_Json_getObjValAs_x3f___at_Lean_JsonRpc_instFromJsonMessage___spec__3(lean_object*, lean_object*); static lean_object* l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_toJsonCommand____x40_Lean_Data_Lsp_Basic___hyg_1757____closed__3; static lean_object* l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonLocationLink____x40_Lean_Data_Lsp_Basic___hyg_1529____closed__21; static lean_object* l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_DeleteFile_fromJsonOptions____x40_Lean_Data_Lsp_Basic___hyg_3335____closed__2; static lean_object* l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonApplyWorkspaceEditParams____x40_Lean_Data_Lsp_Basic___hyg_5092____closed__4; LEAN_EXPORT lean_object* l_Array_mapMUnsafe_map___at___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonCommand____x40_Lean_Data_Lsp_Basic___hyg_1837____spec__2___boxed(lean_object*, lean_object*, lean_object*); static lean_object* l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonLocationLink____x40_Lean_Data_Lsp_Basic___hyg_1529____closed__13; static lean_object* l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonLocationLink____x40_Lean_Data_Lsp_Basic___hyg_1529____closed__5; static lean_object* l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonDocumentFilter____x40_Lean_Data_Lsp_Basic___hyg_5792____closed__18; LEAN_EXPORT lean_object* l_Lean_Lsp_instOrdPosition; LEAN_EXPORT lean_object* l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_toJsonStaticRegistrationOptions____x40_Lean_Data_Lsp_Basic___hyg_5983____boxed(lean_object*); static lean_object* l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonPartialResultParams____x40_Lean_Data_Lsp_Basic___hyg_6975____closed__7; LEAN_EXPORT lean_object* l_Lean_Lsp_WorkspaceEdit_instAppendWorkspaceEdit___lambda__3___boxed(lean_object*, lean_object*, lean_object*); static lean_object* l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonRenameFile____x40_Lean_Data_Lsp_Basic___hyg_3781____closed__2; static lean_object* l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonWorkspaceEdit____x40_Lean_Data_Lsp_Basic___hyg_4660____closed__3; static lean_object* l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_CreateFile_fromJsonOptions____x40_Lean_Data_Lsp_Basic___hyg_3155____closed__1; LEAN_EXPORT lean_object* l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_toJsonCommand____x40_Lean_Data_Lsp_Basic___hyg_1757_(lean_object*); static lean_object* l_Lean_Lsp_instToJsonLocation___closed__1; static lean_object* l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonWorkDoneProgressOptions____x40_Lean_Data_Lsp_Basic___hyg_7087____closed__6; LEAN_EXPORT lean_object* l_Lean_Lsp_WorkspaceEdit_ofTextEdit(lean_object*, lean_object*); static lean_object* l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonTextDocumentItem____x40_Lean_Data_Lsp_Basic___hyg_5313____closed__18; static lean_object* l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonTextDocumentEdit____x40_Lean_Data_Lsp_Basic___hyg_2731____closed__7; LEAN_EXPORT lean_object* l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonTextEdit____x40_Lean_Data_Lsp_Basic___hyg_2082_(lean_object*); static lean_object* l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonCommand____x40_Lean_Data_Lsp_Basic___hyg_1837____closed__14; static lean_object* l_Lean_Lsp_instCoeTextEditTextEditBatch___closed__1; static lean_object* l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonPosition____x40_Lean_Data_Lsp_Basic___hyg_548____closed__8; LEAN_EXPORT lean_object* l_Array_mapMUnsafe_map___at___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonWorkspaceEdit____x40_Lean_Data_Lsp_Basic___hyg_4660____spec__7(size_t, size_t, lean_object*); static lean_object* l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_toJsonWorkspaceEdit____x40_Lean_Data_Lsp_Basic___hyg_4588____closed__1; static lean_object* l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonTextEdit____x40_Lean_Data_Lsp_Basic___hyg_2082____closed__15; static lean_object* l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonMarkupContent____x40_Lean_Data_Lsp_Basic___hyg_6368____closed__8; static lean_object* l_Lean_Lsp_WorkspaceEdit_ofTextEdit___closed__1; LEAN_EXPORT lean_object* l_Lean_Json_getObjValAs_x3f___at___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonWorkspaceEdit____x40_Lean_Data_Lsp_Basic___hyg_4660____spec__8(lean_object*, lean_object*); static lean_object* l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonTextDocumentIdentifier____x40_Lean_Data_Lsp_Basic___hyg_2414____closed__2; LEAN_EXPORT lean_object* l_Array_mapMUnsafe_map___at___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_toJsonCommand____x40_Lean_Data_Lsp_Basic___hyg_1757____spec__2(size_t, size_t, lean_object*); static lean_object* l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonStaticRegistrationOptions____x40_Lean_Data_Lsp_Basic___hyg_6012____closed__8; static lean_object* l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonDeleteFile____x40_Lean_Data_Lsp_Basic___hyg_4050____closed__3; static lean_object* l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_toJsonDocumentFilter____x40_Lean_Data_Lsp_Basic___hyg_5749____closed__3; LEAN_EXPORT lean_object* l_Lean_Lsp_instFromJsonTextDocumentEdit; LEAN_EXPORT lean_object* l_Lean_Json_getObjValAs_x3f___at___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonTextDocumentRegistrationOptions____x40_Lean_Data_Lsp_Basic___hyg_6125____spec__1(lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Lsp_instFromJsonWorkDoneProgressParams; LEAN_EXPORT lean_object* l_Lean_Lsp_instToJsonRenameFile; LEAN_EXPORT lean_object* l_Lean_Json_getObjValAs_x3f___at___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonDeleteFile____x40_Lean_Data_Lsp_Basic___hyg_4050____spec__1___boxed(lean_object*, lean_object*); LEAN_EXPORT lean_object* l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonLocation____x40_Lean_Data_Lsp_Basic___hyg_1314_(lean_object*); LEAN_EXPORT lean_object* l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_toJsonRenameFile____x40_Lean_Data_Lsp_Basic___hyg_3717_(lean_object*); static lean_object* l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_toJsonDocumentFilter____x40_Lean_Data_Lsp_Basic___hyg_5749____closed__1; static lean_object* l_Lean_Json_getObjValAs_x3f___at___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonCommand____x40_Lean_Data_Lsp_Basic___hyg_1837____spec__1___closed__1; LEAN_EXPORT lean_object* l_Lean_Lsp_WorkspaceEdit_changes___default; static lean_object* l_Lean_Lsp_instBEqLocation___closed__1; static lean_object* l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonTextDocumentRegistrationOptions____x40_Lean_Data_Lsp_Basic___hyg_6125____closed__7; LEAN_EXPORT lean_object* l_Lean_Json_getObjValAs_x3f___at___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonTextDocumentEdit____x40_Lean_Data_Lsp_Basic___hyg_2731____spec__1___boxed(lean_object*, lean_object*); static lean_object* l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonTextEdit____x40_Lean_Data_Lsp_Basic___hyg_2082____closed__9; LEAN_EXPORT lean_object* l_Lean_RBNode_map___at___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_toJsonWorkspaceEdit____x40_Lean_Data_Lsp_Basic___hyg_4588____spec__1___rarg(lean_object*); LEAN_EXPORT lean_object* l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_toJsonTextDocumentPositionParams____x40_Lean_Data_Lsp_Basic___hyg_5518_(lean_object*); static lean_object* l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonTextEdit____x40_Lean_Data_Lsp_Basic___hyg_2082____closed__5; LEAN_EXPORT lean_object* l_Lean_Lsp_instFromJsonRange; static lean_object* l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonStaticRegistrationOptions____x40_Lean_Data_Lsp_Basic___hyg_6012____closed__1; LEAN_EXPORT lean_object* l_Lean_Lsp_WorkspaceEdit_instAppendWorkspaceEdit___lambda__3(lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonRange____x40_Lean_Data_Lsp_Basic___hyg_916_(lean_object*); static lean_object* l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonTextDocumentIdentifier____x40_Lean_Data_Lsp_Basic___hyg_2414____closed__5; static lean_object* l_Lean_Lsp_instOrdPosition___closed__1; LEAN_EXPORT lean_object* l_Lean_Lsp_DeleteFile_annotationId_x3f___default; LEAN_EXPORT lean_object* l_Lean_Lsp_instFromJsonLocation; static lean_object* l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonTextEdit____x40_Lean_Data_Lsp_Basic___hyg_2082____closed__7; LEAN_EXPORT lean_object* l_Lean_Json_opt___at___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_toJsonTextDocumentRegistrationOptions____x40_Lean_Data_Lsp_Basic___hyg_6090____spec__1(lean_object*, lean_object*); LEAN_EXPORT lean_object* l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_toJsonTextDocumentItem____x40_Lean_Data_Lsp_Basic___hyg_5235_(lean_object*); LEAN_EXPORT lean_object* l_Lean_Lsp_instEmptyCollectionTextEditBatch; static lean_object* l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonTextDocumentItem____x40_Lean_Data_Lsp_Basic___hyg_5313____closed__10; static lean_object* l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonRange____x40_Lean_Data_Lsp_Basic___hyg_916____closed__5; static lean_object* l_Lean_Lsp_instToJsonCreateFile___closed__1; static lean_object* l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonLocationLink____x40_Lean_Data_Lsp_Basic___hyg_1529____closed__10; static lean_object* l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_toJsonRenameFile____x40_Lean_Data_Lsp_Basic___hyg_3717____closed__1; static lean_object* l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonLocationLink____x40_Lean_Data_Lsp_Basic___hyg_1529____closed__6; LEAN_EXPORT lean_object* l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_toJsonStaticRegistrationOptions____x40_Lean_Data_Lsp_Basic___hyg_5983_(lean_object*); uint8_t lean_string_dec_eq(lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Array_mapMUnsafe_map___at___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_toJsonCommand____x40_Lean_Data_Lsp_Basic___hyg_1757____spec__2___boxed(lean_object*, lean_object*, lean_object*); static lean_object* l_Lean_Lsp_instToStringTextDocumentPositionParams___closed__1; LEAN_EXPORT lean_object* l_Lean_Lsp_DocumentFilter_language_x3f___default; LEAN_EXPORT lean_object* l_Lean_Lsp_instToJsonApplyWorkspaceEditParams; static lean_object* l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonCancelParams____x40_Lean_Data_Lsp_Basic___hyg_144____closed__2; LEAN_EXPORT lean_object* l_Lean_Lsp_instBEqLocation; LEAN_EXPORT lean_object* l_Lean_Lsp_instToJsonLocation; LEAN_EXPORT lean_object* l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_toJsonLocation____x40_Lean_Data_Lsp_Basic___hyg_1263_(lean_object*); static lean_object* l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonVersionedTextDocumentIdentifier____x40_Lean_Data_Lsp_Basic___hyg_2545____closed__5; LEAN_EXPORT lean_object* l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonDocumentFilter____x40_Lean_Data_Lsp_Basic___hyg_5792____boxed(lean_object*); static lean_object* l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_toJsonRenameFile____x40_Lean_Data_Lsp_Basic___hyg_3717____closed__2; static lean_object* l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonDeleteFile____x40_Lean_Data_Lsp_Basic___hyg_4050____closed__1; static lean_object* l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonRange____x40_Lean_Data_Lsp_Basic___hyg_916____closed__9; static lean_object* l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonCommand____x40_Lean_Data_Lsp_Basic___hyg_1837____closed__10; static lean_object* l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_toJsonRange____x40_Lean_Data_Lsp_Basic___hyg_866____closed__2; LEAN_EXPORT lean_object* l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_toJsonMarkupContent____x40_Lean_Data_Lsp_Basic___hyg_6318____boxed(lean_object*); LEAN_EXPORT lean_object* l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonVersionedTextDocumentIdentifier____x40_Lean_Data_Lsp_Basic___hyg_2545_(lean_object*); static lean_object* l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonMarkupContent____x40_Lean_Data_Lsp_Basic___hyg_6368____closed__5; static lean_object* l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonWorkspaceEdit____x40_Lean_Data_Lsp_Basic___hyg_4660____closed__16; static lean_object* l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonWorkspaceEdit____x40_Lean_Data_Lsp_Basic___hyg_4660____closed__11; static lean_object* l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonLocation____x40_Lean_Data_Lsp_Basic___hyg_1314____closed__7; lean_object* l_Lean_Json_getObjVal_x3f(lean_object*, lean_object*); lean_object* l_Lean_Json_getBool_x3f(lean_object*); static lean_object* l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonApplyWorkspaceEditParams____x40_Lean_Data_Lsp_Basic___hyg_5092____closed__10; LEAN_EXPORT lean_object* l_Lean_Lsp_DeleteFile_instToJsonOptions; LEAN_EXPORT lean_object* l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_toJsonCreateFile____x40_Lean_Data_Lsp_Basic___hyg_3473____boxed(lean_object*); static lean_object* l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_toJsonApplyWorkspaceEditParams____x40_Lean_Data_Lsp_Basic___hyg_5049____closed__1; LEAN_EXPORT lean_object* l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonTextDocumentEdit____x40_Lean_Data_Lsp_Basic___hyg_2731____boxed(lean_object*); LEAN_EXPORT lean_object* l_Lean_Json_getObjValAs_x3f___at___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonChangeAnnotation____x40_Lean_Data_Lsp_Basic___hyg_2933____spec__1(lean_object*, lean_object*); LEAN_EXPORT lean_object* l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonVersionedTextDocumentIdentifier____x40_Lean_Data_Lsp_Basic___hyg_2545____boxed(lean_object*); static lean_object* l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonApplyWorkspaceEditParams____x40_Lean_Data_Lsp_Basic___hyg_5092____closed__3; static lean_object* l_Lean_Lsp_instFromJsonRange___closed__1; static lean_object* l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonChangeAnnotation____x40_Lean_Data_Lsp_Basic___hyg_2933____closed__11; LEAN_EXPORT lean_object* l_Lean_Lsp_instToJsonTextDocumentIdentifier; static lean_object* l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonTextEdit____x40_Lean_Data_Lsp_Basic___hyg_2082____closed__14; static lean_object* l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonPartialResultParams____x40_Lean_Data_Lsp_Basic___hyg_6975____closed__6; static lean_object* l_Lean_Lsp_instEmptyCollectionTextEditBatch___closed__1; static lean_object* l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_toJsonVersionedTextDocumentIdentifier____x40_Lean_Data_Lsp_Basic___hyg_2500____closed__1; static lean_object* l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_toJsonWorkspaceEdit____x40_Lean_Data_Lsp_Basic___hyg_4588____closed__2; static lean_object* l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonTextDocumentEdit____x40_Lean_Data_Lsp_Basic___hyg_2731____closed__3; LEAN_EXPORT lean_object* l_Lean_Lsp_instToJsonDocumentSelector(lean_object*); static lean_object* l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonDocumentFilter____x40_Lean_Data_Lsp_Basic___hyg_5792____closed__17; LEAN_EXPORT lean_object* l_Lean_Lsp_instFromJsonTextEditBatch(lean_object*); lean_object* l_Lean_Json_getStr_x3f(lean_object*); static lean_object* l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonMarkupContent____x40_Lean_Data_Lsp_Basic___hyg_6368____closed__4; LEAN_EXPORT lean_object* l_Lean_Lsp_instFromJsonDocumentChange(lean_object*); static lean_object* l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonDocumentFilter____x40_Lean_Data_Lsp_Basic___hyg_5792____closed__4; LEAN_EXPORT lean_object* l_Lean_Lsp_instFromJsonPosition; static lean_object* l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_toJsonDocumentFilter____x40_Lean_Data_Lsp_Basic___hyg_5749____closed__2; LEAN_EXPORT lean_object* l_Lean_Lsp_instToJsonCommand; lean_object* l_Lean_Name_mkStr3(lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Json_getObjValAs_x3f___at___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonRange____x40_Lean_Data_Lsp_Basic___hyg_916____spec__1(lean_object*, lean_object*); LEAN_EXPORT lean_object* l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonTextDocumentIdentifier____x40_Lean_Data_Lsp_Basic___hyg_2414_(lean_object*); LEAN_EXPORT lean_object* l_Lean_Lsp_DocumentFilter_pattern_x3f___default; LEAN_EXPORT lean_object* l_Lean_Lsp_instToJsonDocumentChange(lean_object*); LEAN_EXPORT uint8_t l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_ordRange____x40_Lean_Data_Lsp_Basic___hyg_1022_(lean_object*, lean_object*); LEAN_EXPORT lean_object* l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_CreateFile_fromJsonOptions____x40_Lean_Data_Lsp_Basic___hyg_3155____boxed(lean_object*); static lean_object* l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_CreateFile_fromJsonOptions____x40_Lean_Data_Lsp_Basic___hyg_3155____closed__5; static lean_object* l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_toJsonMarkupContent____x40_Lean_Data_Lsp_Basic___hyg_6318____closed__2; static lean_object* l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonTextDocumentItem____x40_Lean_Data_Lsp_Basic___hyg_5313____closed__7; static lean_object* l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonLocation____x40_Lean_Data_Lsp_Basic___hyg_1314____closed__8; size_t lean_usize_of_nat(lean_object*); LEAN_EXPORT lean_object* l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonDocumentFilter____x40_Lean_Data_Lsp_Basic___hyg_5792_(lean_object*); static lean_object* l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonWorkspaceEdit____x40_Lean_Data_Lsp_Basic___hyg_4660____closed__12; LEAN_EXPORT lean_object* l_Lean_Lsp_instToJsonTextEdit; static lean_object* l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonWorkspaceEdit____x40_Lean_Data_Lsp_Basic___hyg_4660____closed__2; static lean_object* l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonLocationLink____x40_Lean_Data_Lsp_Basic___hyg_1529____closed__20; LEAN_EXPORT lean_object* l_Lean_Lsp_CreateFile_options_x3f___default; static lean_object* l_Lean_Lsp_instToJsonCommand___closed__1; static lean_object* l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_DeleteFile_fromJsonOptions____x40_Lean_Data_Lsp_Basic___hyg_3335____closed__5; static lean_object* l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonTextDocumentItem____x40_Lean_Data_Lsp_Basic___hyg_5313____closed__12; static lean_object* l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_DeleteFile_fromJsonOptions____x40_Lean_Data_Lsp_Basic___hyg_3335____closed__7; static lean_object* l_Lean_Lsp_instFromJsonMarkupKind___closed__6; static lean_object* l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonLocationLink____x40_Lean_Data_Lsp_Basic___hyg_1529____closed__16; LEAN_EXPORT lean_object* l_Lean_Lsp_PartialResultParams_partialResultToken_x3f___default; LEAN_EXPORT lean_object* l_Lean_Lsp_StaticRegistrationOptions_id_x3f___default; LEAN_EXPORT lean_object* l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_DeleteFile_toJsonOptions____x40_Lean_Data_Lsp_Basic___hyg_3285_(lean_object*); LEAN_EXPORT lean_object* l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonMarkupContent____x40_Lean_Data_Lsp_Basic___hyg_6368_(lean_object*); static lean_object* l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_CreateFile_fromJsonOptions____x40_Lean_Data_Lsp_Basic___hyg_3155____closed__4; static lean_object* l_Lean_Lsp_instFromJsonTextEdit___closed__1; static lean_object* l_Lean_Lsp_WorkspaceEdit_instAppendWorkspaceEdit___closed__2; LEAN_EXPORT lean_object* l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_toJsonDocumentFilter____x40_Lean_Data_Lsp_Basic___hyg_5749____boxed(lean_object*); static lean_object* l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonPartialResultParams____x40_Lean_Data_Lsp_Basic___hyg_6975____closed__2; LEAN_EXPORT lean_object* l_Lean_Json_getObjValAs_x3f___at___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonCreateFile____x40_Lean_Data_Lsp_Basic___hyg_3525____spec__1___boxed(lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Array_mapMUnsafe_map___at___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonCommand____x40_Lean_Data_Lsp_Basic___hyg_1837____spec__2(size_t, size_t, lean_object*); static lean_object* l_Lean_Lsp_instFromJsonTextDocumentPositionParams___closed__1; LEAN_EXPORT lean_object* l_Lean_Lsp_instLTRange; static lean_object* l_Lean_Lsp_WorkspaceEdit_instAppendWorkspaceEdit___closed__3; LEAN_EXPORT lean_object* l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_toJsonChangeAnnotation____x40_Lean_Data_Lsp_Basic___hyg_2875____boxed(lean_object*); LEAN_EXPORT lean_object* l_Lean_Json_getObjValAs_x3f___at___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonWorkspaceEdit____x40_Lean_Data_Lsp_Basic___hyg_4660____spec__1(lean_object*, lean_object*); static lean_object* l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonApplyWorkspaceEditParams____x40_Lean_Data_Lsp_Basic___hyg_5092____closed__5; static lean_object* l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonCreateFile____x40_Lean_Data_Lsp_Basic___hyg_3525____closed__10; static lean_object* l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonDocumentFilter____x40_Lean_Data_Lsp_Basic___hyg_5792____closed__15; static lean_object* l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_toJsonMarkupContent____x40_Lean_Data_Lsp_Basic___hyg_6318____closed__1; LEAN_EXPORT lean_object* l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_toJsonPartialResultParams____x40_Lean_Data_Lsp_Basic___hyg_6946____boxed(lean_object*); uint8_t lean_nat_dec_eq(lean_object*, lean_object*); static lean_object* l_Lean_Lsp_instToJsonTextDocumentPositionParams___closed__1; static lean_object* l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonCommand____x40_Lean_Data_Lsp_Basic___hyg_1837____closed__3; LEAN_EXPORT lean_object* l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_toJsonRenameFile____x40_Lean_Data_Lsp_Basic___hyg_3717____boxed(lean_object*); static lean_object* l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonWorkspaceEdit____x40_Lean_Data_Lsp_Basic___hyg_4660____closed__7; LEAN_EXPORT uint8_t l_Lean_Lsp_DeleteFile_Options_ignoreIfNotExists___default; static lean_object* l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonWorkDoneProgressParams____x40_Lean_Data_Lsp_Basic___hyg_6868____closed__1; LEAN_EXPORT lean_object* l_Array_mapMUnsafe_map___at_Lean_Lsp_instFromJsonTextEditBatch___spec__1___boxed(lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Json_opt___at___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_toJsonTextEdit____x40_Lean_Data_Lsp_Basic___hyg_2023____spec__1___boxed(lean_object*, lean_object*); LEAN_EXPORT lean_object* l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonChangeAnnotation____x40_Lean_Data_Lsp_Basic___hyg_2933_(lean_object*); static lean_object* l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonDeleteFile____x40_Lean_Data_Lsp_Basic___hyg_4050____closed__4; static lean_object* l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_toJsonCancelParams____x40_Lean_Data_Lsp_Basic___hyg_100____closed__6; LEAN_EXPORT lean_object* l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonTextDocumentPositionParams____x40_Lean_Data_Lsp_Basic___hyg_5568_(lean_object*); lean_object* l_Lean_RBNode_setBlack___rarg(lean_object*); static lean_object* l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_toJsonCancelParams____x40_Lean_Data_Lsp_Basic___hyg_100____closed__5; static lean_object* l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonDeleteFile____x40_Lean_Data_Lsp_Basic___hyg_4050____closed__5; LEAN_EXPORT lean_object* l_Lean_Lsp_instFromJsonChangeAnnotation; static lean_object* l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonVersionedTextDocumentIdentifier____x40_Lean_Data_Lsp_Basic___hyg_2545____closed__9; LEAN_EXPORT lean_object* l_Lean_Lsp_WorkspaceEdit_ofTextDocumentEdit(lean_object*); LEAN_EXPORT lean_object* l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonLocationLink____x40_Lean_Data_Lsp_Basic___hyg_1529_(lean_object*); LEAN_EXPORT lean_object* l_Lean_Lsp_instToJsonWorkDoneProgressOptions; LEAN_EXPORT lean_object* l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_beqPosition____x40_Lean_Data_Lsp_Basic___hyg_251____boxed(lean_object*, lean_object*); static lean_object* l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonCreateFile____x40_Lean_Data_Lsp_Basic___hyg_3525____closed__3; LEAN_EXPORT lean_object* l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_toJsonCancelParams____x40_Lean_Data_Lsp_Basic___hyg_100_(lean_object*); LEAN_EXPORT lean_object* l_Lean_Lsp_instToJsonWorkDoneProgressParams; static lean_object* l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonTextEdit____x40_Lean_Data_Lsp_Basic___hyg_2082____closed__8; LEAN_EXPORT lean_object* l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_CreateFile_toJsonOptions____x40_Lean_Data_Lsp_Basic___hyg_3105_(lean_object*); static lean_object* l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonCommand____x40_Lean_Data_Lsp_Basic___hyg_1837____closed__7; static lean_object* l_Lean_Lsp_instFromJsonDocumentFilter___closed__1; LEAN_EXPORT lean_object* l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_beqRange____x40_Lean_Data_Lsp_Basic___hyg_730____boxed(lean_object*, lean_object*); lean_object* l_Lean_Json_setObjVal_x21(lean_object*, lean_object*, lean_object*); static lean_object* l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_toJsonLocationLink____x40_Lean_Data_Lsp_Basic___hyg_1456____closed__3; static lean_object* l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonVersionedTextDocumentIdentifier____x40_Lean_Data_Lsp_Basic___hyg_2545____closed__3; static lean_object* l_Lean_Lsp_instToJsonTextDocumentIdentifier___closed__1; LEAN_EXPORT lean_object* l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_toJsonWorkspaceEdit____x40_Lean_Data_Lsp_Basic___hyg_4588_(lean_object*); static lean_object* l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonVersionedTextDocumentIdentifier____x40_Lean_Data_Lsp_Basic___hyg_2545____closed__7; lean_object* l_Lean_Json_getObjValD(lean_object*, lean_object*); LEAN_EXPORT uint8_t l_Lean_Lsp_CreateFile_Options_overwrite___default; LEAN_EXPORT lean_object* l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonPosition____x40_Lean_Data_Lsp_Basic___hyg_548____boxed(lean_object*); LEAN_EXPORT lean_object* l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonWorkDoneProgressParams____x40_Lean_Data_Lsp_Basic___hyg_6868____boxed(lean_object*); LEAN_EXPORT lean_object* l_Lean_RBNode_ins___at___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonWorkspaceEdit____x40_Lean_Data_Lsp_Basic___hyg_4660____spec__3(lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonCreateFile____x40_Lean_Data_Lsp_Basic___hyg_3525____boxed(lean_object*); LEAN_EXPORT lean_object* l_Lean_Json_getObjValAs_x3f___at___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonWorkspaceEdit____x40_Lean_Data_Lsp_Basic___hyg_4660____spec__6(lean_object*, lean_object*); static lean_object* l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonRenameFile____x40_Lean_Data_Lsp_Basic___hyg_3781____closed__4; LEAN_EXPORT lean_object* l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonTextDocumentIdentifier____x40_Lean_Data_Lsp_Basic___hyg_2414____boxed(lean_object*); LEAN_EXPORT lean_object* l_Lean_Lsp_instHashablePosition; static lean_object* l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_DeleteFile_toJsonOptions____x40_Lean_Data_Lsp_Basic___hyg_3285____closed__2; LEAN_EXPORT lean_object* l_Lean_Lsp_instOrdRange; static lean_object* l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonTextEdit____x40_Lean_Data_Lsp_Basic___hyg_2082____closed__1; LEAN_EXPORT lean_object* l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonCancelParams____x40_Lean_Data_Lsp_Basic___hyg_144_(lean_object*); LEAN_EXPORT lean_object* l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonWorkspaceEdit____x40_Lean_Data_Lsp_Basic___hyg_4660_(lean_object*); static lean_object* l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonLocationLink____x40_Lean_Data_Lsp_Basic___hyg_1529____closed__7; static lean_object* l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonRange____x40_Lean_Data_Lsp_Basic___hyg_916____closed__11; static lean_object* l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonWorkDoneProgressParams____x40_Lean_Data_Lsp_Basic___hyg_6868____closed__3; LEAN_EXPORT lean_object* l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonWorkDoneProgressOptions____x40_Lean_Data_Lsp_Basic___hyg_7087____boxed(lean_object*); static lean_object* l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonCancelParams____x40_Lean_Data_Lsp_Basic___hyg_144____closed__1; LEAN_EXPORT lean_object* l_Lean_Lsp_instFromJsonCancelParams; LEAN_EXPORT lean_object* l_Lean_Json_getObjValAs_x3f___at___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonTextDocumentEdit____x40_Lean_Data_Lsp_Basic___hyg_2731____spec__1(lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Lsp_instFromJsonWorkspaceEdit; LEAN_EXPORT uint8_t l_Lean_Lsp_ChangeAnnotation_needsConfirmation___default; static lean_object* l_Lean_Lsp_instToJsonDocumentChange___closed__1; static lean_object* l_Lean_Lsp_instFromJsonWorkDoneProgressParams___closed__1; static lean_object* l_Lean_Lsp_instToJsonWorkspaceEdit___closed__1; static lean_object* l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonVersionedTextDocumentIdentifier____x40_Lean_Data_Lsp_Basic___hyg_2545____closed__6; LEAN_EXPORT lean_object* l_Lean_Lsp_instFromJsonTextDocumentPositionParams; LEAN_EXPORT lean_object* l_Lean_Lsp_instToJsonWorkDoneProgressBegin; static lean_object* l_Lean_Lsp_instFromJsonTextDocumentItem___closed__1; LEAN_EXPORT lean_object* l_Lean_Lsp_instCoeTextEditTextEditBatch(lean_object*); static lean_object* l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonRange____x40_Lean_Data_Lsp_Basic___hyg_916____closed__12; LEAN_EXPORT lean_object* l_Lean_Json_getObjValAs_x3f___at___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonWorkDoneProgressParams____x40_Lean_Data_Lsp_Basic___hyg_6868____spec__1___boxed(lean_object*, lean_object*); LEAN_EXPORT lean_object* l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonPartialResultParams____x40_Lean_Data_Lsp_Basic___hyg_6975____boxed(lean_object*); static lean_object* l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonDocumentFilter____x40_Lean_Data_Lsp_Basic___hyg_5792____closed__5; LEAN_EXPORT lean_object* l_Lean_Json_opt___at___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_toJsonCreateFile____x40_Lean_Data_Lsp_Basic___hyg_3473____spec__1___boxed(lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Json_getObjValAs_x3f___at___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonTextDocumentEdit____x40_Lean_Data_Lsp_Basic___hyg_2731____spec__2___boxed(lean_object*, lean_object*); LEAN_EXPORT lean_object* l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_toJsonWorkDoneProgressReport____x40_Lean_Data_Lsp_Basic___hyg_6600_(lean_object*); LEAN_EXPORT lean_object* l_Lean_Lsp_MarkupKind_toCtorIdx___boxed(lean_object*); static lean_object* l_Lean_Lsp_instToJsonRange___closed__1; LEAN_EXPORT lean_object* l_Lean_RBNode_foldM___at___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonWorkspaceEdit____x40_Lean_Data_Lsp_Basic___hyg_4660____spec__11___at___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonWorkspaceEdit____x40_Lean_Data_Lsp_Basic___hyg_4660____spec__12(lean_object*, lean_object*); static lean_object* l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_toJsonTextDocumentEdit____x40_Lean_Data_Lsp_Basic___hyg_2677____closed__2; static lean_object* l_Lean_Lsp_WorkDoneProgressBegin_kind___default___closed__1; static lean_object* l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonTextDocumentRegistrationOptions____x40_Lean_Data_Lsp_Basic___hyg_6125____closed__5; static lean_object* l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_toJsonLocation____x40_Lean_Data_Lsp_Basic___hyg_1263____closed__2; LEAN_EXPORT lean_object* l_Array_mapMUnsafe_map___at_Lean_Lsp_instToJsonDocumentSelector___spec__1___boxed(lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Lsp_instFromJsonMarkupKind(lean_object*); static lean_object* l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonDocumentFilter____x40_Lean_Data_Lsp_Basic___hyg_5792____closed__14; static lean_object* l_Lean_Lsp_instToJsonDocumentChange___closed__3; static lean_object* l_Lean_Lsp_instToJsonMarkupKind___closed__2; LEAN_EXPORT lean_object* l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonTextDocumentEdit____x40_Lean_Data_Lsp_Basic___hyg_2731_(lean_object*); LEAN_EXPORT lean_object* l_Lean_Lsp_instToStringPosition(lean_object*); LEAN_EXPORT lean_object* l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_toJsonChangeAnnotation____x40_Lean_Data_Lsp_Basic___hyg_2875_(lean_object*); static lean_object* l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonMarkupContent____x40_Lean_Data_Lsp_Basic___hyg_6368____closed__9; static lean_object* l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonRange____x40_Lean_Data_Lsp_Basic___hyg_916____closed__10; static lean_object* l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonCancelParams____x40_Lean_Data_Lsp_Basic___hyg_144____closed__9; static lean_object* l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonRenameFile____x40_Lean_Data_Lsp_Basic___hyg_3781____closed__11; LEAN_EXPORT lean_object* l_Lean_Json_opt___at___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_toJsonTextEdit____x40_Lean_Data_Lsp_Basic___hyg_2023____spec__1(lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Lsp_instFromJsonCreateFile; static lean_object* l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonTextEdit____x40_Lean_Data_Lsp_Basic___hyg_2082____closed__2; static lean_object* l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonRange____x40_Lean_Data_Lsp_Basic___hyg_916____closed__1; LEAN_EXPORT lean_object* l_Lean_Lsp_instFromJsonLocationLink; LEAN_EXPORT lean_object* l_Lean_Lsp_instToJsonWorkspaceEdit; static lean_object* l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonTextDocumentItem____x40_Lean_Data_Lsp_Basic___hyg_5313____closed__14; static lean_object* l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonCancelParams____x40_Lean_Data_Lsp_Basic___hyg_144____closed__3; LEAN_EXPORT lean_object* l_Lean_Lsp_instAppendTextEditBatch; LEAN_EXPORT lean_object* l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonTextDocumentRegistrationOptions____x40_Lean_Data_Lsp_Basic___hyg_6125____boxed(lean_object*); LEAN_EXPORT lean_object* l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_ordRange____x40_Lean_Data_Lsp_Basic___hyg_1022____boxed(lean_object*, lean_object*); static lean_object* l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonVersionedTextDocumentIdentifier____x40_Lean_Data_Lsp_Basic___hyg_2545____closed__10; static lean_object* l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonRenameFile____x40_Lean_Data_Lsp_Basic___hyg_3781____closed__12; static lean_object* l_Lean_Lsp_DeleteFile_instFromJsonOptions___closed__1; static lean_object* l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonDeleteFile____x40_Lean_Data_Lsp_Basic___hyg_4050____closed__6; static lean_object* l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonChangeAnnotation____x40_Lean_Data_Lsp_Basic___hyg_2933____closed__13; LEAN_EXPORT lean_object* l_Lean_Json_getObjValAs_x3f___at___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonLocation____x40_Lean_Data_Lsp_Basic___hyg_1314____spec__2___boxed(lean_object*, lean_object*); LEAN_EXPORT lean_object* l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonTextDocumentItem____x40_Lean_Data_Lsp_Basic___hyg_5313_(lean_object*); static lean_object* l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonLocationLink____x40_Lean_Data_Lsp_Basic___hyg_1529____closed__1; static lean_object* l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_toJsonPosition____x40_Lean_Data_Lsp_Basic___hyg_497____closed__2; LEAN_EXPORT uint8_t l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_beqCancelParams____x40_Lean_Data_Lsp_Basic___hyg_27_(lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Lsp_instFromJsonDeleteFile; static lean_object* l_Lean_Lsp_instToJsonWorkDoneProgressParams___closed__1; static lean_object* l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonCancelParams____x40_Lean_Data_Lsp_Basic___hyg_144____closed__10; LEAN_EXPORT lean_object* l_Lean_RBNode_insert___at___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonWorkspaceEdit____x40_Lean_Data_Lsp_Basic___hyg_4660____spec__9(lean_object*, lean_object*, lean_object*); static lean_object* l_Lean_Lsp_instToJsonTextDocumentEdit___closed__1; static lean_object* l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonStaticRegistrationOptions____x40_Lean_Data_Lsp_Basic___hyg_6012____closed__2; static lean_object* l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonTextDocumentItem____x40_Lean_Data_Lsp_Basic___hyg_5313____closed__16; static lean_object* l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_toJsonCommand____x40_Lean_Data_Lsp_Basic___hyg_1757____closed__1; LEAN_EXPORT lean_object* l_Lean_Lsp_CreateFile_annotationId_x3f___default; static lean_object* l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonCommand____x40_Lean_Data_Lsp_Basic___hyg_1837____closed__11; static lean_object* l_Lean_Lsp_WorkDoneProgressReport_kind___default___closed__1; LEAN_EXPORT lean_object* l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_toJsonProgressParams____x40_Lean_Data_Lsp_Basic___hyg_6503____rarg(lean_object*, lean_object*); LEAN_EXPORT uint64_t l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_hashRange____x40_Lean_Data_Lsp_Basic___hyg_821_(lean_object*); LEAN_EXPORT uint8_t l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_beqRange____x40_Lean_Data_Lsp_Basic___hyg_730_(lean_object*, lean_object*); static lean_object* l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonTextDocumentItem____x40_Lean_Data_Lsp_Basic___hyg_5313____closed__6; static lean_object* l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonPartialResultParams____x40_Lean_Data_Lsp_Basic___hyg_6975____closed__1; LEAN_EXPORT lean_object* l_Array_mapMUnsafe_map___at_Lean_Lsp_instFromJsonDocumentSelector___spec__1___boxed(lean_object*, lean_object*, lean_object*); static lean_object* l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonMarkupContent____x40_Lean_Data_Lsp_Basic___hyg_6368____closed__11; LEAN_EXPORT lean_object* l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_toJsonWorkDoneProgressEnd____x40_Lean_Data_Lsp_Basic___hyg_6783_(lean_object*); lean_object* l_Lean_Name_str___override(lean_object*, lean_object*); static lean_object* l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonDocumentFilter____x40_Lean_Data_Lsp_Basic___hyg_5792____closed__13; LEAN_EXPORT lean_object* l_Lean_RBNode_ins___at___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonWorkspaceEdit____x40_Lean_Data_Lsp_Basic___hyg_4660____spec__10(lean_object*, lean_object*, lean_object*); static lean_object* l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonTextDocumentRegistrationOptions____x40_Lean_Data_Lsp_Basic___hyg_6125____closed__4; LEAN_EXPORT lean_object* l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_toJsonWorkDoneProgressParams____x40_Lean_Data_Lsp_Basic___hyg_6839____boxed(lean_object*); LEAN_EXPORT lean_object* l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_ordPosition____x40_Lean_Data_Lsp_Basic___hyg_342____boxed(lean_object*, lean_object*); static lean_object* l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_toJsonLocationLink____x40_Lean_Data_Lsp_Basic___hyg_1456____closed__2; static lean_object* l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonCancelParams____x40_Lean_Data_Lsp_Basic___hyg_144____closed__7; LEAN_EXPORT lean_object* l_Lean_Lsp_instToJsonPartialResultParams; LEAN_EXPORT lean_object* l_Lean_Lsp_instInhabitedCancelParams; static lean_object* l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonDeleteFile____x40_Lean_Data_Lsp_Basic___hyg_4050____closed__9; static lean_object* l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonApplyWorkspaceEditParams____x40_Lean_Data_Lsp_Basic___hyg_5092____closed__8; static lean_object* l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonTextDocumentEdit____x40_Lean_Data_Lsp_Basic___hyg_2731____closed__10; LEAN_EXPORT lean_object* l_Lean_Lsp_MarkupKind_noConfusion(lean_object*); LEAN_EXPORT lean_object* l_Lean_Json_getObjValAs_x3f___at___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonCommand____x40_Lean_Data_Lsp_Basic___hyg_1837____spec__1(lean_object*, lean_object*); static lean_object* l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonPosition____x40_Lean_Data_Lsp_Basic___hyg_548____closed__11; LEAN_EXPORT lean_object* l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_beqCancelParams____x40_Lean_Data_Lsp_Basic___hyg_27____boxed(lean_object*, lean_object*); static lean_object* l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonCommand____x40_Lean_Data_Lsp_Basic___hyg_1837____closed__2; static lean_object* l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonDocumentFilter____x40_Lean_Data_Lsp_Basic___hyg_5792____closed__9; LEAN_EXPORT lean_object* l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_toJsonWorkDoneProgressEnd____x40_Lean_Data_Lsp_Basic___hyg_6783____boxed(lean_object*); static lean_object* l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_CreateFile_fromJsonOptions____x40_Lean_Data_Lsp_Basic___hyg_3155____closed__9; static lean_object* l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonCreateFile____x40_Lean_Data_Lsp_Basic___hyg_3525____closed__4; static lean_object* l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonTextDocumentIdentifier____x40_Lean_Data_Lsp_Basic___hyg_2414____closed__3; static lean_object* l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonStaticRegistrationOptions____x40_Lean_Data_Lsp_Basic___hyg_6012____closed__7; LEAN_EXPORT lean_object* l_Lean_Lsp_instToJsonDocumentFilter; static lean_object* l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonChangeAnnotation____x40_Lean_Data_Lsp_Basic___hyg_2933____closed__10; LEAN_EXPORT lean_object* l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_toJsonWorkDoneProgressBegin____x40_Lean_Data_Lsp_Basic___hyg_6684_(lean_object*); LEAN_EXPORT lean_object* l_Lean_Lsp_Command_arguments_x3f___default; LEAN_EXPORT lean_object* l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonWorkDoneProgressOptions____x40_Lean_Data_Lsp_Basic___hyg_7087_(lean_object*); LEAN_EXPORT lean_object* l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_CreateFile_fromJsonOptions____x40_Lean_Data_Lsp_Basic___hyg_3155_(lean_object*); LEAN_EXPORT lean_object* l_Lean_Lsp_MarkupKind_noConfusion___rarg___lambda__1(lean_object*); static lean_object* l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonStaticRegistrationOptions____x40_Lean_Data_Lsp_Basic___hyg_6012____closed__3; LEAN_EXPORT lean_object* l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonTextEdit____x40_Lean_Data_Lsp_Basic___hyg_2082____boxed(lean_object*); LEAN_EXPORT lean_object* l_Lean_Lsp_instFromJsonPartialResultParams; static lean_object* l_Lean_Lsp_CreateFile_instFromJsonOptions___closed__1; LEAN_EXPORT lean_object* l_Lean_Lsp_instFromJsonMarkupContent; LEAN_EXPORT lean_object* l_Lean_Lsp_instFromJsonVersionedTextDocumentIdentifier; static lean_object* l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonTextDocumentRegistrationOptions____x40_Lean_Data_Lsp_Basic___hyg_6125____closed__2; LEAN_EXPORT lean_object* l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonTextDocumentRegistrationOptions____x40_Lean_Data_Lsp_Basic___hyg_6125_(lean_object*); static lean_object* l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonChangeAnnotation____x40_Lean_Data_Lsp_Basic___hyg_2933____closed__9; static lean_object* l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonWorkDoneProgressOptions____x40_Lean_Data_Lsp_Basic___hyg_7087____closed__2; LEAN_EXPORT lean_object* l_Lean_Lsp_WorkDoneProgressReport_percentage_x3f___default; static lean_object* l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_toJsonCommand____x40_Lean_Data_Lsp_Basic___hyg_1757____closed__2; LEAN_EXPORT lean_object* l_Lean_Lsp_WorkspaceEdit_instEmptyCollectionWorkspaceEdit; LEAN_EXPORT lean_object* l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_hashPosition____x40_Lean_Data_Lsp_Basic___hyg_449____boxed(lean_object*); LEAN_EXPORT lean_object* l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_toJsonTextDocumentIdentifier____x40_Lean_Data_Lsp_Basic___hyg_2378_(lean_object*); static lean_object* l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonPosition____x40_Lean_Data_Lsp_Basic___hyg_548____closed__2; LEAN_EXPORT lean_object* l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_toJsonWorkDoneProgressOptions____x40_Lean_Data_Lsp_Basic___hyg_7051____boxed(lean_object*); LEAN_EXPORT lean_object* l_Lean_Lsp_instToJsonVersionedTextDocumentIdentifier; LEAN_EXPORT uint8_t l_Lean_Lsp_DeleteFile_Options_recursive___default; static lean_object* l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonLocation____x40_Lean_Data_Lsp_Basic___hyg_1314____closed__1; LEAN_EXPORT lean_object* l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_toJsonLocationLink____x40_Lean_Data_Lsp_Basic___hyg_1456_(lean_object*); LEAN_EXPORT lean_object* l_Lean_Lsp_instFromJsonMarkupKind___boxed(lean_object*); static lean_object* l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonTextDocumentItem____x40_Lean_Data_Lsp_Basic___hyg_5313____closed__1; static lean_object* l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonLocation____x40_Lean_Data_Lsp_Basic___hyg_1314____closed__11; static lean_object* l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonRenameFile____x40_Lean_Data_Lsp_Basic___hyg_3781____closed__7; static lean_object* l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonLocationLink____x40_Lean_Data_Lsp_Basic___hyg_1529____closed__15; static lean_object* l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonTextDocumentEdit____x40_Lean_Data_Lsp_Basic___hyg_2731____closed__4; static lean_object* l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonTextDocumentIdentifier____x40_Lean_Data_Lsp_Basic___hyg_2414____closed__4; LEAN_EXPORT lean_object* l_Lean_Lsp_instLEPosition; LEAN_EXPORT lean_object* l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonPosition____x40_Lean_Data_Lsp_Basic___hyg_548_(lean_object*); lean_object* l_Array_append___rarg(lean_object*, lean_object*); static lean_object* l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_CreateFile_fromJsonOptions____x40_Lean_Data_Lsp_Basic___hyg_3155____closed__11; LEAN_EXPORT lean_object* l_Lean_Json_opt___at___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_toJsonWorkDoneProgressParams____x40_Lean_Data_Lsp_Basic___hyg_6839____spec__1___boxed(lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_RBNode_map___at___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_toJsonWorkspaceEdit____x40_Lean_Data_Lsp_Basic___hyg_4588____spec__1(lean_object*); static lean_object* l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonChangeAnnotation____x40_Lean_Data_Lsp_Basic___hyg_2933____closed__2; static lean_object* l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_toJsonWorkDoneProgressReport____x40_Lean_Data_Lsp_Basic___hyg_6600____closed__1; LEAN_EXPORT lean_object* l_Lean_Lsp_instBEqPosition; LEAN_EXPORT lean_object* l_Lean_Json_getObjValAs_x3f___at___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonLocationLink____x40_Lean_Data_Lsp_Basic___hyg_1529____spec__1(lean_object*, lean_object*); static lean_object* l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonTextDocumentPositionParams____x40_Lean_Data_Lsp_Basic___hyg_5568____closed__1; static lean_object* l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonVersionedTextDocumentIdentifier____x40_Lean_Data_Lsp_Basic___hyg_2545____closed__2; LEAN_EXPORT lean_object* l_Lean_Lsp_CreateFile_instToJsonOptions; static lean_object* l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonTextDocumentEdit____x40_Lean_Data_Lsp_Basic___hyg_2731____closed__5; static lean_object* l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_toJsonMarkupContent____x40_Lean_Data_Lsp_Basic___hyg_6318____closed__4; static lean_object* l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_toJsonTextEdit____x40_Lean_Data_Lsp_Basic___hyg_2023____closed__2; LEAN_EXPORT lean_object* l_Lean_Json_getObjValAs_x3f___at___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonLocationLink____x40_Lean_Data_Lsp_Basic___hyg_1529____spec__1___boxed(lean_object*, lean_object*); static lean_object* l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonDocumentFilter____x40_Lean_Data_Lsp_Basic___hyg_5792____closed__2; static lean_object* l_Lean_Json_getObjValAs_x3f___at___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonLocationLink____x40_Lean_Data_Lsp_Basic___hyg_1529____spec__1___closed__1; static lean_object* l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonCommand____x40_Lean_Data_Lsp_Basic___hyg_1837____closed__16; LEAN_EXPORT lean_object* l_Lean_Json_getObjValAs_x3f___at___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonVersionedTextDocumentIdentifier____x40_Lean_Data_Lsp_Basic___hyg_2545____spec__1(lean_object*, lean_object*); LEAN_EXPORT lean_object* l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonLocation____x40_Lean_Data_Lsp_Basic___hyg_1314____boxed(lean_object*); LEAN_EXPORT lean_object* l_Lean_Json_getObjValAs_x3f___at___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonLocation____x40_Lean_Data_Lsp_Basic___hyg_1314____spec__1(lean_object*, lean_object*); static lean_object* l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_toJsonWorkDoneProgressParams____x40_Lean_Data_Lsp_Basic___hyg_6839____closed__1; LEAN_EXPORT lean_object* l_Lean_Json_getObjValAs_x3f___at___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonTextDocumentPositionParams____x40_Lean_Data_Lsp_Basic___hyg_5568____spec__1___boxed(lean_object*, lean_object*); static lean_object* l_Lean_Lsp_instToJsonApplyWorkspaceEditParams___closed__1; LEAN_EXPORT lean_object* l_Lean_Lsp_RenameFile_annotationId_x3f___default; LEAN_EXPORT lean_object* l_Array_mapMUnsafe_map___at_Lean_Lsp_instToJsonDocumentSelector___spec__1(size_t, size_t, lean_object*); static lean_object* l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonRange____x40_Lean_Data_Lsp_Basic___hyg_916____closed__8; static lean_object* l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonWorkspaceEdit____x40_Lean_Data_Lsp_Basic___hyg_4660____closed__14; static lean_object* l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonRenameFile____x40_Lean_Data_Lsp_Basic___hyg_3781____closed__13; static lean_object* l_Lean_Lsp_instToJsonDeleteFile___closed__1; static lean_object* l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonRange____x40_Lean_Data_Lsp_Basic___hyg_916____closed__7; static lean_object* l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonTextDocumentItem____x40_Lean_Data_Lsp_Basic___hyg_5313____closed__2; static lean_object* l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonPartialResultParams____x40_Lean_Data_Lsp_Basic___hyg_6975____closed__4; LEAN_EXPORT lean_object* l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_toJsonDocumentFilter____x40_Lean_Data_Lsp_Basic___hyg_5749_(lean_object*); LEAN_EXPORT lean_object* l_Lean_Lsp_instFromJsonTextEdit; LEAN_EXPORT lean_object* l_Lean_Lsp_instFromJsonTextDocumentRegistrationOptions; static lean_object* l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonCreateFile____x40_Lean_Data_Lsp_Basic___hyg_3525____closed__6; static lean_object* l_Lean_Lsp_instFromJsonMarkupKind___closed__5; static lean_object* l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_DeleteFile_fromJsonOptions____x40_Lean_Data_Lsp_Basic___hyg_3335____closed__12; static lean_object* l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonLocationLink____x40_Lean_Data_Lsp_Basic___hyg_1529____closed__2; static lean_object* l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonWorkDoneProgressParams____x40_Lean_Data_Lsp_Basic___hyg_6868____closed__4; static lean_object* l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_toJsonCancelParams____x40_Lean_Data_Lsp_Basic___hyg_100____closed__3; LEAN_EXPORT lean_object* l_Lean_Lsp_RenameFile_options_x3f___default; LEAN_EXPORT lean_object* l_Lean_RBNode_map___at___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_toJsonWorkspaceEdit____x40_Lean_Data_Lsp_Basic___hyg_4588____spec__3(lean_object*); LEAN_EXPORT lean_object* l_Lean_Json_getObjValAs_x3f___at___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonMarkupContent____x40_Lean_Data_Lsp_Basic___hyg_6368____spec__1(lean_object*, lean_object*); static lean_object* l_Lean_Lsp_instFromJsonStaticRegistrationOptions___closed__1; LEAN_EXPORT lean_object* l_Lean_RBNode_insert___at___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonWorkspaceEdit____x40_Lean_Data_Lsp_Basic___hyg_4660____spec__2(lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Array_mapMUnsafe_map___at_Lean_Lsp_instToJsonTextEditBatch___spec__1(size_t, size_t, lean_object*); LEAN_EXPORT lean_object* l_Lean_Lsp_instToJsonMarkupKind(uint8_t); static lean_object* l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_toJsonTextEdit____x40_Lean_Data_Lsp_Basic___hyg_2023____closed__1; LEAN_EXPORT lean_object* l_Lean_Json_getObjValAs_x3f___at___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonLocation____x40_Lean_Data_Lsp_Basic___hyg_1314____spec__2(lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Lsp_instToJsonDeleteFile; LEAN_EXPORT lean_object* l_Lean_Lsp_WorkDoneProgressEnd_message_x3f___default; LEAN_EXPORT lean_object* l_Lean_Lsp_WorkspaceEdit_instAppendWorkspaceEdit___lambda__2(lean_object*, lean_object*, lean_object*); static lean_object* l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonTextEdit____x40_Lean_Data_Lsp_Basic___hyg_2082____closed__3; static lean_object* l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonTextDocumentPositionParams____x40_Lean_Data_Lsp_Basic___hyg_5568____closed__8; static lean_object* l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonLocation____x40_Lean_Data_Lsp_Basic___hyg_1314____closed__3; LEAN_EXPORT lean_object* l_Lean_Lsp_instBEqRange; static lean_object* l_Lean_Lsp_instFromJsonTextDocumentIdentifier___closed__1; static lean_object* l_Lean_Lsp_CreateFile_instToJsonOptions___closed__1; static lean_object* l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonWorkspaceEdit____x40_Lean_Data_Lsp_Basic___hyg_4660____closed__5; LEAN_EXPORT lean_object* l_Array_mapMUnsafe_map___at_Lean_Lsp_instToJsonTextEditBatch___spec__1___boxed(lean_object*, lean_object*, lean_object*); static lean_object* l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonCommand____x40_Lean_Data_Lsp_Basic___hyg_1837____closed__9; static lean_object* l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonTextDocumentEdit____x40_Lean_Data_Lsp_Basic___hyg_2731____closed__2; static lean_object* l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonTextDocumentPositionParams____x40_Lean_Data_Lsp_Basic___hyg_5568____closed__2; static lean_object* l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonRange____x40_Lean_Data_Lsp_Basic___hyg_916____closed__4; static lean_object* l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonApplyWorkspaceEditParams____x40_Lean_Data_Lsp_Basic___hyg_5092____closed__13; static lean_object* l_Lean_Lsp_instToJsonDocumentChange___closed__6; static lean_object* l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonTextDocumentEdit____x40_Lean_Data_Lsp_Basic___hyg_2731____closed__11; static lean_object* l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonDocumentFilter____x40_Lean_Data_Lsp_Basic___hyg_5792____closed__16; LEAN_EXPORT lean_object* l_Lean_Lsp_instToJsonProgressParams___rarg(lean_object*); LEAN_EXPORT lean_object* l_Lean_Lsp_instToJsonStaticRegistrationOptions; static lean_object* l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonCreateFile____x40_Lean_Data_Lsp_Basic___hyg_3525____closed__8; static lean_object* l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonTextEdit____x40_Lean_Data_Lsp_Basic___hyg_2082____closed__6; LEAN_EXPORT lean_object* l_Lean_Json_opt___at___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_toJsonVersionedTextDocumentIdentifier____x40_Lean_Data_Lsp_Basic___hyg_2500____spec__1(lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Lsp_instLTPosition; static lean_object* l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_toJsonCancelParams____x40_Lean_Data_Lsp_Basic___hyg_100____closed__1; static lean_object* l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonRange____x40_Lean_Data_Lsp_Basic___hyg_916____closed__6; static lean_object* l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonTextDocumentEdit____x40_Lean_Data_Lsp_Basic___hyg_2731____closed__12; uint8_t lean_nat_dec_eq(lean_object*, lean_object*); static lean_object* l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonPosition____x40_Lean_Data_Lsp_Basic___hyg_548____closed__9; LEAN_EXPORT lean_object* l_Lean_Lsp_instFromJsonDocumentChange___boxed(lean_object*); static lean_object* l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonDocumentFilter____x40_Lean_Data_Lsp_Basic___hyg_5792____closed__1; static lean_object* l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonWorkspaceEdit____x40_Lean_Data_Lsp_Basic___hyg_4660____closed__8; LEAN_EXPORT lean_object* l_Lean_Lsp_instFromJsonStaticRegistrationOptions; static lean_object* l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_CreateFile_fromJsonOptions____x40_Lean_Data_Lsp_Basic___hyg_3155____closed__7; static lean_object* l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonTextDocumentRegistrationOptions____x40_Lean_Data_Lsp_Basic___hyg_6125____closed__9; uint8_t lean_nat_dec_lt(lean_object*, lean_object*); LEAN_EXPORT lean_object* l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_toJsonWorkDoneProgressOptions____x40_Lean_Data_Lsp_Basic___hyg_7051_(uint8_t); static lean_object* l_Lean_Lsp_instFromJsonLocation___closed__1; static lean_object* l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonChangeAnnotation____x40_Lean_Data_Lsp_Basic___hyg_2933____closed__8; static lean_object* l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonMarkupContent____x40_Lean_Data_Lsp_Basic___hyg_6368____closed__10; static lean_object* l_Lean_Lsp_instFromJsonLocationLink___closed__1; static lean_object* l_Lean_Lsp_instInhabitedPosition___closed__1; LEAN_EXPORT lean_object* l_Lean_Lsp_DocumentFilter_scheme_x3f___default; static lean_object* l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonLocationLink____x40_Lean_Data_Lsp_Basic___hyg_1529____closed__14; static lean_object* l_Lean_Lsp_instFromJsonPosition___closed__1; static lean_object* l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonDocumentFilter____x40_Lean_Data_Lsp_Basic___hyg_5792____closed__7; static lean_object* l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_toJsonTextDocumentEdit____x40_Lean_Data_Lsp_Basic___hyg_2677____closed__1; static lean_object* l_Lean_Lsp_instFromJsonTextDocumentRegistrationOptions___closed__1; LEAN_EXPORT lean_object* l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_toJsonDeleteFile____x40_Lean_Data_Lsp_Basic___hyg_3998____boxed(lean_object*); static lean_object* l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonCommand____x40_Lean_Data_Lsp_Basic___hyg_1837____closed__5; static lean_object* l_Lean_Lsp_instInhabitedLocation___closed__1; static lean_object* l_Lean_Lsp_instFromJsonMarkupContent___closed__1; LEAN_EXPORT uint8_t l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_beqLocation____x40_Lean_Data_Lsp_Basic___hyg_1168_(lean_object*, lean_object*); static lean_object* l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonCancelParams____x40_Lean_Data_Lsp_Basic___hyg_144____closed__11; static lean_object* l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonLocation____x40_Lean_Data_Lsp_Basic___hyg_1314____closed__12; static lean_object* l_Lean_Lsp_instToJsonTextDocumentRegistrationOptions___closed__1; static lean_object* l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonCommand____x40_Lean_Data_Lsp_Basic___hyg_1837____closed__4; LEAN_EXPORT lean_object* l_Lean_Lsp_WorkspaceEdit_instAppendWorkspaceEdit___lambda__1___boxed(lean_object*, lean_object*); static lean_object* l_Lean_Lsp_instFromJsonWorkDoneProgressOptions___closed__1; static lean_object* l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonLocationLink____x40_Lean_Data_Lsp_Basic___hyg_1529____closed__11; LEAN_EXPORT lean_object* l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonCreateFile____x40_Lean_Data_Lsp_Basic___hyg_3525_(lean_object*); LEAN_EXPORT lean_object* l_Lean_Lsp_DeleteFile_instFromJsonOptions; static lean_object* l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonStaticRegistrationOptions____x40_Lean_Data_Lsp_Basic___hyg_6012____closed__9; static lean_object* l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonCommand____x40_Lean_Data_Lsp_Basic___hyg_1837____closed__13; LEAN_EXPORT lean_object* l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_toJsonPosition____x40_Lean_Data_Lsp_Basic___hyg_497_(lean_object*); LEAN_EXPORT uint8_t l_Lean_Lsp_CreateFile_Options_ignoreIfExists___default; LEAN_EXPORT lean_object* l_Lean_Lsp_TextDocumentRegistrationOptions_documentSelector_x3f___default; static lean_object* l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_toJsonWorkDoneProgressOptions____x40_Lean_Data_Lsp_Basic___hyg_7051____closed__1; LEAN_EXPORT lean_object* l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_toJsonTextEdit____x40_Lean_Data_Lsp_Basic___hyg_2023_(lean_object*); static lean_object* l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonApplyWorkspaceEditParams____x40_Lean_Data_Lsp_Basic___hyg_5092____closed__7; LEAN_EXPORT lean_object* l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_beqLocation____x40_Lean_Data_Lsp_Basic___hyg_1168____boxed(lean_object*, lean_object*); LEAN_EXPORT lean_object* l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_toJsonProgressParams____x40_Lean_Data_Lsp_Basic___hyg_6503_(lean_object*); LEAN_EXPORT lean_object* l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_toJsonRange____x40_Lean_Data_Lsp_Basic___hyg_866_(lean_object*); LEAN_EXPORT lean_object* l_Lean_Json_getObjValAs_x3f___at___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonDeleteFile____x40_Lean_Data_Lsp_Basic___hyg_4050____spec__1(lean_object*, lean_object*); static lean_object* l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonApplyWorkspaceEditParams____x40_Lean_Data_Lsp_Basic___hyg_5092____closed__1; static lean_object* l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonChangeAnnotation____x40_Lean_Data_Lsp_Basic___hyg_2933____closed__5; LEAN_EXPORT lean_object* l_Lean_Lsp_instInhabitedRange; static lean_object* l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonCommand____x40_Lean_Data_Lsp_Basic___hyg_1837____closed__8; LEAN_EXPORT lean_object* l_Array_mapMUnsafe_map___at___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonWorkspaceEdit____x40_Lean_Data_Lsp_Basic___hyg_4660____spec__7___boxed(lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Json_getObjValAs_x3f___at___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonTextDocumentRegistrationOptions____x40_Lean_Data_Lsp_Basic___hyg_6125____spec__1___boxed(lean_object*, lean_object*); static lean_object* l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_CreateFile_fromJsonOptions____x40_Lean_Data_Lsp_Basic___hyg_3155____closed__2; static lean_object* l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonApplyWorkspaceEditParams____x40_Lean_Data_Lsp_Basic___hyg_5092____closed__9; static lean_object* l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonStaticRegistrationOptions____x40_Lean_Data_Lsp_Basic___hyg_6012____closed__4; static lean_object* l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonApplyWorkspaceEditParams____x40_Lean_Data_Lsp_Basic___hyg_5092____closed__2; LEAN_EXPORT lean_object* l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonMarkupContent____x40_Lean_Data_Lsp_Basic___hyg_6368____boxed(lean_object*); uint8_t l___private_Lean_Data_JsonRpc_0__Lean_JsonRpc_beqRequestID____x40_Lean_Data_JsonRpc___hyg_34_(lean_object*, lean_object*); LEAN_EXPORT lean_object* l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonPartialResultParams____x40_Lean_Data_Lsp_Basic___hyg_6975_(lean_object*); static lean_object* l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonLocation____x40_Lean_Data_Lsp_Basic___hyg_1314____closed__5; static lean_object* l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonWorkspaceEdit____x40_Lean_Data_Lsp_Basic___hyg_4660____closed__13; LEAN_EXPORT lean_object* l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_DeleteFile_toJsonOptions____x40_Lean_Data_Lsp_Basic___hyg_3285____boxed(lean_object*); static lean_object* l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonPartialResultParams____x40_Lean_Data_Lsp_Basic___hyg_6975____closed__8; static lean_object* l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonChangeAnnotation____x40_Lean_Data_Lsp_Basic___hyg_2933____closed__16; static lean_object* l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_toJsonTextDocumentPositionParams____x40_Lean_Data_Lsp_Basic___hyg_5518____closed__1; static lean_object* l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonRenameFile____x40_Lean_Data_Lsp_Basic___hyg_3781____closed__8; LEAN_EXPORT lean_object* l_Lean_RBNode_foldM___at___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonWorkspaceEdit____x40_Lean_Data_Lsp_Basic___hyg_4660____spec__11___boxed(lean_object*, lean_object*, lean_object*); static lean_object* l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_DeleteFile_fromJsonOptions____x40_Lean_Data_Lsp_Basic___hyg_3335____closed__8; LEAN_EXPORT lean_object* l_Lean_Json_opt___at___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_toJsonWorkDoneProgressParams____x40_Lean_Data_Lsp_Basic___hyg_6839____spec__1(lean_object*, lean_object*); static lean_object* l_Lean_Lsp_instFromJsonMarkupKind___closed__4; LEAN_EXPORT lean_object* l_Lean_Lsp_instToJsonTextDocumentRegistrationOptions; static lean_object* l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_toJsonLocation____x40_Lean_Data_Lsp_Basic___hyg_1263____closed__1; LEAN_EXPORT lean_object* l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonCommand____x40_Lean_Data_Lsp_Basic___hyg_1837____boxed(lean_object*); static lean_object* l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonLocationLink____x40_Lean_Data_Lsp_Basic___hyg_1529____closed__19; LEAN_EXPORT lean_object* l_Lean_Json_getObjValAs_x3f___at___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonTextEdit____x40_Lean_Data_Lsp_Basic___hyg_2082____spec__1___boxed(lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Lsp_instLERange; static lean_object* l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonCommand____x40_Lean_Data_Lsp_Basic___hyg_1837____closed__15; static lean_object* l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonTextDocumentPositionParams____x40_Lean_Data_Lsp_Basic___hyg_5568____closed__10; LEAN_EXPORT lean_object* l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_hashRange____x40_Lean_Data_Lsp_Basic___hyg_821____boxed(lean_object*); static lean_object* l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonDocumentFilter____x40_Lean_Data_Lsp_Basic___hyg_5792____closed__10; LEAN_EXPORT lean_object* l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonStaticRegistrationOptions____x40_Lean_Data_Lsp_Basic___hyg_6012____boxed(lean_object*); static lean_object* l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonWorkspaceEdit____x40_Lean_Data_Lsp_Basic___hyg_4660____closed__10; static lean_object* l_Lean_Lsp_instBEqCancelParams___closed__1; static lean_object* l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_toJsonPartialResultParams____x40_Lean_Data_Lsp_Basic___hyg_6946____closed__1; static lean_object* l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonCreateFile____x40_Lean_Data_Lsp_Basic___hyg_3525____closed__1; LEAN_EXPORT uint8_t l_Lean_Lsp_WorkspaceEdit_instAppendWorkspaceEdit___lambda__1(lean_object*, lean_object*); lean_object* l_Lean_Json_getNat_x3f(lean_object*); static lean_object* l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonRenameFile____x40_Lean_Data_Lsp_Basic___hyg_3781____closed__3; LEAN_EXPORT lean_object* l_Lean_Lsp_ChangeAnnotation_description_x3f___default; static lean_object* l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_CreateFile_fromJsonOptions____x40_Lean_Data_Lsp_Basic___hyg_3155____closed__8; static lean_object* l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonWorkDoneProgressOptions____x40_Lean_Data_Lsp_Basic___hyg_7087____closed__1; static lean_object* l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonWorkDoneProgressParams____x40_Lean_Data_Lsp_Basic___hyg_6868____closed__2; static lean_object* l_Lean_Lsp_instToJsonDocumentChange___closed__7; LEAN_EXPORT lean_object* l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonLocationLink____x40_Lean_Data_Lsp_Basic___hyg_1529____boxed(lean_object*); static lean_object* l_Lean_Lsp_instFromJsonMarkupKind___closed__1; static lean_object* l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonVersionedTextDocumentIdentifier____x40_Lean_Data_Lsp_Basic___hyg_2545____closed__11; static lean_object* l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_CreateFile_fromJsonOptions____x40_Lean_Data_Lsp_Basic___hyg_3155____closed__13; static lean_object* l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_DeleteFile_fromJsonOptions____x40_Lean_Data_Lsp_Basic___hyg_3335____closed__10; LEAN_EXPORT lean_object* l_Lean_Lsp_instHashableRange; static lean_object* l_Lean_Lsp_instAppendTextEditBatch___closed__1; LEAN_EXPORT lean_object* l_Array_mapMUnsafe_map___at___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_toJsonWorkspaceEdit____x40_Lean_Data_Lsp_Basic___hyg_4588____spec__2(size_t, size_t, lean_object*); static lean_object* l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonLocationLink____x40_Lean_Data_Lsp_Basic___hyg_1529____closed__8; static lean_object* l_Lean_Lsp_instToJsonWorkDoneProgressEnd___closed__1; LEAN_EXPORT lean_object* l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonCommand____x40_Lean_Data_Lsp_Basic___hyg_1837_(lean_object*); static lean_object* l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonTextDocumentEdit____x40_Lean_Data_Lsp_Basic___hyg_2731____closed__9; static lean_object* l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonCommand____x40_Lean_Data_Lsp_Basic___hyg_1837____closed__17; static lean_object* l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonChangeAnnotation____x40_Lean_Data_Lsp_Basic___hyg_2933____closed__12; static lean_object* l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonCommand____x40_Lean_Data_Lsp_Basic___hyg_1837____closed__1; static lean_object* l_Lean_Lsp_instBEqPosition___closed__1; LEAN_EXPORT uint8_t l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_ordPosition____x40_Lean_Data_Lsp_Basic___hyg_342_(lean_object*, lean_object*); LEAN_EXPORT lean_object* l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonApplyWorkspaceEditParams____x40_Lean_Data_Lsp_Basic___hyg_5092_(lean_object*); static lean_object* l_Lean_Lsp_instInhabitedCancelParams___closed__2; static lean_object* l_Lean_Lsp_instToJsonRenameFile___closed__1; static lean_object* l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonTextDocumentIdentifier____x40_Lean_Data_Lsp_Basic___hyg_2414____closed__6; static lean_object* l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonPosition____x40_Lean_Data_Lsp_Basic___hyg_548____closed__6; static lean_object* l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonChangeAnnotation____x40_Lean_Data_Lsp_Basic___hyg_2933____closed__1; static lean_object* l_Lean_Lsp_instFromJsonVersionedTextDocumentIdentifier___closed__1; LEAN_EXPORT lean_object* l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_toJsonApplyWorkspaceEditParams____x40_Lean_Data_Lsp_Basic___hyg_5049_(lean_object*); static lean_object* l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonWorkspaceEdit____x40_Lean_Data_Lsp_Basic___hyg_4660____closed__4; static lean_object* l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonCreateFile____x40_Lean_Data_Lsp_Basic___hyg_3525____closed__9; LEAN_EXPORT lean_object* l_Lean_Json_getObjValAs_x3f___at___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonMarkupContent____x40_Lean_Data_Lsp_Basic___hyg_6368____spec__1___boxed(lean_object*, lean_object*); static lean_object* l_Lean_Lsp_instFromJsonWorkspaceEdit___closed__1; LEAN_EXPORT lean_object* l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_toJsonCreateFile____x40_Lean_Data_Lsp_Basic___hyg_3473_(lean_object*); static lean_object* l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonChangeAnnotation____x40_Lean_Data_Lsp_Basic___hyg_2933____closed__3; LEAN_EXPORT lean_object* l_Lean_Json_opt___at___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_toJsonLocationLink____x40_Lean_Data_Lsp_Basic___hyg_1456____spec__1(lean_object*, lean_object*); static lean_object* l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonTextDocumentRegistrationOptions____x40_Lean_Data_Lsp_Basic___hyg_6125____closed__8; LEAN_EXPORT lean_object* l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_toJsonWorkDoneProgressParams____x40_Lean_Data_Lsp_Basic___hyg_6839_(lean_object*); static lean_object* l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_toJsonProgressParams____x40_Lean_Data_Lsp_Basic___hyg_6503____rarg___closed__1; static lean_object* l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonVersionedTextDocumentIdentifier____x40_Lean_Data_Lsp_Basic___hyg_2545____closed__8; static lean_object* l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonRenameFile____x40_Lean_Data_Lsp_Basic___hyg_3781____closed__16; static lean_object* l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_DeleteFile_fromJsonOptions____x40_Lean_Data_Lsp_Basic___hyg_3335____closed__11; static lean_object* l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_DeleteFile_fromJsonOptions____x40_Lean_Data_Lsp_Basic___hyg_3335____closed__3; size_t lean_usize_add(size_t, size_t); LEAN_EXPORT uint8_t l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_beqPosition____x40_Lean_Data_Lsp_Basic___hyg_251_(lean_object*, lean_object*); static lean_object* l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonDocumentFilter____x40_Lean_Data_Lsp_Basic___hyg_5792____closed__19; static lean_object* l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonPosition____x40_Lean_Data_Lsp_Basic___hyg_548____closed__7; static lean_object* l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_toJsonWorkDoneProgressReport____x40_Lean_Data_Lsp_Basic___hyg_6600____closed__3; LEAN_EXPORT lean_object* l_Lean_Lsp_instToJsonWorkDoneProgressEnd; static lean_object* l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_toJsonTextDocumentItem____x40_Lean_Data_Lsp_Basic___hyg_5235____closed__2; static lean_object* l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonPosition____x40_Lean_Data_Lsp_Basic___hyg_548____closed__12; LEAN_EXPORT lean_object* l_Lean_Lsp_WorkspaceEdit_documentChanges___default; LEAN_EXPORT lean_object* l_Lean_Lsp_instFromJsonTextDocumentItem; static lean_object* l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonLocation____x40_Lean_Data_Lsp_Basic___hyg_1314____closed__4; static lean_object* l_Lean_Lsp_instFromJsonChangeAnnotation___closed__1; static lean_object* l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonCommand____x40_Lean_Data_Lsp_Basic___hyg_1837____closed__6; static lean_object* l_Lean_Lsp_instToJsonTextEdit___closed__1; LEAN_EXPORT lean_object* l_Lean_Lsp_instInhabitedPosition; lean_object* lean_array_uget(lean_object*, size_t); static lean_object* l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonCancelParams____x40_Lean_Data_Lsp_Basic___hyg_144____closed__8; LEAN_EXPORT lean_object* l_Lean_Lsp_MarkupKind_noConfusion___rarg___boxed(lean_object*, lean_object*, lean_object*); static lean_object* l_Lean_Lsp_instToJsonDocumentFilter___closed__1; static lean_object* l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonTextDocumentItem____x40_Lean_Data_Lsp_Basic___hyg_5313____closed__8; static lean_object* l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonWorkspaceEdit____x40_Lean_Data_Lsp_Basic___hyg_4660____closed__1; LEAN_EXPORT lean_object* l_Array_mapMUnsafe_map___at___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_toJsonWorkspaceEdit____x40_Lean_Data_Lsp_Basic___hyg_4588____spec__2___boxed(lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Lsp_DeleteFile_options_x3f___default; static lean_object* l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonTextDocumentPositionParams____x40_Lean_Data_Lsp_Basic___hyg_5568____closed__6; static lean_object* l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonTextDocumentItem____x40_Lean_Data_Lsp_Basic___hyg_5313____closed__15; static lean_object* l_Lean_Lsp_instToStringPosition___closed__3; lean_object* l_Lean_Name_mkStr4(lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonCancelParams____x40_Lean_Data_Lsp_Basic___hyg_144____closed__5; LEAN_EXPORT lean_object* l_Lean_Lsp_WorkDoneProgressEnd_kind___default; static lean_object* l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonTextDocumentRegistrationOptions____x40_Lean_Data_Lsp_Basic___hyg_6125____closed__3; LEAN_EXPORT lean_object* l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_toJsonCancelParams____x40_Lean_Data_Lsp_Basic___hyg_100____boxed(lean_object*); static lean_object* l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonDocumentFilter____x40_Lean_Data_Lsp_Basic___hyg_5792____closed__8; LEAN_EXPORT lean_object* l_Lean_Lsp_WorkspaceEdit_instAppendWorkspaceEdit(lean_object*, lean_object*); LEAN_EXPORT lean_object* l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonDeleteFile____x40_Lean_Data_Lsp_Basic___hyg_4050_(lean_object*); LEAN_EXPORT lean_object* l_Lean_Json_getObjValAs_x3f___at___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonApplyWorkspaceEditParams____x40_Lean_Data_Lsp_Basic___hyg_5092____spec__1(lean_object*, lean_object*); static lean_object* l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonDeleteFile____x40_Lean_Data_Lsp_Basic___hyg_4050____closed__2; static lean_object* l_Lean_Lsp_instToJsonChangeAnnotation___closed__1; static lean_object* l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonChangeAnnotation____x40_Lean_Data_Lsp_Basic___hyg_2933____closed__7; LEAN_EXPORT lean_object* l_Lean_Json_getObjValAs_x3f___at___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonApplyWorkspaceEditParams____x40_Lean_Data_Lsp_Basic___hyg_5092____spec__1___boxed(lean_object*, lean_object*); static lean_object* l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonPosition____x40_Lean_Data_Lsp_Basic___hyg_548____closed__10; LEAN_EXPORT lean_object* l_Lean_Lsp_instFromJsonCommand; LEAN_EXPORT lean_object* l_Lean_Lsp_instToJsonTextDocumentItem; static lean_object* l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_CreateFile_toJsonOptions____x40_Lean_Data_Lsp_Basic___hyg_3105____closed__2; lean_object* lean_string_append(lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Json_opt___at___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_toJsonDeleteFile____x40_Lean_Data_Lsp_Basic___hyg_3998____spec__1___boxed(lean_object*, lean_object*); static lean_object* l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonWorkDoneProgressOptions____x40_Lean_Data_Lsp_Basic___hyg_7087____closed__4; static lean_object* l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonDocumentFilter____x40_Lean_Data_Lsp_Basic___hyg_5792____closed__11; LEAN_EXPORT lean_object* l_Lean_Lsp_instToJsonLocationLink; static lean_object* l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonPosition____x40_Lean_Data_Lsp_Basic___hyg_548____closed__1; static lean_object* l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_DeleteFile_fromJsonOptions____x40_Lean_Data_Lsp_Basic___hyg_3335____closed__9; static lean_object* l_Lean_Lsp_instHashableRange___closed__1; lean_object* l_Lean_Json_getObjValAs_x3f___at_Lean_JsonRpc_instFromJsonMessage___spec__1(lean_object*, lean_object*); static lean_object* l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonTextDocumentRegistrationOptions____x40_Lean_Data_Lsp_Basic___hyg_6125____closed__6; static lean_object* l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonLocationLink____x40_Lean_Data_Lsp_Basic___hyg_1529____closed__4; lean_object* lean_array_get_size(lean_object*); static lean_object* l_Lean_Lsp_instToJsonWorkDoneProgressBegin___closed__1; LEAN_EXPORT lean_object* l_Lean_Lsp_instFromJsonRenameFile; static lean_object* l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonLocation____x40_Lean_Data_Lsp_Basic___hyg_1314____closed__10; static lean_object* l_Lean_Lsp_instFromJsonDeleteFile___closed__1; LEAN_EXPORT lean_object* l_Lean_Lsp_VersionedTextDocumentIdentifier_version_x3f___default; static lean_object* l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonTextEdit____x40_Lean_Data_Lsp_Basic___hyg_2082____closed__13; lean_object* l_Lean_RBNode_fold___at_Lean_RBMap_mergeBy___spec__1___rarg(lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_toJsonChangeAnnotation____x40_Lean_Data_Lsp_Basic___hyg_2875____closed__3; LEAN_EXPORT lean_object* l_Lean_Json_opt___at___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_toJsonCreateFile____x40_Lean_Data_Lsp_Basic___hyg_3473____spec__1(lean_object*, lean_object*); static lean_object* l_Lean_Lsp_instFromJsonMarkupKind___closed__2; uint8_t lean_usize_dec_lt(size_t, size_t); LEAN_EXPORT lean_object* l_Lean_Lsp_WorkDoneProgressReport_message_x3f___default; LEAN_EXPORT lean_object* l_Lean_Lsp_instToJsonCreateFile; static lean_object* l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonApplyWorkspaceEditParams____x40_Lean_Data_Lsp_Basic___hyg_5092____closed__11; static lean_object* l_Lean_Lsp_instFromJsonTextDocumentEdit___closed__1; static lean_object* l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonStaticRegistrationOptions____x40_Lean_Data_Lsp_Basic___hyg_6012____closed__5; static lean_object* l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonLocation____x40_Lean_Data_Lsp_Basic___hyg_1314____closed__6; static lean_object* l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_toJsonWorkDoneProgressReport____x40_Lean_Data_Lsp_Basic___hyg_6600____closed__2; static lean_object* l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonTextDocumentRegistrationOptions____x40_Lean_Data_Lsp_Basic___hyg_6125____closed__1; LEAN_EXPORT lean_object* l_Lean_Lsp_MarkupKind_noConfusion___rarg(uint8_t, uint8_t, lean_object*); LEAN_EXPORT lean_object* l_Lean_RBNode_foldM___at___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonWorkspaceEdit____x40_Lean_Data_Lsp_Basic___hyg_4660____spec__11(lean_object*, lean_object*, lean_object*); static lean_object* l_Lean_Lsp_WorkspaceEdit_instEmptyCollectionWorkspaceEdit___closed__1; static lean_object* l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonTextDocumentIdentifier____x40_Lean_Data_Lsp_Basic___hyg_2414____closed__1; static lean_object* l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonMarkupContent____x40_Lean_Data_Lsp_Basic___hyg_6368____closed__2; static lean_object* l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonTextDocumentItem____x40_Lean_Data_Lsp_Basic___hyg_5313____closed__9; static lean_object* l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_toJsonWorkspaceEdit____x40_Lean_Data_Lsp_Basic___hyg_4588____closed__3; static lean_object* l_Lean_Lsp_instToJsonDocumentChange___closed__2; static lean_object* l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonTextEdit____x40_Lean_Data_Lsp_Basic___hyg_2082____closed__12; LEAN_EXPORT lean_object* l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonCancelParams____x40_Lean_Data_Lsp_Basic___hyg_144____boxed(lean_object*); static lean_object* l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonRenameFile____x40_Lean_Data_Lsp_Basic___hyg_3781____closed__1; static lean_object* l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonLocationLink____x40_Lean_Data_Lsp_Basic___hyg_1529____closed__3; LEAN_EXPORT lean_object* l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonTextDocumentItem____x40_Lean_Data_Lsp_Basic___hyg_5313____boxed(lean_object*); LEAN_EXPORT lean_object* l_Lean_Json_getObjValAs_x3f___at___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonCreateFile____x40_Lean_Data_Lsp_Basic___hyg_3525____spec__1(lean_object*, lean_object*); uint8_t lean_string_dec_lt(lean_object*, lean_object*); LEAN_EXPORT uint8_t l_Lean_Lsp_WorkDoneProgressOptions_workDoneProgress___default; LEAN_EXPORT lean_object* l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonRenameFile____x40_Lean_Data_Lsp_Basic___hyg_3781____boxed(lean_object*); static lean_object* l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonMarkupContent____x40_Lean_Data_Lsp_Basic___hyg_6368____closed__3; LEAN_EXPORT lean_object* l_Lean_Lsp_instFromJsonTextDocumentIdentifier; LEAN_EXPORT lean_object* l_Lean_Json_getObjValAs_x3f___at___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonCommand____x40_Lean_Data_Lsp_Basic___hyg_1837____spec__1___boxed(lean_object*, lean_object*); static lean_object* l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonWorkspaceEdit____x40_Lean_Data_Lsp_Basic___hyg_4660____closed__15; lean_object* l_Lean_Json_pretty(lean_object*, lean_object*); static lean_object* l_Lean_Lsp_instFromJsonMarkupKind___closed__3; static lean_object* l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonCreateFile____x40_Lean_Data_Lsp_Basic___hyg_3525____closed__12; static lean_object* l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_toJsonChangeAnnotation____x40_Lean_Data_Lsp_Basic___hyg_2875____closed__1; static lean_object* l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonPosition____x40_Lean_Data_Lsp_Basic___hyg_548____closed__3; static lean_object* l_Lean_Lsp_instToJsonWorkDoneProgressReport___closed__1; static lean_object* l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonWorkDoneProgressParams____x40_Lean_Data_Lsp_Basic___hyg_6868____closed__7; static lean_object* l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonTextDocumentPositionParams____x40_Lean_Data_Lsp_Basic___hyg_5568____closed__7; static lean_object* l_Lean_Lsp_instToJsonDocumentChange___closed__5; LEAN_EXPORT lean_object* l_Lean_Lsp_instFromJsonApplyWorkspaceEditParams; LEAN_EXPORT lean_object* l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_toJsonDeleteFile____x40_Lean_Data_Lsp_Basic___hyg_3998_(lean_object*); static lean_object* l_Lean_Lsp_instFromJsonCancelParams___closed__1; LEAN_EXPORT lean_object* l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_toJsonTextDocumentRegistrationOptions____x40_Lean_Data_Lsp_Basic___hyg_6090_(lean_object*); static lean_object* l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonDocumentFilter____x40_Lean_Data_Lsp_Basic___hyg_5792____closed__12; static lean_object* l_Lean_Lsp_instToJsonWorkDoneProgressOptions___closed__1; lean_object* lean_array_uset(lean_object*, size_t, lean_object*); LEAN_EXPORT lean_object* l_Lean_Lsp_instToJsonMarkupKind___boxed(lean_object*); static lean_object* l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonMarkupContent____x40_Lean_Data_Lsp_Basic___hyg_6368____closed__6; LEAN_EXPORT lean_object* l_Lean_Lsp_instToJsonRange; static lean_object* l_Lean_Lsp_instToStringPosition___closed__1; static lean_object* l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonTextDocumentItem____x40_Lean_Data_Lsp_Basic___hyg_5313____closed__13; static lean_object* l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonDeleteFile____x40_Lean_Data_Lsp_Basic___hyg_4050____closed__7; LEAN_EXPORT lean_object* l_Lean_Json_getObjValAs_x3f___at___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonVersionedTextDocumentIdentifier____x40_Lean_Data_Lsp_Basic___hyg_2545____spec__1___boxed(lean_object*, lean_object*); static lean_object* l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonTextDocumentPositionParams____x40_Lean_Data_Lsp_Basic___hyg_5568____closed__4; static lean_object* l_Lean_Lsp_instToJsonPosition___closed__1; LEAN_EXPORT lean_object* l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_DeleteFile_fromJsonOptions____x40_Lean_Data_Lsp_Basic___hyg_3335_(lean_object*); static lean_object* l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonTextDocumentItem____x40_Lean_Data_Lsp_Basic___hyg_5313____closed__5; static lean_object* l_Lean_Lsp_MarkupKind_noConfusion___rarg___closed__1; static lean_object* l_Lean_Lsp_instFromJsonRenameFile___closed__1; lean_object* l_Nat_repr(lean_object*); static lean_object* l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonCreateFile____x40_Lean_Data_Lsp_Basic___hyg_3525____closed__2; static lean_object* l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_toJsonRange____x40_Lean_Data_Lsp_Basic___hyg_866____closed__1; static lean_object* l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonMarkupContent____x40_Lean_Data_Lsp_Basic___hyg_6368____closed__1; LEAN_EXPORT lean_object* l_Lean_RBNode_map___at___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_toJsonWorkspaceEdit____x40_Lean_Data_Lsp_Basic___hyg_4588____spec__3___rarg(lean_object*); static lean_object* l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonTextDocumentItem____x40_Lean_Data_Lsp_Basic___hyg_5313____closed__17; static lean_object* l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_CreateFile_fromJsonOptions____x40_Lean_Data_Lsp_Basic___hyg_3155____closed__6; static lean_object* l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonWorkDoneProgressOptions____x40_Lean_Data_Lsp_Basic___hyg_7087____closed__5; LEAN_EXPORT lean_object* l_Array_mapMUnsafe_map___at_Lean_Lsp_instFromJsonDocumentSelector___spec__1(size_t, size_t, lean_object*); static lean_object* l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_toJsonMarkupContent____x40_Lean_Data_Lsp_Basic___hyg_6318____closed__5; static lean_object* l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_toJsonCancelParams____x40_Lean_Data_Lsp_Basic___hyg_100____closed__4; static lean_object* l_Lean_Lsp_instToJsonLocationLink___closed__1; LEAN_EXPORT lean_object* l_Lean_Lsp_instToJsonTextEditBatch(lean_object*); static lean_object* l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonApplyWorkspaceEditParams____x40_Lean_Data_Lsp_Basic___hyg_5092____closed__12; static lean_object* l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonCreateFile____x40_Lean_Data_Lsp_Basic___hyg_3525____closed__11; static lean_object* l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonRenameFile____x40_Lean_Data_Lsp_Basic___hyg_3781____closed__14; LEAN_EXPORT lean_object* l_Lean_Json_opt___at___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_toJsonDeleteFile____x40_Lean_Data_Lsp_Basic___hyg_3998____spec__1(lean_object*, lean_object*); static lean_object* l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonRange____x40_Lean_Data_Lsp_Basic___hyg_916____closed__2; LEAN_EXPORT lean_object* l_Lean_Lsp_WorkspaceEdit_changeAnnotations___default; static lean_object* l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonVersionedTextDocumentIdentifier____x40_Lean_Data_Lsp_Basic___hyg_2545____closed__1; LEAN_EXPORT lean_object* l_Lean_Lsp_WorkspaceEdit_instAppendWorkspaceEdit___lambda__2___boxed(lean_object*, lean_object*, lean_object*); static lean_object* _init_l_Lean_Lsp_instInhabitedCancelParams___closed__1() { _start: { lean_object* x_1; x_1 = lean_mk_string_from_bytes("", 0); return x_1; } } static lean_object* _init_l_Lean_Lsp_instInhabitedCancelParams___closed__2() { _start: { lean_object* x_1; lean_object* x_2; x_1 = l_Lean_Lsp_instInhabitedCancelParams___closed__1; x_2 = lean_alloc_ctor(0, 1, 0); lean_ctor_set(x_2, 0, x_1); return x_2; } } static lean_object* _init_l_Lean_Lsp_instInhabitedCancelParams() { _start: { lean_object* x_1; x_1 = l_Lean_Lsp_instInhabitedCancelParams___closed__2; return x_1; } } LEAN_EXPORT uint8_t l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_beqCancelParams____x40_Lean_Data_Lsp_Basic___hyg_27_(lean_object* x_1, lean_object* x_2) { _start: { uint8_t x_3; x_3 = l___private_Lean_Data_JsonRpc_0__Lean_JsonRpc_beqRequestID____x40_Lean_Data_JsonRpc___hyg_34_(x_1, x_2); return x_3; } } LEAN_EXPORT lean_object* l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_beqCancelParams____x40_Lean_Data_Lsp_Basic___hyg_27____boxed(lean_object* x_1, lean_object* x_2) { _start: { uint8_t x_3; lean_object* x_4; x_3 = l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_beqCancelParams____x40_Lean_Data_Lsp_Basic___hyg_27_(x_1, x_2); lean_dec(x_2); lean_dec(x_1); x_4 = lean_box(x_3); return x_4; } } static lean_object* _init_l_Lean_Lsp_instBEqCancelParams___closed__1() { _start: { lean_object* x_1; x_1 = lean_alloc_closure((void*)(l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_beqCancelParams____x40_Lean_Data_Lsp_Basic___hyg_27____boxed), 2, 0); return x_1; } } static lean_object* _init_l_Lean_Lsp_instBEqCancelParams() { _start: { lean_object* x_1; x_1 = l_Lean_Lsp_instBEqCancelParams___closed__1; return x_1; } } static lean_object* _init_l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_toJsonCancelParams____x40_Lean_Data_Lsp_Basic___hyg_100____closed__1() { _start: { lean_object* x_1; x_1 = lean_mk_string_from_bytes("id", 2); return x_1; } } static lean_object* _init_l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_toJsonCancelParams____x40_Lean_Data_Lsp_Basic___hyg_100____closed__2() { _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; x_1 = l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_toJsonCancelParams____x40_Lean_Data_Lsp_Basic___hyg_100____closed__1; x_2 = lean_box(0); x_3 = lean_alloc_ctor(0, 2, 0); lean_ctor_set(x_3, 0, x_1); lean_ctor_set(x_3, 1, x_2); return x_3; } } static lean_object* _init_l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_toJsonCancelParams____x40_Lean_Data_Lsp_Basic___hyg_100____closed__3() { _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; x_1 = lean_box(0); x_2 = l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_toJsonCancelParams____x40_Lean_Data_Lsp_Basic___hyg_100____closed__2; x_3 = lean_alloc_ctor(1, 2, 0); lean_ctor_set(x_3, 0, x_2); lean_ctor_set(x_3, 1, x_1); return x_3; } } static lean_object* _init_l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_toJsonCancelParams____x40_Lean_Data_Lsp_Basic___hyg_100____closed__4() { _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; x_1 = lean_box(0); x_2 = l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_toJsonCancelParams____x40_Lean_Data_Lsp_Basic___hyg_100____closed__3; x_3 = lean_alloc_ctor(1, 2, 0); lean_ctor_set(x_3, 0, x_2); lean_ctor_set(x_3, 1, x_1); return x_3; } } static lean_object* _init_l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_toJsonCancelParams____x40_Lean_Data_Lsp_Basic___hyg_100____closed__5() { _start: { lean_object* x_1; lean_object* x_2; x_1 = l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_toJsonCancelParams____x40_Lean_Data_Lsp_Basic___hyg_100____closed__4; x_2 = l_List_join___rarg(x_1); return x_2; } } static lean_object* _init_l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_toJsonCancelParams____x40_Lean_Data_Lsp_Basic___hyg_100____closed__6() { _start: { lean_object* x_1; lean_object* x_2; x_1 = l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_toJsonCancelParams____x40_Lean_Data_Lsp_Basic___hyg_100____closed__5; x_2 = l_Lean_Json_mkObj(x_1); return x_2; } } LEAN_EXPORT lean_object* l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_toJsonCancelParams____x40_Lean_Data_Lsp_Basic___hyg_100_(lean_object* x_1) { _start: { lean_object* x_2; x_2 = lean_box(0); switch (lean_obj_tag(x_1)) { case 0: { lean_object* x_3; lean_object* x_4; lean_object* x_5; lean_object* x_6; lean_object* x_7; lean_object* x_8; lean_object* x_9; lean_object* x_10; x_3 = lean_ctor_get(x_1, 0); lean_inc(x_3); x_4 = lean_alloc_ctor(3, 1, 0); lean_ctor_set(x_4, 0, x_3); x_5 = l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_toJsonCancelParams____x40_Lean_Data_Lsp_Basic___hyg_100____closed__1; x_6 = lean_alloc_ctor(0, 2, 0); lean_ctor_set(x_6, 0, x_5); lean_ctor_set(x_6, 1, x_4); x_7 = lean_alloc_ctor(1, 2, 0); lean_ctor_set(x_7, 0, x_6); lean_ctor_set(x_7, 1, x_2); x_8 = lean_alloc_ctor(1, 2, 0); lean_ctor_set(x_8, 0, x_7); lean_ctor_set(x_8, 1, x_2); x_9 = l_List_join___rarg(x_8); x_10 = l_Lean_Json_mkObj(x_9); return x_10; } case 1: { lean_object* x_11; lean_object* x_12; lean_object* x_13; lean_object* x_14; lean_object* x_15; lean_object* x_16; lean_object* x_17; lean_object* x_18; x_11 = lean_ctor_get(x_1, 0); lean_inc(x_11); x_12 = lean_alloc_ctor(2, 1, 0); lean_ctor_set(x_12, 0, x_11); x_13 = l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_toJsonCancelParams____x40_Lean_Data_Lsp_Basic___hyg_100____closed__1; x_14 = lean_alloc_ctor(0, 2, 0); lean_ctor_set(x_14, 0, x_13); lean_ctor_set(x_14, 1, x_12); x_15 = lean_alloc_ctor(1, 2, 0); lean_ctor_set(x_15, 0, x_14); lean_ctor_set(x_15, 1, x_2); x_16 = lean_alloc_ctor(1, 2, 0); lean_ctor_set(x_16, 0, x_15); lean_ctor_set(x_16, 1, x_2); x_17 = l_List_join___rarg(x_16); x_18 = l_Lean_Json_mkObj(x_17); return x_18; } default: { lean_object* x_19; x_19 = l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_toJsonCancelParams____x40_Lean_Data_Lsp_Basic___hyg_100____closed__6; return x_19; } } } } LEAN_EXPORT lean_object* l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_toJsonCancelParams____x40_Lean_Data_Lsp_Basic___hyg_100____boxed(lean_object* x_1) { _start: { lean_object* x_2; x_2 = l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_toJsonCancelParams____x40_Lean_Data_Lsp_Basic___hyg_100_(x_1); lean_dec(x_1); return x_2; } } static lean_object* _init_l_Lean_Lsp_instToJsonCancelParams___closed__1() { _start: { lean_object* x_1; x_1 = lean_alloc_closure((void*)(l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_toJsonCancelParams____x40_Lean_Data_Lsp_Basic___hyg_100____boxed), 1, 0); return x_1; } } static lean_object* _init_l_Lean_Lsp_instToJsonCancelParams() { _start: { lean_object* x_1; x_1 = l_Lean_Lsp_instToJsonCancelParams___closed__1; return x_1; } } static lean_object* _init_l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonCancelParams____x40_Lean_Data_Lsp_Basic___hyg_144____closed__1() { _start: { lean_object* x_1; x_1 = lean_mk_string_from_bytes("Lean", 4); return x_1; } } static lean_object* _init_l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonCancelParams____x40_Lean_Data_Lsp_Basic___hyg_144____closed__2() { _start: { lean_object* x_1; x_1 = lean_mk_string_from_bytes("Lsp", 3); return x_1; } } static lean_object* _init_l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonCancelParams____x40_Lean_Data_Lsp_Basic___hyg_144____closed__3() { _start: { lean_object* x_1; x_1 = lean_mk_string_from_bytes("CancelParams", 12); return x_1; } } static lean_object* _init_l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonCancelParams____x40_Lean_Data_Lsp_Basic___hyg_144____closed__4() { _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; lean_object* x_4; x_1 = l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonCancelParams____x40_Lean_Data_Lsp_Basic___hyg_144____closed__1; x_2 = l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonCancelParams____x40_Lean_Data_Lsp_Basic___hyg_144____closed__2; x_3 = l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonCancelParams____x40_Lean_Data_Lsp_Basic___hyg_144____closed__3; x_4 = l_Lean_Name_mkStr3(x_1, x_2, x_3); return x_4; } } static lean_object* _init_l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonCancelParams____x40_Lean_Data_Lsp_Basic___hyg_144____closed__5() { _start: { lean_object* x_1; uint8_t x_2; lean_object* x_3; x_1 = l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonCancelParams____x40_Lean_Data_Lsp_Basic___hyg_144____closed__4; x_2 = 1; x_3 = l_Lean_Name_toString(x_1, x_2); return x_3; } } static lean_object* _init_l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonCancelParams____x40_Lean_Data_Lsp_Basic___hyg_144____closed__6() { _start: { lean_object* x_1; x_1 = lean_mk_string_from_bytes(".", 1); return x_1; } } static lean_object* _init_l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonCancelParams____x40_Lean_Data_Lsp_Basic___hyg_144____closed__7() { _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; x_1 = l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonCancelParams____x40_Lean_Data_Lsp_Basic___hyg_144____closed__5; x_2 = l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonCancelParams____x40_Lean_Data_Lsp_Basic___hyg_144____closed__6; x_3 = lean_string_append(x_1, x_2); return x_3; } } static lean_object* _init_l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonCancelParams____x40_Lean_Data_Lsp_Basic___hyg_144____closed__8() { _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; x_1 = lean_box(0); x_2 = l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_toJsonCancelParams____x40_Lean_Data_Lsp_Basic___hyg_100____closed__1; x_3 = l_Lean_Name_str___override(x_1, x_2); return x_3; } } static lean_object* _init_l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonCancelParams____x40_Lean_Data_Lsp_Basic___hyg_144____closed__9() { _start: { lean_object* x_1; uint8_t x_2; lean_object* x_3; x_1 = l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonCancelParams____x40_Lean_Data_Lsp_Basic___hyg_144____closed__8; x_2 = 1; x_3 = l_Lean_Name_toString(x_1, x_2); return x_3; } } static lean_object* _init_l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonCancelParams____x40_Lean_Data_Lsp_Basic___hyg_144____closed__10() { _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; x_1 = l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonCancelParams____x40_Lean_Data_Lsp_Basic___hyg_144____closed__7; x_2 = l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonCancelParams____x40_Lean_Data_Lsp_Basic___hyg_144____closed__9; x_3 = lean_string_append(x_1, x_2); return x_3; } } static lean_object* _init_l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonCancelParams____x40_Lean_Data_Lsp_Basic___hyg_144____closed__11() { _start: { lean_object* x_1; x_1 = lean_mk_string_from_bytes(": ", 2); return x_1; } } static lean_object* _init_l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonCancelParams____x40_Lean_Data_Lsp_Basic___hyg_144____closed__12() { _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; x_1 = l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonCancelParams____x40_Lean_Data_Lsp_Basic___hyg_144____closed__10; x_2 = l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonCancelParams____x40_Lean_Data_Lsp_Basic___hyg_144____closed__11; x_3 = lean_string_append(x_1, x_2); return x_3; } } LEAN_EXPORT lean_object* l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonCancelParams____x40_Lean_Data_Lsp_Basic___hyg_144_(lean_object* x_1) { _start: { lean_object* x_2; lean_object* x_3; x_2 = l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_toJsonCancelParams____x40_Lean_Data_Lsp_Basic___hyg_100____closed__1; x_3 = l_Lean_Json_getObjValAs_x3f___at_Lean_JsonRpc_instFromJsonMessage___spec__1(x_1, x_2); if (lean_obj_tag(x_3) == 0) { uint8_t x_4; x_4 = !lean_is_exclusive(x_3); if (x_4 == 0) { lean_object* x_5; lean_object* x_6; lean_object* x_7; x_5 = lean_ctor_get(x_3, 0); x_6 = l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonCancelParams____x40_Lean_Data_Lsp_Basic___hyg_144____closed__12; x_7 = lean_string_append(x_6, x_5); lean_dec(x_5); lean_ctor_set(x_3, 0, x_7); return x_3; } else { lean_object* x_8; lean_object* x_9; lean_object* x_10; lean_object* x_11; x_8 = lean_ctor_get(x_3, 0); lean_inc(x_8); lean_dec(x_3); x_9 = l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonCancelParams____x40_Lean_Data_Lsp_Basic___hyg_144____closed__12; x_10 = lean_string_append(x_9, x_8); lean_dec(x_8); x_11 = lean_alloc_ctor(0, 1, 0); lean_ctor_set(x_11, 0, x_10); return x_11; } } else { uint8_t x_12; x_12 = !lean_is_exclusive(x_3); if (x_12 == 0) { return x_3; } else { lean_object* x_13; lean_object* x_14; x_13 = lean_ctor_get(x_3, 0); lean_inc(x_13); lean_dec(x_3); x_14 = lean_alloc_ctor(1, 1, 0); lean_ctor_set(x_14, 0, x_13); return x_14; } } } } LEAN_EXPORT lean_object* l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonCancelParams____x40_Lean_Data_Lsp_Basic___hyg_144____boxed(lean_object* x_1) { _start: { lean_object* x_2; x_2 = l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonCancelParams____x40_Lean_Data_Lsp_Basic___hyg_144_(x_1); lean_dec(x_1); return x_2; } } static lean_object* _init_l_Lean_Lsp_instFromJsonCancelParams___closed__1() { _start: { lean_object* x_1; x_1 = lean_alloc_closure((void*)(l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonCancelParams____x40_Lean_Data_Lsp_Basic___hyg_144____boxed), 1, 0); return x_1; } } static lean_object* _init_l_Lean_Lsp_instFromJsonCancelParams() { _start: { lean_object* x_1; x_1 = l_Lean_Lsp_instFromJsonCancelParams___closed__1; return x_1; } } static lean_object* _init_l_Lean_Lsp_instInhabitedPosition___closed__1() { _start: { lean_object* x_1; lean_object* x_2; x_1 = lean_unsigned_to_nat(0u); x_2 = lean_alloc_ctor(0, 2, 0); lean_ctor_set(x_2, 0, x_1); lean_ctor_set(x_2, 1, x_1); return x_2; } } static lean_object* _init_l_Lean_Lsp_instInhabitedPosition() { _start: { lean_object* x_1; x_1 = l_Lean_Lsp_instInhabitedPosition___closed__1; return x_1; } } LEAN_EXPORT uint8_t l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_beqPosition____x40_Lean_Data_Lsp_Basic___hyg_251_(lean_object* x_1, lean_object* x_2) { _start: { lean_object* x_3; lean_object* x_4; lean_object* x_5; lean_object* x_6; uint8_t x_7; x_3 = lean_ctor_get(x_1, 0); x_4 = lean_ctor_get(x_1, 1); x_5 = lean_ctor_get(x_2, 0); x_6 = lean_ctor_get(x_2, 1); x_7 = lean_nat_dec_eq(x_3, x_5); if (x_7 == 0) { uint8_t x_8; x_8 = 0; return x_8; } else { uint8_t x_9; x_9 = lean_nat_dec_eq(x_4, x_6); return x_9; } } } LEAN_EXPORT lean_object* l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_beqPosition____x40_Lean_Data_Lsp_Basic___hyg_251____boxed(lean_object* x_1, lean_object* x_2) { _start: { uint8_t x_3; lean_object* x_4; x_3 = l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_beqPosition____x40_Lean_Data_Lsp_Basic___hyg_251_(x_1, x_2); lean_dec(x_2); lean_dec(x_1); x_4 = lean_box(x_3); return x_4; } } static lean_object* _init_l_Lean_Lsp_instBEqPosition___closed__1() { _start: { lean_object* x_1; x_1 = lean_alloc_closure((void*)(l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_beqPosition____x40_Lean_Data_Lsp_Basic___hyg_251____boxed), 2, 0); return x_1; } } static lean_object* _init_l_Lean_Lsp_instBEqPosition() { _start: { lean_object* x_1; x_1 = l_Lean_Lsp_instBEqPosition___closed__1; return x_1; } } LEAN_EXPORT uint8_t l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_ordPosition____x40_Lean_Data_Lsp_Basic___hyg_342_(lean_object* x_1, lean_object* x_2) { _start: { lean_object* x_3; lean_object* x_4; lean_object* x_5; lean_object* x_6; uint8_t x_7; x_3 = lean_ctor_get(x_1, 0); x_4 = lean_ctor_get(x_1, 1); x_5 = lean_ctor_get(x_2, 0); x_6 = lean_ctor_get(x_2, 1); x_7 = lean_nat_dec_lt(x_3, x_5); if (x_7 == 0) { uint8_t x_8; x_8 = lean_nat_dec_eq(x_3, x_5); if (x_8 == 0) { uint8_t x_9; x_9 = 2; return x_9; } else { uint8_t x_10; x_10 = lean_nat_dec_lt(x_4, x_6); if (x_10 == 0) { uint8_t x_11; x_11 = lean_nat_dec_eq(x_4, x_6); if (x_11 == 0) { uint8_t x_12; x_12 = 2; return x_12; } else { uint8_t x_13; x_13 = 1; return x_13; } } else { uint8_t x_14; x_14 = 0; return x_14; } } } else { uint8_t x_15; x_15 = 0; return x_15; } } } LEAN_EXPORT lean_object* l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_ordPosition____x40_Lean_Data_Lsp_Basic___hyg_342____boxed(lean_object* x_1, lean_object* x_2) { _start: { uint8_t x_3; lean_object* x_4; x_3 = l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_ordPosition____x40_Lean_Data_Lsp_Basic___hyg_342_(x_1, x_2); lean_dec(x_2); lean_dec(x_1); x_4 = lean_box(x_3); return x_4; } } static lean_object* _init_l_Lean_Lsp_instOrdPosition___closed__1() { _start: { lean_object* x_1; x_1 = lean_alloc_closure((void*)(l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_ordPosition____x40_Lean_Data_Lsp_Basic___hyg_342____boxed), 2, 0); return x_1; } } static lean_object* _init_l_Lean_Lsp_instOrdPosition() { _start: { lean_object* x_1; x_1 = l_Lean_Lsp_instOrdPosition___closed__1; return x_1; } } LEAN_EXPORT uint64_t l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_hashPosition____x40_Lean_Data_Lsp_Basic___hyg_449_(lean_object* x_1) { _start: { lean_object* x_2; lean_object* x_3; uint64_t x_4; uint64_t x_5; uint64_t x_6; uint64_t x_7; uint64_t x_8; x_2 = lean_ctor_get(x_1, 0); x_3 = lean_ctor_get(x_1, 1); x_4 = 0; x_5 = lean_uint64_of_nat(x_2); x_6 = lean_uint64_mix_hash(x_4, x_5); x_7 = lean_uint64_of_nat(x_3); x_8 = lean_uint64_mix_hash(x_6, x_7); return x_8; } } LEAN_EXPORT lean_object* l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_hashPosition____x40_Lean_Data_Lsp_Basic___hyg_449____boxed(lean_object* x_1) { _start: { uint64_t x_2; lean_object* x_3; x_2 = l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_hashPosition____x40_Lean_Data_Lsp_Basic___hyg_449_(x_1); lean_dec(x_1); x_3 = lean_box_uint64(x_2); return x_3; } } static lean_object* _init_l_Lean_Lsp_instHashablePosition___closed__1() { _start: { lean_object* x_1; x_1 = lean_alloc_closure((void*)(l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_hashPosition____x40_Lean_Data_Lsp_Basic___hyg_449____boxed), 1, 0); return x_1; } } static lean_object* _init_l_Lean_Lsp_instHashablePosition() { _start: { lean_object* x_1; x_1 = l_Lean_Lsp_instHashablePosition___closed__1; return x_1; } } static lean_object* _init_l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_toJsonPosition____x40_Lean_Data_Lsp_Basic___hyg_497____closed__1() { _start: { lean_object* x_1; x_1 = lean_mk_string_from_bytes("line", 4); return x_1; } } static lean_object* _init_l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_toJsonPosition____x40_Lean_Data_Lsp_Basic___hyg_497____closed__2() { _start: { lean_object* x_1; x_1 = lean_mk_string_from_bytes("character", 9); return x_1; } } LEAN_EXPORT lean_object* l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_toJsonPosition____x40_Lean_Data_Lsp_Basic___hyg_497_(lean_object* x_1) { _start: { lean_object* x_2; lean_object* x_3; lean_object* x_4; lean_object* x_5; lean_object* x_6; lean_object* x_7; lean_object* x_8; lean_object* x_9; lean_object* x_10; lean_object* x_11; lean_object* x_12; lean_object* x_13; lean_object* x_14; lean_object* x_15; lean_object* x_16; lean_object* x_17; lean_object* x_18; x_2 = lean_ctor_get(x_1, 0); lean_inc(x_2); x_3 = l_Lean_JsonNumber_fromNat(x_2); x_4 = lean_alloc_ctor(2, 1, 0); lean_ctor_set(x_4, 0, x_3); x_5 = l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_toJsonPosition____x40_Lean_Data_Lsp_Basic___hyg_497____closed__1; x_6 = lean_alloc_ctor(0, 2, 0); lean_ctor_set(x_6, 0, x_5); lean_ctor_set(x_6, 1, x_4); x_7 = lean_box(0); x_8 = lean_alloc_ctor(1, 2, 0); lean_ctor_set(x_8, 0, x_6); lean_ctor_set(x_8, 1, x_7); x_9 = lean_ctor_get(x_1, 1); lean_inc(x_9); lean_dec(x_1); x_10 = l_Lean_JsonNumber_fromNat(x_9); x_11 = lean_alloc_ctor(2, 1, 0); lean_ctor_set(x_11, 0, x_10); x_12 = l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_toJsonPosition____x40_Lean_Data_Lsp_Basic___hyg_497____closed__2; x_13 = lean_alloc_ctor(0, 2, 0); lean_ctor_set(x_13, 0, x_12); lean_ctor_set(x_13, 1, x_11); x_14 = lean_alloc_ctor(1, 2, 0); lean_ctor_set(x_14, 0, x_13); lean_ctor_set(x_14, 1, x_7); x_15 = lean_alloc_ctor(1, 2, 0); lean_ctor_set(x_15, 0, x_14); lean_ctor_set(x_15, 1, x_7); x_16 = lean_alloc_ctor(1, 2, 0); lean_ctor_set(x_16, 0, x_8); lean_ctor_set(x_16, 1, x_15); x_17 = l_List_join___rarg(x_16); x_18 = l_Lean_Json_mkObj(x_17); return x_18; } } static lean_object* _init_l_Lean_Lsp_instToJsonPosition___closed__1() { _start: { lean_object* x_1; x_1 = lean_alloc_closure((void*)(l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_toJsonPosition____x40_Lean_Data_Lsp_Basic___hyg_497_), 1, 0); return x_1; } } static lean_object* _init_l_Lean_Lsp_instToJsonPosition() { _start: { lean_object* x_1; x_1 = l_Lean_Lsp_instToJsonPosition___closed__1; return x_1; } } LEAN_EXPORT lean_object* l_Lean_Json_getObjValAs_x3f___at___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonPosition____x40_Lean_Data_Lsp_Basic___hyg_548____spec__1(lean_object* x_1, lean_object* x_2) { _start: { lean_object* x_3; lean_object* x_4; x_3 = l_Lean_Json_getObjValD(x_1, x_2); x_4 = l_Lean_Json_getNat_x3f(x_3); lean_dec(x_3); return x_4; } } static lean_object* _init_l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonPosition____x40_Lean_Data_Lsp_Basic___hyg_548____closed__1() { _start: { lean_object* x_1; x_1 = lean_mk_string_from_bytes("Position", 8); return x_1; } } static lean_object* _init_l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonPosition____x40_Lean_Data_Lsp_Basic___hyg_548____closed__2() { _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; lean_object* x_4; x_1 = l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonCancelParams____x40_Lean_Data_Lsp_Basic___hyg_144____closed__1; x_2 = l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonCancelParams____x40_Lean_Data_Lsp_Basic___hyg_144____closed__2; x_3 = l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonPosition____x40_Lean_Data_Lsp_Basic___hyg_548____closed__1; x_4 = l_Lean_Name_mkStr3(x_1, x_2, x_3); return x_4; } } static lean_object* _init_l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonPosition____x40_Lean_Data_Lsp_Basic___hyg_548____closed__3() { _start: { lean_object* x_1; uint8_t x_2; lean_object* x_3; x_1 = l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonPosition____x40_Lean_Data_Lsp_Basic___hyg_548____closed__2; x_2 = 1; x_3 = l_Lean_Name_toString(x_1, x_2); return x_3; } } static lean_object* _init_l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonPosition____x40_Lean_Data_Lsp_Basic___hyg_548____closed__4() { _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; x_1 = l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonPosition____x40_Lean_Data_Lsp_Basic___hyg_548____closed__3; x_2 = l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonCancelParams____x40_Lean_Data_Lsp_Basic___hyg_144____closed__6; x_3 = lean_string_append(x_1, x_2); return x_3; } } static lean_object* _init_l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonPosition____x40_Lean_Data_Lsp_Basic___hyg_548____closed__5() { _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; x_1 = lean_box(0); x_2 = l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_toJsonPosition____x40_Lean_Data_Lsp_Basic___hyg_497____closed__1; x_3 = l_Lean_Name_str___override(x_1, x_2); return x_3; } } static lean_object* _init_l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonPosition____x40_Lean_Data_Lsp_Basic___hyg_548____closed__6() { _start: { lean_object* x_1; uint8_t x_2; lean_object* x_3; x_1 = l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonPosition____x40_Lean_Data_Lsp_Basic___hyg_548____closed__5; x_2 = 1; x_3 = l_Lean_Name_toString(x_1, x_2); return x_3; } } static lean_object* _init_l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonPosition____x40_Lean_Data_Lsp_Basic___hyg_548____closed__7() { _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; x_1 = l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonPosition____x40_Lean_Data_Lsp_Basic___hyg_548____closed__4; x_2 = l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonPosition____x40_Lean_Data_Lsp_Basic___hyg_548____closed__6; x_3 = lean_string_append(x_1, x_2); return x_3; } } static lean_object* _init_l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonPosition____x40_Lean_Data_Lsp_Basic___hyg_548____closed__8() { _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; x_1 = l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonPosition____x40_Lean_Data_Lsp_Basic___hyg_548____closed__7; x_2 = l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonCancelParams____x40_Lean_Data_Lsp_Basic___hyg_144____closed__11; x_3 = lean_string_append(x_1, x_2); return x_3; } } static lean_object* _init_l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonPosition____x40_Lean_Data_Lsp_Basic___hyg_548____closed__9() { _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; x_1 = lean_box(0); x_2 = l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_toJsonPosition____x40_Lean_Data_Lsp_Basic___hyg_497____closed__2; x_3 = l_Lean_Name_str___override(x_1, x_2); return x_3; } } static lean_object* _init_l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonPosition____x40_Lean_Data_Lsp_Basic___hyg_548____closed__10() { _start: { lean_object* x_1; uint8_t x_2; lean_object* x_3; x_1 = l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonPosition____x40_Lean_Data_Lsp_Basic___hyg_548____closed__9; x_2 = 1; x_3 = l_Lean_Name_toString(x_1, x_2); return x_3; } } static lean_object* _init_l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonPosition____x40_Lean_Data_Lsp_Basic___hyg_548____closed__11() { _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; x_1 = l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonPosition____x40_Lean_Data_Lsp_Basic___hyg_548____closed__4; x_2 = l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonPosition____x40_Lean_Data_Lsp_Basic___hyg_548____closed__10; x_3 = lean_string_append(x_1, x_2); return x_3; } } static lean_object* _init_l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonPosition____x40_Lean_Data_Lsp_Basic___hyg_548____closed__12() { _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; x_1 = l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonPosition____x40_Lean_Data_Lsp_Basic___hyg_548____closed__11; x_2 = l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonCancelParams____x40_Lean_Data_Lsp_Basic___hyg_144____closed__11; x_3 = lean_string_append(x_1, x_2); return x_3; } } LEAN_EXPORT lean_object* l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonPosition____x40_Lean_Data_Lsp_Basic___hyg_548_(lean_object* x_1) { _start: { lean_object* x_2; lean_object* x_3; x_2 = l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_toJsonPosition____x40_Lean_Data_Lsp_Basic___hyg_497____closed__1; x_3 = l_Lean_Json_getObjValAs_x3f___at___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonPosition____x40_Lean_Data_Lsp_Basic___hyg_548____spec__1(x_1, x_2); if (lean_obj_tag(x_3) == 0) { uint8_t x_4; x_4 = !lean_is_exclusive(x_3); if (x_4 == 0) { lean_object* x_5; lean_object* x_6; lean_object* x_7; x_5 = lean_ctor_get(x_3, 0); x_6 = l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonPosition____x40_Lean_Data_Lsp_Basic___hyg_548____closed__8; x_7 = lean_string_append(x_6, x_5); lean_dec(x_5); lean_ctor_set(x_3, 0, x_7); return x_3; } else { lean_object* x_8; lean_object* x_9; lean_object* x_10; lean_object* x_11; x_8 = lean_ctor_get(x_3, 0); lean_inc(x_8); lean_dec(x_3); x_9 = l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonPosition____x40_Lean_Data_Lsp_Basic___hyg_548____closed__8; x_10 = lean_string_append(x_9, x_8); lean_dec(x_8); x_11 = lean_alloc_ctor(0, 1, 0); lean_ctor_set(x_11, 0, x_10); return x_11; } } else { lean_object* x_12; lean_object* x_13; lean_object* x_14; x_12 = lean_ctor_get(x_3, 0); lean_inc(x_12); lean_dec(x_3); x_13 = l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_toJsonPosition____x40_Lean_Data_Lsp_Basic___hyg_497____closed__2; x_14 = l_Lean_Json_getObjValAs_x3f___at___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonPosition____x40_Lean_Data_Lsp_Basic___hyg_548____spec__1(x_1, x_13); if (lean_obj_tag(x_14) == 0) { uint8_t x_15; lean_dec(x_12); x_15 = !lean_is_exclusive(x_14); if (x_15 == 0) { lean_object* x_16; lean_object* x_17; lean_object* x_18; x_16 = lean_ctor_get(x_14, 0); x_17 = l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonPosition____x40_Lean_Data_Lsp_Basic___hyg_548____closed__12; x_18 = lean_string_append(x_17, x_16); lean_dec(x_16); lean_ctor_set(x_14, 0, x_18); return x_14; } else { lean_object* x_19; lean_object* x_20; lean_object* x_21; lean_object* x_22; x_19 = lean_ctor_get(x_14, 0); lean_inc(x_19); lean_dec(x_14); x_20 = l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonPosition____x40_Lean_Data_Lsp_Basic___hyg_548____closed__12; x_21 = lean_string_append(x_20, x_19); lean_dec(x_19); x_22 = lean_alloc_ctor(0, 1, 0); lean_ctor_set(x_22, 0, x_21); return x_22; } } else { uint8_t x_23; x_23 = !lean_is_exclusive(x_14); if (x_23 == 0) { lean_object* x_24; lean_object* x_25; x_24 = lean_ctor_get(x_14, 0); x_25 = lean_alloc_ctor(0, 2, 0); lean_ctor_set(x_25, 0, x_12); lean_ctor_set(x_25, 1, x_24); lean_ctor_set(x_14, 0, x_25); return x_14; } else { lean_object* x_26; lean_object* x_27; lean_object* x_28; x_26 = lean_ctor_get(x_14, 0); lean_inc(x_26); lean_dec(x_14); x_27 = lean_alloc_ctor(0, 2, 0); lean_ctor_set(x_27, 0, x_12); lean_ctor_set(x_27, 1, x_26); x_28 = lean_alloc_ctor(1, 1, 0); lean_ctor_set(x_28, 0, x_27); return x_28; } } } } } LEAN_EXPORT lean_object* l_Lean_Json_getObjValAs_x3f___at___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonPosition____x40_Lean_Data_Lsp_Basic___hyg_548____spec__1___boxed(lean_object* x_1, lean_object* x_2) { _start: { lean_object* x_3; x_3 = l_Lean_Json_getObjValAs_x3f___at___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonPosition____x40_Lean_Data_Lsp_Basic___hyg_548____spec__1(x_1, x_2); lean_dec(x_2); lean_dec(x_1); return x_3; } } LEAN_EXPORT lean_object* l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonPosition____x40_Lean_Data_Lsp_Basic___hyg_548____boxed(lean_object* x_1) { _start: { lean_object* x_2; x_2 = l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonPosition____x40_Lean_Data_Lsp_Basic___hyg_548_(x_1); lean_dec(x_1); return x_2; } } static lean_object* _init_l_Lean_Lsp_instFromJsonPosition___closed__1() { _start: { lean_object* x_1; x_1 = lean_alloc_closure((void*)(l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonPosition____x40_Lean_Data_Lsp_Basic___hyg_548____boxed), 1, 0); return x_1; } } static lean_object* _init_l_Lean_Lsp_instFromJsonPosition() { _start: { lean_object* x_1; x_1 = l_Lean_Lsp_instFromJsonPosition___closed__1; return x_1; } } static lean_object* _init_l_Lean_Lsp_instToStringPosition___closed__1() { _start: { lean_object* x_1; x_1 = lean_mk_string_from_bytes("(", 1); return x_1; } } static lean_object* _init_l_Lean_Lsp_instToStringPosition___closed__2() { _start: { lean_object* x_1; x_1 = lean_mk_string_from_bytes(", ", 2); return x_1; } } static lean_object* _init_l_Lean_Lsp_instToStringPosition___closed__3() { _start: { lean_object* x_1; x_1 = lean_mk_string_from_bytes(")", 1); return x_1; } } LEAN_EXPORT lean_object* l_Lean_Lsp_instToStringPosition(lean_object* x_1) { _start: { lean_object* x_2; lean_object* x_3; lean_object* x_4; lean_object* x_5; lean_object* x_6; lean_object* x_7; lean_object* x_8; lean_object* x_9; lean_object* x_10; lean_object* x_11; lean_object* x_12; x_2 = lean_ctor_get(x_1, 0); lean_inc(x_2); x_3 = l_Nat_repr(x_2); x_4 = l_Lean_Lsp_instToStringPosition___closed__1; x_5 = lean_string_append(x_4, x_3); lean_dec(x_3); x_6 = l_Lean_Lsp_instToStringPosition___closed__2; x_7 = lean_string_append(x_5, x_6); x_8 = lean_ctor_get(x_1, 1); lean_inc(x_8); lean_dec(x_1); x_9 = l_Nat_repr(x_8); x_10 = lean_string_append(x_7, x_9); lean_dec(x_9); x_11 = l_Lean_Lsp_instToStringPosition___closed__3; x_12 = lean_string_append(x_10, x_11); return x_12; } } static lean_object* _init_l_Lean_Lsp_instLTPosition() { _start: { lean_object* x_1; x_1 = lean_box(0); return x_1; } } static lean_object* _init_l_Lean_Lsp_instLEPosition() { _start: { lean_object* x_1; x_1 = lean_box(0); return x_1; } } static lean_object* _init_l_Lean_Lsp_instInhabitedRange___closed__1() { _start: { lean_object* x_1; lean_object* x_2; x_1 = l_Lean_Lsp_instInhabitedPosition___closed__1; x_2 = lean_alloc_ctor(0, 2, 0); lean_ctor_set(x_2, 0, x_1); lean_ctor_set(x_2, 1, x_1); return x_2; } } static lean_object* _init_l_Lean_Lsp_instInhabitedRange() { _start: { lean_object* x_1; x_1 = l_Lean_Lsp_instInhabitedRange___closed__1; return x_1; } } LEAN_EXPORT uint8_t l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_beqRange____x40_Lean_Data_Lsp_Basic___hyg_730_(lean_object* x_1, lean_object* x_2) { _start: { lean_object* x_3; lean_object* x_4; lean_object* x_5; lean_object* x_6; uint8_t x_7; x_3 = lean_ctor_get(x_1, 0); x_4 = lean_ctor_get(x_1, 1); x_5 = lean_ctor_get(x_2, 0); x_6 = lean_ctor_get(x_2, 1); x_7 = l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_beqPosition____x40_Lean_Data_Lsp_Basic___hyg_251_(x_3, x_5); if (x_7 == 0) { uint8_t x_8; x_8 = 0; return x_8; } else { uint8_t x_9; x_9 = l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_beqPosition____x40_Lean_Data_Lsp_Basic___hyg_251_(x_4, x_6); return x_9; } } } LEAN_EXPORT lean_object* l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_beqRange____x40_Lean_Data_Lsp_Basic___hyg_730____boxed(lean_object* x_1, lean_object* x_2) { _start: { uint8_t x_3; lean_object* x_4; x_3 = l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_beqRange____x40_Lean_Data_Lsp_Basic___hyg_730_(x_1, x_2); lean_dec(x_2); lean_dec(x_1); x_4 = lean_box(x_3); return x_4; } } static lean_object* _init_l_Lean_Lsp_instBEqRange___closed__1() { _start: { lean_object* x_1; x_1 = lean_alloc_closure((void*)(l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_beqRange____x40_Lean_Data_Lsp_Basic___hyg_730____boxed), 2, 0); return x_1; } } static lean_object* _init_l_Lean_Lsp_instBEqRange() { _start: { lean_object* x_1; x_1 = l_Lean_Lsp_instBEqRange___closed__1; return x_1; } } LEAN_EXPORT uint64_t l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_hashRange____x40_Lean_Data_Lsp_Basic___hyg_821_(lean_object* x_1) { _start: { lean_object* x_2; lean_object* x_3; uint64_t x_4; uint64_t x_5; uint64_t x_6; uint64_t x_7; uint64_t x_8; x_2 = lean_ctor_get(x_1, 0); x_3 = lean_ctor_get(x_1, 1); x_4 = 0; x_5 = l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_hashPosition____x40_Lean_Data_Lsp_Basic___hyg_449_(x_2); x_6 = lean_uint64_mix_hash(x_4, x_5); x_7 = l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_hashPosition____x40_Lean_Data_Lsp_Basic___hyg_449_(x_3); x_8 = lean_uint64_mix_hash(x_6, x_7); return x_8; } } LEAN_EXPORT lean_object* l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_hashRange____x40_Lean_Data_Lsp_Basic___hyg_821____boxed(lean_object* x_1) { _start: { uint64_t x_2; lean_object* x_3; x_2 = l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_hashRange____x40_Lean_Data_Lsp_Basic___hyg_821_(x_1); lean_dec(x_1); x_3 = lean_box_uint64(x_2); return x_3; } } static lean_object* _init_l_Lean_Lsp_instHashableRange___closed__1() { _start: { lean_object* x_1; x_1 = lean_alloc_closure((void*)(l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_hashRange____x40_Lean_Data_Lsp_Basic___hyg_821____boxed), 1, 0); return x_1; } } static lean_object* _init_l_Lean_Lsp_instHashableRange() { _start: { lean_object* x_1; x_1 = l_Lean_Lsp_instHashableRange___closed__1; return x_1; } } static lean_object* _init_l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_toJsonRange____x40_Lean_Data_Lsp_Basic___hyg_866____closed__1() { _start: { lean_object* x_1; x_1 = lean_mk_string_from_bytes("start", 5); return x_1; } } static lean_object* _init_l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_toJsonRange____x40_Lean_Data_Lsp_Basic___hyg_866____closed__2() { _start: { lean_object* x_1; x_1 = lean_mk_string_from_bytes("end", 3); return x_1; } } LEAN_EXPORT lean_object* l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_toJsonRange____x40_Lean_Data_Lsp_Basic___hyg_866_(lean_object* x_1) { _start: { lean_object* x_2; lean_object* x_3; lean_object* x_4; lean_object* x_5; lean_object* x_6; lean_object* x_7; lean_object* x_8; lean_object* x_9; lean_object* x_10; lean_object* x_11; lean_object* x_12; lean_object* x_13; lean_object* x_14; lean_object* x_15; lean_object* x_16; x_2 = lean_ctor_get(x_1, 0); lean_inc(x_2); x_3 = l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_toJsonPosition____x40_Lean_Data_Lsp_Basic___hyg_497_(x_2); x_4 = l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_toJsonRange____x40_Lean_Data_Lsp_Basic___hyg_866____closed__1; x_5 = lean_alloc_ctor(0, 2, 0); lean_ctor_set(x_5, 0, x_4); lean_ctor_set(x_5, 1, x_3); x_6 = lean_box(0); x_7 = lean_alloc_ctor(1, 2, 0); lean_ctor_set(x_7, 0, x_5); lean_ctor_set(x_7, 1, x_6); x_8 = lean_ctor_get(x_1, 1); lean_inc(x_8); lean_dec(x_1); x_9 = l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_toJsonPosition____x40_Lean_Data_Lsp_Basic___hyg_497_(x_8); x_10 = l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_toJsonRange____x40_Lean_Data_Lsp_Basic___hyg_866____closed__2; x_11 = lean_alloc_ctor(0, 2, 0); lean_ctor_set(x_11, 0, x_10); lean_ctor_set(x_11, 1, x_9); x_12 = lean_alloc_ctor(1, 2, 0); lean_ctor_set(x_12, 0, x_11); lean_ctor_set(x_12, 1, x_6); x_13 = lean_alloc_ctor(1, 2, 0); lean_ctor_set(x_13, 0, x_12); lean_ctor_set(x_13, 1, x_6); x_14 = lean_alloc_ctor(1, 2, 0); lean_ctor_set(x_14, 0, x_7); lean_ctor_set(x_14, 1, x_13); x_15 = l_List_join___rarg(x_14); x_16 = l_Lean_Json_mkObj(x_15); return x_16; } } static lean_object* _init_l_Lean_Lsp_instToJsonRange___closed__1() { _start: { lean_object* x_1; x_1 = lean_alloc_closure((void*)(l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_toJsonRange____x40_Lean_Data_Lsp_Basic___hyg_866_), 1, 0); return x_1; } } static lean_object* _init_l_Lean_Lsp_instToJsonRange() { _start: { lean_object* x_1; x_1 = l_Lean_Lsp_instToJsonRange___closed__1; return x_1; } } LEAN_EXPORT lean_object* l_Lean_Json_getObjValAs_x3f___at___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonRange____x40_Lean_Data_Lsp_Basic___hyg_916____spec__1(lean_object* x_1, lean_object* x_2) { _start: { lean_object* x_3; lean_object* x_4; x_3 = l_Lean_Json_getObjValD(x_1, x_2); x_4 = l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonPosition____x40_Lean_Data_Lsp_Basic___hyg_548_(x_3); lean_dec(x_3); return x_4; } } static lean_object* _init_l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonRange____x40_Lean_Data_Lsp_Basic___hyg_916____closed__1() { _start: { lean_object* x_1; x_1 = lean_mk_string_from_bytes("Range", 5); return x_1; } } static lean_object* _init_l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonRange____x40_Lean_Data_Lsp_Basic___hyg_916____closed__2() { _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; lean_object* x_4; x_1 = l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonCancelParams____x40_Lean_Data_Lsp_Basic___hyg_144____closed__1; x_2 = l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonCancelParams____x40_Lean_Data_Lsp_Basic___hyg_144____closed__2; x_3 = l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonRange____x40_Lean_Data_Lsp_Basic___hyg_916____closed__1; x_4 = l_Lean_Name_mkStr3(x_1, x_2, x_3); return x_4; } } static lean_object* _init_l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonRange____x40_Lean_Data_Lsp_Basic___hyg_916____closed__3() { _start: { lean_object* x_1; uint8_t x_2; lean_object* x_3; x_1 = l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonRange____x40_Lean_Data_Lsp_Basic___hyg_916____closed__2; x_2 = 1; x_3 = l_Lean_Name_toString(x_1, x_2); return x_3; } } static lean_object* _init_l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonRange____x40_Lean_Data_Lsp_Basic___hyg_916____closed__4() { _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; x_1 = l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonRange____x40_Lean_Data_Lsp_Basic___hyg_916____closed__3; x_2 = l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonCancelParams____x40_Lean_Data_Lsp_Basic___hyg_144____closed__6; x_3 = lean_string_append(x_1, x_2); return x_3; } } static lean_object* _init_l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonRange____x40_Lean_Data_Lsp_Basic___hyg_916____closed__5() { _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; x_1 = lean_box(0); x_2 = l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_toJsonRange____x40_Lean_Data_Lsp_Basic___hyg_866____closed__1; x_3 = l_Lean_Name_str___override(x_1, x_2); return x_3; } } static lean_object* _init_l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonRange____x40_Lean_Data_Lsp_Basic___hyg_916____closed__6() { _start: { lean_object* x_1; uint8_t x_2; lean_object* x_3; x_1 = l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonRange____x40_Lean_Data_Lsp_Basic___hyg_916____closed__5; x_2 = 1; x_3 = l_Lean_Name_toString(x_1, x_2); return x_3; } } static lean_object* _init_l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonRange____x40_Lean_Data_Lsp_Basic___hyg_916____closed__7() { _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; x_1 = l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonRange____x40_Lean_Data_Lsp_Basic___hyg_916____closed__4; x_2 = l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonRange____x40_Lean_Data_Lsp_Basic___hyg_916____closed__6; x_3 = lean_string_append(x_1, x_2); return x_3; } } static lean_object* _init_l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonRange____x40_Lean_Data_Lsp_Basic___hyg_916____closed__8() { _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; x_1 = l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonRange____x40_Lean_Data_Lsp_Basic___hyg_916____closed__7; x_2 = l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonCancelParams____x40_Lean_Data_Lsp_Basic___hyg_144____closed__11; x_3 = lean_string_append(x_1, x_2); return x_3; } } static lean_object* _init_l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonRange____x40_Lean_Data_Lsp_Basic___hyg_916____closed__9() { _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; x_1 = lean_box(0); x_2 = l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_toJsonRange____x40_Lean_Data_Lsp_Basic___hyg_866____closed__2; x_3 = l_Lean_Name_str___override(x_1, x_2); return x_3; } } static lean_object* _init_l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonRange____x40_Lean_Data_Lsp_Basic___hyg_916____closed__10() { _start: { lean_object* x_1; uint8_t x_2; lean_object* x_3; x_1 = l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonRange____x40_Lean_Data_Lsp_Basic___hyg_916____closed__9; x_2 = 1; x_3 = l_Lean_Name_toString(x_1, x_2); return x_3; } } static lean_object* _init_l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonRange____x40_Lean_Data_Lsp_Basic___hyg_916____closed__11() { _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; x_1 = l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonRange____x40_Lean_Data_Lsp_Basic___hyg_916____closed__4; x_2 = l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonRange____x40_Lean_Data_Lsp_Basic___hyg_916____closed__10; x_3 = lean_string_append(x_1, x_2); return x_3; } } static lean_object* _init_l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonRange____x40_Lean_Data_Lsp_Basic___hyg_916____closed__12() { _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; x_1 = l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonRange____x40_Lean_Data_Lsp_Basic___hyg_916____closed__11; x_2 = l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonCancelParams____x40_Lean_Data_Lsp_Basic___hyg_144____closed__11; x_3 = lean_string_append(x_1, x_2); return x_3; } } LEAN_EXPORT lean_object* l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonRange____x40_Lean_Data_Lsp_Basic___hyg_916_(lean_object* x_1) { _start: { lean_object* x_2; lean_object* x_3; x_2 = l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_toJsonRange____x40_Lean_Data_Lsp_Basic___hyg_866____closed__1; x_3 = l_Lean_Json_getObjValAs_x3f___at___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonRange____x40_Lean_Data_Lsp_Basic___hyg_916____spec__1(x_1, x_2); if (lean_obj_tag(x_3) == 0) { uint8_t x_4; x_4 = !lean_is_exclusive(x_3); if (x_4 == 0) { lean_object* x_5; lean_object* x_6; lean_object* x_7; x_5 = lean_ctor_get(x_3, 0); x_6 = l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonRange____x40_Lean_Data_Lsp_Basic___hyg_916____closed__8; x_7 = lean_string_append(x_6, x_5); lean_dec(x_5); lean_ctor_set(x_3, 0, x_7); return x_3; } else { lean_object* x_8; lean_object* x_9; lean_object* x_10; lean_object* x_11; x_8 = lean_ctor_get(x_3, 0); lean_inc(x_8); lean_dec(x_3); x_9 = l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonRange____x40_Lean_Data_Lsp_Basic___hyg_916____closed__8; x_10 = lean_string_append(x_9, x_8); lean_dec(x_8); x_11 = lean_alloc_ctor(0, 1, 0); lean_ctor_set(x_11, 0, x_10); return x_11; } } else { lean_object* x_12; lean_object* x_13; lean_object* x_14; x_12 = lean_ctor_get(x_3, 0); lean_inc(x_12); lean_dec(x_3); x_13 = l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_toJsonRange____x40_Lean_Data_Lsp_Basic___hyg_866____closed__2; x_14 = l_Lean_Json_getObjValAs_x3f___at___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonRange____x40_Lean_Data_Lsp_Basic___hyg_916____spec__1(x_1, x_13); if (lean_obj_tag(x_14) == 0) { uint8_t x_15; lean_dec(x_12); x_15 = !lean_is_exclusive(x_14); if (x_15 == 0) { lean_object* x_16; lean_object* x_17; lean_object* x_18; x_16 = lean_ctor_get(x_14, 0); x_17 = l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonRange____x40_Lean_Data_Lsp_Basic___hyg_916____closed__12; x_18 = lean_string_append(x_17, x_16); lean_dec(x_16); lean_ctor_set(x_14, 0, x_18); return x_14; } else { lean_object* x_19; lean_object* x_20; lean_object* x_21; lean_object* x_22; x_19 = lean_ctor_get(x_14, 0); lean_inc(x_19); lean_dec(x_14); x_20 = l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonRange____x40_Lean_Data_Lsp_Basic___hyg_916____closed__12; x_21 = lean_string_append(x_20, x_19); lean_dec(x_19); x_22 = lean_alloc_ctor(0, 1, 0); lean_ctor_set(x_22, 0, x_21); return x_22; } } else { uint8_t x_23; x_23 = !lean_is_exclusive(x_14); if (x_23 == 0) { lean_object* x_24; lean_object* x_25; x_24 = lean_ctor_get(x_14, 0); x_25 = lean_alloc_ctor(0, 2, 0); lean_ctor_set(x_25, 0, x_12); lean_ctor_set(x_25, 1, x_24); lean_ctor_set(x_14, 0, x_25); return x_14; } else { lean_object* x_26; lean_object* x_27; lean_object* x_28; x_26 = lean_ctor_get(x_14, 0); lean_inc(x_26); lean_dec(x_14); x_27 = lean_alloc_ctor(0, 2, 0); lean_ctor_set(x_27, 0, x_12); lean_ctor_set(x_27, 1, x_26); x_28 = lean_alloc_ctor(1, 1, 0); lean_ctor_set(x_28, 0, x_27); return x_28; } } } } } LEAN_EXPORT lean_object* l_Lean_Json_getObjValAs_x3f___at___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonRange____x40_Lean_Data_Lsp_Basic___hyg_916____spec__1___boxed(lean_object* x_1, lean_object* x_2) { _start: { lean_object* x_3; x_3 = l_Lean_Json_getObjValAs_x3f___at___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonRange____x40_Lean_Data_Lsp_Basic___hyg_916____spec__1(x_1, x_2); lean_dec(x_2); lean_dec(x_1); return x_3; } } LEAN_EXPORT lean_object* l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonRange____x40_Lean_Data_Lsp_Basic___hyg_916____boxed(lean_object* x_1) { _start: { lean_object* x_2; x_2 = l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonRange____x40_Lean_Data_Lsp_Basic___hyg_916_(x_1); lean_dec(x_1); return x_2; } } static lean_object* _init_l_Lean_Lsp_instFromJsonRange___closed__1() { _start: { lean_object* x_1; x_1 = lean_alloc_closure((void*)(l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonRange____x40_Lean_Data_Lsp_Basic___hyg_916____boxed), 1, 0); return x_1; } } static lean_object* _init_l_Lean_Lsp_instFromJsonRange() { _start: { lean_object* x_1; x_1 = l_Lean_Lsp_instFromJsonRange___closed__1; return x_1; } } LEAN_EXPORT uint8_t l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_ordRange____x40_Lean_Data_Lsp_Basic___hyg_1022_(lean_object* x_1, lean_object* x_2) { _start: { lean_object* x_3; lean_object* x_4; lean_object* x_5; lean_object* x_6; uint8_t x_7; x_3 = lean_ctor_get(x_1, 0); x_4 = lean_ctor_get(x_1, 1); x_5 = lean_ctor_get(x_2, 0); x_6 = lean_ctor_get(x_2, 1); x_7 = l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_ordPosition____x40_Lean_Data_Lsp_Basic___hyg_342_(x_3, x_5); switch (x_7) { case 0: { uint8_t x_8; x_8 = 0; return x_8; } case 1: { uint8_t x_9; x_9 = l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_ordPosition____x40_Lean_Data_Lsp_Basic___hyg_342_(x_4, x_6); switch (x_9) { case 0: { uint8_t x_10; x_10 = 0; return x_10; } case 1: { uint8_t x_11; x_11 = 1; return x_11; } default: { uint8_t x_12; x_12 = 2; return x_12; } } } default: { uint8_t x_13; x_13 = 2; return x_13; } } } } LEAN_EXPORT lean_object* l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_ordRange____x40_Lean_Data_Lsp_Basic___hyg_1022____boxed(lean_object* x_1, lean_object* x_2) { _start: { uint8_t x_3; lean_object* x_4; x_3 = l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_ordRange____x40_Lean_Data_Lsp_Basic___hyg_1022_(x_1, x_2); lean_dec(x_2); lean_dec(x_1); x_4 = lean_box(x_3); return x_4; } } static lean_object* _init_l_Lean_Lsp_instOrdRange___closed__1() { _start: { lean_object* x_1; x_1 = lean_alloc_closure((void*)(l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_ordRange____x40_Lean_Data_Lsp_Basic___hyg_1022____boxed), 2, 0); return x_1; } } static lean_object* _init_l_Lean_Lsp_instOrdRange() { _start: { lean_object* x_1; x_1 = l_Lean_Lsp_instOrdRange___closed__1; return x_1; } } static lean_object* _init_l_Lean_Lsp_instLTRange() { _start: { lean_object* x_1; x_1 = lean_box(0); return x_1; } } static lean_object* _init_l_Lean_Lsp_instLERange() { _start: { lean_object* x_1; x_1 = lean_box(0); return x_1; } } static lean_object* _init_l_Lean_Lsp_instInhabitedLocation___closed__1() { _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; x_1 = l_Lean_Lsp_instInhabitedCancelParams___closed__1; x_2 = l_Lean_Lsp_instInhabitedRange___closed__1; x_3 = lean_alloc_ctor(0, 2, 0); lean_ctor_set(x_3, 0, x_1); lean_ctor_set(x_3, 1, x_2); return x_3; } } static lean_object* _init_l_Lean_Lsp_instInhabitedLocation() { _start: { lean_object* x_1; x_1 = l_Lean_Lsp_instInhabitedLocation___closed__1; return x_1; } } LEAN_EXPORT uint8_t l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_beqLocation____x40_Lean_Data_Lsp_Basic___hyg_1168_(lean_object* x_1, lean_object* x_2) { _start: { lean_object* x_3; lean_object* x_4; lean_object* x_5; lean_object* x_6; uint8_t x_7; x_3 = lean_ctor_get(x_1, 0); x_4 = lean_ctor_get(x_1, 1); x_5 = lean_ctor_get(x_2, 0); x_6 = lean_ctor_get(x_2, 1); x_7 = lean_string_dec_eq(x_3, x_5); if (x_7 == 0) { uint8_t x_8; x_8 = 0; return x_8; } else { uint8_t x_9; x_9 = l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_beqRange____x40_Lean_Data_Lsp_Basic___hyg_730_(x_4, x_6); return x_9; } } } LEAN_EXPORT lean_object* l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_beqLocation____x40_Lean_Data_Lsp_Basic___hyg_1168____boxed(lean_object* x_1, lean_object* x_2) { _start: { uint8_t x_3; lean_object* x_4; x_3 = l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_beqLocation____x40_Lean_Data_Lsp_Basic___hyg_1168_(x_1, x_2); lean_dec(x_2); lean_dec(x_1); x_4 = lean_box(x_3); return x_4; } } static lean_object* _init_l_Lean_Lsp_instBEqLocation___closed__1() { _start: { lean_object* x_1; x_1 = lean_alloc_closure((void*)(l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_beqLocation____x40_Lean_Data_Lsp_Basic___hyg_1168____boxed), 2, 0); return x_1; } } static lean_object* _init_l_Lean_Lsp_instBEqLocation() { _start: { lean_object* x_1; x_1 = l_Lean_Lsp_instBEqLocation___closed__1; return x_1; } } static lean_object* _init_l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_toJsonLocation____x40_Lean_Data_Lsp_Basic___hyg_1263____closed__1() { _start: { lean_object* x_1; x_1 = lean_mk_string_from_bytes("uri", 3); return x_1; } } static lean_object* _init_l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_toJsonLocation____x40_Lean_Data_Lsp_Basic___hyg_1263____closed__2() { _start: { lean_object* x_1; x_1 = lean_mk_string_from_bytes("range", 5); return x_1; } } LEAN_EXPORT lean_object* l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_toJsonLocation____x40_Lean_Data_Lsp_Basic___hyg_1263_(lean_object* x_1) { _start: { lean_object* x_2; lean_object* x_3; lean_object* x_4; lean_object* x_5; lean_object* x_6; lean_object* x_7; lean_object* x_8; lean_object* x_9; lean_object* x_10; lean_object* x_11; lean_object* x_12; lean_object* x_13; lean_object* x_14; lean_object* x_15; lean_object* x_16; x_2 = lean_ctor_get(x_1, 0); lean_inc(x_2); x_3 = lean_ctor_get(x_1, 1); lean_inc(x_3); lean_dec(x_1); x_4 = lean_alloc_ctor(3, 1, 0); lean_ctor_set(x_4, 0, x_2); x_5 = l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_toJsonLocation____x40_Lean_Data_Lsp_Basic___hyg_1263____closed__1; x_6 = lean_alloc_ctor(0, 2, 0); lean_ctor_set(x_6, 0, x_5); lean_ctor_set(x_6, 1, x_4); x_7 = lean_box(0); x_8 = lean_alloc_ctor(1, 2, 0); lean_ctor_set(x_8, 0, x_6); lean_ctor_set(x_8, 1, x_7); x_9 = l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_toJsonRange____x40_Lean_Data_Lsp_Basic___hyg_866_(x_3); x_10 = l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_toJsonLocation____x40_Lean_Data_Lsp_Basic___hyg_1263____closed__2; x_11 = lean_alloc_ctor(0, 2, 0); lean_ctor_set(x_11, 0, x_10); lean_ctor_set(x_11, 1, x_9); x_12 = lean_alloc_ctor(1, 2, 0); lean_ctor_set(x_12, 0, x_11); lean_ctor_set(x_12, 1, x_7); x_13 = lean_alloc_ctor(1, 2, 0); lean_ctor_set(x_13, 0, x_12); lean_ctor_set(x_13, 1, x_7); x_14 = lean_alloc_ctor(1, 2, 0); lean_ctor_set(x_14, 0, x_8); lean_ctor_set(x_14, 1, x_13); x_15 = l_List_join___rarg(x_14); x_16 = l_Lean_Json_mkObj(x_15); return x_16; } } static lean_object* _init_l_Lean_Lsp_instToJsonLocation___closed__1() { _start: { lean_object* x_1; x_1 = lean_alloc_closure((void*)(l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_toJsonLocation____x40_Lean_Data_Lsp_Basic___hyg_1263_), 1, 0); return x_1; } } static lean_object* _init_l_Lean_Lsp_instToJsonLocation() { _start: { lean_object* x_1; x_1 = l_Lean_Lsp_instToJsonLocation___closed__1; return x_1; } } LEAN_EXPORT lean_object* l_Lean_Json_getObjValAs_x3f___at___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonLocation____x40_Lean_Data_Lsp_Basic___hyg_1314____spec__1(lean_object* x_1, lean_object* x_2) { _start: { lean_object* x_3; lean_object* x_4; x_3 = l_Lean_Json_getObjValD(x_1, x_2); x_4 = l_Lean_Json_getStr_x3f(x_3); lean_dec(x_3); return x_4; } } LEAN_EXPORT lean_object* l_Lean_Json_getObjValAs_x3f___at___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonLocation____x40_Lean_Data_Lsp_Basic___hyg_1314____spec__2(lean_object* x_1, lean_object* x_2) { _start: { lean_object* x_3; lean_object* x_4; x_3 = l_Lean_Json_getObjValD(x_1, x_2); x_4 = l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonRange____x40_Lean_Data_Lsp_Basic___hyg_916_(x_3); lean_dec(x_3); return x_4; } } static lean_object* _init_l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonLocation____x40_Lean_Data_Lsp_Basic___hyg_1314____closed__1() { _start: { lean_object* x_1; x_1 = lean_mk_string_from_bytes("Location", 8); return x_1; } } static lean_object* _init_l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonLocation____x40_Lean_Data_Lsp_Basic___hyg_1314____closed__2() { _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; lean_object* x_4; x_1 = l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonCancelParams____x40_Lean_Data_Lsp_Basic___hyg_144____closed__1; x_2 = l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonCancelParams____x40_Lean_Data_Lsp_Basic___hyg_144____closed__2; x_3 = l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonLocation____x40_Lean_Data_Lsp_Basic___hyg_1314____closed__1; x_4 = l_Lean_Name_mkStr3(x_1, x_2, x_3); return x_4; } } static lean_object* _init_l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonLocation____x40_Lean_Data_Lsp_Basic___hyg_1314____closed__3() { _start: { lean_object* x_1; uint8_t x_2; lean_object* x_3; x_1 = l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonLocation____x40_Lean_Data_Lsp_Basic___hyg_1314____closed__2; x_2 = 1; x_3 = l_Lean_Name_toString(x_1, x_2); return x_3; } } static lean_object* _init_l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonLocation____x40_Lean_Data_Lsp_Basic___hyg_1314____closed__4() { _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; x_1 = l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonLocation____x40_Lean_Data_Lsp_Basic___hyg_1314____closed__3; x_2 = l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonCancelParams____x40_Lean_Data_Lsp_Basic___hyg_144____closed__6; x_3 = lean_string_append(x_1, x_2); return x_3; } } static lean_object* _init_l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonLocation____x40_Lean_Data_Lsp_Basic___hyg_1314____closed__5() { _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; x_1 = lean_box(0); x_2 = l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_toJsonLocation____x40_Lean_Data_Lsp_Basic___hyg_1263____closed__1; x_3 = l_Lean_Name_str___override(x_1, x_2); return x_3; } } static lean_object* _init_l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonLocation____x40_Lean_Data_Lsp_Basic___hyg_1314____closed__6() { _start: { lean_object* x_1; uint8_t x_2; lean_object* x_3; x_1 = l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonLocation____x40_Lean_Data_Lsp_Basic___hyg_1314____closed__5; x_2 = 1; x_3 = l_Lean_Name_toString(x_1, x_2); return x_3; } } static lean_object* _init_l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonLocation____x40_Lean_Data_Lsp_Basic___hyg_1314____closed__7() { _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; x_1 = l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonLocation____x40_Lean_Data_Lsp_Basic___hyg_1314____closed__4; x_2 = l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonLocation____x40_Lean_Data_Lsp_Basic___hyg_1314____closed__6; x_3 = lean_string_append(x_1, x_2); return x_3; } } static lean_object* _init_l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonLocation____x40_Lean_Data_Lsp_Basic___hyg_1314____closed__8() { _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; x_1 = l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonLocation____x40_Lean_Data_Lsp_Basic___hyg_1314____closed__7; x_2 = l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonCancelParams____x40_Lean_Data_Lsp_Basic___hyg_144____closed__11; x_3 = lean_string_append(x_1, x_2); return x_3; } } static lean_object* _init_l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonLocation____x40_Lean_Data_Lsp_Basic___hyg_1314____closed__9() { _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; x_1 = lean_box(0); x_2 = l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_toJsonLocation____x40_Lean_Data_Lsp_Basic___hyg_1263____closed__2; x_3 = l_Lean_Name_str___override(x_1, x_2); return x_3; } } static lean_object* _init_l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonLocation____x40_Lean_Data_Lsp_Basic___hyg_1314____closed__10() { _start: { lean_object* x_1; uint8_t x_2; lean_object* x_3; x_1 = l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonLocation____x40_Lean_Data_Lsp_Basic___hyg_1314____closed__9; x_2 = 1; x_3 = l_Lean_Name_toString(x_1, x_2); return x_3; } } static lean_object* _init_l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonLocation____x40_Lean_Data_Lsp_Basic___hyg_1314____closed__11() { _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; x_1 = l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonLocation____x40_Lean_Data_Lsp_Basic___hyg_1314____closed__4; x_2 = l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonLocation____x40_Lean_Data_Lsp_Basic___hyg_1314____closed__10; x_3 = lean_string_append(x_1, x_2); return x_3; } } static lean_object* _init_l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonLocation____x40_Lean_Data_Lsp_Basic___hyg_1314____closed__12() { _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; x_1 = l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonLocation____x40_Lean_Data_Lsp_Basic___hyg_1314____closed__11; x_2 = l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonCancelParams____x40_Lean_Data_Lsp_Basic___hyg_144____closed__11; x_3 = lean_string_append(x_1, x_2); return x_3; } } LEAN_EXPORT lean_object* l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonLocation____x40_Lean_Data_Lsp_Basic___hyg_1314_(lean_object* x_1) { _start: { lean_object* x_2; lean_object* x_3; x_2 = l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_toJsonLocation____x40_Lean_Data_Lsp_Basic___hyg_1263____closed__1; x_3 = l_Lean_Json_getObjValAs_x3f___at___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonLocation____x40_Lean_Data_Lsp_Basic___hyg_1314____spec__1(x_1, x_2); if (lean_obj_tag(x_3) == 0) { uint8_t x_4; x_4 = !lean_is_exclusive(x_3); if (x_4 == 0) { lean_object* x_5; lean_object* x_6; lean_object* x_7; x_5 = lean_ctor_get(x_3, 0); x_6 = l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonLocation____x40_Lean_Data_Lsp_Basic___hyg_1314____closed__8; x_7 = lean_string_append(x_6, x_5); lean_dec(x_5); lean_ctor_set(x_3, 0, x_7); return x_3; } else { lean_object* x_8; lean_object* x_9; lean_object* x_10; lean_object* x_11; x_8 = lean_ctor_get(x_3, 0); lean_inc(x_8); lean_dec(x_3); x_9 = l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonLocation____x40_Lean_Data_Lsp_Basic___hyg_1314____closed__8; x_10 = lean_string_append(x_9, x_8); lean_dec(x_8); x_11 = lean_alloc_ctor(0, 1, 0); lean_ctor_set(x_11, 0, x_10); return x_11; } } else { lean_object* x_12; lean_object* x_13; lean_object* x_14; x_12 = lean_ctor_get(x_3, 0); lean_inc(x_12); lean_dec(x_3); x_13 = l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_toJsonLocation____x40_Lean_Data_Lsp_Basic___hyg_1263____closed__2; x_14 = l_Lean_Json_getObjValAs_x3f___at___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonLocation____x40_Lean_Data_Lsp_Basic___hyg_1314____spec__2(x_1, x_13); if (lean_obj_tag(x_14) == 0) { uint8_t x_15; lean_dec(x_12); x_15 = !lean_is_exclusive(x_14); if (x_15 == 0) { lean_object* x_16; lean_object* x_17; lean_object* x_18; x_16 = lean_ctor_get(x_14, 0); x_17 = l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonLocation____x40_Lean_Data_Lsp_Basic___hyg_1314____closed__12; x_18 = lean_string_append(x_17, x_16); lean_dec(x_16); lean_ctor_set(x_14, 0, x_18); return x_14; } else { lean_object* x_19; lean_object* x_20; lean_object* x_21; lean_object* x_22; x_19 = lean_ctor_get(x_14, 0); lean_inc(x_19); lean_dec(x_14); x_20 = l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonLocation____x40_Lean_Data_Lsp_Basic___hyg_1314____closed__12; x_21 = lean_string_append(x_20, x_19); lean_dec(x_19); x_22 = lean_alloc_ctor(0, 1, 0); lean_ctor_set(x_22, 0, x_21); return x_22; } } else { uint8_t x_23; x_23 = !lean_is_exclusive(x_14); if (x_23 == 0) { lean_object* x_24; lean_object* x_25; x_24 = lean_ctor_get(x_14, 0); x_25 = lean_alloc_ctor(0, 2, 0); lean_ctor_set(x_25, 0, x_12); lean_ctor_set(x_25, 1, x_24); lean_ctor_set(x_14, 0, x_25); return x_14; } else { lean_object* x_26; lean_object* x_27; lean_object* x_28; x_26 = lean_ctor_get(x_14, 0); lean_inc(x_26); lean_dec(x_14); x_27 = lean_alloc_ctor(0, 2, 0); lean_ctor_set(x_27, 0, x_12); lean_ctor_set(x_27, 1, x_26); x_28 = lean_alloc_ctor(1, 1, 0); lean_ctor_set(x_28, 0, x_27); return x_28; } } } } } LEAN_EXPORT lean_object* l_Lean_Json_getObjValAs_x3f___at___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonLocation____x40_Lean_Data_Lsp_Basic___hyg_1314____spec__1___boxed(lean_object* x_1, lean_object* x_2) { _start: { lean_object* x_3; x_3 = l_Lean_Json_getObjValAs_x3f___at___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonLocation____x40_Lean_Data_Lsp_Basic___hyg_1314____spec__1(x_1, x_2); lean_dec(x_2); lean_dec(x_1); return x_3; } } LEAN_EXPORT lean_object* l_Lean_Json_getObjValAs_x3f___at___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonLocation____x40_Lean_Data_Lsp_Basic___hyg_1314____spec__2___boxed(lean_object* x_1, lean_object* x_2) { _start: { lean_object* x_3; x_3 = l_Lean_Json_getObjValAs_x3f___at___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonLocation____x40_Lean_Data_Lsp_Basic___hyg_1314____spec__2(x_1, x_2); lean_dec(x_2); lean_dec(x_1); return x_3; } } LEAN_EXPORT lean_object* l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonLocation____x40_Lean_Data_Lsp_Basic___hyg_1314____boxed(lean_object* x_1) { _start: { lean_object* x_2; x_2 = l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonLocation____x40_Lean_Data_Lsp_Basic___hyg_1314_(x_1); lean_dec(x_1); return x_2; } } static lean_object* _init_l_Lean_Lsp_instFromJsonLocation___closed__1() { _start: { lean_object* x_1; x_1 = lean_alloc_closure((void*)(l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonLocation____x40_Lean_Data_Lsp_Basic___hyg_1314____boxed), 1, 0); return x_1; } } static lean_object* _init_l_Lean_Lsp_instFromJsonLocation() { _start: { lean_object* x_1; x_1 = l_Lean_Lsp_instFromJsonLocation___closed__1; return x_1; } } LEAN_EXPORT lean_object* l_Lean_Json_opt___at___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_toJsonLocationLink____x40_Lean_Data_Lsp_Basic___hyg_1456____spec__1(lean_object* x_1, lean_object* x_2) { _start: { if (lean_obj_tag(x_2) == 0) { lean_object* x_3; lean_dec(x_1); x_3 = lean_box(0); return x_3; } else { lean_object* x_4; lean_object* x_5; lean_object* x_6; lean_object* x_7; lean_object* x_8; x_4 = lean_ctor_get(x_2, 0); lean_inc(x_4); lean_dec(x_2); x_5 = l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_toJsonRange____x40_Lean_Data_Lsp_Basic___hyg_866_(x_4); x_6 = lean_alloc_ctor(0, 2, 0); lean_ctor_set(x_6, 0, x_1); lean_ctor_set(x_6, 1, x_5); x_7 = lean_box(0); x_8 = lean_alloc_ctor(1, 2, 0); lean_ctor_set(x_8, 0, x_6); lean_ctor_set(x_8, 1, x_7); return x_8; } } } static lean_object* _init_l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_toJsonLocationLink____x40_Lean_Data_Lsp_Basic___hyg_1456____closed__1() { _start: { lean_object* x_1; x_1 = lean_mk_string_from_bytes("originSelectionRange", 20); return x_1; } } static lean_object* _init_l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_toJsonLocationLink____x40_Lean_Data_Lsp_Basic___hyg_1456____closed__2() { _start: { lean_object* x_1; x_1 = lean_mk_string_from_bytes("targetUri", 9); return x_1; } } static lean_object* _init_l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_toJsonLocationLink____x40_Lean_Data_Lsp_Basic___hyg_1456____closed__3() { _start: { lean_object* x_1; x_1 = lean_mk_string_from_bytes("targetRange", 11); return x_1; } } static lean_object* _init_l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_toJsonLocationLink____x40_Lean_Data_Lsp_Basic___hyg_1456____closed__4() { _start: { lean_object* x_1; x_1 = lean_mk_string_from_bytes("targetSelectionRange", 20); return x_1; } } LEAN_EXPORT lean_object* l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_toJsonLocationLink____x40_Lean_Data_Lsp_Basic___hyg_1456_(lean_object* x_1) { _start: { lean_object* x_2; lean_object* x_3; lean_object* x_4; lean_object* x_5; lean_object* x_6; lean_object* x_7; lean_object* x_8; lean_object* x_9; lean_object* x_10; lean_object* x_11; lean_object* x_12; lean_object* x_13; lean_object* x_14; lean_object* x_15; lean_object* x_16; lean_object* x_17; lean_object* x_18; lean_object* x_19; lean_object* x_20; lean_object* x_21; lean_object* x_22; lean_object* x_23; lean_object* x_24; lean_object* x_25; lean_object* x_26; x_2 = lean_ctor_get(x_1, 0); lean_inc(x_2); x_3 = l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_toJsonLocationLink____x40_Lean_Data_Lsp_Basic___hyg_1456____closed__1; x_4 = l_Lean_Json_opt___at___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_toJsonLocationLink____x40_Lean_Data_Lsp_Basic___hyg_1456____spec__1(x_3, x_2); x_5 = lean_ctor_get(x_1, 1); lean_inc(x_5); x_6 = lean_alloc_ctor(3, 1, 0); lean_ctor_set(x_6, 0, x_5); x_7 = l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_toJsonLocationLink____x40_Lean_Data_Lsp_Basic___hyg_1456____closed__2; x_8 = lean_alloc_ctor(0, 2, 0); lean_ctor_set(x_8, 0, x_7); lean_ctor_set(x_8, 1, x_6); x_9 = lean_box(0); x_10 = lean_alloc_ctor(1, 2, 0); lean_ctor_set(x_10, 0, x_8); lean_ctor_set(x_10, 1, x_9); x_11 = lean_ctor_get(x_1, 2); lean_inc(x_11); x_12 = l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_toJsonRange____x40_Lean_Data_Lsp_Basic___hyg_866_(x_11); x_13 = l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_toJsonLocationLink____x40_Lean_Data_Lsp_Basic___hyg_1456____closed__3; x_14 = lean_alloc_ctor(0, 2, 0); lean_ctor_set(x_14, 0, x_13); lean_ctor_set(x_14, 1, x_12); x_15 = lean_alloc_ctor(1, 2, 0); lean_ctor_set(x_15, 0, x_14); lean_ctor_set(x_15, 1, x_9); x_16 = lean_ctor_get(x_1, 3); lean_inc(x_16); lean_dec(x_1); x_17 = l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_toJsonRange____x40_Lean_Data_Lsp_Basic___hyg_866_(x_16); x_18 = l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_toJsonLocationLink____x40_Lean_Data_Lsp_Basic___hyg_1456____closed__4; x_19 = lean_alloc_ctor(0, 2, 0); lean_ctor_set(x_19, 0, x_18); lean_ctor_set(x_19, 1, x_17); x_20 = lean_alloc_ctor(1, 2, 0); lean_ctor_set(x_20, 0, x_19); lean_ctor_set(x_20, 1, x_9); x_21 = lean_alloc_ctor(1, 2, 0); lean_ctor_set(x_21, 0, x_20); lean_ctor_set(x_21, 1, x_9); x_22 = lean_alloc_ctor(1, 2, 0); lean_ctor_set(x_22, 0, x_15); lean_ctor_set(x_22, 1, x_21); x_23 = lean_alloc_ctor(1, 2, 0); lean_ctor_set(x_23, 0, x_10); lean_ctor_set(x_23, 1, x_22); x_24 = lean_alloc_ctor(1, 2, 0); lean_ctor_set(x_24, 0, x_4); lean_ctor_set(x_24, 1, x_23); x_25 = l_List_join___rarg(x_24); x_26 = l_Lean_Json_mkObj(x_25); return x_26; } } static lean_object* _init_l_Lean_Lsp_instToJsonLocationLink___closed__1() { _start: { lean_object* x_1; x_1 = lean_alloc_closure((void*)(l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_toJsonLocationLink____x40_Lean_Data_Lsp_Basic___hyg_1456_), 1, 0); return x_1; } } static lean_object* _init_l_Lean_Lsp_instToJsonLocationLink() { _start: { lean_object* x_1; x_1 = l_Lean_Lsp_instToJsonLocationLink___closed__1; return x_1; } } static lean_object* _init_l_Lean_Json_getObjValAs_x3f___at___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonLocationLink____x40_Lean_Data_Lsp_Basic___hyg_1529____spec__1___closed__1() { _start: { lean_object* x_1; lean_object* x_2; x_1 = lean_box(0); x_2 = lean_alloc_ctor(1, 1, 0); lean_ctor_set(x_2, 0, x_1); return x_2; } } LEAN_EXPORT lean_object* l_Lean_Json_getObjValAs_x3f___at___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonLocationLink____x40_Lean_Data_Lsp_Basic___hyg_1529____spec__1(lean_object* x_1, lean_object* x_2) { _start: { lean_object* x_3; x_3 = l_Lean_Json_getObjValD(x_1, x_2); if (lean_obj_tag(x_3) == 0) { lean_object* x_4; x_4 = l_Lean_Json_getObjValAs_x3f___at___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonLocationLink____x40_Lean_Data_Lsp_Basic___hyg_1529____spec__1___closed__1; return x_4; } else { lean_object* x_5; x_5 = l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonRange____x40_Lean_Data_Lsp_Basic___hyg_916_(x_3); lean_dec(x_3); if (lean_obj_tag(x_5) == 0) { uint8_t x_6; x_6 = !lean_is_exclusive(x_5); if (x_6 == 0) { return x_5; } else { lean_object* x_7; lean_object* x_8; x_7 = lean_ctor_get(x_5, 0); lean_inc(x_7); lean_dec(x_5); x_8 = lean_alloc_ctor(0, 1, 0); lean_ctor_set(x_8, 0, x_7); return x_8; } } else { uint8_t x_9; x_9 = !lean_is_exclusive(x_5); if (x_9 == 0) { lean_object* x_10; lean_object* x_11; x_10 = lean_ctor_get(x_5, 0); x_11 = lean_alloc_ctor(1, 1, 0); lean_ctor_set(x_11, 0, x_10); lean_ctor_set(x_5, 0, x_11); return x_5; } else { lean_object* x_12; lean_object* x_13; lean_object* x_14; x_12 = lean_ctor_get(x_5, 0); lean_inc(x_12); lean_dec(x_5); x_13 = lean_alloc_ctor(1, 1, 0); lean_ctor_set(x_13, 0, x_12); x_14 = lean_alloc_ctor(1, 1, 0); lean_ctor_set(x_14, 0, x_13); return x_14; } } } } } static lean_object* _init_l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonLocationLink____x40_Lean_Data_Lsp_Basic___hyg_1529____closed__1() { _start: { lean_object* x_1; x_1 = lean_mk_string_from_bytes("LocationLink", 12); return x_1; } } static lean_object* _init_l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonLocationLink____x40_Lean_Data_Lsp_Basic___hyg_1529____closed__2() { _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; lean_object* x_4; x_1 = l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonCancelParams____x40_Lean_Data_Lsp_Basic___hyg_144____closed__1; x_2 = l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonCancelParams____x40_Lean_Data_Lsp_Basic___hyg_144____closed__2; x_3 = l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonLocationLink____x40_Lean_Data_Lsp_Basic___hyg_1529____closed__1; x_4 = l_Lean_Name_mkStr3(x_1, x_2, x_3); return x_4; } } static lean_object* _init_l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonLocationLink____x40_Lean_Data_Lsp_Basic___hyg_1529____closed__3() { _start: { lean_object* x_1; uint8_t x_2; lean_object* x_3; x_1 = l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonLocationLink____x40_Lean_Data_Lsp_Basic___hyg_1529____closed__2; x_2 = 1; x_3 = l_Lean_Name_toString(x_1, x_2); return x_3; } } static lean_object* _init_l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonLocationLink____x40_Lean_Data_Lsp_Basic___hyg_1529____closed__4() { _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; x_1 = l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonLocationLink____x40_Lean_Data_Lsp_Basic___hyg_1529____closed__3; x_2 = l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonCancelParams____x40_Lean_Data_Lsp_Basic___hyg_144____closed__6; x_3 = lean_string_append(x_1, x_2); return x_3; } } static lean_object* _init_l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonLocationLink____x40_Lean_Data_Lsp_Basic___hyg_1529____closed__5() { _start: { lean_object* x_1; x_1 = lean_mk_string_from_bytes("originSelectionRange?", 21); return x_1; } } static lean_object* _init_l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonLocationLink____x40_Lean_Data_Lsp_Basic___hyg_1529____closed__6() { _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; x_1 = lean_box(0); x_2 = l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonLocationLink____x40_Lean_Data_Lsp_Basic___hyg_1529____closed__5; x_3 = l_Lean_Name_str___override(x_1, x_2); return x_3; } } static lean_object* _init_l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonLocationLink____x40_Lean_Data_Lsp_Basic___hyg_1529____closed__7() { _start: { lean_object* x_1; uint8_t x_2; lean_object* x_3; x_1 = l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonLocationLink____x40_Lean_Data_Lsp_Basic___hyg_1529____closed__6; x_2 = 1; x_3 = l_Lean_Name_toString(x_1, x_2); return x_3; } } static lean_object* _init_l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonLocationLink____x40_Lean_Data_Lsp_Basic___hyg_1529____closed__8() { _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; x_1 = l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonLocationLink____x40_Lean_Data_Lsp_Basic___hyg_1529____closed__4; x_2 = l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonLocationLink____x40_Lean_Data_Lsp_Basic___hyg_1529____closed__7; x_3 = lean_string_append(x_1, x_2); return x_3; } } static lean_object* _init_l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonLocationLink____x40_Lean_Data_Lsp_Basic___hyg_1529____closed__9() { _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; x_1 = l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonLocationLink____x40_Lean_Data_Lsp_Basic___hyg_1529____closed__8; x_2 = l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonCancelParams____x40_Lean_Data_Lsp_Basic___hyg_144____closed__11; x_3 = lean_string_append(x_1, x_2); return x_3; } } static lean_object* _init_l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonLocationLink____x40_Lean_Data_Lsp_Basic___hyg_1529____closed__10() { _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; x_1 = lean_box(0); x_2 = l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_toJsonLocationLink____x40_Lean_Data_Lsp_Basic___hyg_1456____closed__2; x_3 = l_Lean_Name_str___override(x_1, x_2); return x_3; } } static lean_object* _init_l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonLocationLink____x40_Lean_Data_Lsp_Basic___hyg_1529____closed__11() { _start: { lean_object* x_1; uint8_t x_2; lean_object* x_3; x_1 = l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonLocationLink____x40_Lean_Data_Lsp_Basic___hyg_1529____closed__10; x_2 = 1; x_3 = l_Lean_Name_toString(x_1, x_2); return x_3; } } static lean_object* _init_l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonLocationLink____x40_Lean_Data_Lsp_Basic___hyg_1529____closed__12() { _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; x_1 = l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonLocationLink____x40_Lean_Data_Lsp_Basic___hyg_1529____closed__4; x_2 = l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonLocationLink____x40_Lean_Data_Lsp_Basic___hyg_1529____closed__11; x_3 = lean_string_append(x_1, x_2); return x_3; } } static lean_object* _init_l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonLocationLink____x40_Lean_Data_Lsp_Basic___hyg_1529____closed__13() { _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; x_1 = l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonLocationLink____x40_Lean_Data_Lsp_Basic___hyg_1529____closed__12; x_2 = l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonCancelParams____x40_Lean_Data_Lsp_Basic___hyg_144____closed__11; x_3 = lean_string_append(x_1, x_2); return x_3; } } static lean_object* _init_l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonLocationLink____x40_Lean_Data_Lsp_Basic___hyg_1529____closed__14() { _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; x_1 = lean_box(0); x_2 = l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_toJsonLocationLink____x40_Lean_Data_Lsp_Basic___hyg_1456____closed__3; x_3 = l_Lean_Name_str___override(x_1, x_2); return x_3; } } static lean_object* _init_l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonLocationLink____x40_Lean_Data_Lsp_Basic___hyg_1529____closed__15() { _start: { lean_object* x_1; uint8_t x_2; lean_object* x_3; x_1 = l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonLocationLink____x40_Lean_Data_Lsp_Basic___hyg_1529____closed__14; x_2 = 1; x_3 = l_Lean_Name_toString(x_1, x_2); return x_3; } } static lean_object* _init_l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonLocationLink____x40_Lean_Data_Lsp_Basic___hyg_1529____closed__16() { _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; x_1 = l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonLocationLink____x40_Lean_Data_Lsp_Basic___hyg_1529____closed__4; x_2 = l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonLocationLink____x40_Lean_Data_Lsp_Basic___hyg_1529____closed__15; x_3 = lean_string_append(x_1, x_2); return x_3; } } static lean_object* _init_l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonLocationLink____x40_Lean_Data_Lsp_Basic___hyg_1529____closed__17() { _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; x_1 = l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonLocationLink____x40_Lean_Data_Lsp_Basic___hyg_1529____closed__16; x_2 = l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonCancelParams____x40_Lean_Data_Lsp_Basic___hyg_144____closed__11; x_3 = lean_string_append(x_1, x_2); return x_3; } } static lean_object* _init_l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonLocationLink____x40_Lean_Data_Lsp_Basic___hyg_1529____closed__18() { _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; x_1 = lean_box(0); x_2 = l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_toJsonLocationLink____x40_Lean_Data_Lsp_Basic___hyg_1456____closed__4; x_3 = l_Lean_Name_str___override(x_1, x_2); return x_3; } } static lean_object* _init_l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonLocationLink____x40_Lean_Data_Lsp_Basic___hyg_1529____closed__19() { _start: { lean_object* x_1; uint8_t x_2; lean_object* x_3; x_1 = l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonLocationLink____x40_Lean_Data_Lsp_Basic___hyg_1529____closed__18; x_2 = 1; x_3 = l_Lean_Name_toString(x_1, x_2); return x_3; } } static lean_object* _init_l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonLocationLink____x40_Lean_Data_Lsp_Basic___hyg_1529____closed__20() { _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; x_1 = l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonLocationLink____x40_Lean_Data_Lsp_Basic___hyg_1529____closed__4; x_2 = l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonLocationLink____x40_Lean_Data_Lsp_Basic___hyg_1529____closed__19; x_3 = lean_string_append(x_1, x_2); return x_3; } } static lean_object* _init_l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonLocationLink____x40_Lean_Data_Lsp_Basic___hyg_1529____closed__21() { _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; x_1 = l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonLocationLink____x40_Lean_Data_Lsp_Basic___hyg_1529____closed__20; x_2 = l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonCancelParams____x40_Lean_Data_Lsp_Basic___hyg_144____closed__11; x_3 = lean_string_append(x_1, x_2); return x_3; } } LEAN_EXPORT lean_object* l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonLocationLink____x40_Lean_Data_Lsp_Basic___hyg_1529_(lean_object* x_1) { _start: { lean_object* x_2; lean_object* x_3; x_2 = l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_toJsonLocationLink____x40_Lean_Data_Lsp_Basic___hyg_1456____closed__1; x_3 = l_Lean_Json_getObjValAs_x3f___at___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonLocationLink____x40_Lean_Data_Lsp_Basic___hyg_1529____spec__1(x_1, x_2); if (lean_obj_tag(x_3) == 0) { uint8_t x_4; x_4 = !lean_is_exclusive(x_3); if (x_4 == 0) { lean_object* x_5; lean_object* x_6; lean_object* x_7; x_5 = lean_ctor_get(x_3, 0); x_6 = l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonLocationLink____x40_Lean_Data_Lsp_Basic___hyg_1529____closed__9; x_7 = lean_string_append(x_6, x_5); lean_dec(x_5); lean_ctor_set(x_3, 0, x_7); return x_3; } else { lean_object* x_8; lean_object* x_9; lean_object* x_10; lean_object* x_11; x_8 = lean_ctor_get(x_3, 0); lean_inc(x_8); lean_dec(x_3); x_9 = l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonLocationLink____x40_Lean_Data_Lsp_Basic___hyg_1529____closed__9; x_10 = lean_string_append(x_9, x_8); lean_dec(x_8); x_11 = lean_alloc_ctor(0, 1, 0); lean_ctor_set(x_11, 0, x_10); return x_11; } } else { lean_object* x_12; lean_object* x_13; lean_object* x_14; x_12 = lean_ctor_get(x_3, 0); lean_inc(x_12); lean_dec(x_3); x_13 = l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_toJsonLocationLink____x40_Lean_Data_Lsp_Basic___hyg_1456____closed__2; x_14 = l_Lean_Json_getObjValAs_x3f___at___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonLocation____x40_Lean_Data_Lsp_Basic___hyg_1314____spec__1(x_1, x_13); if (lean_obj_tag(x_14) == 0) { uint8_t x_15; lean_dec(x_12); x_15 = !lean_is_exclusive(x_14); if (x_15 == 0) { lean_object* x_16; lean_object* x_17; lean_object* x_18; x_16 = lean_ctor_get(x_14, 0); x_17 = l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonLocationLink____x40_Lean_Data_Lsp_Basic___hyg_1529____closed__13; x_18 = lean_string_append(x_17, x_16); lean_dec(x_16); lean_ctor_set(x_14, 0, x_18); return x_14; } else { lean_object* x_19; lean_object* x_20; lean_object* x_21; lean_object* x_22; x_19 = lean_ctor_get(x_14, 0); lean_inc(x_19); lean_dec(x_14); x_20 = l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonLocationLink____x40_Lean_Data_Lsp_Basic___hyg_1529____closed__13; x_21 = lean_string_append(x_20, x_19); lean_dec(x_19); x_22 = lean_alloc_ctor(0, 1, 0); lean_ctor_set(x_22, 0, x_21); return x_22; } } else { lean_object* x_23; lean_object* x_24; lean_object* x_25; x_23 = lean_ctor_get(x_14, 0); lean_inc(x_23); lean_dec(x_14); x_24 = l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_toJsonLocationLink____x40_Lean_Data_Lsp_Basic___hyg_1456____closed__3; x_25 = l_Lean_Json_getObjValAs_x3f___at___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonLocation____x40_Lean_Data_Lsp_Basic___hyg_1314____spec__2(x_1, x_24); if (lean_obj_tag(x_25) == 0) { uint8_t x_26; lean_dec(x_23); lean_dec(x_12); x_26 = !lean_is_exclusive(x_25); if (x_26 == 0) { lean_object* x_27; lean_object* x_28; lean_object* x_29; x_27 = lean_ctor_get(x_25, 0); x_28 = l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonLocationLink____x40_Lean_Data_Lsp_Basic___hyg_1529____closed__17; x_29 = lean_string_append(x_28, x_27); lean_dec(x_27); lean_ctor_set(x_25, 0, x_29); return x_25; } else { lean_object* x_30; lean_object* x_31; lean_object* x_32; lean_object* x_33; x_30 = lean_ctor_get(x_25, 0); lean_inc(x_30); lean_dec(x_25); x_31 = l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonLocationLink____x40_Lean_Data_Lsp_Basic___hyg_1529____closed__17; x_32 = lean_string_append(x_31, x_30); lean_dec(x_30); x_33 = lean_alloc_ctor(0, 1, 0); lean_ctor_set(x_33, 0, x_32); return x_33; } } else { lean_object* x_34; lean_object* x_35; lean_object* x_36; x_34 = lean_ctor_get(x_25, 0); lean_inc(x_34); lean_dec(x_25); x_35 = l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_toJsonLocationLink____x40_Lean_Data_Lsp_Basic___hyg_1456____closed__4; x_36 = l_Lean_Json_getObjValAs_x3f___at___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonLocation____x40_Lean_Data_Lsp_Basic___hyg_1314____spec__2(x_1, x_35); if (lean_obj_tag(x_36) == 0) { uint8_t x_37; lean_dec(x_34); lean_dec(x_23); lean_dec(x_12); x_37 = !lean_is_exclusive(x_36); if (x_37 == 0) { lean_object* x_38; lean_object* x_39; lean_object* x_40; x_38 = lean_ctor_get(x_36, 0); x_39 = l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonLocationLink____x40_Lean_Data_Lsp_Basic___hyg_1529____closed__21; x_40 = lean_string_append(x_39, x_38); lean_dec(x_38); lean_ctor_set(x_36, 0, x_40); return x_36; } else { lean_object* x_41; lean_object* x_42; lean_object* x_43; lean_object* x_44; x_41 = lean_ctor_get(x_36, 0); lean_inc(x_41); lean_dec(x_36); x_42 = l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonLocationLink____x40_Lean_Data_Lsp_Basic___hyg_1529____closed__21; x_43 = lean_string_append(x_42, x_41); lean_dec(x_41); x_44 = lean_alloc_ctor(0, 1, 0); lean_ctor_set(x_44, 0, x_43); return x_44; } } else { uint8_t x_45; x_45 = !lean_is_exclusive(x_36); if (x_45 == 0) { lean_object* x_46; lean_object* x_47; x_46 = lean_ctor_get(x_36, 0); x_47 = lean_alloc_ctor(0, 4, 0); lean_ctor_set(x_47, 0, x_12); lean_ctor_set(x_47, 1, x_23); lean_ctor_set(x_47, 2, x_34); lean_ctor_set(x_47, 3, x_46); lean_ctor_set(x_36, 0, x_47); return x_36; } else { lean_object* x_48; lean_object* x_49; lean_object* x_50; x_48 = lean_ctor_get(x_36, 0); lean_inc(x_48); lean_dec(x_36); x_49 = lean_alloc_ctor(0, 4, 0); lean_ctor_set(x_49, 0, x_12); lean_ctor_set(x_49, 1, x_23); lean_ctor_set(x_49, 2, x_34); lean_ctor_set(x_49, 3, x_48); x_50 = lean_alloc_ctor(1, 1, 0); lean_ctor_set(x_50, 0, x_49); return x_50; } } } } } } } LEAN_EXPORT lean_object* l_Lean_Json_getObjValAs_x3f___at___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonLocationLink____x40_Lean_Data_Lsp_Basic___hyg_1529____spec__1___boxed(lean_object* x_1, lean_object* x_2) { _start: { lean_object* x_3; x_3 = l_Lean_Json_getObjValAs_x3f___at___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonLocationLink____x40_Lean_Data_Lsp_Basic___hyg_1529____spec__1(x_1, x_2); lean_dec(x_2); lean_dec(x_1); return x_3; } } LEAN_EXPORT lean_object* l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonLocationLink____x40_Lean_Data_Lsp_Basic___hyg_1529____boxed(lean_object* x_1) { _start: { lean_object* x_2; x_2 = l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonLocationLink____x40_Lean_Data_Lsp_Basic___hyg_1529_(x_1); lean_dec(x_1); return x_2; } } static lean_object* _init_l_Lean_Lsp_instFromJsonLocationLink___closed__1() { _start: { lean_object* x_1; x_1 = lean_alloc_closure((void*)(l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonLocationLink____x40_Lean_Data_Lsp_Basic___hyg_1529____boxed), 1, 0); return x_1; } } static lean_object* _init_l_Lean_Lsp_instFromJsonLocationLink() { _start: { lean_object* x_1; x_1 = l_Lean_Lsp_instFromJsonLocationLink___closed__1; return x_1; } } static lean_object* _init_l_Lean_Lsp_Command_arguments_x3f___default() { _start: { lean_object* x_1; x_1 = lean_box(0); return x_1; } } LEAN_EXPORT lean_object* l_Array_mapMUnsafe_map___at___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_toJsonCommand____x40_Lean_Data_Lsp_Basic___hyg_1757____spec__2(size_t x_1, size_t x_2, lean_object* x_3) { _start: { uint8_t x_4; x_4 = lean_usize_dec_lt(x_2, x_1); if (x_4 == 0) { return x_3; } else { lean_object* x_5; lean_object* x_6; lean_object* x_7; size_t x_8; size_t x_9; lean_object* x_10; x_5 = lean_array_uget(x_3, x_2); x_6 = lean_unsigned_to_nat(0u); x_7 = lean_array_uset(x_3, x_2, x_6); x_8 = 1; x_9 = lean_usize_add(x_2, x_8); x_10 = lean_array_uset(x_7, x_2, x_5); x_2 = x_9; x_3 = x_10; goto _start; } } } LEAN_EXPORT lean_object* l_Lean_Json_opt___at___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_toJsonCommand____x40_Lean_Data_Lsp_Basic___hyg_1757____spec__1(lean_object* x_1, lean_object* x_2) { _start: { if (lean_obj_tag(x_2) == 0) { lean_object* x_3; lean_dec(x_1); x_3 = lean_box(0); return x_3; } else { lean_object* x_4; lean_object* x_5; size_t x_6; size_t x_7; lean_object* x_8; lean_object* x_9; lean_object* x_10; lean_object* x_11; lean_object* x_12; x_4 = lean_ctor_get(x_2, 0); lean_inc(x_4); lean_dec(x_2); x_5 = lean_array_get_size(x_4); x_6 = lean_usize_of_nat(x_5); lean_dec(x_5); x_7 = 0; x_8 = l_Array_mapMUnsafe_map___at___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_toJsonCommand____x40_Lean_Data_Lsp_Basic___hyg_1757____spec__2(x_6, x_7, x_4); x_9 = lean_alloc_ctor(4, 1, 0); lean_ctor_set(x_9, 0, x_8); x_10 = lean_alloc_ctor(0, 2, 0); lean_ctor_set(x_10, 0, x_1); lean_ctor_set(x_10, 1, x_9); x_11 = lean_box(0); x_12 = lean_alloc_ctor(1, 2, 0); lean_ctor_set(x_12, 0, x_10); lean_ctor_set(x_12, 1, x_11); return x_12; } } } static lean_object* _init_l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_toJsonCommand____x40_Lean_Data_Lsp_Basic___hyg_1757____closed__1() { _start: { lean_object* x_1; x_1 = lean_mk_string_from_bytes("title", 5); return x_1; } } static lean_object* _init_l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_toJsonCommand____x40_Lean_Data_Lsp_Basic___hyg_1757____closed__2() { _start: { lean_object* x_1; x_1 = lean_mk_string_from_bytes("command", 7); return x_1; } } static lean_object* _init_l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_toJsonCommand____x40_Lean_Data_Lsp_Basic___hyg_1757____closed__3() { _start: { lean_object* x_1; x_1 = lean_mk_string_from_bytes("arguments", 9); return x_1; } } LEAN_EXPORT lean_object* l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_toJsonCommand____x40_Lean_Data_Lsp_Basic___hyg_1757_(lean_object* x_1) { _start: { lean_object* x_2; lean_object* x_3; lean_object* x_4; lean_object* x_5; lean_object* x_6; lean_object* x_7; lean_object* x_8; lean_object* x_9; lean_object* x_10; lean_object* x_11; lean_object* x_12; lean_object* x_13; lean_object* x_14; lean_object* x_15; lean_object* x_16; lean_object* x_17; lean_object* x_18; lean_object* x_19; lean_object* x_20; x_2 = lean_ctor_get(x_1, 0); lean_inc(x_2); x_3 = lean_ctor_get(x_1, 1); lean_inc(x_3); x_4 = lean_ctor_get(x_1, 2); lean_inc(x_4); lean_dec(x_1); x_5 = lean_alloc_ctor(3, 1, 0); lean_ctor_set(x_5, 0, x_2); x_6 = l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_toJsonCommand____x40_Lean_Data_Lsp_Basic___hyg_1757____closed__1; x_7 = lean_alloc_ctor(0, 2, 0); lean_ctor_set(x_7, 0, x_6); lean_ctor_set(x_7, 1, x_5); x_8 = lean_box(0); x_9 = lean_alloc_ctor(1, 2, 0); lean_ctor_set(x_9, 0, x_7); lean_ctor_set(x_9, 1, x_8); x_10 = lean_alloc_ctor(3, 1, 0); lean_ctor_set(x_10, 0, x_3); x_11 = l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_toJsonCommand____x40_Lean_Data_Lsp_Basic___hyg_1757____closed__2; x_12 = lean_alloc_ctor(0, 2, 0); lean_ctor_set(x_12, 0, x_11); lean_ctor_set(x_12, 1, x_10); x_13 = lean_alloc_ctor(1, 2, 0); lean_ctor_set(x_13, 0, x_12); lean_ctor_set(x_13, 1, x_8); x_14 = l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_toJsonCommand____x40_Lean_Data_Lsp_Basic___hyg_1757____closed__3; x_15 = l_Lean_Json_opt___at___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_toJsonCommand____x40_Lean_Data_Lsp_Basic___hyg_1757____spec__1(x_14, x_4); x_16 = lean_alloc_ctor(1, 2, 0); lean_ctor_set(x_16, 0, x_15); lean_ctor_set(x_16, 1, x_8); x_17 = lean_alloc_ctor(1, 2, 0); lean_ctor_set(x_17, 0, x_13); lean_ctor_set(x_17, 1, x_16); x_18 = lean_alloc_ctor(1, 2, 0); lean_ctor_set(x_18, 0, x_9); lean_ctor_set(x_18, 1, x_17); x_19 = l_List_join___rarg(x_18); x_20 = l_Lean_Json_mkObj(x_19); return x_20; } } LEAN_EXPORT lean_object* l_Array_mapMUnsafe_map___at___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_toJsonCommand____x40_Lean_Data_Lsp_Basic___hyg_1757____spec__2___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3) { _start: { size_t x_4; size_t x_5; lean_object* x_6; x_4 = lean_unbox_usize(x_1); lean_dec(x_1); x_5 = lean_unbox_usize(x_2); lean_dec(x_2); x_6 = l_Array_mapMUnsafe_map___at___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_toJsonCommand____x40_Lean_Data_Lsp_Basic___hyg_1757____spec__2(x_4, x_5, x_3); return x_6; } } static lean_object* _init_l_Lean_Lsp_instToJsonCommand___closed__1() { _start: { lean_object* x_1; x_1 = lean_alloc_closure((void*)(l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_toJsonCommand____x40_Lean_Data_Lsp_Basic___hyg_1757_), 1, 0); return x_1; } } static lean_object* _init_l_Lean_Lsp_instToJsonCommand() { _start: { lean_object* x_1; x_1 = l_Lean_Lsp_instToJsonCommand___closed__1; return x_1; } } LEAN_EXPORT lean_object* l_Array_mapMUnsafe_map___at___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonCommand____x40_Lean_Data_Lsp_Basic___hyg_1837____spec__2(size_t x_1, size_t x_2, lean_object* x_3) { _start: { uint8_t x_4; x_4 = lean_usize_dec_lt(x_2, x_1); if (x_4 == 0) { lean_object* x_5; x_5 = lean_alloc_ctor(1, 1, 0); lean_ctor_set(x_5, 0, x_3); return x_5; } else { lean_object* x_6; lean_object* x_7; lean_object* x_8; size_t x_9; size_t x_10; lean_object* x_11; x_6 = lean_array_uget(x_3, x_2); x_7 = lean_unsigned_to_nat(0u); x_8 = lean_array_uset(x_3, x_2, x_7); x_9 = 1; x_10 = lean_usize_add(x_2, x_9); x_11 = lean_array_uset(x_8, x_2, x_6); x_2 = x_10; x_3 = x_11; goto _start; } } } static lean_object* _init_l_Lean_Json_getObjValAs_x3f___at___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonCommand____x40_Lean_Data_Lsp_Basic___hyg_1837____spec__1___closed__1() { _start: { lean_object* x_1; x_1 = lean_mk_string_from_bytes("expected JSON array, got '", 26); return x_1; } } static lean_object* _init_l_Lean_Json_getObjValAs_x3f___at___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonCommand____x40_Lean_Data_Lsp_Basic___hyg_1837____spec__1___closed__2() { _start: { lean_object* x_1; x_1 = lean_mk_string_from_bytes("'", 1); return x_1; } } LEAN_EXPORT lean_object* l_Lean_Json_getObjValAs_x3f___at___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonCommand____x40_Lean_Data_Lsp_Basic___hyg_1837____spec__1(lean_object* x_1, lean_object* x_2) { _start: { lean_object* x_3; x_3 = l_Lean_Json_getObjValD(x_1, x_2); switch (lean_obj_tag(x_3)) { case 0: { lean_object* x_4; x_4 = l_Lean_Json_getObjValAs_x3f___at___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonLocationLink____x40_Lean_Data_Lsp_Basic___hyg_1529____spec__1___closed__1; return x_4; } case 4: { lean_object* x_5; lean_object* x_6; size_t x_7; size_t x_8; lean_object* x_9; uint8_t x_10; x_5 = lean_ctor_get(x_3, 0); lean_inc(x_5); lean_dec(x_3); x_6 = lean_array_get_size(x_5); x_7 = lean_usize_of_nat(x_6); lean_dec(x_6); x_8 = 0; x_9 = l_Array_mapMUnsafe_map___at___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonCommand____x40_Lean_Data_Lsp_Basic___hyg_1837____spec__2(x_7, x_8, x_5); x_10 = !lean_is_exclusive(x_9); if (x_10 == 0) { lean_object* x_11; lean_object* x_12; x_11 = lean_ctor_get(x_9, 0); x_12 = lean_alloc_ctor(1, 1, 0); lean_ctor_set(x_12, 0, x_11); lean_ctor_set(x_9, 0, x_12); return x_9; } else { lean_object* x_13; lean_object* x_14; lean_object* x_15; x_13 = lean_ctor_get(x_9, 0); lean_inc(x_13); lean_dec(x_9); x_14 = lean_alloc_ctor(1, 1, 0); lean_ctor_set(x_14, 0, x_13); x_15 = lean_alloc_ctor(1, 1, 0); lean_ctor_set(x_15, 0, x_14); return x_15; } } default: { lean_object* x_16; lean_object* x_17; lean_object* x_18; lean_object* x_19; lean_object* x_20; lean_object* x_21; lean_object* x_22; x_16 = lean_unsigned_to_nat(80u); x_17 = l_Lean_Json_pretty(x_3, x_16); x_18 = l_Lean_Json_getObjValAs_x3f___at___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonCommand____x40_Lean_Data_Lsp_Basic___hyg_1837____spec__1___closed__1; x_19 = lean_string_append(x_18, x_17); lean_dec(x_17); x_20 = l_Lean_Json_getObjValAs_x3f___at___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonCommand____x40_Lean_Data_Lsp_Basic___hyg_1837____spec__1___closed__2; x_21 = lean_string_append(x_19, x_20); x_22 = lean_alloc_ctor(0, 1, 0); lean_ctor_set(x_22, 0, x_21); return x_22; } } } } static lean_object* _init_l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonCommand____x40_Lean_Data_Lsp_Basic___hyg_1837____closed__1() { _start: { lean_object* x_1; x_1 = lean_mk_string_from_bytes("Command", 7); return x_1; } } static lean_object* _init_l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonCommand____x40_Lean_Data_Lsp_Basic___hyg_1837____closed__2() { _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; lean_object* x_4; x_1 = l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonCancelParams____x40_Lean_Data_Lsp_Basic___hyg_144____closed__1; x_2 = l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonCancelParams____x40_Lean_Data_Lsp_Basic___hyg_144____closed__2; x_3 = l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonCommand____x40_Lean_Data_Lsp_Basic___hyg_1837____closed__1; x_4 = l_Lean_Name_mkStr3(x_1, x_2, x_3); return x_4; } } static lean_object* _init_l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonCommand____x40_Lean_Data_Lsp_Basic___hyg_1837____closed__3() { _start: { lean_object* x_1; uint8_t x_2; lean_object* x_3; x_1 = l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonCommand____x40_Lean_Data_Lsp_Basic___hyg_1837____closed__2; x_2 = 1; x_3 = l_Lean_Name_toString(x_1, x_2); return x_3; } } static lean_object* _init_l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonCommand____x40_Lean_Data_Lsp_Basic___hyg_1837____closed__4() { _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; x_1 = l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonCommand____x40_Lean_Data_Lsp_Basic___hyg_1837____closed__3; x_2 = l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonCancelParams____x40_Lean_Data_Lsp_Basic___hyg_144____closed__6; x_3 = lean_string_append(x_1, x_2); return x_3; } } static lean_object* _init_l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonCommand____x40_Lean_Data_Lsp_Basic___hyg_1837____closed__5() { _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; x_1 = lean_box(0); x_2 = l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_toJsonCommand____x40_Lean_Data_Lsp_Basic___hyg_1757____closed__1; x_3 = l_Lean_Name_str___override(x_1, x_2); return x_3; } } static lean_object* _init_l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonCommand____x40_Lean_Data_Lsp_Basic___hyg_1837____closed__6() { _start: { lean_object* x_1; uint8_t x_2; lean_object* x_3; x_1 = l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonCommand____x40_Lean_Data_Lsp_Basic___hyg_1837____closed__5; x_2 = 1; x_3 = l_Lean_Name_toString(x_1, x_2); return x_3; } } static lean_object* _init_l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonCommand____x40_Lean_Data_Lsp_Basic___hyg_1837____closed__7() { _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; x_1 = l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonCommand____x40_Lean_Data_Lsp_Basic___hyg_1837____closed__4; x_2 = l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonCommand____x40_Lean_Data_Lsp_Basic___hyg_1837____closed__6; x_3 = lean_string_append(x_1, x_2); return x_3; } } static lean_object* _init_l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonCommand____x40_Lean_Data_Lsp_Basic___hyg_1837____closed__8() { _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; x_1 = l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonCommand____x40_Lean_Data_Lsp_Basic___hyg_1837____closed__7; x_2 = l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonCancelParams____x40_Lean_Data_Lsp_Basic___hyg_144____closed__11; x_3 = lean_string_append(x_1, x_2); return x_3; } } static lean_object* _init_l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonCommand____x40_Lean_Data_Lsp_Basic___hyg_1837____closed__9() { _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; x_1 = lean_box(0); x_2 = l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_toJsonCommand____x40_Lean_Data_Lsp_Basic___hyg_1757____closed__2; x_3 = l_Lean_Name_str___override(x_1, x_2); return x_3; } } static lean_object* _init_l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonCommand____x40_Lean_Data_Lsp_Basic___hyg_1837____closed__10() { _start: { lean_object* x_1; uint8_t x_2; lean_object* x_3; x_1 = l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonCommand____x40_Lean_Data_Lsp_Basic___hyg_1837____closed__9; x_2 = 1; x_3 = l_Lean_Name_toString(x_1, x_2); return x_3; } } static lean_object* _init_l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonCommand____x40_Lean_Data_Lsp_Basic___hyg_1837____closed__11() { _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; x_1 = l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonCommand____x40_Lean_Data_Lsp_Basic___hyg_1837____closed__4; x_2 = l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonCommand____x40_Lean_Data_Lsp_Basic___hyg_1837____closed__10; x_3 = lean_string_append(x_1, x_2); return x_3; } } static lean_object* _init_l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonCommand____x40_Lean_Data_Lsp_Basic___hyg_1837____closed__12() { _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; x_1 = l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonCommand____x40_Lean_Data_Lsp_Basic___hyg_1837____closed__11; x_2 = l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonCancelParams____x40_Lean_Data_Lsp_Basic___hyg_144____closed__11; x_3 = lean_string_append(x_1, x_2); return x_3; } } static lean_object* _init_l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonCommand____x40_Lean_Data_Lsp_Basic___hyg_1837____closed__13() { _start: { lean_object* x_1; x_1 = lean_mk_string_from_bytes("arguments?", 10); return x_1; } } static lean_object* _init_l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonCommand____x40_Lean_Data_Lsp_Basic___hyg_1837____closed__14() { _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; x_1 = lean_box(0); x_2 = l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonCommand____x40_Lean_Data_Lsp_Basic___hyg_1837____closed__13; x_3 = l_Lean_Name_str___override(x_1, x_2); return x_3; } } static lean_object* _init_l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonCommand____x40_Lean_Data_Lsp_Basic___hyg_1837____closed__15() { _start: { lean_object* x_1; uint8_t x_2; lean_object* x_3; x_1 = l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonCommand____x40_Lean_Data_Lsp_Basic___hyg_1837____closed__14; x_2 = 1; x_3 = l_Lean_Name_toString(x_1, x_2); return x_3; } } static lean_object* _init_l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonCommand____x40_Lean_Data_Lsp_Basic___hyg_1837____closed__16() { _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; x_1 = l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonCommand____x40_Lean_Data_Lsp_Basic___hyg_1837____closed__4; x_2 = l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonCommand____x40_Lean_Data_Lsp_Basic___hyg_1837____closed__15; x_3 = lean_string_append(x_1, x_2); return x_3; } } static lean_object* _init_l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonCommand____x40_Lean_Data_Lsp_Basic___hyg_1837____closed__17() { _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; x_1 = l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonCommand____x40_Lean_Data_Lsp_Basic___hyg_1837____closed__16; x_2 = l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonCancelParams____x40_Lean_Data_Lsp_Basic___hyg_144____closed__11; x_3 = lean_string_append(x_1, x_2); return x_3; } } LEAN_EXPORT lean_object* l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonCommand____x40_Lean_Data_Lsp_Basic___hyg_1837_(lean_object* x_1) { _start: { lean_object* x_2; lean_object* x_3; x_2 = l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_toJsonCommand____x40_Lean_Data_Lsp_Basic___hyg_1757____closed__1; x_3 = l_Lean_Json_getObjValAs_x3f___at_Lean_JsonRpc_instFromJsonMessage___spec__3(x_1, x_2); if (lean_obj_tag(x_3) == 0) { uint8_t x_4; x_4 = !lean_is_exclusive(x_3); if (x_4 == 0) { lean_object* x_5; lean_object* x_6; lean_object* x_7; x_5 = lean_ctor_get(x_3, 0); x_6 = l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonCommand____x40_Lean_Data_Lsp_Basic___hyg_1837____closed__8; x_7 = lean_string_append(x_6, x_5); lean_dec(x_5); lean_ctor_set(x_3, 0, x_7); return x_3; } else { lean_object* x_8; lean_object* x_9; lean_object* x_10; lean_object* x_11; x_8 = lean_ctor_get(x_3, 0); lean_inc(x_8); lean_dec(x_3); x_9 = l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonCommand____x40_Lean_Data_Lsp_Basic___hyg_1837____closed__8; x_10 = lean_string_append(x_9, x_8); lean_dec(x_8); x_11 = lean_alloc_ctor(0, 1, 0); lean_ctor_set(x_11, 0, x_10); return x_11; } } else { lean_object* x_12; lean_object* x_13; lean_object* x_14; x_12 = lean_ctor_get(x_3, 0); lean_inc(x_12); lean_dec(x_3); x_13 = l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_toJsonCommand____x40_Lean_Data_Lsp_Basic___hyg_1757____closed__2; x_14 = l_Lean_Json_getObjValAs_x3f___at_Lean_JsonRpc_instFromJsonMessage___spec__3(x_1, x_13); if (lean_obj_tag(x_14) == 0) { uint8_t x_15; lean_dec(x_12); x_15 = !lean_is_exclusive(x_14); if (x_15 == 0) { lean_object* x_16; lean_object* x_17; lean_object* x_18; x_16 = lean_ctor_get(x_14, 0); x_17 = l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonCommand____x40_Lean_Data_Lsp_Basic___hyg_1837____closed__12; x_18 = lean_string_append(x_17, x_16); lean_dec(x_16); lean_ctor_set(x_14, 0, x_18); return x_14; } else { lean_object* x_19; lean_object* x_20; lean_object* x_21; lean_object* x_22; x_19 = lean_ctor_get(x_14, 0); lean_inc(x_19); lean_dec(x_14); x_20 = l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonCommand____x40_Lean_Data_Lsp_Basic___hyg_1837____closed__12; x_21 = lean_string_append(x_20, x_19); lean_dec(x_19); x_22 = lean_alloc_ctor(0, 1, 0); lean_ctor_set(x_22, 0, x_21); return x_22; } } else { lean_object* x_23; lean_object* x_24; lean_object* x_25; x_23 = lean_ctor_get(x_14, 0); lean_inc(x_23); lean_dec(x_14); x_24 = l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_toJsonCommand____x40_Lean_Data_Lsp_Basic___hyg_1757____closed__3; x_25 = l_Lean_Json_getObjValAs_x3f___at___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonCommand____x40_Lean_Data_Lsp_Basic___hyg_1837____spec__1(x_1, x_24); if (lean_obj_tag(x_25) == 0) { uint8_t x_26; lean_dec(x_23); lean_dec(x_12); x_26 = !lean_is_exclusive(x_25); if (x_26 == 0) { lean_object* x_27; lean_object* x_28; lean_object* x_29; x_27 = lean_ctor_get(x_25, 0); x_28 = l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonCommand____x40_Lean_Data_Lsp_Basic___hyg_1837____closed__17; x_29 = lean_string_append(x_28, x_27); lean_dec(x_27); lean_ctor_set(x_25, 0, x_29); return x_25; } else { lean_object* x_30; lean_object* x_31; lean_object* x_32; lean_object* x_33; x_30 = lean_ctor_get(x_25, 0); lean_inc(x_30); lean_dec(x_25); x_31 = l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonCommand____x40_Lean_Data_Lsp_Basic___hyg_1837____closed__17; x_32 = lean_string_append(x_31, x_30); lean_dec(x_30); x_33 = lean_alloc_ctor(0, 1, 0); lean_ctor_set(x_33, 0, x_32); return x_33; } } else { uint8_t x_34; x_34 = !lean_is_exclusive(x_25); if (x_34 == 0) { lean_object* x_35; lean_object* x_36; x_35 = lean_ctor_get(x_25, 0); x_36 = lean_alloc_ctor(0, 3, 0); lean_ctor_set(x_36, 0, x_12); lean_ctor_set(x_36, 1, x_23); lean_ctor_set(x_36, 2, x_35); lean_ctor_set(x_25, 0, x_36); return x_25; } else { lean_object* x_37; lean_object* x_38; lean_object* x_39; x_37 = lean_ctor_get(x_25, 0); lean_inc(x_37); lean_dec(x_25); x_38 = lean_alloc_ctor(0, 3, 0); lean_ctor_set(x_38, 0, x_12); lean_ctor_set(x_38, 1, x_23); lean_ctor_set(x_38, 2, x_37); x_39 = lean_alloc_ctor(1, 1, 0); lean_ctor_set(x_39, 0, x_38); return x_39; } } } } } } LEAN_EXPORT lean_object* l_Array_mapMUnsafe_map___at___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonCommand____x40_Lean_Data_Lsp_Basic___hyg_1837____spec__2___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3) { _start: { size_t x_4; size_t x_5; lean_object* x_6; x_4 = lean_unbox_usize(x_1); lean_dec(x_1); x_5 = lean_unbox_usize(x_2); lean_dec(x_2); x_6 = l_Array_mapMUnsafe_map___at___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonCommand____x40_Lean_Data_Lsp_Basic___hyg_1837____spec__2(x_4, x_5, x_3); return x_6; } } LEAN_EXPORT lean_object* l_Lean_Json_getObjValAs_x3f___at___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonCommand____x40_Lean_Data_Lsp_Basic___hyg_1837____spec__1___boxed(lean_object* x_1, lean_object* x_2) { _start: { lean_object* x_3; x_3 = l_Lean_Json_getObjValAs_x3f___at___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonCommand____x40_Lean_Data_Lsp_Basic___hyg_1837____spec__1(x_1, x_2); lean_dec(x_2); lean_dec(x_1); return x_3; } } LEAN_EXPORT lean_object* l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonCommand____x40_Lean_Data_Lsp_Basic___hyg_1837____boxed(lean_object* x_1) { _start: { lean_object* x_2; x_2 = l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonCommand____x40_Lean_Data_Lsp_Basic___hyg_1837_(x_1); lean_dec(x_1); return x_2; } } static lean_object* _init_l_Lean_Lsp_instFromJsonCommand___closed__1() { _start: { lean_object* x_1; x_1 = lean_alloc_closure((void*)(l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonCommand____x40_Lean_Data_Lsp_Basic___hyg_1837____boxed), 1, 0); return x_1; } } static lean_object* _init_l_Lean_Lsp_instFromJsonCommand() { _start: { lean_object* x_1; x_1 = l_Lean_Lsp_instFromJsonCommand___closed__1; return x_1; } } static lean_object* _init_l_Lean_Lsp_TextEdit_annotationId_x3f___default() { _start: { lean_object* x_1; x_1 = lean_box(0); return x_1; } } LEAN_EXPORT lean_object* l_Lean_Json_opt___at___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_toJsonTextEdit____x40_Lean_Data_Lsp_Basic___hyg_2023____spec__1(lean_object* x_1, lean_object* x_2) { _start: { if (lean_obj_tag(x_2) == 0) { lean_object* x_3; lean_dec(x_1); x_3 = lean_box(0); return x_3; } else { lean_object* x_4; lean_object* x_5; lean_object* x_6; lean_object* x_7; lean_object* x_8; x_4 = lean_ctor_get(x_2, 0); lean_inc(x_4); x_5 = lean_alloc_ctor(3, 1, 0); lean_ctor_set(x_5, 0, x_4); x_6 = lean_alloc_ctor(0, 2, 0); lean_ctor_set(x_6, 0, x_1); lean_ctor_set(x_6, 1, x_5); x_7 = lean_box(0); x_8 = lean_alloc_ctor(1, 2, 0); lean_ctor_set(x_8, 0, x_6); lean_ctor_set(x_8, 1, x_7); return x_8; } } } static lean_object* _init_l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_toJsonTextEdit____x40_Lean_Data_Lsp_Basic___hyg_2023____closed__1() { _start: { lean_object* x_1; x_1 = lean_mk_string_from_bytes("newText", 7); return x_1; } } static lean_object* _init_l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_toJsonTextEdit____x40_Lean_Data_Lsp_Basic___hyg_2023____closed__2() { _start: { lean_object* x_1; x_1 = lean_mk_string_from_bytes("annotationId", 12); return x_1; } } LEAN_EXPORT lean_object* l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_toJsonTextEdit____x40_Lean_Data_Lsp_Basic___hyg_2023_(lean_object* x_1) { _start: { lean_object* x_2; lean_object* x_3; lean_object* x_4; lean_object* x_5; lean_object* x_6; lean_object* x_7; lean_object* x_8; lean_object* x_9; lean_object* x_10; lean_object* x_11; lean_object* x_12; lean_object* x_13; lean_object* x_14; lean_object* x_15; lean_object* x_16; lean_object* x_17; lean_object* x_18; lean_object* x_19; lean_object* x_20; x_2 = lean_ctor_get(x_1, 0); lean_inc(x_2); x_3 = l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_toJsonRange____x40_Lean_Data_Lsp_Basic___hyg_866_(x_2); x_4 = l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_toJsonLocation____x40_Lean_Data_Lsp_Basic___hyg_1263____closed__2; x_5 = lean_alloc_ctor(0, 2, 0); lean_ctor_set(x_5, 0, x_4); lean_ctor_set(x_5, 1, x_3); x_6 = lean_box(0); x_7 = lean_alloc_ctor(1, 2, 0); lean_ctor_set(x_7, 0, x_5); lean_ctor_set(x_7, 1, x_6); x_8 = lean_ctor_get(x_1, 1); lean_inc(x_8); x_9 = lean_alloc_ctor(3, 1, 0); lean_ctor_set(x_9, 0, x_8); x_10 = l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_toJsonTextEdit____x40_Lean_Data_Lsp_Basic___hyg_2023____closed__1; x_11 = lean_alloc_ctor(0, 2, 0); lean_ctor_set(x_11, 0, x_10); lean_ctor_set(x_11, 1, x_9); x_12 = lean_alloc_ctor(1, 2, 0); lean_ctor_set(x_12, 0, x_11); lean_ctor_set(x_12, 1, x_6); x_13 = lean_ctor_get(x_1, 2); lean_inc(x_13); lean_dec(x_1); x_14 = l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_toJsonTextEdit____x40_Lean_Data_Lsp_Basic___hyg_2023____closed__2; x_15 = l_Lean_Json_opt___at___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_toJsonTextEdit____x40_Lean_Data_Lsp_Basic___hyg_2023____spec__1(x_14, x_13); lean_dec(x_13); x_16 = lean_alloc_ctor(1, 2, 0); lean_ctor_set(x_16, 0, x_15); lean_ctor_set(x_16, 1, x_6); x_17 = lean_alloc_ctor(1, 2, 0); lean_ctor_set(x_17, 0, x_12); lean_ctor_set(x_17, 1, x_16); x_18 = lean_alloc_ctor(1, 2, 0); lean_ctor_set(x_18, 0, x_7); lean_ctor_set(x_18, 1, x_17); x_19 = l_List_join___rarg(x_18); x_20 = l_Lean_Json_mkObj(x_19); return x_20; } } LEAN_EXPORT lean_object* l_Lean_Json_opt___at___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_toJsonTextEdit____x40_Lean_Data_Lsp_Basic___hyg_2023____spec__1___boxed(lean_object* x_1, lean_object* x_2) { _start: { lean_object* x_3; x_3 = l_Lean_Json_opt___at___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_toJsonTextEdit____x40_Lean_Data_Lsp_Basic___hyg_2023____spec__1(x_1, x_2); lean_dec(x_2); return x_3; } } static lean_object* _init_l_Lean_Lsp_instToJsonTextEdit___closed__1() { _start: { lean_object* x_1; x_1 = lean_alloc_closure((void*)(l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_toJsonTextEdit____x40_Lean_Data_Lsp_Basic___hyg_2023_), 1, 0); return x_1; } } static lean_object* _init_l_Lean_Lsp_instToJsonTextEdit() { _start: { lean_object* x_1; x_1 = l_Lean_Lsp_instToJsonTextEdit___closed__1; return x_1; } } LEAN_EXPORT lean_object* l_Lean_Json_getObjValAs_x3f___at___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonTextEdit____x40_Lean_Data_Lsp_Basic___hyg_2082____spec__1(lean_object* x_1, lean_object* x_2) { _start: { lean_object* x_3; x_3 = l_Lean_Json_getObjValD(x_1, x_2); if (lean_obj_tag(x_3) == 0) { lean_object* x_4; x_4 = l_Lean_Json_getObjValAs_x3f___at___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonLocationLink____x40_Lean_Data_Lsp_Basic___hyg_1529____spec__1___closed__1; return x_4; } else { lean_object* x_5; x_5 = l_Lean_Json_getStr_x3f(x_3); lean_dec(x_3); if (lean_obj_tag(x_5) == 0) { uint8_t x_6; x_6 = !lean_is_exclusive(x_5); if (x_6 == 0) { return x_5; } else { lean_object* x_7; lean_object* x_8; x_7 = lean_ctor_get(x_5, 0); lean_inc(x_7); lean_dec(x_5); x_8 = lean_alloc_ctor(0, 1, 0); lean_ctor_set(x_8, 0, x_7); return x_8; } } else { uint8_t x_9; x_9 = !lean_is_exclusive(x_5); if (x_9 == 0) { lean_object* x_10; lean_object* x_11; x_10 = lean_ctor_get(x_5, 0); x_11 = lean_alloc_ctor(1, 1, 0); lean_ctor_set(x_11, 0, x_10); lean_ctor_set(x_5, 0, x_11); return x_5; } else { lean_object* x_12; lean_object* x_13; lean_object* x_14; x_12 = lean_ctor_get(x_5, 0); lean_inc(x_12); lean_dec(x_5); x_13 = lean_alloc_ctor(1, 1, 0); lean_ctor_set(x_13, 0, x_12); x_14 = lean_alloc_ctor(1, 1, 0); lean_ctor_set(x_14, 0, x_13); return x_14; } } } } } static lean_object* _init_l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonTextEdit____x40_Lean_Data_Lsp_Basic___hyg_2082____closed__1() { _start: { lean_object* x_1; x_1 = lean_mk_string_from_bytes("TextEdit", 8); return x_1; } } static lean_object* _init_l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonTextEdit____x40_Lean_Data_Lsp_Basic___hyg_2082____closed__2() { _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; lean_object* x_4; x_1 = l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonCancelParams____x40_Lean_Data_Lsp_Basic___hyg_144____closed__1; x_2 = l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonCancelParams____x40_Lean_Data_Lsp_Basic___hyg_144____closed__2; x_3 = l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonTextEdit____x40_Lean_Data_Lsp_Basic___hyg_2082____closed__1; x_4 = l_Lean_Name_mkStr3(x_1, x_2, x_3); return x_4; } } static lean_object* _init_l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonTextEdit____x40_Lean_Data_Lsp_Basic___hyg_2082____closed__3() { _start: { lean_object* x_1; uint8_t x_2; lean_object* x_3; x_1 = l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonTextEdit____x40_Lean_Data_Lsp_Basic___hyg_2082____closed__2; x_2 = 1; x_3 = l_Lean_Name_toString(x_1, x_2); return x_3; } } static lean_object* _init_l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonTextEdit____x40_Lean_Data_Lsp_Basic___hyg_2082____closed__4() { _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; x_1 = l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonTextEdit____x40_Lean_Data_Lsp_Basic___hyg_2082____closed__3; x_2 = l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonCancelParams____x40_Lean_Data_Lsp_Basic___hyg_144____closed__6; x_3 = lean_string_append(x_1, x_2); return x_3; } } static lean_object* _init_l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonTextEdit____x40_Lean_Data_Lsp_Basic___hyg_2082____closed__5() { _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; x_1 = l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonTextEdit____x40_Lean_Data_Lsp_Basic___hyg_2082____closed__4; x_2 = l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonLocation____x40_Lean_Data_Lsp_Basic___hyg_1314____closed__10; x_3 = lean_string_append(x_1, x_2); return x_3; } } static lean_object* _init_l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonTextEdit____x40_Lean_Data_Lsp_Basic___hyg_2082____closed__6() { _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; x_1 = l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonTextEdit____x40_Lean_Data_Lsp_Basic___hyg_2082____closed__5; x_2 = l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonCancelParams____x40_Lean_Data_Lsp_Basic___hyg_144____closed__11; x_3 = lean_string_append(x_1, x_2); return x_3; } } static lean_object* _init_l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonTextEdit____x40_Lean_Data_Lsp_Basic___hyg_2082____closed__7() { _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; x_1 = lean_box(0); x_2 = l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_toJsonTextEdit____x40_Lean_Data_Lsp_Basic___hyg_2023____closed__1; x_3 = l_Lean_Name_str___override(x_1, x_2); return x_3; } } static lean_object* _init_l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonTextEdit____x40_Lean_Data_Lsp_Basic___hyg_2082____closed__8() { _start: { lean_object* x_1; uint8_t x_2; lean_object* x_3; x_1 = l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonTextEdit____x40_Lean_Data_Lsp_Basic___hyg_2082____closed__7; x_2 = 1; x_3 = l_Lean_Name_toString(x_1, x_2); return x_3; } } static lean_object* _init_l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonTextEdit____x40_Lean_Data_Lsp_Basic___hyg_2082____closed__9() { _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; x_1 = l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonTextEdit____x40_Lean_Data_Lsp_Basic___hyg_2082____closed__4; x_2 = l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonTextEdit____x40_Lean_Data_Lsp_Basic___hyg_2082____closed__8; x_3 = lean_string_append(x_1, x_2); return x_3; } } static lean_object* _init_l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonTextEdit____x40_Lean_Data_Lsp_Basic___hyg_2082____closed__10() { _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; x_1 = l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonTextEdit____x40_Lean_Data_Lsp_Basic___hyg_2082____closed__9; x_2 = l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonCancelParams____x40_Lean_Data_Lsp_Basic___hyg_144____closed__11; x_3 = lean_string_append(x_1, x_2); return x_3; } } static lean_object* _init_l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonTextEdit____x40_Lean_Data_Lsp_Basic___hyg_2082____closed__11() { _start: { lean_object* x_1; x_1 = lean_mk_string_from_bytes("annotationId?", 13); return x_1; } } static lean_object* _init_l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonTextEdit____x40_Lean_Data_Lsp_Basic___hyg_2082____closed__12() { _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; x_1 = lean_box(0); x_2 = l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonTextEdit____x40_Lean_Data_Lsp_Basic___hyg_2082____closed__11; x_3 = l_Lean_Name_str___override(x_1, x_2); return x_3; } } static lean_object* _init_l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonTextEdit____x40_Lean_Data_Lsp_Basic___hyg_2082____closed__13() { _start: { lean_object* x_1; uint8_t x_2; lean_object* x_3; x_1 = l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonTextEdit____x40_Lean_Data_Lsp_Basic___hyg_2082____closed__12; x_2 = 1; x_3 = l_Lean_Name_toString(x_1, x_2); return x_3; } } static lean_object* _init_l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonTextEdit____x40_Lean_Data_Lsp_Basic___hyg_2082____closed__14() { _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; x_1 = l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonTextEdit____x40_Lean_Data_Lsp_Basic___hyg_2082____closed__4; x_2 = l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonTextEdit____x40_Lean_Data_Lsp_Basic___hyg_2082____closed__13; x_3 = lean_string_append(x_1, x_2); return x_3; } } static lean_object* _init_l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonTextEdit____x40_Lean_Data_Lsp_Basic___hyg_2082____closed__15() { _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; x_1 = l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonTextEdit____x40_Lean_Data_Lsp_Basic___hyg_2082____closed__14; x_2 = l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonCancelParams____x40_Lean_Data_Lsp_Basic___hyg_144____closed__11; x_3 = lean_string_append(x_1, x_2); return x_3; } } LEAN_EXPORT lean_object* l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonTextEdit____x40_Lean_Data_Lsp_Basic___hyg_2082_(lean_object* x_1) { _start: { lean_object* x_2; lean_object* x_3; x_2 = l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_toJsonLocation____x40_Lean_Data_Lsp_Basic___hyg_1263____closed__2; x_3 = l_Lean_Json_getObjValAs_x3f___at___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonLocation____x40_Lean_Data_Lsp_Basic___hyg_1314____spec__2(x_1, x_2); if (lean_obj_tag(x_3) == 0) { uint8_t x_4; x_4 = !lean_is_exclusive(x_3); if (x_4 == 0) { lean_object* x_5; lean_object* x_6; lean_object* x_7; x_5 = lean_ctor_get(x_3, 0); x_6 = l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonTextEdit____x40_Lean_Data_Lsp_Basic___hyg_2082____closed__6; x_7 = lean_string_append(x_6, x_5); lean_dec(x_5); lean_ctor_set(x_3, 0, x_7); return x_3; } else { lean_object* x_8; lean_object* x_9; lean_object* x_10; lean_object* x_11; x_8 = lean_ctor_get(x_3, 0); lean_inc(x_8); lean_dec(x_3); x_9 = l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonTextEdit____x40_Lean_Data_Lsp_Basic___hyg_2082____closed__6; x_10 = lean_string_append(x_9, x_8); lean_dec(x_8); x_11 = lean_alloc_ctor(0, 1, 0); lean_ctor_set(x_11, 0, x_10); return x_11; } } else { lean_object* x_12; lean_object* x_13; lean_object* x_14; x_12 = lean_ctor_get(x_3, 0); lean_inc(x_12); lean_dec(x_3); x_13 = l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_toJsonTextEdit____x40_Lean_Data_Lsp_Basic___hyg_2023____closed__1; x_14 = l_Lean_Json_getObjValAs_x3f___at_Lean_JsonRpc_instFromJsonMessage___spec__3(x_1, x_13); if (lean_obj_tag(x_14) == 0) { uint8_t x_15; lean_dec(x_12); x_15 = !lean_is_exclusive(x_14); if (x_15 == 0) { lean_object* x_16; lean_object* x_17; lean_object* x_18; x_16 = lean_ctor_get(x_14, 0); x_17 = l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonTextEdit____x40_Lean_Data_Lsp_Basic___hyg_2082____closed__10; x_18 = lean_string_append(x_17, x_16); lean_dec(x_16); lean_ctor_set(x_14, 0, x_18); return x_14; } else { lean_object* x_19; lean_object* x_20; lean_object* x_21; lean_object* x_22; x_19 = lean_ctor_get(x_14, 0); lean_inc(x_19); lean_dec(x_14); x_20 = l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonTextEdit____x40_Lean_Data_Lsp_Basic___hyg_2082____closed__10; x_21 = lean_string_append(x_20, x_19); lean_dec(x_19); x_22 = lean_alloc_ctor(0, 1, 0); lean_ctor_set(x_22, 0, x_21); return x_22; } } else { lean_object* x_23; lean_object* x_24; lean_object* x_25; x_23 = lean_ctor_get(x_14, 0); lean_inc(x_23); lean_dec(x_14); x_24 = l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_toJsonTextEdit____x40_Lean_Data_Lsp_Basic___hyg_2023____closed__2; x_25 = l_Lean_Json_getObjValAs_x3f___at___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonTextEdit____x40_Lean_Data_Lsp_Basic___hyg_2082____spec__1(x_1, x_24); if (lean_obj_tag(x_25) == 0) { uint8_t x_26; lean_dec(x_23); lean_dec(x_12); x_26 = !lean_is_exclusive(x_25); if (x_26 == 0) { lean_object* x_27; lean_object* x_28; lean_object* x_29; x_27 = lean_ctor_get(x_25, 0); x_28 = l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonTextEdit____x40_Lean_Data_Lsp_Basic___hyg_2082____closed__15; x_29 = lean_string_append(x_28, x_27); lean_dec(x_27); lean_ctor_set(x_25, 0, x_29); return x_25; } else { lean_object* x_30; lean_object* x_31; lean_object* x_32; lean_object* x_33; x_30 = lean_ctor_get(x_25, 0); lean_inc(x_30); lean_dec(x_25); x_31 = l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonTextEdit____x40_Lean_Data_Lsp_Basic___hyg_2082____closed__15; x_32 = lean_string_append(x_31, x_30); lean_dec(x_30); x_33 = lean_alloc_ctor(0, 1, 0); lean_ctor_set(x_33, 0, x_32); return x_33; } } else { uint8_t x_34; x_34 = !lean_is_exclusive(x_25); if (x_34 == 0) { lean_object* x_35; lean_object* x_36; x_35 = lean_ctor_get(x_25, 0); x_36 = lean_alloc_ctor(0, 3, 0); lean_ctor_set(x_36, 0, x_12); lean_ctor_set(x_36, 1, x_23); lean_ctor_set(x_36, 2, x_35); lean_ctor_set(x_25, 0, x_36); return x_25; } else { lean_object* x_37; lean_object* x_38; lean_object* x_39; x_37 = lean_ctor_get(x_25, 0); lean_inc(x_37); lean_dec(x_25); x_38 = lean_alloc_ctor(0, 3, 0); lean_ctor_set(x_38, 0, x_12); lean_ctor_set(x_38, 1, x_23); lean_ctor_set(x_38, 2, x_37); x_39 = lean_alloc_ctor(1, 1, 0); lean_ctor_set(x_39, 0, x_38); return x_39; } } } } } } LEAN_EXPORT lean_object* l_Lean_Json_getObjValAs_x3f___at___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonTextEdit____x40_Lean_Data_Lsp_Basic___hyg_2082____spec__1___boxed(lean_object* x_1, lean_object* x_2) { _start: { lean_object* x_3; x_3 = l_Lean_Json_getObjValAs_x3f___at___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonTextEdit____x40_Lean_Data_Lsp_Basic___hyg_2082____spec__1(x_1, x_2); lean_dec(x_2); lean_dec(x_1); return x_3; } } LEAN_EXPORT lean_object* l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonTextEdit____x40_Lean_Data_Lsp_Basic___hyg_2082____boxed(lean_object* x_1) { _start: { lean_object* x_2; x_2 = l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonTextEdit____x40_Lean_Data_Lsp_Basic___hyg_2082_(x_1); lean_dec(x_1); return x_2; } } static lean_object* _init_l_Lean_Lsp_instFromJsonTextEdit___closed__1() { _start: { lean_object* x_1; x_1 = lean_alloc_closure((void*)(l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonTextEdit____x40_Lean_Data_Lsp_Basic___hyg_2082____boxed), 1, 0); return x_1; } } static lean_object* _init_l_Lean_Lsp_instFromJsonTextEdit() { _start: { lean_object* x_1; x_1 = l_Lean_Lsp_instFromJsonTextEdit___closed__1; return x_1; } } LEAN_EXPORT lean_object* l_Array_mapMUnsafe_map___at_Lean_Lsp_instFromJsonTextEditBatch___spec__1(size_t x_1, size_t x_2, lean_object* x_3) { _start: { uint8_t x_4; x_4 = lean_usize_dec_lt(x_2, x_1); if (x_4 == 0) { lean_object* x_5; x_5 = lean_alloc_ctor(1, 1, 0); lean_ctor_set(x_5, 0, x_3); return x_5; } else { lean_object* x_6; lean_object* x_7; lean_object* x_8; lean_object* x_9; x_6 = lean_array_uget(x_3, x_2); x_7 = lean_unsigned_to_nat(0u); x_8 = lean_array_uset(x_3, x_2, x_7); x_9 = l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonTextEdit____x40_Lean_Data_Lsp_Basic___hyg_2082_(x_6); lean_dec(x_6); if (lean_obj_tag(x_9) == 0) { uint8_t x_10; lean_dec(x_8); x_10 = !lean_is_exclusive(x_9); if (x_10 == 0) { return x_9; } else { lean_object* x_11; lean_object* x_12; x_11 = lean_ctor_get(x_9, 0); lean_inc(x_11); lean_dec(x_9); x_12 = lean_alloc_ctor(0, 1, 0); lean_ctor_set(x_12, 0, x_11); return x_12; } } else { lean_object* x_13; size_t x_14; size_t x_15; lean_object* x_16; x_13 = lean_ctor_get(x_9, 0); lean_inc(x_13); lean_dec(x_9); x_14 = 1; x_15 = lean_usize_add(x_2, x_14); x_16 = lean_array_uset(x_8, x_2, x_13); x_2 = x_15; x_3 = x_16; goto _start; } } } } LEAN_EXPORT lean_object* l_Lean_Lsp_instFromJsonTextEditBatch(lean_object* x_1) { _start: { if (lean_obj_tag(x_1) == 4) { lean_object* x_2; lean_object* x_3; size_t x_4; size_t x_5; lean_object* x_6; x_2 = lean_ctor_get(x_1, 0); lean_inc(x_2); lean_dec(x_1); x_3 = lean_array_get_size(x_2); x_4 = lean_usize_of_nat(x_3); lean_dec(x_3); x_5 = 0; x_6 = l_Array_mapMUnsafe_map___at_Lean_Lsp_instFromJsonTextEditBatch___spec__1(x_4, x_5, x_2); return x_6; } else { lean_object* x_7; lean_object* x_8; lean_object* x_9; lean_object* x_10; lean_object* x_11; lean_object* x_12; lean_object* x_13; x_7 = lean_unsigned_to_nat(80u); x_8 = l_Lean_Json_pretty(x_1, x_7); x_9 = l_Lean_Json_getObjValAs_x3f___at___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonCommand____x40_Lean_Data_Lsp_Basic___hyg_1837____spec__1___closed__1; x_10 = lean_string_append(x_9, x_8); lean_dec(x_8); x_11 = l_Lean_Json_getObjValAs_x3f___at___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonCommand____x40_Lean_Data_Lsp_Basic___hyg_1837____spec__1___closed__2; x_12 = lean_string_append(x_10, x_11); x_13 = lean_alloc_ctor(0, 1, 0); lean_ctor_set(x_13, 0, x_12); return x_13; } } } LEAN_EXPORT lean_object* l_Array_mapMUnsafe_map___at_Lean_Lsp_instFromJsonTextEditBatch___spec__1___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3) { _start: { size_t x_4; size_t x_5; lean_object* x_6; x_4 = lean_unbox_usize(x_1); lean_dec(x_1); x_5 = lean_unbox_usize(x_2); lean_dec(x_2); x_6 = l_Array_mapMUnsafe_map___at_Lean_Lsp_instFromJsonTextEditBatch___spec__1(x_4, x_5, x_3); return x_6; } } LEAN_EXPORT lean_object* l_Array_mapMUnsafe_map___at_Lean_Lsp_instToJsonTextEditBatch___spec__1(size_t x_1, size_t x_2, lean_object* x_3) { _start: { uint8_t x_4; x_4 = lean_usize_dec_lt(x_2, x_1); if (x_4 == 0) { return x_3; } else { lean_object* x_5; lean_object* x_6; lean_object* x_7; lean_object* x_8; size_t x_9; size_t x_10; lean_object* x_11; x_5 = lean_array_uget(x_3, x_2); x_6 = lean_unsigned_to_nat(0u); x_7 = lean_array_uset(x_3, x_2, x_6); x_8 = l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_toJsonTextEdit____x40_Lean_Data_Lsp_Basic___hyg_2023_(x_5); x_9 = 1; x_10 = lean_usize_add(x_2, x_9); x_11 = lean_array_uset(x_7, x_2, x_8); x_2 = x_10; x_3 = x_11; goto _start; } } } LEAN_EXPORT lean_object* l_Lean_Lsp_instToJsonTextEditBatch(lean_object* x_1) { _start: { lean_object* x_2; size_t x_3; size_t x_4; lean_object* x_5; lean_object* x_6; x_2 = lean_array_get_size(x_1); x_3 = lean_usize_of_nat(x_2); lean_dec(x_2); x_4 = 0; x_5 = l_Array_mapMUnsafe_map___at_Lean_Lsp_instToJsonTextEditBatch___spec__1(x_3, x_4, x_1); x_6 = lean_alloc_ctor(4, 1, 0); lean_ctor_set(x_6, 0, x_5); return x_6; } } LEAN_EXPORT lean_object* l_Array_mapMUnsafe_map___at_Lean_Lsp_instToJsonTextEditBatch___spec__1___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3) { _start: { size_t x_4; size_t x_5; lean_object* x_6; x_4 = lean_unbox_usize(x_1); lean_dec(x_1); x_5 = lean_unbox_usize(x_2); lean_dec(x_2); x_6 = l_Array_mapMUnsafe_map___at_Lean_Lsp_instToJsonTextEditBatch___spec__1(x_4, x_5, x_3); return x_6; } } static lean_object* _init_l_Lean_Lsp_instEmptyCollectionTextEditBatch___closed__1() { _start: { lean_object* x_1; lean_object* x_2; x_1 = lean_unsigned_to_nat(0u); x_2 = lean_mk_empty_array_with_capacity(x_1); return x_2; } } static lean_object* _init_l_Lean_Lsp_instEmptyCollectionTextEditBatch() { _start: { lean_object* x_1; x_1 = l_Lean_Lsp_instEmptyCollectionTextEditBatch___closed__1; return x_1; } } static lean_object* _init_l_Lean_Lsp_instAppendTextEditBatch___closed__1() { _start: { lean_object* x_1; x_1 = lean_alloc_closure((void*)(l_Array_append___rarg), 2, 0); return x_1; } } static lean_object* _init_l_Lean_Lsp_instAppendTextEditBatch() { _start: { lean_object* x_1; x_1 = l_Lean_Lsp_instAppendTextEditBatch___closed__1; return x_1; } } static lean_object* _init_l_Lean_Lsp_instCoeTextEditTextEditBatch___closed__1() { _start: { lean_object* x_1; lean_object* x_2; x_1 = lean_unsigned_to_nat(1u); x_2 = lean_mk_empty_array_with_capacity(x_1); return x_2; } } LEAN_EXPORT lean_object* l_Lean_Lsp_instCoeTextEditTextEditBatch(lean_object* x_1) { _start: { lean_object* x_2; lean_object* x_3; x_2 = l_Lean_Lsp_instCoeTextEditTextEditBatch___closed__1; x_3 = lean_array_push(x_2, x_1); return x_3; } } LEAN_EXPORT lean_object* l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_toJsonTextDocumentIdentifier____x40_Lean_Data_Lsp_Basic___hyg_2378_(lean_object* x_1) { _start: { lean_object* x_2; lean_object* x_3; lean_object* x_4; lean_object* x_5; lean_object* x_6; lean_object* x_7; lean_object* x_8; lean_object* x_9; x_2 = lean_alloc_ctor(3, 1, 0); lean_ctor_set(x_2, 0, x_1); x_3 = l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_toJsonLocation____x40_Lean_Data_Lsp_Basic___hyg_1263____closed__1; x_4 = lean_alloc_ctor(0, 2, 0); lean_ctor_set(x_4, 0, x_3); lean_ctor_set(x_4, 1, x_2); x_5 = lean_box(0); x_6 = lean_alloc_ctor(1, 2, 0); lean_ctor_set(x_6, 0, x_4); lean_ctor_set(x_6, 1, x_5); x_7 = lean_alloc_ctor(1, 2, 0); lean_ctor_set(x_7, 0, x_6); lean_ctor_set(x_7, 1, x_5); x_8 = l_List_join___rarg(x_7); x_9 = l_Lean_Json_mkObj(x_8); return x_9; } } static lean_object* _init_l_Lean_Lsp_instToJsonTextDocumentIdentifier___closed__1() { _start: { lean_object* x_1; x_1 = lean_alloc_closure((void*)(l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_toJsonTextDocumentIdentifier____x40_Lean_Data_Lsp_Basic___hyg_2378_), 1, 0); return x_1; } } static lean_object* _init_l_Lean_Lsp_instToJsonTextDocumentIdentifier() { _start: { lean_object* x_1; x_1 = l_Lean_Lsp_instToJsonTextDocumentIdentifier___closed__1; return x_1; } } static lean_object* _init_l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonTextDocumentIdentifier____x40_Lean_Data_Lsp_Basic___hyg_2414____closed__1() { _start: { lean_object* x_1; x_1 = lean_mk_string_from_bytes("TextDocumentIdentifier", 22); return x_1; } } static lean_object* _init_l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonTextDocumentIdentifier____x40_Lean_Data_Lsp_Basic___hyg_2414____closed__2() { _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; lean_object* x_4; x_1 = l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonCancelParams____x40_Lean_Data_Lsp_Basic___hyg_144____closed__1; x_2 = l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonCancelParams____x40_Lean_Data_Lsp_Basic___hyg_144____closed__2; x_3 = l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonTextDocumentIdentifier____x40_Lean_Data_Lsp_Basic___hyg_2414____closed__1; x_4 = l_Lean_Name_mkStr3(x_1, x_2, x_3); return x_4; } } static lean_object* _init_l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonTextDocumentIdentifier____x40_Lean_Data_Lsp_Basic___hyg_2414____closed__3() { _start: { lean_object* x_1; uint8_t x_2; lean_object* x_3; x_1 = l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonTextDocumentIdentifier____x40_Lean_Data_Lsp_Basic___hyg_2414____closed__2; x_2 = 1; x_3 = l_Lean_Name_toString(x_1, x_2); return x_3; } } static lean_object* _init_l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonTextDocumentIdentifier____x40_Lean_Data_Lsp_Basic___hyg_2414____closed__4() { _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; x_1 = l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonTextDocumentIdentifier____x40_Lean_Data_Lsp_Basic___hyg_2414____closed__3; x_2 = l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonCancelParams____x40_Lean_Data_Lsp_Basic___hyg_144____closed__6; x_3 = lean_string_append(x_1, x_2); return x_3; } } static lean_object* _init_l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonTextDocumentIdentifier____x40_Lean_Data_Lsp_Basic___hyg_2414____closed__5() { _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; x_1 = l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonTextDocumentIdentifier____x40_Lean_Data_Lsp_Basic___hyg_2414____closed__4; x_2 = l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonLocation____x40_Lean_Data_Lsp_Basic___hyg_1314____closed__6; x_3 = lean_string_append(x_1, x_2); return x_3; } } static lean_object* _init_l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonTextDocumentIdentifier____x40_Lean_Data_Lsp_Basic___hyg_2414____closed__6() { _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; x_1 = l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonTextDocumentIdentifier____x40_Lean_Data_Lsp_Basic___hyg_2414____closed__5; x_2 = l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonCancelParams____x40_Lean_Data_Lsp_Basic___hyg_144____closed__11; x_3 = lean_string_append(x_1, x_2); return x_3; } } LEAN_EXPORT lean_object* l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonTextDocumentIdentifier____x40_Lean_Data_Lsp_Basic___hyg_2414_(lean_object* x_1) { _start: { lean_object* x_2; lean_object* x_3; x_2 = l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_toJsonLocation____x40_Lean_Data_Lsp_Basic___hyg_1263____closed__1; x_3 = l_Lean_Json_getObjValAs_x3f___at___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonLocation____x40_Lean_Data_Lsp_Basic___hyg_1314____spec__1(x_1, x_2); if (lean_obj_tag(x_3) == 0) { uint8_t x_4; x_4 = !lean_is_exclusive(x_3); if (x_4 == 0) { lean_object* x_5; lean_object* x_6; lean_object* x_7; x_5 = lean_ctor_get(x_3, 0); x_6 = l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonTextDocumentIdentifier____x40_Lean_Data_Lsp_Basic___hyg_2414____closed__6; x_7 = lean_string_append(x_6, x_5); lean_dec(x_5); lean_ctor_set(x_3, 0, x_7); return x_3; } else { lean_object* x_8; lean_object* x_9; lean_object* x_10; lean_object* x_11; x_8 = lean_ctor_get(x_3, 0); lean_inc(x_8); lean_dec(x_3); x_9 = l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonTextDocumentIdentifier____x40_Lean_Data_Lsp_Basic___hyg_2414____closed__6; x_10 = lean_string_append(x_9, x_8); lean_dec(x_8); x_11 = lean_alloc_ctor(0, 1, 0); lean_ctor_set(x_11, 0, x_10); return x_11; } } else { uint8_t x_12; x_12 = !lean_is_exclusive(x_3); if (x_12 == 0) { return x_3; } else { lean_object* x_13; lean_object* x_14; x_13 = lean_ctor_get(x_3, 0); lean_inc(x_13); lean_dec(x_3); x_14 = lean_alloc_ctor(1, 1, 0); lean_ctor_set(x_14, 0, x_13); return x_14; } } } } LEAN_EXPORT lean_object* l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonTextDocumentIdentifier____x40_Lean_Data_Lsp_Basic___hyg_2414____boxed(lean_object* x_1) { _start: { lean_object* x_2; x_2 = l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonTextDocumentIdentifier____x40_Lean_Data_Lsp_Basic___hyg_2414_(x_1); lean_dec(x_1); return x_2; } } static lean_object* _init_l_Lean_Lsp_instFromJsonTextDocumentIdentifier___closed__1() { _start: { lean_object* x_1; x_1 = lean_alloc_closure((void*)(l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonTextDocumentIdentifier____x40_Lean_Data_Lsp_Basic___hyg_2414____boxed), 1, 0); return x_1; } } static lean_object* _init_l_Lean_Lsp_instFromJsonTextDocumentIdentifier() { _start: { lean_object* x_1; x_1 = l_Lean_Lsp_instFromJsonTextDocumentIdentifier___closed__1; return x_1; } } static lean_object* _init_l_Lean_Lsp_VersionedTextDocumentIdentifier_version_x3f___default() { _start: { lean_object* x_1; x_1 = lean_box(0); return x_1; } } LEAN_EXPORT lean_object* l_Lean_Json_opt___at___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_toJsonVersionedTextDocumentIdentifier____x40_Lean_Data_Lsp_Basic___hyg_2500____spec__1(lean_object* x_1, lean_object* x_2) { _start: { if (lean_obj_tag(x_2) == 0) { lean_object* x_3; lean_dec(x_1); x_3 = lean_box(0); return x_3; } else { lean_object* x_4; lean_object* x_5; lean_object* x_6; lean_object* x_7; lean_object* x_8; lean_object* x_9; x_4 = lean_ctor_get(x_2, 0); lean_inc(x_4); lean_dec(x_2); x_5 = l_Lean_JsonNumber_fromNat(x_4); x_6 = lean_alloc_ctor(2, 1, 0); lean_ctor_set(x_6, 0, x_5); x_7 = lean_alloc_ctor(0, 2, 0); lean_ctor_set(x_7, 0, x_1); lean_ctor_set(x_7, 1, x_6); x_8 = lean_box(0); x_9 = lean_alloc_ctor(1, 2, 0); lean_ctor_set(x_9, 0, x_7); lean_ctor_set(x_9, 1, x_8); return x_9; } } } static lean_object* _init_l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_toJsonVersionedTextDocumentIdentifier____x40_Lean_Data_Lsp_Basic___hyg_2500____closed__1() { _start: { lean_object* x_1; x_1 = lean_mk_string_from_bytes("version", 7); return x_1; } } LEAN_EXPORT lean_object* l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_toJsonVersionedTextDocumentIdentifier____x40_Lean_Data_Lsp_Basic___hyg_2500_(lean_object* x_1) { _start: { lean_object* x_2; lean_object* x_3; lean_object* x_4; lean_object* x_5; lean_object* x_6; lean_object* x_7; lean_object* x_8; lean_object* x_9; lean_object* x_10; lean_object* x_11; lean_object* x_12; lean_object* x_13; lean_object* x_14; x_2 = lean_ctor_get(x_1, 0); lean_inc(x_2); x_3 = lean_ctor_get(x_1, 1); lean_inc(x_3); lean_dec(x_1); x_4 = lean_alloc_ctor(3, 1, 0); lean_ctor_set(x_4, 0, x_2); x_5 = l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_toJsonLocation____x40_Lean_Data_Lsp_Basic___hyg_1263____closed__1; x_6 = lean_alloc_ctor(0, 2, 0); lean_ctor_set(x_6, 0, x_5); lean_ctor_set(x_6, 1, x_4); x_7 = lean_box(0); x_8 = lean_alloc_ctor(1, 2, 0); lean_ctor_set(x_8, 0, x_6); lean_ctor_set(x_8, 1, x_7); x_9 = l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_toJsonVersionedTextDocumentIdentifier____x40_Lean_Data_Lsp_Basic___hyg_2500____closed__1; x_10 = l_Lean_Json_opt___at___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_toJsonVersionedTextDocumentIdentifier____x40_Lean_Data_Lsp_Basic___hyg_2500____spec__1(x_9, x_3); x_11 = lean_alloc_ctor(1, 2, 0); lean_ctor_set(x_11, 0, x_10); lean_ctor_set(x_11, 1, x_7); x_12 = lean_alloc_ctor(1, 2, 0); lean_ctor_set(x_12, 0, x_8); lean_ctor_set(x_12, 1, x_11); x_13 = l_List_join___rarg(x_12); x_14 = l_Lean_Json_mkObj(x_13); return x_14; } } static lean_object* _init_l_Lean_Lsp_instToJsonVersionedTextDocumentIdentifier___closed__1() { _start: { lean_object* x_1; x_1 = lean_alloc_closure((void*)(l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_toJsonVersionedTextDocumentIdentifier____x40_Lean_Data_Lsp_Basic___hyg_2500_), 1, 0); return x_1; } } static lean_object* _init_l_Lean_Lsp_instToJsonVersionedTextDocumentIdentifier() { _start: { lean_object* x_1; x_1 = l_Lean_Lsp_instToJsonVersionedTextDocumentIdentifier___closed__1; return x_1; } } LEAN_EXPORT lean_object* l_Lean_Json_getObjValAs_x3f___at___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonVersionedTextDocumentIdentifier____x40_Lean_Data_Lsp_Basic___hyg_2545____spec__1(lean_object* x_1, lean_object* x_2) { _start: { lean_object* x_3; x_3 = l_Lean_Json_getObjValD(x_1, x_2); if (lean_obj_tag(x_3) == 0) { lean_object* x_4; x_4 = l_Lean_Json_getObjValAs_x3f___at___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonLocationLink____x40_Lean_Data_Lsp_Basic___hyg_1529____spec__1___closed__1; return x_4; } else { lean_object* x_5; x_5 = l_Lean_Json_getNat_x3f(x_3); lean_dec(x_3); if (lean_obj_tag(x_5) == 0) { uint8_t x_6; x_6 = !lean_is_exclusive(x_5); if (x_6 == 0) { return x_5; } else { lean_object* x_7; lean_object* x_8; x_7 = lean_ctor_get(x_5, 0); lean_inc(x_7); lean_dec(x_5); x_8 = lean_alloc_ctor(0, 1, 0); lean_ctor_set(x_8, 0, x_7); return x_8; } } else { uint8_t x_9; x_9 = !lean_is_exclusive(x_5); if (x_9 == 0) { lean_object* x_10; lean_object* x_11; x_10 = lean_ctor_get(x_5, 0); x_11 = lean_alloc_ctor(1, 1, 0); lean_ctor_set(x_11, 0, x_10); lean_ctor_set(x_5, 0, x_11); return x_5; } else { lean_object* x_12; lean_object* x_13; lean_object* x_14; x_12 = lean_ctor_get(x_5, 0); lean_inc(x_12); lean_dec(x_5); x_13 = lean_alloc_ctor(1, 1, 0); lean_ctor_set(x_13, 0, x_12); x_14 = lean_alloc_ctor(1, 1, 0); lean_ctor_set(x_14, 0, x_13); return x_14; } } } } } static lean_object* _init_l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonVersionedTextDocumentIdentifier____x40_Lean_Data_Lsp_Basic___hyg_2545____closed__1() { _start: { lean_object* x_1; x_1 = lean_mk_string_from_bytes("VersionedTextDocumentIdentifier", 31); return x_1; } } static lean_object* _init_l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonVersionedTextDocumentIdentifier____x40_Lean_Data_Lsp_Basic___hyg_2545____closed__2() { _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; lean_object* x_4; x_1 = l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonCancelParams____x40_Lean_Data_Lsp_Basic___hyg_144____closed__1; x_2 = l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonCancelParams____x40_Lean_Data_Lsp_Basic___hyg_144____closed__2; x_3 = l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonVersionedTextDocumentIdentifier____x40_Lean_Data_Lsp_Basic___hyg_2545____closed__1; x_4 = l_Lean_Name_mkStr3(x_1, x_2, x_3); return x_4; } } static lean_object* _init_l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonVersionedTextDocumentIdentifier____x40_Lean_Data_Lsp_Basic___hyg_2545____closed__3() { _start: { lean_object* x_1; uint8_t x_2; lean_object* x_3; x_1 = l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonVersionedTextDocumentIdentifier____x40_Lean_Data_Lsp_Basic___hyg_2545____closed__2; x_2 = 1; x_3 = l_Lean_Name_toString(x_1, x_2); return x_3; } } static lean_object* _init_l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonVersionedTextDocumentIdentifier____x40_Lean_Data_Lsp_Basic___hyg_2545____closed__4() { _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; x_1 = l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonVersionedTextDocumentIdentifier____x40_Lean_Data_Lsp_Basic___hyg_2545____closed__3; x_2 = l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonCancelParams____x40_Lean_Data_Lsp_Basic___hyg_144____closed__6; x_3 = lean_string_append(x_1, x_2); return x_3; } } static lean_object* _init_l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonVersionedTextDocumentIdentifier____x40_Lean_Data_Lsp_Basic___hyg_2545____closed__5() { _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; x_1 = l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonVersionedTextDocumentIdentifier____x40_Lean_Data_Lsp_Basic___hyg_2545____closed__4; x_2 = l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonLocation____x40_Lean_Data_Lsp_Basic___hyg_1314____closed__6; x_3 = lean_string_append(x_1, x_2); return x_3; } } static lean_object* _init_l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonVersionedTextDocumentIdentifier____x40_Lean_Data_Lsp_Basic___hyg_2545____closed__6() { _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; x_1 = l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonVersionedTextDocumentIdentifier____x40_Lean_Data_Lsp_Basic___hyg_2545____closed__5; x_2 = l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonCancelParams____x40_Lean_Data_Lsp_Basic___hyg_144____closed__11; x_3 = lean_string_append(x_1, x_2); return x_3; } } static lean_object* _init_l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonVersionedTextDocumentIdentifier____x40_Lean_Data_Lsp_Basic___hyg_2545____closed__7() { _start: { lean_object* x_1; x_1 = lean_mk_string_from_bytes("version?", 8); return x_1; } } static lean_object* _init_l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonVersionedTextDocumentIdentifier____x40_Lean_Data_Lsp_Basic___hyg_2545____closed__8() { _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; x_1 = lean_box(0); x_2 = l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonVersionedTextDocumentIdentifier____x40_Lean_Data_Lsp_Basic___hyg_2545____closed__7; x_3 = l_Lean_Name_str___override(x_1, x_2); return x_3; } } static lean_object* _init_l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonVersionedTextDocumentIdentifier____x40_Lean_Data_Lsp_Basic___hyg_2545____closed__9() { _start: { lean_object* x_1; uint8_t x_2; lean_object* x_3; x_1 = l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonVersionedTextDocumentIdentifier____x40_Lean_Data_Lsp_Basic___hyg_2545____closed__8; x_2 = 1; x_3 = l_Lean_Name_toString(x_1, x_2); return x_3; } } static lean_object* _init_l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonVersionedTextDocumentIdentifier____x40_Lean_Data_Lsp_Basic___hyg_2545____closed__10() { _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; x_1 = l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonVersionedTextDocumentIdentifier____x40_Lean_Data_Lsp_Basic___hyg_2545____closed__4; x_2 = l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonVersionedTextDocumentIdentifier____x40_Lean_Data_Lsp_Basic___hyg_2545____closed__9; x_3 = lean_string_append(x_1, x_2); return x_3; } } static lean_object* _init_l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonVersionedTextDocumentIdentifier____x40_Lean_Data_Lsp_Basic___hyg_2545____closed__11() { _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; x_1 = l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonVersionedTextDocumentIdentifier____x40_Lean_Data_Lsp_Basic___hyg_2545____closed__10; x_2 = l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonCancelParams____x40_Lean_Data_Lsp_Basic___hyg_144____closed__11; x_3 = lean_string_append(x_1, x_2); return x_3; } } LEAN_EXPORT lean_object* l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonVersionedTextDocumentIdentifier____x40_Lean_Data_Lsp_Basic___hyg_2545_(lean_object* x_1) { _start: { lean_object* x_2; lean_object* x_3; x_2 = l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_toJsonLocation____x40_Lean_Data_Lsp_Basic___hyg_1263____closed__1; x_3 = l_Lean_Json_getObjValAs_x3f___at___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonLocation____x40_Lean_Data_Lsp_Basic___hyg_1314____spec__1(x_1, x_2); if (lean_obj_tag(x_3) == 0) { uint8_t x_4; x_4 = !lean_is_exclusive(x_3); if (x_4 == 0) { lean_object* x_5; lean_object* x_6; lean_object* x_7; x_5 = lean_ctor_get(x_3, 0); x_6 = l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonVersionedTextDocumentIdentifier____x40_Lean_Data_Lsp_Basic___hyg_2545____closed__6; x_7 = lean_string_append(x_6, x_5); lean_dec(x_5); lean_ctor_set(x_3, 0, x_7); return x_3; } else { lean_object* x_8; lean_object* x_9; lean_object* x_10; lean_object* x_11; x_8 = lean_ctor_get(x_3, 0); lean_inc(x_8); lean_dec(x_3); x_9 = l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonVersionedTextDocumentIdentifier____x40_Lean_Data_Lsp_Basic___hyg_2545____closed__6; x_10 = lean_string_append(x_9, x_8); lean_dec(x_8); x_11 = lean_alloc_ctor(0, 1, 0); lean_ctor_set(x_11, 0, x_10); return x_11; } } else { lean_object* x_12; lean_object* x_13; lean_object* x_14; x_12 = lean_ctor_get(x_3, 0); lean_inc(x_12); lean_dec(x_3); x_13 = l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_toJsonVersionedTextDocumentIdentifier____x40_Lean_Data_Lsp_Basic___hyg_2500____closed__1; x_14 = l_Lean_Json_getObjValAs_x3f___at___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonVersionedTextDocumentIdentifier____x40_Lean_Data_Lsp_Basic___hyg_2545____spec__1(x_1, x_13); if (lean_obj_tag(x_14) == 0) { uint8_t x_15; lean_dec(x_12); x_15 = !lean_is_exclusive(x_14); if (x_15 == 0) { lean_object* x_16; lean_object* x_17; lean_object* x_18; x_16 = lean_ctor_get(x_14, 0); x_17 = l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonVersionedTextDocumentIdentifier____x40_Lean_Data_Lsp_Basic___hyg_2545____closed__11; x_18 = lean_string_append(x_17, x_16); lean_dec(x_16); lean_ctor_set(x_14, 0, x_18); return x_14; } else { lean_object* x_19; lean_object* x_20; lean_object* x_21; lean_object* x_22; x_19 = lean_ctor_get(x_14, 0); lean_inc(x_19); lean_dec(x_14); x_20 = l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonVersionedTextDocumentIdentifier____x40_Lean_Data_Lsp_Basic___hyg_2545____closed__11; x_21 = lean_string_append(x_20, x_19); lean_dec(x_19); x_22 = lean_alloc_ctor(0, 1, 0); lean_ctor_set(x_22, 0, x_21); return x_22; } } else { uint8_t x_23; x_23 = !lean_is_exclusive(x_14); if (x_23 == 0) { lean_object* x_24; lean_object* x_25; x_24 = lean_ctor_get(x_14, 0); x_25 = lean_alloc_ctor(0, 2, 0); lean_ctor_set(x_25, 0, x_12); lean_ctor_set(x_25, 1, x_24); lean_ctor_set(x_14, 0, x_25); return x_14; } else { lean_object* x_26; lean_object* x_27; lean_object* x_28; x_26 = lean_ctor_get(x_14, 0); lean_inc(x_26); lean_dec(x_14); x_27 = lean_alloc_ctor(0, 2, 0); lean_ctor_set(x_27, 0, x_12); lean_ctor_set(x_27, 1, x_26); x_28 = lean_alloc_ctor(1, 1, 0); lean_ctor_set(x_28, 0, x_27); return x_28; } } } } } LEAN_EXPORT lean_object* l_Lean_Json_getObjValAs_x3f___at___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonVersionedTextDocumentIdentifier____x40_Lean_Data_Lsp_Basic___hyg_2545____spec__1___boxed(lean_object* x_1, lean_object* x_2) { _start: { lean_object* x_3; x_3 = l_Lean_Json_getObjValAs_x3f___at___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonVersionedTextDocumentIdentifier____x40_Lean_Data_Lsp_Basic___hyg_2545____spec__1(x_1, x_2); lean_dec(x_2); lean_dec(x_1); return x_3; } } LEAN_EXPORT lean_object* l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonVersionedTextDocumentIdentifier____x40_Lean_Data_Lsp_Basic___hyg_2545____boxed(lean_object* x_1) { _start: { lean_object* x_2; x_2 = l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonVersionedTextDocumentIdentifier____x40_Lean_Data_Lsp_Basic___hyg_2545_(x_1); lean_dec(x_1); return x_2; } } static lean_object* _init_l_Lean_Lsp_instFromJsonVersionedTextDocumentIdentifier___closed__1() { _start: { lean_object* x_1; x_1 = lean_alloc_closure((void*)(l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonVersionedTextDocumentIdentifier____x40_Lean_Data_Lsp_Basic___hyg_2545____boxed), 1, 0); return x_1; } } static lean_object* _init_l_Lean_Lsp_instFromJsonVersionedTextDocumentIdentifier() { _start: { lean_object* x_1; x_1 = l_Lean_Lsp_instFromJsonVersionedTextDocumentIdentifier___closed__1; return x_1; } } static lean_object* _init_l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_toJsonTextDocumentEdit____x40_Lean_Data_Lsp_Basic___hyg_2677____closed__1() { _start: { lean_object* x_1; x_1 = lean_mk_string_from_bytes("textDocument", 12); return x_1; } } static lean_object* _init_l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_toJsonTextDocumentEdit____x40_Lean_Data_Lsp_Basic___hyg_2677____closed__2() { _start: { lean_object* x_1; x_1 = lean_mk_string_from_bytes("edits", 5); return x_1; } } LEAN_EXPORT lean_object* l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_toJsonTextDocumentEdit____x40_Lean_Data_Lsp_Basic___hyg_2677_(lean_object* x_1) { _start: { lean_object* x_2; lean_object* x_3; lean_object* x_4; lean_object* x_5; lean_object* x_6; lean_object* x_7; lean_object* x_8; lean_object* x_9; size_t x_10; size_t x_11; lean_object* x_12; lean_object* x_13; lean_object* x_14; lean_object* x_15; lean_object* x_16; lean_object* x_17; lean_object* x_18; lean_object* x_19; lean_object* x_20; x_2 = lean_ctor_get(x_1, 0); lean_inc(x_2); x_3 = l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_toJsonVersionedTextDocumentIdentifier____x40_Lean_Data_Lsp_Basic___hyg_2500_(x_2); x_4 = l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_toJsonTextDocumentEdit____x40_Lean_Data_Lsp_Basic___hyg_2677____closed__1; x_5 = lean_alloc_ctor(0, 2, 0); lean_ctor_set(x_5, 0, x_4); lean_ctor_set(x_5, 1, x_3); x_6 = lean_box(0); x_7 = lean_alloc_ctor(1, 2, 0); lean_ctor_set(x_7, 0, x_5); lean_ctor_set(x_7, 1, x_6); x_8 = lean_ctor_get(x_1, 1); lean_inc(x_8); lean_dec(x_1); x_9 = lean_array_get_size(x_8); x_10 = lean_usize_of_nat(x_9); lean_dec(x_9); x_11 = 0; x_12 = l_Array_mapMUnsafe_map___at_Lean_Lsp_instToJsonTextEditBatch___spec__1(x_10, x_11, x_8); x_13 = lean_alloc_ctor(4, 1, 0); lean_ctor_set(x_13, 0, x_12); x_14 = l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_toJsonTextDocumentEdit____x40_Lean_Data_Lsp_Basic___hyg_2677____closed__2; x_15 = lean_alloc_ctor(0, 2, 0); lean_ctor_set(x_15, 0, x_14); lean_ctor_set(x_15, 1, x_13); x_16 = lean_alloc_ctor(1, 2, 0); lean_ctor_set(x_16, 0, x_15); lean_ctor_set(x_16, 1, x_6); x_17 = lean_alloc_ctor(1, 2, 0); lean_ctor_set(x_17, 0, x_16); lean_ctor_set(x_17, 1, x_6); x_18 = lean_alloc_ctor(1, 2, 0); lean_ctor_set(x_18, 0, x_7); lean_ctor_set(x_18, 1, x_17); x_19 = l_List_join___rarg(x_18); x_20 = l_Lean_Json_mkObj(x_19); return x_20; } } static lean_object* _init_l_Lean_Lsp_instToJsonTextDocumentEdit___closed__1() { _start: { lean_object* x_1; x_1 = lean_alloc_closure((void*)(l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_toJsonTextDocumentEdit____x40_Lean_Data_Lsp_Basic___hyg_2677_), 1, 0); return x_1; } } static lean_object* _init_l_Lean_Lsp_instToJsonTextDocumentEdit() { _start: { lean_object* x_1; x_1 = l_Lean_Lsp_instToJsonTextDocumentEdit___closed__1; return x_1; } } LEAN_EXPORT lean_object* l_Lean_Json_getObjValAs_x3f___at___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonTextDocumentEdit____x40_Lean_Data_Lsp_Basic___hyg_2731____spec__1(lean_object* x_1, lean_object* x_2) { _start: { lean_object* x_3; lean_object* x_4; x_3 = l_Lean_Json_getObjValD(x_1, x_2); x_4 = l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonVersionedTextDocumentIdentifier____x40_Lean_Data_Lsp_Basic___hyg_2545_(x_3); lean_dec(x_3); return x_4; } } LEAN_EXPORT lean_object* l_Lean_Json_getObjValAs_x3f___at___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonTextDocumentEdit____x40_Lean_Data_Lsp_Basic___hyg_2731____spec__2(lean_object* x_1, lean_object* x_2) { _start: { lean_object* x_3; x_3 = l_Lean_Json_getObjValD(x_1, x_2); if (lean_obj_tag(x_3) == 4) { lean_object* x_4; lean_object* x_5; size_t x_6; size_t x_7; lean_object* x_8; x_4 = lean_ctor_get(x_3, 0); lean_inc(x_4); lean_dec(x_3); x_5 = lean_array_get_size(x_4); x_6 = lean_usize_of_nat(x_5); lean_dec(x_5); x_7 = 0; x_8 = l_Array_mapMUnsafe_map___at_Lean_Lsp_instFromJsonTextEditBatch___spec__1(x_6, x_7, x_4); return x_8; } else { lean_object* x_9; lean_object* x_10; lean_object* x_11; lean_object* x_12; lean_object* x_13; lean_object* x_14; lean_object* x_15; x_9 = lean_unsigned_to_nat(80u); x_10 = l_Lean_Json_pretty(x_3, x_9); x_11 = l_Lean_Json_getObjValAs_x3f___at___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonCommand____x40_Lean_Data_Lsp_Basic___hyg_1837____spec__1___closed__1; x_12 = lean_string_append(x_11, x_10); lean_dec(x_10); x_13 = l_Lean_Json_getObjValAs_x3f___at___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonCommand____x40_Lean_Data_Lsp_Basic___hyg_1837____spec__1___closed__2; x_14 = lean_string_append(x_12, x_13); x_15 = lean_alloc_ctor(0, 1, 0); lean_ctor_set(x_15, 0, x_14); return x_15; } } } static lean_object* _init_l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonTextDocumentEdit____x40_Lean_Data_Lsp_Basic___hyg_2731____closed__1() { _start: { lean_object* x_1; x_1 = lean_mk_string_from_bytes("TextDocumentEdit", 16); return x_1; } } static lean_object* _init_l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonTextDocumentEdit____x40_Lean_Data_Lsp_Basic___hyg_2731____closed__2() { _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; lean_object* x_4; x_1 = l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonCancelParams____x40_Lean_Data_Lsp_Basic___hyg_144____closed__1; x_2 = l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonCancelParams____x40_Lean_Data_Lsp_Basic___hyg_144____closed__2; x_3 = l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonTextDocumentEdit____x40_Lean_Data_Lsp_Basic___hyg_2731____closed__1; x_4 = l_Lean_Name_mkStr3(x_1, x_2, x_3); return x_4; } } static lean_object* _init_l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonTextDocumentEdit____x40_Lean_Data_Lsp_Basic___hyg_2731____closed__3() { _start: { lean_object* x_1; uint8_t x_2; lean_object* x_3; x_1 = l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonTextDocumentEdit____x40_Lean_Data_Lsp_Basic___hyg_2731____closed__2; x_2 = 1; x_3 = l_Lean_Name_toString(x_1, x_2); return x_3; } } static lean_object* _init_l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonTextDocumentEdit____x40_Lean_Data_Lsp_Basic___hyg_2731____closed__4() { _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; x_1 = l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonTextDocumentEdit____x40_Lean_Data_Lsp_Basic___hyg_2731____closed__3; x_2 = l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonCancelParams____x40_Lean_Data_Lsp_Basic___hyg_144____closed__6; x_3 = lean_string_append(x_1, x_2); return x_3; } } static lean_object* _init_l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonTextDocumentEdit____x40_Lean_Data_Lsp_Basic___hyg_2731____closed__5() { _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; x_1 = lean_box(0); x_2 = l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_toJsonTextDocumentEdit____x40_Lean_Data_Lsp_Basic___hyg_2677____closed__1; x_3 = l_Lean_Name_str___override(x_1, x_2); return x_3; } } static lean_object* _init_l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonTextDocumentEdit____x40_Lean_Data_Lsp_Basic___hyg_2731____closed__6() { _start: { lean_object* x_1; uint8_t x_2; lean_object* x_3; x_1 = l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonTextDocumentEdit____x40_Lean_Data_Lsp_Basic___hyg_2731____closed__5; x_2 = 1; x_3 = l_Lean_Name_toString(x_1, x_2); return x_3; } } static lean_object* _init_l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonTextDocumentEdit____x40_Lean_Data_Lsp_Basic___hyg_2731____closed__7() { _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; x_1 = l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonTextDocumentEdit____x40_Lean_Data_Lsp_Basic___hyg_2731____closed__4; x_2 = l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonTextDocumentEdit____x40_Lean_Data_Lsp_Basic___hyg_2731____closed__6; x_3 = lean_string_append(x_1, x_2); return x_3; } } static lean_object* _init_l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonTextDocumentEdit____x40_Lean_Data_Lsp_Basic___hyg_2731____closed__8() { _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; x_1 = l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonTextDocumentEdit____x40_Lean_Data_Lsp_Basic___hyg_2731____closed__7; x_2 = l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonCancelParams____x40_Lean_Data_Lsp_Basic___hyg_144____closed__11; x_3 = lean_string_append(x_1, x_2); return x_3; } } static lean_object* _init_l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonTextDocumentEdit____x40_Lean_Data_Lsp_Basic___hyg_2731____closed__9() { _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; x_1 = lean_box(0); x_2 = l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_toJsonTextDocumentEdit____x40_Lean_Data_Lsp_Basic___hyg_2677____closed__2; x_3 = l_Lean_Name_str___override(x_1, x_2); return x_3; } } static lean_object* _init_l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonTextDocumentEdit____x40_Lean_Data_Lsp_Basic___hyg_2731____closed__10() { _start: { lean_object* x_1; uint8_t x_2; lean_object* x_3; x_1 = l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonTextDocumentEdit____x40_Lean_Data_Lsp_Basic___hyg_2731____closed__9; x_2 = 1; x_3 = l_Lean_Name_toString(x_1, x_2); return x_3; } } static lean_object* _init_l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonTextDocumentEdit____x40_Lean_Data_Lsp_Basic___hyg_2731____closed__11() { _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; x_1 = l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonTextDocumentEdit____x40_Lean_Data_Lsp_Basic___hyg_2731____closed__4; x_2 = l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonTextDocumentEdit____x40_Lean_Data_Lsp_Basic___hyg_2731____closed__10; x_3 = lean_string_append(x_1, x_2); return x_3; } } static lean_object* _init_l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonTextDocumentEdit____x40_Lean_Data_Lsp_Basic___hyg_2731____closed__12() { _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; x_1 = l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonTextDocumentEdit____x40_Lean_Data_Lsp_Basic___hyg_2731____closed__11; x_2 = l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonCancelParams____x40_Lean_Data_Lsp_Basic___hyg_144____closed__11; x_3 = lean_string_append(x_1, x_2); return x_3; } } LEAN_EXPORT lean_object* l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonTextDocumentEdit____x40_Lean_Data_Lsp_Basic___hyg_2731_(lean_object* x_1) { _start: { lean_object* x_2; lean_object* x_3; x_2 = l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_toJsonTextDocumentEdit____x40_Lean_Data_Lsp_Basic___hyg_2677____closed__1; x_3 = l_Lean_Json_getObjValAs_x3f___at___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonTextDocumentEdit____x40_Lean_Data_Lsp_Basic___hyg_2731____spec__1(x_1, x_2); if (lean_obj_tag(x_3) == 0) { uint8_t x_4; x_4 = !lean_is_exclusive(x_3); if (x_4 == 0) { lean_object* x_5; lean_object* x_6; lean_object* x_7; x_5 = lean_ctor_get(x_3, 0); x_6 = l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonTextDocumentEdit____x40_Lean_Data_Lsp_Basic___hyg_2731____closed__8; x_7 = lean_string_append(x_6, x_5); lean_dec(x_5); lean_ctor_set(x_3, 0, x_7); return x_3; } else { lean_object* x_8; lean_object* x_9; lean_object* x_10; lean_object* x_11; x_8 = lean_ctor_get(x_3, 0); lean_inc(x_8); lean_dec(x_3); x_9 = l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonTextDocumentEdit____x40_Lean_Data_Lsp_Basic___hyg_2731____closed__8; x_10 = lean_string_append(x_9, x_8); lean_dec(x_8); x_11 = lean_alloc_ctor(0, 1, 0); lean_ctor_set(x_11, 0, x_10); return x_11; } } else { lean_object* x_12; lean_object* x_13; lean_object* x_14; x_12 = lean_ctor_get(x_3, 0); lean_inc(x_12); lean_dec(x_3); x_13 = l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_toJsonTextDocumentEdit____x40_Lean_Data_Lsp_Basic___hyg_2677____closed__2; x_14 = l_Lean_Json_getObjValAs_x3f___at___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonTextDocumentEdit____x40_Lean_Data_Lsp_Basic___hyg_2731____spec__2(x_1, x_13); if (lean_obj_tag(x_14) == 0) { uint8_t x_15; lean_dec(x_12); x_15 = !lean_is_exclusive(x_14); if (x_15 == 0) { lean_object* x_16; lean_object* x_17; lean_object* x_18; x_16 = lean_ctor_get(x_14, 0); x_17 = l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonTextDocumentEdit____x40_Lean_Data_Lsp_Basic___hyg_2731____closed__12; x_18 = lean_string_append(x_17, x_16); lean_dec(x_16); lean_ctor_set(x_14, 0, x_18); return x_14; } else { lean_object* x_19; lean_object* x_20; lean_object* x_21; lean_object* x_22; x_19 = lean_ctor_get(x_14, 0); lean_inc(x_19); lean_dec(x_14); x_20 = l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonTextDocumentEdit____x40_Lean_Data_Lsp_Basic___hyg_2731____closed__12; x_21 = lean_string_append(x_20, x_19); lean_dec(x_19); x_22 = lean_alloc_ctor(0, 1, 0); lean_ctor_set(x_22, 0, x_21); return x_22; } } else { uint8_t x_23; x_23 = !lean_is_exclusive(x_14); if (x_23 == 0) { lean_object* x_24; lean_object* x_25; x_24 = lean_ctor_get(x_14, 0); x_25 = lean_alloc_ctor(0, 2, 0); lean_ctor_set(x_25, 0, x_12); lean_ctor_set(x_25, 1, x_24); lean_ctor_set(x_14, 0, x_25); return x_14; } else { lean_object* x_26; lean_object* x_27; lean_object* x_28; x_26 = lean_ctor_get(x_14, 0); lean_inc(x_26); lean_dec(x_14); x_27 = lean_alloc_ctor(0, 2, 0); lean_ctor_set(x_27, 0, x_12); lean_ctor_set(x_27, 1, x_26); x_28 = lean_alloc_ctor(1, 1, 0); lean_ctor_set(x_28, 0, x_27); return x_28; } } } } } LEAN_EXPORT lean_object* l_Lean_Json_getObjValAs_x3f___at___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonTextDocumentEdit____x40_Lean_Data_Lsp_Basic___hyg_2731____spec__1___boxed(lean_object* x_1, lean_object* x_2) { _start: { lean_object* x_3; x_3 = l_Lean_Json_getObjValAs_x3f___at___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonTextDocumentEdit____x40_Lean_Data_Lsp_Basic___hyg_2731____spec__1(x_1, x_2); lean_dec(x_2); lean_dec(x_1); return x_3; } } LEAN_EXPORT lean_object* l_Lean_Json_getObjValAs_x3f___at___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonTextDocumentEdit____x40_Lean_Data_Lsp_Basic___hyg_2731____spec__2___boxed(lean_object* x_1, lean_object* x_2) { _start: { lean_object* x_3; x_3 = l_Lean_Json_getObjValAs_x3f___at___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonTextDocumentEdit____x40_Lean_Data_Lsp_Basic___hyg_2731____spec__2(x_1, x_2); lean_dec(x_2); lean_dec(x_1); return x_3; } } LEAN_EXPORT lean_object* l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonTextDocumentEdit____x40_Lean_Data_Lsp_Basic___hyg_2731____boxed(lean_object* x_1) { _start: { lean_object* x_2; x_2 = l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonTextDocumentEdit____x40_Lean_Data_Lsp_Basic___hyg_2731_(x_1); lean_dec(x_1); return x_2; } } static lean_object* _init_l_Lean_Lsp_instFromJsonTextDocumentEdit___closed__1() { _start: { lean_object* x_1; x_1 = lean_alloc_closure((void*)(l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonTextDocumentEdit____x40_Lean_Data_Lsp_Basic___hyg_2731____boxed), 1, 0); return x_1; } } static lean_object* _init_l_Lean_Lsp_instFromJsonTextDocumentEdit() { _start: { lean_object* x_1; x_1 = l_Lean_Lsp_instFromJsonTextDocumentEdit___closed__1; return x_1; } } static uint8_t _init_l_Lean_Lsp_ChangeAnnotation_needsConfirmation___default() { _start: { uint8_t x_1; x_1 = 0; return x_1; } } static lean_object* _init_l_Lean_Lsp_ChangeAnnotation_description_x3f___default() { _start: { lean_object* x_1; x_1 = lean_box(0); return x_1; } } static lean_object* _init_l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_toJsonChangeAnnotation____x40_Lean_Data_Lsp_Basic___hyg_2875____closed__1() { _start: { lean_object* x_1; x_1 = lean_mk_string_from_bytes("label", 5); return x_1; } } static lean_object* _init_l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_toJsonChangeAnnotation____x40_Lean_Data_Lsp_Basic___hyg_2875____closed__2() { _start: { lean_object* x_1; x_1 = lean_mk_string_from_bytes("needsConfirmation", 17); return x_1; } } static lean_object* _init_l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_toJsonChangeAnnotation____x40_Lean_Data_Lsp_Basic___hyg_2875____closed__3() { _start: { lean_object* x_1; x_1 = lean_mk_string_from_bytes("description", 11); return x_1; } } LEAN_EXPORT lean_object* l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_toJsonChangeAnnotation____x40_Lean_Data_Lsp_Basic___hyg_2875_(lean_object* x_1) { _start: { lean_object* x_2; uint8_t x_3; lean_object* x_4; lean_object* x_5; lean_object* x_6; lean_object* x_7; lean_object* x_8; lean_object* x_9; lean_object* x_10; lean_object* x_11; lean_object* x_12; lean_object* x_13; lean_object* x_14; lean_object* x_15; lean_object* x_16; lean_object* x_17; lean_object* x_18; lean_object* x_19; lean_object* x_20; x_2 = lean_ctor_get(x_1, 0); x_3 = lean_ctor_get_uint8(x_1, sizeof(void*)*2); x_4 = lean_ctor_get(x_1, 1); lean_inc(x_2); x_5 = lean_alloc_ctor(3, 1, 0); lean_ctor_set(x_5, 0, x_2); x_6 = l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_toJsonChangeAnnotation____x40_Lean_Data_Lsp_Basic___hyg_2875____closed__1; x_7 = lean_alloc_ctor(0, 2, 0); lean_ctor_set(x_7, 0, x_6); lean_ctor_set(x_7, 1, x_5); x_8 = lean_box(0); x_9 = lean_alloc_ctor(1, 2, 0); lean_ctor_set(x_9, 0, x_7); lean_ctor_set(x_9, 1, x_8); x_10 = lean_alloc_ctor(1, 0, 1); lean_ctor_set_uint8(x_10, 0, x_3); x_11 = l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_toJsonChangeAnnotation____x40_Lean_Data_Lsp_Basic___hyg_2875____closed__2; x_12 = lean_alloc_ctor(0, 2, 0); lean_ctor_set(x_12, 0, x_11); lean_ctor_set(x_12, 1, x_10); x_13 = lean_alloc_ctor(1, 2, 0); lean_ctor_set(x_13, 0, x_12); lean_ctor_set(x_13, 1, x_8); x_14 = l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_toJsonChangeAnnotation____x40_Lean_Data_Lsp_Basic___hyg_2875____closed__3; x_15 = l_Lean_Json_opt___at___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_toJsonTextEdit____x40_Lean_Data_Lsp_Basic___hyg_2023____spec__1(x_14, x_4); x_16 = lean_alloc_ctor(1, 2, 0); lean_ctor_set(x_16, 0, x_15); lean_ctor_set(x_16, 1, x_8); x_17 = lean_alloc_ctor(1, 2, 0); lean_ctor_set(x_17, 0, x_13); lean_ctor_set(x_17, 1, x_16); x_18 = lean_alloc_ctor(1, 2, 0); lean_ctor_set(x_18, 0, x_9); lean_ctor_set(x_18, 1, x_17); x_19 = l_List_join___rarg(x_18); x_20 = l_Lean_Json_mkObj(x_19); return x_20; } } LEAN_EXPORT lean_object* l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_toJsonChangeAnnotation____x40_Lean_Data_Lsp_Basic___hyg_2875____boxed(lean_object* x_1) { _start: { lean_object* x_2; x_2 = l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_toJsonChangeAnnotation____x40_Lean_Data_Lsp_Basic___hyg_2875_(x_1); lean_dec(x_1); return x_2; } } static lean_object* _init_l_Lean_Lsp_instToJsonChangeAnnotation___closed__1() { _start: { lean_object* x_1; x_1 = lean_alloc_closure((void*)(l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_toJsonChangeAnnotation____x40_Lean_Data_Lsp_Basic___hyg_2875____boxed), 1, 0); return x_1; } } static lean_object* _init_l_Lean_Lsp_instToJsonChangeAnnotation() { _start: { lean_object* x_1; x_1 = l_Lean_Lsp_instToJsonChangeAnnotation___closed__1; return x_1; } } LEAN_EXPORT lean_object* l_Lean_Json_getObjValAs_x3f___at___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonChangeAnnotation____x40_Lean_Data_Lsp_Basic___hyg_2933____spec__1(lean_object* x_1, lean_object* x_2) { _start: { lean_object* x_3; lean_object* x_4; x_3 = l_Lean_Json_getObjValD(x_1, x_2); x_4 = l_Lean_Json_getBool_x3f(x_3); lean_dec(x_3); return x_4; } } static lean_object* _init_l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonChangeAnnotation____x40_Lean_Data_Lsp_Basic___hyg_2933____closed__1() { _start: { lean_object* x_1; x_1 = lean_mk_string_from_bytes("ChangeAnnotation", 16); return x_1; } } static lean_object* _init_l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonChangeAnnotation____x40_Lean_Data_Lsp_Basic___hyg_2933____closed__2() { _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; lean_object* x_4; x_1 = l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonCancelParams____x40_Lean_Data_Lsp_Basic___hyg_144____closed__1; x_2 = l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonCancelParams____x40_Lean_Data_Lsp_Basic___hyg_144____closed__2; x_3 = l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonChangeAnnotation____x40_Lean_Data_Lsp_Basic___hyg_2933____closed__1; x_4 = l_Lean_Name_mkStr3(x_1, x_2, x_3); return x_4; } } static lean_object* _init_l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonChangeAnnotation____x40_Lean_Data_Lsp_Basic___hyg_2933____closed__3() { _start: { lean_object* x_1; uint8_t x_2; lean_object* x_3; x_1 = l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonChangeAnnotation____x40_Lean_Data_Lsp_Basic___hyg_2933____closed__2; x_2 = 1; x_3 = l_Lean_Name_toString(x_1, x_2); return x_3; } } static lean_object* _init_l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonChangeAnnotation____x40_Lean_Data_Lsp_Basic___hyg_2933____closed__4() { _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; x_1 = l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonChangeAnnotation____x40_Lean_Data_Lsp_Basic___hyg_2933____closed__3; x_2 = l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonCancelParams____x40_Lean_Data_Lsp_Basic___hyg_144____closed__6; x_3 = lean_string_append(x_1, x_2); return x_3; } } static lean_object* _init_l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonChangeAnnotation____x40_Lean_Data_Lsp_Basic___hyg_2933____closed__5() { _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; x_1 = lean_box(0); x_2 = l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_toJsonChangeAnnotation____x40_Lean_Data_Lsp_Basic___hyg_2875____closed__1; x_3 = l_Lean_Name_str___override(x_1, x_2); return x_3; } } static lean_object* _init_l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonChangeAnnotation____x40_Lean_Data_Lsp_Basic___hyg_2933____closed__6() { _start: { lean_object* x_1; uint8_t x_2; lean_object* x_3; x_1 = l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonChangeAnnotation____x40_Lean_Data_Lsp_Basic___hyg_2933____closed__5; x_2 = 1; x_3 = l_Lean_Name_toString(x_1, x_2); return x_3; } } static lean_object* _init_l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonChangeAnnotation____x40_Lean_Data_Lsp_Basic___hyg_2933____closed__7() { _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; x_1 = l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonChangeAnnotation____x40_Lean_Data_Lsp_Basic___hyg_2933____closed__4; x_2 = l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonChangeAnnotation____x40_Lean_Data_Lsp_Basic___hyg_2933____closed__6; x_3 = lean_string_append(x_1, x_2); return x_3; } } static lean_object* _init_l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonChangeAnnotation____x40_Lean_Data_Lsp_Basic___hyg_2933____closed__8() { _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; x_1 = l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonChangeAnnotation____x40_Lean_Data_Lsp_Basic___hyg_2933____closed__7; x_2 = l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonCancelParams____x40_Lean_Data_Lsp_Basic___hyg_144____closed__11; x_3 = lean_string_append(x_1, x_2); return x_3; } } static lean_object* _init_l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonChangeAnnotation____x40_Lean_Data_Lsp_Basic___hyg_2933____closed__9() { _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; x_1 = lean_box(0); x_2 = l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_toJsonChangeAnnotation____x40_Lean_Data_Lsp_Basic___hyg_2875____closed__2; x_3 = l_Lean_Name_str___override(x_1, x_2); return x_3; } } static lean_object* _init_l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonChangeAnnotation____x40_Lean_Data_Lsp_Basic___hyg_2933____closed__10() { _start: { lean_object* x_1; uint8_t x_2; lean_object* x_3; x_1 = l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonChangeAnnotation____x40_Lean_Data_Lsp_Basic___hyg_2933____closed__9; x_2 = 1; x_3 = l_Lean_Name_toString(x_1, x_2); return x_3; } } static lean_object* _init_l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonChangeAnnotation____x40_Lean_Data_Lsp_Basic___hyg_2933____closed__11() { _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; x_1 = l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonChangeAnnotation____x40_Lean_Data_Lsp_Basic___hyg_2933____closed__4; x_2 = l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonChangeAnnotation____x40_Lean_Data_Lsp_Basic___hyg_2933____closed__10; x_3 = lean_string_append(x_1, x_2); return x_3; } } static lean_object* _init_l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonChangeAnnotation____x40_Lean_Data_Lsp_Basic___hyg_2933____closed__12() { _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; x_1 = l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonChangeAnnotation____x40_Lean_Data_Lsp_Basic___hyg_2933____closed__11; x_2 = l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonCancelParams____x40_Lean_Data_Lsp_Basic___hyg_144____closed__11; x_3 = lean_string_append(x_1, x_2); return x_3; } } static lean_object* _init_l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonChangeAnnotation____x40_Lean_Data_Lsp_Basic___hyg_2933____closed__13() { _start: { lean_object* x_1; x_1 = lean_mk_string_from_bytes("description?", 12); return x_1; } } static lean_object* _init_l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonChangeAnnotation____x40_Lean_Data_Lsp_Basic___hyg_2933____closed__14() { _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; x_1 = lean_box(0); x_2 = l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonChangeAnnotation____x40_Lean_Data_Lsp_Basic___hyg_2933____closed__13; x_3 = l_Lean_Name_str___override(x_1, x_2); return x_3; } } static lean_object* _init_l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonChangeAnnotation____x40_Lean_Data_Lsp_Basic___hyg_2933____closed__15() { _start: { lean_object* x_1; uint8_t x_2; lean_object* x_3; x_1 = l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonChangeAnnotation____x40_Lean_Data_Lsp_Basic___hyg_2933____closed__14; x_2 = 1; x_3 = l_Lean_Name_toString(x_1, x_2); return x_3; } } static lean_object* _init_l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonChangeAnnotation____x40_Lean_Data_Lsp_Basic___hyg_2933____closed__16() { _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; x_1 = l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonChangeAnnotation____x40_Lean_Data_Lsp_Basic___hyg_2933____closed__4; x_2 = l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonChangeAnnotation____x40_Lean_Data_Lsp_Basic___hyg_2933____closed__15; x_3 = lean_string_append(x_1, x_2); return x_3; } } static lean_object* _init_l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonChangeAnnotation____x40_Lean_Data_Lsp_Basic___hyg_2933____closed__17() { _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; x_1 = l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonChangeAnnotation____x40_Lean_Data_Lsp_Basic___hyg_2933____closed__16; x_2 = l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonCancelParams____x40_Lean_Data_Lsp_Basic___hyg_144____closed__11; x_3 = lean_string_append(x_1, x_2); return x_3; } } LEAN_EXPORT lean_object* l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonChangeAnnotation____x40_Lean_Data_Lsp_Basic___hyg_2933_(lean_object* x_1) { _start: { lean_object* x_2; lean_object* x_3; x_2 = l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_toJsonChangeAnnotation____x40_Lean_Data_Lsp_Basic___hyg_2875____closed__1; x_3 = l_Lean_Json_getObjValAs_x3f___at_Lean_JsonRpc_instFromJsonMessage___spec__3(x_1, x_2); if (lean_obj_tag(x_3) == 0) { uint8_t x_4; x_4 = !lean_is_exclusive(x_3); if (x_4 == 0) { lean_object* x_5; lean_object* x_6; lean_object* x_7; x_5 = lean_ctor_get(x_3, 0); x_6 = l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonChangeAnnotation____x40_Lean_Data_Lsp_Basic___hyg_2933____closed__8; x_7 = lean_string_append(x_6, x_5); lean_dec(x_5); lean_ctor_set(x_3, 0, x_7); return x_3; } else { lean_object* x_8; lean_object* x_9; lean_object* x_10; lean_object* x_11; x_8 = lean_ctor_get(x_3, 0); lean_inc(x_8); lean_dec(x_3); x_9 = l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonChangeAnnotation____x40_Lean_Data_Lsp_Basic___hyg_2933____closed__8; x_10 = lean_string_append(x_9, x_8); lean_dec(x_8); x_11 = lean_alloc_ctor(0, 1, 0); lean_ctor_set(x_11, 0, x_10); return x_11; } } else { lean_object* x_12; lean_object* x_13; lean_object* x_14; x_12 = lean_ctor_get(x_3, 0); lean_inc(x_12); lean_dec(x_3); x_13 = l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_toJsonChangeAnnotation____x40_Lean_Data_Lsp_Basic___hyg_2875____closed__2; x_14 = l_Lean_Json_getObjValAs_x3f___at___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonChangeAnnotation____x40_Lean_Data_Lsp_Basic___hyg_2933____spec__1(x_1, x_13); if (lean_obj_tag(x_14) == 0) { uint8_t x_15; lean_dec(x_12); x_15 = !lean_is_exclusive(x_14); if (x_15 == 0) { lean_object* x_16; lean_object* x_17; lean_object* x_18; x_16 = lean_ctor_get(x_14, 0); x_17 = l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonChangeAnnotation____x40_Lean_Data_Lsp_Basic___hyg_2933____closed__12; x_18 = lean_string_append(x_17, x_16); lean_dec(x_16); lean_ctor_set(x_14, 0, x_18); return x_14; } else { lean_object* x_19; lean_object* x_20; lean_object* x_21; lean_object* x_22; x_19 = lean_ctor_get(x_14, 0); lean_inc(x_19); lean_dec(x_14); x_20 = l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonChangeAnnotation____x40_Lean_Data_Lsp_Basic___hyg_2933____closed__12; x_21 = lean_string_append(x_20, x_19); lean_dec(x_19); x_22 = lean_alloc_ctor(0, 1, 0); lean_ctor_set(x_22, 0, x_21); return x_22; } } else { lean_object* x_23; lean_object* x_24; lean_object* x_25; x_23 = lean_ctor_get(x_14, 0); lean_inc(x_23); lean_dec(x_14); x_24 = l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_toJsonChangeAnnotation____x40_Lean_Data_Lsp_Basic___hyg_2875____closed__3; x_25 = l_Lean_Json_getObjValAs_x3f___at___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonTextEdit____x40_Lean_Data_Lsp_Basic___hyg_2082____spec__1(x_1, x_24); if (lean_obj_tag(x_25) == 0) { uint8_t x_26; lean_dec(x_23); lean_dec(x_12); x_26 = !lean_is_exclusive(x_25); if (x_26 == 0) { lean_object* x_27; lean_object* x_28; lean_object* x_29; x_27 = lean_ctor_get(x_25, 0); x_28 = l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonChangeAnnotation____x40_Lean_Data_Lsp_Basic___hyg_2933____closed__17; x_29 = lean_string_append(x_28, x_27); lean_dec(x_27); lean_ctor_set(x_25, 0, x_29); return x_25; } else { lean_object* x_30; lean_object* x_31; lean_object* x_32; lean_object* x_33; x_30 = lean_ctor_get(x_25, 0); lean_inc(x_30); lean_dec(x_25); x_31 = l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonChangeAnnotation____x40_Lean_Data_Lsp_Basic___hyg_2933____closed__17; x_32 = lean_string_append(x_31, x_30); lean_dec(x_30); x_33 = lean_alloc_ctor(0, 1, 0); lean_ctor_set(x_33, 0, x_32); return x_33; } } else { uint8_t x_34; x_34 = !lean_is_exclusive(x_25); if (x_34 == 0) { lean_object* x_35; lean_object* x_36; uint8_t x_37; x_35 = lean_ctor_get(x_25, 0); x_36 = lean_alloc_ctor(0, 2, 1); lean_ctor_set(x_36, 0, x_12); lean_ctor_set(x_36, 1, x_35); x_37 = lean_unbox(x_23); lean_dec(x_23); lean_ctor_set_uint8(x_36, sizeof(void*)*2, x_37); lean_ctor_set(x_25, 0, x_36); return x_25; } else { lean_object* x_38; lean_object* x_39; uint8_t x_40; lean_object* x_41; x_38 = lean_ctor_get(x_25, 0); lean_inc(x_38); lean_dec(x_25); x_39 = lean_alloc_ctor(0, 2, 1); lean_ctor_set(x_39, 0, x_12); lean_ctor_set(x_39, 1, x_38); x_40 = lean_unbox(x_23); lean_dec(x_23); lean_ctor_set_uint8(x_39, sizeof(void*)*2, x_40); x_41 = lean_alloc_ctor(1, 1, 0); lean_ctor_set(x_41, 0, x_39); return x_41; } } } } } } LEAN_EXPORT lean_object* l_Lean_Json_getObjValAs_x3f___at___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonChangeAnnotation____x40_Lean_Data_Lsp_Basic___hyg_2933____spec__1___boxed(lean_object* x_1, lean_object* x_2) { _start: { lean_object* x_3; x_3 = l_Lean_Json_getObjValAs_x3f___at___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonChangeAnnotation____x40_Lean_Data_Lsp_Basic___hyg_2933____spec__1(x_1, x_2); lean_dec(x_2); lean_dec(x_1); return x_3; } } LEAN_EXPORT lean_object* l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonChangeAnnotation____x40_Lean_Data_Lsp_Basic___hyg_2933____boxed(lean_object* x_1) { _start: { lean_object* x_2; x_2 = l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonChangeAnnotation____x40_Lean_Data_Lsp_Basic___hyg_2933_(x_1); lean_dec(x_1); return x_2; } } static lean_object* _init_l_Lean_Lsp_instFromJsonChangeAnnotation___closed__1() { _start: { lean_object* x_1; x_1 = lean_alloc_closure((void*)(l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonChangeAnnotation____x40_Lean_Data_Lsp_Basic___hyg_2933____boxed), 1, 0); return x_1; } } static lean_object* _init_l_Lean_Lsp_instFromJsonChangeAnnotation() { _start: { lean_object* x_1; x_1 = l_Lean_Lsp_instFromJsonChangeAnnotation___closed__1; return x_1; } } static uint8_t _init_l_Lean_Lsp_CreateFile_Options_overwrite___default() { _start: { uint8_t x_1; x_1 = 0; return x_1; } } static uint8_t _init_l_Lean_Lsp_CreateFile_Options_ignoreIfExists___default() { _start: { uint8_t x_1; x_1 = 0; return x_1; } } static lean_object* _init_l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_CreateFile_toJsonOptions____x40_Lean_Data_Lsp_Basic___hyg_3105____closed__1() { _start: { lean_object* x_1; x_1 = lean_mk_string_from_bytes("overwrite", 9); return x_1; } } static lean_object* _init_l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_CreateFile_toJsonOptions____x40_Lean_Data_Lsp_Basic___hyg_3105____closed__2() { _start: { lean_object* x_1; x_1 = lean_mk_string_from_bytes("ignoreIfExists", 14); return x_1; } } LEAN_EXPORT lean_object* l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_CreateFile_toJsonOptions____x40_Lean_Data_Lsp_Basic___hyg_3105_(lean_object* x_1) { _start: { uint8_t x_2; uint8_t x_3; lean_object* x_4; lean_object* x_5; lean_object* x_6; lean_object* x_7; lean_object* x_8; lean_object* x_9; lean_object* x_10; lean_object* x_11; lean_object* x_12; lean_object* x_13; lean_object* x_14; lean_object* x_15; lean_object* x_16; x_2 = lean_ctor_get_uint8(x_1, 0); x_3 = lean_ctor_get_uint8(x_1, 1); x_4 = lean_alloc_ctor(1, 0, 1); lean_ctor_set_uint8(x_4, 0, x_2); x_5 = l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_CreateFile_toJsonOptions____x40_Lean_Data_Lsp_Basic___hyg_3105____closed__1; x_6 = lean_alloc_ctor(0, 2, 0); lean_ctor_set(x_6, 0, x_5); lean_ctor_set(x_6, 1, x_4); x_7 = lean_box(0); x_8 = lean_alloc_ctor(1, 2, 0); lean_ctor_set(x_8, 0, x_6); lean_ctor_set(x_8, 1, x_7); x_9 = lean_alloc_ctor(1, 0, 1); lean_ctor_set_uint8(x_9, 0, x_3); x_10 = l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_CreateFile_toJsonOptions____x40_Lean_Data_Lsp_Basic___hyg_3105____closed__2; x_11 = lean_alloc_ctor(0, 2, 0); lean_ctor_set(x_11, 0, x_10); lean_ctor_set(x_11, 1, x_9); x_12 = lean_alloc_ctor(1, 2, 0); lean_ctor_set(x_12, 0, x_11); lean_ctor_set(x_12, 1, x_7); x_13 = lean_alloc_ctor(1, 2, 0); lean_ctor_set(x_13, 0, x_12); lean_ctor_set(x_13, 1, x_7); x_14 = lean_alloc_ctor(1, 2, 0); lean_ctor_set(x_14, 0, x_8); lean_ctor_set(x_14, 1, x_13); x_15 = l_List_join___rarg(x_14); x_16 = l_Lean_Json_mkObj(x_15); return x_16; } } LEAN_EXPORT lean_object* l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_CreateFile_toJsonOptions____x40_Lean_Data_Lsp_Basic___hyg_3105____boxed(lean_object* x_1) { _start: { lean_object* x_2; x_2 = l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_CreateFile_toJsonOptions____x40_Lean_Data_Lsp_Basic___hyg_3105_(x_1); lean_dec(x_1); return x_2; } } static lean_object* _init_l_Lean_Lsp_CreateFile_instToJsonOptions___closed__1() { _start: { lean_object* x_1; x_1 = lean_alloc_closure((void*)(l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_CreateFile_toJsonOptions____x40_Lean_Data_Lsp_Basic___hyg_3105____boxed), 1, 0); return x_1; } } static lean_object* _init_l_Lean_Lsp_CreateFile_instToJsonOptions() { _start: { lean_object* x_1; x_1 = l_Lean_Lsp_CreateFile_instToJsonOptions___closed__1; return x_1; } } static lean_object* _init_l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_CreateFile_fromJsonOptions____x40_Lean_Data_Lsp_Basic___hyg_3155____closed__1() { _start: { lean_object* x_1; x_1 = lean_mk_string_from_bytes("CreateFile", 10); return x_1; } } static lean_object* _init_l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_CreateFile_fromJsonOptions____x40_Lean_Data_Lsp_Basic___hyg_3155____closed__2() { _start: { lean_object* x_1; x_1 = lean_mk_string_from_bytes("Options", 7); return x_1; } } static lean_object* _init_l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_CreateFile_fromJsonOptions____x40_Lean_Data_Lsp_Basic___hyg_3155____closed__3() { _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; lean_object* x_4; lean_object* x_5; x_1 = l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonCancelParams____x40_Lean_Data_Lsp_Basic___hyg_144____closed__1; x_2 = l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonCancelParams____x40_Lean_Data_Lsp_Basic___hyg_144____closed__2; x_3 = l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_CreateFile_fromJsonOptions____x40_Lean_Data_Lsp_Basic___hyg_3155____closed__1; x_4 = l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_CreateFile_fromJsonOptions____x40_Lean_Data_Lsp_Basic___hyg_3155____closed__2; x_5 = l_Lean_Name_mkStr4(x_1, x_2, x_3, x_4); return x_5; } } static lean_object* _init_l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_CreateFile_fromJsonOptions____x40_Lean_Data_Lsp_Basic___hyg_3155____closed__4() { _start: { lean_object* x_1; uint8_t x_2; lean_object* x_3; x_1 = l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_CreateFile_fromJsonOptions____x40_Lean_Data_Lsp_Basic___hyg_3155____closed__3; x_2 = 1; x_3 = l_Lean_Name_toString(x_1, x_2); return x_3; } } static lean_object* _init_l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_CreateFile_fromJsonOptions____x40_Lean_Data_Lsp_Basic___hyg_3155____closed__5() { _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; x_1 = l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_CreateFile_fromJsonOptions____x40_Lean_Data_Lsp_Basic___hyg_3155____closed__4; x_2 = l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonCancelParams____x40_Lean_Data_Lsp_Basic___hyg_144____closed__6; x_3 = lean_string_append(x_1, x_2); return x_3; } } static lean_object* _init_l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_CreateFile_fromJsonOptions____x40_Lean_Data_Lsp_Basic___hyg_3155____closed__6() { _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; x_1 = lean_box(0); x_2 = l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_CreateFile_toJsonOptions____x40_Lean_Data_Lsp_Basic___hyg_3105____closed__1; x_3 = l_Lean_Name_str___override(x_1, x_2); return x_3; } } static lean_object* _init_l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_CreateFile_fromJsonOptions____x40_Lean_Data_Lsp_Basic___hyg_3155____closed__7() { _start: { lean_object* x_1; uint8_t x_2; lean_object* x_3; x_1 = l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_CreateFile_fromJsonOptions____x40_Lean_Data_Lsp_Basic___hyg_3155____closed__6; x_2 = 1; x_3 = l_Lean_Name_toString(x_1, x_2); return x_3; } } static lean_object* _init_l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_CreateFile_fromJsonOptions____x40_Lean_Data_Lsp_Basic___hyg_3155____closed__8() { _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; x_1 = l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_CreateFile_fromJsonOptions____x40_Lean_Data_Lsp_Basic___hyg_3155____closed__5; x_2 = l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_CreateFile_fromJsonOptions____x40_Lean_Data_Lsp_Basic___hyg_3155____closed__7; x_3 = lean_string_append(x_1, x_2); return x_3; } } static lean_object* _init_l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_CreateFile_fromJsonOptions____x40_Lean_Data_Lsp_Basic___hyg_3155____closed__9() { _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; x_1 = l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_CreateFile_fromJsonOptions____x40_Lean_Data_Lsp_Basic___hyg_3155____closed__8; x_2 = l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonCancelParams____x40_Lean_Data_Lsp_Basic___hyg_144____closed__11; x_3 = lean_string_append(x_1, x_2); return x_3; } } static lean_object* _init_l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_CreateFile_fromJsonOptions____x40_Lean_Data_Lsp_Basic___hyg_3155____closed__10() { _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; x_1 = lean_box(0); x_2 = l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_CreateFile_toJsonOptions____x40_Lean_Data_Lsp_Basic___hyg_3105____closed__2; x_3 = l_Lean_Name_str___override(x_1, x_2); return x_3; } } static lean_object* _init_l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_CreateFile_fromJsonOptions____x40_Lean_Data_Lsp_Basic___hyg_3155____closed__11() { _start: { lean_object* x_1; uint8_t x_2; lean_object* x_3; x_1 = l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_CreateFile_fromJsonOptions____x40_Lean_Data_Lsp_Basic___hyg_3155____closed__10; x_2 = 1; x_3 = l_Lean_Name_toString(x_1, x_2); return x_3; } } static lean_object* _init_l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_CreateFile_fromJsonOptions____x40_Lean_Data_Lsp_Basic___hyg_3155____closed__12() { _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; x_1 = l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_CreateFile_fromJsonOptions____x40_Lean_Data_Lsp_Basic___hyg_3155____closed__5; x_2 = l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_CreateFile_fromJsonOptions____x40_Lean_Data_Lsp_Basic___hyg_3155____closed__11; x_3 = lean_string_append(x_1, x_2); return x_3; } } static lean_object* _init_l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_CreateFile_fromJsonOptions____x40_Lean_Data_Lsp_Basic___hyg_3155____closed__13() { _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; x_1 = l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_CreateFile_fromJsonOptions____x40_Lean_Data_Lsp_Basic___hyg_3155____closed__12; x_2 = l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonCancelParams____x40_Lean_Data_Lsp_Basic___hyg_144____closed__11; x_3 = lean_string_append(x_1, x_2); return x_3; } } LEAN_EXPORT lean_object* l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_CreateFile_fromJsonOptions____x40_Lean_Data_Lsp_Basic___hyg_3155_(lean_object* x_1) { _start: { lean_object* x_2; lean_object* x_3; x_2 = l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_CreateFile_toJsonOptions____x40_Lean_Data_Lsp_Basic___hyg_3105____closed__1; x_3 = l_Lean_Json_getObjValAs_x3f___at___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonChangeAnnotation____x40_Lean_Data_Lsp_Basic___hyg_2933____spec__1(x_1, x_2); if (lean_obj_tag(x_3) == 0) { uint8_t x_4; x_4 = !lean_is_exclusive(x_3); if (x_4 == 0) { lean_object* x_5; lean_object* x_6; lean_object* x_7; x_5 = lean_ctor_get(x_3, 0); x_6 = l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_CreateFile_fromJsonOptions____x40_Lean_Data_Lsp_Basic___hyg_3155____closed__9; x_7 = lean_string_append(x_6, x_5); lean_dec(x_5); lean_ctor_set(x_3, 0, x_7); return x_3; } else { lean_object* x_8; lean_object* x_9; lean_object* x_10; lean_object* x_11; x_8 = lean_ctor_get(x_3, 0); lean_inc(x_8); lean_dec(x_3); x_9 = l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_CreateFile_fromJsonOptions____x40_Lean_Data_Lsp_Basic___hyg_3155____closed__9; x_10 = lean_string_append(x_9, x_8); lean_dec(x_8); x_11 = lean_alloc_ctor(0, 1, 0); lean_ctor_set(x_11, 0, x_10); return x_11; } } else { lean_object* x_12; lean_object* x_13; lean_object* x_14; x_12 = lean_ctor_get(x_3, 0); lean_inc(x_12); lean_dec(x_3); x_13 = l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_CreateFile_toJsonOptions____x40_Lean_Data_Lsp_Basic___hyg_3105____closed__2; x_14 = l_Lean_Json_getObjValAs_x3f___at___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonChangeAnnotation____x40_Lean_Data_Lsp_Basic___hyg_2933____spec__1(x_1, x_13); if (lean_obj_tag(x_14) == 0) { uint8_t x_15; lean_dec(x_12); x_15 = !lean_is_exclusive(x_14); if (x_15 == 0) { lean_object* x_16; lean_object* x_17; lean_object* x_18; x_16 = lean_ctor_get(x_14, 0); x_17 = l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_CreateFile_fromJsonOptions____x40_Lean_Data_Lsp_Basic___hyg_3155____closed__13; x_18 = lean_string_append(x_17, x_16); lean_dec(x_16); lean_ctor_set(x_14, 0, x_18); return x_14; } else { lean_object* x_19; lean_object* x_20; lean_object* x_21; lean_object* x_22; x_19 = lean_ctor_get(x_14, 0); lean_inc(x_19); lean_dec(x_14); x_20 = l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_CreateFile_fromJsonOptions____x40_Lean_Data_Lsp_Basic___hyg_3155____closed__13; x_21 = lean_string_append(x_20, x_19); lean_dec(x_19); x_22 = lean_alloc_ctor(0, 1, 0); lean_ctor_set(x_22, 0, x_21); return x_22; } } else { uint8_t x_23; x_23 = !lean_is_exclusive(x_14); if (x_23 == 0) { lean_object* x_24; lean_object* x_25; uint8_t x_26; uint8_t x_27; x_24 = lean_ctor_get(x_14, 0); x_25 = lean_alloc_ctor(0, 0, 2); x_26 = lean_unbox(x_12); lean_dec(x_12); lean_ctor_set_uint8(x_25, 0, x_26); x_27 = lean_unbox(x_24); lean_dec(x_24); lean_ctor_set_uint8(x_25, 1, x_27); lean_ctor_set(x_14, 0, x_25); return x_14; } else { lean_object* x_28; lean_object* x_29; uint8_t x_30; uint8_t x_31; lean_object* x_32; x_28 = lean_ctor_get(x_14, 0); lean_inc(x_28); lean_dec(x_14); x_29 = lean_alloc_ctor(0, 0, 2); x_30 = lean_unbox(x_12); lean_dec(x_12); lean_ctor_set_uint8(x_29, 0, x_30); x_31 = lean_unbox(x_28); lean_dec(x_28); lean_ctor_set_uint8(x_29, 1, x_31); x_32 = lean_alloc_ctor(1, 1, 0); lean_ctor_set(x_32, 0, x_29); return x_32; } } } } } LEAN_EXPORT lean_object* l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_CreateFile_fromJsonOptions____x40_Lean_Data_Lsp_Basic___hyg_3155____boxed(lean_object* x_1) { _start: { lean_object* x_2; x_2 = l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_CreateFile_fromJsonOptions____x40_Lean_Data_Lsp_Basic___hyg_3155_(x_1); lean_dec(x_1); return x_2; } } static lean_object* _init_l_Lean_Lsp_CreateFile_instFromJsonOptions___closed__1() { _start: { lean_object* x_1; x_1 = lean_alloc_closure((void*)(l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_CreateFile_fromJsonOptions____x40_Lean_Data_Lsp_Basic___hyg_3155____boxed), 1, 0); return x_1; } } static lean_object* _init_l_Lean_Lsp_CreateFile_instFromJsonOptions() { _start: { lean_object* x_1; x_1 = l_Lean_Lsp_CreateFile_instFromJsonOptions___closed__1; return x_1; } } static uint8_t _init_l_Lean_Lsp_DeleteFile_Options_recursive___default() { _start: { uint8_t x_1; x_1 = 0; return x_1; } } static uint8_t _init_l_Lean_Lsp_DeleteFile_Options_ignoreIfNotExists___default() { _start: { uint8_t x_1; x_1 = 0; return x_1; } } static lean_object* _init_l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_DeleteFile_toJsonOptions____x40_Lean_Data_Lsp_Basic___hyg_3285____closed__1() { _start: { lean_object* x_1; x_1 = lean_mk_string_from_bytes("recursive", 9); return x_1; } } static lean_object* _init_l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_DeleteFile_toJsonOptions____x40_Lean_Data_Lsp_Basic___hyg_3285____closed__2() { _start: { lean_object* x_1; x_1 = lean_mk_string_from_bytes("ignoreIfNotExists", 17); return x_1; } } LEAN_EXPORT lean_object* l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_DeleteFile_toJsonOptions____x40_Lean_Data_Lsp_Basic___hyg_3285_(lean_object* x_1) { _start: { uint8_t x_2; uint8_t x_3; lean_object* x_4; lean_object* x_5; lean_object* x_6; lean_object* x_7; lean_object* x_8; lean_object* x_9; lean_object* x_10; lean_object* x_11; lean_object* x_12; lean_object* x_13; lean_object* x_14; lean_object* x_15; lean_object* x_16; x_2 = lean_ctor_get_uint8(x_1, 0); x_3 = lean_ctor_get_uint8(x_1, 1); x_4 = lean_alloc_ctor(1, 0, 1); lean_ctor_set_uint8(x_4, 0, x_2); x_5 = l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_DeleteFile_toJsonOptions____x40_Lean_Data_Lsp_Basic___hyg_3285____closed__1; x_6 = lean_alloc_ctor(0, 2, 0); lean_ctor_set(x_6, 0, x_5); lean_ctor_set(x_6, 1, x_4); x_7 = lean_box(0); x_8 = lean_alloc_ctor(1, 2, 0); lean_ctor_set(x_8, 0, x_6); lean_ctor_set(x_8, 1, x_7); x_9 = lean_alloc_ctor(1, 0, 1); lean_ctor_set_uint8(x_9, 0, x_3); x_10 = l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_DeleteFile_toJsonOptions____x40_Lean_Data_Lsp_Basic___hyg_3285____closed__2; x_11 = lean_alloc_ctor(0, 2, 0); lean_ctor_set(x_11, 0, x_10); lean_ctor_set(x_11, 1, x_9); x_12 = lean_alloc_ctor(1, 2, 0); lean_ctor_set(x_12, 0, x_11); lean_ctor_set(x_12, 1, x_7); x_13 = lean_alloc_ctor(1, 2, 0); lean_ctor_set(x_13, 0, x_12); lean_ctor_set(x_13, 1, x_7); x_14 = lean_alloc_ctor(1, 2, 0); lean_ctor_set(x_14, 0, x_8); lean_ctor_set(x_14, 1, x_13); x_15 = l_List_join___rarg(x_14); x_16 = l_Lean_Json_mkObj(x_15); return x_16; } } LEAN_EXPORT lean_object* l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_DeleteFile_toJsonOptions____x40_Lean_Data_Lsp_Basic___hyg_3285____boxed(lean_object* x_1) { _start: { lean_object* x_2; x_2 = l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_DeleteFile_toJsonOptions____x40_Lean_Data_Lsp_Basic___hyg_3285_(x_1); lean_dec(x_1); return x_2; } } static lean_object* _init_l_Lean_Lsp_DeleteFile_instToJsonOptions___closed__1() { _start: { lean_object* x_1; x_1 = lean_alloc_closure((void*)(l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_DeleteFile_toJsonOptions____x40_Lean_Data_Lsp_Basic___hyg_3285____boxed), 1, 0); return x_1; } } static lean_object* _init_l_Lean_Lsp_DeleteFile_instToJsonOptions() { _start: { lean_object* x_1; x_1 = l_Lean_Lsp_DeleteFile_instToJsonOptions___closed__1; return x_1; } } static lean_object* _init_l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_DeleteFile_fromJsonOptions____x40_Lean_Data_Lsp_Basic___hyg_3335____closed__1() { _start: { lean_object* x_1; x_1 = lean_mk_string_from_bytes("DeleteFile", 10); return x_1; } } static lean_object* _init_l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_DeleteFile_fromJsonOptions____x40_Lean_Data_Lsp_Basic___hyg_3335____closed__2() { _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; lean_object* x_4; lean_object* x_5; x_1 = l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonCancelParams____x40_Lean_Data_Lsp_Basic___hyg_144____closed__1; x_2 = l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonCancelParams____x40_Lean_Data_Lsp_Basic___hyg_144____closed__2; x_3 = l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_DeleteFile_fromJsonOptions____x40_Lean_Data_Lsp_Basic___hyg_3335____closed__1; x_4 = l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_CreateFile_fromJsonOptions____x40_Lean_Data_Lsp_Basic___hyg_3155____closed__2; x_5 = l_Lean_Name_mkStr4(x_1, x_2, x_3, x_4); return x_5; } } static lean_object* _init_l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_DeleteFile_fromJsonOptions____x40_Lean_Data_Lsp_Basic___hyg_3335____closed__3() { _start: { lean_object* x_1; uint8_t x_2; lean_object* x_3; x_1 = l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_DeleteFile_fromJsonOptions____x40_Lean_Data_Lsp_Basic___hyg_3335____closed__2; x_2 = 1; x_3 = l_Lean_Name_toString(x_1, x_2); return x_3; } } static lean_object* _init_l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_DeleteFile_fromJsonOptions____x40_Lean_Data_Lsp_Basic___hyg_3335____closed__4() { _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; x_1 = l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_DeleteFile_fromJsonOptions____x40_Lean_Data_Lsp_Basic___hyg_3335____closed__3; x_2 = l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonCancelParams____x40_Lean_Data_Lsp_Basic___hyg_144____closed__6; x_3 = lean_string_append(x_1, x_2); return x_3; } } static lean_object* _init_l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_DeleteFile_fromJsonOptions____x40_Lean_Data_Lsp_Basic___hyg_3335____closed__5() { _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; x_1 = lean_box(0); x_2 = l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_DeleteFile_toJsonOptions____x40_Lean_Data_Lsp_Basic___hyg_3285____closed__1; x_3 = l_Lean_Name_str___override(x_1, x_2); return x_3; } } static lean_object* _init_l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_DeleteFile_fromJsonOptions____x40_Lean_Data_Lsp_Basic___hyg_3335____closed__6() { _start: { lean_object* x_1; uint8_t x_2; lean_object* x_3; x_1 = l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_DeleteFile_fromJsonOptions____x40_Lean_Data_Lsp_Basic___hyg_3335____closed__5; x_2 = 1; x_3 = l_Lean_Name_toString(x_1, x_2); return x_3; } } static lean_object* _init_l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_DeleteFile_fromJsonOptions____x40_Lean_Data_Lsp_Basic___hyg_3335____closed__7() { _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; x_1 = l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_DeleteFile_fromJsonOptions____x40_Lean_Data_Lsp_Basic___hyg_3335____closed__4; x_2 = l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_DeleteFile_fromJsonOptions____x40_Lean_Data_Lsp_Basic___hyg_3335____closed__6; x_3 = lean_string_append(x_1, x_2); return x_3; } } static lean_object* _init_l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_DeleteFile_fromJsonOptions____x40_Lean_Data_Lsp_Basic___hyg_3335____closed__8() { _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; x_1 = l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_DeleteFile_fromJsonOptions____x40_Lean_Data_Lsp_Basic___hyg_3335____closed__7; x_2 = l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonCancelParams____x40_Lean_Data_Lsp_Basic___hyg_144____closed__11; x_3 = lean_string_append(x_1, x_2); return x_3; } } static lean_object* _init_l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_DeleteFile_fromJsonOptions____x40_Lean_Data_Lsp_Basic___hyg_3335____closed__9() { _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; x_1 = lean_box(0); x_2 = l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_DeleteFile_toJsonOptions____x40_Lean_Data_Lsp_Basic___hyg_3285____closed__2; x_3 = l_Lean_Name_str___override(x_1, x_2); return x_3; } } static lean_object* _init_l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_DeleteFile_fromJsonOptions____x40_Lean_Data_Lsp_Basic___hyg_3335____closed__10() { _start: { lean_object* x_1; uint8_t x_2; lean_object* x_3; x_1 = l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_DeleteFile_fromJsonOptions____x40_Lean_Data_Lsp_Basic___hyg_3335____closed__9; x_2 = 1; x_3 = l_Lean_Name_toString(x_1, x_2); return x_3; } } static lean_object* _init_l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_DeleteFile_fromJsonOptions____x40_Lean_Data_Lsp_Basic___hyg_3335____closed__11() { _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; x_1 = l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_DeleteFile_fromJsonOptions____x40_Lean_Data_Lsp_Basic___hyg_3335____closed__4; x_2 = l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_DeleteFile_fromJsonOptions____x40_Lean_Data_Lsp_Basic___hyg_3335____closed__10; x_3 = lean_string_append(x_1, x_2); return x_3; } } static lean_object* _init_l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_DeleteFile_fromJsonOptions____x40_Lean_Data_Lsp_Basic___hyg_3335____closed__12() { _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; x_1 = l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_DeleteFile_fromJsonOptions____x40_Lean_Data_Lsp_Basic___hyg_3335____closed__11; x_2 = l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonCancelParams____x40_Lean_Data_Lsp_Basic___hyg_144____closed__11; x_3 = lean_string_append(x_1, x_2); return x_3; } } LEAN_EXPORT lean_object* l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_DeleteFile_fromJsonOptions____x40_Lean_Data_Lsp_Basic___hyg_3335_(lean_object* x_1) { _start: { lean_object* x_2; lean_object* x_3; x_2 = l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_DeleteFile_toJsonOptions____x40_Lean_Data_Lsp_Basic___hyg_3285____closed__1; x_3 = l_Lean_Json_getObjValAs_x3f___at___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonChangeAnnotation____x40_Lean_Data_Lsp_Basic___hyg_2933____spec__1(x_1, x_2); if (lean_obj_tag(x_3) == 0) { uint8_t x_4; x_4 = !lean_is_exclusive(x_3); if (x_4 == 0) { lean_object* x_5; lean_object* x_6; lean_object* x_7; x_5 = lean_ctor_get(x_3, 0); x_6 = l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_DeleteFile_fromJsonOptions____x40_Lean_Data_Lsp_Basic___hyg_3335____closed__8; x_7 = lean_string_append(x_6, x_5); lean_dec(x_5); lean_ctor_set(x_3, 0, x_7); return x_3; } else { lean_object* x_8; lean_object* x_9; lean_object* x_10; lean_object* x_11; x_8 = lean_ctor_get(x_3, 0); lean_inc(x_8); lean_dec(x_3); x_9 = l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_DeleteFile_fromJsonOptions____x40_Lean_Data_Lsp_Basic___hyg_3335____closed__8; x_10 = lean_string_append(x_9, x_8); lean_dec(x_8); x_11 = lean_alloc_ctor(0, 1, 0); lean_ctor_set(x_11, 0, x_10); return x_11; } } else { lean_object* x_12; lean_object* x_13; lean_object* x_14; x_12 = lean_ctor_get(x_3, 0); lean_inc(x_12); lean_dec(x_3); x_13 = l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_DeleteFile_toJsonOptions____x40_Lean_Data_Lsp_Basic___hyg_3285____closed__2; x_14 = l_Lean_Json_getObjValAs_x3f___at___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonChangeAnnotation____x40_Lean_Data_Lsp_Basic___hyg_2933____spec__1(x_1, x_13); if (lean_obj_tag(x_14) == 0) { uint8_t x_15; lean_dec(x_12); x_15 = !lean_is_exclusive(x_14); if (x_15 == 0) { lean_object* x_16; lean_object* x_17; lean_object* x_18; x_16 = lean_ctor_get(x_14, 0); x_17 = l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_DeleteFile_fromJsonOptions____x40_Lean_Data_Lsp_Basic___hyg_3335____closed__12; x_18 = lean_string_append(x_17, x_16); lean_dec(x_16); lean_ctor_set(x_14, 0, x_18); return x_14; } else { lean_object* x_19; lean_object* x_20; lean_object* x_21; lean_object* x_22; x_19 = lean_ctor_get(x_14, 0); lean_inc(x_19); lean_dec(x_14); x_20 = l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_DeleteFile_fromJsonOptions____x40_Lean_Data_Lsp_Basic___hyg_3335____closed__12; x_21 = lean_string_append(x_20, x_19); lean_dec(x_19); x_22 = lean_alloc_ctor(0, 1, 0); lean_ctor_set(x_22, 0, x_21); return x_22; } } else { uint8_t x_23; x_23 = !lean_is_exclusive(x_14); if (x_23 == 0) { lean_object* x_24; lean_object* x_25; uint8_t x_26; uint8_t x_27; x_24 = lean_ctor_get(x_14, 0); x_25 = lean_alloc_ctor(0, 0, 2); x_26 = lean_unbox(x_12); lean_dec(x_12); lean_ctor_set_uint8(x_25, 0, x_26); x_27 = lean_unbox(x_24); lean_dec(x_24); lean_ctor_set_uint8(x_25, 1, x_27); lean_ctor_set(x_14, 0, x_25); return x_14; } else { lean_object* x_28; lean_object* x_29; uint8_t x_30; uint8_t x_31; lean_object* x_32; x_28 = lean_ctor_get(x_14, 0); lean_inc(x_28); lean_dec(x_14); x_29 = lean_alloc_ctor(0, 0, 2); x_30 = lean_unbox(x_12); lean_dec(x_12); lean_ctor_set_uint8(x_29, 0, x_30); x_31 = lean_unbox(x_28); lean_dec(x_28); lean_ctor_set_uint8(x_29, 1, x_31); x_32 = lean_alloc_ctor(1, 1, 0); lean_ctor_set(x_32, 0, x_29); return x_32; } } } } } LEAN_EXPORT lean_object* l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_DeleteFile_fromJsonOptions____x40_Lean_Data_Lsp_Basic___hyg_3335____boxed(lean_object* x_1) { _start: { lean_object* x_2; x_2 = l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_DeleteFile_fromJsonOptions____x40_Lean_Data_Lsp_Basic___hyg_3335_(x_1); lean_dec(x_1); return x_2; } } static lean_object* _init_l_Lean_Lsp_DeleteFile_instFromJsonOptions___closed__1() { _start: { lean_object* x_1; x_1 = lean_alloc_closure((void*)(l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_DeleteFile_fromJsonOptions____x40_Lean_Data_Lsp_Basic___hyg_3335____boxed), 1, 0); return x_1; } } static lean_object* _init_l_Lean_Lsp_DeleteFile_instFromJsonOptions() { _start: { lean_object* x_1; x_1 = l_Lean_Lsp_DeleteFile_instFromJsonOptions___closed__1; return x_1; } } static lean_object* _init_l_Lean_Lsp_CreateFile_options_x3f___default() { _start: { lean_object* x_1; x_1 = lean_box(0); return x_1; } } static lean_object* _init_l_Lean_Lsp_CreateFile_annotationId_x3f___default() { _start: { lean_object* x_1; x_1 = lean_box(0); return x_1; } } LEAN_EXPORT lean_object* l_Lean_Json_opt___at___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_toJsonCreateFile____x40_Lean_Data_Lsp_Basic___hyg_3473____spec__1(lean_object* x_1, lean_object* x_2) { _start: { if (lean_obj_tag(x_2) == 0) { lean_object* x_3; lean_dec(x_1); x_3 = lean_box(0); return x_3; } else { lean_object* x_4; lean_object* x_5; lean_object* x_6; lean_object* x_7; lean_object* x_8; x_4 = lean_ctor_get(x_2, 0); x_5 = l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_CreateFile_toJsonOptions____x40_Lean_Data_Lsp_Basic___hyg_3105_(x_4); x_6 = lean_alloc_ctor(0, 2, 0); lean_ctor_set(x_6, 0, x_1); lean_ctor_set(x_6, 1, x_5); x_7 = lean_box(0); x_8 = lean_alloc_ctor(1, 2, 0); lean_ctor_set(x_8, 0, x_6); lean_ctor_set(x_8, 1, x_7); return x_8; } } } static lean_object* _init_l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_toJsonCreateFile____x40_Lean_Data_Lsp_Basic___hyg_3473____closed__1() { _start: { lean_object* x_1; x_1 = lean_mk_string_from_bytes("options", 7); return x_1; } } LEAN_EXPORT lean_object* l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_toJsonCreateFile____x40_Lean_Data_Lsp_Basic___hyg_3473_(lean_object* x_1) { _start: { lean_object* x_2; lean_object* x_3; lean_object* x_4; lean_object* x_5; lean_object* x_6; lean_object* x_7; lean_object* x_8; lean_object* x_9; lean_object* x_10; lean_object* x_11; lean_object* x_12; lean_object* x_13; lean_object* x_14; lean_object* x_15; lean_object* x_16; lean_object* x_17; lean_object* x_18; x_2 = lean_ctor_get(x_1, 0); x_3 = lean_ctor_get(x_1, 1); x_4 = lean_ctor_get(x_1, 2); lean_inc(x_2); x_5 = lean_alloc_ctor(3, 1, 0); lean_ctor_set(x_5, 0, x_2); x_6 = l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_toJsonLocation____x40_Lean_Data_Lsp_Basic___hyg_1263____closed__1; x_7 = lean_alloc_ctor(0, 2, 0); lean_ctor_set(x_7, 0, x_6); lean_ctor_set(x_7, 1, x_5); x_8 = lean_box(0); x_9 = lean_alloc_ctor(1, 2, 0); lean_ctor_set(x_9, 0, x_7); lean_ctor_set(x_9, 1, x_8); x_10 = l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_toJsonCreateFile____x40_Lean_Data_Lsp_Basic___hyg_3473____closed__1; x_11 = l_Lean_Json_opt___at___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_toJsonCreateFile____x40_Lean_Data_Lsp_Basic___hyg_3473____spec__1(x_10, x_3); x_12 = l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_toJsonTextEdit____x40_Lean_Data_Lsp_Basic___hyg_2023____closed__2; x_13 = l_Lean_Json_opt___at___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_toJsonTextEdit____x40_Lean_Data_Lsp_Basic___hyg_2023____spec__1(x_12, x_4); x_14 = lean_alloc_ctor(1, 2, 0); lean_ctor_set(x_14, 0, x_13); lean_ctor_set(x_14, 1, x_8); x_15 = lean_alloc_ctor(1, 2, 0); lean_ctor_set(x_15, 0, x_11); lean_ctor_set(x_15, 1, x_14); x_16 = lean_alloc_ctor(1, 2, 0); lean_ctor_set(x_16, 0, x_9); lean_ctor_set(x_16, 1, x_15); x_17 = l_List_join___rarg(x_16); x_18 = l_Lean_Json_mkObj(x_17); return x_18; } } LEAN_EXPORT lean_object* l_Lean_Json_opt___at___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_toJsonCreateFile____x40_Lean_Data_Lsp_Basic___hyg_3473____spec__1___boxed(lean_object* x_1, lean_object* x_2) { _start: { lean_object* x_3; x_3 = l_Lean_Json_opt___at___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_toJsonCreateFile____x40_Lean_Data_Lsp_Basic___hyg_3473____spec__1(x_1, x_2); lean_dec(x_2); return x_3; } } LEAN_EXPORT lean_object* l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_toJsonCreateFile____x40_Lean_Data_Lsp_Basic___hyg_3473____boxed(lean_object* x_1) { _start: { lean_object* x_2; x_2 = l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_toJsonCreateFile____x40_Lean_Data_Lsp_Basic___hyg_3473_(x_1); lean_dec(x_1); return x_2; } } static lean_object* _init_l_Lean_Lsp_instToJsonCreateFile___closed__1() { _start: { lean_object* x_1; x_1 = lean_alloc_closure((void*)(l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_toJsonCreateFile____x40_Lean_Data_Lsp_Basic___hyg_3473____boxed), 1, 0); return x_1; } } static lean_object* _init_l_Lean_Lsp_instToJsonCreateFile() { _start: { lean_object* x_1; x_1 = l_Lean_Lsp_instToJsonCreateFile___closed__1; return x_1; } } LEAN_EXPORT lean_object* l_Lean_Json_getObjValAs_x3f___at___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonCreateFile____x40_Lean_Data_Lsp_Basic___hyg_3525____spec__1(lean_object* x_1, lean_object* x_2) { _start: { lean_object* x_3; x_3 = l_Lean_Json_getObjValD(x_1, x_2); if (lean_obj_tag(x_3) == 0) { lean_object* x_4; x_4 = l_Lean_Json_getObjValAs_x3f___at___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonLocationLink____x40_Lean_Data_Lsp_Basic___hyg_1529____spec__1___closed__1; return x_4; } else { lean_object* x_5; x_5 = l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_CreateFile_fromJsonOptions____x40_Lean_Data_Lsp_Basic___hyg_3155_(x_3); lean_dec(x_3); if (lean_obj_tag(x_5) == 0) { uint8_t x_6; x_6 = !lean_is_exclusive(x_5); if (x_6 == 0) { return x_5; } else { lean_object* x_7; lean_object* x_8; x_7 = lean_ctor_get(x_5, 0); lean_inc(x_7); lean_dec(x_5); x_8 = lean_alloc_ctor(0, 1, 0); lean_ctor_set(x_8, 0, x_7); return x_8; } } else { uint8_t x_9; x_9 = !lean_is_exclusive(x_5); if (x_9 == 0) { lean_object* x_10; lean_object* x_11; x_10 = lean_ctor_get(x_5, 0); x_11 = lean_alloc_ctor(1, 1, 0); lean_ctor_set(x_11, 0, x_10); lean_ctor_set(x_5, 0, x_11); return x_5; } else { lean_object* x_12; lean_object* x_13; lean_object* x_14; x_12 = lean_ctor_get(x_5, 0); lean_inc(x_12); lean_dec(x_5); x_13 = lean_alloc_ctor(1, 1, 0); lean_ctor_set(x_13, 0, x_12); x_14 = lean_alloc_ctor(1, 1, 0); lean_ctor_set(x_14, 0, x_13); return x_14; } } } } } static lean_object* _init_l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonCreateFile____x40_Lean_Data_Lsp_Basic___hyg_3525____closed__1() { _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; lean_object* x_4; x_1 = l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonCancelParams____x40_Lean_Data_Lsp_Basic___hyg_144____closed__1; x_2 = l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonCancelParams____x40_Lean_Data_Lsp_Basic___hyg_144____closed__2; x_3 = l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_CreateFile_fromJsonOptions____x40_Lean_Data_Lsp_Basic___hyg_3155____closed__1; x_4 = l_Lean_Name_mkStr3(x_1, x_2, x_3); return x_4; } } static lean_object* _init_l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonCreateFile____x40_Lean_Data_Lsp_Basic___hyg_3525____closed__2() { _start: { lean_object* x_1; uint8_t x_2; lean_object* x_3; x_1 = l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonCreateFile____x40_Lean_Data_Lsp_Basic___hyg_3525____closed__1; x_2 = 1; x_3 = l_Lean_Name_toString(x_1, x_2); return x_3; } } static lean_object* _init_l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonCreateFile____x40_Lean_Data_Lsp_Basic___hyg_3525____closed__3() { _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; x_1 = l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonCreateFile____x40_Lean_Data_Lsp_Basic___hyg_3525____closed__2; x_2 = l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonCancelParams____x40_Lean_Data_Lsp_Basic___hyg_144____closed__6; x_3 = lean_string_append(x_1, x_2); return x_3; } } static lean_object* _init_l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonCreateFile____x40_Lean_Data_Lsp_Basic___hyg_3525____closed__4() { _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; x_1 = l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonCreateFile____x40_Lean_Data_Lsp_Basic___hyg_3525____closed__3; x_2 = l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonLocation____x40_Lean_Data_Lsp_Basic___hyg_1314____closed__6; x_3 = lean_string_append(x_1, x_2); return x_3; } } static lean_object* _init_l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonCreateFile____x40_Lean_Data_Lsp_Basic___hyg_3525____closed__5() { _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; x_1 = l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonCreateFile____x40_Lean_Data_Lsp_Basic___hyg_3525____closed__4; x_2 = l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonCancelParams____x40_Lean_Data_Lsp_Basic___hyg_144____closed__11; x_3 = lean_string_append(x_1, x_2); return x_3; } } static lean_object* _init_l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonCreateFile____x40_Lean_Data_Lsp_Basic___hyg_3525____closed__6() { _start: { lean_object* x_1; x_1 = lean_mk_string_from_bytes("options?", 8); return x_1; } } static lean_object* _init_l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonCreateFile____x40_Lean_Data_Lsp_Basic___hyg_3525____closed__7() { _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; x_1 = lean_box(0); x_2 = l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonCreateFile____x40_Lean_Data_Lsp_Basic___hyg_3525____closed__6; x_3 = l_Lean_Name_str___override(x_1, x_2); return x_3; } } static lean_object* _init_l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonCreateFile____x40_Lean_Data_Lsp_Basic___hyg_3525____closed__8() { _start: { lean_object* x_1; uint8_t x_2; lean_object* x_3; x_1 = l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonCreateFile____x40_Lean_Data_Lsp_Basic___hyg_3525____closed__7; x_2 = 1; x_3 = l_Lean_Name_toString(x_1, x_2); return x_3; } } static lean_object* _init_l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonCreateFile____x40_Lean_Data_Lsp_Basic___hyg_3525____closed__9() { _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; x_1 = l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonCreateFile____x40_Lean_Data_Lsp_Basic___hyg_3525____closed__3; x_2 = l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonCreateFile____x40_Lean_Data_Lsp_Basic___hyg_3525____closed__8; x_3 = lean_string_append(x_1, x_2); return x_3; } } static lean_object* _init_l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonCreateFile____x40_Lean_Data_Lsp_Basic___hyg_3525____closed__10() { _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; x_1 = l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonCreateFile____x40_Lean_Data_Lsp_Basic___hyg_3525____closed__9; x_2 = l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonCancelParams____x40_Lean_Data_Lsp_Basic___hyg_144____closed__11; x_3 = lean_string_append(x_1, x_2); return x_3; } } static lean_object* _init_l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonCreateFile____x40_Lean_Data_Lsp_Basic___hyg_3525____closed__11() { _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; x_1 = l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonCreateFile____x40_Lean_Data_Lsp_Basic___hyg_3525____closed__3; x_2 = l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonTextEdit____x40_Lean_Data_Lsp_Basic___hyg_2082____closed__13; x_3 = lean_string_append(x_1, x_2); return x_3; } } static lean_object* _init_l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonCreateFile____x40_Lean_Data_Lsp_Basic___hyg_3525____closed__12() { _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; x_1 = l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonCreateFile____x40_Lean_Data_Lsp_Basic___hyg_3525____closed__11; x_2 = l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonCancelParams____x40_Lean_Data_Lsp_Basic___hyg_144____closed__11; x_3 = lean_string_append(x_1, x_2); return x_3; } } LEAN_EXPORT lean_object* l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonCreateFile____x40_Lean_Data_Lsp_Basic___hyg_3525_(lean_object* x_1) { _start: { lean_object* x_2; lean_object* x_3; x_2 = l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_toJsonLocation____x40_Lean_Data_Lsp_Basic___hyg_1263____closed__1; x_3 = l_Lean_Json_getObjValAs_x3f___at___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonLocation____x40_Lean_Data_Lsp_Basic___hyg_1314____spec__1(x_1, x_2); if (lean_obj_tag(x_3) == 0) { uint8_t x_4; x_4 = !lean_is_exclusive(x_3); if (x_4 == 0) { lean_object* x_5; lean_object* x_6; lean_object* x_7; x_5 = lean_ctor_get(x_3, 0); x_6 = l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonCreateFile____x40_Lean_Data_Lsp_Basic___hyg_3525____closed__5; x_7 = lean_string_append(x_6, x_5); lean_dec(x_5); lean_ctor_set(x_3, 0, x_7); return x_3; } else { lean_object* x_8; lean_object* x_9; lean_object* x_10; lean_object* x_11; x_8 = lean_ctor_get(x_3, 0); lean_inc(x_8); lean_dec(x_3); x_9 = l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonCreateFile____x40_Lean_Data_Lsp_Basic___hyg_3525____closed__5; x_10 = lean_string_append(x_9, x_8); lean_dec(x_8); x_11 = lean_alloc_ctor(0, 1, 0); lean_ctor_set(x_11, 0, x_10); return x_11; } } else { lean_object* x_12; lean_object* x_13; lean_object* x_14; x_12 = lean_ctor_get(x_3, 0); lean_inc(x_12); lean_dec(x_3); x_13 = l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_toJsonCreateFile____x40_Lean_Data_Lsp_Basic___hyg_3473____closed__1; x_14 = l_Lean_Json_getObjValAs_x3f___at___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonCreateFile____x40_Lean_Data_Lsp_Basic___hyg_3525____spec__1(x_1, x_13); if (lean_obj_tag(x_14) == 0) { uint8_t x_15; lean_dec(x_12); x_15 = !lean_is_exclusive(x_14); if (x_15 == 0) { lean_object* x_16; lean_object* x_17; lean_object* x_18; x_16 = lean_ctor_get(x_14, 0); x_17 = l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonCreateFile____x40_Lean_Data_Lsp_Basic___hyg_3525____closed__10; x_18 = lean_string_append(x_17, x_16); lean_dec(x_16); lean_ctor_set(x_14, 0, x_18); return x_14; } else { lean_object* x_19; lean_object* x_20; lean_object* x_21; lean_object* x_22; x_19 = lean_ctor_get(x_14, 0); lean_inc(x_19); lean_dec(x_14); x_20 = l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonCreateFile____x40_Lean_Data_Lsp_Basic___hyg_3525____closed__10; x_21 = lean_string_append(x_20, x_19); lean_dec(x_19); x_22 = lean_alloc_ctor(0, 1, 0); lean_ctor_set(x_22, 0, x_21); return x_22; } } else { lean_object* x_23; lean_object* x_24; lean_object* x_25; x_23 = lean_ctor_get(x_14, 0); lean_inc(x_23); lean_dec(x_14); x_24 = l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_toJsonTextEdit____x40_Lean_Data_Lsp_Basic___hyg_2023____closed__2; x_25 = l_Lean_Json_getObjValAs_x3f___at___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonTextEdit____x40_Lean_Data_Lsp_Basic___hyg_2082____spec__1(x_1, x_24); if (lean_obj_tag(x_25) == 0) { uint8_t x_26; lean_dec(x_23); lean_dec(x_12); x_26 = !lean_is_exclusive(x_25); if (x_26 == 0) { lean_object* x_27; lean_object* x_28; lean_object* x_29; x_27 = lean_ctor_get(x_25, 0); x_28 = l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonCreateFile____x40_Lean_Data_Lsp_Basic___hyg_3525____closed__12; x_29 = lean_string_append(x_28, x_27); lean_dec(x_27); lean_ctor_set(x_25, 0, x_29); return x_25; } else { lean_object* x_30; lean_object* x_31; lean_object* x_32; lean_object* x_33; x_30 = lean_ctor_get(x_25, 0); lean_inc(x_30); lean_dec(x_25); x_31 = l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonCreateFile____x40_Lean_Data_Lsp_Basic___hyg_3525____closed__12; x_32 = lean_string_append(x_31, x_30); lean_dec(x_30); x_33 = lean_alloc_ctor(0, 1, 0); lean_ctor_set(x_33, 0, x_32); return x_33; } } else { uint8_t x_34; x_34 = !lean_is_exclusive(x_25); if (x_34 == 0) { lean_object* x_35; lean_object* x_36; x_35 = lean_ctor_get(x_25, 0); x_36 = lean_alloc_ctor(0, 3, 0); lean_ctor_set(x_36, 0, x_12); lean_ctor_set(x_36, 1, x_23); lean_ctor_set(x_36, 2, x_35); lean_ctor_set(x_25, 0, x_36); return x_25; } else { lean_object* x_37; lean_object* x_38; lean_object* x_39; x_37 = lean_ctor_get(x_25, 0); lean_inc(x_37); lean_dec(x_25); x_38 = lean_alloc_ctor(0, 3, 0); lean_ctor_set(x_38, 0, x_12); lean_ctor_set(x_38, 1, x_23); lean_ctor_set(x_38, 2, x_37); x_39 = lean_alloc_ctor(1, 1, 0); lean_ctor_set(x_39, 0, x_38); return x_39; } } } } } } LEAN_EXPORT lean_object* l_Lean_Json_getObjValAs_x3f___at___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonCreateFile____x40_Lean_Data_Lsp_Basic___hyg_3525____spec__1___boxed(lean_object* x_1, lean_object* x_2) { _start: { lean_object* x_3; x_3 = l_Lean_Json_getObjValAs_x3f___at___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonCreateFile____x40_Lean_Data_Lsp_Basic___hyg_3525____spec__1(x_1, x_2); lean_dec(x_2); lean_dec(x_1); return x_3; } } LEAN_EXPORT lean_object* l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonCreateFile____x40_Lean_Data_Lsp_Basic___hyg_3525____boxed(lean_object* x_1) { _start: { lean_object* x_2; x_2 = l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonCreateFile____x40_Lean_Data_Lsp_Basic___hyg_3525_(x_1); lean_dec(x_1); return x_2; } } static lean_object* _init_l_Lean_Lsp_instFromJsonCreateFile___closed__1() { _start: { lean_object* x_1; x_1 = lean_alloc_closure((void*)(l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonCreateFile____x40_Lean_Data_Lsp_Basic___hyg_3525____boxed), 1, 0); return x_1; } } static lean_object* _init_l_Lean_Lsp_instFromJsonCreateFile() { _start: { lean_object* x_1; x_1 = l_Lean_Lsp_instFromJsonCreateFile___closed__1; return x_1; } } static lean_object* _init_l_Lean_Lsp_RenameFile_options_x3f___default() { _start: { lean_object* x_1; x_1 = lean_box(0); return x_1; } } static lean_object* _init_l_Lean_Lsp_RenameFile_annotationId_x3f___default() { _start: { lean_object* x_1; x_1 = lean_box(0); return x_1; } } static lean_object* _init_l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_toJsonRenameFile____x40_Lean_Data_Lsp_Basic___hyg_3717____closed__1() { _start: { lean_object* x_1; x_1 = lean_mk_string_from_bytes("oldUri", 6); return x_1; } } static lean_object* _init_l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_toJsonRenameFile____x40_Lean_Data_Lsp_Basic___hyg_3717____closed__2() { _start: { lean_object* x_1; x_1 = lean_mk_string_from_bytes("newUri", 6); return x_1; } } LEAN_EXPORT lean_object* l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_toJsonRenameFile____x40_Lean_Data_Lsp_Basic___hyg_3717_(lean_object* x_1) { _start: { lean_object* x_2; lean_object* x_3; lean_object* x_4; lean_object* x_5; lean_object* x_6; lean_object* x_7; lean_object* x_8; lean_object* x_9; lean_object* x_10; lean_object* x_11; lean_object* x_12; lean_object* x_13; lean_object* x_14; lean_object* x_15; lean_object* x_16; lean_object* x_17; lean_object* x_18; lean_object* x_19; lean_object* x_20; lean_object* x_21; lean_object* x_22; lean_object* x_23; lean_object* x_24; x_2 = lean_ctor_get(x_1, 0); x_3 = lean_ctor_get(x_1, 1); x_4 = lean_ctor_get(x_1, 2); x_5 = lean_ctor_get(x_1, 3); lean_inc(x_2); x_6 = lean_alloc_ctor(3, 1, 0); lean_ctor_set(x_6, 0, x_2); x_7 = l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_toJsonRenameFile____x40_Lean_Data_Lsp_Basic___hyg_3717____closed__1; x_8 = lean_alloc_ctor(0, 2, 0); lean_ctor_set(x_8, 0, x_7); lean_ctor_set(x_8, 1, x_6); x_9 = lean_box(0); x_10 = lean_alloc_ctor(1, 2, 0); lean_ctor_set(x_10, 0, x_8); lean_ctor_set(x_10, 1, x_9); lean_inc(x_3); x_11 = lean_alloc_ctor(3, 1, 0); lean_ctor_set(x_11, 0, x_3); x_12 = l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_toJsonRenameFile____x40_Lean_Data_Lsp_Basic___hyg_3717____closed__2; x_13 = lean_alloc_ctor(0, 2, 0); lean_ctor_set(x_13, 0, x_12); lean_ctor_set(x_13, 1, x_11); x_14 = lean_alloc_ctor(1, 2, 0); lean_ctor_set(x_14, 0, x_13); lean_ctor_set(x_14, 1, x_9); x_15 = l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_toJsonCreateFile____x40_Lean_Data_Lsp_Basic___hyg_3473____closed__1; x_16 = l_Lean_Json_opt___at___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_toJsonCreateFile____x40_Lean_Data_Lsp_Basic___hyg_3473____spec__1(x_15, x_4); x_17 = l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_toJsonTextEdit____x40_Lean_Data_Lsp_Basic___hyg_2023____closed__2; x_18 = l_Lean_Json_opt___at___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_toJsonTextEdit____x40_Lean_Data_Lsp_Basic___hyg_2023____spec__1(x_17, x_5); x_19 = lean_alloc_ctor(1, 2, 0); lean_ctor_set(x_19, 0, x_18); lean_ctor_set(x_19, 1, x_9); x_20 = lean_alloc_ctor(1, 2, 0); lean_ctor_set(x_20, 0, x_16); lean_ctor_set(x_20, 1, x_19); x_21 = lean_alloc_ctor(1, 2, 0); lean_ctor_set(x_21, 0, x_14); lean_ctor_set(x_21, 1, x_20); x_22 = lean_alloc_ctor(1, 2, 0); lean_ctor_set(x_22, 0, x_10); lean_ctor_set(x_22, 1, x_21); x_23 = l_List_join___rarg(x_22); x_24 = l_Lean_Json_mkObj(x_23); return x_24; } } LEAN_EXPORT lean_object* l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_toJsonRenameFile____x40_Lean_Data_Lsp_Basic___hyg_3717____boxed(lean_object* x_1) { _start: { lean_object* x_2; x_2 = l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_toJsonRenameFile____x40_Lean_Data_Lsp_Basic___hyg_3717_(x_1); lean_dec(x_1); return x_2; } } static lean_object* _init_l_Lean_Lsp_instToJsonRenameFile___closed__1() { _start: { lean_object* x_1; x_1 = lean_alloc_closure((void*)(l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_toJsonRenameFile____x40_Lean_Data_Lsp_Basic___hyg_3717____boxed), 1, 0); return x_1; } } static lean_object* _init_l_Lean_Lsp_instToJsonRenameFile() { _start: { lean_object* x_1; x_1 = l_Lean_Lsp_instToJsonRenameFile___closed__1; return x_1; } } static lean_object* _init_l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonRenameFile____x40_Lean_Data_Lsp_Basic___hyg_3781____closed__1() { _start: { lean_object* x_1; x_1 = lean_mk_string_from_bytes("RenameFile", 10); return x_1; } } static lean_object* _init_l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonRenameFile____x40_Lean_Data_Lsp_Basic___hyg_3781____closed__2() { _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; lean_object* x_4; x_1 = l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonCancelParams____x40_Lean_Data_Lsp_Basic___hyg_144____closed__1; x_2 = l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonCancelParams____x40_Lean_Data_Lsp_Basic___hyg_144____closed__2; x_3 = l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonRenameFile____x40_Lean_Data_Lsp_Basic___hyg_3781____closed__1; x_4 = l_Lean_Name_mkStr3(x_1, x_2, x_3); return x_4; } } static lean_object* _init_l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonRenameFile____x40_Lean_Data_Lsp_Basic___hyg_3781____closed__3() { _start: { lean_object* x_1; uint8_t x_2; lean_object* x_3; x_1 = l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonRenameFile____x40_Lean_Data_Lsp_Basic___hyg_3781____closed__2; x_2 = 1; x_3 = l_Lean_Name_toString(x_1, x_2); return x_3; } } static lean_object* _init_l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonRenameFile____x40_Lean_Data_Lsp_Basic___hyg_3781____closed__4() { _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; x_1 = l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonRenameFile____x40_Lean_Data_Lsp_Basic___hyg_3781____closed__3; x_2 = l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonCancelParams____x40_Lean_Data_Lsp_Basic___hyg_144____closed__6; x_3 = lean_string_append(x_1, x_2); return x_3; } } static lean_object* _init_l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonRenameFile____x40_Lean_Data_Lsp_Basic___hyg_3781____closed__5() { _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; x_1 = lean_box(0); x_2 = l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_toJsonRenameFile____x40_Lean_Data_Lsp_Basic___hyg_3717____closed__1; x_3 = l_Lean_Name_str___override(x_1, x_2); return x_3; } } static lean_object* _init_l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonRenameFile____x40_Lean_Data_Lsp_Basic___hyg_3781____closed__6() { _start: { lean_object* x_1; uint8_t x_2; lean_object* x_3; x_1 = l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonRenameFile____x40_Lean_Data_Lsp_Basic___hyg_3781____closed__5; x_2 = 1; x_3 = l_Lean_Name_toString(x_1, x_2); return x_3; } } static lean_object* _init_l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonRenameFile____x40_Lean_Data_Lsp_Basic___hyg_3781____closed__7() { _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; x_1 = l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonRenameFile____x40_Lean_Data_Lsp_Basic___hyg_3781____closed__4; x_2 = l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonRenameFile____x40_Lean_Data_Lsp_Basic___hyg_3781____closed__6; x_3 = lean_string_append(x_1, x_2); return x_3; } } static lean_object* _init_l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonRenameFile____x40_Lean_Data_Lsp_Basic___hyg_3781____closed__8() { _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; x_1 = l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonRenameFile____x40_Lean_Data_Lsp_Basic___hyg_3781____closed__7; x_2 = l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonCancelParams____x40_Lean_Data_Lsp_Basic___hyg_144____closed__11; x_3 = lean_string_append(x_1, x_2); return x_3; } } static lean_object* _init_l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonRenameFile____x40_Lean_Data_Lsp_Basic___hyg_3781____closed__9() { _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; x_1 = lean_box(0); x_2 = l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_toJsonRenameFile____x40_Lean_Data_Lsp_Basic___hyg_3717____closed__2; x_3 = l_Lean_Name_str___override(x_1, x_2); return x_3; } } static lean_object* _init_l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonRenameFile____x40_Lean_Data_Lsp_Basic___hyg_3781____closed__10() { _start: { lean_object* x_1; uint8_t x_2; lean_object* x_3; x_1 = l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonRenameFile____x40_Lean_Data_Lsp_Basic___hyg_3781____closed__9; x_2 = 1; x_3 = l_Lean_Name_toString(x_1, x_2); return x_3; } } static lean_object* _init_l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonRenameFile____x40_Lean_Data_Lsp_Basic___hyg_3781____closed__11() { _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; x_1 = l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonRenameFile____x40_Lean_Data_Lsp_Basic___hyg_3781____closed__4; x_2 = l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonRenameFile____x40_Lean_Data_Lsp_Basic___hyg_3781____closed__10; x_3 = lean_string_append(x_1, x_2); return x_3; } } static lean_object* _init_l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonRenameFile____x40_Lean_Data_Lsp_Basic___hyg_3781____closed__12() { _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; x_1 = l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonRenameFile____x40_Lean_Data_Lsp_Basic___hyg_3781____closed__11; x_2 = l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonCancelParams____x40_Lean_Data_Lsp_Basic___hyg_144____closed__11; x_3 = lean_string_append(x_1, x_2); return x_3; } } static lean_object* _init_l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonRenameFile____x40_Lean_Data_Lsp_Basic___hyg_3781____closed__13() { _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; x_1 = l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonRenameFile____x40_Lean_Data_Lsp_Basic___hyg_3781____closed__4; x_2 = l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonCreateFile____x40_Lean_Data_Lsp_Basic___hyg_3525____closed__8; x_3 = lean_string_append(x_1, x_2); return x_3; } } static lean_object* _init_l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonRenameFile____x40_Lean_Data_Lsp_Basic___hyg_3781____closed__14() { _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; x_1 = l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonRenameFile____x40_Lean_Data_Lsp_Basic___hyg_3781____closed__13; x_2 = l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonCancelParams____x40_Lean_Data_Lsp_Basic___hyg_144____closed__11; x_3 = lean_string_append(x_1, x_2); return x_3; } } static lean_object* _init_l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonRenameFile____x40_Lean_Data_Lsp_Basic___hyg_3781____closed__15() { _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; x_1 = l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonRenameFile____x40_Lean_Data_Lsp_Basic___hyg_3781____closed__4; x_2 = l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonTextEdit____x40_Lean_Data_Lsp_Basic___hyg_2082____closed__13; x_3 = lean_string_append(x_1, x_2); return x_3; } } static lean_object* _init_l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonRenameFile____x40_Lean_Data_Lsp_Basic___hyg_3781____closed__16() { _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; x_1 = l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonRenameFile____x40_Lean_Data_Lsp_Basic___hyg_3781____closed__15; x_2 = l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonCancelParams____x40_Lean_Data_Lsp_Basic___hyg_144____closed__11; x_3 = lean_string_append(x_1, x_2); return x_3; } } LEAN_EXPORT lean_object* l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonRenameFile____x40_Lean_Data_Lsp_Basic___hyg_3781_(lean_object* x_1) { _start: { lean_object* x_2; lean_object* x_3; x_2 = l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_toJsonRenameFile____x40_Lean_Data_Lsp_Basic___hyg_3717____closed__1; x_3 = l_Lean_Json_getObjValAs_x3f___at___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonLocation____x40_Lean_Data_Lsp_Basic___hyg_1314____spec__1(x_1, x_2); if (lean_obj_tag(x_3) == 0) { uint8_t x_4; x_4 = !lean_is_exclusive(x_3); if (x_4 == 0) { lean_object* x_5; lean_object* x_6; lean_object* x_7; x_5 = lean_ctor_get(x_3, 0); x_6 = l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonRenameFile____x40_Lean_Data_Lsp_Basic___hyg_3781____closed__8; x_7 = lean_string_append(x_6, x_5); lean_dec(x_5); lean_ctor_set(x_3, 0, x_7); return x_3; } else { lean_object* x_8; lean_object* x_9; lean_object* x_10; lean_object* x_11; x_8 = lean_ctor_get(x_3, 0); lean_inc(x_8); lean_dec(x_3); x_9 = l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonRenameFile____x40_Lean_Data_Lsp_Basic___hyg_3781____closed__8; x_10 = lean_string_append(x_9, x_8); lean_dec(x_8); x_11 = lean_alloc_ctor(0, 1, 0); lean_ctor_set(x_11, 0, x_10); return x_11; } } else { lean_object* x_12; lean_object* x_13; lean_object* x_14; x_12 = lean_ctor_get(x_3, 0); lean_inc(x_12); lean_dec(x_3); x_13 = l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_toJsonRenameFile____x40_Lean_Data_Lsp_Basic___hyg_3717____closed__2; x_14 = l_Lean_Json_getObjValAs_x3f___at___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonLocation____x40_Lean_Data_Lsp_Basic___hyg_1314____spec__1(x_1, x_13); if (lean_obj_tag(x_14) == 0) { uint8_t x_15; lean_dec(x_12); x_15 = !lean_is_exclusive(x_14); if (x_15 == 0) { lean_object* x_16; lean_object* x_17; lean_object* x_18; x_16 = lean_ctor_get(x_14, 0); x_17 = l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonRenameFile____x40_Lean_Data_Lsp_Basic___hyg_3781____closed__12; x_18 = lean_string_append(x_17, x_16); lean_dec(x_16); lean_ctor_set(x_14, 0, x_18); return x_14; } else { lean_object* x_19; lean_object* x_20; lean_object* x_21; lean_object* x_22; x_19 = lean_ctor_get(x_14, 0); lean_inc(x_19); lean_dec(x_14); x_20 = l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonRenameFile____x40_Lean_Data_Lsp_Basic___hyg_3781____closed__12; x_21 = lean_string_append(x_20, x_19); lean_dec(x_19); x_22 = lean_alloc_ctor(0, 1, 0); lean_ctor_set(x_22, 0, x_21); return x_22; } } else { lean_object* x_23; lean_object* x_24; lean_object* x_25; x_23 = lean_ctor_get(x_14, 0); lean_inc(x_23); lean_dec(x_14); x_24 = l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_toJsonCreateFile____x40_Lean_Data_Lsp_Basic___hyg_3473____closed__1; x_25 = l_Lean_Json_getObjValAs_x3f___at___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonCreateFile____x40_Lean_Data_Lsp_Basic___hyg_3525____spec__1(x_1, x_24); if (lean_obj_tag(x_25) == 0) { uint8_t x_26; lean_dec(x_23); lean_dec(x_12); x_26 = !lean_is_exclusive(x_25); if (x_26 == 0) { lean_object* x_27; lean_object* x_28; lean_object* x_29; x_27 = lean_ctor_get(x_25, 0); x_28 = l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonRenameFile____x40_Lean_Data_Lsp_Basic___hyg_3781____closed__14; x_29 = lean_string_append(x_28, x_27); lean_dec(x_27); lean_ctor_set(x_25, 0, x_29); return x_25; } else { lean_object* x_30; lean_object* x_31; lean_object* x_32; lean_object* x_33; x_30 = lean_ctor_get(x_25, 0); lean_inc(x_30); lean_dec(x_25); x_31 = l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonRenameFile____x40_Lean_Data_Lsp_Basic___hyg_3781____closed__14; x_32 = lean_string_append(x_31, x_30); lean_dec(x_30); x_33 = lean_alloc_ctor(0, 1, 0); lean_ctor_set(x_33, 0, x_32); return x_33; } } else { lean_object* x_34; lean_object* x_35; lean_object* x_36; x_34 = lean_ctor_get(x_25, 0); lean_inc(x_34); lean_dec(x_25); x_35 = l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_toJsonTextEdit____x40_Lean_Data_Lsp_Basic___hyg_2023____closed__2; x_36 = l_Lean_Json_getObjValAs_x3f___at___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonTextEdit____x40_Lean_Data_Lsp_Basic___hyg_2082____spec__1(x_1, x_35); if (lean_obj_tag(x_36) == 0) { uint8_t x_37; lean_dec(x_34); lean_dec(x_23); lean_dec(x_12); x_37 = !lean_is_exclusive(x_36); if (x_37 == 0) { lean_object* x_38; lean_object* x_39; lean_object* x_40; x_38 = lean_ctor_get(x_36, 0); x_39 = l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonRenameFile____x40_Lean_Data_Lsp_Basic___hyg_3781____closed__16; x_40 = lean_string_append(x_39, x_38); lean_dec(x_38); lean_ctor_set(x_36, 0, x_40); return x_36; } else { lean_object* x_41; lean_object* x_42; lean_object* x_43; lean_object* x_44; x_41 = lean_ctor_get(x_36, 0); lean_inc(x_41); lean_dec(x_36); x_42 = l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonRenameFile____x40_Lean_Data_Lsp_Basic___hyg_3781____closed__16; x_43 = lean_string_append(x_42, x_41); lean_dec(x_41); x_44 = lean_alloc_ctor(0, 1, 0); lean_ctor_set(x_44, 0, x_43); return x_44; } } else { uint8_t x_45; x_45 = !lean_is_exclusive(x_36); if (x_45 == 0) { lean_object* x_46; lean_object* x_47; x_46 = lean_ctor_get(x_36, 0); x_47 = lean_alloc_ctor(0, 4, 0); lean_ctor_set(x_47, 0, x_12); lean_ctor_set(x_47, 1, x_23); lean_ctor_set(x_47, 2, x_34); lean_ctor_set(x_47, 3, x_46); lean_ctor_set(x_36, 0, x_47); return x_36; } else { lean_object* x_48; lean_object* x_49; lean_object* x_50; x_48 = lean_ctor_get(x_36, 0); lean_inc(x_48); lean_dec(x_36); x_49 = lean_alloc_ctor(0, 4, 0); lean_ctor_set(x_49, 0, x_12); lean_ctor_set(x_49, 1, x_23); lean_ctor_set(x_49, 2, x_34); lean_ctor_set(x_49, 3, x_48); x_50 = lean_alloc_ctor(1, 1, 0); lean_ctor_set(x_50, 0, x_49); return x_50; } } } } } } } LEAN_EXPORT lean_object* l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonRenameFile____x40_Lean_Data_Lsp_Basic___hyg_3781____boxed(lean_object* x_1) { _start: { lean_object* x_2; x_2 = l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonRenameFile____x40_Lean_Data_Lsp_Basic___hyg_3781_(x_1); lean_dec(x_1); return x_2; } } static lean_object* _init_l_Lean_Lsp_instFromJsonRenameFile___closed__1() { _start: { lean_object* x_1; x_1 = lean_alloc_closure((void*)(l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonRenameFile____x40_Lean_Data_Lsp_Basic___hyg_3781____boxed), 1, 0); return x_1; } } static lean_object* _init_l_Lean_Lsp_instFromJsonRenameFile() { _start: { lean_object* x_1; x_1 = l_Lean_Lsp_instFromJsonRenameFile___closed__1; return x_1; } } static lean_object* _init_l_Lean_Lsp_DeleteFile_options_x3f___default() { _start: { lean_object* x_1; x_1 = lean_box(0); return x_1; } } static lean_object* _init_l_Lean_Lsp_DeleteFile_annotationId_x3f___default() { _start: { lean_object* x_1; x_1 = lean_box(0); return x_1; } } LEAN_EXPORT lean_object* l_Lean_Json_opt___at___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_toJsonDeleteFile____x40_Lean_Data_Lsp_Basic___hyg_3998____spec__1(lean_object* x_1, lean_object* x_2) { _start: { if (lean_obj_tag(x_2) == 0) { lean_object* x_3; lean_dec(x_1); x_3 = lean_box(0); return x_3; } else { lean_object* x_4; lean_object* x_5; lean_object* x_6; lean_object* x_7; lean_object* x_8; x_4 = lean_ctor_get(x_2, 0); x_5 = l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_DeleteFile_toJsonOptions____x40_Lean_Data_Lsp_Basic___hyg_3285_(x_4); x_6 = lean_alloc_ctor(0, 2, 0); lean_ctor_set(x_6, 0, x_1); lean_ctor_set(x_6, 1, x_5); x_7 = lean_box(0); x_8 = lean_alloc_ctor(1, 2, 0); lean_ctor_set(x_8, 0, x_6); lean_ctor_set(x_8, 1, x_7); return x_8; } } } LEAN_EXPORT lean_object* l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_toJsonDeleteFile____x40_Lean_Data_Lsp_Basic___hyg_3998_(lean_object* x_1) { _start: { lean_object* x_2; lean_object* x_3; lean_object* x_4; lean_object* x_5; lean_object* x_6; lean_object* x_7; lean_object* x_8; lean_object* x_9; lean_object* x_10; lean_object* x_11; lean_object* x_12; lean_object* x_13; lean_object* x_14; lean_object* x_15; lean_object* x_16; lean_object* x_17; lean_object* x_18; x_2 = lean_ctor_get(x_1, 0); x_3 = lean_ctor_get(x_1, 1); x_4 = lean_ctor_get(x_1, 2); lean_inc(x_2); x_5 = lean_alloc_ctor(3, 1, 0); lean_ctor_set(x_5, 0, x_2); x_6 = l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_toJsonLocation____x40_Lean_Data_Lsp_Basic___hyg_1263____closed__1; x_7 = lean_alloc_ctor(0, 2, 0); lean_ctor_set(x_7, 0, x_6); lean_ctor_set(x_7, 1, x_5); x_8 = lean_box(0); x_9 = lean_alloc_ctor(1, 2, 0); lean_ctor_set(x_9, 0, x_7); lean_ctor_set(x_9, 1, x_8); x_10 = l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_toJsonCreateFile____x40_Lean_Data_Lsp_Basic___hyg_3473____closed__1; x_11 = l_Lean_Json_opt___at___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_toJsonDeleteFile____x40_Lean_Data_Lsp_Basic___hyg_3998____spec__1(x_10, x_3); x_12 = l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_toJsonTextEdit____x40_Lean_Data_Lsp_Basic___hyg_2023____closed__2; x_13 = l_Lean_Json_opt___at___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_toJsonTextEdit____x40_Lean_Data_Lsp_Basic___hyg_2023____spec__1(x_12, x_4); x_14 = lean_alloc_ctor(1, 2, 0); lean_ctor_set(x_14, 0, x_13); lean_ctor_set(x_14, 1, x_8); x_15 = lean_alloc_ctor(1, 2, 0); lean_ctor_set(x_15, 0, x_11); lean_ctor_set(x_15, 1, x_14); x_16 = lean_alloc_ctor(1, 2, 0); lean_ctor_set(x_16, 0, x_9); lean_ctor_set(x_16, 1, x_15); x_17 = l_List_join___rarg(x_16); x_18 = l_Lean_Json_mkObj(x_17); return x_18; } } LEAN_EXPORT lean_object* l_Lean_Json_opt___at___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_toJsonDeleteFile____x40_Lean_Data_Lsp_Basic___hyg_3998____spec__1___boxed(lean_object* x_1, lean_object* x_2) { _start: { lean_object* x_3; x_3 = l_Lean_Json_opt___at___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_toJsonDeleteFile____x40_Lean_Data_Lsp_Basic___hyg_3998____spec__1(x_1, x_2); lean_dec(x_2); return x_3; } } LEAN_EXPORT lean_object* l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_toJsonDeleteFile____x40_Lean_Data_Lsp_Basic___hyg_3998____boxed(lean_object* x_1) { _start: { lean_object* x_2; x_2 = l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_toJsonDeleteFile____x40_Lean_Data_Lsp_Basic___hyg_3998_(x_1); lean_dec(x_1); return x_2; } } static lean_object* _init_l_Lean_Lsp_instToJsonDeleteFile___closed__1() { _start: { lean_object* x_1; x_1 = lean_alloc_closure((void*)(l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_toJsonDeleteFile____x40_Lean_Data_Lsp_Basic___hyg_3998____boxed), 1, 0); return x_1; } } static lean_object* _init_l_Lean_Lsp_instToJsonDeleteFile() { _start: { lean_object* x_1; x_1 = l_Lean_Lsp_instToJsonDeleteFile___closed__1; return x_1; } } LEAN_EXPORT lean_object* l_Lean_Json_getObjValAs_x3f___at___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonDeleteFile____x40_Lean_Data_Lsp_Basic___hyg_4050____spec__1(lean_object* x_1, lean_object* x_2) { _start: { lean_object* x_3; x_3 = l_Lean_Json_getObjValD(x_1, x_2); if (lean_obj_tag(x_3) == 0) { lean_object* x_4; x_4 = l_Lean_Json_getObjValAs_x3f___at___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonLocationLink____x40_Lean_Data_Lsp_Basic___hyg_1529____spec__1___closed__1; return x_4; } else { lean_object* x_5; x_5 = l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_DeleteFile_fromJsonOptions____x40_Lean_Data_Lsp_Basic___hyg_3335_(x_3); lean_dec(x_3); if (lean_obj_tag(x_5) == 0) { uint8_t x_6; x_6 = !lean_is_exclusive(x_5); if (x_6 == 0) { return x_5; } else { lean_object* x_7; lean_object* x_8; x_7 = lean_ctor_get(x_5, 0); lean_inc(x_7); lean_dec(x_5); x_8 = lean_alloc_ctor(0, 1, 0); lean_ctor_set(x_8, 0, x_7); return x_8; } } else { uint8_t x_9; x_9 = !lean_is_exclusive(x_5); if (x_9 == 0) { lean_object* x_10; lean_object* x_11; x_10 = lean_ctor_get(x_5, 0); x_11 = lean_alloc_ctor(1, 1, 0); lean_ctor_set(x_11, 0, x_10); lean_ctor_set(x_5, 0, x_11); return x_5; } else { lean_object* x_12; lean_object* x_13; lean_object* x_14; x_12 = lean_ctor_get(x_5, 0); lean_inc(x_12); lean_dec(x_5); x_13 = lean_alloc_ctor(1, 1, 0); lean_ctor_set(x_13, 0, x_12); x_14 = lean_alloc_ctor(1, 1, 0); lean_ctor_set(x_14, 0, x_13); return x_14; } } } } } static lean_object* _init_l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonDeleteFile____x40_Lean_Data_Lsp_Basic___hyg_4050____closed__1() { _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; lean_object* x_4; x_1 = l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonCancelParams____x40_Lean_Data_Lsp_Basic___hyg_144____closed__1; x_2 = l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonCancelParams____x40_Lean_Data_Lsp_Basic___hyg_144____closed__2; x_3 = l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_DeleteFile_fromJsonOptions____x40_Lean_Data_Lsp_Basic___hyg_3335____closed__1; x_4 = l_Lean_Name_mkStr3(x_1, x_2, x_3); return x_4; } } static lean_object* _init_l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonDeleteFile____x40_Lean_Data_Lsp_Basic___hyg_4050____closed__2() { _start: { lean_object* x_1; uint8_t x_2; lean_object* x_3; x_1 = l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonDeleteFile____x40_Lean_Data_Lsp_Basic___hyg_4050____closed__1; x_2 = 1; x_3 = l_Lean_Name_toString(x_1, x_2); return x_3; } } static lean_object* _init_l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonDeleteFile____x40_Lean_Data_Lsp_Basic___hyg_4050____closed__3() { _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; x_1 = l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonDeleteFile____x40_Lean_Data_Lsp_Basic___hyg_4050____closed__2; x_2 = l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonCancelParams____x40_Lean_Data_Lsp_Basic___hyg_144____closed__6; x_3 = lean_string_append(x_1, x_2); return x_3; } } static lean_object* _init_l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonDeleteFile____x40_Lean_Data_Lsp_Basic___hyg_4050____closed__4() { _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; x_1 = l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonDeleteFile____x40_Lean_Data_Lsp_Basic___hyg_4050____closed__3; x_2 = l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonLocation____x40_Lean_Data_Lsp_Basic___hyg_1314____closed__6; x_3 = lean_string_append(x_1, x_2); return x_3; } } static lean_object* _init_l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonDeleteFile____x40_Lean_Data_Lsp_Basic___hyg_4050____closed__5() { _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; x_1 = l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonDeleteFile____x40_Lean_Data_Lsp_Basic___hyg_4050____closed__4; x_2 = l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonCancelParams____x40_Lean_Data_Lsp_Basic___hyg_144____closed__11; x_3 = lean_string_append(x_1, x_2); return x_3; } } static lean_object* _init_l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonDeleteFile____x40_Lean_Data_Lsp_Basic___hyg_4050____closed__6() { _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; x_1 = l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonDeleteFile____x40_Lean_Data_Lsp_Basic___hyg_4050____closed__3; x_2 = l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonCreateFile____x40_Lean_Data_Lsp_Basic___hyg_3525____closed__8; x_3 = lean_string_append(x_1, x_2); return x_3; } } static lean_object* _init_l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonDeleteFile____x40_Lean_Data_Lsp_Basic___hyg_4050____closed__7() { _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; x_1 = l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonDeleteFile____x40_Lean_Data_Lsp_Basic___hyg_4050____closed__6; x_2 = l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonCancelParams____x40_Lean_Data_Lsp_Basic___hyg_144____closed__11; x_3 = lean_string_append(x_1, x_2); return x_3; } } static lean_object* _init_l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonDeleteFile____x40_Lean_Data_Lsp_Basic___hyg_4050____closed__8() { _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; x_1 = l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonDeleteFile____x40_Lean_Data_Lsp_Basic___hyg_4050____closed__3; x_2 = l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonTextEdit____x40_Lean_Data_Lsp_Basic___hyg_2082____closed__13; x_3 = lean_string_append(x_1, x_2); return x_3; } } static lean_object* _init_l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonDeleteFile____x40_Lean_Data_Lsp_Basic___hyg_4050____closed__9() { _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; x_1 = l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonDeleteFile____x40_Lean_Data_Lsp_Basic___hyg_4050____closed__8; x_2 = l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonCancelParams____x40_Lean_Data_Lsp_Basic___hyg_144____closed__11; x_3 = lean_string_append(x_1, x_2); return x_3; } } LEAN_EXPORT lean_object* l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonDeleteFile____x40_Lean_Data_Lsp_Basic___hyg_4050_(lean_object* x_1) { _start: { lean_object* x_2; lean_object* x_3; x_2 = l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_toJsonLocation____x40_Lean_Data_Lsp_Basic___hyg_1263____closed__1; x_3 = l_Lean_Json_getObjValAs_x3f___at___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonLocation____x40_Lean_Data_Lsp_Basic___hyg_1314____spec__1(x_1, x_2); if (lean_obj_tag(x_3) == 0) { uint8_t x_4; x_4 = !lean_is_exclusive(x_3); if (x_4 == 0) { lean_object* x_5; lean_object* x_6; lean_object* x_7; x_5 = lean_ctor_get(x_3, 0); x_6 = l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonDeleteFile____x40_Lean_Data_Lsp_Basic___hyg_4050____closed__5; x_7 = lean_string_append(x_6, x_5); lean_dec(x_5); lean_ctor_set(x_3, 0, x_7); return x_3; } else { lean_object* x_8; lean_object* x_9; lean_object* x_10; lean_object* x_11; x_8 = lean_ctor_get(x_3, 0); lean_inc(x_8); lean_dec(x_3); x_9 = l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonDeleteFile____x40_Lean_Data_Lsp_Basic___hyg_4050____closed__5; x_10 = lean_string_append(x_9, x_8); lean_dec(x_8); x_11 = lean_alloc_ctor(0, 1, 0); lean_ctor_set(x_11, 0, x_10); return x_11; } } else { lean_object* x_12; lean_object* x_13; lean_object* x_14; x_12 = lean_ctor_get(x_3, 0); lean_inc(x_12); lean_dec(x_3); x_13 = l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_toJsonCreateFile____x40_Lean_Data_Lsp_Basic___hyg_3473____closed__1; x_14 = l_Lean_Json_getObjValAs_x3f___at___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonDeleteFile____x40_Lean_Data_Lsp_Basic___hyg_4050____spec__1(x_1, x_13); if (lean_obj_tag(x_14) == 0) { uint8_t x_15; lean_dec(x_12); x_15 = !lean_is_exclusive(x_14); if (x_15 == 0) { lean_object* x_16; lean_object* x_17; lean_object* x_18; x_16 = lean_ctor_get(x_14, 0); x_17 = l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonDeleteFile____x40_Lean_Data_Lsp_Basic___hyg_4050____closed__7; x_18 = lean_string_append(x_17, x_16); lean_dec(x_16); lean_ctor_set(x_14, 0, x_18); return x_14; } else { lean_object* x_19; lean_object* x_20; lean_object* x_21; lean_object* x_22; x_19 = lean_ctor_get(x_14, 0); lean_inc(x_19); lean_dec(x_14); x_20 = l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonDeleteFile____x40_Lean_Data_Lsp_Basic___hyg_4050____closed__7; x_21 = lean_string_append(x_20, x_19); lean_dec(x_19); x_22 = lean_alloc_ctor(0, 1, 0); lean_ctor_set(x_22, 0, x_21); return x_22; } } else { lean_object* x_23; lean_object* x_24; lean_object* x_25; x_23 = lean_ctor_get(x_14, 0); lean_inc(x_23); lean_dec(x_14); x_24 = l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_toJsonTextEdit____x40_Lean_Data_Lsp_Basic___hyg_2023____closed__2; x_25 = l_Lean_Json_getObjValAs_x3f___at___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonTextEdit____x40_Lean_Data_Lsp_Basic___hyg_2082____spec__1(x_1, x_24); if (lean_obj_tag(x_25) == 0) { uint8_t x_26; lean_dec(x_23); lean_dec(x_12); x_26 = !lean_is_exclusive(x_25); if (x_26 == 0) { lean_object* x_27; lean_object* x_28; lean_object* x_29; x_27 = lean_ctor_get(x_25, 0); x_28 = l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonDeleteFile____x40_Lean_Data_Lsp_Basic___hyg_4050____closed__9; x_29 = lean_string_append(x_28, x_27); lean_dec(x_27); lean_ctor_set(x_25, 0, x_29); return x_25; } else { lean_object* x_30; lean_object* x_31; lean_object* x_32; lean_object* x_33; x_30 = lean_ctor_get(x_25, 0); lean_inc(x_30); lean_dec(x_25); x_31 = l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonDeleteFile____x40_Lean_Data_Lsp_Basic___hyg_4050____closed__9; x_32 = lean_string_append(x_31, x_30); lean_dec(x_30); x_33 = lean_alloc_ctor(0, 1, 0); lean_ctor_set(x_33, 0, x_32); return x_33; } } else { uint8_t x_34; x_34 = !lean_is_exclusive(x_25); if (x_34 == 0) { lean_object* x_35; lean_object* x_36; x_35 = lean_ctor_get(x_25, 0); x_36 = lean_alloc_ctor(0, 3, 0); lean_ctor_set(x_36, 0, x_12); lean_ctor_set(x_36, 1, x_23); lean_ctor_set(x_36, 2, x_35); lean_ctor_set(x_25, 0, x_36); return x_25; } else { lean_object* x_37; lean_object* x_38; lean_object* x_39; x_37 = lean_ctor_get(x_25, 0); lean_inc(x_37); lean_dec(x_25); x_38 = lean_alloc_ctor(0, 3, 0); lean_ctor_set(x_38, 0, x_12); lean_ctor_set(x_38, 1, x_23); lean_ctor_set(x_38, 2, x_37); x_39 = lean_alloc_ctor(1, 1, 0); lean_ctor_set(x_39, 0, x_38); return x_39; } } } } } } LEAN_EXPORT lean_object* l_Lean_Json_getObjValAs_x3f___at___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonDeleteFile____x40_Lean_Data_Lsp_Basic___hyg_4050____spec__1___boxed(lean_object* x_1, lean_object* x_2) { _start: { lean_object* x_3; x_3 = l_Lean_Json_getObjValAs_x3f___at___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonDeleteFile____x40_Lean_Data_Lsp_Basic___hyg_4050____spec__1(x_1, x_2); lean_dec(x_2); lean_dec(x_1); return x_3; } } LEAN_EXPORT lean_object* l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonDeleteFile____x40_Lean_Data_Lsp_Basic___hyg_4050____boxed(lean_object* x_1) { _start: { lean_object* x_2; x_2 = l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonDeleteFile____x40_Lean_Data_Lsp_Basic___hyg_4050_(x_1); lean_dec(x_1); return x_2; } } static lean_object* _init_l_Lean_Lsp_instFromJsonDeleteFile___closed__1() { _start: { lean_object* x_1; x_1 = lean_alloc_closure((void*)(l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonDeleteFile____x40_Lean_Data_Lsp_Basic___hyg_4050____boxed), 1, 0); return x_1; } } static lean_object* _init_l_Lean_Lsp_instFromJsonDeleteFile() { _start: { lean_object* x_1; x_1 = l_Lean_Lsp_instFromJsonDeleteFile___closed__1; return x_1; } } static lean_object* _init_l_Lean_Lsp_instToJsonDocumentChange___closed__1() { _start: { lean_object* x_1; x_1 = lean_mk_string_from_bytes("create", 6); return x_1; } } static lean_object* _init_l_Lean_Lsp_instToJsonDocumentChange___closed__2() { _start: { lean_object* x_1; lean_object* x_2; x_1 = l_Lean_Lsp_instToJsonDocumentChange___closed__1; x_2 = lean_alloc_ctor(3, 1, 0); lean_ctor_set(x_2, 0, x_1); return x_2; } } static lean_object* _init_l_Lean_Lsp_instToJsonDocumentChange___closed__3() { _start: { lean_object* x_1; x_1 = lean_mk_string_from_bytes("kind", 4); return x_1; } } static lean_object* _init_l_Lean_Lsp_instToJsonDocumentChange___closed__4() { _start: { lean_object* x_1; x_1 = lean_mk_string_from_bytes("rename", 6); return x_1; } } static lean_object* _init_l_Lean_Lsp_instToJsonDocumentChange___closed__5() { _start: { lean_object* x_1; lean_object* x_2; x_1 = l_Lean_Lsp_instToJsonDocumentChange___closed__4; x_2 = lean_alloc_ctor(3, 1, 0); lean_ctor_set(x_2, 0, x_1); return x_2; } } static lean_object* _init_l_Lean_Lsp_instToJsonDocumentChange___closed__6() { _start: { lean_object* x_1; x_1 = lean_mk_string_from_bytes("delete", 6); return x_1; } } static lean_object* _init_l_Lean_Lsp_instToJsonDocumentChange___closed__7() { _start: { lean_object* x_1; lean_object* x_2; x_1 = l_Lean_Lsp_instToJsonDocumentChange___closed__6; x_2 = lean_alloc_ctor(3, 1, 0); lean_ctor_set(x_2, 0, x_1); return x_2; } } LEAN_EXPORT lean_object* l_Lean_Lsp_instToJsonDocumentChange(lean_object* x_1) { _start: { switch (lean_obj_tag(x_1)) { case 0: { lean_object* x_2; lean_object* x_3; lean_object* x_4; lean_object* x_5; lean_object* x_6; x_2 = lean_ctor_get(x_1, 0); lean_inc(x_2); lean_dec(x_1); x_3 = l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_toJsonCreateFile____x40_Lean_Data_Lsp_Basic___hyg_3473_(x_2); lean_dec(x_2); x_4 = l_Lean_Lsp_instToJsonDocumentChange___closed__3; x_5 = l_Lean_Lsp_instToJsonDocumentChange___closed__2; x_6 = l_Lean_Json_setObjVal_x21(x_3, x_4, x_5); return x_6; } case 1: { lean_object* x_7; lean_object* x_8; lean_object* x_9; lean_object* x_10; lean_object* x_11; x_7 = lean_ctor_get(x_1, 0); lean_inc(x_7); lean_dec(x_1); x_8 = l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_toJsonRenameFile____x40_Lean_Data_Lsp_Basic___hyg_3717_(x_7); lean_dec(x_7); x_9 = l_Lean_Lsp_instToJsonDocumentChange___closed__3; x_10 = l_Lean_Lsp_instToJsonDocumentChange___closed__5; x_11 = l_Lean_Json_setObjVal_x21(x_8, x_9, x_10); return x_11; } case 2: { lean_object* x_12; lean_object* x_13; lean_object* x_14; lean_object* x_15; lean_object* x_16; x_12 = lean_ctor_get(x_1, 0); lean_inc(x_12); lean_dec(x_1); x_13 = l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_toJsonDeleteFile____x40_Lean_Data_Lsp_Basic___hyg_3998_(x_12); lean_dec(x_12); x_14 = l_Lean_Lsp_instToJsonDocumentChange___closed__3; x_15 = l_Lean_Lsp_instToJsonDocumentChange___closed__7; x_16 = l_Lean_Json_setObjVal_x21(x_13, x_14, x_15); return x_16; } default: { lean_object* x_17; lean_object* x_18; x_17 = lean_ctor_get(x_1, 0); lean_inc(x_17); lean_dec(x_1); x_18 = l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_toJsonTextDocumentEdit____x40_Lean_Data_Lsp_Basic___hyg_2677_(x_17); return x_18; } } } } LEAN_EXPORT lean_object* l_Lean_Lsp_instFromJsonDocumentChange(lean_object* x_1) { _start: { lean_object* x_2; lean_object* x_14; lean_object* x_15; x_14 = l_Lean_Lsp_instToJsonDocumentChange___closed__3; x_15 = l_Lean_Json_getObjVal_x3f(x_1, x_14); if (lean_obj_tag(x_15) == 0) { lean_object* x_16; lean_dec(x_15); x_16 = lean_box(0); x_2 = x_16; goto block_13; } else { lean_object* x_17; x_17 = lean_ctor_get(x_15, 0); lean_inc(x_17); lean_dec(x_15); if (lean_obj_tag(x_17) == 3) { lean_object* x_18; lean_object* x_19; uint8_t x_20; x_18 = lean_ctor_get(x_17, 0); lean_inc(x_18); lean_dec(x_17); x_19 = l_Lean_Lsp_instToJsonDocumentChange___closed__1; x_20 = lean_string_dec_eq(x_18, x_19); if (x_20 == 0) { lean_object* x_21; uint8_t x_22; x_21 = l_Lean_Lsp_instToJsonDocumentChange___closed__4; x_22 = lean_string_dec_eq(x_18, x_21); if (x_22 == 0) { lean_object* x_23; uint8_t x_24; x_23 = l_Lean_Lsp_instToJsonDocumentChange___closed__6; x_24 = lean_string_dec_eq(x_18, x_23); lean_dec(x_18); if (x_24 == 0) { lean_object* x_25; x_25 = lean_box(0); x_2 = x_25; goto block_13; } else { lean_object* x_26; x_26 = l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonDeleteFile____x40_Lean_Data_Lsp_Basic___hyg_4050_(x_1); if (lean_obj_tag(x_26) == 0) { lean_object* x_27; lean_dec(x_26); x_27 = lean_box(0); x_2 = x_27; goto block_13; } else { uint8_t x_28; x_28 = !lean_is_exclusive(x_26); if (x_28 == 0) { lean_object* x_29; lean_object* x_30; x_29 = lean_ctor_get(x_26, 0); x_30 = lean_alloc_ctor(2, 1, 0); lean_ctor_set(x_30, 0, x_29); lean_ctor_set(x_26, 0, x_30); return x_26; } else { lean_object* x_31; lean_object* x_32; lean_object* x_33; x_31 = lean_ctor_get(x_26, 0); lean_inc(x_31); lean_dec(x_26); x_32 = lean_alloc_ctor(2, 1, 0); lean_ctor_set(x_32, 0, x_31); x_33 = lean_alloc_ctor(1, 1, 0); lean_ctor_set(x_33, 0, x_32); return x_33; } } } } else { lean_object* x_34; lean_dec(x_18); x_34 = l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonRenameFile____x40_Lean_Data_Lsp_Basic___hyg_3781_(x_1); if (lean_obj_tag(x_34) == 0) { lean_object* x_35; lean_dec(x_34); x_35 = lean_box(0); x_2 = x_35; goto block_13; } else { uint8_t x_36; x_36 = !lean_is_exclusive(x_34); if (x_36 == 0) { lean_object* x_37; lean_object* x_38; x_37 = lean_ctor_get(x_34, 0); x_38 = lean_alloc_ctor(1, 1, 0); lean_ctor_set(x_38, 0, x_37); lean_ctor_set(x_34, 0, x_38); return x_34; } else { lean_object* x_39; lean_object* x_40; lean_object* x_41; x_39 = lean_ctor_get(x_34, 0); lean_inc(x_39); lean_dec(x_34); x_40 = lean_alloc_ctor(1, 1, 0); lean_ctor_set(x_40, 0, x_39); x_41 = lean_alloc_ctor(1, 1, 0); lean_ctor_set(x_41, 0, x_40); return x_41; } } } } else { lean_object* x_42; lean_dec(x_18); x_42 = l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonCreateFile____x40_Lean_Data_Lsp_Basic___hyg_3525_(x_1); if (lean_obj_tag(x_42) == 0) { lean_object* x_43; lean_dec(x_42); x_43 = lean_box(0); x_2 = x_43; goto block_13; } else { uint8_t x_44; x_44 = !lean_is_exclusive(x_42); if (x_44 == 0) { lean_object* x_45; lean_object* x_46; x_45 = lean_ctor_get(x_42, 0); x_46 = lean_alloc_ctor(0, 1, 0); lean_ctor_set(x_46, 0, x_45); lean_ctor_set(x_42, 0, x_46); return x_42; } else { lean_object* x_47; lean_object* x_48; lean_object* x_49; x_47 = lean_ctor_get(x_42, 0); lean_inc(x_47); lean_dec(x_42); x_48 = lean_alloc_ctor(0, 1, 0); lean_ctor_set(x_48, 0, x_47); x_49 = lean_alloc_ctor(1, 1, 0); lean_ctor_set(x_49, 0, x_48); return x_49; } } } } else { lean_object* x_50; lean_dec(x_17); x_50 = lean_box(0); x_2 = x_50; goto block_13; } } block_13: { lean_object* x_3; lean_dec(x_2); x_3 = l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonTextDocumentEdit____x40_Lean_Data_Lsp_Basic___hyg_2731_(x_1); if (lean_obj_tag(x_3) == 0) { uint8_t x_4; x_4 = !lean_is_exclusive(x_3); if (x_4 == 0) { return x_3; } else { lean_object* x_5; lean_object* x_6; x_5 = lean_ctor_get(x_3, 0); lean_inc(x_5); lean_dec(x_3); x_6 = lean_alloc_ctor(0, 1, 0); lean_ctor_set(x_6, 0, x_5); return x_6; } } else { uint8_t x_7; x_7 = !lean_is_exclusive(x_3); if (x_7 == 0) { lean_object* x_8; lean_object* x_9; x_8 = lean_ctor_get(x_3, 0); x_9 = lean_alloc_ctor(3, 1, 0); lean_ctor_set(x_9, 0, x_8); lean_ctor_set(x_3, 0, x_9); return x_3; } else { lean_object* x_10; lean_object* x_11; lean_object* x_12; x_10 = lean_ctor_get(x_3, 0); lean_inc(x_10); lean_dec(x_3); x_11 = lean_alloc_ctor(3, 1, 0); lean_ctor_set(x_11, 0, x_10); x_12 = lean_alloc_ctor(1, 1, 0); lean_ctor_set(x_12, 0, x_11); return x_12; } } } } } LEAN_EXPORT lean_object* l_Lean_Lsp_instFromJsonDocumentChange___boxed(lean_object* x_1) { _start: { lean_object* x_2; x_2 = l_Lean_Lsp_instFromJsonDocumentChange(x_1); lean_dec(x_1); return x_2; } } static lean_object* _init_l_Lean_Lsp_WorkspaceEdit_changes___default() { _start: { lean_object* x_1; x_1 = lean_box(0); return x_1; } } static lean_object* _init_l_Lean_Lsp_WorkspaceEdit_documentChanges___default() { _start: { lean_object* x_1; x_1 = l_Lean_Lsp_instEmptyCollectionTextEditBatch___closed__1; return x_1; } } static lean_object* _init_l_Lean_Lsp_WorkspaceEdit_changeAnnotations___default() { _start: { lean_object* x_1; x_1 = lean_box(0); return x_1; } } LEAN_EXPORT lean_object* l_Lean_RBNode_map___at___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_toJsonWorkspaceEdit____x40_Lean_Data_Lsp_Basic___hyg_4588____spec__1___rarg(lean_object* x_1) { _start: { if (lean_obj_tag(x_1) == 0) { lean_object* x_2; x_2 = lean_box(0); return x_2; } else { uint8_t x_3; x_3 = !lean_is_exclusive(x_1); if (x_3 == 0) { lean_object* x_4; lean_object* x_5; lean_object* x_6; lean_object* x_7; lean_object* x_8; size_t x_9; size_t x_10; lean_object* x_11; lean_object* x_12; lean_object* x_13; x_4 = lean_ctor_get(x_1, 0); x_5 = lean_ctor_get(x_1, 2); x_6 = lean_ctor_get(x_1, 3); x_7 = l_Lean_RBNode_map___at___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_toJsonWorkspaceEdit____x40_Lean_Data_Lsp_Basic___hyg_4588____spec__1___rarg(x_4); x_8 = lean_array_get_size(x_5); x_9 = lean_usize_of_nat(x_8); lean_dec(x_8); x_10 = 0; x_11 = l_Array_mapMUnsafe_map___at_Lean_Lsp_instToJsonTextEditBatch___spec__1(x_9, x_10, x_5); x_12 = lean_alloc_ctor(4, 1, 0); lean_ctor_set(x_12, 0, x_11); x_13 = l_Lean_RBNode_map___at___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_toJsonWorkspaceEdit____x40_Lean_Data_Lsp_Basic___hyg_4588____spec__1___rarg(x_6); lean_ctor_set(x_1, 3, x_13); lean_ctor_set(x_1, 2, x_12); lean_ctor_set(x_1, 0, x_7); return x_1; } else { uint8_t x_14; lean_object* x_15; lean_object* x_16; lean_object* x_17; lean_object* x_18; lean_object* x_19; lean_object* x_20; size_t x_21; size_t x_22; lean_object* x_23; lean_object* x_24; lean_object* x_25; lean_object* x_26; x_14 = lean_ctor_get_uint8(x_1, sizeof(void*)*4); x_15 = lean_ctor_get(x_1, 0); x_16 = lean_ctor_get(x_1, 1); x_17 = lean_ctor_get(x_1, 2); x_18 = lean_ctor_get(x_1, 3); lean_inc(x_18); lean_inc(x_17); lean_inc(x_16); lean_inc(x_15); lean_dec(x_1); x_19 = l_Lean_RBNode_map___at___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_toJsonWorkspaceEdit____x40_Lean_Data_Lsp_Basic___hyg_4588____spec__1___rarg(x_15); x_20 = lean_array_get_size(x_17); x_21 = lean_usize_of_nat(x_20); lean_dec(x_20); x_22 = 0; x_23 = l_Array_mapMUnsafe_map___at_Lean_Lsp_instToJsonTextEditBatch___spec__1(x_21, x_22, x_17); x_24 = lean_alloc_ctor(4, 1, 0); lean_ctor_set(x_24, 0, x_23); x_25 = l_Lean_RBNode_map___at___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_toJsonWorkspaceEdit____x40_Lean_Data_Lsp_Basic___hyg_4588____spec__1___rarg(x_18); x_26 = lean_alloc_ctor(1, 4, 1); lean_ctor_set(x_26, 0, x_19); lean_ctor_set(x_26, 1, x_16); lean_ctor_set(x_26, 2, x_24); lean_ctor_set(x_26, 3, x_25); lean_ctor_set_uint8(x_26, sizeof(void*)*4, x_14); return x_26; } } } } LEAN_EXPORT lean_object* l_Lean_RBNode_map___at___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_toJsonWorkspaceEdit____x40_Lean_Data_Lsp_Basic___hyg_4588____spec__1(lean_object* x_1) { _start: { lean_object* x_2; x_2 = lean_alloc_closure((void*)(l_Lean_RBNode_map___at___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_toJsonWorkspaceEdit____x40_Lean_Data_Lsp_Basic___hyg_4588____spec__1___rarg), 1, 0); return x_2; } } LEAN_EXPORT lean_object* l_Array_mapMUnsafe_map___at___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_toJsonWorkspaceEdit____x40_Lean_Data_Lsp_Basic___hyg_4588____spec__2(size_t x_1, size_t x_2, lean_object* x_3) { _start: { uint8_t x_4; x_4 = lean_usize_dec_lt(x_2, x_1); if (x_4 == 0) { return x_3; } else { lean_object* x_5; lean_object* x_6; lean_object* x_7; size_t x_8; size_t x_9; x_5 = lean_array_uget(x_3, x_2); x_6 = lean_unsigned_to_nat(0u); x_7 = lean_array_uset(x_3, x_2, x_6); x_8 = 1; x_9 = lean_usize_add(x_2, x_8); switch (lean_obj_tag(x_5)) { case 0: { lean_object* x_10; lean_object* x_11; lean_object* x_12; lean_object* x_13; lean_object* x_14; lean_object* x_15; x_10 = lean_ctor_get(x_5, 0); lean_inc(x_10); lean_dec(x_5); x_11 = l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_toJsonCreateFile____x40_Lean_Data_Lsp_Basic___hyg_3473_(x_10); lean_dec(x_10); x_12 = l_Lean_Lsp_instToJsonDocumentChange___closed__3; x_13 = l_Lean_Lsp_instToJsonDocumentChange___closed__2; x_14 = l_Lean_Json_setObjVal_x21(x_11, x_12, x_13); x_15 = lean_array_uset(x_7, x_2, x_14); x_2 = x_9; x_3 = x_15; goto _start; } case 1: { lean_object* x_17; lean_object* x_18; lean_object* x_19; lean_object* x_20; lean_object* x_21; lean_object* x_22; x_17 = lean_ctor_get(x_5, 0); lean_inc(x_17); lean_dec(x_5); x_18 = l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_toJsonRenameFile____x40_Lean_Data_Lsp_Basic___hyg_3717_(x_17); lean_dec(x_17); x_19 = l_Lean_Lsp_instToJsonDocumentChange___closed__3; x_20 = l_Lean_Lsp_instToJsonDocumentChange___closed__5; x_21 = l_Lean_Json_setObjVal_x21(x_18, x_19, x_20); x_22 = lean_array_uset(x_7, x_2, x_21); x_2 = x_9; x_3 = x_22; goto _start; } case 2: { lean_object* x_24; lean_object* x_25; lean_object* x_26; lean_object* x_27; lean_object* x_28; lean_object* x_29; x_24 = lean_ctor_get(x_5, 0); lean_inc(x_24); lean_dec(x_5); x_25 = l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_toJsonDeleteFile____x40_Lean_Data_Lsp_Basic___hyg_3998_(x_24); lean_dec(x_24); x_26 = l_Lean_Lsp_instToJsonDocumentChange___closed__3; x_27 = l_Lean_Lsp_instToJsonDocumentChange___closed__7; x_28 = l_Lean_Json_setObjVal_x21(x_25, x_26, x_27); x_29 = lean_array_uset(x_7, x_2, x_28); x_2 = x_9; x_3 = x_29; goto _start; } default: { lean_object* x_31; lean_object* x_32; lean_object* x_33; x_31 = lean_ctor_get(x_5, 0); lean_inc(x_31); lean_dec(x_5); x_32 = l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_toJsonTextDocumentEdit____x40_Lean_Data_Lsp_Basic___hyg_2677_(x_31); x_33 = lean_array_uset(x_7, x_2, x_32); x_2 = x_9; x_3 = x_33; goto _start; } } } } } LEAN_EXPORT lean_object* l_Lean_RBNode_map___at___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_toJsonWorkspaceEdit____x40_Lean_Data_Lsp_Basic___hyg_4588____spec__3___rarg(lean_object* x_1) { _start: { if (lean_obj_tag(x_1) == 0) { lean_object* x_2; x_2 = lean_box(0); return x_2; } else { uint8_t x_3; x_3 = !lean_is_exclusive(x_1); if (x_3 == 0) { lean_object* x_4; lean_object* x_5; lean_object* x_6; lean_object* x_7; lean_object* x_8; lean_object* x_9; x_4 = lean_ctor_get(x_1, 0); x_5 = lean_ctor_get(x_1, 2); x_6 = lean_ctor_get(x_1, 3); x_7 = l_Lean_RBNode_map___at___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_toJsonWorkspaceEdit____x40_Lean_Data_Lsp_Basic___hyg_4588____spec__3___rarg(x_4); x_8 = l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_toJsonChangeAnnotation____x40_Lean_Data_Lsp_Basic___hyg_2875_(x_5); lean_dec(x_5); x_9 = l_Lean_RBNode_map___at___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_toJsonWorkspaceEdit____x40_Lean_Data_Lsp_Basic___hyg_4588____spec__3___rarg(x_6); lean_ctor_set(x_1, 3, x_9); lean_ctor_set(x_1, 2, x_8); lean_ctor_set(x_1, 0, x_7); return x_1; } else { uint8_t x_10; lean_object* x_11; lean_object* x_12; lean_object* x_13; lean_object* x_14; lean_object* x_15; lean_object* x_16; lean_object* x_17; lean_object* x_18; x_10 = lean_ctor_get_uint8(x_1, sizeof(void*)*4); x_11 = lean_ctor_get(x_1, 0); x_12 = lean_ctor_get(x_1, 1); x_13 = lean_ctor_get(x_1, 2); x_14 = lean_ctor_get(x_1, 3); lean_inc(x_14); lean_inc(x_13); lean_inc(x_12); lean_inc(x_11); lean_dec(x_1); x_15 = l_Lean_RBNode_map___at___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_toJsonWorkspaceEdit____x40_Lean_Data_Lsp_Basic___hyg_4588____spec__3___rarg(x_11); x_16 = l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_toJsonChangeAnnotation____x40_Lean_Data_Lsp_Basic___hyg_2875_(x_13); lean_dec(x_13); x_17 = l_Lean_RBNode_map___at___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_toJsonWorkspaceEdit____x40_Lean_Data_Lsp_Basic___hyg_4588____spec__3___rarg(x_14); x_18 = lean_alloc_ctor(1, 4, 1); lean_ctor_set(x_18, 0, x_15); lean_ctor_set(x_18, 1, x_12); lean_ctor_set(x_18, 2, x_16); lean_ctor_set(x_18, 3, x_17); lean_ctor_set_uint8(x_18, sizeof(void*)*4, x_10); return x_18; } } } } LEAN_EXPORT lean_object* l_Lean_RBNode_map___at___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_toJsonWorkspaceEdit____x40_Lean_Data_Lsp_Basic___hyg_4588____spec__3(lean_object* x_1) { _start: { lean_object* x_2; x_2 = lean_alloc_closure((void*)(l_Lean_RBNode_map___at___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_toJsonWorkspaceEdit____x40_Lean_Data_Lsp_Basic___hyg_4588____spec__3___rarg), 1, 0); return x_2; } } static lean_object* _init_l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_toJsonWorkspaceEdit____x40_Lean_Data_Lsp_Basic___hyg_4588____closed__1() { _start: { lean_object* x_1; x_1 = lean_mk_string_from_bytes("changes", 7); return x_1; } } static lean_object* _init_l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_toJsonWorkspaceEdit____x40_Lean_Data_Lsp_Basic___hyg_4588____closed__2() { _start: { lean_object* x_1; x_1 = lean_mk_string_from_bytes("documentChanges", 15); return x_1; } } static lean_object* _init_l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_toJsonWorkspaceEdit____x40_Lean_Data_Lsp_Basic___hyg_4588____closed__3() { _start: { lean_object* x_1; x_1 = lean_mk_string_from_bytes("changeAnnotations", 17); return x_1; } } LEAN_EXPORT lean_object* l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_toJsonWorkspaceEdit____x40_Lean_Data_Lsp_Basic___hyg_4588_(lean_object* x_1) { _start: { lean_object* x_2; lean_object* x_3; lean_object* x_4; lean_object* x_5; lean_object* x_6; lean_object* x_7; lean_object* x_8; lean_object* x_9; lean_object* x_10; size_t x_11; size_t x_12; lean_object* x_13; lean_object* x_14; lean_object* x_15; lean_object* x_16; lean_object* x_17; lean_object* x_18; lean_object* x_19; lean_object* x_20; lean_object* x_21; lean_object* x_22; lean_object* x_23; lean_object* x_24; lean_object* x_25; lean_object* x_26; lean_object* x_27; lean_object* x_28; x_2 = lean_ctor_get(x_1, 0); lean_inc(x_2); x_3 = l_Lean_RBNode_map___at___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_toJsonWorkspaceEdit____x40_Lean_Data_Lsp_Basic___hyg_4588____spec__1___rarg(x_2); x_4 = lean_alloc_ctor(5, 1, 0); lean_ctor_set(x_4, 0, x_3); x_5 = l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_toJsonWorkspaceEdit____x40_Lean_Data_Lsp_Basic___hyg_4588____closed__1; x_6 = lean_alloc_ctor(0, 2, 0); lean_ctor_set(x_6, 0, x_5); lean_ctor_set(x_6, 1, x_4); x_7 = lean_box(0); x_8 = lean_alloc_ctor(1, 2, 0); lean_ctor_set(x_8, 0, x_6); lean_ctor_set(x_8, 1, x_7); x_9 = lean_ctor_get(x_1, 1); lean_inc(x_9); x_10 = lean_array_get_size(x_9); x_11 = lean_usize_of_nat(x_10); lean_dec(x_10); x_12 = 0; x_13 = l_Array_mapMUnsafe_map___at___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_toJsonWorkspaceEdit____x40_Lean_Data_Lsp_Basic___hyg_4588____spec__2(x_11, x_12, x_9); x_14 = lean_alloc_ctor(4, 1, 0); lean_ctor_set(x_14, 0, x_13); x_15 = l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_toJsonWorkspaceEdit____x40_Lean_Data_Lsp_Basic___hyg_4588____closed__2; x_16 = lean_alloc_ctor(0, 2, 0); lean_ctor_set(x_16, 0, x_15); lean_ctor_set(x_16, 1, x_14); x_17 = lean_alloc_ctor(1, 2, 0); lean_ctor_set(x_17, 0, x_16); lean_ctor_set(x_17, 1, x_7); x_18 = lean_ctor_get(x_1, 2); lean_inc(x_18); lean_dec(x_1); x_19 = l_Lean_RBNode_map___at___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_toJsonWorkspaceEdit____x40_Lean_Data_Lsp_Basic___hyg_4588____spec__3___rarg(x_18); x_20 = lean_alloc_ctor(5, 1, 0); lean_ctor_set(x_20, 0, x_19); x_21 = l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_toJsonWorkspaceEdit____x40_Lean_Data_Lsp_Basic___hyg_4588____closed__3; x_22 = lean_alloc_ctor(0, 2, 0); lean_ctor_set(x_22, 0, x_21); lean_ctor_set(x_22, 1, x_20); x_23 = lean_alloc_ctor(1, 2, 0); lean_ctor_set(x_23, 0, x_22); lean_ctor_set(x_23, 1, x_7); x_24 = lean_alloc_ctor(1, 2, 0); lean_ctor_set(x_24, 0, x_23); lean_ctor_set(x_24, 1, x_7); x_25 = lean_alloc_ctor(1, 2, 0); lean_ctor_set(x_25, 0, x_17); lean_ctor_set(x_25, 1, x_24); x_26 = lean_alloc_ctor(1, 2, 0); lean_ctor_set(x_26, 0, x_8); lean_ctor_set(x_26, 1, x_25); x_27 = l_List_join___rarg(x_26); x_28 = l_Lean_Json_mkObj(x_27); return x_28; } } LEAN_EXPORT lean_object* l_Array_mapMUnsafe_map___at___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_toJsonWorkspaceEdit____x40_Lean_Data_Lsp_Basic___hyg_4588____spec__2___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3) { _start: { size_t x_4; size_t x_5; lean_object* x_6; x_4 = lean_unbox_usize(x_1); lean_dec(x_1); x_5 = lean_unbox_usize(x_2); lean_dec(x_2); x_6 = l_Array_mapMUnsafe_map___at___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_toJsonWorkspaceEdit____x40_Lean_Data_Lsp_Basic___hyg_4588____spec__2(x_4, x_5, x_3); return x_6; } } static lean_object* _init_l_Lean_Lsp_instToJsonWorkspaceEdit___closed__1() { _start: { lean_object* x_1; x_1 = lean_alloc_closure((void*)(l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_toJsonWorkspaceEdit____x40_Lean_Data_Lsp_Basic___hyg_4588_), 1, 0); return x_1; } } static lean_object* _init_l_Lean_Lsp_instToJsonWorkspaceEdit() { _start: { lean_object* x_1; x_1 = l_Lean_Lsp_instToJsonWorkspaceEdit___closed__1; return x_1; } } LEAN_EXPORT lean_object* l_Lean_RBNode_ins___at___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonWorkspaceEdit____x40_Lean_Data_Lsp_Basic___hyg_4660____spec__3(lean_object* x_1, lean_object* x_2, lean_object* x_3) { _start: { if (lean_obj_tag(x_1) == 0) { lean_object* x_4; uint8_t x_5; lean_object* x_6; x_4 = lean_box(0); x_5 = 0; x_6 = lean_alloc_ctor(1, 4, 1); lean_ctor_set(x_6, 0, x_4); lean_ctor_set(x_6, 1, x_2); lean_ctor_set(x_6, 2, x_3); lean_ctor_set(x_6, 3, x_4); lean_ctor_set_uint8(x_6, sizeof(void*)*4, x_5); return x_6; } else { uint8_t x_7; x_7 = lean_ctor_get_uint8(x_1, sizeof(void*)*4); if (x_7 == 0) { uint8_t x_8; x_8 = !lean_is_exclusive(x_1); if (x_8 == 0) { lean_object* x_9; lean_object* x_10; lean_object* x_11; lean_object* x_12; uint8_t x_13; x_9 = lean_ctor_get(x_1, 0); x_10 = lean_ctor_get(x_1, 1); x_11 = lean_ctor_get(x_1, 2); x_12 = lean_ctor_get(x_1, 3); x_13 = lean_string_dec_lt(x_2, x_10); if (x_13 == 0) { uint8_t x_14; x_14 = lean_string_dec_eq(x_2, x_10); if (x_14 == 0) { lean_object* x_15; uint8_t x_16; x_15 = l_Lean_RBNode_ins___at___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonWorkspaceEdit____x40_Lean_Data_Lsp_Basic___hyg_4660____spec__3(x_12, x_2, x_3); x_16 = 0; lean_ctor_set(x_1, 3, x_15); lean_ctor_set_uint8(x_1, sizeof(void*)*4, x_16); return x_1; } else { uint8_t x_17; lean_dec(x_11); lean_dec(x_10); x_17 = 0; lean_ctor_set(x_1, 2, x_3); lean_ctor_set(x_1, 1, x_2); lean_ctor_set_uint8(x_1, sizeof(void*)*4, x_17); return x_1; } } else { lean_object* x_18; uint8_t x_19; x_18 = l_Lean_RBNode_ins___at___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonWorkspaceEdit____x40_Lean_Data_Lsp_Basic___hyg_4660____spec__3(x_9, x_2, x_3); x_19 = 0; lean_ctor_set(x_1, 0, x_18); lean_ctor_set_uint8(x_1, sizeof(void*)*4, x_19); return x_1; } } else { lean_object* x_20; lean_object* x_21; lean_object* x_22; lean_object* x_23; uint8_t x_24; x_20 = lean_ctor_get(x_1, 0); x_21 = lean_ctor_get(x_1, 1); x_22 = lean_ctor_get(x_1, 2); x_23 = lean_ctor_get(x_1, 3); lean_inc(x_23); lean_inc(x_22); lean_inc(x_21); lean_inc(x_20); lean_dec(x_1); x_24 = lean_string_dec_lt(x_2, x_21); if (x_24 == 0) { uint8_t x_25; x_25 = lean_string_dec_eq(x_2, x_21); if (x_25 == 0) { lean_object* x_26; uint8_t x_27; lean_object* x_28; x_26 = l_Lean_RBNode_ins___at___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonWorkspaceEdit____x40_Lean_Data_Lsp_Basic___hyg_4660____spec__3(x_23, x_2, x_3); x_27 = 0; x_28 = lean_alloc_ctor(1, 4, 1); lean_ctor_set(x_28, 0, x_20); lean_ctor_set(x_28, 1, x_21); lean_ctor_set(x_28, 2, x_22); lean_ctor_set(x_28, 3, x_26); lean_ctor_set_uint8(x_28, sizeof(void*)*4, x_27); return x_28; } else { uint8_t x_29; lean_object* x_30; lean_dec(x_22); lean_dec(x_21); x_29 = 0; x_30 = lean_alloc_ctor(1, 4, 1); lean_ctor_set(x_30, 0, x_20); lean_ctor_set(x_30, 1, x_2); lean_ctor_set(x_30, 2, x_3); lean_ctor_set(x_30, 3, x_23); lean_ctor_set_uint8(x_30, sizeof(void*)*4, x_29); return x_30; } } else { lean_object* x_31; uint8_t x_32; lean_object* x_33; x_31 = l_Lean_RBNode_ins___at___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonWorkspaceEdit____x40_Lean_Data_Lsp_Basic___hyg_4660____spec__3(x_20, x_2, x_3); x_32 = 0; x_33 = lean_alloc_ctor(1, 4, 1); lean_ctor_set(x_33, 0, x_31); lean_ctor_set(x_33, 1, x_21); lean_ctor_set(x_33, 2, x_22); lean_ctor_set(x_33, 3, x_23); lean_ctor_set_uint8(x_33, sizeof(void*)*4, x_32); return x_33; } } } else { uint8_t x_34; x_34 = !lean_is_exclusive(x_1); if (x_34 == 0) { lean_object* x_35; lean_object* x_36; lean_object* x_37; lean_object* x_38; uint8_t x_39; x_35 = lean_ctor_get(x_1, 0); x_36 = lean_ctor_get(x_1, 1); x_37 = lean_ctor_get(x_1, 2); x_38 = lean_ctor_get(x_1, 3); x_39 = lean_string_dec_lt(x_2, x_36); if (x_39 == 0) { uint8_t x_40; x_40 = lean_string_dec_eq(x_2, x_36); if (x_40 == 0) { lean_object* x_41; uint8_t x_42; x_41 = l_Lean_RBNode_ins___at___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonWorkspaceEdit____x40_Lean_Data_Lsp_Basic___hyg_4660____spec__3(x_38, x_2, x_3); x_42 = lean_ctor_get_uint8(x_41, sizeof(void*)*4); if (x_42 == 0) { lean_object* x_43; x_43 = lean_ctor_get(x_41, 0); lean_inc(x_43); if (lean_obj_tag(x_43) == 0) { lean_object* x_44; x_44 = lean_ctor_get(x_41, 3); lean_inc(x_44); if (lean_obj_tag(x_44) == 0) { uint8_t x_45; x_45 = !lean_is_exclusive(x_41); if (x_45 == 0) { lean_object* x_46; lean_object* x_47; uint8_t x_48; x_46 = lean_ctor_get(x_41, 3); lean_dec(x_46); x_47 = lean_ctor_get(x_41, 0); lean_dec(x_47); lean_ctor_set(x_41, 0, x_44); x_48 = 1; lean_ctor_set(x_1, 3, x_41); lean_ctor_set_uint8(x_1, sizeof(void*)*4, x_48); return x_1; } else { lean_object* x_49; lean_object* x_50; lean_object* x_51; uint8_t x_52; x_49 = lean_ctor_get(x_41, 1); x_50 = lean_ctor_get(x_41, 2); lean_inc(x_50); lean_inc(x_49); lean_dec(x_41); x_51 = lean_alloc_ctor(1, 4, 1); lean_ctor_set(x_51, 0, x_44); lean_ctor_set(x_51, 1, x_49); lean_ctor_set(x_51, 2, x_50); lean_ctor_set(x_51, 3, x_44); lean_ctor_set_uint8(x_51, sizeof(void*)*4, x_42); x_52 = 1; lean_ctor_set(x_1, 3, x_51); lean_ctor_set_uint8(x_1, sizeof(void*)*4, x_52); return x_1; } } else { uint8_t x_53; x_53 = lean_ctor_get_uint8(x_44, sizeof(void*)*4); if (x_53 == 0) { uint8_t x_54; x_54 = !lean_is_exclusive(x_41); if (x_54 == 0) { lean_object* x_55; lean_object* x_56; lean_object* x_57; lean_object* x_58; uint8_t x_59; x_55 = lean_ctor_get(x_41, 1); x_56 = lean_ctor_get(x_41, 2); x_57 = lean_ctor_get(x_41, 3); lean_dec(x_57); x_58 = lean_ctor_get(x_41, 0); lean_dec(x_58); x_59 = !lean_is_exclusive(x_44); if (x_59 == 0) { lean_object* x_60; lean_object* x_61; lean_object* x_62; lean_object* x_63; uint8_t x_64; uint8_t x_65; x_60 = lean_ctor_get(x_44, 0); x_61 = lean_ctor_get(x_44, 1); x_62 = lean_ctor_get(x_44, 2); x_63 = lean_ctor_get(x_44, 3); x_64 = 1; lean_ctor_set(x_44, 3, x_43); lean_ctor_set(x_44, 2, x_37); lean_ctor_set(x_44, 1, x_36); lean_ctor_set(x_44, 0, x_35); lean_ctor_set_uint8(x_44, sizeof(void*)*4, x_64); lean_ctor_set(x_41, 3, x_63); lean_ctor_set(x_41, 2, x_62); lean_ctor_set(x_41, 1, x_61); lean_ctor_set(x_41, 0, x_60); lean_ctor_set_uint8(x_41, sizeof(void*)*4, x_64); x_65 = 0; lean_ctor_set(x_1, 3, x_41); lean_ctor_set(x_1, 2, x_56); lean_ctor_set(x_1, 1, x_55); lean_ctor_set(x_1, 0, x_44); lean_ctor_set_uint8(x_1, sizeof(void*)*4, x_65); return x_1; } else { lean_object* x_66; lean_object* x_67; lean_object* x_68; lean_object* x_69; uint8_t x_70; lean_object* x_71; uint8_t x_72; x_66 = lean_ctor_get(x_44, 0); x_67 = lean_ctor_get(x_44, 1); x_68 = lean_ctor_get(x_44, 2); x_69 = lean_ctor_get(x_44, 3); lean_inc(x_69); lean_inc(x_68); lean_inc(x_67); lean_inc(x_66); lean_dec(x_44); x_70 = 1; x_71 = lean_alloc_ctor(1, 4, 1); lean_ctor_set(x_71, 0, x_35); lean_ctor_set(x_71, 1, x_36); lean_ctor_set(x_71, 2, x_37); lean_ctor_set(x_71, 3, x_43); lean_ctor_set_uint8(x_71, sizeof(void*)*4, x_70); lean_ctor_set(x_41, 3, x_69); lean_ctor_set(x_41, 2, x_68); lean_ctor_set(x_41, 1, x_67); lean_ctor_set(x_41, 0, x_66); lean_ctor_set_uint8(x_41, sizeof(void*)*4, x_70); x_72 = 0; lean_ctor_set(x_1, 3, x_41); lean_ctor_set(x_1, 2, x_56); lean_ctor_set(x_1, 1, x_55); lean_ctor_set(x_1, 0, x_71); lean_ctor_set_uint8(x_1, sizeof(void*)*4, x_72); return x_1; } } else { lean_object* x_73; lean_object* x_74; lean_object* x_75; lean_object* x_76; lean_object* x_77; lean_object* x_78; lean_object* x_79; uint8_t x_80; lean_object* x_81; lean_object* x_82; uint8_t x_83; x_73 = lean_ctor_get(x_41, 1); x_74 = lean_ctor_get(x_41, 2); lean_inc(x_74); lean_inc(x_73); lean_dec(x_41); x_75 = lean_ctor_get(x_44, 0); lean_inc(x_75); x_76 = lean_ctor_get(x_44, 1); lean_inc(x_76); x_77 = lean_ctor_get(x_44, 2); lean_inc(x_77); x_78 = lean_ctor_get(x_44, 3); lean_inc(x_78); if (lean_is_exclusive(x_44)) { lean_ctor_release(x_44, 0); lean_ctor_release(x_44, 1); lean_ctor_release(x_44, 2); lean_ctor_release(x_44, 3); x_79 = x_44; } else { lean_dec_ref(x_44); x_79 = lean_box(0); } x_80 = 1; if (lean_is_scalar(x_79)) { x_81 = lean_alloc_ctor(1, 4, 1); } else { x_81 = x_79; } lean_ctor_set(x_81, 0, x_35); lean_ctor_set(x_81, 1, x_36); lean_ctor_set(x_81, 2, x_37); lean_ctor_set(x_81, 3, x_43); lean_ctor_set_uint8(x_81, sizeof(void*)*4, x_80); x_82 = lean_alloc_ctor(1, 4, 1); lean_ctor_set(x_82, 0, x_75); lean_ctor_set(x_82, 1, x_76); lean_ctor_set(x_82, 2, x_77); lean_ctor_set(x_82, 3, x_78); lean_ctor_set_uint8(x_82, sizeof(void*)*4, x_80); x_83 = 0; lean_ctor_set(x_1, 3, x_82); lean_ctor_set(x_1, 2, x_74); lean_ctor_set(x_1, 1, x_73); lean_ctor_set(x_1, 0, x_81); lean_ctor_set_uint8(x_1, sizeof(void*)*4, x_83); return x_1; } } else { uint8_t x_84; lean_free_object(x_1); x_84 = !lean_is_exclusive(x_44); if (x_84 == 0) { lean_object* x_85; lean_object* x_86; lean_object* x_87; lean_object* x_88; uint8_t x_89; x_85 = lean_ctor_get(x_44, 3); lean_dec(x_85); x_86 = lean_ctor_get(x_44, 2); lean_dec(x_86); x_87 = lean_ctor_get(x_44, 1); lean_dec(x_87); x_88 = lean_ctor_get(x_44, 0); lean_dec(x_88); x_89 = 1; lean_ctor_set(x_44, 3, x_41); lean_ctor_set(x_44, 2, x_37); lean_ctor_set(x_44, 1, x_36); lean_ctor_set(x_44, 0, x_35); lean_ctor_set_uint8(x_44, sizeof(void*)*4, x_89); return x_44; } else { uint8_t x_90; lean_object* x_91; lean_dec(x_44); x_90 = 1; x_91 = lean_alloc_ctor(1, 4, 1); lean_ctor_set(x_91, 0, x_35); lean_ctor_set(x_91, 1, x_36); lean_ctor_set(x_91, 2, x_37); lean_ctor_set(x_91, 3, x_41); lean_ctor_set_uint8(x_91, sizeof(void*)*4, x_90); return x_91; } } } } else { uint8_t x_92; x_92 = lean_ctor_get_uint8(x_43, sizeof(void*)*4); if (x_92 == 0) { uint8_t x_93; x_93 = !lean_is_exclusive(x_41); if (x_93 == 0) { lean_object* x_94; uint8_t x_95; x_94 = lean_ctor_get(x_41, 0); lean_dec(x_94); x_95 = !lean_is_exclusive(x_43); if (x_95 == 0) { lean_object* x_96; lean_object* x_97; lean_object* x_98; lean_object* x_99; uint8_t x_100; uint8_t x_101; x_96 = lean_ctor_get(x_43, 0); x_97 = lean_ctor_get(x_43, 1); x_98 = lean_ctor_get(x_43, 2); x_99 = lean_ctor_get(x_43, 3); x_100 = 1; lean_ctor_set(x_43, 3, x_96); lean_ctor_set(x_43, 2, x_37); lean_ctor_set(x_43, 1, x_36); lean_ctor_set(x_43, 0, x_35); lean_ctor_set_uint8(x_43, sizeof(void*)*4, x_100); lean_ctor_set(x_41, 0, x_99); lean_ctor_set_uint8(x_41, sizeof(void*)*4, x_100); x_101 = 0; lean_ctor_set(x_1, 3, x_41); lean_ctor_set(x_1, 2, x_98); lean_ctor_set(x_1, 1, x_97); lean_ctor_set(x_1, 0, x_43); lean_ctor_set_uint8(x_1, sizeof(void*)*4, x_101); return x_1; } else { lean_object* x_102; lean_object* x_103; lean_object* x_104; lean_object* x_105; uint8_t x_106; lean_object* x_107; uint8_t x_108; x_102 = lean_ctor_get(x_43, 0); x_103 = lean_ctor_get(x_43, 1); x_104 = lean_ctor_get(x_43, 2); x_105 = lean_ctor_get(x_43, 3); lean_inc(x_105); lean_inc(x_104); lean_inc(x_103); lean_inc(x_102); lean_dec(x_43); x_106 = 1; x_107 = lean_alloc_ctor(1, 4, 1); lean_ctor_set(x_107, 0, x_35); lean_ctor_set(x_107, 1, x_36); lean_ctor_set(x_107, 2, x_37); lean_ctor_set(x_107, 3, x_102); lean_ctor_set_uint8(x_107, sizeof(void*)*4, x_106); lean_ctor_set(x_41, 0, x_105); lean_ctor_set_uint8(x_41, sizeof(void*)*4, x_106); x_108 = 0; lean_ctor_set(x_1, 3, x_41); lean_ctor_set(x_1, 2, x_104); lean_ctor_set(x_1, 1, x_103); lean_ctor_set(x_1, 0, x_107); lean_ctor_set_uint8(x_1, sizeof(void*)*4, x_108); return x_1; } } else { lean_object* x_109; lean_object* x_110; lean_object* x_111; lean_object* x_112; lean_object* x_113; lean_object* x_114; lean_object* x_115; lean_object* x_116; uint8_t x_117; lean_object* x_118; lean_object* x_119; uint8_t x_120; x_109 = lean_ctor_get(x_41, 1); x_110 = lean_ctor_get(x_41, 2); x_111 = lean_ctor_get(x_41, 3); lean_inc(x_111); lean_inc(x_110); lean_inc(x_109); lean_dec(x_41); x_112 = lean_ctor_get(x_43, 0); lean_inc(x_112); x_113 = lean_ctor_get(x_43, 1); lean_inc(x_113); x_114 = lean_ctor_get(x_43, 2); lean_inc(x_114); x_115 = lean_ctor_get(x_43, 3); lean_inc(x_115); if (lean_is_exclusive(x_43)) { lean_ctor_release(x_43, 0); lean_ctor_release(x_43, 1); lean_ctor_release(x_43, 2); lean_ctor_release(x_43, 3); x_116 = x_43; } else { lean_dec_ref(x_43); x_116 = lean_box(0); } x_117 = 1; if (lean_is_scalar(x_116)) { x_118 = lean_alloc_ctor(1, 4, 1); } else { x_118 = x_116; } lean_ctor_set(x_118, 0, x_35); lean_ctor_set(x_118, 1, x_36); lean_ctor_set(x_118, 2, x_37); lean_ctor_set(x_118, 3, x_112); lean_ctor_set_uint8(x_118, sizeof(void*)*4, x_117); x_119 = lean_alloc_ctor(1, 4, 1); lean_ctor_set(x_119, 0, x_115); lean_ctor_set(x_119, 1, x_109); lean_ctor_set(x_119, 2, x_110); lean_ctor_set(x_119, 3, x_111); lean_ctor_set_uint8(x_119, sizeof(void*)*4, x_117); x_120 = 0; lean_ctor_set(x_1, 3, x_119); lean_ctor_set(x_1, 2, x_114); lean_ctor_set(x_1, 1, x_113); lean_ctor_set(x_1, 0, x_118); lean_ctor_set_uint8(x_1, sizeof(void*)*4, x_120); return x_1; } } else { lean_object* x_121; x_121 = lean_ctor_get(x_41, 3); lean_inc(x_121); if (lean_obj_tag(x_121) == 0) { uint8_t x_122; lean_free_object(x_1); x_122 = !lean_is_exclusive(x_43); if (x_122 == 0) { lean_object* x_123; lean_object* x_124; lean_object* x_125; lean_object* x_126; uint8_t x_127; x_123 = lean_ctor_get(x_43, 3); lean_dec(x_123); x_124 = lean_ctor_get(x_43, 2); lean_dec(x_124); x_125 = lean_ctor_get(x_43, 1); lean_dec(x_125); x_126 = lean_ctor_get(x_43, 0); lean_dec(x_126); x_127 = 1; lean_ctor_set(x_43, 3, x_41); lean_ctor_set(x_43, 2, x_37); lean_ctor_set(x_43, 1, x_36); lean_ctor_set(x_43, 0, x_35); lean_ctor_set_uint8(x_43, sizeof(void*)*4, x_127); return x_43; } else { uint8_t x_128; lean_object* x_129; lean_dec(x_43); x_128 = 1; x_129 = lean_alloc_ctor(1, 4, 1); lean_ctor_set(x_129, 0, x_35); lean_ctor_set(x_129, 1, x_36); lean_ctor_set(x_129, 2, x_37); lean_ctor_set(x_129, 3, x_41); lean_ctor_set_uint8(x_129, sizeof(void*)*4, x_128); return x_129; } } else { uint8_t x_130; x_130 = lean_ctor_get_uint8(x_121, sizeof(void*)*4); if (x_130 == 0) { uint8_t x_131; lean_free_object(x_1); x_131 = !lean_is_exclusive(x_41); if (x_131 == 0) { lean_object* x_132; lean_object* x_133; uint8_t x_134; x_132 = lean_ctor_get(x_41, 3); lean_dec(x_132); x_133 = lean_ctor_get(x_41, 0); lean_dec(x_133); x_134 = !lean_is_exclusive(x_121); if (x_134 == 0) { lean_object* x_135; lean_object* x_136; lean_object* x_137; lean_object* x_138; uint8_t x_139; uint8_t x_140; x_135 = lean_ctor_get(x_121, 0); x_136 = lean_ctor_get(x_121, 1); x_137 = lean_ctor_get(x_121, 2); x_138 = lean_ctor_get(x_121, 3); x_139 = 1; lean_inc(x_43); lean_ctor_set(x_121, 3, x_43); lean_ctor_set(x_121, 2, x_37); lean_ctor_set(x_121, 1, x_36); lean_ctor_set(x_121, 0, x_35); x_140 = !lean_is_exclusive(x_43); if (x_140 == 0) { lean_object* x_141; lean_object* x_142; lean_object* x_143; lean_object* x_144; uint8_t x_145; x_141 = lean_ctor_get(x_43, 3); lean_dec(x_141); x_142 = lean_ctor_get(x_43, 2); lean_dec(x_142); x_143 = lean_ctor_get(x_43, 1); lean_dec(x_143); x_144 = lean_ctor_get(x_43, 0); lean_dec(x_144); lean_ctor_set_uint8(x_121, sizeof(void*)*4, x_139); lean_ctor_set(x_43, 3, x_138); lean_ctor_set(x_43, 2, x_137); lean_ctor_set(x_43, 1, x_136); lean_ctor_set(x_43, 0, x_135); lean_ctor_set_uint8(x_43, sizeof(void*)*4, x_139); x_145 = 0; lean_ctor_set(x_41, 3, x_43); lean_ctor_set(x_41, 0, x_121); lean_ctor_set_uint8(x_41, sizeof(void*)*4, x_145); return x_41; } else { lean_object* x_146; uint8_t x_147; lean_dec(x_43); lean_ctor_set_uint8(x_121, sizeof(void*)*4, x_139); x_146 = lean_alloc_ctor(1, 4, 1); lean_ctor_set(x_146, 0, x_135); lean_ctor_set(x_146, 1, x_136); lean_ctor_set(x_146, 2, x_137); lean_ctor_set(x_146, 3, x_138); lean_ctor_set_uint8(x_146, sizeof(void*)*4, x_139); x_147 = 0; lean_ctor_set(x_41, 3, x_146); lean_ctor_set(x_41, 0, x_121); lean_ctor_set_uint8(x_41, sizeof(void*)*4, x_147); return x_41; } } else { lean_object* x_148; lean_object* x_149; lean_object* x_150; lean_object* x_151; uint8_t x_152; lean_object* x_153; lean_object* x_154; lean_object* x_155; uint8_t x_156; x_148 = lean_ctor_get(x_121, 0); x_149 = lean_ctor_get(x_121, 1); x_150 = lean_ctor_get(x_121, 2); x_151 = lean_ctor_get(x_121, 3); lean_inc(x_151); lean_inc(x_150); lean_inc(x_149); lean_inc(x_148); lean_dec(x_121); x_152 = 1; lean_inc(x_43); x_153 = lean_alloc_ctor(1, 4, 1); lean_ctor_set(x_153, 0, x_35); lean_ctor_set(x_153, 1, x_36); lean_ctor_set(x_153, 2, x_37); lean_ctor_set(x_153, 3, x_43); if (lean_is_exclusive(x_43)) { lean_ctor_release(x_43, 0); lean_ctor_release(x_43, 1); lean_ctor_release(x_43, 2); lean_ctor_release(x_43, 3); x_154 = x_43; } else { lean_dec_ref(x_43); x_154 = lean_box(0); } lean_ctor_set_uint8(x_153, sizeof(void*)*4, x_152); if (lean_is_scalar(x_154)) { x_155 = lean_alloc_ctor(1, 4, 1); } else { x_155 = x_154; } lean_ctor_set(x_155, 0, x_148); lean_ctor_set(x_155, 1, x_149); lean_ctor_set(x_155, 2, x_150); lean_ctor_set(x_155, 3, x_151); lean_ctor_set_uint8(x_155, sizeof(void*)*4, x_152); x_156 = 0; lean_ctor_set(x_41, 3, x_155); lean_ctor_set(x_41, 0, x_153); lean_ctor_set_uint8(x_41, sizeof(void*)*4, x_156); return x_41; } } else { lean_object* x_157; lean_object* x_158; lean_object* x_159; lean_object* x_160; lean_object* x_161; lean_object* x_162; lean_object* x_163; uint8_t x_164; lean_object* x_165; lean_object* x_166; lean_object* x_167; uint8_t x_168; lean_object* x_169; x_157 = lean_ctor_get(x_41, 1); x_158 = lean_ctor_get(x_41, 2); lean_inc(x_158); lean_inc(x_157); lean_dec(x_41); x_159 = lean_ctor_get(x_121, 0); lean_inc(x_159); x_160 = lean_ctor_get(x_121, 1); lean_inc(x_160); x_161 = lean_ctor_get(x_121, 2); lean_inc(x_161); x_162 = lean_ctor_get(x_121, 3); lean_inc(x_162); if (lean_is_exclusive(x_121)) { lean_ctor_release(x_121, 0); lean_ctor_release(x_121, 1); lean_ctor_release(x_121, 2); lean_ctor_release(x_121, 3); x_163 = x_121; } else { lean_dec_ref(x_121); x_163 = lean_box(0); } x_164 = 1; lean_inc(x_43); if (lean_is_scalar(x_163)) { x_165 = lean_alloc_ctor(1, 4, 1); } else { x_165 = x_163; } lean_ctor_set(x_165, 0, x_35); lean_ctor_set(x_165, 1, x_36); lean_ctor_set(x_165, 2, x_37); lean_ctor_set(x_165, 3, x_43); if (lean_is_exclusive(x_43)) { lean_ctor_release(x_43, 0); lean_ctor_release(x_43, 1); lean_ctor_release(x_43, 2); lean_ctor_release(x_43, 3); x_166 = x_43; } else { lean_dec_ref(x_43); x_166 = lean_box(0); } lean_ctor_set_uint8(x_165, sizeof(void*)*4, x_164); if (lean_is_scalar(x_166)) { x_167 = lean_alloc_ctor(1, 4, 1); } else { x_167 = x_166; } lean_ctor_set(x_167, 0, x_159); lean_ctor_set(x_167, 1, x_160); lean_ctor_set(x_167, 2, x_161); lean_ctor_set(x_167, 3, x_162); lean_ctor_set_uint8(x_167, sizeof(void*)*4, x_164); x_168 = 0; x_169 = lean_alloc_ctor(1, 4, 1); lean_ctor_set(x_169, 0, x_165); lean_ctor_set(x_169, 1, x_157); lean_ctor_set(x_169, 2, x_158); lean_ctor_set(x_169, 3, x_167); lean_ctor_set_uint8(x_169, sizeof(void*)*4, x_168); return x_169; } } else { uint8_t x_170; x_170 = !lean_is_exclusive(x_41); if (x_170 == 0) { lean_object* x_171; lean_object* x_172; uint8_t x_173; x_171 = lean_ctor_get(x_41, 3); lean_dec(x_171); x_172 = lean_ctor_get(x_41, 0); lean_dec(x_172); x_173 = !lean_is_exclusive(x_43); if (x_173 == 0) { uint8_t x_174; lean_ctor_set_uint8(x_43, sizeof(void*)*4, x_130); x_174 = 1; lean_ctor_set(x_1, 3, x_41); lean_ctor_set_uint8(x_1, sizeof(void*)*4, x_174); return x_1; } else { lean_object* x_175; lean_object* x_176; lean_object* x_177; lean_object* x_178; lean_object* x_179; uint8_t x_180; x_175 = lean_ctor_get(x_43, 0); x_176 = lean_ctor_get(x_43, 1); x_177 = lean_ctor_get(x_43, 2); x_178 = lean_ctor_get(x_43, 3); lean_inc(x_178); lean_inc(x_177); lean_inc(x_176); lean_inc(x_175); lean_dec(x_43); x_179 = lean_alloc_ctor(1, 4, 1); lean_ctor_set(x_179, 0, x_175); lean_ctor_set(x_179, 1, x_176); lean_ctor_set(x_179, 2, x_177); lean_ctor_set(x_179, 3, x_178); lean_ctor_set_uint8(x_179, sizeof(void*)*4, x_130); lean_ctor_set(x_41, 0, x_179); x_180 = 1; lean_ctor_set(x_1, 3, x_41); lean_ctor_set_uint8(x_1, sizeof(void*)*4, x_180); return x_1; } } else { lean_object* x_181; lean_object* x_182; lean_object* x_183; lean_object* x_184; lean_object* x_185; lean_object* x_186; lean_object* x_187; lean_object* x_188; lean_object* x_189; uint8_t x_190; x_181 = lean_ctor_get(x_41, 1); x_182 = lean_ctor_get(x_41, 2); lean_inc(x_182); lean_inc(x_181); lean_dec(x_41); x_183 = lean_ctor_get(x_43, 0); lean_inc(x_183); x_184 = lean_ctor_get(x_43, 1); lean_inc(x_184); x_185 = lean_ctor_get(x_43, 2); lean_inc(x_185); x_186 = lean_ctor_get(x_43, 3); lean_inc(x_186); if (lean_is_exclusive(x_43)) { lean_ctor_release(x_43, 0); lean_ctor_release(x_43, 1); lean_ctor_release(x_43, 2); lean_ctor_release(x_43, 3); x_187 = x_43; } else { lean_dec_ref(x_43); x_187 = lean_box(0); } if (lean_is_scalar(x_187)) { x_188 = lean_alloc_ctor(1, 4, 1); } else { x_188 = x_187; } lean_ctor_set(x_188, 0, x_183); lean_ctor_set(x_188, 1, x_184); lean_ctor_set(x_188, 2, x_185); lean_ctor_set(x_188, 3, x_186); lean_ctor_set_uint8(x_188, sizeof(void*)*4, x_130); x_189 = lean_alloc_ctor(1, 4, 1); lean_ctor_set(x_189, 0, x_188); lean_ctor_set(x_189, 1, x_181); lean_ctor_set(x_189, 2, x_182); lean_ctor_set(x_189, 3, x_121); lean_ctor_set_uint8(x_189, sizeof(void*)*4, x_42); x_190 = 1; lean_ctor_set(x_1, 3, x_189); lean_ctor_set_uint8(x_1, sizeof(void*)*4, x_190); return x_1; } } } } } } else { uint8_t x_191; x_191 = 1; lean_ctor_set(x_1, 3, x_41); lean_ctor_set_uint8(x_1, sizeof(void*)*4, x_191); return x_1; } } else { uint8_t x_192; lean_dec(x_37); lean_dec(x_36); x_192 = 1; lean_ctor_set(x_1, 2, x_3); lean_ctor_set(x_1, 1, x_2); lean_ctor_set_uint8(x_1, sizeof(void*)*4, x_192); return x_1; } } else { lean_object* x_193; uint8_t x_194; x_193 = l_Lean_RBNode_ins___at___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonWorkspaceEdit____x40_Lean_Data_Lsp_Basic___hyg_4660____spec__3(x_35, x_2, x_3); x_194 = lean_ctor_get_uint8(x_193, sizeof(void*)*4); if (x_194 == 0) { lean_object* x_195; x_195 = lean_ctor_get(x_193, 0); lean_inc(x_195); if (lean_obj_tag(x_195) == 0) { lean_object* x_196; x_196 = lean_ctor_get(x_193, 3); lean_inc(x_196); if (lean_obj_tag(x_196) == 0) { uint8_t x_197; x_197 = !lean_is_exclusive(x_193); if (x_197 == 0) { lean_object* x_198; lean_object* x_199; uint8_t x_200; x_198 = lean_ctor_get(x_193, 3); lean_dec(x_198); x_199 = lean_ctor_get(x_193, 0); lean_dec(x_199); lean_ctor_set(x_193, 0, x_196); x_200 = 1; lean_ctor_set(x_1, 0, x_193); lean_ctor_set_uint8(x_1, sizeof(void*)*4, x_200); return x_1; } else { lean_object* x_201; lean_object* x_202; lean_object* x_203; uint8_t x_204; x_201 = lean_ctor_get(x_193, 1); x_202 = lean_ctor_get(x_193, 2); lean_inc(x_202); lean_inc(x_201); lean_dec(x_193); x_203 = lean_alloc_ctor(1, 4, 1); lean_ctor_set(x_203, 0, x_196); lean_ctor_set(x_203, 1, x_201); lean_ctor_set(x_203, 2, x_202); lean_ctor_set(x_203, 3, x_196); lean_ctor_set_uint8(x_203, sizeof(void*)*4, x_194); x_204 = 1; lean_ctor_set(x_1, 0, x_203); lean_ctor_set_uint8(x_1, sizeof(void*)*4, x_204); return x_1; } } else { uint8_t x_205; x_205 = lean_ctor_get_uint8(x_196, sizeof(void*)*4); if (x_205 == 0) { uint8_t x_206; x_206 = !lean_is_exclusive(x_193); if (x_206 == 0) { lean_object* x_207; lean_object* x_208; lean_object* x_209; lean_object* x_210; uint8_t x_211; x_207 = lean_ctor_get(x_193, 1); x_208 = lean_ctor_get(x_193, 2); x_209 = lean_ctor_get(x_193, 3); lean_dec(x_209); x_210 = lean_ctor_get(x_193, 0); lean_dec(x_210); x_211 = !lean_is_exclusive(x_196); if (x_211 == 0) { lean_object* x_212; lean_object* x_213; lean_object* x_214; lean_object* x_215; uint8_t x_216; uint8_t x_217; x_212 = lean_ctor_get(x_196, 0); x_213 = lean_ctor_get(x_196, 1); x_214 = lean_ctor_get(x_196, 2); x_215 = lean_ctor_get(x_196, 3); x_216 = 1; lean_ctor_set(x_196, 3, x_212); lean_ctor_set(x_196, 2, x_208); lean_ctor_set(x_196, 1, x_207); lean_ctor_set(x_196, 0, x_195); lean_ctor_set_uint8(x_196, sizeof(void*)*4, x_216); lean_ctor_set(x_193, 3, x_38); lean_ctor_set(x_193, 2, x_37); lean_ctor_set(x_193, 1, x_36); lean_ctor_set(x_193, 0, x_215); lean_ctor_set_uint8(x_193, sizeof(void*)*4, x_216); x_217 = 0; lean_ctor_set(x_1, 3, x_193); lean_ctor_set(x_1, 2, x_214); lean_ctor_set(x_1, 1, x_213); lean_ctor_set(x_1, 0, x_196); lean_ctor_set_uint8(x_1, sizeof(void*)*4, x_217); return x_1; } else { lean_object* x_218; lean_object* x_219; lean_object* x_220; lean_object* x_221; uint8_t x_222; lean_object* x_223; uint8_t x_224; x_218 = lean_ctor_get(x_196, 0); x_219 = lean_ctor_get(x_196, 1); x_220 = lean_ctor_get(x_196, 2); x_221 = lean_ctor_get(x_196, 3); lean_inc(x_221); lean_inc(x_220); lean_inc(x_219); lean_inc(x_218); lean_dec(x_196); x_222 = 1; x_223 = lean_alloc_ctor(1, 4, 1); lean_ctor_set(x_223, 0, x_195); lean_ctor_set(x_223, 1, x_207); lean_ctor_set(x_223, 2, x_208); lean_ctor_set(x_223, 3, x_218); lean_ctor_set_uint8(x_223, sizeof(void*)*4, x_222); lean_ctor_set(x_193, 3, x_38); lean_ctor_set(x_193, 2, x_37); lean_ctor_set(x_193, 1, x_36); lean_ctor_set(x_193, 0, x_221); lean_ctor_set_uint8(x_193, sizeof(void*)*4, x_222); x_224 = 0; lean_ctor_set(x_1, 3, x_193); lean_ctor_set(x_1, 2, x_220); lean_ctor_set(x_1, 1, x_219); lean_ctor_set(x_1, 0, x_223); lean_ctor_set_uint8(x_1, sizeof(void*)*4, x_224); return x_1; } } else { lean_object* x_225; lean_object* x_226; lean_object* x_227; lean_object* x_228; lean_object* x_229; lean_object* x_230; lean_object* x_231; uint8_t x_232; lean_object* x_233; lean_object* x_234; uint8_t x_235; x_225 = lean_ctor_get(x_193, 1); x_226 = lean_ctor_get(x_193, 2); lean_inc(x_226); lean_inc(x_225); lean_dec(x_193); x_227 = lean_ctor_get(x_196, 0); lean_inc(x_227); x_228 = lean_ctor_get(x_196, 1); lean_inc(x_228); x_229 = lean_ctor_get(x_196, 2); lean_inc(x_229); x_230 = lean_ctor_get(x_196, 3); lean_inc(x_230); if (lean_is_exclusive(x_196)) { lean_ctor_release(x_196, 0); lean_ctor_release(x_196, 1); lean_ctor_release(x_196, 2); lean_ctor_release(x_196, 3); x_231 = x_196; } else { lean_dec_ref(x_196); x_231 = lean_box(0); } x_232 = 1; if (lean_is_scalar(x_231)) { x_233 = lean_alloc_ctor(1, 4, 1); } else { x_233 = x_231; } lean_ctor_set(x_233, 0, x_195); lean_ctor_set(x_233, 1, x_225); lean_ctor_set(x_233, 2, x_226); lean_ctor_set(x_233, 3, x_227); lean_ctor_set_uint8(x_233, sizeof(void*)*4, x_232); x_234 = lean_alloc_ctor(1, 4, 1); lean_ctor_set(x_234, 0, x_230); lean_ctor_set(x_234, 1, x_36); lean_ctor_set(x_234, 2, x_37); lean_ctor_set(x_234, 3, x_38); lean_ctor_set_uint8(x_234, sizeof(void*)*4, x_232); x_235 = 0; lean_ctor_set(x_1, 3, x_234); lean_ctor_set(x_1, 2, x_229); lean_ctor_set(x_1, 1, x_228); lean_ctor_set(x_1, 0, x_233); lean_ctor_set_uint8(x_1, sizeof(void*)*4, x_235); return x_1; } } else { uint8_t x_236; lean_free_object(x_1); x_236 = !lean_is_exclusive(x_196); if (x_236 == 0) { lean_object* x_237; lean_object* x_238; lean_object* x_239; lean_object* x_240; uint8_t x_241; x_237 = lean_ctor_get(x_196, 3); lean_dec(x_237); x_238 = lean_ctor_get(x_196, 2); lean_dec(x_238); x_239 = lean_ctor_get(x_196, 1); lean_dec(x_239); x_240 = lean_ctor_get(x_196, 0); lean_dec(x_240); x_241 = 1; lean_ctor_set(x_196, 3, x_38); lean_ctor_set(x_196, 2, x_37); lean_ctor_set(x_196, 1, x_36); lean_ctor_set(x_196, 0, x_193); lean_ctor_set_uint8(x_196, sizeof(void*)*4, x_241); return x_196; } else { uint8_t x_242; lean_object* x_243; lean_dec(x_196); x_242 = 1; x_243 = lean_alloc_ctor(1, 4, 1); lean_ctor_set(x_243, 0, x_193); lean_ctor_set(x_243, 1, x_36); lean_ctor_set(x_243, 2, x_37); lean_ctor_set(x_243, 3, x_38); lean_ctor_set_uint8(x_243, sizeof(void*)*4, x_242); return x_243; } } } } else { uint8_t x_244; x_244 = lean_ctor_get_uint8(x_195, sizeof(void*)*4); if (x_244 == 0) { uint8_t x_245; x_245 = !lean_is_exclusive(x_193); if (x_245 == 0) { lean_object* x_246; lean_object* x_247; lean_object* x_248; lean_object* x_249; uint8_t x_250; x_246 = lean_ctor_get(x_193, 1); x_247 = lean_ctor_get(x_193, 2); x_248 = lean_ctor_get(x_193, 3); x_249 = lean_ctor_get(x_193, 0); lean_dec(x_249); x_250 = !lean_is_exclusive(x_195); if (x_250 == 0) { uint8_t x_251; uint8_t x_252; x_251 = 1; lean_ctor_set_uint8(x_195, sizeof(void*)*4, x_251); lean_ctor_set(x_193, 3, x_38); lean_ctor_set(x_193, 2, x_37); lean_ctor_set(x_193, 1, x_36); lean_ctor_set(x_193, 0, x_248); lean_ctor_set_uint8(x_193, sizeof(void*)*4, x_251); x_252 = 0; lean_ctor_set(x_1, 3, x_193); lean_ctor_set(x_1, 2, x_247); lean_ctor_set(x_1, 1, x_246); lean_ctor_set(x_1, 0, x_195); lean_ctor_set_uint8(x_1, sizeof(void*)*4, x_252); return x_1; } else { lean_object* x_253; lean_object* x_254; lean_object* x_255; lean_object* x_256; uint8_t x_257; lean_object* x_258; uint8_t x_259; x_253 = lean_ctor_get(x_195, 0); x_254 = lean_ctor_get(x_195, 1); x_255 = lean_ctor_get(x_195, 2); x_256 = lean_ctor_get(x_195, 3); lean_inc(x_256); lean_inc(x_255); lean_inc(x_254); lean_inc(x_253); lean_dec(x_195); x_257 = 1; x_258 = lean_alloc_ctor(1, 4, 1); lean_ctor_set(x_258, 0, x_253); lean_ctor_set(x_258, 1, x_254); lean_ctor_set(x_258, 2, x_255); lean_ctor_set(x_258, 3, x_256); lean_ctor_set_uint8(x_258, sizeof(void*)*4, x_257); lean_ctor_set(x_193, 3, x_38); lean_ctor_set(x_193, 2, x_37); lean_ctor_set(x_193, 1, x_36); lean_ctor_set(x_193, 0, x_248); lean_ctor_set_uint8(x_193, sizeof(void*)*4, x_257); x_259 = 0; lean_ctor_set(x_1, 3, x_193); lean_ctor_set(x_1, 2, x_247); lean_ctor_set(x_1, 1, x_246); lean_ctor_set(x_1, 0, x_258); lean_ctor_set_uint8(x_1, sizeof(void*)*4, x_259); return x_1; } } else { lean_object* x_260; lean_object* x_261; lean_object* x_262; lean_object* x_263; lean_object* x_264; lean_object* x_265; lean_object* x_266; lean_object* x_267; uint8_t x_268; lean_object* x_269; lean_object* x_270; uint8_t x_271; x_260 = lean_ctor_get(x_193, 1); x_261 = lean_ctor_get(x_193, 2); x_262 = lean_ctor_get(x_193, 3); lean_inc(x_262); lean_inc(x_261); lean_inc(x_260); lean_dec(x_193); x_263 = lean_ctor_get(x_195, 0); lean_inc(x_263); x_264 = lean_ctor_get(x_195, 1); lean_inc(x_264); x_265 = lean_ctor_get(x_195, 2); lean_inc(x_265); x_266 = lean_ctor_get(x_195, 3); lean_inc(x_266); if (lean_is_exclusive(x_195)) { lean_ctor_release(x_195, 0); lean_ctor_release(x_195, 1); lean_ctor_release(x_195, 2); lean_ctor_release(x_195, 3); x_267 = x_195; } else { lean_dec_ref(x_195); x_267 = lean_box(0); } x_268 = 1; if (lean_is_scalar(x_267)) { x_269 = lean_alloc_ctor(1, 4, 1); } else { x_269 = x_267; } lean_ctor_set(x_269, 0, x_263); lean_ctor_set(x_269, 1, x_264); lean_ctor_set(x_269, 2, x_265); lean_ctor_set(x_269, 3, x_266); lean_ctor_set_uint8(x_269, sizeof(void*)*4, x_268); x_270 = lean_alloc_ctor(1, 4, 1); lean_ctor_set(x_270, 0, x_262); lean_ctor_set(x_270, 1, x_36); lean_ctor_set(x_270, 2, x_37); lean_ctor_set(x_270, 3, x_38); lean_ctor_set_uint8(x_270, sizeof(void*)*4, x_268); x_271 = 0; lean_ctor_set(x_1, 3, x_270); lean_ctor_set(x_1, 2, x_261); lean_ctor_set(x_1, 1, x_260); lean_ctor_set(x_1, 0, x_269); lean_ctor_set_uint8(x_1, sizeof(void*)*4, x_271); return x_1; } } else { lean_object* x_272; x_272 = lean_ctor_get(x_193, 3); lean_inc(x_272); if (lean_obj_tag(x_272) == 0) { uint8_t x_273; lean_free_object(x_1); x_273 = !lean_is_exclusive(x_195); if (x_273 == 0) { lean_object* x_274; lean_object* x_275; lean_object* x_276; lean_object* x_277; uint8_t x_278; x_274 = lean_ctor_get(x_195, 3); lean_dec(x_274); x_275 = lean_ctor_get(x_195, 2); lean_dec(x_275); x_276 = lean_ctor_get(x_195, 1); lean_dec(x_276); x_277 = lean_ctor_get(x_195, 0); lean_dec(x_277); x_278 = 1; lean_ctor_set(x_195, 3, x_38); lean_ctor_set(x_195, 2, x_37); lean_ctor_set(x_195, 1, x_36); lean_ctor_set(x_195, 0, x_193); lean_ctor_set_uint8(x_195, sizeof(void*)*4, x_278); return x_195; } else { uint8_t x_279; lean_object* x_280; lean_dec(x_195); x_279 = 1; x_280 = lean_alloc_ctor(1, 4, 1); lean_ctor_set(x_280, 0, x_193); lean_ctor_set(x_280, 1, x_36); lean_ctor_set(x_280, 2, x_37); lean_ctor_set(x_280, 3, x_38); lean_ctor_set_uint8(x_280, sizeof(void*)*4, x_279); return x_280; } } else { uint8_t x_281; x_281 = lean_ctor_get_uint8(x_272, sizeof(void*)*4); if (x_281 == 0) { uint8_t x_282; lean_free_object(x_1); x_282 = !lean_is_exclusive(x_193); if (x_282 == 0) { lean_object* x_283; lean_object* x_284; lean_object* x_285; lean_object* x_286; uint8_t x_287; x_283 = lean_ctor_get(x_193, 1); x_284 = lean_ctor_get(x_193, 2); x_285 = lean_ctor_get(x_193, 3); lean_dec(x_285); x_286 = lean_ctor_get(x_193, 0); lean_dec(x_286); x_287 = !lean_is_exclusive(x_272); if (x_287 == 0) { lean_object* x_288; lean_object* x_289; lean_object* x_290; lean_object* x_291; uint8_t x_292; uint8_t x_293; x_288 = lean_ctor_get(x_272, 0); x_289 = lean_ctor_get(x_272, 1); x_290 = lean_ctor_get(x_272, 2); x_291 = lean_ctor_get(x_272, 3); x_292 = 1; lean_inc(x_195); lean_ctor_set(x_272, 3, x_288); lean_ctor_set(x_272, 2, x_284); lean_ctor_set(x_272, 1, x_283); lean_ctor_set(x_272, 0, x_195); x_293 = !lean_is_exclusive(x_195); if (x_293 == 0) { lean_object* x_294; lean_object* x_295; lean_object* x_296; lean_object* x_297; uint8_t x_298; x_294 = lean_ctor_get(x_195, 3); lean_dec(x_294); x_295 = lean_ctor_get(x_195, 2); lean_dec(x_295); x_296 = lean_ctor_get(x_195, 1); lean_dec(x_296); x_297 = lean_ctor_get(x_195, 0); lean_dec(x_297); lean_ctor_set_uint8(x_272, sizeof(void*)*4, x_292); lean_ctor_set(x_195, 3, x_38); lean_ctor_set(x_195, 2, x_37); lean_ctor_set(x_195, 1, x_36); lean_ctor_set(x_195, 0, x_291); lean_ctor_set_uint8(x_195, sizeof(void*)*4, x_292); x_298 = 0; lean_ctor_set(x_193, 3, x_195); lean_ctor_set(x_193, 2, x_290); lean_ctor_set(x_193, 1, x_289); lean_ctor_set(x_193, 0, x_272); lean_ctor_set_uint8(x_193, sizeof(void*)*4, x_298); return x_193; } else { lean_object* x_299; uint8_t x_300; lean_dec(x_195); lean_ctor_set_uint8(x_272, sizeof(void*)*4, x_292); x_299 = lean_alloc_ctor(1, 4, 1); lean_ctor_set(x_299, 0, x_291); lean_ctor_set(x_299, 1, x_36); lean_ctor_set(x_299, 2, x_37); lean_ctor_set(x_299, 3, x_38); lean_ctor_set_uint8(x_299, sizeof(void*)*4, x_292); x_300 = 0; lean_ctor_set(x_193, 3, x_299); lean_ctor_set(x_193, 2, x_290); lean_ctor_set(x_193, 1, x_289); lean_ctor_set(x_193, 0, x_272); lean_ctor_set_uint8(x_193, sizeof(void*)*4, x_300); return x_193; } } else { lean_object* x_301; lean_object* x_302; lean_object* x_303; lean_object* x_304; uint8_t x_305; lean_object* x_306; lean_object* x_307; lean_object* x_308; uint8_t x_309; x_301 = lean_ctor_get(x_272, 0); x_302 = lean_ctor_get(x_272, 1); x_303 = lean_ctor_get(x_272, 2); x_304 = lean_ctor_get(x_272, 3); lean_inc(x_304); lean_inc(x_303); lean_inc(x_302); lean_inc(x_301); lean_dec(x_272); x_305 = 1; lean_inc(x_195); x_306 = lean_alloc_ctor(1, 4, 1); lean_ctor_set(x_306, 0, x_195); lean_ctor_set(x_306, 1, x_283); lean_ctor_set(x_306, 2, x_284); lean_ctor_set(x_306, 3, x_301); if (lean_is_exclusive(x_195)) { lean_ctor_release(x_195, 0); lean_ctor_release(x_195, 1); lean_ctor_release(x_195, 2); lean_ctor_release(x_195, 3); x_307 = x_195; } else { lean_dec_ref(x_195); x_307 = lean_box(0); } lean_ctor_set_uint8(x_306, sizeof(void*)*4, x_305); if (lean_is_scalar(x_307)) { x_308 = lean_alloc_ctor(1, 4, 1); } else { x_308 = x_307; } lean_ctor_set(x_308, 0, x_304); lean_ctor_set(x_308, 1, x_36); lean_ctor_set(x_308, 2, x_37); lean_ctor_set(x_308, 3, x_38); lean_ctor_set_uint8(x_308, sizeof(void*)*4, x_305); x_309 = 0; lean_ctor_set(x_193, 3, x_308); lean_ctor_set(x_193, 2, x_303); lean_ctor_set(x_193, 1, x_302); lean_ctor_set(x_193, 0, x_306); lean_ctor_set_uint8(x_193, sizeof(void*)*4, x_309); return x_193; } } else { lean_object* x_310; lean_object* x_311; lean_object* x_312; lean_object* x_313; lean_object* x_314; lean_object* x_315; lean_object* x_316; uint8_t x_317; lean_object* x_318; lean_object* x_319; lean_object* x_320; uint8_t x_321; lean_object* x_322; x_310 = lean_ctor_get(x_193, 1); x_311 = lean_ctor_get(x_193, 2); lean_inc(x_311); lean_inc(x_310); lean_dec(x_193); x_312 = lean_ctor_get(x_272, 0); lean_inc(x_312); x_313 = lean_ctor_get(x_272, 1); lean_inc(x_313); x_314 = lean_ctor_get(x_272, 2); lean_inc(x_314); x_315 = lean_ctor_get(x_272, 3); lean_inc(x_315); if (lean_is_exclusive(x_272)) { lean_ctor_release(x_272, 0); lean_ctor_release(x_272, 1); lean_ctor_release(x_272, 2); lean_ctor_release(x_272, 3); x_316 = x_272; } else { lean_dec_ref(x_272); x_316 = lean_box(0); } x_317 = 1; lean_inc(x_195); if (lean_is_scalar(x_316)) { x_318 = lean_alloc_ctor(1, 4, 1); } else { x_318 = x_316; } lean_ctor_set(x_318, 0, x_195); lean_ctor_set(x_318, 1, x_310); lean_ctor_set(x_318, 2, x_311); lean_ctor_set(x_318, 3, x_312); if (lean_is_exclusive(x_195)) { lean_ctor_release(x_195, 0); lean_ctor_release(x_195, 1); lean_ctor_release(x_195, 2); lean_ctor_release(x_195, 3); x_319 = x_195; } else { lean_dec_ref(x_195); x_319 = lean_box(0); } lean_ctor_set_uint8(x_318, sizeof(void*)*4, x_317); if (lean_is_scalar(x_319)) { x_320 = lean_alloc_ctor(1, 4, 1); } else { x_320 = x_319; } lean_ctor_set(x_320, 0, x_315); lean_ctor_set(x_320, 1, x_36); lean_ctor_set(x_320, 2, x_37); lean_ctor_set(x_320, 3, x_38); lean_ctor_set_uint8(x_320, sizeof(void*)*4, x_317); x_321 = 0; x_322 = lean_alloc_ctor(1, 4, 1); lean_ctor_set(x_322, 0, x_318); lean_ctor_set(x_322, 1, x_313); lean_ctor_set(x_322, 2, x_314); lean_ctor_set(x_322, 3, x_320); lean_ctor_set_uint8(x_322, sizeof(void*)*4, x_321); return x_322; } } else { uint8_t x_323; x_323 = !lean_is_exclusive(x_193); if (x_323 == 0) { lean_object* x_324; lean_object* x_325; uint8_t x_326; x_324 = lean_ctor_get(x_193, 3); lean_dec(x_324); x_325 = lean_ctor_get(x_193, 0); lean_dec(x_325); x_326 = !lean_is_exclusive(x_195); if (x_326 == 0) { uint8_t x_327; lean_ctor_set_uint8(x_195, sizeof(void*)*4, x_281); x_327 = 1; lean_ctor_set(x_1, 0, x_193); lean_ctor_set_uint8(x_1, sizeof(void*)*4, x_327); return x_1; } else { lean_object* x_328; lean_object* x_329; lean_object* x_330; lean_object* x_331; lean_object* x_332; uint8_t x_333; x_328 = lean_ctor_get(x_195, 0); x_329 = lean_ctor_get(x_195, 1); x_330 = lean_ctor_get(x_195, 2); x_331 = lean_ctor_get(x_195, 3); lean_inc(x_331); lean_inc(x_330); lean_inc(x_329); lean_inc(x_328); lean_dec(x_195); x_332 = lean_alloc_ctor(1, 4, 1); lean_ctor_set(x_332, 0, x_328); lean_ctor_set(x_332, 1, x_329); lean_ctor_set(x_332, 2, x_330); lean_ctor_set(x_332, 3, x_331); lean_ctor_set_uint8(x_332, sizeof(void*)*4, x_281); lean_ctor_set(x_193, 0, x_332); x_333 = 1; lean_ctor_set(x_1, 0, x_193); lean_ctor_set_uint8(x_1, sizeof(void*)*4, x_333); return x_1; } } else { lean_object* x_334; lean_object* x_335; lean_object* x_336; lean_object* x_337; lean_object* x_338; lean_object* x_339; lean_object* x_340; lean_object* x_341; lean_object* x_342; uint8_t x_343; x_334 = lean_ctor_get(x_193, 1); x_335 = lean_ctor_get(x_193, 2); lean_inc(x_335); lean_inc(x_334); lean_dec(x_193); x_336 = lean_ctor_get(x_195, 0); lean_inc(x_336); x_337 = lean_ctor_get(x_195, 1); lean_inc(x_337); x_338 = lean_ctor_get(x_195, 2); lean_inc(x_338); x_339 = lean_ctor_get(x_195, 3); lean_inc(x_339); if (lean_is_exclusive(x_195)) { lean_ctor_release(x_195, 0); lean_ctor_release(x_195, 1); lean_ctor_release(x_195, 2); lean_ctor_release(x_195, 3); x_340 = x_195; } else { lean_dec_ref(x_195); x_340 = lean_box(0); } if (lean_is_scalar(x_340)) { x_341 = lean_alloc_ctor(1, 4, 1); } else { x_341 = x_340; } lean_ctor_set(x_341, 0, x_336); lean_ctor_set(x_341, 1, x_337); lean_ctor_set(x_341, 2, x_338); lean_ctor_set(x_341, 3, x_339); lean_ctor_set_uint8(x_341, sizeof(void*)*4, x_281); x_342 = lean_alloc_ctor(1, 4, 1); lean_ctor_set(x_342, 0, x_341); lean_ctor_set(x_342, 1, x_334); lean_ctor_set(x_342, 2, x_335); lean_ctor_set(x_342, 3, x_272); lean_ctor_set_uint8(x_342, sizeof(void*)*4, x_194); x_343 = 1; lean_ctor_set(x_1, 0, x_342); lean_ctor_set_uint8(x_1, sizeof(void*)*4, x_343); return x_1; } } } } } } else { uint8_t x_344; x_344 = 1; lean_ctor_set(x_1, 0, x_193); lean_ctor_set_uint8(x_1, sizeof(void*)*4, x_344); return x_1; } } } else { lean_object* x_345; lean_object* x_346; lean_object* x_347; lean_object* x_348; uint8_t x_349; x_345 = lean_ctor_get(x_1, 0); x_346 = lean_ctor_get(x_1, 1); x_347 = lean_ctor_get(x_1, 2); x_348 = lean_ctor_get(x_1, 3); lean_inc(x_348); lean_inc(x_347); lean_inc(x_346); lean_inc(x_345); lean_dec(x_1); x_349 = lean_string_dec_lt(x_2, x_346); if (x_349 == 0) { uint8_t x_350; x_350 = lean_string_dec_eq(x_2, x_346); if (x_350 == 0) { lean_object* x_351; uint8_t x_352; x_351 = l_Lean_RBNode_ins___at___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonWorkspaceEdit____x40_Lean_Data_Lsp_Basic___hyg_4660____spec__3(x_348, x_2, x_3); x_352 = lean_ctor_get_uint8(x_351, sizeof(void*)*4); if (x_352 == 0) { lean_object* x_353; x_353 = lean_ctor_get(x_351, 0); lean_inc(x_353); if (lean_obj_tag(x_353) == 0) { lean_object* x_354; x_354 = lean_ctor_get(x_351, 3); lean_inc(x_354); if (lean_obj_tag(x_354) == 0) { lean_object* x_355; lean_object* x_356; lean_object* x_357; lean_object* x_358; uint8_t x_359; lean_object* x_360; x_355 = lean_ctor_get(x_351, 1); lean_inc(x_355); x_356 = lean_ctor_get(x_351, 2); lean_inc(x_356); if (lean_is_exclusive(x_351)) { lean_ctor_release(x_351, 0); lean_ctor_release(x_351, 1); lean_ctor_release(x_351, 2); lean_ctor_release(x_351, 3); x_357 = x_351; } else { lean_dec_ref(x_351); x_357 = lean_box(0); } if (lean_is_scalar(x_357)) { x_358 = lean_alloc_ctor(1, 4, 1); } else { x_358 = x_357; } lean_ctor_set(x_358, 0, x_354); lean_ctor_set(x_358, 1, x_355); lean_ctor_set(x_358, 2, x_356); lean_ctor_set(x_358, 3, x_354); lean_ctor_set_uint8(x_358, sizeof(void*)*4, x_352); x_359 = 1; x_360 = lean_alloc_ctor(1, 4, 1); lean_ctor_set(x_360, 0, x_345); lean_ctor_set(x_360, 1, x_346); lean_ctor_set(x_360, 2, x_347); lean_ctor_set(x_360, 3, x_358); lean_ctor_set_uint8(x_360, sizeof(void*)*4, x_359); return x_360; } else { uint8_t x_361; x_361 = lean_ctor_get_uint8(x_354, sizeof(void*)*4); if (x_361 == 0) { lean_object* x_362; lean_object* x_363; lean_object* x_364; lean_object* x_365; lean_object* x_366; lean_object* x_367; lean_object* x_368; lean_object* x_369; uint8_t x_370; lean_object* x_371; lean_object* x_372; uint8_t x_373; lean_object* x_374; x_362 = lean_ctor_get(x_351, 1); lean_inc(x_362); x_363 = lean_ctor_get(x_351, 2); lean_inc(x_363); if (lean_is_exclusive(x_351)) { lean_ctor_release(x_351, 0); lean_ctor_release(x_351, 1); lean_ctor_release(x_351, 2); lean_ctor_release(x_351, 3); x_364 = x_351; } else { lean_dec_ref(x_351); x_364 = lean_box(0); } x_365 = lean_ctor_get(x_354, 0); lean_inc(x_365); x_366 = lean_ctor_get(x_354, 1); lean_inc(x_366); x_367 = lean_ctor_get(x_354, 2); lean_inc(x_367); x_368 = lean_ctor_get(x_354, 3); lean_inc(x_368); if (lean_is_exclusive(x_354)) { lean_ctor_release(x_354, 0); lean_ctor_release(x_354, 1); lean_ctor_release(x_354, 2); lean_ctor_release(x_354, 3); x_369 = x_354; } else { lean_dec_ref(x_354); x_369 = lean_box(0); } x_370 = 1; if (lean_is_scalar(x_369)) { x_371 = lean_alloc_ctor(1, 4, 1); } else { x_371 = x_369; } lean_ctor_set(x_371, 0, x_345); lean_ctor_set(x_371, 1, x_346); lean_ctor_set(x_371, 2, x_347); lean_ctor_set(x_371, 3, x_353); lean_ctor_set_uint8(x_371, sizeof(void*)*4, x_370); if (lean_is_scalar(x_364)) { x_372 = lean_alloc_ctor(1, 4, 1); } else { x_372 = x_364; } lean_ctor_set(x_372, 0, x_365); lean_ctor_set(x_372, 1, x_366); lean_ctor_set(x_372, 2, x_367); lean_ctor_set(x_372, 3, x_368); lean_ctor_set_uint8(x_372, sizeof(void*)*4, x_370); x_373 = 0; x_374 = lean_alloc_ctor(1, 4, 1); lean_ctor_set(x_374, 0, x_371); lean_ctor_set(x_374, 1, x_362); lean_ctor_set(x_374, 2, x_363); lean_ctor_set(x_374, 3, x_372); lean_ctor_set_uint8(x_374, sizeof(void*)*4, x_373); return x_374; } else { lean_object* x_375; uint8_t x_376; lean_object* x_377; if (lean_is_exclusive(x_354)) { lean_ctor_release(x_354, 0); lean_ctor_release(x_354, 1); lean_ctor_release(x_354, 2); lean_ctor_release(x_354, 3); x_375 = x_354; } else { lean_dec_ref(x_354); x_375 = lean_box(0); } x_376 = 1; if (lean_is_scalar(x_375)) { x_377 = lean_alloc_ctor(1, 4, 1); } else { x_377 = x_375; } lean_ctor_set(x_377, 0, x_345); lean_ctor_set(x_377, 1, x_346); lean_ctor_set(x_377, 2, x_347); lean_ctor_set(x_377, 3, x_351); lean_ctor_set_uint8(x_377, sizeof(void*)*4, x_376); return x_377; } } } else { uint8_t x_378; x_378 = lean_ctor_get_uint8(x_353, sizeof(void*)*4); if (x_378 == 0) { lean_object* x_379; lean_object* x_380; lean_object* x_381; lean_object* x_382; lean_object* x_383; lean_object* x_384; lean_object* x_385; lean_object* x_386; lean_object* x_387; uint8_t x_388; lean_object* x_389; lean_object* x_390; uint8_t x_391; lean_object* x_392; x_379 = lean_ctor_get(x_351, 1); lean_inc(x_379); x_380 = lean_ctor_get(x_351, 2); lean_inc(x_380); x_381 = lean_ctor_get(x_351, 3); lean_inc(x_381); if (lean_is_exclusive(x_351)) { lean_ctor_release(x_351, 0); lean_ctor_release(x_351, 1); lean_ctor_release(x_351, 2); lean_ctor_release(x_351, 3); x_382 = x_351; } else { lean_dec_ref(x_351); x_382 = lean_box(0); } x_383 = lean_ctor_get(x_353, 0); lean_inc(x_383); x_384 = lean_ctor_get(x_353, 1); lean_inc(x_384); x_385 = lean_ctor_get(x_353, 2); lean_inc(x_385); x_386 = lean_ctor_get(x_353, 3); lean_inc(x_386); if (lean_is_exclusive(x_353)) { lean_ctor_release(x_353, 0); lean_ctor_release(x_353, 1); lean_ctor_release(x_353, 2); lean_ctor_release(x_353, 3); x_387 = x_353; } else { lean_dec_ref(x_353); x_387 = lean_box(0); } x_388 = 1; if (lean_is_scalar(x_387)) { x_389 = lean_alloc_ctor(1, 4, 1); } else { x_389 = x_387; } lean_ctor_set(x_389, 0, x_345); lean_ctor_set(x_389, 1, x_346); lean_ctor_set(x_389, 2, x_347); lean_ctor_set(x_389, 3, x_383); lean_ctor_set_uint8(x_389, sizeof(void*)*4, x_388); if (lean_is_scalar(x_382)) { x_390 = lean_alloc_ctor(1, 4, 1); } else { x_390 = x_382; } lean_ctor_set(x_390, 0, x_386); lean_ctor_set(x_390, 1, x_379); lean_ctor_set(x_390, 2, x_380); lean_ctor_set(x_390, 3, x_381); lean_ctor_set_uint8(x_390, sizeof(void*)*4, x_388); x_391 = 0; x_392 = lean_alloc_ctor(1, 4, 1); lean_ctor_set(x_392, 0, x_389); lean_ctor_set(x_392, 1, x_384); lean_ctor_set(x_392, 2, x_385); lean_ctor_set(x_392, 3, x_390); lean_ctor_set_uint8(x_392, sizeof(void*)*4, x_391); return x_392; } else { lean_object* x_393; x_393 = lean_ctor_get(x_351, 3); lean_inc(x_393); if (lean_obj_tag(x_393) == 0) { lean_object* x_394; uint8_t x_395; lean_object* x_396; if (lean_is_exclusive(x_353)) { lean_ctor_release(x_353, 0); lean_ctor_release(x_353, 1); lean_ctor_release(x_353, 2); lean_ctor_release(x_353, 3); x_394 = x_353; } else { lean_dec_ref(x_353); x_394 = lean_box(0); } x_395 = 1; if (lean_is_scalar(x_394)) { x_396 = lean_alloc_ctor(1, 4, 1); } else { x_396 = x_394; } lean_ctor_set(x_396, 0, x_345); lean_ctor_set(x_396, 1, x_346); lean_ctor_set(x_396, 2, x_347); lean_ctor_set(x_396, 3, x_351); lean_ctor_set_uint8(x_396, sizeof(void*)*4, x_395); return x_396; } else { uint8_t x_397; x_397 = lean_ctor_get_uint8(x_393, sizeof(void*)*4); if (x_397 == 0) { lean_object* x_398; lean_object* x_399; lean_object* x_400; lean_object* x_401; lean_object* x_402; lean_object* x_403; lean_object* x_404; lean_object* x_405; uint8_t x_406; lean_object* x_407; lean_object* x_408; lean_object* x_409; uint8_t x_410; lean_object* x_411; x_398 = lean_ctor_get(x_351, 1); lean_inc(x_398); x_399 = lean_ctor_get(x_351, 2); lean_inc(x_399); if (lean_is_exclusive(x_351)) { lean_ctor_release(x_351, 0); lean_ctor_release(x_351, 1); lean_ctor_release(x_351, 2); lean_ctor_release(x_351, 3); x_400 = x_351; } else { lean_dec_ref(x_351); x_400 = lean_box(0); } x_401 = lean_ctor_get(x_393, 0); lean_inc(x_401); x_402 = lean_ctor_get(x_393, 1); lean_inc(x_402); x_403 = lean_ctor_get(x_393, 2); lean_inc(x_403); x_404 = lean_ctor_get(x_393, 3); lean_inc(x_404); if (lean_is_exclusive(x_393)) { lean_ctor_release(x_393, 0); lean_ctor_release(x_393, 1); lean_ctor_release(x_393, 2); lean_ctor_release(x_393, 3); x_405 = x_393; } else { lean_dec_ref(x_393); x_405 = lean_box(0); } x_406 = 1; lean_inc(x_353); if (lean_is_scalar(x_405)) { x_407 = lean_alloc_ctor(1, 4, 1); } else { x_407 = x_405; } lean_ctor_set(x_407, 0, x_345); lean_ctor_set(x_407, 1, x_346); lean_ctor_set(x_407, 2, x_347); lean_ctor_set(x_407, 3, x_353); if (lean_is_exclusive(x_353)) { lean_ctor_release(x_353, 0); lean_ctor_release(x_353, 1); lean_ctor_release(x_353, 2); lean_ctor_release(x_353, 3); x_408 = x_353; } else { lean_dec_ref(x_353); x_408 = lean_box(0); } lean_ctor_set_uint8(x_407, sizeof(void*)*4, x_406); if (lean_is_scalar(x_408)) { x_409 = lean_alloc_ctor(1, 4, 1); } else { x_409 = x_408; } lean_ctor_set(x_409, 0, x_401); lean_ctor_set(x_409, 1, x_402); lean_ctor_set(x_409, 2, x_403); lean_ctor_set(x_409, 3, x_404); lean_ctor_set_uint8(x_409, sizeof(void*)*4, x_406); x_410 = 0; if (lean_is_scalar(x_400)) { x_411 = lean_alloc_ctor(1, 4, 1); } else { x_411 = x_400; } lean_ctor_set(x_411, 0, x_407); lean_ctor_set(x_411, 1, x_398); lean_ctor_set(x_411, 2, x_399); lean_ctor_set(x_411, 3, x_409); lean_ctor_set_uint8(x_411, sizeof(void*)*4, x_410); return x_411; } else { lean_object* x_412; lean_object* x_413; lean_object* x_414; lean_object* x_415; lean_object* x_416; lean_object* x_417; lean_object* x_418; lean_object* x_419; lean_object* x_420; lean_object* x_421; uint8_t x_422; lean_object* x_423; x_412 = lean_ctor_get(x_351, 1); lean_inc(x_412); x_413 = lean_ctor_get(x_351, 2); lean_inc(x_413); if (lean_is_exclusive(x_351)) { lean_ctor_release(x_351, 0); lean_ctor_release(x_351, 1); lean_ctor_release(x_351, 2); lean_ctor_release(x_351, 3); x_414 = x_351; } else { lean_dec_ref(x_351); x_414 = lean_box(0); } x_415 = lean_ctor_get(x_353, 0); lean_inc(x_415); x_416 = lean_ctor_get(x_353, 1); lean_inc(x_416); x_417 = lean_ctor_get(x_353, 2); lean_inc(x_417); x_418 = lean_ctor_get(x_353, 3); lean_inc(x_418); if (lean_is_exclusive(x_353)) { lean_ctor_release(x_353, 0); lean_ctor_release(x_353, 1); lean_ctor_release(x_353, 2); lean_ctor_release(x_353, 3); x_419 = x_353; } else { lean_dec_ref(x_353); x_419 = lean_box(0); } if (lean_is_scalar(x_419)) { x_420 = lean_alloc_ctor(1, 4, 1); } else { x_420 = x_419; } lean_ctor_set(x_420, 0, x_415); lean_ctor_set(x_420, 1, x_416); lean_ctor_set(x_420, 2, x_417); lean_ctor_set(x_420, 3, x_418); lean_ctor_set_uint8(x_420, sizeof(void*)*4, x_397); if (lean_is_scalar(x_414)) { x_421 = lean_alloc_ctor(1, 4, 1); } else { x_421 = x_414; } lean_ctor_set(x_421, 0, x_420); lean_ctor_set(x_421, 1, x_412); lean_ctor_set(x_421, 2, x_413); lean_ctor_set(x_421, 3, x_393); lean_ctor_set_uint8(x_421, sizeof(void*)*4, x_352); x_422 = 1; x_423 = lean_alloc_ctor(1, 4, 1); lean_ctor_set(x_423, 0, x_345); lean_ctor_set(x_423, 1, x_346); lean_ctor_set(x_423, 2, x_347); lean_ctor_set(x_423, 3, x_421); lean_ctor_set_uint8(x_423, sizeof(void*)*4, x_422); return x_423; } } } } } else { uint8_t x_424; lean_object* x_425; x_424 = 1; x_425 = lean_alloc_ctor(1, 4, 1); lean_ctor_set(x_425, 0, x_345); lean_ctor_set(x_425, 1, x_346); lean_ctor_set(x_425, 2, x_347); lean_ctor_set(x_425, 3, x_351); lean_ctor_set_uint8(x_425, sizeof(void*)*4, x_424); return x_425; } } else { uint8_t x_426; lean_object* x_427; lean_dec(x_347); lean_dec(x_346); x_426 = 1; x_427 = lean_alloc_ctor(1, 4, 1); lean_ctor_set(x_427, 0, x_345); lean_ctor_set(x_427, 1, x_2); lean_ctor_set(x_427, 2, x_3); lean_ctor_set(x_427, 3, x_348); lean_ctor_set_uint8(x_427, sizeof(void*)*4, x_426); return x_427; } } else { lean_object* x_428; uint8_t x_429; x_428 = l_Lean_RBNode_ins___at___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonWorkspaceEdit____x40_Lean_Data_Lsp_Basic___hyg_4660____spec__3(x_345, x_2, x_3); x_429 = lean_ctor_get_uint8(x_428, sizeof(void*)*4); if (x_429 == 0) { lean_object* x_430; x_430 = lean_ctor_get(x_428, 0); lean_inc(x_430); if (lean_obj_tag(x_430) == 0) { lean_object* x_431; x_431 = lean_ctor_get(x_428, 3); lean_inc(x_431); if (lean_obj_tag(x_431) == 0) { lean_object* x_432; lean_object* x_433; lean_object* x_434; lean_object* x_435; uint8_t x_436; lean_object* x_437; x_432 = lean_ctor_get(x_428, 1); lean_inc(x_432); x_433 = lean_ctor_get(x_428, 2); lean_inc(x_433); if (lean_is_exclusive(x_428)) { lean_ctor_release(x_428, 0); lean_ctor_release(x_428, 1); lean_ctor_release(x_428, 2); lean_ctor_release(x_428, 3); x_434 = x_428; } else { lean_dec_ref(x_428); x_434 = lean_box(0); } if (lean_is_scalar(x_434)) { x_435 = lean_alloc_ctor(1, 4, 1); } else { x_435 = x_434; } lean_ctor_set(x_435, 0, x_431); lean_ctor_set(x_435, 1, x_432); lean_ctor_set(x_435, 2, x_433); lean_ctor_set(x_435, 3, x_431); lean_ctor_set_uint8(x_435, sizeof(void*)*4, x_429); x_436 = 1; x_437 = lean_alloc_ctor(1, 4, 1); lean_ctor_set(x_437, 0, x_435); lean_ctor_set(x_437, 1, x_346); lean_ctor_set(x_437, 2, x_347); lean_ctor_set(x_437, 3, x_348); lean_ctor_set_uint8(x_437, sizeof(void*)*4, x_436); return x_437; } else { uint8_t x_438; x_438 = lean_ctor_get_uint8(x_431, sizeof(void*)*4); if (x_438 == 0) { lean_object* x_439; lean_object* x_440; lean_object* x_441; lean_object* x_442; lean_object* x_443; lean_object* x_444; lean_object* x_445; lean_object* x_446; uint8_t x_447; lean_object* x_448; lean_object* x_449; uint8_t x_450; lean_object* x_451; x_439 = lean_ctor_get(x_428, 1); lean_inc(x_439); x_440 = lean_ctor_get(x_428, 2); lean_inc(x_440); if (lean_is_exclusive(x_428)) { lean_ctor_release(x_428, 0); lean_ctor_release(x_428, 1); lean_ctor_release(x_428, 2); lean_ctor_release(x_428, 3); x_441 = x_428; } else { lean_dec_ref(x_428); x_441 = lean_box(0); } x_442 = lean_ctor_get(x_431, 0); lean_inc(x_442); x_443 = lean_ctor_get(x_431, 1); lean_inc(x_443); x_444 = lean_ctor_get(x_431, 2); lean_inc(x_444); x_445 = lean_ctor_get(x_431, 3); lean_inc(x_445); if (lean_is_exclusive(x_431)) { lean_ctor_release(x_431, 0); lean_ctor_release(x_431, 1); lean_ctor_release(x_431, 2); lean_ctor_release(x_431, 3); x_446 = x_431; } else { lean_dec_ref(x_431); x_446 = lean_box(0); } x_447 = 1; if (lean_is_scalar(x_446)) { x_448 = lean_alloc_ctor(1, 4, 1); } else { x_448 = x_446; } lean_ctor_set(x_448, 0, x_430); lean_ctor_set(x_448, 1, x_439); lean_ctor_set(x_448, 2, x_440); lean_ctor_set(x_448, 3, x_442); lean_ctor_set_uint8(x_448, sizeof(void*)*4, x_447); if (lean_is_scalar(x_441)) { x_449 = lean_alloc_ctor(1, 4, 1); } else { x_449 = x_441; } lean_ctor_set(x_449, 0, x_445); lean_ctor_set(x_449, 1, x_346); lean_ctor_set(x_449, 2, x_347); lean_ctor_set(x_449, 3, x_348); lean_ctor_set_uint8(x_449, sizeof(void*)*4, x_447); x_450 = 0; x_451 = lean_alloc_ctor(1, 4, 1); lean_ctor_set(x_451, 0, x_448); lean_ctor_set(x_451, 1, x_443); lean_ctor_set(x_451, 2, x_444); lean_ctor_set(x_451, 3, x_449); lean_ctor_set_uint8(x_451, sizeof(void*)*4, x_450); return x_451; } else { lean_object* x_452; uint8_t x_453; lean_object* x_454; if (lean_is_exclusive(x_431)) { lean_ctor_release(x_431, 0); lean_ctor_release(x_431, 1); lean_ctor_release(x_431, 2); lean_ctor_release(x_431, 3); x_452 = x_431; } else { lean_dec_ref(x_431); x_452 = lean_box(0); } x_453 = 1; if (lean_is_scalar(x_452)) { x_454 = lean_alloc_ctor(1, 4, 1); } else { x_454 = x_452; } lean_ctor_set(x_454, 0, x_428); lean_ctor_set(x_454, 1, x_346); lean_ctor_set(x_454, 2, x_347); lean_ctor_set(x_454, 3, x_348); lean_ctor_set_uint8(x_454, sizeof(void*)*4, x_453); return x_454; } } } else { uint8_t x_455; x_455 = lean_ctor_get_uint8(x_430, sizeof(void*)*4); if (x_455 == 0) { lean_object* x_456; lean_object* x_457; lean_object* x_458; lean_object* x_459; lean_object* x_460; lean_object* x_461; lean_object* x_462; lean_object* x_463; lean_object* x_464; uint8_t x_465; lean_object* x_466; lean_object* x_467; uint8_t x_468; lean_object* x_469; x_456 = lean_ctor_get(x_428, 1); lean_inc(x_456); x_457 = lean_ctor_get(x_428, 2); lean_inc(x_457); x_458 = lean_ctor_get(x_428, 3); lean_inc(x_458); if (lean_is_exclusive(x_428)) { lean_ctor_release(x_428, 0); lean_ctor_release(x_428, 1); lean_ctor_release(x_428, 2); lean_ctor_release(x_428, 3); x_459 = x_428; } else { lean_dec_ref(x_428); x_459 = lean_box(0); } x_460 = lean_ctor_get(x_430, 0); lean_inc(x_460); x_461 = lean_ctor_get(x_430, 1); lean_inc(x_461); x_462 = lean_ctor_get(x_430, 2); lean_inc(x_462); x_463 = lean_ctor_get(x_430, 3); lean_inc(x_463); if (lean_is_exclusive(x_430)) { lean_ctor_release(x_430, 0); lean_ctor_release(x_430, 1); lean_ctor_release(x_430, 2); lean_ctor_release(x_430, 3); x_464 = x_430; } else { lean_dec_ref(x_430); x_464 = lean_box(0); } x_465 = 1; if (lean_is_scalar(x_464)) { x_466 = lean_alloc_ctor(1, 4, 1); } else { x_466 = x_464; } lean_ctor_set(x_466, 0, x_460); lean_ctor_set(x_466, 1, x_461); lean_ctor_set(x_466, 2, x_462); lean_ctor_set(x_466, 3, x_463); lean_ctor_set_uint8(x_466, sizeof(void*)*4, x_465); if (lean_is_scalar(x_459)) { x_467 = lean_alloc_ctor(1, 4, 1); } else { x_467 = x_459; } lean_ctor_set(x_467, 0, x_458); lean_ctor_set(x_467, 1, x_346); lean_ctor_set(x_467, 2, x_347); lean_ctor_set(x_467, 3, x_348); lean_ctor_set_uint8(x_467, sizeof(void*)*4, x_465); x_468 = 0; x_469 = lean_alloc_ctor(1, 4, 1); lean_ctor_set(x_469, 0, x_466); lean_ctor_set(x_469, 1, x_456); lean_ctor_set(x_469, 2, x_457); lean_ctor_set(x_469, 3, x_467); lean_ctor_set_uint8(x_469, sizeof(void*)*4, x_468); return x_469; } else { lean_object* x_470; x_470 = lean_ctor_get(x_428, 3); lean_inc(x_470); if (lean_obj_tag(x_470) == 0) { lean_object* x_471; uint8_t x_472; lean_object* x_473; if (lean_is_exclusive(x_430)) { lean_ctor_release(x_430, 0); lean_ctor_release(x_430, 1); lean_ctor_release(x_430, 2); lean_ctor_release(x_430, 3); x_471 = x_430; } else { lean_dec_ref(x_430); x_471 = lean_box(0); } x_472 = 1; if (lean_is_scalar(x_471)) { x_473 = lean_alloc_ctor(1, 4, 1); } else { x_473 = x_471; } lean_ctor_set(x_473, 0, x_428); lean_ctor_set(x_473, 1, x_346); lean_ctor_set(x_473, 2, x_347); lean_ctor_set(x_473, 3, x_348); lean_ctor_set_uint8(x_473, sizeof(void*)*4, x_472); return x_473; } else { uint8_t x_474; x_474 = lean_ctor_get_uint8(x_470, sizeof(void*)*4); if (x_474 == 0) { lean_object* x_475; lean_object* x_476; lean_object* x_477; lean_object* x_478; lean_object* x_479; lean_object* x_480; lean_object* x_481; lean_object* x_482; uint8_t x_483; lean_object* x_484; lean_object* x_485; lean_object* x_486; uint8_t x_487; lean_object* x_488; x_475 = lean_ctor_get(x_428, 1); lean_inc(x_475); x_476 = lean_ctor_get(x_428, 2); lean_inc(x_476); if (lean_is_exclusive(x_428)) { lean_ctor_release(x_428, 0); lean_ctor_release(x_428, 1); lean_ctor_release(x_428, 2); lean_ctor_release(x_428, 3); x_477 = x_428; } else { lean_dec_ref(x_428); x_477 = lean_box(0); } x_478 = lean_ctor_get(x_470, 0); lean_inc(x_478); x_479 = lean_ctor_get(x_470, 1); lean_inc(x_479); x_480 = lean_ctor_get(x_470, 2); lean_inc(x_480); x_481 = lean_ctor_get(x_470, 3); lean_inc(x_481); if (lean_is_exclusive(x_470)) { lean_ctor_release(x_470, 0); lean_ctor_release(x_470, 1); lean_ctor_release(x_470, 2); lean_ctor_release(x_470, 3); x_482 = x_470; } else { lean_dec_ref(x_470); x_482 = lean_box(0); } x_483 = 1; lean_inc(x_430); if (lean_is_scalar(x_482)) { x_484 = lean_alloc_ctor(1, 4, 1); } else { x_484 = x_482; } lean_ctor_set(x_484, 0, x_430); lean_ctor_set(x_484, 1, x_475); lean_ctor_set(x_484, 2, x_476); lean_ctor_set(x_484, 3, x_478); if (lean_is_exclusive(x_430)) { lean_ctor_release(x_430, 0); lean_ctor_release(x_430, 1); lean_ctor_release(x_430, 2); lean_ctor_release(x_430, 3); x_485 = x_430; } else { lean_dec_ref(x_430); x_485 = lean_box(0); } lean_ctor_set_uint8(x_484, sizeof(void*)*4, x_483); if (lean_is_scalar(x_485)) { x_486 = lean_alloc_ctor(1, 4, 1); } else { x_486 = x_485; } lean_ctor_set(x_486, 0, x_481); lean_ctor_set(x_486, 1, x_346); lean_ctor_set(x_486, 2, x_347); lean_ctor_set(x_486, 3, x_348); lean_ctor_set_uint8(x_486, sizeof(void*)*4, x_483); x_487 = 0; if (lean_is_scalar(x_477)) { x_488 = lean_alloc_ctor(1, 4, 1); } else { x_488 = x_477; } lean_ctor_set(x_488, 0, x_484); lean_ctor_set(x_488, 1, x_479); lean_ctor_set(x_488, 2, x_480); lean_ctor_set(x_488, 3, x_486); lean_ctor_set_uint8(x_488, sizeof(void*)*4, x_487); return x_488; } else { lean_object* x_489; lean_object* x_490; lean_object* x_491; lean_object* x_492; lean_object* x_493; lean_object* x_494; lean_object* x_495; lean_object* x_496; lean_object* x_497; lean_object* x_498; uint8_t x_499; lean_object* x_500; x_489 = lean_ctor_get(x_428, 1); lean_inc(x_489); x_490 = lean_ctor_get(x_428, 2); lean_inc(x_490); if (lean_is_exclusive(x_428)) { lean_ctor_release(x_428, 0); lean_ctor_release(x_428, 1); lean_ctor_release(x_428, 2); lean_ctor_release(x_428, 3); x_491 = x_428; } else { lean_dec_ref(x_428); x_491 = lean_box(0); } x_492 = lean_ctor_get(x_430, 0); lean_inc(x_492); x_493 = lean_ctor_get(x_430, 1); lean_inc(x_493); x_494 = lean_ctor_get(x_430, 2); lean_inc(x_494); x_495 = lean_ctor_get(x_430, 3); lean_inc(x_495); if (lean_is_exclusive(x_430)) { lean_ctor_release(x_430, 0); lean_ctor_release(x_430, 1); lean_ctor_release(x_430, 2); lean_ctor_release(x_430, 3); x_496 = x_430; } else { lean_dec_ref(x_430); x_496 = lean_box(0); } if (lean_is_scalar(x_496)) { x_497 = lean_alloc_ctor(1, 4, 1); } else { x_497 = x_496; } lean_ctor_set(x_497, 0, x_492); lean_ctor_set(x_497, 1, x_493); lean_ctor_set(x_497, 2, x_494); lean_ctor_set(x_497, 3, x_495); lean_ctor_set_uint8(x_497, sizeof(void*)*4, x_474); if (lean_is_scalar(x_491)) { x_498 = lean_alloc_ctor(1, 4, 1); } else { x_498 = x_491; } lean_ctor_set(x_498, 0, x_497); lean_ctor_set(x_498, 1, x_489); lean_ctor_set(x_498, 2, x_490); lean_ctor_set(x_498, 3, x_470); lean_ctor_set_uint8(x_498, sizeof(void*)*4, x_429); x_499 = 1; x_500 = lean_alloc_ctor(1, 4, 1); lean_ctor_set(x_500, 0, x_498); lean_ctor_set(x_500, 1, x_346); lean_ctor_set(x_500, 2, x_347); lean_ctor_set(x_500, 3, x_348); lean_ctor_set_uint8(x_500, sizeof(void*)*4, x_499); return x_500; } } } } } else { uint8_t x_501; lean_object* x_502; x_501 = 1; x_502 = lean_alloc_ctor(1, 4, 1); lean_ctor_set(x_502, 0, x_428); lean_ctor_set(x_502, 1, x_346); lean_ctor_set(x_502, 2, x_347); lean_ctor_set(x_502, 3, x_348); lean_ctor_set_uint8(x_502, sizeof(void*)*4, x_501); return x_502; } } } } } } } LEAN_EXPORT lean_object* l_Lean_RBNode_insert___at___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonWorkspaceEdit____x40_Lean_Data_Lsp_Basic___hyg_4660____spec__2(lean_object* x_1, lean_object* x_2, lean_object* x_3) { _start: { uint8_t x_4; x_4 = l_Lean_RBNode_isRed___rarg(x_1); if (x_4 == 0) { lean_object* x_5; x_5 = l_Lean_RBNode_ins___at___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonWorkspaceEdit____x40_Lean_Data_Lsp_Basic___hyg_4660____spec__3(x_1, x_2, x_3); return x_5; } else { lean_object* x_6; lean_object* x_7; x_6 = l_Lean_RBNode_ins___at___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonWorkspaceEdit____x40_Lean_Data_Lsp_Basic___hyg_4660____spec__3(x_1, x_2, x_3); x_7 = l_Lean_RBNode_setBlack___rarg(x_6); return x_7; } } } LEAN_EXPORT lean_object* l_Lean_RBNode_foldM___at___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonWorkspaceEdit____x40_Lean_Data_Lsp_Basic___hyg_4660____spec__4(lean_object* x_1, lean_object* x_2, lean_object* x_3) { _start: { if (lean_obj_tag(x_3) == 0) { lean_object* x_4; x_4 = lean_alloc_ctor(1, 1, 0); lean_ctor_set(x_4, 0, x_2); return x_4; } else { lean_object* x_5; lean_object* x_6; lean_object* x_7; lean_object* x_8; lean_object* x_9; x_5 = lean_ctor_get(x_3, 0); lean_inc(x_5); x_6 = lean_ctor_get(x_3, 1); lean_inc(x_6); x_7 = lean_ctor_get(x_3, 2); lean_inc(x_7); x_8 = lean_ctor_get(x_3, 3); lean_inc(x_8); lean_dec(x_3); x_9 = l_Lean_RBNode_foldM___at___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonWorkspaceEdit____x40_Lean_Data_Lsp_Basic___hyg_4660____spec__4(x_1, x_2, x_5); if (lean_obj_tag(x_9) == 0) { uint8_t x_10; lean_dec(x_8); lean_dec(x_7); lean_dec(x_6); x_10 = !lean_is_exclusive(x_9); if (x_10 == 0) { return x_9; } else { lean_object* x_11; lean_object* x_12; x_11 = lean_ctor_get(x_9, 0); lean_inc(x_11); lean_dec(x_9); x_12 = lean_alloc_ctor(0, 1, 0); lean_ctor_set(x_12, 0, x_11); return x_12; } } else { if (lean_obj_tag(x_7) == 4) { lean_object* x_13; lean_object* x_14; lean_object* x_15; size_t x_16; size_t x_17; lean_object* x_18; x_13 = lean_ctor_get(x_9, 0); lean_inc(x_13); lean_dec(x_9); x_14 = lean_ctor_get(x_7, 0); lean_inc(x_14); lean_dec(x_7); x_15 = lean_array_get_size(x_14); x_16 = lean_usize_of_nat(x_15); lean_dec(x_15); x_17 = 0; x_18 = l_Array_mapMUnsafe_map___at_Lean_Lsp_instFromJsonTextEditBatch___spec__1(x_16, x_17, x_14); if (lean_obj_tag(x_18) == 0) { uint8_t x_19; lean_dec(x_13); lean_dec(x_8); lean_dec(x_6); x_19 = !lean_is_exclusive(x_18); if (x_19 == 0) { return x_18; } else { lean_object* x_20; lean_object* x_21; x_20 = lean_ctor_get(x_18, 0); lean_inc(x_20); lean_dec(x_18); x_21 = lean_alloc_ctor(0, 1, 0); lean_ctor_set(x_21, 0, x_20); return x_21; } } else { lean_object* x_22; lean_object* x_23; x_22 = lean_ctor_get(x_18, 0); lean_inc(x_22); lean_dec(x_18); x_23 = l_Lean_RBNode_insert___at___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonWorkspaceEdit____x40_Lean_Data_Lsp_Basic___hyg_4660____spec__2(x_13, x_6, x_22); x_2 = x_23; x_3 = x_8; goto _start; } } else { uint8_t x_25; lean_dec(x_8); lean_dec(x_6); x_25 = !lean_is_exclusive(x_9); if (x_25 == 0) { lean_object* x_26; lean_object* x_27; lean_object* x_28; lean_object* x_29; lean_object* x_30; lean_object* x_31; lean_object* x_32; x_26 = lean_ctor_get(x_9, 0); lean_dec(x_26); x_27 = lean_unsigned_to_nat(80u); x_28 = l_Lean_Json_pretty(x_7, x_27); x_29 = l_Lean_Json_getObjValAs_x3f___at___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonCommand____x40_Lean_Data_Lsp_Basic___hyg_1837____spec__1___closed__1; x_30 = lean_string_append(x_29, x_28); lean_dec(x_28); x_31 = l_Lean_Json_getObjValAs_x3f___at___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonCommand____x40_Lean_Data_Lsp_Basic___hyg_1837____spec__1___closed__2; x_32 = lean_string_append(x_30, x_31); lean_ctor_set_tag(x_9, 0); lean_ctor_set(x_9, 0, x_32); return x_9; } else { lean_object* x_33; lean_object* x_34; lean_object* x_35; lean_object* x_36; lean_object* x_37; lean_object* x_38; lean_object* x_39; lean_dec(x_9); x_33 = lean_unsigned_to_nat(80u); x_34 = l_Lean_Json_pretty(x_7, x_33); x_35 = l_Lean_Json_getObjValAs_x3f___at___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonCommand____x40_Lean_Data_Lsp_Basic___hyg_1837____spec__1___closed__1; x_36 = lean_string_append(x_35, x_34); lean_dec(x_34); x_37 = l_Lean_Json_getObjValAs_x3f___at___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonCommand____x40_Lean_Data_Lsp_Basic___hyg_1837____spec__1___closed__2; x_38 = lean_string_append(x_36, x_37); x_39 = lean_alloc_ctor(0, 1, 0); lean_ctor_set(x_39, 0, x_38); return x_39; } } } } } } LEAN_EXPORT lean_object* l_Lean_RBNode_foldM___at___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonWorkspaceEdit____x40_Lean_Data_Lsp_Basic___hyg_4660____spec__4___at___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonWorkspaceEdit____x40_Lean_Data_Lsp_Basic___hyg_4660____spec__5(lean_object* x_1, lean_object* x_2) { _start: { if (lean_obj_tag(x_2) == 0) { lean_object* x_3; x_3 = lean_alloc_ctor(1, 1, 0); lean_ctor_set(x_3, 0, x_1); return x_3; } else { lean_object* x_4; lean_object* x_5; lean_object* x_6; lean_object* x_7; lean_object* x_8; x_4 = lean_ctor_get(x_2, 0); lean_inc(x_4); x_5 = lean_ctor_get(x_2, 1); lean_inc(x_5); x_6 = lean_ctor_get(x_2, 2); lean_inc(x_6); x_7 = lean_ctor_get(x_2, 3); lean_inc(x_7); lean_dec(x_2); x_8 = l_Lean_RBNode_foldM___at___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonWorkspaceEdit____x40_Lean_Data_Lsp_Basic___hyg_4660____spec__4___at___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonWorkspaceEdit____x40_Lean_Data_Lsp_Basic___hyg_4660____spec__5(x_1, x_4); if (lean_obj_tag(x_8) == 0) { uint8_t x_9; lean_dec(x_7); lean_dec(x_6); lean_dec(x_5); x_9 = !lean_is_exclusive(x_8); if (x_9 == 0) { return x_8; } else { lean_object* x_10; lean_object* x_11; x_10 = lean_ctor_get(x_8, 0); lean_inc(x_10); lean_dec(x_8); x_11 = lean_alloc_ctor(0, 1, 0); lean_ctor_set(x_11, 0, x_10); return x_11; } } else { if (lean_obj_tag(x_6) == 4) { lean_object* x_12; lean_object* x_13; lean_object* x_14; size_t x_15; size_t x_16; lean_object* x_17; x_12 = lean_ctor_get(x_8, 0); lean_inc(x_12); lean_dec(x_8); x_13 = lean_ctor_get(x_6, 0); lean_inc(x_13); lean_dec(x_6); x_14 = lean_array_get_size(x_13); x_15 = lean_usize_of_nat(x_14); lean_dec(x_14); x_16 = 0; x_17 = l_Array_mapMUnsafe_map___at_Lean_Lsp_instFromJsonTextEditBatch___spec__1(x_15, x_16, x_13); if (lean_obj_tag(x_17) == 0) { uint8_t x_18; lean_dec(x_12); lean_dec(x_7); lean_dec(x_5); x_18 = !lean_is_exclusive(x_17); if (x_18 == 0) { return x_17; } else { lean_object* x_19; lean_object* x_20; x_19 = lean_ctor_get(x_17, 0); lean_inc(x_19); lean_dec(x_17); x_20 = lean_alloc_ctor(0, 1, 0); lean_ctor_set(x_20, 0, x_19); return x_20; } } else { lean_object* x_21; lean_object* x_22; x_21 = lean_ctor_get(x_17, 0); lean_inc(x_21); lean_dec(x_17); x_22 = l_Lean_RBNode_insert___at___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonWorkspaceEdit____x40_Lean_Data_Lsp_Basic___hyg_4660____spec__2(x_12, x_5, x_21); x_1 = x_22; x_2 = x_7; goto _start; } } else { uint8_t x_24; lean_dec(x_7); lean_dec(x_5); x_24 = !lean_is_exclusive(x_8); if (x_24 == 0) { lean_object* x_25; lean_object* x_26; lean_object* x_27; lean_object* x_28; lean_object* x_29; lean_object* x_30; lean_object* x_31; x_25 = lean_ctor_get(x_8, 0); lean_dec(x_25); x_26 = lean_unsigned_to_nat(80u); x_27 = l_Lean_Json_pretty(x_6, x_26); x_28 = l_Lean_Json_getObjValAs_x3f___at___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonCommand____x40_Lean_Data_Lsp_Basic___hyg_1837____spec__1___closed__1; x_29 = lean_string_append(x_28, x_27); lean_dec(x_27); x_30 = l_Lean_Json_getObjValAs_x3f___at___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonCommand____x40_Lean_Data_Lsp_Basic___hyg_1837____spec__1___closed__2; x_31 = lean_string_append(x_29, x_30); lean_ctor_set_tag(x_8, 0); lean_ctor_set(x_8, 0, x_31); return x_8; } else { lean_object* x_32; lean_object* x_33; lean_object* x_34; lean_object* x_35; lean_object* x_36; lean_object* x_37; lean_object* x_38; lean_dec(x_8); x_32 = lean_unsigned_to_nat(80u); x_33 = l_Lean_Json_pretty(x_6, x_32); x_34 = l_Lean_Json_getObjValAs_x3f___at___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonCommand____x40_Lean_Data_Lsp_Basic___hyg_1837____spec__1___closed__1; x_35 = lean_string_append(x_34, x_33); lean_dec(x_33); x_36 = l_Lean_Json_getObjValAs_x3f___at___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonCommand____x40_Lean_Data_Lsp_Basic___hyg_1837____spec__1___closed__2; x_37 = lean_string_append(x_35, x_36); x_38 = lean_alloc_ctor(0, 1, 0); lean_ctor_set(x_38, 0, x_37); return x_38; } } } } } } LEAN_EXPORT lean_object* l_Lean_Json_getObjValAs_x3f___at___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonWorkspaceEdit____x40_Lean_Data_Lsp_Basic___hyg_4660____spec__1(lean_object* x_1, lean_object* x_2) { _start: { lean_object* x_3; lean_object* x_4; x_3 = l_Lean_Json_getObjValD(x_1, x_2); lean_dec(x_2); lean_dec(x_1); x_4 = l_Lean_Json_getObj_x3f(x_3); lean_dec(x_3); if (lean_obj_tag(x_4) == 0) { uint8_t x_5; x_5 = !lean_is_exclusive(x_4); if (x_5 == 0) { return x_4; } else { lean_object* x_6; lean_object* x_7; x_6 = lean_ctor_get(x_4, 0); lean_inc(x_6); lean_dec(x_4); x_7 = lean_alloc_ctor(0, 1, 0); lean_ctor_set(x_7, 0, x_6); return x_7; } } else { lean_object* x_8; lean_object* x_9; lean_object* x_10; x_8 = lean_ctor_get(x_4, 0); lean_inc(x_8); lean_dec(x_4); x_9 = lean_box(0); x_10 = l_Lean_RBNode_foldM___at___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonWorkspaceEdit____x40_Lean_Data_Lsp_Basic___hyg_4660____spec__4___at___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonWorkspaceEdit____x40_Lean_Data_Lsp_Basic___hyg_4660____spec__5(x_9, x_8); return x_10; } } } LEAN_EXPORT lean_object* l_Array_mapMUnsafe_map___at___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonWorkspaceEdit____x40_Lean_Data_Lsp_Basic___hyg_4660____spec__7(size_t x_1, size_t x_2, lean_object* x_3) { _start: { uint8_t x_4; x_4 = lean_usize_dec_lt(x_2, x_1); if (x_4 == 0) { lean_object* x_5; x_5 = lean_alloc_ctor(1, 1, 0); lean_ctor_set(x_5, 0, x_3); return x_5; } else { lean_object* x_6; lean_object* x_7; lean_object* x_8; lean_object* x_9; lean_object* x_21; lean_object* x_22; x_6 = lean_array_uget(x_3, x_2); x_7 = lean_unsigned_to_nat(0u); x_8 = lean_array_uset(x_3, x_2, x_7); x_21 = l_Lean_Lsp_instToJsonDocumentChange___closed__3; x_22 = l_Lean_Json_getObjVal_x3f(x_6, x_21); if (lean_obj_tag(x_22) == 0) { lean_object* x_23; lean_dec(x_22); x_23 = lean_box(0); x_9 = x_23; goto block_20; } else { lean_object* x_24; x_24 = lean_ctor_get(x_22, 0); lean_inc(x_24); lean_dec(x_22); if (lean_obj_tag(x_24) == 3) { lean_object* x_25; lean_object* x_26; uint8_t x_27; x_25 = lean_ctor_get(x_24, 0); lean_inc(x_25); lean_dec(x_24); x_26 = l_Lean_Lsp_instToJsonDocumentChange___closed__1; x_27 = lean_string_dec_eq(x_25, x_26); if (x_27 == 0) { lean_object* x_28; uint8_t x_29; x_28 = l_Lean_Lsp_instToJsonDocumentChange___closed__4; x_29 = lean_string_dec_eq(x_25, x_28); if (x_29 == 0) { lean_object* x_30; uint8_t x_31; x_30 = l_Lean_Lsp_instToJsonDocumentChange___closed__6; x_31 = lean_string_dec_eq(x_25, x_30); lean_dec(x_25); if (x_31 == 0) { lean_object* x_32; x_32 = lean_box(0); x_9 = x_32; goto block_20; } else { lean_object* x_33; x_33 = l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonDeleteFile____x40_Lean_Data_Lsp_Basic___hyg_4050_(x_6); if (lean_obj_tag(x_33) == 0) { lean_object* x_34; lean_dec(x_33); x_34 = lean_box(0); x_9 = x_34; goto block_20; } else { lean_object* x_35; lean_object* x_36; size_t x_37; size_t x_38; lean_object* x_39; lean_dec(x_6); x_35 = lean_ctor_get(x_33, 0); lean_inc(x_35); lean_dec(x_33); x_36 = lean_alloc_ctor(2, 1, 0); lean_ctor_set(x_36, 0, x_35); x_37 = 1; x_38 = lean_usize_add(x_2, x_37); x_39 = lean_array_uset(x_8, x_2, x_36); x_2 = x_38; x_3 = x_39; goto _start; } } } else { lean_object* x_41; lean_dec(x_25); x_41 = l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonRenameFile____x40_Lean_Data_Lsp_Basic___hyg_3781_(x_6); if (lean_obj_tag(x_41) == 0) { lean_object* x_42; lean_dec(x_41); x_42 = lean_box(0); x_9 = x_42; goto block_20; } else { lean_object* x_43; lean_object* x_44; size_t x_45; size_t x_46; lean_object* x_47; lean_dec(x_6); x_43 = lean_ctor_get(x_41, 0); lean_inc(x_43); lean_dec(x_41); x_44 = lean_alloc_ctor(1, 1, 0); lean_ctor_set(x_44, 0, x_43); x_45 = 1; x_46 = lean_usize_add(x_2, x_45); x_47 = lean_array_uset(x_8, x_2, x_44); x_2 = x_46; x_3 = x_47; goto _start; } } } else { lean_object* x_49; lean_dec(x_25); x_49 = l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonCreateFile____x40_Lean_Data_Lsp_Basic___hyg_3525_(x_6); if (lean_obj_tag(x_49) == 0) { lean_object* x_50; lean_dec(x_49); x_50 = lean_box(0); x_9 = x_50; goto block_20; } else { lean_object* x_51; lean_object* x_52; size_t x_53; size_t x_54; lean_object* x_55; lean_dec(x_6); x_51 = lean_ctor_get(x_49, 0); lean_inc(x_51); lean_dec(x_49); x_52 = lean_alloc_ctor(0, 1, 0); lean_ctor_set(x_52, 0, x_51); x_53 = 1; x_54 = lean_usize_add(x_2, x_53); x_55 = lean_array_uset(x_8, x_2, x_52); x_2 = x_54; x_3 = x_55; goto _start; } } } else { lean_object* x_57; lean_dec(x_24); x_57 = lean_box(0); x_9 = x_57; goto block_20; } } block_20: { lean_object* x_10; lean_dec(x_9); x_10 = l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonTextDocumentEdit____x40_Lean_Data_Lsp_Basic___hyg_2731_(x_6); lean_dec(x_6); if (lean_obj_tag(x_10) == 0) { uint8_t x_11; lean_dec(x_8); x_11 = !lean_is_exclusive(x_10); if (x_11 == 0) { return x_10; } else { lean_object* x_12; lean_object* x_13; x_12 = lean_ctor_get(x_10, 0); lean_inc(x_12); lean_dec(x_10); x_13 = lean_alloc_ctor(0, 1, 0); lean_ctor_set(x_13, 0, x_12); return x_13; } } else { lean_object* x_14; lean_object* x_15; size_t x_16; size_t x_17; lean_object* x_18; x_14 = lean_ctor_get(x_10, 0); lean_inc(x_14); lean_dec(x_10); x_15 = lean_alloc_ctor(3, 1, 0); lean_ctor_set(x_15, 0, x_14); x_16 = 1; x_17 = lean_usize_add(x_2, x_16); x_18 = lean_array_uset(x_8, x_2, x_15); x_2 = x_17; x_3 = x_18; goto _start; } } } } } LEAN_EXPORT lean_object* l_Lean_Json_getObjValAs_x3f___at___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonWorkspaceEdit____x40_Lean_Data_Lsp_Basic___hyg_4660____spec__6(lean_object* x_1, lean_object* x_2) { _start: { lean_object* x_3; x_3 = l_Lean_Json_getObjValD(x_1, x_2); lean_dec(x_2); lean_dec(x_1); if (lean_obj_tag(x_3) == 4) { lean_object* x_4; lean_object* x_5; size_t x_6; size_t x_7; lean_object* x_8; x_4 = lean_ctor_get(x_3, 0); lean_inc(x_4); lean_dec(x_3); x_5 = lean_array_get_size(x_4); x_6 = lean_usize_of_nat(x_5); lean_dec(x_5); x_7 = 0; x_8 = l_Array_mapMUnsafe_map___at___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonWorkspaceEdit____x40_Lean_Data_Lsp_Basic___hyg_4660____spec__7(x_6, x_7, x_4); return x_8; } else { lean_object* x_9; lean_object* x_10; lean_object* x_11; lean_object* x_12; lean_object* x_13; lean_object* x_14; lean_object* x_15; x_9 = lean_unsigned_to_nat(80u); x_10 = l_Lean_Json_pretty(x_3, x_9); x_11 = l_Lean_Json_getObjValAs_x3f___at___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonCommand____x40_Lean_Data_Lsp_Basic___hyg_1837____spec__1___closed__1; x_12 = lean_string_append(x_11, x_10); lean_dec(x_10); x_13 = l_Lean_Json_getObjValAs_x3f___at___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonCommand____x40_Lean_Data_Lsp_Basic___hyg_1837____spec__1___closed__2; x_14 = lean_string_append(x_12, x_13); x_15 = lean_alloc_ctor(0, 1, 0); lean_ctor_set(x_15, 0, x_14); return x_15; } } } LEAN_EXPORT lean_object* l_Lean_RBNode_ins___at___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonWorkspaceEdit____x40_Lean_Data_Lsp_Basic___hyg_4660____spec__10(lean_object* x_1, lean_object* x_2, lean_object* x_3) { _start: { if (lean_obj_tag(x_1) == 0) { lean_object* x_4; uint8_t x_5; lean_object* x_6; x_4 = lean_box(0); x_5 = 0; x_6 = lean_alloc_ctor(1, 4, 1); lean_ctor_set(x_6, 0, x_4); lean_ctor_set(x_6, 1, x_2); lean_ctor_set(x_6, 2, x_3); lean_ctor_set(x_6, 3, x_4); lean_ctor_set_uint8(x_6, sizeof(void*)*4, x_5); return x_6; } else { uint8_t x_7; x_7 = lean_ctor_get_uint8(x_1, sizeof(void*)*4); if (x_7 == 0) { uint8_t x_8; x_8 = !lean_is_exclusive(x_1); if (x_8 == 0) { lean_object* x_9; lean_object* x_10; lean_object* x_11; lean_object* x_12; uint8_t x_13; x_9 = lean_ctor_get(x_1, 0); x_10 = lean_ctor_get(x_1, 1); x_11 = lean_ctor_get(x_1, 2); x_12 = lean_ctor_get(x_1, 3); x_13 = lean_string_dec_lt(x_2, x_10); if (x_13 == 0) { uint8_t x_14; x_14 = lean_string_dec_eq(x_2, x_10); if (x_14 == 0) { lean_object* x_15; uint8_t x_16; x_15 = l_Lean_RBNode_ins___at___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonWorkspaceEdit____x40_Lean_Data_Lsp_Basic___hyg_4660____spec__10(x_12, x_2, x_3); x_16 = 0; lean_ctor_set(x_1, 3, x_15); lean_ctor_set_uint8(x_1, sizeof(void*)*4, x_16); return x_1; } else { uint8_t x_17; lean_dec(x_11); lean_dec(x_10); x_17 = 0; lean_ctor_set(x_1, 2, x_3); lean_ctor_set(x_1, 1, x_2); lean_ctor_set_uint8(x_1, sizeof(void*)*4, x_17); return x_1; } } else { lean_object* x_18; uint8_t x_19; x_18 = l_Lean_RBNode_ins___at___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonWorkspaceEdit____x40_Lean_Data_Lsp_Basic___hyg_4660____spec__10(x_9, x_2, x_3); x_19 = 0; lean_ctor_set(x_1, 0, x_18); lean_ctor_set_uint8(x_1, sizeof(void*)*4, x_19); return x_1; } } else { lean_object* x_20; lean_object* x_21; lean_object* x_22; lean_object* x_23; uint8_t x_24; x_20 = lean_ctor_get(x_1, 0); x_21 = lean_ctor_get(x_1, 1); x_22 = lean_ctor_get(x_1, 2); x_23 = lean_ctor_get(x_1, 3); lean_inc(x_23); lean_inc(x_22); lean_inc(x_21); lean_inc(x_20); lean_dec(x_1); x_24 = lean_string_dec_lt(x_2, x_21); if (x_24 == 0) { uint8_t x_25; x_25 = lean_string_dec_eq(x_2, x_21); if (x_25 == 0) { lean_object* x_26; uint8_t x_27; lean_object* x_28; x_26 = l_Lean_RBNode_ins___at___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonWorkspaceEdit____x40_Lean_Data_Lsp_Basic___hyg_4660____spec__10(x_23, x_2, x_3); x_27 = 0; x_28 = lean_alloc_ctor(1, 4, 1); lean_ctor_set(x_28, 0, x_20); lean_ctor_set(x_28, 1, x_21); lean_ctor_set(x_28, 2, x_22); lean_ctor_set(x_28, 3, x_26); lean_ctor_set_uint8(x_28, sizeof(void*)*4, x_27); return x_28; } else { uint8_t x_29; lean_object* x_30; lean_dec(x_22); lean_dec(x_21); x_29 = 0; x_30 = lean_alloc_ctor(1, 4, 1); lean_ctor_set(x_30, 0, x_20); lean_ctor_set(x_30, 1, x_2); lean_ctor_set(x_30, 2, x_3); lean_ctor_set(x_30, 3, x_23); lean_ctor_set_uint8(x_30, sizeof(void*)*4, x_29); return x_30; } } else { lean_object* x_31; uint8_t x_32; lean_object* x_33; x_31 = l_Lean_RBNode_ins___at___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonWorkspaceEdit____x40_Lean_Data_Lsp_Basic___hyg_4660____spec__10(x_20, x_2, x_3); x_32 = 0; x_33 = lean_alloc_ctor(1, 4, 1); lean_ctor_set(x_33, 0, x_31); lean_ctor_set(x_33, 1, x_21); lean_ctor_set(x_33, 2, x_22); lean_ctor_set(x_33, 3, x_23); lean_ctor_set_uint8(x_33, sizeof(void*)*4, x_32); return x_33; } } } else { uint8_t x_34; x_34 = !lean_is_exclusive(x_1); if (x_34 == 0) { lean_object* x_35; lean_object* x_36; lean_object* x_37; lean_object* x_38; uint8_t x_39; x_35 = lean_ctor_get(x_1, 0); x_36 = lean_ctor_get(x_1, 1); x_37 = lean_ctor_get(x_1, 2); x_38 = lean_ctor_get(x_1, 3); x_39 = lean_string_dec_lt(x_2, x_36); if (x_39 == 0) { uint8_t x_40; x_40 = lean_string_dec_eq(x_2, x_36); if (x_40 == 0) { lean_object* x_41; uint8_t x_42; x_41 = l_Lean_RBNode_ins___at___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonWorkspaceEdit____x40_Lean_Data_Lsp_Basic___hyg_4660____spec__10(x_38, x_2, x_3); x_42 = lean_ctor_get_uint8(x_41, sizeof(void*)*4); if (x_42 == 0) { lean_object* x_43; x_43 = lean_ctor_get(x_41, 0); lean_inc(x_43); if (lean_obj_tag(x_43) == 0) { lean_object* x_44; x_44 = lean_ctor_get(x_41, 3); lean_inc(x_44); if (lean_obj_tag(x_44) == 0) { uint8_t x_45; x_45 = !lean_is_exclusive(x_41); if (x_45 == 0) { lean_object* x_46; lean_object* x_47; uint8_t x_48; x_46 = lean_ctor_get(x_41, 3); lean_dec(x_46); x_47 = lean_ctor_get(x_41, 0); lean_dec(x_47); lean_ctor_set(x_41, 0, x_44); x_48 = 1; lean_ctor_set(x_1, 3, x_41); lean_ctor_set_uint8(x_1, sizeof(void*)*4, x_48); return x_1; } else { lean_object* x_49; lean_object* x_50; lean_object* x_51; uint8_t x_52; x_49 = lean_ctor_get(x_41, 1); x_50 = lean_ctor_get(x_41, 2); lean_inc(x_50); lean_inc(x_49); lean_dec(x_41); x_51 = lean_alloc_ctor(1, 4, 1); lean_ctor_set(x_51, 0, x_44); lean_ctor_set(x_51, 1, x_49); lean_ctor_set(x_51, 2, x_50); lean_ctor_set(x_51, 3, x_44); lean_ctor_set_uint8(x_51, sizeof(void*)*4, x_42); x_52 = 1; lean_ctor_set(x_1, 3, x_51); lean_ctor_set_uint8(x_1, sizeof(void*)*4, x_52); return x_1; } } else { uint8_t x_53; x_53 = lean_ctor_get_uint8(x_44, sizeof(void*)*4); if (x_53 == 0) { uint8_t x_54; x_54 = !lean_is_exclusive(x_41); if (x_54 == 0) { lean_object* x_55; lean_object* x_56; lean_object* x_57; lean_object* x_58; uint8_t x_59; x_55 = lean_ctor_get(x_41, 1); x_56 = lean_ctor_get(x_41, 2); x_57 = lean_ctor_get(x_41, 3); lean_dec(x_57); x_58 = lean_ctor_get(x_41, 0); lean_dec(x_58); x_59 = !lean_is_exclusive(x_44); if (x_59 == 0) { lean_object* x_60; lean_object* x_61; lean_object* x_62; lean_object* x_63; uint8_t x_64; uint8_t x_65; x_60 = lean_ctor_get(x_44, 0); x_61 = lean_ctor_get(x_44, 1); x_62 = lean_ctor_get(x_44, 2); x_63 = lean_ctor_get(x_44, 3); x_64 = 1; lean_ctor_set(x_44, 3, x_43); lean_ctor_set(x_44, 2, x_37); lean_ctor_set(x_44, 1, x_36); lean_ctor_set(x_44, 0, x_35); lean_ctor_set_uint8(x_44, sizeof(void*)*4, x_64); lean_ctor_set(x_41, 3, x_63); lean_ctor_set(x_41, 2, x_62); lean_ctor_set(x_41, 1, x_61); lean_ctor_set(x_41, 0, x_60); lean_ctor_set_uint8(x_41, sizeof(void*)*4, x_64); x_65 = 0; lean_ctor_set(x_1, 3, x_41); lean_ctor_set(x_1, 2, x_56); lean_ctor_set(x_1, 1, x_55); lean_ctor_set(x_1, 0, x_44); lean_ctor_set_uint8(x_1, sizeof(void*)*4, x_65); return x_1; } else { lean_object* x_66; lean_object* x_67; lean_object* x_68; lean_object* x_69; uint8_t x_70; lean_object* x_71; uint8_t x_72; x_66 = lean_ctor_get(x_44, 0); x_67 = lean_ctor_get(x_44, 1); x_68 = lean_ctor_get(x_44, 2); x_69 = lean_ctor_get(x_44, 3); lean_inc(x_69); lean_inc(x_68); lean_inc(x_67); lean_inc(x_66); lean_dec(x_44); x_70 = 1; x_71 = lean_alloc_ctor(1, 4, 1); lean_ctor_set(x_71, 0, x_35); lean_ctor_set(x_71, 1, x_36); lean_ctor_set(x_71, 2, x_37); lean_ctor_set(x_71, 3, x_43); lean_ctor_set_uint8(x_71, sizeof(void*)*4, x_70); lean_ctor_set(x_41, 3, x_69); lean_ctor_set(x_41, 2, x_68); lean_ctor_set(x_41, 1, x_67); lean_ctor_set(x_41, 0, x_66); lean_ctor_set_uint8(x_41, sizeof(void*)*4, x_70); x_72 = 0; lean_ctor_set(x_1, 3, x_41); lean_ctor_set(x_1, 2, x_56); lean_ctor_set(x_1, 1, x_55); lean_ctor_set(x_1, 0, x_71); lean_ctor_set_uint8(x_1, sizeof(void*)*4, x_72); return x_1; } } else { lean_object* x_73; lean_object* x_74; lean_object* x_75; lean_object* x_76; lean_object* x_77; lean_object* x_78; lean_object* x_79; uint8_t x_80; lean_object* x_81; lean_object* x_82; uint8_t x_83; x_73 = lean_ctor_get(x_41, 1); x_74 = lean_ctor_get(x_41, 2); lean_inc(x_74); lean_inc(x_73); lean_dec(x_41); x_75 = lean_ctor_get(x_44, 0); lean_inc(x_75); x_76 = lean_ctor_get(x_44, 1); lean_inc(x_76); x_77 = lean_ctor_get(x_44, 2); lean_inc(x_77); x_78 = lean_ctor_get(x_44, 3); lean_inc(x_78); if (lean_is_exclusive(x_44)) { lean_ctor_release(x_44, 0); lean_ctor_release(x_44, 1); lean_ctor_release(x_44, 2); lean_ctor_release(x_44, 3); x_79 = x_44; } else { lean_dec_ref(x_44); x_79 = lean_box(0); } x_80 = 1; if (lean_is_scalar(x_79)) { x_81 = lean_alloc_ctor(1, 4, 1); } else { x_81 = x_79; } lean_ctor_set(x_81, 0, x_35); lean_ctor_set(x_81, 1, x_36); lean_ctor_set(x_81, 2, x_37); lean_ctor_set(x_81, 3, x_43); lean_ctor_set_uint8(x_81, sizeof(void*)*4, x_80); x_82 = lean_alloc_ctor(1, 4, 1); lean_ctor_set(x_82, 0, x_75); lean_ctor_set(x_82, 1, x_76); lean_ctor_set(x_82, 2, x_77); lean_ctor_set(x_82, 3, x_78); lean_ctor_set_uint8(x_82, sizeof(void*)*4, x_80); x_83 = 0; lean_ctor_set(x_1, 3, x_82); lean_ctor_set(x_1, 2, x_74); lean_ctor_set(x_1, 1, x_73); lean_ctor_set(x_1, 0, x_81); lean_ctor_set_uint8(x_1, sizeof(void*)*4, x_83); return x_1; } } else { uint8_t x_84; lean_free_object(x_1); x_84 = !lean_is_exclusive(x_44); if (x_84 == 0) { lean_object* x_85; lean_object* x_86; lean_object* x_87; lean_object* x_88; uint8_t x_89; x_85 = lean_ctor_get(x_44, 3); lean_dec(x_85); x_86 = lean_ctor_get(x_44, 2); lean_dec(x_86); x_87 = lean_ctor_get(x_44, 1); lean_dec(x_87); x_88 = lean_ctor_get(x_44, 0); lean_dec(x_88); x_89 = 1; lean_ctor_set(x_44, 3, x_41); lean_ctor_set(x_44, 2, x_37); lean_ctor_set(x_44, 1, x_36); lean_ctor_set(x_44, 0, x_35); lean_ctor_set_uint8(x_44, sizeof(void*)*4, x_89); return x_44; } else { uint8_t x_90; lean_object* x_91; lean_dec(x_44); x_90 = 1; x_91 = lean_alloc_ctor(1, 4, 1); lean_ctor_set(x_91, 0, x_35); lean_ctor_set(x_91, 1, x_36); lean_ctor_set(x_91, 2, x_37); lean_ctor_set(x_91, 3, x_41); lean_ctor_set_uint8(x_91, sizeof(void*)*4, x_90); return x_91; } } } } else { uint8_t x_92; x_92 = lean_ctor_get_uint8(x_43, sizeof(void*)*4); if (x_92 == 0) { uint8_t x_93; x_93 = !lean_is_exclusive(x_41); if (x_93 == 0) { lean_object* x_94; uint8_t x_95; x_94 = lean_ctor_get(x_41, 0); lean_dec(x_94); x_95 = !lean_is_exclusive(x_43); if (x_95 == 0) { lean_object* x_96; lean_object* x_97; lean_object* x_98; lean_object* x_99; uint8_t x_100; uint8_t x_101; x_96 = lean_ctor_get(x_43, 0); x_97 = lean_ctor_get(x_43, 1); x_98 = lean_ctor_get(x_43, 2); x_99 = lean_ctor_get(x_43, 3); x_100 = 1; lean_ctor_set(x_43, 3, x_96); lean_ctor_set(x_43, 2, x_37); lean_ctor_set(x_43, 1, x_36); lean_ctor_set(x_43, 0, x_35); lean_ctor_set_uint8(x_43, sizeof(void*)*4, x_100); lean_ctor_set(x_41, 0, x_99); lean_ctor_set_uint8(x_41, sizeof(void*)*4, x_100); x_101 = 0; lean_ctor_set(x_1, 3, x_41); lean_ctor_set(x_1, 2, x_98); lean_ctor_set(x_1, 1, x_97); lean_ctor_set(x_1, 0, x_43); lean_ctor_set_uint8(x_1, sizeof(void*)*4, x_101); return x_1; } else { lean_object* x_102; lean_object* x_103; lean_object* x_104; lean_object* x_105; uint8_t x_106; lean_object* x_107; uint8_t x_108; x_102 = lean_ctor_get(x_43, 0); x_103 = lean_ctor_get(x_43, 1); x_104 = lean_ctor_get(x_43, 2); x_105 = lean_ctor_get(x_43, 3); lean_inc(x_105); lean_inc(x_104); lean_inc(x_103); lean_inc(x_102); lean_dec(x_43); x_106 = 1; x_107 = lean_alloc_ctor(1, 4, 1); lean_ctor_set(x_107, 0, x_35); lean_ctor_set(x_107, 1, x_36); lean_ctor_set(x_107, 2, x_37); lean_ctor_set(x_107, 3, x_102); lean_ctor_set_uint8(x_107, sizeof(void*)*4, x_106); lean_ctor_set(x_41, 0, x_105); lean_ctor_set_uint8(x_41, sizeof(void*)*4, x_106); x_108 = 0; lean_ctor_set(x_1, 3, x_41); lean_ctor_set(x_1, 2, x_104); lean_ctor_set(x_1, 1, x_103); lean_ctor_set(x_1, 0, x_107); lean_ctor_set_uint8(x_1, sizeof(void*)*4, x_108); return x_1; } } else { lean_object* x_109; lean_object* x_110; lean_object* x_111; lean_object* x_112; lean_object* x_113; lean_object* x_114; lean_object* x_115; lean_object* x_116; uint8_t x_117; lean_object* x_118; lean_object* x_119; uint8_t x_120; x_109 = lean_ctor_get(x_41, 1); x_110 = lean_ctor_get(x_41, 2); x_111 = lean_ctor_get(x_41, 3); lean_inc(x_111); lean_inc(x_110); lean_inc(x_109); lean_dec(x_41); x_112 = lean_ctor_get(x_43, 0); lean_inc(x_112); x_113 = lean_ctor_get(x_43, 1); lean_inc(x_113); x_114 = lean_ctor_get(x_43, 2); lean_inc(x_114); x_115 = lean_ctor_get(x_43, 3); lean_inc(x_115); if (lean_is_exclusive(x_43)) { lean_ctor_release(x_43, 0); lean_ctor_release(x_43, 1); lean_ctor_release(x_43, 2); lean_ctor_release(x_43, 3); x_116 = x_43; } else { lean_dec_ref(x_43); x_116 = lean_box(0); } x_117 = 1; if (lean_is_scalar(x_116)) { x_118 = lean_alloc_ctor(1, 4, 1); } else { x_118 = x_116; } lean_ctor_set(x_118, 0, x_35); lean_ctor_set(x_118, 1, x_36); lean_ctor_set(x_118, 2, x_37); lean_ctor_set(x_118, 3, x_112); lean_ctor_set_uint8(x_118, sizeof(void*)*4, x_117); x_119 = lean_alloc_ctor(1, 4, 1); lean_ctor_set(x_119, 0, x_115); lean_ctor_set(x_119, 1, x_109); lean_ctor_set(x_119, 2, x_110); lean_ctor_set(x_119, 3, x_111); lean_ctor_set_uint8(x_119, sizeof(void*)*4, x_117); x_120 = 0; lean_ctor_set(x_1, 3, x_119); lean_ctor_set(x_1, 2, x_114); lean_ctor_set(x_1, 1, x_113); lean_ctor_set(x_1, 0, x_118); lean_ctor_set_uint8(x_1, sizeof(void*)*4, x_120); return x_1; } } else { lean_object* x_121; x_121 = lean_ctor_get(x_41, 3); lean_inc(x_121); if (lean_obj_tag(x_121) == 0) { uint8_t x_122; lean_free_object(x_1); x_122 = !lean_is_exclusive(x_43); if (x_122 == 0) { lean_object* x_123; lean_object* x_124; lean_object* x_125; lean_object* x_126; uint8_t x_127; x_123 = lean_ctor_get(x_43, 3); lean_dec(x_123); x_124 = lean_ctor_get(x_43, 2); lean_dec(x_124); x_125 = lean_ctor_get(x_43, 1); lean_dec(x_125); x_126 = lean_ctor_get(x_43, 0); lean_dec(x_126); x_127 = 1; lean_ctor_set(x_43, 3, x_41); lean_ctor_set(x_43, 2, x_37); lean_ctor_set(x_43, 1, x_36); lean_ctor_set(x_43, 0, x_35); lean_ctor_set_uint8(x_43, sizeof(void*)*4, x_127); return x_43; } else { uint8_t x_128; lean_object* x_129; lean_dec(x_43); x_128 = 1; x_129 = lean_alloc_ctor(1, 4, 1); lean_ctor_set(x_129, 0, x_35); lean_ctor_set(x_129, 1, x_36); lean_ctor_set(x_129, 2, x_37); lean_ctor_set(x_129, 3, x_41); lean_ctor_set_uint8(x_129, sizeof(void*)*4, x_128); return x_129; } } else { uint8_t x_130; x_130 = lean_ctor_get_uint8(x_121, sizeof(void*)*4); if (x_130 == 0) { uint8_t x_131; lean_free_object(x_1); x_131 = !lean_is_exclusive(x_41); if (x_131 == 0) { lean_object* x_132; lean_object* x_133; uint8_t x_134; x_132 = lean_ctor_get(x_41, 3); lean_dec(x_132); x_133 = lean_ctor_get(x_41, 0); lean_dec(x_133); x_134 = !lean_is_exclusive(x_121); if (x_134 == 0) { lean_object* x_135; lean_object* x_136; lean_object* x_137; lean_object* x_138; uint8_t x_139; uint8_t x_140; x_135 = lean_ctor_get(x_121, 0); x_136 = lean_ctor_get(x_121, 1); x_137 = lean_ctor_get(x_121, 2); x_138 = lean_ctor_get(x_121, 3); x_139 = 1; lean_inc(x_43); lean_ctor_set(x_121, 3, x_43); lean_ctor_set(x_121, 2, x_37); lean_ctor_set(x_121, 1, x_36); lean_ctor_set(x_121, 0, x_35); x_140 = !lean_is_exclusive(x_43); if (x_140 == 0) { lean_object* x_141; lean_object* x_142; lean_object* x_143; lean_object* x_144; uint8_t x_145; x_141 = lean_ctor_get(x_43, 3); lean_dec(x_141); x_142 = lean_ctor_get(x_43, 2); lean_dec(x_142); x_143 = lean_ctor_get(x_43, 1); lean_dec(x_143); x_144 = lean_ctor_get(x_43, 0); lean_dec(x_144); lean_ctor_set_uint8(x_121, sizeof(void*)*4, x_139); lean_ctor_set(x_43, 3, x_138); lean_ctor_set(x_43, 2, x_137); lean_ctor_set(x_43, 1, x_136); lean_ctor_set(x_43, 0, x_135); lean_ctor_set_uint8(x_43, sizeof(void*)*4, x_139); x_145 = 0; lean_ctor_set(x_41, 3, x_43); lean_ctor_set(x_41, 0, x_121); lean_ctor_set_uint8(x_41, sizeof(void*)*4, x_145); return x_41; } else { lean_object* x_146; uint8_t x_147; lean_dec(x_43); lean_ctor_set_uint8(x_121, sizeof(void*)*4, x_139); x_146 = lean_alloc_ctor(1, 4, 1); lean_ctor_set(x_146, 0, x_135); lean_ctor_set(x_146, 1, x_136); lean_ctor_set(x_146, 2, x_137); lean_ctor_set(x_146, 3, x_138); lean_ctor_set_uint8(x_146, sizeof(void*)*4, x_139); x_147 = 0; lean_ctor_set(x_41, 3, x_146); lean_ctor_set(x_41, 0, x_121); lean_ctor_set_uint8(x_41, sizeof(void*)*4, x_147); return x_41; } } else { lean_object* x_148; lean_object* x_149; lean_object* x_150; lean_object* x_151; uint8_t x_152; lean_object* x_153; lean_object* x_154; lean_object* x_155; uint8_t x_156; x_148 = lean_ctor_get(x_121, 0); x_149 = lean_ctor_get(x_121, 1); x_150 = lean_ctor_get(x_121, 2); x_151 = lean_ctor_get(x_121, 3); lean_inc(x_151); lean_inc(x_150); lean_inc(x_149); lean_inc(x_148); lean_dec(x_121); x_152 = 1; lean_inc(x_43); x_153 = lean_alloc_ctor(1, 4, 1); lean_ctor_set(x_153, 0, x_35); lean_ctor_set(x_153, 1, x_36); lean_ctor_set(x_153, 2, x_37); lean_ctor_set(x_153, 3, x_43); if (lean_is_exclusive(x_43)) { lean_ctor_release(x_43, 0); lean_ctor_release(x_43, 1); lean_ctor_release(x_43, 2); lean_ctor_release(x_43, 3); x_154 = x_43; } else { lean_dec_ref(x_43); x_154 = lean_box(0); } lean_ctor_set_uint8(x_153, sizeof(void*)*4, x_152); if (lean_is_scalar(x_154)) { x_155 = lean_alloc_ctor(1, 4, 1); } else { x_155 = x_154; } lean_ctor_set(x_155, 0, x_148); lean_ctor_set(x_155, 1, x_149); lean_ctor_set(x_155, 2, x_150); lean_ctor_set(x_155, 3, x_151); lean_ctor_set_uint8(x_155, sizeof(void*)*4, x_152); x_156 = 0; lean_ctor_set(x_41, 3, x_155); lean_ctor_set(x_41, 0, x_153); lean_ctor_set_uint8(x_41, sizeof(void*)*4, x_156); return x_41; } } else { lean_object* x_157; lean_object* x_158; lean_object* x_159; lean_object* x_160; lean_object* x_161; lean_object* x_162; lean_object* x_163; uint8_t x_164; lean_object* x_165; lean_object* x_166; lean_object* x_167; uint8_t x_168; lean_object* x_169; x_157 = lean_ctor_get(x_41, 1); x_158 = lean_ctor_get(x_41, 2); lean_inc(x_158); lean_inc(x_157); lean_dec(x_41); x_159 = lean_ctor_get(x_121, 0); lean_inc(x_159); x_160 = lean_ctor_get(x_121, 1); lean_inc(x_160); x_161 = lean_ctor_get(x_121, 2); lean_inc(x_161); x_162 = lean_ctor_get(x_121, 3); lean_inc(x_162); if (lean_is_exclusive(x_121)) { lean_ctor_release(x_121, 0); lean_ctor_release(x_121, 1); lean_ctor_release(x_121, 2); lean_ctor_release(x_121, 3); x_163 = x_121; } else { lean_dec_ref(x_121); x_163 = lean_box(0); } x_164 = 1; lean_inc(x_43); if (lean_is_scalar(x_163)) { x_165 = lean_alloc_ctor(1, 4, 1); } else { x_165 = x_163; } lean_ctor_set(x_165, 0, x_35); lean_ctor_set(x_165, 1, x_36); lean_ctor_set(x_165, 2, x_37); lean_ctor_set(x_165, 3, x_43); if (lean_is_exclusive(x_43)) { lean_ctor_release(x_43, 0); lean_ctor_release(x_43, 1); lean_ctor_release(x_43, 2); lean_ctor_release(x_43, 3); x_166 = x_43; } else { lean_dec_ref(x_43); x_166 = lean_box(0); } lean_ctor_set_uint8(x_165, sizeof(void*)*4, x_164); if (lean_is_scalar(x_166)) { x_167 = lean_alloc_ctor(1, 4, 1); } else { x_167 = x_166; } lean_ctor_set(x_167, 0, x_159); lean_ctor_set(x_167, 1, x_160); lean_ctor_set(x_167, 2, x_161); lean_ctor_set(x_167, 3, x_162); lean_ctor_set_uint8(x_167, sizeof(void*)*4, x_164); x_168 = 0; x_169 = lean_alloc_ctor(1, 4, 1); lean_ctor_set(x_169, 0, x_165); lean_ctor_set(x_169, 1, x_157); lean_ctor_set(x_169, 2, x_158); lean_ctor_set(x_169, 3, x_167); lean_ctor_set_uint8(x_169, sizeof(void*)*4, x_168); return x_169; } } else { uint8_t x_170; x_170 = !lean_is_exclusive(x_41); if (x_170 == 0) { lean_object* x_171; lean_object* x_172; uint8_t x_173; x_171 = lean_ctor_get(x_41, 3); lean_dec(x_171); x_172 = lean_ctor_get(x_41, 0); lean_dec(x_172); x_173 = !lean_is_exclusive(x_43); if (x_173 == 0) { uint8_t x_174; lean_ctor_set_uint8(x_43, sizeof(void*)*4, x_130); x_174 = 1; lean_ctor_set(x_1, 3, x_41); lean_ctor_set_uint8(x_1, sizeof(void*)*4, x_174); return x_1; } else { lean_object* x_175; lean_object* x_176; lean_object* x_177; lean_object* x_178; lean_object* x_179; uint8_t x_180; x_175 = lean_ctor_get(x_43, 0); x_176 = lean_ctor_get(x_43, 1); x_177 = lean_ctor_get(x_43, 2); x_178 = lean_ctor_get(x_43, 3); lean_inc(x_178); lean_inc(x_177); lean_inc(x_176); lean_inc(x_175); lean_dec(x_43); x_179 = lean_alloc_ctor(1, 4, 1); lean_ctor_set(x_179, 0, x_175); lean_ctor_set(x_179, 1, x_176); lean_ctor_set(x_179, 2, x_177); lean_ctor_set(x_179, 3, x_178); lean_ctor_set_uint8(x_179, sizeof(void*)*4, x_130); lean_ctor_set(x_41, 0, x_179); x_180 = 1; lean_ctor_set(x_1, 3, x_41); lean_ctor_set_uint8(x_1, sizeof(void*)*4, x_180); return x_1; } } else { lean_object* x_181; lean_object* x_182; lean_object* x_183; lean_object* x_184; lean_object* x_185; lean_object* x_186; lean_object* x_187; lean_object* x_188; lean_object* x_189; uint8_t x_190; x_181 = lean_ctor_get(x_41, 1); x_182 = lean_ctor_get(x_41, 2); lean_inc(x_182); lean_inc(x_181); lean_dec(x_41); x_183 = lean_ctor_get(x_43, 0); lean_inc(x_183); x_184 = lean_ctor_get(x_43, 1); lean_inc(x_184); x_185 = lean_ctor_get(x_43, 2); lean_inc(x_185); x_186 = lean_ctor_get(x_43, 3); lean_inc(x_186); if (lean_is_exclusive(x_43)) { lean_ctor_release(x_43, 0); lean_ctor_release(x_43, 1); lean_ctor_release(x_43, 2); lean_ctor_release(x_43, 3); x_187 = x_43; } else { lean_dec_ref(x_43); x_187 = lean_box(0); } if (lean_is_scalar(x_187)) { x_188 = lean_alloc_ctor(1, 4, 1); } else { x_188 = x_187; } lean_ctor_set(x_188, 0, x_183); lean_ctor_set(x_188, 1, x_184); lean_ctor_set(x_188, 2, x_185); lean_ctor_set(x_188, 3, x_186); lean_ctor_set_uint8(x_188, sizeof(void*)*4, x_130); x_189 = lean_alloc_ctor(1, 4, 1); lean_ctor_set(x_189, 0, x_188); lean_ctor_set(x_189, 1, x_181); lean_ctor_set(x_189, 2, x_182); lean_ctor_set(x_189, 3, x_121); lean_ctor_set_uint8(x_189, sizeof(void*)*4, x_42); x_190 = 1; lean_ctor_set(x_1, 3, x_189); lean_ctor_set_uint8(x_1, sizeof(void*)*4, x_190); return x_1; } } } } } } else { uint8_t x_191; x_191 = 1; lean_ctor_set(x_1, 3, x_41); lean_ctor_set_uint8(x_1, sizeof(void*)*4, x_191); return x_1; } } else { uint8_t x_192; lean_dec(x_37); lean_dec(x_36); x_192 = 1; lean_ctor_set(x_1, 2, x_3); lean_ctor_set(x_1, 1, x_2); lean_ctor_set_uint8(x_1, sizeof(void*)*4, x_192); return x_1; } } else { lean_object* x_193; uint8_t x_194; x_193 = l_Lean_RBNode_ins___at___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonWorkspaceEdit____x40_Lean_Data_Lsp_Basic___hyg_4660____spec__10(x_35, x_2, x_3); x_194 = lean_ctor_get_uint8(x_193, sizeof(void*)*4); if (x_194 == 0) { lean_object* x_195; x_195 = lean_ctor_get(x_193, 0); lean_inc(x_195); if (lean_obj_tag(x_195) == 0) { lean_object* x_196; x_196 = lean_ctor_get(x_193, 3); lean_inc(x_196); if (lean_obj_tag(x_196) == 0) { uint8_t x_197; x_197 = !lean_is_exclusive(x_193); if (x_197 == 0) { lean_object* x_198; lean_object* x_199; uint8_t x_200; x_198 = lean_ctor_get(x_193, 3); lean_dec(x_198); x_199 = lean_ctor_get(x_193, 0); lean_dec(x_199); lean_ctor_set(x_193, 0, x_196); x_200 = 1; lean_ctor_set(x_1, 0, x_193); lean_ctor_set_uint8(x_1, sizeof(void*)*4, x_200); return x_1; } else { lean_object* x_201; lean_object* x_202; lean_object* x_203; uint8_t x_204; x_201 = lean_ctor_get(x_193, 1); x_202 = lean_ctor_get(x_193, 2); lean_inc(x_202); lean_inc(x_201); lean_dec(x_193); x_203 = lean_alloc_ctor(1, 4, 1); lean_ctor_set(x_203, 0, x_196); lean_ctor_set(x_203, 1, x_201); lean_ctor_set(x_203, 2, x_202); lean_ctor_set(x_203, 3, x_196); lean_ctor_set_uint8(x_203, sizeof(void*)*4, x_194); x_204 = 1; lean_ctor_set(x_1, 0, x_203); lean_ctor_set_uint8(x_1, sizeof(void*)*4, x_204); return x_1; } } else { uint8_t x_205; x_205 = lean_ctor_get_uint8(x_196, sizeof(void*)*4); if (x_205 == 0) { uint8_t x_206; x_206 = !lean_is_exclusive(x_193); if (x_206 == 0) { lean_object* x_207; lean_object* x_208; lean_object* x_209; lean_object* x_210; uint8_t x_211; x_207 = lean_ctor_get(x_193, 1); x_208 = lean_ctor_get(x_193, 2); x_209 = lean_ctor_get(x_193, 3); lean_dec(x_209); x_210 = lean_ctor_get(x_193, 0); lean_dec(x_210); x_211 = !lean_is_exclusive(x_196); if (x_211 == 0) { lean_object* x_212; lean_object* x_213; lean_object* x_214; lean_object* x_215; uint8_t x_216; uint8_t x_217; x_212 = lean_ctor_get(x_196, 0); x_213 = lean_ctor_get(x_196, 1); x_214 = lean_ctor_get(x_196, 2); x_215 = lean_ctor_get(x_196, 3); x_216 = 1; lean_ctor_set(x_196, 3, x_212); lean_ctor_set(x_196, 2, x_208); lean_ctor_set(x_196, 1, x_207); lean_ctor_set(x_196, 0, x_195); lean_ctor_set_uint8(x_196, sizeof(void*)*4, x_216); lean_ctor_set(x_193, 3, x_38); lean_ctor_set(x_193, 2, x_37); lean_ctor_set(x_193, 1, x_36); lean_ctor_set(x_193, 0, x_215); lean_ctor_set_uint8(x_193, sizeof(void*)*4, x_216); x_217 = 0; lean_ctor_set(x_1, 3, x_193); lean_ctor_set(x_1, 2, x_214); lean_ctor_set(x_1, 1, x_213); lean_ctor_set(x_1, 0, x_196); lean_ctor_set_uint8(x_1, sizeof(void*)*4, x_217); return x_1; } else { lean_object* x_218; lean_object* x_219; lean_object* x_220; lean_object* x_221; uint8_t x_222; lean_object* x_223; uint8_t x_224; x_218 = lean_ctor_get(x_196, 0); x_219 = lean_ctor_get(x_196, 1); x_220 = lean_ctor_get(x_196, 2); x_221 = lean_ctor_get(x_196, 3); lean_inc(x_221); lean_inc(x_220); lean_inc(x_219); lean_inc(x_218); lean_dec(x_196); x_222 = 1; x_223 = lean_alloc_ctor(1, 4, 1); lean_ctor_set(x_223, 0, x_195); lean_ctor_set(x_223, 1, x_207); lean_ctor_set(x_223, 2, x_208); lean_ctor_set(x_223, 3, x_218); lean_ctor_set_uint8(x_223, sizeof(void*)*4, x_222); lean_ctor_set(x_193, 3, x_38); lean_ctor_set(x_193, 2, x_37); lean_ctor_set(x_193, 1, x_36); lean_ctor_set(x_193, 0, x_221); lean_ctor_set_uint8(x_193, sizeof(void*)*4, x_222); x_224 = 0; lean_ctor_set(x_1, 3, x_193); lean_ctor_set(x_1, 2, x_220); lean_ctor_set(x_1, 1, x_219); lean_ctor_set(x_1, 0, x_223); lean_ctor_set_uint8(x_1, sizeof(void*)*4, x_224); return x_1; } } else { lean_object* x_225; lean_object* x_226; lean_object* x_227; lean_object* x_228; lean_object* x_229; lean_object* x_230; lean_object* x_231; uint8_t x_232; lean_object* x_233; lean_object* x_234; uint8_t x_235; x_225 = lean_ctor_get(x_193, 1); x_226 = lean_ctor_get(x_193, 2); lean_inc(x_226); lean_inc(x_225); lean_dec(x_193); x_227 = lean_ctor_get(x_196, 0); lean_inc(x_227); x_228 = lean_ctor_get(x_196, 1); lean_inc(x_228); x_229 = lean_ctor_get(x_196, 2); lean_inc(x_229); x_230 = lean_ctor_get(x_196, 3); lean_inc(x_230); if (lean_is_exclusive(x_196)) { lean_ctor_release(x_196, 0); lean_ctor_release(x_196, 1); lean_ctor_release(x_196, 2); lean_ctor_release(x_196, 3); x_231 = x_196; } else { lean_dec_ref(x_196); x_231 = lean_box(0); } x_232 = 1; if (lean_is_scalar(x_231)) { x_233 = lean_alloc_ctor(1, 4, 1); } else { x_233 = x_231; } lean_ctor_set(x_233, 0, x_195); lean_ctor_set(x_233, 1, x_225); lean_ctor_set(x_233, 2, x_226); lean_ctor_set(x_233, 3, x_227); lean_ctor_set_uint8(x_233, sizeof(void*)*4, x_232); x_234 = lean_alloc_ctor(1, 4, 1); lean_ctor_set(x_234, 0, x_230); lean_ctor_set(x_234, 1, x_36); lean_ctor_set(x_234, 2, x_37); lean_ctor_set(x_234, 3, x_38); lean_ctor_set_uint8(x_234, sizeof(void*)*4, x_232); x_235 = 0; lean_ctor_set(x_1, 3, x_234); lean_ctor_set(x_1, 2, x_229); lean_ctor_set(x_1, 1, x_228); lean_ctor_set(x_1, 0, x_233); lean_ctor_set_uint8(x_1, sizeof(void*)*4, x_235); return x_1; } } else { uint8_t x_236; lean_free_object(x_1); x_236 = !lean_is_exclusive(x_196); if (x_236 == 0) { lean_object* x_237; lean_object* x_238; lean_object* x_239; lean_object* x_240; uint8_t x_241; x_237 = lean_ctor_get(x_196, 3); lean_dec(x_237); x_238 = lean_ctor_get(x_196, 2); lean_dec(x_238); x_239 = lean_ctor_get(x_196, 1); lean_dec(x_239); x_240 = lean_ctor_get(x_196, 0); lean_dec(x_240); x_241 = 1; lean_ctor_set(x_196, 3, x_38); lean_ctor_set(x_196, 2, x_37); lean_ctor_set(x_196, 1, x_36); lean_ctor_set(x_196, 0, x_193); lean_ctor_set_uint8(x_196, sizeof(void*)*4, x_241); return x_196; } else { uint8_t x_242; lean_object* x_243; lean_dec(x_196); x_242 = 1; x_243 = lean_alloc_ctor(1, 4, 1); lean_ctor_set(x_243, 0, x_193); lean_ctor_set(x_243, 1, x_36); lean_ctor_set(x_243, 2, x_37); lean_ctor_set(x_243, 3, x_38); lean_ctor_set_uint8(x_243, sizeof(void*)*4, x_242); return x_243; } } } } else { uint8_t x_244; x_244 = lean_ctor_get_uint8(x_195, sizeof(void*)*4); if (x_244 == 0) { uint8_t x_245; x_245 = !lean_is_exclusive(x_193); if (x_245 == 0) { lean_object* x_246; lean_object* x_247; lean_object* x_248; lean_object* x_249; uint8_t x_250; x_246 = lean_ctor_get(x_193, 1); x_247 = lean_ctor_get(x_193, 2); x_248 = lean_ctor_get(x_193, 3); x_249 = lean_ctor_get(x_193, 0); lean_dec(x_249); x_250 = !lean_is_exclusive(x_195); if (x_250 == 0) { uint8_t x_251; uint8_t x_252; x_251 = 1; lean_ctor_set_uint8(x_195, sizeof(void*)*4, x_251); lean_ctor_set(x_193, 3, x_38); lean_ctor_set(x_193, 2, x_37); lean_ctor_set(x_193, 1, x_36); lean_ctor_set(x_193, 0, x_248); lean_ctor_set_uint8(x_193, sizeof(void*)*4, x_251); x_252 = 0; lean_ctor_set(x_1, 3, x_193); lean_ctor_set(x_1, 2, x_247); lean_ctor_set(x_1, 1, x_246); lean_ctor_set(x_1, 0, x_195); lean_ctor_set_uint8(x_1, sizeof(void*)*4, x_252); return x_1; } else { lean_object* x_253; lean_object* x_254; lean_object* x_255; lean_object* x_256; uint8_t x_257; lean_object* x_258; uint8_t x_259; x_253 = lean_ctor_get(x_195, 0); x_254 = lean_ctor_get(x_195, 1); x_255 = lean_ctor_get(x_195, 2); x_256 = lean_ctor_get(x_195, 3); lean_inc(x_256); lean_inc(x_255); lean_inc(x_254); lean_inc(x_253); lean_dec(x_195); x_257 = 1; x_258 = lean_alloc_ctor(1, 4, 1); lean_ctor_set(x_258, 0, x_253); lean_ctor_set(x_258, 1, x_254); lean_ctor_set(x_258, 2, x_255); lean_ctor_set(x_258, 3, x_256); lean_ctor_set_uint8(x_258, sizeof(void*)*4, x_257); lean_ctor_set(x_193, 3, x_38); lean_ctor_set(x_193, 2, x_37); lean_ctor_set(x_193, 1, x_36); lean_ctor_set(x_193, 0, x_248); lean_ctor_set_uint8(x_193, sizeof(void*)*4, x_257); x_259 = 0; lean_ctor_set(x_1, 3, x_193); lean_ctor_set(x_1, 2, x_247); lean_ctor_set(x_1, 1, x_246); lean_ctor_set(x_1, 0, x_258); lean_ctor_set_uint8(x_1, sizeof(void*)*4, x_259); return x_1; } } else { lean_object* x_260; lean_object* x_261; lean_object* x_262; lean_object* x_263; lean_object* x_264; lean_object* x_265; lean_object* x_266; lean_object* x_267; uint8_t x_268; lean_object* x_269; lean_object* x_270; uint8_t x_271; x_260 = lean_ctor_get(x_193, 1); x_261 = lean_ctor_get(x_193, 2); x_262 = lean_ctor_get(x_193, 3); lean_inc(x_262); lean_inc(x_261); lean_inc(x_260); lean_dec(x_193); x_263 = lean_ctor_get(x_195, 0); lean_inc(x_263); x_264 = lean_ctor_get(x_195, 1); lean_inc(x_264); x_265 = lean_ctor_get(x_195, 2); lean_inc(x_265); x_266 = lean_ctor_get(x_195, 3); lean_inc(x_266); if (lean_is_exclusive(x_195)) { lean_ctor_release(x_195, 0); lean_ctor_release(x_195, 1); lean_ctor_release(x_195, 2); lean_ctor_release(x_195, 3); x_267 = x_195; } else { lean_dec_ref(x_195); x_267 = lean_box(0); } x_268 = 1; if (lean_is_scalar(x_267)) { x_269 = lean_alloc_ctor(1, 4, 1); } else { x_269 = x_267; } lean_ctor_set(x_269, 0, x_263); lean_ctor_set(x_269, 1, x_264); lean_ctor_set(x_269, 2, x_265); lean_ctor_set(x_269, 3, x_266); lean_ctor_set_uint8(x_269, sizeof(void*)*4, x_268); x_270 = lean_alloc_ctor(1, 4, 1); lean_ctor_set(x_270, 0, x_262); lean_ctor_set(x_270, 1, x_36); lean_ctor_set(x_270, 2, x_37); lean_ctor_set(x_270, 3, x_38); lean_ctor_set_uint8(x_270, sizeof(void*)*4, x_268); x_271 = 0; lean_ctor_set(x_1, 3, x_270); lean_ctor_set(x_1, 2, x_261); lean_ctor_set(x_1, 1, x_260); lean_ctor_set(x_1, 0, x_269); lean_ctor_set_uint8(x_1, sizeof(void*)*4, x_271); return x_1; } } else { lean_object* x_272; x_272 = lean_ctor_get(x_193, 3); lean_inc(x_272); if (lean_obj_tag(x_272) == 0) { uint8_t x_273; lean_free_object(x_1); x_273 = !lean_is_exclusive(x_195); if (x_273 == 0) { lean_object* x_274; lean_object* x_275; lean_object* x_276; lean_object* x_277; uint8_t x_278; x_274 = lean_ctor_get(x_195, 3); lean_dec(x_274); x_275 = lean_ctor_get(x_195, 2); lean_dec(x_275); x_276 = lean_ctor_get(x_195, 1); lean_dec(x_276); x_277 = lean_ctor_get(x_195, 0); lean_dec(x_277); x_278 = 1; lean_ctor_set(x_195, 3, x_38); lean_ctor_set(x_195, 2, x_37); lean_ctor_set(x_195, 1, x_36); lean_ctor_set(x_195, 0, x_193); lean_ctor_set_uint8(x_195, sizeof(void*)*4, x_278); return x_195; } else { uint8_t x_279; lean_object* x_280; lean_dec(x_195); x_279 = 1; x_280 = lean_alloc_ctor(1, 4, 1); lean_ctor_set(x_280, 0, x_193); lean_ctor_set(x_280, 1, x_36); lean_ctor_set(x_280, 2, x_37); lean_ctor_set(x_280, 3, x_38); lean_ctor_set_uint8(x_280, sizeof(void*)*4, x_279); return x_280; } } else { uint8_t x_281; x_281 = lean_ctor_get_uint8(x_272, sizeof(void*)*4); if (x_281 == 0) { uint8_t x_282; lean_free_object(x_1); x_282 = !lean_is_exclusive(x_193); if (x_282 == 0) { lean_object* x_283; lean_object* x_284; lean_object* x_285; lean_object* x_286; uint8_t x_287; x_283 = lean_ctor_get(x_193, 1); x_284 = lean_ctor_get(x_193, 2); x_285 = lean_ctor_get(x_193, 3); lean_dec(x_285); x_286 = lean_ctor_get(x_193, 0); lean_dec(x_286); x_287 = !lean_is_exclusive(x_272); if (x_287 == 0) { lean_object* x_288; lean_object* x_289; lean_object* x_290; lean_object* x_291; uint8_t x_292; uint8_t x_293; x_288 = lean_ctor_get(x_272, 0); x_289 = lean_ctor_get(x_272, 1); x_290 = lean_ctor_get(x_272, 2); x_291 = lean_ctor_get(x_272, 3); x_292 = 1; lean_inc(x_195); lean_ctor_set(x_272, 3, x_288); lean_ctor_set(x_272, 2, x_284); lean_ctor_set(x_272, 1, x_283); lean_ctor_set(x_272, 0, x_195); x_293 = !lean_is_exclusive(x_195); if (x_293 == 0) { lean_object* x_294; lean_object* x_295; lean_object* x_296; lean_object* x_297; uint8_t x_298; x_294 = lean_ctor_get(x_195, 3); lean_dec(x_294); x_295 = lean_ctor_get(x_195, 2); lean_dec(x_295); x_296 = lean_ctor_get(x_195, 1); lean_dec(x_296); x_297 = lean_ctor_get(x_195, 0); lean_dec(x_297); lean_ctor_set_uint8(x_272, sizeof(void*)*4, x_292); lean_ctor_set(x_195, 3, x_38); lean_ctor_set(x_195, 2, x_37); lean_ctor_set(x_195, 1, x_36); lean_ctor_set(x_195, 0, x_291); lean_ctor_set_uint8(x_195, sizeof(void*)*4, x_292); x_298 = 0; lean_ctor_set(x_193, 3, x_195); lean_ctor_set(x_193, 2, x_290); lean_ctor_set(x_193, 1, x_289); lean_ctor_set(x_193, 0, x_272); lean_ctor_set_uint8(x_193, sizeof(void*)*4, x_298); return x_193; } else { lean_object* x_299; uint8_t x_300; lean_dec(x_195); lean_ctor_set_uint8(x_272, sizeof(void*)*4, x_292); x_299 = lean_alloc_ctor(1, 4, 1); lean_ctor_set(x_299, 0, x_291); lean_ctor_set(x_299, 1, x_36); lean_ctor_set(x_299, 2, x_37); lean_ctor_set(x_299, 3, x_38); lean_ctor_set_uint8(x_299, sizeof(void*)*4, x_292); x_300 = 0; lean_ctor_set(x_193, 3, x_299); lean_ctor_set(x_193, 2, x_290); lean_ctor_set(x_193, 1, x_289); lean_ctor_set(x_193, 0, x_272); lean_ctor_set_uint8(x_193, sizeof(void*)*4, x_300); return x_193; } } else { lean_object* x_301; lean_object* x_302; lean_object* x_303; lean_object* x_304; uint8_t x_305; lean_object* x_306; lean_object* x_307; lean_object* x_308; uint8_t x_309; x_301 = lean_ctor_get(x_272, 0); x_302 = lean_ctor_get(x_272, 1); x_303 = lean_ctor_get(x_272, 2); x_304 = lean_ctor_get(x_272, 3); lean_inc(x_304); lean_inc(x_303); lean_inc(x_302); lean_inc(x_301); lean_dec(x_272); x_305 = 1; lean_inc(x_195); x_306 = lean_alloc_ctor(1, 4, 1); lean_ctor_set(x_306, 0, x_195); lean_ctor_set(x_306, 1, x_283); lean_ctor_set(x_306, 2, x_284); lean_ctor_set(x_306, 3, x_301); if (lean_is_exclusive(x_195)) { lean_ctor_release(x_195, 0); lean_ctor_release(x_195, 1); lean_ctor_release(x_195, 2); lean_ctor_release(x_195, 3); x_307 = x_195; } else { lean_dec_ref(x_195); x_307 = lean_box(0); } lean_ctor_set_uint8(x_306, sizeof(void*)*4, x_305); if (lean_is_scalar(x_307)) { x_308 = lean_alloc_ctor(1, 4, 1); } else { x_308 = x_307; } lean_ctor_set(x_308, 0, x_304); lean_ctor_set(x_308, 1, x_36); lean_ctor_set(x_308, 2, x_37); lean_ctor_set(x_308, 3, x_38); lean_ctor_set_uint8(x_308, sizeof(void*)*4, x_305); x_309 = 0; lean_ctor_set(x_193, 3, x_308); lean_ctor_set(x_193, 2, x_303); lean_ctor_set(x_193, 1, x_302); lean_ctor_set(x_193, 0, x_306); lean_ctor_set_uint8(x_193, sizeof(void*)*4, x_309); return x_193; } } else { lean_object* x_310; lean_object* x_311; lean_object* x_312; lean_object* x_313; lean_object* x_314; lean_object* x_315; lean_object* x_316; uint8_t x_317; lean_object* x_318; lean_object* x_319; lean_object* x_320; uint8_t x_321; lean_object* x_322; x_310 = lean_ctor_get(x_193, 1); x_311 = lean_ctor_get(x_193, 2); lean_inc(x_311); lean_inc(x_310); lean_dec(x_193); x_312 = lean_ctor_get(x_272, 0); lean_inc(x_312); x_313 = lean_ctor_get(x_272, 1); lean_inc(x_313); x_314 = lean_ctor_get(x_272, 2); lean_inc(x_314); x_315 = lean_ctor_get(x_272, 3); lean_inc(x_315); if (lean_is_exclusive(x_272)) { lean_ctor_release(x_272, 0); lean_ctor_release(x_272, 1); lean_ctor_release(x_272, 2); lean_ctor_release(x_272, 3); x_316 = x_272; } else { lean_dec_ref(x_272); x_316 = lean_box(0); } x_317 = 1; lean_inc(x_195); if (lean_is_scalar(x_316)) { x_318 = lean_alloc_ctor(1, 4, 1); } else { x_318 = x_316; } lean_ctor_set(x_318, 0, x_195); lean_ctor_set(x_318, 1, x_310); lean_ctor_set(x_318, 2, x_311); lean_ctor_set(x_318, 3, x_312); if (lean_is_exclusive(x_195)) { lean_ctor_release(x_195, 0); lean_ctor_release(x_195, 1); lean_ctor_release(x_195, 2); lean_ctor_release(x_195, 3); x_319 = x_195; } else { lean_dec_ref(x_195); x_319 = lean_box(0); } lean_ctor_set_uint8(x_318, sizeof(void*)*4, x_317); if (lean_is_scalar(x_319)) { x_320 = lean_alloc_ctor(1, 4, 1); } else { x_320 = x_319; } lean_ctor_set(x_320, 0, x_315); lean_ctor_set(x_320, 1, x_36); lean_ctor_set(x_320, 2, x_37); lean_ctor_set(x_320, 3, x_38); lean_ctor_set_uint8(x_320, sizeof(void*)*4, x_317); x_321 = 0; x_322 = lean_alloc_ctor(1, 4, 1); lean_ctor_set(x_322, 0, x_318); lean_ctor_set(x_322, 1, x_313); lean_ctor_set(x_322, 2, x_314); lean_ctor_set(x_322, 3, x_320); lean_ctor_set_uint8(x_322, sizeof(void*)*4, x_321); return x_322; } } else { uint8_t x_323; x_323 = !lean_is_exclusive(x_193); if (x_323 == 0) { lean_object* x_324; lean_object* x_325; uint8_t x_326; x_324 = lean_ctor_get(x_193, 3); lean_dec(x_324); x_325 = lean_ctor_get(x_193, 0); lean_dec(x_325); x_326 = !lean_is_exclusive(x_195); if (x_326 == 0) { uint8_t x_327; lean_ctor_set_uint8(x_195, sizeof(void*)*4, x_281); x_327 = 1; lean_ctor_set(x_1, 0, x_193); lean_ctor_set_uint8(x_1, sizeof(void*)*4, x_327); return x_1; } else { lean_object* x_328; lean_object* x_329; lean_object* x_330; lean_object* x_331; lean_object* x_332; uint8_t x_333; x_328 = lean_ctor_get(x_195, 0); x_329 = lean_ctor_get(x_195, 1); x_330 = lean_ctor_get(x_195, 2); x_331 = lean_ctor_get(x_195, 3); lean_inc(x_331); lean_inc(x_330); lean_inc(x_329); lean_inc(x_328); lean_dec(x_195); x_332 = lean_alloc_ctor(1, 4, 1); lean_ctor_set(x_332, 0, x_328); lean_ctor_set(x_332, 1, x_329); lean_ctor_set(x_332, 2, x_330); lean_ctor_set(x_332, 3, x_331); lean_ctor_set_uint8(x_332, sizeof(void*)*4, x_281); lean_ctor_set(x_193, 0, x_332); x_333 = 1; lean_ctor_set(x_1, 0, x_193); lean_ctor_set_uint8(x_1, sizeof(void*)*4, x_333); return x_1; } } else { lean_object* x_334; lean_object* x_335; lean_object* x_336; lean_object* x_337; lean_object* x_338; lean_object* x_339; lean_object* x_340; lean_object* x_341; lean_object* x_342; uint8_t x_343; x_334 = lean_ctor_get(x_193, 1); x_335 = lean_ctor_get(x_193, 2); lean_inc(x_335); lean_inc(x_334); lean_dec(x_193); x_336 = lean_ctor_get(x_195, 0); lean_inc(x_336); x_337 = lean_ctor_get(x_195, 1); lean_inc(x_337); x_338 = lean_ctor_get(x_195, 2); lean_inc(x_338); x_339 = lean_ctor_get(x_195, 3); lean_inc(x_339); if (lean_is_exclusive(x_195)) { lean_ctor_release(x_195, 0); lean_ctor_release(x_195, 1); lean_ctor_release(x_195, 2); lean_ctor_release(x_195, 3); x_340 = x_195; } else { lean_dec_ref(x_195); x_340 = lean_box(0); } if (lean_is_scalar(x_340)) { x_341 = lean_alloc_ctor(1, 4, 1); } else { x_341 = x_340; } lean_ctor_set(x_341, 0, x_336); lean_ctor_set(x_341, 1, x_337); lean_ctor_set(x_341, 2, x_338); lean_ctor_set(x_341, 3, x_339); lean_ctor_set_uint8(x_341, sizeof(void*)*4, x_281); x_342 = lean_alloc_ctor(1, 4, 1); lean_ctor_set(x_342, 0, x_341); lean_ctor_set(x_342, 1, x_334); lean_ctor_set(x_342, 2, x_335); lean_ctor_set(x_342, 3, x_272); lean_ctor_set_uint8(x_342, sizeof(void*)*4, x_194); x_343 = 1; lean_ctor_set(x_1, 0, x_342); lean_ctor_set_uint8(x_1, sizeof(void*)*4, x_343); return x_1; } } } } } } else { uint8_t x_344; x_344 = 1; lean_ctor_set(x_1, 0, x_193); lean_ctor_set_uint8(x_1, sizeof(void*)*4, x_344); return x_1; } } } else { lean_object* x_345; lean_object* x_346; lean_object* x_347; lean_object* x_348; uint8_t x_349; x_345 = lean_ctor_get(x_1, 0); x_346 = lean_ctor_get(x_1, 1); x_347 = lean_ctor_get(x_1, 2); x_348 = lean_ctor_get(x_1, 3); lean_inc(x_348); lean_inc(x_347); lean_inc(x_346); lean_inc(x_345); lean_dec(x_1); x_349 = lean_string_dec_lt(x_2, x_346); if (x_349 == 0) { uint8_t x_350; x_350 = lean_string_dec_eq(x_2, x_346); if (x_350 == 0) { lean_object* x_351; uint8_t x_352; x_351 = l_Lean_RBNode_ins___at___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonWorkspaceEdit____x40_Lean_Data_Lsp_Basic___hyg_4660____spec__10(x_348, x_2, x_3); x_352 = lean_ctor_get_uint8(x_351, sizeof(void*)*4); if (x_352 == 0) { lean_object* x_353; x_353 = lean_ctor_get(x_351, 0); lean_inc(x_353); if (lean_obj_tag(x_353) == 0) { lean_object* x_354; x_354 = lean_ctor_get(x_351, 3); lean_inc(x_354); if (lean_obj_tag(x_354) == 0) { lean_object* x_355; lean_object* x_356; lean_object* x_357; lean_object* x_358; uint8_t x_359; lean_object* x_360; x_355 = lean_ctor_get(x_351, 1); lean_inc(x_355); x_356 = lean_ctor_get(x_351, 2); lean_inc(x_356); if (lean_is_exclusive(x_351)) { lean_ctor_release(x_351, 0); lean_ctor_release(x_351, 1); lean_ctor_release(x_351, 2); lean_ctor_release(x_351, 3); x_357 = x_351; } else { lean_dec_ref(x_351); x_357 = lean_box(0); } if (lean_is_scalar(x_357)) { x_358 = lean_alloc_ctor(1, 4, 1); } else { x_358 = x_357; } lean_ctor_set(x_358, 0, x_354); lean_ctor_set(x_358, 1, x_355); lean_ctor_set(x_358, 2, x_356); lean_ctor_set(x_358, 3, x_354); lean_ctor_set_uint8(x_358, sizeof(void*)*4, x_352); x_359 = 1; x_360 = lean_alloc_ctor(1, 4, 1); lean_ctor_set(x_360, 0, x_345); lean_ctor_set(x_360, 1, x_346); lean_ctor_set(x_360, 2, x_347); lean_ctor_set(x_360, 3, x_358); lean_ctor_set_uint8(x_360, sizeof(void*)*4, x_359); return x_360; } else { uint8_t x_361; x_361 = lean_ctor_get_uint8(x_354, sizeof(void*)*4); if (x_361 == 0) { lean_object* x_362; lean_object* x_363; lean_object* x_364; lean_object* x_365; lean_object* x_366; lean_object* x_367; lean_object* x_368; lean_object* x_369; uint8_t x_370; lean_object* x_371; lean_object* x_372; uint8_t x_373; lean_object* x_374; x_362 = lean_ctor_get(x_351, 1); lean_inc(x_362); x_363 = lean_ctor_get(x_351, 2); lean_inc(x_363); if (lean_is_exclusive(x_351)) { lean_ctor_release(x_351, 0); lean_ctor_release(x_351, 1); lean_ctor_release(x_351, 2); lean_ctor_release(x_351, 3); x_364 = x_351; } else { lean_dec_ref(x_351); x_364 = lean_box(0); } x_365 = lean_ctor_get(x_354, 0); lean_inc(x_365); x_366 = lean_ctor_get(x_354, 1); lean_inc(x_366); x_367 = lean_ctor_get(x_354, 2); lean_inc(x_367); x_368 = lean_ctor_get(x_354, 3); lean_inc(x_368); if (lean_is_exclusive(x_354)) { lean_ctor_release(x_354, 0); lean_ctor_release(x_354, 1); lean_ctor_release(x_354, 2); lean_ctor_release(x_354, 3); x_369 = x_354; } else { lean_dec_ref(x_354); x_369 = lean_box(0); } x_370 = 1; if (lean_is_scalar(x_369)) { x_371 = lean_alloc_ctor(1, 4, 1); } else { x_371 = x_369; } lean_ctor_set(x_371, 0, x_345); lean_ctor_set(x_371, 1, x_346); lean_ctor_set(x_371, 2, x_347); lean_ctor_set(x_371, 3, x_353); lean_ctor_set_uint8(x_371, sizeof(void*)*4, x_370); if (lean_is_scalar(x_364)) { x_372 = lean_alloc_ctor(1, 4, 1); } else { x_372 = x_364; } lean_ctor_set(x_372, 0, x_365); lean_ctor_set(x_372, 1, x_366); lean_ctor_set(x_372, 2, x_367); lean_ctor_set(x_372, 3, x_368); lean_ctor_set_uint8(x_372, sizeof(void*)*4, x_370); x_373 = 0; x_374 = lean_alloc_ctor(1, 4, 1); lean_ctor_set(x_374, 0, x_371); lean_ctor_set(x_374, 1, x_362); lean_ctor_set(x_374, 2, x_363); lean_ctor_set(x_374, 3, x_372); lean_ctor_set_uint8(x_374, sizeof(void*)*4, x_373); return x_374; } else { lean_object* x_375; uint8_t x_376; lean_object* x_377; if (lean_is_exclusive(x_354)) { lean_ctor_release(x_354, 0); lean_ctor_release(x_354, 1); lean_ctor_release(x_354, 2); lean_ctor_release(x_354, 3); x_375 = x_354; } else { lean_dec_ref(x_354); x_375 = lean_box(0); } x_376 = 1; if (lean_is_scalar(x_375)) { x_377 = lean_alloc_ctor(1, 4, 1); } else { x_377 = x_375; } lean_ctor_set(x_377, 0, x_345); lean_ctor_set(x_377, 1, x_346); lean_ctor_set(x_377, 2, x_347); lean_ctor_set(x_377, 3, x_351); lean_ctor_set_uint8(x_377, sizeof(void*)*4, x_376); return x_377; } } } else { uint8_t x_378; x_378 = lean_ctor_get_uint8(x_353, sizeof(void*)*4); if (x_378 == 0) { lean_object* x_379; lean_object* x_380; lean_object* x_381; lean_object* x_382; lean_object* x_383; lean_object* x_384; lean_object* x_385; lean_object* x_386; lean_object* x_387; uint8_t x_388; lean_object* x_389; lean_object* x_390; uint8_t x_391; lean_object* x_392; x_379 = lean_ctor_get(x_351, 1); lean_inc(x_379); x_380 = lean_ctor_get(x_351, 2); lean_inc(x_380); x_381 = lean_ctor_get(x_351, 3); lean_inc(x_381); if (lean_is_exclusive(x_351)) { lean_ctor_release(x_351, 0); lean_ctor_release(x_351, 1); lean_ctor_release(x_351, 2); lean_ctor_release(x_351, 3); x_382 = x_351; } else { lean_dec_ref(x_351); x_382 = lean_box(0); } x_383 = lean_ctor_get(x_353, 0); lean_inc(x_383); x_384 = lean_ctor_get(x_353, 1); lean_inc(x_384); x_385 = lean_ctor_get(x_353, 2); lean_inc(x_385); x_386 = lean_ctor_get(x_353, 3); lean_inc(x_386); if (lean_is_exclusive(x_353)) { lean_ctor_release(x_353, 0); lean_ctor_release(x_353, 1); lean_ctor_release(x_353, 2); lean_ctor_release(x_353, 3); x_387 = x_353; } else { lean_dec_ref(x_353); x_387 = lean_box(0); } x_388 = 1; if (lean_is_scalar(x_387)) { x_389 = lean_alloc_ctor(1, 4, 1); } else { x_389 = x_387; } lean_ctor_set(x_389, 0, x_345); lean_ctor_set(x_389, 1, x_346); lean_ctor_set(x_389, 2, x_347); lean_ctor_set(x_389, 3, x_383); lean_ctor_set_uint8(x_389, sizeof(void*)*4, x_388); if (lean_is_scalar(x_382)) { x_390 = lean_alloc_ctor(1, 4, 1); } else { x_390 = x_382; } lean_ctor_set(x_390, 0, x_386); lean_ctor_set(x_390, 1, x_379); lean_ctor_set(x_390, 2, x_380); lean_ctor_set(x_390, 3, x_381); lean_ctor_set_uint8(x_390, sizeof(void*)*4, x_388); x_391 = 0; x_392 = lean_alloc_ctor(1, 4, 1); lean_ctor_set(x_392, 0, x_389); lean_ctor_set(x_392, 1, x_384); lean_ctor_set(x_392, 2, x_385); lean_ctor_set(x_392, 3, x_390); lean_ctor_set_uint8(x_392, sizeof(void*)*4, x_391); return x_392; } else { lean_object* x_393; x_393 = lean_ctor_get(x_351, 3); lean_inc(x_393); if (lean_obj_tag(x_393) == 0) { lean_object* x_394; uint8_t x_395; lean_object* x_396; if (lean_is_exclusive(x_353)) { lean_ctor_release(x_353, 0); lean_ctor_release(x_353, 1); lean_ctor_release(x_353, 2); lean_ctor_release(x_353, 3); x_394 = x_353; } else { lean_dec_ref(x_353); x_394 = lean_box(0); } x_395 = 1; if (lean_is_scalar(x_394)) { x_396 = lean_alloc_ctor(1, 4, 1); } else { x_396 = x_394; } lean_ctor_set(x_396, 0, x_345); lean_ctor_set(x_396, 1, x_346); lean_ctor_set(x_396, 2, x_347); lean_ctor_set(x_396, 3, x_351); lean_ctor_set_uint8(x_396, sizeof(void*)*4, x_395); return x_396; } else { uint8_t x_397; x_397 = lean_ctor_get_uint8(x_393, sizeof(void*)*4); if (x_397 == 0) { lean_object* x_398; lean_object* x_399; lean_object* x_400; lean_object* x_401; lean_object* x_402; lean_object* x_403; lean_object* x_404; lean_object* x_405; uint8_t x_406; lean_object* x_407; lean_object* x_408; lean_object* x_409; uint8_t x_410; lean_object* x_411; x_398 = lean_ctor_get(x_351, 1); lean_inc(x_398); x_399 = lean_ctor_get(x_351, 2); lean_inc(x_399); if (lean_is_exclusive(x_351)) { lean_ctor_release(x_351, 0); lean_ctor_release(x_351, 1); lean_ctor_release(x_351, 2); lean_ctor_release(x_351, 3); x_400 = x_351; } else { lean_dec_ref(x_351); x_400 = lean_box(0); } x_401 = lean_ctor_get(x_393, 0); lean_inc(x_401); x_402 = lean_ctor_get(x_393, 1); lean_inc(x_402); x_403 = lean_ctor_get(x_393, 2); lean_inc(x_403); x_404 = lean_ctor_get(x_393, 3); lean_inc(x_404); if (lean_is_exclusive(x_393)) { lean_ctor_release(x_393, 0); lean_ctor_release(x_393, 1); lean_ctor_release(x_393, 2); lean_ctor_release(x_393, 3); x_405 = x_393; } else { lean_dec_ref(x_393); x_405 = lean_box(0); } x_406 = 1; lean_inc(x_353); if (lean_is_scalar(x_405)) { x_407 = lean_alloc_ctor(1, 4, 1); } else { x_407 = x_405; } lean_ctor_set(x_407, 0, x_345); lean_ctor_set(x_407, 1, x_346); lean_ctor_set(x_407, 2, x_347); lean_ctor_set(x_407, 3, x_353); if (lean_is_exclusive(x_353)) { lean_ctor_release(x_353, 0); lean_ctor_release(x_353, 1); lean_ctor_release(x_353, 2); lean_ctor_release(x_353, 3); x_408 = x_353; } else { lean_dec_ref(x_353); x_408 = lean_box(0); } lean_ctor_set_uint8(x_407, sizeof(void*)*4, x_406); if (lean_is_scalar(x_408)) { x_409 = lean_alloc_ctor(1, 4, 1); } else { x_409 = x_408; } lean_ctor_set(x_409, 0, x_401); lean_ctor_set(x_409, 1, x_402); lean_ctor_set(x_409, 2, x_403); lean_ctor_set(x_409, 3, x_404); lean_ctor_set_uint8(x_409, sizeof(void*)*4, x_406); x_410 = 0; if (lean_is_scalar(x_400)) { x_411 = lean_alloc_ctor(1, 4, 1); } else { x_411 = x_400; } lean_ctor_set(x_411, 0, x_407); lean_ctor_set(x_411, 1, x_398); lean_ctor_set(x_411, 2, x_399); lean_ctor_set(x_411, 3, x_409); lean_ctor_set_uint8(x_411, sizeof(void*)*4, x_410); return x_411; } else { lean_object* x_412; lean_object* x_413; lean_object* x_414; lean_object* x_415; lean_object* x_416; lean_object* x_417; lean_object* x_418; lean_object* x_419; lean_object* x_420; lean_object* x_421; uint8_t x_422; lean_object* x_423; x_412 = lean_ctor_get(x_351, 1); lean_inc(x_412); x_413 = lean_ctor_get(x_351, 2); lean_inc(x_413); if (lean_is_exclusive(x_351)) { lean_ctor_release(x_351, 0); lean_ctor_release(x_351, 1); lean_ctor_release(x_351, 2); lean_ctor_release(x_351, 3); x_414 = x_351; } else { lean_dec_ref(x_351); x_414 = lean_box(0); } x_415 = lean_ctor_get(x_353, 0); lean_inc(x_415); x_416 = lean_ctor_get(x_353, 1); lean_inc(x_416); x_417 = lean_ctor_get(x_353, 2); lean_inc(x_417); x_418 = lean_ctor_get(x_353, 3); lean_inc(x_418); if (lean_is_exclusive(x_353)) { lean_ctor_release(x_353, 0); lean_ctor_release(x_353, 1); lean_ctor_release(x_353, 2); lean_ctor_release(x_353, 3); x_419 = x_353; } else { lean_dec_ref(x_353); x_419 = lean_box(0); } if (lean_is_scalar(x_419)) { x_420 = lean_alloc_ctor(1, 4, 1); } else { x_420 = x_419; } lean_ctor_set(x_420, 0, x_415); lean_ctor_set(x_420, 1, x_416); lean_ctor_set(x_420, 2, x_417); lean_ctor_set(x_420, 3, x_418); lean_ctor_set_uint8(x_420, sizeof(void*)*4, x_397); if (lean_is_scalar(x_414)) { x_421 = lean_alloc_ctor(1, 4, 1); } else { x_421 = x_414; } lean_ctor_set(x_421, 0, x_420); lean_ctor_set(x_421, 1, x_412); lean_ctor_set(x_421, 2, x_413); lean_ctor_set(x_421, 3, x_393); lean_ctor_set_uint8(x_421, sizeof(void*)*4, x_352); x_422 = 1; x_423 = lean_alloc_ctor(1, 4, 1); lean_ctor_set(x_423, 0, x_345); lean_ctor_set(x_423, 1, x_346); lean_ctor_set(x_423, 2, x_347); lean_ctor_set(x_423, 3, x_421); lean_ctor_set_uint8(x_423, sizeof(void*)*4, x_422); return x_423; } } } } } else { uint8_t x_424; lean_object* x_425; x_424 = 1; x_425 = lean_alloc_ctor(1, 4, 1); lean_ctor_set(x_425, 0, x_345); lean_ctor_set(x_425, 1, x_346); lean_ctor_set(x_425, 2, x_347); lean_ctor_set(x_425, 3, x_351); lean_ctor_set_uint8(x_425, sizeof(void*)*4, x_424); return x_425; } } else { uint8_t x_426; lean_object* x_427; lean_dec(x_347); lean_dec(x_346); x_426 = 1; x_427 = lean_alloc_ctor(1, 4, 1); lean_ctor_set(x_427, 0, x_345); lean_ctor_set(x_427, 1, x_2); lean_ctor_set(x_427, 2, x_3); lean_ctor_set(x_427, 3, x_348); lean_ctor_set_uint8(x_427, sizeof(void*)*4, x_426); return x_427; } } else { lean_object* x_428; uint8_t x_429; x_428 = l_Lean_RBNode_ins___at___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonWorkspaceEdit____x40_Lean_Data_Lsp_Basic___hyg_4660____spec__10(x_345, x_2, x_3); x_429 = lean_ctor_get_uint8(x_428, sizeof(void*)*4); if (x_429 == 0) { lean_object* x_430; x_430 = lean_ctor_get(x_428, 0); lean_inc(x_430); if (lean_obj_tag(x_430) == 0) { lean_object* x_431; x_431 = lean_ctor_get(x_428, 3); lean_inc(x_431); if (lean_obj_tag(x_431) == 0) { lean_object* x_432; lean_object* x_433; lean_object* x_434; lean_object* x_435; uint8_t x_436; lean_object* x_437; x_432 = lean_ctor_get(x_428, 1); lean_inc(x_432); x_433 = lean_ctor_get(x_428, 2); lean_inc(x_433); if (lean_is_exclusive(x_428)) { lean_ctor_release(x_428, 0); lean_ctor_release(x_428, 1); lean_ctor_release(x_428, 2); lean_ctor_release(x_428, 3); x_434 = x_428; } else { lean_dec_ref(x_428); x_434 = lean_box(0); } if (lean_is_scalar(x_434)) { x_435 = lean_alloc_ctor(1, 4, 1); } else { x_435 = x_434; } lean_ctor_set(x_435, 0, x_431); lean_ctor_set(x_435, 1, x_432); lean_ctor_set(x_435, 2, x_433); lean_ctor_set(x_435, 3, x_431); lean_ctor_set_uint8(x_435, sizeof(void*)*4, x_429); x_436 = 1; x_437 = lean_alloc_ctor(1, 4, 1); lean_ctor_set(x_437, 0, x_435); lean_ctor_set(x_437, 1, x_346); lean_ctor_set(x_437, 2, x_347); lean_ctor_set(x_437, 3, x_348); lean_ctor_set_uint8(x_437, sizeof(void*)*4, x_436); return x_437; } else { uint8_t x_438; x_438 = lean_ctor_get_uint8(x_431, sizeof(void*)*4); if (x_438 == 0) { lean_object* x_439; lean_object* x_440; lean_object* x_441; lean_object* x_442; lean_object* x_443; lean_object* x_444; lean_object* x_445; lean_object* x_446; uint8_t x_447; lean_object* x_448; lean_object* x_449; uint8_t x_450; lean_object* x_451; x_439 = lean_ctor_get(x_428, 1); lean_inc(x_439); x_440 = lean_ctor_get(x_428, 2); lean_inc(x_440); if (lean_is_exclusive(x_428)) { lean_ctor_release(x_428, 0); lean_ctor_release(x_428, 1); lean_ctor_release(x_428, 2); lean_ctor_release(x_428, 3); x_441 = x_428; } else { lean_dec_ref(x_428); x_441 = lean_box(0); } x_442 = lean_ctor_get(x_431, 0); lean_inc(x_442); x_443 = lean_ctor_get(x_431, 1); lean_inc(x_443); x_444 = lean_ctor_get(x_431, 2); lean_inc(x_444); x_445 = lean_ctor_get(x_431, 3); lean_inc(x_445); if (lean_is_exclusive(x_431)) { lean_ctor_release(x_431, 0); lean_ctor_release(x_431, 1); lean_ctor_release(x_431, 2); lean_ctor_release(x_431, 3); x_446 = x_431; } else { lean_dec_ref(x_431); x_446 = lean_box(0); } x_447 = 1; if (lean_is_scalar(x_446)) { x_448 = lean_alloc_ctor(1, 4, 1); } else { x_448 = x_446; } lean_ctor_set(x_448, 0, x_430); lean_ctor_set(x_448, 1, x_439); lean_ctor_set(x_448, 2, x_440); lean_ctor_set(x_448, 3, x_442); lean_ctor_set_uint8(x_448, sizeof(void*)*4, x_447); if (lean_is_scalar(x_441)) { x_449 = lean_alloc_ctor(1, 4, 1); } else { x_449 = x_441; } lean_ctor_set(x_449, 0, x_445); lean_ctor_set(x_449, 1, x_346); lean_ctor_set(x_449, 2, x_347); lean_ctor_set(x_449, 3, x_348); lean_ctor_set_uint8(x_449, sizeof(void*)*4, x_447); x_450 = 0; x_451 = lean_alloc_ctor(1, 4, 1); lean_ctor_set(x_451, 0, x_448); lean_ctor_set(x_451, 1, x_443); lean_ctor_set(x_451, 2, x_444); lean_ctor_set(x_451, 3, x_449); lean_ctor_set_uint8(x_451, sizeof(void*)*4, x_450); return x_451; } else { lean_object* x_452; uint8_t x_453; lean_object* x_454; if (lean_is_exclusive(x_431)) { lean_ctor_release(x_431, 0); lean_ctor_release(x_431, 1); lean_ctor_release(x_431, 2); lean_ctor_release(x_431, 3); x_452 = x_431; } else { lean_dec_ref(x_431); x_452 = lean_box(0); } x_453 = 1; if (lean_is_scalar(x_452)) { x_454 = lean_alloc_ctor(1, 4, 1); } else { x_454 = x_452; } lean_ctor_set(x_454, 0, x_428); lean_ctor_set(x_454, 1, x_346); lean_ctor_set(x_454, 2, x_347); lean_ctor_set(x_454, 3, x_348); lean_ctor_set_uint8(x_454, sizeof(void*)*4, x_453); return x_454; } } } else { uint8_t x_455; x_455 = lean_ctor_get_uint8(x_430, sizeof(void*)*4); if (x_455 == 0) { lean_object* x_456; lean_object* x_457; lean_object* x_458; lean_object* x_459; lean_object* x_460; lean_object* x_461; lean_object* x_462; lean_object* x_463; lean_object* x_464; uint8_t x_465; lean_object* x_466; lean_object* x_467; uint8_t x_468; lean_object* x_469; x_456 = lean_ctor_get(x_428, 1); lean_inc(x_456); x_457 = lean_ctor_get(x_428, 2); lean_inc(x_457); x_458 = lean_ctor_get(x_428, 3); lean_inc(x_458); if (lean_is_exclusive(x_428)) { lean_ctor_release(x_428, 0); lean_ctor_release(x_428, 1); lean_ctor_release(x_428, 2); lean_ctor_release(x_428, 3); x_459 = x_428; } else { lean_dec_ref(x_428); x_459 = lean_box(0); } x_460 = lean_ctor_get(x_430, 0); lean_inc(x_460); x_461 = lean_ctor_get(x_430, 1); lean_inc(x_461); x_462 = lean_ctor_get(x_430, 2); lean_inc(x_462); x_463 = lean_ctor_get(x_430, 3); lean_inc(x_463); if (lean_is_exclusive(x_430)) { lean_ctor_release(x_430, 0); lean_ctor_release(x_430, 1); lean_ctor_release(x_430, 2); lean_ctor_release(x_430, 3); x_464 = x_430; } else { lean_dec_ref(x_430); x_464 = lean_box(0); } x_465 = 1; if (lean_is_scalar(x_464)) { x_466 = lean_alloc_ctor(1, 4, 1); } else { x_466 = x_464; } lean_ctor_set(x_466, 0, x_460); lean_ctor_set(x_466, 1, x_461); lean_ctor_set(x_466, 2, x_462); lean_ctor_set(x_466, 3, x_463); lean_ctor_set_uint8(x_466, sizeof(void*)*4, x_465); if (lean_is_scalar(x_459)) { x_467 = lean_alloc_ctor(1, 4, 1); } else { x_467 = x_459; } lean_ctor_set(x_467, 0, x_458); lean_ctor_set(x_467, 1, x_346); lean_ctor_set(x_467, 2, x_347); lean_ctor_set(x_467, 3, x_348); lean_ctor_set_uint8(x_467, sizeof(void*)*4, x_465); x_468 = 0; x_469 = lean_alloc_ctor(1, 4, 1); lean_ctor_set(x_469, 0, x_466); lean_ctor_set(x_469, 1, x_456); lean_ctor_set(x_469, 2, x_457); lean_ctor_set(x_469, 3, x_467); lean_ctor_set_uint8(x_469, sizeof(void*)*4, x_468); return x_469; } else { lean_object* x_470; x_470 = lean_ctor_get(x_428, 3); lean_inc(x_470); if (lean_obj_tag(x_470) == 0) { lean_object* x_471; uint8_t x_472; lean_object* x_473; if (lean_is_exclusive(x_430)) { lean_ctor_release(x_430, 0); lean_ctor_release(x_430, 1); lean_ctor_release(x_430, 2); lean_ctor_release(x_430, 3); x_471 = x_430; } else { lean_dec_ref(x_430); x_471 = lean_box(0); } x_472 = 1; if (lean_is_scalar(x_471)) { x_473 = lean_alloc_ctor(1, 4, 1); } else { x_473 = x_471; } lean_ctor_set(x_473, 0, x_428); lean_ctor_set(x_473, 1, x_346); lean_ctor_set(x_473, 2, x_347); lean_ctor_set(x_473, 3, x_348); lean_ctor_set_uint8(x_473, sizeof(void*)*4, x_472); return x_473; } else { uint8_t x_474; x_474 = lean_ctor_get_uint8(x_470, sizeof(void*)*4); if (x_474 == 0) { lean_object* x_475; lean_object* x_476; lean_object* x_477; lean_object* x_478; lean_object* x_479; lean_object* x_480; lean_object* x_481; lean_object* x_482; uint8_t x_483; lean_object* x_484; lean_object* x_485; lean_object* x_486; uint8_t x_487; lean_object* x_488; x_475 = lean_ctor_get(x_428, 1); lean_inc(x_475); x_476 = lean_ctor_get(x_428, 2); lean_inc(x_476); if (lean_is_exclusive(x_428)) { lean_ctor_release(x_428, 0); lean_ctor_release(x_428, 1); lean_ctor_release(x_428, 2); lean_ctor_release(x_428, 3); x_477 = x_428; } else { lean_dec_ref(x_428); x_477 = lean_box(0); } x_478 = lean_ctor_get(x_470, 0); lean_inc(x_478); x_479 = lean_ctor_get(x_470, 1); lean_inc(x_479); x_480 = lean_ctor_get(x_470, 2); lean_inc(x_480); x_481 = lean_ctor_get(x_470, 3); lean_inc(x_481); if (lean_is_exclusive(x_470)) { lean_ctor_release(x_470, 0); lean_ctor_release(x_470, 1); lean_ctor_release(x_470, 2); lean_ctor_release(x_470, 3); x_482 = x_470; } else { lean_dec_ref(x_470); x_482 = lean_box(0); } x_483 = 1; lean_inc(x_430); if (lean_is_scalar(x_482)) { x_484 = lean_alloc_ctor(1, 4, 1); } else { x_484 = x_482; } lean_ctor_set(x_484, 0, x_430); lean_ctor_set(x_484, 1, x_475); lean_ctor_set(x_484, 2, x_476); lean_ctor_set(x_484, 3, x_478); if (lean_is_exclusive(x_430)) { lean_ctor_release(x_430, 0); lean_ctor_release(x_430, 1); lean_ctor_release(x_430, 2); lean_ctor_release(x_430, 3); x_485 = x_430; } else { lean_dec_ref(x_430); x_485 = lean_box(0); } lean_ctor_set_uint8(x_484, sizeof(void*)*4, x_483); if (lean_is_scalar(x_485)) { x_486 = lean_alloc_ctor(1, 4, 1); } else { x_486 = x_485; } lean_ctor_set(x_486, 0, x_481); lean_ctor_set(x_486, 1, x_346); lean_ctor_set(x_486, 2, x_347); lean_ctor_set(x_486, 3, x_348); lean_ctor_set_uint8(x_486, sizeof(void*)*4, x_483); x_487 = 0; if (lean_is_scalar(x_477)) { x_488 = lean_alloc_ctor(1, 4, 1); } else { x_488 = x_477; } lean_ctor_set(x_488, 0, x_484); lean_ctor_set(x_488, 1, x_479); lean_ctor_set(x_488, 2, x_480); lean_ctor_set(x_488, 3, x_486); lean_ctor_set_uint8(x_488, sizeof(void*)*4, x_487); return x_488; } else { lean_object* x_489; lean_object* x_490; lean_object* x_491; lean_object* x_492; lean_object* x_493; lean_object* x_494; lean_object* x_495; lean_object* x_496; lean_object* x_497; lean_object* x_498; uint8_t x_499; lean_object* x_500; x_489 = lean_ctor_get(x_428, 1); lean_inc(x_489); x_490 = lean_ctor_get(x_428, 2); lean_inc(x_490); if (lean_is_exclusive(x_428)) { lean_ctor_release(x_428, 0); lean_ctor_release(x_428, 1); lean_ctor_release(x_428, 2); lean_ctor_release(x_428, 3); x_491 = x_428; } else { lean_dec_ref(x_428); x_491 = lean_box(0); } x_492 = lean_ctor_get(x_430, 0); lean_inc(x_492); x_493 = lean_ctor_get(x_430, 1); lean_inc(x_493); x_494 = lean_ctor_get(x_430, 2); lean_inc(x_494); x_495 = lean_ctor_get(x_430, 3); lean_inc(x_495); if (lean_is_exclusive(x_430)) { lean_ctor_release(x_430, 0); lean_ctor_release(x_430, 1); lean_ctor_release(x_430, 2); lean_ctor_release(x_430, 3); x_496 = x_430; } else { lean_dec_ref(x_430); x_496 = lean_box(0); } if (lean_is_scalar(x_496)) { x_497 = lean_alloc_ctor(1, 4, 1); } else { x_497 = x_496; } lean_ctor_set(x_497, 0, x_492); lean_ctor_set(x_497, 1, x_493); lean_ctor_set(x_497, 2, x_494); lean_ctor_set(x_497, 3, x_495); lean_ctor_set_uint8(x_497, sizeof(void*)*4, x_474); if (lean_is_scalar(x_491)) { x_498 = lean_alloc_ctor(1, 4, 1); } else { x_498 = x_491; } lean_ctor_set(x_498, 0, x_497); lean_ctor_set(x_498, 1, x_489); lean_ctor_set(x_498, 2, x_490); lean_ctor_set(x_498, 3, x_470); lean_ctor_set_uint8(x_498, sizeof(void*)*4, x_429); x_499 = 1; x_500 = lean_alloc_ctor(1, 4, 1); lean_ctor_set(x_500, 0, x_498); lean_ctor_set(x_500, 1, x_346); lean_ctor_set(x_500, 2, x_347); lean_ctor_set(x_500, 3, x_348); lean_ctor_set_uint8(x_500, sizeof(void*)*4, x_499); return x_500; } } } } } else { uint8_t x_501; lean_object* x_502; x_501 = 1; x_502 = lean_alloc_ctor(1, 4, 1); lean_ctor_set(x_502, 0, x_428); lean_ctor_set(x_502, 1, x_346); lean_ctor_set(x_502, 2, x_347); lean_ctor_set(x_502, 3, x_348); lean_ctor_set_uint8(x_502, sizeof(void*)*4, x_501); return x_502; } } } } } } } LEAN_EXPORT lean_object* l_Lean_RBNode_insert___at___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonWorkspaceEdit____x40_Lean_Data_Lsp_Basic___hyg_4660____spec__9(lean_object* x_1, lean_object* x_2, lean_object* x_3) { _start: { uint8_t x_4; x_4 = l_Lean_RBNode_isRed___rarg(x_1); if (x_4 == 0) { lean_object* x_5; x_5 = l_Lean_RBNode_ins___at___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonWorkspaceEdit____x40_Lean_Data_Lsp_Basic___hyg_4660____spec__10(x_1, x_2, x_3); return x_5; } else { lean_object* x_6; lean_object* x_7; x_6 = l_Lean_RBNode_ins___at___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonWorkspaceEdit____x40_Lean_Data_Lsp_Basic___hyg_4660____spec__10(x_1, x_2, x_3); x_7 = l_Lean_RBNode_setBlack___rarg(x_6); return x_7; } } } LEAN_EXPORT lean_object* l_Lean_RBNode_foldM___at___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonWorkspaceEdit____x40_Lean_Data_Lsp_Basic___hyg_4660____spec__11(lean_object* x_1, lean_object* x_2, lean_object* x_3) { _start: { if (lean_obj_tag(x_3) == 0) { lean_object* x_4; x_4 = lean_alloc_ctor(1, 1, 0); lean_ctor_set(x_4, 0, x_2); return x_4; } else { lean_object* x_5; lean_object* x_6; lean_object* x_7; lean_object* x_8; lean_object* x_9; x_5 = lean_ctor_get(x_3, 0); lean_inc(x_5); x_6 = lean_ctor_get(x_3, 1); lean_inc(x_6); x_7 = lean_ctor_get(x_3, 2); lean_inc(x_7); x_8 = lean_ctor_get(x_3, 3); lean_inc(x_8); lean_dec(x_3); x_9 = l_Lean_RBNode_foldM___at___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonWorkspaceEdit____x40_Lean_Data_Lsp_Basic___hyg_4660____spec__11(x_1, x_2, x_5); if (lean_obj_tag(x_9) == 0) { uint8_t x_10; lean_dec(x_8); lean_dec(x_7); lean_dec(x_6); x_10 = !lean_is_exclusive(x_9); if (x_10 == 0) { return x_9; } else { lean_object* x_11; lean_object* x_12; x_11 = lean_ctor_get(x_9, 0); lean_inc(x_11); lean_dec(x_9); x_12 = lean_alloc_ctor(0, 1, 0); lean_ctor_set(x_12, 0, x_11); return x_12; } } else { lean_object* x_13; lean_object* x_14; x_13 = lean_ctor_get(x_9, 0); lean_inc(x_13); lean_dec(x_9); x_14 = l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonChangeAnnotation____x40_Lean_Data_Lsp_Basic___hyg_2933_(x_7); lean_dec(x_7); if (lean_obj_tag(x_14) == 0) { uint8_t x_15; lean_dec(x_13); lean_dec(x_8); lean_dec(x_6); x_15 = !lean_is_exclusive(x_14); if (x_15 == 0) { return x_14; } else { lean_object* x_16; lean_object* x_17; x_16 = lean_ctor_get(x_14, 0); lean_inc(x_16); lean_dec(x_14); x_17 = lean_alloc_ctor(0, 1, 0); lean_ctor_set(x_17, 0, x_16); return x_17; } } else { lean_object* x_18; lean_object* x_19; x_18 = lean_ctor_get(x_14, 0); lean_inc(x_18); lean_dec(x_14); x_19 = l_Lean_RBNode_insert___at___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonWorkspaceEdit____x40_Lean_Data_Lsp_Basic___hyg_4660____spec__9(x_13, x_6, x_18); x_2 = x_19; x_3 = x_8; goto _start; } } } } } LEAN_EXPORT lean_object* l_Lean_RBNode_foldM___at___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonWorkspaceEdit____x40_Lean_Data_Lsp_Basic___hyg_4660____spec__11___at___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonWorkspaceEdit____x40_Lean_Data_Lsp_Basic___hyg_4660____spec__12(lean_object* x_1, lean_object* x_2) { _start: { if (lean_obj_tag(x_2) == 0) { lean_object* x_3; x_3 = lean_alloc_ctor(1, 1, 0); lean_ctor_set(x_3, 0, x_1); return x_3; } else { lean_object* x_4; lean_object* x_5; lean_object* x_6; lean_object* x_7; lean_object* x_8; x_4 = lean_ctor_get(x_2, 0); lean_inc(x_4); x_5 = lean_ctor_get(x_2, 1); lean_inc(x_5); x_6 = lean_ctor_get(x_2, 2); lean_inc(x_6); x_7 = lean_ctor_get(x_2, 3); lean_inc(x_7); lean_dec(x_2); x_8 = l_Lean_RBNode_foldM___at___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonWorkspaceEdit____x40_Lean_Data_Lsp_Basic___hyg_4660____spec__11___at___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonWorkspaceEdit____x40_Lean_Data_Lsp_Basic___hyg_4660____spec__12(x_1, x_4); if (lean_obj_tag(x_8) == 0) { uint8_t x_9; lean_dec(x_7); lean_dec(x_6); lean_dec(x_5); x_9 = !lean_is_exclusive(x_8); if (x_9 == 0) { return x_8; } else { lean_object* x_10; lean_object* x_11; x_10 = lean_ctor_get(x_8, 0); lean_inc(x_10); lean_dec(x_8); x_11 = lean_alloc_ctor(0, 1, 0); lean_ctor_set(x_11, 0, x_10); return x_11; } } else { lean_object* x_12; lean_object* x_13; x_12 = lean_ctor_get(x_8, 0); lean_inc(x_12); lean_dec(x_8); x_13 = l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonChangeAnnotation____x40_Lean_Data_Lsp_Basic___hyg_2933_(x_6); lean_dec(x_6); if (lean_obj_tag(x_13) == 0) { uint8_t x_14; lean_dec(x_12); lean_dec(x_7); lean_dec(x_5); x_14 = !lean_is_exclusive(x_13); if (x_14 == 0) { return x_13; } else { lean_object* x_15; lean_object* x_16; x_15 = lean_ctor_get(x_13, 0); lean_inc(x_15); lean_dec(x_13); x_16 = lean_alloc_ctor(0, 1, 0); lean_ctor_set(x_16, 0, x_15); return x_16; } } else { lean_object* x_17; lean_object* x_18; x_17 = lean_ctor_get(x_13, 0); lean_inc(x_17); lean_dec(x_13); x_18 = l_Lean_RBNode_insert___at___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonWorkspaceEdit____x40_Lean_Data_Lsp_Basic___hyg_4660____spec__9(x_12, x_5, x_17); x_1 = x_18; x_2 = x_7; goto _start; } } } } } LEAN_EXPORT lean_object* l_Lean_Json_getObjValAs_x3f___at___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonWorkspaceEdit____x40_Lean_Data_Lsp_Basic___hyg_4660____spec__8(lean_object* x_1, lean_object* x_2) { _start: { lean_object* x_3; lean_object* x_4; x_3 = l_Lean_Json_getObjValD(x_1, x_2); lean_dec(x_2); lean_dec(x_1); x_4 = l_Lean_Json_getObj_x3f(x_3); lean_dec(x_3); if (lean_obj_tag(x_4) == 0) { uint8_t x_5; x_5 = !lean_is_exclusive(x_4); if (x_5 == 0) { return x_4; } else { lean_object* x_6; lean_object* x_7; x_6 = lean_ctor_get(x_4, 0); lean_inc(x_6); lean_dec(x_4); x_7 = lean_alloc_ctor(0, 1, 0); lean_ctor_set(x_7, 0, x_6); return x_7; } } else { lean_object* x_8; lean_object* x_9; lean_object* x_10; x_8 = lean_ctor_get(x_4, 0); lean_inc(x_8); lean_dec(x_4); x_9 = lean_box(0); x_10 = l_Lean_RBNode_foldM___at___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonWorkspaceEdit____x40_Lean_Data_Lsp_Basic___hyg_4660____spec__11___at___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonWorkspaceEdit____x40_Lean_Data_Lsp_Basic___hyg_4660____spec__12(x_9, x_8); return x_10; } } } static lean_object* _init_l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonWorkspaceEdit____x40_Lean_Data_Lsp_Basic___hyg_4660____closed__1() { _start: { lean_object* x_1; x_1 = lean_mk_string_from_bytes("WorkspaceEdit", 13); return x_1; } } static lean_object* _init_l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonWorkspaceEdit____x40_Lean_Data_Lsp_Basic___hyg_4660____closed__2() { _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; lean_object* x_4; x_1 = l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonCancelParams____x40_Lean_Data_Lsp_Basic___hyg_144____closed__1; x_2 = l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonCancelParams____x40_Lean_Data_Lsp_Basic___hyg_144____closed__2; x_3 = l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonWorkspaceEdit____x40_Lean_Data_Lsp_Basic___hyg_4660____closed__1; x_4 = l_Lean_Name_mkStr3(x_1, x_2, x_3); return x_4; } } static lean_object* _init_l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonWorkspaceEdit____x40_Lean_Data_Lsp_Basic___hyg_4660____closed__3() { _start: { lean_object* x_1; uint8_t x_2; lean_object* x_3; x_1 = l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonWorkspaceEdit____x40_Lean_Data_Lsp_Basic___hyg_4660____closed__2; x_2 = 1; x_3 = l_Lean_Name_toString(x_1, x_2); return x_3; } } static lean_object* _init_l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonWorkspaceEdit____x40_Lean_Data_Lsp_Basic___hyg_4660____closed__4() { _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; x_1 = l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonWorkspaceEdit____x40_Lean_Data_Lsp_Basic___hyg_4660____closed__3; x_2 = l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonCancelParams____x40_Lean_Data_Lsp_Basic___hyg_144____closed__6; x_3 = lean_string_append(x_1, x_2); return x_3; } } static lean_object* _init_l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonWorkspaceEdit____x40_Lean_Data_Lsp_Basic___hyg_4660____closed__5() { _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; x_1 = lean_box(0); x_2 = l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_toJsonWorkspaceEdit____x40_Lean_Data_Lsp_Basic___hyg_4588____closed__1; x_3 = l_Lean_Name_str___override(x_1, x_2); return x_3; } } static lean_object* _init_l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonWorkspaceEdit____x40_Lean_Data_Lsp_Basic___hyg_4660____closed__6() { _start: { lean_object* x_1; uint8_t x_2; lean_object* x_3; x_1 = l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonWorkspaceEdit____x40_Lean_Data_Lsp_Basic___hyg_4660____closed__5; x_2 = 1; x_3 = l_Lean_Name_toString(x_1, x_2); return x_3; } } static lean_object* _init_l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonWorkspaceEdit____x40_Lean_Data_Lsp_Basic___hyg_4660____closed__7() { _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; x_1 = l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonWorkspaceEdit____x40_Lean_Data_Lsp_Basic___hyg_4660____closed__4; x_2 = l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonWorkspaceEdit____x40_Lean_Data_Lsp_Basic___hyg_4660____closed__6; x_3 = lean_string_append(x_1, x_2); return x_3; } } static lean_object* _init_l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonWorkspaceEdit____x40_Lean_Data_Lsp_Basic___hyg_4660____closed__8() { _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; x_1 = l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonWorkspaceEdit____x40_Lean_Data_Lsp_Basic___hyg_4660____closed__7; x_2 = l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonCancelParams____x40_Lean_Data_Lsp_Basic___hyg_144____closed__11; x_3 = lean_string_append(x_1, x_2); return x_3; } } static lean_object* _init_l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonWorkspaceEdit____x40_Lean_Data_Lsp_Basic___hyg_4660____closed__9() { _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; x_1 = lean_box(0); x_2 = l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_toJsonWorkspaceEdit____x40_Lean_Data_Lsp_Basic___hyg_4588____closed__2; x_3 = l_Lean_Name_str___override(x_1, x_2); return x_3; } } static lean_object* _init_l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonWorkspaceEdit____x40_Lean_Data_Lsp_Basic___hyg_4660____closed__10() { _start: { lean_object* x_1; uint8_t x_2; lean_object* x_3; x_1 = l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonWorkspaceEdit____x40_Lean_Data_Lsp_Basic___hyg_4660____closed__9; x_2 = 1; x_3 = l_Lean_Name_toString(x_1, x_2); return x_3; } } static lean_object* _init_l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonWorkspaceEdit____x40_Lean_Data_Lsp_Basic___hyg_4660____closed__11() { _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; x_1 = l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonWorkspaceEdit____x40_Lean_Data_Lsp_Basic___hyg_4660____closed__4; x_2 = l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonWorkspaceEdit____x40_Lean_Data_Lsp_Basic___hyg_4660____closed__10; x_3 = lean_string_append(x_1, x_2); return x_3; } } static lean_object* _init_l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonWorkspaceEdit____x40_Lean_Data_Lsp_Basic___hyg_4660____closed__12() { _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; x_1 = l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonWorkspaceEdit____x40_Lean_Data_Lsp_Basic___hyg_4660____closed__11; x_2 = l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonCancelParams____x40_Lean_Data_Lsp_Basic___hyg_144____closed__11; x_3 = lean_string_append(x_1, x_2); return x_3; } } static lean_object* _init_l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonWorkspaceEdit____x40_Lean_Data_Lsp_Basic___hyg_4660____closed__13() { _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; x_1 = lean_box(0); x_2 = l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_toJsonWorkspaceEdit____x40_Lean_Data_Lsp_Basic___hyg_4588____closed__3; x_3 = l_Lean_Name_str___override(x_1, x_2); return x_3; } } static lean_object* _init_l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonWorkspaceEdit____x40_Lean_Data_Lsp_Basic___hyg_4660____closed__14() { _start: { lean_object* x_1; uint8_t x_2; lean_object* x_3; x_1 = l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonWorkspaceEdit____x40_Lean_Data_Lsp_Basic___hyg_4660____closed__13; x_2 = 1; x_3 = l_Lean_Name_toString(x_1, x_2); return x_3; } } static lean_object* _init_l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonWorkspaceEdit____x40_Lean_Data_Lsp_Basic___hyg_4660____closed__15() { _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; x_1 = l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonWorkspaceEdit____x40_Lean_Data_Lsp_Basic___hyg_4660____closed__4; x_2 = l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonWorkspaceEdit____x40_Lean_Data_Lsp_Basic___hyg_4660____closed__14; x_3 = lean_string_append(x_1, x_2); return x_3; } } static lean_object* _init_l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonWorkspaceEdit____x40_Lean_Data_Lsp_Basic___hyg_4660____closed__16() { _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; x_1 = l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonWorkspaceEdit____x40_Lean_Data_Lsp_Basic___hyg_4660____closed__15; x_2 = l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonCancelParams____x40_Lean_Data_Lsp_Basic___hyg_144____closed__11; x_3 = lean_string_append(x_1, x_2); return x_3; } } LEAN_EXPORT lean_object* l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonWorkspaceEdit____x40_Lean_Data_Lsp_Basic___hyg_4660_(lean_object* x_1) { _start: { lean_object* x_2; lean_object* x_3; x_2 = l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_toJsonWorkspaceEdit____x40_Lean_Data_Lsp_Basic___hyg_4588____closed__1; lean_inc(x_1); x_3 = l_Lean_Json_getObjValAs_x3f___at___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonWorkspaceEdit____x40_Lean_Data_Lsp_Basic___hyg_4660____spec__1(x_1, x_2); if (lean_obj_tag(x_3) == 0) { uint8_t x_4; lean_dec(x_1); x_4 = !lean_is_exclusive(x_3); if (x_4 == 0) { lean_object* x_5; lean_object* x_6; lean_object* x_7; x_5 = lean_ctor_get(x_3, 0); x_6 = l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonWorkspaceEdit____x40_Lean_Data_Lsp_Basic___hyg_4660____closed__8; x_7 = lean_string_append(x_6, x_5); lean_dec(x_5); lean_ctor_set(x_3, 0, x_7); return x_3; } else { lean_object* x_8; lean_object* x_9; lean_object* x_10; lean_object* x_11; x_8 = lean_ctor_get(x_3, 0); lean_inc(x_8); lean_dec(x_3); x_9 = l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonWorkspaceEdit____x40_Lean_Data_Lsp_Basic___hyg_4660____closed__8; x_10 = lean_string_append(x_9, x_8); lean_dec(x_8); x_11 = lean_alloc_ctor(0, 1, 0); lean_ctor_set(x_11, 0, x_10); return x_11; } } else { lean_object* x_12; lean_object* x_13; lean_object* x_14; x_12 = lean_ctor_get(x_3, 0); lean_inc(x_12); lean_dec(x_3); x_13 = l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_toJsonWorkspaceEdit____x40_Lean_Data_Lsp_Basic___hyg_4588____closed__2; lean_inc(x_1); x_14 = l_Lean_Json_getObjValAs_x3f___at___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonWorkspaceEdit____x40_Lean_Data_Lsp_Basic___hyg_4660____spec__6(x_1, x_13); if (lean_obj_tag(x_14) == 0) { uint8_t x_15; lean_dec(x_12); lean_dec(x_1); x_15 = !lean_is_exclusive(x_14); if (x_15 == 0) { lean_object* x_16; lean_object* x_17; lean_object* x_18; x_16 = lean_ctor_get(x_14, 0); x_17 = l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonWorkspaceEdit____x40_Lean_Data_Lsp_Basic___hyg_4660____closed__12; x_18 = lean_string_append(x_17, x_16); lean_dec(x_16); lean_ctor_set(x_14, 0, x_18); return x_14; } else { lean_object* x_19; lean_object* x_20; lean_object* x_21; lean_object* x_22; x_19 = lean_ctor_get(x_14, 0); lean_inc(x_19); lean_dec(x_14); x_20 = l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonWorkspaceEdit____x40_Lean_Data_Lsp_Basic___hyg_4660____closed__12; x_21 = lean_string_append(x_20, x_19); lean_dec(x_19); x_22 = lean_alloc_ctor(0, 1, 0); lean_ctor_set(x_22, 0, x_21); return x_22; } } else { lean_object* x_23; lean_object* x_24; lean_object* x_25; x_23 = lean_ctor_get(x_14, 0); lean_inc(x_23); lean_dec(x_14); x_24 = l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_toJsonWorkspaceEdit____x40_Lean_Data_Lsp_Basic___hyg_4588____closed__3; x_25 = l_Lean_Json_getObjValAs_x3f___at___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonWorkspaceEdit____x40_Lean_Data_Lsp_Basic___hyg_4660____spec__8(x_1, x_24); if (lean_obj_tag(x_25) == 0) { uint8_t x_26; lean_dec(x_23); lean_dec(x_12); x_26 = !lean_is_exclusive(x_25); if (x_26 == 0) { lean_object* x_27; lean_object* x_28; lean_object* x_29; x_27 = lean_ctor_get(x_25, 0); x_28 = l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonWorkspaceEdit____x40_Lean_Data_Lsp_Basic___hyg_4660____closed__16; x_29 = lean_string_append(x_28, x_27); lean_dec(x_27); lean_ctor_set(x_25, 0, x_29); return x_25; } else { lean_object* x_30; lean_object* x_31; lean_object* x_32; lean_object* x_33; x_30 = lean_ctor_get(x_25, 0); lean_inc(x_30); lean_dec(x_25); x_31 = l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonWorkspaceEdit____x40_Lean_Data_Lsp_Basic___hyg_4660____closed__16; x_32 = lean_string_append(x_31, x_30); lean_dec(x_30); x_33 = lean_alloc_ctor(0, 1, 0); lean_ctor_set(x_33, 0, x_32); return x_33; } } else { uint8_t x_34; x_34 = !lean_is_exclusive(x_25); if (x_34 == 0) { lean_object* x_35; lean_object* x_36; x_35 = lean_ctor_get(x_25, 0); x_36 = lean_alloc_ctor(0, 3, 0); lean_ctor_set(x_36, 0, x_12); lean_ctor_set(x_36, 1, x_23); lean_ctor_set(x_36, 2, x_35); lean_ctor_set(x_25, 0, x_36); return x_25; } else { lean_object* x_37; lean_object* x_38; lean_object* x_39; x_37 = lean_ctor_get(x_25, 0); lean_inc(x_37); lean_dec(x_25); x_38 = lean_alloc_ctor(0, 3, 0); lean_ctor_set(x_38, 0, x_12); lean_ctor_set(x_38, 1, x_23); lean_ctor_set(x_38, 2, x_37); x_39 = lean_alloc_ctor(1, 1, 0); lean_ctor_set(x_39, 0, x_38); return x_39; } } } } } } LEAN_EXPORT lean_object* l_Lean_RBNode_foldM___at___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonWorkspaceEdit____x40_Lean_Data_Lsp_Basic___hyg_4660____spec__4___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3) { _start: { lean_object* x_4; x_4 = l_Lean_RBNode_foldM___at___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonWorkspaceEdit____x40_Lean_Data_Lsp_Basic___hyg_4660____spec__4(x_1, x_2, x_3); lean_dec(x_1); return x_4; } } LEAN_EXPORT lean_object* l_Array_mapMUnsafe_map___at___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonWorkspaceEdit____x40_Lean_Data_Lsp_Basic___hyg_4660____spec__7___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3) { _start: { size_t x_4; size_t x_5; lean_object* x_6; x_4 = lean_unbox_usize(x_1); lean_dec(x_1); x_5 = lean_unbox_usize(x_2); lean_dec(x_2); x_6 = l_Array_mapMUnsafe_map___at___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonWorkspaceEdit____x40_Lean_Data_Lsp_Basic___hyg_4660____spec__7(x_4, x_5, x_3); return x_6; } } LEAN_EXPORT lean_object* l_Lean_RBNode_foldM___at___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonWorkspaceEdit____x40_Lean_Data_Lsp_Basic___hyg_4660____spec__11___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3) { _start: { lean_object* x_4; x_4 = l_Lean_RBNode_foldM___at___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonWorkspaceEdit____x40_Lean_Data_Lsp_Basic___hyg_4660____spec__11(x_1, x_2, x_3); lean_dec(x_1); return x_4; } } static lean_object* _init_l_Lean_Lsp_instFromJsonWorkspaceEdit___closed__1() { _start: { lean_object* x_1; x_1 = lean_alloc_closure((void*)(l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonWorkspaceEdit____x40_Lean_Data_Lsp_Basic___hyg_4660_), 1, 0); return x_1; } } static lean_object* _init_l_Lean_Lsp_instFromJsonWorkspaceEdit() { _start: { lean_object* x_1; x_1 = l_Lean_Lsp_instFromJsonWorkspaceEdit___closed__1; return x_1; } } static lean_object* _init_l_Lean_Lsp_WorkspaceEdit_instEmptyCollectionWorkspaceEdit___closed__1() { _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; x_1 = lean_box(0); x_2 = l_Lean_Lsp_instEmptyCollectionTextEditBatch___closed__1; x_3 = lean_alloc_ctor(0, 3, 0); lean_ctor_set(x_3, 0, x_1); lean_ctor_set(x_3, 1, x_2); lean_ctor_set(x_3, 2, x_1); return x_3; } } static lean_object* _init_l_Lean_Lsp_WorkspaceEdit_instEmptyCollectionWorkspaceEdit() { _start: { lean_object* x_1; x_1 = l_Lean_Lsp_WorkspaceEdit_instEmptyCollectionWorkspaceEdit___closed__1; return x_1; } } LEAN_EXPORT uint8_t l_Lean_Lsp_WorkspaceEdit_instAppendWorkspaceEdit___lambda__1(lean_object* x_1, lean_object* x_2) { _start: { uint8_t x_3; x_3 = lean_string_dec_lt(x_1, x_2); if (x_3 == 0) { uint8_t x_4; x_4 = lean_string_dec_eq(x_1, x_2); if (x_4 == 0) { uint8_t x_5; x_5 = 2; return x_5; } else { uint8_t x_6; x_6 = 1; return x_6; } } else { uint8_t x_7; x_7 = 0; return x_7; } } } LEAN_EXPORT lean_object* l_Lean_Lsp_WorkspaceEdit_instAppendWorkspaceEdit___lambda__2(lean_object* x_1, lean_object* x_2, lean_object* x_3) { _start: { lean_object* x_4; x_4 = l_Array_append___rarg(x_2, x_3); return x_4; } } LEAN_EXPORT lean_object* l_Lean_Lsp_WorkspaceEdit_instAppendWorkspaceEdit___lambda__3(lean_object* x_1, lean_object* x_2, lean_object* x_3) { _start: { lean_inc(x_3); return x_3; } } static lean_object* _init_l_Lean_Lsp_WorkspaceEdit_instAppendWorkspaceEdit___closed__1() { _start: { lean_object* x_1; x_1 = lean_alloc_closure((void*)(l_Lean_Lsp_WorkspaceEdit_instAppendWorkspaceEdit___lambda__1___boxed), 2, 0); return x_1; } } static lean_object* _init_l_Lean_Lsp_WorkspaceEdit_instAppendWorkspaceEdit___closed__2() { _start: { lean_object* x_1; x_1 = lean_alloc_closure((void*)(l_Lean_Lsp_WorkspaceEdit_instAppendWorkspaceEdit___lambda__2___boxed), 3, 0); return x_1; } } static lean_object* _init_l_Lean_Lsp_WorkspaceEdit_instAppendWorkspaceEdit___closed__3() { _start: { lean_object* x_1; x_1 = lean_alloc_closure((void*)(l_Lean_Lsp_WorkspaceEdit_instAppendWorkspaceEdit___lambda__3___boxed), 3, 0); return x_1; } } LEAN_EXPORT lean_object* l_Lean_Lsp_WorkspaceEdit_instAppendWorkspaceEdit(lean_object* x_1, lean_object* x_2) { _start: { lean_object* x_3; lean_object* x_4; lean_object* x_5; lean_object* x_6; lean_object* x_7; lean_object* x_8; lean_object* x_9; lean_object* x_10; lean_object* x_11; lean_object* x_12; lean_object* x_13; lean_object* x_14; lean_object* x_15; x_3 = lean_ctor_get(x_1, 0); lean_inc(x_3); x_4 = lean_ctor_get(x_2, 0); lean_inc(x_4); x_5 = l_Lean_Lsp_WorkspaceEdit_instAppendWorkspaceEdit___closed__1; x_6 = l_Lean_Lsp_WorkspaceEdit_instAppendWorkspaceEdit___closed__2; x_7 = l_Lean_RBNode_fold___at_Lean_RBMap_mergeBy___spec__1___rarg(x_5, x_6, x_3, x_4); x_8 = lean_ctor_get(x_1, 1); lean_inc(x_8); x_9 = lean_ctor_get(x_2, 1); lean_inc(x_9); x_10 = l_Array_append___rarg(x_8, x_9); x_11 = lean_ctor_get(x_1, 2); lean_inc(x_11); lean_dec(x_1); x_12 = lean_ctor_get(x_2, 2); lean_inc(x_12); lean_dec(x_2); x_13 = l_Lean_Lsp_WorkspaceEdit_instAppendWorkspaceEdit___closed__3; x_14 = l_Lean_RBNode_fold___at_Lean_RBMap_mergeBy___spec__1___rarg(x_5, x_13, x_11, x_12); x_15 = lean_alloc_ctor(0, 3, 0); lean_ctor_set(x_15, 0, x_7); lean_ctor_set(x_15, 1, x_10); lean_ctor_set(x_15, 2, x_14); return x_15; } } LEAN_EXPORT lean_object* l_Lean_Lsp_WorkspaceEdit_instAppendWorkspaceEdit___lambda__1___boxed(lean_object* x_1, lean_object* x_2) { _start: { uint8_t x_3; lean_object* x_4; x_3 = l_Lean_Lsp_WorkspaceEdit_instAppendWorkspaceEdit___lambda__1(x_1, x_2); lean_dec(x_2); lean_dec(x_1); x_4 = lean_box(x_3); return x_4; } } LEAN_EXPORT lean_object* l_Lean_Lsp_WorkspaceEdit_instAppendWorkspaceEdit___lambda__2___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3) { _start: { lean_object* x_4; x_4 = l_Lean_Lsp_WorkspaceEdit_instAppendWorkspaceEdit___lambda__2(x_1, x_2, x_3); lean_dec(x_1); return x_4; } } LEAN_EXPORT lean_object* l_Lean_Lsp_WorkspaceEdit_instAppendWorkspaceEdit___lambda__3___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3) { _start: { lean_object* x_4; x_4 = l_Lean_Lsp_WorkspaceEdit_instAppendWorkspaceEdit___lambda__3(x_1, x_2, x_3); lean_dec(x_3); lean_dec(x_2); lean_dec(x_1); return x_4; } } LEAN_EXPORT lean_object* l_Lean_Lsp_WorkspaceEdit_ofTextDocumentEdit(lean_object* x_1) { _start: { lean_object* x_2; lean_object* x_3; lean_object* x_4; lean_object* x_5; lean_object* x_6; x_2 = lean_box(0); x_3 = lean_alloc_ctor(3, 1, 0); lean_ctor_set(x_3, 0, x_1); x_4 = l_Lean_Lsp_instCoeTextEditTextEditBatch___closed__1; x_5 = lean_array_push(x_4, x_3); x_6 = lean_alloc_ctor(0, 3, 0); lean_ctor_set(x_6, 0, x_2); lean_ctor_set(x_6, 1, x_5); lean_ctor_set(x_6, 2, x_2); return x_6; } } static lean_object* _init_l_Lean_Lsp_WorkspaceEdit_ofTextEdit___closed__1() { _start: { lean_object* x_1; lean_object* x_2; x_1 = lean_unsigned_to_nat(0u); x_2 = lean_alloc_ctor(1, 1, 0); lean_ctor_set(x_2, 0, x_1); return x_2; } } LEAN_EXPORT lean_object* l_Lean_Lsp_WorkspaceEdit_ofTextEdit(lean_object* x_1, lean_object* x_2) { _start: { lean_object* x_3; lean_object* x_4; lean_object* x_5; lean_object* x_6; lean_object* x_7; lean_object* x_8; x_3 = l_Lean_Lsp_WorkspaceEdit_ofTextEdit___closed__1; x_4 = lean_alloc_ctor(0, 2, 0); lean_ctor_set(x_4, 0, x_1); lean_ctor_set(x_4, 1, x_3); x_5 = l_Lean_Lsp_instCoeTextEditTextEditBatch___closed__1; x_6 = lean_array_push(x_5, x_2); x_7 = lean_alloc_ctor(0, 2, 0); lean_ctor_set(x_7, 0, x_4); lean_ctor_set(x_7, 1, x_6); x_8 = l_Lean_Lsp_WorkspaceEdit_ofTextDocumentEdit(x_7); return x_8; } } static lean_object* _init_l_Lean_Lsp_ApplyWorkspaceEditParams_label_x3f___default() { _start: { lean_object* x_1; x_1 = lean_box(0); return x_1; } } static lean_object* _init_l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_toJsonApplyWorkspaceEditParams____x40_Lean_Data_Lsp_Basic___hyg_5049____closed__1() { _start: { lean_object* x_1; x_1 = lean_mk_string_from_bytes("edit", 4); return x_1; } } LEAN_EXPORT lean_object* l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_toJsonApplyWorkspaceEditParams____x40_Lean_Data_Lsp_Basic___hyg_5049_(lean_object* x_1) { _start: { lean_object* x_2; lean_object* x_3; lean_object* x_4; lean_object* x_5; lean_object* x_6; lean_object* x_7; lean_object* x_8; lean_object* x_9; lean_object* x_10; lean_object* x_11; lean_object* x_12; lean_object* x_13; lean_object* x_14; x_2 = lean_ctor_get(x_1, 0); lean_inc(x_2); x_3 = l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_toJsonChangeAnnotation____x40_Lean_Data_Lsp_Basic___hyg_2875____closed__1; x_4 = l_Lean_Json_opt___at___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_toJsonTextEdit____x40_Lean_Data_Lsp_Basic___hyg_2023____spec__1(x_3, x_2); lean_dec(x_2); x_5 = lean_ctor_get(x_1, 1); lean_inc(x_5); lean_dec(x_1); x_6 = l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_toJsonWorkspaceEdit____x40_Lean_Data_Lsp_Basic___hyg_4588_(x_5); x_7 = l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_toJsonApplyWorkspaceEditParams____x40_Lean_Data_Lsp_Basic___hyg_5049____closed__1; x_8 = lean_alloc_ctor(0, 2, 0); lean_ctor_set(x_8, 0, x_7); lean_ctor_set(x_8, 1, x_6); x_9 = lean_box(0); x_10 = lean_alloc_ctor(1, 2, 0); lean_ctor_set(x_10, 0, x_8); lean_ctor_set(x_10, 1, x_9); x_11 = lean_alloc_ctor(1, 2, 0); lean_ctor_set(x_11, 0, x_10); lean_ctor_set(x_11, 1, x_9); x_12 = lean_alloc_ctor(1, 2, 0); lean_ctor_set(x_12, 0, x_4); lean_ctor_set(x_12, 1, x_11); x_13 = l_List_join___rarg(x_12); x_14 = l_Lean_Json_mkObj(x_13); return x_14; } } static lean_object* _init_l_Lean_Lsp_instToJsonApplyWorkspaceEditParams___closed__1() { _start: { lean_object* x_1; x_1 = lean_alloc_closure((void*)(l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_toJsonApplyWorkspaceEditParams____x40_Lean_Data_Lsp_Basic___hyg_5049_), 1, 0); return x_1; } } static lean_object* _init_l_Lean_Lsp_instToJsonApplyWorkspaceEditParams() { _start: { lean_object* x_1; x_1 = l_Lean_Lsp_instToJsonApplyWorkspaceEditParams___closed__1; return x_1; } } LEAN_EXPORT lean_object* l_Lean_Json_getObjValAs_x3f___at___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonApplyWorkspaceEditParams____x40_Lean_Data_Lsp_Basic___hyg_5092____spec__1(lean_object* x_1, lean_object* x_2) { _start: { lean_object* x_3; lean_object* x_4; x_3 = l_Lean_Json_getObjValD(x_1, x_2); x_4 = l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonWorkspaceEdit____x40_Lean_Data_Lsp_Basic___hyg_4660_(x_3); return x_4; } } static lean_object* _init_l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonApplyWorkspaceEditParams____x40_Lean_Data_Lsp_Basic___hyg_5092____closed__1() { _start: { lean_object* x_1; x_1 = lean_mk_string_from_bytes("ApplyWorkspaceEditParams", 24); return x_1; } } static lean_object* _init_l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonApplyWorkspaceEditParams____x40_Lean_Data_Lsp_Basic___hyg_5092____closed__2() { _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; lean_object* x_4; x_1 = l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonCancelParams____x40_Lean_Data_Lsp_Basic___hyg_144____closed__1; x_2 = l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonCancelParams____x40_Lean_Data_Lsp_Basic___hyg_144____closed__2; x_3 = l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonApplyWorkspaceEditParams____x40_Lean_Data_Lsp_Basic___hyg_5092____closed__1; x_4 = l_Lean_Name_mkStr3(x_1, x_2, x_3); return x_4; } } static lean_object* _init_l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonApplyWorkspaceEditParams____x40_Lean_Data_Lsp_Basic___hyg_5092____closed__3() { _start: { lean_object* x_1; uint8_t x_2; lean_object* x_3; x_1 = l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonApplyWorkspaceEditParams____x40_Lean_Data_Lsp_Basic___hyg_5092____closed__2; x_2 = 1; x_3 = l_Lean_Name_toString(x_1, x_2); return x_3; } } static lean_object* _init_l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonApplyWorkspaceEditParams____x40_Lean_Data_Lsp_Basic___hyg_5092____closed__4() { _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; x_1 = l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonApplyWorkspaceEditParams____x40_Lean_Data_Lsp_Basic___hyg_5092____closed__3; x_2 = l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonCancelParams____x40_Lean_Data_Lsp_Basic___hyg_144____closed__6; x_3 = lean_string_append(x_1, x_2); return x_3; } } static lean_object* _init_l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonApplyWorkspaceEditParams____x40_Lean_Data_Lsp_Basic___hyg_5092____closed__5() { _start: { lean_object* x_1; x_1 = lean_mk_string_from_bytes("label?", 6); return x_1; } } static lean_object* _init_l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonApplyWorkspaceEditParams____x40_Lean_Data_Lsp_Basic___hyg_5092____closed__6() { _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; x_1 = lean_box(0); x_2 = l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonApplyWorkspaceEditParams____x40_Lean_Data_Lsp_Basic___hyg_5092____closed__5; x_3 = l_Lean_Name_str___override(x_1, x_2); return x_3; } } static lean_object* _init_l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonApplyWorkspaceEditParams____x40_Lean_Data_Lsp_Basic___hyg_5092____closed__7() { _start: { lean_object* x_1; uint8_t x_2; lean_object* x_3; x_1 = l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonApplyWorkspaceEditParams____x40_Lean_Data_Lsp_Basic___hyg_5092____closed__6; x_2 = 1; x_3 = l_Lean_Name_toString(x_1, x_2); return x_3; } } static lean_object* _init_l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonApplyWorkspaceEditParams____x40_Lean_Data_Lsp_Basic___hyg_5092____closed__8() { _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; x_1 = l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonApplyWorkspaceEditParams____x40_Lean_Data_Lsp_Basic___hyg_5092____closed__4; x_2 = l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonApplyWorkspaceEditParams____x40_Lean_Data_Lsp_Basic___hyg_5092____closed__7; x_3 = lean_string_append(x_1, x_2); return x_3; } } static lean_object* _init_l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonApplyWorkspaceEditParams____x40_Lean_Data_Lsp_Basic___hyg_5092____closed__9() { _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; x_1 = l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonApplyWorkspaceEditParams____x40_Lean_Data_Lsp_Basic___hyg_5092____closed__8; x_2 = l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonCancelParams____x40_Lean_Data_Lsp_Basic___hyg_144____closed__11; x_3 = lean_string_append(x_1, x_2); return x_3; } } static lean_object* _init_l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonApplyWorkspaceEditParams____x40_Lean_Data_Lsp_Basic___hyg_5092____closed__10() { _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; x_1 = lean_box(0); x_2 = l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_toJsonApplyWorkspaceEditParams____x40_Lean_Data_Lsp_Basic___hyg_5049____closed__1; x_3 = l_Lean_Name_str___override(x_1, x_2); return x_3; } } static lean_object* _init_l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonApplyWorkspaceEditParams____x40_Lean_Data_Lsp_Basic___hyg_5092____closed__11() { _start: { lean_object* x_1; uint8_t x_2; lean_object* x_3; x_1 = l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonApplyWorkspaceEditParams____x40_Lean_Data_Lsp_Basic___hyg_5092____closed__10; x_2 = 1; x_3 = l_Lean_Name_toString(x_1, x_2); return x_3; } } static lean_object* _init_l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonApplyWorkspaceEditParams____x40_Lean_Data_Lsp_Basic___hyg_5092____closed__12() { _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; x_1 = l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonApplyWorkspaceEditParams____x40_Lean_Data_Lsp_Basic___hyg_5092____closed__4; x_2 = l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonApplyWorkspaceEditParams____x40_Lean_Data_Lsp_Basic___hyg_5092____closed__11; x_3 = lean_string_append(x_1, x_2); return x_3; } } static lean_object* _init_l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonApplyWorkspaceEditParams____x40_Lean_Data_Lsp_Basic___hyg_5092____closed__13() { _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; x_1 = l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonApplyWorkspaceEditParams____x40_Lean_Data_Lsp_Basic___hyg_5092____closed__12; x_2 = l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonCancelParams____x40_Lean_Data_Lsp_Basic___hyg_144____closed__11; x_3 = lean_string_append(x_1, x_2); return x_3; } } LEAN_EXPORT lean_object* l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonApplyWorkspaceEditParams____x40_Lean_Data_Lsp_Basic___hyg_5092_(lean_object* x_1) { _start: { lean_object* x_2; lean_object* x_3; x_2 = l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_toJsonChangeAnnotation____x40_Lean_Data_Lsp_Basic___hyg_2875____closed__1; x_3 = l_Lean_Json_getObjValAs_x3f___at___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonTextEdit____x40_Lean_Data_Lsp_Basic___hyg_2082____spec__1(x_1, x_2); if (lean_obj_tag(x_3) == 0) { uint8_t x_4; x_4 = !lean_is_exclusive(x_3); if (x_4 == 0) { lean_object* x_5; lean_object* x_6; lean_object* x_7; x_5 = lean_ctor_get(x_3, 0); x_6 = l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonApplyWorkspaceEditParams____x40_Lean_Data_Lsp_Basic___hyg_5092____closed__9; x_7 = lean_string_append(x_6, x_5); lean_dec(x_5); lean_ctor_set(x_3, 0, x_7); return x_3; } else { lean_object* x_8; lean_object* x_9; lean_object* x_10; lean_object* x_11; x_8 = lean_ctor_get(x_3, 0); lean_inc(x_8); lean_dec(x_3); x_9 = l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonApplyWorkspaceEditParams____x40_Lean_Data_Lsp_Basic___hyg_5092____closed__9; x_10 = lean_string_append(x_9, x_8); lean_dec(x_8); x_11 = lean_alloc_ctor(0, 1, 0); lean_ctor_set(x_11, 0, x_10); return x_11; } } else { lean_object* x_12; lean_object* x_13; lean_object* x_14; x_12 = lean_ctor_get(x_3, 0); lean_inc(x_12); lean_dec(x_3); x_13 = l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_toJsonApplyWorkspaceEditParams____x40_Lean_Data_Lsp_Basic___hyg_5049____closed__1; x_14 = l_Lean_Json_getObjValAs_x3f___at___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonApplyWorkspaceEditParams____x40_Lean_Data_Lsp_Basic___hyg_5092____spec__1(x_1, x_13); if (lean_obj_tag(x_14) == 0) { uint8_t x_15; lean_dec(x_12); x_15 = !lean_is_exclusive(x_14); if (x_15 == 0) { lean_object* x_16; lean_object* x_17; lean_object* x_18; x_16 = lean_ctor_get(x_14, 0); x_17 = l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonApplyWorkspaceEditParams____x40_Lean_Data_Lsp_Basic___hyg_5092____closed__13; x_18 = lean_string_append(x_17, x_16); lean_dec(x_16); lean_ctor_set(x_14, 0, x_18); return x_14; } else { lean_object* x_19; lean_object* x_20; lean_object* x_21; lean_object* x_22; x_19 = lean_ctor_get(x_14, 0); lean_inc(x_19); lean_dec(x_14); x_20 = l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonApplyWorkspaceEditParams____x40_Lean_Data_Lsp_Basic___hyg_5092____closed__13; x_21 = lean_string_append(x_20, x_19); lean_dec(x_19); x_22 = lean_alloc_ctor(0, 1, 0); lean_ctor_set(x_22, 0, x_21); return x_22; } } else { uint8_t x_23; x_23 = !lean_is_exclusive(x_14); if (x_23 == 0) { lean_object* x_24; lean_object* x_25; x_24 = lean_ctor_get(x_14, 0); x_25 = lean_alloc_ctor(0, 2, 0); lean_ctor_set(x_25, 0, x_12); lean_ctor_set(x_25, 1, x_24); lean_ctor_set(x_14, 0, x_25); return x_14; } else { lean_object* x_26; lean_object* x_27; lean_object* x_28; x_26 = lean_ctor_get(x_14, 0); lean_inc(x_26); lean_dec(x_14); x_27 = lean_alloc_ctor(0, 2, 0); lean_ctor_set(x_27, 0, x_12); lean_ctor_set(x_27, 1, x_26); x_28 = lean_alloc_ctor(1, 1, 0); lean_ctor_set(x_28, 0, x_27); return x_28; } } } } } LEAN_EXPORT lean_object* l_Lean_Json_getObjValAs_x3f___at___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonApplyWorkspaceEditParams____x40_Lean_Data_Lsp_Basic___hyg_5092____spec__1___boxed(lean_object* x_1, lean_object* x_2) { _start: { lean_object* x_3; x_3 = l_Lean_Json_getObjValAs_x3f___at___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonApplyWorkspaceEditParams____x40_Lean_Data_Lsp_Basic___hyg_5092____spec__1(x_1, x_2); lean_dec(x_2); lean_dec(x_1); return x_3; } } LEAN_EXPORT lean_object* l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonApplyWorkspaceEditParams____x40_Lean_Data_Lsp_Basic___hyg_5092____boxed(lean_object* x_1) { _start: { lean_object* x_2; x_2 = l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonApplyWorkspaceEditParams____x40_Lean_Data_Lsp_Basic___hyg_5092_(x_1); lean_dec(x_1); return x_2; } } static lean_object* _init_l_Lean_Lsp_instFromJsonApplyWorkspaceEditParams___closed__1() { _start: { lean_object* x_1; x_1 = lean_alloc_closure((void*)(l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonApplyWorkspaceEditParams____x40_Lean_Data_Lsp_Basic___hyg_5092____boxed), 1, 0); return x_1; } } static lean_object* _init_l_Lean_Lsp_instFromJsonApplyWorkspaceEditParams() { _start: { lean_object* x_1; x_1 = l_Lean_Lsp_instFromJsonApplyWorkspaceEditParams___closed__1; return x_1; } } static lean_object* _init_l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_toJsonTextDocumentItem____x40_Lean_Data_Lsp_Basic___hyg_5235____closed__1() { _start: { lean_object* x_1; x_1 = lean_mk_string_from_bytes("languageId", 10); return x_1; } } static lean_object* _init_l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_toJsonTextDocumentItem____x40_Lean_Data_Lsp_Basic___hyg_5235____closed__2() { _start: { lean_object* x_1; x_1 = lean_mk_string_from_bytes("text", 4); return x_1; } } LEAN_EXPORT lean_object* l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_toJsonTextDocumentItem____x40_Lean_Data_Lsp_Basic___hyg_5235_(lean_object* x_1) { _start: { lean_object* x_2; lean_object* x_3; lean_object* x_4; lean_object* x_5; lean_object* x_6; lean_object* x_7; lean_object* x_8; lean_object* x_9; lean_object* x_10; lean_object* x_11; lean_object* x_12; lean_object* x_13; lean_object* x_14; lean_object* x_15; lean_object* x_16; lean_object* x_17; lean_object* x_18; lean_object* x_19; lean_object* x_20; lean_object* x_21; lean_object* x_22; lean_object* x_23; lean_object* x_24; lean_object* x_25; lean_object* x_26; lean_object* x_27; lean_object* x_28; lean_object* x_29; x_2 = lean_ctor_get(x_1, 0); lean_inc(x_2); x_3 = lean_ctor_get(x_1, 1); lean_inc(x_3); x_4 = lean_ctor_get(x_1, 2); lean_inc(x_4); x_5 = lean_ctor_get(x_1, 3); lean_inc(x_5); lean_dec(x_1); x_6 = lean_alloc_ctor(3, 1, 0); lean_ctor_set(x_6, 0, x_2); x_7 = l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_toJsonLocation____x40_Lean_Data_Lsp_Basic___hyg_1263____closed__1; x_8 = lean_alloc_ctor(0, 2, 0); lean_ctor_set(x_8, 0, x_7); lean_ctor_set(x_8, 1, x_6); x_9 = lean_box(0); x_10 = lean_alloc_ctor(1, 2, 0); lean_ctor_set(x_10, 0, x_8); lean_ctor_set(x_10, 1, x_9); x_11 = lean_alloc_ctor(3, 1, 0); lean_ctor_set(x_11, 0, x_3); x_12 = l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_toJsonTextDocumentItem____x40_Lean_Data_Lsp_Basic___hyg_5235____closed__1; x_13 = lean_alloc_ctor(0, 2, 0); lean_ctor_set(x_13, 0, x_12); lean_ctor_set(x_13, 1, x_11); x_14 = lean_alloc_ctor(1, 2, 0); lean_ctor_set(x_14, 0, x_13); lean_ctor_set(x_14, 1, x_9); x_15 = l_Lean_JsonNumber_fromNat(x_4); x_16 = lean_alloc_ctor(2, 1, 0); lean_ctor_set(x_16, 0, x_15); x_17 = l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_toJsonVersionedTextDocumentIdentifier____x40_Lean_Data_Lsp_Basic___hyg_2500____closed__1; x_18 = lean_alloc_ctor(0, 2, 0); lean_ctor_set(x_18, 0, x_17); lean_ctor_set(x_18, 1, x_16); x_19 = lean_alloc_ctor(1, 2, 0); lean_ctor_set(x_19, 0, x_18); lean_ctor_set(x_19, 1, x_9); x_20 = lean_alloc_ctor(3, 1, 0); lean_ctor_set(x_20, 0, x_5); x_21 = l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_toJsonTextDocumentItem____x40_Lean_Data_Lsp_Basic___hyg_5235____closed__2; x_22 = lean_alloc_ctor(0, 2, 0); lean_ctor_set(x_22, 0, x_21); lean_ctor_set(x_22, 1, x_20); x_23 = lean_alloc_ctor(1, 2, 0); lean_ctor_set(x_23, 0, x_22); lean_ctor_set(x_23, 1, x_9); x_24 = lean_alloc_ctor(1, 2, 0); lean_ctor_set(x_24, 0, x_23); lean_ctor_set(x_24, 1, x_9); x_25 = lean_alloc_ctor(1, 2, 0); lean_ctor_set(x_25, 0, x_19); lean_ctor_set(x_25, 1, x_24); x_26 = lean_alloc_ctor(1, 2, 0); lean_ctor_set(x_26, 0, x_14); lean_ctor_set(x_26, 1, x_25); x_27 = lean_alloc_ctor(1, 2, 0); lean_ctor_set(x_27, 0, x_10); lean_ctor_set(x_27, 1, x_26); x_28 = l_List_join___rarg(x_27); x_29 = l_Lean_Json_mkObj(x_28); return x_29; } } static lean_object* _init_l_Lean_Lsp_instToJsonTextDocumentItem___closed__1() { _start: { lean_object* x_1; x_1 = lean_alloc_closure((void*)(l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_toJsonTextDocumentItem____x40_Lean_Data_Lsp_Basic___hyg_5235_), 1, 0); return x_1; } } static lean_object* _init_l_Lean_Lsp_instToJsonTextDocumentItem() { _start: { lean_object* x_1; x_1 = l_Lean_Lsp_instToJsonTextDocumentItem___closed__1; return x_1; } } static lean_object* _init_l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonTextDocumentItem____x40_Lean_Data_Lsp_Basic___hyg_5313____closed__1() { _start: { lean_object* x_1; x_1 = lean_mk_string_from_bytes("TextDocumentItem", 16); return x_1; } } static lean_object* _init_l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonTextDocumentItem____x40_Lean_Data_Lsp_Basic___hyg_5313____closed__2() { _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; lean_object* x_4; x_1 = l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonCancelParams____x40_Lean_Data_Lsp_Basic___hyg_144____closed__1; x_2 = l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonCancelParams____x40_Lean_Data_Lsp_Basic___hyg_144____closed__2; x_3 = l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonTextDocumentItem____x40_Lean_Data_Lsp_Basic___hyg_5313____closed__1; x_4 = l_Lean_Name_mkStr3(x_1, x_2, x_3); return x_4; } } static lean_object* _init_l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonTextDocumentItem____x40_Lean_Data_Lsp_Basic___hyg_5313____closed__3() { _start: { lean_object* x_1; uint8_t x_2; lean_object* x_3; x_1 = l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonTextDocumentItem____x40_Lean_Data_Lsp_Basic___hyg_5313____closed__2; x_2 = 1; x_3 = l_Lean_Name_toString(x_1, x_2); return x_3; } } static lean_object* _init_l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonTextDocumentItem____x40_Lean_Data_Lsp_Basic___hyg_5313____closed__4() { _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; x_1 = l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonTextDocumentItem____x40_Lean_Data_Lsp_Basic___hyg_5313____closed__3; x_2 = l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonCancelParams____x40_Lean_Data_Lsp_Basic___hyg_144____closed__6; x_3 = lean_string_append(x_1, x_2); return x_3; } } static lean_object* _init_l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonTextDocumentItem____x40_Lean_Data_Lsp_Basic___hyg_5313____closed__5() { _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; x_1 = l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonTextDocumentItem____x40_Lean_Data_Lsp_Basic___hyg_5313____closed__4; x_2 = l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonLocation____x40_Lean_Data_Lsp_Basic___hyg_1314____closed__6; x_3 = lean_string_append(x_1, x_2); return x_3; } } static lean_object* _init_l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonTextDocumentItem____x40_Lean_Data_Lsp_Basic___hyg_5313____closed__6() { _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; x_1 = l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonTextDocumentItem____x40_Lean_Data_Lsp_Basic___hyg_5313____closed__5; x_2 = l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonCancelParams____x40_Lean_Data_Lsp_Basic___hyg_144____closed__11; x_3 = lean_string_append(x_1, x_2); return x_3; } } static lean_object* _init_l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonTextDocumentItem____x40_Lean_Data_Lsp_Basic___hyg_5313____closed__7() { _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; x_1 = lean_box(0); x_2 = l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_toJsonTextDocumentItem____x40_Lean_Data_Lsp_Basic___hyg_5235____closed__1; x_3 = l_Lean_Name_str___override(x_1, x_2); return x_3; } } static lean_object* _init_l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonTextDocumentItem____x40_Lean_Data_Lsp_Basic___hyg_5313____closed__8() { _start: { lean_object* x_1; uint8_t x_2; lean_object* x_3; x_1 = l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonTextDocumentItem____x40_Lean_Data_Lsp_Basic___hyg_5313____closed__7; x_2 = 1; x_3 = l_Lean_Name_toString(x_1, x_2); return x_3; } } static lean_object* _init_l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonTextDocumentItem____x40_Lean_Data_Lsp_Basic___hyg_5313____closed__9() { _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; x_1 = l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonTextDocumentItem____x40_Lean_Data_Lsp_Basic___hyg_5313____closed__4; x_2 = l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonTextDocumentItem____x40_Lean_Data_Lsp_Basic___hyg_5313____closed__8; x_3 = lean_string_append(x_1, x_2); return x_3; } } static lean_object* _init_l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonTextDocumentItem____x40_Lean_Data_Lsp_Basic___hyg_5313____closed__10() { _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; x_1 = l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonTextDocumentItem____x40_Lean_Data_Lsp_Basic___hyg_5313____closed__9; x_2 = l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonCancelParams____x40_Lean_Data_Lsp_Basic___hyg_144____closed__11; x_3 = lean_string_append(x_1, x_2); return x_3; } } static lean_object* _init_l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonTextDocumentItem____x40_Lean_Data_Lsp_Basic___hyg_5313____closed__11() { _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; x_1 = lean_box(0); x_2 = l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_toJsonVersionedTextDocumentIdentifier____x40_Lean_Data_Lsp_Basic___hyg_2500____closed__1; x_3 = l_Lean_Name_str___override(x_1, x_2); return x_3; } } static lean_object* _init_l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonTextDocumentItem____x40_Lean_Data_Lsp_Basic___hyg_5313____closed__12() { _start: { lean_object* x_1; uint8_t x_2; lean_object* x_3; x_1 = l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonTextDocumentItem____x40_Lean_Data_Lsp_Basic___hyg_5313____closed__11; x_2 = 1; x_3 = l_Lean_Name_toString(x_1, x_2); return x_3; } } static lean_object* _init_l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonTextDocumentItem____x40_Lean_Data_Lsp_Basic___hyg_5313____closed__13() { _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; x_1 = l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonTextDocumentItem____x40_Lean_Data_Lsp_Basic___hyg_5313____closed__4; x_2 = l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonTextDocumentItem____x40_Lean_Data_Lsp_Basic___hyg_5313____closed__12; x_3 = lean_string_append(x_1, x_2); return x_3; } } static lean_object* _init_l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonTextDocumentItem____x40_Lean_Data_Lsp_Basic___hyg_5313____closed__14() { _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; x_1 = l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonTextDocumentItem____x40_Lean_Data_Lsp_Basic___hyg_5313____closed__13; x_2 = l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonCancelParams____x40_Lean_Data_Lsp_Basic___hyg_144____closed__11; x_3 = lean_string_append(x_1, x_2); return x_3; } } static lean_object* _init_l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonTextDocumentItem____x40_Lean_Data_Lsp_Basic___hyg_5313____closed__15() { _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; x_1 = lean_box(0); x_2 = l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_toJsonTextDocumentItem____x40_Lean_Data_Lsp_Basic___hyg_5235____closed__2; x_3 = l_Lean_Name_str___override(x_1, x_2); return x_3; } } static lean_object* _init_l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonTextDocumentItem____x40_Lean_Data_Lsp_Basic___hyg_5313____closed__16() { _start: { lean_object* x_1; uint8_t x_2; lean_object* x_3; x_1 = l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonTextDocumentItem____x40_Lean_Data_Lsp_Basic___hyg_5313____closed__15; x_2 = 1; x_3 = l_Lean_Name_toString(x_1, x_2); return x_3; } } static lean_object* _init_l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonTextDocumentItem____x40_Lean_Data_Lsp_Basic___hyg_5313____closed__17() { _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; x_1 = l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonTextDocumentItem____x40_Lean_Data_Lsp_Basic___hyg_5313____closed__4; x_2 = l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonTextDocumentItem____x40_Lean_Data_Lsp_Basic___hyg_5313____closed__16; x_3 = lean_string_append(x_1, x_2); return x_3; } } static lean_object* _init_l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonTextDocumentItem____x40_Lean_Data_Lsp_Basic___hyg_5313____closed__18() { _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; x_1 = l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonTextDocumentItem____x40_Lean_Data_Lsp_Basic___hyg_5313____closed__17; x_2 = l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonCancelParams____x40_Lean_Data_Lsp_Basic___hyg_144____closed__11; x_3 = lean_string_append(x_1, x_2); return x_3; } } LEAN_EXPORT lean_object* l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonTextDocumentItem____x40_Lean_Data_Lsp_Basic___hyg_5313_(lean_object* x_1) { _start: { lean_object* x_2; lean_object* x_3; x_2 = l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_toJsonLocation____x40_Lean_Data_Lsp_Basic___hyg_1263____closed__1; x_3 = l_Lean_Json_getObjValAs_x3f___at___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonLocation____x40_Lean_Data_Lsp_Basic___hyg_1314____spec__1(x_1, x_2); if (lean_obj_tag(x_3) == 0) { uint8_t x_4; x_4 = !lean_is_exclusive(x_3); if (x_4 == 0) { lean_object* x_5; lean_object* x_6; lean_object* x_7; x_5 = lean_ctor_get(x_3, 0); x_6 = l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonTextDocumentItem____x40_Lean_Data_Lsp_Basic___hyg_5313____closed__6; x_7 = lean_string_append(x_6, x_5); lean_dec(x_5); lean_ctor_set(x_3, 0, x_7); return x_3; } else { lean_object* x_8; lean_object* x_9; lean_object* x_10; lean_object* x_11; x_8 = lean_ctor_get(x_3, 0); lean_inc(x_8); lean_dec(x_3); x_9 = l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonTextDocumentItem____x40_Lean_Data_Lsp_Basic___hyg_5313____closed__6; x_10 = lean_string_append(x_9, x_8); lean_dec(x_8); x_11 = lean_alloc_ctor(0, 1, 0); lean_ctor_set(x_11, 0, x_10); return x_11; } } else { lean_object* x_12; lean_object* x_13; lean_object* x_14; x_12 = lean_ctor_get(x_3, 0); lean_inc(x_12); lean_dec(x_3); x_13 = l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_toJsonTextDocumentItem____x40_Lean_Data_Lsp_Basic___hyg_5235____closed__1; x_14 = l_Lean_Json_getObjValAs_x3f___at_Lean_JsonRpc_instFromJsonMessage___spec__3(x_1, x_13); if (lean_obj_tag(x_14) == 0) { uint8_t x_15; lean_dec(x_12); x_15 = !lean_is_exclusive(x_14); if (x_15 == 0) { lean_object* x_16; lean_object* x_17; lean_object* x_18; x_16 = lean_ctor_get(x_14, 0); x_17 = l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonTextDocumentItem____x40_Lean_Data_Lsp_Basic___hyg_5313____closed__10; x_18 = lean_string_append(x_17, x_16); lean_dec(x_16); lean_ctor_set(x_14, 0, x_18); return x_14; } else { lean_object* x_19; lean_object* x_20; lean_object* x_21; lean_object* x_22; x_19 = lean_ctor_get(x_14, 0); lean_inc(x_19); lean_dec(x_14); x_20 = l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonTextDocumentItem____x40_Lean_Data_Lsp_Basic___hyg_5313____closed__10; x_21 = lean_string_append(x_20, x_19); lean_dec(x_19); x_22 = lean_alloc_ctor(0, 1, 0); lean_ctor_set(x_22, 0, x_21); return x_22; } } else { lean_object* x_23; lean_object* x_24; lean_object* x_25; x_23 = lean_ctor_get(x_14, 0); lean_inc(x_23); lean_dec(x_14); x_24 = l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_toJsonVersionedTextDocumentIdentifier____x40_Lean_Data_Lsp_Basic___hyg_2500____closed__1; x_25 = l_Lean_Json_getObjValAs_x3f___at___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonPosition____x40_Lean_Data_Lsp_Basic___hyg_548____spec__1(x_1, x_24); if (lean_obj_tag(x_25) == 0) { uint8_t x_26; lean_dec(x_23); lean_dec(x_12); x_26 = !lean_is_exclusive(x_25); if (x_26 == 0) { lean_object* x_27; lean_object* x_28; lean_object* x_29; x_27 = lean_ctor_get(x_25, 0); x_28 = l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonTextDocumentItem____x40_Lean_Data_Lsp_Basic___hyg_5313____closed__14; x_29 = lean_string_append(x_28, x_27); lean_dec(x_27); lean_ctor_set(x_25, 0, x_29); return x_25; } else { lean_object* x_30; lean_object* x_31; lean_object* x_32; lean_object* x_33; x_30 = lean_ctor_get(x_25, 0); lean_inc(x_30); lean_dec(x_25); x_31 = l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonTextDocumentItem____x40_Lean_Data_Lsp_Basic___hyg_5313____closed__14; x_32 = lean_string_append(x_31, x_30); lean_dec(x_30); x_33 = lean_alloc_ctor(0, 1, 0); lean_ctor_set(x_33, 0, x_32); return x_33; } } else { lean_object* x_34; lean_object* x_35; lean_object* x_36; x_34 = lean_ctor_get(x_25, 0); lean_inc(x_34); lean_dec(x_25); x_35 = l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_toJsonTextDocumentItem____x40_Lean_Data_Lsp_Basic___hyg_5235____closed__2; x_36 = l_Lean_Json_getObjValAs_x3f___at_Lean_JsonRpc_instFromJsonMessage___spec__3(x_1, x_35); if (lean_obj_tag(x_36) == 0) { uint8_t x_37; lean_dec(x_34); lean_dec(x_23); lean_dec(x_12); x_37 = !lean_is_exclusive(x_36); if (x_37 == 0) { lean_object* x_38; lean_object* x_39; lean_object* x_40; x_38 = lean_ctor_get(x_36, 0); x_39 = l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonTextDocumentItem____x40_Lean_Data_Lsp_Basic___hyg_5313____closed__18; x_40 = lean_string_append(x_39, x_38); lean_dec(x_38); lean_ctor_set(x_36, 0, x_40); return x_36; } else { lean_object* x_41; lean_object* x_42; lean_object* x_43; lean_object* x_44; x_41 = lean_ctor_get(x_36, 0); lean_inc(x_41); lean_dec(x_36); x_42 = l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonTextDocumentItem____x40_Lean_Data_Lsp_Basic___hyg_5313____closed__18; x_43 = lean_string_append(x_42, x_41); lean_dec(x_41); x_44 = lean_alloc_ctor(0, 1, 0); lean_ctor_set(x_44, 0, x_43); return x_44; } } else { uint8_t x_45; x_45 = !lean_is_exclusive(x_36); if (x_45 == 0) { lean_object* x_46; lean_object* x_47; x_46 = lean_ctor_get(x_36, 0); x_47 = lean_alloc_ctor(0, 4, 0); lean_ctor_set(x_47, 0, x_12); lean_ctor_set(x_47, 1, x_23); lean_ctor_set(x_47, 2, x_34); lean_ctor_set(x_47, 3, x_46); lean_ctor_set(x_36, 0, x_47); return x_36; } else { lean_object* x_48; lean_object* x_49; lean_object* x_50; x_48 = lean_ctor_get(x_36, 0); lean_inc(x_48); lean_dec(x_36); x_49 = lean_alloc_ctor(0, 4, 0); lean_ctor_set(x_49, 0, x_12); lean_ctor_set(x_49, 1, x_23); lean_ctor_set(x_49, 2, x_34); lean_ctor_set(x_49, 3, x_48); x_50 = lean_alloc_ctor(1, 1, 0); lean_ctor_set(x_50, 0, x_49); return x_50; } } } } } } } LEAN_EXPORT lean_object* l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonTextDocumentItem____x40_Lean_Data_Lsp_Basic___hyg_5313____boxed(lean_object* x_1) { _start: { lean_object* x_2; x_2 = l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonTextDocumentItem____x40_Lean_Data_Lsp_Basic___hyg_5313_(x_1); lean_dec(x_1); return x_2; } } static lean_object* _init_l_Lean_Lsp_instFromJsonTextDocumentItem___closed__1() { _start: { lean_object* x_1; x_1 = lean_alloc_closure((void*)(l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonTextDocumentItem____x40_Lean_Data_Lsp_Basic___hyg_5313____boxed), 1, 0); return x_1; } } static lean_object* _init_l_Lean_Lsp_instFromJsonTextDocumentItem() { _start: { lean_object* x_1; x_1 = l_Lean_Lsp_instFromJsonTextDocumentItem___closed__1; return x_1; } } static lean_object* _init_l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_toJsonTextDocumentPositionParams____x40_Lean_Data_Lsp_Basic___hyg_5518____closed__1() { _start: { lean_object* x_1; x_1 = lean_mk_string_from_bytes("position", 8); return x_1; } } LEAN_EXPORT lean_object* l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_toJsonTextDocumentPositionParams____x40_Lean_Data_Lsp_Basic___hyg_5518_(lean_object* x_1) { _start: { lean_object* x_2; lean_object* x_3; lean_object* x_4; lean_object* x_5; lean_object* x_6; lean_object* x_7; lean_object* x_8; lean_object* x_9; lean_object* x_10; lean_object* x_11; lean_object* x_12; lean_object* x_13; lean_object* x_14; lean_object* x_15; lean_object* x_16; x_2 = lean_ctor_get(x_1, 0); lean_inc(x_2); x_3 = l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_toJsonTextDocumentIdentifier____x40_Lean_Data_Lsp_Basic___hyg_2378_(x_2); x_4 = l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_toJsonTextDocumentEdit____x40_Lean_Data_Lsp_Basic___hyg_2677____closed__1; x_5 = lean_alloc_ctor(0, 2, 0); lean_ctor_set(x_5, 0, x_4); lean_ctor_set(x_5, 1, x_3); x_6 = lean_box(0); x_7 = lean_alloc_ctor(1, 2, 0); lean_ctor_set(x_7, 0, x_5); lean_ctor_set(x_7, 1, x_6); x_8 = lean_ctor_get(x_1, 1); lean_inc(x_8); lean_dec(x_1); x_9 = l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_toJsonPosition____x40_Lean_Data_Lsp_Basic___hyg_497_(x_8); x_10 = l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_toJsonTextDocumentPositionParams____x40_Lean_Data_Lsp_Basic___hyg_5518____closed__1; x_11 = lean_alloc_ctor(0, 2, 0); lean_ctor_set(x_11, 0, x_10); lean_ctor_set(x_11, 1, x_9); x_12 = lean_alloc_ctor(1, 2, 0); lean_ctor_set(x_12, 0, x_11); lean_ctor_set(x_12, 1, x_6); x_13 = lean_alloc_ctor(1, 2, 0); lean_ctor_set(x_13, 0, x_12); lean_ctor_set(x_13, 1, x_6); x_14 = lean_alloc_ctor(1, 2, 0); lean_ctor_set(x_14, 0, x_7); lean_ctor_set(x_14, 1, x_13); x_15 = l_List_join___rarg(x_14); x_16 = l_Lean_Json_mkObj(x_15); return x_16; } } static lean_object* _init_l_Lean_Lsp_instToJsonTextDocumentPositionParams___closed__1() { _start: { lean_object* x_1; x_1 = lean_alloc_closure((void*)(l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_toJsonTextDocumentPositionParams____x40_Lean_Data_Lsp_Basic___hyg_5518_), 1, 0); return x_1; } } static lean_object* _init_l_Lean_Lsp_instToJsonTextDocumentPositionParams() { _start: { lean_object* x_1; x_1 = l_Lean_Lsp_instToJsonTextDocumentPositionParams___closed__1; return x_1; } } LEAN_EXPORT lean_object* l_Lean_Json_getObjValAs_x3f___at___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonTextDocumentPositionParams____x40_Lean_Data_Lsp_Basic___hyg_5568____spec__1(lean_object* x_1, lean_object* x_2) { _start: { lean_object* x_3; lean_object* x_4; x_3 = l_Lean_Json_getObjValD(x_1, x_2); x_4 = l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonTextDocumentIdentifier____x40_Lean_Data_Lsp_Basic___hyg_2414_(x_3); lean_dec(x_3); return x_4; } } static lean_object* _init_l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonTextDocumentPositionParams____x40_Lean_Data_Lsp_Basic___hyg_5568____closed__1() { _start: { lean_object* x_1; x_1 = lean_mk_string_from_bytes("TextDocumentPositionParams", 26); return x_1; } } static lean_object* _init_l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonTextDocumentPositionParams____x40_Lean_Data_Lsp_Basic___hyg_5568____closed__2() { _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; lean_object* x_4; x_1 = l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonCancelParams____x40_Lean_Data_Lsp_Basic___hyg_144____closed__1; x_2 = l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonCancelParams____x40_Lean_Data_Lsp_Basic___hyg_144____closed__2; x_3 = l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonTextDocumentPositionParams____x40_Lean_Data_Lsp_Basic___hyg_5568____closed__1; x_4 = l_Lean_Name_mkStr3(x_1, x_2, x_3); return x_4; } } static lean_object* _init_l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonTextDocumentPositionParams____x40_Lean_Data_Lsp_Basic___hyg_5568____closed__3() { _start: { lean_object* x_1; uint8_t x_2; lean_object* x_3; x_1 = l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonTextDocumentPositionParams____x40_Lean_Data_Lsp_Basic___hyg_5568____closed__2; x_2 = 1; x_3 = l_Lean_Name_toString(x_1, x_2); return x_3; } } static lean_object* _init_l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonTextDocumentPositionParams____x40_Lean_Data_Lsp_Basic___hyg_5568____closed__4() { _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; x_1 = l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonTextDocumentPositionParams____x40_Lean_Data_Lsp_Basic___hyg_5568____closed__3; x_2 = l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonCancelParams____x40_Lean_Data_Lsp_Basic___hyg_144____closed__6; x_3 = lean_string_append(x_1, x_2); return x_3; } } static lean_object* _init_l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonTextDocumentPositionParams____x40_Lean_Data_Lsp_Basic___hyg_5568____closed__5() { _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; x_1 = l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonTextDocumentPositionParams____x40_Lean_Data_Lsp_Basic___hyg_5568____closed__4; x_2 = l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonTextDocumentEdit____x40_Lean_Data_Lsp_Basic___hyg_2731____closed__6; x_3 = lean_string_append(x_1, x_2); return x_3; } } static lean_object* _init_l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonTextDocumentPositionParams____x40_Lean_Data_Lsp_Basic___hyg_5568____closed__6() { _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; x_1 = l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonTextDocumentPositionParams____x40_Lean_Data_Lsp_Basic___hyg_5568____closed__5; x_2 = l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonCancelParams____x40_Lean_Data_Lsp_Basic___hyg_144____closed__11; x_3 = lean_string_append(x_1, x_2); return x_3; } } static lean_object* _init_l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonTextDocumentPositionParams____x40_Lean_Data_Lsp_Basic___hyg_5568____closed__7() { _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; x_1 = lean_box(0); x_2 = l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_toJsonTextDocumentPositionParams____x40_Lean_Data_Lsp_Basic___hyg_5518____closed__1; x_3 = l_Lean_Name_str___override(x_1, x_2); return x_3; } } static lean_object* _init_l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonTextDocumentPositionParams____x40_Lean_Data_Lsp_Basic___hyg_5568____closed__8() { _start: { lean_object* x_1; uint8_t x_2; lean_object* x_3; x_1 = l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonTextDocumentPositionParams____x40_Lean_Data_Lsp_Basic___hyg_5568____closed__7; x_2 = 1; x_3 = l_Lean_Name_toString(x_1, x_2); return x_3; } } static lean_object* _init_l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonTextDocumentPositionParams____x40_Lean_Data_Lsp_Basic___hyg_5568____closed__9() { _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; x_1 = l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonTextDocumentPositionParams____x40_Lean_Data_Lsp_Basic___hyg_5568____closed__4; x_2 = l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonTextDocumentPositionParams____x40_Lean_Data_Lsp_Basic___hyg_5568____closed__8; x_3 = lean_string_append(x_1, x_2); return x_3; } } static lean_object* _init_l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonTextDocumentPositionParams____x40_Lean_Data_Lsp_Basic___hyg_5568____closed__10() { _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; x_1 = l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonTextDocumentPositionParams____x40_Lean_Data_Lsp_Basic___hyg_5568____closed__9; x_2 = l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonCancelParams____x40_Lean_Data_Lsp_Basic___hyg_144____closed__11; x_3 = lean_string_append(x_1, x_2); return x_3; } } LEAN_EXPORT lean_object* l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonTextDocumentPositionParams____x40_Lean_Data_Lsp_Basic___hyg_5568_(lean_object* x_1) { _start: { lean_object* x_2; lean_object* x_3; x_2 = l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_toJsonTextDocumentEdit____x40_Lean_Data_Lsp_Basic___hyg_2677____closed__1; x_3 = l_Lean_Json_getObjValAs_x3f___at___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonTextDocumentPositionParams____x40_Lean_Data_Lsp_Basic___hyg_5568____spec__1(x_1, x_2); if (lean_obj_tag(x_3) == 0) { uint8_t x_4; x_4 = !lean_is_exclusive(x_3); if (x_4 == 0) { lean_object* x_5; lean_object* x_6; lean_object* x_7; x_5 = lean_ctor_get(x_3, 0); x_6 = l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonTextDocumentPositionParams____x40_Lean_Data_Lsp_Basic___hyg_5568____closed__6; x_7 = lean_string_append(x_6, x_5); lean_dec(x_5); lean_ctor_set(x_3, 0, x_7); return x_3; } else { lean_object* x_8; lean_object* x_9; lean_object* x_10; lean_object* x_11; x_8 = lean_ctor_get(x_3, 0); lean_inc(x_8); lean_dec(x_3); x_9 = l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonTextDocumentPositionParams____x40_Lean_Data_Lsp_Basic___hyg_5568____closed__6; x_10 = lean_string_append(x_9, x_8); lean_dec(x_8); x_11 = lean_alloc_ctor(0, 1, 0); lean_ctor_set(x_11, 0, x_10); return x_11; } } else { lean_object* x_12; lean_object* x_13; lean_object* x_14; x_12 = lean_ctor_get(x_3, 0); lean_inc(x_12); lean_dec(x_3); x_13 = l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_toJsonTextDocumentPositionParams____x40_Lean_Data_Lsp_Basic___hyg_5518____closed__1; x_14 = l_Lean_Json_getObjValAs_x3f___at___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonRange____x40_Lean_Data_Lsp_Basic___hyg_916____spec__1(x_1, x_13); if (lean_obj_tag(x_14) == 0) { uint8_t x_15; lean_dec(x_12); x_15 = !lean_is_exclusive(x_14); if (x_15 == 0) { lean_object* x_16; lean_object* x_17; lean_object* x_18; x_16 = lean_ctor_get(x_14, 0); x_17 = l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonTextDocumentPositionParams____x40_Lean_Data_Lsp_Basic___hyg_5568____closed__10; x_18 = lean_string_append(x_17, x_16); lean_dec(x_16); lean_ctor_set(x_14, 0, x_18); return x_14; } else { lean_object* x_19; lean_object* x_20; lean_object* x_21; lean_object* x_22; x_19 = lean_ctor_get(x_14, 0); lean_inc(x_19); lean_dec(x_14); x_20 = l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonTextDocumentPositionParams____x40_Lean_Data_Lsp_Basic___hyg_5568____closed__10; x_21 = lean_string_append(x_20, x_19); lean_dec(x_19); x_22 = lean_alloc_ctor(0, 1, 0); lean_ctor_set(x_22, 0, x_21); return x_22; } } else { uint8_t x_23; x_23 = !lean_is_exclusive(x_14); if (x_23 == 0) { lean_object* x_24; lean_object* x_25; x_24 = lean_ctor_get(x_14, 0); x_25 = lean_alloc_ctor(0, 2, 0); lean_ctor_set(x_25, 0, x_12); lean_ctor_set(x_25, 1, x_24); lean_ctor_set(x_14, 0, x_25); return x_14; } else { lean_object* x_26; lean_object* x_27; lean_object* x_28; x_26 = lean_ctor_get(x_14, 0); lean_inc(x_26); lean_dec(x_14); x_27 = lean_alloc_ctor(0, 2, 0); lean_ctor_set(x_27, 0, x_12); lean_ctor_set(x_27, 1, x_26); x_28 = lean_alloc_ctor(1, 1, 0); lean_ctor_set(x_28, 0, x_27); return x_28; } } } } } LEAN_EXPORT lean_object* l_Lean_Json_getObjValAs_x3f___at___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonTextDocumentPositionParams____x40_Lean_Data_Lsp_Basic___hyg_5568____spec__1___boxed(lean_object* x_1, lean_object* x_2) { _start: { lean_object* x_3; x_3 = l_Lean_Json_getObjValAs_x3f___at___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonTextDocumentPositionParams____x40_Lean_Data_Lsp_Basic___hyg_5568____spec__1(x_1, x_2); lean_dec(x_2); lean_dec(x_1); return x_3; } } LEAN_EXPORT lean_object* l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonTextDocumentPositionParams____x40_Lean_Data_Lsp_Basic___hyg_5568____boxed(lean_object* x_1) { _start: { lean_object* x_2; x_2 = l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonTextDocumentPositionParams____x40_Lean_Data_Lsp_Basic___hyg_5568_(x_1); lean_dec(x_1); return x_2; } } static lean_object* _init_l_Lean_Lsp_instFromJsonTextDocumentPositionParams___closed__1() { _start: { lean_object* x_1; x_1 = lean_alloc_closure((void*)(l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonTextDocumentPositionParams____x40_Lean_Data_Lsp_Basic___hyg_5568____boxed), 1, 0); return x_1; } } static lean_object* _init_l_Lean_Lsp_instFromJsonTextDocumentPositionParams() { _start: { lean_object* x_1; x_1 = l_Lean_Lsp_instFromJsonTextDocumentPositionParams___closed__1; return x_1; } } static lean_object* _init_l_Lean_Lsp_instToStringTextDocumentPositionParams___closed__1() { _start: { lean_object* x_1; x_1 = lean_mk_string_from_bytes(":", 1); return x_1; } } LEAN_EXPORT lean_object* l_Lean_Lsp_instToStringTextDocumentPositionParams(lean_object* x_1) { _start: { lean_object* x_2; lean_object* x_3; lean_object* x_4; lean_object* x_5; lean_object* x_6; lean_object* x_7; lean_object* x_8; lean_object* x_9; lean_object* x_10; lean_object* x_11; lean_object* x_12; lean_object* x_13; lean_object* x_14; lean_object* x_15; x_2 = lean_ctor_get(x_1, 0); lean_inc(x_2); x_3 = l_Lean_Lsp_instInhabitedCancelParams___closed__1; x_4 = lean_string_append(x_3, x_2); lean_dec(x_2); x_5 = l_Lean_Lsp_instToStringTextDocumentPositionParams___closed__1; x_6 = lean_string_append(x_4, x_5); x_7 = lean_ctor_get(x_1, 1); lean_inc(x_7); lean_dec(x_1); x_8 = lean_ctor_get(x_7, 0); lean_inc(x_8); x_9 = l_Nat_repr(x_8); x_10 = lean_string_append(x_6, x_9); lean_dec(x_9); x_11 = lean_string_append(x_10, x_5); x_12 = lean_ctor_get(x_7, 1); lean_inc(x_12); lean_dec(x_7); x_13 = l_Nat_repr(x_12); x_14 = lean_string_append(x_11, x_13); lean_dec(x_13); x_15 = lean_string_append(x_14, x_3); return x_15; } } static lean_object* _init_l_Lean_Lsp_DocumentFilter_language_x3f___default() { _start: { lean_object* x_1; x_1 = lean_box(0); return x_1; } } static lean_object* _init_l_Lean_Lsp_DocumentFilter_scheme_x3f___default() { _start: { lean_object* x_1; x_1 = lean_box(0); return x_1; } } static lean_object* _init_l_Lean_Lsp_DocumentFilter_pattern_x3f___default() { _start: { lean_object* x_1; x_1 = lean_box(0); return x_1; } } static lean_object* _init_l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_toJsonDocumentFilter____x40_Lean_Data_Lsp_Basic___hyg_5749____closed__1() { _start: { lean_object* x_1; x_1 = lean_mk_string_from_bytes("language", 8); return x_1; } } static lean_object* _init_l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_toJsonDocumentFilter____x40_Lean_Data_Lsp_Basic___hyg_5749____closed__2() { _start: { lean_object* x_1; x_1 = lean_mk_string_from_bytes("scheme", 6); return x_1; } } static lean_object* _init_l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_toJsonDocumentFilter____x40_Lean_Data_Lsp_Basic___hyg_5749____closed__3() { _start: { lean_object* x_1; x_1 = lean_mk_string_from_bytes("pattern", 7); return x_1; } } LEAN_EXPORT lean_object* l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_toJsonDocumentFilter____x40_Lean_Data_Lsp_Basic___hyg_5749_(lean_object* x_1) { _start: { lean_object* x_2; lean_object* x_3; lean_object* x_4; lean_object* x_5; lean_object* x_6; lean_object* x_7; lean_object* x_8; lean_object* x_9; lean_object* x_10; lean_object* x_11; lean_object* x_12; lean_object* x_13; lean_object* x_14; lean_object* x_15; lean_object* x_16; x_2 = lean_ctor_get(x_1, 0); x_3 = l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_toJsonDocumentFilter____x40_Lean_Data_Lsp_Basic___hyg_5749____closed__1; x_4 = l_Lean_Json_opt___at___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_toJsonTextEdit____x40_Lean_Data_Lsp_Basic___hyg_2023____spec__1(x_3, x_2); x_5 = lean_ctor_get(x_1, 1); x_6 = l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_toJsonDocumentFilter____x40_Lean_Data_Lsp_Basic___hyg_5749____closed__2; x_7 = l_Lean_Json_opt___at___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_toJsonTextEdit____x40_Lean_Data_Lsp_Basic___hyg_2023____spec__1(x_6, x_5); x_8 = lean_ctor_get(x_1, 2); x_9 = l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_toJsonDocumentFilter____x40_Lean_Data_Lsp_Basic___hyg_5749____closed__3; x_10 = l_Lean_Json_opt___at___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_toJsonTextEdit____x40_Lean_Data_Lsp_Basic___hyg_2023____spec__1(x_9, x_8); x_11 = lean_box(0); x_12 = lean_alloc_ctor(1, 2, 0); lean_ctor_set(x_12, 0, x_10); lean_ctor_set(x_12, 1, x_11); x_13 = lean_alloc_ctor(1, 2, 0); lean_ctor_set(x_13, 0, x_7); lean_ctor_set(x_13, 1, x_12); x_14 = lean_alloc_ctor(1, 2, 0); lean_ctor_set(x_14, 0, x_4); lean_ctor_set(x_14, 1, x_13); x_15 = l_List_join___rarg(x_14); x_16 = l_Lean_Json_mkObj(x_15); return x_16; } } LEAN_EXPORT lean_object* l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_toJsonDocumentFilter____x40_Lean_Data_Lsp_Basic___hyg_5749____boxed(lean_object* x_1) { _start: { lean_object* x_2; x_2 = l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_toJsonDocumentFilter____x40_Lean_Data_Lsp_Basic___hyg_5749_(x_1); lean_dec(x_1); return x_2; } } static lean_object* _init_l_Lean_Lsp_instToJsonDocumentFilter___closed__1() { _start: { lean_object* x_1; x_1 = lean_alloc_closure((void*)(l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_toJsonDocumentFilter____x40_Lean_Data_Lsp_Basic___hyg_5749____boxed), 1, 0); return x_1; } } static lean_object* _init_l_Lean_Lsp_instToJsonDocumentFilter() { _start: { lean_object* x_1; x_1 = l_Lean_Lsp_instToJsonDocumentFilter___closed__1; return x_1; } } static lean_object* _init_l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonDocumentFilter____x40_Lean_Data_Lsp_Basic___hyg_5792____closed__1() { _start: { lean_object* x_1; x_1 = lean_mk_string_from_bytes("DocumentFilter", 14); return x_1; } } static lean_object* _init_l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonDocumentFilter____x40_Lean_Data_Lsp_Basic___hyg_5792____closed__2() { _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; lean_object* x_4; x_1 = l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonCancelParams____x40_Lean_Data_Lsp_Basic___hyg_144____closed__1; x_2 = l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonCancelParams____x40_Lean_Data_Lsp_Basic___hyg_144____closed__2; x_3 = l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonDocumentFilter____x40_Lean_Data_Lsp_Basic___hyg_5792____closed__1; x_4 = l_Lean_Name_mkStr3(x_1, x_2, x_3); return x_4; } } static lean_object* _init_l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonDocumentFilter____x40_Lean_Data_Lsp_Basic___hyg_5792____closed__3() { _start: { lean_object* x_1; uint8_t x_2; lean_object* x_3; x_1 = l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonDocumentFilter____x40_Lean_Data_Lsp_Basic___hyg_5792____closed__2; x_2 = 1; x_3 = l_Lean_Name_toString(x_1, x_2); return x_3; } } static lean_object* _init_l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonDocumentFilter____x40_Lean_Data_Lsp_Basic___hyg_5792____closed__4() { _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; x_1 = l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonDocumentFilter____x40_Lean_Data_Lsp_Basic___hyg_5792____closed__3; x_2 = l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonCancelParams____x40_Lean_Data_Lsp_Basic___hyg_144____closed__6; x_3 = lean_string_append(x_1, x_2); return x_3; } } static lean_object* _init_l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonDocumentFilter____x40_Lean_Data_Lsp_Basic___hyg_5792____closed__5() { _start: { lean_object* x_1; x_1 = lean_mk_string_from_bytes("language?", 9); return x_1; } } static lean_object* _init_l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonDocumentFilter____x40_Lean_Data_Lsp_Basic___hyg_5792____closed__6() { _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; x_1 = lean_box(0); x_2 = l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonDocumentFilter____x40_Lean_Data_Lsp_Basic___hyg_5792____closed__5; x_3 = l_Lean_Name_str___override(x_1, x_2); return x_3; } } static lean_object* _init_l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonDocumentFilter____x40_Lean_Data_Lsp_Basic___hyg_5792____closed__7() { _start: { lean_object* x_1; uint8_t x_2; lean_object* x_3; x_1 = l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonDocumentFilter____x40_Lean_Data_Lsp_Basic___hyg_5792____closed__6; x_2 = 1; x_3 = l_Lean_Name_toString(x_1, x_2); return x_3; } } static lean_object* _init_l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonDocumentFilter____x40_Lean_Data_Lsp_Basic___hyg_5792____closed__8() { _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; x_1 = l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonDocumentFilter____x40_Lean_Data_Lsp_Basic___hyg_5792____closed__4; x_2 = l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonDocumentFilter____x40_Lean_Data_Lsp_Basic___hyg_5792____closed__7; x_3 = lean_string_append(x_1, x_2); return x_3; } } static lean_object* _init_l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonDocumentFilter____x40_Lean_Data_Lsp_Basic___hyg_5792____closed__9() { _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; x_1 = l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonDocumentFilter____x40_Lean_Data_Lsp_Basic___hyg_5792____closed__8; x_2 = l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonCancelParams____x40_Lean_Data_Lsp_Basic___hyg_144____closed__11; x_3 = lean_string_append(x_1, x_2); return x_3; } } static lean_object* _init_l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonDocumentFilter____x40_Lean_Data_Lsp_Basic___hyg_5792____closed__10() { _start: { lean_object* x_1; x_1 = lean_mk_string_from_bytes("scheme?", 7); return x_1; } } static lean_object* _init_l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonDocumentFilter____x40_Lean_Data_Lsp_Basic___hyg_5792____closed__11() { _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; x_1 = lean_box(0); x_2 = l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonDocumentFilter____x40_Lean_Data_Lsp_Basic___hyg_5792____closed__10; x_3 = l_Lean_Name_str___override(x_1, x_2); return x_3; } } static lean_object* _init_l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonDocumentFilter____x40_Lean_Data_Lsp_Basic___hyg_5792____closed__12() { _start: { lean_object* x_1; uint8_t x_2; lean_object* x_3; x_1 = l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonDocumentFilter____x40_Lean_Data_Lsp_Basic___hyg_5792____closed__11; x_2 = 1; x_3 = l_Lean_Name_toString(x_1, x_2); return x_3; } } static lean_object* _init_l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonDocumentFilter____x40_Lean_Data_Lsp_Basic___hyg_5792____closed__13() { _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; x_1 = l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonDocumentFilter____x40_Lean_Data_Lsp_Basic___hyg_5792____closed__4; x_2 = l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonDocumentFilter____x40_Lean_Data_Lsp_Basic___hyg_5792____closed__12; x_3 = lean_string_append(x_1, x_2); return x_3; } } static lean_object* _init_l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonDocumentFilter____x40_Lean_Data_Lsp_Basic___hyg_5792____closed__14() { _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; x_1 = l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonDocumentFilter____x40_Lean_Data_Lsp_Basic___hyg_5792____closed__13; x_2 = l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonCancelParams____x40_Lean_Data_Lsp_Basic___hyg_144____closed__11; x_3 = lean_string_append(x_1, x_2); return x_3; } } static lean_object* _init_l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonDocumentFilter____x40_Lean_Data_Lsp_Basic___hyg_5792____closed__15() { _start: { lean_object* x_1; x_1 = lean_mk_string_from_bytes("pattern?", 8); return x_1; } } static lean_object* _init_l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonDocumentFilter____x40_Lean_Data_Lsp_Basic___hyg_5792____closed__16() { _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; x_1 = lean_box(0); x_2 = l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonDocumentFilter____x40_Lean_Data_Lsp_Basic___hyg_5792____closed__15; x_3 = l_Lean_Name_str___override(x_1, x_2); return x_3; } } static lean_object* _init_l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonDocumentFilter____x40_Lean_Data_Lsp_Basic___hyg_5792____closed__17() { _start: { lean_object* x_1; uint8_t x_2; lean_object* x_3; x_1 = l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonDocumentFilter____x40_Lean_Data_Lsp_Basic___hyg_5792____closed__16; x_2 = 1; x_3 = l_Lean_Name_toString(x_1, x_2); return x_3; } } static lean_object* _init_l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonDocumentFilter____x40_Lean_Data_Lsp_Basic___hyg_5792____closed__18() { _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; x_1 = l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonDocumentFilter____x40_Lean_Data_Lsp_Basic___hyg_5792____closed__4; x_2 = l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonDocumentFilter____x40_Lean_Data_Lsp_Basic___hyg_5792____closed__17; x_3 = lean_string_append(x_1, x_2); return x_3; } } static lean_object* _init_l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonDocumentFilter____x40_Lean_Data_Lsp_Basic___hyg_5792____closed__19() { _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; x_1 = l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonDocumentFilter____x40_Lean_Data_Lsp_Basic___hyg_5792____closed__18; x_2 = l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonCancelParams____x40_Lean_Data_Lsp_Basic___hyg_144____closed__11; x_3 = lean_string_append(x_1, x_2); return x_3; } } LEAN_EXPORT lean_object* l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonDocumentFilter____x40_Lean_Data_Lsp_Basic___hyg_5792_(lean_object* x_1) { _start: { lean_object* x_2; lean_object* x_3; x_2 = l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_toJsonDocumentFilter____x40_Lean_Data_Lsp_Basic___hyg_5749____closed__1; x_3 = l_Lean_Json_getObjValAs_x3f___at___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonTextEdit____x40_Lean_Data_Lsp_Basic___hyg_2082____spec__1(x_1, x_2); if (lean_obj_tag(x_3) == 0) { uint8_t x_4; x_4 = !lean_is_exclusive(x_3); if (x_4 == 0) { lean_object* x_5; lean_object* x_6; lean_object* x_7; x_5 = lean_ctor_get(x_3, 0); x_6 = l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonDocumentFilter____x40_Lean_Data_Lsp_Basic___hyg_5792____closed__9; x_7 = lean_string_append(x_6, x_5); lean_dec(x_5); lean_ctor_set(x_3, 0, x_7); return x_3; } else { lean_object* x_8; lean_object* x_9; lean_object* x_10; lean_object* x_11; x_8 = lean_ctor_get(x_3, 0); lean_inc(x_8); lean_dec(x_3); x_9 = l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonDocumentFilter____x40_Lean_Data_Lsp_Basic___hyg_5792____closed__9; x_10 = lean_string_append(x_9, x_8); lean_dec(x_8); x_11 = lean_alloc_ctor(0, 1, 0); lean_ctor_set(x_11, 0, x_10); return x_11; } } else { lean_object* x_12; lean_object* x_13; lean_object* x_14; x_12 = lean_ctor_get(x_3, 0); lean_inc(x_12); lean_dec(x_3); x_13 = l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_toJsonDocumentFilter____x40_Lean_Data_Lsp_Basic___hyg_5749____closed__2; x_14 = l_Lean_Json_getObjValAs_x3f___at___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonTextEdit____x40_Lean_Data_Lsp_Basic___hyg_2082____spec__1(x_1, x_13); if (lean_obj_tag(x_14) == 0) { uint8_t x_15; lean_dec(x_12); x_15 = !lean_is_exclusive(x_14); if (x_15 == 0) { lean_object* x_16; lean_object* x_17; lean_object* x_18; x_16 = lean_ctor_get(x_14, 0); x_17 = l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonDocumentFilter____x40_Lean_Data_Lsp_Basic___hyg_5792____closed__14; x_18 = lean_string_append(x_17, x_16); lean_dec(x_16); lean_ctor_set(x_14, 0, x_18); return x_14; } else { lean_object* x_19; lean_object* x_20; lean_object* x_21; lean_object* x_22; x_19 = lean_ctor_get(x_14, 0); lean_inc(x_19); lean_dec(x_14); x_20 = l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonDocumentFilter____x40_Lean_Data_Lsp_Basic___hyg_5792____closed__14; x_21 = lean_string_append(x_20, x_19); lean_dec(x_19); x_22 = lean_alloc_ctor(0, 1, 0); lean_ctor_set(x_22, 0, x_21); return x_22; } } else { lean_object* x_23; lean_object* x_24; lean_object* x_25; x_23 = lean_ctor_get(x_14, 0); lean_inc(x_23); lean_dec(x_14); x_24 = l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_toJsonDocumentFilter____x40_Lean_Data_Lsp_Basic___hyg_5749____closed__3; x_25 = l_Lean_Json_getObjValAs_x3f___at___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonTextEdit____x40_Lean_Data_Lsp_Basic___hyg_2082____spec__1(x_1, x_24); if (lean_obj_tag(x_25) == 0) { uint8_t x_26; lean_dec(x_23); lean_dec(x_12); x_26 = !lean_is_exclusive(x_25); if (x_26 == 0) { lean_object* x_27; lean_object* x_28; lean_object* x_29; x_27 = lean_ctor_get(x_25, 0); x_28 = l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonDocumentFilter____x40_Lean_Data_Lsp_Basic___hyg_5792____closed__19; x_29 = lean_string_append(x_28, x_27); lean_dec(x_27); lean_ctor_set(x_25, 0, x_29); return x_25; } else { lean_object* x_30; lean_object* x_31; lean_object* x_32; lean_object* x_33; x_30 = lean_ctor_get(x_25, 0); lean_inc(x_30); lean_dec(x_25); x_31 = l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonDocumentFilter____x40_Lean_Data_Lsp_Basic___hyg_5792____closed__19; x_32 = lean_string_append(x_31, x_30); lean_dec(x_30); x_33 = lean_alloc_ctor(0, 1, 0); lean_ctor_set(x_33, 0, x_32); return x_33; } } else { uint8_t x_34; x_34 = !lean_is_exclusive(x_25); if (x_34 == 0) { lean_object* x_35; lean_object* x_36; x_35 = lean_ctor_get(x_25, 0); x_36 = lean_alloc_ctor(0, 3, 0); lean_ctor_set(x_36, 0, x_12); lean_ctor_set(x_36, 1, x_23); lean_ctor_set(x_36, 2, x_35); lean_ctor_set(x_25, 0, x_36); return x_25; } else { lean_object* x_37; lean_object* x_38; lean_object* x_39; x_37 = lean_ctor_get(x_25, 0); lean_inc(x_37); lean_dec(x_25); x_38 = lean_alloc_ctor(0, 3, 0); lean_ctor_set(x_38, 0, x_12); lean_ctor_set(x_38, 1, x_23); lean_ctor_set(x_38, 2, x_37); x_39 = lean_alloc_ctor(1, 1, 0); lean_ctor_set(x_39, 0, x_38); return x_39; } } } } } } LEAN_EXPORT lean_object* l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonDocumentFilter____x40_Lean_Data_Lsp_Basic___hyg_5792____boxed(lean_object* x_1) { _start: { lean_object* x_2; x_2 = l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonDocumentFilter____x40_Lean_Data_Lsp_Basic___hyg_5792_(x_1); lean_dec(x_1); return x_2; } } static lean_object* _init_l_Lean_Lsp_instFromJsonDocumentFilter___closed__1() { _start: { lean_object* x_1; x_1 = lean_alloc_closure((void*)(l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonDocumentFilter____x40_Lean_Data_Lsp_Basic___hyg_5792____boxed), 1, 0); return x_1; } } static lean_object* _init_l_Lean_Lsp_instFromJsonDocumentFilter() { _start: { lean_object* x_1; x_1 = l_Lean_Lsp_instFromJsonDocumentFilter___closed__1; return x_1; } } LEAN_EXPORT lean_object* l_Array_mapMUnsafe_map___at_Lean_Lsp_instFromJsonDocumentSelector___spec__1(size_t x_1, size_t x_2, lean_object* x_3) { _start: { uint8_t x_4; x_4 = lean_usize_dec_lt(x_2, x_1); if (x_4 == 0) { lean_object* x_5; x_5 = lean_alloc_ctor(1, 1, 0); lean_ctor_set(x_5, 0, x_3); return x_5; } else { lean_object* x_6; lean_object* x_7; lean_object* x_8; lean_object* x_9; x_6 = lean_array_uget(x_3, x_2); x_7 = lean_unsigned_to_nat(0u); x_8 = lean_array_uset(x_3, x_2, x_7); x_9 = l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonDocumentFilter____x40_Lean_Data_Lsp_Basic___hyg_5792_(x_6); lean_dec(x_6); if (lean_obj_tag(x_9) == 0) { uint8_t x_10; lean_dec(x_8); x_10 = !lean_is_exclusive(x_9); if (x_10 == 0) { return x_9; } else { lean_object* x_11; lean_object* x_12; x_11 = lean_ctor_get(x_9, 0); lean_inc(x_11); lean_dec(x_9); x_12 = lean_alloc_ctor(0, 1, 0); lean_ctor_set(x_12, 0, x_11); return x_12; } } else { lean_object* x_13; size_t x_14; size_t x_15; lean_object* x_16; x_13 = lean_ctor_get(x_9, 0); lean_inc(x_13); lean_dec(x_9); x_14 = 1; x_15 = lean_usize_add(x_2, x_14); x_16 = lean_array_uset(x_8, x_2, x_13); x_2 = x_15; x_3 = x_16; goto _start; } } } } LEAN_EXPORT lean_object* l_Lean_Lsp_instFromJsonDocumentSelector(lean_object* x_1) { _start: { if (lean_obj_tag(x_1) == 4) { lean_object* x_2; lean_object* x_3; size_t x_4; size_t x_5; lean_object* x_6; x_2 = lean_ctor_get(x_1, 0); lean_inc(x_2); lean_dec(x_1); x_3 = lean_array_get_size(x_2); x_4 = lean_usize_of_nat(x_3); lean_dec(x_3); x_5 = 0; x_6 = l_Array_mapMUnsafe_map___at_Lean_Lsp_instFromJsonDocumentSelector___spec__1(x_4, x_5, x_2); return x_6; } else { lean_object* x_7; lean_object* x_8; lean_object* x_9; lean_object* x_10; lean_object* x_11; lean_object* x_12; lean_object* x_13; x_7 = lean_unsigned_to_nat(80u); x_8 = l_Lean_Json_pretty(x_1, x_7); x_9 = l_Lean_Json_getObjValAs_x3f___at___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonCommand____x40_Lean_Data_Lsp_Basic___hyg_1837____spec__1___closed__1; x_10 = lean_string_append(x_9, x_8); lean_dec(x_8); x_11 = l_Lean_Json_getObjValAs_x3f___at___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonCommand____x40_Lean_Data_Lsp_Basic___hyg_1837____spec__1___closed__2; x_12 = lean_string_append(x_10, x_11); x_13 = lean_alloc_ctor(0, 1, 0); lean_ctor_set(x_13, 0, x_12); return x_13; } } } LEAN_EXPORT lean_object* l_Array_mapMUnsafe_map___at_Lean_Lsp_instFromJsonDocumentSelector___spec__1___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3) { _start: { size_t x_4; size_t x_5; lean_object* x_6; x_4 = lean_unbox_usize(x_1); lean_dec(x_1); x_5 = lean_unbox_usize(x_2); lean_dec(x_2); x_6 = l_Array_mapMUnsafe_map___at_Lean_Lsp_instFromJsonDocumentSelector___spec__1(x_4, x_5, x_3); return x_6; } } LEAN_EXPORT lean_object* l_Array_mapMUnsafe_map___at_Lean_Lsp_instToJsonDocumentSelector___spec__1(size_t x_1, size_t x_2, lean_object* x_3) { _start: { uint8_t x_4; x_4 = lean_usize_dec_lt(x_2, x_1); if (x_4 == 0) { return x_3; } else { lean_object* x_5; lean_object* x_6; lean_object* x_7; lean_object* x_8; size_t x_9; size_t x_10; lean_object* x_11; x_5 = lean_array_uget(x_3, x_2); x_6 = lean_unsigned_to_nat(0u); x_7 = lean_array_uset(x_3, x_2, x_6); x_8 = l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_toJsonDocumentFilter____x40_Lean_Data_Lsp_Basic___hyg_5749_(x_5); lean_dec(x_5); x_9 = 1; x_10 = lean_usize_add(x_2, x_9); x_11 = lean_array_uset(x_7, x_2, x_8); x_2 = x_10; x_3 = x_11; goto _start; } } } LEAN_EXPORT lean_object* l_Lean_Lsp_instToJsonDocumentSelector(lean_object* x_1) { _start: { lean_object* x_2; size_t x_3; size_t x_4; lean_object* x_5; lean_object* x_6; x_2 = lean_array_get_size(x_1); x_3 = lean_usize_of_nat(x_2); lean_dec(x_2); x_4 = 0; x_5 = l_Array_mapMUnsafe_map___at_Lean_Lsp_instToJsonDocumentSelector___spec__1(x_3, x_4, x_1); x_6 = lean_alloc_ctor(4, 1, 0); lean_ctor_set(x_6, 0, x_5); return x_6; } } LEAN_EXPORT lean_object* l_Array_mapMUnsafe_map___at_Lean_Lsp_instToJsonDocumentSelector___spec__1___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3) { _start: { size_t x_4; size_t x_5; lean_object* x_6; x_4 = lean_unbox_usize(x_1); lean_dec(x_1); x_5 = lean_unbox_usize(x_2); lean_dec(x_2); x_6 = l_Array_mapMUnsafe_map___at_Lean_Lsp_instToJsonDocumentSelector___spec__1(x_4, x_5, x_3); return x_6; } } static lean_object* _init_l_Lean_Lsp_StaticRegistrationOptions_id_x3f___default() { _start: { lean_object* x_1; x_1 = lean_box(0); return x_1; } } LEAN_EXPORT lean_object* l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_toJsonStaticRegistrationOptions____x40_Lean_Data_Lsp_Basic___hyg_5983_(lean_object* x_1) { _start: { lean_object* x_2; lean_object* x_3; lean_object* x_4; lean_object* x_5; lean_object* x_6; lean_object* x_7; x_2 = l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_toJsonCancelParams____x40_Lean_Data_Lsp_Basic___hyg_100____closed__1; x_3 = l_Lean_Json_opt___at___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_toJsonTextEdit____x40_Lean_Data_Lsp_Basic___hyg_2023____spec__1(x_2, x_1); x_4 = lean_box(0); x_5 = lean_alloc_ctor(1, 2, 0); lean_ctor_set(x_5, 0, x_3); lean_ctor_set(x_5, 1, x_4); x_6 = l_List_join___rarg(x_5); x_7 = l_Lean_Json_mkObj(x_6); return x_7; } } LEAN_EXPORT lean_object* l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_toJsonStaticRegistrationOptions____x40_Lean_Data_Lsp_Basic___hyg_5983____boxed(lean_object* x_1) { _start: { lean_object* x_2; x_2 = l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_toJsonStaticRegistrationOptions____x40_Lean_Data_Lsp_Basic___hyg_5983_(x_1); lean_dec(x_1); return x_2; } } static lean_object* _init_l_Lean_Lsp_instToJsonStaticRegistrationOptions___closed__1() { _start: { lean_object* x_1; x_1 = lean_alloc_closure((void*)(l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_toJsonStaticRegistrationOptions____x40_Lean_Data_Lsp_Basic___hyg_5983____boxed), 1, 0); return x_1; } } static lean_object* _init_l_Lean_Lsp_instToJsonStaticRegistrationOptions() { _start: { lean_object* x_1; x_1 = l_Lean_Lsp_instToJsonStaticRegistrationOptions___closed__1; return x_1; } } static lean_object* _init_l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonStaticRegistrationOptions____x40_Lean_Data_Lsp_Basic___hyg_6012____closed__1() { _start: { lean_object* x_1; x_1 = lean_mk_string_from_bytes("StaticRegistrationOptions", 25); return x_1; } } static lean_object* _init_l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonStaticRegistrationOptions____x40_Lean_Data_Lsp_Basic___hyg_6012____closed__2() { _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; lean_object* x_4; x_1 = l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonCancelParams____x40_Lean_Data_Lsp_Basic___hyg_144____closed__1; x_2 = l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonCancelParams____x40_Lean_Data_Lsp_Basic___hyg_144____closed__2; x_3 = l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonStaticRegistrationOptions____x40_Lean_Data_Lsp_Basic___hyg_6012____closed__1; x_4 = l_Lean_Name_mkStr3(x_1, x_2, x_3); return x_4; } } static lean_object* _init_l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonStaticRegistrationOptions____x40_Lean_Data_Lsp_Basic___hyg_6012____closed__3() { _start: { lean_object* x_1; uint8_t x_2; lean_object* x_3; x_1 = l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonStaticRegistrationOptions____x40_Lean_Data_Lsp_Basic___hyg_6012____closed__2; x_2 = 1; x_3 = l_Lean_Name_toString(x_1, x_2); return x_3; } } static lean_object* _init_l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonStaticRegistrationOptions____x40_Lean_Data_Lsp_Basic___hyg_6012____closed__4() { _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; x_1 = l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonStaticRegistrationOptions____x40_Lean_Data_Lsp_Basic___hyg_6012____closed__3; x_2 = l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonCancelParams____x40_Lean_Data_Lsp_Basic___hyg_144____closed__6; x_3 = lean_string_append(x_1, x_2); return x_3; } } static lean_object* _init_l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonStaticRegistrationOptions____x40_Lean_Data_Lsp_Basic___hyg_6012____closed__5() { _start: { lean_object* x_1; x_1 = lean_mk_string_from_bytes("id?", 3); return x_1; } } static lean_object* _init_l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonStaticRegistrationOptions____x40_Lean_Data_Lsp_Basic___hyg_6012____closed__6() { _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; x_1 = lean_box(0); x_2 = l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonStaticRegistrationOptions____x40_Lean_Data_Lsp_Basic___hyg_6012____closed__5; x_3 = l_Lean_Name_str___override(x_1, x_2); return x_3; } } static lean_object* _init_l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonStaticRegistrationOptions____x40_Lean_Data_Lsp_Basic___hyg_6012____closed__7() { _start: { lean_object* x_1; uint8_t x_2; lean_object* x_3; x_1 = l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonStaticRegistrationOptions____x40_Lean_Data_Lsp_Basic___hyg_6012____closed__6; x_2 = 1; x_3 = l_Lean_Name_toString(x_1, x_2); return x_3; } } static lean_object* _init_l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonStaticRegistrationOptions____x40_Lean_Data_Lsp_Basic___hyg_6012____closed__8() { _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; x_1 = l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonStaticRegistrationOptions____x40_Lean_Data_Lsp_Basic___hyg_6012____closed__4; x_2 = l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonStaticRegistrationOptions____x40_Lean_Data_Lsp_Basic___hyg_6012____closed__7; x_3 = lean_string_append(x_1, x_2); return x_3; } } static lean_object* _init_l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonStaticRegistrationOptions____x40_Lean_Data_Lsp_Basic___hyg_6012____closed__9() { _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; x_1 = l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonStaticRegistrationOptions____x40_Lean_Data_Lsp_Basic___hyg_6012____closed__8; x_2 = l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonCancelParams____x40_Lean_Data_Lsp_Basic___hyg_144____closed__11; x_3 = lean_string_append(x_1, x_2); return x_3; } } LEAN_EXPORT lean_object* l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonStaticRegistrationOptions____x40_Lean_Data_Lsp_Basic___hyg_6012_(lean_object* x_1) { _start: { lean_object* x_2; lean_object* x_3; x_2 = l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_toJsonCancelParams____x40_Lean_Data_Lsp_Basic___hyg_100____closed__1; x_3 = l_Lean_Json_getObjValAs_x3f___at___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonTextEdit____x40_Lean_Data_Lsp_Basic___hyg_2082____spec__1(x_1, x_2); if (lean_obj_tag(x_3) == 0) { uint8_t x_4; x_4 = !lean_is_exclusive(x_3); if (x_4 == 0) { lean_object* x_5; lean_object* x_6; lean_object* x_7; x_5 = lean_ctor_get(x_3, 0); x_6 = l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonStaticRegistrationOptions____x40_Lean_Data_Lsp_Basic___hyg_6012____closed__9; x_7 = lean_string_append(x_6, x_5); lean_dec(x_5); lean_ctor_set(x_3, 0, x_7); return x_3; } else { lean_object* x_8; lean_object* x_9; lean_object* x_10; lean_object* x_11; x_8 = lean_ctor_get(x_3, 0); lean_inc(x_8); lean_dec(x_3); x_9 = l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonStaticRegistrationOptions____x40_Lean_Data_Lsp_Basic___hyg_6012____closed__9; x_10 = lean_string_append(x_9, x_8); lean_dec(x_8); x_11 = lean_alloc_ctor(0, 1, 0); lean_ctor_set(x_11, 0, x_10); return x_11; } } else { uint8_t x_12; x_12 = !lean_is_exclusive(x_3); if (x_12 == 0) { return x_3; } else { lean_object* x_13; lean_object* x_14; x_13 = lean_ctor_get(x_3, 0); lean_inc(x_13); lean_dec(x_3); x_14 = lean_alloc_ctor(1, 1, 0); lean_ctor_set(x_14, 0, x_13); return x_14; } } } } LEAN_EXPORT lean_object* l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonStaticRegistrationOptions____x40_Lean_Data_Lsp_Basic___hyg_6012____boxed(lean_object* x_1) { _start: { lean_object* x_2; x_2 = l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonStaticRegistrationOptions____x40_Lean_Data_Lsp_Basic___hyg_6012_(x_1); lean_dec(x_1); return x_2; } } static lean_object* _init_l_Lean_Lsp_instFromJsonStaticRegistrationOptions___closed__1() { _start: { lean_object* x_1; x_1 = lean_alloc_closure((void*)(l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonStaticRegistrationOptions____x40_Lean_Data_Lsp_Basic___hyg_6012____boxed), 1, 0); return x_1; } } static lean_object* _init_l_Lean_Lsp_instFromJsonStaticRegistrationOptions() { _start: { lean_object* x_1; x_1 = l_Lean_Lsp_instFromJsonStaticRegistrationOptions___closed__1; return x_1; } } static lean_object* _init_l_Lean_Lsp_TextDocumentRegistrationOptions_documentSelector_x3f___default() { _start: { lean_object* x_1; x_1 = lean_box(0); return x_1; } } LEAN_EXPORT lean_object* l_Lean_Json_opt___at___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_toJsonTextDocumentRegistrationOptions____x40_Lean_Data_Lsp_Basic___hyg_6090____spec__1(lean_object* x_1, lean_object* x_2) { _start: { if (lean_obj_tag(x_2) == 0) { lean_object* x_3; lean_dec(x_1); x_3 = lean_box(0); return x_3; } else { lean_object* x_4; lean_object* x_5; size_t x_6; size_t x_7; lean_object* x_8; lean_object* x_9; lean_object* x_10; lean_object* x_11; lean_object* x_12; x_4 = lean_ctor_get(x_2, 0); lean_inc(x_4); lean_dec(x_2); x_5 = lean_array_get_size(x_4); x_6 = lean_usize_of_nat(x_5); lean_dec(x_5); x_7 = 0; x_8 = l_Array_mapMUnsafe_map___at_Lean_Lsp_instToJsonDocumentSelector___spec__1(x_6, x_7, x_4); x_9 = lean_alloc_ctor(4, 1, 0); lean_ctor_set(x_9, 0, x_8); x_10 = lean_alloc_ctor(0, 2, 0); lean_ctor_set(x_10, 0, x_1); lean_ctor_set(x_10, 1, x_9); x_11 = lean_box(0); x_12 = lean_alloc_ctor(1, 2, 0); lean_ctor_set(x_12, 0, x_10); lean_ctor_set(x_12, 1, x_11); return x_12; } } } static lean_object* _init_l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_toJsonTextDocumentRegistrationOptions____x40_Lean_Data_Lsp_Basic___hyg_6090____closed__1() { _start: { lean_object* x_1; x_1 = lean_mk_string_from_bytes("documentSelector", 16); return x_1; } } LEAN_EXPORT lean_object* l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_toJsonTextDocumentRegistrationOptions____x40_Lean_Data_Lsp_Basic___hyg_6090_(lean_object* x_1) { _start: { lean_object* x_2; lean_object* x_3; lean_object* x_4; lean_object* x_5; lean_object* x_6; lean_object* x_7; x_2 = l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_toJsonTextDocumentRegistrationOptions____x40_Lean_Data_Lsp_Basic___hyg_6090____closed__1; x_3 = l_Lean_Json_opt___at___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_toJsonTextDocumentRegistrationOptions____x40_Lean_Data_Lsp_Basic___hyg_6090____spec__1(x_2, x_1); x_4 = lean_box(0); x_5 = lean_alloc_ctor(1, 2, 0); lean_ctor_set(x_5, 0, x_3); lean_ctor_set(x_5, 1, x_4); x_6 = l_List_join___rarg(x_5); x_7 = l_Lean_Json_mkObj(x_6); return x_7; } } static lean_object* _init_l_Lean_Lsp_instToJsonTextDocumentRegistrationOptions___closed__1() { _start: { lean_object* x_1; x_1 = lean_alloc_closure((void*)(l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_toJsonTextDocumentRegistrationOptions____x40_Lean_Data_Lsp_Basic___hyg_6090_), 1, 0); return x_1; } } static lean_object* _init_l_Lean_Lsp_instToJsonTextDocumentRegistrationOptions() { _start: { lean_object* x_1; x_1 = l_Lean_Lsp_instToJsonTextDocumentRegistrationOptions___closed__1; return x_1; } } LEAN_EXPORT lean_object* l_Lean_Json_getObjValAs_x3f___at___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonTextDocumentRegistrationOptions____x40_Lean_Data_Lsp_Basic___hyg_6125____spec__1(lean_object* x_1, lean_object* x_2) { _start: { lean_object* x_3; x_3 = l_Lean_Json_getObjValD(x_1, x_2); switch (lean_obj_tag(x_3)) { case 0: { lean_object* x_4; x_4 = l_Lean_Json_getObjValAs_x3f___at___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonLocationLink____x40_Lean_Data_Lsp_Basic___hyg_1529____spec__1___closed__1; return x_4; } case 4: { lean_object* x_5; lean_object* x_6; size_t x_7; size_t x_8; lean_object* x_9; x_5 = lean_ctor_get(x_3, 0); lean_inc(x_5); lean_dec(x_3); x_6 = lean_array_get_size(x_5); x_7 = lean_usize_of_nat(x_6); lean_dec(x_6); x_8 = 0; x_9 = l_Array_mapMUnsafe_map___at_Lean_Lsp_instFromJsonDocumentSelector___spec__1(x_7, x_8, x_5); if (lean_obj_tag(x_9) == 0) { uint8_t x_10; x_10 = !lean_is_exclusive(x_9); if (x_10 == 0) { return x_9; } else { lean_object* x_11; lean_object* x_12; x_11 = lean_ctor_get(x_9, 0); lean_inc(x_11); lean_dec(x_9); x_12 = lean_alloc_ctor(0, 1, 0); lean_ctor_set(x_12, 0, x_11); return x_12; } } else { uint8_t x_13; x_13 = !lean_is_exclusive(x_9); if (x_13 == 0) { lean_object* x_14; lean_object* x_15; x_14 = lean_ctor_get(x_9, 0); x_15 = lean_alloc_ctor(1, 1, 0); lean_ctor_set(x_15, 0, x_14); lean_ctor_set(x_9, 0, x_15); return x_9; } else { lean_object* x_16; lean_object* x_17; lean_object* x_18; x_16 = lean_ctor_get(x_9, 0); lean_inc(x_16); lean_dec(x_9); x_17 = lean_alloc_ctor(1, 1, 0); lean_ctor_set(x_17, 0, x_16); x_18 = lean_alloc_ctor(1, 1, 0); lean_ctor_set(x_18, 0, x_17); return x_18; } } } default: { lean_object* x_19; lean_object* x_20; lean_object* x_21; lean_object* x_22; lean_object* x_23; lean_object* x_24; lean_object* x_25; x_19 = lean_unsigned_to_nat(80u); x_20 = l_Lean_Json_pretty(x_3, x_19); x_21 = l_Lean_Json_getObjValAs_x3f___at___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonCommand____x40_Lean_Data_Lsp_Basic___hyg_1837____spec__1___closed__1; x_22 = lean_string_append(x_21, x_20); lean_dec(x_20); x_23 = l_Lean_Json_getObjValAs_x3f___at___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonCommand____x40_Lean_Data_Lsp_Basic___hyg_1837____spec__1___closed__2; x_24 = lean_string_append(x_22, x_23); x_25 = lean_alloc_ctor(0, 1, 0); lean_ctor_set(x_25, 0, x_24); return x_25; } } } } static lean_object* _init_l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonTextDocumentRegistrationOptions____x40_Lean_Data_Lsp_Basic___hyg_6125____closed__1() { _start: { lean_object* x_1; x_1 = lean_mk_string_from_bytes("TextDocumentRegistrationOptions", 31); return x_1; } } static lean_object* _init_l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonTextDocumentRegistrationOptions____x40_Lean_Data_Lsp_Basic___hyg_6125____closed__2() { _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; lean_object* x_4; x_1 = l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonCancelParams____x40_Lean_Data_Lsp_Basic___hyg_144____closed__1; x_2 = l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonCancelParams____x40_Lean_Data_Lsp_Basic___hyg_144____closed__2; x_3 = l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonTextDocumentRegistrationOptions____x40_Lean_Data_Lsp_Basic___hyg_6125____closed__1; x_4 = l_Lean_Name_mkStr3(x_1, x_2, x_3); return x_4; } } static lean_object* _init_l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonTextDocumentRegistrationOptions____x40_Lean_Data_Lsp_Basic___hyg_6125____closed__3() { _start: { lean_object* x_1; uint8_t x_2; lean_object* x_3; x_1 = l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonTextDocumentRegistrationOptions____x40_Lean_Data_Lsp_Basic___hyg_6125____closed__2; x_2 = 1; x_3 = l_Lean_Name_toString(x_1, x_2); return x_3; } } static lean_object* _init_l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonTextDocumentRegistrationOptions____x40_Lean_Data_Lsp_Basic___hyg_6125____closed__4() { _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; x_1 = l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonTextDocumentRegistrationOptions____x40_Lean_Data_Lsp_Basic___hyg_6125____closed__3; x_2 = l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonCancelParams____x40_Lean_Data_Lsp_Basic___hyg_144____closed__6; x_3 = lean_string_append(x_1, x_2); return x_3; } } static lean_object* _init_l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonTextDocumentRegistrationOptions____x40_Lean_Data_Lsp_Basic___hyg_6125____closed__5() { _start: { lean_object* x_1; x_1 = lean_mk_string_from_bytes("documentSelector?", 17); return x_1; } } static lean_object* _init_l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonTextDocumentRegistrationOptions____x40_Lean_Data_Lsp_Basic___hyg_6125____closed__6() { _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; x_1 = lean_box(0); x_2 = l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonTextDocumentRegistrationOptions____x40_Lean_Data_Lsp_Basic___hyg_6125____closed__5; x_3 = l_Lean_Name_str___override(x_1, x_2); return x_3; } } static lean_object* _init_l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonTextDocumentRegistrationOptions____x40_Lean_Data_Lsp_Basic___hyg_6125____closed__7() { _start: { lean_object* x_1; uint8_t x_2; lean_object* x_3; x_1 = l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonTextDocumentRegistrationOptions____x40_Lean_Data_Lsp_Basic___hyg_6125____closed__6; x_2 = 1; x_3 = l_Lean_Name_toString(x_1, x_2); return x_3; } } static lean_object* _init_l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonTextDocumentRegistrationOptions____x40_Lean_Data_Lsp_Basic___hyg_6125____closed__8() { _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; x_1 = l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonTextDocumentRegistrationOptions____x40_Lean_Data_Lsp_Basic___hyg_6125____closed__4; x_2 = l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonTextDocumentRegistrationOptions____x40_Lean_Data_Lsp_Basic___hyg_6125____closed__7; x_3 = lean_string_append(x_1, x_2); return x_3; } } static lean_object* _init_l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonTextDocumentRegistrationOptions____x40_Lean_Data_Lsp_Basic___hyg_6125____closed__9() { _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; x_1 = l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonTextDocumentRegistrationOptions____x40_Lean_Data_Lsp_Basic___hyg_6125____closed__8; x_2 = l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonCancelParams____x40_Lean_Data_Lsp_Basic___hyg_144____closed__11; x_3 = lean_string_append(x_1, x_2); return x_3; } } LEAN_EXPORT lean_object* l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonTextDocumentRegistrationOptions____x40_Lean_Data_Lsp_Basic___hyg_6125_(lean_object* x_1) { _start: { lean_object* x_2; lean_object* x_3; x_2 = l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_toJsonTextDocumentRegistrationOptions____x40_Lean_Data_Lsp_Basic___hyg_6090____closed__1; x_3 = l_Lean_Json_getObjValAs_x3f___at___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonTextDocumentRegistrationOptions____x40_Lean_Data_Lsp_Basic___hyg_6125____spec__1(x_1, x_2); if (lean_obj_tag(x_3) == 0) { uint8_t x_4; x_4 = !lean_is_exclusive(x_3); if (x_4 == 0) { lean_object* x_5; lean_object* x_6; lean_object* x_7; x_5 = lean_ctor_get(x_3, 0); x_6 = l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonTextDocumentRegistrationOptions____x40_Lean_Data_Lsp_Basic___hyg_6125____closed__9; x_7 = lean_string_append(x_6, x_5); lean_dec(x_5); lean_ctor_set(x_3, 0, x_7); return x_3; } else { lean_object* x_8; lean_object* x_9; lean_object* x_10; lean_object* x_11; x_8 = lean_ctor_get(x_3, 0); lean_inc(x_8); lean_dec(x_3); x_9 = l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonTextDocumentRegistrationOptions____x40_Lean_Data_Lsp_Basic___hyg_6125____closed__9; x_10 = lean_string_append(x_9, x_8); lean_dec(x_8); x_11 = lean_alloc_ctor(0, 1, 0); lean_ctor_set(x_11, 0, x_10); return x_11; } } else { uint8_t x_12; x_12 = !lean_is_exclusive(x_3); if (x_12 == 0) { return x_3; } else { lean_object* x_13; lean_object* x_14; x_13 = lean_ctor_get(x_3, 0); lean_inc(x_13); lean_dec(x_3); x_14 = lean_alloc_ctor(1, 1, 0); lean_ctor_set(x_14, 0, x_13); return x_14; } } } } LEAN_EXPORT lean_object* l_Lean_Json_getObjValAs_x3f___at___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonTextDocumentRegistrationOptions____x40_Lean_Data_Lsp_Basic___hyg_6125____spec__1___boxed(lean_object* x_1, lean_object* x_2) { _start: { lean_object* x_3; x_3 = l_Lean_Json_getObjValAs_x3f___at___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonTextDocumentRegistrationOptions____x40_Lean_Data_Lsp_Basic___hyg_6125____spec__1(x_1, x_2); lean_dec(x_2); lean_dec(x_1); return x_3; } } LEAN_EXPORT lean_object* l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonTextDocumentRegistrationOptions____x40_Lean_Data_Lsp_Basic___hyg_6125____boxed(lean_object* x_1) { _start: { lean_object* x_2; x_2 = l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonTextDocumentRegistrationOptions____x40_Lean_Data_Lsp_Basic___hyg_6125_(x_1); lean_dec(x_1); return x_2; } } static lean_object* _init_l_Lean_Lsp_instFromJsonTextDocumentRegistrationOptions___closed__1() { _start: { lean_object* x_1; x_1 = lean_alloc_closure((void*)(l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonTextDocumentRegistrationOptions____x40_Lean_Data_Lsp_Basic___hyg_6125____boxed), 1, 0); return x_1; } } static lean_object* _init_l_Lean_Lsp_instFromJsonTextDocumentRegistrationOptions() { _start: { lean_object* x_1; x_1 = l_Lean_Lsp_instFromJsonTextDocumentRegistrationOptions___closed__1; return x_1; } } LEAN_EXPORT lean_object* l_Lean_Lsp_MarkupKind_toCtorIdx(uint8_t x_1) { _start: { if (x_1 == 0) { lean_object* x_2; x_2 = lean_unsigned_to_nat(0u); return x_2; } else { lean_object* x_3; x_3 = lean_unsigned_to_nat(1u); return x_3; } } } LEAN_EXPORT lean_object* l_Lean_Lsp_MarkupKind_toCtorIdx___boxed(lean_object* x_1) { _start: { uint8_t x_2; lean_object* x_3; x_2 = lean_unbox(x_1); lean_dec(x_1); x_3 = l_Lean_Lsp_MarkupKind_toCtorIdx(x_2); return x_3; } } LEAN_EXPORT lean_object* l_Lean_Lsp_MarkupKind_noConfusion___rarg___lambda__1(lean_object* x_1) { _start: { lean_inc(x_1); return x_1; } } static lean_object* _init_l_Lean_Lsp_MarkupKind_noConfusion___rarg___closed__1() { _start: { lean_object* x_1; x_1 = lean_alloc_closure((void*)(l_Lean_Lsp_MarkupKind_noConfusion___rarg___lambda__1___boxed), 1, 0); return x_1; } } LEAN_EXPORT lean_object* l_Lean_Lsp_MarkupKind_noConfusion___rarg(uint8_t x_1, uint8_t x_2, lean_object* x_3) { _start: { lean_object* x_4; x_4 = l_Lean_Lsp_MarkupKind_noConfusion___rarg___closed__1; return x_4; } } LEAN_EXPORT lean_object* l_Lean_Lsp_MarkupKind_noConfusion(lean_object* x_1) { _start: { lean_object* x_2; x_2 = lean_alloc_closure((void*)(l_Lean_Lsp_MarkupKind_noConfusion___rarg___boxed), 3, 0); return x_2; } } LEAN_EXPORT lean_object* l_Lean_Lsp_MarkupKind_noConfusion___rarg___lambda__1___boxed(lean_object* x_1) { _start: { lean_object* x_2; x_2 = l_Lean_Lsp_MarkupKind_noConfusion___rarg___lambda__1(x_1); lean_dec(x_1); return x_2; } } LEAN_EXPORT lean_object* l_Lean_Lsp_MarkupKind_noConfusion___rarg___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3) { _start: { uint8_t x_4; uint8_t x_5; lean_object* x_6; x_4 = lean_unbox(x_1); lean_dec(x_1); x_5 = lean_unbox(x_2); lean_dec(x_2); x_6 = l_Lean_Lsp_MarkupKind_noConfusion___rarg(x_4, x_5, x_3); return x_6; } } static lean_object* _init_l_Lean_Lsp_instFromJsonMarkupKind___closed__1() { _start: { lean_object* x_1; x_1 = lean_mk_string_from_bytes("unknown MarkupKind", 18); return x_1; } } static lean_object* _init_l_Lean_Lsp_instFromJsonMarkupKind___closed__2() { _start: { lean_object* x_1; lean_object* x_2; x_1 = l_Lean_Lsp_instFromJsonMarkupKind___closed__1; x_2 = lean_alloc_ctor(0, 1, 0); lean_ctor_set(x_2, 0, x_1); return x_2; } } static lean_object* _init_l_Lean_Lsp_instFromJsonMarkupKind___closed__3() { _start: { lean_object* x_1; x_1 = lean_mk_string_from_bytes("plaintext", 9); return x_1; } } static lean_object* _init_l_Lean_Lsp_instFromJsonMarkupKind___closed__4() { _start: { lean_object* x_1; x_1 = lean_mk_string_from_bytes("markdown", 8); return x_1; } } static lean_object* _init_l_Lean_Lsp_instFromJsonMarkupKind___closed__5() { _start: { uint8_t x_1; lean_object* x_2; lean_object* x_3; x_1 = 1; x_2 = lean_box(x_1); x_3 = lean_alloc_ctor(1, 1, 0); lean_ctor_set(x_3, 0, x_2); return x_3; } } static lean_object* _init_l_Lean_Lsp_instFromJsonMarkupKind___closed__6() { _start: { uint8_t x_1; lean_object* x_2; lean_object* x_3; x_1 = 0; x_2 = lean_box(x_1); x_3 = lean_alloc_ctor(1, 1, 0); lean_ctor_set(x_3, 0, x_2); return x_3; } } LEAN_EXPORT lean_object* l_Lean_Lsp_instFromJsonMarkupKind(lean_object* x_1) { _start: { if (lean_obj_tag(x_1) == 3) { lean_object* x_2; lean_object* x_3; uint8_t x_4; x_2 = lean_ctor_get(x_1, 0); x_3 = l_Lean_Lsp_instFromJsonMarkupKind___closed__3; x_4 = lean_string_dec_eq(x_2, x_3); if (x_4 == 0) { lean_object* x_5; uint8_t x_6; x_5 = l_Lean_Lsp_instFromJsonMarkupKind___closed__4; x_6 = lean_string_dec_eq(x_2, x_5); if (x_6 == 0) { lean_object* x_7; x_7 = l_Lean_Lsp_instFromJsonMarkupKind___closed__2; return x_7; } else { lean_object* x_8; x_8 = l_Lean_Lsp_instFromJsonMarkupKind___closed__5; return x_8; } } else { lean_object* x_9; x_9 = l_Lean_Lsp_instFromJsonMarkupKind___closed__6; return x_9; } } else { lean_object* x_10; x_10 = l_Lean_Lsp_instFromJsonMarkupKind___closed__2; return x_10; } } } LEAN_EXPORT lean_object* l_Lean_Lsp_instFromJsonMarkupKind___boxed(lean_object* x_1) { _start: { lean_object* x_2; x_2 = l_Lean_Lsp_instFromJsonMarkupKind(x_1); lean_dec(x_1); return x_2; } } static lean_object* _init_l_Lean_Lsp_instToJsonMarkupKind___closed__1() { _start: { lean_object* x_1; lean_object* x_2; x_1 = l_Lean_Lsp_instFromJsonMarkupKind___closed__3; x_2 = lean_alloc_ctor(3, 1, 0); lean_ctor_set(x_2, 0, x_1); return x_2; } } static lean_object* _init_l_Lean_Lsp_instToJsonMarkupKind___closed__2() { _start: { lean_object* x_1; lean_object* x_2; x_1 = l_Lean_Lsp_instFromJsonMarkupKind___closed__4; x_2 = lean_alloc_ctor(3, 1, 0); lean_ctor_set(x_2, 0, x_1); return x_2; } } LEAN_EXPORT lean_object* l_Lean_Lsp_instToJsonMarkupKind(uint8_t x_1) { _start: { if (x_1 == 0) { lean_object* x_2; x_2 = l_Lean_Lsp_instToJsonMarkupKind___closed__1; return x_2; } else { lean_object* x_3; x_3 = l_Lean_Lsp_instToJsonMarkupKind___closed__2; return x_3; } } } LEAN_EXPORT lean_object* l_Lean_Lsp_instToJsonMarkupKind___boxed(lean_object* x_1) { _start: { uint8_t x_2; lean_object* x_3; x_2 = lean_unbox(x_1); lean_dec(x_1); x_3 = l_Lean_Lsp_instToJsonMarkupKind(x_2); return x_3; } } static lean_object* _init_l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_toJsonMarkupContent____x40_Lean_Data_Lsp_Basic___hyg_6318____closed__1() { _start: { lean_object* x_1; x_1 = lean_mk_string_from_bytes("value", 5); return x_1; } } static lean_object* _init_l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_toJsonMarkupContent____x40_Lean_Data_Lsp_Basic___hyg_6318____closed__2() { _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; x_1 = l_Lean_Lsp_instToJsonDocumentChange___closed__3; x_2 = l_Lean_Lsp_instToJsonMarkupKind___closed__1; x_3 = lean_alloc_ctor(0, 2, 0); lean_ctor_set(x_3, 0, x_1); lean_ctor_set(x_3, 1, x_2); return x_3; } } static lean_object* _init_l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_toJsonMarkupContent____x40_Lean_Data_Lsp_Basic___hyg_6318____closed__3() { _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; x_1 = lean_box(0); x_2 = l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_toJsonMarkupContent____x40_Lean_Data_Lsp_Basic___hyg_6318____closed__2; x_3 = lean_alloc_ctor(1, 2, 0); lean_ctor_set(x_3, 0, x_2); lean_ctor_set(x_3, 1, x_1); return x_3; } } static lean_object* _init_l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_toJsonMarkupContent____x40_Lean_Data_Lsp_Basic___hyg_6318____closed__4() { _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; x_1 = l_Lean_Lsp_instToJsonDocumentChange___closed__3; x_2 = l_Lean_Lsp_instToJsonMarkupKind___closed__2; x_3 = lean_alloc_ctor(0, 2, 0); lean_ctor_set(x_3, 0, x_1); lean_ctor_set(x_3, 1, x_2); return x_3; } } static lean_object* _init_l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_toJsonMarkupContent____x40_Lean_Data_Lsp_Basic___hyg_6318____closed__5() { _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; x_1 = lean_box(0); x_2 = l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_toJsonMarkupContent____x40_Lean_Data_Lsp_Basic___hyg_6318____closed__4; x_3 = lean_alloc_ctor(1, 2, 0); lean_ctor_set(x_3, 0, x_2); lean_ctor_set(x_3, 1, x_1); return x_3; } } LEAN_EXPORT lean_object* l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_toJsonMarkupContent____x40_Lean_Data_Lsp_Basic___hyg_6318_(lean_object* x_1) { _start: { uint8_t x_2; lean_object* x_3; lean_object* x_4; lean_object* x_5; lean_object* x_6; lean_object* x_7; lean_object* x_8; lean_object* x_9; x_2 = lean_ctor_get_uint8(x_1, sizeof(void*)*1); x_3 = lean_box(0); x_4 = lean_ctor_get(x_1, 0); lean_inc(x_4); x_5 = lean_alloc_ctor(3, 1, 0); lean_ctor_set(x_5, 0, x_4); x_6 = l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_toJsonMarkupContent____x40_Lean_Data_Lsp_Basic___hyg_6318____closed__1; x_7 = lean_alloc_ctor(0, 2, 0); lean_ctor_set(x_7, 0, x_6); lean_ctor_set(x_7, 1, x_5); x_8 = lean_alloc_ctor(1, 2, 0); lean_ctor_set(x_8, 0, x_7); lean_ctor_set(x_8, 1, x_3); x_9 = lean_alloc_ctor(1, 2, 0); lean_ctor_set(x_9, 0, x_8); lean_ctor_set(x_9, 1, x_3); if (x_2 == 0) { lean_object* x_10; lean_object* x_11; lean_object* x_12; lean_object* x_13; x_10 = l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_toJsonMarkupContent____x40_Lean_Data_Lsp_Basic___hyg_6318____closed__3; x_11 = lean_alloc_ctor(1, 2, 0); lean_ctor_set(x_11, 0, x_10); lean_ctor_set(x_11, 1, x_9); x_12 = l_List_join___rarg(x_11); x_13 = l_Lean_Json_mkObj(x_12); return x_13; } else { lean_object* x_14; lean_object* x_15; lean_object* x_16; lean_object* x_17; x_14 = l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_toJsonMarkupContent____x40_Lean_Data_Lsp_Basic___hyg_6318____closed__5; x_15 = lean_alloc_ctor(1, 2, 0); lean_ctor_set(x_15, 0, x_14); lean_ctor_set(x_15, 1, x_9); x_16 = l_List_join___rarg(x_15); x_17 = l_Lean_Json_mkObj(x_16); return x_17; } } } LEAN_EXPORT lean_object* l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_toJsonMarkupContent____x40_Lean_Data_Lsp_Basic___hyg_6318____boxed(lean_object* x_1) { _start: { lean_object* x_2; x_2 = l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_toJsonMarkupContent____x40_Lean_Data_Lsp_Basic___hyg_6318_(x_1); lean_dec(x_1); return x_2; } } static lean_object* _init_l_Lean_Lsp_instToJsonMarkupContent___closed__1() { _start: { lean_object* x_1; x_1 = lean_alloc_closure((void*)(l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_toJsonMarkupContent____x40_Lean_Data_Lsp_Basic___hyg_6318____boxed), 1, 0); return x_1; } } static lean_object* _init_l_Lean_Lsp_instToJsonMarkupContent() { _start: { lean_object* x_1; x_1 = l_Lean_Lsp_instToJsonMarkupContent___closed__1; return x_1; } } LEAN_EXPORT lean_object* l_Lean_Json_getObjValAs_x3f___at___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonMarkupContent____x40_Lean_Data_Lsp_Basic___hyg_6368____spec__1(lean_object* x_1, lean_object* x_2) { _start: { lean_object* x_3; x_3 = l_Lean_Json_getObjValD(x_1, x_2); if (lean_obj_tag(x_3) == 3) { lean_object* x_4; lean_object* x_5; uint8_t x_6; x_4 = lean_ctor_get(x_3, 0); lean_inc(x_4); lean_dec(x_3); x_5 = l_Lean_Lsp_instFromJsonMarkupKind___closed__3; x_6 = lean_string_dec_eq(x_4, x_5); if (x_6 == 0) { lean_object* x_7; uint8_t x_8; x_7 = l_Lean_Lsp_instFromJsonMarkupKind___closed__4; x_8 = lean_string_dec_eq(x_4, x_7); lean_dec(x_4); if (x_8 == 0) { lean_object* x_9; x_9 = l_Lean_Lsp_instFromJsonMarkupKind___closed__2; return x_9; } else { lean_object* x_10; x_10 = l_Lean_Lsp_instFromJsonMarkupKind___closed__5; return x_10; } } else { lean_object* x_11; lean_dec(x_4); x_11 = l_Lean_Lsp_instFromJsonMarkupKind___closed__6; return x_11; } } else { lean_object* x_12; lean_dec(x_3); x_12 = l_Lean_Lsp_instFromJsonMarkupKind___closed__2; return x_12; } } } static lean_object* _init_l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonMarkupContent____x40_Lean_Data_Lsp_Basic___hyg_6368____closed__1() { _start: { lean_object* x_1; x_1 = lean_mk_string_from_bytes("MarkupContent", 13); return x_1; } } static lean_object* _init_l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonMarkupContent____x40_Lean_Data_Lsp_Basic___hyg_6368____closed__2() { _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; lean_object* x_4; x_1 = l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonCancelParams____x40_Lean_Data_Lsp_Basic___hyg_144____closed__1; x_2 = l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonCancelParams____x40_Lean_Data_Lsp_Basic___hyg_144____closed__2; x_3 = l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonMarkupContent____x40_Lean_Data_Lsp_Basic___hyg_6368____closed__1; x_4 = l_Lean_Name_mkStr3(x_1, x_2, x_3); return x_4; } } static lean_object* _init_l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonMarkupContent____x40_Lean_Data_Lsp_Basic___hyg_6368____closed__3() { _start: { lean_object* x_1; uint8_t x_2; lean_object* x_3; x_1 = l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonMarkupContent____x40_Lean_Data_Lsp_Basic___hyg_6368____closed__2; x_2 = 1; x_3 = l_Lean_Name_toString(x_1, x_2); return x_3; } } static lean_object* _init_l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonMarkupContent____x40_Lean_Data_Lsp_Basic___hyg_6368____closed__4() { _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; x_1 = l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonMarkupContent____x40_Lean_Data_Lsp_Basic___hyg_6368____closed__3; x_2 = l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonCancelParams____x40_Lean_Data_Lsp_Basic___hyg_144____closed__6; x_3 = lean_string_append(x_1, x_2); return x_3; } } static lean_object* _init_l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonMarkupContent____x40_Lean_Data_Lsp_Basic___hyg_6368____closed__5() { _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; x_1 = lean_box(0); x_2 = l_Lean_Lsp_instToJsonDocumentChange___closed__3; x_3 = l_Lean_Name_str___override(x_1, x_2); return x_3; } } static lean_object* _init_l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonMarkupContent____x40_Lean_Data_Lsp_Basic___hyg_6368____closed__6() { _start: { lean_object* x_1; uint8_t x_2; lean_object* x_3; x_1 = l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonMarkupContent____x40_Lean_Data_Lsp_Basic___hyg_6368____closed__5; x_2 = 1; x_3 = l_Lean_Name_toString(x_1, x_2); return x_3; } } static lean_object* _init_l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonMarkupContent____x40_Lean_Data_Lsp_Basic___hyg_6368____closed__7() { _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; x_1 = l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonMarkupContent____x40_Lean_Data_Lsp_Basic___hyg_6368____closed__4; x_2 = l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonMarkupContent____x40_Lean_Data_Lsp_Basic___hyg_6368____closed__6; x_3 = lean_string_append(x_1, x_2); return x_3; } } static lean_object* _init_l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonMarkupContent____x40_Lean_Data_Lsp_Basic___hyg_6368____closed__8() { _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; x_1 = l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonMarkupContent____x40_Lean_Data_Lsp_Basic___hyg_6368____closed__7; x_2 = l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonCancelParams____x40_Lean_Data_Lsp_Basic___hyg_144____closed__11; x_3 = lean_string_append(x_1, x_2); return x_3; } } static lean_object* _init_l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonMarkupContent____x40_Lean_Data_Lsp_Basic___hyg_6368____closed__9() { _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; x_1 = lean_box(0); x_2 = l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_toJsonMarkupContent____x40_Lean_Data_Lsp_Basic___hyg_6318____closed__1; x_3 = l_Lean_Name_str___override(x_1, x_2); return x_3; } } static lean_object* _init_l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonMarkupContent____x40_Lean_Data_Lsp_Basic___hyg_6368____closed__10() { _start: { lean_object* x_1; uint8_t x_2; lean_object* x_3; x_1 = l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonMarkupContent____x40_Lean_Data_Lsp_Basic___hyg_6368____closed__9; x_2 = 1; x_3 = l_Lean_Name_toString(x_1, x_2); return x_3; } } static lean_object* _init_l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonMarkupContent____x40_Lean_Data_Lsp_Basic___hyg_6368____closed__11() { _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; x_1 = l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonMarkupContent____x40_Lean_Data_Lsp_Basic___hyg_6368____closed__4; x_2 = l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonMarkupContent____x40_Lean_Data_Lsp_Basic___hyg_6368____closed__10; x_3 = lean_string_append(x_1, x_2); return x_3; } } static lean_object* _init_l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonMarkupContent____x40_Lean_Data_Lsp_Basic___hyg_6368____closed__12() { _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; x_1 = l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonMarkupContent____x40_Lean_Data_Lsp_Basic___hyg_6368____closed__11; x_2 = l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonCancelParams____x40_Lean_Data_Lsp_Basic___hyg_144____closed__11; x_3 = lean_string_append(x_1, x_2); return x_3; } } LEAN_EXPORT lean_object* l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonMarkupContent____x40_Lean_Data_Lsp_Basic___hyg_6368_(lean_object* x_1) { _start: { lean_object* x_2; lean_object* x_3; x_2 = l_Lean_Lsp_instToJsonDocumentChange___closed__3; x_3 = l_Lean_Json_getObjValAs_x3f___at___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonMarkupContent____x40_Lean_Data_Lsp_Basic___hyg_6368____spec__1(x_1, x_2); if (lean_obj_tag(x_3) == 0) { uint8_t x_4; x_4 = !lean_is_exclusive(x_3); if (x_4 == 0) { lean_object* x_5; lean_object* x_6; lean_object* x_7; x_5 = lean_ctor_get(x_3, 0); x_6 = l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonMarkupContent____x40_Lean_Data_Lsp_Basic___hyg_6368____closed__8; x_7 = lean_string_append(x_6, x_5); lean_dec(x_5); lean_ctor_set(x_3, 0, x_7); return x_3; } else { lean_object* x_8; lean_object* x_9; lean_object* x_10; lean_object* x_11; x_8 = lean_ctor_get(x_3, 0); lean_inc(x_8); lean_dec(x_3); x_9 = l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonMarkupContent____x40_Lean_Data_Lsp_Basic___hyg_6368____closed__8; x_10 = lean_string_append(x_9, x_8); lean_dec(x_8); x_11 = lean_alloc_ctor(0, 1, 0); lean_ctor_set(x_11, 0, x_10); return x_11; } } else { lean_object* x_12; lean_object* x_13; lean_object* x_14; x_12 = lean_ctor_get(x_3, 0); lean_inc(x_12); lean_dec(x_3); x_13 = l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_toJsonMarkupContent____x40_Lean_Data_Lsp_Basic___hyg_6318____closed__1; x_14 = l_Lean_Json_getObjValAs_x3f___at_Lean_JsonRpc_instFromJsonMessage___spec__3(x_1, x_13); if (lean_obj_tag(x_14) == 0) { uint8_t x_15; lean_dec(x_12); x_15 = !lean_is_exclusive(x_14); if (x_15 == 0) { lean_object* x_16; lean_object* x_17; lean_object* x_18; x_16 = lean_ctor_get(x_14, 0); x_17 = l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonMarkupContent____x40_Lean_Data_Lsp_Basic___hyg_6368____closed__12; x_18 = lean_string_append(x_17, x_16); lean_dec(x_16); lean_ctor_set(x_14, 0, x_18); return x_14; } else { lean_object* x_19; lean_object* x_20; lean_object* x_21; lean_object* x_22; x_19 = lean_ctor_get(x_14, 0); lean_inc(x_19); lean_dec(x_14); x_20 = l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonMarkupContent____x40_Lean_Data_Lsp_Basic___hyg_6368____closed__12; x_21 = lean_string_append(x_20, x_19); lean_dec(x_19); x_22 = lean_alloc_ctor(0, 1, 0); lean_ctor_set(x_22, 0, x_21); return x_22; } } else { uint8_t x_23; x_23 = !lean_is_exclusive(x_14); if (x_23 == 0) { lean_object* x_24; lean_object* x_25; uint8_t x_26; x_24 = lean_ctor_get(x_14, 0); x_25 = lean_alloc_ctor(0, 1, 1); lean_ctor_set(x_25, 0, x_24); x_26 = lean_unbox(x_12); lean_dec(x_12); lean_ctor_set_uint8(x_25, sizeof(void*)*1, x_26); lean_ctor_set(x_14, 0, x_25); return x_14; } else { lean_object* x_27; lean_object* x_28; uint8_t x_29; lean_object* x_30; x_27 = lean_ctor_get(x_14, 0); lean_inc(x_27); lean_dec(x_14); x_28 = lean_alloc_ctor(0, 1, 1); lean_ctor_set(x_28, 0, x_27); x_29 = lean_unbox(x_12); lean_dec(x_12); lean_ctor_set_uint8(x_28, sizeof(void*)*1, x_29); x_30 = lean_alloc_ctor(1, 1, 0); lean_ctor_set(x_30, 0, x_28); return x_30; } } } } } LEAN_EXPORT lean_object* l_Lean_Json_getObjValAs_x3f___at___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonMarkupContent____x40_Lean_Data_Lsp_Basic___hyg_6368____spec__1___boxed(lean_object* x_1, lean_object* x_2) { _start: { lean_object* x_3; x_3 = l_Lean_Json_getObjValAs_x3f___at___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonMarkupContent____x40_Lean_Data_Lsp_Basic___hyg_6368____spec__1(x_1, x_2); lean_dec(x_2); lean_dec(x_1); return x_3; } } LEAN_EXPORT lean_object* l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonMarkupContent____x40_Lean_Data_Lsp_Basic___hyg_6368____boxed(lean_object* x_1) { _start: { lean_object* x_2; x_2 = l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonMarkupContent____x40_Lean_Data_Lsp_Basic___hyg_6368_(x_1); lean_dec(x_1); return x_2; } } static lean_object* _init_l_Lean_Lsp_instFromJsonMarkupContent___closed__1() { _start: { lean_object* x_1; x_1 = lean_alloc_closure((void*)(l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonMarkupContent____x40_Lean_Data_Lsp_Basic___hyg_6368____boxed), 1, 0); return x_1; } } static lean_object* _init_l_Lean_Lsp_instFromJsonMarkupContent() { _start: { lean_object* x_1; x_1 = l_Lean_Lsp_instFromJsonMarkupContent___closed__1; return x_1; } } static lean_object* _init_l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_toJsonProgressParams____x40_Lean_Data_Lsp_Basic___hyg_6503____rarg___closed__1() { _start: { lean_object* x_1; x_1 = lean_mk_string_from_bytes("token", 5); return x_1; } } LEAN_EXPORT lean_object* l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_toJsonProgressParams____x40_Lean_Data_Lsp_Basic___hyg_6503____rarg(lean_object* x_1, lean_object* x_2) { _start: { lean_object* x_3; lean_object* x_4; lean_object* x_5; lean_object* x_6; lean_object* x_7; lean_object* x_8; lean_object* x_9; lean_object* x_10; lean_object* x_11; lean_object* x_12; lean_object* x_13; lean_object* x_14; lean_object* x_15; lean_object* x_16; lean_object* x_17; x_3 = lean_ctor_get(x_2, 0); lean_inc(x_3); x_4 = lean_ctor_get(x_2, 1); lean_inc(x_4); lean_dec(x_2); x_5 = lean_alloc_ctor(3, 1, 0); lean_ctor_set(x_5, 0, x_3); x_6 = l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_toJsonProgressParams____x40_Lean_Data_Lsp_Basic___hyg_6503____rarg___closed__1; x_7 = lean_alloc_ctor(0, 2, 0); lean_ctor_set(x_7, 0, x_6); lean_ctor_set(x_7, 1, x_5); x_8 = lean_box(0); x_9 = lean_alloc_ctor(1, 2, 0); lean_ctor_set(x_9, 0, x_7); lean_ctor_set(x_9, 1, x_8); x_10 = lean_apply_1(x_1, x_4); x_11 = l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_toJsonMarkupContent____x40_Lean_Data_Lsp_Basic___hyg_6318____closed__1; x_12 = lean_alloc_ctor(0, 2, 0); lean_ctor_set(x_12, 0, x_11); lean_ctor_set(x_12, 1, x_10); x_13 = lean_alloc_ctor(1, 2, 0); lean_ctor_set(x_13, 0, x_12); lean_ctor_set(x_13, 1, x_8); x_14 = lean_alloc_ctor(1, 2, 0); lean_ctor_set(x_14, 0, x_13); lean_ctor_set(x_14, 1, x_8); x_15 = lean_alloc_ctor(1, 2, 0); lean_ctor_set(x_15, 0, x_9); lean_ctor_set(x_15, 1, x_14); x_16 = l_List_join___rarg(x_15); x_17 = l_Lean_Json_mkObj(x_16); return x_17; } } LEAN_EXPORT lean_object* l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_toJsonProgressParams____x40_Lean_Data_Lsp_Basic___hyg_6503_(lean_object* x_1) { _start: { lean_object* x_2; x_2 = lean_alloc_closure((void*)(l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_toJsonProgressParams____x40_Lean_Data_Lsp_Basic___hyg_6503____rarg), 2, 0); return x_2; } } LEAN_EXPORT lean_object* l_Lean_Lsp_instToJsonProgressParams___rarg(lean_object* x_1) { _start: { lean_object* x_2; x_2 = lean_alloc_closure((void*)(l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_toJsonProgressParams____x40_Lean_Data_Lsp_Basic___hyg_6503____rarg), 2, 1); lean_closure_set(x_2, 0, x_1); return x_2; } } LEAN_EXPORT lean_object* l_Lean_Lsp_instToJsonProgressParams(lean_object* x_1) { _start: { lean_object* x_2; x_2 = lean_alloc_closure((void*)(l_Lean_Lsp_instToJsonProgressParams___rarg), 1, 0); return x_2; } } static lean_object* _init_l_Lean_Lsp_WorkDoneProgressReport_kind___default___closed__1() { _start: { lean_object* x_1; x_1 = lean_mk_string_from_bytes("report", 6); return x_1; } } static lean_object* _init_l_Lean_Lsp_WorkDoneProgressReport_kind___default() { _start: { lean_object* x_1; x_1 = l_Lean_Lsp_WorkDoneProgressReport_kind___default___closed__1; return x_1; } } static lean_object* _init_l_Lean_Lsp_WorkDoneProgressReport_message_x3f___default() { _start: { lean_object* x_1; x_1 = lean_box(0); return x_1; } } static uint8_t _init_l_Lean_Lsp_WorkDoneProgressReport_cancellable___default() { _start: { uint8_t x_1; x_1 = 0; return x_1; } } static lean_object* _init_l_Lean_Lsp_WorkDoneProgressReport_percentage_x3f___default() { _start: { lean_object* x_1; x_1 = lean_box(0); return x_1; } } static lean_object* _init_l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_toJsonWorkDoneProgressReport____x40_Lean_Data_Lsp_Basic___hyg_6600____closed__1() { _start: { lean_object* x_1; x_1 = lean_mk_string_from_bytes("message", 7); return x_1; } } static lean_object* _init_l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_toJsonWorkDoneProgressReport____x40_Lean_Data_Lsp_Basic___hyg_6600____closed__2() { _start: { lean_object* x_1; x_1 = lean_mk_string_from_bytes("cancellable", 11); return x_1; } } static lean_object* _init_l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_toJsonWorkDoneProgressReport____x40_Lean_Data_Lsp_Basic___hyg_6600____closed__3() { _start: { lean_object* x_1; x_1 = lean_mk_string_from_bytes("percentage", 10); return x_1; } } LEAN_EXPORT lean_object* l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_toJsonWorkDoneProgressReport____x40_Lean_Data_Lsp_Basic___hyg_6600_(lean_object* x_1) { _start: { lean_object* x_2; lean_object* x_3; uint8_t x_4; lean_object* x_5; lean_object* x_6; lean_object* x_7; lean_object* x_8; lean_object* x_9; lean_object* x_10; lean_object* x_11; lean_object* x_12; lean_object* x_13; lean_object* x_14; lean_object* x_15; lean_object* x_16; lean_object* x_17; lean_object* x_18; lean_object* x_19; lean_object* x_20; lean_object* x_21; lean_object* x_22; lean_object* x_23; lean_object* x_24; x_2 = lean_ctor_get(x_1, 0); lean_inc(x_2); x_3 = lean_ctor_get(x_1, 1); lean_inc(x_3); x_4 = lean_ctor_get_uint8(x_1, sizeof(void*)*3); x_5 = lean_ctor_get(x_1, 2); lean_inc(x_5); lean_dec(x_1); x_6 = lean_alloc_ctor(3, 1, 0); lean_ctor_set(x_6, 0, x_2); x_7 = l_Lean_Lsp_instToJsonDocumentChange___closed__3; x_8 = lean_alloc_ctor(0, 2, 0); lean_ctor_set(x_8, 0, x_7); lean_ctor_set(x_8, 1, x_6); x_9 = lean_box(0); x_10 = lean_alloc_ctor(1, 2, 0); lean_ctor_set(x_10, 0, x_8); lean_ctor_set(x_10, 1, x_9); x_11 = l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_toJsonWorkDoneProgressReport____x40_Lean_Data_Lsp_Basic___hyg_6600____closed__1; x_12 = l_Lean_Json_opt___at___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_toJsonTextEdit____x40_Lean_Data_Lsp_Basic___hyg_2023____spec__1(x_11, x_3); lean_dec(x_3); x_13 = lean_alloc_ctor(1, 0, 1); lean_ctor_set_uint8(x_13, 0, x_4); x_14 = l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_toJsonWorkDoneProgressReport____x40_Lean_Data_Lsp_Basic___hyg_6600____closed__2; x_15 = lean_alloc_ctor(0, 2, 0); lean_ctor_set(x_15, 0, x_14); lean_ctor_set(x_15, 1, x_13); x_16 = lean_alloc_ctor(1, 2, 0); lean_ctor_set(x_16, 0, x_15); lean_ctor_set(x_16, 1, x_9); x_17 = l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_toJsonWorkDoneProgressReport____x40_Lean_Data_Lsp_Basic___hyg_6600____closed__3; x_18 = l_Lean_Json_opt___at___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_toJsonVersionedTextDocumentIdentifier____x40_Lean_Data_Lsp_Basic___hyg_2500____spec__1(x_17, x_5); x_19 = lean_alloc_ctor(1, 2, 0); lean_ctor_set(x_19, 0, x_18); lean_ctor_set(x_19, 1, x_9); x_20 = lean_alloc_ctor(1, 2, 0); lean_ctor_set(x_20, 0, x_16); lean_ctor_set(x_20, 1, x_19); x_21 = lean_alloc_ctor(1, 2, 0); lean_ctor_set(x_21, 0, x_12); lean_ctor_set(x_21, 1, x_20); x_22 = lean_alloc_ctor(1, 2, 0); lean_ctor_set(x_22, 0, x_10); lean_ctor_set(x_22, 1, x_21); x_23 = l_List_join___rarg(x_22); x_24 = l_Lean_Json_mkObj(x_23); return x_24; } } static lean_object* _init_l_Lean_Lsp_instToJsonWorkDoneProgressReport___closed__1() { _start: { lean_object* x_1; x_1 = lean_alloc_closure((void*)(l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_toJsonWorkDoneProgressReport____x40_Lean_Data_Lsp_Basic___hyg_6600_), 1, 0); return x_1; } } static lean_object* _init_l_Lean_Lsp_instToJsonWorkDoneProgressReport() { _start: { lean_object* x_1; x_1 = l_Lean_Lsp_instToJsonWorkDoneProgressReport___closed__1; return x_1; } } static lean_object* _init_l_Lean_Lsp_WorkDoneProgressBegin_kind___default___closed__1() { _start: { lean_object* x_1; x_1 = lean_mk_string_from_bytes("begin", 5); return x_1; } } static lean_object* _init_l_Lean_Lsp_WorkDoneProgressBegin_kind___default() { _start: { lean_object* x_1; x_1 = l_Lean_Lsp_WorkDoneProgressBegin_kind___default___closed__1; return x_1; } } LEAN_EXPORT lean_object* l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_toJsonWorkDoneProgressBegin____x40_Lean_Data_Lsp_Basic___hyg_6684_(lean_object* x_1) { _start: { lean_object* x_2; lean_object* x_3; lean_object* x_4; uint8_t x_5; lean_object* x_6; lean_object* x_7; lean_object* x_8; lean_object* x_9; lean_object* x_10; lean_object* x_11; lean_object* x_12; lean_object* x_13; lean_object* x_14; lean_object* x_15; lean_object* x_16; lean_object* x_17; lean_object* x_18; lean_object* x_19; lean_object* x_20; lean_object* x_21; lean_object* x_22; lean_object* x_23; lean_object* x_24; lean_object* x_25; lean_object* x_26; lean_object* x_27; lean_object* x_28; lean_object* x_29; lean_object* x_30; lean_object* x_31; x_2 = lean_ctor_get(x_1, 0); lean_inc(x_2); x_3 = lean_ctor_get(x_2, 0); lean_inc(x_3); x_4 = lean_ctor_get(x_2, 1); lean_inc(x_4); x_5 = lean_ctor_get_uint8(x_2, sizeof(void*)*3); x_6 = lean_ctor_get(x_2, 2); lean_inc(x_6); lean_dec(x_2); x_7 = lean_alloc_ctor(3, 1, 0); lean_ctor_set(x_7, 0, x_3); x_8 = l_Lean_Lsp_instToJsonDocumentChange___closed__3; x_9 = lean_alloc_ctor(0, 2, 0); lean_ctor_set(x_9, 0, x_8); lean_ctor_set(x_9, 1, x_7); x_10 = lean_box(0); x_11 = lean_alloc_ctor(1, 2, 0); lean_ctor_set(x_11, 0, x_9); lean_ctor_set(x_11, 1, x_10); x_12 = l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_toJsonWorkDoneProgressReport____x40_Lean_Data_Lsp_Basic___hyg_6600____closed__1; x_13 = l_Lean_Json_opt___at___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_toJsonTextEdit____x40_Lean_Data_Lsp_Basic___hyg_2023____spec__1(x_12, x_4); lean_dec(x_4); x_14 = lean_alloc_ctor(1, 0, 1); lean_ctor_set_uint8(x_14, 0, x_5); x_15 = l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_toJsonWorkDoneProgressReport____x40_Lean_Data_Lsp_Basic___hyg_6600____closed__2; x_16 = lean_alloc_ctor(0, 2, 0); lean_ctor_set(x_16, 0, x_15); lean_ctor_set(x_16, 1, x_14); x_17 = lean_alloc_ctor(1, 2, 0); lean_ctor_set(x_17, 0, x_16); lean_ctor_set(x_17, 1, x_10); x_18 = l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_toJsonWorkDoneProgressReport____x40_Lean_Data_Lsp_Basic___hyg_6600____closed__3; x_19 = l_Lean_Json_opt___at___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_toJsonVersionedTextDocumentIdentifier____x40_Lean_Data_Lsp_Basic___hyg_2500____spec__1(x_18, x_6); x_20 = lean_ctor_get(x_1, 1); lean_inc(x_20); lean_dec(x_1); x_21 = lean_alloc_ctor(3, 1, 0); lean_ctor_set(x_21, 0, x_20); x_22 = l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_toJsonCommand____x40_Lean_Data_Lsp_Basic___hyg_1757____closed__1; x_23 = lean_alloc_ctor(0, 2, 0); lean_ctor_set(x_23, 0, x_22); lean_ctor_set(x_23, 1, x_21); x_24 = lean_alloc_ctor(1, 2, 0); lean_ctor_set(x_24, 0, x_23); lean_ctor_set(x_24, 1, x_10); x_25 = lean_alloc_ctor(1, 2, 0); lean_ctor_set(x_25, 0, x_24); lean_ctor_set(x_25, 1, x_10); x_26 = lean_alloc_ctor(1, 2, 0); lean_ctor_set(x_26, 0, x_19); lean_ctor_set(x_26, 1, x_25); x_27 = lean_alloc_ctor(1, 2, 0); lean_ctor_set(x_27, 0, x_17); lean_ctor_set(x_27, 1, x_26); x_28 = lean_alloc_ctor(1, 2, 0); lean_ctor_set(x_28, 0, x_13); lean_ctor_set(x_28, 1, x_27); x_29 = lean_alloc_ctor(1, 2, 0); lean_ctor_set(x_29, 0, x_11); lean_ctor_set(x_29, 1, x_28); x_30 = l_List_join___rarg(x_29); x_31 = l_Lean_Json_mkObj(x_30); return x_31; } } static lean_object* _init_l_Lean_Lsp_instToJsonWorkDoneProgressBegin___closed__1() { _start: { lean_object* x_1; x_1 = lean_alloc_closure((void*)(l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_toJsonWorkDoneProgressBegin____x40_Lean_Data_Lsp_Basic___hyg_6684_), 1, 0); return x_1; } } static lean_object* _init_l_Lean_Lsp_instToJsonWorkDoneProgressBegin() { _start: { lean_object* x_1; x_1 = l_Lean_Lsp_instToJsonWorkDoneProgressBegin___closed__1; return x_1; } } static lean_object* _init_l_Lean_Lsp_WorkDoneProgressEnd_kind___default() { _start: { lean_object* x_1; x_1 = l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_toJsonRange____x40_Lean_Data_Lsp_Basic___hyg_866____closed__2; return x_1; } } static lean_object* _init_l_Lean_Lsp_WorkDoneProgressEnd_message_x3f___default() { _start: { lean_object* x_1; x_1 = lean_box(0); return x_1; } } LEAN_EXPORT lean_object* l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_toJsonWorkDoneProgressEnd____x40_Lean_Data_Lsp_Basic___hyg_6783_(lean_object* x_1) { _start: { lean_object* x_2; lean_object* x_3; lean_object* x_4; lean_object* x_5; lean_object* x_6; lean_object* x_7; lean_object* x_8; lean_object* x_9; lean_object* x_10; lean_object* x_11; lean_object* x_12; lean_object* x_13; lean_object* x_14; x_2 = lean_ctor_get(x_1, 0); x_3 = lean_ctor_get(x_1, 1); lean_inc(x_2); x_4 = lean_alloc_ctor(3, 1, 0); lean_ctor_set(x_4, 0, x_2); x_5 = l_Lean_Lsp_instToJsonDocumentChange___closed__3; x_6 = lean_alloc_ctor(0, 2, 0); lean_ctor_set(x_6, 0, x_5); lean_ctor_set(x_6, 1, x_4); x_7 = lean_box(0); x_8 = lean_alloc_ctor(1, 2, 0); lean_ctor_set(x_8, 0, x_6); lean_ctor_set(x_8, 1, x_7); x_9 = l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_toJsonWorkDoneProgressReport____x40_Lean_Data_Lsp_Basic___hyg_6600____closed__1; x_10 = l_Lean_Json_opt___at___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_toJsonTextEdit____x40_Lean_Data_Lsp_Basic___hyg_2023____spec__1(x_9, x_3); x_11 = lean_alloc_ctor(1, 2, 0); lean_ctor_set(x_11, 0, x_10); lean_ctor_set(x_11, 1, x_7); x_12 = lean_alloc_ctor(1, 2, 0); lean_ctor_set(x_12, 0, x_8); lean_ctor_set(x_12, 1, x_11); x_13 = l_List_join___rarg(x_12); x_14 = l_Lean_Json_mkObj(x_13); return x_14; } } LEAN_EXPORT lean_object* l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_toJsonWorkDoneProgressEnd____x40_Lean_Data_Lsp_Basic___hyg_6783____boxed(lean_object* x_1) { _start: { lean_object* x_2; x_2 = l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_toJsonWorkDoneProgressEnd____x40_Lean_Data_Lsp_Basic___hyg_6783_(x_1); lean_dec(x_1); return x_2; } } static lean_object* _init_l_Lean_Lsp_instToJsonWorkDoneProgressEnd___closed__1() { _start: { lean_object* x_1; x_1 = lean_alloc_closure((void*)(l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_toJsonWorkDoneProgressEnd____x40_Lean_Data_Lsp_Basic___hyg_6783____boxed), 1, 0); return x_1; } } static lean_object* _init_l_Lean_Lsp_instToJsonWorkDoneProgressEnd() { _start: { lean_object* x_1; x_1 = l_Lean_Lsp_instToJsonWorkDoneProgressEnd___closed__1; return x_1; } } static lean_object* _init_l_Lean_Lsp_WorkDoneProgressParams_workDoneToken_x3f___default() { _start: { lean_object* x_1; x_1 = lean_box(0); return x_1; } } LEAN_EXPORT lean_object* l_Lean_Json_opt___at___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_toJsonWorkDoneProgressParams____x40_Lean_Data_Lsp_Basic___hyg_6839____spec__1(lean_object* x_1, lean_object* x_2) { _start: { if (lean_obj_tag(x_2) == 0) { lean_object* x_3; lean_dec(x_1); x_3 = lean_box(0); return x_3; } else { lean_object* x_4; lean_object* x_5; lean_object* x_6; lean_object* x_7; lean_object* x_8; x_4 = lean_ctor_get(x_2, 0); lean_inc(x_4); x_5 = lean_alloc_ctor(3, 1, 0); lean_ctor_set(x_5, 0, x_4); x_6 = lean_alloc_ctor(0, 2, 0); lean_ctor_set(x_6, 0, x_1); lean_ctor_set(x_6, 1, x_5); x_7 = lean_box(0); x_8 = lean_alloc_ctor(1, 2, 0); lean_ctor_set(x_8, 0, x_6); lean_ctor_set(x_8, 1, x_7); return x_8; } } } static lean_object* _init_l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_toJsonWorkDoneProgressParams____x40_Lean_Data_Lsp_Basic___hyg_6839____closed__1() { _start: { lean_object* x_1; x_1 = lean_mk_string_from_bytes("workDoneToken", 13); return x_1; } } LEAN_EXPORT lean_object* l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_toJsonWorkDoneProgressParams____x40_Lean_Data_Lsp_Basic___hyg_6839_(lean_object* x_1) { _start: { lean_object* x_2; lean_object* x_3; lean_object* x_4; lean_object* x_5; lean_object* x_6; lean_object* x_7; x_2 = l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_toJsonWorkDoneProgressParams____x40_Lean_Data_Lsp_Basic___hyg_6839____closed__1; x_3 = l_Lean_Json_opt___at___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_toJsonWorkDoneProgressParams____x40_Lean_Data_Lsp_Basic___hyg_6839____spec__1(x_2, x_1); x_4 = lean_box(0); x_5 = lean_alloc_ctor(1, 2, 0); lean_ctor_set(x_5, 0, x_3); lean_ctor_set(x_5, 1, x_4); x_6 = l_List_join___rarg(x_5); x_7 = l_Lean_Json_mkObj(x_6); return x_7; } } LEAN_EXPORT lean_object* l_Lean_Json_opt___at___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_toJsonWorkDoneProgressParams____x40_Lean_Data_Lsp_Basic___hyg_6839____spec__1___boxed(lean_object* x_1, lean_object* x_2) { _start: { lean_object* x_3; x_3 = l_Lean_Json_opt___at___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_toJsonWorkDoneProgressParams____x40_Lean_Data_Lsp_Basic___hyg_6839____spec__1(x_1, x_2); lean_dec(x_2); return x_3; } } LEAN_EXPORT lean_object* l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_toJsonWorkDoneProgressParams____x40_Lean_Data_Lsp_Basic___hyg_6839____boxed(lean_object* x_1) { _start: { lean_object* x_2; x_2 = l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_toJsonWorkDoneProgressParams____x40_Lean_Data_Lsp_Basic___hyg_6839_(x_1); lean_dec(x_1); return x_2; } } static lean_object* _init_l_Lean_Lsp_instToJsonWorkDoneProgressParams___closed__1() { _start: { lean_object* x_1; x_1 = lean_alloc_closure((void*)(l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_toJsonWorkDoneProgressParams____x40_Lean_Data_Lsp_Basic___hyg_6839____boxed), 1, 0); return x_1; } } static lean_object* _init_l_Lean_Lsp_instToJsonWorkDoneProgressParams() { _start: { lean_object* x_1; x_1 = l_Lean_Lsp_instToJsonWorkDoneProgressParams___closed__1; return x_1; } } LEAN_EXPORT lean_object* l_Lean_Json_getObjValAs_x3f___at___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonWorkDoneProgressParams____x40_Lean_Data_Lsp_Basic___hyg_6868____spec__1(lean_object* x_1, lean_object* x_2) { _start: { lean_object* x_3; x_3 = l_Lean_Json_getObjValD(x_1, x_2); if (lean_obj_tag(x_3) == 0) { lean_object* x_4; x_4 = l_Lean_Json_getObjValAs_x3f___at___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonLocationLink____x40_Lean_Data_Lsp_Basic___hyg_1529____spec__1___closed__1; return x_4; } else { lean_object* x_5; x_5 = l_Lean_Json_getStr_x3f(x_3); lean_dec(x_3); if (lean_obj_tag(x_5) == 0) { uint8_t x_6; x_6 = !lean_is_exclusive(x_5); if (x_6 == 0) { return x_5; } else { lean_object* x_7; lean_object* x_8; x_7 = lean_ctor_get(x_5, 0); lean_inc(x_7); lean_dec(x_5); x_8 = lean_alloc_ctor(0, 1, 0); lean_ctor_set(x_8, 0, x_7); return x_8; } } else { uint8_t x_9; x_9 = !lean_is_exclusive(x_5); if (x_9 == 0) { lean_object* x_10; lean_object* x_11; x_10 = lean_ctor_get(x_5, 0); x_11 = lean_alloc_ctor(1, 1, 0); lean_ctor_set(x_11, 0, x_10); lean_ctor_set(x_5, 0, x_11); return x_5; } else { lean_object* x_12; lean_object* x_13; lean_object* x_14; x_12 = lean_ctor_get(x_5, 0); lean_inc(x_12); lean_dec(x_5); x_13 = lean_alloc_ctor(1, 1, 0); lean_ctor_set(x_13, 0, x_12); x_14 = lean_alloc_ctor(1, 1, 0); lean_ctor_set(x_14, 0, x_13); return x_14; } } } } } static lean_object* _init_l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonWorkDoneProgressParams____x40_Lean_Data_Lsp_Basic___hyg_6868____closed__1() { _start: { lean_object* x_1; x_1 = lean_mk_string_from_bytes("WorkDoneProgressParams", 22); return x_1; } } static lean_object* _init_l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonWorkDoneProgressParams____x40_Lean_Data_Lsp_Basic___hyg_6868____closed__2() { _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; lean_object* x_4; x_1 = l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonCancelParams____x40_Lean_Data_Lsp_Basic___hyg_144____closed__1; x_2 = l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonCancelParams____x40_Lean_Data_Lsp_Basic___hyg_144____closed__2; x_3 = l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonWorkDoneProgressParams____x40_Lean_Data_Lsp_Basic___hyg_6868____closed__1; x_4 = l_Lean_Name_mkStr3(x_1, x_2, x_3); return x_4; } } static lean_object* _init_l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonWorkDoneProgressParams____x40_Lean_Data_Lsp_Basic___hyg_6868____closed__3() { _start: { lean_object* x_1; uint8_t x_2; lean_object* x_3; x_1 = l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonWorkDoneProgressParams____x40_Lean_Data_Lsp_Basic___hyg_6868____closed__2; x_2 = 1; x_3 = l_Lean_Name_toString(x_1, x_2); return x_3; } } static lean_object* _init_l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonWorkDoneProgressParams____x40_Lean_Data_Lsp_Basic___hyg_6868____closed__4() { _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; x_1 = l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonWorkDoneProgressParams____x40_Lean_Data_Lsp_Basic___hyg_6868____closed__3; x_2 = l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonCancelParams____x40_Lean_Data_Lsp_Basic___hyg_144____closed__6; x_3 = lean_string_append(x_1, x_2); return x_3; } } static lean_object* _init_l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonWorkDoneProgressParams____x40_Lean_Data_Lsp_Basic___hyg_6868____closed__5() { _start: { lean_object* x_1; x_1 = lean_mk_string_from_bytes("workDoneToken?", 14); return x_1; } } static lean_object* _init_l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonWorkDoneProgressParams____x40_Lean_Data_Lsp_Basic___hyg_6868____closed__6() { _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; x_1 = lean_box(0); x_2 = l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonWorkDoneProgressParams____x40_Lean_Data_Lsp_Basic___hyg_6868____closed__5; x_3 = l_Lean_Name_str___override(x_1, x_2); return x_3; } } static lean_object* _init_l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonWorkDoneProgressParams____x40_Lean_Data_Lsp_Basic___hyg_6868____closed__7() { _start: { lean_object* x_1; uint8_t x_2; lean_object* x_3; x_1 = l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonWorkDoneProgressParams____x40_Lean_Data_Lsp_Basic___hyg_6868____closed__6; x_2 = 1; x_3 = l_Lean_Name_toString(x_1, x_2); return x_3; } } static lean_object* _init_l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonWorkDoneProgressParams____x40_Lean_Data_Lsp_Basic___hyg_6868____closed__8() { _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; x_1 = l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonWorkDoneProgressParams____x40_Lean_Data_Lsp_Basic___hyg_6868____closed__4; x_2 = l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonWorkDoneProgressParams____x40_Lean_Data_Lsp_Basic___hyg_6868____closed__7; x_3 = lean_string_append(x_1, x_2); return x_3; } } static lean_object* _init_l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonWorkDoneProgressParams____x40_Lean_Data_Lsp_Basic___hyg_6868____closed__9() { _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; x_1 = l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonWorkDoneProgressParams____x40_Lean_Data_Lsp_Basic___hyg_6868____closed__8; x_2 = l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonCancelParams____x40_Lean_Data_Lsp_Basic___hyg_144____closed__11; x_3 = lean_string_append(x_1, x_2); return x_3; } } LEAN_EXPORT lean_object* l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonWorkDoneProgressParams____x40_Lean_Data_Lsp_Basic___hyg_6868_(lean_object* x_1) { _start: { lean_object* x_2; lean_object* x_3; x_2 = l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_toJsonWorkDoneProgressParams____x40_Lean_Data_Lsp_Basic___hyg_6839____closed__1; x_3 = l_Lean_Json_getObjValAs_x3f___at___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonWorkDoneProgressParams____x40_Lean_Data_Lsp_Basic___hyg_6868____spec__1(x_1, x_2); if (lean_obj_tag(x_3) == 0) { uint8_t x_4; x_4 = !lean_is_exclusive(x_3); if (x_4 == 0) { lean_object* x_5; lean_object* x_6; lean_object* x_7; x_5 = lean_ctor_get(x_3, 0); x_6 = l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonWorkDoneProgressParams____x40_Lean_Data_Lsp_Basic___hyg_6868____closed__9; x_7 = lean_string_append(x_6, x_5); lean_dec(x_5); lean_ctor_set(x_3, 0, x_7); return x_3; } else { lean_object* x_8; lean_object* x_9; lean_object* x_10; lean_object* x_11; x_8 = lean_ctor_get(x_3, 0); lean_inc(x_8); lean_dec(x_3); x_9 = l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonWorkDoneProgressParams____x40_Lean_Data_Lsp_Basic___hyg_6868____closed__9; x_10 = lean_string_append(x_9, x_8); lean_dec(x_8); x_11 = lean_alloc_ctor(0, 1, 0); lean_ctor_set(x_11, 0, x_10); return x_11; } } else { uint8_t x_12; x_12 = !lean_is_exclusive(x_3); if (x_12 == 0) { return x_3; } else { lean_object* x_13; lean_object* x_14; x_13 = lean_ctor_get(x_3, 0); lean_inc(x_13); lean_dec(x_3); x_14 = lean_alloc_ctor(1, 1, 0); lean_ctor_set(x_14, 0, x_13); return x_14; } } } } LEAN_EXPORT lean_object* l_Lean_Json_getObjValAs_x3f___at___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonWorkDoneProgressParams____x40_Lean_Data_Lsp_Basic___hyg_6868____spec__1___boxed(lean_object* x_1, lean_object* x_2) { _start: { lean_object* x_3; x_3 = l_Lean_Json_getObjValAs_x3f___at___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonWorkDoneProgressParams____x40_Lean_Data_Lsp_Basic___hyg_6868____spec__1(x_1, x_2); lean_dec(x_2); lean_dec(x_1); return x_3; } } LEAN_EXPORT lean_object* l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonWorkDoneProgressParams____x40_Lean_Data_Lsp_Basic___hyg_6868____boxed(lean_object* x_1) { _start: { lean_object* x_2; x_2 = l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonWorkDoneProgressParams____x40_Lean_Data_Lsp_Basic___hyg_6868_(x_1); lean_dec(x_1); return x_2; } } static lean_object* _init_l_Lean_Lsp_instFromJsonWorkDoneProgressParams___closed__1() { _start: { lean_object* x_1; x_1 = lean_alloc_closure((void*)(l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonWorkDoneProgressParams____x40_Lean_Data_Lsp_Basic___hyg_6868____boxed), 1, 0); return x_1; } } static lean_object* _init_l_Lean_Lsp_instFromJsonWorkDoneProgressParams() { _start: { lean_object* x_1; x_1 = l_Lean_Lsp_instFromJsonWorkDoneProgressParams___closed__1; return x_1; } } static lean_object* _init_l_Lean_Lsp_PartialResultParams_partialResultToken_x3f___default() { _start: { lean_object* x_1; x_1 = lean_box(0); return x_1; } } static lean_object* _init_l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_toJsonPartialResultParams____x40_Lean_Data_Lsp_Basic___hyg_6946____closed__1() { _start: { lean_object* x_1; x_1 = lean_mk_string_from_bytes("partialResultToken", 18); return x_1; } } LEAN_EXPORT lean_object* l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_toJsonPartialResultParams____x40_Lean_Data_Lsp_Basic___hyg_6946_(lean_object* x_1) { _start: { lean_object* x_2; lean_object* x_3; lean_object* x_4; lean_object* x_5; lean_object* x_6; lean_object* x_7; x_2 = l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_toJsonPartialResultParams____x40_Lean_Data_Lsp_Basic___hyg_6946____closed__1; x_3 = l_Lean_Json_opt___at___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_toJsonWorkDoneProgressParams____x40_Lean_Data_Lsp_Basic___hyg_6839____spec__1(x_2, x_1); x_4 = lean_box(0); x_5 = lean_alloc_ctor(1, 2, 0); lean_ctor_set(x_5, 0, x_3); lean_ctor_set(x_5, 1, x_4); x_6 = l_List_join___rarg(x_5); x_7 = l_Lean_Json_mkObj(x_6); return x_7; } } LEAN_EXPORT lean_object* l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_toJsonPartialResultParams____x40_Lean_Data_Lsp_Basic___hyg_6946____boxed(lean_object* x_1) { _start: { lean_object* x_2; x_2 = l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_toJsonPartialResultParams____x40_Lean_Data_Lsp_Basic___hyg_6946_(x_1); lean_dec(x_1); return x_2; } } static lean_object* _init_l_Lean_Lsp_instToJsonPartialResultParams___closed__1() { _start: { lean_object* x_1; x_1 = lean_alloc_closure((void*)(l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_toJsonPartialResultParams____x40_Lean_Data_Lsp_Basic___hyg_6946____boxed), 1, 0); return x_1; } } static lean_object* _init_l_Lean_Lsp_instToJsonPartialResultParams() { _start: { lean_object* x_1; x_1 = l_Lean_Lsp_instToJsonPartialResultParams___closed__1; return x_1; } } static lean_object* _init_l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonPartialResultParams____x40_Lean_Data_Lsp_Basic___hyg_6975____closed__1() { _start: { lean_object* x_1; x_1 = lean_mk_string_from_bytes("PartialResultParams", 19); return x_1; } } static lean_object* _init_l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonPartialResultParams____x40_Lean_Data_Lsp_Basic___hyg_6975____closed__2() { _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; lean_object* x_4; x_1 = l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonCancelParams____x40_Lean_Data_Lsp_Basic___hyg_144____closed__1; x_2 = l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonCancelParams____x40_Lean_Data_Lsp_Basic___hyg_144____closed__2; x_3 = l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonPartialResultParams____x40_Lean_Data_Lsp_Basic___hyg_6975____closed__1; x_4 = l_Lean_Name_mkStr3(x_1, x_2, x_3); return x_4; } } static lean_object* _init_l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonPartialResultParams____x40_Lean_Data_Lsp_Basic___hyg_6975____closed__3() { _start: { lean_object* x_1; uint8_t x_2; lean_object* x_3; x_1 = l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonPartialResultParams____x40_Lean_Data_Lsp_Basic___hyg_6975____closed__2; x_2 = 1; x_3 = l_Lean_Name_toString(x_1, x_2); return x_3; } } static lean_object* _init_l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonPartialResultParams____x40_Lean_Data_Lsp_Basic___hyg_6975____closed__4() { _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; x_1 = l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonPartialResultParams____x40_Lean_Data_Lsp_Basic___hyg_6975____closed__3; x_2 = l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonCancelParams____x40_Lean_Data_Lsp_Basic___hyg_144____closed__6; x_3 = lean_string_append(x_1, x_2); return x_3; } } static lean_object* _init_l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonPartialResultParams____x40_Lean_Data_Lsp_Basic___hyg_6975____closed__5() { _start: { lean_object* x_1; x_1 = lean_mk_string_from_bytes("partialResultToken?", 19); return x_1; } } static lean_object* _init_l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonPartialResultParams____x40_Lean_Data_Lsp_Basic___hyg_6975____closed__6() { _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; x_1 = lean_box(0); x_2 = l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonPartialResultParams____x40_Lean_Data_Lsp_Basic___hyg_6975____closed__5; x_3 = l_Lean_Name_str___override(x_1, x_2); return x_3; } } static lean_object* _init_l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonPartialResultParams____x40_Lean_Data_Lsp_Basic___hyg_6975____closed__7() { _start: { lean_object* x_1; uint8_t x_2; lean_object* x_3; x_1 = l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonPartialResultParams____x40_Lean_Data_Lsp_Basic___hyg_6975____closed__6; x_2 = 1; x_3 = l_Lean_Name_toString(x_1, x_2); return x_3; } } static lean_object* _init_l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonPartialResultParams____x40_Lean_Data_Lsp_Basic___hyg_6975____closed__8() { _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; x_1 = l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonPartialResultParams____x40_Lean_Data_Lsp_Basic___hyg_6975____closed__4; x_2 = l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonPartialResultParams____x40_Lean_Data_Lsp_Basic___hyg_6975____closed__7; x_3 = lean_string_append(x_1, x_2); return x_3; } } static lean_object* _init_l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonPartialResultParams____x40_Lean_Data_Lsp_Basic___hyg_6975____closed__9() { _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; x_1 = l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonPartialResultParams____x40_Lean_Data_Lsp_Basic___hyg_6975____closed__8; x_2 = l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonCancelParams____x40_Lean_Data_Lsp_Basic___hyg_144____closed__11; x_3 = lean_string_append(x_1, x_2); return x_3; } } LEAN_EXPORT lean_object* l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonPartialResultParams____x40_Lean_Data_Lsp_Basic___hyg_6975_(lean_object* x_1) { _start: { lean_object* x_2; lean_object* x_3; x_2 = l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_toJsonPartialResultParams____x40_Lean_Data_Lsp_Basic___hyg_6946____closed__1; x_3 = l_Lean_Json_getObjValAs_x3f___at___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonWorkDoneProgressParams____x40_Lean_Data_Lsp_Basic___hyg_6868____spec__1(x_1, x_2); if (lean_obj_tag(x_3) == 0) { uint8_t x_4; x_4 = !lean_is_exclusive(x_3); if (x_4 == 0) { lean_object* x_5; lean_object* x_6; lean_object* x_7; x_5 = lean_ctor_get(x_3, 0); x_6 = l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonPartialResultParams____x40_Lean_Data_Lsp_Basic___hyg_6975____closed__9; x_7 = lean_string_append(x_6, x_5); lean_dec(x_5); lean_ctor_set(x_3, 0, x_7); return x_3; } else { lean_object* x_8; lean_object* x_9; lean_object* x_10; lean_object* x_11; x_8 = lean_ctor_get(x_3, 0); lean_inc(x_8); lean_dec(x_3); x_9 = l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonPartialResultParams____x40_Lean_Data_Lsp_Basic___hyg_6975____closed__9; x_10 = lean_string_append(x_9, x_8); lean_dec(x_8); x_11 = lean_alloc_ctor(0, 1, 0); lean_ctor_set(x_11, 0, x_10); return x_11; } } else { uint8_t x_12; x_12 = !lean_is_exclusive(x_3); if (x_12 == 0) { return x_3; } else { lean_object* x_13; lean_object* x_14; x_13 = lean_ctor_get(x_3, 0); lean_inc(x_13); lean_dec(x_3); x_14 = lean_alloc_ctor(1, 1, 0); lean_ctor_set(x_14, 0, x_13); return x_14; } } } } LEAN_EXPORT lean_object* l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonPartialResultParams____x40_Lean_Data_Lsp_Basic___hyg_6975____boxed(lean_object* x_1) { _start: { lean_object* x_2; x_2 = l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonPartialResultParams____x40_Lean_Data_Lsp_Basic___hyg_6975_(x_1); lean_dec(x_1); return x_2; } } static lean_object* _init_l_Lean_Lsp_instFromJsonPartialResultParams___closed__1() { _start: { lean_object* x_1; x_1 = lean_alloc_closure((void*)(l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonPartialResultParams____x40_Lean_Data_Lsp_Basic___hyg_6975____boxed), 1, 0); return x_1; } } static lean_object* _init_l_Lean_Lsp_instFromJsonPartialResultParams() { _start: { lean_object* x_1; x_1 = l_Lean_Lsp_instFromJsonPartialResultParams___closed__1; return x_1; } } static uint8_t _init_l_Lean_Lsp_WorkDoneProgressOptions_workDoneProgress___default() { _start: { uint8_t x_1; x_1 = 0; return x_1; } } static lean_object* _init_l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_toJsonWorkDoneProgressOptions____x40_Lean_Data_Lsp_Basic___hyg_7051____closed__1() { _start: { lean_object* x_1; x_1 = lean_mk_string_from_bytes("workDoneProgress", 16); return x_1; } } LEAN_EXPORT lean_object* l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_toJsonWorkDoneProgressOptions____x40_Lean_Data_Lsp_Basic___hyg_7051_(uint8_t x_1) { _start: { lean_object* x_2; lean_object* x_3; lean_object* x_4; lean_object* x_5; lean_object* x_6; lean_object* x_7; lean_object* x_8; lean_object* x_9; x_2 = lean_alloc_ctor(1, 0, 1); lean_ctor_set_uint8(x_2, 0, x_1); x_3 = l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_toJsonWorkDoneProgressOptions____x40_Lean_Data_Lsp_Basic___hyg_7051____closed__1; x_4 = lean_alloc_ctor(0, 2, 0); lean_ctor_set(x_4, 0, x_3); lean_ctor_set(x_4, 1, x_2); x_5 = lean_box(0); x_6 = lean_alloc_ctor(1, 2, 0); lean_ctor_set(x_6, 0, x_4); lean_ctor_set(x_6, 1, x_5); x_7 = lean_alloc_ctor(1, 2, 0); lean_ctor_set(x_7, 0, x_6); lean_ctor_set(x_7, 1, x_5); x_8 = l_List_join___rarg(x_7); x_9 = l_Lean_Json_mkObj(x_8); return x_9; } } LEAN_EXPORT lean_object* l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_toJsonWorkDoneProgressOptions____x40_Lean_Data_Lsp_Basic___hyg_7051____boxed(lean_object* x_1) { _start: { uint8_t x_2; lean_object* x_3; x_2 = lean_unbox(x_1); lean_dec(x_1); x_3 = l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_toJsonWorkDoneProgressOptions____x40_Lean_Data_Lsp_Basic___hyg_7051_(x_2); return x_3; } } static lean_object* _init_l_Lean_Lsp_instToJsonWorkDoneProgressOptions___closed__1() { _start: { lean_object* x_1; x_1 = lean_alloc_closure((void*)(l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_toJsonWorkDoneProgressOptions____x40_Lean_Data_Lsp_Basic___hyg_7051____boxed), 1, 0); return x_1; } } static lean_object* _init_l_Lean_Lsp_instToJsonWorkDoneProgressOptions() { _start: { lean_object* x_1; x_1 = l_Lean_Lsp_instToJsonWorkDoneProgressOptions___closed__1; return x_1; } } static lean_object* _init_l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonWorkDoneProgressOptions____x40_Lean_Data_Lsp_Basic___hyg_7087____closed__1() { _start: { lean_object* x_1; x_1 = lean_mk_string_from_bytes("WorkDoneProgressOptions", 23); return x_1; } } static lean_object* _init_l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonWorkDoneProgressOptions____x40_Lean_Data_Lsp_Basic___hyg_7087____closed__2() { _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; lean_object* x_4; x_1 = l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonCancelParams____x40_Lean_Data_Lsp_Basic___hyg_144____closed__1; x_2 = l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonCancelParams____x40_Lean_Data_Lsp_Basic___hyg_144____closed__2; x_3 = l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonWorkDoneProgressOptions____x40_Lean_Data_Lsp_Basic___hyg_7087____closed__1; x_4 = l_Lean_Name_mkStr3(x_1, x_2, x_3); return x_4; } } static lean_object* _init_l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonWorkDoneProgressOptions____x40_Lean_Data_Lsp_Basic___hyg_7087____closed__3() { _start: { lean_object* x_1; uint8_t x_2; lean_object* x_3; x_1 = l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonWorkDoneProgressOptions____x40_Lean_Data_Lsp_Basic___hyg_7087____closed__2; x_2 = 1; x_3 = l_Lean_Name_toString(x_1, x_2); return x_3; } } static lean_object* _init_l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonWorkDoneProgressOptions____x40_Lean_Data_Lsp_Basic___hyg_7087____closed__4() { _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; x_1 = l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonWorkDoneProgressOptions____x40_Lean_Data_Lsp_Basic___hyg_7087____closed__3; x_2 = l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonCancelParams____x40_Lean_Data_Lsp_Basic___hyg_144____closed__6; x_3 = lean_string_append(x_1, x_2); return x_3; } } static lean_object* _init_l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonWorkDoneProgressOptions____x40_Lean_Data_Lsp_Basic___hyg_7087____closed__5() { _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; x_1 = lean_box(0); x_2 = l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_toJsonWorkDoneProgressOptions____x40_Lean_Data_Lsp_Basic___hyg_7051____closed__1; x_3 = l_Lean_Name_str___override(x_1, x_2); return x_3; } } static lean_object* _init_l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonWorkDoneProgressOptions____x40_Lean_Data_Lsp_Basic___hyg_7087____closed__6() { _start: { lean_object* x_1; uint8_t x_2; lean_object* x_3; x_1 = l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonWorkDoneProgressOptions____x40_Lean_Data_Lsp_Basic___hyg_7087____closed__5; x_2 = 1; x_3 = l_Lean_Name_toString(x_1, x_2); return x_3; } } static lean_object* _init_l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonWorkDoneProgressOptions____x40_Lean_Data_Lsp_Basic___hyg_7087____closed__7() { _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; x_1 = l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonWorkDoneProgressOptions____x40_Lean_Data_Lsp_Basic___hyg_7087____closed__4; x_2 = l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonWorkDoneProgressOptions____x40_Lean_Data_Lsp_Basic___hyg_7087____closed__6; x_3 = lean_string_append(x_1, x_2); return x_3; } } static lean_object* _init_l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonWorkDoneProgressOptions____x40_Lean_Data_Lsp_Basic___hyg_7087____closed__8() { _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; x_1 = l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonWorkDoneProgressOptions____x40_Lean_Data_Lsp_Basic___hyg_7087____closed__7; x_2 = l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonCancelParams____x40_Lean_Data_Lsp_Basic___hyg_144____closed__11; x_3 = lean_string_append(x_1, x_2); return x_3; } } LEAN_EXPORT lean_object* l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonWorkDoneProgressOptions____x40_Lean_Data_Lsp_Basic___hyg_7087_(lean_object* x_1) { _start: { lean_object* x_2; lean_object* x_3; x_2 = l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_toJsonWorkDoneProgressOptions____x40_Lean_Data_Lsp_Basic___hyg_7051____closed__1; x_3 = l_Lean_Json_getObjValAs_x3f___at___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonChangeAnnotation____x40_Lean_Data_Lsp_Basic___hyg_2933____spec__1(x_1, x_2); if (lean_obj_tag(x_3) == 0) { uint8_t x_4; x_4 = !lean_is_exclusive(x_3); if (x_4 == 0) { lean_object* x_5; lean_object* x_6; lean_object* x_7; x_5 = lean_ctor_get(x_3, 0); x_6 = l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonWorkDoneProgressOptions____x40_Lean_Data_Lsp_Basic___hyg_7087____closed__8; x_7 = lean_string_append(x_6, x_5); lean_dec(x_5); lean_ctor_set(x_3, 0, x_7); return x_3; } else { lean_object* x_8; lean_object* x_9; lean_object* x_10; lean_object* x_11; x_8 = lean_ctor_get(x_3, 0); lean_inc(x_8); lean_dec(x_3); x_9 = l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonWorkDoneProgressOptions____x40_Lean_Data_Lsp_Basic___hyg_7087____closed__8; x_10 = lean_string_append(x_9, x_8); lean_dec(x_8); x_11 = lean_alloc_ctor(0, 1, 0); lean_ctor_set(x_11, 0, x_10); return x_11; } } else { uint8_t x_12; x_12 = !lean_is_exclusive(x_3); if (x_12 == 0) { return x_3; } else { lean_object* x_13; lean_object* x_14; x_13 = lean_ctor_get(x_3, 0); lean_inc(x_13); lean_dec(x_3); x_14 = lean_alloc_ctor(1, 1, 0); lean_ctor_set(x_14, 0, x_13); return x_14; } } } } LEAN_EXPORT lean_object* l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonWorkDoneProgressOptions____x40_Lean_Data_Lsp_Basic___hyg_7087____boxed(lean_object* x_1) { _start: { lean_object* x_2; x_2 = l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonWorkDoneProgressOptions____x40_Lean_Data_Lsp_Basic___hyg_7087_(x_1); lean_dec(x_1); return x_2; } } static lean_object* _init_l_Lean_Lsp_instFromJsonWorkDoneProgressOptions___closed__1() { _start: { lean_object* x_1; x_1 = lean_alloc_closure((void*)(l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonWorkDoneProgressOptions____x40_Lean_Data_Lsp_Basic___hyg_7087____boxed), 1, 0); return x_1; } } static lean_object* _init_l_Lean_Lsp_instFromJsonWorkDoneProgressOptions() { _start: { lean_object* x_1; x_1 = l_Lean_Lsp_instFromJsonWorkDoneProgressOptions___closed__1; return x_1; } } lean_object* initialize_Init(uint8_t builtin, lean_object*); lean_object* initialize_Lean_Data_Json(uint8_t builtin, lean_object*); lean_object* initialize_Lean_Data_JsonRpc(uint8_t builtin, lean_object*); static bool _G_initialized = false; LEAN_EXPORT lean_object* initialize_Lean_Data_Lsp_Basic(uint8_t builtin, lean_object* w) { lean_object * res; if (_G_initialized) return lean_io_result_mk_ok(lean_box(0)); _G_initialized = true; res = initialize_Init(builtin, lean_io_mk_world()); if (lean_io_result_is_error(res)) return res; lean_dec_ref(res); res = initialize_Lean_Data_Json(builtin, lean_io_mk_world()); if (lean_io_result_is_error(res)) return res; lean_dec_ref(res); res = initialize_Lean_Data_JsonRpc(builtin, lean_io_mk_world()); if (lean_io_result_is_error(res)) return res; lean_dec_ref(res); l_Lean_Lsp_instInhabitedCancelParams___closed__1 = _init_l_Lean_Lsp_instInhabitedCancelParams___closed__1(); lean_mark_persistent(l_Lean_Lsp_instInhabitedCancelParams___closed__1); l_Lean_Lsp_instInhabitedCancelParams___closed__2 = _init_l_Lean_Lsp_instInhabitedCancelParams___closed__2(); lean_mark_persistent(l_Lean_Lsp_instInhabitedCancelParams___closed__2); l_Lean_Lsp_instInhabitedCancelParams = _init_l_Lean_Lsp_instInhabitedCancelParams(); lean_mark_persistent(l_Lean_Lsp_instInhabitedCancelParams); l_Lean_Lsp_instBEqCancelParams___closed__1 = _init_l_Lean_Lsp_instBEqCancelParams___closed__1(); lean_mark_persistent(l_Lean_Lsp_instBEqCancelParams___closed__1); l_Lean_Lsp_instBEqCancelParams = _init_l_Lean_Lsp_instBEqCancelParams(); lean_mark_persistent(l_Lean_Lsp_instBEqCancelParams); l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_toJsonCancelParams____x40_Lean_Data_Lsp_Basic___hyg_100____closed__1 = _init_l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_toJsonCancelParams____x40_Lean_Data_Lsp_Basic___hyg_100____closed__1(); lean_mark_persistent(l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_toJsonCancelParams____x40_Lean_Data_Lsp_Basic___hyg_100____closed__1); l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_toJsonCancelParams____x40_Lean_Data_Lsp_Basic___hyg_100____closed__2 = _init_l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_toJsonCancelParams____x40_Lean_Data_Lsp_Basic___hyg_100____closed__2(); lean_mark_persistent(l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_toJsonCancelParams____x40_Lean_Data_Lsp_Basic___hyg_100____closed__2); l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_toJsonCancelParams____x40_Lean_Data_Lsp_Basic___hyg_100____closed__3 = _init_l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_toJsonCancelParams____x40_Lean_Data_Lsp_Basic___hyg_100____closed__3(); lean_mark_persistent(l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_toJsonCancelParams____x40_Lean_Data_Lsp_Basic___hyg_100____closed__3); l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_toJsonCancelParams____x40_Lean_Data_Lsp_Basic___hyg_100____closed__4 = _init_l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_toJsonCancelParams____x40_Lean_Data_Lsp_Basic___hyg_100____closed__4(); lean_mark_persistent(l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_toJsonCancelParams____x40_Lean_Data_Lsp_Basic___hyg_100____closed__4); l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_toJsonCancelParams____x40_Lean_Data_Lsp_Basic___hyg_100____closed__5 = _init_l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_toJsonCancelParams____x40_Lean_Data_Lsp_Basic___hyg_100____closed__5(); lean_mark_persistent(l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_toJsonCancelParams____x40_Lean_Data_Lsp_Basic___hyg_100____closed__5); l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_toJsonCancelParams____x40_Lean_Data_Lsp_Basic___hyg_100____closed__6 = _init_l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_toJsonCancelParams____x40_Lean_Data_Lsp_Basic___hyg_100____closed__6(); lean_mark_persistent(l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_toJsonCancelParams____x40_Lean_Data_Lsp_Basic___hyg_100____closed__6); l_Lean_Lsp_instToJsonCancelParams___closed__1 = _init_l_Lean_Lsp_instToJsonCancelParams___closed__1(); lean_mark_persistent(l_Lean_Lsp_instToJsonCancelParams___closed__1); l_Lean_Lsp_instToJsonCancelParams = _init_l_Lean_Lsp_instToJsonCancelParams(); lean_mark_persistent(l_Lean_Lsp_instToJsonCancelParams); l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonCancelParams____x40_Lean_Data_Lsp_Basic___hyg_144____closed__1 = _init_l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonCancelParams____x40_Lean_Data_Lsp_Basic___hyg_144____closed__1(); lean_mark_persistent(l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonCancelParams____x40_Lean_Data_Lsp_Basic___hyg_144____closed__1); l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonCancelParams____x40_Lean_Data_Lsp_Basic___hyg_144____closed__2 = _init_l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonCancelParams____x40_Lean_Data_Lsp_Basic___hyg_144____closed__2(); lean_mark_persistent(l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonCancelParams____x40_Lean_Data_Lsp_Basic___hyg_144____closed__2); l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonCancelParams____x40_Lean_Data_Lsp_Basic___hyg_144____closed__3 = _init_l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonCancelParams____x40_Lean_Data_Lsp_Basic___hyg_144____closed__3(); lean_mark_persistent(l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonCancelParams____x40_Lean_Data_Lsp_Basic___hyg_144____closed__3); l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonCancelParams____x40_Lean_Data_Lsp_Basic___hyg_144____closed__4 = _init_l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonCancelParams____x40_Lean_Data_Lsp_Basic___hyg_144____closed__4(); lean_mark_persistent(l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonCancelParams____x40_Lean_Data_Lsp_Basic___hyg_144____closed__4); l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonCancelParams____x40_Lean_Data_Lsp_Basic___hyg_144____closed__5 = _init_l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonCancelParams____x40_Lean_Data_Lsp_Basic___hyg_144____closed__5(); lean_mark_persistent(l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonCancelParams____x40_Lean_Data_Lsp_Basic___hyg_144____closed__5); l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonCancelParams____x40_Lean_Data_Lsp_Basic___hyg_144____closed__6 = _init_l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonCancelParams____x40_Lean_Data_Lsp_Basic___hyg_144____closed__6(); lean_mark_persistent(l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonCancelParams____x40_Lean_Data_Lsp_Basic___hyg_144____closed__6); l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonCancelParams____x40_Lean_Data_Lsp_Basic___hyg_144____closed__7 = _init_l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonCancelParams____x40_Lean_Data_Lsp_Basic___hyg_144____closed__7(); lean_mark_persistent(l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonCancelParams____x40_Lean_Data_Lsp_Basic___hyg_144____closed__7); l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonCancelParams____x40_Lean_Data_Lsp_Basic___hyg_144____closed__8 = _init_l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonCancelParams____x40_Lean_Data_Lsp_Basic___hyg_144____closed__8(); lean_mark_persistent(l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonCancelParams____x40_Lean_Data_Lsp_Basic___hyg_144____closed__8); l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonCancelParams____x40_Lean_Data_Lsp_Basic___hyg_144____closed__9 = _init_l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonCancelParams____x40_Lean_Data_Lsp_Basic___hyg_144____closed__9(); lean_mark_persistent(l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonCancelParams____x40_Lean_Data_Lsp_Basic___hyg_144____closed__9); l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonCancelParams____x40_Lean_Data_Lsp_Basic___hyg_144____closed__10 = _init_l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonCancelParams____x40_Lean_Data_Lsp_Basic___hyg_144____closed__10(); lean_mark_persistent(l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonCancelParams____x40_Lean_Data_Lsp_Basic___hyg_144____closed__10); l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonCancelParams____x40_Lean_Data_Lsp_Basic___hyg_144____closed__11 = _init_l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonCancelParams____x40_Lean_Data_Lsp_Basic___hyg_144____closed__11(); lean_mark_persistent(l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonCancelParams____x40_Lean_Data_Lsp_Basic___hyg_144____closed__11); l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonCancelParams____x40_Lean_Data_Lsp_Basic___hyg_144____closed__12 = _init_l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonCancelParams____x40_Lean_Data_Lsp_Basic___hyg_144____closed__12(); lean_mark_persistent(l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonCancelParams____x40_Lean_Data_Lsp_Basic___hyg_144____closed__12); l_Lean_Lsp_instFromJsonCancelParams___closed__1 = _init_l_Lean_Lsp_instFromJsonCancelParams___closed__1(); lean_mark_persistent(l_Lean_Lsp_instFromJsonCancelParams___closed__1); l_Lean_Lsp_instFromJsonCancelParams = _init_l_Lean_Lsp_instFromJsonCancelParams(); lean_mark_persistent(l_Lean_Lsp_instFromJsonCancelParams); l_Lean_Lsp_instInhabitedPosition___closed__1 = _init_l_Lean_Lsp_instInhabitedPosition___closed__1(); lean_mark_persistent(l_Lean_Lsp_instInhabitedPosition___closed__1); l_Lean_Lsp_instInhabitedPosition = _init_l_Lean_Lsp_instInhabitedPosition(); lean_mark_persistent(l_Lean_Lsp_instInhabitedPosition); l_Lean_Lsp_instBEqPosition___closed__1 = _init_l_Lean_Lsp_instBEqPosition___closed__1(); lean_mark_persistent(l_Lean_Lsp_instBEqPosition___closed__1); l_Lean_Lsp_instBEqPosition = _init_l_Lean_Lsp_instBEqPosition(); lean_mark_persistent(l_Lean_Lsp_instBEqPosition); l_Lean_Lsp_instOrdPosition___closed__1 = _init_l_Lean_Lsp_instOrdPosition___closed__1(); lean_mark_persistent(l_Lean_Lsp_instOrdPosition___closed__1); l_Lean_Lsp_instOrdPosition = _init_l_Lean_Lsp_instOrdPosition(); lean_mark_persistent(l_Lean_Lsp_instOrdPosition); l_Lean_Lsp_instHashablePosition___closed__1 = _init_l_Lean_Lsp_instHashablePosition___closed__1(); lean_mark_persistent(l_Lean_Lsp_instHashablePosition___closed__1); l_Lean_Lsp_instHashablePosition = _init_l_Lean_Lsp_instHashablePosition(); lean_mark_persistent(l_Lean_Lsp_instHashablePosition); l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_toJsonPosition____x40_Lean_Data_Lsp_Basic___hyg_497____closed__1 = _init_l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_toJsonPosition____x40_Lean_Data_Lsp_Basic___hyg_497____closed__1(); lean_mark_persistent(l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_toJsonPosition____x40_Lean_Data_Lsp_Basic___hyg_497____closed__1); l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_toJsonPosition____x40_Lean_Data_Lsp_Basic___hyg_497____closed__2 = _init_l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_toJsonPosition____x40_Lean_Data_Lsp_Basic___hyg_497____closed__2(); lean_mark_persistent(l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_toJsonPosition____x40_Lean_Data_Lsp_Basic___hyg_497____closed__2); l_Lean_Lsp_instToJsonPosition___closed__1 = _init_l_Lean_Lsp_instToJsonPosition___closed__1(); lean_mark_persistent(l_Lean_Lsp_instToJsonPosition___closed__1); l_Lean_Lsp_instToJsonPosition = _init_l_Lean_Lsp_instToJsonPosition(); lean_mark_persistent(l_Lean_Lsp_instToJsonPosition); l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonPosition____x40_Lean_Data_Lsp_Basic___hyg_548____closed__1 = _init_l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonPosition____x40_Lean_Data_Lsp_Basic___hyg_548____closed__1(); lean_mark_persistent(l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonPosition____x40_Lean_Data_Lsp_Basic___hyg_548____closed__1); l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonPosition____x40_Lean_Data_Lsp_Basic___hyg_548____closed__2 = _init_l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonPosition____x40_Lean_Data_Lsp_Basic___hyg_548____closed__2(); lean_mark_persistent(l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonPosition____x40_Lean_Data_Lsp_Basic___hyg_548____closed__2); l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonPosition____x40_Lean_Data_Lsp_Basic___hyg_548____closed__3 = _init_l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonPosition____x40_Lean_Data_Lsp_Basic___hyg_548____closed__3(); lean_mark_persistent(l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonPosition____x40_Lean_Data_Lsp_Basic___hyg_548____closed__3); l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonPosition____x40_Lean_Data_Lsp_Basic___hyg_548____closed__4 = _init_l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonPosition____x40_Lean_Data_Lsp_Basic___hyg_548____closed__4(); lean_mark_persistent(l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonPosition____x40_Lean_Data_Lsp_Basic___hyg_548____closed__4); l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonPosition____x40_Lean_Data_Lsp_Basic___hyg_548____closed__5 = _init_l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonPosition____x40_Lean_Data_Lsp_Basic___hyg_548____closed__5(); lean_mark_persistent(l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonPosition____x40_Lean_Data_Lsp_Basic___hyg_548____closed__5); l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonPosition____x40_Lean_Data_Lsp_Basic___hyg_548____closed__6 = _init_l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonPosition____x40_Lean_Data_Lsp_Basic___hyg_548____closed__6(); lean_mark_persistent(l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonPosition____x40_Lean_Data_Lsp_Basic___hyg_548____closed__6); l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonPosition____x40_Lean_Data_Lsp_Basic___hyg_548____closed__7 = _init_l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonPosition____x40_Lean_Data_Lsp_Basic___hyg_548____closed__7(); lean_mark_persistent(l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonPosition____x40_Lean_Data_Lsp_Basic___hyg_548____closed__7); l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonPosition____x40_Lean_Data_Lsp_Basic___hyg_548____closed__8 = _init_l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonPosition____x40_Lean_Data_Lsp_Basic___hyg_548____closed__8(); lean_mark_persistent(l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonPosition____x40_Lean_Data_Lsp_Basic___hyg_548____closed__8); l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonPosition____x40_Lean_Data_Lsp_Basic___hyg_548____closed__9 = _init_l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonPosition____x40_Lean_Data_Lsp_Basic___hyg_548____closed__9(); lean_mark_persistent(l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonPosition____x40_Lean_Data_Lsp_Basic___hyg_548____closed__9); l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonPosition____x40_Lean_Data_Lsp_Basic___hyg_548____closed__10 = _init_l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonPosition____x40_Lean_Data_Lsp_Basic___hyg_548____closed__10(); lean_mark_persistent(l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonPosition____x40_Lean_Data_Lsp_Basic___hyg_548____closed__10); l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonPosition____x40_Lean_Data_Lsp_Basic___hyg_548____closed__11 = _init_l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonPosition____x40_Lean_Data_Lsp_Basic___hyg_548____closed__11(); lean_mark_persistent(l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonPosition____x40_Lean_Data_Lsp_Basic___hyg_548____closed__11); l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonPosition____x40_Lean_Data_Lsp_Basic___hyg_548____closed__12 = _init_l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonPosition____x40_Lean_Data_Lsp_Basic___hyg_548____closed__12(); lean_mark_persistent(l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonPosition____x40_Lean_Data_Lsp_Basic___hyg_548____closed__12); l_Lean_Lsp_instFromJsonPosition___closed__1 = _init_l_Lean_Lsp_instFromJsonPosition___closed__1(); lean_mark_persistent(l_Lean_Lsp_instFromJsonPosition___closed__1); l_Lean_Lsp_instFromJsonPosition = _init_l_Lean_Lsp_instFromJsonPosition(); lean_mark_persistent(l_Lean_Lsp_instFromJsonPosition); l_Lean_Lsp_instToStringPosition___closed__1 = _init_l_Lean_Lsp_instToStringPosition___closed__1(); lean_mark_persistent(l_Lean_Lsp_instToStringPosition___closed__1); l_Lean_Lsp_instToStringPosition___closed__2 = _init_l_Lean_Lsp_instToStringPosition___closed__2(); lean_mark_persistent(l_Lean_Lsp_instToStringPosition___closed__2); l_Lean_Lsp_instToStringPosition___closed__3 = _init_l_Lean_Lsp_instToStringPosition___closed__3(); lean_mark_persistent(l_Lean_Lsp_instToStringPosition___closed__3); l_Lean_Lsp_instLTPosition = _init_l_Lean_Lsp_instLTPosition(); lean_mark_persistent(l_Lean_Lsp_instLTPosition); l_Lean_Lsp_instLEPosition = _init_l_Lean_Lsp_instLEPosition(); lean_mark_persistent(l_Lean_Lsp_instLEPosition); l_Lean_Lsp_instInhabitedRange___closed__1 = _init_l_Lean_Lsp_instInhabitedRange___closed__1(); lean_mark_persistent(l_Lean_Lsp_instInhabitedRange___closed__1); l_Lean_Lsp_instInhabitedRange = _init_l_Lean_Lsp_instInhabitedRange(); lean_mark_persistent(l_Lean_Lsp_instInhabitedRange); l_Lean_Lsp_instBEqRange___closed__1 = _init_l_Lean_Lsp_instBEqRange___closed__1(); lean_mark_persistent(l_Lean_Lsp_instBEqRange___closed__1); l_Lean_Lsp_instBEqRange = _init_l_Lean_Lsp_instBEqRange(); lean_mark_persistent(l_Lean_Lsp_instBEqRange); l_Lean_Lsp_instHashableRange___closed__1 = _init_l_Lean_Lsp_instHashableRange___closed__1(); lean_mark_persistent(l_Lean_Lsp_instHashableRange___closed__1); l_Lean_Lsp_instHashableRange = _init_l_Lean_Lsp_instHashableRange(); lean_mark_persistent(l_Lean_Lsp_instHashableRange); l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_toJsonRange____x40_Lean_Data_Lsp_Basic___hyg_866____closed__1 = _init_l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_toJsonRange____x40_Lean_Data_Lsp_Basic___hyg_866____closed__1(); lean_mark_persistent(l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_toJsonRange____x40_Lean_Data_Lsp_Basic___hyg_866____closed__1); l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_toJsonRange____x40_Lean_Data_Lsp_Basic___hyg_866____closed__2 = _init_l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_toJsonRange____x40_Lean_Data_Lsp_Basic___hyg_866____closed__2(); lean_mark_persistent(l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_toJsonRange____x40_Lean_Data_Lsp_Basic___hyg_866____closed__2); l_Lean_Lsp_instToJsonRange___closed__1 = _init_l_Lean_Lsp_instToJsonRange___closed__1(); lean_mark_persistent(l_Lean_Lsp_instToJsonRange___closed__1); l_Lean_Lsp_instToJsonRange = _init_l_Lean_Lsp_instToJsonRange(); lean_mark_persistent(l_Lean_Lsp_instToJsonRange); l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonRange____x40_Lean_Data_Lsp_Basic___hyg_916____closed__1 = _init_l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonRange____x40_Lean_Data_Lsp_Basic___hyg_916____closed__1(); lean_mark_persistent(l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonRange____x40_Lean_Data_Lsp_Basic___hyg_916____closed__1); l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonRange____x40_Lean_Data_Lsp_Basic___hyg_916____closed__2 = _init_l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonRange____x40_Lean_Data_Lsp_Basic___hyg_916____closed__2(); lean_mark_persistent(l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonRange____x40_Lean_Data_Lsp_Basic___hyg_916____closed__2); l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonRange____x40_Lean_Data_Lsp_Basic___hyg_916____closed__3 = _init_l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonRange____x40_Lean_Data_Lsp_Basic___hyg_916____closed__3(); lean_mark_persistent(l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonRange____x40_Lean_Data_Lsp_Basic___hyg_916____closed__3); l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonRange____x40_Lean_Data_Lsp_Basic___hyg_916____closed__4 = _init_l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonRange____x40_Lean_Data_Lsp_Basic___hyg_916____closed__4(); lean_mark_persistent(l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonRange____x40_Lean_Data_Lsp_Basic___hyg_916____closed__4); l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonRange____x40_Lean_Data_Lsp_Basic___hyg_916____closed__5 = _init_l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonRange____x40_Lean_Data_Lsp_Basic___hyg_916____closed__5(); lean_mark_persistent(l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonRange____x40_Lean_Data_Lsp_Basic___hyg_916____closed__5); l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonRange____x40_Lean_Data_Lsp_Basic___hyg_916____closed__6 = _init_l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonRange____x40_Lean_Data_Lsp_Basic___hyg_916____closed__6(); lean_mark_persistent(l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonRange____x40_Lean_Data_Lsp_Basic___hyg_916____closed__6); l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonRange____x40_Lean_Data_Lsp_Basic___hyg_916____closed__7 = _init_l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonRange____x40_Lean_Data_Lsp_Basic___hyg_916____closed__7(); lean_mark_persistent(l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonRange____x40_Lean_Data_Lsp_Basic___hyg_916____closed__7); l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonRange____x40_Lean_Data_Lsp_Basic___hyg_916____closed__8 = _init_l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonRange____x40_Lean_Data_Lsp_Basic___hyg_916____closed__8(); lean_mark_persistent(l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonRange____x40_Lean_Data_Lsp_Basic___hyg_916____closed__8); l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonRange____x40_Lean_Data_Lsp_Basic___hyg_916____closed__9 = _init_l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonRange____x40_Lean_Data_Lsp_Basic___hyg_916____closed__9(); lean_mark_persistent(l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonRange____x40_Lean_Data_Lsp_Basic___hyg_916____closed__9); l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonRange____x40_Lean_Data_Lsp_Basic___hyg_916____closed__10 = _init_l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonRange____x40_Lean_Data_Lsp_Basic___hyg_916____closed__10(); lean_mark_persistent(l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonRange____x40_Lean_Data_Lsp_Basic___hyg_916____closed__10); l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonRange____x40_Lean_Data_Lsp_Basic___hyg_916____closed__11 = _init_l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonRange____x40_Lean_Data_Lsp_Basic___hyg_916____closed__11(); lean_mark_persistent(l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonRange____x40_Lean_Data_Lsp_Basic___hyg_916____closed__11); l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonRange____x40_Lean_Data_Lsp_Basic___hyg_916____closed__12 = _init_l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonRange____x40_Lean_Data_Lsp_Basic___hyg_916____closed__12(); lean_mark_persistent(l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonRange____x40_Lean_Data_Lsp_Basic___hyg_916____closed__12); l_Lean_Lsp_instFromJsonRange___closed__1 = _init_l_Lean_Lsp_instFromJsonRange___closed__1(); lean_mark_persistent(l_Lean_Lsp_instFromJsonRange___closed__1); l_Lean_Lsp_instFromJsonRange = _init_l_Lean_Lsp_instFromJsonRange(); lean_mark_persistent(l_Lean_Lsp_instFromJsonRange); l_Lean_Lsp_instOrdRange___closed__1 = _init_l_Lean_Lsp_instOrdRange___closed__1(); lean_mark_persistent(l_Lean_Lsp_instOrdRange___closed__1); l_Lean_Lsp_instOrdRange = _init_l_Lean_Lsp_instOrdRange(); lean_mark_persistent(l_Lean_Lsp_instOrdRange); l_Lean_Lsp_instLTRange = _init_l_Lean_Lsp_instLTRange(); lean_mark_persistent(l_Lean_Lsp_instLTRange); l_Lean_Lsp_instLERange = _init_l_Lean_Lsp_instLERange(); lean_mark_persistent(l_Lean_Lsp_instLERange); l_Lean_Lsp_instInhabitedLocation___closed__1 = _init_l_Lean_Lsp_instInhabitedLocation___closed__1(); lean_mark_persistent(l_Lean_Lsp_instInhabitedLocation___closed__1); l_Lean_Lsp_instInhabitedLocation = _init_l_Lean_Lsp_instInhabitedLocation(); lean_mark_persistent(l_Lean_Lsp_instInhabitedLocation); l_Lean_Lsp_instBEqLocation___closed__1 = _init_l_Lean_Lsp_instBEqLocation___closed__1(); lean_mark_persistent(l_Lean_Lsp_instBEqLocation___closed__1); l_Lean_Lsp_instBEqLocation = _init_l_Lean_Lsp_instBEqLocation(); lean_mark_persistent(l_Lean_Lsp_instBEqLocation); l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_toJsonLocation____x40_Lean_Data_Lsp_Basic___hyg_1263____closed__1 = _init_l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_toJsonLocation____x40_Lean_Data_Lsp_Basic___hyg_1263____closed__1(); lean_mark_persistent(l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_toJsonLocation____x40_Lean_Data_Lsp_Basic___hyg_1263____closed__1); l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_toJsonLocation____x40_Lean_Data_Lsp_Basic___hyg_1263____closed__2 = _init_l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_toJsonLocation____x40_Lean_Data_Lsp_Basic___hyg_1263____closed__2(); lean_mark_persistent(l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_toJsonLocation____x40_Lean_Data_Lsp_Basic___hyg_1263____closed__2); l_Lean_Lsp_instToJsonLocation___closed__1 = _init_l_Lean_Lsp_instToJsonLocation___closed__1(); lean_mark_persistent(l_Lean_Lsp_instToJsonLocation___closed__1); l_Lean_Lsp_instToJsonLocation = _init_l_Lean_Lsp_instToJsonLocation(); lean_mark_persistent(l_Lean_Lsp_instToJsonLocation); l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonLocation____x40_Lean_Data_Lsp_Basic___hyg_1314____closed__1 = _init_l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonLocation____x40_Lean_Data_Lsp_Basic___hyg_1314____closed__1(); lean_mark_persistent(l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonLocation____x40_Lean_Data_Lsp_Basic___hyg_1314____closed__1); l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonLocation____x40_Lean_Data_Lsp_Basic___hyg_1314____closed__2 = _init_l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonLocation____x40_Lean_Data_Lsp_Basic___hyg_1314____closed__2(); lean_mark_persistent(l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonLocation____x40_Lean_Data_Lsp_Basic___hyg_1314____closed__2); l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonLocation____x40_Lean_Data_Lsp_Basic___hyg_1314____closed__3 = _init_l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonLocation____x40_Lean_Data_Lsp_Basic___hyg_1314____closed__3(); lean_mark_persistent(l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonLocation____x40_Lean_Data_Lsp_Basic___hyg_1314____closed__3); l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonLocation____x40_Lean_Data_Lsp_Basic___hyg_1314____closed__4 = _init_l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonLocation____x40_Lean_Data_Lsp_Basic___hyg_1314____closed__4(); lean_mark_persistent(l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonLocation____x40_Lean_Data_Lsp_Basic___hyg_1314____closed__4); l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonLocation____x40_Lean_Data_Lsp_Basic___hyg_1314____closed__5 = _init_l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonLocation____x40_Lean_Data_Lsp_Basic___hyg_1314____closed__5(); lean_mark_persistent(l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonLocation____x40_Lean_Data_Lsp_Basic___hyg_1314____closed__5); l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonLocation____x40_Lean_Data_Lsp_Basic___hyg_1314____closed__6 = _init_l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonLocation____x40_Lean_Data_Lsp_Basic___hyg_1314____closed__6(); lean_mark_persistent(l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonLocation____x40_Lean_Data_Lsp_Basic___hyg_1314____closed__6); l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonLocation____x40_Lean_Data_Lsp_Basic___hyg_1314____closed__7 = _init_l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonLocation____x40_Lean_Data_Lsp_Basic___hyg_1314____closed__7(); lean_mark_persistent(l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonLocation____x40_Lean_Data_Lsp_Basic___hyg_1314____closed__7); l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonLocation____x40_Lean_Data_Lsp_Basic___hyg_1314____closed__8 = _init_l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonLocation____x40_Lean_Data_Lsp_Basic___hyg_1314____closed__8(); lean_mark_persistent(l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonLocation____x40_Lean_Data_Lsp_Basic___hyg_1314____closed__8); l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonLocation____x40_Lean_Data_Lsp_Basic___hyg_1314____closed__9 = _init_l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonLocation____x40_Lean_Data_Lsp_Basic___hyg_1314____closed__9(); lean_mark_persistent(l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonLocation____x40_Lean_Data_Lsp_Basic___hyg_1314____closed__9); l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonLocation____x40_Lean_Data_Lsp_Basic___hyg_1314____closed__10 = _init_l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonLocation____x40_Lean_Data_Lsp_Basic___hyg_1314____closed__10(); lean_mark_persistent(l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonLocation____x40_Lean_Data_Lsp_Basic___hyg_1314____closed__10); l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonLocation____x40_Lean_Data_Lsp_Basic___hyg_1314____closed__11 = _init_l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonLocation____x40_Lean_Data_Lsp_Basic___hyg_1314____closed__11(); lean_mark_persistent(l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonLocation____x40_Lean_Data_Lsp_Basic___hyg_1314____closed__11); l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonLocation____x40_Lean_Data_Lsp_Basic___hyg_1314____closed__12 = _init_l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonLocation____x40_Lean_Data_Lsp_Basic___hyg_1314____closed__12(); lean_mark_persistent(l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonLocation____x40_Lean_Data_Lsp_Basic___hyg_1314____closed__12); l_Lean_Lsp_instFromJsonLocation___closed__1 = _init_l_Lean_Lsp_instFromJsonLocation___closed__1(); lean_mark_persistent(l_Lean_Lsp_instFromJsonLocation___closed__1); l_Lean_Lsp_instFromJsonLocation = _init_l_Lean_Lsp_instFromJsonLocation(); lean_mark_persistent(l_Lean_Lsp_instFromJsonLocation); l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_toJsonLocationLink____x40_Lean_Data_Lsp_Basic___hyg_1456____closed__1 = _init_l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_toJsonLocationLink____x40_Lean_Data_Lsp_Basic___hyg_1456____closed__1(); lean_mark_persistent(l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_toJsonLocationLink____x40_Lean_Data_Lsp_Basic___hyg_1456____closed__1); l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_toJsonLocationLink____x40_Lean_Data_Lsp_Basic___hyg_1456____closed__2 = _init_l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_toJsonLocationLink____x40_Lean_Data_Lsp_Basic___hyg_1456____closed__2(); lean_mark_persistent(l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_toJsonLocationLink____x40_Lean_Data_Lsp_Basic___hyg_1456____closed__2); l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_toJsonLocationLink____x40_Lean_Data_Lsp_Basic___hyg_1456____closed__3 = _init_l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_toJsonLocationLink____x40_Lean_Data_Lsp_Basic___hyg_1456____closed__3(); lean_mark_persistent(l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_toJsonLocationLink____x40_Lean_Data_Lsp_Basic___hyg_1456____closed__3); l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_toJsonLocationLink____x40_Lean_Data_Lsp_Basic___hyg_1456____closed__4 = _init_l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_toJsonLocationLink____x40_Lean_Data_Lsp_Basic___hyg_1456____closed__4(); lean_mark_persistent(l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_toJsonLocationLink____x40_Lean_Data_Lsp_Basic___hyg_1456____closed__4); l_Lean_Lsp_instToJsonLocationLink___closed__1 = _init_l_Lean_Lsp_instToJsonLocationLink___closed__1(); lean_mark_persistent(l_Lean_Lsp_instToJsonLocationLink___closed__1); l_Lean_Lsp_instToJsonLocationLink = _init_l_Lean_Lsp_instToJsonLocationLink(); lean_mark_persistent(l_Lean_Lsp_instToJsonLocationLink); l_Lean_Json_getObjValAs_x3f___at___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonLocationLink____x40_Lean_Data_Lsp_Basic___hyg_1529____spec__1___closed__1 = _init_l_Lean_Json_getObjValAs_x3f___at___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonLocationLink____x40_Lean_Data_Lsp_Basic___hyg_1529____spec__1___closed__1(); lean_mark_persistent(l_Lean_Json_getObjValAs_x3f___at___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonLocationLink____x40_Lean_Data_Lsp_Basic___hyg_1529____spec__1___closed__1); l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonLocationLink____x40_Lean_Data_Lsp_Basic___hyg_1529____closed__1 = _init_l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonLocationLink____x40_Lean_Data_Lsp_Basic___hyg_1529____closed__1(); lean_mark_persistent(l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonLocationLink____x40_Lean_Data_Lsp_Basic___hyg_1529____closed__1); l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonLocationLink____x40_Lean_Data_Lsp_Basic___hyg_1529____closed__2 = _init_l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonLocationLink____x40_Lean_Data_Lsp_Basic___hyg_1529____closed__2(); lean_mark_persistent(l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonLocationLink____x40_Lean_Data_Lsp_Basic___hyg_1529____closed__2); l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonLocationLink____x40_Lean_Data_Lsp_Basic___hyg_1529____closed__3 = _init_l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonLocationLink____x40_Lean_Data_Lsp_Basic___hyg_1529____closed__3(); lean_mark_persistent(l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonLocationLink____x40_Lean_Data_Lsp_Basic___hyg_1529____closed__3); l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonLocationLink____x40_Lean_Data_Lsp_Basic___hyg_1529____closed__4 = _init_l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonLocationLink____x40_Lean_Data_Lsp_Basic___hyg_1529____closed__4(); lean_mark_persistent(l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonLocationLink____x40_Lean_Data_Lsp_Basic___hyg_1529____closed__4); l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonLocationLink____x40_Lean_Data_Lsp_Basic___hyg_1529____closed__5 = _init_l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonLocationLink____x40_Lean_Data_Lsp_Basic___hyg_1529____closed__5(); lean_mark_persistent(l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonLocationLink____x40_Lean_Data_Lsp_Basic___hyg_1529____closed__5); l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonLocationLink____x40_Lean_Data_Lsp_Basic___hyg_1529____closed__6 = _init_l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonLocationLink____x40_Lean_Data_Lsp_Basic___hyg_1529____closed__6(); lean_mark_persistent(l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonLocationLink____x40_Lean_Data_Lsp_Basic___hyg_1529____closed__6); l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonLocationLink____x40_Lean_Data_Lsp_Basic___hyg_1529____closed__7 = _init_l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonLocationLink____x40_Lean_Data_Lsp_Basic___hyg_1529____closed__7(); lean_mark_persistent(l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonLocationLink____x40_Lean_Data_Lsp_Basic___hyg_1529____closed__7); l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonLocationLink____x40_Lean_Data_Lsp_Basic___hyg_1529____closed__8 = _init_l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonLocationLink____x40_Lean_Data_Lsp_Basic___hyg_1529____closed__8(); lean_mark_persistent(l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonLocationLink____x40_Lean_Data_Lsp_Basic___hyg_1529____closed__8); l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonLocationLink____x40_Lean_Data_Lsp_Basic___hyg_1529____closed__9 = _init_l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonLocationLink____x40_Lean_Data_Lsp_Basic___hyg_1529____closed__9(); lean_mark_persistent(l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonLocationLink____x40_Lean_Data_Lsp_Basic___hyg_1529____closed__9); l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonLocationLink____x40_Lean_Data_Lsp_Basic___hyg_1529____closed__10 = _init_l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonLocationLink____x40_Lean_Data_Lsp_Basic___hyg_1529____closed__10(); lean_mark_persistent(l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonLocationLink____x40_Lean_Data_Lsp_Basic___hyg_1529____closed__10); l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonLocationLink____x40_Lean_Data_Lsp_Basic___hyg_1529____closed__11 = _init_l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonLocationLink____x40_Lean_Data_Lsp_Basic___hyg_1529____closed__11(); lean_mark_persistent(l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonLocationLink____x40_Lean_Data_Lsp_Basic___hyg_1529____closed__11); l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonLocationLink____x40_Lean_Data_Lsp_Basic___hyg_1529____closed__12 = _init_l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonLocationLink____x40_Lean_Data_Lsp_Basic___hyg_1529____closed__12(); lean_mark_persistent(l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonLocationLink____x40_Lean_Data_Lsp_Basic___hyg_1529____closed__12); l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonLocationLink____x40_Lean_Data_Lsp_Basic___hyg_1529____closed__13 = _init_l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonLocationLink____x40_Lean_Data_Lsp_Basic___hyg_1529____closed__13(); lean_mark_persistent(l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonLocationLink____x40_Lean_Data_Lsp_Basic___hyg_1529____closed__13); l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonLocationLink____x40_Lean_Data_Lsp_Basic___hyg_1529____closed__14 = _init_l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonLocationLink____x40_Lean_Data_Lsp_Basic___hyg_1529____closed__14(); lean_mark_persistent(l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonLocationLink____x40_Lean_Data_Lsp_Basic___hyg_1529____closed__14); l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonLocationLink____x40_Lean_Data_Lsp_Basic___hyg_1529____closed__15 = _init_l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonLocationLink____x40_Lean_Data_Lsp_Basic___hyg_1529____closed__15(); lean_mark_persistent(l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonLocationLink____x40_Lean_Data_Lsp_Basic___hyg_1529____closed__15); l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonLocationLink____x40_Lean_Data_Lsp_Basic___hyg_1529____closed__16 = _init_l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonLocationLink____x40_Lean_Data_Lsp_Basic___hyg_1529____closed__16(); lean_mark_persistent(l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonLocationLink____x40_Lean_Data_Lsp_Basic___hyg_1529____closed__16); l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonLocationLink____x40_Lean_Data_Lsp_Basic___hyg_1529____closed__17 = _init_l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonLocationLink____x40_Lean_Data_Lsp_Basic___hyg_1529____closed__17(); lean_mark_persistent(l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonLocationLink____x40_Lean_Data_Lsp_Basic___hyg_1529____closed__17); l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonLocationLink____x40_Lean_Data_Lsp_Basic___hyg_1529____closed__18 = _init_l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonLocationLink____x40_Lean_Data_Lsp_Basic___hyg_1529____closed__18(); lean_mark_persistent(l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonLocationLink____x40_Lean_Data_Lsp_Basic___hyg_1529____closed__18); l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonLocationLink____x40_Lean_Data_Lsp_Basic___hyg_1529____closed__19 = _init_l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonLocationLink____x40_Lean_Data_Lsp_Basic___hyg_1529____closed__19(); lean_mark_persistent(l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonLocationLink____x40_Lean_Data_Lsp_Basic___hyg_1529____closed__19); l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonLocationLink____x40_Lean_Data_Lsp_Basic___hyg_1529____closed__20 = _init_l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonLocationLink____x40_Lean_Data_Lsp_Basic___hyg_1529____closed__20(); lean_mark_persistent(l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonLocationLink____x40_Lean_Data_Lsp_Basic___hyg_1529____closed__20); l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonLocationLink____x40_Lean_Data_Lsp_Basic___hyg_1529____closed__21 = _init_l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonLocationLink____x40_Lean_Data_Lsp_Basic___hyg_1529____closed__21(); lean_mark_persistent(l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonLocationLink____x40_Lean_Data_Lsp_Basic___hyg_1529____closed__21); l_Lean_Lsp_instFromJsonLocationLink___closed__1 = _init_l_Lean_Lsp_instFromJsonLocationLink___closed__1(); lean_mark_persistent(l_Lean_Lsp_instFromJsonLocationLink___closed__1); l_Lean_Lsp_instFromJsonLocationLink = _init_l_Lean_Lsp_instFromJsonLocationLink(); lean_mark_persistent(l_Lean_Lsp_instFromJsonLocationLink); l_Lean_Lsp_Command_arguments_x3f___default = _init_l_Lean_Lsp_Command_arguments_x3f___default(); lean_mark_persistent(l_Lean_Lsp_Command_arguments_x3f___default); l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_toJsonCommand____x40_Lean_Data_Lsp_Basic___hyg_1757____closed__1 = _init_l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_toJsonCommand____x40_Lean_Data_Lsp_Basic___hyg_1757____closed__1(); lean_mark_persistent(l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_toJsonCommand____x40_Lean_Data_Lsp_Basic___hyg_1757____closed__1); l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_toJsonCommand____x40_Lean_Data_Lsp_Basic___hyg_1757____closed__2 = _init_l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_toJsonCommand____x40_Lean_Data_Lsp_Basic___hyg_1757____closed__2(); lean_mark_persistent(l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_toJsonCommand____x40_Lean_Data_Lsp_Basic___hyg_1757____closed__2); l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_toJsonCommand____x40_Lean_Data_Lsp_Basic___hyg_1757____closed__3 = _init_l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_toJsonCommand____x40_Lean_Data_Lsp_Basic___hyg_1757____closed__3(); lean_mark_persistent(l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_toJsonCommand____x40_Lean_Data_Lsp_Basic___hyg_1757____closed__3); l_Lean_Lsp_instToJsonCommand___closed__1 = _init_l_Lean_Lsp_instToJsonCommand___closed__1(); lean_mark_persistent(l_Lean_Lsp_instToJsonCommand___closed__1); l_Lean_Lsp_instToJsonCommand = _init_l_Lean_Lsp_instToJsonCommand(); lean_mark_persistent(l_Lean_Lsp_instToJsonCommand); l_Lean_Json_getObjValAs_x3f___at___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonCommand____x40_Lean_Data_Lsp_Basic___hyg_1837____spec__1___closed__1 = _init_l_Lean_Json_getObjValAs_x3f___at___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonCommand____x40_Lean_Data_Lsp_Basic___hyg_1837____spec__1___closed__1(); lean_mark_persistent(l_Lean_Json_getObjValAs_x3f___at___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonCommand____x40_Lean_Data_Lsp_Basic___hyg_1837____spec__1___closed__1); l_Lean_Json_getObjValAs_x3f___at___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonCommand____x40_Lean_Data_Lsp_Basic___hyg_1837____spec__1___closed__2 = _init_l_Lean_Json_getObjValAs_x3f___at___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonCommand____x40_Lean_Data_Lsp_Basic___hyg_1837____spec__1___closed__2(); lean_mark_persistent(l_Lean_Json_getObjValAs_x3f___at___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonCommand____x40_Lean_Data_Lsp_Basic___hyg_1837____spec__1___closed__2); l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonCommand____x40_Lean_Data_Lsp_Basic___hyg_1837____closed__1 = _init_l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonCommand____x40_Lean_Data_Lsp_Basic___hyg_1837____closed__1(); lean_mark_persistent(l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonCommand____x40_Lean_Data_Lsp_Basic___hyg_1837____closed__1); l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonCommand____x40_Lean_Data_Lsp_Basic___hyg_1837____closed__2 = _init_l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonCommand____x40_Lean_Data_Lsp_Basic___hyg_1837____closed__2(); lean_mark_persistent(l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonCommand____x40_Lean_Data_Lsp_Basic___hyg_1837____closed__2); l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonCommand____x40_Lean_Data_Lsp_Basic___hyg_1837____closed__3 = _init_l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonCommand____x40_Lean_Data_Lsp_Basic___hyg_1837____closed__3(); lean_mark_persistent(l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonCommand____x40_Lean_Data_Lsp_Basic___hyg_1837____closed__3); l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonCommand____x40_Lean_Data_Lsp_Basic___hyg_1837____closed__4 = _init_l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonCommand____x40_Lean_Data_Lsp_Basic___hyg_1837____closed__4(); lean_mark_persistent(l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonCommand____x40_Lean_Data_Lsp_Basic___hyg_1837____closed__4); l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonCommand____x40_Lean_Data_Lsp_Basic___hyg_1837____closed__5 = _init_l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonCommand____x40_Lean_Data_Lsp_Basic___hyg_1837____closed__5(); lean_mark_persistent(l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonCommand____x40_Lean_Data_Lsp_Basic___hyg_1837____closed__5); l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonCommand____x40_Lean_Data_Lsp_Basic___hyg_1837____closed__6 = _init_l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonCommand____x40_Lean_Data_Lsp_Basic___hyg_1837____closed__6(); lean_mark_persistent(l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonCommand____x40_Lean_Data_Lsp_Basic___hyg_1837____closed__6); l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonCommand____x40_Lean_Data_Lsp_Basic___hyg_1837____closed__7 = _init_l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonCommand____x40_Lean_Data_Lsp_Basic___hyg_1837____closed__7(); lean_mark_persistent(l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonCommand____x40_Lean_Data_Lsp_Basic___hyg_1837____closed__7); l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonCommand____x40_Lean_Data_Lsp_Basic___hyg_1837____closed__8 = _init_l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonCommand____x40_Lean_Data_Lsp_Basic___hyg_1837____closed__8(); lean_mark_persistent(l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonCommand____x40_Lean_Data_Lsp_Basic___hyg_1837____closed__8); l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonCommand____x40_Lean_Data_Lsp_Basic___hyg_1837____closed__9 = _init_l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonCommand____x40_Lean_Data_Lsp_Basic___hyg_1837____closed__9(); lean_mark_persistent(l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonCommand____x40_Lean_Data_Lsp_Basic___hyg_1837____closed__9); l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonCommand____x40_Lean_Data_Lsp_Basic___hyg_1837____closed__10 = _init_l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonCommand____x40_Lean_Data_Lsp_Basic___hyg_1837____closed__10(); lean_mark_persistent(l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonCommand____x40_Lean_Data_Lsp_Basic___hyg_1837____closed__10); l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonCommand____x40_Lean_Data_Lsp_Basic___hyg_1837____closed__11 = _init_l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonCommand____x40_Lean_Data_Lsp_Basic___hyg_1837____closed__11(); lean_mark_persistent(l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonCommand____x40_Lean_Data_Lsp_Basic___hyg_1837____closed__11); l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonCommand____x40_Lean_Data_Lsp_Basic___hyg_1837____closed__12 = _init_l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonCommand____x40_Lean_Data_Lsp_Basic___hyg_1837____closed__12(); lean_mark_persistent(l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonCommand____x40_Lean_Data_Lsp_Basic___hyg_1837____closed__12); l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonCommand____x40_Lean_Data_Lsp_Basic___hyg_1837____closed__13 = _init_l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonCommand____x40_Lean_Data_Lsp_Basic___hyg_1837____closed__13(); lean_mark_persistent(l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonCommand____x40_Lean_Data_Lsp_Basic___hyg_1837____closed__13); l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonCommand____x40_Lean_Data_Lsp_Basic___hyg_1837____closed__14 = _init_l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonCommand____x40_Lean_Data_Lsp_Basic___hyg_1837____closed__14(); lean_mark_persistent(l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonCommand____x40_Lean_Data_Lsp_Basic___hyg_1837____closed__14); l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonCommand____x40_Lean_Data_Lsp_Basic___hyg_1837____closed__15 = _init_l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonCommand____x40_Lean_Data_Lsp_Basic___hyg_1837____closed__15(); lean_mark_persistent(l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonCommand____x40_Lean_Data_Lsp_Basic___hyg_1837____closed__15); l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonCommand____x40_Lean_Data_Lsp_Basic___hyg_1837____closed__16 = _init_l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonCommand____x40_Lean_Data_Lsp_Basic___hyg_1837____closed__16(); lean_mark_persistent(l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonCommand____x40_Lean_Data_Lsp_Basic___hyg_1837____closed__16); l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonCommand____x40_Lean_Data_Lsp_Basic___hyg_1837____closed__17 = _init_l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonCommand____x40_Lean_Data_Lsp_Basic___hyg_1837____closed__17(); lean_mark_persistent(l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonCommand____x40_Lean_Data_Lsp_Basic___hyg_1837____closed__17); l_Lean_Lsp_instFromJsonCommand___closed__1 = _init_l_Lean_Lsp_instFromJsonCommand___closed__1(); lean_mark_persistent(l_Lean_Lsp_instFromJsonCommand___closed__1); l_Lean_Lsp_instFromJsonCommand = _init_l_Lean_Lsp_instFromJsonCommand(); lean_mark_persistent(l_Lean_Lsp_instFromJsonCommand); l_Lean_Lsp_TextEdit_annotationId_x3f___default = _init_l_Lean_Lsp_TextEdit_annotationId_x3f___default(); lean_mark_persistent(l_Lean_Lsp_TextEdit_annotationId_x3f___default); l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_toJsonTextEdit____x40_Lean_Data_Lsp_Basic___hyg_2023____closed__1 = _init_l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_toJsonTextEdit____x40_Lean_Data_Lsp_Basic___hyg_2023____closed__1(); lean_mark_persistent(l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_toJsonTextEdit____x40_Lean_Data_Lsp_Basic___hyg_2023____closed__1); l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_toJsonTextEdit____x40_Lean_Data_Lsp_Basic___hyg_2023____closed__2 = _init_l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_toJsonTextEdit____x40_Lean_Data_Lsp_Basic___hyg_2023____closed__2(); lean_mark_persistent(l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_toJsonTextEdit____x40_Lean_Data_Lsp_Basic___hyg_2023____closed__2); l_Lean_Lsp_instToJsonTextEdit___closed__1 = _init_l_Lean_Lsp_instToJsonTextEdit___closed__1(); lean_mark_persistent(l_Lean_Lsp_instToJsonTextEdit___closed__1); l_Lean_Lsp_instToJsonTextEdit = _init_l_Lean_Lsp_instToJsonTextEdit(); lean_mark_persistent(l_Lean_Lsp_instToJsonTextEdit); l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonTextEdit____x40_Lean_Data_Lsp_Basic___hyg_2082____closed__1 = _init_l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonTextEdit____x40_Lean_Data_Lsp_Basic___hyg_2082____closed__1(); lean_mark_persistent(l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonTextEdit____x40_Lean_Data_Lsp_Basic___hyg_2082____closed__1); l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonTextEdit____x40_Lean_Data_Lsp_Basic___hyg_2082____closed__2 = _init_l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonTextEdit____x40_Lean_Data_Lsp_Basic___hyg_2082____closed__2(); lean_mark_persistent(l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonTextEdit____x40_Lean_Data_Lsp_Basic___hyg_2082____closed__2); l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonTextEdit____x40_Lean_Data_Lsp_Basic___hyg_2082____closed__3 = _init_l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonTextEdit____x40_Lean_Data_Lsp_Basic___hyg_2082____closed__3(); lean_mark_persistent(l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonTextEdit____x40_Lean_Data_Lsp_Basic___hyg_2082____closed__3); l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonTextEdit____x40_Lean_Data_Lsp_Basic___hyg_2082____closed__4 = _init_l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonTextEdit____x40_Lean_Data_Lsp_Basic___hyg_2082____closed__4(); lean_mark_persistent(l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonTextEdit____x40_Lean_Data_Lsp_Basic___hyg_2082____closed__4); l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonTextEdit____x40_Lean_Data_Lsp_Basic___hyg_2082____closed__5 = _init_l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonTextEdit____x40_Lean_Data_Lsp_Basic___hyg_2082____closed__5(); lean_mark_persistent(l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonTextEdit____x40_Lean_Data_Lsp_Basic___hyg_2082____closed__5); l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonTextEdit____x40_Lean_Data_Lsp_Basic___hyg_2082____closed__6 = _init_l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonTextEdit____x40_Lean_Data_Lsp_Basic___hyg_2082____closed__6(); lean_mark_persistent(l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonTextEdit____x40_Lean_Data_Lsp_Basic___hyg_2082____closed__6); l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonTextEdit____x40_Lean_Data_Lsp_Basic___hyg_2082____closed__7 = _init_l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonTextEdit____x40_Lean_Data_Lsp_Basic___hyg_2082____closed__7(); lean_mark_persistent(l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonTextEdit____x40_Lean_Data_Lsp_Basic___hyg_2082____closed__7); l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonTextEdit____x40_Lean_Data_Lsp_Basic___hyg_2082____closed__8 = _init_l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonTextEdit____x40_Lean_Data_Lsp_Basic___hyg_2082____closed__8(); lean_mark_persistent(l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonTextEdit____x40_Lean_Data_Lsp_Basic___hyg_2082____closed__8); l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonTextEdit____x40_Lean_Data_Lsp_Basic___hyg_2082____closed__9 = _init_l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonTextEdit____x40_Lean_Data_Lsp_Basic___hyg_2082____closed__9(); lean_mark_persistent(l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonTextEdit____x40_Lean_Data_Lsp_Basic___hyg_2082____closed__9); l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonTextEdit____x40_Lean_Data_Lsp_Basic___hyg_2082____closed__10 = _init_l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonTextEdit____x40_Lean_Data_Lsp_Basic___hyg_2082____closed__10(); lean_mark_persistent(l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonTextEdit____x40_Lean_Data_Lsp_Basic___hyg_2082____closed__10); l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonTextEdit____x40_Lean_Data_Lsp_Basic___hyg_2082____closed__11 = _init_l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonTextEdit____x40_Lean_Data_Lsp_Basic___hyg_2082____closed__11(); lean_mark_persistent(l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonTextEdit____x40_Lean_Data_Lsp_Basic___hyg_2082____closed__11); l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonTextEdit____x40_Lean_Data_Lsp_Basic___hyg_2082____closed__12 = _init_l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonTextEdit____x40_Lean_Data_Lsp_Basic___hyg_2082____closed__12(); lean_mark_persistent(l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonTextEdit____x40_Lean_Data_Lsp_Basic___hyg_2082____closed__12); l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonTextEdit____x40_Lean_Data_Lsp_Basic___hyg_2082____closed__13 = _init_l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonTextEdit____x40_Lean_Data_Lsp_Basic___hyg_2082____closed__13(); lean_mark_persistent(l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonTextEdit____x40_Lean_Data_Lsp_Basic___hyg_2082____closed__13); l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonTextEdit____x40_Lean_Data_Lsp_Basic___hyg_2082____closed__14 = _init_l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonTextEdit____x40_Lean_Data_Lsp_Basic___hyg_2082____closed__14(); lean_mark_persistent(l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonTextEdit____x40_Lean_Data_Lsp_Basic___hyg_2082____closed__14); l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonTextEdit____x40_Lean_Data_Lsp_Basic___hyg_2082____closed__15 = _init_l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonTextEdit____x40_Lean_Data_Lsp_Basic___hyg_2082____closed__15(); lean_mark_persistent(l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonTextEdit____x40_Lean_Data_Lsp_Basic___hyg_2082____closed__15); l_Lean_Lsp_instFromJsonTextEdit___closed__1 = _init_l_Lean_Lsp_instFromJsonTextEdit___closed__1(); lean_mark_persistent(l_Lean_Lsp_instFromJsonTextEdit___closed__1); l_Lean_Lsp_instFromJsonTextEdit = _init_l_Lean_Lsp_instFromJsonTextEdit(); lean_mark_persistent(l_Lean_Lsp_instFromJsonTextEdit); l_Lean_Lsp_instEmptyCollectionTextEditBatch___closed__1 = _init_l_Lean_Lsp_instEmptyCollectionTextEditBatch___closed__1(); lean_mark_persistent(l_Lean_Lsp_instEmptyCollectionTextEditBatch___closed__1); l_Lean_Lsp_instEmptyCollectionTextEditBatch = _init_l_Lean_Lsp_instEmptyCollectionTextEditBatch(); lean_mark_persistent(l_Lean_Lsp_instEmptyCollectionTextEditBatch); l_Lean_Lsp_instAppendTextEditBatch___closed__1 = _init_l_Lean_Lsp_instAppendTextEditBatch___closed__1(); lean_mark_persistent(l_Lean_Lsp_instAppendTextEditBatch___closed__1); l_Lean_Lsp_instAppendTextEditBatch = _init_l_Lean_Lsp_instAppendTextEditBatch(); lean_mark_persistent(l_Lean_Lsp_instAppendTextEditBatch); l_Lean_Lsp_instCoeTextEditTextEditBatch___closed__1 = _init_l_Lean_Lsp_instCoeTextEditTextEditBatch___closed__1(); lean_mark_persistent(l_Lean_Lsp_instCoeTextEditTextEditBatch___closed__1); l_Lean_Lsp_instToJsonTextDocumentIdentifier___closed__1 = _init_l_Lean_Lsp_instToJsonTextDocumentIdentifier___closed__1(); lean_mark_persistent(l_Lean_Lsp_instToJsonTextDocumentIdentifier___closed__1); l_Lean_Lsp_instToJsonTextDocumentIdentifier = _init_l_Lean_Lsp_instToJsonTextDocumentIdentifier(); lean_mark_persistent(l_Lean_Lsp_instToJsonTextDocumentIdentifier); l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonTextDocumentIdentifier____x40_Lean_Data_Lsp_Basic___hyg_2414____closed__1 = _init_l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonTextDocumentIdentifier____x40_Lean_Data_Lsp_Basic___hyg_2414____closed__1(); lean_mark_persistent(l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonTextDocumentIdentifier____x40_Lean_Data_Lsp_Basic___hyg_2414____closed__1); l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonTextDocumentIdentifier____x40_Lean_Data_Lsp_Basic___hyg_2414____closed__2 = _init_l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonTextDocumentIdentifier____x40_Lean_Data_Lsp_Basic___hyg_2414____closed__2(); lean_mark_persistent(l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonTextDocumentIdentifier____x40_Lean_Data_Lsp_Basic___hyg_2414____closed__2); l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonTextDocumentIdentifier____x40_Lean_Data_Lsp_Basic___hyg_2414____closed__3 = _init_l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonTextDocumentIdentifier____x40_Lean_Data_Lsp_Basic___hyg_2414____closed__3(); lean_mark_persistent(l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonTextDocumentIdentifier____x40_Lean_Data_Lsp_Basic___hyg_2414____closed__3); l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonTextDocumentIdentifier____x40_Lean_Data_Lsp_Basic___hyg_2414____closed__4 = _init_l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonTextDocumentIdentifier____x40_Lean_Data_Lsp_Basic___hyg_2414____closed__4(); lean_mark_persistent(l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonTextDocumentIdentifier____x40_Lean_Data_Lsp_Basic___hyg_2414____closed__4); l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonTextDocumentIdentifier____x40_Lean_Data_Lsp_Basic___hyg_2414____closed__5 = _init_l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonTextDocumentIdentifier____x40_Lean_Data_Lsp_Basic___hyg_2414____closed__5(); lean_mark_persistent(l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonTextDocumentIdentifier____x40_Lean_Data_Lsp_Basic___hyg_2414____closed__5); l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonTextDocumentIdentifier____x40_Lean_Data_Lsp_Basic___hyg_2414____closed__6 = _init_l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonTextDocumentIdentifier____x40_Lean_Data_Lsp_Basic___hyg_2414____closed__6(); lean_mark_persistent(l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonTextDocumentIdentifier____x40_Lean_Data_Lsp_Basic___hyg_2414____closed__6); l_Lean_Lsp_instFromJsonTextDocumentIdentifier___closed__1 = _init_l_Lean_Lsp_instFromJsonTextDocumentIdentifier___closed__1(); lean_mark_persistent(l_Lean_Lsp_instFromJsonTextDocumentIdentifier___closed__1); l_Lean_Lsp_instFromJsonTextDocumentIdentifier = _init_l_Lean_Lsp_instFromJsonTextDocumentIdentifier(); lean_mark_persistent(l_Lean_Lsp_instFromJsonTextDocumentIdentifier); l_Lean_Lsp_VersionedTextDocumentIdentifier_version_x3f___default = _init_l_Lean_Lsp_VersionedTextDocumentIdentifier_version_x3f___default(); lean_mark_persistent(l_Lean_Lsp_VersionedTextDocumentIdentifier_version_x3f___default); l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_toJsonVersionedTextDocumentIdentifier____x40_Lean_Data_Lsp_Basic___hyg_2500____closed__1 = _init_l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_toJsonVersionedTextDocumentIdentifier____x40_Lean_Data_Lsp_Basic___hyg_2500____closed__1(); lean_mark_persistent(l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_toJsonVersionedTextDocumentIdentifier____x40_Lean_Data_Lsp_Basic___hyg_2500____closed__1); l_Lean_Lsp_instToJsonVersionedTextDocumentIdentifier___closed__1 = _init_l_Lean_Lsp_instToJsonVersionedTextDocumentIdentifier___closed__1(); lean_mark_persistent(l_Lean_Lsp_instToJsonVersionedTextDocumentIdentifier___closed__1); l_Lean_Lsp_instToJsonVersionedTextDocumentIdentifier = _init_l_Lean_Lsp_instToJsonVersionedTextDocumentIdentifier(); lean_mark_persistent(l_Lean_Lsp_instToJsonVersionedTextDocumentIdentifier); l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonVersionedTextDocumentIdentifier____x40_Lean_Data_Lsp_Basic___hyg_2545____closed__1 = _init_l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonVersionedTextDocumentIdentifier____x40_Lean_Data_Lsp_Basic___hyg_2545____closed__1(); lean_mark_persistent(l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonVersionedTextDocumentIdentifier____x40_Lean_Data_Lsp_Basic___hyg_2545____closed__1); l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonVersionedTextDocumentIdentifier____x40_Lean_Data_Lsp_Basic___hyg_2545____closed__2 = _init_l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonVersionedTextDocumentIdentifier____x40_Lean_Data_Lsp_Basic___hyg_2545____closed__2(); lean_mark_persistent(l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonVersionedTextDocumentIdentifier____x40_Lean_Data_Lsp_Basic___hyg_2545____closed__2); l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonVersionedTextDocumentIdentifier____x40_Lean_Data_Lsp_Basic___hyg_2545____closed__3 = _init_l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonVersionedTextDocumentIdentifier____x40_Lean_Data_Lsp_Basic___hyg_2545____closed__3(); lean_mark_persistent(l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonVersionedTextDocumentIdentifier____x40_Lean_Data_Lsp_Basic___hyg_2545____closed__3); l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonVersionedTextDocumentIdentifier____x40_Lean_Data_Lsp_Basic___hyg_2545____closed__4 = _init_l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonVersionedTextDocumentIdentifier____x40_Lean_Data_Lsp_Basic___hyg_2545____closed__4(); lean_mark_persistent(l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonVersionedTextDocumentIdentifier____x40_Lean_Data_Lsp_Basic___hyg_2545____closed__4); l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonVersionedTextDocumentIdentifier____x40_Lean_Data_Lsp_Basic___hyg_2545____closed__5 = _init_l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonVersionedTextDocumentIdentifier____x40_Lean_Data_Lsp_Basic___hyg_2545____closed__5(); lean_mark_persistent(l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonVersionedTextDocumentIdentifier____x40_Lean_Data_Lsp_Basic___hyg_2545____closed__5); l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonVersionedTextDocumentIdentifier____x40_Lean_Data_Lsp_Basic___hyg_2545____closed__6 = _init_l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonVersionedTextDocumentIdentifier____x40_Lean_Data_Lsp_Basic___hyg_2545____closed__6(); lean_mark_persistent(l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonVersionedTextDocumentIdentifier____x40_Lean_Data_Lsp_Basic___hyg_2545____closed__6); l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonVersionedTextDocumentIdentifier____x40_Lean_Data_Lsp_Basic___hyg_2545____closed__7 = _init_l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonVersionedTextDocumentIdentifier____x40_Lean_Data_Lsp_Basic___hyg_2545____closed__7(); lean_mark_persistent(l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonVersionedTextDocumentIdentifier____x40_Lean_Data_Lsp_Basic___hyg_2545____closed__7); l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonVersionedTextDocumentIdentifier____x40_Lean_Data_Lsp_Basic___hyg_2545____closed__8 = _init_l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonVersionedTextDocumentIdentifier____x40_Lean_Data_Lsp_Basic___hyg_2545____closed__8(); lean_mark_persistent(l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonVersionedTextDocumentIdentifier____x40_Lean_Data_Lsp_Basic___hyg_2545____closed__8); l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonVersionedTextDocumentIdentifier____x40_Lean_Data_Lsp_Basic___hyg_2545____closed__9 = _init_l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonVersionedTextDocumentIdentifier____x40_Lean_Data_Lsp_Basic___hyg_2545____closed__9(); lean_mark_persistent(l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonVersionedTextDocumentIdentifier____x40_Lean_Data_Lsp_Basic___hyg_2545____closed__9); l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonVersionedTextDocumentIdentifier____x40_Lean_Data_Lsp_Basic___hyg_2545____closed__10 = _init_l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonVersionedTextDocumentIdentifier____x40_Lean_Data_Lsp_Basic___hyg_2545____closed__10(); lean_mark_persistent(l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonVersionedTextDocumentIdentifier____x40_Lean_Data_Lsp_Basic___hyg_2545____closed__10); l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonVersionedTextDocumentIdentifier____x40_Lean_Data_Lsp_Basic___hyg_2545____closed__11 = _init_l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonVersionedTextDocumentIdentifier____x40_Lean_Data_Lsp_Basic___hyg_2545____closed__11(); lean_mark_persistent(l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonVersionedTextDocumentIdentifier____x40_Lean_Data_Lsp_Basic___hyg_2545____closed__11); l_Lean_Lsp_instFromJsonVersionedTextDocumentIdentifier___closed__1 = _init_l_Lean_Lsp_instFromJsonVersionedTextDocumentIdentifier___closed__1(); lean_mark_persistent(l_Lean_Lsp_instFromJsonVersionedTextDocumentIdentifier___closed__1); l_Lean_Lsp_instFromJsonVersionedTextDocumentIdentifier = _init_l_Lean_Lsp_instFromJsonVersionedTextDocumentIdentifier(); lean_mark_persistent(l_Lean_Lsp_instFromJsonVersionedTextDocumentIdentifier); l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_toJsonTextDocumentEdit____x40_Lean_Data_Lsp_Basic___hyg_2677____closed__1 = _init_l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_toJsonTextDocumentEdit____x40_Lean_Data_Lsp_Basic___hyg_2677____closed__1(); lean_mark_persistent(l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_toJsonTextDocumentEdit____x40_Lean_Data_Lsp_Basic___hyg_2677____closed__1); l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_toJsonTextDocumentEdit____x40_Lean_Data_Lsp_Basic___hyg_2677____closed__2 = _init_l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_toJsonTextDocumentEdit____x40_Lean_Data_Lsp_Basic___hyg_2677____closed__2(); lean_mark_persistent(l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_toJsonTextDocumentEdit____x40_Lean_Data_Lsp_Basic___hyg_2677____closed__2); l_Lean_Lsp_instToJsonTextDocumentEdit___closed__1 = _init_l_Lean_Lsp_instToJsonTextDocumentEdit___closed__1(); lean_mark_persistent(l_Lean_Lsp_instToJsonTextDocumentEdit___closed__1); l_Lean_Lsp_instToJsonTextDocumentEdit = _init_l_Lean_Lsp_instToJsonTextDocumentEdit(); lean_mark_persistent(l_Lean_Lsp_instToJsonTextDocumentEdit); l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonTextDocumentEdit____x40_Lean_Data_Lsp_Basic___hyg_2731____closed__1 = _init_l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonTextDocumentEdit____x40_Lean_Data_Lsp_Basic___hyg_2731____closed__1(); lean_mark_persistent(l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonTextDocumentEdit____x40_Lean_Data_Lsp_Basic___hyg_2731____closed__1); l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonTextDocumentEdit____x40_Lean_Data_Lsp_Basic___hyg_2731____closed__2 = _init_l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonTextDocumentEdit____x40_Lean_Data_Lsp_Basic___hyg_2731____closed__2(); lean_mark_persistent(l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonTextDocumentEdit____x40_Lean_Data_Lsp_Basic___hyg_2731____closed__2); l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonTextDocumentEdit____x40_Lean_Data_Lsp_Basic___hyg_2731____closed__3 = _init_l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonTextDocumentEdit____x40_Lean_Data_Lsp_Basic___hyg_2731____closed__3(); lean_mark_persistent(l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonTextDocumentEdit____x40_Lean_Data_Lsp_Basic___hyg_2731____closed__3); l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonTextDocumentEdit____x40_Lean_Data_Lsp_Basic___hyg_2731____closed__4 = _init_l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonTextDocumentEdit____x40_Lean_Data_Lsp_Basic___hyg_2731____closed__4(); lean_mark_persistent(l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonTextDocumentEdit____x40_Lean_Data_Lsp_Basic___hyg_2731____closed__4); l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonTextDocumentEdit____x40_Lean_Data_Lsp_Basic___hyg_2731____closed__5 = _init_l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonTextDocumentEdit____x40_Lean_Data_Lsp_Basic___hyg_2731____closed__5(); lean_mark_persistent(l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonTextDocumentEdit____x40_Lean_Data_Lsp_Basic___hyg_2731____closed__5); l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonTextDocumentEdit____x40_Lean_Data_Lsp_Basic___hyg_2731____closed__6 = _init_l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonTextDocumentEdit____x40_Lean_Data_Lsp_Basic___hyg_2731____closed__6(); lean_mark_persistent(l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonTextDocumentEdit____x40_Lean_Data_Lsp_Basic___hyg_2731____closed__6); l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonTextDocumentEdit____x40_Lean_Data_Lsp_Basic___hyg_2731____closed__7 = _init_l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonTextDocumentEdit____x40_Lean_Data_Lsp_Basic___hyg_2731____closed__7(); lean_mark_persistent(l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonTextDocumentEdit____x40_Lean_Data_Lsp_Basic___hyg_2731____closed__7); l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonTextDocumentEdit____x40_Lean_Data_Lsp_Basic___hyg_2731____closed__8 = _init_l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonTextDocumentEdit____x40_Lean_Data_Lsp_Basic___hyg_2731____closed__8(); lean_mark_persistent(l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonTextDocumentEdit____x40_Lean_Data_Lsp_Basic___hyg_2731____closed__8); l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonTextDocumentEdit____x40_Lean_Data_Lsp_Basic___hyg_2731____closed__9 = _init_l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonTextDocumentEdit____x40_Lean_Data_Lsp_Basic___hyg_2731____closed__9(); lean_mark_persistent(l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonTextDocumentEdit____x40_Lean_Data_Lsp_Basic___hyg_2731____closed__9); l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonTextDocumentEdit____x40_Lean_Data_Lsp_Basic___hyg_2731____closed__10 = _init_l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonTextDocumentEdit____x40_Lean_Data_Lsp_Basic___hyg_2731____closed__10(); lean_mark_persistent(l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonTextDocumentEdit____x40_Lean_Data_Lsp_Basic___hyg_2731____closed__10); l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonTextDocumentEdit____x40_Lean_Data_Lsp_Basic___hyg_2731____closed__11 = _init_l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonTextDocumentEdit____x40_Lean_Data_Lsp_Basic___hyg_2731____closed__11(); lean_mark_persistent(l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonTextDocumentEdit____x40_Lean_Data_Lsp_Basic___hyg_2731____closed__11); l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonTextDocumentEdit____x40_Lean_Data_Lsp_Basic___hyg_2731____closed__12 = _init_l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonTextDocumentEdit____x40_Lean_Data_Lsp_Basic___hyg_2731____closed__12(); lean_mark_persistent(l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonTextDocumentEdit____x40_Lean_Data_Lsp_Basic___hyg_2731____closed__12); l_Lean_Lsp_instFromJsonTextDocumentEdit___closed__1 = _init_l_Lean_Lsp_instFromJsonTextDocumentEdit___closed__1(); lean_mark_persistent(l_Lean_Lsp_instFromJsonTextDocumentEdit___closed__1); l_Lean_Lsp_instFromJsonTextDocumentEdit = _init_l_Lean_Lsp_instFromJsonTextDocumentEdit(); lean_mark_persistent(l_Lean_Lsp_instFromJsonTextDocumentEdit); l_Lean_Lsp_ChangeAnnotation_needsConfirmation___default = _init_l_Lean_Lsp_ChangeAnnotation_needsConfirmation___default(); l_Lean_Lsp_ChangeAnnotation_description_x3f___default = _init_l_Lean_Lsp_ChangeAnnotation_description_x3f___default(); lean_mark_persistent(l_Lean_Lsp_ChangeAnnotation_description_x3f___default); l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_toJsonChangeAnnotation____x40_Lean_Data_Lsp_Basic___hyg_2875____closed__1 = _init_l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_toJsonChangeAnnotation____x40_Lean_Data_Lsp_Basic___hyg_2875____closed__1(); lean_mark_persistent(l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_toJsonChangeAnnotation____x40_Lean_Data_Lsp_Basic___hyg_2875____closed__1); l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_toJsonChangeAnnotation____x40_Lean_Data_Lsp_Basic___hyg_2875____closed__2 = _init_l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_toJsonChangeAnnotation____x40_Lean_Data_Lsp_Basic___hyg_2875____closed__2(); lean_mark_persistent(l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_toJsonChangeAnnotation____x40_Lean_Data_Lsp_Basic___hyg_2875____closed__2); l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_toJsonChangeAnnotation____x40_Lean_Data_Lsp_Basic___hyg_2875____closed__3 = _init_l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_toJsonChangeAnnotation____x40_Lean_Data_Lsp_Basic___hyg_2875____closed__3(); lean_mark_persistent(l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_toJsonChangeAnnotation____x40_Lean_Data_Lsp_Basic___hyg_2875____closed__3); l_Lean_Lsp_instToJsonChangeAnnotation___closed__1 = _init_l_Lean_Lsp_instToJsonChangeAnnotation___closed__1(); lean_mark_persistent(l_Lean_Lsp_instToJsonChangeAnnotation___closed__1); l_Lean_Lsp_instToJsonChangeAnnotation = _init_l_Lean_Lsp_instToJsonChangeAnnotation(); lean_mark_persistent(l_Lean_Lsp_instToJsonChangeAnnotation); l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonChangeAnnotation____x40_Lean_Data_Lsp_Basic___hyg_2933____closed__1 = _init_l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonChangeAnnotation____x40_Lean_Data_Lsp_Basic___hyg_2933____closed__1(); lean_mark_persistent(l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonChangeAnnotation____x40_Lean_Data_Lsp_Basic___hyg_2933____closed__1); l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonChangeAnnotation____x40_Lean_Data_Lsp_Basic___hyg_2933____closed__2 = _init_l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonChangeAnnotation____x40_Lean_Data_Lsp_Basic___hyg_2933____closed__2(); lean_mark_persistent(l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonChangeAnnotation____x40_Lean_Data_Lsp_Basic___hyg_2933____closed__2); l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonChangeAnnotation____x40_Lean_Data_Lsp_Basic___hyg_2933____closed__3 = _init_l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonChangeAnnotation____x40_Lean_Data_Lsp_Basic___hyg_2933____closed__3(); lean_mark_persistent(l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonChangeAnnotation____x40_Lean_Data_Lsp_Basic___hyg_2933____closed__3); l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonChangeAnnotation____x40_Lean_Data_Lsp_Basic___hyg_2933____closed__4 = _init_l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonChangeAnnotation____x40_Lean_Data_Lsp_Basic___hyg_2933____closed__4(); lean_mark_persistent(l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonChangeAnnotation____x40_Lean_Data_Lsp_Basic___hyg_2933____closed__4); l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonChangeAnnotation____x40_Lean_Data_Lsp_Basic___hyg_2933____closed__5 = _init_l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonChangeAnnotation____x40_Lean_Data_Lsp_Basic___hyg_2933____closed__5(); lean_mark_persistent(l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonChangeAnnotation____x40_Lean_Data_Lsp_Basic___hyg_2933____closed__5); l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonChangeAnnotation____x40_Lean_Data_Lsp_Basic___hyg_2933____closed__6 = _init_l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonChangeAnnotation____x40_Lean_Data_Lsp_Basic___hyg_2933____closed__6(); lean_mark_persistent(l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonChangeAnnotation____x40_Lean_Data_Lsp_Basic___hyg_2933____closed__6); l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonChangeAnnotation____x40_Lean_Data_Lsp_Basic___hyg_2933____closed__7 = _init_l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonChangeAnnotation____x40_Lean_Data_Lsp_Basic___hyg_2933____closed__7(); lean_mark_persistent(l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonChangeAnnotation____x40_Lean_Data_Lsp_Basic___hyg_2933____closed__7); l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonChangeAnnotation____x40_Lean_Data_Lsp_Basic___hyg_2933____closed__8 = _init_l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonChangeAnnotation____x40_Lean_Data_Lsp_Basic___hyg_2933____closed__8(); lean_mark_persistent(l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonChangeAnnotation____x40_Lean_Data_Lsp_Basic___hyg_2933____closed__8); l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonChangeAnnotation____x40_Lean_Data_Lsp_Basic___hyg_2933____closed__9 = _init_l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonChangeAnnotation____x40_Lean_Data_Lsp_Basic___hyg_2933____closed__9(); lean_mark_persistent(l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonChangeAnnotation____x40_Lean_Data_Lsp_Basic___hyg_2933____closed__9); l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonChangeAnnotation____x40_Lean_Data_Lsp_Basic___hyg_2933____closed__10 = _init_l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonChangeAnnotation____x40_Lean_Data_Lsp_Basic___hyg_2933____closed__10(); lean_mark_persistent(l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonChangeAnnotation____x40_Lean_Data_Lsp_Basic___hyg_2933____closed__10); l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonChangeAnnotation____x40_Lean_Data_Lsp_Basic___hyg_2933____closed__11 = _init_l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonChangeAnnotation____x40_Lean_Data_Lsp_Basic___hyg_2933____closed__11(); lean_mark_persistent(l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonChangeAnnotation____x40_Lean_Data_Lsp_Basic___hyg_2933____closed__11); l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonChangeAnnotation____x40_Lean_Data_Lsp_Basic___hyg_2933____closed__12 = _init_l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonChangeAnnotation____x40_Lean_Data_Lsp_Basic___hyg_2933____closed__12(); lean_mark_persistent(l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonChangeAnnotation____x40_Lean_Data_Lsp_Basic___hyg_2933____closed__12); l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonChangeAnnotation____x40_Lean_Data_Lsp_Basic___hyg_2933____closed__13 = _init_l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonChangeAnnotation____x40_Lean_Data_Lsp_Basic___hyg_2933____closed__13(); lean_mark_persistent(l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonChangeAnnotation____x40_Lean_Data_Lsp_Basic___hyg_2933____closed__13); l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonChangeAnnotation____x40_Lean_Data_Lsp_Basic___hyg_2933____closed__14 = _init_l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonChangeAnnotation____x40_Lean_Data_Lsp_Basic___hyg_2933____closed__14(); lean_mark_persistent(l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonChangeAnnotation____x40_Lean_Data_Lsp_Basic___hyg_2933____closed__14); l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonChangeAnnotation____x40_Lean_Data_Lsp_Basic___hyg_2933____closed__15 = _init_l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonChangeAnnotation____x40_Lean_Data_Lsp_Basic___hyg_2933____closed__15(); lean_mark_persistent(l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonChangeAnnotation____x40_Lean_Data_Lsp_Basic___hyg_2933____closed__15); l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonChangeAnnotation____x40_Lean_Data_Lsp_Basic___hyg_2933____closed__16 = _init_l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonChangeAnnotation____x40_Lean_Data_Lsp_Basic___hyg_2933____closed__16(); lean_mark_persistent(l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonChangeAnnotation____x40_Lean_Data_Lsp_Basic___hyg_2933____closed__16); l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonChangeAnnotation____x40_Lean_Data_Lsp_Basic___hyg_2933____closed__17 = _init_l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonChangeAnnotation____x40_Lean_Data_Lsp_Basic___hyg_2933____closed__17(); lean_mark_persistent(l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonChangeAnnotation____x40_Lean_Data_Lsp_Basic___hyg_2933____closed__17); l_Lean_Lsp_instFromJsonChangeAnnotation___closed__1 = _init_l_Lean_Lsp_instFromJsonChangeAnnotation___closed__1(); lean_mark_persistent(l_Lean_Lsp_instFromJsonChangeAnnotation___closed__1); l_Lean_Lsp_instFromJsonChangeAnnotation = _init_l_Lean_Lsp_instFromJsonChangeAnnotation(); lean_mark_persistent(l_Lean_Lsp_instFromJsonChangeAnnotation); l_Lean_Lsp_CreateFile_Options_overwrite___default = _init_l_Lean_Lsp_CreateFile_Options_overwrite___default(); l_Lean_Lsp_CreateFile_Options_ignoreIfExists___default = _init_l_Lean_Lsp_CreateFile_Options_ignoreIfExists___default(); l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_CreateFile_toJsonOptions____x40_Lean_Data_Lsp_Basic___hyg_3105____closed__1 = _init_l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_CreateFile_toJsonOptions____x40_Lean_Data_Lsp_Basic___hyg_3105____closed__1(); lean_mark_persistent(l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_CreateFile_toJsonOptions____x40_Lean_Data_Lsp_Basic___hyg_3105____closed__1); l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_CreateFile_toJsonOptions____x40_Lean_Data_Lsp_Basic___hyg_3105____closed__2 = _init_l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_CreateFile_toJsonOptions____x40_Lean_Data_Lsp_Basic___hyg_3105____closed__2(); lean_mark_persistent(l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_CreateFile_toJsonOptions____x40_Lean_Data_Lsp_Basic___hyg_3105____closed__2); l_Lean_Lsp_CreateFile_instToJsonOptions___closed__1 = _init_l_Lean_Lsp_CreateFile_instToJsonOptions___closed__1(); lean_mark_persistent(l_Lean_Lsp_CreateFile_instToJsonOptions___closed__1); l_Lean_Lsp_CreateFile_instToJsonOptions = _init_l_Lean_Lsp_CreateFile_instToJsonOptions(); lean_mark_persistent(l_Lean_Lsp_CreateFile_instToJsonOptions); l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_CreateFile_fromJsonOptions____x40_Lean_Data_Lsp_Basic___hyg_3155____closed__1 = _init_l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_CreateFile_fromJsonOptions____x40_Lean_Data_Lsp_Basic___hyg_3155____closed__1(); lean_mark_persistent(l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_CreateFile_fromJsonOptions____x40_Lean_Data_Lsp_Basic___hyg_3155____closed__1); l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_CreateFile_fromJsonOptions____x40_Lean_Data_Lsp_Basic___hyg_3155____closed__2 = _init_l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_CreateFile_fromJsonOptions____x40_Lean_Data_Lsp_Basic___hyg_3155____closed__2(); lean_mark_persistent(l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_CreateFile_fromJsonOptions____x40_Lean_Data_Lsp_Basic___hyg_3155____closed__2); l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_CreateFile_fromJsonOptions____x40_Lean_Data_Lsp_Basic___hyg_3155____closed__3 = _init_l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_CreateFile_fromJsonOptions____x40_Lean_Data_Lsp_Basic___hyg_3155____closed__3(); lean_mark_persistent(l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_CreateFile_fromJsonOptions____x40_Lean_Data_Lsp_Basic___hyg_3155____closed__3); l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_CreateFile_fromJsonOptions____x40_Lean_Data_Lsp_Basic___hyg_3155____closed__4 = _init_l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_CreateFile_fromJsonOptions____x40_Lean_Data_Lsp_Basic___hyg_3155____closed__4(); lean_mark_persistent(l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_CreateFile_fromJsonOptions____x40_Lean_Data_Lsp_Basic___hyg_3155____closed__4); l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_CreateFile_fromJsonOptions____x40_Lean_Data_Lsp_Basic___hyg_3155____closed__5 = _init_l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_CreateFile_fromJsonOptions____x40_Lean_Data_Lsp_Basic___hyg_3155____closed__5(); lean_mark_persistent(l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_CreateFile_fromJsonOptions____x40_Lean_Data_Lsp_Basic___hyg_3155____closed__5); l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_CreateFile_fromJsonOptions____x40_Lean_Data_Lsp_Basic___hyg_3155____closed__6 = _init_l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_CreateFile_fromJsonOptions____x40_Lean_Data_Lsp_Basic___hyg_3155____closed__6(); lean_mark_persistent(l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_CreateFile_fromJsonOptions____x40_Lean_Data_Lsp_Basic___hyg_3155____closed__6); l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_CreateFile_fromJsonOptions____x40_Lean_Data_Lsp_Basic___hyg_3155____closed__7 = _init_l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_CreateFile_fromJsonOptions____x40_Lean_Data_Lsp_Basic___hyg_3155____closed__7(); lean_mark_persistent(l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_CreateFile_fromJsonOptions____x40_Lean_Data_Lsp_Basic___hyg_3155____closed__7); l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_CreateFile_fromJsonOptions____x40_Lean_Data_Lsp_Basic___hyg_3155____closed__8 = _init_l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_CreateFile_fromJsonOptions____x40_Lean_Data_Lsp_Basic___hyg_3155____closed__8(); lean_mark_persistent(l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_CreateFile_fromJsonOptions____x40_Lean_Data_Lsp_Basic___hyg_3155____closed__8); l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_CreateFile_fromJsonOptions____x40_Lean_Data_Lsp_Basic___hyg_3155____closed__9 = _init_l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_CreateFile_fromJsonOptions____x40_Lean_Data_Lsp_Basic___hyg_3155____closed__9(); lean_mark_persistent(l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_CreateFile_fromJsonOptions____x40_Lean_Data_Lsp_Basic___hyg_3155____closed__9); l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_CreateFile_fromJsonOptions____x40_Lean_Data_Lsp_Basic___hyg_3155____closed__10 = _init_l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_CreateFile_fromJsonOptions____x40_Lean_Data_Lsp_Basic___hyg_3155____closed__10(); lean_mark_persistent(l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_CreateFile_fromJsonOptions____x40_Lean_Data_Lsp_Basic___hyg_3155____closed__10); l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_CreateFile_fromJsonOptions____x40_Lean_Data_Lsp_Basic___hyg_3155____closed__11 = _init_l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_CreateFile_fromJsonOptions____x40_Lean_Data_Lsp_Basic___hyg_3155____closed__11(); lean_mark_persistent(l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_CreateFile_fromJsonOptions____x40_Lean_Data_Lsp_Basic___hyg_3155____closed__11); l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_CreateFile_fromJsonOptions____x40_Lean_Data_Lsp_Basic___hyg_3155____closed__12 = _init_l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_CreateFile_fromJsonOptions____x40_Lean_Data_Lsp_Basic___hyg_3155____closed__12(); lean_mark_persistent(l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_CreateFile_fromJsonOptions____x40_Lean_Data_Lsp_Basic___hyg_3155____closed__12); l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_CreateFile_fromJsonOptions____x40_Lean_Data_Lsp_Basic___hyg_3155____closed__13 = _init_l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_CreateFile_fromJsonOptions____x40_Lean_Data_Lsp_Basic___hyg_3155____closed__13(); lean_mark_persistent(l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_CreateFile_fromJsonOptions____x40_Lean_Data_Lsp_Basic___hyg_3155____closed__13); l_Lean_Lsp_CreateFile_instFromJsonOptions___closed__1 = _init_l_Lean_Lsp_CreateFile_instFromJsonOptions___closed__1(); lean_mark_persistent(l_Lean_Lsp_CreateFile_instFromJsonOptions___closed__1); l_Lean_Lsp_CreateFile_instFromJsonOptions = _init_l_Lean_Lsp_CreateFile_instFromJsonOptions(); lean_mark_persistent(l_Lean_Lsp_CreateFile_instFromJsonOptions); l_Lean_Lsp_DeleteFile_Options_recursive___default = _init_l_Lean_Lsp_DeleteFile_Options_recursive___default(); l_Lean_Lsp_DeleteFile_Options_ignoreIfNotExists___default = _init_l_Lean_Lsp_DeleteFile_Options_ignoreIfNotExists___default(); l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_DeleteFile_toJsonOptions____x40_Lean_Data_Lsp_Basic___hyg_3285____closed__1 = _init_l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_DeleteFile_toJsonOptions____x40_Lean_Data_Lsp_Basic___hyg_3285____closed__1(); lean_mark_persistent(l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_DeleteFile_toJsonOptions____x40_Lean_Data_Lsp_Basic___hyg_3285____closed__1); l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_DeleteFile_toJsonOptions____x40_Lean_Data_Lsp_Basic___hyg_3285____closed__2 = _init_l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_DeleteFile_toJsonOptions____x40_Lean_Data_Lsp_Basic___hyg_3285____closed__2(); lean_mark_persistent(l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_DeleteFile_toJsonOptions____x40_Lean_Data_Lsp_Basic___hyg_3285____closed__2); l_Lean_Lsp_DeleteFile_instToJsonOptions___closed__1 = _init_l_Lean_Lsp_DeleteFile_instToJsonOptions___closed__1(); lean_mark_persistent(l_Lean_Lsp_DeleteFile_instToJsonOptions___closed__1); l_Lean_Lsp_DeleteFile_instToJsonOptions = _init_l_Lean_Lsp_DeleteFile_instToJsonOptions(); lean_mark_persistent(l_Lean_Lsp_DeleteFile_instToJsonOptions); l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_DeleteFile_fromJsonOptions____x40_Lean_Data_Lsp_Basic___hyg_3335____closed__1 = _init_l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_DeleteFile_fromJsonOptions____x40_Lean_Data_Lsp_Basic___hyg_3335____closed__1(); lean_mark_persistent(l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_DeleteFile_fromJsonOptions____x40_Lean_Data_Lsp_Basic___hyg_3335____closed__1); l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_DeleteFile_fromJsonOptions____x40_Lean_Data_Lsp_Basic___hyg_3335____closed__2 = _init_l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_DeleteFile_fromJsonOptions____x40_Lean_Data_Lsp_Basic___hyg_3335____closed__2(); lean_mark_persistent(l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_DeleteFile_fromJsonOptions____x40_Lean_Data_Lsp_Basic___hyg_3335____closed__2); l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_DeleteFile_fromJsonOptions____x40_Lean_Data_Lsp_Basic___hyg_3335____closed__3 = _init_l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_DeleteFile_fromJsonOptions____x40_Lean_Data_Lsp_Basic___hyg_3335____closed__3(); lean_mark_persistent(l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_DeleteFile_fromJsonOptions____x40_Lean_Data_Lsp_Basic___hyg_3335____closed__3); l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_DeleteFile_fromJsonOptions____x40_Lean_Data_Lsp_Basic___hyg_3335____closed__4 = _init_l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_DeleteFile_fromJsonOptions____x40_Lean_Data_Lsp_Basic___hyg_3335____closed__4(); lean_mark_persistent(l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_DeleteFile_fromJsonOptions____x40_Lean_Data_Lsp_Basic___hyg_3335____closed__4); l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_DeleteFile_fromJsonOptions____x40_Lean_Data_Lsp_Basic___hyg_3335____closed__5 = _init_l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_DeleteFile_fromJsonOptions____x40_Lean_Data_Lsp_Basic___hyg_3335____closed__5(); lean_mark_persistent(l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_DeleteFile_fromJsonOptions____x40_Lean_Data_Lsp_Basic___hyg_3335____closed__5); l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_DeleteFile_fromJsonOptions____x40_Lean_Data_Lsp_Basic___hyg_3335____closed__6 = _init_l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_DeleteFile_fromJsonOptions____x40_Lean_Data_Lsp_Basic___hyg_3335____closed__6(); lean_mark_persistent(l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_DeleteFile_fromJsonOptions____x40_Lean_Data_Lsp_Basic___hyg_3335____closed__6); l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_DeleteFile_fromJsonOptions____x40_Lean_Data_Lsp_Basic___hyg_3335____closed__7 = _init_l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_DeleteFile_fromJsonOptions____x40_Lean_Data_Lsp_Basic___hyg_3335____closed__7(); lean_mark_persistent(l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_DeleteFile_fromJsonOptions____x40_Lean_Data_Lsp_Basic___hyg_3335____closed__7); l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_DeleteFile_fromJsonOptions____x40_Lean_Data_Lsp_Basic___hyg_3335____closed__8 = _init_l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_DeleteFile_fromJsonOptions____x40_Lean_Data_Lsp_Basic___hyg_3335____closed__8(); lean_mark_persistent(l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_DeleteFile_fromJsonOptions____x40_Lean_Data_Lsp_Basic___hyg_3335____closed__8); l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_DeleteFile_fromJsonOptions____x40_Lean_Data_Lsp_Basic___hyg_3335____closed__9 = _init_l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_DeleteFile_fromJsonOptions____x40_Lean_Data_Lsp_Basic___hyg_3335____closed__9(); lean_mark_persistent(l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_DeleteFile_fromJsonOptions____x40_Lean_Data_Lsp_Basic___hyg_3335____closed__9); l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_DeleteFile_fromJsonOptions____x40_Lean_Data_Lsp_Basic___hyg_3335____closed__10 = _init_l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_DeleteFile_fromJsonOptions____x40_Lean_Data_Lsp_Basic___hyg_3335____closed__10(); lean_mark_persistent(l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_DeleteFile_fromJsonOptions____x40_Lean_Data_Lsp_Basic___hyg_3335____closed__10); l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_DeleteFile_fromJsonOptions____x40_Lean_Data_Lsp_Basic___hyg_3335____closed__11 = _init_l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_DeleteFile_fromJsonOptions____x40_Lean_Data_Lsp_Basic___hyg_3335____closed__11(); lean_mark_persistent(l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_DeleteFile_fromJsonOptions____x40_Lean_Data_Lsp_Basic___hyg_3335____closed__11); l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_DeleteFile_fromJsonOptions____x40_Lean_Data_Lsp_Basic___hyg_3335____closed__12 = _init_l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_DeleteFile_fromJsonOptions____x40_Lean_Data_Lsp_Basic___hyg_3335____closed__12(); lean_mark_persistent(l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_DeleteFile_fromJsonOptions____x40_Lean_Data_Lsp_Basic___hyg_3335____closed__12); l_Lean_Lsp_DeleteFile_instFromJsonOptions___closed__1 = _init_l_Lean_Lsp_DeleteFile_instFromJsonOptions___closed__1(); lean_mark_persistent(l_Lean_Lsp_DeleteFile_instFromJsonOptions___closed__1); l_Lean_Lsp_DeleteFile_instFromJsonOptions = _init_l_Lean_Lsp_DeleteFile_instFromJsonOptions(); lean_mark_persistent(l_Lean_Lsp_DeleteFile_instFromJsonOptions); l_Lean_Lsp_CreateFile_options_x3f___default = _init_l_Lean_Lsp_CreateFile_options_x3f___default(); lean_mark_persistent(l_Lean_Lsp_CreateFile_options_x3f___default); l_Lean_Lsp_CreateFile_annotationId_x3f___default = _init_l_Lean_Lsp_CreateFile_annotationId_x3f___default(); lean_mark_persistent(l_Lean_Lsp_CreateFile_annotationId_x3f___default); l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_toJsonCreateFile____x40_Lean_Data_Lsp_Basic___hyg_3473____closed__1 = _init_l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_toJsonCreateFile____x40_Lean_Data_Lsp_Basic___hyg_3473____closed__1(); lean_mark_persistent(l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_toJsonCreateFile____x40_Lean_Data_Lsp_Basic___hyg_3473____closed__1); l_Lean_Lsp_instToJsonCreateFile___closed__1 = _init_l_Lean_Lsp_instToJsonCreateFile___closed__1(); lean_mark_persistent(l_Lean_Lsp_instToJsonCreateFile___closed__1); l_Lean_Lsp_instToJsonCreateFile = _init_l_Lean_Lsp_instToJsonCreateFile(); lean_mark_persistent(l_Lean_Lsp_instToJsonCreateFile); l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonCreateFile____x40_Lean_Data_Lsp_Basic___hyg_3525____closed__1 = _init_l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonCreateFile____x40_Lean_Data_Lsp_Basic___hyg_3525____closed__1(); lean_mark_persistent(l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonCreateFile____x40_Lean_Data_Lsp_Basic___hyg_3525____closed__1); l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonCreateFile____x40_Lean_Data_Lsp_Basic___hyg_3525____closed__2 = _init_l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonCreateFile____x40_Lean_Data_Lsp_Basic___hyg_3525____closed__2(); lean_mark_persistent(l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonCreateFile____x40_Lean_Data_Lsp_Basic___hyg_3525____closed__2); l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonCreateFile____x40_Lean_Data_Lsp_Basic___hyg_3525____closed__3 = _init_l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonCreateFile____x40_Lean_Data_Lsp_Basic___hyg_3525____closed__3(); lean_mark_persistent(l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonCreateFile____x40_Lean_Data_Lsp_Basic___hyg_3525____closed__3); l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonCreateFile____x40_Lean_Data_Lsp_Basic___hyg_3525____closed__4 = _init_l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonCreateFile____x40_Lean_Data_Lsp_Basic___hyg_3525____closed__4(); lean_mark_persistent(l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonCreateFile____x40_Lean_Data_Lsp_Basic___hyg_3525____closed__4); l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonCreateFile____x40_Lean_Data_Lsp_Basic___hyg_3525____closed__5 = _init_l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonCreateFile____x40_Lean_Data_Lsp_Basic___hyg_3525____closed__5(); lean_mark_persistent(l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonCreateFile____x40_Lean_Data_Lsp_Basic___hyg_3525____closed__5); l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonCreateFile____x40_Lean_Data_Lsp_Basic___hyg_3525____closed__6 = _init_l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonCreateFile____x40_Lean_Data_Lsp_Basic___hyg_3525____closed__6(); lean_mark_persistent(l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonCreateFile____x40_Lean_Data_Lsp_Basic___hyg_3525____closed__6); l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonCreateFile____x40_Lean_Data_Lsp_Basic___hyg_3525____closed__7 = _init_l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonCreateFile____x40_Lean_Data_Lsp_Basic___hyg_3525____closed__7(); lean_mark_persistent(l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonCreateFile____x40_Lean_Data_Lsp_Basic___hyg_3525____closed__7); l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonCreateFile____x40_Lean_Data_Lsp_Basic___hyg_3525____closed__8 = _init_l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonCreateFile____x40_Lean_Data_Lsp_Basic___hyg_3525____closed__8(); lean_mark_persistent(l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonCreateFile____x40_Lean_Data_Lsp_Basic___hyg_3525____closed__8); l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonCreateFile____x40_Lean_Data_Lsp_Basic___hyg_3525____closed__9 = _init_l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonCreateFile____x40_Lean_Data_Lsp_Basic___hyg_3525____closed__9(); lean_mark_persistent(l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonCreateFile____x40_Lean_Data_Lsp_Basic___hyg_3525____closed__9); l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonCreateFile____x40_Lean_Data_Lsp_Basic___hyg_3525____closed__10 = _init_l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonCreateFile____x40_Lean_Data_Lsp_Basic___hyg_3525____closed__10(); lean_mark_persistent(l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonCreateFile____x40_Lean_Data_Lsp_Basic___hyg_3525____closed__10); l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonCreateFile____x40_Lean_Data_Lsp_Basic___hyg_3525____closed__11 = _init_l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonCreateFile____x40_Lean_Data_Lsp_Basic___hyg_3525____closed__11(); lean_mark_persistent(l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonCreateFile____x40_Lean_Data_Lsp_Basic___hyg_3525____closed__11); l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonCreateFile____x40_Lean_Data_Lsp_Basic___hyg_3525____closed__12 = _init_l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonCreateFile____x40_Lean_Data_Lsp_Basic___hyg_3525____closed__12(); lean_mark_persistent(l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonCreateFile____x40_Lean_Data_Lsp_Basic___hyg_3525____closed__12); l_Lean_Lsp_instFromJsonCreateFile___closed__1 = _init_l_Lean_Lsp_instFromJsonCreateFile___closed__1(); lean_mark_persistent(l_Lean_Lsp_instFromJsonCreateFile___closed__1); l_Lean_Lsp_instFromJsonCreateFile = _init_l_Lean_Lsp_instFromJsonCreateFile(); lean_mark_persistent(l_Lean_Lsp_instFromJsonCreateFile); l_Lean_Lsp_RenameFile_options_x3f___default = _init_l_Lean_Lsp_RenameFile_options_x3f___default(); lean_mark_persistent(l_Lean_Lsp_RenameFile_options_x3f___default); l_Lean_Lsp_RenameFile_annotationId_x3f___default = _init_l_Lean_Lsp_RenameFile_annotationId_x3f___default(); lean_mark_persistent(l_Lean_Lsp_RenameFile_annotationId_x3f___default); l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_toJsonRenameFile____x40_Lean_Data_Lsp_Basic___hyg_3717____closed__1 = _init_l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_toJsonRenameFile____x40_Lean_Data_Lsp_Basic___hyg_3717____closed__1(); lean_mark_persistent(l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_toJsonRenameFile____x40_Lean_Data_Lsp_Basic___hyg_3717____closed__1); l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_toJsonRenameFile____x40_Lean_Data_Lsp_Basic___hyg_3717____closed__2 = _init_l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_toJsonRenameFile____x40_Lean_Data_Lsp_Basic___hyg_3717____closed__2(); lean_mark_persistent(l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_toJsonRenameFile____x40_Lean_Data_Lsp_Basic___hyg_3717____closed__2); l_Lean_Lsp_instToJsonRenameFile___closed__1 = _init_l_Lean_Lsp_instToJsonRenameFile___closed__1(); lean_mark_persistent(l_Lean_Lsp_instToJsonRenameFile___closed__1); l_Lean_Lsp_instToJsonRenameFile = _init_l_Lean_Lsp_instToJsonRenameFile(); lean_mark_persistent(l_Lean_Lsp_instToJsonRenameFile); l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonRenameFile____x40_Lean_Data_Lsp_Basic___hyg_3781____closed__1 = _init_l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonRenameFile____x40_Lean_Data_Lsp_Basic___hyg_3781____closed__1(); lean_mark_persistent(l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonRenameFile____x40_Lean_Data_Lsp_Basic___hyg_3781____closed__1); l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonRenameFile____x40_Lean_Data_Lsp_Basic___hyg_3781____closed__2 = _init_l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonRenameFile____x40_Lean_Data_Lsp_Basic___hyg_3781____closed__2(); lean_mark_persistent(l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonRenameFile____x40_Lean_Data_Lsp_Basic___hyg_3781____closed__2); l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonRenameFile____x40_Lean_Data_Lsp_Basic___hyg_3781____closed__3 = _init_l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonRenameFile____x40_Lean_Data_Lsp_Basic___hyg_3781____closed__3(); lean_mark_persistent(l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonRenameFile____x40_Lean_Data_Lsp_Basic___hyg_3781____closed__3); l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonRenameFile____x40_Lean_Data_Lsp_Basic___hyg_3781____closed__4 = _init_l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonRenameFile____x40_Lean_Data_Lsp_Basic___hyg_3781____closed__4(); lean_mark_persistent(l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonRenameFile____x40_Lean_Data_Lsp_Basic___hyg_3781____closed__4); l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonRenameFile____x40_Lean_Data_Lsp_Basic___hyg_3781____closed__5 = _init_l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonRenameFile____x40_Lean_Data_Lsp_Basic___hyg_3781____closed__5(); lean_mark_persistent(l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonRenameFile____x40_Lean_Data_Lsp_Basic___hyg_3781____closed__5); l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonRenameFile____x40_Lean_Data_Lsp_Basic___hyg_3781____closed__6 = _init_l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonRenameFile____x40_Lean_Data_Lsp_Basic___hyg_3781____closed__6(); lean_mark_persistent(l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonRenameFile____x40_Lean_Data_Lsp_Basic___hyg_3781____closed__6); l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonRenameFile____x40_Lean_Data_Lsp_Basic___hyg_3781____closed__7 = _init_l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonRenameFile____x40_Lean_Data_Lsp_Basic___hyg_3781____closed__7(); lean_mark_persistent(l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonRenameFile____x40_Lean_Data_Lsp_Basic___hyg_3781____closed__7); l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonRenameFile____x40_Lean_Data_Lsp_Basic___hyg_3781____closed__8 = _init_l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonRenameFile____x40_Lean_Data_Lsp_Basic___hyg_3781____closed__8(); lean_mark_persistent(l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonRenameFile____x40_Lean_Data_Lsp_Basic___hyg_3781____closed__8); l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonRenameFile____x40_Lean_Data_Lsp_Basic___hyg_3781____closed__9 = _init_l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonRenameFile____x40_Lean_Data_Lsp_Basic___hyg_3781____closed__9(); lean_mark_persistent(l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonRenameFile____x40_Lean_Data_Lsp_Basic___hyg_3781____closed__9); l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonRenameFile____x40_Lean_Data_Lsp_Basic___hyg_3781____closed__10 = _init_l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonRenameFile____x40_Lean_Data_Lsp_Basic___hyg_3781____closed__10(); lean_mark_persistent(l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonRenameFile____x40_Lean_Data_Lsp_Basic___hyg_3781____closed__10); l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonRenameFile____x40_Lean_Data_Lsp_Basic___hyg_3781____closed__11 = _init_l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonRenameFile____x40_Lean_Data_Lsp_Basic___hyg_3781____closed__11(); lean_mark_persistent(l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonRenameFile____x40_Lean_Data_Lsp_Basic___hyg_3781____closed__11); l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonRenameFile____x40_Lean_Data_Lsp_Basic___hyg_3781____closed__12 = _init_l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonRenameFile____x40_Lean_Data_Lsp_Basic___hyg_3781____closed__12(); lean_mark_persistent(l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonRenameFile____x40_Lean_Data_Lsp_Basic___hyg_3781____closed__12); l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonRenameFile____x40_Lean_Data_Lsp_Basic___hyg_3781____closed__13 = _init_l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonRenameFile____x40_Lean_Data_Lsp_Basic___hyg_3781____closed__13(); lean_mark_persistent(l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonRenameFile____x40_Lean_Data_Lsp_Basic___hyg_3781____closed__13); l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonRenameFile____x40_Lean_Data_Lsp_Basic___hyg_3781____closed__14 = _init_l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonRenameFile____x40_Lean_Data_Lsp_Basic___hyg_3781____closed__14(); lean_mark_persistent(l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonRenameFile____x40_Lean_Data_Lsp_Basic___hyg_3781____closed__14); l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonRenameFile____x40_Lean_Data_Lsp_Basic___hyg_3781____closed__15 = _init_l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonRenameFile____x40_Lean_Data_Lsp_Basic___hyg_3781____closed__15(); lean_mark_persistent(l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonRenameFile____x40_Lean_Data_Lsp_Basic___hyg_3781____closed__15); l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonRenameFile____x40_Lean_Data_Lsp_Basic___hyg_3781____closed__16 = _init_l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonRenameFile____x40_Lean_Data_Lsp_Basic___hyg_3781____closed__16(); lean_mark_persistent(l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonRenameFile____x40_Lean_Data_Lsp_Basic___hyg_3781____closed__16); l_Lean_Lsp_instFromJsonRenameFile___closed__1 = _init_l_Lean_Lsp_instFromJsonRenameFile___closed__1(); lean_mark_persistent(l_Lean_Lsp_instFromJsonRenameFile___closed__1); l_Lean_Lsp_instFromJsonRenameFile = _init_l_Lean_Lsp_instFromJsonRenameFile(); lean_mark_persistent(l_Lean_Lsp_instFromJsonRenameFile); l_Lean_Lsp_DeleteFile_options_x3f___default = _init_l_Lean_Lsp_DeleteFile_options_x3f___default(); lean_mark_persistent(l_Lean_Lsp_DeleteFile_options_x3f___default); l_Lean_Lsp_DeleteFile_annotationId_x3f___default = _init_l_Lean_Lsp_DeleteFile_annotationId_x3f___default(); lean_mark_persistent(l_Lean_Lsp_DeleteFile_annotationId_x3f___default); l_Lean_Lsp_instToJsonDeleteFile___closed__1 = _init_l_Lean_Lsp_instToJsonDeleteFile___closed__1(); lean_mark_persistent(l_Lean_Lsp_instToJsonDeleteFile___closed__1); l_Lean_Lsp_instToJsonDeleteFile = _init_l_Lean_Lsp_instToJsonDeleteFile(); lean_mark_persistent(l_Lean_Lsp_instToJsonDeleteFile); l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonDeleteFile____x40_Lean_Data_Lsp_Basic___hyg_4050____closed__1 = _init_l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonDeleteFile____x40_Lean_Data_Lsp_Basic___hyg_4050____closed__1(); lean_mark_persistent(l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonDeleteFile____x40_Lean_Data_Lsp_Basic___hyg_4050____closed__1); l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonDeleteFile____x40_Lean_Data_Lsp_Basic___hyg_4050____closed__2 = _init_l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonDeleteFile____x40_Lean_Data_Lsp_Basic___hyg_4050____closed__2(); lean_mark_persistent(l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonDeleteFile____x40_Lean_Data_Lsp_Basic___hyg_4050____closed__2); l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonDeleteFile____x40_Lean_Data_Lsp_Basic___hyg_4050____closed__3 = _init_l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonDeleteFile____x40_Lean_Data_Lsp_Basic___hyg_4050____closed__3(); lean_mark_persistent(l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonDeleteFile____x40_Lean_Data_Lsp_Basic___hyg_4050____closed__3); l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonDeleteFile____x40_Lean_Data_Lsp_Basic___hyg_4050____closed__4 = _init_l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonDeleteFile____x40_Lean_Data_Lsp_Basic___hyg_4050____closed__4(); lean_mark_persistent(l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonDeleteFile____x40_Lean_Data_Lsp_Basic___hyg_4050____closed__4); l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonDeleteFile____x40_Lean_Data_Lsp_Basic___hyg_4050____closed__5 = _init_l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonDeleteFile____x40_Lean_Data_Lsp_Basic___hyg_4050____closed__5(); lean_mark_persistent(l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonDeleteFile____x40_Lean_Data_Lsp_Basic___hyg_4050____closed__5); l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonDeleteFile____x40_Lean_Data_Lsp_Basic___hyg_4050____closed__6 = _init_l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonDeleteFile____x40_Lean_Data_Lsp_Basic___hyg_4050____closed__6(); lean_mark_persistent(l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonDeleteFile____x40_Lean_Data_Lsp_Basic___hyg_4050____closed__6); l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonDeleteFile____x40_Lean_Data_Lsp_Basic___hyg_4050____closed__7 = _init_l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonDeleteFile____x40_Lean_Data_Lsp_Basic___hyg_4050____closed__7(); lean_mark_persistent(l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonDeleteFile____x40_Lean_Data_Lsp_Basic___hyg_4050____closed__7); l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonDeleteFile____x40_Lean_Data_Lsp_Basic___hyg_4050____closed__8 = _init_l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonDeleteFile____x40_Lean_Data_Lsp_Basic___hyg_4050____closed__8(); lean_mark_persistent(l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonDeleteFile____x40_Lean_Data_Lsp_Basic___hyg_4050____closed__8); l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonDeleteFile____x40_Lean_Data_Lsp_Basic___hyg_4050____closed__9 = _init_l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonDeleteFile____x40_Lean_Data_Lsp_Basic___hyg_4050____closed__9(); lean_mark_persistent(l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonDeleteFile____x40_Lean_Data_Lsp_Basic___hyg_4050____closed__9); l_Lean_Lsp_instFromJsonDeleteFile___closed__1 = _init_l_Lean_Lsp_instFromJsonDeleteFile___closed__1(); lean_mark_persistent(l_Lean_Lsp_instFromJsonDeleteFile___closed__1); l_Lean_Lsp_instFromJsonDeleteFile = _init_l_Lean_Lsp_instFromJsonDeleteFile(); lean_mark_persistent(l_Lean_Lsp_instFromJsonDeleteFile); l_Lean_Lsp_instToJsonDocumentChange___closed__1 = _init_l_Lean_Lsp_instToJsonDocumentChange___closed__1(); lean_mark_persistent(l_Lean_Lsp_instToJsonDocumentChange___closed__1); l_Lean_Lsp_instToJsonDocumentChange___closed__2 = _init_l_Lean_Lsp_instToJsonDocumentChange___closed__2(); lean_mark_persistent(l_Lean_Lsp_instToJsonDocumentChange___closed__2); l_Lean_Lsp_instToJsonDocumentChange___closed__3 = _init_l_Lean_Lsp_instToJsonDocumentChange___closed__3(); lean_mark_persistent(l_Lean_Lsp_instToJsonDocumentChange___closed__3); l_Lean_Lsp_instToJsonDocumentChange___closed__4 = _init_l_Lean_Lsp_instToJsonDocumentChange___closed__4(); lean_mark_persistent(l_Lean_Lsp_instToJsonDocumentChange___closed__4); l_Lean_Lsp_instToJsonDocumentChange___closed__5 = _init_l_Lean_Lsp_instToJsonDocumentChange___closed__5(); lean_mark_persistent(l_Lean_Lsp_instToJsonDocumentChange___closed__5); l_Lean_Lsp_instToJsonDocumentChange___closed__6 = _init_l_Lean_Lsp_instToJsonDocumentChange___closed__6(); lean_mark_persistent(l_Lean_Lsp_instToJsonDocumentChange___closed__6); l_Lean_Lsp_instToJsonDocumentChange___closed__7 = _init_l_Lean_Lsp_instToJsonDocumentChange___closed__7(); lean_mark_persistent(l_Lean_Lsp_instToJsonDocumentChange___closed__7); l_Lean_Lsp_WorkspaceEdit_changes___default = _init_l_Lean_Lsp_WorkspaceEdit_changes___default(); lean_mark_persistent(l_Lean_Lsp_WorkspaceEdit_changes___default); l_Lean_Lsp_WorkspaceEdit_documentChanges___default = _init_l_Lean_Lsp_WorkspaceEdit_documentChanges___default(); lean_mark_persistent(l_Lean_Lsp_WorkspaceEdit_documentChanges___default); l_Lean_Lsp_WorkspaceEdit_changeAnnotations___default = _init_l_Lean_Lsp_WorkspaceEdit_changeAnnotations___default(); lean_mark_persistent(l_Lean_Lsp_WorkspaceEdit_changeAnnotations___default); l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_toJsonWorkspaceEdit____x40_Lean_Data_Lsp_Basic___hyg_4588____closed__1 = _init_l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_toJsonWorkspaceEdit____x40_Lean_Data_Lsp_Basic___hyg_4588____closed__1(); lean_mark_persistent(l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_toJsonWorkspaceEdit____x40_Lean_Data_Lsp_Basic___hyg_4588____closed__1); l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_toJsonWorkspaceEdit____x40_Lean_Data_Lsp_Basic___hyg_4588____closed__2 = _init_l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_toJsonWorkspaceEdit____x40_Lean_Data_Lsp_Basic___hyg_4588____closed__2(); lean_mark_persistent(l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_toJsonWorkspaceEdit____x40_Lean_Data_Lsp_Basic___hyg_4588____closed__2); l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_toJsonWorkspaceEdit____x40_Lean_Data_Lsp_Basic___hyg_4588____closed__3 = _init_l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_toJsonWorkspaceEdit____x40_Lean_Data_Lsp_Basic___hyg_4588____closed__3(); lean_mark_persistent(l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_toJsonWorkspaceEdit____x40_Lean_Data_Lsp_Basic___hyg_4588____closed__3); l_Lean_Lsp_instToJsonWorkspaceEdit___closed__1 = _init_l_Lean_Lsp_instToJsonWorkspaceEdit___closed__1(); lean_mark_persistent(l_Lean_Lsp_instToJsonWorkspaceEdit___closed__1); l_Lean_Lsp_instToJsonWorkspaceEdit = _init_l_Lean_Lsp_instToJsonWorkspaceEdit(); lean_mark_persistent(l_Lean_Lsp_instToJsonWorkspaceEdit); l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonWorkspaceEdit____x40_Lean_Data_Lsp_Basic___hyg_4660____closed__1 = _init_l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonWorkspaceEdit____x40_Lean_Data_Lsp_Basic___hyg_4660____closed__1(); lean_mark_persistent(l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonWorkspaceEdit____x40_Lean_Data_Lsp_Basic___hyg_4660____closed__1); l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonWorkspaceEdit____x40_Lean_Data_Lsp_Basic___hyg_4660____closed__2 = _init_l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonWorkspaceEdit____x40_Lean_Data_Lsp_Basic___hyg_4660____closed__2(); lean_mark_persistent(l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonWorkspaceEdit____x40_Lean_Data_Lsp_Basic___hyg_4660____closed__2); l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonWorkspaceEdit____x40_Lean_Data_Lsp_Basic___hyg_4660____closed__3 = _init_l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonWorkspaceEdit____x40_Lean_Data_Lsp_Basic___hyg_4660____closed__3(); lean_mark_persistent(l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonWorkspaceEdit____x40_Lean_Data_Lsp_Basic___hyg_4660____closed__3); l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonWorkspaceEdit____x40_Lean_Data_Lsp_Basic___hyg_4660____closed__4 = _init_l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonWorkspaceEdit____x40_Lean_Data_Lsp_Basic___hyg_4660____closed__4(); lean_mark_persistent(l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonWorkspaceEdit____x40_Lean_Data_Lsp_Basic___hyg_4660____closed__4); l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonWorkspaceEdit____x40_Lean_Data_Lsp_Basic___hyg_4660____closed__5 = _init_l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonWorkspaceEdit____x40_Lean_Data_Lsp_Basic___hyg_4660____closed__5(); lean_mark_persistent(l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonWorkspaceEdit____x40_Lean_Data_Lsp_Basic___hyg_4660____closed__5); l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonWorkspaceEdit____x40_Lean_Data_Lsp_Basic___hyg_4660____closed__6 = _init_l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonWorkspaceEdit____x40_Lean_Data_Lsp_Basic___hyg_4660____closed__6(); lean_mark_persistent(l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonWorkspaceEdit____x40_Lean_Data_Lsp_Basic___hyg_4660____closed__6); l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonWorkspaceEdit____x40_Lean_Data_Lsp_Basic___hyg_4660____closed__7 = _init_l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonWorkspaceEdit____x40_Lean_Data_Lsp_Basic___hyg_4660____closed__7(); lean_mark_persistent(l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonWorkspaceEdit____x40_Lean_Data_Lsp_Basic___hyg_4660____closed__7); l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonWorkspaceEdit____x40_Lean_Data_Lsp_Basic___hyg_4660____closed__8 = _init_l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonWorkspaceEdit____x40_Lean_Data_Lsp_Basic___hyg_4660____closed__8(); lean_mark_persistent(l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonWorkspaceEdit____x40_Lean_Data_Lsp_Basic___hyg_4660____closed__8); l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonWorkspaceEdit____x40_Lean_Data_Lsp_Basic___hyg_4660____closed__9 = _init_l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonWorkspaceEdit____x40_Lean_Data_Lsp_Basic___hyg_4660____closed__9(); lean_mark_persistent(l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonWorkspaceEdit____x40_Lean_Data_Lsp_Basic___hyg_4660____closed__9); l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonWorkspaceEdit____x40_Lean_Data_Lsp_Basic___hyg_4660____closed__10 = _init_l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonWorkspaceEdit____x40_Lean_Data_Lsp_Basic___hyg_4660____closed__10(); lean_mark_persistent(l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonWorkspaceEdit____x40_Lean_Data_Lsp_Basic___hyg_4660____closed__10); l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonWorkspaceEdit____x40_Lean_Data_Lsp_Basic___hyg_4660____closed__11 = _init_l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonWorkspaceEdit____x40_Lean_Data_Lsp_Basic___hyg_4660____closed__11(); lean_mark_persistent(l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonWorkspaceEdit____x40_Lean_Data_Lsp_Basic___hyg_4660____closed__11); l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonWorkspaceEdit____x40_Lean_Data_Lsp_Basic___hyg_4660____closed__12 = _init_l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonWorkspaceEdit____x40_Lean_Data_Lsp_Basic___hyg_4660____closed__12(); lean_mark_persistent(l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonWorkspaceEdit____x40_Lean_Data_Lsp_Basic___hyg_4660____closed__12); l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonWorkspaceEdit____x40_Lean_Data_Lsp_Basic___hyg_4660____closed__13 = _init_l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonWorkspaceEdit____x40_Lean_Data_Lsp_Basic___hyg_4660____closed__13(); lean_mark_persistent(l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonWorkspaceEdit____x40_Lean_Data_Lsp_Basic___hyg_4660____closed__13); l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonWorkspaceEdit____x40_Lean_Data_Lsp_Basic___hyg_4660____closed__14 = _init_l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonWorkspaceEdit____x40_Lean_Data_Lsp_Basic___hyg_4660____closed__14(); lean_mark_persistent(l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonWorkspaceEdit____x40_Lean_Data_Lsp_Basic___hyg_4660____closed__14); l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonWorkspaceEdit____x40_Lean_Data_Lsp_Basic___hyg_4660____closed__15 = _init_l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonWorkspaceEdit____x40_Lean_Data_Lsp_Basic___hyg_4660____closed__15(); lean_mark_persistent(l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonWorkspaceEdit____x40_Lean_Data_Lsp_Basic___hyg_4660____closed__15); l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonWorkspaceEdit____x40_Lean_Data_Lsp_Basic___hyg_4660____closed__16 = _init_l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonWorkspaceEdit____x40_Lean_Data_Lsp_Basic___hyg_4660____closed__16(); lean_mark_persistent(l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonWorkspaceEdit____x40_Lean_Data_Lsp_Basic___hyg_4660____closed__16); l_Lean_Lsp_instFromJsonWorkspaceEdit___closed__1 = _init_l_Lean_Lsp_instFromJsonWorkspaceEdit___closed__1(); lean_mark_persistent(l_Lean_Lsp_instFromJsonWorkspaceEdit___closed__1); l_Lean_Lsp_instFromJsonWorkspaceEdit = _init_l_Lean_Lsp_instFromJsonWorkspaceEdit(); lean_mark_persistent(l_Lean_Lsp_instFromJsonWorkspaceEdit); l_Lean_Lsp_WorkspaceEdit_instEmptyCollectionWorkspaceEdit___closed__1 = _init_l_Lean_Lsp_WorkspaceEdit_instEmptyCollectionWorkspaceEdit___closed__1(); lean_mark_persistent(l_Lean_Lsp_WorkspaceEdit_instEmptyCollectionWorkspaceEdit___closed__1); l_Lean_Lsp_WorkspaceEdit_instEmptyCollectionWorkspaceEdit = _init_l_Lean_Lsp_WorkspaceEdit_instEmptyCollectionWorkspaceEdit(); lean_mark_persistent(l_Lean_Lsp_WorkspaceEdit_instEmptyCollectionWorkspaceEdit); l_Lean_Lsp_WorkspaceEdit_instAppendWorkspaceEdit___closed__1 = _init_l_Lean_Lsp_WorkspaceEdit_instAppendWorkspaceEdit___closed__1(); lean_mark_persistent(l_Lean_Lsp_WorkspaceEdit_instAppendWorkspaceEdit___closed__1); l_Lean_Lsp_WorkspaceEdit_instAppendWorkspaceEdit___closed__2 = _init_l_Lean_Lsp_WorkspaceEdit_instAppendWorkspaceEdit___closed__2(); lean_mark_persistent(l_Lean_Lsp_WorkspaceEdit_instAppendWorkspaceEdit___closed__2); l_Lean_Lsp_WorkspaceEdit_instAppendWorkspaceEdit___closed__3 = _init_l_Lean_Lsp_WorkspaceEdit_instAppendWorkspaceEdit___closed__3(); lean_mark_persistent(l_Lean_Lsp_WorkspaceEdit_instAppendWorkspaceEdit___closed__3); l_Lean_Lsp_WorkspaceEdit_ofTextEdit___closed__1 = _init_l_Lean_Lsp_WorkspaceEdit_ofTextEdit___closed__1(); lean_mark_persistent(l_Lean_Lsp_WorkspaceEdit_ofTextEdit___closed__1); l_Lean_Lsp_ApplyWorkspaceEditParams_label_x3f___default = _init_l_Lean_Lsp_ApplyWorkspaceEditParams_label_x3f___default(); lean_mark_persistent(l_Lean_Lsp_ApplyWorkspaceEditParams_label_x3f___default); l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_toJsonApplyWorkspaceEditParams____x40_Lean_Data_Lsp_Basic___hyg_5049____closed__1 = _init_l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_toJsonApplyWorkspaceEditParams____x40_Lean_Data_Lsp_Basic___hyg_5049____closed__1(); lean_mark_persistent(l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_toJsonApplyWorkspaceEditParams____x40_Lean_Data_Lsp_Basic___hyg_5049____closed__1); l_Lean_Lsp_instToJsonApplyWorkspaceEditParams___closed__1 = _init_l_Lean_Lsp_instToJsonApplyWorkspaceEditParams___closed__1(); lean_mark_persistent(l_Lean_Lsp_instToJsonApplyWorkspaceEditParams___closed__1); l_Lean_Lsp_instToJsonApplyWorkspaceEditParams = _init_l_Lean_Lsp_instToJsonApplyWorkspaceEditParams(); lean_mark_persistent(l_Lean_Lsp_instToJsonApplyWorkspaceEditParams); l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonApplyWorkspaceEditParams____x40_Lean_Data_Lsp_Basic___hyg_5092____closed__1 = _init_l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonApplyWorkspaceEditParams____x40_Lean_Data_Lsp_Basic___hyg_5092____closed__1(); lean_mark_persistent(l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonApplyWorkspaceEditParams____x40_Lean_Data_Lsp_Basic___hyg_5092____closed__1); l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonApplyWorkspaceEditParams____x40_Lean_Data_Lsp_Basic___hyg_5092____closed__2 = _init_l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonApplyWorkspaceEditParams____x40_Lean_Data_Lsp_Basic___hyg_5092____closed__2(); lean_mark_persistent(l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonApplyWorkspaceEditParams____x40_Lean_Data_Lsp_Basic___hyg_5092____closed__2); l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonApplyWorkspaceEditParams____x40_Lean_Data_Lsp_Basic___hyg_5092____closed__3 = _init_l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonApplyWorkspaceEditParams____x40_Lean_Data_Lsp_Basic___hyg_5092____closed__3(); lean_mark_persistent(l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonApplyWorkspaceEditParams____x40_Lean_Data_Lsp_Basic___hyg_5092____closed__3); l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonApplyWorkspaceEditParams____x40_Lean_Data_Lsp_Basic___hyg_5092____closed__4 = _init_l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonApplyWorkspaceEditParams____x40_Lean_Data_Lsp_Basic___hyg_5092____closed__4(); lean_mark_persistent(l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonApplyWorkspaceEditParams____x40_Lean_Data_Lsp_Basic___hyg_5092____closed__4); l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonApplyWorkspaceEditParams____x40_Lean_Data_Lsp_Basic___hyg_5092____closed__5 = _init_l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonApplyWorkspaceEditParams____x40_Lean_Data_Lsp_Basic___hyg_5092____closed__5(); lean_mark_persistent(l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonApplyWorkspaceEditParams____x40_Lean_Data_Lsp_Basic___hyg_5092____closed__5); l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonApplyWorkspaceEditParams____x40_Lean_Data_Lsp_Basic___hyg_5092____closed__6 = _init_l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonApplyWorkspaceEditParams____x40_Lean_Data_Lsp_Basic___hyg_5092____closed__6(); lean_mark_persistent(l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonApplyWorkspaceEditParams____x40_Lean_Data_Lsp_Basic___hyg_5092____closed__6); l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonApplyWorkspaceEditParams____x40_Lean_Data_Lsp_Basic___hyg_5092____closed__7 = _init_l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonApplyWorkspaceEditParams____x40_Lean_Data_Lsp_Basic___hyg_5092____closed__7(); lean_mark_persistent(l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonApplyWorkspaceEditParams____x40_Lean_Data_Lsp_Basic___hyg_5092____closed__7); l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonApplyWorkspaceEditParams____x40_Lean_Data_Lsp_Basic___hyg_5092____closed__8 = _init_l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonApplyWorkspaceEditParams____x40_Lean_Data_Lsp_Basic___hyg_5092____closed__8(); lean_mark_persistent(l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonApplyWorkspaceEditParams____x40_Lean_Data_Lsp_Basic___hyg_5092____closed__8); l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonApplyWorkspaceEditParams____x40_Lean_Data_Lsp_Basic___hyg_5092____closed__9 = _init_l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonApplyWorkspaceEditParams____x40_Lean_Data_Lsp_Basic___hyg_5092____closed__9(); lean_mark_persistent(l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonApplyWorkspaceEditParams____x40_Lean_Data_Lsp_Basic___hyg_5092____closed__9); l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonApplyWorkspaceEditParams____x40_Lean_Data_Lsp_Basic___hyg_5092____closed__10 = _init_l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonApplyWorkspaceEditParams____x40_Lean_Data_Lsp_Basic___hyg_5092____closed__10(); lean_mark_persistent(l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonApplyWorkspaceEditParams____x40_Lean_Data_Lsp_Basic___hyg_5092____closed__10); l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonApplyWorkspaceEditParams____x40_Lean_Data_Lsp_Basic___hyg_5092____closed__11 = _init_l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonApplyWorkspaceEditParams____x40_Lean_Data_Lsp_Basic___hyg_5092____closed__11(); lean_mark_persistent(l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonApplyWorkspaceEditParams____x40_Lean_Data_Lsp_Basic___hyg_5092____closed__11); l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonApplyWorkspaceEditParams____x40_Lean_Data_Lsp_Basic___hyg_5092____closed__12 = _init_l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonApplyWorkspaceEditParams____x40_Lean_Data_Lsp_Basic___hyg_5092____closed__12(); lean_mark_persistent(l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonApplyWorkspaceEditParams____x40_Lean_Data_Lsp_Basic___hyg_5092____closed__12); l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonApplyWorkspaceEditParams____x40_Lean_Data_Lsp_Basic___hyg_5092____closed__13 = _init_l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonApplyWorkspaceEditParams____x40_Lean_Data_Lsp_Basic___hyg_5092____closed__13(); lean_mark_persistent(l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonApplyWorkspaceEditParams____x40_Lean_Data_Lsp_Basic___hyg_5092____closed__13); l_Lean_Lsp_instFromJsonApplyWorkspaceEditParams___closed__1 = _init_l_Lean_Lsp_instFromJsonApplyWorkspaceEditParams___closed__1(); lean_mark_persistent(l_Lean_Lsp_instFromJsonApplyWorkspaceEditParams___closed__1); l_Lean_Lsp_instFromJsonApplyWorkspaceEditParams = _init_l_Lean_Lsp_instFromJsonApplyWorkspaceEditParams(); lean_mark_persistent(l_Lean_Lsp_instFromJsonApplyWorkspaceEditParams); l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_toJsonTextDocumentItem____x40_Lean_Data_Lsp_Basic___hyg_5235____closed__1 = _init_l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_toJsonTextDocumentItem____x40_Lean_Data_Lsp_Basic___hyg_5235____closed__1(); lean_mark_persistent(l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_toJsonTextDocumentItem____x40_Lean_Data_Lsp_Basic___hyg_5235____closed__1); l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_toJsonTextDocumentItem____x40_Lean_Data_Lsp_Basic___hyg_5235____closed__2 = _init_l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_toJsonTextDocumentItem____x40_Lean_Data_Lsp_Basic___hyg_5235____closed__2(); lean_mark_persistent(l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_toJsonTextDocumentItem____x40_Lean_Data_Lsp_Basic___hyg_5235____closed__2); l_Lean_Lsp_instToJsonTextDocumentItem___closed__1 = _init_l_Lean_Lsp_instToJsonTextDocumentItem___closed__1(); lean_mark_persistent(l_Lean_Lsp_instToJsonTextDocumentItem___closed__1); l_Lean_Lsp_instToJsonTextDocumentItem = _init_l_Lean_Lsp_instToJsonTextDocumentItem(); lean_mark_persistent(l_Lean_Lsp_instToJsonTextDocumentItem); l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonTextDocumentItem____x40_Lean_Data_Lsp_Basic___hyg_5313____closed__1 = _init_l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonTextDocumentItem____x40_Lean_Data_Lsp_Basic___hyg_5313____closed__1(); lean_mark_persistent(l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonTextDocumentItem____x40_Lean_Data_Lsp_Basic___hyg_5313____closed__1); l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonTextDocumentItem____x40_Lean_Data_Lsp_Basic___hyg_5313____closed__2 = _init_l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonTextDocumentItem____x40_Lean_Data_Lsp_Basic___hyg_5313____closed__2(); lean_mark_persistent(l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonTextDocumentItem____x40_Lean_Data_Lsp_Basic___hyg_5313____closed__2); l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonTextDocumentItem____x40_Lean_Data_Lsp_Basic___hyg_5313____closed__3 = _init_l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonTextDocumentItem____x40_Lean_Data_Lsp_Basic___hyg_5313____closed__3(); lean_mark_persistent(l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonTextDocumentItem____x40_Lean_Data_Lsp_Basic___hyg_5313____closed__3); l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonTextDocumentItem____x40_Lean_Data_Lsp_Basic___hyg_5313____closed__4 = _init_l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonTextDocumentItem____x40_Lean_Data_Lsp_Basic___hyg_5313____closed__4(); lean_mark_persistent(l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonTextDocumentItem____x40_Lean_Data_Lsp_Basic___hyg_5313____closed__4); l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonTextDocumentItem____x40_Lean_Data_Lsp_Basic___hyg_5313____closed__5 = _init_l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonTextDocumentItem____x40_Lean_Data_Lsp_Basic___hyg_5313____closed__5(); lean_mark_persistent(l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonTextDocumentItem____x40_Lean_Data_Lsp_Basic___hyg_5313____closed__5); l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonTextDocumentItem____x40_Lean_Data_Lsp_Basic___hyg_5313____closed__6 = _init_l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonTextDocumentItem____x40_Lean_Data_Lsp_Basic___hyg_5313____closed__6(); lean_mark_persistent(l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonTextDocumentItem____x40_Lean_Data_Lsp_Basic___hyg_5313____closed__6); l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonTextDocumentItem____x40_Lean_Data_Lsp_Basic___hyg_5313____closed__7 = _init_l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonTextDocumentItem____x40_Lean_Data_Lsp_Basic___hyg_5313____closed__7(); lean_mark_persistent(l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonTextDocumentItem____x40_Lean_Data_Lsp_Basic___hyg_5313____closed__7); l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonTextDocumentItem____x40_Lean_Data_Lsp_Basic___hyg_5313____closed__8 = _init_l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonTextDocumentItem____x40_Lean_Data_Lsp_Basic___hyg_5313____closed__8(); lean_mark_persistent(l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonTextDocumentItem____x40_Lean_Data_Lsp_Basic___hyg_5313____closed__8); l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonTextDocumentItem____x40_Lean_Data_Lsp_Basic___hyg_5313____closed__9 = _init_l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonTextDocumentItem____x40_Lean_Data_Lsp_Basic___hyg_5313____closed__9(); lean_mark_persistent(l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonTextDocumentItem____x40_Lean_Data_Lsp_Basic___hyg_5313____closed__9); l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonTextDocumentItem____x40_Lean_Data_Lsp_Basic___hyg_5313____closed__10 = _init_l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonTextDocumentItem____x40_Lean_Data_Lsp_Basic___hyg_5313____closed__10(); lean_mark_persistent(l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonTextDocumentItem____x40_Lean_Data_Lsp_Basic___hyg_5313____closed__10); l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonTextDocumentItem____x40_Lean_Data_Lsp_Basic___hyg_5313____closed__11 = _init_l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonTextDocumentItem____x40_Lean_Data_Lsp_Basic___hyg_5313____closed__11(); lean_mark_persistent(l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonTextDocumentItem____x40_Lean_Data_Lsp_Basic___hyg_5313____closed__11); l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonTextDocumentItem____x40_Lean_Data_Lsp_Basic___hyg_5313____closed__12 = _init_l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonTextDocumentItem____x40_Lean_Data_Lsp_Basic___hyg_5313____closed__12(); lean_mark_persistent(l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonTextDocumentItem____x40_Lean_Data_Lsp_Basic___hyg_5313____closed__12); l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonTextDocumentItem____x40_Lean_Data_Lsp_Basic___hyg_5313____closed__13 = _init_l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonTextDocumentItem____x40_Lean_Data_Lsp_Basic___hyg_5313____closed__13(); lean_mark_persistent(l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonTextDocumentItem____x40_Lean_Data_Lsp_Basic___hyg_5313____closed__13); l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonTextDocumentItem____x40_Lean_Data_Lsp_Basic___hyg_5313____closed__14 = _init_l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonTextDocumentItem____x40_Lean_Data_Lsp_Basic___hyg_5313____closed__14(); lean_mark_persistent(l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonTextDocumentItem____x40_Lean_Data_Lsp_Basic___hyg_5313____closed__14); l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonTextDocumentItem____x40_Lean_Data_Lsp_Basic___hyg_5313____closed__15 = _init_l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonTextDocumentItem____x40_Lean_Data_Lsp_Basic___hyg_5313____closed__15(); lean_mark_persistent(l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonTextDocumentItem____x40_Lean_Data_Lsp_Basic___hyg_5313____closed__15); l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonTextDocumentItem____x40_Lean_Data_Lsp_Basic___hyg_5313____closed__16 = _init_l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonTextDocumentItem____x40_Lean_Data_Lsp_Basic___hyg_5313____closed__16(); lean_mark_persistent(l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonTextDocumentItem____x40_Lean_Data_Lsp_Basic___hyg_5313____closed__16); l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonTextDocumentItem____x40_Lean_Data_Lsp_Basic___hyg_5313____closed__17 = _init_l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonTextDocumentItem____x40_Lean_Data_Lsp_Basic___hyg_5313____closed__17(); lean_mark_persistent(l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonTextDocumentItem____x40_Lean_Data_Lsp_Basic___hyg_5313____closed__17); l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonTextDocumentItem____x40_Lean_Data_Lsp_Basic___hyg_5313____closed__18 = _init_l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonTextDocumentItem____x40_Lean_Data_Lsp_Basic___hyg_5313____closed__18(); lean_mark_persistent(l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonTextDocumentItem____x40_Lean_Data_Lsp_Basic___hyg_5313____closed__18); l_Lean_Lsp_instFromJsonTextDocumentItem___closed__1 = _init_l_Lean_Lsp_instFromJsonTextDocumentItem___closed__1(); lean_mark_persistent(l_Lean_Lsp_instFromJsonTextDocumentItem___closed__1); l_Lean_Lsp_instFromJsonTextDocumentItem = _init_l_Lean_Lsp_instFromJsonTextDocumentItem(); lean_mark_persistent(l_Lean_Lsp_instFromJsonTextDocumentItem); l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_toJsonTextDocumentPositionParams____x40_Lean_Data_Lsp_Basic___hyg_5518____closed__1 = _init_l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_toJsonTextDocumentPositionParams____x40_Lean_Data_Lsp_Basic___hyg_5518____closed__1(); lean_mark_persistent(l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_toJsonTextDocumentPositionParams____x40_Lean_Data_Lsp_Basic___hyg_5518____closed__1); l_Lean_Lsp_instToJsonTextDocumentPositionParams___closed__1 = _init_l_Lean_Lsp_instToJsonTextDocumentPositionParams___closed__1(); lean_mark_persistent(l_Lean_Lsp_instToJsonTextDocumentPositionParams___closed__1); l_Lean_Lsp_instToJsonTextDocumentPositionParams = _init_l_Lean_Lsp_instToJsonTextDocumentPositionParams(); lean_mark_persistent(l_Lean_Lsp_instToJsonTextDocumentPositionParams); l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonTextDocumentPositionParams____x40_Lean_Data_Lsp_Basic___hyg_5568____closed__1 = _init_l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonTextDocumentPositionParams____x40_Lean_Data_Lsp_Basic___hyg_5568____closed__1(); lean_mark_persistent(l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonTextDocumentPositionParams____x40_Lean_Data_Lsp_Basic___hyg_5568____closed__1); l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonTextDocumentPositionParams____x40_Lean_Data_Lsp_Basic___hyg_5568____closed__2 = _init_l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonTextDocumentPositionParams____x40_Lean_Data_Lsp_Basic___hyg_5568____closed__2(); lean_mark_persistent(l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonTextDocumentPositionParams____x40_Lean_Data_Lsp_Basic___hyg_5568____closed__2); l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonTextDocumentPositionParams____x40_Lean_Data_Lsp_Basic___hyg_5568____closed__3 = _init_l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonTextDocumentPositionParams____x40_Lean_Data_Lsp_Basic___hyg_5568____closed__3(); lean_mark_persistent(l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonTextDocumentPositionParams____x40_Lean_Data_Lsp_Basic___hyg_5568____closed__3); l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonTextDocumentPositionParams____x40_Lean_Data_Lsp_Basic___hyg_5568____closed__4 = _init_l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonTextDocumentPositionParams____x40_Lean_Data_Lsp_Basic___hyg_5568____closed__4(); lean_mark_persistent(l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonTextDocumentPositionParams____x40_Lean_Data_Lsp_Basic___hyg_5568____closed__4); l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonTextDocumentPositionParams____x40_Lean_Data_Lsp_Basic___hyg_5568____closed__5 = _init_l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonTextDocumentPositionParams____x40_Lean_Data_Lsp_Basic___hyg_5568____closed__5(); lean_mark_persistent(l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonTextDocumentPositionParams____x40_Lean_Data_Lsp_Basic___hyg_5568____closed__5); l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonTextDocumentPositionParams____x40_Lean_Data_Lsp_Basic___hyg_5568____closed__6 = _init_l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonTextDocumentPositionParams____x40_Lean_Data_Lsp_Basic___hyg_5568____closed__6(); lean_mark_persistent(l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonTextDocumentPositionParams____x40_Lean_Data_Lsp_Basic___hyg_5568____closed__6); l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonTextDocumentPositionParams____x40_Lean_Data_Lsp_Basic___hyg_5568____closed__7 = _init_l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonTextDocumentPositionParams____x40_Lean_Data_Lsp_Basic___hyg_5568____closed__7(); lean_mark_persistent(l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonTextDocumentPositionParams____x40_Lean_Data_Lsp_Basic___hyg_5568____closed__7); l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonTextDocumentPositionParams____x40_Lean_Data_Lsp_Basic___hyg_5568____closed__8 = _init_l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonTextDocumentPositionParams____x40_Lean_Data_Lsp_Basic___hyg_5568____closed__8(); lean_mark_persistent(l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonTextDocumentPositionParams____x40_Lean_Data_Lsp_Basic___hyg_5568____closed__8); l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonTextDocumentPositionParams____x40_Lean_Data_Lsp_Basic___hyg_5568____closed__9 = _init_l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonTextDocumentPositionParams____x40_Lean_Data_Lsp_Basic___hyg_5568____closed__9(); lean_mark_persistent(l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonTextDocumentPositionParams____x40_Lean_Data_Lsp_Basic___hyg_5568____closed__9); l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonTextDocumentPositionParams____x40_Lean_Data_Lsp_Basic___hyg_5568____closed__10 = _init_l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonTextDocumentPositionParams____x40_Lean_Data_Lsp_Basic___hyg_5568____closed__10(); lean_mark_persistent(l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonTextDocumentPositionParams____x40_Lean_Data_Lsp_Basic___hyg_5568____closed__10); l_Lean_Lsp_instFromJsonTextDocumentPositionParams___closed__1 = _init_l_Lean_Lsp_instFromJsonTextDocumentPositionParams___closed__1(); lean_mark_persistent(l_Lean_Lsp_instFromJsonTextDocumentPositionParams___closed__1); l_Lean_Lsp_instFromJsonTextDocumentPositionParams = _init_l_Lean_Lsp_instFromJsonTextDocumentPositionParams(); lean_mark_persistent(l_Lean_Lsp_instFromJsonTextDocumentPositionParams); l_Lean_Lsp_instToStringTextDocumentPositionParams___closed__1 = _init_l_Lean_Lsp_instToStringTextDocumentPositionParams___closed__1(); lean_mark_persistent(l_Lean_Lsp_instToStringTextDocumentPositionParams___closed__1); l_Lean_Lsp_DocumentFilter_language_x3f___default = _init_l_Lean_Lsp_DocumentFilter_language_x3f___default(); lean_mark_persistent(l_Lean_Lsp_DocumentFilter_language_x3f___default); l_Lean_Lsp_DocumentFilter_scheme_x3f___default = _init_l_Lean_Lsp_DocumentFilter_scheme_x3f___default(); lean_mark_persistent(l_Lean_Lsp_DocumentFilter_scheme_x3f___default); l_Lean_Lsp_DocumentFilter_pattern_x3f___default = _init_l_Lean_Lsp_DocumentFilter_pattern_x3f___default(); lean_mark_persistent(l_Lean_Lsp_DocumentFilter_pattern_x3f___default); l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_toJsonDocumentFilter____x40_Lean_Data_Lsp_Basic___hyg_5749____closed__1 = _init_l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_toJsonDocumentFilter____x40_Lean_Data_Lsp_Basic___hyg_5749____closed__1(); lean_mark_persistent(l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_toJsonDocumentFilter____x40_Lean_Data_Lsp_Basic___hyg_5749____closed__1); l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_toJsonDocumentFilter____x40_Lean_Data_Lsp_Basic___hyg_5749____closed__2 = _init_l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_toJsonDocumentFilter____x40_Lean_Data_Lsp_Basic___hyg_5749____closed__2(); lean_mark_persistent(l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_toJsonDocumentFilter____x40_Lean_Data_Lsp_Basic___hyg_5749____closed__2); l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_toJsonDocumentFilter____x40_Lean_Data_Lsp_Basic___hyg_5749____closed__3 = _init_l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_toJsonDocumentFilter____x40_Lean_Data_Lsp_Basic___hyg_5749____closed__3(); lean_mark_persistent(l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_toJsonDocumentFilter____x40_Lean_Data_Lsp_Basic___hyg_5749____closed__3); l_Lean_Lsp_instToJsonDocumentFilter___closed__1 = _init_l_Lean_Lsp_instToJsonDocumentFilter___closed__1(); lean_mark_persistent(l_Lean_Lsp_instToJsonDocumentFilter___closed__1); l_Lean_Lsp_instToJsonDocumentFilter = _init_l_Lean_Lsp_instToJsonDocumentFilter(); lean_mark_persistent(l_Lean_Lsp_instToJsonDocumentFilter); l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonDocumentFilter____x40_Lean_Data_Lsp_Basic___hyg_5792____closed__1 = _init_l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonDocumentFilter____x40_Lean_Data_Lsp_Basic___hyg_5792____closed__1(); lean_mark_persistent(l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonDocumentFilter____x40_Lean_Data_Lsp_Basic___hyg_5792____closed__1); l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonDocumentFilter____x40_Lean_Data_Lsp_Basic___hyg_5792____closed__2 = _init_l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonDocumentFilter____x40_Lean_Data_Lsp_Basic___hyg_5792____closed__2(); lean_mark_persistent(l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonDocumentFilter____x40_Lean_Data_Lsp_Basic___hyg_5792____closed__2); l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonDocumentFilter____x40_Lean_Data_Lsp_Basic___hyg_5792____closed__3 = _init_l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonDocumentFilter____x40_Lean_Data_Lsp_Basic___hyg_5792____closed__3(); lean_mark_persistent(l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonDocumentFilter____x40_Lean_Data_Lsp_Basic___hyg_5792____closed__3); l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonDocumentFilter____x40_Lean_Data_Lsp_Basic___hyg_5792____closed__4 = _init_l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonDocumentFilter____x40_Lean_Data_Lsp_Basic___hyg_5792____closed__4(); lean_mark_persistent(l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonDocumentFilter____x40_Lean_Data_Lsp_Basic___hyg_5792____closed__4); l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonDocumentFilter____x40_Lean_Data_Lsp_Basic___hyg_5792____closed__5 = _init_l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonDocumentFilter____x40_Lean_Data_Lsp_Basic___hyg_5792____closed__5(); lean_mark_persistent(l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonDocumentFilter____x40_Lean_Data_Lsp_Basic___hyg_5792____closed__5); l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonDocumentFilter____x40_Lean_Data_Lsp_Basic___hyg_5792____closed__6 = _init_l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonDocumentFilter____x40_Lean_Data_Lsp_Basic___hyg_5792____closed__6(); lean_mark_persistent(l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonDocumentFilter____x40_Lean_Data_Lsp_Basic___hyg_5792____closed__6); l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonDocumentFilter____x40_Lean_Data_Lsp_Basic___hyg_5792____closed__7 = _init_l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonDocumentFilter____x40_Lean_Data_Lsp_Basic___hyg_5792____closed__7(); lean_mark_persistent(l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonDocumentFilter____x40_Lean_Data_Lsp_Basic___hyg_5792____closed__7); l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonDocumentFilter____x40_Lean_Data_Lsp_Basic___hyg_5792____closed__8 = _init_l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonDocumentFilter____x40_Lean_Data_Lsp_Basic___hyg_5792____closed__8(); lean_mark_persistent(l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonDocumentFilter____x40_Lean_Data_Lsp_Basic___hyg_5792____closed__8); l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonDocumentFilter____x40_Lean_Data_Lsp_Basic___hyg_5792____closed__9 = _init_l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonDocumentFilter____x40_Lean_Data_Lsp_Basic___hyg_5792____closed__9(); lean_mark_persistent(l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonDocumentFilter____x40_Lean_Data_Lsp_Basic___hyg_5792____closed__9); l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonDocumentFilter____x40_Lean_Data_Lsp_Basic___hyg_5792____closed__10 = _init_l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonDocumentFilter____x40_Lean_Data_Lsp_Basic___hyg_5792____closed__10(); lean_mark_persistent(l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonDocumentFilter____x40_Lean_Data_Lsp_Basic___hyg_5792____closed__10); l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonDocumentFilter____x40_Lean_Data_Lsp_Basic___hyg_5792____closed__11 = _init_l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonDocumentFilter____x40_Lean_Data_Lsp_Basic___hyg_5792____closed__11(); lean_mark_persistent(l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonDocumentFilter____x40_Lean_Data_Lsp_Basic___hyg_5792____closed__11); l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonDocumentFilter____x40_Lean_Data_Lsp_Basic___hyg_5792____closed__12 = _init_l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonDocumentFilter____x40_Lean_Data_Lsp_Basic___hyg_5792____closed__12(); lean_mark_persistent(l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonDocumentFilter____x40_Lean_Data_Lsp_Basic___hyg_5792____closed__12); l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonDocumentFilter____x40_Lean_Data_Lsp_Basic___hyg_5792____closed__13 = _init_l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonDocumentFilter____x40_Lean_Data_Lsp_Basic___hyg_5792____closed__13(); lean_mark_persistent(l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonDocumentFilter____x40_Lean_Data_Lsp_Basic___hyg_5792____closed__13); l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonDocumentFilter____x40_Lean_Data_Lsp_Basic___hyg_5792____closed__14 = _init_l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonDocumentFilter____x40_Lean_Data_Lsp_Basic___hyg_5792____closed__14(); lean_mark_persistent(l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonDocumentFilter____x40_Lean_Data_Lsp_Basic___hyg_5792____closed__14); l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonDocumentFilter____x40_Lean_Data_Lsp_Basic___hyg_5792____closed__15 = _init_l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonDocumentFilter____x40_Lean_Data_Lsp_Basic___hyg_5792____closed__15(); lean_mark_persistent(l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonDocumentFilter____x40_Lean_Data_Lsp_Basic___hyg_5792____closed__15); l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonDocumentFilter____x40_Lean_Data_Lsp_Basic___hyg_5792____closed__16 = _init_l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonDocumentFilter____x40_Lean_Data_Lsp_Basic___hyg_5792____closed__16(); lean_mark_persistent(l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonDocumentFilter____x40_Lean_Data_Lsp_Basic___hyg_5792____closed__16); l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonDocumentFilter____x40_Lean_Data_Lsp_Basic___hyg_5792____closed__17 = _init_l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonDocumentFilter____x40_Lean_Data_Lsp_Basic___hyg_5792____closed__17(); lean_mark_persistent(l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonDocumentFilter____x40_Lean_Data_Lsp_Basic___hyg_5792____closed__17); l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonDocumentFilter____x40_Lean_Data_Lsp_Basic___hyg_5792____closed__18 = _init_l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonDocumentFilter____x40_Lean_Data_Lsp_Basic___hyg_5792____closed__18(); lean_mark_persistent(l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonDocumentFilter____x40_Lean_Data_Lsp_Basic___hyg_5792____closed__18); l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonDocumentFilter____x40_Lean_Data_Lsp_Basic___hyg_5792____closed__19 = _init_l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonDocumentFilter____x40_Lean_Data_Lsp_Basic___hyg_5792____closed__19(); lean_mark_persistent(l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonDocumentFilter____x40_Lean_Data_Lsp_Basic___hyg_5792____closed__19); l_Lean_Lsp_instFromJsonDocumentFilter___closed__1 = _init_l_Lean_Lsp_instFromJsonDocumentFilter___closed__1(); lean_mark_persistent(l_Lean_Lsp_instFromJsonDocumentFilter___closed__1); l_Lean_Lsp_instFromJsonDocumentFilter = _init_l_Lean_Lsp_instFromJsonDocumentFilter(); lean_mark_persistent(l_Lean_Lsp_instFromJsonDocumentFilter); l_Lean_Lsp_StaticRegistrationOptions_id_x3f___default = _init_l_Lean_Lsp_StaticRegistrationOptions_id_x3f___default(); lean_mark_persistent(l_Lean_Lsp_StaticRegistrationOptions_id_x3f___default); l_Lean_Lsp_instToJsonStaticRegistrationOptions___closed__1 = _init_l_Lean_Lsp_instToJsonStaticRegistrationOptions___closed__1(); lean_mark_persistent(l_Lean_Lsp_instToJsonStaticRegistrationOptions___closed__1); l_Lean_Lsp_instToJsonStaticRegistrationOptions = _init_l_Lean_Lsp_instToJsonStaticRegistrationOptions(); lean_mark_persistent(l_Lean_Lsp_instToJsonStaticRegistrationOptions); l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonStaticRegistrationOptions____x40_Lean_Data_Lsp_Basic___hyg_6012____closed__1 = _init_l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonStaticRegistrationOptions____x40_Lean_Data_Lsp_Basic___hyg_6012____closed__1(); lean_mark_persistent(l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonStaticRegistrationOptions____x40_Lean_Data_Lsp_Basic___hyg_6012____closed__1); l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonStaticRegistrationOptions____x40_Lean_Data_Lsp_Basic___hyg_6012____closed__2 = _init_l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonStaticRegistrationOptions____x40_Lean_Data_Lsp_Basic___hyg_6012____closed__2(); lean_mark_persistent(l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonStaticRegistrationOptions____x40_Lean_Data_Lsp_Basic___hyg_6012____closed__2); l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonStaticRegistrationOptions____x40_Lean_Data_Lsp_Basic___hyg_6012____closed__3 = _init_l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonStaticRegistrationOptions____x40_Lean_Data_Lsp_Basic___hyg_6012____closed__3(); lean_mark_persistent(l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonStaticRegistrationOptions____x40_Lean_Data_Lsp_Basic___hyg_6012____closed__3); l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonStaticRegistrationOptions____x40_Lean_Data_Lsp_Basic___hyg_6012____closed__4 = _init_l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonStaticRegistrationOptions____x40_Lean_Data_Lsp_Basic___hyg_6012____closed__4(); lean_mark_persistent(l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonStaticRegistrationOptions____x40_Lean_Data_Lsp_Basic___hyg_6012____closed__4); l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonStaticRegistrationOptions____x40_Lean_Data_Lsp_Basic___hyg_6012____closed__5 = _init_l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonStaticRegistrationOptions____x40_Lean_Data_Lsp_Basic___hyg_6012____closed__5(); lean_mark_persistent(l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonStaticRegistrationOptions____x40_Lean_Data_Lsp_Basic___hyg_6012____closed__5); l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonStaticRegistrationOptions____x40_Lean_Data_Lsp_Basic___hyg_6012____closed__6 = _init_l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonStaticRegistrationOptions____x40_Lean_Data_Lsp_Basic___hyg_6012____closed__6(); lean_mark_persistent(l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonStaticRegistrationOptions____x40_Lean_Data_Lsp_Basic___hyg_6012____closed__6); l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonStaticRegistrationOptions____x40_Lean_Data_Lsp_Basic___hyg_6012____closed__7 = _init_l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonStaticRegistrationOptions____x40_Lean_Data_Lsp_Basic___hyg_6012____closed__7(); lean_mark_persistent(l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonStaticRegistrationOptions____x40_Lean_Data_Lsp_Basic___hyg_6012____closed__7); l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonStaticRegistrationOptions____x40_Lean_Data_Lsp_Basic___hyg_6012____closed__8 = _init_l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonStaticRegistrationOptions____x40_Lean_Data_Lsp_Basic___hyg_6012____closed__8(); lean_mark_persistent(l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonStaticRegistrationOptions____x40_Lean_Data_Lsp_Basic___hyg_6012____closed__8); l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonStaticRegistrationOptions____x40_Lean_Data_Lsp_Basic___hyg_6012____closed__9 = _init_l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonStaticRegistrationOptions____x40_Lean_Data_Lsp_Basic___hyg_6012____closed__9(); lean_mark_persistent(l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonStaticRegistrationOptions____x40_Lean_Data_Lsp_Basic___hyg_6012____closed__9); l_Lean_Lsp_instFromJsonStaticRegistrationOptions___closed__1 = _init_l_Lean_Lsp_instFromJsonStaticRegistrationOptions___closed__1(); lean_mark_persistent(l_Lean_Lsp_instFromJsonStaticRegistrationOptions___closed__1); l_Lean_Lsp_instFromJsonStaticRegistrationOptions = _init_l_Lean_Lsp_instFromJsonStaticRegistrationOptions(); lean_mark_persistent(l_Lean_Lsp_instFromJsonStaticRegistrationOptions); l_Lean_Lsp_TextDocumentRegistrationOptions_documentSelector_x3f___default = _init_l_Lean_Lsp_TextDocumentRegistrationOptions_documentSelector_x3f___default(); lean_mark_persistent(l_Lean_Lsp_TextDocumentRegistrationOptions_documentSelector_x3f___default); l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_toJsonTextDocumentRegistrationOptions____x40_Lean_Data_Lsp_Basic___hyg_6090____closed__1 = _init_l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_toJsonTextDocumentRegistrationOptions____x40_Lean_Data_Lsp_Basic___hyg_6090____closed__1(); lean_mark_persistent(l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_toJsonTextDocumentRegistrationOptions____x40_Lean_Data_Lsp_Basic___hyg_6090____closed__1); l_Lean_Lsp_instToJsonTextDocumentRegistrationOptions___closed__1 = _init_l_Lean_Lsp_instToJsonTextDocumentRegistrationOptions___closed__1(); lean_mark_persistent(l_Lean_Lsp_instToJsonTextDocumentRegistrationOptions___closed__1); l_Lean_Lsp_instToJsonTextDocumentRegistrationOptions = _init_l_Lean_Lsp_instToJsonTextDocumentRegistrationOptions(); lean_mark_persistent(l_Lean_Lsp_instToJsonTextDocumentRegistrationOptions); l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonTextDocumentRegistrationOptions____x40_Lean_Data_Lsp_Basic___hyg_6125____closed__1 = _init_l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonTextDocumentRegistrationOptions____x40_Lean_Data_Lsp_Basic___hyg_6125____closed__1(); lean_mark_persistent(l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonTextDocumentRegistrationOptions____x40_Lean_Data_Lsp_Basic___hyg_6125____closed__1); l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonTextDocumentRegistrationOptions____x40_Lean_Data_Lsp_Basic___hyg_6125____closed__2 = _init_l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonTextDocumentRegistrationOptions____x40_Lean_Data_Lsp_Basic___hyg_6125____closed__2(); lean_mark_persistent(l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonTextDocumentRegistrationOptions____x40_Lean_Data_Lsp_Basic___hyg_6125____closed__2); l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonTextDocumentRegistrationOptions____x40_Lean_Data_Lsp_Basic___hyg_6125____closed__3 = _init_l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonTextDocumentRegistrationOptions____x40_Lean_Data_Lsp_Basic___hyg_6125____closed__3(); lean_mark_persistent(l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonTextDocumentRegistrationOptions____x40_Lean_Data_Lsp_Basic___hyg_6125____closed__3); l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonTextDocumentRegistrationOptions____x40_Lean_Data_Lsp_Basic___hyg_6125____closed__4 = _init_l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonTextDocumentRegistrationOptions____x40_Lean_Data_Lsp_Basic___hyg_6125____closed__4(); lean_mark_persistent(l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonTextDocumentRegistrationOptions____x40_Lean_Data_Lsp_Basic___hyg_6125____closed__4); l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonTextDocumentRegistrationOptions____x40_Lean_Data_Lsp_Basic___hyg_6125____closed__5 = _init_l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonTextDocumentRegistrationOptions____x40_Lean_Data_Lsp_Basic___hyg_6125____closed__5(); lean_mark_persistent(l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonTextDocumentRegistrationOptions____x40_Lean_Data_Lsp_Basic___hyg_6125____closed__5); l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonTextDocumentRegistrationOptions____x40_Lean_Data_Lsp_Basic___hyg_6125____closed__6 = _init_l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonTextDocumentRegistrationOptions____x40_Lean_Data_Lsp_Basic___hyg_6125____closed__6(); lean_mark_persistent(l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonTextDocumentRegistrationOptions____x40_Lean_Data_Lsp_Basic___hyg_6125____closed__6); l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonTextDocumentRegistrationOptions____x40_Lean_Data_Lsp_Basic___hyg_6125____closed__7 = _init_l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonTextDocumentRegistrationOptions____x40_Lean_Data_Lsp_Basic___hyg_6125____closed__7(); lean_mark_persistent(l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonTextDocumentRegistrationOptions____x40_Lean_Data_Lsp_Basic___hyg_6125____closed__7); l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonTextDocumentRegistrationOptions____x40_Lean_Data_Lsp_Basic___hyg_6125____closed__8 = _init_l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonTextDocumentRegistrationOptions____x40_Lean_Data_Lsp_Basic___hyg_6125____closed__8(); lean_mark_persistent(l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonTextDocumentRegistrationOptions____x40_Lean_Data_Lsp_Basic___hyg_6125____closed__8); l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonTextDocumentRegistrationOptions____x40_Lean_Data_Lsp_Basic___hyg_6125____closed__9 = _init_l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonTextDocumentRegistrationOptions____x40_Lean_Data_Lsp_Basic___hyg_6125____closed__9(); lean_mark_persistent(l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonTextDocumentRegistrationOptions____x40_Lean_Data_Lsp_Basic___hyg_6125____closed__9); l_Lean_Lsp_instFromJsonTextDocumentRegistrationOptions___closed__1 = _init_l_Lean_Lsp_instFromJsonTextDocumentRegistrationOptions___closed__1(); lean_mark_persistent(l_Lean_Lsp_instFromJsonTextDocumentRegistrationOptions___closed__1); l_Lean_Lsp_instFromJsonTextDocumentRegistrationOptions = _init_l_Lean_Lsp_instFromJsonTextDocumentRegistrationOptions(); lean_mark_persistent(l_Lean_Lsp_instFromJsonTextDocumentRegistrationOptions); l_Lean_Lsp_MarkupKind_noConfusion___rarg___closed__1 = _init_l_Lean_Lsp_MarkupKind_noConfusion___rarg___closed__1(); lean_mark_persistent(l_Lean_Lsp_MarkupKind_noConfusion___rarg___closed__1); l_Lean_Lsp_instFromJsonMarkupKind___closed__1 = _init_l_Lean_Lsp_instFromJsonMarkupKind___closed__1(); lean_mark_persistent(l_Lean_Lsp_instFromJsonMarkupKind___closed__1); l_Lean_Lsp_instFromJsonMarkupKind___closed__2 = _init_l_Lean_Lsp_instFromJsonMarkupKind___closed__2(); lean_mark_persistent(l_Lean_Lsp_instFromJsonMarkupKind___closed__2); l_Lean_Lsp_instFromJsonMarkupKind___closed__3 = _init_l_Lean_Lsp_instFromJsonMarkupKind___closed__3(); lean_mark_persistent(l_Lean_Lsp_instFromJsonMarkupKind___closed__3); l_Lean_Lsp_instFromJsonMarkupKind___closed__4 = _init_l_Lean_Lsp_instFromJsonMarkupKind___closed__4(); lean_mark_persistent(l_Lean_Lsp_instFromJsonMarkupKind___closed__4); l_Lean_Lsp_instFromJsonMarkupKind___closed__5 = _init_l_Lean_Lsp_instFromJsonMarkupKind___closed__5(); lean_mark_persistent(l_Lean_Lsp_instFromJsonMarkupKind___closed__5); l_Lean_Lsp_instFromJsonMarkupKind___closed__6 = _init_l_Lean_Lsp_instFromJsonMarkupKind___closed__6(); lean_mark_persistent(l_Lean_Lsp_instFromJsonMarkupKind___closed__6); l_Lean_Lsp_instToJsonMarkupKind___closed__1 = _init_l_Lean_Lsp_instToJsonMarkupKind___closed__1(); lean_mark_persistent(l_Lean_Lsp_instToJsonMarkupKind___closed__1); l_Lean_Lsp_instToJsonMarkupKind___closed__2 = _init_l_Lean_Lsp_instToJsonMarkupKind___closed__2(); lean_mark_persistent(l_Lean_Lsp_instToJsonMarkupKind___closed__2); l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_toJsonMarkupContent____x40_Lean_Data_Lsp_Basic___hyg_6318____closed__1 = _init_l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_toJsonMarkupContent____x40_Lean_Data_Lsp_Basic___hyg_6318____closed__1(); lean_mark_persistent(l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_toJsonMarkupContent____x40_Lean_Data_Lsp_Basic___hyg_6318____closed__1); l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_toJsonMarkupContent____x40_Lean_Data_Lsp_Basic___hyg_6318____closed__2 = _init_l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_toJsonMarkupContent____x40_Lean_Data_Lsp_Basic___hyg_6318____closed__2(); lean_mark_persistent(l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_toJsonMarkupContent____x40_Lean_Data_Lsp_Basic___hyg_6318____closed__2); l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_toJsonMarkupContent____x40_Lean_Data_Lsp_Basic___hyg_6318____closed__3 = _init_l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_toJsonMarkupContent____x40_Lean_Data_Lsp_Basic___hyg_6318____closed__3(); lean_mark_persistent(l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_toJsonMarkupContent____x40_Lean_Data_Lsp_Basic___hyg_6318____closed__3); l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_toJsonMarkupContent____x40_Lean_Data_Lsp_Basic___hyg_6318____closed__4 = _init_l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_toJsonMarkupContent____x40_Lean_Data_Lsp_Basic___hyg_6318____closed__4(); lean_mark_persistent(l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_toJsonMarkupContent____x40_Lean_Data_Lsp_Basic___hyg_6318____closed__4); l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_toJsonMarkupContent____x40_Lean_Data_Lsp_Basic___hyg_6318____closed__5 = _init_l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_toJsonMarkupContent____x40_Lean_Data_Lsp_Basic___hyg_6318____closed__5(); lean_mark_persistent(l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_toJsonMarkupContent____x40_Lean_Data_Lsp_Basic___hyg_6318____closed__5); l_Lean_Lsp_instToJsonMarkupContent___closed__1 = _init_l_Lean_Lsp_instToJsonMarkupContent___closed__1(); lean_mark_persistent(l_Lean_Lsp_instToJsonMarkupContent___closed__1); l_Lean_Lsp_instToJsonMarkupContent = _init_l_Lean_Lsp_instToJsonMarkupContent(); lean_mark_persistent(l_Lean_Lsp_instToJsonMarkupContent); l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonMarkupContent____x40_Lean_Data_Lsp_Basic___hyg_6368____closed__1 = _init_l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonMarkupContent____x40_Lean_Data_Lsp_Basic___hyg_6368____closed__1(); lean_mark_persistent(l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonMarkupContent____x40_Lean_Data_Lsp_Basic___hyg_6368____closed__1); l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonMarkupContent____x40_Lean_Data_Lsp_Basic___hyg_6368____closed__2 = _init_l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonMarkupContent____x40_Lean_Data_Lsp_Basic___hyg_6368____closed__2(); lean_mark_persistent(l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonMarkupContent____x40_Lean_Data_Lsp_Basic___hyg_6368____closed__2); l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonMarkupContent____x40_Lean_Data_Lsp_Basic___hyg_6368____closed__3 = _init_l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonMarkupContent____x40_Lean_Data_Lsp_Basic___hyg_6368____closed__3(); lean_mark_persistent(l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonMarkupContent____x40_Lean_Data_Lsp_Basic___hyg_6368____closed__3); l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonMarkupContent____x40_Lean_Data_Lsp_Basic___hyg_6368____closed__4 = _init_l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonMarkupContent____x40_Lean_Data_Lsp_Basic___hyg_6368____closed__4(); lean_mark_persistent(l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonMarkupContent____x40_Lean_Data_Lsp_Basic___hyg_6368____closed__4); l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonMarkupContent____x40_Lean_Data_Lsp_Basic___hyg_6368____closed__5 = _init_l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonMarkupContent____x40_Lean_Data_Lsp_Basic___hyg_6368____closed__5(); lean_mark_persistent(l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonMarkupContent____x40_Lean_Data_Lsp_Basic___hyg_6368____closed__5); l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonMarkupContent____x40_Lean_Data_Lsp_Basic___hyg_6368____closed__6 = _init_l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonMarkupContent____x40_Lean_Data_Lsp_Basic___hyg_6368____closed__6(); lean_mark_persistent(l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonMarkupContent____x40_Lean_Data_Lsp_Basic___hyg_6368____closed__6); l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonMarkupContent____x40_Lean_Data_Lsp_Basic___hyg_6368____closed__7 = _init_l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonMarkupContent____x40_Lean_Data_Lsp_Basic___hyg_6368____closed__7(); lean_mark_persistent(l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonMarkupContent____x40_Lean_Data_Lsp_Basic___hyg_6368____closed__7); l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonMarkupContent____x40_Lean_Data_Lsp_Basic___hyg_6368____closed__8 = _init_l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonMarkupContent____x40_Lean_Data_Lsp_Basic___hyg_6368____closed__8(); lean_mark_persistent(l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonMarkupContent____x40_Lean_Data_Lsp_Basic___hyg_6368____closed__8); l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonMarkupContent____x40_Lean_Data_Lsp_Basic___hyg_6368____closed__9 = _init_l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonMarkupContent____x40_Lean_Data_Lsp_Basic___hyg_6368____closed__9(); lean_mark_persistent(l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonMarkupContent____x40_Lean_Data_Lsp_Basic___hyg_6368____closed__9); l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonMarkupContent____x40_Lean_Data_Lsp_Basic___hyg_6368____closed__10 = _init_l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonMarkupContent____x40_Lean_Data_Lsp_Basic___hyg_6368____closed__10(); lean_mark_persistent(l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonMarkupContent____x40_Lean_Data_Lsp_Basic___hyg_6368____closed__10); l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonMarkupContent____x40_Lean_Data_Lsp_Basic___hyg_6368____closed__11 = _init_l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonMarkupContent____x40_Lean_Data_Lsp_Basic___hyg_6368____closed__11(); lean_mark_persistent(l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonMarkupContent____x40_Lean_Data_Lsp_Basic___hyg_6368____closed__11); l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonMarkupContent____x40_Lean_Data_Lsp_Basic___hyg_6368____closed__12 = _init_l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonMarkupContent____x40_Lean_Data_Lsp_Basic___hyg_6368____closed__12(); lean_mark_persistent(l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonMarkupContent____x40_Lean_Data_Lsp_Basic___hyg_6368____closed__12); l_Lean_Lsp_instFromJsonMarkupContent___closed__1 = _init_l_Lean_Lsp_instFromJsonMarkupContent___closed__1(); lean_mark_persistent(l_Lean_Lsp_instFromJsonMarkupContent___closed__1); l_Lean_Lsp_instFromJsonMarkupContent = _init_l_Lean_Lsp_instFromJsonMarkupContent(); lean_mark_persistent(l_Lean_Lsp_instFromJsonMarkupContent); l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_toJsonProgressParams____x40_Lean_Data_Lsp_Basic___hyg_6503____rarg___closed__1 = _init_l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_toJsonProgressParams____x40_Lean_Data_Lsp_Basic___hyg_6503____rarg___closed__1(); lean_mark_persistent(l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_toJsonProgressParams____x40_Lean_Data_Lsp_Basic___hyg_6503____rarg___closed__1); l_Lean_Lsp_WorkDoneProgressReport_kind___default___closed__1 = _init_l_Lean_Lsp_WorkDoneProgressReport_kind___default___closed__1(); lean_mark_persistent(l_Lean_Lsp_WorkDoneProgressReport_kind___default___closed__1); l_Lean_Lsp_WorkDoneProgressReport_kind___default = _init_l_Lean_Lsp_WorkDoneProgressReport_kind___default(); lean_mark_persistent(l_Lean_Lsp_WorkDoneProgressReport_kind___default); l_Lean_Lsp_WorkDoneProgressReport_message_x3f___default = _init_l_Lean_Lsp_WorkDoneProgressReport_message_x3f___default(); lean_mark_persistent(l_Lean_Lsp_WorkDoneProgressReport_message_x3f___default); l_Lean_Lsp_WorkDoneProgressReport_cancellable___default = _init_l_Lean_Lsp_WorkDoneProgressReport_cancellable___default(); l_Lean_Lsp_WorkDoneProgressReport_percentage_x3f___default = _init_l_Lean_Lsp_WorkDoneProgressReport_percentage_x3f___default(); lean_mark_persistent(l_Lean_Lsp_WorkDoneProgressReport_percentage_x3f___default); l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_toJsonWorkDoneProgressReport____x40_Lean_Data_Lsp_Basic___hyg_6600____closed__1 = _init_l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_toJsonWorkDoneProgressReport____x40_Lean_Data_Lsp_Basic___hyg_6600____closed__1(); lean_mark_persistent(l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_toJsonWorkDoneProgressReport____x40_Lean_Data_Lsp_Basic___hyg_6600____closed__1); l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_toJsonWorkDoneProgressReport____x40_Lean_Data_Lsp_Basic___hyg_6600____closed__2 = _init_l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_toJsonWorkDoneProgressReport____x40_Lean_Data_Lsp_Basic___hyg_6600____closed__2(); lean_mark_persistent(l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_toJsonWorkDoneProgressReport____x40_Lean_Data_Lsp_Basic___hyg_6600____closed__2); l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_toJsonWorkDoneProgressReport____x40_Lean_Data_Lsp_Basic___hyg_6600____closed__3 = _init_l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_toJsonWorkDoneProgressReport____x40_Lean_Data_Lsp_Basic___hyg_6600____closed__3(); lean_mark_persistent(l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_toJsonWorkDoneProgressReport____x40_Lean_Data_Lsp_Basic___hyg_6600____closed__3); l_Lean_Lsp_instToJsonWorkDoneProgressReport___closed__1 = _init_l_Lean_Lsp_instToJsonWorkDoneProgressReport___closed__1(); lean_mark_persistent(l_Lean_Lsp_instToJsonWorkDoneProgressReport___closed__1); l_Lean_Lsp_instToJsonWorkDoneProgressReport = _init_l_Lean_Lsp_instToJsonWorkDoneProgressReport(); lean_mark_persistent(l_Lean_Lsp_instToJsonWorkDoneProgressReport); l_Lean_Lsp_WorkDoneProgressBegin_kind___default___closed__1 = _init_l_Lean_Lsp_WorkDoneProgressBegin_kind___default___closed__1(); lean_mark_persistent(l_Lean_Lsp_WorkDoneProgressBegin_kind___default___closed__1); l_Lean_Lsp_WorkDoneProgressBegin_kind___default = _init_l_Lean_Lsp_WorkDoneProgressBegin_kind___default(); lean_mark_persistent(l_Lean_Lsp_WorkDoneProgressBegin_kind___default); l_Lean_Lsp_instToJsonWorkDoneProgressBegin___closed__1 = _init_l_Lean_Lsp_instToJsonWorkDoneProgressBegin___closed__1(); lean_mark_persistent(l_Lean_Lsp_instToJsonWorkDoneProgressBegin___closed__1); l_Lean_Lsp_instToJsonWorkDoneProgressBegin = _init_l_Lean_Lsp_instToJsonWorkDoneProgressBegin(); lean_mark_persistent(l_Lean_Lsp_instToJsonWorkDoneProgressBegin); l_Lean_Lsp_WorkDoneProgressEnd_kind___default = _init_l_Lean_Lsp_WorkDoneProgressEnd_kind___default(); lean_mark_persistent(l_Lean_Lsp_WorkDoneProgressEnd_kind___default); l_Lean_Lsp_WorkDoneProgressEnd_message_x3f___default = _init_l_Lean_Lsp_WorkDoneProgressEnd_message_x3f___default(); lean_mark_persistent(l_Lean_Lsp_WorkDoneProgressEnd_message_x3f___default); l_Lean_Lsp_instToJsonWorkDoneProgressEnd___closed__1 = _init_l_Lean_Lsp_instToJsonWorkDoneProgressEnd___closed__1(); lean_mark_persistent(l_Lean_Lsp_instToJsonWorkDoneProgressEnd___closed__1); l_Lean_Lsp_instToJsonWorkDoneProgressEnd = _init_l_Lean_Lsp_instToJsonWorkDoneProgressEnd(); lean_mark_persistent(l_Lean_Lsp_instToJsonWorkDoneProgressEnd); l_Lean_Lsp_WorkDoneProgressParams_workDoneToken_x3f___default = _init_l_Lean_Lsp_WorkDoneProgressParams_workDoneToken_x3f___default(); lean_mark_persistent(l_Lean_Lsp_WorkDoneProgressParams_workDoneToken_x3f___default); l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_toJsonWorkDoneProgressParams____x40_Lean_Data_Lsp_Basic___hyg_6839____closed__1 = _init_l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_toJsonWorkDoneProgressParams____x40_Lean_Data_Lsp_Basic___hyg_6839____closed__1(); lean_mark_persistent(l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_toJsonWorkDoneProgressParams____x40_Lean_Data_Lsp_Basic___hyg_6839____closed__1); l_Lean_Lsp_instToJsonWorkDoneProgressParams___closed__1 = _init_l_Lean_Lsp_instToJsonWorkDoneProgressParams___closed__1(); lean_mark_persistent(l_Lean_Lsp_instToJsonWorkDoneProgressParams___closed__1); l_Lean_Lsp_instToJsonWorkDoneProgressParams = _init_l_Lean_Lsp_instToJsonWorkDoneProgressParams(); lean_mark_persistent(l_Lean_Lsp_instToJsonWorkDoneProgressParams); l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonWorkDoneProgressParams____x40_Lean_Data_Lsp_Basic___hyg_6868____closed__1 = _init_l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonWorkDoneProgressParams____x40_Lean_Data_Lsp_Basic___hyg_6868____closed__1(); lean_mark_persistent(l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonWorkDoneProgressParams____x40_Lean_Data_Lsp_Basic___hyg_6868____closed__1); l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonWorkDoneProgressParams____x40_Lean_Data_Lsp_Basic___hyg_6868____closed__2 = _init_l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonWorkDoneProgressParams____x40_Lean_Data_Lsp_Basic___hyg_6868____closed__2(); lean_mark_persistent(l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonWorkDoneProgressParams____x40_Lean_Data_Lsp_Basic___hyg_6868____closed__2); l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonWorkDoneProgressParams____x40_Lean_Data_Lsp_Basic___hyg_6868____closed__3 = _init_l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonWorkDoneProgressParams____x40_Lean_Data_Lsp_Basic___hyg_6868____closed__3(); lean_mark_persistent(l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonWorkDoneProgressParams____x40_Lean_Data_Lsp_Basic___hyg_6868____closed__3); l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonWorkDoneProgressParams____x40_Lean_Data_Lsp_Basic___hyg_6868____closed__4 = _init_l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonWorkDoneProgressParams____x40_Lean_Data_Lsp_Basic___hyg_6868____closed__4(); lean_mark_persistent(l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonWorkDoneProgressParams____x40_Lean_Data_Lsp_Basic___hyg_6868____closed__4); l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonWorkDoneProgressParams____x40_Lean_Data_Lsp_Basic___hyg_6868____closed__5 = _init_l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonWorkDoneProgressParams____x40_Lean_Data_Lsp_Basic___hyg_6868____closed__5(); lean_mark_persistent(l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonWorkDoneProgressParams____x40_Lean_Data_Lsp_Basic___hyg_6868____closed__5); l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonWorkDoneProgressParams____x40_Lean_Data_Lsp_Basic___hyg_6868____closed__6 = _init_l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonWorkDoneProgressParams____x40_Lean_Data_Lsp_Basic___hyg_6868____closed__6(); lean_mark_persistent(l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonWorkDoneProgressParams____x40_Lean_Data_Lsp_Basic___hyg_6868____closed__6); l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonWorkDoneProgressParams____x40_Lean_Data_Lsp_Basic___hyg_6868____closed__7 = _init_l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonWorkDoneProgressParams____x40_Lean_Data_Lsp_Basic___hyg_6868____closed__7(); lean_mark_persistent(l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonWorkDoneProgressParams____x40_Lean_Data_Lsp_Basic___hyg_6868____closed__7); l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonWorkDoneProgressParams____x40_Lean_Data_Lsp_Basic___hyg_6868____closed__8 = _init_l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonWorkDoneProgressParams____x40_Lean_Data_Lsp_Basic___hyg_6868____closed__8(); lean_mark_persistent(l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonWorkDoneProgressParams____x40_Lean_Data_Lsp_Basic___hyg_6868____closed__8); l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonWorkDoneProgressParams____x40_Lean_Data_Lsp_Basic___hyg_6868____closed__9 = _init_l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonWorkDoneProgressParams____x40_Lean_Data_Lsp_Basic___hyg_6868____closed__9(); lean_mark_persistent(l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonWorkDoneProgressParams____x40_Lean_Data_Lsp_Basic___hyg_6868____closed__9); l_Lean_Lsp_instFromJsonWorkDoneProgressParams___closed__1 = _init_l_Lean_Lsp_instFromJsonWorkDoneProgressParams___closed__1(); lean_mark_persistent(l_Lean_Lsp_instFromJsonWorkDoneProgressParams___closed__1); l_Lean_Lsp_instFromJsonWorkDoneProgressParams = _init_l_Lean_Lsp_instFromJsonWorkDoneProgressParams(); lean_mark_persistent(l_Lean_Lsp_instFromJsonWorkDoneProgressParams); l_Lean_Lsp_PartialResultParams_partialResultToken_x3f___default = _init_l_Lean_Lsp_PartialResultParams_partialResultToken_x3f___default(); lean_mark_persistent(l_Lean_Lsp_PartialResultParams_partialResultToken_x3f___default); l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_toJsonPartialResultParams____x40_Lean_Data_Lsp_Basic___hyg_6946____closed__1 = _init_l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_toJsonPartialResultParams____x40_Lean_Data_Lsp_Basic___hyg_6946____closed__1(); lean_mark_persistent(l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_toJsonPartialResultParams____x40_Lean_Data_Lsp_Basic___hyg_6946____closed__1); l_Lean_Lsp_instToJsonPartialResultParams___closed__1 = _init_l_Lean_Lsp_instToJsonPartialResultParams___closed__1(); lean_mark_persistent(l_Lean_Lsp_instToJsonPartialResultParams___closed__1); l_Lean_Lsp_instToJsonPartialResultParams = _init_l_Lean_Lsp_instToJsonPartialResultParams(); lean_mark_persistent(l_Lean_Lsp_instToJsonPartialResultParams); l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonPartialResultParams____x40_Lean_Data_Lsp_Basic___hyg_6975____closed__1 = _init_l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonPartialResultParams____x40_Lean_Data_Lsp_Basic___hyg_6975____closed__1(); lean_mark_persistent(l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonPartialResultParams____x40_Lean_Data_Lsp_Basic___hyg_6975____closed__1); l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonPartialResultParams____x40_Lean_Data_Lsp_Basic___hyg_6975____closed__2 = _init_l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonPartialResultParams____x40_Lean_Data_Lsp_Basic___hyg_6975____closed__2(); lean_mark_persistent(l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonPartialResultParams____x40_Lean_Data_Lsp_Basic___hyg_6975____closed__2); l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonPartialResultParams____x40_Lean_Data_Lsp_Basic___hyg_6975____closed__3 = _init_l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonPartialResultParams____x40_Lean_Data_Lsp_Basic___hyg_6975____closed__3(); lean_mark_persistent(l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonPartialResultParams____x40_Lean_Data_Lsp_Basic___hyg_6975____closed__3); l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonPartialResultParams____x40_Lean_Data_Lsp_Basic___hyg_6975____closed__4 = _init_l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonPartialResultParams____x40_Lean_Data_Lsp_Basic___hyg_6975____closed__4(); lean_mark_persistent(l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonPartialResultParams____x40_Lean_Data_Lsp_Basic___hyg_6975____closed__4); l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonPartialResultParams____x40_Lean_Data_Lsp_Basic___hyg_6975____closed__5 = _init_l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonPartialResultParams____x40_Lean_Data_Lsp_Basic___hyg_6975____closed__5(); lean_mark_persistent(l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonPartialResultParams____x40_Lean_Data_Lsp_Basic___hyg_6975____closed__5); l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonPartialResultParams____x40_Lean_Data_Lsp_Basic___hyg_6975____closed__6 = _init_l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonPartialResultParams____x40_Lean_Data_Lsp_Basic___hyg_6975____closed__6(); lean_mark_persistent(l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonPartialResultParams____x40_Lean_Data_Lsp_Basic___hyg_6975____closed__6); l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonPartialResultParams____x40_Lean_Data_Lsp_Basic___hyg_6975____closed__7 = _init_l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonPartialResultParams____x40_Lean_Data_Lsp_Basic___hyg_6975____closed__7(); lean_mark_persistent(l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonPartialResultParams____x40_Lean_Data_Lsp_Basic___hyg_6975____closed__7); l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonPartialResultParams____x40_Lean_Data_Lsp_Basic___hyg_6975____closed__8 = _init_l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonPartialResultParams____x40_Lean_Data_Lsp_Basic___hyg_6975____closed__8(); lean_mark_persistent(l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonPartialResultParams____x40_Lean_Data_Lsp_Basic___hyg_6975____closed__8); l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonPartialResultParams____x40_Lean_Data_Lsp_Basic___hyg_6975____closed__9 = _init_l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonPartialResultParams____x40_Lean_Data_Lsp_Basic___hyg_6975____closed__9(); lean_mark_persistent(l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonPartialResultParams____x40_Lean_Data_Lsp_Basic___hyg_6975____closed__9); l_Lean_Lsp_instFromJsonPartialResultParams___closed__1 = _init_l_Lean_Lsp_instFromJsonPartialResultParams___closed__1(); lean_mark_persistent(l_Lean_Lsp_instFromJsonPartialResultParams___closed__1); l_Lean_Lsp_instFromJsonPartialResultParams = _init_l_Lean_Lsp_instFromJsonPartialResultParams(); lean_mark_persistent(l_Lean_Lsp_instFromJsonPartialResultParams); l_Lean_Lsp_WorkDoneProgressOptions_workDoneProgress___default = _init_l_Lean_Lsp_WorkDoneProgressOptions_workDoneProgress___default(); l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_toJsonWorkDoneProgressOptions____x40_Lean_Data_Lsp_Basic___hyg_7051____closed__1 = _init_l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_toJsonWorkDoneProgressOptions____x40_Lean_Data_Lsp_Basic___hyg_7051____closed__1(); lean_mark_persistent(l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_toJsonWorkDoneProgressOptions____x40_Lean_Data_Lsp_Basic___hyg_7051____closed__1); l_Lean_Lsp_instToJsonWorkDoneProgressOptions___closed__1 = _init_l_Lean_Lsp_instToJsonWorkDoneProgressOptions___closed__1(); lean_mark_persistent(l_Lean_Lsp_instToJsonWorkDoneProgressOptions___closed__1); l_Lean_Lsp_instToJsonWorkDoneProgressOptions = _init_l_Lean_Lsp_instToJsonWorkDoneProgressOptions(); lean_mark_persistent(l_Lean_Lsp_instToJsonWorkDoneProgressOptions); l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonWorkDoneProgressOptions____x40_Lean_Data_Lsp_Basic___hyg_7087____closed__1 = _init_l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonWorkDoneProgressOptions____x40_Lean_Data_Lsp_Basic___hyg_7087____closed__1(); lean_mark_persistent(l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonWorkDoneProgressOptions____x40_Lean_Data_Lsp_Basic___hyg_7087____closed__1); l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonWorkDoneProgressOptions____x40_Lean_Data_Lsp_Basic___hyg_7087____closed__2 = _init_l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonWorkDoneProgressOptions____x40_Lean_Data_Lsp_Basic___hyg_7087____closed__2(); lean_mark_persistent(l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonWorkDoneProgressOptions____x40_Lean_Data_Lsp_Basic___hyg_7087____closed__2); l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonWorkDoneProgressOptions____x40_Lean_Data_Lsp_Basic___hyg_7087____closed__3 = _init_l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonWorkDoneProgressOptions____x40_Lean_Data_Lsp_Basic___hyg_7087____closed__3(); lean_mark_persistent(l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonWorkDoneProgressOptions____x40_Lean_Data_Lsp_Basic___hyg_7087____closed__3); l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonWorkDoneProgressOptions____x40_Lean_Data_Lsp_Basic___hyg_7087____closed__4 = _init_l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonWorkDoneProgressOptions____x40_Lean_Data_Lsp_Basic___hyg_7087____closed__4(); lean_mark_persistent(l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonWorkDoneProgressOptions____x40_Lean_Data_Lsp_Basic___hyg_7087____closed__4); l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonWorkDoneProgressOptions____x40_Lean_Data_Lsp_Basic___hyg_7087____closed__5 = _init_l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonWorkDoneProgressOptions____x40_Lean_Data_Lsp_Basic___hyg_7087____closed__5(); lean_mark_persistent(l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonWorkDoneProgressOptions____x40_Lean_Data_Lsp_Basic___hyg_7087____closed__5); l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonWorkDoneProgressOptions____x40_Lean_Data_Lsp_Basic___hyg_7087____closed__6 = _init_l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonWorkDoneProgressOptions____x40_Lean_Data_Lsp_Basic___hyg_7087____closed__6(); lean_mark_persistent(l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonWorkDoneProgressOptions____x40_Lean_Data_Lsp_Basic___hyg_7087____closed__6); l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonWorkDoneProgressOptions____x40_Lean_Data_Lsp_Basic___hyg_7087____closed__7 = _init_l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonWorkDoneProgressOptions____x40_Lean_Data_Lsp_Basic___hyg_7087____closed__7(); lean_mark_persistent(l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonWorkDoneProgressOptions____x40_Lean_Data_Lsp_Basic___hyg_7087____closed__7); l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonWorkDoneProgressOptions____x40_Lean_Data_Lsp_Basic___hyg_7087____closed__8 = _init_l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonWorkDoneProgressOptions____x40_Lean_Data_Lsp_Basic___hyg_7087____closed__8(); lean_mark_persistent(l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonWorkDoneProgressOptions____x40_Lean_Data_Lsp_Basic___hyg_7087____closed__8); l_Lean_Lsp_instFromJsonWorkDoneProgressOptions___closed__1 = _init_l_Lean_Lsp_instFromJsonWorkDoneProgressOptions___closed__1(); lean_mark_persistent(l_Lean_Lsp_instFromJsonWorkDoneProgressOptions___closed__1); l_Lean_Lsp_instFromJsonWorkDoneProgressOptions = _init_l_Lean_Lsp_instFromJsonWorkDoneProgressOptions(); lean_mark_persistent(l_Lean_Lsp_instFromJsonWorkDoneProgressOptions); return lean_io_result_mk_ok(lean_box(0)); } #ifdef __cplusplus } #endif
2d103b19716de97c6442340f162c8127a4e104af
a4515918f56dd7ab527e4999aa7fce818b6dd6f6
/Algorithms/Sorting/HeapSort/heapsort.c
cf93f95164d04f62b3db297fdfa6999cafe71cbc
[ "MIT" ]
permissive
rathoresrikant/HacktoberFestContribute
0e2d4692a305f079e5aebcd331e8df04b90f90da
e2a69e284b3b1bd0c7c16ea41217cc6c2ec57592
refs/heads/master
2023-06-13T09:22:22.554887
2021-10-27T07:51:41
2021-10-27T07:51:41
151,832,935
102
901
MIT
2023-06-23T06:53:32
2018-10-06T11:23:31
C++
UTF-8
C
false
false
1,126
c
heapsort.c
#include <stdio.h> #include <stdlib.h> void heapsort(int vector[], int size); void constructHeap(int vector[], int n); void swap( int *element1Ptr, int *element2Ptr ); int main( void ) { int *vector2 = ( int *)malloc(8*sizeof(int )); int vector[ 8 ] = { 8, 32, 15, 5, 0, -3, 7, 9 }; constructHeap( vector, 8 ); heapsort(vector, 8); for ( int i = 0; i < 8; i++ ) printf("%-4d", vector[ i ]); puts(""); vector2 = realloc(vector2, 9*sizeof(int )); } void constructHeap(int vector[], int n) { int i; int count; for( count = 1; count < n; count++ ) { i = count; while( i > 0 && vector[ i/2 ] < vector[ i ] ) { swap( &vector[ i ], &vector[ i/ 2 ]); i /= 2; } } } void heapsort(int vector[], int size) { while( size > 0 ) { swap( &vector[0], &vector[size - 1]); constructHeap( vector, --size); } } // swap void swap( int *element1Ptr, int *element2Ptr ) { int hold = *element1Ptr; // temp *element1Ptr = *element2Ptr; *element2Ptr = hold; }
83e380f3f249c51a6dc9a132683936e9ad52030d
7538f30404c0eb74c17d5b982eae689b754e227e
/13.4/AccessibilityBundles/VectorKit.axbundle/CDStructures.h
371cf9f85c90e7f02e7ceddd5f6c74604ce6bb6d
[]
no_license
xybp888/iOS-Header
cdb31acaa22236818917245619fe4f4b90d62d30
0c23e5a9242f1d8fd04d376c22e88d2ec74c3374
refs/heads/master
2022-11-18T22:35:35.676837
2022-10-29T23:47:18
2022-10-29T23:47:18
204,074,346
156
63
null
null
null
null
UTF-8
C
false
false
2,710
h
CDStructures.h
// // Generated by class-dump 3.5 (64 bit) (Debug version compiled Nov 12 2019 23:20:19). // // class-dump is Copyright (C) 1997-1998, 2000-2001, 2004-2015 by Steve Nygard. // #pragma mark Blocks typedef void (^CDUnknownBlockType)(void); // return type and parameters are unknown #pragma mark Named Structures struct AXVKFeaturePointIndices { long long _field1; long long _field2; }; struct CGPoint { double x; double y; }; struct CGRect { struct CGPoint _field1; struct CGSize _field2; }; struct CGSize { double _field1; double _field2; }; struct Matrix<double, 3, 1> { double _field1[3]; }; struct _NSRange { unsigned long long _field1; unsigned long long _field2; }; #pragma mark Typedef'd Structures typedef struct { unsigned char _field1; unsigned char _field2; unsigned char _field3; unsigned char _field4; _Bool _field5; } CDStruct_511c724f; typedef struct { double x0; double x1; double y0; double y1; } CDStruct_aca18c62; typedef struct { double x; double y; double z; } CDStruct_31142d93; typedef struct { double latitude; double longitude; } CDStruct_2c43369c; typedef struct { float _field1; float _field2; } CDStruct_b2fbf00d; typedef struct { struct { id _field1; char *_field2; unsigned long long _field3; unsigned long long _field4; unsigned long long _field5; unsigned long long _field6; unsigned int _field7; unsigned long long _field8; _Bool _field9; unsigned long long _field10; float _field11; unsigned long long _field12; id _field13; int _field14; } _field1; unsigned long long _field2; unsigned long long _field3; int _field4; int _field5; int _field6; unsigned long long _field7; unsigned long long _field8; union { struct { CDStruct_b2fbf00d _field1; CDStruct_b2fbf00d _field2; } _field1; struct { float _field1; float _field2; float _field3; float _field4; } _field2; } _field9; struct *_field10; struct { unsigned short _field1[2]; unsigned short _field2[2]; } _field11; unsigned char _field12; _Bool _field13; unsigned char _field14; _Bool _field15; _Bool _field16; unsigned char _field17; _Bool _field18; unsigned short _field19; struct _NSRange _field20; _Bool _field21; unsigned int _field22; } CDStruct_123780e2; // Template types typedef struct Matrix<double, 3, 1> { double _field1[3]; } Matrix_e4837a69;
a95e3502c33e7b64f6488acaa96aa706dae57fd5
83e7dc1281874779c46dfadcc15b2bb66d8e599c
/examples/widgets/dropdown/lv_example_dropdown_2.c
77f15791ea52b9447fbfc9b977cd2bc8f10d17e1
[ "MIT" ]
permissive
lvgl/lvgl
7d51d6774d6ac71df7101fc7ded56fea4b70be01
5c984b4a5364b6455966eb3a860153806c51626f
refs/heads/master
2023-08-30T22:39:20.283922
2023-08-30T19:55:29
2023-08-30T19:55:29
60,667,730
9,296
2,218
MIT
2023-09-14T17:59:34
2016-06-08T04:14:34
C
UTF-8
C
false
false
1,187
c
lv_example_dropdown_2.c
#include "../../lv_examples.h" #if LV_USE_DROPDOWN && LV_BUILD_EXAMPLES /** * Create a drop down, up, left and right menus */ void lv_example_dropdown_2(void) { static const char * opts = "Apple\n" "Banana\n" "Orange\n" "Melon"; lv_obj_t * dd; dd = lv_dropdown_create(lv_scr_act()); lv_dropdown_set_options_static(dd, opts); lv_obj_align(dd, LV_ALIGN_TOP_MID, 0, 10); dd = lv_dropdown_create(lv_scr_act()); lv_dropdown_set_options_static(dd, opts); lv_dropdown_set_dir(dd, LV_DIR_BOTTOM); lv_dropdown_set_symbol(dd, LV_SYMBOL_UP); lv_obj_align(dd, LV_ALIGN_BOTTOM_MID, 0, -10); dd = lv_dropdown_create(lv_scr_act()); lv_dropdown_set_options_static(dd, opts); lv_dropdown_set_dir(dd, LV_DIR_RIGHT); lv_dropdown_set_symbol(dd, LV_SYMBOL_RIGHT); lv_obj_align(dd, LV_ALIGN_LEFT_MID, 10, 0); dd = lv_dropdown_create(lv_scr_act()); lv_dropdown_set_options_static(dd, opts); lv_dropdown_set_dir(dd, LV_DIR_LEFT); lv_dropdown_set_symbol(dd, LV_SYMBOL_LEFT); lv_obj_align(dd, LV_ALIGN_RIGHT_MID, -10, 0); } #endif
b27457c7337183af80a9a1b533d5f961476a0351
5eff7a36d9a9917dce9111f0c3074375fe6f7656
/lib/mesa/src/util/register_allocate_internal.h
ffba0153dafdf3b9c380d6af30040985ba77e321
[]
no_license
openbsd/xenocara
cb392d02ebba06f6ff7d826fd8a89aa3b8401779
a012b5de33ea0b977095d77316a521195b26cc6b
refs/heads/master
2023-08-25T12:16:58.862008
2023-08-12T16:16:25
2023-08-12T16:16:25
66,967,384
177
66
null
2023-07-22T18:12:37
2016-08-30T18:36:01
C
UTF-8
C
false
false
4,787
h
register_allocate_internal.h
/* * Copyright © 2010 Intel Corporation * * Permission is hereby granted, free of charge, to any person obtaining a * copy of this software and associated documentation files (the "Software"), * to deal in the Software without restriction, including without limitation * the rights to use, copy, modify, merge, publish, distribute, sublicense, * and/or sell copies of the Software, and to permit persons to whom the * Software is furnished to do so, subject to the following conditions: * * The above copyright notice and this permission notice (including the next * paragraph) shall be included in all copies or substantial portions of the * Software. * * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL * THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS * IN THE SOFTWARE. * * Authors: * Eric Anholt <eric@anholt.net> * */ #ifndef REGISTER_ALLOCATE_INTERNAL_H #define REGISTER_ALLOCATE_INTERNAL_H #include <stdbool.h> #include "util/bitset.h" #include "util/u_dynarray.h" #ifdef __cplusplus extern "C" { #define class klass #endif struct ra_reg { BITSET_WORD *conflicts; struct util_dynarray conflict_list; }; struct ra_regs { struct ra_reg *regs; unsigned int count; struct ra_class **classes; unsigned int class_count; bool round_robin; }; struct ra_class { struct ra_regs *regset; /** * Bitset indicating which registers belong to this class. * * (If bit N is set, then register N belongs to this class.) */ BITSET_WORD *regs; /** * Number of regs after each bit in *regs that are also conflicted by an * allocation to that reg for this class. */ int contig_len; /** * p(B) in Runeson/Nyström paper. * * This is "how many regs are in the set." */ unsigned int p; /** * q(B,C) (indexed by C, B is this register class) in * Runeson/Nyström paper. This is "how many registers of B could * the worst choice register from C conflict with". */ unsigned int *q; int index; }; struct ra_node { /** @{ * * List of which nodes this node interferes with. This should be * symmetric with the other node. */ struct util_dynarray adjacency_list; /** @} */ unsigned int class; /* Client-assigned register, if assigned, or NO_REG. */ unsigned int forced_reg; /* Register, if assigned, or NO_REG. */ unsigned int reg; /** * The q total, as defined in the Runeson/Nyström paper, for all the * interfering nodes not in the stack. */ unsigned int q_total; /* For an implementation that needs register spilling, this is the * approximate cost of spilling this node. */ float spill_cost; /* Temporary data for the algorithm to scratch around in */ struct { /** * Temporary version of q_total which we decrement as things are placed * into the stack. */ unsigned int q_total; } tmp; }; struct ra_graph { struct ra_regs *regs; /** * the variables that need register allocation. */ struct ra_node *nodes; BITSET_WORD *adjacency; unsigned int count; /**< count of nodes. */ unsigned int alloc; /**< count of nodes allocated. */ ra_select_reg_callback select_reg_callback; void *select_reg_callback_data; /* Temporary data for the algorithm to scratch around in */ struct { unsigned int *stack; unsigned int stack_count; /** Bit-set indicating, for each register, if it's in the stack */ BITSET_WORD *in_stack; /** Bit-set indicating, for each register, if it pre-assigned */ BITSET_WORD *reg_assigned; /** Bit-set indicating, for each register, the value of the pq test */ BITSET_WORD *pq_test; /** For each BITSET_WORD, the minimum q value or ~0 if unknown */ unsigned int *min_q_total; /* * * For each BITSET_WORD, the node with the minimum q_total if * min_q_total[i] != ~0. */ unsigned int *min_q_node; /** * Tracks the start of the set of optimistically-colored registers in the * stack. */ unsigned int stack_optimistic_start; } tmp; }; bool ra_class_allocations_conflict(struct ra_class *c1, unsigned int r1, struct ra_class *c2, unsigned int r2); #ifdef __cplusplus } /* extern "C" */ #undef class #endif #endif /* REGISTER_ALLOCATE_INTERNAL_H */
e4bf847248682591e721871d6e09613ce0fc57a7
f354d1766f799ea94f59373e582988d5630c808e
/examples/headers/banana.h
a942bb313755061655f01e66191ec29b2532cb3d
[ "MIT", "Apache-2.0" ]
permissive
carp-lang/Carp
8711edbd31549ead8096fbca44c9bcb3050522d5
ed2a4108c43280186005ef5a31a1f24986f87bbe
refs/heads/master
2023-06-27T15:16:00.612784
2023-02-28T08:34:12
2023-02-28T08:34:12
49,426,320
4,772
195
Apache-2.0
2023-02-28T08:34:14
2016-01-11T12:54:09
Haskell
UTF-8
C
false
false
234
h
banana.h
#ifndef BANANA_H #define BANANA_H // This is an example external struct typedef struct { double price; int size; } Banana; // This is an external function that can be registered int magic() { return 123456789; } #endif
bc9f62bd3c46a26cca08373bf653690cd0ef94c8
99bdb3251fecee538e0630f15f6574054dfc1468
/bsp/lpc54608-LPCXpresso/SDK_2.2_LPCXpresso54608/devices/LPC54608/drivers/fsl_rit.c
23c9c9257c2c3dee5f902ae78affc5c1427194e6
[ "Apache-2.0", "Zlib", "LicenseRef-scancode-proprietary-license", "MIT", "BSD-3-Clause", "X11", "BSD-4-Clause-UC", "LicenseRef-scancode-unknown-license-reference" ]
permissive
RT-Thread/rt-thread
03a7c52c2aeb1b06a544143b0e803d72f47d1ece
3602f891211904a27dcbd51e5ba72fefce7326b2
refs/heads/master
2023-09-01T04:10:20.295801
2023-08-31T16:20:55
2023-08-31T16:20:55
7,408,108
9,599
5,805
Apache-2.0
2023-09-14T13:37:26
2013-01-02T14:49:21
C
UTF-8
C
false
false
5,334
c
fsl_rit.c
/* * Copyright (c) 2016, Freescale Semiconductor, Inc. * Copyright 2016-2017 NXP * * Redistribution and use in source and binary forms, with or without modification, * are permitted provided that the following conditions are met: * * o Redistributions of source code must retain the above copyright notice, this list * of conditions and the following disclaimer. * * o Redistributions in binary form must reproduce the above copyright notice, this * list of conditions and the following disclaimer in the documentation and/or * other materials provided with the distribution. * * o Neither the name of the copyright holder nor the names of its * contributors may be used to endorse or promote products derived from this * software without specific prior written permission. * * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED * WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE * DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR * ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES * (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON * ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ #include "fsl_rit.h" /******************************************************************************* * Prototypes ******************************************************************************/ /*! * @brief Gets the instance from the base address to be used to gate or ungate the module clock * * @param base RIT peripheral base address * * @return The RIT instance */ static uint32_t RIT_GetInstance(RIT_Type *base); /******************************************************************************* * Variables ******************************************************************************/ /*! @brief Pointers to RIT bases for each instance. */ static RIT_Type *const s_ritBases[] = RIT_BASE_PTRS; #if !(defined(FSL_SDK_DISABLE_DRIVER_CLOCK_CONTROL) && FSL_SDK_DISABLE_DRIVER_CLOCK_CONTROL) /*! @brief Pointers to PIT clocks for each instance. */ static const clock_ip_name_t s_ritClocks[] = RIT_CLOCKS; #endif /* FSL_SDK_DISABLE_DRIVER_CLOCK_CONTROL */ /******************************************************************************* * Code ******************************************************************************/ static uint32_t RIT_GetInstance(RIT_Type *base) { uint32_t instance; /* Find the instance index from base address mappings. */ for (instance = 0; instance < ARRAY_SIZE(s_ritBases); instance++) { if (s_ritBases[instance] == base) { break; } } assert(instance < ARRAY_SIZE(s_ritBases)); return instance; } void RIT_GetDefaultConfig(rit_config_t *config) { assert(config); /* Timer operation are no effect in Debug mode */ config->enableRunInDebug = false; } void RIT_Init(RIT_Type *base, const rit_config_t *config) { assert(config); #if !(defined(FSL_SDK_DISABLE_DRIVER_CLOCK_CONTROL) && FSL_SDK_DISABLE_DRIVER_CLOCK_CONTROL) /* Ungate the RIT clock*/ CLOCK_EnableClock(s_ritClocks[RIT_GetInstance(base)]); #endif /* FSL_SDK_DISABLE_DRIVER_CLOCK_CONTROL */ /* Enable RIT timers */ base->CTRL &= ~RIT_CTRL_RITEN_MASK; /* Config timer operation is no effect in debug mode */ if (!config->enableRunInDebug) { base->CTRL &= ~RIT_CTRL_RITENBR_MASK; } else { base->CTRL |= RIT_CTRL_RITENBR_MASK; } } void RIT_Deinit(RIT_Type *base) { /* Disable RIT timers */ base->CTRL |= ~RIT_CTRL_RITEN_MASK; #ifdef FSL_SDK_DISABLE_DRIVER_CLOCK_CONTROL /* Gate the RIT clock*/ CLOCK_DisableClock(s_ritClocks[RIT_GetInstance(base)]); #endif /* FSL_SDK_DISABLE_DRIVER_CLOCK_CONTROL */ } void RIT_SetTimerCompare(RIT_Type *base, uint64_t count) { /* Disable RIT timers */ base->CTRL &= ~RIT_CTRL_RITEN_MASK; base->COMPVAL = (uint32_t)count; base->COMPVAL_H = (uint16_t)(count >> 32U); } void RIT_SetMaskBit(RIT_Type *base, uint64_t count) { base->MASK = (uint32_t)count; base->MASK_H = (uint16_t)(count >> 32U); } uint64_t RIT_GetCompareTimerCount(RIT_Type *base) { uint16_t valueH = 0U; uint32_t valueL = 0U; /* COMPVAL_H should be read before COMPVAL */ valueH = base->COMPVAL_H; valueL = base->COMPVAL; return (((uint64_t)valueH << 32U) + (uint64_t)(valueL)); } uint64_t RIT_GetCounterTimerCount(RIT_Type *base) { uint16_t valueH = 0U; uint32_t valueL = 0U; /* COUNTER_H should be read before COUNTER */ valueH = base->COUNTER_H; valueL = base->COUNTER; return (((uint64_t)valueH << 32U) + (uint64_t)(valueL)); } uint64_t RIT_GetMaskTimerCount(RIT_Type *base) { uint16_t valueH = 0U; uint32_t valueL = 0U; /* MASK_H should be read before MASK */ valueH = base->MASK_H; valueL = base->MASK; return (((uint64_t)valueH << 32U) + (uint64_t)(valueL)); }
665ce9ea0ed143c3d50ff8f547b616809b5b795b
e1cddfd754d952134e72dfd03522c5ea4fb6008e
/src/svm/svm_test.c
c55d631d3db15ed794ad8c90f422e9168387182a
[ "Apache-2.0" ]
permissive
FDio/vpp
0ad30fa1bec2975ffa6b66b45c9f4f32163123b6
f234b0d4626d7e686422cc9dfd25958584f4931e
refs/heads/master
2023-08-31T16:09:04.068646
2022-03-14T09:49:15
2023-08-31T09:50:00
96,556,718
1,048
630
Apache-2.0
2023-06-21T05:39:17
2017-07-07T16:29:40
C
UTF-8
C
false
false
1,801
c
svm_test.c
/* * Copyright (c) 2015 Cisco and/or its affiliates. * 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. */ /* *------------------------------------------------------------------ * svm_test.c -- brain police *------------------------------------------------------------------ */ #include <stdio.h> #include <stdlib.h> #include <sys/types.h> #include <sys/mman.h> #include <sys/stat.h> #include <netinet/in.h> #include <signal.h> #include <pthread.h> #include <unistd.h> #include <time.h> #include <fcntl.h> #include <string.h> #include <vppinfra/clib.h> #include <vppinfra/vec.h> #include <vppinfra/hash.h> #include <vppinfra/bitmap.h> #include <vppinfra/fifo.h> #include <vppinfra/time.h> #include <vppinfra/heap.h> #include <vppinfra/pool.h> #include "svm.h" int main (int argc, char **argv) { svm_region_t *root_rp, *rp; svm_map_region_args_t *a = 0; vec_validate (a, 0); root_rp = svm_region_init (); ASSERT (root_rp); a->name = "/qvnet"; a->size = (4 << 10); rp = svm_region_find_or_create (root_rp, a); ASSERT (rp); *((u32 *) rp->data_base) = 0xdeadbeef; svm_region_unmap (root_rp, rp); fformat (stdout, "exiting...\n"); exit (0); } /* * fd.io coding-style-patch-verification: ON * * Local Variables: * eval: (c-set-style "gnu") * End: */
e1536997690814a907012ed2cc78dda87be14b5c
0744dcc5394cebf57ebcba343747af6871b67017
/os/board/rtl8721csm/src/component/common/bluetooth/realtek/sdk/inc/vendor_cmd.h
4eca7eaca6b1ebb32ed271c3fdbc98ca280ef74b
[ "GPL-1.0-or-later", "BSD-3-Clause", "ISC", "MIT", "LicenseRef-scancode-warranty-disclaimer", "LicenseRef-scancode-other-permissive", "Apache-2.0" ]
permissive
Samsung/TizenRT
96abf62f1853f61fcf91ff14671a5e0c6ca48fdb
1a5c2e00a4b1bbf4c505bbf5cc6a8259e926f686
refs/heads/master
2023-08-31T08:59:33.327998
2023-08-08T06:09:20
2023-08-31T04:38:20
82,517,252
590
719
Apache-2.0
2023-09-14T06:54:49
2017-02-20T04:38:30
C
UTF-8
C
false
false
597
h
vendor_cmd.h
#ifndef VNR_CMD_H #define VNR_CMD_H #include <gap.h> /* mailbox */ #define HCI_VENDOR_ENABLE_PROFILE_REPORT_COMMAND 0xfc18 #define HCI_VENDOR_SET_PROFILE_REPORT_COMMAND 0xfc19 #define HCI_VENDOR_MAILBOX_CMD 0xfc8f /* sub event from fw start */ #define HCI_VENDOR_PTA_REPORT_EVENT 0x24 #define HCI_VENDOR_PTA_AUTO_REPORT_EVENT 0x25 bool mailbox_to_bt(uint8_t *data, uint8_t len); bool mailbox_to_bt_set_profile_report(uint8_t *data, uint8_t len); void vendor_cmd_init(P_FUN_GAP_APP_CB app_cb); #endif /* VNR_CMD_H */
5cbf754a2a8393e83e5414e0b1fd3423dd55d207
5d2934b38bb87b806d5ef36f7e61cf72d4064a20
/Source/os_mutex.c
c134892be3653bb2fe77ca98c3b169ac1a0eaf27
[ "Apache-2.0", "LicenseRef-scancode-proprietary-license", "LicenseRef-scancode-warranty-disclaimer", "LicenseRef-scancode-free-unknown" ]
permissive
weston-embedded/uC-OS2
83cae77ff97bb921c5fef81f827884eab405eaab
bfc6120f20cb27a927a9fc5dd667f9e455495777
refs/heads/develop
2023-01-10T09:41:16.763300
2023-01-05T18:18:13
2023-01-05T18:18:13
243,857,957
347
123
Apache-2.0
2023-01-12T22:57:11
2020-02-28T21:30:55
C
UTF-8
C
false
false
40,132
c
os_mutex.c
/* ********************************************************************************************************* * uC/OS-II * The Real-Time Kernel * * Copyright 1992-2021 Silicon Laboratories Inc. www.silabs.com * * SPDX-License-Identifier: APACHE-2.0 * * This software is subject to an open source license and is distributed by * Silicon Laboratories Inc. pursuant to the terms of the Apache License, * Version 2.0 available at www.apache.org/licenses/LICENSE-2.0. * ********************************************************************************************************* */ /* ********************************************************************************************************* * * MUTUAL EXCLUSION SEMAPHORE MANAGEMENT * * Filename : os_mutex.c * Version : V2.93.01 ********************************************************************************************************* */ #ifndef OS_MUTEX_C #define OS_MUTEX_C #define MICRIUM_SOURCE #ifndef OS_MASTER_FILE #include <ucos_ii.h> #endif #if OS_MUTEX_EN > 0u /* ********************************************************************************************************* * LOCAL CONSTANTS ********************************************************************************************************* */ #define OS_MUTEX_KEEP_LOWER_8 ((INT16U)0x00FFu) #define OS_MUTEX_KEEP_UPPER_8 ((INT16U)0xFF00u) #define OS_MUTEX_AVAILABLE ((INT16U)0x00FFu) /* ********************************************************************************************************* * LOCAL CONSTANTS ********************************************************************************************************* */ static void OSMutex_RdyAtPrio(OS_TCB *ptcb, INT8U prio); /* ********************************************************************************************************* * ACCEPT MUTUAL EXCLUSION SEMAPHORE * * Description: This function checks the mutual exclusion semaphore to see if a resource is available. * Unlike OSMutexPend(), OSMutexAccept() does not suspend the calling task if the resource is * not available or the event did not occur. * * Arguments : pevent is a pointer to the event control block * * perr is a pointer to an error code which will be returned to your application: * OS_ERR_NONE if the call was successful. * OS_ERR_EVENT_TYPE if 'pevent' is not a pointer to a mutex * OS_ERR_PEVENT_NULL 'pevent' is a NULL pointer * OS_ERR_PEND_ISR if you called this function from an ISR * OS_ERR_PCP_LOWER If the priority of the task that owns the Mutex is * HIGHER (i.e. a lower number) than the PCP. This error * indicates that you did not set the PCP higher (lower * number) than ALL the tasks that compete for the Mutex. * Unfortunately, this is something that could not be * detected when the Mutex is created because we don't know * what tasks will be using the Mutex. * * Returns : == OS_TRUE if the resource is available, the mutual exclusion semaphore is acquired * == OS_FALSE a) if the resource is not available * b) you didn't pass a pointer to a mutual exclusion semaphore * c) you called this function from an ISR * * Warning(s) : This function CANNOT be called from an ISR because mutual exclusion semaphores are * intended to be used by tasks only. ********************************************************************************************************* */ #if OS_MUTEX_ACCEPT_EN > 0u BOOLEAN OSMutexAccept (OS_EVENT *pevent, INT8U *perr) { INT8U pcp; /* Priority Ceiling Priority (PCP) */ #if OS_CRITICAL_METHOD == 3u /* Allocate storage for CPU status register */ OS_CPU_SR cpu_sr = 0u; #endif #ifdef OS_SAFETY_CRITICAL if (perr == (INT8U *)0) { OS_SAFETY_CRITICAL_EXCEPTION(); return (OS_FALSE); } #endif #if OS_ARG_CHK_EN > 0u if (pevent == (OS_EVENT *)0) { /* Validate 'pevent' */ *perr = OS_ERR_PEVENT_NULL; return (OS_FALSE); } #endif if (pevent->OSEventType != OS_EVENT_TYPE_MUTEX) { /* Validate event block type */ *perr = OS_ERR_EVENT_TYPE; return (OS_FALSE); } if (OSIntNesting > 0u) { /* Make sure it's not called from an ISR */ *perr = OS_ERR_PEND_ISR; return (OS_FALSE); } OS_ENTER_CRITICAL(); /* Get value (0 or 1) of Mutex */ pcp = (INT8U)(pevent->OSEventCnt >> 8u); /* Get PCP from mutex */ if ((pevent->OSEventCnt & OS_MUTEX_KEEP_LOWER_8) == OS_MUTEX_AVAILABLE) { pevent->OSEventCnt &= OS_MUTEX_KEEP_UPPER_8; /* Mask off LSByte (Acquire Mutex) */ pevent->OSEventCnt |= (INT16U)OSTCBCur->OSTCBPrio; /* Save current task priority in LSByte */ pevent->OSEventPtr = (void *)OSTCBCur; /* Link TCB of task owning Mutex */ if ((pcp != OS_PRIO_MUTEX_CEIL_DIS) && (OSTCBCur->OSTCBPrio <= pcp)) { /* PCP 'must' have a SMALLER prio ... */ OS_EXIT_CRITICAL(); /* ... than current task! */ *perr = OS_ERR_PCP_LOWER; } else { OS_EXIT_CRITICAL(); *perr = OS_ERR_NONE; } return (OS_TRUE); } OS_EXIT_CRITICAL(); *perr = OS_ERR_NONE; return (OS_FALSE); } #endif /* ********************************************************************************************************* * CREATE A MUTUAL EXCLUSION SEMAPHORE * * Description: This function creates a mutual exclusion semaphore. * * Arguments : prio is the priority to use when accessing the mutual exclusion semaphore. In * other words, when the semaphore is acquired and a higher priority task * attempts to obtain the semaphore then the priority of the task owning the * semaphore is raised to this priority. It is assumed that you will specify * a priority that is LOWER in value than ANY of the tasks competing for the * mutex. If the priority is specified as OS_PRIO_MUTEX_CEIL_DIS, then the * priority ceiling promotion is disabled. This way, the tasks accessing the * semaphore do not have their priority promoted. * * perr is a pointer to an error code which will be returned to your application: * OS_ERR_NONE if the call was successful. * OS_ERR_CREATE_ISR if you attempted to create a MUTEX from an * ISR * OS_ERR_ILLEGAL_CREATE_RUN_TIME if you tried to create a mutex after * safety critical operation started. * OS_ERR_PRIO_EXIST if a task at the priority ceiling priority * already exist. * OS_ERR_PEVENT_NULL No more event control blocks available. * OS_ERR_PRIO_INVALID if the priority you specify is higher that * the maximum allowed (i.e. > OS_LOWEST_PRIO) * * Returns : != (void *)0 is a pointer to the event control clock (OS_EVENT) associated with the * created mutex. * == (void *)0 if an error is detected. * * Note(s) : 1) The LEAST significant 8 bits of '.OSEventCnt' hold the priority number of the task * owning the mutex or 0xFF if no task owns the mutex. * * 2) The MOST significant 8 bits of '.OSEventCnt' hold the priority number used to * reduce priority inversion or 0xFF (OS_PRIO_MUTEX_CEIL_DIS) if priority ceiling * promotion is disabled. ********************************************************************************************************* */ OS_EVENT *OSMutexCreate (INT8U prio, INT8U *perr) { OS_EVENT *pevent; #if OS_CRITICAL_METHOD == 3u /* Allocate storage for CPU status register */ OS_CPU_SR cpu_sr = 0u; #endif #ifdef OS_SAFETY_CRITICAL if (perr == (INT8U *)0) { OS_SAFETY_CRITICAL_EXCEPTION(); return ((OS_EVENT *)0); } #endif #ifdef OS_SAFETY_CRITICAL_IEC61508 if (OSSafetyCriticalStartFlag == OS_TRUE) { OS_SAFETY_CRITICAL_EXCEPTION(); *perr = OS_ERR_ILLEGAL_CREATE_RUN_TIME; return ((OS_EVENT *)0); } #endif #if OS_ARG_CHK_EN > 0u if (prio != OS_PRIO_MUTEX_CEIL_DIS) { if (prio >= OS_LOWEST_PRIO) { /* Validate PCP */ *perr = OS_ERR_PRIO_INVALID; return ((OS_EVENT *)0); } } #endif if (OSIntNesting > 0u) { /* See if called from ISR ... */ *perr = OS_ERR_CREATE_ISR; /* ... can't CREATE mutex from an ISR */ return ((OS_EVENT *)0); } OS_ENTER_CRITICAL(); if (prio != OS_PRIO_MUTEX_CEIL_DIS) { if (OSTCBPrioTbl[prio] != (OS_TCB *)0) { /* Mutex priority must not already exist */ OS_EXIT_CRITICAL(); /* Task already exist at priority ... */ *perr = OS_ERR_PRIO_EXIST; /* ... ceiling priority */ return ((OS_EVENT *)0); } OSTCBPrioTbl[prio] = OS_TCB_RESERVED; /* Reserve the table entry */ } pevent = OSEventFreeList; /* Get next free event control block */ if (pevent == (OS_EVENT *)0) { /* See if an ECB was available */ if (prio != OS_PRIO_MUTEX_CEIL_DIS) { OSTCBPrioTbl[prio] = (OS_TCB *)0; /* No, Release the table entry */ } OS_EXIT_CRITICAL(); *perr = OS_ERR_PEVENT_NULL; /* No more event control blocks */ return (pevent); } OSEventFreeList = (OS_EVENT *)OSEventFreeList->OSEventPtr; /* Adjust the free list */ OS_EXIT_CRITICAL(); pevent->OSEventType = OS_EVENT_TYPE_MUTEX; pevent->OSEventCnt = (INT16U)((INT16U)prio << 8u) | OS_MUTEX_AVAILABLE; /* Resource is avail. */ pevent->OSEventPtr = (void *)0; /* No task owning the mutex */ #if OS_EVENT_NAME_EN > 0u pevent->OSEventName = (INT8U *)(void *)"?"; #endif OS_EventWaitListInit(pevent); OS_TRACE_MUTEX_CREATE(pevent, pevent->OSEventName); *perr = OS_ERR_NONE; return (pevent); } /* ********************************************************************************************************* * DELETE A MUTEX * * Description: This function deletes a mutual exclusion semaphore and readies all tasks pending on the it. * * Arguments : pevent is a pointer to the event control block associated with the desired mutex. * * opt determines delete options as follows: * opt == OS_DEL_NO_PEND Delete mutex ONLY if no task pending * opt == OS_DEL_ALWAYS Deletes the mutex even if tasks are waiting. * In this case, all the tasks pending will be readied. * * perr is a pointer to an error code that can contain one of the following values: * OS_ERR_NONE The call was successful and the mutex was deleted * OS_ERR_DEL_ISR If you attempted to delete the MUTEX from an ISR * OS_ERR_INVALID_OPT An invalid option was specified * OS_ERR_ILLEGAL_DEL_RUN_TIME If you tried to delete a mutex after safety * critical operation started. * OS_ERR_TASK_WAITING One or more tasks were waiting on the mutex * OS_ERR_EVENT_TYPE If you didn't pass a pointer to a mutex * OS_ERR_PEVENT_NULL If 'pevent' is a NULL pointer. * * Returns : pevent upon error * (OS_EVENT *)0 if the mutex was successfully deleted. * * Note(s) : 1) This function must be used with care. Tasks that would normally expect the presence of * the mutex MUST check the return code of OSMutexPend(). * * 2) This call can potentially disable interrupts for a long time. The interrupt disable * time is directly proportional to the number of tasks waiting on the mutex. * * 3) Because ALL tasks pending on the mutex will be readied, you MUST be careful because the * resource(s) will no longer be guarded by the mutex. * * 4) IMPORTANT: In the 'OS_DEL_ALWAYS' case, we assume that the owner of the Mutex (if there * is one) is ready-to-run and is thus NOT pending on another kernel object or * has delayed itself. In other words, if a task owns the mutex being deleted, * that task will be made ready-to-run at its original priority. ********************************************************************************************************* */ #if OS_MUTEX_DEL_EN > 0u OS_EVENT *OSMutexDel (OS_EVENT *pevent, INT8U opt, INT8U *perr) { BOOLEAN tasks_waiting; OS_EVENT *pevent_return; INT8U pcp; /* Priority ceiling priority */ INT8U prio; OS_TCB *ptcb; #if OS_CRITICAL_METHOD == 3u /* Allocate storage for CPU status register */ OS_CPU_SR cpu_sr = 0u; #endif #ifdef OS_SAFETY_CRITICAL if (perr == (INT8U *)0) { OS_SAFETY_CRITICAL_EXCEPTION(); return ((OS_EVENT *)0); } #endif #ifdef OS_SAFETY_CRITICAL_IEC61508 if (OSSafetyCriticalStartFlag == OS_TRUE) { OS_SAFETY_CRITICAL_EXCEPTION(); *perr = OS_ERR_ILLEGAL_DEL_RUN_TIME; return ((OS_EVENT *)0); } #endif #if OS_ARG_CHK_EN > 0u if (pevent == (OS_EVENT *)0) { /* Validate 'pevent' */ *perr = OS_ERR_PEVENT_NULL; return (pevent); } #endif OS_TRACE_MUTEX_DEL_ENTER(pevent, opt); if (pevent->OSEventType != OS_EVENT_TYPE_MUTEX) { /* Validate event block type */ *perr = OS_ERR_EVENT_TYPE; OS_TRACE_MUTEX_DEL_EXIT(*perr); return (pevent); } if (OSIntNesting > 0u) { /* See if called from ISR ... */ *perr = OS_ERR_DEL_ISR; /* ... can't DELETE from an ISR */ OS_TRACE_MUTEX_DEL_EXIT(*perr); return (pevent); } OS_ENTER_CRITICAL(); if (pevent->OSEventGrp != 0u) { /* See if any tasks waiting on mutex */ tasks_waiting = OS_TRUE; /* Yes */ } else { tasks_waiting = OS_FALSE; /* No */ } switch (opt) { case OS_DEL_NO_PEND: /* DELETE MUTEX ONLY IF NO TASK WAITING --- */ if (tasks_waiting == OS_FALSE) { #if OS_EVENT_NAME_EN > 0u pevent->OSEventName = (INT8U *)(void *)"?"; #endif pcp = (INT8U)(pevent->OSEventCnt >> 8u); if (pcp != OS_PRIO_MUTEX_CEIL_DIS) { OSTCBPrioTbl[pcp] = (OS_TCB *)0; /* Free up the PCP */ } pevent->OSEventType = OS_EVENT_TYPE_UNUSED; pevent->OSEventPtr = OSEventFreeList; /* Return Event Control Block to free list */ pevent->OSEventCnt = 0u; OSEventFreeList = pevent; OS_EXIT_CRITICAL(); *perr = OS_ERR_NONE; pevent_return = (OS_EVENT *)0; /* Mutex has been deleted */ } else { OS_EXIT_CRITICAL(); *perr = OS_ERR_TASK_WAITING; pevent_return = pevent; } break; case OS_DEL_ALWAYS: /* ALWAYS DELETE THE MUTEX ---------------- */ pcp = (INT8U)(pevent->OSEventCnt >> 8u); /* Get PCP of mutex */ if (pcp != OS_PRIO_MUTEX_CEIL_DIS) { prio = (INT8U)(pevent->OSEventCnt & OS_MUTEX_KEEP_LOWER_8); /* Get owner's orig prio */ ptcb = (OS_TCB *)pevent->OSEventPtr; if (ptcb != (OS_TCB *)0) { /* See if any task owns the mutex */ if (ptcb->OSTCBPrio == pcp) { /* See if original prio was changed */ OS_TRACE_MUTEX_TASK_PRIO_DISINHERIT(OSTCBCur, prio); OSMutex_RdyAtPrio(ptcb, prio); /* Yes, Restore the task's original prio */ } } } while (pevent->OSEventGrp != 0u) { /* Ready ALL tasks waiting for mutex */ (void)OS_EventTaskRdy(pevent, (void *)0, OS_STAT_MUTEX, OS_STAT_PEND_ABORT); } #if OS_EVENT_NAME_EN > 0u pevent->OSEventName = (INT8U *)(void *)"?"; #endif pcp = (INT8U)(pevent->OSEventCnt >> 8u); if (pcp != OS_PRIO_MUTEX_CEIL_DIS) { OSTCBPrioTbl[pcp] = (OS_TCB *)0; /* Free up the PCP */ } pevent->OSEventType = OS_EVENT_TYPE_UNUSED; pevent->OSEventPtr = OSEventFreeList; /* Return Event Control Block to free list */ pevent->OSEventCnt = 0u; OSEventFreeList = pevent; /* Get next free event control block */ OS_EXIT_CRITICAL(); if (tasks_waiting == OS_TRUE) { /* Reschedule only if task(s) were waiting */ OS_Sched(); /* Find highest priority task ready to run */ } *perr = OS_ERR_NONE; pevent_return = (OS_EVENT *)0; /* Mutex has been deleted */ break; default: OS_EXIT_CRITICAL(); *perr = OS_ERR_INVALID_OPT; pevent_return = pevent; break; } OS_TRACE_MUTEX_DEL_EXIT(*perr); return (pevent_return); } #endif /* ********************************************************************************************************* * PEND ON MUTUAL EXCLUSION SEMAPHORE * * Description: This function waits for a mutual exclusion semaphore. * * Arguments : pevent is a pointer to the event control block associated with the desired * mutex. * * timeout is an optional timeout period (in clock ticks). If non-zero, your task will * wait for the resource up to the amount of time specified by this argument. * If you specify 0, however, your task will wait forever at the specified * mutex or, until the resource becomes available. * * perr is a pointer to where an error message will be deposited. Possible error * messages are: * OS_ERR_NONE The call was successful and your task owns the mutex * OS_ERR_TIMEOUT The mutex was not available within the specified 'timeout'. * OS_ERR_PEND_ABORT The wait on the mutex was aborted. * OS_ERR_EVENT_TYPE If you didn't pass a pointer to a mutex * OS_ERR_PEVENT_NULL 'pevent' is a NULL pointer * OS_ERR_PEND_ISR If you called this function from an ISR and the result * would lead to a suspension. * OS_ERR_PCP_LOWER If the priority of the task that owns the Mutex is * HIGHER (i.e. a lower number) than the PCP. This error * indicates that you did not set the PCP higher (lower * number) than ALL the tasks that compete for the Mutex. * Unfortunately, this is something that could not be * detected when the Mutex is created because we don't know * what tasks will be using the Mutex. * OS_ERR_PEND_LOCKED If you called this function when the scheduler is locked * * Returns : none * * Note(s) : 1) The task that owns the Mutex MUST NOT pend on any other event while it owns the mutex. * * 2) You MUST NOT change the priority of the task that owns the mutex ********************************************************************************************************* */ void OSMutexPend (OS_EVENT *pevent, INT32U timeout, INT8U *perr) { INT8U pcp; /* Priority Ceiling Priority (PCP) */ INT8U mprio; /* Mutex owner priority */ BOOLEAN rdy; /* Flag indicating task was ready */ OS_TCB *ptcb; OS_EVENT *pevent2; INT8U y; #if OS_CRITICAL_METHOD == 3u /* Allocate storage for CPU status register */ OS_CPU_SR cpu_sr = 0u; #endif #ifdef OS_SAFETY_CRITICAL if (perr == (INT8U *)0) { OS_SAFETY_CRITICAL_EXCEPTION(); return; } #endif #if OS_ARG_CHK_EN > 0u if (pevent == (OS_EVENT *)0) { /* Validate 'pevent' */ *perr = OS_ERR_PEVENT_NULL; return; } #endif OS_TRACE_MUTEX_PEND_ENTER(pevent, timeout); if (pevent->OSEventType != OS_EVENT_TYPE_MUTEX) { /* Validate event block type */ *perr = OS_ERR_EVENT_TYPE; OS_TRACE_MUTEX_PEND_EXIT(*perr); return; } if (OSIntNesting > 0u) { /* See if called from ISR ... */ *perr = OS_ERR_PEND_ISR; /* ... can't PEND from an ISR */ OS_TRACE_MUTEX_PEND_EXIT(*perr); return; } if (OSLockNesting > 0u) { /* See if called with scheduler locked ... */ *perr = OS_ERR_PEND_LOCKED; /* ... can't PEND when locked */ OS_TRACE_MUTEX_PEND_EXIT(*perr); return; } OS_ENTER_CRITICAL(); pcp = (INT8U)(pevent->OSEventCnt >> 8u); /* Get PCP from mutex */ /* Is Mutex available? */ if ((INT8U)(pevent->OSEventCnt & OS_MUTEX_KEEP_LOWER_8) == OS_MUTEX_AVAILABLE) { pevent->OSEventCnt &= OS_MUTEX_KEEP_UPPER_8; /* Yes, Acquire the resource */ pevent->OSEventCnt |= (INT16U)OSTCBCur->OSTCBPrio; /* Save priority of owning task */ pevent->OSEventPtr = (void *)OSTCBCur; /* Point to owning task's OS_TCB */ if ((pcp != OS_PRIO_MUTEX_CEIL_DIS) && (OSTCBCur->OSTCBPrio <= pcp)) { /* PCP 'must' have a SMALLER prio ... */ OS_EXIT_CRITICAL(); /* ... than current task! */ *perr = OS_ERR_PCP_LOWER; } else { OS_EXIT_CRITICAL(); *perr = OS_ERR_NONE; } OS_TRACE_MUTEX_PEND_EXIT(*perr); return; } if (pcp != OS_PRIO_MUTEX_CEIL_DIS) { mprio = (INT8U)(pevent->OSEventCnt & OS_MUTEX_KEEP_LOWER_8); /* Get priority of mutex owner */ ptcb = (OS_TCB *)(pevent->OSEventPtr); /* Point to TCB of mutex owner */ if (ptcb->OSTCBPrio > pcp) { /* Need to promote prio of owner?*/ if (mprio > OSTCBCur->OSTCBPrio) { y = ptcb->OSTCBY; if ((OSRdyTbl[y] & ptcb->OSTCBBitX) != 0u) { /* See if mutex owner is ready */ OSRdyTbl[y] &= (OS_PRIO)~ptcb->OSTCBBitX; /* Yes, Remove owner from Rdy ...*/ if (OSRdyTbl[y] == 0u) { /* ... list at current prio */ OSRdyGrp &= (OS_PRIO)~ptcb->OSTCBBitY; } rdy = OS_TRUE; } else { pevent2 = ptcb->OSTCBEventPtr; if (pevent2 != (OS_EVENT *)0) { /* Remove from event wait list */ y = ptcb->OSTCBY; pevent2->OSEventTbl[y] &= (OS_PRIO)~ptcb->OSTCBBitX; if (pevent2->OSEventTbl[y] == 0u) { pevent2->OSEventGrp &= (OS_PRIO)~ptcb->OSTCBBitY; } } rdy = OS_FALSE; /* No */ } ptcb->OSTCBPrio = pcp; /* Change owner task prio to PCP */ OS_TRACE_MUTEX_TASK_PRIO_INHERIT(ptcb, pcp); #if OS_LOWEST_PRIO <= 63u ptcb->OSTCBY = (INT8U)( ptcb->OSTCBPrio >> 3u); ptcb->OSTCBX = (INT8U)( ptcb->OSTCBPrio & 0x07u); #else ptcb->OSTCBY = (INT8U)((INT8U)(ptcb->OSTCBPrio >> 4u) & 0xFFu); ptcb->OSTCBX = (INT8U)( ptcb->OSTCBPrio & 0x0Fu); #endif ptcb->OSTCBBitY = (OS_PRIO)(1uL << ptcb->OSTCBY); ptcb->OSTCBBitX = (OS_PRIO)(1uL << ptcb->OSTCBX); if (rdy == OS_TRUE) { /* If task was ready at owner's priority ...*/ OSRdyGrp |= ptcb->OSTCBBitY; /* ... make it ready at new priority. */ OSRdyTbl[ptcb->OSTCBY] |= ptcb->OSTCBBitX; } else { pevent2 = ptcb->OSTCBEventPtr; if (pevent2 != (OS_EVENT *)0) { /* Add to event wait list */ pevent2->OSEventGrp |= ptcb->OSTCBBitY; pevent2->OSEventTbl[ptcb->OSTCBY] |= ptcb->OSTCBBitX; } } OSTCBPrioTbl[pcp] = ptcb; } } } OSTCBCur->OSTCBStat |= OS_STAT_MUTEX; /* Mutex not available, pend current task */ OSTCBCur->OSTCBStatPend = OS_STAT_PEND_OK; OSTCBCur->OSTCBDly = timeout; /* Store timeout in current task's TCB */ OS_EventTaskWait(pevent); /* Suspend task until event or timeout occurs */ OS_EXIT_CRITICAL(); OS_Sched(); /* Find next highest priority task ready */ OS_ENTER_CRITICAL(); switch (OSTCBCur->OSTCBStatPend) { /* See if we timed-out or aborted */ case OS_STAT_PEND_OK: *perr = OS_ERR_NONE; break; case OS_STAT_PEND_ABORT: *perr = OS_ERR_PEND_ABORT; /* Indicate that we aborted getting mutex */ break; case OS_STAT_PEND_TO: default: OS_EventTaskRemove(OSTCBCur, pevent); *perr = OS_ERR_TIMEOUT; /* Indicate that we didn't get mutex within TO */ break; } OSTCBCur->OSTCBStat = OS_STAT_RDY; /* Set task status to ready */ OSTCBCur->OSTCBStatPend = OS_STAT_PEND_OK; /* Clear pend status */ OSTCBCur->OSTCBEventPtr = (OS_EVENT *)0; /* Clear event pointers */ #if (OS_EVENT_MULTI_EN > 0u) OSTCBCur->OSTCBEventMultiPtr = (OS_EVENT **)0; OSTCBCur->OSTCBEventMultiRdy = (OS_EVENT *)0; #endif OS_EXIT_CRITICAL(); OS_TRACE_MUTEX_PEND_EXIT(*perr); } /* ********************************************************************************************************* * POST TO A MUTUAL EXCLUSION SEMAPHORE * * Description: This function signals a mutual exclusion semaphore * * Arguments : pevent is a pointer to the event control block associated with the desired * mutex. * * Returns : OS_ERR_NONE The call was successful and the mutex was signaled. * OS_ERR_EVENT_TYPE If you didn't pass a pointer to a mutex * OS_ERR_PEVENT_NULL 'pevent' is a NULL pointer * OS_ERR_POST_ISR Attempted to post from an ISR (not valid for MUTEXes) * OS_ERR_NOT_MUTEX_OWNER The task that did the post is NOT the owner of the MUTEX. * OS_ERR_PCP_LOWER If the priority of the new task that owns the Mutex is * HIGHER (i.e. a lower number) than the PCP. This error * indicates that you did not set the PCP higher (lower * number) than ALL the tasks that compete for the Mutex. * Unfortunately, this is something that could not be * detected when the Mutex is created because we don't know * what tasks will be using the Mutex. ********************************************************************************************************* */ INT8U OSMutexPost (OS_EVENT *pevent) { INT8U pcp; /* Priority ceiling priority */ INT8U prio; #if OS_CRITICAL_METHOD == 3u /* Allocate storage for CPU status register */ OS_CPU_SR cpu_sr = 0u; #endif if (OSIntNesting > 0u) { /* See if called from ISR ... */ return (OS_ERR_POST_ISR); /* ... can't POST mutex from an ISR */ } #if OS_ARG_CHK_EN > 0u if (pevent == (OS_EVENT *)0) { /* Validate 'pevent' */ return (OS_ERR_PEVENT_NULL); } #endif OS_TRACE_MUTEX_POST_ENTER(pevent); if (pevent->OSEventType != OS_EVENT_TYPE_MUTEX) { /* Validate event block type */ OS_TRACE_MUTEX_POST_EXIT(OS_ERR_EVENT_TYPE); return (OS_ERR_EVENT_TYPE); } OS_ENTER_CRITICAL(); pcp = (INT8U)(pevent->OSEventCnt >> 8u); /* Get priority ceiling priority of mutex */ prio = (INT8U)(pevent->OSEventCnt & OS_MUTEX_KEEP_LOWER_8); /* Get owner's original priority */ if (OSTCBCur != (OS_TCB *)pevent->OSEventPtr) { /* See if posting task owns the MUTEX */ OS_EXIT_CRITICAL(); OS_TRACE_MUTEX_POST_EXIT(OS_ERR_NOT_MUTEX_OWNER); return (OS_ERR_NOT_MUTEX_OWNER); } if (pcp != OS_PRIO_MUTEX_CEIL_DIS) { if (OSTCBCur->OSTCBPrio == pcp) { /* Did we have to raise current task's priority? */ OS_TRACE_MUTEX_TASK_PRIO_DISINHERIT(OSTCBCur, prio); OSMutex_RdyAtPrio(OSTCBCur, prio); /* Restore the task's original priority */ } OSTCBPrioTbl[pcp] = OS_TCB_RESERVED; /* Reserve table entry */ } if (pevent->OSEventGrp != 0u) { /* Any task waiting for the mutex? */ /* Yes, Make HPT waiting for mutex ready */ prio = OS_EventTaskRdy(pevent, (void *)0, OS_STAT_MUTEX, OS_STAT_PEND_OK); pevent->OSEventCnt &= OS_MUTEX_KEEP_UPPER_8; /* Save priority of mutex's new owner */ pevent->OSEventCnt |= (INT16U)prio; pevent->OSEventPtr = OSTCBPrioTbl[prio]; /* Link to new mutex owner's OS_TCB */ if ((pcp != OS_PRIO_MUTEX_CEIL_DIS) && (prio <= pcp)) { /* PCP 'must' have a SMALLER prio ... */ OS_EXIT_CRITICAL(); /* ... than current task! */ OS_Sched(); /* Find highest priority task ready to run */ OS_TRACE_MUTEX_POST_EXIT(OS_ERR_PCP_LOWER); return (OS_ERR_PCP_LOWER); } else { OS_EXIT_CRITICAL(); OS_Sched(); /* Find highest priority task ready to run */ OS_TRACE_MUTEX_POST_EXIT(OS_ERR_NONE); return (OS_ERR_NONE); } } pevent->OSEventCnt |= OS_MUTEX_AVAILABLE; /* No, Mutex is now available */ pevent->OSEventPtr = (void *)0; OS_EXIT_CRITICAL(); OS_TRACE_MUTEX_POST_EXIT(OS_ERR_NONE); return (OS_ERR_NONE); } /* ********************************************************************************************************* * QUERY A MUTUAL EXCLUSION SEMAPHORE * * Description: This function obtains information about a mutex * * Arguments : pevent is a pointer to the event control block associated with the desired mutex * * p_mutex_data is a pointer to a structure that will contain information about the mutex * * Returns : OS_ERR_NONE The call was successful and the message was sent * OS_ERR_QUERY_ISR If you called this function from an ISR * OS_ERR_PEVENT_NULL If 'pevent' is a NULL pointer * OS_ERR_PDATA_NULL If 'p_mutex_data' is a NULL pointer * OS_ERR_EVENT_TYPE If you are attempting to obtain data from a non mutex. ********************************************************************************************************* */ #if OS_MUTEX_QUERY_EN > 0u INT8U OSMutexQuery (OS_EVENT *pevent, OS_MUTEX_DATA *p_mutex_data) { INT8U i; OS_PRIO *psrc; OS_PRIO *pdest; #if OS_CRITICAL_METHOD == 3u /* Allocate storage for CPU status register */ OS_CPU_SR cpu_sr = 0u; #endif if (OSIntNesting > 0u) { /* See if called from ISR ... */ return (OS_ERR_QUERY_ISR); /* ... can't QUERY mutex from an ISR */ } #if OS_ARG_CHK_EN > 0u if (pevent == (OS_EVENT *)0) { /* Validate 'pevent' */ return (OS_ERR_PEVENT_NULL); } if (p_mutex_data == (OS_MUTEX_DATA *)0) { /* Validate 'p_mutex_data' */ return (OS_ERR_PDATA_NULL); } #endif if (pevent->OSEventType != OS_EVENT_TYPE_MUTEX) { /* Validate event block type */ return (OS_ERR_EVENT_TYPE); } OS_ENTER_CRITICAL(); p_mutex_data->OSMutexPCP = (INT8U)(pevent->OSEventCnt >> 8u); p_mutex_data->OSOwnerPrio = (INT8U)(pevent->OSEventCnt & OS_MUTEX_KEEP_LOWER_8); if (p_mutex_data->OSOwnerPrio == 0xFFu) { p_mutex_data->OSValue = OS_TRUE; } else { p_mutex_data->OSValue = OS_FALSE; } p_mutex_data->OSEventGrp = pevent->OSEventGrp; /* Copy wait list */ psrc = &pevent->OSEventTbl[0]; pdest = &p_mutex_data->OSEventTbl[0]; for (i = 0u; i < OS_EVENT_TBL_SIZE; i++) { *pdest++ = *psrc++; } OS_EXIT_CRITICAL(); return (OS_ERR_NONE); } #endif /* OS_MUTEX_QUERY_EN */ /* ********************************************************************************************************* * RESTORE A TASK BACK TO ITS ORIGINAL PRIORITY * * Description: This function makes a task ready at the specified priority * * Arguments : ptcb is a pointer to OS_TCB of the task to make ready * * prio is the desired priority * * Returns : none ********************************************************************************************************* */ static void OSMutex_RdyAtPrio (OS_TCB *ptcb, INT8U prio) { INT8U y; y = ptcb->OSTCBY; /* Remove owner from ready list at 'pcp' */ OSRdyTbl[y] &= (OS_PRIO)~ptcb->OSTCBBitX; OS_TRACE_TASK_SUSPENDED(ptcb); if (OSRdyTbl[y] == 0u) { OSRdyGrp &= (OS_PRIO)~ptcb->OSTCBBitY; } ptcb->OSTCBPrio = prio; OSPrioCur = prio; /* The current task is now at this priority */ #if OS_LOWEST_PRIO <= 63u ptcb->OSTCBY = (INT8U)((INT8U)(prio >> 3u) & 0x07u); ptcb->OSTCBX = (INT8U)(prio & 0x07u); #else ptcb->OSTCBY = (INT8U)((INT8U)(prio >> 4u) & 0x0Fu); ptcb->OSTCBX = (INT8U) (prio & 0x0Fu); #endif ptcb->OSTCBBitY = (OS_PRIO)(1uL << ptcb->OSTCBY); ptcb->OSTCBBitX = (OS_PRIO)(1uL << ptcb->OSTCBX); OSRdyGrp |= ptcb->OSTCBBitY; /* Make task ready at original priority */ OSRdyTbl[ptcb->OSTCBY] |= ptcb->OSTCBBitX; OSTCBPrioTbl[prio] = ptcb; OS_TRACE_TASK_READY(ptcb); } #endif /* OS_MUTEX_EN */ #endif /* OS_MUTEX_C */
b6e61a2702a3c97c0de6167b05c7494e7cf30c06
89db60818afeb3dc7c3b7abe9ceae155f074f7f2
/src/libmemlayer/line.c
f74930ef0440253c6e3a26f22dde7a1b46594a38
[ "bzip2-1.0.6", "LPL-1.02", "MIT" ]
permissive
9fans/plan9port
63c3d01928c6f8a8617d3ea6ecc05bac72391132
65c090346a38a8c30cb242d345aa71060116340c
refs/heads/master
2023-08-25T17:14:26.233105
2023-08-23T13:21:37
2023-08-23T18:47:08
26,095,474
1,645
468
NOASSERTION
2023-09-05T16:55:41
2014-11-02T22:40:13
C
UTF-8
C
false
false
2,593
c
line.c
#include <u.h> #include <libc.h> #include <draw.h> #include <memdraw.h> #include <memlayer.h> struct Lline { Point p0; Point p1; Point delta; int end0; int end1; int radius; Point sp; Memlayer *dstlayer; Memimage *src; int op; }; static void llineop(Memimage*, Rectangle, Rectangle, void*, int); static void _memline(Memimage *dst, Point p0, Point p1, int end0, int end1, int radius, Memimage *src, Point sp, Rectangle clipr, int op) { Rectangle r; struct Lline ll; Point d; int srcclipped; Memlayer *dl; if(radius < 0) return; if(src->layer) /* can't draw line with layered source */ return; srcclipped = 0; Top: dl = dst->layer; if(dl == nil){ _memimageline(dst, p0, p1, end0, end1, radius, src, sp, clipr, op); return; } if(!srcclipped){ d = subpt(sp, p0); if(rectclip(&clipr, rectsubpt(src->clipr, d)) == 0) return; if((src->flags&Frepl)==0 && rectclip(&clipr, rectsubpt(src->r, d))==0) return; srcclipped = 1; } /* dst is known to be a layer */ p0.x += dl->delta.x; p0.y += dl->delta.y; p1.x += dl->delta.x; p1.y += dl->delta.y; clipr.min.x += dl->delta.x; clipr.min.y += dl->delta.y; clipr.max.x += dl->delta.x; clipr.max.y += dl->delta.y; if(dl->clear){ dst = dst->layer->screen->image; goto Top; } /* XXX */ /* this is not the correct set of tests */ /* if(log2[dst->depth] != log2[src->depth] || log2[dst->depth]!=3) */ /* return; */ /* can't use sutherland-cohen clipping because lines are wide */ r = memlinebbox(p0, p1, end0, end1, radius); /* * r is now a bounding box for the line; * use it as a clipping rectangle for subdivision */ if(rectclip(&r, clipr) == 0) return; ll.p0 = p0; ll.p1 = p1; ll.end0 = end0; ll.end1 = end1; ll.sp = sp; ll.dstlayer = dst->layer; ll.src = src; ll.radius = radius; ll.delta = dl->delta; ll.op = op; _memlayerop(llineop, dst, r, r, &ll); } static void llineop(Memimage *dst, Rectangle screenr, Rectangle clipr, void *etc, int insave) { struct Lline *ll; Point p0, p1; USED(screenr.min.x); ll = etc; if(insave && ll->dstlayer->save==nil) return; if(!rectclip(&clipr, screenr)) return; if(insave){ p0 = subpt(ll->p0, ll->delta); p1 = subpt(ll->p1, ll->delta); clipr = rectsubpt(clipr, ll->delta); }else{ p0 = ll->p0; p1 = ll->p1; } _memline(dst, p0, p1, ll->end0, ll->end1, ll->radius, ll->src, ll->sp, clipr, ll->op); } void memline(Memimage *dst, Point p0, Point p1, int end0, int end1, int radius, Memimage *src, Point sp, int op) { _memline(dst, p0, p1, end0, end1, radius, src, sp, dst->clipr, op); }
5d866dc68549f0f10dea388f8abf7b9d294a5691
28d0f8c01599f8f6c711bdde0b59f9c2cd221203
/games/warp/intrp.c
c05bb4c5660f0c0f66c4bda26786582128ef6db6
[ "BSD-2-Clause" ]
permissive
NetBSD/src
1a9cbc22ed778be638b37869ed4fb5c8dd616166
23ee83f7c0aea0777bd89d8ebd7f0cde9880d13c
refs/heads/trunk
2023-08-31T13:24:58.105962
2023-08-27T15:50:47
2023-08-27T15:50:47
88,439,547
656
348
null
2023-07-20T20:07:24
2017-04-16T20:03:43
null
UTF-8
C
false
false
12,607
c
intrp.c
/* Header: /usr/src/games/warp/RCS/intrp.c,v 1.2 87/07/03 00:56:37 games Exp * * Revision 7.0.1.2 86/12/12 16:59:04 lwall * Baseline for net release. * * Revision 7.0.1.1 86/10/16 10:51:43 lwall * Added Damage. Fixed random bugs. * * Revision 7.0 86/10/08 15:12:19 lwall * Split into separate files. Added amoebas and pirates. * */ #include "EXTERN.h" #include "warp.h" #include "sig.h" #include "util.h" #include "term.h" #include "INTERN.h" #include "intrp.h" /* name of this host */ char *hostname; #ifdef TILDENAME static char *tildename = NULL; static char *tildedir = NULL; #endif static char *getrealname(uid_t); #ifdef CONDSUB static char *skipinterp(const char *, const char *); #endif __dead static void abort_interp(void); void intrp_init(char *tcbuf) { /* get environmental stuff */ /* get home directory */ homedir = getenv("HOME"); if (homedir == NULL) homedir = getenv("LOGDIR"); dotdir = getval("DOTDIR",homedir); /* get login name */ logname = getenv("USER"); if (logname == NULL) logname = getenv("LOGNAME"); #ifdef GETLOGIN if (logname == NULL) logname = savestr(getlogin()); #endif /* get the real name of the person (%N) */ /* Must be done after logname is read in because BERKNAMES uses that */ strcpy(tcbuf,getrealname(getuid())); realname = savestr(tcbuf); /* name of this host (%H) */ gethostname(buf,sizeof buf); hostname = savestr(buf); if (strchr(hostname,'.')) hostname = savestr(hostname); else { char hname[128]; strcpy(hname,hostname); strcat(hname,MYDOMAIN); hostname=savestr(hname); } warplib = savestr(filexp(WARPLIB)); if (scorespec) /* that getwd below takes ~1/3 sec. */ return; /* and we do not need it for -s */ (void) getcwd(tcbuf, sizeof(tcbuf));/* find working directory name */ origdir = savestr(tcbuf); /* and remember it */ } /* expand filename via %, ~, and $ interpretation */ /* returns pointer to static area */ /* Note that there is a 1-deep cache of ~name interpretation */ char * filexp(const char *s) { static char filename[CBUFLEN]; char scrbuf[CBUFLEN]; char *d; #ifdef DEBUGGING if (debug & DEB_FILEXP) printf("< %s\r\n",s); #endif interp(filename, (sizeof filename), s); /* interpret any % escapes */ #ifdef DEBUGGING if (debug & DEB_FILEXP) printf("%% %s\r\n",filename); #endif s = filename; if (*s == '~') { /* does destination start with ~? */ if (!*(++s) || *s == '/') { snprintf(scrbuf, sizeof(scrbuf), "%s%s",homedir,s); /* swap $HOME for it */ #ifdef DEBUGGING if (debug & DEB_FILEXP) printf("~ %s\r\n",scrbuf); #endif strcpy(filename,scrbuf); } else { #ifdef TILDENAME for (d=scrbuf; isalnum((unsigned char)*s); s++,d++) *d = *s; *d = '\0'; if (tildedir && strEQ(tildename,scrbuf)) { strcpy(scrbuf,tildedir); strcat(scrbuf, s); strcpy(filename, scrbuf); #ifdef DEBUGGING if (debug & DEB_FILEXP) printf("r %s %s\r\n",tildename,tildedir); #endif } else { if (tildename) { free(tildename); free(tildedir); } tildedir = NULL; tildename = savestr(scrbuf); { struct passwd *pwd = getpwnam(tildename); snprintf(scrbuf, sizeof(scrbuf), "%s%s",pwd->pw_dir,s); tildedir = savestr(pwd->pw_dir); strcpy(filename,scrbuf); endpwent(); } } #else /* !TILDENAME */ #ifdef VERBOSE IF(verbose) fputs("~loginname not implemented.\r\n",stdout); ELSE #endif #ifdef TERSE fputs("~login not impl.\r\n",stdout); #endif #endif } } else if (*s == '$') { /* starts with some env variable? */ d = scrbuf; *d++ = '%'; if (s[1] == '{') strcpy(d,s+2); else { *d++ = '{'; for (s++; isalnum((unsigned char)*s); s++) *d++ = *s; /* skip over token */ *d++ = '}'; strcpy(d,s); } #ifdef DEBUGGING if (debug & DEB_FILEXP) printf("$ %s\r\n",scrbuf); #endif interp(filename, (sizeof filename), scrbuf); /* this might do some extra '%'s but */ /* that is how the Mercedes Benz */ } #ifdef DEBUGGING if (debug & DEB_FILEXP) printf("> %s\r\n",filename); #endif return filename; } #ifdef CONDSUB /* skip interpolations */ static char * skipinterp(const char *pattern, const char *stoppers) { while (*pattern && (!stoppers || !strchr(stoppers,*pattern))) { #ifdef DEBUGGING if (debug & 8) printf("skipinterp till %s at %s\r\n",stoppers?stoppers:"",pattern); #endif if (*pattern == '%' && pattern[1]) { switch (*++pattern) { case '{': for (pattern++; *pattern && *pattern != '}'; pattern++) if (*pattern == '\\') pattern++; break; #ifdef CONDSUB case '(': { pattern = skipinterp(pattern+1,"!="); if (!*pattern) goto getout; for (pattern++; *pattern && *pattern != '?'; pattern++) if (*pattern == '\\') pattern++; if (!*pattern) goto getout; pattern = skipinterp(pattern+1,":)"); if (*pattern == ':') pattern = skipinterp(pattern+1,")"); break; } #endif #ifdef BACKTICK case '`': { pattern = skipinterp(pattern+1,"`"); break; } #endif #ifdef PROMPTTTY case '"': pattern = skipinterp(pattern+1,"\""); break; #endif default: break; } pattern++; } else { if (*pattern == '^' && pattern[1]) pattern += 2; else if (*pattern == '\\' && pattern[1]) pattern += 2; else pattern++; } } getout: return __UNCONST(pattern); /* where we left off */ } #endif static char *mygets(char *str, size_t n) { char *ret; size_t last; if ((ret = fgets(str, n, stdin)) != NULL) { last = strlen(str) - 1; if (str[last] == '\n') str[last] = '\0'; } return ret; } /* interpret interpolations */ char * dointerp(char *dest, size_t destsize, const char *pattern, const char *stoppers) { char *s; int i; char scrbuf[512]; bool upper = false; bool lastcomp = false; int metabit = 0; while (*pattern && (!stoppers || !strchr(stoppers,*pattern))) { #ifdef DEBUGGING if (debug & 8) printf("dointerp till %s at %s\r\n",stoppers?stoppers:"",pattern); #endif if (*pattern == '%' && pattern[1]) { upper = false; lastcomp = false; for (s=NULL; !s; ) { switch (*++pattern) { case '^': upper = true; break; case '_': lastcomp = true; break; case '{': pattern = cpytill(scrbuf,pattern+1,'}'); if ((s = strchr(scrbuf,'-')) != NULL) *s++ = '\0'; else s = nullstr; s = getval(scrbuf,s); break; #ifdef CONDSUB case '(': { char rch; bool matched; pattern = dointerp(dest,destsize,pattern+1,"!="); rch = *pattern; if (rch == '!') pattern++; if (*pattern != '=') goto getout; pattern = cpytill(scrbuf,pattern+1,'?'); if (!*pattern) goto getout; if (*scrbuf == '^' && scrbuf[strlen(scrbuf)-1] == '$') { scrbuf[strlen(scrbuf)-1] = '\0'; matched = strEQ(scrbuf+1,dest); } else matched = instr(dest,scrbuf) != NULL; if (matched==(rch == '=')) { pattern = dointerp(dest,destsize,pattern+1,":)"); if (*pattern == ':') pattern = skipinterp(pattern+1,")"); } else { pattern = skipinterp(pattern+1,":)"); if (*pattern == ':') pattern++; pattern = dointerp(dest,destsize,pattern,")"); } s = dest; break; } #endif #ifdef BACKTICK case '`': { FILE *pipefp; pattern = dointerp(scrbuf,(sizeof scrbuf),pattern+1,"`"); pipefp = popen(scrbuf,"r"); if (pipefp != NULL) { int len; len = fread(scrbuf,sizeof(char),(sizeof scrbuf)-1, pipefp); scrbuf[len] = '\0'; pclose(pipefp); } else { printf("\r\nCan't run %s\r\n",scrbuf); *scrbuf = '\0'; } for (s=scrbuf; *s; s++) { if (*s == '\n') { if (s[1]) *s = ' '; else *s = '\0'; } } s = scrbuf; break; } #endif #ifdef PROMPTTTY case '"': pattern = dointerp(scrbuf,(sizeof scrbuf),pattern+1,"\""); fputs(scrbuf,stdout); resetty(); mygets(scrbuf, sizeof(scrbuf)); crmode(); raw(); noecho(); nonl(); s = scrbuf; break; #endif case '~': s = homedir; break; case '.': s = dotdir; break; case '$': s = scrbuf; snprintf(scrbuf, sizeof(scrbuf), "%d",getpid()); break; case 'H': /* host name */ s = hostname; break; case 'L': /* login id */ s = logname; break; case 'N': /* full name */ s = getval("NAME",realname); break; case 'O': s = origdir; break; case 'p': s = cwd; break; case 'X': /* warp library */ s = warplib; break; default: if (--destsize <= 0) abort_interp(); *dest++ = *pattern | metabit; s = nullstr; break; } } if (!s) s = nullstr; pattern++; if (upper || lastcomp) { char *t; if (s != scrbuf) { safecpy(scrbuf,s,(sizeof scrbuf)); s = scrbuf; } if (upper || !(t=strrchr(s,'/'))) t = s; while (*t && !isalpha((unsigned char)*t)) { t++; *t = toupper((unsigned char)*t); } } i = metabit; /* maybe get into register */ if (s == dest) { while (*dest) { if (--destsize <= 0) abort_interp(); *dest++ |= i; } } else { while (*s) { if (--destsize <= 0) abort_interp(); *dest++ = *s++ | i; } } } else { if (--destsize <= 0) abort_interp(); if (*pattern == '^' && pattern[1]) { ++pattern; /* skip uparrow */ i = *pattern; /* get char into a register */ if (i == '?') *dest++ = '\177' | metabit; else if (i == '(') { metabit = 0200; destsize++; } else if (i == ')') { metabit = 0; destsize++; } else *dest++ = (i & 037) | metabit; pattern++; } else if (*pattern == '\\' && pattern[1]) { ++pattern; /* skip backslash */ i = *pattern; /* get char into a register */ /* this used to be a switch but the if may save space */ if (i >= '0' && i <= '7') { i = 1; while (i < 01000 && *pattern >= '0' && *pattern <= '7') { i <<= 3; i += *pattern++ - '0'; } *dest++ = (i & 0377) | metabit; --pattern; } else if (i == 'b') *dest++ = '\b' | metabit; else if (i == 'f') *dest++ = '\f' | metabit; else if (i == 'n') *dest++ = '\n' | metabit; else if (i == 'r') *dest++ = '\r' | metabit; else if (i == 't') *dest++ = '\t' | metabit; else *dest++ = i | metabit; pattern++; } else *dest++ = *pattern++ | metabit; } } *dest = '\0'; getout: return __UNCONST(pattern); /* where we left off */ } void interp(char *dest, size_t destsize, const char *pattern) { (void) dointerp(dest,destsize,pattern,NULL); #ifdef DEBUGGING if (debug & DEB_FILEXP) fputs(dest,stdout); #endif } /* get the person's real name from /etc/passwd */ /* (string is overwritten, so it must be copied) */ static char * getrealname(uid_t uid) { char *s, *c; #ifdef PASSNAMES struct passwd *pwd = getpwuid(uid); s = pwd->pw_gecos; #ifdef BERKNAMES #ifdef BERKJUNK while (*s && !isalnum(*s) && *s != '&') s++; #endif if ((c = strchr(s, ',')) != NULL) *c = '\0'; if ((c = strchr(s, ';')) != NULL) *c = '\0'; s = cpytill(buf,s,'&'); if (*s == '&') { /* whoever thought this one up was */ c = buf + strlen(buf); /* in the middle of the night */ strcat(c,logname); /* before the morning after */ strcat(c,s+1); if (islower((unsigned char)*c)) *c = toupper((unsigned char)*c); /* gack and double gack */ } #else if ((c = strchr(s, '(')) != NULL) *c = '\0'; if ((c = strchr(s, '-')) != NULL) s = c; strcpy(buf,tmpbuf); #endif endpwent(); return buf; /* return something static */ #else if ((tmpfp=fopen(filexp(FULLNAMEFILE),"r")) != NULL) { fgets(buf,sizeof buf,tmpfp); fclose(tmpfp); } else { resetty(); printf("What is your name? "); fgets(buf,(sizeof buf),stdin); crmode(); raw(); noecho(); nonl(); if (fork()) wait(0); else { setgid(getgid()); if ((tmpfp = fopen(filexp(FULLNAMEFILE),"w")) == NULL) exit(1); fprintf(tmpfp, "%s\n", buf); fclose(tmpfp); exit(0); } } buf[strlen(buf)-1] = '\0'; return buf; #endif } static void abort_interp(void) { fputs("\r\n% interp buffer overflow!\r\n",stdout); sig_catcher(0); }
f065b134df9e0c549e7cb28c3c6a6227cd2fd322
549f66608f0cb4e50cee2e51c53206e798ab82cd
/test/Feature/Float.c
ad9325d1cedc674e57b3bdc261bbac240cfd1e67
[ "NCSA" ]
permissive
klee/klee
c8da2f9668ee199af47cd2c784cea979017d7704
7082eafd05b4f268132ab94772c0243dbebf5087
refs/heads/master
2023-08-04T08:10:38.619540
2023-06-23T21:34:12
2023-07-21T09:00:02
11,568,417
2,339
679
NOASSERTION
2023-09-11T10:23:26
2013-07-21T22:03:03
C++
UTF-8
C
false
false
437
c
Float.c
// RUN: %clang -emit-llvm -g -c %s -o %t.bc // RUN: rm -rf %t.klee-out // RUN: %klee --output-dir=%t.klee-out %t.bc > %t.log // RUN: grep "3.30* -1.10* 2.420*" %t.log #include <stdio.h> float fadd(float a, float b) { return a + b; } float fsub(float a, float b) { return a - b; } float fmul(float a, float b) { return a * b; } int main() { printf("%f %f %f\n", fadd(1.1, 2.2), fsub(1.1, 2.2), fmul(1.1, 2.2)); return 0; }
283fe3feed55dcd8db4b5663169079ad894075c5
50dd46b8ece33f3cdd174284b15d1d51f89669d4
/third_party/edk2/Vlv2TbltDevicePkg/FspSupport/Library/SecFspPlatformSecLibVlv2/FspPlatformSecLibVlv2.c
7a7931bebf3ab4efdebd9e4f0c5c05dbec75218e
[ "LicenseRef-scancode-generic-cla", "Apache-2.0", "BSD-2-Clause", "OpenSSL" ]
permissive
google/google-ctf
f99da1ee07729bbccb869fff1cbaed6a80e43bcc
df02323eaf945d15e124801c74abaadca2749dc7
refs/heads/master
2023-08-31T14:30:27.548081
2023-08-29T13:04:20
2023-08-29T13:04:20
131,317,137
4,136
607
Apache-2.0
2023-08-30T22:17:02
2018-04-27T15:56:03
Go
UTF-8
C
false
false
5,365
c
FspPlatformSecLibVlv2.c
/** @file Copyright (c) 2014, Intel Corporation. All rights reserved.<BR> This program and the accompanying materials are licensed and made available under the terms and conditions of the BSD License which accompanies this distribution. The full text of the license may be found at http://opensource.org/licenses/bsd-license.php. THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED. **/ #include <PiPei.h> #include <Ppi/SecPlatformInformation.h> #include <Ppi/SecPerformance.h> #include <Ppi/TemporaryRamSupport.h> #include <Library/LocalApicLib.h> /** This interface conveys state information out of the Security (SEC) phase into PEI. @param PeiServices Pointer to the PEI Services Table. @param StructureSize Pointer to the variable describing size of the input buffer. @param PlatformInformationRecord Pointer to the EFI_SEC_PLATFORM_INFORMATION_RECORD. @retval EFI_SUCCESS The data was successfully returned. @retval EFI_BUFFER_TOO_SMALL The buffer was too small. **/ EFI_STATUS EFIAPI SecPlatformInformation ( IN CONST EFI_PEI_SERVICES **PeiServices, IN OUT UINT64 *StructureSize, OUT EFI_SEC_PLATFORM_INFORMATION_RECORD *PlatformInformationRecord ); /** This interface conveys performance information out of the Security (SEC) phase into PEI. This service is published by the SEC phase. The SEC phase handoff has an optional EFI_PEI_PPI_DESCRIPTOR list as its final argument when control is passed from SEC into the PEI Foundation. As such, if the platform supports collecting performance data in SEC, this information is encapsulated into the data structure abstracted by this service. This information is collected for the boot-strap processor (BSP) on IA-32. @param[in] PeiServices The pointer to the PEI Services Table. @param[in] This The pointer to this instance of the PEI_SEC_PERFORMANCE_PPI. @param[out] Performance The pointer to performance data collected in SEC phase. @retval EFI_SUCCESS The data was successfully returned. **/ EFI_STATUS EFIAPI SecGetPerformance ( IN CONST EFI_PEI_SERVICES **PeiServices, IN PEI_SEC_PERFORMANCE_PPI *This, OUT FIRMWARE_SEC_PERFORMANCE *Performance ); /** This service of the TEMPORARY_RAM_SUPPORT_PPI that migrates temporary RAM into permanent memory. @param PeiServices Pointer to the PEI Services Table. @param TemporaryMemoryBase Source Address in temporary memory from which the SEC or PEIM will copy the Temporary RAM contents. @param PermanentMemoryBase Destination Address in permanent memory into which the SEC or PEIM will copy the Temporary RAM contents. @param CopySize Amount of memory to migrate from temporary to permanent memory. @retval EFI_SUCCESS The data was successfully returned. @retval EFI_INVALID_PARAMETER PermanentMemoryBase + CopySize > TemporaryMemoryBase when TemporaryMemoryBase > PermanentMemoryBase. **/ EFI_STATUS EFIAPI SecTemporaryRamSupport ( IN CONST EFI_PEI_SERVICES **PeiServices, IN EFI_PHYSICAL_ADDRESS TemporaryMemoryBase, IN EFI_PHYSICAL_ADDRESS PermanentMemoryBase, IN UINTN CopySize ); EFI_SEC_PLATFORM_INFORMATION_PPI mSecPlatformInformationPpi = { SecPlatformInformation }; PEI_SEC_PERFORMANCE_PPI mSecPerformancePpi = { SecGetPerformance }; EFI_PEI_TEMPORARY_RAM_SUPPORT_PPI gSecTemporaryRamSupportPpi = { SecTemporaryRamSupport }; EFI_PEI_PPI_DESCRIPTOR mPeiSecPlatformPpi[] = { { EFI_PEI_PPI_DESCRIPTOR_PPI, &gEfiSecPlatformInformationPpiGuid, &mSecPlatformInformationPpi }, { EFI_PEI_PPI_DESCRIPTOR_PPI, &gPeiSecPerformancePpiGuid, &mSecPerformancePpi }, { EFI_PEI_PPI_DESCRIPTOR_PPI | EFI_PEI_PPI_DESCRIPTOR_TERMINATE_LIST, &gEfiTemporaryRamSupportPpiGuid, &gSecTemporaryRamSupportPpi }, }; /** A developer supplied function to perform platform specific operations. It's a developer supplied function to perform any operations appropriate to a given platform. It's invoked just before passing control to PEI core by SEC core. Platform developer may modify the SecCoreData passed to PEI Core. It returns a platform specific PPI list that platform wishes to pass to PEI core. The Generic SEC core module will merge this list to join the final list passed to PEI core. @param SecCoreData The same parameter as passing to PEI core. It could be overridden by this function. @return The platform specific PPI list to be passed to PEI core or NULL if there is no need of such platform specific PPI list. **/ EFI_PEI_PPI_DESCRIPTOR * EFIAPI SecPlatformMain ( IN OUT EFI_SEC_PEI_HAND_OFF *SecCoreData ) { EFI_PEI_PPI_DESCRIPTOR *PpiList; InitializeApicTimer (0, (UINT32) -1, TRUE, 5); PpiList = &mPeiSecPlatformPpi[0]; return PpiList; }
5df0ec6dd263ddeaba169827590df96119f8da69
ecce427678ecff2a93a47f3b1b664202c7d27617
/actors/unagi/anims/anim_05010B54.inc.c
12d104a3ecebd30c0ba2f94c167141013a12907f
[]
no_license
sm64pc/sm64ex
ecf37f31b3f7426c4874254660d856030d789714
54cd27ccee45a2403b45f07a00d6043c51149969
refs/heads/nightly
2023-08-11T12:14:34.424168
2023-07-01T11:45:50
2023-07-01T11:45:50
262,091,731
795
238
null
2023-07-01T11:45:51
2020-05-07T15:43:27
C
UTF-8
C
false
false
7,696
c
anim_05010B54.inc.c
// 0x050104A0 static const s16 unagi_seg5_animvalue_050104A0[] = { 0x0000, 0x003A, 0x0051, 0x0067, 0x007C, 0x008F, 0x00A1, 0x00B0, 0x00BE, 0x00C9, 0x00D1, 0x00D6, 0x00D7, 0x00D6, 0x00D1, 0x00C9, 0x00BE, 0x00B0, 0x00A1, 0x008F, 0x007C, 0x0067, 0x0051, 0x003A, 0x0023, 0x000B, 0xFFF4, 0xFFDC, 0xFFC5, 0xFFAE, 0xFF98, 0xFF83, 0xFF70, 0xFF5E, 0xFF4F, 0xFF41, 0xFF36, 0xFF2E, 0xFF29, 0xFF28, 0xFF29, 0xFF2E, 0xFF36, 0xFF41, 0xFF4F, 0xFF5E, 0xFF70, 0xFF83, 0xFF98, 0xFFAE, 0xFFC5, 0xFFDC, 0xFFF4, 0x000B, 0x0023, 0x0002, 0x0001, 0x0000, 0x0000, 0x0000, 0x0002, 0x0004, 0x0006, 0x0009, 0x000C, 0x000F, 0x0012, 0x0015, 0x0017, 0x0019, 0x001A, 0x001B, 0x001A, 0x0019, 0x0017, 0x0015, 0x0012, 0x000F, 0x000D, 0x000A, 0x0007, 0x0004, 0x0002, 0x0001, 0x0000, 0x0000, 0x0000, 0x0002, 0x0004, 0x0006, 0x0009, 0x000C, 0x000F, 0x0012, 0x0015, 0x0017, 0x0019, 0x001A, 0x001B, 0x001A, 0x0019, 0x0017, 0x0015, 0x0012, 0x000F, 0x000D, 0x000A, 0x0007, 0x0004, 0x3FFF, 0xF308, 0xF172, 0xF009, 0xEED4, 0xEDDA, 0xED1F, 0xECAB, 0xEC83, 0xECAB, 0xED1F, 0xEDDA, 0xEED4, 0xF009, 0xF172, 0xF308, 0xF4C6, 0xF6A5, 0xF8A0, 0xFAB1, 0xFCD0, 0xFEF9, 0x0124, 0x034C, 0x056C, 0x077C, 0x0977, 0x0B57, 0x0D15, 0x0EAB, 0x1014, 0x1148, 0x1243, 0x12FD, 0x1372, 0x139A, 0x1372, 0x12FD, 0x1243, 0x1148, 0x1014, 0x0EAB, 0x0D15, 0x0B57, 0x0977, 0x077C, 0x056C, 0x034C, 0x0124, 0xFEF9, 0xFCD0, 0xFAB1, 0xF8A0, 0xF6A5, 0xF4C6, 0xEC31, 0xEC5A, 0xECCF, 0xED8C, 0xEE8A, 0xEFC2, 0xF12E, 0xF2C9, 0xF48C, 0xF670, 0xF871, 0xFA87, 0xFCAD, 0xFEDC, 0x010C, 0x033B, 0x0561, 0x0777, 0x0977, 0x0B5C, 0x0D1F, 0x0EBA, 0x1026, 0x115E, 0x125C, 0x1318, 0x138E, 0x13B7, 0x138E, 0x1318, 0x125C, 0x115E, 0x1026, 0x0EBA, 0x0D1F, 0x0B5C, 0x0977, 0x0777, 0x0561, 0x033B, 0x010C, 0xFEDC, 0xFCAD, 0xFA87, 0xF871, 0xF670, 0xF48C, 0xF2C9, 0xF12E, 0xEFC2, 0xEE8A, 0xED8C, 0xECCF, 0xEC5A, 0x8001, 0x8008, 0x8019, 0x8033, 0x8054, 0x807B, 0x80A6, 0x80D2, 0x80FE, 0x8129, 0x8150, 0x8171, 0x818C, 0x819D, 0x81A3, 0x819C, 0x8188, 0x816A, 0x8145, 0x8119, 0x80EA, 0x80BA, 0x808B, 0x8060, 0x803A, 0x801C, 0x8009, 0x8001, 0x8008, 0x8019, 0x8033, 0x8054, 0x807B, 0x80A6, 0x80D2, 0x80FE, 0x8129, 0x8150, 0x8171, 0x818C, 0x819D, 0x81A3, 0x819C, 0x8188, 0x816A, 0x8145, 0x8119, 0x80EA, 0x80BA, 0x808B, 0x8060, 0x803A, 0x801C, 0x8009, 0x1C5F, 0x1B05, 0x193C, 0x171C, 0x14B0, 0x1203, 0x0F20, 0x0C11, 0x08E1, 0x059B, 0x0249, 0xFEF8, 0xFBB0, 0xF87D, 0xF56A, 0xF281, 0xEFCD, 0xED59, 0xEB30, 0xE93F, 0xE777, 0xE5E5, 0xE495, 0xE394, 0xE2F0, 0xE2B4, 0xE2EF, 0xE3AD, 0xE4FB, 0xE6C8, 0xE8F4, 0xEB72, 0xEE37, 0xF137, 0xF466, 0xF7B9, 0xFB24, 0xFE9A, 0x020F, 0x057A, 0x08CD, 0x0BFD, 0x0EFE, 0x11C5, 0x1445, 0x1672, 0x1857, 0x19FF, 0x1B63, 0x1C7A, 0x1D3D, 0x1DA3, 0x1DA6, 0x1D3C, 0x8001, 0x8008, 0x8019, 0x8033, 0x8054, 0x807B, 0x80A6, 0x80D2, 0x80FE, 0x8129, 0x8150, 0x8171, 0x818C, 0x819D, 0x81A3, 0x819C, 0x8188, 0x816A, 0x8145, 0x8119, 0x80EA, 0x80BA, 0x808B, 0x8060, 0x803A, 0x801C, 0x8009, 0x8001, 0x8008, 0x8019, 0x8033, 0x8054, 0x807B, 0x80A6, 0x80D2, 0x80FE, 0x8129, 0x8150, 0x8171, 0x818C, 0x819D, 0x81A3, 0x819C, 0x8188, 0x816A, 0x8145, 0x8119, 0x80EA, 0x80BA, 0x808B, 0x8060, 0x803A, 0x801C, 0x8009, 0x1C5F, 0x1B05, 0x193C, 0x171C, 0x14B0, 0x1203, 0x0F20, 0x0C11, 0x08E1, 0x059B, 0x0249, 0xFEF8, 0xFBB0, 0xF87D, 0xF56A, 0xF281, 0xEFCD, 0xED59, 0xEB30, 0xE93F, 0xE777, 0xE5E5, 0xE495, 0xE394, 0xE2F0, 0xE2B4, 0xE2EF, 0xE3AD, 0xE4FB, 0xE6C8, 0xE8F4, 0xEB72, 0xEE37, 0xF137, 0xF466, 0xF7B9, 0xFB24, 0xFE9A, 0x020F, 0x057A, 0x08CD, 0x0BFD, 0x0EFE, 0x11C5, 0x1445, 0x1672, 0x1857, 0x19FF, 0x1B63, 0x1C7A, 0x1D3D, 0x1DA3, 0x1DA6, 0x1D3C, 0x1C5F, 0x1B05, 0x193C, 0x171C, 0x14B0, 0x1203, 0x0F20, 0x0C11, 0x08E1, 0x059B, 0x0249, 0xFEF8, 0xFBB0, 0xF87D, 0xF56A, 0xF281, 0xEFCD, 0xED59, 0xEB30, 0xE93F, 0xE777, 0xE5E5, 0xE495, 0xE394, 0xE2F0, 0xE2B4, 0xE2EF, 0xE3AD, 0xE4FB, 0xE6C8, 0xE8F4, 0xEB72, 0xEE37, 0xF137, 0xF466, 0xF7B9, 0xFB24, 0xFE9A, 0x020F, 0x057A, 0x08CD, 0x0BFD, 0x0EFE, 0x11C5, 0x1445, 0x1672, 0x1857, 0x19FF, 0x1B63, 0x1C7A, 0x1D3D, 0x1DA3, 0x1DA6, 0x1D3C, 0x8001, 0x8008, 0x8019, 0x8033, 0x8054, 0x807B, 0x80A6, 0x80D2, 0x80FE, 0x8129, 0x8150, 0x8171, 0x818C, 0x819D, 0x81A3, 0x819C, 0x8188, 0x816A, 0x8145, 0x8119, 0x80EA, 0x80BA, 0x808B, 0x8060, 0x803A, 0x801C, 0x8009, 0x8001, 0x8008, 0x8019, 0x8033, 0x8054, 0x807B, 0x80A6, 0x80D2, 0x80FE, 0x8129, 0x8150, 0x8171, 0x818C, 0x819D, 0x81A3, 0x819C, 0x8188, 0x816A, 0x8145, 0x8119, 0x80EA, 0x80BA, 0x808B, 0x8060, 0x803A, 0x801C, 0x8009, 0x8001, 0x8001, 0x1C5F, 0x1B05, 0x193C, 0x171C, 0x14B0, 0x1203, 0x0F20, 0x0C11, 0x08E1, 0x059B, 0x0249, 0xFEF8, 0xFBB0, 0xF87D, 0xF56A, 0xF281, 0xEFCD, 0xED59, 0xEB30, 0xE93F, 0xE777, 0xE5E5, 0xE495, 0xE394, 0xE2F0, 0xE2B4, 0xE2EF, 0xE3AD, 0xE4FB, 0xE6C8, 0xE8F4, 0xEB72, 0xEE37, 0xF137, 0xF466, 0xF7B9, 0xFB24, 0xFE9A, 0x020F, 0x057A, 0x08CD, 0x0BFD, 0x0EFE, 0x11C5, 0x1445, 0x1672, 0x1857, 0x19FF, 0x1B63, 0x1C7A, 0x1D3D, 0x1DA3, 0x1DA6, 0x1D3C, 0x03F6, 0x0681, 0x08F8, 0x0B57, 0x0D94, 0x0FA9, 0x118F, 0x133E, 0x14B0, 0x15DB, 0x16BB, 0x1746, 0x1776, 0x1746, 0x16BB, 0x15DB, 0x14B0, 0x133E, 0x118F, 0x0FA9, 0x0D94, 0x0B57, 0x08F8, 0x0681, 0x03F6, 0x0161, 0xFECA, 0xFC35, 0xF9AB, 0xF733, 0xF4D4, 0xF297, 0xF082, 0xEE9C, 0xECED, 0xEB7C, 0xEA50, 0xE971, 0xE8E5, 0xE8B5, 0xE8E5, 0xE971, 0xEA50, 0xEB7C, 0xECED, 0xEE9C, 0xF082, 0xF297, 0xF4D4, 0xF733, 0xF9AB, 0xFC35, 0xFECA, 0x0161, 0x8001, 0xFDA4, 0xFF36, 0x00CA, 0x025C, 0x03E7, 0x0568, 0x06D8, 0x0835, 0x097A, 0x0AA1, 0x0BA8, 0x0C88, 0x0D3F, 0x0DC6, 0x0E1B, 0x0E38, 0x0E1B, 0x0DC6, 0x0D3F, 0x0C88, 0x0BA8, 0x0AA1, 0x097A, 0x0835, 0x06D8, 0x0568, 0x03E7, 0x025C, 0x00CA, 0xFF36, 0xFDA4, 0xFC19, 0xFA98, 0xF928, 0xF7CB, 0xF686, 0xF55F, 0xF458, 0xF378, 0xF2C1, 0xF23A, 0xF1E5, 0xF1C8, 0xF1E5, 0xF23A, 0xF2C1, 0xF378, 0xF458, 0xF55F, 0xF686, 0xF7CB, 0xF928, 0xFA98, 0xFC19, 0x0FD3, 0x0FB2, 0x0F55, 0x0EBF, 0x0DF6, 0x0CFE, 0x0BDD, 0x0A97, 0x0931, 0x07B0, 0x061A, 0x0472, 0x02BD, 0x0102, 0xFF45, 0xFD89, 0xFBD5, 0xFA2D, 0xF896, 0xF716, 0xF5B0, 0xF46A, 0xF348, 0xF251, 0xF187, 0xF0F2, 0xF094, 0xF074, 0xF094, 0xF0F2, 0xF187, 0xF251, 0xF348, 0xF46A, 0xF5B0, 0xF716, 0xF896, 0xFA2D, 0xFBD5, 0xFD89, 0xFF45, 0x0102, 0x02BD, 0x0472, 0x061A, 0x07B0, 0x0931, 0x0A97, 0x0BDD, 0x0CFE, 0x0DF6, 0x0EBF, 0x0F55, 0x0FB2, 0x0000, }; // 0x05010A94 static const u16 unagi_seg5_animindex_05010A94[] = { 0x0036, 0x0001, 0x0001, 0x0000, 0x0036, 0x0037, 0x0001, 0x0000, 0x0001, 0x006D, 0x0001, 0x0000, 0x0001, 0x0000, 0x0036, 0x02C3, 0x0001, 0x0000, 0x0001, 0x0000, 0x0036, 0x028D, 0x0001, 0x0000, 0x0001, 0x0000, 0x0036, 0x00A4, 0x0001, 0x0000, 0x0001, 0x0000, 0x0036, 0x006E, 0x0001, 0x0000, 0x0001, 0x0000, 0x0001, 0x0000, 0x0001, 0x0000, 0x0001, 0x0000, 0x0036, 0x0256, 0x0001, 0x028C, 0x0001, 0x0000, 0x0036, 0x0220, 0x0001, 0x0000, 0x0001, 0x021E, 0x0001, 0x021F, 0x0001, 0x0000, 0x0001, 0x0000, 0x0001, 0x0000, 0x0036, 0x01E8, 0x0001, 0x0000, 0x0001, 0x0000, 0x0036, 0x0146, 0x0001, 0x0000, 0x0001, 0x0000, 0x0036, 0x00DA, 0x0001, 0x0000, 0x0036, 0x01B2, 0x0001, 0x0000, 0x0001, 0x0000, 0x0036, 0x017C, 0x0001, 0x0000, 0x0001, 0x0000, 0x0036, 0x0110, 0x0001, 0x0000, }; // 0x05010B54 static const struct Animation unagi_seg5_anim_05010B54 = { 0, 0, 0, 0, 0x36, ANIMINDEX_NUMPARTS(unagi_seg5_animindex_05010A94), unagi_seg5_animvalue_050104A0, unagi_seg5_animindex_05010A94, 0, };
c5e6e1d2f4dbc6faf9d665659a935ddd0c7cae93
9907672fcd81ab73ac63b2a83422a82bf31eadde
/aizu/tyama_aizu0368.c
7df85a55dad95cbf6e4604633e9f8160f03831dd
[ "0BSD" ]
permissive
cielavenir/procon
bbe1974b9bddb51b76d58722a0686a5b477c4456
746e1a91f574f20647e8aaaac0d9e6173f741176
refs/heads/master
2023-06-21T23:11:24.562546
2023-06-11T13:15:15
2023-06-11T13:15:15
7,557,464
137
136
null
2020-10-20T09:35:52
2013-01-11T09:40:26
C++
UTF-8
C
false
false
301
c
tyama_aizu0368.c
#include <stdio.h> int main(){ int W,H; char S[2]; scanf("%d%d%s",&W,&H,S); for(int h=0;h<H;puts(""),h++)for(int w=0;w<W;w++)putchar( (h==0&&w==0) || (h==0&&w==W-1) || (h==H-1&&w==0) || (h==H-1&&w==W-1) ? '+' : h==0 || h==H-1 ? '-' : w==0 || w==W-1 ? '|' : h==H/2&&w==W/2 ? *S : '.' ); }
2a13927d5f5defcf5e4007f549eca877e7859261
94a1ae89fa4fac16b3d2a6c56ca678d6c8af668a
/include/ircd/gpt/gpu.h
6568d841818d6353a76e0f65130cce7fbeb867bc
[ "BSD-3-Clause", "LicenseRef-scancode-warranty-disclaimer" ]
permissive
matrix-construct/construct
99d677d0c2254cac2176d80690bbfd02b18a8658
0624b69246878da592d3f5c2c3737ad0b5ff6277
refs/heads/master
2023-05-28T12:16:23.661446
2023-04-28T05:33:46
2023-05-01T19:45:37
147,328,703
356
41
NOASSERTION
2022-07-22T03:45:21
2018-09-04T10:26:23
C++
UTF-8
C
false
false
12,708
h
gpu.h
// Matrix Construct // // Copyright (C) Matrix Construct Developers, Authors & Contributors // Copyright (C) 2016-2022 Jason Volk <jason@zemos.net> // // Permission to use, copy, modify, and/or distribute this software for any // purpose with or without fee is hereby granted, provided that the above // copyright notice and this permission notice is present in all copies. The // full license for this software is available in the LICENSE file. typedef union ircd_gpt_vector_f32x4 ircd_gpt_vectorv __attribute__((aligned(4096))); typedef struct ircd_gpt_attn_qkv_f32x4 ircd_gpt_attn_qkvv __attribute__((aligned(4096))); typedef union ircd_gpt_attn_aperature_f32x4 ircd_gpt_attn_aperaturev __attribute__((aligned(4096))); typedef union ircd_gpt_ffnn_aperature_f32x4 ircd_gpt_ffnn_aperaturev __attribute__((aligned(4096))); // // Frontside // void __attribute__((internal_linkage)) ircd_gpt_norm_fmad(__local ircd_gpt_vectorv *out, __local const ircd_gpt_vectorv *in, __global const ircd_gpt_vectorv *bias, __global const ircd_gpt_vectorv *weight, const uint li); void __attribute__((internal_linkage)) ircd_gpt_norm(__local ircd_gpt_vectorv *out, __local const ircd_gpt_vectorv *in, __local ircd_gpt_vectorv *tmp, __global const ircd_gpt_vectorv *bias, __global const ircd_gpt_vectorv *weight, const uint ln, const uint li); void __attribute__((internal_linkage)) ircd_gpt_ffnn_gelu(__local ircd_gpt_ffnn_aperaturev *out, __local const ircd_gpt_ffnn_aperaturev *in, const uint i); void __attribute__((internal_linkage)) ircd_gpt_ffnn_fcon_tmul(__constant const struct ircd_gpt_opts *opts, __local ircd_gpt_ffnn_aperaturev *out, __local const ircd_gpt_vectorv *in, __global const ircd_gpt_ffnn_aperaturev *bias, __global const ircd_gpt_ffnn_aperaturev *weight, const uint li); void __attribute__((internal_linkage)) ircd_gpt_ffnn_fcon(__global const struct ircd_gpt_ctrl *ctrl, __constant const struct ircd_gpt_opts *opts, __local ircd_gpt_ffnn_aperaturev *out, __local const ircd_gpt_vectorv *in, __global const ircd_gpt_ffnn_aperaturev *bias, __global const ircd_gpt_ffnn_aperaturev *weight, const uint ln, const uint li); void __attribute__((internal_linkage)) ircd_gpt_ffnn_proj_tmul(__constant const struct ircd_gpt_opts *opts, __local ircd_gpt_vectorv *out, __local const ircd_gpt_ffnn_aperaturev *in, __global const ircd_gpt_vectorv *bias, __global const ircd_gpt_vectorv *weight, const uint li); void __attribute__((internal_linkage)) ircd_gpt_ffnn(__global const struct ircd_gpt_ctrl *ctrl, __constant const struct ircd_gpt_opts *opts, __local ircd_gpt_vectorv *vector, __local ircd_gpt_ffnn_aperaturev *buf, __local ircd_gpt_vectorv *tmp, __global const ircd_gpt_vectorv *norm_bias, __global const ircd_gpt_vectorv *norm_weight, __global const ircd_gpt_ffnn_aperaturev *fcon_bias, __global const ircd_gpt_ffnn_aperaturev *fcon_weight, __global const ircd_gpt_vectorv *proj_bias, __global const ircd_gpt_vectorv *proj_weight, const uint ln, const uint li); void __attribute__((internal_linkage)) ircd_gpt_attn_fcon_tmul(__constant const struct ircd_gpt_opts *opts, __local ircd_gpt_attn_aperaturev *out, __local const ircd_gpt_vectorv *in, __global const ircd_gpt_attn_aperaturev *bias, __global const ircd_gpt_attn_aperaturev *weight, const uint ln, const uint li); __kernel void __attribute__((visibility("protected"))) ircd_gpt_attn_fcon(__global const struct ircd_gpt_ctrl *ctrl, __constant const struct ircd_gpt_opts *opts, __private const uint layer, __global ircd_gpt_attn_aperaturev *state, __global const ircd_gpt_vectorv *accum, __global const ircd_gpt_vectorv *norm_bias, __global const ircd_gpt_vectorv *norm_weight, __global const ircd_gpt_attn_aperaturev *fcon_bias, __global const ircd_gpt_attn_aperaturev *fcon_weight); // // head // void __attribute__((internal_linkage)) _ircd_gpt_lm_embed(__global const struct ircd_gpt_ctrl *ctrl, __constant const struct ircd_gpt_opts *opts, __global ircd_gpt_vectorv *accum, __global const ircd_gpt_vectorv *pos, __global const ircd_gpt_vectorv *vocab, const ushort out_idx, const ushort tok_idx, const ushort word_idx); __kernel void __attribute__((visibility("protected"))) ircd_gpt_lm_embed(__global const struct ircd_gpt_ctrl *ctrl, __constant const struct ircd_gpt_opts *opts, __global ircd_gpt_vectorv *accum, __global const ircd_gpt_vectorv *pos, __global const ircd_gpt_vectorv *vocab); __kernel void __attribute__((visibility("protected"))) ircd_gpt_lm_norm(__global const struct ircd_gpt_ctrl *ctrl, __constant const struct ircd_gpt_opts *opts, __global ircd_gpt_vectorv *accum, __global const ircd_gpt_vectorv *norm_bias, __global const ircd_gpt_vectorv *norm_weight); __kernel void __attribute__((visibility("protected"))) ircd_gpt_lm_logit(__global const struct ircd_gpt_ctrl *ctrl, __constant const struct ircd_gpt_opts *opts, __global float *logit, __global const ircd_gpt_vectorv *accum, __global const ircd_gpt_vectorv *pos, __global const ircd_gpt_vectorv *vocab); __kernel void __attribute__((visibility("protected"))) ircd_gpt_lm_logsm(__global struct ircd_gpt_ctrl *ctrl, __constant const struct ircd_gpt_opts *opts, __global float logit[65536]); void __attribute__((internal_linkage)) ircd_gpt_lm_result_top(__local struct ircd_gpt_ctrl *ctrl, __constant const struct ircd_gpt_opts *opts, __local const ushort *idx, __global const float *logsm, const uint i); void __attribute__((internal_linkage)) ircd_gpt_lm_result_label_mean(__local struct ircd_gpt_ctrl *ctrl, __constant const struct ircd_gpt_opts *opts, __local struct ircd_math_mean *mean, const float last); void __attribute__((internal_linkage)) ircd_gpt_lm_result_label(__local struct ircd_gpt_ctrl *ctrl, __constant const struct ircd_gpt_opts *opts, __local struct ircd_gpt_ctrl_label *label, __global const float *logsm); ushort __attribute__((internal_linkage)) ircd_gpt_lm_result_select(__local struct ircd_gpt_ctrl *ctrl, __constant const struct ircd_gpt_opts *opts, __local const ushort *idx, __global const float *logsm); uint __attribute__((internal_linkage)) ircd_gpt_accept_len(__local struct ircd_gpt_ctrl *ctrl, __constant const struct ircd_gpt_opts *opts, const uint i); uint __attribute__((internal_linkage)) ircd_gpt_accept_match(__local struct ircd_gpt_ctrl *ctrl, __constant const struct ircd_gpt_opts *opts, const uint i); int __attribute__((internal_linkage)) ircd_gpt_accept_check(__local struct ircd_gpt_ctrl *ctrl, __constant const struct ircd_gpt_opts *opts); void __attribute__((internal_linkage)) ircd_gpt_accept(__local struct ircd_gpt_ctrl *ctrl, __constant const struct ircd_gpt_opts *opts); // // backside // void __attribute__((internal_linkage)) ircd_gpt_prop_elem(__global const struct ircd_gpt_ctrl *ctrl, __constant const struct ircd_gpt_opts *opts, __global float4 *param_, __global float4 *exp_avg_, __global float4 *exp_avg_sqr_); // // backpropagations // __kernel void __attribute__((visibility("protected"))) ircd_gpt_norm_prop(__global const struct ircd_gpt_ctrl *ctrl, __constant const struct ircd_gpt_opts *opts, __global ircd_gpt_vectorv *bias, __global ircd_gpt_vectorv *bias_m0, __global ircd_gpt_vectorv *bias_m1, __global ircd_gpt_vectorv *weight, __global ircd_gpt_vectorv *weight_m0, __global ircd_gpt_vectorv *weight_m1); __kernel void __attribute__((visibility("protected"))) ircd_gpt_coil_prop_attn(__global const struct ircd_gpt_ctrl *ctrl, __constant const struct ircd_gpt_opts *opts, __global ircd_gpt_vectorv *norm_bias, __global ircd_gpt_vectorv *norm_bias_m0, __global ircd_gpt_vectorv *norm_bias_m1, __global ircd_gpt_vectorv *norm_weight, __global ircd_gpt_vectorv *norm_weight_m0, __global ircd_gpt_vectorv *norm_weight_m1, __global ircd_gpt_attn_aperaturev *fcon_bias, __global ircd_gpt_attn_aperaturev *fcon_bias_m0, __global ircd_gpt_attn_aperaturev *fcon_bias_m1, __global ircd_gpt_attn_aperaturev *fcon_weight, __global ircd_gpt_attn_aperaturev *fcon_weight_m0, __global ircd_gpt_attn_aperaturev *fcon_weight_m1, __global ircd_gpt_vectorv *proj_bias, __global ircd_gpt_vectorv *proj_bias_m0, __global ircd_gpt_vectorv *proj_bias_m1, __global ircd_gpt_vectorv *proj_weight, __global ircd_gpt_vectorv *proj_weight_m0, __global ircd_gpt_vectorv *proj_weight_m1); __kernel void __attribute__((visibility("protected"))) ircd_gpt_coil_prop_ffnn(__global const struct ircd_gpt_ctrl *ctrl, __constant const struct ircd_gpt_opts *opts, __global ircd_gpt_vectorv *norm_bias, __global ircd_gpt_vectorv *norm_bias_m0, __global ircd_gpt_vectorv *norm_bias_m1, __global ircd_gpt_vectorv *norm_weight, __global ircd_gpt_vectorv *norm_weight_m0, __global ircd_gpt_vectorv *norm_weight_m1, __global ircd_gpt_ffnn_aperaturev *fcon_bias, __global ircd_gpt_ffnn_aperaturev *fcon_bias_m0, __global ircd_gpt_ffnn_aperaturev *fcon_bias_m1, __global ircd_gpt_ffnn_aperaturev *fcon_weight, __global ircd_gpt_ffnn_aperaturev *fcon_weight_m0, __global ircd_gpt_ffnn_aperaturev *fcon_weight_m1, __global ircd_gpt_vectorv *proj_bias, __global ircd_gpt_vectorv *proj_bias_m0, __global ircd_gpt_vectorv *proj_bias_m1, __global ircd_gpt_vectorv *proj_weight, __global ircd_gpt_vectorv *proj_weight_m0, __global ircd_gpt_vectorv *proj_weight_m1); __kernel void __attribute__((visibility("protected"))) ircd_gpt_lm_embed_prop(__global const struct ircd_gpt_ctrl *ctrl, __constant const struct ircd_gpt_opts *opts, __global ircd_gpt_vectorv *pos, __global ircd_gpt_vectorv *pos_m0, __global ircd_gpt_vectorv *pos_m1, __global ircd_gpt_vectorv *token, __global ircd_gpt_vectorv *token_m0, __global ircd_gpt_vectorv *token_m1);
b5e75955cb07e49a0e7292e328b6b9ad980f3f37
88ae8695987ada722184307301e221e1ba3cc2fa
/third_party/ffmpeg/libavcodec/vorbisdsp.c
70022bd2624d3258eaf7cea70e3c5e1285615241
[ "BSD-3-Clause", "LGPL-2.1-only", "LGPL-3.0-only", "LGPL-2.0-or-later", "GPL-1.0-or-later", "GPL-2.0-only", "LGPL-2.1-or-later", "GPL-3.0-or-later", "LGPL-3.0-or-later", "IJG", "LicenseRef-scancode-other-permissive", "MIT", "GPL-2.0-or-later", "Apache-2.0", "GPL-3.0-only" ]
permissive
iridium-browser/iridium-browser
71d9c5ff76e014e6900b825f67389ab0ccd01329
5ee297f53dc7f8e70183031cff62f37b0f19d25f
refs/heads/master
2023-08-03T16:44:16.844552
2023-07-20T15:17:00
2023-07-23T16:09:30
220,016,632
341
40
BSD-3-Clause
2021-08-13T13:54:45
2019-11-06T14:32:31
null
UTF-8
C
false
false
1,801
c
vorbisdsp.c
/* * This file is part of FFmpeg. * * FFmpeg is free software; you can redistribute it and/or * modify it under the terms of the GNU Lesser General Public * License as published by the Free Software Foundation; either * version 2.1 of the License, or (at your option) any later version. * * FFmpeg is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU * Lesser General Public License for more details. * * You should have received a copy of the GNU Lesser General Public * License along with FFmpeg; if not, write to the Free Software * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA */ #include "config.h" #include "libavutil/attributes.h" #include "vorbisdsp.h" static void vorbis_inverse_coupling_c(float *mag, float *ang, ptrdiff_t blocksize) { for (ptrdiff_t i = 0; i < blocksize; i++) { float angi = ang[i], magi = mag[i]; if (magi > 0.f) { if (angi > 0.f) { ang[i] = magi - angi; } else { ang[i] = magi; mag[i] = magi + angi; } } else { if (angi > 0.f) { ang[i] = magi + angi; } else { ang[i] = magi; mag[i] = magi - angi; } } } } av_cold void ff_vorbisdsp_init(VorbisDSPContext *dsp) { dsp->vorbis_inverse_coupling = vorbis_inverse_coupling_c; #if ARCH_AARCH64 ff_vorbisdsp_init_aarch64(dsp); #elif ARCH_ARM ff_vorbisdsp_init_arm(dsp); #elif ARCH_PPC ff_vorbisdsp_init_ppc(dsp); #elif ARCH_RISCV ff_vorbisdsp_init_riscv(dsp); #elif ARCH_X86 ff_vorbisdsp_init_x86(dsp); #endif }
f909688f5084108f6bff76ac8bf43e772bf3ca3a
29a7a9691c51d070f39a4761d07bff4d9713a331
/crates/pdf_io/pdf_io/dpx-cid.h
a48dfd2cba328b92c3cbabf5c28077ccaf4ec95b
[ "MIT", "LicenseRef-scancode-unknown-license-reference" ]
permissive
tectonic-typesetting/tectonic
07596d8aa5122ead5bc845187c2a80fdeaab7ca3
63302695c0f59c6b0bdad2baade12b82a1d74c6d
refs/heads/master
2023-09-01T10:47:15.090008
2023-08-31T16:18:01
2023-08-31T16:18:01
74,936,681
3,648
177
NOASSERTION
2023-09-08T01:49:06
2016-11-28T04:17:33
C
UTF-8
C
false
false
1,854
h
dpx-cid.h
/* This is dvipdfmx, an eXtended version of dvipdfm by Mark A. Wicks. Copyright (C) 2002-2018 by Jin-Hwan Cho and Shunsaku Hirata, the dvipdfmx project team. This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version. This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. You should have received a copy of the GNU General Public License along with this program; if not, write to the Free Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA. */ #ifndef _CID_H_ #define _CID_H_ #include "tectonic_bridge_core.h" #include <stdbool.h> #include "dpx-pdffont.h" extern CIDSysInfo CSI_IDENTITY; extern CIDSysInfo CSI_UNICODE; extern int opt_flags_cidfont; extern void CIDFont_set_flags (int flags); #define CIDFONT_FORCE_FIXEDPITCH (1 << 1) extern char *CIDFont_get_usedchars (pdf_font *font); extern char *CIDFont_get_usedchars_v (pdf_font *font); extern int CIDFont_is_ACCFont (pdf_font *font); extern int CIDFont_is_UCSFont (pdf_font *font); #include "dpx-fontmap.h" extern int pdf_font_cidfont_lookup_cache (pdf_font *fonts, int count, const char *map_name, CIDSysInfo *cmap_csi, const fontmap_opt *fmap_opt); extern int pdf_font_open_cidfont (pdf_font *font, const char *map_name, CIDSysInfo *cmap_csi, const fontmap_opt *fmap_opt); extern void pdf_font_load_cidfont (pdf_font *font); #endif /* _CID_H_ */
02348916c97cee1b56f6af464e5534d57735b4eb
b1c0a1117a62d5f049e189e041aa19a914be6dbd
/extra/quicksort/Dsort.h
e8aee8dfcd33dce85522e15c83025c2bd0d652a0
[ "LicenseRef-scancode-public-domain" ]
permissive
lemire/Code-used-on-Daniel-Lemire-s-blog
847451d3acbeb28a6a6d50c6686eb537a6fdff41
c13fe68cdec26d45f688b5c58245fb428dc2ddb9
refs/heads/master
2023-08-31T09:55:12.275811
2023-08-31T00:33:59
2023-08-31T00:33:59
3,945,414
729
194
null
2023-09-04T07:50:21
2012-04-06T00:13:02
C
UTF-8
C
false
false
280
h
Dsort.h
#ifndef DSORT #define DSORT extern void dflgm(void **A, int lo, int hi, int pivotx, void (*cut)(void**, int, int, int, int (*)(const void*, const void*)), int depthLimit, int (*compareXY)(const void*, const void*)); #include "Dsort.c" #endif
5093df4b236264bfa1aaf56af04cc2a7014dafb9
8551168c7b71c31eebad0f9b0c71eebbcc743000
/src/include/game/pdmode.h
f9a3c96962e04f47f123fa986c45bffb731da5f1
[ "MIT" ]
permissive
n64decomp/perfect_dark
0db80e8ecba74741b959962e55c835a91c920f44
0235a971d6fb1a0d4421856d5a65aa8067bd4658
refs/heads/master
2023-08-31T04:27:53.864767
2023-08-29T11:36:58
2023-08-29T11:36:58
241,214,589
452
47
MIT
2023-08-21T08:53:40
2020-02-17T21:46:45
C
UTF-8
C
false
false
323
h
pdmode.h
#ifndef _IN_GAME_PDMODE_H #define _IN_GAME_PDMODE_H #include <ultra64.h> #include "data.h" #include "types.h" f32 pdmodeGetEnemyReactionSpeed(void); f32 pdmodeGetEnemyHealth(void); f32 pdmodeGetEnemyDamage(void); f32 pdmodeGetEnemyAccuracy(void); void func0f01b148(u32 arg0); void titleSetNextStage(s32 stagenum); #endif
5f4205dc14c422d1b344238c7fd57ad2e7d2f3bc
79d343002bb63a44f8ab0dbac0c9f4ec54078c3a
/lib/libc/include/xtensa-linux-any/asm/auxvec.h
976a6d1cb8f7c85a6892b46664ffbfa0ad799d74
[ "MIT" ]
permissive
ziglang/zig
4aa75d8d3bcc9e39bf61d265fd84b7f005623fc5
f4c9e19bc3213c2bc7e03d7b06d7129882f39f6c
refs/heads/master
2023-08-31T13:16:45.980913
2023-08-31T05:50:29
2023-08-31T05:50:29
40,276,274
25,560
2,399
MIT
2023-09-14T21:09:50
2015-08-06T00:51:28
Zig
UTF-8
C
false
false
59
h
auxvec.h
#ifndef __XTENSA_AUXVEC_H #define __XTENSA_AUXVEC_H #endif
a6c3725782df5f37e1fb805690f14723692d0497
0744dcc5394cebf57ebcba343747af6871b67017
/os/board/rtl8720e/src/component/network/mqtt/MQTTPacket/MQTTDeserializePublish.c
1e2ba3e4d0d8a712e3bb434edc1b627af47bb273
[ "GPL-1.0-or-later", "BSD-3-Clause", "ISC", "MIT", "LicenseRef-scancode-warranty-disclaimer", "LicenseRef-scancode-other-permissive", "Apache-2.0" ]
permissive
Samsung/TizenRT
96abf62f1853f61fcf91ff14671a5e0c6ca48fdb
1a5c2e00a4b1bbf4c505bbf5cc6a8259e926f686
refs/heads/master
2023-08-31T08:59:33.327998
2023-08-08T06:09:20
2023-08-31T04:38:20
82,517,252
590
719
Apache-2.0
2023-09-14T06:54:49
2017-02-20T04:38:30
C
UTF-8
C
false
false
3,667
c
MQTTDeserializePublish.c
/******************************************************************************* * Copyright (c) 2014 IBM Corp. * * All rights reserved. This program and the accompanying materials * are made available under the terms of the Eclipse Public License v1.0 * and Eclipse Distribution License v1.0 which accompany this distribution. * * The Eclipse Public License is available at * http://www.eclipse.org/legal/epl-v10.html * and the Eclipse Distribution License is available at * http://www.eclipse.org/org/documents/edl-v10.php. * * Contributors: * Ian Craggs - initial API and implementation and/or initial documentation *******************************************************************************/ #include "StackTrace.h" #include "MQTTPacket.h" #include <string.h> #define min(a, b) ((a < b) ? 1 : 0) /** * Deserializes the supplied (wire) buffer into publish data * @param dup returned integer - the MQTT dup flag * @param qos returned integer - the MQTT QoS value * @param retained returned integer - the MQTT retained flag * @param packetid returned integer - the MQTT packet identifier * @param topicName returned MQTTString - the MQTT topic in the publish * @param payload returned byte buffer - the MQTT publish payload * @param payloadlen returned integer - the length of the MQTT payload * @param buf the raw buffer data, of the correct length determined by the remaining length field * @param buflen the length in bytes of the data in the supplied buffer * @return error code. 1 is success */ int MQTTDeserialize_publish(unsigned char *dup, int *qos, unsigned char *retained, unsigned short *packetid, MQTTString *topicName, unsigned char **payload, int *payloadlen, unsigned char *buf, int buflen) { /* To avoid gcc warnings */ (void) buflen; MQTTHeader header = {0}; unsigned char *curdata = buf; unsigned char *enddata = NULL; int rc = 0; int mylen = 0; FUNC_ENTRY; header.byte = readChar(&curdata); if (header.bits.type != PUBLISH) { goto exit; } *dup = header.bits.dup; *qos = header.bits.qos; *retained = header.bits.retain; curdata += (rc = MQTTPacket_decodeBuf(curdata, &mylen)); /* read remaining length */ enddata = curdata + mylen; if (!readMQTTLenString(topicName, &curdata, enddata) || enddata - curdata < 0) { /* do we have enough data to read the protocol version byte? */ goto exit; } if (*qos > 0) { *packetid = readInt(&curdata); } *payloadlen = enddata - curdata; *payload = curdata; rc = 1; exit: FUNC_EXIT_RC(rc); return rc; } /** * Deserializes the supplied (wire) buffer into an ack * @param packettype returned integer - the MQTT packet type * @param dup returned integer - the MQTT dup flag * @param packetid returned integer - the MQTT packet identifier * @param buf the raw buffer data, of the correct length determined by the remaining length field * @param buflen the length in bytes of the data in the supplied buffer * @return error code. 1 is success, 0 is failure */ int MQTTDeserialize_ack(unsigned char *packettype, unsigned char *dup, unsigned short *packetid, unsigned char *buf, int buflen) { MQTTHeader header = {0}; unsigned char *curdata = buf; unsigned char *enddata = NULL; int rc = 0; int mylen; /* To avoid gcc warnings */ (void) buflen; FUNC_ENTRY; header.byte = readChar(&curdata); *dup = header.bits.dup; *packettype = header.bits.type; curdata += (rc = MQTTPacket_decodeBuf(curdata, &mylen)); /* read remaining length */ enddata = curdata + mylen; if (enddata - curdata < 2) { goto exit; } *packetid = readInt(&curdata); rc = 1; exit: FUNC_EXIT_RC(rc); return rc; }
377cd7404d01258dba165e5e50205b053553f47a
e65a4dbfbfb0e54e59787ba7741efee12f7687f3
/x11/gtkchtheme/files/patch-theme_sel.c
0e1d088bf29d069a56154560ec5811d7d4379479
[ "BSD-2-Clause" ]
permissive
freebsd/freebsd-ports
86f2e89d43913412c4f6b2be3e255bc0945eac12
605a2983f245ac63f5420e023e7dce56898ad801
refs/heads/main
2023-08-30T21:46:28.720924
2023-08-30T19:33:44
2023-08-30T19:33:44
1,803,961
916
918
NOASSERTION
2023-09-08T04:06:26
2011-05-26T11:15:35
null
UTF-8
C
false
false
1,812
c
patch-theme_sel.c
--- theme_sel.c.orig 2004-02-09 02:20:28 UTC +++ theme_sel.c @@ -53,6 +53,9 @@ static void insert_key_in_liststore(gcha GtkWidget *create_theme_sel(void) { + GtkTreeSelection *selection; + GtkTreeViewColumn *column; + GtkWidget *sw; GtkListStore *store = gtk_list_store_new(1, G_TYPE_STRING); gtk_tree_sortable_set_sort_column_id(GTK_TREE_SORTABLE(store), 0, @@ -65,7 +68,7 @@ GtkWidget *create_theme_sel(void) gtk_tree_view_set_rules_hint(GTK_TREE_VIEW(theme_list), TRUE); gtk_tree_view_set_search_column(GTK_TREE_VIEW(theme_list), 0); - GtkTreeSelection *selection = + selection = gtk_tree_view_get_selection(GTK_TREE_VIEW(theme_list)); gtk_tree_selection_set_mode(selection, GTK_SELECTION_BROWSE); @@ -81,11 +84,12 @@ GtkWidget *create_theme_sel(void) do { + GtkTreePath *p; gtk_tree_model_get(GTK_TREE_MODEL(store), &iter, 0, &newtheme, -1); if (strcmp(newtheme, get_theme()) != 0) continue; - GtkTreePath *p = gtk_tree_model_get_path(GTK_TREE_MODEL(store), &iter); + p = gtk_tree_model_get_path(GTK_TREE_MODEL(store), &iter); gtk_tree_view_set_cursor(GTK_TREE_VIEW(theme_list), p, NULL, FALSE); gtk_tree_view_scroll_to_cell(GTK_TREE_VIEW(theme_list), p, NULL, TRUE, 0.5, 0); @@ -97,14 +101,14 @@ GtkWidget *create_theme_sel(void) g_object_unref(G_OBJECT(store)); - GtkTreeViewColumn *column = + column = gtk_tree_view_column_new_with_attributes("Theme", gtk_cell_renderer_text_new(), "text", 0, NULL); gtk_tree_view_column_set_sort_column_id(column, 0); gtk_tree_view_append_column(GTK_TREE_VIEW(theme_list), column); - GtkWidget *sw = gtk_scrolled_window_new(NULL, NULL); + sw = gtk_scrolled_window_new(NULL, NULL); gtk_scrolled_window_set_policy(GTK_SCROLLED_WINDOW(sw), GTK_POLICY_AUTOMATIC, GTK_POLICY_AUTOMATIC);
fcac26a2abfd37d9b15a862c9dd9491c31c9ed1f
89db60818afeb3dc7c3b7abe9ceae155f074f7f2
/src/cmd/map/libmap/aitoff.c
83b777fb3a1e7de7db4e890839bf6a96af914e9a
[ "bzip2-1.0.6", "LPL-1.02", "MIT" ]
permissive
9fans/plan9port
63c3d01928c6f8a8617d3ea6ecc05bac72391132
65c090346a38a8c30cb242d345aa71060116340c
refs/heads/master
2023-08-25T17:14:26.233105
2023-08-23T13:21:37
2023-08-23T18:47:08
26,095,474
1,645
468
NOASSERTION
2023-09-05T16:55:41
2014-11-02T22:40:13
C
UTF-8
C
false
false
397
c
aitoff.c
#include <u.h> #include <libc.h> #include "map.h" #define Xaitwist Xaitpole.nlat static struct place Xaitpole; static int Xaitoff(struct place *place, double *x, double *y) { struct place p; copyplace(place,&p); p.wlon.l /= 2.; sincos(&p.wlon); norm(&p,&Xaitpole,&Xaitwist); Xazequalarea(&p,x,y); *x *= 2.; return(1); } proj aitoff(void) { latlon(0.,0.,&Xaitpole); return(Xaitoff); }
3219e85fa132aec69f9bfe23b7221d4fc9454892
376e1818d427b5e4d32fa6dd6c7b71e9fd88afdb
/net/ipgrab/patches/patch-src_utilities.h
39647fba9ddc7cef842a15c3a33892a6afbea9fd
[]
no_license
NetBSD/pkgsrc
a0732c023519650ef821ab89c23ab6ab59e25bdb
d042034ec4896cc5b47ed6f2e5b8802d9bc5c556
refs/heads/trunk
2023-09-01T07:40:12.138283
2023-09-01T05:25:19
2023-09-01T05:25:19
88,439,572
321
138
null
2023-07-12T22:34:14
2017-04-16T20:04:15
null
UTF-8
C
false
false
857
h
patch-src_utilities.h
$NetBSD: patch-src_utilities.h,v 1.1 2012/11/19 03:06:04 joerg Exp $ --- src/utilities.h.orig 2012-11-19 00:56:45.000000000 +0000 +++ src/utilities.h @@ -28,14 +28,14 @@ #include "global.h" -inline void reverse_byte_order(u_int8_t *, int); -inline int isprint_str(char *, int); -inline int isspace_str(char *, int); -inline char * argv2str(char **); -inline void * my_malloc(size_t); -inline void my_free(void *); -inline void dump_hex_and_text(char *, int); -inline int ipaddr_space(u_int32_t); -inline char * make_space_str(int); +void reverse_byte_order(u_int8_t *, int); +int isprint_str(char *, int); +int isspace_str(char *, int); +char * argv2str(char **); +void * my_malloc(size_t); +void my_free(void *); +void dump_hex_and_text(char *, int); +int ipaddr_space(u_int32_t); +char * make_space_str(int); #endif
7a58585a1e1d859bdd4b336781bcd9398351f42e
7eaf54a78c9e2117247cb2ab6d3a0c20719ba700
/SOFTWARE/A64-TERES/linux-a64/drivers/tty/serial/omap-serial.c
f0b9f6b52b32cd887ad6b86586f97aa9eec9648c
[ "Linux-syscall-note", "GPL-2.0-only", "GPL-1.0-or-later", "LicenseRef-scancode-free-unknown", "Apache-2.0" ]
permissive
OLIMEX/DIY-LAPTOP
ae82f4ee79c641d9aee444db9a75f3f6709afa92
a3fafd1309135650bab27f5eafc0c32bc3ca74ee
refs/heads/rel3
2023-08-04T01:54:19.483792
2023-04-03T07:18:12
2023-04-03T07:18:12
80,094,055
507
92
Apache-2.0
2023-04-03T07:05:59
2017-01-26T07:25:50
C
UTF-8
C
false
false
43,653
c
omap-serial.c
/* * Driver for OMAP-UART controller. * Based on drivers/serial/8250.c * * Copyright (C) 2010 Texas Instruments. * * Authors: * Govindraj R <govindraj.raja@ti.com> * Thara Gopinath <thara@ti.com> * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation; either version 2 of the License, or * (at your option) any later version. * * Note: This driver is made separate from 8250 driver as we cannot * over load 8250 driver with omap platform specific configuration for * features like DMA, it makes easier to implement features like DMA and * hardware flow control and software flow control configuration with * this driver as required for the omap-platform. */ #if defined(CONFIG_SERIAL_OMAP_CONSOLE) && defined(CONFIG_MAGIC_SYSRQ) #define SUPPORT_SYSRQ #endif #include <linux/module.h> #include <linux/init.h> #include <linux/console.h> #include <linux/serial_reg.h> #include <linux/delay.h> #include <linux/slab.h> #include <linux/tty.h> #include <linux/tty_flip.h> #include <linux/platform_device.h> #include <linux/io.h> #include <linux/clk.h> #include <linux/serial_core.h> #include <linux/irq.h> #include <linux/pm_runtime.h> #include <linux/of.h> #include <linux/gpio.h> #include <linux/pinctrl/consumer.h> #include <linux/platform_data/serial-omap.h> #define OMAP_MAX_HSUART_PORTS 6 #define UART_BUILD_REVISION(x, y) (((x) << 8) | (y)) #define OMAP_UART_REV_42 0x0402 #define OMAP_UART_REV_46 0x0406 #define OMAP_UART_REV_52 0x0502 #define OMAP_UART_REV_63 0x0603 #define UART_ERRATA_i202_MDR1_ACCESS BIT(0) #define UART_ERRATA_i291_DMA_FORCEIDLE BIT(1) #define DEFAULT_CLK_SPEED 48000000 /* 48Mhz*/ /* SCR register bitmasks */ #define OMAP_UART_SCR_RX_TRIG_GRANU1_MASK (1 << 7) #define OMAP_UART_SCR_TX_TRIG_GRANU1_MASK (1 << 6) #define OMAP_UART_SCR_TX_EMPTY (1 << 3) /* FCR register bitmasks */ #define OMAP_UART_FCR_RX_FIFO_TRIG_MASK (0x3 << 6) #define OMAP_UART_FCR_TX_FIFO_TRIG_MASK (0x3 << 4) /* MVR register bitmasks */ #define OMAP_UART_MVR_SCHEME_SHIFT 30 #define OMAP_UART_LEGACY_MVR_MAJ_MASK 0xf0 #define OMAP_UART_LEGACY_MVR_MAJ_SHIFT 4 #define OMAP_UART_LEGACY_MVR_MIN_MASK 0x0f #define OMAP_UART_MVR_MAJ_MASK 0x700 #define OMAP_UART_MVR_MAJ_SHIFT 8 #define OMAP_UART_MVR_MIN_MASK 0x3f #define OMAP_UART_DMA_CH_FREE -1 #define MSR_SAVE_FLAGS UART_MSR_ANY_DELTA #define OMAP_MODE13X_SPEED 230400 /* WER = 0x7F * Enable module level wakeup in WER reg */ #define OMAP_UART_WER_MOD_WKUP 0X7F /* Enable XON/XOFF flow control on output */ #define OMAP_UART_SW_TX 0x08 /* Enable XON/XOFF flow control on input */ #define OMAP_UART_SW_RX 0x02 #define OMAP_UART_SW_CLR 0xF0 #define OMAP_UART_TCR_TRIG 0x0F struct uart_omap_dma { u8 uart_dma_tx; u8 uart_dma_rx; int rx_dma_channel; int tx_dma_channel; dma_addr_t rx_buf_dma_phys; dma_addr_t tx_buf_dma_phys; unsigned int uart_base; /* * Buffer for rx dma.It is not required for tx because the buffer * comes from port structure. */ unsigned char *rx_buf; unsigned int prev_rx_dma_pos; int tx_buf_size; int tx_dma_used; int rx_dma_used; spinlock_t tx_lock; spinlock_t rx_lock; /* timer to poll activity on rx dma */ struct timer_list rx_timer; unsigned int rx_buf_size; unsigned int rx_poll_rate; unsigned int rx_timeout; }; struct uart_omap_port { struct uart_port port; struct uart_omap_dma uart_dma; struct device *dev; unsigned char ier; unsigned char lcr; unsigned char mcr; unsigned char fcr; unsigned char efr; unsigned char dll; unsigned char dlh; unsigned char mdr1; unsigned char scr; int use_dma; /* * Some bits in registers are cleared on a read, so they must * be saved whenever the register is read but the bits will not * be immediately processed. */ unsigned int lsr_break_flag; unsigned char msr_saved_flags; char name[20]; unsigned long port_activity; int context_loss_cnt; u32 errata; u8 wakeups_enabled; int DTR_gpio; int DTR_inverted; int DTR_active; struct pm_qos_request pm_qos_request; u32 latency; u32 calc_latency; struct work_struct qos_work; struct pinctrl *pins; }; #define to_uart_omap_port(p) ((container_of((p), struct uart_omap_port, port))) static struct uart_omap_port *ui[OMAP_MAX_HSUART_PORTS]; /* Forward declaration of functions */ static void serial_omap_mdr1_errataset(struct uart_omap_port *up, u8 mdr1); static struct workqueue_struct *serial_omap_uart_wq; static inline unsigned int serial_in(struct uart_omap_port *up, int offset) { offset <<= up->port.regshift; return readw(up->port.membase + offset); } static inline void serial_out(struct uart_omap_port *up, int offset, int value) { offset <<= up->port.regshift; writew(value, up->port.membase + offset); } static inline void serial_omap_clear_fifos(struct uart_omap_port *up) { serial_out(up, UART_FCR, UART_FCR_ENABLE_FIFO); serial_out(up, UART_FCR, UART_FCR_ENABLE_FIFO | UART_FCR_CLEAR_RCVR | UART_FCR_CLEAR_XMIT); serial_out(up, UART_FCR, 0); } static int serial_omap_get_context_loss_count(struct uart_omap_port *up) { struct omap_uart_port_info *pdata = up->dev->platform_data; if (!pdata || !pdata->get_context_loss_count) return 0; return pdata->get_context_loss_count(up->dev); } static void serial_omap_enable_wakeup(struct uart_omap_port *up, bool enable) { struct omap_uart_port_info *pdata = up->dev->platform_data; if (!pdata || !pdata->enable_wakeup) return; pdata->enable_wakeup(up->dev, enable); } /* * serial_omap_baud_is_mode16 - check if baud rate is MODE16X * @port: uart port info * @baud: baudrate for which mode needs to be determined * * Returns true if baud rate is MODE16X and false if MODE13X * Original table in OMAP TRM named "UART Mode Baud Rates, Divisor Values, * and Error Rates" determines modes not for all common baud rates. * E.g. for 1000000 baud rate mode must be 16x, but according to that * table it's determined as 13x. */ static bool serial_omap_baud_is_mode16(struct uart_port *port, unsigned int baud) { unsigned int n13 = port->uartclk / (13 * baud); unsigned int n16 = port->uartclk / (16 * baud); int baudAbsDiff13 = baud - (port->uartclk / (13 * n13)); int baudAbsDiff16 = baud - (port->uartclk / (16 * n16)); if(baudAbsDiff13 < 0) baudAbsDiff13 = -baudAbsDiff13; if(baudAbsDiff16 < 0) baudAbsDiff16 = -baudAbsDiff16; return (baudAbsDiff13 > baudAbsDiff16); } /* * serial_omap_get_divisor - calculate divisor value * @port: uart port info * @baud: baudrate for which divisor needs to be calculated. */ static unsigned int serial_omap_get_divisor(struct uart_port *port, unsigned int baud) { unsigned int divisor; if (!serial_omap_baud_is_mode16(port, baud)) divisor = 13; else divisor = 16; return port->uartclk/(baud * divisor); } static void serial_omap_enable_ms(struct uart_port *port) { struct uart_omap_port *up = to_uart_omap_port(port); dev_dbg(up->port.dev, "serial_omap_enable_ms+%d\n", up->port.line); pm_runtime_get_sync(up->dev); up->ier |= UART_IER_MSI; serial_out(up, UART_IER, up->ier); pm_runtime_mark_last_busy(up->dev); pm_runtime_put_autosuspend(up->dev); } static void serial_omap_stop_tx(struct uart_port *port) { struct uart_omap_port *up = to_uart_omap_port(port); pm_runtime_get_sync(up->dev); if (up->ier & UART_IER_THRI) { up->ier &= ~UART_IER_THRI; serial_out(up, UART_IER, up->ier); } pm_runtime_mark_last_busy(up->dev); pm_runtime_put_autosuspend(up->dev); } static void serial_omap_stop_rx(struct uart_port *port) { struct uart_omap_port *up = to_uart_omap_port(port); pm_runtime_get_sync(up->dev); up->ier &= ~UART_IER_RLSI; up->port.read_status_mask &= ~UART_LSR_DR; serial_out(up, UART_IER, up->ier); pm_runtime_mark_last_busy(up->dev); pm_runtime_put_autosuspend(up->dev); } static void transmit_chars(struct uart_omap_port *up, unsigned int lsr) { struct circ_buf *xmit = &up->port.state->xmit; int count; if (up->port.x_char) { serial_out(up, UART_TX, up->port.x_char); up->port.icount.tx++; up->port.x_char = 0; return; } if (uart_circ_empty(xmit) || uart_tx_stopped(&up->port)) { serial_omap_stop_tx(&up->port); return; } count = up->port.fifosize / 4; do { serial_out(up, UART_TX, xmit->buf[xmit->tail]); xmit->tail = (xmit->tail + 1) & (UART_XMIT_SIZE - 1); up->port.icount.tx++; if (uart_circ_empty(xmit)) break; } while (--count > 0); if (uart_circ_chars_pending(xmit) < WAKEUP_CHARS) { spin_unlock(&up->port.lock); uart_write_wakeup(&up->port); spin_lock(&up->port.lock); } if (uart_circ_empty(xmit)) serial_omap_stop_tx(&up->port); } static inline void serial_omap_enable_ier_thri(struct uart_omap_port *up) { if (!(up->ier & UART_IER_THRI)) { up->ier |= UART_IER_THRI; serial_out(up, UART_IER, up->ier); } } static void serial_omap_start_tx(struct uart_port *port) { struct uart_omap_port *up = to_uart_omap_port(port); pm_runtime_get_sync(up->dev); serial_omap_enable_ier_thri(up); pm_runtime_mark_last_busy(up->dev); pm_runtime_put_autosuspend(up->dev); } static void serial_omap_throttle(struct uart_port *port) { struct uart_omap_port *up = to_uart_omap_port(port); unsigned long flags; pm_runtime_get_sync(up->dev); spin_lock_irqsave(&up->port.lock, flags); up->ier &= ~(UART_IER_RLSI | UART_IER_RDI); serial_out(up, UART_IER, up->ier); spin_unlock_irqrestore(&up->port.lock, flags); pm_runtime_mark_last_busy(up->dev); pm_runtime_put_autosuspend(up->dev); } static void serial_omap_unthrottle(struct uart_port *port) { struct uart_omap_port *up = to_uart_omap_port(port); unsigned long flags; pm_runtime_get_sync(up->dev); spin_lock_irqsave(&up->port.lock, flags); up->ier |= UART_IER_RLSI | UART_IER_RDI; serial_out(up, UART_IER, up->ier); spin_unlock_irqrestore(&up->port.lock, flags); pm_runtime_mark_last_busy(up->dev); pm_runtime_put_autosuspend(up->dev); } static unsigned int check_modem_status(struct uart_omap_port *up) { unsigned int status; status = serial_in(up, UART_MSR); status |= up->msr_saved_flags; up->msr_saved_flags = 0; if ((status & UART_MSR_ANY_DELTA) == 0) return status; if (status & UART_MSR_ANY_DELTA && up->ier & UART_IER_MSI && up->port.state != NULL) { if (status & UART_MSR_TERI) up->port.icount.rng++; if (status & UART_MSR_DDSR) up->port.icount.dsr++; if (status & UART_MSR_DDCD) uart_handle_dcd_change (&up->port, status & UART_MSR_DCD); if (status & UART_MSR_DCTS) uart_handle_cts_change (&up->port, status & UART_MSR_CTS); wake_up_interruptible(&up->port.state->port.delta_msr_wait); } return status; } static void serial_omap_rlsi(struct uart_omap_port *up, unsigned int lsr) { unsigned int flag; unsigned char ch = 0; if (likely(lsr & UART_LSR_DR)) ch = serial_in(up, UART_RX); up->port.icount.rx++; flag = TTY_NORMAL; if (lsr & UART_LSR_BI) { flag = TTY_BREAK; lsr &= ~(UART_LSR_FE | UART_LSR_PE); up->port.icount.brk++; /* * We do the SysRQ and SAK checking * here because otherwise the break * may get masked by ignore_status_mask * or read_status_mask. */ if (uart_handle_break(&up->port)) return; } if (lsr & UART_LSR_PE) { flag = TTY_PARITY; up->port.icount.parity++; } if (lsr & UART_LSR_FE) { flag = TTY_FRAME; up->port.icount.frame++; } if (lsr & UART_LSR_OE) up->port.icount.overrun++; #ifdef CONFIG_SERIAL_OMAP_CONSOLE if (up->port.line == up->port.cons->index) { /* Recover the break flag from console xmit */ lsr |= up->lsr_break_flag; } #endif uart_insert_char(&up->port, lsr, UART_LSR_OE, 0, flag); } static void serial_omap_rdi(struct uart_omap_port *up, unsigned int lsr) { unsigned char ch = 0; unsigned int flag; if (!(lsr & UART_LSR_DR)) return; ch = serial_in(up, UART_RX); flag = TTY_NORMAL; up->port.icount.rx++; if (uart_handle_sysrq_char(&up->port, ch)) return; uart_insert_char(&up->port, lsr, UART_LSR_OE, ch, flag); } /** * serial_omap_irq() - This handles the interrupt from one port * @irq: uart port irq number * @dev_id: uart port info */ static irqreturn_t serial_omap_irq(int irq, void *dev_id) { struct uart_omap_port *up = dev_id; unsigned int iir, lsr; unsigned int type; irqreturn_t ret = IRQ_NONE; int max_count = 256; spin_lock(&up->port.lock); pm_runtime_get_sync(up->dev); do { iir = serial_in(up, UART_IIR); if (iir & UART_IIR_NO_INT) break; ret = IRQ_HANDLED; lsr = serial_in(up, UART_LSR); /* extract IRQ type from IIR register */ type = iir & 0x3e; switch (type) { case UART_IIR_MSI: check_modem_status(up); break; case UART_IIR_THRI: transmit_chars(up, lsr); break; case UART_IIR_RX_TIMEOUT: /* FALLTHROUGH */ case UART_IIR_RDI: serial_omap_rdi(up, lsr); break; case UART_IIR_RLSI: serial_omap_rlsi(up, lsr); break; case UART_IIR_CTS_RTS_DSR: /* simply try again */ break; case UART_IIR_XOFF: /* FALLTHROUGH */ default: break; } } while (!(iir & UART_IIR_NO_INT) && max_count--); spin_unlock(&up->port.lock); tty_flip_buffer_push(&up->port.state->port); pm_runtime_mark_last_busy(up->dev); pm_runtime_put_autosuspend(up->dev); up->port_activity = jiffies; return ret; } static unsigned int serial_omap_tx_empty(struct uart_port *port) { struct uart_omap_port *up = to_uart_omap_port(port); unsigned long flags = 0; unsigned int ret = 0; pm_runtime_get_sync(up->dev); dev_dbg(up->port.dev, "serial_omap_tx_empty+%d\n", up->port.line); spin_lock_irqsave(&up->port.lock, flags); ret = serial_in(up, UART_LSR) & UART_LSR_TEMT ? TIOCSER_TEMT : 0; spin_unlock_irqrestore(&up->port.lock, flags); pm_runtime_mark_last_busy(up->dev); pm_runtime_put_autosuspend(up->dev); return ret; } static unsigned int serial_omap_get_mctrl(struct uart_port *port) { struct uart_omap_port *up = to_uart_omap_port(port); unsigned int status; unsigned int ret = 0; pm_runtime_get_sync(up->dev); status = check_modem_status(up); pm_runtime_mark_last_busy(up->dev); pm_runtime_put_autosuspend(up->dev); dev_dbg(up->port.dev, "serial_omap_get_mctrl+%d\n", up->port.line); if (status & UART_MSR_DCD) ret |= TIOCM_CAR; if (status & UART_MSR_RI) ret |= TIOCM_RNG; if (status & UART_MSR_DSR) ret |= TIOCM_DSR; if (status & UART_MSR_CTS) ret |= TIOCM_CTS; return ret; } static void serial_omap_set_mctrl(struct uart_port *port, unsigned int mctrl) { struct uart_omap_port *up = to_uart_omap_port(port); unsigned char mcr = 0, old_mcr; dev_dbg(up->port.dev, "serial_omap_set_mctrl+%d\n", up->port.line); if (mctrl & TIOCM_RTS) mcr |= UART_MCR_RTS; if (mctrl & TIOCM_DTR) mcr |= UART_MCR_DTR; if (mctrl & TIOCM_OUT1) mcr |= UART_MCR_OUT1; if (mctrl & TIOCM_OUT2) mcr |= UART_MCR_OUT2; if (mctrl & TIOCM_LOOP) mcr |= UART_MCR_LOOP; pm_runtime_get_sync(up->dev); old_mcr = serial_in(up, UART_MCR); old_mcr &= ~(UART_MCR_LOOP | UART_MCR_OUT2 | UART_MCR_OUT1 | UART_MCR_DTR | UART_MCR_RTS); up->mcr = old_mcr | mcr; serial_out(up, UART_MCR, up->mcr); pm_runtime_mark_last_busy(up->dev); pm_runtime_put_autosuspend(up->dev); if (gpio_is_valid(up->DTR_gpio) && !!(mctrl & TIOCM_DTR) != up->DTR_active) { up->DTR_active = !up->DTR_active; if (gpio_cansleep(up->DTR_gpio)) schedule_work(&up->qos_work); else gpio_set_value(up->DTR_gpio, up->DTR_active != up->DTR_inverted); } } static void serial_omap_break_ctl(struct uart_port *port, int break_state) { struct uart_omap_port *up = to_uart_omap_port(port); unsigned long flags = 0; dev_dbg(up->port.dev, "serial_omap_break_ctl+%d\n", up->port.line); pm_runtime_get_sync(up->dev); spin_lock_irqsave(&up->port.lock, flags); if (break_state == -1) up->lcr |= UART_LCR_SBC; else up->lcr &= ~UART_LCR_SBC; serial_out(up, UART_LCR, up->lcr); spin_unlock_irqrestore(&up->port.lock, flags); pm_runtime_mark_last_busy(up->dev); pm_runtime_put_autosuspend(up->dev); } static int serial_omap_startup(struct uart_port *port) { struct uart_omap_port *up = to_uart_omap_port(port); unsigned long flags = 0; int retval; /* * Allocate the IRQ */ retval = request_irq(up->port.irq, serial_omap_irq, up->port.irqflags, up->name, up); if (retval) return retval; dev_dbg(up->port.dev, "serial_omap_startup+%d\n", up->port.line); pm_runtime_get_sync(up->dev); /* * Clear the FIFO buffers and disable them. * (they will be reenabled in set_termios()) */ serial_omap_clear_fifos(up); /* For Hardware flow control */ serial_out(up, UART_MCR, UART_MCR_RTS); /* * Clear the interrupt registers. */ (void) serial_in(up, UART_LSR); if (serial_in(up, UART_LSR) & UART_LSR_DR) (void) serial_in(up, UART_RX); (void) serial_in(up, UART_IIR); (void) serial_in(up, UART_MSR); /* * Now, initialize the UART */ serial_out(up, UART_LCR, UART_LCR_WLEN8); spin_lock_irqsave(&up->port.lock, flags); /* * Most PC uarts need OUT2 raised to enable interrupts. */ up->port.mctrl |= TIOCM_OUT2; serial_omap_set_mctrl(&up->port, up->port.mctrl); spin_unlock_irqrestore(&up->port.lock, flags); up->msr_saved_flags = 0; /* * Finally, enable interrupts. Note: Modem status interrupts * are set via set_termios(), which will be occurring imminently * anyway, so we don't enable them here. */ up->ier = UART_IER_RLSI | UART_IER_RDI; serial_out(up, UART_IER, up->ier); /* Enable module level wake up */ serial_out(up, UART_OMAP_WER, OMAP_UART_WER_MOD_WKUP); pm_runtime_mark_last_busy(up->dev); pm_runtime_put_autosuspend(up->dev); up->port_activity = jiffies; return 0; } static void serial_omap_shutdown(struct uart_port *port) { struct uart_omap_port *up = to_uart_omap_port(port); unsigned long flags = 0; dev_dbg(up->port.dev, "serial_omap_shutdown+%d\n", up->port.line); pm_runtime_get_sync(up->dev); /* * Disable interrupts from this port */ up->ier = 0; serial_out(up, UART_IER, 0); spin_lock_irqsave(&up->port.lock, flags); up->port.mctrl &= ~TIOCM_OUT2; serial_omap_set_mctrl(&up->port, up->port.mctrl); spin_unlock_irqrestore(&up->port.lock, flags); /* * Disable break condition and FIFOs */ serial_out(up, UART_LCR, serial_in(up, UART_LCR) & ~UART_LCR_SBC); serial_omap_clear_fifos(up); /* * Read data port to reset things, and then free the irq */ if (serial_in(up, UART_LSR) & UART_LSR_DR) (void) serial_in(up, UART_RX); pm_runtime_mark_last_busy(up->dev); pm_runtime_put_autosuspend(up->dev); free_irq(up->port.irq, up); } static void serial_omap_uart_qos_work(struct work_struct *work) { struct uart_omap_port *up = container_of(work, struct uart_omap_port, qos_work); pm_qos_update_request(&up->pm_qos_request, up->latency); if (gpio_is_valid(up->DTR_gpio)) gpio_set_value_cansleep(up->DTR_gpio, up->DTR_active != up->DTR_inverted); } static void serial_omap_set_termios(struct uart_port *port, struct ktermios *termios, struct ktermios *old) { struct uart_omap_port *up = to_uart_omap_port(port); unsigned char cval = 0; unsigned long flags = 0; unsigned int baud, quot; switch (termios->c_cflag & CSIZE) { case CS5: cval = UART_LCR_WLEN5; break; case CS6: cval = UART_LCR_WLEN6; break; case CS7: cval = UART_LCR_WLEN7; break; default: case CS8: cval = UART_LCR_WLEN8; break; } if (termios->c_cflag & CSTOPB) cval |= UART_LCR_STOP; if (termios->c_cflag & PARENB) cval |= UART_LCR_PARITY; if (!(termios->c_cflag & PARODD)) cval |= UART_LCR_EPAR; if (termios->c_cflag & CMSPAR) cval |= UART_LCR_SPAR; /* * Ask the core to calculate the divisor for us. */ baud = uart_get_baud_rate(port, termios, old, 0, port->uartclk/13); quot = serial_omap_get_divisor(port, baud); /* calculate wakeup latency constraint */ up->calc_latency = (USEC_PER_SEC * up->port.fifosize) / (baud / 8); up->latency = up->calc_latency; schedule_work(&up->qos_work); up->dll = quot & 0xff; up->dlh = quot >> 8; up->mdr1 = UART_OMAP_MDR1_DISABLE; up->fcr = UART_FCR_R_TRIG_01 | UART_FCR_T_TRIG_01 | UART_FCR_ENABLE_FIFO; /* * Ok, we're now changing the port state. Do it with * interrupts disabled. */ pm_runtime_get_sync(up->dev); spin_lock_irqsave(&up->port.lock, flags); /* * Update the per-port timeout. */ uart_update_timeout(port, termios->c_cflag, baud); up->port.read_status_mask = UART_LSR_OE | UART_LSR_THRE | UART_LSR_DR; if (termios->c_iflag & INPCK) up->port.read_status_mask |= UART_LSR_FE | UART_LSR_PE; if (termios->c_iflag & (BRKINT | PARMRK)) up->port.read_status_mask |= UART_LSR_BI; /* * Characters to ignore */ up->port.ignore_status_mask = 0; if (termios->c_iflag & IGNPAR) up->port.ignore_status_mask |= UART_LSR_PE | UART_LSR_FE; if (termios->c_iflag & IGNBRK) { up->port.ignore_status_mask |= UART_LSR_BI; /* * If we're ignoring parity and break indicators, * ignore overruns too (for real raw support). */ if (termios->c_iflag & IGNPAR) up->port.ignore_status_mask |= UART_LSR_OE; } /* * ignore all characters if CREAD is not set */ if ((termios->c_cflag & CREAD) == 0) up->port.ignore_status_mask |= UART_LSR_DR; /* * Modem status interrupts */ up->ier &= ~UART_IER_MSI; if (UART_ENABLE_MS(&up->port, termios->c_cflag)) up->ier |= UART_IER_MSI; serial_out(up, UART_IER, up->ier); serial_out(up, UART_LCR, cval); /* reset DLAB */ up->lcr = cval; up->scr = 0; /* FIFOs and DMA Settings */ /* FCR can be changed only when the * baud clock is not running * DLL_REG and DLH_REG set to 0. */ serial_out(up, UART_LCR, UART_LCR_CONF_MODE_A); serial_out(up, UART_DLL, 0); serial_out(up, UART_DLM, 0); serial_out(up, UART_LCR, 0); serial_out(up, UART_LCR, UART_LCR_CONF_MODE_B); up->efr = serial_in(up, UART_EFR) & ~UART_EFR_ECB; up->efr &= ~UART_EFR_SCD; serial_out(up, UART_EFR, up->efr | UART_EFR_ECB); serial_out(up, UART_LCR, UART_LCR_CONF_MODE_A); up->mcr = serial_in(up, UART_MCR) & ~UART_MCR_TCRTLR; serial_out(up, UART_MCR, up->mcr | UART_MCR_TCRTLR); /* FIFO ENABLE, DMA MODE */ up->scr |= OMAP_UART_SCR_RX_TRIG_GRANU1_MASK; /* * NOTE: Setting OMAP_UART_SCR_RX_TRIG_GRANU1_MASK * sets Enables the granularity of 1 for TRIGGER RX * level. Along with setting RX FIFO trigger level * to 1 (as noted below, 16 characters) and TLR[3:0] * to zero this will result RX FIFO threshold level * to 1 character, instead of 16 as noted in comment * below. */ /* Set receive FIFO threshold to 16 characters and * transmit FIFO threshold to 16 spaces */ up->fcr &= ~OMAP_UART_FCR_RX_FIFO_TRIG_MASK; up->fcr &= ~OMAP_UART_FCR_TX_FIFO_TRIG_MASK; up->fcr |= UART_FCR6_R_TRIGGER_16 | UART_FCR6_T_TRIGGER_24 | UART_FCR_ENABLE_FIFO; serial_out(up, UART_FCR, up->fcr); serial_out(up, UART_LCR, UART_LCR_CONF_MODE_B); serial_out(up, UART_OMAP_SCR, up->scr); /* Reset UART_MCR_TCRTLR: this must be done with the EFR_ECB bit set */ serial_out(up, UART_LCR, UART_LCR_CONF_MODE_A); serial_out(up, UART_MCR, up->mcr); serial_out(up, UART_LCR, UART_LCR_CONF_MODE_B); serial_out(up, UART_EFR, up->efr); serial_out(up, UART_LCR, UART_LCR_CONF_MODE_A); /* Protocol, Baud Rate, and Interrupt Settings */ if (up->errata & UART_ERRATA_i202_MDR1_ACCESS) serial_omap_mdr1_errataset(up, up->mdr1); else serial_out(up, UART_OMAP_MDR1, up->mdr1); serial_out(up, UART_LCR, UART_LCR_CONF_MODE_B); serial_out(up, UART_EFR, up->efr | UART_EFR_ECB); serial_out(up, UART_LCR, 0); serial_out(up, UART_IER, 0); serial_out(up, UART_LCR, UART_LCR_CONF_MODE_B); serial_out(up, UART_DLL, up->dll); /* LS of divisor */ serial_out(up, UART_DLM, up->dlh); /* MS of divisor */ serial_out(up, UART_LCR, 0); serial_out(up, UART_IER, up->ier); serial_out(up, UART_LCR, UART_LCR_CONF_MODE_B); serial_out(up, UART_EFR, up->efr); serial_out(up, UART_LCR, cval); if (!serial_omap_baud_is_mode16(port, baud)) up->mdr1 = UART_OMAP_MDR1_13X_MODE; else up->mdr1 = UART_OMAP_MDR1_16X_MODE; if (up->errata & UART_ERRATA_i202_MDR1_ACCESS) serial_omap_mdr1_errataset(up, up->mdr1); else serial_out(up, UART_OMAP_MDR1, up->mdr1); /* Configure flow control */ serial_out(up, UART_LCR, UART_LCR_CONF_MODE_B); /* XON1/XOFF1 accessible mode B, TCRTLR=0, ECB=0 */ serial_out(up, UART_XON1, termios->c_cc[VSTART]); serial_out(up, UART_XOFF1, termios->c_cc[VSTOP]); /* Enable access to TCR/TLR */ serial_out(up, UART_EFR, up->efr | UART_EFR_ECB); serial_out(up, UART_LCR, UART_LCR_CONF_MODE_A); serial_out(up, UART_MCR, up->mcr | UART_MCR_TCRTLR); serial_out(up, UART_TI752_TCR, OMAP_UART_TCR_TRIG); if (termios->c_cflag & CRTSCTS && up->port.flags & UPF_HARD_FLOW) { /* Enable AUTORTS and AUTOCTS */ up->efr |= UART_EFR_CTS | UART_EFR_RTS; /* Ensure MCR RTS is asserted */ up->mcr |= UART_MCR_RTS; } else { /* Disable AUTORTS and AUTOCTS */ up->efr &= ~(UART_EFR_CTS | UART_EFR_RTS); } if (up->port.flags & UPF_SOFT_FLOW) { /* clear SW control mode bits */ up->efr &= OMAP_UART_SW_CLR; /* * IXON Flag: * Enable XON/XOFF flow control on input. * Receiver compares XON1, XOFF1. */ if (termios->c_iflag & IXON) up->efr |= OMAP_UART_SW_RX; /* * IXOFF Flag: * Enable XON/XOFF flow control on output. * Transmit XON1, XOFF1 */ if (termios->c_iflag & IXOFF) up->efr |= OMAP_UART_SW_TX; /* * IXANY Flag: * Enable any character to restart output. * Operation resumes after receiving any * character after recognition of the XOFF character */ if (termios->c_iflag & IXANY) up->mcr |= UART_MCR_XONANY; else up->mcr &= ~UART_MCR_XONANY; } serial_out(up, UART_MCR, up->mcr); serial_out(up, UART_LCR, UART_LCR_CONF_MODE_B); serial_out(up, UART_EFR, up->efr); serial_out(up, UART_LCR, up->lcr); serial_omap_set_mctrl(&up->port, up->port.mctrl); spin_unlock_irqrestore(&up->port.lock, flags); pm_runtime_mark_last_busy(up->dev); pm_runtime_put_autosuspend(up->dev); dev_dbg(up->port.dev, "serial_omap_set_termios+%d\n", up->port.line); } static int serial_omap_set_wake(struct uart_port *port, unsigned int state) { struct uart_omap_port *up = to_uart_omap_port(port); serial_omap_enable_wakeup(up, state); return 0; } static void serial_omap_pm(struct uart_port *port, unsigned int state, unsigned int oldstate) { struct uart_omap_port *up = to_uart_omap_port(port); unsigned char efr; dev_dbg(up->port.dev, "serial_omap_pm+%d\n", up->port.line); pm_runtime_get_sync(up->dev); serial_out(up, UART_LCR, UART_LCR_CONF_MODE_B); efr = serial_in(up, UART_EFR); serial_out(up, UART_EFR, efr | UART_EFR_ECB); serial_out(up, UART_LCR, 0); serial_out(up, UART_IER, (state != 0) ? UART_IERX_SLEEP : 0); serial_out(up, UART_LCR, UART_LCR_CONF_MODE_B); serial_out(up, UART_EFR, efr); serial_out(up, UART_LCR, 0); if (!device_may_wakeup(up->dev)) { if (!state) pm_runtime_forbid(up->dev); else pm_runtime_allow(up->dev); } pm_runtime_mark_last_busy(up->dev); pm_runtime_put_autosuspend(up->dev); } static void serial_omap_release_port(struct uart_port *port) { dev_dbg(port->dev, "serial_omap_release_port+\n"); } static int serial_omap_request_port(struct uart_port *port) { dev_dbg(port->dev, "serial_omap_request_port+\n"); return 0; } static void serial_omap_config_port(struct uart_port *port, int flags) { struct uart_omap_port *up = to_uart_omap_port(port); dev_dbg(up->port.dev, "serial_omap_config_port+%d\n", up->port.line); up->port.type = PORT_OMAP; up->port.flags |= UPF_SOFT_FLOW | UPF_HARD_FLOW; } static int serial_omap_verify_port(struct uart_port *port, struct serial_struct *ser) { /* we don't want the core code to modify any port params */ dev_dbg(port->dev, "serial_omap_verify_port+\n"); return -EINVAL; } static const char * serial_omap_type(struct uart_port *port) { struct uart_omap_port *up = to_uart_omap_port(port); dev_dbg(up->port.dev, "serial_omap_type+%d\n", up->port.line); return up->name; } #define BOTH_EMPTY (UART_LSR_TEMT | UART_LSR_THRE) static inline void wait_for_xmitr(struct uart_omap_port *up) { unsigned int status, tmout = 10000; /* Wait up to 10ms for the character(s) to be sent. */ do { status = serial_in(up, UART_LSR); if (status & UART_LSR_BI) up->lsr_break_flag = UART_LSR_BI; if (--tmout == 0) break; udelay(1); } while ((status & BOTH_EMPTY) != BOTH_EMPTY); /* Wait up to 1s for flow control if necessary */ if (up->port.flags & UPF_CONS_FLOW) { tmout = 1000000; for (tmout = 1000000; tmout; tmout--) { unsigned int msr = serial_in(up, UART_MSR); up->msr_saved_flags |= msr & MSR_SAVE_FLAGS; if (msr & UART_MSR_CTS) break; udelay(1); } } } #ifdef CONFIG_CONSOLE_POLL static void serial_omap_poll_put_char(struct uart_port *port, unsigned char ch) { struct uart_omap_port *up = to_uart_omap_port(port); pm_runtime_get_sync(up->dev); wait_for_xmitr(up); serial_out(up, UART_TX, ch); pm_runtime_mark_last_busy(up->dev); pm_runtime_put_autosuspend(up->dev); } static int serial_omap_poll_get_char(struct uart_port *port) { struct uart_omap_port *up = to_uart_omap_port(port); unsigned int status; pm_runtime_get_sync(up->dev); status = serial_in(up, UART_LSR); if (!(status & UART_LSR_DR)) { status = NO_POLL_CHAR; goto out; } status = serial_in(up, UART_RX); out: pm_runtime_mark_last_busy(up->dev); pm_runtime_put_autosuspend(up->dev); return status; } #endif /* CONFIG_CONSOLE_POLL */ #ifdef CONFIG_SERIAL_OMAP_CONSOLE static struct uart_omap_port *serial_omap_console_ports[OMAP_MAX_HSUART_PORTS]; static struct uart_driver serial_omap_reg; static void serial_omap_console_putchar(struct uart_port *port, int ch) { struct uart_omap_port *up = to_uart_omap_port(port); wait_for_xmitr(up); serial_out(up, UART_TX, ch); } static void serial_omap_console_write(struct console *co, const char *s, unsigned int count) { struct uart_omap_port *up = serial_omap_console_ports[co->index]; unsigned long flags; unsigned int ier; int locked = 1; pm_runtime_get_sync(up->dev); local_irq_save(flags); if (up->port.sysrq) locked = 0; else if (oops_in_progress) locked = spin_trylock(&up->port.lock); else spin_lock(&up->port.lock); /* * First save the IER then disable the interrupts */ ier = serial_in(up, UART_IER); serial_out(up, UART_IER, 0); uart_console_write(&up->port, s, count, serial_omap_console_putchar); /* * Finally, wait for transmitter to become empty * and restore the IER */ wait_for_xmitr(up); serial_out(up, UART_IER, ier); /* * The receive handling will happen properly because the * receive ready bit will still be set; it is not cleared * on read. However, modem control will not, we must * call it if we have saved something in the saved flags * while processing with interrupts off. */ if (up->msr_saved_flags) check_modem_status(up); pm_runtime_mark_last_busy(up->dev); pm_runtime_put_autosuspend(up->dev); if (locked) spin_unlock(&up->port.lock); local_irq_restore(flags); } static int __init serial_omap_console_setup(struct console *co, char *options) { struct uart_omap_port *up; int baud = 115200; int bits = 8; int parity = 'n'; int flow = 'n'; if (serial_omap_console_ports[co->index] == NULL) return -ENODEV; up = serial_omap_console_ports[co->index]; if (options) uart_parse_options(options, &baud, &parity, &bits, &flow); return uart_set_options(&up->port, co, baud, parity, bits, flow); } static struct console serial_omap_console = { .name = OMAP_SERIAL_NAME, .write = serial_omap_console_write, .device = uart_console_device, .setup = serial_omap_console_setup, .flags = CON_PRINTBUFFER, .index = -1, .data = &serial_omap_reg, }; static void serial_omap_add_console_port(struct uart_omap_port *up) { serial_omap_console_ports[up->port.line] = up; } #define OMAP_CONSOLE (&serial_omap_console) #else #define OMAP_CONSOLE NULL static inline void serial_omap_add_console_port(struct uart_omap_port *up) {} #endif static struct uart_ops serial_omap_pops = { .tx_empty = serial_omap_tx_empty, .set_mctrl = serial_omap_set_mctrl, .get_mctrl = serial_omap_get_mctrl, .stop_tx = serial_omap_stop_tx, .start_tx = serial_omap_start_tx, .throttle = serial_omap_throttle, .unthrottle = serial_omap_unthrottle, .stop_rx = serial_omap_stop_rx, .enable_ms = serial_omap_enable_ms, .break_ctl = serial_omap_break_ctl, .startup = serial_omap_startup, .shutdown = serial_omap_shutdown, .set_termios = serial_omap_set_termios, .pm = serial_omap_pm, .set_wake = serial_omap_set_wake, .type = serial_omap_type, .release_port = serial_omap_release_port, .request_port = serial_omap_request_port, .config_port = serial_omap_config_port, .verify_port = serial_omap_verify_port, #ifdef CONFIG_CONSOLE_POLL .poll_put_char = serial_omap_poll_put_char, .poll_get_char = serial_omap_poll_get_char, #endif }; static struct uart_driver serial_omap_reg = { .owner = THIS_MODULE, .driver_name = "OMAP-SERIAL", .dev_name = OMAP_SERIAL_NAME, .nr = OMAP_MAX_HSUART_PORTS, .cons = OMAP_CONSOLE, }; #ifdef CONFIG_PM_SLEEP static int serial_omap_suspend(struct device *dev) { struct uart_omap_port *up = dev_get_drvdata(dev); uart_suspend_port(&serial_omap_reg, &up->port); flush_work(&up->qos_work); return 0; } static int serial_omap_resume(struct device *dev) { struct uart_omap_port *up = dev_get_drvdata(dev); uart_resume_port(&serial_omap_reg, &up->port); return 0; } #endif static void omap_serial_fill_features_erratas(struct uart_omap_port *up) { u32 mvr, scheme; u16 revision, major, minor; mvr = serial_in(up, UART_OMAP_MVER); /* Check revision register scheme */ scheme = mvr >> OMAP_UART_MVR_SCHEME_SHIFT; switch (scheme) { case 0: /* Legacy Scheme: OMAP2/3 */ /* MINOR_REV[0:4], MAJOR_REV[4:7] */ major = (mvr & OMAP_UART_LEGACY_MVR_MAJ_MASK) >> OMAP_UART_LEGACY_MVR_MAJ_SHIFT; minor = (mvr & OMAP_UART_LEGACY_MVR_MIN_MASK); break; case 1: /* New Scheme: OMAP4+ */ /* MINOR_REV[0:5], MAJOR_REV[8:10] */ major = (mvr & OMAP_UART_MVR_MAJ_MASK) >> OMAP_UART_MVR_MAJ_SHIFT; minor = (mvr & OMAP_UART_MVR_MIN_MASK); break; default: dev_warn(up->dev, "Unknown %s revision, defaulting to highest\n", up->name); /* highest possible revision */ major = 0xff; minor = 0xff; } /* normalize revision for the driver */ revision = UART_BUILD_REVISION(major, minor); switch (revision) { case OMAP_UART_REV_46: up->errata |= (UART_ERRATA_i202_MDR1_ACCESS | UART_ERRATA_i291_DMA_FORCEIDLE); break; case OMAP_UART_REV_52: up->errata |= (UART_ERRATA_i202_MDR1_ACCESS | UART_ERRATA_i291_DMA_FORCEIDLE); break; case OMAP_UART_REV_63: up->errata |= UART_ERRATA_i202_MDR1_ACCESS; break; default: break; } } static struct omap_uart_port_info *of_get_uart_port_info(struct device *dev) { struct omap_uart_port_info *omap_up_info; omap_up_info = devm_kzalloc(dev, sizeof(*omap_up_info), GFP_KERNEL); if (!omap_up_info) return NULL; /* out of memory */ of_property_read_u32(dev->of_node, "clock-frequency", &omap_up_info->uartclk); return omap_up_info; } static int serial_omap_probe(struct platform_device *pdev) { struct uart_omap_port *up; struct resource *mem, *irq; struct omap_uart_port_info *omap_up_info = pdev->dev.platform_data; int ret; if (pdev->dev.of_node) omap_up_info = of_get_uart_port_info(&pdev->dev); mem = platform_get_resource(pdev, IORESOURCE_MEM, 0); if (!mem) { dev_err(&pdev->dev, "no mem resource?\n"); return -ENODEV; } irq = platform_get_resource(pdev, IORESOURCE_IRQ, 0); if (!irq) { dev_err(&pdev->dev, "no irq resource?\n"); return -ENODEV; } if (!devm_request_mem_region(&pdev->dev, mem->start, resource_size(mem), pdev->dev.driver->name)) { dev_err(&pdev->dev, "memory region already claimed\n"); return -EBUSY; } if (gpio_is_valid(omap_up_info->DTR_gpio) && omap_up_info->DTR_present) { ret = gpio_request(omap_up_info->DTR_gpio, "omap-serial"); if (ret < 0) return ret; ret = gpio_direction_output(omap_up_info->DTR_gpio, omap_up_info->DTR_inverted); if (ret < 0) return ret; } up = devm_kzalloc(&pdev->dev, sizeof(*up), GFP_KERNEL); if (!up) return -ENOMEM; if (gpio_is_valid(omap_up_info->DTR_gpio) && omap_up_info->DTR_present) { up->DTR_gpio = omap_up_info->DTR_gpio; up->DTR_inverted = omap_up_info->DTR_inverted; } else up->DTR_gpio = -EINVAL; up->DTR_active = 0; up->dev = &pdev->dev; up->port.dev = &pdev->dev; up->port.type = PORT_OMAP; up->port.iotype = UPIO_MEM; up->port.irq = irq->start; up->port.regshift = 2; up->port.fifosize = 64; up->port.ops = &serial_omap_pops; if (pdev->dev.of_node) up->port.line = of_alias_get_id(pdev->dev.of_node, "serial"); else up->port.line = pdev->id; if (up->port.line < 0) { dev_err(&pdev->dev, "failed to get alias/pdev id, errno %d\n", up->port.line); ret = -ENODEV; goto err_port_line; } up->pins = devm_pinctrl_get_select_default(&pdev->dev); if (IS_ERR(up->pins)) { dev_warn(&pdev->dev, "did not get pins for uart%i error: %li\n", up->port.line, PTR_ERR(up->pins)); up->pins = NULL; } sprintf(up->name, "OMAP UART%d", up->port.line); up->port.mapbase = mem->start; up->port.membase = devm_ioremap(&pdev->dev, mem->start, resource_size(mem)); if (!up->port.membase) { dev_err(&pdev->dev, "can't ioremap UART\n"); ret = -ENOMEM; goto err_ioremap; } up->port.flags = omap_up_info->flags; up->port.uartclk = omap_up_info->uartclk; if (!up->port.uartclk) { up->port.uartclk = DEFAULT_CLK_SPEED; dev_warn(&pdev->dev, "No clock speed specified: using default:" "%d\n", DEFAULT_CLK_SPEED); } up->latency = PM_QOS_CPU_DMA_LAT_DEFAULT_VALUE; up->calc_latency = PM_QOS_CPU_DMA_LAT_DEFAULT_VALUE; pm_qos_add_request(&up->pm_qos_request, PM_QOS_CPU_DMA_LATENCY, up->latency); serial_omap_uart_wq = create_singlethread_workqueue(up->name); INIT_WORK(&up->qos_work, serial_omap_uart_qos_work); platform_set_drvdata(pdev, up); pm_runtime_enable(&pdev->dev); pm_runtime_use_autosuspend(&pdev->dev); pm_runtime_set_autosuspend_delay(&pdev->dev, omap_up_info->autosuspend_timeout); pm_runtime_irq_safe(&pdev->dev); pm_runtime_get_sync(&pdev->dev); omap_serial_fill_features_erratas(up); ui[up->port.line] = up; serial_omap_add_console_port(up); ret = uart_add_one_port(&serial_omap_reg, &up->port); if (ret != 0) goto err_add_port; pm_runtime_mark_last_busy(up->dev); pm_runtime_put_autosuspend(up->dev); return 0; err_add_port: pm_runtime_put(&pdev->dev); pm_runtime_disable(&pdev->dev); err_ioremap: err_port_line: dev_err(&pdev->dev, "[UART%d]: failure [%s]: %d\n", pdev->id, __func__, ret); return ret; } static int serial_omap_remove(struct platform_device *dev) { struct uart_omap_port *up = platform_get_drvdata(dev); pm_runtime_put_sync(up->dev); pm_runtime_disable(up->dev); uart_remove_one_port(&serial_omap_reg, &up->port); pm_qos_remove_request(&up->pm_qos_request); return 0; } /* * Work Around for Errata i202 (2430, 3430, 3630, 4430 and 4460) * The access to uart register after MDR1 Access * causes UART to corrupt data. * * Need a delay = * 5 L4 clock cycles + 5 UART functional clock cycle (@48MHz = ~0.2uS) * give 10 times as much */ static void serial_omap_mdr1_errataset(struct uart_omap_port *up, u8 mdr1) { u8 timeout = 255; serial_out(up, UART_OMAP_MDR1, mdr1); udelay(2); serial_out(up, UART_FCR, up->fcr | UART_FCR_CLEAR_XMIT | UART_FCR_CLEAR_RCVR); /* * Wait for FIFO to empty: when empty, RX_FIFO_E bit is 0 and * TX_FIFO_E bit is 1. */ while (UART_LSR_THRE != (serial_in(up, UART_LSR) & (UART_LSR_THRE | UART_LSR_DR))) { timeout--; if (!timeout) { /* Should *never* happen. we warn and carry on */ dev_crit(up->dev, "Errata i202: timedout %x\n", serial_in(up, UART_LSR)); break; } udelay(1); } } #ifdef CONFIG_PM_RUNTIME static void serial_omap_restore_context(struct uart_omap_port *up) { if (up->errata & UART_ERRATA_i202_MDR1_ACCESS) serial_omap_mdr1_errataset(up, UART_OMAP_MDR1_DISABLE); else serial_out(up, UART_OMAP_MDR1, UART_OMAP_MDR1_DISABLE); serial_out(up, UART_LCR, UART_LCR_CONF_MODE_B); /* Config B mode */ serial_out(up, UART_EFR, UART_EFR_ECB); serial_out(up, UART_LCR, 0x0); /* Operational mode */ serial_out(up, UART_IER, 0x0); serial_out(up, UART_LCR, UART_LCR_CONF_MODE_B); /* Config B mode */ serial_out(up, UART_DLL, up->dll); serial_out(up, UART_DLM, up->dlh); serial_out(up, UART_LCR, 0x0); /* Operational mode */ serial_out(up, UART_IER, up->ier); serial_out(up, UART_FCR, up->fcr); serial_out(up, UART_LCR, UART_LCR_CONF_MODE_A); serial_out(up, UART_MCR, up->mcr); serial_out(up, UART_LCR, UART_LCR_CONF_MODE_B); /* Config B mode */ serial_out(up, UART_OMAP_SCR, up->scr); serial_out(up, UART_EFR, up->efr); serial_out(up, UART_LCR, up->lcr); if (up->errata & UART_ERRATA_i202_MDR1_ACCESS) serial_omap_mdr1_errataset(up, up->mdr1); else serial_out(up, UART_OMAP_MDR1, up->mdr1); } static int serial_omap_runtime_suspend(struct device *dev) { struct uart_omap_port *up = dev_get_drvdata(dev); struct omap_uart_port_info *pdata = dev->platform_data; if (!up) return -EINVAL; if (!pdata) return 0; up->context_loss_cnt = serial_omap_get_context_loss_count(up); if (device_may_wakeup(dev)) { if (!up->wakeups_enabled) { serial_omap_enable_wakeup(up, true); up->wakeups_enabled = true; } } else { if (up->wakeups_enabled) { serial_omap_enable_wakeup(up, false); up->wakeups_enabled = false; } } up->latency = PM_QOS_CPU_DMA_LAT_DEFAULT_VALUE; schedule_work(&up->qos_work); return 0; } static int serial_omap_runtime_resume(struct device *dev) { struct uart_omap_port *up = dev_get_drvdata(dev); int loss_cnt = serial_omap_get_context_loss_count(up); if (loss_cnt < 0) { dev_err(dev, "serial_omap_get_context_loss_count failed : %d\n", loss_cnt); serial_omap_restore_context(up); } else if (up->context_loss_cnt != loss_cnt) { serial_omap_restore_context(up); } up->latency = up->calc_latency; schedule_work(&up->qos_work); return 0; } #endif static const struct dev_pm_ops serial_omap_dev_pm_ops = { SET_SYSTEM_SLEEP_PM_OPS(serial_omap_suspend, serial_omap_resume) SET_RUNTIME_PM_OPS(serial_omap_runtime_suspend, serial_omap_runtime_resume, NULL) }; #if defined(CONFIG_OF) static const struct of_device_id omap_serial_of_match[] = { { .compatible = "ti,omap2-uart" }, { .compatible = "ti,omap3-uart" }, { .compatible = "ti,omap4-uart" }, {}, }; MODULE_DEVICE_TABLE(of, omap_serial_of_match); #endif static struct platform_driver serial_omap_driver = { .probe = serial_omap_probe, .remove = serial_omap_remove, .driver = { .name = DRIVER_NAME, .pm = &serial_omap_dev_pm_ops, .of_match_table = of_match_ptr(omap_serial_of_match), }, }; static int __init serial_omap_init(void) { int ret; ret = uart_register_driver(&serial_omap_reg); if (ret != 0) return ret; ret = platform_driver_register(&serial_omap_driver); if (ret != 0) uart_unregister_driver(&serial_omap_reg); return ret; } static void __exit serial_omap_exit(void) { platform_driver_unregister(&serial_omap_driver); uart_unregister_driver(&serial_omap_reg); } module_init(serial_omap_init); module_exit(serial_omap_exit); MODULE_DESCRIPTION("OMAP High Speed UART driver"); MODULE_LICENSE("GPL"); MODULE_AUTHOR("Texas Instruments Inc");
7f8ac962053411d64e43de88499f84402af7aae4
ffdc77394c5b5532b243cf3c33bd584cbdc65cb7
/mindspore/ccsrc/plugin/device/cpu/kernel/nnacl/kernel/tile.c
aac6cfc51e31d0e0e9da7e25deefef8d15c784c7
[ "Apache-2.0", "LicenseRef-scancode-proprietary-license", "MPL-1.0", "OpenSSL", "LGPL-3.0-only", "LicenseRef-scancode-warranty-disclaimer", "BSD-3-Clause-Open-MPI", "MIT", "MPL-2.0-no-copyleft-exception", "NTP", "BSD-3-Clause", "GPL-1.0-or-later", "0BSD", "MPL-2.0", "LicenseRef-scancode-free-unknown", "AGPL-3.0-only", "Libpng", "MPL-1.1", "IJG", "GPL-2.0-only", "BSL-1.0", "Zlib", "LicenseRef-scancode-public-domain", "LicenseRef-scancode-python-cwi", "BSD-2-Clause", "LicenseRef-scancode-gary-s-brown", "LGPL-2.1-only", "LicenseRef-scancode-other-permissive", "Python-2.0", "LicenseRef-scancode-mit-nagy", "LicenseRef-scancode-other-copyleft", "LicenseRef-scancode-unknown-license-reference", "Unlicense" ]
permissive
mindspore-ai/mindspore
ca7d5bb51a3451c2705ff2e583a740589d80393b
54acb15d435533c815ee1bd9f6dc0b56b4d4cf83
refs/heads/master
2023-07-29T09:17:11.051569
2023-07-17T13:14:15
2023-07-17T13:14:15
239,714,835
4,178
768
Apache-2.0
2023-07-26T22:31:11
2020-02-11T08:43:48
C++
UTF-8
C
false
false
6,681
c
tile.c
/** * Copyright 2023 Huawei Technologies Co., Ltd * * 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. */ #include "nnacl/kernel/tile.h" #include "nnacl/tile_parameter.h" #include "nnacl/tensor_c_utils.h" #include "nnacl/nnacl_common.h" #include "nnacl/op_base.h" #include "nnacl/base/tile_base.h" #include "nnacl/kernel/default_kernel_base.h" #define kDoubleInputsSize 2 int TileDoubleInputScenes(TileStruct *tile) { TensorC *t = tile->base_.in_[SECOND_INPUT]; if (t->data_ == NULL) { tile->resize_done_ = false; return NNACL_OK; } NNACL_CHECK_FALSE(GetElementNum(t) > (int)tile->base_.in_[FIRST_INPUT]->shape_size_, NNACL_TILE_SECOND_INPUT_NUM_INVALID); NNACL_CHECK_FALSE(t->data_type_ != kNumberTypeInt && t->data_type_ != kNumberTypeInt32, NNACL_TILE_SECOND_INPUT_DATA_TYPE_INVALID); int *input1_addr = (int *)(t->data_); for (int i = 0; i < GetElementNum(t); ++i) { NNACL_CHECK_FALSE(input1_addr[i] <= 0, NNACL_TILE_SECOND_INPUT_VALUE_INVALID); tile->dims_[i] = i; tile->multiples_[i] = input1_addr[i]; } return NNACL_OK; } int SimpleTileImpl(TileStruct *tile, int task_id) { NNACL_CHECK_ZERO_RETURN_ERR(tile->base_.thread_nr_); size_t unit = UP_DIV(tile->fast_outer_size_, (size_t)tile->base_.thread_nr_); if (unit == 0 && task_id > 0) { return NNACL_OK; } NNACL_CHECK_FALSE(INT_MUL_OVERFLOW(unit, (size_t)task_id), NNACL_ERR); size_t begin = unit * (size_t)(task_id); size_t end = MSMIN(begin + unit, tile->fast_outer_size_); TileSimple(tile->input_addr_, tile->output_addr_, begin, end, tile); return NNACL_OK; } int SimpleTile(void *cdata, int task_id, float l, float r) { TileStruct *tile = (TileStruct *)cdata; NNACL_CHECK_NULL_RETURN_ERR(tile); return SimpleTileImpl(tile, task_id); } int TileFillOneDimTileParam(TileStruct *tile) { // check if tile exact one dim int large_one_multiple_count = 0; int multiple = 0; int mul_index = 0; for (int i = 0; i < tile->in_dim_; ++i) { if (tile->multiples_[i] > 1) { large_one_multiple_count++; multiple = tile->multiples_[i]; mul_index = i; } } tile->one_dim_tile_ = large_one_multiple_count == 1; if (tile->one_dim_tile_) { tile->fast_multiple_ = (size_t)multiple; NNACL_CHECK_FALSE(INT_MUL_OVERFLOW(tile->in_shape_[mul_index], tile->in_strides_[mul_index]), NNACL_ERR); tile->fast_stride_ = (size_t)(tile->in_shape_[mul_index] * tile->in_strides_[mul_index]); NNACL_CHECK_FALSE(tile->fast_stride_ < 1, NNACL_TILE_INPUT_SHAPE_INVALID); tile->fast_outer_size_ = (size_t)GetElementNum(tile->base_.in_[FIRST_INPUT]) / tile->fast_stride_; } tile->resize_done_ = true; return NNACL_OK; } int TileResize(struct KernelBase *self) { TileStruct *tile = (TileStruct *)self; NNACL_CHECK_NULL_RETURN_ERR(tile); TileParameter *param = (TileParameter *)(self->param_); NNACL_CHECK_NULL_RETURN_ERR(tile); tile->dims_size_ = param->dims_size_; for (int i = 0; i < MAX_SHAPE_SIZE; i++) { tile->dims_[i] = param->dims_[i]; tile->multiples_[i] = param->multiples_[i]; } if (self->in_size_ == kDoubleInputsSize) { int ret = TileDoubleInputScenes(tile); NNACL_CHECK_FALSE(ret != NNACL_OK, ret); } TensorC *input = self->in_[0]; TensorC *output = self->out_[0]; NNACL_CHECK_NULL_RETURN_ERR(input); NNACL_CHECK_NULL_RETURN_ERR(output); tile->in_dim_ = (int)input->shape_size_; NNACL_CHECK_TRUE_RET(tile->in_dim_ > 0 && tile->in_dim_ <= MAX_SHAPE_SIZE, NNACL_TILE_INPUT_SHAPE_INVALID); NNACL_CHECK_FALSE((int)output->shape_size_ < tile->in_dim_, NNACL_TILE_INPUT_SHAPE_INVALID); for (int i = 0; i < tile->in_dim_; ++i) { tile->in_shape_[i] = input->shape_[i]; tile->out_shape_[i] = output->shape_[i]; } ComputeStrides(tile->in_shape_, tile->in_strides_, tile->in_dim_); ComputeStrides(tile->out_shape_, tile->out_strides_, tile->in_dim_); for (size_t i = 0; i < tile->dims_size_; i++) { NNACL_CHECK_FALSE(INT_MUL_OVERFLOW(tile->multiples_[i], tile->in_shape_[i]), NNACL_ERRCODE_MUL_OVERFLOW); int ele_num = tile->multiples_[i] * tile->in_shape_[i] - 1; NNACL_CHECK_FALSE(INT_MUL_OVERFLOW(tile->out_strides_[i], ele_num), NNACL_ERRCODE_MUL_OVERFLOW); } int ret = TileFillOneDimTileParam(tile); NNACL_CHECK_FALSE(ret != NNACL_OK, ret); if (tile->one_dim_tile_) { self->thread_nr_ = self->UpdateThread(TC_TYPE(PrimType_TileFusion, 0), 0, 0, tile->fast_outer_size_, self->thread_nr_); } return NNACL_OK; } int TileCompute(struct KernelBase *self) { TileStruct *tile = (TileStruct *)self; NNACL_CHECK_NULL_RETURN_ERR(tile); tile->input_addr_ = (uint8_t *)(self->in_[FIRST_INPUT]->data_); NNACL_CHECK_NULL_RETURN_ERR(tile->input_addr_); tile->output_addr_ = (uint8_t *)(self->out_[OUTPUT_INDEX]->data_); NNACL_CHECK_NULL_RETURN_ERR(tile->output_addr_); if (!tile->resize_done_) { int ret = TileResize(self); NNACL_CHECK_FALSE(ret != NNACL_OK, ret); NNACL_CHECK_FALSE(tile->resize_done_ == false, NNACL_TILE_RESIZE_IN_RUNTIME_FAILED); } tile->data_size_ = DataTypeCSize(self->in_[FIRST_INPUT]->data_type_); NNACL_CHECK_TRUE_RET(tile->data_size_ > 0, NNACL_UNSUPPORTED_DATA_TYPE); if (tile->one_dim_tile_) { return self->env_->ParallelLaunch(self->env_->thread_pool_, SimpleTile, self, self->thread_nr_); } Tile(tile->input_addr_, tile->output_addr_, tile); return NNACL_OK; } KernelBase *CreateTile(OpParameter *param, int data_type) { TileStruct *tile = (TileStruct *)malloc(sizeof(TileStruct)); NNACL_CHECK_NULL_RETURN_NULL(tile); tile->resize_done_ = false; tile->base_.Release = DefaultRelease; tile->base_.Prepare = DefaultPrepare1In1Out; tile->base_.Resize = TileResize; tile->base_.Compute = TileCompute; return (KernelBase *)tile; } REG_KERNEL_CREATOR(PrimType_TileFusion, kNumberTypeInt32, CreateTile) REG_KERNEL_CREATOR(PrimType_TileFusion, kNumberTypeFloat32, CreateTile) REG_KERNEL_CREATOR(PrimType_TileFusion, kNumberTypeFloat16, CreateTile) REG_KERNEL_CREATOR(PrimType_TileFusion, kNumberTypeBool, CreateTile) REG_KERNEL_CREATOR(PrimType_TileFusion, kNumberTypeUInt8, CreateTile)
86d12a46059aba616759e9f2307c16c9cc93ba83
99bdb3251fecee538e0630f15f6574054dfc1468
/bsp/wch/risc-v/Libraries/CH32V10x_StdPeriph_Driver/StdPeriph_Driver/src/ch32v10x_usb_host.c
1205f2fd16c6b9b0b52ce58307d15aaf04a10269
[ "Apache-2.0", "Zlib", "LicenseRef-scancode-proprietary-license", "MIT", "BSD-3-Clause", "X11", "BSD-4-Clause-UC", "LicenseRef-scancode-unknown-license-reference" ]
permissive
RT-Thread/rt-thread
03a7c52c2aeb1b06a544143b0e803d72f47d1ece
3602f891211904a27dcbd51e5ba72fefce7326b2
refs/heads/master
2023-09-01T04:10:20.295801
2023-08-31T16:20:55
2023-08-31T16:20:55
7,408,108
9,599
5,805
Apache-2.0
2023-09-14T13:37:26
2013-01-02T14:49:21
C
GB18030
C
false
false
21,613
c
ch32v10x_usb_host.c
/********************************** (C) COPYRIGHT ******************************* * File Name : ch32v10x_usb_host.c * Author : WCH * Version : V1.0.0 * Date : 2020/04/30 * Description : This file provides all the USB firmware functions. * Copyright (c) 2021 Nanjing Qinheng Microelectronics Co., Ltd. * SPDX-License-Identifier: Apache-2.0 *******************************************************************************/ #include "ch32v10x_usb_host.h" #include "debug.h" /******************************** HOST DEVICE **********************************/ UINT8 UsbDevEndp0Size; UINT8 FoundNewDev; _RootHubDev ThisUsbDev; PUINT8 pHOST_RX_RAM_Addr; PUINT8 pHOST_TX_RAM_Addr; extern UINT8 Com_Buffer[128]; __attribute__((aligned(4))) const UINT8 SetupGetDevDescr[] = {USB_REQ_TYP_IN, USB_GET_DESCRIPTOR, 0x00, USB_DESCR_TYP_DEVICE, 0x00, 0x00, sizeof(USB_DEV_DESCR), 0x00}; __attribute__((aligned(4))) const UINT8 SetupGetCfgDescr[] = {USB_REQ_TYP_IN, USB_GET_DESCRIPTOR, 0x00, USB_DESCR_TYP_CONFIG, 0x00, 0x00, 0x04, 0x00}; __attribute__((aligned(4))) const UINT8 SetupSetUsbAddr[] = {USB_REQ_TYP_OUT, USB_SET_ADDRESS, USB_DEVICE_ADDR, 0x00, 0x00, 0x00, 0x00, 0x00}; __attribute__((aligned(4))) const UINT8 SetupSetUsbConfig[] = {USB_REQ_TYP_OUT, USB_SET_CONFIGURATION, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00}; __attribute__((aligned(4))) const UINT8 SetupSetUsbInterface[] = {USB_REQ_RECIP_INTERF, USB_SET_INTERFACE, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00}; __attribute__((aligned(4))) const UINT8 SetupClrEndpStall[] = {USB_REQ_TYP_OUT | USB_REQ_RECIP_ENDP, USB_CLEAR_FEATURE, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00}; /********************************************************************* * @fn DisableRootHubPort( ) * * @brief Disable root hub * * @return none */ void DisableRootHubPort(void) { #ifdef FOR_ROOT_UDISK_ONLY CH103DiskStatus = DISK_DISCONNECT; #endif #ifndef DISK_BASE_BUF_LEN ThisUsbDev.DeviceStatus = ROOT_DEV_DISCONNECT; ThisUsbDev.DeviceAddress = 0x00; #endif } /********************************************************************* * @fn AnalyzeRootHub * * @brief Analyze root hub state. * * @return Error */ UINT8 AnalyzeRootHub(void) { UINT8 s; s = ERR_SUCCESS; if(R8_USB_MIS_ST & RB_UMS_DEV_ATTACH) { #ifdef DISK_BASE_BUF_LEN if(CH103DiskStatus == DISK_DISCONNECT #else if(ThisUsbDev.DeviceStatus == ROOT_DEV_DISCONNECT #endif || (R8_UHOST_CTRL & RB_UH_PORT_EN) == 0x00) { DisableRootHubPort(); #ifdef DISK_BASE_BUF_LEN CH103DiskStatus = DISK_CONNECT; #else ThisUsbDev.DeviceSpeed = R8_USB_MIS_ST & RB_UMS_DM_LEVEL ? 0 : 1; ThisUsbDev.DeviceStatus = ROOT_DEV_CONNECTED; #endif s = ERR_USB_CONNECT; } } #ifdef DISK_BASE_BUF_LEN else if(CH103DiskStatus >= DISK_CONNECT) { #else else if(ThisUsbDev.DeviceStatus >= ROOT_DEV_CONNECTED) { #endif DisableRootHubPort(); if(s == ERR_SUCCESS) s = ERR_USB_DISCON; } return (s); } /********************************************************************* * @fn SetHostUsbAddr * * @brief Set USB host address * * @param addr - host address * * @return none */ void SetHostUsbAddr(UINT8 addr) { R8_USB_DEV_AD = (R8_USB_DEV_AD & RB_UDA_GP_BIT) | (addr & MASK_USB_ADDR); } #ifndef FOR_ROOT_UDISK_ONLY /********************************************************************* * @fn SetUsbSpeed * * @brief Set USB speed. * * @param FullSpeed - USB speed. * * @return none */ void SetUsbSpeed(UINT8 FullSpeed) { if(FullSpeed) { R8_USB_CTRL &= ~RB_UC_LOW_SPEED; R8_UH_SETUP &= ~RB_UH_PRE_PID_EN; } else { R8_USB_CTRL |= RB_UC_LOW_SPEED; } } #endif /********************************************************************* * @fn ResetRootHubPort( ) * * @brief Reset root hub * * @return none */ void ResetRootHubPort(void) { UsbDevEndp0Size = DEFAULT_ENDP0_SIZE; SetHostUsbAddr(0x00); R8_UHOST_CTRL &= ~RB_UH_PORT_EN; SetUsbSpeed(1); R8_UHOST_CTRL = (R8_UHOST_CTRL & ~RB_UH_LOW_SPEED) | RB_UH_BUS_RESET; Delay_Ms(15); R8_UHOST_CTRL = R8_UHOST_CTRL & ~RB_UH_BUS_RESET; Delay_Us(250); R8_USB_INT_FG = RB_UIF_DETECT; } /********************************************************************* * @fn EnableRootHubPort( ) * * @brief Enable root hub. * * @return ERROR */ UINT8 EnableRootHubPort(void) { #ifdef DISK_BASE_BUF_LEN if(CH103DiskStatus < DISK_CONNECT) CH103DiskStatus = DISK_CONNECT; #else if(ThisUsbDev.DeviceStatus < ROOT_DEV_CONNECTED) ThisUsbDev.DeviceStatus = ROOT_DEV_CONNECTED; #endif if(R8_USB_MIS_ST & RB_UMS_DEV_ATTACH) { #ifndef DISK_BASE_BUF_LEN if((R8_UHOST_CTRL & RB_UH_PORT_EN) == 0x00) { ThisUsbDev.DeviceSpeed = (R8_USB_MIS_ST & RB_UMS_DM_LEVEL) ? 0 : 1; if(ThisUsbDev.DeviceSpeed == 0) R8_UHOST_CTRL |= RB_UH_LOW_SPEED; } #endif R8_UHOST_CTRL |= RB_UH_PORT_EN; return (ERR_SUCCESS); } return (ERR_USB_DISCON); } /********************************************************************* * @fn WaitUSB_Interrupt * * @brief Wait USB Interrput. * * @return ERROR */ UINT8 WaitUSB_Interrupt(void) { UINT16 i; for(i = WAIT_USB_TOUT_200US; i != 0 && (R8_USB_INT_FG & RB_UIF_TRANSFER) == 0; i--) { ; } return ((R8_USB_INT_FG & RB_UIF_TRANSFER) ? ERR_SUCCESS : ERR_USB_UNKNOWN); } /********************************************************************* * @fn USBHostTransact * * @brief USB host transport transaction * @param endp_pid: endpoint and PID * tog: Synchronization flag * timeout: timeout times * * @return EEROR: * ERR_USB_UNKNOWN * ERR_USB_DISCON * ERR_USB_CONNECT * ERR_SUCCESS */ UINT8 USBHostTransact(UINT8 endp_pid, UINT8 tog, UINT32 timeout) { UINT8 TransRetry; UINT8 s, r; UINT16 i; R8_UH_RX_CTRL = R8_UH_TX_CTRL = tog; TransRetry = 0; do { R8_UH_EP_PID = endp_pid; R8_USB_INT_FG = RB_UIF_TRANSFER; for(i = WAIT_USB_TOUT_200US; i != 0 && (R8_USB_INT_FG & RB_UIF_TRANSFER) == 0; i--) ; R8_UH_EP_PID = 0x00; if((R8_USB_INT_FG & RB_UIF_TRANSFER) == 0) { return (ERR_USB_UNKNOWN); } if(R8_USB_INT_FG & RB_UIF_DETECT) { R8_USB_INT_FG = RB_UIF_DETECT; s = AnalyzeRootHub(); if(s == ERR_USB_CONNECT) FoundNewDev = 1; #ifdef DISK_BASE_BUF_LEN if(CH103DiskStatus == DISK_DISCONNECT) return (ERR_USB_DISCON); if(CH103DiskStatus == DISK_CONNECT) return (ERR_USB_CONNECT); #else if(ThisUsbDev.DeviceStatus == ROOT_DEV_DISCONNECT) return (ERR_USB_DISCON); if(ThisUsbDev.DeviceStatus == ROOT_DEV_CONNECTED) return (ERR_USB_CONNECT); #endif Delay_Us(200); } if(R8_USB_INT_FG & RB_UIF_TRANSFER) { if(R8_USB_INT_ST & RB_UIS_TOG_OK) return (ERR_SUCCESS); r = R8_USB_INT_ST & MASK_UIS_H_RES; if(r == USB_PID_STALL) return (r | ERR_USB_TRANSFER); if(r == USB_PID_NAK) { if(timeout == 0) return (r | ERR_USB_TRANSFER); if(timeout < 0xFFFF) timeout--; --TransRetry; } else switch(endp_pid >> 4) { case USB_PID_SETUP: case USB_PID_OUT: if(r) return (r | ERR_USB_TRANSFER); break; case USB_PID_IN: if(r == USB_PID_DATA0 && r == USB_PID_DATA1) { } else if(r) return (r | ERR_USB_TRANSFER); break; default: return (ERR_USB_UNKNOWN); } } else { R8_USB_INT_FG = 0xFF; } Delay_Us(15); } while(++TransRetry < 3); return (ERR_USB_TRANSFER); } /********************************************************************* * @fn HostCtrlTransfer * * @brief Host control transport. * * @param DataBuf : Receive or send data buffer. * RetLen : Data length. * * @return ERR_USB_BUF_OVER IN * ERR_SUCCESS */ UINT8 HostCtrlTransfer(PUINT8 DataBuf, PUINT8 RetLen) { UINT16 RemLen = 0; UINT8 s, RxLen, RxCnt, TxCnt; PUINT8 pBuf; PUINT8 pLen; pBuf = DataBuf; pLen = RetLen; Delay_Us(200); if(pLen) *pLen = 0; R8_UH_TX_LEN = sizeof(USB_SETUP_REQ); s = USBHostTransact(USB_PID_SETUP << 4 | 0x00, 0x00, 200000 / 20); if(s != ERR_SUCCESS) return (s); R8_UH_RX_CTRL = R8_UH_TX_CTRL = RB_UH_R_TOG | RB_UH_R_AUTO_TOG | RB_UH_T_TOG | RB_UH_T_AUTO_TOG; R8_UH_TX_LEN = 0x01; RemLen = pSetupReq->wLength; if(RemLen && pBuf) { if(pSetupReq->bRequestType & USB_REQ_TYP_IN) { while(RemLen) { Delay_Us(200); s = USBHostTransact(USB_PID_IN << 4 | 0x00, R8_UH_RX_CTRL, 200000 / 20); if(s != ERR_SUCCESS) return (s); RxLen = R8_USB_RX_LEN < RemLen ? R8_USB_RX_LEN : RemLen; RemLen -= RxLen; if(pLen) *pLen += RxLen; for(RxCnt = 0; RxCnt != RxLen; RxCnt++) { *pBuf = pHOST_RX_RAM_Addr[RxCnt]; pBuf++; } if(R8_USB_RX_LEN == 0 || (R8_USB_RX_LEN & (UsbDevEndp0Size - 1))) break; } R8_UH_TX_LEN = 0x00; } else { while(RemLen) { Delay_Us(200); R8_UH_TX_LEN = RemLen >= UsbDevEndp0Size ? UsbDevEndp0Size : RemLen; for(TxCnt = 0; TxCnt != R8_UH_TX_LEN; TxCnt++){ pHOST_TX_RAM_Addr[TxCnt] = *pBuf; pBuf++; } s = USBHostTransact(USB_PID_OUT << 4 | 0x00, R8_UH_TX_CTRL, 200000 / 20); if(s != ERR_SUCCESS) return (s); RemLen -= R8_UH_TX_LEN; if(pLen) *pLen += R8_UH_TX_LEN; } } } Delay_Us(200); s = USBHostTransact((R8_UH_TX_LEN ? USB_PID_IN << 4 | 0x00 : USB_PID_OUT << 4 | 0x00), RB_UH_R_TOG | RB_UH_T_TOG, 200000 / 20); if(s != ERR_SUCCESS) return (s); if(R8_UH_TX_LEN == 0) return (ERR_SUCCESS); if(R8_USB_RX_LEN == 0) return (ERR_SUCCESS); return (ERR_USB_BUF_OVER); } /********************************************************************* * @fn CopySetupReqPkg * * @brief Copy setup request package. * * @param pReqPkt: setup request package address. * * @return none */ void CopySetupReqPkg(const UINT8 *pReqPkt) { UINT8 i; for(i = 0; i != sizeof(USB_SETUP_REQ); i++) { ((PUINT8)pSetupReq)[i] = *pReqPkt; pReqPkt++; } } /********************************************************************* * @fn CtrlGetDeviceDescr * * @brief Get device descrptor. * * @param DataBuf: Data buffer. * * @return ERR_USB_BUF_OVER * ERR_SUCCESS */ UINT8 CtrlGetDeviceDescr(PUINT8 DataBuf) { UINT8 s; UINT8 len; UsbDevEndp0Size = DEFAULT_ENDP0_SIZE; CopySetupReqPkg(SetupGetDevDescr); s = HostCtrlTransfer(DataBuf, &len); if(s != ERR_SUCCESS) return (s); UsbDevEndp0Size = ((PUSB_DEV_DESCR)DataBuf)->bMaxPacketSize0; if(len < ((PUSB_SETUP_REQ)SetupGetDevDescr)->wLength) return (ERR_USB_BUF_OVER); return (ERR_SUCCESS); } /********************************************************************* * @fn CtrlGetConfigDescr * * @brief Get configration descrptor. * * @param DataBuf: Data buffer. * * @return ERR_USB_BUF_OVER * ERR_SUCCESS */ UINT8 CtrlGetConfigDescr(PUINT8 DataBuf) { UINT8 s; UINT8 len; CopySetupReqPkg(SetupGetCfgDescr); s = HostCtrlTransfer(DataBuf, &len); if(s != ERR_SUCCESS) return (s); if(len < ((PUSB_SETUP_REQ)SetupGetCfgDescr)->wLength) return (ERR_USB_BUF_OVER); len = ((PUSB_CFG_DESCR)DataBuf)->wTotalLength; CopySetupReqPkg(SetupGetCfgDescr); pSetupReq->wLength = len; s = HostCtrlTransfer(DataBuf, &len); if(s != ERR_SUCCESS) return (s); return (ERR_SUCCESS); } /********************************************************************* * @fn CtrlSetUsbAddress * * @brief Set USB device address. * * @param addr: Device address. * * @return ERR_SUCCESS */ UINT8 CtrlSetUsbAddress(UINT8 addr) { UINT8 s; CopySetupReqPkg(SetupSetUsbAddr); pSetupReq->wValue = addr; s = HostCtrlTransfer(NULL, NULL); if(s != ERR_SUCCESS) return (s); SetHostUsbAddr(addr); Delay_Ms(10); return (ERR_SUCCESS); } /********************************************************************* * @fn CtrlSetUsbConfig * * @brief Set usb configration. * * @param cfg: Configration Value. * * @return ERR_SUCCESS */ UINT8 CtrlSetUsbConfig(UINT8 cfg) { CopySetupReqPkg(SetupSetUsbConfig); pSetupReq->wValue = cfg; return (HostCtrlTransfer(NULL, NULL)); } /********************************************************************* * @fn CtrlClearEndpStall * * @brief Clear endpoint STALL. * * @param endp: Endpoint address. * * @return ERR_SUCCESS */ UINT8 CtrlClearEndpStall(UINT8 endp) { CopySetupReqPkg(SetupClrEndpStall); pSetupReq->wIndex = endp; return (HostCtrlTransfer(NULL, NULL)); } /********************************************************************* * @fn CtrlSetUsbIntercace * * @brief Set USB Interface configration. * * @param cfg: Configration value. * * @return ERR_SUCCESS */ UINT8 CtrlSetUsbIntercace(UINT8 cfg) { CopySetupReqPkg(SetupSetUsbInterface); pSetupReq->wValue = cfg; return (HostCtrlTransfer(NULL, NULL)); } /********************************************************************* * @fn USB_HostInit * * @brief Initializes USB host mode. * * @return ERR_SUCCESS */ void USB_HostInit(void) { R8_USB_CTRL = RB_UC_HOST_MODE; R8_UHOST_CTRL = 0; R8_USB_DEV_AD = 0x00; R8_UH_EP_MOD = RB_UH_EP_TX_EN | RB_UH_EP_RX_EN; R16_UH_RX_DMA = (UINT16)(UINT32)pHOST_RX_RAM_Addr; R16_UH_TX_DMA = (UINT16)(UINT32)pHOST_TX_RAM_Addr; R8_UH_RX_CTRL = 0x00; R8_UH_TX_CTRL = 0x00; R8_USB_CTRL = RB_UC_HOST_MODE | RB_UC_INT_BUSY | RB_UC_DMA_EN; R8_UH_SETUP = RB_UH_SOF_EN; R8_USB_INT_FG = 0xFF; DisableRootHubPort(); R8_USB_INT_EN = RB_UIE_TRANSFER | RB_UIE_DETECT; FoundNewDev = 0; } /********************************************************************* * @fn InitRootDevice * * @brief Initializes USB root hub. * * @param DataBuf: Data buffer. * * @return ERROR */ UINT8 InitRootDevice(PUINT8 DataBuf) { UINT8 i, s; UINT8 cfg, dv_cls, if_cls; ResetRootHubPort(); for(i = 0, s = 0; i < 100; i++) { Delay_Ms(1); if(EnableRootHubPort() == ERR_SUCCESS) { i = 0; s++; if(s > 100) break; } } if(i) { DisableRootHubPort(); return (ERR_USB_DISCON); } SetUsbSpeed(ThisUsbDev.DeviceSpeed); s = CtrlGetDeviceDescr(DataBuf); if(s == ERR_SUCCESS) { ThisUsbDev.DeviceVID = ((PUSB_DEV_DESCR)DataBuf)->idVendor; ThisUsbDev.DevicePID = ((PUSB_DEV_DESCR)DataBuf)->idProduct; dv_cls = ((PUSB_DEV_DESCR)DataBuf)->bDeviceClass; s = CtrlSetUsbAddress(((PUSB_SETUP_REQ)SetupSetUsbAddr)->wValue); if(s == ERR_SUCCESS) { ThisUsbDev.DeviceAddress = ((PUSB_SETUP_REQ)SetupSetUsbAddr)->wValue; s = CtrlGetConfigDescr(DataBuf); if(s == ERR_SUCCESS) { cfg = ((PUSB_CFG_DESCR)DataBuf)->bConfigurationValue; if_cls = ((PUSB_CFG_DESCR_LONG)DataBuf)->itf_descr.bInterfaceClass; if((dv_cls == 0x00) && (if_cls == USB_DEV_CLASS_STORAGE)) { #ifdef FOR_ROOT_UDISK_ONLY CH103DiskStatus = DISK_USB_ADDR; return (ERR_SUCCESS); } else return (ERR_USB_UNSUPPORT); #else s = CtrlSetUsbConfig(cfg); if(s == ERR_SUCCESS) { ThisUsbDev.DeviceStatus = ROOT_DEV_SUCCESS; ThisUsbDev.DeviceType = USB_DEV_CLASS_STORAGE; SetUsbSpeed(1); return (ERR_SUCCESS); } } else if((dv_cls == 0x00) && (if_cls == USB_DEV_CLASS_PRINTER) && ((PUSB_CFG_DESCR_LONG)DataBuf)->itf_descr.bInterfaceSubClass == 0x01) { s = CtrlSetUsbConfig(cfg); if(s == ERR_SUCCESS) { ThisUsbDev.DeviceStatus = ROOT_DEV_SUCCESS; ThisUsbDev.DeviceType = USB_DEV_CLASS_PRINTER; SetUsbSpeed(1); return (ERR_SUCCESS); } } else if((dv_cls == 0x00) && (if_cls == USB_DEV_CLASS_HID) && ((PUSB_CFG_DESCR_LONG)DataBuf)->itf_descr.bInterfaceSubClass <= 0x01) { if_cls = ((PUSB_CFG_DESCR_LONG)DataBuf)->itf_descr.bInterfaceProtocol; s = CtrlSetUsbConfig(cfg); if(s == ERR_SUCCESS) { ThisUsbDev.DeviceStatus = ROOT_DEV_SUCCESS; if(if_cls == 1) { ThisUsbDev.DeviceType = DEV_TYPE_KEYBOARD; SetUsbSpeed(1); return (ERR_SUCCESS); } else if(if_cls == 2) { ThisUsbDev.DeviceType = DEV_TYPE_MOUSE; SetUsbSpeed(1); return (ERR_SUCCESS); } s = ERR_USB_UNSUPPORT; } } else { s = CtrlSetUsbConfig(cfg); if(s == ERR_SUCCESS) { ThisUsbDev.DeviceStatus = ROOT_DEV_SUCCESS; ThisUsbDev.DeviceType = DEV_TYPE_UNKNOW; SetUsbSpeed(1); return (ERR_SUCCESS); } } #endif } } } #ifdef FOR_ROOT_UDISK_ONLY CH103DiskStatus = DISK_CONNECT; #else ThisUsbDev.DeviceStatus = ROOT_DEV_FAILED; #endif SetUsbSpeed(1); return (s); } /********************************************************************* * @fn HubGetPortStatus * * @brief 查询HUB端口状态,返回在Com_Buffer中 * * @param UINT8 HubPortIndex * * @return ERR_SUCCESS 成功 * ERR_USB_BUF_OVER 长度错误 */ UINT8 HubGetPortStatus(UINT8 HubPortIndex) { UINT8 s; UINT8 len; pSetupReq->bRequestType = HUB_GET_PORT_STATUS; pSetupReq->bRequest = HUB_GET_STATUS; pSetupReq->wValue = 0x0000; pSetupReq->wIndex = 0x0000 | HubPortIndex; pSetupReq->wLength = 0x0004; s = HostCtrlTransfer(Com_Buffer, &len); // 执行控制传输 if(s != ERR_SUCCESS) { return (s); } if(len < 4) { return (ERR_USB_BUF_OVER); // 描述符长度错误 } return (ERR_SUCCESS); } /********************************************************************* * @fn HubSetPortFeature * * @brief 设置HUB端口特性 * * @param UINT8 HubPortIndex * UINT8 FeatureSelt * * @return ERR_SUCCESS 成功 */ UINT8 HubSetPortFeature(UINT8 HubPortIndex, UINT8 FeatureSelt) { pSetupReq->bRequestType = HUB_SET_PORT_FEATURE; pSetupReq->bRequest = HUB_SET_FEATURE; pSetupReq->wValue = 0x0000 | FeatureSelt; pSetupReq->wIndex = 0x0000 | HubPortIndex; pSetupReq->wLength = 0x0000; return (HostCtrlTransfer(NULL, NULL)); // 执行控制传输 } /********************************************************************* * @fn HubClearPortFeature * * @brief 清除HUB端口特性 * * @param UINT8 HubPortIndex * UINT8 FeatureSelt * * @return ERR_SUCCESS 成功 */ UINT8 HubClearPortFeature(UINT8 HubPortIndex, UINT8 FeatureSelt) { pSetupReq->bRequestType = HUB_CLEAR_PORT_FEATURE; pSetupReq->bRequest = HUB_CLEAR_FEATURE; pSetupReq->wValue = 0x0000 | FeatureSelt; pSetupReq->wIndex = 0x0000 | HubPortIndex; pSetupReq->wLength = 0x0000; return (HostCtrlTransfer(NULL, NULL)); // 执行控制传输 }
243bd7f45abda28c2b8e6946a5a3497443c5d59e
321d11eaee885ceb3a74db0a062f9bbdf282148c
/crypto/ec/curve448/arch_64/f_impl64.c
419f8a8e65d04e05faa2f7e757d85f831c453641
[ "Apache-2.0", "OpenSSL", "LicenseRef-scancode-proprietary-license" ]
permissive
openssl/openssl
75691ebaae957793f2ff0673f77545277dfb3988
5318c012885a5382eadbf95aa9c1d35664bca819
refs/heads/master
2023-09-03T15:22:52.727123
2023-09-01T07:10:49
2023-09-02T14:30:01
7,634,677
24,148
11,569
Apache-2.0
2023-09-14T19:48:11
2013-01-15T22:34:48
C
UTF-8
C
false
false
5,176
c
f_impl64.c
/* * Copyright 2017-2022 The OpenSSL Project Authors. All Rights Reserved. * Copyright 2014 Cryptography Research, Inc. * * Licensed under the Apache License 2.0 (the "License"). You may not use * this file except in compliance with the License. You can obtain a copy * in the file LICENSE in the source distribution or at * https://www.openssl.org/source/license.html * * Originally written by Mike Hamburg */ #include "internal/e_os.h" #include <openssl/macros.h> #include "internal/numbers.h" #ifndef UINT128_MAX /* No support for 128 bit ints, so do nothing here */ NON_EMPTY_TRANSLATION_UNIT #else # include "../field.h" void ossl_gf_mul(gf_s * RESTRICT cs, const gf as, const gf bs) { const uint64_t *a = as->limb, *b = bs->limb; uint64_t *c = cs->limb; uint128_t accum0 = 0, accum1 = 0, accum2; uint64_t mask = (1ULL << 56) - 1; uint64_t aa[4], bb[4], bbb[4]; unsigned int i, j; for (i = 0; i < 4; i++) { aa[i] = a[i] + a[i + 4]; bb[i] = b[i] + b[i + 4]; bbb[i] = bb[i] + b[i + 4]; } for (i = 0; i < 4; i++) { accum2 = 0; for (j = 0; j <= i; j++) { accum2 += widemul(a[j], b[i - j]); accum1 += widemul(aa[j], bb[i - j]); accum0 += widemul(a[j + 4], b[i - j + 4]); } for (; j < 4; j++) { accum2 += widemul(a[j], b[i - j + 8]); accum1 += widemul(aa[j], bbb[i - j + 4]); accum0 += widemul(a[j + 4], bb[i - j + 4]); } accum1 -= accum2; accum0 += accum2; c[i] = ((uint64_t)(accum0)) & mask; c[i + 4] = ((uint64_t)(accum1)) & mask; accum0 >>= 56; accum1 >>= 56; } accum0 += accum1; accum0 += c[4]; accum1 += c[0]; c[4] = ((uint64_t)(accum0)) & mask; c[0] = ((uint64_t)(accum1)) & mask; accum0 >>= 56; accum1 >>= 56; c[5] += ((uint64_t)(accum0)); c[1] += ((uint64_t)(accum1)); } void ossl_gf_mulw_unsigned(gf_s * RESTRICT cs, const gf as, uint32_t b) { const uint64_t *a = as->limb; uint64_t *c = cs->limb; uint128_t accum0 = 0, accum4 = 0; uint64_t mask = (1ULL << 56) - 1; int i; for (i = 0; i < 4; i++) { accum0 += widemul(b, a[i]); accum4 += widemul(b, a[i + 4]); c[i] = accum0 & mask; accum0 >>= 56; c[i + 4] = accum4 & mask; accum4 >>= 56; } accum0 += accum4 + c[4]; c[4] = accum0 & mask; c[5] += accum0 >> 56; accum4 += c[0]; c[0] = accum4 & mask; c[1] += accum4 >> 56; } void ossl_gf_sqr(gf_s * RESTRICT cs, const gf as) { const uint64_t *a = as->limb; uint64_t *c = cs->limb; uint128_t accum0 = 0, accum1 = 0, accum2; uint64_t mask = (1ULL << 56) - 1; uint64_t aa[4]; unsigned int i; /* For some reason clang doesn't vectorize this without prompting? */ for (i = 0; i < 4; i++) aa[i] = a[i] + a[i + 4]; accum2 = widemul(a[0], a[3]); accum0 = widemul(aa[0], aa[3]); accum1 = widemul(a[4], a[7]); accum2 += widemul(a[1], a[2]); accum0 += widemul(aa[1], aa[2]); accum1 += widemul(a[5], a[6]); accum0 -= accum2; accum1 += accum2; c[3] = ((uint64_t)(accum1)) << 1 & mask; c[7] = ((uint64_t)(accum0)) << 1 & mask; accum0 >>= 55; accum1 >>= 55; accum0 += widemul(2 * aa[1], aa[3]); accum1 += widemul(2 * a[5], a[7]); accum0 += widemul(aa[2], aa[2]); accum1 += accum0; accum0 -= widemul(2 * a[1], a[3]); accum1 += widemul(a[6], a[6]); accum2 = widemul(a[0], a[0]); accum1 -= accum2; accum0 += accum2; accum0 -= widemul(a[2], a[2]); accum1 += widemul(aa[0], aa[0]); accum0 += widemul(a[4], a[4]); c[0] = ((uint64_t)(accum0)) & mask; c[4] = ((uint64_t)(accum1)) & mask; accum0 >>= 56; accum1 >>= 56; accum2 = widemul(2 * aa[2], aa[3]); accum0 -= widemul(2 * a[2], a[3]); accum1 += widemul(2 * a[6], a[7]); accum1 += accum2; accum0 += accum2; accum2 = widemul(2 * a[0], a[1]); accum1 += widemul(2 * aa[0], aa[1]); accum0 += widemul(2 * a[4], a[5]); accum1 -= accum2; accum0 += accum2; c[1] = ((uint64_t)(accum0)) & mask; c[5] = ((uint64_t)(accum1)) & mask; accum0 >>= 56; accum1 >>= 56; accum2 = widemul(aa[3], aa[3]); accum0 -= widemul(a[3], a[3]); accum1 += widemul(a[7], a[7]); accum1 += accum2; accum0 += accum2; accum2 = widemul(2 * a[0], a[2]); accum1 += widemul(2 * aa[0], aa[2]); accum0 += widemul(2 * a[4], a[6]); accum2 += widemul(a[1], a[1]); accum1 += widemul(aa[1], aa[1]); accum0 += widemul(a[5], a[5]); accum1 -= accum2; accum0 += accum2; c[2] = ((uint64_t)(accum0)) & mask; c[6] = ((uint64_t)(accum1)) & mask; accum0 >>= 56; accum1 >>= 56; accum0 += c[3]; accum1 += c[7]; c[3] = ((uint64_t)(accum0)) & mask; c[7] = ((uint64_t)(accum1)) & mask; /* we could almost stop here, but it wouldn't be stable, so... */ accum0 >>= 56; accum1 >>= 56; c[4] += ((uint64_t)(accum0)) + ((uint64_t)(accum1)); c[0] += ((uint64_t)(accum1)); } #endif
b993ccb3e10a8ca155b222826e96abbb4df660f8
e73547787354afd9b717ea57fe8dd0695d161821
/src/battle/common/stage/area_kpa/kpa_05.inc.c
5ba65ec90a223a8d60f8c3d488cbf038d133f41e
[]
no_license
pmret/papermario
8b514b19653cef8d6145e47499b3636b8c474a37
9774b26d93f1045dd2a67e502b6efc9599fb6c31
refs/heads/main
2023-08-31T07:09:48.951514
2023-08-21T18:07:08
2023-08-21T18:07:08
287,151,133
904
139
null
2023-09-14T02:44:23
2020-08-13T01:22:57
C
UTF-8
C
false
false
614
c
kpa_05.inc.c
#include "battle/battle.h" #include "mapfs/kpa_bt05_shape.h" #define NAMESPACE A(kpa_05) EvtScript N(EVS_PreBattle) = { EVT_CALL(SetSpriteShading, SHADING_NONE) EVT_CALL(SetCamBGColor, CAM_BATTLE, 0, 0, 0) EVT_RETURN EVT_END }; EvtScript N(EVS_PostBattle) = { EVT_RETURN EVT_END }; s32 N(ForegroundModels)[] = { MODEL_saku, STAGE_MODEL_LIST_END }; Stage NAMESPACE = { .texture = "kpa_tex", .shape = "kpa_bt05_shape", .hit = "kpa_bt05_hit", .preBattle = &N(EVS_PreBattle), .postBattle = &N(EVS_PostBattle), .foregroundModelList = N(ForegroundModels), };
a2a2a5774526709afab80ed669630d2d17e102de
dd4cc30a2e4368c0d350ced7218295819e102fba
/vendored_parsers/tree-sitter-c/examples/malloc.c
d5ee4280e9324ead8464dfd7ad2f37eb21d950d1
[ "MIT", "LicenseRef-scancode-unknown-license-reference", "Apache-2.0" ]
permissive
Wilfred/difftastic
49c87b4feea6ef1b5ab97abdfa823aff6aa7f354
a4ee2cf99e760562c3ffbd016a996ff50ef99442
refs/heads/master
2023-08-28T17:28:55.097192
2023-08-27T04:41:41
2023-08-27T04:41:41
162,276,894
14,748
287
MIT
2023-08-26T15:44:44
2018-12-18T11:19:45
Rust
UTF-8
C
false
false
12,098
c
malloc.c
#define _GNU_SOURCE #include <stdlib.h> #include <string.h> #include <limits.h> #include <stdint.h> #include <errno.h> #include <sys/mman.h> #include "libc.h" #include "atomic.h" #include "pthread_impl.h" #if defined(__GNUC__) && defined(__PIC__) #define inline inline __attribute__((always_inline)) #endif void *__mmap(void *, size_t, int, int, int, off_t); int __munmap(void *, size_t); void *__mremap(void *, size_t, size_t, int, ...); int __madvise(void *, size_t, int); struct chunk { size_t psize, csize; struct chunk *next, *prev; }; struct bin { volatile int lock[2]; struct chunk *head; struct chunk *tail; }; static struct { volatile uint64_t binmap; struct bin bins[64]; volatile int free_lock[2]; } mal; #define SIZE_ALIGN (4*sizeof(size_t)) #define SIZE_MASK (-SIZE_ALIGN) #define OVERHEAD (2*sizeof(size_t)) #define MMAP_THRESHOLD (0x1c00*SIZE_ALIGN) #define DONTCARE 16 #define RECLAIM 163840 #define CHUNK_SIZE(c) ((c)->csize & -2) #define CHUNK_PSIZE(c) ((c)->psize & -2) #define PREV_CHUNK(c) ((struct chunk *)((char *)(c) - CHUNK_PSIZE(c))) #define NEXT_CHUNK(c) ((struct chunk *)((char *)(c) + CHUNK_SIZE(c))) #define MEM_TO_CHUNK(p) (struct chunk *)((char *)(p) - OVERHEAD) #define CHUNK_TO_MEM(c) (void *)((char *)(c) + OVERHEAD) #define BIN_TO_CHUNK(i) (MEM_TO_CHUNK(&mal.bins[i].head)) #define C_INUSE ((size_t)1) #define IS_MMAPPED(c) !((c)->csize & (C_INUSE)) /* Synchronization tools */ static inline void lock(volatile int *lk) { if (libc.threads_minus_1) while(a_swap(lk, 1)) __wait(lk, lk+1, 1, 1); } static inline void unlock(volatile int *lk) { if (lk[0]) { a_store(lk, 0); if (lk[1]) __wake(lk, 1, 1); } } static inline void lock_bin(int i) { lock(mal.bins[i].lock); if (!mal.bins[i].head) mal.bins[i].head = mal.bins[i].tail = BIN_TO_CHUNK(i); } static inline void unlock_bin(int i) { unlock(mal.bins[i].lock); } static int first_set(uint64_t x) { #if 1 return a_ctz_64(x); #else static const char debruijn64[64] = { 0, 1, 2, 53, 3, 7, 54, 27, 4, 38, 41, 8, 34, 55, 48, 28, 62, 5, 39, 46, 44, 42, 22, 9, 24, 35, 59, 56, 49, 18, 29, 11, 63, 52, 6, 26, 37, 40, 33, 47, 61, 45, 43, 21, 23, 58, 17, 10, 51, 25, 36, 32, 60, 20, 57, 16, 50, 31, 19, 15, 30, 14, 13, 12 }; static const char debruijn32[32] = { 0, 1, 23, 2, 29, 24, 19, 3, 30, 27, 25, 11, 20, 8, 4, 13, 31, 22, 28, 18, 26, 10, 7, 12, 21, 17, 9, 6, 16, 5, 15, 14 }; if (sizeof(long) < 8) { uint32_t y = x; if (!y) { y = x>>32; return 32 + debruijn32[(y&-y)*0x076be629 >> 27]; } return debruijn32[(y&-y)*0x076be629 >> 27]; } return debruijn64[(x&-x)*0x022fdd63cc95386dull >> 58]; #endif } static const unsigned char bin_tab[60] = { 32,33,34,35,36,36,37,37,38,38,39,39, 40,40,40,40,41,41,41,41,42,42,42,42,43,43,43,43, 44,44,44,44,44,44,44,44,45,45,45,45,45,45,45,45, 46,46,46,46,46,46,46,46,47,47,47,47,47,47,47,47, }; static int bin_index(size_t x) { x = x / SIZE_ALIGN - 1; if (x <= 32) return x; if (x < 512) return bin_tab[x/8-4]; if (x > 0x1c00) return 63; return bin_tab[x/128-4] + 16; } static int bin_index_up(size_t x) { x = x / SIZE_ALIGN - 1; if (x <= 32) return x; x--; if (x < 512) return bin_tab[x/8-4] + 1; return bin_tab[x/128-4] + 17; } #if 0 void __dump_heap(int x) { struct chunk *c; int i; for (c = (void *)mal.heap; CHUNK_SIZE(c); c = NEXT_CHUNK(c)) fprintf(stderr, "base %p size %zu (%d) flags %d/%d\n", c, CHUNK_SIZE(c), bin_index(CHUNK_SIZE(c)), c->csize & 15, NEXT_CHUNK(c)->psize & 15); for (i=0; i<64; i++) { if (mal.bins[i].head != BIN_TO_CHUNK(i) && mal.bins[i].head) { fprintf(stderr, "bin %d: %p\n", i, mal.bins[i].head); if (!(mal.binmap & 1ULL<<i)) fprintf(stderr, "missing from binmap!\n"); } else if (mal.binmap & 1ULL<<i) fprintf(stderr, "binmap wrongly contains %d!\n", i); } } #endif void *__expand_heap(size_t *); static struct chunk *expand_heap(size_t n) { static int heap_lock[2]; static void *end; void *p; struct chunk *w; /* The argument n already accounts for the caller's chunk * overhead needs, but if the heap can't be extended in-place, * we need room for an extra zero-sized sentinel chunk. */ n += SIZE_ALIGN; lock(heap_lock); p = __expand_heap(&n); if (!p) { unlock(heap_lock); return 0; } /* If not just expanding existing space, we need to make a * new sentinel chunk below the allocated space. */ if (p != end) { /* Valid/safe because of the prologue increment. */ n -= SIZE_ALIGN; p = (char *)p + SIZE_ALIGN; w = MEM_TO_CHUNK(p); w->psize = 0 | C_INUSE; } /* Record new heap end and fill in footer. */ end = (char *)p + n; w = MEM_TO_CHUNK(end); w->psize = n | C_INUSE; w->csize = 0 | C_INUSE; /* Fill in header, which may be new or may be replacing a * zero-size sentinel header at the old end-of-heap. */ w = MEM_TO_CHUNK(p); w->csize = n | C_INUSE; unlock(heap_lock); return w; } static int adjust_size(size_t *n) { /* Result of pointer difference must fit in ptrdiff_t. */ if (*n-1 > PTRDIFF_MAX - SIZE_ALIGN - PAGE_SIZE) { if (*n) { errno = ENOMEM; return -1; } else { *n = SIZE_ALIGN; return 0; } } *n = (*n + OVERHEAD + SIZE_ALIGN - 1) & SIZE_MASK; return 0; } static void unbin(struct chunk *c, int i) { if (c->prev == c->next) a_and_64(&mal.binmap, ~(1ULL<<i)); c->prev->next = c->next; c->next->prev = c->prev; c->csize |= C_INUSE; NEXT_CHUNK(c)->psize |= C_INUSE; } static int alloc_fwd(struct chunk *c) { int i; size_t k; while (!((k=c->csize) & C_INUSE)) { i = bin_index(k); lock_bin(i); if (c->csize == k) { unbin(c, i); unlock_bin(i); return 1; } unlock_bin(i); } return 0; } static int alloc_rev(struct chunk *c) { int i; size_t k; while (!((k=c->psize) & C_INUSE)) { i = bin_index(k); lock_bin(i); if (c->psize == k) { unbin(PREV_CHUNK(c), i); unlock_bin(i); return 1; } unlock_bin(i); } return 0; } /* pretrim - trims a chunk _prior_ to removing it from its bin. * Must be called with i as the ideal bin for size n, j the bin * for the _free_ chunk self, and bin j locked. */ static int pretrim(struct chunk *self, size_t n, int i, int j) { size_t n1; struct chunk *next, *split; /* We cannot pretrim if it would require re-binning. */ if (j < 40) return 0; if (j < i+3) { if (j != 63) return 0; n1 = CHUNK_SIZE(self); if (n1-n <= MMAP_THRESHOLD) return 0; } else { n1 = CHUNK_SIZE(self); } if (bin_index(n1-n) != j) return 0; next = NEXT_CHUNK(self); split = (void *)((char *)self + n); split->prev = self->prev; split->next = self->next; split->prev->next = split; split->next->prev = split; split->psize = n | C_INUSE; split->csize = n1-n; next->psize = n1-n; self->csize = n | C_INUSE; return 1; } static void trim(struct chunk *self, size_t n) { size_t n1 = CHUNK_SIZE(self); struct chunk *next, *split; if (n >= n1 - DONTCARE) return; next = NEXT_CHUNK(self); split = (void *)((char *)self + n); split->psize = n | C_INUSE; split->csize = n1-n | C_INUSE; next->psize = n1-n | C_INUSE; self->csize = n | C_INUSE; free(CHUNK_TO_MEM(split)); } void *malloc(size_t n) { struct chunk *c; int i, j; if (adjust_size(&n) < 0) return 0; if (n > MMAP_THRESHOLD) { size_t len = n + OVERHEAD + PAGE_SIZE - 1 & -PAGE_SIZE; char *base = __mmap(0, len, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0); if (base == (void *)-1) return 0; c = (void *)(base + SIZE_ALIGN - OVERHEAD); c->csize = len - (SIZE_ALIGN - OVERHEAD); c->psize = SIZE_ALIGN - OVERHEAD; return CHUNK_TO_MEM(c); } i = bin_index_up(n); for (;;) { uint64_t mask = mal.binmap & -(1ULL<<i); if (!mask) { c = expand_heap(n); if (!c) return 0; if (alloc_rev(c)) { struct chunk *x = c; c = PREV_CHUNK(c); NEXT_CHUNK(x)->psize = c->csize = x->csize + CHUNK_SIZE(c); } break; } j = first_set(mask); lock_bin(j); c = mal.bins[j].head; if (c != BIN_TO_CHUNK(j)) { if (!pretrim(c, n, i, j)) unbin(c, j); unlock_bin(j); break; } unlock_bin(j); } /* Now patch up in case we over-allocated */ trim(c, n); return CHUNK_TO_MEM(c); } void *__malloc0(size_t n) { void *p = malloc(n); if (p && !IS_MMAPPED(MEM_TO_CHUNK(p))) { size_t *z; n = (n + sizeof *z - 1)/sizeof *z; for (z=p; n; n--, z++) if (*z) *z=0; } return p; } void *realloc(void *p, size_t n) { struct chunk *self, *next; size_t n0, n1; void *new; if (!p) return malloc(n); if (adjust_size(&n) < 0) return 0; self = MEM_TO_CHUNK(p); n1 = n0 = CHUNK_SIZE(self); if (IS_MMAPPED(self)) { size_t extra = self->psize; char *base = (char *)self - extra; size_t oldlen = n0 + extra; size_t newlen = n + extra; /* Crash on realloc of freed chunk */ if (extra & 1) a_crash(); if (newlen < PAGE_SIZE && (new = malloc(n))) { memcpy(new, p, n-OVERHEAD); free(p); return new; } newlen = (newlen + PAGE_SIZE-1) & -PAGE_SIZE; if (oldlen == newlen) return p; base = __mremap(base, oldlen, newlen, MREMAP_MAYMOVE); if (base == (void *)-1) goto copy_realloc; self = (void *)(base + extra); self->csize = newlen - extra; return CHUNK_TO_MEM(self); } next = NEXT_CHUNK(self); /* Crash on corrupted footer (likely from buffer overflow) */ if (next->psize != self->csize) a_crash(); /* Merge adjacent chunks if we need more space. This is not * a waste of time even if we fail to get enough space, because our * subsequent call to free would otherwise have to do the merge. */ if (n > n1 && alloc_fwd(next)) { n1 += CHUNK_SIZE(next); next = NEXT_CHUNK(next); } /* FIXME: find what's wrong here and reenable it..? */ if (0 && n > n1 && alloc_rev(self)) { self = PREV_CHUNK(self); n1 += CHUNK_SIZE(self); } self->csize = n1 | C_INUSE; next->psize = n1 | C_INUSE; /* If we got enough space, split off the excess and return */ if (n <= n1) { //memmove(CHUNK_TO_MEM(self), p, n0-OVERHEAD); trim(self, n); return CHUNK_TO_MEM(self); } copy_realloc: /* As a last resort, allocate a new chunk and copy to it. */ new = malloc(n-OVERHEAD); if (!new) return 0; memcpy(new, p, n0-OVERHEAD); free(CHUNK_TO_MEM(self)); return new; } void free(void *p) { struct chunk *self = MEM_TO_CHUNK(p); struct chunk *next; size_t final_size, new_size, size; int reclaim=0; int i; if (!p) return; if (IS_MMAPPED(self)) { size_t extra = self->psize; char *base = (char *)self - extra; size_t len = CHUNK_SIZE(self) + extra; /* Crash on double free */ if (extra & 1) a_crash(); __munmap(base, len); return; } final_size = new_size = CHUNK_SIZE(self); next = NEXT_CHUNK(self); /* Crash on corrupted footer (likely from buffer overflow) */ if (next->psize != self->csize) a_crash(); for (;;) { if (self->psize & next->csize & C_INUSE) { self->csize = final_size | C_INUSE; next->psize = final_size | C_INUSE; i = bin_index(final_size); lock_bin(i); lock(mal.free_lock); if (self->psize & next->csize & C_INUSE) break; unlock(mal.free_lock); unlock_bin(i); } if (alloc_rev(self)) { self = PREV_CHUNK(self); size = CHUNK_SIZE(self); final_size += size; if (new_size+size > RECLAIM && (new_size+size^size) > size) reclaim = 1; } if (alloc_fwd(next)) { size = CHUNK_SIZE(next); final_size += size; if (new_size+size > RECLAIM && (new_size+size^size) > size) reclaim = 1; next = NEXT_CHUNK(next); } } if (!(mal.binmap & 1ULL<<i)) a_or_64(&mal.binmap, 1ULL<<i); self->csize = final_size; next->psize = final_size; unlock(mal.free_lock); self->next = BIN_TO_CHUNK(i); self->prev = mal.bins[i].tail; self->next->prev = self; self->prev->next = self; /* Replace middle of large chunks with fresh zero pages */ if (reclaim) { uintptr_t a = (uintptr_t)self + SIZE_ALIGN+PAGE_SIZE-1 & -PAGE_SIZE; uintptr_t b = (uintptr_t)next - SIZE_ALIGN & -PAGE_SIZE; #if 1 __madvise((void *)a, b-a, MADV_DONTNEED); #else __mmap((void *)a, b-a, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS|MAP_FIXED, -1, 0); #endif } unlock_bin(i); }
9ea8c10951c798fb4304fa80fdf33e1e5a4d3d50
28d0f8c01599f8f6c711bdde0b59f9c2cd221203
/sys/dev/hdaudio/hdaudiodevs_data.h
e7186ea3aeeacae0d8d241b5eea95cd6627647bb
[]
no_license
NetBSD/src
1a9cbc22ed778be638b37869ed4fb5c8dd616166
23ee83f7c0aea0777bd89d8ebd7f0cde9880d13c
refs/heads/trunk
2023-08-31T13:24:58.105962
2023-08-27T15:50:47
2023-08-27T15:50:47
88,439,547
656
348
null
2023-07-20T20:07:24
2017-04-16T20:03:43
null
UTF-8
C
false
false
23,439
h
hdaudiodevs_data.h
/* $NetBSD: hdaudiodevs_data.h,v 1.8 2023/07/01 13:37:48 nia Exp $ */ /* * THIS FILE IS AUTOMATICALLY GENERATED. DO NOT EDIT. * * generated from: * NetBSD: hdaudiodevs,v 1.6 2022/04/16 12:24:06 nia Exp */ /* * Copyright (c) 2010 Jared D. McNeill <jmcneill@invisible.ca> * All rights reserved. * * This code is derived from software contributed to The NetBSD Foundation * by Precedence TeCHnologies Ltd * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions * are met: * 1. Redistributions of source code must retain the above copyright * notice, this list of conditions and the following disclaimer. * 2. The name of the author may not be used to endorse or promote products * derived from this software without specific prior written permission. * * THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR * IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES * OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. * IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT, * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, * BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED * AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, * OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF * SUCH DAMAGE. */ static const uint32_t hdaudio_vendors[] = { HDAUDIO_VENDOR_ATI, 1, 0, HDAUDIO_VENDOR_NVIDIA, 5, 0, HDAUDIO_VENDOR_REALTEK, 12, 0, HDAUDIO_VENDOR_VIATECH, 20, 0, HDAUDIO_VENDOR_SIGMATEL2, 24, 0, HDAUDIO_VENDOR_ANALOG, 33, 40, 0, HDAUDIO_VENDOR_CONEXANT, 48, 0, HDAUDIO_VENDOR_VMWARE, 57, 0, HDAUDIO_VENDOR_CMEDIA, 64, 0, HDAUDIO_VENDOR_INTEL, 72, 0, HDAUDIO_VENDOR_SIGMATEL, 24, 0, }; static const uint32_t hdaudio_products[] = { HDAUDIO_VENDOR_ATI, HDAUDIO_PRODUCT_ATI_RS600_HDMI_1, 78, 84, 0, HDAUDIO_VENDOR_ATI, HDAUDIO_PRODUCT_ATI_RS600_HDMI_2, 78, 84, 0, HDAUDIO_VENDOR_ATI, HDAUDIO_PRODUCT_ATI_RS690_780_HDMI, 89, 84, 0, HDAUDIO_VENDOR_ATI, HDAUDIO_PRODUCT_ATI_R6xx_HDMI, 99, 84, 0, HDAUDIO_VENDOR_NVIDIA, HDAUDIO_PRODUCT_NVIDIA_MCP77_78_HDMI_2, 104, 84, 0, HDAUDIO_VENDOR_NVIDIA, HDAUDIO_PRODUCT_NVIDIA_MCP77_78_HDMI_3, 104, 84, 0, HDAUDIO_VENDOR_NVIDIA, HDAUDIO_PRODUCT_NVIDIA_MCP77_78_HDMI_5, 104, 84, 0, HDAUDIO_VENDOR_NVIDIA, HDAUDIO_PRODUCT_NVIDIA_MCP77_78_HDMI_6, 104, 84, 0, HDAUDIO_VENDOR_NVIDIA, HDAUDIO_PRODUCT_NVIDIA_MCP79_7A_HDMI_7, 113, 84, 0, HDAUDIO_VENDOR_NVIDIA, HDAUDIO_PRODUCT_NVIDIA_GT220_HDMI, 122, 84, 0, HDAUDIO_VENDOR_NVIDIA, HDAUDIO_PRODUCT_NVIDIA_GT21x_HDMI, 128, 84, 0, HDAUDIO_VENDOR_NVIDIA, HDAUDIO_PRODUCT_NVIDIA_MCP89_HDMI, 134, 84, 0, HDAUDIO_VENDOR_NVIDIA, HDAUDIO_PRODUCT_NVIDIA_GT240_HDMI, 140, 84, 0, HDAUDIO_VENDOR_NVIDIA, HDAUDIO_PRODUCT_NVIDIA_GT5xx_HDMI_DP, 146, 152, 0, HDAUDIO_VENDOR_NVIDIA, HDAUDIO_PRODUCT_NVIDIA_TEGRA124_HDMI, 160, 84, 0, HDAUDIO_VENDOR_NVIDIA, HDAUDIO_PRODUCT_NVIDIA_MCP67_HDMI, 169, 84, 0, HDAUDIO_VENDOR_NVIDIA, HDAUDIO_PRODUCT_NVIDIA_MCP73_HDMI, 175, 84, 0, HDAUDIO_VENDOR_REALTEK, HDAUDIO_PRODUCT_REALTEK_ALC260, 181, 0, HDAUDIO_VENDOR_REALTEK, HDAUDIO_PRODUCT_REALTEK_ALC262, 188, 0, HDAUDIO_VENDOR_REALTEK, HDAUDIO_PRODUCT_REALTEK_ALC267, 195, 0, HDAUDIO_VENDOR_REALTEK, HDAUDIO_PRODUCT_REALTEK_ALC268, 202, 0, HDAUDIO_VENDOR_REALTEK, HDAUDIO_PRODUCT_REALTEK_ALC269, 209, 0, HDAUDIO_VENDOR_REALTEK, HDAUDIO_PRODUCT_REALTEK_ALC270, 216, 0, HDAUDIO_VENDOR_REALTEK, HDAUDIO_PRODUCT_REALTEK_ALC272, 223, 0, HDAUDIO_VENDOR_REALTEK, HDAUDIO_PRODUCT_REALTEK_ALC275, 230, 0, HDAUDIO_VENDOR_REALTEK, HDAUDIO_PRODUCT_REALTEK_ALC280, 237, 0, HDAUDIO_VENDOR_REALTEK, HDAUDIO_PRODUCT_REALTEK_ALC292, 244, 0, HDAUDIO_VENDOR_REALTEK, HDAUDIO_PRODUCT_REALTEK_ALC293, 251, 0, HDAUDIO_VENDOR_REALTEK, HDAUDIO_PRODUCT_REALTEK_ALC660_VD, 258, 0, HDAUDIO_VENDOR_REALTEK, HDAUDIO_PRODUCT_REALTEK_ALC662, 268, 0, HDAUDIO_VENDOR_REALTEK, HDAUDIO_PRODUCT_REALTEK_ALC663, 275, 0, HDAUDIO_VENDOR_REALTEK, HDAUDIO_PRODUCT_REALTEK_ALC670, 282, 0, HDAUDIO_VENDOR_REALTEK, HDAUDIO_PRODUCT_REALTEK_ALC671, 289, 0, HDAUDIO_VENDOR_REALTEK, HDAUDIO_PRODUCT_REALTEK_ALC861, 296, 0, HDAUDIO_VENDOR_REALTEK, HDAUDIO_PRODUCT_REALTEK_ALC861_VD, 303, 0, HDAUDIO_VENDOR_REALTEK, HDAUDIO_PRODUCT_REALTEK_ALC880, 313, 0, HDAUDIO_VENDOR_REALTEK, HDAUDIO_PRODUCT_REALTEK_ALC882, 320, 0, HDAUDIO_VENDOR_REALTEK, HDAUDIO_PRODUCT_REALTEK_ALC883, 327, 0, HDAUDIO_VENDOR_REALTEK, HDAUDIO_PRODUCT_REALTEK_ALC885, 334, 0, HDAUDIO_VENDOR_REALTEK, HDAUDIO_PRODUCT_REALTEK_ALC887, 341, 0, HDAUDIO_VENDOR_REALTEK, HDAUDIO_PRODUCT_REALTEK_ALC888, 348, 0, HDAUDIO_VENDOR_REALTEK, HDAUDIO_PRODUCT_REALTEK_ALC889, 355, 0, HDAUDIO_VENDOR_REALTEK, HDAUDIO_PRODUCT_REALTEK_ALC892, 362, 0, HDAUDIO_VENDOR_VIATECH, HDAUDIO_PRODUCT_VIATECH_VT1708, 369, 0, HDAUDIO_VENDOR_VIATECH, HDAUDIO_PRODUCT_VIATECH_VT1709, 369, 0, HDAUDIO_VENDOR_VIATECH, HDAUDIO_PRODUCT_VIATECH_VT170A, 369, 0, HDAUDIO_VENDOR_VIATECH, HDAUDIO_PRODUCT_VIATECH_VT170B, 369, 0, HDAUDIO_VENDOR_VIATECH, HDAUDIO_PRODUCT_VIATECH_VT1709_10CH_0, 376, 383, 0, HDAUDIO_VENDOR_VIATECH, HDAUDIO_PRODUCT_VIATECH_VT1709_10CH_1, 376, 383, 0, HDAUDIO_VENDOR_VIATECH, HDAUDIO_PRODUCT_VIATECH_VT1709_10CH_2, 376, 383, 0, HDAUDIO_VENDOR_VIATECH, HDAUDIO_PRODUCT_VIATECH_VT1709_10CH_3, 376, 383, 0, HDAUDIO_VENDOR_VIATECH, HDAUDIO_PRODUCT_VIATECH_VT1709_6CH_4, 376, 388, 0, HDAUDIO_VENDOR_VIATECH, HDAUDIO_PRODUCT_VIATECH_VT1709_6CH_5, 376, 388, 0, HDAUDIO_VENDOR_VIATECH, HDAUDIO_PRODUCT_VIATECH_VT1709_6CH_6, 376, 388, 0, HDAUDIO_VENDOR_VIATECH, HDAUDIO_PRODUCT_VIATECH_VT1709_6CH_7, 376, 388, 0, HDAUDIO_VENDOR_VIATECH, HDAUDIO_PRODUCT_VIATECH_VT1708B_8CH_0, 392, 400, 0, HDAUDIO_VENDOR_VIATECH, HDAUDIO_PRODUCT_VIATECH_VT1708B_8CH_1, 392, 400, 0, HDAUDIO_VENDOR_VIATECH, HDAUDIO_PRODUCT_VIATECH_VT1708B_8CH_2, 392, 400, 0, HDAUDIO_VENDOR_VIATECH, HDAUDIO_PRODUCT_VIATECH_VT1708B_8CH_3, 392, 400, 0, HDAUDIO_VENDOR_VIATECH, HDAUDIO_PRODUCT_VIATECH_VT1708B_4CH_4, 392, 404, 0, HDAUDIO_VENDOR_VIATECH, HDAUDIO_PRODUCT_VIATECH_VT1708B_4CH_5, 392, 404, 0, HDAUDIO_VENDOR_VIATECH, HDAUDIO_PRODUCT_VIATECH_VT1708B_4CH_6, 392, 404, 0, HDAUDIO_VENDOR_VIATECH, HDAUDIO_PRODUCT_VIATECH_VT1708B_4CH_7, 392, 404, 0, HDAUDIO_VENDOR_VIATECH, HDAUDIO_PRODUCT_VIATECH_VT1708S_0, 408, 0, HDAUDIO_VENDOR_VIATECH, HDAUDIO_PRODUCT_VIATECH_VT1708S_1, 408, 0, HDAUDIO_VENDOR_VIATECH, HDAUDIO_PRODUCT_VIATECH_VT1708S_2, 408, 0, HDAUDIO_VENDOR_VIATECH, HDAUDIO_PRODUCT_VIATECH_VT1708S_3, 408, 0, HDAUDIO_VENDOR_VIATECH, HDAUDIO_PRODUCT_VIATECH_VT1708S_4, 408, 0, HDAUDIO_VENDOR_VIATECH, HDAUDIO_PRODUCT_VIATECH_VT1708S_5, 408, 0, HDAUDIO_VENDOR_VIATECH, HDAUDIO_PRODUCT_VIATECH_VT1708S_6, 408, 0, HDAUDIO_VENDOR_VIATECH, HDAUDIO_PRODUCT_VIATECH_VT1708S, 408, 0, HDAUDIO_VENDOR_VIATECH, HDAUDIO_PRODUCT_VIATECH_VT1702_0, 416, 0, HDAUDIO_VENDOR_VIATECH, HDAUDIO_PRODUCT_VIATECH_VT1702_1, 416, 0, HDAUDIO_VENDOR_VIATECH, HDAUDIO_PRODUCT_VIATECH_VT1702_2, 416, 0, HDAUDIO_VENDOR_VIATECH, HDAUDIO_PRODUCT_VIATECH_VT1702_3, 416, 0, HDAUDIO_VENDOR_VIATECH, HDAUDIO_PRODUCT_VIATECH_VT1702_4, 416, 0, HDAUDIO_VENDOR_VIATECH, HDAUDIO_PRODUCT_VIATECH_VT1702_5, 416, 0, HDAUDIO_VENDOR_VIATECH, HDAUDIO_PRODUCT_VIATECH_VT1702_6, 416, 0, HDAUDIO_VENDOR_VIATECH, HDAUDIO_PRODUCT_VIATECH_VT1702_7, 416, 0, HDAUDIO_VENDOR_VIATECH, HDAUDIO_PRODUCT_VIATECH_VT1718S, 423, 0, HDAUDIO_VENDOR_VIATECH, HDAUDIO_PRODUCT_VIATECH_VT1718S_1, 423, 0, HDAUDIO_VENDOR_VIATECH, HDAUDIO_PRODUCT_VIATECH_VT2020, 431, 0, HDAUDIO_VENDOR_VIATECH, HDAUDIO_PRODUCT_VIATECH_VT1828S, 438, 0, HDAUDIO_VENDOR_VIATECH, HDAUDIO_PRODUCT_VIATECH_VT1716S, 446, 0, HDAUDIO_VENDOR_VIATECH, HDAUDIO_PRODUCT_VIATECH_VT1716S_1, 446, 0, HDAUDIO_VENDOR_VIATECH, HDAUDIO_PRODUCT_VIATECH_VT2002P, 454, 0, HDAUDIO_VENDOR_VIATECH, HDAUDIO_PRODUCT_VIATECH_VT2002P_1, 454, 0, HDAUDIO_VENDOR_VIATECH, HDAUDIO_PRODUCT_VIATECH_VT1812, 462, 0, HDAUDIO_VENDOR_VIATECH, HDAUDIO_PRODUCT_VIATECH_VT1818S, 469, 0, HDAUDIO_VENDOR_VIATECH, HDAUDIO_PRODUCT_VIATECH_VT1705, 477, 0, HDAUDIO_VENDOR_ANALOG, HDAUDIO_PRODUCT_ANALOG_AD1884A, 484, 0, HDAUDIO_VENDOR_ANALOG, HDAUDIO_PRODUCT_ANALOG_AD1882, 492, 0, HDAUDIO_VENDOR_ANALOG, HDAUDIO_PRODUCT_ANALOG_AD1883, 499, 0, HDAUDIO_VENDOR_ANALOG, HDAUDIO_PRODUCT_ANALOG_AD1884, 506, 0, HDAUDIO_VENDOR_ANALOG, HDAUDIO_PRODUCT_ANALOG_AD1984A, 513, 0, HDAUDIO_VENDOR_ANALOG, HDAUDIO_PRODUCT_ANALOG_AD1984B, 521, 0, HDAUDIO_VENDOR_ANALOG, HDAUDIO_PRODUCT_ANALOG_AD1981HD, 529, 0, HDAUDIO_VENDOR_ANALOG, HDAUDIO_PRODUCT_ANALOG_AD1983, 538, 0, HDAUDIO_VENDOR_ANALOG, HDAUDIO_PRODUCT_ANALOG_AD1984, 545, 0, HDAUDIO_VENDOR_ANALOG, HDAUDIO_PRODUCT_ANALOG_AD1986A, 552, 0, HDAUDIO_VENDOR_ANALOG, HDAUDIO_PRODUCT_ANALOG_AD1988A, 560, 0, HDAUDIO_VENDOR_ANALOG, HDAUDIO_PRODUCT_ANALOG_AD1988B, 568, 0, HDAUDIO_VENDOR_ANALOG, HDAUDIO_PRODUCT_ANALOG_AD1989A, 576, 0, HDAUDIO_VENDOR_ANALOG, HDAUDIO_PRODUCT_ANALOG_AD1989B, 584, 0, HDAUDIO_VENDOR_CONEXANT, HDAUDIO_PRODUCT_CONEXANT_CX20549, 592, 0, HDAUDIO_VENDOR_CONEXANT, HDAUDIO_PRODUCT_CONEXANT_CX20551, 600, 0, HDAUDIO_VENDOR_CONEXANT, HDAUDIO_PRODUCT_CONEXANT_CX20561, 608, 0, HDAUDIO_VENDOR_CONEXANT, HDAUDIO_PRODUCT_CONEXANT_CX20582, 616, 0, HDAUDIO_VENDOR_CONEXANT, HDAUDIO_PRODUCT_CONEXANT_CX20583, 624, 0, HDAUDIO_VENDOR_CONEXANT, HDAUDIO_PRODUCT_CONEXANT_CX20585, 632, 0, HDAUDIO_VENDOR_CONEXANT, HDAUDIO_PRODUCT_CONEXANT_CX20671, 640, 0, HDAUDIO_VENDOR_CMEDIA, HDAUDIO_PRODUCT_CMEDIA_CMI9880, 648, 0, HDAUDIO_VENDOR_INTEL, HDAUDIO_PRODUCT_INTEL_Q57_HDMI, 656, 84, 0, HDAUDIO_VENDOR_INTEL, HDAUDIO_PRODUCT_INTEL_G45_HDMI_1, 660, 664, 0, HDAUDIO_VENDOR_INTEL, HDAUDIO_PRODUCT_INTEL_G45_HDMI_2, 660, 671, 0, HDAUDIO_VENDOR_INTEL, HDAUDIO_PRODUCT_INTEL_G45_HDMI_3, 660, 678, 0, HDAUDIO_VENDOR_INTEL, HDAUDIO_PRODUCT_INTEL_G45_HDMI_4, 660, 685, 0, HDAUDIO_VENDOR_INTEL, HDAUDIO_PRODUCT_INTEL_HASWELL_HDMI, 152, 0, HDAUDIO_VENDOR_INTEL, HDAUDIO_PRODUCT_INTEL_BROADWELL_HDMI, 152, 0, HDAUDIO_VENDOR_INTEL, HDAUDIO_PRODUCT_INTEL_SKYLAKE_HDMI, 152, 0, HDAUDIO_VENDOR_INTEL, HDAUDIO_PRODUCT_INTEL_BROXTON_HDMI, 152, 0, HDAUDIO_VENDOR_INTEL, HDAUDIO_PRODUCT_INTEL_KABYLAKE_HDMI, 152, 0, HDAUDIO_VENDOR_INTEL, HDAUDIO_PRODUCT_INTEL_CANNONLAKE_HDMI, 152, 0, HDAUDIO_VENDOR_INTEL, HDAUDIO_PRODUCT_INTEL_GEMINILAKE_HDMI, 152, 0, HDAUDIO_VENDOR_INTEL, HDAUDIO_PRODUCT_INTEL_ICELAKE_HDMI, 152, 0, HDAUDIO_VENDOR_INTEL, HDAUDIO_PRODUCT_INTEL_G45_HDMI_FB, 660, 692, 0, HDAUDIO_VENDOR_SIGMATEL, HDAUDIO_PRODUCT_SIGMATEL_STAC9230X, 700, 0, HDAUDIO_VENDOR_SIGMATEL, HDAUDIO_PRODUCT_SIGMATEL_STAC9230D, 710, 0, HDAUDIO_VENDOR_SIGMATEL, HDAUDIO_PRODUCT_SIGMATEL_STAC9229X, 720, 0, HDAUDIO_VENDOR_SIGMATEL, HDAUDIO_PRODUCT_SIGMATEL_STAC9229D, 730, 0, HDAUDIO_VENDOR_SIGMATEL, HDAUDIO_PRODUCT_SIGMATEL_STAC9228X, 740, 0, HDAUDIO_VENDOR_SIGMATEL, HDAUDIO_PRODUCT_SIGMATEL_STAC9228D, 750, 0, HDAUDIO_VENDOR_SIGMATEL, HDAUDIO_PRODUCT_SIGMATEL_STAC9227X, 760, 0, HDAUDIO_VENDOR_SIGMATEL, HDAUDIO_PRODUCT_SIGMATEL_STAC9227D, 770, 0, HDAUDIO_VENDOR_SIGMATEL, HDAUDIO_PRODUCT_SIGMATEL_STAC9274, 780, 0, HDAUDIO_VENDOR_SIGMATEL, HDAUDIO_PRODUCT_SIGMATEL_STAC9274D, 789, 0, HDAUDIO_VENDOR_SIGMATEL, HDAUDIO_PRODUCT_SIGMATEL_STAC9273X, 799, 0, HDAUDIO_VENDOR_SIGMATEL, HDAUDIO_PRODUCT_SIGMATEL_STAC9273D, 809, 0, HDAUDIO_VENDOR_SIGMATEL, HDAUDIO_PRODUCT_SIGMATEL_STAC9272X, 819, 0, HDAUDIO_VENDOR_SIGMATEL, HDAUDIO_PRODUCT_SIGMATEL_STAC9272D, 829, 0, HDAUDIO_VENDOR_SIGMATEL, HDAUDIO_PRODUCT_SIGMATEL_STAC9271X, 839, 0, HDAUDIO_VENDOR_SIGMATEL, HDAUDIO_PRODUCT_SIGMATEL_STAC9271D, 849, 0, HDAUDIO_VENDOR_SIGMATEL, HDAUDIO_PRODUCT_SIGMATEL_STAC9274X5NH, 859, 0, HDAUDIO_VENDOR_SIGMATEL, HDAUDIO_PRODUCT_SIGMATEL_STAC9274D5NH, 872, 0, HDAUDIO_VENDOR_SIGMATEL, HDAUDIO_PRODUCT_SIGMATEL_STAC9202, 885, 0, HDAUDIO_VENDOR_SIGMATEL, HDAUDIO_PRODUCT_SIGMATEL_STAC9202D, 894, 0, HDAUDIO_VENDOR_SIGMATEL, HDAUDIO_PRODUCT_SIGMATEL_STAC9250, 904, 0, HDAUDIO_VENDOR_SIGMATEL, HDAUDIO_PRODUCT_SIGMATEL_STAC9250D_1, 913, 0, HDAUDIO_VENDOR_SIGMATEL, HDAUDIO_PRODUCT_SIGMATEL_STAC9251, 923, 0, HDAUDIO_VENDOR_SIGMATEL, HDAUDIO_PRODUCT_SIGMATEL_STAC9250D_2, 913, 0, HDAUDIO_VENDOR_SIGMATEL, HDAUDIO_PRODUCT_SIGMATEL_92HD206X, 932, 0, HDAUDIO_VENDOR_SIGMATEL, HDAUDIO_PRODUCT_SIGMATEL_92HD206D, 941, 0, HDAUDIO_VENDOR_SIGMATEL, HDAUDIO_PRODUCT_SIGMATEL_CXD9872RD_K, 950, 0, HDAUDIO_VENDOR_SIGMATEL, HDAUDIO_PRODUCT_SIGMATEL_STAC9872AK, 962, 0, HDAUDIO_VENDOR_SIGMATEL, HDAUDIO_PRODUCT_SIGMATEL_CXD9872AKD, 973, 0, HDAUDIO_VENDOR_SIGMATEL, HDAUDIO_PRODUCT_SIGMATEL_STAC9221_A1, 984, 993, 0, HDAUDIO_VENDOR_SIGMATEL, HDAUDIO_PRODUCT_SIGMATEL_STAC9220D, 996, 0, HDAUDIO_VENDOR_SIGMATEL, HDAUDIO_PRODUCT_SIGMATEL_STAC9221_A2, 984, 1006, 0, HDAUDIO_VENDOR_SIGMATEL, HDAUDIO_PRODUCT_SIGMATEL_STAC9221D, 1009, 0, HDAUDIO_VENDOR_SIGMATEL, HDAUDIO_PRODUCT_SIGMATEL_STAC9200, 1019, 0, HDAUDIO_VENDOR_SIGMATEL, HDAUDIO_PRODUCT_SIGMATEL_STAC9200D, 1028, 0, HDAUDIO_VENDOR_SIGMATEL, HDAUDIO_PRODUCT_SIGMATEL_STAC9205, 1038, 0, HDAUDIO_VENDOR_SIGMATEL, HDAUDIO_PRODUCT_SIGMATEL_STAC9205_1, 1038, 0, HDAUDIO_VENDOR_SIGMATEL, HDAUDIO_PRODUCT_SIGMATEL_STAC9205D, 1047, 0, HDAUDIO_VENDOR_SIGMATEL, HDAUDIO_PRODUCT_SIGMATEL_STAC9204, 1057, 0, HDAUDIO_VENDOR_SIGMATEL, HDAUDIO_PRODUCT_SIGMATEL_STAC9204D, 1066, 0, HDAUDIO_VENDOR_SIGMATEL, HDAUDIO_PRODUCT_SIGMATEL_STAC9255, 1076, 0, HDAUDIO_VENDOR_SIGMATEL, HDAUDIO_PRODUCT_SIGMATEL_STAC9255D, 1085, 0, HDAUDIO_VENDOR_SIGMATEL, HDAUDIO_PRODUCT_SIGMATEL_STAC9254, 1095, 0, HDAUDIO_VENDOR_SIGMATEL, HDAUDIO_PRODUCT_SIGMATEL_STAC9254D, 1104, 0, HDAUDIO_VENDOR_SIGMATEL, HDAUDIO_PRODUCT_SIGMATEL_STAC9220_A2, 1114, 1006, 0, HDAUDIO_VENDOR_SIGMATEL, HDAUDIO_PRODUCT_SIGMATEL_STAC9220_A1, 1114, 993, 0, HDAUDIO_VENDOR_SIGMATEL2, HDAUDIO_PRODUCT_SIGMATEL2_92HD75B3X5, 1123, 0, HDAUDIO_VENDOR_SIGMATEL2, HDAUDIO_PRODUCT_SIGMATEL2_92HD83C1X5, 1134, 0, HDAUDIO_VENDOR_SIGMATEL2, HDAUDIO_PRODUCT_SIGMATEL2_92HD81B1X5, 1145, 0, HDAUDIO_VENDOR_SIGMATEL2, HDAUDIO_PRODUCT_SIGMATEL2_92HD75B2X5, 1156, 0, HDAUDIO_VENDOR_SIGMATEL2, HDAUDIO_PRODUCT_SIGMATEL2_92HD88B3, 1167, 0, HDAUDIO_VENDOR_SIGMATEL2, HDAUDIO_PRODUCT_SIGMATEL2_92HD88B1, 1176, 0, HDAUDIO_VENDOR_SIGMATEL2, HDAUDIO_PRODUCT_SIGMATEL2_92HD88B2, 1185, 0, HDAUDIO_VENDOR_SIGMATEL2, HDAUDIO_PRODUCT_SIGMATEL2_92HD88B4, 1194, 0, HDAUDIO_VENDOR_SIGMATEL2, HDAUDIO_PRODUCT_SIGMATEL2_92HD73D1X5, 1203, 0, HDAUDIO_VENDOR_SIGMATEL2, HDAUDIO_PRODUCT_SIGMATEL2_92HD73C1X5, 1214, 0, HDAUDIO_VENDOR_SIGMATEL2, HDAUDIO_PRODUCT_SIGMATEL2_92HD73E1X5, 1225, 0, HDAUDIO_VENDOR_SIGMATEL2, HDAUDIO_PRODUCT_SIGMATEL2_92HD71B8X, 1236, 0, HDAUDIO_VENDOR_SIGMATEL2, HDAUDIO_PRODUCT_SIGMATEL2_92HD71B8X_1, 1236, 0, HDAUDIO_VENDOR_SIGMATEL2, HDAUDIO_PRODUCT_SIGMATEL2_92HD71B7X, 1246, 0, HDAUDIO_VENDOR_SIGMATEL2, HDAUDIO_PRODUCT_SIGMATEL2_92HD71B7X_1, 1246, 0, HDAUDIO_VENDOR_SIGMATEL2, HDAUDIO_PRODUCT_SIGMATEL2_92HD71B6X, 1256, 0, HDAUDIO_VENDOR_SIGMATEL2, HDAUDIO_PRODUCT_SIGMATEL2_92HD71B6X_1, 1256, 0, HDAUDIO_VENDOR_SIGMATEL2, HDAUDIO_PRODUCT_SIGMATEL2_92HD71B5X, 1266, 0, HDAUDIO_VENDOR_SIGMATEL2, HDAUDIO_PRODUCT_SIGMATEL2_92HD71B5X_1, 1266, 0, HDAUDIO_VENDOR_SIGMATEL2, HDAUDIO_PRODUCT_SIGMATEL2_92HD83C1C5, 1276, 0, HDAUDIO_VENDOR_SIGMATEL2, HDAUDIO_PRODUCT_SIGMATEL2_92HD81B1C5_1, 1287, 0, HDAUDIO_VENDOR_VMWARE, HDAUDIO_PRODUCT_VMWARE_VIRTUAL_HDA, 1298, 1306, 0, }; static const char hdaudio_words[] = { "." "ATI\0" /* 1 refs @ 1 */ "NVIDIA\0" /* 1 refs @ 5 */ "Realtek\0" /* 1 refs @ 12 */ "VIA\0" /* 1 refs @ 20 */ "Sigmatel\0" /* 2 refs @ 24 */ "Analog\0" /* 1 refs @ 33 */ "Devices\0" /* 1 refs @ 40 */ "Conexant\0" /* 1 refs @ 48 */ "VMware\0" /* 1 refs @ 57 */ "C-Media\0" /* 1 refs @ 64 */ "Intel\0" /* 1 refs @ 72 */ "RS600\0" /* 2 refs @ 78 */ "HDMI\0" /* 17 refs @ 84 */ "RS690/780\0" /* 1 refs @ 89 */ "R6xx\0" /* 1 refs @ 99 */ "MCP77/78\0" /* 4 refs @ 104 */ "MCP79/7A\0" /* 1 refs @ 113 */ "GT220\0" /* 1 refs @ 122 */ "GT21x\0" /* 1 refs @ 128 */ "MCP89\0" /* 1 refs @ 134 */ "GT240\0" /* 1 refs @ 140 */ "GT5xx\0" /* 1 refs @ 146 */ "HDMI/DP\0" /* 9 refs @ 152 */ "Tegra124\0" /* 1 refs @ 160 */ "MCP67\0" /* 1 refs @ 169 */ "MCP73\0" /* 1 refs @ 175 */ "ALC260\0" /* 1 refs @ 181 */ "ALC262\0" /* 1 refs @ 188 */ "ALC267\0" /* 1 refs @ 195 */ "ALC268\0" /* 1 refs @ 202 */ "ALC269\0" /* 1 refs @ 209 */ "ALC270\0" /* 1 refs @ 216 */ "ALC272\0" /* 1 refs @ 223 */ "ALC275\0" /* 1 refs @ 230 */ "ALC280\0" /* 1 refs @ 237 */ "ALC292\0" /* 1 refs @ 244 */ "ALC293\0" /* 1 refs @ 251 */ "ALC660-VD\0" /* 1 refs @ 258 */ "ALC662\0" /* 1 refs @ 268 */ "ALC663\0" /* 1 refs @ 275 */ "ALC670\0" /* 1 refs @ 282 */ "ALC671\0" /* 1 refs @ 289 */ "ALC861\0" /* 1 refs @ 296 */ "ALC861-VD\0" /* 1 refs @ 303 */ "ALC880\0" /* 1 refs @ 313 */ "ALC882\0" /* 1 refs @ 320 */ "ALC883\0" /* 1 refs @ 327 */ "ALC885\0" /* 1 refs @ 334 */ "ALC887\0" /* 1 refs @ 341 */ "ALC888\0" /* 1 refs @ 348 */ "ALC889\0" /* 1 refs @ 355 */ "ALC892\0" /* 1 refs @ 362 */ "VT1708\0" /* 4 refs @ 369 */ "VT1709\0" /* 8 refs @ 376 */ "10ch\0" /* 4 refs @ 383 */ "6ch\0" /* 4 refs @ 388 */ "VT1708B\0" /* 8 refs @ 392 */ "8ch\0" /* 4 refs @ 400 */ "4ch\0" /* 4 refs @ 404 */ "VT1708S\0" /* 8 refs @ 408 */ "VT1702\0" /* 8 refs @ 416 */ "VT1718S\0" /* 2 refs @ 423 */ "VT2020\0" /* 1 refs @ 431 */ "VT1828S\0" /* 1 refs @ 438 */ "VT1716S\0" /* 2 refs @ 446 */ "VT2002P\0" /* 2 refs @ 454 */ "VT1812\0" /* 1 refs @ 462 */ "VT1818S\0" /* 1 refs @ 469 */ "VT1705\0" /* 1 refs @ 477 */ "AD1884A\0" /* 1 refs @ 484 */ "AD1882\0" /* 1 refs @ 492 */ "AD1883\0" /* 1 refs @ 499 */ "AD1884\0" /* 1 refs @ 506 */ "AD1984A\0" /* 1 refs @ 513 */ "AD1984B\0" /* 1 refs @ 521 */ "AD1981HD\0" /* 1 refs @ 529 */ "AD1983\0" /* 1 refs @ 538 */ "AD1984\0" /* 1 refs @ 545 */ "AD1986A\0" /* 1 refs @ 552 */ "AD1988A\0" /* 1 refs @ 560 */ "AD1988B\0" /* 1 refs @ 568 */ "AD1989A\0" /* 1 refs @ 576 */ "AD1989B\0" /* 1 refs @ 584 */ "CX20549\0" /* 1 refs @ 592 */ "CX20551\0" /* 1 refs @ 600 */ "CX20561\0" /* 1 refs @ 608 */ "CX20582\0" /* 1 refs @ 616 */ "CX20583\0" /* 1 refs @ 624 */ "CX20585\0" /* 1 refs @ 632 */ "CX20671\0" /* 1 refs @ 640 */ "CMI9880\0" /* 1 refs @ 648 */ "Q57\0" /* 1 refs @ 656 */ "G45\0" /* 5 refs @ 660 */ "HDMI/1\0" /* 1 refs @ 664 */ "HDMI/2\0" /* 1 refs @ 671 */ "HDMI/3\0" /* 1 refs @ 678 */ "HDMI/4\0" /* 1 refs @ 685 */ "HDMI/FB\0" /* 1 refs @ 692 */ "STAC9230X\0" /* 1 refs @ 700 */ "STAC9230D\0" /* 1 refs @ 710 */ "STAC9229X\0" /* 1 refs @ 720 */ "STAC9229D\0" /* 1 refs @ 730 */ "STAC9228X\0" /* 1 refs @ 740 */ "STAC9228D\0" /* 1 refs @ 750 */ "STAC9227X\0" /* 1 refs @ 760 */ "STAC9227D\0" /* 1 refs @ 770 */ "STAC9274\0" /* 1 refs @ 780 */ "STAC9274D\0" /* 1 refs @ 789 */ "STAC9273X\0" /* 1 refs @ 799 */ "STAC9273D\0" /* 1 refs @ 809 */ "STAC9272X\0" /* 1 refs @ 819 */ "STAC9272D\0" /* 1 refs @ 829 */ "STAC9271X\0" /* 1 refs @ 839 */ "STAC9271D\0" /* 1 refs @ 849 */ "STAC9274X5NH\0" /* 1 refs @ 859 */ "STAC9274D5NH\0" /* 1 refs @ 872 */ "STAC9202\0" /* 1 refs @ 885 */ "STAC9202D\0" /* 1 refs @ 894 */ "STAC9250\0" /* 1 refs @ 904 */ "STAC9250D\0" /* 2 refs @ 913 */ "STAC9251\0" /* 1 refs @ 923 */ "92HD206X\0" /* 1 refs @ 932 */ "92HD206D\0" /* 1 refs @ 941 */ "CXD9872RD/K\0" /* 1 refs @ 950 */ "STAC9872AK\0" /* 1 refs @ 962 */ "CXD9872AKD\0" /* 1 refs @ 973 */ "STAC9221\0" /* 2 refs @ 984 */ "A1\0" /* 2 refs @ 993 */ "STAC9220D\0" /* 1 refs @ 996 */ "A2\0" /* 2 refs @ 1006 */ "STAC9221D\0" /* 1 refs @ 1009 */ "STAC9200\0" /* 1 refs @ 1019 */ "STAC9200D\0" /* 1 refs @ 1028 */ "STAC9205\0" /* 2 refs @ 1038 */ "STAC9205D\0" /* 1 refs @ 1047 */ "STAC9204\0" /* 1 refs @ 1057 */ "STAC9204D\0" /* 1 refs @ 1066 */ "STAC9255\0" /* 1 refs @ 1076 */ "STAC9255D\0" /* 1 refs @ 1085 */ "STAC9254\0" /* 1 refs @ 1095 */ "STAC9254D\0" /* 1 refs @ 1104 */ "STAC9220\0" /* 2 refs @ 1114 */ "92HD75B3X5\0" /* 1 refs @ 1123 */ "92HD83C1X5\0" /* 1 refs @ 1134 */ "92HD81B1X5\0" /* 1 refs @ 1145 */ "92HD75B2X5\0" /* 1 refs @ 1156 */ "92HD88B3\0" /* 1 refs @ 1167 */ "92HD88B1\0" /* 1 refs @ 1176 */ "92HD88B2\0" /* 1 refs @ 1185 */ "92HD88B4\0" /* 1 refs @ 1194 */ "92HD73D1X5\0" /* 1 refs @ 1203 */ "92HD73C1X5\0" /* 1 refs @ 1214 */ "92HD73E1X5\0" /* 1 refs @ 1225 */ "92HD71B8X\0" /* 2 refs @ 1236 */ "92HD71B7X\0" /* 2 refs @ 1246 */ "92HD71B6X\0" /* 2 refs @ 1256 */ "92HD71B5X\0" /* 2 refs @ 1266 */ "92HD83C1C5\0" /* 1 refs @ 1276 */ "92HD81B1C5\0" /* 1 refs @ 1287 */ "Virtual\0" /* 1 refs @ 1298 */ "HDA\0" /* 1 refs @ 1306 */ }; const int hdaudio_nwords = 161;
66273da68ce50b6c564c3271055cc2f8de4a934c
25c64fb97b7cdb30ec1b6ddd2acf9a755fc33adf
/src/trail.h
ca84203f2f6d0373ca9168bf4f98863b66dc057d
[ "MIT" ]
permissive
arminbiere/kissat
386c1cfadf43562d36fccc47064c95296c9b812f
630d64d4d63c2816fc79a1a0340286b39677e97d
refs/heads/master
2023-09-04T01:39:44.293487
2023-06-24T15:51:43
2023-06-24T15:51:43
267,257,286
350
63
MIT
2022-06-23T12:15:24
2020-05-27T07:57:59
C
UTF-8
C
false
false
425
h
trail.h
#ifndef _trail_h_INLCUDED #define _trail_h_INLCUDED #include "reference.h" #include <stdbool.h> struct kissat; void kissat_flush_trail (struct kissat *); bool kissat_flush_and_mark_reason_clauses (struct kissat *, reference start); void kissat_unmark_reason_clauses (struct kissat *, reference start); void kissat_mark_reason_clauses (struct kissat *, reference start); #endif
b3e2fff3dca4153db08126f9f47b78de3148d2ae
8ae25d84fbcf4c0798e8df1add59326f3849d9ac
/libopencm3/include/libopencm3/usb/audio.h
02cdeabda58e048130df4d433cc5610caa9dd61b
[ "Apache-2.0", "LGPL-2.0-or-later", "LGPL-3.0-or-later" ]
permissive
im-tomu/tomu-quickstart
49eb4bc8ff267d5427f6bcb6a64443476891bb1c
8d57866605207099a1b449de42bc0063a5f3c1c8
refs/heads/master
2023-08-15T23:44:26.343414
2023-08-05T15:16:34
2023-08-05T15:16:34
132,818,206
146
43
Apache-2.0
2023-08-05T15:16:35
2018-05-09T22:13:30
C
UTF-8
C
false
false
6,997
h
audio.h
/** @defgroup usb_audio_defines USB Audio Type Definitions @brief <b>Defined Constants and Types for the USB Audio Type Definitions</b> @ingroup USB_defines @version 1.0.0 @author @htmlonly &copy; @endhtmlonly 2014 Daniel Thompson <daniel@redfelineninja.org.uk> Seb Holzapfel <schnommus@gmail.com> @date 19 April 2014 LGPL License Terms @ref lgpl_license */ /* * This file is part of the libopencm3 project. * * Copyright (C) 2014 Daniel Thompson <daniel@redfelineninja.org.uk> * Copyright (C) 2018 Seb Holzapfel <schnommus@gmail.com> * * This library is free software: you can redistribute it and/or modify * it under the terms of the GNU Lesser General Public License as published by * the Free Software Foundation, either version 3 of the License, or * (at your option) any later version. * * This library is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU Lesser General Public License for more details. * * You should have received a copy of the GNU Lesser General Public License * along with this library. If not, see <http://www.gnu.org/licenses/>. */ /**@{*/ #ifndef LIBOPENCM3_USB_AUDIO_H #define LIBOPENCM3_USB_AUDIO_H /* * Definitions from the USB_AUDIO_ or usb_audio_ namespace come from: * "Universal Serial Bus Class Definitions for Audio Devices, Revision 1.0" */ /* Table A-1: Audio Interface Class Code */ #define USB_CLASS_AUDIO 0x01 /* Table A-2: Audio Interface Subclass Codes */ #define USB_AUDIO_SUBCLASS_UNDEFINED 0x00 #define USB_AUDIO_SUBCLASS_CONTROL 0x01 #define USB_AUDIO_SUBCLASS_AUDIOSTREAMING 0x02 #define USB_AUDIO_SUBCLASS_MIDISTREAMING 0x03 /* Table A-4: Audio Class-specific Descriptor Types */ #define USB_AUDIO_DT_CS_UNDEFINED 0x20 #define USB_AUDIO_DT_CS_DEVICE 0x21 #define USB_AUDIO_DT_CS_CONFIGURATION 0x22 #define USB_AUDIO_DT_CS_STRING 0x23 #define USB_AUDIO_DT_CS_INTERFACE 0x24 #define USB_AUDIO_DT_CS_ENDPOINT 0x25 /* Table A-5: Audio Class-Specific AC Interface Descriptor Subtypes */ #define USB_AUDIO_TYPE_AC_DESCRIPTOR_UNDEFINED 0x00 #define USB_AUDIO_TYPE_HEADER 0x01 #define USB_AUDIO_TYPE_INPUT_TERMINAL 0x02 #define USB_AUDIO_TYPE_OUTPUT_TERMINAL 0x03 #define USB_AUDIO_TYPE_MIXER_UNIT 0x04 #define USB_AUDIO_TYPE_SELECTOR_UNIT 0x05 #define USB_AUDIO_TYPE_FEATURE_UNIT 0x06 #define USB_AUDIO_TYPE_PROCESSING_UNIT 0x07 #define USB_AUDIO_TYPE_EXTENSION_UNIT 0x08 /* Table 4-2: Class-Specific AC Interface Header Descriptor (head) */ struct usb_audio_header_descriptor_head { uint8_t bLength; uint8_t bDescriptorType; uint8_t bDescriptorSubtype; uint16_t bcdADC; uint16_t wTotalLength; uint8_t binCollection; /* ... */ } __attribute__((packed)); /* Table 4-2: Class-Specific AC Interface Header Descriptor (body) */ struct usb_audio_header_descriptor_body { /* ... */ uint8_t baInterfaceNr; } __attribute__((packed)); /* Table 4-3: Input Terminal Descriptor */ struct usb_audio_input_terminal_descriptor { uint8_t bLength; uint8_t bDescriptorType; uint8_t bDescriptorSubtype; uint8_t bTerminalID; uint16_t wTerminalType; uint8_t bAssocTerminal; uint8_t bNrChannels; uint16_t wChannelConfig; uint8_t iChannelNames; uint8_t iTerminal; } __attribute__((packed)); /* Table 4-3: Output Terminal Descriptor */ struct usb_audio_output_terminal_descriptor { uint8_t bLength; uint8_t bDescriptorType; uint8_t bDescriptorSubtype; uint8_t bTerminalID; uint16_t wTerminalType; uint8_t bAssocTerminal; uint8_t bSourceID; uint8_t iTerminal; } __attribute__((packed)); /* Table 4-7: Feature Unit Descriptor (head) */ struct usb_audio_feature_unit_descriptor_head { uint8_t bLength; uint8_t bDescriptorType; uint8_t bDescriptorSubtype; uint8_t bUnitID; uint8_t bSourceID; uint8_t bControlSize; uint16_t bmaControlMaster; /* device can assume 16-bit, given highest * defined bit in spec is bit #9. * (it is thus required bControlSize=2) */ /* ... */ } __attribute__((packed)); /* Table 4-7: Feature Unit Descriptor (body) */ struct usb_audio_feature_unit_descriptor_body { /* ... */ uint16_t bmaControl; /* ... */ } __attribute__((packed)); /* Table 4-7: Feature Unit Descriptor (tail) */ struct usb_audio_feature_unit_descriptor_tail { /* ... */ uint8_t iFeature; } __attribute__((packed)); /* Table 4-7: Feature Unit Descriptor (2-channel) * * This structure is a convenience covering the (common) case where * there are 2 channels associated with the feature unit */ struct usb_audio_feature_unit_descriptor_2ch { struct usb_audio_feature_unit_descriptor_head head; struct usb_audio_feature_unit_descriptor_body channel_control[2]; struct usb_audio_feature_unit_descriptor_tail tail; } __attribute__((packed)); /* Table 4-19: Class-Specific AS Interface Descriptor */ struct usb_audio_stream_interface_descriptor { uint8_t bLength; uint8_t bDescriptorType; uint8_t bDescriptorSubtype; uint8_t bTerminalLink; uint8_t bDelay; uint16_t wFormatTag; } __attribute__((packed)); /* Table 4-20: Standard AS Isochronous Audio Data Endpoint Descriptor */ struct usb_audio_stream_endpoint_descriptor { uint8_t bLength; uint8_t bDescriptorType; uint8_t bEndpointAddress; uint8_t bmAttributes; uint16_t wMaxPacketSize; uint8_t bInterval; uint8_t bRefresh; uint8_t bSynchAddress; } __attribute__((packed)); /* Table 4-21: Class-Specific AS Isochronous Audio Data Endpoint Descriptor */ struct usb_audio_stream_audio_endpoint_descriptor { uint8_t bLength; uint8_t bDescriptorType; uint8_t bDescriptorSubtype; uint8_t bmAttributes; uint8_t bLockDelayUnits; uint16_t wLockDelay; } __attribute__((packed)); /* * Definitions from the USB_AUDIO_FORMAT_ or usb_audio_format_ namespace come from: * "Universal Serial Bus Device Class Definition for Audio Data Formats, Revision 1.0" */ /* Table 2-1: Type I Format Type Descriptor (head) */ struct usb_audio_format_type1_descriptor_head { uint8_t bLength; uint8_t bDescriptorType; uint8_t bDescriptorSubtype; uint8_t bFormatType; uint8_t bNrChannels; uint8_t bSubFrameSize; uint8_t bBitResolution; uint8_t bSamFreqType; /* ... */ } __attribute__((packed)); /* Table 2-2: Continuous Sampling Frequency */ struct usb_audio_format_continuous_sampling_frequency { /* ... */ uint32_t tLowerSamFreq : 24; uint32_t tUpperSamFreq : 24; } __attribute__((packed)); /* Table 2-3: Discrete Number of Sampling Frequencies */ struct usb_audio_format_discrete_sampling_frequency { /* ... */ uint32_t tSamFreq : 24; } __attribute__((packed)); /* Table 2-1: Type I Format Type Descriptor (1 sampling frequency) * * This structure is a convenience covering the (common) case where * only 1 discrete sampling frequency is used */ struct usb_audio_format_type1_descriptor_1freq { struct usb_audio_format_type1_descriptor_head head; struct usb_audio_format_discrete_sampling_frequency freqs[1]; } __attribute__((packed)); #endif /**@}*/
8fb6870b2f7c82ce42e7bf9c77183b2fa6b8a9a6
e65a4dbfbfb0e54e59787ba7741efee12f7687f3
/lang/quickjs/files/patch-qjs.c
5af56c5da80e07c5473928cc8a0a48f45a1ab661
[ "BSD-2-Clause" ]
permissive
freebsd/freebsd-ports
86f2e89d43913412c4f6b2be3e255bc0945eac12
605a2983f245ac63f5420e023e7dce56898ad801
refs/heads/main
2023-08-30T21:46:28.720924
2023-08-30T19:33:44
2023-08-30T19:33:44
1,803,961
916
918
NOASSERTION
2023-09-08T04:06:26
2011-05-26T11:15:35
null
UTF-8
C
false
false
225
c
patch-qjs.c
--- qjs.c.orig 2020-09-06 09:31:51 UTC +++ qjs.c @@ -36,6 +36,8 @@ #include <malloc/malloc.h> #elif defined(__linux__) #include <malloc.h> +#elif defined(__FreeBSD__) +#include <malloc_np.h> #endif #include "cutils.h"
8f24ff8cdc561967b58d49ad2acbc2a839cabca3
4de159aea4b1eb5a527a3011275be57c4bb8d28f
/src/deps/curl/lib/vquic/vquic.h
dc73957aaf64b17c00f14ddb3d4e98c627ef1ece
[ "MIT", "LicenseRef-scancode-free-unknown" ]
permissive
tanis2000/binocle-c
27691ec089a4b75acc451ef6abc4767cb06a6fdd
cd3dbacdd5cb94bfce489b9ee2f07e218c645e29
refs/heads/master
2023-09-04T20:39:34.331172
2023-08-29T13:22:12
2023-08-29T13:22:12
192,515,187
132
8
MIT
2023-05-09T14:39:31
2019-06-18T10:07:33
C
UTF-8
C
false
false
2,159
h
vquic.h
#ifndef HEADER_CURL_VQUIC_QUIC_H #define HEADER_CURL_VQUIC_QUIC_H /*************************************************************************** * _ _ ____ _ * Project ___| | | | _ \| | * / __| | | | |_) | | * | (__| |_| | _ <| |___ * \___|\___/|_| \_\_____| * * Copyright (C) Daniel Stenberg, <daniel@haxx.se>, et al. * * This software is licensed as described in the file COPYING, which * you should have received as part of this distribution. The terms * are also available at https://curl.se/docs/copyright.html. * * You may opt to use, copy, modify, merge, publish, distribute and/or sell * copies of the Software, and permit persons to whom the Software is * furnished to do so, under the terms of the COPYING file. * * This software is distributed on an "AS IS" basis, WITHOUT WARRANTY OF ANY * KIND, either express or implied. * * SPDX-License-Identifier: curl * ***************************************************************************/ #include "curl_setup.h" #ifdef ENABLE_QUIC struct Curl_cfilter; struct Curl_easy; struct connectdata; struct Curl_addrinfo; void Curl_quic_ver(char *p, size_t len); CURLcode Curl_qlogdir(struct Curl_easy *data, unsigned char *scid, size_t scidlen, int *qlogfdp); CURLcode Curl_cf_quic_create(struct Curl_cfilter **pcf, struct Curl_easy *data, struct connectdata *conn, const struct Curl_addrinfo *ai, int transport); bool Curl_conn_is_http3(const struct Curl_easy *data, const struct connectdata *conn, int sockindex); extern struct Curl_cftype Curl_cft_http3; #else /* ENABLE_QUIC */ #define Curl_conn_is_http3(a,b,c) FALSE #endif /* !ENABLE_QUIC */ CURLcode Curl_conn_may_http3(struct Curl_easy *data, const struct connectdata *conn); #endif /* HEADER_CURL_VQUIC_QUIC_H */
82be763082841cf84a2b92a95e5fde9ab62e1e10
d1a6e586e0ad50da88ac3cf176d40bb9facb6bf6
/tests/common/util/mathp.c
52a78aa1835274a004c02ac81f58f3dec4a4788a
[ "Apache-2.0" ]
permissive
OAID/Tengine
025d2521040c863300ee08b0800010587b72192b
c73708ceb4322ae7c438e4d468178b737fa44cd0
refs/heads/tengine-lite
2023-09-03T19:15:08.100078
2023-05-18T06:17:39
2023-05-18T06:17:39
115,765,590
5,323
1,216
Apache-2.0
2023-09-05T06:25:47
2017-12-30T01:21:41
C++
UTF-8
C
false
false
1,821
c
mathp.c
/* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you 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. */ /* * Copyright (c) 2021, OPEN AI LAB * Author: haitao@openailab.com * Revised: lswang@openailab.com */ #include "mathp.h" #include <stdlib.h> int imin(int a, int b) { return a <= b ? a : b; } int imax(int a, int b) { return a >= b ? a : b; } int min_abs(int a, int b) { return imin(abs(a), abs(b)); } int max_abs(int a, int b) { return imax(abs(a), abs(b)); } static int solve_gcd(int large, int small) { int val = large % small; return 0 == val ? small : gcd(small, val); } int gcd(int a, int b) { if (0 == a || 0 == b) return 0; return solve_gcd(max_abs(a, b), min_abs(a, b)); } int lcm(int a, int b) { if (0 == a || 0 == b) return 0; return abs(a * b) / solve_gcd(max_abs(a, b), min_abs(a, b)); } int align(int value, int step) { const int mask = ~(abs(step) - 1); return (value + step) & mask; } void* align_address(void* address, int step) { const size_t mask = ~(abs(step) - 1); return (void*)((size_t)address & mask); }
e00f2f2809f4eb45631818d16276406e225d7fea
aa793c2b787ff591f69147e2cc5e23d6c7b4d77e
/sysinc/limits.h
5efe2fcaff89ca7aea124148e30b87ef6f134fcd
[ "MIT", "BSD-3-Clause", "OFL-1.1", "GPL-2.0-only", "CC0-1.0", "LicenseRef-scancode-public-domain", "BSD-2-Clause" ]
permissive
AsahiLinux/m1n1
8280a8342c407936beabda0f08a700759a636b05
6d0979e71e83f47c5da5fdb8c5e21eb1268d54e8
refs/heads/main
2023-08-22T20:52:30.090704
2023-08-21T14:16:08
2023-08-21T14:16:08
329,707,886
2,966
200
MIT
2023-09-07T10:19:39
2021-01-14T18:59:03
Python
UTF-8
C
false
false
281
h
limits.h
/* SPDX-License-Identifier: MIT */ #ifndef LIMITS_H #define LIMITS_H #define INT_MAX (0x7fffffff) #define UINT_MAX (0xffffffffu) #define LONG_MAX (0x7fffffffffffffffl) #define ULONG_MAX (0xfffffffffffffffful) #define LLONG_MAX LONG_MAX #define ULLONG_MAX ULLONG_MAX #endif
c7a4997e3025afa0c2566692b6550fd17bbc61f9
00c64e0967d197d8c6fc3427954e2d0b2ff13ca0
/clang/test/CodeGen/RISCV/rvv-intrinsics-autogenerated/policy/non-overloaded/viota.c
2b3e756ad64c1b3609a48a59cd59ff7afbffe94f
[ "Apache-2.0", "LLVM-exception", "NCSA", "LicenseRef-scancode-unknown-license-reference" ]
permissive
triSYCL/sycl
893048e80158cf3359c1ad8912da9ccf493faf69
5a95a7136a11b75f01ef839d9229780032bbeecf
refs/heads/sycl/unified/master
2023-08-23T22:06:46.238209
2023-05-24T22:54:31
2023-05-24T22:54:31
178,923,006
103
17
NOASSERTION
2023-09-12T20:03:26
2019-04-01T18:29:01
null
UTF-8
C
false
false
63,066
c
viota.c
// NOTE: Assertions have been autogenerated by utils/update_cc_test_checks.py // REQUIRES: riscv-registered-target // RUN: %clang_cc1 -triple riscv64 -target-feature +v -disable-O0-optnone \ // RUN: -emit-llvm %s -o - | opt -S -passes=mem2reg | \ // RUN: FileCheck --check-prefix=CHECK-RV64 %s #include <riscv_vector.h> // CHECK-RV64-LABEL: @test_viota_m_u8mf8_tu( // CHECK-RV64-NEXT: entry: // CHECK-RV64-NEXT: [[TMP0:%.*]] = call <vscale x 1 x i8> @llvm.riscv.viota.nxv1i8.i64(<vscale x 1 x i8> [[MASKEDOFF:%.*]], <vscale x 1 x i1> [[OP1:%.*]], i64 [[VL:%.*]]) // CHECK-RV64-NEXT: ret <vscale x 1 x i8> [[TMP0]] // vuint8mf8_t test_viota_m_u8mf8_tu(vuint8mf8_t maskedoff, vbool64_t op1, size_t vl) { return viota_m_u8mf8_tu(maskedoff, op1, vl); } // CHECK-RV64-LABEL: @test_viota_m_u8mf4_tu( // CHECK-RV64-NEXT: entry: // CHECK-RV64-NEXT: [[TMP0:%.*]] = call <vscale x 2 x i8> @llvm.riscv.viota.nxv2i8.i64(<vscale x 2 x i8> [[MASKEDOFF:%.*]], <vscale x 2 x i1> [[OP1:%.*]], i64 [[VL:%.*]]) // CHECK-RV64-NEXT: ret <vscale x 2 x i8> [[TMP0]] // vuint8mf4_t test_viota_m_u8mf4_tu(vuint8mf4_t maskedoff, vbool32_t op1, size_t vl) { return viota_m_u8mf4_tu(maskedoff, op1, vl); } // CHECK-RV64-LABEL: @test_viota_m_u8mf2_tu( // CHECK-RV64-NEXT: entry: // CHECK-RV64-NEXT: [[TMP0:%.*]] = call <vscale x 4 x i8> @llvm.riscv.viota.nxv4i8.i64(<vscale x 4 x i8> [[MASKEDOFF:%.*]], <vscale x 4 x i1> [[OP1:%.*]], i64 [[VL:%.*]]) // CHECK-RV64-NEXT: ret <vscale x 4 x i8> [[TMP0]] // vuint8mf2_t test_viota_m_u8mf2_tu(vuint8mf2_t maskedoff, vbool16_t op1, size_t vl) { return viota_m_u8mf2_tu(maskedoff, op1, vl); } // CHECK-RV64-LABEL: @test_viota_m_u8m1_tu( // CHECK-RV64-NEXT: entry: // CHECK-RV64-NEXT: [[TMP0:%.*]] = call <vscale x 8 x i8> @llvm.riscv.viota.nxv8i8.i64(<vscale x 8 x i8> [[MASKEDOFF:%.*]], <vscale x 8 x i1> [[OP1:%.*]], i64 [[VL:%.*]]) // CHECK-RV64-NEXT: ret <vscale x 8 x i8> [[TMP0]] // vuint8m1_t test_viota_m_u8m1_tu(vuint8m1_t maskedoff, vbool8_t op1, size_t vl) { return viota_m_u8m1_tu(maskedoff, op1, vl); } // CHECK-RV64-LABEL: @test_viota_m_u8m2_tu( // CHECK-RV64-NEXT: entry: // CHECK-RV64-NEXT: [[TMP0:%.*]] = call <vscale x 16 x i8> @llvm.riscv.viota.nxv16i8.i64(<vscale x 16 x i8> [[MASKEDOFF:%.*]], <vscale x 16 x i1> [[OP1:%.*]], i64 [[VL:%.*]]) // CHECK-RV64-NEXT: ret <vscale x 16 x i8> [[TMP0]] // vuint8m2_t test_viota_m_u8m2_tu(vuint8m2_t maskedoff, vbool4_t op1, size_t vl) { return viota_m_u8m2_tu(maskedoff, op1, vl); } // CHECK-RV64-LABEL: @test_viota_m_u8m4_tu( // CHECK-RV64-NEXT: entry: // CHECK-RV64-NEXT: [[TMP0:%.*]] = call <vscale x 32 x i8> @llvm.riscv.viota.nxv32i8.i64(<vscale x 32 x i8> [[MASKEDOFF:%.*]], <vscale x 32 x i1> [[OP1:%.*]], i64 [[VL:%.*]]) // CHECK-RV64-NEXT: ret <vscale x 32 x i8> [[TMP0]] // vuint8m4_t test_viota_m_u8m4_tu(vuint8m4_t maskedoff, vbool2_t op1, size_t vl) { return viota_m_u8m4_tu(maskedoff, op1, vl); } // CHECK-RV64-LABEL: @test_viota_m_u8m8_tu( // CHECK-RV64-NEXT: entry: // CHECK-RV64-NEXT: [[TMP0:%.*]] = call <vscale x 64 x i8> @llvm.riscv.viota.nxv64i8.i64(<vscale x 64 x i8> [[MASKEDOFF:%.*]], <vscale x 64 x i1> [[OP1:%.*]], i64 [[VL:%.*]]) // CHECK-RV64-NEXT: ret <vscale x 64 x i8> [[TMP0]] // vuint8m8_t test_viota_m_u8m8_tu(vuint8m8_t maskedoff, vbool1_t op1, size_t vl) { return viota_m_u8m8_tu(maskedoff, op1, vl); } // CHECK-RV64-LABEL: @test_viota_m_u16mf4_tu( // CHECK-RV64-NEXT: entry: // CHECK-RV64-NEXT: [[TMP0:%.*]] = call <vscale x 1 x i16> @llvm.riscv.viota.nxv1i16.i64(<vscale x 1 x i16> [[MASKEDOFF:%.*]], <vscale x 1 x i1> [[OP1:%.*]], i64 [[VL:%.*]]) // CHECK-RV64-NEXT: ret <vscale x 1 x i16> [[TMP0]] // vuint16mf4_t test_viota_m_u16mf4_tu(vuint16mf4_t maskedoff, vbool64_t op1, size_t vl) { return viota_m_u16mf4_tu(maskedoff, op1, vl); } // CHECK-RV64-LABEL: @test_viota_m_u16mf2_tu( // CHECK-RV64-NEXT: entry: // CHECK-RV64-NEXT: [[TMP0:%.*]] = call <vscale x 2 x i16> @llvm.riscv.viota.nxv2i16.i64(<vscale x 2 x i16> [[MASKEDOFF:%.*]], <vscale x 2 x i1> [[OP1:%.*]], i64 [[VL:%.*]]) // CHECK-RV64-NEXT: ret <vscale x 2 x i16> [[TMP0]] // vuint16mf2_t test_viota_m_u16mf2_tu(vuint16mf2_t maskedoff, vbool32_t op1, size_t vl) { return viota_m_u16mf2_tu(maskedoff, op1, vl); } // CHECK-RV64-LABEL: @test_viota_m_u16m1_tu( // CHECK-RV64-NEXT: entry: // CHECK-RV64-NEXT: [[TMP0:%.*]] = call <vscale x 4 x i16> @llvm.riscv.viota.nxv4i16.i64(<vscale x 4 x i16> [[MASKEDOFF:%.*]], <vscale x 4 x i1> [[OP1:%.*]], i64 [[VL:%.*]]) // CHECK-RV64-NEXT: ret <vscale x 4 x i16> [[TMP0]] // vuint16m1_t test_viota_m_u16m1_tu(vuint16m1_t maskedoff, vbool16_t op1, size_t vl) { return viota_m_u16m1_tu(maskedoff, op1, vl); } // CHECK-RV64-LABEL: @test_viota_m_u16m2_tu( // CHECK-RV64-NEXT: entry: // CHECK-RV64-NEXT: [[TMP0:%.*]] = call <vscale x 8 x i16> @llvm.riscv.viota.nxv8i16.i64(<vscale x 8 x i16> [[MASKEDOFF:%.*]], <vscale x 8 x i1> [[OP1:%.*]], i64 [[VL:%.*]]) // CHECK-RV64-NEXT: ret <vscale x 8 x i16> [[TMP0]] // vuint16m2_t test_viota_m_u16m2_tu(vuint16m2_t maskedoff, vbool8_t op1, size_t vl) { return viota_m_u16m2_tu(maskedoff, op1, vl); } // CHECK-RV64-LABEL: @test_viota_m_u16m4_tu( // CHECK-RV64-NEXT: entry: // CHECK-RV64-NEXT: [[TMP0:%.*]] = call <vscale x 16 x i16> @llvm.riscv.viota.nxv16i16.i64(<vscale x 16 x i16> [[MASKEDOFF:%.*]], <vscale x 16 x i1> [[OP1:%.*]], i64 [[VL:%.*]]) // CHECK-RV64-NEXT: ret <vscale x 16 x i16> [[TMP0]] // vuint16m4_t test_viota_m_u16m4_tu(vuint16m4_t maskedoff, vbool4_t op1, size_t vl) { return viota_m_u16m4_tu(maskedoff, op1, vl); } // CHECK-RV64-LABEL: @test_viota_m_u16m8_tu( // CHECK-RV64-NEXT: entry: // CHECK-RV64-NEXT: [[TMP0:%.*]] = call <vscale x 32 x i16> @llvm.riscv.viota.nxv32i16.i64(<vscale x 32 x i16> [[MASKEDOFF:%.*]], <vscale x 32 x i1> [[OP1:%.*]], i64 [[VL:%.*]]) // CHECK-RV64-NEXT: ret <vscale x 32 x i16> [[TMP0]] // vuint16m8_t test_viota_m_u16m8_tu(vuint16m8_t maskedoff, vbool2_t op1, size_t vl) { return viota_m_u16m8_tu(maskedoff, op1, vl); } // CHECK-RV64-LABEL: @test_viota_m_u32mf2_tu( // CHECK-RV64-NEXT: entry: // CHECK-RV64-NEXT: [[TMP0:%.*]] = call <vscale x 1 x i32> @llvm.riscv.viota.nxv1i32.i64(<vscale x 1 x i32> [[MASKEDOFF:%.*]], <vscale x 1 x i1> [[OP1:%.*]], i64 [[VL:%.*]]) // CHECK-RV64-NEXT: ret <vscale x 1 x i32> [[TMP0]] // vuint32mf2_t test_viota_m_u32mf2_tu(vuint32mf2_t maskedoff, vbool64_t op1, size_t vl) { return viota_m_u32mf2_tu(maskedoff, op1, vl); } // CHECK-RV64-LABEL: @test_viota_m_u32m1_tu( // CHECK-RV64-NEXT: entry: // CHECK-RV64-NEXT: [[TMP0:%.*]] = call <vscale x 2 x i32> @llvm.riscv.viota.nxv2i32.i64(<vscale x 2 x i32> [[MASKEDOFF:%.*]], <vscale x 2 x i1> [[OP1:%.*]], i64 [[VL:%.*]]) // CHECK-RV64-NEXT: ret <vscale x 2 x i32> [[TMP0]] // vuint32m1_t test_viota_m_u32m1_tu(vuint32m1_t maskedoff, vbool32_t op1, size_t vl) { return viota_m_u32m1_tu(maskedoff, op1, vl); } // CHECK-RV64-LABEL: @test_viota_m_u32m2_tu( // CHECK-RV64-NEXT: entry: // CHECK-RV64-NEXT: [[TMP0:%.*]] = call <vscale x 4 x i32> @llvm.riscv.viota.nxv4i32.i64(<vscale x 4 x i32> [[MASKEDOFF:%.*]], <vscale x 4 x i1> [[OP1:%.*]], i64 [[VL:%.*]]) // CHECK-RV64-NEXT: ret <vscale x 4 x i32> [[TMP0]] // vuint32m2_t test_viota_m_u32m2_tu(vuint32m2_t maskedoff, vbool16_t op1, size_t vl) { return viota_m_u32m2_tu(maskedoff, op1, vl); } // CHECK-RV64-LABEL: @test_viota_m_u32m4_tu( // CHECK-RV64-NEXT: entry: // CHECK-RV64-NEXT: [[TMP0:%.*]] = call <vscale x 8 x i32> @llvm.riscv.viota.nxv8i32.i64(<vscale x 8 x i32> [[MASKEDOFF:%.*]], <vscale x 8 x i1> [[OP1:%.*]], i64 [[VL:%.*]]) // CHECK-RV64-NEXT: ret <vscale x 8 x i32> [[TMP0]] // vuint32m4_t test_viota_m_u32m4_tu(vuint32m4_t maskedoff, vbool8_t op1, size_t vl) { return viota_m_u32m4_tu(maskedoff, op1, vl); } // CHECK-RV64-LABEL: @test_viota_m_u32m8_tu( // CHECK-RV64-NEXT: entry: // CHECK-RV64-NEXT: [[TMP0:%.*]] = call <vscale x 16 x i32> @llvm.riscv.viota.nxv16i32.i64(<vscale x 16 x i32> [[MASKEDOFF:%.*]], <vscale x 16 x i1> [[OP1:%.*]], i64 [[VL:%.*]]) // CHECK-RV64-NEXT: ret <vscale x 16 x i32> [[TMP0]] // vuint32m8_t test_viota_m_u32m8_tu(vuint32m8_t maskedoff, vbool4_t op1, size_t vl) { return viota_m_u32m8_tu(maskedoff, op1, vl); } // CHECK-RV64-LABEL: @test_viota_m_u64m1_tu( // CHECK-RV64-NEXT: entry: // CHECK-RV64-NEXT: [[TMP0:%.*]] = call <vscale x 1 x i64> @llvm.riscv.viota.nxv1i64.i64(<vscale x 1 x i64> [[MASKEDOFF:%.*]], <vscale x 1 x i1> [[OP1:%.*]], i64 [[VL:%.*]]) // CHECK-RV64-NEXT: ret <vscale x 1 x i64> [[TMP0]] // vuint64m1_t test_viota_m_u64m1_tu(vuint64m1_t maskedoff, vbool64_t op1, size_t vl) { return viota_m_u64m1_tu(maskedoff, op1, vl); } // CHECK-RV64-LABEL: @test_viota_m_u64m2_tu( // CHECK-RV64-NEXT: entry: // CHECK-RV64-NEXT: [[TMP0:%.*]] = call <vscale x 2 x i64> @llvm.riscv.viota.nxv2i64.i64(<vscale x 2 x i64> [[MASKEDOFF:%.*]], <vscale x 2 x i1> [[OP1:%.*]], i64 [[VL:%.*]]) // CHECK-RV64-NEXT: ret <vscale x 2 x i64> [[TMP0]] // vuint64m2_t test_viota_m_u64m2_tu(vuint64m2_t maskedoff, vbool32_t op1, size_t vl) { return viota_m_u64m2_tu(maskedoff, op1, vl); } // CHECK-RV64-LABEL: @test_viota_m_u64m4_tu( // CHECK-RV64-NEXT: entry: // CHECK-RV64-NEXT: [[TMP0:%.*]] = call <vscale x 4 x i64> @llvm.riscv.viota.nxv4i64.i64(<vscale x 4 x i64> [[MASKEDOFF:%.*]], <vscale x 4 x i1> [[OP1:%.*]], i64 [[VL:%.*]]) // CHECK-RV64-NEXT: ret <vscale x 4 x i64> [[TMP0]] // vuint64m4_t test_viota_m_u64m4_tu(vuint64m4_t maskedoff, vbool16_t op1, size_t vl) { return viota_m_u64m4_tu(maskedoff, op1, vl); } // CHECK-RV64-LABEL: @test_viota_m_u64m8_tu( // CHECK-RV64-NEXT: entry: // CHECK-RV64-NEXT: [[TMP0:%.*]] = call <vscale x 8 x i64> @llvm.riscv.viota.nxv8i64.i64(<vscale x 8 x i64> [[MASKEDOFF:%.*]], <vscale x 8 x i1> [[OP1:%.*]], i64 [[VL:%.*]]) // CHECK-RV64-NEXT: ret <vscale x 8 x i64> [[TMP0]] // vuint64m8_t test_viota_m_u64m8_tu(vuint64m8_t maskedoff, vbool8_t op1, size_t vl) { return viota_m_u64m8_tu(maskedoff, op1, vl); } // CHECK-RV64-LABEL: @test_viota_m_u8mf8_ta( // CHECK-RV64-NEXT: entry: // CHECK-RV64-NEXT: [[TMP0:%.*]] = call <vscale x 1 x i8> @llvm.riscv.viota.nxv1i8.i64(<vscale x 1 x i8> poison, <vscale x 1 x i1> [[OP1:%.*]], i64 [[VL:%.*]]) // CHECK-RV64-NEXT: ret <vscale x 1 x i8> [[TMP0]] // vuint8mf8_t test_viota_m_u8mf8_ta(vbool64_t op1, size_t vl) { return viota_m_u8mf8_ta(op1, vl); } // CHECK-RV64-LABEL: @test_viota_m_u8mf4_ta( // CHECK-RV64-NEXT: entry: // CHECK-RV64-NEXT: [[TMP0:%.*]] = call <vscale x 2 x i8> @llvm.riscv.viota.nxv2i8.i64(<vscale x 2 x i8> poison, <vscale x 2 x i1> [[OP1:%.*]], i64 [[VL:%.*]]) // CHECK-RV64-NEXT: ret <vscale x 2 x i8> [[TMP0]] // vuint8mf4_t test_viota_m_u8mf4_ta(vbool32_t op1, size_t vl) { return viota_m_u8mf4_ta(op1, vl); } // CHECK-RV64-LABEL: @test_viota_m_u8mf2_ta( // CHECK-RV64-NEXT: entry: // CHECK-RV64-NEXT: [[TMP0:%.*]] = call <vscale x 4 x i8> @llvm.riscv.viota.nxv4i8.i64(<vscale x 4 x i8> poison, <vscale x 4 x i1> [[OP1:%.*]], i64 [[VL:%.*]]) // CHECK-RV64-NEXT: ret <vscale x 4 x i8> [[TMP0]] // vuint8mf2_t test_viota_m_u8mf2_ta(vbool16_t op1, size_t vl) { return viota_m_u8mf2_ta(op1, vl); } // CHECK-RV64-LABEL: @test_viota_m_u8m1_ta( // CHECK-RV64-NEXT: entry: // CHECK-RV64-NEXT: [[TMP0:%.*]] = call <vscale x 8 x i8> @llvm.riscv.viota.nxv8i8.i64(<vscale x 8 x i8> poison, <vscale x 8 x i1> [[OP1:%.*]], i64 [[VL:%.*]]) // CHECK-RV64-NEXT: ret <vscale x 8 x i8> [[TMP0]] // vuint8m1_t test_viota_m_u8m1_ta(vbool8_t op1, size_t vl) { return viota_m_u8m1_ta(op1, vl); } // CHECK-RV64-LABEL: @test_viota_m_u8m2_ta( // CHECK-RV64-NEXT: entry: // CHECK-RV64-NEXT: [[TMP0:%.*]] = call <vscale x 16 x i8> @llvm.riscv.viota.nxv16i8.i64(<vscale x 16 x i8> poison, <vscale x 16 x i1> [[OP1:%.*]], i64 [[VL:%.*]]) // CHECK-RV64-NEXT: ret <vscale x 16 x i8> [[TMP0]] // vuint8m2_t test_viota_m_u8m2_ta(vbool4_t op1, size_t vl) { return viota_m_u8m2_ta(op1, vl); } // CHECK-RV64-LABEL: @test_viota_m_u8m4_ta( // CHECK-RV64-NEXT: entry: // CHECK-RV64-NEXT: [[TMP0:%.*]] = call <vscale x 32 x i8> @llvm.riscv.viota.nxv32i8.i64(<vscale x 32 x i8> poison, <vscale x 32 x i1> [[OP1:%.*]], i64 [[VL:%.*]]) // CHECK-RV64-NEXT: ret <vscale x 32 x i8> [[TMP0]] // vuint8m4_t test_viota_m_u8m4_ta(vbool2_t op1, size_t vl) { return viota_m_u8m4_ta(op1, vl); } // CHECK-RV64-LABEL: @test_viota_m_u8m8_ta( // CHECK-RV64-NEXT: entry: // CHECK-RV64-NEXT: [[TMP0:%.*]] = call <vscale x 64 x i8> @llvm.riscv.viota.nxv64i8.i64(<vscale x 64 x i8> poison, <vscale x 64 x i1> [[OP1:%.*]], i64 [[VL:%.*]]) // CHECK-RV64-NEXT: ret <vscale x 64 x i8> [[TMP0]] // vuint8m8_t test_viota_m_u8m8_ta(vbool1_t op1, size_t vl) { return viota_m_u8m8_ta(op1, vl); } // CHECK-RV64-LABEL: @test_viota_m_u16mf4_ta( // CHECK-RV64-NEXT: entry: // CHECK-RV64-NEXT: [[TMP0:%.*]] = call <vscale x 1 x i16> @llvm.riscv.viota.nxv1i16.i64(<vscale x 1 x i16> poison, <vscale x 1 x i1> [[OP1:%.*]], i64 [[VL:%.*]]) // CHECK-RV64-NEXT: ret <vscale x 1 x i16> [[TMP0]] // vuint16mf4_t test_viota_m_u16mf4_ta(vbool64_t op1, size_t vl) { return viota_m_u16mf4_ta(op1, vl); } // CHECK-RV64-LABEL: @test_viota_m_u16mf2_ta( // CHECK-RV64-NEXT: entry: // CHECK-RV64-NEXT: [[TMP0:%.*]] = call <vscale x 2 x i16> @llvm.riscv.viota.nxv2i16.i64(<vscale x 2 x i16> poison, <vscale x 2 x i1> [[OP1:%.*]], i64 [[VL:%.*]]) // CHECK-RV64-NEXT: ret <vscale x 2 x i16> [[TMP0]] // vuint16mf2_t test_viota_m_u16mf2_ta(vbool32_t op1, size_t vl) { return viota_m_u16mf2_ta(op1, vl); } // CHECK-RV64-LABEL: @test_viota_m_u16m1_ta( // CHECK-RV64-NEXT: entry: // CHECK-RV64-NEXT: [[TMP0:%.*]] = call <vscale x 4 x i16> @llvm.riscv.viota.nxv4i16.i64(<vscale x 4 x i16> poison, <vscale x 4 x i1> [[OP1:%.*]], i64 [[VL:%.*]]) // CHECK-RV64-NEXT: ret <vscale x 4 x i16> [[TMP0]] // vuint16m1_t test_viota_m_u16m1_ta(vbool16_t op1, size_t vl) { return viota_m_u16m1_ta(op1, vl); } // CHECK-RV64-LABEL: @test_viota_m_u16m2_ta( // CHECK-RV64-NEXT: entry: // CHECK-RV64-NEXT: [[TMP0:%.*]] = call <vscale x 8 x i16> @llvm.riscv.viota.nxv8i16.i64(<vscale x 8 x i16> poison, <vscale x 8 x i1> [[OP1:%.*]], i64 [[VL:%.*]]) // CHECK-RV64-NEXT: ret <vscale x 8 x i16> [[TMP0]] // vuint16m2_t test_viota_m_u16m2_ta(vbool8_t op1, size_t vl) { return viota_m_u16m2_ta(op1, vl); } // CHECK-RV64-LABEL: @test_viota_m_u16m4_ta( // CHECK-RV64-NEXT: entry: // CHECK-RV64-NEXT: [[TMP0:%.*]] = call <vscale x 16 x i16> @llvm.riscv.viota.nxv16i16.i64(<vscale x 16 x i16> poison, <vscale x 16 x i1> [[OP1:%.*]], i64 [[VL:%.*]]) // CHECK-RV64-NEXT: ret <vscale x 16 x i16> [[TMP0]] // vuint16m4_t test_viota_m_u16m4_ta(vbool4_t op1, size_t vl) { return viota_m_u16m4_ta(op1, vl); } // CHECK-RV64-LABEL: @test_viota_m_u16m8_ta( // CHECK-RV64-NEXT: entry: // CHECK-RV64-NEXT: [[TMP0:%.*]] = call <vscale x 32 x i16> @llvm.riscv.viota.nxv32i16.i64(<vscale x 32 x i16> poison, <vscale x 32 x i1> [[OP1:%.*]], i64 [[VL:%.*]]) // CHECK-RV64-NEXT: ret <vscale x 32 x i16> [[TMP0]] // vuint16m8_t test_viota_m_u16m8_ta(vbool2_t op1, size_t vl) { return viota_m_u16m8_ta(op1, vl); } // CHECK-RV64-LABEL: @test_viota_m_u32mf2_ta( // CHECK-RV64-NEXT: entry: // CHECK-RV64-NEXT: [[TMP0:%.*]] = call <vscale x 1 x i32> @llvm.riscv.viota.nxv1i32.i64(<vscale x 1 x i32> poison, <vscale x 1 x i1> [[OP1:%.*]], i64 [[VL:%.*]]) // CHECK-RV64-NEXT: ret <vscale x 1 x i32> [[TMP0]] // vuint32mf2_t test_viota_m_u32mf2_ta(vbool64_t op1, size_t vl) { return viota_m_u32mf2_ta(op1, vl); } // CHECK-RV64-LABEL: @test_viota_m_u32m1_ta( // CHECK-RV64-NEXT: entry: // CHECK-RV64-NEXT: [[TMP0:%.*]] = call <vscale x 2 x i32> @llvm.riscv.viota.nxv2i32.i64(<vscale x 2 x i32> poison, <vscale x 2 x i1> [[OP1:%.*]], i64 [[VL:%.*]]) // CHECK-RV64-NEXT: ret <vscale x 2 x i32> [[TMP0]] // vuint32m1_t test_viota_m_u32m1_ta(vbool32_t op1, size_t vl) { return viota_m_u32m1_ta(op1, vl); } // CHECK-RV64-LABEL: @test_viota_m_u32m2_ta( // CHECK-RV64-NEXT: entry: // CHECK-RV64-NEXT: [[TMP0:%.*]] = call <vscale x 4 x i32> @llvm.riscv.viota.nxv4i32.i64(<vscale x 4 x i32> poison, <vscale x 4 x i1> [[OP1:%.*]], i64 [[VL:%.*]]) // CHECK-RV64-NEXT: ret <vscale x 4 x i32> [[TMP0]] // vuint32m2_t test_viota_m_u32m2_ta(vbool16_t op1, size_t vl) { return viota_m_u32m2_ta(op1, vl); } // CHECK-RV64-LABEL: @test_viota_m_u32m4_ta( // CHECK-RV64-NEXT: entry: // CHECK-RV64-NEXT: [[TMP0:%.*]] = call <vscale x 8 x i32> @llvm.riscv.viota.nxv8i32.i64(<vscale x 8 x i32> poison, <vscale x 8 x i1> [[OP1:%.*]], i64 [[VL:%.*]]) // CHECK-RV64-NEXT: ret <vscale x 8 x i32> [[TMP0]] // vuint32m4_t test_viota_m_u32m4_ta(vbool8_t op1, size_t vl) { return viota_m_u32m4_ta(op1, vl); } // CHECK-RV64-LABEL: @test_viota_m_u32m8_ta( // CHECK-RV64-NEXT: entry: // CHECK-RV64-NEXT: [[TMP0:%.*]] = call <vscale x 16 x i32> @llvm.riscv.viota.nxv16i32.i64(<vscale x 16 x i32> poison, <vscale x 16 x i1> [[OP1:%.*]], i64 [[VL:%.*]]) // CHECK-RV64-NEXT: ret <vscale x 16 x i32> [[TMP0]] // vuint32m8_t test_viota_m_u32m8_ta(vbool4_t op1, size_t vl) { return viota_m_u32m8_ta(op1, vl); } // CHECK-RV64-LABEL: @test_viota_m_u64m1_ta( // CHECK-RV64-NEXT: entry: // CHECK-RV64-NEXT: [[TMP0:%.*]] = call <vscale x 1 x i64> @llvm.riscv.viota.nxv1i64.i64(<vscale x 1 x i64> poison, <vscale x 1 x i1> [[OP1:%.*]], i64 [[VL:%.*]]) // CHECK-RV64-NEXT: ret <vscale x 1 x i64> [[TMP0]] // vuint64m1_t test_viota_m_u64m1_ta(vbool64_t op1, size_t vl) { return viota_m_u64m1_ta(op1, vl); } // CHECK-RV64-LABEL: @test_viota_m_u64m2_ta( // CHECK-RV64-NEXT: entry: // CHECK-RV64-NEXT: [[TMP0:%.*]] = call <vscale x 2 x i64> @llvm.riscv.viota.nxv2i64.i64(<vscale x 2 x i64> poison, <vscale x 2 x i1> [[OP1:%.*]], i64 [[VL:%.*]]) // CHECK-RV64-NEXT: ret <vscale x 2 x i64> [[TMP0]] // vuint64m2_t test_viota_m_u64m2_ta(vbool32_t op1, size_t vl) { return viota_m_u64m2_ta(op1, vl); } // CHECK-RV64-LABEL: @test_viota_m_u64m4_ta( // CHECK-RV64-NEXT: entry: // CHECK-RV64-NEXT: [[TMP0:%.*]] = call <vscale x 4 x i64> @llvm.riscv.viota.nxv4i64.i64(<vscale x 4 x i64> poison, <vscale x 4 x i1> [[OP1:%.*]], i64 [[VL:%.*]]) // CHECK-RV64-NEXT: ret <vscale x 4 x i64> [[TMP0]] // vuint64m4_t test_viota_m_u64m4_ta(vbool16_t op1, size_t vl) { return viota_m_u64m4_ta(op1, vl); } // CHECK-RV64-LABEL: @test_viota_m_u64m8_ta( // CHECK-RV64-NEXT: entry: // CHECK-RV64-NEXT: [[TMP0:%.*]] = call <vscale x 8 x i64> @llvm.riscv.viota.nxv8i64.i64(<vscale x 8 x i64> poison, <vscale x 8 x i1> [[OP1:%.*]], i64 [[VL:%.*]]) // CHECK-RV64-NEXT: ret <vscale x 8 x i64> [[TMP0]] // vuint64m8_t test_viota_m_u64m8_ta(vbool8_t op1, size_t vl) { return viota_m_u64m8_ta(op1, vl); } // CHECK-RV64-LABEL: @test_viota_m_u8mf8_tuma( // CHECK-RV64-NEXT: entry: // CHECK-RV64-NEXT: [[TMP0:%.*]] = call <vscale x 1 x i8> @llvm.riscv.viota.mask.nxv1i8.i64(<vscale x 1 x i8> [[MASKEDOFF:%.*]], <vscale x 1 x i1> [[OP1:%.*]], <vscale x 1 x i1> [[MASK:%.*]], i64 [[VL:%.*]], i64 2) // CHECK-RV64-NEXT: ret <vscale x 1 x i8> [[TMP0]] // vuint8mf8_t test_viota_m_u8mf8_tuma(vbool64_t mask, vuint8mf8_t maskedoff, vbool64_t op1, size_t vl) { return viota_m_u8mf8_tuma(mask, maskedoff, op1, vl); } // CHECK-RV64-LABEL: @test_viota_m_u8mf4_tuma( // CHECK-RV64-NEXT: entry: // CHECK-RV64-NEXT: [[TMP0:%.*]] = call <vscale x 2 x i8> @llvm.riscv.viota.mask.nxv2i8.i64(<vscale x 2 x i8> [[MASKEDOFF:%.*]], <vscale x 2 x i1> [[OP1:%.*]], <vscale x 2 x i1> [[MASK:%.*]], i64 [[VL:%.*]], i64 2) // CHECK-RV64-NEXT: ret <vscale x 2 x i8> [[TMP0]] // vuint8mf4_t test_viota_m_u8mf4_tuma(vbool32_t mask, vuint8mf4_t maskedoff, vbool32_t op1, size_t vl) { return viota_m_u8mf4_tuma(mask, maskedoff, op1, vl); } // CHECK-RV64-LABEL: @test_viota_m_u8mf2_tuma( // CHECK-RV64-NEXT: entry: // CHECK-RV64-NEXT: [[TMP0:%.*]] = call <vscale x 4 x i8> @llvm.riscv.viota.mask.nxv4i8.i64(<vscale x 4 x i8> [[MASKEDOFF:%.*]], <vscale x 4 x i1> [[OP1:%.*]], <vscale x 4 x i1> [[MASK:%.*]], i64 [[VL:%.*]], i64 2) // CHECK-RV64-NEXT: ret <vscale x 4 x i8> [[TMP0]] // vuint8mf2_t test_viota_m_u8mf2_tuma(vbool16_t mask, vuint8mf2_t maskedoff, vbool16_t op1, size_t vl) { return viota_m_u8mf2_tuma(mask, maskedoff, op1, vl); } // CHECK-RV64-LABEL: @test_viota_m_u8m1_tuma( // CHECK-RV64-NEXT: entry: // CHECK-RV64-NEXT: [[TMP0:%.*]] = call <vscale x 8 x i8> @llvm.riscv.viota.mask.nxv8i8.i64(<vscale x 8 x i8> [[MASKEDOFF:%.*]], <vscale x 8 x i1> [[OP1:%.*]], <vscale x 8 x i1> [[MASK:%.*]], i64 [[VL:%.*]], i64 2) // CHECK-RV64-NEXT: ret <vscale x 8 x i8> [[TMP0]] // vuint8m1_t test_viota_m_u8m1_tuma(vbool8_t mask, vuint8m1_t maskedoff, vbool8_t op1, size_t vl) { return viota_m_u8m1_tuma(mask, maskedoff, op1, vl); } // CHECK-RV64-LABEL: @test_viota_m_u8m2_tuma( // CHECK-RV64-NEXT: entry: // CHECK-RV64-NEXT: [[TMP0:%.*]] = call <vscale x 16 x i8> @llvm.riscv.viota.mask.nxv16i8.i64(<vscale x 16 x i8> [[MASKEDOFF:%.*]], <vscale x 16 x i1> [[OP1:%.*]], <vscale x 16 x i1> [[MASK:%.*]], i64 [[VL:%.*]], i64 2) // CHECK-RV64-NEXT: ret <vscale x 16 x i8> [[TMP0]] // vuint8m2_t test_viota_m_u8m2_tuma(vbool4_t mask, vuint8m2_t maskedoff, vbool4_t op1, size_t vl) { return viota_m_u8m2_tuma(mask, maskedoff, op1, vl); } // CHECK-RV64-LABEL: @test_viota_m_u8m4_tuma( // CHECK-RV64-NEXT: entry: // CHECK-RV64-NEXT: [[TMP0:%.*]] = call <vscale x 32 x i8> @llvm.riscv.viota.mask.nxv32i8.i64(<vscale x 32 x i8> [[MASKEDOFF:%.*]], <vscale x 32 x i1> [[OP1:%.*]], <vscale x 32 x i1> [[MASK:%.*]], i64 [[VL:%.*]], i64 2) // CHECK-RV64-NEXT: ret <vscale x 32 x i8> [[TMP0]] // vuint8m4_t test_viota_m_u8m4_tuma(vbool2_t mask, vuint8m4_t maskedoff, vbool2_t op1, size_t vl) { return viota_m_u8m4_tuma(mask, maskedoff, op1, vl); } // CHECK-RV64-LABEL: @test_viota_m_u8m8_tuma( // CHECK-RV64-NEXT: entry: // CHECK-RV64-NEXT: [[TMP0:%.*]] = call <vscale x 64 x i8> @llvm.riscv.viota.mask.nxv64i8.i64(<vscale x 64 x i8> [[MASKEDOFF:%.*]], <vscale x 64 x i1> [[OP1:%.*]], <vscale x 64 x i1> [[MASK:%.*]], i64 [[VL:%.*]], i64 2) // CHECK-RV64-NEXT: ret <vscale x 64 x i8> [[TMP0]] // vuint8m8_t test_viota_m_u8m8_tuma(vbool1_t mask, vuint8m8_t maskedoff, vbool1_t op1, size_t vl) { return viota_m_u8m8_tuma(mask, maskedoff, op1, vl); } // CHECK-RV64-LABEL: @test_viota_m_u16mf4_tuma( // CHECK-RV64-NEXT: entry: // CHECK-RV64-NEXT: [[TMP0:%.*]] = call <vscale x 1 x i16> @llvm.riscv.viota.mask.nxv1i16.i64(<vscale x 1 x i16> [[MASKEDOFF:%.*]], <vscale x 1 x i1> [[OP1:%.*]], <vscale x 1 x i1> [[MASK:%.*]], i64 [[VL:%.*]], i64 2) // CHECK-RV64-NEXT: ret <vscale x 1 x i16> [[TMP0]] // vuint16mf4_t test_viota_m_u16mf4_tuma(vbool64_t mask, vuint16mf4_t maskedoff, vbool64_t op1, size_t vl) { return viota_m_u16mf4_tuma(mask, maskedoff, op1, vl); } // CHECK-RV64-LABEL: @test_viota_m_u16mf2_tuma( // CHECK-RV64-NEXT: entry: // CHECK-RV64-NEXT: [[TMP0:%.*]] = call <vscale x 2 x i16> @llvm.riscv.viota.mask.nxv2i16.i64(<vscale x 2 x i16> [[MASKEDOFF:%.*]], <vscale x 2 x i1> [[OP1:%.*]], <vscale x 2 x i1> [[MASK:%.*]], i64 [[VL:%.*]], i64 2) // CHECK-RV64-NEXT: ret <vscale x 2 x i16> [[TMP0]] // vuint16mf2_t test_viota_m_u16mf2_tuma(vbool32_t mask, vuint16mf2_t maskedoff, vbool32_t op1, size_t vl) { return viota_m_u16mf2_tuma(mask, maskedoff, op1, vl); } // CHECK-RV64-LABEL: @test_viota_m_u16m1_tuma( // CHECK-RV64-NEXT: entry: // CHECK-RV64-NEXT: [[TMP0:%.*]] = call <vscale x 4 x i16> @llvm.riscv.viota.mask.nxv4i16.i64(<vscale x 4 x i16> [[MASKEDOFF:%.*]], <vscale x 4 x i1> [[OP1:%.*]], <vscale x 4 x i1> [[MASK:%.*]], i64 [[VL:%.*]], i64 2) // CHECK-RV64-NEXT: ret <vscale x 4 x i16> [[TMP0]] // vuint16m1_t test_viota_m_u16m1_tuma(vbool16_t mask, vuint16m1_t maskedoff, vbool16_t op1, size_t vl) { return viota_m_u16m1_tuma(mask, maskedoff, op1, vl); } // CHECK-RV64-LABEL: @test_viota_m_u16m2_tuma( // CHECK-RV64-NEXT: entry: // CHECK-RV64-NEXT: [[TMP0:%.*]] = call <vscale x 8 x i16> @llvm.riscv.viota.mask.nxv8i16.i64(<vscale x 8 x i16> [[MASKEDOFF:%.*]], <vscale x 8 x i1> [[OP1:%.*]], <vscale x 8 x i1> [[MASK:%.*]], i64 [[VL:%.*]], i64 2) // CHECK-RV64-NEXT: ret <vscale x 8 x i16> [[TMP0]] // vuint16m2_t test_viota_m_u16m2_tuma(vbool8_t mask, vuint16m2_t maskedoff, vbool8_t op1, size_t vl) { return viota_m_u16m2_tuma(mask, maskedoff, op1, vl); } // CHECK-RV64-LABEL: @test_viota_m_u16m4_tuma( // CHECK-RV64-NEXT: entry: // CHECK-RV64-NEXT: [[TMP0:%.*]] = call <vscale x 16 x i16> @llvm.riscv.viota.mask.nxv16i16.i64(<vscale x 16 x i16> [[MASKEDOFF:%.*]], <vscale x 16 x i1> [[OP1:%.*]], <vscale x 16 x i1> [[MASK:%.*]], i64 [[VL:%.*]], i64 2) // CHECK-RV64-NEXT: ret <vscale x 16 x i16> [[TMP0]] // vuint16m4_t test_viota_m_u16m4_tuma(vbool4_t mask, vuint16m4_t maskedoff, vbool4_t op1, size_t vl) { return viota_m_u16m4_tuma(mask, maskedoff, op1, vl); } // CHECK-RV64-LABEL: @test_viota_m_u16m8_tuma( // CHECK-RV64-NEXT: entry: // CHECK-RV64-NEXT: [[TMP0:%.*]] = call <vscale x 32 x i16> @llvm.riscv.viota.mask.nxv32i16.i64(<vscale x 32 x i16> [[MASKEDOFF:%.*]], <vscale x 32 x i1> [[OP1:%.*]], <vscale x 32 x i1> [[MASK:%.*]], i64 [[VL:%.*]], i64 2) // CHECK-RV64-NEXT: ret <vscale x 32 x i16> [[TMP0]] // vuint16m8_t test_viota_m_u16m8_tuma(vbool2_t mask, vuint16m8_t maskedoff, vbool2_t op1, size_t vl) { return viota_m_u16m8_tuma(mask, maskedoff, op1, vl); } // CHECK-RV64-LABEL: @test_viota_m_u32mf2_tuma( // CHECK-RV64-NEXT: entry: // CHECK-RV64-NEXT: [[TMP0:%.*]] = call <vscale x 1 x i32> @llvm.riscv.viota.mask.nxv1i32.i64(<vscale x 1 x i32> [[MASKEDOFF:%.*]], <vscale x 1 x i1> [[OP1:%.*]], <vscale x 1 x i1> [[MASK:%.*]], i64 [[VL:%.*]], i64 2) // CHECK-RV64-NEXT: ret <vscale x 1 x i32> [[TMP0]] // vuint32mf2_t test_viota_m_u32mf2_tuma(vbool64_t mask, vuint32mf2_t maskedoff, vbool64_t op1, size_t vl) { return viota_m_u32mf2_tuma(mask, maskedoff, op1, vl); } // CHECK-RV64-LABEL: @test_viota_m_u32m1_tuma( // CHECK-RV64-NEXT: entry: // CHECK-RV64-NEXT: [[TMP0:%.*]] = call <vscale x 2 x i32> @llvm.riscv.viota.mask.nxv2i32.i64(<vscale x 2 x i32> [[MASKEDOFF:%.*]], <vscale x 2 x i1> [[OP1:%.*]], <vscale x 2 x i1> [[MASK:%.*]], i64 [[VL:%.*]], i64 2) // CHECK-RV64-NEXT: ret <vscale x 2 x i32> [[TMP0]] // vuint32m1_t test_viota_m_u32m1_tuma(vbool32_t mask, vuint32m1_t maskedoff, vbool32_t op1, size_t vl) { return viota_m_u32m1_tuma(mask, maskedoff, op1, vl); } // CHECK-RV64-LABEL: @test_viota_m_u32m2_tuma( // CHECK-RV64-NEXT: entry: // CHECK-RV64-NEXT: [[TMP0:%.*]] = call <vscale x 4 x i32> @llvm.riscv.viota.mask.nxv4i32.i64(<vscale x 4 x i32> [[MASKEDOFF:%.*]], <vscale x 4 x i1> [[OP1:%.*]], <vscale x 4 x i1> [[MASK:%.*]], i64 [[VL:%.*]], i64 2) // CHECK-RV64-NEXT: ret <vscale x 4 x i32> [[TMP0]] // vuint32m2_t test_viota_m_u32m2_tuma(vbool16_t mask, vuint32m2_t maskedoff, vbool16_t op1, size_t vl) { return viota_m_u32m2_tuma(mask, maskedoff, op1, vl); } // CHECK-RV64-LABEL: @test_viota_m_u32m4_tuma( // CHECK-RV64-NEXT: entry: // CHECK-RV64-NEXT: [[TMP0:%.*]] = call <vscale x 8 x i32> @llvm.riscv.viota.mask.nxv8i32.i64(<vscale x 8 x i32> [[MASKEDOFF:%.*]], <vscale x 8 x i1> [[OP1:%.*]], <vscale x 8 x i1> [[MASK:%.*]], i64 [[VL:%.*]], i64 2) // CHECK-RV64-NEXT: ret <vscale x 8 x i32> [[TMP0]] // vuint32m4_t test_viota_m_u32m4_tuma(vbool8_t mask, vuint32m4_t maskedoff, vbool8_t op1, size_t vl) { return viota_m_u32m4_tuma(mask, maskedoff, op1, vl); } // CHECK-RV64-LABEL: @test_viota_m_u32m8_tuma( // CHECK-RV64-NEXT: entry: // CHECK-RV64-NEXT: [[TMP0:%.*]] = call <vscale x 16 x i32> @llvm.riscv.viota.mask.nxv16i32.i64(<vscale x 16 x i32> [[MASKEDOFF:%.*]], <vscale x 16 x i1> [[OP1:%.*]], <vscale x 16 x i1> [[MASK:%.*]], i64 [[VL:%.*]], i64 2) // CHECK-RV64-NEXT: ret <vscale x 16 x i32> [[TMP0]] // vuint32m8_t test_viota_m_u32m8_tuma(vbool4_t mask, vuint32m8_t maskedoff, vbool4_t op1, size_t vl) { return viota_m_u32m8_tuma(mask, maskedoff, op1, vl); } // CHECK-RV64-LABEL: @test_viota_m_u64m1_tuma( // CHECK-RV64-NEXT: entry: // CHECK-RV64-NEXT: [[TMP0:%.*]] = call <vscale x 1 x i64> @llvm.riscv.viota.mask.nxv1i64.i64(<vscale x 1 x i64> [[MASKEDOFF:%.*]], <vscale x 1 x i1> [[OP1:%.*]], <vscale x 1 x i1> [[MASK:%.*]], i64 [[VL:%.*]], i64 2) // CHECK-RV64-NEXT: ret <vscale x 1 x i64> [[TMP0]] // vuint64m1_t test_viota_m_u64m1_tuma(vbool64_t mask, vuint64m1_t maskedoff, vbool64_t op1, size_t vl) { return viota_m_u64m1_tuma(mask, maskedoff, op1, vl); } // CHECK-RV64-LABEL: @test_viota_m_u64m2_tuma( // CHECK-RV64-NEXT: entry: // CHECK-RV64-NEXT: [[TMP0:%.*]] = call <vscale x 2 x i64> @llvm.riscv.viota.mask.nxv2i64.i64(<vscale x 2 x i64> [[MASKEDOFF:%.*]], <vscale x 2 x i1> [[OP1:%.*]], <vscale x 2 x i1> [[MASK:%.*]], i64 [[VL:%.*]], i64 2) // CHECK-RV64-NEXT: ret <vscale x 2 x i64> [[TMP0]] // vuint64m2_t test_viota_m_u64m2_tuma(vbool32_t mask, vuint64m2_t maskedoff, vbool32_t op1, size_t vl) { return viota_m_u64m2_tuma(mask, maskedoff, op1, vl); } // CHECK-RV64-LABEL: @test_viota_m_u64m4_tuma( // CHECK-RV64-NEXT: entry: // CHECK-RV64-NEXT: [[TMP0:%.*]] = call <vscale x 4 x i64> @llvm.riscv.viota.mask.nxv4i64.i64(<vscale x 4 x i64> [[MASKEDOFF:%.*]], <vscale x 4 x i1> [[OP1:%.*]], <vscale x 4 x i1> [[MASK:%.*]], i64 [[VL:%.*]], i64 2) // CHECK-RV64-NEXT: ret <vscale x 4 x i64> [[TMP0]] // vuint64m4_t test_viota_m_u64m4_tuma(vbool16_t mask, vuint64m4_t maskedoff, vbool16_t op1, size_t vl) { return viota_m_u64m4_tuma(mask, maskedoff, op1, vl); } // CHECK-RV64-LABEL: @test_viota_m_u64m8_tuma( // CHECK-RV64-NEXT: entry: // CHECK-RV64-NEXT: [[TMP0:%.*]] = call <vscale x 8 x i64> @llvm.riscv.viota.mask.nxv8i64.i64(<vscale x 8 x i64> [[MASKEDOFF:%.*]], <vscale x 8 x i1> [[OP1:%.*]], <vscale x 8 x i1> [[MASK:%.*]], i64 [[VL:%.*]], i64 2) // CHECK-RV64-NEXT: ret <vscale x 8 x i64> [[TMP0]] // vuint64m8_t test_viota_m_u64m8_tuma(vbool8_t mask, vuint64m8_t maskedoff, vbool8_t op1, size_t vl) { return viota_m_u64m8_tuma(mask, maskedoff, op1, vl); } // CHECK-RV64-LABEL: @test_viota_m_u8mf8_tumu( // CHECK-RV64-NEXT: entry: // CHECK-RV64-NEXT: [[TMP0:%.*]] = call <vscale x 1 x i8> @llvm.riscv.viota.mask.nxv1i8.i64(<vscale x 1 x i8> [[MASKEDOFF:%.*]], <vscale x 1 x i1> [[OP1:%.*]], <vscale x 1 x i1> [[MASK:%.*]], i64 [[VL:%.*]], i64 0) // CHECK-RV64-NEXT: ret <vscale x 1 x i8> [[TMP0]] // vuint8mf8_t test_viota_m_u8mf8_tumu(vbool64_t mask, vuint8mf8_t maskedoff, vbool64_t op1, size_t vl) { return viota_m_u8mf8_tumu(mask, maskedoff, op1, vl); } // CHECK-RV64-LABEL: @test_viota_m_u8mf4_tumu( // CHECK-RV64-NEXT: entry: // CHECK-RV64-NEXT: [[TMP0:%.*]] = call <vscale x 2 x i8> @llvm.riscv.viota.mask.nxv2i8.i64(<vscale x 2 x i8> [[MASKEDOFF:%.*]], <vscale x 2 x i1> [[OP1:%.*]], <vscale x 2 x i1> [[MASK:%.*]], i64 [[VL:%.*]], i64 0) // CHECK-RV64-NEXT: ret <vscale x 2 x i8> [[TMP0]] // vuint8mf4_t test_viota_m_u8mf4_tumu(vbool32_t mask, vuint8mf4_t maskedoff, vbool32_t op1, size_t vl) { return viota_m_u8mf4_tumu(mask, maskedoff, op1, vl); } // CHECK-RV64-LABEL: @test_viota_m_u8mf2_tumu( // CHECK-RV64-NEXT: entry: // CHECK-RV64-NEXT: [[TMP0:%.*]] = call <vscale x 4 x i8> @llvm.riscv.viota.mask.nxv4i8.i64(<vscale x 4 x i8> [[MASKEDOFF:%.*]], <vscale x 4 x i1> [[OP1:%.*]], <vscale x 4 x i1> [[MASK:%.*]], i64 [[VL:%.*]], i64 0) // CHECK-RV64-NEXT: ret <vscale x 4 x i8> [[TMP0]] // vuint8mf2_t test_viota_m_u8mf2_tumu(vbool16_t mask, vuint8mf2_t maskedoff, vbool16_t op1, size_t vl) { return viota_m_u8mf2_tumu(mask, maskedoff, op1, vl); } // CHECK-RV64-LABEL: @test_viota_m_u8m1_tumu( // CHECK-RV64-NEXT: entry: // CHECK-RV64-NEXT: [[TMP0:%.*]] = call <vscale x 8 x i8> @llvm.riscv.viota.mask.nxv8i8.i64(<vscale x 8 x i8> [[MASKEDOFF:%.*]], <vscale x 8 x i1> [[OP1:%.*]], <vscale x 8 x i1> [[MASK:%.*]], i64 [[VL:%.*]], i64 0) // CHECK-RV64-NEXT: ret <vscale x 8 x i8> [[TMP0]] // vuint8m1_t test_viota_m_u8m1_tumu(vbool8_t mask, vuint8m1_t maskedoff, vbool8_t op1, size_t vl) { return viota_m_u8m1_tumu(mask, maskedoff, op1, vl); } // CHECK-RV64-LABEL: @test_viota_m_u8m2_tumu( // CHECK-RV64-NEXT: entry: // CHECK-RV64-NEXT: [[TMP0:%.*]] = call <vscale x 16 x i8> @llvm.riscv.viota.mask.nxv16i8.i64(<vscale x 16 x i8> [[MASKEDOFF:%.*]], <vscale x 16 x i1> [[OP1:%.*]], <vscale x 16 x i1> [[MASK:%.*]], i64 [[VL:%.*]], i64 0) // CHECK-RV64-NEXT: ret <vscale x 16 x i8> [[TMP0]] // vuint8m2_t test_viota_m_u8m2_tumu(vbool4_t mask, vuint8m2_t maskedoff, vbool4_t op1, size_t vl) { return viota_m_u8m2_tumu(mask, maskedoff, op1, vl); } // CHECK-RV64-LABEL: @test_viota_m_u8m4_tumu( // CHECK-RV64-NEXT: entry: // CHECK-RV64-NEXT: [[TMP0:%.*]] = call <vscale x 32 x i8> @llvm.riscv.viota.mask.nxv32i8.i64(<vscale x 32 x i8> [[MASKEDOFF:%.*]], <vscale x 32 x i1> [[OP1:%.*]], <vscale x 32 x i1> [[MASK:%.*]], i64 [[VL:%.*]], i64 0) // CHECK-RV64-NEXT: ret <vscale x 32 x i8> [[TMP0]] // vuint8m4_t test_viota_m_u8m4_tumu(vbool2_t mask, vuint8m4_t maskedoff, vbool2_t op1, size_t vl) { return viota_m_u8m4_tumu(mask, maskedoff, op1, vl); } // CHECK-RV64-LABEL: @test_viota_m_u8m8_tumu( // CHECK-RV64-NEXT: entry: // CHECK-RV64-NEXT: [[TMP0:%.*]] = call <vscale x 64 x i8> @llvm.riscv.viota.mask.nxv64i8.i64(<vscale x 64 x i8> [[MASKEDOFF:%.*]], <vscale x 64 x i1> [[OP1:%.*]], <vscale x 64 x i1> [[MASK:%.*]], i64 [[VL:%.*]], i64 0) // CHECK-RV64-NEXT: ret <vscale x 64 x i8> [[TMP0]] // vuint8m8_t test_viota_m_u8m8_tumu(vbool1_t mask, vuint8m8_t maskedoff, vbool1_t op1, size_t vl) { return viota_m_u8m8_tumu(mask, maskedoff, op1, vl); } // CHECK-RV64-LABEL: @test_viota_m_u16mf4_tumu( // CHECK-RV64-NEXT: entry: // CHECK-RV64-NEXT: [[TMP0:%.*]] = call <vscale x 1 x i16> @llvm.riscv.viota.mask.nxv1i16.i64(<vscale x 1 x i16> [[MASKEDOFF:%.*]], <vscale x 1 x i1> [[OP1:%.*]], <vscale x 1 x i1> [[MASK:%.*]], i64 [[VL:%.*]], i64 0) // CHECK-RV64-NEXT: ret <vscale x 1 x i16> [[TMP0]] // vuint16mf4_t test_viota_m_u16mf4_tumu(vbool64_t mask, vuint16mf4_t maskedoff, vbool64_t op1, size_t vl) { return viota_m_u16mf4_tumu(mask, maskedoff, op1, vl); } // CHECK-RV64-LABEL: @test_viota_m_u16mf2_tumu( // CHECK-RV64-NEXT: entry: // CHECK-RV64-NEXT: [[TMP0:%.*]] = call <vscale x 2 x i16> @llvm.riscv.viota.mask.nxv2i16.i64(<vscale x 2 x i16> [[MASKEDOFF:%.*]], <vscale x 2 x i1> [[OP1:%.*]], <vscale x 2 x i1> [[MASK:%.*]], i64 [[VL:%.*]], i64 0) // CHECK-RV64-NEXT: ret <vscale x 2 x i16> [[TMP0]] // vuint16mf2_t test_viota_m_u16mf2_tumu(vbool32_t mask, vuint16mf2_t maskedoff, vbool32_t op1, size_t vl) { return viota_m_u16mf2_tumu(mask, maskedoff, op1, vl); } // CHECK-RV64-LABEL: @test_viota_m_u16m1_tumu( // CHECK-RV64-NEXT: entry: // CHECK-RV64-NEXT: [[TMP0:%.*]] = call <vscale x 4 x i16> @llvm.riscv.viota.mask.nxv4i16.i64(<vscale x 4 x i16> [[MASKEDOFF:%.*]], <vscale x 4 x i1> [[OP1:%.*]], <vscale x 4 x i1> [[MASK:%.*]], i64 [[VL:%.*]], i64 0) // CHECK-RV64-NEXT: ret <vscale x 4 x i16> [[TMP0]] // vuint16m1_t test_viota_m_u16m1_tumu(vbool16_t mask, vuint16m1_t maskedoff, vbool16_t op1, size_t vl) { return viota_m_u16m1_tumu(mask, maskedoff, op1, vl); } // CHECK-RV64-LABEL: @test_viota_m_u16m2_tumu( // CHECK-RV64-NEXT: entry: // CHECK-RV64-NEXT: [[TMP0:%.*]] = call <vscale x 8 x i16> @llvm.riscv.viota.mask.nxv8i16.i64(<vscale x 8 x i16> [[MASKEDOFF:%.*]], <vscale x 8 x i1> [[OP1:%.*]], <vscale x 8 x i1> [[MASK:%.*]], i64 [[VL:%.*]], i64 0) // CHECK-RV64-NEXT: ret <vscale x 8 x i16> [[TMP0]] // vuint16m2_t test_viota_m_u16m2_tumu(vbool8_t mask, vuint16m2_t maskedoff, vbool8_t op1, size_t vl) { return viota_m_u16m2_tumu(mask, maskedoff, op1, vl); } // CHECK-RV64-LABEL: @test_viota_m_u16m4_tumu( // CHECK-RV64-NEXT: entry: // CHECK-RV64-NEXT: [[TMP0:%.*]] = call <vscale x 16 x i16> @llvm.riscv.viota.mask.nxv16i16.i64(<vscale x 16 x i16> [[MASKEDOFF:%.*]], <vscale x 16 x i1> [[OP1:%.*]], <vscale x 16 x i1> [[MASK:%.*]], i64 [[VL:%.*]], i64 0) // CHECK-RV64-NEXT: ret <vscale x 16 x i16> [[TMP0]] // vuint16m4_t test_viota_m_u16m4_tumu(vbool4_t mask, vuint16m4_t maskedoff, vbool4_t op1, size_t vl) { return viota_m_u16m4_tumu(mask, maskedoff, op1, vl); } // CHECK-RV64-LABEL: @test_viota_m_u16m8_tumu( // CHECK-RV64-NEXT: entry: // CHECK-RV64-NEXT: [[TMP0:%.*]] = call <vscale x 32 x i16> @llvm.riscv.viota.mask.nxv32i16.i64(<vscale x 32 x i16> [[MASKEDOFF:%.*]], <vscale x 32 x i1> [[OP1:%.*]], <vscale x 32 x i1> [[MASK:%.*]], i64 [[VL:%.*]], i64 0) // CHECK-RV64-NEXT: ret <vscale x 32 x i16> [[TMP0]] // vuint16m8_t test_viota_m_u16m8_tumu(vbool2_t mask, vuint16m8_t maskedoff, vbool2_t op1, size_t vl) { return viota_m_u16m8_tumu(mask, maskedoff, op1, vl); } // CHECK-RV64-LABEL: @test_viota_m_u32mf2_tumu( // CHECK-RV64-NEXT: entry: // CHECK-RV64-NEXT: [[TMP0:%.*]] = call <vscale x 1 x i32> @llvm.riscv.viota.mask.nxv1i32.i64(<vscale x 1 x i32> [[MASKEDOFF:%.*]], <vscale x 1 x i1> [[OP1:%.*]], <vscale x 1 x i1> [[MASK:%.*]], i64 [[VL:%.*]], i64 0) // CHECK-RV64-NEXT: ret <vscale x 1 x i32> [[TMP0]] // vuint32mf2_t test_viota_m_u32mf2_tumu(vbool64_t mask, vuint32mf2_t maskedoff, vbool64_t op1, size_t vl) { return viota_m_u32mf2_tumu(mask, maskedoff, op1, vl); } // CHECK-RV64-LABEL: @test_viota_m_u32m1_tumu( // CHECK-RV64-NEXT: entry: // CHECK-RV64-NEXT: [[TMP0:%.*]] = call <vscale x 2 x i32> @llvm.riscv.viota.mask.nxv2i32.i64(<vscale x 2 x i32> [[MASKEDOFF:%.*]], <vscale x 2 x i1> [[OP1:%.*]], <vscale x 2 x i1> [[MASK:%.*]], i64 [[VL:%.*]], i64 0) // CHECK-RV64-NEXT: ret <vscale x 2 x i32> [[TMP0]] // vuint32m1_t test_viota_m_u32m1_tumu(vbool32_t mask, vuint32m1_t maskedoff, vbool32_t op1, size_t vl) { return viota_m_u32m1_tumu(mask, maskedoff, op1, vl); } // CHECK-RV64-LABEL: @test_viota_m_u32m2_tumu( // CHECK-RV64-NEXT: entry: // CHECK-RV64-NEXT: [[TMP0:%.*]] = call <vscale x 4 x i32> @llvm.riscv.viota.mask.nxv4i32.i64(<vscale x 4 x i32> [[MASKEDOFF:%.*]], <vscale x 4 x i1> [[OP1:%.*]], <vscale x 4 x i1> [[MASK:%.*]], i64 [[VL:%.*]], i64 0) // CHECK-RV64-NEXT: ret <vscale x 4 x i32> [[TMP0]] // vuint32m2_t test_viota_m_u32m2_tumu(vbool16_t mask, vuint32m2_t maskedoff, vbool16_t op1, size_t vl) { return viota_m_u32m2_tumu(mask, maskedoff, op1, vl); } // CHECK-RV64-LABEL: @test_viota_m_u32m4_tumu( // CHECK-RV64-NEXT: entry: // CHECK-RV64-NEXT: [[TMP0:%.*]] = call <vscale x 8 x i32> @llvm.riscv.viota.mask.nxv8i32.i64(<vscale x 8 x i32> [[MASKEDOFF:%.*]], <vscale x 8 x i1> [[OP1:%.*]], <vscale x 8 x i1> [[MASK:%.*]], i64 [[VL:%.*]], i64 0) // CHECK-RV64-NEXT: ret <vscale x 8 x i32> [[TMP0]] // vuint32m4_t test_viota_m_u32m4_tumu(vbool8_t mask, vuint32m4_t maskedoff, vbool8_t op1, size_t vl) { return viota_m_u32m4_tumu(mask, maskedoff, op1, vl); } // CHECK-RV64-LABEL: @test_viota_m_u32m8_tumu( // CHECK-RV64-NEXT: entry: // CHECK-RV64-NEXT: [[TMP0:%.*]] = call <vscale x 16 x i32> @llvm.riscv.viota.mask.nxv16i32.i64(<vscale x 16 x i32> [[MASKEDOFF:%.*]], <vscale x 16 x i1> [[OP1:%.*]], <vscale x 16 x i1> [[MASK:%.*]], i64 [[VL:%.*]], i64 0) // CHECK-RV64-NEXT: ret <vscale x 16 x i32> [[TMP0]] // vuint32m8_t test_viota_m_u32m8_tumu(vbool4_t mask, vuint32m8_t maskedoff, vbool4_t op1, size_t vl) { return viota_m_u32m8_tumu(mask, maskedoff, op1, vl); } // CHECK-RV64-LABEL: @test_viota_m_u64m1_tumu( // CHECK-RV64-NEXT: entry: // CHECK-RV64-NEXT: [[TMP0:%.*]] = call <vscale x 1 x i64> @llvm.riscv.viota.mask.nxv1i64.i64(<vscale x 1 x i64> [[MASKEDOFF:%.*]], <vscale x 1 x i1> [[OP1:%.*]], <vscale x 1 x i1> [[MASK:%.*]], i64 [[VL:%.*]], i64 0) // CHECK-RV64-NEXT: ret <vscale x 1 x i64> [[TMP0]] // vuint64m1_t test_viota_m_u64m1_tumu(vbool64_t mask, vuint64m1_t maskedoff, vbool64_t op1, size_t vl) { return viota_m_u64m1_tumu(mask, maskedoff, op1, vl); } // CHECK-RV64-LABEL: @test_viota_m_u64m2_tumu( // CHECK-RV64-NEXT: entry: // CHECK-RV64-NEXT: [[TMP0:%.*]] = call <vscale x 2 x i64> @llvm.riscv.viota.mask.nxv2i64.i64(<vscale x 2 x i64> [[MASKEDOFF:%.*]], <vscale x 2 x i1> [[OP1:%.*]], <vscale x 2 x i1> [[MASK:%.*]], i64 [[VL:%.*]], i64 0) // CHECK-RV64-NEXT: ret <vscale x 2 x i64> [[TMP0]] // vuint64m2_t test_viota_m_u64m2_tumu(vbool32_t mask, vuint64m2_t maskedoff, vbool32_t op1, size_t vl) { return viota_m_u64m2_tumu(mask, maskedoff, op1, vl); } // CHECK-RV64-LABEL: @test_viota_m_u64m4_tumu( // CHECK-RV64-NEXT: entry: // CHECK-RV64-NEXT: [[TMP0:%.*]] = call <vscale x 4 x i64> @llvm.riscv.viota.mask.nxv4i64.i64(<vscale x 4 x i64> [[MASKEDOFF:%.*]], <vscale x 4 x i1> [[OP1:%.*]], <vscale x 4 x i1> [[MASK:%.*]], i64 [[VL:%.*]], i64 0) // CHECK-RV64-NEXT: ret <vscale x 4 x i64> [[TMP0]] // vuint64m4_t test_viota_m_u64m4_tumu(vbool16_t mask, vuint64m4_t maskedoff, vbool16_t op1, size_t vl) { return viota_m_u64m4_tumu(mask, maskedoff, op1, vl); } // CHECK-RV64-LABEL: @test_viota_m_u64m8_tumu( // CHECK-RV64-NEXT: entry: // CHECK-RV64-NEXT: [[TMP0:%.*]] = call <vscale x 8 x i64> @llvm.riscv.viota.mask.nxv8i64.i64(<vscale x 8 x i64> [[MASKEDOFF:%.*]], <vscale x 8 x i1> [[OP1:%.*]], <vscale x 8 x i1> [[MASK:%.*]], i64 [[VL:%.*]], i64 0) // CHECK-RV64-NEXT: ret <vscale x 8 x i64> [[TMP0]] // vuint64m8_t test_viota_m_u64m8_tumu(vbool8_t mask, vuint64m8_t maskedoff, vbool8_t op1, size_t vl) { return viota_m_u64m8_tumu(mask, maskedoff, op1, vl); } // CHECK-RV64-LABEL: @test_viota_m_u8mf8_tama( // CHECK-RV64-NEXT: entry: // CHECK-RV64-NEXT: [[TMP0:%.*]] = call <vscale x 1 x i8> @llvm.riscv.viota.mask.nxv1i8.i64(<vscale x 1 x i8> poison, <vscale x 1 x i1> [[OP1:%.*]], <vscale x 1 x i1> [[MASK:%.*]], i64 [[VL:%.*]], i64 3) // CHECK-RV64-NEXT: ret <vscale x 1 x i8> [[TMP0]] // vuint8mf8_t test_viota_m_u8mf8_tama(vbool64_t mask, vbool64_t op1, size_t vl) { return viota_m_u8mf8_tama(mask, op1, vl); } // CHECK-RV64-LABEL: @test_viota_m_u8mf4_tama( // CHECK-RV64-NEXT: entry: // CHECK-RV64-NEXT: [[TMP0:%.*]] = call <vscale x 2 x i8> @llvm.riscv.viota.mask.nxv2i8.i64(<vscale x 2 x i8> poison, <vscale x 2 x i1> [[OP1:%.*]], <vscale x 2 x i1> [[MASK:%.*]], i64 [[VL:%.*]], i64 3) // CHECK-RV64-NEXT: ret <vscale x 2 x i8> [[TMP0]] // vuint8mf4_t test_viota_m_u8mf4_tama(vbool32_t mask, vbool32_t op1, size_t vl) { return viota_m_u8mf4_tama(mask, op1, vl); } // CHECK-RV64-LABEL: @test_viota_m_u8mf2_tama( // CHECK-RV64-NEXT: entry: // CHECK-RV64-NEXT: [[TMP0:%.*]] = call <vscale x 4 x i8> @llvm.riscv.viota.mask.nxv4i8.i64(<vscale x 4 x i8> poison, <vscale x 4 x i1> [[OP1:%.*]], <vscale x 4 x i1> [[MASK:%.*]], i64 [[VL:%.*]], i64 3) // CHECK-RV64-NEXT: ret <vscale x 4 x i8> [[TMP0]] // vuint8mf2_t test_viota_m_u8mf2_tama(vbool16_t mask, vbool16_t op1, size_t vl) { return viota_m_u8mf2_tama(mask, op1, vl); } // CHECK-RV64-LABEL: @test_viota_m_u8m1_tama( // CHECK-RV64-NEXT: entry: // CHECK-RV64-NEXT: [[TMP0:%.*]] = call <vscale x 8 x i8> @llvm.riscv.viota.mask.nxv8i8.i64(<vscale x 8 x i8> poison, <vscale x 8 x i1> [[OP1:%.*]], <vscale x 8 x i1> [[MASK:%.*]], i64 [[VL:%.*]], i64 3) // CHECK-RV64-NEXT: ret <vscale x 8 x i8> [[TMP0]] // vuint8m1_t test_viota_m_u8m1_tama(vbool8_t mask, vbool8_t op1, size_t vl) { return viota_m_u8m1_tama(mask, op1, vl); } // CHECK-RV64-LABEL: @test_viota_m_u8m2_tama( // CHECK-RV64-NEXT: entry: // CHECK-RV64-NEXT: [[TMP0:%.*]] = call <vscale x 16 x i8> @llvm.riscv.viota.mask.nxv16i8.i64(<vscale x 16 x i8> poison, <vscale x 16 x i1> [[OP1:%.*]], <vscale x 16 x i1> [[MASK:%.*]], i64 [[VL:%.*]], i64 3) // CHECK-RV64-NEXT: ret <vscale x 16 x i8> [[TMP0]] // vuint8m2_t test_viota_m_u8m2_tama(vbool4_t mask, vbool4_t op1, size_t vl) { return viota_m_u8m2_tama(mask, op1, vl); } // CHECK-RV64-LABEL: @test_viota_m_u8m4_tama( // CHECK-RV64-NEXT: entry: // CHECK-RV64-NEXT: [[TMP0:%.*]] = call <vscale x 32 x i8> @llvm.riscv.viota.mask.nxv32i8.i64(<vscale x 32 x i8> poison, <vscale x 32 x i1> [[OP1:%.*]], <vscale x 32 x i1> [[MASK:%.*]], i64 [[VL:%.*]], i64 3) // CHECK-RV64-NEXT: ret <vscale x 32 x i8> [[TMP0]] // vuint8m4_t test_viota_m_u8m4_tama(vbool2_t mask, vbool2_t op1, size_t vl) { return viota_m_u8m4_tama(mask, op1, vl); } // CHECK-RV64-LABEL: @test_viota_m_u8m8_tama( // CHECK-RV64-NEXT: entry: // CHECK-RV64-NEXT: [[TMP0:%.*]] = call <vscale x 64 x i8> @llvm.riscv.viota.mask.nxv64i8.i64(<vscale x 64 x i8> poison, <vscale x 64 x i1> [[OP1:%.*]], <vscale x 64 x i1> [[MASK:%.*]], i64 [[VL:%.*]], i64 3) // CHECK-RV64-NEXT: ret <vscale x 64 x i8> [[TMP0]] // vuint8m8_t test_viota_m_u8m8_tama(vbool1_t mask, vbool1_t op1, size_t vl) { return viota_m_u8m8_tama(mask, op1, vl); } // CHECK-RV64-LABEL: @test_viota_m_u16mf4_tama( // CHECK-RV64-NEXT: entry: // CHECK-RV64-NEXT: [[TMP0:%.*]] = call <vscale x 1 x i16> @llvm.riscv.viota.mask.nxv1i16.i64(<vscale x 1 x i16> poison, <vscale x 1 x i1> [[OP1:%.*]], <vscale x 1 x i1> [[MASK:%.*]], i64 [[VL:%.*]], i64 3) // CHECK-RV64-NEXT: ret <vscale x 1 x i16> [[TMP0]] // vuint16mf4_t test_viota_m_u16mf4_tama(vbool64_t mask, vbool64_t op1, size_t vl) { return viota_m_u16mf4_tama(mask, op1, vl); } // CHECK-RV64-LABEL: @test_viota_m_u16mf2_tama( // CHECK-RV64-NEXT: entry: // CHECK-RV64-NEXT: [[TMP0:%.*]] = call <vscale x 2 x i16> @llvm.riscv.viota.mask.nxv2i16.i64(<vscale x 2 x i16> poison, <vscale x 2 x i1> [[OP1:%.*]], <vscale x 2 x i1> [[MASK:%.*]], i64 [[VL:%.*]], i64 3) // CHECK-RV64-NEXT: ret <vscale x 2 x i16> [[TMP0]] // vuint16mf2_t test_viota_m_u16mf2_tama(vbool32_t mask, vbool32_t op1, size_t vl) { return viota_m_u16mf2_tama(mask, op1, vl); } // CHECK-RV64-LABEL: @test_viota_m_u16m1_tama( // CHECK-RV64-NEXT: entry: // CHECK-RV64-NEXT: [[TMP0:%.*]] = call <vscale x 4 x i16> @llvm.riscv.viota.mask.nxv4i16.i64(<vscale x 4 x i16> poison, <vscale x 4 x i1> [[OP1:%.*]], <vscale x 4 x i1> [[MASK:%.*]], i64 [[VL:%.*]], i64 3) // CHECK-RV64-NEXT: ret <vscale x 4 x i16> [[TMP0]] // vuint16m1_t test_viota_m_u16m1_tama(vbool16_t mask, vbool16_t op1, size_t vl) { return viota_m_u16m1_tama(mask, op1, vl); } // CHECK-RV64-LABEL: @test_viota_m_u16m2_tama( // CHECK-RV64-NEXT: entry: // CHECK-RV64-NEXT: [[TMP0:%.*]] = call <vscale x 8 x i16> @llvm.riscv.viota.mask.nxv8i16.i64(<vscale x 8 x i16> poison, <vscale x 8 x i1> [[OP1:%.*]], <vscale x 8 x i1> [[MASK:%.*]], i64 [[VL:%.*]], i64 3) // CHECK-RV64-NEXT: ret <vscale x 8 x i16> [[TMP0]] // vuint16m2_t test_viota_m_u16m2_tama(vbool8_t mask, vbool8_t op1, size_t vl) { return viota_m_u16m2_tama(mask, op1, vl); } // CHECK-RV64-LABEL: @test_viota_m_u16m4_tama( // CHECK-RV64-NEXT: entry: // CHECK-RV64-NEXT: [[TMP0:%.*]] = call <vscale x 16 x i16> @llvm.riscv.viota.mask.nxv16i16.i64(<vscale x 16 x i16> poison, <vscale x 16 x i1> [[OP1:%.*]], <vscale x 16 x i1> [[MASK:%.*]], i64 [[VL:%.*]], i64 3) // CHECK-RV64-NEXT: ret <vscale x 16 x i16> [[TMP0]] // vuint16m4_t test_viota_m_u16m4_tama(vbool4_t mask, vbool4_t op1, size_t vl) { return viota_m_u16m4_tama(mask, op1, vl); } // CHECK-RV64-LABEL: @test_viota_m_u16m8_tama( // CHECK-RV64-NEXT: entry: // CHECK-RV64-NEXT: [[TMP0:%.*]] = call <vscale x 32 x i16> @llvm.riscv.viota.mask.nxv32i16.i64(<vscale x 32 x i16> poison, <vscale x 32 x i1> [[OP1:%.*]], <vscale x 32 x i1> [[MASK:%.*]], i64 [[VL:%.*]], i64 3) // CHECK-RV64-NEXT: ret <vscale x 32 x i16> [[TMP0]] // vuint16m8_t test_viota_m_u16m8_tama(vbool2_t mask, vbool2_t op1, size_t vl) { return viota_m_u16m8_tama(mask, op1, vl); } // CHECK-RV64-LABEL: @test_viota_m_u32mf2_tama( // CHECK-RV64-NEXT: entry: // CHECK-RV64-NEXT: [[TMP0:%.*]] = call <vscale x 1 x i32> @llvm.riscv.viota.mask.nxv1i32.i64(<vscale x 1 x i32> poison, <vscale x 1 x i1> [[OP1:%.*]], <vscale x 1 x i1> [[MASK:%.*]], i64 [[VL:%.*]], i64 3) // CHECK-RV64-NEXT: ret <vscale x 1 x i32> [[TMP0]] // vuint32mf2_t test_viota_m_u32mf2_tama(vbool64_t mask, vbool64_t op1, size_t vl) { return viota_m_u32mf2_tama(mask, op1, vl); } // CHECK-RV64-LABEL: @test_viota_m_u32m1_tama( // CHECK-RV64-NEXT: entry: // CHECK-RV64-NEXT: [[TMP0:%.*]] = call <vscale x 2 x i32> @llvm.riscv.viota.mask.nxv2i32.i64(<vscale x 2 x i32> poison, <vscale x 2 x i1> [[OP1:%.*]], <vscale x 2 x i1> [[MASK:%.*]], i64 [[VL:%.*]], i64 3) // CHECK-RV64-NEXT: ret <vscale x 2 x i32> [[TMP0]] // vuint32m1_t test_viota_m_u32m1_tama(vbool32_t mask, vbool32_t op1, size_t vl) { return viota_m_u32m1_tama(mask, op1, vl); } // CHECK-RV64-LABEL: @test_viota_m_u32m2_tama( // CHECK-RV64-NEXT: entry: // CHECK-RV64-NEXT: [[TMP0:%.*]] = call <vscale x 4 x i32> @llvm.riscv.viota.mask.nxv4i32.i64(<vscale x 4 x i32> poison, <vscale x 4 x i1> [[OP1:%.*]], <vscale x 4 x i1> [[MASK:%.*]], i64 [[VL:%.*]], i64 3) // CHECK-RV64-NEXT: ret <vscale x 4 x i32> [[TMP0]] // vuint32m2_t test_viota_m_u32m2_tama(vbool16_t mask, vbool16_t op1, size_t vl) { return viota_m_u32m2_tama(mask, op1, vl); } // CHECK-RV64-LABEL: @test_viota_m_u32m4_tama( // CHECK-RV64-NEXT: entry: // CHECK-RV64-NEXT: [[TMP0:%.*]] = call <vscale x 8 x i32> @llvm.riscv.viota.mask.nxv8i32.i64(<vscale x 8 x i32> poison, <vscale x 8 x i1> [[OP1:%.*]], <vscale x 8 x i1> [[MASK:%.*]], i64 [[VL:%.*]], i64 3) // CHECK-RV64-NEXT: ret <vscale x 8 x i32> [[TMP0]] // vuint32m4_t test_viota_m_u32m4_tama(vbool8_t mask, vbool8_t op1, size_t vl) { return viota_m_u32m4_tama(mask, op1, vl); } // CHECK-RV64-LABEL: @test_viota_m_u32m8_tama( // CHECK-RV64-NEXT: entry: // CHECK-RV64-NEXT: [[TMP0:%.*]] = call <vscale x 16 x i32> @llvm.riscv.viota.mask.nxv16i32.i64(<vscale x 16 x i32> poison, <vscale x 16 x i1> [[OP1:%.*]], <vscale x 16 x i1> [[MASK:%.*]], i64 [[VL:%.*]], i64 3) // CHECK-RV64-NEXT: ret <vscale x 16 x i32> [[TMP0]] // vuint32m8_t test_viota_m_u32m8_tama(vbool4_t mask, vbool4_t op1, size_t vl) { return viota_m_u32m8_tama(mask, op1, vl); } // CHECK-RV64-LABEL: @test_viota_m_u64m1_tama( // CHECK-RV64-NEXT: entry: // CHECK-RV64-NEXT: [[TMP0:%.*]] = call <vscale x 1 x i64> @llvm.riscv.viota.mask.nxv1i64.i64(<vscale x 1 x i64> poison, <vscale x 1 x i1> [[OP1:%.*]], <vscale x 1 x i1> [[MASK:%.*]], i64 [[VL:%.*]], i64 3) // CHECK-RV64-NEXT: ret <vscale x 1 x i64> [[TMP0]] // vuint64m1_t test_viota_m_u64m1_tama(vbool64_t mask, vbool64_t op1, size_t vl) { return viota_m_u64m1_tama(mask, op1, vl); } // CHECK-RV64-LABEL: @test_viota_m_u64m2_tama( // CHECK-RV64-NEXT: entry: // CHECK-RV64-NEXT: [[TMP0:%.*]] = call <vscale x 2 x i64> @llvm.riscv.viota.mask.nxv2i64.i64(<vscale x 2 x i64> poison, <vscale x 2 x i1> [[OP1:%.*]], <vscale x 2 x i1> [[MASK:%.*]], i64 [[VL:%.*]], i64 3) // CHECK-RV64-NEXT: ret <vscale x 2 x i64> [[TMP0]] // vuint64m2_t test_viota_m_u64m2_tama(vbool32_t mask, vbool32_t op1, size_t vl) { return viota_m_u64m2_tama(mask, op1, vl); } // CHECK-RV64-LABEL: @test_viota_m_u64m4_tama( // CHECK-RV64-NEXT: entry: // CHECK-RV64-NEXT: [[TMP0:%.*]] = call <vscale x 4 x i64> @llvm.riscv.viota.mask.nxv4i64.i64(<vscale x 4 x i64> poison, <vscale x 4 x i1> [[OP1:%.*]], <vscale x 4 x i1> [[MASK:%.*]], i64 [[VL:%.*]], i64 3) // CHECK-RV64-NEXT: ret <vscale x 4 x i64> [[TMP0]] // vuint64m4_t test_viota_m_u64m4_tama(vbool16_t mask, vbool16_t op1, size_t vl) { return viota_m_u64m4_tama(mask, op1, vl); } // CHECK-RV64-LABEL: @test_viota_m_u64m8_tama( // CHECK-RV64-NEXT: entry: // CHECK-RV64-NEXT: [[TMP0:%.*]] = call <vscale x 8 x i64> @llvm.riscv.viota.mask.nxv8i64.i64(<vscale x 8 x i64> poison, <vscale x 8 x i1> [[OP1:%.*]], <vscale x 8 x i1> [[MASK:%.*]], i64 [[VL:%.*]], i64 3) // CHECK-RV64-NEXT: ret <vscale x 8 x i64> [[TMP0]] // vuint64m8_t test_viota_m_u64m8_tama(vbool8_t mask, vbool8_t op1, size_t vl) { return viota_m_u64m8_tama(mask, op1, vl); } // CHECK-RV64-LABEL: @test_viota_m_u8mf8_tamu( // CHECK-RV64-NEXT: entry: // CHECK-RV64-NEXT: [[TMP0:%.*]] = call <vscale x 1 x i8> @llvm.riscv.viota.mask.nxv1i8.i64(<vscale x 1 x i8> [[MASKEDOFF:%.*]], <vscale x 1 x i1> [[OP1:%.*]], <vscale x 1 x i1> [[MASK:%.*]], i64 [[VL:%.*]], i64 1) // CHECK-RV64-NEXT: ret <vscale x 1 x i8> [[TMP0]] // vuint8mf8_t test_viota_m_u8mf8_tamu(vbool64_t mask, vuint8mf8_t maskedoff, vbool64_t op1, size_t vl) { return viota_m_u8mf8_tamu(mask, maskedoff, op1, vl); } // CHECK-RV64-LABEL: @test_viota_m_u8mf4_tamu( // CHECK-RV64-NEXT: entry: // CHECK-RV64-NEXT: [[TMP0:%.*]] = call <vscale x 2 x i8> @llvm.riscv.viota.mask.nxv2i8.i64(<vscale x 2 x i8> [[MASKEDOFF:%.*]], <vscale x 2 x i1> [[OP1:%.*]], <vscale x 2 x i1> [[MASK:%.*]], i64 [[VL:%.*]], i64 1) // CHECK-RV64-NEXT: ret <vscale x 2 x i8> [[TMP0]] // vuint8mf4_t test_viota_m_u8mf4_tamu(vbool32_t mask, vuint8mf4_t maskedoff, vbool32_t op1, size_t vl) { return viota_m_u8mf4_tamu(mask, maskedoff, op1, vl); } // CHECK-RV64-LABEL: @test_viota_m_u8mf2_tamu( // CHECK-RV64-NEXT: entry: // CHECK-RV64-NEXT: [[TMP0:%.*]] = call <vscale x 4 x i8> @llvm.riscv.viota.mask.nxv4i8.i64(<vscale x 4 x i8> [[MASKEDOFF:%.*]], <vscale x 4 x i1> [[OP1:%.*]], <vscale x 4 x i1> [[MASK:%.*]], i64 [[VL:%.*]], i64 1) // CHECK-RV64-NEXT: ret <vscale x 4 x i8> [[TMP0]] // vuint8mf2_t test_viota_m_u8mf2_tamu(vbool16_t mask, vuint8mf2_t maskedoff, vbool16_t op1, size_t vl) { return viota_m_u8mf2_tamu(mask, maskedoff, op1, vl); } // CHECK-RV64-LABEL: @test_viota_m_u8m1_tamu( // CHECK-RV64-NEXT: entry: // CHECK-RV64-NEXT: [[TMP0:%.*]] = call <vscale x 8 x i8> @llvm.riscv.viota.mask.nxv8i8.i64(<vscale x 8 x i8> [[MASKEDOFF:%.*]], <vscale x 8 x i1> [[OP1:%.*]], <vscale x 8 x i1> [[MASK:%.*]], i64 [[VL:%.*]], i64 1) // CHECK-RV64-NEXT: ret <vscale x 8 x i8> [[TMP0]] // vuint8m1_t test_viota_m_u8m1_tamu(vbool8_t mask, vuint8m1_t maskedoff, vbool8_t op1, size_t vl) { return viota_m_u8m1_tamu(mask, maskedoff, op1, vl); } // CHECK-RV64-LABEL: @test_viota_m_u8m2_tamu( // CHECK-RV64-NEXT: entry: // CHECK-RV64-NEXT: [[TMP0:%.*]] = call <vscale x 16 x i8> @llvm.riscv.viota.mask.nxv16i8.i64(<vscale x 16 x i8> [[MASKEDOFF:%.*]], <vscale x 16 x i1> [[OP1:%.*]], <vscale x 16 x i1> [[MASK:%.*]], i64 [[VL:%.*]], i64 1) // CHECK-RV64-NEXT: ret <vscale x 16 x i8> [[TMP0]] // vuint8m2_t test_viota_m_u8m2_tamu(vbool4_t mask, vuint8m2_t maskedoff, vbool4_t op1, size_t vl) { return viota_m_u8m2_tamu(mask, maskedoff, op1, vl); } // CHECK-RV64-LABEL: @test_viota_m_u8m4_tamu( // CHECK-RV64-NEXT: entry: // CHECK-RV64-NEXT: [[TMP0:%.*]] = call <vscale x 32 x i8> @llvm.riscv.viota.mask.nxv32i8.i64(<vscale x 32 x i8> [[MASKEDOFF:%.*]], <vscale x 32 x i1> [[OP1:%.*]], <vscale x 32 x i1> [[MASK:%.*]], i64 [[VL:%.*]], i64 1) // CHECK-RV64-NEXT: ret <vscale x 32 x i8> [[TMP0]] // vuint8m4_t test_viota_m_u8m4_tamu(vbool2_t mask, vuint8m4_t maskedoff, vbool2_t op1, size_t vl) { return viota_m_u8m4_tamu(mask, maskedoff, op1, vl); } // CHECK-RV64-LABEL: @test_viota_m_u8m8_tamu( // CHECK-RV64-NEXT: entry: // CHECK-RV64-NEXT: [[TMP0:%.*]] = call <vscale x 64 x i8> @llvm.riscv.viota.mask.nxv64i8.i64(<vscale x 64 x i8> [[MASKEDOFF:%.*]], <vscale x 64 x i1> [[OP1:%.*]], <vscale x 64 x i1> [[MASK:%.*]], i64 [[VL:%.*]], i64 1) // CHECK-RV64-NEXT: ret <vscale x 64 x i8> [[TMP0]] // vuint8m8_t test_viota_m_u8m8_tamu(vbool1_t mask, vuint8m8_t maskedoff, vbool1_t op1, size_t vl) { return viota_m_u8m8_tamu(mask, maskedoff, op1, vl); } // CHECK-RV64-LABEL: @test_viota_m_u16mf4_tamu( // CHECK-RV64-NEXT: entry: // CHECK-RV64-NEXT: [[TMP0:%.*]] = call <vscale x 1 x i16> @llvm.riscv.viota.mask.nxv1i16.i64(<vscale x 1 x i16> [[MASKEDOFF:%.*]], <vscale x 1 x i1> [[OP1:%.*]], <vscale x 1 x i1> [[MASK:%.*]], i64 [[VL:%.*]], i64 1) // CHECK-RV64-NEXT: ret <vscale x 1 x i16> [[TMP0]] // vuint16mf4_t test_viota_m_u16mf4_tamu(vbool64_t mask, vuint16mf4_t maskedoff, vbool64_t op1, size_t vl) { return viota_m_u16mf4_tamu(mask, maskedoff, op1, vl); } // CHECK-RV64-LABEL: @test_viota_m_u16mf2_tamu( // CHECK-RV64-NEXT: entry: // CHECK-RV64-NEXT: [[TMP0:%.*]] = call <vscale x 2 x i16> @llvm.riscv.viota.mask.nxv2i16.i64(<vscale x 2 x i16> [[MASKEDOFF:%.*]], <vscale x 2 x i1> [[OP1:%.*]], <vscale x 2 x i1> [[MASK:%.*]], i64 [[VL:%.*]], i64 1) // CHECK-RV64-NEXT: ret <vscale x 2 x i16> [[TMP0]] // vuint16mf2_t test_viota_m_u16mf2_tamu(vbool32_t mask, vuint16mf2_t maskedoff, vbool32_t op1, size_t vl) { return viota_m_u16mf2_tamu(mask, maskedoff, op1, vl); } // CHECK-RV64-LABEL: @test_viota_m_u16m1_tamu( // CHECK-RV64-NEXT: entry: // CHECK-RV64-NEXT: [[TMP0:%.*]] = call <vscale x 4 x i16> @llvm.riscv.viota.mask.nxv4i16.i64(<vscale x 4 x i16> [[MASKEDOFF:%.*]], <vscale x 4 x i1> [[OP1:%.*]], <vscale x 4 x i1> [[MASK:%.*]], i64 [[VL:%.*]], i64 1) // CHECK-RV64-NEXT: ret <vscale x 4 x i16> [[TMP0]] // vuint16m1_t test_viota_m_u16m1_tamu(vbool16_t mask, vuint16m1_t maskedoff, vbool16_t op1, size_t vl) { return viota_m_u16m1_tamu(mask, maskedoff, op1, vl); } // CHECK-RV64-LABEL: @test_viota_m_u16m2_tamu( // CHECK-RV64-NEXT: entry: // CHECK-RV64-NEXT: [[TMP0:%.*]] = call <vscale x 8 x i16> @llvm.riscv.viota.mask.nxv8i16.i64(<vscale x 8 x i16> [[MASKEDOFF:%.*]], <vscale x 8 x i1> [[OP1:%.*]], <vscale x 8 x i1> [[MASK:%.*]], i64 [[VL:%.*]], i64 1) // CHECK-RV64-NEXT: ret <vscale x 8 x i16> [[TMP0]] // vuint16m2_t test_viota_m_u16m2_tamu(vbool8_t mask, vuint16m2_t maskedoff, vbool8_t op1, size_t vl) { return viota_m_u16m2_tamu(mask, maskedoff, op1, vl); } // CHECK-RV64-LABEL: @test_viota_m_u16m4_tamu( // CHECK-RV64-NEXT: entry: // CHECK-RV64-NEXT: [[TMP0:%.*]] = call <vscale x 16 x i16> @llvm.riscv.viota.mask.nxv16i16.i64(<vscale x 16 x i16> [[MASKEDOFF:%.*]], <vscale x 16 x i1> [[OP1:%.*]], <vscale x 16 x i1> [[MASK:%.*]], i64 [[VL:%.*]], i64 1) // CHECK-RV64-NEXT: ret <vscale x 16 x i16> [[TMP0]] // vuint16m4_t test_viota_m_u16m4_tamu(vbool4_t mask, vuint16m4_t maskedoff, vbool4_t op1, size_t vl) { return viota_m_u16m4_tamu(mask, maskedoff, op1, vl); } // CHECK-RV64-LABEL: @test_viota_m_u16m8_tamu( // CHECK-RV64-NEXT: entry: // CHECK-RV64-NEXT: [[TMP0:%.*]] = call <vscale x 32 x i16> @llvm.riscv.viota.mask.nxv32i16.i64(<vscale x 32 x i16> [[MASKEDOFF:%.*]], <vscale x 32 x i1> [[OP1:%.*]], <vscale x 32 x i1> [[MASK:%.*]], i64 [[VL:%.*]], i64 1) // CHECK-RV64-NEXT: ret <vscale x 32 x i16> [[TMP0]] // vuint16m8_t test_viota_m_u16m8_tamu(vbool2_t mask, vuint16m8_t maskedoff, vbool2_t op1, size_t vl) { return viota_m_u16m8_tamu(mask, maskedoff, op1, vl); } // CHECK-RV64-LABEL: @test_viota_m_u32mf2_tamu( // CHECK-RV64-NEXT: entry: // CHECK-RV64-NEXT: [[TMP0:%.*]] = call <vscale x 1 x i32> @llvm.riscv.viota.mask.nxv1i32.i64(<vscale x 1 x i32> [[MASKEDOFF:%.*]], <vscale x 1 x i1> [[OP1:%.*]], <vscale x 1 x i1> [[MASK:%.*]], i64 [[VL:%.*]], i64 1) // CHECK-RV64-NEXT: ret <vscale x 1 x i32> [[TMP0]] // vuint32mf2_t test_viota_m_u32mf2_tamu(vbool64_t mask, vuint32mf2_t maskedoff, vbool64_t op1, size_t vl) { return viota_m_u32mf2_tamu(mask, maskedoff, op1, vl); } // CHECK-RV64-LABEL: @test_viota_m_u32m1_tamu( // CHECK-RV64-NEXT: entry: // CHECK-RV64-NEXT: [[TMP0:%.*]] = call <vscale x 2 x i32> @llvm.riscv.viota.mask.nxv2i32.i64(<vscale x 2 x i32> [[MASKEDOFF:%.*]], <vscale x 2 x i1> [[OP1:%.*]], <vscale x 2 x i1> [[MASK:%.*]], i64 [[VL:%.*]], i64 1) // CHECK-RV64-NEXT: ret <vscale x 2 x i32> [[TMP0]] // vuint32m1_t test_viota_m_u32m1_tamu(vbool32_t mask, vuint32m1_t maskedoff, vbool32_t op1, size_t vl) { return viota_m_u32m1_tamu(mask, maskedoff, op1, vl); } // CHECK-RV64-LABEL: @test_viota_m_u32m2_tamu( // CHECK-RV64-NEXT: entry: // CHECK-RV64-NEXT: [[TMP0:%.*]] = call <vscale x 4 x i32> @llvm.riscv.viota.mask.nxv4i32.i64(<vscale x 4 x i32> [[MASKEDOFF:%.*]], <vscale x 4 x i1> [[OP1:%.*]], <vscale x 4 x i1> [[MASK:%.*]], i64 [[VL:%.*]], i64 1) // CHECK-RV64-NEXT: ret <vscale x 4 x i32> [[TMP0]] // vuint32m2_t test_viota_m_u32m2_tamu(vbool16_t mask, vuint32m2_t maskedoff, vbool16_t op1, size_t vl) { return viota_m_u32m2_tamu(mask, maskedoff, op1, vl); } // CHECK-RV64-LABEL: @test_viota_m_u32m4_tamu( // CHECK-RV64-NEXT: entry: // CHECK-RV64-NEXT: [[TMP0:%.*]] = call <vscale x 8 x i32> @llvm.riscv.viota.mask.nxv8i32.i64(<vscale x 8 x i32> [[MASKEDOFF:%.*]], <vscale x 8 x i1> [[OP1:%.*]], <vscale x 8 x i1> [[MASK:%.*]], i64 [[VL:%.*]], i64 1) // CHECK-RV64-NEXT: ret <vscale x 8 x i32> [[TMP0]] // vuint32m4_t test_viota_m_u32m4_tamu(vbool8_t mask, vuint32m4_t maskedoff, vbool8_t op1, size_t vl) { return viota_m_u32m4_tamu(mask, maskedoff, op1, vl); } // CHECK-RV64-LABEL: @test_viota_m_u32m8_tamu( // CHECK-RV64-NEXT: entry: // CHECK-RV64-NEXT: [[TMP0:%.*]] = call <vscale x 16 x i32> @llvm.riscv.viota.mask.nxv16i32.i64(<vscale x 16 x i32> [[MASKEDOFF:%.*]], <vscale x 16 x i1> [[OP1:%.*]], <vscale x 16 x i1> [[MASK:%.*]], i64 [[VL:%.*]], i64 1) // CHECK-RV64-NEXT: ret <vscale x 16 x i32> [[TMP0]] // vuint32m8_t test_viota_m_u32m8_tamu(vbool4_t mask, vuint32m8_t maskedoff, vbool4_t op1, size_t vl) { return viota_m_u32m8_tamu(mask, maskedoff, op1, vl); } // CHECK-RV64-LABEL: @test_viota_m_u64m1_tamu( // CHECK-RV64-NEXT: entry: // CHECK-RV64-NEXT: [[TMP0:%.*]] = call <vscale x 1 x i64> @llvm.riscv.viota.mask.nxv1i64.i64(<vscale x 1 x i64> [[MASKEDOFF:%.*]], <vscale x 1 x i1> [[OP1:%.*]], <vscale x 1 x i1> [[MASK:%.*]], i64 [[VL:%.*]], i64 1) // CHECK-RV64-NEXT: ret <vscale x 1 x i64> [[TMP0]] // vuint64m1_t test_viota_m_u64m1_tamu(vbool64_t mask, vuint64m1_t maskedoff, vbool64_t op1, size_t vl) { return viota_m_u64m1_tamu(mask, maskedoff, op1, vl); } // CHECK-RV64-LABEL: @test_viota_m_u64m2_tamu( // CHECK-RV64-NEXT: entry: // CHECK-RV64-NEXT: [[TMP0:%.*]] = call <vscale x 2 x i64> @llvm.riscv.viota.mask.nxv2i64.i64(<vscale x 2 x i64> [[MASKEDOFF:%.*]], <vscale x 2 x i1> [[OP1:%.*]], <vscale x 2 x i1> [[MASK:%.*]], i64 [[VL:%.*]], i64 1) // CHECK-RV64-NEXT: ret <vscale x 2 x i64> [[TMP0]] // vuint64m2_t test_viota_m_u64m2_tamu(vbool32_t mask, vuint64m2_t maskedoff, vbool32_t op1, size_t vl) { return viota_m_u64m2_tamu(mask, maskedoff, op1, vl); } // CHECK-RV64-LABEL: @test_viota_m_u64m4_tamu( // CHECK-RV64-NEXT: entry: // CHECK-RV64-NEXT: [[TMP0:%.*]] = call <vscale x 4 x i64> @llvm.riscv.viota.mask.nxv4i64.i64(<vscale x 4 x i64> [[MASKEDOFF:%.*]], <vscale x 4 x i1> [[OP1:%.*]], <vscale x 4 x i1> [[MASK:%.*]], i64 [[VL:%.*]], i64 1) // CHECK-RV64-NEXT: ret <vscale x 4 x i64> [[TMP0]] // vuint64m4_t test_viota_m_u64m4_tamu(vbool16_t mask, vuint64m4_t maskedoff, vbool16_t op1, size_t vl) { return viota_m_u64m4_tamu(mask, maskedoff, op1, vl); } // CHECK-RV64-LABEL: @test_viota_m_u64m8_tamu( // CHECK-RV64-NEXT: entry: // CHECK-RV64-NEXT: [[TMP0:%.*]] = call <vscale x 8 x i64> @llvm.riscv.viota.mask.nxv8i64.i64(<vscale x 8 x i64> [[MASKEDOFF:%.*]], <vscale x 8 x i1> [[OP1:%.*]], <vscale x 8 x i1> [[MASK:%.*]], i64 [[VL:%.*]], i64 1) // CHECK-RV64-NEXT: ret <vscale x 8 x i64> [[TMP0]] // vuint64m8_t test_viota_m_u64m8_tamu(vbool8_t mask, vuint64m8_t maskedoff, vbool8_t op1, size_t vl) { return viota_m_u64m8_tamu(mask, maskedoff, op1, vl); }
326bd60e3620d41102b1e604e2ea9982108452f4
4674b8088ffdf55905d44995f08a0792a3e4cd5c
/src/utils/xml-utils.c
a37a92d44e7bbf4518fa63333b488766f9b92e82
[ "BSD-3-Clause", "BSD-2-Clause" ]
permissive
vanhoefm/krackattacks-scripts
41daca791638a92aa4cfa68a582e46119037560e
4b78669686f74efe664c6543b1b5b1616b22f902
refs/heads/research
2022-10-29T20:21:11.512335
2022-10-16T18:44:41
2022-10-16T18:44:41
107,408,514
2,184
577
NOASSERTION
2021-07-06T12:43:49
2017-10-18T12:58:08
C
UTF-8
C
false
false
9,458
c
xml-utils.c
/* * Generic XML helper functions * Copyright (c) 2012-2013, Qualcomm Atheros, Inc. * * This software may be distributed under the terms of the BSD license. * See README for more details. */ #include "includes.h" #include "common.h" #include "xml-utils.h" static xml_node_t * get_node_uri_iter(struct xml_node_ctx *ctx, xml_node_t *root, char *uri) { char *end; xml_node_t *node; const char *name; end = strchr(uri, '/'); if (end) *end++ = '\0'; node = root; xml_node_for_each_sibling(ctx, node) { xml_node_for_each_check(ctx, node); name = xml_node_get_localname(ctx, node); if (strcasecmp(name, uri) == 0) break; } if (node == NULL) return NULL; if (end) { return get_node_uri_iter(ctx, xml_node_first_child(ctx, node), end); } return node; } xml_node_t * get_node_uri(struct xml_node_ctx *ctx, xml_node_t *root, const char *uri) { char *search; xml_node_t *node; search = os_strdup(uri); if (search == NULL) return NULL; node = get_node_uri_iter(ctx, root, search); os_free(search); return node; } static xml_node_t * get_node_iter(struct xml_node_ctx *ctx, xml_node_t *root, const char *path) { char *end; xml_node_t *node; const char *name; end = os_strchr(path, '/'); if (end) *end++ = '\0'; xml_node_for_each_child(ctx, node, root) { xml_node_for_each_check(ctx, node); name = xml_node_get_localname(ctx, node); if (os_strcasecmp(name, path) == 0) break; } if (node == NULL) return NULL; if (end) return get_node_iter(ctx, node, end); return node; } xml_node_t * get_node(struct xml_node_ctx *ctx, xml_node_t *root, const char *path) { char *search; xml_node_t *node; search = os_strdup(path); if (search == NULL) return NULL; node = get_node_iter(ctx, root, search); os_free(search); return node; } xml_node_t * get_child_node(struct xml_node_ctx *ctx, xml_node_t *root, const char *path) { xml_node_t *node; xml_node_t *match; xml_node_for_each_child(ctx, node, root) { xml_node_for_each_check(ctx, node); match = get_node(ctx, node, path); if (match) return match; } return NULL; } xml_node_t * node_from_file(struct xml_node_ctx *ctx, const char *name) { xml_node_t *node; char *buf, *buf2, *start; size_t len; buf = os_readfile(name, &len); if (buf == NULL) return NULL; buf2 = os_realloc(buf, len + 1); if (buf2 == NULL) { os_free(buf); return NULL; } buf = buf2; buf[len] = '\0'; start = os_strstr(buf, "<!DOCTYPE "); if (start) { char *pos = start + 1; int count = 1; while (*pos) { if (*pos == '<') count++; else if (*pos == '>') { count--; if (count == 0) { pos++; break; } } pos++; } if (count == 0) { /* Remove DOCTYPE to allow the file to be parsed */ os_memset(start, ' ', pos - start); } } node = xml_node_from_buf(ctx, buf); os_free(buf); return node; } int node_to_file(struct xml_node_ctx *ctx, const char *fname, xml_node_t *node) { FILE *f; char *str; str = xml_node_to_str(ctx, node); if (str == NULL) return -1; f = fopen(fname, "w"); if (!f) { os_free(str); return -1; } fprintf(f, "%s\n", str); os_free(str); fclose(f); return 0; } static char * get_val(struct xml_node_ctx *ctx, xml_node_t *node) { char *val, *pos; val = xml_node_get_text(ctx, node); if (val == NULL) return NULL; pos = val; while (*pos) { if (*pos != ' ' && *pos != '\t' && *pos != '\r' && *pos != '\n') return val; pos++; } return NULL; } static char * add_path(const char *prev, const char *leaf) { size_t len; char *new_uri; if (prev == NULL) return NULL; len = os_strlen(prev) + 1 + os_strlen(leaf) + 1; new_uri = os_malloc(len); if (new_uri) os_snprintf(new_uri, len, "%s/%s", prev, leaf); return new_uri; } static void node_to_tnds(struct xml_node_ctx *ctx, xml_node_t *out, xml_node_t *in, const char *uri) { xml_node_t *node; xml_node_t *tnds; const char *name; char *val; char *new_uri; xml_node_for_each_child(ctx, node, in) { xml_node_for_each_check(ctx, node); name = xml_node_get_localname(ctx, node); tnds = xml_node_create(ctx, out, NULL, "Node"); if (tnds == NULL) return; xml_node_create_text(ctx, tnds, NULL, "NodeName", name); if (uri) xml_node_create_text(ctx, tnds, NULL, "Path", uri); val = get_val(ctx, node); xml_node_create_text(ctx, tnds, NULL, "Value", val ? val : ""); xml_node_get_text_free(ctx, val); new_uri = add_path(uri, name); node_to_tnds(ctx, new_uri ? out : tnds, node, new_uri); os_free(new_uri); } } static int add_ddfname(struct xml_node_ctx *ctx, xml_node_t *parent, const char *urn) { xml_node_t *node; node = xml_node_create(ctx, parent, NULL, "RTProperties"); if (node == NULL) return -1; node = xml_node_create(ctx, node, NULL, "Type"); if (node == NULL) return -1; xml_node_create_text(ctx, node, NULL, "DDFName", urn); return 0; } xml_node_t * mo_to_tnds(struct xml_node_ctx *ctx, xml_node_t *mo, int use_path, const char *urn, const char *ns_uri) { xml_node_t *root; xml_node_t *node; const char *name; root = xml_node_create_root(ctx, ns_uri, NULL, NULL, "MgmtTree"); if (root == NULL) return NULL; xml_node_create_text(ctx, root, NULL, "VerDTD", "1.2"); name = xml_node_get_localname(ctx, mo); node = xml_node_create(ctx, root, NULL, "Node"); if (node == NULL) goto fail; xml_node_create_text(ctx, node, NULL, "NodeName", name); if (urn) add_ddfname(ctx, node, urn); node_to_tnds(ctx, use_path ? root : node, mo, use_path ? name : NULL); return root; fail: xml_node_free(ctx, root); return NULL; } static xml_node_t * get_first_child_node(struct xml_node_ctx *ctx, xml_node_t *node, const char *name) { const char *lname; xml_node_t *child; xml_node_for_each_child(ctx, child, node) { xml_node_for_each_check(ctx, child); lname = xml_node_get_localname(ctx, child); if (os_strcasecmp(lname, name) == 0) return child; } return NULL; } static char * get_node_text(struct xml_node_ctx *ctx, xml_node_t *node, const char *node_name) { node = get_first_child_node(ctx, node, node_name); if (node == NULL) return NULL; return xml_node_get_text(ctx, node); } static xml_node_t * add_mo_node(struct xml_node_ctx *ctx, xml_node_t *root, xml_node_t *node, const char *uri) { char *nodename, *value, *path; xml_node_t *parent; nodename = get_node_text(ctx, node, "NodeName"); if (nodename == NULL) return NULL; value = get_node_text(ctx, node, "Value"); if (root == NULL) { root = xml_node_create_root(ctx, NULL, NULL, NULL, nodename); if (root && value) xml_node_set_text(ctx, root, value); } else { if (uri == NULL) { xml_node_get_text_free(ctx, nodename); xml_node_get_text_free(ctx, value); return NULL; } path = get_node_text(ctx, node, "Path"); if (path) uri = path; parent = get_node_uri(ctx, root, uri); xml_node_get_text_free(ctx, path); if (parent == NULL) { printf("Could not find URI '%s'\n", uri); xml_node_get_text_free(ctx, nodename); xml_node_get_text_free(ctx, value); return NULL; } if (value) xml_node_create_text(ctx, parent, NULL, nodename, value); else xml_node_create(ctx, parent, NULL, nodename); } xml_node_get_text_free(ctx, nodename); xml_node_get_text_free(ctx, value); return root; } static xml_node_t * tnds_to_mo_iter(struct xml_node_ctx *ctx, xml_node_t *root, xml_node_t *node, const char *uri) { xml_node_t *child; const char *name; char *nodename; xml_node_for_each_sibling(ctx, node) { xml_node_for_each_check(ctx, node); nodename = get_node_text(ctx, node, "NodeName"); if (nodename == NULL) return NULL; name = xml_node_get_localname(ctx, node); if (strcmp(name, "Node") == 0) { if (root && !uri) { printf("Invalid TNDS tree structure - " "multiple top level nodes\n"); xml_node_get_text_free(ctx, nodename); return NULL; } root = add_mo_node(ctx, root, node, uri); } child = get_first_child_node(ctx, node, "Node"); if (child) { if (uri == NULL) tnds_to_mo_iter(ctx, root, child, nodename); else { char *new_uri; new_uri = add_path(uri, nodename); tnds_to_mo_iter(ctx, root, child, new_uri); os_free(new_uri); } } xml_node_get_text_free(ctx, nodename); } return root; } xml_node_t * tnds_to_mo(struct xml_node_ctx *ctx, xml_node_t *tnds) { const char *name; xml_node_t *node; name = xml_node_get_localname(ctx, tnds); if (name == NULL || os_strcmp(name, "MgmtTree") != 0) return NULL; node = get_first_child_node(ctx, tnds, "Node"); if (!node) return NULL; return tnds_to_mo_iter(ctx, NULL, node, NULL); } xml_node_t * soap_build_envelope(struct xml_node_ctx *ctx, xml_node_t *node) { xml_node_t *envelope, *body; xml_namespace_t *ns; envelope = xml_node_create_root( ctx, "http://www.w3.org/2003/05/soap-envelope", "soap12", &ns, "Envelope"); if (envelope == NULL) return NULL; body = xml_node_create(ctx, envelope, ns, "Body"); xml_node_add_child(ctx, body, node); return envelope; } xml_node_t * soap_get_body(struct xml_node_ctx *ctx, xml_node_t *soap) { xml_node_t *body, *child; body = get_node_uri(ctx, soap, "Envelope/Body"); if (body == NULL) return NULL; xml_node_for_each_child(ctx, child, body) { xml_node_for_each_check(ctx, child); return child; } return NULL; }
be3d2869bfb382019ee7b49ccf0f90c8c4ed67ec
3bf69a0369ac0b8248045f86c646b06655be5adb
/app/boards/arm/corneish_zen/widgets/icons/USB_connected.c
b3b60422257ba1d2ae4eb7b9920a2d88afb3800e
[ "MIT" ]
permissive
zmkfirmware/zmk
36dea10219874ce8c81df46eb3b77e02dde7c352
3d938033b002c78ce24245e3cf37b7ba55876145
refs/heads/main
2023-09-03T06:09:24.869559
2023-09-02T21:45:25
2023-09-03T03:49:19
270,692,521
1,848
2,032
MIT
2023-09-14T03:42:31
2020-06-08T14:08:44
C
UTF-8
C
false
false
1,625
c
USB_connected.c
/* * * Copyright (c) 2021 Darryl deHaan * SPDX-License-Identifier: MIT * */ #include <lvgl.h> #ifndef LV_ATTRIBUTE_MEM_ALIGN #define LV_ATTRIBUTE_MEM_ALIGN #endif #ifndef LV_ATTRIBUTE_IMG_USB_CONNECTED #define LV_ATTRIBUTE_IMG_USB_CONNECTED #endif const LV_ATTRIBUTE_MEM_ALIGN LV_ATTRIBUTE_IMG_USB_CONNECTED uint8_t USB_connected_map[] = { 0xff, 0xff, 0xff, 0xff, /*Color of index 0*/ 0x00, 0x00, 0x00, 0xff, /*Color of index 1*/ 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x0f, 0xff, 0xff, 0xc0, 0x00, 0x3f, 0xff, 0xff, 0xc0, 0x00, 0xff, 0xff, 0xff, 0xc0, 0x01, 0xff, 0xff, 0xff, 0x80, 0x03, 0xff, 0xff, 0xff, 0xfe, 0x07, 0xff, 0xff, 0xff, 0xff, 0x07, 0x1e, 0x30, 0x38, 0x07, 0x0f, 0x1c, 0x20, 0x38, 0x07, 0x0f, 0x1c, 0x47, 0x10, 0xc3, 0x3e, 0x1c, 0x43, 0xf1, 0xc7, 0x7e, 0x3c, 0x60, 0x70, 0x0e, 0x7e, 0x3c, 0x70, 0x30, 0x0e, 0x7e, 0x38, 0xfc, 0x33, 0xc7, 0xfe, 0x18, 0x8f, 0x23, 0x87, 0x0e, 0x00, 0xc6, 0x20, 0x07, 0x0f, 0x01, 0xe0, 0x60, 0x0e, 0x0f, 0x87, 0xf0, 0xe0, 0x3e, 0x07, 0xff, 0xff, 0xff, 0xfc, 0x07, 0xff, 0xff, 0xff, 0xf0, 0x03, 0xff, 0xff, 0xfe, 0x00, 0x01, 0xff, 0xff, 0xfc, 0x00, 0x00, 0x7f, 0xff, 0xfc, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, }; const lv_img_dsc_t USB_connected = { .header.always_zero = 0, .header.w = 40, .header.h = 31, .data_size = 164, .header.cf = LV_IMG_CF_INDEXED_1BIT, .data = USB_connected_map, };
48f979cf64ed1a970b259e066c0732d146564a79
324ae873d12897873afbf37fc71c27579cd16293
/c_src/jid.c
14cb9846007db6ed61ac622975a09bdaf3390508
[ "Apache-2.0" ]
permissive
processone/xmpp
0eea7426d786d96f42593eeae39a40ed50df9e88
3d3d98b996dd7569c57df5fb966b9dfb985c58f3
refs/heads/master
2023-08-03T15:56:30.955654
2023-08-02T10:26:55
2023-08-02T15:40:23
74,045,359
122
93
Apache-2.0
2023-08-24T10:48:55
2016-11-17T16:24:26
Erlang
UTF-8
C
false
false
14,789
c
jid.c
#line 1 "jid.rl" #include <erl_nif.h> #include <string.h> #line 28 "jid.rl" static const int jid_start = 1; static int load(ErlNifEnv* env, void** priv, ERL_NIF_TERM load_info) { return 0; } static ERL_NIF_TERM mk_binary_term(ErlNifEnv* env, char *start, char *stop, int start_offset, int stop_offset) { ERL_NIF_TERM result; if (stop && start) { stop += stop_offset; start += start_offset; if (stop > start) { size_t size = stop - start; unsigned char *buf = enif_make_new_binary(env, size, &result); if (buf) { memcpy(buf, start, size); return result; } } } enif_make_new_binary(env, 0, &result); return result; } static ERL_NIF_TERM string_to_usr(ErlNifEnv* env, int argc, const ERL_NIF_TERM argv[]) { ErlNifBinary input; ERL_NIF_TERM node, domain, resource; int cs = 0, ret = 1; char *node_start = NULL; char *node_end = NULL; char *domain_start = NULL; char *domain_end = NULL; char *resource_start = NULL; char *resource_end = NULL; if (argc != 1) return enif_make_badarg(env); if (!(enif_inspect_binary(env, argv[0], &input))) return enif_make_badarg(env); if (!input.size) return enif_make_atom(env, "error"); char *p = (char *) input.data; char *pe = p + input.size; char *eof = pe; #line 67 "jid.c" { cs = jid_start; } #line 86 "jid.rl" #line 74 "jid.c" { if ( p == pe ) goto _test_eof; switch ( cs ) { case 1: switch( (*p) ) { case -32: goto tr2; case -19: goto tr4; case -16: goto tr5; case -12: goto tr7; case 32: goto tr0; case 34: goto tr9; case 46: goto tr10; case 47: goto tr0; case 58: goto tr9; case 60: goto tr9; case 62: goto tr9; case 64: goto tr0; } if ( (*p) < -15 ) { if ( (*p) < -62 ) { if ( (*p) <= -63 ) goto tr0; } else if ( (*p) > -33 ) { if ( -31 <= (*p) && (*p) <= -17 ) goto tr3; } else goto tr1; } else if ( (*p) > -13 ) { if ( (*p) < 9 ) { if ( -11 <= (*p) && (*p) <= -1 ) goto tr0; } else if ( (*p) > 13 ) { if ( 38 <= (*p) && (*p) <= 39 ) goto tr9; } else goto tr0; } else goto tr6; goto tr8; tr0: #line 15 "jid.rl" { ret = 0; } goto st0; #line 120 "jid.c" st0: cs = 0; goto _out; tr1: #line 9 "jid.rl" { node_start = p; } #line 10 "jid.rl" { domain_start = p; } goto st2; st2: if ( ++p == pe ) goto _test_eof2; case 2: #line 134 "jid.c" if ( (*p) <= -65 ) goto tr11; goto tr0; tr8: #line 9 "jid.rl" { node_start = p; } #line 10 "jid.rl" { domain_start = p; } #line 13 "jid.rl" { domain_end = p; } goto st33; tr11: #line 13 "jid.rl" { domain_end = p; } goto st33; st33: if ( ++p == pe ) goto _test_eof33; case 33: #line 154 "jid.c" switch( (*p) ) { case -32: goto st3; case -19: goto st5; case -16: goto st6; case -12: goto st8; case 32: goto tr0; case 34: goto tr14; case 46: goto tr47; case 47: goto tr48; case 58: goto tr14; case 60: goto tr14; case 62: goto tr14; case 64: goto tr33; } if ( (*p) < -15 ) { if ( (*p) < -62 ) { if ( (*p) <= -63 ) goto tr0; } else if ( (*p) > -33 ) { if ( -31 <= (*p) && (*p) <= -17 ) goto st4; } else goto st2; } else if ( (*p) > -13 ) { if ( (*p) < 9 ) { if ( -11 <= (*p) && (*p) <= -1 ) goto tr0; } else if ( (*p) > 13 ) { if ( 38 <= (*p) && (*p) <= 39 ) goto tr14; } else goto tr0; } else goto st7; goto tr11; tr2: #line 9 "jid.rl" { node_start = p; } #line 10 "jid.rl" { domain_start = p; } goto st3; st3: if ( ++p == pe ) goto _test_eof3; case 3: #line 200 "jid.c" if ( -96 <= (*p) && (*p) <= -65 ) goto st2; goto tr0; tr3: #line 9 "jid.rl" { node_start = p; } #line 10 "jid.rl" { domain_start = p; } goto st4; st4: if ( ++p == pe ) goto _test_eof4; case 4: #line 214 "jid.c" if ( (*p) <= -65 ) goto st2; goto tr0; tr4: #line 9 "jid.rl" { node_start = p; } #line 10 "jid.rl" { domain_start = p; } goto st5; st5: if ( ++p == pe ) goto _test_eof5; case 5: #line 228 "jid.c" if ( (*p) <= -97 ) goto st2; goto tr0; tr5: #line 9 "jid.rl" { node_start = p; } #line 10 "jid.rl" { domain_start = p; } goto st6; st6: if ( ++p == pe ) goto _test_eof6; case 6: #line 242 "jid.c" if ( -112 <= (*p) && (*p) <= -65 ) goto st4; goto tr0; tr6: #line 9 "jid.rl" { node_start = p; } #line 10 "jid.rl" { domain_start = p; } goto st7; st7: if ( ++p == pe ) goto _test_eof7; case 7: #line 256 "jid.c" if ( (*p) <= -65 ) goto st4; goto tr0; tr7: #line 9 "jid.rl" { node_start = p; } #line 10 "jid.rl" { domain_start = p; } goto st8; st8: if ( ++p == pe ) goto _test_eof8; case 8: #line 270 "jid.c" if ( (*p) <= -113 ) goto st4; goto tr0; tr9: #line 9 "jid.rl" { node_start = p; } #line 10 "jid.rl" { domain_start = p; } #line 13 "jid.rl" { domain_end = p; } goto st34; tr14: #line 13 "jid.rl" { domain_end = p; } goto st34; tr41: #line 10 "jid.rl" { domain_start = p; } #line 13 "jid.rl" { domain_end = p; } goto st34; st34: if ( ++p == pe ) goto _test_eof34; case 34: #line 296 "jid.c" switch( (*p) ) { case -32: goto st10; case -19: goto st12; case -16: goto st13; case -12: goto st15; case 32: goto tr0; case 46: goto tr54; case 47: goto tr48; case 64: goto tr0; } if ( (*p) < -31 ) { if ( (*p) > -63 ) { if ( -62 <= (*p) && (*p) <= -33 ) goto st9; } else goto tr0; } else if ( (*p) > -17 ) { if ( (*p) < -11 ) { if ( -15 <= (*p) && (*p) <= -13 ) goto st14; } else if ( (*p) > -1 ) { if ( 9 <= (*p) && (*p) <= 13 ) goto tr0; } else goto tr0; } else goto st11; goto tr14; tr34: #line 10 "jid.rl" { domain_start = p; } goto st9; st9: if ( ++p == pe ) goto _test_eof9; case 9: #line 333 "jid.c" if ( (*p) <= -65 ) goto tr14; goto tr0; tr35: #line 10 "jid.rl" { domain_start = p; } goto st10; st10: if ( ++p == pe ) goto _test_eof10; case 10: #line 345 "jid.c" if ( -96 <= (*p) && (*p) <= -65 ) goto st9; goto tr0; tr36: #line 10 "jid.rl" { domain_start = p; } goto st11; st11: if ( ++p == pe ) goto _test_eof11; case 11: #line 357 "jid.c" if ( (*p) <= -65 ) goto st9; goto tr0; tr37: #line 10 "jid.rl" { domain_start = p; } goto st12; st12: if ( ++p == pe ) goto _test_eof12; case 12: #line 369 "jid.c" if ( (*p) <= -97 ) goto st9; goto tr0; tr38: #line 10 "jid.rl" { domain_start = p; } goto st13; st13: if ( ++p == pe ) goto _test_eof13; case 13: #line 381 "jid.c" if ( -112 <= (*p) && (*p) <= -65 ) goto st11; goto tr0; tr39: #line 10 "jid.rl" { domain_start = p; } goto st14; st14: if ( ++p == pe ) goto _test_eof14; case 14: #line 393 "jid.c" if ( (*p) <= -65 ) goto st11; goto tr0; tr40: #line 10 "jid.rl" { domain_start = p; } goto st15; st15: if ( ++p == pe ) goto _test_eof15; case 15: #line 405 "jid.c" if ( (*p) <= -113 ) goto st11; goto tr0; tr54: #line 13 "jid.rl" { domain_end = p; } goto st35; st35: if ( ++p == pe ) goto _test_eof35; case 35: #line 417 "jid.c" switch( (*p) ) { case -32: goto st10; case -19: goto st12; case -16: goto st13; case -12: goto st15; case 32: goto tr0; case 46: goto tr0; case 47: goto tr48; case 64: goto tr0; } if ( (*p) < -31 ) { if ( (*p) > -63 ) { if ( -62 <= (*p) && (*p) <= -33 ) goto st9; } else goto tr0; } else if ( (*p) > -17 ) { if ( (*p) < -11 ) { if ( -15 <= (*p) && (*p) <= -13 ) goto st14; } else if ( (*p) > -1 ) { if ( 9 <= (*p) && (*p) <= 13 ) goto tr0; } else goto tr0; } else goto st11; goto tr14; tr48: #line 11 "jid.rl" { resource_start = p; } goto st16; st16: if ( ++p == pe ) goto _test_eof16; case 16: #line 454 "jid.c" switch( (*p) ) { case -32: goto st18; case -19: goto st20; case -16: goto st21; case -12: goto st23; } if ( (*p) < -31 ) { if ( (*p) > -63 ) { if ( -62 <= (*p) && (*p) <= -33 ) goto st17; } else goto tr0; } else if ( (*p) > -17 ) { if ( (*p) > -13 ) { if ( -11 <= (*p) && (*p) <= -1 ) goto tr0; } else if ( (*p) >= -15 ) goto st22; } else goto st19; goto tr24; st17: if ( ++p == pe ) goto _test_eof17; case 17: if ( (*p) <= -65 ) goto tr24; goto tr0; tr24: #line 14 "jid.rl" { resource_end = p; } goto st36; st36: if ( ++p == pe ) goto _test_eof36; case 36: #line 491 "jid.c" switch( (*p) ) { case -32: goto st18; case -19: goto st20; case -16: goto st21; case -12: goto st23; } if ( (*p) < -31 ) { if ( (*p) > -63 ) { if ( -62 <= (*p) && (*p) <= -33 ) goto st17; } else goto tr0; } else if ( (*p) > -17 ) { if ( (*p) > -13 ) { if ( -11 <= (*p) && (*p) <= -1 ) goto tr0; } else if ( (*p) >= -15 ) goto st22; } else goto st19; goto tr24; st18: if ( ++p == pe ) goto _test_eof18; case 18: if ( -96 <= (*p) && (*p) <= -65 ) goto st17; goto tr0; st19: if ( ++p == pe ) goto _test_eof19; case 19: if ( (*p) <= -65 ) goto st17; goto tr0; st20: if ( ++p == pe ) goto _test_eof20; case 20: if ( (*p) <= -97 ) goto st17; goto tr0; st21: if ( ++p == pe ) goto _test_eof21; case 21: if ( -112 <= (*p) && (*p) <= -65 ) goto st19; goto tr0; st22: if ( ++p == pe ) goto _test_eof22; case 22: if ( (*p) <= -65 ) goto st19; goto tr0; st23: if ( ++p == pe ) goto _test_eof23; case 23: if ( (*p) <= -113 ) goto st19; goto tr0; tr47: #line 13 "jid.rl" { domain_end = p; } goto st37; st37: if ( ++p == pe ) goto _test_eof37; case 37: #line 563 "jid.c" switch( (*p) ) { case -32: goto st3; case -19: goto st5; case -16: goto st6; case -12: goto st8; case 32: goto tr0; case 34: goto tr14; case 46: goto st24; case 47: goto tr48; case 58: goto tr14; case 60: goto tr14; case 62: goto tr14; case 64: goto tr33; } if ( (*p) < -15 ) { if ( (*p) < -62 ) { if ( (*p) <= -63 ) goto tr0; } else if ( (*p) > -33 ) { if ( -31 <= (*p) && (*p) <= -17 ) goto st4; } else goto st2; } else if ( (*p) > -13 ) { if ( (*p) < 9 ) { if ( -11 <= (*p) && (*p) <= -1 ) goto tr0; } else if ( (*p) > 13 ) { if ( 38 <= (*p) && (*p) <= 39 ) goto tr14; } else goto tr0; } else goto st7; goto tr11; tr10: #line 9 "jid.rl" { node_start = p; } goto st24; st24: if ( ++p == pe ) goto _test_eof24; case 24: #line 607 "jid.c" switch( (*p) ) { case -32: goto st26; case -19: goto st28; case -16: goto st29; case -12: goto st31; case 32: goto tr0; case 34: goto tr0; case 47: goto tr0; case 58: goto tr0; case 60: goto tr0; case 62: goto tr0; case 64: goto tr33; } if ( (*p) < -15 ) { if ( (*p) < -62 ) { if ( (*p) <= -63 ) goto tr0; } else if ( (*p) > -33 ) { if ( -31 <= (*p) && (*p) <= -17 ) goto st27; } else goto st25; } else if ( (*p) > -13 ) { if ( (*p) < 9 ) { if ( -11 <= (*p) && (*p) <= -1 ) goto tr0; } else if ( (*p) > 13 ) { if ( 38 <= (*p) && (*p) <= 39 ) goto tr0; } else goto tr0; } else goto st30; goto st24; st25: if ( ++p == pe ) goto _test_eof25; case 25: if ( (*p) <= -65 ) goto st24; goto tr0; st26: if ( ++p == pe ) goto _test_eof26; case 26: if ( -96 <= (*p) && (*p) <= -65 ) goto st25; goto tr0; st27: if ( ++p == pe ) goto _test_eof27; case 27: if ( (*p) <= -65 ) goto st25; goto tr0; st28: if ( ++p == pe ) goto _test_eof28; case 28: if ( (*p) <= -97 ) goto st25; goto tr0; st29: if ( ++p == pe ) goto _test_eof29; case 29: if ( -112 <= (*p) && (*p) <= -65 ) goto st27; goto tr0; st30: if ( ++p == pe ) goto _test_eof30; case 30: if ( (*p) <= -65 ) goto st27; goto tr0; st31: if ( ++p == pe ) goto _test_eof31; case 31: if ( (*p) <= -113 ) goto st27; goto tr0; tr33: #line 12 "jid.rl" { node_end = p; } goto st32; st32: if ( ++p == pe ) goto _test_eof32; case 32: #line 699 "jid.c" switch( (*p) ) { case -32: goto tr35; case -19: goto tr37; case -16: goto tr38; case -12: goto tr40; case 32: goto tr0; case 64: goto tr0; } if ( (*p) < -15 ) { if ( (*p) < -62 ) { if ( (*p) <= -63 ) goto tr0; } else if ( (*p) > -33 ) { if ( -31 <= (*p) && (*p) <= -17 ) goto tr36; } else goto tr34; } else if ( (*p) > -13 ) { if ( (*p) < 9 ) { if ( -11 <= (*p) && (*p) <= -1 ) goto tr0; } else if ( (*p) > 13 ) { if ( 46 <= (*p) && (*p) <= 47 ) goto tr0; } else goto tr0; } else goto tr39; goto tr41; } _test_eof2: cs = 2; goto _test_eof; _test_eof33: cs = 33; goto _test_eof; _test_eof3: cs = 3; goto _test_eof; _test_eof4: cs = 4; goto _test_eof; _test_eof5: cs = 5; goto _test_eof; _test_eof6: cs = 6; goto _test_eof; _test_eof7: cs = 7; goto _test_eof; _test_eof8: cs = 8; goto _test_eof; _test_eof34: cs = 34; goto _test_eof; _test_eof9: cs = 9; goto _test_eof; _test_eof10: cs = 10; goto _test_eof; _test_eof11: cs = 11; goto _test_eof; _test_eof12: cs = 12; goto _test_eof; _test_eof13: cs = 13; goto _test_eof; _test_eof14: cs = 14; goto _test_eof; _test_eof15: cs = 15; goto _test_eof; _test_eof35: cs = 35; goto _test_eof; _test_eof16: cs = 16; goto _test_eof; _test_eof17: cs = 17; goto _test_eof; _test_eof36: cs = 36; goto _test_eof; _test_eof18: cs = 18; goto _test_eof; _test_eof19: cs = 19; goto _test_eof; _test_eof20: cs = 20; goto _test_eof; _test_eof21: cs = 21; goto _test_eof; _test_eof22: cs = 22; goto _test_eof; _test_eof23: cs = 23; goto _test_eof; _test_eof37: cs = 37; goto _test_eof; _test_eof24: cs = 24; goto _test_eof; _test_eof25: cs = 25; goto _test_eof; _test_eof26: cs = 26; goto _test_eof; _test_eof27: cs = 27; goto _test_eof; _test_eof28: cs = 28; goto _test_eof; _test_eof29: cs = 29; goto _test_eof; _test_eof30: cs = 30; goto _test_eof; _test_eof31: cs = 31; goto _test_eof; _test_eof32: cs = 32; goto _test_eof; _test_eof: {} if ( p == eof ) { switch ( cs ) { case 33: case 34: case 35: case 37: #line 11 "jid.rl" { resource_start = p; } break; case 1: case 2: case 3: case 4: case 5: case 6: case 7: case 8: case 9: case 10: case 11: case 12: case 13: case 14: case 15: case 16: case 17: case 18: case 19: case 20: case 21: case 22: case 23: case 24: case 25: case 26: case 27: case 28: case 29: case 30: case 31: case 32: #line 15 "jid.rl" { ret = 0; } break; #line 813 "jid.c" } } _out: {} } #line 87 "jid.rl" if (ret) { node = mk_binary_term(env, node_start, node_end, 0, 0); domain = mk_binary_term(env, domain_start, domain_end, 0, 1); resource = mk_binary_term(env, resource_start, resource_end, 1, 1); return enif_make_tuple3(env, node, domain, resource); } else { return enif_make_atom(env, "error"); } } static ErlNifFunc nif_funcs[] = { {"string_to_usr", 1, string_to_usr} }; ERL_NIF_INIT(jid, nif_funcs, load, NULL, NULL, NULL)
5dec98736798771a045d5b2096f3d0837a365966
a5f3b0001cdb692aeffc444a16f79a0c4422b9d0
/main/cui/source/tabpages/chardlg.h
55aa3453da84c6cbf511dced6f2801b00f2a4d89
[ "Apache-2.0", "CPL-1.0", "bzip2-1.0.6", "LicenseRef-scancode-other-permissive", "Zlib", "LZMA-exception", "LGPL-2.0-or-later", "LicenseRef-scancode-free-unknown", "LicenseRef-scancode-philippe-de-muyter", "OFL-1.1", "LGPL-2.1-only", "MPL-1.1", "X11", "LGPL-2.1-or-later", "GPL-2.0-only", "OpenSSL", "LicenseRef-scancode-cpl-0.5", "GPL-1.0-or-later", "NPL-1.1", "MIT", "MPL-2.0", "LicenseRef-scancode-other-copyleft", "LicenseRef-scancode-unknown-license-reference", "MPL-1.0", "LicenseRef-scancode-openssl", "LicenseRef-scancode-ssleay-windows", "BSL-1.0", "LicenseRef-scancode-docbook", "LicenseRef-scancode-mit-old-style", "Python-2.0", "BSD-3-Clause", "IJG", "LicenseRef-scancode-warranty-disclaimer", "GPL-2.0-or-later", "LGPL-2.0-only", "LicenseRef-scancode-public-domain", "LicenseRef-scancode-unknown", "BSD-2-Clause", "Autoconf-exception-generic", "PSF-2.0", "NTP", "LicenseRef-scancode-python-cwi", "Afmparse", "W3C", "W3C-19980720", "curl", "LicenseRef-scancode-x11-xconsortium-veillard", "Bitstream-Vera", "HPND-sell-variant", "ICU" ]
permissive
apache/openoffice
b9518e36d784898c6c2ea3ebd44458a5e47825bb
681286523c50f34f13f05f7b87ce0c70e28295de
refs/heads/trunk
2023-08-30T15:25:48.357535
2023-08-28T19:50:26
2023-08-28T19:50:26
14,357,669
907
379
Apache-2.0
2023-08-16T20:49:37
2013-11-13T08:00:13
C++
UTF-8
C
false
false
2,342
h
chardlg.h
/************************************************************** * * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you 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. * *************************************************************/ #ifndef _SVX_CHARDLG_H #define _SVX_CHARDLG_H // define ---------------------------------------------------------------- #define CHRDLG_UNDERLINE_NONE 0 #define CHRDLG_UNDERLINE_SINGLE 1 #define CHRDLG_UNDERLINE_DOUBLE 2 #define CHRDLG_UNDERLINE_DOTTED 3 #define CHRDLG_UNDERLINE_DONTKNOW 4 #define CHRDLG_UNDERLINE_DASH 5 #define CHRDLG_UNDERLINE_LONGDASH 6 #define CHRDLG_UNDERLINE_DASHDOT 7 #define CHRDLG_UNDERLINE_DASHDOTDOT 8 #define CHRDLG_UNDERLINE_SMALLWAVE 9 #define CHRDLG_UNDERLINE_WAVE 10 #define CHRDLG_UNDERLINE_DOUBLEWAVE 11 #define CHRDLG_UNDERLINE_BOLD 12 #define CHRDLG_UNDERLINE_BOLDDOTTED 13 #define CHRDLG_UNDERLINE_BOLDDASH 14 #define CHRDLG_UNDERLINE_BOLDLONGDASH 15 #define CHRDLG_UNDERLINE_BOLDDASHDOT 16 #define CHRDLG_UNDERLINE_BOLDDASHDOTDOT 17 #define CHRDLG_UNDERLINE_BOLDWAVE 18 #define CHRDLG_STRIKEOUT_NONE 0 #define CHRDLG_STRIKEOUT_SINGLE 1 #define CHRDLG_STRIKEOUT_DOUBLE 2 #define CHRDLG_STRIKEOUT_DONTKNOW 3 #define CHRDLG_STRIKEOUT_BOLD 4 #define CHRDLG_STRIKEOUT_SLASH 5 #define CHRDLG_STRIKEOUT_X 6 #define CHRDLG_ENCLOSE_NONE 0 #define CHRDLG_ENCLOSE_ROUND 1 #define CHRDLG_ENCLOSE_SQUARE 2 #define CHRDLG_ENCLOSE_POINTED 3 #define CHRDLG_ENCLOSE_CURVED 4 #define CHRDLG_ENCLOSE_SPECIAL_CHAR 5 #define CHRDLG_POSITION_OVER 0 #define CHRDLG_POSITION_UNDER 1 #endif
daa4f4c56c2864cff229fb49cde9872c032f47fc
ca54045faebf354767db22518faf2cbe17797f86
/stub/stub_cpu.c
e26f5b654653c4c727cb6cce321060e721c2c61a
[ "MIT", "LicenseRef-scancode-unknown-license-reference" ]
permissive
open-simh/simh
f659873614bf54538f2c4fb7d92c8673ddcdfb85
d4f85d01bdf7301d5f7a2c4e51c3a84024561b26
refs/heads/master
2023-09-05T07:04:48.971084
2023-09-04T04:39:17
2023-09-04T04:39:17
498,052,344
288
87
NOASSERTION
2023-09-10T11:14:16
2022-05-30T18:16:34
C
UTF-8
C
false
false
3,326
c
stub_cpu.c
/* stub_cpu.c: Stub CPU simulator Copyright (c) 2020, Lars Brinkhoff Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL LARS BRINKHOFF BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. Except as contained in this notice, the name of Lars Brinkhoff shall not be used in advertising or otherwise to promote the sale, use or other dealings in this Software without prior written authorization from Lars Brinkhoff. */ #include "stub_defs.h" /* Debug */ #define DBG_CPU 0001 /* CPU state. */ static uint16 PC; /* Function declaration. */ static t_stat cpu_ex (t_value *vptr, t_addr ea, UNIT *uptr, int32 sw); static t_stat cpu_dep (t_value val, t_addr ea, UNIT *uptr, int32 sw); static t_stat cpu_reset (DEVICE *dptr); static UNIT cpu_unit = { UDATA (NULL, UNIT_FIX + UNIT_BINK, 020000) }; REG cpu_reg[] = { { ORDATAD (PC, PC, 13, "Program Counter") }, { NULL } }; static MTAB cpu_mod[] = { { 0 } }; static DEBTAB cpu_deb[] = { { "CPU", DBG_CPU }, { NULL, 0 } }; DEVICE cpu_dev = { "CPU", &cpu_unit, cpu_reg, cpu_mod, 0, 8, 16, 1, 8, 16, &cpu_ex, &cpu_dep, &cpu_reset, NULL, NULL, NULL, NULL, DEV_DEBUG, 0, cpu_deb, NULL, NULL, NULL, NULL, NULL, NULL }; t_stat sim_instr (void) { t_stat reason; if ((reason = build_dev_tab ()) != SCPE_OK) return reason; for (;;) { AIO_CHECK_EVENT; if (sim_interval <= 0) { if ((reason = sim_process_event()) != SCPE_OK) return reason; } if (sim_brk_summ && sim_brk_test(PC, SWMASK('E'))) return STOP_IBKPT; if (sim_step != 0) { if (--sim_step == 0) return SCPE_STEP; } } return SCPE_OK; } static t_stat cpu_ex (t_value *vptr, t_addr ea, UNIT *uptr, int32 sw) { if (vptr == NULL) return SCPE_ARG; if (ea >= 040000) return SCPE_NXM; *vptr = M[ea]; return SCPE_OK; } static t_stat cpu_dep (t_value val, t_addr ea, UNIT *uptr, int32 sw) { if (ea >= 040000) return SCPE_NXM; M[ea] = val & 0177777; return SCPE_OK; } static t_bool pc_is_a_subroutine_call (t_addr **ret_addrs) { return FALSE; } static t_stat cpu_reset (DEVICE *dptr) { sim_brk_types = SWMASK('D') | SWMASK('E'); sim_brk_dflt = SWMASK ('E'); sim_vm_is_subroutine_call = &pc_is_a_subroutine_call; return SCPE_OK; }