content
stringlengths
4
1.04M
lang
stringclasses
358 values
score
int64
0
5
repo_name
stringlengths
5
114
repo_path
stringlengths
4
229
repo_licenses
listlengths
1
8
import * as React from 'react'; import { useUtils, MuiPickersAdapter } from './useUtils'; import { DateValidationProps, RangeInput, validateDate, validateDateRange } from '../date-utils'; import { DateTimeValidationProps, validateDateTime } from '../date-time-utils'; import { TimeValidationProps, validateTime } from '../time-utils'; export interface ValidationProps<TError, TDateValue> { /** * Callback that fired when input value or new `value` prop validation returns **new** validation error (or value is valid after error). * In case of validation error detected `reason` prop return non-null value and `TextField` must be displayed in `error` state. * This can be used to render appropriate form error. * * [Read the guide](https://next.material-ui-pickers.dev/guides/forms) about form integration and error displaying. * @DateIOType */ onError?: (reason: TError, value: TDateValue) => void; value: TDateValue; } type InferError<Props> = Props extends ValidationProps<infer TError, any> ? TError : never; type InferDate<Props> = Props extends ValidationProps<any, infer TDate> ? TDate : never; function isSameDateOrTimeError(a: unknown, b: unknown) { return a === b; } function isSameDateRangeError(a: DateRangeValidationError, b: DateRangeValidationError | null) { return b !== null && a[1] === b[1] && a[0] === b[0]; } function useValidation<TProps extends ValidationProps<any, any>>( props: TProps, validate: ( // TDate inference impossible from TDateValue given that date ranges exists // It's unclear whether [Date, Date] is a custom date type or a date range. utils: MuiPickersAdapter<any>, value: InferDate<TProps>, props: TProps, ) => InferError<TProps>, isSameError: ( a: InferError<TProps>, b: InferError<TProps> | null, ) => boolean = isSameDateOrTimeError, ): InferError<TProps> { const { value, onError } = props; const utils = useUtils(); const previousValidationErrorRef = React.useRef<InferError<TProps> | null>(null); const validationError = validate(utils, value, props); React.useEffect(() => { if (onError && !isSameError(validationError, previousValidationErrorRef.current)) { onError(validationError, value); } previousValidationErrorRef.current = validationError; }, [isSameError, onError, previousValidationErrorRef, validationError, value]); return validationError; } export type TimeValidationError = import('../time-utils').TimeValidationError; export function useTimeValidation<TDate>( props: TimeValidationProps<TDate> & ValidationProps<TimeValidationError, TDate>, ): TimeValidationError { return useValidation(props, validateTime, isSameDateOrTimeError); } export type DateValidationError = import('../date-utils').DateValidationError; export function useDateValidation<TDate>( props: DateValidationProps<TDate> & ValidationProps<DateValidationError, TDate>, ): DateValidationError { return useValidation(props, validateDate, isSameDateOrTimeError); } export type DateTimeValidationError = import('../date-time-utils').DateTimeValidationError; export function useDateTimeValidation<TDate>( props: DateTimeValidationProps<TDate> & ValidationProps<DateTimeValidationError, TDate>, ): DateTimeValidationError { return useValidation(props, validateDateTime, isSameDateOrTimeError); } export type DateRangeValidationError = import('../date-utils').DateRangeValidationError; export function useDateRangeValidation<TDate>( props: DateValidationProps<TDate> & ValidationProps<DateRangeValidationError, RangeInput<TDate>>, ): DateRangeValidationError { return useValidation(props, validateDateRange, isSameDateRangeError); }
TypeScript
5
good-gym/material-ui
packages/material-ui-lab/src/internal/pickers/hooks/useValidation.ts
[ "MIT" ]
<html> <body> <script type="text/javascript" charset="utf-8"> document.onmouseup = function(e) { require('electron').ipcRenderer.sendToHost('mouseup', e.x, e.y, e.shiftKey, e.ctrlKey); } </script> </body> </html>
HTML
2
lingxiao-Zhu/electron
spec/fixtures/pages/onmouseup.html
[ "MIT" ]
<svg xmlns="http://www.w3.org/2000/svg" height="16" width="16"><path d="M6 3c-1 0-1.5.5-1.5 1.5v7c0 1 .5 1.5 1.5 1.5h4c1 0 1.5-.5 1.5-1.5v-7c0-1-.5-1.5-1.5-1.5z"/></svg>
SVG
1
MMeent/pdf.js
web/images/secondaryToolbarButton-spreadNone.svg
[ "Apache-2.0" ]
<div class="masthead clearfix"> <div class="inner"> <h3 class="masthead-brand">Vandelay Industries</h3> <nav> <ul class="nav masthead-nav"> <li class="active"><a href="/">Home</a></li> <li><a href="https://medium.com/@bertrandom/unfundable-slack-bots-9369a75fdd">How it works</a></li> </ul> </nav> </div> </div> <div class="inner cover"> <h1 class="cover-heading">Vandelay Industries</h1> <p class="lead">Post gifs from Seinfeld to Slack.</p> <p class="lead"> <a href="https://slack.com/oauth/authorize?scope=commands&client_id=2801432197.23364704784"><img alt="Add to Slack" height="40" width="139" src="https://platform.slack-edge.com/img/add_to_slack.png" srcset="https://platform.slack-edge.com/img/add_to_slack.png 1x, https://platform.slack-edge.com/img/add_to_slack@2x.png 2x"></a> </p> </div>
Harbour
3
bertrandom/vandelayindustries-slack-server
views/home.hb
[ "ISC" ]
static const uint32_t in_com1[128] = { 0x3f5fb92f, 0x3ea747ed, 0xbf03d245, 0xbe217751, 0x3f0d52ec, 0xbe5d25c8, 0x3e8b5b01, 0x3deb1ad1, 0xbe26468f, 0x3f15f863, 0xbef779eb, 0x3e9e4168, 0x3e3b9a00, 0x3e651db9, 0xbefcfff2, 0xbe9ba0c7, 0x3e85d0e3, 0xbea6c8db, 0xbec376bb, 0x3ee9701e, 0x3e5b7279, 0xbef8254f, 0x3f0f914c, 0x3f5af068, 0xbf37d326, 0xbe6a8921, 0xbe985a21, 0x3e920446, 0x3da5e8e3, 0xbe5c5643, 0x3e9f09d6, 0x3f10e0da, 0xbe252b96, 0xbe01794a, 0xbdd2684b, 0xbe8b0ec0, 0xbf02c5b3, 0xbeacf299, 0xbecd7401, 0xbd5f6d6b, 0x3ef627f6, 0xbd55d25c, 0xbd855893, 0xbdc8de94, 0xbe96e244, 0xbe2567c0, 0x3e36d6da, 0xbdd7ef39, 0xbf26352e, 0x3f0a676c, 0x3f1cf448, 0xbe739ea3, 0xbe2c8813, 0xbe37191b, 0x3f538601, 0xbd916145, 0x3f800000, 0x3f4aef73, 0x3f06f224, 0x3eb1b756, 0xbece2a10, 0x3c6c0aef, 0xbe5e3e2a, 0xbf04828b, 0x3ea652de, 0x3e02608a, 0x3e9e929b, 0xbf19e64b, 0xbe968b07, 0x3f1b5797, 0x3f3a3255, 0x3db172f3, 0x3f2d8c5c, 0x3e99167b, 0xbe80d8e2, 0x3e08bb2b, 0xbf2944fd, 0x3f07f9f8, 0xbeb6b4e9, 0x3e45944a, 0x3ee99dbb, 0x3eaef419, 0x3f008815, 0x3f211e1c, 0xbdf8b106, 0xbef1daf4, 0xbc25ec08, 0x3b07b9d3, 0xbf1e3805, 0xbe931518, 0xbd4ac396, 0x3ea7ed59, 0xbe8813c8, 0x3e58cc53, 0xbd8c4505, 0x3e67f950, 0x3e6e3376, 0x3eb1f6b5, 0x3bb56213, 0xbe89206a, 0x3e8d8e9f, 0xbf1ece09, 0xbe652007, 0x3f0f8511, 0xbef8250a, 0xbf1ac097, 0xbeb98f5a, 0x3ec00e0c, 0x3eebe972, 0xbec08ba8, 0xbeabb1b0, 0xbe39d9ac, 0x3e821390, 0xbe2d5046, 0x3d9f99b3, 0xbe0084fb, 0x3eb8b401, 0xbf19f10d, 0xbdb7e0c8, 0x3d14b66c, 0xbe6333f0, 0xbefc28fa, 0xbf4cf8bb, 0xbe5f6060, 0xbecc3a12, 0x3ed776af, 0xbf37ec48, 0x3d7d6c47 }; static const uint32_t in_com2[128] = { 0x3b6eb868, 0xbd2430de, 0x3eca9bf4, 0xbe9c1ec7, 0xbf0680bf, 0xbea8306e, 0xbe483082, 0xbe677ac9, 0x3ea3b31d, 0xbead6019, 0x3f240026, 0xbe02a6f7, 0x3de3e4f0, 0x3ea40a70, 0xbe585ef7, 0x3cbf85a4, 0x3e4d051c, 0xbe26b30f, 0xbe41e38c, 0x3e9ed480, 0x3eb401f2, 0xbf1412aa, 0x3f169ebb, 0x3eb52f6a, 0xbe9c6d8a, 0x3ed99ae1, 0x3f089878, 0x3da0d45d, 0xbe295873, 0x3de46287, 0x3d101b74, 0x3c9bf827, 0x3e72defe, 0x3c0ba712, 0xbec8e006, 0x3e3dabcd, 0x3f087d26, 0x3eadd468, 0xbd5eb667, 0x3f37e2af, 0xbef02ed9, 0xbdc17516, 0x3dc63820, 0x3da9f8dd, 0x3e79bea9, 0xbe1ab90d, 0x3f0d7404, 0xbd9568b7, 0x3cc4b97e, 0xbe93dd86, 0xbc01437a, 0xbee50712, 0x3e9b5302, 0x3ead2ae2, 0xbd87dd23, 0x3e5bbf90, 0xbe2f9d84, 0xbdea7818, 0xbf28d979, 0xbf230578, 0xbe3d759c, 0x3e277724, 0x3cc61feb, 0x3eedd09a, 0x3ea5f9ba, 0xbf4b36a5, 0x3dc2b692, 0x3eafa5c3, 0x3af93599, 0xbf1a9b28, 0xbf3e3d30, 0xbeba5702, 0xbba2d1ce, 0x3d152876, 0x3ebaf8a2, 0xbc42f85b, 0x3ec3f0be, 0xbde10f6e, 0xbeffeb32, 0xbd5c6b24, 0x3ef9a122, 0x3d85f065, 0x3dfd8d2a, 0x3e85ed84, 0xbef00f94, 0x3df9126e, 0x3dbbf701, 0x3ec624ac, 0xbe841af0, 0x3e81a00a, 0x3eb71974, 0xbef9a551, 0xbe994538, 0xbeec8054, 0xbd1d76a2, 0xbf800000, 0x3de55f4a, 0xbf0b920f, 0x3ecffc83, 0x3e6aac65, 0xbe52ed66, 0x3ced6727, 0xbe3a02ec, 0xbe317b71, 0xbe49a152, 0x3f1f7509, 0x3ec1f274, 0x3e801497, 0xbe420c2f, 0x3e9f078f, 0x3e2edd8d, 0x3dc2e880, 0x3e401daa, 0xbe6692e6, 0x3f35664a, 0x3f07dda9, 0x3f0664c6, 0x3d97e2ef, 0xbf281c5e, 0xbe9a134a, 0x3e8d1440, 0x3c6231b5, 0x3ede4949, 0xbee22899, 0x3dd17c57, 0x3e992ebd, 0x3f38261d, 0xbcb14667 }; static const uint32_t in_partial1[128] = { 0xbed15588, 0x3eb4b9b8, 0xbe59a3fb, 0xbda22722, 0xbe529696, 0x3ee317e7, 0xbd13c371, 0xbe299e91, 0xbeb9c37f, 0xbdb9aa86, 0xbf26b4d9, 0x3d2bca34, 0xbdf75c41, 0xbe0e1dbd, 0x3e8861ee, 0x3e30b9ae, 0xbe55b0fd, 0x3f800000, 0x3e9f1598, 0xbf3791b2, 0x3e0cfe56, 0xbee39721, 0xbef1a9c0, 0xbe9c3efe, 0xbd097af3, 0x3bccfed4, 0x3d35fc82, 0x3ee70b7a, 0xbf5fd9e8, 0x3da9bae3, 0xbe083620, 0xbb8346f5, 0x3df5307e, 0xbf5044d0, 0x3cfd05cf, 0xbe625e19, 0xbe18fa6b, 0xbdb32b24, 0xbb6e91ee, 0x3e5b3e60, 0x3f4b92ae, 0xbe1fd999, 0x3b95c3e7, 0xbf3790d4, 0xbe8a5de9, 0x3e3dadfa, 0xbee1a556, 0x3e69eaa4, 0xbd303eb3, 0xbcd0d125, 0xbe0dbaaf, 0x3e4844dd, 0x3f0122fa, 0xbe5f3b85, 0xbdbfa568, 0x3f09e2f8, 0x3e5f026c, 0xbed41c6b, 0x3d9b78cf, 0xbe1883b9, 0x3a879fcd, 0x3e38ccdd, 0xbd521a29, 0x3c7e1b72, 0xbe9777dc, 0x3db12915, 0xbd923119, 0xbef9a7e0, 0xbf090579, 0x3ea396f8, 0xbed755af, 0xbeb20d43, 0x3ef411e4, 0xbe0b480b, 0x3e8ffd9a, 0xbef63953, 0xbe08c93d, 0x3eb92913, 0x3d81d2ab, 0x3efcfcf8, 0x3f7df12c, 0xbe1de6a5, 0x3f707934, 0x3efd3005, 0x3f629082, 0x3e654790, 0xbf6eecd2, 0x3ecf382f, 0x3ea8114a, 0xbec2ea9f, 0xbf49306a, 0x3b3f641f, 0x3dc5a538, 0x3ebb77b3, 0x3e774158, 0x3c46fdea, 0x3e6090be, 0xbecac716, 0x3dccdb8e, 0xbde14f85, 0xbf2ac5ca, 0x3e18c33e, 0xbe1ef5dc, 0xbe5b1477, 0xbd55be22, 0xbd6978ff, 0x3f1c910a, 0x3e5429f9, 0x3ed21298, 0xbeba7a98, 0x3e0142c4, 0x3f3538b9, 0x3e98a36a, 0x3eebeea0, 0xbe3d35b4, 0xbf2f95ce, 0x3ec545b4, 0x3e1af15a, 0x3f365531, 0x3ea3f651, 0xbc53c100, 0xbe32b887, 0xbe9fc713, 0xbf1cc3a0, 0x3ccbf8c0, 0xbbd60980, 0xbea6502d, 0x3e5878eb }; static const uint32_t in_partial2[128] = { 0x3d9c7fd4, 0x3eb388ec, 0x3e414f06, 0xbe02c4df, 0xbf1438b6, 0x3ed3acff, 0x3d8cf45c, 0xbdba8cf3, 0x3eb6f923, 0x3f2e2d7b, 0xbf14a6a0, 0x3e835928, 0x3f526839, 0xbf800000, 0xbeb8caaa, 0xbe199ef8, 0x3e1489f5, 0x3f323342, 0x3eb38771, 0xbf3fd12b, 0x3f71c7f1, 0x3e68fb45, 0xbdb3ce10, 0x3f487459, 0xbeae2e3b, 0xbf51eca4, 0x3d82c39e, 0xbe2d0fc1, 0x3ec1e725, 0xbf59dc33, 0x3f021882, 0x3d305dee, 0xbe05a5cb, 0xbe52d4d5, 0x3e72e227, 0xbe363685, 0x3f679479, 0x3e0cfa43, 0x3e5e3d04, 0xbe5f03d7, 0x3e310209, 0x3f720920, 0x3e9dbfa3, 0xbe2e6aff, 0xbe53e66a, 0x3e832dc0, 0xbda1fe06, 0x3eed4a40, 0xbe91e21b, 0xbf1189f6, 0xbde8681a, 0xbd3b04ce, 0x3f7d0476, 0x3f11c049, 0xbde7dc78, 0xbf149b4b, 0xbe6dbd69, 0xbe9e9f95, 0xbd598429, 0x3e4e81fd, 0x3dabda61, 0xbcc2904c, 0xbe90ab20, 0xbef19658, 0x3d933b78, 0x3c6271d2, 0x3e25677c, 0x3f0b9507, 0x3e177153, 0xbba9c9dd, 0xbe4410bc, 0xbf0a3b6b, 0x3edaabe6, 0x3f5a7bc1, 0xbde7f2e4, 0x3f13e21f, 0x3e449465, 0x3e574779, 0xbee08a0f, 0xbf170164, 0x3e78b0c2, 0x3e999953, 0xbf441e40, 0x3df3a0b9, 0xbeccda66, 0xbf3cd7d7, 0x3ea81efa, 0xbd97ab3c, 0xbf3b7471, 0x3f3a338f, 0xbe9b174c, 0x3dd40049, 0x3f6a0911, 0xbee46560, 0xbf05e6d1, 0x3ee20af2, 0xbf3d484a, 0x3ebff17f, 0x3de1ec0a, 0xbf17460d, 0xbf60449e, 0x3f097504, 0x3f6afca2, 0x3ebd2a70, 0xbe40edf4, 0xbd9d3742, 0x3ec718bd, 0xbcfdf767, 0x3e377b80, 0x3db19bf3, 0xbdfe53bd, 0xbe8a12eb, 0xbe04ef0c, 0xbdea748a, 0xbf0b8c1f, 0xbf036abc, 0x3e79476d, 0xbd7c75d1, 0xbf486eb6, 0x3e17e113, 0x3f44646c, 0xbdd5908c, 0xbf19ca94, 0xbe191bed, 0xbd0dde3c, 0x3f4ddd49, 0xbd77704e, 0xbe8ea7d6 }; static const uint32_t in_levinson_durbin_3_0[4] = { 0x3f800000, 0xbc325142, 0x3dc53bc3, 0xbc126c9c }; static const uint32_t in_levinson_durbin_8_1[9] = { 0x3f800000, 0xbea33bfb, 0xbedff1ae, 0x3eb6eac1, 0x3e0d5fad, 0xbda96491, 0xbd84808a, 0x3d8cc977, 0x3c16ec8b }; static const uint32_t in_levinson_durbin_11_2[12] = { 0x3f800000, 0x3ec5d65b, 0x3e5d64b1, 0x3e31ebce, 0xbd9b5b79, 0xbd8985e8, 0xbed99c7d, 0xbe811a8d, 0xbddbffbc, 0xbe28f6ce, 0xbd330242, 0xbd268e1f }; static const uint32_t in_levinson_durbin_err[3] = { 0x3f7d96a4, 0x3edbd552, 0x3f19ebd2 }; static const uint32_t ref_correlate_4_1[7] = { 0x0, 0x0, 0x0, 0x3b509f51, 0x3a9bfd5d, 0xbaf5d8e1, 0xba16913c }; static const uint32_t ref_correlate_4_2[7] = { 0x0, 0x0, 0xbd0f7d56, 0xbc226c2f, 0x3cb2d791, 0x3b91a84b, 0xba16913c }; static const uint32_t ref_correlate_4_3[7] = { 0x0, 0x3eb11069, 0x3dc10aa6, 0xbe5acf33, 0xbd26293d, 0x3b91a84b, 0xba16913c }; static const uint32_t ref_correlate_4_8[15] = { 0xbe4a4b68, 0xbe7a9422, 0xbe702dae, 0xbedc3fac, 0xbe73e03b, 0x3f118c2f, 0x3eab1179, 0xbe299324, 0xbd26293d, 0x3b91a84b, 0xba16913c, 0x0, 0x0, 0x0, 0x0 }; static const uint32_t ref_correlate_4_11[21] = { 0x3f0f52c3, 0xbdb167d1, 0xbe24f6a2, 0xbca1b780, 0xbeb63e9e, 0xbe91e6d3, 0xbedc3fac, 0xbe73e03b, 0x3f118c2f, 0x3eab1179, 0xbe299324, 0xbd26293d, 0x3b91a84b, 0xba16913c, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0 }; static const uint32_t ref_correlate_5_1[9] = { 0x0, 0x0, 0x0, 0x0, 0x3b509f51, 0x3a9bfd5d, 0xbaf5d8e1, 0xba16913c, 0x3b03c8e4 }; static const uint32_t ref_correlate_5_2[9] = { 0x0, 0x0, 0x0, 0xbd0f7d56, 0xbc226c2f, 0x3cb2d791, 0x3b91a84b, 0xbcb9fcbc, 0x3b03c8e4 }; static const uint32_t ref_correlate_5_3[9] = { 0x0, 0x0, 0x3eb11069, 0x3dc10aa6, 0xbe5acf33, 0xbd26293d, 0x3e64404f, 0xbcb9fcbc, 0x3b03c8e4 }; static const uint32_t ref_correlate_5_8[15] = { 0xbe4a4b68, 0xbe7a9422, 0xbe702dae, 0xbedc3fac, 0xbeb9d4eb, 0x3eebd696, 0x3e1c70a3, 0xbee94a87, 0xbe55e95a, 0x3e64404f, 0xbcb9fcbc, 0x3b03c8e4, 0x0, 0x0, 0x0 }; static const uint32_t ref_correlate_5_11[21] = { 0x3f0f52c3, 0xbdb167d1, 0xbe24f6a2, 0xbca1b780, 0xbb161b4b, 0xbef19cea, 0xbe81e0ff, 0xbeb9d4eb, 0x3eebd696, 0x3e1c70a3, 0xbee94a87, 0xbe55e95a, 0x3e64404f, 0xbcb9fcbc, 0x3b03c8e4, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0 }; static const uint32_t ref_correlate_6_1[11] = { 0x0, 0x0, 0x0, 0x0, 0x0, 0x3b509f51, 0x3a9bfd5d, 0xbaf5d8e1, 0xba16913c, 0x3b03c8e4, 0xba4e386d }; static const uint32_t ref_correlate_6_2[11] = { 0x0, 0x0, 0x0, 0x0, 0xbd0f7d56, 0xbc226c2f, 0x3cb2d791, 0x3b91a84b, 0xbcb9fcbc, 0x3c2ec8a4, 0xba4e386d }; static const uint32_t ref_correlate_6_3[11] = { 0x0, 0x0, 0x0, 0x3eb11069, 0x3dc10aa6, 0xbe5acf33, 0xbd26293d, 0x3e64404f, 0xbddd85b7, 0x3c2ec8a4, 0xba4e386d }; static const uint32_t ref_correlate_6_8[15] = { 0xbe4a4b68, 0xbe7a9422, 0xbe702dae, 0xbedc3fac, 0xbeb9d4eb, 0x3f026abe, 0x3e47ac7e, 0xbec4f7de, 0xbdc370b7, 0x3e93d78e, 0xbddd85b7, 0x3c2ec8a4, 0xba4e386d, 0x0, 0x0 }; static const uint32_t ref_correlate_6_11[21] = { 0x3f0f52c3, 0xbdb167d1, 0xbe24f6a2, 0xbca1b780, 0xbb161b4b, 0xbf1c398a, 0xbe38df38, 0xbedd2f5e, 0x3f026abe, 0x3e47ac7e, 0xbec4f7de, 0xbdc370b7, 0x3e93d78e, 0xbddd85b7, 0x3c2ec8a4, 0xba4e386d, 0x0, 0x0, 0x0, 0x0, 0x0 }; static const uint32_t ref_correlate_9_1[17] = { 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x3b509f51, 0x3a9bfd5d, 0xbaf5d8e1, 0xba16913c, 0x3b03c8e4, 0xba4e386d, 0x3a81f2fd, 0x39db3c48, 0xba1b0d5f }; static const uint32_t ref_correlate_9_2[17] = { 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0xbd0f7d56, 0xbc226c2f, 0x3cb2d791, 0x3b91a84b, 0xbcb9fcbc, 0x3c2ec8a4, 0xbc3fa553, 0xbb6c9a9e, 0x3be2fda7, 0xba1b0d5f }; static const uint32_t ref_correlate_9_3[17] = { 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x3eb11069, 0x3dc10aa6, 0xbe5acf33, 0xbd26293d, 0x3e64404f, 0xbddd85b7, 0x3df26e7c, 0x3d0a290d, 0xbd8afdcd, 0x3be2fda7, 0xba1b0d5f }; static const uint32_t ref_correlate_9_8[17] = { 0x0, 0xbe4a4b68, 0xbe7a9422, 0xbe702dae, 0xbedc3fac, 0xbeb9d4eb, 0x3f026abe, 0x3e08ab84, 0xbeed7f9e, 0xbe2eab46, 0x3e0f23d1, 0xbe4ae353, 0x3e2cbba5, 0x3daa7b83, 0xbd8afdcd, 0x3be2fda7, 0xba1b0d5f }; static const uint32_t ref_correlate_9_11[21] = { 0x3f0f52c3, 0xbdb167d1, 0xbe24f6a2, 0xbca1b780, 0xbb161b4b, 0xbf1c398a, 0xbbca4ebc, 0xbee6b871, 0x3ee839e2, 0x3e668f35, 0xbf040a37, 0xbe2eab46, 0x3e0f23d1, 0xbe4ae353, 0x3e2cbba5, 0x3daa7b83, 0xbd8afdcd, 0x3be2fda7, 0xba1b0d5f, 0x0, 0x0 }; static const uint32_t ref_correlate_10_1[19] = { 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x3b509f51, 0x3a9bfd5d, 0xbaf5d8e1, 0xba16913c, 0x3b03c8e4, 0xba4e386d, 0x3a81f2fd, 0x39db3c48, 0xba1b0d5f, 0x3b0bd8f3 }; static const uint32_t ref_correlate_10_2[19] = { 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0xbd0f7d56, 0xbc226c2f, 0x3cb2d791, 0x3b91a84b, 0xbcb9fcbc, 0x3c2ec8a4, 0xbc3fa553, 0xbb6c9a9e, 0x3be2fda7, 0xbcc537eb, 0x3b0bd8f3 }; static const uint32_t ref_correlate_10_3[19] = { 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x3eb11069, 0x3dc10aa6, 0xbe5acf33, 0xbd26293d, 0x3e64404f, 0xbddd85b7, 0x3df26e7c, 0x3d0a290d, 0xbd8afdcd, 0x3e747aa2, 0xbcc537eb, 0x3b0bd8f3 }; static const uint32_t ref_correlate_10_8[19] = { 0x0, 0x0, 0xbe4a4b68, 0xbe7a9422, 0xbe702dae, 0xbedc3fac, 0xbeb9d4eb, 0x3f026abe, 0x3e08ab84, 0xbeed7f9e, 0xbe2eab46, 0x3bf11816, 0xbea014e5, 0xbcc298d4, 0xbe65effe, 0xbe7c69af, 0x3e747aa2, 0xbcc537eb, 0x3b0bd8f3 }; static const uint32_t ref_correlate_10_11[21] = { 0x3f0f52c3, 0xbdb167d1, 0xbe24f6a2, 0xbca1b780, 0xbb161b4b, 0xbf1c398a, 0xbbca4ebc, 0xbee6b871, 0x3ee839e2, 0x3f19b703, 0xbf36d2cb, 0x3c890723, 0x3bf11816, 0xbea014e5, 0xbcc298d4, 0xbe65effe, 0xbe7c69af, 0x3e747aa2, 0xbcc537eb, 0x3b0bd8f3, 0x0 }; static const uint32_t ref_correlate_11_1[21] = { 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x3b509f51, 0x3a9bfd5d, 0xbaf5d8e1, 0xba16913c, 0x3b03c8e4, 0xba4e386d, 0x3a81f2fd, 0x39db3c48, 0xba1b0d5f, 0x3b0bd8f3, 0xbae6c59c }; static const uint32_t ref_correlate_11_2[21] = { 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0xbd0f7d56, 0xbc226c2f, 0x3cb2d791, 0x3b91a84b, 0xbcb9fcbc, 0x3c2ec8a4, 0xbc3fa553, 0xbb6c9a9e, 0x3be2fda7, 0xbcc537eb, 0x3cb03476, 0xbae6c59c }; static const uint32_t ref_correlate_11_3[21] = { 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x3eb11069, 0x3dc10aa6, 0xbe5acf33, 0xbd26293d, 0x3e64404f, 0xbddd85b7, 0x3df26e7c, 0x3d0a290d, 0xbd8afdcd, 0x3e747aa2, 0xbe5c83f3, 0x3cb03476, 0xbae6c59c }; static const uint32_t ref_correlate_11_8[21] = { 0x0, 0x0, 0x0, 0xbe4a4b68, 0xbe7a9422, 0xbe702dae, 0xbedc3fac, 0xbeb9d4eb, 0x3f026abe, 0x3e08ab84, 0xbeed7f9e, 0xbe2eab46, 0x3bf11816, 0xbe5046f0, 0x3d90dfee, 0xbd86b256, 0x3bf45bb3, 0x3ec5b357, 0xbe5c83f3, 0x3cb03476, 0xbae6c59c }; static const uint32_t ref_correlate_11_11[21] = { 0x3f0f52c3, 0xbdb167d1, 0xbe24f6a2, 0xbca1b780, 0xbb161b4b, 0xbf1c398a, 0xbbca4ebc, 0xbee6b871, 0x3ee839e2, 0x3f19b703, 0xbf830bf5, 0x3e38bb2e, 0xbe16b706, 0xbe5046f0, 0x3d90dfee, 0xbd86b256, 0x3bf45bb3, 0x3ec5b357, 0xbe5c83f3, 0x3cb03476, 0xbae6c59c }; static const uint32_t ref_correlate_12_1[23] = { 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x3b509f51, 0x3a9bfd5d, 0xbaf5d8e1, 0xba16913c, 0x3b03c8e4, 0xba4e386d, 0x3a81f2fd, 0x39db3c48, 0xba1b0d5f, 0x3b0bd8f3, 0xbae6c59c, 0x3a9392cd }; static const uint32_t ref_correlate_12_2[23] = { 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0xbd0f7d56, 0xbc226c2f, 0x3cb2d791, 0x3b91a84b, 0xbcb9fcbc, 0x3c2ec8a4, 0xbc3fa553, 0xbb6c9a9e, 0x3be2fda7, 0xbcc537eb, 0x3cb03476, 0xbc67d8eb, 0x3a9392cd }; static const uint32_t ref_correlate_12_3[23] = { 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x3eb11069, 0x3dc10aa6, 0xbe5acf33, 0xbd26293d, 0x3e64404f, 0xbddd85b7, 0x3df26e7c, 0x3d0a290d, 0xbd8afdcd, 0x3e747aa2, 0xbe5c83f3, 0x3e134693, 0xbc67d8eb, 0x3a9392cd }; static const uint32_t ref_correlate_12_8[23] = { 0x0, 0x0, 0x0, 0x0, 0xbe4a4b68, 0xbe7a9422, 0xbe702dae, 0xbedc3fac, 0xbeb9d4eb, 0x3f026abe, 0x3e08ab84, 0xbeed7f9e, 0xbe2eab46, 0x3bf11816, 0xbe5046f0, 0x3a638110, 0xbe0139b6, 0xbdc0abfd, 0x3e651b08, 0xbe9e836a, 0x3e134693, 0xbc67d8eb, 0x3a9392cd }; static const uint32_t ref_correlate_12_11[23] = { 0x0, 0x3f0f52c3, 0xbdb167d1, 0xbe24f6a2, 0xbca1b780, 0xbb161b4b, 0xbf1c398a, 0xbbca4ebc, 0xbee6b871, 0x3ee839e2, 0x3f19b703, 0xbf830bf5, 0x3ec1bf95, 0xbe80f251, 0xbdd62922, 0x3a638110, 0xbe0139b6, 0xbdc0abfd, 0x3e651b08, 0xbe9e836a, 0x3e134693, 0xbc67d8eb, 0x3a9392cd }; static const uint32_t ref_correlate_13_1[25] = { 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x3b509f51, 0x3a9bfd5d, 0xbaf5d8e1, 0xba16913c, 0x3b03c8e4, 0xba4e386d, 0x3a81f2fd, 0x39db3c48, 0xba1b0d5f, 0x3b0bd8f3, 0xbae6c59c, 0x3a9392cd, 0x3a2ef04f }; static const uint32_t ref_correlate_13_2[25] = { 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0xbd0f7d56, 0xbc226c2f, 0x3cb2d791, 0x3b91a84b, 0xbcb9fcbc, 0x3c2ec8a4, 0xbc3fa553, 0xbb6c9a9e, 0x3be2fda7, 0xbcc537eb, 0x3cb03476, 0xbc67d8eb, 0xbbcbc03c, 0x3a2ef04f }; static const uint32_t ref_correlate_13_3[25] = { 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x3eb11069, 0x3dc10aa6, 0xbe5acf33, 0xbd26293d, 0x3e64404f, 0xbddd85b7, 0x3df26e7c, 0x3d0a290d, 0xbd8afdcd, 0x3e747aa2, 0xbe5c83f3, 0x3e134693, 0x3d6efd60, 0xbbcbc03c, 0x3a2ef04f }; static const uint32_t ref_correlate_13_8[25] = { 0x0, 0x0, 0x0, 0x0, 0x0, 0xbe4a4b68, 0xbe7a9422, 0xbe702dae, 0xbedc3fac, 0xbeb9d4eb, 0x3f026abe, 0x3e08ab84, 0xbeed7f9e, 0xbe2eab46, 0x3bf11816, 0xbe5046f0, 0x3a638110, 0xbe2ba232, 0xbe0502f5, 0x3e277ac1, 0xbecfcbe5, 0x3db424c0, 0x3d6efd60, 0xbbcbc03c, 0x3a2ef04f }; static const uint32_t ref_correlate_13_11[25] = { 0x0, 0x0, 0x3f0f52c3, 0xbdb167d1, 0xbe24f6a2, 0xbca1b780, 0xbb161b4b, 0xbf1c398a, 0xbbca4ebc, 0xbee6b871, 0x3ee839e2, 0x3f19b703, 0xbf830bf5, 0x3ec1bf95, 0xbe09b5de, 0xbe2a9b50, 0x3d737aa5, 0xbe2ba232, 0xbe0502f5, 0x3e277ac1, 0xbecfcbe5, 0x3db424c0, 0x3d6efd60, 0xbbcbc03c, 0x3a2ef04f }; static const uint32_t ref_conv_4_1[4] = { 0x3b509f51, 0x3a9bfd5d, 0xbaf5d8e1, 0xba16913c }; static const uint32_t ref_conv_4_2[5] = { 0x3b509f51, 0xbd0a9d6c, 0xbc754f20, 0x3ca46331, 0x3bcf1e84 }; static const uint32_t ref_conv_4_3[6] = { 0x3b509f51, 0xbd0a9d6c, 0x3ea965f0, 0x3e18f10f, 0xbe4a2f7c, 0xbd7f9506 }; static const uint32_t ref_conv_4_8[11] = { 0x3b509f51, 0xbd0a9d6c, 0x3ea965f0, 0xbdefdcdb, 0xbf41984d, 0xbeba6e45, 0x3d25ae50, 0xbc1a7d6a, 0x3da0fd36, 0x3e16c2ea, 0x3d12001c }; static const uint32_t ref_conv_4_11[14] = { 0x3b509f51, 0xbd0a9d6c, 0x3ea965f0, 0xbdefdcdb, 0xbf41984d, 0xbeba6e45, 0x3d25ae50, 0xbc1a7d6a, 0x3eb74ebf, 0xbd353602, 0x3ea3f539, 0x3eaaa0c4, 0xbe8d8eff, 0xbdcee10f }; static const uint32_t ref_conv_5_1[5] = { 0x3b509f51, 0x3a9bfd5d, 0xbaf5d8e1, 0xba16913c, 0x3b03c8e4 }; static const uint32_t ref_conv_5_2[6] = { 0x3b509f51, 0xbd0a9d6c, 0xbc754f20, 0x3ca46331, 0x3c08817b, 0xbcb54832 }; static const uint32_t ref_conv_5_3[7] = { 0x3b509f51, 0xbd0a9d6c, 0x3ea965f0, 0x3e18f10f, 0xbe482059, 0xbdad1c8f, 0x3e5fb30c }; static const uint32_t ref_conv_5_8[12] = { 0x3b509f51, 0xbd0a9d6c, 0x3ea965f0, 0xbdefdcdb, 0xbf411484, 0xbec5c2c9, 0x3e848f50, 0xbe3606e1, 0xbe58834e, 0xbd0bbd90, 0xbd940711, 0xbdff9337 }; static const uint32_t ref_conv_5_11[15] = { 0x3b509f51, 0xbd0a9d6c, 0x3ea965f0, 0xbdefdcdb, 0xbf411484, 0xbec5c2c9, 0x3e848f50, 0xbe3606e1, 0x3d8b3728, 0xbe66ffce, 0x3e5966e2, 0x3e5577ed, 0xbdccc147, 0xbe936e5a, 0x3eb51268 }; static const uint32_t ref_conv_6_1[6] = { 0x3b509f51, 0x3a9bfd5d, 0xbaf5d8e1, 0xba16913c, 0x3b03c8e4, 0xba4e386d }; static const uint32_t ref_conv_6_2[7] = { 0x3b509f51, 0xbd0a9d6c, 0xbc754f20, 0x3ca46331, 0x3c08817b, 0xbcbbb9f6, 0x3c0dd66b }; static const uint32_t ref_conv_6_3[8] = { 0x3b509f51, 0xbd0a9d6c, 0x3ea965f0, 0x3e18f10f, 0xbe482059, 0xbdaeb900, 0x3e689073, 0xbdaf0688 }; static const uint32_t ref_conv_6_8[13] = { 0x3b509f51, 0xbd0a9d6c, 0x3ea965f0, 0xbdefdcdb, 0xbf411484, 0xbec629e5, 0x3e88fe03, 0xbe86c513, 0xbe151480, 0x3da28334, 0xbaaf1c08, 0xbda91b82, 0x3d47f729 }; static const uint32_t ref_conv_6_11[16] = { 0x3b509f51, 0xbd0a9d6c, 0x3ea965f0, 0xbdefdcdb, 0xbf411484, 0xbec629e5, 0x3e88fe03, 0xbe86c513, 0x3e090a62, 0xbde59da0, 0x3e910619, 0x3e8059e4, 0xbd518b65, 0xbeb6c8cd, 0x3eda83cb, 0xbe0dac54 }; static const uint32_t ref_conv_9_1[9] = { 0x3b509f51, 0x3a9bfd5d, 0xbaf5d8e1, 0xba16913c, 0x3b03c8e4, 0xba4e386d, 0x3a81f2fd, 0x39db3c48, 0xba1b0d5f }; static const uint32_t ref_conv_9_2[10] = { 0x3b509f51, 0xbd0a9d6c, 0xbc754f20, 0x3ca46331, 0x3c08817b, 0xbcbbb9f6, 0x3c1e14ca, 0xbc2be7ea, 0xbbaa2bba, 0x3bd549e2 }; static const uint32_t ref_conv_9_3[11] = { 0x3b509f51, 0xbd0a9d6c, 0x3ea965f0, 0x3e18f10f, 0xbe482059, 0xbdaeb900, 0x3e699459, 0xbdc48386, 0x3dd1f2ac, 0x3d54bb9e, 0xbd8398f8 }; static const uint32_t ref_conv_9_8[16] = { 0x3b509f51, 0xbd0a9d6c, 0x3ea965f0, 0xbdefdcdb, 0xbf411484, 0xbec629e5, 0x3e897ff6, 0xbe8c2452, 0xbd306caa, 0x3d45d131, 0xbe79724b, 0xbe3b2b7b, 0x3d31004f, 0xbcfaea48, 0x3bbddd33, 0x3d16596c }; static const uint32_t ref_conv_9_11[19] = { 0x3b509f51, 0xbd0a9d6c, 0x3ea965f0, 0xbdefdcdb, 0xbf411484, 0xbec629e5, 0x3e897ff6, 0xbe8c2452, 0x3e7203b8, 0xbe129c1e, 0x3d27e082, 0x3e1a160e, 0xbd688240, 0xbec67771, 0x3f0504bc, 0xbe20e125, 0x3dab2990, 0x3e039cb5, 0xbdd50a98 }; static const uint32_t ref_conv_10_1[10] = { 0x3b509f51, 0x3a9bfd5d, 0xbaf5d8e1, 0xba16913c, 0x3b03c8e4, 0xba4e386d, 0x3a81f2fd, 0x39db3c48, 0xba1b0d5f, 0x3b0bd8f3 }; static const uint32_t ref_conv_10_2[11] = { 0x3b509f51, 0xbd0a9d6c, 0xbc754f20, 0x3ca46331, 0x3c08817b, 0xbcbbb9f6, 0x3c1e14ca, 0xbc2be7ea, 0xbbaa2bba, 0x3c0d9b2e, 0xbcc05f80 }; static const uint32_t ref_conv_10_3[12] = { 0x3b509f51, 0xbd0a9d6c, 0x3ea965f0, 0x3e18f10f, 0xbe482059, 0xbdaeb900, 0x3e699459, 0xbdc48386, 0x3dd1f2ac, 0x3d5d792d, 0xbdb3b0d8, 0x3e6d62b5 }; static const uint32_t ref_conv_10_8[17] = { 0x3b509f51, 0xbd0a9d6c, 0x3ea965f0, 0xbdefdcdb, 0xbf411484, 0xbec629e5, 0x3e897ff6, 0xbe8c2452, 0xbd306caa, 0x3d4e8ec0, 0xbe88bf1d, 0x3d48dcea, 0xbe0aaab4, 0xbead4584, 0xbe3f1fd6, 0xbd9f603a, 0xbe079b10 }; static const uint32_t ref_conv_10_11[20] = { 0x3b509f51, 0xbd0a9d6c, 0x3ea965f0, 0xbdefdcdb, 0xbf411484, 0xbec629e5, 0x3e897ff6, 0xbe8c2452, 0x3e7203b8, 0xbe106cba, 0x3c8f6183, 0x3ec3bc61, 0xbe710b58, 0xbf320728, 0x3ea78219, 0xbe8b13ce, 0xbd48191f, 0x3ea1b470, 0xbe9ad3cd, 0x3ec0266b }; static const uint32_t ref_conv_11_1[11] = { 0x3b509f51, 0x3a9bfd5d, 0xbaf5d8e1, 0xba16913c, 0x3b03c8e4, 0xba4e386d, 0x3a81f2fd, 0x39db3c48, 0xba1b0d5f, 0x3b0bd8f3, 0xbae6c59c }; static const uint32_t ref_conv_11_2[12] = { 0x3b509f51, 0xbd0a9d6c, 0xbc754f20, 0x3ca46331, 0x3c08817b, 0xbcbbb9f6, 0x3c1e14ca, 0xbc2be7ea, 0xbbaa2bba, 0x3c0d9b2e, 0xbccecbda, 0x3c9eb957 }; static const uint32_t ref_conv_11_3[13] = { 0x3b509f51, 0xbd0a9d6c, 0x3ea965f0, 0x3e18f10f, 0xbe482059, 0xbdaeb900, 0x3e699459, 0xbdc48386, 0x3dd1f2ac, 0x3d5d792d, 0xbdb74bef, 0x3e809cf0, 0xbe43dcf6 }; static const uint32_t ref_conv_11_8[18] = { 0x3b509f51, 0xbd0a9d6c, 0x3ea965f0, 0xbdefdcdb, 0xbf411484, 0xbec629e5, 0x3e897ff6, 0xbe8c2452, 0xbd306caa, 0x3d4e8ec0, 0xbe89a5e3, 0x3d8c1ccb, 0xbea743d5, 0xbe439efd, 0x3d89d96c, 0x3da5cd6b, 0xbd1b5ff9, 0x3ddfc5b5 }; static const uint32_t ref_conv_11_11[21] = { 0x3b509f51, 0xbd0a9d6c, 0x3ea965f0, 0xbdefdcdb, 0xbf411484, 0xbec629e5, 0x3e897ff6, 0xbe8c2452, 0x3e7203b8, 0xbe106cba, 0x3c80f52a, 0x3ecda7f7, 0xbeda7427, 0xbf0c4c26, 0x3f14c430, 0xbde72194, 0x3d3af328, 0x3ed9a5dd, 0xbee9f3b1, 0x3f09f9c8, 0xbe9e8a3f }; static const uint32_t ref_conv_12_1[12] = { 0x3b509f51, 0x3a9bfd5d, 0xbaf5d8e1, 0xba16913c, 0x3b03c8e4, 0xba4e386d, 0x3a81f2fd, 0x39db3c48, 0xba1b0d5f, 0x3b0bd8f3, 0xbae6c59c, 0x3a9392cd }; static const uint32_t ref_conv_12_2[13] = { 0x3b509f51, 0xbd0a9d6c, 0xbc754f20, 0x3ca46331, 0x3c08817b, 0xbcbbb9f6, 0x3c1e14ca, 0xbc2be7ea, 0xbbaa2bba, 0x3c0d9b2e, 0xbccecbda, 0x3ca7f284, 0xbc4b0037 }; static const uint32_t ref_conv_12_3[14] = { 0x3b509f51, 0xbd0a9d6c, 0x3ea965f0, 0x3e18f10f, 0xbe482059, 0xbdaeb900, 0x3e699459, 0xbdc48386, 0x3dd1f2ac, 0x3d5d792d, 0xbdb74bef, 0x3e813083, 0xbe508cf9, 0x3dfa8008 }; static const uint32_t ref_conv_12_8[19] = { 0x3b509f51, 0xbd0a9d6c, 0x3ea965f0, 0xbdefdcdb, 0xbf411484, 0xbec629e5, 0x3e897ff6, 0xbe8c2452, 0xbd306caa, 0x3d4e8ec0, 0xbe89a5e3, 0x3d8e6b16, 0xbead9bd7, 0xbd8cbdf2, 0xbcdcb15d, 0xbda6c9e0, 0xbe0ed0da, 0x3d480940, 0xbd8f18ec }; static const uint32_t ref_conv_12_11[22] = { 0x3b509f51, 0xbd0a9d6c, 0x3ea965f0, 0xbdefdcdb, 0xbf411484, 0xbec629e5, 0x3e897ff6, 0xbe8c2452, 0x3e7203b8, 0xbe106cba, 0x3c80f52a, 0x3ece3b8a, 0xbee0cc29, 0xbed9f849, 0x3ef946ee, 0xbe8cee38, 0xbd64f049, 0x3ebab598, 0xbf06dcf6, 0x3f234660, 0xbed4210c, 0x3e4ac3fb }; static const uint32_t ref_conv_13_1[13] = { 0x3b509f51, 0x3a9bfd5d, 0xbaf5d8e1, 0xba16913c, 0x3b03c8e4, 0xba4e386d, 0x3a81f2fd, 0x39db3c48, 0xba1b0d5f, 0x3b0bd8f3, 0xbae6c59c, 0x3a9392cd, 0x3a2ef04f }; static const uint32_t ref_conv_13_2[14] = { 0x3b509f51, 0xbd0a9d6c, 0xbc754f20, 0x3ca46331, 0x3c08817b, 0xbcbbb9f6, 0x3c1e14ca, 0xbc2be7ea, 0xbbaa2bba, 0x3c0d9b2e, 0xbccecbda, 0x3ca7f284, 0xbc401132, 0xbbf0a4ef }; static const uint32_t ref_conv_13_3[15] = { 0x3b509f51, 0xbd0a9d6c, 0x3ea965f0, 0x3e18f10f, 0xbe482059, 0xbdaeb900, 0x3e699459, 0xbdc48386, 0x3dd1f2ac, 0x3d5d792d, 0xbdb74bef, 0x3e813083, 0xbe4fde09, 0x3deb75b9, 0x3d9479cd }; static const uint32_t ref_conv_13_8[20] = { 0x3b509f51, 0xbd0a9d6c, 0x3ea965f0, 0xbdefdcdb, 0xbf411484, 0xbec629e5, 0x3e897ff6, 0xbe8c2452, 0xbd306caa, 0x3d4e8ec0, 0xbe89a5e3, 0x3d8e6b16, 0xbead445f, 0xbd9bc841, 0x3d3a9aec, 0xbe0c9923, 0xbe7161cf, 0xbc39df6b, 0xbdd872da, 0xbd29a1f1 }; static const uint32_t ref_conv_13_11[23] = { 0x3b509f51, 0xbd0a9d6c, 0x3ea965f0, 0xbdefdcdb, 0xbf411484, 0xbec629e5, 0x3e897ff6, 0xbe8c2452, 0x3e7203b8, 0xbe106cba, 0x3c80f52a, 0x3ece3b8a, 0xbee074b0, 0xbeddbadd, 0x3f0f32b1, 0xbea98851, 0xbe1bcd07, 0x3e9be574, 0xbf100834, 0x3f18ac41, 0xbeb62378, 0x3e0b3d3c, 0x3df05d87 }; static const uint32_t ref_conv_partial_3_6_8[4] = { 0x3d1cc01d, 0x3ddd46ce, 0xbecc81e3, 0x3ebc3f17 }; static const uint32_t ref_conv_partial_9_6_8[4] = { 0xbea7e4ed, 0x3e34aa5a, 0x3d49c485, 0xbd257c67 }; static const uint32_t ref_conv_partial_7_6_8[4] = { 0x3e049c31, 0xbc8bf770, 0xbea7e4ed, 0x3e34aa5a }; static const uint32_t ref_levinson_durbin_3_0[3] = { 0xbc161e18, 0x3dc4df7d, 0xbbe5a6b2 }; static const uint32_t ref_levinson_durbin_8_1[8] = { 0xbf3e829c, 0xbf49dfd2, 0x3c138245, 0x3ec4836c, 0x3f2ec6c4, 0x3ee04620, 0x3e80308b, 0xbc7c2075 }; static const uint32_t ref_levinson_durbin_11_2[11] = { 0x3ee3e73b, 0xbd995240, 0x3e978cb7, 0xbe970b27, 0x3e68791b, 0xbf11c549, 0x3e479844, 0xbd1a6d8c, 0x3dd46c45, 0xbe0af921, 0x3d0905b8 };
Max
2
psychogenic/zephyr
tests/lib/cmsis_dsp/filtering/src/misc_f32.pat
[ "Apache-2.0" ]
# A fake Redis node for replaying predefined/expected traffic with a client. # # Usage: tclsh fake_redis_node.tcl PORT COMMAND REPLY [ COMMAND REPLY [ ... ] ] # # Commands are given as space-separated strings, e.g. "GET foo", and replies as # RESP-encoded replies minus the trailing \r\n, e.g. "+OK". set port [lindex $argv 0]; set expected_traffic [lrange $argv 1 end]; # Reads and parses a command from a socket and returns it as a space-separated # string, e.g. "set foo bar". proc read_command {sock} { set char [read $sock 1] switch $char { * { set numargs [gets $sock] set result {} for {set i 0} {$i<$numargs} {incr i} { read $sock 1; # dollar sign set len [gets $sock] set str [read $sock $len] gets $sock; # trailing \r\n lappend result $str } return $result } {} { # EOF return {} } default { # Non-RESP command set rest [gets $sock] return "$char$rest" } } } proc accept {sock host port} { global expected_traffic foreach {expect_cmd reply} $expected_traffic { if {[eof $sock]} {break} set cmd [read_command $sock] if {[string equal -nocase $cmd $expect_cmd]} { puts $sock $reply flush $sock } else { puts $sock "-ERR unexpected command $cmd" break } } close $sock } socket -server accept $port after 5000 set done timeout vwait done
Tcl
5
hpdic/redis
tests/helpers/fake_redis_node.tcl
[ "BSD-3-Clause" ]
require "uri" {% unless flag?(:win32) %} require "./http/client" require "./http/server" require "./http/log" {% end %} require "./http/common" # The HTTP module contains `HTTP::Client`, `HTTP::Server` and `HTTP::WebSocket` implementations. module HTTP end
Crystal
4
n00p3/crystal
src/http.cr
[ "Apache-2.0" ]
/// <reference path="fourslash.ts" /> /////*1*/let x = async () => 1; /////*2*/let y = async() => 1; /////*3*/let z = async function () { return 1; }; format.document(); goTo.marker("1"); verify.currentLineContentIs("let x = async () => 1;"); goTo.marker("2"); verify.currentLineContentIs("let y = async () => 1;"); goTo.marker("3"); verify.currentLineContentIs("let z = async function() { return 1; };")
TypeScript
4
nilamjadhav/TypeScript
tests/cases/fourslash/formatAsyncKeyword.ts
[ "Apache-2.0" ]
#struct aa{ # double b; # float *x; #}; #struct bb { # struct aa b1; # struct aa *pa; # double x1[10]; # double dx; #}; #typedef struct ss { # int f1; # char f2:3; # struct aa a3; # struct aa *pa1; # char f3:5; # struct bb *b3; # struct bb *b2; # struct aa xt[23]; # struct aa(* funcc)(int, int, double); #}SS; type $unname1 <struct {@b f64, @x <* f32>}> type $unname2 <struct {@b1 <struct {@b f64, @x <* f32>}>, @pa <* <struct {@b f64, @x <* f32>}>>, @x1 <[10] f64>, @dx f64}> type $SS <struct {@f1 i32, @f2:3 i8, @a3 <structincomplete {@b f64, @x <*f32>}>, @pa1 <* <struct {@b f64, @x <* f32> } >>, @f3:5 i32, @b3 <* <struct {@b1 <struct {@b f64, @x <* f32>}>, @pa <* <struct {@b f64, @x <* f32>}>>, @x1 <[10] f64>, @dx f64}>>, @b2 <* $unname2>, @xt <[23] <struct {@b f64, @a <*f32>}>>, @funcc <func(i32, i32, f64)<struct {@b f64, @x <* f32>}>>}> # EXEC: %irbuild Main.mpl # EXEC: %irbuild Main.irb.mpl # EXEC: %cmp Main.irb.mpl Main.irb.irb.mpl
Maple
3
harmonyos-mirror/OpenArkCompiler-test
test/testsuite/irbuild_test/I0073-mapleall-irbuild-edge-struct_type/Main.mpl
[ "MulanPSL-1.0" ]
/* Copyright © 2011 MLstate This file is part of Opa. 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. */ /** * Low-level interaction with the user-interface * * @author Hugo Heuzard, 2011 * @target PUBLIC * @stability EXPERIMENTAL */ import stdlib.core.{web.core} import-plugin browser_canvas /** * {1 About this module} * * This module defines client side manipulation of canvas element (html5). * * {1 where should i start?} * * {1 what if i need more?} */ /** * {1 Types defined in this module} */ @abstract type Canvas.context = canvas_element type canvas_element = external type Canvas.canvas = external type Canvas.gradient = external type Canvas.pattern= external type Canvas.style = {color: color} / {gradient : Canvas.gradient} / {pattern : Canvas.pattern} / {unsafe: string} type Canvas.linecap = {butt} / {round} / {square} type Canvas.linejoin = {bevel} / {round} / {miter} type Canvas.imagedata = {width: int; height: int} type Canvas.image = {image : Image.image} / {canvas : Canvas.canvas} / {video : Video.video} type Canvas.repeat = {repeat} / {repeat_x} / {repeat_y} / {no_repeat} type Image.image = external type Video.video = external type Image.data = external type Canvas.textalign = {align_start} / {align_end} / {align_left} / {align_right} / {align_center} type Canvas.textbaseline = {top} / {hanging} / {middle} / {alphabetic} / {ideographic} / {bottom} /** * {1 Interface} */ @client Canvas = {{ /** * {2 Canvas} **/ @both_implem create_with(id : string, width : Css.size, height : Css.size, error_msg : xhtml) : xhtml = get_size(x:Css.size):string = match x | { ~cm } -> "{cm}cm" | { ~em } -> "{em}em" | { ~ex } -> "{ex}ex" | { ~inch } -> "{inch}in" | { ~mm } -> "{mm}mm" | { ~percent } -> "{percent}%" | { ~pc } -> "{pc}pc" | { ~pt } -> "{pt}pt" | { ~px } -> "{px}px" <canvas id="{id}" width="{get_size(width)}" height="{get_size(height)}" style="width:{width};height:{height}"> {error_msg} </canvas> @both_implem create(id : string, width: Css.size, height : Css.size) : xhtml = err_msg = <p> You cannot see this image because your browser is not fully compatible with the latest web standard, HTML5. Please consider upgrading or switching to a more modern browser. </p> ; create_with(id, width, height, err_msg) get(dom : dom) : option(Canvas.canvas) = %% BslCanvas.get %%(Dom.of_selection(dom)) to_data_url(canvas : Canvas.canvas, t : string) : option(string) = %% BslCanvas.to_data_url %%(canvas, t) to_data_url_png(canvas : Canvas.canvas) : option(string) = to_data_url(canvas, "image/png") /** * {2 Context} **/ get_context(canvas : Canvas.canvas, t : string) : option(Canvas.context) = %% BslCanvas.get_context %%(canvas, t) get_context_2d(canvas : Canvas.canvas) : option(Canvas.context) = get_context(canvas,"2d") /** * {2 Canvas size} **/ get_width(canvas : Canvas.canvas) : int = %%BslCanvas.get_width%%(canvas) get_height(canvas : Canvas.canvas) : int = %%BslCanvas.get_height%%(canvas) /** * {2 Canvas state} **/ save(context : Canvas.context) : void = %% BslCanvas.save %%(context) restore(context : Canvas.context) : void = %% BslCanvas.restore %%(context) /** * {2 Transformations} **/ /** * The scale(x, y) method add the scaling transformation described by the arguments to the transformation matrix. * The x argument represents the scale factor in the horizontal direction and the y argument represents the scale * factor in the vertical direction. */ scale(context : Canvas.context, x : float, y : float) : void = %% BslCanvas.scale %%(context, x, y) /** * The rotate(angle) method add the rotation transformation described by the argument to the transformation matrix. * The angle argument represents a clockwise rotation angle expressed in radians. */ rotate(context : Canvas.context, r : float) : void = %% BslCanvas.rotate %%(context, r) /** * The translate(x, y) method add the translation transformation described by the arguments to the transformation matrix. * The x argument represents the translation distance in the horizontal direction and the y argument represents the translation * distance in the vertical direction. The arguments are in coordinate space units. */ translate(context : Canvas.context, x : int, y : int) : void = %% BslCanvas.translate %%(context, x, y) /** * The transform(a, b, c, d, e, f) method replace the current transformation matrix with the result of * multiplying the current transformation matrix with the matrix described by: [a,c,e|b,d,f|0,0,1] */ transform(context : Canvas.context, a : int, b : int, c : int, d : int, e : int, f : int) : void = %% BslCanvas.transform %%(context, a, b, c, d, e, f) /** * The setTransform(a, b, c, d, e, f) method must reset the current transform to the identity matrix, * and then invoke the transform(a, b, c, d, e, f) method with the same arguments. */ set_transform(context : Canvas.context, a : int, b : int, c : int, d : int, e : int, f : int) : void = %% BslCanvas.set_transform %%(context, a, b, c, d, e, f) /** * {2 Compositing} **/ set_global_alpha(context : Canvas.context, alpha : float) : void = %% BslCanvas.set_global_alpha %%(context, alpha) get_global_alpha(context : Canvas.context) : float = %% BslCanvas.get_global_alpha %%(context) //Todo globalCompositeOperation /** * {2 Colors and Styles} **/ set_fill_style(context : Canvas.context, style : Canvas.style) : void = match style with | {~color} -> %% BslCanvas.set_fill_style_color %%(context, Color.color_to_string(color)) | {~unsafe} -> %% BslCanvas.set_fill_style_color %%(context, unsafe) | {~gradient} -> %% BslCanvas.set_fill_style_gradient %%(context, gradient) | {~pattern} -> %% BslCanvas.set_fill_style_pattern %%(context, pattern) get_fill_style(context : Canvas.context) : Canvas.style = match %% BslCanvas.get_fill_style %%(context) with {~unsafe} -> (match Color.of_string(unsafe) with | {~some} -> {color=some} | {none} -> {~unsafe}) x -> x set_stroke_style(context : Canvas.context, style : Canvas.style) : void = match style with | {~color} -> %% BslCanvas.set_stroke_style_color %%(context, Color.color_to_string(color)) | {~unsafe} -> %% BslCanvas.set_fill_style_color %%(context, unsafe) | {~gradient} -> %% BslCanvas.set_stroke_style_gradient %%(context, gradient) | {~pattern} -> %% BslCanvas.set_stroke_style_pattern %%(context, pattern) get_stroke_style(context : Canvas.context) : Canvas.style = match %% BslCanvas.get_stroke_style %%(context) with {~unsafe} -> (match Color.of_string(unsafe) with | {~some} -> {color=some} | {none} -> {~unsafe}) x -> x /** * {2 Gradient} **/ create_linear_gradient(context : Canvas.context, x0 : int, y0 : int, x1 : int, y1 :int ) : Canvas.gradient = %% BslCanvas.create_linear_gradient %%(context,x0,y0,x1,y1) create_radial_gradient(context : Canvas.context, x0 : int, y0 : int, r0 : int, x1 : int, y1 : int, r1 : int) : Canvas.gradient = %% BslCanvas.create_radial_gradient %%(context,x0,y0,r0,x1,y1,r1) add_color_stop(gradient : Canvas.gradient, offset : float, color : color ) : void = %% BslCanvas.add_color_stop %%(gradient,offset,Color.color_to_string(color)) /** * {2 Pattern} **/ create_pattern(context : Canvas.context, image : Canvas.image, repeat : Canvas.repeat) : Canvas.pattern = repeat_to_string(r) = match r with | {repeat} -> "repeat" | {repeat_x} -> "repeat-x" | {repeat_y} -> "repeat-y" | {no_repeat} -> "no-repeat" end r = repeat_to_string(repeat) match image with | {~image} -> %% BslCanvas.create_pattern_i %%(context,image,r) | {~video} -> %% BslCanvas.create_pattern_v %%(context,video,r) | {~canvas} -> %% BslCanvas.create_pattern_c %%(context,canvas,r) end /** * {2 Line width / caps / joins} **/ set_line_width(context : Canvas.context, size : float) : void = %% BslCanvas.set_line_width %%(context, size) get_line_width(context : Canvas.context) : float = %% BslCanvas.get_line_width %%(context) set_line_cap(context : Canvas.context, cap : Canvas.linecap ) : void = s = match cap with | {butt} -> "butt" | {round} -> "round" | {square} -> "square" end %% BslCanvas.set_line_cap %%(context, s) get_line_cap(context : Canvas.context) : Canvas.linecap = match %% BslCanvas.get_line_cap %%(context) with | "butt" -> {butt} | "round" -> {round} | "square" -> {square} | _ -> error("Other value should not be returned as it should be ignored by the browser") end set_line_join(context : Canvas.context, join : Canvas.linejoin ) : void = s = match join with | {bevel} -> "bevel" | {round} -> "round" | {miter} -> "miter" end %% BslCanvas.set_line_join %%(context, s) get_line_join(context : Canvas.context) : Canvas.linejoin = match %% BslCanvas.get_line_join %%(context) with | "bevel" -> {bevel} | "round" -> {round} | "miter" -> {miter} | _ -> error("Other value should not be returned as it should be ignored by the browser") end set_miter_limit(context : Canvas.context, limit : float) : void = %% BslCanvas.set_miter_limit %%(context, limit) get_miter_limit(context : Canvas.context) : float = %% BslCanvas.get_miter_limit %%(context) /** * {2 Shadows} **/ set_shadow_color(context : Canvas.context, color : color) : void = %% BslCanvas.set_shadow_color %%(context,Color.color_to_string(color)) get_shadow_color(context : Canvas.context) : color = match Color.of_string(%% BslCanvas.get_shadow_color %%(context)) with | {~some} -> some | {none} -> error("should not append") end set_shadow_offset_x(context : Canvas.context, x : int) : void = %% BslCanvas.set_shadow_offset_x %%(context,x) get_shadow_offset_x(context : Canvas.context) : int = %% BslCanvas.get_shadow_offset_x %%(context) set_shadow_offset_y(context : Canvas.context, y : int) : void = %% BslCanvas.set_shadow_offset_y %%(context,y) get_shadow_offset_y(context : Canvas.context) : int = %% BslCanvas.get_shadow_offset_y %%(context) set_shadow_offset(context : Canvas.context, x : int, y : int) : void = do set_shadow_offset_x(context, x) do set_shadow_offset_y(context, y) void get_shadow_offset(context : Canvas.context) : (int,int) = (get_shadow_offset_x(context),get_shadow_offset_y(context)) set_shadow_blur(context : Canvas.context, blur : int) : void = %% BslCanvas.set_shadow_blur %%(context, blur) get_shadow_blur(context : Canvas.context) : int = %% BslCanvas.get_shadow_blur %%(context) /** * {2 Simple shapes} **/ clear_rect(context : Canvas.context, x : int, y : int, w : int, h : int) : void = %% BslCanvas.clear_rect %%(context,x,y,w,h) fill_rect(context : Canvas.context, x : int, y : int, w : int, h : int) : void = %% BslCanvas.fill_rect %%(context,x,y,w,h) stroke_rect(context : Canvas.context, x : int, y : int, w : int, h : int) : void = %% BslCanvas.stroke_rect %%(context,x,y,w,h) /** * {2 Complex shapes} **/ begin_path(context : Canvas.context) : void = %% BslCanvas.begin_path %%(context) close_path(context : Canvas.context) : void = %% BslCanvas.close_path %%(context) move_to(context : Canvas.context, x : int, y : int) : void = %% BslCanvas.move_to %%(context, x, y) line_to(context : Canvas.context, x : int, y : int) : void = %% BslCanvas.line_to %%(context, x, y) quadratic_curve_to(context : Canvas.context, cpx : int, cpy : int, x : int, y : int) : void = %% BslCanvas.quadratic_curve_to %%(context,cpx,cpy,x,y) bezier_curve_to(context : Canvas.context, cp1x : int, cp1y : int, cp2x : int, cp2y : int, x : int, y : int) : void = %% BslCanvas.bezier_curve_to %%(context,cp1x,cp1y,cp2x,cp2y,x,y) arc_to(context : Canvas.context, x1 : int, y1 : int, x2 : int, y2 : int, r : int) : void = %% BslCanvas.arc_to %%(context,x1,y1,x2,y2,r) /** * arc * @param context : Canvas.context * @param centerX : int * @param centerY : int * @param radius : int * @param startingAngle : float * @param endinAngle : float * @param counterclockwise : bool */ arc(context : Canvas.context, centerX : int, centerY : int, radius : int, startingAngle : float, endingAngle : float, counterclockwise : bool) : void = %% BslCanvas.arc %%(context, centerX, centerY, radius, startingAngle, endingAngle, counterclockwise) rect(context : Canvas.context, x : int, y : int, w : int, h : int) : void = %% BslCanvas.rect %%(context,x,y,w,h) fill(context : Canvas.context) : void = %% BslCanvas.fill %%(context) stroke(context : Canvas.context) : void = %% BslCanvas.stroke %%(context) clip(context : Canvas.context) : void = %% BslCanvas.clip %%(context) is_point_in_path(context : Canvas.context, x : int, y : int) : bool = %% BslCanvas.is_point_in_path %%(context,x,y) /** * {2 Focus management} **/ // TODO /** * {2 Text} **/ // TODO: type font set_font(context:Canvas.context, font:string) : void = %% BslCanvas.set_font %%(context,font) set_text_align(context:Canvas.context, align:Canvas.textalign) : void = align_text = match align with | {align_start} -> "start" | {align_end} -> "end" | {align_left} -> "left" | {align_right} -> "right" | {align_center} -> "center" %% BslCanvas.set_text_align %%(context,align_text) set_text_baseline(context:Canvas.context, baseline:Canvas.textbaseline) : void = baseline_text = match baseline with | {top} -> "top" | {hanging} -> "hanging" | {middle} -> "middle" | {alphabetic} -> "alphabetic" | {ideographic} -> "ideographic" | {bottom} -> "bottom" %% BslCanvas.set_text_baseline %%(context,baseline_text) stroke_text(context:Canvas.context, text:string, x:int, y:int) : void = %% BslCanvas.stroke_text %%(context,text,x,y) fill_text(context:Canvas.context, text:string, x:int, y:int) : void = %% BslCanvas.fill_text %%(context,text,x,y) measure_text(context:Canvas.context, text:string) : int = %% BslCanvas.measure_text %%(context,text) /** * {2 Drawing images} **/ draw_image(context : Canvas.context, image : Canvas.image, x: int, y : int) : void = match image with | {image=image} -> %% BslCanvas.draw_image_i %%(context, image, x, y) | {video=image} -> %% BslCanvas.draw_image_v %%(context, image, x, y) | {canvas=image} -> %% BslCanvas.draw_image_c %%(context, image, x, y) end draw_image_with_dimensions(context : Canvas.context, image : Canvas.image, x: int, y : int, w : int, h : int) : void = match image with | {image=image} -> %% BslCanvas.draw_image_di %%(context, image, x, y, w, h) | {video=image} -> %% BslCanvas.draw_image_dv %%(context, image, x, y, w, h) | {canvas=image} -> %% BslCanvas.draw_image_dc %%(context, image, x, y, w, h) end draw_image_full(context : Canvas.context, image : Canvas.image, sx: int, sy : int, sw : int, sh : int, dx : int , dy : int, dw : int, dh : int) : void = match image with | {image=image} -> %% BslCanvas.draw_image_fi %%(context, image, sx, sy, sw, sh, dx, dy, dw, dh) | {video=image} -> %% BslCanvas.draw_image_fv %%(context, image, sx, sy, sw, sh, dx, dy, dw, dh) | {canvas=image} -> %% BslCanvas.draw_image_fc %%(context, image, sx, sy, sw, sh, dx, dy, dw, dh) end /** * {2 Pixel manipulation} **/ // TODO // put_image_data(context : Canvas.context, data : Image.data, x : int, y : int) : void = // %% BslCanvas.put_image_data %%(context, data, x, y) /** * {2 Other} **/ // create_image(data : string) : Canvas.image = // {image= %% BslCanvas.create_image %%(data) } get_image(dom : dom) : option(Canvas.image) = Option.map(image -> {~image},%% BslCanvas.get_image %%(Dom.of_selection(dom))) }}
Opa
4
Machiaweliczny/oppailang
lib/stdlib/web/canvas/canvas.opa
[ "MIT" ]
#![register_attr(attr)] //~ ERROR the `#[register_attr]` attribute is an experimental feature fn main() {}
Rust
1
Eric-Arellano/rust
src/test/ui/feature-gates/feature-gate-register_attr.rs
[ "ECL-2.0", "Apache-2.0", "MIT-0", "MIT" ]
<http://example.org/subject> <http://example.org/predicate> _:c.
Turtle
1
joshrose/audacity
lib-src/lv2/serd/tests/good/test-blankdot.ttl
[ "CC-BY-3.0" ]
*** Settings *** Documentation Android Web Session Resource ../resources/resource.robot *** Test Cases *** Should Create and Destroy Android Web Session open application http://127.0.0.1:4723/wd/hub automationName=${ANDROID_AUTOMATION_NAME} ... platformName=${ANDROID_PLATFORM_NAME} platformVersion=${ANDROID_PLATFORM_VERSION} ... browserName=Chrome go to url https://www.google.com ${page_title} execute script return document.title should be equal ${page_title} Google close application sleep 3s run keyword and expect error No application is open execute script return document.title
RobotFramework
4
ismoulsk/appium
sample-code/robotframework/tests/android_create_web_session.test.robot
[ "Apache-2.0" ]
{eq} = require './_helpers' suite 'basic' -> test 'single line' -> eq '"#square" test/data/a.js', '1:function ##square#(x) {', it test 'no callback' -> eq '"#square" test/data/a.js', '1:function ##square#(x) {', it, {-callback} test 'single line - 2' -> eq '"#x" test/data/a.js', ['1:function square(##x#) {', '2: return ##x# * x;', '2: return x * ##x#;'], it test 'single line - 3' -> eq 'return test/data/a.js', '2: ##return x * x;#', it test 'multiline func' -> eq 'func-dec test/data/a.js', ''' 1-3:(multiline): ##function square(x) {# ## return x * x;# ##}#''', it test 'multiline obj' -> eq 'obj test/data/a.js', ''' 7-11:(multiline): var obj = ##{# ## a: 1,# ## b: 2,# ## c: 3# ## }#;''', it test 'multiple files' -> eq 'return test/data/a.js test/data/b.js', [ 'test/data/a.js:2: ##return x * x;#' 'test/data/b.js:4: ##return zz + zz;#' ], it
LiveScript
4
GerHobbelt/grasp
test/basic.ls
[ "MIT" ]
; inherits: css [ (mixin_statement) (while_statement) (each_statement) ] @indent
Scheme
2
hmac/nvim-treesitter
queries/scss/indents.scm
[ "Apache-2.0" ]
--TEST-- Scalar type names cannot be used as class, trait or interface names (2) - use --FILE-- <?php use foobar as int; ?> --EXPECTF-- Fatal error: Cannot use foobar as int because 'int' is a special class name in %s on line %d
PHP
3
NathanFreeman/php-src
Zend/tests/type_declarations/scalar_reserved2_use.phpt
[ "PHP-3.01" ]
3,0 9,0 9,-4 3,-4
IDL
0
dagoodma/dubins_coverage
data/trash/square_polygon.dlm
[ "MIT" ]
data Tag = MkTag data Elem : a -> List a ->Type where Z : Elem a (a :: as) S : Elem a as -> Elem a (b :: as) toNat : Elem as a -> Nat toNat Z = 0 toNat (S n) = 1 + toNat n Show (Elem as a) where show = show . toNat data Subset : List a -> List a -> Type where Nil : Subset [] bs (::) : Elem a bs -> Subset as bs -> Subset (a :: as) bs toList : Subset as bs -> List Nat toList [] = [] toList (n :: ns) = toNat n :: toList ns Show (Subset as bs) where show = show . toList search : {auto prf : a} -> a search = prf test : String test = let x : Tag := MkTag y : Tag := MkTag as : List Tag as = [y,x] bs : List Tag bs = [x,y,y] prf : Subset as bs prf = search prf' : Subset as bs := search eq : prf === [S (S Z), Z] := Refl -- eq' : prf' === [S (S Z), Z] := Refl -- ^ does not work because prf' is opaque in show prf reverse : List a -> List a reverse xs = let revOnto : List a -> List a -> List a revOnto acc [] = acc revOnto acc (x :: xs) = revOnto (x :: acc) xs rev := revOnto [] result := rev xs in result
Idris
4
ska80/idris-jvm
tests/idris2/basic047/InterleavingLets.idr
[ "BSD-3-Clause" ]
REBOL [ System: "REBOL [R3] Language Interpreter and Run-time Environment" Title: "REBOL Graphics - SHAPE commands" Rights: { Copyright 2012 REBOL Technologies REBOL is a trademark of REBOL Technologies } License: { Licensed under the Apache License, Version 2.0. See: http://www.apache.org/licenses/LICENSE-2.0 } Name: shape Type: extension Exports: none Note: "Run make-host-ext.reb to convert" ] ;don't change order of already defined words unless you know what you are doing words: [ ;arc negative positive small large ] ;temp hack - will be removed later init-words: command [ words [block!] ] init-words words ;please alphabetize the order of commands so it easier to lookup things arc: command [ "Draws an elliptical arc from the current point." end-point [pair!] radius [pair!] angle [number!] 'sweep-flag [word!] "The arc will be drawn in POSITIVE or NEGATIVE angle direction" 'arc-flag [word!] "User SMALL or LARGE arc sweep" ] arc': command [ "Draws an elliptical arc from the current point.(uses relative coordinates)" end-point [pair!] radius [pair!] angle [number!] 'sweep-flag [word!] "The arc will be drawn in POSITIVE or NEGATIVE angle direction" 'arc-flag [word!] "User SMALL or LARGE arc sweep" ] close: command [ "Closes previously defined set of lines in the SHAPE block." ] curv: command [ "Draws a cubic Bezier curve or polybezier using two points." points [block!] "Block of point pairs (2nd control point, end point)" ] curv': command [ "Draws a cubic Bezier curve or polybezier using two points.(uses relative coordinates)" points [block!] "Block of point pairs (2nd control point, end point)" ] curve: command [ "Draws a cubic Bezier curve or polybezier using three points." points [block!] "Block of point triplets (1st control point, 2nd control point, end point)" ] curve': command [ "Draws a cubic Bezier curve or polybezier using three points.(uses relative coordinates)" points [block!] "Block of point triplets (1st control point, 2nd control point, end point)" ] hline: command [ "Draws a horizontal line from the current point." end-x [number!] ] hline': command [ "Draws a horizontal line from the current point.(uses relative coordinates)" end-x [number!] ] line: command [ "Draws a line from the current point through the given points." points [pair! block!] ] line': command [ "Draws a line from the current point through the given points.(uses relative coordinates)" points [pair! block!] ] move: command [ "Set's the starting point for a new path without drawing anything." point [pair!] ] move': command [ "Set's the starting point for a new path without drawing anything.(uses relative coordinates)" point [pair!] ] qcurv: command [ "Draws a quadratic Bezier curve from the current point to end point." end-point [pair!] ] qcurv': command [ "Draws a quadratic Bezier curve from the current point to end point.(uses relative coordinates)" end-point [pair!] ] qcurve: command [ "Draws a quadratic Bezier curve using two points." points [block!] "Block of point pairs (control point, end point)" ] qcurve': command [ "Draws a quadratic Bezier curve using two points.(uses relative coordinates)" points [block!] "Block of point pairs (control point, end point)" ] vline: command [ "Draws a vertical line from the current point." end-y [number!] ] vline': command [ "Draws a vertical line from the current point.(uses relative coordinates)" end-y [number!] ]
Rebol
4
0branch/r3
src/boot/shape.reb
[ "Apache-2.0" ]
// SPDX-License-Identifier: MIT pragma solidity ^0.8.0; import "../utils/cryptography/MerkleProof.sol"; contract MerkleProofWrapper { function verify( bytes32[] memory proof, bytes32 root, bytes32 leaf ) public pure returns (bool) { return MerkleProof.verify(proof, root, leaf); } function verifyCalldata( bytes32[] calldata proof, bytes32 root, bytes32 leaf ) public pure returns (bool) { return MerkleProof.verifyCalldata(proof, root, leaf); } function processProof(bytes32[] memory proof, bytes32 leaf) public pure returns (bytes32) { return MerkleProof.processProof(proof, leaf); } function processProofCalldata(bytes32[] calldata proof, bytes32 leaf) public pure returns (bytes32) { return MerkleProof.processProofCalldata(proof, leaf); } function multiProofVerify( bytes32[] calldata proofs, bool[] calldata proofFlag, bytes32 root, bytes32[] calldata leaves ) public pure returns (bool) { return MerkleProof.multiProofVerify(proofs, proofFlag, root, leaves); } function processMultiProof( bytes32[] calldata proofs, bool[] calldata proofFlag, bytes32[] calldata leaves ) public pure returns (bytes32) { return MerkleProof.processMultiProof(proofs, proofFlag, leaves); } }
Solidity
4
rand0mbyte/openzeppelin-contracts
contracts/mocks/MerkleProofWrapper.sol
[ "MIT" ]
<?Lassoscript // Last modified 8/31/09 by ECL, Landmann InterActive /* Tagdocs; {Tagname= OutputText1 } {Description= Outputs the already-built $vText_1 } {Author= Eric Landmann } {AuthorEmail= support@iterate.ws } {ModifiedBy= } {ModifiedByEmail= } {Date= 7/6/09 } {Usage= OutputText1 } {ExpectedResults= HTML for Text_1 } {Dependencies= $vText_1 must be defined, otherwise a comment will be output } {DevelNotes= $vText_1 is defined in build_detail.inc This tag is merely a convenience to make it less awkward for a designer } {ChangeNotes= 8/31/09 Integrated into itPage codebase. } /Tagdocs; */ If: !(Lasso_TagExists:'OutputText1'); Define_Tag:'OutputText1', -Description='Outputs the Text1 (in $vText_1)'; Local('Result') = null; // Check if var is defined If: (Var:'vText_1') != ''; #Result += '<!-- OutputText1 -->\n'; #Result += '<div class="ContentPanel">'($vText_1)'</div>\n'; Return: (Encode_Smart:(#Result)); Else; // Output a comment that variable is not defined #Result = '<!-- OutputText1: Text1 is undefined -->\n'; Return: (Encode_Smart:(#Result)); /If; /Define_Tag; Log_Critical: 'Custom Tag Loaded - OutputText1'; /If; ?>
Lasso
4
subethaedit/SubEthaEd
Documentation/ModeDevelopment/Reference Files/LassoScript-HTML/itpage/LassoStartup/OutputText1.lasso
[ "MIT" ]
fun listHell n = if n <= 0 then [] else n :: List.append (listHell (n-1)) (listHell (n-1)) fun doit r = Transactional.foo; return <xml>{[listHell (readError r.N)]}</xml> fun main () = return <xml><body> <form> <textbox{#N}/> <submit action={doit}/> </form> </body></xml>
UrWeb
3
apple314159/urweb
tests/transact.ur
[ "BSD-3-Clause" ]
{-#LANGUAGE ForeignFunctionInterface, ScopedTypeVariables#-} #include "cvWrapLEO.h" module CV.TemplateMatching where import Foreign.C.Types import Foreign.Ptr import Foreign.Storable import Foreign.Marshal.Alloc import CV.Image import CV.Transforms import Utils.Function import Utils.Point import Utils.Rectangle hiding (scale) {#import CV.Image#} import System.IO.Unsafe import Control.Exception getTemplateMap image template = unsafePerformIO $ withImage image $ \cvimg -> withImage template $ \cvtemp -> creatingImage $ {#call templateImage#} cvimg cvtemp #c enum MatchType { SQDIFF = CV_TM_SQDIFF ,SQDIFF_NORMED = CV_TM_SQDIFF_NORMED ,CCORR = CV_TM_CCORR ,CCORR_NORMED = CV_TM_CCORR_NORMED ,CCOEFF = CV_TM_CCOEFF ,CCOEFF_NORMED = CV_TM_CCOEFF_NORMED }; #endc {#enum MatchType {}#} simpleTemplateMatch :: MatchType -> Image GrayScale D32 -> Image GrayScale D32 -> ((Int,Int),Double) simpleTemplateMatch mt image template | image `biggerThan` template = unsafePerformIO $ do withImage image $ \cvimg -> withImage template $ \cvtemp -> alloca $ \(ptrintx :: Ptr CInt) -> alloca $ \(ptrinty :: Ptr CInt)-> alloca $ \(ptrdblval :: Ptr CDouble) -> do { {#call simpleMatchTemplate#} cvimg cvtemp ptrintx ptrinty ptrdblval (fromIntegral $ fromEnum mt); x <- peek ptrintx; y <- peek ptrinty; v <- peek ptrdblval; return ((fromIntegral x,fromIntegral y),realToFrac v); } | otherwise = throw $ CvSizeError "simpleTemplateMatch: template is bigger than the image" matchTemplate :: MatchType-> Image GrayScale D32 -> Image GrayScale D32 -> Image GrayScale D32 matchTemplate mt image template | image `biggerThan` template = unsafePerformIO $ do let isize = getSize image tsize = getSize template size = isize - tsize + (1,1) res <- create size withGenImage image $ \cimg -> withGenImage template $ \ctempl -> withGenImage res $ \cresult -> {#call cvMatchTemplate#} cimg ctempl cresult (fromIntegral . fromEnum $ mt) return res | otherwise = throw $ CvSizeError $ "MatchTemplate: template larger than the image" -- | Perform subpixel template matching using intensity interpolation subPixelTemplateMatch :: MatchType -> Image GrayScale D32 -> Image GrayScale D32 -> Double -> (Double,Double) subPixelTemplateMatch mt image template n -- TODO: Make iterative #SpeedUp = (fromIntegral (tx)+fromIntegral sbx/n ,fromIntegral (ty)+fromIntegral sby/n) where (otw,oth) = getSize template ((orX,orY),_) = simpleTemplateMatch CCORR_NORMED image template (tx,ty) = (orX-otw`div`2, orY-oth`div`2) bigTempl = scaleSingleRatio Linear n template (tw,th) = getSize bigTempl region = scaleSingleRatio Linear n . getRegion (tx,ty) (otw*2,oth*2) $ image ((sbx,sby),_) = simpleTemplateMatch CCORR_NORMED region bigTempl regionToInt rc = mkRectangle (floor x,floor y) (ceiling w,ceiling h) where (x,y) = topLeft rc (w,h) = rSize rc #c enum ShapeMatchMethod { Method1 = CV_CONTOURS_MATCH_I1, Method2 = CV_CONTOURS_MATCH_I2, Method3 = CV_CONTOURS_MATCH_I3 }; #endc {#enum ShapeMatchMethod {}#} -- | Match shapes matchShapes :: ShapeMatchMethod -> Image GrayScale D8 -> Image GrayScale D8 -> Double matchShapes m a b = unsafePerformIO $ do withGenImage a $ \c_a -> withGenImage b $ \c_b -> {#call cvMatchShapes#} c_a c_b (fromIntegral . fromEnum $ m) 0 >>= return.realToFrac
C2hs Haskell
4
maaleske/CV
CV/TemplateMatching.chs
[ "BSD-3-Clause" ]
import Principal "mo:base/Principal"; actor { public shared query (msg) func whoami() : async Principal { return msg.caller; }; };
Modelica
4
MikeOwino/examples
svelte-motoko-starter/src/backend/main.mo
[ "Apache-2.0" ]
# Proof by PDF that X <~ rayleigh(1) == X^2 <~ weibull(1,1) PDF_rayleigh := (a, x) -> 2*x*exp(-x^2/a)/a; PDF_transform := (x) -> PDF_rayleigh(1,sqrt(x))*diff(sqrt(x),x); simplify(PDF_transform(x)); PDF_weibull := (k, t, x) -> k/t*x^(k-1)*exp(-1*(1/t)*x^k); simplify(PDF_weibull(1, 1, x)); evalb(PDF_weibull(1, 1, x) = PDF_transform(x));
Maple
3
vmchale/hakaru
tests/RoundTrip2/t_weibull_to_rayleigh.proof.mpl
[ "BSD-3-Clause" ]
"""Constants for testing the Coinbase integration.""" from homeassistant.components.diagnostics.const import REDACTED GOOD_CURRENCY = "BTC" GOOD_CURRENCY_2 = "USD" GOOD_CURRENCY_3 = "EUR" GOOD_EXCHANGE_RATE = "BTC" GOOD_EXCHANGE_RATE_2 = "ATOM" BAD_CURRENCY = "ETH" BAD_EXCHANGE_RATE = "ETH" MOCK_ACCOUNTS_RESPONSE = [ { "balance": {"amount": "0.00001", "currency": GOOD_CURRENCY}, "currency": GOOD_CURRENCY, "id": "123456789", "name": "BTC Wallet", "native_balance": {"amount": "100.12", "currency": GOOD_CURRENCY_2}, "type": "wallet", }, { "balance": {"amount": "100.00", "currency": GOOD_CURRENCY}, "currency": GOOD_CURRENCY, "id": "abcdefg", "name": "BTC Vault", "native_balance": {"amount": "100.12", "currency": GOOD_CURRENCY_2}, "type": "vault", }, { "balance": {"amount": "9.90", "currency": GOOD_CURRENCY_2}, "currency": "USD", "id": "987654321", "name": "USD Wallet", "native_balance": {"amount": "9.90", "currency": GOOD_CURRENCY_2}, "type": "fiat", }, ] MOCK_ACCOUNTS_RESPONSE_REDACTED = [ { "balance": {"amount": REDACTED, "currency": GOOD_CURRENCY}, "currency": GOOD_CURRENCY, "id": REDACTED, "name": "BTC Wallet", "native_balance": {"amount": REDACTED, "currency": GOOD_CURRENCY_2}, "type": "wallet", }, { "balance": {"amount": REDACTED, "currency": GOOD_CURRENCY}, "currency": GOOD_CURRENCY, "id": REDACTED, "name": "BTC Vault", "native_balance": {"amount": REDACTED, "currency": GOOD_CURRENCY_2}, "type": "vault", }, { "balance": {"amount": REDACTED, "currency": GOOD_CURRENCY_2}, "currency": "USD", "id": REDACTED, "name": "USD Wallet", "native_balance": {"amount": REDACTED, "currency": GOOD_CURRENCY_2}, "type": "fiat", }, ] MOCK_ENTRY_REDACTED = { "version": 1, "domain": "coinbase", "title": REDACTED, "data": {"api_token": REDACTED, "api_key": REDACTED}, "options": {"account_balance_currencies": [], "exchange_rate_currencies": []}, "pref_disable_new_entities": False, "pref_disable_polling": False, "source": "user", "unique_id": None, "disabled_by": None, }
Python
3
MrDelik/core
tests/components/coinbase/const.py
[ "Apache-2.0" ]
package com.baeldung.hibernate.pojo.inheritance; public interface Item { }
Java
1
zeesh49/tutorials
hibernate5/src/main/java/com/baeldung/hibernate/pojo/inheritance/Item.java
[ "MIT" ]
<% # Template Dependency: events/* %>
HTML+ERB
0
mdesantis/rails
actionview/test/fixtures/digestor/events/index.html.erb
[ "MIT" ]
--TEST-- Exception during WeakMap destruction during shutdown --FILE-- <?php $map = new WeakMap; $obj = new stdClass; $map[$obj] = new class { function __destruct() { throw new Exception("Test"); } }; ?> --EXPECTF-- Fatal error: Uncaught Exception: Test in %s:%d Stack trace: #0 [internal function]: class@anonymous->__destruct() #1 {main} thrown in %s on line %d
PHP
4
NathanFreeman/php-src
Zend/tests/weakrefs/weakmap_dtor_exception.phpt
[ "PHP-3.01" ]
SET @s = IF(version() < 8 OR (version() LIKE '%MariaDB%' AND version() < 10.3), 'SET GLOBAL innodb_file_per_table = ON, innodb_file_format = Barracuda, innodb_large_prefix = ON;', 'SET GLOBAL innodb_file_per_table = ON;'); PREPARE stmt1 FROM @s; EXECUTE stmt1; DROP DATABASE IF EXISTS gogs; CREATE DATABASE IF NOT EXISTS gogs CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci;
SQL
3
aerth/gogs
scripts/mysql.sql
[ "MIT" ]
<html> <head> </head> <body> index.html content </body> </html>
HTML
1
bkucera2/cypress
packages/server/test/support/fixtures/projects/no-server/dev/index.html
[ "MIT" ]
<!doctype html> <p>Some paragraph.</p>
HTML
1
acidburn0zzz/parcel
packages/core/integration-tests/test/integration/html-no-js/no-body-or-html.html
[ "MIT" ]
# Author: Jason Batchelor # Company: Emerson # Description: Check if a ZIP contains an EXE path(..) | join(" "?) | match("EXTRACT_ZIP Object_.*? SCAN_YARA ft_exe") | .length > 0
JSONiq
2
akniffe1/fsf
fsf-server/jq/exe_in_zip.jq
[ "Apache-2.0" ]
// !LANGUAGE: -ProhibitSimplificationOfNonTrivialConstBooleanExpressions package test // val prop4: true <!DEBUG_INFO_CONSTANT_VALUE("true")!>val prop4 = !1.equals(2)<!>
Kotlin
2
Mu-L/kotlin
compiler/testData/diagnostics/tests/constantEvaluator/constant/equals.kt
[ "ECL-2.0", "Apache-2.0" ]
namespace OpenAPI.Model open System open System.Collections.Generic module Order = //#region Order //#region enums type StatusEnum = PlacedEnum of string | ApprovedEnum of string | DeliveredEnum of string //#endregion type Order = { Id : int64; PetId : int64; Quantity : int; ShipDate : Nullable<DateTime>; Status : StatusEnum; Complete : bool; } //#endregion
F#
4
MalcolmScoffable/openapi-generator
samples/server/petstore/fsharp-giraffe/OpenAPI/src/model/Order.fs
[ "Apache-2.0" ]
require(httr) data = list( `version` = '1.2', `auth_user` = 'fdgxf', `auth_pwd` = 'oxfdscds', `json_data` = '{ "operation": "core/get", "class": "Software", "key": "key" }' ) res <- httr::POST(url = 'https://cmdb.litop.local/webservices/rest.php', body = data)
R
3
kado0413/curlconverter
fixtures/r/multiple_d_post.r
[ "MIT" ]
-- see lists.moon for list comprehension tests items = {1,2,3,4,5,6} out = {k,k*2 for k in items} x = hello: "world", okay: 2323 copy = {k,v for k,v in pairs x when k != "okay"} -- { unpack(x) for x in yes } { unpack(x) for x in *yes } { xxxx for x in yes } { unpack [a*i for i, a in ipairs x] for x in *{{1,2}, {3,4}} } -- n1 = [i for i=1,10] n2 = [i for i=1,10 when i % 2 == 1] aa = [{x,y} for x=1,10 for y=5,14] bb = [y for thing in y for i=1,10] cc = [y for i=1,10 for thing in y] dd = [y for i=1,10 when cool for thing in y when x > 3 when c + 3] {"hello", "world" for i=1,10} -- j = [a for {a,b,c} in things] k = [a for {a,b,c} in *things] i = [hello for {:hello, :world} in *things] hj = {a,c for {a,b,c} in things} hk = {a,c for {a,b,c} in *things} hi = {hello,world for {:hello, :world} in *things} ok(a,b,c) for {a,b,c} in things -- [item for item in *items[1 + 2,3+4]] [item for item in *items[hello! * 4, 2 - thing[4]]] nil
MoonScript
2
Shados/moonscript
spec/inputs/comprehension.moon
[ "MIT", "Unlicense" ]
0 !echo cr \ word names for lookup during tests : "setup" " setup" lookup >xt ; : "unit" " unit" lookup >xt ; : "check" " check" lookup >xt ; : pass ." +" ; \ better hope you speak utf8 : fail ." x" ; : sep ."  | " ; \ a number too big for 32-bits : big 5678901234 ; : big2 5678901235 ; : cols 4 ; cols 1 - variable count count ! variable good variable bad variable start variable end : inc dup @ 1+ swap ! ; : none 0 ; : more ; : less 0 swap - ; : pass pass good inc ; : fail fail bad inc ; : clear depth if drop tail then ; : pad 12 swap - 0 do space loop ; : tabulate count @ cols /mod drop if sep else cr then ; : test ( effect -- ) count inc tabulate word swap over type pad \ Print the test name padded to 12 chars >r \ save the expected stack effect "setup" execute \ find "setup" and run it depth start ! \ record the starting stack depth "unit" execute \ find "unit" and run it depth start @ - r> = \ check the stack effect if pass else fail then \ and report status space "check" execute \ find "check" and run it if pass else fail then \ report whether check function worked clear \ clear the tack to 0 depth ; \ ------------------------------------------------------------------------ \ Tests Ensue \ ------------------------------------------------------------------------ : setup ; : unit ; : check 1 less ; none test good-check : setup 1 ; : unit 2 = ; : check ; none test fail-check : setup ; : unit ; : check 1 ; 1 test fail-effect : setup ; : unit ; : check 0 ; 4 test fail-both 0 bad ! 0 good ! : setup 2 ; : unit dup ; : check 2 = ; 1 more test dup : setup 99 7 ; : unit drop ; : check 99 = ; 1 less test drop : setup 1 2 3 ; : unit nip ; : check + 4 = ; 1 less test nip : setup 1 2 ; : unit swap ; : check 1 = >r 2 = r> and ; none test swap : setup 2 ; : unit >r r@ r@ r> ; : check + + 6 = ; 2 more test r-funs : setup 1 2 ; : unit 2dup ; : check 2 = swap 1 = and swap 2 = and swap 1 = and ; 2 more test 2dup : setup 1 2 3 ; : unit 2drop ; : check 1 = ; 2 less test 2drop : setup 1 2 ; : unit over ; : check 1 = swap 2 = and swap 1 = and ; 1 more test over : setup 1 2 3 ; : unit rot ; : check 1 = swap 3 = and swap 2 = and ; none test rot1 : setup 1 2 3 ; : unit rot rot rot ; : check 3 = swap 2 = and swap 1 = and ; none test rot2 create x big , : setup x ; : unit @ ; : check big = ; none test fetch create x 47 , : setup 22 x ; : unit ! ; : check x @ 22 = ; 2 less test store hex create x ff000000ff , \ make sure to test that it only : setup 5c5c x ; \ sets 32-bits and won't disturb : unit d! ; \ the high side of a cell-size : check [ ff00005c5c litq ] x @ = ; \ integer. 2 less test dstore dec : setup ; : unit cell ; : check 8 = ; 1 more test cell : setup 19 ; : unit cells ; : check 152 = ; none test cells create string 98 c, 97 c, 110 c, 110 c, 101 c, 114 c, does> 6 ; : setup [ word banner lookup litq ] ; : unit >name ; : check string compare ; 1 more test >name : setup ; : unit kernel32 ; hex : check d@ 905a4d = ; dec 1 more test kernel32 : setup 47 ; : unit psp ; : check @ 47 = ; 1 more test psp : setup 47 ; : unit depth 22 depth ; : check rot - 2 = ; 3 more test depth : setup 22 ; : unit bottom ; : check depth cells - @ 22 = ; 1 more test bottom : setup big , 27 , ; : unit here ; : check dup cell - @ 27 = swap 2 cells - @ big = and ; 1 more test here : setup here dup 32 + ; : unit !here ; : check here swap - 32 = ; 1 less test !here : setup ; : unit this last ; : check = ; 2 more test this-last : setup kernel32 ; \ the second global is the kernel32 base address : unit globals ; : check 8 + @ = ; 1 more test globals : setup big 1 ; : unit + ; : check big2 = ; 1 less test + : setup big2 1 ; : unit - ; : check big = ; 1 less test - : setup 47 92 ; : unit * ; : check 4324 = ; 1 less test * : setup 36 9 36 10 ; : unit / -rot / ; : check 4 = swap 3 = and ; 2 less test / : setup 26 8 ; : unit /mod ; : check 3 = swap 2 = and ; none test /mod : setup 10 7 ; : unit and ; : check 2 = ; 1 less test and : setup 10 7 ; : unit or ; : check 15 = ; 1 less test or : setup " Berimbolo" 2dup ; : unit walk ; : check [char] B = >r rot swap - 1 = >r swap - 1 = r> and r> and ; 1 more test walk \ ------------------------------------------------------------------------ \ Some more complex functional tests \ ------------------------------------------------------------------------ create array 1 , 2 , 3 , 4 , does> swap cells + ; : setup ; : unit 0 4 0 do i array @ + loop ; : check 10 = ; 1 more test array : setup 5 ; : unit dup 1 do i * loop ; : check 120 = ; none test fact(5) : setup 3 ; : check 6 = ; none test fact(3) : setup ; : unit [ 3 9 + 6 / litq ] ; : check 2 = ; 1 more test brackets : setup 1 2 3 ; : unit 2 < rot 2 < rot 2 < rot ; : check 0= rot -1 = rot 0= rot and and ; none test < : unit 2 >= rot 2 >= rot 2 >= rot ; : check -1 = rot 0= rot -1 = rot and and ; none test >= : setup 57 ; : unit 10 max 20 min ; : check 20 = ; none test clamp1 : setup 3 ; : check 10 = ; none test clamp2 : setup 15 ; : check 15 = ; none test clamp3 : setup 2 ; : unit 3 1 do 4 1 do i j + * loop loop ; : check 2880 = ; none test iter variable x variable y : setup x off ; : unit 5 x ! x @ ; : check 5 = ; 1 more test vars : setup 5 x ! 5 y ! ; : unit x off y on ; : check x @ 0= y @ -1 = and ; none test off/on : setup ; : unit [char] A [char] ~ ; : check 126 = swap 65 = and ; 2 more test [char] : setup 10 13 ; : unit nl? swap nl? ; : check and ; none test nl? : setup s" abc" ; : unit walk -rot walk -rot 2drop ; : check [char] b = swap [char] a = and ; none test walk : setup s" abc " s" abc " ; : unit ltrim ; : check compare ; none test ltrim : setup s" abc" s" abc " ; : unit rtrim ; : check compare ; none test rtrim : setup s" abc" s" abc " ; : unit trim ; : check compare ; none test trim : setup 1 2 3 () cons cons cons 0 swap ; : unit 3 0 do dup >r car + r> cdr loop ; : check () = swap 6 = and ; none test c[ad]r : setup 1 2 3 () cons cons cons ; : unit reverse ; : check 3 0 do dup car swap cdr loop drop + - 0= ; none test reverse : setup 1 2 3 () cons cons cons ; : unit 1 swap nth ; : check swap 2 = and ; 1 more test nth : setup ; : unit 10 0 do i dup 5 = if unloop return else drop then loop ; : check 5 = ; 1 more test unloop : setup 26 ; : unit $1a ; : check = ; 1 more test hex-sigil-1 $ff : setup ; : unit ; : check 255 = ; none test hex-sigil-2 \ ------------------------------------------------------------------------ \ Done with the test suite \ ------------------------------------------------------------------------ : report cr cr space good @ dup . [char] / emit space bad @ + . ." using " . ." bytes" cr ; ' report ' "setup" - report { engine 1 = if cr bye then }!
Forth
5
jephthai/EvilVM
test/tests.fth
[ "MIT" ]
#ifndef TEST_INTEROP_CXX_CLASS_INLINE_FUNCTION_THROUGH_MEMBER_INPUTS_CONSTRUCTOR_CALLS_FUNCTION_H #define TEST_INTEROP_CXX_CLASS_INLINE_FUNCTION_THROUGH_MEMBER_INPUTS_CONSTRUCTOR_CALLS_FUNCTION_H inline int increment(int t) { return t + 1; } struct Incrementor { int incrementee; Incrementor(int value) : incrementee(increment(value)) {} }; inline int callConstructor(int value) { return Incrementor(value).incrementee; } #endif // TEST_INTEROP_CXX_CLASS_INLINE_FUNCTION_THROUGH_MEMBER_INPUTS_CONSTRUCTOR_CALLS_FUNCTION_H
C
4
gandhi56/swift
test/Interop/Cxx/class/inline-function-codegen/Inputs/constructor-calls-function.h
[ "Apache-2.0" ]
// RUN: %empty-directory(%t) // RUN: %{python} %utils/split_file.py -o %t %s // RUN: %target-swift-frontend -emit-module %t/SecretLib.swift -o %t/SecretLib.swiftmodule // RUN: %target-swift-frontend -emit-module %t/Client.swift -I %t -emit-module-interface-path %t/Client.swiftinterface -enable-library-evolution -swift-version 5 /// The indirect conformance of `s` to `_p` should not be printed. (rdar://78718838) // RUN: cat %t/Client.swiftinterface | %FileCheck %s // CHECK-NOT: SecretLib // BEGIN SecretLib.swift public protocol _p {} public struct _s : _p {} // BEGIN Client.swift @_implementationOnly import SecretLib protocol p : _p {} public struct s : p {} public func test(s1 : s) {}
Swift
3
gandhi56/swift
test/ModuleInterface/indirect-conformance-implementation-only.swift
[ "Apache-2.0" ]
#pragma TextEncoding="UTF-8" #pragma rtGlobals=3 #pragma ModuleName=SIDAMMenus #include "SIDAM_Color" #include "SIDAM_Compatibility_Old_Functions" #include "SIDAM_Config" #include "SIDAM_Correlation" #include "SIDAM_Display" #include "SIDAM_ExtractLayer" #include "SIDAM_FFT" #include "SIDAM_Fourier_Filter" #include "SIDAM_Fourier_Symmetrization" #include "SIDAM_Histogram" #include "SIDAM_InfoBar" #include "SIDAM_LayerAnnotation" #include "SIDAM_LineProfile" #include "SIDAM_LineSpectra" #include "SIDAM_LoadData" #include "SIDAM_PeakPos" #include "SIDAM_Position_Recorder" #include "SIDAM_Range" #include "SIDAM_Subtraction" #include "SIDAM_SaveGraphics" #include "SIDAM_SaveMovie" #include "SIDAM_ScaleBar" #include "SIDAM_ShowParameters" #include "SIDAM_SpectrumViewer" #include "SIDAM_StartExit" #include "SIDAM_SyncAxisRange" #include "SIDAM_SyncCursor" #include "SIDAM_SyncLayer" #include "SIDAM_Trace" #include "SIDAM_Utilities_Help" #include "SIDAM_Utilities_Image" #include "SIDAM_Utilities_WaveDf" #include "SIDAM_Utilities_misc" #include "SIDAM_Workfunction" #ifndef SIDAMshowProc #pragma hide = 1 #endif //****************************************************************************** // Definition of main menu in the menu bar //****************************************************************************** Menu "SIDAM", dynamic SubMenu "Load Data..." "from a File...;from a Directory...", /Q, SIDAMLoadData("", history=1) help = {"Load data from a file or directory."} End Submenu "Display..." SIDAMDisplay#menu(0,"/F3"), /Q, SIDAMDisplay#menuDo() help = {"Display a wave(s)"} SIDAMDisplay#menu(1,""), /Q, SIDAMDisplay($GetBrowserSelection(0),traces=1,history=1) help = {"Display a 2D wave as 1d-traces"} SIDAMDisplay#menu(2,""), /Q, SIDAMDisplay($GetBrowserSelection(0),traces=2,history=1) help = {"Display a 2D wave as xy-traces"} SIDAMInfoBar#menu()+"/F8", /Q, SIDAMInfoBar("") help = {"Show information bar at the top of image graph."} End "-" Submenu "Misc" "Open configuration file", /Q, OpenNoteBook/ENCG=1/Z SIDAMConfigPath(0) End Submenu "Help" "SIDAM home page", /Q, SIDAMBrowseHelp("home") "-" "Browse command help", /Q, SIDAMBrowseHelp("commands") "Browse cheat sheet of shortcuts", /Q, SIDAMBrowseHelp("shortcuts") "-" "About SIDAM...", /Q, SIDAMAbout() "Update for SIDAM...", /Q, SIDAMCheckUpdate() End Submenu "Developer" SIDAMUtilMisc#menu(), /Q, SIDAMshowProcedures() "List of Deprecated Functions", /Q, print SIDAMDeprecatedFunctions() help = {"Show a list of deprecated functions in the history area"} End "-" // Exit or Restart SIDAMMenus#Exitmenu(), /Q, SIDAMMenus#Exit() End //------------------------------------------------------------- // Exit or restart SIDAM //------------------------------------------------------------- Static Function/S Exitmenu() // "Restart" when the shift key is pressed return SelectString(GetKeyState(0) && 0x04, "Exit", "Restart") + " SIDAM" End Static Function Exit() GetLastUserMenuInfo int isRestart = !CmpStr(S_value, "Restart SIDAM") sidamExit() if (isRestart) sidam() endif End //****************************************************************************** // Definition of right-click menu for 2D/3D waves //****************************************************************************** Menu "SIDAMMenu2D3D", dynamic, contextualmenu // Range SubMenu "Range" help = {"Adjust of z range of images in the active graph."} "Manual.../F4",/Q, SIDAMRange() "-" SIDAMRange#menu(2), /Q, SIDAMRange#menuDo(2) SIDAMRange#menu(3), /Q, SIDAMRange#menuDo(3) End "Color Table.../F5",/Q, SIDAMColor() help = {"Change the color table used to display the top image in the active graph."} SubMenu "Sync" // Sync Layers SIDAMMenus#menu("Sync Layers...",dim=3), /Q, SIDAMSyncLayer#menuDo() help = {"Syncronize layer index of LayerViewers"} // Sync Axis Range SIDAMMenus#menu("Sync Axis Range..."), /Q, SIDAMSyncAxisRange#menuDo() help = {"Syncronize axis range"} // Sync Cursors SIDAMSyncCursor#menu(), /Q, SIDAMSyncCursor#menuDo() help = {"Synchronize cursor positions in graphs showing images"} End SubMenu "Window" SubMenu "Coordinates" SIDAMInfoBar#menuR(0), /Q, SIDAMInfoBar#menuRDo(0) End SubMenu "Title" SIDAMInfoBar#menuR(1), /Q, SIDAMInfoBar#menuRDo(1) End SubMenu "Complex" SIDAMInfoBar#menuR(3), /Q, SIDAMInfoBar#menuRDo(3) End "Scale Bar...", /Q, SIDAMScaleBar#menuDo() SIDAMMenus#menu("Layer Annotation...",dim=3), /Q, SIDAMLayerAnnotation#menuDo() // Show/Hide Axis SIDAMInfoBar#menuR(2), /Q, SIDAMInfoBar#menuRDo(2) help = {"Show/Hide axes of the graph."} End SubMenu "\\M0Save/Export Graphics" "Save Graphics...", DoIgorMenu "File", "Save Graphics" SIDAMSaveGraphics#menu(), /Q, SIDAMSaveGraphics#menuDo() SIDAMSaveMovie#menu(), /Q, SIDAMSaveMovie#menuDo() "-" "\\M0Export Graphics (Transparent)", /Q, SIDAMExportGraphicsTransparent() End "-" // View spectra of LayerViewer SIDAMMenus#menu("Point Spectrum...", dim=3), /Q, SIDAMSpectrumViewer#menuDo() SIDAMMenus#menu("Line Spectra...", dim=3), /Q, SIDAMLineSpectra#menuDo() // Line Profile SIDAMMenus#menu("Line Profile..."),/Q, SIDAMLineProfile#menuDo() help = {"Make a line profile wave of the image in the active graph."} "-" // Subtraction SIDAMMenus#menu("Subtract...")+"/F6", /Q, SIDAMSubtraction#menuDo() help = {"Subtract n-th plane or line from a 2D wave or each layer of a 3D wave"} // Histogram SIDAMMenus#menu("Histogram..."),/Q, SIDAMHistogram#menuDo() help = {"Compute the histogram of a source wave."} SubMenu "Fourier" // Fourier Transform SIDAMMenus#menu("Fourier Transform...", forfft=1)+"/F7", /Q, SIDAMFFT#menuDo() help = {"Compute a Fourier transform of a source wave."} // Fourier filter SIDAMMenus#menu("Fourier Filter...", forfft=1), /Q, SIDAMFourierFilter#menuDo() help = {"Apply a Fourier filter to a source wave"} // Fourier Symmetrization SIDAMMenus#menu("Fourier Symmetrization...", noComplex=1), /Q, SIDAMFourierSym#menuDo() help = {"Symmetrize a FFT image"} End // Correlation SIDAMMenus#menu("Correlation...", forfft=1), /Q, SIDAMCorrelation#menuDo() help = {"Compute a correlation function of a source wave(s)."} // Work Function SIDAMMenus#menu("Work Function...", dim=3), /Q, SIDAMWorkfunction#menuDo() help = {"Compute work function."} "-" "Position Recorder", /Q, SIDAMPositionRecorder("") // Extract Layers of LayerViewer SIDAMExtractLayer#menu(), /Q, SIDAMExtractLayer#menuDo() // "Data Parameters" SIDAMShowParameters#rightclickMenu(), /Q, SIDAMShowParameters() "-" SubMenu "Extension" End "-" "Close Infobar", /Q, SIDAMInfoBar(WinName(0,1)) End //------------------------------------------------------------- // conditional menu //------------------------------------------------------------- Static Function/S menu(String str, [int noComplex, int dim, int forfft]) noComplex = ParamIsDefault(noComplex) ? 0 : noComplex String grfName = WinName(0,1) if (!strlen(grfName)) return "(" + str endif Wave/Z w = SIDAMImageWaveRef(grfName) if (!WaveExists(w)) return "(" + str endif // return empty for 2D waves if (!ParamIsDefault(dim) && dim==3 && WaveDims(w)!=3) return "" endif // gray out for complex waves if (noComplex) return SelectString((WaveType(w) & 0x01), "", "(") + str endif // gray out for waves which are not for FFT if (!ParamIsDefault(forfft) && forfft) // When a big wave is contained an experiment file, SIDAMValidateWaveforFFT may // make the menu responce slow. Therefore, use SIDAMValidateWaveforFFT only if // the wave in a window has been modified since the last menu call. Variable grfTime = str2num(GetUserData(grfName, "", "modtime")) Variable wTime = NumberByKey("MODTIME", WaveInfo(w, 0)) Variable fftavailable = str2num(GetUserData(grfName, "", "fftavailable")) int noRecord = numtype(grfTime) || numtype(fftavailable) int isModified = wTime > grfTime if (isModified || noRecord) fftavailable = !SIDAMValidateWaveforFFT(w) SetWindow $grfName userData(modtime)=num2istr(wTime) SetWindow $grfName userData(fftavailable)=num2istr(fftavailable) endif return SelectString(fftavailable, "(", "") + str endif return str End //****************************************************************************** // Definition of right-click menu for 1D waves //****************************************************************************** Menu "SIDAMMenu1D", dynamic, contextualmenu // Trace "Offset and Color...", /Q, SIDAMTrace#menuDo() help = {"Set offset of traces in the top graph."} SubMenu "Sync" // Sync Axis Range "Sync Axis Range...", /Q, SIDAMSyncAxisRange#menuDo() help = {"Syncronize axis range"} End SubMenu "Window" SubMenu "Coordinates" SIDAMInfoBar#menuR(0), /Q, SIDAMInfoBar#menuRDo(0) End SubMenu "Complex" SIDAMInfoBar#menuR(4), /Q, SIDAMInfoBar#menuRDo(4) End End SubMenu "\\M0Save/Export Graphics" "Save Graphics...", DoIgorMenu "File", "Save Graphics" "-" "\\M0Export Graphics (Transparent)", /Q, SIDAMExportGraphicsTransparent() End "-" // Work Function "Work Function...", /Q, SIDAMWorkfunction#menuDo() help = {"Compute work function."} "-" // "Data Parameters" SIDAMShowParameters#rightclickMenu(), /Q, SIDAMShowParameters() "-" SubMenu "Extension" End "-" "Close Infobar", /Q, SIDAMInfoBar(WinName(0,1)) End //****************************************************************************** // Definition of graph marquee menu //****************************************************************************** Menu "GraphMarquee", dynamic SIDAMSubtraction#marqueeMenu(),/Q, SIDAMSubtraction#marqueeDo() SIDAMFourierSym#marqueeMenu(),/Q, SIDAMFourierSym#marqueeDo() Submenu "Get peak" SIDAMPeakPos#marqueeMenu(0), /Q, SIDAMPeakPos#marqueeDo(0) SIDAMPeakPos#marqueeMenu(1), /Q, SIDAMPeakPos#marqueeDo(1) End End
IGOR Pro
4
yuksk/SIDAM
src/SIDAM/func/SIDAM_Menus.ipf
[ "MIT" ]
#import <ATen/native/metal/mpscnn/MPSCNNUtils.h> namespace at { namespace native { namespace metal { namespace mpscnn { auto divRoundUp(uint x, uint y) -> uint { return (x + y - 1) / y; } LaunchParams spatialPointwiseKernelLaunchParams( id<MTLComputePipelineState> pipeline, MPSImage* im) { return spatialPointwiseKernelLaunchParams( pipeline, im.numberOfImages, im.featureChannels, im.height, im.width); }; LaunchParams spatialPointwiseKernelLaunchParams( id<MTLComputePipelineState> pipeline, NSUInteger numberOfImages, NSUInteger featureChannels, NSUInteger height, NSUInteger width) { const auto threadsPerThreadgroup = MTLSizeMake( 8 /* threadExecutionWidth */, 4 /* maxThreadsPerThreadgroup / threadExecutionWidth */, 1); const auto threadgroupsPerGrid = MTLSizeMake( divRoundUp(width, threadsPerThreadgroup.width), divRoundUp(height, threadsPerThreadgroup.height), numberOfImages * divRoundUp(featureChannels, 4)); const auto threadsPerGrid = MTLSizeMake( width, height, numberOfImages * divRoundUp(featureChannels, 4)); return {threadsPerThreadgroup, threadgroupsPerGrid, threadsPerGrid}; }; } } } }
Objective-C++
4
Hacky-DH/pytorch
aten/src/ATen/native/metal/mpscnn/MPSCNNUtils.mm
[ "Intel" ]
camera { location <0.275, 0.15, -0.2> look_at <0.3, 0.1, 0> } // Light source on the left side of the scene light_source { <-1.5, 1, 0.3> color rgb <1, 1, 1> fade_distance 2 fade_power 2 area_light <0.7, 0, 0>, <0, 0.7, 0>, 12, 12 circular orient } // Light source on the left side of the scene light_source { <0.6, 1, 2.3> color rgb <1, 1, 1> fade_distance 2 fade_power 2 area_light <0.7, 0, 0>, <0, 0.7, 0>, 12, 12 circular orient } #declare pawn = union { cylinder { <0, 0.0, 0>, <0, 0.1, 0>, 0.5 } cylinder { <0, 0.1, 0>, <0, 0.2, 0>, 0.45 } cone { <0, 0.2, 0>, 0.4, <0, 1.0, 0>, 0.0 } sphere{ <0, 1.0, 0>, 0.3 } finish { specular 0.6 } scale 0.08 } #declare chessboard = union { box { <0, 0.01, 0> <0.8, 0.011, 0.8> pigment { checker color rgb<1, 1, 1> color rgb<0, 0, 0> scale 0.8 * 0.125 } finish { reflection 0.1 specular 0.5 roughness 0.001 } } box { <-0.01, 0, -0.01> <0.81, 0.01, 0.81> pigment { color rgb <0.7, 0.5, 0.3> } } } union { object { chessboard } object { pawn pigment{ color rgb <1, 1, 1> } translate <0.25, 0.011, 0.15> } object { pawn pigment{ color rgb <0, 0, 0> } translate <0.45, 0.011, 0.25> } }
POV-Ray SDL
3
spcask/pov-ray-tracing
src/scene12.pov
[ "MIT" ]
; This is created from the performance_200511.move problem, verification of the create function. ; After changes to prelude and other code, its not directly reproducible any longer from Move, ; therefore saved here. ; ; To reproduce, run: ; z3 -st -memory:1000 verbose=3 dump_models=true smt.qi.profile=true create_verify.smt ; (set-option :print-success false) (set-info :smt-lib-version 2.0) (set-option :produce-models true) (set-option :smt.QI.EAGER_THRESHOLD 100) (set-option :smt.QI.LAZY_THRESHOLD 100) (set-option :trace true) (set-option :smt.mbqi false) (set-option :model.compact false) (set-option :model.v2 true) (set-option :pp.bv_literals false) ; done setting options (declare-fun tickleBool (Bool) Bool) (assert (and (tickleBool true) (tickleBool false))) (declare-datatypes ((T@Transaction 0)) (((Transaction (|sender#Transaction| Int) ) ) )) (declare-sort |T@[Int]Value| 0) (declare-datatypes ((T@Value 0)(T@ValueArray 0)) (((Boolean (|b#Boolean| Bool) ) (Integer (|i#Integer| Int) ) (Address (|a#Address| Int) ) (Vector (|v#Vector| T@ValueArray) ) ($Range (|lb#$Range| T@Value) (|ub#$Range| T@Value) ) (Error ) ) ((ValueArray (|v#ValueArray| |T@[Int]Value|) (|l#ValueArray| Int) ) ) )) (declare-sort T@TypeName 0) (declare-sort |T@[Int]TypeValue| 0) (declare-datatypes ((T@TypeValue 0)(T@TypeValueArray 0)) (((BooleanType ) (IntegerType ) (AddressType ) (StrType ) (VectorType (|t#VectorType| T@TypeValue) ) (StructType (|name#StructType| T@TypeName) (|ps#StructType| T@TypeValueArray) (|ts#StructType| T@TypeValueArray) ) (AbstractType (|num#AbstractType| Int) ) (ErrorType ) ) ((TypeValueArray (|v#TypeValueArray| |T@[Int]TypeValue|) (|l#TypeValueArray| Int) ) ) )) (declare-datatypes ((T@Location 0)) (((Global (|t#Global| T@TypeValue) (|a#Global| Int) ) (Local (|i#Local| Int) ) (Param (|i#Param| Int) ) ) )) (declare-sort |T@[Location]Bool| 0) (declare-sort |T@[Location]Value| 0) (declare-datatypes ((T@Memory 0)) (((Memory (|domain#Memory| |T@[Location]Bool|) (|contents#Memory| |T@[Location]Value|) ) ) )) (declare-sort |T@[Int]Int| 0) (declare-datatypes ((T@Path 0)) (((Path (|p#Path| |T@[Int]Int|) (|size#Path| Int) ) ) )) (declare-datatypes ((T@Reference 0)) (((Reference (|l#Reference| T@Location) (|p#Reference| T@Path) ) ) )) (declare-fun $Test_Event1 () T@TypeName) (declare-fun $Test_Event2 () T@TypeName) (declare-fun $Test_EventHandle () T@TypeName) (declare-fun $Test_T () T@TypeName) (declare-fun $Test_EventHandleGenerator () T@TypeName) (declare-fun $DebugTrackLocal (Int Int Int T@Value) Bool) (declare-fun $DebugTrackAbort (Int Int) Bool) (declare-fun EmptyPath () T@Path) (declare-fun DefaultTypeValue () T@TypeValue) (declare-fun EmptyTypeValueArray () T@TypeValueArray) (declare-fun MapConstTypeValue (T@TypeValue) |T@[Int]TypeValue|) (declare-fun MAX_U8 () Int) (declare-fun MAX_U64 () Int) (declare-fun MAX_U128 () Int) (declare-fun DefaultValue () T@Value) (declare-fun EmptyValueArray () T@ValueArray) (declare-fun MapConstValue (T@Value) |T@[Int]Value|) (declare-fun StratificationDepth () Int) (declare-fun IsEqual_stratified (T@Value T@Value) Bool) (declare-fun IsEqual_level1 (T@Value T@Value) Bool) (declare-fun |Select_[$int]Value| (|T@[Int]Value| Int) T@Value) (declare-fun IsEqual_level2 (T@Value T@Value) Bool) (declare-fun $ReadValue_stratified (T@Path T@Value) T@Value) (declare-fun $ReadValue_level1 (T@Path T@Value) T@Value) (declare-fun |Select_[$int]$int| (|T@[Int]Int| Int) Int) (declare-fun $ReadValue_level2 (T@Path T@Value) T@Value) (declare-fun $UpdateValue_stratified (T@Path T@Value T@Value) T@Value) (declare-fun |Store_[$int]Value| (|T@[Int]Value| Int T@Value) |T@[Int]Value|) (assert (forall ( ( ?x0 |T@[Int]Value|) ( ?x1 Int) ( ?x2 T@Value)) (= (|Select_[$int]Value| (|Store_[$int]Value| ?x0 ?x1 ?x2) ?x1) ?x2))) (assert (forall ( ( ?x0 |T@[Int]Value|) ( ?x1 Int) ( ?y1 Int) ( ?x2 T@Value)) (=> (not (= ?x1 ?y1)) (= (|Select_[$int]Value| (|Store_[$int]Value| ?x0 ?x1 ?x2) ?y1) (|Select_[$int]Value| ?x0 ?y1))))) (declare-fun $UpdateValue_level1 (T@Path T@Value T@Value) T@Value) (declare-fun $UpdateValue_level2 (T@Path T@Value T@Value) T@Value) (declare-fun EmptyMemory () T@Memory) (declare-fun ConstMemoryDomain (Bool) |T@[Location]Bool|) (declare-fun ConstMemoryContent (T@Value) |T@[Location]Value|) (declare-fun $Hash_sha2_core (T@Value) T@Value) (declare-fun $Hash_sha3_core (T@Value) T@Value) (declare-fun $BCS_serialize_core (T@Value) T@Value) (declare-fun $Test_Event1_dummy_field () Int) (declare-fun $Test_Event1_type_value () T@TypeValue) (declare-fun |Store_[$int]TypeValue| (|T@[Int]TypeValue| Int T@TypeValue) |T@[Int]TypeValue|) (declare-fun |Select_[$int]TypeValue| (|T@[Int]TypeValue| Int) T@TypeValue) (assert (forall ( ( ?x0 |T@[Int]TypeValue|) ( ?x1 Int) ( ?x2 T@TypeValue)) (= (|Select_[$int]TypeValue| (|Store_[$int]TypeValue| ?x0 ?x1 ?x2) ?x1) ?x2))) (assert (forall ( ( ?x0 |T@[Int]TypeValue|) ( ?x1 Int) ( ?y1 Int) ( ?x2 T@TypeValue)) (=> (not (= ?x1 ?y1)) (= (|Select_[$int]TypeValue| (|Store_[$int]TypeValue| ?x0 ?x1 ?x2) ?y1) (|Select_[$int]TypeValue| ?x0 ?y1))))) (declare-fun $Test_Event2_dummy_field () Int) (declare-fun $Test_Event2_type_value () T@TypeValue) (declare-fun $Test_EventHandle_counter () Int) (declare-fun $Test_EventHandle_guid () Int) (declare-fun $Test_EventHandle_type_value (T@TypeValue) T@TypeValue) (declare-fun $Test_T_received_events () Int) (declare-fun $Test_T_sent_events () Int) (declare-fun $Test_T_type_value () T@TypeValue) (declare-fun $Test_EventHandleGenerator_counter () Int) (declare-fun $Test_EventHandleGenerator_type_value () T@TypeValue) (declare-fun |lambda#0| (Int Int |T@[Int]Value| T@Value) |T@[Int]Value|) (declare-fun |lambda#1| (Int Int Int |T@[Int]Value| |T@[Int]Value| Int T@Value) |T@[Int]Value|) (declare-fun |lambda#2| (Int Int Int |T@[Int]Value| |T@[Int]Value| Int T@Value) |T@[Int]Value|) (declare-fun |lambda#3| (Int Int |T@[Int]Value| Int Int T@Value) |T@[Int]Value|) (declare-fun |lambda#4| (Int Int |T@[Int]Value| Int T@Value) |T@[Int]Value|) (assert (distinct $Test_Event1 $Test_Event2 $Test_EventHandle $Test_T $Test_EventHandleGenerator) ) (assert (forall ((file_id Int) (byte_index Int) (var_idx Int) (value T@Value) ) (! (= ($DebugTrackLocal file_id byte_index var_idx value) true) :qid |outputbp.54:27| :skolemid |0| :pattern ( ($DebugTrackLocal file_id byte_index var_idx value)) ))) (assert (forall ((file_id@@0 Int) (byte_index@@0 Int) ) (! (= ($DebugTrackAbort file_id@@0 byte_index@@0) true) :qid |outputbp.59:27| :skolemid |1| :pattern ( ($DebugTrackAbort file_id@@0 byte_index@@0)) ))) (assert (= (|size#Path| EmptyPath) 0)) (assert (= DefaultTypeValue ErrorType)) (assert (= (|l#TypeValueArray| EmptyTypeValueArray) 0)) (assert (= (|v#TypeValueArray| EmptyTypeValueArray) (MapConstTypeValue DefaultTypeValue))) (assert (= MAX_U8 255)) (assert (= MAX_U64 18446744073709551615)) (assert (= MAX_U128 340282366920938463463374607431768211455)) (assert (= DefaultValue Error)) (assert (= (|l#ValueArray| EmptyValueArray) 0)) (assert (= (|v#ValueArray| EmptyValueArray) (MapConstValue DefaultValue))) (assert (= StratificationDepth 4)) (assert (forall ((v1 T@Value) (v2 T@Value) ) (! (= (IsEqual_stratified v1 v2) (or (= v1 v2) (and (and (and (is-Vector v1) (is-Vector v2)) (= (|l#ValueArray| (|v#Vector| v1)) (|l#ValueArray| (|v#Vector| v2)))) (forall ((i Int) ) (! (=> (and (<= 0 i) (< i (|l#ValueArray| (|v#Vector| v1)))) (IsEqual_level1 (|Select_[$int]Value| (|v#ValueArray| (|v#Vector| v1)) i) (|Select_[$int]Value| (|v#ValueArray| (|v#Vector| v2)) i))) :qid |outputbp.237:14| :skolemid |3| ))))) :qid |outputbp.232:30| :skolemid |4| :pattern ( (IsEqual_stratified v1 v2)) ))) (assert (forall ((v1@@0 T@Value) (v2@@0 T@Value) ) (! (= (IsEqual_level1 v1@@0 v2@@0) (or (= v1@@0 v2@@0) (and (and (and (is-Vector v1@@0) (is-Vector v2@@0)) (= (|l#ValueArray| (|v#Vector| v1@@0)) (|l#ValueArray| (|v#Vector| v2@@0)))) (forall ((i@@0 Int) ) (! (=> (and (<= 0 i@@0) (< i@@0 (|l#ValueArray| (|v#Vector| v1@@0)))) (IsEqual_level2 (|Select_[$int]Value| (|v#ValueArray| (|v#Vector| v1@@0)) i@@0) (|Select_[$int]Value| (|v#ValueArray| (|v#Vector| v2@@0)) i@@0))) :qid |outputbp.245:14| :skolemid |5| ))))) :qid |outputbp.240:26| :skolemid |6| :pattern ( (IsEqual_level1 v1@@0 v2@@0)) ))) (assert (forall ((v1@@1 T@Value) (v2@@1 T@Value) ) (! (= (IsEqual_level2 v1@@1 v2@@1) (or (= v1@@1 v2@@1) (and (and (and (is-Vector v1@@1) (is-Vector v2@@1)) (= (|l#ValueArray| (|v#Vector| v1@@1)) (|l#ValueArray| (|v#Vector| v2@@1)))) (forall ((i@@1 Int) ) (! (=> (and (<= 0 i@@1) (< i@@1 (|l#ValueArray| (|v#Vector| v1@@1)))) (= (|Select_[$int]Value| (|v#ValueArray| (|v#Vector| v1@@1)) i@@1) (|Select_[$int]Value| (|v#ValueArray| (|v#Vector| v2@@1)) i@@1))) :qid |outputbp.253:14| :skolemid |7| ))))) :qid |outputbp.248:26| :skolemid |8| :pattern ( (IsEqual_level2 v1@@1 v2@@1)) ))) (assert (forall ((p T@Path) (v T@Value) ) (! (= ($ReadValue_stratified p v) (ite (= 0 (|size#Path| p)) v ($ReadValue_level1 p (|Select_[$int]Value| (|v#ValueArray| (|v#Vector| v)) (|Select_[$int]$int| (|p#Path| p) 0))))) :qid |outputbp.270:33| :skolemid |9| :pattern ( ($ReadValue_stratified p v)) ))) (assert (forall ((p@@0 T@Path) (v@@0 T@Value) ) (! (= ($ReadValue_level1 p@@0 v@@0) (ite (= 1 (|size#Path| p@@0)) v@@0 ($ReadValue_level2 p@@0 (|Select_[$int]Value| (|v#ValueArray| (|v#Vector| v@@0)) (|Select_[$int]$int| (|p#Path| p@@0) 1))))) :qid |outputbp.277:29| :skolemid |10| :pattern ( ($ReadValue_level1 p@@0 v@@0)) ))) (assert (forall ((p@@1 T@Path) (v@@1 T@Value) ) (! (= ($ReadValue_level2 p@@1 v@@1) (ite (= 2 (|size#Path| p@@1)) v@@1 (|Select_[$int]Value| (|v#ValueArray| (|v#Vector| v@@1)) (|Select_[$int]$int| (|p#Path| p@@1) 2)))) :qid |outputbp.284:29| :skolemid |11| :pattern ( ($ReadValue_level2 p@@1 v@@1)) ))) (assert (forall ((p@@2 T@Path) (v@@2 T@Value) (new_v T@Value) ) (! (= ($UpdateValue_stratified p@@2 v@@2 new_v) (ite (= 0 (|size#Path| p@@2)) new_v (Vector (ValueArray (|Store_[$int]Value| (|v#ValueArray| (|v#Vector| v@@2)) (|Select_[$int]$int| (|p#Path| p@@2) 0) ($UpdateValue_level1 p@@2 (|Select_[$int]Value| (|v#ValueArray| (|v#Vector| v@@2)) (|Select_[$int]$int| (|p#Path| p@@2) 0)) new_v)) (|l#ValueArray| (|v#Vector| v@@2)))))) :qid |outputbp.303:35| :skolemid |12| :pattern ( ($UpdateValue_stratified p@@2 v@@2 new_v)) ))) (assert (forall ((p@@3 T@Path) (v@@3 T@Value) (new_v@@0 T@Value) ) (! (= ($UpdateValue_level1 p@@3 v@@3 new_v@@0) (ite (= 1 (|size#Path| p@@3)) new_v@@0 (Vector (ValueArray (|Store_[$int]Value| (|v#ValueArray| (|v#Vector| v@@3)) (|Select_[$int]$int| (|p#Path| p@@3) 1) ($UpdateValue_level2 p@@3 (|Select_[$int]Value| (|v#ValueArray| (|v#Vector| v@@3)) (|Select_[$int]$int| (|p#Path| p@@3) 1)) new_v@@0)) (|l#ValueArray| (|v#Vector| v@@3)))))) :qid |outputbp.311:31| :skolemid |13| :pattern ( ($UpdateValue_level1 p@@3 v@@3 new_v@@0)) ))) (assert (forall ((p@@4 T@Path) (v@@4 T@Value) (new_v@@1 T@Value) ) (! (= ($UpdateValue_level2 p@@4 v@@4 new_v@@1) (ite (= 2 (|size#Path| p@@4)) new_v@@1 (Vector (ValueArray (|Store_[$int]Value| (|v#ValueArray| (|v#Vector| v@@4)) (|Select_[$int]$int| (|p#Path| p@@4) 2) new_v@@1) (|l#ValueArray| (|v#Vector| v@@4)))))) :qid |outputbp.319:31| :skolemid |14| :pattern ( ($UpdateValue_level2 p@@4 v@@4 new_v@@1)) ))) (assert (= (|domain#Memory| EmptyMemory) (ConstMemoryDomain false))) (assert (= (|contents#Memory| EmptyMemory) (ConstMemoryContent DefaultValue))) (assert (forall ((v1@@2 T@Value) (v2@@2 T@Value) ) (! (=> (and (and (and (is-Vector v1@@2) (let ((va (|v#Vector| v1@@2))) (let ((l (|l#ValueArray| va))) (and (<= 0 l) (forall ((x Int) ) (! (=> (or (< x 0) (>= x l)) (= (|Select_[$int]Value| (|v#ValueArray| va) x) DefaultValue)) :qid |outputbp.826:21| :skolemid |17| :pattern ( (|Select_[$int]Value| (|v#ValueArray| va) x)) )))))) (and (is-Vector v2@@2) (let ((va@@0 (|v#Vector| v2@@2))) (let ((l@@0 (|l#ValueArray| va@@0))) (and (<= 0 l@@0) (forall ((x@@0 Int) ) (! (=> (or (< x@@0 0) (>= x@@0 l@@0)) (= (|Select_[$int]Value| (|v#ValueArray| va@@0) x@@0) DefaultValue)) :qid |outputbp.826:21| :skolemid |17| :pattern ( (|Select_[$int]Value| (|v#ValueArray| va@@0) x@@0)) ))))))) (IsEqual_stratified v1@@2 v2@@2)) (IsEqual_stratified ($Hash_sha2_core v1@@2) ($Hash_sha2_core v2@@2))) :qid |outputbp.1012:15| :skolemid |18| ))) (assert (forall ((v1@@3 T@Value) (v2@@3 T@Value) ) (! (=> (and (and (and (is-Vector v1@@3) (let ((va@@1 (|v#Vector| v1@@3))) (let ((l@@1 (|l#ValueArray| va@@1))) (and (<= 0 l@@1) (forall ((x@@1 Int) ) (! (=> (or (< x@@1 0) (>= x@@1 l@@1)) (= (|Select_[$int]Value| (|v#ValueArray| va@@1) x@@1) DefaultValue)) :qid |outputbp.826:21| :skolemid |17| :pattern ( (|Select_[$int]Value| (|v#ValueArray| va@@1) x@@1)) )))))) (and (is-Vector v2@@3) (let ((va@@2 (|v#Vector| v2@@3))) (let ((l@@2 (|l#ValueArray| va@@2))) (and (<= 0 l@@2) (forall ((x@@2 Int) ) (! (=> (or (< x@@2 0) (>= x@@2 l@@2)) (= (|Select_[$int]Value| (|v#ValueArray| va@@2) x@@2) DefaultValue)) :qid |outputbp.826:21| :skolemid |17| :pattern ( (|Select_[$int]Value| (|v#ValueArray| va@@2) x@@2)) ))))))) (IsEqual_stratified ($Hash_sha2_core v1@@3) ($Hash_sha2_core v2@@3))) (IsEqual_stratified v1@@3 v2@@3)) :qid |outputbp.1016:15| :skolemid |19| ))) (assert (forall ((v1@@4 T@Value) (v2@@4 T@Value) ) (! (=> (and (and (and (is-Vector v1@@4) (let ((va@@3 (|v#Vector| v1@@4))) (let ((l@@3 (|l#ValueArray| va@@3))) (and (<= 0 l@@3) (forall ((x@@3 Int) ) (! (=> (or (< x@@3 0) (>= x@@3 l@@3)) (= (|Select_[$int]Value| (|v#ValueArray| va@@3) x@@3) DefaultValue)) :qid |outputbp.826:21| :skolemid |17| :pattern ( (|Select_[$int]Value| (|v#ValueArray| va@@3) x@@3)) )))))) (and (is-Vector v2@@4) (let ((va@@4 (|v#Vector| v2@@4))) (let ((l@@4 (|l#ValueArray| va@@4))) (and (<= 0 l@@4) (forall ((x@@4 Int) ) (! (=> (or (< x@@4 0) (>= x@@4 l@@4)) (= (|Select_[$int]Value| (|v#ValueArray| va@@4) x@@4) DefaultValue)) :qid |outputbp.826:21| :skolemid |17| :pattern ( (|Select_[$int]Value| (|v#ValueArray| va@@4) x@@4)) ))))))) (IsEqual_stratified v1@@4 v2@@4)) (IsEqual_stratified ($Hash_sha3_core v1@@4) ($Hash_sha3_core v2@@4))) :qid |outputbp.1034:15| :skolemid |20| ))) (assert (forall ((v1@@5 T@Value) (v2@@5 T@Value) ) (! (=> (and (and (and (is-Vector v1@@5) (let ((va@@5 (|v#Vector| v1@@5))) (let ((l@@5 (|l#ValueArray| va@@5))) (and (<= 0 l@@5) (forall ((x@@5 Int) ) (! (=> (or (< x@@5 0) (>= x@@5 l@@5)) (= (|Select_[$int]Value| (|v#ValueArray| va@@5) x@@5) DefaultValue)) :qid |outputbp.826:21| :skolemid |17| :pattern ( (|Select_[$int]Value| (|v#ValueArray| va@@5) x@@5)) )))))) (and (is-Vector v2@@5) (let ((va@@6 (|v#Vector| v2@@5))) (let ((l@@6 (|l#ValueArray| va@@6))) (and (<= 0 l@@6) (forall ((x@@6 Int) ) (! (=> (or (< x@@6 0) (>= x@@6 l@@6)) (= (|Select_[$int]Value| (|v#ValueArray| va@@6) x@@6) DefaultValue)) :qid |outputbp.826:21| :skolemid |17| :pattern ( (|Select_[$int]Value| (|v#ValueArray| va@@6) x@@6)) ))))))) (IsEqual_stratified ($Hash_sha3_core v1@@5) ($Hash_sha3_core v2@@5))) (IsEqual_stratified v1@@5 v2@@5)) :qid |outputbp.1037:15| :skolemid |21| ))) (assert (forall ((v1@@6 T@Value) (v2@@6 T@Value) ) (! (=> (IsEqual_stratified v1@@6 v2@@6) (IsEqual_stratified ($BCS_serialize_core v1@@6) ($BCS_serialize_core v2@@6))) :qid |outputbp.1122:15| :skolemid |22| ))) (assert (forall ((v1@@7 T@Value) (v2@@7 T@Value) ) (! (=> (IsEqual_stratified ($BCS_serialize_core v1@@7) ($BCS_serialize_core v2@@7)) (IsEqual_stratified v1@@7 v2@@7)) :qid |outputbp.1126:15| :skolemid |23| ))) (assert (forall ((v@@5 T@Value) ) (! (let ((r ($BCS_serialize_core v@@5))) (and (and (and (is-Vector r) (let ((va@@7 (|v#Vector| r))) (let ((l@@7 (|l#ValueArray| va@@7))) (and (<= 0 l@@7) (forall ((x@@7 Int) ) (! (=> (or (< x@@7 0) (>= x@@7 l@@7)) (= (|Select_[$int]Value| (|v#ValueArray| va@@7) x@@7) DefaultValue)) :qid |outputbp.826:21| :skolemid |17| :pattern ( (|Select_[$int]Value| (|v#ValueArray| va@@7) x@@7)) )))))) (forall ((i@@2 Int) ) (! (=> (and (<= 0 i@@2) (< i@@2 (|l#ValueArray| (|v#Vector| r)))) (and (and (is-Integer (|Select_[$int]Value| (|v#ValueArray| (|v#Vector| r)) i@@2)) (>= (|i#Integer| (|Select_[$int]Value| (|v#ValueArray| (|v#Vector| r)) i@@2)) 0)) (<= (|i#Integer| (|Select_[$int]Value| (|v#ValueArray| (|v#Vector| r)) i@@2)) MAX_U8))) :qid |outputbp.131:14| :skolemid |2| :pattern ( (|Select_[$int]Value| (|v#ValueArray| (|v#Vector| r)) i@@2)) ))) (> (|l#ValueArray| (|v#Vector| r)) 0))) :qid |outputbp.1130:15| :skolemid |24| ))) (assert (= $Test_Event1_dummy_field 0)) (assert (= $Test_Event1_type_value (StructType $Test_Event1 (TypeValueArray (MapConstTypeValue DefaultTypeValue) 0) (TypeValueArray (|Store_[$int]TypeValue| (MapConstTypeValue DefaultTypeValue) 0 BooleanType) 1)))) (assert (= $Test_Event2_dummy_field 0)) (assert (= $Test_Event2_type_value (StructType $Test_Event2 (TypeValueArray (MapConstTypeValue DefaultTypeValue) 0) (TypeValueArray (|Store_[$int]TypeValue| (MapConstTypeValue DefaultTypeValue) 0 BooleanType) 1)))) (assert (= $Test_EventHandle_counter 0)) (assert (= $Test_EventHandle_guid 1)) (assert (forall (($tv0 T@TypeValue) ) (! (= ($Test_EventHandle_type_value $tv0) (StructType $Test_EventHandle (TypeValueArray (|Store_[$int]TypeValue| (MapConstTypeValue DefaultTypeValue) 0 $tv0) 1) (TypeValueArray (|Store_[$int]TypeValue| (|Store_[$int]TypeValue| (MapConstTypeValue DefaultTypeValue) 0 IntegerType) 1 (VectorType IntegerType)) 2))) :qid |outputbp.1326:39| :skolemid |25| :pattern ( ($Test_EventHandle_type_value $tv0)) ))) (assert (= $Test_T_received_events 0)) (assert (= $Test_T_sent_events 1)) (assert (= $Test_T_type_value (StructType $Test_T (TypeValueArray (MapConstTypeValue DefaultTypeValue) 0) (TypeValueArray (|Store_[$int]TypeValue| (|Store_[$int]TypeValue| (MapConstTypeValue DefaultTypeValue) 0 ($Test_EventHandle_type_value $Test_Event1_type_value)) 1 ($Test_EventHandle_type_value $Test_Event2_type_value)) 2)))) (assert (= $Test_EventHandleGenerator_counter 0)) (assert (= $Test_EventHandleGenerator_type_value (StructType $Test_EventHandleGenerator (TypeValueArray (MapConstTypeValue DefaultTypeValue) 0) (TypeValueArray (|Store_[$int]TypeValue| (MapConstTypeValue DefaultTypeValue) 0 IntegerType) 1)))) (assert (forall ((i@@3 Int) (|l#0| Int) (|l#1| Int) (|l#2| |T@[Int]Value|) (|l#3| T@Value) ) (! (= (|Select_[$int]Value| (|lambda#0| |l#0| |l#1| |l#2| |l#3|) i@@3) (ite (and (>= i@@3 |l#0|) (< i@@3 |l#1|)) (|Select_[$int]Value| |l#2| i@@3) |l#3|)) :qid |outputbp.162:21| :skolemid |45| :pattern ( (|Select_[$int]Value| (|lambda#0| |l#0| |l#1| |l#2| |l#3|) i@@3)) ))) (assert (forall ((j Int) (|l#0@@0| Int) (|l#1@@0| Int) (|l#2@@0| Int) (|l#3@@0| |T@[Int]Value|) (|l#4| |T@[Int]Value|) (|l#5| Int) (|l#6| T@Value) ) (! (= (|Select_[$int]Value| (|lambda#1| |l#0@@0| |l#1@@0| |l#2@@0| |l#3@@0| |l#4| |l#5| |l#6|) j) (ite (and (>= j |l#0@@0|) (< j |l#1@@0|)) (ite (< j |l#2@@0|) (|Select_[$int]Value| |l#3@@0| j) (|Select_[$int]Value| |l#4| (+ j |l#5|))) |l#6|)) :qid |outputbp.172:21| :skolemid |46| :pattern ( (|Select_[$int]Value| (|lambda#1| |l#0@@0| |l#1@@0| |l#2@@0| |l#3@@0| |l#4| |l#5| |l#6|) j)) ))) (assert (forall ((i@@4 Int) (|l#0@@1| Int) (|l#1@@1| Int) (|l#2@@1| Int) (|l#3@@1| |T@[Int]Value|) (|l#4@@0| |T@[Int]Value|) (|l#5@@0| Int) (|l#6@@0| T@Value) ) (! (= (|Select_[$int]Value| (|lambda#2| |l#0@@1| |l#1@@1| |l#2@@1| |l#3@@1| |l#4@@0| |l#5@@0| |l#6@@0|) i@@4) (ite (and (>= i@@4 |l#0@@1|) (< i@@4 |l#1@@1|)) (ite (< i@@4 |l#2@@1|) (|Select_[$int]Value| |l#3@@1| i@@4) (|Select_[$int]Value| |l#4@@0| (- i@@4 |l#5@@0|))) |l#6@@0|)) :qid |outputbp.184:21| :skolemid |47| :pattern ( (|Select_[$int]Value| (|lambda#2| |l#0@@1| |l#1@@1| |l#2@@1| |l#3@@1| |l#4@@0| |l#5@@0| |l#6@@0|) i@@4)) ))) (assert (forall ((i@@5 Int) (|l#0@@2| Int) (|l#1@@2| Int) (|l#2@@2| |T@[Int]Value|) (|l#3@@2| Int) (|l#4@@1| Int) (|l#5@@1| T@Value) ) (! (= (|Select_[$int]Value| (|lambda#3| |l#0@@2| |l#1@@2| |l#2@@2| |l#3@@2| |l#4@@1| |l#5@@1|) i@@5) (ite (and (<= |l#0@@2| i@@5) (< i@@5 |l#1@@2|)) (|Select_[$int]Value| |l#2@@2| (- (- |l#3@@2| i@@5) |l#4@@1|)) |l#5@@1|)) :qid |outputbp.196:21| :skolemid |48| :pattern ( (|Select_[$int]Value| (|lambda#3| |l#0@@2| |l#1@@2| |l#2@@2| |l#3@@2| |l#4@@1| |l#5@@1|) i@@5)) ))) (assert (forall ((k Int) (|l#0@@3| Int) (|l#1@@3| Int) (|l#2@@3| |T@[Int]Value|) (|l#3@@3| Int) (|l#4@@2| T@Value) ) (! (= (|Select_[$int]Value| (|lambda#4| |l#0@@3| |l#1@@3| |l#2@@3| |l#3@@3| |l#4@@2|) k) (ite (and (<= |l#0@@3| k) (< k |l#1@@3|)) (|Select_[$int]Value| |l#2@@3| (+ |l#3@@3| k)) |l#4@@2|)) :qid |outputbp.202:24| :skolemid |49| :pattern ( (|Select_[$int]Value| (|lambda#4| |l#0@@3| |l#1@@3| |l#2@@3| |l#3@@3| |l#4@@2|) k)) ))) (declare-fun ControlFlow (Int Int) Int) (declare-fun fresh_address () T@Value) (declare-fun auth_key_prefix () T@Value) (declare-fun $abort_flag@7 () Bool) (declare-fun |Select_[Location]$bool| (|T@[Location]Bool| T@Location) Bool) (declare-fun $m () T@Memory) (declare-fun $txn () T@Transaction) (declare-fun inline$$Test_create$0$$ret0@2 () T@Value) (declare-fun |Select_[Location]Value| (|T@[Location]Value| T@Location) T@Value) (declare-fun $m@69 () T@Memory) (declare-fun inline$$Test_create$0$$ret0@1 () T@Value) (declare-fun $m@68 () T@Memory) (declare-fun $abort_flag@6 () Bool) (declare-fun inline$$CopyOrMoveValue$23$local@0 () T@Value) (declare-fun |Store_[Location]$bool| (|T@[Location]Bool| T@Location Bool) |T@[Location]Bool|) (assert (forall ( ( ?x0 |T@[Location]Bool|) ( ?x1 T@Location) ( ?x2 Bool)) (= (|Select_[Location]$bool| (|Store_[Location]$bool| ?x0 ?x1 ?x2) ?x1) ?x2))) (assert (forall ( ( ?x0 |T@[Location]Bool|) ( ?x1 T@Location) ( ?y1 T@Location) ( ?x2 Bool)) (=> (not (= ?x1 ?y1)) (= (|Select_[Location]$bool| (|Store_[Location]$bool| ?x0 ?x1 ?x2) ?y1) (|Select_[Location]$bool| ?x0 ?y1))))) (declare-fun $m@67 () T@Memory) (declare-fun |Store_[Location]Value| (|T@[Location]Value| T@Location T@Value) |T@[Location]Value|) (assert (forall ( ( ?x0 |T@[Location]Value|) ( ?x1 T@Location) ( ?x2 T@Value)) (= (|Select_[Location]Value| (|Store_[Location]Value| ?x0 ?x1 ?x2) ?x1) ?x2))) (assert (forall ( ( ?x0 |T@[Location]Value|) ( ?x1 T@Location) ( ?y1 T@Location) ( ?x2 T@Value)) (=> (not (= ?x1 ?y1)) (= (|Select_[Location]Value| (|Store_[Location]Value| ?x0 ?x1 ?x2) ?y1) (|Select_[Location]Value| ?x0 ?y1))))) (declare-fun $m@65 () T@Memory) (declare-fun inline$$MoveToSender$0$ta@0 () T@TypeValue) (declare-fun inline$$MoveToSender$0$a@1 () Int) (declare-fun $m@66 () T@Memory) (declare-fun inline$$MoveToSender$0$l@1 () T@Location) (declare-fun inline$$MoveToSender$0$v@0 () T@Value) (declare-fun $abort_flag@5 () Bool) (declare-fun $m@64 () T@Memory) (declare-fun inline$$Test_T_pack$0$$struct@1 () T@Value) (declare-fun inline$$Test_T_pack$0$received_events@0 () T@Value) (declare-fun inline$$Test_T_pack$0$sent_events@0 () T@Value) (declare-fun inline$$Test_new_event_handle_impl$1$$ret0@2 () T@Value) (declare-fun $m@63 () T@Memory) (declare-fun inline$$BorrowLoc$3$dst@1 () T@Reference) (declare-fun $m@41 () T@Memory) (declare-fun inline$$Test_new_event_handle_impl$1$sender@0 () T@Value) (declare-fun inline$$Test_new_event_handle_impl$1$$ret0@1 () T@Value) (declare-fun $m@62 () T@Memory) (declare-fun $abort_flag@4 () Bool) (declare-fun $m@61 () T@Memory) (declare-fun $local_counter@2 () Int) (declare-fun inline$$Test_EventHandle_pack$1$$struct@1 () T@Value) (declare-fun inline$$Test_EventHandle_pack$1$counter@0 () T@Value) (declare-fun inline$$Test_EventHandle_pack$1$guid@0 () T@Value) (declare-fun inline$$Test_fresh_guid$1$$ret0@2 () T@Value) (declare-fun $m@60 () T@Memory) (declare-fun $m@44 () T@Memory) (declare-fun inline$$Test_fresh_guid$1$sender@0 () T@Value) (declare-fun $abort_flag@3 () Bool) (declare-fun $abort_flag@2 () Bool) (declare-fun $m@59 () T@Memory) (declare-fun inline$$Test_fresh_guid$1$$ret0@1 () T@Value) (declare-fun inline$$CopyOrMoveValue$22$local@0 () T@Value) (declare-fun $m@58 () T@Memory) (declare-fun $local_counter@3 () Int) (declare-fun inline$$WriteRef$4$l@1 () T@Location) (declare-fun inline$$BorrowLoc$4$dst@1 () T@Reference) (declare-fun inline$$WriteRef$4$v@1 () T@Value) (declare-fun $m@57 () T@Memory) (declare-fun inline$$WriteRef$4$v@2 () T@Value) (declare-fun inline$$WriteRef$4$new_v@0 () T@Value) (declare-fun inline$$Vector_append$2$other@0 () T@Value) (declare-fun inline$$Vector_append$2$v@1 () T@Value) (declare-fun inline$$Vector_append$2$ta@0 () T@TypeValue) (declare-fun inline$$CopyOrMoveValue$21$local@0 () T@Value) (declare-fun $m@56 () T@Memory) (declare-fun inline$$BorrowLoc$4$l@0 () Int) (declare-fun inline$$WriteRef$3$l@1 () T@Location) (declare-fun inline$$BorrowField$5$dst@1 () T@Reference) (declare-fun inline$$WriteRef$3$v@1 () T@Value) (declare-fun $m@55 () T@Memory) (declare-fun inline$$WriteRef$3$v@2 () T@Value) (declare-fun inline$$WriteRef$3$new_v@0 () T@Value) (declare-fun inline$$BorrowField$5$p@1 () T@Path) (declare-fun inline$$BorrowField$5$size@1 () Int) (declare-fun inline$$BorrowField$5$p@2 () T@Path) (declare-fun |Store_[$int]$int| (|T@[Int]Int| Int Int) |T@[Int]Int|) (assert (forall ( ( ?x0 |T@[Int]Int|) ( ?x1 Int) ( ?x2 Int)) (= (|Select_[$int]$int| (|Store_[$int]$int| ?x0 ?x1 ?x2) ?x1) ?x2))) (assert (forall ( ( ?x0 |T@[Int]Int|) ( ?x1 Int) ( ?y1 Int) ( ?x2 Int)) (=> (not (= ?x1 ?y1)) (= (|Select_[$int]$int| (|Store_[$int]$int| ?x0 ?x1 ?x2) ?y1) (|Select_[$int]$int| ?x0 ?y1))))) (declare-fun $m@54 () T@Memory) (declare-fun inline$$AddU64$1$dst@2 () T@Value) (declare-fun inline$$AddU64$1$src1@0 () T@Value) (declare-fun inline$$AddU64$1$src2@0 () T@Value) (declare-fun inline$$AddU64$1$dst@1 () T@Value) (declare-fun inline$$AddU64$1$dst@0 () T@Value) (declare-fun inline$$CopyOrMoveValue$20$local@0 () T@Value) (declare-fun $m@53 () T@Memory) (declare-fun $m@52 () T@Memory) (declare-fun inline$$Test_fresh_guid$1$$tmp@1 () T@Value) (declare-fun inline$$ReadRef$3$v@1 () T@Value) (declare-fun $m@51 () T@Memory) (declare-fun inline$$BorrowField$4$dst@1 () T@Reference) (declare-fun inline$$BorrowField$4$p@1 () T@Path) (declare-fun inline$$BorrowField$4$size@1 () Int) (declare-fun inline$$BorrowField$4$p@2 () T@Path) (declare-fun inline$$CopyOrMoveValue$19$local@0 () T@Value) (declare-fun $m@50 () T@Memory) (declare-fun call2formal@res@0 () T@Value) (declare-fun $m@49 () T@Memory) (declare-fun inline$$ReadRef$2$v@1 () T@Value) (declare-fun $m@48 () T@Memory) (declare-fun call0formal@ta@0 () T@TypeValue) (declare-fun call1formal@v@0 () T@Value) (declare-fun inline$$BorrowField$3$dst@1 () T@Reference) (declare-fun inline$$BorrowField$3$p@1 () T@Path) (declare-fun inline$$BorrowField$3$size@1 () Int) (declare-fun inline$$BorrowField$3$p@2 () T@Path) (declare-fun inline$$CopyOrMoveValue$18$local@0 () T@Value) (declare-fun $m@47 () T@Memory) (declare-fun call2formal@res@0@@0 () T@Value) (declare-fun $m@46 () T@Memory) (declare-fun inline$$CopyOrMoveValue$17$local@0 () T@Value) (declare-fun $m@45 () T@Memory) (declare-fun call0formal@ta@0@@0 () T@TypeValue) (declare-fun call1formal@v@0@@0 () T@Value) (declare-fun $local_counter@4 () Int) (declare-fun $DiemAccount_T_type_value () T@TypeValue) (declare-fun inline$$CopyOrMoveValue$16$local@0 () T@Value) (declare-fun $m@43 () T@Memory) (declare-fun inline$$Test_new_event_handle_impl$1$$tmp@1 () T@Value) (declare-fun $m@42 () T@Memory) (declare-fun inline$$Test_new_event_handle_impl$1$$tv0@0 () T@TypeValue) (declare-fun inline$$CopyOrMoveValue$15$local@0 () T@Value) (declare-fun $m@40 () T@Memory) (declare-fun inline$$BorrowLoc$3$l@0 () Int) (declare-fun inline$$Test_new_event_handle_impl$0$$ret0@2 () T@Value) (declare-fun $m@39 () T@Memory) (declare-fun inline$$BorrowLoc$1$dst@1 () T@Reference) (declare-fun $m@17 () T@Memory) (declare-fun inline$$Test_new_event_handle_impl$0$sender@0 () T@Value) (declare-fun inline$$Test_new_event_handle_impl$0$$ret0@1 () T@Value) (declare-fun $m@38 () T@Memory) (declare-fun $abort_flag@1 () Bool) (declare-fun $m@37 () T@Memory) (declare-fun $local_counter@0 () Int) (declare-fun inline$$Test_EventHandle_pack$0$$struct@1 () T@Value) (declare-fun inline$$Test_EventHandle_pack$0$counter@0 () T@Value) (declare-fun inline$$Test_EventHandle_pack$0$guid@0 () T@Value) (declare-fun inline$$Test_fresh_guid$0$$ret0@2 () T@Value) (declare-fun $m@36 () T@Memory) (declare-fun $m@20 () T@Memory) (declare-fun inline$$Test_fresh_guid$0$sender@0 () T@Value) (declare-fun $abort_flag@0 () Bool) (declare-fun $m@35 () T@Memory) (declare-fun inline$$Test_fresh_guid$0$$ret0@1 () T@Value) (declare-fun inline$$CopyOrMoveValue$14$local@0 () T@Value) (declare-fun $m@34 () T@Memory) (declare-fun $local_counter@1 () Int) (declare-fun inline$$WriteRef$2$l@1 () T@Location) (declare-fun inline$$BorrowLoc$2$dst@1 () T@Reference) (declare-fun inline$$WriteRef$2$v@1 () T@Value) (declare-fun $m@33 () T@Memory) (declare-fun inline$$WriteRef$2$v@2 () T@Value) (declare-fun inline$$WriteRef$2$new_v@0 () T@Value) (declare-fun inline$$Vector_append$1$other@0 () T@Value) (declare-fun inline$$Vector_append$1$v@1 () T@Value) (declare-fun inline$$Vector_append$1$ta@0 () T@TypeValue) (declare-fun inline$$CopyOrMoveValue$13$local@0 () T@Value) (declare-fun $m@32 () T@Memory) (declare-fun inline$$BorrowLoc$2$l@0 () Int) (declare-fun inline$$WriteRef$1$l@1 () T@Location) (declare-fun inline$$BorrowField$2$dst@1 () T@Reference) (declare-fun inline$$WriteRef$1$v@1 () T@Value) (declare-fun $m@31 () T@Memory) (declare-fun inline$$WriteRef$1$v@2 () T@Value) (declare-fun inline$$WriteRef$1$new_v@0 () T@Value) (declare-fun inline$$BorrowField$2$p@1 () T@Path) (declare-fun inline$$BorrowField$2$size@1 () Int) (declare-fun inline$$BorrowField$2$p@2 () T@Path) (declare-fun $m@30 () T@Memory) (declare-fun inline$$AddU64$0$dst@2 () T@Value) (declare-fun inline$$AddU64$0$src1@0 () T@Value) (declare-fun inline$$AddU64$0$src2@0 () T@Value) (declare-fun inline$$AddU64$0$dst@1 () T@Value) (declare-fun inline$$AddU64$0$dst@0 () T@Value) (declare-fun inline$$CopyOrMoveValue$12$local@0 () T@Value) (declare-fun $m@29 () T@Memory) (declare-fun $m@28 () T@Memory) (declare-fun inline$$Test_fresh_guid$0$$tmp@1 () T@Value) (declare-fun inline$$ReadRef$1$v@1 () T@Value) (declare-fun $m@27 () T@Memory) (declare-fun inline$$BorrowField$1$dst@1 () T@Reference) (declare-fun inline$$BorrowField$1$p@1 () T@Path) (declare-fun inline$$BorrowField$1$size@1 () Int) (declare-fun inline$$BorrowField$1$p@2 () T@Path) (declare-fun inline$$CopyOrMoveValue$11$local@0 () T@Value) (declare-fun $m@26 () T@Memory) (declare-fun call2formal@res@0@@1 () T@Value) (declare-fun $m@25 () T@Memory) (declare-fun inline$$ReadRef$0$v@1 () T@Value) (declare-fun $m@24 () T@Memory) (declare-fun call0formal@ta@0@@1 () T@TypeValue) (declare-fun call1formal@v@0@@1 () T@Value) (declare-fun inline$$BorrowField$0$dst@1 () T@Reference) (declare-fun inline$$BorrowField$0$p@1 () T@Path) (declare-fun inline$$BorrowField$0$size@1 () Int) (declare-fun inline$$BorrowField$0$p@2 () T@Path) (declare-fun inline$$CopyOrMoveValue$10$local@0 () T@Value) (declare-fun $m@23 () T@Memory) (declare-fun call2formal@res@0@@2 () T@Value) (declare-fun $m@22 () T@Memory) (declare-fun inline$$CopyOrMoveValue$9$local@0 () T@Value) (declare-fun $m@21 () T@Memory) (declare-fun call0formal@ta@0@@2 () T@TypeValue) (declare-fun call1formal@v@0@@2 () T@Value) (declare-fun inline$$CopyOrMoveValue$8$local@0 () T@Value) (declare-fun $m@19 () T@Memory) (declare-fun inline$$Test_new_event_handle_impl$0$$tmp@1 () T@Value) (declare-fun $m@18 () T@Memory) (declare-fun inline$$Test_new_event_handle_impl$0$$tv0@0 () T@TypeValue) (declare-fun inline$$CopyOrMoveValue$7$local@0 () T@Value) (declare-fun $m@15 () T@Memory) (declare-fun inline$$BorrowLoc$1$l@0 () Int) (declare-fun inline$$Test_create$0$$tmp@4 () T@Value) (declare-fun inline$$Test_create$0$$tmp@5 () T@Value) (declare-fun $m@16 () T@Memory) (declare-fun inline$$CopyOrMoveValue$6$local@0 () T@Value) (declare-fun $m@14 () T@Memory) (declare-fun inline$$CopyOrMoveValue$5$local@0 () T@Value) (declare-fun $m@13 () T@Memory) (declare-fun inline$$Vector_length$0$l@1 () T@Value) (declare-fun $m@11 () T@Memory) (declare-fun $m@10 () T@Memory) (declare-fun inline$$Test_create$0$$tmp@2 () T@Value) (declare-fun $m@12 () T@Memory) (declare-fun inline$$Test_create$0$$tmp@3 () T@Value) (declare-fun inline$$Vector_length$0$v@0 () T@Value) (declare-fun inline$$Vector_length$0$ta@0 () T@TypeValue) (declare-fun inline$$CopyOrMoveValue$4$local@0 () T@Value) (declare-fun $m@9 () T@Memory) (declare-fun inline$$WriteRef$0$l@1 () T@Location) (declare-fun inline$$BorrowLoc$0$dst@1 () T@Reference) (declare-fun inline$$WriteRef$0$v@1 () T@Value) (declare-fun $m@8 () T@Memory) (declare-fun inline$$WriteRef$0$v@2 () T@Value) (declare-fun inline$$WriteRef$0$new_v@0 () T@Value) (declare-fun inline$$Vector_append$0$other@0 () T@Value) (declare-fun inline$$Vector_append$0$v@1 () T@Value) (declare-fun inline$$Vector_append$0$ta@0 () T@TypeValue) (declare-fun call2formal@res@0@@3 () T@Value) (declare-fun $m@7 () T@Memory) (declare-fun inline$$CopyOrMoveValue$3$local@0 () T@Value) (declare-fun $m@6 () T@Memory) (declare-fun call0formal@ta@0@@3 () T@TypeValue) (declare-fun call1formal@v@0@@3 () T@Value) (declare-fun inline$$BorrowLoc$0$l@0 () Int) (declare-fun inline$$CopyOrMoveValue$2$local@0 () T@Value) (declare-fun $m@5 () T@Memory) (declare-fun inline$$CopyOrMoveValue$1$local@0 () T@Value) (declare-fun $m@4 () T@Memory) (declare-fun inline$$CopyOrMoveValue$0$local@0 () T@Value) (declare-fun $m@3 () T@Memory) (declare-fun $m@2 () T@Memory) (declare-fun inline$$Test_EventHandleGenerator_pack$0$$struct@1 () T@Value) (declare-fun inline$$Test_EventHandleGenerator_pack$0$counter@0 () T@Value) (declare-fun inline$$Test_create$0$$tmp@1 () T@Value) (declare-fun $m@1 () T@Memory) (declare-fun $m@0 () T@Memory) (push 1) (set-info :boogie-vc-id $Test_create_verify) (assert (not (=> (= (ControlFlow 0 0) 27784) (let ((inline$$Test_fresh_guid$0$anon27_Then_correct true)) (let ((inline$$Test_fresh_guid$0$anon25_Then_correct true)) (let ((inline$$Test_create$0$Return_correct (and (=> (= (ControlFlow 0 25440) (- 0 35440)) (=> (|b#Boolean| (Boolean (not (IsEqual_stratified (Integer (+ (|i#Integer| (Integer (|l#ValueArray| (|v#Vector| ($BCS_serialize_core fresh_address))))) (|i#Integer| (Integer (|l#ValueArray| (|v#Vector| auth_key_prefix)))))) (Integer 32))))) $abort_flag@7)) (=> (=> (|b#Boolean| (Boolean (not (IsEqual_stratified (Integer (+ (|i#Integer| (Integer (|l#ValueArray| (|v#Vector| ($BCS_serialize_core fresh_address))))) (|i#Integer| (Integer (|l#ValueArray| (|v#Vector| auth_key_prefix)))))) (Integer 32))))) $abort_flag@7) (and (=> (= (ControlFlow 0 25440) (- 0 35476)) (=> (|b#Boolean| (Boolean (|Select_[Location]$bool| (|domain#Memory| $m) (Global $Test_T_type_value (|a#Address| (Address (|sender#Transaction| $txn))))))) $abort_flag@7)) (=> (=> (|b#Boolean| (Boolean (|Select_[Location]$bool| (|domain#Memory| $m) (Global $Test_T_type_value (|a#Address| (Address (|sender#Transaction| $txn))))))) $abort_flag@7) (and (=> (= (ControlFlow 0 25440) (- 0 35490)) (=> $abort_flag@7 (or (|b#Boolean| (Boolean (not (IsEqual_stratified (Integer (+ (|i#Integer| (Integer (|l#ValueArray| (|v#Vector| ($BCS_serialize_core fresh_address))))) (|i#Integer| (Integer (|l#ValueArray| (|v#Vector| auth_key_prefix)))))) (Integer 32))))) (|b#Boolean| (Boolean (|Select_[Location]$bool| (|domain#Memory| $m) (Global $Test_T_type_value (|a#Address| (Address (|sender#Transaction| $txn)))))))))) (=> (=> $abort_flag@7 (or (|b#Boolean| (Boolean (not (IsEqual_stratified (Integer (+ (|i#Integer| (Integer (|l#ValueArray| (|v#Vector| ($BCS_serialize_core fresh_address))))) (|i#Integer| (Integer (|l#ValueArray| (|v#Vector| auth_key_prefix)))))) (Integer 32))))) (|b#Boolean| (Boolean (|Select_[Location]$bool| (|domain#Memory| $m) (Global $Test_T_type_value (|a#Address| (Address (|sender#Transaction| $txn))))))))) (and (=> (= (ControlFlow 0 25440) (- 0 35539)) (=> (not $abort_flag@7) (|b#Boolean| (Boolean (and (|b#Boolean| (Boolean (and (|b#Boolean| (Boolean (IsEqual_stratified (Integer (|l#ValueArray| (|v#Vector| inline$$Test_create$0$$ret0@2))) (Integer (+ (|i#Integer| (Integer (|l#ValueArray| (|v#Vector| auth_key_prefix)))) (|i#Integer| (Integer (|l#ValueArray| (|v#Vector| ($BCS_serialize_core fresh_address)))))))))) (|b#Boolean| (Boolean (IsEqual_stratified (Vector (ValueArray (|lambda#4| 0 (- (|i#Integer| (|ub#$Range| ($Range (Integer 0) (Integer (|l#ValueArray| (|v#Vector| auth_key_prefix)))))) (|i#Integer| (|lb#$Range| ($Range (Integer 0) (Integer (|l#ValueArray| (|v#Vector| auth_key_prefix))))))) (|v#ValueArray| (|v#Vector| inline$$Test_create$0$$ret0@2)) (|i#Integer| (|lb#$Range| ($Range (Integer 0) (Integer (|l#ValueArray| (|v#Vector| auth_key_prefix)))))) DefaultValue) (ite (< (- (|i#Integer| (|ub#$Range| ($Range (Integer 0) (Integer (|l#ValueArray| (|v#Vector| auth_key_prefix)))))) (|i#Integer| (|lb#$Range| ($Range (Integer 0) (Integer (|l#ValueArray| (|v#Vector| auth_key_prefix))))))) 0) 0 (- (|i#Integer| (|ub#$Range| ($Range (Integer 0) (Integer (|l#ValueArray| (|v#Vector| auth_key_prefix)))))) (|i#Integer| (|lb#$Range| ($Range (Integer 0) (Integer (|l#ValueArray| (|v#Vector| auth_key_prefix)))))))))) auth_key_prefix)))))) (|b#Boolean| (Boolean (IsEqual_stratified (Vector (ValueArray (|lambda#4| 0 (- (|i#Integer| (|ub#$Range| ($Range (Integer (|l#ValueArray| (|v#Vector| auth_key_prefix))) (Integer (|l#ValueArray| (|v#Vector| inline$$Test_create$0$$ret0@2)))))) (|i#Integer| (|lb#$Range| ($Range (Integer (|l#ValueArray| (|v#Vector| auth_key_prefix))) (Integer (|l#ValueArray| (|v#Vector| inline$$Test_create$0$$ret0@2))))))) (|v#ValueArray| (|v#Vector| inline$$Test_create$0$$ret0@2)) (|i#Integer| (|lb#$Range| ($Range (Integer (|l#ValueArray| (|v#Vector| auth_key_prefix))) (Integer (|l#ValueArray| (|v#Vector| inline$$Test_create$0$$ret0@2)))))) DefaultValue) (ite (< (- (|i#Integer| (|ub#$Range| ($Range (Integer (|l#ValueArray| (|v#Vector| auth_key_prefix))) (Integer (|l#ValueArray| (|v#Vector| inline$$Test_create$0$$ret0@2)))))) (|i#Integer| (|lb#$Range| ($Range (Integer (|l#ValueArray| (|v#Vector| auth_key_prefix))) (Integer (|l#ValueArray| (|v#Vector| inline$$Test_create$0$$ret0@2))))))) 0) 0 (- (|i#Integer| (|ub#$Range| ($Range (Integer (|l#ValueArray| (|v#Vector| auth_key_prefix))) (Integer (|l#ValueArray| (|v#Vector| inline$$Test_create$0$$ret0@2)))))) (|i#Integer| (|lb#$Range| ($Range (Integer (|l#ValueArray| (|v#Vector| auth_key_prefix))) (Integer (|l#ValueArray| (|v#Vector| inline$$Test_create$0$$ret0@2)))))))))) ($BCS_serialize_core fresh_address))))))))) (=> (=> (not $abort_flag@7) (|b#Boolean| (Boolean (and (|b#Boolean| (Boolean (and (|b#Boolean| (Boolean (IsEqual_stratified (Integer (|l#ValueArray| (|v#Vector| inline$$Test_create$0$$ret0@2))) (Integer (+ (|i#Integer| (Integer (|l#ValueArray| (|v#Vector| auth_key_prefix)))) (|i#Integer| (Integer (|l#ValueArray| (|v#Vector| ($BCS_serialize_core fresh_address)))))))))) (|b#Boolean| (Boolean (IsEqual_stratified (Vector (ValueArray (|lambda#4| 0 (- (|i#Integer| (|ub#$Range| ($Range (Integer 0) (Integer (|l#ValueArray| (|v#Vector| auth_key_prefix)))))) (|i#Integer| (|lb#$Range| ($Range (Integer 0) (Integer (|l#ValueArray| (|v#Vector| auth_key_prefix))))))) (|v#ValueArray| (|v#Vector| inline$$Test_create$0$$ret0@2)) (|i#Integer| (|lb#$Range| ($Range (Integer 0) (Integer (|l#ValueArray| (|v#Vector| auth_key_prefix)))))) DefaultValue) (ite (< (- (|i#Integer| (|ub#$Range| ($Range (Integer 0) (Integer (|l#ValueArray| (|v#Vector| auth_key_prefix)))))) (|i#Integer| (|lb#$Range| ($Range (Integer 0) (Integer (|l#ValueArray| (|v#Vector| auth_key_prefix))))))) 0) 0 (- (|i#Integer| (|ub#$Range| ($Range (Integer 0) (Integer (|l#ValueArray| (|v#Vector| auth_key_prefix)))))) (|i#Integer| (|lb#$Range| ($Range (Integer 0) (Integer (|l#ValueArray| (|v#Vector| auth_key_prefix)))))))))) auth_key_prefix)))))) (|b#Boolean| (Boolean (IsEqual_stratified (Vector (ValueArray (|lambda#4| 0 (- (|i#Integer| (|ub#$Range| ($Range (Integer (|l#ValueArray| (|v#Vector| auth_key_prefix))) (Integer (|l#ValueArray| (|v#Vector| inline$$Test_create$0$$ret0@2)))))) (|i#Integer| (|lb#$Range| ($Range (Integer (|l#ValueArray| (|v#Vector| auth_key_prefix))) (Integer (|l#ValueArray| (|v#Vector| inline$$Test_create$0$$ret0@2))))))) (|v#ValueArray| (|v#Vector| inline$$Test_create$0$$ret0@2)) (|i#Integer| (|lb#$Range| ($Range (Integer (|l#ValueArray| (|v#Vector| auth_key_prefix))) (Integer (|l#ValueArray| (|v#Vector| inline$$Test_create$0$$ret0@2)))))) DefaultValue) (ite (< (- (|i#Integer| (|ub#$Range| ($Range (Integer (|l#ValueArray| (|v#Vector| auth_key_prefix))) (Integer (|l#ValueArray| (|v#Vector| inline$$Test_create$0$$ret0@2)))))) (|i#Integer| (|lb#$Range| ($Range (Integer (|l#ValueArray| (|v#Vector| auth_key_prefix))) (Integer (|l#ValueArray| (|v#Vector| inline$$Test_create$0$$ret0@2))))))) 0) 0 (- (|i#Integer| (|ub#$Range| ($Range (Integer (|l#ValueArray| (|v#Vector| auth_key_prefix))) (Integer (|l#ValueArray| (|v#Vector| inline$$Test_create$0$$ret0@2)))))) (|i#Integer| (|lb#$Range| ($Range (Integer (|l#ValueArray| (|v#Vector| auth_key_prefix))) (Integer (|l#ValueArray| (|v#Vector| inline$$Test_create$0$$ret0@2)))))))))) ($BCS_serialize_core fresh_address)))))))) (and (=> (= (ControlFlow 0 25440) (- 0 35560)) (=> (not $abort_flag@7) (|b#Boolean| (Boolean (and (|b#Boolean| (Boolean (and (|b#Boolean| (Boolean (IsEqual_stratified (Integer (|l#ValueArray| (|v#Vector| (|Select_[$int]Value| (|v#ValueArray| (|v#Vector| (|Select_[$int]Value| (|v#ValueArray| (|v#Vector| (|Select_[Location]Value| (|contents#Memory| $m@69) (Global $Test_T_type_value (|a#Address| (Address (|sender#Transaction| $txn))))))) $Test_T_received_events))) $Test_EventHandle_guid)))) (Integer (+ (|i#Integer| (Integer (|l#ValueArray| (|v#Vector| ($BCS_serialize_core (Integer 2)))))) (|i#Integer| (Integer (|l#ValueArray| (|v#Vector| ($BCS_serialize_core fresh_address)))))))))) (|b#Boolean| (Boolean (IsEqual_stratified (Vector (ValueArray (|lambda#4| 0 (- (|i#Integer| (|ub#$Range| ($Range (Integer 0) (Integer (|l#ValueArray| (|v#Vector| ($BCS_serialize_core (Integer 2)))))))) (|i#Integer| (|lb#$Range| ($Range (Integer 0) (Integer (|l#ValueArray| (|v#Vector| ($BCS_serialize_core (Integer 2))))))))) (|v#ValueArray| (|v#Vector| (|Select_[$int]Value| (|v#ValueArray| (|v#Vector| (|Select_[$int]Value| (|v#ValueArray| (|v#Vector| (|Select_[Location]Value| (|contents#Memory| $m@69) (Global $Test_T_type_value (|a#Address| (Address (|sender#Transaction| $txn))))))) $Test_T_received_events))) $Test_EventHandle_guid))) (|i#Integer| (|lb#$Range| ($Range (Integer 0) (Integer (|l#ValueArray| (|v#Vector| ($BCS_serialize_core (Integer 2)))))))) DefaultValue) (ite (< (- (|i#Integer| (|ub#$Range| ($Range (Integer 0) (Integer (|l#ValueArray| (|v#Vector| ($BCS_serialize_core (Integer 2)))))))) (|i#Integer| (|lb#$Range| ($Range (Integer 0) (Integer (|l#ValueArray| (|v#Vector| ($BCS_serialize_core (Integer 2))))))))) 0) 0 (- (|i#Integer| (|ub#$Range| ($Range (Integer 0) (Integer (|l#ValueArray| (|v#Vector| ($BCS_serialize_core (Integer 2)))))))) (|i#Integer| (|lb#$Range| ($Range (Integer 0) (Integer (|l#ValueArray| (|v#Vector| ($BCS_serialize_core (Integer 2)))))))))))) ($BCS_serialize_core (Integer 2)))))))) (|b#Boolean| (Boolean (IsEqual_stratified (Vector (ValueArray (|lambda#4| 0 (- (|i#Integer| (|ub#$Range| ($Range (Integer (|l#ValueArray| (|v#Vector| ($BCS_serialize_core (Integer 2))))) (Integer (|l#ValueArray| (|v#Vector| (|Select_[$int]Value| (|v#ValueArray| (|v#Vector| (|Select_[$int]Value| (|v#ValueArray| (|v#Vector| (|Select_[Location]Value| (|contents#Memory| $m@69) (Global $Test_T_type_value (|a#Address| (Address (|sender#Transaction| $txn))))))) $Test_T_received_events))) $Test_EventHandle_guid))))))) (|i#Integer| (|lb#$Range| ($Range (Integer (|l#ValueArray| (|v#Vector| ($BCS_serialize_core (Integer 2))))) (Integer (|l#ValueArray| (|v#Vector| (|Select_[$int]Value| (|v#ValueArray| (|v#Vector| (|Select_[$int]Value| (|v#ValueArray| (|v#Vector| (|Select_[Location]Value| (|contents#Memory| $m@69) (Global $Test_T_type_value (|a#Address| (Address (|sender#Transaction| $txn))))))) $Test_T_received_events))) $Test_EventHandle_guid)))))))) (|v#ValueArray| (|v#Vector| (|Select_[$int]Value| (|v#ValueArray| (|v#Vector| (|Select_[$int]Value| (|v#ValueArray| (|v#Vector| (|Select_[Location]Value| (|contents#Memory| $m@69) (Global $Test_T_type_value (|a#Address| (Address (|sender#Transaction| $txn))))))) $Test_T_received_events))) $Test_EventHandle_guid))) (|i#Integer| (|lb#$Range| ($Range (Integer (|l#ValueArray| (|v#Vector| ($BCS_serialize_core (Integer 2))))) (Integer (|l#ValueArray| (|v#Vector| (|Select_[$int]Value| (|v#ValueArray| (|v#Vector| (|Select_[$int]Value| (|v#ValueArray| (|v#Vector| (|Select_[Location]Value| (|contents#Memory| $m@69) (Global $Test_T_type_value (|a#Address| (Address (|sender#Transaction| $txn))))))) $Test_T_received_events))) $Test_EventHandle_guid))))))) DefaultValue) (ite (< (- (|i#Integer| (|ub#$Range| ($Range (Integer (|l#ValueArray| (|v#Vector| ($BCS_serialize_core (Integer 2))))) (Integer (|l#ValueArray| (|v#Vector| (|Select_[$int]Value| (|v#ValueArray| (|v#Vector| (|Select_[$int]Value| (|v#ValueArray| (|v#Vector| (|Select_[Location]Value| (|contents#Memory| $m@69) (Global $Test_T_type_value (|a#Address| (Address (|sender#Transaction| $txn))))))) $Test_T_received_events))) $Test_EventHandle_guid))))))) (|i#Integer| (|lb#$Range| ($Range (Integer (|l#ValueArray| (|v#Vector| ($BCS_serialize_core (Integer 2))))) (Integer (|l#ValueArray| (|v#Vector| (|Select_[$int]Value| (|v#ValueArray| (|v#Vector| (|Select_[$int]Value| (|v#ValueArray| (|v#Vector| (|Select_[Location]Value| (|contents#Memory| $m@69) (Global $Test_T_type_value (|a#Address| (Address (|sender#Transaction| $txn))))))) $Test_T_received_events))) $Test_EventHandle_guid)))))))) 0) 0 (- (|i#Integer| (|ub#$Range| ($Range (Integer (|l#ValueArray| (|v#Vector| ($BCS_serialize_core (Integer 2))))) (Integer (|l#ValueArray| (|v#Vector| (|Select_[$int]Value| (|v#ValueArray| (|v#Vector| (|Select_[$int]Value| (|v#ValueArray| (|v#Vector| (|Select_[Location]Value| (|contents#Memory| $m@69) (Global $Test_T_type_value (|a#Address| (Address (|sender#Transaction| $txn))))))) $Test_T_received_events))) $Test_EventHandle_guid))))))) (|i#Integer| (|lb#$Range| ($Range (Integer (|l#ValueArray| (|v#Vector| ($BCS_serialize_core (Integer 2))))) (Integer (|l#ValueArray| (|v#Vector| (|Select_[$int]Value| (|v#ValueArray| (|v#Vector| (|Select_[$int]Value| (|v#ValueArray| (|v#Vector| (|Select_[Location]Value| (|contents#Memory| $m@69) (Global $Test_T_type_value (|a#Address| (Address (|sender#Transaction| $txn))))))) $Test_T_received_events))) $Test_EventHandle_guid))))))))))) ($BCS_serialize_core fresh_address))))))))) (=> (=> (not $abort_flag@7) (|b#Boolean| (Boolean (and (|b#Boolean| (Boolean (and (|b#Boolean| (Boolean (IsEqual_stratified (Integer (|l#ValueArray| (|v#Vector| (|Select_[$int]Value| (|v#ValueArray| (|v#Vector| (|Select_[$int]Value| (|v#ValueArray| (|v#Vector| (|Select_[Location]Value| (|contents#Memory| $m@69) (Global $Test_T_type_value (|a#Address| (Address (|sender#Transaction| $txn))))))) $Test_T_received_events))) $Test_EventHandle_guid)))) (Integer (+ (|i#Integer| (Integer (|l#ValueArray| (|v#Vector| ($BCS_serialize_core (Integer 2)))))) (|i#Integer| (Integer (|l#ValueArray| (|v#Vector| ($BCS_serialize_core fresh_address)))))))))) (|b#Boolean| (Boolean (IsEqual_stratified (Vector (ValueArray (|lambda#4| 0 (- (|i#Integer| (|ub#$Range| ($Range (Integer 0) (Integer (|l#ValueArray| (|v#Vector| ($BCS_serialize_core (Integer 2)))))))) (|i#Integer| (|lb#$Range| ($Range (Integer 0) (Integer (|l#ValueArray| (|v#Vector| ($BCS_serialize_core (Integer 2))))))))) (|v#ValueArray| (|v#Vector| (|Select_[$int]Value| (|v#ValueArray| (|v#Vector| (|Select_[$int]Value| (|v#ValueArray| (|v#Vector| (|Select_[Location]Value| (|contents#Memory| $m@69) (Global $Test_T_type_value (|a#Address| (Address (|sender#Transaction| $txn))))))) $Test_T_received_events))) $Test_EventHandle_guid))) (|i#Integer| (|lb#$Range| ($Range (Integer 0) (Integer (|l#ValueArray| (|v#Vector| ($BCS_serialize_core (Integer 2)))))))) DefaultValue) (ite (< (- (|i#Integer| (|ub#$Range| ($Range (Integer 0) (Integer (|l#ValueArray| (|v#Vector| ($BCS_serialize_core (Integer 2)))))))) (|i#Integer| (|lb#$Range| ($Range (Integer 0) (Integer (|l#ValueArray| (|v#Vector| ($BCS_serialize_core (Integer 2))))))))) 0) 0 (- (|i#Integer| (|ub#$Range| ($Range (Integer 0) (Integer (|l#ValueArray| (|v#Vector| ($BCS_serialize_core (Integer 2)))))))) (|i#Integer| (|lb#$Range| ($Range (Integer 0) (Integer (|l#ValueArray| (|v#Vector| ($BCS_serialize_core (Integer 2)))))))))))) ($BCS_serialize_core (Integer 2)))))))) (|b#Boolean| (Boolean (IsEqual_stratified (Vector (ValueArray (|lambda#4| 0 (- (|i#Integer| (|ub#$Range| ($Range (Integer (|l#ValueArray| (|v#Vector| ($BCS_serialize_core (Integer 2))))) (Integer (|l#ValueArray| (|v#Vector| (|Select_[$int]Value| (|v#ValueArray| (|v#Vector| (|Select_[$int]Value| (|v#ValueArray| (|v#Vector| (|Select_[Location]Value| (|contents#Memory| $m@69) (Global $Test_T_type_value (|a#Address| (Address (|sender#Transaction| $txn))))))) $Test_T_received_events))) $Test_EventHandle_guid))))))) (|i#Integer| (|lb#$Range| ($Range (Integer (|l#ValueArray| (|v#Vector| ($BCS_serialize_core (Integer 2))))) (Integer (|l#ValueArray| (|v#Vector| (|Select_[$int]Value| (|v#ValueArray| (|v#Vector| (|Select_[$int]Value| (|v#ValueArray| (|v#Vector| (|Select_[Location]Value| (|contents#Memory| $m@69) (Global $Test_T_type_value (|a#Address| (Address (|sender#Transaction| $txn))))))) $Test_T_received_events))) $Test_EventHandle_guid)))))))) (|v#ValueArray| (|v#Vector| (|Select_[$int]Value| (|v#ValueArray| (|v#Vector| (|Select_[$int]Value| (|v#ValueArray| (|v#Vector| (|Select_[Location]Value| (|contents#Memory| $m@69) (Global $Test_T_type_value (|a#Address| (Address (|sender#Transaction| $txn))))))) $Test_T_received_events))) $Test_EventHandle_guid))) (|i#Integer| (|lb#$Range| ($Range (Integer (|l#ValueArray| (|v#Vector| ($BCS_serialize_core (Integer 2))))) (Integer (|l#ValueArray| (|v#Vector| (|Select_[$int]Value| (|v#ValueArray| (|v#Vector| (|Select_[$int]Value| (|v#ValueArray| (|v#Vector| (|Select_[Location]Value| (|contents#Memory| $m@69) (Global $Test_T_type_value (|a#Address| (Address (|sender#Transaction| $txn))))))) $Test_T_received_events))) $Test_EventHandle_guid))))))) DefaultValue) (ite (< (- (|i#Integer| (|ub#$Range| ($Range (Integer (|l#ValueArray| (|v#Vector| ($BCS_serialize_core (Integer 2))))) (Integer (|l#ValueArray| (|v#Vector| (|Select_[$int]Value| (|v#ValueArray| (|v#Vector| (|Select_[$int]Value| (|v#ValueArray| (|v#Vector| (|Select_[Location]Value| (|contents#Memory| $m@69) (Global $Test_T_type_value (|a#Address| (Address (|sender#Transaction| $txn))))))) $Test_T_received_events))) $Test_EventHandle_guid))))))) (|i#Integer| (|lb#$Range| ($Range (Integer (|l#ValueArray| (|v#Vector| ($BCS_serialize_core (Integer 2))))) (Integer (|l#ValueArray| (|v#Vector| (|Select_[$int]Value| (|v#ValueArray| (|v#Vector| (|Select_[$int]Value| (|v#ValueArray| (|v#Vector| (|Select_[Location]Value| (|contents#Memory| $m@69) (Global $Test_T_type_value (|a#Address| (Address (|sender#Transaction| $txn))))))) $Test_T_received_events))) $Test_EventHandle_guid)))))))) 0) 0 (- (|i#Integer| (|ub#$Range| ($Range (Integer (|l#ValueArray| (|v#Vector| ($BCS_serialize_core (Integer 2))))) (Integer (|l#ValueArray| (|v#Vector| (|Select_[$int]Value| (|v#ValueArray| (|v#Vector| (|Select_[$int]Value| (|v#ValueArray| (|v#Vector| (|Select_[Location]Value| (|contents#Memory| $m@69) (Global $Test_T_type_value (|a#Address| (Address (|sender#Transaction| $txn))))))) $Test_T_received_events))) $Test_EventHandle_guid))))))) (|i#Integer| (|lb#$Range| ($Range (Integer (|l#ValueArray| (|v#Vector| ($BCS_serialize_core (Integer 2))))) (Integer (|l#ValueArray| (|v#Vector| (|Select_[$int]Value| (|v#ValueArray| (|v#Vector| (|Select_[$int]Value| (|v#ValueArray| (|v#Vector| (|Select_[Location]Value| (|contents#Memory| $m@69) (Global $Test_T_type_value (|a#Address| (Address (|sender#Transaction| $txn))))))) $Test_T_received_events))) $Test_EventHandle_guid))))))))))) ($BCS_serialize_core fresh_address)))))))) (=> (= (ControlFlow 0 25440) (- 0 35607)) (=> (not $abort_flag@7) (|b#Boolean| (Boolean (and (|b#Boolean| (Boolean (and (|b#Boolean| (Boolean (IsEqual_stratified (Integer (|l#ValueArray| (|v#Vector| (|Select_[$int]Value| (|v#ValueArray| (|v#Vector| (|Select_[$int]Value| (|v#ValueArray| (|v#Vector| (|Select_[Location]Value| (|contents#Memory| $m@69) (Global $Test_T_type_value (|a#Address| (Address (|sender#Transaction| $txn))))))) $Test_T_sent_events))) $Test_EventHandle_guid)))) (Integer (+ (|i#Integer| (Integer (|l#ValueArray| (|v#Vector| ($BCS_serialize_core (Integer 3)))))) (|i#Integer| (Integer (|l#ValueArray| (|v#Vector| ($BCS_serialize_core fresh_address)))))))))) (|b#Boolean| (Boolean (IsEqual_stratified (Vector (ValueArray (|lambda#4| 0 (- (|i#Integer| (|ub#$Range| ($Range (Integer 0) (Integer (|l#ValueArray| (|v#Vector| ($BCS_serialize_core (Integer 3)))))))) (|i#Integer| (|lb#$Range| ($Range (Integer 0) (Integer (|l#ValueArray| (|v#Vector| ($BCS_serialize_core (Integer 3))))))))) (|v#ValueArray| (|v#Vector| (|Select_[$int]Value| (|v#ValueArray| (|v#Vector| (|Select_[$int]Value| (|v#ValueArray| (|v#Vector| (|Select_[Location]Value| (|contents#Memory| $m@69) (Global $Test_T_type_value (|a#Address| (Address (|sender#Transaction| $txn))))))) $Test_T_sent_events))) $Test_EventHandle_guid))) (|i#Integer| (|lb#$Range| ($Range (Integer 0) (Integer (|l#ValueArray| (|v#Vector| ($BCS_serialize_core (Integer 3)))))))) DefaultValue) (ite (< (- (|i#Integer| (|ub#$Range| ($Range (Integer 0) (Integer (|l#ValueArray| (|v#Vector| ($BCS_serialize_core (Integer 3)))))))) (|i#Integer| (|lb#$Range| ($Range (Integer 0) (Integer (|l#ValueArray| (|v#Vector| ($BCS_serialize_core (Integer 3))))))))) 0) 0 (- (|i#Integer| (|ub#$Range| ($Range (Integer 0) (Integer (|l#ValueArray| (|v#Vector| ($BCS_serialize_core (Integer 3)))))))) (|i#Integer| (|lb#$Range| ($Range (Integer 0) (Integer (|l#ValueArray| (|v#Vector| ($BCS_serialize_core (Integer 3)))))))))))) ($BCS_serialize_core (Integer 3)))))))) (|b#Boolean| (Boolean (IsEqual_stratified (Vector (ValueArray (|lambda#4| 0 (- (|i#Integer| (|ub#$Range| ($Range (Integer (|l#ValueArray| (|v#Vector| ($BCS_serialize_core (Integer 3))))) (Integer (|l#ValueArray| (|v#Vector| (|Select_[$int]Value| (|v#ValueArray| (|v#Vector| (|Select_[$int]Value| (|v#ValueArray| (|v#Vector| (|Select_[Location]Value| (|contents#Memory| $m@69) (Global $Test_T_type_value (|a#Address| (Address (|sender#Transaction| $txn))))))) $Test_T_sent_events))) $Test_EventHandle_guid))))))) (|i#Integer| (|lb#$Range| ($Range (Integer (|l#ValueArray| (|v#Vector| ($BCS_serialize_core (Integer 3))))) (Integer (|l#ValueArray| (|v#Vector| (|Select_[$int]Value| (|v#ValueArray| (|v#Vector| (|Select_[$int]Value| (|v#ValueArray| (|v#Vector| (|Select_[Location]Value| (|contents#Memory| $m@69) (Global $Test_T_type_value (|a#Address| (Address (|sender#Transaction| $txn))))))) $Test_T_sent_events))) $Test_EventHandle_guid)))))))) (|v#ValueArray| (|v#Vector| (|Select_[$int]Value| (|v#ValueArray| (|v#Vector| (|Select_[$int]Value| (|v#ValueArray| (|v#Vector| (|Select_[Location]Value| (|contents#Memory| $m@69) (Global $Test_T_type_value (|a#Address| (Address (|sender#Transaction| $txn))))))) $Test_T_sent_events))) $Test_EventHandle_guid))) (|i#Integer| (|lb#$Range| ($Range (Integer (|l#ValueArray| (|v#Vector| ($BCS_serialize_core (Integer 3))))) (Integer (|l#ValueArray| (|v#Vector| (|Select_[$int]Value| (|v#ValueArray| (|v#Vector| (|Select_[$int]Value| (|v#ValueArray| (|v#Vector| (|Select_[Location]Value| (|contents#Memory| $m@69) (Global $Test_T_type_value (|a#Address| (Address (|sender#Transaction| $txn))))))) $Test_T_sent_events))) $Test_EventHandle_guid))))))) DefaultValue) (ite (< (- (|i#Integer| (|ub#$Range| ($Range (Integer (|l#ValueArray| (|v#Vector| ($BCS_serialize_core (Integer 3))))) (Integer (|l#ValueArray| (|v#Vector| (|Select_[$int]Value| (|v#ValueArray| (|v#Vector| (|Select_[$int]Value| (|v#ValueArray| (|v#Vector| (|Select_[Location]Value| (|contents#Memory| $m@69) (Global $Test_T_type_value (|a#Address| (Address (|sender#Transaction| $txn))))))) $Test_T_sent_events))) $Test_EventHandle_guid))))))) (|i#Integer| (|lb#$Range| ($Range (Integer (|l#ValueArray| (|v#Vector| ($BCS_serialize_core (Integer 3))))) (Integer (|l#ValueArray| (|v#Vector| (|Select_[$int]Value| (|v#ValueArray| (|v#Vector| (|Select_[$int]Value| (|v#ValueArray| (|v#Vector| (|Select_[Location]Value| (|contents#Memory| $m@69) (Global $Test_T_type_value (|a#Address| (Address (|sender#Transaction| $txn))))))) $Test_T_sent_events))) $Test_EventHandle_guid)))))))) 0) 0 (- (|i#Integer| (|ub#$Range| ($Range (Integer (|l#ValueArray| (|v#Vector| ($BCS_serialize_core (Integer 3))))) (Integer (|l#ValueArray| (|v#Vector| (|Select_[$int]Value| (|v#ValueArray| (|v#Vector| (|Select_[$int]Value| (|v#ValueArray| (|v#Vector| (|Select_[Location]Value| (|contents#Memory| $m@69) (Global $Test_T_type_value (|a#Address| (Address (|sender#Transaction| $txn))))))) $Test_T_sent_events))) $Test_EventHandle_guid))))))) (|i#Integer| (|lb#$Range| ($Range (Integer (|l#ValueArray| (|v#Vector| ($BCS_serialize_core (Integer 3))))) (Integer (|l#ValueArray| (|v#Vector| (|Select_[$int]Value| (|v#ValueArray| (|v#Vector| (|Select_[$int]Value| (|v#ValueArray| (|v#Vector| (|Select_[Location]Value| (|contents#Memory| $m@69) (Global $Test_T_type_value (|a#Address| (Address (|sender#Transaction| $txn))))))) $Test_T_sent_events))) $Test_EventHandle_guid))))))))))) ($BCS_serialize_core fresh_address))))))))))))))))))))) (let ((inline$$Test_create$0$anon28_correct (=> (and (and (= inline$$Test_create$0$$ret0@2 inline$$Test_create$0$$ret0@1) (= $m@69 $m@68)) (and (= $abort_flag@7 $abort_flag@6) (= (ControlFlow 0 25052) 25440))) inline$$Test_create$0$Return_correct))) (let ((inline$$Test_create$0$anon42_Else_correct (=> (and (not true) (= (ControlFlow 0 25050) 25052)) inline$$Test_create$0$anon28_correct))) (let ((inline$$Test_create$0$anon42_Then_correct (=> (and ($DebugTrackLocal 3 2445 26 inline$$Test_create$0$$ret0@1) (= (ControlFlow 0 25066) 25052)) inline$$Test_create$0$anon28_correct))) (let ((inline$$Test_create$0$anon41_Else$1_correct (=> (and (and (and (is-Vector inline$$CopyOrMoveValue$23$local@0) (let ((va@@8 (|v#Vector| inline$$CopyOrMoveValue$23$local@0))) (let ((l@@8 (|l#ValueArray| va@@8))) (and (<= 0 l@@8) (forall ((x@@8 Int) ) (! (=> (or (< x@@8 0) (>= x@@8 l@@8)) (= (|Select_[$int]Value| (|v#ValueArray| va@@8) x@@8) DefaultValue)) :qid |outputbp.826:21| :skolemid |17| :pattern ( (|Select_[$int]Value| (|v#ValueArray| va@@8) x@@8)) )))))) (forall (($$0 Int) ) (! (=> (and (>= $$0 0) (< $$0 (|l#ValueArray| (|v#Vector| inline$$CopyOrMoveValue$23$local@0)))) (and (and (is-Integer (|Select_[$int]Value| (|v#ValueArray| (|v#Vector| inline$$CopyOrMoveValue$23$local@0)) $$0)) (>= (|i#Integer| (|Select_[$int]Value| (|v#ValueArray| (|v#Vector| inline$$CopyOrMoveValue$23$local@0)) $$0)) 0)) (<= (|i#Integer| (|Select_[$int]Value| (|v#ValueArray| (|v#Vector| inline$$CopyOrMoveValue$23$local@0)) $$0)) MAX_U8))) :qid |outputbp.1657:52| :skolemid |36| :pattern ( (|Select_[$int]Value| (|v#ValueArray| (|v#Vector| inline$$CopyOrMoveValue$23$local@0)) $$0)) ))) (and (= $m@68 (Memory (|Store_[Location]$bool| (|domain#Memory| $m@67) (Local (+ 0 25)) true) (|Store_[Location]Value| (|contents#Memory| $m@67) (Local (+ 0 25)) inline$$CopyOrMoveValue$23$local@0))) (= inline$$Test_create$0$$ret0@1 (|Select_[Location]Value| (|contents#Memory| $m@68) (Local (+ 0 25)))))) (and (=> (= (ControlFlow 0 25044) 25066) inline$$Test_create$0$anon42_Then_correct) (=> (= (ControlFlow 0 25044) 25050) inline$$Test_create$0$anon42_Else_correct))))) (let ((inline$$CopyOrMoveValue$23$Entry_correct (=> (and (= inline$$CopyOrMoveValue$23$local@0 (|Select_[Location]Value| (|contents#Memory| $m@67) (Local (+ 0 2)))) (= (ControlFlow 0 24964) 25044)) inline$$Test_create$0$anon41_Else$1_correct))) (let ((inline$$Test_create$0$anon41_Else_correct (=> (and (not $abort_flag@6) (= (ControlFlow 0 24974) 24964)) inline$$CopyOrMoveValue$23$Entry_correct))) (let ((inline$$Test_create$0$Abort_correct (=> (and (and (= inline$$Test_create$0$$ret0@2 DefaultValue) (= $m@69 $m)) (and (= $abort_flag@7 true) (= (ControlFlow 0 14584) 25440))) inline$$Test_create$0$Return_correct))) (let ((inline$$Test_create$0$anon41_Then_correct (=> $abort_flag@6 (=> (and ($DebugTrackAbort 3 2226) (= (ControlFlow 0 25076) 14584)) inline$$Test_create$0$Abort_correct)))) (let ((inline$$MoveToSender$0$anon3_Else_correct (=> (and (and (not (|Select_[Location]$bool| (|domain#Memory| $m@65) (Global inline$$MoveToSender$0$ta@0 inline$$MoveToSender$0$a@1))) (= $m@66 (Memory (|Store_[Location]$bool| (|domain#Memory| $m@65) inline$$MoveToSender$0$l@1 true) (|Store_[Location]Value| (|contents#Memory| $m@65) inline$$MoveToSender$0$l@1 inline$$MoveToSender$0$v@0)))) (and (= $abort_flag@6 $abort_flag@5) (= $m@67 $m@66))) (and (=> (= (ControlFlow 0 24911) 25076) inline$$Test_create$0$anon41_Then_correct) (=> (= (ControlFlow 0 24911) 24974) inline$$Test_create$0$anon41_Else_correct))))) (let ((inline$$MoveToSender$0$anon3_Then_correct (=> (|Select_[Location]$bool| (|domain#Memory| $m@65) (Global inline$$MoveToSender$0$ta@0 inline$$MoveToSender$0$a@1)) (=> (and (= $abort_flag@6 true) (= $m@67 $m@65)) (and (=> (= (ControlFlow 0 24923) 25076) inline$$Test_create$0$anon41_Then_correct) (=> (= (ControlFlow 0 24923) 24974) inline$$Test_create$0$anon41_Else_correct)))))) (let ((inline$$MoveToSender$0$anon0_correct (=> (and (= inline$$MoveToSender$0$a@1 (|sender#Transaction| $txn)) (= inline$$MoveToSender$0$l@1 (Global inline$$MoveToSender$0$ta@0 inline$$MoveToSender$0$a@1))) (and (=> (= (ControlFlow 0 24877) 24923) inline$$MoveToSender$0$anon3_Then_correct) (=> (= (ControlFlow 0 24877) 24911) inline$$MoveToSender$0$anon3_Else_correct))))) (let ((inline$$MoveToSender$0$Entry_correct (=> (= inline$$MoveToSender$0$ta@0 $Test_T_type_value) (=> (and (= inline$$MoveToSender$0$v@0 (|Select_[Location]Value| (|contents#Memory| $m@65) (Local (+ 0 24)))) (= (ControlFlow 0 24865) 24877)) inline$$MoveToSender$0$anon0_correct)))) (let ((inline$$Test_create$0$anon40_Else$1_correct (=> (and (= $m@65 (Memory (|Store_[Location]$bool| (|domain#Memory| $m@64) (Local (+ 0 24)) true) (|Store_[Location]Value| (|contents#Memory| $m@64) (Local (+ 0 24)) inline$$Test_T_pack$0$$struct@1))) (= (ControlFlow 0 24927) 24865)) inline$$MoveToSender$0$Entry_correct))) (let ((inline$$Test_T_pack$0$anon2_Else_correct (=> (and (>= 0 0) (= (ControlFlow 0 24723) 24927)) inline$$Test_create$0$anon40_Else$1_correct))) (let ((inline$$Test_T_pack$0$anon2_Then_correct (=> (> 0 0) (=> (and ($DebugTrackLocal 0 0 0 inline$$Test_T_pack$0$$struct@1) (= (ControlFlow 0 24741) 24927)) inline$$Test_create$0$anon40_Else$1_correct)))) (let ((inline$$Test_T_pack$0$anon0_correct (=> (and (and (and (and (and (is-Vector inline$$Test_T_pack$0$received_events@0) (let ((va@@9 (|v#Vector| inline$$Test_T_pack$0$received_events@0))) (let ((l@@9 (|l#ValueArray| va@@9))) (and (<= 0 l@@9) (forall ((x@@9 Int) ) (! (=> (or (< x@@9 0) (>= x@@9 l@@9)) (= (|Select_[$int]Value| (|v#ValueArray| va@@9) x@@9) DefaultValue)) :qid |outputbp.826:21| :skolemid |17| :pattern ( (|Select_[$int]Value| (|v#ValueArray| va@@9) x@@9)) )))))) (= (|l#ValueArray| (|v#Vector| inline$$Test_T_pack$0$received_events@0)) 2)) (and (and (is-Integer (|Select_[$int]Value| (|v#ValueArray| (|v#Vector| inline$$Test_T_pack$0$received_events@0)) $Test_EventHandle_counter)) (>= (|i#Integer| (|Select_[$int]Value| (|v#ValueArray| (|v#Vector| inline$$Test_T_pack$0$received_events@0)) $Test_EventHandle_counter)) 0)) (<= (|i#Integer| (|Select_[$int]Value| (|v#ValueArray| (|v#Vector| inline$$Test_T_pack$0$received_events@0)) $Test_EventHandle_counter)) MAX_U64))) (and (is-Vector (|Select_[$int]Value| (|v#ValueArray| (|v#Vector| inline$$Test_T_pack$0$received_events@0)) $Test_EventHandle_guid)) (let ((va@@10 (|v#Vector| (|Select_[$int]Value| (|v#ValueArray| (|v#Vector| inline$$Test_T_pack$0$received_events@0)) $Test_EventHandle_guid)))) (let ((l@@10 (|l#ValueArray| va@@10))) (and (<= 0 l@@10) (forall ((x@@10 Int) ) (! (=> (or (< x@@10 0) (>= x@@10 l@@10)) (= (|Select_[$int]Value| (|v#ValueArray| va@@10) x@@10) DefaultValue)) :qid |outputbp.826:21| :skolemid |17| :pattern ( (|Select_[$int]Value| (|v#ValueArray| va@@10) x@@10)) ))))))) (forall (($$0@@0 Int) ) (! (=> (and (>= $$0@@0 0) (< $$0@@0 (|l#ValueArray| (|v#Vector| (|Select_[$int]Value| (|v#ValueArray| (|v#Vector| inline$$Test_T_pack$0$received_events@0)) $Test_EventHandle_guid))))) (and (and (is-Integer (|Select_[$int]Value| (|v#ValueArray| (|v#Vector| (|Select_[$int]Value| (|v#ValueArray| (|v#Vector| inline$$Test_T_pack$0$received_events@0)) $Test_EventHandle_guid))) $$0@@0)) (>= (|i#Integer| (|Select_[$int]Value| (|v#ValueArray| (|v#Vector| (|Select_[$int]Value| (|v#ValueArray| (|v#Vector| inline$$Test_T_pack$0$received_events@0)) $Test_EventHandle_guid))) $$0@@0)) 0)) (<= (|i#Integer| (|Select_[$int]Value| (|v#ValueArray| (|v#Vector| (|Select_[$int]Value| (|v#ValueArray| (|v#Vector| inline$$Test_T_pack$0$received_events@0)) $Test_EventHandle_guid))) $$0@@0)) MAX_U8))) :qid |outputbp.1339:89| :skolemid |27| :pattern ( (|Select_[$int]Value| (|v#ValueArray| (|v#Vector| (|Select_[$int]Value| (|v#ValueArray| (|v#Vector| inline$$Test_T_pack$0$received_events@0)) $Test_EventHandle_guid))) $$0@@0)) ))) (=> (and (and (and (and (and (and (is-Vector inline$$Test_T_pack$0$sent_events@0) (let ((va@@11 (|v#Vector| inline$$Test_T_pack$0$sent_events@0))) (let ((l@@11 (|l#ValueArray| va@@11))) (and (<= 0 l@@11) (forall ((x@@11 Int) ) (! (=> (or (< x@@11 0) (>= x@@11 l@@11)) (= (|Select_[$int]Value| (|v#ValueArray| va@@11) x@@11) DefaultValue)) :qid |outputbp.826:21| :skolemid |17| :pattern ( (|Select_[$int]Value| (|v#ValueArray| va@@11) x@@11)) )))))) (= (|l#ValueArray| (|v#Vector| inline$$Test_T_pack$0$sent_events@0)) 2)) (and (and (is-Integer (|Select_[$int]Value| (|v#ValueArray| (|v#Vector| inline$$Test_T_pack$0$sent_events@0)) $Test_EventHandle_counter)) (>= (|i#Integer| (|Select_[$int]Value| (|v#ValueArray| (|v#Vector| inline$$Test_T_pack$0$sent_events@0)) $Test_EventHandle_counter)) 0)) (<= (|i#Integer| (|Select_[$int]Value| (|v#ValueArray| (|v#Vector| inline$$Test_T_pack$0$sent_events@0)) $Test_EventHandle_counter)) MAX_U64))) (and (is-Vector (|Select_[$int]Value| (|v#ValueArray| (|v#Vector| inline$$Test_T_pack$0$sent_events@0)) $Test_EventHandle_guid)) (let ((va@@12 (|v#Vector| (|Select_[$int]Value| (|v#ValueArray| (|v#Vector| inline$$Test_T_pack$0$sent_events@0)) $Test_EventHandle_guid)))) (let ((l@@12 (|l#ValueArray| va@@12))) (and (<= 0 l@@12) (forall ((x@@12 Int) ) (! (=> (or (< x@@12 0) (>= x@@12 l@@12)) (= (|Select_[$int]Value| (|v#ValueArray| va@@12) x@@12) DefaultValue)) :qid |outputbp.826:21| :skolemid |17| :pattern ( (|Select_[$int]Value| (|v#ValueArray| va@@12) x@@12)) ))))))) (forall (($$0@@1 Int) ) (! (=> (and (>= $$0@@1 0) (< $$0@@1 (|l#ValueArray| (|v#Vector| (|Select_[$int]Value| (|v#ValueArray| (|v#Vector| inline$$Test_T_pack$0$sent_events@0)) $Test_EventHandle_guid))))) (and (and (is-Integer (|Select_[$int]Value| (|v#ValueArray| (|v#Vector| (|Select_[$int]Value| (|v#ValueArray| (|v#Vector| inline$$Test_T_pack$0$sent_events@0)) $Test_EventHandle_guid))) $$0@@1)) (>= (|i#Integer| (|Select_[$int]Value| (|v#ValueArray| (|v#Vector| (|Select_[$int]Value| (|v#ValueArray| (|v#Vector| inline$$Test_T_pack$0$sent_events@0)) $Test_EventHandle_guid))) $$0@@1)) 0)) (<= (|i#Integer| (|Select_[$int]Value| (|v#ValueArray| (|v#Vector| (|Select_[$int]Value| (|v#ValueArray| (|v#Vector| inline$$Test_T_pack$0$sent_events@0)) $Test_EventHandle_guid))) $$0@@1)) MAX_U8))) :qid |outputbp.1339:89| :skolemid |27| :pattern ( (|Select_[$int]Value| (|v#ValueArray| (|v#Vector| (|Select_[$int]Value| (|v#ValueArray| (|v#Vector| inline$$Test_T_pack$0$sent_events@0)) $Test_EventHandle_guid))) $$0@@1)) ))) (= inline$$Test_T_pack$0$$struct@1 (Vector (ValueArray (|Store_[$int]Value| (|Store_[$int]Value| (MapConstValue DefaultValue) 0 inline$$Test_T_pack$0$received_events@0) 1 inline$$Test_T_pack$0$sent_events@0) 2)))) (and (=> (= (ControlFlow 0 24715) 24741) inline$$Test_T_pack$0$anon2_Then_correct) (=> (= (ControlFlow 0 24715) 24723) inline$$Test_T_pack$0$anon2_Else_correct)))))) (let ((inline$$Test_T_pack$0$Entry_correct (=> (= inline$$Test_T_pack$0$received_events@0 (|Select_[Location]Value| (|contents#Memory| $m@64) (Local (+ 0 20)))) (=> (and (= inline$$Test_T_pack$0$sent_events@0 (|Select_[Location]Value| (|contents#Memory| $m@64) (Local (+ 0 23)))) (= (ControlFlow 0 24683) 24715)) inline$$Test_T_pack$0$anon0_correct)))) (let ((inline$$Test_create$0$anon40_Else_correct (=> (not $abort_flag@5) (=> (and (and (and (and (and (and (is-Vector inline$$Test_new_event_handle_impl$1$$ret0@2) (let ((va@@13 (|v#Vector| inline$$Test_new_event_handle_impl$1$$ret0@2))) (let ((l@@13 (|l#ValueArray| va@@13))) (and (<= 0 l@@13) (forall ((x@@13 Int) ) (! (=> (or (< x@@13 0) (>= x@@13 l@@13)) (= (|Select_[$int]Value| (|v#ValueArray| va@@13) x@@13) DefaultValue)) :qid |outputbp.826:21| :skolemid |17| :pattern ( (|Select_[$int]Value| (|v#ValueArray| va@@13) x@@13)) )))))) (= (|l#ValueArray| (|v#Vector| inline$$Test_new_event_handle_impl$1$$ret0@2)) 2)) (and (and (is-Integer (|Select_[$int]Value| (|v#ValueArray| (|v#Vector| inline$$Test_new_event_handle_impl$1$$ret0@2)) $Test_EventHandle_counter)) (>= (|i#Integer| (|Select_[$int]Value| (|v#ValueArray| (|v#Vector| inline$$Test_new_event_handle_impl$1$$ret0@2)) $Test_EventHandle_counter)) 0)) (<= (|i#Integer| (|Select_[$int]Value| (|v#ValueArray| (|v#Vector| inline$$Test_new_event_handle_impl$1$$ret0@2)) $Test_EventHandle_counter)) MAX_U64))) (and (is-Vector (|Select_[$int]Value| (|v#ValueArray| (|v#Vector| inline$$Test_new_event_handle_impl$1$$ret0@2)) $Test_EventHandle_guid)) (let ((va@@14 (|v#Vector| (|Select_[$int]Value| (|v#ValueArray| (|v#Vector| inline$$Test_new_event_handle_impl$1$$ret0@2)) $Test_EventHandle_guid)))) (let ((l@@14 (|l#ValueArray| va@@14))) (and (<= 0 l@@14) (forall ((x@@14 Int) ) (! (=> (or (< x@@14 0) (>= x@@14 l@@14)) (= (|Select_[$int]Value| (|v#ValueArray| va@@14) x@@14) DefaultValue)) :qid |outputbp.826:21| :skolemid |17| :pattern ( (|Select_[$int]Value| (|v#ValueArray| va@@14) x@@14)) ))))))) (forall (($$0@@2 Int) ) (! (=> (and (>= $$0@@2 0) (< $$0@@2 (|l#ValueArray| (|v#Vector| (|Select_[$int]Value| (|v#ValueArray| (|v#Vector| inline$$Test_new_event_handle_impl$1$$ret0@2)) $Test_EventHandle_guid))))) (and (and (is-Integer (|Select_[$int]Value| (|v#ValueArray| (|v#Vector| (|Select_[$int]Value| (|v#ValueArray| (|v#Vector| inline$$Test_new_event_handle_impl$1$$ret0@2)) $Test_EventHandle_guid))) $$0@@2)) (>= (|i#Integer| (|Select_[$int]Value| (|v#ValueArray| (|v#Vector| (|Select_[$int]Value| (|v#ValueArray| (|v#Vector| inline$$Test_new_event_handle_impl$1$$ret0@2)) $Test_EventHandle_guid))) $$0@@2)) 0)) (<= (|i#Integer| (|Select_[$int]Value| (|v#ValueArray| (|v#Vector| (|Select_[$int]Value| (|v#ValueArray| (|v#Vector| inline$$Test_new_event_handle_impl$1$$ret0@2)) $Test_EventHandle_guid))) $$0@@2)) MAX_U8))) :qid |outputbp.1339:89| :skolemid |27| :pattern ( (|Select_[$int]Value| (|v#ValueArray| (|v#Vector| (|Select_[$int]Value| (|v#ValueArray| (|v#Vector| inline$$Test_new_event_handle_impl$1$$ret0@2)) $Test_EventHandle_guid))) $$0@@2)) ))) (and (= $m@64 (Memory (|Store_[Location]$bool| (|domain#Memory| $m@63) (Local (+ 0 23)) true) (|Store_[Location]Value| (|contents#Memory| $m@63) (Local (+ 0 23)) inline$$Test_new_event_handle_impl$1$$ret0@2))) (= (ControlFlow 0 24747) 24683))) inline$$Test_T_pack$0$Entry_correct)))) (let ((inline$$Test_create$0$anon40_Then_correct (=> $abort_flag@5 (=> (and ($DebugTrackAbort 3 2363) (= (ControlFlow 0 25086) 14584)) inline$$Test_create$0$Abort_correct)))) (let ((inline$$Test_new_event_handle_impl$1$Return_correct (and (=> (= (ControlFlow 0 24542) (- 0 34912)) (=> (|b#Boolean| (Boolean (> (|i#Integer| (Integer (+ (|i#Integer| (|Select_[$int]Value| (|v#ValueArray| (|v#Vector| ($ReadValue_stratified (|p#Reference| inline$$BorrowLoc$3$dst@1) (|Select_[Location]Value| (|contents#Memory| $m@41) (|l#Reference| inline$$BorrowLoc$3$dst@1))))) $Test_EventHandleGenerator_counter)) (|i#Integer| (Integer 1))))) (|i#Integer| (Integer MAX_U64))))) $abort_flag@5)) (=> (=> (|b#Boolean| (Boolean (> (|i#Integer| (Integer (+ (|i#Integer| (|Select_[$int]Value| (|v#ValueArray| (|v#Vector| ($ReadValue_stratified (|p#Reference| inline$$BorrowLoc$3$dst@1) (|Select_[Location]Value| (|contents#Memory| $m@41) (|l#Reference| inline$$BorrowLoc$3$dst@1))))) $Test_EventHandleGenerator_counter)) (|i#Integer| (Integer 1))))) (|i#Integer| (Integer MAX_U64))))) $abort_flag@5) (and (=> (= (ControlFlow 0 24542) (- 0 34949)) (=> $abort_flag@5 (|b#Boolean| (Boolean (> (|i#Integer| (Integer (+ (|i#Integer| (|Select_[$int]Value| (|v#ValueArray| (|v#Vector| ($ReadValue_stratified (|p#Reference| inline$$BorrowLoc$3$dst@1) (|Select_[Location]Value| (|contents#Memory| $m@41) (|l#Reference| inline$$BorrowLoc$3$dst@1))))) $Test_EventHandleGenerator_counter)) (|i#Integer| (Integer 1))))) (|i#Integer| (Integer MAX_U64))))))) (=> (=> $abort_flag@5 (|b#Boolean| (Boolean (> (|i#Integer| (Integer (+ (|i#Integer| (|Select_[$int]Value| (|v#ValueArray| (|v#Vector| ($ReadValue_stratified (|p#Reference| inline$$BorrowLoc$3$dst@1) (|Select_[Location]Value| (|contents#Memory| $m@41) (|l#Reference| inline$$BorrowLoc$3$dst@1))))) $Test_EventHandleGenerator_counter)) (|i#Integer| (Integer 1))))) (|i#Integer| (Integer MAX_U64)))))) (and (=> (= (ControlFlow 0 24542) (- 0 34986)) (=> (not $abort_flag@5) (|b#Boolean| (Boolean (and (|b#Boolean| (Boolean (and (|b#Boolean| (Boolean (IsEqual_stratified (Integer (|l#ValueArray| (|v#Vector| (|Select_[$int]Value| (|v#ValueArray| (|v#Vector| inline$$Test_new_event_handle_impl$1$$ret0@2)) $Test_EventHandle_guid)))) (Integer (+ (|i#Integer| (Integer (|l#ValueArray| (|v#Vector| ($BCS_serialize_core (|Select_[$int]Value| (|v#ValueArray| (|v#Vector| ($ReadValue_stratified (|p#Reference| inline$$BorrowLoc$3$dst@1) (|Select_[Location]Value| (|contents#Memory| $m@41) (|l#Reference| inline$$BorrowLoc$3$dst@1))))) $Test_EventHandleGenerator_counter)))))) (|i#Integer| (Integer (|l#ValueArray| (|v#Vector| ($BCS_serialize_core inline$$Test_new_event_handle_impl$1$sender@0)))))))))) (|b#Boolean| (Boolean (IsEqual_stratified (Vector (ValueArray (|lambda#4| 0 (- (|i#Integer| (|ub#$Range| ($Range (Integer 0) (Integer (|l#ValueArray| (|v#Vector| ($BCS_serialize_core (|Select_[$int]Value| (|v#ValueArray| (|v#Vector| ($ReadValue_stratified (|p#Reference| inline$$BorrowLoc$3$dst@1) (|Select_[Location]Value| (|contents#Memory| $m@41) (|l#Reference| inline$$BorrowLoc$3$dst@1))))) $Test_EventHandleGenerator_counter)))))))) (|i#Integer| (|lb#$Range| ($Range (Integer 0) (Integer (|l#ValueArray| (|v#Vector| ($BCS_serialize_core (|Select_[$int]Value| (|v#ValueArray| (|v#Vector| ($ReadValue_stratified (|p#Reference| inline$$BorrowLoc$3$dst@1) (|Select_[Location]Value| (|contents#Memory| $m@41) (|l#Reference| inline$$BorrowLoc$3$dst@1))))) $Test_EventHandleGenerator_counter))))))))) (|v#ValueArray| (|v#Vector| (|Select_[$int]Value| (|v#ValueArray| (|v#Vector| inline$$Test_new_event_handle_impl$1$$ret0@2)) $Test_EventHandle_guid))) (|i#Integer| (|lb#$Range| ($Range (Integer 0) (Integer (|l#ValueArray| (|v#Vector| ($BCS_serialize_core (|Select_[$int]Value| (|v#ValueArray| (|v#Vector| ($ReadValue_stratified (|p#Reference| inline$$BorrowLoc$3$dst@1) (|Select_[Location]Value| (|contents#Memory| $m@41) (|l#Reference| inline$$BorrowLoc$3$dst@1))))) $Test_EventHandleGenerator_counter)))))))) DefaultValue) (ite (< (- (|i#Integer| (|ub#$Range| ($Range (Integer 0) (Integer (|l#ValueArray| (|v#Vector| ($BCS_serialize_core (|Select_[$int]Value| (|v#ValueArray| (|v#Vector| ($ReadValue_stratified (|p#Reference| inline$$BorrowLoc$3$dst@1) (|Select_[Location]Value| (|contents#Memory| $m@41) (|l#Reference| inline$$BorrowLoc$3$dst@1))))) $Test_EventHandleGenerator_counter)))))))) (|i#Integer| (|lb#$Range| ($Range (Integer 0) (Integer (|l#ValueArray| (|v#Vector| ($BCS_serialize_core (|Select_[$int]Value| (|v#ValueArray| (|v#Vector| ($ReadValue_stratified (|p#Reference| inline$$BorrowLoc$3$dst@1) (|Select_[Location]Value| (|contents#Memory| $m@41) (|l#Reference| inline$$BorrowLoc$3$dst@1))))) $Test_EventHandleGenerator_counter))))))))) 0) 0 (- (|i#Integer| (|ub#$Range| ($Range (Integer 0) (Integer (|l#ValueArray| (|v#Vector| ($BCS_serialize_core (|Select_[$int]Value| (|v#ValueArray| (|v#Vector| ($ReadValue_stratified (|p#Reference| inline$$BorrowLoc$3$dst@1) (|Select_[Location]Value| (|contents#Memory| $m@41) (|l#Reference| inline$$BorrowLoc$3$dst@1))))) $Test_EventHandleGenerator_counter)))))))) (|i#Integer| (|lb#$Range| ($Range (Integer 0) (Integer (|l#ValueArray| (|v#Vector| ($BCS_serialize_core (|Select_[$int]Value| (|v#ValueArray| (|v#Vector| ($ReadValue_stratified (|p#Reference| inline$$BorrowLoc$3$dst@1) (|Select_[Location]Value| (|contents#Memory| $m@41) (|l#Reference| inline$$BorrowLoc$3$dst@1))))) $Test_EventHandleGenerator_counter)))))))))))) ($BCS_serialize_core (|Select_[$int]Value| (|v#ValueArray| (|v#Vector| ($ReadValue_stratified (|p#Reference| inline$$BorrowLoc$3$dst@1) (|Select_[Location]Value| (|contents#Memory| $m@41) (|l#Reference| inline$$BorrowLoc$3$dst@1))))) $Test_EventHandleGenerator_counter)))))))) (|b#Boolean| (Boolean (IsEqual_stratified (Vector (ValueArray (|lambda#4| 0 (- (|i#Integer| (|ub#$Range| ($Range (Integer (|l#ValueArray| (|v#Vector| ($BCS_serialize_core (|Select_[$int]Value| (|v#ValueArray| (|v#Vector| ($ReadValue_stratified (|p#Reference| inline$$BorrowLoc$3$dst@1) (|Select_[Location]Value| (|contents#Memory| $m@41) (|l#Reference| inline$$BorrowLoc$3$dst@1))))) $Test_EventHandleGenerator_counter))))) (Integer (|l#ValueArray| (|v#Vector| (|Select_[$int]Value| (|v#ValueArray| (|v#Vector| inline$$Test_new_event_handle_impl$1$$ret0@2)) $Test_EventHandle_guid))))))) (|i#Integer| (|lb#$Range| ($Range (Integer (|l#ValueArray| (|v#Vector| ($BCS_serialize_core (|Select_[$int]Value| (|v#ValueArray| (|v#Vector| ($ReadValue_stratified (|p#Reference| inline$$BorrowLoc$3$dst@1) (|Select_[Location]Value| (|contents#Memory| $m@41) (|l#Reference| inline$$BorrowLoc$3$dst@1))))) $Test_EventHandleGenerator_counter))))) (Integer (|l#ValueArray| (|v#Vector| (|Select_[$int]Value| (|v#ValueArray| (|v#Vector| inline$$Test_new_event_handle_impl$1$$ret0@2)) $Test_EventHandle_guid)))))))) (|v#ValueArray| (|v#Vector| (|Select_[$int]Value| (|v#ValueArray| (|v#Vector| inline$$Test_new_event_handle_impl$1$$ret0@2)) $Test_EventHandle_guid))) (|i#Integer| (|lb#$Range| ($Range (Integer (|l#ValueArray| (|v#Vector| ($BCS_serialize_core (|Select_[$int]Value| (|v#ValueArray| (|v#Vector| ($ReadValue_stratified (|p#Reference| inline$$BorrowLoc$3$dst@1) (|Select_[Location]Value| (|contents#Memory| $m@41) (|l#Reference| inline$$BorrowLoc$3$dst@1))))) $Test_EventHandleGenerator_counter))))) (Integer (|l#ValueArray| (|v#Vector| (|Select_[$int]Value| (|v#ValueArray| (|v#Vector| inline$$Test_new_event_handle_impl$1$$ret0@2)) $Test_EventHandle_guid))))))) DefaultValue) (ite (< (- (|i#Integer| (|ub#$Range| ($Range (Integer (|l#ValueArray| (|v#Vector| ($BCS_serialize_core (|Select_[$int]Value| (|v#ValueArray| (|v#Vector| ($ReadValue_stratified (|p#Reference| inline$$BorrowLoc$3$dst@1) (|Select_[Location]Value| (|contents#Memory| $m@41) (|l#Reference| inline$$BorrowLoc$3$dst@1))))) $Test_EventHandleGenerator_counter))))) (Integer (|l#ValueArray| (|v#Vector| (|Select_[$int]Value| (|v#ValueArray| (|v#Vector| inline$$Test_new_event_handle_impl$1$$ret0@2)) $Test_EventHandle_guid))))))) (|i#Integer| (|lb#$Range| ($Range (Integer (|l#ValueArray| (|v#Vector| ($BCS_serialize_core (|Select_[$int]Value| (|v#ValueArray| (|v#Vector| ($ReadValue_stratified (|p#Reference| inline$$BorrowLoc$3$dst@1) (|Select_[Location]Value| (|contents#Memory| $m@41) (|l#Reference| inline$$BorrowLoc$3$dst@1))))) $Test_EventHandleGenerator_counter))))) (Integer (|l#ValueArray| (|v#Vector| (|Select_[$int]Value| (|v#ValueArray| (|v#Vector| inline$$Test_new_event_handle_impl$1$$ret0@2)) $Test_EventHandle_guid)))))))) 0) 0 (- (|i#Integer| (|ub#$Range| ($Range (Integer (|l#ValueArray| (|v#Vector| ($BCS_serialize_core (|Select_[$int]Value| (|v#ValueArray| (|v#Vector| ($ReadValue_stratified (|p#Reference| inline$$BorrowLoc$3$dst@1) (|Select_[Location]Value| (|contents#Memory| $m@41) (|l#Reference| inline$$BorrowLoc$3$dst@1))))) $Test_EventHandleGenerator_counter))))) (Integer (|l#ValueArray| (|v#Vector| (|Select_[$int]Value| (|v#ValueArray| (|v#Vector| inline$$Test_new_event_handle_impl$1$$ret0@2)) $Test_EventHandle_guid))))))) (|i#Integer| (|lb#$Range| ($Range (Integer (|l#ValueArray| (|v#Vector| ($BCS_serialize_core (|Select_[$int]Value| (|v#ValueArray| (|v#Vector| ($ReadValue_stratified (|p#Reference| inline$$BorrowLoc$3$dst@1) (|Select_[Location]Value| (|contents#Memory| $m@41) (|l#Reference| inline$$BorrowLoc$3$dst@1))))) $Test_EventHandleGenerator_counter))))) (Integer (|l#ValueArray| (|v#Vector| (|Select_[$int]Value| (|v#ValueArray| (|v#Vector| inline$$Test_new_event_handle_impl$1$$ret0@2)) $Test_EventHandle_guid))))))))))) ($BCS_serialize_core inline$$Test_new_event_handle_impl$1$sender@0))))))))) (=> (=> (not $abort_flag@5) (|b#Boolean| (Boolean (and (|b#Boolean| (Boolean (and (|b#Boolean| (Boolean (IsEqual_stratified (Integer (|l#ValueArray| (|v#Vector| (|Select_[$int]Value| (|v#ValueArray| (|v#Vector| inline$$Test_new_event_handle_impl$1$$ret0@2)) $Test_EventHandle_guid)))) (Integer (+ (|i#Integer| (Integer (|l#ValueArray| (|v#Vector| ($BCS_serialize_core (|Select_[$int]Value| (|v#ValueArray| (|v#Vector| ($ReadValue_stratified (|p#Reference| inline$$BorrowLoc$3$dst@1) (|Select_[Location]Value| (|contents#Memory| $m@41) (|l#Reference| inline$$BorrowLoc$3$dst@1))))) $Test_EventHandleGenerator_counter)))))) (|i#Integer| (Integer (|l#ValueArray| (|v#Vector| ($BCS_serialize_core inline$$Test_new_event_handle_impl$1$sender@0)))))))))) (|b#Boolean| (Boolean (IsEqual_stratified (Vector (ValueArray (|lambda#4| 0 (- (|i#Integer| (|ub#$Range| ($Range (Integer 0) (Integer (|l#ValueArray| (|v#Vector| ($BCS_serialize_core (|Select_[$int]Value| (|v#ValueArray| (|v#Vector| ($ReadValue_stratified (|p#Reference| inline$$BorrowLoc$3$dst@1) (|Select_[Location]Value| (|contents#Memory| $m@41) (|l#Reference| inline$$BorrowLoc$3$dst@1))))) $Test_EventHandleGenerator_counter)))))))) (|i#Integer| (|lb#$Range| ($Range (Integer 0) (Integer (|l#ValueArray| (|v#Vector| ($BCS_serialize_core (|Select_[$int]Value| (|v#ValueArray| (|v#Vector| ($ReadValue_stratified (|p#Reference| inline$$BorrowLoc$3$dst@1) (|Select_[Location]Value| (|contents#Memory| $m@41) (|l#Reference| inline$$BorrowLoc$3$dst@1))))) $Test_EventHandleGenerator_counter))))))))) (|v#ValueArray| (|v#Vector| (|Select_[$int]Value| (|v#ValueArray| (|v#Vector| inline$$Test_new_event_handle_impl$1$$ret0@2)) $Test_EventHandle_guid))) (|i#Integer| (|lb#$Range| ($Range (Integer 0) (Integer (|l#ValueArray| (|v#Vector| ($BCS_serialize_core (|Select_[$int]Value| (|v#ValueArray| (|v#Vector| ($ReadValue_stratified (|p#Reference| inline$$BorrowLoc$3$dst@1) (|Select_[Location]Value| (|contents#Memory| $m@41) (|l#Reference| inline$$BorrowLoc$3$dst@1))))) $Test_EventHandleGenerator_counter)))))))) DefaultValue) (ite (< (- (|i#Integer| (|ub#$Range| ($Range (Integer 0) (Integer (|l#ValueArray| (|v#Vector| ($BCS_serialize_core (|Select_[$int]Value| (|v#ValueArray| (|v#Vector| ($ReadValue_stratified (|p#Reference| inline$$BorrowLoc$3$dst@1) (|Select_[Location]Value| (|contents#Memory| $m@41) (|l#Reference| inline$$BorrowLoc$3$dst@1))))) $Test_EventHandleGenerator_counter)))))))) (|i#Integer| (|lb#$Range| ($Range (Integer 0) (Integer (|l#ValueArray| (|v#Vector| ($BCS_serialize_core (|Select_[$int]Value| (|v#ValueArray| (|v#Vector| ($ReadValue_stratified (|p#Reference| inline$$BorrowLoc$3$dst@1) (|Select_[Location]Value| (|contents#Memory| $m@41) (|l#Reference| inline$$BorrowLoc$3$dst@1))))) $Test_EventHandleGenerator_counter))))))))) 0) 0 (- (|i#Integer| (|ub#$Range| ($Range (Integer 0) (Integer (|l#ValueArray| (|v#Vector| ($BCS_serialize_core (|Select_[$int]Value| (|v#ValueArray| (|v#Vector| ($ReadValue_stratified (|p#Reference| inline$$BorrowLoc$3$dst@1) (|Select_[Location]Value| (|contents#Memory| $m@41) (|l#Reference| inline$$BorrowLoc$3$dst@1))))) $Test_EventHandleGenerator_counter)))))))) (|i#Integer| (|lb#$Range| ($Range (Integer 0) (Integer (|l#ValueArray| (|v#Vector| ($BCS_serialize_core (|Select_[$int]Value| (|v#ValueArray| (|v#Vector| ($ReadValue_stratified (|p#Reference| inline$$BorrowLoc$3$dst@1) (|Select_[Location]Value| (|contents#Memory| $m@41) (|l#Reference| inline$$BorrowLoc$3$dst@1))))) $Test_EventHandleGenerator_counter)))))))))))) ($BCS_serialize_core (|Select_[$int]Value| (|v#ValueArray| (|v#Vector| ($ReadValue_stratified (|p#Reference| inline$$BorrowLoc$3$dst@1) (|Select_[Location]Value| (|contents#Memory| $m@41) (|l#Reference| inline$$BorrowLoc$3$dst@1))))) $Test_EventHandleGenerator_counter)))))))) (|b#Boolean| (Boolean (IsEqual_stratified (Vector (ValueArray (|lambda#4| 0 (- (|i#Integer| (|ub#$Range| ($Range (Integer (|l#ValueArray| (|v#Vector| ($BCS_serialize_core (|Select_[$int]Value| (|v#ValueArray| (|v#Vector| ($ReadValue_stratified (|p#Reference| inline$$BorrowLoc$3$dst@1) (|Select_[Location]Value| (|contents#Memory| $m@41) (|l#Reference| inline$$BorrowLoc$3$dst@1))))) $Test_EventHandleGenerator_counter))))) (Integer (|l#ValueArray| (|v#Vector| (|Select_[$int]Value| (|v#ValueArray| (|v#Vector| inline$$Test_new_event_handle_impl$1$$ret0@2)) $Test_EventHandle_guid))))))) (|i#Integer| (|lb#$Range| ($Range (Integer (|l#ValueArray| (|v#Vector| ($BCS_serialize_core (|Select_[$int]Value| (|v#ValueArray| (|v#Vector| ($ReadValue_stratified (|p#Reference| inline$$BorrowLoc$3$dst@1) (|Select_[Location]Value| (|contents#Memory| $m@41) (|l#Reference| inline$$BorrowLoc$3$dst@1))))) $Test_EventHandleGenerator_counter))))) (Integer (|l#ValueArray| (|v#Vector| (|Select_[$int]Value| (|v#ValueArray| (|v#Vector| inline$$Test_new_event_handle_impl$1$$ret0@2)) $Test_EventHandle_guid)))))))) (|v#ValueArray| (|v#Vector| (|Select_[$int]Value| (|v#ValueArray| (|v#Vector| inline$$Test_new_event_handle_impl$1$$ret0@2)) $Test_EventHandle_guid))) (|i#Integer| (|lb#$Range| ($Range (Integer (|l#ValueArray| (|v#Vector| ($BCS_serialize_core (|Select_[$int]Value| (|v#ValueArray| (|v#Vector| ($ReadValue_stratified (|p#Reference| inline$$BorrowLoc$3$dst@1) (|Select_[Location]Value| (|contents#Memory| $m@41) (|l#Reference| inline$$BorrowLoc$3$dst@1))))) $Test_EventHandleGenerator_counter))))) (Integer (|l#ValueArray| (|v#Vector| (|Select_[$int]Value| (|v#ValueArray| (|v#Vector| inline$$Test_new_event_handle_impl$1$$ret0@2)) $Test_EventHandle_guid))))))) DefaultValue) (ite (< (- (|i#Integer| (|ub#$Range| ($Range (Integer (|l#ValueArray| (|v#Vector| ($BCS_serialize_core (|Select_[$int]Value| (|v#ValueArray| (|v#Vector| ($ReadValue_stratified (|p#Reference| inline$$BorrowLoc$3$dst@1) (|Select_[Location]Value| (|contents#Memory| $m@41) (|l#Reference| inline$$BorrowLoc$3$dst@1))))) $Test_EventHandleGenerator_counter))))) (Integer (|l#ValueArray| (|v#Vector| (|Select_[$int]Value| (|v#ValueArray| (|v#Vector| inline$$Test_new_event_handle_impl$1$$ret0@2)) $Test_EventHandle_guid))))))) (|i#Integer| (|lb#$Range| ($Range (Integer (|l#ValueArray| (|v#Vector| ($BCS_serialize_core (|Select_[$int]Value| (|v#ValueArray| (|v#Vector| ($ReadValue_stratified (|p#Reference| inline$$BorrowLoc$3$dst@1) (|Select_[Location]Value| (|contents#Memory| $m@41) (|l#Reference| inline$$BorrowLoc$3$dst@1))))) $Test_EventHandleGenerator_counter))))) (Integer (|l#ValueArray| (|v#Vector| (|Select_[$int]Value| (|v#ValueArray| (|v#Vector| inline$$Test_new_event_handle_impl$1$$ret0@2)) $Test_EventHandle_guid)))))))) 0) 0 (- (|i#Integer| (|ub#$Range| ($Range (Integer (|l#ValueArray| (|v#Vector| ($BCS_serialize_core (|Select_[$int]Value| (|v#ValueArray| (|v#Vector| ($ReadValue_stratified (|p#Reference| inline$$BorrowLoc$3$dst@1) (|Select_[Location]Value| (|contents#Memory| $m@41) (|l#Reference| inline$$BorrowLoc$3$dst@1))))) $Test_EventHandleGenerator_counter))))) (Integer (|l#ValueArray| (|v#Vector| (|Select_[$int]Value| (|v#ValueArray| (|v#Vector| inline$$Test_new_event_handle_impl$1$$ret0@2)) $Test_EventHandle_guid))))))) (|i#Integer| (|lb#$Range| ($Range (Integer (|l#ValueArray| (|v#Vector| ($BCS_serialize_core (|Select_[$int]Value| (|v#ValueArray| (|v#Vector| ($ReadValue_stratified (|p#Reference| inline$$BorrowLoc$3$dst@1) (|Select_[Location]Value| (|contents#Memory| $m@41) (|l#Reference| inline$$BorrowLoc$3$dst@1))))) $Test_EventHandleGenerator_counter))))) (Integer (|l#ValueArray| (|v#Vector| (|Select_[$int]Value| (|v#ValueArray| (|v#Vector| inline$$Test_new_event_handle_impl$1$$ret0@2)) $Test_EventHandle_guid))))))))))) ($BCS_serialize_core inline$$Test_new_event_handle_impl$1$sender@0)))))))) (and (=> (= (ControlFlow 0 24542) (- 0 35025)) (=> (not $abort_flag@5) (|b#Boolean| (Boolean (IsEqual_stratified (|Select_[$int]Value| (|v#ValueArray| (|v#Vector| inline$$Test_new_event_handle_impl$1$$ret0@2)) $Test_EventHandle_counter) (Integer 0)))))) (=> (=> (not $abort_flag@5) (|b#Boolean| (Boolean (IsEqual_stratified (|Select_[$int]Value| (|v#ValueArray| (|v#Vector| inline$$Test_new_event_handle_impl$1$$ret0@2)) $Test_EventHandle_counter) (Integer 0))))) (and (=> (= (ControlFlow 0 24542) 25086) inline$$Test_create$0$anon40_Then_correct) (=> (= (ControlFlow 0 24542) 24747) inline$$Test_create$0$anon40_Else_correct)))))))))))) (let ((inline$$Test_new_event_handle_impl$1$anon10_correct (=> (and (and (= inline$$Test_new_event_handle_impl$1$$ret0@2 inline$$Test_new_event_handle_impl$1$$ret0@1) (= $m@63 $m@62)) (and (= $abort_flag@5 $abort_flag@4) (= (ControlFlow 0 24310) 24542))) inline$$Test_new_event_handle_impl$1$Return_correct))) (let ((inline$$Test_new_event_handle_impl$1$anon15_Else_correct (=> (and (not true) (= (ControlFlow 0 24308) 24310)) inline$$Test_new_event_handle_impl$1$anon10_correct))) (let ((inline$$Test_new_event_handle_impl$1$anon15_Then_correct (=> (and ($DebugTrackLocal 3 1559 7 inline$$Test_new_event_handle_impl$1$$ret0@1) (= (ControlFlow 0 24324) 24310)) inline$$Test_new_event_handle_impl$1$anon10_correct))) (let ((inline$$Test_new_event_handle_impl$1$anon8$1_correct (=> (and (= $m@62 (Memory (|Store_[Location]$bool| (|domain#Memory| $m@61) (Local (+ $local_counter@2 6)) true) (|Store_[Location]Value| (|contents#Memory| $m@61) (Local (+ $local_counter@2 6)) inline$$Test_EventHandle_pack$1$$struct@1))) (= inline$$Test_new_event_handle_impl$1$$ret0@1 (|Select_[Location]Value| (|contents#Memory| $m@62) (Local (+ $local_counter@2 6))))) (and (=> (= (ControlFlow 0 24302) 24324) inline$$Test_new_event_handle_impl$1$anon15_Then_correct) (=> (= (ControlFlow 0 24302) 24308) inline$$Test_new_event_handle_impl$1$anon15_Else_correct))))) (let ((inline$$Test_EventHandle_pack$1$anon2_Else_correct (=> (and (>= 0 0) (= (ControlFlow 0 24254) 24302)) inline$$Test_new_event_handle_impl$1$anon8$1_correct))) (let ((inline$$Test_EventHandle_pack$1$anon2_Then_correct (=> (> 0 0) (=> (and ($DebugTrackLocal 0 0 0 inline$$Test_EventHandle_pack$1$$struct@1) (= (ControlFlow 0 24272) 24302)) inline$$Test_new_event_handle_impl$1$anon8$1_correct)))) (let ((inline$$Test_EventHandle_pack$1$anon0_correct (=> (and (and (is-Integer inline$$Test_EventHandle_pack$1$counter@0) (>= (|i#Integer| inline$$Test_EventHandle_pack$1$counter@0) 0)) (<= (|i#Integer| inline$$Test_EventHandle_pack$1$counter@0) MAX_U64)) (=> (and (and (and (is-Vector inline$$Test_EventHandle_pack$1$guid@0) (let ((va@@15 (|v#Vector| inline$$Test_EventHandle_pack$1$guid@0))) (let ((l@@15 (|l#ValueArray| va@@15))) (and (<= 0 l@@15) (forall ((x@@15 Int) ) (! (=> (or (< x@@15 0) (>= x@@15 l@@15)) (= (|Select_[$int]Value| (|v#ValueArray| va@@15) x@@15) DefaultValue)) :qid |outputbp.826:21| :skolemid |17| :pattern ( (|Select_[$int]Value| (|v#ValueArray| va@@15) x@@15)) )))))) (forall (($$0@@3 Int) ) (! (=> (and (>= $$0@@3 0) (< $$0@@3 (|l#ValueArray| (|v#Vector| inline$$Test_EventHandle_pack$1$guid@0)))) (and (and (is-Integer (|Select_[$int]Value| (|v#ValueArray| (|v#Vector| inline$$Test_EventHandle_pack$1$guid@0)) $$0@@3)) (>= (|i#Integer| (|Select_[$int]Value| (|v#ValueArray| (|v#Vector| inline$$Test_EventHandle_pack$1$guid@0)) $$0@@3)) 0)) (<= (|i#Integer| (|Select_[$int]Value| (|v#ValueArray| (|v#Vector| inline$$Test_EventHandle_pack$1$guid@0)) $$0@@3)) MAX_U8))) :qid |outputbp.1345:52| :skolemid |28| :pattern ( (|Select_[$int]Value| (|v#ValueArray| (|v#Vector| inline$$Test_EventHandle_pack$1$guid@0)) $$0@@3)) ))) (= inline$$Test_EventHandle_pack$1$$struct@1 (Vector (ValueArray (|Store_[$int]Value| (|Store_[$int]Value| (MapConstValue DefaultValue) 0 inline$$Test_EventHandle_pack$1$counter@0) 1 inline$$Test_EventHandle_pack$1$guid@0) 2)))) (and (=> (= (ControlFlow 0 24246) 24272) inline$$Test_EventHandle_pack$1$anon2_Then_correct) (=> (= (ControlFlow 0 24246) 24254) inline$$Test_EventHandle_pack$1$anon2_Else_correct)))))) (let ((inline$$Test_EventHandle_pack$1$Entry_correct (=> (= inline$$Test_EventHandle_pack$1$counter@0 (|Select_[Location]Value| (|contents#Memory| $m@61) (Local (+ $local_counter@2 2)))) (=> (and (= inline$$Test_EventHandle_pack$1$guid@0 (|Select_[Location]Value| (|contents#Memory| $m@61) (Local (+ $local_counter@2 5)))) (= (ControlFlow 0 24172) 24246)) inline$$Test_EventHandle_pack$1$anon0_correct)))) (let ((inline$$Test_new_event_handle_impl$1$anon14_Else_correct (=> (and (not true) (= (ControlFlow 0 24009) 24172)) inline$$Test_EventHandle_pack$1$Entry_correct))) (let ((inline$$Test_new_event_handle_impl$1$anon14_Then_correct (=> (and ($DebugTrackLocal 3 1593 0 ($ReadValue_stratified (|p#Reference| inline$$BorrowLoc$3$dst@1) (|Select_[Location]Value| (|contents#Memory| $m@61) (|l#Reference| inline$$BorrowLoc$3$dst@1)))) (= (ControlFlow 0 24342) 24172)) inline$$Test_EventHandle_pack$1$Entry_correct))) (let ((inline$$Test_new_event_handle_impl$1$anon13_Else_correct (=> (not $abort_flag@4) (=> (and (and (and (is-Vector inline$$Test_fresh_guid$1$$ret0@2) (let ((va@@16 (|v#Vector| inline$$Test_fresh_guid$1$$ret0@2))) (let ((l@@16 (|l#ValueArray| va@@16))) (and (<= 0 l@@16) (forall ((x@@16 Int) ) (! (=> (or (< x@@16 0) (>= x@@16 l@@16)) (= (|Select_[$int]Value| (|v#ValueArray| va@@16) x@@16) DefaultValue)) :qid |outputbp.826:21| :skolemid |17| :pattern ( (|Select_[$int]Value| (|v#ValueArray| va@@16) x@@16)) )))))) (forall (($$0@@4 Int) ) (! (=> (and (>= $$0@@4 0) (< $$0@@4 (|l#ValueArray| (|v#Vector| inline$$Test_fresh_guid$1$$ret0@2)))) (and (and (is-Integer (|Select_[$int]Value| (|v#ValueArray| (|v#Vector| inline$$Test_fresh_guid$1$$ret0@2)) $$0@@4)) (>= (|i#Integer| (|Select_[$int]Value| (|v#ValueArray| (|v#Vector| inline$$Test_fresh_guid$1$$ret0@2)) $$0@@4)) 0)) (<= (|i#Integer| (|Select_[$int]Value| (|v#ValueArray| (|v#Vector| inline$$Test_fresh_guid$1$$ret0@2)) $$0@@4)) MAX_U8))) :qid |outputbp.1888:51| :skolemid |44| :pattern ( (|Select_[$int]Value| (|v#ValueArray| (|v#Vector| inline$$Test_fresh_guid$1$$ret0@2)) $$0@@4)) ))) (= $m@61 (Memory (|Store_[Location]$bool| (|domain#Memory| $m@60) (Local (+ $local_counter@2 5)) true) (|Store_[Location]Value| (|contents#Memory| $m@60) (Local (+ $local_counter@2 5)) inline$$Test_fresh_guid$1$$ret0@2)))) (and (=> (= (ControlFlow 0 24003) 24342) inline$$Test_new_event_handle_impl$1$anon14_Then_correct) (=> (= (ControlFlow 0 24003) 24009) inline$$Test_new_event_handle_impl$1$anon14_Else_correct)))))) (let ((inline$$Test_new_event_handle_impl$1$anon13_Then_correct (=> (and $abort_flag@4 ($DebugTrackAbort 3 1593)) (=> (and (and (= inline$$Test_new_event_handle_impl$1$$ret0@2 DefaultValue) (= $m@63 $m@41)) (and (= $abort_flag@5 true) (= (ControlFlow 0 24358) 24542))) inline$$Test_new_event_handle_impl$1$Return_correct)))) (let ((inline$$Test_fresh_guid$1$Return_correct (and (=> (= (ControlFlow 0 23935) (- 0 34506)) (=> (|b#Boolean| (Boolean (> (|i#Integer| (Integer (+ (|i#Integer| (|Select_[$int]Value| (|v#ValueArray| (|v#Vector| ($ReadValue_stratified (|p#Reference| inline$$BorrowLoc$3$dst@1) (|Select_[Location]Value| (|contents#Memory| $m@44) (|l#Reference| inline$$BorrowLoc$3$dst@1))))) $Test_EventHandleGenerator_counter)) (|i#Integer| (Integer 1))))) (|i#Integer| (Integer MAX_U64))))) $abort_flag@4)) (=> (=> (|b#Boolean| (Boolean (> (|i#Integer| (Integer (+ (|i#Integer| (|Select_[$int]Value| (|v#ValueArray| (|v#Vector| ($ReadValue_stratified (|p#Reference| inline$$BorrowLoc$3$dst@1) (|Select_[Location]Value| (|contents#Memory| $m@44) (|l#Reference| inline$$BorrowLoc$3$dst@1))))) $Test_EventHandleGenerator_counter)) (|i#Integer| (Integer 1))))) (|i#Integer| (Integer MAX_U64))))) $abort_flag@4) (and (=> (= (ControlFlow 0 23935) (- 0 34543)) (=> $abort_flag@4 (|b#Boolean| (Boolean (> (|i#Integer| (Integer (+ (|i#Integer| (|Select_[$int]Value| (|v#ValueArray| (|v#Vector| ($ReadValue_stratified (|p#Reference| inline$$BorrowLoc$3$dst@1) (|Select_[Location]Value| (|contents#Memory| $m@44) (|l#Reference| inline$$BorrowLoc$3$dst@1))))) $Test_EventHandleGenerator_counter)) (|i#Integer| (Integer 1))))) (|i#Integer| (Integer MAX_U64))))))) (=> (=> $abort_flag@4 (|b#Boolean| (Boolean (> (|i#Integer| (Integer (+ (|i#Integer| (|Select_[$int]Value| (|v#ValueArray| (|v#Vector| ($ReadValue_stratified (|p#Reference| inline$$BorrowLoc$3$dst@1) (|Select_[Location]Value| (|contents#Memory| $m@44) (|l#Reference| inline$$BorrowLoc$3$dst@1))))) $Test_EventHandleGenerator_counter)) (|i#Integer| (Integer 1))))) (|i#Integer| (Integer MAX_U64)))))) (and (=> (= (ControlFlow 0 23935) (- 0 34580)) (=> (not $abort_flag@4) (|b#Boolean| (Boolean (and (|b#Boolean| (Boolean (and (|b#Boolean| (Boolean (IsEqual_stratified (Integer (|l#ValueArray| (|v#Vector| inline$$Test_fresh_guid$1$$ret0@2))) (Integer (+ (|i#Integer| (Integer (|l#ValueArray| (|v#Vector| ($BCS_serialize_core (|Select_[$int]Value| (|v#ValueArray| (|v#Vector| ($ReadValue_stratified (|p#Reference| inline$$BorrowLoc$3$dst@1) (|Select_[Location]Value| (|contents#Memory| $m@44) (|l#Reference| inline$$BorrowLoc$3$dst@1))))) $Test_EventHandleGenerator_counter)))))) (|i#Integer| (Integer (|l#ValueArray| (|v#Vector| ($BCS_serialize_core inline$$Test_fresh_guid$1$sender@0)))))))))) (|b#Boolean| (Boolean (IsEqual_stratified (Vector (ValueArray (|lambda#4| 0 (- (|i#Integer| (|ub#$Range| ($Range (Integer 0) (Integer (|l#ValueArray| (|v#Vector| ($BCS_serialize_core (|Select_[$int]Value| (|v#ValueArray| (|v#Vector| ($ReadValue_stratified (|p#Reference| inline$$BorrowLoc$3$dst@1) (|Select_[Location]Value| (|contents#Memory| $m@44) (|l#Reference| inline$$BorrowLoc$3$dst@1))))) $Test_EventHandleGenerator_counter)))))))) (|i#Integer| (|lb#$Range| ($Range (Integer 0) (Integer (|l#ValueArray| (|v#Vector| ($BCS_serialize_core (|Select_[$int]Value| (|v#ValueArray| (|v#Vector| ($ReadValue_stratified (|p#Reference| inline$$BorrowLoc$3$dst@1) (|Select_[Location]Value| (|contents#Memory| $m@44) (|l#Reference| inline$$BorrowLoc$3$dst@1))))) $Test_EventHandleGenerator_counter))))))))) (|v#ValueArray| (|v#Vector| inline$$Test_fresh_guid$1$$ret0@2)) (|i#Integer| (|lb#$Range| ($Range (Integer 0) (Integer (|l#ValueArray| (|v#Vector| ($BCS_serialize_core (|Select_[$int]Value| (|v#ValueArray| (|v#Vector| ($ReadValue_stratified (|p#Reference| inline$$BorrowLoc$3$dst@1) (|Select_[Location]Value| (|contents#Memory| $m@44) (|l#Reference| inline$$BorrowLoc$3$dst@1))))) $Test_EventHandleGenerator_counter)))))))) DefaultValue) (ite (< (- (|i#Integer| (|ub#$Range| ($Range (Integer 0) (Integer (|l#ValueArray| (|v#Vector| ($BCS_serialize_core (|Select_[$int]Value| (|v#ValueArray| (|v#Vector| ($ReadValue_stratified (|p#Reference| inline$$BorrowLoc$3$dst@1) (|Select_[Location]Value| (|contents#Memory| $m@44) (|l#Reference| inline$$BorrowLoc$3$dst@1))))) $Test_EventHandleGenerator_counter)))))))) (|i#Integer| (|lb#$Range| ($Range (Integer 0) (Integer (|l#ValueArray| (|v#Vector| ($BCS_serialize_core (|Select_[$int]Value| (|v#ValueArray| (|v#Vector| ($ReadValue_stratified (|p#Reference| inline$$BorrowLoc$3$dst@1) (|Select_[Location]Value| (|contents#Memory| $m@44) (|l#Reference| inline$$BorrowLoc$3$dst@1))))) $Test_EventHandleGenerator_counter))))))))) 0) 0 (- (|i#Integer| (|ub#$Range| ($Range (Integer 0) (Integer (|l#ValueArray| (|v#Vector| ($BCS_serialize_core (|Select_[$int]Value| (|v#ValueArray| (|v#Vector| ($ReadValue_stratified (|p#Reference| inline$$BorrowLoc$3$dst@1) (|Select_[Location]Value| (|contents#Memory| $m@44) (|l#Reference| inline$$BorrowLoc$3$dst@1))))) $Test_EventHandleGenerator_counter)))))))) (|i#Integer| (|lb#$Range| ($Range (Integer 0) (Integer (|l#ValueArray| (|v#Vector| ($BCS_serialize_core (|Select_[$int]Value| (|v#ValueArray| (|v#Vector| ($ReadValue_stratified (|p#Reference| inline$$BorrowLoc$3$dst@1) (|Select_[Location]Value| (|contents#Memory| $m@44) (|l#Reference| inline$$BorrowLoc$3$dst@1))))) $Test_EventHandleGenerator_counter)))))))))))) ($BCS_serialize_core (|Select_[$int]Value| (|v#ValueArray| (|v#Vector| ($ReadValue_stratified (|p#Reference| inline$$BorrowLoc$3$dst@1) (|Select_[Location]Value| (|contents#Memory| $m@44) (|l#Reference| inline$$BorrowLoc$3$dst@1))))) $Test_EventHandleGenerator_counter)))))))) (|b#Boolean| (Boolean (IsEqual_stratified (Vector (ValueArray (|lambda#4| 0 (- (|i#Integer| (|ub#$Range| ($Range (Integer (|l#ValueArray| (|v#Vector| ($BCS_serialize_core (|Select_[$int]Value| (|v#ValueArray| (|v#Vector| ($ReadValue_stratified (|p#Reference| inline$$BorrowLoc$3$dst@1) (|Select_[Location]Value| (|contents#Memory| $m@44) (|l#Reference| inline$$BorrowLoc$3$dst@1))))) $Test_EventHandleGenerator_counter))))) (Integer (|l#ValueArray| (|v#Vector| inline$$Test_fresh_guid$1$$ret0@2)))))) (|i#Integer| (|lb#$Range| ($Range (Integer (|l#ValueArray| (|v#Vector| ($BCS_serialize_core (|Select_[$int]Value| (|v#ValueArray| (|v#Vector| ($ReadValue_stratified (|p#Reference| inline$$BorrowLoc$3$dst@1) (|Select_[Location]Value| (|contents#Memory| $m@44) (|l#Reference| inline$$BorrowLoc$3$dst@1))))) $Test_EventHandleGenerator_counter))))) (Integer (|l#ValueArray| (|v#Vector| inline$$Test_fresh_guid$1$$ret0@2))))))) (|v#ValueArray| (|v#Vector| inline$$Test_fresh_guid$1$$ret0@2)) (|i#Integer| (|lb#$Range| ($Range (Integer (|l#ValueArray| (|v#Vector| ($BCS_serialize_core (|Select_[$int]Value| (|v#ValueArray| (|v#Vector| ($ReadValue_stratified (|p#Reference| inline$$BorrowLoc$3$dst@1) (|Select_[Location]Value| (|contents#Memory| $m@44) (|l#Reference| inline$$BorrowLoc$3$dst@1))))) $Test_EventHandleGenerator_counter))))) (Integer (|l#ValueArray| (|v#Vector| inline$$Test_fresh_guid$1$$ret0@2)))))) DefaultValue) (ite (< (- (|i#Integer| (|ub#$Range| ($Range (Integer (|l#ValueArray| (|v#Vector| ($BCS_serialize_core (|Select_[$int]Value| (|v#ValueArray| (|v#Vector| ($ReadValue_stratified (|p#Reference| inline$$BorrowLoc$3$dst@1) (|Select_[Location]Value| (|contents#Memory| $m@44) (|l#Reference| inline$$BorrowLoc$3$dst@1))))) $Test_EventHandleGenerator_counter))))) (Integer (|l#ValueArray| (|v#Vector| inline$$Test_fresh_guid$1$$ret0@2)))))) (|i#Integer| (|lb#$Range| ($Range (Integer (|l#ValueArray| (|v#Vector| ($BCS_serialize_core (|Select_[$int]Value| (|v#ValueArray| (|v#Vector| ($ReadValue_stratified (|p#Reference| inline$$BorrowLoc$3$dst@1) (|Select_[Location]Value| (|contents#Memory| $m@44) (|l#Reference| inline$$BorrowLoc$3$dst@1))))) $Test_EventHandleGenerator_counter))))) (Integer (|l#ValueArray| (|v#Vector| inline$$Test_fresh_guid$1$$ret0@2))))))) 0) 0 (- (|i#Integer| (|ub#$Range| ($Range (Integer (|l#ValueArray| (|v#Vector| ($BCS_serialize_core (|Select_[$int]Value| (|v#ValueArray| (|v#Vector| ($ReadValue_stratified (|p#Reference| inline$$BorrowLoc$3$dst@1) (|Select_[Location]Value| (|contents#Memory| $m@44) (|l#Reference| inline$$BorrowLoc$3$dst@1))))) $Test_EventHandleGenerator_counter))))) (Integer (|l#ValueArray| (|v#Vector| inline$$Test_fresh_guid$1$$ret0@2)))))) (|i#Integer| (|lb#$Range| ($Range (Integer (|l#ValueArray| (|v#Vector| ($BCS_serialize_core (|Select_[$int]Value| (|v#ValueArray| (|v#Vector| ($ReadValue_stratified (|p#Reference| inline$$BorrowLoc$3$dst@1) (|Select_[Location]Value| (|contents#Memory| $m@44) (|l#Reference| inline$$BorrowLoc$3$dst@1))))) $Test_EventHandleGenerator_counter))))) (Integer (|l#ValueArray| (|v#Vector| inline$$Test_fresh_guid$1$$ret0@2)))))))))) ($BCS_serialize_core inline$$Test_fresh_guid$1$sender@0))))))))) (=> (=> (not $abort_flag@4) (|b#Boolean| (Boolean (and (|b#Boolean| (Boolean (and (|b#Boolean| (Boolean (IsEqual_stratified (Integer (|l#ValueArray| (|v#Vector| inline$$Test_fresh_guid$1$$ret0@2))) (Integer (+ (|i#Integer| (Integer (|l#ValueArray| (|v#Vector| ($BCS_serialize_core (|Select_[$int]Value| (|v#ValueArray| (|v#Vector| ($ReadValue_stratified (|p#Reference| inline$$BorrowLoc$3$dst@1) (|Select_[Location]Value| (|contents#Memory| $m@44) (|l#Reference| inline$$BorrowLoc$3$dst@1))))) $Test_EventHandleGenerator_counter)))))) (|i#Integer| (Integer (|l#ValueArray| (|v#Vector| ($BCS_serialize_core inline$$Test_fresh_guid$1$sender@0)))))))))) (|b#Boolean| (Boolean (IsEqual_stratified (Vector (ValueArray (|lambda#4| 0 (- (|i#Integer| (|ub#$Range| ($Range (Integer 0) (Integer (|l#ValueArray| (|v#Vector| ($BCS_serialize_core (|Select_[$int]Value| (|v#ValueArray| (|v#Vector| ($ReadValue_stratified (|p#Reference| inline$$BorrowLoc$3$dst@1) (|Select_[Location]Value| (|contents#Memory| $m@44) (|l#Reference| inline$$BorrowLoc$3$dst@1))))) $Test_EventHandleGenerator_counter)))))))) (|i#Integer| (|lb#$Range| ($Range (Integer 0) (Integer (|l#ValueArray| (|v#Vector| ($BCS_serialize_core (|Select_[$int]Value| (|v#ValueArray| (|v#Vector| ($ReadValue_stratified (|p#Reference| inline$$BorrowLoc$3$dst@1) (|Select_[Location]Value| (|contents#Memory| $m@44) (|l#Reference| inline$$BorrowLoc$3$dst@1))))) $Test_EventHandleGenerator_counter))))))))) (|v#ValueArray| (|v#Vector| inline$$Test_fresh_guid$1$$ret0@2)) (|i#Integer| (|lb#$Range| ($Range (Integer 0) (Integer (|l#ValueArray| (|v#Vector| ($BCS_serialize_core (|Select_[$int]Value| (|v#ValueArray| (|v#Vector| ($ReadValue_stratified (|p#Reference| inline$$BorrowLoc$3$dst@1) (|Select_[Location]Value| (|contents#Memory| $m@44) (|l#Reference| inline$$BorrowLoc$3$dst@1))))) $Test_EventHandleGenerator_counter)))))))) DefaultValue) (ite (< (- (|i#Integer| (|ub#$Range| ($Range (Integer 0) (Integer (|l#ValueArray| (|v#Vector| ($BCS_serialize_core (|Select_[$int]Value| (|v#ValueArray| (|v#Vector| ($ReadValue_stratified (|p#Reference| inline$$BorrowLoc$3$dst@1) (|Select_[Location]Value| (|contents#Memory| $m@44) (|l#Reference| inline$$BorrowLoc$3$dst@1))))) $Test_EventHandleGenerator_counter)))))))) (|i#Integer| (|lb#$Range| ($Range (Integer 0) (Integer (|l#ValueArray| (|v#Vector| ($BCS_serialize_core (|Select_[$int]Value| (|v#ValueArray| (|v#Vector| ($ReadValue_stratified (|p#Reference| inline$$BorrowLoc$3$dst@1) (|Select_[Location]Value| (|contents#Memory| $m@44) (|l#Reference| inline$$BorrowLoc$3$dst@1))))) $Test_EventHandleGenerator_counter))))))))) 0) 0 (- (|i#Integer| (|ub#$Range| ($Range (Integer 0) (Integer (|l#ValueArray| (|v#Vector| ($BCS_serialize_core (|Select_[$int]Value| (|v#ValueArray| (|v#Vector| ($ReadValue_stratified (|p#Reference| inline$$BorrowLoc$3$dst@1) (|Select_[Location]Value| (|contents#Memory| $m@44) (|l#Reference| inline$$BorrowLoc$3$dst@1))))) $Test_EventHandleGenerator_counter)))))))) (|i#Integer| (|lb#$Range| ($Range (Integer 0) (Integer (|l#ValueArray| (|v#Vector| ($BCS_serialize_core (|Select_[$int]Value| (|v#ValueArray| (|v#Vector| ($ReadValue_stratified (|p#Reference| inline$$BorrowLoc$3$dst@1) (|Select_[Location]Value| (|contents#Memory| $m@44) (|l#Reference| inline$$BorrowLoc$3$dst@1))))) $Test_EventHandleGenerator_counter)))))))))))) ($BCS_serialize_core (|Select_[$int]Value| (|v#ValueArray| (|v#Vector| ($ReadValue_stratified (|p#Reference| inline$$BorrowLoc$3$dst@1) (|Select_[Location]Value| (|contents#Memory| $m@44) (|l#Reference| inline$$BorrowLoc$3$dst@1))))) $Test_EventHandleGenerator_counter)))))))) (|b#Boolean| (Boolean (IsEqual_stratified (Vector (ValueArray (|lambda#4| 0 (- (|i#Integer| (|ub#$Range| ($Range (Integer (|l#ValueArray| (|v#Vector| ($BCS_serialize_core (|Select_[$int]Value| (|v#ValueArray| (|v#Vector| ($ReadValue_stratified (|p#Reference| inline$$BorrowLoc$3$dst@1) (|Select_[Location]Value| (|contents#Memory| $m@44) (|l#Reference| inline$$BorrowLoc$3$dst@1))))) $Test_EventHandleGenerator_counter))))) (Integer (|l#ValueArray| (|v#Vector| inline$$Test_fresh_guid$1$$ret0@2)))))) (|i#Integer| (|lb#$Range| ($Range (Integer (|l#ValueArray| (|v#Vector| ($BCS_serialize_core (|Select_[$int]Value| (|v#ValueArray| (|v#Vector| ($ReadValue_stratified (|p#Reference| inline$$BorrowLoc$3$dst@1) (|Select_[Location]Value| (|contents#Memory| $m@44) (|l#Reference| inline$$BorrowLoc$3$dst@1))))) $Test_EventHandleGenerator_counter))))) (Integer (|l#ValueArray| (|v#Vector| inline$$Test_fresh_guid$1$$ret0@2))))))) (|v#ValueArray| (|v#Vector| inline$$Test_fresh_guid$1$$ret0@2)) (|i#Integer| (|lb#$Range| ($Range (Integer (|l#ValueArray| (|v#Vector| ($BCS_serialize_core (|Select_[$int]Value| (|v#ValueArray| (|v#Vector| ($ReadValue_stratified (|p#Reference| inline$$BorrowLoc$3$dst@1) (|Select_[Location]Value| (|contents#Memory| $m@44) (|l#Reference| inline$$BorrowLoc$3$dst@1))))) $Test_EventHandleGenerator_counter))))) (Integer (|l#ValueArray| (|v#Vector| inline$$Test_fresh_guid$1$$ret0@2)))))) DefaultValue) (ite (< (- (|i#Integer| (|ub#$Range| ($Range (Integer (|l#ValueArray| (|v#Vector| ($BCS_serialize_core (|Select_[$int]Value| (|v#ValueArray| (|v#Vector| ($ReadValue_stratified (|p#Reference| inline$$BorrowLoc$3$dst@1) (|Select_[Location]Value| (|contents#Memory| $m@44) (|l#Reference| inline$$BorrowLoc$3$dst@1))))) $Test_EventHandleGenerator_counter))))) (Integer (|l#ValueArray| (|v#Vector| inline$$Test_fresh_guid$1$$ret0@2)))))) (|i#Integer| (|lb#$Range| ($Range (Integer (|l#ValueArray| (|v#Vector| ($BCS_serialize_core (|Select_[$int]Value| (|v#ValueArray| (|v#Vector| ($ReadValue_stratified (|p#Reference| inline$$BorrowLoc$3$dst@1) (|Select_[Location]Value| (|contents#Memory| $m@44) (|l#Reference| inline$$BorrowLoc$3$dst@1))))) $Test_EventHandleGenerator_counter))))) (Integer (|l#ValueArray| (|v#Vector| inline$$Test_fresh_guid$1$$ret0@2))))))) 0) 0 (- (|i#Integer| (|ub#$Range| ($Range (Integer (|l#ValueArray| (|v#Vector| ($BCS_serialize_core (|Select_[$int]Value| (|v#ValueArray| (|v#Vector| ($ReadValue_stratified (|p#Reference| inline$$BorrowLoc$3$dst@1) (|Select_[Location]Value| (|contents#Memory| $m@44) (|l#Reference| inline$$BorrowLoc$3$dst@1))))) $Test_EventHandleGenerator_counter))))) (Integer (|l#ValueArray| (|v#Vector| inline$$Test_fresh_guid$1$$ret0@2)))))) (|i#Integer| (|lb#$Range| ($Range (Integer (|l#ValueArray| (|v#Vector| ($BCS_serialize_core (|Select_[$int]Value| (|v#ValueArray| (|v#Vector| ($ReadValue_stratified (|p#Reference| inline$$BorrowLoc$3$dst@1) (|Select_[Location]Value| (|contents#Memory| $m@44) (|l#Reference| inline$$BorrowLoc$3$dst@1))))) $Test_EventHandleGenerator_counter))))) (Integer (|l#ValueArray| (|v#Vector| inline$$Test_fresh_guid$1$$ret0@2)))))))))) ($BCS_serialize_core inline$$Test_fresh_guid$1$sender@0)))))))) (and (=> (= (ControlFlow 0 23935) 24358) inline$$Test_new_event_handle_impl$1$anon13_Then_correct) (=> (= (ControlFlow 0 23935) 24003) inline$$Test_new_event_handle_impl$1$anon13_Else_correct)))))))))) (let ((inline$$Test_fresh_guid$1$Abort_correct (=> (and (and (= $m@60 $m@44) (= $abort_flag@4 true)) (and (= inline$$Test_fresh_guid$1$$ret0@2 DefaultValue) (= (ControlFlow 0 23701) 23935))) inline$$Test_fresh_guid$1$Return_correct))) (let ((inline$$Test_fresh_guid$1$anon31_Then_correct (=> $abort_flag@3 (=> (and ($DebugTrackAbort 3 1189) (= (ControlFlow 0 23693) 23701)) inline$$Test_fresh_guid$1$Abort_correct)))) (let ((inline$$Test_fresh_guid$1$anon29_Then_correct (=> $abort_flag@3 (=> (and ($DebugTrackAbort 3 1167) (= (ControlFlow 0 23729) 23701)) inline$$Test_fresh_guid$1$Abort_correct)))) (let ((inline$$Test_fresh_guid$1$anon27_Then_correct (=> $abort_flag@2 (=> (and ($DebugTrackAbort 3 1097) (= (ControlFlow 0 23753) 23701)) inline$$Test_fresh_guid$1$Abort_correct)))) (let ((inline$$Test_fresh_guid$1$anon25_Then_correct (=> $abort_flag@2 (=> (and ($DebugTrackAbort 3 1047) (= (ControlFlow 0 23777) 23701)) inline$$Test_fresh_guid$1$Abort_correct)))) (let ((inline$$Test_fresh_guid$1$anon22_correct (=> (and (and (= $m@60 $m@59) (= $abort_flag@4 $abort_flag@3)) (and (= inline$$Test_fresh_guid$1$$ret0@2 inline$$Test_fresh_guid$1$$ret0@1) (= (ControlFlow 0 23651) 23935))) inline$$Test_fresh_guid$1$Return_correct))) (let ((inline$$Test_fresh_guid$1$anon33_Else_correct (=> (and (not true) (= (ControlFlow 0 23649) 23651)) inline$$Test_fresh_guid$1$anon22_correct))) (let ((inline$$Test_fresh_guid$1$anon33_Then_correct (=> (and ($DebugTrackLocal 3 1238 19 inline$$Test_fresh_guid$1$$ret0@1) (= (ControlFlow 0 23665) 23651)) inline$$Test_fresh_guid$1$anon22_correct))) (let ((inline$$Test_fresh_guid$1$anon20$1_correct (=> (and (and (and (is-Vector inline$$CopyOrMoveValue$22$local@0) (let ((va@@17 (|v#Vector| inline$$CopyOrMoveValue$22$local@0))) (let ((l@@17 (|l#ValueArray| va@@17))) (and (<= 0 l@@17) (forall ((x@@17 Int) ) (! (=> (or (< x@@17 0) (>= x@@17 l@@17)) (= (|Select_[$int]Value| (|v#ValueArray| va@@17) x@@17) DefaultValue)) :qid |outputbp.826:21| :skolemid |17| :pattern ( (|Select_[$int]Value| (|v#ValueArray| va@@17) x@@17)) )))))) (forall (($$0@@5 Int) ) (! (=> (and (>= $$0@@5 0) (< $$0@@5 (|l#ValueArray| (|v#Vector| inline$$CopyOrMoveValue$22$local@0)))) (and (and (is-Integer (|Select_[$int]Value| (|v#ValueArray| (|v#Vector| inline$$CopyOrMoveValue$22$local@0)) $$0@@5)) (>= (|i#Integer| (|Select_[$int]Value| (|v#ValueArray| (|v#Vector| inline$$CopyOrMoveValue$22$local@0)) $$0@@5)) 0)) (<= (|i#Integer| (|Select_[$int]Value| (|v#ValueArray| (|v#Vector| inline$$CopyOrMoveValue$22$local@0)) $$0@@5)) MAX_U8))) :qid |outputbp.1823:52| :skolemid |43| :pattern ( (|Select_[$int]Value| (|v#ValueArray| (|v#Vector| inline$$CopyOrMoveValue$22$local@0)) $$0@@5)) ))) (and (= $m@59 (Memory (|Store_[Location]$bool| (|domain#Memory| $m@58) (Local (+ $local_counter@3 18)) true) (|Store_[Location]Value| (|contents#Memory| $m@58) (Local (+ $local_counter@3 18)) inline$$CopyOrMoveValue$22$local@0))) (= inline$$Test_fresh_guid$1$$ret0@1 (|Select_[Location]Value| (|contents#Memory| $m@59) (Local (+ $local_counter@3 18)))))) (and (=> (= (ControlFlow 0 23643) 23665) inline$$Test_fresh_guid$1$anon33_Then_correct) (=> (= (ControlFlow 0 23643) 23649) inline$$Test_fresh_guid$1$anon33_Else_correct))))) (let ((inline$$CopyOrMoveValue$22$Entry_correct (=> (and (= inline$$CopyOrMoveValue$22$local@0 (|Select_[Location]Value| (|contents#Memory| $m@58) (Local (+ $local_counter@3 2)))) (= (ControlFlow 0 23563) 23643)) inline$$Test_fresh_guid$1$anon20$1_correct))) (let ((inline$$Test_fresh_guid$1$anon32_Else_correct (=> (and (not true) (= (ControlFlow 0 23532) 23563)) inline$$CopyOrMoveValue$22$Entry_correct))) (let ((inline$$Test_fresh_guid$1$anon32_Then_correct (=> (and ($DebugTrackLocal 3 1189 0 ($ReadValue_stratified (|p#Reference| inline$$BorrowLoc$3$dst@1) (|Select_[Location]Value| (|contents#Memory| $m@58) (|l#Reference| inline$$BorrowLoc$3$dst@1)))) (= (ControlFlow 0 23683) 23563)) inline$$CopyOrMoveValue$22$Entry_correct))) (let ((inline$$Test_fresh_guid$1$anon31_Else_correct (=> (not $abort_flag@3) (and (=> (= (ControlFlow 0 23526) 23683) inline$$Test_fresh_guid$1$anon32_Then_correct) (=> (= (ControlFlow 0 23526) 23532) inline$$Test_fresh_guid$1$anon32_Else_correct))))) (let ((inline$$WriteRef$4$anon0_correct (=> (and (and (= inline$$WriteRef$4$l@1 (|l#Reference| inline$$BorrowLoc$4$dst@1)) (= inline$$WriteRef$4$v@1 (|Select_[Location]Value| (|contents#Memory| $m@57) inline$$WriteRef$4$l@1))) (and (= inline$$WriteRef$4$v@2 ($UpdateValue_stratified (|p#Reference| inline$$BorrowLoc$4$dst@1) inline$$WriteRef$4$v@1 inline$$WriteRef$4$new_v@0)) (= $m@58 (Memory (|domain#Memory| $m@57) (|Store_[Location]Value| (|contents#Memory| $m@57) inline$$WriteRef$4$l@1 inline$$WriteRef$4$v@2))))) (and (=> (= (ControlFlow 0 23508) 23693) inline$$Test_fresh_guid$1$anon31_Then_correct) (=> (= (ControlFlow 0 23508) 23526) inline$$Test_fresh_guid$1$anon31_Else_correct))))) (let ((inline$$WriteRef$4$Entry_correct (=> (and (= inline$$WriteRef$4$new_v@0 (Vector (let ((l2 (|l#ValueArray| (|v#Vector| inline$$Vector_append$2$other@0)))) (let ((l1 (|l#ValueArray| (|v#Vector| inline$$Vector_append$2$v@1)))) (ValueArray (|lambda#2| 0 (+ l1 l2) l1 (|v#ValueArray| (|v#Vector| inline$$Vector_append$2$v@1)) (|v#ValueArray| (|v#Vector| inline$$Vector_append$2$other@0)) l1 DefaultValue) (+ l1 l2)))))) (= (ControlFlow 0 23468) 23508)) inline$$WriteRef$4$anon0_correct))) (let ((inline$$Vector_append$2$anon0_correct (=> (and (and (= inline$$Vector_append$2$v@1 ($ReadValue_stratified (|p#Reference| inline$$BorrowLoc$4$dst@1) (|Select_[Location]Value| (|contents#Memory| $m@57) (|l#Reference| inline$$BorrowLoc$4$dst@1)))) (is-Vector inline$$Vector_append$2$v@1)) (and (is-Vector inline$$Vector_append$2$other@0) (= (ControlFlow 0 23512) 23468))) inline$$WriteRef$4$Entry_correct))) (let ((inline$$Vector_append$2$Entry_correct (=> (= inline$$Vector_append$2$ta@0 IntegerType) (=> (and (= inline$$Vector_append$2$other@0 (|Select_[Location]Value| (|contents#Memory| $m@57) (Local (+ $local_counter@3 17)))) (= (ControlFlow 0 23378) 23512)) inline$$Vector_append$2$anon0_correct)))) (let ((inline$$Test_fresh_guid$1$anon16$2_correct (=> (and (and (and (is-Vector inline$$CopyOrMoveValue$21$local@0) (let ((va@@18 (|v#Vector| inline$$CopyOrMoveValue$21$local@0))) (let ((l@@18 (|l#ValueArray| va@@18))) (and (<= 0 l@@18) (forall ((x@@18 Int) ) (! (=> (or (< x@@18 0) (>= x@@18 l@@18)) (= (|Select_[$int]Value| (|v#ValueArray| va@@18) x@@18) DefaultValue)) :qid |outputbp.826:21| :skolemid |17| :pattern ( (|Select_[$int]Value| (|v#ValueArray| va@@18) x@@18)) )))))) (forall (($$0@@6 Int) ) (! (=> (and (>= $$0@@6 0) (< $$0@@6 (|l#ValueArray| (|v#Vector| inline$$CopyOrMoveValue$21$local@0)))) (and (and (is-Integer (|Select_[$int]Value| (|v#ValueArray| (|v#Vector| inline$$CopyOrMoveValue$21$local@0)) $$0@@6)) (>= (|i#Integer| (|Select_[$int]Value| (|v#ValueArray| (|v#Vector| inline$$CopyOrMoveValue$21$local@0)) $$0@@6)) 0)) (<= (|i#Integer| (|Select_[$int]Value| (|v#ValueArray| (|v#Vector| inline$$CopyOrMoveValue$21$local@0)) $$0@@6)) MAX_U8))) :qid |outputbp.1809:52| :skolemid |42| :pattern ( (|Select_[$int]Value| (|v#ValueArray| (|v#Vector| inline$$CopyOrMoveValue$21$local@0)) $$0@@6)) ))) (and (= $m@57 (Memory (|Store_[Location]$bool| (|domain#Memory| $m@56) (Local (+ $local_counter@3 17)) true) (|Store_[Location]Value| (|contents#Memory| $m@56) (Local (+ $local_counter@3 17)) inline$$CopyOrMoveValue$21$local@0))) (= (ControlFlow 0 23518) 23378))) inline$$Vector_append$2$Entry_correct))) (let ((inline$$CopyOrMoveValue$21$Entry_correct (=> (and (= inline$$CopyOrMoveValue$21$local@0 (|Select_[Location]Value| (|contents#Memory| $m@56) (Local (+ $local_counter@3 3)))) (= (ControlFlow 0 23242) 23518)) inline$$Test_fresh_guid$1$anon16$2_correct))) (let ((inline$$Test_fresh_guid$1$anon16$1_correct (=> (and (and (and (is-Vector ($ReadValue_stratified (|p#Reference| inline$$BorrowLoc$4$dst@1) (|Select_[Location]Value| (|contents#Memory| $m@56) (|l#Reference| inline$$BorrowLoc$4$dst@1)))) (let ((va@@19 (|v#Vector| ($ReadValue_stratified (|p#Reference| inline$$BorrowLoc$4$dst@1) (|Select_[Location]Value| (|contents#Memory| $m@56) (|l#Reference| inline$$BorrowLoc$4$dst@1)))))) (let ((l@@19 (|l#ValueArray| va@@19))) (and (<= 0 l@@19) (forall ((x@@19 Int) ) (! (=> (or (< x@@19 0) (>= x@@19 l@@19)) (= (|Select_[$int]Value| (|v#ValueArray| va@@19) x@@19) DefaultValue)) :qid |outputbp.826:21| :skolemid |17| :pattern ( (|Select_[$int]Value| (|v#ValueArray| va@@19) x@@19)) )))))) (forall (($$1 Int) ) (! (=> (and (>= $$1 0) (< $$1 (|l#ValueArray| (|v#Vector| ($ReadValue_stratified (|p#Reference| inline$$BorrowLoc$4$dst@1) (|Select_[Location]Value| (|contents#Memory| $m@56) (|l#Reference| inline$$BorrowLoc$4$dst@1))))))) (and (and (is-Integer (|Select_[$int]Value| (|v#ValueArray| (|v#Vector| ($ReadValue_stratified (|p#Reference| inline$$BorrowLoc$4$dst@1) (|Select_[Location]Value| (|contents#Memory| $m@56) (|l#Reference| inline$$BorrowLoc$4$dst@1))))) $$1)) (>= (|i#Integer| (|Select_[$int]Value| (|v#ValueArray| (|v#Vector| ($ReadValue_stratified (|p#Reference| inline$$BorrowLoc$4$dst@1) (|Select_[Location]Value| (|contents#Memory| $m@56) (|l#Reference| inline$$BorrowLoc$4$dst@1))))) $$1)) 0)) (<= (|i#Integer| (|Select_[$int]Value| (|v#ValueArray| (|v#Vector| ($ReadValue_stratified (|p#Reference| inline$$BorrowLoc$4$dst@1) (|Select_[Location]Value| (|contents#Memory| $m@56) (|l#Reference| inline$$BorrowLoc$4$dst@1))))) $$1)) MAX_U8))) :qid |outputbp.1805:70| :skolemid |41| :pattern ( (|Select_[$int]Value| (|v#ValueArray| (|v#Vector| ($ReadValue_stratified (|p#Reference| inline$$BorrowLoc$4$dst@1) (|Select_[Location]Value| (|contents#Memory| $m@56) (|l#Reference| inline$$BorrowLoc$4$dst@1))))) $$1)) ))) (= (ControlFlow 0 23252) 23242)) inline$$CopyOrMoveValue$21$Entry_correct))) (let ((inline$$BorrowLoc$4$anon0_correct (=> (and (= inline$$BorrowLoc$4$dst@1 (Reference (Local inline$$BorrowLoc$4$l@0) EmptyPath)) (= (ControlFlow 0 23143) 23252)) inline$$Test_fresh_guid$1$anon16$1_correct))) (let ((inline$$BorrowLoc$4$Entry_correct (=> (and (= inline$$BorrowLoc$4$l@0 (+ $local_counter@3 2)) (= (ControlFlow 0 23133) 23143)) inline$$BorrowLoc$4$anon0_correct))) (let ((inline$$Test_fresh_guid$1$anon30_Else_correct (=> (and (not true) (= (ControlFlow 0 23100) 23133)) inline$$BorrowLoc$4$Entry_correct))) (let ((inline$$Test_fresh_guid$1$anon30_Then_correct (=> (and ($DebugTrackLocal 3 1133 0 ($ReadValue_stratified (|p#Reference| inline$$BorrowLoc$3$dst@1) (|Select_[Location]Value| (|contents#Memory| $m@56) (|l#Reference| inline$$BorrowLoc$3$dst@1)))) (= (ControlFlow 0 23719) 23133)) inline$$BorrowLoc$4$Entry_correct))) (let ((inline$$WriteRef$3$anon0_correct (=> (and (and (= inline$$WriteRef$3$l@1 (|l#Reference| inline$$BorrowField$5$dst@1)) (= inline$$WriteRef$3$v@1 (|Select_[Location]Value| (|contents#Memory| $m@55) inline$$WriteRef$3$l@1))) (and (= inline$$WriteRef$3$v@2 ($UpdateValue_stratified (|p#Reference| inline$$BorrowField$5$dst@1) inline$$WriteRef$3$v@1 inline$$WriteRef$3$new_v@0)) (= $m@56 (Memory (|domain#Memory| $m@55) (|Store_[Location]Value| (|contents#Memory| $m@55) inline$$WriteRef$3$l@1 inline$$WriteRef$3$v@2))))) (and (=> (= (ControlFlow 0 23088) 23719) inline$$Test_fresh_guid$1$anon30_Then_correct) (=> (= (ControlFlow 0 23088) 23100) inline$$Test_fresh_guid$1$anon30_Else_correct))))) (let ((inline$$WriteRef$3$Entry_correct (=> (and (= inline$$WriteRef$3$new_v@0 (|Select_[Location]Value| (|contents#Memory| $m@55) (Local (+ $local_counter@3 13)))) (= (ControlFlow 0 23048) 23088)) inline$$WriteRef$3$anon0_correct))) (let ((inline$$Test_fresh_guid$1$anon29_Else$2_correct (=> (and (and (and (is-Integer ($ReadValue_stratified (|p#Reference| inline$$BorrowField$5$dst@1) (|Select_[Location]Value| (|contents#Memory| $m@55) (|l#Reference| inline$$BorrowField$5$dst@1)))) (>= (|i#Integer| ($ReadValue_stratified (|p#Reference| inline$$BorrowField$5$dst@1) (|Select_[Location]Value| (|contents#Memory| $m@55) (|l#Reference| inline$$BorrowField$5$dst@1)))) 0)) (<= (|i#Integer| ($ReadValue_stratified (|p#Reference| inline$$BorrowField$5$dst@1) (|Select_[Location]Value| (|contents#Memory| $m@55) (|l#Reference| inline$$BorrowField$5$dst@1)))) MAX_U64)) (= (ControlFlow 0 23092) 23048)) inline$$WriteRef$3$Entry_correct))) (let ((inline$$BorrowField$5$anon0_correct (=> (= inline$$BorrowField$5$p@1 (|p#Reference| inline$$BorrowLoc$3$dst@1)) (=> (and (and (= inline$$BorrowField$5$size@1 (|size#Path| inline$$BorrowField$5$p@1)) (= inline$$BorrowField$5$p@2 (Path (|Store_[$int]$int| (|p#Path| inline$$BorrowField$5$p@1) inline$$BorrowField$5$size@1 $Test_EventHandleGenerator_counter) (+ inline$$BorrowField$5$size@1 1)))) (and (= inline$$BorrowField$5$dst@1 (Reference (|l#Reference| inline$$BorrowLoc$3$dst@1) inline$$BorrowField$5$p@2)) (= (ControlFlow 0 22954) 23092))) inline$$Test_fresh_guid$1$anon29_Else$2_correct)))) (let ((inline$$Test_fresh_guid$1$anon29_Else_correct (=> (not $abort_flag@3) (=> (and (= $m@55 (Memory (|Store_[Location]$bool| (|domain#Memory| $m@54) (Local (+ $local_counter@3 13)) true) (|Store_[Location]Value| (|contents#Memory| $m@54) (Local (+ $local_counter@3 13)) inline$$AddU64$1$dst@2))) (= (ControlFlow 0 22854) 22954)) inline$$BorrowField$5$anon0_correct)))) (let ((inline$$AddU64$1$anon3_Else_correct (=> (and (and (>= MAX_U64 (+ (|i#Integer| inline$$AddU64$1$src1@0) (|i#Integer| inline$$AddU64$1$src2@0))) (= inline$$AddU64$1$dst@1 (Integer (+ (|i#Integer| inline$$AddU64$1$src1@0) (|i#Integer| inline$$AddU64$1$src2@0))))) (and (= $abort_flag@3 $abort_flag@2) (= inline$$AddU64$1$dst@2 inline$$AddU64$1$dst@1))) (and (=> (= (ControlFlow 0 22779) 23729) inline$$Test_fresh_guid$1$anon29_Then_correct) (=> (= (ControlFlow 0 22779) 22854) inline$$Test_fresh_guid$1$anon29_Else_correct))))) (let ((inline$$AddU64$1$anon3_Then_correct (=> (> (+ (|i#Integer| inline$$AddU64$1$src1@0) (|i#Integer| inline$$AddU64$1$src2@0)) MAX_U64) (=> (and (= $abort_flag@3 true) (= inline$$AddU64$1$dst@2 inline$$AddU64$1$dst@0)) (and (=> (= (ControlFlow 0 22797) 23729) inline$$Test_fresh_guid$1$anon29_Then_correct) (=> (= (ControlFlow 0 22797) 22854) inline$$Test_fresh_guid$1$anon29_Else_correct)))))) (let ((inline$$AddU64$1$Entry_correct (=> (and (= inline$$AddU64$1$src1@0 (|Select_[Location]Value| (|contents#Memory| $m@54) (Local (+ $local_counter@3 11)))) (= inline$$AddU64$1$src2@0 (|Select_[Location]Value| (|contents#Memory| $m@54) (Local (+ $local_counter@3 12))))) (and (=> (= (ControlFlow 0 22749) (- 0 33788)) true) (and (=> (= (ControlFlow 0 22749) 22797) inline$$AddU64$1$anon3_Then_correct) (=> (= (ControlFlow 0 22749) 22779) inline$$AddU64$1$anon3_Else_correct)))))) (let ((inline$$Test_fresh_guid$1$anon12$3_correct (=> (and (and (and (is-Integer inline$$CopyOrMoveValue$20$local@0) (>= (|i#Integer| inline$$CopyOrMoveValue$20$local@0) 0)) (<= (|i#Integer| inline$$CopyOrMoveValue$20$local@0) MAX_U64)) (and (and (= $m@53 (Memory (|Store_[Location]$bool| (|domain#Memory| $m@52) (Local (+ $local_counter@3 11)) true) (|Store_[Location]Value| (|contents#Memory| $m@52) (Local (+ $local_counter@3 11)) inline$$CopyOrMoveValue$20$local@0))) (= inline$$Test_fresh_guid$1$$tmp@1 (Integer 1))) (and (= $m@54 (Memory (|Store_[Location]$bool| (|domain#Memory| $m@53) (Local (+ $local_counter@3 12)) true) (|Store_[Location]Value| (|contents#Memory| $m@53) (Local (+ $local_counter@3 12)) inline$$Test_fresh_guid$1$$tmp@1))) (= (ControlFlow 0 22803) 22749)))) inline$$AddU64$1$Entry_correct))) (let ((inline$$CopyOrMoveValue$20$Entry_correct (=> (and (= inline$$CopyOrMoveValue$20$local@0 (|Select_[Location]Value| (|contents#Memory| $m@52) (Local (+ $local_counter@3 10)))) (= (ControlFlow 0 22607) 22803)) inline$$Test_fresh_guid$1$anon12$3_correct))) (let ((inline$$Test_fresh_guid$1$anon12$2_correct (=> (and (and (and (is-Integer inline$$ReadRef$3$v@1) (>= (|i#Integer| inline$$ReadRef$3$v@1) 0)) (<= (|i#Integer| inline$$ReadRef$3$v@1) MAX_U64)) (and (= $m@52 (Memory (|Store_[Location]$bool| (|domain#Memory| $m@51) (Local (+ $local_counter@3 10)) true) (|Store_[Location]Value| (|contents#Memory| $m@51) (Local (+ $local_counter@3 10)) inline$$ReadRef$3$v@1))) (= (ControlFlow 0 22617) 22607))) inline$$CopyOrMoveValue$20$Entry_correct))) (let ((inline$$ReadRef$3$anon0_correct (=> (and (= inline$$ReadRef$3$v@1 ($ReadValue_stratified (|p#Reference| inline$$BorrowField$4$dst@1) (|Select_[Location]Value| (|contents#Memory| $m@51) (|l#Reference| inline$$BorrowField$4$dst@1)))) (= (ControlFlow 0 22546) 22617)) inline$$Test_fresh_guid$1$anon12$2_correct))) (let ((inline$$BorrowField$4$anon0_correct (=> (= inline$$BorrowField$4$p@1 (|p#Reference| inline$$BorrowLoc$3$dst@1)) (=> (and (and (= inline$$BorrowField$4$size@1 (|size#Path| inline$$BorrowField$4$p@1)) (= inline$$BorrowField$4$p@2 (Path (|Store_[$int]$int| (|p#Path| inline$$BorrowField$4$p@1) inline$$BorrowField$4$size@1 $Test_EventHandleGenerator_counter) (+ inline$$BorrowField$4$size@1 1)))) (and (= inline$$BorrowField$4$dst@1 (Reference (|l#Reference| inline$$BorrowLoc$3$dst@1) inline$$BorrowField$4$p@2)) (= (ControlFlow 0 22486) 22546))) inline$$ReadRef$3$anon0_correct)))) (let ((inline$$Test_fresh_guid$1$anon28_Else_correct (=> (and (not true) (= (ControlFlow 0 22317) 22486)) inline$$BorrowField$4$anon0_correct))) (let ((inline$$Test_fresh_guid$1$anon28_Then_correct (=> (and ($DebugTrackLocal 3 1078 2 inline$$CopyOrMoveValue$19$local@0) (= (ControlFlow 0 23743) 22486)) inline$$BorrowField$4$anon0_correct))) (let ((inline$$Test_fresh_guid$1$anon27_Else$1_correct (=> (and (and (and (is-Vector inline$$CopyOrMoveValue$19$local@0) (let ((va@@20 (|v#Vector| inline$$CopyOrMoveValue$19$local@0))) (let ((l@@20 (|l#ValueArray| va@@20))) (and (<= 0 l@@20) (forall ((x@@20 Int) ) (! (=> (or (< x@@20 0) (>= x@@20 l@@20)) (= (|Select_[$int]Value| (|v#ValueArray| va@@20) x@@20) DefaultValue)) :qid |outputbp.826:21| :skolemid |17| :pattern ( (|Select_[$int]Value| (|v#ValueArray| va@@20) x@@20)) )))))) (forall (($$0@@7 Int) ) (! (=> (and (>= $$0@@7 0) (< $$0@@7 (|l#ValueArray| (|v#Vector| inline$$CopyOrMoveValue$19$local@0)))) (and (and (is-Integer (|Select_[$int]Value| (|v#ValueArray| (|v#Vector| inline$$CopyOrMoveValue$19$local@0)) $$0@@7)) (>= (|i#Integer| (|Select_[$int]Value| (|v#ValueArray| (|v#Vector| inline$$CopyOrMoveValue$19$local@0)) $$0@@7)) 0)) (<= (|i#Integer| (|Select_[$int]Value| (|v#ValueArray| (|v#Vector| inline$$CopyOrMoveValue$19$local@0)) $$0@@7)) MAX_U8))) :qid |outputbp.1762:52| :skolemid |40| :pattern ( (|Select_[$int]Value| (|v#ValueArray| (|v#Vector| inline$$CopyOrMoveValue$19$local@0)) $$0@@7)) ))) (= $m@51 (Memory (|Store_[Location]$bool| (|domain#Memory| $m@50) (Local (+ $local_counter@3 2)) true) (|Store_[Location]Value| (|contents#Memory| $m@50) (Local (+ $local_counter@3 2)) inline$$CopyOrMoveValue$19$local@0)))) (and (=> (= (ControlFlow 0 22311) 23743) inline$$Test_fresh_guid$1$anon28_Then_correct) (=> (= (ControlFlow 0 22311) 22317) inline$$Test_fresh_guid$1$anon28_Else_correct))))) (let ((inline$$CopyOrMoveValue$19$Entry_correct (=> (and (= inline$$CopyOrMoveValue$19$local@0 (|Select_[Location]Value| (|contents#Memory| $m@50) (Local (+ $local_counter@3 8)))) (= (ControlFlow 0 22241) 22311)) inline$$Test_fresh_guid$1$anon27_Else$1_correct))) (let ((inline$$Test_fresh_guid$1$anon27_Else_correct (=> (not $abort_flag@2) (=> (and (and (and (is-Vector call2formal@res@0) (let ((va@@21 (|v#Vector| call2formal@res@0))) (let ((l@@21 (|l#ValueArray| va@@21))) (and (<= 0 l@@21) (forall ((x@@21 Int) ) (! (=> (or (< x@@21 0) (>= x@@21 l@@21)) (= (|Select_[$int]Value| (|v#ValueArray| va@@21) x@@21) DefaultValue)) :qid |outputbp.826:21| :skolemid |17| :pattern ( (|Select_[$int]Value| (|v#ValueArray| va@@21) x@@21)) )))))) (forall (($$0@@8 Int) ) (! (=> (and (>= $$0@@8 0) (< $$0@@8 (|l#ValueArray| (|v#Vector| call2formal@res@0)))) (and (and (is-Integer (|Select_[$int]Value| (|v#ValueArray| (|v#Vector| call2formal@res@0)) $$0@@8)) (>= (|i#Integer| (|Select_[$int]Value| (|v#ValueArray| (|v#Vector| call2formal@res@0)) $$0@@8)) 0)) (<= (|i#Integer| (|Select_[$int]Value| (|v#ValueArray| (|v#Vector| call2formal@res@0)) $$0@@8)) MAX_U8))) :qid |outputbp.1756:51| :skolemid |39| :pattern ( (|Select_[$int]Value| (|v#ValueArray| (|v#Vector| call2formal@res@0)) $$0@@8)) ))) (and (= $m@50 (Memory (|Store_[Location]$bool| (|domain#Memory| $m@49) (Local (+ $local_counter@3 8)) true) (|Store_[Location]Value| (|contents#Memory| $m@49) (Local (+ $local_counter@3 8)) call2formal@res@0))) (= (ControlFlow 0 22251) 22241))) inline$$CopyOrMoveValue$19$Entry_correct)))) (let ((inline$$Test_fresh_guid$1$anon8$2_correct (=> (and (and (and (and (is-Integer inline$$ReadRef$2$v@1) (>= (|i#Integer| inline$$ReadRef$2$v@1) 0)) (<= (|i#Integer| inline$$ReadRef$2$v@1) MAX_U64)) (and (and (= $m@49 (Memory (|Store_[Location]$bool| (|domain#Memory| $m@48) (Local (+ $local_counter@3 7)) true) (|Store_[Location]Value| (|contents#Memory| $m@48) (Local (+ $local_counter@3 7)) inline$$ReadRef$2$v@1))) (= call0formal@ta@0 IntegerType)) (and (= call1formal@v@0 (|Select_[Location]Value| (|contents#Memory| $m@49) (Local (+ $local_counter@3 7)))) (= call2formal@res@0 ($BCS_serialize_core call1formal@v@0))))) (and (and (and (is-Vector call2formal@res@0) (let ((va@@22 (|v#Vector| call2formal@res@0))) (let ((l@@22 (|l#ValueArray| va@@22))) (and (<= 0 l@@22) (forall ((x@@22 Int) ) (! (=> (or (< x@@22 0) (>= x@@22 l@@22)) (= (|Select_[$int]Value| (|v#ValueArray| va@@22) x@@22) DefaultValue)) :qid |outputbp.826:21| :skolemid |17| :pattern ( (|Select_[$int]Value| (|v#ValueArray| va@@22) x@@22)) )))))) (forall ((i@@6 Int) ) (! (=> (and (<= 0 i@@6) (< i@@6 (|l#ValueArray| (|v#Vector| call2formal@res@0)))) (and (and (is-Integer (|Select_[$int]Value| (|v#ValueArray| (|v#Vector| call2formal@res@0)) i@@6)) (>= (|i#Integer| (|Select_[$int]Value| (|v#ValueArray| (|v#Vector| call2formal@res@0)) i@@6)) 0)) (<= (|i#Integer| (|Select_[$int]Value| (|v#ValueArray| (|v#Vector| call2formal@res@0)) i@@6)) MAX_U8))) :qid |outputbp.131:14| :skolemid |2| :pattern ( (|Select_[$int]Value| (|v#ValueArray| (|v#Vector| call2formal@res@0)) i@@6)) ))) (> (|l#ValueArray| (|v#Vector| call2formal@res@0)) 0))) (and (=> (= (ControlFlow 0 22148) 23753) inline$$Test_fresh_guid$1$anon27_Then_correct) (=> (= (ControlFlow 0 22148) 22251) inline$$Test_fresh_guid$1$anon27_Else_correct))))) (let ((inline$$ReadRef$2$anon0_correct (=> (and (= inline$$ReadRef$2$v@1 ($ReadValue_stratified (|p#Reference| inline$$BorrowField$3$dst@1) (|Select_[Location]Value| (|contents#Memory| $m@48) (|l#Reference| inline$$BorrowField$3$dst@1)))) (= (ControlFlow 0 22116) 22148)) inline$$Test_fresh_guid$1$anon8$2_correct))) (let ((inline$$BorrowField$3$anon0_correct (=> (= inline$$BorrowField$3$p@1 (|p#Reference| inline$$BorrowLoc$3$dst@1)) (=> (and (and (= inline$$BorrowField$3$size@1 (|size#Path| inline$$BorrowField$3$p@1)) (= inline$$BorrowField$3$p@2 (Path (|Store_[$int]$int| (|p#Path| inline$$BorrowField$3$p@1) inline$$BorrowField$3$size@1 $Test_EventHandleGenerator_counter) (+ inline$$BorrowField$3$size@1 1)))) (and (= inline$$BorrowField$3$dst@1 (Reference (|l#Reference| inline$$BorrowLoc$3$dst@1) inline$$BorrowField$3$p@2)) (= (ControlFlow 0 22056) 22116))) inline$$ReadRef$2$anon0_correct)))) (let ((inline$$Test_fresh_guid$1$anon26_Else_correct (=> (and (not true) (= (ControlFlow 0 21887) 22056)) inline$$BorrowField$3$anon0_correct))) (let ((inline$$Test_fresh_guid$1$anon26_Then_correct (=> (and ($DebugTrackLocal 3 1027 3 inline$$CopyOrMoveValue$18$local@0) (= (ControlFlow 0 23767) 22056)) inline$$BorrowField$3$anon0_correct))) (let ((inline$$Test_fresh_guid$1$anon25_Else$1_correct (=> (and (and (and (is-Vector inline$$CopyOrMoveValue$18$local@0) (let ((va@@23 (|v#Vector| inline$$CopyOrMoveValue$18$local@0))) (let ((l@@23 (|l#ValueArray| va@@23))) (and (<= 0 l@@23) (forall ((x@@23 Int) ) (! (=> (or (< x@@23 0) (>= x@@23 l@@23)) (= (|Select_[$int]Value| (|v#ValueArray| va@@23) x@@23) DefaultValue)) :qid |outputbp.826:21| :skolemid |17| :pattern ( (|Select_[$int]Value| (|v#ValueArray| va@@23) x@@23)) )))))) (forall (($$0@@9 Int) ) (! (=> (and (>= $$0@@9 0) (< $$0@@9 (|l#ValueArray| (|v#Vector| inline$$CopyOrMoveValue$18$local@0)))) (and (and (is-Integer (|Select_[$int]Value| (|v#ValueArray| (|v#Vector| inline$$CopyOrMoveValue$18$local@0)) $$0@@9)) (>= (|i#Integer| (|Select_[$int]Value| (|v#ValueArray| (|v#Vector| inline$$CopyOrMoveValue$18$local@0)) $$0@@9)) 0)) (<= (|i#Integer| (|Select_[$int]Value| (|v#ValueArray| (|v#Vector| inline$$CopyOrMoveValue$18$local@0)) $$0@@9)) MAX_U8))) :qid |outputbp.1738:52| :skolemid |38| :pattern ( (|Select_[$int]Value| (|v#ValueArray| (|v#Vector| inline$$CopyOrMoveValue$18$local@0)) $$0@@9)) ))) (= $m@48 (Memory (|Store_[Location]$bool| (|domain#Memory| $m@47) (Local (+ $local_counter@3 3)) true) (|Store_[Location]Value| (|contents#Memory| $m@47) (Local (+ $local_counter@3 3)) inline$$CopyOrMoveValue$18$local@0)))) (and (=> (= (ControlFlow 0 21881) 23767) inline$$Test_fresh_guid$1$anon26_Then_correct) (=> (= (ControlFlow 0 21881) 21887) inline$$Test_fresh_guid$1$anon26_Else_correct))))) (let ((inline$$CopyOrMoveValue$18$Entry_correct (=> (and (= inline$$CopyOrMoveValue$18$local@0 (|Select_[Location]Value| (|contents#Memory| $m@47) (Local (+ $local_counter@3 5)))) (= (ControlFlow 0 21811) 21881)) inline$$Test_fresh_guid$1$anon25_Else$1_correct))) (let ((inline$$Test_fresh_guid$1$anon25_Else_correct (=> (not $abort_flag@2) (=> (and (and (and (is-Vector call2formal@res@0@@0) (let ((va@@24 (|v#Vector| call2formal@res@0@@0))) (let ((l@@24 (|l#ValueArray| va@@24))) (and (<= 0 l@@24) (forall ((x@@24 Int) ) (! (=> (or (< x@@24 0) (>= x@@24 l@@24)) (= (|Select_[$int]Value| (|v#ValueArray| va@@24) x@@24) DefaultValue)) :qid |outputbp.826:21| :skolemid |17| :pattern ( (|Select_[$int]Value| (|v#ValueArray| va@@24) x@@24)) )))))) (forall (($$0@@10 Int) ) (! (=> (and (>= $$0@@10 0) (< $$0@@10 (|l#ValueArray| (|v#Vector| call2formal@res@0@@0)))) (and (and (is-Integer (|Select_[$int]Value| (|v#ValueArray| (|v#Vector| call2formal@res@0@@0)) $$0@@10)) (>= (|i#Integer| (|Select_[$int]Value| (|v#ValueArray| (|v#Vector| call2formal@res@0@@0)) $$0@@10)) 0)) (<= (|i#Integer| (|Select_[$int]Value| (|v#ValueArray| (|v#Vector| call2formal@res@0@@0)) $$0@@10)) MAX_U8))) :qid |outputbp.1732:51| :skolemid |37| :pattern ( (|Select_[$int]Value| (|v#ValueArray| (|v#Vector| call2formal@res@0@@0)) $$0@@10)) ))) (and (= $m@47 (Memory (|Store_[Location]$bool| (|domain#Memory| $m@46) (Local (+ $local_counter@3 5)) true) (|Store_[Location]Value| (|contents#Memory| $m@46) (Local (+ $local_counter@3 5)) call2formal@res@0@@0))) (= (ControlFlow 0 21821) 21811))) inline$$CopyOrMoveValue$18$Entry_correct)))) (let ((inline$$Test_fresh_guid$1$anon4$1_correct (=> (is-Address inline$$CopyOrMoveValue$17$local@0) (=> (and (and (= $m@46 (Memory (|Store_[Location]$bool| (|domain#Memory| $m@45) (Local (+ $local_counter@3 4)) true) (|Store_[Location]Value| (|contents#Memory| $m@45) (Local (+ $local_counter@3 4)) inline$$CopyOrMoveValue$17$local@0))) (= call0formal@ta@0@@0 AddressType)) (and (= call1formal@v@0@@0 (|Select_[Location]Value| (|contents#Memory| $m@46) (Local (+ $local_counter@3 4)))) (= call2formal@res@0@@0 ($BCS_serialize_core call1formal@v@0@@0)))) (=> (and (and (and (is-Vector call2formal@res@0@@0) (let ((va@@25 (|v#Vector| call2formal@res@0@@0))) (let ((l@@25 (|l#ValueArray| va@@25))) (and (<= 0 l@@25) (forall ((x@@25 Int) ) (! (=> (or (< x@@25 0) (>= x@@25 l@@25)) (= (|Select_[$int]Value| (|v#ValueArray| va@@25) x@@25) DefaultValue)) :qid |outputbp.826:21| :skolemid |17| :pattern ( (|Select_[$int]Value| (|v#ValueArray| va@@25) x@@25)) )))))) (forall ((i@@7 Int) ) (! (=> (and (<= 0 i@@7) (< i@@7 (|l#ValueArray| (|v#Vector| call2formal@res@0@@0)))) (and (and (is-Integer (|Select_[$int]Value| (|v#ValueArray| (|v#Vector| call2formal@res@0@@0)) i@@7)) (>= (|i#Integer| (|Select_[$int]Value| (|v#ValueArray| (|v#Vector| call2formal@res@0@@0)) i@@7)) 0)) (<= (|i#Integer| (|Select_[$int]Value| (|v#ValueArray| (|v#Vector| call2formal@res@0@@0)) i@@7)) MAX_U8))) :qid |outputbp.131:14| :skolemid |2| :pattern ( (|Select_[$int]Value| (|v#ValueArray| (|v#Vector| call2formal@res@0@@0)) i@@7)) ))) (> (|l#ValueArray| (|v#Vector| call2formal@res@0@@0)) 0)) (and (=> (= (ControlFlow 0 21718) 23777) inline$$Test_fresh_guid$1$anon25_Then_correct) (=> (= (ControlFlow 0 21718) 21821) inline$$Test_fresh_guid$1$anon25_Else_correct))))))) (let ((inline$$CopyOrMoveValue$17$Entry_correct (=> (and (= inline$$CopyOrMoveValue$17$local@0 (|Select_[Location]Value| (|contents#Memory| $m@45) (Local (+ $local_counter@3 1)))) (= (ControlFlow 0 21690) 21718)) inline$$Test_fresh_guid$1$anon4$1_correct))) (let ((inline$$Test_fresh_guid$1$anon4_correct (=> (and (= $local_counter@4 (+ $local_counter@3 19)) (= (ControlFlow 0 21700) 21690)) inline$$CopyOrMoveValue$17$Entry_correct))) (let ((inline$$Test_fresh_guid$1$anon24_Else_correct (=> (and (not true) (= (ControlFlow 0 21653) 21700)) inline$$Test_fresh_guid$1$anon4_correct))) (let ((inline$$Test_fresh_guid$1$anon24_Then_correct (=> (and ($DebugTrackLocal 3 933 1 inline$$Test_fresh_guid$1$sender@0) (= (ControlFlow 0 23791) 21700)) inline$$Test_fresh_guid$1$anon4_correct))) (let ((inline$$Test_fresh_guid$1$anon2_correct (=> (and (is-Address inline$$Test_fresh_guid$1$sender@0) (= $m@45 (Memory (|Store_[Location]$bool| (|domain#Memory| $m@44) (Local (+ $local_counter@3 1)) true) (|Store_[Location]Value| (|contents#Memory| $m@44) (Local (+ $local_counter@3 1)) inline$$Test_fresh_guid$1$sender@0)))) (and (=> (= (ControlFlow 0 21647) 23791) inline$$Test_fresh_guid$1$anon24_Then_correct) (=> (= (ControlFlow 0 21647) 21653) inline$$Test_fresh_guid$1$anon24_Else_correct))))) (let ((inline$$Test_fresh_guid$1$anon23_Else_correct (=> (and (not true) (= (ControlFlow 0 21629) 21647)) inline$$Test_fresh_guid$1$anon2_correct))) (let ((inline$$Test_fresh_guid$1$anon23_Then_correct (=> (and ($DebugTrackLocal 3 933 0 ($ReadValue_stratified (|p#Reference| inline$$BorrowLoc$3$dst@1) (|Select_[Location]Value| (|contents#Memory| $m@44) (|l#Reference| inline$$BorrowLoc$3$dst@1)))) (= (ControlFlow 0 23809) 21647)) inline$$Test_fresh_guid$1$anon2_correct))) (let ((inline$$Test_fresh_guid$1$anon0_correct (and (=> (= (ControlFlow 0 21623) (- 0 32914)) (not $abort_flag@2)) (=> (not $abort_flag@2) (=> (and (and (and (is-Vector ($ReadValue_stratified (|p#Reference| inline$$BorrowLoc$3$dst@1) (|Select_[Location]Value| (|contents#Memory| $m@44) (|l#Reference| inline$$BorrowLoc$3$dst@1)))) (let ((va@@26 (|v#Vector| ($ReadValue_stratified (|p#Reference| inline$$BorrowLoc$3$dst@1) (|Select_[Location]Value| (|contents#Memory| $m@44) (|l#Reference| inline$$BorrowLoc$3$dst@1)))))) (let ((l@@26 (|l#ValueArray| va@@26))) (and (<= 0 l@@26) (forall ((x@@26 Int) ) (! (=> (or (< x@@26 0) (>= x@@26 l@@26)) (= (|Select_[$int]Value| (|v#ValueArray| va@@26) x@@26) DefaultValue)) :qid |outputbp.826:21| :skolemid |17| :pattern ( (|Select_[$int]Value| (|v#ValueArray| va@@26) x@@26)) )))))) (= (|l#ValueArray| (|v#Vector| ($ReadValue_stratified (|p#Reference| inline$$BorrowLoc$3$dst@1) (|Select_[Location]Value| (|contents#Memory| $m@44) (|l#Reference| inline$$BorrowLoc$3$dst@1))))) 1)) (and (and (is-Integer (|Select_[$int]Value| (|v#ValueArray| (|v#Vector| ($ReadValue_stratified (|p#Reference| inline$$BorrowLoc$3$dst@1) (|Select_[Location]Value| (|contents#Memory| $m@44) (|l#Reference| inline$$BorrowLoc$3$dst@1))))) $Test_EventHandleGenerator_counter)) (>= (|i#Integer| (|Select_[$int]Value| (|v#ValueArray| (|v#Vector| ($ReadValue_stratified (|p#Reference| inline$$BorrowLoc$3$dst@1) (|Select_[Location]Value| (|contents#Memory| $m@44) (|l#Reference| inline$$BorrowLoc$3$dst@1))))) $Test_EventHandleGenerator_counter)) 0)) (<= (|i#Integer| (|Select_[$int]Value| (|v#ValueArray| (|v#Vector| ($ReadValue_stratified (|p#Reference| inline$$BorrowLoc$3$dst@1) (|Select_[Location]Value| (|contents#Memory| $m@44) (|l#Reference| inline$$BorrowLoc$3$dst@1))))) $Test_EventHandleGenerator_counter)) MAX_U64))) (and (=> (= (ControlFlow 0 21623) 23809) inline$$Test_fresh_guid$1$anon23_Then_correct) (=> (= (ControlFlow 0 21623) 21629) inline$$Test_fresh_guid$1$anon23_Else_correct))))))) (let ((inline$$Test_fresh_guid$1$Entry_correct (=> (= inline$$Test_fresh_guid$1$sender@0 (|Select_[Location]Value| (|contents#Memory| $m@44) (Local (+ $local_counter@2 4)))) (and (=> (= (ControlFlow 0 21605) (- 0 32870)) (|Select_[Location]$bool| (|domain#Memory| $m@44) (Global $DiemAccount_T_type_value (|sender#Transaction| $txn)))) (=> (|Select_[Location]$bool| (|domain#Memory| $m@44) (Global $DiemAccount_T_type_value (|sender#Transaction| $txn))) (=> (= (ControlFlow 0 21605) 21623) inline$$Test_fresh_guid$1$anon0_correct)))))) (let ((inline$$Test_new_event_handle_impl$1$anon4$2_correct (=> (is-Address inline$$CopyOrMoveValue$16$local@0) (=> (and (= $m@44 (Memory (|Store_[Location]$bool| (|domain#Memory| $m@43) (Local (+ $local_counter@2 4)) true) (|Store_[Location]Value| (|contents#Memory| $m@43) (Local (+ $local_counter@2 4)) inline$$CopyOrMoveValue$16$local@0))) (= (ControlFlow 0 23937) 21605)) inline$$Test_fresh_guid$1$Entry_correct)))) (let ((inline$$CopyOrMoveValue$16$Entry_correct (=> (and (= inline$$CopyOrMoveValue$16$local@0 (|Select_[Location]Value| (|contents#Memory| $m@43) (Local (+ $local_counter@2 1)))) (= (ControlFlow 0 20400) 23937)) inline$$Test_new_event_handle_impl$1$anon4$2_correct))) (let ((inline$$Test_new_event_handle_impl$1$anon4_correct (=> (and (and (= $local_counter@3 (+ $local_counter@2 7)) (= inline$$Test_new_event_handle_impl$1$$tmp@1 (Integer 0))) (and (= $m@43 (Memory (|Store_[Location]$bool| (|domain#Memory| $m@42) (Local (+ $local_counter@2 2)) true) (|Store_[Location]Value| (|contents#Memory| $m@42) (Local (+ $local_counter@2 2)) inline$$Test_new_event_handle_impl$1$$tmp@1))) (= (ControlFlow 0 20369) 20400))) inline$$CopyOrMoveValue$16$Entry_correct))) (let ((inline$$Test_new_event_handle_impl$1$anon12_Else_correct (=> (and (not true) (= (ControlFlow 0 20314) 20369)) inline$$Test_new_event_handle_impl$1$anon4_correct))) (let ((inline$$Test_new_event_handle_impl$1$anon12_Then_correct (=> (and ($DebugTrackLocal 3 1441 1 inline$$Test_new_event_handle_impl$1$sender@0) (= (ControlFlow 0 24372) 20369)) inline$$Test_new_event_handle_impl$1$anon4_correct))) (let ((inline$$Test_new_event_handle_impl$1$anon2_correct (=> (and (is-Address inline$$Test_new_event_handle_impl$1$sender@0) (= $m@42 (Memory (|Store_[Location]$bool| (|domain#Memory| $m@41) (Local (+ $local_counter@2 1)) true) (|Store_[Location]Value| (|contents#Memory| $m@41) (Local (+ $local_counter@2 1)) inline$$Test_new_event_handle_impl$1$sender@0)))) (and (=> (= (ControlFlow 0 20308) 24372) inline$$Test_new_event_handle_impl$1$anon12_Then_correct) (=> (= (ControlFlow 0 20308) 20314) inline$$Test_new_event_handle_impl$1$anon12_Else_correct))))) (let ((inline$$Test_new_event_handle_impl$1$anon11_Else_correct (=> (and (not true) (= (ControlFlow 0 20290) 20308)) inline$$Test_new_event_handle_impl$1$anon2_correct))) (let ((inline$$Test_new_event_handle_impl$1$anon11_Then_correct (=> (and ($DebugTrackLocal 3 1441 0 ($ReadValue_stratified (|p#Reference| inline$$BorrowLoc$3$dst@1) (|Select_[Location]Value| (|contents#Memory| $m@41) (|l#Reference| inline$$BorrowLoc$3$dst@1)))) (= (ControlFlow 0 24390) 20308)) inline$$Test_new_event_handle_impl$1$anon2_correct))) (let ((inline$$Test_new_event_handle_impl$1$anon0_correct (and (=> (= (ControlFlow 0 20284) (- 0 32706)) (not $abort_flag@2)) (=> (not $abort_flag@2) (=> (and (and (and (is-Vector ($ReadValue_stratified (|p#Reference| inline$$BorrowLoc$3$dst@1) (|Select_[Location]Value| (|contents#Memory| $m@41) (|l#Reference| inline$$BorrowLoc$3$dst@1)))) (let ((va@@27 (|v#Vector| ($ReadValue_stratified (|p#Reference| inline$$BorrowLoc$3$dst@1) (|Select_[Location]Value| (|contents#Memory| $m@41) (|l#Reference| inline$$BorrowLoc$3$dst@1)))))) (let ((l@@27 (|l#ValueArray| va@@27))) (and (<= 0 l@@27) (forall ((x@@27 Int) ) (! (=> (or (< x@@27 0) (>= x@@27 l@@27)) (= (|Select_[$int]Value| (|v#ValueArray| va@@27) x@@27) DefaultValue)) :qid |outputbp.826:21| :skolemid |17| :pattern ( (|Select_[$int]Value| (|v#ValueArray| va@@27) x@@27)) )))))) (= (|l#ValueArray| (|v#Vector| ($ReadValue_stratified (|p#Reference| inline$$BorrowLoc$3$dst@1) (|Select_[Location]Value| (|contents#Memory| $m@41) (|l#Reference| inline$$BorrowLoc$3$dst@1))))) 1)) (and (and (is-Integer (|Select_[$int]Value| (|v#ValueArray| (|v#Vector| ($ReadValue_stratified (|p#Reference| inline$$BorrowLoc$3$dst@1) (|Select_[Location]Value| (|contents#Memory| $m@41) (|l#Reference| inline$$BorrowLoc$3$dst@1))))) $Test_EventHandleGenerator_counter)) (>= (|i#Integer| (|Select_[$int]Value| (|v#ValueArray| (|v#Vector| ($ReadValue_stratified (|p#Reference| inline$$BorrowLoc$3$dst@1) (|Select_[Location]Value| (|contents#Memory| $m@41) (|l#Reference| inline$$BorrowLoc$3$dst@1))))) $Test_EventHandleGenerator_counter)) 0)) (<= (|i#Integer| (|Select_[$int]Value| (|v#ValueArray| (|v#Vector| ($ReadValue_stratified (|p#Reference| inline$$BorrowLoc$3$dst@1) (|Select_[Location]Value| (|contents#Memory| $m@41) (|l#Reference| inline$$BorrowLoc$3$dst@1))))) $Test_EventHandleGenerator_counter)) MAX_U64))) (and (=> (= (ControlFlow 0 20284) 24390) inline$$Test_new_event_handle_impl$1$anon11_Then_correct) (=> (= (ControlFlow 0 20284) 20290) inline$$Test_new_event_handle_impl$1$anon11_Else_correct))))))) (let ((inline$$Test_new_event_handle_impl$1$Entry_correct (=> (and (= inline$$Test_new_event_handle_impl$1$$tv0@0 $Test_Event2_type_value) (= inline$$Test_new_event_handle_impl$1$sender@0 (|Select_[Location]Value| (|contents#Memory| $m@41) (Local (+ 0 22))))) (and (=> (= (ControlFlow 0 20266) (- 0 32677)) (|Select_[Location]$bool| (|domain#Memory| $m@41) (Global $DiemAccount_T_type_value (|sender#Transaction| $txn)))) (=> (|Select_[Location]$bool| (|domain#Memory| $m@41) (Global $DiemAccount_T_type_value (|sender#Transaction| $txn))) (=> (= (ControlFlow 0 20266) 20284) inline$$Test_new_event_handle_impl$1$anon0_correct)))))) (let ((inline$$Test_create$0$anon39_Else$2_correct (=> (is-Address inline$$CopyOrMoveValue$15$local@0) (=> (and (= $m@41 (Memory (|Store_[Location]$bool| (|domain#Memory| $m@40) (Local (+ 0 22)) true) (|Store_[Location]Value| (|contents#Memory| $m@40) (Local (+ 0 22)) inline$$CopyOrMoveValue$15$local@0))) (= (ControlFlow 0 24544) 20266)) inline$$Test_new_event_handle_impl$1$Entry_correct)))) (let ((inline$$CopyOrMoveValue$15$Entry_correct (=> (and (= inline$$CopyOrMoveValue$15$local@0 (|Select_[Location]Value| (|contents#Memory| $m@40) (Local (+ 0 0)))) (= (ControlFlow 0 19670) 24544)) inline$$Test_create$0$anon39_Else$2_correct))) (let ((inline$$Test_create$0$anon39_Else$1_correct (=> (and (and (and (and (is-Vector ($ReadValue_stratified (|p#Reference| inline$$BorrowLoc$3$dst@1) (|Select_[Location]Value| (|contents#Memory| $m@40) (|l#Reference| inline$$BorrowLoc$3$dst@1)))) (let ((va@@28 (|v#Vector| ($ReadValue_stratified (|p#Reference| inline$$BorrowLoc$3$dst@1) (|Select_[Location]Value| (|contents#Memory| $m@40) (|l#Reference| inline$$BorrowLoc$3$dst@1)))))) (let ((l@@28 (|l#ValueArray| va@@28))) (and (<= 0 l@@28) (forall ((x@@28 Int) ) (! (=> (or (< x@@28 0) (>= x@@28 l@@28)) (= (|Select_[$int]Value| (|v#ValueArray| va@@28) x@@28) DefaultValue)) :qid |outputbp.826:21| :skolemid |17| :pattern ( (|Select_[$int]Value| (|v#ValueArray| va@@28) x@@28)) )))))) (= (|l#ValueArray| (|v#Vector| ($ReadValue_stratified (|p#Reference| inline$$BorrowLoc$3$dst@1) (|Select_[Location]Value| (|contents#Memory| $m@40) (|l#Reference| inline$$BorrowLoc$3$dst@1))))) 1)) (and (and (is-Integer (|Select_[$int]Value| (|v#ValueArray| (|v#Vector| ($ReadValue_stratified (|p#Reference| inline$$BorrowLoc$3$dst@1) (|Select_[Location]Value| (|contents#Memory| $m@40) (|l#Reference| inline$$BorrowLoc$3$dst@1))))) $Test_EventHandleGenerator_counter)) (>= (|i#Integer| (|Select_[$int]Value| (|v#ValueArray| (|v#Vector| ($ReadValue_stratified (|p#Reference| inline$$BorrowLoc$3$dst@1) (|Select_[Location]Value| (|contents#Memory| $m@40) (|l#Reference| inline$$BorrowLoc$3$dst@1))))) $Test_EventHandleGenerator_counter)) 0)) (<= (|i#Integer| (|Select_[$int]Value| (|v#ValueArray| (|v#Vector| ($ReadValue_stratified (|p#Reference| inline$$BorrowLoc$3$dst@1) (|Select_[Location]Value| (|contents#Memory| $m@40) (|l#Reference| inline$$BorrowLoc$3$dst@1))))) $Test_EventHandleGenerator_counter)) MAX_U64))) (= (ControlFlow 0 19680) 19670)) inline$$CopyOrMoveValue$15$Entry_correct))) (let ((inline$$BorrowLoc$3$anon0_correct (=> (and (= inline$$BorrowLoc$3$dst@1 (Reference (Local inline$$BorrowLoc$3$l@0) EmptyPath)) (= (ControlFlow 0 19625) 19680)) inline$$Test_create$0$anon39_Else$1_correct))) (let ((inline$$BorrowLoc$3$Entry_correct (=> (and (= inline$$BorrowLoc$3$l@0 (+ 0 3)) (= (ControlFlow 0 19615) 19625)) inline$$BorrowLoc$3$anon0_correct))) (let ((inline$$Test_create$0$anon39_Else_correct (=> (not $abort_flag@2) (=> (and (and (and (and (and (and (is-Vector inline$$Test_new_event_handle_impl$0$$ret0@2) (let ((va@@29 (|v#Vector| inline$$Test_new_event_handle_impl$0$$ret0@2))) (let ((l@@29 (|l#ValueArray| va@@29))) (and (<= 0 l@@29) (forall ((x@@29 Int) ) (! (=> (or (< x@@29 0) (>= x@@29 l@@29)) (= (|Select_[$int]Value| (|v#ValueArray| va@@29) x@@29) DefaultValue)) :qid |outputbp.826:21| :skolemid |17| :pattern ( (|Select_[$int]Value| (|v#ValueArray| va@@29) x@@29)) )))))) (= (|l#ValueArray| (|v#Vector| inline$$Test_new_event_handle_impl$0$$ret0@2)) 2)) (and (and (is-Integer (|Select_[$int]Value| (|v#ValueArray| (|v#Vector| inline$$Test_new_event_handle_impl$0$$ret0@2)) $Test_EventHandle_counter)) (>= (|i#Integer| (|Select_[$int]Value| (|v#ValueArray| (|v#Vector| inline$$Test_new_event_handle_impl$0$$ret0@2)) $Test_EventHandle_counter)) 0)) (<= (|i#Integer| (|Select_[$int]Value| (|v#ValueArray| (|v#Vector| inline$$Test_new_event_handle_impl$0$$ret0@2)) $Test_EventHandle_counter)) MAX_U64))) (and (is-Vector (|Select_[$int]Value| (|v#ValueArray| (|v#Vector| inline$$Test_new_event_handle_impl$0$$ret0@2)) $Test_EventHandle_guid)) (let ((va@@30 (|v#Vector| (|Select_[$int]Value| (|v#ValueArray| (|v#Vector| inline$$Test_new_event_handle_impl$0$$ret0@2)) $Test_EventHandle_guid)))) (let ((l@@30 (|l#ValueArray| va@@30))) (and (<= 0 l@@30) (forall ((x@@30 Int) ) (! (=> (or (< x@@30 0) (>= x@@30 l@@30)) (= (|Select_[$int]Value| (|v#ValueArray| va@@30) x@@30) DefaultValue)) :qid |outputbp.826:21| :skolemid |17| :pattern ( (|Select_[$int]Value| (|v#ValueArray| va@@30) x@@30)) ))))))) (forall (($$0@@11 Int) ) (! (=> (and (>= $$0@@11 0) (< $$0@@11 (|l#ValueArray| (|v#Vector| (|Select_[$int]Value| (|v#ValueArray| (|v#Vector| inline$$Test_new_event_handle_impl$0$$ret0@2)) $Test_EventHandle_guid))))) (and (and (is-Integer (|Select_[$int]Value| (|v#ValueArray| (|v#Vector| (|Select_[$int]Value| (|v#ValueArray| (|v#Vector| inline$$Test_new_event_handle_impl$0$$ret0@2)) $Test_EventHandle_guid))) $$0@@11)) (>= (|i#Integer| (|Select_[$int]Value| (|v#ValueArray| (|v#Vector| (|Select_[$int]Value| (|v#ValueArray| (|v#Vector| inline$$Test_new_event_handle_impl$0$$ret0@2)) $Test_EventHandle_guid))) $$0@@11)) 0)) (<= (|i#Integer| (|Select_[$int]Value| (|v#ValueArray| (|v#Vector| (|Select_[$int]Value| (|v#ValueArray| (|v#Vector| inline$$Test_new_event_handle_impl$0$$ret0@2)) $Test_EventHandle_guid))) $$0@@11)) MAX_U8))) :qid |outputbp.1339:89| :skolemid |27| :pattern ( (|Select_[$int]Value| (|v#ValueArray| (|v#Vector| (|Select_[$int]Value| (|v#ValueArray| (|v#Vector| inline$$Test_new_event_handle_impl$0$$ret0@2)) $Test_EventHandle_guid))) $$0@@11)) ))) (and (= $m@40 (Memory (|Store_[Location]$bool| (|domain#Memory| $m@39) (Local (+ 0 20)) true) (|Store_[Location]Value| (|contents#Memory| $m@39) (Local (+ 0 20)) inline$$Test_new_event_handle_impl$0$$ret0@2))) (= (ControlFlow 0 19631) 19615))) inline$$BorrowLoc$3$Entry_correct)))) (let ((inline$$Test_create$0$anon39_Then_correct (=> $abort_flag@2 (=> (and ($DebugTrackAbort 3 2276) (= (ControlFlow 0 25096) 14584)) inline$$Test_create$0$Abort_correct)))) (let ((inline$$Test_new_event_handle_impl$0$Return_correct (and (=> (= (ControlFlow 0 19558) (- 0 32416)) (=> (|b#Boolean| (Boolean (> (|i#Integer| (Integer (+ (|i#Integer| (|Select_[$int]Value| (|v#ValueArray| (|v#Vector| ($ReadValue_stratified (|p#Reference| inline$$BorrowLoc$1$dst@1) (|Select_[Location]Value| (|contents#Memory| $m@17) (|l#Reference| inline$$BorrowLoc$1$dst@1))))) $Test_EventHandleGenerator_counter)) (|i#Integer| (Integer 1))))) (|i#Integer| (Integer MAX_U64))))) $abort_flag@2)) (=> (=> (|b#Boolean| (Boolean (> (|i#Integer| (Integer (+ (|i#Integer| (|Select_[$int]Value| (|v#ValueArray| (|v#Vector| ($ReadValue_stratified (|p#Reference| inline$$BorrowLoc$1$dst@1) (|Select_[Location]Value| (|contents#Memory| $m@17) (|l#Reference| inline$$BorrowLoc$1$dst@1))))) $Test_EventHandleGenerator_counter)) (|i#Integer| (Integer 1))))) (|i#Integer| (Integer MAX_U64))))) $abort_flag@2) (and (=> (= (ControlFlow 0 19558) (- 0 32453)) (=> $abort_flag@2 (|b#Boolean| (Boolean (> (|i#Integer| (Integer (+ (|i#Integer| (|Select_[$int]Value| (|v#ValueArray| (|v#Vector| ($ReadValue_stratified (|p#Reference| inline$$BorrowLoc$1$dst@1) (|Select_[Location]Value| (|contents#Memory| $m@17) (|l#Reference| inline$$BorrowLoc$1$dst@1))))) $Test_EventHandleGenerator_counter)) (|i#Integer| (Integer 1))))) (|i#Integer| (Integer MAX_U64))))))) (=> (=> $abort_flag@2 (|b#Boolean| (Boolean (> (|i#Integer| (Integer (+ (|i#Integer| (|Select_[$int]Value| (|v#ValueArray| (|v#Vector| ($ReadValue_stratified (|p#Reference| inline$$BorrowLoc$1$dst@1) (|Select_[Location]Value| (|contents#Memory| $m@17) (|l#Reference| inline$$BorrowLoc$1$dst@1))))) $Test_EventHandleGenerator_counter)) (|i#Integer| (Integer 1))))) (|i#Integer| (Integer MAX_U64)))))) (and (=> (= (ControlFlow 0 19558) (- 0 32490)) (=> (not $abort_flag@2) (|b#Boolean| (Boolean (and (|b#Boolean| (Boolean (and (|b#Boolean| (Boolean (IsEqual_stratified (Integer (|l#ValueArray| (|v#Vector| (|Select_[$int]Value| (|v#ValueArray| (|v#Vector| inline$$Test_new_event_handle_impl$0$$ret0@2)) $Test_EventHandle_guid)))) (Integer (+ (|i#Integer| (Integer (|l#ValueArray| (|v#Vector| ($BCS_serialize_core (|Select_[$int]Value| (|v#ValueArray| (|v#Vector| ($ReadValue_stratified (|p#Reference| inline$$BorrowLoc$1$dst@1) (|Select_[Location]Value| (|contents#Memory| $m@17) (|l#Reference| inline$$BorrowLoc$1$dst@1))))) $Test_EventHandleGenerator_counter)))))) (|i#Integer| (Integer (|l#ValueArray| (|v#Vector| ($BCS_serialize_core inline$$Test_new_event_handle_impl$0$sender@0)))))))))) (|b#Boolean| (Boolean (IsEqual_stratified (Vector (ValueArray (|lambda#4| 0 (- (|i#Integer| (|ub#$Range| ($Range (Integer 0) (Integer (|l#ValueArray| (|v#Vector| ($BCS_serialize_core (|Select_[$int]Value| (|v#ValueArray| (|v#Vector| ($ReadValue_stratified (|p#Reference| inline$$BorrowLoc$1$dst@1) (|Select_[Location]Value| (|contents#Memory| $m@17) (|l#Reference| inline$$BorrowLoc$1$dst@1))))) $Test_EventHandleGenerator_counter)))))))) (|i#Integer| (|lb#$Range| ($Range (Integer 0) (Integer (|l#ValueArray| (|v#Vector| ($BCS_serialize_core (|Select_[$int]Value| (|v#ValueArray| (|v#Vector| ($ReadValue_stratified (|p#Reference| inline$$BorrowLoc$1$dst@1) (|Select_[Location]Value| (|contents#Memory| $m@17) (|l#Reference| inline$$BorrowLoc$1$dst@1))))) $Test_EventHandleGenerator_counter))))))))) (|v#ValueArray| (|v#Vector| (|Select_[$int]Value| (|v#ValueArray| (|v#Vector| inline$$Test_new_event_handle_impl$0$$ret0@2)) $Test_EventHandle_guid))) (|i#Integer| (|lb#$Range| ($Range (Integer 0) (Integer (|l#ValueArray| (|v#Vector| ($BCS_serialize_core (|Select_[$int]Value| (|v#ValueArray| (|v#Vector| ($ReadValue_stratified (|p#Reference| inline$$BorrowLoc$1$dst@1) (|Select_[Location]Value| (|contents#Memory| $m@17) (|l#Reference| inline$$BorrowLoc$1$dst@1))))) $Test_EventHandleGenerator_counter)))))))) DefaultValue) (ite (< (- (|i#Integer| (|ub#$Range| ($Range (Integer 0) (Integer (|l#ValueArray| (|v#Vector| ($BCS_serialize_core (|Select_[$int]Value| (|v#ValueArray| (|v#Vector| ($ReadValue_stratified (|p#Reference| inline$$BorrowLoc$1$dst@1) (|Select_[Location]Value| (|contents#Memory| $m@17) (|l#Reference| inline$$BorrowLoc$1$dst@1))))) $Test_EventHandleGenerator_counter)))))))) (|i#Integer| (|lb#$Range| ($Range (Integer 0) (Integer (|l#ValueArray| (|v#Vector| ($BCS_serialize_core (|Select_[$int]Value| (|v#ValueArray| (|v#Vector| ($ReadValue_stratified (|p#Reference| inline$$BorrowLoc$1$dst@1) (|Select_[Location]Value| (|contents#Memory| $m@17) (|l#Reference| inline$$BorrowLoc$1$dst@1))))) $Test_EventHandleGenerator_counter))))))))) 0) 0 (- (|i#Integer| (|ub#$Range| ($Range (Integer 0) (Integer (|l#ValueArray| (|v#Vector| ($BCS_serialize_core (|Select_[$int]Value| (|v#ValueArray| (|v#Vector| ($ReadValue_stratified (|p#Reference| inline$$BorrowLoc$1$dst@1) (|Select_[Location]Value| (|contents#Memory| $m@17) (|l#Reference| inline$$BorrowLoc$1$dst@1))))) $Test_EventHandleGenerator_counter)))))))) (|i#Integer| (|lb#$Range| ($Range (Integer 0) (Integer (|l#ValueArray| (|v#Vector| ($BCS_serialize_core (|Select_[$int]Value| (|v#ValueArray| (|v#Vector| ($ReadValue_stratified (|p#Reference| inline$$BorrowLoc$1$dst@1) (|Select_[Location]Value| (|contents#Memory| $m@17) (|l#Reference| inline$$BorrowLoc$1$dst@1))))) $Test_EventHandleGenerator_counter)))))))))))) ($BCS_serialize_core (|Select_[$int]Value| (|v#ValueArray| (|v#Vector| ($ReadValue_stratified (|p#Reference| inline$$BorrowLoc$1$dst@1) (|Select_[Location]Value| (|contents#Memory| $m@17) (|l#Reference| inline$$BorrowLoc$1$dst@1))))) $Test_EventHandleGenerator_counter)))))))) (|b#Boolean| (Boolean (IsEqual_stratified (Vector (ValueArray (|lambda#4| 0 (- (|i#Integer| (|ub#$Range| ($Range (Integer (|l#ValueArray| (|v#Vector| ($BCS_serialize_core (|Select_[$int]Value| (|v#ValueArray| (|v#Vector| ($ReadValue_stratified (|p#Reference| inline$$BorrowLoc$1$dst@1) (|Select_[Location]Value| (|contents#Memory| $m@17) (|l#Reference| inline$$BorrowLoc$1$dst@1))))) $Test_EventHandleGenerator_counter))))) (Integer (|l#ValueArray| (|v#Vector| (|Select_[$int]Value| (|v#ValueArray| (|v#Vector| inline$$Test_new_event_handle_impl$0$$ret0@2)) $Test_EventHandle_guid))))))) (|i#Integer| (|lb#$Range| ($Range (Integer (|l#ValueArray| (|v#Vector| ($BCS_serialize_core (|Select_[$int]Value| (|v#ValueArray| (|v#Vector| ($ReadValue_stratified (|p#Reference| inline$$BorrowLoc$1$dst@1) (|Select_[Location]Value| (|contents#Memory| $m@17) (|l#Reference| inline$$BorrowLoc$1$dst@1))))) $Test_EventHandleGenerator_counter))))) (Integer (|l#ValueArray| (|v#Vector| (|Select_[$int]Value| (|v#ValueArray| (|v#Vector| inline$$Test_new_event_handle_impl$0$$ret0@2)) $Test_EventHandle_guid)))))))) (|v#ValueArray| (|v#Vector| (|Select_[$int]Value| (|v#ValueArray| (|v#Vector| inline$$Test_new_event_handle_impl$0$$ret0@2)) $Test_EventHandle_guid))) (|i#Integer| (|lb#$Range| ($Range (Integer (|l#ValueArray| (|v#Vector| ($BCS_serialize_core (|Select_[$int]Value| (|v#ValueArray| (|v#Vector| ($ReadValue_stratified (|p#Reference| inline$$BorrowLoc$1$dst@1) (|Select_[Location]Value| (|contents#Memory| $m@17) (|l#Reference| inline$$BorrowLoc$1$dst@1))))) $Test_EventHandleGenerator_counter))))) (Integer (|l#ValueArray| (|v#Vector| (|Select_[$int]Value| (|v#ValueArray| (|v#Vector| inline$$Test_new_event_handle_impl$0$$ret0@2)) $Test_EventHandle_guid))))))) DefaultValue) (ite (< (- (|i#Integer| (|ub#$Range| ($Range (Integer (|l#ValueArray| (|v#Vector| ($BCS_serialize_core (|Select_[$int]Value| (|v#ValueArray| (|v#Vector| ($ReadValue_stratified (|p#Reference| inline$$BorrowLoc$1$dst@1) (|Select_[Location]Value| (|contents#Memory| $m@17) (|l#Reference| inline$$BorrowLoc$1$dst@1))))) $Test_EventHandleGenerator_counter))))) (Integer (|l#ValueArray| (|v#Vector| (|Select_[$int]Value| (|v#ValueArray| (|v#Vector| inline$$Test_new_event_handle_impl$0$$ret0@2)) $Test_EventHandle_guid))))))) (|i#Integer| (|lb#$Range| ($Range (Integer (|l#ValueArray| (|v#Vector| ($BCS_serialize_core (|Select_[$int]Value| (|v#ValueArray| (|v#Vector| ($ReadValue_stratified (|p#Reference| inline$$BorrowLoc$1$dst@1) (|Select_[Location]Value| (|contents#Memory| $m@17) (|l#Reference| inline$$BorrowLoc$1$dst@1))))) $Test_EventHandleGenerator_counter))))) (Integer (|l#ValueArray| (|v#Vector| (|Select_[$int]Value| (|v#ValueArray| (|v#Vector| inline$$Test_new_event_handle_impl$0$$ret0@2)) $Test_EventHandle_guid)))))))) 0) 0 (- (|i#Integer| (|ub#$Range| ($Range (Integer (|l#ValueArray| (|v#Vector| ($BCS_serialize_core (|Select_[$int]Value| (|v#ValueArray| (|v#Vector| ($ReadValue_stratified (|p#Reference| inline$$BorrowLoc$1$dst@1) (|Select_[Location]Value| (|contents#Memory| $m@17) (|l#Reference| inline$$BorrowLoc$1$dst@1))))) $Test_EventHandleGenerator_counter))))) (Integer (|l#ValueArray| (|v#Vector| (|Select_[$int]Value| (|v#ValueArray| (|v#Vector| inline$$Test_new_event_handle_impl$0$$ret0@2)) $Test_EventHandle_guid))))))) (|i#Integer| (|lb#$Range| ($Range (Integer (|l#ValueArray| (|v#Vector| ($BCS_serialize_core (|Select_[$int]Value| (|v#ValueArray| (|v#Vector| ($ReadValue_stratified (|p#Reference| inline$$BorrowLoc$1$dst@1) (|Select_[Location]Value| (|contents#Memory| $m@17) (|l#Reference| inline$$BorrowLoc$1$dst@1))))) $Test_EventHandleGenerator_counter))))) (Integer (|l#ValueArray| (|v#Vector| (|Select_[$int]Value| (|v#ValueArray| (|v#Vector| inline$$Test_new_event_handle_impl$0$$ret0@2)) $Test_EventHandle_guid))))))))))) ($BCS_serialize_core inline$$Test_new_event_handle_impl$0$sender@0))))))))) (=> (=> (not $abort_flag@2) (|b#Boolean| (Boolean (and (|b#Boolean| (Boolean (and (|b#Boolean| (Boolean (IsEqual_stratified (Integer (|l#ValueArray| (|v#Vector| (|Select_[$int]Value| (|v#ValueArray| (|v#Vector| inline$$Test_new_event_handle_impl$0$$ret0@2)) $Test_EventHandle_guid)))) (Integer (+ (|i#Integer| (Integer (|l#ValueArray| (|v#Vector| ($BCS_serialize_core (|Select_[$int]Value| (|v#ValueArray| (|v#Vector| ($ReadValue_stratified (|p#Reference| inline$$BorrowLoc$1$dst@1) (|Select_[Location]Value| (|contents#Memory| $m@17) (|l#Reference| inline$$BorrowLoc$1$dst@1))))) $Test_EventHandleGenerator_counter)))))) (|i#Integer| (Integer (|l#ValueArray| (|v#Vector| ($BCS_serialize_core inline$$Test_new_event_handle_impl$0$sender@0)))))))))) (|b#Boolean| (Boolean (IsEqual_stratified (Vector (ValueArray (|lambda#4| 0 (- (|i#Integer| (|ub#$Range| ($Range (Integer 0) (Integer (|l#ValueArray| (|v#Vector| ($BCS_serialize_core (|Select_[$int]Value| (|v#ValueArray| (|v#Vector| ($ReadValue_stratified (|p#Reference| inline$$BorrowLoc$1$dst@1) (|Select_[Location]Value| (|contents#Memory| $m@17) (|l#Reference| inline$$BorrowLoc$1$dst@1))))) $Test_EventHandleGenerator_counter)))))))) (|i#Integer| (|lb#$Range| ($Range (Integer 0) (Integer (|l#ValueArray| (|v#Vector| ($BCS_serialize_core (|Select_[$int]Value| (|v#ValueArray| (|v#Vector| ($ReadValue_stratified (|p#Reference| inline$$BorrowLoc$1$dst@1) (|Select_[Location]Value| (|contents#Memory| $m@17) (|l#Reference| inline$$BorrowLoc$1$dst@1))))) $Test_EventHandleGenerator_counter))))))))) (|v#ValueArray| (|v#Vector| (|Select_[$int]Value| (|v#ValueArray| (|v#Vector| inline$$Test_new_event_handle_impl$0$$ret0@2)) $Test_EventHandle_guid))) (|i#Integer| (|lb#$Range| ($Range (Integer 0) (Integer (|l#ValueArray| (|v#Vector| ($BCS_serialize_core (|Select_[$int]Value| (|v#ValueArray| (|v#Vector| ($ReadValue_stratified (|p#Reference| inline$$BorrowLoc$1$dst@1) (|Select_[Location]Value| (|contents#Memory| $m@17) (|l#Reference| inline$$BorrowLoc$1$dst@1))))) $Test_EventHandleGenerator_counter)))))))) DefaultValue) (ite (< (- (|i#Integer| (|ub#$Range| ($Range (Integer 0) (Integer (|l#ValueArray| (|v#Vector| ($BCS_serialize_core (|Select_[$int]Value| (|v#ValueArray| (|v#Vector| ($ReadValue_stratified (|p#Reference| inline$$BorrowLoc$1$dst@1) (|Select_[Location]Value| (|contents#Memory| $m@17) (|l#Reference| inline$$BorrowLoc$1$dst@1))))) $Test_EventHandleGenerator_counter)))))))) (|i#Integer| (|lb#$Range| ($Range (Integer 0) (Integer (|l#ValueArray| (|v#Vector| ($BCS_serialize_core (|Select_[$int]Value| (|v#ValueArray| (|v#Vector| ($ReadValue_stratified (|p#Reference| inline$$BorrowLoc$1$dst@1) (|Select_[Location]Value| (|contents#Memory| $m@17) (|l#Reference| inline$$BorrowLoc$1$dst@1))))) $Test_EventHandleGenerator_counter))))))))) 0) 0 (- (|i#Integer| (|ub#$Range| ($Range (Integer 0) (Integer (|l#ValueArray| (|v#Vector| ($BCS_serialize_core (|Select_[$int]Value| (|v#ValueArray| (|v#Vector| ($ReadValue_stratified (|p#Reference| inline$$BorrowLoc$1$dst@1) (|Select_[Location]Value| (|contents#Memory| $m@17) (|l#Reference| inline$$BorrowLoc$1$dst@1))))) $Test_EventHandleGenerator_counter)))))))) (|i#Integer| (|lb#$Range| ($Range (Integer 0) (Integer (|l#ValueArray| (|v#Vector| ($BCS_serialize_core (|Select_[$int]Value| (|v#ValueArray| (|v#Vector| ($ReadValue_stratified (|p#Reference| inline$$BorrowLoc$1$dst@1) (|Select_[Location]Value| (|contents#Memory| $m@17) (|l#Reference| inline$$BorrowLoc$1$dst@1))))) $Test_EventHandleGenerator_counter)))))))))))) ($BCS_serialize_core (|Select_[$int]Value| (|v#ValueArray| (|v#Vector| ($ReadValue_stratified (|p#Reference| inline$$BorrowLoc$1$dst@1) (|Select_[Location]Value| (|contents#Memory| $m@17) (|l#Reference| inline$$BorrowLoc$1$dst@1))))) $Test_EventHandleGenerator_counter)))))))) (|b#Boolean| (Boolean (IsEqual_stratified (Vector (ValueArray (|lambda#4| 0 (- (|i#Integer| (|ub#$Range| ($Range (Integer (|l#ValueArray| (|v#Vector| ($BCS_serialize_core (|Select_[$int]Value| (|v#ValueArray| (|v#Vector| ($ReadValue_stratified (|p#Reference| inline$$BorrowLoc$1$dst@1) (|Select_[Location]Value| (|contents#Memory| $m@17) (|l#Reference| inline$$BorrowLoc$1$dst@1))))) $Test_EventHandleGenerator_counter))))) (Integer (|l#ValueArray| (|v#Vector| (|Select_[$int]Value| (|v#ValueArray| (|v#Vector| inline$$Test_new_event_handle_impl$0$$ret0@2)) $Test_EventHandle_guid))))))) (|i#Integer| (|lb#$Range| ($Range (Integer (|l#ValueArray| (|v#Vector| ($BCS_serialize_core (|Select_[$int]Value| (|v#ValueArray| (|v#Vector| ($ReadValue_stratified (|p#Reference| inline$$BorrowLoc$1$dst@1) (|Select_[Location]Value| (|contents#Memory| $m@17) (|l#Reference| inline$$BorrowLoc$1$dst@1))))) $Test_EventHandleGenerator_counter))))) (Integer (|l#ValueArray| (|v#Vector| (|Select_[$int]Value| (|v#ValueArray| (|v#Vector| inline$$Test_new_event_handle_impl$0$$ret0@2)) $Test_EventHandle_guid)))))))) (|v#ValueArray| (|v#Vector| (|Select_[$int]Value| (|v#ValueArray| (|v#Vector| inline$$Test_new_event_handle_impl$0$$ret0@2)) $Test_EventHandle_guid))) (|i#Integer| (|lb#$Range| ($Range (Integer (|l#ValueArray| (|v#Vector| ($BCS_serialize_core (|Select_[$int]Value| (|v#ValueArray| (|v#Vector| ($ReadValue_stratified (|p#Reference| inline$$BorrowLoc$1$dst@1) (|Select_[Location]Value| (|contents#Memory| $m@17) (|l#Reference| inline$$BorrowLoc$1$dst@1))))) $Test_EventHandleGenerator_counter))))) (Integer (|l#ValueArray| (|v#Vector| (|Select_[$int]Value| (|v#ValueArray| (|v#Vector| inline$$Test_new_event_handle_impl$0$$ret0@2)) $Test_EventHandle_guid))))))) DefaultValue) (ite (< (- (|i#Integer| (|ub#$Range| ($Range (Integer (|l#ValueArray| (|v#Vector| ($BCS_serialize_core (|Select_[$int]Value| (|v#ValueArray| (|v#Vector| ($ReadValue_stratified (|p#Reference| inline$$BorrowLoc$1$dst@1) (|Select_[Location]Value| (|contents#Memory| $m@17) (|l#Reference| inline$$BorrowLoc$1$dst@1))))) $Test_EventHandleGenerator_counter))))) (Integer (|l#ValueArray| (|v#Vector| (|Select_[$int]Value| (|v#ValueArray| (|v#Vector| inline$$Test_new_event_handle_impl$0$$ret0@2)) $Test_EventHandle_guid))))))) (|i#Integer| (|lb#$Range| ($Range (Integer (|l#ValueArray| (|v#Vector| ($BCS_serialize_core (|Select_[$int]Value| (|v#ValueArray| (|v#Vector| ($ReadValue_stratified (|p#Reference| inline$$BorrowLoc$1$dst@1) (|Select_[Location]Value| (|contents#Memory| $m@17) (|l#Reference| inline$$BorrowLoc$1$dst@1))))) $Test_EventHandleGenerator_counter))))) (Integer (|l#ValueArray| (|v#Vector| (|Select_[$int]Value| (|v#ValueArray| (|v#Vector| inline$$Test_new_event_handle_impl$0$$ret0@2)) $Test_EventHandle_guid)))))))) 0) 0 (- (|i#Integer| (|ub#$Range| ($Range (Integer (|l#ValueArray| (|v#Vector| ($BCS_serialize_core (|Select_[$int]Value| (|v#ValueArray| (|v#Vector| ($ReadValue_stratified (|p#Reference| inline$$BorrowLoc$1$dst@1) (|Select_[Location]Value| (|contents#Memory| $m@17) (|l#Reference| inline$$BorrowLoc$1$dst@1))))) $Test_EventHandleGenerator_counter))))) (Integer (|l#ValueArray| (|v#Vector| (|Select_[$int]Value| (|v#ValueArray| (|v#Vector| inline$$Test_new_event_handle_impl$0$$ret0@2)) $Test_EventHandle_guid))))))) (|i#Integer| (|lb#$Range| ($Range (Integer (|l#ValueArray| (|v#Vector| ($BCS_serialize_core (|Select_[$int]Value| (|v#ValueArray| (|v#Vector| ($ReadValue_stratified (|p#Reference| inline$$BorrowLoc$1$dst@1) (|Select_[Location]Value| (|contents#Memory| $m@17) (|l#Reference| inline$$BorrowLoc$1$dst@1))))) $Test_EventHandleGenerator_counter))))) (Integer (|l#ValueArray| (|v#Vector| (|Select_[$int]Value| (|v#ValueArray| (|v#Vector| inline$$Test_new_event_handle_impl$0$$ret0@2)) $Test_EventHandle_guid))))))))))) ($BCS_serialize_core inline$$Test_new_event_handle_impl$0$sender@0)))))))) (and (=> (= (ControlFlow 0 19558) (- 0 32529)) (=> (not $abort_flag@2) (|b#Boolean| (Boolean (IsEqual_stratified (|Select_[$int]Value| (|v#ValueArray| (|v#Vector| inline$$Test_new_event_handle_impl$0$$ret0@2)) $Test_EventHandle_counter) (Integer 0)))))) (=> (=> (not $abort_flag@2) (|b#Boolean| (Boolean (IsEqual_stratified (|Select_[$int]Value| (|v#ValueArray| (|v#Vector| inline$$Test_new_event_handle_impl$0$$ret0@2)) $Test_EventHandle_counter) (Integer 0))))) (and (=> (= (ControlFlow 0 19558) 25096) inline$$Test_create$0$anon39_Then_correct) (=> (= (ControlFlow 0 19558) 19631) inline$$Test_create$0$anon39_Else_correct)))))))))))) (let ((inline$$Test_new_event_handle_impl$0$anon10_correct (=> (and (and (= inline$$Test_new_event_handle_impl$0$$ret0@2 inline$$Test_new_event_handle_impl$0$$ret0@1) (= $m@39 $m@38)) (and (= $abort_flag@2 $abort_flag@1) (= (ControlFlow 0 19326) 19558))) inline$$Test_new_event_handle_impl$0$Return_correct))) (let ((inline$$Test_new_event_handle_impl$0$anon15_Else_correct (=> (and (not true) (= (ControlFlow 0 19324) 19326)) inline$$Test_new_event_handle_impl$0$anon10_correct))) (let ((inline$$Test_new_event_handle_impl$0$anon15_Then_correct (=> (and ($DebugTrackLocal 3 1559 7 inline$$Test_new_event_handle_impl$0$$ret0@1) (= (ControlFlow 0 19340) 19326)) inline$$Test_new_event_handle_impl$0$anon10_correct))) (let ((inline$$Test_new_event_handle_impl$0$anon8$1_correct (=> (and (= $m@38 (Memory (|Store_[Location]$bool| (|domain#Memory| $m@37) (Local (+ $local_counter@0 6)) true) (|Store_[Location]Value| (|contents#Memory| $m@37) (Local (+ $local_counter@0 6)) inline$$Test_EventHandle_pack$0$$struct@1))) (= inline$$Test_new_event_handle_impl$0$$ret0@1 (|Select_[Location]Value| (|contents#Memory| $m@38) (Local (+ $local_counter@0 6))))) (and (=> (= (ControlFlow 0 19318) 19340) inline$$Test_new_event_handle_impl$0$anon15_Then_correct) (=> (= (ControlFlow 0 19318) 19324) inline$$Test_new_event_handle_impl$0$anon15_Else_correct))))) (let ((inline$$Test_EventHandle_pack$0$anon2_Else_correct (=> (and (>= 0 0) (= (ControlFlow 0 19270) 19318)) inline$$Test_new_event_handle_impl$0$anon8$1_correct))) (let ((inline$$Test_EventHandle_pack$0$anon2_Then_correct (=> (> 0 0) (=> (and ($DebugTrackLocal 0 0 0 inline$$Test_EventHandle_pack$0$$struct@1) (= (ControlFlow 0 19288) 19318)) inline$$Test_new_event_handle_impl$0$anon8$1_correct)))) (let ((inline$$Test_EventHandle_pack$0$anon0_correct (=> (and (and (is-Integer inline$$Test_EventHandle_pack$0$counter@0) (>= (|i#Integer| inline$$Test_EventHandle_pack$0$counter@0) 0)) (<= (|i#Integer| inline$$Test_EventHandle_pack$0$counter@0) MAX_U64)) (=> (and (and (and (is-Vector inline$$Test_EventHandle_pack$0$guid@0) (let ((va@@31 (|v#Vector| inline$$Test_EventHandle_pack$0$guid@0))) (let ((l@@31 (|l#ValueArray| va@@31))) (and (<= 0 l@@31) (forall ((x@@31 Int) ) (! (=> (or (< x@@31 0) (>= x@@31 l@@31)) (= (|Select_[$int]Value| (|v#ValueArray| va@@31) x@@31) DefaultValue)) :qid |outputbp.826:21| :skolemid |17| :pattern ( (|Select_[$int]Value| (|v#ValueArray| va@@31) x@@31)) )))))) (forall (($$0@@12 Int) ) (! (=> (and (>= $$0@@12 0) (< $$0@@12 (|l#ValueArray| (|v#Vector| inline$$Test_EventHandle_pack$0$guid@0)))) (and (and (is-Integer (|Select_[$int]Value| (|v#ValueArray| (|v#Vector| inline$$Test_EventHandle_pack$0$guid@0)) $$0@@12)) (>= (|i#Integer| (|Select_[$int]Value| (|v#ValueArray| (|v#Vector| inline$$Test_EventHandle_pack$0$guid@0)) $$0@@12)) 0)) (<= (|i#Integer| (|Select_[$int]Value| (|v#ValueArray| (|v#Vector| inline$$Test_EventHandle_pack$0$guid@0)) $$0@@12)) MAX_U8))) :qid |outputbp.1345:52| :skolemid |28| :pattern ( (|Select_[$int]Value| (|v#ValueArray| (|v#Vector| inline$$Test_EventHandle_pack$0$guid@0)) $$0@@12)) ))) (= inline$$Test_EventHandle_pack$0$$struct@1 (Vector (ValueArray (|Store_[$int]Value| (|Store_[$int]Value| (MapConstValue DefaultValue) 0 inline$$Test_EventHandle_pack$0$counter@0) 1 inline$$Test_EventHandle_pack$0$guid@0) 2)))) (and (=> (= (ControlFlow 0 19262) 19288) inline$$Test_EventHandle_pack$0$anon2_Then_correct) (=> (= (ControlFlow 0 19262) 19270) inline$$Test_EventHandle_pack$0$anon2_Else_correct)))))) (let ((inline$$Test_EventHandle_pack$0$Entry_correct (=> (= inline$$Test_EventHandle_pack$0$counter@0 (|Select_[Location]Value| (|contents#Memory| $m@37) (Local (+ $local_counter@0 2)))) (=> (and (= inline$$Test_EventHandle_pack$0$guid@0 (|Select_[Location]Value| (|contents#Memory| $m@37) (Local (+ $local_counter@0 5)))) (= (ControlFlow 0 19188) 19262)) inline$$Test_EventHandle_pack$0$anon0_correct)))) (let ((inline$$Test_new_event_handle_impl$0$anon14_Else_correct (=> (and (not true) (= (ControlFlow 0 19025) 19188)) inline$$Test_EventHandle_pack$0$Entry_correct))) (let ((inline$$Test_new_event_handle_impl$0$anon14_Then_correct (=> (and ($DebugTrackLocal 3 1593 0 ($ReadValue_stratified (|p#Reference| inline$$BorrowLoc$1$dst@1) (|Select_[Location]Value| (|contents#Memory| $m@37) (|l#Reference| inline$$BorrowLoc$1$dst@1)))) (= (ControlFlow 0 19358) 19188)) inline$$Test_EventHandle_pack$0$Entry_correct))) (let ((inline$$Test_new_event_handle_impl$0$anon13_Else_correct (=> (not $abort_flag@1) (=> (and (and (and (is-Vector inline$$Test_fresh_guid$0$$ret0@2) (let ((va@@32 (|v#Vector| inline$$Test_fresh_guid$0$$ret0@2))) (let ((l@@32 (|l#ValueArray| va@@32))) (and (<= 0 l@@32) (forall ((x@@32 Int) ) (! (=> (or (< x@@32 0) (>= x@@32 l@@32)) (= (|Select_[$int]Value| (|v#ValueArray| va@@32) x@@32) DefaultValue)) :qid |outputbp.826:21| :skolemid |17| :pattern ( (|Select_[$int]Value| (|v#ValueArray| va@@32) x@@32)) )))))) (forall (($$0@@13 Int) ) (! (=> (and (>= $$0@@13 0) (< $$0@@13 (|l#ValueArray| (|v#Vector| inline$$Test_fresh_guid$0$$ret0@2)))) (and (and (is-Integer (|Select_[$int]Value| (|v#ValueArray| (|v#Vector| inline$$Test_fresh_guid$0$$ret0@2)) $$0@@13)) (>= (|i#Integer| (|Select_[$int]Value| (|v#ValueArray| (|v#Vector| inline$$Test_fresh_guid$0$$ret0@2)) $$0@@13)) 0)) (<= (|i#Integer| (|Select_[$int]Value| (|v#ValueArray| (|v#Vector| inline$$Test_fresh_guid$0$$ret0@2)) $$0@@13)) MAX_U8))) :qid |outputbp.1888:51| :skolemid |44| :pattern ( (|Select_[$int]Value| (|v#ValueArray| (|v#Vector| inline$$Test_fresh_guid$0$$ret0@2)) $$0@@13)) ))) (= $m@37 (Memory (|Store_[Location]$bool| (|domain#Memory| $m@36) (Local (+ $local_counter@0 5)) true) (|Store_[Location]Value| (|contents#Memory| $m@36) (Local (+ $local_counter@0 5)) inline$$Test_fresh_guid$0$$ret0@2)))) (and (=> (= (ControlFlow 0 19019) 19358) inline$$Test_new_event_handle_impl$0$anon14_Then_correct) (=> (= (ControlFlow 0 19019) 19025) inline$$Test_new_event_handle_impl$0$anon14_Else_correct)))))) (let ((inline$$Test_new_event_handle_impl$0$anon13_Then_correct (=> (and $abort_flag@1 ($DebugTrackAbort 3 1593)) (=> (and (and (= inline$$Test_new_event_handle_impl$0$$ret0@2 DefaultValue) (= $m@39 $m@17)) (and (= $abort_flag@2 true) (= (ControlFlow 0 19374) 19558))) inline$$Test_new_event_handle_impl$0$Return_correct)))) (let ((inline$$Test_fresh_guid$0$Return_correct (and (=> (= (ControlFlow 0 18951) (- 0 32010)) (=> (|b#Boolean| (Boolean (> (|i#Integer| (Integer (+ (|i#Integer| (|Select_[$int]Value| (|v#ValueArray| (|v#Vector| ($ReadValue_stratified (|p#Reference| inline$$BorrowLoc$1$dst@1) (|Select_[Location]Value| (|contents#Memory| $m@20) (|l#Reference| inline$$BorrowLoc$1$dst@1))))) $Test_EventHandleGenerator_counter)) (|i#Integer| (Integer 1))))) (|i#Integer| (Integer MAX_U64))))) $abort_flag@1)) (=> (=> (|b#Boolean| (Boolean (> (|i#Integer| (Integer (+ (|i#Integer| (|Select_[$int]Value| (|v#ValueArray| (|v#Vector| ($ReadValue_stratified (|p#Reference| inline$$BorrowLoc$1$dst@1) (|Select_[Location]Value| (|contents#Memory| $m@20) (|l#Reference| inline$$BorrowLoc$1$dst@1))))) $Test_EventHandleGenerator_counter)) (|i#Integer| (Integer 1))))) (|i#Integer| (Integer MAX_U64))))) $abort_flag@1) (and (=> (= (ControlFlow 0 18951) (- 0 32047)) (=> $abort_flag@1 (|b#Boolean| (Boolean (> (|i#Integer| (Integer (+ (|i#Integer| (|Select_[$int]Value| (|v#ValueArray| (|v#Vector| ($ReadValue_stratified (|p#Reference| inline$$BorrowLoc$1$dst@1) (|Select_[Location]Value| (|contents#Memory| $m@20) (|l#Reference| inline$$BorrowLoc$1$dst@1))))) $Test_EventHandleGenerator_counter)) (|i#Integer| (Integer 1))))) (|i#Integer| (Integer MAX_U64))))))) (=> (=> $abort_flag@1 (|b#Boolean| (Boolean (> (|i#Integer| (Integer (+ (|i#Integer| (|Select_[$int]Value| (|v#ValueArray| (|v#Vector| ($ReadValue_stratified (|p#Reference| inline$$BorrowLoc$1$dst@1) (|Select_[Location]Value| (|contents#Memory| $m@20) (|l#Reference| inline$$BorrowLoc$1$dst@1))))) $Test_EventHandleGenerator_counter)) (|i#Integer| (Integer 1))))) (|i#Integer| (Integer MAX_U64)))))) (and (=> (= (ControlFlow 0 18951) (- 0 32084)) (=> (not $abort_flag@1) (|b#Boolean| (Boolean (and (|b#Boolean| (Boolean (and (|b#Boolean| (Boolean (IsEqual_stratified (Integer (|l#ValueArray| (|v#Vector| inline$$Test_fresh_guid$0$$ret0@2))) (Integer (+ (|i#Integer| (Integer (|l#ValueArray| (|v#Vector| ($BCS_serialize_core (|Select_[$int]Value| (|v#ValueArray| (|v#Vector| ($ReadValue_stratified (|p#Reference| inline$$BorrowLoc$1$dst@1) (|Select_[Location]Value| (|contents#Memory| $m@20) (|l#Reference| inline$$BorrowLoc$1$dst@1))))) $Test_EventHandleGenerator_counter)))))) (|i#Integer| (Integer (|l#ValueArray| (|v#Vector| ($BCS_serialize_core inline$$Test_fresh_guid$0$sender@0)))))))))) (|b#Boolean| (Boolean (IsEqual_stratified (Vector (ValueArray (|lambda#4| 0 (- (|i#Integer| (|ub#$Range| ($Range (Integer 0) (Integer (|l#ValueArray| (|v#Vector| ($BCS_serialize_core (|Select_[$int]Value| (|v#ValueArray| (|v#Vector| ($ReadValue_stratified (|p#Reference| inline$$BorrowLoc$1$dst@1) (|Select_[Location]Value| (|contents#Memory| $m@20) (|l#Reference| inline$$BorrowLoc$1$dst@1))))) $Test_EventHandleGenerator_counter)))))))) (|i#Integer| (|lb#$Range| ($Range (Integer 0) (Integer (|l#ValueArray| (|v#Vector| ($BCS_serialize_core (|Select_[$int]Value| (|v#ValueArray| (|v#Vector| ($ReadValue_stratified (|p#Reference| inline$$BorrowLoc$1$dst@1) (|Select_[Location]Value| (|contents#Memory| $m@20) (|l#Reference| inline$$BorrowLoc$1$dst@1))))) $Test_EventHandleGenerator_counter))))))))) (|v#ValueArray| (|v#Vector| inline$$Test_fresh_guid$0$$ret0@2)) (|i#Integer| (|lb#$Range| ($Range (Integer 0) (Integer (|l#ValueArray| (|v#Vector| ($BCS_serialize_core (|Select_[$int]Value| (|v#ValueArray| (|v#Vector| ($ReadValue_stratified (|p#Reference| inline$$BorrowLoc$1$dst@1) (|Select_[Location]Value| (|contents#Memory| $m@20) (|l#Reference| inline$$BorrowLoc$1$dst@1))))) $Test_EventHandleGenerator_counter)))))))) DefaultValue) (ite (< (- (|i#Integer| (|ub#$Range| ($Range (Integer 0) (Integer (|l#ValueArray| (|v#Vector| ($BCS_serialize_core (|Select_[$int]Value| (|v#ValueArray| (|v#Vector| ($ReadValue_stratified (|p#Reference| inline$$BorrowLoc$1$dst@1) (|Select_[Location]Value| (|contents#Memory| $m@20) (|l#Reference| inline$$BorrowLoc$1$dst@1))))) $Test_EventHandleGenerator_counter)))))))) (|i#Integer| (|lb#$Range| ($Range (Integer 0) (Integer (|l#ValueArray| (|v#Vector| ($BCS_serialize_core (|Select_[$int]Value| (|v#ValueArray| (|v#Vector| ($ReadValue_stratified (|p#Reference| inline$$BorrowLoc$1$dst@1) (|Select_[Location]Value| (|contents#Memory| $m@20) (|l#Reference| inline$$BorrowLoc$1$dst@1))))) $Test_EventHandleGenerator_counter))))))))) 0) 0 (- (|i#Integer| (|ub#$Range| ($Range (Integer 0) (Integer (|l#ValueArray| (|v#Vector| ($BCS_serialize_core (|Select_[$int]Value| (|v#ValueArray| (|v#Vector| ($ReadValue_stratified (|p#Reference| inline$$BorrowLoc$1$dst@1) (|Select_[Location]Value| (|contents#Memory| $m@20) (|l#Reference| inline$$BorrowLoc$1$dst@1))))) $Test_EventHandleGenerator_counter)))))))) (|i#Integer| (|lb#$Range| ($Range (Integer 0) (Integer (|l#ValueArray| (|v#Vector| ($BCS_serialize_core (|Select_[$int]Value| (|v#ValueArray| (|v#Vector| ($ReadValue_stratified (|p#Reference| inline$$BorrowLoc$1$dst@1) (|Select_[Location]Value| (|contents#Memory| $m@20) (|l#Reference| inline$$BorrowLoc$1$dst@1))))) $Test_EventHandleGenerator_counter)))))))))))) ($BCS_serialize_core (|Select_[$int]Value| (|v#ValueArray| (|v#Vector| ($ReadValue_stratified (|p#Reference| inline$$BorrowLoc$1$dst@1) (|Select_[Location]Value| (|contents#Memory| $m@20) (|l#Reference| inline$$BorrowLoc$1$dst@1))))) $Test_EventHandleGenerator_counter)))))))) (|b#Boolean| (Boolean (IsEqual_stratified (Vector (ValueArray (|lambda#4| 0 (- (|i#Integer| (|ub#$Range| ($Range (Integer (|l#ValueArray| (|v#Vector| ($BCS_serialize_core (|Select_[$int]Value| (|v#ValueArray| (|v#Vector| ($ReadValue_stratified (|p#Reference| inline$$BorrowLoc$1$dst@1) (|Select_[Location]Value| (|contents#Memory| $m@20) (|l#Reference| inline$$BorrowLoc$1$dst@1))))) $Test_EventHandleGenerator_counter))))) (Integer (|l#ValueArray| (|v#Vector| inline$$Test_fresh_guid$0$$ret0@2)))))) (|i#Integer| (|lb#$Range| ($Range (Integer (|l#ValueArray| (|v#Vector| ($BCS_serialize_core (|Select_[$int]Value| (|v#ValueArray| (|v#Vector| ($ReadValue_stratified (|p#Reference| inline$$BorrowLoc$1$dst@1) (|Select_[Location]Value| (|contents#Memory| $m@20) (|l#Reference| inline$$BorrowLoc$1$dst@1))))) $Test_EventHandleGenerator_counter))))) (Integer (|l#ValueArray| (|v#Vector| inline$$Test_fresh_guid$0$$ret0@2))))))) (|v#ValueArray| (|v#Vector| inline$$Test_fresh_guid$0$$ret0@2)) (|i#Integer| (|lb#$Range| ($Range (Integer (|l#ValueArray| (|v#Vector| ($BCS_serialize_core (|Select_[$int]Value| (|v#ValueArray| (|v#Vector| ($ReadValue_stratified (|p#Reference| inline$$BorrowLoc$1$dst@1) (|Select_[Location]Value| (|contents#Memory| $m@20) (|l#Reference| inline$$BorrowLoc$1$dst@1))))) $Test_EventHandleGenerator_counter))))) (Integer (|l#ValueArray| (|v#Vector| inline$$Test_fresh_guid$0$$ret0@2)))))) DefaultValue) (ite (< (- (|i#Integer| (|ub#$Range| ($Range (Integer (|l#ValueArray| (|v#Vector| ($BCS_serialize_core (|Select_[$int]Value| (|v#ValueArray| (|v#Vector| ($ReadValue_stratified (|p#Reference| inline$$BorrowLoc$1$dst@1) (|Select_[Location]Value| (|contents#Memory| $m@20) (|l#Reference| inline$$BorrowLoc$1$dst@1))))) $Test_EventHandleGenerator_counter))))) (Integer (|l#ValueArray| (|v#Vector| inline$$Test_fresh_guid$0$$ret0@2)))))) (|i#Integer| (|lb#$Range| ($Range (Integer (|l#ValueArray| (|v#Vector| ($BCS_serialize_core (|Select_[$int]Value| (|v#ValueArray| (|v#Vector| ($ReadValue_stratified (|p#Reference| inline$$BorrowLoc$1$dst@1) (|Select_[Location]Value| (|contents#Memory| $m@20) (|l#Reference| inline$$BorrowLoc$1$dst@1))))) $Test_EventHandleGenerator_counter))))) (Integer (|l#ValueArray| (|v#Vector| inline$$Test_fresh_guid$0$$ret0@2))))))) 0) 0 (- (|i#Integer| (|ub#$Range| ($Range (Integer (|l#ValueArray| (|v#Vector| ($BCS_serialize_core (|Select_[$int]Value| (|v#ValueArray| (|v#Vector| ($ReadValue_stratified (|p#Reference| inline$$BorrowLoc$1$dst@1) (|Select_[Location]Value| (|contents#Memory| $m@20) (|l#Reference| inline$$BorrowLoc$1$dst@1))))) $Test_EventHandleGenerator_counter))))) (Integer (|l#ValueArray| (|v#Vector| inline$$Test_fresh_guid$0$$ret0@2)))))) (|i#Integer| (|lb#$Range| ($Range (Integer (|l#ValueArray| (|v#Vector| ($BCS_serialize_core (|Select_[$int]Value| (|v#ValueArray| (|v#Vector| ($ReadValue_stratified (|p#Reference| inline$$BorrowLoc$1$dst@1) (|Select_[Location]Value| (|contents#Memory| $m@20) (|l#Reference| inline$$BorrowLoc$1$dst@1))))) $Test_EventHandleGenerator_counter))))) (Integer (|l#ValueArray| (|v#Vector| inline$$Test_fresh_guid$0$$ret0@2)))))))))) ($BCS_serialize_core inline$$Test_fresh_guid$0$sender@0))))))))) (=> (=> (not $abort_flag@1) (|b#Boolean| (Boolean (and (|b#Boolean| (Boolean (and (|b#Boolean| (Boolean (IsEqual_stratified (Integer (|l#ValueArray| (|v#Vector| inline$$Test_fresh_guid$0$$ret0@2))) (Integer (+ (|i#Integer| (Integer (|l#ValueArray| (|v#Vector| ($BCS_serialize_core (|Select_[$int]Value| (|v#ValueArray| (|v#Vector| ($ReadValue_stratified (|p#Reference| inline$$BorrowLoc$1$dst@1) (|Select_[Location]Value| (|contents#Memory| $m@20) (|l#Reference| inline$$BorrowLoc$1$dst@1))))) $Test_EventHandleGenerator_counter)))))) (|i#Integer| (Integer (|l#ValueArray| (|v#Vector| ($BCS_serialize_core inline$$Test_fresh_guid$0$sender@0)))))))))) (|b#Boolean| (Boolean (IsEqual_stratified (Vector (ValueArray (|lambda#4| 0 (- (|i#Integer| (|ub#$Range| ($Range (Integer 0) (Integer (|l#ValueArray| (|v#Vector| ($BCS_serialize_core (|Select_[$int]Value| (|v#ValueArray| (|v#Vector| ($ReadValue_stratified (|p#Reference| inline$$BorrowLoc$1$dst@1) (|Select_[Location]Value| (|contents#Memory| $m@20) (|l#Reference| inline$$BorrowLoc$1$dst@1))))) $Test_EventHandleGenerator_counter)))))))) (|i#Integer| (|lb#$Range| ($Range (Integer 0) (Integer (|l#ValueArray| (|v#Vector| ($BCS_serialize_core (|Select_[$int]Value| (|v#ValueArray| (|v#Vector| ($ReadValue_stratified (|p#Reference| inline$$BorrowLoc$1$dst@1) (|Select_[Location]Value| (|contents#Memory| $m@20) (|l#Reference| inline$$BorrowLoc$1$dst@1))))) $Test_EventHandleGenerator_counter))))))))) (|v#ValueArray| (|v#Vector| inline$$Test_fresh_guid$0$$ret0@2)) (|i#Integer| (|lb#$Range| ($Range (Integer 0) (Integer (|l#ValueArray| (|v#Vector| ($BCS_serialize_core (|Select_[$int]Value| (|v#ValueArray| (|v#Vector| ($ReadValue_stratified (|p#Reference| inline$$BorrowLoc$1$dst@1) (|Select_[Location]Value| (|contents#Memory| $m@20) (|l#Reference| inline$$BorrowLoc$1$dst@1))))) $Test_EventHandleGenerator_counter)))))))) DefaultValue) (ite (< (- (|i#Integer| (|ub#$Range| ($Range (Integer 0) (Integer (|l#ValueArray| (|v#Vector| ($BCS_serialize_core (|Select_[$int]Value| (|v#ValueArray| (|v#Vector| ($ReadValue_stratified (|p#Reference| inline$$BorrowLoc$1$dst@1) (|Select_[Location]Value| (|contents#Memory| $m@20) (|l#Reference| inline$$BorrowLoc$1$dst@1))))) $Test_EventHandleGenerator_counter)))))))) (|i#Integer| (|lb#$Range| ($Range (Integer 0) (Integer (|l#ValueArray| (|v#Vector| ($BCS_serialize_core (|Select_[$int]Value| (|v#ValueArray| (|v#Vector| ($ReadValue_stratified (|p#Reference| inline$$BorrowLoc$1$dst@1) (|Select_[Location]Value| (|contents#Memory| $m@20) (|l#Reference| inline$$BorrowLoc$1$dst@1))))) $Test_EventHandleGenerator_counter))))))))) 0) 0 (- (|i#Integer| (|ub#$Range| ($Range (Integer 0) (Integer (|l#ValueArray| (|v#Vector| ($BCS_serialize_core (|Select_[$int]Value| (|v#ValueArray| (|v#Vector| ($ReadValue_stratified (|p#Reference| inline$$BorrowLoc$1$dst@1) (|Select_[Location]Value| (|contents#Memory| $m@20) (|l#Reference| inline$$BorrowLoc$1$dst@1))))) $Test_EventHandleGenerator_counter)))))))) (|i#Integer| (|lb#$Range| ($Range (Integer 0) (Integer (|l#ValueArray| (|v#Vector| ($BCS_serialize_core (|Select_[$int]Value| (|v#ValueArray| (|v#Vector| ($ReadValue_stratified (|p#Reference| inline$$BorrowLoc$1$dst@1) (|Select_[Location]Value| (|contents#Memory| $m@20) (|l#Reference| inline$$BorrowLoc$1$dst@1))))) $Test_EventHandleGenerator_counter)))))))))))) ($BCS_serialize_core (|Select_[$int]Value| (|v#ValueArray| (|v#Vector| ($ReadValue_stratified (|p#Reference| inline$$BorrowLoc$1$dst@1) (|Select_[Location]Value| (|contents#Memory| $m@20) (|l#Reference| inline$$BorrowLoc$1$dst@1))))) $Test_EventHandleGenerator_counter)))))))) (|b#Boolean| (Boolean (IsEqual_stratified (Vector (ValueArray (|lambda#4| 0 (- (|i#Integer| (|ub#$Range| ($Range (Integer (|l#ValueArray| (|v#Vector| ($BCS_serialize_core (|Select_[$int]Value| (|v#ValueArray| (|v#Vector| ($ReadValue_stratified (|p#Reference| inline$$BorrowLoc$1$dst@1) (|Select_[Location]Value| (|contents#Memory| $m@20) (|l#Reference| inline$$BorrowLoc$1$dst@1))))) $Test_EventHandleGenerator_counter))))) (Integer (|l#ValueArray| (|v#Vector| inline$$Test_fresh_guid$0$$ret0@2)))))) (|i#Integer| (|lb#$Range| ($Range (Integer (|l#ValueArray| (|v#Vector| ($BCS_serialize_core (|Select_[$int]Value| (|v#ValueArray| (|v#Vector| ($ReadValue_stratified (|p#Reference| inline$$BorrowLoc$1$dst@1) (|Select_[Location]Value| (|contents#Memory| $m@20) (|l#Reference| inline$$BorrowLoc$1$dst@1))))) $Test_EventHandleGenerator_counter))))) (Integer (|l#ValueArray| (|v#Vector| inline$$Test_fresh_guid$0$$ret0@2))))))) (|v#ValueArray| (|v#Vector| inline$$Test_fresh_guid$0$$ret0@2)) (|i#Integer| (|lb#$Range| ($Range (Integer (|l#ValueArray| (|v#Vector| ($BCS_serialize_core (|Select_[$int]Value| (|v#ValueArray| (|v#Vector| ($ReadValue_stratified (|p#Reference| inline$$BorrowLoc$1$dst@1) (|Select_[Location]Value| (|contents#Memory| $m@20) (|l#Reference| inline$$BorrowLoc$1$dst@1))))) $Test_EventHandleGenerator_counter))))) (Integer (|l#ValueArray| (|v#Vector| inline$$Test_fresh_guid$0$$ret0@2)))))) DefaultValue) (ite (< (- (|i#Integer| (|ub#$Range| ($Range (Integer (|l#ValueArray| (|v#Vector| ($BCS_serialize_core (|Select_[$int]Value| (|v#ValueArray| (|v#Vector| ($ReadValue_stratified (|p#Reference| inline$$BorrowLoc$1$dst@1) (|Select_[Location]Value| (|contents#Memory| $m@20) (|l#Reference| inline$$BorrowLoc$1$dst@1))))) $Test_EventHandleGenerator_counter))))) (Integer (|l#ValueArray| (|v#Vector| inline$$Test_fresh_guid$0$$ret0@2)))))) (|i#Integer| (|lb#$Range| ($Range (Integer (|l#ValueArray| (|v#Vector| ($BCS_serialize_core (|Select_[$int]Value| (|v#ValueArray| (|v#Vector| ($ReadValue_stratified (|p#Reference| inline$$BorrowLoc$1$dst@1) (|Select_[Location]Value| (|contents#Memory| $m@20) (|l#Reference| inline$$BorrowLoc$1$dst@1))))) $Test_EventHandleGenerator_counter))))) (Integer (|l#ValueArray| (|v#Vector| inline$$Test_fresh_guid$0$$ret0@2))))))) 0) 0 (- (|i#Integer| (|ub#$Range| ($Range (Integer (|l#ValueArray| (|v#Vector| ($BCS_serialize_core (|Select_[$int]Value| (|v#ValueArray| (|v#Vector| ($ReadValue_stratified (|p#Reference| inline$$BorrowLoc$1$dst@1) (|Select_[Location]Value| (|contents#Memory| $m@20) (|l#Reference| inline$$BorrowLoc$1$dst@1))))) $Test_EventHandleGenerator_counter))))) (Integer (|l#ValueArray| (|v#Vector| inline$$Test_fresh_guid$0$$ret0@2)))))) (|i#Integer| (|lb#$Range| ($Range (Integer (|l#ValueArray| (|v#Vector| ($BCS_serialize_core (|Select_[$int]Value| (|v#ValueArray| (|v#Vector| ($ReadValue_stratified (|p#Reference| inline$$BorrowLoc$1$dst@1) (|Select_[Location]Value| (|contents#Memory| $m@20) (|l#Reference| inline$$BorrowLoc$1$dst@1))))) $Test_EventHandleGenerator_counter))))) (Integer (|l#ValueArray| (|v#Vector| inline$$Test_fresh_guid$0$$ret0@2)))))))))) ($BCS_serialize_core inline$$Test_fresh_guid$0$sender@0)))))))) (and (=> (= (ControlFlow 0 18951) 19374) inline$$Test_new_event_handle_impl$0$anon13_Then_correct) (=> (= (ControlFlow 0 18951) 19019) inline$$Test_new_event_handle_impl$0$anon13_Else_correct)))))))))) (let ((inline$$Test_fresh_guid$0$Abort_correct (=> (and (and (= $m@36 $m@20) (= $abort_flag@1 true)) (and (= inline$$Test_fresh_guid$0$$ret0@2 DefaultValue) (= (ControlFlow 0 18717) 18951))) inline$$Test_fresh_guid$0$Return_correct))) (let ((inline$$Test_fresh_guid$0$anon31_Then_correct (=> $abort_flag@0 (=> (and ($DebugTrackAbort 3 1189) (= (ControlFlow 0 18709) 18717)) inline$$Test_fresh_guid$0$Abort_correct)))) (let ((inline$$Test_fresh_guid$0$anon29_Then_correct (=> $abort_flag@0 (=> (and ($DebugTrackAbort 3 1167) (= (ControlFlow 0 18745) 18717)) inline$$Test_fresh_guid$0$Abort_correct)))) (let ((inline$$Test_fresh_guid$0$anon22_correct (=> (and (and (= $m@36 $m@35) (= $abort_flag@1 $abort_flag@0)) (and (= inline$$Test_fresh_guid$0$$ret0@2 inline$$Test_fresh_guid$0$$ret0@1) (= (ControlFlow 0 18667) 18951))) inline$$Test_fresh_guid$0$Return_correct))) (let ((inline$$Test_fresh_guid$0$anon33_Else_correct (=> (and (not true) (= (ControlFlow 0 18665) 18667)) inline$$Test_fresh_guid$0$anon22_correct))) (let ((inline$$Test_fresh_guid$0$anon33_Then_correct (=> (and ($DebugTrackLocal 3 1238 19 inline$$Test_fresh_guid$0$$ret0@1) (= (ControlFlow 0 18681) 18667)) inline$$Test_fresh_guid$0$anon22_correct))) (let ((inline$$Test_fresh_guid$0$anon20$1_correct (=> (and (and (and (is-Vector inline$$CopyOrMoveValue$14$local@0) (let ((va@@33 (|v#Vector| inline$$CopyOrMoveValue$14$local@0))) (let ((l@@33 (|l#ValueArray| va@@33))) (and (<= 0 l@@33) (forall ((x@@33 Int) ) (! (=> (or (< x@@33 0) (>= x@@33 l@@33)) (= (|Select_[$int]Value| (|v#ValueArray| va@@33) x@@33) DefaultValue)) :qid |outputbp.826:21| :skolemid |17| :pattern ( (|Select_[$int]Value| (|v#ValueArray| va@@33) x@@33)) )))))) (forall (($$0@@14 Int) ) (! (=> (and (>= $$0@@14 0) (< $$0@@14 (|l#ValueArray| (|v#Vector| inline$$CopyOrMoveValue$14$local@0)))) (and (and (is-Integer (|Select_[$int]Value| (|v#ValueArray| (|v#Vector| inline$$CopyOrMoveValue$14$local@0)) $$0@@14)) (>= (|i#Integer| (|Select_[$int]Value| (|v#ValueArray| (|v#Vector| inline$$CopyOrMoveValue$14$local@0)) $$0@@14)) 0)) (<= (|i#Integer| (|Select_[$int]Value| (|v#ValueArray| (|v#Vector| inline$$CopyOrMoveValue$14$local@0)) $$0@@14)) MAX_U8))) :qid |outputbp.1823:52| :skolemid |43| :pattern ( (|Select_[$int]Value| (|v#ValueArray| (|v#Vector| inline$$CopyOrMoveValue$14$local@0)) $$0@@14)) ))) (and (= $m@35 (Memory (|Store_[Location]$bool| (|domain#Memory| $m@34) (Local (+ $local_counter@1 18)) true) (|Store_[Location]Value| (|contents#Memory| $m@34) (Local (+ $local_counter@1 18)) inline$$CopyOrMoveValue$14$local@0))) (= inline$$Test_fresh_guid$0$$ret0@1 (|Select_[Location]Value| (|contents#Memory| $m@35) (Local (+ $local_counter@1 18)))))) (and (=> (= (ControlFlow 0 18659) 18681) inline$$Test_fresh_guid$0$anon33_Then_correct) (=> (= (ControlFlow 0 18659) 18665) inline$$Test_fresh_guid$0$anon33_Else_correct))))) (let ((inline$$CopyOrMoveValue$14$Entry_correct (=> (and (= inline$$CopyOrMoveValue$14$local@0 (|Select_[Location]Value| (|contents#Memory| $m@34) (Local (+ $local_counter@1 2)))) (= (ControlFlow 0 18579) 18659)) inline$$Test_fresh_guid$0$anon20$1_correct))) (let ((inline$$Test_fresh_guid$0$anon32_Else_correct (=> (and (not true) (= (ControlFlow 0 18548) 18579)) inline$$CopyOrMoveValue$14$Entry_correct))) (let ((inline$$Test_fresh_guid$0$anon32_Then_correct (=> (and ($DebugTrackLocal 3 1189 0 ($ReadValue_stratified (|p#Reference| inline$$BorrowLoc$1$dst@1) (|Select_[Location]Value| (|contents#Memory| $m@34) (|l#Reference| inline$$BorrowLoc$1$dst@1)))) (= (ControlFlow 0 18699) 18579)) inline$$CopyOrMoveValue$14$Entry_correct))) (let ((inline$$Test_fresh_guid$0$anon31_Else_correct (=> (not $abort_flag@0) (and (=> (= (ControlFlow 0 18542) 18699) inline$$Test_fresh_guid$0$anon32_Then_correct) (=> (= (ControlFlow 0 18542) 18548) inline$$Test_fresh_guid$0$anon32_Else_correct))))) (let ((inline$$WriteRef$2$anon0_correct (=> (and (and (= inline$$WriteRef$2$l@1 (|l#Reference| inline$$BorrowLoc$2$dst@1)) (= inline$$WriteRef$2$v@1 (|Select_[Location]Value| (|contents#Memory| $m@33) inline$$WriteRef$2$l@1))) (and (= inline$$WriteRef$2$v@2 ($UpdateValue_stratified (|p#Reference| inline$$BorrowLoc$2$dst@1) inline$$WriteRef$2$v@1 inline$$WriteRef$2$new_v@0)) (= $m@34 (Memory (|domain#Memory| $m@33) (|Store_[Location]Value| (|contents#Memory| $m@33) inline$$WriteRef$2$l@1 inline$$WriteRef$2$v@2))))) (and (=> (= (ControlFlow 0 18524) 18709) inline$$Test_fresh_guid$0$anon31_Then_correct) (=> (= (ControlFlow 0 18524) 18542) inline$$Test_fresh_guid$0$anon31_Else_correct))))) (let ((inline$$WriteRef$2$Entry_correct (=> (and (= inline$$WriteRef$2$new_v@0 (Vector (let ((l2@@0 (|l#ValueArray| (|v#Vector| inline$$Vector_append$1$other@0)))) (let ((l1@@0 (|l#ValueArray| (|v#Vector| inline$$Vector_append$1$v@1)))) (ValueArray (|lambda#2| 0 (+ l1@@0 l2@@0) l1@@0 (|v#ValueArray| (|v#Vector| inline$$Vector_append$1$v@1)) (|v#ValueArray| (|v#Vector| inline$$Vector_append$1$other@0)) l1@@0 DefaultValue) (+ l1@@0 l2@@0)))))) (= (ControlFlow 0 18484) 18524)) inline$$WriteRef$2$anon0_correct))) (let ((inline$$Vector_append$1$anon0_correct (=> (and (and (= inline$$Vector_append$1$v@1 ($ReadValue_stratified (|p#Reference| inline$$BorrowLoc$2$dst@1) (|Select_[Location]Value| (|contents#Memory| $m@33) (|l#Reference| inline$$BorrowLoc$2$dst@1)))) (is-Vector inline$$Vector_append$1$v@1)) (and (is-Vector inline$$Vector_append$1$other@0) (= (ControlFlow 0 18528) 18484))) inline$$WriteRef$2$Entry_correct))) (let ((inline$$Vector_append$1$Entry_correct (=> (= inline$$Vector_append$1$ta@0 IntegerType) (=> (and (= inline$$Vector_append$1$other@0 (|Select_[Location]Value| (|contents#Memory| $m@33) (Local (+ $local_counter@1 17)))) (= (ControlFlow 0 18394) 18528)) inline$$Vector_append$1$anon0_correct)))) (let ((inline$$Test_fresh_guid$0$anon16$2_correct (=> (and (and (and (is-Vector inline$$CopyOrMoveValue$13$local@0) (let ((va@@34 (|v#Vector| inline$$CopyOrMoveValue$13$local@0))) (let ((l@@34 (|l#ValueArray| va@@34))) (and (<= 0 l@@34) (forall ((x@@34 Int) ) (! (=> (or (< x@@34 0) (>= x@@34 l@@34)) (= (|Select_[$int]Value| (|v#ValueArray| va@@34) x@@34) DefaultValue)) :qid |outputbp.826:21| :skolemid |17| :pattern ( (|Select_[$int]Value| (|v#ValueArray| va@@34) x@@34)) )))))) (forall (($$0@@15 Int) ) (! (=> (and (>= $$0@@15 0) (< $$0@@15 (|l#ValueArray| (|v#Vector| inline$$CopyOrMoveValue$13$local@0)))) (and (and (is-Integer (|Select_[$int]Value| (|v#ValueArray| (|v#Vector| inline$$CopyOrMoveValue$13$local@0)) $$0@@15)) (>= (|i#Integer| (|Select_[$int]Value| (|v#ValueArray| (|v#Vector| inline$$CopyOrMoveValue$13$local@0)) $$0@@15)) 0)) (<= (|i#Integer| (|Select_[$int]Value| (|v#ValueArray| (|v#Vector| inline$$CopyOrMoveValue$13$local@0)) $$0@@15)) MAX_U8))) :qid |outputbp.1809:52| :skolemid |42| :pattern ( (|Select_[$int]Value| (|v#ValueArray| (|v#Vector| inline$$CopyOrMoveValue$13$local@0)) $$0@@15)) ))) (and (= $m@33 (Memory (|Store_[Location]$bool| (|domain#Memory| $m@32) (Local (+ $local_counter@1 17)) true) (|Store_[Location]Value| (|contents#Memory| $m@32) (Local (+ $local_counter@1 17)) inline$$CopyOrMoveValue$13$local@0))) (= (ControlFlow 0 18534) 18394))) inline$$Vector_append$1$Entry_correct))) (let ((inline$$CopyOrMoveValue$13$Entry_correct (=> (and (= inline$$CopyOrMoveValue$13$local@0 (|Select_[Location]Value| (|contents#Memory| $m@32) (Local (+ $local_counter@1 3)))) (= (ControlFlow 0 18258) 18534)) inline$$Test_fresh_guid$0$anon16$2_correct))) (let ((inline$$Test_fresh_guid$0$anon16$1_correct (=> (and (and (and (is-Vector ($ReadValue_stratified (|p#Reference| inline$$BorrowLoc$2$dst@1) (|Select_[Location]Value| (|contents#Memory| $m@32) (|l#Reference| inline$$BorrowLoc$2$dst@1)))) (let ((va@@35 (|v#Vector| ($ReadValue_stratified (|p#Reference| inline$$BorrowLoc$2$dst@1) (|Select_[Location]Value| (|contents#Memory| $m@32) (|l#Reference| inline$$BorrowLoc$2$dst@1)))))) (let ((l@@35 (|l#ValueArray| va@@35))) (and (<= 0 l@@35) (forall ((x@@35 Int) ) (! (=> (or (< x@@35 0) (>= x@@35 l@@35)) (= (|Select_[$int]Value| (|v#ValueArray| va@@35) x@@35) DefaultValue)) :qid |outputbp.826:21| :skolemid |17| :pattern ( (|Select_[$int]Value| (|v#ValueArray| va@@35) x@@35)) )))))) (forall (($$1@@0 Int) ) (! (=> (and (>= $$1@@0 0) (< $$1@@0 (|l#ValueArray| (|v#Vector| ($ReadValue_stratified (|p#Reference| inline$$BorrowLoc$2$dst@1) (|Select_[Location]Value| (|contents#Memory| $m@32) (|l#Reference| inline$$BorrowLoc$2$dst@1))))))) (and (and (is-Integer (|Select_[$int]Value| (|v#ValueArray| (|v#Vector| ($ReadValue_stratified (|p#Reference| inline$$BorrowLoc$2$dst@1) (|Select_[Location]Value| (|contents#Memory| $m@32) (|l#Reference| inline$$BorrowLoc$2$dst@1))))) $$1@@0)) (>= (|i#Integer| (|Select_[$int]Value| (|v#ValueArray| (|v#Vector| ($ReadValue_stratified (|p#Reference| inline$$BorrowLoc$2$dst@1) (|Select_[Location]Value| (|contents#Memory| $m@32) (|l#Reference| inline$$BorrowLoc$2$dst@1))))) $$1@@0)) 0)) (<= (|i#Integer| (|Select_[$int]Value| (|v#ValueArray| (|v#Vector| ($ReadValue_stratified (|p#Reference| inline$$BorrowLoc$2$dst@1) (|Select_[Location]Value| (|contents#Memory| $m@32) (|l#Reference| inline$$BorrowLoc$2$dst@1))))) $$1@@0)) MAX_U8))) :qid |outputbp.1805:70| :skolemid |41| :pattern ( (|Select_[$int]Value| (|v#ValueArray| (|v#Vector| ($ReadValue_stratified (|p#Reference| inline$$BorrowLoc$2$dst@1) (|Select_[Location]Value| (|contents#Memory| $m@32) (|l#Reference| inline$$BorrowLoc$2$dst@1))))) $$1@@0)) ))) (= (ControlFlow 0 18268) 18258)) inline$$CopyOrMoveValue$13$Entry_correct))) (let ((inline$$BorrowLoc$2$anon0_correct (=> (and (= inline$$BorrowLoc$2$dst@1 (Reference (Local inline$$BorrowLoc$2$l@0) EmptyPath)) (= (ControlFlow 0 18159) 18268)) inline$$Test_fresh_guid$0$anon16$1_correct))) (let ((inline$$BorrowLoc$2$Entry_correct (=> (and (= inline$$BorrowLoc$2$l@0 (+ $local_counter@1 2)) (= (ControlFlow 0 18149) 18159)) inline$$BorrowLoc$2$anon0_correct))) (let ((inline$$Test_fresh_guid$0$anon30_Else_correct (=> (and (not true) (= (ControlFlow 0 18116) 18149)) inline$$BorrowLoc$2$Entry_correct))) (let ((inline$$Test_fresh_guid$0$anon30_Then_correct (=> (and ($DebugTrackLocal 3 1133 0 ($ReadValue_stratified (|p#Reference| inline$$BorrowLoc$1$dst@1) (|Select_[Location]Value| (|contents#Memory| $m@32) (|l#Reference| inline$$BorrowLoc$1$dst@1)))) (= (ControlFlow 0 18735) 18149)) inline$$BorrowLoc$2$Entry_correct))) (let ((inline$$WriteRef$1$anon0_correct (=> (and (and (= inline$$WriteRef$1$l@1 (|l#Reference| inline$$BorrowField$2$dst@1)) (= inline$$WriteRef$1$v@1 (|Select_[Location]Value| (|contents#Memory| $m@31) inline$$WriteRef$1$l@1))) (and (= inline$$WriteRef$1$v@2 ($UpdateValue_stratified (|p#Reference| inline$$BorrowField$2$dst@1) inline$$WriteRef$1$v@1 inline$$WriteRef$1$new_v@0)) (= $m@32 (Memory (|domain#Memory| $m@31) (|Store_[Location]Value| (|contents#Memory| $m@31) inline$$WriteRef$1$l@1 inline$$WriteRef$1$v@2))))) (and (=> (= (ControlFlow 0 18104) 18735) inline$$Test_fresh_guid$0$anon30_Then_correct) (=> (= (ControlFlow 0 18104) 18116) inline$$Test_fresh_guid$0$anon30_Else_correct))))) (let ((inline$$WriteRef$1$Entry_correct (=> (and (= inline$$WriteRef$1$new_v@0 (|Select_[Location]Value| (|contents#Memory| $m@31) (Local (+ $local_counter@1 13)))) (= (ControlFlow 0 18064) 18104)) inline$$WriteRef$1$anon0_correct))) (let ((inline$$Test_fresh_guid$0$anon29_Else$2_correct (=> (and (and (and (is-Integer ($ReadValue_stratified (|p#Reference| inline$$BorrowField$2$dst@1) (|Select_[Location]Value| (|contents#Memory| $m@31) (|l#Reference| inline$$BorrowField$2$dst@1)))) (>= (|i#Integer| ($ReadValue_stratified (|p#Reference| inline$$BorrowField$2$dst@1) (|Select_[Location]Value| (|contents#Memory| $m@31) (|l#Reference| inline$$BorrowField$2$dst@1)))) 0)) (<= (|i#Integer| ($ReadValue_stratified (|p#Reference| inline$$BorrowField$2$dst@1) (|Select_[Location]Value| (|contents#Memory| $m@31) (|l#Reference| inline$$BorrowField$2$dst@1)))) MAX_U64)) (= (ControlFlow 0 18108) 18064)) inline$$WriteRef$1$Entry_correct))) (let ((inline$$BorrowField$2$anon0_correct (=> (= inline$$BorrowField$2$p@1 (|p#Reference| inline$$BorrowLoc$1$dst@1)) (=> (and (and (= inline$$BorrowField$2$size@1 (|size#Path| inline$$BorrowField$2$p@1)) (= inline$$BorrowField$2$p@2 (Path (|Store_[$int]$int| (|p#Path| inline$$BorrowField$2$p@1) inline$$BorrowField$2$size@1 $Test_EventHandleGenerator_counter) (+ inline$$BorrowField$2$size@1 1)))) (and (= inline$$BorrowField$2$dst@1 (Reference (|l#Reference| inline$$BorrowLoc$1$dst@1) inline$$BorrowField$2$p@2)) (= (ControlFlow 0 17970) 18108))) inline$$Test_fresh_guid$0$anon29_Else$2_correct)))) (let ((inline$$Test_fresh_guid$0$anon29_Else_correct (=> (not $abort_flag@0) (=> (and (= $m@31 (Memory (|Store_[Location]$bool| (|domain#Memory| $m@30) (Local (+ $local_counter@1 13)) true) (|Store_[Location]Value| (|contents#Memory| $m@30) (Local (+ $local_counter@1 13)) inline$$AddU64$0$dst@2))) (= (ControlFlow 0 17870) 17970)) inline$$BorrowField$2$anon0_correct)))) (let ((inline$$AddU64$0$anon3_Else_correct (=> (and (and (>= MAX_U64 (+ (|i#Integer| inline$$AddU64$0$src1@0) (|i#Integer| inline$$AddU64$0$src2@0))) (= inline$$AddU64$0$dst@1 (Integer (+ (|i#Integer| inline$$AddU64$0$src1@0) (|i#Integer| inline$$AddU64$0$src2@0))))) (and (= $abort_flag@0 false) (= inline$$AddU64$0$dst@2 inline$$AddU64$0$dst@1))) (and (=> (= (ControlFlow 0 17795) 18745) inline$$Test_fresh_guid$0$anon29_Then_correct) (=> (= (ControlFlow 0 17795) 17870) inline$$Test_fresh_guid$0$anon29_Else_correct))))) (let ((inline$$AddU64$0$anon3_Then_correct (=> (> (+ (|i#Integer| inline$$AddU64$0$src1@0) (|i#Integer| inline$$AddU64$0$src2@0)) MAX_U64) (=> (and (= $abort_flag@0 true) (= inline$$AddU64$0$dst@2 inline$$AddU64$0$dst@0)) (and (=> (= (ControlFlow 0 17813) 18745) inline$$Test_fresh_guid$0$anon29_Then_correct) (=> (= (ControlFlow 0 17813) 17870) inline$$Test_fresh_guid$0$anon29_Else_correct)))))) (let ((inline$$AddU64$0$Entry_correct (=> (and (= inline$$AddU64$0$src1@0 (|Select_[Location]Value| (|contents#Memory| $m@30) (Local (+ $local_counter@1 11)))) (= inline$$AddU64$0$src2@0 (|Select_[Location]Value| (|contents#Memory| $m@30) (Local (+ $local_counter@1 12))))) (and (=> (= (ControlFlow 0 17765) (- 0 31292)) true) (and (=> (= (ControlFlow 0 17765) 17813) inline$$AddU64$0$anon3_Then_correct) (=> (= (ControlFlow 0 17765) 17795) inline$$AddU64$0$anon3_Else_correct)))))) (let ((inline$$Test_fresh_guid$0$anon12$3_correct (=> (and (and (and (is-Integer inline$$CopyOrMoveValue$12$local@0) (>= (|i#Integer| inline$$CopyOrMoveValue$12$local@0) 0)) (<= (|i#Integer| inline$$CopyOrMoveValue$12$local@0) MAX_U64)) (and (and (= $m@29 (Memory (|Store_[Location]$bool| (|domain#Memory| $m@28) (Local (+ $local_counter@1 11)) true) (|Store_[Location]Value| (|contents#Memory| $m@28) (Local (+ $local_counter@1 11)) inline$$CopyOrMoveValue$12$local@0))) (= inline$$Test_fresh_guid$0$$tmp@1 (Integer 1))) (and (= $m@30 (Memory (|Store_[Location]$bool| (|domain#Memory| $m@29) (Local (+ $local_counter@1 12)) true) (|Store_[Location]Value| (|contents#Memory| $m@29) (Local (+ $local_counter@1 12)) inline$$Test_fresh_guid$0$$tmp@1))) (= (ControlFlow 0 17819) 17765)))) inline$$AddU64$0$Entry_correct))) (let ((inline$$CopyOrMoveValue$12$Entry_correct (=> (and (= inline$$CopyOrMoveValue$12$local@0 (|Select_[Location]Value| (|contents#Memory| $m@28) (Local (+ $local_counter@1 10)))) (= (ControlFlow 0 17623) 17819)) inline$$Test_fresh_guid$0$anon12$3_correct))) (let ((inline$$Test_fresh_guid$0$anon12$2_correct (=> (and (and (and (is-Integer inline$$ReadRef$1$v@1) (>= (|i#Integer| inline$$ReadRef$1$v@1) 0)) (<= (|i#Integer| inline$$ReadRef$1$v@1) MAX_U64)) (and (= $m@28 (Memory (|Store_[Location]$bool| (|domain#Memory| $m@27) (Local (+ $local_counter@1 10)) true) (|Store_[Location]Value| (|contents#Memory| $m@27) (Local (+ $local_counter@1 10)) inline$$ReadRef$1$v@1))) (= (ControlFlow 0 17633) 17623))) inline$$CopyOrMoveValue$12$Entry_correct))) (let ((inline$$ReadRef$1$anon0_correct (=> (and (= inline$$ReadRef$1$v@1 ($ReadValue_stratified (|p#Reference| inline$$BorrowField$1$dst@1) (|Select_[Location]Value| (|contents#Memory| $m@27) (|l#Reference| inline$$BorrowField$1$dst@1)))) (= (ControlFlow 0 17562) 17633)) inline$$Test_fresh_guid$0$anon12$2_correct))) (let ((inline$$BorrowField$1$anon0_correct (=> (= inline$$BorrowField$1$p@1 (|p#Reference| inline$$BorrowLoc$1$dst@1)) (=> (and (and (= inline$$BorrowField$1$size@1 (|size#Path| inline$$BorrowField$1$p@1)) (= inline$$BorrowField$1$p@2 (Path (|Store_[$int]$int| (|p#Path| inline$$BorrowField$1$p@1) inline$$BorrowField$1$size@1 $Test_EventHandleGenerator_counter) (+ inline$$BorrowField$1$size@1 1)))) (and (= inline$$BorrowField$1$dst@1 (Reference (|l#Reference| inline$$BorrowLoc$1$dst@1) inline$$BorrowField$1$p@2)) (= (ControlFlow 0 17502) 17562))) inline$$ReadRef$1$anon0_correct)))) (let ((inline$$Test_fresh_guid$0$anon28_Else_correct (=> (and (not true) (= (ControlFlow 0 17333) 17502)) inline$$BorrowField$1$anon0_correct))) (let ((inline$$Test_fresh_guid$0$anon28_Then_correct (=> (and ($DebugTrackLocal 3 1078 2 inline$$CopyOrMoveValue$11$local@0) (= (ControlFlow 0 18759) 17502)) inline$$BorrowField$1$anon0_correct))) (let ((inline$$Test_fresh_guid$0$anon27_Else$1_correct (=> (and (and (and (is-Vector inline$$CopyOrMoveValue$11$local@0) (let ((va@@36 (|v#Vector| inline$$CopyOrMoveValue$11$local@0))) (let ((l@@36 (|l#ValueArray| va@@36))) (and (<= 0 l@@36) (forall ((x@@36 Int) ) (! (=> (or (< x@@36 0) (>= x@@36 l@@36)) (= (|Select_[$int]Value| (|v#ValueArray| va@@36) x@@36) DefaultValue)) :qid |outputbp.826:21| :skolemid |17| :pattern ( (|Select_[$int]Value| (|v#ValueArray| va@@36) x@@36)) )))))) (forall (($$0@@16 Int) ) (! (=> (and (>= $$0@@16 0) (< $$0@@16 (|l#ValueArray| (|v#Vector| inline$$CopyOrMoveValue$11$local@0)))) (and (and (is-Integer (|Select_[$int]Value| (|v#ValueArray| (|v#Vector| inline$$CopyOrMoveValue$11$local@0)) $$0@@16)) (>= (|i#Integer| (|Select_[$int]Value| (|v#ValueArray| (|v#Vector| inline$$CopyOrMoveValue$11$local@0)) $$0@@16)) 0)) (<= (|i#Integer| (|Select_[$int]Value| (|v#ValueArray| (|v#Vector| inline$$CopyOrMoveValue$11$local@0)) $$0@@16)) MAX_U8))) :qid |outputbp.1762:52| :skolemid |40| :pattern ( (|Select_[$int]Value| (|v#ValueArray| (|v#Vector| inline$$CopyOrMoveValue$11$local@0)) $$0@@16)) ))) (= $m@27 (Memory (|Store_[Location]$bool| (|domain#Memory| $m@26) (Local (+ $local_counter@1 2)) true) (|Store_[Location]Value| (|contents#Memory| $m@26) (Local (+ $local_counter@1 2)) inline$$CopyOrMoveValue$11$local@0)))) (and (=> (= (ControlFlow 0 17327) 18759) inline$$Test_fresh_guid$0$anon28_Then_correct) (=> (= (ControlFlow 0 17327) 17333) inline$$Test_fresh_guid$0$anon28_Else_correct))))) (let ((inline$$CopyOrMoveValue$11$Entry_correct (=> (and (= inline$$CopyOrMoveValue$11$local@0 (|Select_[Location]Value| (|contents#Memory| $m@26) (Local (+ $local_counter@1 8)))) (= (ControlFlow 0 17257) 17327)) inline$$Test_fresh_guid$0$anon27_Else$1_correct))) (let ((inline$$Test_fresh_guid$0$anon27_Else_correct (=> (not false) (=> (and (and (and (is-Vector call2formal@res@0@@1) (let ((va@@37 (|v#Vector| call2formal@res@0@@1))) (let ((l@@37 (|l#ValueArray| va@@37))) (and (<= 0 l@@37) (forall ((x@@37 Int) ) (! (=> (or (< x@@37 0) (>= x@@37 l@@37)) (= (|Select_[$int]Value| (|v#ValueArray| va@@37) x@@37) DefaultValue)) :qid |outputbp.826:21| :skolemid |17| :pattern ( (|Select_[$int]Value| (|v#ValueArray| va@@37) x@@37)) )))))) (forall (($$0@@17 Int) ) (! (=> (and (>= $$0@@17 0) (< $$0@@17 (|l#ValueArray| (|v#Vector| call2formal@res@0@@1)))) (and (and (is-Integer (|Select_[$int]Value| (|v#ValueArray| (|v#Vector| call2formal@res@0@@1)) $$0@@17)) (>= (|i#Integer| (|Select_[$int]Value| (|v#ValueArray| (|v#Vector| call2formal@res@0@@1)) $$0@@17)) 0)) (<= (|i#Integer| (|Select_[$int]Value| (|v#ValueArray| (|v#Vector| call2formal@res@0@@1)) $$0@@17)) MAX_U8))) :qid |outputbp.1756:51| :skolemid |39| :pattern ( (|Select_[$int]Value| (|v#ValueArray| (|v#Vector| call2formal@res@0@@1)) $$0@@17)) ))) (and (= $m@26 (Memory (|Store_[Location]$bool| (|domain#Memory| $m@25) (Local (+ $local_counter@1 8)) true) (|Store_[Location]Value| (|contents#Memory| $m@25) (Local (+ $local_counter@1 8)) call2formal@res@0@@1))) (= (ControlFlow 0 17267) 17257))) inline$$CopyOrMoveValue$11$Entry_correct)))) (let ((inline$$Test_fresh_guid$0$anon8$2_correct (=> (and (and (and (and (is-Integer inline$$ReadRef$0$v@1) (>= (|i#Integer| inline$$ReadRef$0$v@1) 0)) (<= (|i#Integer| inline$$ReadRef$0$v@1) MAX_U64)) (and (and (= $m@25 (Memory (|Store_[Location]$bool| (|domain#Memory| $m@24) (Local (+ $local_counter@1 7)) true) (|Store_[Location]Value| (|contents#Memory| $m@24) (Local (+ $local_counter@1 7)) inline$$ReadRef$0$v@1))) (= call0formal@ta@0@@1 IntegerType)) (and (= call1formal@v@0@@1 (|Select_[Location]Value| (|contents#Memory| $m@25) (Local (+ $local_counter@1 7)))) (= call2formal@res@0@@1 ($BCS_serialize_core call1formal@v@0@@1))))) (and (and (and (is-Vector call2formal@res@0@@1) (let ((va@@38 (|v#Vector| call2formal@res@0@@1))) (let ((l@@38 (|l#ValueArray| va@@38))) (and (<= 0 l@@38) (forall ((x@@38 Int) ) (! (=> (or (< x@@38 0) (>= x@@38 l@@38)) (= (|Select_[$int]Value| (|v#ValueArray| va@@38) x@@38) DefaultValue)) :qid |outputbp.826:21| :skolemid |17| :pattern ( (|Select_[$int]Value| (|v#ValueArray| va@@38) x@@38)) )))))) (forall ((i@@8 Int) ) (! (=> (and (<= 0 i@@8) (< i@@8 (|l#ValueArray| (|v#Vector| call2formal@res@0@@1)))) (and (and (is-Integer (|Select_[$int]Value| (|v#ValueArray| (|v#Vector| call2formal@res@0@@1)) i@@8)) (>= (|i#Integer| (|Select_[$int]Value| (|v#ValueArray| (|v#Vector| call2formal@res@0@@1)) i@@8)) 0)) (<= (|i#Integer| (|Select_[$int]Value| (|v#ValueArray| (|v#Vector| call2formal@res@0@@1)) i@@8)) MAX_U8))) :qid |outputbp.131:14| :skolemid |2| :pattern ( (|Select_[$int]Value| (|v#ValueArray| (|v#Vector| call2formal@res@0@@1)) i@@8)) ))) (> (|l#ValueArray| (|v#Vector| call2formal@res@0@@1)) 0))) (and (=> (= (ControlFlow 0 17164) 18769) inline$$Test_fresh_guid$0$anon27_Then_correct) (=> (= (ControlFlow 0 17164) 17267) inline$$Test_fresh_guid$0$anon27_Else_correct))))) (let ((inline$$ReadRef$0$anon0_correct (=> (and (= inline$$ReadRef$0$v@1 ($ReadValue_stratified (|p#Reference| inline$$BorrowField$0$dst@1) (|Select_[Location]Value| (|contents#Memory| $m@24) (|l#Reference| inline$$BorrowField$0$dst@1)))) (= (ControlFlow 0 17132) 17164)) inline$$Test_fresh_guid$0$anon8$2_correct))) (let ((inline$$BorrowField$0$anon0_correct (=> (= inline$$BorrowField$0$p@1 (|p#Reference| inline$$BorrowLoc$1$dst@1)) (=> (and (and (= inline$$BorrowField$0$size@1 (|size#Path| inline$$BorrowField$0$p@1)) (= inline$$BorrowField$0$p@2 (Path (|Store_[$int]$int| (|p#Path| inline$$BorrowField$0$p@1) inline$$BorrowField$0$size@1 $Test_EventHandleGenerator_counter) (+ inline$$BorrowField$0$size@1 1)))) (and (= inline$$BorrowField$0$dst@1 (Reference (|l#Reference| inline$$BorrowLoc$1$dst@1) inline$$BorrowField$0$p@2)) (= (ControlFlow 0 17072) 17132))) inline$$ReadRef$0$anon0_correct)))) (let ((inline$$Test_fresh_guid$0$anon26_Else_correct (=> (and (not true) (= (ControlFlow 0 16903) 17072)) inline$$BorrowField$0$anon0_correct))) (let ((inline$$Test_fresh_guid$0$anon26_Then_correct (=> (and ($DebugTrackLocal 3 1027 3 inline$$CopyOrMoveValue$10$local@0) (= (ControlFlow 0 18783) 17072)) inline$$BorrowField$0$anon0_correct))) (let ((inline$$Test_fresh_guid$0$anon25_Else$1_correct (=> (and (and (and (is-Vector inline$$CopyOrMoveValue$10$local@0) (let ((va@@39 (|v#Vector| inline$$CopyOrMoveValue$10$local@0))) (let ((l@@39 (|l#ValueArray| va@@39))) (and (<= 0 l@@39) (forall ((x@@39 Int) ) (! (=> (or (< x@@39 0) (>= x@@39 l@@39)) (= (|Select_[$int]Value| (|v#ValueArray| va@@39) x@@39) DefaultValue)) :qid |outputbp.826:21| :skolemid |17| :pattern ( (|Select_[$int]Value| (|v#ValueArray| va@@39) x@@39)) )))))) (forall (($$0@@18 Int) ) (! (=> (and (>= $$0@@18 0) (< $$0@@18 (|l#ValueArray| (|v#Vector| inline$$CopyOrMoveValue$10$local@0)))) (and (and (is-Integer (|Select_[$int]Value| (|v#ValueArray| (|v#Vector| inline$$CopyOrMoveValue$10$local@0)) $$0@@18)) (>= (|i#Integer| (|Select_[$int]Value| (|v#ValueArray| (|v#Vector| inline$$CopyOrMoveValue$10$local@0)) $$0@@18)) 0)) (<= (|i#Integer| (|Select_[$int]Value| (|v#ValueArray| (|v#Vector| inline$$CopyOrMoveValue$10$local@0)) $$0@@18)) MAX_U8))) :qid |outputbp.1738:52| :skolemid |38| :pattern ( (|Select_[$int]Value| (|v#ValueArray| (|v#Vector| inline$$CopyOrMoveValue$10$local@0)) $$0@@18)) ))) (= $m@24 (Memory (|Store_[Location]$bool| (|domain#Memory| $m@23) (Local (+ $local_counter@1 3)) true) (|Store_[Location]Value| (|contents#Memory| $m@23) (Local (+ $local_counter@1 3)) inline$$CopyOrMoveValue$10$local@0)))) (and (=> (= (ControlFlow 0 16897) 18783) inline$$Test_fresh_guid$0$anon26_Then_correct) (=> (= (ControlFlow 0 16897) 16903) inline$$Test_fresh_guid$0$anon26_Else_correct))))) (let ((inline$$CopyOrMoveValue$10$Entry_correct (=> (and (= inline$$CopyOrMoveValue$10$local@0 (|Select_[Location]Value| (|contents#Memory| $m@23) (Local (+ $local_counter@1 5)))) (= (ControlFlow 0 16827) 16897)) inline$$Test_fresh_guid$0$anon25_Else$1_correct))) (let ((inline$$Test_fresh_guid$0$anon25_Else_correct (=> (not false) (=> (and (and (and (is-Vector call2formal@res@0@@2) (let ((va@@40 (|v#Vector| call2formal@res@0@@2))) (let ((l@@40 (|l#ValueArray| va@@40))) (and (<= 0 l@@40) (forall ((x@@40 Int) ) (! (=> (or (< x@@40 0) (>= x@@40 l@@40)) (= (|Select_[$int]Value| (|v#ValueArray| va@@40) x@@40) DefaultValue)) :qid |outputbp.826:21| :skolemid |17| :pattern ( (|Select_[$int]Value| (|v#ValueArray| va@@40) x@@40)) )))))) (forall (($$0@@19 Int) ) (! (=> (and (>= $$0@@19 0) (< $$0@@19 (|l#ValueArray| (|v#Vector| call2formal@res@0@@2)))) (and (and (is-Integer (|Select_[$int]Value| (|v#ValueArray| (|v#Vector| call2formal@res@0@@2)) $$0@@19)) (>= (|i#Integer| (|Select_[$int]Value| (|v#ValueArray| (|v#Vector| call2formal@res@0@@2)) $$0@@19)) 0)) (<= (|i#Integer| (|Select_[$int]Value| (|v#ValueArray| (|v#Vector| call2formal@res@0@@2)) $$0@@19)) MAX_U8))) :qid |outputbp.1732:51| :skolemid |37| :pattern ( (|Select_[$int]Value| (|v#ValueArray| (|v#Vector| call2formal@res@0@@2)) $$0@@19)) ))) (and (= $m@23 (Memory (|Store_[Location]$bool| (|domain#Memory| $m@22) (Local (+ $local_counter@1 5)) true) (|Store_[Location]Value| (|contents#Memory| $m@22) (Local (+ $local_counter@1 5)) call2formal@res@0@@2))) (= (ControlFlow 0 16837) 16827))) inline$$CopyOrMoveValue$10$Entry_correct)))) (let ((inline$$Test_fresh_guid$0$anon4$1_correct (=> (is-Address inline$$CopyOrMoveValue$9$local@0) (=> (and (and (= $m@22 (Memory (|Store_[Location]$bool| (|domain#Memory| $m@21) (Local (+ $local_counter@1 4)) true) (|Store_[Location]Value| (|contents#Memory| $m@21) (Local (+ $local_counter@1 4)) inline$$CopyOrMoveValue$9$local@0))) (= call0formal@ta@0@@2 AddressType)) (and (= call1formal@v@0@@2 (|Select_[Location]Value| (|contents#Memory| $m@22) (Local (+ $local_counter@1 4)))) (= call2formal@res@0@@2 ($BCS_serialize_core call1formal@v@0@@2)))) (=> (and (and (and (is-Vector call2formal@res@0@@2) (let ((va@@41 (|v#Vector| call2formal@res@0@@2))) (let ((l@@41 (|l#ValueArray| va@@41))) (and (<= 0 l@@41) (forall ((x@@41 Int) ) (! (=> (or (< x@@41 0) (>= x@@41 l@@41)) (= (|Select_[$int]Value| (|v#ValueArray| va@@41) x@@41) DefaultValue)) :qid |outputbp.826:21| :skolemid |17| :pattern ( (|Select_[$int]Value| (|v#ValueArray| va@@41) x@@41)) )))))) (forall ((i@@9 Int) ) (! (=> (and (<= 0 i@@9) (< i@@9 (|l#ValueArray| (|v#Vector| call2formal@res@0@@2)))) (and (and (is-Integer (|Select_[$int]Value| (|v#ValueArray| (|v#Vector| call2formal@res@0@@2)) i@@9)) (>= (|i#Integer| (|Select_[$int]Value| (|v#ValueArray| (|v#Vector| call2formal@res@0@@2)) i@@9)) 0)) (<= (|i#Integer| (|Select_[$int]Value| (|v#ValueArray| (|v#Vector| call2formal@res@0@@2)) i@@9)) MAX_U8))) :qid |outputbp.131:14| :skolemid |2| :pattern ( (|Select_[$int]Value| (|v#ValueArray| (|v#Vector| call2formal@res@0@@2)) i@@9)) ))) (> (|l#ValueArray| (|v#Vector| call2formal@res@0@@2)) 0)) (and (=> (= (ControlFlow 0 16734) 18793) inline$$Test_fresh_guid$0$anon25_Then_correct) (=> (= (ControlFlow 0 16734) 16837) inline$$Test_fresh_guid$0$anon25_Else_correct))))))) (let ((inline$$CopyOrMoveValue$9$Entry_correct (=> (and (= inline$$CopyOrMoveValue$9$local@0 (|Select_[Location]Value| (|contents#Memory| $m@21) (Local (+ $local_counter@1 1)))) (= (ControlFlow 0 16706) 16734)) inline$$Test_fresh_guid$0$anon4$1_correct))) (let ((inline$$Test_fresh_guid$0$anon4_correct (=> (and (= $local_counter@2 (+ $local_counter@1 19)) (= (ControlFlow 0 16716) 16706)) inline$$CopyOrMoveValue$9$Entry_correct))) (let ((inline$$Test_fresh_guid$0$anon24_Else_correct (=> (and (not true) (= (ControlFlow 0 16669) 16716)) inline$$Test_fresh_guid$0$anon4_correct))) (let ((inline$$Test_fresh_guid$0$anon24_Then_correct (=> (and ($DebugTrackLocal 3 933 1 inline$$Test_fresh_guid$0$sender@0) (= (ControlFlow 0 18807) 16716)) inline$$Test_fresh_guid$0$anon4_correct))) (let ((inline$$Test_fresh_guid$0$anon2_correct (=> (and (is-Address inline$$Test_fresh_guid$0$sender@0) (= $m@21 (Memory (|Store_[Location]$bool| (|domain#Memory| $m@20) (Local (+ $local_counter@1 1)) true) (|Store_[Location]Value| (|contents#Memory| $m@20) (Local (+ $local_counter@1 1)) inline$$Test_fresh_guid$0$sender@0)))) (and (=> (= (ControlFlow 0 16663) 18807) inline$$Test_fresh_guid$0$anon24_Then_correct) (=> (= (ControlFlow 0 16663) 16669) inline$$Test_fresh_guid$0$anon24_Else_correct))))) (let ((inline$$Test_fresh_guid$0$anon23_Else_correct (=> (and (not true) (= (ControlFlow 0 16645) 16663)) inline$$Test_fresh_guid$0$anon2_correct))) (let ((inline$$Test_fresh_guid$0$anon23_Then_correct (=> (and ($DebugTrackLocal 3 933 0 ($ReadValue_stratified (|p#Reference| inline$$BorrowLoc$1$dst@1) (|Select_[Location]Value| (|contents#Memory| $m@20) (|l#Reference| inline$$BorrowLoc$1$dst@1)))) (= (ControlFlow 0 18825) 16663)) inline$$Test_fresh_guid$0$anon2_correct))) (let ((inline$$Test_fresh_guid$0$anon0_correct (and (=> (= (ControlFlow 0 16639) (- 0 30418)) (not false)) (=> (not false) (=> (and (and (and (is-Vector ($ReadValue_stratified (|p#Reference| inline$$BorrowLoc$1$dst@1) (|Select_[Location]Value| (|contents#Memory| $m@20) (|l#Reference| inline$$BorrowLoc$1$dst@1)))) (let ((va@@42 (|v#Vector| ($ReadValue_stratified (|p#Reference| inline$$BorrowLoc$1$dst@1) (|Select_[Location]Value| (|contents#Memory| $m@20) (|l#Reference| inline$$BorrowLoc$1$dst@1)))))) (let ((l@@42 (|l#ValueArray| va@@42))) (and (<= 0 l@@42) (forall ((x@@42 Int) ) (! (=> (or (< x@@42 0) (>= x@@42 l@@42)) (= (|Select_[$int]Value| (|v#ValueArray| va@@42) x@@42) DefaultValue)) :qid |outputbp.826:21| :skolemid |17| :pattern ( (|Select_[$int]Value| (|v#ValueArray| va@@42) x@@42)) )))))) (= (|l#ValueArray| (|v#Vector| ($ReadValue_stratified (|p#Reference| inline$$BorrowLoc$1$dst@1) (|Select_[Location]Value| (|contents#Memory| $m@20) (|l#Reference| inline$$BorrowLoc$1$dst@1))))) 1)) (and (and (is-Integer (|Select_[$int]Value| (|v#ValueArray| (|v#Vector| ($ReadValue_stratified (|p#Reference| inline$$BorrowLoc$1$dst@1) (|Select_[Location]Value| (|contents#Memory| $m@20) (|l#Reference| inline$$BorrowLoc$1$dst@1))))) $Test_EventHandleGenerator_counter)) (>= (|i#Integer| (|Select_[$int]Value| (|v#ValueArray| (|v#Vector| ($ReadValue_stratified (|p#Reference| inline$$BorrowLoc$1$dst@1) (|Select_[Location]Value| (|contents#Memory| $m@20) (|l#Reference| inline$$BorrowLoc$1$dst@1))))) $Test_EventHandleGenerator_counter)) 0)) (<= (|i#Integer| (|Select_[$int]Value| (|v#ValueArray| (|v#Vector| ($ReadValue_stratified (|p#Reference| inline$$BorrowLoc$1$dst@1) (|Select_[Location]Value| (|contents#Memory| $m@20) (|l#Reference| inline$$BorrowLoc$1$dst@1))))) $Test_EventHandleGenerator_counter)) MAX_U64))) (and (=> (= (ControlFlow 0 16639) 18825) inline$$Test_fresh_guid$0$anon23_Then_correct) (=> (= (ControlFlow 0 16639) 16645) inline$$Test_fresh_guid$0$anon23_Else_correct))))))) (let ((inline$$Test_fresh_guid$0$Entry_correct (=> (= inline$$Test_fresh_guid$0$sender@0 (|Select_[Location]Value| (|contents#Memory| $m@20) (Local (+ $local_counter@0 4)))) (and (=> (= (ControlFlow 0 16621) (- 0 30374)) (|Select_[Location]$bool| (|domain#Memory| $m@20) (Global $DiemAccount_T_type_value (|sender#Transaction| $txn)))) (=> (|Select_[Location]$bool| (|domain#Memory| $m@20) (Global $DiemAccount_T_type_value (|sender#Transaction| $txn))) (=> (= (ControlFlow 0 16621) 16639) inline$$Test_fresh_guid$0$anon0_correct)))))) (let ((inline$$Test_new_event_handle_impl$0$anon4$2_correct (=> (is-Address inline$$CopyOrMoveValue$8$local@0) (=> (and (= $m@20 (Memory (|Store_[Location]$bool| (|domain#Memory| $m@19) (Local (+ $local_counter@0 4)) true) (|Store_[Location]Value| (|contents#Memory| $m@19) (Local (+ $local_counter@0 4)) inline$$CopyOrMoveValue$8$local@0))) (= (ControlFlow 0 18953) 16621)) inline$$Test_fresh_guid$0$Entry_correct)))) (let ((inline$$CopyOrMoveValue$8$Entry_correct (=> (and (= inline$$CopyOrMoveValue$8$local@0 (|Select_[Location]Value| (|contents#Memory| $m@19) (Local (+ $local_counter@0 1)))) (= (ControlFlow 0 15416) 18953)) inline$$Test_new_event_handle_impl$0$anon4$2_correct))) (let ((inline$$Test_new_event_handle_impl$0$anon4_correct (=> (and (and (= $local_counter@1 (+ $local_counter@0 7)) (= inline$$Test_new_event_handle_impl$0$$tmp@1 (Integer 0))) (and (= $m@19 (Memory (|Store_[Location]$bool| (|domain#Memory| $m@18) (Local (+ $local_counter@0 2)) true) (|Store_[Location]Value| (|contents#Memory| $m@18) (Local (+ $local_counter@0 2)) inline$$Test_new_event_handle_impl$0$$tmp@1))) (= (ControlFlow 0 15385) 15416))) inline$$CopyOrMoveValue$8$Entry_correct))) (let ((inline$$Test_new_event_handle_impl$0$anon12_Else_correct (=> (and (not true) (= (ControlFlow 0 15330) 15385)) inline$$Test_new_event_handle_impl$0$anon4_correct))) (let ((inline$$Test_new_event_handle_impl$0$anon12_Then_correct (=> (and ($DebugTrackLocal 3 1441 1 inline$$Test_new_event_handle_impl$0$sender@0) (= (ControlFlow 0 19388) 15385)) inline$$Test_new_event_handle_impl$0$anon4_correct))) (let ((inline$$Test_new_event_handle_impl$0$anon2_correct (=> (and (is-Address inline$$Test_new_event_handle_impl$0$sender@0) (= $m@18 (Memory (|Store_[Location]$bool| (|domain#Memory| $m@17) (Local (+ $local_counter@0 1)) true) (|Store_[Location]Value| (|contents#Memory| $m@17) (Local (+ $local_counter@0 1)) inline$$Test_new_event_handle_impl$0$sender@0)))) (and (=> (= (ControlFlow 0 15324) 19388) inline$$Test_new_event_handle_impl$0$anon12_Then_correct) (=> (= (ControlFlow 0 15324) 15330) inline$$Test_new_event_handle_impl$0$anon12_Else_correct))))) (let ((inline$$Test_new_event_handle_impl$0$anon11_Else_correct (=> (and (not true) (= (ControlFlow 0 15306) 15324)) inline$$Test_new_event_handle_impl$0$anon2_correct))) (let ((inline$$Test_new_event_handle_impl$0$anon11_Then_correct (=> (and ($DebugTrackLocal 3 1441 0 ($ReadValue_stratified (|p#Reference| inline$$BorrowLoc$1$dst@1) (|Select_[Location]Value| (|contents#Memory| $m@17) (|l#Reference| inline$$BorrowLoc$1$dst@1)))) (= (ControlFlow 0 19406) 15324)) inline$$Test_new_event_handle_impl$0$anon2_correct))) (let ((inline$$Test_new_event_handle_impl$0$anon0_correct (and (=> (= (ControlFlow 0 15300) (- 0 30210)) (not false)) (=> (not false) (=> (and (and (and (is-Vector ($ReadValue_stratified (|p#Reference| inline$$BorrowLoc$1$dst@1) (|Select_[Location]Value| (|contents#Memory| $m@17) (|l#Reference| inline$$BorrowLoc$1$dst@1)))) (let ((va@@43 (|v#Vector| ($ReadValue_stratified (|p#Reference| inline$$BorrowLoc$1$dst@1) (|Select_[Location]Value| (|contents#Memory| $m@17) (|l#Reference| inline$$BorrowLoc$1$dst@1)))))) (let ((l@@43 (|l#ValueArray| va@@43))) (and (<= 0 l@@43) (forall ((x@@43 Int) ) (! (=> (or (< x@@43 0) (>= x@@43 l@@43)) (= (|Select_[$int]Value| (|v#ValueArray| va@@43) x@@43) DefaultValue)) :qid |outputbp.826:21| :skolemid |17| :pattern ( (|Select_[$int]Value| (|v#ValueArray| va@@43) x@@43)) )))))) (= (|l#ValueArray| (|v#Vector| ($ReadValue_stratified (|p#Reference| inline$$BorrowLoc$1$dst@1) (|Select_[Location]Value| (|contents#Memory| $m@17) (|l#Reference| inline$$BorrowLoc$1$dst@1))))) 1)) (and (and (is-Integer (|Select_[$int]Value| (|v#ValueArray| (|v#Vector| ($ReadValue_stratified (|p#Reference| inline$$BorrowLoc$1$dst@1) (|Select_[Location]Value| (|contents#Memory| $m@17) (|l#Reference| inline$$BorrowLoc$1$dst@1))))) $Test_EventHandleGenerator_counter)) (>= (|i#Integer| (|Select_[$int]Value| (|v#ValueArray| (|v#Vector| ($ReadValue_stratified (|p#Reference| inline$$BorrowLoc$1$dst@1) (|Select_[Location]Value| (|contents#Memory| $m@17) (|l#Reference| inline$$BorrowLoc$1$dst@1))))) $Test_EventHandleGenerator_counter)) 0)) (<= (|i#Integer| (|Select_[$int]Value| (|v#ValueArray| (|v#Vector| ($ReadValue_stratified (|p#Reference| inline$$BorrowLoc$1$dst@1) (|Select_[Location]Value| (|contents#Memory| $m@17) (|l#Reference| inline$$BorrowLoc$1$dst@1))))) $Test_EventHandleGenerator_counter)) MAX_U64))) (and (=> (= (ControlFlow 0 15300) 19406) inline$$Test_new_event_handle_impl$0$anon11_Then_correct) (=> (= (ControlFlow 0 15300) 15306) inline$$Test_new_event_handle_impl$0$anon11_Else_correct))))))) (let ((inline$$Test_new_event_handle_impl$0$Entry_correct (=> (and (= inline$$Test_new_event_handle_impl$0$$tv0@0 $Test_Event1_type_value) (= inline$$Test_new_event_handle_impl$0$sender@0 (|Select_[Location]Value| (|contents#Memory| $m@17) (Local (+ 0 19))))) (and (=> (= (ControlFlow 0 15282) (- 0 30181)) (|Select_[Location]$bool| (|domain#Memory| $m@17) (Global $DiemAccount_T_type_value (|sender#Transaction| $txn)))) (=> (|Select_[Location]$bool| (|domain#Memory| $m@17) (Global $DiemAccount_T_type_value (|sender#Transaction| $txn))) (=> (= (ControlFlow 0 15282) 15300) inline$$Test_new_event_handle_impl$0$anon0_correct)))))) (let ((inline$$Test_create$0$anon37_Then$2_correct (=> (is-Address inline$$CopyOrMoveValue$7$local@0) (=> (and (= $m@17 (Memory (|Store_[Location]$bool| (|domain#Memory| $m@15) (Local (+ 0 19)) true) (|Store_[Location]Value| (|contents#Memory| $m@15) (Local (+ 0 19)) inline$$CopyOrMoveValue$7$local@0))) (= (ControlFlow 0 19560) 15282)) inline$$Test_new_event_handle_impl$0$Entry_correct)))) (let ((inline$$CopyOrMoveValue$7$Entry_correct (=> (and (= inline$$CopyOrMoveValue$7$local@0 (|Select_[Location]Value| (|contents#Memory| $m@15) (Local (+ 0 0)))) (= (ControlFlow 0 14686) 19560)) inline$$Test_create$0$anon37_Then$2_correct))) (let ((inline$$Test_create$0$anon37_Then$1_correct (=> (and (and (and (and (is-Vector ($ReadValue_stratified (|p#Reference| inline$$BorrowLoc$1$dst@1) (|Select_[Location]Value| (|contents#Memory| $m@15) (|l#Reference| inline$$BorrowLoc$1$dst@1)))) (let ((va@@44 (|v#Vector| ($ReadValue_stratified (|p#Reference| inline$$BorrowLoc$1$dst@1) (|Select_[Location]Value| (|contents#Memory| $m@15) (|l#Reference| inline$$BorrowLoc$1$dst@1)))))) (let ((l@@44 (|l#ValueArray| va@@44))) (and (<= 0 l@@44) (forall ((x@@44 Int) ) (! (=> (or (< x@@44 0) (>= x@@44 l@@44)) (= (|Select_[$int]Value| (|v#ValueArray| va@@44) x@@44) DefaultValue)) :qid |outputbp.826:21| :skolemid |17| :pattern ( (|Select_[$int]Value| (|v#ValueArray| va@@44) x@@44)) )))))) (= (|l#ValueArray| (|v#Vector| ($ReadValue_stratified (|p#Reference| inline$$BorrowLoc$1$dst@1) (|Select_[Location]Value| (|contents#Memory| $m@15) (|l#Reference| inline$$BorrowLoc$1$dst@1))))) 1)) (and (and (is-Integer (|Select_[$int]Value| (|v#ValueArray| (|v#Vector| ($ReadValue_stratified (|p#Reference| inline$$BorrowLoc$1$dst@1) (|Select_[Location]Value| (|contents#Memory| $m@15) (|l#Reference| inline$$BorrowLoc$1$dst@1))))) $Test_EventHandleGenerator_counter)) (>= (|i#Integer| (|Select_[$int]Value| (|v#ValueArray| (|v#Vector| ($ReadValue_stratified (|p#Reference| inline$$BorrowLoc$1$dst@1) (|Select_[Location]Value| (|contents#Memory| $m@15) (|l#Reference| inline$$BorrowLoc$1$dst@1))))) $Test_EventHandleGenerator_counter)) 0)) (<= (|i#Integer| (|Select_[$int]Value| (|v#ValueArray| (|v#Vector| ($ReadValue_stratified (|p#Reference| inline$$BorrowLoc$1$dst@1) (|Select_[Location]Value| (|contents#Memory| $m@15) (|l#Reference| inline$$BorrowLoc$1$dst@1))))) $Test_EventHandleGenerator_counter)) MAX_U64))) (= (ControlFlow 0 14696) 14686)) inline$$CopyOrMoveValue$7$Entry_correct))) (let ((inline$$BorrowLoc$1$anon0_correct (=> (and (= inline$$BorrowLoc$1$dst@1 (Reference (Local inline$$BorrowLoc$1$l@0) EmptyPath)) (= (ControlFlow 0 14641) 14696)) inline$$Test_create$0$anon37_Then$1_correct))) (let ((inline$$BorrowLoc$1$Entry_correct (=> (and (= inline$$BorrowLoc$1$l@0 (+ 0 3)) (= (ControlFlow 0 14631) 14641)) inline$$BorrowLoc$1$anon0_correct))) (let ((inline$$Test_create$0$anon37_Then_correct (=> (and (|b#Boolean| inline$$Test_create$0$$tmp@4) (= (ControlFlow 0 14647) 14631)) inline$$BorrowLoc$1$Entry_correct))) (let ((inline$$Test_create$0$anon38_Else_correct (=> (and (not true) (= (ControlFlow 0 14574) 14584)) inline$$Test_create$0$Abort_correct))) (let ((inline$$Test_create$0$anon38_Then_correct (=> (and ($DebugTrackAbort 3 2148) (= (ControlFlow 0 14594) 14584)) inline$$Test_create$0$Abort_correct))) (let ((inline$$Test_create$0$anon37_Else_correct (=> (not (|b#Boolean| inline$$Test_create$0$$tmp@4)) (=> (and (= inline$$Test_create$0$$tmp@5 (Integer 12)) (= $m@16 (Memory (|Store_[Location]$bool| (|domain#Memory| $m@15) (Local (+ 0 17)) true) (|Store_[Location]Value| (|contents#Memory| $m@15) (Local (+ 0 17)) inline$$Test_create$0$$tmp@5)))) (and (=> (= (ControlFlow 0 14568) 14594) inline$$Test_create$0$anon38_Then_correct) (=> (= (ControlFlow 0 14568) 14574) inline$$Test_create$0$anon38_Else_correct)))))) (let ((inline$$Test_create$0$anon16$1_correct (=> (is-Boolean inline$$CopyOrMoveValue$6$local@0) (=> (and (= $m@15 (Memory (|Store_[Location]$bool| (|domain#Memory| $m@14) (Local (+ 0 16)) true) (|Store_[Location]Value| (|contents#Memory| $m@14) (Local (+ 0 16)) inline$$CopyOrMoveValue$6$local@0))) (= inline$$Test_create$0$$tmp@4 (|Select_[Location]Value| (|contents#Memory| $m@15) (Local (+ 0 16))))) (and (=> (= (ControlFlow 0 14544) 14647) inline$$Test_create$0$anon37_Then_correct) (=> (= (ControlFlow 0 14544) 14568) inline$$Test_create$0$anon37_Else_correct)))))) (let ((inline$$CopyOrMoveValue$6$Entry_correct (=> (and (= inline$$CopyOrMoveValue$6$local@0 (|Select_[Location]Value| (|contents#Memory| $m@14) (Local (+ 0 4)))) (= (ControlFlow 0 14506) 14544)) inline$$Test_create$0$anon16$1_correct))) (let ((inline$$Test_create$0$anon36_Else_correct (=> (and (not true) (= (ControlFlow 0 14475) 14506)) inline$$CopyOrMoveValue$6$Entry_correct))) (let ((inline$$Test_create$0$anon36_Then_correct (=> (and ($DebugTrackLocal 3 2148 4 inline$$CopyOrMoveValue$5$local@0) (= (ControlFlow 0 25110) 14506)) inline$$CopyOrMoveValue$6$Entry_correct))) (let ((inline$$Test_create$0$anon35_Else$1_correct (=> (and (is-Boolean inline$$CopyOrMoveValue$5$local@0) (= $m@14 (Memory (|Store_[Location]$bool| (|domain#Memory| $m@13) (Local (+ 0 4)) true) (|Store_[Location]Value| (|contents#Memory| $m@13) (Local (+ 0 4)) inline$$CopyOrMoveValue$5$local@0)))) (and (=> (= (ControlFlow 0 14469) 25110) inline$$Test_create$0$anon36_Then_correct) (=> (= (ControlFlow 0 14469) 14475) inline$$Test_create$0$anon36_Else_correct))))) (let ((inline$$CopyOrMoveValue$5$Entry_correct (=> (and (= inline$$CopyOrMoveValue$5$local@0 (|Select_[Location]Value| (|contents#Memory| $m@13) (Local (+ 0 15)))) (= (ControlFlow 0 14441) 14469)) inline$$Test_create$0$anon35_Else$1_correct))) (let ((inline$$Test_create$0$anon35_Else_correct (=> (not false) (=> (and (and (and (and (is-Integer inline$$Vector_length$0$l@1) (>= (|i#Integer| inline$$Vector_length$0$l@1) 0)) (<= (|i#Integer| inline$$Vector_length$0$l@1) MAX_U64)) (and (= $m@11 (Memory (|Store_[Location]$bool| (|domain#Memory| $m@10) (Local (+ 0 13)) true) (|Store_[Location]Value| (|contents#Memory| $m@10) (Local (+ 0 13)) inline$$Vector_length$0$l@1))) (= inline$$Test_create$0$$tmp@2 (Integer 32)))) (and (and (= $m@12 (Memory (|Store_[Location]$bool| (|domain#Memory| $m@11) (Local (+ 0 14)) true) (|Store_[Location]Value| (|contents#Memory| $m@11) (Local (+ 0 14)) inline$$Test_create$0$$tmp@2))) (= inline$$Test_create$0$$tmp@3 (Boolean (IsEqual_stratified (|Select_[Location]Value| (|contents#Memory| $m@12) (Local (+ 0 13))) (|Select_[Location]Value| (|contents#Memory| $m@12) (Local (+ 0 14))))))) (and (= $m@13 (Memory (|Store_[Location]$bool| (|domain#Memory| $m@12) (Local (+ 0 15)) true) (|Store_[Location]Value| (|contents#Memory| $m@12) (Local (+ 0 15)) inline$$Test_create$0$$tmp@3))) (= (ControlFlow 0 14451) 14441)))) inline$$CopyOrMoveValue$5$Entry_correct)))) (let ((inline$$Test_create$0$anon35_Then_correct true)) (let ((inline$$Vector_length$0$anon0_correct (=> (and (is-Vector inline$$Vector_length$0$v@0) (= inline$$Vector_length$0$l@1 (Integer (|l#ValueArray| (|v#Vector| inline$$Vector_length$0$v@0))))) (and (=> (= (ControlFlow 0 14330) 25120) inline$$Test_create$0$anon35_Then_correct) (=> (= (ControlFlow 0 14330) 14451) inline$$Test_create$0$anon35_Else_correct))))) (let ((inline$$Vector_length$0$Entry_correct (=> (= inline$$Vector_length$0$ta@0 IntegerType) (=> (and (= inline$$Vector_length$0$v@0 (|Select_[Location]Value| (|contents#Memory| $m@10) (Local (+ 0 12)))) (= (ControlFlow 0 14318) 14330)) inline$$Vector_length$0$anon0_correct)))) (let ((inline$$Test_create$0$anon34_Else$1_correct (=> (and (and (and (is-Vector inline$$CopyOrMoveValue$4$local@0) (let ((va@@45 (|v#Vector| inline$$CopyOrMoveValue$4$local@0))) (let ((l@@45 (|l#ValueArray| va@@45))) (and (<= 0 l@@45) (forall ((x@@45 Int) ) (! (=> (or (< x@@45 0) (>= x@@45 l@@45)) (= (|Select_[$int]Value| (|v#ValueArray| va@@45) x@@45) DefaultValue)) :qid |outputbp.826:21| :skolemid |17| :pattern ( (|Select_[$int]Value| (|v#ValueArray| va@@45) x@@45)) )))))) (forall (($$0@@20 Int) ) (! (=> (and (>= $$0@@20 0) (< $$0@@20 (|l#ValueArray| (|v#Vector| inline$$CopyOrMoveValue$4$local@0)))) (and (and (is-Integer (|Select_[$int]Value| (|v#ValueArray| (|v#Vector| inline$$CopyOrMoveValue$4$local@0)) $$0@@20)) (>= (|i#Integer| (|Select_[$int]Value| (|v#ValueArray| (|v#Vector| inline$$CopyOrMoveValue$4$local@0)) $$0@@20)) 0)) (<= (|i#Integer| (|Select_[$int]Value| (|v#ValueArray| (|v#Vector| inline$$CopyOrMoveValue$4$local@0)) $$0@@20)) MAX_U8))) :qid |outputbp.1542:52| :skolemid |35| :pattern ( (|Select_[$int]Value| (|v#ValueArray| (|v#Vector| inline$$CopyOrMoveValue$4$local@0)) $$0@@20)) ))) (and (= $m@10 (Memory (|Store_[Location]$bool| (|domain#Memory| $m@9) (Local (+ 0 12)) true) (|Store_[Location]Value| (|contents#Memory| $m@9) (Local (+ 0 12)) inline$$CopyOrMoveValue$4$local@0))) (= (ControlFlow 0 14336) 14318))) inline$$Vector_length$0$Entry_correct))) (let ((inline$$CopyOrMoveValue$4$Entry_correct (=> (and (= inline$$CopyOrMoveValue$4$local@0 (|Select_[Location]Value| (|contents#Memory| $m@9) (Local (+ 0 2)))) (= (ControlFlow 0 14204) 14336)) inline$$Test_create$0$anon34_Else$1_correct))) (let ((inline$$Test_create$0$anon34_Else_correct (=> (and (not false) (= (ControlFlow 0 14214) 14204)) inline$$CopyOrMoveValue$4$Entry_correct))) (let ((inline$$Test_create$0$anon34_Then_correct true)) (let ((inline$$WriteRef$0$anon0_correct (=> (and (and (= inline$$WriteRef$0$l@1 (|l#Reference| inline$$BorrowLoc$0$dst@1)) (= inline$$WriteRef$0$v@1 (|Select_[Location]Value| (|contents#Memory| $m@8) inline$$WriteRef$0$l@1))) (and (= inline$$WriteRef$0$v@2 ($UpdateValue_stratified (|p#Reference| inline$$BorrowLoc$0$dst@1) inline$$WriteRef$0$v@1 inline$$WriteRef$0$new_v@0)) (= $m@9 (Memory (|domain#Memory| $m@8) (|Store_[Location]Value| (|contents#Memory| $m@8) inline$$WriteRef$0$l@1 inline$$WriteRef$0$v@2))))) (and (=> (= (ControlFlow 0 14157) 25130) inline$$Test_create$0$anon34_Then_correct) (=> (= (ControlFlow 0 14157) 14214) inline$$Test_create$0$anon34_Else_correct))))) (let ((inline$$WriteRef$0$Entry_correct (=> (and (= inline$$WriteRef$0$new_v@0 (Vector (let ((l2@@1 (|l#ValueArray| (|v#Vector| inline$$Vector_append$0$other@0)))) (let ((l1@@1 (|l#ValueArray| (|v#Vector| inline$$Vector_append$0$v@1)))) (ValueArray (|lambda#2| 0 (+ l1@@1 l2@@1) l1@@1 (|v#ValueArray| (|v#Vector| inline$$Vector_append$0$v@1)) (|v#ValueArray| (|v#Vector| inline$$Vector_append$0$other@0)) l1@@1 DefaultValue) (+ l1@@1 l2@@1)))))) (= (ControlFlow 0 14117) 14157)) inline$$WriteRef$0$anon0_correct))) (let ((inline$$Vector_append$0$anon0_correct (=> (and (and (= inline$$Vector_append$0$v@1 ($ReadValue_stratified (|p#Reference| inline$$BorrowLoc$0$dst@1) (|Select_[Location]Value| (|contents#Memory| $m@8) (|l#Reference| inline$$BorrowLoc$0$dst@1)))) (is-Vector inline$$Vector_append$0$v@1)) (and (is-Vector inline$$Vector_append$0$other@0) (= (ControlFlow 0 14161) 14117))) inline$$WriteRef$0$Entry_correct))) (let ((inline$$Vector_append$0$Entry_correct (=> (= inline$$Vector_append$0$ta@0 IntegerType) (=> (and (= inline$$Vector_append$0$other@0 (|Select_[Location]Value| (|contents#Memory| $m@8) (Local (+ 0 11)))) (= (ControlFlow 0 14027) 14161)) inline$$Vector_append$0$anon0_correct)))) (let ((inline$$Test_create$0$anon33_Else_correct (=> (not false) (=> (and (and (and (is-Vector call2formal@res@0@@3) (let ((va@@46 (|v#Vector| call2formal@res@0@@3))) (let ((l@@46 (|l#ValueArray| va@@46))) (and (<= 0 l@@46) (forall ((x@@46 Int) ) (! (=> (or (< x@@46 0) (>= x@@46 l@@46)) (= (|Select_[$int]Value| (|v#ValueArray| va@@46) x@@46) DefaultValue)) :qid |outputbp.826:21| :skolemid |17| :pattern ( (|Select_[$int]Value| (|v#ValueArray| va@@46) x@@46)) )))))) (forall (($$0@@21 Int) ) (! (=> (and (>= $$0@@21 0) (< $$0@@21 (|l#ValueArray| (|v#Vector| call2formal@res@0@@3)))) (and (and (is-Integer (|Select_[$int]Value| (|v#ValueArray| (|v#Vector| call2formal@res@0@@3)) $$0@@21)) (>= (|i#Integer| (|Select_[$int]Value| (|v#ValueArray| (|v#Vector| call2formal@res@0@@3)) $$0@@21)) 0)) (<= (|i#Integer| (|Select_[$int]Value| (|v#ValueArray| (|v#Vector| call2formal@res@0@@3)) $$0@@21)) MAX_U8))) :qid |outputbp.1528:52| :skolemid |34| :pattern ( (|Select_[$int]Value| (|v#ValueArray| (|v#Vector| call2formal@res@0@@3)) $$0@@21)) ))) (and (= $m@8 (Memory (|Store_[Location]$bool| (|domain#Memory| $m@7) (Local (+ 0 11)) true) (|Store_[Location]Value| (|contents#Memory| $m@7) (Local (+ 0 11)) call2formal@res@0@@3))) (= (ControlFlow 0 14167) 14027))) inline$$Vector_append$0$Entry_correct)))) (let ((inline$$Test_create$0$anon33_Then_correct true)) (let ((inline$$Test_create$0$anon8$2_correct (=> (is-Address inline$$CopyOrMoveValue$3$local@0) (=> (and (and (= $m@7 (Memory (|Store_[Location]$bool| (|domain#Memory| $m@6) (Local (+ 0 10)) true) (|Store_[Location]Value| (|contents#Memory| $m@6) (Local (+ 0 10)) inline$$CopyOrMoveValue$3$local@0))) (= call0formal@ta@0@@3 AddressType)) (and (= call1formal@v@0@@3 (|Select_[Location]Value| (|contents#Memory| $m@7) (Local (+ 0 10)))) (= call2formal@res@0@@3 ($BCS_serialize_core call1formal@v@0@@3)))) (=> (and (and (and (is-Vector call2formal@res@0@@3) (let ((va@@47 (|v#Vector| call2formal@res@0@@3))) (let ((l@@47 (|l#ValueArray| va@@47))) (and (<= 0 l@@47) (forall ((x@@47 Int) ) (! (=> (or (< x@@47 0) (>= x@@47 l@@47)) (= (|Select_[$int]Value| (|v#ValueArray| va@@47) x@@47) DefaultValue)) :qid |outputbp.826:21| :skolemid |17| :pattern ( (|Select_[$int]Value| (|v#ValueArray| va@@47) x@@47)) )))))) (forall ((i@@10 Int) ) (! (=> (and (<= 0 i@@10) (< i@@10 (|l#ValueArray| (|v#Vector| call2formal@res@0@@3)))) (and (and (is-Integer (|Select_[$int]Value| (|v#ValueArray| (|v#Vector| call2formal@res@0@@3)) i@@10)) (>= (|i#Integer| (|Select_[$int]Value| (|v#ValueArray| (|v#Vector| call2formal@res@0@@3)) i@@10)) 0)) (<= (|i#Integer| (|Select_[$int]Value| (|v#ValueArray| (|v#Vector| call2formal@res@0@@3)) i@@10)) MAX_U8))) :qid |outputbp.131:14| :skolemid |2| :pattern ( (|Select_[$int]Value| (|v#ValueArray| (|v#Vector| call2formal@res@0@@3)) i@@10)) ))) (> (|l#ValueArray| (|v#Vector| call2formal@res@0@@3)) 0)) (and (=> (= (ControlFlow 0 13897) 25140) inline$$Test_create$0$anon33_Then_correct) (=> (= (ControlFlow 0 13897) 14167) inline$$Test_create$0$anon33_Else_correct))))))) (let ((inline$$CopyOrMoveValue$3$Entry_correct (=> (and (= inline$$CopyOrMoveValue$3$local@0 (|Select_[Location]Value| (|contents#Memory| $m@6) (Local (+ 0 0)))) (= (ControlFlow 0 13869) 13897)) inline$$Test_create$0$anon8$2_correct))) (let ((inline$$Test_create$0$anon8$1_correct (=> (and (and (and (is-Vector ($ReadValue_stratified (|p#Reference| inline$$BorrowLoc$0$dst@1) (|Select_[Location]Value| (|contents#Memory| $m@6) (|l#Reference| inline$$BorrowLoc$0$dst@1)))) (let ((va@@48 (|v#Vector| ($ReadValue_stratified (|p#Reference| inline$$BorrowLoc$0$dst@1) (|Select_[Location]Value| (|contents#Memory| $m@6) (|l#Reference| inline$$BorrowLoc$0$dst@1)))))) (let ((l@@48 (|l#ValueArray| va@@48))) (and (<= 0 l@@48) (forall ((x@@48 Int) ) (! (=> (or (< x@@48 0) (>= x@@48 l@@48)) (= (|Select_[$int]Value| (|v#ValueArray| va@@48) x@@48) DefaultValue)) :qid |outputbp.826:21| :skolemid |17| :pattern ( (|Select_[$int]Value| (|v#ValueArray| va@@48) x@@48)) )))))) (forall (($$1@@1 Int) ) (! (=> (and (>= $$1@@1 0) (< $$1@@1 (|l#ValueArray| (|v#Vector| ($ReadValue_stratified (|p#Reference| inline$$BorrowLoc$0$dst@1) (|Select_[Location]Value| (|contents#Memory| $m@6) (|l#Reference| inline$$BorrowLoc$0$dst@1))))))) (and (and (is-Integer (|Select_[$int]Value| (|v#ValueArray| (|v#Vector| ($ReadValue_stratified (|p#Reference| inline$$BorrowLoc$0$dst@1) (|Select_[Location]Value| (|contents#Memory| $m@6) (|l#Reference| inline$$BorrowLoc$0$dst@1))))) $$1@@1)) (>= (|i#Integer| (|Select_[$int]Value| (|v#ValueArray| (|v#Vector| ($ReadValue_stratified (|p#Reference| inline$$BorrowLoc$0$dst@1) (|Select_[Location]Value| (|contents#Memory| $m@6) (|l#Reference| inline$$BorrowLoc$0$dst@1))))) $$1@@1)) 0)) (<= (|i#Integer| (|Select_[$int]Value| (|v#ValueArray| (|v#Vector| ($ReadValue_stratified (|p#Reference| inline$$BorrowLoc$0$dst@1) (|Select_[Location]Value| (|contents#Memory| $m@6) (|l#Reference| inline$$BorrowLoc$0$dst@1))))) $$1@@1)) MAX_U8))) :qid |outputbp.1515:69| :skolemid |33| :pattern ( (|Select_[$int]Value| (|v#ValueArray| (|v#Vector| ($ReadValue_stratified (|p#Reference| inline$$BorrowLoc$0$dst@1) (|Select_[Location]Value| (|contents#Memory| $m@6) (|l#Reference| inline$$BorrowLoc$0$dst@1))))) $$1@@1)) ))) (= (ControlFlow 0 13879) 13869)) inline$$CopyOrMoveValue$3$Entry_correct))) (let ((inline$$BorrowLoc$0$anon0_correct (=> (and (= inline$$BorrowLoc$0$dst@1 (Reference (Local inline$$BorrowLoc$0$l@0) EmptyPath)) (= (ControlFlow 0 13770) 13879)) inline$$Test_create$0$anon8$1_correct))) (let ((inline$$BorrowLoc$0$Entry_correct (=> (and (= inline$$BorrowLoc$0$l@0 (+ 0 2)) (= (ControlFlow 0 13760) 13770)) inline$$BorrowLoc$0$anon0_correct))) (let ((inline$$Test_create$0$anon32_Else_correct (=> (and (not true) (= (ControlFlow 0 13727) 13760)) inline$$BorrowLoc$0$Entry_correct))) (let ((inline$$Test_create$0$anon32_Then_correct (=> (and ($DebugTrackLocal 3 2022 2 inline$$CopyOrMoveValue$2$local@0) (= (ControlFlow 0 25154) 13760)) inline$$BorrowLoc$0$Entry_correct))) (let ((inline$$Test_create$0$anon6$2_correct (=> (and (and (and (is-Vector inline$$CopyOrMoveValue$2$local@0) (let ((va@@49 (|v#Vector| inline$$CopyOrMoveValue$2$local@0))) (let ((l@@49 (|l#ValueArray| va@@49))) (and (<= 0 l@@49) (forall ((x@@49 Int) ) (! (=> (or (< x@@49 0) (>= x@@49 l@@49)) (= (|Select_[$int]Value| (|v#ValueArray| va@@49) x@@49) DefaultValue)) :qid |outputbp.826:21| :skolemid |17| :pattern ( (|Select_[$int]Value| (|v#ValueArray| va@@49) x@@49)) )))))) (forall (($$0@@22 Int) ) (! (=> (and (>= $$0@@22 0) (< $$0@@22 (|l#ValueArray| (|v#Vector| inline$$CopyOrMoveValue$2$local@0)))) (and (and (is-Integer (|Select_[$int]Value| (|v#ValueArray| (|v#Vector| inline$$CopyOrMoveValue$2$local@0)) $$0@@22)) (>= (|i#Integer| (|Select_[$int]Value| (|v#ValueArray| (|v#Vector| inline$$CopyOrMoveValue$2$local@0)) $$0@@22)) 0)) (<= (|i#Integer| (|Select_[$int]Value| (|v#ValueArray| (|v#Vector| inline$$CopyOrMoveValue$2$local@0)) $$0@@22)) MAX_U8))) :qid |outputbp.1509:52| :skolemid |32| :pattern ( (|Select_[$int]Value| (|v#ValueArray| (|v#Vector| inline$$CopyOrMoveValue$2$local@0)) $$0@@22)) ))) (= $m@6 (Memory (|Store_[Location]$bool| (|domain#Memory| $m@5) (Local (+ 0 2)) true) (|Store_[Location]Value| (|contents#Memory| $m@5) (Local (+ 0 2)) inline$$CopyOrMoveValue$2$local@0)))) (and (=> (= (ControlFlow 0 13721) 25154) inline$$Test_create$0$anon32_Then_correct) (=> (= (ControlFlow 0 13721) 13727) inline$$Test_create$0$anon32_Else_correct))))) (let ((inline$$CopyOrMoveValue$2$Entry_correct (=> (and (= inline$$CopyOrMoveValue$2$local@0 (|Select_[Location]Value| (|contents#Memory| $m@5) (Local (+ 0 8)))) (= (ControlFlow 0 13651) 13721)) inline$$Test_create$0$anon6$2_correct))) (let ((inline$$Test_create$0$anon6$1_correct (=> (and (and (and (is-Vector inline$$CopyOrMoveValue$1$local@0) (let ((va@@50 (|v#Vector| inline$$CopyOrMoveValue$1$local@0))) (let ((l@@50 (|l#ValueArray| va@@50))) (and (<= 0 l@@50) (forall ((x@@50 Int) ) (! (=> (or (< x@@50 0) (>= x@@50 l@@50)) (= (|Select_[$int]Value| (|v#ValueArray| va@@50) x@@50) DefaultValue)) :qid |outputbp.826:21| :skolemid |17| :pattern ( (|Select_[$int]Value| (|v#ValueArray| va@@50) x@@50)) )))))) (forall (($$0@@23 Int) ) (! (=> (and (>= $$0@@23 0) (< $$0@@23 (|l#ValueArray| (|v#Vector| inline$$CopyOrMoveValue$1$local@0)))) (and (and (is-Integer (|Select_[$int]Value| (|v#ValueArray| (|v#Vector| inline$$CopyOrMoveValue$1$local@0)) $$0@@23)) (>= (|i#Integer| (|Select_[$int]Value| (|v#ValueArray| (|v#Vector| inline$$CopyOrMoveValue$1$local@0)) $$0@@23)) 0)) (<= (|i#Integer| (|Select_[$int]Value| (|v#ValueArray| (|v#Vector| inline$$CopyOrMoveValue$1$local@0)) $$0@@23)) MAX_U8))) :qid |outputbp.1504:52| :skolemid |31| :pattern ( (|Select_[$int]Value| (|v#ValueArray| (|v#Vector| inline$$CopyOrMoveValue$1$local@0)) $$0@@23)) ))) (and (= $m@5 (Memory (|Store_[Location]$bool| (|domain#Memory| $m@4) (Local (+ 0 8)) true) (|Store_[Location]Value| (|contents#Memory| $m@4) (Local (+ 0 8)) inline$$CopyOrMoveValue$1$local@0))) (= (ControlFlow 0 13661) 13651))) inline$$CopyOrMoveValue$2$Entry_correct))) (let ((inline$$CopyOrMoveValue$1$Entry_correct (=> (and (= inline$$CopyOrMoveValue$1$local@0 (|Select_[Location]Value| (|contents#Memory| $m@4) (Local (+ 0 1)))) (= (ControlFlow 0 13552) 13661)) inline$$Test_create$0$anon6$1_correct))) (let ((inline$$Test_create$0$anon31_Else_correct (=> (and (not true) (= (ControlFlow 0 13521) 13552)) inline$$CopyOrMoveValue$1$Entry_correct))) (let ((inline$$Test_create$0$anon31_Then_correct (=> (and ($DebugTrackLocal 3 1964 3 inline$$CopyOrMoveValue$0$local@0) (= (ControlFlow 0 25168) 13552)) inline$$CopyOrMoveValue$1$Entry_correct))) (let ((inline$$Test_create$0$anon4$2_correct (=> (and (and (and (and (is-Vector inline$$CopyOrMoveValue$0$local@0) (let ((va@@51 (|v#Vector| inline$$CopyOrMoveValue$0$local@0))) (let ((l@@51 (|l#ValueArray| va@@51))) (and (<= 0 l@@51) (forall ((x@@51 Int) ) (! (=> (or (< x@@51 0) (>= x@@51 l@@51)) (= (|Select_[$int]Value| (|v#ValueArray| va@@51) x@@51) DefaultValue)) :qid |outputbp.826:21| :skolemid |17| :pattern ( (|Select_[$int]Value| (|v#ValueArray| va@@51) x@@51)) )))))) (= (|l#ValueArray| (|v#Vector| inline$$CopyOrMoveValue$0$local@0)) 1)) (and (and (is-Integer (|Select_[$int]Value| (|v#ValueArray| (|v#Vector| inline$$CopyOrMoveValue$0$local@0)) $Test_EventHandleGenerator_counter)) (>= (|i#Integer| (|Select_[$int]Value| (|v#ValueArray| (|v#Vector| inline$$CopyOrMoveValue$0$local@0)) $Test_EventHandleGenerator_counter)) 0)) (<= (|i#Integer| (|Select_[$int]Value| (|v#ValueArray| (|v#Vector| inline$$CopyOrMoveValue$0$local@0)) $Test_EventHandleGenerator_counter)) MAX_U64))) (= $m@4 (Memory (|Store_[Location]$bool| (|domain#Memory| $m@3) (Local (+ 0 3)) true) (|Store_[Location]Value| (|contents#Memory| $m@3) (Local (+ 0 3)) inline$$CopyOrMoveValue$0$local@0)))) (and (=> (= (ControlFlow 0 13515) 25168) inline$$Test_create$0$anon31_Then_correct) (=> (= (ControlFlow 0 13515) 13521) inline$$Test_create$0$anon31_Else_correct))))) (let ((inline$$CopyOrMoveValue$0$Entry_correct (=> (and (= inline$$CopyOrMoveValue$0$local@0 (|Select_[Location]Value| (|contents#Memory| $m@3) (Local (+ 0 7)))) (= (ControlFlow 0 13487) 13515)) inline$$Test_create$0$anon4$2_correct))) (let ((inline$$Test_create$0$anon4$1_correct (=> (and (= $m@3 (Memory (|Store_[Location]$bool| (|domain#Memory| $m@2) (Local (+ 0 7)) true) (|Store_[Location]Value| (|contents#Memory| $m@2) (Local (+ 0 7)) inline$$Test_EventHandleGenerator_pack$0$$struct@1))) (= (ControlFlow 0 13497) 13487)) inline$$CopyOrMoveValue$0$Entry_correct))) (let ((inline$$Test_EventHandleGenerator_pack$0$anon2_Else_correct (=> (and (>= 0 0) (= (ControlFlow 0 13420) 13497)) inline$$Test_create$0$anon4$1_correct))) (let ((inline$$Test_EventHandleGenerator_pack$0$anon2_Then_correct (=> (> 0 0) (=> (and ($DebugTrackLocal 0 0 0 inline$$Test_EventHandleGenerator_pack$0$$struct@1) (= (ControlFlow 0 13438) 13497)) inline$$Test_create$0$anon4$1_correct)))) (let ((inline$$Test_EventHandleGenerator_pack$0$anon0_correct (=> (and (and (and (is-Integer inline$$Test_EventHandleGenerator_pack$0$counter@0) (>= (|i#Integer| inline$$Test_EventHandleGenerator_pack$0$counter@0) 0)) (<= (|i#Integer| inline$$Test_EventHandleGenerator_pack$0$counter@0) MAX_U64)) (= inline$$Test_EventHandleGenerator_pack$0$$struct@1 (Vector (ValueArray (|Store_[$int]Value| (MapConstValue DefaultValue) 0 inline$$Test_EventHandleGenerator_pack$0$counter@0) 1)))) (and (=> (= (ControlFlow 0 13412) 13438) inline$$Test_EventHandleGenerator_pack$0$anon2_Then_correct) (=> (= (ControlFlow 0 13412) 13420) inline$$Test_EventHandleGenerator_pack$0$anon2_Else_correct))))) (let ((inline$$Test_EventHandleGenerator_pack$0$Entry_correct (=> (and (= inline$$Test_EventHandleGenerator_pack$0$counter@0 (|Select_[Location]Value| (|contents#Memory| $m@2) (Local (+ 0 6)))) (= (ControlFlow 0 13390) 13412)) inline$$Test_EventHandleGenerator_pack$0$anon0_correct))) (let ((inline$$Test_create$0$anon4_correct (=> (and (and (= $local_counter@0 (+ 0 26)) (= inline$$Test_create$0$$tmp@1 (Integer 0))) (and (= $m@2 (Memory (|Store_[Location]$bool| (|domain#Memory| $m@1) (Local (+ 0 6)) true) (|Store_[Location]Value| (|contents#Memory| $m@1) (Local (+ 0 6)) inline$$Test_create$0$$tmp@1))) (= (ControlFlow 0 13444) 13390))) inline$$Test_EventHandleGenerator_pack$0$Entry_correct))) (let ((inline$$Test_create$0$anon30_Else_correct (=> (and (not true) (= (ControlFlow 0 13275) 13444)) inline$$Test_create$0$anon4_correct))) (let ((inline$$Test_create$0$anon30_Then_correct (=> (and ($DebugTrackLocal 3 1866 1 auth_key_prefix) (= (ControlFlow 0 25182) 13444)) inline$$Test_create$0$anon4_correct))) (let ((inline$$Test_create$0$anon2_correct (=> (and (and (and (is-Vector auth_key_prefix) (let ((va@@52 (|v#Vector| auth_key_prefix))) (let ((l@@52 (|l#ValueArray| va@@52))) (and (<= 0 l@@52) (forall ((x@@52 Int) ) (! (=> (or (< x@@52 0) (>= x@@52 l@@52)) (= (|Select_[$int]Value| (|v#ValueArray| va@@52) x@@52) DefaultValue)) :qid |outputbp.826:21| :skolemid |17| :pattern ( (|Select_[$int]Value| (|v#ValueArray| va@@52) x@@52)) )))))) (forall (($$0@@24 Int) ) (! (=> (and (>= $$0@@24 0) (< $$0@@24 (|l#ValueArray| (|v#Vector| auth_key_prefix)))) (and (and (is-Integer (|Select_[$int]Value| (|v#ValueArray| (|v#Vector| auth_key_prefix)) $$0@@24)) (>= (|i#Integer| (|Select_[$int]Value| (|v#ValueArray| (|v#Vector| auth_key_prefix)) $$0@@24)) 0)) (<= (|i#Integer| (|Select_[$int]Value| (|v#ValueArray| (|v#Vector| auth_key_prefix)) $$0@@24)) MAX_U8))) :qid |outputbp.1480:63| :skolemid |30| :pattern ( (|Select_[$int]Value| (|v#ValueArray| (|v#Vector| auth_key_prefix)) $$0@@24)) ))) (= $m@1 (Memory (|Store_[Location]$bool| (|domain#Memory| $m@0) (Local (+ 0 1)) true) (|Store_[Location]Value| (|contents#Memory| $m@0) (Local (+ 0 1)) auth_key_prefix)))) (and (=> (= (ControlFlow 0 13269) 25182) inline$$Test_create$0$anon30_Then_correct) (=> (= (ControlFlow 0 13269) 13275) inline$$Test_create$0$anon30_Else_correct))))) (let ((inline$$Test_create$0$anon29_Else_correct (=> (and (not true) (= (ControlFlow 0 13209) 13269)) inline$$Test_create$0$anon2_correct))) (let ((inline$$Test_create$0$anon29_Then_correct (=> (and ($DebugTrackLocal 3 1866 0 fresh_address) (= (ControlFlow 0 25196) 13269)) inline$$Test_create$0$anon2_correct))) (let ((inline$$Test_create$0$anon0_correct (and (=> (= (ControlFlow 0 13203) (- 0 28901)) (not false)) (=> (not false) (=> (and (is-Address fresh_address) (= $m@0 (Memory (|Store_[Location]$bool| (|domain#Memory| $m) (Local (+ 0 0)) true) (|Store_[Location]Value| (|contents#Memory| $m) (Local (+ 0 0)) fresh_address)))) (and (=> (= (ControlFlow 0 13203) 25196) inline$$Test_create$0$anon29_Then_correct) (=> (= (ControlFlow 0 13203) 13209) inline$$Test_create$0$anon29_Else_correct))))))) (let ((inline$$Test_create$0$Entry_correct (and (=> (= (ControlFlow 0 13177) (- 0 28855)) (|Select_[Location]$bool| (|domain#Memory| $m) (Global $DiemAccount_T_type_value (|sender#Transaction| $txn)))) (=> (|Select_[Location]$bool| (|domain#Memory| $m) (Global $DiemAccount_T_type_value (|sender#Transaction| $txn))) (=> (= (ControlFlow 0 13177) 13203) inline$$Test_create$0$anon0_correct))))) (let ((anon0$1_correct (=> (and (|Select_[Location]$bool| (|domain#Memory| $m) (Global $DiemAccount_T_type_value (|sender#Transaction| $txn))) (= (ControlFlow 0 25442) 13177)) inline$$Test_create$0$Entry_correct))) (let ((anon0_correct (=> (= (ControlFlow 0 27784) 25442) anon0$1_correct))) anon0_correct))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))) )) (check-sat)
SMT
3
BlockSuite/libra
language/move-prover/tests/sources/regression/z3/z3_termination_problem.smt
[ "Apache-2.0" ]
import dclass; #import urlcode; backend default { .host = "localhost"; .port = "80"; } sub vcl_init { # load devicemap dclass.init_dclass("/some/path/dClass/dtrees/devicemap.dtree"); #dclass.init_dclass_p("/some/path/DeviceMap/latest/resources",0); # load browser dtree dclass.init_dclass_p("/some/path/dClass/dtrees/browser.dtree",1); } sub vcl_recv { # ua override if(req.url ~ "[^\w]ua="){ set req.http.user-agent = regsub(req.url,"^.*[^\w]ua=([^&]*).*","\1"); #set req.http.user-agent = urlcode.decode(regsub(req.url,"^.*[^\w]ua=([^&]*).*","\1")); } # do the lookup set req.http.dclass_devicemap = dclass.classify(req.http.user-agent); #set req.http.dclass_devicemap = dclass.classify_p(req.http.user-agent,0); set req.http.dclass_browser = dclass.classify_p(req.http.user-agent,1); # set dclass_type set req.http.dclass_type = "unknown"; if(dclass.get_field("is_tablet") == "true"){ set req.http.dclass_type = "tablet"; } else if(dclass.get_field("is_wireless_device") == "true" && dclass.get_field("inputDevices") == "touchscreen"){ set req.http.dclass_type = "smartphone"; } else if(dclass.get_field("is_wireless_device") == "true"){ set req.http.dclass_type = "phone"; } else if(dclass.get_field("is_crawler") == "true"){ set req.http.dclass_type = "crawler"; } else if(dclass.get_field("is_desktop") == "true"){ set req.http.dclass_type = "desktop"; } # /uadiag commands if(req.url ~ "^/uadiag.js"){ error 849 "uadiag.js"; } else if(req.url ~ "^/uadiag"){ error 848 "uadiag"; } } # add dclass_type to the hash sub vcl_hash { hash_data(req.url); if (req.http.host) { hash_data(req.http.host); } else { hash_data(server.ip); } #use this if you are serving different device content on the same URL hash_data(req.http.dclass_type); return (hash); } sub vcl_error { # plain text ua diag if(obj.status == 848){ set obj.status = 200; set obj.http.Content-Type = "text/html; charset=utf-8"; synthetic {"<html><title>UADIAG</title> <body> <h1>UADIAG</h1> <pre> User-Agent: "} + req.http.User-Agent + {" dClass version: "} + dclass.get_version() + {" dClass type: "} + req.http.dclass_type + {" DeviceMap comment: "} + dclass.get_comment() + {" DeviceMap id: "} + req.http.dclass_devicemap + {" DeviceMap device: "} + dclass.get_field("vendor") + {" "} + dclass.get_field("model") + {" DeviceMap display: "} + dclass.get_ifield("displayWidth") + {"x"} + dclass.get_ifield("displayHeight") + {" DeviceMap input: "} + dclass.get_field("inputDevices") + {" DeviceMap js: "} + dclass.get_field("ajax_support_javascript") + {" DeviceMap wireless: "} + dclass.get_field("is_wireless_device") + {" DeviceMap tablet: "} + dclass.get_field("is_tablet") + {" DeviceMap crawler: "} + dclass.get_field("is_crawler") + {" DeviceMap desktop: "} + dclass.get_field("is_desktop") + {" browser comment: "} + dclass.get_comment_p(1) + {" browser id: "} + req.http.dclass_browser + {" browser name: "} + dclass.get_field_p("browser",1) + {" browser ver: "} + dclass.get_ifield_p("version",1) + {" browser os: "} + dclass.get_field_p("os",1) + {" </pre> </body> </html>"}; return(deliver); } # json ua diag with optional jsonp callback parameter else if(obj.status == 849){ set obj.status = 200; set req.http.dclass_cb = ""; set req.http.dclass_cbe = ""; if(req.url ~ "[^\w]callback=\w+"){ set obj.http.Content-Type = "application/javascript; charset=utf-8"; set req.http.dclass_cb = regsub(req.url,"^.*[^\w]callback=(\w+).*","\1("); set req.http.dclass_cbe = ");"; } else { set obj.http.Content-Type = "application/json; charset=utf-8"; } synthetic req.http.dclass_cb + {"{ "user_agent":""} + req.http.User-Agent + {"", "dclass_version":""} + dclass.get_version() + {"", "devicemap_id":""} + req.http.dclass_devicemap + {"", "devicemap_type":""} + req.http.dclass_type + {"", "devicemap_comment":""} + dclass.get_comment() + {"", "devicemap_device":""} + dclass.get_field("vendor") + {" "} + dclass.get_field("model") + {"", "devicemap_display":""} + dclass.get_ifield("displayWidth") + {"x"} + dclass.get_ifield("displayHeight") + {"", "devicemap_input":""} + dclass.get_field("inputDevices") + {"", "devicemap_js":""} + dclass.get_field("ajax_support_javascript") + {"", "devicemap_wireless":""} + dclass.get_field("is_wireless_device") + {"", "devicemap_tablet":""} + dclass.get_field("is_tablet") + {"", "devicemap_crawler":""} + dclass.get_field("is_crawler") + {"", "devicemap_desktop":""} + dclass.get_field("is_desktop") + {"", "browser_id":""} + req.http.dclass_browser + {"", "browser_comment":""} + dclass.get_comment_p(1) + {"", "browser_name":""} + dclass.get_field_p("browser",1) + {"", "browser_ver":""} + dclass.get_ifield_p("version",1) + {"", "browser_os":""} + dclass.get_field_p("os",1) + {"" }"} + req.http.dclass_cbe; return(deliver); } }
VCL
5
TheWeatherChannel/dClass
servers/varnish/dclass.vcl
[ "Apache-2.0" ]
' Licensed to the .NET Foundation under one or more agreements. ' The .NET Foundation licenses this file to you under the MIT license. ' See the LICENSE file in the project root for more information. Namespace Microsoft.CodeAnalysis.Editor.VisualBasic.UnitTests.Recommendations.Declarations Public Class InKeywordRecommenderTests Inherits RecommenderTests <Fact, Trait(Traits.Feature, Traits.Features.KeywordRecommending)> Public Sub InInForEach1Test() VerifyRecommendationsContain(<MethodBody>For Each x |</MethodBody>, "In") End Sub <Fact, Trait(Traits.Feature, Traits.Features.KeywordRecommending)> Public Sub InInForEach2Test() VerifyRecommendationsContain(<MethodBody>For Each x As Goo |</MethodBody>, "In") End Sub <Fact, Trait(Traits.Feature, Traits.Features.KeywordRecommending)> Public Sub InInFromQuery1Test() VerifyRecommendationsContain(<MethodBody>Dim x = From x |</MethodBody>, "In") End Sub <Fact, Trait(Traits.Feature, Traits.Features.KeywordRecommending)> Public Sub InInFromQuery2Test() VerifyRecommendationsContain(<MethodBody>Dim x = From x As Goo |</MethodBody>, "In") End Sub <WorkItem(543231, "http://vstfdevdiv:8080/DevDiv2/DevDiv/_workitems/edit/543231")> <Fact, Trait(Traits.Feature, Traits.Features.KeywordRecommending)> Public Sub InInFromQuery3Test() VerifyRecommendationsAreExactly(<MethodBody>Dim x = From x As Integer |</MethodBody>, "In") End Sub <WorkItem(530953, "http://vstfdevdiv:8080/DevDiv2/DevDiv/_workitems/edit/530953")> <Fact, Trait(Traits.Feature, Traits.Features.KeywordRecommending)> Public Sub NotAfterEolTest() VerifyRecommendationsMissing( <MethodBody>For Each x |</MethodBody>, "In") End Sub <WorkItem(530953, "http://vstfdevdiv:8080/DevDiv2/DevDiv/_workitems/edit/530953")> <Fact, Trait(Traits.Feature, Traits.Features.KeywordRecommending)> Public Sub AfterExplicitLineContinuationTest() VerifyRecommendationsContain( <MethodBody>For Each x _ |</MethodBody>, "In") End Sub <Fact, Trait(Traits.Feature, Traits.Features.KeywordRecommending)> Public Sub AfterExplicitLineContinuationTestCommentsAfterLineContinuation() VerifyRecommendationsContain( <MethodBody>For Each x _ ' Test |</MethodBody>, "In") End Sub End Class End Namespace
Visual Basic
5
frandesc/roslyn
src/EditorFeatures/VisualBasicTest/Recommendations/Declarations/InKeywordRecommenderTests.vb
[ "MIT" ]
from sage.all import * def _EllipticCurve(p, a, b): E = EllipticCurve(GF(p), [a, b]) return E def _add(P, Q): return P + Q def _scalar_mul(c, P): return c*P def _testECC(): """ Reference: https://ctftime.org/task/6860 Testing validity for single instance """ # Defining the Elliptic Curve p = 889774351128949770355298446172353873 a = 12345 b = 67890 E = _EllipticCurve(p, a, b) # Defining points on the Elliptic Curve px, py = (238266381988261346751878607720968495, 591153005086204165523829267245014771) qx, qy = (341454032985370081366658659122300896, 775807209463167910095539163959068826) P = E((px, py)) Q = E((qx, qy)) P_plus_Q = E((323141381196798033512190262227161667, 775010084514487531788273912037060561)) twelveP = E((771157329084582589666569152178346504, 869049850567812139357308211622374273)) try: assert _add(P, Q) == P_plus_Q assert _scalar_mul(12, P) == twelveP except: return -1 return 1 if _testECC() == 1: print "[+] Test Passed!" else: print "[-] Test Failed!"
Sage
4
amoniaka-knabino/Crypton
Elliptic-Curves/ellipticcurve.sage
[ "MIT" ]
package com.tobykurien.webapps.fragment import android.app.AlertDialog import android.content.Context import android.os.Bundle import android.preference.Preference import android.preference.Preference.OnPreferenceChangeListener import android.preference.PreferenceFragment import android.widget.EditText import com.tobykurien.webapps.R import static extension com.tobykurien.webapps.utils.Settings.* class PreferencesFragment extends PreferenceFragment { override onActivityCreated(Bundle savedInstanceState) { super.onActivityCreated(savedInstanceState) addPreferencesFromResource(R.xml.settings) val uaPref = preferenceManager.findPreference("user_agent") uaPref.summary = settings.userAgent.showUA uaPref.onPreferenceChangeListener = new OnPreferenceChangeListener() { override onPreferenceChange(Preference pref, Object value) { val ua = value as String if (ua == "Custom") { // ask user for custom user agent activity.promptUA [ newUA | uaPref.summary = newUA.showUA pref.editor.putString("user_agent", newUA).commit() ] } else { uaPref.summary = ua.showUA pref.editor.putString("user_agent", ua).commit() } true } } } def static promptUA(Context context, (String)=>void proc) { val inputField = new EditText(context) new AlertDialog.Builder(context) .setTitle(R.string.menu_user_agent) .setView(inputField) .setPositiveButton(android.R.string.ok, [ dlg, i | proc.apply(inputField.text.toString()) dlg.dismiss ]) .create() .show() } def showUA(String ua) { if (ua.trim().length() == 0) { "Default" } else { ua } } }
Xtend
4
sr093906/WebApps
app/src/main/java/com/tobykurien/webapps/fragment/PreferencesFragment.xtend
[ "MIT" ]
#lang scribble/base @(require scribble/manual scriblib/figure "defs.rkt" "bib.rkt") @title*{Tactics} In this section we describe a tactic system called @emph{ntac} implemented in Cur. We begin with an example of using the tactic system to prove a trivial theorem: @racketblock[ ntac $ forall (A : Type) (a : A) A by-intro A by-intro b by-assumption ] This example shows the type of the polymorphic identity function written using tactics. We use @racket[ntac], a form that builds an expression given an initial goal followed by a tactic script. This is similar to @code{Goal} in Coq, which introduces an anonymous goal that can be solved using an Ltac script. In this example we use the @racket[by-intro] tactic, which takes a single optional argument representing the name to bind as an assumption in the local proof environment. Then we conclude the proof with @racket[by-assumption], which takes no arguments and searches the local environment for a term that matches the current goal. Since all goals are complete at this point, we end the proof. @racketblock[ define-theorem id $ forall (A : Type) (a : A) A by-obvious ] We can also use @racket[define-theorem] to define a new identifier using an ntac script. The form @racket[(define-theorem name goal script ...)] is simply syntax sugar for @racket[(define name (ntac goal script ...))]. In this example, we use the @racket[by-obvious] tactic which solves certain trivial theorems. We begin implementing ntac by implementing the @racket[ntac] form: @RACKETBLOCK[ define-syntax (ntac stx) syntax-case stx () [(_ goal . script) (ntac-interp #'goal #'script)] ] The @racket[ntac] form runs, at compile-time, the metalanguage function @racket[ntac-interp] to generate an object language term. The function @racket[ntac-interp] takes syntax representing an object language type, @racket[#'goal] and syntax representing a sequence of tactics, @racket[#'script]. In ntac, we use proof trees @racket[ntt] to represent partial terms in the object language with multiple holes and contextual information such as assumptions, and then use the ntac proof tree zipper @racket[nttz] to navigate the tree and focus on a particular goal. Tactics are metalanguage functions on @racket[nttz]s. We will not discuss this design or these data structures in more details here; the design is described in the Cur documentation. Since tactics are just metalanguage functions, we can create syntactic sugar for defining tactics as follows: @racketblock[ define-syntax $ define-tactic syn syntax-rules () [(_ e ...) (begin-for-syntax (define e ...))] ] The form @racket[define-tactic] is simply a wrapper for conveniently defining a new metalanguage function. Note that this extension generates metalanguage code, by generating a new metalanguage block containing a metalanguage definition. Until now, we have only seen extensions that compute using the metalanguage and generate code in object language, but recall from @secref{sec:cur} that Cur supports an infinite hierarchy of language extension. Now let us write the tactic script interpreter. We begin by defining the function @racket[run-tactic], which takes a proof tree zipper and a syntax object representing a call to a tactic. @racketblock[ begin-for-syntax define $ run-tactic nttz tactic-stx define tactic $ eval tactic-stx tactic nttz ] We use @racket[eval] to evaluate the syntax representing the function name and get a function value. Then we simply apply the tactic to the proof tree zipper. Finally, we define @racket[ntac-interp] to interpret a tactic script and solve a goal. @racketblock[ begin-for-syntax define $ ntac-interp goal script define pt $ new-proof-tree $ cur-expand goal define last-nttz for/fold ([nttz (make-nttz pt)]) ([tactic-stx (syntax->list script)]) run-tactic nttz tactic-stx proof-tree->term $ finish-nttz last-nttz ] We begin by generating a fresh proof tree which starts with one goal. The @racket[for/fold] form folds @racket[run-tactic] over the list of tactic calls with a starting proof tree zipper over the initial proof tree. After running all tactics, we check that the proof has no goals left, then generate a term from the proof tree. Many operations work directly on the current proof tree, so it is cumbersome to define each tactic by first extracting the proof tree from the proof tree zipper. We introduce a notion of @emph{tacticals}, metalanguage functions that take a context and a proof tree and return a new proof tree. We define a tactic @racket[fill] to take a tactical and apply it at the focus of the proof tree zipper. With a notion of tacticals, we can easily define the tactical @racket[intro] as follows: @RACKETBLOCK[ define-tactical ((intro [name #f]) env pt) define $ ntt-goal pt ntac-match goal [(forall (x : P) body) define the-name (syntax->datum (or name #'x)) make-ntt-apply goal λ (body-pf) #`(λ (#,the-name : P) #,body-pf) list make-ntt-env λ (old-env) (hash-set old-env the-name #'P) make-ntt-hole #'body] ] We define a new tactical @racket[intro], which takes one optional argument from the user @racket[name], and will be provided the local environment and proof tree from the ntac interpreter. In @racket[intro], we start by extracting the current goal from the proof tree. To pattern match on the goal we use the form @racket[ntac-match], a simple wrapper around the Racket @racket[match] form that hides some boilerplate such as expanding the goal into a Curnel form and raising an exception if no patterns match. If the goal has the form of a dependent function type, we make a new node in the ntac proof tree that solves goal by taking a solution for the type of the body of the function and building a lambda expression in the object language. This node contains a subtree that makes the solution of @racket[#'body] the new goal and adds the assumption that @racket[name] has type @racket[P] in the scope of this new goal. To make the @racket[intro] tactical easier to use at the top level, we define the @racket[by-intro] tactic: @racketblock[ begin-for-syntax define-syntax $ by-intro syn syntax-case syn () [_ #`(fill (intro))] [(_ name) #`(fill (intro #'name))] ] We create a metalanguage macro @racket[by-intro] that takes a name as an optional argument. This macro expands to an application of the @racket[fill] tactic to the @racket[intro] tactical. We define @racket[by-intro] as a macro so the user can enter a name for the assumption as a raw symbol, like @racket[(by-intro A)], rather than as a syntax object like @racket[(by-intro #'A)]. Since tactics are arbitrary metalanguage functions, we can define tactics in terms of other tactics, define recursive tactics, and even call to external programs or solvers in the metalanguage or even through the foreign-function interface of our metalanguage. Our next tactic, @racket[by-obvious], demonstrates these first two features. It will solve any theorem that follows immediately from its premises. @racketblock[ define-tactical $ obvious env pt ntac-match $ ntt-goal pt [(forall (a : P) body) ((intro) env pt)] [a:id (assumption env pt)] define-tactic $ by-obvious ptz define nptz $ (fill obvious) ptz if $ nttz-done? nptz nptz by-obvious nptz ] First we define the @racket[obvious] tactical, which simply matches a goal and uses either @racket[intro] or @racket[assumption] to solve it. Then we define the @racket[by-obvious] tactic which fills the hole using the @racket[obvious] tactical and recurs until there are no goals left. As we have the entire metalanguage available, we can define sophisticated tactics that do arbitrary metalanguage computation. For instance, since our metalanguage provides I/O and reflection, we can define interactivity as a user-defined tactic. We begin implementing interactive by first implementing the @racket[print] tactic. This tactic will print the state of the focus of the proof tree zipper and return it unmodified. @racketblock[ define-tactic $ print ptz match $ nttz-focus ptz [(ntt-hole _ goal) for ([(k v) (in-hash (nttz-context tz))]) printf "~a : ~a\n" k (syntax->datum v) printf "-----------------------------\n" printf "~a\n\n" (syntax->datum goal)] [(ntt-done _ _ _) printf "Proof complete.\n"] ptz ] We first match on the focus of proof tree zipper. If there is a goal, then we print all assumptions in the context followed by a horizontal line and the current goal. If the zipper indicates the proof has no goals left, then we simply print "Proof Complete". Now we define the @racket[interactive] tactic. This tactic uses the @racket[print] tactic to print the proof state, then starts a read-eval-print-loop (REPL). @racketblock[ define-tactic $ interactive ptz print ptz let ([cmd (read-syntax)]) syntax-case cmd (quit) [(quit) ....] [tactic (define ntz (run-tactic ptz tactic)) (interactive ntz)] ] The REPL reads in a command and runs it via @racket[run-tactics] if it is a tactic. The REPL also accepts @racket[quit] as a command that exits the REPL and returns the final proof state. Now we have defined not only a user-defined tactic system, but a user-defined @emph{interactive} tactic system. We can use the interactive tactic just like any other tactic: @racketblock[ ntac $ forall (A : Type) (a : A) A interactive ] The following is a sample session in our interactive tactic: @racketblock[ ——————————– (forall (A : Type) (forall (a : A) A)) > (by-intro A) A : Type ——————————– (forall (a : A) A) .... > by-assumption Proof complete. > (quit) ]
Racket
5
bluephoenix47/cic-redex
cur-paper/tactics.scrbl
[ "BSD-2-Clause" ]
desc_sv=CD Brännare
SystemVerilog
0
GalaxyGFX/webmin
burner/module.info.sv
[ "BSD-3-Clause-No-Nuclear-License-2014", "BSD-3-Clause" ]
Stav 5 conflicts: 1 shift/reduce Gramatika 0 $accept: expr $end 1 expr: expr '-' expr 2 | '1' Terminály s pravidly, ve kterých se objevují $end (0) 0 '-' (45) 1 '1' (49) 2 error (256) Neterminály s pravidly, ve kterých se objevují $accept (5) vlevo: 0 expr (6) vlevo: 1 2, vpravo: 0 1 State 0 0 $accept: . expr $end 1 expr: . expr '-' expr 2 | . '1' '1' posunout a přejít do stavu 1 expr přejít do stavu 2 State 1 2 expr: '1' . $výchozí reduce using rule 2 (expr) State 2 0 $accept: expr . $end 1 expr: expr . '-' expr $end posunout a přejít do stavu 3 '-' posunout a přejít do stavu 4 State 3 0 $accept: expr $end . $výchozí přijmout State 4 1 expr: . expr '-' expr 1 | expr '-' . expr 2 | . '1' '1' posunout a přejít do stavu 1 expr přejít do stavu 5 State 5 1 expr: expr . '-' expr 1 | expr '-' expr . [$end, '-'] '-' posunout a přejít do stavu 4 '-' [reduce using rule 1 (expr)] $výchozí reduce using rule 1 (expr)
Bison
3
YKG/y
testdata/dev/sr.y.bison
[ "BSD-3-Clause" ]
#include "caffe2/operators/sqrt_op.h" #include "caffe2/core/context_gpu.h" namespace caffe2 { REGISTER_CUDA_OPERATOR( Sqrt, UnaryElementwiseOp< TensorTypes<float>, CUDAContext, SqrtFunctor<CUDAContext>>); } // namespace caffe2
C++
3
Hacky-DH/pytorch
caffe2/operators/sqrt_op_gpu.cc
[ "Intel" ]
--TEST-- opendir() with 'ftp://' stream. --SKIPIF-- <?php if (array_search('ftp',stream_get_wrappers()) === FALSE) die("skip ftp wrapper not available."); if (!function_exists('pcntl_fork')) die("skip pcntl_fork() not available."); ?> --FILE-- <?php require __DIR__ . "/../../../ftp/tests/server.inc"; $path="ftp://localhost:" . $port."/"; $ds=opendir($path); var_dump($ds); while ($fn=readdir($ds)) { var_dump($fn); } closedir($ds); ?> --EXPECTF-- resource(%d) of type (stream) string(5) "file1" string(5) "file1" string(3) "fil" string(4) "b0rk"
PHP
3
thiagooak/php-src
ext/standard/tests/streams/opendir-002.phpt
[ "PHP-3.01" ]
package universe_test import "testing" option now = () => 2030-01-01T00:00:00Z inData = " #datatype,string,long,dateTime:RFC3339,long,string,string,string,string #group,false,false,false,false,true,true,true,true #default,_result,,,,,,, ,result,table,_time,_value,_field,_measurement,host,name ,,0,2018-05-22T19:53:26Z,15204688,io_time,diskio,host.local,disk0 ,,0,2018-05-22T19:53:36Z,15204894,io_time,diskio,host.local,disk0 ,,0,2018-05-22T19:53:46Z,15205102,io_time,diskio,host.local,disk0 ,,0,2018-05-22T19:53:56Z,15205226,io_time,diskio,host.local,disk0 ,,0,2018-05-22T19:54:06Z,15205499,io_time,diskio,host.local,disk0 ,,0,2018-05-22T19:54:16Z,15205755,io_time,diskio,host.local,disk0 ,,1,2018-05-22T19:53:26Z,648,io_time,diskio,host.local,disk2 ,,1,2018-05-22T19:53:36Z,648,io_time,diskio,host.local,disk2 ,,1,2018-05-22T19:53:46Z,648,io_time,diskio,host.local,disk2 ,,1,2018-05-22T19:53:56Z,648,io_time,diskio,host.local,disk2 ,,1,2018-05-22T19:54:06Z,648,io_time,diskio,host.local,disk2 ,,1,2018-05-22T19:54:16Z,648,io_time,diskio,host.local,disk2 #datatype,string,long,dateTime:RFC3339,double,string,string,string #group,false,false,false,false,true,true,true #default,_result,,,,,, ,result,table,_time,_value,_field,_measurement,host ,,2,2018-05-22T19:53:26Z,1.83,load1,system,host.local ,,2,2018-05-22T19:53:36Z,1.7,load1,system,host.local ,,2,2018-05-22T19:53:46Z,1.74,load1,system,host.local ,,2,2018-05-22T19:53:56Z,1.63,load1,system,host.local ,,2,2018-05-22T19:54:06Z,1.91,load1,system,host.local ,,2,2018-05-22T19:54:16Z,1.84,load1,system,host.local ,,3,2018-05-22T19:53:26Z,1.98,load15,system,host.local ,,3,2018-05-22T19:53:36Z,1.97,load15,system,host.local ,,3,2018-05-22T19:53:46Z,1.97,load15,system,host.local ,,3,2018-05-22T19:53:56Z,1.96,load15,system,host.local ,,3,2018-05-22T19:54:06Z,1.98,load15,system,host.local ,,3,2018-05-22T19:54:16Z,1.97,load15,system,host.local ,,4,2018-05-22T19:53:26Z,1.95,load5,system,host.local ,,4,2018-05-22T19:53:36Z,1.92,load5,system,host.local ,,4,2018-05-22T19:53:46Z,1.92,load5,system,host.local ,,4,2018-05-22T19:53:56Z,1.89,load5,system,host.local ,,4,2018-05-22T19:54:06Z,1.94,load5,system,host.local ,,4,2018-05-22T19:54:16Z,1.93,load5,system,host.local " outData = " #datatype,string,long,dateTime:RFC3339,dateTime:RFC3339,string,string,string,string,long #group,false,false,true,true,true,true,true,true,false #default,_result,,,,,,,, ,result,table,_start,_stop,_measurement,_field,host,name,_value ,,0,2018-05-22T19:53:26Z,2030-01-01T00:00:00Z,diskio,io_time,host.local,disk0,6 ,,1,2018-05-22T19:53:26Z,2030-01-01T00:00:00Z,diskio,io_time,host.local,disk2,0 " t_filter_mixed_empty = (table=<-) => table |> range(start: 2018-05-22T19:53:26Z) |> filter(fn: (r) => r._measurement == "diskio") |> filter(fn: (r) => r["_value"] > 1000, onEmpty: "keep") |> count() test _filter_mixed_empty = () => ({input: testing.loadStorage(csv: inData), want: testing.loadMem(csv: outData), fn: t_filter_mixed_empty})
FLUX
4
metrico/flux
stdlib/universe/filter_mixed_empty_test.flux
[ "MIT" ]
{ lib, bundlerEnv, ruby, bundlerUpdateScript }: bundlerEnv rec { pname = "elm_install"; name = "elm-github-install-${version}"; version = (import ./gemset.nix).elm_install.version; inherit ruby; gemdir = ./.; passthru.updateScript = bundlerUpdateScript "elm-github-install"; meta = with lib; { description = "Install Elm packages from git repositories"; homepage = "https://github.com/gdotdesign/elm-github-install"; license = licenses.unfree; maintainers = with maintainers; [ roberth nicknovitski ]; platforms = platforms.all; }; }
Nix
4
collinwright/nixpkgs
pkgs/tools/package-management/elm-github-install/default.nix
[ "MIT" ]
(let (v '(foo bar baz)) (test (= (v/join _) "foobarbaz")) (test (= (v/join ",") "foo,bar,baz")))
Grammatical Framework
3
daota2/fffff
v1/test/seq.gf
[ "MIT" ]
#include <upc.h> /* Required for UPC extensions */ #include <stdio.h> #include <stdlib.h> #include <math.h> shared int all_hits[THREADS]; int trial_in_disk() { float x = (float)((float)rand() / (float)RAND_MAX); float y = (float)((float)rand() / (float)RAND_MAX); if((pow(x, 2) + pow(y, 2)) < 1) { return 1; } return 0; } int main() { int i, hits = 0, tot = 0, trials = 1000000; srand(1+MYTHREAD*17); for(i = 0; i < trials; ++i) { hits += trial_in_disk(); } all_hits[MYTHREAD] += hits; upc_barrier; if(MYTHREAD == 0) { for(i = 0; i < THREADS; ++i) { tot += all_hits[i]; } printf("Pi approx %g\n", 4.0*tot/(trials*THREADS)); } return 1; }
Unified Parallel C
4
ouankou/rose
projects/RTC2/tests/unsorted/par_examples/pi_calc.upc
[ "BSD-3-Clause" ]
within Modelica.Mechanics; package Translational "Library to model 1-dimensional, translational mechanical systems" extends Modelica.Icons.Package; import SI = Modelica.SIunits; package Examples "Demonstration examples of the components of this package" extends Modelica.Icons.ExamplesPackage; model SignConvention "Examples for the used sign conventions." extends Modelica.Icons.Example; Translational.Components.Mass mass1(L=1, s(fixed=true), v(fixed=true), m=1) annotation (Placement( transformation(extent={{40,60},{60,80}}, rotation=0))); Translational.Sources.Force force1 annotation (Placement(transformation(extent={{ -4,60},{16,80}}, rotation=0))); Modelica.Blocks.Sources.Constant constant1(k=1) annotation (Placement(transformation(extent={{ -44,60},{-24,80}}, rotation=0))); Translational.Components.Mass mass2(L=1, s(fixed=true), v(fixed=true), m=1) annotation (Placement( transformation(extent={{40,0},{60,20}}, rotation=0))); Translational.Sources.Force force2 annotation (Placement(transformation(extent={{ -4,20},{16,40}}, rotation=0))); Modelica.Blocks.Sources.Constant constant2(k=1) annotation (Placement(transformation(extent={{ -44,20},{-24,40}}, rotation=0))); Translational.Components.Mass mass3(L=1, s(fixed=true), v(fixed=true), m=1) annotation (Placement( transformation(extent={{-40,-40},{-20,-20}}, rotation=0))); Translational.Sources.Force force3(useSupport=true) annotation (Placement(transformation(extent={{ 20,-40},{0,-20}}, rotation=0))); Modelica.Blocks.Sources.Constant constant3(k=1) annotation (Placement(transformation(extent={{ 60,-40},{40,-20}}, rotation=0))); Translational.Components.Fixed fixed annotation (Placement(transformation(extent={{0,-60},{20,-40}}))); equation connect(constant1.y,force1. f) annotation (Line(points={{-23,70},{-6,70}}, color={0,0,127})); connect(constant2.y,force2. f) annotation (Line(points={{-23,30},{-6,30}}, color={0,0,127})); connect(constant3.y,force3. f) annotation (Line(points={{39,-30},{22,-30}}, color={0,0,127})); connect(force1.flange, mass1.flange_a) annotation (Line( points={{16,70},{40,70}}, color={0,127,0}, smooth=Smooth.None)); connect(force2.flange, mass2.flange_b) annotation (Line( points={{16,30},{70,30},{70,10},{60,10}}, color={0,127,0}, smooth=Smooth.None)); connect(mass3.flange_b, force3.flange) annotation (Line( points={{-20,-30},{0,-30}}, color={0,127,0}, smooth=Smooth.None)); connect(fixed.flange, force3.support) annotation (Line( points={{10,-50},{10,-40}}, color={0,127,0}, smooth=Smooth.None)); annotation (Documentation(info="<html> <p> If all arrows point in the same direction a positive force results in a positive acceleration a, velocity v and position s. </p> <p> For a force of 1 N and a mass of 1 Kg this leads to </p> <pre> a = 1 m/s2 v = 1 m/s after 1 s (SlidingMass1.v) s = 0.5 m after 1 s (SlidingMass1.s) </pre> <p> The acceleration is not available for plotting. </p> <p> System 1) and 2) are equivalent. It doesn't matter whether the force pushes at flange_a in system 1 or pulls at flange_b in system 2. </p><p> It is of course possible to ignore the arrows and connect the models in an arbitrary way. But then it is hard see in what direction the force acts. </p><p> In the third system the two arrows are opposed which means that the force acts in the opposite direction (in the same direction as in the two other examples). </p> </html>"), Diagram(coordinateSystem(preserveAspectRatio=true, extent={{-100,-100},{ 100,100}}), graphics={ Text( extent={{-100,80},{-82,60}}, textString="1)", lineColor={0,0,255}), Text( extent={{-100,40},{-82,20}}, textString="2)", lineColor={0,0,255}), Text( extent={{-100,-20},{-82,-40}}, textString="3)", lineColor={0,0,255})}), experiment(StopTime=1.0, Interval=0.001)); end SignConvention; model InitialConditions "Setting of initial conditions" extends Modelica.Icons.Example; Translational.Components.Fixed fixed2( s0=1) annotation (Placement(transformation( extent={{-100,60},{-80,80}}, rotation=0))); Translational.Components.Spring s2( s_rel0=2, c=1e3) annotation (Placement( transformation(extent={{-60,60},{-40,80}}, rotation=0))); Translational.Components.Mass m3( L=3, s(start=4.5, fixed=true), v(fixed=true), m=1) annotation (Placement( transformation(extent={{-20,60},{0,80}}, rotation=0))); Translational.Components.SpringDamper sd2( s_rel0=4, c=111, d=1) annotation (Placement( transformation(extent={{20,60},{40,80}}, rotation=0))); Translational.Components.Mass m4( L=5, s(start=12.5, fixed=true), v(fixed=true), m=1) annotation (Placement( transformation(extent={{60,60},{80,80}}, rotation=0))); Translational.Components.Fixed fixed1( s0=-1) annotation (Placement(transformation( extent={{-100,-20},{-80,0}}, rotation=0))); Translational.Components.Spring s1( s_rel0=1, c=1e3, s_rel(start=1, fixed=true)) annotation (Placement(transformation(extent={{-58,-20}, {-38,0}}, rotation=0))); Translational.Components.Mass m1( L=1, v(fixed=true), m=1) annotation (Placement(transformation( extent={{-20,-20},{0,0}}, rotation=0))); Translational.Components.SpringDamper sd1( s_rel0=1, c=111, s_rel(start=1, fixed=true), v_rel(fixed=true), d=1) annotation (Placement(transformation(extent={{20,-20},{ 40,0}}, rotation=0))); Translational.Components.Mass m2( L=2, m=1) annotation (Placement(transformation( extent={{60,-20},{80,0}}, rotation=0))); equation connect(s2.flange_a, fixed2.flange) annotation (Line( points={{-60,70},{-90,70}}, color={0,127,0}, smooth=Smooth.None)); connect(s1.flange_a, fixed1.flange) annotation (Line( points={{-58,-10},{-90,-10}}, color={0,127,0}, smooth=Smooth.None)); connect(m1.flange_a, s1.flange_b) annotation (Line( points={{-20,-10},{-38,-10}}, color={0,127,0}, smooth=Smooth.None)); connect(sd1.flange_a, m1.flange_b) annotation (Line( points={{20,-10},{0,-10}}, color={0,127,0}, smooth=Smooth.None)); connect(m2.flange_a, sd1.flange_b) annotation (Line( points={{60,-10},{40,-10}}, color={0,127,0}, smooth=Smooth.None)); connect(m4.flange_a, sd2.flange_b) annotation (Line( points={{60,70},{40,70}}, color={0,127,0}, smooth=Smooth.None)); connect(sd2.flange_a, m3.flange_b) annotation (Line( points={{20,70},{0,70}}, color={0,127,0}, smooth=Smooth.None)); connect(m3.flange_a, s2.flange_b) annotation (Line( points={{-20,70},{-40,70}}, color={0,127,0}, smooth=Smooth.None)); annotation ( Documentation(info="<html> <p> There are several ways to set initial conditions. In the first system the position of the mass m3 was defined by using the modifier s(start=4.5), the position of m4 by s(start=12.5). These positions were chosen such that the system is a rest. To calculate these values start at the left (Fixed1) with a value of 1 m. The spring has an unstretched length of 2 m and m3 an length of 3 m, which leads to </p> <pre> 1 m (fixed1) + 2 m (spring s2) + 3/2 m (half of the length of mass m3) ------- 4,5 m = s(start = 4.5) for m3 + 3/2 m (half of the length of mass m3) + 4 m (springDamper 2) + 5/2 m (half of length of mass m4) ------- 12,5 m = s(start = 12.5) for m4 </pre> <p> This selection of initial conditions has the effect that Dymola selects those variables (m3.s and m4.s) as state variables. In the second example the length of the springs are given as start values but they cannot be used as state for pure springs (only for the spring/damper combination). In this case the system is not at rest. </p> <p> <IMG src=\"modelica://Modelica/Resources/Images/Mechanics/Translational/InitialConditions.png\"> </p> </html>"), experiment(StopTime=5.0, Interval=0.001)); end InitialConditions; model WhyArrows "Use of arrows in Mechanics.Translational" extends Modelica.Icons.Example; Translational.Components.Fixed fixed annotation (Placement(transformation(extent={{ -20,20},{0,40}}, rotation=0))); Translational.Components.Rod rod1( L=1) annotation (Placement(transformation(extent={ {-48,20},{-28,40}}, rotation=0))); Translational.Components.Rod rod2( L=1) annotation (Placement(transformation(extent={ {20,20},{40,40}}, rotation=0))); Translational.Components.Rod rod3( L=1) annotation (Placement(transformation(extent={ {-30,58},{-50,78}}, rotation=0))); Translational.Sensors.PositionSensor positionSensor2 annotation (Placement( transformation(extent={{60,20},{80,40}}, rotation=0))); Translational.Sensors.PositionSensor positionSensor1 annotation (Placement( transformation(extent={{-60,20},{-80,40}}, rotation=0))); Translational.Sensors.PositionSensor positionSensor3 annotation (Placement( transformation(extent={{-60,58},{-80,78}}, rotation=0))); Translational.Components.Fixed fixed1( s0=-1.9) annotation (Placement(transformation( extent={{-100,-60},{-80,-40}}, rotation=0))); Translational.Components.Spring spring1( s_rel0=2, c=11) annotation (Placement( transformation(extent={{-80,-60},{-60,-40}}, rotation=0))); Translational.Components.Mass mass1( L=2, s(fixed=true), v(fixed=true), m=1) annotation (Placement( transformation(extent={{-50,-60},{-30,-40}}, rotation=0))); Translational.Components.Fixed fixed2( s0=-1.9) annotation (Placement(transformation( extent={{0,-60},{20,-40}}, rotation=0))); Translational.Components.Spring spring2( s_rel0=2, c=11) annotation (Placement( transformation(extent={{30,-60},{50,-40}}, rotation=0))); Translational.Components.Mass inertia2( L=2, m=1, s(fixed=true), v(fixed=true)) annotation (Placement( transformation(extent={{80,-60},{60,-40}}, rotation=0))); equation connect(spring1.flange_b, mass1.flange_b) annotation (Line(points={{-60,-50}, {-60,-72},{-30,-72},{-30,-50}}, color={0,191,0})); connect(spring2.flange_b, inertia2.flange_b) annotation (Line(points={{50,-50}, {60,-50}}, color={0,191,0})); connect(rod3.flange_b,positionSensor3. flange) annotation (Line( points={{-50,68},{-60,68}}, color={0,127,0}, smooth=Smooth.None)); connect(rod1.flange_a,positionSensor1. flange) annotation (Line( points={{-48,30},{-60,30}}, color={0,127,0}, smooth=Smooth.None)); connect(rod1.flange_b, fixed.flange) annotation (Line( points={{-28,30},{-10,30}}, color={0,127,0}, smooth=Smooth.None)); connect(rod3.flange_a, fixed.flange) annotation (Line( points={{-30,68},{-10,68},{-10,30}}, color={0,127,0}, smooth=Smooth.None)); connect(fixed.flange, rod2.flange_a) annotation (Line( points={{-10,30},{20,30}}, color={0,127,0}, smooth=Smooth.None)); connect(rod2.flange_b,positionSensor2. flange) annotation (Line( points={{40,30},{60,30}}, color={0,127,0}, smooth=Smooth.None)); connect(fixed1.flange,spring1. flange_a) annotation (Line( points={{-90,-50},{-80,-50}}, color={0,127,0}, smooth=Smooth.None)); connect(fixed2.flange,spring2. flange_a) annotation (Line( points={{10,-50},{30,-50}}, color={0,127,0}, smooth=Smooth.None)); annotation ( Documentation(info="<html> <p> When using the models of the translational sublibrary it is recommended to make sure that all arrows point in the same direction because then all component have the same reference system. In the example the distance from flange_a of Rod1 to flange_b of Rod2 is 2 m. The distance from flange_a of Rod1 to flange_b of Rod3 is also 2 m though it is difficult to see that. Without the arrows it would be almost impossible to notice. That all arrows point in the same direction is a sufficient condition for an easy use of the library. There are cases where horizontally flipped models can be used without problems. </p> </html>"), Diagram(coordinateSystem( preserveAspectRatio=true, extent={{-100,-100},{100,100}}), graphics={ Text( extent={{-84,10},{88,2}}, lineColor={0,0,255}, textString="positionSensor2.s = positionSensor3.s"), Text( extent={{-78,-4},{86,-12}}, lineColor={0,0,255}, textString="positionSensor3.s <>positionSensor1.s"), Text( extent={{-82,-80},{92,-88}}, textString="Both systems are equivalent", lineColor={0,0,255}), Line( points={{-90,-28},{90,-28}}, thickness=0.5, color={0,0,255})}), experiment(StopTime=1.0, Interval=0.001)); end WhyArrows; model Accelerate "Use of model accelerate." extends Modelica.Icons.Example; Translational.Sources.Accelerate accelerate annotation (Placement(transformation( extent={{-40,20},{-20,40}}, rotation=0))); Translational.Components.Mass mass(L=1, m=1) annotation (Placement( transformation(extent={{0,20},{20,40}}, rotation=0))); Modelica.Blocks.Sources.Constant constantAcc(k=1) annotation (Placement(transformation(extent={{-80,20}, {-60,40}}, rotation=0))); equation connect(accelerate.flange, mass.flange_a) annotation (Line( points={{-20,30},{0,30}}, color={0,127,0}, smooth=Smooth.None)); connect(constantAcc.y, accelerate.a_ref) annotation (Line( points={{-59,30},{-42,30}}, color={0,0,127}, smooth=Smooth.None)); annotation (Documentation(info="<html> <p> Demonstrate usage of component Sources.Accelerate by moving a massing with a predefined acceleration. </p> </html>"), experiment(StopTime=1.0, Interval=0.001)); end Accelerate; model Damper "Use of damper models." extends Modelica.Icons.Example; Translational.Components.Mass mass1( L=1, s(start=3, fixed=true), v(start=10, fixed=true), m=1) annotation (Placement(transformation(extent={{-80,60},{-60, 80}}, rotation=0))); Translational.Components.Damper damper1( d=25) annotation (Placement(transformation( extent={{-20,60},{0,80}}, rotation=0))); Translational.Components.Fixed fixed1( s0=4.5) annotation (Placement(transformation( extent={{22,60},{42,80}}, rotation=0))); Translational.Components.Mass mass2( L=1, s(start=3, fixed=true), v(start=10, fixed=true), m=1) annotation (Placement(transformation(extent={{-80,0},{-60, 20}}, rotation=0))); Translational.Components.Damper damper2( d=25) annotation (Placement(transformation( extent={{-20,0},{0,20}}, rotation=0))); Translational.Components.Fixed fixed2( s0=4.5) annotation (Placement(transformation( extent={{20,0},{40,20}}, rotation=0))); Translational.Components.Mass mass3( L=1, s(start=3, fixed=true), v(start=10, fixed=true), m=1) annotation (Placement(transformation(extent={{-80,-60},{-60, -40}}, rotation=0))); Translational.Components.Fixed fixed3( s0=4.5) annotation (Placement(transformation( extent={{20,-60},{40,-40}}, rotation=0))); Translational.Components.Spring spring2( s_rel0=1, c=1) annotation (Placement( transformation(extent={{-20,-20},{0,0}}, rotation=0))); Translational.Components.SpringDamper springDamper3( s_rel0=1, d=25, c=1) annotation (Placement( transformation(extent={{-20,-60},{0,-40}}, rotation=0))); equation connect(mass1.flange_b, damper1.flange_a) annotation (Line(points= {{-60,70},{-20,70}}, color={0,191,0})); connect(mass2.flange_b, damper2.flange_a) annotation (Line(points={{-60,10}, {-20,10}}, color={0,191,0})); connect(damper2.flange_b,spring2. flange_b) annotation (Line(points={{0, 10},{0,-10}}, color={0,191,0})); connect(damper2.flange_a,spring2. flange_a) annotation (Line(points={{-20, 10},{-20,-10}}, color={0,191,0})); connect(mass3.flange_b, springDamper3.flange_a) annotation (Line( points={{-60,-50},{-20,-50}}, color={0,191,0})); connect(damper1.flange_b, fixed1.flange) annotation (Line( points={{0,70},{32,70}}, color={0,127,0}, smooth=Smooth.None)); connect(damper2.flange_b, fixed2.flange) annotation (Line( points={{0,10},{30,10}}, color={0,127,0}, smooth=Smooth.None)); connect(springDamper3.flange_b, fixed3.flange) annotation (Line( points={{0,-50},{30,-50}}, color={0,127,0}, smooth=Smooth.None)); annotation (Documentation(info="<html> <p> Demonstrate usage of damper components in different variants. </p> </html>"), experiment(StopTime=1.0, Interval=0.001)); end Damper; model Oscillator "Oscillator demonstrates the use of initial conditions." extends Modelica.Icons.Example; Translational.Components.Mass mass1( L=1, s(start=-0.5, fixed=true), v(start=0, fixed=true), m=1) annotation (Placement(transformation(extent={{-20,40},{0, 60}}, rotation=0))); Translational.Components.Spring spring1( s_rel0=1, c=10000) annotation (Placement( transformation(extent={{20,40},{40,60}}, rotation=0))); Translational.Components.Fixed fixed1( s0=1) annotation (Placement(transformation( extent={{60,40},{80,60}}, rotation=0))); Translational.Sources.Force force1 annotation (Placement(transformation(extent={{ -60,40},{-40,60}}, rotation=0))); Modelica.Blocks.Sources.Sine sine1(freqHz=15.9155) annotation (Placement(transformation( extent={{-100,40},{-80,60}}, rotation=0))); Translational.Components.Mass mass2( L=1, s(start=-0.5, fixed=true), v(start=0, fixed=true), m=1) annotation (Placement(transformation(extent={{-20,-60},{0, -40}}, rotation=0))); Translational.Components.Spring spring2( s_rel0=1, c=10000) annotation (Placement( transformation(extent={{20,-60},{40,-40}}, rotation=0))); Translational.Components.Fixed fixed2( s0=1) annotation (Placement(transformation( extent={{60,-60},{80,-40}}, rotation=0))); Translational.Sources.Force force2 annotation (Placement(transformation(extent={{ -60,-60},{-40,-40}}, rotation=0))); Modelica.Blocks.Sources.Sine sine2(freqHz=15.9155) annotation (Placement(transformation( extent={{-100,-60},{-80,-40}}, rotation=0))); Translational.Components.Damper damper1( d=10) annotation (Placement(transformation( extent={{20,-36},{40,-16}}, rotation=0))); equation connect(mass1.flange_b, spring1.flange_a) annotation (Line(points= {{0,50},{20,50}}, color={0,191,0})); connect(spring2.flange_a,damper1. flange_a) annotation (Line(points={{20, -50},{20,-26}}, color={0,191,0})); connect(mass2.flange_b, spring2.flange_a) annotation (Line(points= {{0,-50},{20,-50}}, color={0,191,0})); connect(damper1.flange_b,spring2. flange_b) annotation (Line(points={{40, -26},{40,-50}}, color={0,191,0})); connect(sine1.y,force1. f) annotation (Line(points={{-79,50},{-62,50}}, color={0,0,127})); connect(sine2.y,force2. f) annotation (Line(points={{-79,-50},{-62,-50}}, color={0,0,127})); connect(spring1.flange_b, fixed1.flange) annotation (Line( points={{40,50},{70,50}}, color={0,127,0}, smooth=Smooth.None)); connect(force2.flange, mass2.flange_a) annotation (Line( points={{-40,-50},{-20,-50}}, color={0,127,0}, smooth=Smooth.None)); connect(force1.flange, mass1.flange_a) annotation (Line( points={{-40,50},{-20,50}}, color={0,127,0}, smooth=Smooth.None)); connect(spring2.flange_b, fixed2.flange) annotation (Line( points={{40,-50},{70,-50}}, color={0,127,0}, smooth=Smooth.None)); annotation ( Documentation(info="<html> <p> A spring - mass system is a mechanical oscillator. If no damping is included and the system is excited at resonance frequency infinite amplitudes will result. The resonant frequency is given by omega_res = sqrt(c / m) with: </p> <pre> c spring stiffness m mass </pre> <p> To make sure that the system is initially at rest the initial conditions s(start=0) and v(start=0) for the SlidingMass are set. If damping is added the amplitudes are bounded. </p> </html>"), experiment(StopTime=1.0, Interval=0.001)); end Oscillator; model Sensors "Sensors for translational systems." import Modelica; extends Modelica.Icons.Example; Translational.Sensors.ForceSensor forceSensor annotation (Placement( transformation(extent={{-34,40},{-14,60}}, rotation=0))); Translational.Sensors.SpeedSensor speedSensor1 annotation (Placement( transformation(extent={{40,-40},{60,-20}}, rotation=0))); Translational.Sensors.PositionSensor positionSensor1 annotation (Placement( transformation(extent={{40,0},{60,20}}, rotation=0))); Translational.Sensors.AccSensor accSensor1 annotation (Placement( transformation(extent={{40,-80},{60,-60}}, rotation=0))); Translational.Components.Mass mass(L=1, s(fixed=true), v(fixed=true), m=1) annotation (Placement( transformation(extent={{20,40},{40,60}}, rotation=0))); Translational.Sources.Force force annotation (Placement(transformation(extent={{-64,40}, {-44,60}}, rotation=0))); Modelica.Blocks.Sources.Sine sineForce(amplitude=10, freqHz=4) annotation (Placement( transformation(extent={{-100,40},{-80,60}}, rotation=0))); Translational.Sensors.PositionSensor positionSensor2 annotation (Placement( transformation(extent={{60,40},{80,60}}, rotation=0))); Modelica.Mechanics.Translational.Sensors.MultiSensor multiSensor annotation (Placement(transformation(extent={{-8,40},{12,60}}))); equation connect(sineForce.y, force.f) annotation (Line(points={{-79,50},{-66,50}}, color={0,0,127})); connect(forceSensor.flange_a, force.flange) annotation (Line( points={{-34,50},{-44,50}}, color={0,127,0}, smooth=Smooth.None)); connect(mass.flange_a, positionSensor1.flange) annotation (Line( points={{20,50},{20,10},{40,10}}, color={0,127,0}, smooth=Smooth.None)); connect(mass.flange_a, speedSensor1.flange) annotation (Line( points={{20,50},{20,-30},{40,-30}}, color={0,127,0}, smooth=Smooth.None)); connect(mass.flange_a, accSensor1.flange) annotation (Line( points={{20,50},{20,-70},{40,-70}}, color={0,127,0}, smooth=Smooth.None)); connect(mass.flange_b, positionSensor2.flange) annotation (Line( points={{40,50},{60,50}}, color={0,127,0}, smooth=Smooth.None)); connect(forceSensor.flange_b, multiSensor.flange_a) annotation (Line( points={{-14,50},{-8,50}}, color={0,127,0}, smooth=Smooth.None)); connect(multiSensor.flange_b, mass.flange_a) annotation (Line( points={{12,50},{20,50}}, color={0,127,0}, smooth=Smooth.None)); annotation ( Documentation(info="<html> <p> These sensors measure </p> <pre> force f in N position s in m velocity v in m/s acceleration a in m/s2 </pre> <p> The measured velocity and acceleration is independent on the flange the sensor is connected to. The position depends on the flange (flange_a or flange_b) and the length L of the component. Plot PositionSensor1.s, PositionSensor2.s and SlidingMass1.s to see the difference. </p> </html>"), experiment(StopTime=1.0, Interval=0.001)); end Sensors; model Friction "Use of model Stop" extends Modelica.Icons.Example; Modelica.Mechanics.Translational.Components.MassWithStopAndFriction stop1( L=1, s(fixed=true), v(fixed=true), smax=25, smin=-25, m=1, F_prop=1, F_Coulomb=5, F_Stribeck=10, fexp=2) annotation (Placement(transformation(extent={{20,60}, {40,80}}, rotation=0))); Translational.Sources.Force force annotation (Placement(transformation(extent={{-20,60}, {0,80}}, rotation=0))); Modelica.Blocks.Sources.Sine sineForce(amplitude=25, freqHz=0.25) annotation (Placement( transformation(extent={{-60,60},{-40,80}}, rotation=0))); Modelica.Mechanics.Translational.Components.MassWithStopAndFriction stop2( L=1, smax=0.9, smin=-0.9, F_Coulomb=3, F_Stribeck=5, s(start=0, fixed=true), m=1, F_prop=1, fexp=2, v(start=-5, fixed=true)) annotation (Placement(transformation(extent={{42,-60},{62, -40}}, rotation=0))); Translational.Components.Spring spring(s_rel0=1, c=500) annotation (Placement( transformation(extent={{2,-60},{22,-40}}, rotation=0))); Translational.Components.Fixed fixed2(s0=-1.75) annotation (Placement(transformation( extent={{-40,-60},{-20,-40}}, rotation=0))); Translational.Sources.Force force2 annotation (Placement(transformation(extent={{-22,0}, {-2,20}}, rotation=0))); Components.Mass mass( m=1, L=1, s(fixed=true), v(fixed=true)) annotation (Placement(transformation(extent={{10,0},{30,20}}))); Components.SupportFriction supportFriction(f_pos= Examples.Utilities.GenerateStribeckFrictionTable( F_prop=1, F_Coulomb=5, F_Stribeck=10, fexp=2, v_max=12, nTable=50)) annotation (Placement(transformation(extent={{40,0},{60,20}}))); equation connect(spring.flange_b, stop2.flange_a) annotation (Line(points={{22,-50}, {42,-50}},color={0,191,0})); connect(sineForce.y, force.f) annotation (Line(points={{-39,70},{-22,70}}, color={0,0,127})); connect(spring.flange_a, fixed2.flange) annotation (Line( points={{2,-50},{-30,-50}}, color={0,127,0}, smooth=Smooth.None)); connect(force.flange, stop1.flange_a) annotation (Line( points={{0,70},{20,70}}, color={0,127,0}, smooth=Smooth.None)); connect(force2.flange, mass.flange_a) annotation (Line( points={{-2,10},{10,10}}, color={0,127,0}, smooth=Smooth.None)); connect(mass.flange_b, supportFriction.flange_a) annotation (Line( points={{30,10},{40,10}}, color={0,127,0}, smooth=Smooth.None)); connect(sineForce.y, force2.f) annotation (Line( points={{-39,70},{-30,70},{-30,10},{-24,10}}, color={0,0,127}, smooth=Smooth.None)); annotation ( Diagram(coordinateSystem( preserveAspectRatio=true, extent={{-100,-100},{100,100}}), graphics={ Text( extent={{-100,80},{-80,60}}, textString="1)", lineColor={0,0,255}), Text( extent={{-100,20},{-80,0}}, textString="2)", lineColor={0,0,255}), Text( extent={{-100,-40},{-80,-60}}, lineColor={0,0,255}, textString="3)")}), Documentation(info="<html> <ol> <li> Simulate and then plot stop1.f as a function of stop1.v This gives the Stribeck curve.</li> <li> The same model is also available by modeling the system with a Mass and a SupportFriction model. The SupportFriction model defines the friction characteristic with a table. The table is constructed with function Examples.Utilities.GenerateStribeckFrictionTable(..) to generate the same friction characteristic as with stop1. The simulation results of stop1 and of model mass are therefore identical.</li> <li> Model stop2 gives an example for a hard stop. However there can arise some problems with the used modeling approach (use of <b>reinit</b>(..), convergence problems). In this case use the ElastoGap to model a stop (see example Preload).</li> </ol> </html>"), experiment(StopTime=5.0, Interval=0.001)); end Friction; model PreLoad "Preload of a spool using ElastoGap models." extends Modelica.Icons.Example; Translational.Components.ElastoGap innerContactA( c=1000e3, d=250, s_rel0=0.001) annotation (Placement(transformation(extent={{-70,20},{-50,40}}, rotation=0))); Translational.Components.ElastoGap innerContactB( c=1000e3, d=250, s_rel0=0.001) annotation ( Placement( transformation(extent={{50,20},{70,40}}, rotation=0))); Translational.Components.Mass spool( L=0.19, m=0.150, s(start=0.01475, fixed=true), v(fixed=true)) annotation (Placement(transformation(extent={{0,-40}, {40,0}}, rotation=0))); Translational.Components.Fixed fixedLe( s0=-0.0955) annotation (Placement( transformation(extent={{-10,-10},{10,10}}, rotation=270, origin={-80,90}))); Translational.Components.Mass springPlateA( m=10e-3, L=0.002, s(start=-0.093, fixed=true), v(fixed=true)) annotation (Placement(transformation(extent={{-38,60}, {-18,80}}, rotation=0))); Translational.Components.Mass springPlateB( m=10e-3, s(start=-0.06925, fixed=true), L=0.002, v(fixed=true)) annotation ( Placement(transformation(extent={{20,60},{40,80}}, rotation=0))); Translational.Components.Spring spring( c=20e3, s_rel0=0.025) annotation (Placement(transformation(extent={{-10,60},{10,80}},rotation= 0))); Translational.Components.ElastoGap outerContactA( c=1000e3, d=250, s_rel0=0.0015) annotation (Placement(transformation(extent={{-70,60},{-50,80}}, rotation=0))); Translational.Components.ElastoGap outerContactB( c=1000e3, d=250, s_rel0=0.0015) annotation (Placement(transformation(extent={{50,60},{70, 80}}, rotation=0))); Translational.Components.Rod rod1( L=0.007) annotation (Placement(transformation( extent={{-40,30},{-20,50}}, rotation=0))); Translational.Components.Damper friction( d=2500) annotation (Placement( transformation( origin={-80,50}, extent={{-10,-10},{10,10}}, rotation=270))); Translational.Sources.Force force annotation (Placement(transformation(extent={{-38,-30}, {-18,-10}}, rotation=0))); Translational.Components.Rod housing( L=0.0305) annotation (Placement(transformation( extent={{-10,80},{10,100}}, rotation=0))); Translational.Components.Rod rod3( L=0.00575) annotation (Placement(transformation( extent={{-40,-2},{-20,18}}, rotation=0))); Translational.Components.Rod rod4( L=0.00575) annotation (Placement(transformation( extent={{20,-2},{40,18}}, rotation=0))); Translational.Components.Rod rod2( L=0.007) annotation (Placement(transformation( extent={{20,30},{40,50}}, rotation=0))); Modelica.Blocks.Sources.Sine sineForce(amplitude=150, freqHz=0.01) annotation (Placement(transformation(extent={{-78,-30},{-58,-10}}, rotation=0))); equation connect(outerContactA.flange_b,springPlateA. flange_a) annotation (Line( points={{-50,70},{-38,70}}, color={0,191,0})); connect(springPlateA.flange_b,spring. flange_a) annotation (Line(points={{-18,70}, {-18,70},{-10,70}},color={0,191,0})); connect(spring.flange_b,springPlateB. flange_a) annotation (Line(points={{10,70}, {20,70}}, color={0,191,0})); connect(springPlateB.flange_b,outerContactB. flange_a) annotation (Line( points={{40,70},{40,70},{50,70}}, color={0,191,0})); connect(outerContactB.flange_b,housing. flange_b) annotation (Line(points={{70,70}, {70,90},{10,90}}, color={0,191,0})); connect(springPlateA.flange_b,rod1. flange_a) annotation (Line(points={{-18,70}, {-18,52},{-40,52},{-40,40}}, color={0,191,0})); connect(innerContactA.flange_a,rod3. flange_a) annotation (Line(points={{-70,30}, {-80,30},{-80,8},{-40,8}}, color={0,191,0})); connect(innerContactA.flange_b,rod1. flange_b) annotation (Line(points={{-50,30}, {-20,30},{-20,40}}, color={0,191,0})); connect(rod2.flange_a,innerContactB. flange_a) annotation (Line(points={{20,40}, {20,30},{50,30}}, color={0,191,0})); connect(rod4.flange_b,innerContactB. flange_b) annotation (Line(points={{40,8},{ 70,8},{70,30}}, color={0,191,0})); connect(friction.flange_b,rod3. flange_a) annotation (Line(points={{-80,40}, {-80,8},{-40,8}}, color={0,191,0})); connect(rod3.flange_b,rod4. flange_a) annotation (Line(points={{-20,8},{ 20,8}}, color={0,191,0})); connect(rod2.flange_b,springPlateB. flange_a) annotation (Line(points={{40,40}, {40,52},{20,52},{20,70}}, color={0,191,0})); connect(spool.flange_a,rod4. flange_a) annotation (Line(points={{0,-20},{ 0,8},{20,8}}, color={0,191,0})); connect(sineForce.y, force.f) annotation (Line(points={{-57,-20},{-46,-20},{ -40,-20}}, color={0,0,127})); connect(force.flange, spool.flange_a) annotation (Line( points={{-18,-20},{0,-20}}, color={0,127,0}, smooth=Smooth.None)); connect(outerContactA.flange_a, fixedLe.flange) annotation (Line( points={{-70,70},{-80,70},{-80,90}}, color={0,127,0}, smooth=Smooth.None)); connect(housing.flange_a, fixedLe.flange) annotation (Line( points={{-10,90},{-80,90}}, color={0,127,0}, smooth=Smooth.None)); connect(friction.flange_a, fixedLe.flange) annotation (Line( points={{-80,60},{-80,90}}, color={0,127,0}, smooth=Smooth.None)); annotation ( Diagram(coordinateSystem( preserveAspectRatio=true, extent={{-100,-100},{100,100}}), graphics={ Text( extent={{-92,-72},{90,-80}}, textString="positive force => spool moves in positive direction ", lineColor={0,0,255}), Text( extent={{-48,-52},{42,-60}}, textString="Simulate for 100 s", lineColor={0,0,255}), Text( extent={{-100,-62},{88,-70}}, lineColor={0,0,255}, textString="plot spool.s as a function of force.f")}), Documentation(info="<html> <p> When designing hydraulic valves it is often necessary to hold the spool in a certain position as long as an external force is below a threshold value. If this force exceeds the threshold value a linear relation between force and position is desired. There are designs that need only one spring to accomplish this task. Using the ElastoGap elements this design can be modelled easily. Drawing of spool. </p> <p> <IMG src=\"modelica://Modelica/Resources/Images/Mechanics/Translational/PreLoad.png\"><br> <IMG src=\"modelica://Modelica/Resources/Images/Mechanics/Translational/PreLoad3.png\"><br> <IMG src=\"modelica://Modelica/Resources/Images/Mechanics/Translational/PreLoad4.png\"><br> </p> <p> Spool position s as a function of working force f. </p> <p> <IMG src=\"modelica://Modelica/Resources/Images/Mechanics/Translational/PreLoad2.png\"> </p> </html>"), experiment(StopTime=100, Interval=0.1)); end PreLoad; model ElastoGap "Demonstrate usage of ElastoGap" extends Modelica.Icons.Example; Components.Fixed fixed annotation (Placement(transformation(extent={{-10,-10},{10,10}}))); Components.Rod rod1(L=2) annotation (Placement(transformation(extent={{-40,-10},{-20,10}}))); Components.Rod rod2(L=2) annotation (Placement(transformation(extent={{20,-10},{40,10}}))); Components.SpringDamper springDamper1( c=10, s_rel0=1, s_rel(fixed=false, start=1), d=1.5) annotation (Placement(transformation(extent={{-40,20},{-20,40}}))); Components.SpringDamper springDamper2( c=10, s_rel0=1, s_rel(fixed=false, start=1), d=1.5) annotation (Placement(transformation(extent={{20,20},{40,40}}))); Components.Mass mass1( s(fixed=true, start=2), L=0, m=1, v(fixed=true)) annotation (Placement(transformation(extent={{-10,20},{10,40}}))); Components.ElastoGap elastoGap1( c=10, s_rel(fixed=false, start=1.5), s_rel0=1.5, d=1.5) annotation (Placement(transformation(extent={{-40,-40},{-20,-20}}))); Components.ElastoGap elastoGap2( c=10, s_rel(fixed=false, start=1.5), s_rel0=1.5, d=1.5) annotation (Placement(transformation(extent={{20,-40},{40,-20}}))); Components.Mass mass2( s(fixed=true, start=2), L=0, m=1, v(fixed=true)) annotation (Placement(transformation(extent={{-10,-40},{10,-20}}))); parameter SI.TranslationalDampingConstant d=1.5 "Damping constant"; equation connect(rod1.flange_b, fixed.flange) annotation (Line( points={{-20,0},{0,0}}, color={0,127,0}, smooth=Smooth.None)); connect(fixed.flange, rod2.flange_a) annotation (Line( points={{0,0},{20,0}}, color={0,127,0}, smooth=Smooth.None)); connect(springDamper1.flange_a, rod1.flange_a) annotation (Line( points={{-40,30},{-48,30},{-48,0},{-40,0}}, color={0,127,0}, smooth=Smooth.None)); connect(springDamper2.flange_b, rod2.flange_b) annotation (Line( points={{40,30},{50,30},{50,0},{40,0}}, color={0,127,0}, smooth=Smooth.None)); connect(springDamper1.flange_b, mass1.flange_a) annotation (Line( points={{-20,30},{-10,30}}, color={0,127,0}, smooth=Smooth.None)); connect(mass1.flange_b, springDamper2.flange_a) annotation (Line( points={{10,30},{20,30}}, color={0,127,0}, smooth=Smooth.None)); connect(rod1.flange_a, elastoGap1.flange_a) annotation (Line( points={{-40,0},{-48,0},{-48,-30},{-40,-30}}, color={0,127,0}, smooth=Smooth.None)); connect(rod2.flange_b, elastoGap2.flange_b) annotation (Line( points={{40,0},{50,0},{50,-30},{40,-30}}, color={0,127,0}, smooth=Smooth.None)); connect(elastoGap1.flange_b, mass2.flange_a) annotation (Line( points={{-20,-30},{-10,-30}}, color={0,127,0}, smooth=Smooth.None)); connect(mass2.flange_b, elastoGap2.flange_a) annotation (Line( points={{10,-30},{20,-30}}, color={0,127,0}, smooth=Smooth.None)); annotation ( Documentation(info="<html> <p> This model demonstrates the effect of ElastoGaps on eigenfrequency:<br> Plot mass1.s and mass2.s as well as mass1.v and mass2.v<br><br> mass1 is moved by both spring forces all the time.<br> Since elastoGap1 lifts off at s &gt; -0.5 m and elastoGap2 lifts off s &lt; +0.5 m, mass2 moves freely as long as -0.5 m &lt; s &lt; +0.5 m. </p> </html>"), experiment(StopTime=1.0, Interval=0.01)); end ElastoGap; model Brake "Demonstrate braking of a translational moving mass" extends Modelica.Icons.Example; Modelica.Mechanics.Translational.Components.Brake brake(fn_max=1, useSupport= false) annotation (Placement(transformation(extent={{6,40},{26,20}}))); Modelica.Mechanics.Translational.Components.Mass mass1(m=1, s(fixed=true), v(start=1, fixed=true)) annotation (Placement(transformation(extent={{-34,20},{-14,40}}))); Modelica.Blocks.Sources.Step step(startTime=0.1, height=2) annotation (Placement(transformation(extent={{-10,-10},{10,10}}, rotation=0, origin={-24,-10}))); Modelica.Mechanics.Translational.Components.Brake brake1( fn_max=1, useSupport= true) annotation (Placement(transformation(extent={{6,-60},{26,-40}}))); Modelica.Mechanics.Translational.Components.Mass mass2(m=1, s(fixed=true), v(start=1, fixed=true)) annotation (Placement(transformation(extent={{-34,-60},{-14,-40}}))); Modelica.Mechanics.Translational.Components.Fixed fixed annotation (Placement(transformation(extent={{6,-80},{26,-60}}))); equation connect(mass1.flange_b, brake.flange_a) annotation (Line( points={{-14,30},{6,30}}, color={0,127,0}, smooth=Smooth.None)); connect(step.y, brake.f_normalized) annotation (Line( points={{-13,-10},{16,-10},{16,19}}, color={0,0,127}, smooth=Smooth.None)); connect(mass2.flange_b, brake1.flange_a) annotation (Line( points={{-14,-50},{6,-50}}, color={0,127,0}, smooth=Smooth.None)); connect(step.y, brake1.f_normalized) annotation (Line( points={{-13,-10},{16,-10},{16,-39}}, color={0,0,127}, smooth=Smooth.None)); connect(fixed.flange, brake1.support) annotation (Line( points={{16,-70},{16,-60}}, color={0,127,0}, smooth=Smooth.None)); annotation ( Documentation(info="<html> <p> This model consists of a mass with an initial velocity of 1 m/s. After 0.1 s, a brake is activated and it is shown that the mass decelerates until it arrives at rest and remains at rest. Two versions of this system are present, one where the brake is implicitly grounded and one where it is explicitly grounded. </p> </html>"), experiment(StopTime=2.0, Interval=0.001)); end Brake; model HeatLosses "Demonstrate the modeling of heat losses" extends Modelica.Icons.Example; Components.Mass mass1( m=1, s(fixed=true), L=0.1, v(fixed=true)) annotation (Placement(transformation(extent={{-60,20},{-40,40}}))); Components.SpringDamper springDamper( s_rel(fixed=true), v_rel(fixed=true), c=100, d=10, useHeatPort=true) annotation (Placement(transformation(extent={{-30,20},{-10,40}}))); Components.Damper damper(d=10, useHeatPort=true) annotation (Placement(transformation(extent={{-10,10},{10,-10}}, rotation=-90, origin={-60,-10}))); Components.ElastoGap elastoGap( c=100, d=20, s_rel0=-0.02, useHeatPort=true) annotation (Placement(transformation(extent={{-90,-10},{-70,10}}))); Components.Fixed fixed1 annotation (Placement(transformation(extent={{-70,-40},{-50,-20}}))); Sources.Force force annotation (Placement(transformation(extent={{-90,20},{-70,40}}))); Blocks.Sources.Sine sine1(freqHz=1, amplitude=20) annotation (Placement(transformation(extent={{-120,20},{-100,40}}))); Components.Mass mass2( m=1, L=0.1, s(fixed=false), v(fixed=false)) annotation (Placement(transformation(extent={{0,20},{20,40}}))); Components.SupportFriction supportFriction(useHeatPort=true) annotation (Placement(transformation(extent={{30,20},{50,40}}))); Components.Spring spring(c=100, s_rel(fixed=true)) annotation (Placement(transformation(extent={{60,20},{80,40}}))); Components.Mass mass3( m=1, L=0.1, s(fixed=false), v(fixed=true)) annotation (Placement(transformation(extent={{90,20},{110,40}}))); Components.Brake brake(fn_max=10, useHeatPort=true) annotation (Placement(transformation(extent={{120,20},{140,40}}))); Blocks.Sources.Sine sine2(amplitude=10, freqHz=2) annotation (Placement(transformation(extent={{100,50},{120,70}}))); Components.MassWithStopAndFriction massWithStopAndFriction( L=0.1, m=1, F_prop=0.5, F_Coulomb=1, F_Stribeck=2, fexp=2, smin=0, smax=0.4, v(fixed=true), useHeatPort=true) annotation (Placement(transformation(extent={{180,20},{200,40}}))); Thermal.HeatTransfer.Components.Convection convection annotation (Placement(transformation(extent={{-10,-40},{10,-60}}))); Blocks.Sources.Constant const(k=20) annotation (Placement(transformation(extent={{-30,-90},{-10,-70}}))); Thermal.HeatTransfer.Celsius.FixedTemperature TAmbient(T=25) "Ambient temperature" annotation (Placement(transformation(extent={{40,-60},{20,-40}}))); Components.Fixed fixed2 annotation (Placement(transformation(extent={{-120,-10},{-100,10}}))); Components.SpringDamper springDamper1( c=10000, d=1000, useHeatPort=true, s_rel(fixed=true)) annotation (Placement(transformation(extent={{150,20},{170,40}}))); equation connect(mass1.flange_b, springDamper.flange_a) annotation (Line( points={{-40,30},{-30,30}}, color={0,127,0}, smooth=Smooth.None)); connect(sine1.y, force.f) annotation (Line( points={{-99,30},{-92,30}}, color={0,0,127}, smooth=Smooth.None)); connect(force.flange, mass1.flange_a) annotation (Line( points={{-70,30},{-60,30}}, color={0,127,0}, smooth=Smooth.None)); connect(mass1.flange_a, damper.flange_a) annotation (Line( points={{-60,30},{-60,0}}, color={0,127,0}, smooth=Smooth.None)); connect(damper.flange_b, fixed1.flange) annotation (Line( points={{-60,-20},{-60,-30}}, color={0,127,0}, smooth=Smooth.None)); connect(springDamper.flange_b, mass2.flange_a) annotation (Line( points={{-10,30},{0,30}}, color={0,127,0}, smooth=Smooth.None)); connect(mass2.flange_b, supportFriction.flange_a) annotation (Line( points={{20,30},{30,30}}, color={0,127,0}, smooth=Smooth.None)); connect(supportFriction.flange_b, spring.flange_a) annotation (Line( points={{50,30},{60,30}}, color={0,127,0}, smooth=Smooth.None)); connect(spring.flange_b, mass3.flange_a) annotation (Line( points={{80,30},{90,30}}, color={0,127,0}, smooth=Smooth.None)); connect(mass3.flange_b, brake.flange_a) annotation (Line( points={{110,30},{120,30}}, color={0,127,0}, smooth=Smooth.None)); connect(sine2.y, brake.f_normalized) annotation (Line( points={{121,60},{130,60},{130,41}}, color={0,0,127}, smooth=Smooth.None)); connect(elastoGap.flange_b, mass1.flange_a) annotation (Line( points={{-70,0},{-60,0},{-60,30}}, color={0,127,0}, smooth=Smooth.None)); connect(const.y,convection. Gc) annotation (Line( points={{-9,-80},{0,-80},{0,-60}}, color={0,0,127}, smooth=Smooth.None)); connect(TAmbient.port,convection. fluid) annotation (Line( points={{20,-50},{10,-50}}, color={191,0,0}, smooth=Smooth.None)); connect(elastoGap.flange_a, fixed2.flange) annotation (Line( points={{-90,0},{-110,0}}, color={0,127,0}, smooth=Smooth.None)); connect(elastoGap.heatPort, convection.solid) annotation (Line( points={{-90,-10},{-90,-50},{-10,-50}}, color={191,0,0}, smooth=Smooth.None)); connect(damper.heatPort, convection.solid) annotation (Line( points={{-50,0},{-50,-50},{-10,-50}}, color={191,0,0}, smooth=Smooth.None)); connect(springDamper.heatPort, convection.solid) annotation (Line( points={{-30,20},{-30,-50},{-10,-50}}, color={191,0,0}, smooth=Smooth.None)); connect(supportFriction.heatPort, convection.solid) annotation (Line( points={{30,20},{30,0},{-30,0},{-30,-50},{-10,-50}}, color={191,0,0}, smooth=Smooth.None)); connect(brake.heatPort, convection.solid) annotation (Line( points={{120,20},{120,0},{-30,0},{-30,-50},{-10,-50}}, color={191,0,0}, smooth=Smooth.None)); connect(massWithStopAndFriction.heatPort, convection.solid) annotation ( Line( points={{180,20},{180,0},{-30,0},{-30,-50},{-10,-50}}, color={191,0,0}, smooth=Smooth.None)); connect(brake.flange_b, springDamper1.flange_a) annotation (Line( points={{140,30},{150,30}}, color={0,127,0}, smooth=Smooth.None)); connect(springDamper1.flange_b, massWithStopAndFriction.flange_a) annotation (Line( points={{170,30},{180,30}}, color={0,127,0}, smooth=Smooth.None)); connect(springDamper1.heatPort, convection.solid) annotation (Line( points={{150,20},{150,0},{-30,0},{-30,-50},{-10,-50}}, color={191,0,0}, smooth=Smooth.None)); annotation ( Documentation(info="<html> <p> This model demonstrates how to model the dissipated power of a Translational model, by enabling the heatPort of all components and connecting these heatPorts via a convection element to the environment. The total heat flow generated by the elements and transported to the environment is present in variable convection.fluid. </p> </html>"), experiment(StopTime=2.0, Interval=0.001), Diagram(coordinateSystem(extent={{-120,-100},{200,100}}, preserveAspectRatio=false))); end HeatLosses; package Utilities "Utility classes used by the Example models" extends Modelica.Icons.UtilitiesPackage; function GenerateStribeckFrictionTable "Generate Stribeck friction table for example Friction for the SupportFriction" extends Modelica.Icons.Function; input Real F_prop(final unit="N.s/m", final min=0) "Velocity dependent friction coefficient"; input Modelica.SIunits.Force F_Coulomb "Constant friction: Coulomb force"; input Modelica.SIunits.Force F_Stribeck "Stribeck effect"; input Real fexp(final unit="s/m", final min=0) "Exponential decay"; input Real v_max "Generate table from v=0 ... v_max"; input Integer nTable(min=2)=100 "Number of table points"; output Real table[nTable,2] "Friction table"; algorithm for i in 1:nTable loop table[i,1] :=v_max*(i - 1)/(nTable - 1); table[i,2] :=F_Coulomb + F_prop*table[i, 1] + F_Stribeck*exp(-fexp*table[i, 1]); end for; annotation (Documentation(info="<html> <p> Returns a table with the friction characteristic table[nTable,2] = [0, f1; ....; v_max, fn], where the first column is the velocity v in the range 0..v_max and the second column is the friction force according to the Stribeck curve: </p> <pre> F_Coulomb + F_prop*v + F_Stribeck*exp(-fexp*v); </pre> </html>")); end GenerateStribeckFrictionTable; annotation (Documentation(info="<html> <p>Utility models and functions used in the Examples</p> </html>")); end Utilities; annotation ( Documentation(info="<html> <p> This package contains example models to demonstrate the usage of the Translational package. Open the models and simulate them according to the provided description in the models. </p> </html>")); end Examples; package Components "Components for 1D translational mechanical drive trains" extends Modelica.Icons.Package; model Fixed "Fixed flange" parameter SI.Position s0=0 "Fixed offset position of housing"; Interfaces.Flange_b flange annotation (Placement(transformation( origin={0,0}, extent={{-10,10},{10,-10}}, rotation=180))); equation flange.s = s0; annotation ( Icon(coordinateSystem( preserveAspectRatio=true, extent={{-100,-100},{100,100}}), graphics={ Line(points={{-80,-40},{80,-40}}, color={0,0,0}), Line(points={{80,-40},{40,-80}}, color={0,0,0}), Line(points={{40,-40},{0,-80}}, color={0,0,0}), Line(points={{0,-40},{-40,-80}}, color={0,0,0}), Line(points={{-40,-40},{-80,-80}}, color={0,0,0}), Line(points={{0,-40},{0,-10}}, color={0,0,0}), Text( extent={{-150,-90},{150,-130}}, textString="%name", lineColor={0,0,255})}), Documentation(info="<html> <p> The <i>flange</i> of a 1D translational mechanical system <i>fixed</i> at an position s0 in the <i>housing</i>. May be used: </p> <ul> <li> to connect a compliant element, such as a spring or a damper, between a sliding mass and the housing. <li> to fix a rigid element, such as a sliding mass, at a specific position. </ul> </html>")); end Fixed; model Mass "Sliding mass with inertia" parameter SI.Mass m(min=0, start=1) "Mass of the sliding mass"; parameter StateSelect stateSelect=StateSelect.default "Priority to use s and v as states" annotation(Dialog(tab="Advanced")); extends Translational.Interfaces.PartialRigid(L=0,s(start=0, stateSelect=stateSelect)); SI.Velocity v(start=0, stateSelect=stateSelect) "Absolute velocity of component"; SI.Acceleration a(start=0) "Absolute acceleration of component"; equation v = der(s); a = der(v); m*a = flange_a.f + flange_b.f; annotation ( Documentation(info="<html> <p> Sliding mass with <i>inertia, without friction</i> and two rigidly connected flanges. </p> <p> The sliding mass has the length L, the position coordinate s is in the middle. Sign convention: A positive force at flange flange_a moves the sliding mass in the positive direction. A negative force at flange flange_a moves the sliding mass to the negative direction. </p> </html>"), Icon(coordinateSystem( preserveAspectRatio=true, extent={{-100,-100},{100,100}}), graphics={ Line(points={{-100,0},{-55,0}}, color={0,127,0}), Line(points={{55,0},{100,0}}, color={0,127,0}), Rectangle( extent={{-55,-30},{56,30}}, lineColor={0,0,0}, fillPattern=FillPattern.Sphere, fillColor={255,255,255}), Polygon( points={{50,-90},{20,-80},{20,-100},{50,-90}}, lineColor={128,128,128}, fillColor={128,128,128}, fillPattern=FillPattern.Solid), Line(points={{-60,-90},{20,-90}}, color={0,0,0}), Text( extent={{-150,85},{150,45}}, textString="%name", lineColor={0,0,255}), Text( extent={{-150,-45},{150,-75}}, lineColor={0,0,0}, textString="m=%m")}), Diagram(coordinateSystem( preserveAspectRatio=true, extent={{-100,-100},{100,100}}), graphics={ Line(points={{-100,0},{-55,0}}, color={0,127,0}), Line(points={{55,0},{100,0}}, color={0,127,0}), Rectangle( extent={{-55,-30},{55,30}}, lineColor={0,0,0}, fillPattern=FillPattern.Sphere, fillColor={255,255,255}), Polygon( points={{50,-90},{20,-80},{20,-100},{50,-90}}, lineColor={128,128,128}, fillColor={128,128,128}, fillPattern=FillPattern.Solid), Line(points={{-60,-90},{20,-90}}, color={0,0,0}), Line(points={{-100,-29},{-100,-61}}, color={0,0,0}), Line(points={{100,-61},{100,-28}}, color={0,0,0}), Line(points={{-98,-60},{98,-60}}, color={0,0,0}), Polygon( points={{-101,-60},{-96,-59},{-96,-61},{-101,-60}}, lineColor={0,0,0}, fillColor={0,0,0}, fillPattern=FillPattern.Solid), Polygon( points={{100,-60},{95,-61},{95,-59},{100,-60}}, lineColor={0,0,0}, fillColor={0,0,0}, fillPattern=FillPattern.Solid), Text( extent={{-44,-41},{51,-57}}, textString="Length L", lineColor={0,0,255}), Line(points={{0,30},{0,53}}, color={0,0,0}), Line(points={{-72,40},{1,40}}, color={0,0,0}), Polygon( points={{-7,42},{-7,38},{-1,40},{-7,42}}, lineColor={0,0,0}, fillColor={0,0,0}, fillPattern=FillPattern.Solid), Text( extent={{-61,53},{-9,42}}, textString="Position s", lineColor={0,0,255})})); end Mass; model Rod "Rod without inertia" extends Translational.Interfaces.PartialRigid; equation 0 = flange_a.f + flange_b.f; annotation ( Documentation(info="<html> <p> Rod <i>without inertia</i> and two rigidly connected flanges. </p> </html>"), Icon(coordinateSystem( preserveAspectRatio=true, extent={{-100,-100},{100,100}}), graphics={ Line(points={{-100,0},{-55,0}}, color={0,127,0}), Line(points={{53,0},{99,0}}, color={0,127,0}), Polygon( points={{50,-90},{20,-80},{20,-100},{50,-90}}, lineColor={128,128,128}, fillColor={128,128,128}, fillPattern=FillPattern.Solid), Line(points={{-60,-90},{20,-90}}, color={0,0,0}), Rectangle( extent={{-55,10},{53,-10}}, lineColor={160,160,164}, fillColor={192,192,192}, fillPattern=FillPattern.Solid), Text( extent={{-150,80},{150,40}}, textString="%name", lineColor={0,0,255}), Text( extent={{-150,-30},{150,-60}}, lineColor={0,0,0}, textString="L=%L")}), Diagram(coordinateSystem( preserveAspectRatio=true, extent={{-100,-100},{100,100}}), graphics={ Line(points={{-100,0},{-55,0}}, color={0,127,0}), Line(points={{54,0},{100,0}}, color={0,127,0}), Polygon( points={{50,-90},{20,-80},{20,-100},{50,-90}}, lineColor={128,128,128}, fillColor={128,128,128}, fillPattern=FillPattern.Solid), Line(points={{-60,-90},{20,-90}}, color={0,0,0}), Rectangle( extent={{-55,3},{53,-4}}, lineColor={160,160,164}, fillColor={192,192,192}, fillPattern=FillPattern.Solid), Line(points={{-100,-29},{-100,-61}}, color={0,0,0}), Line(points={{100,-61},{100,-28}}, color={0,0,0}), Line(points={{-98,-60},{98,-60}}, color={0,0,0}), Polygon( points={{-101,-60},{-96,-59},{-96,-61},{-101,-60}}, lineColor={0,0,0}, fillColor={0,0,0}, fillPattern=FillPattern.Solid), Polygon( points={{100,-60},{95,-61},{95,-59},{100,-60}}, lineColor={0,0,0}, fillColor={0,0,0}, fillPattern=FillPattern.Solid), Text( extent={{-44,-41},{51,-57}}, textString="Length L", lineColor={0,0,255})})); end Rod; model Spring "Linear 1D translational spring" extends Translational.Interfaces.PartialCompliant; parameter SI.TranslationalSpringConstant c(final min=0, start = 1) "Spring constant"; parameter SI.Distance s_rel0=0 "Unstretched spring length"; equation f = c*(s_rel - s_rel0); annotation ( Documentation(info="<html> <p> A <i>linear 1D translational spring</i>. The component can be connected either between two sliding masses, or between a sliding mass and the housing (model Fixed), to describe a coupling of the sliding mass with the housing via a spring. </p> </html>"), Icon(coordinateSystem( preserveAspectRatio=true, extent={{-100,-100},{100,100}}), graphics={ Line(points={{-60,-90},{20,-90}}, color={0,0,0}), Polygon( points={{50,-90},{20,-80},{20,-100},{50,-90}}, lineColor={128,128,128}, fillColor={128,128,128}, fillPattern=FillPattern.Solid), Text( extent={{-150,90},{150,50}}, textString="%name", lineColor={0,0,255}), Line(points={{-98,0},{-60,0},{-44,-30},{-16,30},{14,-30},{44,30},{ 60,0},{100,0}},color={0,0,0}), Text( extent={{-150,-45},{150,-75}}, lineColor={0,0,0}, textString="c=%c")}), Diagram(coordinateSystem( preserveAspectRatio=true, extent={{-100,-100},{100,100}}), graphics={ Line(points={{-100,0},{-100,65}}, color={128,128,128}), Line(points={{100,0},{100,65}}, color={128,128,128}), Line(points={{-100,60},{100,60}}, color={128,128,128}), Polygon( points={{90,63},{100,60},{90,57},{90,63}}, lineColor={128,128,128}, fillColor={128,128,128}, fillPattern=FillPattern.Solid), Text( extent={{-56,66},{36,81}}, lineColor={0,0,255}, textString="s_rel"), Line(points={{-86,0},{-60,0},{-44,-30},{-16,30},{14,-30},{44,30},{ 60,0},{84,0}}, color={0,0,0})})); end Spring; model Damper "Linear 1D translational damper" extends Translational.Interfaces.PartialCompliantWithRelativeStates; parameter SI.TranslationalDampingConstant d(final min=0, start = 0) "Damping constant"; extends Modelica.Thermal.HeatTransfer.Interfaces.PartialElementaryConditionalHeatPortWithoutT; equation f = d*v_rel; lossPower = f*v_rel; annotation ( Documentation(info="<html> <p> <i>Linear, velocity dependent damper</i> element. It can be either connected between a sliding mass and the housing (model Fixed), or between two sliding masses. </p> </html>"), Icon(coordinateSystem( preserveAspectRatio=true, extent={{-100,-100},{100,100}}), graphics={ Line(points={{-90,0},{-60,0}}, color={0,0,0}), Line(points={{-60,-30},{-60,30}}, color={0,0,0}), Line(points={{-60,-30},{60,-30}}, color={0,0,0}), Line(points={{-60,30},{60,30}}, color={0,0,0}), Rectangle( extent={{-60,30},{30,-30}}, lineColor={0,0,0}, fillColor={192,192,192}, fillPattern=FillPattern.Solid), Line(points={{30,0},{90,0}}, color={0,0,0}), Polygon( points={{50,-90},{20,-80},{20,-100},{50,-90}}, lineColor={128,128,128}, fillColor={128,128,128}, fillPattern=FillPattern.Solid), Line(points={{-60,-90},{20,-90}}, color={0,0,0}), Text( extent={{-150,90},{150,50}}, textString="%name", lineColor={0,0,255}), Text( extent={{-150,-45},{150,-75}}, lineColor={0,0,0}, textString="d=%d"), Line(visible=useHeatPort, points={{-100,-100},{-100,-20},{-14,-20}}, color={191,0,0}, pattern=LinePattern.Dot, smooth=Smooth.None)}), Diagram(coordinateSystem( preserveAspectRatio=true, extent={{-100,-100},{100,100}}), graphics={ Line(points={{-90,0},{-60,0}}, color={0,0,0}), Line(points={{-60,-30},{-60,30}}, color={0,0,0}), Line(points={{-60,-30},{60,-30}}, color={0,0,0}), Line(points={{-60,30},{60,30}}, color={0,0,0}), Rectangle( extent={{-60,30},{30,-30}}, lineColor={0,0,0}, fillColor={192,192,192}, fillPattern=FillPattern.Solid), Line(points={{30,0},{90,0}}, color={0,0,0}), Line(points={{-50,60},{50,60}}, color={128,128,128}), Polygon( points={{50,63},{60,60},{50,57},{50,63}}, lineColor={128,128,128}, fillColor={128,128,128}, fillPattern=FillPattern.Solid), Text( extent={{-58,68},{42,78}}, lineColor={128,128,128}, textString="der(s_rel)")})); end Damper; model SpringDamper "Linear 1D translational spring and damper in parallel" extends Translational.Interfaces.PartialCompliantWithRelativeStates; parameter SI.TranslationalSpringConstant c(final min=0, start = 1) "Spring constant"; parameter SI.TranslationalDampingConstant d(final min=0, start = 1) "Damping constant"; parameter SI.Position s_rel0=0 "Unstretched spring length"; extends Modelica.Thermal.HeatTransfer.Interfaces.PartialElementaryConditionalHeatPortWithoutT; protected Modelica.SIunits.Force f_c "Spring force"; Modelica.SIunits.Force f_d "Damping force"; equation f_c = c*(s_rel - s_rel0); f_d = d*v_rel; f = f_c + f_d; lossPower = f_d*v_rel; annotation ( Documentation(info="<html> <p> A <i>spring and damper element connected in parallel</i>. The component can be connected either between two sliding masses to describe the elasticity and damping, or between a sliding mass and the housing (model Fixed), to describe a coupling of the sliding mass with the housing via a spring/damper. </p> </html>"), Icon(coordinateSystem( preserveAspectRatio=true, extent={{-100,-100},{100,100}}), graphics={ Line(points={{-80,40},{-60,40},{-45,10},{-15,70},{15,10},{45,70},{ 60,40},{80,40}}, color={0,0,0}), Line(points={{-80,40},{-80,-70}}, color={0,0,0}), Line(points={{-80,-70},{-52,-70}}, color={0,0,0}), Rectangle( extent={{-52,-49},{38,-91}}, lineColor={0,0,0}, fillColor={192,192,192}, fillPattern=FillPattern.Solid), Line(points={{-52,-49},{68,-49}}, color={0,0,0}), Line(points={{-51,-91},{69,-91}}, color={0,0,0}), Line(points={{38,-70},{80,-70}}, color={0,0,0}), Line(points={{80,40},{80,-70}}, color={0,0,0}), Line(points={{-90,0},{-80,0}}, color={0,0,0}), Line(points={{80,0},{90,0}}, color={0,0,0}), Polygon( points={{53,-18},{23,-8},{23,-28},{53,-18}}, lineColor={128,128,128}, fillColor={128,128,128}, fillPattern=FillPattern.Solid), Line(points={{-57,-18},{23,-18}}, color={0,0,0}), Text( extent={{-150,120},{150,80}}, textString="%name", lineColor={0,0,255}), Text( extent={{-150,-135},{150,-165}}, lineColor={0,0,0}, textString="d=%d"), Text( extent={{-150,-100},{150,-130}}, lineColor={0,0,0}, textString="c=%c"), Line(visible=useHeatPort, points={{-100,-100},{-100,-80},{-5,-80}}, color={191,0,0}, pattern=LinePattern.Dot, smooth=Smooth.None)}), Diagram(coordinateSystem( preserveAspectRatio=true, extent={{-100,-100},{100,100}}), graphics={ Line( points={{-80,32},{-58,32},{-43,2},{-13,62},{17,2},{47,62},{62,32}, {80,32}}, color={0,0,0}, thickness=0.5), Line(points={{-100,31},{-100,96}}, color={128,128,128}), Line(points={{100,29},{100,94}}, color={128,128,128}), Line(points={{-98,82},{100,82}}, color={128,128,128}), Polygon( points={{90,85},{100,82},{90,79},{90,85}}, lineColor={128,128,128}, fillColor={128,128,128}, fillPattern=FillPattern.Solid), Text( extent={{-63,83},{46,103}}, lineColor={0,0,255}, textString="s_rel"), Rectangle( extent={{-52,-28},{38,-72}}, lineColor={0,0,0}, fillColor={192,192,192}, fillPattern=FillPattern.Solid), Line(points={{-51,-72},{69,-72}}, color={0,0,0}), Line(points={{-52,-28},{68,-28}}, color={0,0,0}), Line(points={{38,-50},{80,-50}}, color={0,0,0}), Line(points={{-80,-50},{-52,-50}}, color={0,0,0}), Line(points={{-80,32},{-80,-50}}, color={0,0,0}), Line(points={{80,32},{80,-50}}, color={0,0,0}), Line(points={{-90,0},{-80,0}}, color={0,0,0}), Line(points={{90,0},{80,0}}, color={0,0,0})})); end SpringDamper; model ElastoGap "1D translational spring damper combination with gap" extends Modelica.Mechanics.Translational.Interfaces.PartialCompliantWithRelativeStates; parameter SI.TranslationalSpringConstant c(final min=0, start=1) "Spring constant"; parameter SI.TranslationalDampingConstant d(final min=0, start=1) "Damping constant"; parameter SI.Position s_rel0=0 "Unstretched spring length"; parameter Real n(final min=1) = 1 "Exponent of spring force ( f_c = -c*|s_rel-s_rel0|^n )"; extends Modelica.Thermal.HeatTransfer.Interfaces.PartialElementaryConditionalHeatPortWithoutT; /* Please note that initialization might fail due to the nonlinear spring characteristic (spring force is zero for s_rel > s_rel0) if a positive force is acting on the element and no other force balances this force (e.g., when setting both initial velocity and acceleration to 0) */ Boolean contact "=true, if contact, otherwise no contact"; protected Modelica.SIunits.Force f_c "Spring force"; Modelica.SIunits.Force f_d2 "Linear damping force"; Modelica.SIunits.Force f_d "Linear damping force which is limited by spring force (|f_d| <= |f_c|)"; equation // Modify contact force, so that it is only "pushing" and not // "pulling/sticking" and that it is continuous contact = s_rel < s_rel0; f_c = smooth(1, noEvent( if contact then -c*abs(s_rel - s_rel0)^n else 0)); f_d2 = if contact then d*v_rel else 0; f_d = smooth(0, noEvent( if contact then (if f_d2 < f_c then f_c else if f_d2 > -f_c then -f_c else f_d2) else 0)); f = f_c + f_d; lossPower = f_d*v_rel; annotation ( Documentation(info="<html> <p> This component models a spring damper combination that can lift off. It can be connected between a sliding mass and the housing (model <a href=\"modelica://Modelica.Mechanics.Translational.Components.Fixed\">Fixed</a>), to describe the contact of a sliding mass with the housing. </p> <p> As long as s_rel &gt; s_rel0, no force is exerted (s_rel = flange_b.s - flange_a.s). If s_rel &le; s_rel0, the contact force is basically computed with a linear spring/damper characteristic. With parameter n&ge;1 (exponent of spring force), a nonlinear spring force can be modeled: </p> <pre> desiredContactForce = c*|s_rel - s_rel0|^n + d*<b>der</b>(s_rel) </pre> <p> Note, Hertzian contact is described by: </p> <ul> <li> Contact between two metallic spheres: n=1.5</li> <li> Contact between two metallic plates: n=1</li> </ul> <p> The above force law leads to the following difficulties: </p> <ol> <li> If the damper force becomes larger as the spring force and with opposite sign, the contact force would be \"pulling/sticking\" which is unphysical, since during contact only pushing forces can occur.</li> <li> When contact occurs with a non-zero relative speed (which is the usual situation), the damping force has a non-zero value and therefore the contact force changes discontinuously at s_rel = s_rel0. Again, this is not physical because the force can only change continuously. (Note, this component is not an idealized model where a steep characteristic is approximated by a discontinuity, but it shall model the steep characteristic.)</li> </ol> <p> In the literature there are several proposals to fix problem (2). Especially, often the following model is used (see, e.g., Lankarani, Nikravesh: Continuous Contact Force Models for Impact Analysis in Multibody Systems, Nonlinear Dynamics 5, pp. 193-207, 1994, <a href=\"http://www.springerlink.com/content/h50x61270q06p65n/fulltext.pdf\">pdf-download</a>): </p> <pre> f = c*s_rel^n + (d*s_rel^n)*<b>der</b>(s_rel) </pre> <p> However, this and other models proposed in literature violate issue (1), i.e., unphysical pulling forces can occur (if d*<b>der</b>(s_rel) becomes large enough). Note, if the force law is of the form \"f = f_c + f_d\", then a necessary condition is that |f_d| &le; |f_c|, otherwise (1) and (2) are violated. For this reason, the most simplest approach is used in the ElastoGap model to fix both problems by using this necessary condition in the force law directly. If s_rel0 = 0, the equations are: </p> <pre> <b>if</b> s_rel &ge; 0 <b>then</b> f = 0; // contact force <b>else</b> f_c = -c*|s_rel|^n; // contact spring force (Hertzian contact force) f_d2 = d*<b>der</b>(s_rel); // linear contact damper force f_d = <b>if</b> f_d2 &lt; f_c <b>then</b> f_c <b>else</b> <b>if</b> f_d2 &gt; -f_c <b>then</b> -f_c <b>else</b> f_d2; // bounded damper force f = f_c + f_d; // contact force <b>end if</b>; </pre> <p> Note, since |f_d| &le; |f_c|, pulling forces cannot occur and the contact force is always continuous, especially around the start of the penetration at s_rel = s_rel0. </p> <p> In the next figure, a typical simulation with the ElastoGap model is shown (<a href=\"modelica://Modelica.Mechanics.Translational.Examples.ElastoGap\">Examples.ElastoGap</a>) where the different effects are visualized: </p> <ol> <li> Curve 1 (elastoGap1.f) is the unmodified contact force, i.e., the linear spring/damper characteristic. A pulling/sticking force is present at the end of the contact.</li> <li> Curve 2 (elastoGap2.f) is the contact force, where the force is explicitly set to zero when pulling/sticking occurs. The contact force is discontinuous when contact starts.</li> <li> Curve 3 (elastoGap3.f) is the ElastoGap model of this library. No discontinuity and no pulling/sticking occurs.</li> </ol> <p> <img src=\"modelica://Modelica/Resources/Images/Mechanics/Translational/ElastoGap1.png\"> </p> </html>"), Diagram(coordinateSystem( preserveAspectRatio=false, extent={{-100,-100},{100,100}}), graphics={ Line(points={{-100,0},{-50,0}}, color={0,127,0}), Line( points={{-48,34},{-48,-46}}, color={0,0,0}, thickness=1), Line(points={{8,40},{8,2}}, color={0,0,0}), Line(points={{-2,0},{38,0},{38,44},{-2,44}}, color={0,0,0}), Line(points={{38,22},{72,22}}, color={0,0,0}), Line( points={{-12,-38},{-12,20}}, color={0,0,0}, thickness=1), Line(points={{-12,22},{8,22}}, color={0,0,0}), Line(points={{-12,-38},{-2,-38}}, color={0,0,0}), Line(points={{72,0},{100,0}}, color={0,127,0}), Line(points={{72,22},{72,-42}}, color={0,0,0}), Line(points={{-2,-38},{10,-28},{22,-48},{38,-28},{50,-48},{64,-28}, {72,-40}}, color={0,0,0}), Rectangle( extent={{8,44},{38,0}}, lineColor={0,0,0}, fillColor={192,192,192}, fillPattern=FillPattern.Solid), Text( extent={{-64,-80},{64,-64}}, lineColor={0,0,255}, textString="s_rel"), Line(points={{-100,-29},{-100,-61}}, color={0,0,0}), Line(points={{100,-61},{100,-28}}, color={0,0,0}), Line(points={{-98,-60},{98,-60}}, color={0,0,0}), Polygon( points={{-101,-60},{-96,-59},{-96,-61},{-101,-60}}, lineColor={0,0,0}, fillColor={0,0,0}, fillPattern=FillPattern.Solid), Polygon( points={{100,-60},{95,-61},{95,-59},{100,-60}}, lineColor={0,0,0}, fillColor={0,0,0}, fillPattern=FillPattern.Solid)}), Icon(coordinateSystem( preserveAspectRatio=true, extent={{-100,-100},{100,100}}), graphics={ Line(points={{-98,0},{-48,0}}, color={0,127,0}), Line( points={{-48,38},{-48,-38}}, color={0,0,0}, thickness=1), Line(points={{8,-10},{8,-48}}, color={0,0,0}), Line(points={{-2,-50},{38,-50},{38,-6},{-2,-6}}, color={0,0,0}), Line(points={{38,-28},{72,-28}}, color={0,0,0}), Line( points={{-12,-38},{-12,36}}, color={0,0,0}, thickness=1), Line(points={{-12,-28},{8,-28}}, color={0,0,0}), Line(points={{-12,24},{-6,24}}, color={0,0,0}), Line(points={{72,0},{98,0}}, color={0,127,0}), Line(points={{72,22},{72,-42}}, color={0,0,0}), Line(points={{-6,24},{6,34},{18,14},{34,34},{46,14},{60,34},{68,22}}, color={0,0,0}), Rectangle( extent={{8,-6},{38,-50}}, lineColor={0,0,0}, fillColor={192,192,192}, fillPattern=FillPattern.Solid), Line(points={{-52,-70},{28,-70}}, color={0,0,0}), Polygon( points={{58,-70},{28,-60},{28,-80},{58,-70}}, lineColor={128,128,128}, fillColor={128,128,128}, fillPattern=FillPattern.Solid), Text( extent={{-150,100},{150,60}}, textString="%name", lineColor={0,0,255}, pattern=LinePattern.Dot), Text( extent={{-150,-125},{150,-95}}, lineColor={0,0,0}, textString="c=%c"), Text( extent={{-150,-160},{150,-130}}, lineColor={0,0,0}, textString="d=%d"), Line(points={{68,22},{72,22}}, color={0,0,0}), Line(visible=useHeatPort, points={{-100,-100},{-100,-44},{22,-44},{22,-28}}, color={191,0,0}, pattern=LinePattern.Dot, smooth=Smooth.None)})); end ElastoGap; model SupportFriction "Coulomb friction in support" extends Modelica.Mechanics.Translational.Interfaces.PartialElementaryTwoFlangesAndSupport2; extends Modelica.Thermal.HeatTransfer.Interfaces.PartialElementaryConditionalHeatPortWithoutT; parameter Real f_pos[:, 2]=[0, 1] "[v, f] Positive sliding friction characteristic (v>=0)"; parameter Real peak(final min=1) = 1 "peak*f_pos[1,2] = Maximum friction force for v==0"; extends Translational.Interfaces.PartialFriction; SI.Position s; SI.Force f "Friction force"; SI.Velocity v "Absolute velocity of flange_a and flange_b"; SI.Acceleration a "Absolute acceleration of flange_a and flange_b"; equation // Constant auxiliary variables f0 = Modelica.Math.tempInterpol1(0, f_pos, 2); f0_max = peak*f0; free = false; s = flange_a.s - s_support; flange_a.s = flange_b.s; // velocity and acceleration of flanges v = der(s); a = der(v); v_relfric = v; a_relfric = a; // Friction force flange_a.f + flange_b.f - f = 0; // Friction force f = if locked then sa*unitForce else (if startForward then Modelica.Math.tempInterpol1( v, f_pos, 2) else if startBackward then -Modelica.Math.tempInterpol1(-v, f_pos, 2) else if pre(mode) == Forward then Modelica.Math.tempInterpol1( v, f_pos, 2) else -Modelica.Math.tempInterpol1(-v, f_pos, 2)); lossPower = f*v_relfric; annotation ( Documentation(info="<html> <p> This element describes <b>Coulomb friction</b> in <b>support</b>, i.e., a frictional force acting between a flange and the housing. The positive sliding friction force \"f\" has to be defined by table \"f_pos\" as function of the absolute velocity \"v\". E.g. </p> <pre> v | f ---+----- 0 | 0 1 | 2 2 | 5 3 | 8 </pre> <p> gives the following table: </p> <pre> f_pos = [0, 0; 1, 2; 2, 5; 3, 8]; </pre> <p> Currently, only linear interpolation in the table is supported. Outside of the table, extrapolation through the last two table entries is used. It is assumed that the negative sliding friction force has the same characteristic with negative values. Friction is modelled in the following way: </p> <p> When the absolute velocity \"v\" is not zero, the friction force is a function of v and of a constant normal force. This dependency is defined via table f_pos and can be determined by measurements, e.g., by driving the gear with constant velocity and measuring the needed driving force (= friction force). </p> <p> When the absolute velocity becomes zero, the elements connected by the friction element become stuck, i.e., the absolute position remains constant. In this phase the friction force is calculated from a force balance due to the requirement, that the absolute acceleration shall be zero. The elements begin to slide when the friction force exceeds a threshold value, called the maximum static friction force, computed via: </p> <pre> maximum_static_friction = <b>peak</b> * sliding_friction(v=0) (<b>peak</b> >= 1) </pre> <p> This procedure is implemented in a \"clean\" way by state events and leads to continuous/discrete systems of equations if friction elements are dynamically coupled which have to be solved by appropriate numerical methods. The method is described in: </p> <dl> <dt>Otter M., Elmqvist H., and Mattsson S.E. (1999): <dd><b>Hybrid Modeling in Modelica based on the Synchronous Data Flow Principle</b>. CACSD'99, Aug. 22.-26, Hawaii. </dl> <p> More precise friction models take into account the elasticity of the material when the two elements are \"stuck\", as well as other effects, like hysteresis. This has the advantage that the friction element can be completely described by a differential equation without events. The drawback is that the system becomes stiff (about 10-20 times slower simulation) and that more material constants have to be supplied which requires more sophisticated identification. For more details, see the following references, especially (Armstrong and Canudas de Witt 1996): </p> <dl> <dt>Armstrong B. (1991): <dd><b>Control of Machines with Friction</b>. Kluwer Academic Press, Boston MA.<br><br> <dt>Armstrong B., and Canudas de Wit C. (1996): <dd><b>Friction Modeling and Compensation.</b> The Control Handbook, edited by W.S.Levine, CRC Press, pp. 1369-1382.<br><br> <dt>Canudas de Wit C., Olsson H., Astroem K.J., and Lischinsky P. (1995): <dd><b>A new model for control of systems with friction.</b> IEEE Transactions on Automatic Control, Vol. 40, No. 3, pp. 419-425.<br><br> </dl> </html>"), Icon(coordinateSystem(preserveAspectRatio=true, extent={{-100,-100},{100,100}}), graphics={ Rectangle( extent={{-90,10},{90,-10}}, lineColor={0,127,0}, fillColor={215,215,215}, fillPattern=FillPattern.Solid), Ellipse( extent={{-48,-10},{-28,-30}}, lineColor={95,95,95}, fillPattern=FillPattern.Sphere, fillColor={175,175,175}), Ellipse( extent={{-10,-10},{10,-30}}, lineColor={95,95,95}, fillPattern=FillPattern.Sphere, fillColor={175,175,175}), Ellipse( extent={{30,-10},{50,-30}}, lineColor={95,95,95}, fillPattern=FillPattern.Sphere, fillColor={175,175,175}), Polygon( points={{-60,-30},{60,-30},{60,-12},{80,-12},{80,-50},{-80,-50},{ -80,-12},{-60,-12},{-60,-30}}, lineColor={95,95,95}, fillPattern=FillPattern.Solid, smooth=Smooth.None, fillColor={175,175,175}), Text( extent={{-150,100},{150,60}}, textString="%name", lineColor={0,0,255}), Line(points={{-10,-85},{-5,-80}}, color={0,0,0}), Line(points={{-5,-90},{5,-80}}, color={0,0,0}), Line(points={{-10,-90},{0,-80}}, color={0,0,0}), Line(points={{0,-90},{10,-80}}, color={0,0,0}), Polygon( points={{-60,-50},{-20,-80},{20,-80},{60,-50},{-60,-50}}, lineColor={95,95,95}, smooth=Smooth.None, fillColor={175,175,175}, fillPattern=FillPattern.Solid), Ellipse( extent={{-50,30},{-30,10}}, lineColor={95,95,95}, fillPattern=FillPattern.Sphere, fillColor={175,175,175}), Ellipse( extent={{-10,30},{10,10}}, lineColor={95,95,95}, fillPattern=FillPattern.Sphere, fillColor={175,175,175}), Ellipse( extent={{30,30},{50,10}}, lineColor={95,95,95}, fillPattern=FillPattern.Sphere, fillColor={175,175,175}), Polygon( points={{-60,30},{60,30},{60,12},{80,12},{80,50},{-80,50},{-80,12}, {-60,12},{-60,30}}, lineColor={95,95,95}, fillPattern=FillPattern.Solid, smooth=Smooth.None, fillColor={175,175,175}), Line(visible=useHeatPort, points={{-100,-100},{-100,-20},{0,-20}}, color={191,0,0}, pattern=LinePattern.Dot, smooth=Smooth.None)})); end SupportFriction; model Brake "Brake based on Coulomb friction" extends Modelica.Mechanics.Translational.Interfaces.PartialElementaryTwoFlangesAndSupport2; extends Modelica.Thermal.HeatTransfer.Interfaces.PartialElementaryConditionalHeatPortWithoutT; parameter Real mue_pos[:, 2]=[0, 0.5] "[v, f] Positive sliding friction characteristic (v>=0)"; parameter Real peak(final min=1) = 1 "peak*mue_pos[1,2] = Maximum friction force for v==0"; parameter Real cgeo(final min=0) = 1 "Geometry constant containing friction distribution assumption"; parameter SI.Force fn_max(final min=0, start=1) "Maximum normal force"; extends Translational.Interfaces.PartialFriction; SI.Position s; SI.Force f "Brake friction force"; SI.Velocity v "Absolute velocity of flange_a and flange_b"; SI.Acceleration a "Absolute acceleration of flange_a and flange_b"; Real mue0 "Friction coefficient for v=0 and forward sliding"; SI.Force fn "Normal force (=fn_max*f_normalized)"; // Constant auxiliary variable Modelica.Blocks.Interfaces.RealInput f_normalized "Normalized force signal 0..1 (normal force = fn_max*f_normalized; brake is active if > 0)" annotation (Placement(transformation( origin={0,110}, extent={{20,-20},{-20,20}}, rotation=90))); equation mue0 = Modelica.Math.tempInterpol1(0, mue_pos, 2); s = s_a; s = s_b; // velocity and acceleration of flanges flange_a and flange_b v = der(s); a = der(v); v_relfric = v; a_relfric = a; // Friction force, normal force and friction force for v_rel=0 flange_a.f + flange_b.f - f = 0; fn = fn_max*f_normalized; f0 = mue0*cgeo*fn; f0_max = peak*f0; free = fn <= 0; // Friction force f = if locked then sa*unitForce else if free then 0 else cgeo*fn*(if startForward then Modelica.Math.tempInterpol1( v, mue_pos, 2) else if startBackward then -Modelica.Math.tempInterpol1(-v, mue_pos, 2) else if pre(mode) == Forward then Modelica.Math.tempInterpol1( v, mue_pos, 2) else -Modelica.Math.tempInterpol1(-v, mue_pos, 2)); lossPower = f*v_relfric; annotation ( Documentation(info="<html> <p> This component models a <b>brake</b>, i.e., a component where a frictional force is acting between the housing and a flange and a controlled normal force presses the flange to the housing in order to increase friction. The normal force fn has to be provided as input signal f_normalized in a normalized form (0 &le; f_normalized &le; 1), fn = fn_max*f_normalized, where fn_max has to be provided as parameter. Friction in the brake is modelled in the following way: </p> <p> When the absolute velocity \"v\" is not zero, the friction force is a function of the velocity dependent friction coefficient mue(v) , of the normal force \"fn\", and of a geometry constant \"cgeo\" which takes into account the geometry of the device and the assumptions on the friction distributions: </p> <pre> frictional_force = <b>cgeo</b> * <b>mue</b>(v) * <b>fn</b> </pre> <p> Typical values of coefficients of friction: </p> <pre> dry operation : <b>mue</b> = 0.2 .. 0.4 operating in oil: <b>mue</b> = 0.05 .. 0.1 </pre> <p> The positive part of the friction characteristic <b>mue</b>(v), v >= 0, is defined via table mue_pos (first column = v, second column = mue). Currently, only linear interpolation in the table is supported. </p> <p> When the absolute velocity becomes zero, the elements connected by the friction element become stuck, i.e., the absolute position remains constant. In this phase the friction force is calculated from a force balance due to the requirement, that the absolute acceleration shall be zero. The elements begin to slide when the friction force exceeds a threshold value, called the maximum static friction force, computed via: </p> <pre> frictional_force = <b>peak</b> * <b>cgeo</b> * <b>mue</b>(w=0) * <b>fn</b> (<b>peak</b> >= 1) </pre> <p> This procedure is implemented in a \"clean\" way by state events and leads to continuous/discrete systems of equations if friction elements are dynamically coupled. The method is described in: </p> <dl> <dt>Otter M., Elmqvist H., and Mattsson S.E. (1999): <dd><b>Hybrid Modeling in Modelica based on the Synchronous Data Flow Principle</b>. CACSD'99, Aug. 22.-26, Hawaii. </dl> <p> More precise friction models take into account the elasticity of the material when the two elements are \"stuck\", as well as other effects, like hysteresis. This has the advantage that the friction element can be completely described by a differential equation without events. The drawback is that the system becomes stiff (about 10-20 times slower simulation) and that more material constants have to be supplied which requires more sophisticated identification. For more details, see the following references, especially (Armstrong and Canudas de Witt 1996): </p> <dl> <dt>Armstrong B. (1991): <dd><b>Control of Machines with Friction</b>. Kluwer Academic Press, Boston MA.<br><br> <dt>Armstrong B., and Canudas de Wit C. (1996): <dd><b>Friction Modeling and Compensation.</b> The Control Handbook, edited by W.S.Levine, CRC Press, pp. 1369-1382.<br><br> <dt>Canudas de Wit C., Olsson H., Astroem K.J., and Lischinsky P. (1995): <dd><b>A new model for control of systems with friction.</b> IEEE Transactions on Automatic Control, Vol. 40, No. 3, pp. 419-425.<br><br> </dl> </html>"), Icon(coordinateSystem(preserveAspectRatio=true, extent={{-100,-100},{100,100}}), graphics={ Rectangle( extent={{-90,10},{90,-10}}, lineColor={0,127,0}, fillColor={215,215,215}, fillPattern=FillPattern.Solid), Rectangle( extent={{-20,30},{20,20}}, lineColor={0,0,0}, fillColor={0,0,0}, fillPattern=FillPattern.Solid), Rectangle( extent={{-20,-20},{20,-30}}, lineColor={0,0,0}, fillColor={0,0,0}, fillPattern=FillPattern.Solid), Polygon( points={{0,-30},{10,-50},{-10,-50},{0,-30}}, lineColor={0,0,127}, fillColor={0,0,127}, fillPattern=FillPattern.Solid), Polygon( points={{10,50},{-10,50},{0,30},{10,50}}, lineColor={0,0,127}, fillColor={0,0,127}, fillPattern=FillPattern.Solid), Line( points={{0,90},{0,50}}, color={0,0,0}, smooth=Smooth.None), Rectangle( extent={{20,28},{30,22}}, lineColor={175,175,175}, fillColor={175,175,175}, fillPattern=FillPattern.Solid), Rectangle( extent={{20,-22},{30,-28}}, lineColor={175,175,175}, fillColor={175,175,175}, fillPattern=FillPattern.Solid), Rectangle( extent={{30,28},{36,-102}}, lineColor={175,175,175}, fillColor={175,175,175}, fillPattern=FillPattern.Solid), Rectangle( extent={{14,-96},{30,-102}}, lineColor={175,175,175}, fillColor={175,175,175}, fillPattern=FillPattern.Solid), Line( points={{0,-50},{0,-60},{-40,-50},{-40,48},{0,60},{0,90}}, color={0,0,0}, smooth=Smooth.None), Text( extent={{-150,-120},{150,-160}}, textString="%name", lineColor={0,0,255}), Line(visible=useHeatPort, points={{-100,-102},{-100,-16},{0,-16}}, color={191,0,0}, pattern=LinePattern.Dot, smooth=Smooth.None)})); end Brake; model IdealGearR2T "Gearbox transforming rotational into translational motion" extends Modelica.Mechanics.Rotational.Components.IdealGearR2T; annotation (Documentation(info="<html> <p>Couples rotational and translational motion, like a toothed wheel with a toothed rack, specifying the ratio of rotational / translational motion.</p> </html>")); end IdealGearR2T; model IdealRollingWheel "Simple 1-dim. model of an ideal rolling wheel without inertia" extends Modelica.Mechanics.Rotational.Components.IdealRollingWheel; annotation (Documentation(info="<html> <p>Couples rotational and translational motion, like an ideal rolling wheel, specifying the wheel radius.</p> </html>")); end IdealRollingWheel; model InitializeFlange "Initializes a flange with pre-defined position, speed and acceleration (usually, this is reference data from a control bus)" extends Modelica.Blocks.Icons.Block; parameter Boolean use_s_start = true "= true, if initial position is defined by input s_start, otherwise not initialized"; parameter Boolean use_v_start = true "= true, if initial speed is defined by input v_start, otherwise not initialized"; parameter Boolean use_a_start = true "= true, if initial acceleration is defined by input a_start, otherwise not initialized"; parameter StateSelect stateSelect=StateSelect.default "Priority to use flange angle and speed as states"; Modelica.Blocks.Interfaces.RealInput s_start(unit="m") if use_s_start "Initial position of flange" annotation (Placement(transformation(extent={{-140,40},{-100,80}}, rotation=0))); Modelica.Blocks.Interfaces.RealInput v_start(unit="m/s") if use_v_start "Initial speed of flange" annotation (Placement(transformation(extent={{-140,-20},{-100,20}}, rotation=0))); Modelica.Blocks.Interfaces.RealInput a_start(unit="m/s2") if use_a_start "Initial angular acceleration of flange" annotation (Placement(transformation(extent={{-140,-80},{-100,-40}}, rotation=0))); Interfaces.Flange_b flange "Flange that is initialized" annotation (Placement( transformation(extent={{90,-10},{110,10}}, rotation=0))); Modelica.SIunits.Position s_flange(stateSelect=stateSelect)=flange.s "Flange position"; Modelica.SIunits.Velocity v_flange(stateSelect=stateSelect)= der(s_flange) "= der(s_flange)"; protected encapsulated model Set_s_start "Set s_start" import Modelica; extends Modelica.Blocks.Icons.Block; Modelica.Blocks.Interfaces.RealInput s_start(unit="m") "Start position" annotation (HideResult=true, Placement(transformation(extent={{-140,-20},{ -100,20}}, rotation=0))); Modelica.Mechanics.Translational.Interfaces.Flange_b flange annotation (Placement( transformation(extent={{90,-10},{110,10}}, rotation=0))); initial equation flange.s = s_start; equation flange.f = 0; end Set_s_start; encapsulated model Set_v_start "Set v_start" import Modelica; extends Modelica.Blocks.Icons.Block; Modelica.Blocks.Interfaces.RealInput v_start(unit="m/s") "Start velocity" annotation (HideResult=true, Placement(transformation(extent={{-140,-20},{ -100,20}}, rotation=0))); Modelica.Mechanics.Translational.Interfaces.Flange_b flange annotation (Placement( transformation(extent={{90,-10},{110,10}}, rotation=0))); initial equation der(flange.s) = v_start; equation flange.f = 0; end Set_v_start; encapsulated model Set_a_start "Set a_start" import Modelica; extends Modelica.Blocks.Icons.Block; Modelica.Blocks.Interfaces.RealInput a_start(unit="m/s2") "Start acceleration" annotation (HideResult=true, Placement(transformation(extent={{-140,-20},{ -100,20}}, rotation=0))); Modelica.Mechanics.Translational.Interfaces.Flange_b flange(s(stateSelect=StateSelect.avoid)) annotation (Placement( transformation(extent={{90,-10},{110,10}}, rotation=0))); Modelica.SIunits.Velocity v = der(flange.s) annotation(HideResult=true); initial equation der(v) = a_start; equation flange.f = 0; end Set_a_start; encapsulated model Set_flange_f "Set flange_f to zero" import Modelica; extends Modelica.Blocks.Icons.Block; Modelica.Mechanics.Translational.Interfaces.Flange_b flange annotation (Placement( transformation(extent={{90,-10},{110,10}}, rotation=0))); equation flange.f = 0; end Set_flange_f; protected Set_s_start set_s_start if use_s_start annotation (Placement( transformation(extent={{-20,50},{0,70}}, rotation=0))); Set_v_start set_v_start if use_v_start annotation (Placement(transformation(extent={{-20, -10},{0,10}}, rotation=0))); Set_a_start set_a_start if use_a_start annotation (Placement(transformation(extent={{-20, -70},{0,-50}}, rotation=0))); Set_flange_f set_flange_f annotation (Placement(transformation(extent={ {20,-100},{40,-80}}, rotation=0))); equation connect(set_s_start.flange, flange) annotation (Line( points={{0,60},{60,60},{60,0},{100,0}}, color={0,0,0}, smooth=Smooth.None)); connect(set_v_start.flange, flange) annotation (Line( points={{0,0},{100,0}}, color={0,0,0}, smooth=Smooth.None)); connect(set_a_start.flange, flange) annotation (Line( points={{0,-60},{60,-60},{60,0},{100,0}}, color={0,0,0}, smooth=Smooth.None)); connect(set_flange_f.flange, flange) annotation (Line( points={{40,-90},{60,-90},{60,0},{100,0}}, color={0,0,0}, smooth=Smooth.None)); connect(s_start, set_s_start.s_start) annotation (Line( points={{-120,60},{-22,60}}, color={0,0,127}, smooth=Smooth.None)); connect(v_start, set_v_start.v_start) annotation (Line( points={{-120,0},{-22,0}}, color={0,0,127}, smooth=Smooth.None)); connect(a_start, set_a_start.a_start) annotation (Line( points={{-120,-60},{-22,-60}}, color={0,0,127}, smooth=Smooth.None)); annotation (Icon(coordinateSystem(preserveAspectRatio=true, extent={{-100, -100},{100,100}}), graphics={ Text( extent={{-94,74},{68,46}}, lineColor={0,0,0}, textString="s_start"), Text( extent={{-94,16},{70,-14}}, lineColor={0,0,0}, textString="v_start"), Text( extent={{-94,-46},{66,-74}}, lineColor={0,0,0}, textString="a_start")}), Documentation(info="<html> <p> This component is used to optionally initialize the position, speed, and/or acceleration of the flange to which this component is connected. Via parameters use_s_start, use_v_start, use_a_start the corresponding input signals s_start, v_start, a_start are conditionally activated. If an input is activated, the corresponding flange property is initialized with the input value at start time. </p> <p> For example, if \"use_s_start = true\", then flange.s is initialized with the value of the input signal \"s_start\" at the start time. </p> <p> Additionally, it is optionally possible to define the \"StateSelect\" attribute of the flange position and the flange speed via parameter \"stateSelection\". </p> <p> This component is especially useful when the initial values of a flange shall be set according to reference signals of a controller that are provided via a signal bus. </p> </html>")); end InitializeFlange; model MassWithStopAndFriction "Sliding mass with hard stop and Stribeck friction" extends PartialFrictionWithStop; SI.Velocity v(start=0, stateSelect = StateSelect.always) "Absolute velocity of flange_a and flange_b"; SI.Acceleration a(start=0) "Absolute acceleration of flange_a and flange_b"; parameter Modelica.SIunits.Mass m(start=1) "Mass"; parameter Real F_prop(final unit="N.s/m", final min=0, start = 1) "Velocity dependent friction"; parameter Modelica.SIunits.Force F_Coulomb(start=5) "Constant friction: Coulomb force"; parameter Modelica.SIunits.Force F_Stribeck(start=10) "Stribeck effect"; parameter Real fexp(final unit="s/m", final min=0, start = 2) "Exponential decay"; extends Modelica.Thermal.HeatTransfer.Interfaces.PartialElementaryConditionalHeatPortWithoutT; Integer stopped; encapsulated partial model PartialFrictionWithStop "Base model of Coulomb friction elements with stop" import SI = Modelica.SIunits; import Modelica.Mechanics.Translational.Interfaces.PartialRigid; parameter SI.Position smax(start= 25) "Right stop for (right end of) sliding mass"; parameter SI.Position smin(start=-25) "Left stop for (left end of) sliding mass"; parameter SI.Velocity v_small=1e-3 "Relative velocity near to zero (see model info text)" annotation(Dialog(tab="Advanced")); // Equations to define the following variables have to be defined in subclasses SI.Velocity v_relfric "Relative velocity between frictional surfaces"; SI.Acceleration a_relfric "Relative acceleration between frictional surfaces"; SI.Force f "Friction force (positive, if directed in opposite direction of v_rel)"; SI.Force f0 "Friction force for v=0 and forward sliding"; SI.Force f0_max "Maximum friction force for v=0 and locked"; Boolean free "true, if frictional element is not active"; // Equations to define the following variables are given in this class Real sa(unit="1") "Path parameter of friction characteristic f = f(a_relfric)"; Boolean startForward(start=false, fixed=true) "= true, if v_rel=0 and start of forward sliding or v_rel > v_small"; Boolean startBackward(start=false, fixed=true) "= true, if v_rel=0 and start of backward sliding or v_rel < -v_small"; Boolean locked(start=false) "true, if v_rel=0 and not sliding"; extends PartialRigid(s(start=0, stateSelect = StateSelect.always)); constant Integer Unknown=3 "Value of mode is not known"; constant Integer Free=2 "Element is not active"; constant Integer Forward=1 "v_rel > 0 (forward sliding)"; constant Integer Stuck=0 "v_rel = 0 (forward sliding, locked or backward sliding)"; constant Integer Backward=-1 "v_rel < 0 (backward sliding)"; Integer mode( final min=Backward, final max=Unknown, start=Unknown, fixed=true); protected constant SI.Acceleration unitAcceleration = 1 annotation(HideResult=true); constant SI.Force unitForce = 1 annotation(HideResult=true); equation /* Friction characteristic (locked is introduced to help the Modelica translator determining the different structural configurations, if for each configuration special code shall be generated) */ startForward = pre(mode) == Stuck and (sa > f0_max/unitForce and s < (smax - L/2) or pre(startForward) and sa > f0/unitForce and s < (smax - L/2)) or pre(mode) == Backward and v_relfric > v_small or initial() and (v_relfric > 0); startBackward = pre(mode) == Stuck and (sa < -f0_max/unitForce and s > (smin + L/2) or pre(startBackward) and sa < -f0/unitForce and s > (smin + L/2)) or pre(mode) == Forward and v_relfric < -v_small or initial() and (v_relfric < 0); locked = not free and not (pre(mode) == Forward or startForward or pre(mode) == Backward or startBackward); a_relfric/unitAcceleration = if locked then 0 else if free then sa else if startForward then sa - f0_max/unitForce else if startBackward then sa + f0_max/unitForce else if pre(mode) == Forward then sa - f0_max/unitForce else sa + f0_max/unitForce; /* Friction torque has to be defined in a subclass. Example for a clutch: f = if locked then sa else if free then 0 else cgeo*fn*(if startForward then Math.tempInterpol1( v_relfric, mue_pos, 2) else if startBackward then -Math.tempInterpol1(-v_relfric, mue_pos, 2) else if pre(mode) == Forward then Math.tempInterpol1( v_relfric, mue_pos, 2) else -Math.tempInterpol1(-v_relfric, mue_pos, 2)); */ // finite state machine to determine configuration mode = if free then Free else (if (pre(mode) == Forward or pre(mode) == Free or startForward) and v_relfric > 0 and s < (smax - L/2) then Forward else if (pre(mode) == Backward or pre(mode) == Free or startBackward) and v_relfric < 0 and s > (smin + L/2) then Backward else Stuck); annotation (Documentation(info="<html> <p> Basic model for Coulomb friction that models the stuck phase in a reliable way.<br> Additionally, a left and right stop are handled. </p> </html>")); end PartialFrictionWithStop; equation // Constant auxiliary variables f0 = (F_Coulomb + F_Stribeck); f0_max = f0*1.001; free = f0 <= 0 and F_prop <= 0 and s > smin + L/2 and s < smax - L/2; // Velocity and acceleration of flanges v = der(s); a = der(v); v_relfric = v; a_relfric = a; // Equilibrium of forces 0 = flange_a.f + flange_b.f - f - m*der(v); // Friction force f = if locked then sa*unitForce else if free then 0 else (if startForward then F_prop*v + F_Coulomb + F_Stribeck else if startBackward then F_prop*v - F_Coulomb - F_Stribeck else if pre(mode) == Forward then F_prop*v + F_Coulomb + F_Stribeck*exp(-fexp*abs(v)) else F_prop*v - F_Coulomb - F_Stribeck*exp(-fexp*abs(v))); lossPower = f*v_relfric; equation when (initial()) then assert(s > smin + L/2 or s >= smin + L/2 and v >= 0, "Error in initialization of hard stop. (s - L/2) must be >= smin\n"+ "(s=" + String(s) + ", L=" + String(L) + ", smin=" + String(smin) + ")"); assert(s < smax - L/2 or s <= smax - L/2 and v <= 0, "Error in initialization of hard stop. (s + L/2) must be <= smax\n"+ "(s=" + String(s) + ", L=" + String(L) + ", smax=" + String(smax) + ")"); end when; // Define events for hard stops and reinitialize the state variables velocity v and position s stopped = if s <= smin + L/2 then -1 else if s >= smax - L/2 then +1 else 0; when stopped <> 0 then reinit(s, if stopped < 0 then smin + L/2 else smax - L/2); reinit(v, 0); end when; /* Version 1: when not (s < smax - L/2) then reinit(s, smax - L/2); if (not initial() or v>0) then reinit(v, 0); end if; end when; when not (s > smin + L/2) then reinit(s, smin + L/2); if (not initial() or v<0) then reinit(v, 0); end if; end when; Version 2: stopped := if s <= smin + L/2 then -1 else if s >= smax - L/2 then +1 else 0; when (initial()) then assert(s > smin + L/2 or s >= smin + L/2 and v >= 0, "Error in initialization of hard stop. (s - L/2) must be >= smin\n"+ "(s=" + String(s) + ", L=" + String(L) + ", smin=" + String(smin) + ")"); assert(s < smax - L/2 or s <= smax - L/2 and v <= 0, "Error in initialization of hard stop. (s + L/2) must be <= smax\n"+ "(s=" + String(s) + ", L=" + String(L) + ", smax=" + String(smax) + ")"); end when; when stopped <> 0 then reinit(s, if stopped < 0 then smin + L/2 else smax - L/2); if (not initial() or stopped*v>0) then reinit(v, 0); end if; end when; */ annotation ( Documentation(info="<html> <p>This element describes the <i>Stribeck friction characteristics</i> of a sliding mass, i. e. the frictional force acting between the sliding mass and the support. Included is a <i>hard stop</i> for the position. </p> <p> The surface is fixed and there is friction between sliding mass and surface. The frictional force f is given for positive velocity v by: </p> <blockquote><pre> f = F_Coulomb + F_prop * v + F_Stribeck * exp (-fexp * v) </pre></blockquote> <p> <IMG src=\"modelica://Modelica/Resources/Images/Mechanics/Translational/Stribeck.png\"> </p> <p> The distance between the left and the right connector is given by parameter L. The position of the center of gravity, coordinate s, is in the middle between the two flanges.</p> <p> There are hard stops at smax and smin, i. e. if <i><code>flange_a.s &gt;= smin</code></i> and <i><code>flange_b.s &lt;= xmax </code></i> the sliding mass can move freely.</p> <p>When the absolute velocity becomes zero, the sliding mass becomes stuck, i.e., the absolute position remains constant. In this phase the friction force is calculated from a force balance due to the requirement that the absolute acceleration shall be zero. The elements begin to slide when the friction force exceeds a threshold value, called the maximum static friction force, computed via:</p> <blockquote><pre> maximum_static_friction = F_Coulomb + F_Stribeck </pre></blockquote> <p> <font color=\"#ff0000\"> <b>This requires the states Stop.s and Stop.v</b> </font>. If these states are eliminated during the index reduction the model will not work. To avoid this any inertias should be connected via springs to the Stop element, other sliding masses, dampers or hydraulic chambers must be avoided.</p> <p>For more details of the used friction model see the following reference: </p> <dl> <dt>Beater P. (1999):</dt> <dd><a href=\"http://www.springer.de/cgi-bin/search_book.pl?isbn=3-540-65444-5\"> Entwurf hydraulischer Maschinen</a>. Springer Verlag Berlin Heidelberg New York.</dd> </dl> <P>The friction model is implemented in a \"clean\" way by state events and leads to continuous/discrete systems of equations which have to be solved by appropriate numerical methods. The method is described in: </P> <dl> <dt>Otter M., Elmqvist H., and Mattsson S.E. (1999):</dt> <dd><i>Hybrid Modeling in Modelica based on the Synchronous Data Flow Principle</i>. CACSD'99, Aug. 22.-26, Hawaii. </dd> </dl> <P>More precise friction models take into account the elasticity of the material when the two elements are \"stuck\", as well as other effects, like hysteresis. This has the advantage that the friction element can be completely described by a differential equation without events. The drawback is that the system becomes stiff (about 10-20 times slower simulation) and that more material constants have to be supplied which requires more sophisticated identification. For more details, see the following references, especially (Armstrong and Canudas de Witt 1996): </P> <dl> <dt> Armstrong B. (1991):</dt> <DD><i>Control of Machines with Friction</i>. Kluwer Academic Press, Boston MA.<BR> </DD> <DT>Armstrong B., and Canudas de Wit C. (1996): </DT> <DD><i>Friction Modeling and Compensation.</i> The Control Handbook, edited by W.S.Levine, CRC Press, pp. 1369-1382.<BR> </DD> <DT>Canudas de Wit C., Olsson H., Astroem K.J., and Lischinsky P. (1995): </DT> <DD>A<i> new model for control of systems with friction.</i> IEEE Transactions on Automatic Control, Vol. 40, No. 3, pp. 419-425.<BR> </DD> </DL> <h4>Optional heatPort</h4> <p> The dissipated energy is transported in form of heat to the optional heatPort connector that can be enabled via parameter \"useHeatPort\". Independently whether the heatPort is or is not enabled, the dissipated power is defined with variable \"lossPower\". If contact occurs at the hard stops, the lossPower is not correctly modelled at this time instant, because the hard stop would introduce a Dirac impulse in the lossPower due to the discontinuously changing kinetic energy of the mass (lossPower is the derivative of the kinetic energy at the time instant of the impact). </p> </html>", revisions="<html> <h4>Release Notes:</h4> <ul> <li><i>First Version from December 7, 1999 by P. Beater (based on Rotational.BearingFriction)</i> </li> <li><i>July 14, 2001 by P. Beater, assert on initialization added, diagram modified </i> </li> <li><i>October 11, 2001, by Hans Olsson, Dassault Syst&egrave;mes AB, modified assert to handle start at stops, modified event logic such if you have friction parameters equal to zero you do not get events between the stops.</i> </li> <li><i>June 10, 2002 by P. Beater, StateSelect.always for variables s and v (instead of fixed=true). </i> </li> </ul> </html>"), Icon(coordinateSystem( preserveAspectRatio=true, extent={{-100,-100},{100,100}}), graphics={ Polygon( points={{80,-100},{50,-90},{50,-110},{80,-100}}, lineColor={128,128,128}, fillColor={128,128,128}, fillPattern=FillPattern.Solid), Line(points={{-30,-100},{50,-100}}, color={0,0,0}), Rectangle( extent={{-30,30},{35,-35}}, lineColor={0,0,0}, fillPattern=FillPattern.Sphere, fillColor={255,255,255}), Line(points={{-90,0},{-30,0}}, color={0,127,0}), Rectangle( extent={{-70,-45},{74,-60}}, lineColor={0,0,0}, fillColor={192,192,192}, fillPattern=FillPattern.Solid), Rectangle( extent={{-63,-15},{-55,-45}}, lineColor={0,0,0}, fillColor={0,0,0}, fillPattern=FillPattern.Solid), Rectangle( extent={{60,-16},{69,-45}}, lineColor={0,0,0}, fillColor={0,0,0}, fillPattern=FillPattern.Solid), Line(points={{35,0},{90,0}}, color={0,127,0}), Text( extent={{-150,80},{150,40}}, textString="%name", lineColor={0,0,255}), Line(points={{-50,-90},{-30,-70}}, color={0,0,0}), Line(points={{-30,-70},{30,-70}}, color={0,0,0}), Line(points={{-30,-90},{-10,-70}}, color={0,0,0}), Line(points={{-10,-90},{10,-70}}, color={0,0,0}), Line(points={{10,-90},{30,-70}}, color={0,0,0}), Text( extent={{-150,-110},{150,-140}}, lineColor={0,0,0}, textString="m=%m"), Line(visible=useHeatPort, points={{-100,-100},{-100,-40},{3,-40}}, color={191,0,0}, pattern=LinePattern.Dot, smooth=Smooth.None)}), Diagram(coordinateSystem( preserveAspectRatio=true, extent={{-100,-100},{100,100}}), graphics={ Polygon( points={{50,-75},{20,-65},{20,-85},{50,-75}}, lineColor={128,128,128}, fillColor={128,128,128}, fillPattern=FillPattern.Solid), Line(points={{-60,-75},{20,-75}}, color={0,0,0}), Rectangle( extent={{-30,26},{35,-9}}, lineColor={0,0,0}, fillPattern=FillPattern.Sphere, fillColor={255,255,255}), Line(points={{-90,0},{-30,0}}, color={0,127,0}), Line(points={{35,0},{90,0}}, color={0,127,0}), Rectangle( extent={{-68,-14},{76,-29}}, lineColor={0,0,0}, fillColor={192,192,192}, fillPattern=FillPattern.Solid), Rectangle( extent={{-119,43},{-111,17}}, lineColor={0,0,0}, fillColor={0,0,0}, fillPattern=FillPattern.Solid), Line( points={{-111,43},{-111,50}}, color={0,0,0}, pattern=LinePattern.Solid, thickness=0.25, arrow={Arrow.None,Arrow.None}), Line( points={{-151,49},{-113,49}}, color={0,0,0}, pattern=LinePattern.Solid, thickness=0.25, arrow={Arrow.None,Arrow.None}), Text( extent={{-149,51},{-126,60}}, textString="s min", lineColor={0,0,255}), Polygon( points={{-121,52},{-111,49},{-121,46},{-121,52}}, lineColor={0,0,0}, fillColor={0,0,0}, fillPattern=FillPattern.Solid), Rectangle( extent={{124,42},{132,17}}, lineColor={0,0,0}, fillColor={0,0,0}, fillPattern=FillPattern.Solid), Line( points={{124,39},{124,87}}, color={0,0,0}, pattern=LinePattern.Solid, thickness=0.25, arrow={Arrow.None,Arrow.None}), Line( points={{-19,78},{121,78}}, color={0,0,0}, pattern=LinePattern.Solid, thickness=0.25, arrow={Arrow.None,Arrow.None}), Text( extent={{-17,83},{6,92}}, textString="s max", lineColor={0,0,255}), Polygon( points={{114,81},{124,78},{114,75},{114,81}}, lineColor={0,0,0}, fillColor={0,0,0}, fillPattern=FillPattern.Solid), Line( points={{5,26},{5,63}}, color={0,0,0}, pattern=LinePattern.Solid, thickness=0.25, arrow={Arrow.None,Arrow.None}), Line( points={{-77,58},{-1,58}}, color={0,0,0}, pattern=LinePattern.Solid, thickness=0.25, arrow={Arrow.None,Arrow.None}), Text( extent={{-75,60},{-38,71}}, textString="Position s", lineColor={0,0,255}), Polygon( points={{-5,61},{5,58},{-5,55},{-5,61}}, lineColor={0,0,0}, fillColor={0,0,0}, fillPattern=FillPattern.Solid), Line(points={{-100,-10},{-100,-60}}, color={0,0,0}), Line(points={{100,-10},{100,-60}}, color={0,0,0}), Polygon( points={{90,-47},{100,-50},{90,-53},{90,-47}}, lineColor={0,0,0}, fillColor={0,0,0}, fillPattern=FillPattern.Solid), Polygon( points={{-90,-47},{-90,-53},{-100,-50},{-90,-47}}, lineColor={0,0,0}, fillColor={0,0,0}, fillPattern=FillPattern.Solid), Line(points={{-90,-50},{92,-50}}, color={0,0,0}), Text( extent={{-11,-46},{26,-36}}, textString="Length L", lineColor={0,0,255})})); end MassWithStopAndFriction; model RelativeStates "Definition of relative state variables" extends Translational.Interfaces.PartialTwoFlanges; parameter StateSelect stateSelect=StateSelect.prefer "Priority to use the relative angle and relative speed as states"; SI.Position s_rel(start=0, stateSelect=StateSelect.prefer) "Relative position used as state variable"; SI.Velocity v_rel(start=0, stateSelect=StateSelect.prefer) "Relative velocity used as state variable"; SI.Acceleration a_rel(start=0) "Relative angular acceleration"; equation s_rel = flange_b.s - flange_a.s; v_rel = der(s_rel); a_rel = der(v_rel); flange_a.f = 0; flange_b.f = 0; annotation ( Documentation(info="<html> <p> Usually, the absolute position and the absolute velocity of Modelica.Mechanics.Translational.Inertia models are used as state variables. In some circumstances, relative quantities are better suited, e.g., because it may be easier to supply initial values. In such cases, model <b>RelativeStates</b> allows the definition of state variables in the following way: </p> <ul> <li> Connect an instance of this model between two flange connectors.</li> <li> The <b>relative position</b> and the <b>relative velocity</b> between the two connectors are used as <b>state variables</b>. </ul> <p> An example is given in the next figure </p> <p> <IMG src=\"modelica://Modelica/Resources/Images/Mechanics/Translational/relativeStates2.png\" ALT=\"relativeStates2\"> </p> <p> Here, the relative position and the relative velocity between the two masses are used as state variables. Additionally, the simulator selects either the absolute position and absolute velocity of model mass1 or of model mass2 as state variables. </p> </html>"), Icon(coordinateSystem( preserveAspectRatio=true, extent={{-100,-100},{100,100}}), graphics={ Ellipse( extent={{-40,40},{40,-40}}, lineColor={0,255,255}, fillColor={0,255,255}, fillPattern=FillPattern.Solid), Text( extent={{-40,40},{40,-40}}, textString="S", lineColor={0,0,255}), Line( points={{-92,0},{-42,0}}, color={0,0,0}, pattern=LinePattern.Dot), Line( points={{40,0},{90,0}}, color={0,0,0}, pattern=LinePattern.Dot), Text( extent={{-150,90},{150,50}}, textString="%name", lineColor={0,0,255})}), Diagram(coordinateSystem( preserveAspectRatio=true, extent={{-100,-100},{100,100}}), graphics={ Ellipse( extent={{-40,40},{40,-40}}, lineColor={0,255,255}, fillColor={0,255,255}, fillPattern=FillPattern.Solid), Text( extent={{-40,40},{40,-40}}, textString="S", lineColor={0,0,255}), Line( points={{40,0},{90,0}}, color={0,0,0}, pattern=LinePattern.Dash), Line(points={{-100,-10},{-100,-80}}, color={160,160,164}), Line(points={{100,-10},{100,-80}}, color={160,160,164}), Polygon( points={{80,-65},{80,-55},{100,-60},{80,-65}}, lineColor={160,160,164}, fillColor={160,160,164}, fillPattern=FillPattern.Solid), Line(points={{-100,-60},{80,-60}}, color={160,160,164}), Text( extent={{-30,-70},{30,-90}}, textString="w_rel", lineColor={0,0,255}), Line(points={{-76,80},{-5,80}}, color={128,128,128}), Polygon( points={{14,80},{-6,85},{-6,75},{14,80}}, lineColor={128,128,128}, fillColor={128,128,128}, fillPattern=FillPattern.Solid), Text( extent={{18,87},{86,74}}, lineColor={128,128,128}, textString="moving direction"), Line( points={{-90,0},{-40,0}}, color={0,0,0}, pattern=LinePattern.Dash)})); end RelativeStates; annotation (Icon(coordinateSystem(preserveAspectRatio = true, extent = {{-100,-100},{100,100}}), graphics = { Rectangle( origin = {11.5,31.183}, lineColor = {64,64,64}, fillColor = {255,255,255}, fillPattern = FillPattern.Sphere, extent = {{-67,-66},{44,-6}})}), Documentation(info="<html> <p> This package contains basic components 1D mechanical translational drive trains. </p> </html>")); end Components; package Sensors "Sensors for 1-dim. translational mechanical quantities" extends Modelica.Icons.SensorsPackage; model PositionSensor "Ideal sensor to measure the absolute position" extends Translational.Interfaces.PartialAbsoluteSensor; Modelica.Blocks.Interfaces.RealOutput s(unit="m") "Absolute position of flange as output signal" annotation (Placement(transformation(extent={{100,-11}, {120,9}}, rotation=0), iconTransformation(extent={{100, -10},{120,10}}))); equation s = flange.s; annotation ( Documentation(info="<html> <p> Measures the <i>absolute position s</i> of a flange in an ideal way and provides the result as output signals (to be further processed with blocks of the Modelica.Blocks library). </p> </html>"), Icon(coordinateSystem( preserveAspectRatio=true, extent={{-100,-100},{100,100}}), graphics={Line(points={{-70,0},{-90,0}}, color={0,0,0}), Text( extent={{80,-28},{114,-62}}, lineColor={0,0,0}, textString="s")})); end PositionSensor; model SpeedSensor "Ideal sensor to measure the absolute velocity" extends Translational.Interfaces.PartialAbsoluteSensor; Modelica.Blocks.Interfaces.RealOutput v(unit="m/s") "Absolute velocity of flange as output signal" annotation (Placement(transformation(extent={{100,-10},{120,10}}, rotation=0))); equation v = der(flange.s); annotation ( Documentation(info="<html> <p> Measures the <i>absolute velocity v</i> of a flange in an ideal way and provides the result as output signals (to be further processed with blocks of the Modelica.Blocks library). </p> </html>"), Icon(coordinateSystem( preserveAspectRatio=true, extent={{-100,-100},{100,100}}), graphics={Line(points={{-70,0},{-90,0}}, color={0,0,0}), Text( extent={{80,-28},{111,-61}}, lineColor={0,0,0}, textString="v")})); end SpeedSensor; model AccSensor "Ideal sensor to measure the absolute acceleration" extends Translational.Interfaces.PartialAbsoluteSensor; SI.Velocity v "Absolute velocity of flange"; Modelica.Blocks.Interfaces.RealOutput a(unit="m/s2") "Absolute acceleration of flange as output signal" annotation (Placement(transformation(extent={{100,-10},{120,10}}, rotation=0))); equation v = der(flange.s); a = der(v); annotation ( Documentation(info="<html> <p> Measures the <i>absolute acceleration a</i> of a flange in an ideal way and provides the result as output signals (to be further processed with blocks of the Modelica.Blocks library). </p> </html>"), Icon(coordinateSystem( preserveAspectRatio=true, extent={{-100,-100},{100,100}}), graphics={Line(points={{-70,0},{-90,0}}, color={0,0,0}), Text( extent={{80,-28},{115,-60}}, lineColor={0,0,0}, textString="a")})); end AccSensor; model RelPositionSensor "Ideal sensor to measure the relative position" extends Translational.Interfaces.PartialRelativeSensor; Modelica.Blocks.Interfaces.RealOutput s_rel(unit="m") "Distance between two flanges (= flange_b.s - flange_a.s) as output signal" annotation (Placement(transformation(extent={{-10,-10}, {10,10}}, rotation=270, origin={0,-110}))); equation s_rel = flange_b.s - flange_a.s; 0 = flange_a.f; annotation ( Documentation(info="<html> <p> Measures the <i>relative position s</i> of a flange in an ideal way and provides the result as output signals (to be further processed with blocks of the Modelica.Blocks library). </p> </html>"), Icon(coordinateSystem( preserveAspectRatio=true, extent={{-100,-100},{100,100}}), graphics={ Line(points={{-70,0},{-90,0}}, color={0,0,0}), Line(points={{70.4,0},{100,0}}, color={0,0,127}), Text( extent={{8,-68},{42,-102}}, lineColor={0,0,0}, textString="s"), Line(points={{0,-99},{0,-60}}, color={0,0,127})})); end RelPositionSensor; model RelSpeedSensor "Ideal sensor to measure the relative speed" extends Translational.Interfaces.PartialRelativeSensor; SI.Position s_rel "Distance between the two flanges (flange_b.s - flange_a.s)"; Modelica.Blocks.Interfaces.RealOutput v_rel(unit="m/s") "Relative velocity between two flanges (= der(flange_b.s) - der(flange_a.s)) as output signal" annotation (Placement(transformation(extent={{-10,-10}, {10,10}}, rotation=270, origin={0,-110}))); equation s_rel = flange_b.s - flange_a.s; v_rel = der(s_rel); 0 = flange_a.f; annotation ( Documentation(info="<html> <p> Measures the <i>relative speed v</i> of a flange in an ideal way and provides the result as output signals (to be further processed with blocks of the Modelica.Blocks library). </p> </html>", revisions= "<html> <p><b>Release Notes:</b></p> <ul> <li><i>First Version from August 26, 1999 by P. Beater</i> </li> </ul> </html>"), Icon(coordinateSystem( preserveAspectRatio=true, extent={{-100,-100},{100,100}}), graphics={ Line(points={{-70,0},{-90,0}}, color={0,0,0}), Line(points={{70.4,0},{100,0}}, color={0,0,127}), Text( extent={{8,-68},{42,-102}}, lineColor={0,0,0}, textString="v"), Line(points={{0,-100},{0,-61}}, color={0,0,127})})); end RelSpeedSensor; model RelAccSensor "Ideal sensor to measure the relative acceleration" extends Translational.Interfaces.PartialRelativeSensor; SI.Position s_rel "Distance between the two flanges (flange_b.s - flange_a.s)"; SI.Velocity v_rel "Relative velocity between the two flanges (der(flange_b.s) - der(flange_a.s))"; Modelica.Blocks.Interfaces.RealOutput a_rel(unit="m/s2") "Relative acceleration between two flanges (= der(v_rel)) as output signal" annotation (Placement(transformation(extent={{-10,-10}, {10,10}}, rotation=270, origin={0,-110}))); equation s_rel = flange_b.s - flange_a.s; v_rel = der(s_rel); a_rel = der(v_rel); 0 = flange_a.f; annotation ( Documentation(info="<html> <p> Measures the <i>relative acceleration a</i> of a flange in an ideal way and provides the result as output signals (to be further processed with blocks of the Modelica.Blocks library). </p> </html>"), Icon(coordinateSystem( preserveAspectRatio=true, extent={{-100,-100},{100,100}}), graphics={ Line(points={{-70,0},{-90,0}}, color={0,0,0}), Line(points={{70.4,0},{100,0}}, color={0,0,127}), Text( extent={{7,-68},{41,-102}}, lineColor={0,0,0}, textString="a"), Line(points={{0,-99},{0,-60}}, color={0,0,127})})); end RelAccSensor; model ForceSensor "Ideal sensor to measure the force between two flanges" extends Translational.Interfaces.PartialRelativeSensor; Modelica.Blocks.Interfaces.RealOutput f(unit="N") "Force in flange_a and flange_b (f = flange_a.f = -flange_b.f) as output signal" annotation (Placement(transformation( origin={-80,-110}, extent={{10,-10},{-10,10}}, rotation=90))); equation flange_a.s = flange_b.s; flange_a.f = f; annotation ( Documentation(info="<html> <p> Measures the <i>cut-force between two flanges</i> in an ideal way and provides the result as output signal (to be further processed with blocks of the Modelica.Blocks library). </p> </html>"), Icon(coordinateSystem( preserveAspectRatio=true, extent={{-100,-100},{100,100}}), graphics={ Text( extent={{-40,-70},{40,-120}}, lineColor={0,0,0}, textString="f"), Line(points={{-70,0},{-90,0}}, color={0,0,0}), Line(points={{70,0},{90,0}}, color={0,0,0}), Line(points={{-80,-100},{-80,0}}, color={0,0,127})})); end ForceSensor; model PowerSensor "Ideal sensor to measure the power between two flanges (= flange_a.f*der(flange_a.s))" extends Translational.Interfaces.PartialRelativeSensor; Modelica.Blocks.Interfaces.RealOutput power(unit="W") "Power in flange flange_a as output signal" annotation (Placement(transformation( origin={-80,-110}, extent={{10,-10},{-10,10}}, rotation=90))); equation flange_a.s = flange_b.s; power = flange_a.f*der(flange_a.s); annotation ( Documentation(info="<html> <p> Measures the <b>power between two flanges</b> in an ideal way and provides the result as output signal <b>power</b> (to be further processed with blocks of the Modelica.Blocks library). </p> </html>"), Icon(coordinateSystem( preserveAspectRatio=true, extent={{-100,-100},{100,100}}), graphics={ Text( extent={{-75,-79},{67,-119}}, lineColor={0,0,0}, textString="power"), Line(points={{-70,0},{-90,0}}, color={0,0,0}), Line(points={{70,0},{90,0}}, color={0,0,0}), Line(points={{-80,-100},{-80,0}}, color={0,0,127})})); end PowerSensor; model MultiSensor "Ideal sensor to measure the absolute velocity, force and power between two flanges" extends Translational.Interfaces.PartialRelativeSensor; Modelica.Blocks.Interfaces.RealOutput power(unit="W") "Power in flange flange_a as output signal" annotation (Placement(transformation( origin={-60,-110}, extent={{10,-10},{-10,10}}, rotation=90))); Modelica.Blocks.Interfaces.RealOutput f(unit="N") "Force in flange_a and flange_b (f = flange_a.f = -flange_b.f) as output signal" annotation (Placement(transformation( extent={{10,-10},{-10,10}}, rotation=90, origin={0,-110}))); Modelica.Blocks.Interfaces.RealOutput v(unit="m/s") "Absolute velocity of flange as output signal as output signal" annotation (Placement(transformation( extent={{-10,-10},{10,10}}, rotation=-90, origin={60,-110}))); equation flange_a.s = flange_b.s; f = flange_a.f; v = der(flange_a.s); power = f*v; annotation ( Documentation(info="<html> <p> Measures the <b>absolute velocity</b> of a flange_a, the <b>cut-force</b> and <b>power</b> between two flanges in an ideal way and provides the results as output signals <b>v</b>, <b>f</b> and <b>power</b>, respectively. </p> </html>"), Icon(coordinateSystem( preserveAspectRatio=true, extent={{-100,-100},{100,100}}), graphics={ Text( extent={{-146,-70},{-56,-100}}, lineColor={0,0,0}, textString="power"), Line(points={{-70,0},{-90,0}}, color={0,0,0}), Line(points={{70,0},{90,0}}, color={0,0,0}), Line(points={{-60,-100},{-60,-60}}, color={0,0,127}), Text( extent={{-28,-71},{52,-101}}, lineColor={0,0,0}, textString="f"), Line(points={{0,-100},{0,-60}}, color={0,0,127}), Line(points={{60,-100},{60,-60}}, color={0,0,127}), Text( extent={{60,-70},{114,-101}}, lineColor={0,0,0}, textString="v")})); end MultiSensor; annotation ( Icon(coordinateSystem(preserveAspectRatio=true, extent={{-100,-100},{100, 100}}), graphics={ Line(points={{-56,-61},{-56,-81}}, color={0,0,0}), Line(points={{-36,-61},{-36,-81}}, color={0,0,0}), Line(points={{-16,-61},{-16,-81}}, color={0,0,0}), Line(points={{4,-61},{4,-81}}, color={0,0,0}), Line(points={{24,-61},{24,-81}}, color={0,0,0}), Line(points={{44,-61},{44,-81}}, color={0,0,0})}), Documentation(info="<html> <p> This package contains ideal sensor components that provide the connector variables as signals for further processing with the Modelica.Blocks library. </p> </html>")); end Sensors; package Sources "Sources to drive 1D translational mechanical components" extends Modelica.Icons.SourcesPackage; model Position "Forced movement of a flange according to a reference position" extends Modelica.Mechanics.Translational.Interfaces.PartialElementaryOneFlangeAndSupport2 ( s(stateSelect=if exact then StateSelect.default else StateSelect.prefer)); parameter Boolean exact=false "true/false exact treatment/filtering the input signal"; parameter SI.Frequency f_crit=50 "if exact=false, critical frequency of filter to filter input signal" annotation(Dialog(enable=not exact)); SI.Velocity v(start=0, stateSelect=if exact then StateSelect.default else StateSelect.prefer) "If exact=false, absolute velocity of flange_b else dummy"; SI.Acceleration a(start=0) "If exact=false, absolute acceleration of flange_b else dummy"; Modelica.Blocks.Interfaces.RealInput s_ref(unit="m") "Reference position of flange as input signal" annotation (Placement( transformation(extent={{-140,-20},{-100,20}}, rotation=0))); protected parameter Modelica.SIunits.AngularFrequency w_crit=2*Modelica.Constants.pi*f_crit "Critical frequency"; constant Real af=1.3617 "s coefficient of Bessel filter"; constant Real bf=0.6180 "s*s coefficient of Bessel filter"; initial equation if not exact then s = s_ref; end if; equation if exact then s = s_ref; v = 0; a = 0; else // Filter: a = s_ref*S^2/(1 + (af/w_crit)*S + (bf/w_crit^2)*S^2) v = der(s); a = der(v); a = ((s_ref - s)*w_crit - af*v)*(w_crit/bf); end if; annotation ( Documentation(info="<HTML> <p> The input signal <b>s_ref</b> defines the <b>reference position</b> in [m]. Flange <b>flange_b</b> is <b>forced</b> to move relative to the support connector according to this reference motion. According to parameter <b>exact</b> (default = <b>false</b>), this is done in the following way: <ol> <li><b>exact=true</b><br> The reference position is treated <b>exactly</b>. This is only possible, if the input signal is defined by an analytical function which can be differentiated at least twice. If this prerequisite is fulfilled, the Modelica translator will differentiate the input signal twice in order to compute the reference acceleration of the flange.</li> <li><b>exact=false</b><br> The reference position is <b>filtered</b> and the second derivative of the filtered curve is used to compute the reference acceleration of the flange. This second derivative is <b>not</b> computed by numerical differentiation but by an appropriate realization of the filter. For filtering, a second order Bessel filter is used. The critical frequency (also called cut-off frequency) of the filter is defined via parameter <b>f_crit</b> in [Hz]. This value should be selected in such a way that it is higher as the essential low frequencies in the signal.</li> </ol> <p> The input signal can be provided from one of the signal generator blocks of the block library Modelica.Blocks.Sources. </p> </html>"), Icon(coordinateSystem( preserveAspectRatio=true, extent={{-100,-100},{100,100}}), graphics={ Text( extent={{-56,-36},{-178,-66}}, lineColor={0,0,0}, textString="s_ref"), Rectangle( extent={{-100,20},{100,-20}}, lineColor={0,127,0}, fillColor={215,215,215}, fillPattern=FillPattern.Solid), Text( extent={{150,60},{-150,100}}, textString="%name", lineColor={0,0,255}), Line(points={{0,52},{0,32}}, color={0,0,0}), Line(points={{-29,32},{30,32}}, color={0,0,0}), Line(points={{-30,-32},{30,-32}}, color={0,0,0}), Line(points={{0,-32},{0,-100}}, color={0,0,0}), Line(points={{30,-42},{20,-52}}, color={0,0,0}), Line(points={{30,-32},{10,-52}}, color={0,0,0}), Line(points={{20,-32},{0,-52}}, color={0,0,0}), Line(points={{10,-32},{-10,-52}}, color={0,0,0}), Line(points={{0,-32},{-20,-52}}, color={0,0,0}), Line(points={{-10,-32},{-30,-52}}, color={0,0,0}), Line(points={{-20,-32},{-30,-42}}, color={0,0,0}), Text( extent={{144,-30},{30,-60}}, lineColor={0,0,0}, textString="exact="), Text( extent={{134,-68},{22,-96}}, lineColor={0,0,0}, textString="%exact")})); end Position; model Speed "Forced movement of a flange according to a reference speed" extends Modelica.Mechanics.Translational.Interfaces.PartialElementaryOneFlangeAndSupport2 ( s(start=0, fixed=true, stateSelect=StateSelect.prefer)); parameter Boolean exact=false "true/false exact treatment/filtering the input signal"; parameter SI.Frequency f_crit=50 "if exact=false, critical frequency of filter to filter input signal" annotation(Dialog(enable=not exact)); SI.Velocity v(stateSelect=if exact then StateSelect.default else StateSelect.prefer) "Absolute velocity of flange_b"; SI.Acceleration a "If exact=false, absolute acceleration of flange_b else dummy"; Modelica.Blocks.Interfaces.RealInput v_ref(unit="m/s") "Reference speed of flange as input signal" annotation (Placement( transformation(extent={{-140,-20},{-100,20}}, rotation=0))); protected parameter Modelica.SIunits.AngularFrequency w_crit=2*Modelica.Constants.pi*f_crit "Critical frequency"; initial equation if not exact then v = v_ref; end if; equation v = der(s); if exact then v = v_ref; a = 0; else // Filter: a = v_ref/(1 + (1/w_crit)*s) a = der(v); a = (v_ref - v)*w_crit; end if; annotation ( Documentation(info="<HTML> <p> The input signal <b>v_ref</b> defines the <b>reference speed</b> in [m/s]. Flange <b>flange_b</b> is <b>forced</b> to move relative to the support connector according to this reference motion. According to parameter <b>exact</b> (default = <b>false</b>), this is done in the following way: <ol> <li><b>exact=true</b><br> The reference speed is treated <b>exactly</b>. This is only possible, if the input signal is defined by an analytical function which can be differentiated at least once. If this prerequisite is fulfilled, the Modelica translator will differentiate the input signal once in order to compute the reference acceleration of the flange.</li> <li><b>exact=false</b><br> The reference speed is <b>filtered</b> and the first derivative of the filtered curve is used to compute the reference acceleration of the flange. This first derivative is <b>not</b> computed by numerical differentiation but by an appropriate realization of the filter. For filtering, a first order filter is used. The critical frequency (also called cut-off frequency) of the filter is defined via parameter <b>f_crit</b> in [Hz]. This value should be selected in such a way that it is higher as the essential low frequencies in the signal.</li> </ol> <p> The input signal can be provided from one of the signal generator blocks of the block library Modelica.Blocks.Sources. </p> </html>"), Icon(coordinateSystem( preserveAspectRatio=true, extent={{-100,-100},{100,100}}), graphics={ Text( extent={{-54,-36},{-174,-68}}, lineColor={0,0,0}, textString="v_ref"), Line(points={{-30,-32},{30,-32}}, color={0,0,0}), Line(points={{0,-32},{0,-100}}, color={0,0,0}), Line(points={{30,-42},{20,-52}}, color={0,0,0}), Line(points={{30,-32},{10,-52}}, color={0,0,0}), Line(points={{20,-32},{0,-52}}, color={0,0,0}), Line(points={{10,-32},{-10,-52}}, color={0,0,0}), Line(points={{0,-32},{-20,-52}}, color={0,0,0}), Line(points={{-10,-32},{-30,-52}}, color={0,0,0}), Line(points={{-20,-32},{-30,-42}}, color={0,0,0}), Rectangle( extent={{-100,20},{100,-20}}, lineColor={0,127,0}, fillColor={215,215,215}, fillPattern=FillPattern.Solid), Line(points={{-29,32},{30,32}}, color={0,0,0}), Line(points={{0,52},{0,32}}, color={0,0,0}), Text( extent={{150,60},{-150,100}}, textString="%name", lineColor={0,0,255}), Text( extent={{146,-38},{32,-64}}, lineColor={0,0,0}, textString="exact="), Text( extent={{140,-76},{22,-102}}, lineColor={0,0,0}, textString="%exact")})); end Speed; model Accelerate "Forced movement of a flange according to an acceleration signal" extends Modelica.Mechanics.Translational.Interfaces.PartialElementaryOneFlangeAndSupport2 (s(start=0, fixed=true, stateSelect=StateSelect.prefer)); SI.Velocity v(start=0, fixed=true, stateSelect=StateSelect.prefer) "Absolute velocity of flange_b"; SI.Acceleration a "Absolute acceleration of flange_b"; Modelica.Blocks.Interfaces.RealInput a_ref(unit="m/s2") "Absolute acceleration of flange as input signal" annotation (Placement(transformation(extent={{-140,-20},{-100,20}}, rotation=0))); equation v = der(s); a = der(v); a = a_ref; annotation ( Documentation(info="<html> <p> The input signal <b>a</b> in [m/s2] moves the 1D translational flange connector flange_b with a predefined <i>acceleration</i>, i.e., the flange is <i>forced</i> to move relative to the support connector with this acceleration. The velocity and the position of the flange are also predefined and are determined by integration of the acceleration. </p> <p> The acceleration \"a(t)\" can be provided from one of the signal generator blocks of the block library Modelica.Blocks.Source. </p> </html>"), Icon(coordinateSystem( preserveAspectRatio=true, extent={{-100,-100},{100,100}}), graphics={ Text( extent={{-56,-40},{-166,-68}}, lineColor={0,0,0}, textString="a_ref"), Line(points={{-30,-32},{30,-32}}, color={0,0,0}), Line(points={{0,-32},{0,-100}}, color={0,0,0}), Line(points={{30,-42},{20,-52}}, color={0,0,0}), Line(points={{30,-32},{10,-52}}, color={0,0,0}), Line(points={{20,-32},{0,-52}}, color={0,0,0}), Line(points={{10,-32},{-10,-52}}, color={0,0,0}), Line(points={{0,-32},{-20,-52}}, color={0,0,0}), Line(points={{-10,-32},{-30,-52}}, color={0,0,0}), Line(points={{-20,-32},{-30,-42}}, color={0,0,0}), Rectangle( extent={{-100,20},{100,-20}}, lineColor={0,127,0}, fillColor={215,215,215}, fillPattern=FillPattern.Solid), Line(points={{-29,32},{30,32}}, color={0,0,0}), Line(points={{0,52},{0,32}}, color={0,0,0}), Text( extent={{150,60},{-150,100}}, textString="%name", lineColor={0,0,255})})); end Accelerate; model Move "Forced movement of a flange according to a position, velocity and acceleration signal" extends Modelica.Mechanics.Translational.Interfaces.PartialElementaryOneFlangeAndSupport2; Modelica.Blocks.Interfaces.RealInput u[3] "Position, velocity and acceleration of flange as input signals" annotation (Placement(transformation(extent={{-140,-20},{-100,20}}, rotation=0))); protected function position extends Modelica.Icons.Function; input Real q_qd_qdd[3] "Required values for position, speed, acceleration"; input Real dummy "Just to have one input signal that should be differentiated to avoid possible problems in the Modelica tool (is not used)"; output Real q; algorithm q :=q_qd_qdd[1]; annotation (derivative(noDerivative=q_qd_qdd) = position_der, InlineAfterIndexReduction=true); end position; function position_der extends Modelica.Icons.Function; input Real q_qd_qdd[3] "Required values for position, speed, acceleration"; input Real dummy "Just to have one input signal that should be differentiated to avoid possible problems in the Modelica tool (is not used)"; input Real dummy_der; output Real qd; algorithm qd :=q_qd_qdd[2]; annotation (derivative(noDerivative=q_qd_qdd, order=2) = position_der2, InlineAfterIndexReduction=true); end position_der; function position_der2 extends Modelica.Icons.Function; input Real q_qd_qdd[3] "Required values for position, speed, acceleration"; input Real dummy "Just to have one input signal that should be differentiated to avoid possible problems in the Modelica tool (is not used)"; input Real dummy_der; input Real dummy_der2; output Real qdd; algorithm qdd :=q_qd_qdd[3]; end position_der2; equation s = position(u,time); annotation ( Documentation(info="<html> <p> Flange <b>flange_b</b> is <b>forced</b> to move relative to the support connector with a predefined motion according to the input signals: </p> <pre> u[1]: position of flange u[2]: velocity of flange u[3]: acceleration of flange </pre> <p> The user has to guarantee that the input signals are consistent to each other, i.e., that u[2] is the derivative of u[1] and that u[3] is the derivative of u. There are, however, also applications where by purpose these conditions do not hold. For example, if only the position dependent terms of a mechanical system shall be calculated, one may provide position = position(t) and set the velocity and the acceleration to zero. </p> <p> The input signals can be provided from one of the signal generator blocks of the block library Modelica.Blocks.Sources. </p> </html>"), Icon(coordinateSystem( preserveAspectRatio=true, extent={{-100,-100},{100,100}}), graphics={ Text( extent={{-192,-38},{-32,-70}}, lineColor={0,0,0}, textString="s,v,a"), Line(points={{-30,-32},{30,-32}}, color={0,0,0}), Line(points={{0,-32},{0,-100}}, color={0,0,0}), Line(points={{30,-42},{20,-52}}, color={0,0,0}), Line(points={{30,-32},{10,-52}}, color={0,0,0}), Line(points={{20,-32},{0,-52}}, color={0,0,0}), Line(points={{10,-32},{-10,-52}}, color={0,0,0}), Line(points={{0,-32},{-20,-52}}, color={0,0,0}), Line(points={{-10,-32},{-30,-52}}, color={0,0,0}), Line(points={{-20,-32},{-30,-42}}, color={0,0,0}), Rectangle( extent={{-100,20},{100,-20}}, lineColor={0,127,0}, fillColor={215,215,215}, fillPattern=FillPattern.Solid), Line(points={{0,52},{0,32}}, color={0,0,0}), Line(points={{-29,32},{30,32}}, color={0,0,0}), Text( extent={{150,60},{-150,100}}, textString="%name", lineColor={0,0,255})})); end Move; model Force "External force acting on a drive train element as input signal" extends Modelica.Mechanics.Translational.Interfaces.PartialElementaryOneFlangeAndSupport2; Modelica.Blocks.Interfaces.RealInput f(unit="N") "Driving force as input signal" annotation (Placement(transformation( extent={{-140,-20},{-100,20}}, rotation=0))); equation flange.f = -f; annotation ( Documentation(info="<html> <p> The input signal \"f\" in [N] characterizes an <i>external force</i> which acts (with positive sign) at a flange, i.e., the component connected to the flange is driven by force f. </p> <p> Input signal f can be provided from one of the signal generator blocks of Modelica.Blocks.Source. </p> </html>"), Icon(coordinateSystem( preserveAspectRatio=true, extent={{-100,-100},{100,100}}), graphics={ Polygon( points={{-100,10},{20,10},{20,41},{90,0},{20,-41},{20,-10},{-100, -10},{-100,10}}, lineColor={0,127,0}, fillColor={215,215,215}, fillPattern=FillPattern.Solid), Text( extent={{-150,-32},{-80,-62}}, lineColor={0,0,0}, textString="f"), Text( extent={{-150,90},{150,50}}, textString="%name", lineColor={0,0,255}), Line(points={{-30,-60},{30,-60}}, color={0,0,0}), Line(points={{0,-60},{0,-101}}, color={0,0,0}), Line(points={{-30,-80},{-10,-60}}, color={0,0,0}), Line(points={{-10,-80},{10,-60}}, color={0,0,0}), Line(points={{10,-80},{30,-60}}, color={0,0,0}), Polygon( points={{-61,-50},{-30,-40},{-30,-60},{-61,-50}}, lineColor={0,0,0}, fillColor={128,128,128}, fillPattern=FillPattern.Solid), Line(points={{-31,-50},{50,-50}}, color={0,0,0}), Line(points={{-50,-80},{-30,-60}}, color={0,0,0})})); end Force; model Force2 "Input signal acting as torque on two flanges" extends Translational.Interfaces.PartialTwoFlanges; Modelica.Blocks.Interfaces.RealInput f(unit="N") "Driving force as input signal" annotation (Placement(transformation( extent={{-20,-20},{20,20}}, rotation=270, origin={0,60}), iconTransformation( extent={{-20,-20},{20,20}}, rotation=270, origin={0,40}))); equation flange_a.f = f; flange_b.f = -f; annotation ( Documentation(info="<html> <p> The input signal \"f\" in [N] characterizes an <i>external force</i> which acts (with positive sign) at both flanges, i.e., the components connected to these flanges are driven by force f. </p> <p> Input signal s can be provided from one of the signal generator blocks of Modelica.Blocks.Source. </p> </html>"), Icon(coordinateSystem( preserveAspectRatio=true, extent={{-100,-100},{100,100}}), graphics={ Text( extent={{-150,-40},{150,-80}}, textString="%name", lineColor={0,0,255}), Polygon( points={{90,0},{60,-30},{60,-10},{10,-10},{10,10},{60,10},{60,31}, {90,0}}, lineColor={0,127,0}, smooth=Smooth.None, fillColor={215,215,215}, fillPattern=FillPattern.Solid), Polygon( points={{-90,0},{-60,30},{-60,10},{-10,10},{-10,-10},{-60,-10},{-60, -30},{-90,0}}, lineColor={0,127,0}, smooth=Smooth.None, fillColor={215,215,215}, fillPattern=FillPattern.Solid)})); end Force2; model LinearSpeedDependentForce "Linear dependency of force versus speed" extends Modelica.Mechanics.Translational.Interfaces.PartialForce; parameter Modelica.SIunits.Force f_nominal "Nominal force (if negative, force is acting as load)"; parameter Boolean ForceDirection=true "Same direction of force in both directions of movement"; parameter Modelica.SIunits.Velocity v_nominal(min=Modelica.Constants.eps) "Nominal speed"; Modelica.SIunits.Velocity v "Velocity of flange with respect to support (= der(s))"; equation v = der(s); if ForceDirection then f = -f_nominal*abs(v/v_nominal); else f = -f_nominal*(v/v_nominal); end if; annotation (Icon(coordinateSystem(preserveAspectRatio=true, extent={{-100, -100},{100,100}}), graphics={Line(points={{-100,-100},{100,100}}, color={0,0,255})}), Documentation(info="<HTML> <p> Model of force, linearly dependent on velocity of flange.<br> Parameter ForceDirection chooses whether direction of force is the same in both directions of movement or not. </p> </HTML>")); end LinearSpeedDependentForce; model QuadraticSpeedDependentForce "Quadratic dependency of force versus speed" extends Modelica.Mechanics.Translational.Interfaces.PartialForce; parameter Modelica.SIunits.Force f_nominal "Nominal force (if negative, force is acting as load)"; parameter Boolean ForceDirection=true "Same direction of force in both directions of movement"; parameter Modelica.SIunits.Velocity v_nominal(min=Modelica.Constants.eps) "Nominal speed"; Modelica.SIunits.Velocity v "Velocity of flange with respect to support (= der(s))"; equation v = der(s); if ForceDirection then f = -f_nominal*(v/v_nominal)^2; else f = -f_nominal*smooth(1, if v >= 0 then (v/v_nominal)^2 else -(v/v_nominal)^2); end if; annotation (Icon(coordinateSystem(preserveAspectRatio=true, extent={{-100,-100},{100,100}}), graphics={ Line(points={{-100,-100},{-80,-98},{-60,-92},{-40,-82},{-20,-68},{0,-50},{20,-28},{40,-2},{60,28},{80,62},{100,100}}, color={0,0,127}, smooth=Smooth.Bezier)}),Documentation(info="<HTML> <p> Model of force, quadratic dependent on velocity of flange.<br> Parameter ForceDirection chooses whether direction of force is the same in both directions of movement or not. </p> </HTML>")); end QuadraticSpeedDependentForce; model ConstantForce "Constant force, not dependent on speed" extends Modelica.Mechanics.Translational.Interfaces.PartialForce; parameter Modelica.SIunits.Force f_constant "Nominal force (if negative, force is acting as load)"; equation f = -f_constant; annotation (Icon(coordinateSystem(preserveAspectRatio=true, extent={{-100, -100},{100,100}}), graphics={Line(points={{-100,0},{98,0}}, color={0,0,255}), Text( extent={{-118,58},{126,34}}, lineColor={0,0,0}, textString="%f_constant")}), Documentation(info="<HTML> <p> Model of constant force, not dependent on velocity of flange.<br> Positive force acts accelerating. </p> </HTML>")); end ConstantForce; model ConstantSpeed "Constant speed, not dependent on force" extends Modelica.Mechanics.Translational.Interfaces.PartialForce; parameter Modelica.SIunits.Velocity v_fixed "Fixed speed (if negative, force is acting as load)"; Modelica.SIunits.Velocity v "Velocity of flange with respect to support (= der(s))"; equation v = der(s); v = v_fixed; annotation (Icon(coordinateSystem(preserveAspectRatio=true, extent={{-100, -100},{100,100}}), graphics={Line(points={{0,-100},{0,100}}, color={0,0,255}), Text( extent={{-120,60},{124,36}}, lineColor={0,0,0}, textString="%v_fixed")}), Documentation(info="<HTML> <p> Model of <b>fixed</b> velocity of flange, not dependent on force. </p> </HTML>")); end ConstantSpeed; model ForceStep "Constant force, not dependent on speed" extends Modelica.Mechanics.Translational.Interfaces.PartialForce; parameter Modelica.SIunits.Force stepForce(start=1) "Height of force step (if negative, force is acting as load)"; parameter Modelica.SIunits.Force offsetForce(start=0) "Offset of force"; parameter Modelica.SIunits.Time startTime=0 "Force = offset for time < startTime"; equation f = -offsetForce - (if time < startTime then 0 else stepForce); annotation (Icon(coordinateSystem(preserveAspectRatio=true, extent={{-100, -100},{100,100}}), graphics={Line(points={{-80,-60},{0,-60},{0, 60},{80,60}}, color={0,0,255}), Text( extent={{0,-40},{100,-60}}, lineColor={0,0,0}, textString="time")}), Documentation(info="<HTML> <p> Model of a force step at time .<br> Positive force acts accelerating. </p> </HTML>")); end ForceStep; annotation ( Documentation(info="<html> <p> This package contains ideal sources to drive 1D mechanical translational drive trains. </p> </html>")); end Sources; package Interfaces "Interfaces for 1-dim. translational mechanical components" extends Modelica.Icons.InterfacesPackage; connector Flange_a "(left) 1D translational flange (flange axis directed INTO cut plane, e. g. from left to right)" SI.Position s "Absolute position of flange"; flow SI.Force f "Cut force directed into flange"; annotation(defaultComponentName = "flange_a", Documentation(info="<html> <p> This is a flange for 1D translational mechanical systems. In the cut plane of the flange a unit vector n, called flange axis, is defined which is directed INTO the cut plane, i. e. from left to right. All vectors in the cut plane are resolved with respect to this unit vector. E.g. force f characterizes a vector which is directed in the direction of n with value equal to f. When this flange is connected to other 1D translational flanges, this means that the axes vectors of the connected flanges are identical. </p> <p> The following variables are transported through this connector: </p> <pre> s: Absolute position of the flange in [m]. A positive translation means that the flange is translated along the flange axis. f: Cut-force in direction of the flange axis in [N]. </pre> </html>"), Icon(coordinateSystem(preserveAspectRatio=true, extent={{-100,-100},{ 100,100}}), graphics={Rectangle( extent={{-100,-100},{100,100}}, lineColor={0,127,0}, fillColor={0,127,0}, fillPattern=FillPattern.Solid)}), Diagram(coordinateSystem(preserveAspectRatio=true, extent={{-100,-100}, {100,100}}), graphics={Rectangle( extent={{-40,-40},{40,40}}, lineColor={0,127,0}, fillColor={0,127,0}, fillPattern=FillPattern.Solid), Text( extent={{-160,110},{40,50}}, lineColor={0,127,0}, textString="%name")})); end Flange_a; connector Flange_b "(right) 1D translational flange (flange axis directed OUT OF cut plane)" SI.Position s "Absolute position of flange"; flow SI.Force f "Cut force directed into flange"; annotation(defaultComponentName = "flange_b", Documentation(info="<html> <p> This is a flange for 1D translational mechanical systems. In the cut plane of the flange a unit vector n, called flange axis, is defined which is directed OUT OF the cut plane. All vectors in the cut plane are resolved with respect to this unit vector. E.g. force f characterizes a vector which is directed in the direction of n with value equal to f. When this flange is connected to other 1D translational flanges, this means that the axes vectors of the connected flanges are identical. </p> <p> The following variables are transported through this connector: <pre> s: Absolute position of the flange in [m]. A positive translation means that the flange is translated along the flange axis. f: Cut-force in direction of the flange axis in [N]. </pre> </html>"), Icon(coordinateSystem(preserveAspectRatio=true, extent={{-100,-100},{100,100}}), graphics={ Rectangle( extent={{-100,-100},{100,100}}, lineColor={0,127,0}, fillColor={255,255,255}, fillPattern=FillPattern.Solid)}), Diagram(coordinateSystem( preserveAspectRatio=true, extent={{-100,-100},{100,100}}), graphics={Rectangle( extent={{-40,-40},{40,40}}, lineColor={0,127,0}, fillColor={255,255,255}, fillPattern=FillPattern.Solid), Text( extent={{-40,110},{160,50}}, lineColor={0,127,0}, textString="%name")})); end Flange_b; connector Support "Support/housing 1D translational flange" SI.Position s "Absolute position of flange"; flow SI.Force f "Cut force directed into flange"; annotation (Diagram(coordinateSystem(preserveAspectRatio=true, extent={{-100, -100},{100,100}}), graphics={ Rectangle( extent={{-60,60},{60,-60}}, fillColor={175,175,175}, fillPattern=FillPattern.Solid, pattern=LinePattern.None), Text( extent={{-160,110},{40,50}}, lineColor={0,127,0}, textString="%name"), Rectangle( extent={{-40,-40},{40,40}}, lineColor={0,127,0}, fillColor={0,127,0}, fillPattern=FillPattern.Solid)}), Icon(coordinateSystem( preserveAspectRatio=true, extent={{-100,-100},{100,100}}), graphics={Rectangle( extent={{-150,150},{150,-150}}, fillColor={175,175,175}, fillPattern=FillPattern.Solid, pattern=LinePattern.None), Rectangle( extent={{-90,-90},{90,90}}, lineColor={0,127,0}, fillColor={0,127,0}, fillPattern=FillPattern.Solid)}), Documentation(info="<html> <p>This is a connector for 1-dim. rotational mechanical systems and models the support or housing of a shaft. The following variables are defined in this connector:</p> <table cellspacing=\"0\" cellpadding=\"2\" border=\"1\"><tr> <td valign=\"top\"><h4>s</h4></td> <td valign=\"top\"><p>Absolute position of the support/housing in [m]</p></td> </tr> <tr> <td valign=\"top\"><h4>f</h4></td> <td valign=\"top\"><p>Reaction force in the support/housing in [N]</p></td> </tr> </table> <p><br/>The support connector is usually defined as conditional connector. It is most convenient to utilize it</p> <ul> <li>For models to be build graphically (i.e., the model is build up by drag-and-drop from elementary components):<br/><a href=\"modelica://Modelica.Mechanics.Translational.Interfaces.PartialOneFlangeAndSupport\">PartialOneFlangeAndSupport</a>,<br/><a href=\"modelica://Modelica.Mechanics.Translational.Interfaces.PartialTwoFlangesAndSupport\">PartialTwoFlangesAndSupport</a>, <br/>&nbsp; </li> <li>For models to be build textually (i.e., elementary models):<br/><a href=\"modelica://Modelica.Mechanics.Translational.Interfaces.PartialElementaryOneFlangeAndSupport\">PartialElementaryOneFlangeAndSupport</a>,<br/><a href=\"modelica://Modelica.Mechanics.Translational.Interfaces.PartialElementaryTwoFlangesAndSupport\">PartialElementaryTwoFlangesAndSupport</a>,<br/><a href=\"modelica://Modelica.Mechanics.Translational.Interfaces.PartialElementaryRotationalToTranslational\">PartialElementaryRotationalToTranslational</a>. </li> </ul> </html>")); end Support; model InternalSupport "Adapter model to utilize conditional support connector" input SI.Force f "External support force (must be computed via force balance in model where InternalSupport is used; = flange.f)"; SI.Position s "External support position (= flange.s)"; Flange_a flange "Internal support flange (must be connected to the conditional support connector for useSupport=true and to conditional fixed model for useSupport=false)" annotation (Placement(transformation(extent={{-10,-10},{10,10}}))); equation flange.f = f; flange.s = s; annotation ( Icon(coordinateSystem( preserveAspectRatio=true, extent={{-100,-100},{100,100}}), graphics={Text( extent={{-200,80},{200,40}}, lineColor={0,0,255}, textString="%name"), Rectangle( extent={{-20,20},{20,-20}}, lineColor={0,127,0}, fillColor={175,175,175}, fillPattern=FillPattern.Solid)}), Documentation(info="<html> <p> This is an adapter model to utilize a conditional support connector in an elementary component, i.e., where the component equations are defined textually: </p> <ul> <li> If <i>useSupport = true</i>, the flange has to be connected to the conditional support connector.</li> <li> If <i>useSupport = false</i>, the flange has to be connected to the conditional fixed model.</li> </ul> <p> Variable <b>f</b> is defined as <b>input</b> and must be provided when using this component as a modifier (computed via a force balance in the model where InternalSupport is used). Usually, model InternalSupport is utilized via the partial models: </p> <blockquote> <a href=\"modelica://Modelica.Mechanics.Translational.Interfaces.PartialElementaryOneFlangeAndSupport\"> PartialElementaryOneFlangeAndSupport</a>,<br> <a href=\"modelica://Modelica.Mechanics.Translational.Interfaces.PartialElementaryTwoFlangesAndSupport\"> PartialElementaryTwoFlangesAndSupport</a>,<br> <a href=\"modelica://Modelica.Mechanics.Translational.Interfaces.PartialElementaryRotationalToTranslational\"> PartialElementaryRotationalToTranslational</a>. </blockquote> <p> Note, the support position can always be accessed as internalSupport.s, and the support force can always be accessed as internalSupport.f. </p> </html>")); end InternalSupport; partial model PartialTwoFlanges "Component with two translational 1D flanges" Flange_a flange_a "(left) driving flange (flange axis directed in to cut plane, e. g. from left to right)" annotation (Placement(transformation(extent={{-110,-10},{-90,10}}, rotation=0))); Flange_b flange_b "(right) driven flange (flange axis directed out of cut plane)" annotation (Placement(transformation(extent={{90,-10},{110,10}}, rotation=0))); annotation ( Documentation(info="<html> <p> This is a 1D translational component with two flanges. It is used e.g., to built up parts of a drive train consisting of several base components. </p> </html>")); end PartialTwoFlanges; partial model PartialOneFlangeAndSupport "Partial model for a component with one translational 1-dim. shaft flange and a support used for graphical modeling, i.e., the model is build up by drag-and-drop from elementary components" parameter Boolean useSupport=false "= true, if support flange enabled, otherwise implicitly grounded" annotation(Evaluate=true, HideResult=true, choices(checkBox=true)); Flange_b flange "Flange of component" annotation (Placement(transformation(extent={{90,-10},{110,10}}, rotation=0))); Support support if useSupport "Support/housing of component" annotation (Placement(transformation(extent={{-10,-110},{10,-90}}))); protected Support internalSupport "Internal support/housing of component (either connected to support, if useSupport=true, or connected to fixed, if useSupport=false)" annotation (Placement(transformation(extent={{-3,-83},{3,-77}}))); Components.Fixed fixed if not useSupport "Fixed support/housing, if not useSupport" annotation (Placement(transformation(extent={{10,-94},{30,-74}}))); equation connect(fixed.flange, internalSupport) annotation (Line( points={{20,-84},{20,-80},{0,-80}}, color={0,127,0}, smooth=Smooth.None)); connect(internalSupport, support) annotation (Line( points={{0,-80},{0,-100}}, pattern=LinePattern.None, smooth=Smooth.None)); annotation ( Documentation(info="<html> <p> This is a 1-dim. translational component with one flange and a support/housing. It is used e.g., to build up parts of a drive train graphically consisting of several components. </p> <p> If <i>useSupport=true</i>, the support connector is conditionally enabled and needs to be connected.<br> If <i>useSupport=false</i>, the support connector is conditionally disabled and instead the component is internally fixed to ground. </p> </html>"), Diagram(coordinateSystem( preserveAspectRatio=true, extent={{-100,-100},{100,100}}), graphics={Text( extent={{-38,-98},{-6,-96}}, lineColor={95,95,95}, textString="(if useSupport)"), Text( extent={{21,-95},{61,-96}}, lineColor={95,95,95}, textString="(if not useSupport)")}), Icon(coordinateSystem(preserveAspectRatio=true, extent={{-100,-100},{ 100,100}}), graphics={ Line( visible=not useSupport, points={{-50,-120},{-30,-100}}, color={0,0,0}), Line( visible=not useSupport, points={{-30,-120},{-10,-100}}, color={0,0,0}), Line( visible=not useSupport, points={{-10,-120},{10,-100}}, color={0,0,0}), Line( visible=not useSupport, points={{10,-120},{30,-100}}, color={0,0,0}), Line( visible=not useSupport, points={{-30,-100},{30,-100}}, color={0,0,0})})); end PartialOneFlangeAndSupport; partial model PartialTwoFlangesAndSupport "Partial model for a component with two translational 1-dim. shaft flanges and a support used for graphical modeling, i.e., the model is build up by drag-and-drop from elementary components" parameter Boolean useSupport=false "= true, if support flange enabled, otherwise implicitly grounded" annotation(Evaluate=true, HideResult=true, choices(checkBox=true)); Flange_a flange_a "Flange of left end" annotation (Placement(transformation(extent={{-110,-10}, {-90,10}}, rotation=0))); Flange_b flange_b "Flange of right end" annotation (Placement(transformation(extent={{90,-10},{110,10}}, rotation=0))); Support support if useSupport "Support/housing of component" annotation (Placement(transformation(extent={{-10,-110},{10,-90}}))); protected Support internalSupport "Internal support/housing of component (either connected to support, if useSupport=true, or connected to fixed, if useSupport=false)" annotation (Placement(transformation(extent={{-3,-83},{3,-77}}))); Components.Fixed fixed if not useSupport "Fixed support/housing, if not useSupport" annotation (Placement(transformation(extent={{10,-97},{30,-77}}))); equation connect(fixed.flange, internalSupport) annotation (Line( points={{20,-87},{20,-80},{0,-80}}, color={0,127,0}, smooth=Smooth.None)); connect(internalSupport, support) annotation (Line( points={{0,-80},{0,-100}}, pattern=LinePattern.None, smooth=Smooth.None)); annotation ( Documentation(info="<html> <p> This is a 1-dim. translational component with two flanges and a support/housing. It is used e.g., to build up parts of a drive train graphically consisting of several components. </p> <p> If <i>useSupport=true</i>, the support connector is conditionally enabled and needs to be connected.<br> If <i>useSupport=false</i>, the support connector is conditionally disabled and instead the component is internally fixed to ground. </p> </html>"), Diagram(coordinateSystem( preserveAspectRatio=true, extent={{-100,-100},{100,100}}), graphics={Text( extent={{-38,-98},{-6,-96}}, lineColor={95,95,95}, textString="(if useSupport)"), Text( extent={{24,-97},{64,-98}}, lineColor={95,95,95}, textString="(if not useSupport)")}), Icon(coordinateSystem(preserveAspectRatio=true, extent={{-100,-100},{ 100,100}}), graphics={ Line( visible=not useSupport, points={{-50,-120},{-30,-100}}, color={0,0,0}), Line( visible=not useSupport, points={{-30,-120},{-10,-100}}, color={0,0,0}), Line( visible=not useSupport, points={{-10,-120},{10,-100}}, color={0,0,0}), Line( visible=not useSupport, points={{10,-120},{30,-100}}, color={0,0,0}), Line( visible=not useSupport, points={{-30,-100},{30,-100}}, color={0,0,0})})); end PartialTwoFlangesAndSupport; partial model PartialRigid "Rigid connection of two translational 1D flanges" SI.Position s "Absolute position of center of component (s = flange_a.s + L/2 = flange_b.s - L/2)"; parameter SI.Length L(start=0) "Length of component, from left flange to right flange (= flange_b.s - flange_a.s)"; Flange_a flange_a "Left flange of translational component" annotation (Placement(transformation(extent={{-110,-10},{-90,10}}, rotation=0))); Flange_b flange_b "Right flange of translational component" annotation (Placement(transformation(extent={{90,-10},{110,10}}, rotation=0))); equation flange_a.s = s - L/2; flange_b.s = s + L/2; annotation ( Documentation(info="<html> <p> This is a 1-dim. translational component with two <i>rigidly</i> connected flanges. The fixed distance between the left and the right flange is defined by parameter \"L\". The forces at the right and left flange can be different. It is used e.g., to built up sliding masses. </p> </html>")); end PartialRigid; partial model PartialCompliant "Compliant connection of two translational 1D flanges" Flange_a flange_a "Left flange of compliant 1-dim. translational component" annotation (Placement(transformation(extent={{-110,-10},{-90,10}}, rotation=0))); Flange_b flange_b "Right flange of compliant 1-dim. translational component" annotation (Placement(transformation(extent={{90,-10},{110,10}}, rotation=0))); SI.Position s_rel(start=0) "Relative distance (= flange_b.s - flange_a.s)"; SI.Force f "Force between flanges (positive in direction of flange axis R)"; equation s_rel = flange_b.s - flange_a.s; flange_b.f = f; flange_a.f = -f; annotation ( Documentation(info="<html> <p> This is a 1D translational component with a <i>compliant </i>connection of two translational 1D flanges where inertial effects between the two flanges are not included. The absolute value of the force at the left and the right flange is the same. It is used to built up springs, dampers etc. </p> </html>"), Diagram(coordinateSystem( preserveAspectRatio=true, extent={{-100,-100},{100,100}}), graphics={Polygon( points={{50,-90},{20,-80},{20,-100},{50,-90}}, lineColor={128,128,128}, fillColor={128,128,128}, fillPattern=FillPattern.Solid), Line(points={{-60,-90},{20,-90}}, color={0,0,0})})); end PartialCompliant; partial model PartialCompliantWithRelativeStates "Base model for the compliant connection of two translational 1-dim. shaft flanges where the relative position and relative velocities are used as states" parameter StateSelect stateSelect=StateSelect.prefer "Priority to use phi_rel and w_rel as states" annotation(HideResult=true, Dialog(tab="Advanced")); parameter SI.Distance s_nominal=1e-4 "Nominal value of s_rel (used for scaling)" annotation(Dialog(tab="Advanced")); SI.Position s_rel(start=0, stateSelect=stateSelect, nominal=s_nominal) "Relative distance (= flange_b.s - flange_a.s)"; SI.Velocity v_rel(start=0, stateSelect=stateSelect) "Relative velocity (= der(s_rel))"; SI.Force f "Forces between flanges (= flange_b.f)"; Translational.Interfaces.Flange_a flange_a "Left flange of compliant 1-dim. translational component" annotation (Placement(transformation(extent={{-110,-10},{-90,10}}, rotation=0))); Translational.Interfaces.Flange_b flange_b "Right flange of compliant 1-dim. translational component" annotation (Placement(transformation(extent={{90,-10},{110,10}}, rotation=0))); equation s_rel = flange_b.s - flange_a.s; v_rel = der(s_rel); flange_b.f = f; flange_a.f = -f; annotation ( Documentation(info="<html> <p> This is a 1-dim. translational component with a compliant connection of two translational 1-dim. flanges where inertial effects between the two flanges are neglected. The basic assumption is that the cut-forces of the two flanges sum-up to zero, i.e., they have the same absolute value but opposite sign: flange_a.f + flange_b.f = 0. This base class is used to built up force elements such as springs, dampers, friction. </p> <p> The difference to base class \"PartialCompliant\" is that the relative distance and the relative velocity are defined as preferred states. The reason is that for a large class of drive trains, the absolute position is quickly increasing during operation. Numerically, it is better to use relative distances between drive train components because they remain in a limited size. For this reason, StateSelect.prefer is set for the relative distance of this component. </p> <p> In order to improve the numerics, a nominal value for the relative distance should be set, since drive train distances are in a small order and then step size control of the integrator is practically switched off for such a variable. A default nominal value of s_nominal = 1e-4 is defined. This nominal value might also be computed from other values, such as \"s_nominal = f_nominal / c\" for a spring, if f_nominal and c have more meaningful values for the user. </p> </html>")); end PartialCompliantWithRelativeStates; partial model PartialElementaryOneFlangeAndSupport "Obsolete partial model. Use PartialElementaryOneFlangeAndSupport2." extends Modelica.Icons.ObsoleteModel; parameter Boolean useSupport=false "= true, if support flange enabled, otherwise implicitly grounded" annotation(Evaluate=true, HideResult=true, choices(checkBox=true)); Modelica.SIunits.Length s "Distance between flange and support (= flange.s - support.s)"; Flange_b flange "Flange of component" annotation (Placement(transformation(extent={{90,-10},{110,10}}, rotation=0))); protected InternalSupport internalSupport(f=-flange.f) "Internal support/housing of component as a model with connector flange (flange is either connected to support, if useSupport=true, or connected to fixed, if useSupport=false)" annotation (Placement(transformation(extent={{-10,-90},{10,-70}}))); Components.Fixed fixed if not useSupport "Fixed support/housing, if not useSupport" annotation (Placement(transformation(extent={{10,-97},{30,-77}}))); public Support support if useSupport "Support/housing of component" annotation (Placement(transformation(extent={{-10,-110},{10,-90}}))); equation s = flange.s - internalSupport.s; connect(internalSupport.flange, support) annotation (Line( points={{0,-80},{0,-100}}, color={0,127,0}, smooth=Smooth.None)); connect(fixed.flange, internalSupport.flange) annotation (Line( points={{20,-87},{20,-80},{0,-80}}, color={0,127,0}, smooth=Smooth.None)); annotation ( Documentation(info="<html> <p> This is a 1-dim. translational component with one flange and a support/housing. It is used to build up elementary components of a drive train with equations in the text layer. </p> <p> If <i>useSupport=true</i>, the support connector is conditionally enabled and needs to be connected.<br> If <i>useSupport=false</i>, the support connector is conditionally disabled and instead the component is internally fixed to ground. </p> </html>"), Diagram(coordinateSystem( preserveAspectRatio=true, extent={{-100,-100},{100,100}}), graphics={Text( extent={{-38,-98},{-6,-96}}, lineColor={95,95,95}, textString="(if useSupport)"), Text( extent={{24,-97},{64,-98}}, lineColor={95,95,95}, textString="(if not useSupport)")}), Icon(coordinateSystem(preserveAspectRatio=true, extent={{-100,-100},{ 100,100}}), graphics={ Line( visible=not useSupport, points={{-50,-120},{-30,-100}}, color={0,0,0}), Line( visible=not useSupport, points={{-30,-120},{-10,-100}}, color={0,0,0}), Line( visible=not useSupport, points={{-10,-120},{10,-100}}, color={0,0,0}), Line( visible=not useSupport, points={{10,-120},{30,-100}}, color={0,0,0}), Line( visible=not useSupport, points={{-30,-100},{30,-100}}, color={0,0,0})})); end PartialElementaryOneFlangeAndSupport; partial model PartialElementaryOneFlangeAndSupport2 "Partial model for a component with one translational 1-dim. shaft flange and a support used for textual modeling, i.e., for elementary models" parameter Boolean useSupport=false "= true, if support flange enabled, otherwise implicitly grounded" annotation(Evaluate=true, HideResult=true, choices(checkBox=true)); Modelica.SIunits.Length s "Distance between flange and support (= flange.s - support.s)"; Flange_b flange "Flange of component" annotation (Placement(transformation(extent={{90,-10},{110,10}}, rotation=0))); Support support(s=s_support, f=-flange.f) if useSupport "Support/housing of component" annotation (Placement(transformation(extent={{-10,-110},{10,-90}}))); protected Modelica.SIunits.Length s_support "Absolute position of support flange"; equation s = flange.s - s_support; if not useSupport then s_support = 0; end if; annotation ( Documentation(info="<html> <p> This is a 1-dim. translational component with one flange and a support/housing. It is used to build up elementary components of a drive train with equations in the text layer. </p> <p> If <i>useSupport=true</i>, the support connector is conditionally enabled and needs to be connected.<br> If <i>useSupport=false</i>, the support connector is conditionally disabled and instead the component is internally fixed to ground. </p> </html>"), Icon(coordinateSystem(preserveAspectRatio=true, extent={{-100,-100},{ 100,100}}), graphics={ Line( visible=not useSupport, points={{-50,-120},{-30,-100}}, color={0,0,0}), Line( visible=not useSupport, points={{-30,-120},{-10,-100}}, color={0,0,0}), Line( visible=not useSupport, points={{-10,-120},{10,-100}}, color={0,0,0}), Line( visible=not useSupport, points={{10,-120},{30,-100}}, color={0,0,0}), Line( visible=not useSupport, points={{-30,-100},{30,-100}}, color={0,0,0})})); end PartialElementaryOneFlangeAndSupport2; partial model PartialElementaryTwoFlangesAndSupport "Obsolete partial model. Use PartialElementaryTwoFlangesAndSupport2." extends Modelica.Icons.ObsoleteModel; parameter Boolean useSupport=false "= true, if support flange enabled, otherwise implicitly grounded" annotation(Evaluate=true, HideResult=true, choices(checkBox=true)); Flange_a flange_a "Flange of left shaft" annotation (Placement(transformation(extent={{-110,-10},{-90,10}}, rotation=0))); Flange_b flange_b "Flange of right shaft" annotation (Placement(transformation(extent={{90,-10},{110,10}}, rotation=0))); Modelica.SIunits.Length s_a "Distance between left flange and support"; Modelica.SIunits.Length s_b "Distance between right flange and support"; protected InternalSupport internalSupport(f=-flange_a.f - flange_b.f) "Internal support/housing of component as a model with connector flange (flange is either connected to support, if useSupport=true, or connected to fixed, if useSupport=false)" annotation (Placement(transformation(extent={{-10,-90},{10,-70}}))); Components.Fixed fixed if not useSupport "Fixed support/housing, if not useSupport" annotation (Placement(transformation(extent={{10,-97},{30,-77}}))); public Support support if useSupport "Support/housing of component" annotation (Placement(transformation(extent={{-10,-110},{10,-90}}))); equation s_a = flange_a.s - internalSupport.s; s_b = flange_b.s - internalSupport.s; connect(internalSupport.flange, support) annotation (Line( points={{0,-80},{0,-100}}, color={0,127,0}, smooth=Smooth.None)); connect(fixed.flange, internalSupport.flange) annotation (Line( points={{20,-87},{20,-80},{0,-80}}, color={0,127,0}, smooth=Smooth.None)); annotation (Documentation(info="<html> <p> This is a 1-dim. translational component with two flanges and an additional support. It is used e.g., to build up elementary ideal gear components. The component contains the force balance, i.e., the sum of the forces of the connectors is zero (therefore, components that are based on PartialGear cannot have a mass). The support connector needs to be connected to avoid the unphysical behavior that the support force is required to be zero (= the default value, if the connector is not connected). </p> </html>"), Diagram(coordinateSystem(preserveAspectRatio=true, extent={{-100,-100}, {100,100}}), graphics={Text( extent={{-38,-98},{-6,-96}}, lineColor={95,95,95}, textString="(if useSupport)"), Text( extent={{24,-97},{64,-98}}, lineColor={95,95,95}, textString="(if not useSupport)")}), Icon(coordinateSystem(preserveAspectRatio=true, extent={{-100,-100},{ 100,100}}), graphics={ Line( visible=not useSupport, points={{-50,-120},{-30,-100}}, color={0,0,0}), Line( visible=not useSupport, points={{-30,-120},{-10,-100}}, color={0,0,0}), Line( visible=not useSupport, points={{-10,-120},{10,-100}}, color={0,0,0}), Line( visible=not useSupport, points={{10,-120},{30,-100}}, color={0,0,0}), Line( visible=not useSupport, points={{-30,-100},{30,-100}}, color={0,0,0})})); end PartialElementaryTwoFlangesAndSupport; partial model PartialElementaryTwoFlangesAndSupport2 "Partial model for a component with one translational 1-dim. shaft flange and a support used for textual modeling, i.e., for elementary models" parameter Boolean useSupport=false "= true, if support flange enabled, otherwise implicitly grounded" annotation(Evaluate=true, HideResult=true, choices(checkBox=true)); Flange_a flange_a "Flange of left shaft" annotation (Placement(transformation(extent={{-110,-10},{-90,10}}, rotation=0))); Flange_b flange_b "Flange of right shaft" annotation (Placement(transformation(extent={{90,-10},{110,10}}, rotation=0))); Support support(s=s_support, f = -flange_a.f - flange_b.f) if useSupport "Support/housing of component" annotation (Placement(transformation(extent={{-10,-110},{10,-90}}))); Modelica.SIunits.Length s_a "Distance between left flange and support"; Modelica.SIunits.Length s_b "Distance between right flange and support"; protected Modelica.SIunits.Length s_support "Absolute position of support flange"; equation s_a = flange_a.s - s_support; s_b = flange_b.s - s_support; if not useSupport then s_support = 0; end if; annotation (Documentation(info="<html> <p> This is a 1-dim. translational component with two flanges and an additional support. It is used e.g., to build up elementary ideal gear components. The component contains the force balance, i.e., the sum of the forces of the connectors is zero (therefore, components that are based on PartialGear cannot have a mass). The support connector needs to be connected to avoid the unphysical behavior that the support force is required to be zero (= the default value, if the connector is not connected). </p> </html>"), Icon(coordinateSystem(preserveAspectRatio=true, extent={{-100,-100},{ 100,100}}), graphics={ Line( visible=not useSupport, points={{-50,-120},{-30,-100}}, color={0,0,0}), Line( visible=not useSupport, points={{-30,-120},{-10,-100}}, color={0,0,0}), Line( visible=not useSupport, points={{-10,-120},{10,-100}}, color={0,0,0}), Line( visible=not useSupport, points={{10,-120},{30,-100}}, color={0,0,0}), Line( visible=not useSupport, points={{-30,-100},{30,-100}}, color={0,0,0})})); end PartialElementaryTwoFlangesAndSupport2; partial model PartialElementaryRotationalToTranslational "Partial model to transform rotational into translational motion" extends Modelica.Mechanics.Rotational.Interfaces.PartialElementaryRotationalToTranslational; annotation (Documentation(info="<html> <p>This is a 1-dim. rotational component with</p> <ul> <li>one rotational flange, </li> <li>one rotational support/housing, </li> <li>one translational flange, and </li> <li>one translational support/housing </li> </ul> <p>This model is used to build up elementary components of a drive train transforming rotational into translational motion with equations in the text layer.</p> <p>If <i>useSupportR=true</i>, the rotational support connector is conditionally enabled and needs to be connected.</p> <p>If <i>useSupportR=false</i>, the rotational support connector is conditionally disabled and instead the rotational part is internally fixed to ground.</p> <p>If <i>useSupportT=true</i>, the translational support connector is conditionally enabled and needs to be connected.</p> <p>If <i>useSupportT=false</i>, the translational support connector is conditionally disabled and instead the translational part is internally fixed to ground.</p> </html>")); end PartialElementaryRotationalToTranslational; partial model PartialForce "Partial model of a force acting at the flange (accelerates the flange)" extends PartialElementaryOneFlangeAndSupport2; Modelica.SIunits.Force f "Accelerating force acting at flange (= flange.f)"; equation f = flange.f; annotation ( Icon(coordinateSystem(preserveAspectRatio=true, extent={{-100,-100},{100, 100}}), graphics={ Rectangle( extent={{-96,96},{96,-96}}, lineColor={255,255,255}, fillColor={255,255,255}, fillPattern=FillPattern.Solid), Line(points={{0,-60},{0,-100}}, color={0,0,0}), Text( extent={{-150,140},{150,100}}, lineColor={0,0,255}, textString="%name"), Line(points={{-78,80},{51,80}}, color={0,0,0}), Polygon( points={{81,80},{51,90},{51,70},{81,80}}, lineColor={0,0,0}, fillColor={128,128,128}, fillPattern=FillPattern.Solid), Line(points={{-52,-60},{77,-60}}, color={0,0,0}), Polygon( points={{-82,-60},{-51,-50},{-51,-70},{-82,-60}}, lineColor={0,0,0}, fillColor={128,128,128}, fillPattern=FillPattern.Solid), Line( visible=not useSupport, points={{-50,-120},{-30,-100}}, color={0,0,0}), Line( visible=not useSupport, points={{-30,-120},{-10,-100}}, color={0,0,0}), Line( visible=not useSupport, points={{-10,-120},{10,-100}}, color={0,0,0}), Line( visible=not useSupport, points={{10,-120},{30,-100}}, color={0,0,0}), Line( visible=not useSupport, points={{-30,-100},{30,-100}}, color={0,0,0})}), Documentation(info="<HTML> <p> Partial model of force that accelerates the flange. </p> <p> If <i>useSupport=true</i>, the support connector is conditionally enabled and needs to be connected.<br> If <i>useSupport=false</i>, the support connector is conditionally disabled and instead the component is internally fixed to ground. </p> </HTML>")); end PartialForce; partial model PartialAbsoluteSensor "Device to measure a single absolute flange variable" extends Modelica.Icons.TranslationalSensor; Interfaces.Flange_a flange "Flange to be measured (flange axis directed in to cut plane, e. g. from left to right)" annotation (Placement(transformation(extent={{-110,-10},{-90,10}}, rotation=0))); equation 0 = flange.f; annotation ( Documentation(info="<html> <p> This is the superclass of a 1D translational component with one flange and one output signal in order to measure an absolute kinematic quantity in the flange and to provide the measured signal as output signal for further processing with the Modelica.Blocks blocks. </p> </html>"), Icon(coordinateSystem( preserveAspectRatio=true, extent={{-100,-100},{100,100}}), graphics={ Line(points={{-100,-90},{-20,-90}}, color={0,0,0}), Polygon( points={{10,-90},{-20,-80},{-20,-100},{10,-90}}, lineColor={128,128,128}, fillColor={128,128,128}, fillPattern=FillPattern.Solid), Line(points={{-70,0},{-90,0}}, color={0,0,0}), Line(points={{70,0},{100,0}}, color={0,0,127}), Text( extent={{-150,80},{150,40}}, textString="%name", lineColor={0,0,255})})); end PartialAbsoluteSensor; partial model PartialRelativeSensor "Device to measure a single relative variable between two flanges" extends Modelica.Icons.TranslationalSensor; Interfaces.Flange_a flange_a "(left) driving flange (flange axis directed in to cut plane, e. g. from left to right)" annotation (Placement(transformation(extent={{-110,-10},{-90,10}}, rotation=0))); Interfaces.Flange_b flange_b "(right) driven flange (flange axis directed out of cut plane)" annotation (Placement(transformation(extent={{90,-10},{110,10}}, rotation=0))); equation 0 = flange_a.f + flange_b.f; annotation ( Documentation(info="<html> <p> This is a superclass for 1D translational components with two rigidly connected flanges and one output signal in order to measure relative kinematic quantities between the two flanges or the cut-force in the flange and to provide the measured signal as output signal for further processing with the Modelica.Blocks blocks. </p> </html>"), Icon(coordinateSystem( preserveAspectRatio=true, extent={{-100,-100},{100,100}}), graphics={ Line(points={{-51,34},{29,34}}, color={0,0,0}), Polygon( points={{59,34},{29,44},{29,24},{59,34}}, lineColor={0,0,0}, fillColor={128,128,128}, fillPattern=FillPattern.Solid), Line(points={{-70,0},{-90,0}}, color={0,0,0}), Line(points={{70,0},{90,0}}, color={0,0,0}), Text( extent={{-150,100},{150,60}}, textString="%name", lineColor={0,0,255})})); end PartialRelativeSensor; partial model PartialFriction "Base model of Coulomb friction elements" //extends Translational.Interfaces.PartialRigid; parameter SI.Velocity v_small=1e-3 "Relative velocity near to zero (see model info text)" annotation(Dialog(tab="Advanced")); // Equations to define the following variables have to be defined in subclasses SI.Velocity v_relfric "Relative velocity between frictional surfaces"; SI.Acceleration a_relfric "Relative acceleration between frictional surfaces"; //SI.Force f "Friction force (positive, if directed in opposite direction of v_rel)"; SI.Force f0 "Friction force for v=0 and forward sliding"; SI.Force f0_max "Maximum friction force for v=0 and locked"; Boolean free "true, if frictional element is not active"; // Equations to define the following variables are given in this class Real sa(unit="1") "Path parameter of friction characteristic f = f(a_relfric)"; Boolean startForward(start=false, fixed=true) "true, if v_rel=0 and start of forward sliding"; Boolean startBackward(start=false, fixed=true) "true, if v_rel=0 and start of backward sliding"; Boolean locked(start=false) "true, if v_rel=0 and not sliding"; constant Integer Unknown=3 "Value of mode is not known"; constant Integer Free=2 "Element is not active"; constant Integer Forward=1 "v_rel > 0 (forward sliding)"; constant Integer Stuck=0 "v_rel = 0 (forward sliding, locked or backward sliding)"; constant Integer Backward=-1 "v_rel < 0 (backward sliding)"; Integer mode( final min=Backward, final max=Unknown, start=Unknown, fixed=true); protected constant SI.Acceleration unitAcceleration = 1 annotation(HideResult=true); constant SI.Force unitForce = 1 annotation(HideResult=true); equation /* Friction characteristic (locked is introduced to help the Modelica translator determining the different structural configurations, if for each configuration special code shall be generated) */ startForward = pre(mode) == Stuck and (sa > f0_max/unitForce or pre(startForward) and sa > f0/unitForce) or pre(mode) == Backward and v_relfric > v_small or initial() and (v_relfric > 0); startBackward = pre(mode) == Stuck and (sa < -f0_max/unitForce or pre( startBackward) and sa < -f0/unitForce) or pre(mode) == Forward and v_relfric < -v_small or initial() and (v_relfric < 0); locked = not free and not (pre(mode) == Forward or startForward or pre( mode) == Backward or startBackward); a_relfric/unitAcceleration = if locked then 0 else if free then sa else if startForward then sa - f0_max/unitForce else if startBackward then sa + f0_max/unitForce else if pre(mode) == Forward then sa - f0_max/unitForce else sa + f0_max/unitForce; /* Friction torque has to be defined in a subclass. Example for a clutch: f = if locked then sa else if free then 0 else cgeo*fn*(if startForward then Math.tempInterpol1( v_relfric, mue_pos, 2) else if startBackward then -Math.tempInterpol1(-v_relfric, mue_pos, 2) else if pre(mode) == Forward then Math.tempInterpol1( v_relfric, mue_pos, 2) else -Math.tempInterpol1(-v_relfric, mue_pos, 2)); */ // finite state machine to determine configuration mode = if free then Free else (if (pre(mode) == Forward or pre(mode) == Free or startForward) and v_relfric > 0 then Forward else if (pre(mode) == Backward or pre(mode) == Free or startBackward) and v_relfric < 0 then Backward else Stuck); annotation (Documentation(info="<html> <p> Basic model for Coulomb friction that models the stuck phase in a reliable way. </p> </html>")); end PartialFriction; annotation (Documentation(info="<html> <p> This package contains connectors and partial models for 1-dim. translational mechanical components. The components of this package can only be used as basic building elements for models. </p> </html>")); end Interfaces; annotation ( Icon(coordinateSystem(preserveAspectRatio = true, extent = {{-100,-100},{100,100}}), graphics = { Line( origin = {14,53}, points = {{-84,-73},{66,-73}}), Rectangle( origin = {14,53}, lineColor = {64,64,64}, fillColor = {192,192,192}, fillPattern = FillPattern.Sphere, extent = {{-81,-65},{-8,-22}}),Line(visible = true, origin = {14,53}, points = {{-8,-43},{-1,-43},{6,-64},{17,-23},{29,-65},{40,-23},{50,-44},{61,-44}}), Line( origin = {14,53}, points = {{-59,-73},{-84,-93}}), Line( origin = {14,53}, points = {{-11,-73},{-36,-93}}), Line( origin = {14,53}, points = {{-34,-73},{-59,-93}}), Line( origin = {14,53}, points = {{14,-73},{-11,-93}}), Line( origin = {14,53}, points = {{39,-73},{14,-93}}), Line( origin = {14,53}, points = {{63,-73},{38,-93}})}), Documentation(info="<html> <p> This package contains components to model <i>1-dimensional translational mechanical</i> systems. </p> <p> The <i>filled</i> and <i>non-filled green squares</i> at the left and right side of a component represent <i>mechanical flanges</i>. Drawing a line between such squares means that the corresponding flanges are <i>rigidly attached</i> to each other. The components of this library can be usually connected together in an arbitrary way. E.g. it is possible to connect two springs or two sliding masses with inertia directly together. <p> The only <i>connection restriction</i> is that the Coulomb friction elements (e.g., MassWithStopAndFriction) should be only connected together provided a compliant element, such as a spring, is in between. The reason is that otherwise the frictional force is not uniquely defined if the elements are stuck at the same time instant (i.e., there does not exist a unique solution) and some simulation systems may not be able to handle this situation, since this leads to a singularity during simulation. It can only be resolved in a \"clean way\" by combining the two connected friction elements into one component and resolving the ambiguity of the frictional force in the stuck mode. </p> <p> Another restriction arises if the hard stops in model MassWithStopAndFriction are used, i. e. the movement of the mass is limited by a stop at smax or smin. <font color=\"#ff0000\"> <b>This requires the states Stop.s and Stop.v</b> </font>. If these states are eliminated during the index reduction the model will not work. To avoid this any inertias should be connected via springs to the Stop element, other sliding masses, dampers or hydraulic chambers must be avoided.</p> <p> In the <i>icon</i> of every component an <i>arrow</i> is displayed in grey color. This arrow characterizes the coordinate system in which the vectors of the component are resolved. It is directed into the positive translational direction (in the mathematical sense). In the flanges of a component, a coordinate system is rigidly attached to the flange. It is called <i>flange frame</i> and is directed in parallel to the component coordinate system. As a result, e.g., the positive cut-force of a \"left\" flange (flange_a) is directed into the flange, whereas the positive cut-force of a \"right\" flange (flange_b) is directed out of the flange. A flange is described by a Modelica connector containing the following variables: </p> <pre> Modelica.SIunits.Position s \"Absolute position of flange\"; <b>flow</b> Modelica.SIunits.Force f \"Cut-force in the flange\"; </pre> <p> This library is designed in a fully object oriented way in order that components can be connected together in every meaningful combination (e.g., direct connection of two springs or two shafts with inertia). As a consequence, most models lead to a system of differential-algebraic equations of <i>index 3</i> (= constraint equations have to be differentiated twice in order to arrive at a state space representation) and the Modelica translator or the simulator has to cope with this system representation. According to our present knowledge, this requires that the Modelica translator is able to symbolically differentiate equations (otherwise it is e.g., not possible to provide consistent initial conditions; even if consistent initial conditions are present, most numerical DAE integrators can cope at most with index 2 DAEs). </p> <p> In version 3.2 of the Modelica Standard Library, all <b>dissipative</b> components of the Translational library got an optional <b>heatPort</b> connector to which the dissipated energy is transported in form of heat. This connector is enabled via parameter \"useHeatPort\". If the heatPort connector is enabled, it must be connected, and if it is not enabled, it must not be connected. Independently, whether the heatPort is enabled or not, the dissipated power is available from the new variable \"<b>lossPower</b>\" (which is positive if heat is flowing out of the heatPort). For an example, see <a href=\"modelica://Modelica.Mechanics.Translational.Examples.HeatLosses\">Examples.HeatLosses</a>. </p> <dl> <dt><b>Library Officer</b> <dd><a href=\"http://www.robotic.dlr.de/Martin.Otter/\">Martin Otter</a> <br> Deutsches Zentrum f&uuml;r Luft und Raumfahrt e.V. (DLR)<br> Institut f&uuml;r Robotik und Mechatronik (DLR-RM)<br> Abteilung Systemdynamik und Regelungstechnik<br> Postfach 1116<br> D-82230 Wessling<br> Germany<br> email: <A HREF=\"mailto:Martin.Otter@dlr.de\">Martin.Otter@dlr.de</A><br><br> </dl> <p> <b>Contributors to this library:</b> </p> <ul> <li> Main author until 2006:<br> Peter Beater <br> Universit&auml;t Paderborn, Abteilung Soest<br> Fachbereich Maschinenbau/Automatisierungstechnik<br> L&uuml;becker Ring 2 <br> D 59494 Soest <br> Germany <br> email: <A HREF=\"mailto:info@beater.de\">info@beater.de</A><br><br> </li> <li> <a href=\"http://www.haumer.at/\">Anton Haumer</a><br> Technical Consulting &amp; Electrical Engineering<br> A-3423 St.Andrae-Woerdern, Austria<br> email: <a href=\"mailto:a.haumer@haumer.at\">a.haumer@haumer.at</a><br><br></li> <li> <a href=\"http://www.robotic.dlr.de/Martin.Otter/\">Martin Otter</a> (DLR-RM)</li> </ul> <p> Copyright &copy; 1998-2013, Modelica Association, Anton Haumer and Universit&auml;t Paderborn, FB 12. </p> <p> <i>This Modelica package is <u>free</u> software and the use is completely at <u>your own risk</u>; it can be redistributed and/or modified under the terms of the Modelica License 2. For license conditions (including the disclaimer of warranty) see <a href=\"modelica://Modelica.UsersGuide.ModelicaLicense2\">Modelica.UsersGuide.ModelicaLicense2</a> or visit <a href=\"https://www.modelica.org/licenses/ModelicaLicense2\"> https://www.modelica.org/licenses/ModelicaLicense2</a>.</i> </p> </html>", revisions="<html> <ul> <li><i>Version 1.2.0 2010-07-22</i> by Anton Haumer and Martin Otter<br> heatPort introduced for all dissipative elements, and text in icons improved. <br></li> <li><i>Version 1.1.0 2007-11-16</i> by Anton Haumer<br> Redesign for Modelica 3.0-compliance<br> Added new components according to Mechanics.Rotational library <br></li> <li><i>Version 1.01 (July 18, 2001)</i> by Peter Beater <br> Assert statement added to \"Stop\", small bug fixes in examples. <br></li> <li><i>Version 1.0 (January 5, 2000)</i> by Peter Beater <br> Realized a first version based on Modelica library Mechanics.Rotational by Martin Otter and an existing Dymola library onedof.lib by Peter Beater.</li> </ul> </html>")); end Translational;
Modelica
5
JavascriptID/sourcerer-app
src/test/resources/samples/langs/Modelica/Translational.mo
[ "MIT" ]
:host /deep/ .ps-content { flex: auto; display: flex; }
CSS
2
Rinfair-CSP-A016/tabby
tabby-core/src/components/tabBody.deep.component.css
[ "MIT" ]
package com.baeldung.map.initialize; import java.util.AbstractMap; import java.util.Collections; import java.util.HashMap; import java.util.Map; import java.util.stream.Collectors; import java.util.stream.Stream; public class MapInitializer { public static Map<String, String> articleMapOne; static { articleMapOne = new HashMap<>(); articleMapOne.put("ar01", "Intro to Map"); articleMapOne.put("ar02", "Some article"); } public static Map<String, String> createSingletonMap() { Map<String, String> passwordMap = Collections.singletonMap("username1", "password1"); return passwordMap; } public Map<String, String> createEmptyMap() { Map<String, String> emptyMap = Collections.emptyMap(); return emptyMap; } public Map<String, String> createUsingDoubleBrace() { Map<String, String> doubleBraceMap = new HashMap<String, String>() { /** * */ private static final long serialVersionUID = 1L; { put("key1", "value1"); put("key2", "value2"); } }; return doubleBraceMap; } public Map<String, String> createMapUsingStreamStringArray() { Map<String, String> map = Stream.of(new String[][] { { "Hello", "World" }, { "John", "Doe" }, }) .collect(Collectors.toMap(data -> data[0], data -> data[1])); return map; } public Map<String, Integer> createMapUsingStreamObjectArray() { Map<String, Integer> map = Stream.of(new Object[][] { { "data1", 1 }, { "data2", 2 }, }) .collect(Collectors.toMap(data -> (String) data[0], data -> (Integer) data[1])); return map; } public Map<String, Integer> createMapUsingStreamSimpleEntry() { Map<String, Integer> map = Stream.of(new AbstractMap.SimpleEntry<>("idea", 1), new AbstractMap.SimpleEntry<>("mobile", 2)) .collect(Collectors.toMap(Map.Entry::getKey, Map.Entry::getValue)); return map; } public Map<String, Integer> createMapUsingStreamSimpleImmutableEntry() { Map<String, Integer> map = Stream.of(new AbstractMap.SimpleImmutableEntry<>("idea", 1), new AbstractMap.SimpleImmutableEntry<>("mobile", 2)) .collect(Collectors.toMap(Map.Entry::getKey, Map.Entry::getValue)); return map; } public Map<String, String> createImmutableMapWithStreams() { Map<String, String> map = Stream.of(new String[][] { { "Hello", "World" }, { "John", "Doe" }, }) .collect(Collectors.collectingAndThen(Collectors.toMap(data -> data[0], data -> data[1]), Collections::<String, String> unmodifiableMap)); return map; } }
Java
4
DBatOWL/tutorials
core-java-modules/core-java-collections-maps-2/src/main/java/com/baeldung/map/initialize/MapInitializer.java
[ "MIT" ]
( Generated from test_literal_string_variants_in.muv by the MUV compiler. ) ( https://github.com/revarbat/muv ) : _quotes[ _arg -- ret ] var _a var _b var _c var _d var _e var _f var _g var _h var _i var _j var _k var _l var _m var _n var _o "Test('')" _a ! "Test(\"\")" _b ! "Test(\"\")" _c ! "Test(\"\")" _d ! "it's" _e ! "it's" _f ! "a\"b" _g ! "a'b" _h ! "abc\"def" _i ! "abc\r def" _j ! "abc'def" _k ! "abc\\rdef" _l ! "abc\\rdef" _m ! "abc\"\\r'def" _n ! "abc\"\\r'def" _o ! 0 ; : __start "me" match me ! me @ location loc ! trig trigger ! _quotes ;
MUF
3
revarbat/muv
tests/test_literal_string_variants_cmp.muf
[ "BSD-2-Clause" ]
definition module SimpleHash :: .HashTable a htNew :: .Int -> .(HashTable a) htHasKey :: !{#.Char} !.(HashTable a) -> .Bool htAdd :: !{#.Char} a !*(HashTable a) -> .(HashTable a)
Clean
3
kragen/shootout
bench/Include/clean/SimpleHash.dcl
[ "BSD-3-Clause" ]
/* * Copyright 2019 Gianluca Frison, Dimitris Kouzoupis, Robin Verschueren, * Andrea Zanelli, Niels van Duijkeren, Jonathan Frey, Tommaso Sartor, * Branimir Novoselnik, Rien Quirynen, Rezart Qelibari, Dang Doan, * Jonas Koenemann, Yutao Chen, Tobias Schöls, Jonas Schlagenhauf, Moritz Diehl * * This file is part of acados. * * The 2-Clause BSD License * * 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. * * 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 ACADOS_UTILS_STRSEP_H_ #define ACADOS_UTILS_STRSEP_H_ #ifdef __cplusplus #include <string> #define STD(x) std::x namespace std { #else #include <string.h> #define STD(x) x #endif char* strsep_acados(char** stringp, const char* delim) { char* result; if ((stringp == NULL) || (*stringp == NULL)) return NULL; result = *stringp; while (**stringp && !STD(strchr)(delim, **stringp)) ++*stringp; if (**stringp) *(*stringp)++ = '\0'; else *stringp = NULL; return result; } #ifdef __cplusplus } // namespace std #endif #undef STD #endif // ACADOS_UTILS_STRSEP_H_
C
3
shoes22/openpilot
third_party/acados/include/acados/utils/strsep.h
[ "MIT" ]
_TF_* _TFE_*
Linker Script
0
abhaikollara/tensorflow
tensorflow/c/exported_symbols.lds
[ "Apache-2.0" ]
1 1 1 1 1 2 1 / 1 0 1 0 / 1 1 / 1 1 1 1 1 1 1 1 1 3 1 1 1 0 1 1 1 1 1 1 1 1 1 1 1 0 0 1 0 0 / 0-3 (F8%% 21.. 0 / 0 1 1 0 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 / 1 1 0 0 0 0 / 0 0 / 1 1 0 1 1 1 1 1 1 1 0 1 0 0 1 1 1 1 1 1 0 1 / / 1 0 0 / 0 0 0+ 4 &>2)"2+2(2 .0 / 1 / 0 0 0 1 / 0 0 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 / / / 1 1 / / / -- / 0 0 1 0 1 1 0 1 0 0 1 1 0 1 1 0 1 0 1 1 1 1 1 0 0 0 0 1 0 0 0 0 ., 4/3(=*2 '-$/ 0 0 0 2 1 0 0 1 1 1 1 0 1 0 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 0 1 1 1 0 0 / 0 / / 7 0 / 0 0 1 0 0 1 0 1 1 0 0 0 / 1 0 0 1 0 1 1 1 2 1 2 0 1 0 0 0 1 -0 7%A53D(/ . ! ./ / / 0 0 01 / 0 0 0 0 0 1 1 3 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 / 0 0 / / - / 1 0 0 0 0 1 1 0 0 1 1 0 1 1 2 0 0 0 0 0 0 1 2 1 / 2 / 0 0 / 0 .- 1"86+@!*9%4 *4# -0 0 0 / 0 ,/ , -. 0 / 1 1 1 0 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 0 1 0 0 1. 0 0 2 - 0 3 0 / 0 0 1 / 0 0 0 0 1 0 0 0 0 0 0 0 0 0 1 1 0 0 0 / . / 0 - 21>0?(-<$/#4 !/'.. 1 0 / 0 00 -9"'2 - . 1 1 0 3 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 0 0 0 0. 1 1 .. 0 / / 0 0 1 0 0 0 0 0 0 0 / / 0 / / 0 0 / 1 3 0. 1 / / .,<<23B+63*8"" ,/ . / 0 0 / .0 0 - % .. 0 2 1 0 1 1 1 1 1 3 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 0 0 0 0 0 /. . / / / / / / 0 0 0 / / 0 0 0 0 /. 0 0 / 0 0 0 3 0 0 0 1 0 0 0* 6A:8D",4!1 +1 / / / 0 / ./ & * 4 30 0 0 0 0 0 1 1 0 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 0 / / 0 0 2 1 / / / . 0 0 2 0 0 0 0 / / 0 / 0 / 0 0 0 0 0 0 0 1 0 / 1 0 0 0 .8:5,;,6/7 ,. . / 0/ 0 0/ ": !(/ 0 0 0 0 / 0 1 0 0 1 1 1 0 0 0 0 1 1 3 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 / / 0 / 2 0 0 0 / 0 0 0 / 0 0 0 0 / 0 0 0 0 / / 0 / / 0 0 0 0 / 1 1 / / ,8#813>- 0 !7)/ / 0 0 / . - /1 "- 3 . / / - 0 0 1 0 1 0 0 1 0 1 1 0 0 0 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 0 0 1 / / 0 0 / 0 0 / 0 / 3 0 1 1 0 0 1 0 0 1 0 / 0 / 0 2 / 1 0 1 / / 0 ,8073=)4 +"'4 4- 0 3 /. #I .=- 0 + * 0 0 0 / 0 0 0 1 0 / 0 . 1 1 0 0 0 0 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 / 0 0 1 1 0 / / 0 / 1 0 0 0 0 1 0 0 / 0 / / 0 0 0 0 0 2 1 1 0 1 0 0 / . 4 ,@4;5; 5.1 / . / 0 0/ 1@5G , / / / 0 0 0 0 0 1 2 0 0 0 0 / 0. / 0 0 0 0 1 0 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 0 / / / 1 1 1 0 / / 0 0 0 0 1 1 0 0 0 0 0 0 0 0 0 1 1 1 0 1 0 / 0 0 0,?&<01;"7& 31 / / 0 / 0 0 0 2- . / / 0 0 0 0 0 1 1 1 0 1 1 0 0 00 . -. / 0 0 1 0 0 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 0 1 . .-. 0 . 0 1 0 0 0 0 0 1 1 0 0 0 0 0 0 0 0 1 0 0 1 0 1 0 01- 8,A >25=;- / / 1 0 0 0 / 0 / / /. / 0 0 0 1 0 0 / . 0 0 0 0 0 /0.,0 0 0 0 1 0 1 2 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 0 0 1 1 0 1 1 1 0 0 0 0 0 0 0 / 2 9. 0 3 . 0 0 0 0 1 0 1 0 0 0 / 0 0 0 0 1 3 1 1 / 1 / 1 - 8C <)J =- 0 / 0 0 / / 0 1 0 1 0 0 0 0 0 0 0 / 0 1 1 1 1 / 1 1 0 / 0-. / / / 0 1 1 1 2 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 0 0 1 1 1 1 0 0 0 / 1 1 1 1 0 / / 05 2 / / 2 / 0 0 0 0 1 1 2 0 0 1 0 1 0 0 1 1 1 1 0 1 0 0 /4 < : B 9 . 0/ 0 1 0 / 1 1 0 0 0 0 0 1 1 0 0 1 / 0 1 1 1 0 0 0 1 /0 . 0 0 . / / 0 1 0 0 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 0 0 0 0 1 1 0 1 1 0 / 0 0 0 0 0 / 5 2+ 0 /. 0 / 0 . 0 . 0 1 1 0 0 1 0 1 1 1 1 1 0 1 0 0 / 1 > 8 5 6 / / / 0 / 1 1 0 0 0 0 / 0 2 1 0 . 1 1 / 1 1 3 1 0 1 0 / / ,) - 1 0 / 0/ 0 0 1 1 0 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 2 1 1 1 1 1 1 0 0 0 0 / 0 / 0 / 0 0 1 0 0 0 0 2 0 0 0. 8 2, 2 3 . 0 / 0 / 2 0 0 0 1 1 1 1 0 1 0 1 1 1 1 1 0 / 5 : 42 1 / 0 0 0 0 / 1 0 0 0 0 0 1 0 0 1 0 0 0 1 1 1 1 0 1 0 0 /1 %0" 1 / / / 0 / 0 0 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 0 1 1 0 / 0 /- 0 0 / 0 1 0 0 0 / / 0 0 0- 7 4 / 0 3 / 0 0 / 4 1 . 0 0 0 0 1 1 1 1 1 1 0 0 1 0 0 0 4 7 1 3 / 0 0 0 / / / 1 1 0 1 0 1 1 1 1 1 1 1 1 1 1 1 1 1 1 0 0 0 / / 1 3 1 . 0 / 0 0 0 0 2 0 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 0 1 0 0 1 0 0 / / /2. / / 0 0 1 / 2 / 1 1 / / / 0 5 5 4 / . 0. 1 0 / 0 / 1 0 1 1 1 1 1 0 1 1 1 0 / 0 1 / 2 1 / 0 / 0 1 1 0 1 0 0 0 0 1 1 1 1 1 1 1 1 1 0 1 0 0 0 / 0 . 1 / -/. / 0 0 0 0 1 1 0 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 2 0 1 1 0 0 0 00 .2,,- / / / 0 / 0 / 0 0 1 0 0 0 0 / 0 3 0 . 0 0 1 0 / 0 0 / 1 0 2 1 1 1 1 / 1 0 0 0 / 1. 1 2 / / / . 0 0 1 0 1 0 1 0 0 1 1 1 1 1 1 1 1 1 1 0 0 1 / 0. /#1 +0 0 0 / 0 1 1 1 0 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 0 1 1 0 / / /0 /)!3 0 / / 0 0 / / / 1 0 0 0 0 0 0 . . 0 0 0 0 0 0 0 0 0 1 0 1 1 1 1 1 / 2 0 1 / / / /,. / 0 0 0 0 0 0 1 0 1 1 1 1 1 1 1 1 1 1 2 1 1 0 1 0 1 / / /3&* 1 / 0 0 1 0 1 0 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 0 1 0 1 0 / 0 0 -- ./ 0 0 / 0 0 0 0 /0 1 3 1 / 0 0 0 0 0 0 0 1 1 0 1 1 1 1 1 1 1 1 1 1 0 0 1 0 0 / 1 0 6 1 0 0 0 / / 0 0 0 1 0 1 1 1 1 1 1 1 1 1 1 1 1 1 / 1 / 0./ / 0 / / 0 / / 0 1 0 0 1 / 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 0 1 0 1 0 0 / / 6 / 7 4 / / / 0 0 0 0 2 / / 1 / 0 0 / 1 0 0 2 0 1 0 1 1 0 2 1 1 0 1 1 1 1 1 1 0 0 0 0 .. 5 8 0 / 0 0 0 / / 0 0 1 0 1 1 1 1 1 1 1 1 1 1 1 1 0 0 0 0 0 / 0 1 1 / 0 / 0 0 0 0 0 0 1 0 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 0 1 1 0 1.11 3"8#40/ 1 0 0 / 0 01. 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 0 0 0 0 / 5 : 5 0 / 0 0 0 0 2 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 0 0 1 / 0 0 0 0 0 0 0 0 1 1 1 0 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 0 1 0 0 3 0 0 0 0&,'!(45#$$% )/ 1 1 /. 0 0 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 3 0 1 0 0 . 4 6 0 . / 0 0 0 0 0 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 0 1 0 0 0 ./1 0 / / 0 0 1 1 1 0 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 3 3 / 1 0 0 //%6&0J /K$< 08 =(G 6&4- /*/ / / 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 0 0 0- 1 / / 0 0 0 1 0 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 0 1 / 1 0 0 /)&) 2/ 0 0 1 0 1 1 0 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 3 1 0 1 0 0- 64+1I$; ,G85 %B #B 0) 4/ 0 4 2 / 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 2 0 0 1 0 / . 0 / 0 1 0 1 0 1 1 1 1 1 1 1 1 1 1 1 1 1 1 0 1 0 0 0 0 1 - = > 4/ 2 0 1 0 2 0 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 0 1 0 0 / 281(B,C 2G: = $C9(-,5 2 1 1 0 0 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 2 0 0 0 0 0 0 0 1 . 0 0 1 1 1 1 1 1 1 1 1 1 1 1 1 0 1 1 0 0 0 0 0 / 1$% /1 / 0 0 0 0 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 0 0 1 1 0 / 0 0 144$@/F0G,J3 / 1 1 4- 0 - / 0 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 0 1 1 0 0 0 1 0 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 0 / 1 0 3 0 0 / / 5 2- 0 0 0 2 1 / 0 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 0 1 0 0 0 2 0 / 13 0 '$--* - / . . 0 .- / / 0 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 0 1 1 0 1 1 1 1 1 1 1 1 1 1 1 1 1 1 0 1 0 1 1 0 0 0 0 0 0. 5 3 2- 0 0 1 0 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 0 1 0 0 0 04 2 4 2 1 /-1 0./ 4 2 0 0 / /. 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 / 0 1 3 0 0 1 1 1 1 1 1 1 1 1 1 1 1 1 1 0 0 0 0 0 1 0 0 0 /1 056 . 0 0 1 / 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 / 0 0 0 0 /.0 1 1 0 / 1 0 / 2+'% / 10 /0 ' 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 0 1 1 / 0 /.1/0 %)&6 1 1 0 2 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 / 1 0 0 0 / / / 2 0 / 0 / 50$ =95 ''!&"*% 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 0 1 0 0 0. . . . 1"- 01 . 0 0 1 / 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 0 1 0 / 1 / 0 0 /0 0 . 0 .0-7 ;'C$?&E ,-& 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 0 1 0 1 0 0 .1.'J 0  347 1 / / / 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 / 1 1 / 0 1 / / / 0 0 0 0 .12 !.4&!A-L(D % 3 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 / 0 2 0 / 0 /3!; 1%+C! 11 / 0 0 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 2 0 0 0 1 0 1 / 0 / 0 / 0 0 / // 7 7)/? = + 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 0 / 0 1 / .6+ 3 / 0 0 1 . 0 0 3 1 0 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 0 1 0 1 - 0 0 0 0 0 0 / . 0.05 0 , 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 / / / 0 / / 1)'7 / .1 - 11 1 0 0 0 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 0 1 1 1 1 1 3 / 1 1 1 0 1 0 0 0 0 / 0 / . / / 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 4 0 0 / 2 4 *!3 9 . .0()2 . 0 1 0 0 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 0 1 1 1 1 / / 0 0 0 0 0 0 0 / 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 0 / / 2"6&@,#2 0 , 41 2 / 0 0 3 0 3 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 2 / 1 1 0 0 1 1 1 0 0 0 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 3 2 0 1 0 0 / 31,K0M $'1 1/'%/ 9 5- 0 0 0 1 1 1 1 1 2 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 0 0 0 0 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 0 1 0 0 0 0 0 06"="> 0 / / 1* / 5- 0 0 0 1 0 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 0 0 1 1 / 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 0 1 0 0 0 00 )9$2,. 6- 0 / -$4 2 . 0 0 0 0 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 0 0 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 0 2 0 0 /3&!1 7 3 / / /. 1 4. / 0 0 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 2 1 0 0 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 0 2 0 / 0 + / . 0 . / / 0 /, 0 0 0 0 1 / 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 / 0 0 / 0 / 1 0 / 1 0 0 /. 1 2 / 0 0 1 / 2 0 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 0 0 0 0 0 0 0 / / /0",)7 5 3 3 . 0 / 0 / 1 1 0 1 0 0 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 2 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 0 1 0 0 0 0 0 . / 6= 2 / / 0 0 / 0 1 / 1 1 1 1 0 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 0 1 1 1 1 1 0 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 / 1 0 /.- 1 ? / / / 1 / 0 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 0 1 - . 0 / 0 / / 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 0 / 0 / . 0 /.-'*; < . 0 0 0 0 1 0 1 3 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 / 1 1 0 1 1 0 0 / 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 0 0 - / / / 1 1 ; < 1 / 0 / 0 1 0 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 0 1 1 0 1 0 0 0 0 1 1 0 1 0 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 0 0 . 1 5 . / 4 4. / 0 / / 1 0 1 1 1 1 1 1 1 1 0 1 1 1 1 1 1 2 1 1 0 0 0 0 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 0 0 0 1 1 1 0 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 0 1 0 1 0 1 0 / . 0 0 0 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 0 / 3; 0 0 0 . 5 1 0 0 1 0 0 0 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 / 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 0 1 0 2 1 1 1 2 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 0 1 0 0 0- 3 / 0 1 0 0 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 0 1 /6 5- 0 / 0 / / 0 / 1 / 1 0 0 0 1 1 1 1 1 1 1 1 1 1 1 1 0 1 0 0 0 0 0 1 1 0 0 0 0 0 0 0 0 1 1 1 1 1 1 1 1 2 1 1 0 0 1 0 1 0 0 0 0 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 0 0 0 0 0. 1 5/ 0 / 0 / 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 0 0 / 0 / 0 0 1 0 0 2 1 1 0 1 0 0 0 1 0 0 2 / 0 / / 0 0 0 0 0 0 1 0 0 0 0 0 1 0 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 2 0 1 1 0 0 1 0 1 1 1 0 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 0 1 1 1 1 0 1 @ 1 / 0 0 1 1 0 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 0 0 / 2 0 0 0 0 0 2 0 0 1 1 1 1 0 0 / 0 1 0 1 0 1 1 0 0 1 1 0 0 0 0 0 0 0 0 1 0 0 0 0 0 0 0 0 0 1 1 1 1 1 1 1 1 1 0 1 0 0 0 0 / 0 0 0 0 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 0 1 1 0 2, 5 ;/ 0 / / 0 0 0 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 0 3 0 0 0 0 0 2 0 1 0 1 0 1 1 0 0 . / 0 0 0 1 0 0 0 0 0 0 1 0 1 / 0 / 1 2 1 0 0 1 0 0 1 1 1 0 / 0 1 0 0 0 1 1 1 0 / 1 0 0 / / 33 / . 0 0 1 0 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 0 1 0 0- 6 9 , / 0 0 2 1 0 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 2 1 1 1 1 1 1 1 1 0 1 1 1 0 0 0 0 0 1 2 1 0 0 3 / 0 0 1 0 0 0 0 0 0 0 / 1 1 1 / /.. 1 2 0 / 0 / 0 0 0 / 0 0 0 0 / 0 1 0 0 / 0 0 0 / 0 / 1 3 0 0 0 0 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 0 / 1 0 / 0 4 / / / 0 1 1 1 2 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 0 1 1 3 3 1 0 0 0 2 0 0 0 1 3 1 1 0 0 0 0 . 1 6 . 1 0 / 0 / . . / . 0 1 0 0 / 0 / / 7 3 / 0 0 0 0 / / .- / / 0 0 1 1 2 1 1 1 3 0 1 0 0 0 / . 2 0 0 1 0 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 0 1 / 0 / 0 / /.0 / 0 0 0 1 0 1 1 0 0 0 0 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 0 1 1 / 0 0 / . - / 0 2 0 / 0 0 // 0 / 0 0 / / 4 0 / 0 0 0 0 0 3 0 . / : 3 / / 0 / 0 / 0 : ;/ / 0 0 0 / 1 0 / 0 0 1 0 0 / 0 0 0 0 1 0 0 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 3 0 0 0 / 0 03 / -0 / 0 0 1 0 1 1 1 1 1 1 0 0 1 1 1 1 1 1 1 1 2 1 1 1 1 1 / 0 0 0 0 0/ 2 0 . 0 / 0 1 0 0 0 / 0 0 0 0 / /. 5 0 . 0 1 0 0 1 0 0 0 / . . / 0 / 0 / . 4 8 9 5 / / 0 / 0 0 / / / / 2 0 0 2 1 0 0 0 0 0 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 0 0 / 0 0 ()*'2 / / / 0 0 1 0 0 0 0 0 0 0 0 1 0 1 1 1 1 1 1 1 1 1 1 1 0 / 1 0 1 0 / / /0- 6 . 0 0 1 0 1 / . 0 0 0 0 0. 1 6. / / 0 0 1 1 1 / 3 1 0 0 0 / 1 0 0 /. /.- / / / 0 1 / . 3 4 0 0 0 0 0 1 0 1 1 1 0 1 1 1 1 1 1 1 1 1 1 0 0 0 0 1 1 1 1 1 1 1 1 / 0 0 .- 0-$ ,1. 0 / 0 0 0 0 1 1 0 0 0 0 0 . 1 0 0 1 1 1 1 1 1 1 1 1 1 1 / 0 0 / 0 8 1 - / 0 0 0 1 0 0 1 1 3 1 0 0 . . 0 3 / . 0 0 0 0 0 1 0 0 1 0 0 0 1 0 0 0 / 1 0 1 0 0 / / / 1 / / 3 8 : 1 / 0 0 1 0 0 0 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 0 0 0 / 2 3/0 / / 0 / 0 1 1 0 1 0 0 0 / / / 0 0 0 1 0 1 1 1 1 1 1 1 0 0 0 0 0 / / 26 0.. 0 0 0 0 / 2 0 0 0 / 0 / 0 0 / , 0 / 0 0 1 0 0 1 1 1 1 1 0 1 1 0 0 0 0 0 0 0 0 0 / 0 0 0 / 0- .. 1 0 0 0 1 0 1 2 0 1 1 1 1 1 1 1 1 1 0 0 0 0 0 0 1 1 1 1 1 1 1 0 1 0 0 . 1 1 . 1 0 0 0 0 1 0 0 1 0 / / / / 0 / 0 0 1 1 0 1 1 1 1 1 0 1 0 0 - / - , / 0 . / 0 0 / 1 0 2 1 1 1 1 1 1 0 0 0 0 0 0 0 0 / / 0 1 1 1 1 1 1 0 0 0 0 1 1 0 1 0 1 1 0 0 0 0 0 / / 0 0 0 0 0 0 0 1 1 1 1 1 1 1 1 1 1 1 1 1 0 1 0 0 1 0 0 1 1 1 1 1 1 1 1 0 1 0 0 0 0 / 0 0 0 0 0 / 0 0 / 1010 0 0 / / 0 0 1 1 0 1 1 1 1 1 0 1 0 0 . 2 8 ; 2. / / 0 0 0 0 1 1 1 1 1 1 1 1 1 0 0 0 0 0 0 / 0 0 0 1 1 1 1 1 1 1 0 1 1 0 1 0 0 3 0 0 0 1 0 1 0 0 0 0 0 0 / 0 0 0 1 1 1 1 1 1 1 1 1 1 1 1 1 1 0 0 0 / / 0 0 1 1 1 1 1 1 1 1 1 0 0 1 0 0 0 / 1 1 1 2 0 0 /0 ( !+ . 1 . 0 0 1 1 1 0 1 1 1 1 1 0 0 0 /.60$*+ 7 0 0 0 0 1 1 1 0 2 1 1 1 1 1 1 1 1 1 1 1 1 1 0 0 1 0 1 1 1 1 1 1 1 1 1 1 1 1 1 1 0 0 0 1 1 1 1 1 / 0 0 1 0 1 0 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 0 0 / 1 2 / / 2 1 1 1 1 1 1 0 1 / 1 1 0 0 0 1 0 0 . 0 0 0 +!; ,J8 2. / 0 0 0 1 1 1 1 1 1 1 0 0 0 0 0 / 1($+ 1 / / 0 0 0 0 0 1 0 1 1 1 1 1 1 1 1 1 0 0 1 1 3 0 0 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 3 1 0 0 1 1 0 0 1 0 1 1 0 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 0 0 0 0 0 / / 1 1 1 1 1 1 1 1 0 1 / 1 0 . 1 0 / 0 0 0 / 1 !8*" .. 0 0 / 0 0 1 1 1 1 1 1 1 1 1 / 1 1 . 3 8/ 1 1 / / 0 0 0 0 0 1 0 1 1 1 1 1 1 1 1 1 1 0 0 0 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 0 1 1 0 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 0 1 0 0 / 0 0 1 1 1 1 1 0 0 1 1 0 1 / 0 / 0 0 0 0 / / 0 1$* & 2 3 / . / 0 0 0 1 0 1 1 1 1 1 1 0 1 1 0 0- 6 3 1&A6. 0 2 / 0 0 0 1 1 0 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 2 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 0 1 0 1 0 0 0 1 1 1 0 0 1 1 0 0 1 0 / 0 / 0 - . / 12 / / - . 0 . 3 1 0 0 0 0 0 1 0 1 1 1 1 1 0 1 0 0 0 0 /< 4 3 4 1 / 0 0 / / / 0 0 0 1 0 1 1 1 1 1 2 1 0 1 0 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 0 1 0 0 0 0 0 1 1 1 1 1 0 0 0 1 0 / / - /. 1 4 , %$ 0 / 0 0 / 0 . 0 1 0 0 1 0 0 0 1 3 1 1 1 1 1 0 0 0 / . 2 / /. / 0 / / 3 ; / 0 0 0 1 0 1 1 1 1 1 1 2 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 0 1 0 1 0 1 0 1 1 / 0 0 0 0 0 / / '%$+9"? ' 0 // , - 01 / 0 0 / 1 0 1 1 2 1 1 1 1 1 1 1 1 0 0 0 / 0 0 0 0 2 / / 4 3 / 0 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 3 1 1 0 0 1 0 . 0 1 0 0 1 0 1 0 / 0 0 0 0 0 +*7= "A"@) 0 02&6 . 1 1 . 0 0 0 1 0 0 0 0 1 1 1 1 1 1 1 / 1 / 0 1 0 0 0 0 0/ 0 . / / 0 0 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 0 1 1 1 1 1 0 1 3 / 0 / /. 0 0 0 0 0 0 0 0 2 00 )7 '#$(&+ / 0/ )-"0 1 / / 0 0 1 0 1 1 1 0 1 1 1 1 1 1 0 1 0 1 0 0 1 1 / 0 2 1 0 0 0 / / 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 0 0 0 0 0 0- 5@ / 1 / 0 / 0 0 / 0 + 1 .' 01 +0 /0$"<"2 / / 0 0 0 3 1 1 0 0 0 1 0 1 1 1 1 1 1 1 0 1 1 1 1 0 1 1 0 2 2 0 / / / 1 0 1 2 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 0 0 0 0 / , 0 2 / / 1 0 /. 0 1 +) , /1 1(, +3 & > ; . / / 0 0 1 1 1 1 0 / 0 0 1 0 1 1 1 1 1 1 1 1 0 / 0 0 1 0 / 1 0 2 1 0 / 1 0 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 0 / / 0 0 0 0 / 0 0 / - 1 0 , - / / / / / 1 / / 0 --.0+!= ' / / 0 0 0 0 1 0 0 1 / 0 1 1 2 1 1 1 1 1 1 1 0 1 1 1 1 1 1 1 1 1 0 0 1 1 / 1 1 1 2 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 0 / 1 0 0 0 0 0 0 . / 0 2 0 00 0+. / 0 / / 0 / 0 / 1 4 2 . / 080/ . - / 0 0 1 1 0 0 0 0 0 0 0 1 1 1 1 1 1 1 1 1 1 1 1 2 1 1 1 1 1 1 1 0 0 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 0 1 1 0 1 1 1 0 0 / 4 1 / 0 / 0 1*7$( 0 . / 0 2 0 0 )!( / . / + ;%"0 1 / 0 0 0 0 0 0 / 1 0 0 0 1 0 1 1 1 1 1 1 1 1 0 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 0 0 1 0 1 0 0 0 . 8 ; / 0 0 10"? - 1 / 0 . 0 // ,/!? ( 1 0 1*:$ 1 / 1 1 1 0 / 0 / / .5 0 0 0 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 0 1 1 1 1 1 1 1 0 0 0 . 0 / . 0 1 / 0 / 1< ( 0 / 0 0 00 ,%$B%?%1 0 / / /0 / / / 1 0 2 0/ 0 0 / / / 0 0 / 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 2 1 1 1 0 / 1 1 0 1 1 0 1 0 1 0 0 / / / / 0 0 1$0 1 0 0 01 %5";+ ,0 0 1 , / 0 / / 0 0 / 1 1 0 1 1 0 0 0 0 0 0 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 0 1 1 1 1 1 0 / 0 0-; 7. 0 0 0 0 0 0 3 / / 0 / 1.$A* - 0 / - / / 0 0 1 0/ 0 0 1 0 1 0 1 0 0 0 0 0 0 0 1 0 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 0 1 0 0 0 0 0 1 1 0 0 / 0 0 / - 0 0 0 1 1 0. 1 0 0 -(=##2 / / 0 0 / 0 0 0 / / 0 0 . 0 1 1 1 0 1 1 1 1 1 1 1 0 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 0 1 1 1 0 0 0 0 0 1 0 0 0 / 0 . / / / 0 / / 1")+6 7 4$(( , 2. / 0 0 0 0 1 1 0 0 0 / 1 0 2 1 1 2 1 1 0 0 1 0 0 0 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 0 1 / 0 / / 0 0 1 0 0 / 0 7 0 / / / 1 1 1* 1 2 5 -/ 0 / 0 0 / 0 1 / 0 1 0 0 2 0 1 0 1 1 1 1 1 1 1 1 1 1 1 1 1 0 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 0 / / 0 / 3 2 . 0 3 3 1 . 0/. 0 0 0 0 1 /0 / / . / . 1 0 0 / / 0 1 1 3 1 1 1 1 0 1 0 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 / 1 1 1 0 1 / 1 1 0 0 / 2 1 0 0 0 0 0 0 0 / 1 / 0 0 0 0 0 0 0 0 0 1 1 1 0 0 1 0 1 0 0 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 0 1 1 1 1 0 0 1 / 0 / 0 0 1 1 0 0 0 0 0 0 0 1 1 1 1 1 0 0 / 0 0 0 / 1 1 1 0 0 0 0 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 / 1 0 0/ 0 0 0 2 0 0 0 1 0 1 1 1 1 0 0 1 0 1 1 1 1 / 1 0 / 1 0 1 1 0 0 0 0 0 0 1 0 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 3 1 0 1 0 / 0 / / 0 0 1 0 / 0 1 1 2 1 1 / 0 1 0 1 1 1 1 1 0 / 1 0 1 1 / 3 0 0 0 / 0 0 1 0 0 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 0 1 0 / 0 / 0 1 / 0 0 0 0 0 0 0 1 0 1 1 1 1 1 1 1 1 1 1 0 3 0 1 0 1 1 0 0 0 0 0 1 0 0 1 0 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 0 1 0 / 3 4 / 0 / / 0 / 0 0 1 0 0 1 1 1 1 1 1 1 1 1 0 1 1 1 1/ 0 0 0 0 0 0 0 0 0 1 0 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 / 1 0 / 0 / . 0 0 / / 3 0/ 0 1 1 0 1 1 1 1 1 1 1 1 1 1 1 1 0 1 0 1 / 0 0 0 / / 0 0 0 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 0 1 1 0 -. / / / 0 / 0 // 0 0 1 / 1 1 1 1 1 1 1 1 1 1 1 1 1 2 0 1 2 0 0 0 / 0 0 0 / 0 1 0 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 0 0 0 0 / / 4 2 / / / / 0 0 0 0 1 1 1 1 1 1 1 1 1 1 1 1 1 0 1 1 1 1 / 1 .. 1 3 4 6 / 0 0 1 0 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 2 0 0 0 / 1 0 / 0 0 / / 0 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 0 0 1 1 0 0 / / 2 4 6 4 / 1 0 1 0 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 0 1 1 0 0 / / 0 0 0 2 0 1 0 0 1 1 1 1 1 1 1 1 1 1 1 1 1 1 0 3 0 0 2 0 0 0 0 4 2/ 0 0 0 1 0 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 0 1 1 1 / 0 1 0 0 1 1 0 0 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 0 0 1 0 1 0 0 .. 3 0 1 2 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 0 1 1 1 1 0 0 0 1 1 0 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 0 1 0 1 3 0 1 0 0 / / / / 1 1 0 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 2 1 1 1 1 0 0 1 0 1 0 1 1 1 1 0 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 0 1 0 1 1 0 1 / 2 / 2 1 . 1 1 0 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 0 1 0 0 0 1 1 0 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 0 1 0 1 0 0 0 /- 4 3 1 0 0 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 2 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 0 1 1 0 1 1 0 0 / 0 / 0 0 0 1 1 2 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 3 1 1 2 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 0 0 0 0 1 0 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 / / 1 1 1 0 0 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 0 0 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 0 0 0 1 1 0 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 0 1 1 0 2 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 0 0 1 / 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 0 0 0 0 1 0 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 0 1 1 / 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 0 0 0 0 1 0 0 1 0 1 0 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 0 0 1 2 1 1 2 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 0 1 1 1 0 1 1 0 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 0 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 0 0 0 0 0 0 1 1 0 0 0 / 0 0 0 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 0 0 0 0 0 0 0 / / 0 0 0 0 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 3 1 1 1 0 1 1 1 / 0 0 0 / / 0 0 0 / 0 1 / 0 0 1 0 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 3 1 1 1 1 0 1 0 0 / 0 0 / / 1 / 0 / 0 0 / 1 0 1 0 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 0 0 1 / 1 1 1 0 1 /. 0 0 0 / / 0 0 0 1 0 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 0 0 1 0 0 0 /- / 0 . 0 0 0 0 0 1 1 0 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 / 1 / 0 2 0 0 0 . 4 2 0 0 0 0 / 0 0 0 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 0 0 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 . 1 0 0 0 0 0 0 / 0-&D 7 - 1 0 0 0 0 / / 1 1 1 1 1 1 1 2 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 0 1 1 0 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 / 1 / 0 0 , 0 0 . /, 0 / / . / 0 0 0 1 0 1 1 1 1 2 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 0 0 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 0 1 / 0 0 0+ C'Md 1/ 0 - / 0 . 0 1 / 0 0 0 2 0 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 0 1 1 0 0 1 0 1 1 1 1 1 1 0 1 0 0 0 1 0 1 0 0 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 0 0 1 . / - / 6"EY6- / 1.5:- 0 1 / / 0 0 1 0 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 0 1 0 0 0 1 0 1 1 1 1 1 1 1 1 1 0 / . / 0 0 / 1 1 1 1 1 1 3 1 1 1 1 1 1 1 1 1 0 1 0 0 0 0 1-!;2* 0 / 0 . 0 . 0 / / 0 0 0 0 0 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 0 1 1 0 0 0 1 0 0 1 1 1 1 1 0 1 0 / 1 / 0 0 0 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 0 0 0 / 0 ,+ /- 0 0 / 0 0 0 / 2 0 0 2 0 0 1 0 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 0 0 2 0. / 0 0 2 1 0 1 1 1 1 0 1 / . 0 . 0 0 1 0 1 1 1 1 1 1 1 1 1 1 1 1 1 1 0 0 2 0 0 0 , ?/K , 0 0 0 / 0 1 1 / 0 0 0 / 0 4 0 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 / 1 0/ 5 1/ 0 1 0 1 1 1 1 0 2 0 0 / / 0 0 0 1 0 1 1 1 1 1 1 1 1 1 1 1 1 1 1 0 1 0 0 0, 5!Vh-D+ 1 / 0 0 0 1 3 1 1 1 1 0 0 0 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 0 1 1. 4 1 / 0 1 1 1 1 1 1 1 0 1 0 0 0 / 0 1 0 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 0 1 0 1 / 0 2 2* 0 / . 0 0 1 0 1 0 / / / 1 0 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 0 0 2 . / 0 0 1 0 1 1 0 1 1 1 1 0 1 1 0 0 1 0 0 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 0 0 0 0 /. 1 . / 0 0 0 1 0 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 0 0 / 1 0 1 0 0 1 0 1 2 1 1 1 1 1 2 0 0 1 0 1 2 1 1 1 1 1 1 0 1 1 1 1 1 1 1 1 1 . 0 /- . 0 / 0 / 0 1 1 0 1 - 1 1 1 3 1 3 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1
Octave
0
CristiRO/Monalisa
WEBS/WEB_GRAPH/WEB-INF/classes/lia/web/servlets/map2d/images/map0/map1_3.8/map2_3.8_1.2.oct
[ "Apache-2.0" ]
CREATE TABLE `tb_igmuoxapjx` ( `col_cvsykxnvpf` varchar(24) DEFAULT '' ) ENGINE=InnoDB DEFAULT CHARSET=utf8; CREATE TABLE `tb_wmwynbzgyg` ( `col_iupsnmieyl` smallint(5) unsigned DEFAULT NULL, `col_gnkgsewitj` decimal(10,0) DEFAULT '1', `col_cvsykxnvpf` varchar(24) DEFAULT '', `col_xailqzhuwy` blob ) ENGINE=InnoDB DEFAULT CHARSET=utf8;
SQL
3
yuanweikang2020/canal
parse/src/test/resources/ddl/alter/mysql_77.sql
[ "Apache-2.0" ]
Execute commands that can read lines from processes. This is sort of a coroutine-based version of select. Kind of. Fiber = require 'fibers' {ChildProcess} = require 'child_process' # Must be used inside a fiber class FiberReader constructor: -> @commands = [] @waiting = false @running = true @fiber = new Fiber => while @running if !@commands.length then @pause() else try @commands.shift() this catch err console.log "ERROR IN Reader command", err @fiber.run() run: (cmd)-> @commands.push cmd @resume() stop: -> @running = false @fiber = null addProc: (proc, options)-> proc._spawnData = Object.assign {pendingData: '', highWater: 4096}, options proc.stdout.on 'data', (value)=> @addInput proc, value.toString() proc.stdout.on 'close', => @endInput proc proc.stdout.on 'end', => @endInput proc proc.on 'exit', => @endInput proc addStream: (stream, options)-> stream._spawnData = Object.assign {pendingData: '', highWater: 4096}, options stream.on 'data', (value)=> @addInput stream, value.toString() stream.on 'close', => @endInput stream stream.on 'end', => @endInput stream addInput: (stream, str)-> stream._spawnData.pendingData += str if dataLen(stream) > highWater(stream) && hasLine stream realStream(stream).pause() @resume() endInput: (stream)-> stream.done = true @resume() pause: -> @waiting = true Fiber.yield() @waiting = false resume: -> if @waiting then @fiber.run() waitFor: (contFunc)-> result = null pendingFiberDone = false process.nextTick => contFunc (res)=> pendingFiberDone = true result = res @resume() res while !pendingFiberDone @pause() result readLine: (stream)-> index = stream._spawnData.pendingData.indexOf '\n' while !stream.done && index == -1 @pause() index = stream._spawnData.pendingData.indexOf '\n' if index == -1 then index = stream._spawnData.pendingData.length else index++ line = stream._spawnData.pendingData.substring 0, index stream._spawnData.pendingData = stream._spawnData.pendingData.substring index if !stream.done && realStream(stream).isPaused() && dataLen(stream) < highWater realStream(stream).resume() if stream.done && !line then null else line hasLine = (stream)-> stream._spawnData.pendingData.indexOf('\n') > -1 dataLen = (stream)-> stream._spawnData.pendingData.length highWater = (stream)-> stream._spawnData.highWater realStream = (stream)-> if stream instanceof ChildProcess then stream.stdout else stream fiberReader = -> new FiberReader() module.exports = { fiberReader }
Literate CoffeeScript
5
zot/Leisure
leisure/build/src/spawn.litcoffee
[ "Zlib" ]
create table t1 ( col0 int, col1 int, col2 int, col3 int, col4 int, col5 int, col6 int, col7 int, col8 int, col9 int, col10 int, col11 int, col12 int, col13 int, col14 int, col15 int, col16 int, col17 int, col18 int, col19 int, col20 int, col21 int, col22 int, col23 int, col24 int, col25 int, col26 int, col27 int, col28 int, col29 int, col30 int, col31 int, col32 int, col33 int, col34 int, col35 int, col36 int, col37 int, col38 int, col39 int, col40 int, col41 int, col42 int, col43 int, col44 int, col45 int, col46 int, col47 int, col48 int, col49 int, col50 int, col51 int, col52 int, col53 int, col54 int, col55 int, col56 int, col57 int, col58 int, col59 int, col60 int, col61 int, col62 int, col63 int, col64 int, col65 int, col66 int, col67 int, col68 int, col69 int, col70 int, col71 int, col72 int, col73 int, col74 int, col75 int, col76 int, col77 int, col78 int, col79 int, col80 int, col81 int, col82 int, col83 int, col84 int, col85 int, col86 int, col87 int, col88 int, col89 int, col90 int, col91 int, col92 int, col93 int, col94 int, col95 int, col96 int, col97 int, col98 int, col99 int, col100 int, col101 int, col102 int, col103 int, col104 int, col105 int, col106 int, col107 int, col108 int, col109 int, col110 int, col111 int, col112 int, col113 int, col114 int, col115 int, col116 int, col117 int, col118 int, col119 int, col120 int, col121 int, col122 int, col123 int, col124 int, col125 int, col126 int, col127 int, col128 int, col129 int, col130 int, col131 int, col132 int, col133 int, col134 int, col135 int, col136 int, col137 int, col138 int, col139 int, col140 int, col141 int, col142 int, col143 int, col144 int, col145 int, col146 int, col147 int, col148 int, col149 int, col150 int, col151 int, col152 int, col153 int, col154 int, col155 int, col156 int, col157 int, col158 int, col159 int, col160 int, col161 int, col162 int, col163 int, col164 int, col165 int, col166 int, col167 int, col168 int, col169 int, col170 int, col171 int, col172 int, col173 int, col174 int, col175 int, col176 int, col177 int, col178 int, col179 int, col180 int, col181 int, col182 int, col183 int, col184 int, col185 int, col186 int, col187 int, col188 int, col189 int, col190 int, col191 int, col192 int, col193 int, col194 int, col195 int, col196 int, col197 int, col198 int, col199 int, col200 int, col201 int, col202 int, col203 int, col204 int, col205 int, col206 int, col207 int, col208 int, col209 int, col210 int, col211 int, col212 int, col213 int, col214 int, col215 int, col216 int, col217 int, col218 int, col219 int, col220 int, col221 int, col222 int, col223 int, col224 int, col225 int, col226 int, col227 int, col228 int, col229 int, col230 int, col231 int, col232 int, col233 int, col234 int, col235 int, col236 int, col237 int, col238 int, col239 int, col240 int, col241 int, col242 int, col243 int, col244 int, col245 int, col246 int, col247 int, col248 int, col249 int, col250 int, col251 int, col252 int, col253 int, col254 int, col255 int );
SQL
1
suryatmodulus/tidb
br/tests/lightning_row-format-v2/data/rowformatv2.t1-schema.sql
[ "Apache-2.0", "BSD-3-Clause" ]
<div class="modal error hidden" id="modal-delete-album" aid=""> <h2>DELETE</h2> <p>everything in this album will be gone <strong>forever</strong>!</p> <b></b> <section> <p class="bold" id="deleting-albumname"></p> </section> <progress id="deleting-album" class="progress" value="0" max="100"></progress> <button class="action l md bold" onclick="deleteSelectedAlbum();">yes, delete</button> <button class="action r sm" onclick="hideActiveModal();">no, wait!</button> </div>
Kit
3
pws1453/web-client
source/imports/app/photos-modal-delete-album.kit
[ "MIT" ]
import 'std/encoding/csv/encode' import 'std/encoding/csv/decode' return { "fileWriter": encode.fileWriter, "Writer": encode.Writer, "fileReader": decode.fileReader, "CharReader": decode.CharReader, }
Inform 7
3
lfkeitel/nitrogen
nitrogen/std/encoding/csv/mod.ni
[ "BSD-3-Clause" ]
dim kajuVersion as string kajuVersion = ConstantValue( "Kaju.Version" ) dim parts() as string parts = kajuVersion.Split( "." ) if parts.Ubound < 2 then redim parts( 2 ) end if for i as integer = 0 to 2 if parts( i ) = "" then parts( i ) = "0" end if next i PropertyValue( "App.MajorVersion" ) = parts( 0 ) PropertyValue( "App.MinorVersion" ) = parts( 1 ) PropertyValue( "App.BugVersion" ) = parts( 2 ) PropertyValue( "App.ShortVersion" ) = kajuVersion PropertyValue( "App.LongVersion" ) = "v." + kajuVersion
Xojo
3
joneisen/Kaju
Kaju Admin App/Build Scripts/Update App Version.xojo_script
[ "MIT" ]
# Fish completion definition for you-get. complete -c you-get -s V -l version -d 'print version and exit' complete -c you-get -s h -l help -d 'print help and exit' complete -c you-get -s i -l info -d 'print extracted information' complete -c you-get -s u -l url -d 'print extracted information' complete -c you-get -l json -d 'print extracted URLs in JSON format' complete -c you-get -s n -l no-merge -d 'do not merge video parts' complete -c you-get -l no-caption -d 'do not download captions' complete -c you-get -s f -l force -d 'force overwrite existing files' complete -c you-get -s F -l format -x -d 'set video format to the specified stream id' complete -c you-get -s O -l output-filename -d 'set output filename' \ -x -a '(__fish_complete_path (commandline -ct) "output filename")' complete -c you-get -s o -l output-dir -d 'set output directory' \ -x -a '(__fish_complete_directories (commandline -ct) "output directory")' complete -c you-get -s p -l player -x -d 'stream extracted URL to the specified player' complete -c you-get -s c -l cookies -d 'load cookies.txt or cookies.sqlite' \ -x -a '(__fish_complete_path (commandline -ct) "cookies.txt or cookies.sqlite")' complete -c you-get -s x -l http-proxy -x -d 'use the specified HTTP proxy for downloading' complete -c you-get -s y -l extractor-proxy -x -d 'use the specified HTTP proxy for extraction only' complete -c you-get -l no-proxy -d 'do not use a proxy' complete -c you-get -s t -l timeout -x -d 'set socket timeout' complete -c you-get -s d -l debug -d 'show traceback and other debug info'
fish
4
adger-me/you-get
contrib/completion/you-get.fish
[ "MIT" ]
# a function returning unary(i + j) * -998 func $foo ( var %i i32, var %j i32) f32 { return ( recip f32( sqrt f32( cvt f32 i32( mul i32 ( extractbits i32 1 23 ( add i32 ( bnot i32 (dread i32 %i), lnot i32 (dread i32 %j))), neg i32 ( constval i32 -998))))))} # EXEC: %irbuild Main.mpl # EXEC: %irbuild Main.irb.mpl # EXEC: %cmp Main.irb.mpl Main.irb.irb.mpl
Maple
2
harmonyos-mirror/OpenArkCompiler-test
test/testsuite/irbuild_test/I0084-mapleall-irbuild-edge-unary/Main.mpl
[ "MulanPSL-1.0" ]
#include <metal_stdlib> #include "TexelSamplingTypes.h" using namespace metal; typedef struct { float3x3 convolutionKernel; } Convolution3x3Uniform; fragment half4 convolution3x3(NearbyTexelVertexIO fragmentInput [[stage_in]], texture2d<half> inputTexture [[texture(0)]], constant Convolution3x3Uniform& uniform [[ buffer(1) ]]) { constexpr sampler quadSampler(coord::pixel); half3 bottomColor = inputTexture.sample(quadSampler, fragmentInput.bottomTextureCoordinate).rgb; half3 bottomLeftColor = inputTexture.sample(quadSampler, fragmentInput.bottomLeftTextureCoordinate).rgb; half3 bottomRightColor = inputTexture.sample(quadSampler, fragmentInput.bottomRightTextureCoordinate).rgb; half4 centerColor = inputTexture.sample(quadSampler, fragmentInput.textureCoordinate); half3 leftColor = inputTexture.sample(quadSampler, fragmentInput.leftTextureCoordinate).rgb; half3 rightColor = inputTexture.sample(quadSampler, fragmentInput.rightTextureCoordinate).rgb; half3 topColor = inputTexture.sample(quadSampler, fragmentInput.topTextureCoordinate).rgb; half3 topRightColor = inputTexture.sample(quadSampler, fragmentInput.topRightTextureCoordinate).rgb; half3 topLeftColor = inputTexture.sample(quadSampler, fragmentInput.topLeftTextureCoordinate).rgb; half3 resultColor = topLeftColor * uniform.convolutionKernel[0][0] + topColor * uniform.convolutionKernel[0][1] + topRightColor * uniform.convolutionKernel[0][2]; resultColor += leftColor * uniform.convolutionKernel[1][0] + centerColor.rgb * uniform.convolutionKernel[1][1] + rightColor * uniform.convolutionKernel[1][2]; resultColor += bottomLeftColor * uniform.convolutionKernel[2][0] + bottomColor * uniform.convolutionKernel[2][1] + bottomRightColor * uniform.convolutionKernel[2][2]; return half4(resultColor, centerColor.a); }
Metal
4
luoxiao/GPUImage3
framework/Source/Operations/Convolution3x3.metal
[ "BSD-3-Clause" ]
// Copyright (c) 2021 Slack Technologies, Inc. // Use of this source code is governed by the MIT license that can be // found in the LICENSE file. #include "shell/common/asar/archive.h" #include <CommonCrypto/CommonDigest.h> #include <CoreFoundation/CoreFoundation.h> #include <Foundation/Foundation.h> #include <iomanip> #include <string> #include "base/logging.h" #include "base/mac/bundle_locations.h" #include "base/mac/foundation_util.h" #include "base/mac/scoped_cftyperef.h" #include "base/strings/sys_string_conversions.h" #include "shell/common/asar/asar_util.h" namespace asar { absl::optional<base::FilePath> Archive::RelativePath() const { base::FilePath bundle_path = base::mac::MainBundlePath().Append("Contents"); base::FilePath relative_path; if (!bundle_path.AppendRelativePath(path_, &relative_path)) return absl::nullopt; return relative_path; } absl::optional<IntegrityPayload> Archive::HeaderIntegrity() const { absl::optional<base::FilePath> relative_path = RelativePath(); // Callers should have already asserted this CHECK(relative_path.has_value()); NSDictionary* integrity = [[NSBundle mainBundle] objectForInfoDictionaryKey:@"ElectronAsarIntegrity"]; // Integrity not provided if (!integrity) return absl::nullopt; NSString* ns_relative_path = base::mac::FilePathToNSString(relative_path.value()); NSDictionary* integrity_payload = [integrity objectForKey:ns_relative_path]; if (!integrity_payload) return absl::nullopt; NSString* algorithm = [integrity_payload objectForKey:@"algorithm"]; NSString* hash = [integrity_payload objectForKey:@"hash"]; if (algorithm && hash && [algorithm isEqualToString:@"SHA256"]) { IntegrityPayload header_integrity; header_integrity.algorithm = HashAlgorithm::SHA256; header_integrity.hash = base::SysNSStringToUTF8(hash); return header_integrity; } return absl::nullopt; } } // namespace asar
Objective-C++
4
TarunavBA/electron
shell/common/asar/archive_mac.mm
[ "MIT" ]
"""Tests for the Tomorrow.io Weather API integration."""
Python
0
MrDelik/core
tests/components/tomorrowio/__init__.py
[ "Apache-2.0" ]
code Text=12; Text(0, "Hello World")
XProc
0
venusing1998/hello-world
x/xpl0.xpl
[ "MIT" ]
/** * This file is part of the Phalcon Framework. * * (c) Phalcon Team <team@phalcon.io> * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. */ namespace Phalcon\Mvc\Model; use Phalcon\Mvc\ModelInterface; use Phalcon\Mvc\Model\Transaction\ManagerInterface; /** * Phalcon\Mvc\Model\TransactionInterface * * Interface for Phalcon\Mvc\Model\Transaction */ interface TransactionInterface { /** * Starts the transaction */ public function begin() -> bool; /** * Commits the transaction */ public function commit() -> bool; /** * Returns connection related to transaction */ public function getConnection() -> <\Phalcon\Db\Adapter\AdapterInterface>; /** * Returns validations messages from last save try */ public function getMessages() -> array; /** * Checks whether transaction is managed by a transaction manager */ public function isManaged() -> bool; /** * Checks whether internal connection is under an active transaction */ public function isValid() -> bool; /** * Rollbacks the transaction */ public function rollback(string rollbackMessage = null, <ModelInterface> rollbackRecord = null) -> bool; /** * Sets if is a reused transaction or new once */ public function setIsNewTransaction(bool isNew) -> void; /** * Sets flag to rollback on abort the HTTP connection */ public function setRollbackOnAbort(bool rollbackOnAbort) -> void; /** * Sets object which generates rollback action */ public function setRollbackedRecord(<ModelInterface> record) -> void; /** * Sets transaction manager related to the transaction */ public function setTransactionManager(<ManagerInterface> manager) -> void; /** * Enables throwing exception */ public function throwRollbackException(bool status) -> <TransactionInterface>; }
Zephir
4
tidytrax/cphalcon
phalcon/Mvc/Model/TransactionInterface.zep
[ "BSD-3-Clause" ]
"use strict"; var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault"); Object.defineProperty(exports, "__esModule", { value: true }); exports.default = void 0; var _createSvgIcon = _interopRequireDefault(require("./utils/createSvgIcon")); var _jsxRuntime = require("react/jsx-runtime"); var _default = (0, _createSvgIcon.default)( /*#__PURE__*/(0, _jsxRuntime.jsx)("path", { d: "M6.5 9H4c-.55 0-1 .45-1 1v4.31c0 .38.31.69.69.69h.11c.38 0 .69-.31.69-.69V13h1.1l.72 1.59c.12.25.37.41.64.41.5 0 .83-.51.64-.97L7.1 12.9c.5-.3.9-.8.9-1.4v-1C8 9.68 7.32 9 6.5 9zm0 2.5h-2v-1h2v1zm5-2.5c-.73 0-1.37.5-1.55 1.21l-.97 3.89c-.12.46.23.9.7.9.33 0 .62-.23.7-.55l.24-.95h1.75l.23.95c.08.32.37.55.71.55.47 0 .82-.44.71-.9l-.97-3.88C12.87 9.5 12.23 9 11.5 9zm-.5 3 .25-1h.5l.25 1h-1zm8.84-2.45-.6 2.45-.56-2.26c-.1-.44-.49-.74-.94-.74-.45 0-.84.3-.94.74L16.24 12l-.6-2.45c-.08-.32-.37-.55-.71-.55-.47 0-.82.44-.71.9l1.09 4.38c.12.42.5.72.93.72.43 0 .81-.3.92-.72l.58-2.32.58 2.32c.11.42.49.72.92.72.43 0 .81-.3.92-.72l1.09-4.38c.12-.46-.23-.9-.7-.9-.34 0-.63.23-.71.55z" }), 'RawOnRounded'); exports.default = _default;
JavaScript
4
good-gym/material-ui
packages/material-ui-icons/lib/RawOnRounded.js
[ "MIT" ]
using Uno; using Uno.Collections; using Uno.Testing; using FuseTest; using Fuse.Text.Test; namespace Fuse.Text.Edit.Test { public class EditTest : TestBase { string[] _singleRunStrings = new string[] { "", "car", "abcxyz", }; string[] _singleDirStrings = new string[] { "", "car", "abc xyz", "abc xyz lol", }; string[] _singleLineStrings = new string[] { "", "car", "abc xyz", "abc xyz lol", "CAR", "abc XYZ", "ABC xyz", "ABC xyz LOL", "abc XYZ lol", "ABC xyz LOL", "ABC XYZ lol", }; string[] _strings = new string[] { "", "car", "abc xyz", "abc xyz lol", "abc\nxyz lol", "abc xyz\nlol", "abc\nxyz\nlol", "CAR", "abc XYZ", "ABC xyz", "ABC xyz LOL", "abc XYZ lol", "abc\nXYZ lol", "abc XYZ\nlol", "abc\nXYZ\nlol", "ABC\nxyz LOL", "ABC xyz\nLOL", "ABC\nxyz\nLOL", "ABC xyz\nLOL", "\nABC\nxyz\nLOL", "\n\nABC\n\nxyz\n\n\nLOL", }; static CaretContext MockCaretContext(string source, int level = 0) { var pruns = Util.MockPositionedRuns(source, level); return new CaretContext(pruns, source); } [Test] public void LeftRightMost() { for (var level = 0; level < 2; ++level) foreach (var source in _strings) { var cc = MockCaretContext(source, level); if (source.Length > 0) Assert.IsTrue((int)cc.LeftMost() < (int)cc.RightMost()); else Assert.AreEqual(cc.LeftMost(), cc.RightMost()); } } [Test] public void MoveRight() { for (var level = 0; level < 2; ++level) foreach (var source in _strings) { var cc = MockCaretContext(source, level); var caret = cc.LeftMost(); while (true) { var newCaret = cc.MoveRight(caret); if (newCaret == caret) { caret = newCaret; break; } Assert.IsTrue((int)newCaret > (int)caret, "Moved right: " + caret + " -> " + newCaret); caret = newCaret; } Assert.AreEqual(cc.RightMost(), caret); } } [Test] public void MoveLeft() { for (var level = 0; level < 2; ++level) foreach (var source in _strings) { var cc = MockCaretContext(source, level); var caret = cc.RightMost(); while (true) { var newCaret = cc.MoveLeft(caret); if (newCaret == caret) { caret = newCaret; break; } Assert.IsTrue((int)newCaret < (int)caret, "Moved left: " + caret + " -> " + newCaret); caret = newCaret; } Assert.AreEqual(cc.LeftMost(), caret); } } [Test] public void MoveUpFirstLine() { var cc = MockCaretContext("abc def"); var caret = cc.LeftMost(); while (true) { var upCaret = cc.MoveUp(caret); Assert.AreEqual(cc.LeftMost(), upCaret); var newCaret = cc.MoveRight(caret); if (newCaret == caret) { caret = newCaret; break; } caret = newCaret; } } [Test] public void MoveDownLastLine() { var cc = MockCaretContext("abc def"); var caret = cc.LeftMost(); while (true) { var downCaret = cc.MoveDown(caret); Assert.AreEqual(cc.RightMost(), downCaret); var newCaret = cc.MoveRight(caret); if (newCaret == caret) { caret = newCaret; break; } caret = newCaret; } } [Test] public void MoveUp() { var cc = MockCaretContext("abc\ndef"); for (int i = 4; i < 8; ++i) Assert.AreEqual((CaretIndex)(i - 4), cc.MoveUp((CaretIndex)i)); } [Test] public void MoveDown() { var cc = MockCaretContext("abc\ndef"); for (int i = 0; i < 4; ++i) Assert.AreEqual((CaretIndex)(i + 4), cc.MoveDown((CaretIndex)i)); } [Test] public void GetVisualPosition() { for (var level = 0; level < 2; ++level) foreach (var source in _singleLineStrings) { var cc = MockCaretContext(source, level); var lastPosition = float2(-100, 0); for (int i = 0; i < source.Length + 1; ++i) { var position = cc.GetVisualPosition((CaretIndex)i); Assert.IsTrue(lastPosition.X < position.X); } } } [Test] public void GetClosest() { for (var level = 0; level < 2; ++level) foreach (var source in _singleLineStrings) { var cc = MockCaretContext(source, level); var closestLeft = cc.GetClosest(float2(0, 0), 20); var closestRight = cc.GetClosest(float2(100, 0), 20); if (source.Length > 0) Assert.IsTrue((int)closestLeft < (int)closestRight); } } [Test] public void InsertLTR() { foreach (var source in _singleDirStrings) { var cc = MockCaretContext(source); for (int i = (int)cc.LeftMost(); i <= (int)cc.RightMost(); ++i) { var caret = (CaretIndex)i; var result = cc.Insert('0', ref caret); Assert.AreEqual(source.Insert(i, "0"), result); Assert.AreEqual((int)caret - 1, i); } } } [Test] public void InsertRTL() { foreach (var source in _singleRunStrings) { var cc = MockCaretContext(source, 1); for (int i = (int)cc.LeftMost(); i <= (int)cc.RightMost(); ++i) { var caret = (CaretIndex)i; var result = cc.Insert('0', ref caret); Assert.AreEqual(source.Insert(source.Length - i, "0"), result); if (source.Length > 0) Assert.AreEqual((int)caret, i); } } } [Test] public void DeleteLTR() { foreach (var source in _singleDirStrings) { var cc = MockCaretContext(source); for (int i = (int)cc.LeftMost(); i <= (int)cc.RightMost(); ++i) { var caret = (CaretIndex)i; var result = cc.Delete(ref caret); var ir = i; Assert.AreEqual((int)caret, i); if (0 <= ir && ir < source.Length) Assert.AreEqual(source.DeleteAt(ref ir), result); else Assert.AreEqual(source, result); } } } [Test] public void DeleteRTL() { foreach (var source in _singleRunStrings) { var cc = MockCaretContext(source, 1); for (int i = (int)cc.LeftMost(); i <= (int)cc.RightMost(); ++i) { var caret = (CaretIndex)i; var result = cc.Delete(ref caret); if (i > 0) { var ir = source.Length - i; Assert.AreEqual((int)caret, Math.Max(0, i - 1)); Assert.AreEqual(source.DeleteAt(ref ir), result); } else { Assert.AreEqual((int)caret, i); Assert.AreEqual(source, result); } } } } [Test] public void BackspaceLTR() { foreach (var source in _singleDirStrings) { var cc = MockCaretContext(source); for (int i = (int)cc.LeftMost(); i <= (int)cc.RightMost(); ++i) { var caret = (CaretIndex)i; var result = cc.Backspace(ref caret); if (i > 0) { Assert.AreEqual((int)caret, i - 1); var ir = i - 1; Assert.AreEqual(source.DeleteAt(ref ir), result); } else { Assert.AreEqual((int)caret, i); Assert.AreEqual(source, result); } } } } [Test] public void BackspaceRTL() { foreach (var source in _singleRunStrings) { var cc = MockCaretContext(source, 1); for (int i = (int)cc.LeftMost(); i <= (int)cc.RightMost(); ++i) { var caret = (CaretIndex)i; var result = cc.Backspace(ref caret); if (i < cc.RightMost()) { Assert.AreEqual((int)caret, i); var ir = source.Length - i - 1; Assert.AreEqual(source.DeleteAt(ref ir), result); } else { Assert.AreEqual((int)caret, i); Assert.AreEqual(source, result); } } } } [Test] public void DeleteSpanLTR() { foreach (var source in _singleDirStrings) { var cc = MockCaretContext(source); for (int i = (int)cc.LeftMost(); i <= (int)cc.RightMost(); ++i) for (int j = (int)cc.LeftMost(); j <= (int)cc.RightMost(); ++j) { var caret = (CaretIndex)j; var result = cc.DeleteSpan((CaretIndex)i, ref caret); if (i == j) { Assert.AreEqual(i, (int)caret); } else { var start = Math.Min(i, j); var end = Math.Max(i, j) - 1; Assert.AreEqual(start, (int)caret); Assert.AreEqual(source.DeleteSpan(start, end), result); } } } } [Test] public void DeleteSpanRTL() { foreach (var source in _singleRunStrings) { var cc = MockCaretContext(source, 1); for (int i = (int)cc.LeftMost(); i <= (int)cc.RightMost(); ++i) for (int j = (int)cc.LeftMost(); j <= (int)cc.RightMost(); ++j) { var caret = (CaretIndex)j; var result = cc.DeleteSpan((CaretIndex)i, ref caret); if (i == j) { Assert.AreEqual(i, (int)caret); } else { var start = Math.Max(i, j); var end = Math.Min(i, j); var startCluster = source.Length - start; var endCluster = source.Length - end - 1; Assert.AreEqual(end, (int)caret); Assert.AreEqual(source.DeleteSpan(startCluster, endCluster), result); } } } } } }
Uno
5
helilabs/fuselibs
Source/Fuse.Text/Tests/Edit.uno
[ "MIT" ]
# # Classes # class empty { } class empty2 { } class Lexer { func Run() { echo # TODO: Fix separators #echo }; virtual Foo() { echo } } #echo $'hi\n' class FileReader : Reader { var x Int var y var a Float; var b; # TODO: should this be super() ? func init(super, x, y) { echo } override Run() { var x = f(x) set x[1] = 2 # Another statement echo f(x) 1 + 2 obj.method(); obj.method2() 3,4 (5,6) # Doesn't work because it's not testlist # Python has expr_stmt x = 1 } } class OneVar { var a } # should we allow this? C++ allows it. #class OneVar { } class OneLine { var a; var b } class OneLine2 { var a; var b; func f(x) { echo; echo } }
Tea
3
Schweinepriester/oil
tea/testdata/class.tea
[ "Apache-2.0" ]
## PowerShellGet demo PowerShellGet is a PowerShell module with the commands for discovering, installing, updating and publishing the PowerShell artifacts like Modules, DSC Resources, Role Capabilities and Scripts. This demo shows discovering, installing, updating, uninstalling the PowerShell scripts from an online repository.
Markdown
3
Jellyfrog/PowerShell
demos/powershellget/README.md
[ "MIT" ]
using Uno.Compiler.ExportTargetInterop; namespace Fuse.Internal { /** A reference that in C++ behaves just like a plain pointer. Faster than weakref, but not technically a weakref. This is unsafe to use. The user must take special care that a separate reference to the object exists before de-referencing an `RawPointer`. Used internally with special care in performance critical contexts. */ [extern(CPLUSPLUS) TargetSpecificType] struct RawPointer<T> where T : class { extern(!CPLUSPLUS) readonly T _object; extern(!CPLUSPLUS) RawPointer(T obj) { _object = obj; } public static explicit operator T(RawPointer<T> weak) { if defined(CPLUSPLUS) return extern<T> "(uObject*) $0"; else return weak._object; } public static implicit operator RawPointer<T>(T obj) { if defined(CPLUSPLUS) return extern<RawPointer<T>> "(void*) $0"; else return new RawPointer<T>(obj); } } }
Uno
4
helilabs/fuselibs
Source/Fuse.Common/Internal/RawPointer.uno
[ "MIT" ]
-- make global variables readonly local f=function (t,i) error("cannot redefine global variable `"..i.."'",2) end local g={} local G=getfenv() setmetatable(g,{__index=G,__newindex=f}) setfenv(1,g) -- an example rawset(g,"x",3) x=2 y=1 -- cannot redefine `y'
Lua
3
tomliugen/tomliugen-redis-3.2.2-rc
deps/lua/test/readonly.lua
[ "BSD-3-Clause" ]
{{! Copyright (c) Avanade. Licensed under the MIT License. See https://github.com/Avanade/Beef }} CREATE PROCEDURE [{{Schema}}].[sp{{EventOutboxTableName}}Dequeue] @MaxDequeueCount INT = 10 -- Maximum number of events to dequeue AS BEGIN /* * This is automatically generated; any changes will be lost. */ SET NOCOUNT ON; BEGIN TRY -- Wrap in a transaction. BEGIN TRANSACTION -- Dequeued outbox resultant identifier. DECLARE @dequeuedIdentity TABLE([EventOutboxId] BIGINT); -- Dequeue event -> ROWLOCK+UPDLOCK maintain singular access for ordering and concurrency WITH cte([EventOutboxId], [DequeuedDate]) AS ( SELECT TOP(@MaxDequeueCount) [EventOutboxId], [DequeuedDate] FROM [{{Schema}}].[{{EventOutboxTableName}}] WITH (ROWLOCK, UPDLOCK) WHERE [DequeuedDate] IS NULL ORDER BY [EventOutboxId] ) UPDATE Cte SET [DequeuedDate] = SYSUTCDATETIME() OUTPUT deleted.EventOutboxId INTO @dequeuedIdentity; -- Get the dequeued event outbox data. SELECT [EventOutboxId], [EventId], [Subject], [Action], [CorrelationId], [TenantId], [ValueType], [EventData] FROM [{{Schema}}].[{{EventOutboxTableName}}Data] WHERE [EventOutboxId] IN (SELECT [EventOutboxId] FROM @dequeuedIdentity) -- Commit the transaction. COMMIT TRANSACTION RETURN 0 END TRY BEGIN CATCH -- Rollback transaction and rethrow error. IF @@TRANCOUNT > 0 ROLLBACK TRANSACTION; THROW; END CATCH END
Harbour
4
ciaranodonnell/Beef
tools/Beef.CodeGen.Core/Templates/DbEobSpDequeue_sql.hb
[ "MIT" ]
--- prev: sbt.textile next: specs.textile title: More collections layout: post --- Scala provides a nice set of collection implementations. It also provides some abstractions for collection types. This allows you to write code that can work with a collection of <code>Foo</code>s without worrying whether that collection is a <code>List</code>, <code>Set</code>, or what-have-you. "This page":https://www.decodified.com/scala/collections-api.xml offers a great way to follow the default implementations and links to all the scaladoc. * "Basics":#basics Collection types you'll use all the time * "Hierarchy":#hierarchy Collection abstractions * "Methods":#methods * "Mutable":#mutable * "Java collections":#java just work h2(#basics). The basics h3. List The standard linked list. <pre> scala> List(1, 2, 3) res0: List[Int] = List(1, 2, 3) </pre> You can cons them up as you would expect in a functional language. <pre> scala> 1 :: 2 :: 3 :: Nil res1: List[Int] = List(1, 2, 3) </pre> *See also* "API doc":https://www.scala-lang.org/api/current/scala/collection/immutable/List.html h3. Set Sets have no duplicates <pre> scala> Set(1, 1, 2) res2: scala.collection.immutable.Set[Int] = Set(1, 2) </pre> *See also* "API doc":https://www.scala-lang.org/api/current/scala/collection/immutable/Set.html h3. Seq Sequences have a defined order. <pre> scala> Seq(1, 1, 2) res3: Seq[Int] = List(1, 1, 2) </pre> (Notice that returned a List. <code>Seq</code> is a trait; List is a lovely implementation of Seq. There's a factory object <code>Seq</code> which, as you see here, creates Lists.) *See also* "API doc":https://www.scala-lang.org/api/current/scala/collection/Seq.html h3. Map Maps are key value containers. <pre> scala> Map('a' -> 1, 'b' -> 2) res4: scala.collection.immutable.Map[Char,Int] = Map((a,1), (b,2)) </pre> *See also* "API doc":https://www.scala-lang.org/api/current/scala/collection/immutable/Map.html h2(#hierarchy). The Hierarchy These are all traits, both the mutable and immutable packages have implementations of these as well as specialized implementations. h3. Traversable All collections can be traversed. This trait defines standard function combinators. These combinators are written in terms of @foreach@, which collections must implement. *See Also* "API doc":https://www.scala-lang.org/api/current/scala/collection/Traversable.html h3. Iterable Has an @iterator()@ method to give you an Iterator over the elements. *See Also* "API doc":https://www.scala-lang.org/api/current/scala/collection/Iterable.html h3. Seq Sequence of items with ordering. *See Also* "API doc":https://www.scala-lang.org/api/current/scala/collection/Seq.html h3. Set A collection of items with no duplicates. *See Also* "API doc":https://www.scala-lang.org/api/current/scala/collection/immutable/Set.html h3. Map Key Value Pairs. *See Also* "API doc":https://www.scala-lang.org/api/current/scala/collection/immutable/Map.html h2(#methods). The methods h3. Traversable All of these methods below are available all the way down. The argument and return types types won't always look the same as subclasses are free to override them. <pre> def head : A def tail : Traversable[A] </pre> Here is where the Functional Combinators are defined. <code> def map [B] (f: (A) => B) : CC[B] </code> returns a collection with every element transformed by @f@ <code> def foreach[U](f: Elem => U): Unit </code> executes @f@ over each element in a collection. <code> def find (p: (A) => Boolean) : Option[A] </code> returns the first element that matches the predicate function <code> def filter (p: (A) => Boolean) : Traversable[A] </code> returns a collection with all elements matching the predicate function Partitioning: <code> def partition (p: (A) ⇒ Boolean) : (Traversable[A], Traversable[A]) </code> Splits a collection into two halves based on a predicate function <code> def groupBy [K] (f: (A) => K) : Map[K, Traversable[A]] </code> Conversion: Interestingly, you can convert one collection type to another. <pre> def toArray : Array[A] def toArray [B >: A] (implicit arg0: ClassManifest[B]) : Array[B] def toBuffer [B >: A] : Buffer[B] def toIndexedSeq [B >: A] : IndexedSeq[B] def toIterable : Iterable[A] def toIterator : Iterator[A] def toList : List[A] def toMap [T, U] (implicit ev: <:<[A, (T, U)]) : Map[T, U] def toSeq : Seq[A] def toSet [B >: A] : Set[B] def toStream : Stream[A] def toString () : String def toTraversable : Traversable[A] </pre> Let's convert a Map to an Array. You get an Array of the Key Value pairs. <pre> scala> Map(1 -> 2).toArray res41: Array[(Int, Int)] = Array((1,2)) </pre> h3. Iterable Adds access to an iterator. <pre> def iterator: Iterator[A] </pre> What does an Iterator give you? <pre> def hasNext(): Boolean def next(): A </pre> This is very Java-esque. You often won't see iterators used in Scala, you are much more likely to see the functional combinators or a for-comprehension used. h3. Set <pre> def contains(key: A): Boolean def +(elem: A): Set[A] def -(elem: A): Set[A] </pre> h3. Map Sequence of key and value pairs with lookup by key. Pass a List of Pairs into apply() like so <pre> scala> Map("a" -> 1, "b" -> 2) res0: scala.collection.immutable.Map[java.lang.String,Int] = Map((a,1), (b,2)) </pre> Or also like: <pre> scala> Map(("a", 2), ("b", 2)) res0: scala.collection.immutable.Map[java.lang.String,Int] = Map((a,2), (b,2)) </pre> h6. Digression What is <code>-></code>? That isn't special syntax, it's a method that returns a Tuple. <pre> scala> "a" -> 2 res0: (java.lang.String, Int) = (a,2) </pre> Remember, that is just sugar for <pre> scala> "a".->(2) res1: (java.lang.String, Int) = (a,2) </pre> You can also build one up via <code>++</code> <pre> scala> Map.empty ++ List(("a", 1), ("b", 2), ("c", 3)) res0: scala.collection.immutable.Map[java.lang.String,Int] = Map((a,1), (b,2), (c,3)) </pre> h3. Commonly-used subclasses *HashSet and HashMap* Quick lookup, the most commonly used forms of these collections. "HashSet API":https://www.scala-lang.org/api/current/scala/collection/immutable/HashSet.html, "HashMap API":https://www.scala-lang.org/api/current/scala/collection/immutable/HashMap.html *TreeMap* A subclass of SortedMap, it gives you ordered access. "TreeMap API":https://www.scala-lang.org/api/current/scala/collection/immutable/TreeMap.html *Vector* Fast random selection and fast updates. "Vector API":https://www.scala-lang.org/api/current/scala/collection/immutable/Vector.html <pre> scala> IndexedSeq(1, 2, 3) res0: IndexedSeq[Int] = Vector(1, 2, 3) </pre> *Range* Ordered sequence of Ints that are spaced apart. You will often see this used where a counting for-loop was used before. "Range API":https://www.scala-lang.org/api/current/scala/collection/immutable/Range.html <pre> scala> for (i <- 1 to 3) { println(i) } 1 2 3 </pre> Ranges have the standard functional combinators available to them. <pre> scala> (1 to 3).map { i => i } res0: scala.collection.immutable.IndexedSeq[Int] = Vector(1, 2, 3) </pre> h3. Defaults Using apply methods on the traits will give you an instance of the default implementation, For instance, Iterable(1, 2) returns a List as its default implementation. <pre> scala> Iterable(1, 2) res0: Iterable[Int] = List(1, 2) </pre> Same with Seq, as we saw earlier <pre> scala> Seq(1, 2) res3: Seq[Int] = List(1, 2) scala> Iterable(1, 2) res1: Iterable[Int] = List(1, 2) scala> Sequence(1, 2) warning: there were deprecation warnings; re-run with -deprecation for details res2: Seq[Int] = List(1, 2) </pre> Set <pre> scala> Set(1, 2) res31: scala.collection.immutable.Set[Int] = Set(1, 2) </pre> h3. Some descriptive traits *IndexedSeq* fast random-access of elements and a fast length operation. "API doc":https://www.scala-lang.org/api/current/scala/collection/IndexedSeq.html *LinearSeq* fast access only to the first element via head, but also has a fast tail operation. "API doc":https://www.scala-lang.org/api/current/scala/collection/LinearSeq.html h4. Mutable vs. Immutable immutable Pros * Can't change in multiple threads Con * Can't change at all Scala allows us to be pragmatic, it encourages immutability but does not penalize us for needing mutability. This is very similar to var vs. val. We always start with val and move back to var when required. We favor starting with the immutable versions of collections but switching to the mutable ones if performance dictates. Using immutable collections means you won't accidentally change things in multiple threads. h2(#mutable). Mutable All of the above classes we've discussed were immutable. Let's discuss the commonly used mutable collections. *HashMap* defines @getOrElseUpdate@, @+=@ "HashMap API":https://www.scala-lang.org/api/current/scala/collection/mutable/HashMap.html <pre> scala> val numbers = collection.mutable.Map(1 -> 2) numbers: scala.collection.mutable.Map[Int,Int] = Map((1,2)) scala> numbers.get(1) res0: Option[Int] = Some(2) scala> numbers.getOrElseUpdate(2, 3) res54: Int = 3 scala> numbers res55: scala.collection.mutable.Map[Int,Int] = Map((2,3), (1,2)) scala> numbers += (4 -> 1) res56: numbers.type = Map((2,3), (4,1), (1,2)) </pre> *ListBuffer and ArrayBuffer* Defines @+=@ "ListBuffer API":https://www.scala-lang.org/api/current/scala/collection/mutable/ListBuffer.html, "ArrayBuffer API":https://www.scala-lang.org/api/current/scala/collection/mutable/ArrayBuffer.html *LinkedList and DoubleLinkedList* "LinkedList API":https://www.scala-lang.org/api/current/scala/collection/mutable/LinkedList.html, "DoubleLinkedList API":https://www.scala-lang.org/api/current/scala/collection/mutable/DoubleLinkedList.html *PriorityQueue* "API doc":https://www.scala-lang.org/api/current/scala/collection/mutable/PriorityQueue.html *Stack and ArrayStack* "Stack API":https://www.scala-lang.org/api/current/scala/collection/mutable/Stack.html, "ArrayStack API":https://www.scala-lang.org/api/current/scala/collection/mutable/ArrayStack.html *StringBuilder* Interestingly, StringBuilder is a collection. "API doc":https://www.scala-lang.org/api/current/scala/collection/mutable/StringBuilder.html h2(#java). Life with Java You can easily move between Java and Scala collection types using conversions that are available in the <a href="https://www.scala-lang.org/api/current/index.html#scala.collection.JavaConverters$">JavaConverters package</a>. It decorates commonly-used Java collections with <code>asScala</code> methods and Scala collections with <code>asJava</code> methods. <pre> import scala.collection.JavaConverters._ val sl = new scala.collection.mutable.ListBuffer[Int] val jl : java.util.List[Int] = sl.asJava val sl2 : scala.collection.mutable.Buffer[Int] = jl.asScala assert(sl eq sl2) </pre> Two-way conversions: <pre> scala.collection.Iterable <=> java.lang.Iterable scala.collection.Iterable <=> java.util.Collection scala.collection.Iterator <=> java.util.{ Iterator, Enumeration } scala.collection.mutable.Buffer <=> java.util.List scala.collection.mutable.Set <=> java.util.Set scala.collection.mutable.Map <=> java.util.{ Map, Dictionary } scala.collection.mutable.ConcurrentMap <=> java.util.concurrent.ConcurrentMap </pre> In addition, the following one way conversions are provided: <pre> scala.collection.Seq => java.util.List scala.collection.mutable.Seq => java.util.List scala.collection.Set => java.util.Set scala.collection.Map => java.util.Map </pre>
Textile
4
AstronomiaDev/scala_school
web/coll2.textile
[ "Apache-2.0" ]
static const q31_t in_q31[256] = { 0x7EC0DA9F, 0x300D8567, 0x2BB3A36E, 0x7136A168, 0x6520B7C7, 0x4B02E46B, 0x00F28BF3, 0x53AF1EED, 0x26DACA64, 0x61E42533, 0x289C2195, 0x320B10A6, 0x4B458BC8, 0x3EFC205D, 0x186D0FD2, 0x492D543D, 0x766CF7FC, 0x008E7BAA, 0x23C340ED, 0x78A2DB82, 0x2A3F6DA9, 0x0D3BA980, 0x5FBCBDDE, 0x6156807C, 0x77C1054B, 0x2D2A3FB6, 0x319FD45F, 0x40E4CFE0, 0x1E57E339, 0x10366F57, 0x5F47B4E1, 0x085EEE46, 0x24FCC76A, 0x22E956F1, 0x264624C9, 0x68E5C459, 0x1453E2D4, 0x0FA7A730, 0x65B8CC3C, 0x5B14E87D, 0x1701BA00, 0x3762D3BD, 0x687DD069, 0x53A197BD, 0x2F57F76B, 0x4F80E077, 0x57AF1A55, 0x066103DA, 0x2EE7F54D, 0x32AD8B74, 0x4FC8905A, 0x71E4D3A6, 0x6A686669, 0x20C8AFB3, 0x561691C1, 0x6E3610FF, 0x54F805CE, 0x67EEFB61, 0x6325DE47, 0x3ACF0D51, 0x4BB1E9BC, 0x16DA5132, 0x1DC24B7F, 0x46D39B7D, 0x0748D99A, 0x67507907, 0x71C2A0CE, 0x66A12B5E, 0x5EAABE83, 0x36C22505, 0x5439ED56, 0x126AD140, 0x1948F636, 0x7F409FEF, 0x18F56483, 0x38AB99E5, 0x3E1BF383, 0x538C5818, 0x3596884D, 0x40D0E7E8, 0x1AC31B77, 0x6CF092DD, 0x014A8B8A, 0x7F551DEA, 0x496254F2, 0x6C461888, 0x3B6D079C, 0x428B6A46, 0x6048E928, 0x4FB8D370, 0x33D83670, 0x1A90FCAC, 0x0D271BEC, 0x24B4DE7B, 0x0D3ECB47, 0x433B9F97, 0x528B0A89, 0x63556DE3, 0x7C7929E5, 0x0659F9FF, 0x702082A0, 0x5798C74A, 0x7D960034, 0x4B681785, 0x402424B5, 0x1D60440C, 0x6ACC3AA5, 0x250C518A, 0x6DCE1A85, 0x66763618, 0x3CDB940A, 0x3DD502EB, 0x1D0875CE, 0x2B4BB5CC, 0x7BDC1788, 0x0F557C39, 0x1068867B, 0x3A2302E7, 0x3731F7E3, 0x1AA32A53, 0x2E2B9E2A, 0x70E827E4, 0x5D901AF0, 0x386B8802, 0x5FA445A9, 0x20164734, 0x0EB4BF42, 0x1D9436E2, 0x1D303CD8, 0x21F57E58, 0x68536562, 0x6624E4E5, 0x387D3164, 0x5FADDABE, 0x36CC936A, 0x7DE389A8, 0x68F2A47E, 0x31B8B7DA, 0x421638B0, 0x5BC0179D, 0x7FA4BF39, 0x5C701CFE, 0x054D8A1D, 0x71C91AB5, 0x062477BA, 0x719A957E, 0x09F31E9D, 0x509616E3, 0x5E7209E6, 0x569D8B13, 0x44F829E3, 0x5F9D760E, 0x64552B0B, 0x14DC7F16, 0x0EDA6C23, 0x7418AB03, 0x7F594927, 0x0FB0C1D0, 0x5290CA0C, 0x668F298D, 0x651FC58F, 0x11127EB0, 0x19FCFC93, 0x2CFDE885, 0x30E5C31E, 0x300DBB85, 0x31EF4F9F, 0x26D1F262, 0x7FFFFFFF, 0x1DE7A255, 0x0E10AA1A, 0x40569908, 0x7AE61A22, 0x69F5C66F, 0x401FB521, 0x40CB62A5, 0x42FEE3C4, 0x245AB85D, 0x2C4641DB, 0x1CF200FF, 0x1117E2F5, 0x30FE9091, 0x3451FA7B, 0x141A9887, 0x1BCC90DA, 0x3D085542, 0x1B0A0D05, 0x30DD6FC6, 0x39BEFA2C, 0x1AB4D70F, 0x4C23A981, 0x325A4A0E, 0x08D0869C, 0x1E10200B, 0x30A9C66F, 0x7C5EB84B, 0x208D9434, 0x2A29F93F, 0x4AC7FAC3, 0x7225746B, 0x51E325F3, 0x565BEE9F, 0x0C726E6E, 0x64BB53B2, 0x16CF5076, 0x50555E8E, 0x1241BFCE, 0x7CC7F9CB, 0x29CAF376, 0x004BE8C0, 0x4F221E3D, 0x4DD7D95A, 0x24F96D3C, 0x40C2190F, 0x2864E88C, 0x57829007, 0x4AD3F9B2, 0x6D76E399, 0x29B3AE51, 0x33F7A257, 0x406A541C, 0x73A906E1, 0x2D247E53, 0x1EE346D9, 0x1016E2E7, 0x77296AB5, 0x0D2CE0F4, 0x35AAC25B, 0x1ABB0B51, 0x3E3DC093, 0x32C05430, 0x0B284854, 0x5AD3ED27, 0x7B27254C, 0x74E2E388, 0x475A4B56, 0x12A024CC, 0x047EACBC, 0x71C45F87, 0x1E983936, 0x5D043868, 0x6EA935A8, 0x1254F5AD, 0x742915B4, 0x55C51426, 0x14CBDAD3, 0x0C76C37C, 0x497187E5, 0x7B5AFF52, 0x2E455C16, 0x51FD82D8, 0x0BB487B1, 0x1CAB4585, 0x40038105, 0x5A81393B, 0x4464EC3B }; static const uint32_t ref_f32[256] = { 0x3f7d81b5, 0x3ec03616, 0x3eaece8e, 0x3f626d43, 0x3f4a4170, 0x3f1605c9, 0x3bf28bf3, 0x3f275e3e, 0x3e9b6b2a, 0x3f43c84a, 0x3ea27086, 0x3ec82c43, 0x3f168b18, 0x3efbf081, 0x3e43687f, 0x3f125aa8, 0x3f6cd9f0, 0x3b8e7baa, 0x3e8f0d04, 0x3f7145b7, 0x3ea8fdb7, 0x3dd3ba98, 0x3f3f797c, 0x3f42ad01, 0x3f6f820b, 0x3eb4a8ff, 0x3ec67f51, 0x3f01c9a0, 0x3e72bf1a, 0x3e01b37b, 0x3f3e8f6a, 0x3d85eee4, 0x3e93f31e, 0x3e8ba55c, 0x3e991893, 0x3f51cb89, 0x3e229f17, 0x3dfa7a73, 0x3f4b7198, 0x3f3629d1, 0x3e380dd0, 0x3edd8b4f, 0x3f50fba1, 0x3f27432f, 0x3ebd5fde, 0x3f1f01c1, 0x3f2f5e35, 0x3d4c207b, 0x3ebb9fd5, 0x3ecab62e, 0x3f1f9121, 0x3f63c9a7, 0x3f54d0cd, 0x3e8322bf, 0x3f2c2d24, 0x3f5c6c22, 0x3f29f00c, 0x3f4fddf7, 0x3f464bbd, 0x3eeb3c35, 0x3f1763d3, 0x3e36d28a, 0x3e6e125c, 0x3f0da737, 0x3d691b33, 0x3f4ea0f2, 0x3f638542, 0x3f4d4257, 0x3f3d557d, 0x3edb0894, 0x3f2873db, 0x3e13568a, 0x3e4a47b2, 0x3f7e8140, 0x3e47ab24, 0x3ee2ae68, 0x3ef86fce, 0x3f2718b0, 0x3ed65a21, 0x3f01a1d0, 0x3e5618dc, 0x3f59e126, 0x3c2545c5, 0x3f7eaa3c, 0x3f12c4aa, 0x3f588c31, 0x3eedb41e, 0x3f0516d5, 0x3f4091d2, 0x3f1f71a7, 0x3ecf60da, 0x3e5487e5, 0x3dd271bf, 0x3e92d37a, 0x3dd3ecb4, 0x3f06773f, 0x3f251615, 0x3f46aadc, 0x3f78f254, 0x3d4b3f40, 0x3f604105, 0x3f2f318f, 0x3f7b2c00, 0x3f16d02f, 0x3f004849, 0x3e6b0220, 0x3f559875, 0x3e943146, 0x3f5b9c35, 0x3f4cec6c, 0x3ef36e50, 0x3ef7540c, 0x3e6843ae, 0x3ead2ed7, 0x3f77b82f, 0x3df557c4, 0x3e034434, 0x3ee88c0c, 0x3edcc7e0, 0x3e551953, 0x3eb8ae79, 0x3f61d050, 0x3f3b2036, 0x3ee1ae20, 0x3f3f488b, 0x3e80591d, 0x3deb4bf4, 0x3e6ca1b7, 0x3e6981e7, 0x3e87d5f9, 0x3f50a6cb, 0x3f4c49ca, 0x3ee1f4c6, 0x3f3f5bb5, 0x3edb324e, 0x3f7bc713, 0x3f51e549, 0x3ec6e2df, 0x3f042c71, 0x3f37802f, 0x3f7f497e, 0x3f38e03a, 0x3d29b144, 0x3f639235, 0x3d448ef7, 0x3f63352b, 0x3d9f31ea, 0x3f212c2e, 0x3f3ce414, 0x3f2d3b16, 0x3f09f054, 0x3f3f3aec, 0x3f48aa56, 0x3e26e3f9, 0x3deda6c2, 0x3f683156, 0x3f7eb292, 0x3dfb0c1d, 0x3f252194, 0x3f4d1e53, 0x3f4a3f8b, 0x3e0893f6, 0x3e4fe7e5, 0x3eb3f7a2, 0x3ec3970c, 0x3ec036ee, 0x3ec7bd3e, 0x3e9b47ca, 0x3f800000, 0x3e6f3d13, 0x3de10aa2, 0x3f00ad32, 0x3f75cc34, 0x3f53eb8d, 0x3f003f6a, 0x3f0196c5, 0x3f05fdc8, 0x3e916ae1, 0x3eb11907, 0x3e679008, 0x3e08bf18, 0x3ec3fa42, 0x3ed147ea, 0x3e20d4c4, 0x3e5e6487, 0x3ef42155, 0x3e585068, 0x3ec375bf, 0x3ee6fbe9, 0x3e55a6b8, 0x3f184753, 0x3ec96928, 0x3d8d086a, 0x3e708100, 0x3ec2a71a, 0x3f78bd71, 0x3e823651, 0x3ea8a7e5, 0x3f158ff6, 0x3f644ae9, 0x3f23c64c, 0x3f2cb7dd, 0x3dc726e7, 0x3f4976a7, 0x3e367a84, 0x3f20aabd, 0x3e120dfe, 0x3f798ff4, 0x3ea72bce, 0x3b17d180, 0x3f1e443c, 0x3f1bafb3, 0x3e93e5b5, 0x3f018432, 0x3ea193a2, 0x3f2f0520, 0x3f15a7f3, 0x3f5aedc7, 0x3ea6ceb9, 0x3ecfde89, 0x3f00d4a8, 0x3f67520e, 0x3eb491f9, 0x3e771a37, 0x3e00b717, 0x3f6e52d5, 0x3dd2ce0f, 0x3ed6ab09, 0x3e55d85b, 0x3ef8f702, 0x3ecb0151, 0x3db28485, 0x3f35a7da, 0x3f764e4b, 0x3f69c5c7, 0x3f0eb497, 0x3e150126, 0x3d0fd597, 0x3f6388bf, 0x3e74c1ca, 0x3f3a0871, 0x3f5d526b, 0x3e12a7ad, 0x3f68522b, 0x3f2b8a28, 0x3e265ed7, 0x3dc76c38, 0x3f12e310, 0x3f76b5ff, 0x3eb91570, 0x3f23fb06, 0x3dbb487b, 0x3e655a2c, 0x3f000702, 0x3f350272, 0x3f08c9d8 }; static const q15_t ref_q15[256] = { 0x7EC1, 0x300E, 0x2BB4, 0x7137, 0x6521, 0x4B03, 0x00F3, 0x53AF, 0x26DB, 0x61E4, 0x289C, 0x320B, 0x4B46, 0x3EFC, 0x186D, 0x492D, 0x766D, 0x008E, 0x23C3, 0x78A3, 0x2A3F, 0x0D3C, 0x5FBD, 0x6157, 0x77C1, 0x2D2A, 0x31A0, 0x40E5, 0x1E58, 0x1036, 0x5F48, 0x085F, 0x24FD, 0x22E9, 0x2646, 0x68E6, 0x1454, 0x0FA8, 0x65B9, 0x5B15, 0x1702, 0x3763, 0x687E, 0x53A2, 0x2F58, 0x4F81, 0x57AF, 0x0661, 0x2EE8, 0x32AE, 0x4FC9, 0x71E5, 0x6A68, 0x20C9, 0x5617, 0x6E36, 0x54F8, 0x67EF, 0x6326, 0x3ACF, 0x4BB2, 0x16DA, 0x1DC2, 0x46D4, 0x0749, 0x6750, 0x71C3, 0x66A1, 0x5EAB, 0x36C2, 0x543A, 0x126B, 0x1949, 0x7F41, 0x18F5, 0x38AC, 0x3E1C, 0x538C, 0x3597, 0x40D1, 0x1AC3, 0x6CF1, 0x014B, 0x7F55, 0x4962, 0x6C46, 0x3B6D, 0x428B, 0x6049, 0x4FB9, 0x33D8, 0x1A91, 0x0D27, 0x24B5, 0x0D3F, 0x433C, 0x528B, 0x6355, 0x7C79, 0x065A, 0x7021, 0x5799, 0x7D96, 0x4B68, 0x4024, 0x1D60, 0x6ACC, 0x250C, 0x6DCE, 0x6676, 0x3CDC, 0x3DD5, 0x1D08, 0x2B4C, 0x7BDC, 0x0F55, 0x1069, 0x3A23, 0x3732, 0x1AA3, 0x2E2C, 0x70E8, 0x5D90, 0x386C, 0x5FA4, 0x2016, 0x0EB5, 0x1D94, 0x1D30, 0x21F5, 0x6853, 0x6625, 0x387D, 0x5FAE, 0x36CD, 0x7DE4, 0x68F3, 0x31B9, 0x4216, 0x5BC0, 0x7FA5, 0x5C70, 0x054E, 0x71C9, 0x0624, 0x719B, 0x09F3, 0x5096, 0x5E72, 0x569E, 0x44F8, 0x5F9D, 0x6455, 0x14DC, 0x0EDA, 0x7419, 0x7F59, 0x0FB1, 0x5291, 0x668F, 0x6520, 0x1112, 0x19FD, 0x2CFE, 0x30E6, 0x300E, 0x31EF, 0x26D2, 0x7FFF, 0x1DE8, 0x0E11, 0x4057, 0x7AE6, 0x69F6, 0x4020, 0x40CB, 0x42FF, 0x245B, 0x2C46, 0x1CF2, 0x1118, 0x30FF, 0x3452, 0x141B, 0x1BCD, 0x3D08, 0x1B0A, 0x30DD, 0x39BF, 0x1AB5, 0x4C24, 0x325A, 0x08D1, 0x1E10, 0x30AA, 0x7C5F, 0x208E, 0x2A2A, 0x4AC8, 0x7225, 0x51E3, 0x565C, 0x0C72, 0x64BB, 0x16CF, 0x5055, 0x1242, 0x7CC8, 0x29CB, 0x004C, 0x4F22, 0x4DD8, 0x24F9, 0x40C2, 0x2865, 0x5783, 0x4AD4, 0x6D77, 0x29B4, 0x33F8, 0x406A, 0x73A9, 0x2D24, 0x1EE3, 0x1017, 0x7729, 0x0D2D, 0x35AB, 0x1ABB, 0x3E3E, 0x32C0, 0x0B28, 0x5AD4, 0x7B27, 0x74E3, 0x475A, 0x12A0, 0x047F, 0x71C4, 0x1E98, 0x5D04, 0x6EA9, 0x1255, 0x7429, 0x55C5, 0x14CC, 0x0C77, 0x4972, 0x7B5B, 0x2E45, 0x51FE, 0x0BB5, 0x1CAB, 0x4004, 0x5A81, 0x4465 }; static const q7_t ref_q7[256] = { 0x7F, 0x30, 0x2C, 0x71, 0x65, 0x4B, 0x01, 0x54, 0x27, 0x62, 0x29, 0x32, 0x4B, 0x3F, 0x18, 0x49, 0x76, 0x01, 0x24, 0x79, 0x2A, 0x0D, 0x60, 0x61, 0x78, 0x2D, 0x32, 0x41, 0x1E, 0x10, 0x5F, 0x08, 0x25, 0x23, 0x26, 0x69, 0x14, 0x10, 0x66, 0x5B, 0x17, 0x37, 0x68, 0x54, 0x2F, 0x50, 0x58, 0x06, 0x2F, 0x33, 0x50, 0x72, 0x6A, 0x21, 0x56, 0x6E, 0x55, 0x68, 0x63, 0x3B, 0x4C, 0x17, 0x1E, 0x47, 0x07, 0x67, 0x72, 0x67, 0x5F, 0x37, 0x54, 0x12, 0x19, 0x7F, 0x19, 0x39, 0x3E, 0x54, 0x36, 0x41, 0x1B, 0x6D, 0x01, 0x7F, 0x49, 0x6C, 0x3B, 0x43, 0x60, 0x50, 0x34, 0x1B, 0x0D, 0x25, 0x0D, 0x43, 0x53, 0x63, 0x7C, 0x06, 0x70, 0x58, 0x7E, 0x4B, 0x40, 0x1D, 0x6B, 0x25, 0x6E, 0x66, 0x3D, 0x3E, 0x1D, 0x2B, 0x7C, 0x0F, 0x10, 0x3A, 0x37, 0x1B, 0x2E, 0x71, 0x5E, 0x38, 0x60, 0x20, 0x0F, 0x1E, 0x1D, 0x22, 0x68, 0x66, 0x38, 0x60, 0x37, 0x7E, 0x69, 0x32, 0x42, 0x5C, 0x7F, 0x5C, 0x05, 0x72, 0x06, 0x72, 0x0A, 0x51, 0x5E, 0x57, 0x45, 0x60, 0x64, 0x15, 0x0F, 0x74, 0x7F, 0x10, 0x53, 0x67, 0x65, 0x11, 0x1A, 0x2D, 0x31, 0x30, 0x32, 0x27, 0x7F, 0x1E, 0x0E, 0x40, 0x7B, 0x6A, 0x40, 0x41, 0x43, 0x24, 0x2C, 0x1D, 0x11, 0x31, 0x34, 0x14, 0x1C, 0x3D, 0x1B, 0x31, 0x3A, 0x1B, 0x4C, 0x32, 0x09, 0x1E, 0x31, 0x7C, 0x21, 0x2A, 0x4B, 0x72, 0x52, 0x56, 0x0C, 0x65, 0x17, 0x50, 0x12, 0x7D, 0x2A, 0x00, 0x4F, 0x4E, 0x25, 0x41, 0x28, 0x58, 0x4B, 0x6D, 0x2A, 0x34, 0x40, 0x74, 0x2D, 0x1F, 0x10, 0x77, 0x0D, 0x36, 0x1B, 0x3E, 0x33, 0x0B, 0x5B, 0x7B, 0x75, 0x47, 0x13, 0x04, 0x72, 0x1F, 0x5D, 0x6F, 0x12, 0x74, 0x56, 0x15, 0x0C, 0x49, 0x7B, 0x2E, 0x52, 0x0C, 0x1D, 0x40, 0x5B, 0x44 };
Max
2
Trifunik/zephyr
tests/lib/cmsis_dsp/support/src/q31.pat
[ "Apache-2.0" ]
\* modulesys - public domain module system for Shen ## Description Module system is a tool for managing Shen libraries. ## Basic usage * `(module.use [Mod1 ...])` or `(use-modules [Mod1 ...])` loads given modules with all their dependencies. Any module already loaded won't be loaded twice. * `(module.reload Mod1)` reloads given module. * `(module.files-to-translate Mod Language Implementation)` returns a list of module Mod files to translate which can be passed to a language dependent translator. Note that it loads module with all its dependencies first. * `(module.add-path Dir)` adds directory to a list where modules are searched. ## Module definition Sample contents of `mod1/module.shen` where `mod1` is module name: (register-module [[load: "file1" "file2"] [depends: "mod3" mod4]]) *\ (package module [use-modules load/tc register-module name depends translate-depends load translate load-fn unload-fn translate-fn] (set *paths* []) (set *list* []) (set *db* (vector 256)) (set *fields* [path load translate depends translate-depends load-fn unload-fn translate-fn]) (define add-path X -> (set *paths* [X | (value *paths*)]) where (not (element? X (value *paths*)))) (define rm-path X -> (set *paths* (remove X (value *paths*)))) (define normalize-id X -> X where (string? X) X -> (str X) where (symbol? X)) (define normalize-ids X -> (map (function normalize-id) X) where (cons? X) X -> [(normalize-id X)]) (define add-field M Field Data Db -> (do (put M fields (adjoin Field (get M fields Db)) Db) (put M Field Data Db) true)) (define add-module-field M [Field : X] -> (add-field M Field X (value *db*)) where (element? Field [load-fn unload-fn translate-fn]) M [depends : | Xs] -> (add-field M depends (normalize-ids Xs) (value *db*)) M [Field : | Xs] -> (add-field M Field Xs (value *db*)) _ _ -> false) (define nil-load -> false) (set *nil-load* nil-load) (set *nil-translate* (/. _ _ [])) (define init-module-data M -> (do (put M path (value *home-directory*) (value *db*)) (put M load [] (value *db*)) (put M translate [] (value *db*)) (put M depends [] (value *db*)) (put M translate-depends [] (value *db*)) (put M load-fn (value *nil-load*) (value *db*)) (put M unload-fn (value *nil-load*) (value *db*)) (put M translate-fn (value *nil-translate*) (value *db*)) (put M fields (value *fields*) (value *db*)) true)) (define rm-module-data' [] _ _ -> true [X | Xs] M D -> (do (unput M X D) (rm-module-data' Xs M))) (define rm-module-data M -> (rm-module-data' (get M fields (value *db*)) M (value *db*))) (define add-module-data _ [] -> true M [X | Xs] -> (do (add-module-field M X) (add-module-data M Xs))) (define register Def -> (let Name (value *current-module*) (and (init-module-data Name) (add-module-data Name Def)))) (define register-module Def -> (register Def)) (define call-module-unload M -> (let F (get M unload-fn (value *db*)) (if (= F (value *nil-load*)) true (F)))) (define forget-module M -> true where (not (element? (normalize-id M) (value *list*))) M -> (let M-id (normalize-id M) . (call-module-unload M-id) . (set *list* (remove M-id (value *list*))) (rm-module-data M-id))) (define manifest-exists? F -> (trap-error (do (close (open (cn F "/module.shen") in)) true) (/. E false))) (define in-directory Dir Proc Err -> (let Prev (value *home-directory*) (trap-error (let Ret (Proc (cd Dir)) . (cd Prev) Ret) (/. E (do (cd Prev) (Err E)))))) (define find-module-dir M [] -> (error "Unable to locate module ~A" M) M [D | Ds] -> (let Dir (cn D (cn "/" M)) (if (manifest-exists? Dir) Dir (find-module-dir M Ds)))) (define load-manifest' M S -> (let . (set *current-module* M) . (load/tc - "module.shen") . (set *current-module* "") S)) (define module-error S M R E -> (do (rm-module-data M) (set *current-module* "") (error "~A ~S: ~S" S M (error-to-string E)) R)) (define load-manifest M Ds -> (in-directory (find-module-dir M Ds) (load-manifest' M) (module-error "Loading manifest" M ""))) (define module-trans-deps M -> (let D (get M translate-depends (value *db*)) (if (empty? D) (get M depends (value *db*)) D))) (define resolve-deps' {string --> (list string) --> get-deps-fn --> (string --> boolean) --> (list string) --> (list string)} _ [] _ _ Acc -> Acc P [D | Ds] Get Pred Acc -> (resolve-deps' P Ds Get Pred Acc) where (Pred D) P [D | Ds] Get Pred Acc -> (let Ps [P "." | (value *paths*)] Dir (load-manifest D Ps) Acc [D | Acc] Acc (resolve-deps' Dir (Get D) Get Pred Acc) (resolve-deps' P Ds Get Pred Acc))) (define remove-dups' [] Acc -> (reverse Acc) [X | Xs] Acc -> (remove-dups' Xs Acc) where (element? X Acc) [X | Xs] Acc -> (remove-dups' Xs [X | Acc])) (define remove-dups X -> (remove-dups' X [])) (define resolve-deps Deps Get Pred -> (remove-dups (resolve-deps' "." Deps Get Pred []))) (define load-module-files [] -> true [F | Fs] -> (do (load F) (load-module-files Fs))) (define load-module-sources M -> (let F (get M load-fn (value *db*)) R (if (= F (value *nil-load*)) (load-module-files (get M load (value *db*))) ((function F))) . (set *list* [M | (value *list*)]) R)) (define load-module M -> (in-directory (get M path (value *db*)) (/. _ (load-module-sources M)) (module-error "Failed loading" M false))) (define load-modules [] -> true [M | Ms] -> (do (load-module M) (load-modules Ms))) (define use Ms -> (let Mods (resolve-deps (normalize-ids Ms) (/. M (get M depends (value *db*))) (/. X (element? X (value *list*)))) (load-modules Mods))) (define use-modules Ms -> (use Ms)) (define reload M -> (do (forget-module M) (use [M]))) (define fullpath P Files -> (map (/. X (cn P X)) Files)) (define ls-module-trans-files M Lang Impl Acc -> (in-directory (get M path (value *db*)) (/. Dir (let F (get M translate-fn (value *db*)) (append Acc (fullpath Dir (if (= F (value *nil-translate*)) (let L (get M translate (value *db*)) (if (empty? L) (get M load (value *db*)) L)) ((function F) Lang Impl)))))) (module-error "Failed translating" M []))) (define collect-trans-files [] _ _ Acc -> Acc [M | Ms] Lang Impl Acc -> (collect-trans-files Ms Lang Impl (ls-module-trans-files M Lang Impl Acc))) (define files-to-translate M Lang Impl -> (let M-id (normalize-id M) . (use [M]) Mods (resolve-deps [M-id] (function module-trans-deps) (/. _ false)) (collect-trans-files Mods Lang Impl []))) (define load/tc Tc File -> (let Old-tc (if (tc?) + -) . (tc Tc) R (trap-error (load File) (/. E (do (tc Old-tc) (error (error-to-string E))))) . (tc Old-tc) R)) (datatype module-types X : string; ______________ X : module-id; X : symbol; ______________ X : module-id; X : module-id; _____________ X : module-list; X : (list module-id); _________________ X : module-list; ) (declare files-to-translate [module-id --> string --> string --> [list string]]) (declare use [module-list --> boolean]) (declare use-modules [module-list --> boolean]) (declare reload [module-id --> boolean]) (declare load/tc [symbol --> string --> symbol]))
Shen
4
ajnavarro/language-dataset
data/github.com/radiganm/shen-modulesys/0e816f8768a562ebb3648e02c884816f29b6de0e/modulesys.shen
[ "MIT" ]
module ciena-waveserver-alarm { namespace "urn:ciena:params:xml:ns:yang:ciena-ws:ciena-waveserver-alarm"; prefix alarm; import ciena-waveserver-typedefs { prefix cienawstypes; } organization "Ciena Corporation"; contact "Web URL: http://www.ciena.com/ Postal: 7035 Ridge Road Hanover, Maryland 21076 U.S.A. Phone: +1 800-921-1144 Fax: +1 410-694-5750"; description "This module defines alarm data for the Waveserver Platform."; revision 2017-12-15 { description "Updated defined alarm severity type from enum to bits, to accommodate multi-severity alarms. Added 'reset' alarm-reason enum value for alarm history. Added 'intermittent' boolean attribute to active alarms container. Added 'return-string' to provide description in responses to RPC requests."; reference "Waveserver Ai user's guide."; } revision 2017-06-16 { description "Waveserver Platform Data Model Migrated from Waveserver Classic R1.4 YANG model. Updated namespace to 'ciena-waveserver'. Added alarm-instance-string typedef with chassis-specific descriptions. Removed 'cleared' and 'info' alarm-severity enum values. Removed 'reset', 'delete', and 'config' alarm-reason enum values. Updated description strings. Moved 'reason' leaf into 'alarm-group' grouping."; reference "Waveserver Ai user's guide."; } typedef alarm-severity { type enumeration { enum "critical" { value 3; description "Critical Alarm Severity."; } enum "major" { value 4; description "Major Alarm Severity."; } enum "minor" { value 5; description "Minor Alarm Severity."; } enum "warning" { value 6; description "Warning Alarm Severity."; } } description "Alarm Severity."; } typedef alarm-severity-bits { type bits { bit critical { position 3; description "Critical Alarm Severity"; } bit major { position 4; description "Major Alarm Severity"; } bit minor { position 5; description "Minor Alarm Severity"; } bit warning { position 6; description "Warning Alarm Severity"; } } description "Alarm Severity bits. A list of the supported severities of the defined alarm."; } typedef alarm-reason { type enumeration { enum "reset" { value 1; description "Alarm was raised due to reset/restart operation."; } enum "set" { value 2; description "Alarm is active or became active."; } enum "acknowledge" { value 5; description "Alarm has been manually acknowledged."; } enum "clear" { value 6; description "Alarm was cleared."; } enum "intermittent" { value 10; description "Alarm is intermittent."; } } description "The reason for the alarm entry."; } typedef alarm-instance-string { type string { length "0..32"; } description "The object instance the alarm is raised against. Example formats: Waveserver Waveserver Ai ---------- ------------- Chassis Chassis DCN DCN ILAN-<n> ILAN-<n> PSU-<n> PSU-<n> CFU-<n> CFU-<n> n/a Module-<s> XCVR-<p> XCVR-<s>-<p> PTP-<p> PTP-<s>-<p> Port-<p> Port-<s>-<p> n/a Channel-<s>-<p>.<c> Service-<n> Service-<n> "; } grouping alarm-group { description "Grouping for common alarm attributes used in 'active' and 'history' lists."; leaf alarm-table-id { type uint32; config false; description "A unique identifier per alarm description on a product. Alarm table id may not represent the same alarm type on a Waveserver 400G and Waverver Ai"; } leaf reason { type alarm-reason; config false; description "The reason for the alarm entry."; } leaf severity { type alarm-severity; config false; description "The alarm severity. Critical alarms are service affecting. Other severities are not service affecting."; } leaf local-date-time { type cienawstypes:string-maxl-32; config false; description "The local date and time when alarm was updated."; } leaf instance { type alarm-instance-string; config false; description "The object instance the alarm is raised against."; } leaf description { type cienawstypes:string-maxl-44; config false; description "The alarm description."; } leaf site-identifier { type uint16 { range "0..65535"; } config false; description "An integer to uniquely identify the site where this Waveserver is located."; } leaf group-identifier { type uint8 { range "0..99"; } config false; description "An integer to uniquely identify a group of Waveservers within a site."; } leaf member-identifier { type uint8 { range "0..254"; } config false; description "An integer to uniquely identify a Waveserver chassis within a group of Waveservers."; } } container waveserver-alarms { config false; description "Waveserver alarms."; list active { key "alarm-instance-id"; config false; description "Active alarms"; leaf alarm-instance-id { type uint32; description "The alarm Instance ID uniquely identifies the occurence of the alarm since the last restart of the Waveserver. It can be used to correlate the raise and clear of the occurence."; } leaf acknowledged { type boolean; config false; description "Alarm has been acknowledged. Acknowledged alarms are not counted in the alarm statistics."; } leaf intermittent { type boolean; config false; description "Alarm condition is intermittent."; } uses alarm-group; } list history { key "history-id"; config false; description "Alarm history"; leaf history-id { type uint32; config false; description "The alarm history ID uniquely identifies the alarm and action (set or clear) since the Waveserver was installed."; } leaf alarm-instance-id { type uint32; config false; description "The alarm instance ID."; } uses alarm-group; } list defined { key "alarm-table-id"; config false; description "Defined Alarm Table"; leaf alarm-table-id { type uint32; config false; description "The alarm table ID."; } leaf enabled { type boolean; config false; description "Alarm is enabled."; } leaf active { type boolean; config false; description "Alarm is active."; } leaf threshold { type uint32; config false; description "The alarm threshold."; } leaf cap { type uint32; config false; description "The alarm cap."; } leaf severity { type alarm-severity-bits; config false; description "The alarm severity (or severities) supported for this alarm type."; } leaf instance { type alarm-instance-string; config false; description "The object instance the alarm is raised against."; } leaf description { type cienawstypes:string-maxl-44; config false; description "The alarm description."; } } list statistics { key "index"; config false; description "Waveserver Alarm Statistics."; leaf index { type uint32; config false; description "The alarm statistics table index."; } leaf active { type boolean; description "There is alarm active for the alarm type. Acknowledged alarms are not counted."; } leaf disabled { type boolean; description "There is alarm disabled for the alarm type."; } leaf count { type uint32; description "The count of active alarms for the alarm type. Acknowledged alarms are not counted."; } leaf cumulative { type uint32; description "The cumulative count of active alarms for the alarm type "; } leaf type { type cienawstypes:string-maxl-32; description "The alarm type."; } } } rpc waveserver-alarm-acknowledge-active { description "Acknowledge an active alarm"; input { leaf alarm-instance-id { type uint32; description "The instance ID of the active alarm. If not specified, all alarms will be acknowledged."; } } output { leaf return-code { type uint32; description "return code: 0 is success; non-zero is failure"; } leaf return-string { type cienawstypes:string-maxl-254; description "Return code description"; } } } rpc waveserver-alarm-clear-history { description "Clear the alarm history."; output { leaf return-code { type uint32; description "return code: 0 is success; non-zero is failure"; } leaf return-string { type cienawstypes:string-maxl-254; description "Return code description"; } } } }
YANG
5
meodaiduoi/onos
models/ciena/waveserverai/src/main/yang/ciena-waveserver-alarm@2017-12-15.yang
[ "Apache-2.0" ]
#!MC 1200 # Created by Tecplot 360 build 12.0.0.3454 $!VarSet |MFBD| = '/home/parent/pnu/pub/SECOND/testcases/hyperbdry' $!ALTERDATA EQUATION = '{qy}=0.03*ddy({T})' $!ALTERDATA EQUATION = '{qy}=0.03*ddy({T})' $!GLOBALCONTOUR 1 VAR = 5 $!CONTOURLEVELS RESETTONICE CONTOURGROUP = 1 APPROXNUMVALUES = 15 $!FIELDLAYERS SHOWCONTOUR = YES $!GLOBALCONTOUR 1 VAR = 11 $!CONTOURLEVELS RESETTONICE CONTOURGROUP = 1 APPROXNUMVALUES = 15 $!VIEW ZOOM X1 = 0.136492161086 Y1 = -0.00288918178167 X2 = 0.147225739678 Y2 = 0.00468734386957 $!VIEW ZOOM X1 = 0.139766853517 Y1 = -0.000222769236399 X2 = 0.140425128886 Y2 = 0.000680731897131 $!VIEW ZOOM X1 = 0.139957586827 Y1 = -1.68280467979E-05 X2 = 0.140041916755 Y2 = 3.6507321179E-05 $!VIEW ZOOM X1 = 0.139996962829 Y1 = -2.4095967292E-06 X2 = 0.140003858611 Y2 = 3.69510347715E-06 $!DRAWGRAPHICS TRUE $!REDRAW $!RemoveVar |MFBD|
MAXScript
2
zhanghuanqian/CFDWARP
bin/qy-x0.14m.mcr
[ "BSD-2-Clause" ]
@app remix-architect-app @http /* method any src server @static # @aws # profile default # region eu-central-1
Arc
0
aslakhellesoy/remix-aws-cdk-example
remix/app.arc
[ "MIT" ]
#include <sourcemod> // Single line comment /* Multi line comment */ public OnPluginStart() { PrintToServer("Hello."); }
SourcePawn
3
btashton/pygments
tests/examplefiles/hello.sp
[ "BSD-2-Clause" ]
// // // Copyright 2020 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. // // #include <grpc/support/port_platform.h> #include "src/core/lib/json/json_util.h" #include <grpc/support/string_util.h> #include "src/core/lib/gpr/string.h" namespace grpc_core { bool ParseDurationFromJson(const Json& field, grpc_millis* duration) { if (field.type() != Json::Type::STRING) return false; size_t len = field.string_value().size(); if (field.string_value()[len - 1] != 's') return false; grpc_core::UniquePtr<char> buf(gpr_strdup(field.string_value().c_str())); *(buf.get() + len - 1) = '\0'; // Remove trailing 's'. char* decimal_point = strchr(buf.get(), '.'); int nanos = 0; if (decimal_point != nullptr) { *decimal_point = '\0'; nanos = gpr_parse_nonnegative_int(decimal_point + 1); if (nanos == -1) { return false; } int num_digits = static_cast<int>(strlen(decimal_point + 1)); if (num_digits > 9) { // We don't accept greater precision than nanos. return false; } for (int i = 0; i < (9 - num_digits); ++i) { nanos *= 10; } } int seconds = decimal_point == buf.get() ? 0 : gpr_parse_nonnegative_int(buf.get()); if (seconds == -1) return false; *duration = seconds * GPR_MS_PER_SEC + nanos / GPR_NS_PER_MS; return true; } } // namespace grpc_core
C++
4
arghyadip01/grpc
src/core/lib/json/json_util.cc
[ "Apache-2.0" ]
require "c/winnt" lib LibC INVALID_HANDLE_VALUE = HANDLE.new(-1) fun CloseHandle(hObject : HANDLE) : BOOL fun DuplicateHandle(hSourceProcessHandle : HANDLE, hSourceHandle : HANDLE, hTargetProcessHandle : HANDLE, lpTargetHandle : HANDLE*, dwDesiredAccess : DWORD, bInheritHandle : BOOL, dwOptions : DWORD) : BOOL end
Crystal
3
jessedoyle/crystal
src/lib_c/x86_64-windows-msvc/c/handleapi.cr
[ "Apache-2.0" ]
{%- macro format(amount, currency_code) -%} {{ amount|sylius_format_money(currency_code, sylius.localeCode) }} {%- endmacro -%} {%- macro convertAndFormat(amount) -%} {% from _self import format %} {{- format(amount|sylius_convert_money(sylius.channel.baseCurrency.code, sylius.currencyCode), sylius.currencyCode) }} {%- endmacro -%}
Twig
3
orestshes/Sylius
src/Sylius/Bundle/CoreBundle/Resources/views/Common/Macro/money.html.twig
[ "MIT" ]
template(name="brokenCardsHeaderBar") h1 | {{_ 'broken-cards'}} template(name="brokenCards") if currentUser if searching.get +spinner else if hasResults.get .global-search-results-list-wrapper if hasQueryErrors.get div each msg in errorMessages span.global-search-error-messages = msg else +resultsPaged(this)
Jade
3
moqmar/wekan
client/components/main/brokenCards.jade
[ "MIT" ]
sub main() _brs_.mockFunction("commonUtil", function() return "mocked" end function) print "mock:" + commonUtil() ' => "mocked" end sub
Brightscript
3
DreadPirateJay/brs
test/e2e/resources/execute-with-scope/mock.brs
[ "MIT" ]
import { camelCase } from "lodash" import { GraphQLSchema, GraphQLOutputType } from "graphql" import { ActionCreator } from "redux" import { ThunkAction } from "redux-thunk" import report from "gatsby-cli/lib/reporter" import { parseTypeDef } from "../../schema/types/type-defs" import { GraphQLFieldExtensionDefinition, reservedExtensionNames, } from "../../schema/extensions" import { GatsbyGraphQLType } from "../../schema/types/type-builders" import { IGatsbyPlugin, ActionsUnion, IAddThirdPartySchema, ICreateTypes, IGatsbyState, ICreateFieldExtension, IPrintTypeDefinitions, ICreateResolverContext, IGatsbyPluginContext, } from "../types" type RestrictionActionNames = | "createFieldExtension" | "createTypes" | "createResolverContext" | "addThirdPartySchema" | "printTypeDefinitions" type SomeActionCreator = | ActionCreator<ActionsUnion> | ActionCreator<ThunkAction<any, IGatsbyState, any, ActionsUnion>> export const actions = { /** * Add a third-party schema to be merged into main schema. Schema has to be a * graphql-js GraphQLSchema object. * * This schema is going to be merged as-is. This can easily break the main * Gatsby schema, so it's user's responsibility to make sure it doesn't happen * (by e.g. namespacing the schema). * * @availableIn [createSchemaCustomization, sourceNodes] * * @param {Object} $0 * @param {GraphQLSchema} $0.schema GraphQL schema to add */ addThirdPartySchema: ( { schema }: { schema: GraphQLSchema }, plugin: IGatsbyPlugin, traceId?: string ): IAddThirdPartySchema => { return { type: `ADD_THIRD_PARTY_SCHEMA`, plugin, traceId, payload: schema, } }, /** * Add type definitions to the GraphQL schema. * * @availableIn [createSchemaCustomization, sourceNodes] * * @param {string | GraphQLOutputType | GatsbyGraphQLType | string[] | GraphQLOutputType[] | GatsbyGraphQLType[]} types Type definitions * * Type definitions can be provided either as * [`graphql-js` types](https://graphql.org/graphql-js/), in * [GraphQL schema definition language (SDL)](https://graphql.org/learn/) * or using Gatsby Type Builders available on the `schema` API argument. * * Things to note: * * type definitions targeting node types, i.e. `MarkdownRemark` and others * added in `sourceNodes` or `onCreateNode` APIs, need to implement the * `Node` interface. Interface fields will be added automatically, but it * is mandatory to label those types with `implements Node`. * * by default, explicit type definitions from `createTypes` will be merged * with inferred field types, and default field resolvers for `Date` (which * adds formatting options) and `File` (which resolves the field value as * a `relativePath` foreign-key field) are added. This behavior can be * customised with `@infer`, `@dontInfer` directives or extensions. Fields * may be assigned resolver (and other option like args) with additional * directives. Currently `@dateformat`, `@link`, `@fileByRelativePath` and * `@proxy` are available. * * * Schema customization controls: * * `@infer` - run inference on the type and add fields that don't exist on the * defined type to it. * * `@dontInfer` - don't run any inference on the type * * Extensions to add resolver options: * * `@dateformat` - add date formatting arguments. Accepts `formatString` and * `locale` options that sets the defaults for this field * * `@link` - connect to a different Node. Arguments `by` and `from`, which * define which field to compare to on a remote node and which field to use on * the source node * * `@fileByRelativePath` - connect to a File node. Same arguments. The * difference from link is that this normalizes the relative path to be * relative from the path where source node is found. * * `@proxy` - in case the underlying node data contains field names with * characters that are invalid in GraphQL, `proxy` allows to explicitly * proxy those properties to fields with valid field names. Takes a `from` arg. * * * @example * exports.createSchemaCustomization = ({ actions }) => { * const { createTypes } = actions * const typeDefs = ` * """ * Markdown Node * """ * type MarkdownRemark implements Node @infer { * frontmatter: Frontmatter! * } * * """ * Markdown Frontmatter * """ * type Frontmatter @infer { * title: String! * author: AuthorJson! @link * date: Date! @dateformat * published: Boolean! * tags: [String!]! * } * * """ * Author information * """ * # Does not include automatically inferred fields * type AuthorJson implements Node @dontInfer { * name: String! * birthday: Date! @dateformat(locale: "ru") * } * ` * createTypes(typeDefs) * } * * // using Gatsby Type Builder API * exports.createSchemaCustomization = ({ actions, schema }) => { * const { createTypes } = actions * const typeDefs = [ * schema.buildObjectType({ * name: 'MarkdownRemark', * fields: { * frontmatter: 'Frontmatter!' * }, * interfaces: ['Node'], * extensions: { * infer: true, * }, * }), * schema.buildObjectType({ * name: 'Frontmatter', * fields: { * title: { * type: 'String!', * resolve(parent) { * return parent.title || '(Untitled)' * } * }, * author: { * type: 'AuthorJson' * extensions: { * link: {}, * }, * } * date: { * type: 'Date!' * extensions: { * dateformat: {}, * }, * }, * published: 'Boolean!', * tags: '[String!]!', * } * }), * schema.buildObjectType({ * name: 'AuthorJson', * fields: { * name: 'String!' * birthday: { * type: 'Date!' * extensions: { * dateformat: { * locale: 'ru', * }, * }, * }, * }, * interfaces: ['Node'], * extensions: { * infer: false, * }, * }), * ] * createTypes(typeDefs) * } */ createTypes: ( types: | string | GraphQLOutputType | GatsbyGraphQLType<any, any> | Array<string | GraphQLOutputType | GatsbyGraphQLType<any, any>>, plugin: IGatsbyPlugin, traceId?: string ): ICreateTypes => { return { type: `CREATE_TYPES`, plugin, traceId, payload: Array.isArray(types) ? types.map(parseTypeDef) : parseTypeDef(types), } }, /** * Add a field extension to the GraphQL schema. * * Extensions allow defining custom behavior which can be added to fields * via directive (in SDL) or on the `extensions` prop (with Type Builders). * * The extension definition takes a `name`, an `extend` function, and optional * extension `args` for options. The `extend` function has to return a (partial) * field config, and receives the extension options and the previous field config * as arguments. * * @availableIn [createSchemaCustomization, sourceNodes] * * @param {GraphQLFieldExtensionDefinition} extension The field extension definition * @example * exports.createSchemaCustomization = ({ actions }) => { * const { createFieldExtension } = actions * createFieldExtension({ * name: 'motivate', * args: { * caffeine: 'Int' * }, * extend(options, prevFieldConfig) { * return { * type: 'String', * args: { * sunshine: { * type: 'Int', * defaultValue: 0, * }, * }, * resolve(source, args, context, info) { * const motivation = (options.caffeine || 0) - args.sunshine * if (motivation > 5) return 'Work! Work! Work!' * return 'Maybe tomorrow.' * }, * } * }, * }) * } */ createFieldExtension: ( extension: GraphQLFieldExtensionDefinition, plugin: IGatsbyPlugin, traceId?: string ): ThunkAction< void, IGatsbyState, Record<string, unknown>, ICreateFieldExtension > => (dispatch, getState): void => { const { name } = extension || {} const { fieldExtensions } = getState().schemaCustomization if (!name) { report.error( `The provided field extension must have a \`name\` property.` ) } else if (reservedExtensionNames.includes(name)) { report.error( `The field extension name \`${name}\` is reserved for internal use.` ) } else if (fieldExtensions[name]) { report.error( `A field extension with the name \`${name}\` has already been registered.` ) } else { dispatch({ type: `CREATE_FIELD_EXTENSION`, plugin, traceId, payload: { name, extension }, }) } }, /** * Write GraphQL schema to file * * Writes out inferred and explicitly specified type definitions. This is not * the full GraphQL schema, but only the types necessary to recreate all type * definitions, i.e. it does not include directives, built-ins, and derived * types for filtering, sorting, pagination etc. Optionally, you can define a * list of types to include/exclude. This is recommended to avoid including * definitions for plugin-created types. * * The first object parameter is required, however all the fields in the object are optional. * * @availableIn [createSchemaCustomization] * * @param {object} $0 * @param {string} [$0.path] The path to the output file, defaults to `schema.gql` * @param {object} [$0.include] Configure types to include * @param {string[]} [$0.include.types] Only include these types * @param {string[]} [$0.include.plugins] Only include types owned by these plugins * @param {object} [$0.exclude] Configure types to exclude * @param {string[]} [$0.exclude.types] Do not include these types * @param {string[]} [$0.exclude.plugins] Do not include types owned by these plugins * @param {boolean} [$0.withFieldTypes] Include field types, defaults to `true` * @example * exports.createSchemaCustomization = ({ actions }) => { * // This code writes a GraphQL schema to a file named `schema.gql`. * actions.printTypeDefinitions({}) * } * @example * exports.createSchemaCustomization = ({ actions }) => { * // This code writes a GraphQL schema to a file named `schema.gql`, but this time it does not include field types. * actions.printTypeDefinitions({ withFieldTypes: false }) * } */ printTypeDefinitions: ( { path = `schema.gql`, include, exclude, withFieldTypes = true, }: { path?: string include?: { types?: Array<string>; plugins?: Array<string> } exclude?: { types?: Array<string>; plugins?: Array<string> } withFieldTypes?: boolean }, plugin: IGatsbyPlugin, traceId?: string ): IPrintTypeDefinitions => { return { type: `PRINT_SCHEMA_REQUESTED`, plugin, traceId, payload: { path, include, exclude, withFieldTypes, }, } }, /** * Make functionality available on field resolver `context` * * @availableIn [createSchemaCustomization] * * @param {object} context Object to make available on `context`. * When called from a plugin, the context value will be namespaced under * the camel-cased plugin name without the "gatsby-" prefix * @example * const getHtml = md => remark().use(html).process(md) * exports.createSchemaCustomization = ({ actions }) => { * actions.createResolverContext({ getHtml }) * } * // The context value can then be accessed in any field resolver like this: * exports.createSchemaCustomization = ({ actions, schema }) => { * actions.createTypes(schema.buildObjectType({ * name: 'Test', * interfaces: ['Node'], * fields: { * md: { * type: 'String!', * async resolve(source, args, context, info) { * const processed = await context.transformerRemark.getHtml(source.internal.contents) * return processed.contents * } * } * } * })) * } */ createResolverContext: ( context: IGatsbyPluginContext, plugin: IGatsbyPlugin, traceId?: string ): ThunkAction< void, IGatsbyState, Record<string, unknown>, ICreateResolverContext > => (dispatch): void => { if (!context || typeof context !== `object`) { report.error( `Expected context value passed to \`createResolverContext\` to be an object. Received "${context}".` ) } else { const { name } = plugin || {} const payload = !name || name === `default-site-plugin` ? context : { [camelCase(name.replace(/^gatsby-/, ``))]: context } dispatch({ type: `CREATE_RESOLVER_CONTEXT`, plugin, traceId, payload, }) } }, } const withDeprecationWarning = ( actionName: RestrictionActionNames, action: SomeActionCreator, api: API, allowedIn: Array<API> ): SomeActionCreator => (...args: Array<any>): ReturnType<ActionCreator<any>> => { report.warn( `Calling \`${actionName}\` in the \`${api}\` API is deprecated. ` + `Please use: ${allowedIn.map(a => `\`${a}\``).join(`, `)}.` ) return action(...args) } const withErrorMessage = (actionName: RestrictionActionNames, api: API, allowedIn: Array<API>) => () => // return a thunk that does not dispatch anything (): void => { report.error( `\`${actionName}\` is not available in the \`${api}\` API. ` + `Please use: ${allowedIn.map(a => `\`${a}\``).join(`, `)}.` ) } const nodeAPIs = Object.keys(require(`../../utils/api-node-docs`)) const ALLOWED_IN = `ALLOWED_IN` const DEPRECATED_IN = `DEPRECATED_IN` type API = string type Restrictions = Record< RestrictionActionNames, Partial<{ ALLOWED_IN: Array<API> DEPRECATED_IN: Array<API> }> > type AvailableActionsByAPI = Record< API, { [K in RestrictionActionNames]: SomeActionCreator } > const set = ( availableActionsByAPI: Record<string, any>, api: API, actionName: RestrictionActionNames, action: SomeActionCreator ): void => { availableActionsByAPI[api] = availableActionsByAPI[api] || {} availableActionsByAPI[api][actionName] = action } const mapAvailableActionsToAPIs = ( restrictions: Restrictions ): AvailableActionsByAPI => { const availableActionsByAPI: AvailableActionsByAPI = {} const actionNames = Object.keys(restrictions) as Array< keyof typeof restrictions > actionNames.forEach(actionName => { const action = actions[actionName] const allowedIn: Array<API> = restrictions[actionName][ALLOWED_IN] || [] allowedIn.forEach(api => set(availableActionsByAPI, api, actionName, action) ) const deprecatedIn: Array<API> = restrictions[actionName][DEPRECATED_IN] || [] deprecatedIn.forEach(api => set( availableActionsByAPI, api, actionName, withDeprecationWarning(actionName, action, api, allowedIn) ) ) const forbiddenIn = nodeAPIs.filter( api => ![...allowedIn, ...deprecatedIn].includes(api) ) forbiddenIn.forEach(api => set( availableActionsByAPI, api, actionName, withErrorMessage(actionName, api, allowedIn) ) ) }) return availableActionsByAPI } export const availableActionsByAPI = mapAvailableActionsToAPIs({ createFieldExtension: { [ALLOWED_IN]: [`createSchemaCustomization`], [DEPRECATED_IN]: [`sourceNodes`], }, createTypes: { [ALLOWED_IN]: [`createSchemaCustomization`], [DEPRECATED_IN]: [`onPreInit`, `onPreBootstrap`, `sourceNodes`], }, createResolverContext: { [ALLOWED_IN]: [`createSchemaCustomization`], }, addThirdPartySchema: { [ALLOWED_IN]: [`createSchemaCustomization`], [DEPRECATED_IN]: [`onPreInit`, `onPreBootstrap`, `sourceNodes`], }, printTypeDefinitions: { [ALLOWED_IN]: [`createSchemaCustomization`], }, })
TypeScript
5
waltercruz/gatsby
packages/gatsby/src/redux/actions/restricted.ts
[ "MIT" ]
# Copyright (c) 2018-2021, Carnegie Mellon University # See LICENSE for details #################################################### ## ## NOTE: Chained unparser! ## _bitsInt := (bits) -> Sum(List([1..Length(bits)], i -> bits[i]*2^(i-1))); _sklr_unaligned_store := (bits) -> meth(self, o, i, is ) local loc0, loc1, offs, p, loffs, mask, l; if IsUnalignedPtrT(o.loc.t) then Error("cannot do unaligned store when base pointer is not aligned"); fi; loc0 := vtref(o.exp.t, o.loc, idiv(o.offs, bits)); loc1 := vtref(o.exp.t, o.loc, idiv(o.offs, bits)+1); offs := _unwrap(o.offs) mod bits; p := _unwrap(o.p); loffs:= p+offs-bits; mask := (n) -> o.exp.t.value(Replicate(n, 1) :: Replicate(bits-n, 0)); l := Cond( (IsSymbolic(offs) and (p>1)) or (not IsSymbolic(offs) and (offs + p > bits)), # a0 = a0 xor (( a0 xor (val << offs)) & (mask << offs)); # a1 = (offs + p <= bits) ? a1 : # ((a1 >> loffs) << loffs) | ((val & mask) >> bits-offs) [ assign(loc0, bin_xor(loc0, bin_and(bin_shl(mask(p), offs), bin_xor(loc0, bin_shl(o.exp, offs))))), assign(loc1, cond(leq(offs + p, bits), loc1, bin_or(bin_shl(bin_shr(loc1, loffs), loffs), bin_shr(bin_and(o.exp, mask(p)), bits-offs))))], p = bits and offs = 0, [ assign(loc0, o.exp) ], #else [ assign(loc0, bin_xor(loc0, bin_and(bin_shl(mask(p), offs), bin_xor(loc0, bin_shl(o.exp, offs))))) ]); return Print(Blanks(i), self.infix(ESReduce(l, self.opts), Blanks(i))); end; Class(SKLRBUnparser, SSEUnparser, rec( # none exp must be gone before it reaches unparser noneExp := (self, o, i, is) >> self(o.args[1].zero(), i, is), utype := (self, t) >> (ObjId(t) = BitVector or (ObjId(t) = TVect and t.t in [T_Int(1), T_UInt(1), TInt, TUInt])) and t.size in [16, 32, 64], BitVector := (self, t, vars, i, is) >> self.T_UInt(T_UInt(t.size), vars, i, is), Value := (self, o, i, is) >> When( self.utype(o.t), #self(T_UInt(o.t.size).value(_bitsInt(o.v)), i, is), Print("0x", HexStringInt(_bitsInt(o.v)), When(o.t.size=64, "LL", "")), Inherited(o, i, is)), mul := (self, o, i, is) >> Cond( self.utype(o.t), Print("(", self.infix(o.args, ")&("), ")"), # NOTE: HACK HACK 16x8i mul -> binary and o.t = TVect(T_Int(8), 16), self( ApplyFunc(bin_and, o.args), i, is ), Inherited(o, i, is)), add := (self, o, i, is) >> When( self.utype(o.t), Print("(", self.infix(o.args, ")^("), ")"), Inherited(o, i, is)), sub := ~.add, rCyclicShift := (self, o, i, is) >> When( not self.utype(o.t), Inherited(o, i, is), Cond( o.t.size = 16, self.printf("__rotl16($1, $2)", [o.args[1], o.args[2]]), o.t.size = 32, self.printf("__rotl32($1, $2)", [o.args[1], o.args[2]]), o.t.size = 64, self.printf("__rotl64($1, $2)", [o.args[1], o.args[2]]), Error("unsupported size") )), sklr_bcast_32x1i := (self, o, i, is) >> self.printf("$1", [tcast(o.t, arith_shr(tcast(T_Int(32), bin_shl(o.args[1], 31-o.args[2])), 31))]), sklr_bcast_64x1i := (self, o, i, is) >> self.printf("$1", [tcast(o.t, arith_shr(tcast(T_Int(64), bin_shl(o.args[1], 63-o.args[2])), 63))]), sklr_storeu_32x1i := _sklr_unaligned_store(32), sklr_storeu_64x1i := _sklr_unaligned_store(64), )); SKLRBUnparser.bin_shl := (self, o, i, is) >> When( self.utype(o.t) or IsOrdT(o.t), self.printf("(($1)<<($2))", [o.args[1], o.args[2]]), # else Inherited(o, i, is)); SKLRBUnparser.bin_shr := (self, o, i, is) >> Cond( self.utype(o.t) or IsUIntT(o.t), self.printf("(($1)>>($2))", [o.args[1], o.args[2]]), self.utype(o.t) or IsIntT(o.t), Print("((", self.declare(o.t, [], 0, 0), ")(((", self.declare(When(ObjId(o.t)=T_Int, T_UInt(o.t.params[1]), TUInt), [], 0, 0), ")(", self(o.args[1], i, is), "))>>(", self(o.args[2], i, is), ")))"), Inherited(o, i, is)); SKLRBUnparser.arith_shr := (self, o, i, is) >> Cond( IsIntT(o.t), self.printf("(($1)>>($2))", [o.args[1], o.args[2]]), self.utype(o.t) or ObjId(o.t)=T_UInt, Print("((", self.declare(o.t, [], 0, 0), ")(((", self.declare(T_Int(When(ObjId(o.t)=T_Int,o.t.params[1], o.t.size)), [], 0, 0), ")(", self(o.args[1], i, is), "))>>(", self(o.args[2], i, is), ")))"), Inherited(o, i, is)); SKLRBUnparser.bin_and := (self, o, i, is) >> When( self.utype(o.t) or o.t in [T_Int(32), T_UInt(32), T_Int(64), T_UInt(64)], Print("((", self.infix(o.args, ")&("), "))"), Inherited(o, i, is)); SKLRBUnparser.bin_xor := (self, o, i, is) >> When( self.utype(o.t) or o.t in [T_Int(32), T_UInt(32), T_Int(64), T_UInt(64)], Print("(", self.infix(o.args, ")^("), ")"), Inherited(o, i, is)); SKLRBUnparser.bin_or := (self, o, i, is) >> When( self.utype(o.t) or o.t in [T_Int(32), T_UInt(32), T_Int(64), T_UInt(64)], Print("(", self.infix(o.args, ")|("), ")"), Inherited(o, i, is)); SKLRBUnparser.tcast := (self, o, i, is) >> When( not self.utype(o.t), Inherited(o, i, is), Print("((", self.declare(o.args[1], [], i, is), ")(", self(o.args[2], i, is), "))"));
GAP
5
sr7cb/spiral-software
namespaces/spiral/platforms/scalar/bitisa/unparse.gi
[ "BSD-2-Clause-FreeBSD" ]
// SPDX-License-Identifier: MIT pragma solidity ^0.8.0; pragma abicoder v2; import "@openzeppelin/contracts/access/Ownable.sol"; import "@openzeppelin/contracts/utils/math/SafeMath.sol"; import "./RecordInterface.sol"; import "./UserStorage.sol"; contract AppealStorage { OrderInterface private _oSt; RecordInterface private _rSt; UserInterface private _uSt; address recAddr; struct Appeal { address user; uint256 appealNo; uint256 orderNo; address witness; address buyer; address seller; uint256 mortgage; uint256 status; uint256 appealTime; uint256 witTakeTime; uint256 obTakeTime; AppealDetail detail; } struct AppealDetail { address finalAppealAddr; uint256 updateTime; string witnessReason; uint256 witnessAppealStatus; string observerReason; uint256 witnessHandleTime; uint256 observerHandleTime; address observerAddr; uint256 witnessHandleReward; uint256 observerHandleReward; uint256 witnessHandleCredit; uint256 observerHandleCredit; uint256 witReward; uint256 witSub; uint256 witCreditR; uint256 witCreditS; } mapping(uint256 => Appeal) public appeals; mapping(uint256 => uint256) public appealIndex; Appeal[] public appealList; constructor( address _r, address _o, address _u ) { _rSt = RecordInterface(_r); _oSt = OrderInterface(_o); _uSt = UserInterface(_u); recAddr = _r; } modifier onlyWit(uint256 _o) { Appeal memory _al = appeals[_o]; require(_al.witness == msg.sender, "1"); require(_al.buyer != msg.sender && _al.seller != msg.sender, "2"); _; } modifier onlyOb(uint256 _o) { Appeal memory _al = appeals[_o]; require(_al.detail.observerAddr == msg.sender, "1"); require(_al.buyer != msg.sender && _al.seller != msg.sender, "2"); _; } modifier onlyBOS(uint256 _o) { OrderStorage.Order memory _or = _oSt.searchOrder(_o); require( _or.orderDetail.sellerAddr == msg.sender || _or.orderDetail.buyerAddr == msg.sender, "1" ); _; } function _insert(uint256 _o, uint256 _count) internal { OrderStorage.Order memory _or = _oSt.searchOrder(_o); require(appeals[_o].appealNo == uint256(0), "4"); AppealDetail memory _detail = AppealDetail({ finalAppealAddr: address(0), updateTime: uint256(0), witnessReason: "", observerReason: "", witnessAppealStatus: 0, witnessHandleTime: uint256(0), observerHandleTime: uint256(0), observerAddr: address(0), witnessHandleReward: 0, observerHandleReward: 0, witnessHandleCredit: 0, observerHandleCredit: 0, witReward: 0, witSub: 0, witCreditR: 0, witCreditS: 0 }); uint256 _appealNo = block.timestamp; Appeal memory _appeal = Appeal({ user: msg.sender, appealNo: _appealNo, orderNo: _o, witness: address(0), buyer: _or.orderDetail.buyerAddr, seller: _or.orderDetail.sellerAddr, mortgage: _count, status: 1, appealTime: block.timestamp, witTakeTime: 0, obTakeTime: 0, detail: _detail }); appeals[_o] = _appeal; appealList.push(_appeal); appealIndex[_o] = appealList.length - 1; chanT(_or.orderDetail.sellerAddr, _or.orderDetail.buyerAddr, 1, 0); } function chanT( address _seller, address _buyer, uint256 _t, uint256 _r ) internal { uint256 _tc = _rSt.getTradeCredit(); uint256 _rs = _rSt.getSubTCredit(); UserStorage.User memory _user = _uSt.searchUser(_seller); UserStorage.TradeStats memory _tr = _user.tradeStats; uint256 _c = _user.credit; if (_t == 1) { _tr.tradeTotal = _tr.tradeTotal > 0 ? (_tr.tradeTotal - 1) : 0; _c = (_c >= _tc) ? (_c - _tc) : 0; } else if (_t == 2) { _tr.tradeTotal += 1; if (_r == 1) { _c += _tc; } else if (_r == 2) { _c = (_c >= _rs) ? (_c - _rs) : 0; } } _uSt.updateTradeStats(_seller, _tr, _c); UserStorage.User memory _user2 = _uSt.searchUser(_buyer); UserStorage.TradeStats memory _tr2 = _user2.tradeStats; uint256 _c2 = _user2.credit; if (_t == 1) { _tr2.tradeTotal = _tr2.tradeTotal > 0 ? (_tr2.tradeTotal - 1) : 0; _c2 = (_c2 >= _tc) ? (_c2 - _tc) : 0; } else if (_t == 2) { _tr2.tradeTotal += 1; if (_r == 1) { _c2 = (_c2 >= _rs) ? (_c2 - _rs) : 0; } else if (_r == 2) { _c2 += _tc; } } _uSt.updateTradeStats(_buyer, _tr2, _c2); } function applyAppeal(uint256 _o) external onlyBOS(_o) { uint256 _fee = _rSt.getAppealFee(); _insert(_o, _fee); TokenTransfer _tokenTransfer = _rSt.setERC20Address("AIR"); _tokenTransfer.transferFrom(msg.sender, recAddr, _fee); } function takeWit(uint256 _o) external { Appeal memory _al = appeals[_o]; require(_al.buyer != msg.sender && _al.seller != msg.sender, "1"); require(_al.witness == address(0), "2"); require(_al.status == 1, "3"); bool _f = witOrOb(1); require(_f, "4"); _al.witness = msg.sender; _al.witTakeTime = block.timestamp; appeals[_o] = _al; appealList[appealIndex[_o]] = _al; } function takeOb(uint256 _o) external { Appeal memory _al = appeals[_o]; require(_al.buyer != msg.sender && _al.seller != msg.sender, "1"); require(_al.status == 4 || _al.status == 5, "2"); require(_al.detail.observerAddr == address(0), "3"); bool _f = witOrOb(2); require(_f, "4"); _al.detail.observerAddr = msg.sender; _al.obTakeTime = block.timestamp; appeals[_o] = _al; appealList[appealIndex[_o]] = _al; } function changeHandler(uint256 _o, uint256 _type) external { Appeal memory _al = appeals[_o]; if (_type == 1) { require(_al.status == 1, "2"); require(_al.witness != address(0), "3"); require(block.timestamp - _al.witTakeTime > 24 hours, "4"); _al.witness = address(0); _al.witTakeTime = 0; } else if (_type == 2) { require(_al.status == 4 || _al.status == 5, "5"); require(_al.detail.observerAddr != address(0), "6"); require(block.timestamp - _al.obTakeTime > 24 hours, "7"); _al.detail.observerAddr = address(0); _al.obTakeTime = 0; } appeals[_o] = _al; appealList[appealIndex[_o]] = _al; } function witOrOb(uint256 _f) internal view returns (bool) { UserStorage.User memory _user = _uSt.searchUser(msg.sender); if (_user.userFlag == _f) { return true; } return false; } function applyFinal(uint256 _o) external onlyBOS(_o) { Appeal memory _al = appeals[_o]; require(_al.status == 2 || _al.status == 3, "1"); require( block.timestamp - _al.detail.witnessHandleTime <= 24 hours, "2" ); chanT(_al.seller, _al.buyer, 1, 0); uint256 _fee = _rSt.getAppealFeeFinal(); TokenTransfer _tokenTransfer = _rSt.setERC20Address("AIR"); _tokenTransfer.transferFrom(msg.sender, recAddr, _fee); if (_al.status == 2) { _al.status = 4; } else if (_al.status == 3) { _al.status = 5; } _al.detail.finalAppealAddr = msg.sender; _al.detail.updateTime = block.timestamp; appeals[_o] = _al; appealList[appealIndex[_o]] = _al; } function witnessOpt( uint256 _o, string memory _r, uint256 _s ) external onlyWit(_o) { require(_s == 2 || _s == 3, "1"); Appeal memory _al = appeals[_o]; require(_al.status == 1, "2"); uint256 _fee = _rSt.getAppealFee(); uint256 _rcedit = _rSt.getWitnessHandleCredit(); _al.status = _s; _al.detail.witnessAppealStatus = _s; _al.detail.witnessReason = _r; _al.detail.witnessHandleTime = block.timestamp; _al.detail.witnessHandleReward = _fee; _al.detail.witnessHandleCredit = _rcedit; _al.detail.witReward = _fee; _al.detail.witCreditR = _rcedit; _al.detail.updateTime = block.timestamp; appeals[_o] = _al; appealList[appealIndex[_o]] = _al; if (_s == 2) { if (_al.user == _al.buyer) { _rSt.subAvaAppeal(_al.seller, _al.buyer, _al, _fee, 1, 0); chanT(_al.seller, _al.buyer, 2, 2); } else if (_al.user == _al.seller) { _rSt.subAvaAppeal(_al.buyer, _al.seller, _al, _fee, 1, 0); chanT(_al.seller, _al.buyer, 2, 1); } } if (_s == 3) { if (_al.user == _al.buyer) { _rSt.subAvaAppeal(_al.buyer, _al.seller, _al, _fee, 1, 1); chanT(_al.seller, _al.buyer, 2, 1); } else if (_al.user == _al.seller) { _rSt.subAvaAppeal(_al.seller, _al.buyer, _al, _fee, 1, 1); chanT(_al.seller, _al.buyer, 2, 2); } } } function observerOpt( uint256 _o, string memory _r, uint256 _s ) external onlyOb(_o) { require(_s == 6 || _s == 7, "1"); Appeal memory _appeal = appeals[_o]; require(_appeal.status == 4 || _appeal.status == 5, "2"); uint256 _fee = _rSt.getAppealFeeFinal(); uint256 _rcedit = _rSt.getObserverHandleCredit(); _appeal.status = _s; _appeal.detail.observerReason = _r; _appeal.detail.observerHandleTime = block.timestamp; _appeal.detail.observerHandleReward = _fee; _appeal.detail.observerHandleCredit = _rcedit; uint256 _subWC = _rSt.getSubWitCredit(); uint256 _subWF = _rSt.getSubWitFee(); if (_s == 6) { if (_appeal.user == _appeal.buyer) { _rSt.subAvaAppeal( _appeal.seller, _appeal.buyer, _appeal, _fee, 2, 0 ); chanT(_appeal.seller, _appeal.buyer, 2, 1); _rSt.subFrozenTotal(_o, _appeal.buyer); } else if (_appeal.user == _appeal.seller) { _rSt.subAvaAppeal( _appeal.buyer, _appeal.seller, _appeal, _fee, 2, 0 ); chanT(_appeal.seller, _appeal.buyer, 2, 2); _rSt.subFrozenTotal(_o, _appeal.seller); } if (_appeal.detail.witnessAppealStatus == 3) { _appeal.detail.witSub = _subWF; _appeal.detail.witCreditS = _subWC; if (_appeal.detail.witnessHandleCredit >= _subWC) { _appeal.detail.witnessHandleCredit = SafeMath.sub( _appeal.detail.witnessHandleCredit, _subWC ); } else { _appeal.detail.witnessHandleCredit = 0; } _rSt.subWitnessAvailable(_appeal.witness); } } if (_s == 7) { if (_appeal.user == _appeal.buyer) { _rSt.subAvaAppeal( _appeal.buyer, _appeal.seller, _appeal, _fee, 2, 1 ); chanT(_appeal.seller, _appeal.buyer, 2, 1); _rSt.subFrozenTotal(_o, _appeal.seller); } else if (_appeal.user == _appeal.seller) { _rSt.subAvaAppeal( _appeal.seller, _appeal.buyer, _appeal, _fee, 2, 1 ); chanT(_appeal.seller, _appeal.buyer, 2, 2); _rSt.subFrozenTotal(_o, _appeal.buyer); } if (_appeal.detail.witnessAppealStatus == 2) { _appeal.detail.witSub = _subWF; _appeal.detail.witCreditS = _subWC; if (_appeal.detail.witnessHandleCredit >= _subWC) { _appeal.detail.witnessHandleCredit = SafeMath.sub( _appeal.detail.witnessHandleCredit, _subWC ); } else { _appeal.detail.witnessHandleCredit = 0; } _rSt.subWitnessAvailable(_appeal.witness); } } _appeal.detail.updateTime = block.timestamp; appeals[_o] = _appeal; appealList[appealIndex[_o]] = _appeal; } function searchAppeal(uint256 _o) external view returns (Appeal memory appeal) { return appeals[_o]; } function searchAppealList() external view returns (Appeal[] memory) { return appealList; } }
Solidity
4
Aircoin-official/AirCash
AppealStorage.sol
[ "MIT" ]